diff --git a/api/org.integratedmodelling.klab.api/src/org/integratedmodelling/klab/api/auth/KlabHttpHeaders.java b/api/org.integratedmodelling.klab.api/src/org/integratedmodelling/klab/api/auth/KlabHttpHeaders.java index 887c5e376..7dd2f4fff 100644 --- a/api/org.integratedmodelling.klab.api/src/org/integratedmodelling/klab/api/auth/KlabHttpHeaders.java +++ b/api/org.integratedmodelling.klab.api/src/org/integratedmodelling/klab/api/auth/KlabHttpHeaders.java @@ -15,6 +15,6 @@ public interface KlabHttpHeaders { /** * Designed to send session information with requests. **/ - public static final String KLAB_AUTHORIZATION = "Klab_Authorization"; + public static final String KLAB_AUTHORIZATION = "klab-authorization"; } diff --git a/klab.engine/src/main/java/org/integratedmodelling/klab/engine/rest/controllers/engine/EnginePublicController.java b/klab.engine/src/main/java/org/integratedmodelling/klab/engine/rest/controllers/engine/EnginePublicController.java index 8a0778231..9f92f7c6f 100644 --- a/klab.engine/src/main/java/org/integratedmodelling/klab/engine/rest/controllers/engine/EnginePublicController.java +++ b/klab.engine/src/main/java/org/integratedmodelling/klab/engine/rest/controllers/engine/EnginePublicController.java @@ -21,6 +21,7 @@ import org.integratedmodelling.klab.api.API; import org.integratedmodelling.klab.api.PublicAPI; import org.integratedmodelling.klab.api.auth.IUserIdentity; +import org.integratedmodelling.klab.api.auth.KlabHttpHeaders; import org.integratedmodelling.klab.api.auth.Roles; import org.integratedmodelling.klab.api.data.ILocator; import org.integratedmodelling.klab.api.data.adapters.IResourceAdapter; @@ -80,7 +81,7 @@ public class EnginePublicController implements API.PUBLIC { @RequestMapping(value = CREATE_CONTEXT, method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE) @ResponseBody public TicketResponse.Ticket contextRequest(@RequestBody ContextRequest request, - @RequestHeader(name = "Klab_Authorization") String session) { + @RequestHeader(name = KlabHttpHeaders.KLAB_AUTHORIZATION) String session) { Session s = Authentication.INSTANCE.getIdentity(session, Session.class); if (s == null) { @@ -110,7 +111,7 @@ public TicketResponse.Ticket contextRequest(@RequestBody ContextRequest request, @RequestMapping(value = OBSERVE_IN_CONTEXT, method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE) @ResponseBody public TicketResponse.Ticket observationRequest(@RequestBody ObservationRequest request, - @RequestHeader(name = "Klab_Authorization") String session, @PathVariable String context) { + @RequestHeader(name = KlabHttpHeaders.KLAB_AUTHORIZATION) String session, @PathVariable String context) { Session s = Authentication.INSTANCE.getIdentity(session, Session.class); @@ -144,7 +145,7 @@ public TicketResponse.Ticket observationRequest(@RequestBody ObservationRequest @RequestMapping(value = SUBMIT_ESTIMATE, method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) @ResponseBody - public TicketResponse.Ticket submitEstimate(@RequestHeader(name = "Klab_Authorization") String session, + public TicketResponse.Ticket submitEstimate(@RequestHeader(name = KlabHttpHeaders.KLAB_AUTHORIZATION) String session, @PathVariable String estimate) { Session s = Authentication.INSTANCE.getIdentity(session, Session.class); @@ -175,7 +176,7 @@ public TicketResponse.Ticket submitEstimate(@RequestHeader(name = "Klab_Authoriz MediaType.TEXT_PLAIN_VALUE, MediaType.APPLICATION_PDF_VALUE, MediaType.IMAGE_PNG_VALUE, "text/csv", "image/tiff", "application/vnd.ms-excel", "application/octet-stream", "application/vnd.openxmlformats-officedocument.wordprocessingml.document"}) - public void exportData(@PathVariable String export, @RequestHeader(name = "Klab_Authorization") String session, + public void exportData(@PathVariable String export, @RequestHeader(name = KlabHttpHeaders.KLAB_AUTHORIZATION) String session, @PathVariable String observation, @RequestHeader(name = "Accept") String format, @RequestParam(required = false) String view, @RequestParam(required = false) String viewport, @RequestParam(required = false) String locator, HttpServletResponse response) throws IOException { @@ -387,7 +388,7 @@ private void outputImage(IObservation obs, HttpServletResponse response, Export @RequestMapping(value = TICKET_INFO, method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) @ResponseBody - public TicketResponse.Ticket getTicketInfo(@RequestHeader(name = "Klab_Authorization") String session, + public TicketResponse.Ticket getTicketInfo(@RequestHeader(name = KlabHttpHeaders.KLAB_AUTHORIZATION) String session, @PathVariable String ticket) { Session s = Authentication.INSTANCE.getIdentity(session, Session.class); diff --git a/klab.engine/src/main/resources/static/ui/css/6619c582.b0f9de2f.css b/klab.engine/src/main/resources/static/ui/css/4365aeeb.b0f9de2f.css similarity index 100% rename from klab.engine/src/main/resources/static/ui/css/6619c582.b0f9de2f.css rename to klab.engine/src/main/resources/static/ui/css/4365aeeb.b0f9de2f.css diff --git a/klab.engine/src/main/resources/static/ui/index.html b/klab.engine/src/main/resources/static/ui/index.html index fbaa8850c..33fa14568 100644 --- a/klab.engine/src/main/resources/static/ui/index.html +++ b/klab.engine/src/main/resources/static/ui/index.html @@ -1,4 +1,4 @@ k.Explorer
\ No newline at end of file + }
\ No newline at end of file diff --git a/klab.engine/src/main/resources/static/ui/js/4365aeeb.a8ccfbdc.js b/klab.engine/src/main/resources/static/ui/js/4365aeeb.a8ccfbdc.js new file mode 100644 index 000000000..94b2eadcb --- /dev/null +++ b/klab.engine/src/main/resources/static/ui/js/4365aeeb.a8ccfbdc.js @@ -0,0 +1,27 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["4365aeeb"],{"019a":function(e,t,o){},"0300":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("30e3"),i=function(){function e(){this._map=new Map}return e.prototype.getMap=function(){return this._map},e.prototype.add=function(e,t){if(null===e||void 0===e)throw new Error(n.NULL_ARGUMENT);if(null===t||void 0===t)throw new Error(n.NULL_ARGUMENT);var o=this._map.get(e);void 0!==o?(o.push(t),this._map.set(e,o)):this._map.set(e,[t])},e.prototype.get=function(e){if(null===e||void 0===e)throw new Error(n.NULL_ARGUMENT);var t=this._map.get(e);if(void 0!==t)return t;throw new Error(n.KEY_NOT_FOUND)},e.prototype.remove=function(e){if(null===e||void 0===e)throw new Error(n.NULL_ARGUMENT);if(!this._map.delete(e))throw new Error(n.KEY_NOT_FOUND)},e.prototype.removeByCondition=function(e){var t=this;this._map.forEach(function(o,n){var i=o.filter(function(t){return!e(t)});i.length>0?t._map.set(n,i):t._map.delete(n)})},e.prototype.hasKey=function(e){if(null===e||void 0===e)throw new Error(n.NULL_ARGUMENT);return this._map.has(e)},e.prototype.clone=function(){var t=new e;return this._map.forEach(function(e,o){e.forEach(function(e){return t.add(o,e.clone())})}),t},e.prototype.traverse=function(e){this._map.forEach(function(t,o){e(o,t)})},e}();t.Lookup=i},"0312":function(e,t){var o=!("undefined"===typeof window||!window.document||!window.document.createElement);e.exports=o},"0483":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("b485"),a=new n.ContainerModule(function(e){e(i.TYPES.MouseListener).to(r.OpenMouseListener)});t.default=a},"04c2":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("4741"),a=new n.ContainerModule(function(e){e(i.TYPES.IButtonHandler).toConstructor(r.ExpandButtonHandler)});t.default=a},"0505":function(e,t,o){},"064a":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("393a"),c=o("e1c6"),p=o("6923"),l=o("3864"),u=o("dd02"),b=o("7b39"),d=o("302f"),M=o("3623"),h=function(e){function t(t){var o=e.call(this)||this;return o.registerDefaults(),t.forEach(function(e){return o.register(e.type,e.factory())}),o}return n(t,e),t.prototype.registerDefaults=function(){this.register(d.EMPTY_ROOT.type,new O)},t.prototype.missing=function(e){return new A},t=i([c.injectable(),a(0,c.multiInject(p.TYPES.ViewRegistration)),a(0,c.optional()),r("design:paramtypes",[Array])],t),t}(l.InstanceRegistry);function f(e,t,o,n,i){M.registerModelElement(e,t,o,i),z(e,t,n)}function z(e,t,o){if("function"===typeof o){if(!b.isInjectable(o))throw new Error("Views should be @injectable: "+o.name);e.isBound(o)||e.bind(o).toSelf()}e.bind(p.TYPES.ViewRegistration).toDynamicValue(function(e){return{type:t,factory:function(){return e.container.get(o)}}})}t.ViewRegistry=h,t.configureModelElement=f,t.configureView=z;var O=function(){function e(){}return e.prototype.render=function(e,t){return s.svg("svg",{"class-sprotty-empty":!0})},e=i([c.injectable()],e),e}();t.EmptyView=O;var A=function(){function e(){}return e.prototype.render=function(e,t){var o=e.position||u.ORIGIN_POINT;return s.svg("text",{"class-sprotty-missing":!0,x:o.x,y:o.y},"?",e.id,"?")},e=i([c.injectable()],e),e}();t.MissingView=A},"0960":function(e,t,o){e.exports=o("b19a")},"0a28":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__spreadArrays||function(){for(var e=0,t=0,o=arguments.length;t"+e+""}),o},t.prototype.renderIcon=function(e,t){e.innerHTML+=''},t.prototype.filterActions=function(e,t){return M.toArray(t.filter(function(t){var o=t.label.toLowerCase(),n=e.split(" ");return n.every(function(e){return-1!==o.indexOf(e.toLowerCase())})}))},t.prototype.customizeSuggestionContainer=function(e,t,o){this.containerElement&&this.containerElement.appendChild(e)},t.prototype.hide=function(){e.prototype.hide.call(this),this.autoCompleteResult&&this.autoCompleteResult.destroy()},t.prototype.executeAction=function(e){var t=this;this.actionDispatcherProvider().then(function(t){return t.dispatchAll(g(e))}).catch(function(e){return t.logger.error(t,"No action dispatcher available to execute command palette action",e)})},t.ID="command-palette",t.isInvokePaletteKey=function(e){return h.matchesKeystroke(e,"Space","ctrl")},i([s.inject(p.TYPES.IActionDispatcherProvider),r("design:type",Function)],t.prototype,"actionDispatcherProvider",void 0),i([s.inject(p.TYPES.ICommandPaletteActionProviderRegistry),r("design:type",O.CommandPaletteActionProviderRegistry)],t.prototype,"actionProviderRegistry",void 0),i([s.inject(p.TYPES.ViewerOptions),r("design:type",Object)],t.prototype,"viewerOptions",void 0),i([s.inject(p.TYPES.DOMHelper),r("design:type",b.DOMHelper)],t.prototype,"domHelper",void 0),i([s.inject(A.MousePositionTracker),r("design:type",A.MousePositionTracker)],t.prototype,"mousePositionTracker",void 0),t=o=i([s.injectable()],t),t}(l.AbstractUIExtension);function g(e){return c.isLabeledAction(e)?e.actions:c.isAction(e)?[e]:[]}function y(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}t.CommandPalette=v;var q=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.keyDown=function(e,t){if(h.matchesKeystroke(t,"Escape"))return[new u.SetUIExtensionVisibilityAction(v.ID,!1,[])];if(v.isInvokePaletteKey(t)){var o=M.toArray(e.index.all().filter(function(e){return z.isSelectable(e)&&e.selected}).map(function(e){return e.id}));return[new u.SetUIExtensionVisibilityAction(v.ID,!0,o)]}return[]},t}(d.KeyListener);t.CommandPaletteKeyListener=q},"0bd8":function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o("e1c6"),a=o("6923"),s=function(){function e(){}return e.prototype.decorate=function(e,t){return e},e.prototype.postUpdate=function(){var e=document.getElementById(this.options.popupDiv);if(null!==e&&"undefined"!==typeof window){var t=e.getBoundingClientRect();window.innerHeight=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o("e1c6"),a=o("6923"),s=function(){function e(){}return e.prototype.getPrefix=function(){var e=void 0!==this.viewerOptions&&void 0!==this.viewerOptions.baseDiv?this.viewerOptions.baseDiv+"_":"";return e},e.prototype.createUniqueDOMElementId=function(e){return this.getPrefix()+e.id},e.prototype.findSModelIdByDOMElement=function(e){return e.id.replace(this.getPrefix(),"")},n([r.inject(a.TYPES.ViewerOptions),i("design:type",Object)],e.prototype,"viewerOptions",void 0),e=n([r.injectable()],e),e}();t.DOMHelper=s},"0e44":function(e,t,o){"use strict";var n=o("7615"),i=o.n(n);i.a},"0efb":function(e,t,o){var n,i,r;//! moment-timezone.js +//! version : 0.5.46 +//! Copyright (c) JS Foundation and other contributors +//! license : MIT +//! github.com/moment/moment-timezone +//! moment-timezone.js +//! version : 0.5.46 +//! Copyright (c) JS Foundation and other contributors +//! license : MIT +//! github.com/moment/moment-timezone +(function(a,s){"use strict";e.exports?e.exports=s(o("c1df")):(i=[o("c1df")],n=s,r="function"===typeof n?n.apply(t,i):n,void 0===r||(e.exports=r))})(0,function(e){"use strict";void 0===e.version&&e.default&&(e=e.default);var t,o="0.5.46",n={},i={},r={},a={},s={};e&&"string"===typeof e.version||X("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var c=e.version.split("."),p=+c[0],l=+c[1];function u(e){return e>96?e-87:e>64?e-29:e-48}function b(e){var t,o=0,n=e.split("."),i=n[0],r=n[1]||"",a=1,s=0,c=1;for(45===e.charCodeAt(0)&&(o=1,c=-1),o;o1&&t[n-1]===1/0&&e>=t[n-2])return n-1;if(e>=t[n-1])return-1;var i=0,r=n-1;while(r-i>1)o=Math.floor((i+r)/2),t[o]<=e?i=o:r=o;return r}function A(e,t){this.name=e,this.zones=t}function m(e){var t=e.toTimeString(),o=t.match(/\([a-z ]+\)/i);o&&o[0]?(o=o[0].match(/[A-Z]/g),o=o?o.join(""):void 0):(o=t.match(/[A-Z]{3,5}/g),o=o?o[0]:void 0),"GMT"===o&&(o=void 0),this.at=+e,this.abbr=o,this.offset=e.getTimezoneOffset()}function v(e){this.zone=e,this.offsetScore=0,this.abbrScore=0}function g(e,t){var o,n;while(n=6e4*((t.at-e.at)/12e4|0))o=new m(new Date(e.at+n)),o.offset===e.offset?e=o:t=o;return e}function y(){var e,t,o,n,i=(new Date).getFullYear()-2,r=new m(new Date(i,0,1)),a=r.offset,s=[r];for(n=1;n<48;n++)o=new Date(i,n,1).getTimezoneOffset(),o!==a&&(t=new m(new Date(i,n,1)),e=g(r,t),s.push(e),s.push(new m(new Date(e.at+6e4))),r=t,a=o);for(n=0;n<4;n++)s.push(new m(new Date(i+n,0,1))),s.push(new m(new Date(i+n,6,1)));return s}function q(e,t){return e.offsetScore!==t.offsetScore?e.offsetScore-t.offsetScore:e.abbrScore!==t.abbrScore?e.abbrScore-t.abbrScore:e.zone.population!==t.zone.population?t.zone.population-e.zone.population:t.zone.name.localeCompare(e.zone.name)}function _(e,t){var o,n;for(d(t),o=0;o3){var t=a[L(e)];if(t)return t;X("Moment Timezone found "+e+" from the Intl api, but did not have that data loaded.")}}catch(e){}var o,n,i,r=y(),s=r.length,c=W(r),p=[];for(n=0;n0?p[0].zone.name:void 0}function w(e){return t&&!e||(t=R()),t}function L(e){return(e||"").toLowerCase().replace(/\//g,"_")}function C(e){var t,o,i,r;for("string"===typeof e&&(e=[e]),t=0;t= 2.6.0. You are using Moment.js "+e.version+". See momentjs.com"),z.prototype={_set:function(e){this.name=e.name,this.abbrs=e.abbrs,this.untils=e.untils,this.offsets=e.offsets,this.population=e.population},_index:function(e){var t,o=+e,n=this.untils;if(t=O(o,n),t>=0)return t},countries:function(){var e=this.name;return Object.keys(r).filter(function(t){return-1!==r[t].zones.indexOf(e)})},parse:function(e){var t,o,n,i,r=+e,a=this.offsets,s=this.untils,c=s.length-1;for(i=0;in&&j.moveInvalidForward&&(t=n),r0&&(this._z=null),e.apply(this,arguments)}}e.tz=j,e.defaultZone=null,e.updateOffset=function(t,o){var n,i=e.defaultZone;if(void 0===t._z&&(i&&I(t)&&!t._isUTC&&t.isValid()&&(t._d=e.utc(t._a)._d,t.utc().add(i.parse(t),"minutes")),t._z=i),t._z)if(n=t._z.utcOffset(t),Math.abs(n)<16&&(n/=60),void 0!==t.utcOffset){var r=t._z;t.utcOffset(-n,o),t._z=r}else t.zone(n,o)},F.tz=function(t,o){if(t){if("string"!==typeof t)throw new Error("Time zone name must be a string, got "+t+" ["+typeof t+"]");return this._z=S(t),this._z?e.updateOffset(this,o):X("Moment Timezone has no data for "+t+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},F.zoneName=H(F.zoneName),F.zoneAbbr=H(F.zoneAbbr),F.utc=U(F.utc),F.local=U(F.local),F.utcOffset=V(F.utcOffset),e.tz.setDefault=function(t){return(p<2||2===p&&l<9)&&X("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+e.version+"."),e.defaultZone=t?S(t):null,e};var G=e.momentProperties;return"[object Array]"===Object.prototype.toString.call(G)?(G.push("_z"),G.push("_a")):G&&(G._z=null),e})},"0f4c":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=o("c146"),r=function(e){function t(t,o,n,i){void 0===i&&(i=!1);var r=e.call(this,n)||this;return r.model=t,r.elementResizes=o,r.reverse=i,r}return n(t,e),t.prototype.tween=function(e){var t=this;return this.elementResizes.forEach(function(o){var n=o.element,i=t.reverse?{width:(1-e)*o.toDimension.width+e*o.fromDimension.width,height:(1-e)*o.toDimension.height+e*o.fromDimension.height}:{width:(1-e)*o.fromDimension.width+e*o.toDimension.width,height:(1-e)*o.fromDimension.height+e*o.toDimension.height};n.bounds={x:n.bounds.x,y:n.bounds.y,width:i.width,height:i.height}}),this.model},t}(i.Animation);t.ResizeAnimation=r},"0faf":function(e,t,o){"use strict";var n=o("5870"),i=o.n(n);i.a},"0fb6":function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o("e1c6"),a=o("6923"),s=o("9175"),c=o("302f"),p=o("538c"),l=o("3f0a"),u=o("c20e"),b=o("510b"),d=function(){function e(){this.postponedActions=[],this.requests=new Map}return e.prototype.initialize=function(){var e=this;return this.initialized||(this.initialized=this.actionHandlerRegistryProvider().then(function(t){e.actionHandlerRegistry=t,e.handleAction(new l.SetModelAction(c.EMPTY_ROOT))})),this.initialized},e.prototype.dispatch=function(e){var t=this;return this.initialize().then(function(){return void 0!==t.blockUntil?t.handleBlocked(e,t.blockUntil):t.diagramLocker.isAllowed(e)?t.handleAction(e):void 0})},e.prototype.dispatchAll=function(e){var t=this;return Promise.all(e.map(function(e){return t.dispatch(e)}))},e.prototype.request=function(e){if(!e.requestId)return Promise.reject(new Error("Request without requestId"));var t=new s.Deferred;return this.requests.set(e.requestId,t),this.dispatch(e),t.promise},e.prototype.handleAction=function(e){if(e.kind===u.UndoAction.KIND)return this.commandStack.undo().then(function(){});if(e.kind===u.RedoAction.KIND)return this.commandStack.redo().then(function(){});if(b.isResponseAction(e)){var t=this.requests.get(e.responseId);if(void 0!==t){if(this.requests.delete(e.responseId),e.kind===b.RejectAction.KIND){var o=e;t.reject(new Error(o.message)),this.logger.warn(this,"Request with id "+e.responseId+" failed.",o.message,o.detail)}else t.resolve(e);return Promise.resolve()}this.logger.log(this,"No matching request for response",e)}var n=this.actionHandlerRegistry.get(e.kind);if(0===n.length){this.logger.warn(this,"Missing handler for action",e);var i=new Error("Missing handler for action '"+e.kind+"'");if(b.isRequestAction(e)){t=this.requests.get(e.requestId);void 0!==t&&(this.requests.delete(e.requestId),t.reject(i))}return Promise.reject(i)}this.logger.log(this,"Handle",e);for(var r=[],a=0,s=n;a=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__awaiter||function(e,t,o,n){function i(e){return e instanceof o?e:new o(function(t){t(e)})}return new(o||(o=Promise))(function(o,r){function a(e){try{c(n.next(e))}catch(e){r(e)}}function s(e){try{c(n["throw"](e))}catch(e){r(e)}}function c(e){e.done?o(e.value):i(e.value).then(a,s)}c((n=n.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){var o,n,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(e){return function(t){return c([e,t])}}function c(r){if(o)throw new TypeError("Generator is already executing.");while(a)try{if(o=1,n&&(i=2&r[0]?n["return"]:r[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,r[1])).done)return i;switch(n=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,n=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=o("e1c6"),s=o("6923"),c=o("3a92"),p=o("e45b"),l=function(){function e(e){void 0===e&&(e=[]),this.keyListeners=e}return e.prototype.register=function(e){this.keyListeners.push(e)},e.prototype.deregister=function(e){var t=this.keyListeners.indexOf(e);t>=0&&this.keyListeners.splice(t,1)},e.prototype.handleEvent=function(e,t,o){var n=this.keyListeners.map(function(n){return n[e].apply(n,[t,o])}).reduce(function(e,t){return e.concat(t)});n.length>0&&(o.preventDefault(),this.actionDispatcher.dispatchAll(n))},e.prototype.keyDown=function(e,t){this.handleEvent("keyDown",e,t)},e.prototype.keyUp=function(e,t){this.handleEvent("keyUp",e,t)},e.prototype.focus=function(){},e.prototype.decorate=function(e,t){return t instanceof c.SModelRoot&&(p.on(e,"focus",this.focus.bind(this),t),p.on(e,"keydown",this.keyDown.bind(this),t),p.on(e,"keyup",this.keyUp.bind(this),t)),e},e.prototype.postUpdate=function(){},n([a.inject(s.TYPES.IActionDispatcher),i("design:type",Object)],e.prototype,"actionDispatcher",void 0),e=n([a.injectable(),r(0,a.multiInject(s.TYPES.KeyListener)),r(0,a.optional()),i("design:paramtypes",[Array])],e),e}();t.KeyTool=l;var u=function(){function e(){}return e.prototype.keyDown=function(e,t){return[]},e.prototype.keyUp=function(e,t){return[]},e=n([a.injectable()],e),e}();t.KeyListener=u},1468:function(e,t){var o=1e3,n=60*o,i=60*n,r=24*i,a=365.25*r;function s(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var s=parseFloat(t[1]),c=(t[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return s*a;case"days":case"day":case"d":return s*r;case"hours":case"hour":case"hrs":case"hr":case"h":return s*i;case"minutes":case"minute":case"mins":case"min":case"m":return s*n;case"seconds":case"second":case"secs":case"sec":case"s":return s*o;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}function c(e){return e>=r?Math.round(e/r)+"d":e>=i?Math.round(e/i)+"h":e>=n?Math.round(e/n)+"m":e>=o?Math.round(e/o)+"s":e+"ms"}function p(e){return l(e,r,"day")||l(e,i,"hour")||l(e,n,"minute")||l(e,o,"second")||e+" ms"}function l(e,t,o){if(!(e0)return s(e);if("number"===o&&!1===isNaN(e))return t.long?p(e):c(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},"155f":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={Request:"Request",Singleton:"Singleton",Transient:"Transient"};t.BindingScopeEnum=n;var i={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"};t.BindingTypeEnum=i;var r={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"};t.TargetTypeEnum=r},1590:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(t){this.toolIds=t,this.kind=e.KIND}return e.KIND="enable-tools",e}();t.EnableToolsAction=n;var i=function(){function e(){this.kind=e.KIND}return e.KIND="enable-default-tools",e}();t.EnableDefaultToolsAction=i},"15f6":function(e,t,o){},"160b":function(e,t,o){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,o=1,n=arguments.length;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o("e1c6"),s=o("6923"),c=o("302f"),p=o("3a92"),l=o("538c"),u=o("9757"),b=function(){function e(){this.undoStack=[],this.redoStack=[],this.offStack=[]}return e.prototype.initialize=function(){this.currentPromise=Promise.resolve({main:{model:this.modelFactory.createRoot(c.EMPTY_ROOT),modelChanged:!1},hidden:{model:this.modelFactory.createRoot(c.EMPTY_ROOT),modelChanged:!1},popup:{model:this.modelFactory.createRoot(c.EMPTY_ROOT),modelChanged:!1}})},Object.defineProperty(e.prototype,"currentModel",{get:function(){return this.currentPromise.then(function(e){return e.main.model})},enumerable:!0,configurable:!0}),e.prototype.executeAll=function(e){var t=this;return e.forEach(function(e){t.logger.log(t,"Executing",e),t.handleCommand(e,e.execute,t.mergeOrPush)}),this.thenUpdate()},e.prototype.execute=function(e){return this.logger.log(this,"Executing",e),this.handleCommand(e,e.execute,this.mergeOrPush),this.thenUpdate()},e.prototype.undo=function(){var e=this;this.undoOffStackSystemCommands(),this.undoPreceedingSystemCommands();var t=this.undoStack[this.undoStack.length-1];return void 0===t||this.isBlockUndo(t)||(this.undoStack.pop(),this.logger.log(this,"Undoing",t),this.handleCommand(t,t.undo,function(t,o){e.redoStack.push(t)})),this.thenUpdate()},e.prototype.redo=function(){var e=this;this.undoOffStackSystemCommands();var t=this.redoStack.pop();return void 0!==t&&(this.logger.log(this,"Redoing",t),this.handleCommand(t,t.redo,function(t,o){e.pushToUndoStack(t)})),this.redoFollowingSystemCommands(),this.thenUpdate()},e.prototype.handleCommand=function(e,t,o){var n=this;this.currentPromise=this.currentPromise.then(function(i){return new Promise(function(r){var a;a=e instanceof u.HiddenCommand?"hidden":e instanceof u.PopupCommand?"popup":"main";var s,c=n.createContext(i.main.model);try{s=t.call(e,c)}catch(e){n.logger.error(n,"Failed to execute command:",e),s=i[a].model}var l=d(i);s instanceof Promise?s.then(function(t){"main"===a&&o.call(n,e,c),l[a]={model:t,modelChanged:!0},r(l)}):s instanceof p.SModelRoot?("main"===a&&o.call(n,e,c),l[a]={model:s,modelChanged:!0},r(l)):("main"===a&&o.call(n,e,c),l[a]={model:s.model,modelChanged:i[a].modelChanged||s.modelChanged,cause:s.cause},r(l))})})},e.prototype.pushToUndoStack=function(e){this.undoStack.push(e),this.options.undoHistoryLimit>=0&&this.undoStack.length>this.options.undoHistoryLimit&&this.undoStack.splice(0,this.undoStack.length-this.options.undoHistoryLimit)},e.prototype.thenUpdate=function(){var e=this;return this.currentPromise=this.currentPromise.then(function(t){var o=d(t);return t.hidden.modelChanged&&(e.updateHidden(t.hidden.model,t.hidden.cause),o.hidden.modelChanged=!1,o.hidden.cause=void 0),t.main.modelChanged&&(e.update(t.main.model,t.main.cause),o.main.modelChanged=!1,o.main.cause=void 0),t.popup.modelChanged&&(e.updatePopup(t.popup.model,t.popup.cause),o.popup.modelChanged=!1,o.popup.cause=void 0),o}),this.currentModel},e.prototype.update=function(e,t){void 0===this.modelViewer&&(this.modelViewer=this.viewerProvider.modelViewer),this.modelViewer.update(e,t)},e.prototype.updateHidden=function(e,t){void 0===this.hiddenModelViewer&&(this.hiddenModelViewer=this.viewerProvider.hiddenModelViewer),this.hiddenModelViewer.update(e,t)},e.prototype.updatePopup=function(e,t){void 0===this.popupModelViewer&&(this.popupModelViewer=this.viewerProvider.popupModelViewer),this.popupModelViewer.update(e,t)},e.prototype.mergeOrPush=function(e,t){var o=this;if(this.isBlockUndo(e))return this.undoStack=[],this.redoStack=[],this.offStack=[],void this.pushToUndoStack(e);if(this.isPushToOffStack(e)&&this.redoStack.length>0){if(this.offStack.length>0){var n=this.offStack[this.offStack.length-1];if(n instanceof u.MergeableCommand&&n.merge(e,t))return}this.offStack.push(e)}else if(this.isPushToUndoStack(e)){if(this.offStack.forEach(function(e){return o.undoStack.push(e)}),this.offStack=[],this.redoStack=[],this.undoStack.length>0){n=this.undoStack[this.undoStack.length-1];if(n instanceof u.MergeableCommand&&n.merge(e,t))return}this.pushToUndoStack(e)}},e.prototype.undoOffStackSystemCommands=function(){var e=this.offStack.pop();while(void 0!==e)this.logger.log(this,"Undoing off-stack",e),this.handleCommand(e,e.undo,function(){}),e=this.offStack.pop()},e.prototype.undoPreceedingSystemCommands=function(){var e=this,t=this.undoStack[this.undoStack.length-1];while(void 0!==t&&this.isPushToOffStack(t))this.undoStack.pop(),this.logger.log(this,"Undoing",t),this.handleCommand(t,t.undo,function(t,o){e.redoStack.push(t)}),t=this.undoStack[this.undoStack.length-1]},e.prototype.redoFollowingSystemCommands=function(){var e=this,t=this.redoStack[this.redoStack.length-1];while(void 0!==t&&this.isPushToOffStack(t))this.redoStack.pop(),this.logger.log(this,"Redoing ",t),this.handleCommand(t,t.redo,function(t,o){e.pushToUndoStack(t)}),t=this.redoStack[this.redoStack.length-1]},e.prototype.createContext=function(e){return{root:e,modelChanged:this,modelFactory:this.modelFactory,duration:this.options.defaultDuration,logger:this.logger,syncer:this.syncer}},e.prototype.isPushToOffStack=function(e){return e instanceof u.SystemCommand},e.prototype.isPushToUndoStack=function(e){return!(e instanceof u.HiddenCommand)},e.prototype.isBlockUndo=function(e){return e instanceof u.ResetCommand},i([a.inject(s.TYPES.IModelFactory),r("design:type",Object)],e.prototype,"modelFactory",void 0),i([a.inject(s.TYPES.IViewerProvider),r("design:type",Object)],e.prototype,"viewerProvider",void 0),i([a.inject(s.TYPES.ILogger),r("design:type",Object)],e.prototype,"logger",void 0),i([a.inject(s.TYPES.AnimationFrameSyncer),r("design:type",l.AnimationFrameSyncer)],e.prototype,"syncer",void 0),i([a.inject(s.TYPES.CommandStackOptions),r("design:type",Object)],e.prototype,"options",void 0),i([a.postConstruct(),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"initialize",null),e=i([a.injectable()],e),e}();function d(e){return{main:n({},e.main),hidden:n({},e.hidden),popup:n({},e.popup)}}t.CommandStack=b},"168d":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("3864"),c=o("d8f5"),p=o("e1c6"),l=o("6923"),u=function(e){function t(t){var o=e.call(this)||this;return t.forEach(function(e){return o.register(e.kind,e)}),o}return n(t,e),Object.defineProperty(t.prototype,"defaultKind",{get:function(){return c.PolylineEdgeRouter.KIND},enumerable:!0,configurable:!0}),t.prototype.get=function(t){return e.prototype.get.call(this,t||this.defaultKind)},t=i([p.injectable(),a(0,p.multiInject(l.TYPES.IEdgeRouter)),r("design:paramtypes",[Array])],t),t}(s.InstanceRegistry);t.EdgeRouterRegistry=u},1817:function(e,t,o){"use strict";var n=o("c23f"),i=o.n(n);i.a},1848:function(e,t,o){"use strict";var n=o("98ab"),i=o.n(n);i.a},1934:function(e,t,o){(function(n){function i(){return!("undefined"===typeof window||!window.process||"renderer"!==window.process.type)||("undefined"!==typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!==typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function r(e){var o=this.useColors;if(e[0]=(o?"%c":"")+this.namespace+(o?" %c":" ")+e[0]+(o?"%c ":" ")+"+"+t.humanize(this.diff),o){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var i=0,r=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(i++,"%c"===e&&(r=i))}),e.splice(r,0,n)}}function a(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}}function c(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!==typeof n&&"env"in n&&(e=Object({NODE_ENV:"production",CLIENT:!0,SERVER:!1,DEV:!1,PROD:!0,THEME:"mat",MODE:"spa",WS_BASE_URL:"",STOMP_CLIENT_DEBUG:!1,KEXPLORER_DEBUG:!1,ROUTER_BASE:"/modeler/ui",WEB_BASE_URL:"https://integratedmodelling.org",PACKAGE_VERSION:"0.22.0",PACKAGE_BUILD:"",ENGINE_URL:"/modeler",ENGINE_SHARED:"/modeler/shared/",ENGINE_LOGIN:"/modeler",API:"/modeler/api/v2",WS_URL:"/modeler/message",WS_SUBSCRIBE:"/message",WS_MESSAGE_DESTINATION:"/klab/message",REST_UPLOAD_MAX_SIZE:"1024MB",SEARCH_TIMEOUT_MS:"4000",VUE_ROUTER_MODE:"hash",VUE_ROUTER_BASE:"",APP_URL:"undefined"}).DEBUG),e}function p(){try{return window.localStorage}catch(e){}}t=e.exports=o("6d1a"),t.log=a,t.formatArgs=r,t.save=s,t.load=c,t.useColors=i,t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:p(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(c())}).call(this,o("4362"))},1963:function(e,t,o){},1978:function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("9757"),c=o("3a92"),p=o("6923"),l=o("e1c6");function u(e){return e instanceof c.SChildElement&&e.hasFeature(t.deletableFeature)}t.deletableFeature=Symbol("deletableFeature"),t.isDeletable=u;var b=function(){function e(t){this.elementIds=t,this.kind=e.KIND}return e.KIND="delete",e}();t.DeleteElementAction=b;var d=function(){function e(){}return e}();t.ResolvedDelete=d;var M=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o.resolvedDeletes=[],o}return n(t,e),t.prototype.execute=function(e){for(var t=e.root.index,o=0,n=this.action.elementIds;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("393a"),r=o("9964"),a=o("3623"),s=o("e1c6"),c=function(){function e(){}return e.prototype.render=function(e,t){var o=a.findParentByFeature(e,r.isExpandable),n=void 0!==o&&o.expanded?"M 1,5 L 8,12 L 15,5 Z":"M 1,8 L 8,15 L 8,1 Z";return i.svg("g",{"class-sprotty-button":"{true}","class-enabled":"{button.enabled}"},i.svg("rect",{x:0,y:0,width:16,height:16,opacity:0}),i.svg("path",{d:n}))},e=n([s.injectable()],e),e}();t.ExpandButtonView=c},"19f2":function(e,t,o){"use strict";var n=o("8ac3"),i=o.n(n);i.a},"19fc":function(e,t,o){"use strict";(function(e){o("7f7f"),o("6762"),o("2fdb"),o("6b54"),o("a481");var n=o("448a"),i=o.n(n),r=(o("f559"),o("7514"),o("3156")),a=o.n(r),s=(o("ac6a"),o("cadf"),o("f400"),o("e325")),c=o("1ad9"),p=o.n(c),l=(o("c862"),o("e00b")),u=o("2f62"),b=o("7cca"),d=o("b12a"),M=o("be3b"),h=o("7173");t["a"]={name:"DocumentationViewer",props:{forPrinting:{type:Boolean,default:!1}},components:{FigureTimeline:h["a"],HistogramViewer:l["a"]},data:function(){return{content:[],tables:[],images:[],loadingImages:[],figures:[],rawDocumentation:[],DOCUMENTATION_TYPES:b["l"],links:new Map,tableCounter:0,referenceCounter:0,viewport:null,needUpdates:!1,visible:!1,waitHeight:320}},computed:a()({},Object(u["c"])("data",["documentationTrees","documentationContent"]),Object(u["c"])("view",["documentationView","documentationSelected","documentationCache","tableFontSize"]),{tree:function(){var e=this;return this.documentationTrees.find(function(t){return t.view===e.documentationView}).tree}}),methods:a()({},Object(u["b"])("view",["setDocumentation"]),{getId:function(e){return this.forPrinting?"".concat(e,"-fp"):e},getFormatter:function(e,t){var o=t.numberFormat;switch(o||(o="%f"),e){case b["K"].TEXT:case b["K"].VALUE:case b["K"].BOOLEAN:return"plaintext";case b["K"].NUMBER:return function(e){return e.getValue()&&""!==e.getValue()?p()(o,e.getValue()):""};default:return"plaintext"}},formatColumns:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=o.numberFormat,i=function e(o,i){var r="".concat(i||"").concat(o.id);return a()({title:o.title,field:r,headerVertical:o.headerVertical,frozen:o.frozen},o.sorter&&{sorter:o.sorter},o.hozAlign&&{hozAlign:o.hozAlign},o.formatter&&{formatter:o.formatter},!o.formatter&&o.type&&{formatter:t.getFormatter(o.type,{numberFormat:o.numberFormat||n})},o.columns&&o.columns.length>0&&{columns:o.columns.map(function(t){return e(t,r)})})};return e.map(function(e){return a()({},i(e))})},selectElement:function(e){var t;t=e.startsWith(".")?document.querySelector(e):document.getElementById(this.getId(e)),t&&(t.scrollIntoView({behavior:"smooth"}),t.classList.add("dv-selected"))},getModelCode:function(e){return e?e.replaceAll("\n","
").replaceAll(" ",''):""},fontSizeChangeListener:function(e){"table"===e&&(this.tables.length>0&&this.tables.forEach(function(e){e.instance&&e.instance.redraw(!0)}),this.forPrinting&&(this.visible=!0,this.build()))},getLinkedText:function(e){var t=this;if(e){var o=[];return i()(e.matchAll(/LINK\/(?[^/]*)\/(?[^/]*)\//g)).forEach(function(e){var n,i=t.documentationContent.get(e[2]);i&&(i.type===b["l"].REFERENCE?n="[".concat(i.id,"]"):i.type===b["l"].TABLE&&(n="<".concat(i.id).concat(++t.tableCounter,">")),i.index=++t.referenceCounter,o.push({what:e[0],with:'').concat(i.index,"")}),t.links.set(e[2],i))}),o.length>0&&o.forEach(function(t){e=e.replace(t.what,t.with)}),e}return e},getImage:function(t,o){var n=this,i=document.getElementById("resimg-".concat(this.getId(t)));if(i)if(this.documentationCache.has(t)){var r=this.documentationCache.get(t);null!==r?i.src=this.documentationCache.get(t):i.style.display="none"}else M["a"].get("".concat("").concat("/modeler").concat(o),{responseType:"arraybuffer"}).then(function(o){var r=o.data;r&&r.byteLength>0?(i.src="data:image/png;base64,".concat(e.from(r,"binary").toString("base64")),n.documentationCache.set(t,i.src)):(i.style.display="none",n.documentationCache.set(t,null))})},getFigure:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=document.getElementById("figimg-".concat(this.documentationView,"-").concat(this.getId(e)));if(i){var r=this.documentationContent.get(e),s="".concat(t.observationId,"/").concat(o);if(r.figure.timeString=n,""!==i.src&&(this.waitHeight=i.clientHeight),this.documentationCache.has(s))i.src=this.documentationCache.get(s).src,r.figure.colormap=this.documentationCache.get(s).colormap;else if(!this.loadingImages.includes(e)){this.loadingImages.push(e),i.src="";var c=this;M["a"].get("".concat("").concat("/modeler").concat(t.baseUrl),{params:a()({format:b["q"].TYPE_RASTER,viewport:c.viewport},-1!==o&&{locator:"T1(1){time=".concat(o,"}")}),responseType:"blob"}).then(function(n){var p=c.loadingImages.indexOf(e);if(-1!==p&&c.loadingImages.splice(c.loadingImages.indexOf(e),1),n){var l=new FileReader,u={src:null,colormap:null};l.readAsDataURL(n.data),l.onload=function(){i.src=l.result,u.src=l.result},M["a"].get("".concat("").concat("/modeler").concat(t.baseUrl),{params:a()({format:b["q"].TYPE_COLORMAP},-1!==o&&{locator:"T1(1){time=".concat(o,"}")})}).then(function(e){e&&e.data&&(r.figure.colormap=Object(d["i"])(e.data),u.colormap=r.figure.colormap),c.documentationCache.set(s,u)}).catch(function(e){console.error(e),c.documentationCache.set(s,u)})}}).catch(function(t){var o=c.loadingImages.indexOf(e);-1!==o&&c.loadingImages.splice(c.loadingImages.indexOf(e),1),console.error(t)})}}},tableCopy:function(e){var t=this.tables.find(function(t){return t.id===e});t?t.instance.copyToClipboard("all"):console.warn("table not found")},tableDownload:function(e){var t=this.tables.find(function(t){return t.id===e});t?t.instance.download("xlsx","".concat(t.name,".xlsx")):console.warn("table not found")},updateThings:function(){var e=this;if(this.visible&&this.needUpdates){console.debug("Update things");var t=this;this.$nextTick(function(){e.tables.forEach(function(e){var o=document.querySelector("#".concat(t.getId(e.id),"-table"));o&&(e.instance=new s["a"]("#".concat(t.getId(e.id),"-table"),e.tabulator))}),e.images.forEach(function(t){e.getImage(t.id,t.url)}),e.figures.forEach(function(t){e.getFigure(t.id,t.instance,t.time,t.timeString)}),e.needUpdates=!1})}},clearCache:function(){this.documentationCache.clear(),this.needUpdates=!0},changeTime:function(e,t){var o=this.figures.find(function(e){return e.id===t});o&&(o.time=e.time,this.getFigure(o.id,o.instance,o.time,e.timeString))},build:function(){var e=this;this.rawDocumentation.splice(0,this.rawDocumentation.length),this.content.splice(0,this.content.length),this.tables.splice(0,this.tables.length),this.images.splice(0,this.images.length),this.figures.splice(0,this.figures.length),this.tree.forEach(function(t){Object(d["g"])(t,"children").forEach(function(t){e.rawDocumentation.push(t)})});var t=document.querySelectorAll(".dv-figure-".concat(this.forPrinting?"print":"display"));t.forEach(function(e){e.setAttribute("src","")}),this.needUpdates=!0;var o=this;this.rawDocumentation.forEach(function(e){var t=o.documentationContent.get(e.id);switch(t.bodyText&&(t.bodyText=o.getLinkedText(t.bodyText)),o.content.push(t),e.type){case b["l"].PARAGRAPH:break;case b["l"].RESOURCE:o.images.push({id:e.id,url:t.resource.spaceDescriptionUrl});break;case b["l"].SECTION:break;case b["l"].TABLE:o.tables.push({id:t.id,name:t.bodyText.replaceAll(" ","_").toLowerCase(),tabulator:{clipboard:"copy",printAsHtml:!0,data:t.table.rows,columns:o.formatColumns(t.table.columns,a()({},t.table.numberFormat&&{numberFormat:t.table.numberFormat})),clipboardCopied:function(){o.$q.notify({message:o.$t("messages.tableCopied"),type:"info",icon:"mdi-information",timeout:1e3})}}});break;case b["l"].FIGURE:o.$set(t.figure,"colormap",null),o.$set(t.figure,"timeString",""),o.figures.push({id:t.id,instance:t.figure,time:-1,timeString:""});break;default:break}}),this.updateThings()}}),watch:{tree:function(){this.build()},documentationSelected:function(e){Array.prototype.forEach.call(document.getElementsByClassName("dv-selected"),function(e){e.classList.remove("dv-selected")}),null!==e&&this.selectElement(e)}},mounted:function(){this.viewport=Math.min(document.body.clientWidth,640),this.$eventBus.$on(b["h"].FONT_SIZE_CHANGE,this.fontSizeChangeListener),this.forPrinting||(null!==this.documentationSelected&&this.selectElement(this.documentationSelected),this.$eventBus.$on(b["h"].REFRESH_DOCUMENTATION,this.clearCache))},activated:function(){this.visible=!0,this.updateThings()},deactivated:function(){this.visible=!1},updated:function(){var e=this;this.forPrinting||(null!==this.documentationSelected&&this.selectElement(this.documentationSelected),this.links.size>0&&(this.links.forEach(function(t,o){document.querySelectorAll(".link-".concat(o)).forEach(function(o){o.onclick=function(){e.setDocumentation({id:t.id,view:b["m"][t.type]})}})}),this.links.clear(),this.tableCounter=0,this.referenceCounter=0))},beforeDestroy:function(){this.forPrinting||this.$eventBus.$off(b["h"].REFRESH_DOCUMENTATION,this.clearCache),this.$eventBus.$off(b["h"].FONT_SIZE_CHANGE,this.fontSizeChangeListener)}}}).call(this,o("b639").Buffer)},"1ad9":function(e,t,o){var n=o("3022"),i=function(e,t,o,n){var i,r,a=[],s=0;while(i=t.exec(e)){if(r=e.slice(s,t.lastIndex-i[0].length),r.length&&a.push(r),o){var c=o.apply(n,i.slice(1).concat(a.length));"undefined"!=typeof c&&("%"===c.specifier?a.push("%"):a.push(c))}s=t.lastIndex}return r=e.slice(s),r.length&&a.push(r),a},r=function(e){this._mapped=!1,this._format=e,this._tokens=i(e,this._re,this._parseDelim,this)};r.prototype._re=/\%(?:\(([\w_.]+)\)|([1-9]\d*)\$)?([0 +\-\#]*)(\*|\d+)?(?:(\.)(\*|\d+)?)?[hlL]?([\%bscdeEfFgGioOuxX])/g,r.prototype._parseDelim=function(e,t,o,n,i,r,a){return e&&(this._mapped=!0),{mapping:e,intmapping:t,flags:o,_minWidth:n,period:i,_precision:r,specifier:a}},r.prototype._specifiers={b:{base:2,isInt:!0},o:{base:8,isInt:!0},x:{base:16,isInt:!0},X:{extend:["x"],toUpper:!0},d:{base:10,isInt:!0},i:{extend:["d"]},u:{extend:["d"],isUnsigned:!0},c:{setArg:function(e){if(!isNaN(e.arg)){var t=parseInt(e.arg);if(t<0||t>127)throw new Error("invalid character code passed to %c in printf");e.arg=isNaN(t)?""+t:String.fromCharCode(t)}}},s:{setMaxWidth:function(e){e.maxWidth="."==e.period?e.precision:-1}},e:{isDouble:!0,doubleNotation:"e"},E:{extend:["e"],toUpper:!0},f:{isDouble:!0,doubleNotation:"f"},F:{extend:["f"]},g:{isDouble:!0,doubleNotation:"g"},G:{extend:["g"],toUpper:!0},O:{isObject:!0}},r.prototype.format=function(e){if(this._mapped&&"object"!=typeof e)throw new Error("format requires a mapping");for(var t,o="",n=0,i=0;i=arguments.length)throw new Error("got "+arguments.length+" printf arguments, insufficient for '"+this._format+"'");t.arg=arguments[n++]}if(!t.compiled){t.compiled=!0,t.sign="",t.zeroPad=!1,t.rightJustify=!1,t.alternative=!1;for(var p={},l=t.flags.length;l--;){var u=t.flags.charAt(l);switch(p[u]=!0,u){case" ":t.sign=" ";break;case"+":t.sign="+";break;case"0":t.zeroPad=!p["-"];break;case"-":t.rightJustify=!0,t.zeroPad=!1;break;case"#":t.alternative=!0;break;default:throw Error("bad formatting flag '"+t.flags.charAt(l)+"'")}}t.minWidth=t._minWidth?parseInt(t._minWidth):0,t.maxWidth=-1,t.toUpper=!1,t.isUnsigned=!1,t.isInt=!1,t.isDouble=!1,t.isObject=!1,t.precision=1,"."==t.period&&(t._precision?t.precision=parseInt(t._precision):t.precision=0);var b=this._specifiers[t.specifier];if("undefined"==typeof b)throw new Error("unexpected specifier '"+t.specifier+"'");if(b.extend){var d=this._specifiers[b.extend];for(var M in d)b[M]=d[M];delete b.extend}for(var h in b)t[h]=b[h]}if("function"==typeof t.setArg&&t.setArg(t),"function"==typeof t.setMaxWidth&&t.setMaxWidth(t),"*"==t._minWidth){if(this._mapped)throw new Error("* width not supported in mapped formats");if(t.minWidth=parseInt(arguments[n++]),isNaN(t.minWidth))throw new Error("the argument for * width at position "+n+" is not a number in "+this._format);t.minWidth<0&&(t.rightJustify=!0,t.minWidth=-t.minWidth)}if("*"==t._precision&&"."==t.period){if(this._mapped)throw new Error("* precision not supported in mapped formats");if(t.precision=parseInt(arguments[n++]),isNaN(t.precision))throw Error("the argument for * precision at position "+n+" is not a number in "+this._format);t.precision<0&&(t.precision=1,t.period="")}t.isInt?("."==t.period&&(t.zeroPad=!1),this.formatInt(t)):t.isDouble?("."!=t.period&&(t.precision=6),this.formatDouble(t)):t.isObject&&this.formatObject(t),this.fitField(t),o+=""+t.arg}return o},r.prototype._zeros10="0000000000",r.prototype._spaces10=" ",r.prototype.formatInt=function(e){var t=parseInt(e.arg);if(!isFinite(t)){if("number"!=typeof e.arg)throw new Error("format argument '"+e.arg+"' not an integer; parseInt returned "+t);t=0}t<0&&(e.isUnsigned||10!=e.base)&&(t=4294967295+t+1),t<0?(e.arg=(-t).toString(e.base),this.zeroPad(e),e.arg="-"+e.arg):(e.arg=t.toString(e.base),t||e.precision?this.zeroPad(e):e.arg="",e.sign&&(e.arg=e.sign+e.arg)),16==e.base&&(e.alternative&&(e.arg="0x"+e.arg),e.arg=e.toUpper?e.arg.toUpperCase():e.arg.toLowerCase()),8==e.base&&e.alternative&&"0"!=e.arg.charAt(0)&&(e.arg="0"+e.arg)},r.prototype.formatDouble=function(e){var t=parseFloat(e.arg);if(!isFinite(t)){if("number"!=typeof e.arg)throw new Error("format argument '"+e.arg+"' not a float; parseFloat returned "+t);t=0}switch(e.doubleNotation){case"e":e.arg=t.toExponential(e.precision);break;case"f":e.arg=t.toFixed(e.precision);break;case"g":Math.abs(t)<1e-4?e.arg=t.toExponential(e.precision>0?e.precision-1:e.precision):e.arg=t.toPrecision(e.precision),e.alternative||(e.arg=e.arg.replace(/(\..*[^0])0*e/,"$1e"),e.arg=e.arg.replace(/\.0*e/,"e").replace(/\.0$/,""));break;default:throw new Error("unexpected double notation '"+e.doubleNotation+"'")}e.arg=e.arg.replace(/e\+(\d)$/,"e+0$1").replace(/e\-(\d)$/,"e-0$1"),e.alternative&&(e.arg=e.arg.replace(/^(\d+)$/,"$1."),e.arg=e.arg.replace(/^(\d+)e/,"$1.e")),t>=0&&e.sign&&(e.arg=e.sign+e.arg),e.arg=e.toUpper?e.arg.toUpperCase():e.arg.toLowerCase()},r.prototype.formatObject=function(e){var t="."===e.period?e.precision:null;e.arg=n.inspect(e.arg,{showHidden:!e.alternative,depth:t,colors:e.sign,compact:!0})},r.prototype.zeroPad=function(e,t){t=2==arguments.length?t:e.precision;var o=!1;"string"!=typeof e.arg&&(e.arg=""+e.arg),"-"===e.arg.substr(0,1)&&(o=!0,e.arg=e.arg.substr(1));var n=t-10;while(e.arg.length=0&&e.arg.length>e.maxWidth&&(e.arg=e.arg.substring(0,e.maxWidth)),e.zeroPad?this.zeroPad(e,e.minWidth):this.spacePad(e)},r.prototype.spacePad=function(e,t){t=2==arguments.length?t:e.minWidth,"string"!=typeof e.arg&&(e.arg=""+e.arg);var o=t-10;while(e.arg.length1?arguments[1]:void 0,f=void 0!==h,z=0,O=l(b);if(f&&(h=n(h,M>2?arguments[2]:void 0,2)),void 0==O||d==Array&&s(O))for(t=c(b.length),o=new d(t);t>z;z++)p(o,z,f?h(b[z],z):b[z]);else for(u=O.call(b),o=new d;!(i=u.next()).done;z++)p(o,z,f?a(u,h,[i.value,z],!0):i.value);return o.length=z,o}})},"1cc1":function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=o("e1c6"),s=o("6923"),c=o("1978"),p=o("4c18"),l=function(){function e(e){void 0===e&&(e=[]),this.menuProviders=e}return e.prototype.getItems=function(e,t){var o=this.menuProviders.map(function(o){return o.getItems(e,t)});return Promise.all(o).then(this.flattenAndRestructure)},e.prototype.flattenAndRestructure=function(e){for(var t=e.reduce(function(e,t){return void 0!==t?e.concat(t):e},[]),o=t.filter(function(e){return e.parentId}),n=function(e){if(e.parentId){for(var o=e.parentId.split("."),n=void 0,i=t,r=function(e){n=i.find(function(t){return e===t.id}),n&&n.children&&(i=n.children)},a=0,s=o;a0}}])},e=n([a.injectable()],e),e}();t.DeleteContextMenuItemProvider=u},"1cd9":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("9757"),p=o("4c18"),l=o("510b"),u=o("3a92"),b=o("1417"),d=o("b669"),M=o("7faf"),h=o("5d19"),f=o("5eb6"),z=o("e4f0"),O=o("6923"),A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.keyDown=function(e,t){return d.matchesKeystroke(t,"KeyE","ctrlCmd","shift")?[new m]:[]},t=i([s.injectable()],t),t}(b.KeyListener);t.ExportSvgKeyListener=A;var m=function(){function e(t){void 0===t&&(t=""),this.requestId=t,this.kind=e.KIND}return e.create=function(){return new e(l.generateRequestId())},e.KIND="requestExportSvg",e}();t.RequestExportSvgAction=m;var v=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o}return n(t,e),t.prototype.execute=function(e){if(M.isExportable(e.root)){var t=e.modelFactory.createRoot(e.root);if(M.isExportable(t))return f.isViewport(t)&&(t.zoom=1,t.scroll={x:0,y:0}),t.index.all().forEach(function(e){p.isSelectable(e)&&e.selected&&(e.selected=!1),z.isHoverable(e)&&e.hoverFeedback&&(e.hoverFeedback=!1)}),{model:t,modelChanged:!0,cause:this.action}}return{model:e.root,modelChanged:!1}},t.KIND=m.KIND,t=i([a(0,s.inject(O.TYPES.Action)),r("design:paramtypes",[m])],t),t}(c.HiddenCommand);t.ExportSvgCommand=v;var g=function(){function e(){}return e.prototype.decorate=function(e,t){return t instanceof u.SModelRoot&&(this.root=t),e},e.prototype.postUpdate=function(e){this.root&&void 0!==e&&e.kind===m.KIND&&this.svgExporter.export(this.root,e)},i([s.inject(O.TYPES.SvgExporter),r("design:type",h.SvgExporter)],e.prototype,"svgExporter",void 0),e=i([s.injectable()],e),e}();t.ExportSvgPostprocessor=g},"1d39":function(e,t,o){"use strict";var n=o("1963"),i=o.n(n);i.a},"1e19":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("ed4f"),a=o("c444"),s=o("cf98"),c=o("fe37"),p=o("842c"),l=new n.ContainerModule(function(e,t,o){p.configureCommand({bind:e,isBound:o},r.CenterCommand),p.configureCommand({bind:e,isBound:o},r.FitToScreenCommand),p.configureCommand({bind:e,isBound:o},a.SetViewportCommand),p.configureCommand({bind:e,isBound:o},a.GetViewportCommand),e(i.TYPES.KeyListener).to(r.CenterKeyboardListener),e(i.TYPES.MouseListener).to(s.ScrollMouseListener),e(i.TYPES.MouseListener).to(c.ZoomMouseListener)});t.default=l},"1e31":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("9d6c"),a=new n.ContainerModule(function(e){e(r.EdgeLayoutPostprocessor).toSelf().inSingletonScope(),e(i.TYPES.IVNodePostprocessor).toService(r.EdgeLayoutPostprocessor),e(i.TYPES.HiddenVNodePostprocessor).toService(r.EdgeLayoutPostprocessor)});t.default=a},"1e94":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.of=function(t,o){var n=new e;return n.bindings=t,n.middleware=o,n},e}();t.ContainerSnapshot=n},"1f0f":function(e,t,o){},"1f66":function(e,t,o){},"1f89":function(e,t,o){"use strict";function n(e){return e.hasFeature(t.openFeature)}Object.defineProperty(t,"__esModule",{value:!0}),t.openFeature=Symbol("openFeature"),t.isOpenable=n},"1fac":function(e,t,o){"use strict";var n=o("e5a7"),i=o.n(n);i.a},2:function(e,t){},"218d":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var r=o("393a"),a=o("47b7"),s=o("8e97"),c=o("dd02"),p=o("e1c6"),l=function(){function e(){}return e.prototype.render=function(e,t){var o="scale("+e.zoom+") translate("+-e.scroll.x+","+-e.scroll.y+")";return r.svg("svg",null,r.svg("g",{transform:o},t.renderChildren(e)))},e=i([p.injectable()],e),e}();t.SvgViewportView=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(e,t){if(this.isVisible(e,t)){var o=this.getRadius(e);return r.svg("g",null,r.svg("circle",{"class-sprotty-node":e instanceof a.SNode,"class-sprotty-port":e instanceof a.SPort,"class-mouseover":e.hoverFeedback,"class-selected":e.selected,r:o,cx:o,cy:o}),t.renderChildren(e))}},t.prototype.getRadius=function(e){var t=Math.min(e.size.width,e.size.height);return t>0?t/2:0},t=i([p.injectable()],t),t}(s.ShapeView);t.CircularNodeView=u;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(e,t){if(this.isVisible(e,t))return r.svg("g",null,r.svg("rect",{"class-sprotty-node":e instanceof a.SNode,"class-sprotty-port":e instanceof a.SPort,"class-mouseover":e.hoverFeedback,"class-selected":e.selected,x:"0",y:"0",width:Math.max(e.size.width,0),height:Math.max(e.size.height,0)}),t.renderChildren(e))},t=i([p.injectable()],t),t}(s.ShapeView);t.RectangularNodeView=b;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(e,t){if(this.isVisible(e,t)){var o=new c.Diamond({height:Math.max(e.size.height,0),width:Math.max(e.size.width,0),x:0,y:0}),n=M(o.topPoint)+" "+M(o.rightPoint)+" "+M(o.bottomPoint)+" "+M(o.leftPoint);return r.svg("g",null,r.svg("polygon",{"class-sprotty-node":e instanceof a.SNode,"class-sprotty-port":e instanceof a.SPort,"class-mouseover":e.hoverFeedback,"class-selected":e.selected,points:n}),t.renderChildren(e))}},t=i([p.injectable()],t),t}(s.ShapeView);function M(e){return e.x+","+e.y}t.DiamondNodeView=d;var h=function(){function e(){}return e.prototype.render=function(e,t){return r.svg("g",null)},e=i([p.injectable()],e),e}();t.EmptyGroupView=h},2196:function(e,t,o){},"21a6":function(e,t,o){(function(o){var n,i,r;(function(o,a){i=[],n=a,r="function"===typeof n?n.apply(t,i):n,void 0===r||(e.exports=r)})(0,function(){"use strict";function t(e,t){return"undefined"==typeof t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function n(e,t,o){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){s(n.response,t,o)},n.onerror=function(){console.error("could not download file")},n.send()}function i(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function r(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(o){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof o&&o.global===o?o:void 0,s=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype?function(e,t,o){var s=a.URL||a.webkitURL,c=document.createElement("a");t=t||e.name||"download",c.download=t,c.rel="noopener","string"==typeof e?(c.href=e,c.origin===location.origin?r(c):i(c.href)?n(e,t,o):r(c,c.target="_blank")):(c.href=s.createObjectURL(e),setTimeout(function(){s.revokeObjectURL(c.href)},4e4),setTimeout(function(){r(c)},0))}:"msSaveOrOpenBlob"in navigator?function(e,o,a){if(o=o||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,a),o);else if(i(e))n(e,o,a);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout(function(){r(s)})}}:function(e,t,o,i){if(i=i||open("","_blank"),i&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return n(e,t,o);var r="application/octet-stream"===e.type,s=/constructor/i.test(a.HTMLElement)||a.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||r&&s)&&"object"==typeof FileReader){var p=new FileReader;p.onloadend=function(){var e=p.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},p.readAsDataURL(e)}else{var l=a.URL||a.webkitURL,u=l.createObjectURL(e);i?i.location=u:location.href=u,i=null,setTimeout(function(){l.revokeObjectURL(u)},4e4)}});a.saveAs=s.saveAs=s,e.exports=s})}).call(this,o("c8ba"))},"232d":function(e,t,o){},"23a0":function(e,t,o){"use strict";var n=o("79d7"),i=o.n(n);i.a},2590:function(e,t,o){"use strict";var n=o("1288"),i=o.n(n);i.a},"26ad":function(e,t,o){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,o=1,n=arguments.length;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o("e1c6"),s=o("3f0a"),c=o("6923"),p=o("5d19"),l=o("3a92"),u=function(){function e(){}return e.prototype.initialize=function(e){e.register(s.RequestModelAction.KIND,this),e.register(p.ExportSvgAction.KIND,this)},i([a.inject(c.TYPES.IActionDispatcher),r("design:type",Object)],e.prototype,"actionDispatcher",void 0),i([a.inject(c.TYPES.ViewerOptions),r("design:type",Object)],e.prototype,"viewerOptions",void 0),e=i([a.injectable()],e),e}();t.ModelSource=u;var b=function(){function e(){}return e.prototype.apply=function(e,t){var o=new l.SModelIndex;o.add(e);for(var n=0,i=t.bounds;n=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=o("393a"),s=o("dd7b"),c=o("6af2"),p=o("ff70"),l=o("9016"),u=o("6907"),b=o("f923"),d=o("e1c6"),M=o("6923"),h=o("fba3"),f=o("33b2"),z=o("e45b"),O=o("8d53"),A=o("302f"),m=function(){function e(e,t,o){this.viewRegistry=e,this.targetKind=t,this.postprocessors=o}return e.prototype.decorate=function(e,t){return O.isThunk(e)?e:this.postprocessors.reduce(function(e,o){return o.decorate(e,t)},e)},e.prototype.renderElement=function(e,t){var o=this.viewRegistry.get(e.type),n=o.render(e,this,t);return n?this.decorate(n,e):void 0},e.prototype.renderChildren=function(e,t){var o=this;return e.children.map(function(e){return o.renderElement(e,t)}).filter(function(e){return void 0!==e})},e.prototype.postUpdate=function(e){this.postprocessors.forEach(function(t){return t.postUpdate(e)})},e}();t.ModelRenderer=m;var v=function(){function e(){this.patcher=s.init(this.createModules())}return e.prototype.createModules=function(){return[c.propsModule,p.attributesModule,b.classModule,l.styleModule,u.eventListenersModule]},e=n([d.injectable(),i("design:paramtypes",[])],e),e}();t.PatcherProvider=v;var g=function(){function e(e,t,o){var n=this;this.onWindowResize=function(e){var t=document.getElementById(n.options.baseDiv);if(null!==t){var o=n.getBoundsInPage(t);n.actiondispatcher.dispatch(new f.InitializeCanvasBoundsAction(o))}},this.renderer=e("main",o),this.patcher=t.patcher}return e.prototype.update=function(e,t){var o=this;this.logger.log(this,"rendering",e);var n=a.html("div",{id:this.options.baseDiv},this.renderer.renderElement(e));if(void 0!==this.lastVDOM){var i=this.hasFocus();z.copyClassesFromVNode(this.lastVDOM,n),this.lastVDOM=this.patcher.call(this,this.lastVDOM,n),this.restoreFocus(i)}else if("undefined"!==typeof document){var r=document.getElementById(this.options.baseDiv);null!==r?("undefined"!==typeof window&&window.addEventListener("resize",function(){o.onWindowResize(n)}),z.copyClassesFromElement(r,n),z.setClass(n,this.options.baseClass,!0),this.lastVDOM=this.patcher.call(this,r,n)):this.logger.error(this,"element not in DOM:",this.options.baseDiv)}this.renderer.postUpdate(t)},e.prototype.hasFocus=function(){if("undefined"!==typeof document&&document.activeElement&&this.lastVDOM.children&&this.lastVDOM.children.length>0){var e=this.lastVDOM.children[0];if("object"===typeof e){var t=e.elm;return document.activeElement===t}}return!1},e.prototype.restoreFocus=function(e){if(e&&this.lastVDOM.children&&this.lastVDOM.children.length>0){var t=this.lastVDOM.children[0];if("object"===typeof t){var o=t.elm;o&&"function"===typeof o.focus&&o.focus()}}},e.prototype.getBoundsInPage=function(e){var t=e.getBoundingClientRect(),o=h.getWindowScroll();return{x:t.left+o.x,y:t.top+o.y,width:t.width,height:t.height}},n([d.inject(M.TYPES.ViewerOptions),i("design:type",Object)],e.prototype,"options",void 0),n([d.inject(M.TYPES.ILogger),i("design:type",Object)],e.prototype,"logger",void 0),n([d.inject(M.TYPES.IActionDispatcher),i("design:type",Object)],e.prototype,"actiondispatcher",void 0),e=n([d.injectable(),r(0,d.inject(M.TYPES.ModelRendererFactory)),r(1,d.inject(M.TYPES.PatcherProvider)),r(2,d.multiInject(M.TYPES.IVNodePostprocessor)),r(2,d.optional()),i("design:paramtypes",[Function,v,Array])],e),e}();t.ModelViewer=g;var y=function(){function e(e,t,o){this.hiddenRenderer=e("hidden",o),this.patcher=t.patcher}return e.prototype.update=function(e,t){var o;if(this.logger.log(this,"rendering hidden"),e.type===A.EMPTY_ROOT.type)o=a.html("div",{id:this.options.hiddenDiv});else{var n=this.hiddenRenderer.renderElement(e);n&&z.setAttr(n,"opacity",0),o=a.html("div",{id:this.options.hiddenDiv},n)}if(void 0!==this.lastHiddenVDOM)z.copyClassesFromVNode(this.lastHiddenVDOM,o),this.lastHiddenVDOM=this.patcher.call(this,this.lastHiddenVDOM,o);else{var i=document.getElementById(this.options.hiddenDiv);null===i?(i=document.createElement("div"),document.body.appendChild(i)):z.copyClassesFromElement(i,o),z.setClass(o,this.options.baseClass,!0),z.setClass(o,this.options.hiddenClass,!0),this.lastHiddenVDOM=this.patcher.call(this,i,o)}this.hiddenRenderer.postUpdate(t)},n([d.inject(M.TYPES.ViewerOptions),i("design:type",Object)],e.prototype,"options",void 0),n([d.inject(M.TYPES.ILogger),i("design:type",Object)],e.prototype,"logger",void 0),e=n([d.injectable(),r(0,d.inject(M.TYPES.ModelRendererFactory)),r(1,d.inject(M.TYPES.PatcherProvider)),r(2,d.multiInject(M.TYPES.HiddenVNodePostprocessor)),r(2,d.optional()),i("design:paramtypes",[Function,v,Array])],e),e}();t.HiddenModelViewer=y;var q=function(){function e(e,t,o){this.modelRendererFactory=e,this.popupRenderer=this.modelRendererFactory("popup",o),this.patcher=t.patcher}return e.prototype.update=function(e,t){this.logger.log(this,"rendering popup",e);var o,n=e.type===A.EMPTY_ROOT.type;if(n)o=a.html("div",{id:this.options.popupDiv});else{var i=e.canvasBounds,r={top:i.y+"px",left:i.x+"px"};o=a.html("div",{id:this.options.popupDiv,style:r},this.popupRenderer.renderElement(e))}if(void 0!==this.lastPopupVDOM)z.copyClassesFromVNode(this.lastPopupVDOM,o),z.setClass(o,this.options.popupClosedClass,n),this.lastPopupVDOM=this.patcher.call(this,this.lastPopupVDOM,o);else if("undefined"!==typeof document){var s=document.getElementById(this.options.popupDiv);null===s?(s=document.createElement("div"),document.body.appendChild(s)):z.copyClassesFromElement(s,o),z.setClass(o,this.options.popupClass,!0),z.setClass(o,this.options.popupClosedClass,n),this.lastPopupVDOM=this.patcher.call(this,s,o)}this.popupRenderer.postUpdate(t)},n([d.inject(M.TYPES.ViewerOptions),i("design:type",Object)],e.prototype,"options",void 0),n([d.inject(M.TYPES.ILogger),i("design:type",Object)],e.prototype,"logger",void 0),e=n([d.injectable(),r(0,d.inject(M.TYPES.ModelRendererFactory)),r(1,d.inject(M.TYPES.PatcherProvider)),r(2,d.multiInject(M.TYPES.PopupVNodePostprocessor)),r(2,d.optional()),i("design:paramtypes",[Function,v,Array])],e),e}();t.PopupModelViewer=q},"2b54":function(e,t,o){"use strict";var n=o("e7ed"),i=o.n(n);i.a},"2c63":function(e,t,o){e.exports=o("dc14")},"2cac":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e34e"),i=o("cf81"),r=function(){function e(e){this._binding=e,this._bindingWhenSyntax=new i.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new n.BindingOnSyntax(this._binding)}return e.prototype.when=function(e){return this._bindingWhenSyntax.when(e)},e.prototype.whenTargetNamed=function(e){return this._bindingWhenSyntax.whenTargetNamed(e)},e.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},e.prototype.whenTargetTagged=function(e,t){return this._bindingWhenSyntax.whenTargetTagged(e,t)},e.prototype.whenInjectedInto=function(e){return this._bindingWhenSyntax.whenInjectedInto(e)},e.prototype.whenParentNamed=function(e){return this._bindingWhenSyntax.whenParentNamed(e)},e.prototype.whenParentTagged=function(e,t){return this._bindingWhenSyntax.whenParentTagged(e,t)},e.prototype.whenAnyAncestorIs=function(e){return this._bindingWhenSyntax.whenAnyAncestorIs(e)},e.prototype.whenNoAncestorIs=function(e){return this._bindingWhenSyntax.whenNoAncestorIs(e)},e.prototype.whenAnyAncestorNamed=function(e){return this._bindingWhenSyntax.whenAnyAncestorNamed(e)},e.prototype.whenAnyAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenAnyAncestorTagged(e,t)},e.prototype.whenNoAncestorNamed=function(e){return this._bindingWhenSyntax.whenNoAncestorNamed(e)},e.prototype.whenNoAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenNoAncestorTagged(e,t)},e.prototype.whenAnyAncestorMatches=function(e){return this._bindingWhenSyntax.whenAnyAncestorMatches(e)},e.prototype.whenNoAncestorMatches=function(e){return this._bindingWhenSyntax.whenNoAncestorMatches(e)},e.prototype.onActivation=function(e){return this._bindingOnSyntax.onActivation(e)},e}();t.BindingWhenOnSyntax=r},"2cee":function(e,t,o){"use strict";o("6762"),o("2fdb");t["a"]={data:function(){return{ellipsed:[]}},methods:{tooltipIt:function(e,t){e.target.offsetWidth=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o("e1c6"),s=o("6923"),c=o("9757"),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.execute=function(e){var t=this.retrieveResult(e);return this.actionDispatcher.dispatch(t),{model:e.root,modelChanged:!1}},t.prototype.undo=function(e){return{model:e.root,modelChanged:!1}},t.prototype.redo=function(e){return{model:e.root,modelChanged:!1}},i([a.inject(s.TYPES.IActionDispatcher),r("design:type",Object)],t.prototype,"actionDispatcher",void 0),t=i([a.injectable()],t),t}(c.SystemCommand);t.ModelRequestCommand=p},3:function(e,t){},3022:function(e,t,o){(function(e){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),o={},n=0;n=r)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(e){return"[Circular]"}default:return e}}),c=n[o];o=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),O(o)?n.showHidden=o:o&&t._extend(n,o),q(n.showHidden)&&(n.showHidden=!1),q(n.depth)&&(n.depth=2),q(n.colors)&&(n.colors=!1),q(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),u(n,e,n.depth)}function c(e,t){var o=s.styles[t];return o?"["+s.colors[o][0]+"m"+e+"["+s.colors[o][1]+"m":e}function p(e,t){return e}function l(e){var t={};return e.forEach(function(e,o){t[e]=!0}),t}function u(e,o,n){if(e.customInspect&&o&&L(o.inspect)&&o.inspect!==t.inspect&&(!o.constructor||o.constructor.prototype!==o)){var i=o.inspect(n,e);return g(i)||(i=u(e,i,n)),i}var r=b(e,o);if(r)return r;var a=Object.keys(o),s=l(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(o)),w(o)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(o);if(0===a.length){if(L(o)){var c=o.name?": "+o.name:"";return e.stylize("[Function"+c+"]","special")}if(_(o))return e.stylize(RegExp.prototype.toString.call(o),"regexp");if(R(o))return e.stylize(Date.prototype.toString.call(o),"date");if(w(o))return d(o)}var p,O="",A=!1,m=["{","}"];if(z(o)&&(A=!0,m=["[","]"]),L(o)){var v=o.name?": "+o.name:"";O=" [Function"+v+"]"}return _(o)&&(O=" "+RegExp.prototype.toString.call(o)),R(o)&&(O=" "+Date.prototype.toUTCString.call(o)),w(o)&&(O=" "+d(o)),0!==a.length||A&&0!=o.length?n<0?_(o)?e.stylize(RegExp.prototype.toString.call(o),"regexp"):e.stylize("[Object]","special"):(e.seen.push(o),p=A?M(e,o,n,s,a):a.map(function(t){return h(e,o,n,s,t,A)}),e.seen.pop(),f(p,O,m)):m[0]+O+m[1]}function b(e,t){if(q(t))return e.stylize("undefined","undefined");if(g(t)){var o="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(o,"string")}return v(t)?e.stylize(""+t,"number"):O(t)?e.stylize(""+t,"boolean"):A(t)?e.stylize("null","null"):void 0}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function M(e,t,o,n,i){for(var r=[],a=0,s=t.length;a-1&&(s=r?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n"))):s=e.stylize("[Circular]","special")),q(a)){if(r&&i.match(/^\d+$/))return s;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function f(e,t,o){var n=e.reduce(function(e,t){return 0,t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?o[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+o[1]:o[0]+t+" "+e.join(", ")+" "+o[1]}function z(e){return Array.isArray(e)}function O(e){return"boolean"===typeof e}function A(e){return null===e}function m(e){return null==e}function v(e){return"number"===typeof e}function g(e){return"string"===typeof e}function y(e){return"symbol"===typeof e}function q(e){return void 0===e}function _(e){return W(e)&&"[object RegExp]"===S(e)}function W(e){return"object"===typeof e&&null!==e}function R(e){return W(e)&&"[object Date]"===S(e)}function w(e){return W(e)&&("[object Error]"===S(e)||e instanceof Error)}function L(e){return"function"===typeof e}function C(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function S(e){return Object.prototype.toString.call(e)}function E(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(o){if(q(r)&&(r=Object({NODE_ENV:"production",CLIENT:!0,SERVER:!1,DEV:!1,PROD:!0,THEME:"mat",MODE:"spa",WS_BASE_URL:"",STOMP_CLIENT_DEBUG:!1,KEXPLORER_DEBUG:!1,ROUTER_BASE:"/modeler/ui",WEB_BASE_URL:"https://integratedmodelling.org",PACKAGE_VERSION:"0.22.0",PACKAGE_BUILD:"",ENGINE_URL:"/modeler",ENGINE_SHARED:"/modeler/shared/",ENGINE_LOGIN:"/modeler",API:"/modeler/api/v2",WS_URL:"/modeler/message",WS_SUBSCRIBE:"/message",WS_MESSAGE_DESTINATION:"/klab/message",REST_UPLOAD_MAX_SIZE:"1024MB",SEARCH_TIMEOUT_MS:"4000",VUE_ROUTER_MODE:"hash",VUE_ROUTER_BASE:"",APP_URL:"undefined"}).NODE_DEBUG||""),o=o.toUpperCase(),!a[o])if(new RegExp("\\b"+o+"\\b","i").test(r)){var n=e.pid;a[o]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",o,n,e)}}else a[o]=function(){};return a[o]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=z,t.isBoolean=O,t.isNull=A,t.isNullOrUndefined=m,t.isNumber=v,t.isString=g,t.isSymbol=y,t.isUndefined=q,t.isRegExp=_,t.isObject=W,t.isDate=R,t.isError=w,t.isFunction=L,t.isPrimitive=C,t.isBuffer=o("d60a");var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function x(){var e=new Date,t=[E(e.getHours()),E(e.getMinutes()),E(e.getSeconds())].join(":");return[e.getDate(),T[e.getMonth()],t].join(" ")}function N(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",x(),t.format.apply(t,arguments))},t.inherits=o("28a0"),t._extend=function(e,t){if(!t||!W(t))return e;var o=Object.keys(t),n=o.length;while(n--)e[o[n]]=t[o[n]];return e};var B="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function k(e,t){if(!e){var o=new Error("Promise was rejected with a falsy value");o.reason=e,e=o}return t(e)}function P(t){if("function"!==typeof t)throw new TypeError('The "original" argument must be of type Function');function o(){for(var o=[],n=0;n=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("6923"),p=o("3864"),l=o("3a92"),u=function(){function e(){}return e.prototype.createElement=function(e,t){var o;if(this.registry.hasKey(e.type)){var n=this.registry.get(e.type,void 0);if(!(n instanceof l.SChildElement))throw new Error("Element with type "+e.type+" was expected to be an SChildElement.");o=n}else o=new l.SChildElement;return this.initializeChild(o,e,t)},e.prototype.createRoot=function(e){var t;if(this.registry.hasKey(e.type)){var o=this.registry.get(e.type,void 0);if(!(o instanceof l.SModelRoot))throw new Error("Element with type "+e.type+" was expected to be an SModelRoot.");t=o}else t=new l.SModelRoot;return this.initializeRoot(t,e)},e.prototype.createSchema=function(e){var t=this,o={};for(var n in e)if(!this.isReserved(e,n)){var i=e[n];"function"!==typeof i&&(o[n]=i)}return e instanceof l.SParentElement&&(o["children"]=e.children.map(function(e){return t.createSchema(e)})),o},e.prototype.initializeElement=function(e,t){for(var o in t)if(!this.isReserved(e,o)){var n=t[o];"function"!==typeof n&&(e[o]=n)}return e},e.prototype.isReserved=function(e,t){if(["children","parent","index"].indexOf(t)>=0)return!0;var o=e;do{var n=Object.getOwnPropertyDescriptor(o,t);if(void 0!==n)return void 0!==n.get;o=Object.getPrototypeOf(o)}while(o);return!1},e.prototype.initializeParent=function(e,t){var o=this;return this.initializeElement(e,t),l.isParent(t)&&(e.children=t.children.map(function(t){return o.createElement(t,e)})),e},e.prototype.initializeChild=function(e,t,o){return this.initializeParent(e,t),void 0!==o&&(e.parent=o),e},e.prototype.initializeRoot=function(e,t){return this.initializeParent(e,t),e.index.add(e),e},i([s.inject(c.TYPES.SModelRegistry),r("design:type",b)],e.prototype,"registry",void 0),e=i([s.injectable()],e),e}();t.SModelFactory=u,t.EMPTY_ROOT=Object.freeze({type:"NONE",id:"EMPTY"});var b=function(e){function t(t){var o=e.call(this)||this;return t.forEach(function(e){var t=o.getDefaultFeatures(e.constr);if(!t&&e.features&&e.features.enable&&(t=[]),t){var n=d(t,e.features);o.register(e.type,function(){var t=new e.constr;return t.features=n,t})}else o.register(e.type,function(){return new e.constr})}),o}return n(t,e),t.prototype.getDefaultFeatures=function(e){var t=e;do{var o=t.DEFAULT_FEATURES;if(o)return o;t=Object.getPrototypeOf(t)}while(t)},t=i([s.injectable(),a(0,s.multiInject(c.TYPES.SModelElementRegistration)),a(0,s.optional()),r("design:paramtypes",[Array])],t),t}(p.FactoryRegistry);function d(e,t){var o=new Set(e);if(t&&t.enable)for(var n=0,i=t.enable;n= than the number of constructor arguments of its base class."},t.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",t.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE="Invalid Container option. Default scope must be a string ('singleton' or 'transient').",t.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean",t.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean",t.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class",t.POST_CONSTRUCT_ERROR=function(){for(var e=[],t=0;t=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o("e1c6"),s=o("6923"),c=o("3864"),p=o("dd02"),l=o("66f9"),u=o("da84"),b=o("4b75"),d=o("ac2a"),M=function(e){function t(){var t=e.call(this)||this;return t.register(u.VBoxLayouter.KIND,new u.VBoxLayouter),t.register(b.HBoxLayouter.KIND,new b.HBoxLayouter),t.register(d.StackLayouter.KIND,new d.StackLayouter),t}return n(t,e),t}(c.InstanceRegistry);t.LayoutRegistry=M;var h=function(){function e(){}return e.prototype.layout=function(e){new f(e,this.layoutRegistry,this.logger).layout()},i([a.inject(s.TYPES.LayoutRegistry),r("design:type",M)],e.prototype,"layoutRegistry",void 0),i([a.inject(s.TYPES.ILogger),r("design:type",Object)],e.prototype,"logger",void 0),e=i([a.injectable()],e),e}();t.Layouter=h;var f=function(){function e(e,t,o){var n=this;this.element2boundsData=e,this.layoutRegistry=t,this.log=o,this.toBeLayouted=[],e.forEach(function(e,t){l.isLayoutContainer(t)&&n.toBeLayouted.push(t)})}return e.prototype.getBoundsData=function(e){var t=this.element2boundsData.get(e),o=e.bounds;return l.isLayoutContainer(e)&&this.toBeLayouted.indexOf(e)>=0&&(o=this.doLayout(e)),t||(t={bounds:o,boundsChanged:!1,alignmentChanged:!1},this.element2boundsData.set(e,t)),t},e.prototype.layout=function(){while(this.toBeLayouted.length>0){var e=this.toBeLayouted[0];this.doLayout(e)}},e.prototype.doLayout=function(e){var t=this.toBeLayouted.indexOf(e);t>=0&&this.toBeLayouted.splice(t,1);var o=this.layoutRegistry.get(e.layout);o&&o.layout(e,this);var n=this.element2boundsData.get(e);return void 0!==n&&void 0!==n.bounds?n.bounds:(this.log.error(e,"Layout failed"),p.EMPTY_BOUNDS)},e}();t.StatefulLayouter=f},"33b2":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("6923"),p=o("dd02"),l=o("3a92"),u=o("9757"),b=o("fba3"),d=function(){function e(){}return e.prototype.decorate=function(e,t){return t instanceof l.SModelRoot&&!p.isValidDimension(t.canvasBounds)&&(this.rootAndVnode=[t,e]),e},e.prototype.postUpdate=function(){if(void 0!==this.rootAndVnode){var e=this.rootAndVnode[1].elm,t=this.rootAndVnode[0].canvasBounds;if(void 0!==e){var o=this.getBoundsInPage(e);p.almostEquals(o.x,t.x)&&p.almostEquals(o.y,t.y)&&p.almostEquals(o.width,t.width)&&p.almostEquals(o.height,t.width)||this.actionDispatcher.dispatch(new M(o))}this.rootAndVnode=void 0}},e.prototype.getBoundsInPage=function(e){var t=e.getBoundingClientRect(),o=b.getWindowScroll();return{x:t.left+o.x,y:t.top+o.y,width:t.width,height:t.height}},i([s.inject(c.TYPES.IActionDispatcher),r("design:type",Object)],e.prototype,"actionDispatcher",void 0),e=i([s.injectable()],e),e}();t.CanvasBoundsInitializer=d;var M=function(){function e(t){this.newCanvasBounds=t,this.kind=e.KIND}return e.KIND="initializeCanvasBounds",e}();t.InitializeCanvasBoundsAction=M;var h=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o}return n(t,e),t.prototype.execute=function(e){return this.newCanvasBounds=this.action.newCanvasBounds,e.root.canvasBounds=this.newCanvasBounds,e.root},t.prototype.undo=function(e){return e.root},t.prototype.redo=function(e){return e.root},t.KIND=M.KIND,t=i([s.injectable(),a(0,s.inject(c.TYPES.Action)),r("design:paramtypes",[M])],t),t}(u.SystemCommand);t.InitializeCanvasBoundsCommand=h},3585:function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=o("3a92"),r=o("dd02"),a=o("66f9"),s=o("1978"),c=o("4c18"),p=o("e4f0"),l=o("a0af"),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.routingPoints=[],t}return n(t,e),Object.defineProperty(t.prototype,"source",{get:function(){return this.index.getById(this.sourceId)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){return this.index.getById(this.targetId)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bounds",{get:function(){return this.routingPoints.reduce(function(e,t){return r.combine(e,{x:t.x,y:t.y,width:0,height:0})},r.EMPTY_BOUNDS)},enumerable:!0,configurable:!0}),t}(i.SChildElement);function b(e){return e.hasFeature(t.connectableFeature)&&e.canConnect}function d(e,t){void 0===t&&(t=e.routingPoints);var o=M(t),n=e;while(n instanceof i.SChildElement){var r=n.parent;o=r.localToParent(o),n=r}return o}function M(e){for(var t={x:NaN,y:NaN,width:0,height:0},o=0,n=e;ot.x+t.width&&(t.width=i.x-t.x),i.yt.y+t.height&&(t.height=i.y-t.y))}return t}t.SRoutableElement=u,t.connectableFeature=Symbol("connectableFeature"),t.isConnectable=b,t.getAbsoluteRouteBounds=d,t.getRouteBounds=M;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.strokeWidth=0,t}return n(t,e),Object.defineProperty(t.prototype,"incomingEdges",{get:function(){return this.index.getIncomingEdges(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outgoingEdges",{get:function(){return this.index.getOutgoingEdges(this)},enumerable:!0,configurable:!0}),t.prototype.canConnect=function(e,t){return!0},t}(a.SShapeElement);t.SConnectableElement=h;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.editMode=!1,t.hoverFeedback=!1,t.selected=!1,t}return n(t,e),t.prototype.hasFeature=function(e){return-1!==t.DEFAULT_FEATURES.indexOf(e)},t.DEFAULT_FEATURES=[c.selectFeature,l.moveFeature,p.hoverFeedbackFeature],t}(i.SChildElement);t.SRoutingHandle=f;var z=function(e){function t(){var t=e.call(this)||this;return t.type="dangling-anchor",t.size={width:0,height:0},t}return n(t,e),t.DEFAULT_FEATURES=[s.deletableFeature],t}(h);t.SDanglingAnchor=z,t.edgeInProgressID="edge-in-progress",t.edgeInProgressTargetHandleID=t.edgeInProgressID+"-target-anchor"},"359b":function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("393a"),r=o("e45b"),a=o("e1c6"),s=function(){function e(){}return e.prototype.render=function(e,t){for(var o=i.html("div",null,t.renderChildren(e)),n=0,a=e.classes;n=0?e.type.substring(0,t):e.type}function s(e){if(!e.type)return"";var t=e.type.indexOf(":");return t>=0?e.type.substring(t+1):e.type}function c(e,t){if(e.id===t)return e;if(void 0!==e.children)for(var o=0,n=e.children;o=0;r--)e=n[r].parentToLocal(e)}return e}function b(e,t,o){var n=u(e,t,o),i=u({x:e.x+e.width,y:e.y+e.height},t,o);return{x:n.x,y:n.y,width:i.x-n.x,height:i.y-n.y}}t.registerModelElement=r,t.getBasicType=a,t.getSubType=s,t.findElement=c,t.findParent=p,t.findParentByFeature=l,t.translatePoint=u,t.translateBounds=b},3672:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("842c"),a=o("be02"),s=o("064a"),c=o("3585"),p=o("218d"),l=o("1978"),u=o("cd26"),b=o("1254"),d=o("a5f4"),M=o("61d8");t.edgeEditModule=new n.ContainerModule(function(e,t,o){var n={bind:e,isBound:o};r.configureCommand(n,d.SwitchEditModeCommand),r.configureCommand(n,M.ReconnectCommand),r.configureCommand(n,l.DeleteElementCommand),s.configureModelElement(n,"dangling-anchor",c.SDanglingAnchor,p.EmptyGroupView)}),t.labelEditModule=new n.ContainerModule(function(e,t,o){e(i.TYPES.MouseListener).to(u.EditLabelMouseListener),e(i.TYPES.KeyListener).to(u.EditLabelKeyListener),r.configureCommand({bind:e,isBound:o},u.ApplyLabelEditCommand)}),t.labelEditUiModule=new n.ContainerModule(function(e,t,o){var n={bind:e,isBound:o};a.configureActionHandler(n,u.EditLabelAction.KIND,b.EditLabelActionHandler),e(b.EditLabelUI).toSelf().inSingletonScope(),e(i.TYPES.IUIExtension).toService(b.EditLabelUI)})},"36e4":function(e,t,o){},"37a9":function(e,t,o){"use strict";var n=o("ddfc"),i=o.n(n);i.a},3864:function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("e1c6"),r=function(){function e(){this.elements=new Map}return e.prototype.register=function(e,t){if(void 0===e)throw new Error("Key is undefined");if(this.hasKey(e))throw new Error("Key is already registered: "+e);this.elements.set(e,t)},e.prototype.deregister=function(e){if(void 0===e)throw new Error("Key is undefined");this.elements.delete(e)},e.prototype.hasKey=function(e){return this.elements.has(e)},e.prototype.get=function(e,t){var o=this.elements.get(e);return o?new o(t):this.missing(e,t)},e.prototype.missing=function(e,t){throw new Error("Unknown registry key: "+e)},e=n([i.injectable()],e),e}();t.ProviderRegistry=r;var a=function(){function e(){this.elements=new Map}return e.prototype.register=function(e,t){if(void 0===e)throw new Error("Key is undefined");if(this.hasKey(e))throw new Error("Key is already registered: "+e);this.elements.set(e,t)},e.prototype.deregister=function(e){if(void 0===e)throw new Error("Key is undefined");this.elements.delete(e)},e.prototype.hasKey=function(e){return this.elements.has(e)},e.prototype.get=function(e,t){var o=this.elements.get(e);return o?o(t):this.missing(e,t)},e.prototype.missing=function(e,t){throw new Error("Unknown registry key: "+e)},e=n([i.injectable()],e),e}();t.FactoryRegistry=a;var s=function(){function e(){this.elements=new Map}return e.prototype.register=function(e,t){if(void 0===e)throw new Error("Key is undefined");if(this.hasKey(e))throw new Error("Key is already registered: "+e);this.elements.set(e,t)},e.prototype.deregister=function(e){if(void 0===e)throw new Error("Key is undefined");this.elements.delete(e)},e.prototype.hasKey=function(e){return this.elements.has(e)},e.prototype.get=function(e){var t=this.elements.get(e);return t||this.missing(e)},e.prototype.missing=function(e){throw new Error("Unknown registry key: "+e)},e=n([i.injectable()],e),e}();t.InstanceRegistry=s;var c=function(){function e(){this.elements=new Map}return e.prototype.register=function(e,t){if(void 0===e)throw new Error("Key is undefined");var o=this.elements.get(e);void 0!==o?o.push(t):this.elements.set(e,[t])},e.prototype.deregisterAll=function(e){if(void 0===e)throw new Error("Key is undefined");this.elements.delete(e)},e.prototype.get=function(e){var t=this.elements.get(e);return void 0!==t?t:[]},e=n([i.injectable()],e),e}();t.MultiInstanceRegistry=c},"38e8":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=o("66f9"),r=o("7d36"),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.enabled=!0,t}return n(t,e),t.DEFAULT_FEATURES=[i.boundsFeature,i.layoutableChildFeature,r.fadeFeature],t}(i.SShapeElement);t.SButton=a},"393a":function(e,t,o){"use strict";var n="http://www.w3.org/2000/svg",i=["hook","on","style","class","props","attrs","dataset"],r=Array.prototype.slice;function a(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||"symbol"===typeof e||null===e||void 0===e}function s(e,t,o,n){for(var i={ns:t},r=0,a=n.length;r0?l(c.slice(0,p),c.slice(p+1),e[c]):i[c]||l(o,c,e[c])}return i;function l(e,t,o){var n=i[e]||(i[e]={});n[t]=o}}function c(e,t,o,n,i,r){if(i.selector&&(n+=i.selector),i.classNames){var c=i.classNames;n=n+"."+(Array.isArray(c)?c.join("."):c.replace(/\s+/g,"."))}return{sel:n,data:s(i,e,t,o),children:r.map(function(e){return a(e)?{text:e}:e}),key:i.key}}function p(e,t,o,n,i,r){var a;if("function"===typeof n)a=n(i,r);else if(n&&"function"===typeof n.view)a=n.view(i,r);else{if(!n||"function"!==typeof n.render)throw"JSX tag must be either a string, a function or an object with 'view' or 'render' methods";a=n.render(i,r)}return a.key=i.key,a}function l(e,t,o){for(var n=t,i=e.length;n3||!Array.isArray(s))&&(s=r.call(arguments,2)),b(e,t||"props",o||i,n,a,s)}}e.exports={html:d(void 0),svg:d(n,"attrs"),JSX:d}},"3a7c":function(e,t,o){function n(e){return Array.isArray?Array.isArray(e):"[object Array]"===z(e)}function i(e){return"boolean"===typeof e}function r(e){return null===e}function a(e){return null==e}function s(e){return"number"===typeof e}function c(e){return"string"===typeof e}function p(e){return"symbol"===typeof e}function l(e){return void 0===e}function u(e){return"[object RegExp]"===z(e)}function b(e){return"object"===typeof e&&null!==e}function d(e){return"[object Date]"===z(e)}function M(e){return"[object Error]"===z(e)||e instanceof Error}function h(e){return"function"===typeof e}function f(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function z(e){return Object.prototype.toString.call(e)}t.isArray=n,t.isBoolean=i,t.isNull=r,t.isNullOrUndefined=a,t.isNumber=s,t.isString=c,t.isSymbol=p,t.isUndefined=l,t.isRegExp=u,t.isObject=b,t.isDate=d,t.isError=M,t.isFunction=h,t.isPrimitive=f,t.isBuffer=o("b639").Buffer.isBuffer},"3a92":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=o("dd02"),r=o("e629"),a=function(){function e(){}return Object.defineProperty(e.prototype,"root",{get:function(){var e=this;while(e){if(e instanceof l)return e;e=e instanceof p?e.parent:void 0}throw new Error("Element has no root")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.root.index},enumerable:!0,configurable:!0}),e.prototype.hasFeature=function(e){return void 0!==this.features&&this.features.has(e)},e}();function s(e){var t=e.children;return void 0!==t&&t.constructor===Array}t.SModelElement=a,t.isParent=s;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.children=[],t}return n(t,e),t.prototype.add=function(e,t){var o=this.children;if(void 0===t)o.push(e);else{if(t<0||t>this.children.length)throw new Error("Child index "+t+" out of bounds (0.."+o.length+")");o.splice(t,0,e)}e.parent=this,this.index.add(e)},t.prototype.remove=function(e){var t=this.children,o=t.indexOf(e);if(o<0)throw new Error("No such child "+e.id);t.splice(o,1),delete e.parent,this.index.remove(e)},t.prototype.removeAll=function(e){var t=this,o=this.children;if(void 0!==e){for(var n=o.length-1;n>=0;n--)if(e(o[n])){var i=o.splice(n,1)[0];delete i.parent,this.index.remove(i)}}else o.forEach(function(e){delete e.parent,t.index.remove(e)}),o.splice(0,o.length)},t.prototype.move=function(e,t){var o=this.children,n=o.indexOf(e);if(-1===n)throw new Error("No such child "+e.id);if(t<0||t>o.length-1)throw new Error("Child index "+t+" out of bounds (0.."+o.length+")");o.splice(n,1),o.splice(t,0,e)},t.prototype.localToParent=function(e){return i.isBounds(e)?e:{x:e.x,y:e.y,width:-1,height:-1}},t.prototype.parentToLocal=function(e){return i.isBounds(e)?e:{x:e.x,y:e.y,width:-1,height:-1}},t}(a);t.SParentElement=c;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(c);t.SChildElement=p;var l=function(e){function t(t){void 0===t&&(t=new d);var o=e.call(this)||this;return o.canvasBounds=i.EMPTY_BOUNDS,Object.defineProperty(o,"index",{value:t,writable:!1}),o}return n(t,e),t}(c);t.SModelRoot=l;var u="0123456789abcdefghijklmnopqrstuvwxyz";function b(e){void 0===e&&(e=8);for(var t="",o=0;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("6923"),p=o("3a92"),l=o("9757"),u=o("3585"),b=function(){function e(t){this.elementIDs=t,this.kind=e.KIND}return e.KIND="bringToFront",e}();t.BringToFrontAction=b;var d=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o.selected=[],o}return n(t,e),t.prototype.execute=function(e){var t=this,o=e.root;return this.action.elementIDs.forEach(function(e){var n=o.index.getById(e);n instanceof u.SRoutableElement&&(n.source&&t.addToSelection(n.source),n.target&&t.addToSelection(n.target)),n instanceof p.SChildElement&&t.addToSelection(n),t.includeConnectedEdges(n)}),this.redo(e)},t.prototype.includeConnectedEdges=function(e){var t=this;if(e instanceof u.SConnectableElement&&(e.incomingEdges.forEach(function(e){return t.addToSelection(e)}),e.outgoingEdges.forEach(function(e){return t.addToSelection(e)})),e instanceof p.SParentElement)for(var o=0,n=e.children;o=0;t--){var o=this.selected[t],n=o.element;n.parent.move(n,o.index)}return e.root},t.prototype.redo=function(e){for(var t=0;t=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("510b"),p=o("3a92"),l=o("6923"),u=o("0d7a"),b=o("e45b"),d=function(){function e(e){void 0===e&&(e=[]),this.mouseListeners=e}return e.prototype.register=function(e){this.mouseListeners.push(e)},e.prototype.deregister=function(e){var t=this.mouseListeners.indexOf(e);t>=0&&this.mouseListeners.splice(t,1)},e.prototype.getTargetElement=function(e,t){var o=t.target,n=e.index;while(o){if(o.id){var i=n.getById(this.domHelper.findSModelIdByDOMElement(o));if(void 0!==i)return i}o=o.parentNode}},e.prototype.handleEvent=function(e,t,o){var n=this;this.focusOnMouseEvent(e,t);var i=this.getTargetElement(t,o);if(i){var r=this.mouseListeners.map(function(t){return t[e].apply(t,[i,o])}).reduce(function(e,t){return e.concat(t)});if(r.length>0){o.preventDefault();for(var a=0,s=r;a=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}},s=this&&this.__awaiter||function(e,t,o,n){function i(e){return e instanceof o?e:new o(function(t){t(e)})}return new(o||(o=Promise))(function(o,r){function a(e){try{c(n.next(e))}catch(e){r(e)}}function s(e){try{c(n["throw"](e))}catch(e){r(e)}}function c(e){e.done?o(e.value):i(e.value).then(a,s)}c((n=n.apply(e,t||[])).next())})},c=this&&this.__generator||function(e,t){var o,n,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(e){return function(t){return c([e,t])}}function c(r){if(o)throw new TypeError("Generator is already executing.");while(a)try{if(o=1,n&&(i=2&r[0]?n["return"]:r[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,r[1])).done)return i;switch(n=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,n=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("510b"),p=o("9757"),l=o("6923"),u=o("33b2"),b=function(){function e(t,o){void 0===o&&(o=""),this.options=t,this.requestId=o,this.kind=e.KIND}return e.create=function(t){return new e(t,c.generateRequestId())},e.KIND="requestModel",e}();t.RequestModelAction=b;var d=function(){function e(t,o){void 0===o&&(o=""),this.newRoot=t,this.responseId=o,this.kind=e.KIND}return e.KIND="setModel",e}();t.SetModelAction=d;var M=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o}return n(t,e),t.prototype.execute=function(e){return this.oldRoot=e.modelFactory.createRoot(e.root),this.newRoot=e.modelFactory.createRoot(this.action.newRoot),this.newRoot},t.prototype.undo=function(e){return this.oldRoot},t.prototype.redo=function(e){return this.newRoot},Object.defineProperty(t.prototype,"blockUntil",{get:function(){return function(e){return e.kind===u.InitializeCanvasBoundsCommand.KIND}},enumerable:!0,configurable:!0}),t.KIND=d.KIND,t=i([s.injectable(),a(0,s.inject(l.TYPES.Action)),r("design:paramtypes",[d])],t),t}(p.ResetCommand);t.SetModelCommand=M},4047:function(e,t){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},"429b":function(e,t,o){e.exports=o("faa1").EventEmitter},"42be":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("9757"),p=o("6923"),l=o("26ad"),u=function(){function e(){this.kind=b.KIND}return e}();t.CommitModelAction=u;var b=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o}return n(t,e),t.prototype.execute=function(e){return this.newModel=e.modelFactory.createSchema(e.root),this.doCommit(this.newModel,e.root,!0)},t.prototype.doCommit=function(e,t,o){var n=this,i=this.modelSource.commitModel(e);return i instanceof Promise?i.then(function(e){return o&&(n.originalModel=e),t}):(o&&(this.originalModel=i),t)},t.prototype.undo=function(e){return this.doCommit(this.originalModel,e.root,!1)},t.prototype.redo=function(e){return this.doCommit(this.newModel,e.root,!1)},t.KIND="commitModel",i([s.inject(p.TYPES.ModelSource),r("design:type",l.ModelSource)],t.prototype,"modelSource",void 0),t=i([s.injectable(),a(0,s.inject(p.TYPES.Action)),r("design:paramtypes",[u])],t),t}(c.SystemCommand);t.CommitModelCommand=b},"42d6":function(e,t,o){"use strict";function n(e){for(var o in e)t.hasOwnProperty(o)||(t[o]=e[o])}Object.defineProperty(t,"__esModule",{value:!0}),n(o("510b")),n(o("0fb6")),n(o("be02")),n(o("c661")),n(o("538c")),n(o("c146")),n(o("987d")),n(o("9757")),n(o("842c")),n(o("5e9c")),n(o("160b")),n(o("33b2")),n(o("3f0a")),n(o("302f")),n(o("3623")),n(o("3a92")),n(o("ddee")),n(o("1590")),n(o("6176")),n(o("4c95c")),n(o("1417")),n(o("3b4c")),n(o("8d53")),n(o("064a")),n(o("8794")),n(o("65d1")),n(o("29fa")),n(o("a190")),n(o("e45b")),n(o("6923"));var i=o("8122");t.defaultModule=i.default,n(o("42f7")),n(o("61bf")),n(o("320b")),n(o("66f9")),n(o("da84")),n(o("4b75")),n(o("ac2a")),n(o("8e97")),n(o("70d9")),n(o("38e8")),n(o("a406")),n(o("0a28")),n(o("80b5")),n(o("1cc1")),n(o("3c83")),n(o("1e31")),n(o("9d6c")),n(o("779b")),n(o("ac57")),n(o("ea38")),n(o("3672")),n(o("1978")),n(o("cd26")),n(o("1254")),n(o("a5f4")),n(o("cc26")),n(o("61d8")),n(o("4741")),n(o("9964")),n(o("19b5")),n(o("1cd9")),n(o("7faf")),n(o("5d19")),n(o("e7fa")),n(o("7d36")),n(o("f4cb")),n(o("e4f0")),n(o("7f73")),n(o("755f")),n(o("e576")),n(o("a0af")),n(o("559d")),n(o("af44")),n(o("e1cb")),n(o("b485")),n(o("1f89")),n(o("869e")),n(o("b7b8")),n(o("9a1f")),n(o("46cc")),n(o("3585")),n(o("ab71")),n(o("d8f5")),n(o("168d")),n(o("8d9d")),n(o("4c18")),n(o("bcbd")),n(o("c20e")),n(o("d084")),n(o("cf61")),n(o("ed4f")),n(o("5eb6")),n(o("cf98")),n(o("3b62")),n(o("c444")),n(o("fe37")),n(o("3ada"));var r=o("5530");t.graphModule=r.default;var a=o("72dd");t.boundsModule=a.default;var s=o("54f8");t.buttonModule=s.default;var c=o("d14a");t.commandPaletteModule=c.default;var p=o("5884");t.contextMenuModule=p.default;var l=o("7bae3");t.decorationModule=l.default;var u=o("1e31");t.edgeLayoutModule=u.default;var b=o("04c2");t.expandModule=b.default;var d=o("9f8d");t.exportModule=d.default;var M=o("9811");t.fadeModule=M.default;var h=o("c95e");t.hoverModule=h.default;var f=o("520d");t.moveModule=f.default;var z=o("0483");t.openModule=z.default;var O=o("b7ca");t.routingModule=O.default;var A=o("c4e6");t.selectModule=A.default;var m=o("3b74");t.undoRedoModule=m.default;var v=o("cc3e");t.updateModule=v.default;var g=o("1e19");t.viewportModule=g.default;var y=o("6f35");t.zorderModule=y.default,n(o("dfc0")),n(o("47b7")),n(o("6bb9")),n(o("44c1")),n(o("9ad4")),n(o("359b")),n(o("87fa")),n(o("218d")),n(o("42be")),n(o("945d")),n(o("cb6e")),n(o("85ed")),n(o("26ad")),n(o("484b"));var q=o("8e65");t.modelSourceModule=q.default,n(o("fba3")),n(o("0be1")),n(o("dd02")),n(o("7b39")),n(o("9e2e")),n(o("3864"))},"42f7":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,o=1,n=arguments.length;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var c=o("e1c6"),p=o("510b"),l=o("9757"),u=o("6923"),b=o("66f9"),d=function(){function e(t){this.bounds=t,this.kind=e.KIND}return e.KIND="setBounds",e}();t.SetBoundsAction=d;var M=function(){function e(t,o){void 0===o&&(o=""),this.newRoot=t,this.requestId=o,this.kind=e.KIND}return e.create=function(t){return new e(t,p.generateRequestId())},e.KIND="requestBounds",e}();t.RequestBoundsAction=M;var h=function(){function e(t,o,n,i){void 0===i&&(i=""),this.bounds=t,this.revision=o,this.alignments=n,this.responseId=i,this.kind=e.KIND}return e.KIND="computedBounds",e}();t.ComputedBoundsAction=h;var f=function(){function e(){this.kind=e.KIND}return e.KIND="layout",e}();t.LayoutAction=f;var z=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o.bounds=[],o}return n(t,e),t.prototype.execute=function(e){var t=this;return this.action.bounds.forEach(function(o){var n=e.root.index.getById(o.elementId);n&&b.isBoundsAware(n)&&t.bounds.push({element:n,oldBounds:n.bounds,newPosition:o.newPosition,newSize:o.newSize})}),this.redo(e)},t.prototype.undo=function(e){return this.bounds.forEach(function(e){return e.element.bounds=e.oldBounds}),e.root},t.prototype.redo=function(e){return this.bounds.forEach(function(e){e.newPosition?e.element.bounds=i(i({},e.newPosition),e.newSize):e.element.bounds=i({x:e.element.bounds.x,y:e.element.bounds.y},e.newSize)}),e.root},t.KIND=d.KIND,t=r([c.injectable(),s(0,c.inject(u.TYPES.Action)),a("design:paramtypes",[d])],t),t}(l.SystemCommand);t.SetBoundsCommand=z;var O=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o}return n(t,e),t.prototype.execute=function(e){return{model:e.modelFactory.createRoot(this.action.newRoot),modelChanged:!0,cause:this.action}},Object.defineProperty(t.prototype,"blockUntil",{get:function(){return function(e){return e.kind===h.KIND}},enumerable:!0,configurable:!0}),t.KIND=M.KIND,t=r([c.injectable(),s(0,c.inject(u.TYPES.Action)),a("design:paramtypes",[M])],t),t}(l.HiddenCommand);t.RequestBoundsCommand=O},"44c1":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("8122"),i=o("8e65"),r=o("72dd"),a=o("54f8"),s=o("d14a"),c=o("5884"),p=o("7bae3"),l=o("1e31"),u=o("3672"),b=o("04c2"),d=o("9f8d"),M=o("9811"),h=o("c95e"),f=o("520d"),z=o("0483"),O=o("b7ca"),A=o("c4e6"),m=o("3b74"),v=o("cc3e"),g=o("1e19"),y=o("6f35");function q(e,t){var o=[n.default,i.default,r.default,a.default,s.default,c.default,p.default,u.edgeEditModule,l.default,b.default,d.default,M.default,h.default,u.labelEditModule,u.labelEditUiModule,f.default,z.default,O.default,A.default,m.default,v.default,g.default,y.default];if(t&&t.exclude)for(var q=0,_=t.exclude;q<_.length;q++){var W=_[q],R=o.indexOf(W);R>=0&&o.splice(R,1)}e.load.apply(e,o)}t.loadDefaultModules=q},"451f":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("c5f4"),i=o("1979"),r=function(e,t){var o=e.parentRequest;return null!==o&&(!!t(o)||r(o,t))};t.traverseAncerstors=r;var a=function(e){return function(t){var o=function(o){return null!==o&&null!==o.target&&o.target.matchesTag(e)(t)};return o.metaData=new i.Metadata(e,t),o}};t.taggedConstraint=a;var s=a(n.NAMED_TAG);t.namedConstraint=s;var c=function(e){return function(t){var o=null;if(null!==t){if(o=t.bindings[0],"string"===typeof e){var n=o.serviceIdentifier;return n===e}var i=t.bindings[0].implementationType;return e===i}return!1}};t.typeConstraint=c},4681:function(e,t,o){"use strict";var n=o("966d");function i(e,t){var o=this,i=this._readableState&&this._readableState.destroyed,r=this._writableState&&this._writableState.destroyed;return i||r?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(a,this,e)):n.nextTick(a,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?o._writableState?o._writableState.errorEmitted||(o._writableState.errorEmitted=!0,n.nextTick(a,o,e)):n.nextTick(a,o,e):t&&t(e)}),this)}function r(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(e,t){e.emit("error",t)}e.exports={destroy:i,undestroy:r}},"46cc":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,o=1,n=arguments.length;o0){var n=e.routingPoints.slice();if(this.cleanupRoutingPoints(e,n,!1,!0),n.length>0)return n.map(function(e,t){return i({kind:"linear",pointIndex:t},e)})}var r=this.getOptions(e),a=this.calculateDefaultCorners(e,t,o,r);return a.map(function(e){return i({kind:"linear"},e)})},t.prototype.createRoutingHandles=function(e){var t=this.route(e);if(this.commitRoute(e,t),t.length>0){this.addHandle(e,"source","routing-point",-2);for(var o=0;o0&&Math.abs(o-e[t-1].x)=0&&t0&&Math.abs(o-e[t-1].y)=0&&t=0;--c){if(!a.includes(r.bounds,t[c]))break;t.splice(c,1),o&&this.removeHandle(e,c)}if(t.length>=2){var p=this.getOptions(e);for(c=t.length-2;c>=0;--c)a.manhattanDistance(t[c],t[c+1])t?--e.pointIndex:e.pointIndex===t&&o.push(e))}),o.forEach(function(t){return e.remove(t)})},t.prototype.addAdditionalCorner=function(e,t,o,n,i){if(0!==t.length){var r,p="source"===o.kind?t[0]:t[t.length-1],l="source"===o.kind?0:t.length,u=l-("source"===o.kind?1:0);if(t.length>1)r=0===l?a.almostEquals(t[0].x,t[1].x):a.almostEquals(t[t.length-1].x,t[t.length-2].x);else{var b=n.getNearestSide(p);r=b===s.Side.TOP||b===s.Side.BOTTOM}if(r){if(p.yo.get(s.Side.BOTTOM).y){var d={x:o.get(s.Side.TOP).x,y:p.y};t.splice(l,0,d),i&&(e.children.forEach(function(e){e instanceof c.SRoutingHandle&&e.pointIndex>=u&&++e.pointIndex}),this.addHandle(e,"manhattan-50%","volatile-routing-point",u))}}else if(p.xo.get(s.Side.RIGHT).x){d={x:p.x,y:o.get(s.Side.LEFT).y};t.splice(l,0,d),i&&(e.children.forEach(function(e){e instanceof c.SRoutingHandle&&e.pointIndex>=u&&++e.pointIndex}),this.addHandle(e,"manhattan-50%","volatile-routing-point",u))}}},t.prototype.manhattanify=function(e,t){for(var o=1;o0)return r;var a=this.getBestConnectionAnchors(t,o,n,i),c=a.source,p=a.target,l=[],u=o.get(c),b=n.get(p);switch(c){case s.Side.RIGHT:switch(p){case s.Side.BOTTOM:l.push({x:b.x,y:u.y});break;case s.Side.TOP:l.push({x:b.x,y:u.y});break;case s.Side.RIGHT:l.push({x:Math.max(u.x,b.x)+1.5*i.standardDistance,y:u.y}),l.push({x:Math.max(u.x,b.x)+1.5*i.standardDistance,y:b.y});break;case s.Side.LEFT:b.y!==u.y&&(l.push({x:(u.x+b.x)/2,y:u.y}),l.push({x:(u.x+b.x)/2,y:b.y}));break}break;case s.Side.LEFT:switch(p){case s.Side.BOTTOM:l.push({x:b.x,y:u.y});break;case s.Side.TOP:l.push({x:b.x,y:u.y});break;default:b=n.get(s.Side.RIGHT),b.y!==u.y&&(l.push({x:(u.x+b.x)/2,y:u.y}),l.push({x:(u.x+b.x)/2,y:b.y}));break}break;case s.Side.TOP:switch(p){case s.Side.RIGHT:b.x-u.x>0?(l.push({x:u.x,y:u.y-i.standardDistance}),l.push({x:b.x+1.5*i.standardDistance,y:u.y-i.standardDistance}),l.push({x:b.x+1.5*i.standardDistance,y:b.y})):l.push({x:u.x,y:b.y});break;case s.Side.LEFT:b.x-u.x<0?(l.push({x:u.x,y:u.y-i.standardDistance}),l.push({x:b.x-1.5*i.standardDistance,y:u.y-i.standardDistance}),l.push({x:b.x-1.5*i.standardDistance,y:b.y})):l.push({x:u.x,y:b.y});break;case s.Side.TOP:l.push({x:u.x,y:Math.min(u.y,b.y)-1.5*i.standardDistance}),l.push({x:b.x,y:Math.min(u.y,b.y)-1.5*i.standardDistance});break;case s.Side.BOTTOM:b.x!==u.x&&(l.push({x:u.x,y:(u.y+b.y)/2}),l.push({x:b.x,y:(u.y+b.y)/2}));break}break;case s.Side.BOTTOM:switch(p){case s.Side.RIGHT:b.x-u.x>0?(l.push({x:u.x,y:u.y+i.standardDistance}),l.push({x:b.x+1.5*i.standardDistance,y:u.y+i.standardDistance}),l.push({x:b.x+1.5*i.standardDistance,y:b.y})):l.push({x:u.x,y:b.y});break;case s.Side.LEFT:b.x-u.x<0?(l.push({x:u.x,y:u.y+i.standardDistance}),l.push({x:b.x-1.5*i.standardDistance,y:u.y+i.standardDistance}),l.push({x:b.x-1.5*i.standardDistance,y:b.y})):l.push({x:u.x,y:b.y});break;default:b=n.get(s.Side.TOP),b.x!==u.x&&(l.push({x:u.x,y:(u.y+b.y)/2}),l.push({x:b.x,y:(u.y+b.y)/2}));break}break}return l},t.prototype.getBestConnectionAnchors=function(e,t,o,n){var i=t.get(s.Side.RIGHT),r=o.get(s.Side.LEFT);if(r.x-i.x>n.standardDistance)return{source:s.Side.RIGHT,target:s.Side.LEFT};if(i=t.get(s.Side.LEFT),r=o.get(s.Side.RIGHT),i.x-r.x>n.standardDistance)return{source:s.Side.LEFT,target:s.Side.RIGHT};if(i=t.get(s.Side.TOP),r=o.get(s.Side.BOTTOM),i.y-r.y>n.standardDistance)return{source:s.Side.TOP,target:s.Side.BOTTOM};if(i=t.get(s.Side.BOTTOM),r=o.get(s.Side.TOP),r.y-i.y>n.standardDistance)return{source:s.Side.BOTTOM,target:s.Side.TOP};if(i=t.get(s.Side.RIGHT),r=o.get(s.Side.TOP),r.x-i.x>.5*n.standardDistance&&r.y-i.y>n.standardDistance)return{source:s.Side.RIGHT,target:s.Side.TOP};if(r=o.get(s.Side.BOTTOM),r.x-i.x>.5*n.standardDistance&&i.y-r.y>n.standardDistance)return{source:s.Side.RIGHT,target:s.Side.BOTTOM};if(i=t.get(s.Side.LEFT),r=o.get(s.Side.BOTTOM),i.x-r.x>.5*n.standardDistance&&i.y-r.y>n.standardDistance)return{source:s.Side.LEFT,target:s.Side.BOTTOM};if(r=o.get(s.Side.TOP),i.x-r.x>.5*n.standardDistance&&r.y-i.y>n.standardDistance)return{source:s.Side.LEFT,target:s.Side.TOP};if(i=t.get(s.Side.TOP),r=o.get(s.Side.RIGHT),i.y-r.y>.5*n.standardDistance&&i.x-r.x>n.standardDistance)return{source:s.Side.TOP,target:s.Side.RIGHT};if(r=o.get(s.Side.LEFT),i.y-r.y>.5*n.standardDistance&&r.x-i.x>n.standardDistance)return{source:s.Side.TOP,target:s.Side.LEFT};if(i=t.get(s.Side.BOTTOM),r=o.get(s.Side.RIGHT),r.y-i.y>.5*n.standardDistance&&i.x-r.x>n.standardDistance)return{source:s.Side.BOTTOM,target:s.Side.RIGHT};if(r=o.get(s.Side.LEFT),r.y-i.y>.5*n.standardDistance&&r.x-i.x>n.standardDistance)return{source:s.Side.BOTTOM,target:s.Side.LEFT};if(i=t.get(s.Side.TOP),r=o.get(s.Side.TOP),!a.includes(o.bounds,i)&&!a.includes(t.bounds,r))if(i.y-r.y<0){if(Math.abs(i.x-r.x)>(t.bounds.width+n.standardDistance)/2)return{source:s.Side.TOP,target:s.Side.TOP}}else if(Math.abs(i.x-r.x)>o.bounds.width/2)return{source:s.Side.TOP,target:s.Side.TOP};if(i=t.get(s.Side.RIGHT),r=o.get(s.Side.RIGHT),!a.includes(o.bounds,i)&&!a.includes(t.bounds,r))if(i.x-r.x>0){if(Math.abs(i.y-r.y)>(t.bounds.height+n.standardDistance)/2)return{source:s.Side.RIGHT,target:s.Side.RIGHT}}else if(Math.abs(i.y-r.y)>o.bounds.height/2)return{source:s.Side.RIGHT,target:s.Side.RIGHT};return i=t.get(s.Side.TOP),r=o.get(s.Side.RIGHT),a.includes(o.bounds,i)||a.includes(t.bounds,r)?(r=o.get(s.Side.LEFT),a.includes(o.bounds,i)||a.includes(t.bounds,r)?(i=t.get(s.Side.BOTTOM),r=o.get(s.Side.RIGHT),a.includes(o.bounds,i)||a.includes(t.bounds,r)?(r=o.get(s.Side.LEFT),a.includes(o.bounds,i)||a.includes(t.bounds,r)?{source:s.Side.RIGHT,target:s.Side.BOTTOM}:{source:s.Side.BOTTOM,target:s.Side.LEFT}):{source:s.Side.BOTTOM,target:s.Side.RIGHT}):{source:s.Side.TOP,target:s.Side.LEFT}):{source:s.Side.TOP,target:s.Side.RIGHT}},t.KIND="manhattan",t}(s.LinearEdgeRouter);t.ManhattanEdgeRouter=p},4741:function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("3623"),r=o("9964"),a=o("e1c6"),s=function(){function e(t,o){this.expandIds=t,this.collapseIds=o,this.kind=e.KIND}return e.KIND="collapseExpand",e}();t.CollapseExpandAction=s;var c=function(){function e(t){void 0===t&&(t=!0),this.expand=t,this.kind=e.KIND}return e.KIND="collapseExpandAll",e}();t.CollapseExpandAllAction=c;var p=function(){function e(){}return e.prototype.buttonPressed=function(e){var t=i.findParentByFeature(e,r.isExpandable);return void 0!==t?[new s(t.expanded?[]:[t.id],t.expanded?[t.id]:[])]:[]},e.TYPE="button:expand",e=n([a.injectable()],e),e}();t.ExpandButtonHandler=p},"47b7":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=o("3a92"),r=o("66f9"),a=o("779b"),s=o("1978"),c=o("cc26"),p=o("7d36"),l=o("e4f0"),u=o("a0af"),b=o("3585"),d=o("4c18"),M=o("3b62"),h=o("dd02"),f=o("e629"),z=function(e){function t(t){return void 0===t&&(t=new y),e.call(this,t)||this}return n(t,e),t}(M.ViewportRootElement);t.SGraph=z;var O=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.selected=!1,t.hoverFeedback=!1,t.opacity=1,t}return n(t,e),t.prototype.canConnect=function(e,t){return void 0===this.children.find(function(e){return e instanceof A})},t.DEFAULT_FEATURES=[b.connectableFeature,s.deletableFeature,d.selectFeature,r.boundsFeature,u.moveFeature,r.layoutContainerFeature,p.fadeFeature,l.hoverFeedbackFeature,l.popupFeature],t}(b.SConnectableElement);t.SNode=O;var A=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.selected=!1,t.hoverFeedback=!1,t.opacity=1,t}return n(t,e),t.DEFAULT_FEATURES=[b.connectableFeature,d.selectFeature,r.boundsFeature,p.fadeFeature,l.hoverFeedbackFeature],t}(b.SConnectableElement);t.SPort=A;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.selected=!1,t.hoverFeedback=!1,t.opacity=1,t}return n(t,e),t.DEFAULT_FEATURES=[c.editFeature,s.deletableFeature,d.selectFeature,p.fadeFeature,l.hoverFeedbackFeature],t}(b.SRoutableElement);t.SEdge=m;var v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.selected=!1,t.alignment=h.ORIGIN_POINT,t.opacity=1,t}return n(t,e),t.DEFAULT_FEATURES=[r.boundsFeature,r.alignFeature,r.layoutableChildFeature,a.edgeLayoutFeature,p.fadeFeature],t}(r.SShapeElement);t.SLabel=v;var g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.opacity=1,t}return n(t,e),t.DEFAULT_FEATURES=[r.boundsFeature,r.layoutContainerFeature,r.layoutableChildFeature,p.fadeFeature],t}(r.SShapeElement);t.SCompartment=g;var y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.outgoing=new Map,t.incoming=new Map,t}return n(t,e),t.prototype.add=function(t){if(e.prototype.add.call(this,t),t instanceof m){if(t.sourceId){var o=this.outgoing.get(t.sourceId);void 0===o?this.outgoing.set(t.sourceId,[t]):o.push(t)}if(t.targetId){var n=this.incoming.get(t.targetId);void 0===n?this.incoming.set(t.targetId,[t]):n.push(t)}}},t.prototype.remove=function(t){if(e.prototype.remove.call(this,t),t instanceof m){var o=this.outgoing.get(t.sourceId);if(void 0!==o){var n=o.indexOf(t);n>=0&&(1===o.length?this.outgoing.delete(t.sourceId):o.splice(n,1))}var i=this.incoming.get(t.targetId);if(void 0!==i){n=i.indexOf(t);n>=0&&(1===i.length?this.incoming.delete(t.targetId):i.splice(n,1))}}},t.prototype.getAttachedElements=function(e){var t=this;return new f.FluentIterableImpl(function(){return{outgoing:t.outgoing.get(e.id),incoming:t.incoming.get(e.id),nextOutgoingIndex:0,nextIncomingIndex:0}},function(e){var t=e.nextOutgoingIndex;if(void 0!==e.outgoing&&t=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var r=o("e1c6"),a=o("945d"),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.listen=function(e){var t=this;e.addEventListener("message",function(e){t.messageReceived(e.data)}),e.addEventListener("error",function(e){t.logger.error(t,"error event received",e)}),this.webSocket=e},t.prototype.disconnect=function(){this.webSocket&&(this.webSocket.close(),this.webSocket=void 0)},t.prototype.sendMessage=function(e){if(!this.webSocket)throw new Error("WebSocket is not connected");this.webSocket.send(JSON.stringify(e))},t=i([r.injectable()],t),t}(a.DiagramServer);t.WebSocketDiagramServer=s},"48f9":function(e,t,o){},"4a4f":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("30e3"),i=o("c5f4"),r=o("1979");function a(){return function(e,t,o){var a=new r.Metadata(i.POST_CONSTRUCT,t);if(Reflect.hasOwnMetadata(i.POST_CONSTRUCT,e.constructor))throw new Error(n.MULTIPLE_POST_CONSTRUCT_METHODS);Reflect.defineMetadata(i.POST_CONSTRUCT,a,e.constructor)}}t.postConstruct=a},"4b0d":function(e,t,o){"use strict";var n=o("2196"),i=o.n(n);i.a},"4b75":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,o=1,n=arguments.length;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__spreadArrays||function(){for(var e=0,t=0,o=arguments.length;t=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("e1c6"),r=function(){function e(){this.tasks=[],this.endTasks=[],this.triggered=!1}return e.prototype.isAvailable=function(){return"function"===typeof requestAnimationFrame},e.prototype.onNextFrame=function(e){this.tasks.push(e),this.trigger()},e.prototype.onEndOfNextFrame=function(e){this.endTasks.push(e),this.trigger()},e.prototype.trigger=function(){var e=this;this.triggered||(this.triggered=!0,this.isAvailable()?requestAnimationFrame(function(t){return e.run(t)}):setTimeout(function(t){return e.run(t)}))},e.prototype.run=function(e){var t=this.tasks,o=this.endTasks;this.triggered=!1,this.tasks=[],this.endTasks=[],t.forEach(function(t){return t.call(void 0,e)}),o.forEach(function(t){return t.call(void 0,e)})},e=n([i.injectable()],e),e}();t.AnimationFrameSyncer=r},"54f8":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("70d9"),r=new n.ContainerModule(function(e){e(i.ButtonHandlerRegistry).toSelf().inSingletonScope()});t.default=r},5530:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("dfc0"),a=new n.ContainerModule(function(e,t,o,n){n(i.TYPES.IModelFactory).to(r.SGraphFactory).inSingletonScope()});t.default=a},"559d":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,o=1,n=arguments.length;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var c=o("e1c6"),p=o("c146"),l=o("9757"),u=o("3a92"),b=o("3623"),d=o("6923"),M=o("3b4c"),h=o("e45b"),f=o("47b7"),z=o("42be"),O=o("dd02"),A=o("66f9"),m=o("ea38"),v=o("1978"),g=o("a5f4"),y=o("61d8"),q=o("3585"),_=o("168d"),W=o("779b"),R=o("4c18"),w=o("bcbd"),L=o("5eb6"),C=o("a0af"),S=function(){function e(e,t,o){void 0===t&&(t=!0),void 0===o&&(o=!1),this.moves=e,this.animate=t,this.finished=o,this.kind=E.KIND}return e}();t.MoveAction=S;var E=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o.resolvedMoves=new Map,o.edgeMementi=[],o}var o;return n(t,e),o=t,t.prototype.execute=function(e){var t=this,o=e.root.index,n=new Map,i=new Map;return this.action.moves.forEach(function(e){var r=o.getById(e.elementId);if(r instanceof q.SRoutingHandle&&t.edgeRouterRegistry){var a=r.parent;if(a instanceof q.SRoutableElement){var s=t.resolveHandleMove(r,a,e);if(s){var c=n.get(a);c||(c=[],n.set(a,c)),c.push(s)}}}else if(r&&C.isLocateable(r)){var p=t.resolveElementMove(r,e);p&&(t.resolvedMoves.set(p.element.id,p),t.edgeRouterRegistry&&o.getAttachedElements(r).forEach(function(e){if(e instanceof q.SRoutableElement){var t=i.get(e),o=O.subtract(p.toPosition,p.fromPosition),n=t?O.linear(t,o,.5):o;i.set(e,n)}}))}}),this.doMove(n,i),this.action.animate?(this.undoMove(),new p.CompoundAnimation(e.root,e,[new T(e.root,this.resolvedMoves,e,!1),new x(e.root,this.edgeMementi,e,!1)]).start()):e.root},t.prototype.resolveHandleMove=function(e,t,o){var n=o.fromPosition;if(!n){var i=this.edgeRouterRegistry.get(t.routerKind);n=i.getHandlePosition(t,i.route(t),e)}if(n)return{handle:e,fromPosition:n,toPosition:o.toPosition}},t.prototype.resolveElementMove=function(e,t){var o=t.fromPosition||{x:e.position.x,y:e.position.y};return{element:e,fromPosition:o,toPosition:t.toPosition}},t.prototype.doMove=function(e,t){var o=this;this.resolvedMoves.forEach(function(e){e.element.position=e.toPosition}),e.forEach(function(e,t){var n=o.edgeRouterRegistry.get(t.routerKind),i=n.takeSnapshot(t);n.applyHandleMoves(t,e);var r=n.takeSnapshot(t);o.edgeMementi.push({edge:t,before:i,after:r})}),t.forEach(function(t,n){if(!e.get(n)){var i=o.edgeRouterRegistry.get(n.routerKind),r=i.takeSnapshot(n);if(n.source&&n.target&&o.resolvedMoves.get(n.source.id)&&o.resolvedMoves.get(n.target.id))n.routingPoints=n.routingPoints.map(function(e){return O.add(e,t)});else{var a=R.isSelectable(n)&&n.selected;i.cleanupRoutingPoints(n,n.routingPoints,a,o.action.finished)}var s=i.takeSnapshot(n);o.edgeMementi.push({edge:n,before:r,after:s})}})},t.prototype.undoMove=function(){var e=this;this.resolvedMoves.forEach(function(e){e.element.position=e.fromPosition}),this.edgeMementi.forEach(function(t){var o=e.edgeRouterRegistry.get(t.edge.routerKind);o.applySnapshot(t.edge,t.before)})},t.prototype.undo=function(e){return new p.CompoundAnimation(e.root,e,[new T(e.root,this.resolvedMoves,e,!0),new x(e.root,this.edgeMementi,e,!0)]).start()},t.prototype.redo=function(e){return new p.CompoundAnimation(e.root,e,[new T(e.root,this.resolvedMoves,e,!1),new x(e.root,this.edgeMementi,e,!1)]).start()},t.prototype.merge=function(e,t){var n=this;if(!this.action.animate&&e instanceof o)return e.resolvedMoves.forEach(function(e,t){var o=n.resolvedMoves.get(t);o?o.toPosition=e.toPosition:n.resolvedMoves.set(t,e)}),e.edgeMementi.forEach(function(e){var t=n.edgeMementi.find(function(t){return t.edge.id===e.edge.id});t?t.after=e.after:n.edgeMementi.push(e)}),!0;if(e instanceof y.ReconnectCommand){var i=e.memento;if(i){var r=this.edgeMementi.find(function(e){return e.edge.id===i.edge.id});r?r.after=i.after:this.edgeMementi.push(i)}return!0}return!1},t.KIND="move",r([c.inject(_.EdgeRouterRegistry),c.optional(),a("design:type",_.EdgeRouterRegistry)],t.prototype,"edgeRouterRegistry",void 0),t=o=r([c.injectable(),s(0,c.inject(d.TYPES.Action)),a("design:paramtypes",[S])],t),t}(l.MergeableCommand);t.MoveCommand=E;var T=function(e){function t(t,o,n,i){void 0===i&&(i=!1);var r=e.call(this,n)||this;return r.model=t,r.elementMoves=o,r.reverse=i,r}return n(t,e),t.prototype.tween=function(e){var t=this;return this.elementMoves.forEach(function(o){t.reverse?o.element.position={x:(1-e)*o.toPosition.x+e*o.fromPosition.x,y:(1-e)*o.toPosition.y+e*o.fromPosition.y}:o.element.position={x:(1-e)*o.fromPosition.x+e*o.toPosition.x,y:(1-e)*o.fromPosition.y+e*o.toPosition.y}}),this.model},t}(p.Animation);t.MoveAnimation=T;var x=function(e){function t(t,o,n,i){void 0===i&&(i=!1);var r=e.call(this,n)||this;return r.model=t,r.reverse=i,r.expanded=[],o.forEach(function(e){var t=r.reverse?e.after:e.before,o=r.reverse?e.before:e.after,n=t.routedPoints,i=o.routedPoints,a=Math.max(n.length,i.length);r.expanded.push({startExpandedRoute:r.growToSize(n,a),endExpandedRoute:r.growToSize(i,a),memento:e})}),r}return n(t,e),t.prototype.midPoint=function(e){var t=e.edge,o=e.edge.source,n=e.edge.target;return O.linear(b.translatePoint(O.center(o.bounds),o.parent,t.parent),b.translatePoint(O.center(n.bounds),n.parent,t.parent),.5)},t.prototype.start=function(){return this.expanded.forEach(function(e){e.memento.edge.removeAll(function(e){return e instanceof q.SRoutingHandle})}),e.prototype.start.call(this)},t.prototype.tween=function(e){var t=this;return 1===e?this.expanded.forEach(function(e){var o=e.memento;t.reverse?o.before.router.applySnapshot(o.edge,o.before):o.after.router.applySnapshot(o.edge,o.after)}):this.expanded.forEach(function(t){for(var o=[],n=1;n(a+p)*i)++p;a+=p;for(var l=0;l0?new S(i,!1,o):void 0}},t.prototype.snap=function(e,t,o){return o&&this.snapper?this.snapper.snap(e,t):e},t.prototype.getHandlePosition=function(e){if(this.edgeRouterRegistry){var t=e.parent;if(!(t instanceof q.SRoutableElement))return;var o=this.edgeRouterRegistry.get(t.routerKind),n=o.route(t);return o.getHandlePosition(t,n,e)}},t.prototype.mouseEnter=function(e,t){return e instanceof u.SModelRoot&&0===t.buttons&&this.mouseUp(e,t),[]},t.prototype.mouseUp=function(e,t){var o=this,n=[],i=!1;if(this.startDragPosition){var r=this.getElementMoves(e,t,!0);r&&n.push(r),e.root.index.all().forEach(function(t){if(t instanceof q.SRoutingHandle){var r=t.parent;if(r instanceof q.SRoutableElement&&t.danglingAnchor){var a=o.getHandlePosition(t);if(a){var s=b.translatePoint(a,t.parent,t.root),c=A.findChildrenAtPosition(e.root,s).find(function(e){return q.isConnectable(e)&&e.canConnect(r,t.kind)});c&&o.hasDragged&&(n.push(new y.ReconnectAction(t.parent.id,"source"===t.kind?c.id:r.sourceId,"target"===t.kind?c.id:r.targetId)),i=!0)}}t.editMode&&n.push(new g.SwitchEditModeAction([],[t.id]))}})}if(!i){var a=e.root.index.getById(q.edgeInProgressID);if(a instanceof u.SChildElement){var s=[];s.push(q.edgeInProgressID),a.children.forEach(function(e){e instanceof q.SRoutingHandle&&e.danglingAnchor&&s.push(e.danglingAnchor.id)}),n.push(new v.DeleteElementAction(s))}}return this.hasDragged&&n.push(new z.CommitModelAction),this.hasDragged=!1,this.startDragPosition=void 0,this.elementId2startPos.clear(),n},t.prototype.decorate=function(e,t){return e},r([c.inject(_.EdgeRouterRegistry),c.optional(),a("design:type",_.EdgeRouterRegistry)],t.prototype,"edgeRouterRegistry",void 0),r([c.inject(d.TYPES.ISnapper),c.optional(),a("design:type",Object)],t.prototype,"snapper",void 0),t}(M.MouseListener);t.MoveMouseListener=N;var B=function(){function e(){}return e.prototype.decorate=function(e,t){if(W.isEdgeLayoutable(t)&&t.parent instanceof f.SEdge)return e;var o="";if(C.isLocateable(t)&&t instanceof u.SChildElement&&void 0!==t.parent){var n=t.position;0===n.x&&0===n.y||(o="translate("+n.x+", "+n.y+")")}if(A.isAlignable(t)){var i=t.alignment;0===i.x&&0===i.y||(o.length>0&&(o+=" "),o+="translate("+i.x+", "+i.y+")")}return o.length>0&&h.setAttr(e,"transform",o),e},e.prototype.postUpdate=function(){},e=r([c.injectable()],e),e}();t.LocationPostprocessor=B},5823:function(e,t,o){"use strict";var n=o("e8de"),i=o.n(n);i.a},5870:function(e,t,o){},5884:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("1cc1"),r=o("3c83"),a=o("6923"),s=new n.ContainerModule(function(e){e(a.TYPES.IContextMenuServiceProvider).toProvider(function(e){return function(){return new Promise(function(t,o){e.container.isBound(a.TYPES.IContextMenuService)?t(e.container.get(a.TYPES.IContextMenuService)):o()})}}),e(a.TYPES.MouseListener).to(r.ContextMenuMouseListener),e(a.TYPES.IContextMenuProviderRegistry).to(i.ContextMenuProviderRegistry)});t.default=s},"5b35":function(e,t,o){"use strict";var n=o("b878"),i=o.n(n);i.a},"5bc0":function(e,t,o){},"5bcd":function(e,t,o){},"5d08":function(e,t,o){"use strict";var n=o("d675"),i=o.n(n);i.a},"5d19":function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o("66f9"),a=o("0fb6"),s=o("6923"),c=o("dd02"),p=o("e1c6"),l=function(){function e(t,o){void 0===o&&(o=""),this.svg=t,this.responseId=o,this.kind=e.KIND}return e.KIND="exportSvg",e}();t.ExportSvgAction=l;var u=function(){function e(){}return e.prototype.export=function(e,t){if("undefined"!==typeof document){var o=document.getElementById(this.options.hiddenDiv);if(null!==o&&o.firstElementChild&&"svg"===o.firstElementChild.tagName){var n=o.firstElementChild,i=this.createSvg(n,e);this.actionDispatcher.dispatch(new l(i,t?t.requestId:""))}}},e.prototype.createSvg=function(e,t){var o=new XMLSerializer,n=o.serializeToString(e),i=document.createElement("iframe");if(document.body.appendChild(i),!i.contentWindow)throw new Error("IFrame has no contentWindow");var r=i.contentWindow.document;r.open(),r.write(n),r.close();var a=r.getElementById(e.id);a.removeAttribute("opacity"),this.copyStyles(e,a,["width","height","opacity"]),a.setAttribute("version","1.1");var s=this.getBounds(t);a.setAttribute("viewBox",s.x+" "+s.y+" "+s.width+" "+s.height);var c=o.serializeToString(a);return document.body.removeChild(i),c},e.prototype.copyStyles=function(e,t,o){for(var n=getComputedStyle(e),i=getComputedStyle(t),r="",a=0;a=t.length?{value:void 0,done:!0}:(e=n(t,o),this._i+=e.length,{value:e,done:!1})})},"5e1a":function(e,t,o){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=o("8707").Buffer,r=o(3);function a(e,t,o){e.copy(t,o)}e.exports=function(){function e(){n(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";var t=this.head,o=""+t.data;while(t=t.next)o+=e+t.data;return o},e.prototype.concat=function(e){if(0===this.length)return i.alloc(0);var t=i.allocUnsafe(e>>>0),o=this.head,n=0;while(o)a(o.data,t,n),n+=o.data.length,o=o.next;return t},e}(),r&&r.inspect&&r.inspect.custom&&(e.exports.prototype[r.inspect.custom]=function(){var e=r.inspect({length:this.length});return this.constructor.name+" "+e})},"5e9c":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("6923");function i(e,t){var o=e.get(n.TYPES.CommandStackOptions);for(var i in t)t.hasOwnProperty(i)&&(o[i]=t[i]);return o}t.overrideCommandStackOptions=i},"5eb6":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("3a92");function i(e){return e instanceof n.SModelRoot&&e.hasFeature(t.viewportFeature)&&"zoom"in e&&"scroll"in e}t.viewportFeature=Symbol("viewportFeature"),t.isViewport=i},6176:function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}},s=this&&this.__spreadArrays||function(){for(var e=0,t=0,o=arguments.length;t=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o("e1c6"),a=o("dd02"),s=o("3a92"),c=o("6923"),p=o("42f7"),l=o("320b"),u=o("66f9"),b=function(){function e(){}return e}();t.BoundsData=b;var d=function(){function e(){this.element2boundsData=new Map}return e.prototype.decorate=function(e,t){return(u.isSizeable(t)||u.isLayoutContainer(t))&&this.element2boundsData.set(t,{vnode:e,bounds:t.bounds,boundsChanged:!1,alignmentChanged:!1}),t instanceof s.SModelRoot&&(this.root=t),e},e.prototype.postUpdate=function(e){if(void 0!==e&&e.kind===p.RequestBoundsAction.KIND){var t=e;this.getBoundsFromDOM(),this.layouter.layout(this.element2boundsData);var o=[],n=[];this.element2boundsData.forEach(function(e,t){if(e.boundsChanged&&void 0!==e.bounds){var i={elementId:t.id,newSize:{width:e.bounds.width,height:e.bounds.height}};t instanceof s.SChildElement&&u.isLayoutContainer(t.parent)&&(i.newPosition={x:e.bounds.x,y:e.bounds.y}),o.push(i)}e.alignmentChanged&&void 0!==e.alignment&&n.push({elementId:t.id,newAlignment:e.alignment})});var i=void 0!==this.root?this.root.revision:void 0;this.actionDispatcher.dispatch(new p.ComputedBoundsAction(o,i,n,t.requestId)),this.element2boundsData.clear()}},e.prototype.getBoundsFromDOM=function(){var e=this;this.element2boundsData.forEach(function(t,o){if(t.bounds&&u.isSizeable(o)){var n=t.vnode;if(n&&n.elm){var i=e.getBounds(n.elm,o);!u.isAlignable(o)||a.almostEquals(i.x,0)&&a.almostEquals(i.y,0)||(t.alignment={x:-i.x,y:-i.y},t.alignmentChanged=!0);var r={x:o.bounds.x,y:o.bounds.y,width:i.width,height:i.height};a.almostEquals(r.x,o.bounds.x)&&a.almostEquals(r.y,o.bounds.y)&&a.almostEquals(r.width,o.bounds.width)&&a.almostEquals(r.height,o.bounds.height)||(t.bounds=r,t.boundsChanged=!0)}}})},e.prototype.getBounds=function(e,t){if("function"!==typeof e.getBBox)return this.logger.error(this,"Not an SVG element:",e),a.EMPTY_BOUNDS;var o=e.getBBox();return{x:o.x,y:o.y,width:o.width,height:o.height}},n([r.inject(c.TYPES.ILogger),i("design:type",Object)],e.prototype,"logger",void 0),n([r.inject(c.TYPES.IActionDispatcher),i("design:type",Object)],e.prototype,"actionDispatcher",void 0),n([r.inject(c.TYPES.Layouter),i("design:type",l.Layouter)],e.prototype,"layouter",void 0),e=n([r.injectable()],e),e}();t.HiddenBoundsUpdater=d},"61d8":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("9757"),p=o("6923"),l=o("3585"),u=o("168d"),b=function(){function e(t,o,n){this.routableId=t,this.newSourceId=o,this.newTargetId=n,this.kind=e.KIND}return e.KIND="reconnect",e}();t.ReconnectAction=b;var d=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o}return n(t,e),t.prototype.execute=function(e){return this.doExecute(e),e.root},t.prototype.doExecute=function(e){var t=e.root.index,o=t.getById(this.action.routableId);if(o instanceof l.SRoutableElement){var n=this.edgeRouterRegistry.get(o.routerKind),i=n.takeSnapshot(o);n.applyReconnect(o,this.action.newSourceId,this.action.newTargetId);var r=n.takeSnapshot(o);this.memento={edge:o,before:i,after:r}}},t.prototype.undo=function(e){if(this.memento){var t=this.edgeRouterRegistry.get(this.memento.edge.routerKind);t.applySnapshot(this.memento.edge,this.memento.before)}return e.root},t.prototype.redo=function(e){if(this.memento){var t=this.edgeRouterRegistry.get(this.memento.edge.routerKind);t.applySnapshot(this.memento.edge,this.memento.after)}return e.root},t.KIND=b.KIND,i([s.inject(u.EdgeRouterRegistry),r("design:type",u.EdgeRouterRegistry)],t.prototype,"edgeRouterRegistry",void 0),t=i([s.injectable(),a(0,s.inject(p.TYPES.Action)),r("design:paramtypes",[b])],t),t}(c.Command);t.ReconnectCommand=d},6208:function(e,t,o){"use strict";var n=o("6cea"),i=o.n(n);i.a},"624f":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("30e3"),i=o("c5f4"),r=o("1979"),a=o("66d7"),s=function(){function e(e){this._cb=e}return e.prototype.unwrap=function(){return this._cb()},e}();function c(e){return function(t,o,s){if(void 0===e)throw new Error(n.UNDEFINED_INJECT_ANNOTATION(t.name));var c=new r.Metadata(i.INJECT_TAG,e);"number"===typeof s?a.tagParameter(t,o,s,c):a.tagProperty(t,o,c)}}t.LazyServiceIdentifer=s,t.inject=c},6283:function(e,t,o){"use strict";var n=o("5bcd"),i=o.n(n);i.a},6420:function(e,t,o){"use strict";var n=o("1f0f"),i=o.n(n);i.a},6592:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTextVNode=a,t.transformName=s,t.unescapeEntities=l;var n=o("81aa"),i=r(n);function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return(0,i.default)(void 0,void 0,void 0,l(e,t))}function s(e){e=e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()});var t=e.charAt(0).toLowerCase();return""+t+e.substring(1)}var c=new RegExp("&[a-z0-9#]+;","gi"),p=null;function l(e,t){return p||(p=t.createElement("div")),e.replace(c,function(e){return p.innerHTML=e,p.textContent})}},"65d1":function(e,t,o){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,o=1,n=arguments.length;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o("e1c6"),s=o("393a"),c=o("3623"),p=o("e45b"),l=o("8e97"),u=o("779b"),b=o("3585"),d=o("168d"),M=o("8d9d"),h=function(){function e(){}return e.prototype.render=function(e,t){var o="scale("+e.zoom+") translate("+-e.scroll.x+","+-e.scroll.y+")";return s.svg("svg",{"class-sprotty-graph":!0},s.svg("g",{transform:o},t.renderChildren(e)))},e=i([a.injectable()],e),e}();t.SGraphView=h;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(e,t){var o=this.edgeRouterRegistry.get(e.routerKind),n=o.route(e);if(0===n.length)return this.renderDanglingEdge("Cannot compute route",e,t);if(!this.isVisible(e,n,t)){if(0===e.children.length)return;return s.svg("g",null,t.renderChildren(e,{route:n}))}return s.svg("g",{"class-sprotty-edge":!0,"class-mouseover":e.hoverFeedback},this.renderLine(e,n,t),this.renderAdditionals(e,n,t),t.renderChildren(e,{route:n}))},t.prototype.renderLine=function(e,t,o){for(var n=t[0],i="M "+n.x+","+n.y,r=1;r0},e.prototype.connect_=function(){n&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){n&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,o=void 0===t?"":t,n=p.some(function(e){return!!~o.indexOf(e)});n&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),b=function(e,t){for(var o=0,n=Object.keys(t);o0},e}(),w="undefined"!==typeof WeakMap?new WeakMap:new o,L=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var o=u.getInstance(),n=new R(t,o,this);w.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){L.prototype[e]=function(){var t;return(t=w.get(this))[e].apply(t,arguments)}});var C=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:L}();t["a"]=C}).call(this,o("c8ba"))},"6f35":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("842c"),r=o("3ada"),a=new n.ContainerModule(function(e,t,o){i.configureCommand({bind:e,isBound:o},r.BringToFrontCommand)});t.default=a},"70d9":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("3864"),c=o("e1c6"),p=o("6923"),l=function(e){function t(t){var o=e.call(this)||this;return t.forEach(function(e){return o.register(e.TYPE,new e)}),o}return n(t,e),t=i([c.injectable(),a(0,c.multiInject(p.TYPES.IButtonHandler)),a(0,c.optional()),r("design:paramtypes",[Array])],t),t}(s.InstanceRegistry);t.ButtonHandlerRegistry=l},7122:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("30e3"),i=o("155f"),r=o("c5f4");function a(e,t,o){var n=t.filter(function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ClassProperty}),r=n.map(o);return n.forEach(function(t,o){var n="";n=t.target.name.value();var i=r[o];e[n]=i}),e}function s(e,t){return new(e.bind.apply(e,[void 0].concat(t)))}function c(e,t){if(Reflect.hasMetadata(r.POST_CONSTRUCT,e)){var o=Reflect.getMetadata(r.POST_CONSTRUCT,e);try{t[o.value]()}catch(t){throw new Error(n.POST_CONSTRUCT_ERROR(e.name,t.message))}}}function p(e,t,o){var n=null;if(t.length>0){var r=t.filter(function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ConstructorArgument}),p=r.map(o);n=s(e,p),n=a(n,t,o)}else n=new e;return c(e,n),n}t.resolveInstance=p},"715d":function(e,t,o){"use strict";var n=o("1f66"),i=o.n(n);i.a},7173:function(e,t,o){"use strict";var n=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"ft-wrapper",class:{"ft-no-timestamp":0===e.slices.length||-1===e.timestamp}},[o("div",{staticClass:"ft-container"},[o("div",{staticClass:"ft-time row"},[o("div",{staticClass:"ft-time-origin-container",on:{click:function(t){e.onClick(t,function(){e.changeTimestamp(-1)})}}},[o("q-icon",{staticClass:"ft-time-origin",class:{"ft-time-origin-active":-1===e.timestamp},attrs:{name:"mdi-clock-start"}}),0!==e.slices.length?o("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"},domProps:{innerHTML:e._s(e.slices.length>0?e.slices[0][1]:e.$t("label.timeOrigin"))}}):e._e()],1),o("div",{ref:"ft-timeline-"+e.observationId,staticClass:"ft-timeline-container col",class:{"ot-timeline-with-time":-1!==e.timestamp}},[o("div",{ref:"ft-timeline",staticClass:"ft-timeline",class:{"ft-with-slices":0!==e.slices.length},on:{mousemove:e.moveOnTimeline,click:function(t){e.changeTimestamp(e.getDateFromPosition(t))}}},[o("div",{directives:[{name:"show",rawName:"v-show",value:e.slices.length>0,expression:"slices.length > 0"}],staticClass:"ft-timeline-viewer"}),e.slices.length<=1?o("div",{staticClass:"ft-slice-container",style:{left:e.calculatePosition(e.start)+"px"}},[o("div",{staticClass:"ft-slice"}),o("div",{staticClass:"ft-slice-caption"},[e._v(e._s(e.getLabel(e.start)))])]):e._e(),e._l(e.slices,function(t,n){return-1!==t[0]?o("div",{key:n,staticClass:"ft-slice-container",style:{left:e.calculatePosition(t[0])+"px"}},[o("div",{staticClass:"ft-slice"}),o("div",{staticClass:"ft-slice-caption"},[e._v(e._s(e.getLabel(t[0])))])]):e._e()}),o("div",{staticClass:"ft-slice-container",style:{left:"calc("+e.calculatePosition(e.end)+"px - 2px)"}},[o("div",{staticClass:"ft-slice"}),o("div",{staticClass:"ft-slice-caption"},[e._v(e._s(e.getLabel(e.end)))])]),-1!==e.timestamp?o("div",{staticClass:"ft-actual-time",style:{left:"calc("+e.calculatePosition(e.timestamp)+"px - 11px + "+(e.timestamp===e.end?"0":"1")+"px)"}},[o("q-icon",{attrs:{name:"mdi-menu-down-outline"}})],1):e._e(),0!==e.slices.length?o("q-tooltip",{staticClass:"ft-date-tooltip",attrs:{offset:[0,15],self:"top middle",anchor:"bottom middle",delay:300},domProps:{innerHTML:e._s(e.timelineDate)}}):e._e()],2)])])]),o("q-resize-observable",{on:{resize:e.updateWidth}})],1)},i=[];n._withStripped=!0;o("ac6a");var r=o("278c"),a=o.n(r),s=(o("28a5"),o("c5f6"),o("c1df")),c=o.n(s),p=o("b8c1"),l={name:"FigureTimeline",mixins:[p["a"]],props:{observationId:{type:String,required:!0},start:{type:Number,required:!0},end:{type:Number,required:!0},rawSlices:{type:Array,default:function(){return[]}},startingTime:{type:Number,default:-1}},computed:{slices:function(){return this.rawSlices.map(function(e){var t=e.split(",");return[+t[0],t[1]]})}},data:function(){return{timestamp:this.startingTime,timelineDate:null,timelineWidth:0,timelineLeft:0}},methods:{formatDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return null===e?"":(t||(e=c()(e).format("L")),'
'.concat(e,"
"))},updateWidth:function(){var e=this.$refs["ft-timeline-".concat(this.observationId)];e?(this.timelineWidth=e.clientWidth,this.timelineLeft=e.getBoundingClientRect().left):(this.timelineWidth=0,this.timelineLeft=0)},calculatePosition:function(e){if(0===this.timelineWidth)return 0;if(-1===e)return 0;var t=Math.floor((e-this.start)*this.timelineWidth/(this.end-this.start));return t},moveOnTimeline:function(e){var t=this.getSlice(this.getDateFromPosition(e)),o=a()(t,2);this.timelineDate=o[1]},getDateFromPosition:function(e){if(0===this.timelineWidth)return 0;var t=e.clientX-this.timelineLeft,o=Math.floor(this.start+t*(this.end-this.start)/this.timelineWidth);return o>this.end?o=this.end:othis.end)return[this.end,this.formatDate(this.end)];var t=[this.start,this.formatDate(this.start)];return this.slices.length>0&&this.slices.forEach(function(o){o[0]<=e&&(t=o)}),t},changeTimestamp:function(e){if(0!==this.slices.length){e>this.end?this.timestamp=this.end:this.timestamp=e;var t=this.getSlice(e),o=a()(t,2);this.timelineDate=o[1],this.$emit("timestampchange",{time:t[0],timeString:-1===e?t[1]:c()(e).format("L")})}},getLabel:function(e){return c()(e).format("L")}},mounted:function(){this.updateWidth()}},u=l,b=(o("0faf"),o("2877")),d=Object(b["a"])(u,n,i,!1,null,null,null);d.options.__file="FigureTimeline.vue";t["a"]=d.exports},"719e":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("30e3"),i=o("c5f4");function r(){return function(e){if(Reflect.hasOwnMetadata(i.PARAM_TYPES,e))throw new Error(n.DUPLICATED_INJECTABLE_DECORATOR);var t=Reflect.getMetadata(i.DESIGN_PARAM_TYPES,e)||[];return Reflect.defineMetadata(i.PARAM_TYPES,t,e),e}}t.injectable=r},"71d9":function(e,t,o){},"72dd":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("42f7"),a=o("61bf"),s=o("320b"),c=o("842c"),p=new n.ContainerModule(function(e,t,o){c.configureCommand({bind:e,isBound:o},r.SetBoundsCommand),c.configureCommand({bind:e,isBound:o},r.RequestBoundsCommand),e(a.HiddenBoundsUpdater).toSelf().inSingletonScope(),e(i.TYPES.HiddenVNodePostprocessor).toService(a.HiddenBoundsUpdater),e(i.TYPES.Layouter).to(s.Layouter).inSingletonScope(),e(i.TYPES.LayoutRegistry).to(s.LayoutRegistry).inSingletonScope()});t.default=p},7364:function(e,t,o){},7521:function(e,t,o){"use strict";var n=o("48f9"),i=o.n(n);i.a},"755f":function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("393a"),r=o("e45b"),a=o("e1c6"),s=function(){function e(){}return e.prototype.render=function(e,t){var o=16/1792,n="scale("+o+", "+o+")",a=this.getMaxSeverity(e),s=i.svg("g",{"class-sprotty-issue":!0},i.svg("g",{transform:n},i.svg("path",{d:this.getPath(a)})));return r.setClass(s,"sprotty-"+a,!0),s},e.prototype.getMaxSeverity=function(e){for(var t="info",o=0,n=e.issues.map(function(e){return e.severity});o1?o("div",{staticClass:"kal-locales row reverse"},[o("q-select",{staticClass:"kal-lang-selector",attrs:{options:t.localeOptions,color:"app-main-color","hide-underline":""},model:{value:t.selectedLocale,callback:function(o){e.$set(t,"selectedLocale",o)},expression:"app.selectedLocale"}})],1):e._e()])})],2)])],1)],1)],1)])},R=[];W._withStripped=!0;o("a481"),o("7514"),o("20d6"),o("ac6a"),o("cadf"),o("456d"),o("7f7f");var w=o("be3b"),L=o("d247"),C={ab:{name:"Abkhaz",nativeName:"аҧсуа"},aa:{name:"Afar",nativeName:"Afaraf"},af:{name:"Afrikaans",nativeName:"Afrikaans"},ak:{name:"Akan",nativeName:"Akan"},sq:{name:"Albanian",nativeName:"Shqip"},am:{name:"Amharic",nativeName:"አማርኛ"},ar:{name:"Arabic",nativeName:"العربية"},an:{name:"Aragonese",nativeName:"Aragonés"},hy:{name:"Armenian",nativeName:"Հայերեն"},as:{name:"Assamese",nativeName:"অসমীয়া"},av:{name:"Avaric",nativeName:"авар мацӀ"},ae:{name:"Avestan",nativeName:"avesta"},ay:{name:"Aymara",nativeName:"aymar aru"},az:{name:"Azerbaijani",nativeName:"azərbaycan dili"},bm:{name:"Bambara",nativeName:"bamanankan"},ba:{name:"Bashkir",nativeName:"башҡорт теле"},eu:{name:"Basque",nativeName:"euskara"},be:{name:"Belarusian",nativeName:"Беларуская"},bn:{name:"Bengali",nativeName:"বাংলা"},bh:{name:"Bihari",nativeName:"भोजपुरी"},bi:{name:"Bislama",nativeName:"Bislama"},bs:{name:"Bosnian",nativeName:"bosanski jezik"},br:{name:"Breton",nativeName:"brezhoneg"},bg:{name:"Bulgarian",nativeName:"български език"},my:{name:"Burmese",nativeName:"ဗမာစာ"},ca:{name:"Catalan; Valencian",nativeName:"Català"},ch:{name:"Chamorro",nativeName:"Chamoru"},ce:{name:"Chechen",nativeName:"нохчийн мотт"},ny:{name:"Chichewa; Chewa; Nyanja",nativeName:"chiCheŵa"},zh:{name:"Chinese",nativeName:"中文 (Zhōngwén)"},cv:{name:"Chuvash",nativeName:"чӑваш чӗлхи"},kw:{name:"Cornish",nativeName:"Kernewek"},co:{name:"Corsican",nativeName:"corsu"},cr:{name:"Cree",nativeName:"ᓀᐦᐃᔭᐍᐏᐣ"},hr:{name:"Croatian",nativeName:"hrvatski"},cs:{name:"Czech",nativeName:"česky"},da:{name:"Danish",nativeName:"dansk"},dv:{name:"Divehi; Dhivehi; Maldivian;",nativeName:"ދިވެހި"},nl:{name:"Dutch",nativeName:"Nederlands"},en:{name:"English",nativeName:"English",flag:"gb"},eo:{name:"Esperanto",nativeName:"Esperanto"},et:{name:"Estonian",nativeName:"eesti"},ee:{name:"Ewe",nativeName:"Eʋegbe"},fo:{name:"Faroese",nativeName:"føroyskt"},fj:{name:"Fijian",nativeName:"vosa Vakaviti"},fi:{name:"Finnish",nativeName:"suomi"},fr:{name:"French",nativeName:"français"},ff:{name:"Fula; Fulah; Pulaar; Pular",nativeName:"Fulfulde"},gl:{name:"Galician",nativeName:"Galego"},ka:{name:"Georgian",nativeName:"ქართული"},de:{name:"German",nativeName:"Deutsch"},el:{name:"Greek",nativeName:"Ελληνικά"},gn:{name:"Guaraní",nativeName:"Avañeẽ"},gu:{name:"Gujarati",nativeName:"ગુજરાતી"},ht:{name:"Haitian; Haitian Creole",nativeName:"Kreyòl ayisyen"},ha:{name:"Hausa",nativeName:"Hausa"},he:{name:"Hebrew (modern)",nativeName:"עברית"},hz:{name:"Herero",nativeName:"Otjiherero"},hi:{name:"Hindi",nativeName:"हिन्दी"},ho:{name:"Hiri Motu",nativeName:"Hiri Motu"},hu:{name:"Hungarian",nativeName:"Magyar"},ia:{name:"Interlingua",nativeName:"Interlingua"},id:{name:"Indonesian",nativeName:"Bahasa Indonesia"},ie:{name:"Interlingue",nativeName:"Originally called Occidental; then Interlingue after WWII"},ga:{name:"Irish",nativeName:"Gaeilge"},ig:{name:"Igbo",nativeName:"Asụsụ Igbo"},ik:{name:"Inupiaq",nativeName:"Iñupiaq"},io:{name:"Ido",nativeName:"Ido"},is:{name:"Icelandic",nativeName:"Íslenska"},it:{name:"Italian",nativeName:"Italiano"},iu:{name:"Inuktitut",nativeName:"ᐃᓄᒃᑎᑐᑦ"},ja:{name:"Japanese",nativeName:"日本語 (にほんご/にっぽんご)"},jv:{name:"Javanese",nativeName:"basa Jawa"},kl:{name:"Kalaallisut",nativeName:"kalaallisut"},kn:{name:"Kannada",nativeName:"ಕನ್ನಡ"},kr:{name:"Kanuri",nativeName:"Kanuri"},ks:{name:"Kashmiri",nativeName:"कश्मीरी"},kk:{name:"Kazakh",nativeName:"Қазақ тілі"},km:{name:"Khmer",nativeName:"ភាសាខ្មែរ"},ki:{name:"Kikuyu",nativeName:"Gĩkũyũ"},rw:{name:"Kinyarwanda",nativeName:"Ikinyarwanda"},ky:{name:"Kirghiz",nativeName:"кыргыз тили"},kv:{name:"Komi",nativeName:"коми кыв"},kg:{name:"Kongo",nativeName:"KiKongo"},ko:{name:"Korean",nativeName:"한국어 (韓國語)"},ku:{name:"Kurdish",nativeName:"Kurdî"},kj:{name:"Kwanyama",nativeName:"Kuanyama"},la:{name:"Latin",nativeName:"latine"},lb:{name:"Luxembourgish",nativeName:"Lëtzebuergesch"},lg:{name:"Luganda",nativeName:"Luganda"},li:{name:"Limburgish",nativeName:"Limburgs"},ln:{name:"Lingala",nativeName:"Lingála"},lo:{name:"Lao",nativeName:"ພາສາລາວ"},lt:{name:"Lithuanian",nativeName:"lietuvių kalba"},lu:{name:"Luba-Katanga",nativeName:""},lv:{name:"Latvian",nativeName:"latviešu valoda"},gv:{name:"Manx",nativeName:"Gaelg"},mk:{name:"Macedonian",nativeName:"македонски јазик"},mg:{name:"Malagasy",nativeName:"Malagasy fiteny"},ms:{name:"Malay",nativeName:"bahasa Melayu"},ml:{name:"Malayalam",nativeName:"മലയാളം"},mt:{name:"Maltese",nativeName:"Malti"},mi:{name:"Māori",nativeName:"te reo Māori"},mr:{name:"Marathi (Marāṭhī)",nativeName:"मराठी"},mh:{name:"Marshallese",nativeName:"Kajin M̧ajeļ"},mn:{name:"Mongolian",nativeName:"монгол"},na:{name:"Nauru",nativeName:"Ekakairũ Naoero"},nv:{name:"Navajo",nativeName:"Diné bizaad"},nb:{name:"Norwegian Bokmål",nativeName:"Norsk bokmål"},nd:{name:"North Ndebele",nativeName:"isiNdebele"},ne:{name:"Nepali",nativeName:"नेपाली"},ng:{name:"Ndonga",nativeName:"Owambo"},nn:{name:"Norwegian Nynorsk",nativeName:"Norsk nynorsk"},no:{name:"Norwegian",nativeName:"Norsk"},ii:{name:"Nuosu",nativeName:"ꆈꌠ꒿ Nuosuhxop"},nr:{name:"South Ndebele",nativeName:"isiNdebele"},oc:{name:"Occitan",nativeName:"Occitan"},oj:{name:"Ojibwe",nativeName:"ᐊᓂᔑᓈᐯᒧᐎᓐ"},cu:{name:"Old Church Slavonic",nativeName:"ѩзыкъ словѣньскъ"},om:{name:"Oromo",nativeName:"Afaan Oromoo"},or:{name:"Oriya",nativeName:"ଓଡ଼ିଆ"},os:{name:"Ossetian",nativeName:"ирон æвзаг"},pa:{name:"Panjabi",nativeName:"ਪੰਜਾਬੀ"},pi:{name:"Pāli",nativeName:"पाऴि"},fa:{name:"Persian",nativeName:"فارسی"},pl:{name:"Polish",nativeName:"polski"},ps:{name:"Pashto",nativeName:"پښتو"},pt:{name:"Portuguese",nativeName:"Português"},qu:{name:"Quechua",nativeName:"Runa Simi"},rm:{name:"Romansh",nativeName:"rumantsch grischun"},rn:{name:"Kirundi",nativeName:"kiRundi"},ro:{name:"Romanian",nativeName:"română"},ru:{name:"Russian",nativeName:"русский"},sa:{name:"Sanskrit (Saṁskṛta)",nativeName:"संस्कृतम्"},sc:{name:"Sardinian",nativeName:"sardu"},sd:{name:"Sindhi",nativeName:"सिन्धी"},se:{name:"Northern Sami",nativeName:"Davvisámegiella"},sm:{name:"Samoan",nativeName:"gagana faa Samoa"},sg:{name:"Sango",nativeName:"yângâ tî sängö"},sr:{name:"Serbian",nativeName:"српски језик"},gd:{name:"Scottish Gaelic; Gaelic",nativeName:"Gàidhlig"},sn:{name:"Shona",nativeName:"chiShona"},si:{name:"Sinhala",nativeName:"සිංහල"},sk:{name:"Slovak",nativeName:"slovenčina"},sl:{name:"Slovene",nativeName:"slovenščina"},so:{name:"Somali",nativeName:"Soomaaliga"},st:{name:"Southern Sotho",nativeName:"Sesotho"},es:{name:"Spanish; Castilian",nativeName:"español"},su:{name:"Sundanese",nativeName:"Basa Sunda"},sw:{name:"Swahili",nativeName:"Kiswahili"},ss:{name:"Swati",nativeName:"SiSwati"},sv:{name:"Swedish",nativeName:"svenska"},ta:{name:"Tamil",nativeName:"தமிழ்"},te:{name:"Telugu",nativeName:"తెలుగు"},tg:{name:"Tajik",nativeName:"тоҷикӣ"},th:{name:"Thai",nativeName:"ไทย"},ti:{name:"Tigrinya",nativeName:"ትግርኛ"},bo:{name:"Tibetan Standard",nativeName:"བོད་ཡིག"},tk:{name:"Turkmen",nativeName:"Türkmen"},tl:{name:"Tagalog",nativeName:"Wikang Tagalog"},tn:{name:"Tswana",nativeName:"Setswana"},to:{name:"Tonga (Tonga Islands)",nativeName:"faka Tonga"},tr:{name:"Turkish",nativeName:"Türkçe"},ts:{name:"Tsonga",nativeName:"Xitsonga"},tt:{name:"Tatar",nativeName:"татарча"},tw:{name:"Twi",nativeName:"Twi"},ty:{name:"Tahitian",nativeName:"Reo Tahiti"},ug:{name:"Uighur",nativeName:"Uyƣurqə"},uk:{name:"Ukrainian",nativeName:"українська"},ur:{name:"Urdu",nativeName:"اردو"},uz:{name:"Uzbek",nativeName:"zbek"},ve:{name:"Venda",nativeName:"Tshivenḓa"},vi:{name:"Vietnamese",nativeName:"Tiếng Việt"},vo:{name:"Volapük",nativeName:"Volapük"},wa:{name:"Walloon",nativeName:"Walon"},cy:{name:"Welsh",nativeName:"Cymraeg"},wo:{name:"Wolof",nativeName:"Wollof"},fy:{name:"Western Frisian",nativeName:"Frysk"},xh:{name:"Xhosa",nativeName:"isiXhosa"},yi:{name:"Yiddish",nativeName:"ייִדיש"},yo:{name:"Yoruba",nativeName:"Yorùbá"},za:{name:"Zhuang",nativeName:"Saɯ cueŋƅ"}},S=o("2b0e"),E={name:"KlabSettings",data:function(){return{models:{userDetails:!1,appsList:!1},popupsOver:{userDetails:!1,appsList:!1},fabVisible:!1,closeTimeout:null,modalTimeout:null,appsList:[],localeOptions:[],test:"es",TERMINAL_TYPES:c["M"],ISO_LOCALE:C}},computed:a()({},Object(s["c"])("data",["sessionReference","isLocal"]),Object(s["c"])("view",["isApp","klabApp","hasShowSettings","layout","dataflowInfoOpen","mainViewerName"]),{hasDataflowInfo:function(){return this.dataflowInfoOpen&&this.mainViewerName===c["O"].DATAFLOW_VIEWER.name},modalsAreFocused:function(){var e=this;return Object.keys(this.popupsOver).some(function(t){return e.popupsOver[t]})||this.selectOpen},owner:function(){return this.sessionReference&&this.sessionReference.owner?this.sessionReference.owner:{unknown:this.$t("label.unknownUser")}},isDeveloper:function(){return this.owner&&this.owner.groups&&-1!==this.owner.groups.findIndex(function(e){return"DEVELOPERS"===e.id})}}),methods:a()({},Object(s["b"])("data",["loadSessionReference","addTerminal"]),Object(s["b"])("view",["setLayout","setShowSettings"]),{getLocalizedString:function(e,t){if(e.selectedLocale){var o=e.localizations.find(function(t){return t.isoCode===e.selectedLocale});if(o)return"label"===t?o.localizedLabel:o.localizedDescription;if("description"===t)return this.$t("label.noLayoutDescription");if(e.name)return e.name;this.$t("label.noLayoutLabel")}return""},loadApplications:function(){var e=this;if(this.appsList.splice(0),this.sessionReference&&this.sessionReference.publicApps){var t=this.sessionReference.publicApps.filter(function(e){return"WEB"===e.platform||"ANY"===e.platform});t.forEach(function(t){t.logo?(t.logoSrc="".concat("").concat(L["c"].REST_GET_PROJECT_RESOURCE,"/").concat(t.projectId,"/").concat(t.logo.replace("/",":")),e.appsList.push(t)):(t.logoSrc=c["b"].DEFAULT_LOGO,e.appsList.push(t)),e.$set(t,"selectedLocale",t.localizations[0].isoCode),t.localeOptions=t.localizations.map(function(e){return{label:e.languageDescription,value:e.isoCode,icon:"mdi-earth",className:"kal-locale-options"}})})}},runApp:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.selectedLocale,n="".concat(e.name,".").concat(o);this.layout&&this.layout.name===n||(e.selectedLocale=o,this.sendStompMessage(p["a"].RUN_APPLICATION({applicationId:n},this.$store.state.data.session).body),this.$nextTick(function(){t.models.appsList=!1,t.fabVisible=!1}))},exitApp:function(){this.layout&&this.setLayout(null)},logout:function(){var e=this,t={redirectUri:__ENV__.APP_BASE_URL},o="".concat("").concat("/modeler").concat(this.isApp?"?app=".concat(this.klabApp):"");null!==this.token?w["a"].post("".concat("").concat(L["c"].REST_API_LOGOUT),{headers:{Authorization:"Bearer ".concat(localStorage.getItem(c["u"].TOKEN))}}).then(function(n){var i=n.status;205===i?e.$store.state.data.isLocal?(console.warn("paso por aqui"),window.location=o):(console.warn("paso por aqui keycloak"),S["a"].$keycloak.logout(t)):(e.$q.notify({message:e.$t("messages.errorLoggingOut"),type:"negative",icon:"mdi-alert-circle",timeout:2e3}),console.error("Strange status: ".concat(i)))}).catch(function(t){e.$q.notify({message:e.$t("messages.errorLoggingOut"),type:"negative",icon:"mdi-alert-circle",timeout:2e3}),t.response&&403===t.response.status&&console.error("Probably bad token"),console.error("Error logging out: ".concat(t))}):window.location=o},mouseActionEnter:function(e){var t=this;clearTimeout(this.modalTimeout),this.modalTimeout=null,this.$nextTick(function(){t.models[e]=!0,Object.keys(t.models).forEach(function(o){o!==e&&(t.models[o]=!1)})})},mouseFabClick:function(e){var t=this;this.fabVisible?(e.stopPropagation(),e.preventDefault(),setTimeout(function(){window.addEventListener("click",t.closeAll)},300)):(this.closeTimeout&&(clearTimeout(this.closeTimeout),this.closeTimeout=null),this.modalsAreFocused||this.closeAll(e,500))},closeAll:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.closeTimeout=setTimeout(function(){Object.keys(e.models).forEach(function(t){e.models[t]=!1}),e.$refs["klab-settings"].hide(),window.removeEventListener("click",e.closeAll)},t)},openTerminal:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.closeAll(),setTimeout(function(){e.addTerminal(a()({},t&&{type:t}))},200)}}),watch:{sessionReference:function(){this.loadApplications()}},created:function(){this.loadApplications()}},T=E,x=(o("e2d7"),Object(A["a"])(T,W,R,!1,null,null,null));x.options.__file="KlabSettings.vue";var N=x.exports,B=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{directives:[{name:"draggable",rawName:"v-draggable",value:e.draggableConfig,expression:"draggableConfig"}],staticClass:"kterm-container",class:{"kterm-minimized":!e.terminal.active,"kterm-focused":e.hasFocus},attrs:{id:"kterm-container-"+e.terminal.id}},[o("div",{staticClass:"kterm-header",style:{"background-color":e.background},attrs:{id:"kterm-handle-"+e.terminal.id},on:{mousedown:function(t){e.instance.focus()}}},[o("q-btn",{staticClass:"kterm-button kterm-delete-history",attrs:{icon:"mdi-delete-clock-outline",disable:0===e.terminalCommands.length,flat:"",color:"white",dense:""},on:{click:e.deleteHistory}},[o("q-tooltip",{staticClass:"kterm-tooltip",attrs:{anchor:"top middle",self:"bottom middle",offset:[0,8],delay:1e3}},[e._v(e._s(e.$t("label.terminalDeleteHistory")))])],1),o("q-btn",{staticClass:"kterm-button kterm-drag",attrs:{icon:"mdi-resize",flat:"",color:"white",dense:""},on:{click:function(t){e.selectSize=!0}}},[o("q-tooltip",{staticClass:"kterm-tooltip",attrs:{anchor:"top middle",self:"bottom middle",offset:[0,8],delay:1e3}},[e._v(e._s(e.$t("label.terminalResizeWindow")))])],1),e.terminal.active?o("q-btn",{staticClass:"kterm-button kterm-minimize",attrs:{icon:"mdi-window-minimize",flat:"",color:"white",dense:""},on:{click:e.minimize}},[o("q-tooltip",{staticClass:"kterm-tooltip",attrs:{anchor:"top middle",self:"bottom middle",offset:[0,8],delay:1e3}},[e._v(e._s(e.$t("label.terminalMinimize")))])],1):o("q-btn",{staticClass:"kterm-button kterm-minimize",attrs:{icon:"mdi-window-maximize",flat:"",color:"white",dense:""},on:{click:e.maximize}},[o("q-tooltip",{staticClass:"kterm-tooltip",attrs:{anchor:"top middle",self:"bottom middle",offset:[0,8],delay:1e3}},[e._v(e._s(e.$t("label.terminalMaxmize")))])],1),o("q-btn",{staticClass:"kterm-button kterm-close",attrs:{icon:"mdi-close-circle",flat:"",color:"white",dense:""},on:{click:e.closeTerminal}},[o("q-tooltip",{staticClass:"kterm-tooltip",attrs:{anchor:"top middle",self:"bottom middle",offset:[0,8],delay:1e3}},[e._v(e._s(e.$t("label.terminalClose")))])],1)],1),o("div",{directives:[{name:"show",rawName:"v-show",value:e.terminal.active,expression:"terminal.active"}],staticClass:"kterm-terminal",attrs:{id:"kterm-"+e.terminal.id}}),o("q-dialog",{attrs:{color:"mc-main"},on:{ok:e.onOk},scopedSlots:e._u([{key:"buttons",fn:function(t){return[o("q-btn",{attrs:{color:"mc-main",outline:"",label:e.$t("label.appCancel")},on:{click:t.cancel}}),o("q-btn",{attrs:{color:"mc-main",label:e.$t("label.appOK")},on:{click:function(o){e.sizeSelected(t.ok,!1)}}}),o("q-btn",{attrs:{color:"mc-main",outline:"",label:e.$t("label.appSetDefault")},on:{click:function(o){e.sizeSelected(t.ok,!0)}}})]}}]),model:{value:e.selectSize,callback:function(t){e.selectSize=t},expression:"selectSize"}},[o("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("label.titleSelectTerminalSize")))]),o("div",{attrs:{slot:"body"},slot:"body"},[o("q-option-group",{attrs:{type:"radio",color:"mc-main",options:e.TERMINAL_SIZE_OPTIONS.map(function(e){return{label:e.label,value:e.value}})},model:{value:e.selectedSize,callback:function(t){e.selectedSize=t},expression:"selectedSize"}})],1)])],1)},k=[];B._withStripped=!0;var P,D=o("448a"),I=o.n(D),X=(o("96cf"),o("c973")),j=o.n(X),F=o("fcf3");o("f751");function H(e){return e&&(e.$el||e)}function U(e,t,o,n,i){void 0===i&&(i={});var r={left:o,top:n},a=e.height,s=e.width,c=n,p=n+a,l=o,u=o+s,b=i.top||0,d=i.bottom||0,M=i.left||0,h=i.right||0,f=t.top+b,z=t.bottom-d,O=t.left+M,A=t.right-h;return cz&&(r.top=z-a),lA&&(r.left=A-s),r}(function(e){e[e["Start"]=1]="Start",e[e["End"]=2]="End",e[e["Move"]=3]="Move"})(P||(P={}));var V={bind:function(e,t,o,n){V.update(e,t,o,n)},update:function(e,t,o,n){if(!t.value||!t.value.stopDragging){var i=t.value&&t.value.handle&&H(t.value.handle)||e;t&&t.value&&t.value.resetInitialPos&&(d(),f()),i.getAttribute("draggable")||(e.removeEventListener("touchstart",e.listener),e.removeEventListener("mousedown",e.listener),i.addEventListener("mousedown",c),i.addEventListener("touchstart",c,{passive:!1}),i.setAttribute("draggable","true"),e.listener=c,d(),f())}function r(){if(t.value)return t.value.boundingRect||t.value.boundingElement&&t.value.boundingElement.getBoundingClientRect()}function a(){if(!M()){var t=z();t.currentDragPosition&&(e.style.position="fixed",e.style.left=t.currentDragPosition.left+"px",e.style.top=t.currentDragPosition.top+"px")}}function s(e){return e.clientX=e.touches[0].clientX,e.clientY=e.touches[0].clientY,e}function c(e){if(window.TouchEvent&&e instanceof TouchEvent){if(e.targetTouches.length1||(t.value.fingers=2),h({initialPosition:s,startDragPosition:s,currentDragPosition:s,initialPos:u(e)}),a()}function M(){return t&&t.value&&t.value.noMove}function h(e){var t=z(),o=Object.assign({},t,e);i.setAttribute("draggable-state",JSON.stringify(o))}function f(e,o){var n=z(),i={x:0,y:0};n.currentDragPosition&&n.startDragPosition&&(i.x=n.currentDragPosition.left-n.startDragPosition.left,i.y=n.currentDragPosition.top-n.startDragPosition.top);var r=n.currentDragPosition&&Object.assign({},n.currentDragPosition);o===P.End?t.value&&t.value.onDragEnd&&n&&t.value.onDragEnd(i,r,e):o===P.Start?t.value&&t.value.onDragStart&&n&&t.value.onDragStart(i,r,e):t.value&&t.value.onPositionChange&&n&&t.value.onPositionChange(i,r,e)}function z(){return JSON.parse(i.getAttribute("draggable-state"))||{}}}},G=o("741d"),K=o("abcf"),$=(o("abb2"),K["b"].height),Y={name:"KlabTerminal",props:{terminal:{type:Object,required:!0},size:{type:String,validator:function(e){return-1!==c["L"].findIndex(function(t){return t.value===e})}},bgcolor:{type:String,default:""}},directives:{Draggable:V},data:function(){var e=this;return{instance:void 0,zIndex:1e3,draggableConfig:{handle:void 0,onDragEnd:function(){e.instance.focus()}},draggableElement:void 0,commandCounter:0,command:[],hasFocus:!1,selectedSize:null,selectSize:!1,commandsIndex:-1,TERMINAL_SIZE_OPTIONS:c["L"]}},computed:a()({background:function(){return""!==this.bgcolor?this.bgcolor:this.terminal.type===c["M"].DEBUGGER?"#002f74":"#2e0047"}},Object(s["c"])("data",["terminalCommands"])),methods:a()({},Object(s["b"])("data",["removeTerminal","addTerminalCommand","clearTerminalCommands"]),{minimize:function(){this.terminal.active=!1,this.changeDraggablePosition({top:window.innerHeight-55,left:25})},maximize:function(){var e=this;this.changeDraggablePosition(this.draggableConfig.initialPosition),this.terminal.active=!0,this.$nextTick(function(){e.instance.focus()})},closeTerminal:function(){this.sendStompMessage(p["a"].CONSOLE_CLOSED({consoleId:this.terminal.id,consoleType:this.terminal.type},this.$store.state.data.session).body),this.instance=null,this.removeTerminal(this.terminal.id)},changeDraggablePosition:function(e){this.draggableElement.style.left="".concat(e.left,"px"),this.draggableElement.style.top="".concat(e.top,"px");var t=JSON.parse(this.draggableConfig.handle.getAttribute("draggable-state"));t.startDragPosition=e,t.currentDragPosition=e,this.draggableConfig.handle.setAttribute("draggable-state",JSON.stringify(t))},commandResponseListener:function(e){e&&e.payload&&e.consoleId===this.terminal.id&&(this.instance.write("\b \b\b \b".concat(e.payload.replaceAll("\n","\r\n"))),this.instance.prompt())},onFocusListener:function(e){this.hasFocus=this.terminal.id===e},sizeSelected:function(){var e=j()(regeneratorRuntime.mark(function e(t,o){var n,i=this;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t();case 2:n=c["L"].find(function(e){return e.value===i.selectedSize}),this.instance.resize(n.cols,n.rows),o&&G["a"].set(c["R"].COOKIE_TERMINAL_SIZE,this.selectedSize,{expires:30,path:"/",secure:!0});case 5:case"end":return e.stop()}},e,this)}));return function(t,o){return e.apply(this,arguments)}}(),onOk:function(){},deleteHistory:function(){this.clearTerminalCommands()}}),created:function(){this.sendStompMessage(p["a"].CONSOLE_CREATED({consoleId:this.terminal.id,consoleType:this.terminal.type},this.$store.state.data.session).body)},mounted:function(){var e,t=this;e=this.size?this.size:G["a"].has(c["R"].COOKIE_TERMINAL_SIZE)?G["a"].get(c["R"].COOKIE_TERMINAL_SIZE):c["L"][0].value;var o=c["L"].find(function(t){return t.value===e});this.selectedSize=o.value,this.instance=new F["Terminal"]({cols:o.cols,rows:o.rows,cursorBlink:!0,bellStyle:"both",theme:{background:this.background}}),this.instance.prompt=function(){t.instance.write("\r\n$ ")},this.instance.open(document.getElementById("kterm-".concat(this.terminal.id))),this.instance.writeln("".concat(this.$t("messages.terminalHello",{type:this.terminal.type})," / ").concat(this.terminal.id)),this.instance.prompt(),this.instance.onData(function(e){var o=function(){for(var e,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=0;n0){var i=t.command.join("");t.sendStompMessage(p["a"].COMMAND_REQUEST({consoleId:t.terminal.id,consoleType:t.terminal.type,commandId:"".concat(t.terminal.id,"-").concat(++t.commandCounter),payload:i},t.$store.state.data.session).body),t.addTerminalCommand(i)}t.command.splice(0,t.command.length),t.commandsIndex=-1,t.instance.prompt();break;case"":n>2&&t.instance.write("\b \b"),t.command.length>0&&t.command.pop();break;case"":t.terminalCommands.length>0&&t.commandsIndex0&&t.commandsIndex>0?o(t.terminalCommands[--t.commandsIndex]):(o(),t.commandsIndex=-1);break;case"":break;case"":break;default:t.command.push(e),t.instance.write(e)}}),this.instance.textarea.addEventListener("focus",function(){t.$eventBus.$emit(c["h"].TERMINAL_FOCUSED,t.terminal.id)}),this.draggableConfig.handle=document.getElementById("kterm-handle-".concat(this.terminal.id)),this.draggableElement=document.getElementById("kterm-container-".concat(this.terminal.id)),this.draggableConfig.initialPosition={top:window.innerHeight-$(this.draggableElement)-25,left:25},this.instance.focus(),this.$eventBus.$on(c["h"].TERMINAL_FOCUSED,this.onFocusListener),this.$eventBus.$on(c["h"].COMMAND_RESPONSE,this.commandResponseListener)},beforeDestroy:function(){null!==this.instance&&this.closeTerminal(),this.$eventBus.$off(c["h"].TERMINAL_FOCUSED,this.onFocusListener),this.$eventBus.$off(c["h"].COMMAND_RESPONSE,this.commandResponseListener)}},J=Y,Q=(o("23a0"),Object(A["a"])(J,B,k,!1,null,null,null));Q.options.__file="KlabTerminal.vue";var Z=Q.exports,ee=function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.activeDialog?o("q-modal",{attrs:{"content-classes":"kaa-container"},model:{value:e.hasActiveDialogs,callback:function(t){e.hasActiveDialogs=t},expression:"hasActiveDialogs"}},[o("div",{staticClass:"kaa-content",domProps:{innerHTML:e._s(e.activeDialog.content)}}),o("div",{staticClass:"kaa-button"},[o("q-btn",{attrs:{color:"app-title-color",label:e.$t("label.appOK")},on:{click:function(t){e.dialogAction(e.activeDialog,!0)}}}),e.activeDialog.type===e.APPS_COMPONENTS.CONFIRM?o("q-btn",{attrs:{color:"app-title-color",label:e.$t("label.appCancel")},on:{click:function(t){e.dialogAction(e.activeDialog,!1)}}}):e._e()],1)]):e._e()},te=[];ee._withStripped=!0;var oe={name:"AppDialogViewer",data:function(){return{activeDialog:null,APPS_COMPONENTS:c["a"]}},computed:a()({},Object(s["c"])("view",["layout","activeDialogs"]),{hasActiveDialogs:{get:function(){return this.activeDialogs.length>0},set:function(){}}}),methods:{setActiveDialog:function(){var e=this;this.activeDialogs.length>0?this.activeDialog=this.activeDialogs[this.activeDialogs.length-1]:this.$nextTick(function(){e.activeDialog=null})},dialogAction:function(e,t){this.activeDialog.dismiss=!0,e.type===c["a"].CONFIRM&&this.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},e,{components:[]}),booleanValue:t})}},watch:{activeDialogs:function(){this.setActiveDialog()}},mounted:function(){this.setActiveDialog()}},ne=oe,ie=(o("715d"),Object(A["a"])(ne,ee,te,!1,null,null,null));ie.options.__file="AppDialogsViewer.vue";var re=ie.exports,ae=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("q-layout",{staticClass:"kapp-layout-container",class:{"kapp-main":e.isRootLayout},style:e.modalDimensions,attrs:{view:"hhh lpr fFf",id:"kapp-"+e.idSuffix}},[!e.isModal&&e.hasHeader?o("q-layout-header",{staticClass:"kapp-header-container kapp-container print-hide",class:{"kapp-main":e.isRootLayout},attrs:{id:"kapp-"+e.idSuffix+"-header"}},[e.layout.header?o("klab-app-viewer",{staticClass:"kapp-header",attrs:{component:e.layout.header,direction:"horizontal"}}):o("div",{staticClass:"kapp-header row"},[o("div",{staticClass:"kapp-logo-container"},[o("img",{ref:"kapp-logo",staticClass:"kapp-logo",attrs:{id:"kapp-"+e.idSuffix+"-logo",src:e.logoImage}})]),o("div",{staticClass:"kapp-title-container"},[e.layout.label?o("div",{staticClass:"kapp-title"},[e._v(e._s(e.layout.label)),e.layout.versionString?o("span",{staticClass:"kapp-version"},[e._v(e._s(e.layout.versionString))]):e._e()]):e._e(),e.layout.description?o("div",{staticClass:"kapp-subtitle"},[e._v(e._s(e.layout.description))]):e._e()]),e.layout.menu&&e.layout.menu.length>0?o("div",{staticClass:"kapp-header-menu-container"},e._l(e.layout.menu,function(t){return o("div",{key:t.id,staticClass:"kapp-header-menu-item klab-link",on:{click:function(o){e.clickOnMenu(t.id,t.url)}}},[e._v(e._s(t.text)),t.url?o("span",{staticClass:"klab-external-link"},[e._v("🡥")]):e._e()])})):e._e(),o("div",{staticClass:"kapp-actions-container row items-end justify-end"},[o("main-actions-buttons",{staticClass:"col items-end",attrs:{"is-header":!0}})],1)])],1):e._e(),e.showLeftPanel?o("q-layout-drawer",{staticClass:"kapp-left-container kapp-container print-hide",class:{"kapp-main":e.isRootLayout},attrs:{side:"left","content-class":"kapp-left-inner-container",width:e.leftPanelWidth},model:{value:e.showLeftPanel,callback:function(t){e.showLeftPanel=t},expression:"showLeftPanel"}},[e.leftPanel?[o("klab-app-viewer",{staticClass:"kapp-left-wrapper",attrs:{id:"kapp-"+e.idSuffix+"-left-0",component:e.layout.leftPanels[0],direction:"vertical"}})]:e._e()],2):e._e(),e.showRightPanel?o("q-layout-drawer",{staticClass:"kapp-right-container kapp-container print-hide",class:{"kapp-main":e.isRootLayout},attrs:{side:"right","content-class":"kapp-right-inner-container",width:e.rightPanelWidth},model:{value:e.showRightPanel,callback:function(t){e.showRightPanel=t},expression:"showRightPanel"}},[e.rightPanel?[o("klab-app-viewer",{staticClass:"kapp-right-wrapper",attrs:{id:"kapp-"+e.idSuffix+"-right-0",component:e.layout.rightPanels[0],direction:"vertical"}})]:e._e()],2):e._e(),o("q-page-container",[e.layout&&0!==e.layout.panels.length?[o("klab-app-viewer",{staticClass:"kapp-main-container kapp-container print-hide",attrs:{id:"kapp-"+e.idSuffix+"-main-0",mainPanelStyle:e.mainPanelStyle,component:e.layout.panels[0]}})]:o("k-explorer",{staticClass:"kapp-main-container is-kexplorer",attrs:{id:"kapp-"+e.idSuffix+"-main",mainPanelStyle:e.mainPanelStyle}})],2),o("q-resize-observable",{on:{resize:function(t){e.updateLayout()}}}),o("q-modal",{staticClass:"kapp-modal",attrs:{"no-esc-dismiss":"","no-backdrop-dismiss":"","content-classes":["absolute-center","kapp-loading"]},model:{value:e.blockApp,callback:function(t){e.blockApp=t},expression:"blockApp"}},[o("q-spinner",{attrs:{color:"app-main-color",size:"3em"}})],1)],1)},se=[];ae._withStripped=!0;o("6762"),o("2fdb"),o("4917"),o("5df3"),o("1c4c");var ce=o("50fb"),pe=o.n(ce),le=o("84a2"),ue=o.n(le),be=o("6dd8"),de=o("0312"),Me=o.n(de);function he(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fe(e,t){for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:"y";if(this.isEnabled[n]||this.options.forceVisible){"x"===n?(e=this.scrollbarX,t=this.contentSizeX,o=this.trackXSize):(e=this.scrollbarY,t=this.contentSizeY,o=this.trackYSize);var i=o/t;this.handleSize[n]=Math.max(~~(i*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(this.handleSize[n]=Math.min(this.handleSize[n],this.options.scrollbarMaxSize)),"x"===n?e.style.width="".concat(this.handleSize[n],"px"):e.style.height="".concat(this.handleSize[n],"px")}}},{key:"positionScrollbar",value:function(){var e,t,o,n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";"x"===i?(e=this.scrollbarX,t=this.contentEl[this.scrollOffsetAttr[i]],o=this.contentSizeX,n=this.trackXSize):(e=this.scrollbarY,t=this.scrollContentEl[this.scrollOffsetAttr[i]],o=this.contentSizeY,n=this.trackYSize);var r=t/(o-n),a=~~((n-this.handleSize[i])*r);(this.isEnabled[i]||this.options.forceVisible)&&(e.style.transform="x"===i?"translate3d(".concat(a,"px, 0, 0)"):"translate3d(0, ".concat(a,"px, 0)"))}},{key:"toggleTrackVisibility",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y",t="y"===e?this.trackY:this.trackX,o="y"===e?this.scrollbarY:this.scrollbarX;this.isEnabled[e]||this.options.forceVisible?t.style.visibility="visible":t.style.visibility="hidden",this.options.forceVisible&&(this.isEnabled[e]?o.style.visibility="visible":o.style.visibility="hidden")}},{key:"hideNativeScrollbar",value:function(){this.scrollbarWidth=pe()(),this.scrollContentEl.style[this.isRtl?"paddingLeft":"paddingRight"]="".concat(this.scrollbarWidth||this.offsetSize,"px"),this.scrollContentEl.style.marginBottom="-".concat(2*this.scrollbarWidth||this.offsetSize,"px"),this.contentEl.style.paddingBottom="".concat(this.scrollbarWidth||this.offsetSize,"px"),0!==this.scrollbarWidth&&(this.contentEl.style[this.isRtl?"marginLeft":"marginRight"]="-".concat(this.scrollbarWidth,"px"))}},{key:"showScrollbar",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";this.isVisible[t]||(e="x"===t?this.scrollbarX:this.scrollbarY,this.isEnabled[t]&&(e.classList.add("visible"),this.isVisible[t]=!0),this.options.autoHide&&(window.clearInterval(this.flashTimeout),this.flashTimeout=window.setInterval(this.hideScrollbars,this.options.timeout)))}},{key:"onDrag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y";e.preventDefault();var o="y"===t?this.scrollbarY:this.scrollbarX,n="y"===t?e.pageY:e.pageX;this.dragOffset[t]=n-o.getBoundingClientRect()[this.offsetAttr[t]],this.currentAxis=t,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.onEndDrag)}},{key:"getScrollElement",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";return"y"===e?this.scrollContentEl:this.contentEl}},{key:"getContentElement",value:function(){return this.contentEl}},{key:"removeListeners",value:function(){this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter),this.scrollContentEl.removeEventListener("scroll",this.onScrollY),this.contentEl.removeEventListener("scroll",this.onScrollX),this.mutationObserver.disconnect(),this.resizeObserver.disconnect()}},{key:"unMount",value:function(){this.removeListeners(),this.el.SimpleBar=null}},{key:"isChildNode",value:function(e){return null!==e&&(e===this.el||this.isChildNode(e.parentNode))}},{key:"isWithinBounds",value:function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height}}],[{key:"initHtmlApi",value:function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),"undefined"!==typeof MutationObserver&&(this.globalObserver=new MutationObserver(function(t){t.forEach(function(t){Array.from(t.addedNodes).forEach(function(t){1===t.nodeType&&(t.hasAttribute("data-simplebar")?!t.SimpleBar&&new e(t,e.getElOptions(t)):Array.from(t.querySelectorAll("[data-simplebar]")).forEach(function(t){!t.SimpleBar&&new e(t,e.getElOptions(t))}))}),Array.from(t.removedNodes).forEach(function(e){1===e.nodeType&&(e.hasAttribute("data-simplebar")?e.SimpleBar&&e.SimpleBar.unMount():Array.from(e.querySelectorAll("[data-simplebar]")).forEach(function(e){e.SimpleBar&&e.SimpleBar.unMount()}))})})}),this.globalObserver.observe(document,{childList:!0,subtree:!0})),"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements))}},{key:"getElOptions",value:function(e){var t=Array.from(e.attributes).reduce(function(e,t){var o=t.name.match(/data-simplebar-(.+)/);if(o){var n=o[1].replace(/\W+(.)/g,function(e,t){return t.toUpperCase()});switch(t.value){case"true":e[n]=!0;break;case"false":e[n]=!1;break;case void 0:e[n]=!0;break;default:e[n]=t.value}}return e},{});return t}},{key:"removeObserver",value:function(){this.globalObserver.disconnect()}},{key:"initDOMLoadedElements",value:function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.from(document.querySelectorAll("[data-simplebar]")).forEach(function(t){t.SimpleBar||new e(t,e.getElOptions(t))})}},{key:"defaultOptions",get:function(){return{autoHide:!0,forceVisible:!1,classNames:{content:"simplebar-content",scrollContent:"simplebar-scroll-content",scrollbar:"simplebar-scrollbar",track:"simplebar-track"},scrollbarMinSize:25,scrollbarMaxSize:0,direction:"ltr",timeout:1e3}}}]),e}();Me.a&&Oe.initHtmlApi();var Ae=Oe,me=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("q-layout",{staticClass:"kexplorer-main-container print-hide",style:{width:e.mainPanelStyle.width+"px",height:e.mainPanelStyle.height+"px"},attrs:{view:"hHh lpr fFf",container:""}},[o("q-layout-drawer",{attrs:{side:"left",overlay:!1,breakpoint:0,width:e.leftMenuState===e.LEFTMENU_CONSTANTS.LEFTMENU_MAXIMIZED?e.LEFTMENU_CONSTANTS.LEFTMENU_MAXSIZE:e.LEFTMENU_CONSTANTS.LEFTMENU_MINSIZE,"content-class":["klab-left","no-scroll",e.largeMode?"klab-large-mode":""]},model:{value:e.leftMenuVisible,callback:function(t){e.leftMenuVisible=t},expression:"leftMenuVisible"}},[o("klab-left-menu")],1),o("q-page-container",[o("q-page",{staticClass:"column"},[o("div",{staticClass:"col row full-height kexplorer-container",class:{"kd-is-app":null!==e.layout}},[o("keep-alive",[o(e.mainViewer.name,{tag:"component",attrs:{"container-style":{width:e.mainPanelStyle.width-e.leftMenuWidth,height:e.mainPanelStyle.height}}})],1),o("q-resize-observable",{on:{resize:e.setChildrenToAskFor}})],1),o("div",{staticClass:"col-1 row"},[e.logVisible?o("klab-log"):e._e()],1),o("transition",{attrs:{name:"component-fade",mode:"out-in"}},[e.mainViewer.mainControl?o("klab-main-control",{directives:[{name:"show",rawName:"v-show",value:e.isTreeVisible,expression:"isTreeVisible"}]}):e._e()],1),o("transition",{attrs:{appear:"","enter-active-class":"animated zoomIn","leave-active-class":"animated zoomOut"}},[e.askForUndocking&&!e.mainViewer.mainControl?o("div",{staticClass:"kexplorer-undocking full-height full-width"}):e._e()]),e.isMainControlDocked?e._e():o("observation-time"),o("input-request-modal"),o("scale-change-dialog")],1)],1)],1)},ve=[];me._withStripped=!0;var ge=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{directives:[{name:"show",rawName:"v-show",value:!e.isDrawMode,expression:"!isDrawMode"}],ref:"main-control-container",staticClass:"mc-container print-hide small"},[o("transition",{attrs:{appear:"","enter-active-class":"animated fadeInLeft","leave-active-class":"animated fadeOutLeft"}},[o("div",{directives:[{name:"show",rawName:"v-show",value:e.isHidden,expression:"isHidden"}],staticClass:"spinner-lonely-div klab-spinner-div",style:{left:e.defaultLeft+"px",top:e.defaultTop+"px","border-color":e.hasTasks()?e.spinnerColor.color:"rgba(0,0,0,0)"}},[o("klab-spinner",{staticClass:"spinner-lonely",attrs:{"store-controlled":!0,size:40,ball:22,wrapperId:"spinner-lonely-div"},nativeOn:{dblclick:function(t){return e.show(t)},touchstart:function(t){e.handleTouch(t,null,e.show)}}})],1)]),o("transition",{attrs:{appear:"","enter-active-class":"animated fadeInLeft","leave-active-class":"animated fadeOutLeft"}},[o("q-card",{directives:[{name:"draggable",rawName:"v-draggable",value:e.dragMCConfig,expression:"dragMCConfig"},{name:"show",rawName:"v-show",value:!e.isHidden,expression:"!isHidden"}],staticClass:"mc-q-card no-box-shadow absolute lot-of-flow",class:[e.hasContext?"with-context":"bg-transparent without-context","mc-large-mode-"+e.largeMode],style:e.qCardStyle,attrs:{draggable:"false",flat:!0},nativeOn:{contextmenu:function(e){e.preventDefault()}}},[o("q-card-title",{ref:"mc-draggable",staticClass:"mc-q-card-title q-pa-xs",class:[e.fuzzyMode?"klab-fuzzy":"",e.searchIsFocused?"klab-search-focused":""],style:{"background-color":e.getBGColor(e.hasContext?"1.0":e.searchIsFocused?".8":".2")},attrs:{ondragstart:"return false;"},nativeOn:{mousedown:function(t){e.moved=!1},mousemove:function(t){e.moved=!0},mouseup:function(t){return e.focusSearch(t)}}},[o("klab-search-bar",{ref:"klab-search-bar"}),o("klab-breadcrumbs",{attrs:{slot:"subtitle"},slot:"subtitle"})],1),o("q-card-actions",{directives:[{name:"show",rawName:"v-show",value:e.hasContext&&!e.isHidden&&!e.hasHeader&&null===e.layout,expression:"hasContext && !isHidden && !hasHeader && layout === null"}],staticClass:"context-actions no-margin"},[o("div",{staticClass:"mc-tabs"},[o("div",{staticClass:"klab-button mc-tab",class:["tab-button",{active:"klab-log-pane"===e.selectedTab}],on:{click:function(t){e.selectedTab="klab-log-pane"}}},[o("q-icon",{attrs:{name:"mdi-console"}},[o("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("tooltips.showLogPane")))])],1)],1),o("div",{staticClass:"klab-button mc-tab",class:["tab-button",{active:"klab-tree-pane"===e.selectedTab}],on:{click:function(t){e.selectedTab="klab-tree-pane"}}},[o("q-icon",{attrs:{name:"mdi-folder-image"}},[o("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("tooltips.treePane")))])],1)],1)]),o("main-actions-buttons",{attrs:{orientation:"horizontal","separator-class":"mc-separator"}}),o("scale-buttons",{attrs:{docked:!1}}),o("div",{staticClass:"mc-separator",staticStyle:{right:"35px"}}),o("stop-actions-buttons")],1),o("q-card-main",{directives:[{name:"show",rawName:"v-show",value:e.hasContext&&!e.isHidden,expression:"hasContext && !isHidden"}],staticClass:"no-margin relative-position",attrs:{draggable:"false"}},[o("keep-alive",[o("transition",{attrs:{name:"component-fade",mode:"out-in"}},[o(e.selectedTab,{tag:"component"})],1)],1)],1),o("q-card-actions",{directives:[{name:"show",rawName:"v-show",value:e.hasContext&&!e.isHidden,expression:"hasContext && !isHidden"}],staticClass:"kmc-bottom-actions"},[o("div",{staticClass:"klab-button klab-action"},[o("q-icon",{attrs:{name:"mdi-terrain"}}),o("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("tooltips.scenarios")))])],1),o("div",{staticClass:"klab-button klab-action"},[o("q-icon",{attrs:{name:"mdi-human-male-female"}}),o("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("tooltips.observers")))])],1),e.contextHasTime?o("observations-timeline",{staticClass:"mc-timeline"}):e._e()],1)],1)],1),o("transition",{attrs:{appear:"","enter-active-class":"animated zoomIn","leave-active-class":"animated zoomOut"}},[e.askForDocking?o("div",{staticClass:"mc-docking full-height",style:{width:e.leftMenuMaximized}}):e._e()])],1)},ye=[];ge._withStripped=!0;var qe=o("1fe0"),_e=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"klab-actions",class:e.orientation},[o("div",{staticClass:"klab-main-actions"},["horizontal"!==e.orientation||e.isHeader?o("div",{staticClass:"klab-button klab-action",class:[{active:e.mainViewerName===e.VIEWERS.DATA_VIEWER.name}],on:{click:function(t){e.mainViewerName!==e.VIEWERS.DATA_VIEWER.name&&e.click(e.isMainControlDocked?e.VIEWERS.DOCKED_DATA_VIEWER:e.VIEWERS.DATA_VIEWER)}}},[o("q-icon",{attrs:{name:"mdi-folder-image"}},[o("q-tooltip",{attrs:{delay:600,offset:[0,8],self:e.tooltipAnchor("top"),anchor:e.tooltipAnchor("bottom")}},[e._v(e._s(e.$t("tooltips.dataViewer")))])],1)],1):e._e(),o("div",{staticClass:"klab-button klab-action",class:[{active:e.mainViewerName===e.VIEWERS.DOCUMENTATION_VIEWER.name,disabled:e.mainViewerName!==e.VIEWERS.DOCUMENTATION_VIEWER.name&&(!e.hasContext||!e.hasObservations)}],on:{click:function(t){e.mainViewerName!==e.VIEWERS.DOCUMENTATION_VIEWER.name&&e.hasContext&&e.hasObservations&&e.click(e.VIEWERS.DOCUMENTATION_VIEWER)}}},[o("q-icon",{attrs:{name:"mdi-text-box-multiple-outline"}},[e.reloadViews.length>0?o("span",{staticClass:"klab-button-notification"}):e._e(),o("q-tooltip",{attrs:{delay:600,offset:[0,8],self:e.tooltipAnchor("top"),anchor:e.tooltipAnchor("bottom")}},[e._v(e._s(e.hasObservations?e.$t("tooltips.documentationViewer"):e.$t("tooltips.noDocumentation")))])],1)],1),o("div",{staticClass:"klab-button klab-action",class:[{active:e.mainViewerName===e.VIEWERS.DATAFLOW_VIEWER.name,disabled:e.mainViewerName!==e.VIEWERS.DATAFLOW_VIEWER.name&&!e.hasContext}],on:{click:function(t){e.mainViewerName!==e.VIEWERS.DATAFLOW_VIEWER.name&&e.hasContext&&e.click(e.VIEWERS.DATAFLOW_VIEWER)}}},[o("q-icon",{attrs:{name:"mdi-sitemap"}},[e.mainViewerName!==e.VIEWERS.DATAFLOW_VIEWER.name&&e.hasContext&&e.flowchartsUpdatable?o("span",{staticClass:"klab-button-notification"}):e._e(),o("q-tooltip",{attrs:{delay:600,offset:[0,8],self:e.tooltipAnchor("top"),anchor:e.tooltipAnchor("bottom")}},[e._v(e._s(e.flowchartsUpdatable?e.$t("tooltips.dataflowViewer"):e.$t("tooltips.noDataflow")))])],1)],1)])])},We=[];_e._withStripped=!0;var Re={name:"MainActionsButtons",props:{orientation:{type:String,default:"horizontal"},separatorClass:{type:String,default:""},isHeader:{type:Boolean,default:!1}},data:function(){return{}},computed:a()({},Object(s["c"])("data",["hasObservations","flowchartsUpdatable","hasContext"]),Object(s["c"])("view",["spinnerColor","mainViewerName","statusTextsString","statusTextsLength","isMainControlDocked","reloadViews"])),methods:a()({},Object(s["b"])("view",["setMainViewer"]),{tooltipAnchor:function(e){return"".concat(e," ").concat("horizontal"===this.orientation?"middle":"left")},click:function(e){var t=this;this.setMainViewer(e),this.$nextTick(function(){t.$eventBus.$emit(c["h"].MAP_SIZE_CHANGED,{type:"changelayout"})})}}),created:function(){this.VIEWERS=c["O"]}},we=Re,Le=(o("6208"),Object(A["a"])(we,_e,We,!1,null,null,null));Le.options.__file="MainActionsButtons.vue";var Ce=Le.exports,Se=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"klab-destructive-actions"},[e.hasContext&&!e.hasTasks(e.contextId)?o("div",{staticClass:"klab-button klab-reset-context",on:{click:e.resetContext}},[o("q-icon",{attrs:{name:"mdi-close-circle-outline"}},[o("q-tooltip",{attrs:{delay:600,offset:[0,8],self:e.tooltipAnchor("top"),anchor:e.tooltipAnchor("bottom")}},[e._v(e._s(e.$t("tooltips.resetContext")))])],1)],1):e._e(),e.hasContext&&e.hasTasks(e.contextId)?o("div",{staticClass:"klab-button klab-interrupt-task",on:{click:e.interruptTask}},[o("q-icon",{attrs:{name:"mdi-stop-circle-outline"}},[o("q-tooltip",{attrs:{delay:600,offset:[0,8],self:e.tooltipAnchor("top"),anchor:e.tooltipAnchor("bottom")}},[e._v(e._s(e.$t("tooltips.interruptTask",{taskDescription:e.lastActiveTaskText})))])],1)],1):e._e()])},Ee=[];Se._withStripped=!0;var Te={computed:a()({},Object(s["c"])("data",["hasContext","contextId","session"])),methods:a()({},Object(s["b"])("data",["loadContext","setWaitinForReset"]),Object(s["b"])("view",["setSpinner"]),{loadOrReloadContext:function(e,t){null!==e&&this.setSpinner(a()({},c["J"].SPINNER_LOADING,{owner:e})),this.hasContext?(this.sendStompMessage(p["a"].RESET_CONTEXT(this.$store.state.data.session).body),null!==e?this.setWaitinForReset(e):"function"===typeof t&&this.callbackIfNothing()):this.loadContext(e)}})},xe={name:"StopActionsButtons",mixins:[Te],data:function(){return{}},computed:a()({},Object(s["c"])("data",["hasContext","contextId","previousContext"]),Object(s["c"])("stomp",["hasTasks","lastActiveTask"]),{lastActiveTaskText:function(){var e=null===this.lastActiveTask(this.contextId)?"":this.lastActiveTask(this.contextId).description;return e.includes(c["p"].UNKNOWN_SEARCH_OBSERVATION)?e.replace(c["p"].UNKNOWN_SEARCH_OBSERVATION,this.$t("messages.unknownSearchObservation")):e}}),methods:{tooltipAnchor:function(e){return"".concat(e," ").concat("horizontal"===this.orientation?"middle":"left")},resetContext:function(){this.sendStompMessage(p["a"].RESET_CONTEXT(this.$store.state.data.session).body)},interruptTask:function(){var e=this.lastActiveTask(this.contextId);null!==e&&e.alive&&this.sendStompMessage(p["a"].TASK_INTERRUPTED({taskId:e.id},this.$store.state.data.session).body)}}},Ne=xe,Be=(o("c31b"),Object(A["a"])(Ne,Se,Ee,!1,null,null,null));Be.options.__file="StopActionsButtons.vue";var ke=Be.exports,Pe=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{class:[e.hasContext?"with-context":"without-context",e.isDocked?"ksb-docked":""],style:{width:e.isDocked&&e.searchIsFocused&&e.largeMode?e.getLargeModeWidth():"100%"},attrs:{id:"ksb-container"}},[e.isDocked?e._e():o("div",{staticClass:"klab-spinner-div",attrs:{id:"ksb-spinner"}},[o("klab-spinner",{style:{"box-shadow":e.searchIsFocused?"0px 0px 3px "+e.getBGColor(".4"):"none"},attrs:{"store-controlled":!0,color:e.spinnerColor.hex,size:40,ball:22,wrapperId:"ksb-spinner",id:"spinner-searchbar"},nativeOn:{dblclick:function(t){return e.emitSpinnerDoubleclick(t)},touchstart:function(t){t.stopPropagation(),e.handleTouch(t,e.showSuggestions,e.emitSpinnerDoubleclick)}}})],1),o("div",{class:[e.fuzzyMode?"klab-fuzzy":"",e.searchIsFocused?"klab-search-focused":""],style:{"background-color":e.isDocked?e.getBGColor(e.hasContext?"1.0":e.searchIsFocused?".8":e.isDocked?"1.0":".2"):"rgba(0,0,0,0)"},attrs:{id:"ksb-search-container"}},[e.searchIsActive?o("klab-search",{ref:"klab-search",staticClass:"klab-search",on:{"busy-search":e.busySearch}}):o("div",{staticClass:"ksb-context-text text-white"},[o("scrolling-text",{ref:"st-context-text",attrs:{"with-edge":!0,"hover-active":!0,"initial-text":null===e.mainContextLabel?e.$t("label.noContextPlaceholder"):e.mainContextLabel,"placeholder-style":!e.hasContext}})],1),o("div",{ref:"ksb-status-texts",staticClass:"ksb-status-texts"},[o("scrolling-text",{ref:"st-status-text",attrs:{"with-edge":!0,edgeOpacity:e.hasContext?1:e.searchIsFocused?.8:.2,hoverActive:!1,initialText:e.statusTextsString,accentuate:!0}})],1),e.isScaleLocked["space"]&&!e.hasContext?o("q-icon",{attrs:{name:"mdi-lock-outline"}},[o("q-tooltip",{attrs:{anchor:"bottom middle",self:"top middle",offset:[10,5],delay:500}},[e._v(e._s(e.$t("label.scaleLocked",{type:e.$t("label.spaceScale")})))])],1):e._e(),o("main-control-menu")],1)])},De=[];Pe._withStripped=!0;var Ie=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{ref:"ks-container",attrs:{id:"ks-container"}},[o("div",{staticStyle:{position:"relative"},attrs:{id:"ks-internal-container"}},[e._l(e.acceptedTokens,function(t,n){return o("div",{key:t.index,ref:"token-"+t.index,refInFor:!0,class:["ks-tokens-accepted","ks-tokens","bg-semantic-elements",t.selected?"selected":"","text-"+t.leftColor],style:{"border-color":t.selected?t.rgb:"transparent"},attrs:{tabindex:n},on:{focus:function(o){e.onTokenFocus(t,o)},blur:function(o){e.onTokenFocus(t,o)},keydown:e.onKeyPressedOnToken,touchstart:function(t){e.handleTouch(t,null,e.deleteLastToken)}}},[e._v(e._s(t.value)+"\n "),o("q-tooltip",{attrs:{delay:500,offset:[0,15],self:"top left",anchor:"bottom left"}},[t.sublabel.length>0?o("span",[e._v(e._s(t.sublabel))]):o("span",[e._v(e._s(e.$t("label.noTokenDescription")))])])],1)}),o("div",{staticClass:"ks-tokens",class:[e.fuzzyMode?"ks-tokens-fuzzy":"ks-tokens-klab"]},[o("q-input",{ref:"ks-search-input",class:[e.fuzzyMode?"ks-fuzzy":"",e.searchIsFocused?"ks-search-focused":""],attrs:{autofocus:!0,placeholder:e.fuzzyMode?e.$t("label.fuzzySearchPlaceholder"):e.$t("label.searchPlaceholder"),size:"20",id:"ks-search-input",tabindex:e.acceptedTokens.length,"hide-underline":!0},on:{focus:function(t){e.onInputFocus(!0)},blur:function(t){e.onInputFocus(!1)},keydown:e.onKeyPressedOnSearchInput,keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,"Escape"))return null;e.searchEnd({})}},nativeOn:{contextmenu:function(e){e.preventDefault()},touchstart:function(t){e.handleTouch(t,null,e.searchInKLab)}},model:{value:e.actualToken,callback:function(t){e.actualToken=t},expression:"actualToken"}},[o("klab-autocomplete",{ref:"ks-autocomplete",class:[e.notChrome()?"not-chrome":""],attrs:{debounce:400,"min-characters":e.minimumCharForAutocomplete,"max-results":50,id:"ks-autocomplete"},on:{search:e.autocompleteSearch,selected:e.selected,show:e.onAutocompleteShow,hide:e.onAutocompleteHide}})],1)],1)],2)])},Xe=[];Ie._withStripped=!0;o("386d");var je=o("278c"),Fe=o.n(je),He=o("b0b2"),Ue=o("b12a"),Ve=o("7ea0"),Ge=o("b5b8"),Ke=o("1180"),$e=o("68c2"),Ye=o("506f"),Je=o("b8d9"),Qe=o("52b5"),Ze=o("03d8"),et={name:"QItemSide",props:{right:Boolean,icon:String,letter:{type:String,validator:function(e){return 1===e.length}},inverted:Boolean,avatar:String,image:String,stamp:String,color:String,textColor:String,tooltip:{type:Object,default:null}},computed:{type:function(){var e=this;return["icon","image","avatar","letter","stamp"].find(function(t){return e[t]})},classes:function(){var e=["q-item-side-".concat(this.right?"right":"left")];return!this.color||this.icon||this.letter||e.push("text-".concat(this.color)),e},typeClasses:function(){var e=["q-item-".concat(this.type)];return this.color&&(this.inverted&&(this.icon||this.letter)?e.push("bg-".concat(this.color)):this.textColor||e.push("text-".concat(this.color))),this.textColor&&e.push("text-".concat(this.textColor)),this.inverted&&(this.icon||this.letter)&&(e.push("q-item-inverted"),e.push("flex"),e.push("flex-center")),e},imagePath:function(){return this.image||this.avatar}},render:function(e){var t;return this.type&&(this.icon?(t=e(Qe["a"],{class:this.inverted?null:this.typeClasses,props:{name:this.icon,tooltip:this.tooltip}}),this.inverted&&(t=e("div",{class:this.typeClasses},[t]))):t=this.imagePath?e("img",{class:this.typeClasses,attrs:{src:this.imagePath}}):e("div",{class:this.typeClasses},[this.stamp||this.letter])),e("div",{staticClass:"q-item-side q-item-section",class:this.classes},[null!==this.tooltip?e(Ze["a"],{ref:"tooltip",class:"kl-model-desc-container",props:{offset:[25,0],anchor:"top right",self:"top left"}},[e("div",{class:["kl-model-desc","kl-model-desc-title"]},this.tooltip.title),e("div",{class:["kl-model-desc","kl-model-desc-state","bg-state-".concat(this.tooltip.state)]},this.tooltip.state),e("div",{class:["kl-model-desc","kl-model-desc-content"]},this.tooltip.content)]):null,t,this.$slots.default])}};function tt(e,t,o,n,i,r){var a={props:{right:r.right}};if(n&&i)e.push(t(o,a,n));else{var s=!1;for(var c in r)if(r.hasOwnProperty(c)&&(s=r[c],void 0!==s&&!0!==s)){e.push(t(o,{props:r}));break}n&&e.push(t(o,a,n))}}var ot={name:"QItemWrapper",props:{cfg:{type:Object,default:function(){return{}}},slotReplace:Boolean},render:function(e){var t=this.cfg,o=this.slotReplace,n=[];return tt(n,e,et,this.$slots.left,o,{icon:t.icon,color:t.leftColor,avatar:t.avatar,letter:t.letter,image:t.image,inverted:t.leftInverted,textColor:t.leftTextColor,tooltip:t.leftTooltip}),tt(n,e,Je["a"],this.$slots.main,o,{label:t.label,sublabel:t.sublabel,labelLines:t.labelLines,sublabelLines:t.sublabelLines,inset:t.inset}),tt(n,e,et,this.$slots.right,o,{right:!0,icon:t.rightIcon,color:t.rightColor,avatar:t.rightAvatar,letter:t.rightLetter,image:t.rightImage,stamp:t.stamp,inverted:t.rightInverted,textColor:t.rightTextColor,tooltip:t.rightTooltip}),n.push(this.$slots.default),e(Ye["a"],{attrs:this.$attrs,on:this.$listeners,props:t},n)}},nt=K["b"].width,it={name:"KlabQAutocomplete",extends:Ve["a"],methods:{trigger:function(e){var t=this;if(this.__input&&this.__input.isEditable()&&this.__input.hasFocus()&&this.isWorking()){var o=[null,void 0].includes(this.__input.val)?"":String(this.__input.val),n=o.length,i=Object($e["a"])(),r=this.$refs.popover;if(this.searchId=i,n0)return this.searchId="",this.__clearSearch(),void this.hide();if(this.width=nt(this.inputEl)+"px",this.staticData)return this.searchId="",this.results=this.filter(o,this.staticData),this.results.length?void this.__showResults():void r.hide();this.$emit("search",o,function(e){if(t.isWorking()&&t.searchId===i){if(t.__clearSearch(),Array.isArray(e)&&e.length>0)return t.results=e,void t.__showResults();t.hide()}})}}},render:function(e){var t=this,o=this.__input.isDark();return e(Ge["a"],{ref:"popover",class:o?"bg-dark":null,props:{fit:!0,keepOnScreen:!0,anchorClick:!1,maxHeight:this.maxHeight,noFocus:!0,noRefocus:!0},on:{show:function(){t.__input.selectionOpen=!0,t.$emit("show")},hide:function(){t.__input.selectionOpen=!1,t.$emit("hide")}},nativeOn:{mousedown:function(e){e.preventDefault()}}},[e(Ke["a"],{props:{dark:o,noBorder:!0,separator:this.separator},style:this.computedWidth},this.computedResults.map(function(o,n){return e(ot,{key:o.id||n,class:{"q-select-highlight":t.keyboardIndex===n,"cursor-pointer":!o.disable,"text-faded":o.disable,"ka-separator":o.separator},props:{cfg:o},nativeOn:{mousedown:function(e){!o.disable&&(t.keyboardIndex=n),e.preventDefault()},click:function(){!o.disable&&t.setValue(o)}}})}))])}},rt={data:function(){return{doubleTouchTimeout:null}},methods:{handleTouch:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:300;window.TouchEvent&&e instanceof TouchEvent&&(1===e.targetTouches.length?null===this.doubleTouchTimeout?this.doubleTouchTimeout=setTimeout(function(){t.doubleTouchTimeout=null,null!==o&&o(e)},r):(clearTimeout(this.doubleTouchTimeout),this.doubleTouchTimeout=null,null!==n&&n()):null!==i&&i(e))}}},at="=(<)>",st={name:"KlabSearch",components:{KlabAutocomplete:it},mixins:[rt],props:{maxResults:{type:Number,default:-1}},data:function(){return{searchContextId:null,searchRequestId:0,doneFunc:null,result:null,acceptedTokens:[],actualToken:"",actualSearchString:"",noSearch:!1,searchDiv:null,searchDivInitialSize:void 0,searchDivInternal:void 0,searchInput:null,autocompleteEl:null,scrolled:0,suggestionShowed:!1,searchTimeout:null,searchHistoryIndex:-1,autocompleteSB:null,freeText:!1,parenthesisDepth:0,last:!1,minimumCharForAutocomplete:2}},computed:a()({},Object(s["c"])("data",["searchResult","contextId","isCrossingIDL"]),Object(s["c"])("view",["spinner","searchIsFocused","searchLostChar","searchInApp","searchHistory","fuzzyMode","largeMode","isDocked","engineEventsCount"]),{inputSearchColor:{get:function(){return this.searchInput?this.searchInput.$refs.input.style.color:"black"},set:function(e){this.searchInput.$refs.input&&(this.searchInput.$refs.input.style.color=e)}}}),methods:a()({},Object(s["b"])("data",["setContextCustomLabel"]),Object(s["b"])("view",["searchStop","setSpinner","searchFocus","resetSearchLostChar","storePreviousSearch","setFuzzyMode","setLargeMode"]),{notChrome:function(){return-1===navigator.userAgent.indexOf("Chrome")},onTokenFocus:function(e,t){e.selected="focus"===t.type},onInputFocus:function(e){this.searchFocus({focused:e}),this.actualToken=this.actualSearchString},onAutocompleteShow:function(){this.suggestionShowed=!0},onAutocompleteHide:function(){this.suggestionShowed=!1,this.actualToken!==this.actualSearchString&&(this.noSearch=!0,this.resetSearchInput())},onKeyPressedOnToken:function(e){var t=this;if(37===e.keyCode||39===e.keyCode){e.preventDefault();var o=this.acceptedTokens.findIndex(function(e){return e.selected}),n=null,i=!1;if(37===e.keyCode&&o>0?n="token-".concat(this.acceptedTokens[o-1].index):39===e.keyCode&&o=a&&(o=a)}else{var s=i?r.$el:r,c=(i?s.offsetLeft:r.offsetLeft)+n+s.offsetWidth,p=t.searchDiv.offsetWidth+t.searchDiv.scrollLeft;p<=c&&(o=t.searchDiv.scrollLeft+(c-p)-n)}null!==o&&S["a"].nextTick(function(){t.searchDiv.scrollLeft=o})})}}},onKeyPressedOnSearchInput:function(e){var t=this;if(this.noSearch=!1,this.last)return e.preventDefault(),void this.$q.notify({message:this.$t("messages.lastTermAlertText"),type:"warning",icon:"mdi-alert",timeout:2e3});switch(e.keyCode){case 8:if(""===this.actualToken&&0!==this.acceptedTokens.length){var o=this.acceptedTokens.pop();this.searchHistoryIndex=-1,e.preventDefault(),this.sendStompMessage(p["a"].SEARCH_MATCH({contextId:this.searchContextId,matchIndex:o.matchIndex,matchId:o.id,added:!1},this.$store.state.data.session).body),this.freeText=this.acceptedTokens.length>0&&this.acceptedTokens[this.acceptedTokens.length-1].nextTokenClass!==c["x"].NEXT_TOKENS.TOKEN,this.$nextTick(function(){t.checkLargeMode(!1)})}else""!==this.actualSearchString?(e.preventDefault(),this.actualSearchString=this.actualSearchString.slice(0,-1),""===this.actualSearchString&&this.setFuzzyMode(!1)):""===this.actualSearchString&&""!==this.actualToken&&(this.actualToken="",e.preventDefault());break;case 9:this.suggestionShowed&&-1!==this.autocompleteEl.keyboardIndex?(this.autocompleteEl.setValue(this.autocompleteEl.results[this.autocompleteEl.keyboardIndex]),this.searchHistoryIndex=-1):this.freeText&&this.acceptText(),e.preventDefault();break;case 13:this.freeText||this.fuzzyMode?this.acceptText():this.searchInKLab(e);break;case 27:this.suggestionShowed?this.autocompleteEl.hide():this.searchEnd({noStore:!0}),e.preventDefault();break;case 32:if(e.preventDefault(),this.fuzzyMode)this.searchHistoryIndex=-1,this.actualSearchString+=e.key;else if(this.freeText)this.acceptFreeText();else if(this.suggestionShowed){var n=-1===this.autocompleteEl.keyboardIndex?0:this.autocompleteEl.keyboardIndex,i=this.autocompleteEl.results[n];i.separator||(this.autocompleteEl.setValue(i),this.searchHistoryIndex=-1)}else this.askForSuggestion()||this.$q.notify({message:this.$t("messages.noSpaceAllowedInSearch"),type:"warning",icon:"mdi-alert",timeout:1500});break;case 37:if(!this.suggestionShowed&&0===this.searchInput.$refs.input.selectionStart&&this.acceptedTokens.length>0){var r=this.acceptedTokens[this.acceptedTokens.length-1];S["a"].nextTick(function(){t.$refs["token-".concat(r.index)][0].focus()}),e.preventDefault()}break;case 38:this.suggestionShowed||this.searchHistoryEvent(1,e);break;case 40:this.suggestionShowed||this.searchHistoryEvent(-1,e);break;default:this.isAcceptedKey(e.key)?")"===e.key&&0===this.parenthesisDepth?e.preventDefault():(e.preventDefault(),0===this.acceptedTokens.length&&0===this.searchInput.$refs.input.selectionStart&&Object(He["h"])(e.key)&&this.setFuzzyMode(!0),this.searchHistoryIndex=-1,this.actualSearchString+=e.key,-1!==at.indexOf(e.key)&&this.askForSuggestion(e.key.trim())):39!==e.keyCode&&e.preventDefault();break}},acceptText:function(){var e=this,t=this.actualToken.trim();""===t?this.$q.notify({message:this.$t("messages.emptyFreeTextSearch"),type:"warning",icon:"mdi-alert",timeout:1e3}):this.search(this.actualToken,function(t){t&&t.length>0?e.selected(t[0],!1):e.$q.notify({message:e.$t("messages.noSearchResults"),type:"info",icon:"mdi-information",timeout:1e3})})},selected:function(e,t){var o=this;if(t)this.inputSearchColor=e.rgb;else{if(this.acceptedTokens.push(e),this.actualSearchString="",this.sendStompMessage(p["a"].SEARCH_MATCH({contextId:this.searchContextId,matchIndex:e.matchIndex,matchId:e.id,added:!0},this.$store.state.data.session).body),this.fuzzyMode)return void this.$nextTick(function(){o.searchEnd({})});this.freeText=e.nextTokenClass!==c["x"].NEXT_TOKENS.TOKEN,this.$nextTick(function(){o.checkLargeMode(!0)})}},checkLargeMode:function(){var e=this;this.$nextTick(function(){var t;if(e.isDocked)t=e.searchDivInitialSize-e.searchDivInternal.clientWidth,t<0&&0===e.largeMode?e.setLargeMode(1):t>=0&&e.largeMode>0&&e.setLargeMode(0);else if(t=e.searchDiv.clientWidth-e.searchDivInternal.clientWidth,t>=0){var o=Math.floor(t/c["g"].SEARCHBAR_INCREMENT);o>0&&e.largeMode>0&&(o>e.largeMode?e.setLargeMode(0):e.setLargeMode(e.largeMode-o))}else{var n=Math.ceil(Math.abs(t)/c["g"].SEARCHBAR_INCREMENT);e.setLargeMode(e.largeMode+n)}})},autocompleteSearch:function(e,t){this.freeText?t([]):this.search(e,t)},search:function(e,t){var o=this;if(this.noSearch)return this.noSearch=!1,void t([]);this.searchRequestId+=1,this.sendStompMessage(p["a"].SEARCH_REQUEST({requestId:this.searchRequestId,contextId:this.searchContextId,maxResults:this.maxResults,cancelSearch:!1,defaultResults:""===e,searchMode:this.fuzzyMode?c["G"].FREETEXT:c["G"].SEMANTIC,queryString:this.actualSearchString},this.$store.state.data.session).body),this.setSpinner(a()({},c["J"].SPINNER_LOADING,{owner:this.$options.name})),this.doneFunc=t,this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){o.setSpinner(a()({},c["J"].SPINNER_ERROR,{owner:o.$options.name,errorMessage:o.$t("errors.searchTimeout"),time:o.fuzzyMode?5:2,then:a()({},c["J"].SPINNER_STOPPED)})),o.doneFunc([])},"4000")},searchInKLab:function(){if(!this.suggestionShowed&&!this.fuzzyMode)if(this.parenthesisDepth>0)this.$q.notify({message:this.$t("messages.parenthesisAlertText"),type:"warning",icon:"mdi-alert",timeout:2e3});else if(this.isCrossingIDL)this.$q.dialog({title:this.$t("label.IDLAlertTitle"),message:this.$t("messages.IDLAlertText"),color:"mc-red"}).catch(function(){});else{if(this.acceptedTokens.length>0){if(this.engineEventsCount>0)return this.$emit("busy-search"),void this.$q.notify({message:this.$t("messages.resourcesValidating"),type:"warning",icon:"mdi-alert",timeout:2e3});var e=this.acceptedTokens.map(function(e){return e.id}).join(" ");this.sendStompMessage(p["a"].OBSERVATION_REQUEST({urn:e,contextId:this.contextId,searchContextId:null},this.$store.state.data.session).body);var t=this.acceptedTokens.map(function(e){return e.label}).join(" ");this.setContextCustomLabel(this.$t("messages.waitingObservationInit",{observation:t})),this.$q.notify({message:this.$t("label.askForObservation",{urn:t}),type:"info",icon:"mdi-information",timeout:2e3})}else console.info("Nothing to search for");this.searchEnd({})}},searchEnd:function(e){var t=e.noStore,o=void 0!==t&&t,n=e.noDelete,i=void 0!==n&&n;if(!this.suggestionShowed){if(this.acceptedTokens.length>0){if(i)return;o||this.storePreviousSearch({acceptedTokens:this.acceptedTokens.slice(0),searchContextId:this.searchContextId,searchRequestId:this.searchRequestId})}this.searchContextId=null,this.searchRequestId=0,this.doneFunc=null,this.result=null,this.acceptedTokens=[],this.searchHistoryIndex=-1,this.actualSearchString="",this.scrolled=0,this.noSearch=!1,this.freeText=!1,this.setFuzzyMode(!1),this.setLargeMode(0),this.parenthesisDepth=0,this.last=!1,this.searchStop()}},resetSearchInput:function(){var e=this;this.$nextTick(function(){e.actualToken=e.actualSearchString,e.inputSearchColor="black"})},searchHistoryEvent:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(""===this.actualToken&&this.searchHistory.length>0&&(0===this.acceptedTokens.length||this.searchHistoryIndex>=0)&&this.searchHistory.length>0&&(e>0||this.searchHistoryIndex>0)&&this.searchHistoryIndex+e0&&void 0!==arguments[0]?arguments[0]:"";return(""!==t||0===this.acceptedTokens.length)&&0===this.searchInput.$refs.input.selectionStart&&(this.search(t,function(o){e.autocompleteEl.__clearSearch(),Array.isArray(o)&&o.length>0?(e.autocompleteEl.results=o,S["a"].nextTick(function(){e.autocompleteEl.__showResults(),""!==t&&(e.autocompleteEl.keyboardIndex=0)})):e.autocompleteEl.hide()}),!0)},deleteLastToken:function(){if(0!==this.acceptedTokens.length){var e=this.acceptedTokens.pop();this.searchHistoryIndex=-1,this.sendStompMessage(p["a"].SEARCH_MATCH({contextId:this.searchContextId,matchIndex:e.matchIndex,matchId:e.id,added:!1},this.$store.state.data.session).body)}},charReceived:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];"ArrowUp"===e?this.searchHistoryEvent(1):"ArrowDown"===e?this.searchHistoryEvent(-1):" "===e?this.askForSuggestion():(Object(He["h"])(e)&&this.setFuzzyMode(!0),this.actualSearchString=t?this.actualSearchString+e:e,-1!==at.indexOf(e)&&this.askForSuggestion(e))}}),watch:{actualSearchString:function(){this.resetSearchInput()},searchResult:function(e){var t=this;if(!this.searchInApp){this.searchTimeout&&(clearTimeout(this.searchTimeout),this.searchTimeout=null);var o=e.requestId,n=e.contextId;if(null===this.searchContextId)this.searchContextId=n;else if(n!==this.searchContextId)return void console.warn("Something strange was happened: differents search context ids:\n\n actual: ".concat(this.searchContextId," / received: ").concat(n));if(this.searchRequestId===o){var i;null!==this.result&&this.result.requestId===o&&(i=e.matches).push.apply(i,I()(this.result.matches)),this.result=e;var r=this.result,s=r.matches,p=r.error,l=r.errorMessage,u=r.parenthesisDepth,b=r.last;if(this.parenthesisDepth=u,this.last=b,p)this.setSpinner(a()({},c["J"].SPINNER_ERROR,{owner:this.$options.name,errorMessage:l}));else{var d=[];s.forEach(function(e){var o=c["x"][e.matchType];if("undefined"!==typeof o){var n=o;if(null!==e.mainSemanticType){var i=c["H"][e.mainSemanticType];"undefined"!==typeof i&&(n=i)}if("SEPARATOR"===e.matchType)d.push({value:e.name,label:e.name,labelLines:1,rgb:n.rgb,selected:!1,disable:!0,separator:!0});else{var r=e.state?e.state:null,s=null!==r?Object(Ue["m"])(e.state):null;d.push(a()({value:e.name,label:e.name,labelLines:1,sublabel:e.description,sublabelLines:4,letter:n.symbol,leftInverted:!0,leftColor:n.color,rgb:n.rgb,id:e.id,index:t.acceptedTokens.length+1,matchIndex:e.index,selected:!1,disable:e.state&&"FORTHCOMING"===e.state,separator:!1,nextTokenClass:e.nextTokenClass},null!==s&&{rightIcon:s.icon,rightTextColor:"state-".concat(s.tooltip),rightTooltip:{state:s.tooltip,title:e.name,content:e.extendedDescription||e.description}}))}}else console.warn("Unknown type: ".concat(e.matchType))}),this.fuzzyMode||0!==d.length||this.$q.notify({message:this.$t("messages.noSearchResults"),type:"info",icon:"mdi-information",timeout:1e3}),this.setSpinner(a()({},c["J"].SPINNER_STOPPED,{owner:this.$options.name})),S["a"].nextTick(function(){t.doneFunc(d),t.autocompleteEl.keyboardIndex=0})}}else console.warn("Result discarded for bad request id: actual: ".concat(this.searchRequestId," / received: ").concat(o,"\n"))}},acceptedTokens:function(){var e=this;S["a"].nextTick(function(){var t=e.searchDiv.scrollWidth;e.scrolled!==t&&(e.searchDiv.scrollLeft=t,e.scrolled=t)})},searchIsFocused:function(e){e?(this.searchInput.focus(),this.acceptedTokens.forEach(function(e){e.selected=!1})):this.searchInput.blur()},searchLostChar:function(e){null!==e&&""!==e&&(this.charReceived(e,!0),this.resetSearchLostChar())}},beforeMount:function(){this.setFuzzyMode(!1)},mounted:function(){var e=this;this.searchDiv=this.$refs["ks-container"],this.searchDivInternal=document.getElementById("ks-internal-container"),this.searchInput=this.$refs["ks-search-input"],this.autocompleteEl=this.$refs["ks-autocomplete"],null!==this.searchLostChar&&""!==this.searchLostChar?this.charReceived(this.searchLostChar,!1):this.actualSearchString="",this.inputSearchColor="black",this.setLargeMode(0),this.$nextTick(function(){e.searchDivInitialSize=e.searchDiv.clientWidth})},updated:function(){var e=document.querySelectorAll("#ks-autocomplete .q-item-side-right");e.forEach(function(e){e.setAttribute("title","lalala")})},beforeDestroy:function(){this.searchTimeout&&(clearTimeout(this.searchTimeout),this.searchTimeout=null)}},ct=st,pt=(o("aff7"),Object(A["a"])(ct,Ie,Xe,!1,null,null,null));pt.options.__file="KlabSearch.vue";var lt=pt.exports,ut=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"st-container",class:{marquee:e.needMarquee<0,"hover-active":e.hoverActive}},[o("div",{ref:"st-text",staticClass:"st-text",class:{"st-accentuate":e.accentuate,"st-placeholder":e.placeholderStyle},style:{left:(e.needMarquee<0?e.needMarquee:0)+"px","animation-duration":e.animationDuration+"s"}},[e._v("\n "+e._s(e.text)+"\n ")]),e.withEdge?o("div",{staticClass:"st-edges",style:{"background-color":e.getBGColor(e.spinnerColor,e.edgeOpacity)}}):e._e()])},bt=[];ut._withStripped=!0;var dt={name:"ScrollingText",props:{hoverActive:{type:Boolean,default:!1},initialText:{type:String,default:""},duration:{type:Number,default:10},accentuate:{type:Boolean,default:!1},edgeOpacity:{type:Number,default:1},withEdge:{type:Boolean,default:!0},placeholderStyle:{type:Boolean,default:!1}},data:function(){return{needMarquee:0,animationDuration:this.duration,text:this.initialText,edgeBgGradient:""}},computed:a()({},Object(s["c"])("view",["spinnerColor"])),methods:{isNeededMarquee:function(){var e=this.$refs["st-text"];return"undefined"===typeof e?0:e.offsetWidth-e.scrollWidth},changeText:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.needMarquee=0,e!==this.text&&(this.text=null===e?"":e,this.$nextTick(function(){null!==o&&(t.animationDuration=o),t.needMarquee=t.isNeededMarquee(t.ref)}))},getBGColor:function(e,t){return"rgba(".concat(e.rgb.r,",").concat(e.rgb.g,",").concat(e.rgb.b,", ").concat(t,")")},getEdgeGradient:function(){return"linear-gradient(to right,\n ".concat(this.getBGColor(this.spinnerColor,1)," 0,\n ").concat(this.getBGColor(this.spinnerColor,0)," 5%,\n ").concat(this.getBGColor(this.spinnerColor,0)," 95%,\n ").concat(this.getBGColor(this.spinnerColor,1)," 100%)")}},watch:{spinnerColor:function(){this.edgeBgGradient=this.getEdgeGradient()}},mounted:function(){var e=this;this.$nextTick(function(){e.needMarquee=e.isNeededMarquee(e.ref)}),this.edgeBgGradient=this.getEdgeGradient()}},Mt=dt,ht=(o("2590"),Object(A["a"])(Mt,ut,bt,!1,null,null,null));ht.options.__file="ScrollingText.vue";var ft=ht.exports,zt=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("q-btn",{staticClass:"mcm-menubutton absolute-top-right",attrs:{icon:e.interactiveMode?"mdi-play":"mdi-chevron-right",color:e.interactiveMode?"mc-main-light":"black",size:"sm",round:"",flat:""}},[e.isVisible?o("q-popover",{ref:"mcm-main-popover",attrs:{anchor:"top right",self:"top left",persistent:!1,"max-height":"95vh"}},[o("q-btn",{staticClass:"mcm-icon-close-popover",attrs:{icon:"mdi-close",color:"grey-8",size:"xs",flat:"",round:""},on:{click:e.closeMenuPopups}}),o("q-list",{attrs:{dense:""}},[o("q-list-header",{staticStyle:{padding:"0 16px 0 16px","min-height":"0"}},[e._v("\n "+e._s(e.$t("label.mcMenuContext"))+"\n "),e.hasContext?o("q-icon",{staticClass:"mcm-copy-icon",attrs:{name:"mdi-content-copy"},nativeOn:{click:function(t){e.copyContextES(t,e.contextEncodedShape)}}},[o("q-tooltip",{attrs:{delay:1e3,anchor:"center right",self:"center left",offset:[10,10]}},[e._v("\n "+e._s(e.$t("tooltips.copyEncodedShapeToClipboard"))+"\n ")])],1):e._e()],1),o("q-item-separator"),e.hasContext?o("q-item",[o("div",{staticClass:"mcm-container"},[o("div",{staticClass:"klab-menuitem klab-clickable",on:{click:function(t){e.closeAndCall(null)}}},[o("div",{staticClass:"klab-item mdi mdi-star-four-points-outline klab-icon"}),o("div",{staticClass:"klab-item klab-text klab-only-text"},[e._v(e._s(e.$t("label.newContext")))])])])]):e._e(),o("q-item",[o("div",{staticClass:"mcm-container"},[o("div",{staticClass:"klab-menuitem klab-clickable",class:{"klab-not-available":0===e.contextsHistory.length},on:{click:e.toggleContextsHistory}},[o("div",{staticClass:"klab-item mdi mdi-history klab-icon"}),o("div",{staticClass:"klab-item klab-text klab-only-text"},[e._v(e._s(e.$t("label.previousContexts")))]),o("div",[o("q-icon",{staticClass:"mcm-contextbutton",attrs:{name:"mdi-chevron-right",color:"black",size:"sm"}}),o("q-popover",{ref:"mcm-contexts-popover",attrs:{anchor:"top right",self:"top left",offset:[18,28]}},[o("q-list",{attrs:{dense:""}},e._l(e.contextsHistory,function(t){return o("q-item",{key:t.id},[o("q-item-main",[o("div",{staticClass:"mcm-container mcm-context-label"},[o("div",{staticClass:"klab-menuitem",class:[t.id===e.contextId?"klab-no-clickable":"klab-clickable"],on:{click:function(o){e.closeAndCall(t.id)}}},[o("div",{staticClass:"klab-item klab-large-text",class:{"mcm-actual-context":t.id===e.contextId},style:{"font-style":e.contextTaskIsAlive(t.id)?"italic":"normal"},on:{mouseover:function(o){e.tooltipIt(o,t.id)}}},[e._v("\n "+e._s(e.formatContextTime(t))+": "+e._s(t.label)+"\n "),o("q-tooltip",{directives:[{name:"show",rawName:"v-show",value:e.needTooltip(t.id),expression:"needTooltip(context.id)"}],attrs:{anchor:"center right",self:"center left",offset:[10,10]}},[e._v("\n "+e._s(t.label)+"\n ")])],1)]),o("q-icon",{staticClass:"absolute-right mcm-copy-icon",attrs:{name:"mdi-content-copy"},nativeOn:{click:function(o){e.copyContextES(o,t.spatialProjection+" "+t.encodedShape)}}},[o("q-tooltip",{attrs:{delay:1e3,anchor:"center right",self:"center left",offset:[10,10]}},[e._v("\n "+e._s(e.$t("tooltips.copyEncodedShapeToClipboard"))+"\n ")])],1)],1)])],1)}))],1)],1)])])]),e.hasContext?e._e():[o("q-item",[o("q-item-main",[o("div",{staticClass:"mcm-container"},[o("div",{staticClass:"klab-menuitem klab-clickable",class:[e.isDrawMode?"klab-select":""],on:{click:function(t){e.startDraw()}}},[o("div",{staticClass:"klab-item mdi mdi-vector-polygon klab-icon"}),o("div",{staticClass:"klab-item klab-text klab-only-text"},[e._v(e._s(e.$t("label.drawCustomContext")))])])])])],1),o("q-list-header",{staticStyle:{padding:"8px 16px 0 16px","min-height":"0"}},[e._v(e._s(e.$t("label.mcMenuScale")))]),o("q-item-separator"),o("q-item",[o("q-item-main",[o("scale-reference",{attrs:{width:"180px",light:!0,scaleType:"space",editable:!0,full:!0}})],1)],1),o("q-item",[o("q-item-main",[o("scale-reference",{attrs:{width:"180px",light:!0,scaleType:"time",editable:!0,full:!0}})],1)],1)],o("q-list-header",{staticStyle:{padding:"8px 16px 0 16px","min-height":"0"}},[e._v(e._s(e.$t("label.mcMenuOption")))]),o("q-item-separator"),o("q-item",[o("div",{staticClass:"mcm-container"},[o("div",{staticClass:"klab-menuitem"},[o("div",{staticClass:"klab-item"},[e._v(e._s(e.$t("label.interactiveMode")))])]),o("q-item-side",{attrs:{right:""}},[o("q-toggle",{attrs:{color:"mc-main"},model:{value:e.interactiveModeModel,callback:function(t){e.interactiveModeModel=t},expression:"interactiveModeModel"}})],1)],1)]),o("q-item",[o("div",{staticClass:"mcm-container"},[o("div",{staticClass:"klab-menuitem"},[o("div",{staticClass:"klab-item"},[e._v(e._s(e.$t("label.viewCoordinates")))])]),o("q-item-side",{attrs:{right:""}},[o("q-toggle",{attrs:{color:"mc-main"},model:{value:e.coordinates,callback:function(t){e.coordinates=t},expression:"coordinates"}})],1)],1)]),e.hasContext?e._e():[o("q-list-header",{staticStyle:{padding:"8px 16px 0 16px","min-height":"0"}},[e._v(e._s(e.$t("label.mcMenuSettings")))]),o("q-item-separator"),o("q-item",[o("div",{staticClass:"mcm-container"},[o("div",{staticClass:"klab-menuitem"},[o("div",{staticClass:"klab-item"},[e._v(e._s(e.$t("label.optionSaveLocation")))])]),o("q-item-side",{attrs:{right:""}},[o("q-toggle",{attrs:{color:"mc-main"},model:{value:e.saveLocationVar,callback:function(t){e.saveLocationVar=t},expression:"saveLocationVar"}})],1)],1)]),o("q-item",[o("div",{staticClass:"mcm-container"},[o("div",{staticClass:"klab-menuitem"},[o("div",{staticClass:"klab-item"},[e._v(e._s(e.$t("label.saveDockedStatus")))])]),o("q-item-side",{attrs:{right:""}},[o("q-toggle",{attrs:{color:"mc-main"},model:{value:e.saveDockedStatusVar,callback:function(t){e.saveDockedStatusVar=t},expression:"saveDockedStatusVar"}})],1)],1)])],o("q-list-header",{staticStyle:{padding:"8px 16px 0 16px","min-height":"0"}},[e._v(e._s(e.$t("label.mcMenuHelp")))]),o("q-item-separator"),o("q-item",[o("div",{staticClass:"mcm-container"},[o("div",{staticClass:"klab-menuitem klab-clickable",on:{click:e.askTutorial}},[o("div",{staticClass:"klab-item klab-font klab-im-logo klab-icon"}),o("div",{staticClass:"klab-item klab-text klab-only-text"},[e._v(e._s(e.$t("label.showHelp")))])])])]),o("q-item-separator"),o("q-item",[o("div",{staticClass:"klab-version"},[e._v("Version: "+e._s(e.$store.state.data.packageVersion)+"/ Build "+e._s(e.$store.state.data.packageBuild))])])],2)],1):e._e()],1)},Ot=[];zt._withStripped=!0;var At=o("c1df"),mt=o.n(At),vt=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"sr-container",class:[e.light?"sr-light":"sr-dark","vertical"===e.orientation?"sr-vertical":""],style:{width:e.width},on:{click:function(t){e.scaleEditing=e.editable}}},[e.hasScale?o("div",{staticClass:"sr-scalereference klab-menuitem",class:{"sr-full":e.full,"klab-clickable":e.editable}},[e.full?o("div",{staticClass:"sr-locked klab-item mdi sr-icon",class:[e.isScaleLocked[e.scaleType]?"mdi-lock-outline":"mdi-lock-open-outline"],on:{click:function(t){t.preventDefault(),e.lockScale(t)}}},[o("q-tooltip",{attrs:{anchor:"bottom middle",self:"top middle",offset:[0,5]}},[e._v(e._s(e.isScaleLocked[e.scaleType]?e.$t("label.clickToUnlock"):e.$t("label.clickToLock")))])],1):e._e(),o("div",{staticClass:"sr-editables",style:{cursor:e.editable?"pointer":"default"}},[o("div",{staticClass:"sr-scaletype klab-item",class:["mdi "+e.type+" sr-icon"]}),o("div",{staticClass:"sr-description klab-item"},[e._v(e._s(e.description))]),o("div",{staticClass:"sr-spacescale klab-item"},[e._v(e._s(e.scale))]),e.editable?o("q-tooltip",{attrs:{anchor:"bottom middle",self:"top middle",offset:[0,5]}},[e.scaleType===e.SCALE_TYPE.ST_TIME&&""!==e.timeLimits?o("div",{staticClass:"sr-tooltip sr-time-tooltip",domProps:{innerHTML:e._s(e.timeLimits)}}):e._e(),o("div",{staticClass:"sr-tooltip"},[e._v(e._s(e.$t("label.clickToEditScale")))])]):e._e()],1)]):o("div",{staticClass:"sr-no-scalereference"},[o("p",[e._v(e._s(e.$t("label.noScaleReference")))])])])},gt=[];vt._withStripped=!0;var yt={name:"ScaleReference",props:{scaleType:{type:String,validator:function(e){return-1!==[c["D"].ST_SPACE,c["D"].ST_TIME].indexOf(e)},default:c["D"].ST_SPACE},useNext:{type:Boolean,default:!1},width:{type:String,default:"150px"},light:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},full:{type:Boolean,default:!1},orientation:{type:String,default:"horizontal"}},data:function(){return{SCALE_TYPE:c["D"]}},computed:a()({},Object(s["c"])("data",["scaleReference","isScaleLocked","nextScale"]),{scaleObj:function(){return this.useNext?this.nextScale:this.scaleReference},resolution:function(){return this.scaleType===c["D"].ST_SPACE?this.scaleObj.spaceResolutionConverted:this.scaleObj.timeUnit},unit:function(){return this.scaleType===c["D"].ST_SPACE?this.scaleObj.spaceUnit:this.scaleObj.timeUnit},type:function(){return this.scaleType===c["D"].ST_SPACE?"mdi-grid":"mdi-clock-outline"},description:function(){return this.scaleType===c["D"].ST_SPACE?this.scaleObj.spaceResolutionDescription:null===this.scaleObj.timeUnit?"YEAR":this.scaleObj.timeUnit},scale:function(){var e=this;return this.scaleType===c["D"].ST_SPACE?this.scaleObj.spaceScale:this.unit?c["E"].find(function(t){return t.value===e.unit}).index:this.scaleObj.timeScale},hasScale:function(){return this.useNext?null!==this.nextScale:null!==this.scaleReference},timeLimits:function(){return 0===this.scaleObj.start&&0===this.scaleObj.end?"":"".concat(mt()(this.scaleObj.start).format("L HH:mm:ss"),"
").concat(mt()(this.scaleObj.end).format("L HH:mm:ss"))},scaleEditing:{get:function(){return this.$store.getters["view/isScaleEditing"]},set:function(e){this.$store.dispatch("view/setScaleEditing",{active:e,type:this.scaleType})}}}),methods:a()({},Object(s["b"])("data",["setScaleLocked"]),{lockScale:function(e){e.stopPropagation();var t=!this.isScaleLocked[this.scaleType];this.sendStompMessage(p["a"].SETTING_CHANGE_REQUEST({setting:this.scaleType===c["D"].ST_SPACE?c["I"].LOCK_SPACE:c["I"].LOCK_TIME,value:t},this.$store.state.data.session).body),this.setScaleLocked({scaleType:this.scaleType,scaleLocked:t}),t||this.$eventBus.$emit(c["h"].SEND_REGION_OF_INTEREST)}})},qt=yt,_t=(o("cf611"),Object(A["a"])(qt,vt,gt,!1,null,null,null));_t.options.__file="ScaleReference.vue";var Wt=_t.exports,Rt=o("2cee"),wt=o("1442"),Lt={name:"MainControlMenu",mixins:[Rt["a"],Te],components:{ScaleReference:Wt},data:function(){return{}},computed:a()({},Object(s["c"])("data",["contextsHistory","hasContext","contextId","contextReloaded","contextEncodedShape","interactiveMode","session"]),Object(s["d"])("stomp",["subscriptions"]),Object(s["c"])("stomp",["lastActiveTask","contextTaskIsAlive"]),Object(s["c"])("view",["searchIsActive","isDrawMode","isScaleEditing","isMainControlDocked","viewCoordinates"]),Object(s["d"])("view",["saveLocation","saveDockedStatus"]),{saveLocationVar:{get:function(){return this.saveLocation},set:function(e){this.changeSaveLocation(e)}},saveDockedStatusVar:{get:function(){return this.saveDockedStatus},set:function(e){this.changeSaveDockedStatus(e)}},interactiveModeModel:{get:function(){return this.interactiveMode},set:function(e){this.setInteractiveMode(e)}},coordinates:{get:function(){return this.viewCoordinates},set:function(e){this.setViewCoordinates(e)}},isVisible:function(){return!this.isDrawMode&&!this.isScaleEditing}}),methods:a()({},Object(s["b"])("data",["setInteractiveMode"]),Object(s["b"])("view",["setDrawMode","setViewCoordinates"]),{startDraw:function(){this.setDrawMode(!this.isDrawMode)},toggleContextsHistory:function(){this.contextsHistory.length>0&&this.$refs["mcm-contexts-popover"].toggle()},closeAndCall:function(){var e=j()(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(this.contextId!==t){e.next=2;break}return e.abrupt("return");case 2:this.closeMenuPopups(),this.clearTooltip(),this.loadOrReloadContext(t,this.closeMenuPopups());case 5:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}(),formatContextTime:function(e){var t=e.lastUpdate;if(0===t&&(t=e.creationTime),t&&null!==t){var o=mt()(t),n=0===mt()().diff(o,"days");return n?o.format("HH:mm:ss"):o.format("YYYY/mm/dd HH:mm:ss")}return""},changeSaveLocation:function(e){this.$store.commit("view/SET_SAVE_LOCATION",e,{root:!0}),G["a"].set(c["R"].COOKIE_SAVELOCATION,e,{expires:30,path:"/",secure:!0}),e||(G["a"].set(c["R"].COOKIE_SAVELOCATION,e,{expires:30,path:"/",secure:!0}),G["a"].set(c["R"].COOKIE_MAPDEFAULT,{center:wt["b"].center,zoom:wt["b"].zoom},{expires:30,path:"/",secure:!0}))},changeSaveDockedStatus:function(e){this.$store.commit("view/SET_SAVE_DOCKED_STATUS",e,{root:!0}),e?G["a"].set(c["R"].COOKIE_DOCKED_STATUS,this.isMainControlDocked,{expires:30,path:"/",secure:!0}):G["a"].remove(c["R"].COOKIE_DOCKED_STATUS)},copyContextES:function(e,t){e.stopPropagation(),Object(He["b"])(t),this.$q.notify({message:Object(He["a"])(this.$t("messages.customCopyToClipboard",{what:this.$t("label.context")})),type:"info",icon:"mdi-information",timeout:500})},closeMenuPopups:function(){this.$refs["mcm-main-popover"]&&this.$refs["mcm-main-popover"].hide(),this.$refs["mcm-contexts-popover"]&&this.$refs["mcm-contexts-popover"].hide()},sendInteractiveModeState:function(e){this.sendStompMessage(p["a"].SETTING_CHANGE_REQUEST({setting:c["I"].INTERACTIVE_MODE,value:e},this.session).body)},viewerClickListener:function(){this.isDrawMode||this.closeMenuPopups()},askTutorial:function(){this.$eventBus.$emit(c["h"].NEED_HELP),this.closeMenuPopups()}}),watch:{hasContext:function(){this.closeMenuPopups()},searchIsActive:function(e){e&&this.closeMenuPopups()},interactiveModeModel:function(e){this.sendInteractiveModeState(e)}},mounted:function(){this.$eventBus.$on(c["h"].VIEWER_CLICK,this.viewerClickListener)},beforeDestroy:function(){this.$eventBus.$off(c["h"].VIEWER_CLICK,this.viewerClickListener)}},Ct=Lt,St=(o("6774"),Object(A["a"])(Ct,zt,Ot,!1,null,null,null));St.options.__file="MainControlMenu.vue";var Et=St.exports,Tt={name:"KlabSearchBar",components:{KlabSpinner:v,KlabSearch:lt,ScrollingText:ft,MainControlMenu:Et},mixins:[rt],data:function(){return{searchAsked:!1,busyInformed:!1,searchAskedInterval:null}},computed:a()({},Object(s["c"])("data",["hasContext","contextLabel","contextCustomLabel","isScaleLocked"]),Object(s["c"])("view",["spinnerColor","searchIsActive","searchIsFocused","hasMainControl","statusTextsString","statusTextsLength","fuzzyMode","largeMode","isDocked","engineEventsCount"]),{isDocked:function(){return!this.hasMainControl},mainContextLabel:function(){return this.contextLabel?this.contextLabel:this.contextCustomLabel}}),methods:a()({},Object(s["b"])("view",["setMainViewer","searchStart","searchFocus","searchStop","setSpinner"]),{getLargeModeWidth:function(){return"".concat((window.innerWidth||document.body.clientWidth)-c["w"].LEFTMENU_MINSIZE,"px")},getBGColor:function(e){return"rgba(".concat(this.spinnerColor.rgb.r,",").concat(this.spinnerColor.rgb.g,",").concat(this.spinnerColor.rgb.b,", ").concat(e,")")},showSuggestions:function(e){1===e.targetTouches.length&&(e.preventDefault(),this.searchIsActive?this.searchIsFocused?this.$refs["klab-search"].searchEnd({noDelete:!1}):this.searchFocus({char:" ",focused:!0}):this.searchStart(" "))},emitSpinnerDoubleclick:function(){this.$eventBus.$emit(c["h"].SPINNER_DOUBLE_CLICK)},askForSuggestionsListener:function(e){this.showSuggestions(e)},busySearch:function(){this.searchAsked=!0,this.updateBusy()},updateBusy:function(){var e=this;null!==this.searchAskedInterval&&(clearTimeout(this.searchAskedInterval),this.searchAskedInterval=null),this.searchAsked&&(0===this.engineEventsCount?this.searchAskedInterval=setTimeout(function(){e.searchAsked=!1,e.busyInformed=!1,e.setSpinner(a()({},c["J"].SPINNER_STOPPED,{owner:"BusySearch"}))},600):this.busyInformed||(this.setSpinner(a()({},c["J"].SPINNER_LOADING,{owner:"BusySearch"})),this.busyInformed=!0))}}),watch:{statusTextsString:function(e){e.includes(c["p"].UNKNOWN_SEARCH_OBSERVATION)&&(e=e.replace(c["p"].UNKNOWN_SEARCH_OBSERVATION,this.$t("messages.unknownSearchObservation"))),this.$refs["st-status-text"].changeText(e,5*this.statusTextsLength)},mainContextLabel:function(e){this.$refs["st-context-text"]&&this.$refs["st-context-text"].changeText(e)},hasContext:function(e){e&&this.setSpinner(a()({},c["J"].SPINNER_STOPPED,{owner:"KlabSearch"}))},engineEventsCount:function(){this.updateBusy()}},mounted:function(){this.$eventBus.$on(c["h"].ASK_FOR_SUGGESTIONS,this.askForSuggestionsListener),this.updateBusy()},beforeDestroy:function(){this.$eventBus.$off(c["h"].ASK_FOR_SUGGESTIONS,this.askForSuggestionsListener)}},xt=Tt,Nt=(o("19f2"),Object(A["a"])(xt,Pe,De,!1,null,null,null));Nt.options.__file="KlabSearchBar.vue";var Bt=Nt.exports,kt=function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.contextsCount>1?o("div",{staticClass:"kbc-container"},e._l(e.contextsLabels,function(t,n){return o("span",{key:t.id,on:{click:function(o){e.load(t.contextId,n)}}},[e._v(e._s(t.label))])})):e._e()},Pt=[];kt._withStripped=!0;var Dt={name:"KlabBreadcrumbs",mixins:[Te],computed:a()({},Object(s["c"])("data",["contextsLabels","contextsCount","contextById"])),methods:a()({},Object(s["b"])("data",["loadContext"]),{load:function(e,t){if(t!==this.contextsCount-1){var o,n=this.$store.state.data.observations.find(function(t){return t.id===e});o=n||this.contextById(e),this.sendStompMessage(p["a"].CONTEXTUALIZATION_REQUEST(a()({contextId:o.id},o.contextId&&{parentContext:o.contextId}),this.$store.state.data.session).body),this.loadContext(e)}}})},It=Dt,Xt=(o("6c8f"),Object(A["a"])(It,kt,Pt,!1,null,null,null));Xt.options.__file="KlabBreadcrumbs.vue";var jt=Xt.exports,Ft=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{attrs:{id:"klab-tree-pane"}},[o("klab-splitter",{attrs:{margin:0,hidden:e.hasObservationInfo?"":"right"},on:{"close-info":e.onCloseInfo}},[o("div",{staticClass:"full-height",attrs:{slot:"left-pane",id:"ktp-left"},slot:"left-pane"},[e.hasTree?o("div",{ref:"kt-out-container",class:{"ktp-loading":e.taskOfContextIsAlive,"with-splitter":e.hasObservationInfo},attrs:{id:"kt-out-container"}},[o("q-resize-observable",{on:{resize:e.outContainerResized}}),[o("klab-tree",{ref:"kt-user-tree",style:{"max-height":!!e.userTreeMaxHeight&&e.userTreeMaxHeight+"px"},attrs:{id:"kt-user-tree",tree:e.userTree,"is-user":!0},on:{resized:e.recalculateTreeHeight}})],o("details",{directives:[{name:"show",rawName:"v-show",value:e.mainTreeHasNodes(),expression:"mainTreeHasNodes()"}],attrs:{id:"kt-tree-details",open:e.taskOfContextIsAlive||e.mainTreeHasNodes(!0)||e.detailsOpen}},[o("summary",[o("q-icon",{attrs:{name:"mdi-dots-horizontal",id:"ktp-main-tree-arrow"}},[o("q-tooltip",{attrs:{offset:[0,0],self:"top left",anchor:"bottom right"}},[e._v(e._s(e.detailsOpen?e.$t("tooltips.displayMainTree"):e.$t("tooltips.hideMainTree")))])],1)],1),o("klab-tree",{ref:"kt-tree",style:{"max-height":!!e.treeHeight&&e.treeHeight+"px"},attrs:{id:"kt-tree",tree:e.tree,"is-user":!1},on:{resized:e.recalculateTreeHeight}})],1)],2):e.hasContext?o("div",{staticClass:"q-ma-md text-center text-white ktp-no-tree"},[e._v("\n "+e._s(e.$t("label.noObservation"))+"\n ")]):o("div",{staticClass:"q-ma-md text-center text-white ktp-no-tree"},[e._v("\n "+e._s(e.$t("label.noContext"))+"\n ")])]),o("div",{staticClass:"full-height",attrs:{slot:"right-pane",id:"ktp-right"},slot:"right-pane"},[e.hasObservationInfo?o("observation-info",{on:{shownode:function(t){e.informTree(t)}}}):e._e()],1)])],1)},Ht=[];Ft._withStripped=!0;o("5df2");var Ut=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"splitter-container full-height"},[!e.hidden&&e.controllers?o("div",{staticClass:"splitter-controllers"},[e.onlyOpenClose?e._e():[o("q-btn",{staticClass:"no-padding splitter-actions",style:{color:e.controlsColor},attrs:{flat:"",round:"",size:"sm",id:"splitter-to-left",icon:"mdi-arrow-left"},nativeOn:{click:function(t){e.percent=0}}}),o("q-btn",{staticClass:"no-padding splitter-actions rotate-90",style:{color:e.controlsColor},attrs:{flat:"",round:"",size:"sm",id:"splitter-to-middle",icon:"mdi-format-align-middle"},nativeOn:{click:function(t){e.percent=50}}}),o("q-btn",{staticClass:"no-padding splitter-actions",style:{color:e.controlsColor},attrs:{flat:"",round:"",size:"sm",id:"splitter-to-right",icon:"mdi-arrow-right"},nativeOn:{click:function(t){e.percent=100}}})],o("q-btn",{staticClass:"no-padding splitter-actions",style:{color:e.controlsColor},attrs:{flat:"",round:"",size:"sm",id:"splitter-close",icon:"mdi-close"},nativeOn:{click:function(t){e.$emit("close-info")}}})],2):e._e(),o("div",e._g({staticClass:"vue-splitter",style:{cursor:e.cursor,flexDirection:e.flexDirection}},e.onlyOpenClose?{}:{mouseup:e.onUp,mousemove:e.onMouseMove,touchmove:e.onMove,touchend:e.onUp}),[o("div",{staticClass:"left-pane splitter-pane",style:e.leftPaneStyle},[e._t("left-pane")],2),e.hidden?e._e():[e.onlyOpenClose?e._e():o("div",e._g({staticClass:"splitter",class:{active:e.active},style:e.splitterStyle},e.onlyOpenClose?{}:{mousedown:e.onDown,touchstart:e.onDown})),o("div",{staticClass:"right-pane splitter-pane",style:e.rightPaneStyle},[e._t("right-pane")],2)]],2)])},Vt=[];Ut._withStripped=!0;var Gt={props:{margin:{type:Number,default:10},horizontal:{type:Boolean,default:!1},hidden:{type:String,default:""},splitterColor:{type:String,default:"rgba(0, 0, 0, 0.2)"},controlsColor:{type:String,default:"rgba(192, 192, 192)"},splitterSize:{type:Number,default:3},controllers:{type:Boolean,default:!0},onlyOpenClose:{type:Boolean,default:!0}},data:function(){return{active:!1,percent:"left"===this.hidden?0:"right"===this.hidden?100:this.onlyOpenClose?0:50,hasMoved:!1}},computed:{flexDirection:function(){return this.horizontal?"column":"row"},splitterStyle:function(){return this.horizontal?{height:"".concat(this.splitterSize,"px"),cursor:"ns-resize","background-color":this.splitterColor}:{width:"".concat(this.splitterSize,"px"),cursor:"ew-resize","background-color":this.splitterColor}},leftPaneStyle:function(){return this.horizontal?{height:"".concat(this.percent,"%")}:{width:"".concat(this.percent,"%")}},rightPaneStyle:function(){return this.horizontal?{height:"".concat(100-this.percent,"%")}:{width:"".concat(100-this.percent,"%")}},cursor:function(){return this.active?this.horizontal?"ns-resize":"ew-resize":""}},methods:{onDown:function(){this.active=!0,this.hasMoved=!1},onUp:function(){this.active=!1},onMove:function(e){var t=0,o=e.currentTarget,n=0;if(this.active){if(this.horizontal){while(o)t+=o.offsetTop,o=o.offsetParent;n=Math.floor((e.pageY-t)/e.currentTarget.offsetHeight*1e4)/100}else{while(o)t+=o.offsetLeft,o=o.offsetParent;n=Math.floor((e.pageX-t)/e.currentTarget.offsetWidth*1e4)/100}n>this.margin&&n<100-this.margin&&(this.percent=n),this.$emit("splitterresize"),this.hasMoved=!0}},onMouseMove:function(e){0!==e.buttons&&0!==e.which||(this.active=!1),this.onMove(e)}},watch:{hidden:function(){this.percent="left"===this.hidden?0:"right"===this.hidden?100:this.onlyOpenClose?0:50}}},Kt=Gt,$t=(o("1848"),Object(A["a"])(Kt,Ut,Vt,!1,null,null,null));$t.options.__file="KlabSplitter.vue";var Yt=$t.exports,Jt=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"kt-container relative-position klab-menu-component",class:{"kt-drag-enter":e.dragEnter>0&&!e.dragStart},on:{dragenter:e.onDragEnter,dragover:e.onDragOver,dragleave:e.onDragLeave,drop:e.onDrop}},[o("div",{staticClass:"kt-tree-container simplebar-vertical-only",on:{contextmenu:e.rightClickHandler}},[o("klab-q-tree",{ref:"klab-tree",attrs:{nodes:e.tree,"node-key":"id",ticked:e.ticked,selected:e.selected,expanded:e.expanded,"tick-strategy":"strict","text-color":"white","control-color":"white",color:"white",dark:!0,noNodesLabel:e.$t("label.noNodes"),"double-click-function":e.doubleClick,filter:e.isUser?"user":"tree",filterMethod:e.filterUser,noFilteredResultLabel:e.isUser?e.taskOfContextIsAlive?e.$t("messages.treeNoResultUserWaiting"):e.$t("messages.treeNoResultUser"):e.$t("messages.treeNoResultNoUser")},on:{"update:ticked":function(t){e.ticked=t},"update:selected":function(t){e.selected=t},"update:expanded":function(t){e.expanded=t},click:function(t){e.$refs["observations-context"].close()}},scopedSlots:e._u([{key:"header-default",fn:function(t){return o("div",{class:{"node-disabled":t.node.disabled&&!t.node.noTick}},[o("span",{directives:[{name:"ripple",rawName:"v-ripple",value:t.node.main,expression:"prop.node.main"}],staticClass:"node-element",class:[t.node.main?"node-emphasized":"",e.hasObservationInfo&&e.observationInfo.id===t.node.id?"node-selected":"",null!==e.cleanTopLayerId&&e.cleanTopLayerId===t.node.id?"node-on-top":"",e.checkObservationsOnTop(t.node.id)?"node-on-top":"",e.isUser?"node-user-element":"node-tree-element",t.node.needUpdate?"node-updatable":""],attrs:{draggable:t.node.parentId===e.contextId,id:"node-"+t.node.id},on:{dragstart:function(o){e.onDragStart(o,t.node.id)},dragend:e.onDragEnd}},[t.node.observationType===e.OBSERVATION_CONSTANTS.TYPE_PROCESS?o("q-icon",{staticClass:"node-no-tick",attrs:{name:"mdi-buddhism",size:"17px"}}):t.node.noTick?o("q-icon",{attrs:{name:"mdi-checkbox-blank-circle"}}):e._e(),e._v("\n "+e._s(t.node.label)+"\n "),t.node.dynamic?o("q-icon",{staticClass:"node-icon-time",class:{"animate-spin":t.node.loading},attrs:{name:"mdi-clock-outline",color:"mc-green"}}):o("q-icon",{staticClass:"node-icon-time node-loading-layer",class:{"animate-spin":t.node.loading},attrs:{name:"mdi-loading"}}),o("q-tooltip",{staticClass:"kt-q-tooltip",attrs:{delay:300,offset:[0,8],self:"bottom left",anchor:"top left"}},[e._v(e._s(e.clearObservable(t.node.observable)))])],1),t.node.childrenCount>0||t.node.children.length>0?[o("q-chip",{staticClass:"node-chip",class:{"node-substituible":!t.node.empty&&!t.node.noTick},attrs:{color:"white",small:"",dense:"","text-color":"grey-7"}},[e._v(e._s(t.node.childrenCount?t.node.childrenCount:t.node.children.length))])]:e._e(),t.node.empty||t.node.noTick?e._e():o("q-btn",{staticClass:"kt-upload",attrs:{round:"",flat:"",size:"sm",icon:"mdi-arrow-up",disable:""}},[o("q-tooltip",{staticClass:"kt-q-tooltip",attrs:{delay:300,offset:[0,8],self:"bottom left",anchor:"top left"}},[e._v(e._s(e.$t("tooltips.uploadData")))])],1),t.node.empty||t.node.noTick?e._e():o("q-btn",{staticClass:"kt-download",attrs:{round:"",flat:"",size:"sm",icon:"mdi-arrow-down"},nativeOn:{click:function(o){e.askForOutputFormat(o,t.node.id,t.node.exportFormats)}}}),"undefined"!==typeof t.node.idx?[o("q-chip",{staticClass:"node-chip transparent",style:{right:t.node.childrenCount>0?e.calculateRightPosition([t.node.childrenCount],"25px"):t.node.children.length>0?e.calculateRightPosition([t.node.children.length],"25px"):""},attrs:{small:"",dense:"","text-color":"grey-9"}},[e._v("\n "+e._s(e.$t("label.itemCounter",{loaded:t.node.idx+1,total:t.node.siblingsCount}))+"\n ")])]:e._e()],2)}},{key:"header-folder",fn:function(t){return o("div",{class:{"node-disabled":t.node.disabled&&!t.node.noTick}},[o("span",{directives:[{name:"ripple",rawName:"v-ripple",value:t.node.main,expression:"prop.node.main"}],staticClass:"node-element",class:[t.node.main?"node-emphasized":""],attrs:{draggable:t.node.parentId===e.contextId,id:"node-"+t.node.id},on:{dragstart:function(o){e.onDragStart(o,t.node.id)},dragend:e.onDragEnd}},[e._v(e._s(t.node.label))]),o("q-btn",{staticClass:"kt-upload",attrs:{round:"",flat:"",size:"sm",icon:"mdi-arrow-up"}}),o("q-btn",{staticClass:"kt-download",attrs:{round:"",flat:"",size:"sm",icon:"mdi-arrow-down"},nativeOn:{click:function(o){e.askForOutputFormat(o,t.node.id,t.node.exportFormats,!0)}}}),"undefined"!==typeof t.node.idx?[o("q-chip",{staticClass:"node-chip transparent",style:{right:t.node.childrenCount>0?e.calculateRightPosition([t.node.childrenCount],"25px"):t.node.children.length>0?e.calculateRightPosition([t.node.children.length],"25px"):""},attrs:{small:"",dense:"","text-color":"grey-9"}},[e._v("\n "+e._s(e.$t("label.itemCounter",{loaded:t.node.idx+1,total:t.node.siblingsCount}))+"\n ")])]:e._e(),o("q-chip",{staticClass:"node-chip",class:{"node-substituible":!t.node.empty&&!t.node.noTick},attrs:{color:"white",small:"",dense:"","text-color":"grey-7"}},[e._v(e._s(t.node.childrenCount?t.node.childrenCount:t.node.children.length))])],2)}},{key:"header-stub",fn:function(t){return o("div",{staticClass:"node-stub"},[o("span",{staticClass:"node-element node-stub"},[o("q-icon",{staticClass:"node-no-tick",attrs:{name:"mdi-checkbox-blank-circle"}}),e._v(e._s(e.$t("messages.loadingChildren"))+"\n ")],1)])}}])},[e._v("\n >\n ")])],1),o("observation-context-menu",{attrs:{"observation-id":e.contextMenuObservationId},on:{hide:function(t){e.contextMenuObservationId=null}}}),o("q-resize-observable",{on:{resize:function(t){e.$emit("resized")}}})],1)},Qt=[];Jt._withStripped=!0;o("f559"),o("6b54"),o("b54a");var Zt=o("e4f9"),eo=o("bffd"),to=o("b70a"),oo=o("525b"),no={name:"KlabQTree",extends:Zt["a"],props:{doubleClickTimeout:{type:Number,default:300},doubleClickFunction:{type:Function,default:null},noFilteredResultLabel:{type:String,default:null},checkClick:{type:Boolean,default:!0}},data:function(){return{lazy:{},innerTicked:this.ticked||[],innerExpanded:this.expanded||[],timeouts:[]}},methods:{__blur:function(){document.activeElement&&document.activeElement.blur()},__getNode:function(e,t){var o=this,n=t[this.nodeKey],i=this.meta[n],r=t.header&&this.$scopedSlots["header-".concat(t.header)]||this.$scopedSlots["default-header"],a=i.isParent?this.__getChildren(e,t.children):[],s=a.length>0||i.lazy&&"loaded"!==i.lazy,c=t.body&&this.$scopedSlots["body-".concat(t.body)]||this.$scopedSlots["default-body"],p=r||c?this.__getSlotScope(t,i,n):null;return c&&(c=e("div",{staticClass:"q-tree-node-body relative-position"},[e("div",{class:this.contentClass},[c(p)])])),e("div",{key:n,staticClass:"q-tree-node",class:{"q-tree-node-parent":s,"q-tree-node-child":!s}},[e("div",{staticClass:"q-tree-node-header relative-position row no-wrap items-center",class:{"q-tree-node-link":i.link,"q-tree-node-selected":i.selected,disabled:i.disabled},on:{click:function(e){o.checkClick?e&&e.srcElement&&-1!==e.srcElement.className.indexOf("node-element")&&o.__onClick(t,i):o.__onClick(t,i)}}},["loading"===i.lazy?e(to["a"],{staticClass:"q-tree-node-header-media q-mr-xs",props:{color:this.computedControlColor}}):s?e(Qe["a"],{staticClass:"q-tree-arrow q-mr-xs transition-generic",class:{"q-tree-arrow-rotate":i.expanded},props:{name:this.computedIcon},nativeOn:{click:function(e){o.__onExpandClick(t,i,e)}}}):null,e("span",{staticClass:"row no-wrap items-center",class:this.contentClass},[i.hasTicking&&!i.noTick?e(oo["a"],{staticClass:"q-mr-xs",props:{value:i.indeterminate?null:i.ticked,color:this.computedControlColor,dark:this.dark,keepColor:!0,disable:!i.tickable},on:{input:function(e){o.__onTickedClick(t,i,e)}}}):null,r?r(p):[this.__getNodeMedia(e,t),e("span",t[this.labelKey])]])]),s?e(eo["a"],{props:{duration:this.duration}},[e("div",{directives:[{name:"show",value:i.expanded}],staticClass:"q-tree-node-collapsible",class:"text-".concat(this.color)},[c,e("div",{staticClass:"q-tree-children",class:{disabled:i.disabled}},a)])]):c])},__onClick:function(e,t){var o=this;null===this.doubleClickFunction?this.__onClickDefault(e,t):"undefined"===typeof this.timeouts["id".concat(e.id)]||null===this.timeouts["id".concat(e.id)]?this.timeouts["id".concat(e.id)]=setTimeout(function(){o.timeouts["id".concat(e.id)]=null,o.__onClickDefault(e,t)},this.doubleClickTimeout):(clearTimeout(this.timeouts["id".concat(e.id)]),this.timeouts["id".concat(e.id)]=null,this.doubleClickFunction(e,t))},__onClickDefault:function(e,t){this.__blur(),this.hasSelection?t.selectable&&this.$emit("update:selected",t.key!==this.selected?t.key:null):this.__onExpandClick(e,t),"function"===typeof e.handler&&e.handler(e)}},render:function(e){var t=this.__getChildren(e,this.nodes),o=this.classes.indexOf("klab-no-nodes");return 0===t.length&&-1===o?this.classes.push("klab-no-nodes"):0!==t.length&&-1!==o&&this.classes.splice(o,1),e("div",{staticClass:"q-tree",class:this.classes},0===t.length?this.filter?this.noFilteredResultLabel:this.noNodesLabel||this.$t("messages.treeNoNodes"):t)}},io=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("q-context-menu",{directives:[{name:"show",rawName:"v-show",value:e.enableContextMenu,expression:"enableContextMenu"}],ref:"observations-context",on:{hide:e.hide}},[o("q-list",{staticStyle:{"min-width":"150px"},attrs:{dense:"","no-border":""}},[e._l(e.itemActions,function(t,n){return t.enabled?[t.separator&&0!==n?o("q-item-separator",{key:t.actionId}):e._e(),!t.separator&&t.enabled?o("q-item",{key:t.actionId,attrs:{link:""},nativeOn:{click:function(o){e.askForAction(t.actionId)}}},[o("q-item-main",{attrs:{label:t.actionLabel}})],1):e._e(),t.separator||t.enabled?e._e():o("q-item",{key:t.actionId,attrs:{disabled:""}},[o("q-item-main",{attrs:{label:t.actionLabel}})],1)]:e._e()})],2)],1)},ro=[];io._withStripped=!0;var ao={name:"ObservationContextMenu",props:{observationId:{type:String,default:null}},data:function(){return{enableContextMenu:!1,itemActions:[],itemObservation:null}},methods:a()({},Object(s["b"])("data",["setContext","loadContext","setContextMenuObservationId"]),{initContextMenu:function(){var e=this,t=this.$store.state.data.observations.find(function(t){return t.id===e.observationId});t?(this.resetContextMenu(!1),t&&t.actions&&t.actions.length>1?(this.itemActions=t.actions.slice(),this.itemObservation=t):this.resetContextMenu(),t.observationType!==c["A"].TYPE_STATE&&t.observationType!==c["A"].TYPE_GROUP&&(this.itemActions.push(c["B"].SEPARATOR_ITEM),this.itemActions.push(c["B"].RECONTEXTUALIZATION_ITEM),this.itemObservation=t),this.itemActions&&this.itemActions.length>0?this.enableContextMenu=this.itemActions&&this.itemActions.length>0:this.enableContextMenu=!1):this.resetContextMenu()},resetContextMenu:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.itemActions=[],this.itemObservation=null,e&&(this.enableContextMenu=!1)},hide:function(e){this.resetContextMenu(),this.$emit("hide",e)},askForAction:function(e){if(null!==this.itemObservation)switch(console.debug("Will ask for ".concat(e," of observation ").concat(this.itemObservation.id)),e){case"Recontextualization":this.sendStompMessage(p["a"].CONTEXTUALIZATION_REQUEST({contextId:this.itemObservation.id,parentContext:this.itemObservation.contextId},this.$store.state.data.session).body),this.loadContext(this.itemObservation.id);break;case"AddToCache":console.log("Ask for Add to cache, no action for now");break;default:break}this.enableContextMenu=!1}}),watch:{observationId:function(){null!==this.observationId?this.initContextMenu():this.resetContextMenu()}},mounted:function(){null!==this.observationId&&this.initContextMenu()}},so=ao,co=(o("ad0b"),Object(A["a"])(so,io,ro,!1,null,null,null));co.options.__file="ObservationContextMenu.vue";var po=co.exports,lo=null,uo={name:"klabTree",components:{KlabQTree:no,ObservationContextMenu:po},props:{isUser:{type:Boolean,required:!0},tree:{type:Array,required:!0}},data:function(){return{ticked:[],selected:null,expanded:[],itemObservationId:null,askingForChildren:!1,scrollElement:null,showPopover:null,dragStart:!1,dragEnter:0,watchedObservation:[],contextMenuObservationId:null,OBSERVATION_CONSTANTS:c["A"]}},computed:a()({},Object(s["c"])("data",["treeNode","lasts","contextReloaded","contextId","observations","timeEventsOfObservation","timestamp","observationsIdOnTop"]),Object(s["c"])("stomp",["tasks","taskOfContextIsAlive"]),Object(s["c"])("view",["observationInfo","hasObservationInfo","topLayerId"]),Object(s["d"])("view",["treeSelected","treeTicked","treeExpanded","showNotified"]),{cleanTopLayerId:function(){return this.topLayerId?this.topLayerId.substr(0,this.topLayerId.indexOf("T")):null}}),methods:a()({checkObservationsOnTop:function(e){return this.observationsIdOnTop.length>0&&this.observationsIdOnTop.includes(e)},copyToClipboard:He["b"]},Object(s["b"])("data",["setVisibility","selectNode","askForChildren","addChildrenToTree","setContext","changeTreeOfNode","setTimestamp"]),Object(s["b"])("view",["setSpinner","setMainDataViewer"]),{filterUser:function(e,t){return e.userNode?"user"===t:"tree"===t},rightClickHandler:function(e){e.preventDefault();var t=null;if(e.target.className.includes("node-element"))t=e.target;else{var o=e.target.getElementsByClassName("node-element");if(1===o.length){var n=Fe()(o,1);t=n[0]}}this.contextMenuObservationId=null!==t?t.id.substring(5):null},clearObservable:function(e){return 0===e.indexOf("(")&&e.lastIndexOf(")")===e.length-1?e.substring(1,e.length-1):e},askForOutputFormat:function(e,t,o){var n=this;null!==o&&o.length>0?(e.stopPropagation(),this.$q.dialog({title:this.$t("label.titleOutputFormat"),message:this.$t("label.askForOuputFormat"),options:{type:"radio",model:o[0].value,items:o},cancel:!0,preventClose:!1,color:"info"}).then(function(e){n.askDownload(t,e,o)}).catch(function(){})):this.$q.notify({message:"No available formats",type:"warning",icon:"mdi-alert",timeout:200})},askDownload:function(e,t,o,n){if("undefined"===typeof n){var i="";if(-1!==this.timestamp){var r=new Date(this.timestamp);i="_".concat(r.getFullYear()).concat(r.getMonth()<9?"0":"").concat(r.getMonth()+1).concat(r.getDate()<10?"0":"").concat(r.getDate(),"_").concat(r.getHours()<10?"0":"").concat(r.getHours()).concat(r.getMinutes()<10?"0":"").concat(r.getMinutes()).concat(r.getSeconds()<10?"0":"").concat(r.getSeconds())}n="".concat(e).concat(i)}var a=o.find(function(e){return e.value===t});Object(Ue["b"])(e,"RAW",n,a,this.timestamp)},changeNodeState:function(e){var t=e.nodeId,o=e.state;"undefined"!==typeof this.$refs["klab-tree"]&&this.$refs["klab-tree"].setTicked([t],o)},doubleClick:function(){var e=j()(regeneratorRuntime.mark(function e(t,o){var n,i;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(!t.isContainer){e.next=4;break}null!==t.viewerIdx&&this.setMainDataViewer({viewerIdx:t.viewerIdx,visible:t.visible}),e.next=14;break;case 4:if(t.observationType!==c["A"].TYPE_STATE){e.next=8;break}this.fitMap(t,o),e.next=14;break;case 8:if(n=this.observations.find(function(e){return e.id===t.id}),!n||null===n){e.next=14;break}return e.next=12,Object(Ue["j"])(n);case 12:i=e.sent,this.fitMap(t,o,i);case 14:case"end":return e.stop()}},e,this)}));return function(t,o){return e.apply(this,arguments)}}(),fitMap:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.$eventBus.$emit(c["h"].NEED_FIT_MAP,{geometry:o}),e&&t&&t.ticked&&this.setVisibility({node:e,visible:!0})},updateFolderListener:function(e){if(e&&e.folderId){var t=Object(Ue["f"])(this.tree,e.folderId);t&&null!==t&&(e.visible?this.$refs["klab-tree"].setTicked(t.children.map(function(e){return e.id}),!0):this.$refs["klab-tree"].setTicked(this.ticked.filter(function(e){return-1===t.children.findIndex(function(t){return t.id===e})}),!1))}},selectElementListener:function(e){var t=this,o=e.id,n=e.selected;this.$nextTick(function(){var e=Object(Ue["f"])(t.tree,o);e&&(t.setVisibility({node:e,visible:n}),n?t.ticked.push(o):t.ticked.splice(t.ticked.findIndex(function(e){return e===o}),1))})},treeSizeChangeListener:function(){var e=this;this.isUser||(null!=lo&&(clearTimeout(this.scrollToTimeout),lo=null),this.$nextTick(function(){lo=setTimeout(function(){e.scrollElement.scrollTop=e.scrollElement.scrollHeight},1e3)}))},calculateRightPosition:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=e.reduce(function(e,t){return e+t.toString().length},0),n=""!==t?" + ".concat(t):"";return"calc(".concat(o,"ch").concat(n,")")},onDragStart:function(e,t){e.dataTransfer.setData("id",t),this.dragStart=!0},onDragEnd:function(){this.dragStart=!1},onDragEnter:function(e){e.preventDefault(),this.dragStart||(this.dragEnter+=1)},onDragLeave:function(e){e.preventDefault(),this.dragStart||(this.dragEnter-=1)},onDragOver:function(e){e.preventDefault()},onDrop:function(e){if(e.preventDefault(),this.dragEnter>0){var t=e.dataTransfer.getData("id");t&&""!==t?this.changeTreeOfNode({id:t,isUserTree:this.isUser}):console.warn("Strange dropped node ".concat(e.dataTransfer.getData("id")))}else console.debug("Self dropped");this.dragStart=!1,this.dragEnter=0}}),watch:{tree:function(){this.treeSizeChangeListener()},treeSelected:function(e){e!==this.selected&&(this.selected=e)},expanded:function(e,t){if(this.$store.state.view.treeExpanded=e,t.length!==e.length){if(t.length>e.length){var o=t.filter(function(t){return e.indexOf(t)<0})[0],n=Object(Ue["f"])(this.tree,o);return this.sendStompMessage(p["a"].WATCH_REQUEST({active:!1,observationId:o,rootContextId:n.rootContextId},this.$store.state.data.session).body),this.watchedObservation.splice(this.watchedObservation.findIndex(function(e){return e.observationId===o}),1),void console.info("Stop watching observation ".concat(o," with rootContextId ").concat(n.rootContextId))}var i=e[e.length-1],r=Object(Ue["f"])(this.tree,i);r&&(this.sendStompMessage(p["a"].WATCH_REQUEST({active:!0,observationId:i,rootContextId:r.rootContextId},this.$store.state.data.session).body),this.watchedObservation.push({observationId:i,rootContextId:r.rootContextId}),console.info("Start watching observation ".concat(i," with rootContextId ").concat(r.rootContextId)),r.children.length>0&&r.children[0].id.startsWith("STUB")&&(r.children.splice(0,1),r.children.length0?(this.addChildrenToTree({parent:r}),this.$eventBus.$emit(c["h"].UPDATE_FOLDER,{folderId:r.id,visible:"undefined"!==typeof r.ticked&&r.ticked})):0===r.children.length&&this.askForChildren({parentId:r.id,offset:0,count:this.childrenToAskFor,total:r.childrenCount,visible:"undefined"!==typeof r.ticked&&(!!r.isContainer&&r.ticked)})))}},selected:function(e){null!==e?0===e.indexOf("ff_")?this.selected=null:this.selectNode(e):this.selectNode(null)},ticked:function(e,t){var o=this;if(this.$store.state.view.treeTicked=e,t.length!==e.length)if(t.length>e.length){var n=t.filter(function(t){return e.indexOf(t)<0})[0];if(n.startsWith("STUB"))return;var i=Object(Ue["f"])(this.tree,n);i&&(this.setVisibility({node:i,visible:!1}),i.isContainer&&(this.ticked=this.ticked.filter(function(e){return-1===i.children.findIndex(function(t){return t.id===e})})))}else{var r=e[e.length-1];if(r.startsWith("STUB"))return;var a=Object(Ue["f"])(this.tree,r);if(null!==a)if(a.isContainer){var s=function(){var e;o.setVisibility({node:a,visible:!0}),(e=o.ticked).push.apply(e,I()(a.children.filter(function(e){return e.parentArtifactId===a.id}).map(function(e){return e.id})))};this.askingForChildren||(a.childrenLoaded We are asking for tree now, this call is not need so exit");if(0===e.lasts.length)return t.preventDefault(),void console.debug("KlabTree -> There aren't incompleted folders, exit");var o=e.scrollElement.getBoundingClientRect(),n=o.bottom;e.lasts.forEach(function(t){var o=document.getElementById("node-".concat(t.observationId));if(null!==o){var i=o.getBoundingClientRect();if(0!==i.bottom&&i.bottom Asked for them"),e.$eventBus.$emit(c["h"].UPDATE_FOLDER,{folderId:t.folderId,visible:"undefined"!==typeof r.ticked&&r.ticked})})}}})}),this.$eventBus.$on(c["h"].UPDATE_FOLDER,this.updateFolderListener),this.$eventBus.$on(c["h"].SELECT_ELEMENT,this.selectElementListener),this.selected=this.treeSelected,this.ticked=this.treeTicked,this.expanded=this.treeExpanded},beforeDestroy:function(){var e=this;this.$eventBus.$off(c["h"].UPDATE_FOLDER,this.updateFolderListener),this.$eventBus.$off(c["h"].SELECT_ELEMENT,this.selectElementListener),this.watchedObservation.length>0&&this.watchedObservation.forEach(function(t){e.sendStompMessage(p["a"].WATCH_REQUEST({active:!1,observationId:t.observationId,rootContextId:t.rootContextId},e.$store.state.data.session).body),console.info("Stop watching observation ".concat(t.observationId," with rootContextId ").concat(t.rootContextId))})}},bo=uo,Mo=(o("5b35"),Object(A["a"])(bo,Jt,Qt,!1,null,null,null));Mo.options.__file="KlabTree.vue";var ho=Mo.exports,fo=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"relative-position klab-menu-component",attrs:{id:"oi-container"}},[o("div",{attrs:{id:"oi-controls"}},[o("div",{staticClass:"oi-control oi-text",attrs:{id:"oi-visualize"}},[o("q-checkbox",{attrs:{"keep-color":!0,color:"mc-yellow",readonly:1===e.observationInfo.valueCount||e.observationInfo.empty,disabled:1===e.observationInfo.valueCount||e.observationInfo.empty},nativeOn:{click:function(t){return e.showNode(t)}},model:{value:e.layerShow,callback:function(t){e.layerShow=t},expression:"layerShow"}})],1),o("div",{staticClass:"oi-control oi-text",attrs:{id:"oi-name"}},[o("span",[e._v(e._s(e.observationInfo.label))])]),e.hasSlider?o("div",{staticClass:"oi-control",attrs:{id:"oi-slider"}},[o("q-slider",{attrs:{min:0,max:1,step:.1,decimals:1,color:"mc-yellow",label:!1},model:{value:e.observationInfo.layerOpacity,callback:function(t){e.$set(e.observationInfo,"layerOpacity",t)},expression:"observationInfo.layerOpacity"}})],1):e._e()]),o("div",{class:e.getContainerClasses(),attrs:{id:"oi-metadata-map-wrapper"}},[o("div",{class:[this.exploreMode?"with-mapinfo":""],attrs:{id:"oi-scroll-container"}},[o("div",{attrs:{id:"oi-scroll-metadata-container"}},e._l(e.observationInfo.metadata,function(t,n){return o("div",{key:n,attrs:{id:"oi-metadata"}},[o("div",{staticClass:"oi-metadata-name oi-text"},[e._v(e._s(n))]),o("div",{staticClass:"oi-metadata-value",on:{dblclick:function(o){e.copyToClipboard(t)}}},[e._v(e._s(t))])])}))]),o("div",{directives:[{name:"show",rawName:"v-show",value:e.hasMapInfo,expression:"hasMapInfo"}],attrs:{id:"oi-mapinfo-container"},on:{mouseenter:function(t){e.setInfoShowed({index:0,categories:[],values:[e.mapSelection.value]})},mouseleave:function(t){e.setInfoShowed(null)}}},[o("div",{attrs:{id:"oi-mapinfo-map"}}),o("div",{staticClass:"oi-pixel-indicator",attrs:{id:"oi-pixel-h"}}),o("div",{staticClass:"oi-pixel-indicator",attrs:{id:"oi-pixel-v"}})])]),o("histogram-viewer",{attrs:{dataSummary:e.observationInfo.dataSummary,colormap:e.observationInfo.colormap}})],1)},zo=[];fo._withStripped=!0;var Oo=o("e00b"),Ao=o("5eee"),mo=o("a2c7"),vo={name:"ObservationInfo",components:{HistogramViewer:Oo["a"]},mixins:[Rt["a"]],data:function(){return{scrollBar:void 0,layerShow:!1,infoShowed:{index:-1,categories:[],values:[]},infoMap:null}},computed:a()({},Object(s["c"])("view",["observationInfo","mapSelection","exploreMode","viewer"]),{hasSlider:function(){return this.observationInfo.visible&&null!==this.observationInfo.viewerIdx&&this.viewer(this.observationInfo.viewerIdx).type.component===c["P"].VIEW_MAP.component},hasMapInfo:function(){return this.exploreMode&&null!==this.mapSelection.pixelSelected&&this.mapSelection.layerSelected.get("id").startsWith("cl_".concat(this.observationInfo.id))}}),methods:{copyToClipboard:function(e){Object(He["b"])(e),this.$q.notify({message:this.$t("messages.copiedToClipboard"),type:"info",icon:"mdi-information",timeout:1e3})},getContainerClasses:function(){var e=[];return null!==this.observationInfo.dataSummary&&e.push("k-with-histogram"),e},showNode:function(){this.$emit(c["h"].SHOW_NODE,{nodeId:this.observationInfo.id,state:this.layerShow})},viewerClosedListener:function(e){var t=e.idx;t===this.observationInfo.viewerIdx&&(this.layerShow=!1)},setInfoShowed:function(e){this.$eventBus.$emit(c["h"].SHOW_DATA_INFO,e)}},watch:{mapSelection:function(){var e=this;if(null!==this.mapSelection.layerSelected){var t=this.infoMap.getLayers().getArray();null!==this.mapSelection.pixelSelected?(t.length>1&&this.infoMap.removeLayer(t[1]),this.infoMap.addLayer(this.mapSelection.layerSelected),this.infoMap.getView().setCenter(this.mapSelection.pixelSelected),this.infoMap.getView().setZoom(14),this.$nextTick(function(){e.infoMap.updateSize()}),this.$eventBus.$emit(c["h"].SHOW_DATA_INFO,{index:0,categories:[],values:[this.mapSelection.value]})):t.length>1&&this.infoMap.removeLayer(t[1])}}},mounted:function(){this.scrollBar=new Ae(document.getElementById("oi-scroll-container")),this.infoMap=new Ao["a"]({view:new mo["a"]({center:[0,0],zoom:12}),target:"oi-mapinfo-map",layers:[wt["c"].EMPTY_LAYER],controls:[],interactions:[]}),this.layerShow=this.observationInfo.visible,this.$eventBus.$on(c["h"].VIEWER_CLOSED,this.viewerClosedListener)},beforeDestroy:function(){this.$eventBus.$on(c["h"].VIEWER_CLOSED,this.viewerClosedListener)}},go=vo,yo=(o("db0a"),Object(A["a"])(go,fo,zo,!1,null,null,null));yo.options.__file="ObservationInfo.vue";var qo=yo.exports,_o=K["b"].height,Wo={name:"klabTreeContainer",components:{KlabSplitter:Yt,KlabTree:ho,ObservationInfo:qo},data:function(){return{outContainerHeight:void 0,userTreeMaxHeight:void 0,userTreeHeight:void 0,treeHeight:void 0,detailsOpen:!1}},computed:a()({},Object(s["c"])("data",["tree","userTree","treeNode","hasTree","mainTreeHasNodes","hasContext"]),Object(s["c"])("stomp",["taskOfContextIsAlive"]),Object(s["c"])("view",["hasObservationInfo","isDocked"])),methods:a()({},Object(s["b"])("view",["setObservationInfo"]),{onCloseInfo:function(){this.setObservationInfo(null),this.$eventBus.$emit(c["h"].OBSERVATION_INFO_CLOSED)},informTree:function(e){var t=e.nodeId,o=e.state,n=this.treeNode(t);n&&(this.$refs["kt-tree"]&&this.$refs["kt-tree"].changeNodeState({nodeId:t,state:o}),n.userNode&&this.$refs["kt-user-tree"]&&this.$refs["kt-user-tree"].changeNodeState({nodeId:t,state:o}))},showNodeListener:function(e){this.informTree(e)},outContainerResized:function(){this.isDocked?this.outContainerHeight=_o(document.getElementById("dmc-tree"))+24:this.$refs["kt-out-container"]&&(this.outContainerHeight=Number.parseFloat(window.getComputedStyle(this.$refs["kt-out-container"],null).getPropertyValue("max-height"))),this.recalculateTreeHeight()},recalculateTreeHeight:function(){var e=this;this.$nextTick(function(){e.userTreeMaxHeight=e.mainTreeHasNodes()?e.outContainerHeight/2:e.outContainerHeight;var t=document.getElementById("kt-user-tree");t&&e.outContainerHeight&&(e.userTreeHeight=_o(t),e.treeHeight=e.outContainerHeight-e.userTreeHeight)})},initTree:function(){var e=this;this.hasTree&&this.$nextTick(function(){e.outContainerResized(),document.getElementById("kt-tree-details").addEventListener("toggle",function(t){e.detailsOpen=t.srcElement.open,e.recalculateTreeHeight()})})}}),watch:{userTree:function(){this.recalculateTreeHeight()},tree:function(){this.recalculateTreeHeight()},hasTree:function(){this.initTree()},taskOfContextIsAlive:function(){this.detailsOpen=this.taskOfContextIsAlive}},mounted:function(){this.$eventBus.$on(c["h"].SHOW_NODE,this.showNodeListener),window.addEventListener("resize",this.outContainerResized),this.initTree()},beforeDestroy:function(){this.$eventBus.$off(c["h"].SHOW_NODE,this.showNodeListener),window.removeEventListener("resize",this.outContainerResized)}},Ro=Wo,wo=(o("a663"),Object(A["a"])(Ro,Ft,Ht,!1,null,null,null));wo.options.__file="KlabTreePane.vue";var Lo=wo.exports,Co=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"ot-wrapper",class:{"ot-no-timestamp":0===e.timeEvents.length||-1===e.timestamp}},[o("div",{staticClass:"ot-container",class:{"ot-active-timeline":e.isVisible,"ot-docked":e.isMainControlDocked}},[o("div",{directives:[{name:"show",rawName:"v-show",value:e.isVisible,expression:"isVisible"}],staticClass:"ot-player"},[o("q-icon",{class:{"cursor-pointer":e.timestamp0},on:{click:function(t){if(t.target!==t.currentTarget)return null;e.onClick(t,function(){e.changeTimestamp(e.scaleReference.start)})},dblclick:function(t){e.onDblClick(t,function(){e.changeTimestamp(-1)})}}},[-1===e.timestamp?o("q-icon",{staticClass:"ot-time-origin",class:{"ot-time-origin-loaded":e.timeEvents.length},attrs:{name:"mdi-circle-medium",color:"mc-main"}}):e._e(),0!==e.timeEvents.length?o("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"},domProps:{innerHTML:e._s(e.formatDate(e.scaleReference.start))}}):e._e()],1),o("div",{directives:[{name:"show",rawName:"v-show",value:!e.isVisible,expression:"!isVisible"}],staticClass:"ot-date-text"},[e._v(e._s(e.startDate))])]),o("div",{ref:"ot-timeline-container",staticClass:"ot-timeline-container col",class:{"ot-timeline-with-time":-1!==e.timestamp}},[o("div",{ref:"ot-timeline",staticClass:"ot-timeline",class:{"ot-with-modifications":0!==e.timeEvents.length&&e.isVisible},on:{mousemove:e.moveOnTimeline,mouseenter:function(t){e.timelineActivated=!0},mouseleave:function(t){e.timelineActivated=!1},click:function(t){e.changeTimestamp(e.getDateFromPosition(t))}}},[o("div",{directives:[{name:"show",rawName:"v-show",value:e.isVisible,expression:"isVisible"}],staticClass:"ot-timeline-viewer"}),e._l(e.visibleEvents,function(t){return o("div",{key:t.id+"-"+t.timestamp,staticClass:"ot-modification-container",style:{left:"calc("+e.calculatePosition(t.timestamp)+"px - 1px)"}},[o("div",{staticClass:"ot-modification"})])}),o("div",{staticClass:"ot-loaded-time",style:{width:e.engineTimestamp>0?"calc("+e.calculatePosition(e.engineTimestamp)+"px + 4px)":0}}),-1!==e.timestamp?o("div",{staticClass:"ot-actual-time",style:{left:"calc("+e.calculatePosition(e.visibleTimestamp)+"px + "+(e.timestamp===e.scaleReference.end?"0":"1")+"px)"}}):e._e(),0!==e.timeEvents.length?o("q-tooltip",{staticClass:"ot-date-tooltip",attrs:{offset:[0,15],self:"top middle",anchor:"bottom middle",delay:300},domProps:{innerHTML:e._s(e.timelineDate)}}):e._e()],2)]),o("div",{staticClass:"ot-date-container"},[o("div",{staticClass:"ot-date ot-date-end col",class:{"ot-with-modifications":0!==e.timeEvents.length&&e.isVisible,"ot-date-loaded":e.engineTimestamp===e.scaleReference.end},on:{click:function(t){if(t.target!==t.currentTarget)return null;e.changeTimestamp(e.scaleReference.end)}}},[0!==e.timeEvents.length?o("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"},domProps:{innerHTML:e._s(e.formatDate(e.scaleReference.end))}}):e._e()],1),o("div",{directives:[{name:"show",rawName:"v-show",value:!e.isVisible,expression:"!isVisible"}],staticClass:"ot-date-text"},[e._v(e._s(e.endDate))])])])]),e.isMainControlDocked?o("observation-time"):e._e()],1)},So=[];Co._withStripped=!0;var Eo=o("b8c1"),To=function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.timeEvents.length>0?o("transition",{attrs:{name:"fade"}},[o("div",{staticClass:"otv-now",class:{"otv-novisible":-1===e.timestamp,"otv-docked":e.isMainControlDocked,"otv-running":e.isTimeRunning},domProps:{innerHTML:e._s(e.formattedTimestamp)}})]):e._e()},xo=[];To._withStripped=!0;var No={name:"ObservationTime",data:function(){return{formattedTimestamp:void 0}},computed:a()({},Object(s["c"])("data",["timestamp","timeEvents"]),Object(s["c"])("view",["isMainControlDocked","isTimeRunning"])),methods:{formatTimestamp:function(){if(-1===this.timestamp)this.formattedTimestamp=this.$t("label.noTimeSet");else{var e=mt()(this.timestamp);this.formattedTimestamp="".concat(e.format("L")," ").concat(e.format("HH:mm:ss:SSS"))}}},watch:{timestamp:function(){this.formatTimestamp()}},created:function(){this.formatTimestamp()}},Bo=No,ko=(o("8622"),Object(A["a"])(Bo,To,xo,!1,null,null,null));ko.options.__file="ObservationTime.vue";var Po=ko.exports,Do={name:"ObservationsTimeline",components:{ObservationTime:Po},mixins:[Eo["a"]],data:function(){var e=this;return{timelineActivated:!1,moveOnTimelineFunction:Object(qe["a"])(function(t){e.timelineActivated&&(e.timelineDate=e.formatDate(e.getDateFromPosition(t)))},300),timelineDate:null,timelineContainer:void 0,timelineLeft:void 0,visibleTimestamp:-1,playTimer:null,interval:void 0,speedMultiplier:1,selectSpeed:!1,pressTimer:null,longPress:!1}},computed:a()({},Object(s["c"])("data",["scaleReference","schedulingResolution","timeEvents","timestamp","modificationsTask","hasContext","visibleEvents","engineTimestamp"]),Object(s["c"])("stomp",["tasks"]),Object(s["c"])("view",["isMainControlDocked"]),{startDate:function(){return null!==this.scaleReference?this.formatDate(this.scaleReference.start,!0):""},endDate:function(){return null!==this.scaleReference?this.formatDate(this.scaleReference.end,!0):""},isVisible:function(){return this.visibleEvents.length>0}}),methods:a()({},Object(s["b"])("data",["setTimestamp","setModificationsTask"]),Object(s["b"])("view",["setTimeRunning"]),{formatDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null===e)return"";var n=mt()(e);return t?n.format("DD MMM YYYY"):'
'.concat(n.format("L")).concat(o?" - ":"
").concat(n.format("HH:mm:ss:SSS"),"
")},calculatePosition:function(e){if(this.timelineContainer||(this.timelineContainer=this.$refs["ot-timeline-container"]),!this.timelineContainer)return 0;var t=Math.floor((e-this.scaleReference.start)*this.timelineContainer.clientWidth/(this.scaleReference.end-this.scaleReference.start));return t},moveOnTimeline:function(e){this.moveOnTimelineFunction(e)},getDateFromPosition:function(e){if(this.timelineContainer||(this.timelineContainer=this.$refs["ot-timeline-container"]),!this.timelineContainer)return 0;var t=this.timelineContainer.clientWidth,o=e.clientX-this.timelineContainer.getBoundingClientRect().left,n=this.scaleReference.start+o*(this.scaleReference.end-this.scaleReference.start)/t;return n>this.scaleReference.end?n=this.scaleReference.end:nthis.scaleReference.end?(this.visibleTimestamp=this.scaleReference.end,this.setTimestamp(this.scaleReference.end)):(this.visibleTimestamp=e,this.setTimestamp(e)))},stop:function(){clearInterval(this.playTimer),this.playTimer=null},run:function(){var e=this;if(null!==this.playTimer)this.stop();else{this.interval||this.calculateInterval(),-1===this.timestamp&&this.changeTimestamp(this.scaleReference.start);var t={start:this.timestamp,stop:this.timestamp+this.interval.buffer};this.playTimer=setInterval(function(){e.changeTimestamp(Math.floor(e.timestamp+e.interval.step)),e.$nextTick(function(){e.timestamp>=e.scaleReference.end?e.stop():e.timestamp>t.stop-e.interval.step&&e.timestamp<=e.scaleReference.end&&(t={start:e.timestamp,stop:e.timestamp+e.interval.buffer},e.$eventBus.$emit(c["h"].NEED_LAYER_BUFFER,t))})},this.interval.interval),this.$eventBus.$emit(c["h"].NEED_LAYER_BUFFER,t)}},calculateInterval:function(){if(this.scaleReference&&this.schedulingResolution){var e=1,t=this.calculatePosition(this.scaleReference.start+this.schedulingResolution);t>1&&(e=t);var o=(this.schedulingResolution||c["N"].DEFAULT_STEP)/e,n=(this.scaleReference.end-this.scaleReference.start)/o,i=Math.max(document.body.clientHeight,document.body.clientWidth),r=(this.scaleReference.end-this.scaleReference.start)/4,a=i/e;a*nc["N"].MAX_PLAY_TIME&&(a=c["N"].MAX_PLAY_TIME/n),a/=this.speedMultiplier,this.interval={step:o,steps:n,interval:a,buffer:r,multiplier:this.speedMultiplier},console.info("Step: ".concat(this.interval.step,"; Steps: ").concat(this.interval.steps,"; Interval: ").concat(this.interval.interval,"; Buffer: ").concat(this.interval.buffer))}},startPress:function(){var e=this;this.longPress=!1,this.pressTimer?(clearInterval(this.pressTimer),this.pressTimer=null):this.pressTimer=setTimeout(function(){e.selectSpeed=!0,e.longPress=!0},600)},stopPress:function(){clearInterval(this.pressTimer),this.pressTimer=null,!this.longPress&&this.timestamp0&&this.modificationsTask){var o=e.find(function(e){return e.id===t.modificationsTask.id});o&&!o.alive&&this.setModificationsTask(null)}},visibleEvents:function(){0===this.visibleEvents.length&&null!==this.playTimer&&this.stop()},timestamp:function(e,t){!this.isMainControlDocked||-1!==e&&-1!==t||(this.timelineContainer=void 0)},playTimer:function(){this.setTimeRunning(null!==this.playTimer)}},mounted:function(){this.timelineDate=this.startTime,this.visibleTimestamp=this.timestamp,mt.a.locale(window.navigator.userLanguage||window.navigator.language),this.$eventBus.$on(c["h"].NEW_SCHEDULING,this.calculateInterval)},beforeDestroy:function(){this.$eventBus.$off(c["h"].NEW_SCHEDULING,this.calculateInterval)},destroyed:function(){this.stop()}},Io=Do,Xo=(o("31da"),Object(A["a"])(Io,Co,So,!1,null,null,null));Xo.options.__file="ObservationsTimeline.vue";var jo,Fo=Xo.exports,Ho=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"klab-menu-component kp-container",attrs:{id:"klab-log-pane"}},[o("div",{staticClass:"klp-level-selector"},[o("ul",e._l(e.LOG_ICONS,function(t,n,i){return o("li",{key:i,class:{"klp-selected":e.hasLevel(n)}},[o("q-btn",{staticClass:"klp-chip",attrs:{dense:"",size:"sm",icon:t.icon,color:t.color},on:{click:function(t){e.toggleLevel(n)}}},[o("q-tooltip",{attrs:{delay:600,offset:[0,5]}},[e._v(e._s(e.$t(t.i18nlabel)))])],1)],1)}))]),o("q-list",{staticClass:"no-padding no-border",attrs:{dense:"",dark:"",id:"log-container"}},[0!==e.logs.length?e._l(e.logs,function(t,n){return o("q-item",{key:n,staticClass:"log-item q-pa-xs"},[e.isSeparator(t)?[o("q-item-main",{staticClass:"klp-separator"},[o("span",[e._v(e._s(e.$t("label.contextReset")))])])]:[o("q-item-side",[o("q-item-tile",{staticStyle:{"font-size":"18px"},attrs:{icon:e.logColorAndIcon(t).icon,color:e.logColorAndIcon(t).color}})],1),o("q-item-main",[o("q-item-tile",[e._v(e._s(e.logText(t)))])],1)]],2)}):[o("q-item",{staticClass:"log-item log-no-items q-pa-xs"},[o("q-item-side",[o("q-item-tile",{staticStyle:{"font-size":"18px"},attrs:{icon:0===e.levels.length?"mdi-alert-outline":"mdi-information-outline"}})],1),o("q-item-main",[o("q-item-tile",[e._v(e._s(0===e.levels.length?e.$t("messages.noLevelSelected"):e.$t("messages.noLogItems")))])],1)],1)]],2)],1)},Uo=[];Ho._withStripped=!0;var Vo=(jo={},d()(jo,L["a"].TYPE_ERROR,{i18nlabel:"label.levelError",icon:"mdi-close-circle",color:"negative"}),d()(jo,L["a"].TYPE_WARNING,{i18nlabel:"label.levelWarning",icon:"mdi-alert",color:"warning"}),d()(jo,L["a"].TYPE_INFO,{i18nlabel:"label.levelInfo",icon:"mdi-information",color:"info"}),d()(jo,L["a"].TYPE_DEBUG,{i18nlabel:"label.levelDebug",icon:"mdi-console-line",color:"grey-6"}),d()(jo,L["a"].TYPE_ENGINEEVENT,{i18nlabel:"label.levelEngineEvent",icon:"mdi-cog-outline",color:"secondary"}),jo),Go={name:"KLabLogPane",data:function(){return{scrollBar:null,log:null,LOG_ICONS:Vo}},computed:a()({},Object(s["c"])("view",["klabLogReversedAndFiltered","levels"]),{logs:function(){return 0===this.levels.length?[]:this.klabLogReversedAndFiltered(5===this.levels.length?[]:this.levels)}}),methods:a()({},Object(s["b"])("view",["setLevels","toggleLevel"]),{logText:function(e){if(e&&e.payload){if(e.type===L["a"].TYPE_ENGINEEVENT){var t=e.time;return e.payload.timestamp&&(t=mt()(e.payload.timestamp)),"".concat(t.format("HH:mm:ss"),": ").concat(this.$t("engineEventLabels.evt".concat(e.payload.type))," ").concat(e.payload.started?"started":"stopped")}return"".concat(e.time?e.time.format("HH:mm:ss"):this.$t("messages.noTime"),": ").concat(e.payload)}return this.$t("label.klabNoMessage")},logColorAndIcon:function(e){var t=Vo[e.type];return t?Vo[e.type]:(console.warn("Log type: ".concat(e.type),e),Vo.Error)},isSeparator:function(e){return e&&e.payload&&e.payload.separator},hasLevel:function(e){return-1!==this.levels.indexOf(e)}}),mounted:function(){this.scrollBar=new Ae(document.getElementById("klab-log-pane"))}},Ko=Go,$o=(o("f58f"),Object(A["a"])(Ko,Ho,Uo,!1,null,null,null));$o.options.__file="KlabLogPane.vue";var Yo=$o.exports,Jo=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"sb-scales"},[e.hasNextScale()?o("div",{staticClass:"klab-button klab-action klab-mdi-next-scale"},[o("q-icon",{attrs:{name:"mdi-refresh",color:"mc-yellow"},nativeOn:{click:function(t){return e.rescaleContext(t)}}},[o("q-tooltip",{attrs:{delay:600,anchor:e.anchorType,self:e.selfType,offset:e.offsets}},[e._v(e._s(e.$t("tooltips.refreshScale")))])],1)],1):e._e(),o("div",{staticClass:"klab-button klab-action",class:[{active:e.showSpaceScalePopup}],on:{mouseover:function(t){e.toggleScalePopup("space",!0)},mouseleave:function(t){e.toggleScalePopup("space",!1)},click:function(t){e.scaleEditing={active:!0,type:e.SCALE_TYPE.ST_SPACE}}}},[o("q-icon",{class:{"klab-mdi-next-scale":e.hasNextScale(e.SCALE_TYPE.ST_SPACE)},attrs:{name:"mdi-earth"}},[o("q-popover",{attrs:{"anchor-click":!1,anchor:e.anchorType,self:e.selfType,offset:e.offsets},model:{value:e.showSpaceScalePopup,callback:function(t){e.showSpaceScalePopup=t},expression:"showSpaceScalePopup"}},[o("div",{staticClass:"mc-scalereference",attrs:{id:"mc-spacereference"}},[o("scale-reference",{attrs:{width:e.spaceWidth?e.spaceWidth:e.scaleWidth,"scale-type":"space",light:!0,editable:!1}}),e.hasNextScale(e.SCALE_TYPE.ST_SPACE)?o("scale-reference",{staticClass:"sb-next-scale",attrs:{width:e.spaceWidth?e.spaceWidth:e.scaleWidth,"scale-type":"space","use-next":!0,light:!0,editable:!1}}):e._e(),o("div",{staticClass:"sb-tooltip"},[e._v(e._s(e.$t("tooltips.clickToEdit",{type:e.SCALE_TYPE.ST_SPACE})))])],1)])],1)],1),o("div",{staticClass:"klab-button klab-action",class:[{active:e.showTimeScalePopup}],on:{mouseover:function(t){e.toggleScalePopup("time",!0)},mouseleave:function(t){e.toggleScalePopup("time",!1)},click:function(t){e.scaleEditing={active:!0,type:e.SCALE_TYPE.ST_TIME}}}},[o("q-icon",{class:{"klab-mdi-next-scale":e.hasNextScale(e.SCALE_TYPE.ST_TIME)},attrs:{name:"mdi-clock"}},[o("q-popover",{attrs:{"anchor-click":!1,anchor:e.anchorType,self:e.selfType,offset:e.offsets},model:{value:e.showTimeScalePopup,callback:function(t){e.showTimeScalePopup=t},expression:"showTimeScalePopup"}},[o("div",{staticClass:"mc-scalereference",attrs:{id:"mc-timereference"}},[o("scale-reference",{attrs:{width:e.timeWidth?e.timeWidth:e.scaleWidth,"scale-type":"time",light:!0,editable:!1}}),e.hasNextScale(e.SCALE_TYPE.ST_TIME)?o("scale-reference",{staticClass:"sb-next-scale",attrs:{width:"timeWidth ? timeWidth : scaleWidth","scale-type":"time",light:!0,editable:!1,"use-next":!0}}):e._e(),o("div",{staticClass:"sb-tooltip"},[e._v(e._s(e.$t("tooltips.clickToEdit",{type:e.SCALE_TYPE.ST_TIME})))])],1)])],1)],1)])},Qo=[];Jo._withStripped=!0;var Zo={name:"ScaleButtons",components:{ScaleReference:Wt},props:{docked:{type:Boolean,required:!0},offset:{type:Number,default:8},scaleWidth:{type:String,default:"140px"},timeWidth:{type:String,default:void 0},spaceWidth:{type:String,default:void 0}},data:function(){return{showSpaceScalePopup:!1,showTimeScalePopup:!1,anchorType:this.docked?"center right":"bottom left",selfType:this.docked?"center left":"top left",offsets:this.docked?[this.offset,0]:[0,this.offset],SCALE_TYPE:c["D"]}},computed:a()({},Object(s["c"])("data",["nextScale","hasNextScale","scaleReference","contextId"]),{scaleEditing:{get:function(){return this.$store.getters["view/isScaleEditing"]},set:function(e){var t=e.active,o=e.type;this.$store.dispatch("view/setScaleEditing",{active:t,type:o})}}}),methods:{toggleScalePopup:function(e,t){"space"===e?(this.showSpaceScalePopup=t,this.showTimeScalePopup=!1):"time"===e&&(this.showSpaceScalePopup=!1,this.showTimeScalePopup=t)},rescaleContext:function(){this.hasNextScale()&&this.sendStompMessage(p["a"].SCALE_REFERENCE(a()({scaleReference:this.scaleReference,contextId:this.contextId},this.hasNextScale(c["D"].ST_SPACE)&&{spaceResolution:this.nextScale.spaceResolutionConverted,spaceUnit:this.nextScale.spaceUnit},this.hasNextScale(c["D"].ST_TIME)&&{timeResolutionMultiplier:this.nextScale.timeResolutionMultiplier,timeUnit:this.nextScale.timeUnit,start:this.nextScale.start,end:this.nextScale.end}),this.$store.state.data.session).body)},noTimeScaleChange:function(){this.$q.notify({message:this.$t("messages.availableInFuture"),type:"info",icon:"mdi-information",timeout:1e3})}}},en=Zo,tn=(o("1817"),Object(A["a"])(en,Jo,Qo,!1,null,null,null));tn.options.__file="ScaleButtons.vue";var on=tn.exports,nn=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"kvs-container"},[o("div",{staticClass:"klab-button klab-action",class:{disabled:0===e.knowledgeViews.length}},[o("div",{staticClass:"kvs-button mdi mdi-text-box-multiple float-left"}),e.docked?e._e():o("q-icon",{staticClass:"float-left klab-item",staticStyle:{padding:"3px 0 0 8px"},attrs:{name:"mdi-chevron-down"}},[e.hasNew?o("span",{staticClass:"klab-button-notification"}):e._e()]),o("q-tooltip",{attrs:{offset:[8,0],self:e.selfTooltipType,anchor:e.anchorTooltipType,delay:600}},[e._v(e._s(0===e.knowledgeViews.length?e.$t("tooltips.noKnowledgeViews"):e.$t("tooltips.knowledgeViews")))])],1),o("q-popover",{staticClass:"kvs-popover",attrs:{disable:0===e.knowledgeViews.length,anchor:e.anchorType,self:e.selfType,offset:e.offsets},model:{value:e.kvListOpen,callback:function(t){e.kvListOpen=t},expression:"kvListOpen"}},[o("div",{staticClass:"kvs-popover-container"},[o("q-list",{staticClass:"kvs-list",attrs:{link:"","no-border":"",dense:"",dark:""}},e._l(e.knowledgeViews,function(t){return o("q-item",{key:t.viewId,nativeOn:{click:function(o){e.selectKnowledgeView(t.viewId)}}},[o("q-item-side",{attrs:{icon:e.KNOWLEDGE_VIEWS.find(function(e){return e.viewClass===t.viewClass}).icon}}),o("q-item-main",[o("div",[e._v(e._s(t.label))])]),o("q-tooltip",{ref:"kv-tooltip-"+t.viewId,refInFor:!0,attrs:{offset:[8,0],self:"center left",anchor:"center right"}},[e._v(e._s(t.title))])],1)}))],1)])],1)},rn=[];nn._withStripped=!0;var an={name:"KnoledgeViewsSelector",props:{docked:{type:Boolean,required:!0},offset:{type:Number,default:0}},data:function(){return{anchorTooltipType:this.docked?"bottom left":"center right",selfTooltipType:this.docked?"top left":"center left",offsetTooltip:this.docked?[0,this.offset]:[this.offset,0],anchorType:this.docked?"center right":"bottom left",selfType:this.docked?"center left":"top left",offsets:this.docked?[this.offset,0]:[0,this.offset],kvListOpen:!1,hasNew:!1,KNOWLEDGE_VIEWS:c["v"]}},computed:a()({},Object(s["c"])("data",["knowledgeViews"]),{knowledgeViewsLength:function(){return this.knowledgeViews.length}}),methods:a()({},Object(s["b"])("data",["showKnowledgeView"]),{selectKnowledgeView:function(e){var t=this;this.showKnowledgeView(e),this.$nextTick(function(){t.kvListOpen=!1;var o=t.$refs["kv-tooltip-".concat(e)];o&&o.length>0&&o[0].hide()})}}),watch:{knowledgeViewsLength:function(e,t){e>t&&(this.hasNew=!0)},kvListOpen:function(){this.kvListOpen&&this.hasNew&&(this.hasNew=!1)}}},sn=an,cn=(o("0e44"),Object(A["a"])(sn,nn,rn,!1,null,null,null));cn.options.__file="KnowledgeViewsSelector.vue";var pn=cn.exports,ln=K["b"].width,un=K["b"].height,bn={top:25,left:15},dn={name:"klabMainControl",components:{KlabSpinner:v,KlabSearchBar:Bt,KlabBreadcrumbs:jt,KlabTreePane:Lo,KlabLogPane:Yo,ScrollingText:ft,ScaleButtons:on,MainActionsButtons:Ce,StopActionsButtons:ke,ObservationsTimeline:Fo,KnowledgeViewsSelector:pn},directives:{Draggable:V},mixins:[rt],data:function(){var e=this;return{isHidden:!1,dragMCConfig:{handle:void 0,resetInitialPos:!1,onPositionChange:Object(qe["a"])(function(t,o,n){e.onDebouncedPositionChanged(n)},100),onDragStart:function(){e.dragging=!0},onDragEnd:this.checkWhereWasDragged,fingers:2},correctedPosition:{top:0,left:0},defaultLeft:bn.left,defaultTop:bn.top,centeredLeft:bn.left,dragging:!1,wasMoved:!1,askForDocking:!1,leftMenuMaximized:"".concat(c["w"].LEFTMENU_MAXSIZE,"px"),boundingElement:void 0,selectedTab:"klab-tree-pane",draggableElement:void 0,draggableElementWidth:0,kvListOpen:!1,KNOWLEDGE_VIEWS:c["v"]}},computed:a()({},Object(s["c"])("data",["hasContext","contextHasTime","knowledgeViews"]),Object(s["c"])("stomp",["hasTasks"]),Object(s["c"])("view",["spinnerColor","searchIsFocused","searchIsActive","isDrawMode","fuzzyMode","largeMode","windowSide","layout","hasHeader"]),{qCardStyle:function(){return{top:"".concat(this.defaultTop+this.correctedPosition.top,"px"),left:"".concat(this.centeredLeft+this.correctedPosition.left,"px"),"margin-top":"-".concat(this.correctedPosition.top,"px"),"margin-left":"-".concat(this.correctedPosition.left,"px")}}}),methods:a()({},Object(s["b"])("view",["setMainViewer","setLargeMode","searchStart","searchFocus","setWindowSide","setObservationInfo"]),{callStartType:function(e){this.searchIsFocused?e.evt.stopPropagation():this.$refs["klab-search-bar"].startType(e)},onDebouncedPositionChanged:function(e){this.askForDocking=!!(this.hasContext&&this.dragging&&null===this.layout&&e&&e.x<=30+this.correctedPosition.left)},hide:function(){this.dragMCConfig.resetInitialPos=!1,this.isHidden=!0},show:function(){this.dragMCConfig.resetInitialPos=!1,this.isHidden=!1},getRightLeft:function(){var e=ln(this.boundingElement);return e-this.draggableElement.offsetWidth-bn.left+this.correctedPosition.left},getCenteredLeft:function(){var e;if("undefined"===typeof this.draggableElement||this.hasContext)e=this.defaultLeft;else{var t=this.draggableElementWidth,o=ln(this.boundingElement);e=(o-t)/2}return e+this.correctedPosition.left},changeDraggablePosition:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t&&(e.top+=this.correctedPosition.top,e.left+=this.correctedPosition.left),this.draggableElement.style.left="".concat(e.left,"px"),this.draggableElement.style.top="".concat(e.top,"px");var o=JSON.parse(this.dragMCConfig.handle.getAttribute("draggable-state"));o.startDragPosition=e,o.currentDragPosition=e;var n=document.querySelector(".mc-q-card-title");n?n.setAttribute("draggable-state",JSON.stringify(o)):this.dragMCConfig.handle.setAttribute("draggable-state",JSON.stringify(o))},checkWhereWasDragged:function(){if(this.dragging=!1,this.askForDocking)return this.askForDocking=!1,this.setMainViewer(c["O"].DOCKED_DATA_VIEWER),void this.setObservationInfo(null);this.draggableElement.offsetTop<0&&this.changeDraggablePosition({top:0,left:Math.max(this.draggableElement.offsetLeft,0)}),this.draggableElement.offsetLeft+this.draggableElement.offsetWidth<=0&&this.changeDraggablePosition({top:Math.max(this.draggableElement.offsetTop,0),left:0}),this.draggableElement.offsetLeft>=ln(this.boundingElement)&&this.changeDraggablePosition({top:Math.max(this.draggableElement.offsetTop,0),left:Math.max(ln(this.boundingElement)-this.draggableElement.offsetWidth,0)}),this.draggableElement.offsetTop>=un(this.boundingElement)&&this.changeDraggablePosition({top:Math.max(un(this.boundingElement)-this.draggableElement.offsetHeight,0),left:Math.max(this.draggableElement.offsetLeft,0)})},getBGColor:function(e){return"rgba(".concat(this.spinnerColor.rgb.r,",").concat(this.spinnerColor.rgb.g,",").concat(this.spinnerColor.rgb.b,", ").concat(e,")")},mapSizeChangedListener:function(e){var t=this;if(e&&"changelayout"===e.type)return e.align&&this.setWindowSide(e.align),this.updateCorrectedPosition(),void this.$nextTick(function(){t.changeDraggablePosition({left:t.hasContext?"left"===t.windowSide?t.defaultLeft:t.getRightLeft():t.getCenteredLeft(),top:t.defaultTop},!1)});this.dragMCConfig.initialPosition={left:this.centeredLeft,top:this.defaultTop},this.checkWhereWasDragged()},spinnerDoubleClickListener:function(){this.hide()},updateCorrectedPosition:function(){var e=document.querySelector(".kapp-header-container"),t=document.querySelector(".kapp-left-container aside"),o=e?un(e):0,n=t?ln(t):0;this.correctedPosition={top:o,left:n},this.defaultTop=bn.top+o,this.defaultLeft=bn.left+n,this.centeredLeft=this.getCenteredLeft()},updateDraggable:function(){this.updateCorrectedPosition(),this.draggableElement=document.querySelector(".kexplorer-main-container .mc-q-card"),this.draggableElementWidth=ln(this.draggableElement),this.dragMCConfig.handle=document.querySelector(".kexplorer-main-container .mc-q-card-title"),this.boundingElement=document.querySelector(".kexplorer-container"),this.centeredLeft=this.getCenteredLeft(),this.dragMCConfig.initialPosition={left:this.centeredLeft,top:this.defaultTop}},focusSearch:function(e){this.moved||e&&e.target.classList&&(e.target.classList.contains("mcm-button")||e.target.classList.contains("q-icon")||e.target.classList.contains("q-btn")||e.target.classList.contains("q-btn-inner"))||(this.searchIsActive?this.searchIsFocused||this.searchFocus({focused:!0}):this.searchStart(""))}}),watch:{hasContext:function(){var e=this;this.setLargeMode(0),this.$nextTick(function(){e.changeDraggablePosition({top:e.defaultTop,left:e.hasContext?"left"===e.windowSide?e.defaultLeft:e.getRightLeft():e.getCenteredLeft()},!1)})},largeMode:function(){var e=this;this.hasContext||this.$nextTick(function(){var t=c["g"].SEARCHBAR_INCREMENT*e.largeMode/2;if(t>=0){var o=parseFloat(e.draggableElement.style.left),n=o-e.getCenteredLeft();n%(c["g"].SEARCHBAR_INCREMENT/2)===0&&e.changeDraggablePosition({top:parseFloat(e.draggableElement.style.top),left:e.getCenteredLeft()-t},!1)}})}},created:function(){this.defaultTop=bn.top,this.defaultLeft=bn.left,this.VIEWERS=c["O"]},mounted:function(){this.updateDraggable(),this.$eventBus.$on(c["h"].SPINNER_DOUBLE_CLICK,this.spinnerDoubleClickListener),this.$eventBus.$on(c["h"].MAP_SIZE_CHANGED,this.mapSizeChangedListener)},beforeDestroy:function(){this.$eventBus.$off(c["h"].SPINNER_DOUBLE_CLICK,this.spinnerDoubleClickListener),this.$eventBus.$off(c["h"].MAP_SIZE_CHANGED,this.mapSizeChangedListener)}},Mn=dn,hn=(o("96fa"),Object(A["a"])(Mn,ge,ye,!1,null,null,null));hn.options.__file="KlabMainControl.vue";var fn=hn.exports,zn=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"no-padding relative-position full-width"},e._l(e.dataViewers,function(t){return o("div",{key:t.idx,class:["no-padding",t.main?"absolute-top full-height full-width":"absolute thumb-view"],style:e.viewerStyle(t),attrs:{id:"dv-viewer-"+t.idx}},[t.main?e._e():o("div",{staticClass:"thumb-viewer-title absolute-top"},[o("div",{staticClass:"relative-position"},[o("div",{staticClass:"thumb-viewer-label float-left q-ma-sm",class:[t.type.hideable?"thumb-closable":""]},[e._v("\n "+e._s(e.capitalize(t.label))+"\n ")]),o("div",{staticClass:"float-right q-ma-xs thumb-viewer-button"},[o("q-btn",{staticClass:"shadow-1",attrs:{round:"",color:"mc-main",size:"xs",icon:"mdi-chevron-up"},on:{click:function(o){e.setMain(t.idx)}}}),t.type.hideable?o("q-btn",{staticClass:"shadow-1 thumb-close",attrs:{round:"",color:"black",size:"xs",icon:"mdi-close"},on:{click:function(o){e.closeViewer(t)}}}):e._e()],1)])]),o(t.type.component,{tag:"component",attrs:{idx:t.idx}})],1)}))},On=[];zn._withStripped=!0;var An=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{directives:[{name:"upload-files",rawName:"v-upload-files",value:e.uploadConfig,expression:"uploadConfig"}],staticClass:"fit no-padding map-viewer"},[o("div",{ref:"map"+e.idx,staticClass:"fit",class:{"mv-exploring":e.exploreMode||null!==e.topLayer},attrs:{id:"map"+e.idx}}),o("q-icon",{staticClass:"map-selection-marker",attrs:{name:e.mapSelection.locked?"mdi-image-filter-center-focus":"mdi-crop-free",id:"msm-"+e.idx}}),o("q-resize-observable",{on:{resize:e.handleResize}}),e.isDrawMode?o("map-drawer",{attrs:{map:e.map},on:{drawend:e.sendSpatialLocation}}):e._e(),o("q-modal",{attrs:{"no-esc-dismiss":"","no-backdrop-dismiss":"","content-classes":["gl-msg-content"]},model:{value:e.waitingGeolocation,callback:function(t){e.waitingGeolocation=t},expression:"waitingGeolocation"}},[o("div",{staticClass:"bg-opaque-white"},[o("div",{staticClass:"q-pa-xs"},[o("h5",[e._v(e._s(e.$t("messages.geolocationWaitingTitle")))]),o("p",{domProps:{innerHTML:e._s(e.$t("messages.geolocationWaitingText"))}}),o("p",{directives:[{name:"show",rawName:"v-show",value:null!==e.geolocationIncidence,expression:"geolocationIncidence !== null"}],staticClass:"gl-incidence"},[e._v(e._s(e.geolocationIncidence))]),o("div",{staticClass:"gl-btn-container"},[o("q-btn",{directives:[{name:"show",rawName:"v-show",value:null!==e.geolocationIncidence,expression:"geolocationIncidence !== null"}],attrs:{label:e.$t("label.appRetry"),color:"primary"},on:{click:e.retryGeolocation}}),o("q-btn",{attrs:{label:e.$t("label.appCancel"),color:"mc-main"},on:{click:function(t){e.stopGeolocation(!0)}}})],1)])])]),o("q-modal",{attrs:{"no-route-dismiss":!0,"no-esc-dismiss":!0,"no-backdrop-dismiss":!0},model:{value:e.progressBarVisible,callback:function(t){e.progressBarVisible=t},expression:"progressBarVisible"}},[o("q-progress",{attrs:{percentage:e.uploadProgress,color:"mc-main",stripe:!0,animate:!0,height:"1em"}})],1),o("div",{ref:"mv-popup",staticClass:"ol-popup",attrs:{id:"mv-popup"}},[o("q-btn",{staticClass:"ol-popup-closer",attrs:{icon:"mdi-close",color:"grey-8",size:"xs",flat:"",round:""},on:{click:e.closePopup}}),o("div",{staticClass:"ol-popup-content",attrs:{id:"mv-popup-content"},domProps:{innerHTML:e._s(e.popupContent)}})],1),o("observation-context-menu",{attrs:{"observation-id":e.contextMenuObservationId},on:{hide:function(t){e.contextMenuObservationId=null}}}),o("div",{staticClass:"mv-extent-map",class:{"mv-extent-map-hide":!e.hasExtentMap},attrs:{id:"mv-extent-map"}}),e.hasContext||null===e.proposedContext?e._e():o("q-btn",{staticClass:"mv-remove-proposed-context",style:null!==e.proposedContextCenter?e.proposedContextCenter:{},attrs:{icon:"mdi-close",size:"lg",round:""},nativeOn:{click:function(t){e.sendSpatialLocation(null)}}})],1)},mn=[];An._withStripped=!0;var vn="".concat("").concat(L["c"].REST_UPLOAD),gn="1024MB",yn=gn.substr(gn.length-2),qn="KB"===yn?1:"MB"===yn?2:"GB"===yn?3:"PB"===yn?4:0,_n=parseInt(gn.substring(0,gn.length-2),10)*Math.pow(1024,qn);function Wn(){var e=document.createElement("div");return("draggable"in e||"ondragstart"in e&&"ondrop"in e)&&"FormData"in window&&"FileReader"in window}var Rn=S["a"].directive("upload",{inserted:function(e,t){if(Wn()){var o=t.value&&t.value.onUploadProgress&&"function"===typeof t.value.onUploadProgress?t.value.onUploadProgress:function(){},n=t.value&&t.value.onUploadEnd&&"function"===typeof t.value.onUploadEnd?t.value.onUploadEnd:function(){console.debug("Upload complete")},i=t.value&&t.value.onUploadError&&"function"===typeof t.value.onUploadError?t.value.onUploadError:function(e){console.error(JSON.stringify(e,null,4))};["drag","dragstart","dragend","dragover","dragenter","dragleave","drop"].forEach(function(t){e.addEventListener(t,function(e){e.preventDefault(),e.stopPropagation()},!1)}),e.addEventListener("drop",function(e){var r=e.dataTransfer.files;if(null!==r&&0!==r.length){for(var a=new FormData,s=[],c=0;c_n?i("File is too large, max sixe is ".concat(gn)):(a.append("files[]",r[c]),s.push(r[c].name));"undefined"!==typeof t.value.refId&&null!==t.value.refId&&a.append("refId",t.value.refId||null),w["a"].post(vn,a,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(e){o(parseInt(Math.round(100*e.loaded/e.total),10))}}).then(function(){n(null!==r&&s.length>0?s.join(", "):null)}).catch(function(e){i(e,null!==r&&s.length>0?s.join(", "):null)})}})}}}),wn=o("256f"),Ln=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{directives:[{name:"draggable",rawName:"v-draggable",value:e.dragDCConfig,expression:"dragDCConfig"}],staticClass:"md-draw-controls"},[o("div",{staticClass:"md-title"},[e._v("Draw mode")]),o("div",{staticClass:"md-controls"},[o("q-icon",{staticClass:"md-control md-ok",attrs:{name:"mdi-check-circle-outline"},nativeOn:{click:function(t){e.drawOk()}}}),o("q-icon",{staticClass:"md-control md-erase",class:[e.hasCustomContextFeatures?"":"disabled"],attrs:{name:"mdi-delete-variant"},nativeOn:{click:function(t){e.hasCustomContextFeatures&&e.drawErase()}}}),o("q-icon",{staticClass:"md-control md-cancel",attrs:{name:"mdi-close-circle-outline"},nativeOn:{click:function(t){e.drawCancel()}}})],1),o("div",{directives:[{name:"show",rawName:"v-show",value:e.selectors,expression:"selectors"}],staticClass:"md-selector"},[o("q-btn-toggle",{attrs:{"toggle-color":"mc-main",size:"md",options:[{tabindex:1,icon:"mdi-vector-point",value:"Point",disable:!0},{tabindex:2,icon:"mdi-vector-line",value:"LineString",disable:!0},{tabindex:3,icon:"mdi-vector-polygon",value:"Polygon"},{tabindex:4,icon:"mdi-vector-circle-variant",value:"Circle"}]},model:{value:e.drawType,callback:function(t){e.drawType=t},expression:"drawType"}})],1)])},Cn=[];Ln._withStripped=!0;var Sn=o("a27f"),En=o("3e6b"),Tn=o("5831"),xn=o("6c77"),Nn=o("83a6"),Bn=o("8682"),kn=o("ce2c"),Pn=o("ac29"),Dn=o("c807"),In=o("4cdf"),Xn=o("f822"),jn=o("5bc3"),Fn={name:"MapDrawer",props:{map:{type:Object,required:!0},selectors:{type:Boolean,required:!1,default:!0},fillColor:{type:String,required:!1,default:"rgba(17, 170, 187, 0.3)"},strokeColor:{type:String,required:!1,default:"rgb(17, 170, 187)"},strokeWidth:{type:Number,required:!1,default:2},pointRadius:{type:Number,required:!1,default:5}},data:function(){return{drawerLayer:void 0,drawer:void 0,drawerModify:void 0,dragDCConfig:{resetInitialPos:!0},drawType:"Polygon"}},computed:{hasCustomContextFeatures:function(){return this.drawerLayer&&this.drawerLayer.getSource().getFeatures().length>0}},methods:a()({},Object(s["b"])("view",["setDrawMode"]),{drawOk:function(){var e=this.drawerLayer.getSource().getFeatures().filter(function(e){return null!==e.getGeometry()}),t=e.length,o=[];if(0!==t){for(var n=null,i=0;i0&&e.pop(),this.drawerLayer.getSource().clear(!0),this.drawerLayer.getSource().addFeatures(e)},drawCancel:function(){this.$emit("drawcancel"),this.drawerLayer.getSource().clear(),this.setDrawMode(!1)},setDrawer:function(){var e=this;this.drawer=new Pn["a"]({source:this.drawerLayer.getSource(),type:this.drawType}),this.drawer.on("drawend",function(t){var o=Object(He["j"])(t.feature.getGeometry());Object(He["i"])(o)||(e.$q.notify({message:e.$t("messages.invalidGeometry"),type:"negative",icon:"mdi-alert-circle",timeout:1e3}),t.feature.setGeometry(null))}),this.map.addInteraction(this.drawer)}}),watch:{drawType:function(){this.map.removeInteraction(this.drawer),this.setDrawer()}},directives:{Draggable:Sn["Draggable"]},mounted:function(){var e=new Tn["a"];this.drawerModify=new Dn["a"]({source:e}),this.drawerLayer=new En["a"]({id:"DrawerLayer",source:e,visible:!0,style:new xn["c"]({fill:new Nn["a"]({color:this.fillColor}),stroke:new Bn["a"]({color:this.strokeColor,width:this.strokeWidth}),image:new kn["a"]({radius:this.pointRadius,fill:new Nn["a"]({color:this.strokeColor})})})}),this.dragDCConfig.boundingElement=document.getElementById(this.map.get("target")),this.map.addLayer(this.drawerLayer),this.map.addInteraction(this.drawerModify),this.setDrawer()},beforeDestroy:function(){this.map.removeInteraction(this.drawer),this.map.removeInteraction(this.drawerModify),this.drawerLayer.getSource().clear(!0)}},Hn=Fn,Un=(o("37a9"),Object(A["a"])(Hn,Ln,Cn,!1,null,null,null));Un.options.__file="MapDrawer.vue";var Vn=Un.exports,Gn=o("e300"),Kn=o("9c78"),$n=o("c810"),Yn=o("592d"),Jn=o("e269"),Qn={BOTTOM_LEFT:"bottom-left",BOTTOM_CENTER:"bottom-center",BOTTOM_RIGHT:"bottom-right",CENTER_LEFT:"center-left",CENTER_CENTER:"center-center",CENTER_RIGHT:"center-right",TOP_LEFT:"top-left",TOP_CENTER:"top-center",TOP_RIGHT:"top-right"},Zn=o("cd7e"),ei=o("0999"),ti=o("1e8d"),oi=o("0af5"),ni={ELEMENT:"element",MAP:"map",OFFSET:"offset",POSITION:"position",POSITIONING:"positioning"},ii=function(e){function t(t){e.call(this),this.options=t,this.id=t.id,this.insertFirst=void 0===t.insertFirst||t.insertFirst,this.stopEvent=void 0===t.stopEvent||t.stopEvent,this.element=document.createElement("div"),this.element.className=void 0!==t.className?t.className:"ol-overlay-container "+Zn["d"],this.element.style.position="absolute",this.autoPan=void 0!==t.autoPan&&t.autoPan,this.autoPanAnimation=t.autoPanAnimation||{},this.autoPanMargin=void 0!==t.autoPanMargin?t.autoPanMargin:20,this.rendered={bottom_:"",left_:"",right_:"",top_:"",visible:!0},this.mapPostrenderListenerKey=null,Object(ti["a"])(this,Object(Jn["b"])(ni.ELEMENT),this.handleElementChanged,this),Object(ti["a"])(this,Object(Jn["b"])(ni.MAP),this.handleMapChanged,this),Object(ti["a"])(this,Object(Jn["b"])(ni.OFFSET),this.handleOffsetChanged,this),Object(ti["a"])(this,Object(Jn["b"])(ni.POSITION),this.handlePositionChanged,this),Object(ti["a"])(this,Object(Jn["b"])(ni.POSITIONING),this.handlePositioningChanged,this),void 0!==t.element&&this.setElement(t.element),this.setOffset(void 0!==t.offset?t.offset:[0,0]),this.setPositioning(void 0!==t.positioning?t.positioning:Qn.TOP_LEFT),void 0!==t.position&&this.setPosition(t.position)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getElement=function(){return this.get(ni.ELEMENT)},t.prototype.getId=function(){return this.id},t.prototype.getMap=function(){return this.get(ni.MAP)},t.prototype.getOffset=function(){return this.get(ni.OFFSET)},t.prototype.getPosition=function(){return this.get(ni.POSITION)},t.prototype.getPositioning=function(){return this.get(ni.POSITIONING)},t.prototype.handleElementChanged=function(){Object(ei["d"])(this.element);var e=this.getElement();e&&this.element.appendChild(e)},t.prototype.handleMapChanged=function(){this.mapPostrenderListenerKey&&(Object(ei["e"])(this.element),Object(ti["e"])(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);var e=this.getMap();if(e){this.mapPostrenderListenerKey=Object(ti["a"])(e,Yn["a"].POSTRENDER,this.render,this),this.updatePixelPosition();var t=this.stopEvent?e.getOverlayContainerStopEvent():e.getOverlayContainer();this.insertFirst?t.insertBefore(this.element,t.childNodes[0]||null):t.appendChild(this.element)}},t.prototype.render=function(){this.updatePixelPosition()},t.prototype.handleOffsetChanged=function(){this.updatePixelPosition()},t.prototype.handlePositionChanged=function(){this.updatePixelPosition(),this.get(ni.POSITION)&&this.autoPan&&this.panIntoView()},t.prototype.handlePositioningChanged=function(){this.updatePixelPosition()},t.prototype.setElement=function(e){this.set(ni.ELEMENT,e)},t.prototype.setMap=function(e){this.set(ni.MAP,e)},t.prototype.setOffset=function(e){this.set(ni.OFFSET,e)},t.prototype.setPosition=function(e){this.set(ni.POSITION,e)},t.prototype.panIntoView=function(){var e=this.getMap();if(e&&e.getTargetElement()){var t=this.getRect(e.getTargetElement(),e.getSize()),o=this.getElement(),n=this.getRect(o,[Object(ei["c"])(o),Object(ei["b"])(o)]),i=this.autoPanMargin;if(!Object(oi["g"])(t,n)){var r=n[0]-t[0],a=t[2]-n[2],s=n[1]-t[1],c=t[3]-n[3],p=[0,0];if(r<0?p[0]=r-i:a<0&&(p[0]=Math.abs(a)+i),s<0?p[1]=s-i:c<0&&(p[1]=Math.abs(c)+i),0!==p[0]||0!==p[1]){var l=e.getView().getCenter(),u=e.getPixelFromCoordinate(l),b=[u[0]+p[0],u[1]+p[1]];e.getView().animate({center:e.getCoordinateFromPixel(b),duration:this.autoPanAnimation.duration,easing:this.autoPanAnimation.easing})}}}},t.prototype.getRect=function(e,t){var o=e.getBoundingClientRect(),n=o.left+window.pageXOffset,i=o.top+window.pageYOffset;return[n,i,n+t[0],i+t[1]]},t.prototype.setPositioning=function(e){this.set(ni.POSITIONING,e)},t.prototype.setVisible=function(e){this.rendered.visible!==e&&(this.element.style.display=e?"":"none",this.rendered.visible=e)},t.prototype.updatePixelPosition=function(){var e=this.getMap(),t=this.getPosition();if(e&&e.isRendered()&&t){var o=e.getPixelFromCoordinate(t),n=e.getSize();this.updateRenderedPosition(o,n)}else this.setVisible(!1)},t.prototype.updateRenderedPosition=function(e,t){var o=this.element.style,n=this.getOffset(),i=this.getPositioning();this.setVisible(!0);var r=n[0],a=n[1];if(i==Qn.BOTTOM_RIGHT||i==Qn.CENTER_RIGHT||i==Qn.TOP_RIGHT){""!==this.rendered.left_&&(this.rendered.left_=o.left="");var s=Math.round(t[0]-e[0]-r)+"px";this.rendered.right_!=s&&(this.rendered.right_=o.right=s)}else{""!==this.rendered.right_&&(this.rendered.right_=o.right=""),i!=Qn.BOTTOM_CENTER&&i!=Qn.CENTER_CENTER&&i!=Qn.TOP_CENTER||(r-=this.element.offsetWidth/2);var c=Math.round(e[0]+r)+"px";this.rendered.left_!=c&&(this.rendered.left_=o.left=c)}if(i==Qn.BOTTOM_LEFT||i==Qn.BOTTOM_CENTER||i==Qn.BOTTOM_RIGHT){""!==this.rendered.top_&&(this.rendered.top_=o.top="");var p=Math.round(t[1]-e[1]-a)+"px";this.rendered.bottom_!=p&&(this.rendered.bottom_=o.bottom=p)}else{""!==this.rendered.bottom_&&(this.rendered.bottom_=o.bottom=""),i!=Qn.CENTER_LEFT&&i!=Qn.CENTER_CENTER&&i!=Qn.CENTER_RIGHT||(a-=this.element.offsetHeight/2);var l=Math.round(e[1]+a)+"px";this.rendered.top_!=l&&(this.rendered.top_=o.top=l)}},t.prototype.getOptions=function(){return this.options},t}(Jn["a"]),ri=ii,ai=o("b2da"),si=o.n(ai),ci=o("64d9"),pi=o("f403"),li=o("01d4"),ui=o("3900"),bi="projection",di="coordinateFormat",Mi=function(e){function t(t){var o=t||{},n=document.createElement("div");n.className=void 0!==o.className?o.className:"ol-mouse-position",e.call(this,{element:n,render:o.render||hi,target:o.target}),Object(ti["a"])(this,Object(Jn["b"])(bi),this.handleProjectionChanged_,this),o.coordinateFormat&&this.setCoordinateFormat(o.coordinateFormat),o.projection&&this.setProjection(o.projection),this.undefinedHTML_=void 0!==o.undefinedHTML?o.undefinedHTML:" ",this.renderOnMouseOut_=!!this.undefinedHTML_,this.renderedHTML_=n.innerHTML,this.mapProjection_=null,this.transform_=null,this.lastMouseMovePixel_=null}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.handleProjectionChanged_=function(){this.transform_=null},t.prototype.getCoordinateFormat=function(){return this.get(di)},t.prototype.getProjection=function(){return this.get(bi)},t.prototype.handleMouseMove=function(e){var t=this.getMap();this.lastMouseMovePixel_=t.getEventPixel(e),this.updateHTML_(this.lastMouseMovePixel_)},t.prototype.handleMouseOut=function(e){this.updateHTML_(null),this.lastMouseMovePixel_=null},t.prototype.setMap=function(t){if(e.prototype.setMap.call(this,t),t){var o=t.getViewport();this.listenerKeys.push(Object(ti["a"])(o,li["a"].MOUSEMOVE,this.handleMouseMove,this),Object(ti["a"])(o,li["a"].TOUCHSTART,this.handleMouseMove,this)),this.renderOnMouseOut_&&this.listenerKeys.push(Object(ti["a"])(o,li["a"].MOUSEOUT,this.handleMouseOut,this),Object(ti["a"])(o,li["a"].TOUCHEND,this.handleMouseOut,this))}},t.prototype.setCoordinateFormat=function(e){this.set(di,e)},t.prototype.setProjection=function(e){this.set(bi,Object(wn["g"])(e))},t.prototype.updateHTML_=function(e){var t=this.undefinedHTML_;if(e&&this.mapProjection_){if(!this.transform_){var o=this.getProjection();this.transform_=o?Object(wn["j"])(this.mapProjection_,o):wn["k"]}var n=this.getMap(),i=n.getCoordinateFromPixel(e);if(i){this.transform_(i,i);var r=this.getCoordinateFormat();t=r?r(i):i.toString()}}this.renderedHTML_&&t===this.renderedHTML_||(this.element.innerHTML=t,this.renderedHTML_=t)},t}(ui["default"]);function hi(e){var t=e.frameState;t?this.mapProjection_!=t.viewState.projection&&(this.mapProjection_=t.viewState.projection,this.transform_=null):this.mapProjection_=null}var fi=Mi,zi=o("a568"),Oi=(o("c58e"),{name:"MapViewer",components:{MapDrawer:Vn,ObservationContextMenu:po},props:{idx:{type:Number,required:!0}},directives:{UploadFiles:Rn},data:function(){var e=this;return{center:this.$mapDefaults.center,zoom:this.$mapDefaults.zoom,map:null,extentMap:null,hasExtentMap:!1,view:null,movedWithContext:!1,noNewRegion:!1,layers:new Gn["a"],zIndexCounter:0,baseLayers:null,layerSwitcher:null,visibleBaseLayer:null,mapSelectionMarker:void 0,wktInstance:new ci["a"],geolocationId:null,geolocationIncidence:null,popupContent:"",popupOverlay:void 0,contextLayer:null,proposedContextLayer:null,proposedContextCenter:null,uploadConfig:{refId:null,onUploadProgress:function(t){e.uploadProgress=t},onUploadEnd:function(t){e.$q.notify({message:e.$t("messages.uploadComplete",{fileName:t}),type:"info",icon:"mdi-information",timeout:1e3}),e.uploadProgress=null},onUploadError:function(t,o){e.$q.notify({message:"".concat(e.$t("errors.uploadError",{fileName:o}),"\n").concat(t.response.data.message),type:"negative",icon:"mdi-alert-circle",timeout:1e3}),e.uploadProgress=null}},uploadProgress:null,storedZoom:null,clicksOnMap:0,bufferingLayers:!1,lastModificationLoaded:null,previousTopLayer:null,lockedObservations:[],contextMenuObservationId:null,coordinatesControl:void 0}},computed:a()({observations:function(){return this.$store.getters["data/observationsOfViewer"](this.idx)},lockedObservationsIds:function(){return this.lockedObservations.map(function(e){return e.id})}},Object(s["c"])("data",["proposedContext","hasContext","contextId","contextLabel","session","timestamp","scaleReference","timeEvents","timeEventsOfObservation"]),Object(s["c"])("view",["contextGeometry","observationInfo","exploreMode","mapSelection","isDrawMode","topLayer","mainViewer","viewCoordinates"]),Object(s["d"])("view",["saveLocation"]),{hasCustomContextFeatures:function(){return this.drawerLayer&&this.drawerLayer.getSource().getFeatures().length>0},progressBarVisible:function(){return null!==this.uploadProgress},waitingGeolocation:{get:function(){return this.$store.state.view.waitingGeolocation},set:function(e){this.$store.state.view.waitingGeolocation=e}}}),methods:a()({},Object(s["b"])("data",["setCrossingIDL","putObservationOnTop"]),Object(s["b"])("view",["addToKexplorerLog","setSpinner","setMapSelection","setDrawMode","setTopLayer","setShowSettings"]),{handleResize:function(){null!==this.map&&(this.map.updateSize(),this.$eventBus.$emit(c["h"].MAP_SIZE_CHANGED))},onMoveEnd:function(){this.hasContext?this.movedWithContext=!0:this.isDrawMode||this.noNewRegion?this.noNewRegion=!1:this.sendRegionOfInterest()},sendRegionOfInterest:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.waitingGeolocation){var e=null,t=Object(wn["l"])(this.view.getCenter(),wt["d"].PROJ_EPSG_3857,wt["d"].PROJ_EPSG_4326);Math.abs(t[0])>180&&(t[0]%=180,this.view.animate({center:Object(wn["l"])(t,wt["d"].PROJ_EPSG_4326,wt["d"].PROJ_EPSG_3857),duration:500}));try{var o=Object(wn["m"])(this.map.getView().calculateExtent(this.map.getSize()),"EPSG:3857","EPSG:4326");if(o[0]<-180||o[1]<-90||o[2]>180||o[3]>90)return void this.setCrossingIDL(!0);this.setCrossingIDL(!1),e=p["a"].REGION_OF_INTEREST(o,this.session)}catch(e){console.error(e),this.addToKexplorerLog({type:c["y"].TYPE_ERROR,payload:{message:e.message,attach:e}})}e&&e.body&&(this.sendStompMessage(e.body),this.saveLocation&&G["a"].set(c["R"].COOKIE_MAPDEFAULT,{center:this.view.getCenter(),zoom:this.view.getZoom()},{expires:30,path:"/",secure:!0}))}},findExistingLayerById:function(e){if(this.layers&&null!==this.layers){var t=this.layers.getArray();return t.filter(function(t){return null===t.get("id")?null===e:t.get("id").startsWith(e)})}return[]},findModificationTimestamp:function(e,t){if(-1!==t){var o=null===e?this.timeEvents:this.timeEventsOfObservation(e);return o.length>0?o.reduce(function(e,o){var n=t-o.timestamp;return n<=0?e:-1===e||n0)){e.next=7;break}if(c="".concat(o.id,"T").concat(i),p=s.find(function(e){return e.get("id")===c}),!p){e.next=7;break}return e.abrupt("return",{founds:s,layer:p});case 7:return e.prev=7,console.debug("Creating layer: ".concat(o.label," with timestamp ").concat(i)),e.next=11,Object(Ue["k"])(o,{projection:this.proj,timestamp:i,realTimestamp:a?i:this.timestamp});case 11:return l=e.sent,s&&s.length>0?l.setZIndex(o.zIndex):(this.zIndexCounter+=2,o.zIndex=this.zIndexCounter+o.zIndexOffset,l.setZIndex(o.zIndex)),this.layers.push(l),s.push(l),e.abrupt("return",{founds:s,layer:l});case 18:return e.prev=18,e.t0=e["catch"](7),console.error(e.t0.message),this.$q.notify({message:e.t0.message,type:"negative",icon:"mdi-alert-circle",timeout:3e3}),e.abrupt("return",null);case 23:case"end":return e.stop()}},e,this,[[7,18]])}));return function(t){return e.apply(this,arguments)}}(),bufferLayerImages:function(e){var t=this;e.stop>=this.scaleReference.end&&(e.stop=this.scaleReference.end-1),console.debug("Ask preload from ".concat(e.start," to ").concat(e.stop));var o=this.timeEvents.filter(function(t){return t.timestamp>e.start&&t.timestamp<=e.stop}),n=o.length;if(n>0){var i=function e(i){var r=t.observations.find(function(e){return e.id===o[i].id});r&&t.findLayerById({observation:r,timestamp:o[i].timestamp,isBuffer:!0}).then(function(t){var o=t.layer,r=o.getSource().image_;r&&0===r.state?(r.load(),o.getSource().on("imageloadend",function(t){t.image;++i125&&(this.hasExtentMap=!0,this.$nextTick(function(){e.extentMap.addLayer(e.proposedContextLayer),e.extentMap.getView().fit(e.proposedContext,{padding:[10,10,10,10],constrainResolution:!1})}))}},drawContext:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null!==t&&(this.layers.clear(),this.lockedObservations=[],this.previousTopLayer=null,null!==this.contextLayer?(this.map.removeLayer(this.contextLayer),this.contextLayer=null):this.baseLayers.removeMask()),null===this.contextGeometry)return console.debug("No context, send region of interest"),void this.sendRegionOfInterest();this.contextGeometry instanceof Array?(this.contextLayer=new En["a"]({id:this.contextId,source:new Tn["a"]({features:[new In["a"]({geometry:new pi["a"](this.contextGeometry),name:this.contextLabel,id:this.contextId})]}),style:Object(He["d"])(wt["e"].POINT_CONTEXT_SVG_PARAM,this.contextLabel)}),this.map.addLayer(this.contextLayer),this.view.setCenter(this.contextGeometry)):(this.baseLayers.setMask(this.contextGeometry),this.view.fit(this.contextGeometry,{padding:[10,10,10,10],constrainResolution:!1}))},drawObservations:function(){var e=j()(regeneratorRuntime.mark(function e(){var t,o,n=this;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:this.observations&&this.observations.length>0&&(this.lockedObservations=this.lockedObservations.filter(function(e){return e.visible}),t=this.observations.find(function(e){return e.top&&Object(Ue["n"])(e)}),t&&(this.previousTopLayer&&this.previousTopLayer.visible?t.id!==this.previousTopLayer.id&&(this.lockedObservations=this.lockedObservations.filter(function(e){return e.id!==t.id}),this.lockedObservations.push(this.previousTopLayer),this.previousTopLayer=t):this.previousTopLayer=t),o="undefined"!==typeof this.observations.find(function(e){return e.visible&&e.loading}),this.observations.forEach(function(e){if(!e.isContainer){var t=n.findModificationTimestamp(e.id,n.timestamp);n.findLayerById({observation:e,timestamp:t}).then(function(i){if(null!==i){var r=i.founds,a=i.layer;a.setOpacity(e.layerOpacity),a.setVisible(e.visible);var s=e.zIndex;if(e.top?s=e.zIndexOffset+wt["d"].ZINDEX_TOP:n.lockedObservationsIds.length>0&&n.lockedObservationsIds.includes(e.id)&&(s=Math.max(a.get("zIndex")-10,1)),o||(a.setZIndex(s),e.visible&&e.top&&Object(Ue["n"])(e)&&(null===n.topLayer||n.topLayer.id!=="".concat(e.id,"T").concat(t))?n.setTopLayer({id:"".concat(e.id,"T").concat(t),desc:e.label}):e.visible&&e.top||null===n.topLayer||n.topLayer.id!=="".concat(e.id,"T").concat(t)||n.setTopLayer(null)),r.length>0)if(e.visible){if(-1===t||-1!==e.tsImages.indexOf("T".concat(t))){var c=[];r.forEach(function(o,n){o.get("id")==="".concat(e.id,"T").concat(t)?o.setVisible(!0):o.getVisible()&&c.push(n)}),c.length>0&&c.forEach(function(e){n.$nextTick(function(){r[e].setVisible(!1)})})}}else r.forEach(function(e){e.setVisible(!1)});else console.debug("No multiple layer for observation ".concat(e.id,", refreshing")),a.setVisible(e.visible)}})}}),null===this.topLayer&&this.closePopup());case 1:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),sendSpatialLocation:function(e){if(e){var t=this.wktInstance.writeFeaturesText(e,{dataProjection:"EPSG:4326",featureProjection:"EPSG:3857"});this.sendStompMessage(p["a"].SPATIAL_LOCATION({wktShape:t},this.session).body),this.setCrossingIDL(!1)}else this.sendStompMessage(p["a"].SPATIAL_LOCATION({wktShape:""},this.session).body)},doGeolocation:function(){var e=this;null!==this.geolocationId&&navigator.geolocation.clearWatch(this.geolocationId),this.geolocationId=navigator.geolocation.watchPosition(function(t){e.center=Object(wn["l"])([t.coords.longitude,t.coords.latitude],wt["d"].PROJ_EPSG_4326,wt["d"].PROJ_EPSG_3857),e.stopGeolocation()},function(t){switch(t.code){case t.PERMISSION_DENIED:e.geolocationIncidence=e.$t("messages.geolocationErrorPermissionDenied");break;case t.POSITION_UNAVAILABLE:e.geolocationIncidence=e.$t("messages.geolocationErrorPermissionDenied");break;case t.TIMEOUT:e.geolocationIncidence=e.$t("messages.geolocationErrorPermissionDenied");break;default:e.geolocationIncidence=e.$t("messages.geolocationErrorPermissionDenied");break}},{enableHighAccuracy:!0,maximumAge:3e4,timeout:6e4})},retryGeolocation:function(){this.geolocationIncidence=null,this.doGeolocation()},stopGeolocation:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];navigator.geolocation.clearWatch(this.geolocationId),this.$nextTick(function(){e.waitingGeolocation=!1,t&&e.sendRegionOfInterest()})},closePopup:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];!e&&this.mapSelection.locked||(this.setMapSelection(c["g"].EMPTY_MAP_SELECTION),this.popupOverlay.setPosition(void 0))},setMapInfoPoint:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.event,o=void 0===t?null:t,n=e.locked,i=void 0!==n&&n,r=e.layer,s=void 0===r?null:r;if(this.exploreMode||null!==this.topLayer){var p,l;if(null!==o?(p=o.coordinate,i&&(o.preventDefault(),o.stopPropagation())):(i=this.mapSelection.locked,p=this.mapSelection.pixelSelected),null===s){l=this.exploreMode?"".concat(this.observationInfo.id,"T").concat(this.findModificationTimestamp(this.observationInfo.id,this.timestamp)):this.topLayer.id;var u=this.findExistingLayerById(l),b=Fe()(u,1);s=b[0]}else l=s.get("id");var d=new $n["a"]({id:"cl_".concat(l),source:s.getSource()});this.setMapSelection(a()({pixelSelected:p,timestamp:this.timestamp,layerSelected:d},!this.exploreMode&&{observationId:this.getObservationIdFromLayerId(l)},{locked:i}))}else this.$eventBus.$emit(c["h"].VIEWER_CLICK,o)},needFitMapListener:function(e){var t=this,o=e.mainIdx,n=void 0===o?null:o,i=e.geometry,r=void 0===i?null:i,a=e.withPadding,s=void 0===a||a;null===r&&this.mainViewer.name===c["O"].DATA_VIEWER.name&&this.contextGeometry&&null!==this.contextGeometry&&(r=this.contextGeometry),null!==r?(null!==n&&this.idx===n||(this.storedZoom=this.view.getZoom()),setTimeout(function(){r instanceof Array&&2===r.length?t.view.setCenter(r):t.view.fit(r,{padding:s?[10,10,10,10]:[0,0,0,0],constrainResolution:!1,callback:function(){t.movedWithContext=!1}})},200)):null!==this.storedZoom&&(this.view.setZoom(this.storedZoom),this.storedZoom=null)},observationInfoClosedListener:function(){this.mapSelection.locked||this.closePopup()},sendRegionOfInterestListener:function(){this.sendRegionOfInterest()},findTopLayerFromClick:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=[],n=[];return this.map.forEachLayerAtPixel(e.pixel,function(e){n[e.getType()]&&n[e.getType()]>e.get("zIndex")||(n[e.getType()]=e.get("zIndex"),o.push({layer:e,type:e.getType()}))},{layerFilter:function(e){return"TILE"!==e.getType()&&(!t||"VECTOR"!==e.getType())}}),o},getObservationIdFromLayerId:function(e){return e&&""!==e?e.substr(0,e.indexOf("T")):e},copyCoordinates:function(e){var t=this.coordinatesControl.element.innerText,o=document.createElement("textarea");o.value=t,o.style.top="0",o.style.left="0",o.style.position="fixed",document.body.appendChild(o),o.focus(),o.select();try{document.execCommand("copy");this.$q.notify({message:this.$t("messages.copiedToClipboard"),type:"info",icon:"mdi-information",timeout:1e3})}catch(e){console.error("Oops, unable to copy",e)}document.body.removeChild(o)},setCoordinatesControl:function(){var e=document.querySelector(".ol-mouse-position");this.viewCoordinates?this.map.addControl(this.coordinatesControl):e&&this.map.removeControl(this.coordinatesControl),G["a"].set(c["R"].COOKIE_VIEW_COORDINATES,this.viewCoordinates,{expires:365,path:"/",secure:!0})}}),watch:{contextGeometry:function(e,t){this.drawContext(e,t),null!==e||this.movedWithContext||this.needFitMapListener({geometry:t,withPadding:!1}),this.movedWithContext=!1},observations:{handler:function(){var e=this;this.$nextTick(function(){return e.drawObservations()})},deep:!0},timestamp:function(e){var t=this.findModificationTimestamp(null,e);t!==this.lastModificationLoaded&&(this.lastModificationLoaded=t,this.drawObservations())},center:function(){this.view.setCenter(this.center)},mapSelection:function(e){if("undefined"!==typeof e&&null!==e&&null!==e.pixelSelected){if(this.mapSelectionMarker.setPosition(e.pixelSelected),null!==this.topLayer){var t=Object(wn["l"])(e.pixelSelected,"EPSG:3857","EPSG:4326");this.popupContent="

".concat(this.topLayer.desc,'

\n
\n

').concat(e.value,'

\n
\n

').concat(t[1].toFixed(6),", ").concat(t[0].toFixed(6),"

"),this.popupOverlay.setPosition(e.pixelSelected)}}else this.closePopup(),this.mapSelectionMarker.setPosition(void 0)},hasContext:function(e){this.uploadConfig.refId=this.contextId,e?this.setDrawMode(!1):(this.sendRegionOfInterest(),this.popupOverlay.setPosition(void 0))},proposedContext:function(e){var t=this;this.drawProposedContext(),this.$nextTick(function(){t.setSpinner(a()({},c["J"].SPINNER_STOPPED,{owner:"KlabSearch"}))})},topLayer:function(e){null!==e&&this.mapSelection.locked?this.setMapInfoPoint():this.closePopup()},hasExtentMap:function(){var e=this;this.hasExtentMap&&this.$nextTick(function(){e.extentMap.updateSize()}),this.setShowSettings(!this.hasExtentMap)},viewCoordinates:function(){this.setCoordinatesControl()}},created:function(){this.waitingGeolocation="geolocation"in navigator&&!G["a"].has(c["R"].COOKIE_MAPDEFAULT)},mounted:function(){var e=this;this.baseLayers=wt["a"],this.baseLayers.layers.forEach(function(t){t.get("name")===e.$baseLayer&&(t.setVisible(!0),e.visibleBaseLayer=t);var o=t;o.on("propertychange",function(t){e.visibleBaseLayer=o,"propertychange"===t.type&&"visible"===t.key&&t.target.get(t.key)&&G["a"].set(c["R"].COOKIE_BASELAYER,o.get("name"),{expires:30,path:"/",secure:!0})})});var t=wt["c"].MAPBOX_GOT;t.setVisible(!0);var o=new Kn["default"]({title:"BaseLayers",layers:this.baseLayers.layers});this.map=new Ao["a"]({view:new mo["a"]({center:this.center,zoom:this.zoom}),layers:o,target:"map".concat(this.idx),loadTilesWhileAnimating:!0,loadTilesWhileInteracting:!0}),this.map.on("moveend",this.onMoveEnd),this.map.on("click",function(n){if(e.viewCoordinates&&n.originalEvent.ctrlKey&&!n.originalEvent.altKey)e.copyCoordinates(n);else{if(e.isDrawMode)return n.preventDefault(),void n.stopPropagation();if(n.originalEvent.ctrlKey&&n.originalEvent.altKey&&n.originalEvent.shiftKey){var i=o.getLayersArray().slice(-1)[0];i&&"mapbox_got"===i.get("name")?(o.getLayers().pop(),e.baseLayers.layers.forEach(function(t){t.get("name")===e.$baseLayer&&(t.setVisible(!0),e.visibleBaseLayer=t)})):(o.getLayers().push(t),e.$q.notify({message:e.$t("messages.youHaveGOT"),type:"info",icon:"mdi-information",timeout:1500}))}e.clicksOnMap+=1,setTimeout(j()(regeneratorRuntime.mark(function t(){var o;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:1===e.clicksOnMap&&(o=e.findTopLayerFromClick(n,!1),o.length>0&&o.forEach(function(t){var i=t.layer.get("id");"VECTOR"===t.type?(e.putObservationOnTop(e.getObservationIdFromLayerId(i)),1===o.length&&e.closePopup()):e.topLayer&&i===e.topLayer.id?e.setMapInfoPoint({event:n}):(e.putObservationOnTop(e.getObservationIdFromLayerId(i)),e.setMapInfoPoint({event:n,layer:t.layer}))}),e.clicksOnMap=0);case 1:case"end":return t.stop()}},t)})),300)}}),this.map.on("dblclick",function(t){if(e.isDrawMode)return t.preventDefault(),void t.stopPropagation();var o=e.findTopLayerFromClick(t);if(1===o.length){var n=o[0].layer.get("id");e.topLayer&&n===e.topLayer.id?e.setMapInfoPoint({event:t,locked:!0}):(e.putObservationOnTop(e.getObservationIdFromLayerId(n)),e.setMapInfoPoint({event:t,locked:!0,layer:o[0].layer})),e.clicksOnMap=0}else console.warn("Multiple layer but must be one")}),this.map.on("contextmenu",function(t){var o=e.findTopLayerFromClick(t,!1);o.length>0&&(e.contextMenuObservationId=e.getObservationIdFromLayerId(o[0].layer.get("id")),t.preventDefault())}),this.view=this.map.getView(),this.proj=this.view.getProjection(),this.map.addLayer(new Kn["default"]({layers:this.layers})),this.layerSwitcher=new si.a,this.map.addControl(this.layerSwitcher),this.mapSelectionMarker=new ri({element:document.getElementById("msm-".concat(this.idx)),positioning:"center-center"}),this.map.addOverlay(this.mapSelectionMarker),this.popupOverlay=new ri({element:document.getElementById("mv-popup"),autoPan:!0,autoPanAnimation:{duration:250}}),this.map.addOverlay(this.popupOverlay),this.extentMap=new Ao["a"]({view:new mo["a"]({center:[0,0],zoom:12}),target:"mv-extent-map",layers:[wt["c"].OSM_LAYER],controls:[]}),this.coordinatesControl=new fi({coordinateFormat:Object(zi["c"])(6),projection:wt["d"].PROJ_EPSG_4326,undefinedHTML:"..."}),this.setCoordinatesControl(),this.drawContext(),this.drawObservations(),this.drawProposedContext(),this.waitingGeolocation&&this.doGeolocation(),this.setShowSettings(!this.hasExtentMap),this.$eventBus.$on(c["h"].NEED_FIT_MAP,this.needFitMapListener),this.$eventBus.$on(c["h"].OBSERVATION_INFO_CLOSED,this.observationInfoClosedListener),this.$eventBus.$on(c["h"].SEND_REGION_OF_INTEREST,this.sendRegionOfInterestListener),this.$eventBus.$on(c["h"].NEED_LAYER_BUFFER,this.bufferLayerImages)},beforeDestroy:function(){this.$eventBus.$off(c["h"].NEED_FIT_MAP,this.needFitMapListener),this.$eventBus.$off(c["h"].OBSERVATION_INFO_CLOSED,this.observationInfoClosedListener),this.$eventBus.$off(c["h"].SEND_REGION_OF_INTEREST,this.sendRegionOfInterestListener),this.$eventBus.$off(c["h"].NEED_LAYER_BUFFER,this.bufferLayerImages)}}),Ai=Oi,mi=(o("c612"),Object(A["a"])(Ai,An,mn,!1,null,null,null));mi.options.__file="MapViewer.vue";var vi=mi.exports,gi=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"fit gv-container",on:{wheel:e.changeForce}},[0===e.nodes.length?o("q-spinner",{attrs:{color:"mc-main",size:40}}):e._e(),o("q-resize-observable",{on:{resize:e.resize}}),o("d3-network",{ref:"gv-graph-"+e.idx,attrs:{"net-nodes":e.nodes,"net-links":e.links,options:e.options}})],1)},yi=[];gi._withStripped=!0;var qi=o("a5b7"),_i=o.n(qi),Wi={name:"GraphViewer",components:{D3Network:_i.a},props:{idx:{type:Number,required:!0}},data:function(){var e=Object.assign({},c["S"]);return e},computed:{observation:function(){var e=this.$store.getters["data/observationsOfViewer"](this.idx);return e.length>0?e[0]:null}},methods:{loadGraph:function(){var e=this,t="".concat("").concat(L["c"].REST_SESSION_VIEW,"data/").concat(this.observation.id);Object(Ue["h"])("gr_".concat(this.observation.id),t,{params:{format:"NETWORK",outputFormat:"json"}},function(t,o){if(t&&"undefined"!==typeof t.data){var n=t.data,i=n.nodes,r=n.edges;e.nodes=i.map(function(e){return{id:e.id,name:e.label,nodeSym:"~assets/klab-spinner.svg"}}),e.links=r.map(function(e){return{id:e.id,name:e.label,sid:e.source,tid:e.target}}),e.resize()}o()})},resize:function(){var e={w:this.$el.clientWidth,h:this.$el.clientHeight};this.updateOptions("size",e)},changeForce:function(e){if(e.preventDefault(),e&&e.deltaY){var t=this.options.force;if(e.deltaY<0&&t<5e3)t+=50;else{if(!(e.deltaY>0&&t>50))return;t-=50}this.updateOptions("force",t)}},updateOptions:function(e,t){this.options=a()({},this.options,d()({},e,t))},reset:function(){this.selected={},this.linksSelected={},this.nodes=[],this.links=[],this.$set(this.$data,"options",c["S"].options)},viewerClosedListener:function(e){var t=e.idx;t===this.idx&&this.$eventBus.$emit(c["h"].SHOW_NODE,{nodeId:this.observation.id,state:!1})}},watch:{observation:function(e){null!==e&&0===this.nodes.length?this.loadGraph():null===e&&this.reset()}},mounted:function(){this.options.size.w=this.$el.clientWidth,this.options.size.h=this.$el.clientHeight,this.$eventBus.$on(c["h"].VIEWER_CLOSED,this.viewerClosedListener)},beforeDestroy:function(){this.$eventBus.$off(c["h"].VIEWER_CLOSED,this.viewerClosedListener)}},Ri=Wi,wi=(o("6420"),o("9198"),Object(A["a"])(Ri,gi,yi,!1,null,null,null));wi.options.__file="GraphViewer.vue";var Li=wi.exports,Ci=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},Si=[function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"fit uv-container"},[o("h4",[e._v("Under construction")])])}];Ci._withStripped=!0;var Ei={name:"UnknownViewer",props:{idx:{type:Number,required:!0}}},Ti=Ei,xi=(o("1fac"),Object(A["a"])(Ti,Ci,Si,!1,null,null,null));xi.options.__file="UnknownViewer.vue";var Ni=xi.exports,Bi=[],ki={components:{MapViewer:vi,GraphViewer:Li,UnknownViewer:Ni},computed:a()({},Object(s["c"])("view",["dataViewers","mainDataViewerIdx","dataViewers"])),methods:a()({},Object(s["b"])("view",["setMainDataViewer"]),{setMain:function(e){this.setMainDataViewer({viewerIdx:e}),this.$eventBus.$emit(c["h"].VIEWER_SELECTED,{idx:e})},closeViewer:function(e){this.setMainDataViewer({viewerIdx:e.idx,viewerType:e.type,visible:!1}),this.$eventBus.$emit(c["h"].VIEWER_CLOSED,{idx:e.idx})},viewerStyle:function(e){return e.main?"":e.type.hideable&&!e.visible?"display: none":(Bi.push(e),0===Bi.length?"left: 0":"left: ".concat(200*(Bi.length-1)+10*(Bi.length-1),"px"))},capitalize:function(e){return Object(He["a"])(e)}}),watch:{mainDataViewerIdx:function(){Bi=[]},dataViewers:{handler:function(e){var t=this,o=e.length>0?e.find(function(e){return e.main}):null;this.$nextTick(function(){t.$eventBus.$emit(c["h"].NEED_FIT_MAP,a()({},null!==o&&"undefined"!==typeof o&&{idx:o.idx}))})},deep:!0}},beforeUpdate:function(){Bi=[]},mounted:function(){Bi=[]}},Pi=ki,Di=(o("f164"),Object(A["a"])(Pi,zn,On,!1,null,"216658d8",null));Di.options.__file="DataViewer.vue";var Ii=Di.exports,Xi=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("q-layout",{staticClass:"kd-main-container print-hide",style:{width:e.containerStyle.width+"px",height:e.containerStyle.height+"px"},attrs:{view:"hHh Lpr fFf",container:""}},[o("q-layout-header",[o("documentation-header")],1),o("q-layout-drawer",{attrs:{side:"left",breakpoint:0,"content-class":["klab-left","no-scroll"],width:e.LEFTMENU_CONSTANTS.LEFTMENU_DOCUMENTATION_SIZE,overlay:!1},model:{value:e.leftMenu,callback:function(t){e.leftMenu=t},expression:"leftMenu"}},[o("documentation-tree")],1),o("q-page-container",[o("q-page",{staticClass:"column"},[o("div",{staticClass:"col row full-height kd-container"},[o("documentation-viewer")],1)])],1),o("q-modal",{staticClass:"kd-modal",attrs:{"no-backdrop-dismiss":"","no-esc-dismiss":""},on:{show:e.launchPrint},model:{value:e.print,callback:function(t){e.print=t},expression:"print"}},[o("documentation-viewer",{attrs:{"for-printing":!0}}),o("q-btn",{staticClass:"dv-print-hide print-hide",attrs:{icon:"mdi-close",round:"",flat:"",size:"sm",color:"mc-main"},on:{click:function(t){e.print=!1}}})],1)],1)},ji=[];Xi._withStripped=!0;var Fi=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"dh-container full-width row items-center"},[o("div",{staticClass:"dh-tabs col justify-start"},[o("q-tabs",{attrs:{color:"mc-main","underline-color":"mc-main"},model:{value:e.selectedTab,callback:function(t){e.selectedTab=t},expression:"selectedTab"}},[o("q-tab",{staticClass:"klab-tab",attrs:{slot:"title",name:e.DOCUMENTATION_VIEWS.REPORT,icon:"mdi-text-box-outline",alert:-1!==e.reloadViews.indexOf(e.DOCUMENTATION_VIEWS.REPORT)},slot:"title"}),o("q-tab",{staticClass:"klab-tab",attrs:{slot:"title",name:e.DOCUMENTATION_VIEWS.TABLES,icon:"mdi-table",alert:-1!==e.reloadViews.indexOf(e.DOCUMENTATION_VIEWS.TABLES)},slot:"title"}),o("q-tab",{staticClass:"klab-tab",attrs:{slot:"title",name:e.DOCUMENTATION_VIEWS.FIGURES,icon:"mdi-image",alert:-1!==e.reloadViews.indexOf(e.DOCUMENTATION_VIEWS.FIGURES)},slot:"title"}),o("q-tab",{staticClass:"klab-tab",attrs:{slot:"title",name:e.DOCUMENTATION_VIEWS.RESOURCES,icon:"mdi-database-outline",alert:-1!==e.reloadViews.indexOf(e.DOCUMENTATION_VIEWS.RESOURCES)},slot:"title"})],1)],1),o("div",{staticClass:"dh-actions justify-end"},[o("q-btn",{staticClass:"dh-button",attrs:{icon:"mdi-refresh",flat:"",color:"mc-main"},on:{click:e.forceReload}},[o("q-tooltip",{attrs:{offset:[0,8],self:"bottom middle",anchor:"top middle",delay:1e3}},[e._v(e._s(e.$t("label.appReload")))])],1),o("q-btn",{staticClass:"dh-button",attrs:{icon:"mdi-printer",flat:"",color:"mc-main"},on:{click:e.print}},[o("q-tooltip",{attrs:{offset:[0,8],self:"bottom middle",anchor:"top middle",delay:1e3}},[e._v(e._s(e.$t("label.appPrint")))])],1),e.selectedTab===e.DOCUMENTATION_VIEWS.TABLES?[o("q-btn",{staticClass:"dh-button",attrs:{disable:e.tableFontSize-1<8,flat:"",icon:"mdi-format-font-size-decrease",color:"mc-main"},on:{click:function(t){e.tableFontSizeChange(-1)}}}),o("q-btn",{staticClass:"dh-button",attrs:{disable:e.tableFontSize+1>50,flat:"",icon:"mdi-format-font-size-increase",color:"mc-main"},on:{click:function(t){e.tableFontSizeChange(1)}}})]:e._e()],2),e.hasSpinner?o("div",{staticClass:"dh-spinner col-1 justify-end"},[o("transition",{attrs:{appear:"","enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut"}},[o("div",{staticClass:"klab-spinner-div item-center",attrs:{id:"kd-spinner"}},[o("klab-spinner",{attrs:{id:"spinner-documentation","store-controlled":!0,size:30,ball:22,wrapperId:"kd-spinner"}})],1)])],1):e._e()])},Hi=[];Fi._withStripped=!0;var Ui={name:"DocumentationHeader",components:{KlabSpinner:v},data:function(){return{DOCUMENTATION_VIEWS:c["n"]}},computed:a()({},Object(s["c"])("stomp",["hasTasks"]),Object(s["c"])("view",["leftMenuState","hasHeader","reloadViews","tableFontSize"]),{hasSpinner:function(){return!(this.leftMenuState!==c["w"].LEFTMENU_HIDDEN&&!this.hasHeader)},selectedTab:{get:function(){return this.$store.getters["view/documentationView"]},set:function(e){this.$store.dispatch("view/setDocumentationView",e,{root:!0}),this.setDocumentationSelected(null)}}}),methods:a()({},Object(s["b"])("view",["setTableFontSize","setDocumentationSelected"]),{tableFontSizeChange:function(e){this.setTableFontSize(this.tableFontSize+e),this.$eventBus.$emit(c["h"].FONT_SIZE_CHANGE,"table")},forceReload:function(){this.$eventBus.$emit(c["h"].REFRESH_DOCUMENTATION,{force:!0})},print:function(){this.$eventBus.$emit(c["h"].PRINT_DOCUMENTATION)}})},Vi=Ui,Gi=(o("d18c"),Object(A["a"])(Vi,Fi,Hi,!1,null,null,null));Gi.options.__file="DocumentationHeader.vue";var Ki=Gi.exports,$i=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"dt-container relative-position klab-menu-component"},[o("div",{staticClass:"dt-doc-container simplebar-vertical-only"},[o("div",{directives:[{name:"show",rawName:"v-show",value:0===e.tree.length,expression:"tree.length === 0"}],staticClass:"dt-tree-empty"},[e._v(e._s(e.$t("label.noDocumentation")))]),o("klab-q-tree",{attrs:{nodes:e.tree,"node-key":"id","check-click":!1,selected:e.selected,expanded:e.expanded,ticked:e.ticked,"text-color":"white","control-color":"white",color:"white",dark:!0,"no-nodes-label":e.$t("label.noNodes"),"no-results-label":e.$t("label.noNodes"),filter:e.documentationView,"filter-method":e.filter},on:{"update:selected":function(t){e.selected=t},"update:expanded":function(t){e.expanded=t},"update:ticked":function(t){e.ticked=t}}})],1),o("q-resize-observable",{on:{resize:function(t){e.$emit("resized")}}})],1)},Yi=[];$i._withStripped=!0;var Ji={name:"DocumentationTree",components:{KlabQTree:no},data:function(){return{expanded:[],selected:null,ticked:[],DOCUMENTATION_VIEWS:c["n"]}},computed:a()({},Object(s["c"])("data",["documentationTrees"]),Object(s["c"])("view",["documentationView","documentationSelected"]),{tree:function(){var e=this,t=this.documentationTrees.find(function(t){return t.view===e.documentationView}).tree||[];return t}}),methods:a()({},Object(s["b"])("view",["setDocumentationSelected"]),{filter:function(e,t){return t!==c["n"].REPORT||e.type!==c["l"].PARAGRAPH&&e.type!==c["l"].CITATION}}),watch:{selected:function(e){this.setDocumentationSelected(e)},documentationSelected:function(){this.selected=this.documentationSelected}},mounted:function(){this.selected=this.documentationSelected}},Qi=Ji,Zi=(o("5823"),Object(A["a"])(Qi,$i,Yi,!1,null,null,null));Zi.options.__file="DocumentationTree.vue";var er=Zi.exports,tr=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"dv-documentation"},[o("div",{staticClass:"dv-documentation-wrapper"},[0===e.content.length?[o("div",{staticClass:"dv-empty-documentation"},[e._v(e._s(e.$t("messages.noDocumentation")))])]:[o("div",{staticClass:"dv-content"},e._l(e.content,function(t){return o("div",{key:t.id,staticClass:"dv-item"},[t.type===e.DOCUMENTATION_TYPES.SECTION?[o("h1",{attrs:{id:e.getId(t.id)}},[e._v(e._s(t.idx)+" "+e._s(t.title))]),t.subtitle?o("h4",[e._v(e._s(t.subtitle))]):e._e()]:t.type===e.DOCUMENTATION_TYPES.PARAGRAPH?o("div",{staticClass:"dv-paragraph",domProps:{innerHTML:e._s(t.bodyText)}}):t.type===e.DOCUMENTATION_TYPES.REFERENCE?o("div",{staticClass:"dv-reference",attrs:{id:e.getId(t.id)},domProps:{innerHTML:e._s(t.bodyText)},on:{click:function(o){e.selectElement(".link-"+t.id)}}}):t.type===e.DOCUMENTATION_TYPES.CITATION?o("span",{staticClass:"dv-citation"},[o("a",{attrs:{href:"#",title:t.bodyText}},[e._v(e._s(t.bodyText))])]):t.type===e.DOCUMENTATION_TYPES.TABLE?o("div",{staticClass:"dv-table-container"},[o("div",{staticClass:"dv-table-title",attrs:{id:e.getId(t.id)}},[e._v(e._s(e.$t("label.reportTable")+" "+t.idx+". "+t.title))]),o("div",{staticClass:"dv-table",style:{"font-size":e.tableFontSize+"px"},attrs:{id:e.getId(t.id)+"-table"}}),o("div",{staticClass:"dv-table-bottom text-right print-hide"},[o("q-btn",{staticClass:"dv-button",attrs:{flat:"",color:"mc-main",icon:"mdi-content-copy"},on:{click:function(o){e.tableCopy(t.id)}}},[o("q-tooltip",{attrs:{anchor:"bottom middle",self:"top middle",offset:[0,5]}},[e._v(e._s(e.$t("label.tableCopy")))])],1),o("q-btn",{staticClass:"dv-button",attrs:{flat:"",color:"mc-main",icon:"mdi-download"},on:{click:function(o){e.tableDownload(t.id)}}},[o("q-tooltip",{attrs:{anchor:"bottom middle",self:"top middle",offset:[0,5]}},[e._v(e._s(e.$t("label.tableDownloadAsXSLX")))])],1)],1)]):t.type===e.DOCUMENTATION_TYPES.FIGURE?o("div",{staticClass:"dv-figure-container",attrs:{id:e.getId(t.id)}},[o("div",{staticClass:"dv-figure-wrapper col"},[o("div",{staticClass:"content-center row"},[o("div",{staticClass:"dv-figure-content col"},[o("div",{staticClass:"dv-figure-caption-wrapper row items-end"},[o("div",{staticClass:"dv-figure-caption col"},[e._v(e._s(e.$t("label.reportFigure")+" "+t.idx+(""!==t.figure.caption?". "+t.figure.caption:"")))]),t.figure.timeString&&""!==t.figure.timeString?o("div",{staticClass:"dv-figure-timestring col"},[e._v(e._s(t.figure.timeString))]):e._e()])]),o("div",{staticClass:"dv-col-fill col"})]),o("div",{staticClass:"row content-center"},[o("div",{staticClass:"dv-figure-content col"},[o("div",{directives:[{name:"show",rawName:"v-show",value:e.loadingImages.includes(t.id),expression:"loadingImages.includes(doc.id)"}],staticClass:"dv-figure-wait row items-center",style:{height:e.waitHeight+"px"}},[o("q-spinner",{staticClass:"col",attrs:{size:"3em"}})],1),o("div",{staticClass:"dv-figure-image col",class:"dv-figure-"+e.documentationView.toLowerCase()},[o("img",{staticClass:"dv-figure-img",class:[e.forPrinting?"dv-figure-print":"dv-figure-display"],attrs:{src:"",id:"figimg-"+e.documentationView+"-"+e.getId(t.id),alt:t.figure.caption}})])]),o("div",{staticClass:"dv-figure-legend col"},[o("histogram-viewer",{staticClass:"dv-figure-colormap",attrs:{dataSummary:t.figure.dataSummary,colormap:t.figure.colormap,id:e.getId(t.observationId),direction:"vertical",tooltips:!1,legend:!0}})],1)]),o("div",{staticClass:"row content-center"},[o("div",{staticClass:"dv-figure-content col"},[o("div",{staticClass:"dv-figure-time col"},[o("figure-timeline",{attrs:{start:t.figure.startTime,end:t.figure.endTime,"raw-slices":t.figure.timeSlices,observationId:t.figure.observationId},on:{timestampchange:function(o){e.changeTime(o,t.id)}}})],1)]),o("div",{staticClass:"dv-col-fill col"})])])]):t.type===e.DOCUMENTATION_TYPES.MODEL?o("div",{staticClass:"dv-model-container"},[o("div",{staticClass:"dv-model-code",attrs:{id:e.getId(t.id)},domProps:{innerHTML:e._s(e.getModelCode(t.bodyText))}})]):t.type===e.DOCUMENTATION_TYPES.RESOURCE?o("div",{staticClass:"dv-resource-container",attrs:{id:e.getId(t.id)}},[o("div",{staticClass:"dv-resource-title-container"},[o("div",{staticClass:"dv-resource-title"},[e._v(e._s(t.title))]),o("div",{staticClass:"dv-resource-originator"},[e._v(e._s(t.resource.originatorDescription))]),t.resource.keywords.length>0?o("div",{staticClass:"dv-resource-keywords text-right"},e._l(t.resource.keywords,function(n,i){return o("div",{key:i,staticClass:"dv-resource-keyword"},[o("span",{staticClass:"dv-resource-keyword"},[e._v(e._s(n))]),i0?o("div",{staticClass:"dv-resource-authors"},e._l(t.resource.authors,function(n,i){return o("div",{key:i,staticClass:"dv-resource-author-wrapper"},[o("span",{staticClass:"dv-resource-author"},[e._v(e._s(n))]),i0&&void 0!==arguments[0]?arguments[0]:{},t=e.view,o=void 0===t?null:t,n=e.force,i=void 0!==n&&n;null===o&&(o=this.documentationView),(-1!==this.reloadViews.indexOf(o)||i)&&this.loadDocumentation(o)},printDocumentation:function(){this.print=!0},closePrint:function(){this.print=!1},launchPrint:function(){this.$eventBus.$emit(c["h"].FONT_SIZE_CHANGE,"table"),setTimeout(function(){window.print()},600)}}),watch:{documentationView:function(){var e=this;this.$nextTick(function(){e.load()})},reloadViews:function(){var e=this;this.$nextTick(function(){e.load()})}},activated:function(){this.load()},mounted:function(){this.$eventBus.$on(c["h"].REFRESH_DOCUMENTATION,this.load),this.$eventBus.$on(c["h"].PRINT_DOCUMENTATION,this.printDocumentation),window.addEventListener("afterprint",this.closePrint)},beforeDestroy:function(){this.$eventBus.$off(c["h"].REFRESH_DOCUMENTATION,this.load),this.$eventBus.$off(c["h"].PRINT_DOCUMENTATION,this.printDocumentation),window.removeEventListener("afterprint",this.closePrint)}},cr=sr,pr=(o("7bbc"),Object(A["a"])(cr,Xi,ji,!1,null,null,null));pr.options.__file="KlabDocumentation.vue";var lr=pr.exports,ur=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"dfv-wrapper",class:"dfv-"+e.flowchartSelected},[o("div",{staticClass:"fit no-padding with-background dfv-container",class:{"dfv-with-info":e.dataflowInfoOpen}},[o("div",{staticClass:"dfv-graph-info"},[o("div",{staticClass:"dfv-graph-type"},[o("span",[e._v(e._s(e.flowchart(e.flowchartSelected)?e.flowchart(e.flowchartSelected).label:"Nothing"))])]),o("div",{staticClass:"dfv-graph-selector"},[o("q-btn",{staticClass:"dfv-button",class:e.flowchartSelected===e.CONSTANTS.GRAPH_DATAFLOW?"dfv-graph-selected":"",attrs:{disable:!(e.flowchart(e.CONSTANTS.GRAPH_DATAFLOW).flowchart||e.flowchart(e.CONSTANTS.GRAPH_DATAFLOW).updatable),icon:"mdi-sitemap",flat:"",color:"app-main-color"},on:{click:function(t){e.flowchartSelected!==e.CONSTANTS.GRAPH_DATAFLOW&&e.setFlowchartSelected(e.CONSTANTS.GRAPH_DATAFLOW)}}},[o("q-tooltip",{attrs:{offset:[0,8],self:"bottom middle",anchor:"top middle",delay:500}},[e._v(e._s(e.flowchart(e.CONSTANTS.GRAPH_DATAFLOW).label))])],1),o("q-btn",{class:e.flowchartSelected===e.CONSTANTS.GRAPH_PROVENANCE_SIMPLIFIED?"dfv-graph-selected":"",attrs:{disable:!(e.flowchart(e.CONSTANTS.GRAPH_PROVENANCE_SIMPLIFIED).flowchart||e.flowchart(e.CONSTANTS.GRAPH_PROVENANCE_SIMPLIFIED).updatable),icon:"mdi-graph-outline",flat:"",color:"app-main-color"},on:{click:function(t){e.flowchartSelected!==e.CONSTANTS.GRAPH_PROVENANCE_SIMPLIFIED&&e.setFlowchartSelected(e.CONSTANTS.GRAPH_PROVENANCE_SIMPLIFIED)}}},[o("q-tooltip",{attrs:{offset:[0,8],self:"bottom middle",anchor:"top middle",delay:500}},[e._v(e._s(e.flowchart(e.CONSTANTS.GRAPH_PROVENANCE_SIMPLIFIED).label))])],1)],1)]),o("div",[o("div",{attrs:{id:"sprotty"}}),o("q-resize-observable",{attrs:{debounce:300},on:{resize:e.resize}})],1)]),e.dataflowInfoOpen?o("div",{staticClass:"dfv-info-container"},[o("dataflow-info",{attrs:{width:"infoWidth"}})],1):e._e()])},br=[];ur._withStripped=!0;o("98db");var dr=o("970b"),Mr=o.n(dr),hr=o("5bc30"),fr=o.n(hr),zr=o("8449"),Or=o("42d6"),Ar=o("e1c6"),mr=0,vr=200,gr=!1,yr=function(){function e(){Mr()(this,e)}return fr()(e,[{key:"handle",value:function(e){switch(e.kind){case Or["SelectCommand"].KIND:gr=!1,mr=setTimeout(function(){gr||zr["b"].$emit(c["h"].GRAPH_NODE_SELECTED,e),gr=!1},vr);break;case Or["SetViewportCommand"].KIND:clearTimeout(mr),gr=!0;break;default:console.warn("Unknow action: ".concat(e.kind));break}}},{key:"initialize",value:function(e){e.register(Or["SelectCommand"].KIND,this),e.register(Or["SetViewportCommand"].KIND,this)}}]),e}();function qr(e){return void 0!==e.source&&void 0!==e.target}function _r(e){return void 0!==e.sources&&void 0!==e.targets}Ar.decorate(Ar.injectable(),yr);var Wr=function(){function e(){this.nodeIds=new Set,this.edgeIds=new Set,this.portIds=new Set,this.labelIds=new Set,this.sectionIds=new Set,this.isRestored=!1}return e.prototype.transform=function(e){var t,o,n=this,i={type:"graph",id:e.id||"root",children:[]};if(e.restored&&(this.isRestored=!0),e.children){var r=e.children.map(function(e){return n.transformElkNode(e)});(t=i.children).push.apply(t,r)}if(e.edges){var a=e.edges.map(function(e){return n.transformElkEdge(e)});(o=i.children).push.apply(o,a)}return i},e.prototype.transformElkNode=function(e){var t,o,n,i,r=this;this.checkAndRememberId(e,this.nodeIds);var a={type:"node",id:e.id,nodeType:e.id.split(".")[0],position:this.pos(e),size:this.size(e),status:this.isRestored?"processed":"waiting",children:[]};if(e.children){var s=e.children.map(function(e){return r.transformElkNode(e)});(t=a.children).push.apply(t,s)}if(e.ports){var c=e.ports.map(function(e){return r.transformElkPort(e)});(o=a.children).push.apply(o,c)}if(e.labels){var p=e.labels.map(function(e){return r.transformElkLabel(e)});(n=a.children).push.apply(n,p)}if(e.edges){var l=e.edges.map(function(e){return r.transformElkEdge(e)});(i=a.children).push.apply(i,l)}return a},e.prototype.transformElkPort=function(e){this.checkAndRememberId(e,this.portIds);var t={type:"port",id:e.id,position:this.pos(e),size:this.size(e),children:[]};return t},e.prototype.transformElkLabel=function(e){return this.checkAndRememberId(e,this.labelIds),{type:"label",id:e.id,text:e.text,position:this.pos(e),size:this.size(e)}},e.prototype.transformElkEdge=function(e){var t,o,n=this;this.checkAndRememberId(e,this.edgeIds);var i={type:"edge",id:e.id,sourceId:"",targetId:"",routingPoints:[],children:[]};if(qr(e)?(i.sourceId=e.source,i.targetId=e.target,e.sourcePoint&&i.routingPoints.push(e.sourcePoint),e.bendPoints&&(t=i.routingPoints).push.apply(t,e.bendPoints),e.targetPoint&&i.routingPoints.push(e.targetPoint)):_r(e)&&(i.sourceId=e.sources[0],i.targetId=e.targets[0],e.sections&&e.sections.forEach(function(e){var t;n.checkAndRememberId(e,n.sectionIds),i.routingPoints.push(e.startPoint),e.bendPoints&&(t=i.routingPoints).push.apply(t,e.bendPoints),i.routingPoints.push(e.endPoint)})),e.junctionPoints&&e.junctionPoints.forEach(function(t,o){var n={type:"junction",id:e.id+"_j"+o,position:t};i.children.push(n)}),e.labels){var r=e.labels.map(function(e){return n.transformElkLabel(e)});(o=i.children).push.apply(o,r)}return i},e.prototype.pos=function(e){return{x:e.x||0,y:e.y||0}},e.prototype.size=function(e){return{width:e.width||0,height:e.height||0}},e.prototype.checkAndRememberId=function(e,t){if(void 0===e.id||null===e.id)throw Error("An element is missing an id: "+e);if(t.has(e.id))throw Error("Duplicate id: "+e.id+".");t.add(e.id)},e}(),Rr=o("e1c6"),wr=o("393a"),Lr=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Cr=function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},Sr={createElement:wr["svg"]},Er=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Lr(t,e),t.prototype.render=function(e,t){var o="elknode "+(e.hoverFeedback?"mouseover ":"")+(e.selected?"selected ":"")+e.status+" elk-"+e.nodeType;return Sr.createElement("g",null,Sr.createElement("rect",{classNames:o,x:"0",y:"0",width:e.bounds.width,height:e.bounds.height}),t.renderChildren(e))},t}(Or["RectangularNodeView"]),Tr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Lr(t,e),t.prototype.render=function(e,t){return Sr.createElement("g",null,Sr.createElement("rect",{"class-elkport":!0,"class-mouseover":e.hoverFeedback,"class-selected":e.selected,x:"0",y:"0",width:e.bounds.width,height:e.bounds.height}),t.renderChildren(e))},t}(Or["RectangularNodeView"]),xr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Lr(t,e),t.prototype.renderLine=function(e,t,o){for(var n=t[0],i="M "+n.x+","+n.y,r=1;r=i||t.mouseModel&&t.mouseModel>=i,exselected:t.mouseModel&&t.model>=i&&t.mouseModel0&&void 0!==arguments[0]?arguments[0]:null;this.sendStompMessage(p["a"].DATAFLOW_NODE_RATING({nodeId:this.dataflowInfo.elementId,contextId:this.contextId,rating:this.dataflowInfo.rating,comment:e},this.session).body)},commentOk:function(){this.changeDataflowRating(this.commentContent),this.$q.notify({message:this.$t("messages.thankComment"),type:"info",icon:"mdi-information",timeout:1e3})},closePanel:function(){this.setDataflowInfoOpen(!1)}}),watch:{commentOpen:function(e){this.setModalMode(e)}}},Qr=Jr,Zr=(o("75c1"),Object(A["a"])(Qr,Ur,Vr,!1,null,null,null));Zr.options.__file="DataflowInfoPane.vue";var ea=Zr.exports,ta={name:"DataflowViewer",components:{DataflowInfo:ea},data:function(){return{modelSource:null,actionDispatcher:null,interval:null,processing:!1,visible:!1,needsUpdate:!0,CONSTANTS:c["g"]}},computed:a()({},Object(s["c"])("data",["flowchart","flowcharts","dataflowInfo","dataflowStatuses","contextId","session","context"]),Object(s["c"])("view",["leftMenuState","flowchartSelected","dataflowInfoOpen"])),methods:a()({},Object(s["b"])("data",["loadFlowchart"]),Object(s["b"])("view",["setFlowchartSelected","setDataflowInfoOpen"]),{doGraph:function(){var e=this,t=this.flowchart(this.flowchartSelected);if(t){if(this.processing)return void setTimeout(this.doGraph(),100);t.updatable?this.loadFlowchart(this.flowchartSelected).then(function(){var o=JSON.parse(JSON.stringify(t.flowchart));e.processing=!0,t.graph=(new Wr).transform(o),e.setModel(t),e.centerGraph(),e.processing=!1}).catch(function(e){console.error(e)}):null===t.graph||t.visible||(this.setModel(t),this.centerGraph())}},setModel:function(e){this.modelSource.setModel(e.graph),this.flowcharts.forEach(function(e){e.visible=!1}),e.visible=!0},centerGraph:function(){this.flowchartSelected===c["g"].GRAPH_DATAFLOW?this.actionDispatcher.dispatch(new Or["FitToScreenAction"]([],40)):this.actionDispatcher.dispatch(new Or["CenterAction"]([],40))},updateStatuses:function(){if(this.visible){if(0!==this.dataflowStatuses.length){for(var e=this.dataflowStatuses.length,t=0;t=0;o-=1)this.sendStompMessage(p["a"].DATAFLOW_NODE_DETAILS({nodeId:e.selectedElementsIDs[o],contextId:this.context.id},this.session).body)}},closePanel:function(){this.setDataflowInfoOpen(!1)},resize:function(){var e=this;this.$nextTick(function(){var t=document.getElementById("sprotty");if(null!==t){var o=t.getBoundingClientRect();e.actionDispatcher.dispatch(new Or["InitializeCanvasBoundsAction"]({x:o.left,y:o.top,width:o.width,height:o.height})),e.centerGraph()}})}}),watch:{flowchartSelected:function(){this.visible&&this.doGraph()},flowcharts:{handler:function(){this.visible&&this.doGraph()},deep:!0},dataflowStatuses:{handler:function(){this.flowchartSelected===c["g"].GRAPH_DATAFLOW&&null!==this.flowchart(this.flowchartSelected)&&this.updateStatuses()},deep:!0},dataflowInfo:function(e,t){null===e?this.setDataflowInfoOpen(!1):null===t?this.setDataflowInfoOpen(!0):e.elementId===t.elementId&&this.dataflowInfoOpen?this.setDataflowInfoOpen(!1):this.setDataflowInfoOpen(!0)},dataflowInfoOpen:function(){this.resize()}},mounted:function(){var e=Hr({needsClientLayout:!1,needsServerLayout:!0},"info");e.bind(Or["TYPES"].IActionHandlerInitializer).to(yr),this.modelSource=e.get(Or["TYPES"].ModelSource),this.actionDispatcher=e.get(Or["TYPES"].IActionDispatcher),this.$eventBus.$on(c["h"].GRAPH_NODE_SELECTED,this.graphNodeSelectedListener)},activated:function(){this.visible=!0,this.doGraph(),this.flowchartSelected===c["g"].GRAPH_DATAFLOW&&this.needsUpdate&&(this.updateStatuses(),this.needsUpdate=!1)},deactivated:function(){this.visible=!1},beforeDestroy:function(){this.$eventBus.$off(c["h"].GRAPH_NODE_SELECTED,this.graphNodeSelectedListener)}},oa=ta,na=(o("7890"),Object(A["a"])(oa,ur,br,!1,null,null,null));na.options.__file="DataflowViewer.vue";var ia=na.exports,ra=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("q-modal",{ref:"irm-modal-container",attrs:{"no-esc-dismiss":!0,"no-backdrop-dismiss":!0,"content-classes":["irm-container"]},on:{hide:e.cleanInputRequest},model:{value:e.opened,callback:function(t){e.opened=t},expression:"opened"}},[o("q-tabs",{class:{"irm-tabs-hidden":e.inputRequests.length<=1},attrs:{swipeable:"",animated:"",color:"white"},model:{value:e.selectedRequest,callback:function(t){e.selectedRequest=t},expression:"selectedRequest"}},[e._l(e.inputRequests,function(t){return o("q-tab",{key:t.messageId,class:{"irm-tabs-hidden":e.inputRequests.length<=1},attrs:{slot:"title",name:"request-"+t.messageId},slot:"title"})}),e._l(e.inputRequests,function(t){return o("q-tab-pane",{key:t.messageId,attrs:{name:"request-"+t.messageId}},[o("div",{staticClass:"irm-group"},[o("div",{staticClass:"irm-global-description"},[o("h4",[e._v(e._s(null!==t.sectionTitle?t.sectionTitle:e.$t("label.noInputSectionTitle")))]),o("p",[e._v(e._s(t.description))])]),o("div",{staticClass:"irm-fields-container",attrs:{"data-simplebar":""}},[o("div",{staticClass:"irm-fields-wrapper"},e._l(t.fields,function(n){return o("div",{key:e.getFieldId(n,t.messageId),staticClass:"irm-field"},[e.checkSectionTitle(n.sectionTitle)?o("div",{staticClass:"irm-section-description"},[o("h5",[e._v(e._s(n.sectionTitle))]),o("p",[e._v(e._s(n.sectionDescription))])]):e._e(),o("q-field",{attrs:{label:null!==n.label?n.label:n.id,helper:n.description}},[o(e.capitalizeFirstLetter(n.type)+"InputRequest",{tag:"component",attrs:{name:e.getFieldId(n,t.messageId),initialValue:n.initialValue,values:n.values,range:n.range,numericPrecision:n.numericPrecision,regexp:n.regexp},on:{change:function(o){e.updateForm(e.getFieldId(n,t.messageId),o)}}})],1)],1)}))]),o("div",{staticClass:"irm-buttons"},[o("q-btn",{attrs:{color:"primary",label:e.$t("label.cancelInputRequest")},on:{click:function(o){e.cancelRequest(t)}}}),o("q-btn",{attrs:{color:"mc-main",disable:e.formDataIsEmpty,label:e.$t("label.resetInputRequest")},on:{click:function(o){e.send(t.messageId,!0)}}}),o("q-btn",{attrs:{color:"mc-main",label:e.$t("label.submitInputRequest")},on:{click:function(o){e.send(t.messageId,!1)}}})],1)])])})],2)],1)},aa=[];ra._withStripped=!0;var sa=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("q-input",{attrs:{color:"mc-main",type:"text",placeholder:e.initialValue,name:e.name,error:e.hasError,clearable:!0,"clear-value":e.initialValue},on:{input:e.emitInput},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})},ca=[];sa._withStripped=!0;var pa={name:"TextField",props:{initialValue:{type:String,required:!0},name:{type:String,required:!0}},data:function(){return{value:""}},computed:{hasError:function(){return this.value,!1}},methods:{emitInput:function(e){this.$emit("change",e)}}},la=pa,ua=(o("9d14"),Object(A["a"])(la,sa,ca,!1,null,null,null));ua.options.__file="TextField.vue";var ba=ua.exports,da=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("q-input",{attrs:{color:"mc-main",type:"number",placeholder:e.initialValue,name:e.name,error:e.hasError,clearable:!0,"clear-value":e.initialValue},on:{input:e.emitInput},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})},Ma=[];da._withStripped=!0;var ha={name:"NumberField",props:{initialValue:{type:String,required:!0},name:{type:String,required:!0},numericPrecision:{type:Number,default:5},range:{type:String}},data:function(){return{value:""}},computed:{hasError:function(){return this.range,!1}},methods:{emitInput:function(e){var t=this;this.fitValue(),this.$nextTick(function(){t.$emit("change",e)})},fitValue:function(){0!==this.numericPrecision&&(this.value=this.value.toFixed(this.numericPrecision))}}},fa=ha,za=(o("d6e2"),Object(A["a"])(fa,da,Ma,!1,null,null,null));za.options.__file="NumberField.vue";var Oa=za.exports,Aa=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("q-checkbox",{attrs:{color:"mc-main",name:e.name},on:{input:e.emitInput},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}})},ma=[];Aa._withStripped=!0;var va={name:"BooleanField",props:{initialValue:{type:String,required:!0},name:{type:String,required:!0}},data:function(){return{checked:"true"===this.initialValue}},methods:{emitInput:function(e){var t=this;this.$nextTick(function(){t.$emit("change",e)})}}},ga=va,ya=(o("bb33"),Object(A["a"])(ga,Aa,ma,!1,null,null,null));ya.options.__file="BooleanField.vue";var qa=ya.exports,_a={name:"InputRequestModal",components:{TextInputRequest:ba,NumberInputRequest:Oa,BooleanInputRequest:qa},sectionTitle:void 0,data:function(){return{formData:{},simpleBars:[],selectedRequest:null}},computed:a()({},Object(s["c"])("data",["session"]),Object(s["c"])("view",["hasInputRequests","inputRequests"]),{opened:{set:function(){},get:function(){return this.hasInputRequests}},formDataIsEmpty:function(){return 0===Object.keys(this.formData).length}}),methods:a()({},Object(s["b"])("view",["removeInputRequest"]),{send:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.inputRequests.find(function(t){return t.messageId===e});if("undefined"!==typeof n){var i=n.fields.reduce(function(e,i){if(o)e[t.getFieldId(i)]=i.initialValue;else{var r=t.formData[t.getFieldId(i,n.messageId)];e[t.getFieldId(i)]="undefined"===typeof r||null===r||""===r?i.initialValue:r.toString()}return e},{});this.sendStompMessage(p["a"].USER_INPUT_RESPONSE({messageId:n.messageId,requestId:n.requestId,values:i},this.session).body),this.removeInputRequest(n.messageId)}},cancelRequest:function(e){this.sendStompMessage(p["a"].USER_INPUT_RESPONSE({messageId:e.messageId,requestId:e.requestId,cancelRun:!0,values:{}},this.session).body),this.removeInputRequest(e.messageId)},updateForm:function(e,t){null===t?this.$delete(this.formData,e):this.$set(this.formData,e,t)},capitalizeFirstLetter:function(e){return Object(He["a"])(e)},getFieldId:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return null===t?"".concat(e.functionId,"/").concat(e.id):"".concat(t,"-").concat(e.functionId,"/").concat(e.id)},checkSectionTitle:function(e){return this.$options.sectionTitle!==e&&(this.$options.sectionTitle=e,!0)},cleanInputRequest:function(){this.formData={},this.removeInputRequest(null)}}),watch:{inputRequests:function(){this.inputRequests.length>0&&(this.selectedRequest="request-".concat(this.inputRequests[0].messageId))}}},Wa=_a,Ra=(o("2b54"),Object(A["a"])(Wa,ra,aa,!1,null,null,null));Ra.options.__file="InputRequestModal.vue";var wa=Ra.exports,La=function(){var e=this,t=e.$createElement,o=e._self._c||t;return null!==e.scaleReference?o("q-dialog",{attrs:{title:e.$t("label.titleChangeScale",{type:e.scaleEditingType===e.SCALE_TYPE.ST_SPACE?e.$t("label.labelSpatial"):e.$t("label.labelTemporal")}),color:"info",cancel:!0,ok:!1},on:{show:e.initValues},scopedSlots:e._u([{key:"buttons",fn:function(t){return[o("q-btn",{attrs:{color:"mc-main",outline:"",label:e.$t("label.appCancel")},on:{click:t.cancel}}),o("q-btn",{attrs:{color:"mc-main",label:e.$t("label.appOK")},on:{click:function(o){e.choose(t.ok)}}})]}}]),model:{value:e.scaleEditing,callback:function(t){e.scaleEditing=t},expression:"scaleEditing"}},[o("div",{attrs:{slot:"body"},slot:"body"},[e.scaleEditingType===e.SCALE_TYPE.ST_SPACE?[o("q-input",{attrs:{type:"number",min:"0",color:"info",autofocus:"",after:[{icon:"warning",error:!0,condition:e.resolutionError}],"stack-label":e.resolutionError?e.$t("messages.changeScaleResolutionError"):e.$t("label.resolutionLabel")},model:{value:e.resolution,callback:function(t){e.resolution=t},expression:"resolution"}})]:e._e(),o("q-select",{attrs:{"float-label":e.$t("label.unitLabel"),color:"info",options:e.typedUnits(e.scaleEditingType)},on:{input:function(t){e.scaleEditingType===e.SCALE_TYPE.ST_TIME&&e.setStartDate()}},model:{value:e.unit,callback:function(t){e.unit=t},expression:"unit"}}),e.scaleEditingType===e.SCALE_TYPE.ST_TIME?[o("div",{staticClass:"row"},[e.unit===e.SCALE_VALUES.DECADE?o("q-input",{staticClass:"col col-4",attrs:{"float-label":e.$t("label.unitDecade"),type:"number",min:"0",max:"90",step:10,color:"mc-main",autofocus:""},on:{input:function(t){e.setStartDate()}},model:{value:e.unitInputs.decade,callback:function(t){e.$set(e.unitInputs,"decade",t)},expression:"unitInputs.decade"}}):e._e(),e.unit===e.SCALE_VALUES.CENTURY||e.unit===e.SCALE_VALUES.DECADE?o("q-input",{class:["col",e.unit===e.SCALE_VALUES.CENTURY?"col-8":"col-4"],attrs:{"float-label":e.$t("label.unitCentury"),type:"number",min:"1",step:1,color:"mc-main",autofocus:""},on:{input:function(t){e.setStartDate()}},model:{value:e.unitInputs.century,callback:function(t){e.$set(e.unitInputs,"century",t)},expression:"unitInputs.century"}}):e._e(),e.unit===e.SCALE_VALUES.MONTH?o("q-select",{staticClass:"col col-4",attrs:{"float-label":e.$t("label.unitMonth"),type:"number",min:"0",color:"mc-main",options:e.monthOptions,autofocus:""},on:{input:function(t){e.setStartDate()}},model:{value:e.unitInputs.month,callback:function(t){e.$set(e.unitInputs,"month",t)},expression:"unitInputs.month"}}):e._e(),e.unit===e.SCALE_VALUES.WEEK?o("q-input",{staticClass:"col col-4",attrs:{"float-label":e.$t("label.unitWeek"),type:"number",min:"1",max:"53",step:1,color:"mc-main",autofocus:""},on:{input:function(t){e.setStartDate(t)}},model:{value:e.unitInputs.week,callback:function(t){e.$set(e.unitInputs,"week",t)},expression:"unitInputs.week"}}):e._e(),e.unit===e.SCALE_VALUES.YEAR||e.unit===e.SCALE_VALUES.MONTH||e.unit===e.SCALE_VALUES.WEEK?o("q-input",{class:{col:e.unit===e.SCALE_VALUES.YEAR,"col-8":e.unit===e.SCALE_VALUES.YEAR,"col-4":e.unit===e.SCALE_VALUES.MONTH||e.unit===e.SCALE_VALUES.WEEK},attrs:{"float-label":e.$t("label.unitYear"),type:"number",min:"0",step:1,color:"mc-main",autofocus:""},on:{input:function(t){e.setStartDate()}},model:{value:e.unitInputs.year,callback:function(t){e.$set(e.unitInputs,"year",t)},expression:"unitInputs.year"}}):e._e(),e.unit===e.SCALE_VALUES.CENTURY||e.unit===e.SCALE_VALUES.DECADE||e.unit===e.SCALE_VALUES.YEAR||e.unit===e.SCALE_VALUES.MONTH||e.unit===e.SCALE_VALUES.WEEK?o("q-input",{staticClass:"col col-4",class:{"scd-inactive-multiplier":e.timeEndModified},attrs:{"float-label":e.$t("label.timeResolutionMultiplier"),type:"number",min:"1",step:1,color:"mc-main"},model:{value:e.timeResolutionMultiplier,callback:function(t){e.timeResolutionMultiplier=t},expression:"timeResolutionMultiplier"}},[e.timeEndModified?o("q-tooltip",{attrs:{offset:[0,15],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("messages.timeEndModified")))]):e._e()],1):e._e()],1),o("q-datetime",{attrs:{color:"mc-main","float-label":e.$t("label.labelTimeStart"),format:e.getFormat(),type:e.unit===e.SCALE_VALUES.HOUR||e.unit===e.SCALE_VALUES.MINUTE||e.unit===e.SCALE_VALUES.SECOND?"datetime":"date",minimal:"",format24h:"","default-view":e.unit===e.SCALE_VALUES.CENTURY||e.unit===e.SCALE_VALUES.DECADE||e.unit===e.SCALE_VALUES.YEAR?"year":"day"},on:{focus:function(t){e.manualInputChange=!0},blur:function(t){e.manualInputChange=!1},input:function(t){e.manualInputChange&&e.initUnitInputs()&&e.calculateEnd()}},model:{value:e.timeStart,callback:function(t){e.timeStart=t},expression:"timeStart"}}),o("q-datetime",{attrs:{color:"mc-main","float-label":e.$t("label.labelTimeEnd"),format:e.getFormat(),type:e.unit===e.SCALE_VALUES.HOUR||e.unit===e.SCALE_VALUES.MINUTE||e.unit===e.SCALE_VALUES.SECOND?"datetime":"date",minimal:"",format24h:"",after:[{icon:"warning",error:!0,condition:e.resolutionError}],"default-view":e.unit===e.SCALE_VALUES.CENTURY||e.unit===e.SCALE_VALUES.DECADE||e.unit===e.SCALE_VALUES.YEAR?"year":"day"},on:{input:e.checkEnd},model:{value:e.timeEnd,callback:function(t){e.timeEnd=t},expression:"timeEnd"}})]:e._e()],2)]):e._e()},Ca=[];La._withStripped=!0;var Sa=o("7f45"),Ea=o.n(Sa),Ta={name:"ScaleChangeDialog",data:function(){return{resolution:null,timeResolutionMultiplier:1,timeStart:null,timeEnd:null,timeEndMod:!1,unit:null,units:c["E"],resolutionError:!1,SCALE_TYPE:c["D"],SCALE_VALUES:c["F"],unitInputs:{century:null,year:null,month:null,week:null},monthOptions:[],timeEndModified:!1,manualInputChange:!1}},computed:a()({},Object(s["c"])("data",["scaleReference","nextScale","hasContext"]),Object(s["c"])("view",["scaleEditingType"]),{scaleEditing:{get:function(){return this.$store.getters["view/isScaleEditing"]},set:function(e){this.$store.dispatch("view/setScaleEditing",{active:e,type:this.scaleEditingType})}},typedUnits:function(){var e=this;return function(t){return e.units.filter(function(e){return e.type===t&&e.selectable}).map(function(t){return a()({},t,{label:e.$t("label.".concat(t.i18nlabel))})})}}}),methods:a()({},Object(s["b"])("data",["updateScaleReference","setNextScale"]),{choose:function(e){if(this.scaleEditingType===c["D"].ST_SPACE&&(""===this.resolution||this.resolution<=0))this.resolutionError=!0;else if(this.scaleEditingType!==c["D"].ST_TIME||this.checkEnd){if(e(),this.resolutionError=!1,this.scaleEditingType===c["D"].ST_SPACE&&(null===this.nextScale&&this.resolution===this.scaleReference.spaceResolutionConverted&&this.unit===this.scaleReference.spaceUnit||null!==this.nextScale&&this.resolution===this.nextScale.spaceResolutionConverted&&this.unit===this.nextScale.spaceUnit)||this.scaleEditingType===c["D"].ST_TIME&&(null===this.nextScale&&this.timeResolutionMultiplier===this.scaleReference.timeResolutionMultiplier&&this.unit===this.scaleReference.timeUnit&&this.timeStart===this.scaleReference.start&&this.timeEnd===this.scaleReference.end||null!==this.nextScale&&this.timeResolutionMultiplier===this.nextScale.timeResolutionMultiplier&&this.unit===this.nextScale.timeUnit&&this.timeStart===this.nextScale.start&&this.timeEnd===this.nextScale.end))return;var t=new Date(this.timeStart.getTime()),o=new Date(this.timeEnd.getTime());[c["F"].MILLENNIUM,c["F"].CENTURY,c["F"].DECADE,c["F"].YEAR,c["F"].MONTH,c["F"].WEEK,c["F"].DAY].includes(this.unit)&&(t.setUTCHours(0,0,0,0),o.setUTCHours(0,0,0,0)),this.hasContext||this.sendStompMessage(p["a"].SCALE_REFERENCE(a()({scaleReference:this.scaleReference},this.scaleEditingType===c["D"].ST_SPACE&&{spaceResolution:this.resolution,spaceUnit:this.unit},this.scaleEditingType===c["D"].ST_TIME&&{timeResolutionMultiplier:this.timeResolutionMultiplier,timeUnit:this.unit,start:t.getTime(),end:o.getTime()}),this.$store.state.data.session).body),this.updateScaleReference(a()({type:this.scaleEditingType,unit:this.unit},this.scaleEditingType===c["D"].ST_SPACE&&{spaceResolution:this.resolution,spaceResolutionConverted:this.resolution},this.scaleEditingType===c["D"].ST_TIME&&{timeResolutionMultiplier:this.timeResolutionMultiplier,start:t.getTime(),end:o.getTime()},{next:this.hasContext})),this.$q.notify({message:this.$t(this.hasContext?"messages.updateNextScale":"messages.updateScale",{type:this.scaleEditingType.charAt(0).toUpperCase()+this.scaleEditingType.slice(1)}),type:"info",icon:"mdi-information",timeout:2e3})}else this.resolutionError=!0},setStartDate:function(e){var t=new Date;switch(this.unit){case c["F"].CENTURY:t.setUTCDate(1),t.setUTCMonth(0),t.setUTCFullYear(100*(this.unitInputs.century-1));break;case c["F"].DECADE:this.unitInputs.decade=this.unitInputs.decade-this.unitInputs.decade%10,t.setUTCDate(1),t.setUTCMonth(0),t.setUTCFullYear(100*(this.unitInputs.century-1)+this.unitInputs.decade);break;case c["F"].YEAR:t.setUTCFullYear(this.unitInputs.year,0,1);break;case c["F"].MONTH:t.setUTCDate(1),t.setUTCMonth(this.unitInputs.month),t.setUTCFullYear(this.unitInputs.year);break;case c["F"].WEEK:if(e>53)return void(this.unitInputs.week=Ea()(this.timeStart).week());t.setUTCMonth(0),t.setUTCDate(1+7*(this.unitInputs.week-1)),t.setUTCFullYear(this.unitInputs.year);break;default:return}this.timeStart=t,this.initUnitInputs(),this.calculateEnd()},calculateEnd:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=c["E"].find(function(t){return t.value===e.unit});this.timeEnd=Ea()(this.timeStart).add(this.timeResolutionMultiplier*o.momentMultiplier-(1!==o.momentMultiplier?1:0),o.momentShorthand).toDate(),this.$nextTick(function(){e.timeEndModified=t})},checkEnd:function(){this.timeEnd<=this.timeStart?this.$q.notify({message:this.$t("messages.timeEndBeforeTimeStart"),type:"info",icon:"mdi-information",timeout:2e3}):this.calculateEnd(!0)},getFormat:function(){switch(this.unit){case c["F"].MILLENNIUM:case c["F"].CENTURY:case c["F"].DECADE:case c["F"].YEAR:case c["F"].MONTH:case c["F"].WEEK:case c["F"].DAY:return"DD/MM/YYYY";case c["F"].HOUR:return"DD/MM/YYYY HH:mm";case c["F"].MINUTE:case c["F"].SECOND:return"DD/MM/YYYY HH:mm:ss";case c["F"].MILLISECOND:return"DD/MM/YYYY HH:mm:ss:SSS";default:return"DD/MM/YYYY HH:mm:ss"}},formatDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"dddd, MMMM Do YYYY, h:mm:ss a";return e&&null!==e?Ea()(e).format(t):""},initValues:function(){var e=null!==this.nextScale?this.nextScale:null!==this.scaleReference?this.scaleReference:null;null!==e&&(this.resolution=e.spaceResolutionConverted,this.unit=this.scaleEditingType===c["D"].ST_SPACE?e.spaceUnit:null!==e.timeUnit?e.timeUnit:c["F"].YEAR,this.timeResolutionMultiplier=0!==e.timeResolutionMultiplier?e.timeResolutionMultiplier:1,this.timeStart=0!==e.start?new Date(e.start):new Date,this.calculateEnd()),this.initUnitInputs()},initUnitInputs:function(){var e=this.timeStart?Ea()(this.timeStart):Ea()();this.unitInputs.century=Math.floor(e.year()/100)+1,this.unitInputs.decade=10*Math.floor(e.year()/10)-100*Math.floor(e.year()/100),this.unitInputs.year=e.year(),this.unitInputs.month=e.month(),this.unitInputs.week=e.week()}}),watch:{timeResolutionMultiplier:function(e,t){e<1?this.timeResolutionMultiplier=t:this.calculateEnd()}},created:function(){for(var e=0;e<12;e++)this.monthOptions.push({label:this.$t("label.months.m".concat(e)),value:e})}},xa=Ta,Na=(o("c998"),Object(A["a"])(xa,La,Ca,!1,null,null,null));Na.options.__file="ScaleChangeDialog.vue";var Ba=Na.exports,ka=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"full-height",attrs:{id:"lm-container"}},[o("div",{staticClass:"full-height klab-lm-panel",style:{width:e.LEFTMENU_VISIBILITY.LEFTMENU_MINSIZE+"px"},attrs:{id:"lm-actions"}},[o("div",{attrs:{id:"spinner-leftmenu-container"}},[o("div",{style:{"border-color":e.hasTasks()?e.spinnerColor.color:"white"},attrs:{id:"spinner-leftmenu-div"}},[o("klab-spinner",{attrs:{id:"spinner-leftmenu","store-controlled":!0,size:40,ball:22,wrapperId:"spinner-leftmenu-div"},nativeOn:{touchstart:function(t){e.handleTouch(t,e.askForSuggestion)}}})],1)]),e.hasContext?[o("div",{staticClass:"lm-separator"}),o("main-actions-buttons",{attrs:{orientation:"vertical","separator-class":"lm-separator"}}),o("div",{staticClass:"lm-separator"})]:e._e(),o("div",{staticClass:"klab-button klab-action",class:[{active:e.logShowed}],on:{click:e.logAction}},[o("q-icon",{attrs:{name:"mdi-console"}},[o("q-tooltip",{attrs:{delay:600,offset:[0,8],self:"top left",anchor:"bottom left"}},[e._v(e._s(e.logShowed?e.$t("tooltips.hideLogPane"):e.$t("tooltips.showLogPane")))])],1)],1),o("div",{staticClass:"lm-separator"}),o("div",{style:{width:e.LEFTMENU_VISIBILITY.LEFTMENU_MINSIZE+"px"},attrs:{id:"lm-bottom-menu"}},[o("div",{staticClass:"lm-separator"}),o("scale-buttons",{attrs:{docked:!0}}),o("div",{staticClass:"lm-separator"}),o("div",{staticClass:"lm-bottom-buttons"},[o("stop-actions-buttons")],1)],1)],2),e.maximized?o("div",{staticClass:"full-height klab-lm-panel",style:{width:e.LEFTMENU_VISIBILITY.LEFTMENU_MAXSIZE-e.LEFTMENU_VISIBILITY.LEFTMENU_MINSIZE+"px"},attrs:{id:"lm-content"}},[o("div",{staticClass:"full-height",attrs:{id:"lm-content-container"}},[o("keep-alive",[o("transition",{attrs:{name:"component-fade",mode:"out-in"}},[o(e.leftMenuContent,{tag:"component",staticClass:"lm-component"})],1)],1)],1)]):e._e()])},Pa=[];ka._withStripped=!0;var Da=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"full-height",class:{"dmc-dragging":e.dragging,"dmc-large-mode":e.searchIsFocused&&e.largeMode>0},attrs:{id:"dmc-container"}},[o("klab-breadcrumbs"),o("klab-search-bar",{directives:[{name:"draggable",rawName:"v-draggable",value:e.dragMCConfig,expression:"dragMCConfig"}],ref:"klab-search-bar-docked"}),e.isTreeVisible?o("div",{staticClass:"q-card-main full-height",class:{"dmc-dragging":e.dragging,"dmc-loading":e.taskOfContextIsAlive},attrs:{id:"dmc-tree"}},[o("klab-tree-pane")],1):e._e(),e.contextHasTime?o("observations-timeline",{staticClass:"dmc-timeline"}):e._e()],1)},Ia=[];Da._withStripped=!0;var Xa=K["b"].width,ja={name:"KlabDockedMainControl",components:{KlabSearchBar:Bt,KlabBreadcrumbs:jt,ObservationsTimeline:Fo,KlabTreePane:Lo},directives:{Draggable:V},data:function(){var e=this;return{dragMCConfig:{onPositionChange:Object(qe["a"])(function(t,o){e.onDebouncedPositionChanged(o)},100),onDragStart:function(){e.dragging=!0},onDragEnd:this.checkUndock,fingers:2,noMove:!0},askForUndocking:!1,draggableElementWidth:0,dragging:!1}},computed:a()({},Object(s["c"])("data",["contextHasTime"]),Object(s["c"])("view",["largeMode","isTreeVisible"]),Object(s["c"])("stomp",["taskOfContextIsAlive"])),methods:a()({},Object(s["b"])("view",["searchIsFocused","setMainViewer"]),{onDebouncedPositionChanged:function(e){this.dragging&&(e&&e.left>this.undockLimit?this.askForUndocking=!0:this.askForUndocking=!1,this.$eventBus.$emit(c["h"].ASK_FOR_UNDOCK,this.askForUndocking))},checkUndock:function(){var e=this;this.$nextTick(function(){e.askForUndocking&&(e.askForUndocking=!1,e.setMainViewer(c["O"].DATA_VIEWER)),e.$eventBus.$emit(c["h"].ASK_FOR_UNDOCK,!1),e.dragging=!1})}}),mounted:function(){this.undockLimit=Xa(document.getElementById("dmc-container"))/3}},Fa=ja,Ha=(o("c7c3"),Object(A["a"])(Fa,Da,Ia,!1,null,null,null));Ha.options.__file="KlabDockedMainControl.vue";var Ua=Ha.exports,Va={name:"KlabLeftMenu",components:{KlabSpinner:v,MainActionsButtons:Ce,StopActionsButtons:ke,DockedMainControl:Ua,DocumentationTree:er,KlabLogPane:Yo,ScaleButtons:on,KnowledgeViewsSelector:pn},mixins:[rt],data:function(){return{}},computed:a()({},Object(s["c"])("data",["hasContext"]),Object(s["c"])("stomp",["hasTasks"]),Object(s["c"])("view",["spinnerColor","mainViewer","leftMenuContent","leftMenuState"]),{logShowed:function(){return this.leftMenuContent===c["w"].LOG_COMPONENT},maximized:function(){return this.leftMenuState===c["w"].LEFTMENU_MAXIMIZED&&this.leftMenuContent}}),methods:a()({},Object(s["b"])("view",["setLeftMenuState","setLeftMenuContent"]),{logAction:function(){this.logShowed?(this.setLeftMenuContent(this.mainViewer.leftMenuContent),this.setLeftMenuState(this.mainViewer.leftMenuState)):(this.setLeftMenuContent(c["w"].LOG_COMPONENT),this.setLeftMenuState(c["w"].LEFTMENU_MAXIMIZED))},askForSuggestion:function(e){this.$eventBus.$emit(c["h"].ASK_FOR_SUGGESTIONS,e)}}),created:function(){this.LEFTMENU_VISIBILITY=c["w"]}},Ga=Va,Ka=(o("6283"),Object(A["a"])(Ga,ka,Pa,!1,null,null,null));Ka.options.__file="KlabLeftMenu.vue";var $a=Ka.exports,Ya=(o("5bc0"),{name:"KExplorer",components:{KlabMainControl:fn,DataViewer:Ii,KlabDocumentation:lr,DataflowViewer:ia,InputRequestModal:wa,ScaleChangeDialog:Ba,ObservationTime:Po,KlabLeftMenu:$a},props:{mainPanelStyle:{type:Object,default:function(){return{}}}},data:function(){return{askForUndocking:!1,LEFTMENU_CONSTANTS:c["w"]}},computed:a()({},Object(s["c"])("data",["session","hasActiveTerminal"]),Object(s["c"])("stomp",["connectionDown"]),Object(s["c"])("view",["searchIsActive","searchIsFocused","searchInApp","mainViewerName","mainViewer","isTreeVisible","isInModalMode","spinnerErrorMessage","isMainControlDocked","admitSearch","isHelpShown","mainViewer","leftMenuState","largeMode","hasHeader","layout"]),{waitingGeolocation:{get:function(){return this.$store.state.view.waitingGeolocation},set:function(e){this.$store.state.view.waitingGeolocation=e}},logVisible:function(){return this.$logVisibility===c["R"].PARAMS_LOG_VISIBLE},leftMenuVisible:{get:function(){return this.leftMenuState!==c["w"].LEFTMENU_HIDDEN&&!this.hasHeader},set:function(e){this.setLeftMenuState(e)}},leftMenuWidth:function(){return(this.leftMenuState===c["w"].LEFTMENU_MAXIMIZED?c["w"].LEFTMENU_MAXSIZE:this.leftMenuState===c["w"].LEFTMENU_MINIMIZED?c["w"].LEFTMENU_MINSIZE:0)-(this.hasHeader?c["w"].LEFTMENU_MINSIZE:0)}}),methods:a()({},Object(s["b"])("view",["searchStart","searchStop","searchFocus","setMainViewer","setLeftMenuState"]),{setChildrenToAskFor:function(){var e=Math.floor(window.innerHeight*parseInt(getComputedStyle(document.documentElement).getPropertyValue("--main-control-max-height"),10)/100),t=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--q-tree-no-child-min-height"),10),o=Math.floor(e/t);console.info("Set max children to ".concat(o)),this.$store.state.data.childrenToAskFor=o},askForUndockListener:function(e){this.askForUndocking=e},keydownListener:function(e){if(!(this.connectionDown||this.isInModalMode||!this.admitSearch||this.isHelpShown||this.searchInApp||this.hasActiveTerminal))return 27===e.keyCode&&this.searchIsActive?(this.searchStop(),void e.preventDefault()):void((38===e.keyCode||40===e.keyCode||32===e.keyCode||this.isAcceptedKey(e.key))&&(this.searchIsActive?this.searchIsFocused||(this.searchFocus({char:e.key,focused:!0}),e.preventDefault()):(this.searchStart(e.key),e.preventDefault())))},showDocumentation:function(){this.setMainViewer(c["O"].DOCUMENTATION_VIEWER)}}),watch:{spinnerErrorMessage:function(e,t){null!==e&&e!==t&&(console.error(this.spinnerErrorMessage),this.$q.notify({message:this.spinnerErrorMessage,type:"negative",icon:"mdi-alert-circle",timeout:1e3}))},leftMenuVisible:function(){var e=this;this.$nextTick(function(){e.$eventBus.$emit(c["h"].NEED_FIT_MAP,{})})}},created:function(){"undefined"===typeof this.mainViewer&&this.setMainViewer(c["O"].DATA_VIEWER)},mounted:function(){window.addEventListener("keydown",this.keydownListener),this.setChildrenToAskFor(),this.$eventBus.$on(c["h"].ASK_FOR_UNDOCK,this.askForUndockListener),this.$eventBus.$on(c["h"].SHOW_DOCUMENTATION,this.showDocumentation),this.sendStompMessage(p["a"].SETTING_CHANGE_REQUEST({setting:c["I"].INTERACTIVE_MODE,value:!1},this.session).body),this.sendStompMessage(p["a"].SETTING_CHANGE_REQUEST({setting:c["I"].LOCK_SPACE,value:!1},this.session).body),this.sendStompMessage(p["a"].SETTING_CHANGE_REQUEST({setting:c["I"].LOCK_TIME,value:!1},this.session).body)},beforeDestroy:function(){window.removeEventListener("keydown",this.keydownListener),this.$eventBus.$off(c["h"].ASK_FOR_UNDOCK,this.askForUndockListener),this.$eventBus.$off(c["h"].SHOW_DOCUMENTATION,this.showDocumentation)}}),Ja=Ya,Qa=(o("f913"),Object(A["a"])(Ja,me,ve,!1,null,null,null));Qa.options.__file="KExplorer.vue";var Za=Qa.exports,es=o("4082"),ts=o.n(es),os=o("0388"),ns=o("7d43"),is=o("9541"),rs=o("768b"),as=o("fb40"),ss=o("bd60"),cs="q:collapsible:close",ps={name:"QCollapsible",mixins:[as["a"],ss["a"],{props:ss["b"]}],modelToggle:{history:!1},props:{disable:Boolean,popup:Boolean,indent:Boolean,group:String,iconToggle:Boolean,collapseIcon:String,opened:Boolean,duration:Number,headerStyle:[Array,String,Object],headerClass:[Array,String,Object]},computed:{classes:function(){return{"q-collapsible-opened":this.showing,"q-collapsible-closed":!this.showing,"q-collapsible-popup-opened":this.popup&&this.showing,"q-collapsible-popup-closed":this.popup&&!this.showing,"q-collapsible-cursor-pointer":!this.separateToggle,"q-item-dark":this.dark,"q-item-separator":this.separator,"q-item-inset-separator":this.insetSeparator,disabled:this.disable}},separateToggle:function(){return this.iconToggle||void 0!==this.to}},watch:{showing:function(e){e&&this.group&&this.$root.$emit(cs,this)}},methods:{__toggleItem:function(){this.separateToggle||this.toggle()},__toggleIcon:function(e){this.separateToggle&&(e&&Object(Gr["g"])(e),this.toggle())},__eventHandler:function(e){this.group&&this!==e&&e.group===this.group&&this.hide()},__getToggleSide:function(e,t){return[e(is["a"],{slot:t?"right":void 0,staticClass:"cursor-pointer transition-generic relative-position q-collapsible-toggle-icon",class:{"rotate-180":this.showing,invisible:this.disable},nativeOn:{click:this.__toggleIcon},props:{icon:this.collapseIcon||this.$q.icon.collapsible.icon}})]},__getItemProps:function(e){return{props:e?{cfg:this.$props}:this.$props,style:this.headerStyle,class:this.headerClass,nativeOn:{click:this.__toggleItem}}}},created:function(){this.$root.$on(cs,this.__eventHandler),(this.opened||this.value)&&this.show()},beforeDestroy:function(){this.$root.$off(cs,this.__eventHandler)},render:function(e){return e(this.tag,{staticClass:"q-collapsible q-item-division relative-position",class:this.classes},[e("div",{staticClass:"q-collapsible-inner"},[this.$slots.header?e(Ye["a"],this.__getItemProps(),[this.$slots.header,e(ns["a"],{props:{right:!0},staticClass:"relative-position"},this.__getToggleSide(e))]):e(rs["a"],this.__getItemProps(!0),this.__getToggleSide(e,!0)),e(eo["a"],{props:{duration:this.duration}},[e("div",{directives:[{name:"show",value:this.showing}]},[e("div",{staticClass:"q-collapsible-sub-item relative-position",class:{indent:this.indent}},this.$slots.default)])])])])}},ls=o("dd1f"),us=o("5d8b"),bs=o("5931"),ds=o("482e"),Ms={LAYOUT:function(e){return S["a"].component("KAppLayout",{render:function(t){return t(Cs,{props:{layout:e}})}})},ALERT:function(e){return S["a"].component("KAppAlert",{render:function(t){return t(os["a"],{props:{value:!0,title:e.title,message:e.content},class:{"kcv-alert":!0}})}})},MAIN:function(e){return S["a"].component("KAppMain",{render:function(t){return t("div",a()({class:["kcv-main-container","kcv-dir-".concat(e.direction),"kcv-style-".concat(this.$store.getters["view/appStyle"])],attrs:{id:"".concat(e.applicationId,"-").concat(e.id),ref:"main-container"},style:a()({},e.style,e.mainPanelStyle)},e.name&&{ref:e.name}),this.$slots.default)}})},PANEL:function(e){return S["a"].component("KAppPanel",{render:function(t){return t("div",a()({class:["kcv-panel-container","kcv-dir-".concat(e.direction)],attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},style:Object(c["k"])(e)},e.name&&{ref:e.name}),this.$slots.default)}})},GROUP:function(e){return S["a"].component("KAppGroup",{data:function(){return{}},render:function(t){return t("div",{staticClass:"kcv-group",class:{"text-app-alt-color":e.attributes.altfg,"bg-app-alt-background":e.attributes.altbg,"kcv-wrapper":1===e.components.length,"kcv-group-bottom":e.attributes.bottom},attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},style:e.attributes.hfill?{width:"100%"}:{}},e.attributes.shelf||e.attributes.parentId?[t("div",a()({class:"kcv-group-content",style:Object(c["k"])(e)},e.attributes.scroll&&{attrs:{"data-simplebar":"data-simplebar"}}),this.$slots.default)]:[t("div",{staticClass:"kcv-group-container",class:{"kcv-group-no-label":!e.name}},[e.name?t("div",{class:"kcv-group-legend"},e.name):null,t("div",a()({class:"kcv-group-content",style:Object(c["k"])(e)},e.attributes.scroll&&{attrs:{"data-simplebar":"data-simplebar"}}),this.$slots.default)])])}})},SHELF:function(e){return e.attributes.opened?"true"===e.attributes.opened&&(e.attributes.opened=!0):e.attributes.opened=!1,S["a"].component("KAppShelf",{data:function(){return{opened:e.attributes.opened}},render:function(t){var o=this;return t(ps,{class:"kcv-collapsible",props:a()({opened:o.opened,headerClass:"kcv-collapsible-header",collapseIcon:"mdi-dots-vertical",separator:!1},!e.attributes.parentAttributes.multiple&&{group:e.attributes.parentId},{label:e.name},e.attributes.iconname&&{icon:"mdi-".concat(e.attributes.iconname)}),on:{hide:function(){e.attributes.opened=!1},show:function(){e.attributes.opened=!0}}},this.$slots.default)}})},SEPARATOR:function(e){return S["a"].component("KAppSeparator",{render:function(t){var o=this;return e.attributes.empty?t("hr",{class:"kcv-hr-separator",attrs:{id:"".concat(e.applicationId,"-").concat(e.id)}}):t("div",{class:"kcv-separator",attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},style:Object(c["k"])(e)},[e.attributes.iconname?t(Qe["a"],{class:"kcv-separator-icon",props:{name:"mdi-".concat(e.attributes.iconname),color:"app-main-color"}}):null,e.title?t("div",{class:"kcv-separator-title"},e.title):null,e.attributes.iconbutton?t(Qe["a"],{class:"kcv-separator-right",props:{name:"mdi-".concat(e.attributes.iconbutton),color:"app-main-color"},nativeOn:{click:function(){o.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},e,{components:[]}),booleanValue:!0})}}}):null,e.attributes.info?t(Qe["a"],{class:"kcv-separator-right",props:{name:"mdi-information-outline",color:"app-main-color"},nativeOn:{mouseover:function(){o.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},e,{components:[]}),booleanValue:!0})},mouseleave:function(){o.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},e,{components:[]}),booleanValue:!1})}}}):null])}})},TREE:function(e){var t=[];if(e.tree){var o=e.tree;e.tree.status||(e.tree.status={ticked:[],expanded:[],selected:{}});var n=function n(i){var r=o.values[i],a=Object(Ue["f"])(t,"".concat(e.id,"-").concat(r.id,"-").concat(i));if(!a){a={id:"".concat(e.id,"-").concat(r.id,"-").concat(i),label:r.label,type:r.type,observable:r.id,children:[]};var s=o.links.find(function(e){return e.first===i}).second;if(s===o.rootId)t.push(a);else{var c=n(s);c.children.push(a)}}return a};o.links.forEach(function(e){n(e.first)})}return S["a"].component("KAppTree",{data:function(){return{ticked:e.tree.status.ticked,expanded:e.tree.status.expanded,selected:e.tree.status.selected}},render:function(o){var n=this;return o("div",{class:"kcv-tree-container",style:Object(c["k"])(e)},[e.name?o("div",{class:"kcv-tree-legend"},e.name):null,o(Zt["a"],{class:"kcv-tree",attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},props:{nodes:t,nodeKey:"id",tickStrategy:e.attributes.check?"leaf":"none",ticked:n.ticked,selected:n.selected,expanded:n.expanded,color:"app-main-color",controlColor:"app-main-color",textColor:"app-main-color",dense:!0},on:{"update:ticked":function(t){n.ticked=t,e.tree.status.ticked=t;var o=e.tree,i=(o.status,ts()(o,["status"]));n.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},e,{tree:i,components:[]}),listValue:t})},"update:selected":function(t){n.selected=t,e.tree.status.selected=t},"update:expanded":function(t){n.expanded=t,e.tree.status.expanded=t}}}),e.attributes.tooltip?o(Ze["a"],{props:{anchor:"top right",self:"top left",offset:[6,0]}},[e.attributes.tooltip]):null])}})},LABEL:function(e){return e.attributes.width||(e.attributes.width=c["b"].LABEL_MIN_WIDTH),S["a"].component("KAppText",{data:function(){return{editable:!1,doneFunc:null,result:null,value:null,searchRequestId:0,searchContextId:null,searchTimeout:null,selected:null}},computed:{searchResult:function(){return this.$store.getters["data/searchResult"]},isSearch:function(){return"search"===e.attributes.tag&&this.editable}},methods:{search:function(e,t){var o=this;this.searchRequestId+=1,this.sendStompMessage(p["a"].SEARCH_REQUEST({requestId:this.searchRequestId,contextId:this.searchContextId,maxResults:-1,cancelSearch:!1,defaultResults:""===e,searchMode:c["G"].FREETEXT,queryString:e},this.$store.state.data.session).body),this.doneFunc=t,this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){o.$q.notify({message:o.$t("errors.searchTimeout"),type:"warning",icon:"mdi-alert",timeout:2e3}),o.doneFunc&&o.doneFunc([])},"4000")},autocompleteSelected:function(e){e&&(this.selected=e)},sendSelected:function(){this.sendStompMessage(p["a"].SEARCH_MATCH({contextId:this.searchContextId,matchIndex:this.selected.matchIndex,matchId:this.selected.id,added:!0},this.$store.state.data.session).body)},init:function(){this.doneFunc=null,this.result=null,this.value=null,this.searchRequestId=0,this.searchContextId=null,this.searchTimeout=null,this.selected=null}},watch:{searchResult:function(e){var t=this;if(this.isSearch){this.searchTimeout&&(clearTimeout(this.searchTimeout),this.searchTimeout=null);var o=e.requestId,n=e.contextId;if(null===this.searchContextId)this.searchContextId=n;else if(n!==this.searchContextId)return;if(this.searchRequestId===o){var i;null!==this.result&&this.result.requestId===o&&(i=e.matches).push.apply(i,I()(this.result.matches)),this.result=e;var r=this.result,a=r.matches,s=r.error,p=r.errorMessage;if(s)this.$q.notify({message:p,type:"error",icon:"mdi-alert",timeout:2e3});else{var l=[];a.forEach(function(e){var t=c["x"][e.matchType];if("undefined"!==typeof t){var o=t;if(null!==e.mainSemanticType){var n=c["H"][e.mainSemanticType];"undefined"!==typeof n&&(o=n)}l.push({value:e.name,label:e.name,labelLines:1,sublabel:e.description,sublabelLines:4,letter:o.symbol,leftInverted:!0,leftColor:o.color,rgb:o.rgb,id:e.id,matchIndex:e.index,selected:!1,disable:e.state&&"FORTHCOMING"===e.state,separator:!1})}else console.warn("Unknown type: ".concat(e.matchType))}),0===l.length&&this.$q.notify({message:this.$t("messages.noSearchResults"),type:"info",icon:"mdi-information",timeout:1e3}),S["a"].nextTick(function(){t.doneFunc(l)})}}else console.warn("Result discarded for bad request id: actual: ".concat(this.searchRequestId," / received: ").concat(o,"\n"))}}},render:function(t){var o=this,n=this;return this.isSearch?t(us["a"],{class:["kcv-text-input","kcv-form-element","kcv-search"],style:Object(c["k"])(e),attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},props:{value:n.value,color:"app-main-color",hideUnderline:!0,dense:!0,type:n.type,autofocus:!0},on:{keydown:function(e){27===e.keyCode&&(o.editable=!1,o.doneFunc&&(o.doneFunc(),o.doneFunc=null),o.$store.dispatch("view/searchInApp",!1),e.stopPropagation(),n.init()),13===e.keyCode&&o.selected&&(o.$store.dispatch("view/searchInApp",!1),o.editable=!1,n.sendSelected(),n.init())},input:function(e){n.value=e},blur:function(){o.$store.dispatch("view/searchInApp",!1),o.editable=!1},focus:function(){o.$store.dispatch("view/searchInApp",!0)}}},[t(Ve["a"],{props:{debounce:400,"min-characters":4},on:{search:function(e,t){n.search(e,t)},selected:function(e,t){n.autocompleteSelected(e,t)}}})]):t("div",a()({staticClass:"kcv-label",class:{"kcv-title":e.attributes.tag&&("title"===e.attributes.tag||"search"===e.attributes.tag),"kcv-clickable":"true"!==e.attributes.disabled&&"search"===e.attributes.tag,"kcv-ellipsis":e.attributes.ellipsis,"kcv-with-icon":e.attributes.iconname,"kcv-label-error":e.attributes.error,"kcv-label-info":e.attributes.info,"kcv-label-waiting":e.attributes.waiting},attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},style:Object(c["k"])(e)},"true"!==e.attributes.disabled&&"search"===e.attributes.tag&&{on:{click:function(){o.editable=!0,o.$store.dispatch("view/searchInApp",!0)}}}),[e.attributes.iconname?t(Qe["a"],{class:["kcv-label-icon",e.attributes.toggle?"kcv-label-toggle":""],props:{name:"mdi-".concat(e.attributes.iconname),color:"app-main-color"}}):null,e.content,e.attributes.tooltip?t(Ze["a"],{props:{anchor:"top right",self:"top left",offset:[6,0]}},"true"===e.attributes.tooltip?e.content:e.attributes.tooltip):null])}})},TEXT_INPUT:function(e){return S["a"].component("KAppTextInput",{data:function(){return{component:e,value:e.content,type:e.attributes.type||"number"}},render:function(t){var o=this;return t(us["a"],{class:["kcv-text-input","kcv-form-element","textarea"===e.attributes.type&&"kcv-textarea"],style:Object(c["k"])(e),attrs:{id:"".concat(e.applicationId,"-").concat(e.id),rows:e.attributes.rows||1},props:{value:o.value,color:"app-main-color",hideUnderline:!0,dense:!0,type:o.type,disable:"true"===e.attributes.disabled},on:{keydown:function(e){e.stopPropagation()},input:function(t){o.value=t,e.content=t,o.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},e,{components:[]}),stringValue:t})}}})}})},COMBO:function(e){return S["a"].component("KAppCombo",{data:function(){return{component:e,value:e.attributes.selected?e.choices.find(function(t){return t.first===e.attributes.selected}).first:e.choices[0].first}},render:function(t){var o=this;return t(bs["a"],{class:["kcv-combo","kcv-form-element"],style:Object(c["k"])(e),attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},props:{value:o.value,options:e.choices.map(function(e){return{label:e.first,value:e.second,className:"kcv-combo-option"}}),color:"app-text-color",popupCover:!1,dense:!0,disable:"true"===e.attributes.disabled,dark:"dark"===this.$store.getters["view/appStyle"]},on:{change:function(t){o.value=t,e.attributes.selected=o.value,o.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},e,{components:[]}),stringValue:t})}}})}})},PUSH_BUTTON:function(e){return S["a"].component("KAppPushButton",{data:function(){return{state:null}},watch:{state:function(){var t=this;e.attributes.timeout&&setTimeout(function(){delete e.attributes.error,delete e.attributes.waiting,delete e.attributes.done,t.state=null},e.attributes.timeout)}},render:function(t){var o=this,n=e.attributes.iconname&&!e.name;this.state=e.attributes.waiting?"waiting":e.attributes.computing?"computing":e.attributes.error?"error":e.attributes.done?"done":null;var i=e.attributes.waiting?"app-background-color":e.attributes.computing?"app-alt-color":e.attributes.error?"app-negative-color":e.attributes.done?"app-positive-color":"app-background-color";return t(ds["a"],{class:[n?"kcv-roundbutton":"kcv-pushbutton","kcv-form-element","breset"===e.attributes.tag?"kcv-reset-button":""],style:a()({},Object(c["k"])(e),e.attributes.timeout&&{"--button-icon-color":"app-background-color","--flash-color":e.attributes.error?"var(--app-negative-color)":e.attributes.done?"var(--app-positive-color)":"var(--app-main-color)",animation:"flash-button ".concat(e.attributes.timeout,"ms")}||{"--button-icon-color":"var(--".concat(i,")")}),attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},props:a()({},e.name&&{label:e.name,"text-color":"app-control-text-color"},{color:e.attributes.color?e.attributes.color:"app-main-color"},n&&{round:!0,dense:!0,flat:!0},{noCaps:!0,disable:"true"===e.attributes.disabled},"error"===this.state&&{icon:"mdi-alert-circle"}||"done"===this.state&&{icon:"mdi-check-circle"}||e.attributes.iconname&&{icon:"mdi-".concat(e.attributes.iconname)},"waiting"===this.state&&{loading:!0}),on:{click:function(){o.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},e,{components:[]})})}}},[e.attributes.tooltip?t(Ze["a"],{props:{anchor:"bottom left",self:"top left",offset:[10,0],delay:600}},"true"===e.attributes.tooltip?e.content:e.attributes.tooltip):null])}})},CHECK_BUTTON:function(e){return S["a"].component("KAppCheckButton",{data:function(){return{value:!!e.attributes.checked,component:e}},render:function(t){var o=this,n=e.attributes.waiting?"waiting":e.attributes.computing?"computing":e.attributes.error?"error":e.attributes.done?"done":null,i=e.attributes.error?"app-negative-color":e.attributes.done?"app-positive-color":"app-main-color";return t("div",{class:["kcv-checkbutton","kcv-form-element","text-".concat(i),"kcv-check-".concat(n),""===e.name?"kcv-check-only":"kcv-check-with-label"],style:Object(c["k"])(e)},[t(oo["a"],{props:a()({value:o.value,color:i,keepColor:!0,label:e.name,disable:"true"===e.attributes.disabled},e.attributes.waiting&&{"checked-icon":"mdi-loading","unchecked-icon":"mdi-loading",readonly:!0},e.attributes.computing&&{"checked-icon":"mdi-cog-outline","unchecked-icon":"mdi-cog-outline",readonly:!0}),attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},on:{input:function(t){o.value=t,e.attributes.checked=t,o.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},e,{components:[]}),booleanValue:t})}}}),e.attributes.tooltip?t(Ze["a"],{props:{anchor:"top left",self:"top right",offset:[e.attributes.width?52:0,0]}},"true"===e.attributes.tooltip?e.name:e.attributes.tooltip):null,e.attributes.error&&"true"!==e.attributes.error?t(Ze["a"],{class:"kcv-error-tooltip",props:{anchor:"bottom left",self:"top left",offset:[-10,0]}},e.attributes.error):null])}})},RADIO_BUTTON:function(e){return S["a"].component("KAppRadioButton",{data:function(){return{value:null,component:e}},render:function(t){var o=this;return t("div",{class:["kcv-checkbutton","kcv-form-element"],style:Object(c["k"])(e)},[t(ls["a"],{props:{val:!1,value:!1,color:"app-main-color",label:e.name},attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},on:{input:function(t){o.value=t,o.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},e,{components:[]}),booleanValue:t})}}})])}})},TEXT:function(e){return S["a"].component("KAppText",{data:function(){return{collapsed:!1}},render:function(t){var o=this;return t("div",{staticClass:"kcv-text",class:{"kcv-collapse":e.attributes.collapse,"kcv-collapsed":o.collapsed},attrs:{"data-simplebar":"data-simplebar"},style:Object(c["k"])(e)},[t("div",{staticClass:"kcv-internal-text",attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},domProps:{innerHTML:e.content}}),e.attributes.collapse?t("div",{staticClass:"kcv-collapse-button",on:{click:function(){o.collapsed=!o.collapsed}}},[t(Qe["a"],{staticClass:"kcv-collapse-icon",props:{name:o.collapsed?"mdi-arrow-down":"mdi-arrow-up",color:"app-main-color",size:"sm"}})]):null])}})},BROWSER:function(e){return S["a"].component("KBrowswer",{mounted:function(){},render:function(t){var o=e.content.startsWith("http")?e.content:"".concat("").concat("/modeler").concat(e.content);return t("iframe",{class:"kcv-browser",attrs:{id:"".concat(e.applicationId,"-").concat(e.id),width:e.attributes.width||"100%",height:e.attributes.height||"100%",frameBorder:"0",src:o},style:a()({},Object(c["k"])(e),{position:"absolute",top:0,bottom:0,left:0,right:0})})}})},UNKNOWN:function(e){return S["a"].component("KAppUnknown",{render:function(t){return t("div",{class:"kcv-unknown",attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},style:Object(c["k"])(e)},e.type)}})}};function hs(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return[];if(e.type===c["a"].VIEW)return t(Ms.LAYOUT);var n,i=null;switch(e.attributes.parentAttributes&&e.attributes.parentAttributes.shelf&&(i=Ms.SHELF(e)),e.type){case null:var r=o.mainPanelStyle,s=void 0===r?{}:r,p=o.direction,l=void 0===p?"vertical":p;n=Ms.MAIN(a()({},e,{mainPanelStyle:s,direction:l}));break;case c["a"].PANEL:n=Ms.PANEL(e);break;case c["a"].SEPARATOR:n=Ms.SEPARATOR(e);break;case c["a"].LABEL:n=Ms.LABEL(e);break;case c["a"].TEXT_INPUT:n=Ms.TEXT_INPUT(e);break;case c["a"].PUSH_BUTTON:n=Ms.PUSH_BUTTON(e);break;case c["a"].CHECK_BUTTON:n=Ms.CHECK_BUTTON(e);break;case c["a"].RADIO_BUTTON:n=Ms.RADIO_BUTTON(e);break;case c["a"].TREE:n=Ms.TREE(e);break;case c["a"].GROUP:n=Ms.GROUP(e),e.components&&e.components.length>0&&e.components.forEach(function(t){t.attributes.parentId=e.id,t.attributes.parentAttributes=e.attributes});break;case c["a"].TEXT:n=Ms.TEXT(e);break;case c["a"].COMBO:n=Ms.COMBO(e);break;case c["a"].BROWSER:n=Ms.BROWSER(e);break;default:n=Ms.UNKNOWN(e)}var u=[];return e.components&&e.components.length>0&&e.components.forEach(function(e){u.push(hs(e,t))}),i?t(i,{},[t(n,{},u)]):t(n,{},u)}var fs,zs,Os=K["b"].height,As={name:"KlabAppViewer",props:{component:{type:Object,required:!0},props:{type:Object,default:null},direction:{type:String,validator:function(e){return["horizontal","vertical"].includes(e)},default:"vertical"},mainPanelStyle:{type:Object,default:function(){return{}}}},data:function(){return{mainContainerHeight:void 0}},computed:{},methods:{calculateMinHeight:function(){this.$nextTick(function(){for(var e=document.querySelectorAll(".kcv-group-bottom"),t=0,o=0;o0},set:function(){}},showRightPanel:{get:function(){return this.layout&&this.layout.rightPanels.length>0},set:function(){}},leftPanelWidth:function(){return this.layout&&this.layout.leftPanels&&this.layout.leftPanels.length>0&&this.layout.leftPanels[0].attributes.width?parseInt(this.layout.leftPanels[0].attributes.width,10):512},rightPanelWidth:function(){return this.layout&&this.layout.rightPanels&&this.layout.rightPanels.length>0&&this.layout.rightPanels[0].attributes.width?parseInt(this.layout.rightPanels[0].attributes.width,10):512},mainPanelStyle:function(){return{width:this.header.width-this.leftPanel.width-this.rightPanel.width,height:this.leftPanel.height}},idSuffix:function(){return null!==this.layout?this.layout.applicationId:"default"},modalDimensions:function(){return this.isModal?{width:this.modalWidth,height:this.modalHeight,"min-height":this.modalHeight}:{}}}),methods:{setLogoImage:function(){this.layout&&this.layout.logo?this.logoImage="".concat("").concat(L["c"].REST_GET_PROJECT_RESOURCE,"/").concat(this.layout.projectId,"/").concat(this.layout.logo.replace("/",":")):this.logoImage=c["b"].DEFAULT_LOGO},setStyle:function(){var e=this,t=null;if(null===this.layout)t=c["j"].default;else{if(t=a()({},this.layout.style&&c["j"][this.layout.style]?c["j"][this.layout.style]:c["j"].default),this.layout.styleSpecs)try{var o=JSON.parse(this.layout.styleSpecs);t=a()({},t,o)}catch(e){console.error("Error parsing style specs",e)}var n=(this.layout.leftPanels.length>0&&this.layout.leftPanels[0].attributes.width?parseInt(this.layout.leftPanels[0].attributes.width,10):0)+(this.layout.rightPanels.length>0&&this.layout.rightPanels[0].attributes.width?parseInt(this.layout.rightPanels[0].attributes.width,10):0);0!==n&&document.documentElement.style.setProperty("--body-min-width","calc(640px + ".concat(n,"px)"))}null!==t&&Object.keys(t).forEach(function(o){var n=t[o];if("density"===o)switch(o="line-height",t.density){case"default":n=1;break;case"confortable":n=1.5;break;case"compact":n=.5;break;default:n=1}if(document.documentElement.style.setProperty("--app-".concat(o),n),o.includes("color"))try{var i=Object(He["e"])(n);if(i&&i.rgb){var r=e.layout&&"dark"===e.layout.style?-1:1;document.documentElement.style.setProperty("--app-rgb-".concat(o),"".concat(i.rgb.r,",").concat(i.rgb.g,",").concat(i.rgb.b)),document.documentElement.style.setProperty("--app-highlight-".concat(o),ys("rgb(".concat(i.rgb.r,",").concat(i.rgb.g,",").concat(i.rgb.b,")"),-15*r)),document.documentElement.style.setProperty("--app-darklight-".concat(o),ys("rgb(".concat(i.rgb.r,",").concat(i.rgb.g,",").concat(i.rgb.b,")"),-5*r)),document.documentElement.style.setProperty("--app-darken-".concat(o),ys("rgb(".concat(i.rgb.r,",").concat(i.rgb.g,",").concat(i.rgb.b,")"),-20*r)),document.documentElement.style.setProperty("--app-lighten-".concat(o),ys("rgb(".concat(i.rgb.r,",").concat(i.rgb.g,",").concat(i.rgb.b,")"),20*r)),document.documentElement.style.setProperty("--app-lighten90-".concat(o),ys("rgb(".concat(i.rgb.r,",").concat(i.rgb.g,",").concat(i.rgb.b,")"),90*r)),document.documentElement.style.setProperty("--app-lighten75-".concat(o),ys("rgb(".concat(i.rgb.r,",").concat(i.rgb.g,",").concat(i.rgb.b,")"),75*r))}}catch(e){console.warn("Error trying to parse a color from the layout style: ".concat(o,": ").concat(n))}}),this.$nextTick(function(){var e=document.querySelector(".kapp-left-inner-container");e&&new Ae(e);var t=document.querySelector(".kapp-right-inner-container");t&&new Ae(t)})},updateLayout:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.setLogoImage();var o=document.querySelector(".kapp-main.kapp-header-container");this.header.height=o?_s(o):0,this.header.width=window.innerWidth,this.leftPanel.height=window.innerHeight-this.header.height;var n=document.querySelector(".kapp-main.kapp-left-container aside");this.leftPanel.width=n?qs(n):0,this.rightPanel.height=window.innerHeight-this.header.height;var i=document.querySelector(".kapp-main.kapp-right-container aside");this.rightPanel.width=i?qs(i):0,this.$nextTick(function(){e.$eventBus.$emit(c["h"].MAP_SIZE_CHANGED,{type:"changelayout",align:e.layout&&e.layout.leftPanels.length>0?"right":"left"})}),this.setStyle(),t&&this.$eventBus.$emit(c["h"].SHOW_NOTIFICATIONS,{apps:null!==this.layout?[this.layout.name]:[],groups:this.sessionReference&&this.sessionReference.owner&&this.sessionReference.owner.groups?this.sessionReference.owner.groups.map(function(e){return e.id}):[]})},downloadListener:function(e){var t=e.url,o=e.parameters;this.$axios.get("".concat("").concat("/modeler").concat(t),{params:{format:"RAW"},responseType:"blob"}).then(function(e){var t=document.createElement("a");t.href=URL.createObjectURL(e.data),t.setAttribute("download",o.filename||"output_".concat((new Date).getTime())),document.body.appendChild(t),t.click(),t.remove(),setTimeout(function(){return URL.revokeObjectURL(t.href)},5e3)}).catch(function(e){console.error(e)})},clickOnMenu:function(e,t){if(t&&window.open(t),this.layout){var o=this.layout,n=o.applicationId,i=o.identity;this.sendStompMessage(p["a"].MENU_ACTION({identity:i,applicationId:n,menuId:e},this.$store.state.data.session).body)}},resetContextListener:function(){var e=this;null!==this.resetTimeout&&(clearTimeout(this.resetTimeout),this.resetTimeout=null),this.blockApp=!0,this.resetTimeout=setTimeout(function(){e.blockApp=!1,e.resetTimeout=null},1e3)},viewActionListener:function(){null!==this.resetTimeout&&this.resetContextListener()},updateListeners:function(){null!==this.layout?this.isRootLayout&&(this.$eventBus.$on(c["h"].RESET_CONTEXT,this.resetContextListener),this.$eventBus.$on(c["h"].VIEW_ACTION,this.viewActionListener),this.$eventBus.$on(c["h"].COMPONENT_ACTION,this.componentClickedListener)):(this.$eventBus.$off(c["h"].RESET_CONTEXT,this.resetContextListener),this.$eventBus.$off(c["h"].VIEW_ACTION,this.viewActionListener),this.$eventBus.$off(c["h"].COMPONENT_ACTION,this.componentClickedListener))},componentClickedListener:function(e){delete e.component.attributes.parentAttributes,delete e.component.attributes.parentId,this.sendStompMessage(p["a"].VIEW_ACTION(a()({},Ws,e),this.$store.state.data.session).body)}},watch:{layout:function(e,t){var o=this,n=null!==e&&(null===t||e.applicationId!==t.applicationId);if((null===e||!this.isApp&&n)&&(this.$nextTick(function(){o.updateLayout(!0)}),null!==t&&null!==t.name)){this.sendStompMessage(p["a"].RUN_APPLICATION({applicationId:t.name,stop:!0},this.$store.state.data.session).body);var i=localStorage.getItem(c["R"].LOCAL_STORAGE_APP_ID);i&&i===t.name&&localStorage.removeItem(c["R"].LOCAL_STORAGE_APP_ID)}null===t&&this.updateListeners()}},created:function(){},mounted:function(){this.updateLayout(!0),this.updateListeners(),this.$eventBus.$on(c["h"].DOWNLOAD_URL,this.downloadListener)},beforeDestroy:function(){this.$eventBus.$off(c["h"].DOWNLOAD_URL,this.downloadListener),this.$eventBus.$off(c["h"].RESET_CONTEXT,this.resetContextListener),this.$eventBus.$off(c["h"].VIEW_ACTION,this.viewActionListener)}},ws=Rs,Ls=(o("4b0d"),Object(A["a"])(ws,ae,se,!1,null,null,null));Ls.options.__file="KlabLayout.vue";var Cs=Ls.exports,Ss=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("q-modal",{attrs:{"content-classes":"km-main-container","no-esc-dismiss":"","no-backdrop-dismiss":""},model:{value:e.open,callback:function(t){e.open=t},expression:"open"}},[o("q-modal-layout",{staticClass:"km-modal-window"},[e.modal.label?o("q-toolbar",{staticClass:"km-title",attrs:{slot:"header"},slot:"header"},[o("q-toolbar-title",[e._v(e._s(e.modal.label))]),e.modal.subtitle?o("span",{staticClass:"km-subtitle",attrs:{slot:"subtitle"},slot:"subtitle"},[e._v(e._s(e.modal.subtitle))]):e._e()],1):e._e(),o("klab-layout",{staticClass:"km-content",attrs:{layout:e.modal,isModal:!0,"modal-width":e.width,"modal-height":e.height}}),o("div",{staticClass:"km-buttons justify-end row"},[o("q-btn",{staticClass:"klab-button",attrs:{label:e.$t("label.appClose")},on:{click:e.close}})],1)],1)],1)},Es=[];Ss._withStripped=!0;var Ts={name:"KlabModalWindow",props:{modal:{type:Object,required:!0}},components:{KlabLayout:Cs},data:function(){return{instance:void 0}},computed:{open:{get:function(){return null!==this.modal},set:function(e){e||this.close()}},width:function(){return this.modal&&("".concat(this.modal.panels[0].attributes.width,"px")||!1)},height:function(){return this.modal&&("".concat(this.modal.panels[0].attributes.height,"px")||!1)}},methods:a()({},Object(s["b"])("view",["setModalWindow"]),{close:function(){this.setModalWindow(null)}})},xs=Ts,Ns=(o("a4c5"),Object(A["a"])(xs,Ss,Es,!1,null,null,null));Ns.options.__file="KlabModalWindow.vue";var Bs=Ns.exports,ks=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{directives:[{name:"show",rawName:"v-show",value:e.showHelp,expression:"showHelp"}],staticClass:"modal fullscreen",attrs:{id:"modal-show-help"}},[o("div",{staticClass:"modal-backdrop absolute-full"}),o("div",{ref:"kp-help-container",staticClass:"klab-modal-container",style:{width:e.modalSize.width+"px",height:e.modalSize.height+"px",transform:"translate(-50%, -50%) scale("+e.scale+", "+e.scale+") !important"}},[o("div",{ref:"kp-help-inner",staticClass:"klab-modal-inner"},[o("div",{staticClass:"klab-modal-content full-height"},[o("div",{staticClass:"kp-help-titlebar"},e._l(e.presentations,function(t,n){return o("div",{key:"kp-pres-"+n,staticClass:"kp-link",class:{"kp-link-current":n===e.activeSectionIndex},attrs:{id:"kp-pres-"+n},on:{click:function(t){n!==e.activeSectionIndex&&e.loadPresentation(n)}}},[o("span",[e._v(e._s(t.linkTitle))])])})),e.presentationBlocked?e._e():o("q-carousel",{ref:"kp-carousel",staticClass:"kp-carousel full-height",attrs:{color:"white","no-swipe":""},on:{"slide-trigger":e.initStack}},e._l(e.activePresentation,function(t,n){return o("q-carousel-slide",{key:"kp-slide-"+n,staticClass:"kp-slide full-height"},[o("div",{staticClass:"kp-main-content"},[t.stack.layers&&t.stack.layers.length>0?o("klab-stack",{ref:"kp-stack",refInFor:!0,attrs:{presentation:e.presentations[e.activeSectionIndex],"owner-index":n,maxOwnerIndex:e.activePresentation.length,stack:t.stack,"on-top":e.currentSlide===n},on:{stackend:e.stackEnd}}):o("div",[e._v("No slides")]),t.title?o("div",{staticClass:"kp-main-title",domProps:{innerHTML:e._s(t.title)}}):e._e()],1)])}))],1),o("div",{staticClass:"kp-nav-tooltip",class:{visible:""!==e.tooltipTitle},domProps:{innerHTML:e._s(e.tooltipTitle)}}),o("div",{staticClass:"kp-navigation"},[o("div",{staticClass:"kp-nav-container"},e._l(e.activePresentation,function(t,n){return o("div",{key:"kp-nav-"+n,staticClass:"kp-navnumber-container",on:{click:function(t){e.goTo(n,0)},mouseover:function(o){e.showTitle(t.title)},mouseleave:function(t){e.showTitle("")}}},[o("div",{staticClass:"kp-nav-number",class:{"kp-nav-current":e.currentSlide===n}},[e._v(e._s(n+1))])])}))]),o("div",{staticClass:"kp-btn-container"},[o("q-checkbox",{staticClass:"kp-checkbox",attrs:{"keep-color":!0,color:"grey-8",label:e.$t("label.rememberDecision"),"left-label":!0},model:{value:e.remember,callback:function(t){e.remember=t},expression:"remember"}})],1),o("q-btn",{directives:[{name:"show",rawName:"v-show",value:1!==e.scale,expression:"scale !== 1"}],staticClass:"kp-icon-refresh-size",attrs:{icon:"mdi-refresh",color:"mc-main",size:"md",title:e.$t("label.refreshSize"),round:"",flat:""},on:{click:e.refreshSize}}),o("q-btn",{staticClass:"kp-icon-close-popover",attrs:{icon:"mdi-close-circle-outline",color:"grey-8",size:"md",title:e.$t("label.appClose"),round:"",flat:""},on:{click:e.hideHelp}})],1),e.waitForPresentation||e.presentationBlocked?o("div",{staticClass:"kp-help-inner",class:{"modal-backdrop":!e.presentationBlocked&&e.waitForPresentation}},[e.presentationBlocked?o("div",{staticClass:" kp-no-presentation"},[o("div",{staticClass:"fixed-center text-center"},[o("div",{staticClass:"kp-np-content",domProps:{innerHTML:e._s(e.$t("messages.presentationBlocked"))}}),o("q-btn",{attrs:{flat:"","no-caps":"",icon:"mdi-refresh",label:e.$t("label.appRetry")},on:{click:e.initPresentation}})],1)]):e.waitForPresentation?o("q-spinner",{staticClass:"fixed-center",attrs:{color:"mc-yellow",size:40}}):e._e()],1):e._e()])])},Ps=[];ks._withStripped=!0;o("55dd"),o("28a5");var Ds=function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.layers.length>0?o("div",{ref:"ks-stack-container",staticClass:"ks-stack-container"},[e._l(e.layers,function(t,n){return o("div",{key:"ks-layer-"+n,ref:"ks-layer",refInFor:!0,staticClass:"ks-layer",class:{"ks-top-layer":e.selectedLayer===n,"ks-hide-layer":e.selectedLayer!==n},style:{"z-index":e.selectedLayer===n?9999:e.layers.length-n},attrs:{id:"ks-layer-"+e.ownerIndex+"-"+n}},[t.image?o("div",{staticClass:"ks-layer-image",class:e.elementClasses(t.image),style:e.elementStyle(t.image)},[o("img",{style:{width:t.image.width||"auto",height:t.image.height||"auto","max-width":e.imgMaxSize.width,"max-height":e.imgMaxSize.height},attrs:{src:e.getImage(t),alt:t.image.alt||t.title||t.text,title:t.image.alt||t.title||t.text,id:"ks-image-"+e.ownerIndex+"-"+n}})]):e._e(),t.title||t.text?o("div",{staticClass:"ks-layer-caption",class:e.elementClasses(t.textDiv),style:e.elementStyle(t.textDiv)},[t.title?o("div",{staticClass:"ks-caption-title",domProps:{innerHTML:e._s(e.rewriteImageUrl(t.title))}}):e._e(),t.text?o("div",{staticClass:"ks-caption-text",style:{"text-align":t.textAlign||"left"},domProps:{innerHTML:e._s(e.rewriteImageUrl(t.text))}}):e._e()]):e._e()])}),o("div",{staticClass:"ks-navigation",class:{"ks-navigation-transparent":null!==e.animation}},[o("q-btn",{attrs:{id:"ks-prev",disable:!e.hasPrevious,"text-color":"grey-8",icon:"mdi-chevron-left",round:"",flat:"",dense:"",title:e.$t("label.appPrevious")},on:{click:e.previous}}),o("q-btn",{attrs:{id:"ks-play-stop",disable:!e.hasNext,"text-color":"grey-8",icon:null===e.animation?"mdi-play":"mdi-pause",round:"",flat:"",dense:"",title:null===e.animation?e.$t("label.appPlay"):e.$t("label.appPause")},on:{click:function(t){null===e.animation?e.playStack():e.stopStack()}}}),o("q-btn",{attrs:{id:"ks-replay",disable:!e.isGif,"text-color":"grey-8",icon:"mdi-reload",round:"",flat:"",dense:"",title:e.$t("label.appReplay")},on:{click:function(t){e.refreshLayer(e.layers[e.selectedLayer])}}}),o("q-btn",{attrs:{id:"ks-next",disable:!e.hasNext,"text-color":"grey-8",icon:"mdi-chevron-right",round:"",flat:"",dense:"",title:e.$t("label.appNext")},on:{click:e.next}})],1)],2):e._e()},Is=[];Ds._withStripped=!0;o("aef6");var Xs={name:"KlabStack",props:{presentation:{type:Object,required:!0},ownerIndex:{type:Number,required:!0},maxOwnerIndex:{type:Number,required:!0},stack:{type:Object,required:!0},onTop:{type:Boolean,default:!1}},data:function(){return{selectedLayer:0,animation:null,layers:this.stack.layers,animated:"undefined"!==typeof this.stack.animated&&this.stack.animated,autostart:"undefined"!==typeof this.stack.autostart?this.stack.autostart:0===this.ownerIndex,duration:this.stack.duration||5e3,infinite:"undefined"!==typeof this.stack.infinite&&this.stack.infinite,initialSize:{},scale:1,imgMaxSize:{width:"auto",height:"auto"}}},computed:{hasPrevious:function(){return this.selectedLayer>0||this.ownerIndex>0||this.infinite},hasNext:function(){return this.selectedLayer0?this.goTo(this.selectedLayer-1):this.infinite?this.goTo(this.layers.length-1):this.$emit("stackend",{index:this.ownerIndex,direction:-1})},reloadGif:function(e){var t=document.getElementById("ks-image-".concat(this.ownerIndex,"-").concat(this.selectedLayer));t&&(t.src=this.getImage(e))},setAnimation:function(e){if(this.hasNext){var t=this;null!==this.animation&&(clearTimeout(this.animation),this.animation=null),this.animation=setTimeout(function(){t.next()},e)}},getImage:function(e){return e.image?"".concat(this.baseUrl,"/").concat(e.image.url,"?t=").concat(Math.random()):""},rewriteImageUrl:function(e){return e&&e.length>0&&-1!==e.indexOf("0?t0&&this.goTo(t-1,"last")},refreshSize:function(){this.initialSize=void 0,this.onResize()},onResize:function(){var e=this;setTimeout(function(){if("undefined"===typeof e.initialSize){var t=window.innerWidth,o=window.innerHeight;e.initialSize={width:t,height:o}}if(e.scale=Math.min(window.innerWidth/e.initialSize.width,window.innerHeight/e.initialSize.height),1===e.scale){var n=window.innerWidth*c["s"].DEFAULT_WIDTH_PERCENTAGE/100,i=n/c["s"].DEFAULT_PROPORTIONS.width*c["s"].DEFAULT_PROPORTIONS.height,r=window.innerHeight*c["s"].DEFAULT_HEIGHT_PERCENTAGE/100,a=r/c["s"].DEFAULT_PROPORTIONS.height*c["s"].DEFAULT_PROPORTIONS.width;n0){var r=0;i.forEach(function(o,n){r+=1,Vs()("".concat(e.helpBaseUrl,"/index.php?sec=").concat(o.id),{param:"callback"},function(i,a){i?console.error(i.message):t.presentations.push({id:o.id,baseFolder:o.baseFolder,linkTitle:o.name,linkDescription:o.description,slides:a,index:n}),r-=1,0===r&&(e.presentationsLoading=!1,e.presentations.sort(function(e,t){return e.index-t.index}))})})}}})}catch(e){console.error("Error loading presentation: ".concat(e.message)),this.presentationsLoading=!1,this.presentationBlocked=e}}}),watch:{showHelp:function(e){this.$store.state.view.helpShown=e,e&&!this.presentationsLoading&&this.loadPresentation(0)},presentationsLoading:function(e){!e&&this.showHelp&&this.loadPresentation(0)},remember:function(e){e?G["a"].set(c["R"].COOKIE_HELP_ON_START,!1,{expires:30,path:"/",secure:!0}):G["a"].remove(c["R"].COOKIE_HELP_ON_START)}},created:function(){this.initPresentation()},mounted:function(){this.needHelp=this.isLocal&&!G["a"].has(c["R"].COOKIE_HELP_ON_START),this.remember=!this.needHelp,this.$eventBus.$on(c["h"].NEED_HELP,this.helpNeededEvent),window.addEventListener("resize",this.onResize)},beforeDestroy:function(){this.$eventBus.$off(c["h"].NEED_HELP,this.helpNeededEvent),window.removeEventListener("resize",this.onResize)}},Ks=Gs,$s=(o("edad"),Object(A["a"])(Ks,ks,Ps,!1,null,null,null));$s.options.__file="KlabPresentation.vue";var Ys=$s.exports,Js=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("q-dialog",{staticClass:"kn-modal-container",attrs:{"prevent-close":""},scopedSlots:e._u([{key:"buttons",fn:function(t){return[o("q-checkbox",{staticClass:"kn-checkbox",attrs:{"keep-color":!0,color:"app-main-color",label:e.$t("label.rememberDecision")},model:{value:e.remember,callback:function(t){e.remember=t},expression:"remember"}}),o("q-btn",{attrs:{color:"app-main-color",label:e.$t("label.appAccept")},on:{click:e.onOk}})]}}]),model:{value:e.showNotifications,callback:function(t){e.showNotifications=t},expression:"showNotifications"}},[o("div",{staticClass:"kn-title",attrs:{slot:"title"},domProps:{innerHTML:e._s(e.actualNotification.title)},slot:"title"}),o("div",{staticClass:"kn-content",attrs:{slot:"message"},domProps:{innerHTML:e._s(e.actualNotification.content)},slot:"message"})])},Qs=[];Js._withStripped=!0;var Zs={name:"KlabNotifications",data:function(){return{notifications:[],actualNotificationIndex:-1,remember:!1,cooked:[]}},computed:a()({},Object(s["c"])("stomp",["connectionUp"]),Object(s["c"])("view",["isInModalMode"]),{showNotifications:{get:function(){return-1!==this.actualNotificationIndex&&!this.actualNotificationIndex.read},set:function(){}},actualNotification:function(){return-1===this.actualNotificationIndex?{id:-1,title:"",content:""}:this.notifications[this.actualNotificationIndex]}}),methods:a()({},Object(s["b"])("view",["setModalMode"]),{onOk:function(){var e=this,t=this.notifications[this.actualNotificationIndex];t.read=!0,this.remember&&(this.cooked.findIndex(function(e){return e===t.id})&&this.cooked.push(t.id),G["a"].set(c["R"].COOKIE_NOTIFICATIONS,this.cooked,{expires:365,path:"/",secure:!0}),this.remember=!1),this.$nextTick(function(){do{e.actualNotificationIndex+=1}while(e.actualNotificationIndex0&&void 0!==arguments[0]?arguments[0]:{};this.notificationsLoading=!0,G["a"].has(c["R"].COOKIE_NOTIFICATIONS)&&(this.cooked=G["a"].get(c["R"].COOKIE_NOTIFICATIONS)),this.notifications.splice(0,this.notifications.length);try{var o="";if(t){var n=t.groups,i=t.apps;o=I()(n.map(function(e){return"groups[]=".concat(e)})).concat(I()(i.map(function(e){return"apps[]=".concat(e)}))).join("&")}var r=this;Vs()("".concat(c["d"].NOTIFICATIONS_URL).concat(""!==o?"?".concat(o):""),{param:"callback",timeout:5e3},function(t,o){t?console.error("Error loading notifications: ".concat(t.message)):o.length>0?o.forEach(function(e,t){var o=-1!==r.cooked.findIndex(function(t){return t==="".concat(e.id)});r.notifications.push(a()({},e,{read:o})),-1!==r.actualNotificationIndex||o||(r.actualNotificationIndex=t)}):console.debug("No notification"),e.presentationsLoading=!1})}catch(e){console.error("Error loading notifications: ".concat(e.message)),this.presentationsLoading=!1}}}),mounted:function(){this.$eventBus.$on(c["h"].SHOW_NOTIFICATIONS,this.initNotifications)},beforeDestroy:function(){this.$eventBus.$off(c["h"].SHOW_NOTIFICATIONS,this.initNotifications)}},ec=Zs,tc=(o("e0d9"),Object(A["a"])(ec,Js,Qs,!1,null,null,null));tc.options.__file="KlabNotifications.vue";var oc=tc.exports,nc=(o("8195"),{name:"LayoutDefault",components:{KlabLayout:Cs,KlabModalWindow:Bs,ConnectionStatus:_,KlabSettings:N,KlabTerminal:Z,AppDialogs:re,KlabPresentation:Ys,KlabNotifications:oc},data:function(){return{errorLoading:!1,waitApp:!1}},computed:a()({},Object(s["c"])("data",["hasContext","terminals","isDeveloper"]),Object(s["c"])("stomp",["connectionDown"]),Object(s["c"])("view",["layout","isApp","klabApp","modalWindow"]),{wait:{get:function(){return this.waitApp||this.errorLoading},set:function(){}}}),methods:{reload:function(){document.location.reload()}},created:function(){},mounted:function(){var e=this;this.sendStompMessage(p["a"].RESET_CONTEXT(this.$store.state.data.session).body);var t=localStorage.getItem(c["R"].LOCAL_STORAGE_APP_ID);t&&(this.sendStompMessage(p["a"].RUN_APPLICATION({applicationId:t,stop:!0},this.$store.state.data.session).body),localStorage.removeItem(c["R"].LOCAL_STORAGE_APP_ID)),this.isApp&&this.sendStompMessage(p["a"].RUN_APPLICATION({applicationId:this.$store.state.view.klabApp},this.$store.state.data.session).body),this.isApp&&null===this.layout&&(this.waitApp=!0,setTimeout(function(){e.isApp&&null===e.layout&&(e.errorLoading=!0)},15e3)),window.addEventListener("beforeunload",function(t){e.hasContext&&!e.isDeveloper&&(t.preventDefault(),t.returnValue=e.$t("messages.confirmExitPage"))})},watch:{layout:function(e){this.waitApp&&e&&(this.waitApp=!1),this.errorLoading&&e&&(this.errorLoading=!1)}}}),ic=nc,rc=(o("7521"),Object(A["a"])(ic,n,i,!1,null,null,null));rc.options.__file="default.vue";t["default"]=rc.exports},"7bae":function(e,t,o){},"7bae3":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("064a"),i=o("e1c6"),r=o("7f73"),a=o("755f"),s=o("6923"),c=o("e576"),p=new i.ContainerModule(function(e,t,o){n.configureModelElement({bind:e,isBound:o},"marker",r.SIssueMarker,a.IssueMarkerView),e(c.DecorationPlacer).toSelf().inSingletonScope(),e(s.TYPES.IVNodePostprocessor).toService(c.DecorationPlacer)});t.default=p},"7bbc":function(e,t,o){"use strict";var n=o("fcf8"),i=o.n(n);i.a},"7d36":function(e,t,o){"use strict";function n(e){return e.hasFeature(t.fadeFeature)&&void 0!==e["opacity"]}Object.defineProperty(t,"__esModule",{value:!0}),t.fadeFeature=Symbol("fadeFeature"),t.isFadeable=n},"7d72":function(e,t,o){"use strict";var n=o("8707").Buffer,i=n.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(e){if(!e)return"utf8";var t;while(1)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=r(e);if("string"!==typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=M,this.end=h,t=4;break;case"utf8":this.fillLast=u,t=4;break;case"base64":this.text=f,this.end=z,t=3;break;default:return this.write=O,void(this.end=A)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function c(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function p(e,t,o){var n=t.length-1;if(n=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0))}function l(e,t,o){if(128!==(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"�"}}function u(e){var t=this.lastTotal-this.lastNeed,o=l(this,e,t);return void 0!==o?o:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function b(e,t){var o=p(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=o;var n=e.length-(o-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function M(e,t){if((e.length-t)%2===0){var o=e.toString("utf16le",t);if(o){var n=o.charCodeAt(o.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],o.slice(0,-1)}return o}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function h(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var o=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,o)}return t}function f(e,t){var o=(e.length-t)%3;return 0===o?e.toString("base64",t):(this.lastNeed=3-o,this.lastTotal=3,1===o?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-o))}function z(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function O(e){return e.toString(this.encoding)}function A(e){return e&&e.length?this.write(e):""}t.StringDecoder=s,s.prototype.write=function(e){if(0===e.length)return"";var t,o;if(this.lastNeed){if(t=this.fillLast(e),void 0===t)return"";o=this.lastNeed,this.lastNeed=0}else o=0;return o0,u=l?p.length:o.length,M=b(n,t,a,c,u),h=d(e,o),f=M.concat(h);return f}function u(e,t,o,a,s){var p=s[e.toString()]||[],l=h(p),u=!0!==l.unmanaged,b=a[e],d=l.inject||l.multiInject;if(b=d||b,b instanceof n.LazyServiceIdentifer&&(b=b.unwrap()),u){var M=b===Object,f=b===Function,z=void 0===b,O=M||f||z;if(!t&&O){var A=i.MISSING_INJECT_ANNOTATION+" argument "+e+" in class "+o+".";throw new Error(A)}var m=new c.Target(r.TargetTypeEnum.ConstructorArgument,l.targetName,b);return m.metadata=p,m}return null}function b(e,t,o,n,i){for(var r=[],a=0;a0?p:M(e,o)}return 0}function h(e){var t={};return e.forEach(function(e){t[e.key.toString()]=e.value}),{inject:t[a.INJECT_TAG],multiInject:t[a.MULTI_INJECT_TAG],targetName:t[a.NAME_TAG],unmanaged:t[a.UNMANAGED_TAG]}}t.getDependencies=p,t.getBaseClassDependencyCount=M},"7f45":function(e,t,o){var n=e.exports=o("0efb");n.tz.load(o("6cd2"))},"7f73":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=o("e4f0"),r=o("66f9");function a(e){return e.hasFeature(t.decorationFeature)}t.decorationFeature=Symbol("decorationFeature"),t.isDecoration=a;var s=function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return n(o,e),o.DEFAULT_FEATURES=[t.decorationFeature,r.boundsFeature,i.hoverFeedbackFeature,i.popupFeature],o}(r.SShapeElement);t.SDecoration=s;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(s);t.SIssueMarker=c;var p=function(){function e(){}return e}();t.SIssue=p},"7faf":function(e,t,o){"use strict";function n(e){return e.hasFeature(t.exportFeature)}Object.defineProperty(t,"__esModule",{value:!0}),t.exportFeature=Symbol("exportFeature"),t.isExportable=n},"80b5":function(e,t,o){"use strict";function n(e){return e instanceof HTMLElement?{x:e.offsetLeft,y:e.offsetTop}:e}Object.defineProperty(t,"__esModule",{value:!0}),t.toAnchor=n},8122:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("33b2"),a=o("9e2e"),s=o("0fb6"),c=o("be02"),p=o("160b"),l=o("302f"),u=o("538c"),b=o("29fa"),d=o("65d1"),M=o("3b4c"),h=o("1417"),f=o("a190"),z=o("064a"),O=o("8794"),A=o("0d7a"),m=o("b093"),v=o("842c"),g=o("cd10"),y=o("ddee"),q=o("1590"),_=o("3f0a"),W=o("6176"),R=o("c661"),w=new n.ContainerModule(function(e,t,o){e(i.TYPES.ILogger).to(a.NullLogger).inSingletonScope(),e(i.TYPES.LogLevel).toConstantValue(a.LogLevel.warn),e(i.TYPES.SModelRegistry).to(l.SModelRegistry).inSingletonScope(),e(c.ActionHandlerRegistry).toSelf().inSingletonScope(),e(i.TYPES.ActionHandlerRegistryProvider).toProvider(function(e){return function(){return new Promise(function(t){t(e.container.get(c.ActionHandlerRegistry))})}}),e(i.TYPES.ViewRegistry).to(z.ViewRegistry).inSingletonScope(),e(i.TYPES.IModelFactory).to(l.SModelFactory).inSingletonScope(),e(i.TYPES.IActionDispatcher).to(s.ActionDispatcher).inSingletonScope(),e(i.TYPES.IActionDispatcherProvider).toProvider(function(e){return function(){return new Promise(function(t){t(e.container.get(i.TYPES.IActionDispatcher))})}}),e(i.TYPES.IDiagramLocker).to(R.DefaultDiagramLocker).inSingletonScope(),e(i.TYPES.IActionHandlerInitializer).to(v.CommandActionHandlerInitializer),e(i.TYPES.ICommandStack).to(p.CommandStack).inSingletonScope(),e(i.TYPES.ICommandStackProvider).toProvider(function(e){return function(){return new Promise(function(t){t(e.container.get(i.TYPES.ICommandStack))})}}),e(i.TYPES.CommandStackOptions).toConstantValue({defaultDuration:250,undoHistoryLimit:50}),e(b.ModelViewer).toSelf().inSingletonScope(),e(b.HiddenModelViewer).toSelf().inSingletonScope(),e(b.PopupModelViewer).toSelf().inSingletonScope(),e(i.TYPES.ModelViewer).toDynamicValue(function(e){var t=e.container.createChild();return t.bind(i.TYPES.IViewer).toService(b.ModelViewer),t.bind(O.ViewerCache).toSelf(),t.get(O.ViewerCache)}).inSingletonScope(),e(i.TYPES.PopupModelViewer).toDynamicValue(function(e){var t=e.container.createChild();return t.bind(i.TYPES.IViewer).toService(b.PopupModelViewer),t.bind(O.ViewerCache).toSelf(),t.get(O.ViewerCache)}).inSingletonScope(),e(i.TYPES.HiddenModelViewer).toService(b.HiddenModelViewer),e(i.TYPES.IViewerProvider).toDynamicValue(function(e){return{get modelViewer(){return e.container.get(i.TYPES.ModelViewer)},get hiddenModelViewer(){return e.container.get(i.TYPES.HiddenModelViewer)},get popupModelViewer(){return e.container.get(i.TYPES.PopupModelViewer)}}}),e(i.TYPES.ViewerOptions).toConstantValue(d.defaultViewerOptions()),e(i.TYPES.PatcherProvider).to(b.PatcherProvider).inSingletonScope(),e(i.TYPES.DOMHelper).to(A.DOMHelper).inSingletonScope(),e(i.TYPES.ModelRendererFactory).toFactory(function(e){return function(t,o){var n=e.container.get(i.TYPES.ViewRegistry);return new b.ModelRenderer(n,t,o)}}),e(m.IdPostprocessor).toSelf().inSingletonScope(),e(i.TYPES.IVNodePostprocessor).toService(m.IdPostprocessor),e(i.TYPES.HiddenVNodePostprocessor).toService(m.IdPostprocessor),e(g.CssClassPostprocessor).toSelf().inSingletonScope(),e(i.TYPES.IVNodePostprocessor).toService(g.CssClassPostprocessor),e(i.TYPES.HiddenVNodePostprocessor).toService(g.CssClassPostprocessor),e(M.MouseTool).toSelf().inSingletonScope(),e(i.TYPES.IVNodePostprocessor).toService(M.MouseTool),e(h.KeyTool).toSelf().inSingletonScope(),e(i.TYPES.IVNodePostprocessor).toService(h.KeyTool),e(f.FocusFixPostprocessor).toSelf().inSingletonScope(),e(i.TYPES.IVNodePostprocessor).toService(f.FocusFixPostprocessor),e(i.TYPES.PopupVNodePostprocessor).toService(m.IdPostprocessor),e(M.PopupMouseTool).toSelf().inSingletonScope(),e(i.TYPES.PopupVNodePostprocessor).toService(M.PopupMouseTool),e(i.TYPES.AnimationFrameSyncer).to(u.AnimationFrameSyncer).inSingletonScope();var n={bind:e,isBound:o};v.configureCommand(n,r.InitializeCanvasBoundsCommand),e(r.CanvasBoundsInitializer).toSelf().inSingletonScope(),e(i.TYPES.IVNodePostprocessor).toService(r.CanvasBoundsInitializer),v.configureCommand(n,_.SetModelCommand),e(i.TYPES.IToolManager).to(y.ToolManager).inSingletonScope(),e(i.TYPES.KeyListener).to(y.DefaultToolsEnablingKeyListener),e(y.ToolManagerActionHandler).toSelf().inSingletonScope(),c.configureActionHandler(n,q.EnableDefaultToolsAction.KIND,y.ToolManagerActionHandler),c.configureActionHandler(n,q.EnableToolsAction.KIND,y.ToolManagerActionHandler),e(i.TYPES.UIExtensionRegistry).to(W.UIExtensionRegistry).inSingletonScope(),v.configureCommand(n,W.SetUIExtensionVisibilityCommand),e(M.MousePositionTracker).toSelf().inSingletonScope(),e(i.TYPES.MouseListener).toService(M.MousePositionTracker)});t.default=w},8195:function(e,t,o){},"81aa":function(e,t,o){"use strict";function n(e,t,o,n,i){var r=void 0===t?void 0:t.key;return{sel:e,data:t,children:o,text:n,elm:i,key:r}}Object.defineProperty(t,"__esModule",{value:!0}),t.vnode=n,t.default=n},8336:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("30e3"),i=o("155f"),r=o("0fd9"),a=o("2cac"),s=function(){function e(e){this._binding=e}return e.prototype.to=function(e){return this._binding.type=i.BindingTypeEnum.Instance,this._binding.implementationType=e,new r.BindingInWhenOnSyntax(this._binding)},e.prototype.toSelf=function(){if("function"!==typeof this._binding.serviceIdentifier)throw new Error(""+n.INVALID_TO_SELF_VALUE);var e=this._binding.serviceIdentifier;return this.to(e)},e.prototype.toConstantValue=function(e){return this._binding.type=i.BindingTypeEnum.ConstantValue,this._binding.cache=e,this._binding.dynamicValue=null,this._binding.implementationType=null,new a.BindingWhenOnSyntax(this._binding)},e.prototype.toDynamicValue=function(e){return this._binding.type=i.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=e,this._binding.implementationType=null,new r.BindingInWhenOnSyntax(this._binding)},e.prototype.toConstructor=function(e){return this._binding.type=i.BindingTypeEnum.Constructor,this._binding.implementationType=e,new a.BindingWhenOnSyntax(this._binding)},e.prototype.toFactory=function(e){return this._binding.type=i.BindingTypeEnum.Factory,this._binding.factory=e,new a.BindingWhenOnSyntax(this._binding)},e.prototype.toFunction=function(e){if("function"!==typeof e)throw new Error(n.INVALID_FUNCTION_BINDING);var t=this.toConstantValue(e);return this._binding.type=i.BindingTypeEnum.Function,t},e.prototype.toAutoFactory=function(e){return this._binding.type=i.BindingTypeEnum.Factory,this._binding.factory=function(t){var o=function(){return t.container.get(e)};return o},new a.BindingWhenOnSyntax(this._binding)},e.prototype.toProvider=function(e){return this._binding.type=i.BindingTypeEnum.Provider,this._binding.provider=e,new a.BindingWhenOnSyntax(this._binding)},e.prototype.toService=function(e){this.toDynamicValue(function(t){return t.container.get(e)})},e}();t.BindingToSyntax=s},"842c":function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=o("e1c6"),s=o("7b39"),c=o("6923"),p=function(){function e(e){this.commandRegistration=e}return e.prototype.handle=function(e){return this.commandRegistration.factory(e)},e}();t.CommandActionHandler=p;var l=function(){function e(e){this.registrations=e}return e.prototype.initialize=function(e){this.registrations.forEach(function(t){return e.register(t.kind,new p(t))})},e=n([a.injectable(),r(0,a.multiInject(c.TYPES.CommandRegistration)),r(0,a.optional()),i("design:paramtypes",[Array])],e),e}();function u(e,t){if(!s.isInjectable(t))throw new Error("Commands should be @injectable: "+t.name);e.isBound(t)||e.bind(t).toSelf(),e.bind(c.TYPES.CommandRegistration).toDynamicValue(function(e){return{kind:t.KIND,factory:function(o){var n=new a.Container;return n.parent=e.container,n.bind(c.TYPES.Action).toConstantValue(o),n.get(t)}}})}t.CommandActionHandlerInitializer=l,t.configureCommand=u},"84a2":function(e,t,o){(function(t){var o="Expected a function",n=NaN,i="[object Symbol]",r=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,p=parseInt,l="object"==typeof t&&t&&t.Object===Object&&t,u="object"==typeof self&&self&&self.Object===Object&&self,b=l||u||Function("return this")(),d=Object.prototype,M=d.toString,h=Math.max,f=Math.min,z=function(){return b.Date.now()};function O(e,t,n){var i,r,a,s,c,p,l=0,u=!1,b=!1,d=!0;if("function"!=typeof e)throw new TypeError(o);function M(t){var o=i,n=r;return i=r=void 0,l=t,s=e.apply(n,o),s}function O(e){return l=e,c=setTimeout(g,t),u?M(e):s}function A(e){var o=e-p,n=e-l,i=t-o;return b?f(i,a-n):i}function v(e){var o=e-p,n=e-l;return void 0===p||o>=t||o<0||b&&n>=a}function g(){var e=z();if(v(e))return q(e);c=setTimeout(g,A(e))}function q(e){return c=void 0,d&&i?M(e):(i=r=void 0,s)}function _(){void 0!==c&&clearTimeout(c),l=0,i=p=r=c=void 0}function W(){return void 0===c?s:q(z())}function R(){var e=z(),o=v(e);if(i=arguments,r=this,p=e,o){if(void 0===c)return O(p);if(b)return c=setTimeout(g,t),M(p)}return void 0===c&&(c=setTimeout(g,t)),s}return t=y(t)||0,m(n)&&(u=!!n.leading,b="maxWait"in n,a=b?h(y(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d),R.cancel=_,R.flush=W,R}function A(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new TypeError(o);return m(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),O(e,t,{leading:i,maxWait:t,trailing:r})}function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){return!!e&&"object"==typeof e}function g(e){return"symbol"==typeof e||v(e)&&M.call(e)==i}function y(e){if("number"==typeof e)return e;if(g(e))return n;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var o=s.test(e);return o||c.test(e)?p(e.slice(2),o?2:8):a.test(e)?n:+e}e.exports=A}).call(this,o("c8ba"))},"84b1":function(e,t,o){(function(t,o){e.exports=o()})(0,function(){"use strict";function e(e){var t,o,n=document,i=n.createElement("div"),r=i.style,a=navigator.userAgent,s=-1!==a.indexOf("Firefox")&&-1!==a.indexOf("Mobile"),c=e.debounceWaitMs||0,p=e.preventSubmit||!1,l=s?"input":"keyup",u=[],b="",d=2,M=e.showOnFocus,h=0;if(void 0!==e.minLength&&(d=e.minLength),!e.input)throw new Error("input undefined");var f=e.input;function z(){var e=i.parentNode;e&&e.removeChild(i)}function O(){o&&window.clearTimeout(o)}function A(){i.parentNode||n.body.appendChild(i)}function m(){return!!i.parentNode}function v(){h++,u=[],b="",t=void 0,z()}function g(){if(m()){r.height="auto",r.width=f.offsetWidth+"px";var t=f.getBoundingClientRect(),o=t.top+f.offsetHeight,n=window.innerHeight-o;n<0&&(n=0),r.top=o+"px",r.bottom="",r.left=t.left+"px",r.maxHeight=n+"px",e.customize&&e.customize(f,t,i,n)}}function y(){while(i.firstChild)i.removeChild(i.firstChild);var o=function(e,t){var o=n.createElement("div");return o.textContent=e.label||"",o};e.render&&(o=e.render);var r=function(e,t){var o=n.createElement("div");return o.textContent=e,o};e.renderGroup&&(r=e.renderGroup);var a=n.createDocumentFragment(),s="#9?$";if(u.forEach(function(n){if(n.group&&n.group!==s){s=n.group;var i=r(n.group,b);i&&(i.className+=" group",a.appendChild(i))}var c=o(n,b);c&&(c.addEventListener("click",function(t){e.onSelect(n,f),v(),t.preventDefault(),t.stopPropagation()}),n===t&&(c.className+=" selected"),a.appendChild(c))}),i.appendChild(a),u.length<1){if(!e.emptyMsg)return void v();var c=n.createElement("div");c.className="empty",c.textContent=e.emptyMsg,i.appendChild(c)}A(),g(),w()}function q(){m()&&y()}function _(){q()}function W(e){e.target!==i?q():e.preventDefault()}function R(e){for(var t=e.which||e.keyCode||0,o=[38,13,27,39,37,16,17,18,20,91,9],n=0,i=o;n0){var t=e[0],o=t.previousElementSibling;if(o&&-1!==o.className.indexOf("group")&&!o.previousElementSibling&&(t=o),t.offsetTopr&&(i.scrollTop+=n-r)}}}function L(){if(u.length<1)t=void 0;else if(t===u[0])t=u[u.length-1];else for(var e=u.length-1;e>0;e--)if(t===u[e]||1===e){t=u[e-1];break}}function C(){if(u.length<1&&(t=void 0),t&&t!==u[u.length-1]){for(var e=0;e=d||1===n?(O(),o=window.setTimeout(function(){e.fetch(r,function(e){h===i&&e&&(u=e,b=r,t=u.length>0?u[0]:void 0,y())},0)},0===n?c:0)):v()}function x(){setTimeout(function(){n.activeElement!==f&&v()},200)}function N(){f.removeEventListener("focus",E),f.removeEventListener("keydown",S),f.removeEventListener(l,R),f.removeEventListener("blur",x),window.removeEventListener("resize",_),n.removeEventListener("scroll",W,!0),O(),v(),h++}return i.className="autocomplete "+(e.className||""),r.position="fixed",i.addEventListener("mousedown",function(e){e.stopPropagation(),e.preventDefault()}),f.addEventListener("keydown",S),f.addEventListener(l,R),f.addEventListener("blur",x),f.addEventListener("focus",E),window.addEventListener("resize",_),n.addEventListener("scroll",W,!0),{destroy:N}}return e})},"84fd":function(e,t,o){},"85ed":function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__spreadArrays||function(){for(var e=0,t=0,o=arguments.length;t=s.LogLevel.error&&this.forward(e,t,s.LogLevel.error,o)},e.prototype.warn=function(e,t){for(var o=[],n=2;n=s.LogLevel.warn&&this.forward(e,t,s.LogLevel.warn,o)},e.prototype.info=function(e,t){for(var o=[],n=2;n=s.LogLevel.info&&this.forward(e,t,s.LogLevel.info,o)},e.prototype.log=function(e,t){for(var o=[],n=2;n=s.LogLevel.log)try{var i="object"===typeof e?e.constructor.name:String(e);console.log.apply(e,r([i+": "+t],o))}catch(e){}},e.prototype.forward=function(e,t,o,n){var i=new Date,r=new p(s.LogLevel[o],i.toLocaleTimeString(),"object"===typeof e?e.constructor.name:String(e),t,n.map(function(e){return JSON.stringify(e)}));this.modelSourceProvider().then(function(o){try{o.handle(r)}catch(o){try{console.log.apply(e,[t,r,o])}catch(e){}}})},n([a.inject(c.TYPES.ModelSourceProvider),i("design:type",Function)],e.prototype,"modelSourceProvider",void 0),n([a.inject(c.TYPES.LogLevel),i("design:type",Number)],e.prototype,"logLevel",void 0),e=n([a.injectable()],e),e}();t.ForwardingLogger=l},"861d":function(e,t,o){var n=/(?:|<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>)/g,i=o("c4ec"),r=Object.create?Object.create(null):{};function a(e,t,o,n,i){var r=t.indexOf("<",n),a=t.slice(n,-1===r?void 0:r);/^\s*$/.test(a)&&(a=" "),(!i&&r>-1&&o+e.length>=0||" "!==a)&&e.push({type:"text",content:a})}e.exports=function(e,t){t||(t={}),t.components||(t.components=r);var o,s=[],c=-1,p=[],l={},u=!1;return e.replace(n,function(n,r){if(u){if(n!=="")return;u=!1}var b,d="/"!==n.charAt(1),M=0===n.indexOf("\x3c!--"),h=r+n.length,f=e.charAt(h);d&&!M&&(c++,o=i(n),"tag"===o.type&&t.components[o.name]&&(o.type="component",u=!0),o.voidElement||u||!f||"<"===f||a(o.children,e,c,h,t.ignoreWhitespace),l[o.tagName]=o,0===c&&s.push(o),b=p[c-1],b&&b.children.push(o),p[c]=o),(M||!d||o.voidElement)&&(M||c--,!u&&"<"!==f&&f&&(b=-1===c?s:p[c].children,a(b,e,c,h,t.ignoreWhitespace)))}),!s.length&&e.length&&a(s,e,0,0,t.ignoreWhitespace),s}},8622:function(e,t,o){"use strict";var n=o("bc63"),i=o.n(n);i.a},"869e":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("6923"),p=o("3864");t.DIAMOND_ANCHOR_KIND="diamond",t.ELLIPTIC_ANCHOR_KIND="elliptic",t.RECTANGULAR_ANCHOR_KIND="rectangular";var l=function(e){function o(t){var o=e.call(this)||this;return t.forEach(function(e){return o.register(e.kind,e)}),o}return n(o,e),Object.defineProperty(o.prototype,"defaultAnchorKind",{get:function(){return t.RECTANGULAR_ANCHOR_KIND},enumerable:!0,configurable:!0}),o.prototype.get=function(t,o){return e.prototype.get.call(this,t+":"+(o||this.defaultAnchorKind))},o=i([s.injectable(),a(0,s.multiInject(c.TYPES.IAnchorComputer)),r("design:paramtypes",[Array])],o),o}(p.InstanceRegistry);t.AnchorComputerRegistry=l},8707:function(e,t,o){var n=o("b639"),i=n.Buffer;function r(e,t){for(var o in e)t[o]=e[o]}function a(e,t,o){return i(e,t,o)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(r(n,t),t.Buffer=a),r(i,a),a.from=function(e,t,o){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,o)},a.alloc=function(e,t,o){if("number"!==typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"===typeof o?n.fill(t,o):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},8794:function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o("e1c6"),a=o("6923"),s=o("538c"),c=function(){function e(){}return e.prototype.update=function(e,t){if(void 0!==t)this.delegate.update(e,t),this.cachedModel=void 0;else{var o=void 0===this.cachedModel;this.cachedModel=e,o&&this.scheduleUpdate()}},e.prototype.scheduleUpdate=function(){var e=this;this.syncer.onEndOfNextFrame(function(){e.cachedModel&&(e.delegate.update(e.cachedModel),e.cachedModel=void 0)})},n([r.inject(a.TYPES.IViewer),i("design:type",Object)],e.prototype,"delegate",void 0),n([r.inject(a.TYPES.AnimationFrameSyncer),i("design:type",s.AnimationFrameSyncer)],e.prototype,"syncer",void 0),e=n([r.injectable()],e),e}();t.ViewerCache=c},"87b3":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("7685"),i=o("30e3"),r=o("155f"),a=o("c5f4"),s=o("a8af"),c=o("ba33"),p=o("a32f"),l=o("1979"),u=o("c8c0"),b=o("7dba"),d=o("c622"),M=o("757d");function h(e){return e._bindingDictionary}function f(e,t,o,n,i,r){var s=e?a.MULTI_INJECT_TAG:a.INJECT_TAG,c=new l.Metadata(s,o),p=new M.Target(t,n,o,c);if(void 0!==i){var u=new l.Metadata(i,r);p.metadata.push(u)}return p}function z(e,t,o,i,r){var a=m(o.container,r.serviceIdentifier),s=[];return a.length===n.BindingCount.NoBindingsAvailable&&o.container.options.autoBindInjectable&&"function"===typeof r.serviceIdentifier&&e.getConstructorMetadata(r.serviceIdentifier).compilerGeneratedMetadata&&(o.container.bind(r.serviceIdentifier).toSelf(),a=m(o.container,r.serviceIdentifier)),s=t?a:a.filter(function(e){var t=new d.Request(e.serviceIdentifier,o,i,e,r);return e.constraint(t)}),O(r.serviceIdentifier,s,r,o.container),s}function O(e,t,o,r){switch(t.length){case n.BindingCount.NoBindingsAvailable:if(o.isOptional())return t;var a=c.getServiceIdentifierAsString(e),s=i.NOT_REGISTERED;throw s+=c.listMetadataForTarget(a,o),s+=c.listRegisteredBindingsForServiceIdentifier(r,a,m),new Error(s);case n.BindingCount.OnlyOneBindingAvailable:if(!o.isArray())return t;case n.BindingCount.MultipleBindingsAvailable:default:if(o.isArray())return t;a=c.getServiceIdentifierAsString(e),s=i.AMBIGUOUS_MATCH+" "+a;throw s+=c.listRegisteredBindingsForServiceIdentifier(r,a,m),new Error(s)}}function A(e,t,o,n,a,s){var c,p;if(null===a){c=z(e,t,n,null,s),p=new d.Request(o,n,null,c,s);var l=new u.Plan(n,p);n.addPlan(l)}else c=z(e,t,n,a,s),p=a.addChildRequest(s.serviceIdentifier,c,s);c.forEach(function(t){var o=null;if(s.isArray())o=p.addChildRequest(t.serviceIdentifier,t,s);else{if(t.cache)return;o=p}if(t.type===r.BindingTypeEnum.Instance&&null!==t.implementationType){var a=b.getDependencies(e,t.implementationType);if(!n.container.options.skipBaseClassChecks){var c=b.getBaseClassDependencyCount(e,t.implementationType);if(a.length=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("dd7b"),r=o("e1c6"),a=function(){function e(){}return e.prototype.render=function(e,t){var o=this;return i.h(this.selector(e),{key:e.id,hook:{init:this.init.bind(this),prepatch:this.prepatch.bind(this)},fn:function(){return o.renderAndDecorate(e,t)},args:this.watchedArgs(e),thunk:!0})},e.prototype.renderAndDecorate=function(e,t){var o=this.doRender(e,t);return t.decorate(o,e),o},e.prototype.copyToThunk=function(e,t){t.elm=e.elm,e.data.fn=t.data.fn,e.data.args=t.data.args,t.data=e.data,t.children=e.children,t.text=e.text,t.elm=e.elm},e.prototype.init=function(e){var t=e.data,o=t.fn.apply(void 0,t.args);this.copyToThunk(o,e)},e.prototype.prepatch=function(e,t){var o=e.data,n=t.data;this.equals(o.args,n.args)?this.copyToThunk(e,t):this.copyToThunk(n.fn.apply(void 0,n.args),t)},e.prototype.equals=function(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var o=0;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("e1c6"),r=o("3585"),a=function(){function e(){}return e.prototype.isVisible=function(e,t,o){if("hidden"===o.targetKind)return!0;if(0===t.length)return!0;var n=r.getAbsoluteRouteBounds(e,t),i=e.root.canvasBounds;return n.x<=i.width&&n.x+n.width>=0&&n.y<=i.height&&n.y+n.height>=0},e=n([i.injectable()],e),e}();t.RoutableView=a},"8e08":function(e,t,o){},"8e65":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("842c"),r=o("6923"),a=o("42be"),s=o("26ad"),c=new n.ContainerModule(function(e,t,o){e(r.TYPES.ModelSourceProvider).toProvider(function(e){return function(){return new Promise(function(t){t(e.container.get(r.TYPES.ModelSource))})}}),i.configureCommand({bind:e,isBound:o},a.CommitModelCommand),e(r.TYPES.IActionHandlerInitializer).toService(r.TYPES.ModelSource),e(s.ComputedBoundsApplicator).toSelf().inSingletonScope()});t.default=c},"8e97":function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("e1c6"),r=o("dd02"),a=o("66f9"),s=function(){function e(){}return e.prototype.isVisible=function(e,t){if("hidden"===t.targetKind)return!0;if(!r.isValidDimension(e.bounds))return!0;var o=a.getAbsoluteBounds(e),n=e.root.canvasBounds;return o.x<=n.width&&o.x+o.width>=0&&o.y<=n.height&&o.y+o.height>=0},e=n([i.injectable()],e),e}();t.ShapeView=s},"8ef3":function(e,t,o){},9016:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="undefined"!==typeof window&&window.requestAnimationFrame.bind(window)||setTimeout,i=function(e){n(function(){n(e)})},r=!1;function a(e,t,o){i(function(){e[t]=o})}function s(e,t){var o,n,i=t.elm,r=e.data.style,s=t.data.style;if((r||s)&&r!==s){r=r||{},s=s||{};var c="delayed"in r;for(n in r)s[n]||("-"===n[0]&&"-"===n[1]?i.style.removeProperty(n):i.style[n]="");for(n in s)if(o=s[n],"delayed"===n&&s.delayed)for(var p in s.delayed)o=s.delayed[p],c&&o===r.delayed[p]||a(i.style,p,o);else"remove"!==n&&o!==r[n]&&("-"===n[0]&&"-"===n[1]?i.style.setProperty(n,o):i.style[n]=o)}}function c(e){var t,o,n=e.elm,i=e.data.style;if(i&&(t=i.destroy))for(o in t)n.style[o]=t[o]}function p(e,t){var o=e.data.style;if(o&&o.remove){r||(getComputedStyle(document.body).transform,r=!0);var n,i,a=e.elm,s=0,c=o.remove,p=0,l=[];for(n in c)l.push(n),a.style[n]=c[n];i=getComputedStyle(a);for(var u=i["transition-property"].split(", ");s=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o("21a6"),c=o("e1c6"),p=o("3f0a"),l=o("6923"),u=o("42f7"),b=o("4741"),d=o("5d19"),M=o("f4cb"),h=o("b485"),f=o("cf61"),z=o("26ad");function O(e){return void 0!==e&&e.hasOwnProperty("action")}t.isActionMessage=O;var A=function(){function e(){this.kind=e.KIND}return e.KIND="serverStatus",e}();t.ServerStatusAction=A;var m="__receivedFromServer",v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentRoot={type:"NONE",id:"ROOT"},t}return n(t,e),t.prototype.initialize=function(t){e.prototype.initialize.call(this,t),t.register(u.ComputedBoundsAction.KIND,this),t.register(u.RequestBoundsCommand.KIND,this),t.register(M.RequestPopupModelAction.KIND,this),t.register(b.CollapseExpandAction.KIND,this),t.register(b.CollapseExpandAllAction.KIND,this),t.register(h.OpenAction.KIND,this),t.register(A.KIND,this),this.clientId||(this.clientId=this.viewerOptions.baseDiv)},t.prototype.handle=function(e){var t=this.handleLocally(e);t&&this.forwardToServer(e)},t.prototype.forwardToServer=function(e){var t={clientId:this.clientId,action:e};this.logger.log(this,"sending",t),this.sendMessage(t)},t.prototype.messageReceived=function(e){var t=this,o="string"===typeof e?JSON.parse(e):e;O(o)&&o.action?o.clientId&&o.clientId!==this.clientId||(o.action[m]=!0,this.logger.log(this,"receiving",o),this.actionDispatcher.dispatch(o.action).then(function(){t.storeNewModel(o.action)})):this.logger.error(this,"received data is not an action message",o)},t.prototype.handleLocally=function(e){switch(this.storeNewModel(e),e.kind){case u.ComputedBoundsAction.KIND:return this.handleComputedBounds(e);case p.RequestModelAction.KIND:return this.handleRequestModel(e);case u.RequestBoundsCommand.KIND:return!1;case d.ExportSvgAction.KIND:return this.handleExportSvgAction(e);case A.KIND:return this.handleServerStateAction(e)}return!e[m]},t.prototype.storeNewModel=function(e){if(e.kind===p.SetModelCommand.KIND||e.kind===f.UpdateModelCommand.KIND||e.kind===u.RequestBoundsCommand.KIND){var t=e.newRoot;t&&(this.currentRoot=t,e.kind!==p.SetModelCommand.KIND&&e.kind!==f.UpdateModelCommand.KIND||(this.lastSubmittedModelType=t.type))}},t.prototype.handleRequestModel=function(e){var t=i({needsClientLayout:this.viewerOptions.needsClientLayout,needsServerLayout:this.viewerOptions.needsServerLayout},e.options),o=i(i({},e),{options:t});return this.forwardToServer(o),!1},t.prototype.handleComputedBounds=function(e){if(this.viewerOptions.needsServerLayout)return!0;var t=this.currentRoot;return this.computedBoundsApplicator.apply(t,e),t.type===this.lastSubmittedModelType?this.actionDispatcher.dispatch(new f.UpdateModelAction(t)):this.actionDispatcher.dispatch(new p.SetModelAction(t)),this.lastSubmittedModelType=t.type,!1},t.prototype.handleExportSvgAction=function(e){var t=new Blob([e.svg],{type:"text/plain;charset=utf-8"});return s.saveAs(t,"diagram.svg"),!1},t.prototype.handleServerStateAction=function(e){return!1},t.prototype.commitModel=function(e){var t=this.currentRoot;return this.currentRoot=e,t},r([c.inject(l.TYPES.ILogger),a("design:type",Object)],t.prototype,"logger",void 0),r([c.inject(z.ComputedBoundsApplicator),a("design:type",z.ComputedBoundsApplicator)],t.prototype,"computedBoundsApplicator",void 0),t=r([c.injectable()],t),t}(z.ModelSource);t.DiagramServer=v},"966d":function(e,t,o){"use strict";(function(t){function o(e,o,n,i){if("function"!==typeof e)throw new TypeError('"callback" argument must be a function');var r,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,o)});case 3:return t.nextTick(function(){e.call(null,o,n)});case 4:return t.nextTick(function(){e.call(null,o,n,i)});default:r=new Array(s-1),a=0;while(a=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var r=o("e1c6"),a=function(){function e(){}return e=i([r.injectable()],e),e}();t.Command=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.merge=function(e,t){return!1},t=i([r.injectable()],t),t}(a);t.MergeableCommand=s;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.undo=function(e){return e.logger.error(this,"Cannot undo a hidden command"),e.root},t.prototype.redo=function(e){return e.logger.error(this,"Cannot redo a hidden command"),e.root},t=i([r.injectable()],t),t}(a);t.HiddenCommand=c;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t=i([r.injectable()],t),t}(a);t.PopupCommand=p;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t=i([r.injectable()],t),t}(a);t.SystemCommand=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t=i([r.injectable()],t),t}(a);t.ResetCommand=u},9811:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("e7fa"),a=new n.ContainerModule(function(e){e(i.TYPES.IVNodePostprocessor).to(r.ElementFader).inSingletonScope()});t.default=a},"987d":function(e,t,o){"use strict";function n(e){return e<.5?e*e*2:1-(1-e)*(1-e)*2}Object.defineProperty(t,"__esModule",{value:!0}),t.easeInOut=n},"98ab":function(e,t,o){},"98db":function(e,t,o){(function(e,t){ +/*! ***************************************************************************** +Copyright (C) Microsoft. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ +var o;(function(o){(function(e){var n="object"===typeof t?t:"object"===typeof self?self:"object"===typeof this?this:Function("return this;")(),i=r(o);function r(e,t){return function(o,n){"function"!==typeof e[o]&&Object.defineProperty(e,o,{configurable:!0,writable:!0,value:n}),t&&t(o,n)}}"undefined"===typeof n.Reflect?n.Reflect=o:i=r(n.Reflect,i),e(i)})(function(t){var o=Object.prototype.hasOwnProperty,n="function"===typeof Symbol,i=n&&"undefined"!==typeof Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",r=n&&"undefined"!==typeof Symbol.iterator?Symbol.iterator:"@@iterator",a="function"===typeof Object.create,s={__proto__:[]}instanceof Array,c=!a&&!s,p={create:a?function(){return re(Object.create(null))}:s?function(){return re({__proto__:null})}:function(){return re({})},has:c?function(e,t){return o.call(e,t)}:function(e,t){return t in e},get:c?function(e,t){return o.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},l=Object.getPrototypeOf(Function),u="object"===typeof e&&e["env"]&&"true"===e["env"]["REFLECT_METADATA_USE_MAP_POLYFILL"],b=u||"function"!==typeof Map||"function"!==typeof Map.prototype.entries?oe():Map,d=u||"function"!==typeof Set||"function"!==typeof Set.prototype.entries?ne():Set,M=u||"function"!==typeof WeakMap?ie():WeakMap,h=new M;function f(e,t,o,n){if(k(o)){if(!V(e))throw new TypeError;if(!K(t))throw new TypeError;return W(e,t)}if(!V(e))throw new TypeError;if(!I(t))throw new TypeError;if(!I(n)&&!k(n)&&!P(n))throw new TypeError;return P(n)&&(n=void 0),o=U(o),R(e,t,o,n)}function z(e,t){function o(o,n){if(!I(o))throw new TypeError;if(!k(n)&&!$(n))throw new TypeError;T(e,t,o,n)}return o}function O(e,t,o,n){if(!I(o))throw new TypeError;return k(n)||(n=U(n)),T(e,t,o,n)}function A(e,t,o){if(!I(t))throw new TypeError;return k(o)||(o=U(o)),L(e,t,o)}function m(e,t,o){if(!I(t))throw new TypeError;return k(o)||(o=U(o)),C(e,t,o)}function v(e,t,o){if(!I(t))throw new TypeError;return k(o)||(o=U(o)),S(e,t,o)}function g(e,t,o){if(!I(t))throw new TypeError;return k(o)||(o=U(o)),E(e,t,o)}function y(e,t){if(!I(e))throw new TypeError;return k(t)||(t=U(t)),x(e,t)}function q(e,t){if(!I(e))throw new TypeError;return k(t)||(t=U(t)),N(e,t)}function _(e,t,o){if(!I(t))throw new TypeError;k(o)||(o=U(o));var n=w(t,o,!1);if(k(n))return!1;if(!n.delete(e))return!1;if(n.size>0)return!0;var i=h.get(t);return i.delete(o),i.size>0||(h.delete(t),!0)}function W(e,t){for(var o=e.length-1;o>=0;--o){var n=e[o],i=n(t);if(!k(i)&&!P(i)){if(!K(i))throw new TypeError;t=i}}return t}function R(e,t,o,n){for(var i=e.length-1;i>=0;--i){var r=e[i],a=r(t,o,n);if(!k(a)&&!P(a)){if(!I(a))throw new TypeError;n=a}}return n}function w(e,t,o){var n=h.get(e);if(k(n)){if(!o)return;n=new b,h.set(e,n)}var i=n.get(t);if(k(i)){if(!o)return;i=new b,n.set(t,i)}return i}function L(e,t,o){var n=C(e,t,o);if(n)return!0;var i=te(t);return!P(i)&&L(e,i,o)}function C(e,t,o){var n=w(t,o,!1);return!k(n)&&F(n.has(e))}function S(e,t,o){var n=C(e,t,o);if(n)return E(e,t,o);var i=te(t);return P(i)?void 0:S(e,i,o)}function E(e,t,o){var n=w(t,o,!1);if(!k(n))return n.get(e)}function T(e,t,o,n){var i=w(o,n,!0);i.set(e,t)}function x(e,t){var o=N(e,t),n=te(e);if(null===n)return o;var i=x(n,t);if(i.length<=0)return o;if(o.length<=0)return i;for(var r=new d,a=[],s=0,c=o;s=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:o,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var o=this._find(e,!0);return this._values[o]=t,this},t.prototype.delete=function(t){var o=this._find(t,!1);if(o>=0){for(var n=this._keys.length,i=o+1;i=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("dd02"),r=o("869e"),a=o("46cc"),s=o("e1c6"),c=function(){function e(){}var t;return t=e,Object.defineProperty(e.prototype,"kind",{get:function(){return t.KIND},enumerable:!0,configurable:!0}),e.prototype.getAnchor=function(e,t,o){var n=e.bounds;if(n.width<=0||n.height<=0)return n;var r={x:n.x-o,y:n.y-o,width:n.width+2*o,height:n.height+2*o};return t.x>=r.x&&r.x+r.width>=t.x?t.y=r.y&&r.y+r.height>=t.y?t.x=r.x&&t.x<=r.x+r.width?r.x+.5*r.width>=t.x?(c=new i.PointToPointLine(t,{x:t.x,y:a.y}),s=t.y=r.y&&t.y<=r.y+r.height&&(r.y+.5*r.height>=t.y?(c=new i.PointToPointLine(t,{x:a.x,y:t.y}),s=t.x=r.x&&r.x+r.width>=t.x){c+=s.x;var l=.5*r.height*Math.sqrt(1-s.x*s.x/(.25*r.width*r.width));s.y<0?p-=l:p+=l}else if(t.y>=r.y&&r.y+r.height>=t.y){p+=s.y;var u=.5*r.width*Math.sqrt(1-s.y*s.y/(.25*r.height*r.height));s.x<0?c-=u:c+=u}return{x:c,y:p}},e.KIND=a.ManhattanEdgeRouter.KIND+":"+r.ELLIPTIC_ANCHOR_KIND,e=t=n([s.injectable()],e),e}();t.ManhattanEllipticAnchor=l},"9ad4":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var r=o("e1c6"),a=o("393a"),s=o("ee16"),c=o("e45b"),p=o("8e97"),l=o("87fa"),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(e,t){if(!(e instanceof l.ShapedPreRenderedElement)||this.isVisible(e,t)){var o=s.default(e.code);return this.correctNamespace(o),o}},t.prototype.correctNamespace=function(e){"svg"!==e.sel&&"g"!==e.sel||c.setNamespace(e,"http://www.w3.org/2000/svg")},t=i([r.injectable()],t),t}(p.ShapeView);t.PreRenderedView=u;var b=function(){function e(){}return e.prototype.render=function(e,t){var o=s.default(e.code),n=a.svg("g",null,a.svg("foreignObject",{requiredFeatures:"http://www.w3.org/TR/SVG11/feature#Extensibility",height:e.bounds.height,width:e.bounds.width,x:0,y:0},o),t.renderChildren(e));return c.setAttr(n,"class",e.type),c.setNamespace(o,e.namespace),n},e=i([r.injectable()],e),e}();t.ForeignObjectView=b},"9bc6":function(e,t,o){"use strict";var n=o("232d"),i=o.n(n);i.a},"9d14":function(e,t,o){"use strict";var n=o("a5de"),i=o.n(n);i.a},"9d6c":function(e,t,o){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,o=1,n=arguments.length;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o("e1c6"),s=o("3a92"),c=o("e45b"),p=o("47b7"),l=o("dd02"),u=o("66f9"),b=o("779b"),d=o("168d"),M=function(){function e(){}return e.prototype.decorate=function(e,t){if(b.isEdgeLayoutable(t)&&t.parent instanceof p.SEdge&&t.bounds!==l.EMPTY_BOUNDS){var o=this.getEdgePlacement(t),n=t.parent,i=Math.min(1,Math.max(0,o.position)),r=this.edgeRouterRegistry.get(n.routerKind),a=r.pointAt(n,i),s=r.derivativeAt(n,i),u="";if(a&&s){u+="translate("+a.x+", "+a.y+")";var d=l.toDegrees(Math.atan2(s.y,s.x));if(o.rotate){var M=d;Math.abs(d)>90&&(d<0?M+=180:d>0&&(M-=180)),u+=" rotate("+M+")";var h=this.getRotatedAlignment(t,o,M!==d);u+=" translate("+h.x+", "+h.y+")"}else{h=this.getAlignment(t,o,d);u+=" translate("+h.x+", "+h.y+")"}c.setAttr(e,"transform",u)}}return e},e.prototype.getRotatedAlignment=function(e,t,o){var n=u.isAlignable(e)?e.alignment.x:0,i=u.isAlignable(e)?e.alignment.y:0,r=e.bounds;if("on"===t.side)return{x:n-.5*r.height,y:i-.5*r.height};if(o)switch(t.position<.3333333?n-=r.width+t.offset:t.position<.6666666?n-=.5*r.width:n+=t.offset,t.side){case"left":case"bottom":i-=t.offset+r.height;break;case"right":case"top":i+=t.offset}else switch(t.position<.3333333?n+=t.offset:t.position<.6666666?n-=.5*r.width:n-=r.width+t.offset,t.side){case"right":case"bottom":i+=-t.offset-r.height;break;case"left":case"top":i+=t.offset}return{x:n,y:i}},e.prototype.getEdgePlacement=function(e){var t=e,o=[];while(void 0!==t){var i=t.edgePlacement;if(void 0!==i&&o.push(i),!(t instanceof s.SChildElement))break;t=t.parent}return o.reverse().reduce(function(e,t){return n(n({},e),t)},b.DEFAULT_EDGE_PLACEMENT)},e.prototype.getAlignment=function(e,t,o){var n=e.bounds,i=u.isAlignable(e)?e.alignment.x-n.width:0,r=u.isAlignable(e)?e.alignment.y-n.height:0;if("on"===t.side)return{x:i+.5*n.height,y:r+.5*n.height};var a=this.getQuadrant(o),s={x:t.offset,y:r+.5*n.height},c={x:t.offset,y:r+n.height+t.offset},p={x:-n.width-t.offset,y:r+n.height+t.offset},b={x:-n.width-t.offset,y:r+.5*n.height},d={x:-n.width-t.offset,y:r-t.offset},M={x:t.offset,y:r-t.offset};switch(t.side){case"left":switch(a.orientation){case"west":return l.linear(c,p,a.position);case"north":return l.linear(p,d,a.position);case"east":return l.linear(d,M,a.position);case"south":return l.linear(M,c,a.position)}break;case"right":switch(a.orientation){case"west":return l.linear(d,M,a.position);case"north":return l.linear(M,c,a.position);case"east":return l.linear(c,p,a.position);case"south":return l.linear(p,d,a.position)}break;case"top":switch(a.orientation){case"west":return l.linear(d,M,a.position);case"north":return this.linearFlip(M,s,b,d,a.position);case"east":return l.linear(d,M,a.position);case"south":return this.linearFlip(M,s,b,d,a.position)}break;case"bottom":switch(a.orientation){case"west":return l.linear(c,p,a.position);case"north":return this.linearFlip(p,b,s,c,a.position);case"east":return l.linear(c,p,a.position);case"south":return this.linearFlip(p,b,s,c,a.position)}break}return{x:0,y:0}},e.prototype.getQuadrant=function(e){return Math.abs(e)>135?{orientation:"west",position:(e>0?e-135:e+225)/90}:e<-45?{orientation:"north",position:(e+135)/90}:e<45?{orientation:"east",position:(e+45)/90}:{orientation:"south",position:(e-45)/90}},e.prototype.linearFlip=function(e,t,o,n,i){return i<.5?l.linear(e,t,2*i):l.linear(o,n,2*i-1)},e.prototype.postUpdate=function(){},i([a.inject(d.EdgeRouterRegistry),r("design:type",d.EdgeRouterRegistry)],e.prototype,"edgeRouterRegistry",void 0),e=i([a.injectable()],e),e}();t.EdgeLayoutPostprocessor=M},"9e2e":function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__spreadArrays||function(){for(var e=0,t=0,o=arguments.length;t=a.error)try{console.error.apply(e,this.consoleArguments(e,t,o))}catch(e){}},e.prototype.warn=function(e,t){for(var o=[],n=2;n=a.warn)try{console.warn.apply(e,this.consoleArguments(e,t,o))}catch(e){}},e.prototype.info=function(e,t){for(var o=[],n=2;n=a.info)try{console.info.apply(e,this.consoleArguments(e,t,o))}catch(e){}},e.prototype.log=function(e,t){for(var o=[],n=2;n=a.log)try{console.log.apply(e,this.consoleArguments(e,t,o))}catch(e){}},e.prototype.consoleArguments=function(e,t,o){var n;n="object"===typeof e?e.constructor.name:e;var i=new Date;return r([i.toLocaleTimeString()+" "+this.viewOptions.baseDiv+" "+n+": "+t],o)},n([s.inject(c.TYPES.LogLevel),i("design:type",Number)],e.prototype,"logLevel",void 0),n([s.inject(c.TYPES.ViewerOptions),i("design:type",Object)],e.prototype,"viewOptions",void 0),e=n([s.injectable()],e),e}();t.ConsoleLogger=l},"9f62":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("c5f4"),i=o("1979"),r=o("66d7");function a(){return function(e,t,o){var a=new i.Metadata(n.UNMANAGED_TAG,!0);r.tagParameter(e,t,o,a)}}t.unmanaged=a},"9f8d":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("1cd9"),a=o("5d19"),s=o("842c"),c=new n.ContainerModule(function(e,t,o){e(i.TYPES.KeyListener).to(r.ExportSvgKeyListener).inSingletonScope(),e(i.TYPES.HiddenVNodePostprocessor).to(r.ExportSvgPostprocessor).inSingletonScope(),s.configureCommand({bind:e,isBound:o},r.ExportSvgCommand),e(i.TYPES.SvgExporter).to(a.SvgExporter).inSingletonScope()});t.default=c},a0af:function(e,t,o){"use strict";function n(e){return void 0!==e["position"]}function i(e){return e.hasFeature(t.moveFeature)&&n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.moveFeature=Symbol("moveFeature"),t.isLocateable=n,t.isMoveable=i},a16f:function(e,t,o){},a190:function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("e1c6"),r=o("e45b"),a=function(){function e(){}return e.prototype.decorate=function(e,t){return e.sel&&e.sel.startsWith("svg")&&r.setAttr(e,"tabindex",0),e},e.prototype.postUpdate=function(){},e=n([i.injectable()],e),e}();t.FocusFixPostprocessor=a},a1a5:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("c5f4"),i=o("1979"),r=o("66d7");function a(e){return function(t,o,a){var s=new i.Metadata(n.NAME_TAG,e);r.tagParameter(t,o,a,s)}}t.targetName=a},a27f:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("bcc9");t.Draggable=n.Draggable},a2e1:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("dd02"),i=o("3a92"),r=o("66f9"),a=function(){function e(){}return e.prototype.layout=function(e,t){var o=t.getBoundsData(e),n=this.getLayoutOptions(e),i=this.getChildrenSize(e,n,t),r=n.paddingFactor*(n.resizeContainer?i.width:Math.max(0,this.getFixedContainerBounds(e,n,t).width)-n.paddingLeft-n.paddingRight),a=n.paddingFactor*(n.resizeContainer?i.height:Math.max(0,this.getFixedContainerBounds(e,n,t).height)-n.paddingTop-n.paddingBottom);if(r>0&&a>0){var s=this.layoutChildren(e,t,n,r,a);o.bounds=this.getFinalContainerBounds(e,s,n,r,a),o.boundsChanged=!0}},e.prototype.getFinalContainerBounds=function(e,t,o,n,i){return{x:e.bounds.x,y:e.bounds.y,width:Math.max(o.minWidth,n+o.paddingLeft+o.paddingRight),height:Math.max(o.minHeight,i+o.paddingTop+o.paddingBottom)}},e.prototype.getFixedContainerBounds=function(e,t,o){var a=e;while(1){if(r.isBoundsAware(a)){var s=a.bounds;if(r.isLayoutContainer(a)&&t.resizeContainer&&o.log.error(a,"Resizable container found while detecting fixed bounds"),n.isValidDimension(s))return s}if(!(a instanceof i.SChildElement))return o.log.error(a,"Cannot detect fixed bounds"),n.EMPTY_BOUNDS;a=a.parent}},e.prototype.layoutChildren=function(e,t,o,i,a){var s=this,c={x:o.paddingLeft+.5*(i-i/o.paddingFactor),y:o.paddingTop+.5*(a-a/o.paddingFactor)};return e.children.forEach(function(e){if(r.isLayoutableChild(e)){var p=t.getBoundsData(e),l=p.bounds,u=s.getChildLayoutOptions(e,o);void 0!==l&&n.isValidDimension(l)&&(c=s.layoutChild(e,p,l,u,o,c,i,a))}}),c},e.prototype.getDx=function(e,t,o){switch(e){case"left":return 0;case"center":return.5*(o-t.width);case"right":return o-t.width}},e.prototype.getDy=function(e,t,o){switch(e){case"top":return 0;case"center":return.5*(o-t.height);case"bottom":return o-t.height}},e.prototype.getChildLayoutOptions=function(e,t){var o=e.layoutOptions;return void 0===o?t:this.spread(t,o)},e.prototype.getLayoutOptions=function(e){var t=this,o=e,n=[];while(void 0!==o){var r=o.layoutOptions;if(void 0!==r&&n.push(r),!(o instanceof i.SChildElement))break;o=o.parent}return n.reverse().reduce(function(e,o){return t.spread(e,o)},this.getDefaultLayoutOptions())},e}();t.AbstractLayout=a},a32f:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("77d3"),i=function(){function e(e){this.id=n.id(),this.container=e}return e.prototype.addPlan=function(e){this.plan=e},e.prototype.setCurrentRequest=function(e){this.currentRequest=e},e}();t.Context=i},a406:function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=o("e1c6"),s=o("510b"),c=o("6923"),p=o("e629"),l=o("e1cb"),u=o("bcbd"),b=o("ed4f"),d=function(){function e(e){void 0===e&&(e=[]),this.actionProviders=e}return e.prototype.getActions=function(e,t,o,n){var i=this.actionProviders.map(function(i){return i.getActions(e,t,o,n)});return Promise.all(i).then(function(e){return e.reduce(function(e,t){return void 0!==t?e.concat(t):e})})},e=n([a.injectable(),r(0,a.multiInject(c.TYPES.ICommandPaletteActionProvider)),r(0,a.optional()),i("design:paramtypes",[Array])],e),e}();t.CommandPaletteActionProviderRegistry=d;var M=function(){function e(e){this.logger=e}return e.prototype.getActions=function(e,t,o,n){return void 0!==n&&n%2===0?Promise.resolve(this.createSelectActions(e)):Promise.resolve([new s.LabeledAction("Select all",[new u.SelectAllAction])])},e.prototype.createSelectActions=function(e){var t=p.toArray(e.index.all().filter(function(e){return l.isNameable(e)}));return t.map(function(e){return new s.LabeledAction("Reveal "+l.name(e),[new u.SelectAction([e.id]),new b.CenterAction([e.id])],"fa-eye")})},e=n([a.injectable(),r(0,a.inject(c.TYPES.ILogger)),i("design:paramtypes",[Object])],e),e}();t.RevealNamedElementActionProvider=M},a4c5:function(e,t,o){"use strict";var n=o("7364"),i=o.n(n);i.a},a5b7:function(e,t,o){(function(t,o){e.exports=o()})("undefined"!==typeof self&&self,function(){return function(e){var t={};function o(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)o.d(n,i,function(t){return e[t]}.bind(null,i));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s="fb15")}({"014b":function(e,t,o){"use strict";var n=o("e53d"),i=o("07e3"),r=o("8e60"),a=o("63b6"),s=o("9138"),c=o("ebfd").KEY,p=o("294c"),l=o("dbdb"),u=o("45f2"),b=o("62a0"),d=o("5168"),M=o("ccb9"),h=o("6718"),f=o("47ee"),z=o("9003"),O=o("e4ae"),A=o("f772"),m=o("36c3"),v=o("1bc3"),g=o("aebd"),y=o("a159"),q=o("0395"),_=o("bf0b"),W=o("d9f6"),R=o("c3a1"),w=_.f,L=W.f,C=q.f,S=n.Symbol,E=n.JSON,T=E&&E.stringify,x="prototype",N=d("_hidden"),B=d("toPrimitive"),k={}.propertyIsEnumerable,P=l("symbol-registry"),D=l("symbols"),I=l("op-symbols"),X=Object[x],j="function"==typeof S,F=n.QObject,H=!F||!F[x]||!F[x].findChild,U=r&&p(function(){return 7!=y(L({},"a",{get:function(){return L(this,"a",{value:7}).a}})).a})?function(e,t,o){var n=w(X,t);n&&delete X[t],L(e,t,o),n&&e!==X&&L(X,t,n)}:L,V=function(e){var t=D[e]=y(S[x]);return t._k=e,t},G=j&&"symbol"==typeof S.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof S},K=function(e,t,o){return e===X&&K(I,t,o),O(e),t=v(t,!0),O(o),i(D,t)?(o.enumerable?(i(e,N)&&e[N][t]&&(e[N][t]=!1),o=y(o,{enumerable:g(0,!1)})):(i(e,N)||L(e,N,g(1,{})),e[N][t]=!0),U(e,t,o)):L(e,t,o)},$=function(e,t){O(e);var o,n=f(t=m(t)),i=0,r=n.length;while(r>i)K(e,o=n[i++],t[o]);return e},Y=function(e,t){return void 0===t?y(e):$(y(e),t)},J=function(e){var t=k.call(this,e=v(e,!0));return!(this===X&&i(D,e)&&!i(I,e))&&(!(t||!i(this,e)||!i(D,e)||i(this,N)&&this[N][e])||t)},Q=function(e,t){if(e=m(e),t=v(t,!0),e!==X||!i(D,t)||i(I,t)){var o=w(e,t);return!o||!i(D,t)||i(e,N)&&e[N][t]||(o.enumerable=!0),o}},Z=function(e){var t,o=C(m(e)),n=[],r=0;while(o.length>r)i(D,t=o[r++])||t==N||t==c||n.push(t);return n},ee=function(e){var t,o=e===X,n=C(o?I:m(e)),r=[],a=0;while(n.length>a)!i(D,t=n[a++])||o&&!i(X,t)||r.push(D[t]);return r};j||(S=function(){if(this instanceof S)throw TypeError("Symbol is not a constructor!");var e=b(arguments.length>0?arguments[0]:void 0),t=function(o){this===X&&t.call(I,o),i(this,N)&&i(this[N],e)&&(this[N][e]=!1),U(this,e,g(1,o))};return r&&H&&U(X,e,{configurable:!0,set:t}),V(e)},s(S[x],"toString",function(){return this._k}),_.f=Q,W.f=K,o("6abf").f=q.f=Z,o("355d").f=J,o("9aa9").f=ee,r&&!o("b8e3")&&s(X,"propertyIsEnumerable",J,!0),M.f=function(e){return V(d(e))}),a(a.G+a.W+a.F*!j,{Symbol:S});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),oe=0;te.length>oe;)d(te[oe++]);for(var ne=R(d.store),ie=0;ne.length>ie;)h(ne[ie++]);a(a.S+a.F*!j,"Symbol",{for:function(e){return i(P,e+="")?P[e]:P[e]=S(e)},keyFor:function(e){if(!G(e))throw TypeError(e+" is not a symbol!");for(var t in P)if(P[t]===e)return t},useSetter:function(){H=!0},useSimple:function(){H=!1}}),a(a.S+a.F*!j,"Object",{create:Y,defineProperty:K,defineProperties:$,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:ee}),E&&a(a.S+a.F*(!j||p(function(){var e=S();return"[null]"!=T([e])||"{}"!=T({a:e})||"{}"!=T(Object(e))})),"JSON",{stringify:function(e){var t,o,n=[e],i=1;while(arguments.length>i)n.push(arguments[i++]);if(o=t=n[1],(A(t)||void 0!==e)&&!G(e))return z(t)||(t=function(e,t){if("function"==typeof o&&(t=o.call(this,e,t)),!G(t))return t}),n[1]=t,T.apply(E,n)}}),S[x][B]||o("35e8")(S[x],B,S[x].valueOf),u(S,"Symbol"),u(Math,"Math",!0),u(n.JSON,"JSON",!0)},"01f9":function(e,t,o){"use strict";var n=o("2d00"),i=o("5ca1"),r=o("2aba"),a=o("32e9"),s=o("84f2"),c=o("41a0"),p=o("7f20"),l=o("38fd"),u=o("2b4c")("iterator"),b=!([].keys&&"next"in[].keys()),d="@@iterator",M="keys",h="values",f=function(){return this};e.exports=function(e,t,o,z,O,A,m){c(o,t,z);var v,g,y,q=function(e){if(!b&&e in w)return w[e];switch(e){case M:return function(){return new o(this,e)};case h:return function(){return new o(this,e)}}return function(){return new o(this,e)}},_=t+" Iterator",W=O==h,R=!1,w=e.prototype,L=w[u]||w[d]||O&&w[O],C=L||q(O),S=O?W?q("entries"):C:void 0,E="Array"==t&&w.entries||L;if(E&&(y=l(E.call(new e)),y!==Object.prototype&&y.next&&(p(y,_,!0),n||"function"==typeof y[u]||a(y,u,f))),W&&L&&L.name!==h&&(R=!0,C=function(){return L.call(this)}),n&&!m||!b&&!R&&w[u]||a(w,u,C),s[t]=C,s[_]=f,O)if(v={values:W?C:q(h),keys:A?C:q(M),entries:S},m)for(g in v)g in w||r(w,g,v[g]);else i(i.P+i.F*(b||R),t,v);return v}},"0395":function(e,t,o){var n=o("36c3"),i=o("6abf").f,r={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==r.call(e)?s(e):i(n(e))}},"07e3":function(e,t){var o={}.hasOwnProperty;e.exports=function(e,t){return o.call(e,t)}},"09fa":function(e,t,o){var n=o("4588"),i=o("9def");e.exports=function(e){if(void 0===e)return 0;var t=n(e),o=i(t);if(t!==o)throw RangeError("Wrong length!");return o}},"0a49":function(e,t,o){var n=o("9b43"),i=o("626a"),r=o("4bf8"),a=o("9def"),s=o("cd1c");e.exports=function(e,t){var o=1==e,c=2==e,p=3==e,l=4==e,u=6==e,b=5==e||u,d=t||s;return function(t,s,M){for(var h,f,z=r(t),O=i(z),A=n(s,M,3),m=a(O.length),v=0,g=o?d(t,m):c?d(t,0):void 0;m>v;v++)if((b||v in O)&&(h=O[v],f=A(h,v,z),e))if(o)g[v]=f;else if(f)switch(e){case 3:return!0;case 5:return h;case 6:return v;case 2:g.push(h)}else if(l)return!1;return u?-1:p||l?l:g}}},"0bfb":function(e,t,o){"use strict";var n=o("cb7c");e.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0d58":function(e,t,o){var n=o("ce10"),i=o("e11e");e.exports=Object.keys||function(e){return n(e,i)}},"0f88":function(e,t,o){var n,i=o("7726"),r=o("32e9"),a=o("ca5a"),s=a("typed_array"),c=a("view"),p=!(!i.ArrayBuffer||!i.DataView),l=p,u=0,b=9,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");while(up)r.call(a,o=s[p++])&&l.push(e?[o,a[o]]:a[o]);return l}}},1495:function(e,t,o){var n=o("86cc"),i=o("cb7c"),r=o("0d58");e.exports=o("9e1e")?Object.defineProperties:function(e,t){i(e);var o,a=r(t),s=a.length,c=0;while(s>c)n.f(e,o=a[c++],t[o]);return e}},1654:function(e,t,o){"use strict";var n=o("71c1")(!0);o("30f1")(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,o=this._i;return o>=t.length?{value:void 0,done:!0}:(e=n(t,o),this._i+=e.length,{value:e,done:!1})})},1691:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"1af6":function(e,t,o){var n=o("63b6");n(n.S,"Array",{isArray:o("9003")})},"1bc3":function(e,t,o){var n=o("f772");e.exports=function(e,t){if(!n(e))return e;var o,i;if(t&&"function"==typeof(o=e.toString)&&!n(i=o.call(e)))return i;if("function"==typeof(o=e.valueOf)&&!n(i=o.call(e)))return i;if(!t&&"function"==typeof(o=e.toString)&&!n(i=o.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(e,t,o){var n=o("f772"),i=o("e53d").document,r=n(i)&&n(i.createElement);e.exports=function(e){return r?i.createElement(e):{}}},"20fd":function(e,t,o){"use strict";var n=o("d9f6"),i=o("aebd");e.exports=function(e,t,o){t in e?n.f(e,t,i(0,o)):e[t]=o}},"214f":function(e,t,o){"use strict";var n=o("32e9"),i=o("2aba"),r=o("79e5"),a=o("be13"),s=o("2b4c");e.exports=function(e,t,o){var c=s(e),p=o(a,c,""[e]),l=p[0],u=p[1];r(function(){var t={};return t[c]=function(){return 7},7!=""[e](t)})&&(i(String.prototype,e,l),n(RegExp.prototype,c,2==t?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)}))}},"230e":function(e,t,o){var n=o("d3f4"),i=o("7726").document,r=n(i)&&n(i.createElement);e.exports=function(e){return r?i.createElement(e):{}}},"23c6":function(e,t,o){var n=o("2d95"),i=o("2b4c")("toStringTag"),r="Arguments"==n(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,o,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(o=a(t=Object(e),i))?o:r?n(t):"Object"==(s=n(t))&&"function"==typeof t.callee?"Arguments":s}},"241e":function(e,t,o){var n=o("25eb");e.exports=function(e){return Object(n(e))}},"25eb":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"27ee":function(e,t,o){var n=o("23c6"),i=o("2b4c")("iterator"),r=o("84f2");e.exports=o("8378").getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||r[n(e)]}},"28a5":function(e,t,o){o("214f")("split",2,function(e,t,n){"use strict";var i=o("aae3"),r=n,a=[].push,s="split",c="length",p="lastIndex";if("c"=="abbc"[s](/(b)*/)[1]||4!="test"[s](/(?:)/,-1)[c]||2!="ab"[s](/(?:ab)*/)[c]||4!="."[s](/(.?)(.?)/)[c]||"."[s](/()()/)[c]>1||""[s](/.?/)[c]){var l=void 0===/()??/.exec("")[1];n=function(e,t){var o=String(this);if(void 0===e&&0===t)return[];if(!i(e))return r.call(o,e,t);var n,s,u,b,d,M=[],h=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,z=void 0===t?4294967295:t>>>0,O=new RegExp(e.source,h+"g");l||(n=new RegExp("^"+O.source+"$(?!\\s)",h));while(s=O.exec(o)){if(u=s.index+s[0][c],u>f&&(M.push(o.slice(f,s.index)),!l&&s[c]>1&&s[0].replace(n,function(){for(d=1;d1&&s.index=z))break;O[p]===s.index&&O[p]++}return f===o[c]?!b&&O.test("")||M.push(""):M.push(o.slice(f)),M[c]>z?M.slice(0,z):M}}else"0"[s](void 0,0)[c]&&(n=function(e,t){return void 0===e&&0===t?[]:r.call(this,e,t)});return[function(o,i){var r=e(this),a=void 0==o?void 0:o[t];return void 0!==a?a.call(o,r,i):n.call(String(r),o,i)},n]})},"294c":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"2aba":function(e,t,o){var n=o("7726"),i=o("32e9"),r=o("69a8"),a=o("ca5a")("src"),s="toString",c=Function[s],p=(""+c).split(s);o("8378").inspectSource=function(e){return c.call(e)},(e.exports=function(e,t,o,s){var c="function"==typeof o;c&&(r(o,"name")||i(o,"name",t)),e[t]!==o&&(c&&(r(o,a)||i(o,a,e[t]?""+e[t]:p.join(String(t)))),e===n?e[t]=o:s?e[t]?e[t]=o:i(e,t,o):(delete e[t],i(e,t,o)))})(Function.prototype,s,function(){return"function"==typeof this&&this[a]||c.call(this)})},"2aeb":function(e,t,o){var n=o("cb7c"),i=o("1495"),r=o("e11e"),a=o("613b")("IE_PROTO"),s=function(){},c="prototype",p=function(){var e,t=o("230e")("iframe"),n=r.length,i="<",a=">";t.style.display="none",o("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),e.close(),p=e.F;while(n--)delete p[c][r[n]];return p()};e.exports=Object.create||function(e,t){var o;return null!==e?(s[c]=n(e),o=new s,s[c]=null,o[a]=e):o=p(),void 0===t?o:i(o,t)}},"2b4c":function(e,t,o){var n=o("5537")("wks"),i=o("ca5a"),r=o("7726").Symbol,a="function"==typeof r,s=e.exports=function(e){return n[e]||(n[e]=a&&r[e]||(a?r:i)("Symbol."+e))};s.store=n},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var o={}.toString;e.exports=function(e){return o.call(e).slice(8,-1)}},"30f1":function(e,t,o){"use strict";var n=o("b8e3"),i=o("63b6"),r=o("9138"),a=o("35e8"),s=o("481b"),c=o("8f60"),p=o("45f2"),l=o("53e2"),u=o("5168")("iterator"),b=!([].keys&&"next"in[].keys()),d="@@iterator",M="keys",h="values",f=function(){return this};e.exports=function(e,t,o,z,O,A,m){c(o,t,z);var v,g,y,q=function(e){if(!b&&e in w)return w[e];switch(e){case M:return function(){return new o(this,e)};case h:return function(){return new o(this,e)}}return function(){return new o(this,e)}},_=t+" Iterator",W=O==h,R=!1,w=e.prototype,L=w[u]||w[d]||O&&w[O],C=L||q(O),S=O?W?q("entries"):C:void 0,E="Array"==t&&w.entries||L;if(E&&(y=l(E.call(new e)),y!==Object.prototype&&y.next&&(p(y,_,!0),n||"function"==typeof y[u]||a(y,u,f))),W&&L&&L.name!==h&&(R=!0,C=function(){return L.call(this)}),n&&!m||!b&&!R&&w[u]||a(w,u,C),s[t]=C,s[_]=f,O)if(v={values:W?C:q(h),keys:A?C:q(M),entries:S},m)for(g in v)g in w||r(w,g,v[g]);else i(i.P+i.F*(b||R),t,v);return v}},"32e9":function(e,t,o){var n=o("86cc"),i=o("4630");e.exports=o("9e1e")?function(e,t,o){return n.f(e,t,i(1,o))}:function(e,t,o){return e[t]=o,e}},"32fc":function(e,t,o){var n=o("e53d").document;e.exports=n&&n.documentElement},"335c":function(e,t,o){var n=o("6b4c");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},"33a4":function(e,t,o){var n=o("84f2"),i=o("2b4c")("iterator"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||r[i]===e)}},"33cb":function(e,t,o){},"34ef":function(e,t,o){o("ec30")("Uint8",1,function(e){return function(t,o,n){return e(this,t,o,n)}})},"355d":function(e,t){t.f={}.propertyIsEnumerable},"35e8":function(e,t,o){var n=o("d9f6"),i=o("aebd");e.exports=o("8e60")?function(e,t,o){return n.f(e,t,i(1,o))}:function(e,t,o){return e[t]=o,e}},"36bd":function(e,t,o){"use strict";var n=o("4bf8"),i=o("77f1"),r=o("9def");e.exports=function(e){var t=n(this),o=r(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,o),c=a>2?arguments[2]:void 0,p=void 0===c?o:i(c,o);while(p>s)t[s++]=e;return t}},"36c3":function(e,t,o){var n=o("335c"),i=o("25eb");e.exports=function(e){return n(i(e))}},3702:function(e,t,o){var n=o("481b"),i=o("5168")("iterator"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||r[i]===e)}},3846:function(e,t,o){o("9e1e")&&"g"!=/./g.flags&&o("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:o("0bfb")})},"386b":function(e,t,o){var n=o("5ca1"),i=o("79e5"),r=o("be13"),a=/"/g,s=function(e,t,o,n){var i=String(r(e)),s="<"+t;return""!==o&&(s+=" "+o+'="'+String(n).replace(a,""")+'"'),s+">"+i+""};e.exports=function(e,t){var o={};o[e]=t(s),n(n.P+n.F*i(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",o)}},"38fd":function(e,t,o){var n=o("69a8"),i=o("4bf8"),r=o("613b")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),n(e,r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},"3a38":function(e,t){var o=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:o)(e)}},"3d11":function(e,t,o){"use strict";var n=o("33cb"),i=o.n(n);i.a},"40c3":function(e,t,o){var n=o("6b4c"),i=o("5168")("toStringTag"),r="Arguments"==n(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,o,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(o=a(t=Object(e),i))?o:r?n(t):"Object"==(s=n(t))&&"function"==typeof t.callee?"Arguments":s}},"41a0":function(e,t,o){"use strict";var n=o("2aeb"),i=o("4630"),r=o("7f20"),a={};o("32e9")(a,o("2b4c")("iterator"),function(){return this}),e.exports=function(e,t,o){e.prototype=n(a,{next:i(1,o)}),r(e,t+" Iterator")}},4588:function(e,t){var o=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:o)(e)}},"45f2":function(e,t,o){var n=o("d9f6").f,i=o("07e3"),r=o("5168")("toStringTag");e.exports=function(e,t,o){e&&!i(e=o?e:e.prototype,r)&&n(e,r,{configurable:!0,value:t})}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"469f":function(e,t,o){o("6c1c"),o("1654"),e.exports=o("7d7b")},"47ee":function(e,t,o){var n=o("c3a1"),i=o("9aa9"),r=o("355d");e.exports=function(e){var t=n(e),o=i.f;if(o){var a,s=o(e),c=r.f,p=0;while(s.length>p)c.call(e,a=s[p++])&&t.push(a)}return t}},"481b":function(e,t){e.exports={}},"4bf8":function(e,t,o){var n=o("be13");e.exports=function(e){return Object(n(e))}},"4ee1":function(e,t,o){var n=o("5168")("iterator"),i=!1;try{var r=[7][n]();r["return"]=function(){i=!0},Array.from(r,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var o=!1;try{var r=[7],a=r[n]();a.next=function(){return{done:o=!0}},r[n]=function(){return a},e(r)}catch(e){}return o}},"50ed":function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},5168:function(e,t,o){var n=o("dbdb")("wks"),i=o("62a0"),r=o("e53d").Symbol,a="function"==typeof r,s=e.exports=function(e){return n[e]||(n[e]=a&&r[e]||(a?r:i)("Symbol."+e))};s.store=n},5176:function(e,t,o){e.exports=o("51b6")},"51b6":function(e,t,o){o("a3c3"),e.exports=o("584a").Object.assign},"52a7":function(e,t){t.f={}.propertyIsEnumerable},"53e2":function(e,t,o){var n=o("07e3"),i=o("241e"),r=o("5559")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),n(e,r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},"549b":function(e,t,o){"use strict";var n=o("d864"),i=o("63b6"),r=o("241e"),a=o("b0dc"),s=o("3702"),c=o("b447"),p=o("20fd"),l=o("7cd6");i(i.S+i.F*!o("4ee1")(function(e){Array.from(e)}),"Array",{from:function(e){var t,o,i,u,b=r(e),d="function"==typeof this?this:Array,M=arguments.length,h=M>1?arguments[1]:void 0,f=void 0!==h,z=0,O=l(b);if(f&&(h=n(h,M>2?arguments[2]:void 0,2)),void 0==O||d==Array&&s(O))for(t=c(b.length),o=new d(t);t>z;z++)p(o,z,f?h(b[z],z):b[z]);else for(u=O.call(b),o=new d;!(i=u.next()).done;z++)p(o,z,f?a(u,h,[i.value,z],!0):i.value);return o.length=z,o}})},"54a1":function(e,t,o){o("6c1c"),o("1654"),e.exports=o("95d5")},5537:function(e,t,o){var n=o("8378"),i=o("7726"),r="__core-js_shared__",a=i[r]||(i[r]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:o("2d00")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},5559:function(e,t,o){var n=o("dbdb")("keys"),i=o("62a0");e.exports=function(e){return n[e]||(n[e]=i(e))}},"584a":function(e,t){var o=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=o)},"59a0":function(e,t,o){"use strict";var n=o("9257"),i=o.n(n);i.a},"5b4e":function(e,t,o){var n=o("36c3"),i=o("b447"),r=o("0fc9");e.exports=function(e){return function(t,o,a){var s,c=n(t),p=i(c.length),l=r(a,p);if(e&&o!=o){while(p>l)if(s=c[l++],s!=s)return!0}else for(;p>l;l++)if((e||l in c)&&c[l]===o)return e||l||0;return!e&&-1}}},"5ca1":function(e,t,o){var n=o("7726"),i=o("8378"),r=o("32e9"),a=o("2aba"),s=o("9b43"),c="prototype",p=function(e,t,o){var l,u,b,d,M=e&p.F,h=e&p.G,f=e&p.S,z=e&p.P,O=e&p.B,A=h?n:f?n[t]||(n[t]={}):(n[t]||{})[c],m=h?i:i[t]||(i[t]={}),v=m[c]||(m[c]={});for(l in h&&(o=t),o)u=!M&&A&&void 0!==A[l],b=(u?A:o)[l],d=O&&u?s(b,n):z&&"function"==typeof b?s(Function.call,b):b,A&&a(A,l,b,e&p.U),m[l]!=b&&r(m,l,d),z&&v[l]!=b&&(v[l]=b)};n.core=i,p.F=1,p.G=2,p.S=4,p.P=8,p.B=16,p.W=32,p.U=64,p.R=128,e.exports=p},"5cc5":function(e,t,o){var n=o("2b4c")("iterator"),i=!1;try{var r=[7][n]();r["return"]=function(){i=!0},Array.from(r,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var o=!1;try{var r=[7],a=r[n]();a.next=function(){return{done:o=!0}},r[n]=function(){return a},e(r)}catch(e){}return o}},"5d58":function(e,t,o){e.exports=o("d8d6")},"5d6b":function(e,t,o){var n=o("e53d").parseInt,i=o("a1ce").trim,r=o("e692"),a=/^[-+]?0[xX]/;e.exports=8!==n(r+"08")||22!==n(r+"0x16")?function(e,t){var o=i(String(e),3);return n(o,t>>>0||(a.test(o)?16:10))}:n},"5d73":function(e,t,o){e.exports=o("469f")},"613b":function(e,t,o){var n=o("5537")("keys"),i=o("ca5a");e.exports=function(e){return n[e]||(n[e]=i(e))}},"626a":function(e,t,o){var n=o("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},"62a0":function(e,t){var o=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++o+n).toString(36))}},"63b6":function(e,t,o){var n=o("e53d"),i=o("584a"),r=o("d864"),a=o("35e8"),s=o("07e3"),c="prototype",p=function(e,t,o){var l,u,b,d=e&p.F,M=e&p.G,h=e&p.S,f=e&p.P,z=e&p.B,O=e&p.W,A=M?i:i[t]||(i[t]={}),m=A[c],v=M?n:h?n[t]:(n[t]||{})[c];for(l in M&&(o=t),o)u=!d&&v&&void 0!==v[l],u&&s(A,l)||(b=u?v[l]:o[l],A[l]=M&&"function"!=typeof v[l]?o[l]:z&&u?r(b,n):O&&v[l]==b?function(e){var t=function(t,o,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,o)}return new e(t,o,n)}return e.apply(this,arguments)};return t[c]=e[c],t}(b):f&&"function"==typeof b?r(Function.call,b):b,f&&((A.virtual||(A.virtual={}))[l]=b,e&p.R&&m&&!m[l]&&a(m,l,b)))};p.F=1,p.G=2,p.S=4,p.P=8,p.B=16,p.W=32,p.U=64,p.R=128,e.exports=p},6718:function(e,t,o){var n=o("e53d"),i=o("584a"),r=o("b8e3"),a=o("ccb9"),s=o("d9f6").f;e.exports=function(e){var t=i.Symbol||(i.Symbol=r?{}:n.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},"67bb":function(e,t,o){e.exports=o("f921")},6821:function(e,t,o){var n=o("626a"),i=o("be13");e.exports=function(e){return n(i(e))}},"69a8":function(e,t){var o={}.hasOwnProperty;e.exports=function(e,t){return o.call(e,t)}},"69d3":function(e,t,o){o("6718")("asyncIterator")},"6a99":function(e,t,o){var n=o("d3f4");e.exports=function(e,t){if(!n(e))return e;var o,i;if(t&&"function"==typeof(o=e.toString)&&!n(i=o.call(e)))return i;if("function"==typeof(o=e.valueOf)&&!n(i=o.call(e)))return i;if(!t&&"function"==typeof(o=e.toString)&&!n(i=o.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"6abf":function(e,t,o){var n=o("e6f3"),i=o("1691").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},"6b4c":function(e,t){var o={}.toString;e.exports=function(e){return o.call(e).slice(8,-1)}},"6b54":function(e,t,o){"use strict";o("3846");var n=o("cb7c"),i=o("0bfb"),r=o("9e1e"),a="toString",s=/./[a],c=function(e){o("2aba")(RegExp.prototype,a,e,!0)};o("79e5")(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?c(function(){var e=n(this);return"/".concat(e.source,"/","flags"in e?e.flags:!r&&e instanceof RegExp?i.call(e):void 0)}):s.name!=a&&c(function(){return s.call(this)})},"6c1c":function(e,t,o){o("c367");for(var n=o("e53d"),i=o("35e8"),r=o("481b"),a=o("5168")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c=p?e?"":void 0:(r=s.charCodeAt(c),r<55296||r>56319||c+1===p||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):r:e?s.slice(c,c+2):a-56320+(r-55296<<10)+65536)}}},7445:function(e,t,o){var n=o("63b6"),i=o("5d6b");n(n.G+n.F*(parseInt!=i),{parseInt:i})},"765d":function(e,t,o){o("6718")("observable")},7726:function(e,t){var o=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=o)},"774e":function(e,t,o){e.exports=o("d2d5")},"77f1":function(e,t,o){var n=o("4588"),i=Math.max,r=Math.min;e.exports=function(e,t){return e=n(e),e<0?i(e+t,0):r(e,t)}},"794b":function(e,t,o){e.exports=!o("8e60")&&!o("294c")(function(){return 7!=Object.defineProperty(o("1ec9")("div"),"a",{get:function(){return 7}}).a})},"79aa":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"7a56":function(e,t,o){"use strict";var n=o("7726"),i=o("86cc"),r=o("9e1e"),a=o("2b4c")("species");e.exports=function(e){var t=n[e];r&&t&&!t[a]&&i.f(t,a,{configurable:!0,get:function(){return this}})}},"7cd6":function(e,t,o){var n=o("40c3"),i=o("5168")("iterator"),r=o("481b");e.exports=o("584a").getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||r[n(e)]}},"7d6d":function(e,t,o){var n=o("63b6"),i=o("13c8")(!1);n(n.S,"Object",{values:function(e){return i(e)}})},"7d7b":function(e,t,o){var n=o("e4ae"),i=o("7cd6");e.exports=o("584a").getIterator=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return n(t.call(e))}},"7e90":function(e,t,o){var n=o("d9f6"),i=o("e4ae"),r=o("c3a1");e.exports=o("8e60")?Object.defineProperties:function(e,t){i(e);var o,a=r(t),s=a.length,c=0;while(s>c)n.f(e,o=a[c++],t[o]);return e}},"7f20":function(e,t,o){var n=o("86cc").f,i=o("69a8"),r=o("2b4c")("toStringTag");e.exports=function(e,t,o){e&&!i(e=o?e:e.prototype,r)&&n(e,r,{configurable:!0,value:t})}},"7f7f":function(e,t,o){var n=o("86cc").f,i=Function.prototype,r=/^\s*function ([^ (]*)/,a="name";a in i||o("9e1e")&&n(i,a,{configurable:!0,get:function(){try{return(""+this).match(r)[1]}catch(e){return""}}})},8378:function(e,t){var o=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=o)},8436:function(e,t){e.exports=function(){}},"84f2":function(e,t){e.exports={}},"86cc":function(e,t,o){var n=o("cb7c"),i=o("c69a"),r=o("6a99"),a=Object.defineProperty;t.f=o("9e1e")?Object.defineProperty:function(e,t,o){if(n(e),t=r(t,!0),n(o),i)try{return a(e,t,o)}catch(e){}if("get"in o||"set"in o)throw TypeError("Accessors not supported!");return"value"in o&&(e[t]=o.value),e}},"8e60":function(e,t,o){e.exports=!o("294c")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"8f60":function(e,t,o){"use strict";var n=o("a159"),i=o("aebd"),r=o("45f2"),a={};o("35e8")(a,o("5168")("iterator"),function(){return this}),e.exports=function(e,t,o){e.prototype=n(a,{next:i(1,o)}),r(e,t+" Iterator")}},9003:function(e,t,o){var n=o("6b4c");e.exports=Array.isArray||function(e){return"Array"==n(e)}},9093:function(e,t,o){var n=o("ce10"),i=o("e11e").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},9138:function(e,t,o){e.exports=o("35e8")},9257:function(e,t,o){},9306:function(e,t,o){"use strict";var n=o("c3a1"),i=o("9aa9"),r=o("355d"),a=o("241e"),s=o("335c"),c=Object.assign;e.exports=!c||o("294c")(function(){var e={},t={},o=Symbol(),n="abcdefghijklmnopqrst";return e[o]=7,n.split("").forEach(function(e){t[e]=e}),7!=c({},e)[o]||Object.keys(c({},t)).join("")!=n})?function(e,t){var o=a(e),c=arguments.length,p=1,l=i.f,u=r.f;while(c>p){var b,d=s(arguments[p++]),M=l?n(d).concat(l(d)):n(d),h=M.length,f=0;while(h>f)u.call(d,b=M[f++])&&(o[b]=d[b])}return o}:c},"95d5":function(e,t,o){var n=o("40c3"),i=o("5168")("iterator"),r=o("481b");e.exports=o("584a").isIterable=function(e){var t=Object(e);return void 0!==t[i]||"@@iterator"in t||r.hasOwnProperty(n(t))}},"9aa9":function(e,t){t.f=Object.getOwnPropertySymbols},"9b43":function(e,t,o){var n=o("d8e8");e.exports=function(e,t,o){if(n(e),void 0===t)return e;switch(o){case 1:return function(o){return e.call(t,o)};case 2:return function(o,n){return e.call(t,o,n)};case 3:return function(o,n,i){return e.call(t,o,n,i)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,o){var n=o("2b4c")("unscopables"),i=Array.prototype;void 0==i[n]&&o("32e9")(i,n,{}),e.exports=function(e){i[n][e]=!0}},"9def":function(e,t,o){var n=o("4588"),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},"9e1c":function(e,t,o){o("7d6d"),e.exports=o("584a").Object.values},"9e1e":function(e,t,o){e.exports=!o("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},a159:function(e,t,o){var n=o("e4ae"),i=o("7e90"),r=o("1691"),a=o("5559")("IE_PROTO"),s=function(){},c="prototype",p=function(){var e,t=o("1ec9")("iframe"),n=r.length,i="<",a=">";t.style.display="none",o("32fc").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),e.close(),p=e.F;while(n--)delete p[c][r[n]];return p()};e.exports=Object.create||function(e,t){var o;return null!==e?(s[c]=n(e),o=new s,s[c]=null,o[a]=e):o=p(),void 0===t?o:i(o,t)}},a1ce:function(e,t,o){var n=o("63b6"),i=o("25eb"),r=o("294c"),a=o("e692"),s="["+a+"]",c="​…",p=RegExp("^"+s+s+"*"),l=RegExp(s+s+"*$"),u=function(e,t,o){var i={},s=r(function(){return!!a[e]()||c[e]()!=c}),p=i[e]=s?t(b):a[e];o&&(i[o]=p),n(n.P+n.F*s,"String",i)},b=u.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(p,"")),2&t&&(e=e.replace(l,"")),e};e.exports=u},a3c3:function(e,t,o){var n=o("63b6");n(n.S+n.F,"Object",{assign:o("9306")})},a481:function(e,t,o){o("214f")("replace",2,function(e,t,o){return[function(n,i){"use strict";var r=e(this),a=void 0==n?void 0:n[t];return void 0!==a?a.call(n,r,i):o.call(String(r),n,i)},o]})},a745:function(e,t,o){e.exports=o("f410")},aae3:function(e,t,o){var n=o("d3f4"),i=o("2d95"),r=o("2b4c")("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[r])?!!t:"RegExp"==i(e))}},ac6a:function(e,t,o){for(var n=o("cadf"),i=o("0d58"),r=o("2aba"),a=o("7726"),s=o("32e9"),c=o("84f2"),p=o("2b4c"),l=p("iterator"),u=p("toStringTag"),b=c.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},M=i(d),h=0;h0?i(n(e),9007199254740991):0}},b54a:function(e,t,o){"use strict";o("386b")("link",function(e){return function(t){return e(this,"a","href",t)}})},b8e3:function(e,t){e.exports=!0},b9e9:function(e,t,o){o("7445"),e.exports=o("584a").parseInt},ba92:function(e,t,o){"use strict";var n=o("4bf8"),i=o("77f1"),r=o("9def");e.exports=[].copyWithin||function(e,t){var o=n(this),a=r(o.length),s=i(e,a),c=i(t,a),p=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===p?a:i(p,a))-c,a-s),u=1;c0)c in o?o[s]=o[c]:delete o[s],s+=u,c+=u;return o}},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},bf0b:function(e,t,o){var n=o("355d"),i=o("aebd"),r=o("36c3"),a=o("1bc3"),s=o("07e3"),c=o("794b"),p=Object.getOwnPropertyDescriptor;t.f=o("8e60")?p:function(e,t){if(e=r(e),t=a(t,!0),c)try{return p(e,t)}catch(e){}if(s(e,t))return i(!n.f.call(e,t),e[t])}},c207:function(e,t){},c366:function(e,t,o){var n=o("6821"),i=o("9def"),r=o("77f1");e.exports=function(e){return function(t,o,a){var s,c=n(t),p=i(c.length),l=r(a,p);if(e&&o!=o){while(p>l)if(s=c[l++],s!=s)return!0}else for(;p>l;l++)if((e||l in c)&&c[l]===o)return e||l||0;return!e&&-1}}},c367:function(e,t,o){"use strict";var n=o("8436"),i=o("50ed"),r=o("481b"),a=o("36c3");e.exports=o("30f1")(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,o=this._i++;return!e||o>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?o:"values"==t?e[o]:[o,e[o]])},"values"),r.Arguments=r.Array,n("keys"),n("values"),n("entries")},c3a1:function(e,t,o){var n=o("e6f3"),i=o("1691");e.exports=Object.keys||function(e){return n(e,i)}},c69a:function(e,t,o){e.exports=!o("9e1e")&&!o("79e5")(function(){return 7!=Object.defineProperty(o("230e")("div"),"a",{get:function(){return 7}}).a})},c8bb:function(e,t,o){e.exports=o("54a1")},ca5a:function(e,t){var o=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++o+n).toString(36))}},cadf:function(e,t,o){"use strict";var n=o("9c6c"),i=o("d53b"),r=o("84f2"),a=o("6821");e.exports=o("01f9")(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,o=this._i++;return!e||o>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?o:"values"==t?e[o]:[o,e[o]])},"values"),r.Arguments=r.Array,n("keys"),n("values"),n("entries")},cb7c:function(e,t,o){var n=o("d3f4");e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},ccb9:function(e,t,o){t.f=o("5168")},cd1c:function(e,t,o){var n=o("e853");e.exports=function(e,t){return new(n(e))(t)}},ce10:function(e,t,o){var n=o("69a8"),i=o("6821"),r=o("c366")(!1),a=o("613b")("IE_PROTO");e.exports=function(e,t){var o,s=i(e),c=0,p=[];for(o in s)o!=a&&n(s,o)&&p.push(o);while(t.length>c)n(s,o=t[c++])&&(~r(p,o)||p.push(o));return p}},d2d5:function(e,t,o){o("1654"),o("549b"),e.exports=o("584a").Array.from},d3f4:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d864:function(e,t,o){var n=o("79aa");e.exports=function(e,t,o){if(n(e),void 0===t)return e;switch(o){case 1:return function(o){return e.call(t,o)};case 2:return function(o,n){return e.call(t,o,n)};case 3:return function(o,n,i){return e.call(t,o,n,i)}}return function(){return e.apply(t,arguments)}}},d8d6:function(e,t,o){o("1654"),o("6c1c"),e.exports=o("ccb9").f("iterator")},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},d9f6:function(e,t,o){var n=o("e4ae"),i=o("794b"),r=o("1bc3"),a=Object.defineProperty;t.f=o("8e60")?Object.defineProperty:function(e,t,o){if(n(e),t=r(t,!0),n(o),i)try{return a(e,t,o)}catch(e){}if("get"in o||"set"in o)throw TypeError("Accessors not supported!");return"value"in o&&(e[t]=o.value),e}},db0c:function(e,t,o){e.exports=o("9e1c")},dbdb:function(e,t,o){var n=o("584a"),i=o("e53d"),r="__core-js_shared__",a=i[r]||(i[r]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:o("b8e3")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},dcbc:function(e,t,o){var n=o("2aba");e.exports=function(e,t,o){for(var i in t)n(e,i,t[i],o);return e}},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e4ae:function(e,t,o){var n=o("f772");e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},e53d:function(e,t){var o=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=o)},e692:function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},e6f3:function(e,t,o){var n=o("07e3"),i=o("36c3"),r=o("5b4e")(!1),a=o("5559")("IE_PROTO");e.exports=function(e,t){var o,s=i(e),c=0,p=[];for(o in s)o!=a&&n(s,o)&&p.push(o);while(t.length>c)n(s,o=t[c++])&&(~r(p,o)||p.push(o));return p}},e814:function(e,t,o){e.exports=o("b9e9")},e853:function(e,t,o){var n=o("d3f4"),i=o("1169"),r=o("2b4c")("species");e.exports=function(e){var t;return i(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!i(t.prototype)||(t=void 0),n(t)&&(t=t[r],null===t&&(t=void 0))),void 0===t?Array:t}},ebd6:function(e,t,o){var n=o("cb7c"),i=o("d8e8"),r=o("2b4c")("species");e.exports=function(e,t){var o,a=n(e).constructor;return void 0===a||void 0==(o=n(a)[r])?t:i(o)}},ebfd:function(e,t,o){var n=o("62a0")("meta"),i=o("f772"),r=o("07e3"),a=o("d9f6").f,s=0,c=Object.isExtensible||function(){return!0},p=!o("294c")(function(){return c(Object.preventExtensions({}))}),l=function(e){a(e,n,{value:{i:"O"+ ++s,w:{}}})},u=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!r(e,n)){if(!c(e))return"F";if(!t)return"E";l(e)}return e[n].i},b=function(e,t){if(!r(e,n)){if(!c(e))return!0;if(!t)return!1;l(e)}return e[n].w},d=function(e){return p&&M.NEED&&c(e)&&!r(e,n)&&l(e),e},M=e.exports={KEY:n,NEED:!1,fastKey:u,getWeak:b,onFreeze:d}},ec30:function(e,t,o){"use strict";if(o("9e1e")){var n=o("2d00"),i=o("7726"),r=o("79e5"),a=o("5ca1"),s=o("0f88"),c=o("ed0b"),p=o("9b43"),l=o("f605"),u=o("4630"),b=o("32e9"),d=o("dcbc"),M=o("4588"),h=o("9def"),f=o("09fa"),z=o("77f1"),O=o("6a99"),A=o("69a8"),m=o("23c6"),v=o("d3f4"),g=o("4bf8"),y=o("33a4"),q=o("2aeb"),_=o("38fd"),W=o("9093").f,R=o("27ee"),w=o("ca5a"),L=o("2b4c"),C=o("0a49"),S=o("c366"),E=o("ebd6"),T=o("cadf"),x=o("84f2"),N=o("5cc5"),B=o("7a56"),k=o("36bd"),P=o("ba92"),D=o("86cc"),I=o("11e9"),X=D.f,j=I.f,F=i.RangeError,H=i.TypeError,U=i.Uint8Array,V="ArrayBuffer",G="Shared"+V,K="BYTES_PER_ELEMENT",$="prototype",Y=Array[$],J=c.ArrayBuffer,Q=c.DataView,Z=C(0),ee=C(2),te=C(3),oe=C(4),ne=C(5),ie=C(6),re=S(!0),ae=S(!1),se=T.values,ce=T.keys,pe=T.entries,le=Y.lastIndexOf,ue=Y.reduce,be=Y.reduceRight,de=Y.join,Me=Y.sort,he=Y.slice,fe=Y.toString,ze=Y.toLocaleString,Oe=L("iterator"),Ae=L("toStringTag"),me=w("typed_constructor"),ve=w("def_constructor"),ge=s.CONSTR,ye=s.TYPED,qe=s.VIEW,_e="Wrong length!",We=C(1,function(e,t){return Se(E(e,e[ve]),t)}),Re=r(function(){return 1===new U(new Uint16Array([1]).buffer)[0]}),we=!!U&&!!U[$].set&&r(function(){new U(1).set({})}),Le=function(e,t){var o=M(e);if(o<0||o%t)throw F("Wrong offset!");return o},Ce=function(e){if(v(e)&&ye in e)return e;throw H(e+" is not a typed array!")},Se=function(e,t){if(!(v(e)&&me in e))throw H("It is not a typed array constructor!");return new e(t)},Ee=function(e,t){return Te(E(e,e[ve]),t)},Te=function(e,t){var o=0,n=t.length,i=Se(e,n);while(n>o)i[o]=t[o++];return i},xe=function(e,t,o){X(e,t,{get:function(){return this._d[o]}})},Ne=function(e){var t,o,n,i,r,a,s=g(e),c=arguments.length,l=c>1?arguments[1]:void 0,u=void 0!==l,b=R(s);if(void 0!=b&&!y(b)){for(a=b.call(s),n=[],t=0;!(r=a.next()).done;t++)n.push(r.value);s=n}for(u&&c>2&&(l=p(l,arguments[2],2)),t=0,o=h(s.length),i=Se(this,o);o>t;t++)i[t]=u?l(s[t],t):s[t];return i},Be=function(){var e=0,t=arguments.length,o=Se(this,t);while(t>e)o[e]=arguments[e++];return o},ke=!!U&&r(function(){ze.call(new U(1))}),Pe=function(){return ze.apply(ke?he.call(Ce(this)):Ce(this),arguments)},De={copyWithin:function(e,t){return P.call(Ce(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return oe(Ce(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return k.apply(Ce(this),arguments)},filter:function(e){return Ee(this,ee(Ce(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return ne(Ce(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ie(Ce(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){Z(Ce(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ae(Ce(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return re(Ce(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return de.apply(Ce(this),arguments)},lastIndexOf:function(e){return le.apply(Ce(this),arguments)},map:function(e){return We(Ce(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return ue.apply(Ce(this),arguments)},reduceRight:function(e){return be.apply(Ce(this),arguments)},reverse:function(){var e,t=this,o=Ce(t).length,n=Math.floor(o/2),i=0;while(i1?arguments[1]:void 0)},sort:function(e){return Me.call(Ce(this),e)},subarray:function(e,t){var o=Ce(this),n=o.length,i=z(e,n);return new(E(o,o[ve]))(o.buffer,o.byteOffset+i*o.BYTES_PER_ELEMENT,h((void 0===t?n:z(t,n))-i))}},Ie=function(e,t){return Ee(this,he.call(Ce(this),e,t))},Xe=function(e){Ce(this);var t=Le(arguments[1],1),o=this.length,n=g(e),i=h(n.length),r=0;if(i+t>o)throw F(_e);while(r255?255:255&n),i.v[d](o*t+i.o,n,Re)},L=function(e,t){X(e,t,{get:function(){return R(this,t)},set:function(e){return w(this,t,e)},enumerable:!0})};A?(M=o(function(e,o,n,i){l(e,M,p,"_d");var r,a,s,c,u=0,d=0;if(v(o)){if(!(o instanceof J||(c=m(o))==V||c==G))return ye in o?Te(M,o):Ne.call(M,o);r=o,d=Le(n,t);var z=o.byteLength;if(void 0===i){if(z%t)throw F(_e);if(a=z-d,a<0)throw F(_e)}else if(a=h(i)*t,a+d>z)throw F(_e);s=a/t}else s=f(o),a=s*t,r=new J(a);b(e,"_d",{b:r,o:d,l:a,e:s,v:new Q(r)});while(u>1,l=23===t?C(2,-24)-C(2,-77):0,u=0,b=e<0||0===e&&1/e<0?1:0;for(e=L(e),e!=e||e===R?(i=e!=e?1:0,n=c):(n=S(E(e)/T),e*(r=C(2,-n))<1&&(n--,r*=2),e+=n+p>=1?l/r:l*C(2,1-p),e*r>=2&&(n++,r/=2),n+p>=c?(i=0,n=c):n+p>=1?(i=(e*r-1)*C(2,t),n+=p):(i=e*C(2,p-1)*C(2,t),n=0));t>=8;a[u++]=255&i,i/=256,t-=8);for(n=n<0;a[u++]=255&n,n/=256,s-=8);return a[--u]|=128*b,a}function X(e,t,o){var n,i=8*o-t-1,r=(1<>1,s=i-7,c=o-1,p=e[c--],l=127&p;for(p>>=7;s>0;l=256*l+e[c],c--,s-=8);for(n=l&(1<<-s)-1,l>>=-s,s+=t;s>0;n=256*n+e[c],c--,s-=8);if(0===l)l=1-a;else{if(l===r)return n?NaN:p?-R:R;n+=C(2,t),l-=a}return(p?-1:1)*n*C(2,l-t)}function j(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function F(e){return[255&e]}function H(e){return[255&e,e>>8&255]}function U(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function V(e){return I(e,52,8)}function G(e){return I(e,23,4)}function K(e,t,o){h(e[m],t,{get:function(){return this[o]}})}function $(e,t,o,n){var i=+o,r=d(i);if(r+t>e[P])throw W(g);var a=e[k]._b,s=r+e[D],c=a.slice(s,s+t);return n?c:c.reverse()}function Y(e,t,o,n,i,r){var a=+o,s=d(a);if(s+t>e[P])throw W(g);for(var c=e[k]._b,p=s+e[D],l=n(+i),u=0;uee;)(J=Z[ee++])in y||s(y,J,w[J]);r||(Q.constructor=y)}var te=new q(new y(2)),oe=q[m].setInt8;te.setInt8(0,2147483648),te.setInt8(1,2147483649),!te.getInt8(0)&&te.getInt8(1)||c(q[m],{setInt8:function(e,t){oe.call(this,e,t<<24>>24)},setUint8:function(e,t){oe.call(this,e,t<<24>>24)}},!0)}else y=function(e){l(this,y,O);var t=d(e);this._b=f.call(new Array(t),0),this[P]=t},q=function(e,t,o){l(this,q,A),l(e,y,A);var n=e[P],i=u(t);if(i<0||i>n)throw W("Wrong offset!");if(o=void 0===o?n-i:b(o),i+o>n)throw W(v);this[k]=e,this[D]=i,this[P]=o},i&&(K(y,N,"_l"),K(q,x,"_b"),K(q,N,"_l"),K(q,B,"_o")),c(q[m],{getInt8:function(e){return $(this,1,e)[0]<<24>>24},getUint8:function(e){return $(this,1,e)[0]},getInt16:function(e){var t=$(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=$(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return j($(this,4,e,arguments[1]))},getUint32:function(e){return j($(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return X($(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return X($(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){Y(this,1,e,F,t)},setUint8:function(e,t){Y(this,1,e,F,t)},setInt16:function(e,t){Y(this,2,e,H,t,arguments[2])},setUint16:function(e,t){Y(this,2,e,H,t,arguments[2])},setInt32:function(e,t){Y(this,4,e,U,t,arguments[2])},setUint32:function(e,t){Y(this,4,e,U,t,arguments[2])},setFloat32:function(e,t){Y(this,4,e,G,t,arguments[2])},setFloat64:function(e,t){Y(this,8,e,V,t,arguments[2])}});z(y,O),z(q,A),s(q[m],a.VIEW,!0),t[O]=y,t[A]=q},f410:function(e,t,o){o("1af6"),e.exports=o("584a").Array.isArray},f605:function(e,t){e.exports=function(e,t,o,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(o+": incorrect invocation!");return e}},f772:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},f921:function(e,t,o){o("014b"),o("c207"),o("69d3"),o("765d"),e.exports=o("584a").Symbol},fab2:function(e,t,o){var n=o("7726").document;e.exports=n&&n.documentElement},fb15:function(e,t,o){"use strict";o.r(t);var n,i={};(o.r(i),o.d(i,"forceCenter",function(){return z}),o.d(i,"forceCollide",function(){return H}),o.d(i,"forceLink",function(){return ee}),o.d(i,"forceManyBody",function(){return Te}),o.d(i,"forceRadial",function(){return xe}),o.d(i,"forceSimulation",function(){return Ee}),o.d(i,"forceX",function(){return Ne}),o.d(i,"forceY",function(){return Be}),"undefined"!==typeof window)&&((n=window.document.currentScript)&&(n=n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(o.p=n[1]));o("7f7f");var r=o("a745"),a=o.n(r);function s(e){if(a()(e)){for(var t=0,o=new Array(e.length);t=(r=(h+z)/2))?h=r:z=r,(l=o>=(a=(f+O)/2))?f=a:O=a,i=d,!(d=d[u=l<<1|p]))return i[u]=M,e;if(s=+e._x.call(null,d.data),c=+e._y.call(null,d.data),t===s&&o===c)return M.next=d,i?i[u]=M:e._root=M,e;do{i=i?i[u]=new Array(4):e._root=new Array(4),(p=t>=(r=(h+z)/2))?h=r:z=r,(l=o>=(a=(f+O)/2))?f=a:O=a}while((u=l<<1|p)===(b=(c>=a)<<1|s>=r));return i[b]=d,i[u]=M,e}function g(e){var t,o,n,i,r=e.length,a=new Array(r),s=new Array(r),c=1/0,p=1/0,l=-1/0,u=-1/0;for(o=0;ol&&(l=n),iu&&(u=i));for(le||e>i||n>t||t>r))return this;var a,s,c=i-o,p=this._root;switch(s=(t<(n+r)/2)<<1|e<(o+i)/2){case 0:do{a=new Array(4),a[s]=p,p=a}while(c*=2,i=o+c,r=n+c,e>i||t>r);break;case 1:do{a=new Array(4),a[s]=p,p=a}while(c*=2,o=i-c,r=n+c,o>e||t>r);break;case 2:do{a=new Array(4),a[s]=p,p=a}while(c*=2,i=o+c,n=r-c,e>i||n>t);break;case 3:do{a=new Array(4),a[s]=p,p=a}while(c*=2,o=i-c,n=r-c,o>e||n>t);break}this._root&&this._root.length&&(this._root=p)}return this._x0=o,this._y0=n,this._x1=i,this._y1=r,this},q=function(){var e=[];return this.visit(function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)}),e},_=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},W=function(e,t,o,n,i){this.node=e,this.x0=t,this.y0=o,this.x1=n,this.y1=i},R=function(e,t,o){var n,i,r,a,s,c,p,l=this._x0,u=this._y0,b=this._x1,d=this._y1,M=[],h=this._root;h&&M.push(new W(h,l,u,b,d)),null==o?o=1/0:(l=e-o,u=t-o,b=e+o,d=t+o,o*=o);while(c=M.pop())if(!(!(h=c.node)||(i=c.x0)>b||(r=c.y0)>d||(a=c.x1)=z)<<1|e>=f)&&(c=M[M.length-1],M[M.length-1]=M[M.length-1-p],M[M.length-1-p]=c)}else{var O=e-+this._x.call(null,h.data),A=t-+this._y.call(null,h.data),m=O*O+A*A;if(m=(s=(M+f)/2))?M=s:f=s,(l=a>=(c=(h+z)/2))?h=c:z=c,t=d,!(d=d[u=l<<1|p]))return this;if(!d.length)break;(t[u+1&3]||t[u+2&3]||t[u+3&3])&&(o=t,b=u)}while(d.data!==e)if(n=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,n?(i?n.next=i:delete n.next,this):t?(i?t[u]=i:delete t[u],(d=t[0]||t[1]||t[2]||t[3])&&d===(t[3]||t[2]||t[1]||t[0])&&!d.length&&(o?o[b]=d:this._root=d),this):(this._root=i,this)};function L(e){for(var t=0,o=e.length;tc+d||ip+d||rs.index){var M=c-a.x-a.vx,h=p-a.y-a.vy,f=M*M+h*h;fe.r&&(e.r=e[t].r)}function s(){if(t){var n,i,r=t.length;for(o=new Array(r),n=0;n=0&&(o=e.slice(n+1),e=e.slice(0,n)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:o}})}function re(e,t){for(var o,n=0,i=e.length;n0)for(var o,n,i=new Array(o),r=0;r=0&&t._call.call(null,e),t=t._next;--le}function qe(){he=(Me=ze.now())+fe,le=ue=0;try{ye()}finally{le=0,We(),he=0}}function _e(){var e=ze.now(),t=e-Me;t>de&&(fe-=t,Me=e)}function We(){var e,t,o=se,n=1/0;while(o)o._call?(n>o._time&&(n=o._time),e=o,o=o._next):(t=o._next,o._next=null,o=e?e._next=t:se=t);ce=e,Re(n)}function Re(e){if(!le){ue&&(ue=clearTimeout(ue));var t=e-he;t>24?(e<1/0&&(ue=setTimeout(qe,e-ze.now()-fe)),be&&(be=clearInterval(be))):(be||(Me=ze.now(),be=setInterval(_e,de)),le=1,Oe(qe))}}ve.prototype=ge.prototype={constructor:ve,restart:function(e,t,o){if("function"!==typeof e)throw new TypeError("callback is not a function");o=(null==o?Ae():+o)+(null==t?0:+t),this._next||ce===this||(ce?ce._next=this:se=this,ce=this),this._call=e,this._time=o,Re()},stop:function(){this._call&&(this._call=null,this._time=1/0,Re())}};function we(e){return e.x}function Le(e){return e.y}var Ce=10,Se=Math.PI*(3-Math.sqrt(5)),Ee=function(e){var t,o=1,n=.001,i=1-Math.pow(n,1/300),r=0,a=.6,s=K(),c=ge(l),p=pe("tick","end");function l(){u(),p.call("tick",t),o1?(null==o?s.remove(e):s.set(e,d(o)),t):s.get(e)},find:function(t,o,n){var i,r,a,s,c,p=0,l=e.length;for(null==n?n=1/0:n*=n,p=0;p1?(p.on(e,o),t):p.on(e)}}},Te=function(){var e,t,o,n,i=O(-30),r=1,a=1/0,s=.81;function c(n){var i,r=e.length,a=P(e,we,Le).visitAfter(l);for(o=n,i=0;i=a)){(e.data!==t||e.next)&&(0===l&&(l=A(),d+=l*l),0===u&&(u=A(),d+=u*u),d=0;o--){var n=e.attributes[o];n&&(t[n.name]=n.value)}var i=e.innerHTML;if(i)return{attrs:t,data:i}}return null},svgElFromString:function(e){var t=this.toDom(e);if(this.isSvgData(t))return t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t},svgDataToUrl:function(e,t){if("object"===Ve(t))for(var o in t){var n=t[o]?t[o]:"";e.setAttribute(o,n)}var i=this.export(e);return i?this.svgToUrl(this.serialize(i)):null},isSvgData:function(e){return!!e.firstChild&&"svg"===e.firstChild.parentNode.nodeName},svgToUrl:function(e){var t=new Blob([e],{type:"image/svg+xml"}),o=URL.createObjectURL(t);return o}},Qe={name:"svg-renderer",props:["size","nodes","noNodes","selected","linksSelected","links","nodeSize","padding","fontSize","strLinks","linkWidth","nodeLabels","linkLabels","labelOffset","nodeSym"],computed:{nodeSvg:function(){return this.nodeSym?Je.toObject(this.nodeSym):null}},methods:{getNodeSize:function(e,t){var o=e._size||this.nodeSize;return t&&(o=e["_"+t]||o),o},svgIcon:function(e){return e.svgObj||this.nodeSvg},emit:function(e,t){this.$emit("action",e,t)},svgScreenShot:function(e,t,o,n){var i=Je.export(this.$refs.svg,n);if(t)e(null,Je.save(i));else{o||(o=this.searchBackground());var r=Je.makeCanvas(this.size.w,this.size.h,o);Je.svgToImg(i,r,function(t,o){t?e(t):e(null,o)})}},linkClass:function(e){var t=["link"];return this.linksSelected.hasOwnProperty(e)&&t.push("selected"),this.strLinks||t.push("curve"),t},linkPath:function(e){var t={M:[0|e.source.x,0|e.source.y],X:[0|e.target.x,0|e.target.y]};return this.strLinks?"M "+t.M.join(" ")+" L"+t.X.join(" "):(t.Q=[e.source.x,e.target.y],"M "+t.M+" Q "+t.Q.join(" ")+" "+t.X)},nodeStyle:function(e){return e._color?"fill: "+e._color:""},linkStyle:function(e){var t={};return e._color&&(t.stroke=e._color),t},nodeClass:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=e._cssClass?e._cssClass:[];return a()(o)||(o=[o]),o.push("node"),t.forEach(function(e){return o.push(e)}),this.selected[e.id]&&o.push("selected"),(e.fx||e.fy)&&o.push("pinned"),o},searchBackground:function(){var e=this;while(e.$parent){var t=window.getComputedStyle(e.$el),o=t.getPropertyValue("background-color"),n=o.replace(/[^\d,]/g,"").split(","),i=n.reduce(function(e,t){return Ie()(e)+Ie()(t)},0);if(i>0)return o;e=e.$parent}return"white"},spriteSymbol:function(){var e=this.nodeSym;if(e)return Je.toSymbol(e)},linkAttrs:function(e){var t=e._svgAttrs||{};return t["stroke-width"]=t["stroke-width"]||this.linkWidth,t}}},Ze=Qe;function et(e,t,o,n,i,r,a,s){var c,p="function"===typeof e?e.options:e;if(t&&(p.render=t,p.staticRenderFns=o,p._compiled=!0),n&&(p.functional=!0),r&&(p._scopeId="data-v-"+r),a?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},p._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(p.functional){p._injectStyles=c;var l=p.render;p.render=function(e,t){return c.call(t),l(e,t)}}else{var u=p.beforeCreate;p.beforeCreate=u?[].concat(u,c):[c]}return{exports:e,options:p}}var tt,ot,nt=et(Ze,ke,Pe,!1,null,null,null),it=nt.exports,rt=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("canvas",{directives:[{name:"render-canvas",rawName:"v-render-canvas",value:{links:e.links,nodes:e.nodes},expression:"{links, nodes}"}],ref:"canvas",style:e.canvasStyle,attrs:{id:"canvas",width:e.size.w,height:e.size.h},on:{mouseup:function(t){return t.preventDefault(),e.canvasClick(t)},mousedown:function(t){return t.preventDefault(),e.canvasClick(t)},touchstart:function(t){return t.preventDefault(),e.canvasClick(t)},"&touchend":function(t){return e.canvasClick(t)}}})},at=[],st=(o("b54a"),o("6c7b"),{background:{_cssClass:"net-svg",fillStyle:"white"},node:{_cssClass:"node",fillStyle:"green",strokeStyle:"orange",lineWidth:2},link:{_cssClass:"link",strokeStyle:"blue",lineWidth:1},labels:{_cssClass:"node-label",_svgElement:"text",fillStyle:"black",fontFamily:"Arial"},nodeSelected:{_cssClass:"node selected",fillStyle:"red",strokeStyle:"orange",lineWidth:2},linkSelected:{_cssClass:"link selected",strokeStyle:"green",lineWidth:2},nodePinned:{_cssClass:"node pinned",fillStyle:"green",strokeStyle:"red"},nodeSelectedPinned:{_cssClass:"node selected pinned",fillStyle:"green",strokeStyle:"red"}}),ct=(o("6b54"),{randomId:function(){return Math.random().toString(36).substring(7)},fillStyle:function(e,t){var o=null,n="picker-"+this.randomId(),i=this.canvasPicker(e,n);t.appendChild(i);var r={fillStyle:"fill",strokeStyle:"stroke",lineWidth:"stroke-width",fontFamily:"font-family"};return e=this.mapStyle(n,r,e,o),t.removeChild(i),e},mapStyle:function(e,t,o,n,i){var r=window.getComputedStyle(document.getElementById(e),n);for(var a in i=i||["lineWidth"],t){var s=r.getPropertyValue(t[a]);i.indexOf(a)>-1&&(s=Ie()(s,10)),s&&(o[a]=s)}return o},canvasPicker:function(e,t){var o=e._svgAttrs||{},n=e._svgElement||"circle";if(!e._svgAttrs)switch(n){case"text":o={x:10,y:10,fontSize:20};break;case"circle":o={cx:10,cy:10,r:10};break}return o.class=e._cssClass,o.id=t,this.svgCreate(n,o)},compColor:function(e){var t=document.createElement("div");t.style.backgroundColor=e,document.body.appendChild(t);var o=window.getComputedStyle(t,null).getPropertyValue("background-color");return document.body.removeChild(t),o},svgCreate:function(e,t){var o=document.createElementNS("http://www.w3.org/2000/svg",e);for(var n in t)o.setAttributeNS(null,n,t[n]);return o},create:function(e,t,o){o=o||"body";var n=document.createElement(e),i=t||"";return i+=this.randomId(),n.setAttribute("id",i),document[o].appendChild(n),n}}),pt={name:"canvas-renderer",props:["size","offset","padding","nodes","selected","linksSelected","links","nodeSize","fontSize","strLinks","linkWidth","nodeLabels","labelOffset","canvasStyles","nodeSym","noNodes"],data:function(){return{hitCanvas:null,shapes:{},drag:null,stylesReady:!1,CssStyles:!0,styles:st,sprites:{}}},computed:{nodeSvg:function(){return this.nodeSym},canvasStyle:function(){var e=this.padding.x+"px",t=this.padding.y+"px";return{left:e,top:t}}},directives:{renderCanvas:function(e,t,o){var n=t.value.nodes,i=t.value.links;o.context.draw(n,i,e)}},created:function(){if(this.canvasStyles)for(var e in this.canvasStyles)this.styles[e]=this.canvasStyles[e]},mounted:function(){var e=this;this.$nextTick(function(){e.hitCanvas.width=e.size.w,e.hitCanvas.height=e.size.h})},watch:{nodeSize:function(){this.resetSprites()},canvasStyles:function(){this.resetSprites()}},methods:{canvasScreenShot:function(e,t){var o=this.$refs.canvas,n=document.createElement("canvas");n.width=o.width,n.height=o.height;var i=this.styles.background;t&&(i=this.getCssColor(t));var r=n.getContext("2d");r=this.setCtx(r,i),r.fillRect(0,0,n.width,n.height),r.drawImage(o,0,0);var a=n.toDataURL("image/png");a?e(null,a):e(new Error("error generating canvas image"))},emit:function(e,t){this.$emit("action",e,t)},canvasInit:function(){var e=document.createElement("canvas");e.width=this.size.w,e.height=this.size.h,e.top=this.offset.y,e.left=this.offset.x,e.id="hit-canvas",this.hitCanvas=e,this.resetSprites()},resetSprites:function(){this.sprites={};for(var e=["node","nodeSelected","nodePinned","nodeSelectedPinned"],t=0;t0&&e.y>0&&e.x0&&(n.data[r]=255,n.data[r-3]=t.r,n.data[r-2]=t.g,n.data[r-1]=t.b);return o.putImageData(n,0,0),e},newColorIndex:function(){while(1){var e=this.randomColor();if(!this.shapes[e.rgb])return e}},randomColor:function(){var e=Math.round(255*Math.random()),t=Math.round(255*Math.random()),o=Math.round(255*Math.random());return{r:e,g:t,b:o,rgb:"rgb(".concat(e,",").concat(t,",").concat(o,")")}},setCtx:function(e,t){for(var o in t)e[o]=t[o];return e},cloneCanvas:function(e){var t=document.createElement("canvas"),o=t.getContext("2d");return t.width=e.width,t.height=e.height,o.drawImage(e,0,0),t},Sprite:function(e,t){return this.sprites[e]||(this.sprites[e]=t()),this.sprites[e]},getCssStyles:function(){var e=ct.create("svg","css-picker");for(var t in this.styles){var o=this.styles[t]||{};o=ct.fillStyle(o,e)}document.body.removeChild(e),this.stylesReady=!0},loadNodeStyle:function(e){var t="node",o=this.selected[e.id];if(o&&(t="nodeSelected"),e.pinned&&(t="nodePinned"),o&&e.pinned&&(t="nodeSelectedPinned"),e._cssClass){var n=t+"-"+e._cssClass;if(!this.styles[n]){var i=f()({},this.styles[t]||{});i._cssClass=i._cssClass||"",i._cssClass+=" "+e._cssClass,this.updateStyle(n,i)}t=n}var r=f()({},this.styles[t]||this.updateStyle(t));return e._color&&(r.fillStyle=e._color,r._cssStyle="fill:"+e._color),e._cssClass&&(r._cssClass+=" "+e._cssClass),r},updateStyle:function(e,t){t=t||this.styles[e]||{};var o=ct.create("svg","css-picker");return t=ct.fillStyle(t,o),this.styles[e]=t,document.body.removeChild(o),t},getCssColor:function(e){var t=ct.create("div","color-picker"),o=t.id;t.setAttribute("style","background-color:"+e);var n=ct.mapStyle(o,{fillStyle:"background-color"},[]);return document.body.removeChild(t),n},labelStyle:function(e){var t=this.styles.labels,o=e._labelClass;if(o){var n="labels-"+o,i=this.styles[n];i||(i=f()({},t),i._cssClass+=" "+o,i=this.updateStyle(n,i)),t=i}return t}}},lt=pt,ut=(o("3d11"),et(lt,rt,at,!1,null,null,null)),bt=ut.exports,dt=(o("34ef"),{save:function(e,t){var o=this;e&&(e=this.dataURIToBlob(e,function(e){var n=URL.createObjectURL(e);o.download(n,t)}))},dataURIToBlob:function(e,t){for(var o=atob(e.split(",")[1]),n=o.length,i=new Uint8Array(n),r=0;r=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("9757"),p=o("3a92"),l=o("6923"),u=o("3585"),b=o("168d"),d=o("cc26"),M=function(){function e(t,o){void 0===t&&(t=[]),void 0===o&&(o=[]),this.elementsToActivate=t,this.elementsToDeactivate=o,this.kind=e.KIND}return e.KIND="switchEditMode",e}();t.SwitchEditModeAction=M;var h=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o.elementsToActivate=[],o.elementsToDeactivate=[],o.handlesToRemove=[],o}return n(t,e),t.prototype.execute=function(e){var t=this,o=e.root.index;return this.action.elementsToActivate.forEach(function(e){var n=o.getById(e);void 0!==n&&t.elementsToActivate.push(n)}),this.action.elementsToDeactivate.forEach(function(e){var n=o.getById(e);if(void 0!==n&&t.elementsToDeactivate.push(n),n instanceof u.SRoutingHandle&&n.parent instanceof u.SRoutableElement){var i=n.parent;t.shouldRemoveHandle(n,i)&&(t.handlesToRemove.push({handle:n,parent:i}),t.elementsToDeactivate.push(i),t.elementsToActivate.push(i))}}),this.doExecute(e)},t.prototype.doExecute=function(e){var t=this;return this.handlesToRemove.forEach(function(e){e.point=e.parent.routingPoints.splice(e.handle.pointIndex,1)[0]}),this.elementsToDeactivate.forEach(function(e){e instanceof u.SRoutableElement?e.removeAll(function(e){return e instanceof u.SRoutingHandle}):e instanceof u.SRoutingHandle&&(e.editMode=!1,e.danglingAnchor&&e.parent instanceof u.SRoutableElement&&e.danglingAnchor.original&&(e.parent.source===e.danglingAnchor?e.parent.sourceId=e.danglingAnchor.original.id:e.parent.target===e.danglingAnchor&&(e.parent.targetId=e.danglingAnchor.original.id),e.danglingAnchor.parent.remove(e.danglingAnchor),e.danglingAnchor=void 0))}),this.elementsToActivate.forEach(function(e){if(d.canEditRouting(e)&&e instanceof p.SParentElement){var o=t.edgeRouterRegistry.get(e.routerKind);o.createRoutingHandles(e)}else e instanceof u.SRoutingHandle&&(e.editMode=!0)}),e.root},t.prototype.shouldRemoveHandle=function(e,t){if("junction"===e.kind){var o=this.edgeRouterRegistry.get(t.routerKind),n=o.route(t);return void 0===n.find(function(t){return t.pointIndex===e.pointIndex})}return!1},t.prototype.undo=function(e){var t=this;return this.handlesToRemove.forEach(function(e){void 0!==e.point&&e.parent.routingPoints.splice(e.handle.pointIndex,0,e.point)}),this.elementsToActivate.forEach(function(e){e instanceof u.SRoutableElement?e.removeAll(function(e){return e instanceof u.SRoutingHandle}):e instanceof u.SRoutingHandle&&(e.editMode=!1)}),this.elementsToDeactivate.forEach(function(e){if(d.canEditRouting(e)){var o=t.edgeRouterRegistry.get(e.routerKind);o.createRoutingHandles(e)}else e instanceof u.SRoutingHandle&&(e.editMode=!0)}),e.root},t.prototype.redo=function(e){return this.doExecute(e)},t.KIND=M.KIND,i([s.inject(b.EdgeRouterRegistry),r("design:type",b.EdgeRouterRegistry)],t.prototype,"edgeRouterRegistry",void 0),t=i([s.injectable(),a(0,s.inject(l.TYPES.Action)),r("design:paramtypes",[M])],t),t}(c.Command);t.SwitchEditModeCommand=h},a663:function(e,t,o){"use strict";var n=o("84fd"),i=o.n(n);i.a},a8af:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("30e3");function i(e){return e instanceof RangeError||e.message===n.STACK_OVERFLOW}t.isStackOverflowExeption=i},ab71:function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("869e"),r=o("dd02"),a=o("e1c6"),s=o("d8f5"),c=function(){function e(){}return Object.defineProperty(e.prototype,"kind",{get:function(){return s.PolylineEdgeRouter.KIND+":"+i.ELLIPTIC_ANCHOR_KIND},enumerable:!0,configurable:!0}),e.prototype.getAnchor=function(e,t,o){void 0===o&&(o=0);var n=e.bounds,i=r.center(n),a=i.x-t.x,s=i.y-t.y,c=Math.sqrt(a*a+s*s),p=a/c||0,l=s/c||0;return{x:i.x-p*(.5*n.width+o),y:i.y-l*(.5*n.height+o)}},e=n([a.injectable()],e),e}();t.EllipseAnchor=c;var p=function(){function e(){}return Object.defineProperty(e.prototype,"kind",{get:function(){return s.PolylineEdgeRouter.KIND+":"+i.RECTANGULAR_ANCHOR_KIND},enumerable:!0,configurable:!0}),e.prototype.getAnchor=function(e,t,o){void 0===o&&(o=0);var n=e.bounds,i=r.center(n),a=new l(i,t);if(!r.almostEquals(i.y,t.y)){var s=this.getXIntersection(n.y,i,t);s>=n.x&&s<=n.x+n.width&&a.addCandidate(s,n.y-o);var c=this.getXIntersection(n.y+n.height,i,t);c>=n.x&&c<=n.x+n.width&&a.addCandidate(c,n.y+n.height+o)}if(!r.almostEquals(i.x,t.x)){var p=this.getYIntersection(n.x,i,t);p>=n.y&&p<=n.y+n.height&&a.addCandidate(n.x-o,p);var u=this.getYIntersection(n.x+n.width,i,t);u>=n.y&&u<=n.y+n.height&&a.addCandidate(n.x+n.width+o,u)}return a.best},e.prototype.getXIntersection=function(e,t,o){var n=(e-t.y)/(o.y-t.y);return(o.x-t.x)*n+t.x},e.prototype.getYIntersection=function(e,t,o){var n=(e-t.x)/(o.x-t.x);return(o.y-t.y)*n+t.y},e=n([a.injectable()],e),e}();t.RectangleAnchor=p;var l=function(){function e(e,t){this.centerPoint=e,this.refPoint=t,this.currentDist=-1}return e.prototype.addCandidate=function(e,t){var o=this.refPoint.x-e,n=this.refPoint.y-t,i=o*o+n*n;(this.currentDist<0||i=this.dragVertexDelay_?(this.downPx_=t.pixel,this.shouldHandle_=!this.freehand_,o=!0):this.lastDragTime_=void 0,this.shouldHandle_&&void 0!==this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)}return this.freehand_&&t.type===r["a"].POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(t),i=!1):this.freehand_&&t.type===r["a"].POINTERDOWN?i=!1:o?(i=t.type===r["a"].POINTERMOVE,i&&this.freehand_?i=this.handlePointerMove_(t):(t.pointerEvent.pointerType==A["b"]||t.type===r["a"].POINTERDRAG&&void 0===this.downTimeout_)&&this.handlePointerMove_(t)):t.type===r["a"].DBLCLICK&&(i=!1),e.prototype.handleEvent.call(this,t)&&i},t.prototype.handleDownEvent=function(e){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=e.pixel,this.finishCoordinate_||this.startDrawing_(e),!0):!!this.condition_(e)&&(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(function(){this.handlePointerMove_(new a["a"](r["a"].POINTERMOVE,e.map,e.pointerEvent,!1,e.frameState))}.bind(this),this.dragVertexDelay_),this.downPx_=e.pixel,!0)},t.prototype.handleUpEvent=function(e){var t=!0;this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0),this.handlePointerMove_(e);var o=this.mode_===R.CIRCLE;return this.shouldHandle_?(this.finishCoordinate_?this.freehand_||o?this.finishDrawing():this.atFinish_(e)?this.finishCondition_(e)&&this.finishDrawing():this.addToDrawing_(e):(this.startDrawing_(e),this.mode_===R.POINT&&this.finishDrawing()),t=!1):this.freehand_&&(this.finishCoordinate_=null,this.abortDrawing_()),!t&&this.stopClick_&&e.stopPropagation(),t},t.prototype.handlePointerMove_=function(e){if(this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){var t=this.downPx_,o=e.pixel,n=t[0]-o[0],i=t[1]-o[1],r=n*n+i*i;if(this.shouldHandle_=this.freehand_?r>this.squaredClickTolerance_:r<=this.squaredClickTolerance_,!this.shouldHandle_)return!0}return this.finishCoordinate_?this.modifyDrawing_(e):this.createOrUpdateSketchPoint_(e),!0},t.prototype.atFinish_=function(e){var t=!1;if(this.sketchFeature_){var o=!1,n=[this.finishCoordinate_];if(this.mode_===R.LINE_STRING)o=this.sketchCoords_.length>this.minPoints_;else if(this.mode_===R.POLYGON){var i=this.sketchCoords_;o=i[0].length>this.minPoints_,n=[i[0][0],i[0][i[0].length-2]]}if(o)for(var r=e.map,a=0,s=n.length;a=this.maxPoints_&&(this.freehand_?o.pop():t=!0),o.push(n.slice()),this.geometryFunction_(o,i)):this.mode_===R.POLYGON&&(o=this.sketchCoords_[0],o.length>=this.maxPoints_&&(this.freehand_?o.pop():t=!0),o.push(n.slice()),t&&(this.finishCoordinate_=o[0]),this.geometryFunction_(this.sketchCoords_,i)),this.updateSketchFeatures_(),t&&this.finishDrawing()},t.prototype.removeLastPoint=function(){if(this.sketchFeature_){var e,t,o=this.sketchFeature_.getGeometry();this.mode_===R.LINE_STRING?(e=this.sketchCoords_,e.splice(-2,1),this.geometryFunction_(e,o),e.length>=2&&(this.finishCoordinate_=e[e.length-2].slice())):this.mode_===R.POLYGON&&(e=this.sketchCoords_[0],e.splice(-2,1),t=this.sketchLine_.getGeometry(),t.setCoordinates(e),this.geometryFunction_(this.sketchCoords_,o)),0===e.length&&(this.finishCoordinate_=null),this.updateSketchFeatures_()}},t.prototype.finishDrawing=function(){var e=this.abortDrawing_();if(e){var t=this.sketchCoords_,o=e.getGeometry();this.mode_===R.LINE_STRING?(t.pop(),this.geometryFunction_(t,o)):this.mode_===R.POLYGON&&(t[0].pop(),this.geometryFunction_(t,o),t=o.getCoordinates()),this.type_===M["a"].MULTI_POINT?e.setGeometry(new z["a"]([t])):this.type_===M["a"].MULTI_LINE_STRING?e.setGeometry(new f["a"]([t])):this.type_===M["a"].MULTI_POLYGON&&e.setGeometry(new O["a"]([t])),this.dispatchEvent(new L(w.DRAWEND,e)),this.features_&&this.features_.push(e),this.source_&&this.source_.addFeature(e)}},t.prototype.abortDrawing_=function(){this.finishCoordinate_=null;var e=this.sketchFeature_;return e&&(this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0)),e},t.prototype.extend=function(e){var t=e.getGeometry(),o=t;this.sketchFeature_=e,this.sketchCoords_=o.getCoordinates();var n=this.sketchCoords_[this.sketchCoords_.length-1];this.finishCoordinate_=n.slice(),this.sketchCoords_.push(n.slice()),this.updateSketchFeatures_(),this.dispatchEvent(new L(w.DRAWSTART,this.sketchFeature_))},t.prototype.updateSketchFeatures_=function(){var e=[];this.sketchFeature_&&e.push(this.sketchFeature_),this.sketchLine_&&e.push(this.sketchLine_),this.sketchPoint_&&e.push(this.sketchPoint_);var t=this.overlay_.getSource();t.clear(!0),t.addFeatures(e)},t.prototype.updateState_=function(){var e=this.getMap(),t=this.getActive();e&&t||this.abortDrawing_(),this.overlay_.setMap(t?e:null)},t}(g["b"]);function S(){var e=Object(W["b"])();return function(t,o){return e[t.getGeometry().getType()]}}function E(e){var t;return e===M["a"].POINT||e===M["a"].MULTI_POINT?t=R.POINT:e===M["a"].LINE_STRING||e===M["a"].MULTI_LINE_STRING?t=R.LINE_STRING:e===M["a"].POLYGON||e===M["a"].MULTI_POLYGON?t=R.POLYGON:e===M["a"].CIRCLE&&(t=R.CIRCLE),t}t["a"]=C},ac2a:function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,o=1,n=arguments.length;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("9757"),c=o("3a92"),p=o("e1c6"),l=o("6923"),u=function(){function e(t,o){this.containerId=t,this.elementSchema=o,this.kind=e.KIND}return e.KIND="createElement",e}();t.CreateElementAction=u;var b=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o}return n(t,e),t.prototype.execute=function(e){var t=e.root.index.getById(this.action.containerId);return t instanceof c.SParentElement&&(this.container=t,this.newElement=e.modelFactory.createElement(this.action.elementSchema),this.container.add(this.newElement)),e.root},t.prototype.undo=function(e){return this.container.remove(this.newElement),e.root},t.prototype.redo=function(e){return this.container.add(this.newElement),e.root},t.KIND=u.KIND,t=i([p.injectable(),a(0,p.inject(l.TYPES.Action)),r("design:paramtypes",[u])],t),t}(s.Command);t.CreateElementCommand=b},ac8e:function(e,t,o){},ad0b:function(e,t,o){"use strict";var n=o("d988"),i=o.n(n);i.a},ad71:function(e,t,o){"use strict";(function(t,n){var i=o("966d");e.exports=g;var r,a=o("d8db");g.ReadableState=v;o("faa1").EventEmitter;var s=function(e,t){return e.listeners(t).length},c=o("429b"),p=o("8707").Buffer,l=("undefined"!==typeof t?t:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};function u(e){return p.from(e)}function b(e){return p.isBuffer(e)||e instanceof l}var d=Object.create(o("3a7c"));d.inherits=o("3fb5");var M=o(2),h=void 0;h=M&&M.debuglog?M.debuglog("stream"):function(){};var f,z=o("5e1a"),O=o("4681");d.inherits(g,c);var A=["error","close","destroy","pause","resume"];function m(e,t,o){if("function"===typeof e.prependListener)return e.prependListener(t,o);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(o):e._events[t]=[o,e._events[t]]:e.on(t,o)}function v(e,t){r=r||o("b19a"),e=e||{};var n=t instanceof r;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new z,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=o("7d72").StringDecoder),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function g(e){if(r=r||o("b19a"),!(this instanceof g))return new g(e);this._readableState=new v(e,this),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function y(e,t,o,n,i){var r,a=e._readableState;null===t?(a.reading=!1,C(e,a)):(i||(r=_(a,t)),r?e.emit("error",r):a.objectMode||t&&t.length>0?("string"===typeof t||a.objectMode||Object.getPrototypeOf(t)===p.prototype||(t=u(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):q(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!o?(t=a.decoder.write(t),a.objectMode||0!==t.length?q(e,a,t,!1):T(e,a)):q(e,a,t,!1))):n||(a.reading=!1));return W(a)}function q(e,t,o,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",o),e.read(0)):(t.length+=t.objectMode?1:o.length,n?t.buffer.unshift(o):t.buffer.push(o),t.needReadable&&S(e)),T(e,t)}function _(e,t){var o;return b(t)||"string"===typeof t||void 0===t||e.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o}function W(e){return!e.ended&&(e.needReadable||e.length=R?e=R:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function L(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=w(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function C(e,t){if(!t.ended){if(t.decoder){var o=t.decoder.end();o&&o.length&&(t.buffer.push(o),t.length+=t.objectMode?1:o.length)}t.ended=!0,S(e)}}function S(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(E,e):E(e))}function E(e){h("emit readable"),e.emit("readable"),D(e)}function T(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(x,e,t))}function x(e,t){var o=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(o=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):o=X(e,t.buffer,t.decoder),o);var o}function X(e,t,o){var n;return er.length?r.length:e;if(a===r.length?i+=r:i+=r.slice(0,e),e-=a,0===e){a===r.length?(++n,o.next?t.head=o.next:t.head=t.tail=null):(t.head=o,o.data=r.slice(a));break}++n}return t.length-=n,i}function F(e,t){var o=p.allocUnsafe(e),n=t.head,i=1;n.data.copy(o),e-=n.data.length;while(n=n.next){var r=n.data,a=e>r.length?r.length:e;if(r.copy(o,o.length-e,0,a),e-=a,0===e){a===r.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=r.slice(a));break}++i}return t.length-=i,o}function H(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(U,t,e))}function U(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function V(e,t){for(var o=0,n=e.length;o=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?H(this):S(this),null;if(e=L(e,t),0===e&&t.ended)return 0===t.length&&H(this),null;var n,i=t.needReadable;return h("need readable",i),(0===t.length||t.length-e0?I(e,t):null,null===n?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),o!==e&&t.ended&&H(this)),null!==n&&this.emit("data",n),n},g.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},g.prototype.pipe=function(e,t){var o=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e);break}r.pipesCount+=1,h("pipe count=%d opts=%j",r.pipesCount,t);var a=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr,c=a?l:v;function p(e,t){h("onunpipe"),e===o&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,d())}function l(){h("onend"),e.end()}r.endEmitted?i.nextTick(c):o.once("end",c),e.on("unpipe",p);var u=N(o);e.on("drain",u);var b=!1;function d(){h("cleanup"),e.removeListener("close",O),e.removeListener("finish",A),e.removeListener("drain",u),e.removeListener("error",z),e.removeListener("unpipe",p),o.removeListener("end",l),o.removeListener("end",v),o.removeListener("data",f),b=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||u()}var M=!1;function f(t){h("ondata"),M=!1;var n=e.write(t);!1!==n||M||((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==V(r.pipes,e))&&!b&&(h("false write response, pause",r.awaitDrain),r.awaitDrain++,M=!0),o.pause())}function z(t){h("onerror",t),v(),e.removeListener("error",z),0===s(e,"error")&&e.emit("error",t)}function O(){e.removeListener("finish",A),v()}function A(){h("onfinish"),e.removeListener("close",O),v()}function v(){h("unpipe"),o.unpipe(e)}return o.on("data",f),m(e,"error",z),e.once("close",O),e.once("finish",A),e.emit("pipe",o),r.flowing||(h("pipe resume"),o.resume()),e},g.prototype.unpipe=function(e){var t=this._readableState,o={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,o),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var r=0;r=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("e1c6"),r=o("66f9"),a=function(){function e(){}return Object.defineProperty(e.prototype,"gridX",{get:function(){return 10},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gridY",{get:function(){return 10},enumerable:!0,configurable:!0}),e.prototype.snap=function(e,t){return t&&r.isBoundsAware(t)?{x:Math.round((e.x+.5*t.bounds.width)/this.gridX)*this.gridX-.5*t.bounds.width,y:Math.round((e.y+.5*t.bounds.height)/this.gridY)*this.gridY-.5*t.bounds.height}:{x:Math.round(e.x/this.gridX)*this.gridX,y:Math.round(e.y/this.gridY)*this.gridY}},e=n([i.injectable()],e),e}();t.CenterGridSnapper=a},aff7:function(e,t,o){"use strict";var n=o("7bae"),i=o.n(n);i.a},b093:function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o("e1c6"),a=o("6923"),s=o("0d7a"),c=o("e45b"),p=function(){function e(){}return e.prototype.decorate=function(e,t){var o=c.getAttrs(e);return void 0!==o.id&&this.logger.warn(e,"Overriding id of vnode ("+o.id+"). Make sure not to set it manually in view."),o.id=this.domHelper.createUniqueDOMElementId(t),e.key||(e.key=t.id),e},e.prototype.postUpdate=function(){},n([r.inject(a.TYPES.ILogger),i("design:type",Object)],e.prototype,"logger",void 0),n([r.inject(a.TYPES.DOMHelper),i("design:type",s.DOMHelper)],e.prototype,"domHelper",void 0),e=n([r.injectable()],e),e}();t.IdPostprocessor=p},b19a:function(e,t,o){"use strict";var n=o("966d"),i=Object.keys||function(e){var t=[];for(var o in e)t.push(o);return t};e.exports=u;var r=Object.create(o("3a7c"));r.inherits=o("3fb5");var a=o("ad71"),s=o("dc14");r.inherits(u,a);for(var c=i(s.prototype),p=0;pt.getMaxResolution()||z=0?e:"children"}}]),p}(e);return window["ol"]&&window["ol"]["control"]&&(window["ol"]["control"]["LayerSwitcher"]=p),p})},b485:function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=o("3b4c"),r=o("3623"),a=o("1f89"),s=function(){function e(t){this.elementId=t,this.kind=e.KIND}return e.KIND="open",e}();t.OpenAction=s;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.doubleClick=function(e,t){var o=r.findParentByFeature(e,a.isOpenable);return void 0!==o?[new s(o.id)]:[]},t}(i.MouseListener);t.OpenMouseListener=c},b669:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("fba3");function i(e,t){for(var o=[],i=2;i=0)return!1;if(e.metaKey!==o.findIndex(function(e){return"meta"===e||"ctrlCmd"===e})>=0)return!1}else{if(e.ctrlKey!==o.findIndex(function(e){return"ctrl"===e||"ctrlCmd"===e})>=0)return!1;if(e.metaKey!==o.findIndex(function(e){return"meta"===e})>=0)return!1}return e.altKey===o.findIndex(function(e){return"alt"===e})>=0&&e.shiftKey===o.findIndex(function(e){return"shift"===e})>=0}function r(e){if(e.keyCode){var t=a[e.keyCode];if(void 0!==t)return t}return e.code}t.matchesKeystroke=i,t.getActualCode=r;var a=new Array(256);(function(){function e(e,t){void 0===a[t]&&(a[t]=e)}e("Pause",3),e("Backspace",8),e("Tab",9),e("Enter",13),e("ShiftLeft",16),e("ShiftRight",16),e("ControlLeft",17),e("ControlRight",17),e("AltLeft",18),e("AltRight",18),e("CapsLock",20),e("Escape",27),e("Space",32),e("PageUp",33),e("PageDown",34),e("End",35),e("Home",36),e("ArrowLeft",37),e("ArrowUp",38),e("ArrowRight",39),e("ArrowDown",40),e("Insert",45),e("Delete",46),e("Digit1",49),e("Digit2",50),e("Digit3",51),e("Digit4",52),e("Digit5",53),e("Digit6",54),e("Digit7",55),e("Digit8",56),e("Digit9",57),e("Digit0",48),e("KeyA",65),e("KeyB",66),e("KeyC",67),e("KeyD",68),e("KeyE",69),e("KeyF",70),e("KeyG",71),e("KeyH",72),e("KeyI",73),e("KeyJ",74),e("KeyK",75),e("KeyL",76),e("KeyM",77),e("KeyN",78),e("KeyO",79),e("KeyP",80),e("KeyQ",81),e("KeyR",82),e("KeyS",83),e("KeyT",84),e("KeyU",85),e("KeyV",86),e("KeyW",87),e("KeyX",88),e("KeyY",89),e("KeyZ",90),e("OSLeft",91),e("MetaLeft",91),e("OSRight",92),e("MetaRight",92),e("ContextMenu",93),e("Numpad0",96),e("Numpad1",97),e("Numpad2",98),e("Numpad3",99),e("Numpad4",100),e("Numpad5",101),e("Numpad6",102),e("Numpad7",103),e("Numpad8",104),e("Numpad9",105),e("NumpadMultiply",106),e("NumpadAdd",107),e("NumpadSeparator",108),e("NumpadSubtract",109),e("NumpadDecimal",110),e("NumpadDivide",111),e("F1",112),e("F2",113),e("F3",114),e("F4",115),e("F5",116),e("F6",117),e("F7",118),e("F8",119),e("F9",120),e("F10",121),e("F11",122),e("F12",123),e("F13",124),e("F14",125),e("F15",126),e("F16",127),e("F17",128),e("F18",129),e("F19",130),e("F20",131),e("F21",132),e("F22",133),e("F23",134),e("F24",135),e("NumLock",144),e("ScrollLock",145),e("Semicolon",186),e("Equal",187),e("Comma",188),e("Minus",189),e("Period",190),e("Slash",191),e("Backquote",192),e("IntlRo",193),e("BracketLeft",219),e("Backslash",220),e("BracketRight",221),e("Quote",222),e("IntlYen",255)})()},b7b8:function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__spreadArrays||function(){for(var e=0,t=0,o=arguments.length;t1)){var o=this.route(e);if(!(o.length<2)){for(var n=[],i=0,r=0;r1e-8&&c>=s){var l=Math.max(0,s-a)/n[r];return{segmentStart:o[r],segmentEnd:o[r+1],lambda:l}}a=c}return{segmentEnd:o.pop(),segmentStart:o.pop(),lambda:1}}}},e.prototype.addHandle=function(e,t,o,n){var i=new l.SRoutingHandle;return i.kind=t,i.pointIndex=n,i.type=o,"target"===t&&e.id===l.edgeInProgressID&&(i.id=l.edgeInProgressTargetHandleID),e.add(i),i},e.prototype.getHandlePosition=function(e,t,o){switch(o.kind){case"source":return e.source instanceof l.SDanglingAnchor?e.source.position:t[0];case"target":return e.target instanceof l.SDanglingAnchor?e.target.position:t[t.length-1];default:var n=this.getInnerHandlePosition(e,t,o);if(void 0!==n)return n;if(o.pointIndex>=0&&o.pointIndexr(n))&&(n=c),p>o&&(void 0===i||p0&&this.applyInnerHandleMoves(e,o),this.cleanupRoutingPoints(e,e.routingPoints,!0,!0)},e.prototype.cleanupRoutingPoints=function(e,t,o,n){var i=new d(e.source,e.parent,"source"),r=new d(e.target,e.parent,"target");this.resetRoutingPointsOnReconnect(e,t,o,i,r)},e.prototype.resetRoutingPointsOnReconnect=function(e,t,o,n,i){if(0===t.length||e.source instanceof l.SDanglingAnchor||e.target instanceof l.SDanglingAnchor){var a=this.getOptions(e),s=this.calculateDefaultCorners(e,n,i,a);if(t.splice.apply(t,r([0,t.length],s)),o){var c=-2;e.children.forEach(function(o){o instanceof l.SRoutingHandle&&("target"===o.kind?o.pointIndex=t.length:"line"===o.kind&&o.pointIndex>=t.length?e.remove(o):c=Math.max(o.pointIndex,c))});for(var p=c;p-1&&(e.routingPoints=[],this.cleanupRoutingPoints(e,e.routingPoints,!0,!0)))},e.prototype.takeSnapshot=function(e){return{routingPoints:e.routingPoints.slice(),routingHandles:e.children.filter(function(e){return e instanceof l.SRoutingHandle}).map(function(e){return e}),routedPoints:this.route(e),router:this,source:e.source,target:e.target}},e.prototype.applySnapshot=function(e,t){e.routingPoints=t.routingPoints,e.removeAll(function(e){return e instanceof l.SRoutingHandle}),e.routerKind=t.router.kind,t.routingHandles.forEach(function(t){return e.add(t)}),t.source&&(e.sourceId=t.source.id),t.target&&(e.targetId=t.target.id),e.root.index.remove(e),e.root.index.add(e)},e.prototype.calculateDefaultCorners=function(e,t,o,n){var i=this.getSelfEdgeIndex(e);if(i>=0){var r=n.standardDistance,s=n.selfEdgeOffset*Math.min(t.bounds.width,t.bounds.height);switch(i%4){case 0:return[{x:t.get(a.RIGHT).x+r,y:t.get(a.RIGHT).y+s},{x:t.get(a.RIGHT).x+r,y:t.get(a.BOTTOM).y+r},{x:t.get(a.BOTTOM).x+s,y:t.get(a.BOTTOM).y+r}];case 1:return[{x:t.get(a.BOTTOM).x-s,y:t.get(a.BOTTOM).y+r},{x:t.get(a.LEFT).x-r,y:t.get(a.BOTTOM).y+r},{x:t.get(a.LEFT).x-r,y:t.get(a.LEFT).y+s}];case 2:return[{x:t.get(a.LEFT).x-r,y:t.get(a.LEFT).y-s},{x:t.get(a.LEFT).x-r,y:t.get(a.TOP).y-r},{x:t.get(a.TOP).x-s,y:t.get(a.TOP).y-r}];case 3:return[{x:t.get(a.TOP).x+s,y:t.get(a.TOP).y-r},{x:t.get(a.RIGHT).x+r,y:t.get(a.TOP).y-r},{x:t.get(a.RIGHT).x+r,y:t.get(a.RIGHT).y-s}]}}return[]},e.prototype.getSelfEdgeIndex=function(e){return e.source&&e.source===e.target?e.source.outgoingEdges.filter(function(t){return t.target===e.source}).indexOf(e):-1},n([s.inject(u.AnchorComputerRegistry),i("design:type",u.AnchorComputerRegistry)],e.prototype,"anchorRegistry",void 0),e=n([s.injectable()],e),e}();t.LinearEdgeRouter=M},b7ca:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("46cc"),a=o("d8f5"),s=o("9a1f"),c=o("ab71"),p=o("869e"),l=o("168d"),u=new n.ContainerModule(function(e){e(l.EdgeRouterRegistry).toSelf().inSingletonScope(),e(p.AnchorComputerRegistry).toSelf().inSingletonScope(),e(r.ManhattanEdgeRouter).toSelf().inSingletonScope(),e(i.TYPES.IEdgeRouter).toService(r.ManhattanEdgeRouter),e(i.TYPES.IAnchorComputer).to(s.ManhattanEllipticAnchor).inSingletonScope(),e(i.TYPES.IAnchorComputer).to(s.ManhattanRectangularAnchor).inSingletonScope(),e(i.TYPES.IAnchorComputer).to(s.ManhattanDiamondAnchor).inSingletonScope(),e(a.PolylineEdgeRouter).toSelf().inSingletonScope(),e(i.TYPES.IEdgeRouter).toService(a.PolylineEdgeRouter),e(i.TYPES.IAnchorComputer).to(c.EllipseAnchor),e(i.TYPES.IAnchorComputer).to(c.RectangleAnchor),e(i.TYPES.IAnchorComputer).to(c.DiamondAnchor)});t.default=u},b7d1:function(e,t,o){(function(t){function o(e,t){if(n("noDeprecation"))return e;var o=!1;function i(){if(!o){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),o=!0}return e.apply(this,arguments)}return i}function n(e){try{if(!t.localStorage)return!1}catch(e){return!1}var o=t.localStorage[e];return null!=o&&"true"===String(o).toLowerCase()}e.exports=o}).call(this,o("c8ba"))},b878:function(e,t,o){},b8c1:function(e,t,o){"use strict";t["a"]={data:function(){return{timer:null,prevent:!1,delay:200}},methods:{onClick:function(e,t){var o=this;this.timer=setTimeout(function(){o.prevent||t(e),o.prevent=!1},this.delay)},onDblClick:function(e,t){clearTimeout(this.timer),this.prevent=!0,t(e)}}}},b967:function(e,t,o){"use strict";var n=o("0505"),i=o.n(n);i.a},ba33:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("30e3");function i(e){if("function"===typeof e){var t=e;return t.name}if("symbol"===typeof e)return e.toString();t=e;return t}function r(e,t,o){var n="",i=o(e,t);return 0!==i.length&&(n="\nRegistered bindings:",i.forEach(function(e){var t="Object";null!==e.implementationType&&(t=l(e.implementationType)),n=n+"\n "+t,e.constraint.metaData&&(n=n+" - "+e.constraint.metaData)})),n}function a(e,t){return null!==e.parentRequest&&(e.parentRequest.serviceIdentifier===t||a(e.parentRequest,t))}function s(e){function t(e,o){void 0===o&&(o=[]);var n=i(e.serviceIdentifier);return o.push(n),null!==e.parentRequest?t(e.parentRequest,o):o}var o=t(e);return o.reverse().join(" --\x3e ")}function c(e){e.childRequests.forEach(function(e){if(a(e,e.serviceIdentifier)){var t=s(e);throw new Error(n.CIRCULAR_DEPENDENCY+" "+t)}c(e)})}function p(e,t){if(t.isTagged()||t.isNamed()){var o="",n=t.getNamedTag(),i=t.getCustomTags();return null!==n&&(o+=n.toString()+"\n"),null!==i&&i.forEach(function(e){o+=e.toString()+"\n"})," "+e+"\n "+e+" - "+o}return" "+e}function l(e){if(e.name)return e.name;var t=e.toString(),o=t.match(/^function\s*([^\s(]+)/);return o?o[1]:"Anonymous function: "+t}t.getServiceIdentifierAsString=i,t.listRegisteredBindingsForServiceIdentifier=r,t.circularDependencyToException=c,t.listMetadataForTarget=p,t.getFunctionName=l},ba8b:function(e,t,o){},bab1:function(e,t,o){},bafd:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=t.context||document;if(!e)return null;var n=[],r=l((0,i.default)(e),n,o),a=void 0;return a=r?1===r.length?r[0]:r:u({type:"text",content:e},n,o),t.hooks&&t.hooks.create&&n.forEach(function(e){t.hooks.create(e)}),a};var n=o("861d"),i=c(n),r=o("2eed"),a=c(r),s=o("6592");function c(e){return e&&e.__esModule?e:{default:e}}function p(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function l(e,t,o){return e instanceof Array&&e.length>0?e.map(function(e){return u(e,t,o)}):void 0}function u(e,t,o){var n=void 0;return n="text"===e.type?(0,s.createTextVNode)(e.content,o):(0,a.default)(e.name,b(e,o),l(e.children,t,o)),t.push(n),n}function b(e,t){var o={};if(!e.attrs)return o;var n=Object.keys(e.attrs).reduce(function(o,n){if("style"!==n&&"class"!==n){var i=(0,s.unescapeEntities)(e.attrs[n],t);o?o[n]=i:o=p({},n,i)}return o},null);n&&(o.attrs=n);var i=d(e);i&&(o.style=i);var r=M(e);return r&&(o.class=r),o}function d(e){try{return e.attrs.style.split(";").reduce(function(e,t){var o=t.split(":"),n=(0,s.transformName)(o[0].trim());if(n){var i=o[1].replace("!important","").trim();e?e[n]=i:e=p({},n,i)}return e},null)}catch(e){return null}}function M(e){try{return e.attrs.class.split(" ").reduce(function(e,t){return t=t.trim(),t&&(e?e[t]=!0:e=p({},t,!0)),e},null)}catch(e){return null}}},bb33:function(e,t,o){"use strict";var n=o("bee8"),i=o.n(n);i.a},bb59:function(e,t,o){},bc63:function(e,t,o){},bcbd:function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("510b"),p=o("9757"),l=o("2f3a"),u=o("3a92"),b=o("3623"),d=o("6923"),M=o("1417"),h=o("3b4c"),f=o("e45b"),z=o("fba3"),O=o("e629"),A=o("b669"),m=o("70d9"),v=o("38e8"),g=o("a5f4"),y=o("3585"),q=o("3585"),_=o("3ada"),W=o("4c18"),R=function(){function e(t,o){void 0===t&&(t=[]),void 0===o&&(o=[]),this.selectedElementsIDs=t,this.deselectedElementsIDs=o,this.kind=e.KIND}return e.KIND="elementSelected",e}();t.SelectAction=R;var w=function(){function e(t){void 0===t&&(t=!0),this.select=t,this.kind=e.KIND}return e.KIND="allSelected",e}();t.SelectAllAction=w;var L=function(){function e(t){void 0===t&&(t=""),this.requestId=t,this.kind=e.KIND}return e.create=function(){return new e(c.generateRequestId())},e.KIND="getSelection",e}();t.GetSelectionAction=L;var C=function(){function e(t,o){void 0===t&&(t=[]),this.selectedElementsIDs=t,this.responseId=o,this.kind=e.KIND}return e.KIND="selectionResult",e}();t.SelectionResult=C;var S=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o.selected=[],o.deselected=[],o}return n(t,e),t.prototype.execute=function(e){var t=this,o=e.root;return this.action.selectedElementsIDs.forEach(function(e){var n=o.index.getById(e);n instanceof u.SChildElement&&W.isSelectable(n)&&t.selected.push(n)}),this.action.deselectedElementsIDs.forEach(function(e){var n=o.index.getById(e);n instanceof u.SChildElement&&W.isSelectable(n)&&t.deselected.push(n)}),this.redo(e)},t.prototype.undo=function(e){for(var t=0,o=this.selected;t0&&o.push(new g.SwitchEditModeAction([],a))}else{o.push(new R([],r.map(function(e){return e.id})));a=r.filter(function(e){return e instanceof q.SRoutableElement}).map(function(e){return e.id});a.length>0&&o.push(new g.SwitchEditModeAction([],a))}}}return o},t.prototype.mouseMove=function(e,t){return this.hasDragged=!0,[]},t.prototype.mouseUp=function(e,t){if(0===t.button&&!this.hasDragged){var o=b.findParentByFeature(e,W.isSelectable);if(void 0!==o&&this.wasSelected)return[new R([o.id],[])]}return this.hasDragged=!1,[]},t.prototype.decorate=function(e,t){var o=b.findParentByFeature(t,W.isSelectable);return void 0!==o&&f.setClass(e,"selected",o.selected),e},i([s.inject(m.ButtonHandlerRegistry),s.optional(),r("design:type",m.ButtonHandlerRegistry)],t.prototype,"buttonHandlerRegistry",void 0),t}(h.MouseListener);t.SelectMouseListener=T;var x=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o.previousSelection={},o}return n(t,e),t.prototype.retrieveResult=function(e){var t=e.root.index.all().filter(function(e){return W.isSelectable(e)&&e.selected}).map(function(e){return e.id});return new C(O.toArray(t),this.action.requestId)},t.KIND=L.KIND,t=i([s.injectable(),a(0,s.inject(d.TYPES.Action)),r("design:paramtypes",[L])],t),t}(l.ModelRequestCommand);t.GetSelectionCommand=x;var N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.keyDown=function(e,t){return A.matchesKeystroke(t,"KeyA","ctrlCmd")?[new w]:[]},t}(M.KeyListener);t.SelectKeyboardListener=N},bcc9:function(e,t,o){"use strict";var n,i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,o=1,n=arguments.length;oz&&(r.top=z-a),lA&&(r.left=A-s),r}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e["Start"]=1]="Start",e[e["End"]=2]="End",e[e["Move"]=3]="Move"}(n||(n={})),t.Draggable={bind:function(e,o,n,i){t.Draggable.update(e,o,n,i)},update:function(e,t,o,s){if(!t.value||!t.value.stopDragging){var c=t.value&&t.value.handle&&r(t.value.handle)||e;t&&t.value&&t.value.resetInitialPos&&(f(),O()),c.getAttribute("draggable")||(e.removeEventListener("mousedown",e["listener"]),c.addEventListener("mousedown",d),e.removeEventListener("touchstart",e["listener"]),c.addEventListener("touchstart",d,{passive:!1}),c.setAttribute("draggable","true"),e["listener"]=d,f(),O())}function p(o){o.preventDefault();var n=t.value&&t.value.stopDragging;if(!n){var i=A();i.startDragPosition&&i.initialMousePos||(f(o),i=A());var r=M(o),s=r.left-i.initialMousePos.left,c=r.top-i.initialMousePos.top,p={left:i.startDragPosition.left+s,top:i.startDragPosition.top+c},b=l(),d=e.getBoundingClientRect();b&&d&&(p=a(d,b,p.left,p.top,t.value.boundingRectMargin)),z({currentDragPosition:p}),u(),O(o)}}function l(){if(t.value)return t.value.boundingRect||t.value.boundingElement&&t.value.boundingElement.getBoundingClientRect()}function u(){var t=A();t.currentDragPosition&&(e.style.touchAction="none",e.style.position="fixed",e.style.left=t.currentDragPosition.left+"px",e.style.top=t.currentDragPosition.top+"px")}function b(e){e.preventDefault(),document.removeEventListener("mousemove",p),document.removeEventListener("mouseup",b),document.removeEventListener("touchmove",p),document.removeEventListener("touchend",b);var t=h();z({initialMousePos:void 0,startDragPosition:t,currentDragPosition:t}),O(e,n.End)}function d(e){z({initialMousePos:M(e)}),O(e,n.Start),document.addEventListener("mousemove",p),document.addEventListener("mouseup",b),document.addEventListener("touchmove",p),document.addEventListener("touchend",b)}function M(e){if(e instanceof MouseEvent)return{left:e.clientX,top:e.clientY};if(e instanceof TouchEvent){var t=e.changedTouches[e.changedTouches.length-1];return{left:t.clientX,top:t.clientY}}}function h(){var t=e.getBoundingClientRect();if(t.height&&t.width)return{left:t.left,top:t.top}}function f(e){var o=A(),n=t&&t.value&&t.value.initialPosition,i=o.initialPosition,r=h(),a=n||i||r;z({initialPosition:a,startDragPosition:a,currentDragPosition:a,initialMousePos:M(e)}),u()}function z(e){var t=A(),o=i(i({},t),e);c.setAttribute("draggable-state",JSON.stringify(o))}function O(e,o){var r=A(),a={x:0,y:0};r.currentDragPosition&&r.startDragPosition&&(a.x=r.currentDragPosition.left-r.startDragPosition.left,a.y=r.currentDragPosition.top-r.startDragPosition.top);var s=r.currentDragPosition&&i({},r.currentDragPosition);o===n.End?t.value&&t.value.onDragEnd&&r&&t.value.onDragEnd(a,s,e):o===n.Start?t.value&&t.value.onDragStart&&r&&t.value.onDragStart(a,s,e):t.value&&t.value.onPositionChange&&r&&t.value.onPositionChange(a,s,e)}function A(){return JSON.parse(c.getAttribute("draggable-state"))||{}}}}},be02:function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("6923"),p=o("3864"),l=o("7b39"),u=function(e){function t(t,o){var n=e.call(this)||this;return t.forEach(function(e){return n.register(e.actionKind,e.factory())}),o.forEach(function(e){return n.initializeActionHandler(e)}),n}return n(t,e),t.prototype.initializeActionHandler=function(e){e.initialize(this)},t=i([s.injectable(),a(0,s.multiInject(c.TYPES.ActionHandlerRegistration)),a(0,s.optional()),a(1,s.multiInject(c.TYPES.IActionHandlerInitializer)),a(1,s.optional()),r("design:paramtypes",[Array,Array])],t),t}(p.MultiInstanceRegistry);function b(e,t,o){if("function"===typeof o){if(!l.isInjectable(o))throw new Error("Action handlers should be @injectable: "+o.name);e.isBound(o)||e.bind(o).toSelf()}e.bind(c.TYPES.ActionHandlerRegistration).toDynamicValue(function(e){return{actionKind:t,factory:function(){return e.container.get(o)}}})}t.ActionHandlerRegistry=u,t.configureActionHandler=b},bee8:function(e,t,o){},c146:function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=o("987d"),r=function(){function e(e,t){void 0===t&&(t=i.easeInOut),this.context=e,this.ease=t}return e.prototype.start=function(){var e=this;return new Promise(function(t,o){var n=void 0,i=0,r=function(o){var a;i++,void 0===n?(n=o,a=0):a=o-n;var s=Math.min(1,a/e.context.duration),c=e.tween(e.ease(s),e.context);e.context.modelChanged.update(c),1===s?(e.context.logger.log(e,1e3*i/e.context.duration+" fps"),t(c)):e.context.syncer.onNextFrame(r)};if(e.context.syncer.isAvailable())e.context.syncer.onNextFrame(r);else{var a=e.tween(1,e.context);t(a)}})},e}();t.Animation=r;var a=function(e){function t(t,o,n,r){void 0===n&&(n=[]),void 0===r&&(r=i.easeInOut);var a=e.call(this,o,r)||this;return a.model=t,a.context=o,a.components=n,a.ease=r,a}return n(t,e),t.prototype.include=function(e){return this.components.push(e),this},t.prototype.tween=function(e,t){for(var o=0,n=this.components;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("dd02"),c=o("510b"),p=o("9757"),l=o("c146"),u=o("5eb6"),b=o("e1c6"),d=o("6923"),M=o("2f3a"),h=function(){function e(t,o,n){this.elementId=t,this.newViewport=o,this.animate=n,this.kind=e.KIND}return e.KIND="viewport",e}();t.SetViewportAction=h;var f=function(){function e(t){void 0===t&&(t=""),this.requestId=t,this.kind=e.KIND}return e.create=function(){return new e(c.generateRequestId())},e.KIND="getViewport",e}();t.GetViewportAction=f;var z=function(){function e(t,o,n){this.viewport=t,this.canvasBounds=o,this.responseId=n,this.kind=e.KIND}return e.KIND="viewportResult",e}();t.ViewportResult=z;var O=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o.newViewport=t.newViewport,o}var o;return n(t,e),o=t,t.prototype.execute=function(e){var t=e.root,o=t.index.getById(this.action.elementId);if(o&&u.isViewport(o)){if(this.element=o,this.oldViewport={scroll:this.element.scroll,zoom:this.element.zoom},this.action.animate)return new m(this.element,this.oldViewport,this.newViewport,e).start();this.element.scroll=this.newViewport.scroll,this.element.zoom=this.newViewport.zoom}return t},t.prototype.undo=function(e){return new m(this.element,this.newViewport,this.oldViewport,e).start()},t.prototype.redo=function(e){return new m(this.element,this.oldViewport,this.newViewport,e).start()},t.prototype.merge=function(e,t){return!this.action.animate&&e instanceof o&&this.element===e.element&&(this.newViewport=e.newViewport,!0)},t.KIND=h.KIND,t=o=i([b.injectable(),a(0,b.inject(d.TYPES.Action)),r("design:paramtypes",[h])],t),t}(p.MergeableCommand);t.SetViewportCommand=O;var A=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o}return n(t,e),t.prototype.retrieveResult=function(e){var t,o=e.root;return t=u.isViewport(o)?{scroll:o.scroll,zoom:o.zoom}:{scroll:s.ORIGIN_POINT,zoom:1},new z(t,o.canvasBounds,this.action.requestId)},t.KIND=f.KIND,t=i([a(0,b.inject(d.TYPES.Action)),r("design:paramtypes",[f])],t),t}(M.ModelRequestCommand);t.GetViewportCommand=A;var m=function(e){function t(t,o,n,i){var r=e.call(this,i)||this;return r.element=t,r.oldViewport=o,r.newViewport=n,r.context=i,r.zoomFactor=Math.log(n.zoom/o.zoom),r}return n(t,e),t.prototype.tween=function(e,t){return this.element.scroll={x:(1-e)*this.oldViewport.scroll.x+e*this.newViewport.scroll.x,y:(1-e)*this.oldViewport.scroll.y+e*this.newViewport.scroll.y},this.element.zoom=this.oldViewport.zoom*Math.exp(e*this.zoomFactor),t.root},t}(l.Animation);t.ViewportAnimation=m},c4e6:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("bcbd"),a=o("842c"),s=new n.ContainerModule(function(e,t,o){a.configureCommand({bind:e,isBound:o},r.SelectCommand),a.configureCommand({bind:e,isBound:o},r.SelectAllCommand),a.configureCommand({bind:e,isBound:o},r.GetSelectionCommand),e(i.TYPES.KeyListener).to(r.SelectKeyboardListener),e(i.TYPES.MouseListener).to(r.SelectMouseListener)});t.default=s},c4ec:function(e,t,o){var n=/([\w-]+)|=|(['"])([.\s\S]*?)\2/g,i=o("4047");e.exports=function(e){var t,o=0,r=!0,a={type:"tag",name:"",voidElement:!1,attrs:{},children:[]};return e.replace(n,function(n){if("="===n)return r=!0,void o++;r?0===o?((i[n]||"/"===e.charAt(e.length-2))&&(a.voidElement=!0),a.name=n):(a.attrs[t]=n.replace(/^['"]|['"]$/g,""),t=void 0):(t&&(a.attrs[t]=t),t=n),o++,r=!1}),a}},c51d:function(e,t,o){},c58e:function(e,t,o){},c5f4:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NAMED_TAG="named",t.NAME_TAG="name",t.UNMANAGED_TAG="unmanaged",t.OPTIONAL_TAG="optional",t.INJECT_TAG="inject",t.MULTI_INJECT_TAG="multi_inject",t.TAGGED="inversify:tagged",t.TAGGED_PROP="inversify:tagged_props",t.PARAM_TYPES="inversify:paramtypes",t.DESIGN_PARAM_TYPES="design:paramtypes",t.POST_CONSTRUCT="post_construct"},c612:function(e,t,o){"use strict";var n=o("8b1b"),i=o.n(n);i.a},c622:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("77d3"),i=function(){function e(e,t,o,i,r){this.id=n.id(),this.serviceIdentifier=e,this.parentContext=t,this.parentRequest=o,this.target=r,this.childRequests=[],this.bindings=Array.isArray(i)?i:[i],this.requestScope=null===o?new Map:null}return e.prototype.addChildRequest=function(t,o,n){var i=new e(t,this.parentContext,this,o,n);return this.childRequests.push(i),i},e}();t.Request=i},c661:function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("e1c6"),r=function(){function e(){}return e.prototype.isAllowed=function(e){return!0},e=n([i.injectable()],e),e}();t.DefaultDiagramLocker=r},c7c3:function(e,t,o){"use strict";var n=o("3e33"),i=o.n(n);i.a},c807:function(e,t,o){"use strict";var n=o("1300"),i=o("e300"),r=o("183a"),a=o("4cdf"),s=o("0b2d"),c=o("9f5e"),p=o("a568"),l=o("1e8d"),u=o("cef7"),b=o("01d4"),d=o("06f8"),M=o("0af5"),h=o("f623"),f=o("f403"),z=o("4105"),O=o("3e6b"),A=o("5831"),m=o("a43f"),v=o("4a7d"),g=o("6c77"),y=0,q=1,_={MODIFYSTART:"modifystart",MODIFYEND:"modifyend"},W=function(e){function t(t,o,n){e.call(this,t),this.features=o,this.mapBrowserEvent=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(u["a"]),R=function(e){function t(t){var o;if(e.call(this,t),this.condition_=t.condition?t.condition:d["h"],this.defaultDeleteCondition_=function(e){return Object(d["a"])(e)&&Object(d["j"])(e)},this.deleteCondition_=t.deleteCondition?t.deleteCondition:this.defaultDeleteCondition_,this.insertVertexCondition_=t.insertVertexCondition?t.insertVertexCondition:d["c"],this.vertexFeature_=null,this.vertexSegments_=null,this.lastPixel_=[0,0],this.ignoreNextSingleClick_=!1,this.modified_=!1,this.rBush_=new v["a"],this.pixelTolerance_=void 0!==t.pixelTolerance?t.pixelTolerance:10,this.snappedToVertex_=!1,this.changingFeature_=!1,this.dragSegments_=[],this.overlay_=new O["a"]({source:new A["a"]({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.style?t.style:S(),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.SEGMENT_WRITERS_={Point:this.writePointGeometry_,LineString:this.writeLineStringGeometry_,LinearRing:this.writeLineStringGeometry_,Polygon:this.writePolygonGeometry_,MultiPoint:this.writeMultiPointGeometry_,MultiLineString:this.writeMultiLineStringGeometry_,MultiPolygon:this.writeMultiPolygonGeometry_,Circle:this.writeCircleGeometry_,GeometryCollection:this.writeGeometryCollectionGeometry_},this.source_=null,t.source?(this.source_=t.source,o=new i["a"](this.source_.getFeatures()),Object(l["a"])(this.source_,m["a"].ADDFEATURE,this.handleSourceAdd_,this),Object(l["a"])(this.source_,m["a"].REMOVEFEATURE,this.handleSourceRemove_,this)):o=t.features,!o)throw new Error("The modify interaction requires features or a source");this.features_=o,this.features_.forEach(this.addFeature_.bind(this)),Object(l["a"])(this.features_,r["a"].ADD,this.handleFeatureAdd_,this),Object(l["a"])(this.features_,r["a"].REMOVE,this.handleFeatureRemove_,this),this.lastPointerEvent_=null}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.addFeature_=function(e){var t=e.getGeometry();t&&t.getType()in this.SEGMENT_WRITERS_&&this.SEGMENT_WRITERS_[t.getType()].call(this,e,t);var o=this.getMap();o&&o.isRendered()&&this.getActive()&&this.handlePointerAtPixel_(this.lastPixel_,o),Object(l["a"])(e,b["a"].CHANGE,this.handleFeatureChange_,this)},t.prototype.willModifyFeatures_=function(e){this.modified_||(this.modified_=!0,this.dispatchEvent(new W(_.MODIFYSTART,this.features_,e)))},t.prototype.removeFeature_=function(e){this.removeFeatureSegmentData_(e),this.vertexFeature_&&0===this.features_.getLength()&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),Object(l["c"])(e,b["a"].CHANGE,this.handleFeatureChange_,this)},t.prototype.removeFeatureSegmentData_=function(e){var t=this.rBush_,o=[];t.forEach(function(t){e===t.feature&&o.push(t)});for(var n=o.length-1;n>=0;--n)t.remove(o[n])},t.prototype.setActive=function(t){this.vertexFeature_&&!t&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),e.prototype.setActive.call(this,t)},t.prototype.setMap=function(t){this.overlay_.setMap(t),e.prototype.setMap.call(this,t)},t.prototype.getOverlay=function(){return this.overlay_},t.prototype.handleSourceAdd_=function(e){e.feature&&this.features_.push(e.feature)},t.prototype.handleSourceRemove_=function(e){e.feature&&this.features_.remove(e.feature)},t.prototype.handleFeatureAdd_=function(e){this.addFeature_(e.element)},t.prototype.handleFeatureChange_=function(e){if(!this.changingFeature_){var t=e.target;this.removeFeature_(t),this.addFeature_(t)}},t.prototype.handleFeatureRemove_=function(e){var t=e.element;this.removeFeature_(t)},t.prototype.writePointGeometry_=function(e,t){var o=t.getCoordinates(),n={feature:e,geometry:t,segment:[o,o]};this.rBush_.insert(t.getExtent(),n)},t.prototype.writeMultiPointGeometry_=function(e,t){for(var o=t.getCoordinates(),n=0,i=o.length;n=0;--m)this.insertVertex_.apply(this,i[m])}return!!this.vertexFeature_},t.prototype.handleUpEvent=function(e){for(var t=this.dragSegments_.length-1;t>=0;--t){var o=this.dragSegments_[t][0],n=o.geometry;if(n.getType()===h["a"].CIRCLE){var i=n.getCenter(),r=o.featureSegments[0],a=o.featureSegments[1];r.segment[0]=r.segment[1]=i,a.segment[0]=a.segment[1]=i,this.rBush_.update(Object(M["m"])(i),r),this.rBush_.update(n.getExtent(),a)}else this.rBush_.update(Object(M["b"])(o.segment),o)}return this.modified_&&(this.dispatchEvent(new W(_.MODIFYEND,this.features_,e)),this.modified_=!1),!1},t.prototype.handlePointerMove_=function(e){this.lastPixel_=e.pixel,this.handlePointerAtPixel_(e.pixel,e.map)},t.prototype.handlePointerAtPixel_=function(e,t){var o=t.getCoordinateFromPixel(e),i=function(e,t){return L(o,e)-L(o,t)},r=Object(M["c"])(Object(M["m"])(o),t.getView().getResolution()*this.pixelTolerance_),a=this.rBush_,s=a.getInExtent(r);if(s.length>0){s.sort(i);var c=s[0],l=c.segment,u=C(o,c),b=t.getPixelFromCoordinate(u),d=Object(p["d"])(e,b);if(d<=this.pixelTolerance_){var f={};if(c.geometry.getType()===h["a"].CIRCLE&&c.index===q)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(u);else{var z=t.getPixelFromCoordinate(l[0]),O=t.getPixelFromCoordinate(l[1]),A=Object(p["h"])(b,z),m=Object(p["h"])(b,O);d=Math.sqrt(Math.min(A,m)),this.snappedToVertex_=d<=this.pixelTolerance_,this.snappedToVertex_&&(u=A>m?l[1]:l[0]),this.createOrUpdateVertexFeature_(u);for(var v=1,g=s.length;v=0;--r)o=b[r],l=o[0],u=Object(n["c"])(l.feature),l.depth&&(u+="-"+l.depth.join("-")),u in d||(d[u]={}),0===o[1]?(d[u].right=l,d[u].index=l.index):1==o[1]&&(d[u].left=l,d[u].index=l.index+1);for(u in d){switch(p=d[u].right,s=d[u].left,a=d[u].index,c=a-1,l=void 0!==s?s:p,c<0&&(c=0),i=l.geometry,t=i.getCoordinates(),e=t,f=!1,i.getType()){case h["a"].MULTI_LINE_STRING:t[l.depth[0]].length>2&&(t[l.depth[0]].splice(a,1),f=!0);break;case h["a"].LINE_STRING:t.length>2&&(t.splice(a,1),f=!0);break;case h["a"].MULTI_POLYGON:e=e[l.depth[1]];case h["a"].POLYGON:e=e[l.depth[0]],e.length>4&&(a==e.length-1&&(a=0),e.splice(a,1),f=!0,0===a&&(e.pop(),e.push(e[0]),c=e.length-1));break;default:}if(f){this.setGeometryCoordinates_(i,t);var z=[];if(void 0!==s&&(this.rBush_.remove(s),z.push(s.segment[0])),void 0!==p&&(this.rBush_.remove(p),z.push(p.segment[1])),void 0!==s&&void 0!==p){var O={depth:l.depth,feature:l.feature,geometry:l.geometry,index:c,segment:z};this.rBush_.insert(Object(M["b"])(O.segment),O)}this.updateSegmentIndices_(i,a,l.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),b.length=0}}return f},t.prototype.setGeometryCoordinates_=function(e,t){this.changingFeature_=!0,e.setCoordinates(t),this.changingFeature_=!1},t.prototype.updateSegmentIndices_=function(e,t,o,n){this.rBush_.forEachInExtent(e.getExtent(),function(i){i.geometry===e&&(void 0===o||void 0===i.depth||Object(c["b"])(i.depth,o))&&i.index>t&&(i.index+=n)})},t}(z["b"]);function w(e,t){return e.index-t.index}function L(e,t){var o=t.geometry;if(o.getType()===h["a"].CIRCLE){var n=o;if(t.index===q){var i=Object(p["h"])(n.getCenter(),e),r=Math.sqrt(i)-n.getRadius();return r*r}}return Object(p["i"])(e,t.segment)}function C(e,t){var o=t.geometry;return o.getType()===h["a"].CIRCLE&&t.index===q?o.getClosestPoint(e):Object(p["b"])(e,t.segment)}function S(){var e=Object(g["b"])();return function(t,o){return e[h["a"].POINT]}}t["a"]=R},c862:function(e,t,o){},c8c0:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){this.parentContext=e,this.rootRequest=t}return e}();t.Plan=n},c95e:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("f4cb"),a=o("0bd8"),s=o("842c"),c=o("be02"),p=o("ed4f"),l=o("c444"),u=o("559d"),b=new n.ContainerModule(function(e,t,o){e(i.TYPES.PopupVNodePostprocessor).to(a.PopupPositionUpdater).inSingletonScope(),e(i.TYPES.MouseListener).to(r.HoverMouseListener),e(i.TYPES.PopupMouseListener).to(r.PopupHoverMouseListener),e(i.TYPES.KeyListener).to(r.HoverKeyListener),e(i.TYPES.HoverState).toConstantValue({mouseOverTimer:void 0,mouseOutTimer:void 0,popupOpen:!1,previousPopupElement:void 0}),e(r.ClosePopupActionHandler).toSelf().inSingletonScope();var n={bind:e,isBound:o};s.configureCommand(n,r.HoverFeedbackCommand),s.configureCommand(n,r.SetPopupModelCommand),c.configureActionHandler(n,r.SetPopupModelCommand.KIND,r.ClosePopupActionHandler),c.configureActionHandler(n,p.FitToScreenCommand.KIND,r.ClosePopupActionHandler),c.configureActionHandler(n,p.CenterCommand.KIND,r.ClosePopupActionHandler),c.configureActionHandler(n,l.SetViewportCommand.KIND,r.ClosePopupActionHandler),c.configureActionHandler(n,u.MoveCommand.KIND,r.ClosePopupActionHandler)});t.default=b},c998:function(e,t,o){"use strict";var n=o("a16f"),i=o.n(n);i.a},cb6e:function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__awaiter||function(e,t,o,n){function i(e){return e instanceof o?e:new o(function(t){t(e)})}return new(o||(o=Promise))(function(o,r){function a(e){try{c(n.next(e))}catch(e){r(e)}}function s(e){try{c(n["throw"](e))}catch(e){r(e)}}function c(e){e.done?o(e.value):i(e.value).then(a,s)}c((n=n.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){var o,n,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(e){return function(t){return c([e,t])}}function c(r){if(o)throw new TypeError("Generator is already executing.");while(a)try{if(o=1,n&&(i=2&r[0]?n["return"]:r[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,r[1])).done)return i;switch(n=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,n=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]=0})]}})})},t.prototype.getViewport=function(){return a(this,void 0,void 0,function(){var e;return s(this,function(t){switch(t.label){case 0:return[4,this.actionDispatcher.request(f.GetViewportAction.create())];case 1:return e=t.sent(),[2,{scroll:e.viewport.scroll,zoom:e.viewport.zoom,canvasBounds:e.canvasBounds}]}})})},t.prototype.submitModel=function(e,t,o){return a(this,void 0,void 0,function(){var n,i;return s(this,function(r){switch(r.label){case 0:return this.viewerOptions.needsClientLayout?[4,this.actionDispatcher.request(h.RequestBoundsAction.create(e))]:[3,3];case 1:return n=r.sent(),i=this.computedBoundsApplicator.apply(this.currentRoot,n),[4,this.doSubmitModel(e,!0,o,i)];case 2:return r.sent(),[3,5];case 3:return[4,this.doSubmitModel(e,t,o)];case 4:r.sent(),r.label=5;case 5:return[2]}})})},t.prototype.doSubmitModel=function(e,t,o,n){return a(this,void 0,void 0,function(){var i,r,a,c,p;return s(this,function(s){switch(s.label){case 0:if(void 0===this.layoutEngine)return[3,6];s.label=1;case 1:return s.trys.push([1,5,,6]),i=this.layoutEngine.layout(e,n),i instanceof Promise?[4,i]:[3,3];case 2:return e=s.sent(),[3,4];case 3:void 0!==i&&(e=i),s.label=4;case 4:return[3,6];case 5:return r=s.sent(),this.logger.error(this,r.toString(),r.stack),[3,6];case 6:return a=this.lastSubmittedModelType,this.lastSubmittedModelType=e.type,o&&o.kind===u.RequestModelAction.KIND&&o.requestId?(c=o,[4,this.actionDispatcher.dispatch(new u.SetModelAction(e,c.requestId))]):[3,8];case 7:return s.sent(),[3,12];case 8:return t&&e.type===a?(p=Array.isArray(t)?t:e,[4,this.actionDispatcher.dispatch(new m.UpdateModelAction(p,!0,o))]):[3,10];case 9:return s.sent(),[3,12];case 10:return[4,this.actionDispatcher.dispatch(new u.SetModelAction(e))];case 11:s.sent(),s.label=12;case 12:return[2]}})})},t.prototype.applyMatches=function(e){var t=this.currentRoot;return A.applyMatches(t,e),this.submitModel(t,e)},t.prototype.addElements=function(e){for(var t=[],o=0,n=e;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("e45b"),r=o("e1c6"),a=o("3623"),s=function(){function e(){}return e.prototype.decorate=function(e,t){if(t.cssClasses)for(var o=0,n=t.cssClasses;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("510b"),p=o("9757"),l=o("6923"),u=o("3b4c"),b=o("1417"),d=o("b669"),M=o("4c18"),h=o("e629"),f=o("cc26"),z=function(){function e(t){this.labelId=t,this.kind=e.KIND}return e.KIND="EditLabel",e}();function O(e){return c.isAction(e)&&e.kind===z.KIND&&"labelId"in e}t.EditLabelAction=z,t.isEditLabelAction=O;var A=function(){function e(t,o){this.labelId=t,this.text=o,this.kind=e.KIND}return e.KIND="applyLabelEdit",e}();t.ApplyLabelEditAction=A;var m=function(){function e(){}return e}();t.ResolvedLabelEdit=m;var v=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o}return n(t,e),t.prototype.execute=function(e){var t=e.root.index,o=t.getById(this.action.labelId);return o&&f.isEditableLabel(o)&&(this.resolvedLabelEdit={label:o,oldLabel:o.text,newLabel:this.action.text},o.text=this.action.text),e.root},t.prototype.undo=function(e){return this.resolvedLabelEdit&&(this.resolvedLabelEdit.label.text=this.resolvedLabelEdit.oldLabel),e.root},t.prototype.redo=function(e){return this.resolvedLabelEdit&&(this.resolvedLabelEdit.label.text=this.resolvedLabelEdit.newLabel),e.root},t.KIND=A.KIND,t=i([a(0,s.inject(l.TYPES.Action)),r("design:paramtypes",[A])],t),t}(p.Command);t.ApplyLabelEditCommand=v;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.doubleClick=function(e,t){var o=q(e);return o?[new z(o.id)]:[]},t}(u.MouseListener);t.EditLabelMouseListener=g;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.keyDown=function(e,t){if(d.matchesKeystroke(t,"F2")){var o=h.toArray(e.index.all().filter(function(e){return M.isSelectable(e)&&e.selected})).map(q).filter(function(e){return void 0!==e});if(1===o.length)return[new z(o[0].id)]}return[]},t}(b.KeyListener);function q(e){return f.isEditableLabel(e)?e:f.isWithEditableLabel(e)&&e.editableLabel?e.editableLabel:void 0}t.EditLabelKeyListener=y,t.getEditableLabel=q},ce70:function(e,t,o){},cf13:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this.str=e}return e.prototype.startsWith=function(e){return 0===this.str.indexOf(e)},e.prototype.endsWith=function(e){var t="",o=e.split("").reverse().join("");return t=this.str.split("").reverse().join(""),this.startsWith.call({str:t},o)},e.prototype.contains=function(e){return-1!==this.str.indexOf(e)},e.prototype.equals=function(e){return this.str===e},e.prototype.value=function(){return this.str},e}();t.QueryableString=n},cf61:function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("dd02"),p=o("c146"),l=o("9757"),u=o("e7fa"),b=o("3a92"),d=o("559d"),M=o("7d36"),h=o("a0af"),f=o("66f9"),z=o("3b62"),O=o("4c18"),A=o("d084"),m=o("0f4c"),v=o("6923"),g=o("5eb6"),y=o("168d"),q=o("3585"),_=function(){function e(t,o,n){void 0===o&&(o=!0),this.animate=o,this.cause=n,this.kind=e.KIND,void 0!==t.id?this.newRoot=t:this.matches=t}return e.KIND="updateModel",e}();t.UpdateModelAction=_;var W=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o}return n(t,e),t.prototype.execute=function(e){var t;return void 0!==this.action.newRoot?t=e.modelFactory.createRoot(this.action.newRoot):(t=e.modelFactory.createRoot(e.root),void 0!==this.action.matches&&this.applyMatches(t,this.action.matches,e)),this.oldRoot=e.root,this.newRoot=t,this.performUpdate(this.oldRoot,this.newRoot,e)},t.prototype.performUpdate=function(e,t,o){if(void 0!==this.action.animate&&!this.action.animate||e.id!==t.id)return e.type===t.type&&c.isValidDimension(e.canvasBounds)&&(t.canvasBounds=e.canvasBounds),g.isViewport(e)&&g.isViewport(t)&&(t.zoom=e.zoom,t.scroll=e.scroll),t;var n=void 0;if(void 0===this.action.matches){var i=new A.ModelMatcher;n=i.match(e,t)}else n=this.convertToMatchResult(this.action.matches,e,t);var r=this.computeAnimation(t,n,o);return r instanceof p.Animation?r.start():r},t.prototype.applyMatches=function(e,t,o){for(var n=e.index,i=0,r=t;i=2?new p.CompoundAnimation(e,o,r):1===r.length?r[0]:e},t.prototype.updateElement=function(e,t,o){if(h.isLocateable(e)&&h.isLocateable(t)){var n=e.position,i=t.position;c.almostEquals(n.x,i.x)&&c.almostEquals(n.y,i.y)||(void 0===o.moves&&(o.moves=[]),o.moves.push({element:t,fromPosition:n,toPosition:i}),t.position=n)}f.isSizeable(e)&&f.isSizeable(t)&&(c.isValidDimension(t.bounds)?c.almostEquals(e.bounds.width,t.bounds.width)&&c.almostEquals(e.bounds.height,t.bounds.height)||(void 0===o.resizes&&(o.resizes=[]),o.resizes.push({element:t,fromDimension:{width:e.bounds.width,height:e.bounds.height},toDimension:{width:t.bounds.width,height:t.bounds.height}})):t.bounds={x:t.bounds.x,y:t.bounds.y,width:e.bounds.width,height:e.bounds.height}),e instanceof q.SRoutableElement&&t instanceof q.SRoutableElement&&this.edgeRouterRegistry&&(void 0===o.edgeMementi&&(o.edgeMementi=[]),o.edgeMementi.push({edge:t,before:this.takeSnapshot(e),after:this.takeSnapshot(t)})),O.isSelectable(e)&&O.isSelectable(t)&&(t.selected=e.selected),e instanceof b.SModelRoot&&t instanceof b.SModelRoot&&(t.canvasBounds=e.canvasBounds),e instanceof z.ViewportRootElement&&t instanceof z.ViewportRootElement&&(t.scroll=e.scroll,t.zoom=e.zoom)},t.prototype.takeSnapshot=function(e){var t=this.edgeRouterRegistry.get(e.routerKind);return t.takeSnapshot(e)},t.prototype.createAnimations=function(e,t,o){var n=[];if(e.fades.length>0&&n.push(new u.FadeAnimation(t,e.fades,o,!0)),void 0!==e.moves&&e.moves.length>0){for(var i=new Map,r=0,a=e.moves;r0){for(var c=new Map,p=0,l=e.resizes;p0&&n.push(new d.MorphEdgesAnimation(t,e.edgeMementi,o,!1)),n},t.prototype.undo=function(e){return this.performUpdate(this.newRoot,this.oldRoot,e)},t.prototype.redo=function(e){return this.performUpdate(this.oldRoot,this.newRoot,e)},t.KIND=_.KIND,i([s.inject(y.EdgeRouterRegistry),s.optional(),r("design:type",y.EdgeRouterRegistry)],t.prototype,"edgeRouterRegistry",void 0),t=i([s.injectable(),a(0,s.inject(v.TYPES.Action)),r("design:paramtypes",[_])],t),t}(l.Command);t.UpdateModelCommand=W},cf611:function(e,t,o){"use strict";var n=o("8e08"),i=o.n(n);i.a},cf81:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e34e"),i=o("451f"),r=function(){function e(e){this._binding=e}return e.prototype.when=function(e){return this._binding.constraint=e,new n.BindingOnSyntax(this._binding)},e.prototype.whenTargetNamed=function(e){return this._binding.constraint=i.namedConstraint(e),new n.BindingOnSyntax(this._binding)},e.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(e){var t=null!==e.target&&!e.target.isNamed()&&!e.target.isTagged();return t},new n.BindingOnSyntax(this._binding)},e.prototype.whenTargetTagged=function(e,t){return this._binding.constraint=i.taggedConstraint(e)(t),new n.BindingOnSyntax(this._binding)},e.prototype.whenInjectedInto=function(e){return this._binding.constraint=function(t){return i.typeConstraint(e)(t.parentRequest)},new n.BindingOnSyntax(this._binding)},e.prototype.whenParentNamed=function(e){return this._binding.constraint=function(t){return i.namedConstraint(e)(t.parentRequest)},new n.BindingOnSyntax(this._binding)},e.prototype.whenParentTagged=function(e,t){return this._binding.constraint=function(o){return i.taggedConstraint(e)(t)(o.parentRequest)},new n.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorIs=function(e){return this._binding.constraint=function(t){return i.traverseAncerstors(t,i.typeConstraint(e))},new n.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorIs=function(e){return this._binding.constraint=function(t){return!i.traverseAncerstors(t,i.typeConstraint(e))},new n.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorNamed=function(e){return this._binding.constraint=function(t){return i.traverseAncerstors(t,i.namedConstraint(e))},new n.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorNamed=function(e){return this._binding.constraint=function(t){return!i.traverseAncerstors(t,i.namedConstraint(e))},new n.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorTagged=function(e,t){return this._binding.constraint=function(o){return i.traverseAncerstors(o,i.taggedConstraint(e)(t))},new n.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorTagged=function(e,t){return this._binding.constraint=function(o){return!i.traverseAncerstors(o,i.taggedConstraint(e)(t))},new n.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorMatches=function(e){return this._binding.constraint=function(t){return i.traverseAncerstors(t,e)},new n.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorMatches=function(e){return this._binding.constraint=function(t){return!i.traverseAncerstors(t,e)},new n.BindingOnSyntax(this._binding)},e}();t.BindingWhenSyntax=r},cf98:function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=o("3a92"),r=o("3b4c"),a=o("3623"),s=o("c444"),c=o("5eb6"),p=o("a0af"),l=o("3585");function u(e){return"scroll"in e}t.isScrollable=u;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.mouseDown=function(e,t){var o=a.findParentByFeature(e,p.isMoveable);if(void 0===o&&!(e instanceof l.SRoutingHandle)){var n=a.findParentByFeature(e,c.isViewport);this.lastScrollPosition=n?{x:t.pageX,y:t.pageY}:void 0}return[]},t.prototype.mouseMove=function(e,t){if(0===t.buttons)this.mouseUp(e,t);else if(this.lastScrollPosition){var o=a.findParentByFeature(e,c.isViewport);if(o){var n=(t.pageX-this.lastScrollPosition.x)/o.zoom,i=(t.pageY-this.lastScrollPosition.y)/o.zoom,r={scroll:{x:o.scroll.x-n,y:o.scroll.y-i},zoom:o.zoom};return this.lastScrollPosition={x:t.pageX,y:t.pageY},[new s.SetViewportAction(o.id,r,!1)]}}return[]},t.prototype.mouseEnter=function(e,t){return e instanceof i.SModelRoot&&0===t.buttons&&this.mouseUp(e,t),[]},t.prototype.mouseUp=function(e,t){return this.lastScrollPosition=void 0,[]},t}(r.MouseListener);t.ScrollMouseListener=b},d084:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("3a92");function i(e,t){for(var o in e)e.hasOwnProperty(o)&&t(o,e[o])}t.forEachMatch=i;var r=function(){function e(){}return e.prototype.match=function(e,t){var o={};return this.matchLeft(e,o),this.matchRight(t,o),o},e.prototype.matchLeft=function(e,t,o){var i=t[e.id];if(void 0!==i?(i.left=e,i.leftParentId=o):(i={left:e,leftParentId:o},t[e.id]=i),n.isParent(e))for(var r=0,a=e.children;r=0&&(void 0!==a.right&&a.leftParentId===a.rightParentId?(c.children.splice(p,1,a.right),s=!0):c.children.splice(p,1)),o.remove(a.left)}}if(!s&&void 0!==a.right&&void 0!==a.rightParentId){var l=o.getById(a.rightParentId);void 0!==l&&(void 0===l.children&&(l.children=[]),l.children.push(a.right))}}}t.ModelMatcher=r,t.applyMatches=a},d14a:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("a406"),a=o("0a28"),s=new n.ContainerModule(function(e){e(a.CommandPalette).toSelf().inSingletonScope(),e(i.TYPES.IUIExtension).toService(a.CommandPalette),e(i.TYPES.KeyListener).to(a.CommandPaletteKeyListener),e(r.CommandPaletteActionProviderRegistry).toSelf().inSingletonScope(),e(i.TYPES.ICommandPaletteActionProviderRegistry).toService(r.CommandPaletteActionProviderRegistry)});t.default=s},d17b:function(e,t,o){e.exports=o("e372").Transform},d18c:function(e,t,o){"use strict";var n=o("943d"),i=o.n(n);i.a},d204:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("1979"),i=o("66d7");function r(e,t){return function(o,r,a){var s=new n.Metadata(e,t);"number"===typeof a?i.tagParameter(o,r,a,s):i.tagProperty(o,r,s)}}t.tagged=r},d485:function(e,t,o){e.exports=r;var n=o("faa1").EventEmitter,i=o("3fb5");function r(){n.call(this)}i(r,n),r.Readable=o("e372"),r.Writable=o("2c63"),r.Duplex=o("0960"),r.Transform=o("d17b"),r.PassThrough=o("c2ae"),r.Stream=r,r.prototype.pipe=function(e,t){var o=this;function i(t){e.writable&&!1===e.write(t)&&o.pause&&o.pause()}function r(){o.readable&&o.resume&&o.resume()}o.on("data",i),e.on("drain",r),e._isStdio||t&&!1===t.end||(o.on("end",s),o.on("close",c));var a=!1;function s(){a||(a=!0,e.end())}function c(){a||(a=!0,"function"===typeof e.destroy&&e.destroy())}function p(e){if(l(),0===n.listenerCount(this,"error"))throw e}function l(){o.removeListener("data",i),e.removeListener("drain",r),o.removeListener("end",s),o.removeListener("close",c),o.removeListener("error",p),e.removeListener("error",p),o.removeListener("end",l),o.removeListener("close",l),e.removeListener("close",l)}return o.on("error",p),e.on("error",p),o.on("end",l),o.on("close",l),e.on("close",l),e.emit("pipe",o),e}},d60a:function(e,t){e.exports=function(e){return e&&"object"===typeof e&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},d675:function(e,t,o){},d6e2:function(e,t,o){"use strict";var n=o("bab1"),i=o.n(n);i.a},d741:function(e,t,o){},d752:function(e,t,o){var n=o("7726").parseFloat,i=o("aa77").trim;e.exports=1/n(o("fdef")+"-0")!==-1/0?function(e){var t=i(String(e),3),o=n(t);return 0===o&&"-"==t.charAt(0)?-0:o}:n},d8db:function(e,t){var o={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==o.call(e)}},d8f5:function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o("e1c6"),s=o("dd02"),c=o("3585"),p=o("869e"),l=o("b7b8"),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var o;return n(t,e),o=t,Object.defineProperty(t.prototype,"kind",{get:function(){return o.KIND},enumerable:!0,configurable:!0}),t.prototype.getOptions=function(e){return{minimalPointDistance:2,removeAngleThreshold:.1,standardDistance:20,selfEdgeOffset:.25}},t.prototype.route=function(e){var t,o,n=e.source,i=e.target;if(void 0===n||void 0===i)return[];var r=this.getOptions(e),a=e.routingPoints.length>0?e.routingPoints:[];this.cleanupRoutingPoints(e,a,!1,!1);var c=void 0!==a?a.length:0;if(0===c){var p=s.center(i.bounds);t=this.getTranslatedAnchor(n,p,i.parent,e,e.sourceAnchorCorrection);var l=s.center(n.bounds);o=this.getTranslatedAnchor(i,l,n.parent,e,e.targetAnchorCorrection)}else{var u=a[0];t=this.getTranslatedAnchor(n,u,e.parent,e,e.sourceAnchorCorrection);var b=a[c-1];o=this.getTranslatedAnchor(i,b,e.parent,e,e.targetAnchorCorrection)}var d=[];d.push({kind:"source",x:t.x,y:t.y});for(var M=0;M0&&M=r.minimalPointDistance+(e.sourceAnchorCorrection||0)||M===c-1&&s.maxDistance(h,o)>=r.minimalPointDistance+(e.targetAnchorCorrection||0))&&d.push({kind:"linear",x:h.x,y:h.y,pointIndex:M})}return d.push({kind:"target",x:o.x,y:o.y}),this.filterEditModeHandles(d,e,r)},t.prototype.filterEditModeHandles=function(e,t,o){if(0===t.children.length)return e;var n=0,i=function(){var i=e[n];if(void 0!==i.pointIndex){var r=t.children.find(function(e){return e instanceof c.SRoutingHandle&&"junction"===e.kind&&e.pointIndex===i.pointIndex});if(void 0!==r&&r.editMode&&n>0&&nr)&&e.pointIndex++}),o.addHandle(e,"line","volatile-routing-point",r),o.addHandle(e,"line","volatile-routing-point",r+1),r++),r>=0&&r-1?setImmediate:i.nextTick;A.WritableState=O;var c=Object.create(o("3a7c"));c.inherits=o("3fb5");var p={deprecate:o("b7d1")},l=o("429b"),u=o("8707").Buffer,b=("undefined"!==typeof n?n:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};function d(e){return u.from(e)}function M(e){return u.isBuffer(e)||e instanceof b}var h,f=o("4681");function z(){}function O(e,t){a=a||o("b19a"),e=e||{};var n=t instanceof a;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,s=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(s||0===s)?s:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var p=!1===e.decodeStrings;this.decodeStrings=!p,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){R(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}function A(e){if(a=a||o("b19a"),!h.call(A,this)&&!(this instanceof a))return new A(e);this._writableState=new O(e,this),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),l.call(this)}function m(e,t){var o=new Error("write after end");e.emit("error",o),i.nextTick(t,o)}function v(e,t,o,n){var r=!0,a=!1;return null===o?a=new TypeError("May not write null values to stream"):"string"===typeof o||void 0===o||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),i.nextTick(n,a),r=!1),r}function g(e,t,o){return e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=u.from(t,o)),t}function y(e,t,o,n,i,r){if(!o){var a=g(t,n,i);n!==a&&(o=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var c=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(A.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),A.prototype._write=function(e,t,o){o(new Error("_write() is not implemented"))},A.prototype._writev=null,A.prototype.end=function(e,t,o){var n=this._writableState;"function"===typeof e?(o=e,e=null,t=null):"function"===typeof t&&(o=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||N(this,n,o)},Object.defineProperty(A.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),A.prototype.destroy=f.destroy,A.prototype._undestroy=f.undestroy,A.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,o("4362"),o("c8ba"))},dd02:function(e,t,o){"use strict";function n(e,t){return{x:e.x+t.x,y:e.y+t.y}}function i(e,t){return{x:e.x-t.x,y:e.y-t.y}}function r(e){return e.width>=0&&e.height>=0}function a(e){return"x"in e&&"y"in e&&"width"in e&&"height"in e}function s(e,o){if(!r(e))return r(o)?o:t.EMPTY_BOUNDS;if(!r(o))return e;var n=Math.min(e.x,o.x),i=Math.min(e.y,o.y),a=Math.max(e.x+(e.width>=0?e.width:0),o.x+(o.width>=0?o.width:0)),s=Math.max(e.y+(e.height>=0?e.height:0),o.y+(o.height>=0?o.height:0));return{x:n,y:i,width:a-n,height:s-i}}function c(e,t){return{x:e.x+t.x,y:e.y+t.y,width:e.width,height:e.height}}function p(e){return{x:e.x+(e.width>=0?.5*e.width:0),y:e.y+(e.height>=0?.5*e.height:0)}}function l(e,t){var o={x:e.x>t.x?t.x:e.x,y:e.y>t.y?t.y:e.y,width:Math.abs(t.x-e.x),height:Math.abs(t.y-e.y)};return p(o)}function u(e,t){return t.x>=e.x&&t.x<=e.x+e.width&&t.y>=e.y&&t.y<=e.y+e.height}function b(e,t){var o=t.x-e.x,n=t.y-e.y;return Math.sqrt(o*o+n*n)}function d(e,t){return Math.abs(t.x-e.x)+Math.abs(t.y-e.y)}function M(e,t){return Math.max(Math.abs(t.x-e.x),Math.abs(t.y-e.y))}function h(e){return Math.atan2(e.y,e.x)}function f(e,t){var o=Math.sqrt((e.x*e.x+e.y*e.y)*(t.x*t.x+t.y*t.y));if(isNaN(o)||0===o)return NaN;var n=e.x*t.x+e.y*t.y;return Math.acos(n/o)}function z(e,t,o){var r=i(t,e),a=O(r),s={x:a.x*o,y:a.y*o};return n(e,s)}function O(e){var o=A(e);return 0===o||1===o?t.ORIGIN_POINT:{x:e.x/o,y:e.y/o}}function A(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}function m(e){return 180*e/Math.PI}function v(e){return e*Math.PI/180}function g(e,t){return Math.abs(e-t)<.001}function y(e,t,o){return{x:(1-o)*e.x+o*t.x,y:(1-o)*e.y+o*t.y}}Object.defineProperty(t,"__esModule",{value:!0}),t.ORIGIN_POINT=Object.freeze({x:0,y:0}),t.add=n,t.subtract=i,t.EMPTY_DIMENSION=Object.freeze({width:-1,height:-1}),t.isValidDimension=r,t.EMPTY_BOUNDS=Object.freeze({x:0,y:0,width:-1,height:-1}),t.isBounds=a,t.combine=s,t.translate=c,t.center=p,t.centerOfLine=l,t.includes=u,function(e){e[e["left"]=0]="left",e[e["right"]=1]="right",e[e["up"]=2]="up",e[e["down"]=3]="down"}(t.Direction||(t.Direction={})),t.euclideanDistance=b,t.manhattanDistance=d,t.maxDistance=M,t.angleOfPoint=h,t.angleBetweenPoints=f,t.shiftTowards=z,t.normalize=O,t.magnitude=A,t.toDegrees=m,t.toRadians=v,t.almostEquals=g,t.linear=y;var q=function(){function e(e){this.bounds=e}return Object.defineProperty(e.prototype,"topPoint",{get:function(){return{x:this.bounds.x+this.bounds.width/2,y:this.bounds.y}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rightPoint",{get:function(){return{x:this.bounds.x+this.bounds.width,y:this.bounds.y+this.bounds.height/2}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomPoint",{get:function(){return{x:this.bounds.x+this.bounds.width/2,y:this.bounds.y+this.bounds.height}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"leftPoint",{get:function(){return{x:this.bounds.x,y:this.bounds.y+this.bounds.height/2}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topRightSideLine",{get:function(){return new _(this.topPoint,this.rightPoint)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topLeftSideLine",{get:function(){return new _(this.topPoint,this.leftPoint)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomRightSideLine",{get:function(){return new _(this.bottomPoint,this.rightPoint)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomLeftSideLine",{get:function(){return new _(this.bottomPoint,this.leftPoint)},enumerable:!0,configurable:!0}),e.prototype.closestSideLine=function(e){var t=p(this.bounds);return e.x>t.x?e.y>t.y?this.bottomRightSideLine:this.topRightSideLine:e.y>t.y?this.bottomLeftSideLine:this.topLeftSideLine},e}();t.Diamond=q;var _=function(){function e(e,t){this.p1=e,this.p2=t}return Object.defineProperty(e.prototype,"a",{get:function(){return this.p1.y-this.p2.y},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"b",{get:function(){return this.p2.x-this.p1.x},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"c",{get:function(){return this.p2.x*this.p1.y-this.p1.x*this.p2.y},enumerable:!0,configurable:!0}),e}();function W(e,t){return{x:(e.c*t.b-t.c*e.b)/(e.a*t.b-t.a*e.b),y:(e.a*t.c-t.a*e.c)/(e.a*t.b-t.a*e.b)}}t.PointToPointLine=_,t.intersection=W},dd7b:function(e,t,o){"use strict";function n(e,t,o,n,i){var r=void 0===t?void 0:t.key;return{sel:e,data:t,children:o,text:n,elm:i,key:r}}o.r(t);var i=n,r=Array.isArray;function a(e){return"string"===typeof e||"number"===typeof e}function s(e){return document.createElement(e)}function c(e,t){return document.createElementNS(e,t)}function p(e){return document.createTextNode(e)}function l(e){return document.createComment(e)}function u(e,t,o){e.insertBefore(t,o)}function b(e,t){e.removeChild(t)}function d(e,t){e.appendChild(t)}function M(e){return e.parentNode}function h(e){return e.nextSibling}function f(e){return e.tagName}function z(e,t){e.textContent=t}function O(e){return e.textContent}function A(e){return 1===e.nodeType}function m(e){return 3===e.nodeType}function v(e){return 8===e.nodeType}var g={createElement:s,createElementNS:c,createTextNode:p,createComment:l,insertBefore:u,removeChild:b,appendChild:d,parentNode:M,nextSibling:h,tagName:f,setTextContent:z,getTextContent:O,isElement:A,isText:m,isComment:v},y=g;function q(e,t,o){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==o&&void 0!==t)for(var n=0;n0?l:p.length,M=u>0?u:p.length,h=-1!==l||-1!==u?p.slice(0,Math.min(d,M)):p,f=e.elm=S(n)&&S(o=n.ns)?c.createElementNS(o,h):c.createElement(h);for(d0&&f.setAttribute("class",p.slice(M+1).replace(/\./g," ")),o=0;ou?(s=null==o[O+1]?null:o[O+1].elm,d(e,s,o,l,O,n)):h(e,t,p,u))}function z(e,t,o){var n,i;S(n=t.data)&&S(i=n.hook)&&S(n=i.prepatch)&&n(e,t);var r=t.elm=e.elm,a=e.children,p=t.children;if(e!==t){if(void 0!==t.data){for(n=0;n=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o("e1c6"),s=o("6923"),c=o("1590"),p=o("1417"),l=o("b669"),u=function(){function e(){this.tools=[],this.defaultTools=[],this.actives=[]}return Object.defineProperty(e.prototype,"managedTools",{get:function(){return this.defaultTools.concat(this.tools)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeTools",{get:function(){return this.actives},enumerable:!0,configurable:!0}),e.prototype.disableActiveTools=function(){this.actives.forEach(function(e){return e.disable()}),this.actives.splice(0,this.actives.length)},e.prototype.enableDefaultTools=function(){this.enable(this.defaultTools.map(function(e){return e.id}))},e.prototype.enable=function(e){var t=this;this.disableActiveTools();var o=e.map(function(e){return t.tool(e)});o.forEach(function(e){void 0!==e&&(e.enable(),t.actives.push(e))})},e.prototype.tool=function(e){return this.managedTools.find(function(t){return t.id===e})},e.prototype.registerDefaultTools=function(){for(var e=[],t=0;t=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var r=o("e1c6"),a=o("302f"),s=o("3a92"),c=o("3623"),p=o("47b7"),l=o("38e8"),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.defaultGraphFeatures=a.createFeatureSet(p.SGraph.DEFAULT_FEATURES),t.defaultNodeFeatures=a.createFeatureSet(p.SNode.DEFAULT_FEATURES),t.defaultPortFeatures=a.createFeatureSet(p.SPort.DEFAULT_FEATURES),t.defaultEdgeFeatures=a.createFeatureSet(p.SEdge.DEFAULT_FEATURES),t.defaultLabelFeatures=a.createFeatureSet(p.SLabel.DEFAULT_FEATURES),t.defaultCompartmentFeatures=a.createFeatureSet(p.SCompartment.DEFAULT_FEATURES),t.defaultButtonFeatures=a.createFeatureSet(l.SButton.DEFAULT_FEATURES),t}return n(t,e),t.prototype.createElement=function(e,t){var o;if(this.registry.hasKey(e.type)){var n=this.registry.get(e.type,void 0);if(!(n instanceof s.SChildElement))throw new Error("Element with type "+e.type+" was expected to be an SChildElement.");o=n}else this.isNodeSchema(e)?(o=new p.SNode,o.features=this.defaultNodeFeatures):this.isPortSchema(e)?(o=new p.SPort,o.features=this.defaultPortFeatures):this.isEdgeSchema(e)?(o=new p.SEdge,o.features=this.defaultEdgeFeatures):this.isLabelSchema(e)?(o=new p.SLabel,o.features=this.defaultLabelFeatures):this.isCompartmentSchema(e)?(o=new p.SCompartment,o.features=this.defaultCompartmentFeatures):this.isButtonSchema(e)?(o=new l.SButton,o.features=this.defaultButtonFeatures):o=new s.SChildElement;return this.initializeChild(o,e,t)},t.prototype.createRoot=function(e){var t;if(this.registry.hasKey(e.type)){var o=this.registry.get(e.type,void 0);if(!(o instanceof s.SModelRoot))throw new Error("Element with type "+e.type+" was expected to be an SModelRoot.");t=o}else this.isGraphSchema(e)?(t=new p.SGraph,t.features=this.defaultGraphFeatures):t=new s.SModelRoot;return this.initializeRoot(t,e)},t.prototype.isGraphSchema=function(e){return"graph"===c.getBasicType(e)},t.prototype.isNodeSchema=function(e){return"node"===c.getBasicType(e)},t.prototype.isPortSchema=function(e){return"port"===c.getBasicType(e)},t.prototype.isEdgeSchema=function(e){return"edge"===c.getBasicType(e)},t.prototype.isLabelSchema=function(e){return"label"===c.getBasicType(e)},t.prototype.isCompartmentSchema=function(e){return"comp"===c.getBasicType(e)},t.prototype.isButtonSchema=function(e){return"button"===c.getBasicType(e)},t=i([r.injectable()],t),t}(a.SModelFactory);t.SGraphFactory=u},e00b:function(e,t,o){"use strict";var n=function(){var e,t,o=this,n=o.$createElement,i=o._self._c||n;return null!==o.dataSummary?i("div",{staticClass:"hv-histogram-container",class:"hv-histogram-"+o.direction,style:(e={},e["min-"+o.colormapStyle]=Math.max(4*o.dataSummary.histogram.length,256)+"px",e),on:{mouseleave:function(e){o.tooltips&&o.setInfoShowed(null)}}},[o.isHorizontal?[o.hasHistogram?i("div",{staticClass:"hv-histogram",class:[null!==o.colormap?"k-with-colormap":""]},o._l(o.dataSummary.histogram,function(e,t){return i("div",{key:t,staticClass:"hv-histogram-col",style:{width:o.histogramWidth+"%"},on:{mouseover:function(e){o.infoShowed={index:t,categories:o.dataSummary.categories,values:o.dataSummary.histogram}}}},[i("q-tooltip",{attrs:{offset:[0,10],delay:500}},[o._v(o._s(o.infoShowed.values[o.infoShowed.index]))]),i("div",{staticClass:"hv-histogram-val",style:{height:o.getHistogramDataHeight(e)+"%"}})],1)})):i("div",{staticClass:"hv-histogram-nodata"},[o._v(o._s(o.$t("label.noHistogramData")))])]:o._e(),o.dataSummary.categories.length>0?i("div",{staticClass:"hv-colormap-container",class:["hv-colormap-container-"+o.direction]},[null!==o.colormap?i("div",{staticClass:"hv-colormap",class:["hv-colormap-"+o.direction],style:(t={},t["min-"+o.colormapStyle]=Math.min(o.colormap.colors.length,256)+"px",t)},o._l(o.colormap.colors,function(e,t){var n;return i("div",{key:t,staticClass:"hv-colormap-col",style:(n={},n[o.colormapStyle]=o.colormapWidth+"%",n["background-color"]=e,n),on:{mouseover:function(e){o.tooltips&&(o.infoShowed={index:t,categories:[],values:o.colormap.labels})}}})})):o._e(),o.legend&&o.dataSummary.categories.length>0?i("div",{staticClass:"hv-legend hv-categories full-height"},[o._l(o.dataSummary.categories,function(e,t){return i("div",{key:t,staticClass:"hv-category",style:{"line-height":o.calculateFontSize()+"px","font-size":o.calculateFontSize()+"px"}},[o.dataSummary.categorized?i("span",{class:{"hv-zero-category":0===o.dataSummary.histogram[t]}},[o._v(o._s(e))]):i("span",[o._v(o._s(e.split(" ")[0]))])])}),o.dataSummary.categorized?o._e():i("div",{staticClass:"hv-category"},[o._v(o._s(o.histogramMax))])],2):o._e()]):o._e(),o.tooltips?i("div",{staticClass:"hv-data-details-container",class:{"hv-details-nodata":!o.hasHistogram&&null==o.colormap}},[i("div",{staticClass:"hv-histogram-min hv-data-details",on:{mouseover:function(e){o.tooltipIt(e,"q-hmin"+o.id+"-"+o.infoShowed.index)}}},[o._v(o._s(o.histogramMin)+"\n "),i("q-tooltip",{directives:[{name:"show",rawName:"v-show",value:o.needTooltip("q-hmin"+o.id+"-"+o.infoShowed.index),expression:"needTooltip(`q-hmin${id}-${infoShowed.index}`)"}],staticClass:"hv-tooltip"},[o._v(o._s(o.histogramMin))])],1),-1===o.infoShowed.index?[i("div",{staticClass:"hv-data-nodetail hv-data-details"},[o._v(o._s(o.$t("label.noInfoValues")))])]:[i("div",{staticClass:"hv-data-value hv-data-details",on:{mouseover:function(e){o.tooltipIt(e,"q-hdata"+o.id+"-"+o.infoShowed.index)}}},[o._v("\n "+o._s(o.infoShowedText)+"\n "),i("q-tooltip",{directives:[{name:"show",rawName:"v-show",value:o.needTooltip("q-hdata"+o.id+"-"+o.infoShowed.index),expression:"needTooltip(`q-hdata${id}-${infoShowed.index}`)"}],staticClass:"hv-tooltip",attrs:{anchor:"center right",self:"center left",offset:[10,10]}},[o._v("\n "+o._s(o.infoShowedText)+"\n ")])],1)],i("div",{staticClass:"hv-histogram-max hv-data-details",on:{mouseover:function(e){o.tooltipIt(e,"q-hmax"+o.id+"-"+o.infoShowed.index)}}},[o._v(o._s(o.histogramMax)+"\n "),i("q-tooltip",{directives:[{name:"show",rawName:"v-show",value:o.needTooltip("q-hmax"+o.id+"-"+o.infoShowed.index),expression:"needTooltip(`q-hmax${id}-${infoShowed.index}`)"}],staticClass:"hv-tooltip"},[o._v(o._s(o.histogramMax))])],1)],2):o._e()],2):o._e()},i=[];n._withStripped=!0;var r=o("3156"),a=o.n(r),s=(o("ac6a"),o("cadf"),o("2cee")),c=o("7cca"),p=o("abcf"),l=p["b"].height,u={name:"HistogramViewer",props:{dataSummary:{type:Object,required:!0},colormap:Object,id:{type:String,default:""},direction:{type:String,default:"horizontal",validator:function(e){return-1!==["horizontal","vertical"].indexOf(e)}},tooltips:{type:Boolean,default:!0},legend:{type:Boolean,default:!1}},mixins:[s["a"]],data:function(){return{infoShowed:{index:-1,categories:[],values:[]}}},computed:{hasHistogram:function(){return this.dataSummary.histogram.length>0},isHorizontal:function(){return"horizontal"===this.direction},maxHistogramValue:function(){return Math.max.apply(null,this.dataSummary.histogram)},histogramWidth:function(){return 100/this.dataSummary.histogram.length},histogramMin:function(){return"NaN"===this.dataSummary.minValue||this.dataSummary.categorized?"":Math.round(100*this.dataSummary.minValue)/100},histogramMax:function(){return"NaN"===this.dataSummary.maxValue||this.dataSummary.categorized?"":Math.round(100*this.dataSummary.maxValue)/100},colormapWidth:function(){return 100/this.colormap.colors.length},infoShowedText:function(){var e;return this.infoShowed.categories.length>0&&(e=this.infoShowed.categories[this.infoShowed.index],"undefined"!==typeof e&&null!==e&&""!==e)?e:this.infoShowed.values.length>0&&(e=this.infoShowed.values[this.infoShowed.index],"undefined"!==typeof e&&null!==e&&""!==e)?e:""},colormapStyle:function(){return"horizontal"===this.direction?"width":"height"},categoryHeight:function(){return console.warn(100/this.dataSummary.categories.length+(this.dataSummary.categorized?0:2)),100/(this.dataSummary.categories.length+(this.dataSummary.categorized?0:2))}},methods:{getHistogramDataHeight:function(e){return 100*e/this.maxHistogramValue},setInfoShowed:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.infoShowed=null===e?{index:-1,categories:[],values:[]}:a()({},e)},calculateFontSize:function(){var e=document.querySelector(".hv-categories");if(e){var t=l(e);return Math.min(Math.max(t/this.dataSummary.categories.length,6),12)}return 12}},mounted:function(){this.$eventBus.$on(c["h"].SHOW_DATA_INFO,this.setInfoShowed)},beforeDestroy:function(){this.$eventBus.$off(c["h"].SHOW_DATA_INFO,this.setInfoShowed)}},b=u,d=(o("4c12"),o("2877")),M=Object(d["a"])(b,n,i,!1,null,null,null);M.options.__file="HistogramViewer.vue";t["a"]=M.exports},e0d9:function(e,t,o){"use strict";var n=o("ce70"),i=o.n(n);i.a},e1c6:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("c5f4");t.METADATA_KEY=n;var i=o("f457");t.Container=i.Container;var r=o("155f");t.BindingScopeEnum=r.BindingScopeEnum,t.BindingTypeEnum=r.BindingTypeEnum,t.TargetTypeEnum=r.TargetTypeEnum;var a=o("771c");t.AsyncContainerModule=a.AsyncContainerModule,t.ContainerModule=a.ContainerModule;var s=o("719e");t.injectable=s.injectable;var c=o("d204");t.tagged=c.tagged;var p=o("6730");t.named=p.named;var l=o("624f");t.inject=l.inject,t.LazyServiceIdentifer=l.LazyServiceIdentifer;var u=o("8d8c");t.optional=u.optional;var b=o("9f62");t.unmanaged=b.unmanaged;var d=o("8c88");t.multiInject=d.multiInject;var M=o("a1a5");t.targetName=M.targetName;var h=o("4a4f");t.postConstruct=h.postConstruct;var f=o("c278");t.MetadataReader=f.MetadataReader;var z=o("77d3");t.id=z.id;var O=o("66d7");t.decorate=O.decorate;var A=o("451f");t.traverseAncerstors=A.traverseAncerstors,t.taggedConstraint=A.taggedConstraint,t.namedConstraint=A.namedConstraint,t.typeConstraint=A.typeConstraint;var m=o("ba33");t.getServiceIdentifierAsString=m.getServiceIdentifierAsString;var v=o("efc5");t.multiBindToService=v.multiBindToService},e1cb:function(e,t,o){"use strict";function n(e){return e.hasFeature(t.nameFeature)}function i(e){return n(e)?e.name:void 0}Object.defineProperty(t,"__esModule",{value:!0}),t.nameFeature=Symbol("nameableFeature"),t.isNameable=n,t.name=i},e2d7:function(e,t,o){"use strict";var n=o("8ef3"),i=o.n(n);i.a},e325:function(t,o,n){"use strict";var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),o=t.length>>>0;if("function"!==typeof e)throw new TypeError("predicate must be a function");var n=arguments[1],i=0;while(i>>0;if("function"!==typeof e)throw new TypeError("predicate must be a function");var n=arguments[1],i=0;while(i>>0;if(0===n)return!1;var i=0|t,r=Math.max(i>=0?i:n-Math.abs(i),0);function a(e,t){return e===t||"number"===typeof e&&"number"===typeof t&&isNaN(e)&&isNaN(t)}while(ro?(t=e-o,this.element.style.marginLeft=-t+"px"):this.element.style.marginLeft=0,this.scrollLeft=e,this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.scrollHorizontal()},a.prototype.generateColumnsFromRowData=function(e){var t,o,n=[],i=this.table.options.autoColumnsDefinitions;if(e&&e.length){for(var a in t=e[0],t){var s={field:a,title:a},c=t[a];switch("undefined"===typeof c?"undefined":r(c)){case"undefined":o="string";break;case"boolean":o="boolean";break;case"object":o=Array.isArray(c)?"array":"string";break;default:o=isNaN(c)||""===c?c.match(/((^[0-9]+[a-z]+)|(^[a-z]+[0-9]+))+$/i)?"alphanum":"string":"number";break}s.sorter=o,n.push(s)}if(i)switch("undefined"===typeof i?"undefined":r(i)){case"function":this.table.options.columns=i.call(this.table,n);break;case"object":Array.isArray(i)?n.forEach(function(e){var t=i.find(function(t){return t.field===e.field});t&&Object.assign(e,t)}):n.forEach(function(e){i[e.field]&&Object.assign(e,i[e.field])}),this.table.options.columns=n;break}else this.table.options.columns=n;this.setColumns(this.table.options.columns)}},a.prototype.setColumns=function(e,t){var o=this;while(o.headersElement.firstChild)o.headersElement.removeChild(o.headersElement.firstChild);o.columns=[],o.columnsByIndex=[],o.columnsByField={},o.table.modExists("frozenColumns")&&o.table.modules.frozenColumns.reset(),e.forEach(function(e,t){o._addColumn(e)}),o._reIndexColumns(),o.table.options.responsiveLayout&&o.table.modExists("responsiveLayout",!0)&&o.table.modules.responsiveLayout.initialize(),this.table.options.virtualDomHoz&&this.table.vdomHoz.reinitialize(!1,!0),o.redraw(!0)},a.prototype._addColumn=function(e,t,o){var n=new c(e,this),i=n.getElement(),r=o?this.findColumnIndex(o):o;if(o&&r>-1){var a=this.columns.indexOf(o.getTopColumn()),s=o.getElement();t?(this.columns.splice(a,0,n),s.parentNode.insertBefore(i,s)):(this.columns.splice(a+1,0,n),s.parentNode.insertBefore(i,s.nextSibling))}else t?(this.columns.unshift(n),this.headersElement.insertBefore(n.getElement(),this.headersElement.firstChild)):(this.columns.push(n),this.headersElement.appendChild(n.getElement())),n.columnRendered();return n},a.prototype.registerColumnField=function(e){e.definition.field&&(this.columnsByField[e.definition.field]=e)},a.prototype.registerColumnPosition=function(e){this.columnsByIndex.push(e)},a.prototype._reIndexColumns=function(){this.columnsByIndex=[],this.columns.forEach(function(e){e.reRegisterPosition()})},a.prototype._verticalAlignHeaders=function(){var e=this,t=0;e.columns.forEach(function(e){var o;e.clearVerticalAlign(),o=e.getHeight(),o>t&&(t=o)}),e.columns.forEach(function(o){o.verticalAlign(e.table.options.columnHeaderVertAlign,t)}),e.rowManager.adjustTableSize()},a.prototype.findColumn=function(e){var t=this;if("object"!=("undefined"===typeof e?"undefined":r(e)))return this.columnsByField[e]||!1;if(e instanceof c)return e;if(e instanceof s)return e._getSelf()||!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement){var o=t.columns.find(function(t){return t.element===e});return o||!1}return!1},a.prototype.getColumnByField=function(e){return this.columnsByField[e]},a.prototype.getColumnsByFieldRoot=function(e){var t=this,o=[];return Object.keys(this.columnsByField).forEach(function(n){var i=n.split(".")[0];i===e&&o.push(t.columnsByField[n])}),o},a.prototype.getColumnByIndex=function(e){return this.columnsByIndex[e]},a.prototype.getFirstVisibileColumn=function(e){e=this.columnsByIndex.findIndex(function(e){return e.visible});return e>-1&&this.columnsByIndex[e]},a.prototype.getColumns=function(){return this.columns},a.prototype.findColumnIndex=function(e){return this.columnsByIndex.findIndex(function(t){return e===t})},a.prototype.getRealColumns=function(){return this.columnsByIndex},a.prototype.traverse=function(e){var t=this;t.columnsByIndex.forEach(function(t,o){e(t,o)})},a.prototype.getDefinitions=function(e){var t=this,o=[];return t.columnsByIndex.forEach(function(t){(!e||e&&t.visible)&&o.push(t.getDefinition())}),o},a.prototype.getDefinitionTree=function(){var e=this,t=[];return e.columns.forEach(function(e){t.push(e.getDefinition(!0))}),t},a.prototype.getComponents=function(e){var t=this,o=[],n=e?t.columns:t.columnsByIndex;return n.forEach(function(e){o.push(e.getComponent())}),o},a.prototype.getWidth=function(){var e=0;return this.columnsByIndex.forEach(function(t){t.visible&&(e+=t.getWidth())}),e},a.prototype.moveColumn=function(e,t,o){this.moveColumnActual(e,t,o),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.initialize(),this.table.modExists("columnCalcs")&&this.table.modules.columnCalcs.recalc(this.table.rowManager.activeRows),t.element.parentNode.insertBefore(e.element,t.element),o&&t.element.parentNode.insertBefore(t.element,e.element),this._verticalAlignHeaders(),this.table.rowManager.reinitialize()},a.prototype.moveColumnActual=function(e,t,o){e.parent.isGroup?this._moveColumnInArray(e.parent.columns,e,t,o):this._moveColumnInArray(this.columns,e,t,o),this._moveColumnInArray(this.columnsByIndex,e,t,o,!0),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.initialize(),this.table.options.virtualDomHoz&&this.table.vdomHoz.reinitialize(!0),this.table.options.columnMoved&&this.table.options.columnMoved.call(this.table,e.getComponent(),this.table.columnManager.getComponents()),this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.columns&&this.table.modules.persistence.save("columns")},a.prototype._moveColumnInArray=function(e,t,o,n,i){var r,a=this,s=e.indexOf(t),c=[];s>-1&&(e.splice(s,1),r=e.indexOf(o),r>-1?n&&(r+=1):r=s,e.splice(r,0,t),i&&(this.table.options.dataTree&&this.table.modExists("dataTree",!0)&&this.table.rowManager.rows.forEach(function(e){c=c.concat(a.table.modules.dataTree.getTreeChildren(e,!1,!0))}),c=c.concat(this.table.rowManager.rows),c.forEach(function(e){if(e.cells.length){var t=e.cells.splice(s,1)[0];e.cells.splice(r,0,t)}})))},a.prototype.scrollToColumn=function(e,t,o){var n=this,i=0,r=0,a=0,s=e.getElement();return new Promise(function(c,p){if("undefined"===typeof t&&(t=n.table.options.scrollToColumnPosition),"undefined"===typeof o&&(o=n.table.options.scrollToColumnIfVisible),e.visible){switch(t){case"middle":case"center":a=-n.element.clientWidth/2;break;case"right":a=s.clientWidth-n.headersElement.clientWidth;break}if(!o&&(r=s.offsetLeft,r>0&&r+s.offsetWidthe.rowManager.element.clientHeight&&(t-=e.rowManager.element.offsetWidth-e.rowManager.element.clientWidth),this.columnsByIndex.forEach(function(n){var i,r,a;n.visible&&(i=n.definition.width||0,r="undefined"==typeof n.minWidth?e.table.options.columnMinWidth:parseInt(n.minWidth),a="string"==typeof i?i.indexOf("%")>-1?t/100*parseInt(i):parseInt(i):i,o+=a>r?a:r)}),o},a.prototype.addColumn=function(e,t,o){var n=this;return new Promise(function(i,r){var a=n._addColumn(e,t,o);n._reIndexColumns(),n.table.options.responsiveLayout&&n.table.modExists("responsiveLayout",!0)&&n.table.modules.responsiveLayout.initialize(),n.table.modExists("columnCalcs")&&n.table.modules.columnCalcs.recalc(n.table.rowManager.activeRows),n.redraw(!0),"fitColumns"!=n.table.modules.layout.getMode()&&a.reinitializeWidth(),n._verticalAlignHeaders(),n.table.rowManager.reinitialize(),n.table.options.virtualDomHoz&&n.table.vdomHoz.reinitialize(),i(a)})},a.prototype.deregisterColumn=function(e){var t,o=e.getField();o&&delete this.columnsByField[o],t=this.columnsByIndex.indexOf(e),t>-1&&this.columnsByIndex.splice(t,1),t=this.columns.indexOf(e),t>-1&&this.columns.splice(t,1),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.initialize(),this._verticalAlignHeaders(),this.redraw()},a.prototype.redraw=function(e){e&&(f.prototype.helpers.elVisible(this.element)&&this._verticalAlignHeaders(),this.table.rowManager.resetScroll(),this.table.rowManager.reinitialize()),["fitColumns","fitDataStretch"].indexOf(this.table.modules.layout.getMode())>-1?this.table.modules.layout.layout():e?this.table.modules.layout.layout():this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update(),this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.layout(),this.table.modExists("columnCalcs")&&this.table.modules.columnCalcs.recalc(this.table.rowManager.activeRows),e&&(this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.columns&&this.table.modules.persistence.save("columns"),this.table.modExists("columnCalcs")&&this.table.modules.columnCalcs.redraw()),this.table.footerManager.redraw()};var s=function(e){this._column=e,this.type="ColumnComponent"};s.prototype.getElement=function(){return this._column.getElement()},s.prototype.getDefinition=function(){return this._column.getDefinition()},s.prototype.getField=function(){return this._column.getField()},s.prototype.getCells=function(){var e=[];return this._column.cells.forEach(function(t){e.push(t.getComponent())}),e},s.prototype.getVisibility=function(){return console.warn("getVisibility function is deprecated, you should now use the isVisible function"),this._column.visible},s.prototype.isVisible=function(){return this._column.visible},s.prototype.show=function(){this._column.isGroup?this._column.columns.forEach(function(e){e.show()}):this._column.show()},s.prototype.hide=function(){this._column.isGroup?this._column.columns.forEach(function(e){e.hide()}):this._column.hide()},s.prototype.toggle=function(){this._column.visible?this.hide():this.show()},s.prototype.delete=function(){return this._column.delete()},s.prototype.getSubColumns=function(){var e=[];return this._column.columns.length&&this._column.columns.forEach(function(t){e.push(t.getComponent())}),e},s.prototype.getParentColumn=function(){return this._column.parent instanceof c&&this._column.parent.getComponent()},s.prototype._getSelf=function(){return this._column},s.prototype.scrollTo=function(){return this._column.table.columnManager.scrollToColumn(this._column)},s.prototype.getTable=function(){return this._column.table},s.prototype.headerFilterFocus=function(){this._column.table.modExists("filter",!0)&&this._column.table.modules.filter.setHeaderFilterFocus(this._column)},s.prototype.reloadHeaderFilter=function(){this._column.table.modExists("filter",!0)&&this._column.table.modules.filter.reloadHeaderFilter(this._column)},s.prototype.getHeaderFilterValue=function(){if(this._column.table.modExists("filter",!0))return this._column.table.modules.filter.getHeaderFilterValue(this._column)},s.prototype.setHeaderFilterValue=function(e){this._column.table.modExists("filter",!0)&&this._column.table.modules.filter.setHeaderFilterValue(this._column,e)},s.prototype.move=function(e,t){var o=this._column.table.columnManager.findColumn(e);o?this._column.table.columnManager.moveColumn(this._column,o,t):console.warn("Move Error - No matching column found:",o)},s.prototype.getNextColumn=function(){var e=this._column.nextColumn();return!!e&&e.getComponent()},s.prototype.getPrevColumn=function(){var e=this._column.prevColumn();return!!e&&e.getComponent()},s.prototype.updateDefinition=function(e){return this._column.updateDefinition(e)},s.prototype.getWidth=function(){return this._column.getWidth()},s.prototype.setWidth=function(e){var t;return t=!0===e?this._column.reinitializeWidth(!0):this._column.setWidth(e),this._column.table.options.virtualDomHoz&&this._column.table.vdomHoz.reinitialize(!0),t},s.prototype.validate=function(){return this._column.validate()};var c=function e(t,o){var n=this;this.table=o.table,this.definition=t,this.parent=o,this.type="column",this.columns=[],this.cells=[],this.element=this.createElement(),this.contentElement=!1,this.titleHolderElement=!1,this.titleElement=!1,this.groupElement=this.createGroupElement(),this.isGroup=!1,this.tooltip=!1,this.hozAlign="",this.vertAlign="",this.field="",this.fieldStructure="",this.getFieldValue="",this.setFieldValue="",this.titleFormatterRendered=!1,this.setField(this.definition.field),this.table.options.invalidOptionWarnings&&this.checkDefinition(),this.modules={},this.cellEvents={cellClick:!1,cellDblClick:!1,cellContext:!1,cellTap:!1,cellDblTap:!1,cellTapHold:!1,cellMouseEnter:!1,cellMouseLeave:!1,cellMouseOver:!1,cellMouseOut:!1,cellMouseMove:!1},this.width=null,this.widthStyled="",this.maxWidth=null,this.maxWidthStyled="",this.minWidth=null,this.minWidthStyled="",this.widthFixed=!1,this.visible=!0,this.component=null,this._mapDepricatedFunctionality(),t.columns?(this.isGroup=!0,t.columns.forEach(function(t,o){var i=new e(t,n);n.attachColumn(i)}),n.checkColumnVisibility()):o.registerColumnField(this),t.rowHandle&&!1!==this.table.options.movableRows&&this.table.modExists("moveRow")&&this.table.modules.moveRow.setHandle(!0),this._buildHeader(),this.bindModuleColumns()};c.prototype.createElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-col"),e.setAttribute("role","columnheader"),e.setAttribute("aria-sort","none"),e},c.prototype.createGroupElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-col-group-cols"),e},c.prototype.checkDefinition=function(){var e=this;Object.keys(this.definition).forEach(function(t){-1===e.defaultOptionList.indexOf(t)&&console.warn("Invalid column definition option in '"+(e.field||e.definition.title)+"' column:",t)})},c.prototype.setField=function(e){this.field=e,this.fieldStructure=e?this.table.options.nestedFieldSeparator?e.split(this.table.options.nestedFieldSeparator):[e]:[],this.getFieldValue=this.fieldStructure.length>1?this._getNestedData:this._getFlatData,this.setFieldValue=this.fieldStructure.length>1?this._setNestedData:this._setFlatData},c.prototype.registerColumnPosition=function(e){this.parent.registerColumnPosition(e)},c.prototype.registerColumnField=function(e){this.parent.registerColumnField(e)},c.prototype.reRegisterPosition=function(){this.isGroup?this.columns.forEach(function(e){e.reRegisterPosition()}):this.registerColumnPosition(this)},c.prototype._mapDepricatedFunctionality=function(){"undefined"!==typeof this.definition.hideInHtml&&(this.definition.htmlOutput=!this.definition.hideInHtml,console.warn("hideInHtml column definition property is deprecated, you should now use htmlOutput")),"undefined"!==typeof this.definition.align&&(this.definition.hozAlign=this.definition.align,console.warn("align column definition property is deprecated, you should now use hozAlign")),"undefined"!==typeof this.definition.downloadTitle&&(this.definition.titleDownload=this.definition.downloadTitle,console.warn("downloadTitle definition property is deprecated, you should now use titleDownload"))},c.prototype.setTooltip=function(){var e=this,t=e.definition,o=t.headerTooltip||!1===t.tooltip?t.headerTooltip:e.table.options.tooltipsHeader;o?!0===o?t.field?e.table.modules.localize.bind("columns|"+t.field,function(o){e.element.setAttribute("title",o||t.title)}):e.element.setAttribute("title",t.title):("function"==typeof o&&(o=o(e.getComponent()),!1===o&&(o="")),e.element.setAttribute("title",o)):e.element.setAttribute("title","")},c.prototype._buildHeader=function(){var e=this,t=e.definition;while(e.element.firstChild)e.element.removeChild(e.element.firstChild);t.headerVertical&&(e.element.classList.add("tabulator-col-vertical"),"flip"===t.headerVertical&&e.element.classList.add("tabulator-col-vertical-flip")),e.contentElement=e._bindEvents(),e.contentElement=e._buildColumnHeaderContent(),e.element.appendChild(e.contentElement),e.isGroup?e._buildGroupHeader():e._buildColumnHeader(),e.setTooltip(),e.table.options.resizableColumns&&e.table.modExists("resizeColumns")&&e.table.modules.resizeColumns.initializeColumn("header",e,e.element),t.headerFilter&&e.table.modExists("filter")&&e.table.modExists("edit")&&("undefined"!==typeof t.headerFilterPlaceholder&&t.field&&e.table.modules.localize.setHeaderFilterColumnPlaceholder(t.field,t.headerFilterPlaceholder),e.table.modules.filter.initializeColumn(e)),e.table.modExists("frozenColumns")&&e.table.modules.frozenColumns.initializeColumn(e),e.table.options.movableColumns&&!e.isGroup&&e.table.modExists("moveColumn")&&e.table.modules.moveColumn.initializeColumn(e),(t.topCalc||t.bottomCalc)&&e.table.modExists("columnCalcs")&&e.table.modules.columnCalcs.initializeColumn(e),e.table.modExists("persistence")&&e.table.modules.persistence.config.columns&&e.table.modules.persistence.initializeColumn(e),e.element.addEventListener("mouseenter",function(t){e.setTooltip()})},c.prototype._bindEvents=function(){var e,t,o,n=this,i=n.definition;"function"==typeof i.headerClick&&n.element.addEventListener("click",function(e){i.headerClick(e,n.getComponent())}),"function"==typeof i.headerDblClick&&n.element.addEventListener("dblclick",function(e){i.headerDblClick(e,n.getComponent())}),"function"==typeof i.headerContext&&n.element.addEventListener("contextmenu",function(e){i.headerContext(e,n.getComponent())}),"function"==typeof i.headerTap&&(o=!1,n.element.addEventListener("touchstart",function(e){o=!0},{passive:!0}),n.element.addEventListener("touchend",function(e){o&&i.headerTap(e,n.getComponent()),o=!1})),"function"==typeof i.headerDblTap&&(e=null,n.element.addEventListener("touchend",function(t){e?(clearTimeout(e),e=null,i.headerDblTap(t,n.getComponent())):e=setTimeout(function(){clearTimeout(e),e=null},300)})),"function"==typeof i.headerTapHold&&(t=null,n.element.addEventListener("touchstart",function(e){clearTimeout(t),t=setTimeout(function(){clearTimeout(t),t=null,o=!1,i.headerTapHold(e,n.getComponent())},1e3)},{passive:!0}),n.element.addEventListener("touchend",function(e){clearTimeout(t),t=null})),"function"==typeof i.cellClick&&(n.cellEvents.cellClick=i.cellClick),"function"==typeof i.cellDblClick&&(n.cellEvents.cellDblClick=i.cellDblClick),"function"==typeof i.cellContext&&(n.cellEvents.cellContext=i.cellContext),"function"==typeof i.cellMouseEnter&&(n.cellEvents.cellMouseEnter=i.cellMouseEnter),"function"==typeof i.cellMouseLeave&&(n.cellEvents.cellMouseLeave=i.cellMouseLeave),"function"==typeof i.cellMouseOver&&(n.cellEvents.cellMouseOver=i.cellMouseOver),"function"==typeof i.cellMouseOut&&(n.cellEvents.cellMouseOut=i.cellMouseOut),"function"==typeof i.cellMouseMove&&(n.cellEvents.cellMouseMove=i.cellMouseMove),"function"==typeof i.cellTap&&(n.cellEvents.cellTap=i.cellTap),"function"==typeof i.cellDblTap&&(n.cellEvents.cellDblTap=i.cellDblTap),"function"==typeof i.cellTapHold&&(n.cellEvents.cellTapHold=i.cellTapHold),"function"==typeof i.cellEdited&&(n.cellEvents.cellEdited=i.cellEdited),"function"==typeof i.cellEditing&&(n.cellEvents.cellEditing=i.cellEditing),"function"==typeof i.cellEditCancelled&&(n.cellEvents.cellEditCancelled=i.cellEditCancelled)},c.prototype._buildColumnHeader=function(){var e=this,t=this.definition,o=this.table;if(o.modExists("sort")&&o.modules.sort.initializeColumn(this,this.titleHolderElement),(t.headerContextMenu||t.headerClickMenu||t.headerMenu)&&o.modExists("menu")&&o.modules.menu.initializeColumnHeader(this),o.modExists("format")&&o.modules.format.initializeColumn(this),"undefined"!=typeof t.editor&&o.modExists("edit")&&o.modules.edit.initializeColumn(this),"undefined"!=typeof t.validator&&o.modExists("validate")&&o.modules.validate.initializeColumn(this),o.modExists("mutator")&&o.modules.mutator.initializeColumn(this),o.modExists("accessor")&&o.modules.accessor.initializeColumn(this),r(o.options.responsiveLayout)&&o.modExists("responsiveLayout")&&o.modules.responsiveLayout.initializeColumn(this),"undefined"!=typeof t.visible&&(t.visible?this.show(!0):this.hide(!0)),t.cssClass){var n=t.cssClass.split(" ");n.forEach(function(t){e.element.classList.add(t)})}t.field&&this.element.setAttribute("tabulator-field",t.field),this.setMinWidth("undefined"==typeof t.minWidth?this.table.options.columnMinWidth:parseInt(t.minWidth)),(t.maxWidth||this.table.options.columnMaxWidth)&&!1!==t.maxWidth&&this.setMaxWidth("undefined"==typeof t.maxWidth?this.table.options.columnMaxWidth:parseInt(t.maxWidth)),this.reinitializeWidth(),this.tooltip=this.definition.tooltip||!1===this.definition.tooltip?this.definition.tooltip:this.table.options.tooltips,this.hozAlign="undefined"==typeof this.definition.hozAlign?this.table.options.cellHozAlign:this.definition.hozAlign,this.vertAlign="undefined"==typeof this.definition.vertAlign?this.table.options.cellVertAlign:this.definition.vertAlign,this.titleElement.style.textAlign=this.definition.headerHozAlign||this.table.options.headerHozAlign},c.prototype._buildColumnHeaderContent=function(){this.definition,this.table;var e=document.createElement("div");return e.classList.add("tabulator-col-content"),this.titleHolderElement=document.createElement("div"),this.titleHolderElement.classList.add("tabulator-col-title-holder"),e.appendChild(this.titleHolderElement),this.titleElement=this._buildColumnHeaderTitle(),this.titleHolderElement.appendChild(this.titleElement),e},c.prototype._buildColumnHeaderTitle=function(){var e=this,t=e.definition,o=e.table,n=document.createElement("div");if(n.classList.add("tabulator-col-title"),t.editableTitle){var i=document.createElement("input");i.classList.add("tabulator-title-editor"),i.addEventListener("click",function(e){e.stopPropagation(),i.focus()}),i.addEventListener("change",function(){t.title=i.value,o.options.columnTitleChanged.call(e.table,e.getComponent())}),n.appendChild(i),t.field?o.modules.localize.bind("columns|"+t.field,function(e){i.value=e||t.title||" "}):i.value=t.title||" "}else t.field?o.modules.localize.bind("columns|"+t.field,function(o){e._formatColumnHeaderTitle(n,o||t.title||" ")}):e._formatColumnHeaderTitle(n,t.title||" ");return n},c.prototype._formatColumnHeaderTitle=function(e,t){var o,n,i,a,s,c=this;if(this.definition.titleFormatter&&this.table.modExists("format"))switch(o=this.table.modules.format.getFormatter(this.definition.titleFormatter),s=function(e){c.titleFormatterRendered=e},a={getValue:function(){return t},getElement:function(){return e}},i=this.definition.titleFormatterParams||{},i="function"===typeof i?i():i,n=o.call(this.table.modules.format,a,i,s),"undefined"===typeof n?"undefined":r(n)){case"object":n instanceof Node?e.appendChild(n):(e.innerHTML="",console.warn("Format Error - Title formatter has returned a type of object, the only valid formatter object return is an instance of Node, the formatter returned:",n));break;case"undefined":case"null":e.innerHTML="";break;default:e.innerHTML=n}else e.innerHTML=t},c.prototype._buildGroupHeader=function(){var e=this;if(this.element.classList.add("tabulator-col-group"),this.element.setAttribute("role","columngroup"),this.element.setAttribute("aria-title",this.definition.title),this.definition.cssClass){var t=this.definition.cssClass.split(" ");t.forEach(function(t){e.element.classList.add(t)})}(this.definition.headerContextMenu||this.definition.headerMenu)&&this.table.modExists("menu")&&this.table.modules.menu.initializeColumnHeader(this),this.titleElement.style.textAlign=this.definition.headerHozAlign||this.table.options.headerHozAlign,this.element.appendChild(this.groupElement)},c.prototype._getFlatData=function(e){return e[this.field]},c.prototype._getNestedData=function(e){for(var t,o=e,n=this.fieldStructure,i=n.length,r=0;r-1&&this.columns.splice(t,1),this.columns.length||this.delete()},c.prototype.setWidth=function(e){this.widthFixed=!0,this.setWidthActual(e)},c.prototype.setWidthActual=function(e){isNaN(e)&&(e=Math.floor(this.table.element.clientWidth/100*parseInt(e))),e=Math.max(this.minWidth,e),this.maxWidth&&(e=Math.min(this.maxWidth,e)),this.width=e,this.widthStyled=e?e+"px":"",this.element.style.width=this.widthStyled,this.isGroup||this.cells.forEach(function(e){e.setWidth()}),this.parent.isGroup&&this.parent.matchChildWidths(),this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.layout()},c.prototype.checkCellHeights=function(){var e=[];this.cells.forEach(function(t){t.row.heightInitialized&&(null!==t.row.getElement().offsetParent?(e.push(t.row),t.row.clearCellHeight()):t.row.heightInitialized=!1)}),e.forEach(function(e){e.calcHeight()}),e.forEach(function(e){e.setCellHeight()})},c.prototype.getWidth=function(){var e=0;return this.isGroup?this.columns.forEach(function(t){t.visible&&(e+=t.getWidth())}):e=this.width,e},c.prototype.getHeight=function(){return this.element.offsetHeight},c.prototype.setMinWidth=function(e){this.minWidth=e,this.minWidthStyled=e?e+"px":"",this.element.style.minWidth=this.minWidthStyled,this.cells.forEach(function(e){e.setMinWidth()})},c.prototype.setMaxWidth=function(e){this.maxWidth=e,this.maxWidthStyled=e?e+"px":"",this.element.style.maxWidth=this.maxWidthStyled,this.cells.forEach(function(e){e.setMaxWidth()})},c.prototype.delete=function(){var e=this;return new Promise(function(t,o){e.isGroup&&e.columns.forEach(function(e){e.delete()}),e.table.modExists("edit")&&e.table.modules.edit.currentCell.column===e&&e.table.modules.edit.cancelEdit();for(var n=e.cells.length,i=0;i-1&&this._nextVisibleColumn(e+1)},c.prototype._nextVisibleColumn=function(e){var t=this.table.columnManager.getColumnByIndex(e);return!t||t.visible?t:this._nextVisibleColumn(e+1)},c.prototype.prevColumn=function(){var e=this.table.columnManager.findColumnIndex(this);return e>-1&&this._prevVisibleColumn(e-1)},c.prototype._prevVisibleColumn=function(e){var t=this.table.columnManager.getColumnByIndex(e);return!t||t.visible?t:this._prevVisibleColumn(e-1)},c.prototype.reinitializeWidth=function(e){this.widthFixed=!1,"undefined"===typeof this.definition.width||e||this.setWidth(this.definition.width),this.table.modExists("filter")&&this.table.modules.filter.hideHeaderFilterElements(),this.fitToData(),this.table.modExists("filter")&&this.table.modules.filter.showHeaderFilterElements()},c.prototype.fitToData=function(){var e=this;this.widthFixed||(this.element.style.width="",e.cells.forEach(function(e){e.clearWidth()}));var t=this.element.offsetWidth;e.width&&this.widthFixed||(e.cells.forEach(function(e){var o=e.getWidth();o>t&&(t=o)}),t&&e.setWidthActual(t+1))},c.prototype.updateDefinition=function(e){var t=this;return new Promise(function(o,n){var i;t.isGroup?(console.warn("Column Update Error - The updateDefinition function is only available on ungrouped columns"),n("Column Update Error - The updateDefinition function is only available on columns, not column groups")):t.parent.isGroup?(console.warn("Column Update Error - The updateDefinition function is only available on ungrouped columns"),n("Column Update Error - The updateDefinition function is only available on columns, not column groups")):(i=Object.assign({},t.getDefinition()),i=Object.assign(i,e),t.table.columnManager.addColumn(i,!1,t).then(function(e){i.field==t.field&&(t.field=!1),t.delete().then(function(){o(e.getComponent())}).catch(function(e){n(e)})}).catch(function(e){n(e)}))})},c.prototype.deleteCell=function(e){var t=this.cells.indexOf(e);t>-1&&this.cells.splice(t,1)},c.prototype.defaultOptionList=["title","field","columns","visible","align","hozAlign","vertAlign","width","minWidth","maxWidth","widthGrow","widthShrink","resizable","frozen","responsive","tooltip","cssClass","rowHandle","hideInHtml","print","htmlOutput","sorter","sorterParams","formatter","formatterParams","variableHeight","editable","editor","editorParams","validator","mutator","mutatorParams","mutatorData","mutatorDataParams","mutatorEdit","mutatorEditParams","mutatorClipboard","mutatorClipboardParams","accessor","accessorParams","accessorData","accessorDataParams","accessorDownload","accessorDownloadParams","accessorClipboard","accessorClipboardParams","accessorPrint","accessorPrintParams","accessorHtmlOutput","accessorHtmlOutputParams","clipboard","download","downloadTitle","topCalc","topCalcParams","topCalcFormatter","topCalcFormatterParams","bottomCalc","bottomCalcParams","bottomCalcFormatter","bottomCalcFormatterParams","cellClick","cellDblClick","cellContext","cellTap","cellDblTap","cellTapHold","cellMouseEnter","cellMouseLeave","cellMouseOver","cellMouseOut","cellMouseMove","cellEditing","cellEdited","cellEditCancelled","headerSort","headerSortStartingDir","headerSortTristate","headerClick","headerDblClick","headerContext","headerTap","headerDblTap","headerTapHold","headerTooltip","headerVertical","headerHozAlign","editableTitle","titleFormatter","titleFormatterParams","headerFilter","headerFilterPlaceholder","headerFilterParams","headerFilterEmptyCheck","headerFilterFunc","headerFilterFuncParams","headerFilterLiveFilter","print","headerContextMenu","headerMenu","contextMenu","clickMenu","formatterPrint","formatterPrintParams","formatterClipboard","formatterClipboardParams","formatterHtmlOutput","formatterHtmlOutputParams","titlePrint","titleClipboard","titleHtmlOutput","titleDownload"],c.prototype.getComponent=function(){return this.component||(this.component=new s(this)),this.component};var p=function(e){this.table=e,this.element=this.createHolderElement(),this.tableElement=this.createTableElement(),this.heightFixer=this.createTableElement(),this.columnManager=null,this.height=0,this.firstRender=!1,this.renderMode="virtual",this.fixedHeight=!1,this.rows=[],this.activeRows=[],this.activeRowsCount=0,this.displayRows=[],this.displayRowsCount=0,this.scrollTop=0,this.scrollLeft=0,this.vDomRowHeight=20,this.vDomTop=0,this.vDomBottom=0,this.vDomScrollPosTop=0,this.vDomScrollPosBottom=0,this.vDomTopPad=0,this.vDomBottomPad=0,this.vDomMaxRenderChain=90,this.vDomWindowBuffer=0,this.vDomWindowMinTotalRows=20,this.vDomWindowMinMarginRows=5,this.vDomTopNewRows=[],this.vDomBottomNewRows=[],this.rowNumColumn=!1,this.redrawBlock=!1,this.redrawBlockRestoreConfig=!1,this.redrawBlockRederInPosition=!1};p.prototype.createHolderElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-tableHolder"),e.setAttribute("tabindex",0),e},p.prototype.createTableElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-table"),e},p.prototype.getElement=function(){return this.element},p.prototype.getTableElement=function(){return this.tableElement},p.prototype.getRowPosition=function(e,t){return t?this.activeRows.indexOf(e):this.rows.indexOf(e)},p.prototype.setColumnManager=function(e){this.columnManager=e},p.prototype.initialize=function(){var e=this;e.setRenderMode(),e.element.appendChild(e.tableElement),e.firstRender=!0,e.element.addEventListener("scroll",function(){var t=e.element.scrollLeft;e.scrollLeft!=t&&(e.columnManager.scrollHorizontal(t),e.table.options.groupBy&&e.table.modules.groupRows.scrollHeaders(t),e.table.modExists("columnCalcs")&&e.table.modules.columnCalcs.scrollHorizontal(t),e.table.options.scrollHorizontal(t)),e.scrollLeft=t}),"virtual"===this.renderMode&&e.element.addEventListener("scroll",function(){var t=e.element.scrollTop,o=e.scrollTop>t;e.scrollTop!=t?(e.scrollTop=t,e.scrollVertical(o),"scroll"==e.table.options.ajaxProgressiveLoad&&e.table.modules.ajax.nextPage(e.element.scrollHeight-e.element.clientHeight-t),e.table.options.scrollVertical(t)):e.scrollTop=t})},p.prototype.findRow=function(e){var t=this;if("object"!=("undefined"===typeof e?"undefined":r(e))){if("undefined"==typeof e||null===e)return!1;var o=t.rows.find(function(o){return o.data[t.table.options.index]==e});return o||!1}if(e instanceof b)return e;if(e instanceof u)return e._getSelf()||!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement){var n=t.rows.find(function(t){return t.getElement()===e});return n||!1}return!1},p.prototype.getRowFromDataObject=function(e){var t=this.rows.find(function(t){return t.data===e});return t||!1},p.prototype.getRowFromPosition=function(e,t){return t?this.activeRows[e]:this.rows[e]},p.prototype.scrollToRow=function(e,t,o){var n,i=this,r=this.getDisplayRows().indexOf(e),a=e.getElement(),s=0;return new Promise(function(e,c){if(r>-1){if("undefined"===typeof t&&(t=i.table.options.scrollToRowPosition),"undefined"===typeof o&&(o=i.table.options.scrollToRowIfVisible),"nearest"===t)switch(i.renderMode){case"classic":n=f.prototype.helpers.elOffset(a).top,t=Math.abs(i.element.scrollTop-n)>Math.abs(i.element.scrollTop+i.element.clientHeight-n)?"bottom":"top";break;case"virtual":t=Math.abs(i.vDomTop-r)>Math.abs(i.vDomBottom-r)?"bottom":"top";break}if(!o&&f.prototype.helpers.elVisible(a)&&(s=f.prototype.helpers.elOffset(a).top-f.prototype.helpers.elOffset(i.element).top,s>0&&s-1&&this.activeRows.splice(n,1),o>-1&&this.rows.splice(o,1),this.setActiveRows(this.activeRows),this.displayRowIterator(function(t){var o=t.indexOf(e);o>-1&&t.splice(o,1)}),t||this.reRenderInPosition(),this.regenerateRowNumbers(),this.table.options.rowDeleted.call(this.table,e.getComponent()),this.table.options.dataChanged&&this.table.options.dataChanged.call(this.table,this.getData()),this.table.options.groupBy&&this.table.modExists("groupRows")?this.table.modules.groupRows.updateGroupRows(!0):this.table.options.pagination&&this.table.modExists("page")?this.refreshActiveData(!1,!1,!0):this.table.options.pagination&&this.table.modExists("page")&&this.refreshActiveData("page")},p.prototype.addRow=function(e,t,o,n){var i=this.addRowActual(e,t,o,n);return this.table.options.history&&this.table.modExists("history")&&this.table.modules.history.action("rowAdd",i,{data:e,pos:t,index:o}),i},p.prototype.addRows=function(e,t,o){var n=this,i=this,r=[];return new Promise(function(a,s){t=n.findAddRowPos(t),Array.isArray(e)||(e=[e]),e.length-1,("undefined"==typeof o&&t||"undefined"!==typeof o&&!t)&&e.reverse(),e.forEach(function(e,n){var a=i.addRow(e,t,o,!0);r.push(a)}),n.table.options.groupBy&&n.table.modExists("groupRows")?n.table.modules.groupRows.updateGroupRows(!0):n.table.options.pagination&&n.table.modExists("page")?n.refreshActiveData(!1,!1,!0):n.reRenderInPosition(),n.table.modExists("columnCalcs")&&n.table.modules.columnCalcs.recalc(n.table.rowManager.activeRows),n.regenerateRowNumbers(),a(r)})},p.prototype.findAddRowPos=function(e){return"undefined"===typeof e&&(e=this.table.options.addRowPos),"pos"===e&&(e=!0),"bottom"===e&&(e=!1),e},p.prototype.addRowActual=function(e,t,o,n){var i,r,a=e instanceof b?e:new b(e||{},this),s=this.findAddRowPos(t),c=-1;if(!o&&this.table.options.pagination&&"page"==this.table.options.paginationAddRow&&(r=this.getDisplayRows(),s?r.length?o=r[0]:this.activeRows.length&&(o=this.activeRows[this.activeRows.length-1],s=!1):r.length&&(o=r[r.length-1],s=!(r.length1&&(!o||o&&-1==p.indexOf(o)?s?p[0]!==a&&(o=p[0],this._moveRowInArray(a.getGroup().rows,a,o,!s)):p[p.length-1]!==a&&(o=p[p.length-1],this._moveRowInArray(a.getGroup().rows,a,o,!s)):this._moveRowInArray(a.getGroup().rows,a,o,!s))}return o&&(c=this.rows.indexOf(o)),o&&c>-1?(i=this.activeRows.indexOf(o),this.displayRowIterator(function(e){var t=e.indexOf(o);t>-1&&e.splice(s?t:t+1,0,a)}),i>-1&&this.activeRows.splice(s?i:i+1,0,a),this.rows.splice(s?c:c+1,0,a)):s?(this.displayRowIterator(function(e){e.unshift(a)}),this.activeRows.unshift(a),this.rows.unshift(a)):(this.displayRowIterator(function(e){e.push(a)}),this.activeRows.push(a),this.rows.push(a)),this.setActiveRows(this.activeRows),this.table.options.rowAdded.call(this.table,a.getComponent()),this.table.options.dataChanged&&this.table.options.dataChanged.call(this.table,this.getData()),n||this.reRenderInPosition(),a},p.prototype.moveRow=function(e,t,o){this.table.options.history&&this.table.modExists("history")&&this.table.modules.history.action("rowMove",e,{posFrom:this.getRowPosition(e),posTo:this.getRowPosition(t),to:t,after:o}),this.moveRowActual(e,t,o),this.regenerateRowNumbers(),this.table.options.rowMoved.call(this.table,e.getComponent())},p.prototype.moveRowActual=function(e,t,o){var n=this;if(this._moveRowInArray(this.rows,e,t,o),this._moveRowInArray(this.activeRows,e,t,o),this.displayRowIterator(function(i){n._moveRowInArray(i,e,t,o)}),this.table.options.groupBy&&this.table.modExists("groupRows")){!o&&t instanceof B&&(t=this.table.rowManager.prevDisplayRow(e)||t);var i=t.getGroup(),r=e.getGroup();i===r?this._moveRowInArray(i.rows,e,t,o):(r&&r.removeRow(e),i.insertRow(e,t,o))}},p.prototype._moveRowInArray=function(e,t,o,n){var i,r,a,s;if(t!==o&&(i=e.indexOf(t),i>-1&&(e.splice(i,1),r=e.indexOf(o),r>-1?n?e.splice(r+1,0,t):e.splice(r,0,t):e.splice(i,0,t)),e===this.getDisplayRows())){a=ii?r:i+1;for(var c=a;c<=s;c++)e[c]&&this.styleRow(e[c],c)}},p.prototype.clearData=function(){this.setData([])},p.prototype.getRowIndex=function(e){return this.findRowIndex(e,this.rows)},p.prototype.getDisplayRowIndex=function(e){var t=this.getDisplayRows().indexOf(e);return t>-1&&t},p.prototype.nextDisplayRow=function(e,t){var o=this.getDisplayRowIndex(e),n=!1;return!1!==o&&o-1))&&o},p.prototype.getData=function(e,t){var o=[],n=this.getRows(e);return n.forEach(function(e){"row"==e.type&&o.push(e.getData(t||"data"))}),o},p.prototype.getComponents=function(e){var t=[],o=this.getRows(e);return o.forEach(function(e){t.push(e.getComponent())}),t},p.prototype.getDataCount=function(e){var t=this.getRows(e);return t.length},p.prototype._genRemoteRequest=function(){var e=this,t=this.table,o=t.options,n={};if(t.modExists("page")){if(o.ajaxSorting){var i=this.table.modules.sort.getSort();i.forEach(function(e){delete e.column}),n[this.table.modules.page.paginationDataSentNames.sorters]=i}if(o.ajaxFiltering){var r=this.table.modules.filter.getFilters(!0,!0);n[this.table.modules.page.paginationDataSentNames.filters]=r}this.table.modules.ajax.setParams(n,!0)}t.modules.ajax.sendRequest().then(function(t){e._setDataActual(t,!0)}).catch(function(e){})},p.prototype.filterRefresh=function(){var e=this.table,t=e.options,o=this.scrollLeft;t.ajaxFiltering?"remote"==t.pagination&&e.modExists("page")?(e.modules.page.reset(!0),e.modules.page.setPage(1).then(function(){}).catch(function(){})):t.ajaxProgressiveLoad?e.modules.ajax.loadData().then(function(){}).catch(function(){}):this._genRemoteRequest():this.refreshActiveData("filter"),this.scrollHorizontal(o)},p.prototype.sorterRefresh=function(e){var t=this.table,o=this.table.options,n=this.scrollLeft;o.ajaxSorting?("remote"==o.pagination||o.progressiveLoad)&&t.modExists("page")?(t.modules.page.reset(!0),t.modules.page.setPage(1).then(function(){}).catch(function(){})):o.ajaxProgressiveLoad?t.modules.ajax.loadData().then(function(){}).catch(function(){}):this._genRemoteRequest():this.refreshActiveData(e?"filter":"sort"),this.scrollHorizontal(n)},p.prototype.scrollHorizontal=function(e){this.scrollLeft=e,this.element.scrollLeft=e,this.table.options.groupBy&&this.table.modules.groupRows.scrollHeaders(e),this.table.modExists("columnCalcs")&&this.table.modules.columnCalcs.scrollHorizontal(e)},p.prototype.refreshActiveData=function(e,t,o){var n,i=this,r=this.table,a=["all","filter","sort","display","freeze","group","tree","page"];if(this.redrawBlock)(!this.redrawBlockRestoreConfig||a.indexOf(e)=0))break;r=s}else if(t-a[s].getElement().offsetTop>=0)i=s;else{if(n=!0,!(o-a[s].getElement().offsetTop>=0))break;r=s}}else i=this.vDomTop,r=this.vDomBottom;return a.slice(i,r+1)},p.prototype.displayRowIterator=function(e){this.displayRows.forEach(e),this.displayRowsCount=this.displayRows[this.displayRows.length-1].length},p.prototype.getRows=function(e){var t;switch(e){case"active":t=this.activeRows;break;case"display":t=this.table.rowManager.getDisplayRows();break;case"visible":t=this.getVisibleRows(!0);break;case"selected":t=this.table.modules.selectRow.selectedRows;break;default:t=this.rows}return t},p.prototype.reRenderInPosition=function(e){if("virtual"==this.getRenderMode())if(this.redrawBlock)e?e():this.redrawBlockRederInPosition=!0;else{for(var t=this.element.scrollTop,o=!1,n=!1,i=this.scrollLeft,r=this.getDisplayRows(),a=this.vDomTop;a<=this.vDomBottom;a++)if(r[a]){var s=t-r[a].getElement().offsetTop;if(!(!1===n||Math.abs(s)this.vDomWindowBuffer&&(this.vDomWindowBuffer=2*h),"group"!==M.type&&(l=!1),n.vDomBottom++,p++}e?(n.vDomTopPad=t?n.vDomRowHeight*this.vDomTop+o:n.scrollTop-c,n.vDomBottomPad=n.vDomBottom==n.displayRowsCount-1?0:Math.max(n.vDomScrollHeight-n.vDomTopPad-s-c,0)):(this.vDomTopPad=0,n.vDomRowHeight=Math.floor((s+c)/p),n.vDomBottomPad=n.vDomRowHeight*(n.displayRowsCount-n.vDomBottom-1),n.vDomScrollHeight=c+s+n.vDomBottomPad-n.height),i.style.paddingTop=n.vDomTopPad+"px",i.style.paddingBottom=n.vDomBottomPad+"px",t&&(this.scrollTop=n.vDomTopPad+c+o-(this.element.scrollWidth>this.element.clientWidth?this.element.offsetHeight-this.element.clientHeight:0)),this.scrollTop=Math.min(this.scrollTop,this.element.scrollHeight-this.height),this.element.scrollWidth>this.element.offsetWidth&&t&&(this.scrollTop+=this.element.offsetHeight-this.element.clientHeight),this.vDomScrollPosTop=this.scrollTop,this.vDomScrollPosBottom=this.scrollTop,r.scrollTop=this.scrollTop,i.style.minWidth=l?n.table.columnManager.getWidth()+"px":"",n.table.options.groupBy&&"fitDataFill"!=n.table.modules.layout.getMode()&&n.displayRowsCount==n.table.modules.groupRows.countGroups()&&(n.tableElement.style.minWidth=n.table.columnManager.getWidth())}else this.renderEmptyScroll();this.fixedHeight||this.adjustTableSize()},p.prototype.scrollVertical=function(e){var t=this.scrollTop-this.vDomScrollPosTop,o=this.scrollTop-this.vDomScrollPosBottom,n=2*this.vDomWindowBuffer;if(-t>n||o>n){var i=this.scrollLeft;this._virtualRenderFill(Math.floor(this.element.scrollTop/this.element.scrollHeight*this.displayRowsCount)),this.scrollHorizontal(i)}else e?(t<0&&this._addTopRow(-t),o<0&&(this.vDomScrollHeight-this.scrollTop>this.vDomWindowBuffer?this._removeBottomRow(-o):this.vDomScrollPosBottom=this.scrollTop)):(t>=0&&(this.scrollTop>this.vDomWindowBuffer?this._removeTopRow(t):this.vDomScrollPosTop=this.scrollTop),o>=0&&this._addBottomRow(o))},p.prototype._addTopRow=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=this.tableElement,n=this.getDisplayRows();if(this.vDomTop){var i=this.vDomTop-1,r=n[i],a=r.getHeight()||this.vDomRowHeight;e>=a&&(this.styleRow(r,i),o.insertBefore(r.getElement(),o.firstChild),r.initialized&&r.heightInitialized||(this.vDomTopNewRows.push(r),r.heightInitialized||r.clearCellHeight()),r.initialize(),this.vDomTopPad-=a,this.vDomTopPad<0&&(this.vDomTopPad=i*this.vDomRowHeight),i||(this.vDomTopPad=0),o.style.paddingTop=this.vDomTopPad+"px",this.vDomScrollPosTop-=a,this.vDomTop--),e=-(this.scrollTop-this.vDomScrollPosTop),r.getHeight()>this.vDomWindowBuffer&&(this.vDomWindowBuffer=2*r.getHeight()),t=(n[this.vDomTop-1].getHeight()||this.vDomRowHeight)?this._addTopRow(e,t+1):this._quickNormalizeRowHeight(this.vDomTopNewRows)}},p.prototype._removeTopRow=function(e){var t=this.tableElement,o=this.getDisplayRows()[this.vDomTop],n=o.getHeight()||this.vDomRowHeight;if(e>=n){var i=o.getElement();i.parentNode.removeChild(i),this.vDomTopPad+=n,t.style.paddingTop=this.vDomTopPad+"px",this.vDomScrollPosTop+=this.vDomTop?n:n+this.vDomWindowBuffer,this.vDomTop++,e=this.scrollTop-this.vDomScrollPosTop,this._removeTopRow(e)}},p.prototype._addBottomRow=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=this.tableElement,n=this.getDisplayRows();if(this.vDomBottom=a&&(this.styleRow(r,i),o.appendChild(r.getElement()),r.initialized&&r.heightInitialized||(this.vDomBottomNewRows.push(r),r.heightInitialized||r.clearCellHeight()),r.initialize(),this.vDomBottomPad-=a,(this.vDomBottomPad<0||i==this.displayRowsCount-1)&&(this.vDomBottomPad=0),o.style.paddingBottom=this.vDomBottomPad+"px",this.vDomScrollPosBottom+=a,this.vDomBottom++),e=this.scrollTop-this.vDomScrollPosBottom,r.getHeight()>this.vDomWindowBuffer&&(this.vDomWindowBuffer=2*r.getHeight()),t=(n[this.vDomBottom+1].getHeight()||this.vDomRowHeight)?this._addBottomRow(e,t+1):this._quickNormalizeRowHeight(this.vDomBottomNewRows)}},p.prototype._removeBottomRow=function(e){var t=this.tableElement,o=this.getDisplayRows()[this.vDomBottom],n=o.getHeight()||this.vDomRowHeight;if(e>=n){var i=o.getElement();i.parentNode&&i.parentNode.removeChild(i),this.vDomBottomPad+=n,this.vDomBottomPad<0&&(this.vDomBottomPad=0),t.style.paddingBottom=this.vDomBottomPad+"px",this.vDomScrollPosBottom-=n,this.vDomBottom--,e=-(this.scrollTop-this.vDomScrollPosBottom),this._removeBottomRow(e)}},p.prototype._quickNormalizeRowHeight=function(e){e.forEach(function(e){e.calcHeight()}),e.forEach(function(e){e.setCellHeight()}),e.length=0},p.prototype.normalizeHeight=function(){this.activeRows.forEach(function(e){e.normalizeHeight()})},p.prototype.adjustTableSize=function(){var e,t=this.element.clientHeight;if("virtual"===this.renderMode){var o=Math.floor(this.columnManager.getElement().getBoundingClientRect().height+(this.table.footerManager&&this.table.footerManager.active&&!this.table.footerManager.external?this.table.footerManager.getElement().getBoundingClientRect().height:0));this.fixedHeight?(this.element.style.minHeight="calc(100% - "+o+"px)",this.element.style.height="calc(100% - "+o+"px)",this.element.style.maxHeight="calc(100% - "+o+"px)"):(this.element.style.height="",this.element.style.height=this.table.element.clientHeight-o+"px",this.element.scrollTop=this.scrollTop),this.height=this.element.clientHeight,this.vDomWindowBuffer=this.table.options.virtualDomBuffer||this.height,this.fixedHeight||t==this.element.clientHeight||(e=this.table.modExists("resizeTable"),(e&&!this.table.modules.resizeTable.autoResize||!e)&&this.redraw())}},p.prototype.reinitialize=function(){this.rows.forEach(function(e){e.reinitialize(!0)})},p.prototype.blockRedraw=function(){this.redrawBlock=!0,this.redrawBlockRestoreConfig=!1},p.prototype.restoreRedraw=function(){this.redrawBlock=!1,this.redrawBlockRestoreConfig?(this.refreshActiveData(this.redrawBlockRestoreConfig.stage,this.redrawBlockRestoreConfig.skipStage,this.redrawBlockRestoreConfig.renderInPosition),this.redrawBlockRestoreConfig=!1):this.redrawBlockRederInPosition&&this.reRenderInPosition(),this.redrawBlockRederInPosition=!1},p.prototype.redraw=function(e){var t=this.scrollLeft;this.adjustTableSize(),this.table.tableWidth=this.table.element.clientWidth,e?this.renderTable():("classic"==this.renderMode?this.table.options.groupBy?this.refreshActiveData("group",!1,!1):this._simpleRender():(this.reRenderInPosition(),this.scrollHorizontal(t)),this.displayRowsCount||this.table.options.placeholder&&this.getElement().appendChild(this.table.options.placeholder))},p.prototype.resetScroll=function(){if(this.element.scrollLeft=0,this.element.scrollTop=0,"ie"===this.table.browser){var e=document.createEvent("Event");e.initEvent("scroll",!1,!0),this.element.dispatchEvent(e)}else this.element.dispatchEvent(new Event("scroll"))};var l=function(e){this.table=e,this.element=this.table.rowManager.tableElement,this.holderEl=this.table.rowManager.element,this.leftCol=0,this.rightCol=0,this.scrollLeft=0,this.vDomScrollPosLeft=0,this.vDomScrollPosRight=0,this.vDomPadLeft=0,this.vDomPadRight=0,this.fitDataColAvg=0,this.window=200,this.initialized=!1,this.columns=[],this.compatabilityCheck()&&this.initialize()};l.prototype.compatabilityCheck=function(){var e=this.table.options,t=!1,o=!0;return"fitDataTable"==e.layout&&(console.warn("Horizontal Vitrual DOM is not compatible with fitDataTable layout mode"),o=!1),e.responsiveLayout&&(console.warn("Horizontal Vitrual DOM is not compatible with responsive columns"),o=!1),this.table.rtl&&(console.warn("Horizontal Vitrual DOM is not currently compatible with RTL text direction"),o=!1),e.columns&&(t=e.columns.find(function(e){return e.frozen}),t&&(console.warn("Horizontal Vitrual DOM is not compatible with frozen columns"),o=!1)),o||(e.virtualDomHoz=!1),o},l.prototype.initialize=function(){var e=this;this.holderEl.addEventListener("scroll",function(){var t=e.holderEl.scrollLeft;e.scrollLeft!=t&&(e.scrollLeft=t,e.scroll(t-(e.vDomScrollPosLeft+e.window)))})},l.prototype.deinitialize=function(){this.initialized=!1},l.prototype.clear=function(){this.columns=[],this.leftCol=-1,this.rightCol=0,this.vDomScrollPosLeft=0,this.vDomScrollPosRight=0,this.vDomPadLeft=0,this.vDomPadRight=0},l.prototype.dataChange=function(){var e,t,o,n=!1,i=0,r=0;if("fitData"===this.table.options.layout){if(this.table.columnManager.columnsByIndex.forEach(function(e){!e.definition.width&&e.visible&&(n=!0)}),n&&n&&this.table.rowManager.getDisplayRows().length&&(this.vDomScrollPosRight=this.scrollLeft+this.holderEl.clientWidth+this.window,this.table.options.groupBy?(e=this.table.modules.groupRows.getGroups(!1)[0],t=e.getRows(!1)[0]):t=this.table.rowManager.getDisplayRows()[0],t)){o=t.getElement(),t.generateCells(),this.element.appendChild(o);for(r=0;rthis.vDomScrollPosRight)break}for(o.parentNode.removeChild(o),this.fitDataColAvg=Math.floor(i/(r+1)),r;ro.vDomScrollPosLeft&&i.8*this.holderEl.clientWidth?this.reinitialize():e>0?(this.addColRight(),this.removeColLeft()):(this.addColLeft(),this.removeColRight())},l.prototype.colPositionAdjust=function(e,t,o){for(var n=e;n=this.columns.length-1?this.vDomPadRight=0:this.vDomPadRight-=n.getWidth(),this.element.style.paddingRight=this.vDomPadRight+"px",this.addColRight())},l.prototype.addColLeft=function(){var e=this.columns[this.leftCol-1];if(e&&e.modules.vdomHoz.rightPos>=this.vDomScrollPosLeft){var t=this.table.rowManager.getVisibleRows();t.forEach(function(t){if("group"!==t.type){var o=t.getCell(e);t.getElement().prepend(o.getElement()),o.cellRendered()}}),this.leftCol?this.vDomPadLeft-=e.getWidth():this.vDomPadLeft=0,this.element.style.paddingLeft=this.vDomPadLeft+"px",this.leftCol--,this.addColLeft()}},l.prototype.removeColRight=function(e){var t;e=this.columns[this.rightCol];e&&e.modules.vdomHoz.leftPos>this.vDomScrollPosRight&&(t=this.table.rowManager.getVisibleRows(),e.modules.vdomHoz.visible=!1,t.forEach(function(t){if("group"!==t.type){var o=t.getCell(e);t.getElement().removeChild(o.getElement())}}),this.vDomPadRight+=e.getWidth(),this.element.style.paddingRight=this.vDomPadRight+"px",this.rightCol--,this.removeColRight())},l.prototype.removeColLeft=function(){var e,t=this.columns[this.leftCol];t&&t.modules.vdomHoz.rightPos-1}return!1},u.prototype.treeCollapse=function(){this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.collapseRow(this._row)},u.prototype.treeExpand=function(){this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.expandRow(this._row)},u.prototype.treeToggle=function(){this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.toggleRow(this._row)},u.prototype.getTreeParent=function(){return!!this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.getTreeParent(this._row)},u.prototype.getTreeChildren=function(){return!!this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.getTreeChildren(this._row,!0)},u.prototype.addTreeChild=function(e,t,o){return!!this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.addTreeChildRow(this._row,e,t,o)},u.prototype.reformat=function(){return this._row.reinitialize()},u.prototype.getGroup=function(){return this._row.getGroup().getComponent()},u.prototype.getTable=function(){return this._row.table},u.prototype.getNextRow=function(){var e=this._row.nextRow();return e?e.getComponent():e},u.prototype.getPrevRow=function(){var e=this._row.prevRow();return e?e.getComponent():e};var b=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"row";this.table=t.table,this.parent=t,this.data={},this.type=o,this.element=!1,this.modules={},this.cells=[],this.height=0,this.heightStyled="",this.manualHeight=!1,this.outerHeight=0,this.initialized=!1,this.heightInitialized=!1,this.component=null,this.created=!1,this.setData(e)};b.prototype.create=function(){this.created||(this.created=!0,this.generateElement())},b.prototype.createElement=function(){var e=document.createElement("div");e.classList.add("tabulator-row"),e.setAttribute("role","row"),this.element=e},b.prototype.getElement=function(){return this.create(),this.element},b.prototype.detachElement=function(){this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)},b.prototype.generateElement=function(){var e,t,o,n=this;this.createElement(),!1!==n.table.options.selectable&&n.table.modExists("selectRow")&&n.table.modules.selectRow.initializeRow(this),!1!==n.table.options.movableRows&&n.table.modExists("moveRow")&&n.table.modules.moveRow.initializeRow(this),!1!==n.table.options.dataTree&&n.table.modExists("dataTree")&&n.table.modules.dataTree.initializeRow(this),"collapse"===n.table.options.responsiveLayout&&n.table.modExists("responsiveLayout")&&n.table.modules.responsiveLayout.initializeRow(this),(n.table.options.rowContextMenu||n.table.options.rowClickMenu)&&this.table.modExists("menu")&&n.table.modules.menu.initializeRow(this),n.table.options.rowClick&&n.element.addEventListener("click",function(e){n.table.options.rowClick(e,n.getComponent())}),n.table.options.rowDblClick&&n.element.addEventListener("dblclick",function(e){n.table.options.rowDblClick(e,n.getComponent())}),n.table.options.rowContext&&n.element.addEventListener("contextmenu",function(e){n.table.options.rowContext(e,n.getComponent())}),n.table.options.rowMouseEnter&&n.element.addEventListener("mouseenter",function(e){n.table.options.rowMouseEnter(e,n.getComponent())}),n.table.options.rowMouseLeave&&n.element.addEventListener("mouseleave",function(e){n.table.options.rowMouseLeave(e,n.getComponent())}),n.table.options.rowMouseOver&&n.element.addEventListener("mouseover",function(e){n.table.options.rowMouseOver(e,n.getComponent())}),n.table.options.rowMouseOut&&n.element.addEventListener("mouseout",function(e){n.table.options.rowMouseOut(e,n.getComponent())}),n.table.options.rowMouseMove&&n.element.addEventListener("mousemove",function(e){n.table.options.rowMouseMove(e,n.getComponent())}),n.table.options.rowTap&&(o=!1,n.element.addEventListener("touchstart",function(e){o=!0},{passive:!0}),n.element.addEventListener("touchend",function(e){o&&n.table.options.rowTap(e,n.getComponent()),o=!1})),n.table.options.rowDblTap&&(e=null,n.element.addEventListener("touchend",function(t){e?(clearTimeout(e),e=null,n.table.options.rowDblTap(t,n.getComponent())):e=setTimeout(function(){clearTimeout(e),e=null},300)})),n.table.options.rowTapHold&&(t=null,n.element.addEventListener("touchstart",function(e){clearTimeout(t),t=setTimeout(function(){clearTimeout(t),t=null,o=!1,n.table.options.rowTapHold(e,n.getComponent())},1e3)},{passive:!0}),n.element.addEventListener("touchend",function(e){clearTimeout(t),t=null}))},b.prototype.generateCells=function(){this.cells=this.table.columnManager.generateCells(this)},b.prototype.initialize=function(e){var t=this;if(this.create(),!this.initialized||e){this.deleteCells();while(this.element.firstChild)this.element.removeChild(this.element.firstChild);this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.layoutRow(this),this.generateCells(),this.table.options.virtualDomHoz&&this.table.vdomHoz.initialized?this.table.vdomHoz.initializeRow(this):this.cells.forEach(function(e){t.element.appendChild(e.getElement()),e.cellRendered()}),e&&this.normalizeHeight(),this.table.options.dataTree&&this.table.modExists("dataTree")&&this.table.modules.dataTree.layoutRow(this),"collapse"===this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout")&&this.table.modules.responsiveLayout.layoutRow(this),this.table.options.rowFormatter&&this.table.options.rowFormatter(this.getComponent()),this.table.options.resizableRows&&this.table.modExists("resizeRows")&&this.table.modules.resizeRows.initializeRow(this),this.initialized=!0}else this.table.options.virtualDomHoz&&this.table.vdomHoz.reinitializeRow(this)},b.prototype.reinitializeHeight=function(){this.heightInitialized=!1,this.element&&null!==this.element.offsetParent&&this.normalizeHeight(!0)},b.prototype.reinitialize=function(e){this.initialized=!1,this.heightInitialized=!1,this.manualHeight||(this.height=0,this.heightStyled=""),this.element&&null!==this.element.offsetParent&&this.initialize(!0),this.table.options.dataTree&&this.table.modExists("dataTree",!0)&&this.table.modules.dataTree.getTreeChildren(this,!1,!0).forEach(function(e){e.reinitialize(!0)})},b.prototype.calcHeight=function(e){var t=0,o=this.table.options.resizableRows?this.element.clientHeight:0;this.cells.forEach(function(e){var o=e.getHeight();o>t&&(t=o)}),this.height=e?Math.max(t,o):this.manualHeight?this.height:Math.max(t,o),this.heightStyled=this.height?this.height+"px":"",this.outerHeight=this.element.offsetHeight},b.prototype.setCellHeight=function(){this.cells.forEach(function(e){e.setHeight()}),this.heightInitialized=!0},b.prototype.clearCellHeight=function(){this.cells.forEach(function(e){e.clearHeight()})},b.prototype.normalizeHeight=function(e){e&&this.clearCellHeight(),this.calcHeight(e),this.setCellHeight()},b.prototype.setHeight=function(e,t){(this.height!=e||t)&&(this.manualHeight=!0,this.height=e,this.heightStyled=e?e+"px":"",this.setCellHeight(),this.outerHeight=this.element.offsetHeight)},b.prototype.getHeight=function(){return this.outerHeight},b.prototype.getWidth=function(){return this.element.offsetWidth},b.prototype.deleteCell=function(e){var t=this.cells.indexOf(e);t>-1&&this.cells.splice(t,1)},b.prototype.setData=function(e){this.table.modExists("mutator")&&(e=this.table.modules.mutator.transformRow(e,"data")),this.data=e,this.table.options.reactiveData&&this.table.modExists("reactiveData",!0)&&this.table.modules.reactiveData.watchRow(this)},b.prototype.updateData=function(e){var t,o=this,n=this.element&&f.prototype.helpers.elVisible(this.element),i={};return new Promise(function(r,a){for(var s in"string"===typeof e&&(e=JSON.parse(e)),o.table.options.reactiveData&&o.table.modExists("reactiveData",!0)&&o.table.modules.reactiveData.block(),o.table.modExists("mutator")?(i=Object.assign(i,o.data),i=Object.assign(i,e),t=o.table.modules.mutator.transformRow(i,"data",e)):t=e,t)o.data[s]=t[s];for(var s in o.table.options.reactiveData&&o.table.modExists("reactiveData",!0)&&o.table.modules.reactiveData.unblock(),e){var c=o.table.columnManager.getColumnsByFieldRoot(s);c.forEach(function(e){var i=o.getCell(e.getField());if(i){var r=e.getFieldValue(t);i.getValue()!=r&&(i.setValueProcessData(r),n&&i.cellRendered())}})}o.table.options.groupUpdateOnCellEdit&&o.table.options.groupBy&&o.table.modExists("groupRows")&&o.table.modules.groupRows.reassignRowToGroup(o.row),n?(o.normalizeHeight(!0),o.table.options.rowFormatter&&o.table.options.rowFormatter(o.getComponent())):(o.initialized=!1,o.height=0,o.heightStyled=""),!1!==o.table.options.dataTree&&o.table.modExists("dataTree")&&o.table.modules.dataTree.redrawNeeded(e)&&(o.table.modules.dataTree.initializeRow(o),n&&(o.table.modules.dataTree.layoutRow(o),o.table.rowManager.refreshActiveData("tree",!1,!0))),o.table.options.rowUpdated.call(o.table,o.getComponent()),o.table.options.dataChanged&&o.table.options.dataChanged.call(o.table,o.table.rowManager.getData()),r()})},b.prototype.getData=function(e){return e&&this.table.modExists("accessor")?this.table.modules.accessor.transformRow(this,e):this.data},b.prototype.getCell=function(e){var t=!1;return e=this.table.columnManager.findColumn(e),t=this.cells.find(function(t){return t.column===e}),t},b.prototype.getCellIndex=function(e){return this.cells.findIndex(function(t){return t===e})},b.prototype.findNextEditableCell=function(e){var t=!1;if(e0)for(var o=e-1;o>=0;o--){var n=this.cells[o],i=!0;if(n.column.modules.edit&&f.prototype.helpers.elVisible(n.getElement())&&("function"==typeof n.column.modules.edit.check&&(i=n.column.modules.edit.check(n.getComponent())),i)){t=n;break}}return t},b.prototype.getCells=function(){return this.cells},b.prototype.nextRow=function(){var e=this.table.rowManager.nextDisplayRow(this,!0);return e||!1},b.prototype.prevRow=function(){var e=this.table.rowManager.prevDisplayRow(this,!0);return e||!1},b.prototype.moveToRow=function(e,t){var o=this.table.rowManager.findRow(e);o?(this.table.rowManager.moveRowActual(this,o,!t),this.table.rowManager.refreshActiveData("display",!1,!0)):console.warn("Move Error - No matching row found:",e)},b.prototype.validate=function(){var e=[];return this.cells.forEach(function(t){t.validate()||e.push(t.getComponent())}),!e.length||e},b.prototype.delete=function(){var e=this;return new Promise(function(t,o){var n,i;e.table.options.history&&e.table.modExists("history")&&(e.table.options.groupBy&&e.table.modExists("groupRows")?(i=e.getGroup().rows,n=i.indexOf(e),n&&(n=i[n-1])):(n=e.table.rowManager.getRowIndex(e),n&&(n=e.table.rowManager.rows[n-1])),e.table.modules.history.action("rowDelete",e,{data:e.getData(),pos:!n,index:n})),e.deleteActual(),t()})},b.prototype.deleteActual=function(e){this.table.rowManager.getRowIndex(this);this.detatchModules(),this.table.options.reactiveData&&this.table.modExists("reactiveData",!0),this.modules.group&&this.modules.group.removeRow(this),this.table.rowManager.deleteRow(this,e),this.deleteCells(),this.initialized=!1,this.heightInitialized=!1,this.element=!1,this.table.options.dataTree&&this.table.modExists("dataTree",!0)&&this.table.modules.dataTree.rowDelete(this),this.table.modExists("columnCalcs")&&(this.table.options.groupBy&&this.table.modExists("groupRows")?this.table.modules.columnCalcs.recalcRowGroup(this):this.table.modules.columnCalcs.recalc(this.table.rowManager.activeRows))},b.prototype.detatchModules=function(){this.table.modExists("selectRow")&&this.table.modules.selectRow._deselectRow(this,!0),this.table.modExists("edit")&&this.table.modules.edit.currentCell.row===this&&this.table.modules.edit.cancelEdit(),this.table.modExists("frozenRows")&&this.table.modules.frozenRows.detachRow(this)},b.prototype.deleteCells=function(){for(var e=this.cells.length,t=0;t",footerElement:!1,index:"id",textDirection:"auto",keybindings:[],tabEndNewRow:!1,invalidOptionWarnings:!0,clipboard:!1,clipboardCopyStyled:!0,clipboardCopyConfig:!1,clipboardCopyFormatter:!1,clipboardCopyRowRange:"active",clipboardPasteParser:"table",clipboardPasteAction:"insert",clipboardCopied:function(){},clipboardPasted:function(){},clipboardPasteError:function(){},downloadDataFormatter:!1,downloadReady:function(e,t){return t},downloadComplete:!1,downloadConfig:{},downloadRowRange:"active",dataTree:!1,dataTreeFilter:!0,dataTreeSort:!0,dataTreeElementColumn:!1,dataTreeBranchElement:!0,dataTreeChildIndent:9,dataTreeChildField:"_children",dataTreeCollapseElement:!1,dataTreeExpandElement:!1,dataTreeStartExpanded:!1,dataTreeRowExpanded:function(){},dataTreeRowCollapsed:function(){},dataTreeChildColumnCalcs:!1,dataTreeSelectPropagate:!1,printAsHtml:!1,printFormatter:!1,printHeader:!1,printFooter:!1,printCopyStyle:!0,printStyled:!0,printVisibleRows:!0,printRowRange:"visible",printConfig:{},addRowPos:"bottom",selectable:"highlight",selectableRangeMode:"drag",selectableRollingSelection:!0,selectablePersistence:!0,selectableCheck:function(e,t){return!0},headerFilterLiveFilterDelay:300,headerFilterPlaceholder:!1,headerVisible:!0,history:!1,locale:!1,langs:{},virtualDom:!0,virtualDomBuffer:0,virtualDomHoz:!1,persistentLayout:!1,persistentSort:!1,persistentFilter:!1,persistenceID:"",persistenceMode:!0,persistenceReaderFunc:!1,persistenceWriterFunc:!1,persistence:!1,responsiveLayout:!1,responsiveLayoutCollapseStartOpen:!0,responsiveLayoutCollapseUseFormatters:!0,responsiveLayoutCollapseFormatter:!1,pagination:!1,paginationSize:!1,paginationInitialPage:1,paginationButtonCount:5,paginationSizeSelector:!1,paginationElement:!1,paginationDataSent:{},paginationDataReceived:{},paginationAddRow:"page",ajaxURL:!1,ajaxURLGenerator:!1,ajaxParams:{},ajaxConfig:"get",ajaxContentType:"form",ajaxRequestFunc:!1,ajaxLoader:!0,ajaxLoaderLoading:!1,ajaxLoaderError:!1,ajaxFiltering:!1,ajaxSorting:!1,ajaxProgressiveLoad:!1,ajaxProgressiveLoadDelay:0,ajaxProgressiveLoadScrollMargin:0,groupBy:!1,groupStartOpen:!0,groupValues:!1,groupUpdateOnCellEdit:!1,groupHeader:!1,groupHeaderPrint:null,groupHeaderClipboard:null,groupHeaderHtmlOutput:null,groupHeaderDownload:null,htmlOutputConfig:!1,movableColumns:!1,movableRows:!1,movableRowsConnectedTables:!1,movableRowsConnectedElements:!1,movableRowsSender:!1,movableRowsReceiver:"insert",movableRowsSendingStart:function(){},movableRowsSent:function(){},movableRowsSentFailed:function(){},movableRowsSendingStop:function(){},movableRowsReceivingStart:function(){},movableRowsReceived:function(){},movableRowsReceivedFailed:function(){},movableRowsReceivingStop:function(){},movableRowsElementDrop:function(){},scrollToRowPosition:"top",scrollToRowIfVisible:!0,scrollToColumnPosition:"left",scrollToColumnIfVisible:!0,rowFormatter:!1,rowFormatterPrint:null,rowFormatterClipboard:null,rowFormatterHtmlOutput:null,placeholder:!1,tableBuilding:function(){},tableBuilt:function(){},renderStarted:function(){},renderComplete:function(){},rowClick:!1,rowDblClick:!1,rowContext:!1,rowTap:!1,rowDblTap:!1,rowTapHold:!1,rowMouseEnter:!1,rowMouseLeave:!1,rowMouseOver:!1,rowMouseOut:!1,rowMouseMove:!1,rowContextMenu:!1,rowClickMenu:!1,rowAdded:function(){},rowDeleted:function(){},rowMoved:function(){},rowUpdated:function(){},rowSelectionChanged:function(){},rowSelected:function(){},rowDeselected:function(){},rowResized:function(){},cellClick:!1,cellDblClick:!1,cellContext:!1,cellTap:!1,cellDblTap:!1,cellTapHold:!1,cellMouseEnter:!1,cellMouseLeave:!1,cellMouseOver:!1,cellMouseOut:!1,cellMouseMove:!1,cellEditing:function(){},cellEdited:function(){},cellEditCancelled:function(){},columnMoved:!1,columnResized:function(){},columnTitleChanged:function(){},columnVisibilityChanged:function(){},htmlImporting:function(){},htmlImported:function(){},dataLoading:function(){},dataLoaded:function(){},dataEdited:!1,dataChanged:!1,ajaxRequesting:function(){},ajaxResponse:!1,ajaxError:function(){},dataFiltering:!1,dataFiltered:!1,dataSorting:function(){},dataSorted:function(){},groupToggleElement:"arrow",groupClosedShowCalcs:!1,dataGrouping:function(){},dataGrouped:!1,groupVisibilityChanged:function(){},groupClick:!1,groupDblClick:!1,groupContext:!1,groupContextMenu:!1,groupClickMenu:!1,groupTap:!1,groupDblTap:!1,groupTapHold:!1,columnCalcs:!0,pageLoaded:function(){},localized:function(){},validationMode:"blocking",validationFailed:function(){},historyUndo:function(){},historyRedo:function(){},scrollHorizontal:function(){},scrollVertical:function(){}},f.prototype.initializeOptions=function(e){if(!1!==e.invalidOptionWarnings)for(var t in e)"undefined"===typeof this.defaultOptions[t]&&console.warn("Invalid table constructor option:",t);for(var t in this.defaultOptions)t in e?this.options[t]=e[t]:Array.isArray(this.defaultOptions[t])?this.options[t]=Object.assign([],this.defaultOptions[t]):"object"===r(this.defaultOptions[t])&&null!==this.defaultOptions[t]?this.options[t]=Object.assign({},this.defaultOptions[t]):this.options[t]=this.defaultOptions[t]},f.prototype.initializeElement=function(e){return"undefined"!==typeof HTMLElement&&e instanceof HTMLElement?(this.element=e,!0):"string"===typeof e?(this.element=document.querySelector(e),!!this.element||(console.error("Tabulator Creation Error - no element found matching selector: ",e),!1)):(console.error("Tabulator Creation Error - Invalid element provided:",e),!1)},f.prototype.rtlCheck=function(){var e=window.getComputedStyle(this.element);switch(this.options.textDirection){case"auto":if("rtl"!==e.direction)break;case"rtl":this.element.classList.add("tabulator-rtl"),this.rtl=!0;break;case"ltr":this.element.classList.add("tabulator-ltr");default:this.rtl=!1}},f.prototype._mapDepricatedFunctionality=function(){(this.options.persistentLayout||this.options.persistentSort||this.options.persistentFilter)&&(this.options.persistence||(this.options.persistence={})),this.options.dataEdited&&(console.warn("DEPRECATION WARNING - dataEdited option has been deprecated, please use the dataChanged option instead"),this.options.dataChanged=this.options.dataEdited),this.options.downloadDataFormatter&&console.warn("DEPRECATION WARNING - downloadDataFormatter option has been deprecated"),"undefined"!==typeof this.options.clipboardCopyHeader&&(this.options.columnHeaders=this.options.clipboardCopyHeader,console.warn("DEPRECATION WARNING - clipboardCopyHeader option has been deprecated, please use the columnHeaders property on the clipboardCopyConfig option")),!0!==this.options.printVisibleRows&&(console.warn("printVisibleRows option is deprecated, you should now use the printRowRange option"),this.options.persistence.printRowRange="active"),!0!==this.options.printCopyStyle&&(console.warn("printCopyStyle option is deprecated, you should now use the printStyled option"),this.options.persistence.printStyled=this.options.printCopyStyle),this.options.persistentLayout&&(console.warn("persistentLayout option is deprecated, you should now use the persistence option"),!0!==this.options.persistence&&"undefined"===typeof this.options.persistence.columns&&(this.options.persistence.columns=!0)),this.options.persistentSort&&(console.warn("persistentSort option is deprecated, you should now use the persistence option"),!0!==this.options.persistence&&"undefined"===typeof this.options.persistence.sort&&(this.options.persistence.sort=!0)),this.options.persistentFilter&&(console.warn("persistentFilter option is deprecated, you should now use the persistence option"),!0!==this.options.persistence&&"undefined"===typeof this.options.persistence.filter&&(this.options.persistence.filter=!0)),this.options.columnVertAlign&&(console.warn("columnVertAlign option is deprecated, you should now use the columnHeaderVertAlign option"),this.options.columnHeaderVertAlign=this.options.columnVertAlign)},f.prototype._clearSelection=function(){this.element.classList.add("tabulator-block-select"),window.getSelection?window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges():document.selection&&document.selection.empty(),this.element.classList.remove("tabulator-block-select")},f.prototype._create=function(){this._clearObjectPointers(),this._mapDepricatedFunctionality(),this.bindModules(),this.rtlCheck(),"TABLE"===this.element.tagName&&this.modExists("htmlTableImport",!0)&&this.modules.htmlTableImport.parseTable(),this.columnManager=new a(this),this.rowManager=new p(this),this.footerManager=new h(this),this.columnManager.setRowManager(this.rowManager),this.rowManager.setColumnManager(this.columnManager),this.options.virtualDomHoz&&(this.vdomHoz=new l(this)),this._buildElement(),this._loadInitialData()},f.prototype._clearObjectPointers=function(){this.options.columns=this.options.columns.slice(0),this.options.reactiveData||(this.options.data=this.options.data.slice(0))},f.prototype._buildElement=function(){var e=this,t=this.element,o=this.modules,n=this.options;n.tableBuilding.call(this),t.classList.add("tabulator"),t.setAttribute("role","grid");while(t.firstChild)t.removeChild(t.firstChild);for(var i in n.height&&(n.height=isNaN(n.height)?n.height:n.height+"px",t.style.height=n.height),!1!==n.minHeight&&(n.minHeight=isNaN(n.minHeight)?n.minHeight:n.minHeight+"px",t.style.minHeight=n.minHeight),!1!==n.maxHeight&&(n.maxHeight=isNaN(n.maxHeight)?n.maxHeight:n.maxHeight+"px",t.style.maxHeight=n.maxHeight),this.columnManager.initialize(),this.rowManager.initialize(),this._detectBrowser(),this.modExists("layout",!0)&&o.layout.initialize(n.layout),o.localize.initialize(),!1!==n.headerFilterPlaceholder&&o.localize.setHeaderFilterPlaceholder(n.headerFilterPlaceholder),n.langs)o.localize.installLang(i,n.langs[i]);if(o.localize.setLocale(n.locale),"string"==typeof n.placeholder){var r=document.createElement("div");r.classList.add("tabulator-placeholder");var a=document.createElement("span");a.innerHTML=n.placeholder,r.appendChild(a),n.placeholder=r}if(t.appendChild(this.columnManager.getElement()),t.appendChild(this.rowManager.getElement()),n.footerElement&&this.footerManager.activate(),n.persistence&&this.modExists("persistence",!0)&&o.persistence.initialize(),n.movableRows&&this.modExists("moveRow")&&o.moveRow.initialize(),n.autoColumns&&this.options.data&&this.columnManager.generateColumnsFromRowData(this.options.data),this.modExists("columnCalcs")&&o.columnCalcs.initialize(),this.columnManager.setColumns(n.columns),n.dataTree&&this.modExists("dataTree",!0)&&o.dataTree.initialize(),this.modExists("frozenRows")&&this.modules.frozenRows.initialize(),(n.persistence&&this.modExists("persistence",!0)&&o.persistence.config.sort||n.initialSort)&&this.modExists("sort",!0)){var s=[];n.persistence&&this.modExists("persistence",!0)&&o.persistence.config.sort?(s=o.persistence.load("sort"),!1===s&&n.initialSort&&(s=n.initialSort)):n.initialSort&&(s=n.initialSort),o.sort.setSort(s)}if((n.persistence&&this.modExists("persistence",!0)&&o.persistence.config.filter||n.initialFilter)&&this.modExists("filter",!0)){var c=[];n.persistence&&this.modExists("persistence",!0)&&o.persistence.config.filter?(c=o.persistence.load("filter"),!1===c&&n.initialFilter&&(c=n.initialFilter)):n.initialFilter&&(c=n.initialFilter),o.filter.setFilter(c)}n.initialHeaderFilter&&this.modExists("filter",!0)&&n.initialHeaderFilter.forEach(function(t){var n=e.columnManager.findColumn(t.field);if(!n)return console.warn("Column Filter Error - No matching column found:",t.field),!1;o.filter.setHeaderFilterValue(n,t.value)}),this.modExists("ajax")&&o.ajax.initialize(),n.pagination&&this.modExists("page",!0)&&o.page.initialize(),n.groupBy&&this.modExists("groupRows",!0)&&o.groupRows.initialize(),this.modExists("keybindings")&&o.keybindings.initialize(),this.modExists("selectRow")&&o.selectRow.clearSelectionData(!0),n.autoResize&&this.modExists("resizeTable")&&o.resizeTable.initialize(),this.modExists("clipboard")&&o.clipboard.initialize(),n.printAsHtml&&this.modExists("print")&&o.print.initialize(),n.tableBuilt.call(this)},f.prototype._loadInitialData=function(){var e=this;if(e.options.pagination&&e.modExists("page"))if(e.modules.page.reset(!0,!0),"local"==e.options.pagination){if(e.options.data.length)e.rowManager.setData(e.options.data,!1,!0);else{if((e.options.ajaxURL||e.options.ajaxURLGenerator)&&e.modExists("ajax"))return void e.modules.ajax.loadData(!1,!0).then(function(){}).catch(function(){e.options.paginationInitialPage&&e.modules.page.setPage(e.options.paginationInitialPage)});e.rowManager.setData(e.options.data,!1,!0)}e.options.paginationInitialPage&&e.modules.page.setPage(e.options.paginationInitialPage)}else e.options.ajaxURL?e.modules.page.setPage(e.options.paginationInitialPage).then(function(){}).catch(function(){}):e.rowManager.setData([],!1,!0);else e.options.data.length?e.rowManager.setData(e.options.data):(e.options.ajaxURL||e.options.ajaxURLGenerator)&&e.modExists("ajax")?e.modules.ajax.loadData(!1,!0).then(function(){}).catch(function(){}):e.rowManager.setData(e.options.data,!1,!0)},f.prototype.destroy=function(){var e=this.element;f.prototype.comms.deregister(this),this.options.reactiveData&&this.modExists("reactiveData",!0)&&this.modules.reactiveData.unwatchData(),this.rowManager.rows.forEach(function(e){e.wipe()}),this.rowManager.rows=[],this.rowManager.activeRows=[],this.rowManager.displayRows=[],this.options.autoResize&&this.modExists("resizeTable")&&this.modules.resizeTable.clearBindings(),this.modExists("keybindings")&&this.modules.keybindings.clearBindings();while(e.firstChild)e.removeChild(e.firstChild);e.classList.remove("tabulator")},f.prototype._detectBrowser=function(){var e=navigator.userAgent||navigator.vendor||window.opera;e.indexOf("Trident")>-1?(this.browser="ie",this.browserSlow=!0):e.indexOf("Edge")>-1?(this.browser="edge",this.browserSlow=!0):e.indexOf("Firefox")>-1?(this.browser="firefox",this.browserSlow=!1):(this.browser="other",this.browserSlow=!1),this.browserMobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4))},f.prototype.blockRedraw=function(){return this.rowManager.blockRedraw()},f.prototype.restoreRedraw=function(){return this.rowManager.restoreRedraw()},f.prototype.setDataFromLocalFile=function(e){var t=this;return new Promise(function(o,n){var i=document.createElement("input");i.type="file",i.accept=e||".json,application/json",i.addEventListener("change",function(e){var r,a=i.files[0],s=new FileReader;s.readAsText(a),s.onload=function(e){try{r=JSON.parse(s.result)}catch(e){return console.warn("File Load Error - File contents is invalid JSON",e),void n(e)}t.setData(r).then(function(e){o(e)}).catch(function(e){o(e)})},s.onerror=function(e){console.warn("File Load Error - Unable to read file"),n()}}),i.click()})},f.prototype.setData=function(e,t,o){return this.modExists("ajax")&&this.modules.ajax.blockActiveRequest(),this._setData(e,t,o,!1,!0)},f.prototype._setData=function(e,t,o,n,i){var r=this;return"string"!==typeof e?e?r.rowManager.setData(e,n,i):r.modExists("ajax")&&(r.modules.ajax.getUrl||r.options.ajaxURLGenerator)?"remote"==r.options.pagination&&r.modExists("page",!0)?(r.modules.page.reset(!0,!0),r.modules.page.setPage(1)):r.modules.ajax.loadData(n,i):r.rowManager.setData([],n,i):0==e.indexOf("{")||0==e.indexOf("[")?r.rowManager.setData(JSON.parse(e),n,i):r.modExists("ajax",!0)?(t&&r.modules.ajax.setParams(t),o&&r.modules.ajax.setConfig(o),r.modules.ajax.setUrl(e),"remote"==r.options.pagination&&r.modExists("page",!0)?(r.modules.page.reset(!0,!0),r.modules.page.setPage(1)):r.modules.ajax.loadData(n,i)):void 0},f.prototype.clearData=function(){this.modExists("ajax")&&this.modules.ajax.blockActiveRequest(),this.rowManager.clearData()},f.prototype.getData=function(e){return!0===e&&(console.warn("passing a boolean to the getData function is deprecated, you should now pass the string 'active'"),e="active"),this.rowManager.getData(e)},f.prototype.getDataCount=function(e){return!0===e&&(console.warn("passing a boolean to the getDataCount function is deprecated, you should now pass the string 'active'"),e="active"),this.rowManager.getDataCount(e)},f.prototype.searchRows=function(e,t,o){if(this.modExists("filter",!0))return this.modules.filter.search("rows",e,t,o)},f.prototype.searchData=function(e,t,o){if(this.modExists("filter",!0))return this.modules.filter.search("data",e,t,o)},f.prototype.getHtml=function(e,t,o){if(this.modExists("export",!0))return this.modules.export.getHtml(e,t,o)},f.prototype.print=function(e,t,o){if(this.modExists("print",!0))return this.modules.print.printFullscreen(e,t,o)},f.prototype.getAjaxUrl=function(){if(this.modExists("ajax",!0))return this.modules.ajax.getUrl()},f.prototype.replaceData=function(e,t,o){return this.modExists("ajax")&&this.modules.ajax.blockActiveRequest(),this._setData(e,t,o,!0)},f.prototype.updateData=function(e){var t=this,o=this,n=0;return new Promise(function(i,r){t.modExists("ajax")&&t.modules.ajax.blockActiveRequest(),"string"===typeof e&&(e=JSON.parse(e)),e?e.forEach(function(e){var t=o.rowManager.findRow(e[o.options.index]);t&&(n++,t.updateData(e).then(function(){n--,n||i()}))}):(console.warn("Update Error - No data provided"),r("Update Error - No data provided"))})},f.prototype.addData=function(e,t,o){var n=this;return new Promise(function(i,r){n.modExists("ajax")&&n.modules.ajax.blockActiveRequest(),"string"===typeof e&&(e=JSON.parse(e)),e?n.rowManager.addRows(e,t,o).then(function(e){var t=[];e.forEach(function(e){t.push(e.getComponent())}),i(t)}):(console.warn("Update Error - No data provided"),r("Update Error - No data provided"))})},f.prototype.updateOrAddData=function(e){var t=this,o=this,n=[],i=0;return new Promise(function(r,a){t.modExists("ajax")&&t.modules.ajax.blockActiveRequest(),"string"===typeof e&&(e=JSON.parse(e)),e?e.forEach(function(e){var t=o.rowManager.findRow(e[o.options.index]);i++,t?t.updateData(e).then(function(){i--,n.push(t.getComponent()),i||r(n)}):o.rowManager.addRows(e).then(function(e){i--,n.push(e[0].getComponent()),i||r(n)})}):(console.warn("Update Error - No data provided"),a("Update Error - No data provided"))})},f.prototype.getRow=function(e){var t=this.rowManager.findRow(e);return t?t.getComponent():(console.warn("Find Error - No matching row found:",e),!1)},f.prototype.getRowFromPosition=function(e,t){var o=this.rowManager.getRowFromPosition(e,t);return o?o.getComponent():(console.warn("Find Error - No matching row found:",e),!1)},f.prototype.deleteRow=function(e){var t=this;return new Promise(function(o,n){var i=t,r=0,a=0,s=[];function c(){r++,r==e.length&&a&&(i.rowManager.reRenderInPosition(),o())}Array.isArray(e)||(e=[e]),e.forEach(function(e){var o=t.rowManager.findRow(e,!0);o?s.push(o):(console.warn("Delete Error - No matching row found:",e),n("Delete Error - No matching row found"),c())}),s.sort(function(e,o){return t.rowManager.rows.indexOf(e)>t.rowManager.rows.indexOf(o)?1:-1}),s.forEach(function(e){e.delete().then(function(){a++,c()}).catch(function(e){c(),n(e)})})})},f.prototype.addRow=function(e,t,o){var n=this;return new Promise(function(i,r){"string"===typeof e&&(e=JSON.parse(e)),n.rowManager.addRows(e,t,o).then(function(e){n.modExists("columnCalcs")&&n.modules.columnCalcs.recalc(n.rowManager.activeRows),i(e[0].getComponent())})})},f.prototype.updateOrAddRow=function(e,t){var o=this;return new Promise(function(n,i){var r=o.rowManager.findRow(e);"string"===typeof t&&(t=JSON.parse(t)),r?r.updateData(t).then(function(){o.modExists("columnCalcs")&&o.modules.columnCalcs.recalc(o.rowManager.activeRows),n(r.getComponent())}).catch(function(e){i(e)}):r=o.rowManager.addRows(t).then(function(e){o.modExists("columnCalcs")&&o.modules.columnCalcs.recalc(o.rowManager.activeRows),n(e[0].getComponent())}).catch(function(e){i(e)})})},f.prototype.updateRow=function(e,t){var o=this;return new Promise(function(n,i){var r=o.rowManager.findRow(e);"string"===typeof t&&(t=JSON.parse(t)),r?r.updateData(t).then(function(){n(r.getComponent())}).catch(function(e){i(e)}):(console.warn("Update Error - No matching row found:",e),i("Update Error - No matching row found"))})},f.prototype.scrollToRow=function(e,t,o){var n=this;return new Promise(function(i,r){var a=n.rowManager.findRow(e);a?n.rowManager.scrollToRow(a,t,o).then(function(){i()}).catch(function(e){r(e)}):(console.warn("Scroll Error - No matching row found:",e),r("Scroll Error - No matching row found"))})},f.prototype.moveRow=function(e,t,o){var n=this.rowManager.findRow(e);n?n.moveToRow(t,o):console.warn("Move Error - No matching row found:",e)},f.prototype.getRows=function(e){return!0===e&&(console.warn("passing a boolean to the getRows function is deprecated, you should now pass the string 'active'"),e="active"),this.rowManager.getComponents(e)},f.prototype.getRowPosition=function(e,t){var o=this.rowManager.findRow(e);return o?this.rowManager.getRowPosition(o,t):(console.warn("Position Error - No matching row found:",e),!1)},f.prototype.copyToClipboard=function(e){this.modExists("clipboard",!0)&&this.modules.clipboard.copy(e)},f.prototype.setColumns=function(e){this.columnManager.setColumns(e)},f.prototype.getColumns=function(e){return this.columnManager.getComponents(e)},f.prototype.getColumn=function(e){var t=this.columnManager.findColumn(e);return t?t.getComponent():(console.warn("Find Error - No matching column found:",e),!1)},f.prototype.getColumnDefinitions=function(){return this.columnManager.getDefinitionTree()},f.prototype.getColumnLayout=function(){if(this.modExists("persistence",!0))return this.modules.persistence.parseColumns(this.columnManager.getColumns())},f.prototype.setColumnLayout=function(e){return!!this.modExists("persistence",!0)&&(this.columnManager.setColumns(this.modules.persistence.mergeDefinition(this.options.columns,e)),!0)},f.prototype.showColumn=function(e){var t=this.columnManager.findColumn(e);if(!t)return console.warn("Column Show Error - No matching column found:",e),!1;t.show(),this.options.responsiveLayout&&this.modExists("responsiveLayout",!0)&&this.modules.responsiveLayout.update()},f.prototype.hideColumn=function(e){var t=this.columnManager.findColumn(e);if(!t)return console.warn("Column Hide Error - No matching column found:",e),!1;t.hide(),this.options.responsiveLayout&&this.modExists("responsiveLayout",!0)&&this.modules.responsiveLayout.update()},f.prototype.toggleColumn=function(e){var t=this.columnManager.findColumn(e);if(!t)return console.warn("Column Visibility Toggle Error - No matching column found:",e),!1;t.visible?t.hide():t.show()},f.prototype.addColumn=function(e,t,o){var n=this;return new Promise(function(i,r){var a=n.columnManager.findColumn(o);n.columnManager.addColumn(e,t,a).then(function(e){i(e.getComponent())}).catch(function(e){r(e)})})},f.prototype.deleteColumn=function(e){var t=this;return new Promise(function(o,n){var i=t.columnManager.findColumn(e);i?i.delete().then(function(){o()}).catch(function(e){n(e)}):(console.warn("Column Delete Error - No matching column found:",e),n())})},f.prototype.updateColumnDefinition=function(e,t){var o=this;return new Promise(function(n,i){var r=o.columnManager.findColumn(e);r?r.updateDefinition(t).then(function(e){n(e)}).catch(function(e){i(e)}):(console.warn("Column Update Error - No matching column found:",e),i())})},f.prototype.moveColumn=function(e,t,o){var n=this.columnManager.findColumn(e),i=this.columnManager.findColumn(t);n?i?this.columnManager.moveColumn(n,i,o):console.warn("Move Error - No matching column found:",i):console.warn("Move Error - No matching column found:",e)},f.prototype.scrollToColumn=function(e,t,o){var n=this;return new Promise(function(i,r){var a=n.columnManager.findColumn(e);a?n.columnManager.scrollToColumn(a,t,o).then(function(){i()}).catch(function(e){r(e)}):(console.warn("Scroll Error - No matching column found:",e),r("Scroll Error - No matching column found"))})},f.prototype.setLocale=function(e){this.modules.localize.setLocale(e)},f.prototype.getLocale=function(){return this.modules.localize.getLocale()},f.prototype.getLang=function(e){return this.modules.localize.getLang(e)},f.prototype.redraw=function(e){this.columnManager.redraw(e),this.rowManager.redraw(e)},f.prototype.setHeight=function(e){"classic"!==this.rowManager.renderMode?(this.options.height=isNaN(e)?e:e+"px",this.element.style.height=this.options.height,this.rowManager.setRenderMode(),this.rowManager.redraw()):console.warn("setHeight function is not available in classic render mode")},f.prototype.setSort=function(e,t){this.modExists("sort",!0)&&(this.modules.sort.setSort(e,t),this.rowManager.sorterRefresh())},f.prototype.getSorters=function(){if(this.modExists("sort",!0))return this.modules.sort.getSort()},f.prototype.clearSort=function(){this.modExists("sort",!0)&&(this.modules.sort.clear(),this.rowManager.sorterRefresh())},f.prototype.setFilter=function(e,t,o,n){this.modExists("filter",!0)&&(this.modules.filter.setFilter(e,t,o,n),this.rowManager.filterRefresh())},f.prototype.refreshFilter=function(){this.modExists("filter",!0)&&this.rowManager.filterRefresh()},f.prototype.addFilter=function(e,t,o,n){this.modExists("filter",!0)&&(this.modules.filter.addFilter(e,t,o,n),this.rowManager.filterRefresh())},f.prototype.getFilters=function(e){if(this.modExists("filter",!0))return this.modules.filter.getFilters(e)},f.prototype.setHeaderFilterFocus=function(e){if(this.modExists("filter",!0)){var t=this.columnManager.findColumn(e);if(!t)return console.warn("Column Filter Focus Error - No matching column found:",e),!1;this.modules.filter.setHeaderFilterFocus(t)}},f.prototype.getHeaderFilterValue=function(e){if(this.modExists("filter",!0)){var t=this.columnManager.findColumn(e);if(t)return this.modules.filter.getHeaderFilterValue(t);console.warn("Column Filter Error - No matching column found:",e)}},f.prototype.setHeaderFilterValue=function(e,t){if(this.modExists("filter",!0)){var o=this.columnManager.findColumn(e);if(!o)return console.warn("Column Filter Error - No matching column found:",e),!1;this.modules.filter.setHeaderFilterValue(o,t)}},f.prototype.getHeaderFilters=function(){if(this.modExists("filter",!0))return this.modules.filter.getHeaderFilters()},f.prototype.removeFilter=function(e,t,o){this.modExists("filter",!0)&&(this.modules.filter.removeFilter(e,t,o),this.rowManager.filterRefresh())},f.prototype.clearFilter=function(e){this.modExists("filter",!0)&&(this.modules.filter.clearFilter(e),this.rowManager.filterRefresh())},f.prototype.clearHeaderFilter=function(){this.modExists("filter",!0)&&(this.modules.filter.clearHeaderFilter(),this.rowManager.filterRefresh())},f.prototype.selectRow=function(e){this.modExists("selectRow",!0)&&(!0===e&&(console.warn("passing a boolean to the selectRowselectRow function is deprecated, you should now pass the string 'active'"),e="active"),this.modules.selectRow.selectRows(e))},f.prototype.deselectRow=function(e){this.modExists("selectRow",!0)&&this.modules.selectRow.deselectRows(e)},f.prototype.toggleSelectRow=function(e){this.modExists("selectRow",!0)&&this.modules.selectRow.toggleRow(e)},f.prototype.getSelectedRows=function(){if(this.modExists("selectRow",!0))return this.modules.selectRow.getSelectedRows()},f.prototype.getSelectedData=function(){if(this.modExists("selectRow",!0))return this.modules.selectRow.getSelectedData()},f.prototype.getInvalidCells=function(){if(this.modExists("validate",!0))return this.modules.validate.getInvalidCells()},f.prototype.clearCellValidation=function(e){var t=this;this.modExists("validate",!0)&&(e||(e=this.modules.validate.getInvalidCells()),Array.isArray(e)||(e=[e]),e.forEach(function(e){t.modules.validate.clearValidation(e._getSelf())}))},f.prototype.validate=function(e){var t=[];return this.rowManager.rows.forEach(function(e){var o=e.validate();!0!==o&&(t=t.concat(o))}),!t.length||t},f.prototype.setMaxPage=function(e){if(!this.options.pagination||!this.modExists("page"))return!1;this.modules.page.setMaxPage(e)},f.prototype.setPage=function(e){return this.options.pagination&&this.modExists("page")?this.modules.page.setPage(e):new Promise(function(e,t){t()})},f.prototype.setPageToRow=function(e){var t=this;return new Promise(function(o,n){t.options.pagination&&t.modExists("page")?(e=t.rowManager.findRow(e),e?t.modules.page.setPageToRow(e).then(function(){o()}).catch(function(){n()}):n()):n()})},f.prototype.setPageSize=function(e){if(!this.options.pagination||!this.modExists("page"))return!1;this.modules.page.setPageSize(e),this.modules.page.setPage(1).then(function(){}).catch(function(){})},f.prototype.getPageSize=function(){if(this.options.pagination&&this.modExists("page",!0))return this.modules.page.getPageSize()},f.prototype.previousPage=function(){if(!this.options.pagination||!this.modExists("page"))return!1;this.modules.page.previousPage()},f.prototype.nextPage=function(){if(!this.options.pagination||!this.modExists("page"))return!1;this.modules.page.nextPage()},f.prototype.getPage=function(){return!(!this.options.pagination||!this.modExists("page"))&&this.modules.page.getPage()},f.prototype.getPageMax=function(){return!(!this.options.pagination||!this.modExists("page"))&&this.modules.page.getPageMax()},f.prototype.setGroupBy=function(e){if(!this.modExists("groupRows",!0))return!1;this.options.groupBy=e,this.modules.groupRows.initialize(),this.rowManager.refreshActiveData("display"),this.options.persistence&&this.modExists("persistence",!0)&&this.modules.persistence.config.group&&this.modules.persistence.save("group")},f.prototype.setGroupValues=function(e){if(!this.modExists("groupRows",!0))return!1;this.options.groupValues=e,this.modules.groupRows.initialize(),this.rowManager.refreshActiveData("display"),this.options.persistence&&this.modExists("persistence",!0)&&this.modules.persistence.config.group&&this.modules.persistence.save("group")},f.prototype.setGroupStartOpen=function(e){if(!this.modExists("groupRows",!0))return!1;this.options.groupStartOpen=e,this.modules.groupRows.initialize(),this.options.groupBy?(this.rowManager.refreshActiveData("group"),this.options.persistence&&this.modExists("persistence",!0)&&this.modules.persistence.config.group&&this.modules.persistence.save("group")):console.warn("Grouping Update - cant refresh view, no groups have been set")},f.prototype.setGroupHeader=function(e){if(!this.modExists("groupRows",!0))return!1;this.options.groupHeader=e,this.modules.groupRows.initialize(),this.options.groupBy?(this.rowManager.refreshActiveData("group"),this.options.persistence&&this.modExists("persistence",!0)&&this.modules.persistence.config.group&&this.modules.persistence.save("group")):console.warn("Grouping Update - cant refresh view, no groups have been set")},f.prototype.getGroups=function(e){return!!this.modExists("groupRows",!0)&&this.modules.groupRows.getGroups(!0)},f.prototype.getGroupedData=function(){if(this.modExists("groupRows",!0))return this.options.groupBy?this.modules.groupRows.getGroupedData():this.getData()},f.prototype.getEditedCells=function(){if(this.modExists("edit",!0))return this.modules.edit.getEditedCells()},f.prototype.clearCellEdited=function(e){var t=this;this.modExists("edit",!0)&&(e||(e=this.modules.edit.getEditedCells()),Array.isArray(e)||(e=[e]),e.forEach(function(e){t.modules.edit.clearEdited(e._getSelf())}))},f.prototype.getCalcResults=function(){return!!this.modExists("columnCalcs",!0)&&this.modules.columnCalcs.getResults()},f.prototype.recalc=function(){this.modExists("columnCalcs",!0)&&this.modules.columnCalcs.recalcAll(this.rowManager.activeRows)},f.prototype.navigatePrev=function(){var e=!1;return!(!this.modExists("edit",!0)||(e=this.modules.edit.currentCell,!e))&&e.nav().prev()},f.prototype.navigateNext=function(){var e=!1;return!(!this.modExists("edit",!0)||(e=this.modules.edit.currentCell,!e))&&e.nav().next()},f.prototype.navigateLeft=function(){var t=!1;return!(!this.modExists("edit",!0)||(t=this.modules.edit.currentCell,!t))&&(e.preventDefault(),t.nav().left())},f.prototype.navigateRight=function(){var t=!1;return!(!this.modExists("edit",!0)||(t=this.modules.edit.currentCell,!t))&&(e.preventDefault(),t.nav().right())},f.prototype.navigateUp=function(){var t=!1;return!(!this.modExists("edit",!0)||(t=this.modules.edit.currentCell,!t))&&(e.preventDefault(),t.nav().up())},f.prototype.navigateDown=function(){var t=!1;return!(!this.modExists("edit",!0)||(t=this.modules.edit.currentCell,!t))&&(e.preventDefault(),t.nav().down())},f.prototype.undo=function(){return!(!this.options.history||!this.modExists("history",!0))&&this.modules.history.undo()},f.prototype.redo=function(){return!(!this.options.history||!this.modExists("history",!0))&&this.modules.history.redo()},f.prototype.getHistoryUndoSize=function(){return!(!this.options.history||!this.modExists("history",!0))&&this.modules.history.getHistoryUndoSize()},f.prototype.getHistoryRedoSize=function(){return!(!this.options.history||!this.modExists("history",!0))&&this.modules.history.getHistoryRedoSize()},f.prototype.clearHistory=function(){return!(!this.options.history||!this.modExists("history",!0))&&this.modules.history.clear()},f.prototype.download=function(e,t,o,n){this.modExists("download",!0)&&this.modules.download.download(e,t,o,n)},f.prototype.downloadToTab=function(e,t,o,n){this.modExists("download",!0)&&this.modules.download.download(e,t,o,n,!0)},f.prototype.tableComms=function(e,t,o,n){this.modules.comms.receive(e,t,o,n)},f.prototype.moduleBindings={},f.prototype.extendModule=function(e,t,o){if(f.prototype.moduleBindings[e]){var n=f.prototype.moduleBindings[e].prototype[t];if(n)if("object"==("undefined"===typeof o?"undefined":r(o)))for(var i in o)n[i]=o[i];else console.warn("Module Error - Invalid value type, it must be an object");else console.warn("Module Error - property does not exist:",t)}else console.warn("Module Error - module does not exist:",e)},f.prototype.registerModule=function(e,t){f.prototype.moduleBindings[e]=t},f.prototype.bindModules=function(){for(var e in this.modules={},f.prototype.moduleBindings)this.modules[e]=new f.prototype.moduleBindings[e](this)},f.prototype.modExists=function(e,t){return!!this.modules[e]||(t&&console.error("Tabulator Module Not Installed: "+e),!1)},f.prototype.helpers={elVisible:function(e){return!(e.offsetWidth<=0&&e.offsetHeight<=0)},elOffset:function(e){var t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset-document.documentElement.clientTop,left:t.left+window.pageXOffset-document.documentElement.clientLeft}},deepClone:function(e){var t=Object.assign(Array.isArray(e)?[]:{},e);for(var o in e)null!=e[o]&&"object"===r(e[o])&&(e[o]instanceof Date?t[o]=new Date(e[o]):t[o]=this.deepClone(e[o]));return t}},f.prototype.comms={tables:[],register:function(e){f.prototype.comms.tables.push(e)},deregister:function(e){var t=f.prototype.comms.tables.indexOf(e);t>-1&&f.prototype.comms.tables.splice(t,1)},lookupTable:function(e,t){var o,n,i=[];if("string"===typeof e){if(o=document.querySelectorAll(e),o.length)for(var r=0;r0?r.setWidth(i):r.reinitializeWidth()):this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()},fitColumns:function(e){var t=this,o=t.table.element.clientWidth,n=0,i=0,r=0,a=0,s=[],c=[],p=0,l=0,u=0;function b(e){var t;return t="string"==typeof e?e.indexOf("%")>-1?o/100*parseInt(e):parseInt(e):e,t}function d(e,t,o,n){var i=[],a=0,s=0,c=0,p=r,l=0,u=0,M=[];function h(e){return o*(e.column.definition.widthGrow||1)}function f(e){return b(e.width)-o*(e.column.definition.widthShrink||0)}return e.forEach(function(e,r){var a=n?f(e):h(e);e.column.minWidth>=a?i.push(e):e.column.maxWidth&&e.column.maxWidththis.table.rowManager.element.clientHeight&&(o-=this.table.rowManager.element.offsetWidth-this.table.rowManager.element.clientWidth),e.forEach(function(e){var t,o,i;e.visible&&(t=e.definition.width,o=parseInt(e.minWidth),t?(i=b(t),n+=i>o?i:o,e.definition.widthShrink&&(c.push({column:e,width:i>o?i:o}),p+=e.definition.widthShrink)):(s.push({column:e,width:0}),r+=e.definition.widthGrow||1))}),i=o-n,a=Math.floor(i/r);u=d(s,i,a,!1);s.length&&u>0&&(s[s.length-1].width+=+u),s.forEach(function(e){i-=e.width}),l=Math.abs(u)+i,l>0&&p&&(u=d(c,l,Math.floor(l/p),!0)),c.length&&(c[c.length-1].width-=u),s.forEach(function(e){e.column.setWidth(e.width)}),c.forEach(function(e){e.column.setWidth(e.width)})}},f.prototype.registerModule("layout",z);var O=function(e){this.table=e,this.locale="default",this.lang=!1,this.bindings={},this.langList={}};O.prototype.initialize=function(){this.langList=f.prototype.helpers.deepClone(this.langs)},O.prototype.setHeaderFilterPlaceholder=function(e){this.langList.default.headerFilters.default=e},O.prototype.setHeaderFilterColumnPlaceholder=function(e,t){this.langList.default.headerFilters.columns[e]=t,this.lang&&!this.lang.headerFilters.columns[e]&&(this.lang.headerFilters.columns[e]=t)},O.prototype.installLang=function(e,t){this.langList[e]?this._setLangProp(this.langList[e],t):this.langList[e]=t},O.prototype._setLangProp=function(e,t){for(var o in t)e[o]&&"object"==r(e[o])?this._setLangProp(e[o],t[o]):e[o]=t[o]},O.prototype.setLocale=function(e){var t=this;function o(e,t){for(var n in e)"object"==r(e[n])?(t[n]||(t[n]={}),o(e[n],t[n])):t[n]=e[n]}if(e=e||"default",!0===e&&navigator.language&&(e=navigator.language.toLowerCase()),e&&!t.langList[e]){var n=e.split("-")[0];t.langList[n]?(console.warn("Localization Error - Exact matching locale not found, using closest match: ",e,n),e=n):(console.warn("Localization Error - Matching locale not found, using default: ",e),e="default")}t.locale=e,t.lang=f.prototype.helpers.deepClone(t.langList.default||{}),"default"!=e&&o(t.langList[e],t.lang),t.table.options.localized.call(t.table,t.locale,t.lang),t._executeBindings()},O.prototype.getLocale=function(e){return self.locale},O.prototype.getLang=function(e){return e?this.langList[e]:this.lang},O.prototype.getText=function(e,t){e=t?e+"|"+t:e;var o=e.split("|"),n=this._getLangElement(o,this.locale);return n||""},O.prototype._getLangElement=function(e,t){var o=this,n=o.lang;return e.forEach(function(e){var t;n&&(t=n[e],n="undefined"!=typeof t&&t)}),n},O.prototype.bind=function(e,t){this.bindings[e]||(this.bindings[e]=[]),this.bindings[e].push(t),t(this.getText(e),this.lang)},O.prototype._executeBindings=function(){var e=this,t=function(t){e.bindings[t].forEach(function(o){o(e.getText(t),e.lang)})};for(var o in e.bindings)t(o)},O.prototype.langs={default:{groups:{item:"item",items:"items"},columns:{},ajax:{loading:"Loading",error:"Error"},pagination:{page_size:"Page Size",page_title:"Show Page",first:"First",first_title:"First Page",last:"Last",last_title:"Last Page",prev:"Prev",prev_title:"Prev Page",next:"Next",next_title:"Next Page",all:"All"},headerFilters:{default:"filter column...",columns:{}}}},f.prototype.registerModule("localize",O);var A=function(e){this.table=e};A.prototype.getConnections=function(e){var t,o=this,n=[];return t=f.prototype.comms.lookupTable(e),t.forEach(function(e){o.table!==e&&n.push(e)}),n},A.prototype.send=function(e,t,o,n){var i=this,r=this.getConnections(e);r.forEach(function(e){e.tableComms(i.table.element,t,o,n)}),!r.length&&e&&console.warn("Table Connection Error - No tables matching selector found",e)},A.prototype.receive=function(e,t,o,n){if(this.table.modExists(t))return this.table.modules[t].commsReceived(e,o,n);console.warn("Inter-table Comms Error - no such module:",t)},f.prototype.registerModule("comms",A);var m=function(e){this.table=e,this.allowedTypes=["","data","download","clipboard","print","htmlOutput"]};m.prototype.initializeColumn=function(e){var t=this,o=!1,n={};this.allowedTypes.forEach(function(i){var r,a="accessor"+(i.charAt(0).toUpperCase()+i.slice(1));e.definition[a]&&(r=t.lookupAccessor(e.definition[a]),r&&(o=!0,n[a]={accessor:r,params:e.definition[a+"Params"]||{}}))}),o&&(e.modules.accessor=n)},m.prototype.lookupAccessor=function(e){var t=!1;switch("undefined"===typeof e?"undefined":r(e)){case"string":this.accessors[e]?t=this.accessors[e]:console.warn("Accessor Error - No such accessor found, ignoring: ",e);break;case"function":t=e;break}return t},m.prototype.transformRow=function(e,t){var o="accessor"+(t.charAt(0).toUpperCase()+t.slice(1)),n=e.getComponent(),i=f.prototype.helpers.deepClone(e.data||{});return this.table.columnManager.traverse(function(e){var r,a,s,c;e.modules.accessor&&(a=e.modules.accessor[o]||e.modules.accessor.accessor||!1,a&&(r=e.getFieldValue(i),"undefined"!=r&&(c=e.getComponent(),s="function"===typeof a.params?a.params(r,i,t,c,n):a.params,e.setFieldValue(i,a.accessor(r,i,t,s,c,n)))))}),i},m.prototype.accessors={},f.prototype.registerModule("accessor",m);var v=function(e){this.table=e,this.config=!1,this.url="",this.urlGenerator=!1,this.params=!1,this.loaderElement=this.createLoaderElement(),this.msgElement=this.createMsgElement(),this.loadingElement=!1,this.errorElement=!1,this.loaderPromise=!1,this.progressiveLoad=!1,this.loading=!1,this.requestOrder=0};v.prototype.initialize=function(){var e;this.loaderElement.appendChild(this.msgElement),this.table.options.ajaxLoaderLoading&&("string"==typeof this.table.options.ajaxLoaderLoading?(e=document.createElement("template"),e.innerHTML=this.table.options.ajaxLoaderLoading.trim(),this.loadingElement=e.content.firstChild):this.loadingElement=this.table.options.ajaxLoaderLoading),this.loaderPromise=this.table.options.ajaxRequestFunc||this.defaultLoaderPromise,this.urlGenerator=this.table.options.ajaxURLGenerator||this.defaultURLGenerator,this.table.options.ajaxLoaderError&&("string"==typeof this.table.options.ajaxLoaderError?(e=document.createElement("template"),e.innerHTML=this.table.options.ajaxLoaderError.trim(),this.errorElement=e.content.firstChild):this.errorElement=this.table.options.ajaxLoaderError),this.table.options.ajaxParams&&this.setParams(this.table.options.ajaxParams),this.table.options.ajaxConfig&&this.setConfig(this.table.options.ajaxConfig),this.table.options.ajaxURL&&this.setUrl(this.table.options.ajaxURL),this.table.options.ajaxProgressiveLoad&&(this.table.options.pagination?(this.progressiveLoad=!1,console.error("Progressive Load Error - Pagination and progressive load cannot be used at the same time")):this.table.modExists("page")?(this.progressiveLoad=this.table.options.ajaxProgressiveLoad,this.table.modules.page.initializeProgressive(this.progressiveLoad)):console.error("Pagination plugin is required for progressive ajax loading"))},v.prototype.createLoaderElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-loader"),e},v.prototype.createMsgElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-loader-msg"),e.setAttribute("role","alert"),e},v.prototype.setParams=function(e,t){if(t)for(var o in this.params=this.params||{},e)this.params[o]=e[o];else this.params=e},v.prototype.getParams=function(){return this.params||{}},v.prototype.setConfig=function(e){if(this._loadDefaultConfig(),"string"==typeof e)this.config.method=e;else for(var t in e)this.config[t]=e[t]},v.prototype._loadDefaultConfig=function(e){var t=this;if(!t.config||e)for(var o in t.config={},t.defaultConfig)t.config[o]=t.defaultConfig[o]},v.prototype.setUrl=function(e){this.url=e},v.prototype.getUrl=function(){return this.url},v.prototype.loadData=function(e,t){return this.progressiveLoad?this._loadDataProgressive():this._loadDataStandard(e,t)},v.prototype.nextPage=function(e){var t;this.loading||(t=this.table.options.ajaxProgressiveLoadScrollMargin||2*this.table.rowManager.getElement().clientHeight,en||null===n)&&(n=e)}),null!==n?!1!==i?n.toFixed(i):n:""},min:function(e,t,o){var n=null,i="undefined"!==typeof o.precision&&o.precision;return e.forEach(function(e){e=Number(e),(e"),o.dataTreeExpandElement?"string"===typeof o.dataTreeExpandElement?(e=document.createElement("div"),e.innerHTML=o.dataTreeExpandElement,this.expandEl=e.firstChild):this.expandEl=o.dataTreeExpandElement:(this.expandEl=document.createElement("div"),this.expandEl.classList.add("tabulator-data-tree-control"),this.expandEl.tabIndex=0,this.expandEl.innerHTML="
"),r(o.dataTreeStartExpanded)){case"boolean":this.startOpen=function(e,t){return o.dataTreeStartExpanded};break;case"function":this.startOpen=o.dataTreeStartExpanded;break;default:this.startOpen=function(e,t){return o.dataTreeStartExpanded[t]};break}},_.prototype.initializeRow=function(e){var t=e.getData()[this.field],o=Array.isArray(t),n=o||!o&&"object"===("undefined"===typeof t?"undefined":r(t))&&null!==t;!n&&e.modules.dataTree&&e.modules.dataTree.branchEl&&e.modules.dataTree.branchEl.parentNode.removeChild(e.modules.dataTree.branchEl),!n&&e.modules.dataTree&&e.modules.dataTree.controlEl&&e.modules.dataTree.controlEl.parentNode.removeChild(e.modules.dataTree.controlEl),e.modules.dataTree={index:e.modules.dataTree?e.modules.dataTree.index:0,open:!!n&&(e.modules.dataTree?e.modules.dataTree.open:this.startOpen(e.getComponent(),0)),controlEl:!(!e.modules.dataTree||!n)&&e.modules.dataTree.controlEl,branchEl:!(!e.modules.dataTree||!n)&&e.modules.dataTree.branchEl,parent:!!e.modules.dataTree&&e.modules.dataTree.parent,children:n}},_.prototype.layoutRow=function(e){var t=this.elementField?e.getCell(this.elementField):e.getCells()[0],o=t.getElement(),n=e.modules.dataTree;n.branchEl&&(n.branchEl.parentNode&&n.branchEl.parentNode.removeChild(n.branchEl),n.branchEl=!1),n.controlEl&&(n.controlEl.parentNode&&n.controlEl.parentNode.removeChild(n.controlEl),n.controlEl=!1),this.generateControlElement(e,o),e.getElement().classList.add("tabulator-tree-level-"+n.index),n.index&&(this.branchEl?(n.branchEl=this.branchEl.cloneNode(!0),o.insertBefore(n.branchEl,o.firstChild),this.table.rtl?n.branchEl.style.marginRight=(n.branchEl.offsetWidth+n.branchEl.style.marginLeft)*(n.index-1)+n.index*this.indent+"px":n.branchEl.style.marginLeft=(n.branchEl.offsetWidth+n.branchEl.style.marginRight)*(n.index-1)+n.index*this.indent+"px"):this.table.rtl?o.style.paddingRight=parseInt(window.getComputedStyle(o,null).getPropertyValue("padding-right"))+n.index*this.indent+"px":o.style.paddingLeft=parseInt(window.getComputedStyle(o,null).getPropertyValue("padding-left"))+n.index*this.indent+"px")},_.prototype.generateControlElement=function(e,t){var o=this,n=e.modules.dataTree,i=(t=t||e.getCells()[0].getElement(),n.controlEl);!1!==n.children&&(n.open?(n.controlEl=this.collapseEl.cloneNode(!0),n.controlEl.addEventListener("click",function(t){t.stopPropagation(),o.collapseRow(e)})):(n.controlEl=this.expandEl.cloneNode(!0),n.controlEl.addEventListener("click",function(t){t.stopPropagation(),o.expandRow(e)})),n.controlEl.addEventListener("mousedown",function(e){e.stopPropagation()}),i&&i.parentNode===t?i.parentNode.replaceChild(n.controlEl,i):t.insertBefore(n.controlEl,t.firstChild))},_.prototype.setDisplayIndex=function(e){this.displayIndex=e},_.prototype.getDisplayIndex=function(){return this.displayIndex},_.prototype.getRows=function(e){var t=this,o=[];return e.forEach(function(e,n){var i,r;o.push(e),e instanceof b&&(e.create(),i=e.modules.dataTree.children,i.index||!1===i.children||(r=t.getChildren(e),r.forEach(function(e){e.create(),o.push(e)})))}),o},_.prototype.getChildren=function(e,t){var o=this,n=e.modules.dataTree,i=[],r=[];return!1!==n.children&&(n.open||t)&&(Array.isArray(n.children)||(n.children=this.generateChildren(e)),i=this.table.modExists("filter")&&this.table.options.dataTreeFilter?this.table.modules.filter.filter(n.children):n.children,this.table.modExists("sort")&&this.table.options.dataTreeSort&&this.table.modules.sort.sort(i),i.forEach(function(e){r.push(e);var t=o.getChildren(e);t.forEach(function(e){r.push(e)})})),r},_.prototype.generateChildren=function(e){var t=this,o=[],n=e.getData()[this.field];return Array.isArray(n)||(n=[n]),n.forEach(function(n){var i=new b(n||{},t.table.rowManager);i.create(),i.modules.dataTree.index=e.modules.dataTree.index+1,i.modules.dataTree.parent=e,i.modules.dataTree.children&&(i.modules.dataTree.open=t.startOpen(i.getComponent(),i.modules.dataTree.index)),o.push(i)}),o},_.prototype.expandRow=function(e,t){var o=e.modules.dataTree;!1!==o.children&&(o.open=!0,e.reinitialize(),this.table.rowManager.refreshActiveData("tree",!1,!0),this.table.options.dataTreeRowExpanded(e.getComponent(),e.modules.dataTree.index))},_.prototype.collapseRow=function(e){var t=e.modules.dataTree;!1!==t.children&&(t.open=!1,e.reinitialize(),this.table.rowManager.refreshActiveData("tree",!1,!0),this.table.options.dataTreeRowCollapsed(e.getComponent(),e.modules.dataTree.index))},_.prototype.toggleRow=function(e){var t=e.modules.dataTree;!1!==t.children&&(t.open?this.collapseRow(e):this.expandRow(e))},_.prototype.getTreeParent=function(e){return!!e.modules.dataTree.parent&&e.modules.dataTree.parent.getComponent()},_.prototype.getFilteredTreeChildren=function(e){var t,o=e.modules.dataTree,n=[];return o.children&&(Array.isArray(o.children)||(o.children=this.generateChildren(e)),t=this.table.modExists("filter")&&this.table.options.dataTreeFilter?this.table.modules.filter.filter(o.children):o.children,t.forEach(function(e){e instanceof b&&n.push(e)})),n},_.prototype.rowDelete=function(e){var t,o=e.modules.dataTree.parent;o&&(t=this.findChildIndex(e,o),!1!==t&&o.data[this.field].splice(t,1),o.data[this.field].length||delete o.data[this.field],this.initializeRow(o),this.layoutRow(o)),this.table.rowManager.refreshActiveData("tree",!1,!0)},_.prototype.addTreeChildRow=function(e,t,o,n){var i=!1;"string"===typeof t&&(t=JSON.parse(t)),Array.isArray(e.data[this.field])||(e.data[this.field]=[],e.modules.dataTree.open=this.startOpen(e.getComponent(),e.modules.dataTree.index)),"undefined"!==typeof n&&(i=this.findChildIndex(n,e),!1!==i&&e.data[this.field].splice(o?i:i+1,0,t)),!1===i&&(o?e.data[this.field].unshift(t):e.data[this.field].push(t)),this.initializeRow(e),this.layoutRow(e),this.table.rowManager.refreshActiveData("tree",!1,!0)},_.prototype.findChildIndex=function(e,t){var o=this,n=!1;return"object"==("undefined"===typeof e?"undefined":r(e))?e instanceof b?n=e.data:e instanceof u?n=e._getSelf().data:"undefined"!==typeof HTMLElement&&e instanceof HTMLElement&&t.modules.dataTree&&(n=t.modules.dataTree.children.find(function(t){return t instanceof b&&t.element===e}),n&&(n=n.data)):n="undefined"!=typeof e&&null!==e&&t.data[this.field].find(function(t){return t.data[o.table.options.index]==e}),n&&(Array.isArray(t.data[this.field])&&(n=t.data[this.field].indexOf(n)),-1==n&&(n=!1)),n},_.prototype.getTreeChildren=function(e,t,o){var n=this,i=e.modules.dataTree,r=[];return i.children&&(Array.isArray(i.children)||(i.children=this.generateChildren(e)),i.children.forEach(function(e){e instanceof b&&(r.push(t?e.getComponent():e),o&&(r=r.concat(n.getTreeChildren(e,t,o))))})),r},_.prototype.checkForRestyle=function(e){e.row.cells.indexOf(e)||e.row.reinitialize()},_.prototype.getChildField=function(){return this.field},_.prototype.redrawNeeded=function(e){return!!this.field&&"undefined"!==typeof e[this.field]||!!this.elementField&&"undefined"!==typeof e[this.elementField]},f.prototype.registerModule("dataTree",_);var W=function(e){this.table=e};W.prototype.download=function(e,t,o,n,i){var r=this,a=!1;function s(o,n){i?!0===i?r.triggerDownload(o,n,e,t,!0):i(o):r.triggerDownload(o,n,e,t)}if("function"==typeof e?a=e:r.downloaders[e]?a=r.downloaders[e]:console.warn("Download Error - No such download type found: ",e),a){var c=this.generateExportList(n);a.call(this.table,c,o||{},s)}},W.prototype.generateExportList=function(e){var t=this.table.modules.export.generateExportList(this.table.options.downloadConfig,!1,e||this.table.options.downloadRowRange,"download"),o=this.table.options.groupHeaderDownload;return o&&!Array.isArray(o)&&(o=[o]),t.forEach(function(e){var t;"group"===e.type&&(t=e.columns[0],o&&o[e.indent]&&(t.value=o[e.indent](t.value,e.component._group.getRowCount(),e.component._group.getData(),e.component)))}),t},W.prototype.triggerDownload=function(e,t,o,n,i){var r=document.createElement("a"),a=new Blob([e],{type:t});n=n||"Tabulator."+("function"===typeof o?"txt":o);a=this.table.options.downloadReady.call(this.table,e,a),a&&(i?window.open(window.URL.createObjectURL(a)):navigator.msSaveOrOpenBlob?navigator.msSaveOrOpenBlob(a,n):(r.setAttribute("href",window.URL.createObjectURL(a)),r.setAttribute("download",n),r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r)),this.table.options.downloadComplete&&this.table.options.downloadComplete())},W.prototype.commsReceived=function(e,t,o){switch(t){case"intercept":this.download(o.type,"",o.options,o.active,o.intercept);break}},W.prototype.downloaders={csv:function(e,t,o){var n=t&&t.delimiter?t.delimiter:",",i=[],a=[];e.forEach(function(e){var t=[];switch(e.type){case"group":console.warn("Download Warning - CSV downloader cannot process row groups");break;case"calc":console.warn("Download Warning - CSV downloader cannot process column calculations");break;case"header":e.columns.forEach(function(e,t){e&&1===e.depth&&(a[t]="undefined"==typeof e.value||null===e.value?"":'"'+String(e.value).split('"').join('""')+'"')});break;case"row":e.columns.forEach(function(e){if(e){switch(r(e.value)){case"object":e.value=JSON.stringify(e.value);break;case"undefined":case"null":e.value="";break}t.push('"'+String(e.value).split('"').join('""')+'"')}}),i.push(t.join(n));break}}),a.length&&i.unshift(a.join(n)),i=i.join("\n"),t.bom&&(i="\ufeff"+i),o(i,"text/csv")},json:function(e,t,o){var n=[];e.forEach(function(e){var t={};switch(e.type){case"header":break;case"group":console.warn("Download Warning - JSON downloader cannot process row groups");break;case"calc":console.warn("Download Warning - JSON downloader cannot process column calculations");break;case"row":e.columns.forEach(function(e){e&&(t[e.component.getField()]=e.value)}),n.push(t);break}}),n=JSON.stringify(n,null,"\t"),o(n,"application/json")},pdf:function(e,t,o){var n=[],i=[],a={},s=t.rowGroupStyles||{fontStyle:"bold",fontSize:12,cellPadding:6,fillColor:220},c=t.rowCalcStyles||{fontStyle:"bold",fontSize:10,cellPadding:4,fillColor:232},p=t.jsPDF||{},l=t&&t.title?t.title:"";function u(e,t){var o=[];return e.columns.forEach(function(e){var n;if(e){switch(r(e.value)){case"object":e.value=JSON.stringify(e.value);break;case"undefined":case"null":e.value="";break}n={content:e.value,colSpan:e.width,rowSpan:e.height},t&&(n.styles=t),o.push(n)}else o.push("")}),o}p.orientation||(p.orientation=t.orientation||"landscape"),p.unit||(p.unit="pt"),e.forEach(function(e){switch(e.type){case"header":n.push(u(e));break;case"group":i.push(u(e,s));break;case"calc":i.push(u(e,c));break;case"row":i.push(u(e));break}});var b=new jsPDF(p);t&&t.autoTable&&(a="function"===typeof t.autoTable?t.autoTable(b)||{}:t.autoTable),l&&(a.addPageContent=function(e){b.text(l,40,30)}),a.head=n,a.body=i,b.autoTable(a),t&&t.documentProcessing&&t.documentProcessing(b),o(b.output("arraybuffer"),"application/pdf")},xlsx:function(e,t,o){var n,i=this,a=t.sheetName||"Sheet1",s=XLSX.utils.book_new();function c(){var t=[],o=[],n={},i={s:{c:0,r:0},e:{c:e[0]?e[0].columns.reduce(function(e,t){return e+(t&&t.width?t.width:1)},0):0,r:e.length}};return e.forEach(function(e,n){var i=[];e.columns.forEach(function(e,t){e?(i.push(e.value instanceof Date||"object"!==r(e.value)?e.value:JSON.stringify(e.value)),(e.width>1||e.height>-1)&&o.push({s:{r:n,c:t},e:{r:n+e.height-1,c:t+e.width-1}})):i.push("")}),t.push(i)}),XLSX.utils.sheet_add_aoa(n,t),n["!ref"]=XLSX.utils.encode_range(i),o.length&&(n["!merges"]=o),n}if(s.SheetNames=[],s.Sheets={},t.sheetOnly)o(c());else{if(t.sheets)for(var p in t.sheets)!0===t.sheets[p]?(s.SheetNames.push(p),s.Sheets[p]=c()):(s.SheetNames.push(p),this.modules.comms.send(t.sheets[p],"download","intercept",{type:"xlsx",options:{sheetOnly:!0},active:i.active,intercept:function(e){s.Sheets[p]=e}}));else s.SheetNames.push(a),s.Sheets[a]=c();t.documentProcessing&&(s=t.documentProcessing(s)),n=XLSX.write(s,{bookType:"xlsx",bookSST:!0,type:"binary"}),o(l(n),"application/octet-stream")}function l(e){for(var t=new ArrayBuffer(e.length),o=new Uint8Array(t),n=0;n!=e.length;++n)o[n]=255&e.charCodeAt(n);return t}},html:function(e,t,o){this.modExists("export",!0)&&o(this.modules.export.genereateHTMLTable(e),"text/html")}},f.prototype.registerModule("download",W);var R=function(e){this.table=e,this.currentCell=!1,this.mouseClick=!1,this.recursionBlock=!1,this.invalidEdit=!1,this.editedCells=[]};R.prototype.initializeColumn=function(e){var t=this,o={editor:!1,blocked:!1,check:e.definition.editable,params:e.definition.editorParams||{}};switch(r(e.definition.editor)){case"string":"tick"===e.definition.editor&&(e.definition.editor="tickCross",console.warn("DEPRECATION WARNING - the tick editor has been deprecated, please use the tickCross editor")),t.editors[e.definition.editor]?o.editor=t.editors[e.definition.editor]:console.warn("Editor Error - No such editor found: ",e.definition.editor);break;case"function":o.editor=e.definition.editor;break;case"boolean":!0===e.definition.editor&&("function"!==typeof e.definition.formatter?("tick"===e.definition.formatter&&(e.definition.formatter="tickCross",console.warn("DEPRECATION WARNING - the tick editor has been deprecated, please use the tickCross editor")),t.editors[e.definition.formatter]?o.editor=t.editors[e.definition.formatter]:o.editor=t.editors["input"]):console.warn("Editor Error - Cannot auto lookup editor for a custom formatter: ",e.definition.formatter));break}o.editor&&(e.modules.edit=o)},R.prototype.getCurrentCell=function(){return!!this.currentCell&&this.currentCell.getComponent()},R.prototype.clearEditor=function(e){var t,o=this.currentCell;if(this.invalidEdit=!1,o){this.currentCell=!1,t=o.getElement(),e?o.validate():t.classList.remove("tabulator-validation-fail"),t.classList.remove("tabulator-editing");while(t.firstChild)t.removeChild(t.firstChild);o.row.getElement().classList.remove("tabulator-row-editing")}},R.prototype.cancelEdit=function(){if(this.currentCell){var e=this.currentCell,t=this.currentCell.getComponent();this.clearEditor(!0),e.setValueActual(e.getValue()),e.cellRendered(),("textarea"==e.column.definition.editor||e.column.definition.variableHeight)&&e.row.normalizeHeight(!0),e.column.cellEvents.cellEditCancelled&&e.column.cellEvents.cellEditCancelled.call(this.table,t),this.table.options.cellEditCancelled.call(this.table,t)}},R.prototype.bindEditor=function(e){var t=this,o=e.getElement(!0);o.setAttribute("tabindex",0),o.addEventListener("click",function(e){o.classList.contains("tabulator-editing")||o.focus({preventScroll:!0})}),o.addEventListener("mousedown",function(e){2===e.button?e.preventDefault():t.mouseClick=!0}),o.addEventListener("focus",function(o){t.recursionBlock||t.edit(e,o,!1)})},R.prototype.focusCellNoEvent=function(e,t){this.recursionBlock=!0,t&&"ie"===this.table.browser||e.getElement().focus({preventScroll:!0}),this.recursionBlock=!1},R.prototype.editCell=function(e,t){this.focusCellNoEvent(e),this.edit(e,!1,t)},R.prototype.focusScrollAdjust=function(e){if("virtual"==this.table.rowManager.getRenderMode()){var t=this.table.rowManager.element.scrollTop,o=this.table.rowManager.element.clientHeight+this.table.rowManager.element.scrollTop,n=e.row.getElement();n.offsetTop;n.offsetTopo&&(this.table.rowManager.element.scrollTop+=n.offsetTop+n.offsetHeight-o);var i=this.table.rowManager.element.scrollLeft,r=this.table.rowManager.element.clientWidth+this.table.rowManager.element.scrollLeft,a=e.getElement();a.offsetLeft;this.table.modExists("frozenColumns")&&(i+=parseInt(this.table.modules.frozenColumns.leftMargin),r-=parseInt(this.table.modules.frozenColumns.rightMargin)),this.table.options.virtualDomHoz&&(i-=parseInt(this.table.vdomHoz.vDomPadLeft),r-=parseInt(this.table.vdomHoz.vDomPadLeft)),a.offsetLeftr&&(this.table.rowManager.element.scrollLeft+=a.offsetLeft+a.offsetWidth-r)}},R.prototype.edit=function(e,t,o){var n,i,a,s=this,c=!0,p=function(){},l=e.getElement();if(!this.currentCell){if(e.column.modules.edit.blocked)return this.mouseClick=!1,l.blur(),!1;switch(t&&t.stopPropagation(),r(e.column.modules.edit.check)){case"function":c=e.column.modules.edit.check(e.getComponent());break;case"boolean":c=e.column.modules.edit.check;break}if(c||o){if(s.cancelEdit(),s.currentCell=e,this.focusScrollAdjust(e),i=e.getComponent(),this.mouseClick&&(this.mouseClick=!1,e.column.cellEvents.cellClick&&e.column.cellEvents.cellClick.call(this.table,t,i)),e.column.cellEvents.cellEditing&&e.column.cellEvents.cellEditing.call(this.table,i),s.table.options.cellEditing.call(this.table,i),a="function"===typeof e.column.modules.edit.params?e.column.modules.edit.params(i):e.column.modules.edit.params,n=e.column.modules.edit.editor.call(s,i,h,d,M,a),!1===n)return l.blur(),!1;if(!(n instanceof Node))return console.warn("Edit Error - Editor should return an instance of Node, the editor returned:",n),l.blur(),!1;l.classList.add("tabulator-editing"),e.row.getElement().classList.add("tabulator-row-editing");while(l.firstChild)l.removeChild(l.firstChild);l.appendChild(n),p();for(var u=l.children,b=0;b46){if(a>=o.length)return t.preventDefault(),t.stopPropagation(),!1,!1;switch(o[a]){case n:if(s.toUpperCase()==s.toLowerCase())return t.preventDefault(),t.stopPropagation(),!1,!1;break;case i:if(isNaN(s))return t.preventDefault(),t.stopPropagation(),!1,!1;break;case r:break;default:if(s!==o[a])return t.preventDefault(),t.stopPropagation(),!1,!1}!0}}),e.addEventListener("keyup",function(o){o.keyCode>46&&t.maskAutoFill&&a(e.value.length)}),e.placeholder||(e.placeholder=o),t.maskAutoFill&&a(e.value.length)},R.prototype.getEditedCells=function(){var e=[];return this.editedCells.forEach(function(t){e.push(t.getComponent())}),e},R.prototype.clearEdited=function(e){var t;e.modules.edit&&e.modules.edit.edited&&(e.modules.edit.edited=!1,e.modules.validate&&(e.modules.validate.invalid=!1)),t=this.editedCells.indexOf(e),t>-1&&this.editedCells.splice(t,1)},R.prototype.editors={input:function(e,t,o,n,i){var a=e.getValue(),s=document.createElement("input");if(s.setAttribute("type",i.search?"search":"text"),s.style.padding="4px",s.style.width="100%",s.style.boxSizing="border-box",i.elementAttributes&&"object"==r(i.elementAttributes))for(var c in i.elementAttributes)"+"==c.charAt(0)?(c=c.slice(1),s.setAttribute(c,s.getAttribute(c)+i.elementAttributes["+"+c])):s.setAttribute(c,i.elementAttributes[c]);function p(e){(null===a||"undefined"===typeof a)&&""!==s.value||s.value!==a?o(s.value)&&(a=s.value):n()}return s.value="undefined"!==typeof a?a:"",t(function(){s.focus({preventScroll:!0}),s.style.height="100%"}),s.addEventListener("change",p),s.addEventListener("blur",p),s.addEventListener("keydown",function(e){switch(e.keyCode){case 13:p(e);break;case 27:n();break;case 35:case 36:e.stopPropagation();break}}),i.mask&&this.table.modules.edit.maskInput(s,i),s},textarea:function(e,t,o,n,i){var a=e.getValue(),s=i.verticalNavigation||"hybrid",c=String(null!==a&&"undefined"!==typeof a?a:""),p=((c.match(/(?:\r\n|\r|\n)/g)||[]).length,document.createElement("textarea")),l=0;if(p.style.display="block",p.style.padding="2px",p.style.height="100%",p.style.width="100%",p.style.boxSizing="border-box",p.style.whiteSpace="pre-wrap",p.style.resize="none",i.elementAttributes&&"object"==r(i.elementAttributes))for(var u in i.elementAttributes)"+"==u.charAt(0)?(u=u.slice(1),p.setAttribute(u,p.getAttribute(u)+i.elementAttributes["+"+u])):p.setAttribute(u,i.elementAttributes[u]);function b(t){(null===a||"undefined"===typeof a)&&""!==p.value||p.value!==a?(o(p.value)&&(a=p.value),setTimeout(function(){e.getRow().normalizeHeight()},300)):n()}return p.value=c,t(function(){p.focus({preventScroll:!0}),p.style.height="100%",p.scrollHeight,p.style.height=p.scrollHeight+"px",e.getRow().normalizeHeight()}),p.addEventListener("change",b),p.addEventListener("blur",b),p.addEventListener("keyup",function(){p.style.height="";var t=p.scrollHeight;p.style.height=t+"px",t!=l&&(l=t,e.getRow().normalizeHeight())}),p.addEventListener("keydown",function(e){switch(e.keyCode){case 27:n();break;case 38:("editor"==s||"hybrid"==s&&p.selectionStart)&&(e.stopImmediatePropagation(),e.stopPropagation());break;case 40:("editor"==s||"hybrid"==s&&p.selectionStart!==p.value.length)&&(e.stopImmediatePropagation(),e.stopPropagation());break;case 35:case 36:e.stopPropagation();break}}),i.mask&&this.table.modules.edit.maskInput(p,i),p},number:function(e,t,o,n,i){var a=e.getValue(),s=i.verticalNavigation||"editor",c=document.createElement("input");if(c.setAttribute("type","number"),"undefined"!=typeof i.max&&c.setAttribute("max",i.max),"undefined"!=typeof i.min&&c.setAttribute("min",i.min),"undefined"!=typeof i.step&&c.setAttribute("step",i.step),c.style.padding="4px",c.style.width="100%",c.style.boxSizing="border-box",i.elementAttributes&&"object"==r(i.elementAttributes))for(var p in i.elementAttributes)"+"==p.charAt(0)?(p=p.slice(1),c.setAttribute(p,c.getAttribute(p)+i.elementAttributes["+"+p])):c.setAttribute(p,i.elementAttributes[p]);c.value=a;var l=function(e){u()};function u(){var e=c.value;isNaN(e)||""===e||(e=Number(e)),e!==a?o(e)&&(a=e):n()}return t(function(){c.removeEventListener("blur",l),c.focus({preventScroll:!0}),c.style.height="100%",c.addEventListener("blur",l)}),c.addEventListener("keydown",function(e){switch(e.keyCode){case 13:u();break;case 27:n();break;case 38:case 40:"editor"==s&&(e.stopImmediatePropagation(),e.stopPropagation());break;case 35:case 36:e.stopPropagation();break}}),i.mask&&this.table.modules.edit.maskInput(c,i),c},range:function(e,t,o,n,i){var a=e.getValue(),s=document.createElement("input");if(s.setAttribute("type","range"),"undefined"!=typeof i.max&&s.setAttribute("max",i.max),"undefined"!=typeof i.min&&s.setAttribute("min",i.min),"undefined"!=typeof i.step&&s.setAttribute("step",i.step),s.style.padding="4px",s.style.width="100%",s.style.boxSizing="border-box",i.elementAttributes&&"object"==r(i.elementAttributes))for(var c in i.elementAttributes)"+"==c.charAt(0)?(c=c.slice(1),s.setAttribute(c,s.getAttribute(c)+i.elementAttributes["+"+c])):s.setAttribute(c,i.elementAttributes[c]);function p(){var e=s.value;isNaN(e)||""===e||(e=Number(e)),e!=a?o(e)&&(a=e):n()}return s.value=a,t(function(){s.focus({preventScroll:!0}),s.style.height="100%"}),s.addEventListener("blur",function(e){p()}),s.addEventListener("keydown",function(e){switch(e.keyCode){case 13:p();break;case 27:n();break}}),s},select:function(e,t,o,n,i){var a=this,s=this,c=e.getElement(),p=e.getValue(),l=i.verticalNavigation||"editor",u="undefined"!==typeof p||null===p?Array.isArray(p)?p:[p]:"undefined"!==typeof i.defaultValue?i.defaultValue:[],b=document.createElement("input"),d=document.createElement("div"),M=i.multiselect,h=[],z={},O=[],A=[],m=!0,v=!1,g="",y=null;function q(t){var o,n={},i=s.table.getData();return o=t?s.table.columnManager.getColumnByField(t):e.getColumn()._getSelf(),o?i.forEach(function(e){var t=o.getFieldValue(e);null!==t&&"undefined"!==typeof t&&""!==t&&(n[t]=!0)}):console.warn("unable to find matching column to create select lookup list:",t),Object.keys(n)}function _(t,o){var n=[],a=[];function s(e){e={label:e.label,value:e.value,itemParams:e.itemParams,elementAttributes:e.elementAttributes,element:!1};return o.indexOf(e.value)>-1&&w(e),n.push(e),a.push(e),e}if("function"==typeof t&&(t=t(e)),Array.isArray(t))t.forEach(function(e){var t;"object"===("undefined"===typeof e?"undefined":r(e))?e.options?(t={label:e.label,group:!0,itemParams:e.itemParams,elementAttributes:e.elementAttributes,element:!1},a.push(t),e.options.forEach(function(e){s(e)})):s(e):(t={label:e,value:e,element:!1},o.indexOf(t.value)>-1&&w(t),n.push(t),a.push(t))});else for(var c in t){var p={label:t[c],value:c,element:!1};o.indexOf(p.value)>-1&&w(p),n.push(p),a.push(p)}i.sortValuesList&&(n.sort(function(e,t){return e.labelt.label?1:0}),a.sort(function(e,t){return e.labelt.label?1:0}),"asc"!==i.sortValuesList&&(n.reverse(),a.reverse())),h=n,O=a,W()}function W(){while(d.firstChild)d.removeChild(d.firstChild);O.forEach(function(t){var o=t.element;if(!o){if(o=document.createElement("div"),t.label=i.listItemFormatter?i.listItemFormatter(t.value,t.label,e,o,t.itemParams):t.label,t.group?(o.classList.add("tabulator-edit-select-list-group"),o.tabIndex=0,o.innerHTML=""===t.label?" ":t.label):(o.classList.add("tabulator-edit-select-list-item"),o.tabIndex=0,o.innerHTML=""===t.label?" ":t.label,o.addEventListener("click",function(){v=!0,setTimeout(function(){v=!1},10),M?(C(t),b.focus()):S(t)}),A.indexOf(t)>-1&&o.classList.add("active")),t.elementAttributes&&"object"==r(t.elementAttributes))for(var n in t.elementAttributes)"+"==n.charAt(0)?(n=n.slice(1),o.setAttribute(n,b.getAttribute(n)+t.elementAttributes["+"+n])):o.setAttribute(n,t.elementAttributes[n]);o.addEventListener("mousedown",function(){m=!1,setTimeout(function(){m=!0},10)}),t.element=o}d.appendChild(o)})}function R(e,t){!M&&z&&z.element&&z.element.classList.remove("active"),z&&z.element&&z.element.classList.remove("focused"),z=e,e.element&&(e.element.classList.add("focused"),t&&e.element.classList.add("active")),e&&e.element&&e.element.scrollIntoView&&e.element.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})}function w(e){var t=A.indexOf(e);-1==t&&(A.push(e),R(e,!0)),T()}function L(e){var t=A[e];e>-1&&(A.splice(e,1),t.element&&t.element.classList.remove("active"))}function C(e){e||(e=z);var t=A.indexOf(e);t>-1?L(t):(!0!==M&&A.length>=M&&L(0),w(e)),T()}function S(e){k(),e||(e=z),e&&(b.value=e.label,o(e.value)),u=[e.value]}function E(e){e||k();var t=[];A.forEach(function(e){t.push(e.value)}),u=t,o(t)}function T(){var e=[];A.forEach(function(t){e.push(t.label)}),b.value=e.join(", "),!1===s.currentCell&&E(!0)}function x(){for(var e=A.length,t=0;t0&&R(h[t-1],!M));break;case 40:t=h.indexOf(z),("editor"==l||"hybrid"==l&&t=38&&e.keyCode<=90&&D(e.keyCode)}}),b.addEventListener("blur",function(e){m&&(M?E():N())}),b.addEventListener("focus",function(e){v||B()}),d=document.createElement("div"),d.classList.add("tabulator-edit-select-list"),t(function(){b.style.height="100%",b.focus({preventScroll:!0})}),setTimeout(function(){a.table.rowManager.element.addEventListener("scroll",N)},10),b},autocomplete:function(e,t,o,n,i){var a=this,s=this,c=e.getElement(),p=e.getValue(),l=i.verticalNavigation||"editor",u="undefined"!==typeof p||null===p?p:"undefined"!==typeof i.defaultValue?i.defaultValue:"",b=document.createElement("input"),d=document.createElement("div"),M=[],h=!1,z=!0,O=!1;if(b.setAttribute("type","search"),b.style.padding="4px",b.style.width="100%",b.style.boxSizing="border-box",i.elementAttributes&&"object"==r(i.elementAttributes))for(var A in i.elementAttributes)"+"==A.charAt(0)?(A=A.slice(1),b.setAttribute(A,b.getAttribute(A)+i.elementAttributes["+"+A])):b.setAttribute(A,i.elementAttributes[A]);function m(){!0===i.values?O=v():"string"===typeof i.values&&(O=v(i.values))}function v(t){var o,n={},r=s.table.getData();return o=t?s.table.columnManager.getColumnByField(t):e.getColumn()._getSelf(),o?(r.forEach(function(e){var t=o.getFieldValue(e);null!==t&&"undefined"!==typeof t&&""!==t&&(n[t]=!0)}),n=i.sortValuesList?"asc"==i.sortValuesList?Object.keys(n).sort():Object.keys(n).sort().reverse():Object.keys(n)):console.warn("unable to find matching column to create autocomplete lookup list:",t),n}function g(e,t){var o,n,r=[];o=O||(i.values||[]),i.searchFunc?(r=i.searchFunc(e,o),r instanceof Promise?(y("undefined"!==typeof i.searchingPlaceholder?i.searchingPlaceholder:"Searching..."),r.then(function(e){W(q(e),t)}).catch(function(e){console.err("error in autocomplete search promise:",e)})):W(q(r),t)):(n=q(o),""===e?i.showListOnEmpty&&(r=n):n.forEach(function(t){null===t.value&&"undefined"===typeof t.value||(String(t.value).toLowerCase().indexOf(String(e).toLowerCase())>-1||String(t.title).toLowerCase().indexOf(String(e).toLowerCase())>-1)&&r.push(t)}),W(r,t))}function y(e){var t=document.createElement("div");_(),!1!==e&&(t.classList.add("tabulator-edit-select-list-notice"),t.tabIndex=0,e instanceof Node?t.appendChild(e):t.innerHTML=e,d.appendChild(t))}function q(e){var t=[];if(Array.isArray(e))e.forEach(function(e){var o={};"object"===("undefined"===typeof e?"undefined":r(e))?(o.title=i.listItemFormatter?i.listItemFormatter(e.value,e.label):e.label,o.value=e.value):(o.title=i.listItemFormatter?i.listItemFormatter(e,e):e,o.value=e),t.push(o)});else for(var o in e){var n={title:i.listItemFormatter?i.listItemFormatter(o,e[o]):e[o],value:o};t.push(n)}return t}function _(){while(d.firstChild)d.removeChild(d.firstChild)}function W(e,t){e.length?R(e,t):i.emptyPlaceholder&&y(i.emptyPlaceholder)}function R(e,t){var o=!1;_(),M=e,M.forEach(function(e){var n=e.element;n||(n=document.createElement("div"),n.classList.add("tabulator-edit-select-list-item"),n.tabIndex=0,n.innerHTML=e.title,n.addEventListener("click",function(t){C(e),w()}),n.addEventListener("mousedown",function(e){z=!1,setTimeout(function(){z=!0},10)}),e.element=n,t&&e.value==p&&(b.value=e.title,e.element.classList.add("active"),o=!0),e===h&&(e.element.classList.add("active"),o=!0)),d.appendChild(n)}),o||C(!1)}function w(){S(),h?p!==h.value?(p=h.value,b.value=h.title,o(h.value)):n():i.freetext?(p=b.value,o(b.value)):i.allowEmpty&&""===b.value?(p=b.value,o(b.value)):n()}function L(){if(!d.parentNode){console.log("show",u);while(d.firstChild)d.removeChild(d.firstChild);var e=f.prototype.helpers.elOffset(c);d.style.minWidth=c.offsetWidth+"px",d.style.top=e.top+c.offsetHeight+"px",d.style.left=e.left+"px",document.body.appendChild(d)}}function C(e,t){h&&h.element&&h.element.classList.remove("active"),h=e,e&&e.element&&e.element.classList.add("active"),e&&e.element&&e.element.scrollIntoView&&e.element.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})}function S(){d.parentNode&&d.parentNode.removeChild(d),T()}function E(){S(),n()}function T(){s.table.rowManager.element.removeEventListener("scroll",E)}return d.classList.add("tabulator-edit-select-list"),d.addEventListener("mousedown",function(e){z=!1,setTimeout(function(){z=!0},10)}),b.addEventListener("keydown",function(e){var t;switch(e.keyCode){case 38:t=M.indexOf(h),("editor"==l||"hybrid"==l&&t)&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),C(t>0&&M[t-1]));break;case 40:t=M.indexOf(h),("editor"==l||"hybrid"==l&&t'):("ie"==a.table.browser?t.setAttribute("class","tabulator-star-inactive"):t.classList.replace("tabulator-star-active","tabulator-star-inactive"),t.innerHTML='')})}function h(e){var t=document.createElement("span"),n=d.cloneNode(!0);u.push(n),t.addEventListener("mouseenter",function(t){t.stopPropagation(),t.stopImmediatePropagation(),M(e)}),t.addEventListener("mousemove",function(e){e.stopPropagation(),e.stopImmediatePropagation()}),t.addEventListener("click",function(t){t.stopPropagation(),t.stopImmediatePropagation(),o(e),s.blur()}),t.appendChild(n),b.appendChild(t)}function f(e){c=e,M(e)}if(s.style.whiteSpace="nowrap",s.style.overflow="hidden",s.style.textOverflow="ellipsis",b.style.verticalAlign="middle",b.style.display="inline-block",b.style.padding="4px",d.setAttribute("width",l),d.setAttribute("height",l),d.setAttribute("viewBox","0 0 512 512"),d.setAttribute("xml:space","preserve"),d.style.padding="0 1px",i.elementAttributes&&"object"==r(i.elementAttributes))for(var z in i.elementAttributes)"+"==z.charAt(0)?(z=z.slice(1),b.setAttribute(z,b.getAttribute(z)+i.elementAttributes["+"+z])):b.setAttribute(z,i.elementAttributes[z]);for(var O=1;O<=p;O++)h(O);return c=Math.min(parseInt(c),p),M(c),b.addEventListener("mousemove",function(e){M(0)}),b.addEventListener("click",function(e){o(0)}),s.addEventListener("blur",function(e){n()}),s.addEventListener("keydown",function(e){switch(e.keyCode){case 39:f(c+1);break;case 37:f(c-1);break;case 13:o(c);break;case 27:n();break}}),b},progress:function(e,t,o,n,i){var a,s,c=e.getElement(),p="undefined"===typeof i.max?c.getElementsByTagName("div")[0].getAttribute("max")||100:i.max,l="undefined"===typeof i.min?c.getElementsByTagName("div")[0].getAttribute("min")||0:i.min,u=(p-l)/100,b=e.getValue()||0,d=document.createElement("div"),M=document.createElement("div");function h(){var e=window.getComputedStyle(c,null),t=u*Math.round(M.offsetWidth/((c.clientWidth-parseInt(e.getPropertyValue("padding-left"))-parseInt(e.getPropertyValue("padding-right")))/100))+l;o(t),c.setAttribute("aria-valuenow",t),c.setAttribute("aria-label",b)}if(d.style.position="absolute",d.style.right="0",d.style.top="0",d.style.bottom="0",d.style.width="5px",d.classList.add("tabulator-progress-handle"),M.style.display="inline-block",M.style.position="relative",M.style.height="100%",M.style.backgroundColor="#488CE9",M.style.maxWidth="100%",M.style.minWidth="0%",i.elementAttributes&&"object"==r(i.elementAttributes))for(var f in i.elementAttributes)"+"==f.charAt(0)?(f=f.slice(1),M.setAttribute(f,M.getAttribute(f)+i.elementAttributes["+"+f])):M.setAttribute(f,i.elementAttributes[f]);return c.style.padding="4px 4px",b=Math.min(parseFloat(b),p),b=Math.max(parseFloat(b),l),b=Math.round((b-l)/u),M.style.width=b+"%",c.setAttribute("aria-valuemin",l),c.setAttribute("aria-valuemax",p),M.appendChild(d),d.addEventListener("mousedown",function(e){a=e.screenX,s=M.offsetWidth}),d.addEventListener("mouseover",function(){d.style.cursor="ew-resize"}),c.addEventListener("mousemove",function(e){a&&(M.style.width=s+e.screenX-a+"px")}),c.addEventListener("mouseup",function(e){a&&(e.stopPropagation(),e.stopImmediatePropagation(),a=!1,s=!1,h())}),c.addEventListener("keydown",function(e){switch(e.keyCode){case 39:e.preventDefault(),M.style.width=M.clientWidth+c.clientWidth/100+"px";break;case 37:e.preventDefault(),M.style.width=M.clientWidth-c.clientWidth/100+"px";break;case 9:case 13:h();break;case 27:n();break}}),c.addEventListener("blur",function(){n()}),M},tickCross:function(e,t,o,n,i){var a=e.getValue(),s=document.createElement("input"),c=i.tristate,p="undefined"===typeof i.indeterminateValue?null:i.indeterminateValue,l=!1;if(s.setAttribute("type","checkbox"),s.style.marginTop="5px",s.style.boxSizing="border-box",i.elementAttributes&&"object"==r(i.elementAttributes))for(var u in i.elementAttributes)"+"==u.charAt(0)?(u=u.slice(1),s.setAttribute(u,s.getAttribute(u)+i.elementAttributes["+"+u])):s.setAttribute(u,i.elementAttributes[u]);function b(e){return c?e?l?p:s.checked:s.checked&&!l?(s.checked=!1,s.indeterminate=!0,l=!0,p):(l=!1,s.checked):s.checked}return s.value=a,!c||"undefined"!==typeof a&&a!==p&&""!==a||(l=!0,s.indeterminate=!0),"firefox"!=this.table.browser&&t(function(){s.focus({preventScroll:!0})}),s.checked=!0===a||"true"===a||"True"===a||1===a,t(function(){s.focus()}),s.addEventListener("change",function(e){o(b())}),s.addEventListener("blur",function(e){o(b(!0))}),s.addEventListener("keydown",function(e){13==e.keyCode&&o(b()),27==e.keyCode&&n()}),s}},f.prototype.registerModule("edit",R);var w=function(e,t,o,n){this.type=e,this.columns=t,this.component=o||!1,this.indent=n||0},L=function(e,t,o,n,i){this.value=e,this.component=t||!1,this.width=o,this.height=n,this.depth=i},C=function(e){this.table=e,this.config={},this.cloneTableStyle=!0,this.colVisProp=""};C.prototype.generateExportList=function(e,t,o,n){this.cloneTableStyle=t,this.config=e||{},this.colVisProp=n;var i=!1!==this.config.columnHeaders?this.headersToExportRows(this.generateColumnGroupHeaders()):[],r=this.bodyToExportRows(this.rowLookup(o));return i.concat(r)},C.prototype.genereateTable=function(e,t,o,n){var i=this.generateExportList(e,t,o,n);return this.genereateTableElement(i)},C.prototype.rowLookup=function(e){var t=this,o=[];if("function"==typeof e)e.call(this.table).forEach(function(e){e=t.table.rowManager.findRow(e),e&&o.push(e)});else switch(e){case!0:case"visible":o=this.table.rowManager.getVisibleRows(!0);break;case"all":o=this.table.rowManager.rows;break;case"selected":o=this.table.modules.selectRow.selectedRows;break;case"active":default:o=this.table.options.pagination?this.table.rowManager.getDisplayRows(this.table.rowManager.displayRows.length-2):this.table.rowManager.getDisplayRows()}return Object.assign([],o)},C.prototype.generateColumnGroupHeaders=function(){var e=this,t=[],o=!1!==this.config.columnGroups?this.table.columnManager.columns:this.table.columnManager.columnsByIndex;return o.forEach(function(o){var n=e.processColumnGroup(o);n&&t.push(n)}),t},C.prototype.processColumnGroup=function(e){var t=this,o=e.columns,n=0,i=e.definition["title"+(this.colVisProp.charAt(0).toUpperCase()+this.colVisProp.slice(1))]||e.definition.title,r={title:i,column:e,depth:1};if(o.length){if(r.subGroups=[],r.width=0,o.forEach(function(e){var o=t.processColumnGroup(e);o&&(r.width+=o.width,r.subGroups.push(o),o.depth>n&&(n=o.depth))}),r.depth+=n,!r.width)return!1}else{if(!this.columnVisCheck(e))return!1;r.width=1}return r},C.prototype.columnVisCheck=function(e){return!1!==e.definition[this.colVisProp]&&(e.visible||!e.visible&&e.definition[this.colVisProp])},C.prototype.headersToExportRows=function(e){var t=[],o=0,n=[];function i(e,n){var r=o-n;if("undefined"===typeof t[n]&&(t[n]=[]),e.height=e.subGroups?1:r-e.depth+1,t[n].push(e),e.height>1)for(var a=1;a1)for(var s=1;so&&(o=e.depth)}),e.forEach(function(e){i(e,0)}),t.forEach(function(e){var t=[];e.forEach(function(e){e?t.push(new L(e.title,e.column.getComponent(),e.width,e.height,e.depth)):t.push(null)}),n.push(new w("header",t))}),n},C.prototype.bodyToExportRows=function(e){var t=this,o=[],n=[];return this.table.columnManager.columnsByIndex.forEach(function(e){t.columnVisCheck(e)&&o.push(e.getComponent())}),!1!==this.config.columnCalcs&&this.table.modExists("columnCalcs")&&(this.table.modules.columnCalcs.topInitialized&&e.unshift(this.table.modules.columnCalcs.topRow),this.table.modules.columnCalcs.botInitialized&&e.push(this.table.modules.columnCalcs.botRow)),e=e.filter(function(e){switch(e.type){case"group":return!1!==t.config.rowGroups;case"calc":return!1!==t.config.columnCalcs;case"row":return!(t.table.options.dataTree&&!1===t.config.dataTree&&e.modules.dataTree.parent)}return!0}),e.forEach(function(e,i){var r=e.getData(t.colVisProp),a=[],s=0;switch(e.type){case"group":s=e.level,a.push(new L(e.key,e.getComponent(),o.length,1));break;case"calc":case"row":o.forEach(function(e){a.push(new L(e._column.getFieldValue(r),e,1,1))}),t.table.options.dataTree&&!1!==t.config.dataTree&&(s=e.modules.dataTree.index);break}n.push(new w(e.type,a,e.getComponent(),s))}),n},C.prototype.genereateTableElement=function(e){var t=this,o=document.createElement("table"),n=document.createElement("thead"),i=document.createElement("tbody"),r=this.lookupTableStyles(),a=this.table.options["rowFormatter"+(this.colVisProp.charAt(0).toUpperCase()+this.colVisProp.slice(1))],s={};return s.rowFormatter=null!==a?a:this.table.options.rowFormatter,this.table.options.dataTree&&!1!==this.config.dataTree&&this.table.modExists("columnCalcs")&&(s.treeElementField=this.table.modules.dataTree.elementField),s.groupHeader=this.table.options["groupHeader"+(this.colVisProp.charAt(0).toUpperCase()+this.colVisProp.slice(1))],s.groupHeader&&!Array.isArray(s.groupHeader)&&(s.groupHeader=[s.groupHeader]),o.classList.add("tabulator-print-table"),this.mapElementStyles(this.table.columnManager.getHeadersElement(),n,["border-top","border-left","border-right","border-bottom","background-color","color","font-weight","font-family","font-size"]),e.length>1e3&&console.warn("It may take a long time to render an HTML table with more than 1000 rows"),e.forEach(function(e,o){switch(e.type){case"header":n.appendChild(t.genereateHeaderElement(e,s,r));break;case"group":i.appendChild(t.genereateGroupElement(e,s,r));break;case"calc":i.appendChild(t.genereateCalcElement(e,s,r));break;case"row":var a=t.genereateRowElement(e,s,r);t.mapElementStyles(o%2&&r.evenRow?r.evenRow:r.oddRow,a,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),i.appendChild(a);break}}),n.innerHTML&&o.appendChild(n),o.appendChild(i),this.mapElementStyles(this.table.element,o,["border-top","border-left","border-right","border-bottom"]),o},C.prototype.lookupTableStyles=function(){var e={};return this.cloneTableStyle&&window.getComputedStyle&&(e.oddRow=this.table.element.querySelector(".tabulator-row-odd:not(.tabulator-group):not(.tabulator-calcs)"),e.evenRow=this.table.element.querySelector(".tabulator-row-even:not(.tabulator-group):not(.tabulator-calcs)"),e.calcRow=this.table.element.querySelector(".tabulator-row.tabulator-calcs"),e.firstRow=this.table.element.querySelector(".tabulator-row:not(.tabulator-group):not(.tabulator-calcs)"),e.firstGroup=this.table.element.getElementsByClassName("tabulator-group")[0],e.firstRow&&(e.styleCells=e.firstRow.getElementsByClassName("tabulator-cell"),e.firstCell=e.styleCells[0],e.lastCell=e.styleCells[e.styleCells.length-1])),e},C.prototype.genereateHeaderElement=function(e,t,o){var n=this,i=document.createElement("tr");return e.columns.forEach(function(e){if(e){var t=document.createElement("th"),o=e.component._column.definition.cssClass?e.component._column.definition.cssClass.split(" "):[];t.colSpan=e.width,t.rowSpan=e.height,t.innerHTML=e.value,n.cloneTableStyle&&(t.style.boxSizing="border-box"),o.forEach(function(e){t.classList.add(e)}),n.mapElementStyles(e.component.getElement(),t,["text-align","border-top","border-left","border-right","border-bottom","background-color","color","font-weight","font-family","font-size"]),n.mapElementStyles(e.component._column.contentElement,t,["padding-top","padding-left","padding-right","padding-bottom"]),e.component._column.visible?n.mapElementStyles(e.component.getElement(),t,["width"]):e.component._column.definition.width&&(t.style.width=e.component._column.definition.width+"px"),e.component._column.parent&&n.mapElementStyles(e.component._column.parent.groupElement,t,["border-top"]),i.appendChild(t)}}),i},C.prototype.genereateGroupElement=function(e,t,o){var n=document.createElement("tr"),i=document.createElement("td"),r=e.columns[0];return n.classList.add("tabulator-print-table-row"),t.groupHeader&&t.groupHeader[e.indent]?r.value=t.groupHeader[e.indent](r.value,e.component._group.getRowCount(),e.component._group.getData(),e.component):!1===t.groupHeader?r.value=r.value:r.value=e.component._group.generator(r.value,e.component._group.getRowCount(),e.component._group.getData(),e.component),i.colSpan=r.width,i.innerHTML=r.value,n.classList.add("tabulator-print-table-group"),n.classList.add("tabulator-group-level-"+e.indent),r.component.isVisible()&&n.classList.add("tabulator-group-visible"),this.mapElementStyles(o.firstGroup,n,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),this.mapElementStyles(o.firstGroup,i,["padding-top","padding-left","padding-right","padding-bottom"]),n.appendChild(i),n},C.prototype.genereateCalcElement=function(e,t,o){var n=this.genereateRowElement(e,t,o);return n.classList.add("tabulator-print-table-calcs"),this.mapElementStyles(o.calcRow,n,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),n},C.prototype.genereateRowElement=function(e,t,o){var n=this,a=document.createElement("tr");return a.classList.add("tabulator-print-table-row"),e.columns.forEach(function(s){if(s){var c=document.createElement("td"),p=s.component._column,l=s.value,u={modules:{},getValue:function(){return l},getField:function(){return p.definition.field},getElement:function(){return c},getColumn:function(){return p.getComponent()},getData:function(){return e.component.getData()},getRow:function(){return e.component},getComponent:function(){return u},column:p},b=p.definition.cssClass?p.definition.cssClass.split(" "):[];if(b.forEach(function(e){c.classList.add(e)}),n.table.modExists("format")&&!1!==n.config.formatCells)l=n.table.modules.format.formatExportValue(u,n.colVisProp);else switch("undefined"===typeof l?"undefined":r(l)){case"object":l=JSON.stringify(l);break;case"undefined":case"null":l="";break;default:l=l}l instanceof Node?c.appendChild(l):c.innerHTML=l,o.firstCell&&(n.mapElementStyles(o.firstCell,c,["padding-top","padding-left","padding-right","padding-bottom","border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size"]),p.definition.align&&(c.style.textAlign=p.definition.align)),n.table.options.dataTree&&!1!==n.config.dataTree&&(t.treeElementField&&t.treeElementField==p.field||!t.treeElementField&&0==i)&&(e.component._row.modules.dataTree.controlEl&&c.insertBefore(e.component._row.modules.dataTree.controlEl.cloneNode(!0),c.firstChild),e.component._row.modules.dataTree.branchEl&&c.insertBefore(e.component._row.modules.dataTree.branchEl.cloneNode(!0),c.firstChild)),a.appendChild(c),u.modules.format&&u.modules.format.renderedCallback&&u.modules.format.renderedCallback(),t.rowFormatter&&!1!==n.config.formatCells&&t.rowFormatter(e.component)}}),a},C.prototype.genereateHTMLTable=function(e){var t=document.createElement("div");return t.appendChild(this.genereateTableElement(e)),t.innerHTML},C.prototype.getHtml=function(e,t,o,n){var i=this.generateExportList(o||this.table.options.htmlOutputConfig,t,e,n||"htmlOutput");return this.genereateHTMLTable(i)},C.prototype.mapElementStyles=function(e,t,o){if(this.cloneTableStyle&&e&&t){var n={"background-color":"backgroundColor",color:"fontColor",width:"width","font-weight":"fontWeight","font-family":"fontFamily","font-size":"fontSize","text-align":"textAlign","border-top":"borderTop","border-left":"borderLeft","border-right":"borderRight","border-bottom":"borderBottom","padding-top":"paddingTop","padding-left":"paddingLeft","padding-right":"paddingRight","padding-bottom":"paddingBottom"};if(window.getComputedStyle){var i=window.getComputedStyle(e);o.forEach(function(e){t.style[n[e]]=i.getPropertyValue(e)})}}},f.prototype.registerModule("export",C);var S=function(e){this.table=e,this.filterList=[],this.headerFilters={},this.headerFilterColumns=[],this.prevHeaderFilterChangeCheck="",this.prevHeaderFilterChangeCheck="{}",this.changed=!1};S.prototype.initializeColumn=function(e,t){var o,n=this,i=e.getField();function a(t){var a,s="input"==e.modules.filter.tagType&&"text"==e.modules.filter.attrType||"textarea"==e.modules.filter.tagType?"partial":"match",c="",p="";if("undefined"===typeof e.modules.filter.prevSuccess||e.modules.filter.prevSuccess!==t){if(e.modules.filter.prevSuccess=t,e.modules.filter.emptyFunc(t))delete n.headerFilters[i];else{switch(e.modules.filter.value=t,r(e.definition.headerFilterFunc)){case"string":n.filters[e.definition.headerFilterFunc]?(c=e.definition.headerFilterFunc,a=function(o){var i=e.definition.headerFilterFuncParams||{},r=e.getFieldValue(o);return i="function"===typeof i?i(t,r,o):i,n.filters[e.definition.headerFilterFunc](t,r,o,i)}):console.warn("Header Filter Error - Matching filter function not found: ",e.definition.headerFilterFunc);break;case"function":a=function(o){var n=e.definition.headerFilterFuncParams||{},i=e.getFieldValue(o);return n="function"===typeof n?n(t,i,o):n,e.definition.headerFilterFunc(t,i,o,n)},c=a;break}if(!a)switch(s){case"partial":a=function(o){var n=e.getFieldValue(o);return"undefined"!==typeof n&&null!==n&&String(n).toLowerCase().indexOf(String(t).toLowerCase())>-1},c="like";break;default:a=function(o){return e.getFieldValue(o)==t},c="="}n.headerFilters[i]={value:t,func:a,type:c,params:o||{}}}p=JSON.stringify(n.headerFilters),n.prevHeaderFilterChangeCheck!==p&&(n.prevHeaderFilterChangeCheck=p,n.changed=!0,n.table.rowManager.filterRefresh())}return!0}e.modules.filter={success:a,attrType:!1,tagType:!1,emptyFunc:!1},this.generateHeaderFilterElement(e)},S.prototype.generateHeaderFilterElement=function(e,t,o){var n,i,a,s,c,p,l,u=this,b=this,d=e.modules.filter.success,M=e.getField();function h(){}if(e.modules.filter.headerElement&&e.modules.filter.headerElement.parentNode&&e.contentElement.removeChild(e.modules.filter.headerElement.parentNode),M){switch(e.modules.filter.emptyFunc=e.definition.headerFilterEmptyCheck||function(e){return!e&&"0"!==e&&0!==e},n=document.createElement("div"),n.classList.add("tabulator-header-filter"),r(e.definition.headerFilter)){case"string":b.table.modules.edit.editors[e.definition.headerFilter]?(i=b.table.modules.edit.editors[e.definition.headerFilter],"tick"!==e.definition.headerFilter&&"tickCross"!==e.definition.headerFilter||e.definition.headerFilterEmptyCheck||(e.modules.filter.emptyFunc=function(e){return!0!==e&&!1!==e})):console.warn("Filter Error - Cannot build header filter, No such editor found: ",e.definition.editor);break;case"function":i=e.definition.headerFilter;break;case"boolean":e.modules.edit&&e.modules.edit.editor?i=e.modules.edit.editor:e.definition.formatter&&b.table.modules.edit.editors[e.definition.formatter]?(i=b.table.modules.edit.editors[e.definition.formatter],"tick"!==e.definition.formatter&&"tickCross"!==e.definition.formatter||e.definition.headerFilterEmptyCheck||(e.modules.filter.emptyFunc=function(e){return!0!==e&&!1!==e})):i=b.table.modules.edit.editors["input"];break}if(i){if(s={getValue:function(){return"undefined"!==typeof t?t:""},getField:function(){return e.definition.field},getElement:function(){return n},getColumn:function(){return e.getComponent()},getRow:function(){return{normalizeHeight:function(){}}}},l=e.definition.headerFilterParams||{},l="function"===typeof l?l.call(b.table):l,a=i.call(this.table.modules.edit,s,function(){},d,h,l),!a)return void console.warn("Filter Error - Cannot add filter to "+M+" column, editor returned a value of false");if(!(a instanceof Node))return void console.warn("Filter Error - Cannot add filter to "+M+" column, editor should return an instance of Node, the editor returned:",a);M?b.table.modules.localize.bind("headerFilters|columns|"+e.definition.field,function(e){a.setAttribute("placeholder","undefined"!==typeof e&&e?e:b.table.modules.localize.getText("headerFilters|default"))}):b.table.modules.localize.bind("headerFilters|default",function(e){a.setAttribute("placeholder","undefined"!==typeof b.column.definition.headerFilterPlaceholder&&b.column.definition.headerFilterPlaceholder?b.column.definition.headerFilterPlaceholder:e)}),a.addEventListener("click",function(e){e.stopPropagation(),a.focus()}),a.addEventListener("focus",function(e){var t=u.table.columnManager.element.scrollLeft;t!==u.table.rowManager.element.scrollLeft&&(u.table.rowManager.scrollHorizontal(t),u.table.columnManager.scrollHorizontal(t))}),c=!1,p=function(e){c&&clearTimeout(c),c=setTimeout(function(){d(a.value)},b.table.options.headerFilterLiveFilterDelay)},e.modules.filter.headerElement=a,e.modules.filter.attrType=a.hasAttribute("type")?a.getAttribute("type").toLowerCase():"",e.modules.filter.tagType=a.tagName.toLowerCase(),!1!==e.definition.headerFilterLiveFilter&&("autocomplete"!==e.definition.headerFilter&&"tickCross"!==e.definition.headerFilter&&("autocomplete"!==e.definition.editor&&"tickCross"!==e.definition.editor||!0!==e.definition.headerFilter)&&(a.addEventListener("keyup",p),a.addEventListener("search",p),"number"==e.modules.filter.attrType&&a.addEventListener("change",function(e){d(a.value)}),"text"==e.modules.filter.attrType&&"ie"!==this.table.browser&&a.setAttribute("type","search")),"input"!=e.modules.filter.tagType&&"select"!=e.modules.filter.tagType&&"textarea"!=e.modules.filter.tagType||a.addEventListener("mousedown",function(e){e.stopPropagation()})),n.appendChild(a),e.contentElement.appendChild(n),o||b.headerFilterColumns.push(e)}}else console.warn("Filter Error - Cannot add header filter, column has no field set:",e.definition.title)},S.prototype.hideHeaderFilterElements=function(){this.headerFilterColumns.forEach(function(e){e.modules.filter&&e.modules.filter.headerElement&&(e.modules.filter.headerElement.style.display="none")})},S.prototype.showHeaderFilterElements=function(){this.headerFilterColumns.forEach(function(e){e.modules.filter&&e.modules.filter.headerElement&&(e.modules.filter.headerElement.style.display="")})},S.prototype.setHeaderFilterFocus=function(e){e.modules.filter&&e.modules.filter.headerElement?e.modules.filter.headerElement.focus():console.warn("Column Filter Focus Error - No header filter set on column:",e.getField())},S.prototype.getHeaderFilterValue=function(e){if(e.modules.filter&&e.modules.filter.headerElement)return e.modules.filter.headerElement.value;console.warn("Column Filter Error - No header filter set on column:",e.getField())},S.prototype.setHeaderFilterValue=function(e,t){e&&(e.modules.filter&&e.modules.filter.headerElement?(this.generateHeaderFilterElement(e,t,!0),e.modules.filter.success(t)):console.warn("Column Filter Error - No header filter set on column:",e.getField()))},S.prototype.reloadHeaderFilter=function(e){e&&(e.modules.filter&&e.modules.filter.headerElement?this.generateHeaderFilterElement(e,e.modules.filter.value,!0):console.warn("Column Filter Error - No header filter set on column:",e.getField()))},S.prototype.hasChanged=function(){var e=this.changed;return this.changed=!1,e},S.prototype.setFilter=function(e,t,o,n){var i=this;i.filterList=[],Array.isArray(e)||(e=[{field:e,type:t,value:o,params:n}]),i.addFilter(e)},S.prototype.addFilter=function(e,t,o,n){var i=this;Array.isArray(e)||(e=[{field:e,type:t,value:o,params:n}]),e.forEach(function(e){e=i.findFilter(e),e&&(i.filterList.push(e),i.changed=!0)}),this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.filter&&this.table.modules.persistence.save("filter")},S.prototype.findFilter=function(e){var t,o=this;if(Array.isArray(e))return this.findSubFilters(e);var n=!1;return"function"==typeof e.field?n=function(t){return e.field(t,e.type||{})}:o.filters[e.type]?(t=o.table.columnManager.getColumnByField(e.field),n=t?function(n){return o.filters[e.type](e.value,t.getFieldValue(n),n,e.params||{})}:function(t){return o.filters[e.type](e.value,t[e.field],t,e.params||{})}):console.warn("Filter Error - No such filter type found, ignoring: ",e.type),e.func=n,!!e.func&&e},S.prototype.findSubFilters=function(e){var t=this,o=[];return e.forEach(function(e){e=t.findFilter(e),e&&o.push(e)}),!!o.length&&o},S.prototype.getFilters=function(e,t){var o=[];return e&&(o=this.getHeaderFilters()),t&&o.forEach(function(e){"function"==typeof e.type&&(e.type="function")}),o=o.concat(this.filtersToArray(this.filterList,t)),o},S.prototype.filtersToArray=function(e,t){var o=this,n=[];return e.forEach(function(e){var i;Array.isArray(e)?n.push(o.filtersToArray(e,t)):(i={field:e.field,type:e.type,value:e.value},t&&"function"==typeof i.type&&(i.type="function"),n.push(i))}),n},S.prototype.getHeaderFilters=function(){var e=[];for(var t in this.headerFilters)e.push({field:t,type:this.headerFilters[t].type,value:this.headerFilters[t].value});return e},S.prototype.removeFilter=function(e,t,o){var n=this;Array.isArray(e)||(e=[{field:e,type:t,value:o}]),e.forEach(function(e){var t=-1;t="object"==r(e.field)?n.filterList.findIndex(function(t){return e===t}):n.filterList.findIndex(function(t){return e.field===t.field&&e.type===t.type&&e.value===t.value}),t>-1?(n.filterList.splice(t,1),n.changed=!0):console.warn("Filter Error - No matching filter type found, ignoring: ",e.type)}),this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.filter&&this.table.modules.persistence.save("filter")},S.prototype.clearFilter=function(e){this.filterList=[],e&&this.clearHeaderFilter(),this.changed=!0,this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.filter&&this.table.modules.persistence.save("filter")},S.prototype.clearHeaderFilter=function(){var e=this;this.headerFilters={},e.prevHeaderFilterChangeCheck="{}",this.headerFilterColumns.forEach(function(t){"undefined"!==typeof t.modules.filter.value&&delete t.modules.filter.value,t.modules.filter.prevSuccess=void 0,e.reloadHeaderFilter(t)}),this.changed=!0},S.prototype.search=function(e,t,o,n){var i=this,r=[],a=[];return Array.isArray(t)||(t=[{field:t,type:o,value:n}]),t.forEach(function(e){e=i.findFilter(e),e&&a.push(e)}),this.table.rowManager.rows.forEach(function(t){var o=!0;a.forEach(function(e){i.filterRecurse(e,t.getData())||(o=!1)}),o&&r.push("data"===e?t.getData("data"):t.getComponent())}),r},S.prototype.filter=function(e,t){var o=this,n=[],i=[];return o.table.options.dataFiltering&&o.table.options.dataFiltering.call(o.table,o.getFilters()),o.table.options.ajaxFiltering||!o.filterList.length&&!Object.keys(o.headerFilters).length?n=e.slice(0):e.forEach(function(e){o.filterRow(e)&&n.push(e)}),o.table.options.dataFiltered&&(n.forEach(function(e){i.push(e.getComponent())}),o.table.options.dataFiltered.call(o.table,o.getFilters(),i)),n},S.prototype.filterRow=function(e,t){var o=this,n=!0,i=e.getData();for(var r in o.filterList.forEach(function(e){o.filterRecurse(e,i)||(n=!1)}),o.headerFilters)o.headerFilters[r].func(i)||(n=!1);return n},S.prototype.filterRecurse=function(e,t){var o=this,n=!1;return Array.isArray(e)?e.forEach(function(e){o.filterRecurse(e,t)&&(n=!0)}):n=e.func(t),n},S.prototype.filters={"=":function(e,t,o,n){return t==e},"<":function(e,t,o,n){return t":function(e,t,o,n){return t>e},">=":function(e,t,o,n){return t>=e},"!=":function(e,t,o,n){return t!=e},regex:function(e,t,o,n){return"string"==typeof e&&(e=new RegExp(e)),e.test(t)},like:function(e,t,o,n){return null===e||"undefined"===typeof e?t===e:"undefined"!==typeof t&&null!==t&&String(t).toLowerCase().indexOf(e.toLowerCase())>-1},keywords:function(e,t,o,n){var i=e.toLowerCase().split("undefined"===typeof n.separator?" ":n.separator),r=String(null===t||"undefined"===typeof t?"":t).toLowerCase(),a=[];return i.forEach(function(e){r.includes(e)&&a.push(!0)}),n.matchAll?a.length===i.length:!!a.length},starts:function(e,t,o,n){return null===e||"undefined"===typeof e?t===e:"undefined"!==typeof t&&null!==t&&String(t).toLowerCase().startsWith(e.toLowerCase())},ends:function(e,t,o,n){return null===e||"undefined"===typeof e?t===e:"undefined"!==typeof t&&null!==t&&String(t).toLowerCase().endsWith(e.toLowerCase())},in:function(e,t,o,n){return Array.isArray(e)?!e.length||e.indexOf(t)>-1:(console.warn("Filter Error - filter value is not an array:",e),!1)}},f.prototype.registerModule("filter",S);var E=function(e){this.table=e};E.prototype.initializeColumn=function(e){e.modules.format=this.lookupFormatter(e,""),"undefined"!==typeof e.definition.formatterPrint&&(e.modules.format.print=this.lookupFormatter(e,"Print")),"undefined"!==typeof e.definition.formatterClipboard&&(e.modules.format.clipboard=this.lookupFormatter(e,"Clipboard")),"undefined"!==typeof e.definition.formatterHtmlOutput&&(e.modules.format.htmlOutput=this.lookupFormatter(e,"HtmlOutput"))},E.prototype.lookupFormatter=function(e,t){var o={params:e.definition["formatter"+t+"Params"]||{}},n=e.definition["formatter"+t];switch("undefined"===typeof n?"undefined":r(n)){case"string":"tick"===n&&(n="tickCross","undefined"==typeof o.params.crossElement&&(o.params.crossElement=!1),console.warn("DEPRECATION WARNING - the tick formatter has been deprecated, please use the tickCross formatter with the crossElement param set to false")),this.formatters[n]?o.formatter=this.formatters[n]:(console.warn("Formatter Error - No such formatter found: ",n),o.formatter=this.formatters.plaintext);break;case"function":o.formatter=n;break;default:o.formatter=this.formatters.plaintext;break}return o},E.prototype.cellRendered=function(e){e.modules.format&&e.modules.format.renderedCallback&&!e.modules.format.rendered&&(e.modules.format.renderedCallback(),e.modules.format.rendered=!0)},E.prototype.formatValue=function(e){var t=e.getComponent(),o="function"===typeof e.column.modules.format.params?e.column.modules.format.params(t):e.column.modules.format.params;function n(t){e.modules.format||(e.modules.format={}),e.modules.format.renderedCallback=t,e.modules.format.rendered=!1}return e.column.modules.format.formatter.call(this,t,o,n)},E.prototype.formatExportValue=function(e,t){var o,n=e.column.modules.format[t];if(n){var i=function(t){e.modules.format||(e.modules.format={}),e.modules.format.renderedCallback=t,e.modules.format.rendered=!1};return o="function"===typeof n.params?n.params(component):n.params,n.formatter.call(this,e.getComponent(),o,i)}return this.formatValue(e)},E.prototype.sanitizeHTML=function(e){if(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return String(e).replace(/[&<>"'`=\/]/g,function(e){return t[e]})}return e},E.prototype.emptyToSpace=function(e){return null===e||"undefined"===typeof e||""===e?" ":e},E.prototype.getFormatter=function(e){switch("undefined"===typeof e?"undefined":r(e)){case"string":this.formatters[e]?e=this.formatters[e]:(console.warn("Formatter Error - No such formatter found: ",e),e=this.formatters.plaintext);break;case"function":e=e;break;default:e=this.formatters.plaintext;break}return e},E.prototype.formatters={plaintext:function(e,t,o){return this.emptyToSpace(this.sanitizeHTML(e.getValue()))},html:function(e,t,o){return e.getValue()},textarea:function(e,t,o){return e.getElement().style.whiteSpace="pre-wrap",this.emptyToSpace(this.sanitizeHTML(e.getValue()))},money:function(e,t,o){var n,i,r,a,s=parseFloat(e.getValue()),c=t.decimal||".",p=t.thousand||",",l=t.symbol||"",u=!!t.symbolAfter,b="undefined"!==typeof t.precision?t.precision:2;if(isNaN(s))return this.emptyToSpace(this.sanitizeHTML(e.getValue()));n=!1!==b?s.toFixed(b):s,n=String(n).split("."),i=n[0],r=n.length>1?c+n[1]:"",a=/(\d+)(\d{3})/;while(a.test(i))i=i.replace(a,"$1"+p+"$2");return u?i+r+l:l+i+r},link:function(e,t,o){var n,i=e.getValue(),a=t.urlPrefix||"",s=t.download,c=i,p=document.createElement("a");if(t.labelField&&(n=e.getData(),c=n[t.labelField]),t.label)switch(r(t.label)){case"string":c=t.label;break;case"function":c=t.label(e);break}if(c){if(t.urlField&&(n=e.getData(),i=n[t.urlField]),t.url)switch(r(t.url)){case"string":i=t.url;break;case"function":i=t.url(e);break}return p.setAttribute("href",a+i),t.target&&p.setAttribute("target",t.target),t.download&&(s="function"==typeof s?s(e):!0===s?"":s,p.setAttribute("download",s)),p.innerHTML=this.emptyToSpace(this.sanitizeHTML(c)),p}return" "},image:function(e,t,o){var n=document.createElement("img"),i=e.getValue();switch(t.urlPrefix&&(i=t.urlPrefix+e.getValue()),t.urlSuffix&&(i+=t.urlSuffix),n.setAttribute("src",i),r(t.height)){case"number":n.style.height=t.height+"px";break;case"string":n.style.height=t.height;break}switch(r(t.width)){case"number":n.style.width=t.width+"px";break;case"string":n.style.width=t.width;break}return n.addEventListener("load",function(){e.getRow().normalizeHeight()}),n},tickCross:function(e,t,o){var n=e.getValue(),i=e.getElement(),r=t.allowEmpty,a=t.allowTruthy,s="undefined"!==typeof t.tickElement?t.tickElement:'',c="undefined"!==typeof t.crossElement?t.crossElement:'';return a&&n||!0===n||"true"===n||"True"===n||1===n||"1"===n?(i.setAttribute("aria-checked",!0),s||""):!r||"null"!==n&&""!==n&&null!==n&&"undefined"!==typeof n?(i.setAttribute("aria-checked",!1),c||""):(i.setAttribute("aria-checked","mixed"),"")},datetime:function(e,t,o){var n=t.inputFormat||"YYYY-MM-DD hh:mm:ss",i=t.outputFormat||"DD/MM/YYYY hh:mm:ss",r="undefined"!==typeof t.invalidPlaceholder?t.invalidPlaceholder:"",a=e.getValue(),s=moment(a,n);return s.isValid()?t.timezone?s.tz(t.timezone).format(i):s.format(i):!0===r?a:"function"===typeof r?r(a):r},datetimediff:function(e,t,o){var n=t.inputFormat||"YYYY-MM-DD hh:mm:ss",i="undefined"!==typeof t.invalidPlaceholder?t.invalidPlaceholder:"",r="undefined"!==typeof t.suffix&&t.suffix,a="undefined"!==typeof t.unit?t.unit:void 0,s="undefined"!==typeof t.humanize&&t.humanize,c="undefined"!==typeof t.date?t.date:moment(),p=e.getValue(),l=moment(p,n);return l.isValid()?s?moment.duration(l.diff(c)).humanize(r):l.diff(c,a)+(r?" "+r:""):!0===i?p:"function"===typeof i?i(p):i},lookup:function(e,t,o){var n=e.getValue();return"undefined"===typeof t[n]?(console.warn("Missing display value for "+n),n):t[n]},star:function(e,t,o){var n=e.getValue(),i=e.getElement(),r=t&&t.stars?t.stars:5,a=document.createElement("span"),s=document.createElementNS("http://www.w3.org/2000/svg","svg"),c='',p='';a.style.verticalAlign="middle",s.setAttribute("width","14"),s.setAttribute("height","14"),s.setAttribute("viewBox","0 0 512 512"),s.setAttribute("xml:space","preserve"),s.style.padding="0 1px",n=n&&!isNaN(n)?parseInt(n):0,n=Math.max(0,Math.min(n,r));for(var l=1;l<=r;l++){var u=s.cloneNode(!0);u.innerHTML=l<=n?c:p,a.appendChild(u)}return i.style.whiteSpace="nowrap",i.style.overflow="hidden",i.style.textOverflow="ellipsis",i.setAttribute("aria-label",n),a},traffic:function(e,t,o){var n,i,a=this.sanitizeHTML(e.getValue())||0,s=document.createElement("span"),c=t&&t.max?t.max:100,p=t&&t.min?t.min:0,l=t&&"undefined"!==typeof t.color?t.color:["red","orange","green"],u="#666666";if(!isNaN(a)&&"undefined"!==typeof e.getValue()){switch(s.classList.add("tabulator-traffic-light"),i=parseFloat(a)<=c?parseFloat(a):c,i=parseFloat(i)>=p?parseFloat(i):p,n=(c-p)/100,i=Math.round((i-p)/n),"undefined"===typeof l?"undefined":r(l)){case"string":u=l;break;case"function":u=l(a);break;case"object":if(Array.isArray(l)){var b=100/l.length,d=Math.floor(i/b);d=Math.min(d,l.length-1),d=Math.max(d,0),u=l[d];break}}return s.style.backgroundColor=u,s}},progress:function(e,t,o){var n,i,a,s,c,p=this.sanitizeHTML(e.getValue())||0,l=e.getElement(),u=t&&t.max?t.max:100,b=t&&t.min?t.min:0,M=t&&t.legendAlign?t.legendAlign:"center";switch(i=parseFloat(p)<=u?parseFloat(p):u,i=parseFloat(i)>=b?parseFloat(i):b,n=(u-b)/100,i=Math.round((i-b)/n),r(t.color)){case"string":a=t.color;break;case"function":a=t.color(p);break;case"object":if(Array.isArray(t.color)){var h=100/t.color.length,f=Math.floor(i/h);f=Math.min(f,t.color.length-1),f=Math.max(f,0),a=t.color[f];break}default:a="#2DC214"}switch(r(t.legend)){case"string":s=t.legend;break;case"function":s=t.legend(p);break;case"boolean":s=p;break;default:s=!1}switch(r(t.legendColor)){case"string":c=t.legendColor;break;case"function":c=t.legendColor(p);break;case"object":if(Array.isArray(t.legendColor)){h=100/t.legendColor.length,f=Math.floor(i/h);f=Math.min(f,t.legendColor.length-1),f=Math.max(f,0),c=t.legendColor[f]}break;default:c="#000"}l.style.minWidth="30px",l.style.position="relative",l.setAttribute("aria-label",i);var z=document.createElement("div");if(z.style.display="inline-block",z.style.position="relative",z.style.width=i+"%",z.style.backgroundColor=a,z.style.height="100%",z.setAttribute("data-max",u),z.setAttribute("data-min",b),s){var O=document.createElement("div");O.style.position="absolute",O.style.top="4px",O.style.left=0,O.style.textAlign=M,O.style.width="100%",O.style.color=c,O.innerHTML=s}return o(function(){if(!(e instanceof d)){var t=document.createElement("div");t.style.position="absolute",t.style.top="4px",t.style.bottom="4px",t.style.left="4px",t.style.right="4px",l.appendChild(t),l=t}l.appendChild(z),s&&l.appendChild(O)}),""},color:function(e,t,o){return e.getElement().style.backgroundColor=this.sanitizeHTML(e.getValue()),""},buttonTick:function(e,t,o){return''},buttonCross:function(e,t,o){return''},rownum:function(e,t,o){return this.table.rowManager.activeRows.indexOf(e.getRow()._getSelf())+1},handle:function(e,t,o){return e.getElement().classList.add("tabulator-row-handle"),"
"},responsiveCollapse:function(e,t,o){var n=document.createElement("div"),i=e.getRow()._row.modules.responsiveLayout;function r(e){var t=i.element;i.open=e,t&&(i.open?(n.classList.add("open"),t.style.display=""):(n.classList.remove("open"),t.style.display="none"))}return n.classList.add("tabulator-responsive-collapse-toggle"),n.innerHTML="+-",e.getElement().classList.add("tabulator-row-handle"),n.addEventListener("click",function(e){e.stopImmediatePropagation(),r(!i.open)}),r(i.open),n},rowSelection:function(e,t,o){var n=this,i=document.createElement("input");if(i.type="checkbox",this.table.modExists("selectRow",!0))if(i.addEventListener("click",function(e){e.stopPropagation()}),"function"==typeof e.getRow){var r=e.getRow();r instanceof u?(i.addEventListener("change",function(e){r.toggleSelect()}),i.checked=r.isSelected&&r.isSelected(),this.table.modules.selectRow.registerRowSelectCheckbox(r,i)):i=""}else i.addEventListener("change",function(e){n.table.modules.selectRow.selectedRows.length?n.table.deselectRow():n.table.selectRow(t.rowRange)}),this.table.modules.selectRow.registerHeaderSelectCheckbox(i);return i}},f.prototype.registerModule("format",E);var T=function(e){this.table=e,this.leftColumns=[],this.rightColumns=[],this.leftMargin=0,this.rightMargin=0,this.rightPadding=0,this.initializationMode="left",this.active=!1,this.scrollEndTimer=!1};T.prototype.reset=function(){this.initializationMode="left",this.leftColumns=[],this.rightColumns=[],this.leftMargin=0,this.rightMargin=0,this.rightMargin=0,this.active=!1,this.table.columnManager.headersElement.style.marginLeft=0,this.table.columnManager.element.style.paddingRight=0},T.prototype.initializeColumn=function(e){var t={margin:0,edge:!1};e.isGroup||(this.frozenCheck(e)?(t.position=this.initializationMode,"left"==this.initializationMode?this.leftColumns.push(e):this.rightColumns.unshift(e),this.active=!0,e.modules.frozen=t):this.initializationMode="right")},T.prototype.frozenCheck=function(e){return e.parent.isGroup&&e.definition.frozen&&console.warn("Frozen Column Error - Parent column group must be frozen, not individual columns or sub column groups"),e.parent.isGroup?this.frozenCheck(e.parent):e.definition.frozen},T.prototype.scrollHorizontal=function(){var e,t=this;this.active&&(clearTimeout(this.scrollEndTimer),this.scrollEndTimer=setTimeout(function(){t.layout()},100),e=this.table.rowManager.getVisibleRows(),this.calcMargins(),this.layoutColumnPosition(),this.layoutCalcRows(),e.forEach(function(e){"row"===e.type&&t.layoutRow(e)}),this.table.rowManager.tableElement.style.marginRight=this.rightMargin)},T.prototype.calcMargins=function(){this.leftMargin=this._calcSpace(this.leftColumns,this.leftColumns.length)+"px",this.table.columnManager.headersElement.style.marginLeft=this.leftMargin,this.rightMargin=this._calcSpace(this.rightColumns,this.rightColumns.length)+"px",this.table.columnManager.element.style.paddingRight=this.rightMargin,this.rightPadding=this.table.rowManager.element.clientWidth+this.table.columnManager.scrollLeft},T.prototype.layoutCalcRows=function(){this.table.modExists("columnCalcs")&&(this.table.modules.columnCalcs.topInitialized&&this.table.modules.columnCalcs.topRow&&this.layoutRow(this.table.modules.columnCalcs.topRow),this.table.modules.columnCalcs.botInitialized&&this.table.modules.columnCalcs.botRow&&this.layoutRow(this.table.modules.columnCalcs.botRow))},T.prototype.layoutColumnPosition=function(e){var t=this,o=[];this.leftColumns.forEach(function(n,i){if(n.modules.frozen.margin=t._calcSpace(t.leftColumns,i)+t.table.columnManager.scrollLeft+"px",i==t.leftColumns.length-1?n.modules.frozen.edge=!0:n.modules.frozen.edge=!1,n.parent.isGroup){var r=t.getColGroupParentElement(n);o.includes(r)||(t.layoutElement(r,n),o.push(r)),n.modules.frozen.edge&&r.classList.add("tabulator-frozen-"+n.modules.frozen.position)}else t.layoutElement(n.getElement(),n);e&&n.cells.forEach(function(e){t.layoutElement(e.getElement(!0),n)})}),this.rightColumns.forEach(function(o,n){o.modules.frozen.margin=t.rightPadding-t._calcSpace(t.rightColumns,n+1)+"px",n==t.rightColumns.length-1?o.modules.frozen.edge=!0:o.modules.frozen.edge=!1,o.parent.isGroup?t.layoutElement(t.getColGroupParentElement(o),o):t.layoutElement(o.getElement(),o),e&&o.cells.forEach(function(e){t.layoutElement(e.getElement(!0),o)})})},T.prototype.getColGroupParentElement=function(e){return e.parent.isGroup?this.getColGroupParentElement(e.parent):e.getElement()},T.prototype.layout=function(){var e=this;e.active&&(this.calcMargins(),e.table.rowManager.getDisplayRows().forEach(function(t){"row"===t.type&&e.layoutRow(t)}),this.layoutCalcRows(),this.layoutColumnPosition(!0),this.table.rowManager.tableElement.style.marginRight=this.rightMargin)},T.prototype.layoutRow=function(e){var t=this,o=e.getElement();o.style.paddingLeft=this.leftMargin,this.leftColumns.forEach(function(o){var n=e.getCell(o);n&&t.layoutElement(n.getElement(!0),o)}),this.rightColumns.forEach(function(o){var n=e.getCell(o);n&&t.layoutElement(n.getElement(!0),o)})},T.prototype.layoutElement=function(e,t){t.modules.frozen&&(e.style.position="absolute",e.style.left=t.modules.frozen.margin,e.classList.add("tabulator-frozen"),t.modules.frozen.edge&&e.classList.add("tabulator-frozen-"+t.modules.frozen.position))},T.prototype._calcSpace=function(e,t){for(var o=0,n=0;n-1&&t.splice(o,1)}),t},x.prototype.freezeRow=function(e){e.modules.frozen?console.warn("Freeze Error - Row is already frozen"):(e.modules.frozen=!0,this.topElement.appendChild(e.getElement()),e.initialize(),e.normalizeHeight(),this.table.rowManager.adjustTableSize(),this.rows.push(e),this.table.rowManager.refreshActiveData("display"),this.styleRows())},x.prototype.unfreezeRow=function(e){this.rows.indexOf(e);e.modules.frozen?(e.modules.frozen=!1,this.detachRow(e),this.table.rowManager.adjustTableSize(),this.table.rowManager.refreshActiveData("display"),this.rows.length&&this.styleRows()):console.warn("Freeze Error - Row is already unfrozen")},x.prototype.detachRow=function(e){var t=this.rows.indexOf(e);if(t>-1){var o=e.getElement();o.parentNode.removeChild(o),this.rows.splice(t,1)}},x.prototype.styleRows=function(e){var t=this;this.rows.forEach(function(e,o){t.table.rowManager.styleRow(e,o)})},f.prototype.registerModule("frozenRows",x);var N=function(e){this._group=e,this.type="GroupComponent"};N.prototype.getKey=function(){return this._group.key},N.prototype.getField=function(){return this._group.field},N.prototype.getElement=function(){return this._group.element},N.prototype.getRows=function(){return this._group.getRows(!0)},N.prototype.getSubGroups=function(){return this._group.getSubGroups(!0)},N.prototype.getParentGroup=function(){return!!this._group.parent&&this._group.parent.getComponent()},N.prototype.getVisibility=function(){return console.warn("getVisibility function is deprecated, you should now use the isVisible function"),this._group.visible},N.prototype.isVisible=function(){return this._group.visible},N.prototype.show=function(){this._group.show()},N.prototype.hide=function(){this._group.hide()},N.prototype.toggle=function(){this._group.toggleVisibility()},N.prototype._getSelf=function(){return this._group},N.prototype.getTable=function(){return this._group.groupManager.table};var B=function(e,t,o,n,i,r,a){this.groupManager=e,this.parent=t,this.key=n,this.level=o,this.field=i,this.hasSubGroups=o-1?o?this.rows.splice(i+1,0,e):this.rows.splice(i,0,e):o?this.rows.push(e):this.rows.unshift(e),e.modules.group=this,this.generateGroupHeaderContents(),this.groupManager.table.modExists("columnCalcs")&&"table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modules.columnCalcs.recalcGroup(this),this.groupManager.updateGroupRows(!0)},B.prototype.scrollHeader=function(e){this.arrowElement.style.marginLeft=e,this.groupList.forEach(function(t){t.scrollHeader(e)})},B.prototype.getRowIndex=function(e){},B.prototype.conformRowData=function(e){return this.field?e[this.field]=this.key:console.warn("Data Conforming Error - Cannot conform row data to match new group as groupBy is a function"),this.parent&&(e=this.parent.conformRowData(e)),e},B.prototype.removeRow=function(e){var t=this.rows.indexOf(e),o=e.getElement();t>-1&&this.rows.splice(t,1),this.groupManager.table.options.groupValues||this.rows.length?(o.parentNode&&o.parentNode.removeChild(o),this.generateGroupHeaderContents(),this.groupManager.table.modExists("columnCalcs")&&"table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modules.columnCalcs.recalcGroup(this)):(this.parent?this.parent.removeGroup(this):this.groupManager.removeGroup(this),this.groupManager.updateGroupRows(!0))},B.prototype.removeGroup=function(e){var t,o=e.level+"_"+e.key;this.groups[o]&&(delete this.groups[o],t=this.groupList.indexOf(e),t>-1&&this.groupList.splice(t,1),this.groupList.length||(this.parent?this.parent.removeGroup(this):this.groupManager.removeGroup(this)))},B.prototype.getHeadersAndRows=function(e){var t=[];return t.push(this),this._visSet(),this.visible?this.groupList.length?this.groupList.forEach(function(o){t=t.concat(o.getHeadersAndRows(e))}):(!e&&"table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modExists("columnCalcs")&&this.groupManager.table.modules.columnCalcs.hasTopCalcs()&&(this.calcs.top&&(this.calcs.top.detachElement(),this.calcs.top.deleteCells()),this.calcs.top=this.groupManager.table.modules.columnCalcs.generateTopRow(this.rows),t.push(this.calcs.top)),t=t.concat(this.rows),!e&&"table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modExists("columnCalcs")&&this.groupManager.table.modules.columnCalcs.hasBottomCalcs()&&(this.calcs.bottom&&(this.calcs.bottom.detachElement(),this.calcs.bottom.deleteCells()),this.calcs.bottom=this.groupManager.table.modules.columnCalcs.generateBottomRow(this.rows),t.push(this.calcs.bottom))):this.groupList.length||"table"==this.groupManager.table.options.columnCalcs||this.groupManager.table.modExists("columnCalcs")&&(!e&&this.groupManager.table.modules.columnCalcs.hasTopCalcs()&&(this.calcs.top&&(this.calcs.top.detachElement(),this.calcs.top.deleteCells()),this.groupManager.table.options.groupClosedShowCalcs&&(this.calcs.top=this.groupManager.table.modules.columnCalcs.generateTopRow(this.rows),t.push(this.calcs.top))),!e&&this.groupManager.table.modules.columnCalcs.hasBottomCalcs()&&(this.calcs.bottom&&(this.calcs.bottom.detachElement(),this.calcs.bottom.deleteCells()),this.groupManager.table.options.groupClosedShowCalcs&&(this.calcs.bottom=this.groupManager.table.modules.columnCalcs.generateBottomRow(this.rows),t.push(this.calcs.bottom)))),t},B.prototype.getData=function(e,t){var o=[];return this._visSet(),(!e||e&&this.visible)&&this.rows.forEach(function(e){o.push(e.getData(t||"data"))}),o},B.prototype.getRowCount=function(){var e=0;return this.groupList.length?this.groupList.forEach(function(t){e+=t.getRowCount()}):e=this.rows.length,e},B.prototype.toggleVisibility=function(){this.visible?this.hide():this.show()},B.prototype.hide=function(){this.visible=!1,"classic"!=this.groupManager.table.rowManager.getRenderMode()||this.groupManager.table.options.pagination?this.groupManager.updateGroupRows(!0):(this.element.classList.remove("tabulator-group-visible"),this.groupList.length?this.groupList.forEach(function(e){var t=e.getHeadersAndRows();t.forEach(function(e){e.detachElement()})}):this.rows.forEach(function(e){var t=e.getElement();t.parentNode.removeChild(t)}),this.groupManager.table.rowManager.setDisplayRows(this.groupManager.updateGroupRows(),this.groupManager.getDisplayIndex()),this.groupManager.table.rowManager.checkClassicModeGroupHeaderWidth()),this.groupManager.table.options.groupVisibilityChanged.call(this.table,this.getComponent(),!1)},B.prototype.show=function(){var e=this;if(e.visible=!0,"classic"!=this.groupManager.table.rowManager.getRenderMode()||this.groupManager.table.options.pagination)this.groupManager.updateGroupRows(!0);else{this.element.classList.add("tabulator-group-visible");var t=e.getElement();this.groupList.length?this.groupList.forEach(function(e){var o=e.getHeadersAndRows();o.forEach(function(e){var o=e.getElement();t.parentNode.insertBefore(o,t.nextSibling),e.initialize(),t=o})}):e.rows.forEach(function(e){var o=e.getElement();t.parentNode.insertBefore(o,t.nextSibling),e.initialize(),t=o}),this.groupManager.table.rowManager.setDisplayRows(this.groupManager.updateGroupRows(),this.groupManager.getDisplayIndex()),this.groupManager.table.rowManager.checkClassicModeGroupHeaderWidth()}this.groupManager.table.options.groupVisibilityChanged.call(this.table,this.getComponent(),!0)},B.prototype._visSet=function(){var e=[];"function"==typeof this.visible&&(this.rows.forEach(function(t){e.push(t.getData())}),this.visible=this.visible(this.key,this.getRowCount(),e,this.getComponent()))},B.prototype.getRowGroup=function(e){var t=!1;return this.groupList.length?this.groupList.forEach(function(o){var n=o.getRowGroup(e);n&&(t=n)}):this.rows.find(function(t){return t===e})&&(t=this),t},B.prototype.getSubGroups=function(e){var t=[];return this.groupList.forEach(function(o){t.push(e?o.getComponent():o)}),t},B.prototype.getRows=function(e){var t=[];return this.rows.forEach(function(o){t.push(e?o.getComponent():o)}),t},B.prototype.generateGroupHeaderContents=function(){var e=[];this.rows.forEach(function(t){e.push(t.getData())}),this.elementContents=this.generator(this.key,this.getRowCount(),e,this.getComponent());while(this.element.firstChild)this.element.removeChild(this.element.firstChild);"string"===typeof this.elementContents?this.element.innerHTML=this.elementContents:this.element.appendChild(this.elementContents),this.element.insertBefore(this.arrowElement,this.element.firstChild)},B.prototype.getPath=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.unshift(this.key),this.parent&&this.parent.getPath(e),e},B.prototype.getElement=function(){this.addBindingsd=!1,this._visSet(),this.visible?this.element.classList.add("tabulator-group-visible"):this.element.classList.remove("tabulator-group-visible");for(var e=0;en.length&&console.warn("Error creating group headers, groupHeader array is shorter than groupBy array"),e.headerGenerator=[function(){return""}],this.startOpen=[function(){return!1}],e.table.modules.localize.bind("groups|item",function(t,o){e.headerGenerator[0]=function(e,n,i){return("undefined"===typeof e?"":e)+"("+n+" "+(1===n?t:o.groups.items)+")"}}),this.groupIDLookups=[],Array.isArray(t)||t)this.table.modExists("columnCalcs")&&"table"!=this.table.options.columnCalcs&&"both"!=this.table.options.columnCalcs&&this.table.modules.columnCalcs.removeCalcs();else if(this.table.modExists("columnCalcs")&&"group"!=this.table.options.columnCalcs){var i=this.table.columnManager.getRealColumns();i.forEach(function(t){t.definition.topCalc&&e.table.modules.columnCalcs.initializeTopRow(),t.definition.bottomCalc&&e.table.modules.columnCalcs.initializeBottomRow()})}Array.isArray(t)||(t=[t]),t.forEach(function(t,o){var n,i;"function"==typeof t?n=t:(i=e.table.columnManager.getColumnByField(t),n=i?function(e){return i.getFieldValue(e)}:function(e){return e[t]}),e.groupIDLookups.push({field:"function"!==typeof t&&t,func:n,values:!!e.allowedValues&&e.allowedValues[o]})}),o&&(Array.isArray(o)||(o=[o]),o.forEach(function(e){e="function"==typeof e?e:function(){return!0}}),e.startOpen=o),n&&(e.headerGenerator=Array.isArray(n)?n:[n]),this.initialized=!0},k.prototype.setDisplayIndex=function(e){this.displayIndex=e},k.prototype.getDisplayIndex=function(){return this.displayIndex},k.prototype.getRows=function(e){return this.groupIDLookups.length?(this.table.options.dataGrouping.call(this.table),this.generateGroups(e),this.table.options.dataGrouped&&this.table.options.dataGrouped.call(this.table,this.getGroups(!0)),this.updateGroupRows()):e.slice(0)},k.prototype.getGroups=function(e){var t=[];return this.groupList.forEach(function(o){t.push(e?o.getComponent():o)}),t},k.prototype.getChildGroups=function(e){var t=this,o=[];return e||(e=this),e.groupList.forEach(function(e){e.groupList.length?o=o.concat(t.getChildGroups(e)):o.push(e)}),o},k.prototype.wipe=function(){this.groupList.forEach(function(e){e.wipe()})},k.prototype.pullGroupListData=function(e){var t=this,o=[];return e.forEach(function(e){var n={level:0,rowCount:0,headerContent:""},i=[];e.hasSubGroups?(i=t.pullGroupListData(e.groupList),n.level=e.level,n.rowCount=i.length-e.groupList.length,n.headerContent=e.generator(e.key,n.rowCount,e.rows,e),o.push(n),o=o.concat(i)):(n.level=e.level,n.headerContent=e.generator(e.key,e.rows.length,e.rows,e),n.rowCount=e.getRows().length,o.push(n),e.getRows().forEach(function(e){o.push(e.getData("data"))}))}),o},k.prototype.getGroupedData=function(){return this.pullGroupListData(this.groupList)},k.prototype.getRowGroup=function(e){var t=!1;return this.groupList.forEach(function(o){var n=o.getRowGroup(e);n&&(t=n)}),t},k.prototype.countGroups=function(){return this.groupList.length},k.prototype.generateGroups=function(e){var t=this,o=t.groups;t.groups={},t.groupList=[],this.allowedValues&&this.allowedValues[0]?(this.allowedValues[0].forEach(function(e){t.createGroup(e,0,o)}),e.forEach(function(e){t.assignRowToExistingGroup(e,o)})):e.forEach(function(e){t.assignRowToGroup(e,o)})},k.prototype.createGroup=function(e,t,o){var n,i=t+"_"+e;o=o||[],n=new B(this,!1,t,e,this.groupIDLookups[0].field,this.headerGenerator[0],o[i]),this.groups[i]=n,this.groupList.push(n)},k.prototype.assignRowToExistingGroup=function(e,t){var o=this.groupIDLookups[0].func(e.getData()),n="0_"+o;this.groups[n]&&this.groups[n].addRow(e)},k.prototype.assignRowToGroup=function(e,t){var o=this.groupIDLookups[0].func(e.getData()),n=!this.groups["0_"+o];return n&&this.createGroup(o,0,t),this.groups["0_"+o].addRow(e),!n},k.prototype.reassignRowToGroup=function(e){var t=e.getGroup(),o=t.getPath(),n=this.getExpectedPath(e),i=!0;i=o.length==n.length&&o.every(function(e,t){return e===n[t]});i||(t.removeRow(e),this.assignRowToGroup(e,self.groups),this.table.rowManager.refreshActiveData("group",!1,!0))},k.prototype.getExpectedPath=function(e){var t=[],o=e.getData();return this.groupIDLookups.forEach(function(e){t.push(e.func(o))}),t},k.prototype.updateGroupRows=function(e){var t=this,o=[];if(t.groupList.forEach(function(e){o=o.concat(e.getHeadersAndRows())}),e){var n=t.table.rowManager.setDisplayRows(o,this.getDisplayIndex());!0!==n&&this.setDisplayIndex(n),t.table.rowManager.refreshActiveData("group",!0,!0)}return o},k.prototype.scrollHeaders=function(e){this.table.options.virtualDomHoz&&(e-=this.table.vdomHoz.vDomPadLeft),e+="px",this.groupList.forEach(function(t){t.scrollHeader(e)})},k.prototype.removeGroup=function(e){var t,o=e.level+"_"+e.key;this.groups[o]&&(delete this.groups[o],t=this.groupList.indexOf(e),t>-1&&this.groupList.splice(t,1))},f.prototype.registerModule("groupRows",k);var P=function(e){this.table=e,this.history=[],this.index=-1};P.prototype.clear=function(){this.history=[],this.index=-1},P.prototype.action=function(e,t,o){this.history=this.history.slice(0,this.index+1),this.history.push({type:e,component:t,data:o}),this.index++},P.prototype.getHistoryUndoSize=function(){return this.index+1},P.prototype.getHistoryRedoSize=function(){return this.history.length-(this.index+1)},P.prototype.clearComponentHistory=function(e){var t=this.history.findIndex(function(t){return t.component===e});t>-1&&(this.history.splice(t,1),t<=this.index&&this.index--,this.clearComponentHistory(e))},P.prototype.undo=function(){if(this.index>-1){var e=this.history[this.index];return this.undoers[e.type].call(this,e),this.index--,this.table.options.historyUndo.call(this.table,e.type,e.component.getComponent(),e.data),!0}return console.warn("History Undo Error - No more history to undo"),!1},P.prototype.redo=function(){if(this.history.length-1>this.index){this.index++;var e=this.history[this.index];return this.redoers[e.type].call(this,e),this.table.options.historyRedo.call(this.table,e.type,e.component.getComponent(),e.data),!0}return console.warn("History Redo Error - No more history to redo"),!1},P.prototype.undoers={cellEdit:function(e){e.component.setValueProcessData(e.data.oldValue)},rowAdd:function(e){e.component.deleteActual()},rowDelete:function(e){var t=this.table.rowManager.addRowActual(e.data.data,e.data.pos,e.data.index);this.table.options.groupBy&&this.table.modExists("groupRows")&&this.table.modules.groupRows.updateGroupRows(!0),this._rebindRow(e.component,t)},rowMove:function(e){this.table.rowManager.moveRowActual(e.component,this.table.rowManager.rows[e.data.posFrom],!e.data.after),this.table.rowManager.redraw()}},P.prototype.redoers={cellEdit:function(e){e.component.setValueProcessData(e.data.newValue)},rowAdd:function(e){var t=this.table.rowManager.addRowActual(e.data.data,e.data.pos,e.data.index);this.table.options.groupBy&&this.table.modExists("groupRows")&&this.table.modules.groupRows.updateGroupRows(!0),this._rebindRow(e.component,t)},rowDelete:function(e){e.component.deleteActual()},rowMove:function(e){this.table.rowManager.moveRowActual(e.component,this.table.rowManager.rows[e.data.posTo],e.data.after),this.table.rowManager.redraw()}},P.prototype._rebindRow=function(e,t){this.history.forEach(function(o){if(o.component instanceof b)o.component===e&&(o.component=t);else if(o.component instanceof M&&o.component.row===e){var n=o.component.column.getField();n&&(o.component=t.getCell(n))}})},f.prototype.registerModule("history",P);var D=function(e){this.table=e,this.fieldIndex=[],this.hasIndex=!1};D.prototype.parseTable=function(){var e=this,t=e.table.element,o=e.table.options,n=(o.columns,t.getElementsByTagName("th")),i=t.getElementsByTagName("tbody")[0],a=[];e.hasIndex=!1,e.table.options.htmlImporting.call(this.table),i=i?i.getElementsByTagName("tr"):[],e._extractOptions(t,o),n.length?e._extractHeaders(n,i):e._generateBlankHeaders(n,i);for(var s=0;s-1&&e.pressedKeys.splice(i,1)}},this.table.element.addEventListener("keydown",this.keyupBinding),this.table.element.addEventListener("keyup",this.keydownBinding)},I.prototype.clearBindings=function(){this.keyupBinding&&this.table.element.removeEventListener("keydown",this.keyupBinding),this.keydownBinding&&this.table.element.removeEventListener("keyup",this.keydownBinding)},I.prototype.checkBinding=function(e,t){var o=this,n=!0;return e.ctrlKey==t.ctrl&&e.shiftKey==t.shift&&e.metaKey==t.meta&&(t.keys.forEach(function(e){var t=o.pressedKeys.indexOf(e);-1==t&&(n=!1)}),n&&t.action.call(o,e),!0)},I.prototype.bindings={navPrev:"shift + 9",navNext:9,navUp:38,navDown:40,scrollPageUp:33,scrollPageDown:34,scrollToStart:36,scrollToEnd:35,undo:"ctrl + 90",redo:"ctrl + 89",copyToClipboard:"ctrl + 67"},I.prototype.actions={keyBlock:function(e){e.stopPropagation(),e.preventDefault()},scrollPageUp:function(e){var t=this.table.rowManager,o=t.scrollTop-t.height;t.element.scrollHeight;e.preventDefault(),t.displayRowsCount&&(o>=0?t.element.scrollTop=o:t.scrollToRow(t.getDisplayRows()[0])),this.table.element.focus()},scrollPageDown:function(e){var t=this.table.rowManager,o=t.scrollTop+t.height,n=t.element.scrollHeight;e.preventDefault(),t.displayRowsCount&&(o<=n?t.element.scrollTop=o:t.scrollToRow(t.getDisplayRows()[t.displayRowsCount-1])),this.table.element.focus()},scrollToStart:function(e){var t=this.table.rowManager;e.preventDefault(),t.displayRowsCount&&t.scrollToRow(t.getDisplayRows()[0]),this.table.element.focus()},scrollToEnd:function(e){var t=this.table.rowManager;e.preventDefault(),t.displayRowsCount&&t.scrollToRow(t.getDisplayRows()[t.displayRowsCount-1]),this.table.element.focus()},navPrev:function(e){var t=!1;this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell,t&&(e.preventDefault(),t.nav().prev()))},navNext:function(e){var t,o=!1,n=this.table.options.tabEndNewRow;this.table.modExists("edit")&&(o=this.table.modules.edit.currentCell,o&&(e.preventDefault(),t=o.nav(),t.next()||n&&(o.getElement().firstChild.blur(),n=!0===n?this.table.addRow({}):"function"==typeof n?this.table.addRow(n(o.row.getComponent())):this.table.addRow(Object.assign({},n)),n.then(function(){setTimeout(function(){t.next()})}))))},navLeft:function(e){var t=!1;this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell,t&&(e.preventDefault(),t.nav().left()))},navRight:function(e){var t=!1;this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell,t&&(e.preventDefault(),t.nav().right()))},navUp:function(e){var t=!1;this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell,t&&(e.preventDefault(),t.nav().up()))},navDown:function(e){var t=!1;this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell,t&&(e.preventDefault(),t.nav().down()))},undo:function(e){var t=!1;this.table.options.history&&this.table.modExists("history")&&this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell,t||(e.preventDefault(),this.table.modules.history.undo()))},redo:function(e){var t=!1;this.table.options.history&&this.table.modExists("history")&&this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell,t||(e.preventDefault(),this.table.modules.history.redo()))},copyToClipboard:function(e){this.table.modules.edit.currentCell||this.table.modExists("clipboard",!0)&&this.table.modules.clipboard.copy(!1,!0)}},f.prototype.registerModule("keybindings",I);var X=function(e){this.table=e,this.menuElements=[],this.blurEvent=this.hideMenu.bind(this),this.escEvent=this.escMenu.bind(this),this.nestedMenuBlock=!1,this.positionReversedX=!1};X.prototype.initializeColumnHeader=function(e){var t,o=this;e.definition.headerContextMenu&&(e.getElement().addEventListener("contextmenu",this.LoadMenuEvent.bind(this,e,e.definition.headerContextMenu)),this.tapHold(e,e.definition.headerContextMenu)),e.definition.headerMenu&&(t=document.createElement("span"),t.classList.add("tabulator-header-menu-button"),t.innerHTML="⋮",t.addEventListener("click",function(t){t.stopPropagation(),t.preventDefault(),o.LoadMenuEvent(e,e.definition.headerMenu,t)}),e.titleElement.insertBefore(t,e.titleElement.firstChild))},X.prototype.LoadMenuEvent=function(e,t,o){t="function"==typeof t?t.call(this.table,e.getComponent(),o):t,this.loadMenu(o,e,t)},X.prototype.tapHold=function(e,t){var o=this,n=e.getElement(),i=null,r=!1;n.addEventListener("touchstart",function(n){clearTimeout(i),r=!1,i=setTimeout(function(){clearTimeout(i),i=null,r=!0,o.LoadMenuEvent(e,t,n)},1e3)},{passive:!0}),n.addEventListener("touchend",function(e){clearTimeout(i),i=null,r&&e.preventDefault()})},X.prototype.initializeCell=function(e){e.column.definition.contextMenu&&(e.getElement(!0).addEventListener("contextmenu",this.LoadMenuEvent.bind(this,e,e.column.definition.contextMenu)),this.tapHold(e,e.column.definition.contextMenu)),e.column.definition.clickMenu&&e.getElement(!0).addEventListener("click",this.LoadMenuEvent.bind(this,e,e.column.definition.clickMenu))},X.prototype.initializeRow=function(e){this.table.options.rowContextMenu&&(e.getElement().addEventListener("contextmenu",this.LoadMenuEvent.bind(this,e,this.table.options.rowContextMenu)),this.tapHold(e,this.table.options.rowContextMenu)),this.table.options.rowClickMenu&&e.getElement().addEventListener("click",this.LoadMenuEvent.bind(this,e,this.table.options.rowClickMenu))},X.prototype.initializeGroup=function(e){this.table.options.groupContextMenu&&(e.getElement().addEventListener("contextmenu",this.LoadMenuEvent.bind(this,e,this.table.options.groupContextMenu)),this.tapHold(e,this.table.options.groupContextMenu)),this.table.options.groupClickMenu&&e.getElement().addEventListener("click",this.LoadMenuEvent.bind(this,e,this.table.options.groupClickMenu))},X.prototype.loadMenu=function(e,t,o,n){var i=this,r=!(e instanceof MouseEvent),a=document.createElement("div");if(a.classList.add("tabulator-menu"),r||e.preventDefault(),o&&o.length){if(!n){if(this.nestedMenuBlock){if(this.isOpen())return}else this.nestedMenuBlock=setTimeout(function(){i.nestedMenuBlock=!1},100);this.hideMenu(),this.menuElements=[]}o.forEach(function(e){var o=document.createElement("div"),n=e.label,r=e.disabled;e.separator?o.classList.add("tabulator-menu-separator"):(o.classList.add("tabulator-menu-item"),"function"==typeof n&&(n=n.call(i.table,t.getComponent())),n instanceof Node?o.appendChild(n):o.innerHTML=n,"function"==typeof r&&(r=r.call(i.table,t.getComponent())),r?(o.classList.add("tabulator-menu-item-disabled"),o.addEventListener("click",function(e){e.stopPropagation()})):e.menu&&e.menu.length?o.addEventListener("click",function(n){n.stopPropagation(),i.hideOldSubMenus(a),i.loadMenu(n,t,e.menu,o)}):e.action&&o.addEventListener("click",function(o){e.action(o,t.getComponent())}),e.menu&&e.menu.length&&o.classList.add("tabulator-menu-item-submenu")),a.appendChild(o)}),a.addEventListener("click",function(e){i.hideMenu()}),this.menuElements.push(a),this.positionMenu(a,n,r,e)}},X.prototype.hideOldSubMenus=function(e){var t=this.menuElements.indexOf(e);if(t>-1)for(var o=this.menuElements.length-1;o>t;o--){var n=this.menuElements[o];n.parentNode&&n.parentNode.removeChild(n),this.menuElements.pop()}},X.prototype.positionMenu=function(e,t,o,n){var i,r,a,s=this,c=Math.max(document.body.offsetHeight,window.innerHeight);t?(a=f.prototype.helpers.elOffset(t),i=a.left+t.offsetWidth,r=a.top-1):(i=o?n.touches[0].pageX:n.pageX,r=o?n.touches[0].pageY:n.pageY,this.positionReversedX=!1),e.style.top=r+"px",e.style.left=i+"px",setTimeout(function(){s.table.rowManager.element.addEventListener("scroll",s.blurEvent),document.body.addEventListener("click",s.blurEvent),document.body.addEventListener("contextmenu",s.blurEvent),window.addEventListener("resize",s.blurEvent),document.body.addEventListener("keydown",s.escEvent)},100),document.body.appendChild(e),r+e.offsetHeight>=c&&(e.style.top="",e.style.bottom=t?c-a.top-t.offsetHeight-1+"px":c-r+"px"),(i+e.offsetWidth>=document.body.offsetWidth||this.positionReversedX)&&(e.style.left="",e.style.right=t?document.documentElement.offsetWidth-a.left+"px":document.documentElement.offsetWidth-i+"px",this.positionReversedX=!0)},X.prototype.isOpen=function(){return!!this.menuElements.length},X.prototype.escMenu=function(e){27==e.keyCode&&this.hideMenu()},X.prototype.hideMenu=function(){this.menuElements.forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)}),document.body.removeEventListener("keydown",this.escEvent),document.body.removeEventListener("click",this.blurEvent),document.body.removeEventListener("contextmenu",this.blurEvent),window.removeEventListener("resize",this.blurEvent),this.table.rowManager.element.removeEventListener("scroll",this.blurEvent)},X.prototype.menus={},f.prototype.registerModule("menu",X);var j=function(e){this.table=e,this.placeholderElement=this.createPlaceholderElement(),this.hoverElement=!1,this.checkTimeout=!1,this.checkPeriod=250,this.moving=!1,this.toCol=!1,this.toColAfter=!1,this.startX=0,this.autoScrollMargin=40,this.autoScrollStep=5,this.autoScrollTimeout=!1,this.touchMove=!1,this.moveHover=this.moveHover.bind(this),this.endMove=this.endMove.bind(this)};j.prototype.createPlaceholderElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-col"),e.classList.add("tabulator-col-placeholder"),e},j.prototype.initializeColumn=function(e){var t,o=this,n={};e.modules.frozen||(t=e.getElement(),n.mousemove=function(n){e.parent===o.moving.parent&&((o.touchMove?n.touches[0].pageX:n.pageX)-f.prototype.helpers.elOffset(t).left+o.table.columnManager.element.scrollLeft>e.getWidth()/2?o.toCol===e&&o.toColAfter||(t.parentNode.insertBefore(o.placeholderElement,t.nextSibling),o.moveColumn(e,!0)):(o.toCol!==e||o.toColAfter)&&(t.parentNode.insertBefore(o.placeholderElement,t),o.moveColumn(e,!1)))}.bind(o),t.addEventListener("mousedown",function(t){o.touchMove=!1,1===t.which&&(o.checkTimeout=setTimeout(function(){o.startMove(t,e)},o.checkPeriod))}),t.addEventListener("mouseup",function(e){1===e.which&&o.checkTimeout&&clearTimeout(o.checkTimeout)}),o.bindTouchEvents(e)),e.modules.moveColumn=n},j.prototype.bindTouchEvents=function(e){var t,o,n,i,r,a,s=this,c=e.getElement(),p=!1;c.addEventListener("touchstart",function(c){s.checkTimeout=setTimeout(function(){s.touchMove=!0,e,t=e.nextColumn(),n=t?t.getWidth()/2:0,o=e.prevColumn(),i=o?o.getWidth()/2:0,r=0,a=0,p=!1,s.startMove(c,e)},s.checkPeriod)},{passive:!0}),c.addEventListener("touchmove",function(c){var l,u;s.moving&&(s.moveHover(c),p||(p=c.touches[0].pageX),l=c.touches[0].pageX-p,l>0?t&&l-r>n&&(u=t,u!==e&&(p=c.touches[0].pageX,u.getElement().parentNode.insertBefore(s.placeholderElement,u.getElement().nextSibling),s.moveColumn(u,!0))):o&&-l-a>i&&(u=o,u!==e&&(p=c.touches[0].pageX,u.getElement().parentNode.insertBefore(s.placeholderElement,u.getElement()),s.moveColumn(u,!1))),u&&(u,t=u.nextColumn(),r=n,n=t?t.getWidth()/2:0,o=u.prevColumn(),a=i,i=o?o.getWidth()/2:0))},{passive:!0}),c.addEventListener("touchend",function(e){s.checkTimeout&&clearTimeout(s.checkTimeout),s.moving&&s.endMove(e)})},j.prototype.startMove=function(e,t){var o=t.getElement();this.moving=t,this.startX=(this.touchMove?e.touches[0].pageX:e.pageX)-f.prototype.helpers.elOffset(o).left,this.table.element.classList.add("tabulator-block-select"),this.placeholderElement.style.width=t.getWidth()+"px",this.placeholderElement.style.height=t.getHeight()+"px",o.parentNode.insertBefore(this.placeholderElement,o),o.parentNode.removeChild(o),this.hoverElement=o.cloneNode(!0),this.hoverElement.classList.add("tabulator-moving"),this.table.columnManager.getElement().appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.bottom="0",this.touchMove||(this._bindMouseMove(),document.body.addEventListener("mousemove",this.moveHover),document.body.addEventListener("mouseup",this.endMove)),this.moveHover(e)},j.prototype._bindMouseMove=function(){this.table.columnManager.columnsByIndex.forEach(function(e){e.modules.moveColumn.mousemove&&e.getElement().addEventListener("mousemove",e.modules.moveColumn.mousemove)})},j.prototype._unbindMouseMove=function(){this.table.columnManager.columnsByIndex.forEach(function(e){e.modules.moveColumn.mousemove&&e.getElement().removeEventListener("mousemove",e.modules.moveColumn.mousemove)})},j.prototype.moveColumn=function(e,t){var o=this.moving.getCells();this.toCol=e,this.toColAfter=t,t?e.getCells().forEach(function(e,t){var n=e.getElement(!0);n.parentNode.insertBefore(o[t].getElement(),n.nextSibling)}):e.getCells().forEach(function(e,t){var n=e.getElement(!0);n.parentNode.insertBefore(o[t].getElement(),n)})},j.prototype.endMove=function(e){(1===e.which||this.touchMove)&&(this._unbindMouseMove(),this.placeholderElement.parentNode.insertBefore(this.moving.getElement(),this.placeholderElement.nextSibling),this.placeholderElement.parentNode.removeChild(this.placeholderElement),this.hoverElement.parentNode.removeChild(this.hoverElement),this.table.element.classList.remove("tabulator-block-select"),this.toCol&&this.table.columnManager.moveColumnActual(this.moving,this.toCol,this.toColAfter),this.moving=!1,this.toCol=!1,this.toColAfter=!1,this.touchMove||(document.body.removeEventListener("mousemove",this.moveHover),document.body.removeEventListener("mouseup",this.endMove)))},j.prototype.moveHover=function(e){var t,o=this,n=o.table.columnManager.getElement(),i=n.scrollLeft,r=(o.touchMove?e.touches[0].pageX:e.pageX)-f.prototype.helpers.elOffset(n).left+i;o.hoverElement.style.left=r-o.startX+"px",r-ie.getHeight()/2){if(t.toRow!==e||!t.toRowAfter){var n=e.getElement();n.parentNode.insertBefore(t.placeholderElement,n.nextSibling),t.moveRow(e,!0)}}else if(t.toRow!==e||t.toRowAfter){n=e.getElement();n.previousSibling&&(n.parentNode.insertBefore(t.placeholderElement,n),t.moveRow(e,!1))}}.bind(t),e.modules.moveRow=o},F.prototype.initializeRow=function(e){var t,o=this,n={};n.mouseup=function(t){o.tableRowDrop(t,e)}.bind(o),n.mousemove=function(t){var n=e.getElement();t.pageY-f.prototype.helpers.elOffset(n).top+o.table.rowManager.element.scrollTop>e.getHeight()/2?o.toRow===e&&o.toRowAfter||(n.parentNode.insertBefore(o.placeholderElement,n.nextSibling),o.moveRow(e,!0)):(o.toRow!==e||o.toRowAfter)&&(n.parentNode.insertBefore(o.placeholderElement,n),o.moveRow(e,!1))}.bind(o),this.hasHandle||(t=e.getElement(),t.addEventListener("mousedown",function(t){1===t.which&&(o.checkTimeout=setTimeout(function(){o.startMove(t,e)},o.checkPeriod))}),t.addEventListener("mouseup",function(e){1===e.which&&o.checkTimeout&&clearTimeout(o.checkTimeout)}),this.bindTouchEvents(e,e.getElement())),e.modules.moveRow=n},F.prototype.initializeCell=function(e){var t=this,o=e.getElement(!0);o.addEventListener("mousedown",function(o){1===o.which&&(t.checkTimeout=setTimeout(function(){t.startMove(o,e.row)},t.checkPeriod))}),o.addEventListener("mouseup",function(e){1===e.which&&t.checkTimeout&&clearTimeout(t.checkTimeout)}),this.bindTouchEvents(e.row,o)},F.prototype.bindTouchEvents=function(e,t){var o,n,i,r,a,s,c=this,p=!1;t.addEventListener("touchstart",function(t){c.checkTimeout=setTimeout(function(){c.touchMove=!0,e,o=e.nextRow(),i=o?o.getHeight()/2:0,n=e.prevRow(),r=n?n.getHeight()/2:0,a=0,s=0,p=!1,c.startMove(t,e)},c.checkPeriod)},{passive:!0}),this.moving,this.toRow,this.toRowAfter,t.addEventListener("touchmove",function(t){var l,u;c.moving&&(t.preventDefault(),c.moveHover(t),p||(p=t.touches[0].pageY),l=t.touches[0].pageY-p,l>0?o&&l-a>i&&(u=o,u!==e&&(p=t.touches[0].pageY,u.getElement().parentNode.insertBefore(c.placeholderElement,u.getElement().nextSibling),c.moveRow(u,!0))):n&&-l-s>r&&(u=n,u!==e&&(p=t.touches[0].pageY,u.getElement().parentNode.insertBefore(c.placeholderElement,u.getElement()),c.moveRow(u,!1))),u&&(u,o=u.nextRow(),a=i,i=o?o.getHeight()/2:0,n=u.prevRow(),s=r,r=n?n.getHeight()/2:0))}),t.addEventListener("touchend",function(e){c.checkTimeout&&clearTimeout(c.checkTimeout),c.moving&&(c.endMove(e),c.touchMove=!1)})},F.prototype._bindMouseMove=function(){var e=this;e.table.rowManager.getDisplayRows().forEach(function(e){"row"!==e.type&&"group"!==e.type||!e.modules.moveRow.mousemove||e.getElement().addEventListener("mousemove",e.modules.moveRow.mousemove)})},F.prototype._unbindMouseMove=function(){var e=this;e.table.rowManager.getDisplayRows().forEach(function(e){"row"!==e.type&&"group"!==e.type||!e.modules.moveRow.mousemove||e.getElement().removeEventListener("mousemove",e.modules.moveRow.mousemove)})},F.prototype.startMove=function(e,t){var o=t.getElement();this.setStartPosition(e,t),this.moving=t,this.table.element.classList.add("tabulator-block-select"),this.placeholderElement.style.width=t.getWidth()+"px",this.placeholderElement.style.height=t.getHeight()+"px",this.connection?(this.table.element.classList.add("tabulator-movingrow-sending"),this.connectToTables(t)):(o.parentNode.insertBefore(this.placeholderElement,o),o.parentNode.removeChild(o)),this.hoverElement=o.cloneNode(!0),this.hoverElement.classList.add("tabulator-moving"),this.connection?(document.body.appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.top="0",this.hoverElement.style.width=this.table.element.clientWidth+"px",this.hoverElement.style.whiteSpace="nowrap",this.hoverElement.style.overflow="hidden",this.hoverElement.style.pointerEvents="none"):(this.table.rowManager.getTableElement().appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.top="0",this._bindMouseMove()),document.body.addEventListener("mousemove",this.moveHover),document.body.addEventListener("mouseup",this.endMove),this.moveHover(e)},F.prototype.setStartPosition=function(e,t){var o,n,i=this.touchMove?e.touches[0].pageX:e.pageX,r=this.touchMove?e.touches[0].pageY:e.pageY;o=t.getElement(),this.connection?(n=o.getBoundingClientRect(),this.startX=n.left-i+window.pageXOffset,this.startY=n.top-r+window.pageYOffset):this.startY=r-o.getBoundingClientRect().top},F.prototype.endMove=function(e){e&&1!==e.which&&!this.touchMove||(this._unbindMouseMove(),this.connection||(this.placeholderElement.parentNode.insertBefore(this.moving.getElement(),this.placeholderElement.nextSibling),this.placeholderElement.parentNode.removeChild(this.placeholderElement)),this.hoverElement.parentNode.removeChild(this.hoverElement),this.table.element.classList.remove("tabulator-block-select"),this.toRow&&this.table.rowManager.moveRow(this.moving,this.toRow,this.toRowAfter),this.moving=!1,this.toRow=!1,this.toRowAfter=!1,document.body.removeEventListener("mousemove",this.moveHover),document.body.removeEventListener("mouseup",this.endMove),this.connection&&(this.table.element.classList.remove("tabulator-movingrow-sending"),this.disconnectFromTables()))},F.prototype.moveRow=function(e,t){this.toRow=e,this.toRowAfter=t},F.prototype.moveHover=function(e){this.connection?this.moveHoverConnections.call(this,e):this.moveHoverTable.call(this,e)},F.prototype.moveHoverTable=function(e){var t=this.table.rowManager.getElement(),o=t.scrollTop,n=(this.touchMove?e.touches[0].pageY:e.pageY)-t.getBoundingClientRect().top+o;this.hoverElement.style.top=n-this.startY+"px"},F.prototype.moveHoverConnections=function(e){this.hoverElement.style.left=this.startX+(this.touchMove?e.touches[0].pageX:e.pageX)+"px",this.hoverElement.style.top=this.startY+(this.touchMove?e.touches[0].pageY:e.pageY)+"px"},F.prototype.elementRowDrop=function(e,t,o){this.table.options.movableRowsElementDrop&&this.table.options.movableRowsElementDrop(e,t,!!o&&o.getComponent())},F.prototype.connectToTables=function(e){var t,o=this;this.connectionSelectorsTables&&(t=this.table.modules.comms.getConnections(this.connectionSelectorsTables),this.table.options.movableRowsSendingStart.call(this.table,t),this.table.modules.comms.send(this.connectionSelectorsTables,"moveRow","connect",{row:e})),this.connectionSelectorsElements&&(this.connectionElements=[],Array.isArray(this.connectionSelectorsElements)||(this.connectionSelectorsElements=[this.connectionSelectorsElements]),this.connectionSelectorsElements.forEach(function(e){"string"===typeof e?o.connectionElements=o.connectionElements.concat(Array.prototype.slice.call(document.querySelectorAll(e))):o.connectionElements.push(e)}),this.connectionElements.forEach(function(e){var t=function(t){o.elementRowDrop(t,e,o.moving)};e.addEventListener("mouseup",t),e.tabulatorElementDropEvent=t,e.classList.add("tabulator-movingrow-receiving")}))},F.prototype.disconnectFromTables=function(){var e;this.connectionSelectorsTables&&(e=this.table.modules.comms.getConnections(this.connectionSelectorsTables),this.table.options.movableRowsSendingStop.call(this.table,e),this.table.modules.comms.send(this.connectionSelectorsTables,"moveRow","disconnect")),this.connectionElements.forEach(function(e){e.classList.remove("tabulator-movingrow-receiving"),e.removeEventListener("mouseup",e.tabulatorElementDropEvent),delete e.tabulatorElementDropEvent})},F.prototype.connect=function(e,t){var o=this;return this.connectedTable?(console.warn("Move Row Error - Table cannot accept connection, already connected to table:",this.connectedTable),!1):(this.connectedTable=e,this.connectedRow=t,this.table.element.classList.add("tabulator-movingrow-receiving"),o.table.rowManager.getDisplayRows().forEach(function(e){"row"===e.type&&e.modules.moveRow&&e.modules.moveRow.mouseup&&e.getElement().addEventListener("mouseup",e.modules.moveRow.mouseup)}),o.tableRowDropEvent=o.tableRowDrop.bind(o),o.table.element.addEventListener("mouseup",o.tableRowDropEvent),this.table.options.movableRowsReceivingStart.call(this.table,t,e),!0)},F.prototype.disconnect=function(e){var t=this;e===this.connectedTable?(this.connectedTable=!1,this.connectedRow=!1,this.table.element.classList.remove("tabulator-movingrow-receiving"),t.table.rowManager.getDisplayRows().forEach(function(e){"row"===e.type&&e.modules.moveRow&&e.modules.moveRow.mouseup&&e.getElement().removeEventListener("mouseup",e.modules.moveRow.mouseup)}),t.table.element.removeEventListener("mouseup",t.tableRowDropEvent),this.table.options.movableRowsReceivingStop.call(this.table,e)):console.warn("Move Row Error - trying to disconnect from non connected table")},F.prototype.dropComplete=function(e,t,o){var n=!1;if(o){switch(r(this.table.options.movableRowsSender)){case"string":n=this.senders[this.table.options.movableRowsSender];break;case"function":n=this.table.options.movableRowsSender;break}n?n.call(this,this.moving.getComponent(),t?t.getComponent():void 0,e):this.table.options.movableRowsSender&&console.warn("Mover Row Error - no matching sender found:",this.table.options.movableRowsSender),this.table.options.movableRowsSent.call(this.table,this.moving.getComponent(),t?t.getComponent():void 0,e)}else this.table.options.movableRowsSentFailed.call(this.table,this.moving.getComponent(),t?t.getComponent():void 0,e);this.endMove()},F.prototype.tableRowDrop=function(e,t){var o=!1,n=!1;switch(e.stopImmediatePropagation(),r(this.table.options.movableRowsReceiver)){case"string":o=this.receivers[this.table.options.movableRowsReceiver];break;case"function":o=this.table.options.movableRowsReceiver;break}o?n=o.call(this,this.connectedRow.getComponent(),t?t.getComponent():void 0,this.connectedTable):console.warn("Mover Row Error - no matching receiver found:",this.table.options.movableRowsReceiver),n?this.table.options.movableRowsReceived.call(this.table,this.connectedRow.getComponent(),t?t.getComponent():void 0,this.connectedTable):this.table.options.movableRowsReceivedFailed.call(this.table,this.connectedRow.getComponent(),t?t.getComponent():void 0,this.connectedTable),this.table.modules.comms.send(this.connectedTable,"moveRow","dropcomplete",{row:t,success:n})},F.prototype.receivers={insert:function(e,t,o){return this.table.addRow(e.getData(),void 0,t),!0},add:function(e,t,o){return this.table.addRow(e.getData()),!0},update:function(e,t,o){return!!t&&(t.update(e.getData()),!0)},replace:function(e,t,o){return!!t&&(this.table.addRow(e.getData(),void 0,t),t.delete(),!0)}},F.prototype.senders={delete:function(e,t,o){e.delete()}},F.prototype.commsReceived=function(e,t,o){switch(t){case"connect":return this.connect(e,o.row);case"disconnect":return this.disconnect(e);case"dropcomplete":return this.dropComplete(e,o.row,o.success)}},f.prototype.registerModule("moveRow",F);var H=function(e){this.table=e,this.allowedTypes=["","data","edit","clipboard"],this.enabled=!0};H.prototype.initializeColumn=function(e){var t=this,o=!1,n={};this.allowedTypes.forEach(function(i){var r,a="mutator"+(i.charAt(0).toUpperCase()+i.slice(1));e.definition[a]&&(r=t.lookupMutator(e.definition[a]),r&&(o=!0,n[a]={mutator:r,params:e.definition[a+"Params"]||{}}))}),o&&(e.modules.mutate=n)},H.prototype.lookupMutator=function(e){var t=!1;switch("undefined"===typeof e?"undefined":r(e)){case"string":this.mutators[e]?t=this.mutators[e]:console.warn("Mutator Error - No such mutator found, ignoring: ",e);break;case"function":t=e;break}return t},H.prototype.transformRow=function(e,t,o){var n,i=this,r="mutator"+(t.charAt(0).toUpperCase()+t.slice(1));return this.enabled&&i.table.columnManager.traverse(function(i){var a,s,c;i.modules.mutate&&(a=i.modules.mutate[r]||i.modules.mutate.mutator||!1,a&&(n=i.getFieldValue("undefined"!==typeof o?o:e),"data"!=t&&"undefined"===typeof n||(c=i.getComponent(),s="function"===typeof a.params?a.params(n,e,t,c):a.params,i.setFieldValue(e,a.mutator(n,e,t,s,c)))))}),e},H.prototype.transformCell=function(e,t){var o=e.column.modules.mutate.mutatorEdit||e.column.modules.mutate.mutator||!1,n={};return o?(n=Object.assign(n,e.row.getData()),e.column.setFieldValue(n,t),o.mutator(t,n,"edit",o.params,e.getComponent())):t},H.prototype.enable=function(){this.enabled=!0},H.prototype.disable=function(){this.enabled=!1},H.prototype.mutators={},f.prototype.registerModule("mutator",H);var U=function(e){this.table=e,this.mode="local",this.progressiveLoad=!1,this.size=0,this.page=1,this.count=5,this.max=1,this.displayIndex=0,this.initialLoad=!0,this.pageSizes=[],this.dataReceivedNames={},this.dataSentNames={},this.createElements()};U.prototype.createElements=function(){var e;this.element=document.createElement("span"),this.element.classList.add("tabulator-paginator"),this.pagesElement=document.createElement("span"),this.pagesElement.classList.add("tabulator-pages"),e=document.createElement("button"),e.classList.add("tabulator-page"),e.setAttribute("type","button"),e.setAttribute("role","button"),e.setAttribute("aria-label",""),e.setAttribute("title",""),this.firstBut=e.cloneNode(!0),this.firstBut.setAttribute("data-page","first"),this.prevBut=e.cloneNode(!0),this.prevBut.setAttribute("data-page","prev"),this.nextBut=e.cloneNode(!0),this.nextBut.setAttribute("data-page","next"),this.lastBut=e.cloneNode(!0),this.lastBut.setAttribute("data-page","last"),this.table.options.paginationSizeSelector&&(this.pageSizeSelect=document.createElement("select"),this.pageSizeSelect.classList.add("tabulator-page-size"))},U.prototype.generatePageSizeSelectList=function(){var e=this,t=[];if(this.pageSizeSelect){if(Array.isArray(this.table.options.paginationSizeSelector))t=this.table.options.paginationSizeSelector,this.pageSizes=t,-1==this.pageSizes.indexOf(this.size)&&t.unshift(this.size);else if(-1==this.pageSizes.indexOf(this.size)){t=[];for(var o=1;o<5;o++)t.push(this.size*o);this.pageSizes=t}else t=this.pageSizes;while(this.pageSizeSelect.firstChild)this.pageSizeSelect.removeChild(this.pageSizeSelect.firstChild);t.forEach(function(t){var o=document.createElement("option");o.value=t,!0===t?e.table.modules.localize.bind("pagination|all",function(e){o.innerHTML=e}):o.innerHTML=t,e.pageSizeSelect.appendChild(o)}),this.pageSizeSelect.value=this.size}},U.prototype.initialize=function(e){var t,o,n,i=this;this.dataSentNames=Object.assign({},this.paginationDataSentNames),this.dataSentNames=Object.assign(this.dataSentNames,this.table.options.paginationDataSent),this.dataReceivedNames=Object.assign({},this.paginationDataReceivedNames),this.dataReceivedNames=Object.assign(this.dataReceivedNames,this.table.options.paginationDataReceived),i.table.modules.localize.bind("pagination|first",function(e){i.firstBut.innerHTML=e}),i.table.modules.localize.bind("pagination|first_title",function(e){i.firstBut.setAttribute("aria-label",e),i.firstBut.setAttribute("title",e)}),i.table.modules.localize.bind("pagination|prev",function(e){i.prevBut.innerHTML=e}),i.table.modules.localize.bind("pagination|prev_title",function(e){i.prevBut.setAttribute("aria-label",e),i.prevBut.setAttribute("title",e)}),i.table.modules.localize.bind("pagination|next",function(e){i.nextBut.innerHTML=e}),i.table.modules.localize.bind("pagination|next_title",function(e){i.nextBut.setAttribute("aria-label",e),i.nextBut.setAttribute("title",e)}),i.table.modules.localize.bind("pagination|last",function(e){i.lastBut.innerHTML=e}),i.table.modules.localize.bind("pagination|last_title",function(e){i.lastBut.setAttribute("aria-label",e),i.lastBut.setAttribute("title",e)}),i.firstBut.addEventListener("click",function(){i.setPage(1).then(function(){}).catch(function(){})}),i.prevBut.addEventListener("click",function(){i.previousPage().then(function(){}).catch(function(){})}),i.nextBut.addEventListener("click",function(){i.nextPage().then(function(){}).catch(function(){})}),i.lastBut.addEventListener("click",function(){i.setPage(i.max).then(function(){}).catch(function(){})}),i.table.options.paginationElement&&(i.element=i.table.options.paginationElement),this.pageSizeSelect&&(t=document.createElement("label"),i.table.modules.localize.bind("pagination|page_size",function(e){i.pageSizeSelect.setAttribute("aria-label",e),i.pageSizeSelect.setAttribute("title",e),t.innerHTML=e}),i.element.appendChild(t),i.element.appendChild(i.pageSizeSelect),i.pageSizeSelect.addEventListener("change",function(e){i.setPageSize("true"==i.pageSizeSelect.value||i.pageSizeSelect.value),i.setPage(1).then(function(){}).catch(function(){})})),i.element.appendChild(i.firstBut),i.element.appendChild(i.prevBut),i.element.appendChild(i.pagesElement),i.element.appendChild(i.nextBut),i.element.appendChild(i.lastBut),i.table.options.paginationElement||e||i.table.footerManager.append(i.element,i),i.mode=i.table.options.pagination,i.table.options.paginationSize?i.size=i.table.options.paginationSize:(o=document.createElement("div"),o.classList.add("tabulator-row"),o.style.visibility=e,n=document.createElement("div"),n.classList.add("tabulator-cell"),n.innerHTML="Page Row Test",o.appendChild(n),i.table.rowManager.getTableElement().appendChild(o),i.size=Math.floor(i.table.rowManager.getElement().clientHeight/o.offsetHeight),i.table.rowManager.getTableElement().removeChild(o)),i.count=i.table.options.paginationButtonCount,i.generatePageSizeSelectList()},U.prototype.initializeProgressive=function(e){this.initialize(!0),this.mode="progressive_"+e,this.progressiveLoad=!0},U.prototype.setDisplayIndex=function(e){this.displayIndex=e},U.prototype.getDisplayIndex=function(){return this.displayIndex},U.prototype.setMaxRows=function(e){this.max=e?!0===this.size?1:Math.ceil(e/this.size):1,this.page>this.max&&(this.page=this.max)},U.prototype.reset=function(e,t){return("local"==this.mode||e)&&(this.page=1),t&&(this.initialLoad=!0),!0},U.prototype.setMaxPage=function(e){e=parseInt(e),this.max=e||1,this.page>this.max&&(this.page=this.max,this.trigger())},U.prototype.setPage=function(e){var t=this,o=this;switch(e){case"first":return this.setPage(1);case"prev":return this.previousPage();case"next":return this.nextPage();case"last":return this.setPage(this.max)}return new Promise(function(n,i){e=parseInt(e),e>0&&e<=t.max||"local"!==t.mode?(t.page=e,t.trigger().then(function(){n()}).catch(function(){i()}),o.table.options.persistence&&o.table.modExists("persistence",!0)&&o.table.modules.persistence.config.page&&o.table.modules.persistence.save("page")):(console.warn("Pagination Error - Requested page is out of range of 1 - "+t.max+":",e),i())})},U.prototype.setPageToRow=function(e){var t=this;return new Promise(function(o,n){var i=t.table.rowManager.getDisplayRows(t.displayIndex-1),r=i.indexOf(e);if(r>-1){var a=!0===t.size?1:Math.ceil((r+1)/t.size);t.setPage(a).then(function(){o()}).catch(function(){n()})}else console.warn("Pagination Error - Requested row is not visible"),n()})},U.prototype.setPageSize=function(e){!0!==e&&(e=parseInt(e)),e>0&&(this.size=e),this.pageSizeSelect&&this.generatePageSizeSelectList(),this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.page&&this.table.modules.persistence.save("page")},U.prototype._setPageButtons=function(){var e=this,t=Math.floor((this.count-1)/2),o=Math.ceil((this.count-1)/2),n=this.max-this.page+t+10&&r<=e.max&&e.pagesElement.appendChild(e._generatePageButton(r));this.footerRedraw()},U.prototype._generatePageButton=function(e){var t=this,o=document.createElement("button");return o.classList.add("tabulator-page"),e==t.page&&o.classList.add("active"),o.setAttribute("type","button"),o.setAttribute("role","button"),t.table.modules.localize.bind("pagination|page_title",function(t){o.setAttribute("aria-label",t+" "+e),o.setAttribute("title",t+" "+e)}),o.setAttribute("data-page",e),o.textContent=e,o.addEventListener("click",function(o){t.setPage(e).then(function(){}).catch(function(){})}),o},U.prototype.previousPage=function(){var e=this;return new Promise(function(t,o){e.page>1?(e.page--,e.trigger().then(function(){t()}).catch(function(){o()}),e.table.options.persistence&&e.table.modExists("persistence",!0)&&e.table.modules.persistence.config.page&&e.table.modules.persistence.save("page")):(console.warn("Pagination Error - Previous page would be less than page 1:",0),o())})},U.prototype.nextPage=function(){var e=this;return new Promise(function(t,o){e.pagei?n.splice(i,0,e):n.push(e))}),n},V.prototype._findColumn=function(e,t){var o=t.columns?"group":t.field?"field":"object";return e.find(function(e){switch(o){case"group":return e.title===t.title&&e.columns.length===t.columns.length;case"field":return e.field===t.field;case"object":return e===t}})},V.prototype.save=function(e){var t={};switch(e){case"columns":t=this.parseColumns(this.table.columnManager.getColumns());break;case"filter":t=this.table.modules.filter.getFilters();break;case"sort":t=this.validateSorters(this.table.modules.sort.getSort());break;case"group":t=this.getGroupConfig();break;case"page":t=this.getPageConfig();break}this.writeFunc&&this.writeFunc(this.id,e,t)},V.prototype.validateSorters=function(e){return e.forEach(function(e){e.column=e.field,delete e.field}),e},V.prototype.getGroupConfig=function(){var e={};return this.config.group&&((!0===this.config.group||this.config.group.groupBy)&&(e.groupBy=this.table.options.groupBy),(!0===this.config.group||this.config.group.groupStartOpen)&&(e.groupStartOpen=this.table.options.groupStartOpen),(!0===this.config.group||this.config.group.groupHeader)&&(e.groupHeader=this.table.options.groupHeader)),e},V.prototype.getPageConfig=function(){var e={};return this.config.page&&((!0===this.config.page||this.config.page.size)&&(e.paginationSize=this.table.modules.page.getPageSize()),(!0===this.config.page||this.config.page.page)&&(e.paginationInitialPage=this.table.modules.page.getPage())),e},V.prototype.parseColumns=function(e){var t=this,o=[],n=["headerContextMenu","headerMenu","contextMenu","clickMenu"];return e.forEach(function(e){var i,r={},a=e.getDefinition();e.isGroup?(r.title=a.title,r.columns=t.parseColumns(e.getColumns())):(r.field=e.getField(),!0===t.config.columns||void 0==t.config.columns?(i=Object.keys(a),i.push("width")):i=t.config.columns,i.forEach(function(t){switch(t){case"width":r.width=e.getWidth();break;case"visible":r.visible=e.visible;break;default:"function"!==typeof a[t]&&-1===n.indexOf(t)&&(r[t]=a[t])}})),o.push(r)}),o},V.prototype.readers={local:function(e,t){var o=localStorage.getItem(e+"-"+t);return!!o&&JSON.parse(o)},cookie:function(e,t){var o,n,i=document.cookie,r=e+"-"+t,a=i.indexOf(r+"=");return a>-1&&(i=i.substr(a),o=i.indexOf(";"),o>-1&&(i=i.substr(0,o)),n=i.replace(r+"=","")),!!n&&JSON.parse(n)}},V.prototype.writers={local:function(e,t,o){localStorage.setItem(e+"-"+t,JSON.stringify(o))},cookie:function(e,t,o){var n=new Date;n.setDate(n.getDate()+1e4),document.cookie=e+"-"+t+"="+JSON.stringify(o)+"; expires="+n.toUTCString()}},f.prototype.registerModule("persistence",V);var G=function(e){this.table=e,this.element=!1,this.manualBlock=!1};G.prototype.initialize=function(){window.addEventListener("beforeprint",this.replaceTable.bind(this)),window.addEventListener("afterprint",this.cleanup.bind(this))},G.prototype.replaceTable=function(){this.manualBlock||(this.element=document.createElement("div"),this.element.classList.add("tabulator-print-table"),this.element.appendChild(this.table.modules.export.genereateTable(this.table.options.printConfig,this.table.options.printStyled,this.table.options.printRowRange,"print")),this.table.element.style.display="none",this.table.element.parentNode.insertBefore(this.element,this.table.element))},G.prototype.cleanup=function(){document.body.classList.remove("tabulator-print-fullscreen-hide"),this.element&&this.element.parentNode&&(this.element.parentNode.removeChild(this.element),this.table.element.style.display="")},G.prototype.printFullscreen=function(e,t,o){var n,i,r=window.scrollX,a=window.scrollY,s=document.createElement("div"),c=document.createElement("div"),p=this.table.modules.export.genereateTable("undefined"!=typeof o?o:this.table.options.printConfig,"undefined"!=typeof t?t:this.table.options.printStyled,e,"print");this.manualBlock=!0,this.element=document.createElement("div"),this.element.classList.add("tabulator-print-fullscreen"),this.table.options.printHeader&&(s.classList.add("tabulator-print-header"),n="function"==typeof this.table.options.printHeader?this.table.options.printHeader.call(this.table):this.table.options.printHeader,"string"==typeof n?s.innerHTML=n:s.appendChild(n),this.element.appendChild(s)),this.element.appendChild(p),this.table.options.printFooter&&(c.classList.add("tabulator-print-footer"),i="function"==typeof this.table.options.printFooter?this.table.options.printFooter.call(this.table):this.table.options.printFooter,"string"==typeof i?c.innerHTML=i:c.appendChild(i),this.element.appendChild(c)),document.body.classList.add("tabulator-print-fullscreen-hide"),document.body.appendChild(this.element),this.table.options.printFormatter&&this.table.options.printFormatter(this.element,p),window.print(),this.cleanup(),window.scrollTo(r,a),this.manualBlock=!1},f.prototype.registerModule("print",G);var K=function(e){this.table=e,this.data=!1,this.blocked=!1,this.origFuncs={},this.currentVersion=0};K.prototype.watchData=function(e){var t,o=this;this.currentVersion++,t=this.currentVersion,o.unwatchData(),o.data=e,o.origFuncs.push=e.push,Object.defineProperty(o.data,"push",{enumerable:!1,configurable:!0,value:function(){var n=Array.from(arguments);return o.blocked||t!==o.currentVersion||n.forEach(function(e){o.table.rowManager.addRowActual(e,!1)}),o.origFuncs.push.apply(e,arguments)}}),o.origFuncs.unshift=e.unshift,Object.defineProperty(o.data,"unshift",{enumerable:!1,configurable:!0,value:function(){var n=Array.from(arguments);return o.blocked||t!==o.currentVersion||n.forEach(function(e){o.table.rowManager.addRowActual(e,!0)}),o.origFuncs.unshift.apply(e,arguments)}}),o.origFuncs.shift=e.shift,Object.defineProperty(o.data,"shift",{enumerable:!1,configurable:!0,value:function(){var n;return o.blocked||t!==o.currentVersion||o.data.length&&(n=o.table.rowManager.getRowFromDataObject(o.data[0]),n&&n.deleteActual()),o.origFuncs.shift.call(e)}}),o.origFuncs.pop=e.pop,Object.defineProperty(o.data,"pop",{enumerable:!1,configurable:!0,value:function(){var n;return o.blocked||t!==o.currentVersion||o.data.length&&(n=o.table.rowManager.getRowFromDataObject(o.data[o.data.length-1]),n&&n.deleteActual()),o.origFuncs.pop.call(e)}}),o.origFuncs.splice=e.splice,Object.defineProperty(o.data,"splice",{enumerable:!1,configurable:!0,value:function(){var n,i=Array.from(arguments),r=i[0]<0?e.length+i[0]:i[0],a=i[1],s=!!i[2]&&i.slice(2);if(!o.blocked&&t===o.currentVersion){if(s&&(n=!!e[r]&&o.table.rowManager.getRowFromDataObject(e[r]),n?s.forEach(function(e){o.table.rowManager.addRowActual(e,!0,n,!0)}):(s=s.slice().reverse(),s.forEach(function(e){o.table.rowManager.addRowActual(e,!0,!1,!0)}))),0!==a){var c=e.slice(r,"undefined"===typeof i[1]?i[1]:r+a);c.forEach(function(e,t){var n=o.table.rowManager.getRowFromDataObject(e);n&&n.deleteActual(t!==c.length-1)})}(s||0!==a)&&o.table.rowManager.reRenderInPosition()}return o.origFuncs.splice.apply(e,arguments)}})},K.prototype.unwatchData=function(){if(!1!==this.data)for(var e in this.origFuncs)Object.defineProperty(this.data,e,{enumerable:!0,configurable:!0,writable:!0,value:this.origFuncs.key})},K.prototype.watchRow=function(e){var t=e.getData();for(var o in this.blocked=!0,t)this.watchKey(e,t,o);this.table.options.dataTree&&this.watchTreeChildren(e),this.blocked=!1},K.prototype.watchTreeChildren=function(e){var t=this,o=e.getData()[this.table.options.dataTreeChildField],n={};function i(){t.table.modules.dataTree.initializeRow(e),t.table.modules.dataTree.layoutRow(e),t.table.rowManager.refreshActiveData("tree",!1,!0)}o&&(n.push=o.push,Object.defineProperty(o,"push",{enumerable:!1,configurable:!0,value:function(){var e=n.push.apply(o,arguments);return i(),e}}),n.unshift=o.unshift,Object.defineProperty(o,"unshift",{enumerable:!1,configurable:!0,value:function(){var e=n.unshift.apply(o,arguments);return i(),e}}),n.shift=o.shift,Object.defineProperty(o,"shift",{enumerable:!1,configurable:!0,value:function(){var e=n.shift.call(o);return i(),e}}),n.pop=o.pop,Object.defineProperty(o,"pop",{enumerable:!1,configurable:!0,value:function(){var e=n.pop.call(o);return i(),e}}),n.splice=o.splice,Object.defineProperty(o,"splice",{enumerable:!1,configurable:!0,value:function(){var e=n.splice.apply(o,arguments);return i(),e}}))},K.prototype.watchKey=function(e,t,o){var n=this,i=Object.getOwnPropertyDescriptor(t,o),r=t[o],a=this.currentVersion;Object.defineProperty(t,o,{set:function(t){if(r=t,!n.blocked&&a===n.currentVersion){var s={};s[o]=t,e.updateData(s)}i.set&&i.set(t)},get:function(){return i.get&&i.get(),r}})},K.prototype.unwatchRow=function(e){var t=e.getData();for(var o in t)Object.defineProperty(t,o,{value:t[o]})},K.prototype.block=function(){this.blocked=!0},K.prototype.unblock=function(){this.blocked=!1},f.prototype.registerModule("reactiveData",K);var $=function(e){this.table=e,this.startColumn=!1,this.startX=!1,this.startWidth=!1,this.handle=null,this.prevHandle=null};$.prototype.initializeColumn=function(e,t,o){var n=this,i=!1,r=this.table.options.resizableColumns;if("header"===e&&(i="textarea"==t.definition.formatter||t.definition.variableHeight,t.modules.resize={variableHeight:i}),!0===r||r==e){var a=document.createElement("div");a.className="tabulator-col-resize-handle";var s=document.createElement("div");s.className="tabulator-col-resize-handle prev",a.addEventListener("click",function(e){e.stopPropagation()});var c=function(e){var o=t.getLastColumn();o&&n._checkResizability(o)&&(n.startColumn=t,n._mouseDown(e,o,a))};a.addEventListener("mousedown",c),a.addEventListener("touchstart",c,{passive:!0}),a.addEventListener("dblclick",function(e){var o=t.getLastColumn();o&&n._checkResizability(o)&&(e.stopPropagation(),o.reinitializeWidth(!0))}),s.addEventListener("click",function(e){e.stopPropagation()});var p=function(e){var o,i,r;o=t.getFirstColumn(),o&&(i=n.table.columnManager.findColumnIndex(o),r=i>0&&n.table.columnManager.getColumnByIndex(i-1),r&&n._checkResizability(r)&&(n.startColumn=t,n._mouseDown(e,r,s)))};s.addEventListener("mousedown",p),s.addEventListener("touchstart",p,{passive:!0}),s.addEventListener("dblclick",function(e){var o,i,r;o=t.getFirstColumn(),o&&(i=n.table.columnManager.findColumnIndex(o),r=i>0&&n.table.columnManager.getColumnByIndex(i-1),r&&n._checkResizability(r)&&(e.stopPropagation(),r.reinitializeWidth(!0)))}),o.appendChild(a),o.appendChild(s)}},$.prototype._checkResizability=function(e){return"undefined"!=typeof e.definition.resizable?e.definition.resizable:this.table.options.resizableColumns},$.prototype._mouseDown=function(e,t,o){var n=this;function i(e){n.table.rtl?t.setWidth(n.startWidth-(("undefined"===typeof e.screenX?e.touches[0].screenX:e.screenX)-n.startX)):t.setWidth(n.startWidth+(("undefined"===typeof e.screenX?e.touches[0].screenX:e.screenX)-n.startX)),n.table.options.virtualDomHoz&&n.table.vdomHoz.reinitialize(!0),!n.table.browserSlow&&t.modules.resize&&t.modules.resize.variableHeight&&t.checkCellHeights()}function r(e){n.startColumn.modules.edit&&(n.startColumn.modules.edit.blocked=!1),n.table.browserSlow&&t.modules.resize&&t.modules.resize.variableHeight&&t.checkCellHeights(),document.body.removeEventListener("mouseup",r),document.body.removeEventListener("mousemove",i),o.removeEventListener("touchmove",i),o.removeEventListener("touchend",r),n.table.element.classList.remove("tabulator-block-select"),n.table.options.persistence&&n.table.modExists("persistence",!0)&&n.table.modules.persistence.config.columns&&n.table.modules.persistence.save("columns"),n.table.options.columnResized.call(n.table,t.getComponent())}n.table.element.classList.add("tabulator-block-select"),e.stopPropagation(),n.startColumn.modules.edit&&(n.startColumn.modules.edit.blocked=!0),n.startX="undefined"===typeof e.screenX?e.touches[0].screenX:e.screenX,n.startWidth=t.getWidth(),document.body.addEventListener("mousemove",i),document.body.addEventListener("mouseup",r),o.addEventListener("touchmove",i,{passive:!0}),o.addEventListener("touchend",r)},f.prototype.registerModule("resizeColumns",$);var Y=function(e){this.table=e,this.startColumn=!1,this.startY=!1,this.startHeight=!1,this.handle=null,this.prevHandle=null};Y.prototype.initializeRow=function(e){var t=this,o=e.getElement(),n=document.createElement("div");n.className="tabulator-row-resize-handle";var i=document.createElement("div");i.className="tabulator-row-resize-handle prev",n.addEventListener("click",function(e){e.stopPropagation()});var r=function(o){t.startRow=e,t._mouseDown(o,e,n)};n.addEventListener("mousedown",r),n.addEventListener("touchstart",r,{passive:!0}),i.addEventListener("click",function(e){e.stopPropagation()});var a=function(o){var n=t.table.rowManager.prevDisplayRow(e);n&&(t.startRow=n,t._mouseDown(o,n,i))};i.addEventListener("mousedown",a),i.addEventListener("touchstart",a,{passive:!0}),o.appendChild(n),o.appendChild(i)},Y.prototype._mouseDown=function(e,t,o){var n=this;function i(e){t.setHeight(n.startHeight+(("undefined"===typeof e.screenY?e.touches[0].screenY:e.screenY)-n.startY))}function r(e){document.body.removeEventListener("mouseup",i),document.body.removeEventListener("mousemove",i),o.removeEventListener("touchmove",i),o.removeEventListener("touchend",r),n.table.element.classList.remove("tabulator-block-select"),n.table.options.rowResized.call(this.table,t.getComponent())}n.table.element.classList.add("tabulator-block-select"),e.stopPropagation(),n.startY="undefined"===typeof e.screenY?e.touches[0].screenY:e.screenY,n.startHeight=t.getHeight(),document.body.addEventListener("mousemove",i),document.body.addEventListener("mouseup",r),o.addEventListener("touchmove",i,{passive:!0}),o.addEventListener("touchend",r)},f.prototype.registerModule("resizeRows",Y);var J=function(e){this.table=e,this.binding=!1,this.observer=!1,this.containerObserver=!1,this.tableHeight=0,this.tableWidth=0,this.containerHeight=0,this.containerWidth=0,this.autoResize=!1};J.prototype.initialize=function(e){var t,o=this,n=this.table;this.tableHeight=n.element.clientHeight,this.tableWidth=n.element.clientWidth,n.element.parentNode&&(this.containerHeight=n.element.parentNode.clientHeight,this.containerWidth=n.element.parentNode.clientWidth),"undefined"!==typeof ResizeObserver&&"virtual"===n.rowManager.getRenderMode()?(this.autoResize=!0,this.observer=new ResizeObserver(function(e){if(!n.browserMobile||n.browserMobile&&!n.modules.edit.currentCell){var t=Math.floor(e[0].contentRect.height),i=Math.floor(e[0].contentRect.width);o.tableHeight==t&&o.tableWidth==i||(o.tableHeight=t,o.tableWidth=i,n.element.parentNode&&(o.containerHeight=n.element.parentNode.clientHeight,o.containerWidth=n.element.parentNode.clientWidth),n.options.virtualDomHoz&&n.vdomHoz.reinitialize(!0),n.redraw())}}),this.observer.observe(n.element),t=window.getComputedStyle(n.element),this.table.element.parentNode&&!this.table.rowManager.fixedHeight&&(t.getPropertyValue("max-height")||t.getPropertyValue("min-height"))&&(this.containerObserver=new ResizeObserver(function(e){if(!n.browserMobile||n.browserMobile&&!n.modules.edit.currentCell){var t=Math.floor(e[0].contentRect.height),i=Math.floor(e[0].contentRect.width);o.containerHeight==t&&o.containerWidth==i||(o.containerHeight=t,o.containerWidth=i,o.tableHeight=n.element.clientHeight,o.tableWidth=n.element.clientWidth),n.options.virtualDomHoz&&n.vdomHoz.reinitialize(!0),n.redraw()}}),this.containerObserver.observe(this.table.element.parentNode))):(this.binding=function(){(!n.browserMobile||n.browserMobile&&!n.modules.edit.currentCell)&&(n.options.virtualDomHoz&&n.vdomHoz.reinitialize(!0),n.redraw())},window.addEventListener("resize",this.binding))},J.prototype.clearBindings=function(e){this.binding&&window.removeEventListener("resize",this.binding),this.observer&&this.observer.unobserve(this.table.element),this.containerObserver&&this.containerObserver.unobserve(this.table.element.parentNode)},f.prototype.registerModule("resizeTable",J);var Q=function(e){this.table=e,this.columns=[],this.hiddenColumns=[],this.mode="",this.index=0,this.collapseFormatter=[],this.collapseStartOpen=!0,this.collapseHandleColumn=!1};Q.prototype.initialize=function(){var e=this,t=[];this.mode=this.table.options.responsiveLayout,this.collapseFormatter=this.table.options.responsiveLayoutCollapseFormatter||this.formatCollapsedData,this.collapseStartOpen=this.table.options.responsiveLayoutCollapseStartOpen,this.hiddenColumns=[],this.table.columnManager.columnsByIndex.forEach(function(o,n){o.modules.responsive&&o.modules.responsive.order&&o.modules.responsive.visible&&(o.modules.responsive.index=n,t.push(o),o.visible||"collapse"!==e.mode||e.hiddenColumns.push(o))}),t=t.reverse(),t=t.sort(function(e,t){var o=t.modules.responsive.order-e.modules.responsive.order;return o||t.modules.responsive.index-e.modules.responsive.index}),this.columns=t,"collapse"===this.mode&&this.generateCollapsedContent();var o=this.table.columnManager.columnsByIndex,n=Array.isArray(o),i=0;for(o=n?o:o[Symbol.iterator]();;){var r;if(n){if(i>=o.length)break;r=o[i++]}else{if(i=o.next(),i.done)break;r=i.value}var a=r;if("responsiveCollapse"==a.definition.formatter){this.collapseHandleColumn=a;break}}this.collapseHandleColumn&&(this.hiddenColumns.length?this.collapseHandleColumn.show():this.collapseHandleColumn.hide())},Q.prototype.initializeColumn=function(e){var t=e.getDefinition();e.modules.responsive={order:"undefined"===typeof t.responsive?1:t.responsive,visible:!1!==t.visible}},Q.prototype.initializeRow=function(e){var t;"calc"!==e.type&&(t=document.createElement("div"),t.classList.add("tabulator-responsive-collapse"),e.modules.responsiveLayout={element:t,open:this.collapseStartOpen},this.collapseStartOpen||(t.style.display="none"))},Q.prototype.layoutRow=function(e){var t=e.getElement();e.modules.responsiveLayout&&(t.appendChild(e.modules.responsiveLayout.element),this.generateCollapsedRowContent(e))},Q.prototype.updateColumnVisibility=function(e,t){e.modules.responsive&&(e.modules.responsive.visible=t,this.initialize())},Q.prototype.hideColumn=function(e){var t=this.hiddenColumns.length;e.hide(!1,!0),"collapse"===this.mode&&(this.hiddenColumns.unshift(e),this.generateCollapsedContent(),this.collapseHandleColumn&&!t&&this.collapseHandleColumn.show())},Q.prototype.showColumn=function(e){var t;e.show(!1,!0),e.setWidth(e.getWidth()),"collapse"===this.mode&&(t=this.hiddenColumns.indexOf(e),t>-1&&this.hiddenColumns.splice(t,1),this.generateCollapsedContent(),this.collapseHandleColumn&&!this.hiddenColumns.length&&this.collapseHandleColumn.hide())},Q.prototype.update=function(){var e=this,t=!0;while(t){var o="fitColumns"==e.table.modules.layout.getMode()?e.table.columnManager.getFlexBaseWidth():e.table.columnManager.getWidth(),n=(e.table.options.headerVisible?e.table.columnManager.element.clientWidth:e.table.element.clientWidth)-o;if(n<0){var i=e.columns[e.index];i?(e.hideColumn(i),e.index++):t=!1}else{var r=e.columns[e.index-1];r&&n>0&&n>=r.getWidth()?(e.showColumn(r),e.index--):t=!1}e.table.rowManager.activeRowsCount||e.table.rowManager.renderEmptyScroll()}},Q.prototype.generateCollapsedContent=function(){var e=this,t=this.table.rowManager.getDisplayRows();t.forEach(function(t){e.generateCollapsedRowContent(t)})},Q.prototype.generateCollapsedRowContent=function(e){var t,o;if(e.modules.responsiveLayout){t=e.modules.responsiveLayout.element;while(t.firstChild)t.removeChild(t.firstChild);o=this.collapseFormatter(this.generateCollapsedRowData(e)),o&&t.appendChild(o)}},Q.prototype.generateCollapsedRowData=function(e){var t,o=this,n=e.getData(),i=[];return this.hiddenColumns.forEach(function(r){var a=r.getFieldValue(n);r.definition.title&&r.field&&(r.modules.format&&o.table.options.responsiveLayoutCollapseUseFormatters?(t={value:!1,data:{},getValue:function(){return a},getData:function(){return n},getElement:function(){return document.createElement("div")},getRow:function(){return e.getComponent()},getColumn:function(){return r.getComponent()}},i.push({field:r.field,title:r.definition.title,value:r.modules.format.formatter.call(o.table.modules.format,t,r.modules.format.params)})):i.push({field:r.field,title:r.definition.title,value:a}))}),i},Q.prototype.formatCollapsedData=function(e){var t=document.createElement("table");return e.forEach(function(e){var o,n=document.createElement("tr"),i=document.createElement("td"),r=document.createElement("td"),a=document.createElement("strong");i.appendChild(a),this.table.modules.localize.bind("columns|"+e.field,function(t){a.innerText=t||e.title}),e.value instanceof Node?(o=document.createElement("div"),o.appendChild(e.value),r.appendChild(o)):r.innerHTML=e.value,n.appendChild(i),n.appendChild(r),t.appendChild(n)},this),Object.keys(e).length?t:""},f.prototype.registerModule("responsiveLayout",Q);var Z=function(e){this.table=e,this.selecting=!1,this.lastClickedRow=!1,this.selectPrev=[],this.selectedRows=[],this.headerCheckboxElement=null};Z.prototype.clearSelectionData=function(e){this.selecting=!1,this.lastClickedRow=!1,this.selectPrev=[],this.selectedRows=[],e||this._rowSelectionChanged()},Z.prototype.initializeRow=function(e){var t=this,o=e.getElement(),n=function e(){setTimeout(function(){t.selecting=!1},50),document.body.removeEventListener("mouseup",e)};e.modules.select={selected:!1},t.table.options.selectableCheck.call(this.table,e.getComponent())?(o.classList.add("tabulator-selectable"),o.classList.remove("tabulator-unselectable"),t.table.options.selectable&&"highlight"!=t.table.options.selectable&&("click"===t.table.options.selectableRangeMode?o.addEventListener("click",function(o){if(o.shiftKey){t.table._clearSelection(),t.lastClickedRow=t.lastClickedRow||e;var n=t.table.rowManager.getDisplayRowIndex(t.lastClickedRow),i=t.table.rowManager.getDisplayRowIndex(e),r=n<=i?n:i,a=n>=i?n:i,s=t.table.rowManager.getDisplayRows().slice(0),c=s.splice(r,a-r+1);o.ctrlKey||o.metaKey?(c.forEach(function(o){o!==t.lastClickedRow&&(!0===t.table.options.selectable||t.isRowSelected(e)?t.toggleRow(o):t.selectedRows.lengtht.table.options.selectable&&(c=c.slice(0,t.table.options.selectable)),t.selectRows(c)),t.table._clearSelection()}else o.ctrlKey||o.metaKey?(t.toggleRow(e),t.lastClickedRow=e):(t.deselectRows(void 0,!0),t.selectRows(e),t.lastClickedRow=e)}):(o.addEventListener("click",function(o){t.table.modExists("edit")&&t.table.modules.edit.getCurrentCell()||t.table._clearSelection(),t.selecting||t.toggleRow(e)}),o.addEventListener("mousedown",function(o){if(o.shiftKey)return t.table._clearSelection(),t.selecting=!0,t.selectPrev=[],document.body.addEventListener("mouseup",n),document.body.addEventListener("keyup",n),t.toggleRow(e),!1}),o.addEventListener("mouseenter",function(o){t.selecting&&(t.table._clearSelection(),t.toggleRow(e),t.selectPrev[1]==e&&t.toggleRow(t.selectPrev[0]))}),o.addEventListener("mouseout",function(o){t.selecting&&(t.table._clearSelection(),t.selectPrev.unshift(e))})))):(o.classList.add("tabulator-unselectable"),o.classList.remove("tabulator-selectable"))},Z.prototype.toggleRow=function(e){this.table.options.selectableCheck.call(this.table,e.getComponent())&&(e.modules.select&&e.modules.select.selected?this._deselectRow(e):this._selectRow(e))},Z.prototype.selectRows=function(e){var t,o=this;switch("undefined"===typeof e?"undefined":r(e)){case"undefined":this.table.rowManager.rows.forEach(function(e){o._selectRow(e,!0,!0)}),this._rowSelectionChanged();break;case"string":t=this.table.rowManager.findRow(e),t?this._selectRow(t,!0,!0):this.table.rowManager.getRows(e).forEach(function(e){o._selectRow(e,!0,!0)}),this._rowSelectionChanged();break;default:Array.isArray(e)?(e.forEach(function(e){o._selectRow(e,!0,!0)}),this._rowSelectionChanged()):this._selectRow(e,!1,!0);break}},Z.prototype._selectRow=function(e,t,o){if(!isNaN(this.table.options.selectable)&&!0!==this.table.options.selectable&&!o&&this.selectedRows.length>=this.table.options.selectable){if(!this.table.options.selectableRollingSelection)return!1;this._deselectRow(this.selectedRows[0])}var n=this.table.rowManager.findRow(e);n?-1==this.selectedRows.indexOf(n)&&(n.getElement().classList.add("tabulator-selected"),n.modules.select||(n.modules.select={}),n.modules.select.selected=!0,n.modules.select.checkboxEl&&(n.modules.select.checkboxEl.checked=!0),this.selectedRows.push(n),this.table.options.dataTreeSelectPropagate&&this.childRowSelection(n,!0),t||this.table.options.rowSelected.call(this.table,n.getComponent()),this._rowSelectionChanged(t)):t||console.warn("Selection Error - No such row found, ignoring selection:"+e)},Z.prototype.isRowSelected=function(e){return-1!==this.selectedRows.indexOf(e)},Z.prototype.deselectRows=function(e,t){var o,n=this;if("undefined"==typeof e){o=n.selectedRows.length;for(var i=0;i-1&&(i.getElement().classList.remove("tabulator-selected"),i.modules.select||(i.modules.select={}),i.modules.select.selected=!1,i.modules.select.checkboxEl&&(i.modules.select.checkboxEl.checked=!1),n.selectedRows.splice(o,1),this.table.options.dataTreeSelectPropagate&&this.childRowSelection(i,!1),t||n.table.options.rowDeselected.call(this.table,i.getComponent()),n._rowSelectionChanged(t))):t||console.warn("Deselection Error - No such row found, ignoring selection:"+e)},Z.prototype.getSelectedData=function(){var e=[];return this.selectedRows.forEach(function(t){e.push(t.getData())}),e},Z.prototype.getSelectedRows=function(){var e=[];return this.selectedRows.forEach(function(t){e.push(t.getComponent())}),e},Z.prototype._rowSelectionChanged=function(e){this.headerCheckboxElement&&(0===this.selectedRows.length?(this.headerCheckboxElement.checked=!1,this.headerCheckboxElement.indeterminate=!1):this.table.rowManager.rows.length===this.selectedRows.length?(this.headerCheckboxElement.checked=!0,this.headerCheckboxElement.indeterminate=!1):(this.headerCheckboxElement.indeterminate=!0,this.headerCheckboxElement.checked=!1)),e||this.table.options.rowSelectionChanged.call(this.table,this.getSelectedData(),this.getSelectedRows())},Z.prototype.registerRowSelectCheckbox=function(e,t){e._row.modules.select||(e._row.modules.select={}),e._row.modules.select.checkboxEl=t},Z.prototype.registerHeaderSelectCheckbox=function(e){this.headerCheckboxElement=e},Z.prototype.childRowSelection=function(e,t){var o=this.table.modules.dataTree.getChildren(e,!0);if(t){var n=o,i=Array.isArray(n),r=0;for(n=i?n:n[Symbol.iterator]();;){var a;if(i){if(r>=n.length)break;a=n[r++]}else{if(r=n.next(),r.done)break;a=r.value}var s=a;this._selectRow(s,!0)}}else{var c=o,p=Array.isArray(c),l=0;for(c=p?c:c[Symbol.iterator]();;){var u;if(p){if(l>=c.length)break;u=c[l++]}else{if(l=c.next(),l.done)break;u=l.value}var b=u;this._deselectRow(b,!0)}}},f.prototype.registerModule("selectRow",Z);var ee=function(e){this.table=e,this.sortList=[],this.changed=!1};ee.prototype.initializeColumn=function(e,t){var o,n,i=this,a=!1;switch(r(e.definition.sorter)){case"string":i.sorters[e.definition.sorter]?a=i.sorters[e.definition.sorter]:console.warn("Sort Error - No such sorter found: ",e.definition.sorter);break;case"function":a=e.definition.sorter;break}e.modules.sort={sorter:a,dir:"none",params:e.definition.sorterParams||{},startingDir:e.definition.headerSortStartingDir||"asc",tristate:"undefined"!==typeof e.definition.headerSortTristate?e.definition.headerSortTristate:this.table.options.headerSortTristate},("undefined"===typeof e.definition.headerSort?!1!==this.table.options.headerSort:!1!==e.definition.headerSort)&&(o=e.getElement(),o.classList.add("tabulator-sortable"),n=document.createElement("div"),n.classList.add("tabulator-col-sorter"),"object"==r(this.table.options.headerSortElement)?n.appendChild(this.table.options.headerSortElement):n.innerHTML=this.table.options.headerSortElement,t.appendChild(n),e.modules.sort.element=n,o.addEventListener("click",function(t){var o="",n=[],r=!1;if(e.modules.sort){if(e.modules.sort.tristate)o="none"==e.modules.sort.dir?e.modules.sort.startingDir:e.modules.sort.dir==e.modules.sort.startingDir?"asc"==e.modules.sort.dir?"desc":"asc":"none";else switch(e.modules.sort.dir){case"asc":o="desc";break;case"desc":o="asc";break;default:o=e.modules.sort.startingDir}i.table.options.columnHeaderSortMulti&&(t.shiftKey||t.ctrlKey)?(n=i.getSort(),r=n.findIndex(function(t){return t.field===e.getField()}),r>-1?(n[r].dir=o,r!=n.length-1&&(r=n.splice(r,1)[0],"none"!=o&&n.push(r))):"none"!=o&&n.push({column:e,dir:o}),i.setSort(n)):"none"==o?i.clear():i.setSort(e,o),i.table.rowManager.sorterRefresh(!i.sortList.length)}}))},ee.prototype.hasChanged=function(){var e=this.changed;return this.changed=!1,e},ee.prototype.getSort=function(){var e=this,t=[];return e.sortList.forEach(function(e){e.column&&t.push({column:e.column.getComponent(),field:e.column.getField(),dir:e.dir})}),t},ee.prototype.setSort=function(e,t){var o=this,n=[];Array.isArray(e)||(e=[{column:e,dir:t}]),e.forEach(function(e){var t;t=o.table.columnManager.findColumn(e.column),t?(e.column=t,n.push(e),o.changed=!0):console.warn("Sort Warning - Sort field does not exist and is being ignored: ",e.column)}),o.sortList=n,this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.sort&&this.table.modules.persistence.save("sort")},ee.prototype.clear=function(){this.setSort([])},ee.prototype.findSorter=function(e){var t,o,n=this.table.rowManager.activeRows[0],i="string";if(n&&(n=n.getData(),t=e.getField(),t))switch(o=e.getFieldValue(n),"undefined"===typeof o?"undefined":r(o)){case"undefined":i="string";break;case"boolean":i="boolean";break;default:isNaN(o)||""===o?o.match(/((^[0-9]+[a-z]+)|(^[a-z]+[0-9]+))+$/i)&&(i="alphanum"):i="number";break}return this.sorters[i]},ee.prototype.sort=function(e){var t=this,o=this.table.options.sortOrderReverse?t.sortList.slice().reverse():t.sortList,n=[],i=[];t.table.options.dataSorting&&t.table.options.dataSorting.call(t.table,t.getSort()),t.clearColumnHeaders(),t.table.options.ajaxSorting?o.forEach(function(e,o){t.setColumnHeader(e.column,e.dir)}):(o.forEach(function(e,o){var i=e.column.modules.sort;e.column&&i&&(i.sorter||(i.sorter=t.findSorter(e.column)),e.params="function"===typeof i.params?i.params(e.column.getComponent(),e.dir):i.params,n.push(e)),t.setColumnHeader(e.column,e.dir)}),n.length&&t._sortItems(e,n)),t.table.options.dataSorted&&(e.forEach(function(e){i.push(e.getComponent())}),t.table.options.dataSorted.call(t.table,t.getSort(),i))},ee.prototype.clearColumnHeaders=function(){this.table.columnManager.getRealColumns().forEach(function(e){e.modules.sort&&(e.modules.sort.dir="none",e.getElement().setAttribute("aria-sort","none"))})},ee.prototype.setColumnHeader=function(e,t){e.modules.sort.dir=t,e.getElement().setAttribute("aria-sort",t)},ee.prototype._sortItems=function(e,t){var o=this,n=t.length-1;e.sort(function(e,i){for(var r,a=n;a>=0;a--){var s=t[a];if(r=o._sortRow(e,i,s.column,s.dir,s.params),0!==r)break}return r})},ee.prototype._sortRow=function(e,t,o,n,i){var r,a,s="asc"==n?e:t,c="asc"==n?t:e;return e=o.getFieldValue(s.getData()),t=o.getFieldValue(c.getData()),e="undefined"!==typeof e?e:"",t="undefined"!==typeof t?t:"",r=s.getComponent(),a=c.getComponent(),o.modules.sort.sorter.call(this,e,t,r,a,o.getComponent(),n,i)},ee.prototype.sorters={number:function(e,t,o,n,i,r,a){var s=a.alignEmptyValues,c=a.decimalSeparator,p=a.thousandSeparator,l=0;if(e=String(e),t=String(t),p&&(e=e.split(p).join(""),t=t.split(p).join("")),c&&(e=e.split(c).join("."),t=t.split(c).join(".")),e=parseFloat(e),t=parseFloat(t),isNaN(e))l=isNaN(t)?0:-1;else{if(!isNaN(t))return e-t;l=1}return("top"===s&&"desc"===r||"bottom"===s&&"asc"===r)&&(l*=-1),l},string:function(e,t,o,n,i,a,s){var c,p=s.alignEmptyValues,l=0;if(e){if(t){switch(r(s.locale)){case"boolean":s.locale&&(c=this.table.modules.localize.getLocale());break;case"string":c=s.locale;break}return String(e).toLowerCase().localeCompare(String(t).toLowerCase(),c)}l=1}else l=t?-1:0;return("top"===p&&"desc"===a||"bottom"===p&&"asc"===a)&&(l*=-1),l},date:function(e,t,o,n,i,r,a){return a.format||(a.format="DD/MM/YYYY"),this.sorters.datetime.call(this,e,t,o,n,i,r,a)},time:function(e,t,o,n,i,r,a){return a.format||(a.format="HH:mm"),this.sorters.datetime.call(this,e,t,o,n,i,r,a)},datetime:function(e,t,o,n,i,r,a){var s=a.format||"DD/MM/YYYY HH:mm:ss",c=a.alignEmptyValues,p=0;if("undefined"!=typeof moment){if(e=moment(e,s),t=moment(t,s),e.isValid()){if(t.isValid())return e-t;p=1}else p=t.isValid()?-1:0;return("top"===c&&"desc"===r||"bottom"===c&&"asc"===r)&&(p*=-1),p}console.error("Sort Error - 'datetime' sorter is dependant on moment.js")},boolean:function(e,t,o,n,i,r,a){var s=!0===e||"true"===e||"True"===e||1===e?1:0,c=!0===t||"true"===t||"True"===t||1===t?1:0;return s-c},array:function(e,t,o,n,i,r,a){var s=0,c=0,p=a.type||"length",l=a.alignEmptyValues,u=0;function b(e){switch(p){case"length":return e.length;case"sum":return e.reduce(function(e,t){return e+t});case"max":return Math.max.apply(null,e);case"min":return Math.min.apply(null,e);case"avg":return e.reduce(function(e,t){return e+t})/e.length}}if(Array.isArray(e)){if(Array.isArray(t))return s=e?b(e):0,c=t?b(t):0,s-c;l=1}else l=Array.isArray(t)?-1:0;return("top"===l&&"desc"===r||"bottom"===l&&"asc"===r)&&(u*=-1),u},exists:function(e,t,o,n,i,r,a){var s="undefined"==typeof e?0:1,c="undefined"==typeof t?0:1;return s-c},alphanum:function(e,t,o,n,i,r,a){var s,c,p,l,u,b=0,d=/(\d+)|(\D+)/g,M=/\d/,h=a.alignEmptyValues,f=0;if(e||0===e){if(t||0===t){if(isFinite(e)&&isFinite(t))return e-t;if(s=String(e).toLowerCase(),c=String(t).toLowerCase(),s===c)return 0;if(!M.test(s)||!M.test(c))return s>c?1:-1;s=s.match(d),c=c.match(d),u=s.length>c.length?c.length:s.length;while(bl?1:-1;return s.length>c.length}f=1}else f=t||0===t?-1:0;return("top"===h&&"desc"===r||"bottom"===h&&"asc"===r)&&(f*=-1),f}},f.prototype.registerModule("sort",ee);var te=function(e){this.table=e,this.invalidCells=[]};te.prototype.initializeColumn=function(e){var t,o=this,n=[];e.definition.validator&&(Array.isArray(e.definition.validator)?e.definition.validator.forEach(function(e){t=o._extractValidator(e),t&&n.push(t)}):(t=this._extractValidator(e.definition.validator),t&&n.push(t)),e.modules.validate=!!n.length&&n)},te.prototype._extractValidator=function(e){var t,o,n;switch("undefined"===typeof e?"undefined":r(e)){case"string":return n=e.indexOf(":"),n>-1?(t=e.substring(0,n),o=e.substring(n+1)):t=e,this._buildValidator(t,o);case"function":return this._buildValidator(e);case"object":return this._buildValidator(e.type,e.parameters)}},te.prototype._buildValidator=function(e,t){var o="function"==typeof e?e:this.validators[e];return o?{type:"function"==typeof e?"function":e,func:o,params:t}:(console.warn("Validator Setup Error - No matching validator found:",e),!1)},te.prototype.validate=function(e,t,o){var n=this,i=[],r=this.invalidCells.indexOf(t);return e&&e.forEach(function(e){e.func.call(n,t.getComponent(),o,e.params)||i.push({type:e.type,parameters:e.params})}),i=!i.length||i,t.modules.validate||(t.modules.validate={}),!0===i?(t.modules.validate.invalid=!1,t.getElement().classList.remove("tabulator-validation-fail"),r>-1&&this.invalidCells.splice(r,1)):(t.modules.validate.invalid=!0,"manual"!==this.table.options.validationMode&&t.getElement().classList.add("tabulator-validation-fail"),-1==r&&this.invalidCells.push(t)),i},te.prototype.getInvalidCells=function(){var e=[];return this.invalidCells.forEach(function(t){e.push(t.getComponent())}),e},te.prototype.clearValidation=function(e){var t;e.modules.validate&&e.modules.validate.invalid&&(e.getElement().classList.remove("tabulator-validation-fail"),e.modules.validate.invalid=!1,t=this.invalidCells.indexOf(e),t>-1&&this.invalidCells.splice(t,1))},te.prototype.validators={integer:function(e,t,o){return""===t||null===t||"undefined"===typeof t||(t=Number(t),"number"===typeof t&&isFinite(t)&&Math.floor(t)===t)},float:function(e,t,o){return""===t||null===t||"undefined"===typeof t||(t=Number(t),"number"===typeof t&&isFinite(t)&&t%1!==0)},numeric:function(e,t,o){return""===t||null===t||"undefined"===typeof t||!isNaN(t)},string:function(e,t,o){return""===t||null===t||"undefined"===typeof t||isNaN(t)},max:function(e,t,o){return""===t||null===t||"undefined"===typeof t||parseFloat(t)<=o},min:function(e,t,o){return""===t||null===t||"undefined"===typeof t||parseFloat(t)>=o},starts:function(e,t,o){return""===t||null===t||"undefined"===typeof t||String(t).toLowerCase().startsWith(String(o).toLowerCase())},ends:function(e,t,o){return""===t||null===t||"undefined"===typeof t||String(t).toLowerCase().endsWith(String(o).toLowerCase())},minLength:function(e,t,o){return""===t||null===t||"undefined"===typeof t||String(t).length>=o},maxLength:function(e,t,o){return""===t||null===t||"undefined"===typeof t||String(t).length<=o},in:function(e,t,o){return""===t||null===t||"undefined"===typeof t||("string"==typeof o&&(o=o.split("|")),""===t||o.indexOf(t)>-1)},regex:function(e,t,o){if(""===t||null===t||"undefined"===typeof t)return!0;var n=new RegExp(o);return n.test(t)},unique:function(e,t,o){if(""===t||null===t||"undefined"===typeof t)return!0;var n=!0,i=e.getData(),r=e.getColumn()._getSelf();return this.table.rowManager.rows.forEach(function(e){var o=e.getData();o!==i&&t==r.getFieldValue(o)&&(n=!1)}),n},required:function(e,t,o){return""!==t&&null!==t&&"undefined"!==typeof t}},f.prototype.registerModule("validate",te),o["a"]=f},e34e:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("cf81"),i=function(){function e(e){this._binding=e}return e.prototype.onActivation=function(e){return this._binding.onActivation=e,new n.BindingWhenSyntax(this._binding)},e}();t.BindingOnSyntax=i},e372:function(e,t,o){t=e.exports=o("ad71"),t.Stream=t,t.Readable=t,t.Writable=o("dc14"),t.Duplex=o("b19a"),t.Transform=o("27bf"),t.PassThrough=o("780f")},e445:function(e,t,o){},e45b:function(e,t,o){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,o=1,n=arguments.length;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o("e1c6"),a=o("3a92"),s=o("7f73"),c=o("e45b"),p=o("dd02"),l=o("66f9"),u=o("3585"),b=o("168d"),d=function(){function e(){}return e.prototype.decorate=function(e,t){if(s.isDecoration(t)){var o=this.getPosition(t),n="translate("+o.x+", "+o.y+")";c.setAttr(e,"transform",n)}return e},e.prototype.getPosition=function(e){if(e instanceof a.SChildElement&&e.parent instanceof u.SRoutableElement){var t=this.edgeRouterRegistry.get(e.parent.routerKind),o=t.route(e.parent);if(o.length>1){var n=Math.floor(.5*(o.length-1)),i=l.isSizeable(e)?{x:-.5*e.bounds.width,y:-.5*e.bounds.width}:p.ORIGIN_POINT;return{x:.5*(o[n].x+o[n+1].x)+i.x,y:.5*(o[n].y+o[n+1].y)+i.y}}}return l.isSizeable(e)?{x:-.666*e.bounds.width,y:-.666*e.bounds.height}:p.ORIGIN_POINT},e.prototype.postUpdate=function(){},n([r.inject(b.EdgeRouterRegistry),i("design:type",b.EdgeRouterRegistry)],e.prototype,"edgeRouterRegistry",void 0),e=n([r.injectable()],e),e}();t.DecorationPlacer=d},e5a7:function(e,t,o){},e629:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){this.startFn=e,this.nextFn=t}return e.prototype[Symbol.iterator]=function(){var e,t=this,o=(e={state:this.startFn(),next:function(){return t.nextFn(o.state)}},e[Symbol.iterator]=function(){return o},e);return o},e.prototype.filter=function(e){return r(this,e)},e.prototype.map=function(e){return a(this,e)},e.prototype.forEach=function(e){var t,o=this[Symbol.iterator](),n=0;do{t=o.next(),void 0!==t.value&&e(t.value,n),n++}while(!t.done)},e.prototype.indexOf=function(e){var t,o=this[Symbol.iterator](),n=0;do{if(t=o.next(),t.value===e)return n;n++}while(!t.done);return-1},e}();function i(e){if(e.constructor===Array)return e;var t=[];return e.forEach(function(e){return t.push(e)}),t}function r(e,t){return new n(function(){return s(e)},function(e){var o;do{o=e.next()}while(!o.done&&!t(o.value));return o})}function a(e,o){return new n(function(){return s(e)},function(e){var n=e.next(),i=n.done,r=n.value;return i?t.DONE_RESULT:{done:!1,value:o(r)}})}function s(e){var o=e[Symbol.iterator];if("function"===typeof o)return o.call(e);var n=e.length;return"number"===typeof n&&n>=0?new c(e):{next:function(){return t.DONE_RESULT}}}t.FluentIterableImpl=n,t.toArray=i,t.DONE_RESULT=Object.freeze({done:!0,value:void 0}),t.filterIterable=r,t.mapIterable=a;var c=function(){function e(e){this.array=e,this.index=0}return e.prototype.next=function(){return this.index=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var r=o("e1c6"),a=o("c146"),s=o("3a92"),c=o("e45b"),p=o("7d36"),l=function(e){function t(t,o,n,i){void 0===i&&(i=!1);var r=e.call(this,n)||this;return r.model=t,r.elementFades=o,r.removeAfterFadeOut=i,r}return n(t,e),t.prototype.tween=function(e,t){for(var o=0,n=this.elementFades;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("dd02"),c=o("b669"),p=o("3a92"),l=o("9757"),u=o("1417"),b=o("66f9"),d=o("4c18"),M=o("c444"),h=o("5eb6"),f=o("e1c6"),z=o("6923"),O=function(){function e(t,o,n){void 0===o&&(o=!0),void 0===n&&(n=!1),this.elementIds=t,this.animate=o,this.retainZoom=n,this.kind=e.KIND}return e.KIND="center",e}();t.CenterAction=O;var A=function(){function e(t,o,n,i){void 0===i&&(i=!0),this.elementIds=t,this.padding=o,this.maxZoom=n,this.animate=i,this.kind=e.KIND}return e.KIND="fit",e}();t.FitToScreenAction=A;var m=function(e){function t(t){var o=e.call(this)||this;return o.animate=t,o}return n(t,e),t.prototype.initialize=function(e){var t=this;if(h.isViewport(e)){this.oldViewport={scroll:e.scroll,zoom:e.zoom};var o=[];if(this.getElementIds().forEach(function(n){var i=e.index.getById(n);i&&b.isBoundsAware(i)&&o.push(t.boundsInViewport(i,i.bounds,e))}),0===o.length&&e.index.all().forEach(function(n){d.isSelectable(n)&&n.selected&&b.isBoundsAware(n)&&o.push(t.boundsInViewport(n,n.bounds,e))}),0===o.length&&e.index.all().forEach(function(n){b.isBoundsAware(n)&&o.push(t.boundsInViewport(n,n.bounds,e))}),0!==o.length){var n=o.reduce(function(e,t){return s.combine(e,t)});s.isValidDimension(n)&&(this.newViewport=this.getNewViewport(n,e))}}},t.prototype.boundsInViewport=function(e,t,o){return e instanceof p.SChildElement&&e.parent!==o?this.boundsInViewport(e.parent,e.parent.localToParent(t),o):t},t.prototype.execute=function(e){return this.initialize(e.root),this.redo(e)},t.prototype.undo=function(e){var t=e.root;if(h.isViewport(t)&&void 0!==this.newViewport&&!this.equal(this.newViewport,this.oldViewport)){if(this.animate)return new M.ViewportAnimation(t,this.newViewport,this.oldViewport,e).start();t.scroll=this.oldViewport.scroll,t.zoom=this.oldViewport.zoom}return t},t.prototype.redo=function(e){var t=e.root;if(h.isViewport(t)&&void 0!==this.newViewport&&!this.equal(this.newViewport,this.oldViewport)){if(this.animate)return new M.ViewportAnimation(t,this.oldViewport,this.newViewport,e).start();t.scroll=this.newViewport.scroll,t.zoom=this.newViewport.zoom}return t},t.prototype.equal=function(e,t){return e.zoom===t.zoom&&e.scroll.x===t.scroll.x&&e.scroll.y===t.scroll.y},t=i([f.injectable(),r("design:paramtypes",[Boolean])],t),t}(l.Command);t.BoundsAwareViewportCommand=m;var v=function(e){function t(t){var o=e.call(this,t.animate)||this;return o.action=t,o}return n(t,e),t.prototype.getElementIds=function(){return this.action.elementIds},t.prototype.getNewViewport=function(e,t){if(s.isValidDimension(t.canvasBounds)){var o=this.action.retainZoom&&h.isViewport(t)?t.zoom:1,n=s.center(e);return{scroll:{x:n.x-.5*t.canvasBounds.width/o,y:n.y-.5*t.canvasBounds.height/o},zoom:o}}},t.KIND=O.KIND,t=i([a(0,f.inject(z.TYPES.Action)),r("design:paramtypes",[O])],t),t}(m);t.CenterCommand=v;var g=function(e){function t(t){var o=e.call(this,t.animate)||this;return o.action=t,o}return n(t,e),t.prototype.getElementIds=function(){return this.action.elementIds},t.prototype.getNewViewport=function(e,t){if(s.isValidDimension(t.canvasBounds)){var o=s.center(e),n=void 0===this.action.padding?0:2*this.action.padding,i=Math.min(t.canvasBounds.width/(e.width+n),t.canvasBounds.height/(e.height+n));return void 0!==this.action.maxZoom&&(i=Math.min(i,this.action.maxZoom)),i===1/0&&(i=1),{scroll:{x:o.x-.5*t.canvasBounds.width/i,y:o.y-.5*t.canvasBounds.height/i},zoom:i}}},t.KIND=A.KIND,t=i([a(0,f.inject(z.TYPES.Action)),r("design:paramtypes",[A])],t),t}(m);t.FitToScreenCommand=g;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.keyDown=function(e,t){return c.matchesKeystroke(t,"KeyC","ctrlCmd","shift")?[new O([])]:c.matchesKeystroke(t,"KeyF","ctrlCmd","shift")?[new A([])]:[]},t}(u.KeyListener);t.CenterKeyboardListener=y},edad:function(e,t,o){"use strict";var n=o("c51d"),i=o.n(n);i.a},ee16:function(e,t,o){e.exports=o("bafd")},efc5:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multiBindToService=function(e){return function(t){return function(){for(var o=[],n=0;n0&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("b669"),p=o("dd02"),l=o("6923"),u=o("3a92"),b=o("3b4c"),d=o("510b"),M=o("9757"),h=o("302f"),f=o("1417"),z=o("3623"),O=o("66f9"),A=o("e4f0"),m=function(){function e(t,o){this.mouseoverElement=t,this.mouseIsOver=o,this.kind=e.KIND}return e.KIND="hoverFeedback",e}();t.HoverFeedbackAction=m;var v=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o}return n(t,e),t.prototype.execute=function(e){var t=e.root,o=t.index.getById(this.action.mouseoverElement);return o&&A.isHoverable(o)&&(o.hoverFeedback=this.action.mouseIsOver),this.redo(e)},t.prototype.undo=function(e){return e.root},t.prototype.redo=function(e){return e.root},t.KIND=m.KIND,t=i([s.injectable(),a(0,s.inject(l.TYPES.Action)),r("design:paramtypes",[m])],t),t}(M.SystemCommand);t.HoverFeedbackCommand=v;var g=function(){function e(t,o,n){void 0===n&&(n=""),this.elementId=t,this.bounds=o,this.requestId=n,this.kind=e.KIND}return e.create=function(t,o){return new e(t,o,d.generateRequestId())},e.KIND="requestPopupModel",e}();t.RequestPopupModelAction=g;var y=function(){function e(t,o){void 0===o&&(o=""),this.newRoot=t,this.responseId=o,this.kind=e.KIND}return e.KIND="setPopupModel",e}();t.SetPopupModelAction=y;var q=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o}return n(t,e),t.prototype.execute=function(e){return this.oldRoot=e.root,this.newRoot=e.modelFactory.createRoot(this.action.newRoot),this.newRoot},t.prototype.undo=function(e){return this.oldRoot},t.prototype.redo=function(e){return this.newRoot},t.KIND=y.KIND,t=i([s.injectable(),a(0,s.inject(l.TYPES.Action)),r("design:paramtypes",[y])],t),t}(M.PopupCommand);t.SetPopupModelCommand=q;var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.mouseDown=function(e,t){return this.mouseIsDown=!0,[]},t.prototype.mouseUp=function(e,t){return this.mouseIsDown=!1,[]},t.prototype.stopMouseOutTimer=function(){void 0!==this.state.mouseOutTimer&&(window.clearTimeout(this.state.mouseOutTimer),this.state.mouseOutTimer=void 0)},t.prototype.startMouseOutTimer=function(){var e=this;return this.stopMouseOutTimer(),new Promise(function(t){e.state.mouseOutTimer=window.setTimeout(function(){e.state.popupOpen=!1,e.state.previousPopupElement=void 0,t(new y({type:h.EMPTY_ROOT.type,id:h.EMPTY_ROOT.id}))},e.options.popupCloseDelay)})},t.prototype.stopMouseOverTimer=function(){void 0!==this.state.mouseOverTimer&&(window.clearTimeout(this.state.mouseOverTimer),this.state.mouseOverTimer=void 0)},i([s.inject(l.TYPES.ViewerOptions),r("design:type",Object)],t.prototype,"options",void 0),i([s.inject(l.TYPES.HoverState),r("design:type",Object)],t.prototype,"state",void 0),t}(b.MouseListener);t.AbstractHoverMouseListener=_;var W=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.computePopupBounds=function(e,t){var o={x:-5,y:20},n=O.getAbsoluteBounds(e),i=e.root.canvasBounds,r=p.translate(n,i),a=r.x+r.width-t.x,s=r.y+r.height-t.y;s<=a&&this.allowSidePosition(e,"below",s)?o={x:-5,y:Math.round(s+5)}:a<=s&&this.allowSidePosition(e,"right",a)&&(o={x:Math.round(a+5),y:-5});var c=t.x+o.x,l=i.x+i.width;c>l&&(c=l);var u=t.y+o.y,b=i.y+i.height;return u>b&&(u=b),{x:c,y:u,width:-1,height:-1}},t.prototype.allowSidePosition=function(e,t,o){return!(e instanceof u.SModelRoot)&&o<=150},t.prototype.startMouseOverTimer=function(e,t){var o=this;return this.stopMouseOverTimer(),new Promise(function(n){o.state.mouseOverTimer=window.setTimeout(function(){var i=o.computePopupBounds(e,{x:t.pageX,y:t.pageY});n(new g(e.id,i)),o.state.popupOpen=!0,o.state.previousPopupElement=e},o.options.popupOpenDelay)})},t.prototype.mouseOver=function(e,t){var o=[];if(!this.mouseIsDown){var n=z.findParent(e,A.hasPopupFeature);this.state.popupOpen&&(void 0===n||void 0!==this.state.previousPopupElement&&this.state.previousPopupElement.id!==n.id)?o.push(this.startMouseOutTimer()):(this.stopMouseOverTimer(),this.stopMouseOutTimer()),void 0===n||void 0!==this.state.previousPopupElement&&this.state.previousPopupElement.id===n.id||o.push(this.startMouseOverTimer(n,t)),this.lastHoverFeedbackElementId&&(o.push(new m(this.lastHoverFeedbackElementId,!1)),this.lastHoverFeedbackElementId=void 0);var i=z.findParentByFeature(e,A.isHoverable);void 0!==i&&(o.push(new m(i.id,!0)),this.lastHoverFeedbackElementId=i.id)}return o},t.prototype.mouseOut=function(e,t){var o=[];if(!this.mouseIsDown){var n=document.elementFromPoint(t.x,t.y);if(!this.isSprottyPopup(n)){if(this.state.popupOpen){var i=z.findParent(e,A.hasPopupFeature);void 0!==this.state.previousPopupElement&&void 0!==i&&this.state.previousPopupElement.id===i.id&&o.push(this.startMouseOutTimer())}this.stopMouseOverTimer();var r=z.findParentByFeature(e,A.isHoverable);void 0!==r&&(o.push(new m(r.id,!1)),this.lastHoverFeedbackElementId=void 0)}}return o},t.prototype.isSprottyPopup=function(e){return!!e&&(e.id===this.options.popupDiv||!!e.parentElement&&this.isSprottyPopup(e.parentElement))},t.prototype.mouseMove=function(e,t){var o=[];if(!this.mouseIsDown){void 0!==this.state.previousPopupElement&&this.closeOnMouseMove(this.state.previousPopupElement,t)&&o.push(this.startMouseOutTimer());var n=z.findParent(e,A.hasPopupFeature);void 0===n||void 0!==this.state.previousPopupElement&&this.state.previousPopupElement.id===n.id||o.push(this.startMouseOverTimer(n,t))}return o},t.prototype.closeOnMouseMove=function(e,t){return e instanceof u.SModelRoot},i([s.inject(l.TYPES.ViewerOptions),r("design:type",Object)],t.prototype,"options",void 0),t=i([s.injectable()],t),t}(_);t.HoverMouseListener=W;var R=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.mouseOut=function(e,t){return[this.startMouseOutTimer()]},t.prototype.mouseOver=function(e,t){return this.stopMouseOutTimer(),this.stopMouseOverTimer(),[]},t=i([s.injectable()],t),t}(_);t.PopupHoverMouseListener=R;var w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.keyDown=function(e,t){return c.matchesKeystroke(t,"Escape")?[new y({type:h.EMPTY_ROOT.type,id:h.EMPTY_ROOT.id})]:[]},t}(f.KeyListener);t.HoverKeyListener=w;var L=function(){function e(){this.popupOpen=!1}return e.prototype.handle=function(e){if(e.kind===q.KIND)this.popupOpen=e.newRoot.type!==h.EMPTY_ROOT.type;else if(this.popupOpen)return new y({id:h.EMPTY_ROOT.id,type:h.EMPTY_ROOT.type})},e=i([s.injectable()],e),e}();t.ClosePopupActionHandler=L},f58f:function(e,t,o){"use strict";var n=o("15f6"),i=o.n(n);i.a},f913:function(e,t,o){"use strict";var n=o("0c4a"),i=o.n(n);i.a},f923:function(e,t,o){"use strict";function n(e,t){var o,n,i=t.elm,r=e.data.class,a=t.data.class;if((r||a)&&r!==a){for(n in r=r||{},a=a||{},r)a[n]||i.classList.remove(n);for(n in a)o=a[n],o!==r[n]&&i.classList[o?"add":"remove"](n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.classModule={create:n,update:n},t.default=t.classModule},faa1:function(e,t,o){"use strict";var n,i="object"===typeof Reflect?Reflect:null,r=i&&"function"===typeof i.apply?i.apply:function(e,t,o){return Function.prototype.apply.call(e,t,o)};function a(e){console&&console.warn&&console.warn(e)}n=i&&"function"===typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!==e};function c(){c.init.call(this)}e.exports=c,e.exports.once=m,c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var p=10;function l(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?c.defaultMaxListeners:e._maxListeners}function b(e,t,o,n){var i,r,s;if(l(o),r=e._events,void 0===r?(r=e._events=Object.create(null),e._eventsCount=0):(void 0!==r.newListener&&(e.emit("newListener",t,o.listener?o.listener:o),r=e._events),s=r[t]),void 0===s)s=r[t]=o,++e._eventsCount;else if("function"===typeof s?s=r[t]=n?[o,s]:[s,o]:n?s.unshift(o):s.push(o),i=u(e),i>0&&s.length>i&&!s.warned){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,a(c)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function M(e,t,o){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:o},i=d.bind(n);return i.listener=o,n.wrapFn=i,i}function h(e,t,o){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"===typeof i?o?[i.listener||i]:[i]:o?A(i):z(i,i.length)}function f(e){var t=this._events;if(void 0!==t){var o=t[e];if("function"===typeof o)return 1;if(void 0!==o)return o.length}return 0}function z(e,t){for(var o=new Array(t),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=i[e];if(void 0===c)return!1;if("function"===typeof c)r(c,this,t);else{var p=c.length,l=z(c,p);for(o=0;o=0;r--)if(o[r]===t||o[r].listener===t){a=o[r].listener,i=r;break}if(i<0)return this;0===i?o.shift():O(o,i),1===o.length&&(n[e]=o[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},c.prototype.off=c.prototype.removeListener,c.prototype.removeAllListeners=function(e){var t,o,n;if(o=this._events,void 0===o)return this;if(void 0===o.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==o[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete o[e]),this;if(0===arguments.length){var i,r=Object.keys(o);for(n=0;n=0;n--)this.removeListener(e,t[n]);return this},c.prototype.listeners=function(e){return h(this,e,!0)},c.prototype.rawListeners=function(e){return h(this,e,!1)},c.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},c.prototype.listenerCount=f,c.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},fba3:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("dd02");function i(e){return r()?e.metaKey:e.ctrlKey}function r(){return-1!==window.navigator.userAgent.indexOf("Mac")}function a(e){if(e&&"undefined"!==typeof window&&window.location){var t="";return window.location.protocol&&(t+=window.location.protocol+"//"),window.location.host&&(t+=window.location.host),t.length>0&&!e.startsWith(t)}return!1}function s(){return"undefined"===typeof window?n.ORIGIN_POINT:{x:window.pageXOffset,y:window.pageYOffset}}t.isCtrlOrCmd=i,t.isMac=r,t.isCrossSite=a,t.getWindowScroll=s},fcf3:function(e,t,o){!function(t,o){e.exports=o()}(self,function(){return(()=>{"use strict";var e={4567:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0}),t.AccessibilityManager=void 0;var r=o(9042),a=o(6114),s=o(9924),c=o(3656),p=o(844),l=o(5596),u=o(9631),b=function(e){function t(t,o){var n=e.call(this)||this;n._terminal=t,n._renderService=o,n._liveRegionLineCount=0,n._charsToConsume=[],n._charsToAnnounce="",n._accessibilityTreeRoot=document.createElement("div"),n._accessibilityTreeRoot.classList.add("xterm-accessibility"),n._accessibilityTreeRoot.tabIndex=0,n._rowContainer=document.createElement("div"),n._rowContainer.setAttribute("role","list"),n._rowContainer.classList.add("xterm-accessibility-tree"),n._rowElements=[];for(var i=0;ie;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},t.prototype._createAccessibilityTreeNode=function(){var e=document.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e},t.prototype._onTab=function(e){for(var t=0;t0?this._charsToConsume.shift()!==e&&(this._charsToAnnounce+=e):this._charsToAnnounce+=e,"\n"===e&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=r.tooMuchOutput)),a.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){t._accessibilityTreeRoot.appendChild(t._liveRegion)},0))},t.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,a.isMac&&(0,u.removeElementFromParent)(this._liveRegion)},t.prototype._onKey=function(e){this._clearLiveRegion(),this._charsToConsume.push(e)},t.prototype._refreshRows=function(e,t){this._renderRowsDebouncer.refresh(e,t,this._terminal.rows)},t.prototype._renderRows=function(e,t){for(var o=this._terminal.buffer,n=o.lines.length.toString(),i=e;i<=t;i++){var r=o.translateBufferLineToString(o.ydisp+i,!0),a=(o.ydisp+i+1).toString(),s=this._rowElements[i];s&&(0===r.length?s.innerText=" ":s.textContent=r,s.setAttribute("aria-posinset",a),s.setAttribute("aria-setsize",n))}this._announceCharacters()},t.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var e=0;e{function o(e){return e.replace(/\r?\n/g,"\r")}function n(e,t){return t?"[200~"+e+"[201~":e}function i(e,t,i){e=n(e=o(e),i.decPrivateModes.bracketedPasteMode),i.triggerDataEvent(e,!0),t.value=""}function r(e,t,o){var n=o.getBoundingClientRect(),i=e.clientX-n.left-10,r=e.clientY-n.top-10;t.style.width="20px",t.style.height="20px",t.style.left=i+"px",t.style.top=r+"px",t.style.zIndex="1000",t.focus()}Object.defineProperty(t,"__esModule",{value:!0}),t.rightClickHandler=t.moveTextAreaUnderMouseCursor=t.paste=t.handlePasteEvent=t.copyHandler=t.bracketTextForPaste=t.prepareTextForTerminal=void 0,t.prepareTextForTerminal=o,t.bracketTextForPaste=n,t.copyHandler=function(e,t){e.clipboardData&&e.clipboardData.setData("text/plain",t.selectionText),e.preventDefault()},t.handlePasteEvent=function(e,t,o){e.stopPropagation(),e.clipboardData&&i(e.clipboardData.getData("text/plain"),t,o)},t.paste=i,t.moveTextAreaUnderMouseCursor=r,t.rightClickHandler=function(e,t,o,n,i){r(e,t,o),i&&n.rightClickSelect(e),t.value=n.selectionText,t.select()}},7239:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorContrastCache=void 0;var o=function(){function e(){this._color={},this._rgba={}}return e.prototype.clear=function(){this._color={},this._rgba={}},e.prototype.setCss=function(e,t,o){this._rgba[e]||(this._rgba[e]={}),this._rgba[e][t]=o},e.prototype.getCss=function(e,t){return this._rgba[e]?this._rgba[e][t]:void 0},e.prototype.setColor=function(e,t,o){this._color[e]||(this._color[e]={}),this._color[e][t]=o},e.prototype.getColor=function(e,t){return this._color[e]?this._color[e][t]:void 0},e}();t.ColorContrastCache=o},5680:function(e,t,o){var n=this&&this.__read||function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var n,i,r=o.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.ColorManager=t.DEFAULT_ANSI_COLORS=void 0;var i=o(8055),r=o(7239),a=i.css.toColor("#ffffff"),s=i.css.toColor("#000000"),c=i.css.toColor("#ffffff"),p=i.css.toColor("#000000"),l={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};t.DEFAULT_ANSI_COLORS=Object.freeze(function(){for(var e=[i.css.toColor("#2e3436"),i.css.toColor("#cc0000"),i.css.toColor("#4e9a06"),i.css.toColor("#c4a000"),i.css.toColor("#3465a4"),i.css.toColor("#75507b"),i.css.toColor("#06989a"),i.css.toColor("#d3d7cf"),i.css.toColor("#555753"),i.css.toColor("#ef2929"),i.css.toColor("#8ae234"),i.css.toColor("#fce94f"),i.css.toColor("#729fcf"),i.css.toColor("#ad7fa8"),i.css.toColor("#34e2e2"),i.css.toColor("#eeeeec")],t=[0,95,135,175,215,255],o=0;o<216;o++){var n=t[o/36%6|0],r=t[o/6%6|0],a=t[o%6];e.push({css:i.channels.toCss(n,r,a),rgba:i.channels.toRgba(n,r,a)})}for(o=0;o<24;o++){var s=8+10*o;e.push({css:i.channels.toCss(s,s,s),rgba:i.channels.toRgba(s,s,s)})}return e}());var u=function(){function e(e,o){this.allowTransparency=o;var n=e.createElement("canvas");n.width=1,n.height=1;var u=n.getContext("2d");if(!u)throw new Error("Could not get rendering context");this._ctx=u,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new r.ColorContrastCache,this.colors={foreground:a,background:s,cursor:c,cursorAccent:p,selectionTransparent:l,selectionOpaque:i.color.blend(s,l),selectionForeground:void 0,ansi:t.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache},this._updateRestoreColors()}return e.prototype.onOptionsChange=function(e){"minimumContrastRatio"===e&&this._contrastCache.clear()},e.prototype.setTheme=function(e){void 0===e&&(e={}),this.colors.foreground=this._parseColor(e.foreground,a),this.colors.background=this._parseColor(e.background,s),this.colors.cursor=this._parseColor(e.cursor,c,!0),this.colors.cursorAccent=this._parseColor(e.cursorAccent,p,!0),this.colors.selectionTransparent=this._parseColor(e.selection,l,!0),this.colors.selectionOpaque=i.color.blend(this.colors.background,this.colors.selectionTransparent);var o={css:"",rgba:0};this.colors.selectionForeground=e.selectionForeground?this._parseColor(e.selectionForeground,o):void 0,this.colors.selectionForeground===o&&(this.colors.selectionForeground=void 0),i.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=i.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(e.black,t.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(e.red,t.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(e.green,t.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(e.yellow,t.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(e.blue,t.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(e.magenta,t.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(e.cyan,t.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(e.white,t.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(e.brightBlack,t.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(e.brightRed,t.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(e.brightGreen,t.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(e.brightYellow,t.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(e.brightBlue,t.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(e.brightMagenta,t.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(e.brightCyan,t.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(e.brightWhite,t.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear(),this._updateRestoreColors()},e.prototype.restoreColor=function(e){if(void 0!==e)switch(e){case 256:this.colors.foreground=this._restoreColors.foreground;break;case 257:this.colors.background=this._restoreColors.background;break;case 258:this.colors.cursor=this._restoreColors.cursor;break;default:this.colors.ansi[e]=this._restoreColors.ansi[e]}else for(var t=0;t=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.removeElementFromParent=void 0,t.removeElementFromParent=function(){for(var e,t,n,i=[],r=0;r{Object.defineProperty(t,"__esModule",{value:!0}),t.addDisposableDomListener=void 0,t.addDisposableDomListener=function(e,t,o,n){e.addEventListener(t,o,n);var i=!1;return{dispose:function(){i||(i=!0,e.removeEventListener(t,o,n))}}}},3551:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseZone=t.Linkifier=void 0;var r=o(8460),a=o(2585),s=function(){function e(e,t,o){this._bufferService=e,this._logService=t,this._unicodeService=o,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new r.EventEmitter,this._onHideLinkUnderline=new r.EventEmitter,this._onLinkTooltip=new r.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(e.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),e.prototype.attachToDom=function(e,t){this._element=e,this._mouseZoneManager=t},e.prototype.linkifyRows=function(t,o){var n=this;this._mouseZoneManager&&(void 0===this._rowsToLinkify.start||void 0===this._rowsToLinkify.end?(this._rowsToLinkify.start=t,this._rowsToLinkify.end=o):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,t),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,o)),this._mouseZoneManager.clearAll(t,o),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return n._linkifyRows()},e._timeBeforeLatency))},e.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var e=this._bufferService.buffer;if(void 0!==this._rowsToLinkify.start&&void 0!==this._rowsToLinkify.end){var t=e.ydisp+this._rowsToLinkify.start;if(!(t>=e.lines.length)){for(var o=e.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,n=Math.ceil(2e3/this._bufferService.cols),i=this._bufferService.buffer.iterator(!1,t,o,n,n);i.hasNext();)for(var r=i.next(),a=0;a=0;t--)if(e.priority<=this._linkMatchers[t].priority)return void this._linkMatchers.splice(t+1,0,e);this._linkMatchers.splice(0,0,e)}else this._linkMatchers.push(e)},e.prototype.deregisterLinkMatcher=function(e){for(var t=0;t>9&511:void 0;o.validationCallback?o.validationCallback(s,function(e){i._rowsTimeoutId||e&&i._addLink(p[1],p[0]-i._bufferService.buffer.ydisp,s,o,b)}):c._addLink(p[1],p[0]-c._bufferService.buffer.ydisp,s,o,b)},c=this;null!==(n=r.exec(t))&&"break"!==s(););},e.prototype._addLink=function(e,t,o,n,i){var r=this;if(this._mouseZoneManager&&this._element){var a=this._unicodeService.getStringCellWidth(o),s=e%this._bufferService.cols,p=t+Math.floor(e/this._bufferService.cols),l=(s+a)%this._bufferService.cols,u=p+Math.floor((s+a)/this._bufferService.cols);0===l&&(l=this._bufferService.cols,u--),this._mouseZoneManager.add(new c(s+1,p+1,l+1,u+1,function(e){if(n.handler)return n.handler(e,o);var t=window.open();t?(t.opener=null,t.location.href=o):console.warn("Opening link blocked as opener could not be cleared")},function(){r._onShowLinkUnderline.fire(r._createLinkHoverEvent(s,p,l,u,i)),r._element.classList.add("xterm-cursor-pointer")},function(e){r._onLinkTooltip.fire(r._createLinkHoverEvent(s,p,l,u,i)),n.hoverTooltipCallback&&n.hoverTooltipCallback(e,o,{start:{x:s,y:p},end:{x:l,y:u}})},function(){r._onHideLinkUnderline.fire(r._createLinkHoverEvent(s,p,l,u,i)),r._element.classList.remove("xterm-cursor-pointer"),n.hoverLeaveCallback&&n.hoverLeaveCallback()},function(e){return!n.willLinkActivate||n.willLinkActivate(e,o)}))}},e.prototype._createLinkHoverEvent=function(e,t,o,n,i){return{x1:e,y1:t,x2:o,y2:n,cols:this._bufferService.cols,fg:i}},e._timeBeforeLatency=200,e=n([i(0,a.IBufferService),i(1,a.ILogService),i(2,a.IUnicodeService)],e)}();t.Linkifier=s;var c=function(e,t,o,n,i,r,a,s,c){this.x1=e,this.y1=t,this.x2=o,this.y2=n,this.clickCallback=i,this.hoverCallback=r,this.tooltipCallback=a,this.leaveCallback=s,this.willLinkActivate=c};t.MouseZone=c},6465:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],n=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},c=this&&this.__read||function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var n,i,r=o.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.Linkifier2=void 0;var p=o(2585),l=o(8460),u=o(844),b=o(3656),d=function(e){function t(t){var o=e.call(this)||this;return o._bufferService=t,o._linkProviders=[],o._linkCacheDisposables=[],o._isMouseOut=!0,o._activeLine=-1,o._onShowLinkUnderline=o.register(new l.EventEmitter),o._onHideLinkUnderline=o.register(new l.EventEmitter),o.register((0,u.getDisposeArrayDisposable)(o._linkCacheDisposables)),o}return i(t,e),Object.defineProperty(t.prototype,"currentLink",{get:function(){return this._currentLink},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),t.prototype.registerLinkProvider=function(e){var t=this;return this._linkProviders.push(e),{dispose:function(){var o=t._linkProviders.indexOf(e);-1!==o&&t._linkProviders.splice(o,1)}}},t.prototype.attachToDom=function(e,t,o){var n=this;this._element=e,this._mouseService=t,this._renderService=o,this.register((0,b.addDisposableDomListener)(this._element,"mouseleave",function(){n._isMouseOut=!0,n._clearCurrentLink()})),this.register((0,b.addDisposableDomListener)(this._element,"mousemove",this._onMouseMove.bind(this))),this.register((0,b.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,b.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))},t.prototype._onMouseMove=function(e){if(this._lastMouseEvent=e,this._element&&this._mouseService){var t=this._positionFromMouseEvent(e,this._element,this._mouseService);if(t){this._isMouseOut=!1;for(var o=e.composedPath(),n=0;ne?this._bufferService.cols:a.link.range.end.x,p=s;p<=c;p++){if(o.has(p)){i.splice(r--,1);break}o.add(p)}}},t.prototype._checkLinkProviderResult=function(e,t,o){var n,i=this;if(!this._activeProviderReplies)return o;for(var r=this._activeProviderReplies.get(e),a=!1,s=0;s=e&&this._currentLink.link.range.end.y<=t)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,u.disposeArray)(this._linkCacheDisposables))},t.prototype._handleNewLink=function(e){var t=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var o=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);o&&this._linkAtPosition(e.link,o)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:void 0===e.link.decorations||e.link.decorations.underline,pointerCursor:void 0===e.link.decorations||e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:function(){var e,o;return null===(o=null===(e=t._currentLink)||void 0===e?void 0:e.state)||void 0===o?void 0:o.decorations.pointerCursor},set:function(e){var o,n;(null===(o=t._currentLink)||void 0===o?void 0:o.state)&&t._currentLink.state.decorations.pointerCursor!==e&&(t._currentLink.state.decorations.pointerCursor=e,t._currentLink.state.isHovered&&(null===(n=t._element)||void 0===n||n.classList.toggle("xterm-cursor-pointer",e)))}},underline:{get:function(){var e,o;return null===(o=null===(e=t._currentLink)||void 0===e?void 0:e.state)||void 0===o?void 0:o.decorations.underline},set:function(o){var n,i,r;(null===(n=t._currentLink)||void 0===n?void 0:n.state)&&(null===(r=null===(i=t._currentLink)||void 0===i?void 0:i.state)||void 0===r?void 0:r.decorations.underline)!==o&&(t._currentLink.state.decorations.underline=o,t._currentLink.state.isHovered&&t._fireUnderlineEvent(e.link,o))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(function(e){var o=0===e.start?0:e.start+1+t._bufferService.buffer.ydisp;t._clearCurrentLink(o,e.end+1+t._bufferService.buffer.ydisp)})))}},t.prototype._linkHover=function(e,t,o){var n;(null===(n=this._currentLink)||void 0===n?void 0:n.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),t.hover&&t.hover(o,t.text)},t.prototype._fireUnderlineEvent=function(e,t){var o=e.range,n=this._bufferService.buffer.ydisp,i=this._createLinkUnderlineEvent(o.start.x-1,o.start.y-n-1,o.end.x,o.end.y-n-1,void 0);(t?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(i)},t.prototype._linkLeave=function(e,t,o){var n;(null===(n=this._currentLink)||void 0===n?void 0:n.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),t.leave&&t.leave(o,t.text)},t.prototype._linkAtPosition=function(e,t){var o=e.range.start.y===e.range.end.y,n=e.range.start.yt.y;return(o&&e.range.start.x<=t.x&&e.range.end.x>=t.x||n&&e.range.end.x>=t.x||i&&e.range.start.x<=t.x||n&&i)&&e.range.start.y<=t.y&&e.range.end.y>=t.y},t.prototype._positionFromMouseEvent=function(e,t,o){var n=o.getCoords(e,t,this._bufferService.cols,this._bufferService.rows);if(n)return{x:n[0],y:n[1]+this._bufferService.buffer.ydisp}},t.prototype._createLinkUnderlineEvent=function(e,t,o,n,i){return{x1:e,y1:t,x2:o,y2:n,cols:this._bufferService.cols,fg:i}},r([a(0,p.IBufferService)],t)}(u.Disposable);t.Linkifier2=d},9042:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.tooMuchOutput=t.promptLabel=void 0,t.promptLabel="Terminal input",t.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},6954:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseZoneManager=void 0;var s=o(844),c=o(3656),p=o(4725),l=o(2585),u=function(e){function t(t,o,n,i,r,a){var s=e.call(this)||this;return s._element=t,s._screenElement=o,s._bufferService=n,s._mouseService=i,s._selectionService=r,s._optionsService=a,s._zones=[],s._areZonesActive=!1,s._lastHoverCoords=[void 0,void 0],s._initialSelectionLength=0,s.register((0,c.addDisposableDomListener)(s._element,"mousedown",function(e){return s._onMouseDown(e)})),s._mouseMoveListener=function(e){return s._onMouseMove(e)},s._mouseLeaveListener=function(e){return s._onMouseLeave(e)},s._clickListener=function(e){return s._onClick(e)},s}return i(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._deactivate()},t.prototype.add=function(e){this._zones.push(e),1===this._zones.length&&this._activate()},t.prototype.clearAll=function(e,t){if(0!==this._zones.length){e&&t||(e=0,t=this._bufferService.rows-1);for(var o=0;oe&&n.y1<=t+1||n.y2>e&&n.y2<=t+1||n.y1t+1)&&(this._currentZone&&this._currentZone===n&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(o--,1))}0===this._zones.length&&this._deactivate()}},t.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},t.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},t.prototype._onMouseMove=function(e){this._lastHoverCoords[0]===e.pageX&&this._lastHoverCoords[1]===e.pageY||(this._onHover(e),this._lastHoverCoords=[e.pageX,e.pageY])},t.prototype._onHover=function(e){var t=this,o=this._findZoneEventAt(e);o!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),o&&(this._currentZone=o,o.hoverCallback&&o.hoverCallback(e),this._tooltipTimeout=window.setTimeout(function(){return t._onTooltip(e)},this._optionsService.rawOptions.linkTooltipHoverDuration)))},t.prototype._onTooltip=function(e){this._tooltipTimeout=void 0;var t=this._findZoneEventAt(e);null==t||t.tooltipCallback(e)},t.prototype._onMouseDown=function(e){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var t=this._findZoneEventAt(e);(null==t?void 0:t.willLinkActivate(e))&&(e.preventDefault(),e.stopImmediatePropagation())}},t.prototype._onMouseLeave=function(e){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},t.prototype._onClick=function(e){var t=this._findZoneEventAt(e),o=this._getSelectionLength();t&&o===this._initialSelectionLength&&(t.clickCallback(e),e.preventDefault(),e.stopImmediatePropagation())},t.prototype._getSelectionLength=function(){var e=this._selectionService.selectionText;return e?e.length:0},t.prototype._findZoneEventAt=function(e){var t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(t)for(var o=t[0],n=t[1],i=0;i=r.x1&&o=r.x1||n===r.y2&&or.y1&&n=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.RenderDebouncer=void 0;var n=function(){function e(e){this._renderCallback=e,this._refreshCallbacks=[]}return e.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.addRefreshCallback=function(e){var t=this;return this._refreshCallbacks.push(e),this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return t._innerRefresh()})),this._animationFrame},e.prototype.refresh=function(e,t,o){var n=this;this._rowCount=o,e=void 0!==e?e:0,t=void 0!==t?t:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return n._innerRefresh()}))},e.prototype._innerRefresh=function(){if(this._animationFrame=void 0,void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t),this._runRefreshCallbacks()}else this._runRefreshCallbacks()},e.prototype._runRefreshCallbacks=function(){var e,t;try{for(var n=o(this._refreshCallbacks),i=n.next();!i.done;i=n.next())(0,i.value)(0)}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this._refreshCallbacks=[]},e}();t.RenderDebouncer=n},5596:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0}),t.ScreenDprMonitor=void 0;var r=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._currentDevicePixelRatio=window.devicePixelRatio,t}return i(t,e),t.prototype.setListener=function(e){var t=this;this._listener&&this.clearListener(),this._listener=e,this._outerListener=function(){t._listener&&(t._listener(window.devicePixelRatio,t._currentDevicePixelRatio),t._updateDpr())},this._updateDpr()},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.clearListener()},t.prototype._updateDpr=function(){var e;this._outerListener&&(null===(e=this._resolutionMediaMatchList)||void 0===e||e.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},t.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},t}(o(844).Disposable);t.ScreenDprMonitor=r},3236:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],n=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var n,i,r=o.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a},s=this&&this.__spreadArray||function(e,t,o){if(o||2===arguments.length)for(var n,i=0,r=t.length;i4)&&t.coreMouseService.triggerMouseEvent({col:i.x-33,row:i.y-33,button:o,action:n,ctrl:e.ctrlKey,alt:e.altKey,shift:e.shiftKey})}var i={mouseup:null,wheel:null,mousedrag:null,mousemove:null},r=function(t){return n(t),t.buttons||(e._document.removeEventListener("mouseup",i.mouseup),i.mousedrag&&e._document.removeEventListener("mousemove",i.mousedrag)),e.cancel(t)},a=function(t){return n(t),e.cancel(t,!0)},s=function(e){e.buttons&&n(e)},c=function(e){e.buttons||n(e)};this.register(this.coreMouseService.onProtocolChange(function(t){t?("debug"===e.optionsService.rawOptions.logLevel&&e._logService.debug("Binding to mouse events:",e.coreMouseService.explainEvents(t)),e.element.classList.add("enable-mouse-events"),e._selectionService.disable()):(e._logService.debug("Unbinding from mouse events."),e.element.classList.remove("enable-mouse-events"),e._selectionService.enable()),8&t?i.mousemove||(o.addEventListener("mousemove",c),i.mousemove=c):(o.removeEventListener("mousemove",i.mousemove),i.mousemove=null),16&t?i.wheel||(o.addEventListener("wheel",a,{passive:!1}),i.wheel=a):(o.removeEventListener("wheel",i.wheel),i.wheel=null),2&t?i.mouseup||(i.mouseup=r):(e._document.removeEventListener("mouseup",i.mouseup),i.mouseup=null),4&t?i.mousedrag||(i.mousedrag=s):(e._document.removeEventListener("mousemove",i.mousedrag),i.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,z.addDisposableDomListener)(o,"mousedown",function(t){if(t.preventDefault(),e.focus(),e.coreMouseService.areMouseEventsActive&&!e._selectionService.shouldForceSelection(t))return n(t),i.mouseup&&e._document.addEventListener("mouseup",i.mouseup),i.mousedrag&&e._document.addEventListener("mousemove",i.mousedrag),e.cancel(t)})),this.register((0,z.addDisposableDomListener)(o,"wheel",function(t){if(!i.wheel){if(!e.buffer.hasScrollback){var o=e.viewport.getLinesScrolled(t);if(0===o)return;for(var n=u.C0.ESC+(e.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(t.deltaY<0?"A":"B"),r="",a=0;a=65&&e.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(o.key!==u.C0.ETX&&o.key!==u.C0.CR||(this.textarea.value=""),this._onKey.fire({key:o.key,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(o.key,!0),this.optionsService.rawOptions.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(e,!0))))},t.prototype._isThirdLevelShift=function(e,t){var o=e.isMac&&!this.options.macOptionIsMeta&&t.altKey&&!t.ctrlKey&&!t.metaKey||e.isWindows&&t.altKey&&t.ctrlKey&&!t.metaKey||e.isWindows&&t.getModifierState("AltGraph");return"keypress"===t.type?o:o&&(!t.keyCode||t.keyCode>47)},t.prototype._keyUp=function(e){this._keyDownSeen=!1,this._customKeyEventHandler&&!1===this._customKeyEventHandler(e)||(function(e){return 16===e.keyCode||17===e.keyCode||18===e.keyCode}(e)||this.focus(),this.updateCursorStyle(e),this._keyPressHandled=!1)},t.prototype._keyPress=function(e){var t;if(this._keyPressHandled=!1,this._keyDownHandled)return!1;if(this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;if(this.cancel(e),e.charCode)t=e.charCode;else if(null===e.which||void 0===e.which)t=e.keyCode;else{if(0===e.which||0===e.charCode)return!1;t=e.which}return!(!t||(e.altKey||e.ctrlKey||e.metaKey)&&!this._isThirdLevelShift(this.browser,e)||(t=String.fromCharCode(t),this._onKey.fire({key:t,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(t,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))},t.prototype._inputEvent=function(e){if(e.data&&"insertText"===e.inputType&&(!e.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;var t=e.data;return this.coreService.triggerDataEvent(t,!0),this.cancel(e),!0}return!1},t.prototype.bell=function(){var e;this._soundBell()&&(null===(e=this._soundService)||void 0===e||e.playBellSound()),this._onBell.fire()},t.prototype.resize=function(t,o){t!==this.cols||o!==this.rows?e.prototype.resize.call(this,t,o):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},t.prototype._afterResize=function(e,t){var o,n;null===(o=this._charSizeService)||void 0===o||o.measure(),null===(n=this.viewport)||void 0===n||n.syncScrollArea(!0)},t.prototype.clear=function(){if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var e=1;e{Object.defineProperty(t,"__esModule",{value:!0}),t.TimeBasedDebouncer=void 0;var o=function(){function e(e,t){void 0===t&&(t=1e3),this._renderCallback=e,this._debounceThresholdMS=t,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}return e.prototype.dispose=function(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)},e.prototype.refresh=function(e,t,o){var n=this;this._rowCount=o,e=void 0!==e?e:0,t=void 0!==t?t:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t;var i=Date.now();if(i-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=i,this._innerRefresh();else if(!this._additionalRefreshRequested){var r=i-this._lastRefreshMs,a=this._debounceThresholdMS-r;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(function(){n._lastRefreshMs=Date.now(),n._innerRefresh(),n._additionalRefreshRequested=!1,n._refreshTimeoutID=void 0},a)}},e.prototype._innerRefresh=function(){if(void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t)}},e}();t.TimeBasedDebouncer=o},1680:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Viewport=void 0;var s=o(844),c=o(3656),p=o(4725),l=o(2585),u=function(e){function t(t,o,n,i,r,a,s,p){var l=e.call(this)||this;return l._scrollLines=t,l._viewportElement=o,l._scrollArea=n,l._element=i,l._bufferService=r,l._optionsService=a,l._charSizeService=s,l._renderService=p,l.scrollBarWidth=0,l._currentRowHeight=0,l._currentScaledCellHeight=0,l._lastRecordedBufferLength=0,l._lastRecordedViewportHeight=0,l._lastRecordedBufferHeight=0,l._lastTouchY=0,l._lastScrollTop=0,l._wheelPartialScroll=0,l._refreshAnimationFrame=null,l._ignoreNextScrollEvent=!1,l.scrollBarWidth=l._viewportElement.offsetWidth-l._scrollArea.offsetWidth||15,l.register((0,c.addDisposableDomListener)(l._viewportElement,"scroll",l._onScroll.bind(l))),l._activeBuffer=l._bufferService.buffer,l.register(l._bufferService.buffers.onBufferActivate(function(e){return l._activeBuffer=e.activeBuffer})),l._renderDimensions=l._renderService.dimensions,l.register(l._renderService.onDimensionsChange(function(e){return l._renderDimensions=e})),setTimeout(function(){return l.syncScrollArea()},0),l}return i(t,e),t.prototype.onThemeChange=function(e){this._viewportElement.style.backgroundColor=e.background.css},t.prototype._refresh=function(e){var t=this;if(e)return this._innerRefresh(),void(null!==this._refreshAnimationFrame&&cancelAnimationFrame(this._refreshAnimationFrame));null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return t._innerRefresh()}))},t.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._currentScaledCellHeight=this._renderService.dimensions.scaledCellHeight,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var e=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==e&&(this._lastRecordedBufferHeight=e,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var t=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==t&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=t),this._refreshAnimationFrame=null},t.prototype.syncScrollArea=function(e){if(void 0===e&&(e=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(e);this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.scaledCellHeight===this._currentScaledCellHeight||this._refresh(e)},t.prototype._onScroll=function(e){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent){if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._scrollLines(0);var t=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(t)}},t.prototype._bubbleScroll=function(e,t){var o=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(t<0&&0!==this._viewportElement.scrollTop||t>0&&o0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._bufferService.rows),t},t.prototype._applyScrollModifier=function(e,t){var o=this._optionsService.rawOptions.fastScrollModifier;return"alt"===o&&t.altKey||"ctrl"===o&&t.ctrlKey||"shift"===o&&t.shiftKey?e*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:e*this._optionsService.rawOptions.scrollSensitivity},t.prototype.onTouchStart=function(e){this._lastTouchY=e.touches[0].pageY},t.prototype.onTouchMove=function(e){var t=this._lastTouchY-e.touches[0].pageY;return this._lastTouchY=e.touches[0].pageY,0!==t&&(this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))},r([a(4,l.IBufferService),a(5,l.IOptionsService),a(6,p.ICharSizeService),a(7,p.IRenderService)],t)}(s.Disposable);t.Viewport=u},3107:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],n=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferDecorationRenderer=void 0;var c=o(3656),p=o(4725),l=o(844),u=o(2585),b=function(e){function t(t,o,n,i){var r=e.call(this)||this;return r._screenElement=t,r._bufferService=o,r._decorationService=n,r._renderService=i,r._decorationElements=new Map,r._altBufferIsActive=!1,r._dimensionsChanged=!1,r._container=document.createElement("div"),r._container.classList.add("xterm-decoration-container"),r._screenElement.appendChild(r._container),r.register(r._renderService.onRenderedViewportChange(function(){return r._queueRefresh()})),r.register(r._renderService.onDimensionsChange(function(){r._dimensionsChanged=!0,r._queueRefresh()})),r.register((0,c.addDisposableDomListener)(window,"resize",function(){return r._queueRefresh()})),r.register(r._bufferService.buffers.onBufferActivate(function(){r._altBufferIsActive=r._bufferService.buffer===r._bufferService.buffers.alt})),r.register(r._decorationService.onDecorationRegistered(function(){return r._queueRefresh()})),r.register(r._decorationService.onDecorationRemoved(function(e){return r._removeDecoration(e)})),r}return i(t,e),t.prototype.dispose=function(){this._container.remove(),this._decorationElements.clear(),e.prototype.dispose.call(this)},t.prototype._queueRefresh=function(){var e=this;void 0===this._animationFrame&&(this._animationFrame=this._renderService.addRefreshCallback(function(){e.refreshDecorations(),e._animationFrame=void 0}))},t.prototype.refreshDecorations=function(){var e,t;try{for(var o=s(this._decorationService.decorations),n=o.next();!n.done;n=o.next()){var i=n.value;this._renderDecoration(i)}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}this._dimensionsChanged=!1},t.prototype._renderDecoration=function(e){this._refreshStyle(e),this._dimensionsChanged&&this._refreshXPosition(e)},t.prototype._createElement=function(e){var t,o=document.createElement("div");o.classList.add("xterm-decoration"),o.style.width=Math.round((e.options.width||1)*this._renderService.dimensions.actualCellWidth)+"px",o.style.height=(e.options.height||1)*this._renderService.dimensions.actualCellHeight+"px",o.style.top=(e.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.actualCellHeight+"px",o.style.lineHeight=this._renderService.dimensions.actualCellHeight+"px";var n=null!==(t=e.options.x)&&void 0!==t?t:0;return n&&n>this._bufferService.cols&&(o.style.display="none"),this._refreshXPosition(e,o),o},t.prototype._refreshStyle=function(e){var t=this,o=e.marker.line-this._bufferService.buffers.active.ydisp;if(o<0||o>=this._bufferService.rows)e.element&&(e.element.style.display="none",e.onRenderEmitter.fire(e.element));else{var n=this._decorationElements.get(e);n||(e.onDispose(function(){return t._removeDecoration(e)}),n=this._createElement(e),e.element=n,this._decorationElements.set(e,n),this._container.appendChild(n)),n.style.top=o*this._renderService.dimensions.actualCellHeight+"px",n.style.display=this._altBufferIsActive?"none":"block",e.onRenderEmitter.fire(n)}},t.prototype._refreshXPosition=function(e,t){var o;if(void 0===t&&(t=e.element),t){var n=null!==(o=e.options.x)&&void 0!==o?o:0;"right"===(e.options.anchor||"left")?t.style.right=n?n*this._renderService.dimensions.actualCellWidth+"px":"":t.style.left=n?n*this._renderService.dimensions.actualCellWidth+"px":""}},t.prototype._removeDecoration=function(e){var t;null===(t=this._decorationElements.get(e))||void 0===t||t.remove(),this._decorationElements.delete(e)},r([a(1,u.IBufferService),a(2,u.IDecorationService),a(3,p.IRenderService)],t)}(l.Disposable);t.BufferDecorationRenderer=b},5871:function(e,t){var o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],n=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.ColorZoneStore=void 0;var n=function(){function e(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}return Object.defineProperty(e.prototype,"zones",{get:function(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones},enumerable:!1,configurable:!0}),e.prototype.clear=function(){this._zones.length=0,this._zonePoolIndex=0},e.prototype.addDecoration=function(e){var t,n;if(e.options.overviewRulerOptions){try{for(var i=o(this._zones),r=i.next();!r.done;r=i.next()){var a=r.value;if(a.color===e.options.overviewRulerOptions.color&&a.position===e.options.overviewRulerOptions.position){if(this._lineIntersectsZone(a,e.marker.line))return;if(this._lineAdjacentToZone(a,e.marker.line,e.options.overviewRulerOptions.position))return void this._addLineToZone(a,e.marker.line)}}}catch(e){t={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}if(this._zonePoolIndex=e.startBufferLine&&t<=e.endBufferLine},e.prototype._lineAdjacentToZone=function(e,t,o){return t>=e.startBufferLine-this._linePadding[o||"full"]&&t<=e.endBufferLine+this._linePadding[o||"full"]},e.prototype._addLineToZone=function(e,t){e.startBufferLine=Math.min(e.startBufferLine,t),e.endBufferLine=Math.max(e.endBufferLine,t)},e}();t.ColorZoneStore=n},5744:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],n=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.OverviewRulerRenderer=void 0;var c=o(5871),p=o(3656),l=o(4725),u=o(844),b=o(2585),d={full:0,left:0,center:0,right:0},M={full:0,left:0,center:0,right:0},h={full:0,left:0,center:0,right:0},f=function(e){function t(t,o,n,i,r,a){var s,p=e.call(this)||this;p._viewportElement=t,p._screenElement=o,p._bufferService=n,p._decorationService=i,p._renderService=r,p._optionsService=a,p._colorZoneStore=new c.ColorZoneStore,p._shouldUpdateDimensions=!0,p._shouldUpdateAnchor=!0,p._lastKnownBufferLength=0,p._canvas=document.createElement("canvas"),p._canvas.classList.add("xterm-decoration-overview-ruler"),p._refreshCanvasDimensions(),null===(s=p._viewportElement.parentElement)||void 0===s||s.insertBefore(p._canvas,p._viewportElement);var l=p._canvas.getContext("2d");if(!l)throw new Error("Ctx cannot be null");return p._ctx=l,p._registerDecorationListeners(),p._registerBufferChangeListeners(),p._registerDimensionChangeListeners(),p}return i(t,e),Object.defineProperty(t.prototype,"_width",{get:function(){return this._optionsService.options.overviewRulerWidth||0},enumerable:!1,configurable:!0}),t.prototype._registerDecorationListeners=function(){var e=this;this.register(this._decorationService.onDecorationRegistered(function(){return e._queueRefresh(void 0,!0)})),this.register(this._decorationService.onDecorationRemoved(function(){return e._queueRefresh(void 0,!0)}))},t.prototype._registerBufferChangeListeners=function(){var e=this;this.register(this._renderService.onRenderedViewportChange(function(){return e._queueRefresh()})),this.register(this._bufferService.buffers.onBufferActivate(function(){e._canvas.style.display=e._bufferService.buffer===e._bufferService.buffers.alt?"none":"block"})),this.register(this._bufferService.onScroll(function(){e._lastKnownBufferLength!==e._bufferService.buffers.normal.lines.length&&(e._refreshDrawHeightConstants(),e._refreshColorZonePadding())}))},t.prototype._registerDimensionChangeListeners=function(){var e=this;this.register(this._renderService.onRender(function(){e._containerHeight&&e._containerHeight===e._screenElement.clientHeight||(e._queueRefresh(!0),e._containerHeight=e._screenElement.clientHeight)})),this.register(this._optionsService.onOptionChange(function(t){"overviewRulerWidth"===t&&e._queueRefresh(!0)})),this.register((0,p.addDisposableDomListener)(window,"resize",function(){e._queueRefresh(!0)})),this._queueRefresh(!0)},t.prototype.dispose=function(){var t;null===(t=this._canvas)||void 0===t||t.remove(),e.prototype.dispose.call(this)},t.prototype._refreshDrawConstants=function(){var e=Math.floor(this._canvas.width/3),t=Math.ceil(this._canvas.width/3);M.full=this._canvas.width,M.left=e,M.center=t,M.right=e,this._refreshDrawHeightConstants(),h.full=0,h.left=0,h.center=M.left,h.right=M.left+M.center},t.prototype._refreshDrawHeightConstants=function(){d.full=Math.round(2*window.devicePixelRatio);var e=this._canvas.height/this._bufferService.buffer.lines.length,t=Math.round(Math.max(Math.min(e,12),6)*window.devicePixelRatio);d.left=t,d.center=t,d.right=t},t.prototype._refreshColorZonePadding=function(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*d.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*d.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*d.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*d.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length},t.prototype._refreshCanvasDimensions=function(){this._canvas.style.width=this._width+"px",this._canvas.width=Math.round(this._width*window.devicePixelRatio),this._canvas.style.height=this._screenElement.clientHeight+"px",this._canvas.height=Math.round(this._screenElement.clientHeight*window.devicePixelRatio),this._refreshDrawConstants(),this._refreshColorZonePadding()},t.prototype._refreshDecorations=function(){var e,t,o,n,i,r;this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();try{for(var a=s(this._decorationService.decorations),c=a.next();!c.done;c=a.next()){var p=c.value;this._colorZoneStore.addDecoration(p)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}this._ctx.lineWidth=1;var l=this._colorZoneStore.zones;try{for(var u=s(l),b=u.next();!b.done;b=u.next())"full"!==(h=b.value).position&&this._renderColorZone(h)}catch(e){o={error:e}}finally{try{b&&!b.done&&(n=u.return)&&n.call(u)}finally{if(o)throw o.error}}try{for(var d=s(l),M=d.next();!M.done;M=d.next()){var h;"full"===(h=M.value).position&&this._renderColorZone(h)}}catch(e){i={error:e}}finally{try{M&&!M.done&&(r=d.return)&&r.call(d)}finally{if(i)throw i.error}}this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1},t.prototype._renderColorZone=function(e){this._ctx.fillStyle=e.color,this._ctx.fillRect(h[e.position||"full"],Math.round((this._canvas.height-1)*(e.startBufferLine/this._bufferService.buffers.active.lines.length)-d[e.position||"full"]/2),M[e.position||"full"],Math.round((this._canvas.height-1)*((e.endBufferLine-e.startBufferLine)/this._bufferService.buffers.active.lines.length)+d[e.position||"full"]))},t.prototype._queueRefresh=function(e,t){var o=this;this._shouldUpdateDimensions=e||this._shouldUpdateDimensions,this._shouldUpdateAnchor=t||this._shouldUpdateAnchor,void 0===this._animationFrame&&(this._animationFrame=window.requestAnimationFrame(function(){o._refreshDecorations(),o._animationFrame=void 0}))},r([a(2,b.IBufferService),a(3,b.IDecorationService),a(4,l.IRenderService),a(5,b.IOptionsService)],t)}(u.Disposable);t.OverviewRulerRenderer=f},2950:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CompositionHelper=void 0;var r=o(4725),a=o(2585),s=function(){function e(e,t,o,n,i,r){this._textarea=e,this._compositionView=t,this._bufferService=o,this._optionsService=n,this._coreService=i,this._renderService=r,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}return Object.defineProperty(e.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),e.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")},e.prototype.compositionupdate=function(e){var t=this;this._compositionView.textContent=e.data,this.updateCompositionElements(),setTimeout(function(){t._compositionPosition.end=t._textarea.value.length},0)},e.prototype.compositionend=function(){this._finalizeComposition(!0)},e.prototype.keydown=function(e){if(this._isComposing||this._isSendingComposition){if(229===e.keyCode)return!1;if(16===e.keyCode||17===e.keyCode||18===e.keyCode)return!1;this._finalizeComposition(!1)}return 229!==e.keyCode||(this._handleAnyTextareaChanges(),!1)},e.prototype._finalizeComposition=function(e){var t=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,e){var o={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){var e;t._isSendingComposition&&(t._isSendingComposition=!1,o.start+=t._dataAlreadySent.length,(e=t._isComposing?t._textarea.value.substring(o.start,o.end):t._textarea.value.substring(o.start)).length>0&&t._coreService.triggerDataEvent(e,!0))},0)}else{this._isSendingComposition=!1;var n=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(n,!0)}},e.prototype._handleAnyTextareaChanges=function(){var e=this,t=this._textarea.value;setTimeout(function(){if(!e._isComposing){var o=e._textarea.value.replace(t,"");o.length>0&&(e._dataAlreadySent=o,e._coreService.triggerDataEvent(o,!0))}},0)},e.prototype.updateCompositionElements=function(e){var t=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var o=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),n=this._renderService.dimensions.actualCellHeight,i=this._bufferService.buffer.y*this._renderService.dimensions.actualCellHeight,r=o*this._renderService.dimensions.actualCellWidth;this._compositionView.style.left=r+"px",this._compositionView.style.top=i+"px",this._compositionView.style.height=n+"px",this._compositionView.style.lineHeight=n+"px",this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var a=this._compositionView.getBoundingClientRect();this._textarea.style.left=r+"px",this._textarea.style.top=i+"px",this._textarea.style.width=Math.max(a.width,1)+"px",this._textarea.style.height=Math.max(a.height,1)+"px",this._textarea.style.lineHeight=a.height+"px"}e||setTimeout(function(){return t.updateCompositionElements(!0)},0)}},n([i(2,a.IBufferService),i(3,a.IOptionsService),i(4,a.ICoreService),i(5,r.IRenderService)],e)}();t.CompositionHelper=s},9806:(e,t)=>{function o(e,t,o){var n=o.getBoundingClientRect(),i=e.getComputedStyle(o),r=parseInt(i.getPropertyValue("padding-left")),a=parseInt(i.getPropertyValue("padding-top"));return[t.clientX-n.left-r,t.clientY-n.top-a]}Object.defineProperty(t,"__esModule",{value:!0}),t.getRawByteCoords=t.getCoords=t.getCoordsRelativeToElement=void 0,t.getCoordsRelativeToElement=o,t.getCoords=function(e,t,n,i,r,a,s,c,p){if(a){var l=o(e,t,n);if(l)return l[0]=Math.ceil((l[0]+(p?s/2:0))/s),l[1]=Math.ceil(l[1]/c),l[0]=Math.min(Math.max(l[0],1),i+(p?1:0)),l[1]=Math.min(Math.max(l[1],1),r),l}},t.getRawByteCoords=function(e){if(e)return{x:e[0]+32,y:e[1]+32}}},9504:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.moveToCellSequence=void 0;var n=o(2584);function i(e,t,o,n){var i=e-r(o,e),s=t-r(o,t),l=Math.abs(i-s)-function(e,t,o){for(var n=0,i=e-r(o,e),s=t-r(o,t),c=0;c=0&&tt?"A":"B"}function s(e,t,o,n,i,r){for(var a=e,s=t,c="";a!==o||s!==n;)a+=i?1:-1,i&&a>r.cols-1?(c+=r.buffer.translateBufferLineToString(s,!1,e,a),a=0,e=0,s++):!i&&a<0&&(c+=r.buffer.translateBufferLineToString(s,!1,0,e+1),e=a=r.cols-1,s--);return c+r.buffer.translateBufferLineToString(s,!1,e,a)}function c(e,t){var o=t?"O":"[";return n.C0.ESC+o+e}function p(e,t){e=Math.floor(e);for(var o="",n=0;n0?n-r(a,n):t;var b=n,d=function(e,t,o,n,a,s){var c;return c=i(o,n,a,s).length>0?n-r(a,n):t,e=o&&ce?"D":"C",p(Math.abs(l-e),c(a,n));a=u>t?"D":"C";var b=Math.abs(u-t);return p(function(e,t){return t.cols-e}(u>t?e:l,o)+(b-1)*o.cols+1+((u>t?l:e)-1),c(a,n))}},4389:function(e,t,o){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,o=1,n=arguments.length;o=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.Terminal=void 0;var r=o(3236),a=o(9042),s=o(7975),c=o(7090),p=o(5741),l=o(8285),u=["cols","rows"],b=function(){function e(e){var t=this;this._core=new r.Terminal(e),this._addonManager=new p.AddonManager,this._publicOptions=n({},this._core.options);var o=function(e){return t._core.options[e]},i=function(e,o){t._checkReadonlyOptions(e),t._core.options[e]=o};for(var a in this._core.options){var s={get:o.bind(this,a),set:i.bind(this,a)};Object.defineProperty(this._publicOptions,a,s)}}return e.prototype._checkReadonlyOptions=function(e){if(u.includes(e))throw new Error('Option "'+e+'" can only be set in the constructor')},e.prototype._checkProposedApi=function(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")},Object.defineProperty(e.prototype,"onBell",{get:function(){return this._core.onBell},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onWriteParsed",{get:function(){return this._core.onWriteParsed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new s.ParserApi(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"unicode",{get:function(){return this._checkProposedApi(),new c.UnicodeApi(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"buffer",{get:function(){return this._checkProposedApi(),this._buffer||(this._buffer=new l.BufferNamespaceApi(this._core)),this._buffer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"modes",{get:function(){var e=this._core.coreService.decPrivateModes,t="none";switch(this._core.coreMouseService.activeProtocol){case"X10":t="x10";break;case"VT200":t="vt200";break;case"DRAG":t="drag";break;case"ANY":t="any"}return{applicationCursorKeysMode:e.applicationCursorKeys,applicationKeypadMode:e.applicationKeypad,bracketedPasteMode:e.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:t,originMode:e.origin,reverseWraparoundMode:e.reverseWraparound,sendFocusMode:e.sendFocus,wraparoundMode:e.wraparound}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._publicOptions},set:function(e){for(var t in e)this._publicOptions[t]=e[t]},enumerable:!1,configurable:!0}),e.prototype.blur=function(){this._core.blur()},e.prototype.focus=function(){this._core.focus()},e.prototype.resize=function(e,t){this._verifyIntegers(e,t),this._core.resize(e,t)},e.prototype.open=function(e){this._core.open(e)},e.prototype.attachCustomKeyEventHandler=function(e){this._core.attachCustomKeyEventHandler(e)},e.prototype.registerLinkMatcher=function(e,t,o){return this._checkProposedApi(),this._core.registerLinkMatcher(e,t,o)},e.prototype.deregisterLinkMatcher=function(e){this._checkProposedApi(),this._core.deregisterLinkMatcher(e)},e.prototype.registerLinkProvider=function(e){return this._checkProposedApi(),this._core.registerLinkProvider(e)},e.prototype.registerCharacterJoiner=function(e){return this._checkProposedApi(),this._core.registerCharacterJoiner(e)},e.prototype.deregisterCharacterJoiner=function(e){this._checkProposedApi(),this._core.deregisterCharacterJoiner(e)},e.prototype.registerMarker=function(e){return void 0===e&&(e=0),this._checkProposedApi(),this._verifyIntegers(e),this._core.addMarker(e)},e.prototype.registerDecoration=function(e){var t,o,n;return this._checkProposedApi(),this._verifyPositiveIntegers(null!==(t=e.x)&&void 0!==t?t:0,null!==(o=e.width)&&void 0!==o?o:0,null!==(n=e.height)&&void 0!==n?n:0),this._core.registerDecoration(e)},e.prototype.addMarker=function(e){return this.registerMarker(e)},e.prototype.hasSelection=function(){return this._core.hasSelection()},e.prototype.select=function(e,t,o){this._verifyIntegers(e,t,o),this._core.select(e,t,o)},e.prototype.getSelection=function(){return this._core.getSelection()},e.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},e.prototype.clearSelection=function(){this._core.clearSelection()},e.prototype.selectAll=function(){this._core.selectAll()},e.prototype.selectLines=function(e,t){this._verifyIntegers(e,t),this._core.selectLines(e,t)},e.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},e.prototype.scrollLines=function(e){this._verifyIntegers(e),this._core.scrollLines(e)},e.prototype.scrollPages=function(e){this._verifyIntegers(e),this._core.scrollPages(e)},e.prototype.scrollToTop=function(){this._core.scrollToTop()},e.prototype.scrollToBottom=function(){this._core.scrollToBottom()},e.prototype.scrollToLine=function(e){this._verifyIntegers(e),this._core.scrollToLine(e)},e.prototype.clear=function(){this._core.clear()},e.prototype.write=function(e,t){this._core.write(e,t)},e.prototype.writeUtf8=function(e,t){this._core.write(e,t)},e.prototype.writeln=function(e,t){this._core.write(e),this._core.write("\r\n",t)},e.prototype.paste=function(e){this._core.paste(e)},e.prototype.getOption=function(e){return this._core.optionsService.getOption(e)},e.prototype.setOption=function(e,t){this._checkReadonlyOptions(e),this._core.optionsService.setOption(e,t)},e.prototype.refresh=function(e,t){this._verifyIntegers(e,t),this._core.refresh(e,t)},e.prototype.reset=function(){this._core.reset()},e.prototype.clearTextureAtlas=function(){this._core.clearTextureAtlas()},e.prototype.loadAddon=function(e){return this._addonManager.loadAddon(this,e)},Object.defineProperty(e,"strings",{get:function(){return a},enumerable:!1,configurable:!0}),e.prototype._verifyIntegers=function(){for(var e,t,o=[],n=0;n=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseRenderLayer=void 0;var i=o(643),r=o(8803),a=o(1420),s=o(3734),c=o(1752),p=o(8055),l=o(9631),u=o(8978),b=function(){function e(e,t,o,n,i,r,a,s,c){this._container=e,this._alpha=n,this._colors=i,this._rendererId=r,this._bufferService=a,this._optionsService=s,this._decorationService=c,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._columnSelectMode=!1,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+t+"-layer"),this._canvas.style.zIndex=o.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return e.prototype.dispose=function(){var e;(0,l.removeElementFromParent)(this._canvas),null===(e=this._charAtlas)||void 0===e||e.dispose()},e.prototype._initCanvas=function(){this._ctx=(0,c.throwIfFalsy)(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},e.prototype.onOptionsChanged=function(){},e.prototype.onBlur=function(){},e.prototype.onFocus=function(){},e.prototype.onCursorMove=function(){},e.prototype.onGridChanged=function(e,t){},e.prototype.onSelectionChanged=function(e,t,o){void 0===o&&(o=!1),this._selectionStart=e,this._selectionEnd=t,this._columnSelectMode=o},e.prototype.setColors=function(e){this._refreshCharAtlas(e)},e.prototype._setTransparency=function(e){if(e!==this._alpha){var t=this._canvas;this._alpha=e,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,t),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},e.prototype._refreshCharAtlas=function(e){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=(0,a.acquireCharAtlas)(this._optionsService.rawOptions,this._rendererId,e,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},e.prototype.resize=function(e){this._scaledCellWidth=e.scaledCellWidth,this._scaledCellHeight=e.scaledCellHeight,this._scaledCharWidth=e.scaledCharWidth,this._scaledCharHeight=e.scaledCharHeight,this._scaledCharLeft=e.scaledCharLeft,this._scaledCharTop=e.scaledCharTop,this._canvas.width=e.scaledCanvasWidth,this._canvas.height=e.scaledCanvasHeight,this._canvas.style.width=e.canvasWidth+"px",this._canvas.style.height=e.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},e.prototype.clearTextureAtlas=function(){var e;null===(e=this._charAtlas)||void 0===e||e.clear()},e.prototype._fillCells=function(e,t,o,n){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,o*this._scaledCellWidth,n*this._scaledCellHeight)},e.prototype._fillMiddleLineAtCells=function(e,t,o){void 0===o&&(o=1);var n=Math.ceil(.5*this._scaledCellHeight);this._ctx.fillRect(e*this._scaledCellWidth,(t+1)*this._scaledCellHeight-n-window.devicePixelRatio,o*this._scaledCellWidth,window.devicePixelRatio)},e.prototype._fillBottomLineAtCells=function(e,t,o){void 0===o&&(o=1),this._ctx.fillRect(e*this._scaledCellWidth,(t+1)*this._scaledCellHeight-window.devicePixelRatio-1,o*this._scaledCellWidth,window.devicePixelRatio)},e.prototype._fillLeftLineAtCell=function(e,t,o){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,window.devicePixelRatio*o,this._scaledCellHeight)},e.prototype._strokeRectAtCell=function(e,t,o,n){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(e*this._scaledCellWidth+window.devicePixelRatio/2,t*this._scaledCellHeight+window.devicePixelRatio/2,o*this._scaledCellWidth-window.devicePixelRatio,n*this._scaledCellHeight-window.devicePixelRatio)},e.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},e.prototype._clearCells=function(e,t,o,n){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,t*this._scaledCellHeight,o*this._scaledCellWidth,n*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,o*this._scaledCellWidth,n*this._scaledCellHeight))},e.prototype._fillCharTrueColor=function(e,t,o){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline=r.TEXT_BASELINE,this._clipRow(o);var n=!1;!1!==this._optionsService.rawOptions.customGlyphs&&(n=(0,u.tryDrawCustomChar)(this._ctx,e.getChars(),t*this._scaledCellWidth,o*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),n||this._ctx.fillText(e.getChars(),t*this._scaledCellWidth+this._scaledCharLeft,o*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight)},e.prototype._drawChars=function(e,t,o){var a,s,c,p=this._getContrastColor(e,t,o);if(p||e.isFgRGB()||e.isBgRGB())this._drawUncachedChars(e,t,o,p);else{var l,u;e.isInverse()?(l=e.isBgDefault()?r.INVERTED_DEFAULT_COLOR:e.getBgColor(),u=e.isFgDefault()?r.INVERTED_DEFAULT_COLOR:e.getFgColor()):(u=e.isBgDefault()?i.DEFAULT_COLOR:e.getBgColor(),l=e.isFgDefault()?i.DEFAULT_COLOR:e.getFgColor()),l+=this._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&l<8?8:0,this._currentGlyphIdentifier.chars=e.getChars()||i.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=e.getCode()||i.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=u,this._currentGlyphIdentifier.fg=l,this._currentGlyphIdentifier.bold=!!e.isBold(),this._currentGlyphIdentifier.dim=!!e.isDim(),this._currentGlyphIdentifier.italic=!!e.isItalic();var b=!1;try{for(var d=n(this._decorationService.getDecorationsAtCell(t,o)),M=d.next();!M.done;M=d.next()){var h=M.value;if(h.backgroundColorRGB||h.foregroundColorRGB){b=!0;break}}}catch(e){a={error:e}}finally{try{M&&!M.done&&(s=d.return)&&s.call(d)}finally{if(a)throw a.error}}!b&&(null===(c=this._charAtlas)||void 0===c?void 0:c.draw(this._ctx,this._currentGlyphIdentifier,t*this._scaledCellWidth+this._scaledCharLeft,o*this._scaledCellHeight+this._scaledCharTop))||this._drawUncachedChars(e,t,o)}},e.prototype._drawUncachedChars=function(e,t,o,n){if(this._ctx.save(),this._ctx.font=this._getFont(!!e.isBold(),!!e.isItalic()),this._ctx.textBaseline=r.TEXT_BASELINE,e.isInverse())if(n)this._ctx.fillStyle=n.css;else if(e.isBgDefault())this._ctx.fillStyle=p.color.opaque(this._colors.background).css;else if(e.isBgRGB())this._ctx.fillStyle="rgb("+s.AttributeData.toColorRGB(e.getBgColor()).join(",")+")";else{var i=e.getBgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&i<8&&(i+=8),this._ctx.fillStyle=this._colors.ansi[i].css}else if(n)this._ctx.fillStyle=n.css;else if(e.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(e.isFgRGB())this._ctx.fillStyle="rgb("+s.AttributeData.toColorRGB(e.getFgColor()).join(",")+")";else{var a=e.getFgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&a<8&&(a+=8),this._ctx.fillStyle=this._colors.ansi[a].css}this._clipRow(o),e.isDim()&&(this._ctx.globalAlpha=r.DIM_OPACITY);var c=!1;!1!==this._optionsService.rawOptions.customGlyphs&&(c=(0,u.tryDrawCustomChar)(this._ctx,e.getChars(),t*this._scaledCellWidth,o*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),c||this._ctx.fillText(e.getChars(),t*this._scaledCellWidth+this._scaledCharLeft,o*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight),this._ctx.restore()},e.prototype._clipRow=function(e){this._ctx.beginPath(),this._ctx.rect(0,e*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},e.prototype._getFont=function(e,t){return(t?"italic":"")+" "+(e?this._optionsService.rawOptions.fontWeightBold:this._optionsService.rawOptions.fontWeight)+" "+this._optionsService.rawOptions.fontSize*window.devicePixelRatio+"px "+this._optionsService.rawOptions.fontFamily},e.prototype._getContrastColor=function(e,t,o){var i,r,a,s,l=!1;try{for(var u=n(this._decorationService.getDecorationsAtCell(t,o)),b=u.next();!b.done;b=u.next()){var d=b.value;"top"!==d.options.layer&&l||(d.backgroundColorRGB&&(a=d.backgroundColorRGB.rgba),d.foregroundColorRGB&&(s=d.foregroundColorRGB.rgba),l="top"===d.options.layer)}}catch(e){i={error:e}}finally{try{b&&!b.done&&(r=u.return)&&r.call(u)}finally{if(i)throw i.error}}if(l||this._colors.selectionForeground&&this._isCellInSelection(t,o)&&(s=this._colors.selectionForeground.rgba),a||s||1!==this._optionsService.rawOptions.minimumContrastRatio&&!(0,c.excludeFromContrastRatioDemands)(e.getCode())){if(!a&&!s){var M=this._colors.contrastCache.getColor(e.bg,e.fg);if(void 0!==M)return M||void 0}var h=e.getFgColor(),f=e.getFgColorMode(),z=e.getBgColor(),O=e.getBgColorMode(),A=!!e.isInverse(),m=!!e.isInverse();if(A){var v=h;h=z,z=v;var g=f;f=O,O=g}var y=this._resolveBackgroundRgba(void 0!==a?50331648:O,null!=a?a:z,A),q=this._resolveForegroundRgba(f,h,A,m),_=p.rgba.ensureContrastRatio(null!=a?a:y,null!=s?s:q,this._optionsService.rawOptions.minimumContrastRatio);if(!_){if(!s)return void this._colors.contrastCache.setColor(e.bg,e.fg,null);_=s}var W={css:p.channels.toCss(_>>24&255,_>>16&255,_>>8&255),rgba:_};return a||s||this._colors.contrastCache.setColor(e.bg,e.fg,W),W}},e.prototype._resolveBackgroundRgba=function(e,t,o){switch(e){case 16777216:case 33554432:return this._colors.ansi[t].rgba;case 50331648:return t<<8;default:return o?this._colors.foreground.rgba:this._colors.background.rgba}},e.prototype._resolveForegroundRgba=function(e,t,o,n){switch(e){case 16777216:case 33554432:return this._optionsService.rawOptions.drawBoldTextInBrightColors&&n&&t<8&&(t+=8),this._colors.ansi[t].rgba;case 50331648:return t<<8;default:return o?this._colors.background.rgba:this._colors.foreground.rgba}},e.prototype._isCellInSelection=function(e,t){var o=this._selectionStart,n=this._selectionEnd;return!(!o||!n)&&(this._columnSelectMode?e>=o[0]&&t>=o[1]&&eo[1]&&t=o[0]&&e=o[0])},e}();t.BaseRenderLayer=b},2512:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CursorRenderLayer=void 0;var s=o(1546),c=o(511),p=o(2585),l=o(4725),u=600,b=function(e){function t(t,o,n,i,r,a,s,p,l,u){var b=e.call(this,t,"cursor",o,!0,n,i,a,s,u)||this;return b._onRequestRedraw=r,b._coreService=p,b._coreBrowserService=l,b._cell=new c.CellData,b._state={x:0,y:0,isFocused:!1,style:"",width:0},b._cursorRenderers={bar:b._renderBarCursor.bind(b),block:b._renderBlockCursor.bind(b),underline:b._renderUnderlineCursor.bind(b)},b}return i(t,e),t.prototype.dispose=function(){this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0),e.prototype.dispose.call(this)},t.prototype.resize=function(t){e.prototype.resize.call(this,t),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},t.prototype.reset=function(){var e;this._clearCursor(),null===(e=this._cursorBlinkStateManager)||void 0===e||e.restartBlinkAnimation(),this.onOptionsChanged()},t.prototype.onBlur=function(){var e;null===(e=this._cursorBlinkStateManager)||void 0===e||e.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onFocus=function(){var e;null===(e=this._cursorBlinkStateManager)||void 0===e||e.resume(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onOptionsChanged=function(){var e,t=this;this._optionsService.rawOptions.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new d(this._coreBrowserService.isFocused,function(){t._render(!0)})):(null===(e=this._cursorBlinkStateManager)||void 0===e||e.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onCursorMove=function(){var e;null===(e=this._cursorBlinkStateManager)||void 0===e||e.restartBlinkAnimation()},t.prototype.onGridChanged=function(e,t){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},t.prototype._render=function(e){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var t=this._bufferService.buffer.ybase+this._bufferService.buffer.y,o=t-this._bufferService.buffer.ydisp;if(o<0||o>=this._bufferService.rows)this._clearCursor();else{var n=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(t).loadCell(n,this._cell),void 0!==this._cell.content){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var i=this._optionsService.rawOptions.cursorStyle;return i&&"block"!==i?this._cursorRenderers[i](n,o,this._cell):this._renderBlurCursor(n,o,this._cell),this._ctx.restore(),this._state.x=n,this._state.y=o,this._state.isFocused=!1,this._state.style=i,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===n&&this._state.y===o&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.rawOptions.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.rawOptions.cursorStyle||"block"](n,o,this._cell),this._ctx.restore(),this._state.x=n,this._state.y=o,this._state.isFocused=!1,this._state.style=this._optionsService.rawOptions.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},t.prototype._clearCursor=function(){this._state&&(window.devicePixelRatio<1?this._clearAll():this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},t.prototype._renderBarCursor=function(e,t,o){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(e,t,this._optionsService.rawOptions.cursorWidth),this._ctx.restore()},t.prototype._renderBlockCursor=function(e,t,o){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(e,t,o.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(o,e,t),this._ctx.restore()},t.prototype._renderUnderlineCursor=function(e,t,o){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(e,t),this._ctx.restore()},t.prototype._renderBlurCursor=function(e,t,o){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(e,t,o.getWidth(),1),this._ctx.restore()},r([a(5,p.IBufferService),a(6,p.IOptionsService),a(7,p.ICoreService),a(8,l.ICoreBrowserService),a(9,p.IDecorationService)],t)}(s.BaseRenderLayer);t.CursorRenderLayer=b;var d=function(){function e(e,t){this._renderCallback=t,this.isCursorVisible=!0,e&&this._restartInterval()}return Object.defineProperty(e.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.restartBlinkAnimation=function(){var e=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){e._renderCallback(),e._animationFrame=void 0})))},e.prototype._restartInterval=function(e){var t=this;void 0===e&&(e=u),this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout=window.setTimeout(function(){if(t._animationTimeRestarted){var e=u-(Date.now()-t._animationTimeRestarted);if(t._animationTimeRestarted=void 0,e>0)return void t._restartInterval(e)}t.isCursorVisible=!1,t._animationFrame=window.requestAnimationFrame(function(){t._renderCallback(),t._animationFrame=void 0}),t._blinkInterval=window.setInterval(function(){if(t._animationTimeRestarted){var e=u-(Date.now()-t._animationTimeRestarted);return t._animationTimeRestarted=void 0,void t._restartInterval(e)}t.isCursorVisible=!t.isCursorVisible,t._animationFrame=window.requestAnimationFrame(function(){t._renderCallback(),t._animationFrame=void 0})},u)},e)},e.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},e}()},8978:function(e,t,o){var n,i,r,a,s,c,p,l,u,b,d,M,h,f,z,O,A,m,v,g,y,q,_,W,R,w,L,C,S,E,T,x,N,B,k,P,D,I,X,j,F,H,U,V,G,K,$,Y,J,Q,Z,ee,te,oe,ne,ie,re,ae,se,ce,pe,le,ue,be,de,Me,he,fe,ze,Oe,Ae,me,ve,ge,ye,qe,_e,We,Re,we,Le,Ce,Se,Ee,Te,xe,Ne,Be,ke,Pe,De,Ie,Xe,je,Fe,He,Ue,Ve,Ge,Ke,$e,Ye,Je,Qe,Ze,et,tt,ot,nt,it,rt,at,st,ct,pt,lt,ut,bt,dt,Mt,ht,ft,zt,Ot,At,mt,vt,gt,yt=this&&this.__read||function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var n,i,r=o.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a},qt=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],n=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.tryDrawCustomChar=t.powerlineDefinitions=t.boxDrawingDefinitions=t.blockElementDefinitions=void 0;var _t=o(1752);t.blockElementDefinitions={"▀":[{x:0,y:0,w:8,h:4}],"▁":[{x:0,y:7,w:8,h:1}],"▂":[{x:0,y:6,w:8,h:2}],"▃":[{x:0,y:5,w:8,h:3}],"▄":[{x:0,y:4,w:8,h:4}],"▅":[{x:0,y:3,w:8,h:5}],"▆":[{x:0,y:2,w:8,h:6}],"▇":[{x:0,y:1,w:8,h:7}],"█":[{x:0,y:0,w:8,h:8}],"▉":[{x:0,y:0,w:7,h:8}],"▊":[{x:0,y:0,w:6,h:8}],"▋":[{x:0,y:0,w:5,h:8}],"▌":[{x:0,y:0,w:4,h:8}],"▍":[{x:0,y:0,w:3,h:8}],"▎":[{x:0,y:0,w:2,h:8}],"▏":[{x:0,y:0,w:1,h:8}],"▐":[{x:4,y:0,w:4,h:8}],"▔":[{x:0,y:0,w:9,h:1}],"▕":[{x:7,y:0,w:1,h:8}],"▖":[{x:0,y:4,w:4,h:4}],"▗":[{x:4,y:4,w:4,h:4}],"▘":[{x:0,y:0,w:4,h:4}],"▙":[{x:0,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"▚":[{x:0,y:0,w:4,h:4},{x:4,y:4,w:4,h:4}],"▛":[{x:0,y:0,w:4,h:8},{x:0,y:0,w:4,h:8}],"▜":[{x:0,y:0,w:8,h:4},{x:4,y:0,w:4,h:8}],"▝":[{x:4,y:0,w:4,h:4}],"▞":[{x:4,y:0,w:4,h:4},{x:0,y:4,w:4,h:4}],"▟":[{x:4,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"🭰":[{x:1,y:0,w:1,h:8}],"🭱":[{x:2,y:0,w:1,h:8}],"🭲":[{x:3,y:0,w:1,h:8}],"🭳":[{x:4,y:0,w:1,h:8}],"🭴":[{x:5,y:0,w:1,h:8}],"🭵":[{x:6,y:0,w:1,h:8}],"🭶":[{x:0,y:1,w:8,h:1}],"🭷":[{x:0,y:2,w:8,h:1}],"🭸":[{x:0,y:3,w:8,h:1}],"🭹":[{x:0,y:4,w:8,h:1}],"🭺":[{x:0,y:5,w:8,h:1}],"🭻":[{x:0,y:6,w:8,h:1}],"🭼":[{x:0,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"🭽":[{x:0,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"🭾":[{x:7,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"🭿":[{x:7,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"🮀":[{x:0,y:0,w:8,h:1},{x:0,y:7,w:8,h:1}],"🮁":[{x:0,y:0,w:8,h:1},{x:0,y:2,w:8,h:1},{x:0,y:4,w:8,h:1},{x:0,y:7,w:8,h:1}],"🮂":[{x:0,y:0,w:8,h:2}],"🮃":[{x:0,y:0,w:8,h:3}],"🮄":[{x:0,y:0,w:8,h:5}],"🮅":[{x:0,y:0,w:8,h:6}],"🮆":[{x:0,y:0,w:8,h:7}],"🮇":[{x:6,y:0,w:2,h:8}],"🮈":[{x:5,y:0,w:3,h:8}],"🮉":[{x:3,y:0,w:5,h:8}],"🮊":[{x:2,y:0,w:6,h:8}],"🮋":[{x:1,y:0,w:7,h:8}],"🮕":[{x:0,y:0,w:2,h:2},{x:4,y:0,w:2,h:2},{x:2,y:2,w:2,h:2},{x:6,y:2,w:2,h:2},{x:0,y:4,w:2,h:2},{x:4,y:4,w:2,h:2},{x:2,y:6,w:2,h:2},{x:6,y:6,w:2,h:2}],"🮖":[{x:2,y:0,w:2,h:2},{x:6,y:0,w:2,h:2},{x:0,y:2,w:2,h:2},{x:4,y:2,w:2,h:2},{x:2,y:4,w:2,h:2},{x:6,y:4,w:2,h:2},{x:0,y:6,w:2,h:2},{x:4,y:6,w:2,h:2}],"🮗":[{x:0,y:2,w:8,h:2},{x:0,y:6,w:8,h:2}]};var Wt={"░":[[1,0,0,0],[0,0,0,0],[0,0,1,0],[0,0,0,0]],"▒":[[1,0],[0,0],[0,1],[0,0]],"▓":[[0,1],[1,1],[1,0],[1,1]]};t.boxDrawingDefinitions={"─":(n={},n[1]="M0,.5 L1,.5",n),"━":(i={},i[3]="M0,.5 L1,.5",i),"│":(r={},r[1]="M.5,0 L.5,1",r),"┃":(a={},a[3]="M.5,0 L.5,1",a),"┌":(s={},s[1]="M0.5,1 L.5,.5 L1,.5",s),"┏":(c={},c[3]="M0.5,1 L.5,.5 L1,.5",c),"┐":(p={},p[1]="M0,.5 L.5,.5 L.5,1",p),"┓":(l={},l[3]="M0,.5 L.5,.5 L.5,1",l),"└":(u={},u[1]="M.5,0 L.5,.5 L1,.5",u),"┗":(b={},b[3]="M.5,0 L.5,.5 L1,.5",b),"┘":(d={},d[1]="M.5,0 L.5,.5 L0,.5",d),"┛":(M={},M[3]="M.5,0 L.5,.5 L0,.5",M),"├":(h={},h[1]="M.5,0 L.5,1 M.5,.5 L1,.5",h),"┣":(f={},f[3]="M.5,0 L.5,1 M.5,.5 L1,.5",f),"┤":(z={},z[1]="M.5,0 L.5,1 M.5,.5 L0,.5",z),"┫":(O={},O[3]="M.5,0 L.5,1 M.5,.5 L0,.5",O),"┬":(A={},A[1]="M0,.5 L1,.5 M.5,.5 L.5,1",A),"┳":(m={},m[3]="M0,.5 L1,.5 M.5,.5 L.5,1",m),"┴":(v={},v[1]="M0,.5 L1,.5 M.5,.5 L.5,0",v),"┻":(g={},g[3]="M0,.5 L1,.5 M.5,.5 L.5,0",g),"┼":(y={},y[1]="M0,.5 L1,.5 M.5,0 L.5,1",y),"╋":(q={},q[3]="M0,.5 L1,.5 M.5,0 L.5,1",q),"╴":(_={},_[1]="M.5,.5 L0,.5",_),"╸":(W={},W[3]="M.5,.5 L0,.5",W),"╵":(R={},R[1]="M.5,.5 L.5,0",R),"╹":(w={},w[3]="M.5,.5 L.5,0",w),"╶":(L={},L[1]="M.5,.5 L1,.5",L),"╺":(C={},C[3]="M.5,.5 L1,.5",C),"╷":(S={},S[1]="M.5,.5 L.5,1",S),"╻":(E={},E[3]="M.5,.5 L.5,1",E),"═":(T={},T[1]=function(e,t){return"M0,"+(.5-t)+" L1,"+(.5-t)+" M0,"+(.5+t)+" L1,"+(.5+t)},T),"║":(x={},x[1]=function(e,t){return"M"+(.5-e)+",0 L"+(.5-e)+",1 M"+(.5+e)+",0 L"+(.5+e)+",1"},x),"╒":(N={},N[1]=function(e,t){return"M.5,1 L.5,"+(.5-t)+" L1,"+(.5-t)+" M.5,"+(.5+t)+" L1,"+(.5+t)},N),"╓":(B={},B[1]=function(e,t){return"M"+(.5-e)+",1 L"+(.5-e)+",.5 L1,.5 M"+(.5+e)+",.5 L"+(.5+e)+",1"},B),"╔":(k={},k[1]=function(e,t){return"M1,"+(.5-t)+" L"+(.5-e)+","+(.5-t)+" L"+(.5-e)+",1 M1,"+(.5+t)+" L"+(.5+e)+","+(.5+t)+" L"+(.5+e)+",1"},k),"╕":(P={},P[1]=function(e,t){return"M0,"+(.5-t)+" L.5,"+(.5-t)+" L.5,1 M0,"+(.5+t)+" L.5,"+(.5+t)},P),"╖":(D={},D[1]=function(e,t){return"M"+(.5+e)+",1 L"+(.5+e)+",.5 L0,.5 M"+(.5-e)+",.5 L"+(.5-e)+",1"},D),"╗":(I={},I[1]=function(e,t){return"M0,"+(.5+t)+" L"+(.5-e)+","+(.5+t)+" L"+(.5-e)+",1 M0,"+(.5-t)+" L"+(.5+e)+","+(.5-t)+" L"+(.5+e)+",1"},I),"╘":(X={},X[1]=function(e,t){return"M.5,0 L.5,"+(.5+t)+" L1,"+(.5+t)+" M.5,"+(.5-t)+" L1,"+(.5-t)},X),"╙":(j={},j[1]=function(e,t){return"M1,.5 L"+(.5-e)+",.5 L"+(.5-e)+",0 M"+(.5+e)+",.5 L"+(.5+e)+",0"},j),"╚":(F={},F[1]=function(e,t){return"M1,"+(.5-t)+" L"+(.5+e)+","+(.5-t)+" L"+(.5+e)+",0 M1,"+(.5+t)+" L"+(.5-e)+","+(.5+t)+" L"+(.5-e)+",0"},F),"╛":(H={},H[1]=function(e,t){return"M0,"+(.5+t)+" L.5,"+(.5+t)+" L.5,0 M0,"+(.5-t)+" L.5,"+(.5-t)},H),"╜":(U={},U[1]=function(e,t){return"M0,.5 L"+(.5+e)+",.5 L"+(.5+e)+",0 M"+(.5-e)+",.5 L"+(.5-e)+",0"},U),"╝":(V={},V[1]=function(e,t){return"M0,"+(.5-t)+" L"+(.5-e)+","+(.5-t)+" L"+(.5-e)+",0 M0,"+(.5+t)+" L"+(.5+e)+","+(.5+t)+" L"+(.5+e)+",0"},V),"╞":(G={},G[1]=function(e,t){return"M.5,0 L.5,1 M.5,"+(.5-t)+" L1,"+(.5-t)+" M.5,"+(.5+t)+" L1,"+(.5+t)},G),"╟":(K={},K[1]=function(e,t){return"M"+(.5-e)+",0 L"+(.5-e)+",1 M"+(.5+e)+",0 L"+(.5+e)+",1 M"+(.5+e)+",.5 L1,.5"},K),"╠":($={},$[1]=function(e,t){return"M"+(.5-e)+",0 L"+(.5-e)+",1 M1,"+(.5+t)+" L"+(.5+e)+","+(.5+t)+" L"+(.5+e)+",1 M1,"+(.5-t)+" L"+(.5+e)+","+(.5-t)+" L"+(.5+e)+",0"},$),"╡":(Y={},Y[1]=function(e,t){return"M.5,0 L.5,1 M0,"+(.5-t)+" L.5,"+(.5-t)+" M0,"+(.5+t)+" L.5,"+(.5+t)},Y),"╢":(J={},J[1]=function(e,t){return"M0,.5 L"+(.5-e)+",.5 M"+(.5-e)+",0 L"+(.5-e)+",1 M"+(.5+e)+",0 L"+(.5+e)+",1"},J),"╣":(Q={},Q[1]=function(e,t){return"M"+(.5+e)+",0 L"+(.5+e)+",1 M0,"+(.5+t)+" L"+(.5-e)+","+(.5+t)+" L"+(.5-e)+",1 M0,"+(.5-t)+" L"+(.5-e)+","+(.5-t)+" L"+(.5-e)+",0"},Q),"╤":(Z={},Z[1]=function(e,t){return"M0,"+(.5-t)+" L1,"+(.5-t)+" M0,"+(.5+t)+" L1,"+(.5+t)+" M.5,"+(.5+t)+" L.5,1"},Z),"╥":(ee={},ee[1]=function(e,t){return"M0,.5 L1,.5 M"+(.5-e)+",.5 L"+(.5-e)+",1 M"+(.5+e)+",.5 L"+(.5+e)+",1"},ee),"╦":(te={},te[1]=function(e,t){return"M0,"+(.5-t)+" L1,"+(.5-t)+" M0,"+(.5+t)+" L"+(.5-e)+","+(.5+t)+" L"+(.5-e)+",1 M1,"+(.5+t)+" L"+(.5+e)+","+(.5+t)+" L"+(.5+e)+",1"},te),"╧":(oe={},oe[1]=function(e,t){return"M.5,0 L.5,"+(.5-t)+" M0,"+(.5-t)+" L1,"+(.5-t)+" M0,"+(.5+t)+" L1,"+(.5+t)},oe),"╨":(ne={},ne[1]=function(e,t){return"M0,.5 L1,.5 M"+(.5-e)+",.5 L"+(.5-e)+",0 M"+(.5+e)+",.5 L"+(.5+e)+",0"},ne),"╩":(ie={},ie[1]=function(e,t){return"M0,"+(.5+t)+" L1,"+(.5+t)+" M0,"+(.5-t)+" L"+(.5-e)+","+(.5-t)+" L"+(.5-e)+",0 M1,"+(.5-t)+" L"+(.5+e)+","+(.5-t)+" L"+(.5+e)+",0"},ie),"╪":(re={},re[1]=function(e,t){return"M.5,0 L.5,1 M0,"+(.5-t)+" L1,"+(.5-t)+" M0,"+(.5+t)+" L1,"+(.5+t)},re),"╫":(ae={},ae[1]=function(e,t){return"M0,.5 L1,.5 M"+(.5-e)+",0 L"+(.5-e)+",1 M"+(.5+e)+",0 L"+(.5+e)+",1"},ae),"╬":(se={},se[1]=function(e,t){return"M0,"+(.5+t)+" L"+(.5-e)+","+(.5+t)+" L"+(.5-e)+",1 M1,"+(.5+t)+" L"+(.5+e)+","+(.5+t)+" L"+(.5+e)+",1 M0,"+(.5-t)+" L"+(.5-e)+","+(.5-t)+" L"+(.5-e)+",0 M1,"+(.5-t)+" L"+(.5+e)+","+(.5-t)+" L"+(.5+e)+",0"},se),"╱":(ce={},ce[1]="M1,0 L0,1",ce),"╲":(pe={},pe[1]="M0,0 L1,1",pe),"╳":(le={},le[1]="M1,0 L0,1 M0,0 L1,1",le),"╼":(ue={},ue[1]="M.5,.5 L0,.5",ue[3]="M.5,.5 L1,.5",ue),"╽":(be={},be[1]="M.5,.5 L.5,0",be[3]="M.5,.5 L.5,1",be),"╾":(de={},de[1]="M.5,.5 L1,.5",de[3]="M.5,.5 L0,.5",de),"╿":(Me={},Me[1]="M.5,.5 L.5,1",Me[3]="M.5,.5 L.5,0",Me),"┍":(he={},he[1]="M.5,.5 L.5,1",he[3]="M.5,.5 L1,.5",he),"┎":(fe={},fe[1]="M.5,.5 L1,.5",fe[3]="M.5,.5 L.5,1",fe),"┑":(ze={},ze[1]="M.5,.5 L.5,1",ze[3]="M.5,.5 L0,.5",ze),"┒":(Oe={},Oe[1]="M.5,.5 L0,.5",Oe[3]="M.5,.5 L.5,1",Oe),"┕":(Ae={},Ae[1]="M.5,.5 L.5,0",Ae[3]="M.5,.5 L1,.5",Ae),"┖":(me={},me[1]="M.5,.5 L1,.5",me[3]="M.5,.5 L.5,0",me),"┙":(ve={},ve[1]="M.5,.5 L.5,0",ve[3]="M.5,.5 L0,.5",ve),"┚":(ge={},ge[1]="M.5,.5 L0,.5",ge[3]="M.5,.5 L.5,0",ge),"┝":(ye={},ye[1]="M.5,0 L.5,1",ye[3]="M.5,.5 L1,.5",ye),"┞":(qe={},qe[1]="M0.5,1 L.5,.5 L1,.5",qe[3]="M.5,.5 L.5,0",qe),"┟":(_e={},_e[1]="M.5,0 L.5,.5 L1,.5",_e[3]="M.5,.5 L.5,1",_e),"┠":(We={},We[1]="M.5,.5 L1,.5",We[3]="M.5,0 L.5,1",We),"┡":(Re={},Re[1]="M.5,.5 L.5,1",Re[3]="M.5,0 L.5,.5 L1,.5",Re),"┢":(we={},we[1]="M.5,.5 L.5,0",we[3]="M0.5,1 L.5,.5 L1,.5",we),"┥":(Le={},Le[1]="M.5,0 L.5,1",Le[3]="M.5,.5 L0,.5",Le),"┦":(Ce={},Ce[1]="M0,.5 L.5,.5 L.5,1",Ce[3]="M.5,.5 L.5,0",Ce),"┧":(Se={},Se[1]="M.5,0 L.5,.5 L0,.5",Se[3]="M.5,.5 L.5,1",Se),"┨":(Ee={},Ee[1]="M.5,.5 L0,.5",Ee[3]="M.5,0 L.5,1",Ee),"┩":(Te={},Te[1]="M.5,.5 L.5,1",Te[3]="M.5,0 L.5,.5 L0,.5",Te),"┪":(xe={},xe[1]="M.5,.5 L.5,0",xe[3]="M0,.5 L.5,.5 L.5,1",xe),"┭":(Ne={},Ne[1]="M0.5,1 L.5,.5 L1,.5",Ne[3]="M.5,.5 L0,.5",Ne),"┮":(Be={},Be[1]="M0,.5 L.5,.5 L.5,1",Be[3]="M.5,.5 L1,.5",Be),"┯":(ke={},ke[1]="M.5,.5 L.5,1",ke[3]="M0,.5 L1,.5",ke),"┰":(Pe={},Pe[1]="M0,.5 L1,.5",Pe[3]="M.5,.5 L.5,1",Pe),"┱":(De={},De[1]="M.5,.5 L1,.5",De[3]="M0,.5 L.5,.5 L.5,1",De),"┲":(Ie={},Ie[1]="M.5,.5 L0,.5",Ie[3]="M0.5,1 L.5,.5 L1,.5",Ie),"┵":(Xe={},Xe[1]="M.5,0 L.5,.5 L1,.5",Xe[3]="M.5,.5 L0,.5",Xe),"┶":(je={},je[1]="M.5,0 L.5,.5 L0,.5",je[3]="M.5,.5 L1,.5",je),"┷":(Fe={},Fe[1]="M.5,.5 L.5,0",Fe[3]="M0,.5 L1,.5",Fe),"┸":(He={},He[1]="M0,.5 L1,.5",He[3]="M.5,.5 L.5,0",He),"┹":(Ue={},Ue[1]="M.5,.5 L1,.5",Ue[3]="M.5,0 L.5,.5 L0,.5",Ue),"┺":(Ve={},Ve[1]="M.5,.5 L0,.5",Ve[3]="M.5,0 L.5,.5 L1,.5",Ve),"┽":(Ge={},Ge[1]="M.5,0 L.5,1 M.5,.5 L1,.5",Ge[3]="M.5,.5 L0,.5",Ge),"┾":(Ke={},Ke[1]="M.5,0 L.5,1 M.5,.5 L0,.5",Ke[3]="M.5,.5 L1,.5",Ke),"┿":($e={},$e[1]="M.5,0 L.5,1",$e[3]="M0,.5 L1,.5",$e),"╀":(Ye={},Ye[1]="M0,.5 L1,.5 M.5,.5 L.5,1",Ye[3]="M.5,.5 L.5,0",Ye),"╁":(Je={},Je[1]="M.5,.5 L.5,0 M0,.5 L1,.5",Je[3]="M.5,.5 L.5,1",Je),"╂":(Qe={},Qe[1]="M0,.5 L1,.5",Qe[3]="M.5,0 L.5,1",Qe),"╃":(Ze={},Ze[1]="M0.5,1 L.5,.5 L1,.5",Ze[3]="M.5,0 L.5,.5 L0,.5",Ze),"╄":(et={},et[1]="M0,.5 L.5,.5 L.5,1",et[3]="M.5,0 L.5,.5 L1,.5",et),"╅":(tt={},tt[1]="M.5,0 L.5,.5 L1,.5",tt[3]="M0,.5 L.5,.5 L.5,1",tt),"╆":(ot={},ot[1]="M.5,0 L.5,.5 L0,.5",ot[3]="M0.5,1 L.5,.5 L1,.5",ot),"╇":(nt={},nt[1]="M.5,.5 L.5,1",nt[3]="M.5,.5 L.5,0 M0,.5 L1,.5",nt),"╈":(it={},it[1]="M.5,.5 L.5,0",it[3]="M0,.5 L1,.5 M.5,.5 L.5,1",it),"╉":(rt={},rt[1]="M.5,.5 L1,.5",rt[3]="M.5,0 L.5,1 M.5,.5 L0,.5",rt),"╊":(at={},at[1]="M.5,.5 L0,.5",at[3]="M.5,0 L.5,1 M.5,.5 L1,.5",at),"╌":(st={},st[1]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",st),"╍":(ct={},ct[3]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",ct),"┄":(pt={},pt[1]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",pt),"┅":(lt={},lt[3]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",lt),"┈":(ut={},ut[1]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",ut),"┉":(bt={},bt[3]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",bt),"╎":(dt={},dt[1]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",dt),"╏":(Mt={},Mt[3]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",Mt),"┆":(ht={},ht[1]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",ht),"┇":(ft={},ft[3]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",ft),"┊":(zt={},zt[1]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",zt),"┋":(Ot={},Ot[3]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",Ot),"╭":(At={},At[1]="C.5,1,.5,.5,1,.5",At),"╮":(mt={},mt[1]="C.5,1,.5,.5,0,.5",mt),"╯":(vt={},vt[1]="C.5,0,.5,.5,0,.5",vt),"╰":(gt={},gt[1]="C.5,0,.5,.5,1,.5",gt)},t.powerlineDefinitions={"":{d:"M0,0 L1,.5 L0,1",type:0},"":{d:"M0,0 L1,.5 L0,1",type:1,horizontalPadding:.5},"":{d:"M1,0 L0,.5 L1,1",type:0},"":{d:"M1,0 L0,.5 L1,1",type:1,horizontalPadding:.5}},t.tryDrawCustomChar=function(e,o,n,i,r,a){var s=t.blockElementDefinitions[o];if(s)return function(e,t,o,n,i,r){for(var a=0;a7&&parseInt(c.slice(7,9),16)||1;else{if(!c.startsWith("rgba"))throw new Error('Unexpected fillStyle color format "'+c+'" when drawing pattern glyph');h=(a=yt(c.substring(5,c.length-1).split(",").map(function(e){return parseFloat(e)}),4))[0],f=a[1],z=a[2],O=a[3]}for(var A=0;A{Object.defineProperty(t,"__esModule",{value:!0}),t.GridCache=void 0;var o=function(){function e(){this.cache=[]}return e.prototype.resize=function(e,t){for(var o=0;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LinkRenderLayer=void 0;var s=o(1546),c=o(8803),p=o(2040),l=o(2585),u=function(e){function t(t,o,n,i,r,a,s,c,p){var l=e.call(this,t,"link",o,!0,n,i,s,c,p)||this;return r.onShowLinkUnderline(function(e){return l._onShowLinkUnderline(e)}),r.onHideLinkUnderline(function(e){return l._onHideLinkUnderline(e)}),a.onShowLinkUnderline(function(e){return l._onShowLinkUnderline(e)}),a.onHideLinkUnderline(function(e){return l._onHideLinkUnderline(e)}),l}return i(t,e),t.prototype.resize=function(t){e.prototype.resize.call(this,t),this._state=void 0},t.prototype.reset=function(){this._clearCurrentLink()},t.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var e=this._state.y2-this._state.y1-1;e>0&&this._clearCells(0,this._state.y1+1,this._state.cols,e),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},t.prototype._onShowLinkUnderline=function(e){if(e.fg===c.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:e.fg&&(0,p.is256Color)(e.fg)?this._ctx.fillStyle=this._colors.ansi[e.fg].css:this._ctx.fillStyle=this._colors.foreground.css,e.y1===e.y2)this._fillBottomLineAtCells(e.x1,e.y1,e.x2-e.x1);else{this._fillBottomLineAtCells(e.x1,e.y1,e.cols-e.x1);for(var t=e.y1+1;t=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],n=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.Renderer=void 0;var c=o(9596),p=o(4149),l=o(2512),u=o(5098),b=o(844),d=o(4725),M=o(2585),h=o(1420),f=o(8460),z=1,O=function(e){function t(t,o,n,i,r,a,s,b){var d=e.call(this)||this;d._colors=t,d._screenElement=o,d._bufferService=a,d._charSizeService=s,d._optionsService=b,d._id=z++,d._onRequestRedraw=new f.EventEmitter;var M=d._optionsService.rawOptions.allowTransparency;return d._renderLayers=[r.createInstance(c.TextRenderLayer,d._screenElement,0,d._colors,M,d._id),r.createInstance(p.SelectionRenderLayer,d._screenElement,1,d._colors,d._id),r.createInstance(u.LinkRenderLayer,d._screenElement,2,d._colors,d._id,n,i),r.createInstance(l.CursorRenderLayer,d._screenElement,3,d._colors,d._id,d._onRequestRedraw)],d.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},d._devicePixelRatio=window.devicePixelRatio,d._updateDimensions(),d.onOptionsChanged(),d}return i(t,e),Object.defineProperty(t.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){var t,o;try{for(var n=s(this._renderLayers),i=n.next();!i.done;i=n.next())i.value.dispose()}catch(e){t={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(t)throw t.error}}e.prototype.dispose.call(this),(0,h.removeTerminalFromCache)(this._id)},t.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},t.prototype.setColors=function(e){var t,o;this._colors=e;try{for(var n=s(this._renderLayers),i=n.next();!i.done;i=n.next()){var r=i.value;r.setColors(this._colors),r.reset()}}catch(e){t={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(t)throw t.error}}},t.prototype.onResize=function(e,t){var o,n;this._updateDimensions();try{for(var i=s(this._renderLayers),r=i.next();!r.done;r=i.next())r.value.resize(this.dimensions)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},t.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},t.prototype.onBlur=function(){this._runOperation(function(e){return e.onBlur()})},t.prototype.onFocus=function(){this._runOperation(function(e){return e.onFocus()})},t.prototype.onSelectionChanged=function(e,t,o){void 0===o&&(o=!1),this._runOperation(function(n){return n.onSelectionChanged(e,t,o)}),this._colors.selectionForeground&&this._onRequestRedraw.fire({start:0,end:this._bufferService.rows-1})},t.prototype.onCursorMove=function(){this._runOperation(function(e){return e.onCursorMove()})},t.prototype.onOptionsChanged=function(){this._runOperation(function(e){return e.onOptionsChanged()})},t.prototype.clear=function(){this._runOperation(function(e){return e.reset()})},t.prototype._runOperation=function(e){var t,o;try{for(var n=s(this._renderLayers),i=n.next();!i.done;i=n.next())e(i.value)}catch(e){t={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(t)throw t.error}}},t.prototype.renderRows=function(e,t){var o,n;try{for(var i=s(this._renderLayers),r=i.next();!r.done;r=i.next())r.value.onGridChanged(e,t)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}},t.prototype.clearTextureAtlas=function(){var e,t;try{for(var o=s(this._renderLayers),n=o.next();!n.done;n=o.next())n.value.clearTextureAtlas()}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}},t.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.rawOptions.lineHeight),this.dimensions.scaledCharTop=1===this._optionsService.rawOptions.lineHeight?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.rawOptions.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},r([a(4,M.IInstantiationService),a(5,M.IBufferService),a(6,d.ICharSizeService),a(7,M.IOptionsService)],t)}(b.Disposable);t.Renderer=O},1752:(e,t)=>{function o(e){return 57508<=e&&e<=57558}Object.defineProperty(t,"__esModule",{value:!0}),t.excludeFromContrastRatioDemands=t.isPowerlineGlyph=t.throwIfFalsy=void 0,t.throwIfFalsy=function(e){if(!e)throw new Error("value must not be falsy");return e},t.isPowerlineGlyph=o,t.excludeFromContrastRatioDemands=function(e){return o(e)||function(e){return 9472<=e&&e<=9631}(e)}},4149:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionRenderLayer=void 0;var s=o(1546),c=o(2585),p=function(e){function t(t,o,n,i,r,a,s){var c=e.call(this,t,"selection",o,!0,n,i,r,a,s)||this;return c._clearState(),c}return i(t,e),t.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},t.prototype.resize=function(t){e.prototype.resize.call(this,t),this._clearState()},t.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},t.prototype.onSelectionChanged=function(t,o,n){if(e.prototype.onSelectionChanged.call(this,t,o,n),this._didStateChange(t,o,n,this._bufferService.buffer.ydisp))if(this._clearAll(),t&&o){var i=t[1]-this._bufferService.buffer.ydisp,r=o[1]-this._bufferService.buffer.ydisp,a=Math.max(i,0),s=Math.min(r,this._bufferService.rows-1);if(a>=this._bufferService.rows||s<0)this._state.ydisp=this._bufferService.buffer.ydisp;else{if(this._ctx.fillStyle=this._colors.selectionTransparent.css,n){var c=t[0],p=o[0]-c,l=s-a+1;this._fillCells(c,a,p,l)}else{c=i===a?t[0]:0;var u=a===r?o[0]:this._bufferService.cols;this._fillCells(c,a,u-c,1);var b=Math.max(s-a-1,0);if(this._fillCells(0,a+1,this._bufferService.cols,b),a!==s){var d=r===s?o[0]:this._bufferService.cols;this._fillCells(0,s,d,1)}}this._state.start=[t[0],t[1]],this._state.end=[o[0],o[1]],this._state.columnSelectMode=n,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},t.prototype._didStateChange=function(e,t,o,n){return!this._areCoordinatesEqual(e,this._state.start)||!this._areCoordinatesEqual(t,this._state.end)||o!==this._state.columnSelectMode||n!==this._state.ydisp},t.prototype._areCoordinatesEqual=function(e,t){return!(!e||!t)&&e[0]===t[0]&&e[1]===t[1]},r([a(4,c.IBufferService),a(5,c.IOptionsService),a(6,c.IDecorationService)],t)}(s.BaseRenderLayer);t.SelectionRenderLayer=p},9596:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],n=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.TextRenderLayer=void 0;var c=o(3700),p=o(1546),l=o(3734),u=o(643),b=o(511),d=o(2585),M=o(4725),h=o(4269),f=function(e){function t(t,o,n,i,r,a,s,p,l){var u=e.call(this,t,"text",o,i,n,r,a,s,l)||this;return u._characterJoinerService=p,u._characterWidth=0,u._characterFont="",u._characterOverlapCache={},u._workCell=new b.CellData,u._state=new c.GridCache,u}return i(t,e),t.prototype.resize=function(t){e.prototype.resize.call(this,t);var o=this._getFont(!1,!1);this._characterWidth===t.scaledCharWidth&&this._characterFont===o||(this._characterWidth=t.scaledCharWidth,this._characterFont=o,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},t.prototype.reset=function(){this._state.clear(),this._clearAll()},t.prototype._forEachCell=function(e,t,o){for(var n=e;n<=t;n++)for(var i=n+this._bufferService.buffer.ydisp,r=this._bufferService.buffer.lines.get(i),a=this._characterJoinerService.getJoinedCharacters(i),s=0;s0&&s===a[0][0]){p=!0;var b=a.shift();c=new h.JoinedCellData(this._workCell,r.translateToString(!0,b[0],b[1]),b[1]-b[0]),l=b[1]-1}!p&&this._isOverlapping(c)&&lthis._characterWidth;return this._ctx.restore(),this._characterOverlapCache[t]=o,o},r([a(5,d.IBufferService),a(6,d.IOptionsService),a(7,M.ICharacterJoinerService),a(8,d.IDecorationService)],t)}(p.BaseRenderLayer);t.TextRenderLayer=f},9616:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseCharAtlas=void 0;var o=function(){function e(){this._didWarmUp=!1}return e.prototype.dispose=function(){},e.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},e.prototype._doWarmUp=function(){},e.prototype.clear=function(){},e.prototype.beginFrame=function(){},e}();t.BaseCharAtlas=o},1420:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.removeTerminalFromCache=t.acquireCharAtlas=void 0;var n=o(2040),i=o(1906),r=[];t.acquireCharAtlas=function(e,t,o,a,s){for(var c=(0,n.generateConfig)(a,s,e,o),p=0;p=0){if((0,n.configEquals)(u.config,c))return u.atlas;1===u.ownedBy.length?(u.atlas.dispose(),r.splice(p,1)):u.ownedBy.splice(l,1);break}}for(p=0;p{Object.defineProperty(t,"__esModule",{value:!0}),t.is256Color=t.configEquals=t.generateConfig=void 0;var n=o(643);t.generateConfig=function(e,t,o,n){var i={foreground:n.foreground,background:n.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:n.ansi.slice()};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:e,scaledCharHeight:t,fontFamily:o.fontFamily,fontSize:o.fontSize,fontWeight:o.fontWeight,fontWeightBold:o.fontWeightBold,allowTransparency:o.allowTransparency,colors:i}},t.configEquals=function(e,t){for(var o=0;o{Object.defineProperty(t,"__esModule",{value:!0}),t.CHAR_ATLAS_CELL_SPACING=t.TEXT_BASELINE=t.DIM_OPACITY=t.INVERTED_DEFAULT_COLOR=void 0;var n=o(6114);t.INVERTED_DEFAULT_COLOR=257,t.DIM_OPACITY=.5,t.TEXT_BASELINE=n.isFirefox||n.isLegacyEdge?"bottom":"ideographic",t.CHAR_ATLAS_CELL_SPACING=1},1906:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0}),t.NoneCharAtlas=t.DynamicCharAtlas=t.getGlyphCacheKey=void 0;var r=o(8803),a=o(9616),s=o(5680),c=o(7001),p=o(6114),l=o(1752),u=o(8055),b=1024,d=1024,M={css:"rgba(0, 0, 0, 0)",rgba:0};function h(e){return e.code<<21|e.bg<<12|e.fg<<3|(e.bold?0:4)+(e.dim?0:2)+(e.italic?0:1)}t.getGlyphCacheKey=h;var f=function(e){function t(t,o){var n=e.call(this)||this;n._config=o,n._drawToCacheCount=0,n._glyphsWaitingOnBitmap=[],n._bitmapCommitTimeout=null,n._bitmap=null,n._cacheCanvas=t.createElement("canvas"),n._cacheCanvas.width=b,n._cacheCanvas.height=d,n._cacheCtx=(0,l.throwIfFalsy)(n._cacheCanvas.getContext("2d",{alpha:!0}));var i=t.createElement("canvas");i.width=n._config.scaledCharWidth,i.height=n._config.scaledCharHeight,n._tmpCtx=(0,l.throwIfFalsy)(i.getContext("2d",{alpha:n._config.allowTransparency})),n._width=Math.floor(b/n._config.scaledCharWidth),n._height=Math.floor(d/n._config.scaledCharHeight);var r=n._width*n._height;return n._cacheMap=new c.LRUMap(r),n._cacheMap.prealloc(r),n}return i(t,e),t.prototype.dispose=function(){null!==this._bitmapCommitTimeout&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},t.prototype.beginFrame=function(){this._drawToCacheCount=0},t.prototype.clear=function(){if(this._cacheMap.size>0){var e=this._width*this._height;this._cacheMap=new c.LRUMap(e),this._cacheMap.prealloc(e)}this._cacheCtx.clearRect(0,0,b,d),this._tmpCtx.clearRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight)},t.prototype.draw=function(e,t,o,n){if(32===t.code)return!0;if(!this._canCache(t))return!1;var i=h(t),r=this._cacheMap.get(i);if(null!=r)return this._drawFromCache(e,r,o,n),!0;if(this._drawToCacheCount<100){var a;a=this._cacheMap.size>>24,i=t.rgba>>>16&255,r=t.rgba>>>8&255,a=0;a{Object.defineProperty(t,"__esModule",{value:!0}),t.LRUMap=void 0;var o=function(){function e(e){this.capacity=e,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return e.prototype._unlinkNode=function(e){var t=e.prev,o=e.next;e===this._head&&(this._head=o),e===this._tail&&(this._tail=t),null!==t&&(t.next=o),null!==o&&(o.prev=t)},e.prototype._appendNode=function(e){var t=this._tail;null!==t&&(t.next=e),e.prev=t,e.next=null,this._tail=e,null===this._head&&(this._head=e)},e.prototype.prealloc=function(e){for(var t=this._nodePool,o=0;o=this.capacity)o=this._head,this._unlinkNode(o),delete this._map[o.key],o.key=e,o.value=t,this._map[e]=o;else{var n=this._nodePool;n.length>0?((o=n.pop()).key=e,o.value=t):o={prev:null,next:null,key:e,value:t},this._map[e]=o,this.size++}this._appendNode(o)},e}();t.LRUMap=o},1296:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],n=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.DomRenderer=void 0;var c=o(3787),p=o(8803),l=o(844),u=o(4725),b=o(2585),d=o(8460),M=o(8055),h=o(9631),f="xterm-dom-renderer-owner-",z="xterm-fg-",O="xterm-bg-",A="xterm-focus",m=1,v=function(e){function t(t,o,n,i,r,a,s,p,l,u){var b=e.call(this)||this;return b._colors=t,b._element=o,b._screenElement=n,b._viewportElement=i,b._linkifier=r,b._linkifier2=a,b._charSizeService=p,b._optionsService=l,b._bufferService=u,b._terminalClass=m++,b._rowElements=[],b._rowContainer=document.createElement("div"),b._rowContainer.classList.add("xterm-rows"),b._rowContainer.style.lineHeight="normal",b._rowContainer.setAttribute("aria-hidden","true"),b._refreshRowElements(b._bufferService.cols,b._bufferService.rows),b._selectionContainer=document.createElement("div"),b._selectionContainer.classList.add("xterm-selection"),b._selectionContainer.setAttribute("aria-hidden","true"),b.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},b._updateDimensions(),b._injectCss(),b._rowFactory=s.createInstance(c.DomRendererRowFactory,document,b._colors),b._element.classList.add(f+b._terminalClass),b._screenElement.appendChild(b._rowContainer),b._screenElement.appendChild(b._selectionContainer),b.register(b._linkifier.onShowLinkUnderline(function(e){return b._onLinkHover(e)})),b.register(b._linkifier.onHideLinkUnderline(function(e){return b._onLinkLeave(e)})),b.register(b._linkifier2.onShowLinkUnderline(function(e){return b._onLinkHover(e)})),b.register(b._linkifier2.onHideLinkUnderline(function(e){return b._onLinkLeave(e)})),b}return i(t,e),Object.defineProperty(t.prototype,"onRequestRedraw",{get:function(){return(new d.EventEmitter).event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this._element.classList.remove(f+this._terminalClass),(0,h.removeElementFromParent)(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),e.prototype.dispose.call(this)},t.prototype._updateDimensions=function(){var e,t;this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.rawOptions.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;try{for(var o=s(this._rowElements),n=o.next();!n.done;n=o.next()){var i=n.value;i.style.width=this.dimensions.canvasWidth+"px",i.style.height=this.dimensions.actualCellHeight+"px",i.style.lineHeight=this.dimensions.actualCellHeight+"px",i.style.overflow="hidden"}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var r=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.textContent=r,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},t.prototype.setColors=function(e){this._colors=e,this._injectCss()},t.prototype._injectCss=function(){var e=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var t=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.rawOptions.fontFamily+"; font-size: "+this._optionsService.rawOptions.fontSize+"px;}";t+=this._terminalSelector+" span:not(."+c.BOLD_CLASS+") { font-weight: "+this._optionsService.rawOptions.fontWeight+";}"+this._terminalSelector+" span."+c.BOLD_CLASS+" { font-weight: "+this._optionsService.rawOptions.fontWeightBold+";}"+this._terminalSelector+" span."+c.ITALIC_CLASS+" { font-style: italic;}",t+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",t+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",t+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+c.CURSOR_CLASS+"."+c.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+c.CURSOR_CLASS+"."+c.CURSOR_BLINK_CLASS+":not(."+c.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+c.CURSOR_CLASS+"."+c.CURSOR_BLINK_CLASS+"."+c.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+c.CURSOR_CLASS+"."+c.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+c.CURSOR_CLASS+"."+c.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.rawOptions.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+c.CURSOR_CLASS+"."+c.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",t+=this._terminalSelector+" .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" .xterm-selection div { position: absolute; background-color: "+this._colors.selectionOpaque.css+";}",this._colors.ansi.forEach(function(o,n){t+=e._terminalSelector+" ."+z+n+" { color: "+o.css+"; }"+e._terminalSelector+" ."+O+n+" { background-color: "+o.css+"; }"}),t+=this._terminalSelector+" ."+z+p.INVERTED_DEFAULT_COLOR+" { color: "+M.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" ."+O+p.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.textContent=t},t.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},t.prototype._refreshRowElements=function(e,t){for(var o=this._rowElements.length;o<=t;o++){var n=document.createElement("div");this._rowContainer.appendChild(n),this._rowElements.push(n)}for(;this._rowElements.length>t;)this._rowContainer.removeChild(this._rowElements.pop())},t.prototype.onResize=function(e,t){this._refreshRowElements(e,t),this._updateDimensions()},t.prototype.onCharSizeChanged=function(){this._updateDimensions()},t.prototype.onBlur=function(){this._rowContainer.classList.remove(A)},t.prototype.onFocus=function(){this._rowContainer.classList.add(A)},t.prototype.onSelectionChanged=function(e,t,o){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(this._rowFactory.onSelectionChanged(e,t,o),this.renderRows(0,this._bufferService.rows-1),e&&t){var n=e[1]-this._bufferService.buffer.ydisp,i=t[1]-this._bufferService.buffer.ydisp,r=Math.max(n,0),a=Math.min(i,this._bufferService.rows-1);if(!(r>=this._bufferService.rows||a<0)){var s=document.createDocumentFragment();if(o){var c=e[0]>t[0];s.appendChild(this._createSelectionElement(r,c?t[0]:e[0],c?e[0]:t[0],a-r+1))}else{var p=n===r?e[0]:0,l=r===i?t[0]:this._bufferService.cols;s.appendChild(this._createSelectionElement(r,p,l));var u=a-r-1;if(s.appendChild(this._createSelectionElement(r+1,0,this._bufferService.cols,u)),r!==a){var b=i===a?t[0]:this._bufferService.cols;s.appendChild(this._createSelectionElement(a,0,b))}}this._selectionContainer.appendChild(s)}}},t.prototype._createSelectionElement=function(e,t,o,n){void 0===n&&(n=1);var i=document.createElement("div");return i.style.height=n*this.dimensions.actualCellHeight+"px",i.style.top=e*this.dimensions.actualCellHeight+"px",i.style.left=t*this.dimensions.actualCellWidth+"px",i.style.width=this.dimensions.actualCellWidth*(o-t)+"px",i},t.prototype.onCursorMove=function(){},t.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},t.prototype.clear=function(){var e,t;try{for(var o=s(this._rowElements),n=o.next();!n.done;n=o.next())n.value.innerText=""}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}},t.prototype.renderRows=function(e,t){for(var o=this._bufferService.buffer.ybase+this._bufferService.buffer.y,n=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),i=this._optionsService.rawOptions.cursorBlink,r=e;r<=t;r++){var a=this._rowElements[r];a.innerText="";var s=r+this._bufferService.buffer.ydisp,c=this._bufferService.buffer.lines.get(s),p=this._optionsService.rawOptions.cursorStyle;a.appendChild(this._rowFactory.createRow(c,s,s===o,p,n,i,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(t.prototype,"_terminalSelector",{get:function(){return"."+f+this._terminalClass},enumerable:!1,configurable:!0}),t.prototype._onLinkHover=function(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!0)},t.prototype._onLinkLeave=function(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!1)},t.prototype._setCellUnderline=function(e,t,o,n,i,r){for(;e!==t||o!==n;){var a=this._rowElements[o];if(!a)return;var s=a.children[e];s&&(s.style.textDecoration=r?"underline":"none"),++e>=i&&(e=0,o++)}},r([a(6,b.IInstantiationService),a(7,u.ICharSizeService),a(8,b.IOptionsService),a(9,b.IBufferService)],t)}(l.Disposable);t.DomRenderer=v},3787:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}},r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],n=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.DomRendererRowFactory=t.CURSOR_STYLE_UNDERLINE_CLASS=t.CURSOR_STYLE_BAR_CLASS=t.CURSOR_STYLE_BLOCK_CLASS=t.CURSOR_BLINK_CLASS=t.CURSOR_CLASS=t.STRIKETHROUGH_CLASS=t.UNDERLINE_CLASS=t.ITALIC_CLASS=t.DIM_CLASS=t.BOLD_CLASS=void 0;var a=o(8803),s=o(643),c=o(511),p=o(2585),l=o(8055),u=o(4725),b=o(4269),d=o(1752);t.BOLD_CLASS="xterm-bold",t.DIM_CLASS="xterm-dim",t.ITALIC_CLASS="xterm-italic",t.UNDERLINE_CLASS="xterm-underline",t.STRIKETHROUGH_CLASS="xterm-strikethrough",t.CURSOR_CLASS="xterm-cursor",t.CURSOR_BLINK_CLASS="xterm-cursor-blink",t.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",t.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",t.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var M=function(){function e(e,t,o,n,i,r){this._document=e,this._colors=t,this._characterJoinerService=o,this._optionsService=n,this._coreService=i,this._decorationService=r,this._workCell=new c.CellData,this._columnSelectMode=!1}return e.prototype.setColors=function(e){this._colors=e},e.prototype.onSelectionChanged=function(e,t,o){this._selectionStart=e,this._selectionEnd=t,this._columnSelectMode=o},e.prototype.createRow=function(e,o,n,i,c,p,u,d){for(var M,f,z=this._document.createDocumentFragment(),O=this._characterJoinerService.getJoinedCharacters(o),A=0,m=Math.min(e.length,d)-1;m>=0;m--)if(e.loadCell(m,this._workCell).getCode()!==s.NULL_CELL_CODE||n&&m===c){A=m+1;break}for(m=0;m0&&m===O[0][0]){g=!0;var _=O.shift();q=new b.JoinedCellData(this._workCell,e.translateToString(!0,_[0],_[1]),_[1]-_[0]),y=_[1]-1,v=q.getWidth()}var W=this._document.createElement("span");if(v>1&&(W.style.width=u*v+"px"),g&&(W.style.display="inline",c>=m&&c<=y&&(c=m)),!this._coreService.isCursorHidden&&n&&m===c)switch(W.classList.add(t.CURSOR_CLASS),p&&W.classList.add(t.CURSOR_BLINK_CLASS),i){case"bar":W.classList.add(t.CURSOR_STYLE_BAR_CLASS);break;case"underline":W.classList.add(t.CURSOR_STYLE_UNDERLINE_CLASS);break;default:W.classList.add(t.CURSOR_STYLE_BLOCK_CLASS)}q.isBold()&&W.classList.add(t.BOLD_CLASS),q.isItalic()&&W.classList.add(t.ITALIC_CLASS),q.isDim()&&W.classList.add(t.DIM_CLASS),q.isUnderline()&&W.classList.add(t.UNDERLINE_CLASS),q.isInvisible()?W.textContent=s.WHITESPACE_CELL_CHAR:W.textContent=q.getChars()||s.WHITESPACE_CELL_CHAR,q.isStrikethrough()&&W.classList.add(t.STRIKETHROUGH_CLASS);var R=q.getFgColor(),w=q.getFgColorMode(),L=q.getBgColor(),C=q.getBgColorMode(),S=!!q.isInverse();if(S){var E=R;R=L,L=E;var T=w;w=C,C=T}var x=void 0,N=void 0,B=!1;try{for(var k=(M=void 0,r(this._decorationService.getDecorationsAtCell(m,o))),P=k.next();!P.done;P=k.next()){var D=P.value;"top"!==D.options.layer&&B||(D.backgroundColorRGB&&(C=50331648,L=D.backgroundColorRGB.rgba>>8&16777215,x=D.backgroundColorRGB),D.foregroundColorRGB&&(w=50331648,R=D.foregroundColorRGB.rgba>>8&16777215,N=D.foregroundColorRGB),B="top"===D.options.layer)}}catch(e){M={error:e}}finally{try{P&&!P.done&&(f=k.return)&&f.call(k)}finally{if(M)throw M.error}}var I=this._isCellInSelection(m,o);B||this._colors.selectionForeground&&I&&(w=50331648,R=this._colors.selectionForeground.rgba>>8&16777215,N=this._colors.selectionForeground),I&&(x=this._colors.selectionOpaque,B=!0),B&&W.classList.add("xterm-decoration-top");var X=void 0;switch(C){case 16777216:case 33554432:X=this._colors.ansi[L],W.classList.add("xterm-bg-"+L);break;case 50331648:X=l.rgba.toColor(L>>16,L>>8&255,255&L),this._addStyle(W,"background-color:#"+h((L>>>0).toString(16),"0",6));break;default:S?(X=this._colors.foreground,W.classList.add("xterm-bg-"+a.INVERTED_DEFAULT_COLOR)):X=this._colors.background}switch(w){case 16777216:case 33554432:q.isBold()&&R<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(R+=8),this._applyMinimumContrast(W,X,this._colors.ansi[R],q,x,void 0)||W.classList.add("xterm-fg-"+R);break;case 50331648:var j=l.rgba.toColor(R>>16&255,R>>8&255,255&R);this._applyMinimumContrast(W,X,j,q,x,N)||this._addStyle(W,"color:#"+h(R.toString(16),"0",6));break;default:this._applyMinimumContrast(W,X,this._colors.foreground,q,x,void 0)||S&&W.classList.add("xterm-fg-"+a.INVERTED_DEFAULT_COLOR)}z.appendChild(W),m=y}}return z},e.prototype._applyMinimumContrast=function(e,t,o,n,i,r){if(1===this._optionsService.rawOptions.minimumContrastRatio||(0,d.excludeFromContrastRatioDemands)(n.getCode()))return!1;var a=void 0;return i||r||(a=this._colors.contrastCache.getColor(t.rgba,o.rgba)),void 0===a&&(a=l.color.ensureContrastRatio(i||t,r||o,this._optionsService.rawOptions.minimumContrastRatio),this._colors.contrastCache.setColor((i||t).rgba,(r||o).rgba,null!=a?a:null)),!!a&&(this._addStyle(e,"color:"+a.css),!0)},e.prototype._addStyle=function(e,t){e.setAttribute("style",""+(e.getAttribute("style")||"")+t+";")},e.prototype._isCellInSelection=function(e,t){var o=this._selectionStart,n=this._selectionEnd;return!(!o||!n)&&(this._columnSelectMode?o[0]<=n[0]?e>=o[0]&&t>=o[1]&&e=o[1]&&e>=n[0]&&t<=n[1]:t>o[1]&&t=o[0]&&e=o[0])},n([i(2,u.ICharacterJoinerService),i(3,p.IOptionsService),i(4,p.ICoreService),i(5,p.IDecorationService)],e)}();function h(e,t,o){for(;e.length{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionModel=void 0;var o=function(){function e(e){this._bufferService=e,this.isSelectAllActive=!1,this.selectionStartLength=0}return e.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(e.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"finalSelectionEnd",{get:function(){return this.isSelectAllActive?[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1]:this.selectionStart?!this.selectionEnd||this.areSelectionValuesReversed()?(e=this.selectionStart[0]+this.selectionStartLength)>this._bufferService.cols?e%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)-1]:[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[e,this.selectionStart[1]]:this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?(e=this.selectionStart[0]+this.selectionStartLength)>this._bufferService.cols?[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[Math.max(e,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd:void 0;var e},enumerable:!1,configurable:!0}),e.prototype.areSelectionValuesReversed=function(){var e=this.selectionStart,t=this.selectionEnd;return!(!e||!t)&&(e[1]>t[1]||e[1]===t[1]&&e[0]>t[0])},e.prototype.onTrim=function(e){return this.selectionStart&&(this.selectionStart[1]-=e),this.selectionEnd&&(this.selectionEnd[1]-=e),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},e}();t.SelectionModel=o},428:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharSizeService=void 0;var r=o(2585),a=o(8460),s=function(){function e(e,t,o){this._optionsService=o,this.width=0,this.height=0,this._onCharSizeChange=new a.EventEmitter,this._measureStrategy=new c(e,t,this._optionsService)}return Object.defineProperty(e.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),e.prototype.measure=function(){var e=this._measureStrategy.measure();e.width===this.width&&e.height===this.height||(this.width=e.width,this.height=e.height,this._onCharSizeChange.fire())},n([i(2,r.IOptionsService)],e)}();t.CharSizeService=s;var c=function(){function e(e,t,o){this._document=e,this._parentElement=t,this._optionsService=o,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return e.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var e=this._measureElement.getBoundingClientRect();return 0!==e.width&&0!==e.height&&(this._result.width=e.width,this._result.height=Math.ceil(e.height)),this._result},e}()},4269:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharacterJoinerService=t.JoinedCellData=void 0;var s=o(3734),c=o(643),p=o(511),l=o(2585),u=function(e){function t(t,o,n){var i=e.call(this)||this;return i.content=0,i.combinedData="",i.fg=t.fg,i.bg=t.bg,i.combinedData=o,i._width=n,i}return i(t,e),t.prototype.isCombined=function(){return 2097152},t.prototype.getWidth=function(){return this._width},t.prototype.getChars=function(){return this.combinedData},t.prototype.getCode=function(){return 2097151},t.prototype.setFromCharData=function(e){throw new Error("not implemented")},t.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},t}(s.AttributeData);t.JoinedCellData=u;var b=function(){function e(e){this._bufferService=e,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new p.CellData}return e.prototype.register=function(e){var t={id:this._nextCharacterJoinerId++,handler:e};return this._characterJoiners.push(t),t.id},e.prototype.deregister=function(e){for(var t=0;t1)for(var u=this._getJoinedRanges(n,a,r,t,i),b=0;b1)for(u=this._getJoinedRanges(n,a,r,t,i),b=0;b{Object.defineProperty(t,"__esModule",{value:!0}),t.CoreBrowserService=void 0;var o=function(){function e(e){this._textarea=e}return Object.defineProperty(e.prototype,"isFocused",{get:function(){return(this._textarea.getRootNode?this._textarea.getRootNode():document).activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),e}();t.CoreBrowserService=o},8934:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseService=void 0;var r=o(4725),a=o(9806),s=function(){function e(e,t){this._renderService=e,this._charSizeService=t}return e.prototype.getCoords=function(e,t,o,n,i){return(0,a.getCoords)(window,e,t,o,n,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,i)},e.prototype.getRawByteCoords=function(e,t,o,n){var i=this.getCoords(e,t,o,n);return(0,a.getRawByteCoords)(i)},n([i(0,r.IRenderService),i(1,r.ICharSizeService)],e)}();t.MouseService=s},3230:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenderService=void 0;var s=o(6193),c=o(8460),p=o(844),l=o(5596),u=o(3656),b=o(2585),d=o(4725),M=function(e){function t(t,o,n,i,r,a,p){var b=e.call(this)||this;if(b._renderer=t,b._rowCount=o,b._charSizeService=r,b._isPaused=!1,b._needsFullRefresh=!1,b._isNextRenderRedrawOnly=!0,b._needsSelectionRefresh=!1,b._canvasWidth=0,b._canvasHeight=0,b._selectionState={start:void 0,end:void 0,columnSelectMode:!1},b._onDimensionsChange=new c.EventEmitter,b._onRenderedViewportChange=new c.EventEmitter,b._onRender=new c.EventEmitter,b._onRefreshRequest=new c.EventEmitter,b.register({dispose:function(){return b._renderer.dispose()}}),b._renderDebouncer=new s.RenderDebouncer(function(e,t){return b._renderRows(e,t)}),b.register(b._renderDebouncer),b._screenDprMonitor=new l.ScreenDprMonitor,b._screenDprMonitor.setListener(function(){return b.onDevicePixelRatioChange()}),b.register(b._screenDprMonitor),b.register(p.onResize(function(){return b._fullRefresh()})),b.register(p.buffers.onBufferActivate(function(){var e;return null===(e=b._renderer)||void 0===e?void 0:e.clear()})),b.register(i.onOptionChange(function(){return b._handleOptionsChanged()})),b.register(b._charSizeService.onCharSizeChange(function(){return b.onCharSizeChanged()})),b.register(a.onDecorationRegistered(function(){return b._fullRefresh()})),b.register(a.onDecorationRemoved(function(){return b._fullRefresh()})),b._renderer.onRequestRedraw(function(e){return b.refreshRows(e.start,e.end,!0)}),b.register((0,u.addDisposableDomListener)(window,"resize",function(){return b.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var d=new IntersectionObserver(function(e){return b._onIntersectionChange(e[e.length-1])},{threshold:0});d.observe(n),b.register({dispose:function(){return d.disconnect()}})}return b}return i(t,e),Object.defineProperty(t.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRenderedViewportChange",{get:function(){return this._onRenderedViewportChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),t.prototype._onIntersectionChange=function(e){this._isPaused=void 0===e.isIntersecting?0===e.intersectionRatio:!e.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},t.prototype.refreshRows=function(e,t,o){void 0===o&&(o=!1),this._isPaused?this._needsFullRefresh=!0:(o||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(e,t,this._rowCount))},t.prototype._renderRows=function(e,t){this._renderer.renderRows(e,t),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:e,end:t}),this._onRender.fire({start:e,end:t}),this._isNextRenderRedrawOnly=!0},t.prototype.resize=function(e,t){this._rowCount=t,this._fireOnCanvasResize()},t.prototype._handleOptionsChanged=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},t.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.setRenderer=function(e){var t=this;this._renderer.dispose(),this._renderer=e,this._renderer.onRequestRedraw(function(e){return t.refreshRows(e.start,e.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},t.prototype.addRefreshCallback=function(e){return this._renderDebouncer.addRefreshCallback(e)},t.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},t.prototype.clearTextureAtlas=function(){var e,t;null===(t=null===(e=this._renderer)||void 0===e?void 0:e.clearTextureAtlas)||void 0===t||t.call(e),this._fullRefresh()},t.prototype.setColors=function(e){this._renderer.setColors(e),this._fullRefresh()},t.prototype.onDevicePixelRatioChange=function(){this._charSizeService.measure(),this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},t.prototype.onResize=function(e,t){this._renderer.onResize(e,t),this._fullRefresh()},t.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},t.prototype.onBlur=function(){this._renderer.onBlur()},t.prototype.onFocus=function(){this._renderer.onFocus()},t.prototype.onSelectionChanged=function(e,t,o){this._selectionState.start=e,this._selectionState.end=t,this._selectionState.columnSelectMode=o,this._renderer.onSelectionChanged(e,t,o)},t.prototype.onCursorMove=function(){this._renderer.onCursorMove()},t.prototype.clear=function(){this._renderer.clear()},r([a(3,b.IOptionsService),a(4,d.ICharSizeService),a(5,b.IDecorationService),a(6,b.IBufferService)],t)}(p.Disposable);t.RenderService=M},9312:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionService=void 0;var s=o(6114),c=o(456),p=o(511),l=o(8460),u=o(4725),b=o(2585),d=o(9806),M=o(9504),h=o(844),f=o(4841),z=String.fromCharCode(160),O=new RegExp(z,"g"),A=function(e){function t(t,o,n,i,r,a,s,u){var b=e.call(this)||this;return b._element=t,b._screenElement=o,b._linkifier=n,b._bufferService=i,b._coreService=r,b._mouseService=a,b._optionsService=s,b._renderService=u,b._dragScrollAmount=0,b._enabled=!0,b._workCell=new p.CellData,b._mouseDownTimeStamp=0,b._oldHasSelection=!1,b._oldSelectionStart=void 0,b._oldSelectionEnd=void 0,b._onLinuxMouseSelection=b.register(new l.EventEmitter),b._onRedrawRequest=b.register(new l.EventEmitter),b._onSelectionChange=b.register(new l.EventEmitter),b._onRequestScrollLines=b.register(new l.EventEmitter),b._mouseMoveListener=function(e){return b._onMouseMove(e)},b._mouseUpListener=function(e){return b._onMouseUp(e)},b._coreService.onUserInput(function(){b.hasSelection&&b.clearSelection()}),b._trimListener=b._bufferService.buffer.lines.onTrim(function(e){return b._onTrim(e)}),b.register(b._bufferService.buffers.onBufferActivate(function(e){return b._onBufferActivate(e)})),b.enable(),b._model=new c.SelectionModel(b._bufferService),b._activeSelectionMode=0,b}return i(t,e),Object.defineProperty(t.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this._removeMouseDownListeners()},t.prototype.reset=function(){this.clearSelection()},t.prototype.disable=function(){this.clearSelection(),this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSelection",{get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;return!(!e||!t||e[0]===t[0]&&e[1]===t[1])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionText",{get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;if(!e||!t)return"";var o=this._bufferService.buffer,n=[];if(3===this._activeSelectionMode){if(e[0]===t[0])return"";for(var i=e[0]t[1]&&e[1]=t[0]&&e[0]=t[0]},t.prototype._selectWordAtCursor=function(e,t){var o,n,i=null===(n=null===(o=this._linkifier.currentLink)||void 0===o?void 0:o.link)||void 0===n?void 0:n.range;if(i)return this._model.selectionStart=[i.start.x-1,i.start.y-1],this._model.selectionStartLength=(0,f.getRangeLength)(i,this._bufferService.cols),this._model.selectionEnd=void 0,!0;var r=this._getMouseBufferCoords(e);return!!r&&(this._selectWordAt(r,t),this._model.selectionEnd=void 0,!0)},t.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},t.prototype.selectLines=function(e,t){this._model.clearSelection(),e=Math.max(e,0),t=Math.min(t,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,e],this._model.selectionEnd=[this._bufferService.cols,t],this.refresh(),this._onSelectionChange.fire()},t.prototype._onTrim=function(e){this._model.onTrim(e)&&this.refresh()},t.prototype._getMouseBufferCoords=function(e){var t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(t)return t[0]--,t[1]--,t[1]+=this._bufferService.buffer.ydisp,t},t.prototype._getMouseEventScrollAmount=function(e){var t=(0,d.getCoordsRelativeToElement)(window,e,this._screenElement)[1],o=this._renderService.dimensions.canvasHeight;return t>=0&&t<=o?0:(t>o&&(t-=o),t=Math.min(Math.max(t,-50),50),(t/=50)/Math.abs(t)+Math.round(14*t))},t.prototype.shouldForceSelection=function(e){return s.isMac?e.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:e.shiftKey},t.prototype.onMouseDown=function(e){if(this._mouseDownTimeStamp=e.timeStamp,(2!==e.button||!this.hasSelection)&&0===e.button){if(!this._enabled){if(!this.shouldForceSelection(e))return;e.stopPropagation()}e.preventDefault(),this._dragScrollAmount=0,this._enabled&&e.shiftKey?this._onIncrementalClick(e):1===e.detail?this._onSingleClick(e):2===e.detail?this._onDoubleClick(e):3===e.detail&&this._onTripleClick(e),this._addMouseDownListeners(),this.refresh(!0)}},t.prototype._addMouseDownListeners=function(){var e=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return e._dragScroll()},50)},t.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},t.prototype._onIncrementalClick=function(e){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(e))},t.prototype._onSingleClick=function(e){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(e)?3:0,this._model.selectionStart=this._getMouseBufferCoords(e),this._model.selectionStart){this._model.selectionEnd=void 0;var t=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);t&&t.length!==this._model.selectionStart[0]&&0===t.hasWidth(this._model.selectionStart[0])&&this._model.selectionStart[0]++}},t.prototype._onDoubleClick=function(e){this._selectWordAtCursor(e,!0)&&(this._activeSelectionMode=1)},t.prototype._onTripleClick=function(e){var t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=2,this._selectLineAt(t[1]))},t.prototype.shouldColumnSelect=function(e){return e.altKey&&!(s.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)},t.prototype._onMouseMove=function(e){if(e.stopImmediatePropagation(),this._model.selectionStart){var t=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(e),this._model.selectionEnd){2===this._activeSelectionMode?this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var o=this._bufferService.buffer;if(this._model.selectionEnd[1]0?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(e.ydisp+this._bufferService.rows,e.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=e.ydisp),this.refresh()}},t.prototype._onMouseUp=function(e){var t=e.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&t<500&&e.altKey&&this._optionsService.getOption("altClickMovesCursor")){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var o=this._mouseService.getCoords(e,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(o&&void 0!==o[0]&&void 0!==o[1]){var n=(0,M.moveToCellSequence)(o[0]-1,o[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(n,!0)}}}else this._fireEventIfSelectionChanged()},t.prototype._fireEventIfSelectionChanged=function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd,o=!(!e||!t||e[0]===t[0]&&e[1]===t[1]);o?e&&t&&(this._oldSelectionStart&&this._oldSelectionEnd&&e[0]===this._oldSelectionStart[0]&&e[1]===this._oldSelectionStart[1]&&t[0]===this._oldSelectionEnd[0]&&t[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(e,t,o)):this._oldHasSelection&&this._fireOnSelectionChange(e,t,o)},t.prototype._fireOnSelectionChange=function(e,t,o){this._oldSelectionStart=e,this._oldSelectionEnd=t,this._oldHasSelection=o,this._onSelectionChange.fire()},t.prototype._onBufferActivate=function(e){var t=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=e.activeBuffer.lines.onTrim(function(e){return t._onTrim(e)})},t.prototype._convertViewportColToCharacterIndex=function(e,t){for(var o=t[0],n=0;t[0]>=n;n++){var i=e.loadCell(n,this._workCell).getChars().length;0===this._workCell.getWidth()?o--:i>1&&t[0]!==n&&(o+=i-1)}return o},t.prototype.setSelection=function(e,t,o){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=o,this.refresh(),this._fireEventIfSelectionChanged()},t.prototype.rightClickSelect=function(e){this._isClickInSelection(e)||(this._selectWordAtCursor(e,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())},t.prototype._getWordAt=function(e,t,o,n){if(void 0===o&&(o=!0),void 0===n&&(n=!0),!(e[0]>=this._bufferService.cols)){var i=this._bufferService.buffer,r=i.lines.get(e[1]);if(r){var a=i.translateBufferLineToString(e[1],!1),s=this._convertViewportColToCharacterIndex(r,e),c=s,p=e[0]-s,l=0,u=0,b=0,d=0;if(" "===a.charAt(s)){for(;s>0&&" "===a.charAt(s-1);)s--;for(;c1&&(d+=f-1,c+=f-1);M>0&&s>0&&!this._isCharWordSeparator(r.loadCell(M-1,this._workCell));){r.loadCell(M-1,this._workCell);var z=this._workCell.getChars().length;0===this._workCell.getWidth()?(l++,M--):z>1&&(b+=z-1,s-=z-1),s--,M--}for(;h1&&(d+=O-1,c+=O-1),c++,h++}}c++;var A=s+p-l+b,m=Math.min(this._bufferService.cols,c-s+l+u-b-d);if(t||""!==a.slice(s,c).trim()){if(o&&0===A&&32!==r.getCodePoint(0)){var v=i.lines.get(e[1]-1);if(v&&r.isWrapped&&32!==v.getCodePoint(this._bufferService.cols-1)){var g=this._getWordAt([this._bufferService.cols-1,e[1]-1],!1,!0,!1);if(g){var y=this._bufferService.cols-g.start;A-=y,m+=y}}}if(n&&A+m===this._bufferService.cols&&32!==r.getCodePoint(this._bufferService.cols-1)){var q=i.lines.get(e[1]+1);if((null==q?void 0:q.isWrapped)&&32!==q.getCodePoint(0)){var _=this._getWordAt([0,e[1]+1],!1,!1,!0);_&&(m+=_.length)}}return{start:A,length:m}}}}},t.prototype._selectWordAt=function(e,t){var o=this._getWordAt(e,t);if(o){for(;o.start<0;)o.start+=this._bufferService.cols,e[1]--;this._model.selectionStart=[o.start,e[1]],this._model.selectionStartLength=o.length}},t.prototype._selectToWordAt=function(e){var t=this._getWordAt(e,!0);if(t){for(var o=e[1];t.start<0;)t.start+=this._bufferService.cols,o--;if(!this._model.areSelectionValuesReversed())for(;t.start+t.length>this._bufferService.cols;)t.length-=this._bufferService.cols,o++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?t.start:t.start+t.length,o]}},t.prototype._isCharWordSeparator=function(e){return 0!==e.getWidth()&&this._optionsService.rawOptions.wordSeparator.indexOf(e.getChars())>=0},t.prototype._selectLineAt=function(e){var t=this._bufferService.buffer.getWrappedRangeForLine(e),o={start:{x:0,y:t.first},end:{x:this._bufferService.cols-1,y:t.last}};this._model.selectionStart=[0,t.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,f.getRangeLength)(o,this._bufferService.cols)},r([a(3,b.IBufferService),a(4,b.ICoreService),a(5,u.IMouseService),a(6,b.IOptionsService),a(7,u.IRenderService)],t)}(h.Disposable);t.SelectionService=A},4725:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ICharacterJoinerService=t.ISoundService=t.ISelectionService=t.IRenderService=t.IMouseService=t.ICoreBrowserService=t.ICharSizeService=void 0;var n=o(8343);t.ICharSizeService=(0,n.createDecorator)("CharSizeService"),t.ICoreBrowserService=(0,n.createDecorator)("CoreBrowserService"),t.IMouseService=(0,n.createDecorator)("MouseService"),t.IRenderService=(0,n.createDecorator)("RenderService"),t.ISelectionService=(0,n.createDecorator)("SelectionService"),t.ISoundService=(0,n.createDecorator)("SoundService"),t.ICharacterJoinerService=(0,n.createDecorator)("CharacterJoinerService")},357:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SoundService=void 0;var r=o(2585),a=function(){function e(e){this._optionsService=e}return Object.defineProperty(e,"audioContext",{get:function(){if(!e._audioContext){var t=window.AudioContext||window.webkitAudioContext;if(!t)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;e._audioContext=new t}return e._audioContext},enumerable:!1,configurable:!0}),e.prototype.playBellSound=function(){var t=e.audioContext;if(t){var o=t.createBufferSource();t.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.rawOptions.bellSound)),function(e){o.buffer=e,o.connect(t.destination),o.start(0)})}},e.prototype._base64ToArrayBuffer=function(e){for(var t=window.atob(e),o=t.length,n=new Uint8Array(o),i=0;i{Object.defineProperty(t,"__esModule",{value:!0}),t.CircularList=void 0;var n=o(8460),i=function(){function e(e){this._maxLength=e,this.onDeleteEmitter=new n.EventEmitter,this.onInsertEmitter=new n.EventEmitter,this.onTrimEmitter=new n.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(e.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxLength",{get:function(){return this._maxLength},set:function(e){if(this._maxLength!==e){for(var t=new Array(e),o=0;othis._length)for(var t=this._length;t=e;i--)this._array[this._getCyclicIndex(i+o.length)]=this._array[this._getCyclicIndex(i)];for(i=0;ithis._maxLength){var r=this._length+o.length-this._maxLength;this._startIndex+=r,this._length=this._maxLength,this.onTrimEmitter.fire(r)}else this._length+=o.length},e.prototype.trimStart=function(e){e>this._length&&(e=this._length),this._startIndex+=e,this._length-=e,this.onTrimEmitter.fire(e)},e.prototype.shiftElements=function(e,t,o){if(!(t<=0)){if(e<0||e>=this._length)throw new Error("start argument out of range");if(e+o<0)throw new Error("Cannot shift elements in list beyond index 0");if(o>0){for(var n=t-1;n>=0;n--)this.set(e+n+o,this.get(e+n));var i=e+t+o-this._length;if(i>0)for(this._length+=i;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(n=0;n{Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function e(t,o){if(void 0===o&&(o=5),"object"!=typeof t)return t;var n=Array.isArray(t)?[]:{};for(var i in t)n[i]=o<=1?t[i]:t[i]&&e(t[i],o-1);return n}},8055:function(e,t){var o,n,i,r,a=this&&this.__read||function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var n,i,r=o.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a};function s(e){var t=e.toString(16);return t.length<2?"0"+t:t}function c(e,t){return e>>0}}(o=t.channels||(t.channels={})),(n=t.color||(t.color={})).blend=function(e,t){var n=(255&t.rgba)/255;if(1===n)return{css:t.css,rgba:t.rgba};var i=t.rgba>>24&255,r=t.rgba>>16&255,a=t.rgba>>8&255,s=e.rgba>>24&255,c=e.rgba>>16&255,p=e.rgba>>8&255,l=s+Math.round((i-s)*n),u=c+Math.round((r-c)*n),b=p+Math.round((a-p)*n);return{css:o.toCss(l,u,b),rgba:o.toRgba(l,u,b)}},n.isOpaque=function(e){return 255==(255&e.rgba)},n.ensureContrastRatio=function(e,t,o){var n=r.ensureContrastRatio(e.rgba,t.rgba,o);if(n)return r.toColor(n>>24&255,n>>16&255,n>>8&255)},n.opaque=function(e){var t=(255|e.rgba)>>>0,n=a(r.toChannels(t),3),i=n[0],s=n[1],c=n[2];return{css:o.toCss(i,s,c),rgba:t}},n.opacity=function(e,t){var n=Math.round(255*t),i=a(r.toChannels(e.rgba),3),s=i[0],c=i[1],p=i[2];return{css:o.toCss(s,c,p,n),rgba:o.toRgba(s,c,p,n)}},n.toColorRGB=function(e){return[e.rgba>>24&255,e.rgba>>16&255,e.rgba>>8&255]},(t.css||(t.css={})).toColor=function(e){if(e.match(/#[0-9a-f]{3,8}/i))switch(e.length){case 4:var t=parseInt(e.slice(1,2).repeat(2),16),o=parseInt(e.slice(2,3).repeat(2),16),n=parseInt(e.slice(3,4).repeat(2),16);return r.toColor(t,o,n);case 5:t=parseInt(e.slice(1,2).repeat(2),16),o=parseInt(e.slice(2,3).repeat(2),16),n=parseInt(e.slice(3,4).repeat(2),16);var i=parseInt(e.slice(4,5).repeat(2),16);return r.toColor(t,o,n,i);case 7:return{css:e,rgba:(parseInt(e.slice(1),16)<<8|255)>>>0};case 9:return{css:e,rgba:parseInt(e.slice(1),16)>>>0}}var a=e.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(a)return t=parseInt(a[1]),o=parseInt(a[2]),n=parseInt(a[3]),i=Math.round(255*(void 0===a[5]?1:parseFloat(a[5]))),r.toColor(t,o,n,i);throw new Error("css.toColor: Unsupported css format")},function(e){function t(e,t,o){var n=e/255,i=t/255,r=o/255;return.2126*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.7152*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))}e.relativeLuminance=function(e){return t(e>>16&255,e>>8&255,255&e)},e.relativeLuminance2=t}(i=t.rgb||(t.rgb={})),function(e){function t(e,t,o){for(var n=e>>24&255,r=e>>16&255,a=e>>8&255,s=t>>24&255,p=t>>16&255,l=t>>8&255,u=c(i.relativeLuminance2(s,p,l),i.relativeLuminance2(n,r,a));u0||p>0||l>0);)s-=Math.max(0,Math.ceil(.1*s)),p-=Math.max(0,Math.ceil(.1*p)),l-=Math.max(0,Math.ceil(.1*l)),u=c(i.relativeLuminance2(s,p,l),i.relativeLuminance2(n,r,a));return(s<<24|p<<16|l<<8|255)>>>0}function n(e,t,o){for(var n=e>>24&255,r=e>>16&255,a=e>>8&255,s=t>>24&255,p=t>>16&255,l=t>>8&255,u=c(i.relativeLuminance2(s,p,l),i.relativeLuminance2(n,r,a));u>>0}e.ensureContrastRatio=function(e,o,r){var a=i.relativeLuminance(e>>8),s=i.relativeLuminance(o>>8);if(c(a,s)>8));if(lc(a,i.relativeLuminance(u>>8))?p:u}return p}var b=n(e,o,r),d=c(a,i.relativeLuminance(b>>8));return dc(a,i.relativeLuminance(u>>8))?b:u):b}},e.reduceLuminance=t,e.increaseLuminance=n,e.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},e.toColor=function(e,t,n,i){return{css:o.toCss(e,t,n,i),rgba:o.toRgba(e,t,n,i)}}}(r=t.rgba||(t.rgba={})),t.toPaddedHex=s,t.contrastRatio=c},8969:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],n=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreTerminal=void 0;var a=o(844),s=o(2585),c=o(4348),p=o(7866),l=o(744),u=o(7302),b=o(6975),d=o(8460),M=o(1753),h=o(3730),f=o(1480),z=o(7994),O=o(9282),A=o(5435),m=o(5981),v=!1,g=function(e){function t(t){var o=e.call(this)||this;return o._onBinary=new d.EventEmitter,o._onData=new d.EventEmitter,o._onLineFeed=new d.EventEmitter,o._onResize=new d.EventEmitter,o._onScroll=new d.EventEmitter,o._onWriteParsed=new d.EventEmitter,o._instantiationService=new c.InstantiationService,o.optionsService=new u.OptionsService(t),o._instantiationService.setService(s.IOptionsService,o.optionsService),o._bufferService=o.register(o._instantiationService.createInstance(l.BufferService)),o._instantiationService.setService(s.IBufferService,o._bufferService),o._logService=o._instantiationService.createInstance(p.LogService),o._instantiationService.setService(s.ILogService,o._logService),o.coreService=o.register(o._instantiationService.createInstance(b.CoreService,function(){return o.scrollToBottom()})),o._instantiationService.setService(s.ICoreService,o.coreService),o.coreMouseService=o._instantiationService.createInstance(M.CoreMouseService),o._instantiationService.setService(s.ICoreMouseService,o.coreMouseService),o._dirtyRowService=o._instantiationService.createInstance(h.DirtyRowService),o._instantiationService.setService(s.IDirtyRowService,o._dirtyRowService),o.unicodeService=o._instantiationService.createInstance(f.UnicodeService),o._instantiationService.setService(s.IUnicodeService,o.unicodeService),o._charsetService=o._instantiationService.createInstance(z.CharsetService),o._instantiationService.setService(s.ICharsetService,o._charsetService),o._inputHandler=new A.InputHandler(o._bufferService,o._charsetService,o.coreService,o._dirtyRowService,o._logService,o.optionsService,o.coreMouseService,o.unicodeService),o.register((0,d.forwardEvent)(o._inputHandler.onLineFeed,o._onLineFeed)),o.register(o._inputHandler),o.register((0,d.forwardEvent)(o._bufferService.onResize,o._onResize)),o.register((0,d.forwardEvent)(o.coreService.onData,o._onData)),o.register((0,d.forwardEvent)(o.coreService.onBinary,o._onBinary)),o.register(o.optionsService.onOptionChange(function(e){return o._updateOptions(e)})),o.register(o._bufferService.onScroll(function(e){o._onScroll.fire({position:o._bufferService.buffer.ydisp,source:0}),o._dirtyRowService.markRangeDirty(o._bufferService.buffer.scrollTop,o._bufferService.buffer.scrollBottom)})),o.register(o._inputHandler.onScroll(function(e){o._onScroll.fire({position:o._bufferService.buffer.ydisp,source:0}),o._dirtyRowService.markRangeDirty(o._bufferService.buffer.scrollTop,o._bufferService.buffer.scrollBottom)})),o._writeBuffer=new m.WriteBuffer(function(e,t){return o._inputHandler.parse(e,t)}),o.register((0,d.forwardEvent)(o._writeBuffer.onWriteParsed,o._onWriteParsed)),o}return i(t,e),Object.defineProperty(t.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onWriteParsed",{get:function(){return this._onWriteParsed.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onScroll",{get:function(){var e=this;return this._onScrollApi||(this._onScrollApi=new d.EventEmitter,this.register(this._onScroll.event(function(t){var o;null===(o=e._onScrollApi)||void 0===o||o.fire(t.position)}))),this._onScrollApi.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return this.optionsService.options},set:function(e){for(var t in e)this.optionsService.options[t]=e[t]},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){var t;this._isDisposed||(e.prototype.dispose.call(this),null===(t=this._windowsMode)||void 0===t||t.dispose(),this._windowsMode=void 0)},t.prototype.write=function(e,t){this._writeBuffer.write(e,t)},t.prototype.writeSync=function(e,t){this._logService.logLevel<=s.LogLevelEnum.WARN&&!v&&(this._logService.warn("writeSync is unreliable and will be removed soon."),v=!0),this._writeBuffer.writeSync(e,t)},t.prototype.resize=function(e,t){isNaN(e)||isNaN(t)||(e=Math.max(e,l.MINIMUM_COLS),t=Math.max(t,l.MINIMUM_ROWS),this._bufferService.resize(e,t))},t.prototype.scroll=function(e,t){void 0===t&&(t=!1),this._bufferService.scroll(e,t)},t.prototype.scrollLines=function(e,t,o){this._bufferService.scrollLines(e,t,o)},t.prototype.scrollPages=function(e){this._bufferService.scrollPages(e)},t.prototype.scrollToTop=function(){this._bufferService.scrollToTop()},t.prototype.scrollToBottom=function(){this._bufferService.scrollToBottom()},t.prototype.scrollToLine=function(e){this._bufferService.scrollToLine(e)},t.prototype.registerEscHandler=function(e,t){return this._inputHandler.registerEscHandler(e,t)},t.prototype.registerDcsHandler=function(e,t){return this._inputHandler.registerDcsHandler(e,t)},t.prototype.registerCsiHandler=function(e,t){return this._inputHandler.registerCsiHandler(e,t)},t.prototype.registerOscHandler=function(e,t){return this._inputHandler.registerOscHandler(e,t)},t.prototype._setup=function(){this.optionsService.rawOptions.windowsMode&&this._enableWindowsMode()},t.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()},t.prototype._updateOptions=function(e){var t;switch(e){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.rawOptions.windowsMode?this._enableWindowsMode():(null===(t=this._windowsMode)||void 0===t||t.dispose(),this._windowsMode=void 0)}},t.prototype._enableWindowsMode=function(){var e=this;if(!this._windowsMode){var t=[];t.push(this.onLineFeed(O.updateWindowsModeWrappedState.bind(null,this._bufferService))),t.push(this.registerCsiHandler({final:"H"},function(){return(0,O.updateWindowsModeWrappedState)(e._bufferService),!1})),this._windowsMode={dispose:function(){var e,o;try{for(var n=r(t),i=n.next();!i.done;i=n.next())i.value.dispose()}catch(t){e={error:t}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(e)throw e.error}}}}}},t}(a.Disposable);t.CoreTerminal=g},8460:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.forwardEvent=t.EventEmitter=void 0;var o=function(){function e(){this._listeners=[],this._disposed=!1}return Object.defineProperty(e.prototype,"event",{get:function(){var e=this;return this._event||(this._event=function(t){return e._listeners.push(t),{dispose:function(){if(!e._disposed)for(var o=0;o24)return t.setWinLines||!1;switch(e){case 1:return!!t.restoreWin;case 2:return!!t.minimizeWin;case 3:return!!t.setWinPosition;case 4:return!!t.setWinSizePixels;case 5:return!!t.raiseWin;case 6:return!!t.lowerWin;case 7:return!!t.refreshWin;case 8:return!!t.setWinSizeChars;case 9:return!!t.maximizeWin;case 10:return!!t.fullscreenWin;case 11:return!!t.getWinState;case 13:return!!t.getWinPosition;case 14:return!!t.getWinSizePixels;case 15:return!!t.getScreenSizePixels;case 16:return!!t.getCellSizePixels;case 18:return!!t.getWinSizeChars;case 19:return!!t.getScreenSizeChars;case 20:return!!t.getIconTitle;case 21:return!!t.getWinTitle;case 22:return!!t.pushTitle;case 23:return!!t.popTitle;case 24:return!!t.setWinLines}return!1}!function(e){e[e.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",e[e.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"}(r=t.WindowsOptionsReportType||(t.WindowsOptionsReportType={}));var q=function(){function e(e,t,o,n){this._bufferService=e,this._coreService=t,this._logService=o,this._optionsService=n,this._data=new Uint32Array(0)}return e.prototype.hook=function(e){this._data=new Uint32Array(0)},e.prototype.put=function(e,t,o){this._data=(0,l.concat)(this._data,e.subarray(t,o))},e.prototype.unhook=function(e){if(!e)return this._data=new Uint32Array(0),!0;var t=(0,u.utf32ToString)(this._data);switch(this._data=new Uint32Array(0),t){case'"q':this._coreService.triggerDataEvent(a.C0.ESC+'P1$r0"q'+a.C0.ESC+"\\");break;case'"p':this._coreService.triggerDataEvent(a.C0.ESC+'P1$r61;1"p'+a.C0.ESC+"\\");break;case"r":var o=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";this._coreService.triggerDataEvent(a.C0.ESC+"P1$r"+o+a.C0.ESC+"\\");break;case"m":this._coreService.triggerDataEvent(a.C0.ESC+"P1$r0m"+a.C0.ESC+"\\");break;case" q":var n={block:2,underline:4,bar:6}[this._optionsService.rawOptions.cursorStyle];n-=this._optionsService.rawOptions.cursorBlink?1:0,this._coreService.triggerDataEvent(a.C0.ESC+"P1$r"+n+" q"+a.C0.ESC+"\\");break;default:this._logService.debug("Unknown DCS $q %s",t),this._coreService.triggerDataEvent(a.C0.ESC+"P0$r"+a.C0.ESC+"\\")}return!0},e}(),_=function(e){function t(t,o,n,i,r,p,l,M,f){void 0===f&&(f=new c.EscapeSequenceParser);var z=e.call(this)||this;z._bufferService=t,z._charsetService=o,z._coreService=n,z._dirtyRowService=i,z._logService=r,z._optionsService=p,z._coreMouseService=l,z._unicodeService=M,z._parser=f,z._parseBuffer=new Uint32Array(4096),z._stringDecoder=new u.StringToUtf32,z._utf8Decoder=new u.Utf8ToUtf32,z._workCell=new h.CellData,z._windowTitle="",z._iconName="",z._windowTitleStack=[],z._iconNameStack=[],z._curAttrData=b.DEFAULT_ATTR_DATA.clone(),z._eraseAttrDataInternal=b.DEFAULT_ATTR_DATA.clone(),z._onRequestBell=new d.EventEmitter,z._onRequestRefreshRows=new d.EventEmitter,z._onRequestReset=new d.EventEmitter,z._onRequestSendFocus=new d.EventEmitter,z._onRequestSyncScrollBar=new d.EventEmitter,z._onRequestWindowsOptionsReport=new d.EventEmitter,z._onA11yChar=new d.EventEmitter,z._onA11yTab=new d.EventEmitter,z._onCursorMove=new d.EventEmitter,z._onLineFeed=new d.EventEmitter,z._onScroll=new d.EventEmitter,z._onTitleChange=new d.EventEmitter,z._onColor=new d.EventEmitter,z._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},z._specialColors=[256,257,258],z.register(z._parser),z._activeBuffer=z._bufferService.buffer,z.register(z._bufferService.buffers.onBufferActivate(function(e){return z._activeBuffer=e.activeBuffer})),z._parser.setCsiHandlerFallback(function(e,t){z._logService.debug("Unknown CSI code: ",{identifier:z._parser.identToString(e),params:t.toArray()})}),z._parser.setEscHandlerFallback(function(e){z._logService.debug("Unknown ESC code: ",{identifier:z._parser.identToString(e)})}),z._parser.setExecuteHandlerFallback(function(e){z._logService.debug("Unknown EXECUTE code: ",{code:e})}),z._parser.setOscHandlerFallback(function(e,t,o){z._logService.debug("Unknown OSC code: ",{identifier:e,action:t,data:o})}),z._parser.setDcsHandlerFallback(function(e,t,o){"HOOK"===t&&(o=o.toArray()),z._logService.debug("Unknown DCS code: ",{identifier:z._parser.identToString(e),action:t,payload:o})}),z._parser.setPrintHandler(function(e,t,o){return z.print(e,t,o)}),z._parser.registerCsiHandler({final:"@"},function(e){return z.insertChars(e)}),z._parser.registerCsiHandler({intermediates:" ",final:"@"},function(e){return z.scrollLeft(e)}),z._parser.registerCsiHandler({final:"A"},function(e){return z.cursorUp(e)}),z._parser.registerCsiHandler({intermediates:" ",final:"A"},function(e){return z.scrollRight(e)}),z._parser.registerCsiHandler({final:"B"},function(e){return z.cursorDown(e)}),z._parser.registerCsiHandler({final:"C"},function(e){return z.cursorForward(e)}),z._parser.registerCsiHandler({final:"D"},function(e){return z.cursorBackward(e)}),z._parser.registerCsiHandler({final:"E"},function(e){return z.cursorNextLine(e)}),z._parser.registerCsiHandler({final:"F"},function(e){return z.cursorPrecedingLine(e)}),z._parser.registerCsiHandler({final:"G"},function(e){return z.cursorCharAbsolute(e)}),z._parser.registerCsiHandler({final:"H"},function(e){return z.cursorPosition(e)}),z._parser.registerCsiHandler({final:"I"},function(e){return z.cursorForwardTab(e)}),z._parser.registerCsiHandler({final:"J"},function(e){return z.eraseInDisplay(e)}),z._parser.registerCsiHandler({prefix:"?",final:"J"},function(e){return z.eraseInDisplay(e)}),z._parser.registerCsiHandler({final:"K"},function(e){return z.eraseInLine(e)}),z._parser.registerCsiHandler({prefix:"?",final:"K"},function(e){return z.eraseInLine(e)}),z._parser.registerCsiHandler({final:"L"},function(e){return z.insertLines(e)}),z._parser.registerCsiHandler({final:"M"},function(e){return z.deleteLines(e)}),z._parser.registerCsiHandler({final:"P"},function(e){return z.deleteChars(e)}),z._parser.registerCsiHandler({final:"S"},function(e){return z.scrollUp(e)}),z._parser.registerCsiHandler({final:"T"},function(e){return z.scrollDown(e)}),z._parser.registerCsiHandler({final:"X"},function(e){return z.eraseChars(e)}),z._parser.registerCsiHandler({final:"Z"},function(e){return z.cursorBackwardTab(e)}),z._parser.registerCsiHandler({final:"`"},function(e){return z.charPosAbsolute(e)}),z._parser.registerCsiHandler({final:"a"},function(e){return z.hPositionRelative(e)}),z._parser.registerCsiHandler({final:"b"},function(e){return z.repeatPrecedingCharacter(e)}),z._parser.registerCsiHandler({final:"c"},function(e){return z.sendDeviceAttributesPrimary(e)}),z._parser.registerCsiHandler({prefix:">",final:"c"},function(e){return z.sendDeviceAttributesSecondary(e)}),z._parser.registerCsiHandler({final:"d"},function(e){return z.linePosAbsolute(e)}),z._parser.registerCsiHandler({final:"e"},function(e){return z.vPositionRelative(e)}),z._parser.registerCsiHandler({final:"f"},function(e){return z.hVPosition(e)}),z._parser.registerCsiHandler({final:"g"},function(e){return z.tabClear(e)}),z._parser.registerCsiHandler({final:"h"},function(e){return z.setMode(e)}),z._parser.registerCsiHandler({prefix:"?",final:"h"},function(e){return z.setModePrivate(e)}),z._parser.registerCsiHandler({final:"l"},function(e){return z.resetMode(e)}),z._parser.registerCsiHandler({prefix:"?",final:"l"},function(e){return z.resetModePrivate(e)}),z._parser.registerCsiHandler({final:"m"},function(e){return z.charAttributes(e)}),z._parser.registerCsiHandler({final:"n"},function(e){return z.deviceStatus(e)}),z._parser.registerCsiHandler({prefix:"?",final:"n"},function(e){return z.deviceStatusPrivate(e)}),z._parser.registerCsiHandler({intermediates:"!",final:"p"},function(e){return z.softReset(e)}),z._parser.registerCsiHandler({intermediates:" ",final:"q"},function(e){return z.setCursorStyle(e)}),z._parser.registerCsiHandler({final:"r"},function(e){return z.setScrollRegion(e)}),z._parser.registerCsiHandler({final:"s"},function(e){return z.saveCursor(e)}),z._parser.registerCsiHandler({final:"t"},function(e){return z.windowOptions(e)}),z._parser.registerCsiHandler({final:"u"},function(e){return z.restoreCursor(e)}),z._parser.registerCsiHandler({intermediates:"'",final:"}"},function(e){return z.insertColumns(e)}),z._parser.registerCsiHandler({intermediates:"'",final:"~"},function(e){return z.deleteColumns(e)}),z._parser.setExecuteHandler(a.C0.BEL,function(){return z.bell()}),z._parser.setExecuteHandler(a.C0.LF,function(){return z.lineFeed()}),z._parser.setExecuteHandler(a.C0.VT,function(){return z.lineFeed()}),z._parser.setExecuteHandler(a.C0.FF,function(){return z.lineFeed()}),z._parser.setExecuteHandler(a.C0.CR,function(){return z.carriageReturn()}),z._parser.setExecuteHandler(a.C0.BS,function(){return z.backspace()}),z._parser.setExecuteHandler(a.C0.HT,function(){return z.tab()}),z._parser.setExecuteHandler(a.C0.SO,function(){return z.shiftOut()}),z._parser.setExecuteHandler(a.C0.SI,function(){return z.shiftIn()}),z._parser.setExecuteHandler(a.C1.IND,function(){return z.index()}),z._parser.setExecuteHandler(a.C1.NEL,function(){return z.nextLine()}),z._parser.setExecuteHandler(a.C1.HTS,function(){return z.tabSet()}),z._parser.registerOscHandler(0,new O.OscHandler(function(e){return z.setTitle(e),z.setIconName(e),!0})),z._parser.registerOscHandler(1,new O.OscHandler(function(e){return z.setIconName(e)})),z._parser.registerOscHandler(2,new O.OscHandler(function(e){return z.setTitle(e)})),z._parser.registerOscHandler(4,new O.OscHandler(function(e){return z.setOrReportIndexedColor(e)})),z._parser.registerOscHandler(10,new O.OscHandler(function(e){return z.setOrReportFgColor(e)})),z._parser.registerOscHandler(11,new O.OscHandler(function(e){return z.setOrReportBgColor(e)})),z._parser.registerOscHandler(12,new O.OscHandler(function(e){return z.setOrReportCursorColor(e)})),z._parser.registerOscHandler(104,new O.OscHandler(function(e){return z.restoreIndexedColor(e)})),z._parser.registerOscHandler(110,new O.OscHandler(function(e){return z.restoreFgColor(e)})),z._parser.registerOscHandler(111,new O.OscHandler(function(e){return z.restoreBgColor(e)})),z._parser.registerOscHandler(112,new O.OscHandler(function(e){return z.restoreCursorColor(e)})),z._parser.registerEscHandler({final:"7"},function(){return z.saveCursor()}),z._parser.registerEscHandler({final:"8"},function(){return z.restoreCursor()}),z._parser.registerEscHandler({final:"D"},function(){return z.index()}),z._parser.registerEscHandler({final:"E"},function(){return z.nextLine()}),z._parser.registerEscHandler({final:"H"},function(){return z.tabSet()}),z._parser.registerEscHandler({final:"M"},function(){return z.reverseIndex()}),z._parser.registerEscHandler({final:"="},function(){return z.keypadApplicationMode()}),z._parser.registerEscHandler({final:">"},function(){return z.keypadNumericMode()}),z._parser.registerEscHandler({final:"c"},function(){return z.fullReset()}),z._parser.registerEscHandler({final:"n"},function(){return z.setgLevel(2)}),z._parser.registerEscHandler({final:"o"},function(){return z.setgLevel(3)}),z._parser.registerEscHandler({final:"|"},function(){return z.setgLevel(3)}),z._parser.registerEscHandler({final:"}"},function(){return z.setgLevel(2)}),z._parser.registerEscHandler({final:"~"},function(){return z.setgLevel(1)}),z._parser.registerEscHandler({intermediates:"%",final:"@"},function(){return z.selectDefaultCharset()}),z._parser.registerEscHandler({intermediates:"%",final:"G"},function(){return z.selectDefaultCharset()});var A=function(e){m._parser.registerEscHandler({intermediates:"(",final:e},function(){return z.selectCharset("("+e)}),m._parser.registerEscHandler({intermediates:")",final:e},function(){return z.selectCharset(")"+e)}),m._parser.registerEscHandler({intermediates:"*",final:e},function(){return z.selectCharset("*"+e)}),m._parser.registerEscHandler({intermediates:"+",final:e},function(){return z.selectCharset("+"+e)}),m._parser.registerEscHandler({intermediates:"-",final:e},function(){return z.selectCharset("-"+e)}),m._parser.registerEscHandler({intermediates:".",final:e},function(){return z.selectCharset("."+e)}),m._parser.registerEscHandler({intermediates:"/",final:e},function(){return z.selectCharset("/"+e)})},m=this;for(var v in s.CHARSETS)A(v);return z._parser.registerEscHandler({intermediates:"#",final:"8"},function(){return z.screenAlignmentPattern()}),z._parser.setErrorHandler(function(e){return z._logService.error("Parsing error: ",e),e}),z._parser.registerDcsHandler({intermediates:"$",final:"q"},new q(z._bufferService,z._coreService,z._logService,z._optionsService)),z}return i(t,e),Object.defineProperty(t.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestSendFocus",{get:function(){return this._onRequestSendFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onColor",{get:function(){return this._onColor.event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._preserveStack=function(e,t,o,n){this._parseStack.paused=!0,this._parseStack.cursorStartX=e,this._parseStack.cursorStartY=t,this._parseStack.decodedLength=o,this._parseStack.position=n},t.prototype._logSlowResolvingAsync=function(e){this._logService.logLevel<=z.LogLevelEnum.WARN&&Promise.race([e,new Promise(function(e,t){return setTimeout(function(){return t("#SLOW_TIMEOUT")},5e3)})]).catch(function(e){if("#SLOW_TIMEOUT"!==e)throw e;console.warn("async parser handler taking longer than 5000 ms")})},t.prototype.parse=function(e,t){var o,n=this._activeBuffer.x,i=this._activeBuffer.y,r=0,a=this._parseStack.paused;if(a){if(o=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,t))return this._logSlowResolvingAsync(o),o;n=this._parseStack.cursorStartX,i=this._parseStack.cursorStartY,this._parseStack.paused=!1,e.length>g&&(r=this._parseStack.position+g)}if(this._logService.logLevel<=z.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+("string"==typeof e?' "'+e+'"':' "'+Array.prototype.map.call(e,function(e){return String.fromCharCode(e)}).join("")+'"'),"string"==typeof e?e.split("").map(function(e){return e.charCodeAt(0)}):e),this._parseBuffer.lengthg)for(var s=r;s0&&2===b.getWidth(this._activeBuffer.x-1)&&b.setCellFromCodePoint(this._activeBuffer.x-1,0,1,l.fg,l.bg,l.extended);for(var d=t;d=s)if(c){for(;this._activeBuffer.x=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),b=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=s-1,2===i)continue;if(p&&(b.insertCells(this._activeBuffer.x,i,this._activeBuffer.getNullCell(l),l),2===b.getWidth(s-1)&&b.setCellFromCodePoint(s-1,M.NULL_CELL_CODE,M.NULL_CELL_WIDTH,l.fg,l.bg,l.extended)),b.setCellFromCodePoint(this._activeBuffer.x++,n,i,l.fg,l.bg,l.extended),i>0)for(;--i;)b.setCellFromCodePoint(this._activeBuffer.x++,0,0,l.fg,l.bg,l.extended)}else b.getWidth(this._activeBuffer.x-1)?b.addCodepointToCell(this._activeBuffer.x-1,n):b.addCodepointToCell(this._activeBuffer.x-2,n)}o-t>0&&(b.loadCell(this._activeBuffer.x-1,this._workCell),2===this._workCell.getWidth()||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),this._activeBuffer.x0&&0===b.getWidth(this._activeBuffer.x)&&!b.hasContent(this._activeBuffer.x)&&b.setCellFromCodePoint(this._activeBuffer.x,0,1,l.fg,l.bg,l.extended),this._dirtyRowService.markDirty(this._activeBuffer.y)},t.prototype.registerCsiHandler=function(e,t){var o=this;return"t"!==e.final||e.prefix||e.intermediates?this._parser.registerCsiHandler(e,t):this._parser.registerCsiHandler(e,function(e){return!y(e.params[0],o._optionsService.rawOptions.windowOptions)||t(e)})},t.prototype.registerDcsHandler=function(e,t){return this._parser.registerDcsHandler(e,new A.DcsHandler(t))},t.prototype.registerEscHandler=function(e,t){return this._parser.registerEscHandler(e,t)},t.prototype.registerOscHandler=function(e,t){return this._parser.registerOscHandler(e,new O.OscHandler(t))},t.prototype.bell=function(){return this._onRequestBell.fire(),!0},t.prototype.lineFeed=function(){return this._dirtyRowService.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowService.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0},t.prototype.carriageReturn=function(){return this._activeBuffer.x=0,!0},t.prototype.backspace=function(){var e;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(0===this._activeBuffer.x&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&(null===(e=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))||void 0===e?void 0:e.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;var t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);t.hasWidth(this._activeBuffer.x)&&!t.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0},t.prototype.tab=function(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;var e=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-e),!0},t.prototype.shiftOut=function(){return this._charsetService.setgLevel(1),!0},t.prototype.shiftIn=function(){return this._charsetService.setgLevel(0),!0},t.prototype._restrictCursor=function(e){void 0===e&&(e=this._bufferService.cols-1),this._activeBuffer.x=Math.min(e,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowService.markDirty(this._activeBuffer.y)},t.prototype._setCursor=function(e,t){this._dirtyRowService.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=e,this._activeBuffer.y=this._activeBuffer.scrollTop+t):(this._activeBuffer.x=e,this._activeBuffer.y=t),this._restrictCursor(),this._dirtyRowService.markDirty(this._activeBuffer.y)},t.prototype._moveCursor=function(e,t){this._restrictCursor(),this._setCursor(this._activeBuffer.x+e,this._activeBuffer.y+t)},t.prototype.cursorUp=function(e){var t=this._activeBuffer.y-this._activeBuffer.scrollTop;return t>=0?this._moveCursor(0,-Math.min(t,e.params[0]||1)):this._moveCursor(0,-(e.params[0]||1)),!0},t.prototype.cursorDown=function(e){var t=this._activeBuffer.scrollBottom-this._activeBuffer.y;return t>=0?this._moveCursor(0,Math.min(t,e.params[0]||1)):this._moveCursor(0,e.params[0]||1),!0},t.prototype.cursorForward=function(e){return this._moveCursor(e.params[0]||1,0),!0},t.prototype.cursorBackward=function(e){return this._moveCursor(-(e.params[0]||1),0),!0},t.prototype.cursorNextLine=function(e){return this.cursorDown(e),this._activeBuffer.x=0,!0},t.prototype.cursorPrecedingLine=function(e){return this.cursorUp(e),this._activeBuffer.x=0,!0},t.prototype.cursorCharAbsolute=function(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0},t.prototype.cursorPosition=function(e){return this._setCursor(e.length>=2?(e.params[1]||1)-1:0,(e.params[0]||1)-1),!0},t.prototype.charPosAbsolute=function(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0},t.prototype.hPositionRelative=function(e){return this._moveCursor(e.params[0]||1,0),!0},t.prototype.linePosAbsolute=function(e){return this._setCursor(this._activeBuffer.x,(e.params[0]||1)-1),!0},t.prototype.vPositionRelative=function(e){return this._moveCursor(0,e.params[0]||1),!0},t.prototype.hVPosition=function(e){return this.cursorPosition(e),!0},t.prototype.tabClear=function(e){var t=e.params[0];return 0===t?delete this._activeBuffer.tabs[this._activeBuffer.x]:3===t&&(this._activeBuffer.tabs={}),!0},t.prototype.cursorForwardTab=function(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var t=e.params[0]||1;t--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0},t.prototype.cursorBackwardTab=function(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var t=e.params[0]||1;t--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0},t.prototype._eraseInBufferLine=function(e,t,o,n){void 0===n&&(n=!1);var i=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);i.replaceCells(t,o,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),n&&(i.isWrapped=!1)},t.prototype._resetBufferLine=function(e){var t=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);t.fill(this._activeBuffer.getNullCell(this._eraseAttrData())),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+e),t.isWrapped=!1},t.prototype.eraseInDisplay=function(e){var t;switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:for(t=this._activeBuffer.y,this._dirtyRowService.markDirty(t),this._eraseInBufferLine(t++,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x);t=this._bufferService.cols&&(this._activeBuffer.lines.get(t+1).isWrapped=!1);t--;)this._resetBufferLine(t);this._dirtyRowService.markDirty(0);break;case 2:for(t=this._bufferService.rows,this._dirtyRowService.markDirty(t-1);t--;)this._resetBufferLine(t);this._dirtyRowService.markDirty(0);break;case 3:var o=this._activeBuffer.lines.length-this._bufferService.rows;o>0&&(this._activeBuffer.lines.trimStart(o),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-o,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-o,0),this._onScroll.fire(0))}return!0},t.prototype.eraseInLine=function(e){switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0)}return this._dirtyRowService.markDirty(this._activeBuffer.y),!0},t.prototype.insertLines=function(e){this._restrictCursor();var t=e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.y0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(a.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(a.C0.ESC+"[?6c")),!0},t.prototype.sendDeviceAttributesSecondary=function(e){return e.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(a.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(a.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(e.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(a.C0.ESC+"[>83;40003;0c")),!0},t.prototype._is=function(e){return 0===(this._optionsService.rawOptions.termName+"").indexOf(e)},t.prototype.setMode=function(e){for(var t=0;t=2||2===n[1]&&r+i>=5)break;n[1]&&(i=1)}while(++r+t5)&&(e=1),t.extended.underlineStyle=e,t.fg|=268435456,0===e&&(t.fg&=-268435457),t.updateExtended()},t.prototype.charAttributes=function(e){if(1===e.length&&0===e.params[0])return this._curAttrData.fg=b.DEFAULT_ATTR_DATA.fg,this._curAttrData.bg=b.DEFAULT_ATTR_DATA.bg,!0;for(var t,o=e.length,n=this._curAttrData,i=0;i=30&&t<=37?(n.fg&=-50331904,n.fg|=16777216|t-30):t>=40&&t<=47?(n.bg&=-50331904,n.bg|=16777216|t-40):t>=90&&t<=97?(n.fg&=-50331904,n.fg|=16777224|t-90):t>=100&&t<=107?(n.bg&=-50331904,n.bg|=16777224|t-100):0===t?(n.fg=b.DEFAULT_ATTR_DATA.fg,n.bg=b.DEFAULT_ATTR_DATA.bg):1===t?n.fg|=134217728:3===t?n.bg|=67108864:4===t?(n.fg|=268435456,this._processUnderline(e.hasSubParams(i)?e.getSubParams(i)[0]:1,n)):5===t?n.fg|=536870912:7===t?n.fg|=67108864:8===t?n.fg|=1073741824:9===t?n.fg|=2147483648:2===t?n.bg|=134217728:21===t?this._processUnderline(2,n):22===t?(n.fg&=-134217729,n.bg&=-134217729):23===t?n.bg&=-67108865:24===t?n.fg&=-268435457:25===t?n.fg&=-536870913:27===t?n.fg&=-67108865:28===t?n.fg&=-1073741825:29===t?n.fg&=2147483647:39===t?(n.fg&=-67108864,n.fg|=16777215&b.DEFAULT_ATTR_DATA.fg):49===t?(n.bg&=-67108864,n.bg|=16777215&b.DEFAULT_ATTR_DATA.bg):38===t||48===t||58===t?i+=this._extractColor(e,i,n):59===t?(n.extended=n.extended.clone(),n.extended.underlineColor=-1,n.updateExtended()):100===t?(n.fg&=-67108864,n.fg|=16777215&b.DEFAULT_ATTR_DATA.fg,n.bg&=-67108864,n.bg|=16777215&b.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",t);return!0},t.prototype.deviceStatus=function(e){switch(e.params[0]){case 5:this._coreService.triggerDataEvent(a.C0.ESC+"[0n");break;case 6:var t=this._activeBuffer.y+1,o=this._activeBuffer.x+1;this._coreService.triggerDataEvent(a.C0.ESC+"["+t+";"+o+"R")}return!0},t.prototype.deviceStatusPrivate=function(e){if(6===e.params[0]){var t=this._activeBuffer.y+1,o=this._activeBuffer.x+1;this._coreService.triggerDataEvent(a.C0.ESC+"[?"+t+";"+o+"R")}return!0},t.prototype.softReset=function(e){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=b.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0},t.prototype.setCursorStyle=function(e){var t=e.params[0]||1;switch(t){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}var o=t%2==1;return this._optionsService.options.cursorBlink=o,!0},t.prototype.setScrollRegion=function(e){var t,o=e.params[0]||1;return(e.length<2||(t=e.params[1])>this._bufferService.rows||0===t)&&(t=this._bufferService.rows),t>o&&(this._activeBuffer.scrollTop=o-1,this._activeBuffer.scrollBottom=t-1,this._setCursor(0,0)),!0},t.prototype.windowOptions=function(e){if(!y(e.params[0],this._optionsService.rawOptions.windowOptions))return!0;var t=e.length>1?e.params[1]:0;switch(e.params[0]){case 14:2!==t&&this._onRequestWindowsOptionsReport.fire(r.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(r.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(a.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:0!==t&&2!==t||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),0!==t&&1!==t||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:0!==t&&2!==t||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),0!==t&&1!==t||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0},t.prototype.saveCursor=function(e){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0},t.prototype.restoreCursor=function(e){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0},t.prototype.setTitle=function(e){return this._windowTitle=e,this._onTitleChange.fire(e),!0},t.prototype.setIconName=function(e){return this._iconName=e,!0},t.prototype.setOrReportIndexedColor=function(e){for(var t=[],o=e.split(";");o.length>1;){var n=o.shift(),i=o.shift();if(/^\d+$/.exec(n)){var r=parseInt(n);if(0<=r&&r<256)if("?"===i)t.push({type:0,index:r});else{var a=(0,m.parseColor)(i);a&&t.push({type:1,index:r,color:a})}}}return t.length&&this._onColor.fire(t),!0},t.prototype._setOrReportSpecialColor=function(e,t){for(var o=e.split(";"),n=0;n=this._specialColors.length);++n,++t)if("?"===o[n])this._onColor.fire([{type:0,index:this._specialColors[t]}]);else{var i=(0,m.parseColor)(o[n]);i&&this._onColor.fire([{type:1,index:this._specialColors[t],color:i}])}return!0},t.prototype.setOrReportFgColor=function(e){return this._setOrReportSpecialColor(e,0)},t.prototype.setOrReportBgColor=function(e){return this._setOrReportSpecialColor(e,1)},t.prototype.setOrReportCursorColor=function(e){return this._setOrReportSpecialColor(e,2)},t.prototype.restoreIndexedColor=function(e){if(!e)return this._onColor.fire([{type:2}]),!0;for(var t=[],o=e.split(";"),n=0;n=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0},t.prototype.tabSet=function(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0},t.prototype.reverseIndex=function(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){var e=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,e,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0},t.prototype.fullReset=function(){return this._parser.reset(),this._onRequestReset.fire(),!0},t.prototype.reset=function(){this._curAttrData=b.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=b.DEFAULT_ATTR_DATA.clone()},t.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},t.prototype.setgLevel=function(e){return this._charsetService.setgLevel(e),!0},t.prototype.screenAlignmentPattern=function(){var e=new h.CellData;e.content=1<<22|"E".charCodeAt(0),e.fg=this._curAttrData.fg,e.bg=this._curAttrData.bg,this._setCursor(0,0);for(var t=0;t=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.getDisposeArrayDisposable=t.disposeArray=t.Disposable=void 0;var n=function(){function e(){this._disposables=[],this._isDisposed=!1}return e.prototype.dispose=function(){var e,t;this._isDisposed=!0;try{for(var n=o(this._disposables),i=n.next();!i.done;i=n.next())i.value.dispose()}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this._disposables.length=0},e.prototype.register=function(e){return this._disposables.push(e),e},e.prototype.unregister=function(e){var t=this._disposables.indexOf(e);-1!==t&&this._disposables.splice(t,1)},e}();function i(e){var t,n;try{for(var i=o(e),r=i.next();!r.done;r=i.next())r.value.dispose()}catch(e){t={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}e.length=0}t.Disposable=n,t.disposeArray=i,t.getDisposeArrayDisposable=function(e){return{dispose:function(){return i(e)}}}},6114:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isLinux=t.isWindows=t.isIphone=t.isIpad=t.isMac=t.isSafari=t.isLegacyEdge=t.isFirefox=void 0;var o="undefined"==typeof navigator,n=o?"node":navigator.userAgent,i=o?"node":navigator.platform;t.isFirefox=n.includes("Firefox"),t.isLegacyEdge=n.includes("Edge"),t.isSafari=/^((?!chrome|android).)*safari/i.test(n),t.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(i),t.isIpad="iPad"===i,t.isIphone="iPhone"===i,t.isWindows=["Windows","Win16","Win32","WinCE"].includes(i),t.isLinux=i.indexOf("Linux")>=0},6106:function(e,t){var o=this&&this.__generator||function(e,t){var o,n,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,n&&(i=2&r[0]?n.return:r[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,r[1])).done)return i;switch(n=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,n=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]=this._array.length)return[2];if(this._getKey(this._array[t])!==e)return[2];o.label=1;case 1:return[4,this._array[t]];case 2:o.sent(),o.label=3;case 3:if(++te)return this._search(e,t,n-1);if(this._getKey(this._array[n])0&&this._getKey(this._array[n-1])===e;)n--;return n},e}();t.SortedList=n},8273:(e,t)=>{function o(e,t,o,n){if(void 0===o&&(o=0),void 0===n&&(n=e.length),o>=e.length)return e;o=(e.length+o)%e.length,n=n>=e.length?e.length:(e.length+n)%e.length;for(var i=o;i{Object.defineProperty(t,"__esModule",{value:!0}),t.updateWindowsModeWrappedState=void 0;var n=o(643);t.updateWindowsModeWrappedState=function(e){var t=e.buffer.lines.get(e.buffer.ybase+e.buffer.y-1),o=null==t?void 0:t.get(e.cols-1),i=e.buffer.lines.get(e.buffer.ybase+e.buffer.y);i&&o&&(i.isWrapped=o[n.CHAR_DATA_CODE_INDEX]!==n.NULL_CELL_CODE&&o[n.CHAR_DATA_CODE_INDEX]!==n.WHITESPACE_CELL_CODE)}},3734:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedAttrs=t.AttributeData=void 0;var o=function(){function e(){this.fg=0,this.bg=0,this.extended=new n}return e.toColorRGB=function(e){return[e>>>16&255,e>>>8&255,255&e]},e.fromColorRGB=function(e){return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},e.prototype.clone=function(){var t=new e;return t.fg=this.fg,t.bg=this.bg,t.extended=this.extended.clone(),t},e.prototype.isInverse=function(){return 67108864&this.fg},e.prototype.isBold=function(){return 134217728&this.fg},e.prototype.isUnderline=function(){return 268435456&this.fg},e.prototype.isBlink=function(){return 536870912&this.fg},e.prototype.isInvisible=function(){return 1073741824&this.fg},e.prototype.isItalic=function(){return 67108864&this.bg},e.prototype.isDim=function(){return 134217728&this.bg},e.prototype.isStrikethrough=function(){return 2147483648&this.fg},e.prototype.getFgColorMode=function(){return 50331648&this.fg},e.prototype.getBgColorMode=function(){return 50331648&this.bg},e.prototype.isFgRGB=function(){return 50331648==(50331648&this.fg)},e.prototype.isBgRGB=function(){return 50331648==(50331648&this.bg)},e.prototype.isFgPalette=function(){return 16777216==(50331648&this.fg)||33554432==(50331648&this.fg)},e.prototype.isBgPalette=function(){return 16777216==(50331648&this.bg)||33554432==(50331648&this.bg)},e.prototype.isFgDefault=function(){return 0==(50331648&this.fg)},e.prototype.isBgDefault=function(){return 0==(50331648&this.bg)},e.prototype.isAttributeDefault=function(){return 0===this.fg&&0===this.bg},e.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},e.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},e.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},e.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},e.prototype.getUnderlineColor=function(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()},e.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},e.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648==(50331648&this.extended.underlineColor):this.isFgRGB()},e.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?16777216==(50331648&this.extended.underlineColor)||33554432==(50331648&this.extended.underlineColor):this.isFgPalette()},e.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?0==(50331648&this.extended.underlineColor):this.isFgDefault()},e.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},e}();t.AttributeData=o;var n=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=-1),this.underlineStyle=e,this.underlineColor=t}return e.prototype.clone=function(){return new e(this.underlineStyle,this.underlineColor)},e.prototype.isEmpty=function(){return 0===this.underlineStyle},e}();t.ExtendedAttrs=n},9092:function(e,t,o){var n=this&&this.__read||function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var n,i,r=o.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t,o){if(o||2===arguments.length)for(var n,i=0,r=t.length;ithis._rows},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCursorInViewport",{get:function(){var e=this.ybase+this.y-this.ydisp;return e>=0&&et.MAX_BUFFER_SIZE?t.MAX_BUFFER_SIZE:o},e.prototype.fillViewportRows=function(e){if(0===this.lines.length){void 0===e&&(e=a.DEFAULT_ATTR_DATA);for(var t=this._rows;t--;)this.lines.push(this.getBlankLine(e))}},e.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new r.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},e.prototype.resize=function(e,t){var o=this.getNullCell(a.DEFAULT_ATTR_DATA),n=this._getCorrectBufferLength(t);if(n>this.lines.maxLength&&(this.lines.maxLength=n),this.lines.length>0){if(this._cols0&&this.lines.length<=this.ybase+this.y+r+1?(this.ybase--,r++,this.ydisp>0&&this.ydisp--):this.lines.push(new a.BufferLine(e,o)));else for(s=this._rows;s>t;s--)this.lines.length>t+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(n0&&(this.lines.trimStart(c),this.ybase=Math.max(this.ybase-c,0),this.ydisp=Math.max(this.ydisp-c,0),this.savedY=Math.max(this.savedY-c,0)),this.lines.maxLength=n}this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,t-1),r&&(this.y+=r),this.savedX=Math.min(this.savedX,e-1),this.scrollTop=0}if(this.scrollBottom=t-1,this._isReflowEnabled&&(this._reflow(e,t),this._cols>e))for(i=0;ithis._cols?this._reflowLarger(e,t):this._reflowSmaller(e,t))},e.prototype._reflowLarger=function(e,t){var o=(0,p.reflowLargerGetLinesToRemove)(this.lines,this._cols,e,this.ybase+this.y,this.getNullCell(a.DEFAULT_ATTR_DATA));if(o.length>0){var n=(0,p.reflowLargerCreateNewLayout)(this.lines,o);(0,p.reflowLargerApplyNewLayout)(this.lines,n.layout),this._reflowLargerAdjustViewport(e,t,n.countRemoved)}},e.prototype._reflowLargerAdjustViewport=function(e,t,o){for(var n=this.getNullCell(a.DEFAULT_ATTR_DATA),i=o;i-- >0;)0===this.ybase?(this.y>0&&this.y--,this.lines.length=0;c--){var l=this.lines.get(c);if(!(!l||!l.isWrapped&&l.getTrimmedLength()<=e)){for(var u=[l];l.isWrapped&&c>0;)l=this.lines.get(--c),u.unshift(l);var b=this.ybase+this.y;if(!(b>=c&&b0&&(r.push({start:c+u.length+s,newLines:z}),s+=z.length),u.push.apply(u,i([],n(z),!1));var m=h.length-1,v=h[m];0===v&&(v=h[--m]);for(var g=u.length-f-1,y=M;g>=0;){var q=Math.min(y,v);if(void 0===u[m])break;if(u[m].copyCellsFrom(u[g],y-q,v-q,q,!0),0==(v-=q)&&(v=h[--m]),0==(y-=q)){g--;var _=Math.max(g,0);y=(0,p.getWrappedLineTrimmedLength)(u,_,this._cols)}}for(O=0;O0;)0===this.ybase?this.y0){var R=[],w=[];for(O=0;O=0;O--)if(E&&E.start>C+T){for(var x=E.newLines.length-1;x>=0;x--)this.lines.set(O--,E.newLines[x]);O++,R.push({index:C+1,amount:E.newLines.length}),T+=E.newLines.length,E=r[++S]}else this.lines.set(O,w[C--]);var N=0;for(O=R.length-1;O>=0;O--)R[O].index+=N,this.lines.onInsertEmitter.fire(R[O]),N+=R[O].amount;var B=Math.max(0,L+s-this.lines.maxLength);B>0&&this.lines.onTrimEmitter.fire(B)}},e.prototype.stringIndexToBufferIndex=function(e,t,o){for(void 0===o&&(o=!1);t;){var n=this.lines.get(e);if(!n)return[-1,-1];for(var i=o?n.getTrimmedLength():n.length,r=0;r0&&this.lines.get(t).isWrapped;)t--;for(;o+10;);return e>=this._cols?this._cols-1:e<0?0:e},e.prototype.nextStop=function(e){for(null==e&&(e=this.x);!this.tabs[++e]&&e=this._cols?this._cols-1:e<0?0:e},e.prototype.clearMarkers=function(e){this._isClearing=!0;for(var t=0;t=e.index&&(o.line+=e.amount)})),o.register(this.lines.onDelete(function(e){o.line>=e.index&&o.linee.index&&(o.line-=e.amount)})),o.register(o.onDispose(function(){return t._removeMarker(o)})),o},e.prototype._removeMarker=function(e){this._isClearing||this.markers.splice(this.markers.indexOf(e),1)},e.prototype.iterator=function(e,t,o,n,i){return new M(this,e,t,o,n,i)},e}();t.Buffer=d;var M=function(){function e(e,t,o,n,i,r){void 0===o&&(o=0),void 0===n&&(n=e.lines.length),void 0===i&&(i=0),void 0===r&&(r=0),this._buffer=e,this._trimRight=t,this._startIndex=o,this._endIndex=n,this._startOverscan=i,this._endOverscan=r,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return e.prototype.hasNext=function(){return this._currentthis._endIndex+this._endOverscan&&(e.last=this._endIndex+this._endOverscan),e.first=Math.max(e.first,0),e.last=Math.min(e.last,this._buffer.lines.length);for(var t="",o=e.first;o<=e.last;++o)t+=this._buffer.translateBufferLineToString(o,this._trimRight);return this._current=e.last+1,{range:e,content:t}},e}();t.BufferStringIterator=M},8437:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLine=t.DEFAULT_ATTR_DATA=void 0;var n=o(482),i=o(643),r=o(511),a=o(3734);t.DEFAULT_ATTR_DATA=Object.freeze(new a.AttributeData);var s=function(){function e(e,t,o){void 0===o&&(o=!1),this.isWrapped=o,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*e);for(var n=t||r.CellData.fromCharData([0,i.NULL_CELL_CHAR,i.NULL_CELL_WIDTH,i.NULL_CELL_CODE]),a=0;a>22,2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):o]},e.prototype.set=function(e,t){this._data[3*e+1]=t[i.CHAR_DATA_ATTR_INDEX],t[i.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[e]=t[1],this._data[3*e+0]=2097152|e|t[i.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*e+0]=t[i.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|t[i.CHAR_DATA_WIDTH_INDEX]<<22},e.prototype.getWidth=function(e){return this._data[3*e+0]>>22},e.prototype.hasWidth=function(e){return 12582912&this._data[3*e+0]},e.prototype.getFg=function(e){return this._data[3*e+1]},e.prototype.getBg=function(e){return this._data[3*e+2]},e.prototype.hasContent=function(e){return 4194303&this._data[3*e+0]},e.prototype.getCodePoint=function(e){var t=this._data[3*e+0];return 2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):2097151&t},e.prototype.isCombined=function(e){return 2097152&this._data[3*e+0]},e.prototype.getString=function(e){var t=this._data[3*e+0];return 2097152&t?this._combined[e]:2097151&t?(0,n.stringFromCodePoint)(2097151&t):""},e.prototype.loadCell=function(e,t){var o=3*e;return t.content=this._data[o+0],t.fg=this._data[o+1],t.bg=this._data[o+2],2097152&t.content&&(t.combinedData=this._combined[e]),268435456&t.bg&&(t.extended=this._extendedAttrs[e]),t},e.prototype.setCell=function(e,t){2097152&t.content&&(this._combined[e]=t.combinedData),268435456&t.bg&&(this._extendedAttrs[e]=t.extended),this._data[3*e+0]=t.content,this._data[3*e+1]=t.fg,this._data[3*e+2]=t.bg},e.prototype.setCellFromCodePoint=function(e,t,o,n,i,r){268435456&i&&(this._extendedAttrs[e]=r),this._data[3*e+0]=t|o<<22,this._data[3*e+1]=n,this._data[3*e+2]=i},e.prototype.addCodepointToCell=function(e,t){var o=this._data[3*e+0];2097152&o?this._combined[e]+=(0,n.stringFromCodePoint)(t):(2097151&o?(this._combined[e]=(0,n.stringFromCodePoint)(2097151&o)+(0,n.stringFromCodePoint)(t),o&=-2097152,o|=2097152):o=t|1<<22,this._data[3*e+0]=o)},e.prototype.insertCells=function(e,t,o,n){if((e%=this.length)&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==n?void 0:n.fg)||0,(null==n?void 0:n.bg)||0,(null==n?void 0:n.extended)||new a.ExtendedAttrs),t=0;--s)this.setCell(e+t+s,this.loadCell(e+s,i));for(s=0;sthis.length){var o=new Uint32Array(3*e);this.length&&(3*e=e&&delete this._combined[r]}}else this._data=new Uint32Array(0),this._combined={};this.length=e}},e.prototype.fill=function(e){this._combined={},this._extendedAttrs={};for(var t=0;t=0;--e)if(4194303&this._data[3*e+0])return e+(this._data[3*e+0]>>22);return 0},e.prototype.copyCellsFrom=function(e,t,o,n,i){var r=e._data;if(i)for(var a=n-1;a>=0;a--)for(var s=0;s<3;s++)this._data[3*(o+a)+s]=r[3*(t+a)+s];else for(a=0;a=t&&(this._combined[p-t+o]=e._combined[p])}},e.prototype.translateToString=function(e,t,o){void 0===e&&(e=!1),void 0===t&&(t=0),void 0===o&&(o=this.length),e&&(o=Math.min(o,this.getTrimmedLength()));for(var r="";t>22||1}return r},e}();t.BufferLine=s},4841:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getRangeLength=void 0,t.getRangeLength=function(e,t){if(e.start.y>e.end.y)throw new Error("Buffer range end ("+e.end.x+", "+e.end.y+") cannot be before start ("+e.start.x+", "+e.start.y+")");return t*(e.end.y-e.start.y)+(e.end.x-e.start.x+1)}},4634:(e,t)=>{function o(e,t,o){if(t===e.length-1)return e[t].getTrimmedLength();var n=!e[t].hasContent(o-1)&&1===e[t].getWidth(o-1),i=2===e[t+1].getWidth(0);return n&&i?o-1:o}Object.defineProperty(t,"__esModule",{value:!0}),t.getWrappedLineTrimmedLength=t.reflowSmallerGetNewLineLengths=t.reflowLargerApplyNewLayout=t.reflowLargerCreateNewLayout=t.reflowLargerGetLinesToRemove=void 0,t.reflowLargerGetLinesToRemove=function(e,t,n,i,r){for(var a=[],s=0;s=s&&i0&&(m>u||0===l[m].getTrimmedLength());m--)A++;A>0&&(a.push(s+l.length-A),a.push(A)),s+=l.length-1}}}return a},t.reflowLargerCreateNewLayout=function(e,t){for(var o=[],n=0,i=t[n],r=0,a=0;ap&&(a-=p,s++);var l=2===e[s].getWidth(a-1);l&&a--;var u=l?n-1:n;i.push(u),c+=u}return i},t.getWrappedLineTrimmedLength=o},5295:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0}),t.BufferSet=void 0;var r=o(9092),a=o(8460),s=function(e){function t(t,o){var n=e.call(this)||this;return n._optionsService=t,n._bufferService=o,n._onBufferActivate=n.register(new a.EventEmitter),n.reset(),n}return i(t,e),Object.defineProperty(t.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),t.prototype.reset=function(){this._normal=new r.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new r.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()},Object.defineProperty(t.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),t.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},t.prototype.activateAltBuffer=function(e){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(e),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},t.prototype.resize=function(e,t){this._normal.resize(e,t),this._alt.resize(e,t)},t.prototype.setupTabStops=function(e){this._normal.setupTabStops(e),this._alt.setupTabStops(e)},t}(o(844).Disposable);t.BufferSet=s},511:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0}),t.CellData=void 0;var r=o(482),a=o(643),s=o(3734),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.content=0,t.fg=0,t.bg=0,t.extended=new s.ExtendedAttrs,t.combinedData="",t}return i(t,e),t.fromCharData=function(e){var o=new t;return o.setFromCharData(e),o},t.prototype.isCombined=function(){return 2097152&this.content},t.prototype.getWidth=function(){return this.content>>22},t.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,r.stringFromCodePoint)(2097151&this.content):""},t.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},t.prototype.setFromCharData=function(e){this.fg=e[a.CHAR_DATA_ATTR_INDEX],this.bg=0;var t=!1;if(e[a.CHAR_DATA_CHAR_INDEX].length>2)t=!0;else if(2===e[a.CHAR_DATA_CHAR_INDEX].length){var o=e[a.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=o&&o<=56319){var n=e[a.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=n&&n<=57343?this.content=1024*(o-55296)+n-56320+65536|e[a.CHAR_DATA_WIDTH_INDEX]<<22:t=!0}else t=!0}else this.content=e[a.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|e[a.CHAR_DATA_WIDTH_INDEX]<<22;t&&(this.combinedData=e[a.CHAR_DATA_CHAR_INDEX],this.content=2097152|e[a.CHAR_DATA_WIDTH_INDEX]<<22)},t.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},t}(s.AttributeData);t.CellData=c},643:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WHITESPACE_CELL_CODE=t.WHITESPACE_CELL_WIDTH=t.WHITESPACE_CELL_CHAR=t.NULL_CELL_CODE=t.NULL_CELL_WIDTH=t.NULL_CELL_CHAR=t.CHAR_DATA_CODE_INDEX=t.CHAR_DATA_WIDTH_INDEX=t.CHAR_DATA_CHAR_INDEX=t.CHAR_DATA_ATTR_INDEX=t.DEFAULT_ATTR=t.DEFAULT_COLOR=void 0,t.DEFAULT_COLOR=256,t.DEFAULT_ATTR=256|t.DEFAULT_COLOR<<9,t.CHAR_DATA_ATTR_INDEX=0,t.CHAR_DATA_CHAR_INDEX=1,t.CHAR_DATA_WIDTH_INDEX=2,t.CHAR_DATA_CODE_INDEX=3,t.NULL_CELL_CHAR="",t.NULL_CELL_WIDTH=1,t.NULL_CELL_CODE=0,t.WHITESPACE_CELL_CHAR=" ",t.WHITESPACE_CELL_WIDTH=1,t.WHITESPACE_CELL_CODE=32},4863:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0}),t.Marker=void 0;var r=o(8460),a=function(e){function t(o){var n=e.call(this)||this;return n.line=o,n._id=t._nextId++,n.isDisposed=!1,n._onDispose=new r.EventEmitter,n}return i(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),e.prototype.dispose.call(this))},t._nextId=1,t}(o(844).Disposable);t.Marker=a},7116:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_CHARSET=t.CHARSETS=void 0,t.CHARSETS={},t.DEFAULT_CHARSET=t.CHARSETS.B,t.CHARSETS[0]={"`":"◆",a:"▒",b:"␉",c:"␌",d:"␍",e:"␊",f:"°",g:"±",h:"␤",i:"␋",j:"┘",k:"┐",l:"┌",m:"└",n:"┼",o:"⎺",p:"⎻",q:"─",r:"⎼",s:"⎽",t:"├",u:"┤",v:"┴",w:"┬",x:"│",y:"≤",z:"≥","{":"π","|":"≠","}":"£","~":"·"},t.CHARSETS.A={"#":"£"},t.CHARSETS.B=void 0,t.CHARSETS[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"},t.CHARSETS.C=t.CHARSETS[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"},t.CHARSETS.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"},t.CHARSETS.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"},t.CHARSETS.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"},t.CHARSETS.E=t.CHARSETS[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"},t.CHARSETS.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"},t.CHARSETS.H=t.CHARSETS[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"}},2584:(e,t)=>{var o,n;Object.defineProperty(t,"__esModule",{value:!0}),t.C1_ESCAPED=t.C1=t.C0=void 0,function(e){e.NUL="\0",e.SOH="",e.STX="",e.ETX="",e.EOT="",e.ENQ="",e.ACK="",e.BEL="",e.BS="\b",e.HT="\t",e.LF="\n",e.VT="\v",e.FF="\f",e.CR="\r",e.SO="",e.SI="",e.DLE="",e.DC1="",e.DC2="",e.DC3="",e.DC4="",e.NAK="",e.SYN="",e.ETB="",e.CAN="",e.EM="",e.SUB="",e.ESC="",e.FS="",e.GS="",e.RS="",e.US="",e.SP=" ",e.DEL=""}(o=t.C0||(t.C0={})),(n=t.C1||(t.C1={})).PAD="€",n.HOP="",n.BPH="‚",n.NBH="ƒ",n.IND="„",n.NEL="…",n.SSA="†",n.ESA="‡",n.HTS="ˆ",n.HTJ="‰",n.VTS="Š",n.PLD="‹",n.PLU="Œ",n.RI="",n.SS2="Ž",n.SS3="",n.DCS="",n.PU1="‘",n.PU2="’",n.STS="“",n.CCH="”",n.MW="•",n.SPA="–",n.EPA="—",n.SOS="˜",n.SGCI="™",n.SCI="š",n.CSI="›",n.ST="œ",n.OSC="",n.PM="ž",n.APC="Ÿ",(t.C1_ESCAPED||(t.C1_ESCAPED={})).ST=o.ESC+"\\"},7399:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.evaluateKeyboardEvent=void 0;var n=o(2584),i={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};t.evaluateKeyboardEvent=function(e,t,o,r){var a={type:0,cancel:!1,key:void 0},s=(e.shiftKey?1:0)|(e.altKey?2:0)|(e.ctrlKey?4:0)|(e.metaKey?8:0);switch(e.keyCode){case 0:"UIKeyInputUpArrow"===e.key?a.key=t?n.C0.ESC+"OA":n.C0.ESC+"[A":"UIKeyInputLeftArrow"===e.key?a.key=t?n.C0.ESC+"OD":n.C0.ESC+"[D":"UIKeyInputRightArrow"===e.key?a.key=t?n.C0.ESC+"OC":n.C0.ESC+"[C":"UIKeyInputDownArrow"===e.key&&(a.key=t?n.C0.ESC+"OB":n.C0.ESC+"[B");break;case 8:if(e.shiftKey){a.key=n.C0.BS;break}if(e.altKey){a.key=n.C0.ESC+n.C0.DEL;break}a.key=n.C0.DEL;break;case 9:if(e.shiftKey){a.key=n.C0.ESC+"[Z";break}a.key=n.C0.HT,a.cancel=!0;break;case 13:a.key=e.altKey?n.C0.ESC+n.C0.CR:n.C0.CR,a.cancel=!0;break;case 27:a.key=n.C0.ESC,e.altKey&&(a.key=n.C0.ESC+n.C0.ESC),a.cancel=!0;break;case 37:if(e.metaKey)break;s?(a.key=n.C0.ESC+"[1;"+(s+1)+"D",a.key===n.C0.ESC+"[1;3D"&&(a.key=n.C0.ESC+(o?"b":"[1;5D"))):a.key=t?n.C0.ESC+"OD":n.C0.ESC+"[D";break;case 39:if(e.metaKey)break;s?(a.key=n.C0.ESC+"[1;"+(s+1)+"C",a.key===n.C0.ESC+"[1;3C"&&(a.key=n.C0.ESC+(o?"f":"[1;5C"))):a.key=t?n.C0.ESC+"OC":n.C0.ESC+"[C";break;case 38:if(e.metaKey)break;s?(a.key=n.C0.ESC+"[1;"+(s+1)+"A",o||a.key!==n.C0.ESC+"[1;3A"||(a.key=n.C0.ESC+"[1;5A")):a.key=t?n.C0.ESC+"OA":n.C0.ESC+"[A";break;case 40:if(e.metaKey)break;s?(a.key=n.C0.ESC+"[1;"+(s+1)+"B",o||a.key!==n.C0.ESC+"[1;3B"||(a.key=n.C0.ESC+"[1;5B")):a.key=t?n.C0.ESC+"OB":n.C0.ESC+"[B";break;case 45:e.shiftKey||e.ctrlKey||(a.key=n.C0.ESC+"[2~");break;case 46:a.key=s?n.C0.ESC+"[3;"+(s+1)+"~":n.C0.ESC+"[3~";break;case 36:a.key=s?n.C0.ESC+"[1;"+(s+1)+"H":t?n.C0.ESC+"OH":n.C0.ESC+"[H";break;case 35:a.key=s?n.C0.ESC+"[1;"+(s+1)+"F":t?n.C0.ESC+"OF":n.C0.ESC+"[F";break;case 33:e.shiftKey?a.type=2:e.ctrlKey?a.key=n.C0.ESC+"[5;"+(s+1)+"~":a.key=n.C0.ESC+"[5~";break;case 34:e.shiftKey?a.type=3:e.ctrlKey?a.key=n.C0.ESC+"[6;"+(s+1)+"~":a.key=n.C0.ESC+"[6~";break;case 112:a.key=s?n.C0.ESC+"[1;"+(s+1)+"P":n.C0.ESC+"OP";break;case 113:a.key=s?n.C0.ESC+"[1;"+(s+1)+"Q":n.C0.ESC+"OQ";break;case 114:a.key=s?n.C0.ESC+"[1;"+(s+1)+"R":n.C0.ESC+"OR";break;case 115:a.key=s?n.C0.ESC+"[1;"+(s+1)+"S":n.C0.ESC+"OS";break;case 116:a.key=s?n.C0.ESC+"[15;"+(s+1)+"~":n.C0.ESC+"[15~";break;case 117:a.key=s?n.C0.ESC+"[17;"+(s+1)+"~":n.C0.ESC+"[17~";break;case 118:a.key=s?n.C0.ESC+"[18;"+(s+1)+"~":n.C0.ESC+"[18~";break;case 119:a.key=s?n.C0.ESC+"[19;"+(s+1)+"~":n.C0.ESC+"[19~";break;case 120:a.key=s?n.C0.ESC+"[20;"+(s+1)+"~":n.C0.ESC+"[20~";break;case 121:a.key=s?n.C0.ESC+"[21;"+(s+1)+"~":n.C0.ESC+"[21~";break;case 122:a.key=s?n.C0.ESC+"[23;"+(s+1)+"~":n.C0.ESC+"[23~";break;case 123:a.key=s?n.C0.ESC+"[24;"+(s+1)+"~":n.C0.ESC+"[24~";break;default:if(!e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)if(o&&!r||!e.altKey||e.metaKey)!o||e.altKey||e.ctrlKey||e.shiftKey||!e.metaKey?e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.keyCode>=48&&1===e.key.length?a.key=e.key:e.key&&e.ctrlKey&&("_"===e.key&&(a.key=n.C0.US),"@"===e.key&&(a.key=n.C0.NUL)):65===e.keyCode&&(a.type=1);else{var c=i[e.keyCode],p=null==c?void 0:c[e.shiftKey?1:0];if(p)a.key=n.C0.ESC+p;else if(e.keyCode>=65&&e.keyCode<=90){var l=e.ctrlKey?e.keyCode-64:e.keyCode+32,u=String.fromCharCode(l);e.shiftKey&&(u=u.toUpperCase()),a.key=n.C0.ESC+u}else"Dead"===e.key&&e.code.startsWith("Key")&&(u=e.code.slice(3,4),e.shiftKey||(u=u.toLowerCase()),a.key=n.C0.ESC+u,a.cancel=!0)}else e.keyCode>=65&&e.keyCode<=90?a.key=String.fromCharCode(e.keyCode-64):32===e.keyCode?a.key=n.C0.NUL:e.keyCode>=51&&e.keyCode<=55?a.key=String.fromCharCode(e.keyCode-51+27):56===e.keyCode?a.key=n.C0.DEL:219===e.keyCode?a.key=n.C0.ESC:220===e.keyCode?a.key=n.C0.FS:221===e.keyCode&&(a.key=n.C0.GS)}return a}},482:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Utf8ToUtf32=t.StringToUtf32=t.utf32ToString=t.stringFromCodePoint=void 0,t.stringFromCodePoint=function(e){return e>65535?(e-=65536,String.fromCharCode(55296+(e>>10))+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)},t.utf32ToString=function(e,t,o){void 0===t&&(t=0),void 0===o&&(o=e.length);for(var n="",i=t;i65535?(r-=65536,n+=String.fromCharCode(55296+(r>>10))+String.fromCharCode(r%1024+56320)):n+=String.fromCharCode(r)}return n};var o=function(){function e(){this._interim=0}return e.prototype.clear=function(){this._interim=0},e.prototype.decode=function(e,t){var o=e.length;if(!o)return 0;var n=0,i=0;this._interim&&(56320<=(s=e.charCodeAt(i++))&&s<=57343?t[n++]=1024*(this._interim-55296)+s-56320+65536:(t[n++]=this._interim,t[n++]=s),this._interim=0);for(var r=i;r=o)return this._interim=a,n;var s;56320<=(s=e.charCodeAt(r))&&s<=57343?t[n++]=1024*(a-55296)+s-56320+65536:(t[n++]=a,t[n++]=s)}else 65279!==a&&(t[n++]=a)}return n},e}();t.StringToUtf32=o;var n=function(){function e(){this.interim=new Uint8Array(3)}return e.prototype.clear=function(){this.interim.fill(0)},e.prototype.decode=function(e,t){var o=e.length;if(!o)return 0;var n,i,r,a,s=0,c=0,p=0;if(this.interim[0]){var l=!1,u=this.interim[0];u&=192==(224&u)?31:224==(240&u)?15:7;for(var b=0,d=void 0;(d=63&this.interim[++b])&&b<4;)u<<=6,u|=d;for(var M=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,h=M-b;p=o)return 0;if(128!=(192&(d=e[p++]))){p--,l=!0;break}this.interim[b++]=d,u<<=6,u|=63&d}l||(2===M?u<128?p--:t[s++]=u:3===M?u<2048||u>=55296&&u<=57343||65279===u||(t[s++]=u):u<65536||u>1114111||(t[s++]=u)),this.interim.fill(0)}for(var f=o-4,z=p;z=o)return this.interim[0]=n,s;if(128!=(192&(i=e[z++]))){z--;continue}if((c=(31&n)<<6|63&i)<128){z--;continue}t[s++]=c}else if(224==(240&n)){if(z>=o)return this.interim[0]=n,s;if(128!=(192&(i=e[z++]))){z--;continue}if(z>=o)return this.interim[0]=n,this.interim[1]=i,s;if(128!=(192&(r=e[z++]))){z--;continue}if((c=(15&n)<<12|(63&i)<<6|63&r)<2048||c>=55296&&c<=57343||65279===c)continue;t[s++]=c}else if(240==(248&n)){if(z>=o)return this.interim[0]=n,s;if(128!=(192&(i=e[z++]))){z--;continue}if(z>=o)return this.interim[0]=n,this.interim[1]=i,s;if(128!=(192&(r=e[z++]))){z--;continue}if(z>=o)return this.interim[0]=n,this.interim[1]=i,this.interim[2]=r,s;if(128!=(192&(a=e[z++]))){z--;continue}if((c=(7&n)<<18|(63&i)<<12|(63&r)<<6|63&a)<65536||c>1114111)continue;t[s++]=c}}return s},e}();t.Utf8ToUtf32=n},225:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeV6=void 0;var n,i=o(8273),r=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],a=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],s=function(){function e(){if(this.version="6",!n){n=new Uint8Array(65536),(0,i.fill)(n,1),n[0]=0,(0,i.fill)(n,0,1,32),(0,i.fill)(n,0,127,160),(0,i.fill)(n,2,4352,4448),n[9001]=2,n[9002]=2,(0,i.fill)(n,2,11904,42192),n[12351]=1,(0,i.fill)(n,2,44032,55204),(0,i.fill)(n,2,63744,64256),(0,i.fill)(n,2,65040,65050),(0,i.fill)(n,2,65072,65136),(0,i.fill)(n,2,65280,65377),(0,i.fill)(n,2,65504,65511);for(var e=0;et[i][1])return!1;for(;i>=n;)if(e>t[o=n+i>>1][1])n=o+1;else{if(!(e=131072&&e<=196605||e>=196608&&e<=262141?2:1},e}();t.UnicodeV6=s},5981:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WriteBuffer=void 0;var n=o(8460),i="undefined"==typeof queueMicrotask?function(e){Promise.resolve().then(e)}:queueMicrotask,r=function(){function e(e){this._action=e,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._onWriteParsed=new n.EventEmitter}return Object.defineProperty(e.prototype,"onWriteParsed",{get:function(){return this._onWriteParsed.event},enumerable:!1,configurable:!0}),e.prototype.writeSync=function(e,t){if(void 0!==t&&this._syncCalls>t)this._syncCalls=0;else if(this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(void 0),this._syncCalls++,!this._isSyncWriting){var o;for(this._isSyncWriting=!0;o=this._writeBuffer.shift();){this._action(o);var n=this._callbacks.shift();n&&n()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}},e.prototype.write=function(e,t){var o=this;if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return o._innerWrite()})),this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t)},e.prototype._innerWrite=function(e,t){var o=this;void 0===e&&(e=0),void 0===t&&(t=!0);for(var n=e||Date.now();this._writeBuffer.length>this._bufferOffset;){var r=this._writeBuffer[this._bufferOffset],a=this._action(r,t);if(a)return void a.catch(function(e){return i(function(){throw e}),Promise.resolve(!1)}).then(function(e){return Date.now()-n>=12?setTimeout(function(){return o._innerWrite(0,e)}):o._innerWrite(n,e)});var s=this._callbacks[this._bufferOffset];if(s&&s(),this._bufferOffset++,this._pendingData-=r.length,Date.now()-n>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(function(){return o._innerWrite()})):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()},e}();t.WriteBuffer=r},5941:function(e,t){var o=this&&this.__read||function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var n,i,r=o.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.toRgbString=t.parseColor=void 0;var n=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,i=/^[\da-f]+$/;function r(e,t){var o=e.toString(16),n=o.length<2?"0"+o:o;switch(t){case 4:return o[0];case 8:return n;case 12:return(n+n).slice(0,3);default:return n+n}}t.parseColor=function(e){if(e){var t=e.toLowerCase();if(0===t.indexOf("rgb:")){t=t.slice(4);var o=n.exec(t);if(o){var r=o[1]?15:o[4]?255:o[7]?4095:65535;return[Math.round(parseInt(o[1]||o[4]||o[7]||o[10],16)/r*255),Math.round(parseInt(o[2]||o[5]||o[8]||o[11],16)/r*255),Math.round(parseInt(o[3]||o[6]||o[9]||o[12],16)/r*255)]}}else if(0===t.indexOf("#")&&(t=t.slice(1),i.exec(t)&&[3,6,9,12].includes(t.length))){for(var a=t.length/3,s=[0,0,0],c=0;c<3;++c){var p=parseInt(t.slice(a*c,a*c+a),16);s[c]=1===a?p<<4:2===a?p:3===a?p>>4:p>>8}return s}}},t.toRgbString=function(e,t){void 0===t&&(t=16);var n=o(e,3),i=n[0],a=n[1],s=n[2];return"rgb:"+r(i,t)+"/"+r(a,t)+"/"+r(s,t)}},5770:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PAYLOAD_LIMIT=void 0,t.PAYLOAD_LIMIT=1e7},6351:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DcsHandler=t.DcsParser=void 0;var n=o(482),i=o(8742),r=o(5770),a=[],s=function(){function e(){this._handlers=Object.create(null),this._active=a,this._ident=0,this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return e.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=a},e.prototype.registerHandler=function(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);var o=this._handlers[e];return o.push(t),{dispose:function(){var e=o.indexOf(t);-1!==e&&o.splice(e,1)}}},e.prototype.clearHandler=function(e){this._handlers[e]&&delete this._handlers[e]},e.prototype.setHandlerFallback=function(e){this._handlerFb=e},e.prototype.reset=function(){if(this._active.length)for(var e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].unhook(!1);this._stack.paused=!1,this._active=a,this._ident=0},e.prototype.hook=function(e,t){if(this.reset(),this._ident=e,this._active=this._handlers[e]||a,this._active.length)for(var o=this._active.length-1;o>=0;o--)this._active[o].hook(t);else this._handlerFb(this._ident,"HOOK",t)},e.prototype.put=function(e,t,o){if(this._active.length)for(var i=this._active.length-1;i>=0;i--)this._active[i].put(e,t,o);else this._handlerFb(this._ident,"PUT",(0,n.utf32ToString)(e,t,o))},e.prototype.unhook=function(e,t){if(void 0===t&&(t=!0),this._active.length){var o=!1,n=this._active.length-1,i=!1;if(this._stack.paused&&(n=this._stack.loopPosition-1,o=t,i=this._stack.fallThrough,this._stack.paused=!1),!i&&!1===o){for(;n>=0&&!0!==(o=this._active[n].unhook(e));n--)if(o instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=n,this._stack.fallThrough=!1,o;n--}for(;n>=0;n--)if((o=this._active[n].unhook(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=n,this._stack.fallThrough=!0,o}else this._handlerFb(this._ident,"UNHOOK",e);this._active=a,this._ident=0},e}();t.DcsParser=s;var c=new i.Params;c.addParam(0);var p=function(){function e(e){this._handler=e,this._data="",this._params=c,this._hitLimit=!1}return e.prototype.hook=function(e){this._params=e.length>1||e.params[0]?e.clone():c,this._data="",this._hitLimit=!1},e.prototype.put=function(e,t,o){this._hitLimit||(this._data+=(0,n.utf32ToString)(e,t,o),this._data.length>r.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},e.prototype.unhook=function(e){var t=this,o=!1;if(this._hitLimit)o=!1;else if(e&&(o=this._handler(this._data,this._params))instanceof Promise)return o.then(function(e){return t._params=c,t._data="",t._hitLimit=!1,e});return this._params=c,this._data="",this._hitLimit=!1,o},e}();t.DcsHandler=p},2015:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0}),t.EscapeSequenceParser=t.VT500_TRANSITION_TABLE=t.TransitionTable=void 0;var r=o(844),a=o(8273),s=o(8742),c=o(6242),p=o(6351),l=function(){function e(e){this.table=new Uint8Array(e)}return e.prototype.setDefault=function(e,t){(0,a.fill)(this.table,e<<4|t)},e.prototype.add=function(e,t,o,n){this.table[t<<8|e]=o<<4|n},e.prototype.addMany=function(e,t,o,n){for(var i=0;i1)throw new Error("only one byte as prefix supported");if((o=e.prefix.charCodeAt(0))&&60>o||o>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(e.intermediates){if(e.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var n=0;ni||i>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");o<<=8,o|=i}}if(1!==e.final.length)throw new Error("final must be a single byte");var r=e.final.charCodeAt(0);if(t[0]>r||r>t[1])throw new Error("final must be in range "+t[0]+" .. "+t[1]);return(o<<=8)|r},o.prototype.identToString=function(e){for(var t=[];e;)t.push(String.fromCharCode(255&e)),e>>=8;return t.reverse().join("")},o.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},o.prototype.setPrintHandler=function(e){this._printHandler=e},o.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},o.prototype.registerEscHandler=function(e,t){var o=this._identifier(e,[48,126]);void 0===this._escHandlers[o]&&(this._escHandlers[o]=[]);var n=this._escHandlers[o];return n.push(t),{dispose:function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}},o.prototype.clearEscHandler=function(e){this._escHandlers[this._identifier(e,[48,126])]&&delete this._escHandlers[this._identifier(e,[48,126])]},o.prototype.setEscHandlerFallback=function(e){this._escHandlerFb=e},o.prototype.setExecuteHandler=function(e,t){this._executeHandlers[e.charCodeAt(0)]=t},o.prototype.clearExecuteHandler=function(e){this._executeHandlers[e.charCodeAt(0)]&&delete this._executeHandlers[e.charCodeAt(0)]},o.prototype.setExecuteHandlerFallback=function(e){this._executeHandlerFb=e},o.prototype.registerCsiHandler=function(e,t){var o=this._identifier(e);void 0===this._csiHandlers[o]&&(this._csiHandlers[o]=[]);var n=this._csiHandlers[o];return n.push(t),{dispose:function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}},o.prototype.clearCsiHandler=function(e){this._csiHandlers[this._identifier(e)]&&delete this._csiHandlers[this._identifier(e)]},o.prototype.setCsiHandlerFallback=function(e){this._csiHandlerFb=e},o.prototype.registerDcsHandler=function(e,t){return this._dcsParser.registerHandler(this._identifier(e),t)},o.prototype.clearDcsHandler=function(e){this._dcsParser.clearHandler(this._identifier(e))},o.prototype.setDcsHandlerFallback=function(e){this._dcsParser.setHandlerFallback(e)},o.prototype.registerOscHandler=function(e,t){return this._oscParser.registerHandler(e,t)},o.prototype.clearOscHandler=function(e){this._oscParser.clearHandler(e)},o.prototype.setOscHandlerFallback=function(e){this._oscParser.setHandlerFallback(e)},o.prototype.setErrorHandler=function(e){this._errorHandler=e},o.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},o.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,0!==this._parseStack.state&&(this._parseStack.state=2,this._parseStack.handlers=[])},o.prototype._preserveStack=function(e,t,o,n,i){this._parseStack.state=e,this._parseStack.handlers=t,this._parseStack.handlerPos=o,this._parseStack.transition=n,this._parseStack.chunkPos=i},o.prototype.parse=function(e,t,o){var n,i=0,r=0,a=0;if(this._parseStack.state)if(2===this._parseStack.state)this._parseStack.state=0,a=this._parseStack.chunkPos+1;else{if(void 0===o||1===this._parseStack.state)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");var s=this._parseStack.handlers,c=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(!1===o&&c>-1)for(;c>=0&&!0!==(n=s[c](this._params));c--)if(n instanceof Promise)return this._parseStack.handlerPos=c,n;this._parseStack.handlers=[];break;case 4:if(!1===o&&c>-1)for(;c>=0&&!0!==(n=s[c]());c--)if(n instanceof Promise)return this._parseStack.handlerPos=c,n;this._parseStack.handlers=[];break;case 6:if(i=e[this._parseStack.chunkPos],n=this._dcsParser.unhook(24!==i&&26!==i,o))return n;27===i&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(i=e[this._parseStack.chunkPos],n=this._oscParser.end(24!==i&&26!==i,o))return n;27===i&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,a=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(var p=a;p>4){case 2:for(var l=p+1;;++l){if(l>=t||(i=e[l])<32||i>126&&i=t||(i=e[l])<32||i>126&&i=t||(i=e[l])<32||i>126&&i=t||(i=e[l])<32||i>126&&i=0&&!0!==(n=s[b](this._params));b--)if(n instanceof Promise)return this._preserveStack(3,s,b,r,p),n;b<0&&this._csiHandlerFb(this._collect<<8|i,this._params),this.precedingCodepoint=0;break;case 8:do{switch(i){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(i-48)}}while(++p47&&i<60);p--;break;case 9:this._collect<<=8,this._collect|=i;break;case 10:for(var d=this._escHandlers[this._collect<<8|i],M=d?d.length-1:-1;M>=0&&!0!==(n=d[M]());M--)if(n instanceof Promise)return this._preserveStack(4,d,M,r,p),n;M<0&&this._escHandlerFb(this._collect<<8|i),this.precedingCodepoint=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|i,this._params);break;case 13:for(var h=p+1;;++h)if(h>=t||24===(i=e[h])||26===i||27===i||i>127&&i=t||(i=e[f])<32||i>127&&i{Object.defineProperty(t,"__esModule",{value:!0}),t.OscHandler=t.OscParser=void 0;var n=o(5770),i=o(482),r=[],a=function(){function e(){this._state=0,this._active=r,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return e.prototype.registerHandler=function(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);var o=this._handlers[e];return o.push(t),{dispose:function(){var e=o.indexOf(t);-1!==e&&o.splice(e,1)}}},e.prototype.clearHandler=function(e){this._handlers[e]&&delete this._handlers[e]},e.prototype.setHandlerFallback=function(e){this._handlerFb=e},e.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=r},e.prototype.reset=function(){if(2===this._state)for(var e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].end(!1);this._stack.paused=!1,this._active=r,this._id=-1,this._state=0},e.prototype._start=function(){if(this._active=this._handlers[this._id]||r,this._active.length)for(var e=this._active.length-1;e>=0;e--)this._active[e].start();else this._handlerFb(this._id,"START")},e.prototype._put=function(e,t,o){if(this._active.length)for(var n=this._active.length-1;n>=0;n--)this._active[n].put(e,t,o);else this._handlerFb(this._id,"PUT",(0,i.utf32ToString)(e,t,o))},e.prototype.start=function(){this.reset(),this._state=1},e.prototype.put=function(e,t,o){if(3!==this._state){if(1===this._state)for(;t0&&this._put(e,t,o)}},e.prototype.end=function(e,t){if(void 0===t&&(t=!0),0!==this._state){if(3!==this._state)if(1===this._state&&this._start(),this._active.length){var o=!1,n=this._active.length-1,i=!1;if(this._stack.paused&&(n=this._stack.loopPosition-1,o=t,i=this._stack.fallThrough,this._stack.paused=!1),!i&&!1===o){for(;n>=0&&!0!==(o=this._active[n].end(e));n--)if(o instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=n,this._stack.fallThrough=!1,o;n--}for(;n>=0;n--)if((o=this._active[n].end(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=n,this._stack.fallThrough=!0,o}else this._handlerFb(this._id,"END",e);this._active=r,this._id=-1,this._state=0}},e}();t.OscParser=a;var s=function(){function e(e){this._handler=e,this._data="",this._hitLimit=!1}return e.prototype.start=function(){this._data="",this._hitLimit=!1},e.prototype.put=function(e,t,o){this._hitLimit||(this._data+=(0,i.utf32ToString)(e,t,o),this._data.length>n.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},e.prototype.end=function(e){var t=this,o=!1;if(this._hitLimit)o=!1;else if(e&&(o=this._handler(this._data))instanceof Promise)return o.then(function(e){return t._data="",t._hitLimit=!1,e});return this._data="",this._hitLimit=!1,o},e}();t.OscHandler=s},8742:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Params=void 0;var o=2147483647,n=function(){function e(e,t){if(void 0===e&&(e=32),void 0===t&&(t=32),this.maxLength=e,this.maxSubParamsLength=t,t>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(e),this.length=0,this._subParams=new Int32Array(t),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(e),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return e.fromArray=function(t){var o=new e;if(!t.length)return o;for(var n=Array.isArray(t[0])?1:0;n>8,n=255&this._subParamsIdx[t];n-o>0&&e.push(Array.prototype.slice.call(this._subParams,o,n))}return e},e.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},e.prototype.addParam=function(e){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=e>o?o:e}},e.prototype.addSubParam=function(e){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=e>o?o:e,this._subParamsIdx[this.length-1]++}},e.prototype.hasSubParams=function(e){return(255&this._subParamsIdx[e])-(this._subParamsIdx[e]>>8)>0},e.prototype.getSubParams=function(e){var t=this._subParamsIdx[e]>>8,o=255&this._subParamsIdx[e];return o-t>0?this._subParams.subarray(t,o):null},e.prototype.getSubParamsAll=function(){for(var e={},t=0;t>8,n=255&this._subParamsIdx[t];n-o>0&&(e[t]=this._subParams.slice(o,n))}return e},e.prototype.addDigit=function(e){var t;if(!(this._rejectDigits||!(t=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var n=this._digitIsSub?this._subParams:this.params,i=n[t-1];n[t-1]=~i?Math.min(10*i+e,o):e}},e}();t.Params=n},5741:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AddonManager=void 0;var o=function(){function e(){this._addons=[]}return e.prototype.dispose=function(){for(var e=this._addons.length-1;e>=0;e--)this._addons[e].instance.dispose()},e.prototype.loadAddon=function(e,t){var o=this,n={instance:t,dispose:t.dispose,isDisposed:!1};this._addons.push(n),t.dispose=function(){return o._wrappedAddonDispose(n)},t.activate(e)},e.prototype._wrappedAddonDispose=function(e){if(!e.isDisposed){for(var t=-1,o=0;o{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferApiView=void 0;var n=o(3785),i=o(511),r=function(){function e(e,t){this._buffer=e,this.type=t}return e.prototype.init=function(e){return this._buffer=e,this},Object.defineProperty(e.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),e.prototype.getLine=function(e){var t=this._buffer.lines.get(e);if(t)return new n.BufferLineApiView(t)},e.prototype.getNullCell=function(){return new i.CellData},e}();t.BufferApiView=r},3785:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLineApiView=void 0;var n=o(511),i=function(){function e(e){this._line=e}return Object.defineProperty(e.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),e.prototype.getCell=function(e,t){if(!(e<0||e>=this._line.length))return t?(this._line.loadCell(e,t),t):this._line.loadCell(e,new n.CellData)},e.prototype.translateToString=function(e,t,o){return this._line.translateToString(e,t,o)},e}();t.BufferLineApiView=i},8285:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferNamespaceApi=void 0;var n=o(8771),i=o(8460),r=function(){function e(e){var t=this;this._core=e,this._onBufferChange=new i.EventEmitter,this._normal=new n.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new n.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(function(){return t._onBufferChange.fire(t.active)})}return Object.defineProperty(e.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"active",{get:function(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"normal",{get:function(){return this._normal.init(this._core.buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alternate",{get:function(){return this._alternate.init(this._core.buffers.alt)},enumerable:!1,configurable:!0}),e}();t.BufferNamespaceApi=r},7975:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ParserApi=void 0;var o=function(){function e(e){this._core=e}return e.prototype.registerCsiHandler=function(e,t){return this._core.registerCsiHandler(e,function(e){return t(e.toArray())})},e.prototype.addCsiHandler=function(e,t){return this.registerCsiHandler(e,t)},e.prototype.registerDcsHandler=function(e,t){return this._core.registerDcsHandler(e,function(e,o){return t(e,o.toArray())})},e.prototype.addDcsHandler=function(e,t){return this.registerDcsHandler(e,t)},e.prototype.registerEscHandler=function(e,t){return this._core.registerEscHandler(e,t)},e.prototype.addEscHandler=function(e,t){return this.registerEscHandler(e,t)},e.prototype.registerOscHandler=function(e,t){return this._core.registerOscHandler(e,t)},e.prototype.addOscHandler=function(e,t){return this.registerOscHandler(e,t)},e}();t.ParserApi=o},7090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeApi=void 0;var o=function(){function e(e){this._core=e}return e.prototype.register=function(e){this._core.unicodeService.register(e)},Object.defineProperty(e.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(e){this._core.unicodeService.activeVersion=e},enumerable:!1,configurable:!0}),e}();t.UnicodeApi=o},744:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferService=t.MINIMUM_ROWS=t.MINIMUM_COLS=void 0;var s=o(2585),c=o(5295),p=o(8460),l=o(844);t.MINIMUM_COLS=2,t.MINIMUM_ROWS=1;var u=function(e){function o(o){var n=e.call(this)||this;return n._optionsService=o,n.isUserScrolling=!1,n._onResize=new p.EventEmitter,n._onScroll=new p.EventEmitter,n.cols=Math.max(o.rawOptions.cols||0,t.MINIMUM_COLS),n.rows=Math.max(o.rawOptions.rows||0,t.MINIMUM_ROWS),n.buffers=new c.BufferSet(o,n),n}return i(o,e),Object.defineProperty(o.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),o.prototype.dispose=function(){e.prototype.dispose.call(this),this.buffers.dispose()},o.prototype.resize=function(e,t){this.cols=e,this.rows=t,this.buffers.resize(e,t),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:e,rows:t})},o.prototype.reset=function(){this.buffers.reset(),this.isUserScrolling=!1},o.prototype.scroll=function(e,t){void 0===t&&(t=!1);var o,n=this.buffer;(o=this._cachedBlankLine)&&o.length===this.cols&&o.getFg(0)===e.fg&&o.getBg(0)===e.bg||(o=n.getBlankLine(e,t),this._cachedBlankLine=o),o.isWrapped=t;var i=n.ybase+n.scrollTop,r=n.ybase+n.scrollBottom;if(0===n.scrollTop){var a=n.lines.isFull;r===n.lines.length-1?a?n.lines.recycle().copyFrom(o):n.lines.push(o.clone()):n.lines.splice(r+1,0,o.clone()),a?this.isUserScrolling&&(n.ydisp=Math.max(n.ydisp-1,0)):(n.ybase++,this.isUserScrolling||n.ydisp++)}else{var s=r-i+1;n.lines.shiftElements(i+1,s-1,-1),n.lines.set(r,o.clone())}this.isUserScrolling||(n.ydisp=n.ybase),this._onScroll.fire(n.ydisp)},o.prototype.scrollLines=function(e,t,o){var n=this.buffer;if(e<0){if(0===n.ydisp)return;this.isUserScrolling=!0}else e+n.ydisp>=n.ybase&&(this.isUserScrolling=!1);var i=n.ydisp;n.ydisp=Math.max(Math.min(n.ydisp+e,n.ybase),0),i!==n.ydisp&&(t||this._onScroll.fire(n.ydisp))},o.prototype.scrollPages=function(e){this.scrollLines(e*(this.rows-1))},o.prototype.scrollToTop=function(){this.scrollLines(-this.buffer.ydisp)},o.prototype.scrollToBottom=function(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)},o.prototype.scrollToLine=function(e){var t=e-this.buffer.ydisp;0!==t&&this.scrollLines(t)},r([a(0,s.IOptionsService)],o)}(l.Disposable);t.BufferService=u},7994:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CharsetService=void 0;var o=function(){function e(){this.glevel=0,this._charsets=[]}return e.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},e.prototype.setgLevel=function(e){this.glevel=e,this.charset=this._charsets[e]},e.prototype.setgCharset=function(e,t){this._charsets[e]=t,this.glevel===e&&(this.charset=t)},e}();t.CharsetService=o},1753:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}},r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],n=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreMouseService=void 0;var a=o(2585),s=o(8460),c={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(e){return 4!==e.button&&1===e.action&&(e.ctrl=!1,e.alt=!1,e.shift=!1,!0)}},VT200:{events:19,restrict:function(e){return 32!==e.action}},DRAG:{events:23,restrict:function(e){return 32!==e.action||3!==e.button}},ANY:{events:31,restrict:function(e){return!0}}};function p(e,t){var o=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return 4===e.button?(o|=64,o|=e.action):(o|=3&e.button,4&e.button&&(o|=64),8&e.button&&(o|=128),32===e.action?o|=32:0!==e.action||t||(o|=3)),o}var l=String.fromCharCode,u={DEFAULT:function(e){var t=[p(e,!1)+32,e.col+32,e.row+32];return t[0]>255||t[1]>255||t[2]>255?"":""+l(t[0])+l(t[1])+l(t[2])},SGR:function(e){var t=0===e.action&&4!==e.button?"m":"M";return"[<"+p(e,!0)+";"+e.col+";"+e.row+t}},b=function(){function e(e,t){var o,n,i,a;this._bufferService=e,this._coreService=t,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new s.EventEmitter,this._lastEvent=null;try{for(var p=r(Object.keys(c)),l=p.next();!l.done;l=p.next()){var b=l.value;this.addProtocol(b,c[b])}}catch(e){o={error:e}}finally{try{l&&!l.done&&(n=p.return)&&n.call(p)}finally{if(o)throw o.error}}try{for(var d=r(Object.keys(u)),M=d.next();!M.done;M=d.next()){var h=M.value;this.addEncoding(h,u[h])}}catch(e){i={error:e}}finally{try{M&&!M.done&&(a=d.return)&&a.call(d)}finally{if(i)throw i.error}}this.reset()}return e.prototype.addProtocol=function(e,t){this._protocols[e]=t},e.prototype.addEncoding=function(e,t){this._encodings[e]=t},Object.defineProperty(e.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(e){if(!this._protocols[e])throw new Error('unknown protocol "'+e+'"');this._activeProtocol=e,this._onProtocolChange.fire(this._protocols[e].events)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"areMouseEventsActive",{get:function(){return 0!==this._protocols[this._activeProtocol].events},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(e){if(!this._encodings[e])throw new Error('unknown encoding "'+e+'"');this._activeEncoding=e},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(e.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),e.prototype.triggerMouseEvent=function(e){if(e.col<0||e.col>=this._bufferService.cols||e.row<0||e.row>=this._bufferService.rows)return!1;if(4===e.button&&32===e.action)return!1;if(3===e.button&&32!==e.action)return!1;if(4!==e.button&&(2===e.action||3===e.action))return!1;if(e.col++,e.row++,32===e.action&&this._lastEvent&&this._compareEvents(this._lastEvent,e))return!1;if(!this._protocols[this._activeProtocol].restrict(e))return!1;var t=this._encodings[this._activeEncoding](e);return t&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=e,!0},e.prototype.explainEvents=function(e){return{down:!!(1&e),up:!!(2&e),drag:!!(4&e),move:!!(8&e),wheel:!!(16&e)}},e.prototype._compareEvents=function(e,t){return e.col===t.col&&e.row===t.row&&e.button===t.button&&e.action===t.action&&e.ctrl===t.ctrl&&e.alt===t.alt&&e.shift===t.shift},n([i(0,a.IBufferService),i(1,a.ICoreService)],e)}();t.CoreMouseService=b},6975:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreService=void 0;var s=o(2585),c=o(8460),p=o(1439),l=o(844),u=Object.freeze({insertMode:!1}),b=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),d=function(e){function t(t,o,n,i){var r=e.call(this)||this;return r._bufferService=o,r._logService=n,r._optionsService=i,r.isCursorInitialized=!1,r.isCursorHidden=!1,r._onData=r.register(new c.EventEmitter),r._onUserInput=r.register(new c.EventEmitter),r._onBinary=r.register(new c.EventEmitter),r._scrollToBottom=t,r.register({dispose:function(){return r._scrollToBottom=void 0}}),r.modes=(0,p.clone)(u),r.decPrivateModes=(0,p.clone)(b),r}return i(t,e),Object.defineProperty(t.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),t.prototype.reset=function(){this.modes=(0,p.clone)(u),this.decPrivateModes=(0,p.clone)(b)},t.prototype.triggerDataEvent=function(e,t){if(void 0===t&&(t=!1),!this._optionsService.rawOptions.disableStdin){var o=this._bufferService.buffer;o.ybase!==o.ydisp&&this._scrollToBottom(),t&&this._onUserInput.fire(),this._logService.debug('sending data "'+e+'"',function(){return e.split("").map(function(e){return e.charCodeAt(0)})}),this._onData.fire(e)}},t.prototype.triggerBinaryEvent=function(e){this._optionsService.rawOptions.disableStdin||(this._logService.debug('sending binary "'+e+'"',function(){return e.split("").map(function(e){return e.charCodeAt(0)})}),this._onBinary.fire(e))},r([a(1,s.IBufferService),a(2,s.ILogService),a(3,s.IOptionsService)],t)}(l.Disposable);t.CoreService=d},9074:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__generator||function(e,t){var o,n,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,n&&(i=2&r[0]?n.return:r[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,r[1])).done)return i;switch(n=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,n=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.DecorationService=void 0;var s=o(8055),c=o(8460),p=o(844),l=o(6106),u=function(e){function t(){var t=e.call(this)||this;return t._decorations=new l.SortedList(function(e){return e.marker.line}),t._onDecorationRegistered=t.register(new c.EventEmitter),t._onDecorationRemoved=t.register(new c.EventEmitter),t}return i(t,e),Object.defineProperty(t.prototype,"onDecorationRegistered",{get:function(){return this._onDecorationRegistered.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onDecorationRemoved",{get:function(){return this._onDecorationRemoved.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"decorations",{get:function(){return this._decorations.values()},enumerable:!1,configurable:!0}),t.prototype.registerDecoration=function(e){var t=this;if(!e.marker.isDisposed){var o=new b(e);if(o){var n=o.marker.onDispose(function(){return o.dispose()});o.onDispose(function(){o&&(t._decorations.delete(o)&&t._onDecorationRemoved.fire(o),n.dispose())}),this._decorations.insert(o),this._onDecorationRegistered.fire(o)}return o}},t.prototype.reset=function(){var e,t;try{for(var o=a(this._decorations.values()),n=o.next();!n.done;n=o.next())n.value.dispose()}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}this._decorations.clear()},t.prototype.getDecorationsAtLine=function(e){return r(this,function(t){return[2,this._decorations.getKeyIterator(e)]})},t.prototype.getDecorationsAtCell=function(e,t,o){var n,i,s,c,p,l,u,b,d,M,h;return r(this,function(r){switch(r.label){case 0:n=0,i=0,r.label=1;case 1:r.trys.push([1,6,7,8]),s=a(this._decorations.getKeyIterator(t)),c=s.next(),r.label=2;case 2:return c.done?[3,5]:(p=c.value,n=null!==(d=p.options.x)&&void 0!==d?d:0,i=n+(null!==(M=p.options.width)&&void 0!==M?M:1),!(e>=n&&e=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirtyRowService=void 0;var r=o(2585),a=function(){function e(e){this._bufferService=e,this.clearRange()}return Object.defineProperty(e.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),e.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},e.prototype.markDirty=function(e){ethis._end&&(this._end=e)},e.prototype.markRangeDirty=function(e,t){if(e>t){var o=e;e=t,t=o}ethis._end&&(this._end=t)},e.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},n([i(0,r.IBufferService)],e)}();t.DirtyRowService=a},4348:function(e,t,o){var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],n=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var n,i,r=o.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a},r=this&&this.__spreadArray||function(e,t,o){if(o||2===arguments.length)for(var n,i=0,r=t.length;i0?p[0].index:a.length;if(a.length!==h)throw new Error("[createInstance] First service dependency of "+e.name+" at position "+(h+1)+" conflicts with "+a.length+" static arguments");return new(e.bind.apply(e,r([void 0],i(r(r([],i(a),!1),i(l),!1)),!1)))},e}();t.InstantiationService=p},7866:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}},r=this&&this.__read||function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var n,i,r=o.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a},a=this&&this.__spreadArray||function(e,t,o){if(o||2===arguments.length)for(var n,i=0,r=t.length;i{function o(e,t,o){t.di$target===t?t.di$dependencies.push({id:e,index:o}):(t.di$dependencies=[{id:e,index:o}],t.di$target=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.createDecorator=t.getServiceDependencies=t.serviceRegistry=void 0,t.serviceRegistry=new Map,t.getServiceDependencies=function(e){return e.di$dependencies||[]},t.createDecorator=function(e){if(t.serviceRegistry.has(e))return t.serviceRegistry.get(e);var n=function(e,t,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");o(n,e,i)};return n.toString=function(){return e},t.serviceRegistry.set(e,n),n}},2585:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IDecorationService=t.IUnicodeService=t.IOptionsService=t.ILogService=t.LogLevelEnum=t.IInstantiationService=t.IDirtyRowService=t.ICharsetService=t.ICoreService=t.ICoreMouseService=t.IBufferService=void 0;var n,i=o(8343);t.IBufferService=(0,i.createDecorator)("BufferService"),t.ICoreMouseService=(0,i.createDecorator)("CoreMouseService"),t.ICoreService=(0,i.createDecorator)("CoreService"),t.ICharsetService=(0,i.createDecorator)("CharsetService"),t.IDirtyRowService=(0,i.createDecorator)("DirtyRowService"),t.IInstantiationService=(0,i.createDecorator)("InstantiationService"),(n=t.LogLevelEnum||(t.LogLevelEnum={}))[n.DEBUG=0]="DEBUG",n[n.INFO=1]="INFO",n[n.WARN=2]="WARN",n[n.ERROR=3]="ERROR",n[n.OFF=4]="OFF",t.ILogService=(0,i.createDecorator)("LogService"),t.IOptionsService=(0,i.createDecorator)("OptionsService"),t.IUnicodeService=(0,i.createDecorator)("UnicodeService"),t.IDecorationService=(0,i.createDecorator)("DecorationService")},1480:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeService=void 0;var n=o(8460),i=o(225),r=function(){function e(){this._providers=Object.create(null),this._active="",this._onChange=new n.EventEmitter;var e=new i.UnicodeV6;this.register(e),this._active=e.version,this._activeProvider=e}return Object.defineProperty(e.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeVersion",{get:function(){return this._active},set:function(e){if(!this._providers[e])throw new Error('unknown Unicode version "'+e+'"');this._active=e,this._activeProvider=this._providers[e],this._onChange.fire(e)},enumerable:!1,configurable:!0}),e.prototype.register=function(e){this._providers[e.version]=e},e.prototype.wcwidth=function(e){return this._activeProvider.wcwidth(e)},e.prototype.getStringCellWidth=function(e){for(var t=0,o=e.length,n=0;n=o)return t+this.wcwidth(i);var r=e.charCodeAt(n);56320<=r&&r<=57343?i=1024*(i-55296)+r-56320+65536:t+=this.wcwidth(r)}t+=this.wcwidth(i)}return t},e}();t.UnicodeService=r}},t={};return function o(n){var i=t[n];if(void 0!==i)return i.exports;var r=t[n]={exports:{}};return e[n].call(r.exports,r,r.exports,o),r.exports}(4389)})()})},fcf8:function(e,t,o){},fd0f:function(e,t,o){},fe37:function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=o("fba3"),r=o("3b4c"),a=o("3623"),s=o("c444"),c=o("5eb6");function p(e){return"zoom"in e}function l(e){var t=1,o=a.findParentByFeature(e,c.isViewport);return o&&(t=o.zoom),t}t.isZoomable=p,t.getZoom=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.wheel=function(e,t){var o=a.findParentByFeature(e,c.isViewport);if(o){var n=this.getZoomFactor(t),i=this.getViewportOffset(e.root,t),r=1/(n*o.zoom)-1/o.zoom,p={scroll:{x:o.scroll.x-r*i.x,y:o.scroll.y-r*i.y},zoom:o.zoom*n};return[new s.SetViewportAction(o.id,p,!1)]}return[]},t.prototype.getViewportOffset=function(e,t){var o=e.canvasBounds,n=i.getWindowScroll();return{x:t.clientX+n.x-o.x,y:t.clientY+n.y-o.y}},t.prototype.getZoomFactor=function(e){return e.deltaMode===e.DOM_DELTA_PAGE?Math.exp(.5*-e.deltaY):e.deltaMode===e.DOM_DELTA_LINE?Math.exp(.05*-e.deltaY):Math.exp(.005*-e.deltaY)},t}(r.MouseListener);t.ZoomMouseListener=u},ff70:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="http://www.w3.org/1999/xlink",i="http://www.w3.org/XML/1998/namespace",r=58,a=120;function s(e,t){var o,s=t.elm,c=e.data.attrs,p=t.data.attrs;if((c||p)&&c!==p){for(o in c=c||{},p=p||{},p){var l=p[o],u=c[o];u!==l&&(!0===l?s.setAttribute(o,""):!1===l?s.removeAttribute(o):o.charCodeAt(0)!==a?s.setAttribute(o,l):o.charCodeAt(3)===r?s.setAttributeNS(i,o,l):o.charCodeAt(5)===r?s.setAttributeNS(n,o,l):s.setAttribute(o,l))}for(o in c)o in p||s.removeAttribute(o)}}t.attributesModule={create:s,update:s},t.default=t.attributesModule}}]); \ No newline at end of file diff --git a/klab.engine/src/main/resources/static/ui/js/6619c582.b94b64e5.js b/klab.engine/src/main/resources/static/ui/js/6619c582.b94b64e5.js deleted file mode 100644 index 2cf1b7309..000000000 --- a/klab.engine/src/main/resources/static/ui/js/6619c582.b94b64e5.js +++ /dev/null @@ -1,29 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["6619c582"],{"019a":function(e,t,o){},"0300":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("30e3"),i=function(){function e(){this._map=new Map}return e.prototype.getMap=function(){return this._map},e.prototype.add=function(e,t){if(null===e||void 0===e)throw new Error(n.NULL_ARGUMENT);if(null===t||void 0===t)throw new Error(n.NULL_ARGUMENT);var o=this._map.get(e);void 0!==o?(o.push(t),this._map.set(e,o)):this._map.set(e,[t])},e.prototype.get=function(e){if(null===e||void 0===e)throw new Error(n.NULL_ARGUMENT);var t=this._map.get(e);if(void 0!==t)return t;throw new Error(n.KEY_NOT_FOUND)},e.prototype.remove=function(e){if(null===e||void 0===e)throw new Error(n.NULL_ARGUMENT);if(!this._map.delete(e))throw new Error(n.KEY_NOT_FOUND)},e.prototype.removeByCondition=function(e){var t=this;this._map.forEach(function(o,n){var i=o.filter(function(t){return!e(t)});i.length>0?t._map.set(n,i):t._map.delete(n)})},e.prototype.hasKey=function(e){if(null===e||void 0===e)throw new Error(n.NULL_ARGUMENT);return this._map.has(e)},e.prototype.clone=function(){var t=new e;return this._map.forEach(function(e,o){e.forEach(function(e){return t.add(o,e.clone())})}),t},e.prototype.traverse=function(e){this._map.forEach(function(t,o){e(o,t)})},e}();t.Lookup=i},"0312":function(e,t){var o=!("undefined"===typeof window||!window.document||!window.document.createElement);e.exports=o},"0483":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("b485"),a=new n.ContainerModule(function(e){e(i.TYPES.MouseListener).to(r.OpenMouseListener)});t.default=a},"04c2":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("4741"),a=new n.ContainerModule(function(e){e(i.TYPES.IButtonHandler).toConstructor(r.ExpandButtonHandler)});t.default=a},"0505":function(e,t,o){},"064a":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("393a"),c=o("e1c6"),p=o("6923"),l=o("3864"),u=o("dd02"),b=o("7b39"),d=o("302f"),M=o("3623"),h=function(e){function t(t){var o=e.call(this)||this;return o.registerDefaults(),t.forEach(function(e){return o.register(e.type,e.factory())}),o}return n(t,e),t.prototype.registerDefaults=function(){this.register(d.EMPTY_ROOT.type,new O)},t.prototype.missing=function(e){return new A},t=i([c.injectable(),a(0,c.multiInject(p.TYPES.ViewRegistration)),a(0,c.optional()),r("design:paramtypes",[Array])],t),t}(l.InstanceRegistry);function f(e,t,o,n,i){M.registerModelElement(e,t,o,i),z(e,t,n)}function z(e,t,o){if("function"===typeof o){if(!b.isInjectable(o))throw new Error("Views should be @injectable: "+o.name);e.isBound(o)||e.bind(o).toSelf()}e.bind(p.TYPES.ViewRegistration).toDynamicValue(function(e){return{type:t,factory:function(){return e.container.get(o)}}})}t.ViewRegistry=h,t.configureModelElement=f,t.configureView=z;var O=function(){function e(){}return e.prototype.render=function(e,t){return s.svg("svg",{"class-sprotty-empty":!0})},e=i([c.injectable()],e),e}();t.EmptyView=O;var A=function(){function e(){}return e.prototype.render=function(e,t){var o=e.position||u.ORIGIN_POINT;return s.svg("text",{"class-sprotty-missing":!0,x:o.x,y:o.y},"?",e.id,"?")},e=i([c.injectable()],e),e}();t.MissingView=A},"0960":function(e,t,o){e.exports=o("b19a")},"0a28":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__spreadArrays||function(){for(var e=0,t=0,o=arguments.length;t"+e+""}),o},t.prototype.renderIcon=function(e,t){e.innerHTML+=''},t.prototype.filterActions=function(e,t){return M.toArray(t.filter(function(t){var o=t.label.toLowerCase(),n=e.split(" ");return n.every(function(e){return-1!==o.indexOf(e.toLowerCase())})}))},t.prototype.customizeSuggestionContainer=function(e,t,o){this.containerElement&&this.containerElement.appendChild(e)},t.prototype.hide=function(){e.prototype.hide.call(this),this.autoCompleteResult&&this.autoCompleteResult.destroy()},t.prototype.executeAction=function(e){var t=this;this.actionDispatcherProvider().then(function(t){return t.dispatchAll(g(e))}).catch(function(e){return t.logger.error(t,"No action dispatcher available to execute command palette action",e)})},t.ID="command-palette",t.isInvokePaletteKey=function(e){return h.matchesKeystroke(e,"Space","ctrl")},i([s.inject(p.TYPES.IActionDispatcherProvider),r("design:type",Function)],t.prototype,"actionDispatcherProvider",void 0),i([s.inject(p.TYPES.ICommandPaletteActionProviderRegistry),r("design:type",O.CommandPaletteActionProviderRegistry)],t.prototype,"actionProviderRegistry",void 0),i([s.inject(p.TYPES.ViewerOptions),r("design:type",Object)],t.prototype,"viewerOptions",void 0),i([s.inject(p.TYPES.DOMHelper),r("design:type",b.DOMHelper)],t.prototype,"domHelper",void 0),i([s.inject(A.MousePositionTracker),r("design:type",A.MousePositionTracker)],t.prototype,"mousePositionTracker",void 0),t=o=i([s.injectable()],t),t}(l.AbstractUIExtension);function g(e){return c.isLabeledAction(e)?e.actions:c.isAction(e)?[e]:[]}function y(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}t.CommandPalette=v;var q=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.keyDown=function(e,t){if(h.matchesKeystroke(t,"Escape"))return[new u.SetUIExtensionVisibilityAction(v.ID,!1,[])];if(v.isInvokePaletteKey(t)){var o=M.toArray(e.index.all().filter(function(e){return z.isSelectable(e)&&e.selected}).map(function(e){return e.id}));return[new u.SetUIExtensionVisibilityAction(v.ID,!0,o)]}return[]},t}(d.KeyListener);t.CommandPaletteKeyListener=q},"0bd8":function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o("e1c6"),a=o("6923"),s=function(){function e(){}return e.prototype.decorate=function(e,t){return e},e.prototype.postUpdate=function(){var e=document.getElementById(this.options.popupDiv);if(null!==e&&"undefined"!==typeof window){var t=e.getBoundingClientRect();window.innerHeight=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o("e1c6"),a=o("6923"),s=function(){function e(){}return e.prototype.getPrefix=function(){var e=void 0!==this.viewerOptions&&void 0!==this.viewerOptions.baseDiv?this.viewerOptions.baseDiv+"_":"";return e},e.prototype.createUniqueDOMElementId=function(e){return this.getPrefix()+e.id},e.prototype.findSModelIdByDOMElement=function(e){return e.id.replace(this.getPrefix(),"")},n([r.inject(a.TYPES.ViewerOptions),i("design:type",Object)],e.prototype,"viewerOptions",void 0),e=n([r.injectable()],e),e}();t.DOMHelper=s},"0e44":function(e,t,o){"use strict";var n=o("7615"),i=o.n(n);i.a},"0efb":function(e,t,o){var n,i,r;//! moment-timezone.js -//! version : 0.5.46 -//! Copyright (c) JS Foundation and other contributors -//! license : MIT -//! github.com/moment/moment-timezone -//! moment-timezone.js -//! version : 0.5.46 -//! Copyright (c) JS Foundation and other contributors -//! license : MIT -//! github.com/moment/moment-timezone -(function(a,s){"use strict";e.exports?e.exports=s(o("c1df")):(i=[o("c1df")],n=s,r="function"===typeof n?n.apply(t,i):n,void 0===r||(e.exports=r))})(0,function(e){"use strict";void 0===e.version&&e.default&&(e=e.default);var t,o="0.5.46",n={},i={},r={},a={},s={};e&&"string"===typeof e.version||X("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var c=e.version.split("."),p=+c[0],l=+c[1];function u(e){return e>96?e-87:e>64?e-29:e-48}function b(e){var t,o=0,n=e.split("."),i=n[0],r=n[1]||"",a=1,s=0,c=1;for(45===e.charCodeAt(0)&&(o=1,c=-1),o;o1&&t[n-1]===1/0&&e>=t[n-2])return n-1;if(e>=t[n-1])return-1;var i=0,r=n-1;while(r-i>1)o=Math.floor((i+r)/2),t[o]<=e?i=o:r=o;return r}function A(e,t){this.name=e,this.zones=t}function m(e){var t=e.toTimeString(),o=t.match(/\([a-z ]+\)/i);o&&o[0]?(o=o[0].match(/[A-Z]/g),o=o?o.join(""):void 0):(o=t.match(/[A-Z]{3,5}/g),o=o?o[0]:void 0),"GMT"===o&&(o=void 0),this.at=+e,this.abbr=o,this.offset=e.getTimezoneOffset()}function v(e){this.zone=e,this.offsetScore=0,this.abbrScore=0}function g(e,t){var o,n;while(n=6e4*((t.at-e.at)/12e4|0))o=new m(new Date(e.at+n)),o.offset===e.offset?e=o:t=o;return e}function y(){var e,t,o,n,i=(new Date).getFullYear()-2,r=new m(new Date(i,0,1)),a=r.offset,s=[r];for(n=1;n<48;n++)o=new Date(i,n,1).getTimezoneOffset(),o!==a&&(t=new m(new Date(i,n,1)),e=g(r,t),s.push(e),s.push(new m(new Date(e.at+6e4))),r=t,a=o);for(n=0;n<4;n++)s.push(new m(new Date(i+n,0,1))),s.push(new m(new Date(i+n,6,1)));return s}function q(e,t){return e.offsetScore!==t.offsetScore?e.offsetScore-t.offsetScore:e.abbrScore!==t.abbrScore?e.abbrScore-t.abbrScore:e.zone.population!==t.zone.population?t.zone.population-e.zone.population:t.zone.name.localeCompare(e.zone.name)}function _(e,t){var o,n;for(d(t),o=0;o3){var t=a[L(e)];if(t)return t;X("Moment Timezone found "+e+" from the Intl api, but did not have that data loaded.")}}catch(e){}var o,n,i,r=y(),s=r.length,c=W(r),p=[];for(n=0;n0?p[0].zone.name:void 0}function w(e){return t&&!e||(t=R()),t}function L(e){return(e||"").toLowerCase().replace(/\//g,"_")}function C(e){var t,o,i,r;for("string"===typeof e&&(e=[e]),t=0;t= 2.6.0. You are using Moment.js "+e.version+". See momentjs.com"),z.prototype={_set:function(e){this.name=e.name,this.abbrs=e.abbrs,this.untils=e.untils,this.offsets=e.offsets,this.population=e.population},_index:function(e){var t,o=+e,n=this.untils;if(t=O(o,n),t>=0)return t},countries:function(){var e=this.name;return Object.keys(r).filter(function(t){return-1!==r[t].zones.indexOf(e)})},parse:function(e){var t,o,n,i,r=+e,a=this.offsets,s=this.untils,c=s.length-1;for(i=0;in&&j.moveInvalidForward&&(t=n),r0&&(this._z=null),e.apply(this,arguments)}}e.tz=j,e.defaultZone=null,e.updateOffset=function(t,o){var n,i=e.defaultZone;if(void 0===t._z&&(i&&I(t)&&!t._isUTC&&t.isValid()&&(t._d=e.utc(t._a)._d,t.utc().add(i.parse(t),"minutes")),t._z=i),t._z)if(n=t._z.utcOffset(t),Math.abs(n)<16&&(n/=60),void 0!==t.utcOffset){var r=t._z;t.utcOffset(-n,o),t._z=r}else t.zone(n,o)},F.tz=function(t,o){if(t){if("string"!==typeof t)throw new Error("Time zone name must be a string, got "+t+" ["+typeof t+"]");return this._z=S(t),this._z?e.updateOffset(this,o):X("Moment Timezone has no data for "+t+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},F.zoneName=H(F.zoneName),F.zoneAbbr=H(F.zoneAbbr),F.utc=U(F.utc),F.local=U(F.local),F.utcOffset=V(F.utcOffset),e.tz.setDefault=function(t){return(p<2||2===p&&l<9)&&X("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+e.version+"."),e.defaultZone=t?S(t):null,e};var G=e.momentProperties;return"[object Array]"===Object.prototype.toString.call(G)?(G.push("_z"),G.push("_a")):G&&(G._z=null),e})},"0f4c":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=o("c146"),r=function(e){function t(t,o,n,i){void 0===i&&(i=!1);var r=e.call(this,n)||this;return r.model=t,r.elementResizes=o,r.reverse=i,r}return n(t,e),t.prototype.tween=function(e){var t=this;return this.elementResizes.forEach(function(o){var n=o.element,i=t.reverse?{width:(1-e)*o.toDimension.width+e*o.fromDimension.width,height:(1-e)*o.toDimension.height+e*o.fromDimension.height}:{width:(1-e)*o.fromDimension.width+e*o.toDimension.width,height:(1-e)*o.fromDimension.height+e*o.toDimension.height};n.bounds={x:n.bounds.x,y:n.bounds.y,width:i.width,height:i.height}}),this.model},t}(i.Animation);t.ResizeAnimation=r},"0faf":function(e,t,o){"use strict";var n=o("5870"),i=o.n(n);i.a},"0fb6":function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o("e1c6"),a=o("6923"),s=o("9175"),c=o("302f"),p=o("538c"),l=o("3f0a"),u=o("c20e"),b=o("510b"),d=function(){function e(){this.postponedActions=[],this.requests=new Map}return e.prototype.initialize=function(){var e=this;return this.initialized||(this.initialized=this.actionHandlerRegistryProvider().then(function(t){e.actionHandlerRegistry=t,e.handleAction(new l.SetModelAction(c.EMPTY_ROOT))})),this.initialized},e.prototype.dispatch=function(e){var t=this;return this.initialize().then(function(){return void 0!==t.blockUntil?t.handleBlocked(e,t.blockUntil):t.diagramLocker.isAllowed(e)?t.handleAction(e):void 0})},e.prototype.dispatchAll=function(e){var t=this;return Promise.all(e.map(function(e){return t.dispatch(e)}))},e.prototype.request=function(e){if(!e.requestId)return Promise.reject(new Error("Request without requestId"));var t=new s.Deferred;return this.requests.set(e.requestId,t),this.dispatch(e),t.promise},e.prototype.handleAction=function(e){if(e.kind===u.UndoAction.KIND)return this.commandStack.undo().then(function(){});if(e.kind===u.RedoAction.KIND)return this.commandStack.redo().then(function(){});if(b.isResponseAction(e)){var t=this.requests.get(e.responseId);if(void 0!==t){if(this.requests.delete(e.responseId),e.kind===b.RejectAction.KIND){var o=e;t.reject(new Error(o.message)),this.logger.warn(this,"Request with id "+e.responseId+" failed.",o.message,o.detail)}else t.resolve(e);return Promise.resolve()}this.logger.log(this,"No matching request for response",e)}var n=this.actionHandlerRegistry.get(e.kind);if(0===n.length){this.logger.warn(this,"Missing handler for action",e);var i=new Error("Missing handler for action '"+e.kind+"'");if(b.isRequestAction(e)){t=this.requests.get(e.requestId);void 0!==t&&(this.requests.delete(e.requestId),t.reject(i))}return Promise.reject(i)}this.logger.log(this,"Handle",e);for(var r=[],a=0,s=n;a=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__awaiter||function(e,t,o,n){function i(e){return e instanceof o?e:new o(function(t){t(e)})}return new(o||(o=Promise))(function(o,r){function a(e){try{c(n.next(e))}catch(e){r(e)}}function s(e){try{c(n["throw"](e))}catch(e){r(e)}}function c(e){e.done?o(e.value):i(e.value).then(a,s)}c((n=n.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){var o,n,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(e){return function(t){return c([e,t])}}function c(r){if(o)throw new TypeError("Generator is already executing.");while(a)try{if(o=1,n&&(i=2&r[0]?n["return"]:r[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,r[1])).done)return i;switch(n=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,n=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=o("e1c6"),s=o("6923"),c=o("3a92"),p=o("e45b"),l=function(){function e(e){void 0===e&&(e=[]),this.keyListeners=e}return e.prototype.register=function(e){this.keyListeners.push(e)},e.prototype.deregister=function(e){var t=this.keyListeners.indexOf(e);t>=0&&this.keyListeners.splice(t,1)},e.prototype.handleEvent=function(e,t,o){var n=this.keyListeners.map(function(n){return n[e].apply(n,[t,o])}).reduce(function(e,t){return e.concat(t)});n.length>0&&(o.preventDefault(),this.actionDispatcher.dispatchAll(n))},e.prototype.keyDown=function(e,t){this.handleEvent("keyDown",e,t)},e.prototype.keyUp=function(e,t){this.handleEvent("keyUp",e,t)},e.prototype.focus=function(){},e.prototype.decorate=function(e,t){return t instanceof c.SModelRoot&&(p.on(e,"focus",this.focus.bind(this),t),p.on(e,"keydown",this.keyDown.bind(this),t),p.on(e,"keyup",this.keyUp.bind(this),t)),e},e.prototype.postUpdate=function(){},n([a.inject(s.TYPES.IActionDispatcher),i("design:type",Object)],e.prototype,"actionDispatcher",void 0),e=n([a.injectable(),r(0,a.multiInject(s.TYPES.KeyListener)),r(0,a.optional()),i("design:paramtypes",[Array])],e),e}();t.KeyTool=l;var u=function(){function e(){}return e.prototype.keyDown=function(e,t){return[]},e.prototype.keyUp=function(e,t){return[]},e=n([a.injectable()],e),e}();t.KeyListener=u},1468:function(e,t){var o=1e3,n=60*o,i=60*n,r=24*i,a=365.25*r;function s(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var s=parseFloat(t[1]),c=(t[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return s*a;case"days":case"day":case"d":return s*r;case"hours":case"hour":case"hrs":case"hr":case"h":return s*i;case"minutes":case"minute":case"mins":case"min":case"m":return s*n;case"seconds":case"second":case"secs":case"sec":case"s":return s*o;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}function c(e){return e>=r?Math.round(e/r)+"d":e>=i?Math.round(e/i)+"h":e>=n?Math.round(e/n)+"m":e>=o?Math.round(e/o)+"s":e+"ms"}function p(e){return l(e,r,"day")||l(e,i,"hour")||l(e,n,"minute")||l(e,o,"second")||e+" ms"}function l(e,t,o){if(!(e0)return s(e);if("number"===o&&!1===isNaN(e))return t.long?p(e):c(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},"155f":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={Request:"Request",Singleton:"Singleton",Transient:"Transient"};t.BindingScopeEnum=n;var i={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"};t.BindingTypeEnum=i;var r={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"};t.TargetTypeEnum=r},1590:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(t){this.toolIds=t,this.kind=e.KIND}return e.KIND="enable-tools",e}();t.EnableToolsAction=n;var i=function(){function e(){this.kind=e.KIND}return e.KIND="enable-default-tools",e}();t.EnableDefaultToolsAction=i},"15f6":function(e,t,o){},"160b":function(e,t,o){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,o=1,n=arguments.length;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o("e1c6"),s=o("6923"),c=o("302f"),p=o("3a92"),l=o("538c"),u=o("9757"),b=function(){function e(){this.undoStack=[],this.redoStack=[],this.offStack=[]}return e.prototype.initialize=function(){this.currentPromise=Promise.resolve({main:{model:this.modelFactory.createRoot(c.EMPTY_ROOT),modelChanged:!1},hidden:{model:this.modelFactory.createRoot(c.EMPTY_ROOT),modelChanged:!1},popup:{model:this.modelFactory.createRoot(c.EMPTY_ROOT),modelChanged:!1}})},Object.defineProperty(e.prototype,"currentModel",{get:function(){return this.currentPromise.then(function(e){return e.main.model})},enumerable:!0,configurable:!0}),e.prototype.executeAll=function(e){var t=this;return e.forEach(function(e){t.logger.log(t,"Executing",e),t.handleCommand(e,e.execute,t.mergeOrPush)}),this.thenUpdate()},e.prototype.execute=function(e){return this.logger.log(this,"Executing",e),this.handleCommand(e,e.execute,this.mergeOrPush),this.thenUpdate()},e.prototype.undo=function(){var e=this;this.undoOffStackSystemCommands(),this.undoPreceedingSystemCommands();var t=this.undoStack[this.undoStack.length-1];return void 0===t||this.isBlockUndo(t)||(this.undoStack.pop(),this.logger.log(this,"Undoing",t),this.handleCommand(t,t.undo,function(t,o){e.redoStack.push(t)})),this.thenUpdate()},e.prototype.redo=function(){var e=this;this.undoOffStackSystemCommands();var t=this.redoStack.pop();return void 0!==t&&(this.logger.log(this,"Redoing",t),this.handleCommand(t,t.redo,function(t,o){e.pushToUndoStack(t)})),this.redoFollowingSystemCommands(),this.thenUpdate()},e.prototype.handleCommand=function(e,t,o){var n=this;this.currentPromise=this.currentPromise.then(function(i){return new Promise(function(r){var a;a=e instanceof u.HiddenCommand?"hidden":e instanceof u.PopupCommand?"popup":"main";var s,c=n.createContext(i.main.model);try{s=t.call(e,c)}catch(e){n.logger.error(n,"Failed to execute command:",e),s=i[a].model}var l=d(i);s instanceof Promise?s.then(function(t){"main"===a&&o.call(n,e,c),l[a]={model:t,modelChanged:!0},r(l)}):s instanceof p.SModelRoot?("main"===a&&o.call(n,e,c),l[a]={model:s,modelChanged:!0},r(l)):("main"===a&&o.call(n,e,c),l[a]={model:s.model,modelChanged:i[a].modelChanged||s.modelChanged,cause:s.cause},r(l))})})},e.prototype.pushToUndoStack=function(e){this.undoStack.push(e),this.options.undoHistoryLimit>=0&&this.undoStack.length>this.options.undoHistoryLimit&&this.undoStack.splice(0,this.undoStack.length-this.options.undoHistoryLimit)},e.prototype.thenUpdate=function(){var e=this;return this.currentPromise=this.currentPromise.then(function(t){var o=d(t);return t.hidden.modelChanged&&(e.updateHidden(t.hidden.model,t.hidden.cause),o.hidden.modelChanged=!1,o.hidden.cause=void 0),t.main.modelChanged&&(e.update(t.main.model,t.main.cause),o.main.modelChanged=!1,o.main.cause=void 0),t.popup.modelChanged&&(e.updatePopup(t.popup.model,t.popup.cause),o.popup.modelChanged=!1,o.popup.cause=void 0),o}),this.currentModel},e.prototype.update=function(e,t){void 0===this.modelViewer&&(this.modelViewer=this.viewerProvider.modelViewer),this.modelViewer.update(e,t)},e.prototype.updateHidden=function(e,t){void 0===this.hiddenModelViewer&&(this.hiddenModelViewer=this.viewerProvider.hiddenModelViewer),this.hiddenModelViewer.update(e,t)},e.prototype.updatePopup=function(e,t){void 0===this.popupModelViewer&&(this.popupModelViewer=this.viewerProvider.popupModelViewer),this.popupModelViewer.update(e,t)},e.prototype.mergeOrPush=function(e,t){var o=this;if(this.isBlockUndo(e))return this.undoStack=[],this.redoStack=[],this.offStack=[],void this.pushToUndoStack(e);if(this.isPushToOffStack(e)&&this.redoStack.length>0){if(this.offStack.length>0){var n=this.offStack[this.offStack.length-1];if(n instanceof u.MergeableCommand&&n.merge(e,t))return}this.offStack.push(e)}else if(this.isPushToUndoStack(e)){if(this.offStack.forEach(function(e){return o.undoStack.push(e)}),this.offStack=[],this.redoStack=[],this.undoStack.length>0){n=this.undoStack[this.undoStack.length-1];if(n instanceof u.MergeableCommand&&n.merge(e,t))return}this.pushToUndoStack(e)}},e.prototype.undoOffStackSystemCommands=function(){var e=this.offStack.pop();while(void 0!==e)this.logger.log(this,"Undoing off-stack",e),this.handleCommand(e,e.undo,function(){}),e=this.offStack.pop()},e.prototype.undoPreceedingSystemCommands=function(){var e=this,t=this.undoStack[this.undoStack.length-1];while(void 0!==t&&this.isPushToOffStack(t))this.undoStack.pop(),this.logger.log(this,"Undoing",t),this.handleCommand(t,t.undo,function(t,o){e.redoStack.push(t)}),t=this.undoStack[this.undoStack.length-1]},e.prototype.redoFollowingSystemCommands=function(){var e=this,t=this.redoStack[this.redoStack.length-1];while(void 0!==t&&this.isPushToOffStack(t))this.redoStack.pop(),this.logger.log(this,"Redoing ",t),this.handleCommand(t,t.redo,function(t,o){e.pushToUndoStack(t)}),t=this.redoStack[this.redoStack.length-1]},e.prototype.createContext=function(e){return{root:e,modelChanged:this,modelFactory:this.modelFactory,duration:this.options.defaultDuration,logger:this.logger,syncer:this.syncer}},e.prototype.isPushToOffStack=function(e){return e instanceof u.SystemCommand},e.prototype.isPushToUndoStack=function(e){return!(e instanceof u.HiddenCommand)},e.prototype.isBlockUndo=function(e){return e instanceof u.ResetCommand},i([a.inject(s.TYPES.IModelFactory),r("design:type",Object)],e.prototype,"modelFactory",void 0),i([a.inject(s.TYPES.IViewerProvider),r("design:type",Object)],e.prototype,"viewerProvider",void 0),i([a.inject(s.TYPES.ILogger),r("design:type",Object)],e.prototype,"logger",void 0),i([a.inject(s.TYPES.AnimationFrameSyncer),r("design:type",l.AnimationFrameSyncer)],e.prototype,"syncer",void 0),i([a.inject(s.TYPES.CommandStackOptions),r("design:type",Object)],e.prototype,"options",void 0),i([a.postConstruct(),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"initialize",null),e=i([a.injectable()],e),e}();function d(e){return{main:n({},e.main),hidden:n({},e.hidden),popup:n({},e.popup)}}t.CommandStack=b},"168d":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("3864"),c=o("d8f5"),p=o("e1c6"),l=o("6923"),u=function(e){function t(t){var o=e.call(this)||this;return t.forEach(function(e){return o.register(e.kind,e)}),o}return n(t,e),Object.defineProperty(t.prototype,"defaultKind",{get:function(){return c.PolylineEdgeRouter.KIND},enumerable:!0,configurable:!0}),t.prototype.get=function(t){return e.prototype.get.call(this,t||this.defaultKind)},t=i([p.injectable(),a(0,p.multiInject(l.TYPES.IEdgeRouter)),r("design:paramtypes",[Array])],t),t}(s.InstanceRegistry);t.EdgeRouterRegistry=u},1817:function(e,t,o){"use strict";var n=o("c23f"),i=o.n(n);i.a},1848:function(e,t,o){"use strict";var n=o("98ab"),i=o.n(n);i.a},1963:function(e,t,o){},1978:function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("9757"),c=o("3a92"),p=o("6923"),l=o("e1c6");function u(e){return e instanceof c.SChildElement&&e.hasFeature(t.deletableFeature)}t.deletableFeature=Symbol("deletableFeature"),t.isDeletable=u;var b=function(){function e(t){this.elementIds=t,this.kind=e.KIND}return e.KIND="delete",e}();t.DeleteElementAction=b;var d=function(){function e(){}return e}();t.ResolvedDelete=d;var M=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o.resolvedDeletes=[],o}return n(t,e),t.prototype.execute=function(e){for(var t=e.root.index,o=0,n=this.action.elementIds;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("393a"),r=o("9964"),a=o("3623"),s=o("e1c6"),c=function(){function e(){}return e.prototype.render=function(e,t){var o=a.findParentByFeature(e,r.isExpandable),n=void 0!==o&&o.expanded?"M 1,5 L 8,12 L 15,5 Z":"M 1,8 L 8,15 L 8,1 Z";return i.svg("g",{"class-sprotty-button":"{true}","class-enabled":"{button.enabled}"},i.svg("rect",{x:0,y:0,width:16,height:16,opacity:0}),i.svg("path",{d:n}))},e=n([s.injectable()],e),e}();t.ExpandButtonView=c},"19f2":function(e,t,o){"use strict";var n=o("8ac3"),i=o.n(n);i.a},"19fc":function(e,t,o){"use strict";(function(e){o("7f7f"),o("6762"),o("2fdb"),o("6b54"),o("a481");var n=o("448a"),i=o.n(n),r=(o("f559"),o("7514"),o("3156")),a=o.n(r),s=(o("ac6a"),o("cadf"),o("f400"),o("e325")),c=o("1ad9"),p=o.n(c),l=(o("c862"),o("e00b")),u=o("2f62"),b=o("7cca"),d=o("b12a"),M=o("be3b"),h=o("7173");t["a"]={name:"DocumentationViewer",props:{forPrinting:{type:Boolean,default:!1}},components:{FigureTimeline:h["a"],HistogramViewer:l["a"]},data:function(){return{content:[],tables:[],images:[],loadingImages:[],figures:[],rawDocumentation:[],DOCUMENTATION_TYPES:b["l"],links:new Map,tableCounter:0,referenceCounter:0,viewport:null,needUpdates:!1,visible:!1,waitHeight:320}},computed:a()({},Object(u["c"])("data",["documentationTrees","documentationContent"]),Object(u["c"])("view",["documentationView","documentationSelected","documentationCache","tableFontSize"]),{tree:function(){var e=this;return this.documentationTrees.find(function(t){return t.view===e.documentationView}).tree}}),methods:a()({},Object(u["b"])("view",["setDocumentation"]),{getId:function(e){return this.forPrinting?"".concat(e,"-fp"):e},getFormatter:function(e,t){var o=t.numberFormat;switch(o||(o="%f"),e){case b["J"].TEXT:case b["J"].VALUE:case b["J"].BOOLEAN:return"plaintext";case b["J"].NUMBER:return function(e){return e.getValue()&&""!==e.getValue()?p()(o,e.getValue()):""};default:return"plaintext"}},formatColumns:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=o.numberFormat,i=function e(o,i){var r="".concat(i||"").concat(o.id);return a()({title:o.title,field:r,headerVertical:o.headerVertical,frozen:o.frozen},o.sorter&&{sorter:o.sorter},o.hozAlign&&{hozAlign:o.hozAlign},o.formatter&&{formatter:o.formatter},!o.formatter&&o.type&&{formatter:t.getFormatter(o.type,{numberFormat:o.numberFormat||n})},o.columns&&o.columns.length>0&&{columns:o.columns.map(function(t){return e(t,r)})})};return e.map(function(e){return a()({},i(e))})},selectElement:function(e){var t;t=e.startsWith(".")?document.querySelector(e):document.getElementById(this.getId(e)),t&&(t.scrollIntoView({behavior:"smooth"}),t.classList.add("dv-selected"))},getModelCode:function(e){return e?e.replaceAll("\n","
").replaceAll(" ",''):""},fontSizeChangeListener:function(e){"table"===e&&(this.tables.length>0&&this.tables.forEach(function(e){e.instance&&e.instance.redraw(!0)}),this.forPrinting&&(this.visible=!0,this.build()))},getLinkedText:function(e){var t=this;if(e){var o=[];return i()(e.matchAll(/LINK\/(?[^/]*)\/(?[^/]*)\//g)).forEach(function(e){var n,i=t.documentationContent.get(e[2]);i&&(i.type===b["l"].REFERENCE?n="[".concat(i.id,"]"):i.type===b["l"].TABLE&&(n="<".concat(i.id).concat(++t.tableCounter,">")),i.index=++t.referenceCounter,o.push({what:e[0],with:'').concat(i.index,"")}),t.links.set(e[2],i))}),o.length>0&&o.forEach(function(t){e=e.replace(t.what,t.with)}),e}return e},getImage:function(t,o){var n=this,i=document.getElementById("resimg-".concat(this.getId(t)));if(i)if(this.documentationCache.has(t)){var r=this.documentationCache.get(t);null!==r?i.src=this.documentationCache.get(t):i.style.display="none"}else M["a"].get("".concat("").concat("/modeler").concat(o),{responseType:"arraybuffer"}).then(function(o){var r=o.data;r&&r.byteLength>0?(i.src="data:image/png;base64,".concat(e.from(r,"binary").toString("base64")),n.documentationCache.set(t,i.src)):(i.style.display="none",n.documentationCache.set(t,null))})},getFigure:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=document.getElementById("figimg-".concat(this.documentationView,"-").concat(this.getId(e)));if(i){var r=this.documentationContent.get(e),s="".concat(t.observationId,"/").concat(o);if(r.figure.timeString=n,""!==i.src&&(this.waitHeight=i.clientHeight),this.documentationCache.has(s))i.src=this.documentationCache.get(s).src,r.figure.colormap=this.documentationCache.get(s).colormap;else if(!this.loadingImages.includes(e)){this.loadingImages.push(e),i.src="";var c=this;M["a"].get("".concat("").concat("/modeler").concat(t.baseUrl),{params:a()({format:b["q"].TYPE_RASTER,viewport:c.viewport},-1!==o&&{locator:"T1(1){time=".concat(o,"}")}),responseType:"blob"}).then(function(n){var p=c.loadingImages.indexOf(e);if(-1!==p&&c.loadingImages.splice(c.loadingImages.indexOf(e),1),n){var l=new FileReader,u={src:null,colormap:null};l.readAsDataURL(n.data),l.onload=function(){i.src=l.result,u.src=l.result},M["a"].get("".concat("").concat("/modeler").concat(t.baseUrl),{params:a()({format:b["q"].TYPE_COLORMAP},-1!==o&&{locator:"T1(1){time=".concat(o,"}")})}).then(function(e){e&&e.data&&(r.figure.colormap=Object(d["i"])(e.data),u.colormap=r.figure.colormap),c.documentationCache.set(s,u)}).catch(function(e){console.error(e),c.documentationCache.set(s,u)})}}).catch(function(t){var o=c.loadingImages.indexOf(e);-1!==o&&c.loadingImages.splice(c.loadingImages.indexOf(e),1),console.error(t)})}}},tableCopy:function(e){var t=this.tables.find(function(t){return t.id===e});t?t.instance.copyToClipboard("all"):console.warn("table not found")},tableDownload:function(e){var t=this.tables.find(function(t){return t.id===e});t?t.instance.download("xlsx","".concat(t.name,".xlsx")):console.warn("table not found")},updateThings:function(){var e=this;if(this.visible&&this.needUpdates){console.debug("Update things");var t=this;this.$nextTick(function(){e.tables.forEach(function(e){var o=document.querySelector("#".concat(t.getId(e.id),"-table"));o&&(e.instance=new s["a"]("#".concat(t.getId(e.id),"-table"),e.tabulator))}),e.images.forEach(function(t){e.getImage(t.id,t.url)}),e.figures.forEach(function(t){e.getFigure(t.id,t.instance,t.time,t.timeString)}),e.needUpdates=!1})}},clearCache:function(){this.documentationCache.clear(),this.needUpdates=!0},changeTime:function(e,t){var o=this.figures.find(function(e){return e.id===t});o&&(o.time=e.time,this.getFigure(o.id,o.instance,o.time,e.timeString))},build:function(){var e=this;this.rawDocumentation.splice(0,this.rawDocumentation.length),this.content.splice(0,this.content.length),this.tables.splice(0,this.tables.length),this.images.splice(0,this.images.length),this.figures.splice(0,this.figures.length),this.tree.forEach(function(t){Object(d["g"])(t,"children").forEach(function(t){e.rawDocumentation.push(t)})});var t=document.querySelectorAll(".dv-figure-".concat(this.forPrinting?"print":"display"));t.forEach(function(e){e.setAttribute("src","")}),this.needUpdates=!0;var o=this;this.rawDocumentation.forEach(function(e){var t=o.documentationContent.get(e.id);switch(t.bodyText&&(t.bodyText=o.getLinkedText(t.bodyText)),o.content.push(t),e.type){case b["l"].PARAGRAPH:break;case b["l"].RESOURCE:o.images.push({id:e.id,url:t.resource.spaceDescriptionUrl});break;case b["l"].SECTION:break;case b["l"].TABLE:o.tables.push({id:t.id,name:t.bodyText.replaceAll(" ","_").toLowerCase(),tabulator:{clipboard:"copy",printAsHtml:!0,data:t.table.rows,columns:o.formatColumns(t.table.columns,a()({},t.table.numberFormat&&{numberFormat:t.table.numberFormat})),clipboardCopied:function(){o.$q.notify({message:o.$t("messages.tableCopied"),type:"info",icon:"mdi-information",timeout:1e3})}}});break;case b["l"].FIGURE:o.$set(t.figure,"colormap",null),o.$set(t.figure,"timeString",""),o.figures.push({id:t.id,instance:t.figure,time:-1,timeString:""});break;default:break}}),this.updateThings()}}),watch:{tree:function(){this.build()},documentationSelected:function(e){Array.prototype.forEach.call(document.getElementsByClassName("dv-selected"),function(e){e.classList.remove("dv-selected")}),null!==e&&this.selectElement(e)}},mounted:function(){this.viewport=Math.min(document.body.clientWidth,640),this.$eventBus.$on(b["h"].FONT_SIZE_CHANGE,this.fontSizeChangeListener),this.forPrinting||(null!==this.documentationSelected&&this.selectElement(this.documentationSelected),this.$eventBus.$on(b["h"].REFRESH_DOCUMENTATION,this.clearCache))},activated:function(){this.visible=!0,this.updateThings()},deactivated:function(){this.visible=!1},updated:function(){var e=this;this.forPrinting||(null!==this.documentationSelected&&this.selectElement(this.documentationSelected),this.links.size>0&&(this.links.forEach(function(t,o){document.querySelectorAll(".link-".concat(o)).forEach(function(o){o.onclick=function(){e.setDocumentation({id:t.id,view:b["m"][t.type]})}})}),this.links.clear(),this.tableCounter=0,this.referenceCounter=0))},beforeDestroy:function(){this.forPrinting||this.$eventBus.$off(b["h"].REFRESH_DOCUMENTATION,this.clearCache),this.$eventBus.$off(b["h"].FONT_SIZE_CHANGE,this.fontSizeChangeListener)}}}).call(this,o("b639").Buffer)},"1ad9":function(e,t,o){var n=o("3022"),i=function(e,t,o,n){var i,r,a=[],s=0;while(i=t.exec(e)){if(r=e.slice(s,t.lastIndex-i[0].length),r.length&&a.push(r),o){var c=o.apply(n,i.slice(1).concat(a.length));"undefined"!=typeof c&&("%"===c.specifier?a.push("%"):a.push(c))}s=t.lastIndex}return r=e.slice(s),r.length&&a.push(r),a},r=function(e){this._mapped=!1,this._format=e,this._tokens=i(e,this._re,this._parseDelim,this)};r.prototype._re=/\%(?:\(([\w_.]+)\)|([1-9]\d*)\$)?([0 +\-\#]*)(\*|\d+)?(?:(\.)(\*|\d+)?)?[hlL]?([\%bscdeEfFgGioOuxX])/g,r.prototype._parseDelim=function(e,t,o,n,i,r,a){return e&&(this._mapped=!0),{mapping:e,intmapping:t,flags:o,_minWidth:n,period:i,_precision:r,specifier:a}},r.prototype._specifiers={b:{base:2,isInt:!0},o:{base:8,isInt:!0},x:{base:16,isInt:!0},X:{extend:["x"],toUpper:!0},d:{base:10,isInt:!0},i:{extend:["d"]},u:{extend:["d"],isUnsigned:!0},c:{setArg:function(e){if(!isNaN(e.arg)){var t=parseInt(e.arg);if(t<0||t>127)throw new Error("invalid character code passed to %c in printf");e.arg=isNaN(t)?""+t:String.fromCharCode(t)}}},s:{setMaxWidth:function(e){e.maxWidth="."==e.period?e.precision:-1}},e:{isDouble:!0,doubleNotation:"e"},E:{extend:["e"],toUpper:!0},f:{isDouble:!0,doubleNotation:"f"},F:{extend:["f"]},g:{isDouble:!0,doubleNotation:"g"},G:{extend:["g"],toUpper:!0},O:{isObject:!0}},r.prototype.format=function(e){if(this._mapped&&"object"!=typeof e)throw new Error("format requires a mapping");for(var t,o="",n=0,i=0;i=arguments.length)throw new Error("got "+arguments.length+" printf arguments, insufficient for '"+this._format+"'");t.arg=arguments[n++]}if(!t.compiled){t.compiled=!0,t.sign="",t.zeroPad=!1,t.rightJustify=!1,t.alternative=!1;for(var p={},l=t.flags.length;l--;){var u=t.flags.charAt(l);switch(p[u]=!0,u){case" ":t.sign=" ";break;case"+":t.sign="+";break;case"0":t.zeroPad=!p["-"];break;case"-":t.rightJustify=!0,t.zeroPad=!1;break;case"#":t.alternative=!0;break;default:throw Error("bad formatting flag '"+t.flags.charAt(l)+"'")}}t.minWidth=t._minWidth?parseInt(t._minWidth):0,t.maxWidth=-1,t.toUpper=!1,t.isUnsigned=!1,t.isInt=!1,t.isDouble=!1,t.isObject=!1,t.precision=1,"."==t.period&&(t._precision?t.precision=parseInt(t._precision):t.precision=0);var b=this._specifiers[t.specifier];if("undefined"==typeof b)throw new Error("unexpected specifier '"+t.specifier+"'");if(b.extend){var d=this._specifiers[b.extend];for(var M in d)b[M]=d[M];delete b.extend}for(var h in b)t[h]=b[h]}if("function"==typeof t.setArg&&t.setArg(t),"function"==typeof t.setMaxWidth&&t.setMaxWidth(t),"*"==t._minWidth){if(this._mapped)throw new Error("* width not supported in mapped formats");if(t.minWidth=parseInt(arguments[n++]),isNaN(t.minWidth))throw new Error("the argument for * width at position "+n+" is not a number in "+this._format);t.minWidth<0&&(t.rightJustify=!0,t.minWidth=-t.minWidth)}if("*"==t._precision&&"."==t.period){if(this._mapped)throw new Error("* precision not supported in mapped formats");if(t.precision=parseInt(arguments[n++]),isNaN(t.precision))throw Error("the argument for * precision at position "+n+" is not a number in "+this._format);t.precision<0&&(t.precision=1,t.period="")}t.isInt?("."==t.period&&(t.zeroPad=!1),this.formatInt(t)):t.isDouble?("."!=t.period&&(t.precision=6),this.formatDouble(t)):t.isObject&&this.formatObject(t),this.fitField(t),o+=""+t.arg}return o},r.prototype._zeros10="0000000000",r.prototype._spaces10=" ",r.prototype.formatInt=function(e){var t=parseInt(e.arg);if(!isFinite(t)){if("number"!=typeof e.arg)throw new Error("format argument '"+e.arg+"' not an integer; parseInt returned "+t);t=0}t<0&&(e.isUnsigned||10!=e.base)&&(t=4294967295+t+1),t<0?(e.arg=(-t).toString(e.base),this.zeroPad(e),e.arg="-"+e.arg):(e.arg=t.toString(e.base),t||e.precision?this.zeroPad(e):e.arg="",e.sign&&(e.arg=e.sign+e.arg)),16==e.base&&(e.alternative&&(e.arg="0x"+e.arg),e.arg=e.toUpper?e.arg.toUpperCase():e.arg.toLowerCase()),8==e.base&&e.alternative&&"0"!=e.arg.charAt(0)&&(e.arg="0"+e.arg)},r.prototype.formatDouble=function(e){var t=parseFloat(e.arg);if(!isFinite(t)){if("number"!=typeof e.arg)throw new Error("format argument '"+e.arg+"' not a float; parseFloat returned "+t);t=0}switch(e.doubleNotation){case"e":e.arg=t.toExponential(e.precision);break;case"f":e.arg=t.toFixed(e.precision);break;case"g":Math.abs(t)<1e-4?e.arg=t.toExponential(e.precision>0?e.precision-1:e.precision):e.arg=t.toPrecision(e.precision),e.alternative||(e.arg=e.arg.replace(/(\..*[^0])0*e/,"$1e"),e.arg=e.arg.replace(/\.0*e/,"e").replace(/\.0$/,""));break;default:throw new Error("unexpected double notation '"+e.doubleNotation+"'")}e.arg=e.arg.replace(/e\+(\d)$/,"e+0$1").replace(/e\-(\d)$/,"e-0$1"),e.alternative&&(e.arg=e.arg.replace(/^(\d+)$/,"$1."),e.arg=e.arg.replace(/^(\d+)e/,"$1.e")),t>=0&&e.sign&&(e.arg=e.sign+e.arg),e.arg=e.toUpper?e.arg.toUpperCase():e.arg.toLowerCase()},r.prototype.formatObject=function(e){var t="."===e.period?e.precision:null;e.arg=n.inspect(e.arg,{showHidden:!e.alternative,depth:t,colors:e.sign,compact:!0})},r.prototype.zeroPad=function(e,t){t=2==arguments.length?t:e.precision;var o=!1;"string"!=typeof e.arg&&(e.arg=""+e.arg),"-"===e.arg.substr(0,1)&&(o=!0,e.arg=e.arg.substr(1));var n=t-10;while(e.arg.length=0&&e.arg.length>e.maxWidth&&(e.arg=e.arg.substring(0,e.maxWidth)),e.zeroPad?this.zeroPad(e,e.minWidth):this.spacePad(e)},r.prototype.spacePad=function(e,t){t=2==arguments.length?t:e.minWidth,"string"!=typeof e.arg&&(e.arg=""+e.arg);var o=t-10;while(e.arg.length1?arguments[1]:void 0,f=void 0!==h,z=0,O=l(b);if(f&&(h=n(h,M>2?arguments[2]:void 0,2)),void 0==O||d==Array&&s(O))for(t=c(b.length),o=new d(t);t>z;z++)p(o,z,f?h(b[z],z):b[z]);else for(u=O.call(b),o=new d;!(i=u.next()).done;z++)p(o,z,f?a(u,h,[i.value,z],!0):i.value);return o.length=z,o}})},"1cc1":function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=o("e1c6"),s=o("6923"),c=o("1978"),p=o("4c18"),l=function(){function e(e){void 0===e&&(e=[]),this.menuProviders=e}return e.prototype.getItems=function(e,t){var o=this.menuProviders.map(function(o){return o.getItems(e,t)});return Promise.all(o).then(this.flattenAndRestructure)},e.prototype.flattenAndRestructure=function(e){for(var t=e.reduce(function(e,t){return void 0!==t?e.concat(t):e},[]),o=t.filter(function(e){return e.parentId}),n=function(e){if(e.parentId){for(var o=e.parentId.split("."),n=void 0,i=t,r=function(e){n=i.find(function(t){return e===t.id}),n&&n.children&&(i=n.children)},a=0,s=o;a0}}])},e=n([a.injectable()],e),e}();t.DeleteContextMenuItemProvider=u},"1cd9":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("9757"),p=o("4c18"),l=o("510b"),u=o("3a92"),b=o("1417"),d=o("b669"),M=o("7faf"),h=o("5d19"),f=o("5eb6"),z=o("e4f0"),O=o("6923"),A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.keyDown=function(e,t){return d.matchesKeystroke(t,"KeyE","ctrlCmd","shift")?[new m]:[]},t=i([s.injectable()],t),t}(b.KeyListener);t.ExportSvgKeyListener=A;var m=function(){function e(t){void 0===t&&(t=""),this.requestId=t,this.kind=e.KIND}return e.create=function(){return new e(l.generateRequestId())},e.KIND="requestExportSvg",e}();t.RequestExportSvgAction=m;var v=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o}return n(t,e),t.prototype.execute=function(e){if(M.isExportable(e.root)){var t=e.modelFactory.createRoot(e.root);if(M.isExportable(t))return f.isViewport(t)&&(t.zoom=1,t.scroll={x:0,y:0}),t.index.all().forEach(function(e){p.isSelectable(e)&&e.selected&&(e.selected=!1),z.isHoverable(e)&&e.hoverFeedback&&(e.hoverFeedback=!1)}),{model:t,modelChanged:!0,cause:this.action}}return{model:e.root,modelChanged:!1}},t.KIND=m.KIND,t=i([a(0,s.inject(O.TYPES.Action)),r("design:paramtypes",[m])],t),t}(c.HiddenCommand);t.ExportSvgCommand=v;var g=function(){function e(){}return e.prototype.decorate=function(e,t){return t instanceof u.SModelRoot&&(this.root=t),e},e.prototype.postUpdate=function(e){this.root&&void 0!==e&&e.kind===m.KIND&&this.svgExporter.export(this.root,e)},i([s.inject(O.TYPES.SvgExporter),r("design:type",h.SvgExporter)],e.prototype,"svgExporter",void 0),e=i([s.injectable()],e),e}();t.ExportSvgPostprocessor=g},"1d39":function(e,t,o){"use strict";var n=o("1963"),i=o.n(n);i.a},"1e19":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("ed4f"),a=o("c444"),s=o("cf98"),c=o("fe37"),p=o("842c"),l=new n.ContainerModule(function(e,t,o){p.configureCommand({bind:e,isBound:o},r.CenterCommand),p.configureCommand({bind:e,isBound:o},r.FitToScreenCommand),p.configureCommand({bind:e,isBound:o},a.SetViewportCommand),p.configureCommand({bind:e,isBound:o},a.GetViewportCommand),e(i.TYPES.KeyListener).to(r.CenterKeyboardListener),e(i.TYPES.MouseListener).to(s.ScrollMouseListener),e(i.TYPES.MouseListener).to(c.ZoomMouseListener)});t.default=l},"1e31":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("9d6c"),a=new n.ContainerModule(function(e){e(r.EdgeLayoutPostprocessor).toSelf().inSingletonScope(),e(i.TYPES.IVNodePostprocessor).toService(r.EdgeLayoutPostprocessor),e(i.TYPES.HiddenVNodePostprocessor).toService(r.EdgeLayoutPostprocessor)});t.default=a},"1e94":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.of=function(t,o){var n=new e;return n.bindings=t,n.middleware=o,n},e}();t.ContainerSnapshot=n},"1f0f":function(e,t,o){},"1f66":function(e,t,o){},"1f89":function(e,t,o){"use strict";function n(e){return e.hasFeature(t.openFeature)}Object.defineProperty(t,"__esModule",{value:!0}),t.openFeature=Symbol("openFeature"),t.isOpenable=n},"1fac":function(e,t,o){"use strict";var n=o("e5a7"),i=o.n(n);i.a},2:function(e,t){},"218d":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var r=o("393a"),a=o("47b7"),s=o("8e97"),c=o("dd02"),p=o("e1c6"),l=function(){function e(){}return e.prototype.render=function(e,t){var o="scale("+e.zoom+") translate("+-e.scroll.x+","+-e.scroll.y+")";return r.svg("svg",null,r.svg("g",{transform:o},t.renderChildren(e)))},e=i([p.injectable()],e),e}();t.SvgViewportView=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(e,t){if(this.isVisible(e,t)){var o=this.getRadius(e);return r.svg("g",null,r.svg("circle",{"class-sprotty-node":e instanceof a.SNode,"class-sprotty-port":e instanceof a.SPort,"class-mouseover":e.hoverFeedback,"class-selected":e.selected,r:o,cx:o,cy:o}),t.renderChildren(e))}},t.prototype.getRadius=function(e){var t=Math.min(e.size.width,e.size.height);return t>0?t/2:0},t=i([p.injectable()],t),t}(s.ShapeView);t.CircularNodeView=u;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(e,t){if(this.isVisible(e,t))return r.svg("g",null,r.svg("rect",{"class-sprotty-node":e instanceof a.SNode,"class-sprotty-port":e instanceof a.SPort,"class-mouseover":e.hoverFeedback,"class-selected":e.selected,x:"0",y:"0",width:Math.max(e.size.width,0),height:Math.max(e.size.height,0)}),t.renderChildren(e))},t=i([p.injectable()],t),t}(s.ShapeView);t.RectangularNodeView=b;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(e,t){if(this.isVisible(e,t)){var o=new c.Diamond({height:Math.max(e.size.height,0),width:Math.max(e.size.width,0),x:0,y:0}),n=M(o.topPoint)+" "+M(o.rightPoint)+" "+M(o.bottomPoint)+" "+M(o.leftPoint);return r.svg("g",null,r.svg("polygon",{"class-sprotty-node":e instanceof a.SNode,"class-sprotty-port":e instanceof a.SPort,"class-mouseover":e.hoverFeedback,"class-selected":e.selected,points:n}),t.renderChildren(e))}},t=i([p.injectable()],t),t}(s.ShapeView);function M(e){return e.x+","+e.y}t.DiamondNodeView=d;var h=function(){function e(){}return e.prototype.render=function(e,t){return r.svg("g",null)},e=i([p.injectable()],e),e}();t.EmptyGroupView=h},2196:function(e,t,o){},"21a6":function(e,t,o){(function(o){var n,i,r;(function(o,a){i=[],n=a,r="function"===typeof n?n.apply(t,i):n,void 0===r||(e.exports=r)})(0,function(){"use strict";function t(e,t){return"undefined"==typeof t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function n(e,t,o){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){s(n.response,t,o)},n.onerror=function(){console.error("could not download file")},n.send()}function i(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function r(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(o){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof o&&o.global===o?o:void 0,s=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype?function(e,t,o){var s=a.URL||a.webkitURL,c=document.createElement("a");t=t||e.name||"download",c.download=t,c.rel="noopener","string"==typeof e?(c.href=e,c.origin===location.origin?r(c):i(c.href)?n(e,t,o):r(c,c.target="_blank")):(c.href=s.createObjectURL(e),setTimeout(function(){s.revokeObjectURL(c.href)},4e4),setTimeout(function(){r(c)},0))}:"msSaveOrOpenBlob"in navigator?function(e,o,a){if(o=o||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,a),o);else if(i(e))n(e,o,a);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout(function(){r(s)})}}:function(e,t,o,i){if(i=i||open("","_blank"),i&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return n(e,t,o);var r="application/octet-stream"===e.type,s=/constructor/i.test(a.HTMLElement)||a.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||r&&s)&&"object"==typeof FileReader){var p=new FileReader;p.onloadend=function(){var e=p.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},p.readAsDataURL(e)}else{var l=a.URL||a.webkitURL,u=l.createObjectURL(e);i?i.location=u:location.href=u,i=null,setTimeout(function(){l.revokeObjectURL(u)},4e4)}});a.saveAs=s.saveAs=s,e.exports=s})}).call(this,o("c8ba"))},"232d":function(e,t,o){},"23a0":function(e,t,o){"use strict";var n=o("79d7"),i=o.n(n);i.a},2590:function(e,t,o){"use strict";var n=o("1288"),i=o.n(n);i.a},"26ad":function(e,t,o){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,o=1,n=arguments.length;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o("e1c6"),s=o("3f0a"),c=o("6923"),p=o("5d19"),l=o("3a92"),u=function(){function e(){}return e.prototype.initialize=function(e){e.register(s.RequestModelAction.KIND,this),e.register(p.ExportSvgAction.KIND,this)},i([a.inject(c.TYPES.IActionDispatcher),r("design:type",Object)],e.prototype,"actionDispatcher",void 0),i([a.inject(c.TYPES.ViewerOptions),r("design:type",Object)],e.prototype,"viewerOptions",void 0),e=i([a.injectable()],e),e}();t.ModelSource=u;var b=function(){function e(){}return e.prototype.apply=function(e,t){var o=new l.SModelIndex;o.add(e);for(var n=0,i=t.bounds;n=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=o("393a"),s=o("dd7b"),c=o("6af2"),p=o("ff70"),l=o("9016"),u=o("6907"),b=o("f923"),d=o("e1c6"),M=o("6923"),h=o("fba3"),f=o("33b2"),z=o("e45b"),O=o("8d53"),A=o("302f"),m=function(){function e(e,t,o){this.viewRegistry=e,this.targetKind=t,this.postprocessors=o}return e.prototype.decorate=function(e,t){return O.isThunk(e)?e:this.postprocessors.reduce(function(e,o){return o.decorate(e,t)},e)},e.prototype.renderElement=function(e,t){var o=this.viewRegistry.get(e.type),n=o.render(e,this,t);return n?this.decorate(n,e):void 0},e.prototype.renderChildren=function(e,t){var o=this;return e.children.map(function(e){return o.renderElement(e,t)}).filter(function(e){return void 0!==e})},e.prototype.postUpdate=function(e){this.postprocessors.forEach(function(t){return t.postUpdate(e)})},e}();t.ModelRenderer=m;var v=function(){function e(){this.patcher=s.init(this.createModules())}return e.prototype.createModules=function(){return[c.propsModule,p.attributesModule,b.classModule,l.styleModule,u.eventListenersModule]},e=n([d.injectable(),i("design:paramtypes",[])],e),e}();t.PatcherProvider=v;var g=function(){function e(e,t,o){var n=this;this.onWindowResize=function(e){var t=document.getElementById(n.options.baseDiv);if(null!==t){var o=n.getBoundsInPage(t);n.actiondispatcher.dispatch(new f.InitializeCanvasBoundsAction(o))}},this.renderer=e("main",o),this.patcher=t.patcher}return e.prototype.update=function(e,t){var o=this;this.logger.log(this,"rendering",e);var n=a.html("div",{id:this.options.baseDiv},this.renderer.renderElement(e));if(void 0!==this.lastVDOM){var i=this.hasFocus();z.copyClassesFromVNode(this.lastVDOM,n),this.lastVDOM=this.patcher.call(this,this.lastVDOM,n),this.restoreFocus(i)}else if("undefined"!==typeof document){var r=document.getElementById(this.options.baseDiv);null!==r?("undefined"!==typeof window&&window.addEventListener("resize",function(){o.onWindowResize(n)}),z.copyClassesFromElement(r,n),z.setClass(n,this.options.baseClass,!0),this.lastVDOM=this.patcher.call(this,r,n)):this.logger.error(this,"element not in DOM:",this.options.baseDiv)}this.renderer.postUpdate(t)},e.prototype.hasFocus=function(){if("undefined"!==typeof document&&document.activeElement&&this.lastVDOM.children&&this.lastVDOM.children.length>0){var e=this.lastVDOM.children[0];if("object"===typeof e){var t=e.elm;return document.activeElement===t}}return!1},e.prototype.restoreFocus=function(e){if(e&&this.lastVDOM.children&&this.lastVDOM.children.length>0){var t=this.lastVDOM.children[0];if("object"===typeof t){var o=t.elm;o&&"function"===typeof o.focus&&o.focus()}}},e.prototype.getBoundsInPage=function(e){var t=e.getBoundingClientRect(),o=h.getWindowScroll();return{x:t.left+o.x,y:t.top+o.y,width:t.width,height:t.height}},n([d.inject(M.TYPES.ViewerOptions),i("design:type",Object)],e.prototype,"options",void 0),n([d.inject(M.TYPES.ILogger),i("design:type",Object)],e.prototype,"logger",void 0),n([d.inject(M.TYPES.IActionDispatcher),i("design:type",Object)],e.prototype,"actiondispatcher",void 0),e=n([d.injectable(),r(0,d.inject(M.TYPES.ModelRendererFactory)),r(1,d.inject(M.TYPES.PatcherProvider)),r(2,d.multiInject(M.TYPES.IVNodePostprocessor)),r(2,d.optional()),i("design:paramtypes",[Function,v,Array])],e),e}();t.ModelViewer=g;var y=function(){function e(e,t,o){this.hiddenRenderer=e("hidden",o),this.patcher=t.patcher}return e.prototype.update=function(e,t){var o;if(this.logger.log(this,"rendering hidden"),e.type===A.EMPTY_ROOT.type)o=a.html("div",{id:this.options.hiddenDiv});else{var n=this.hiddenRenderer.renderElement(e);n&&z.setAttr(n,"opacity",0),o=a.html("div",{id:this.options.hiddenDiv},n)}if(void 0!==this.lastHiddenVDOM)z.copyClassesFromVNode(this.lastHiddenVDOM,o),this.lastHiddenVDOM=this.patcher.call(this,this.lastHiddenVDOM,o);else{var i=document.getElementById(this.options.hiddenDiv);null===i?(i=document.createElement("div"),document.body.appendChild(i)):z.copyClassesFromElement(i,o),z.setClass(o,this.options.baseClass,!0),z.setClass(o,this.options.hiddenClass,!0),this.lastHiddenVDOM=this.patcher.call(this,i,o)}this.hiddenRenderer.postUpdate(t)},n([d.inject(M.TYPES.ViewerOptions),i("design:type",Object)],e.prototype,"options",void 0),n([d.inject(M.TYPES.ILogger),i("design:type",Object)],e.prototype,"logger",void 0),e=n([d.injectable(),r(0,d.inject(M.TYPES.ModelRendererFactory)),r(1,d.inject(M.TYPES.PatcherProvider)),r(2,d.multiInject(M.TYPES.HiddenVNodePostprocessor)),r(2,d.optional()),i("design:paramtypes",[Function,v,Array])],e),e}();t.HiddenModelViewer=y;var q=function(){function e(e,t,o){this.modelRendererFactory=e,this.popupRenderer=this.modelRendererFactory("popup",o),this.patcher=t.patcher}return e.prototype.update=function(e,t){this.logger.log(this,"rendering popup",e);var o,n=e.type===A.EMPTY_ROOT.type;if(n)o=a.html("div",{id:this.options.popupDiv});else{var i=e.canvasBounds,r={top:i.y+"px",left:i.x+"px"};o=a.html("div",{id:this.options.popupDiv,style:r},this.popupRenderer.renderElement(e))}if(void 0!==this.lastPopupVDOM)z.copyClassesFromVNode(this.lastPopupVDOM,o),z.setClass(o,this.options.popupClosedClass,n),this.lastPopupVDOM=this.patcher.call(this,this.lastPopupVDOM,o);else if("undefined"!==typeof document){var s=document.getElementById(this.options.popupDiv);null===s?(s=document.createElement("div"),document.body.appendChild(s)):z.copyClassesFromElement(s,o),z.setClass(o,this.options.popupClass,!0),z.setClass(o,this.options.popupClosedClass,n),this.lastPopupVDOM=this.patcher.call(this,s,o)}this.popupRenderer.postUpdate(t)},n([d.inject(M.TYPES.ViewerOptions),i("design:type",Object)],e.prototype,"options",void 0),n([d.inject(M.TYPES.ILogger),i("design:type",Object)],e.prototype,"logger",void 0),e=n([d.injectable(),r(0,d.inject(M.TYPES.ModelRendererFactory)),r(1,d.inject(M.TYPES.PatcherProvider)),r(2,d.multiInject(M.TYPES.PopupVNodePostprocessor)),r(2,d.optional()),i("design:paramtypes",[Function,v,Array])],e),e}();t.PopupModelViewer=q},"2b54":function(e,t,o){"use strict";var n=o("e7ed"),i=o.n(n);i.a},"2c63":function(e,t,o){e.exports=o("dc14")},"2cac":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e34e"),i=o("cf81"),r=function(){function e(e){this._binding=e,this._bindingWhenSyntax=new i.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new n.BindingOnSyntax(this._binding)}return e.prototype.when=function(e){return this._bindingWhenSyntax.when(e)},e.prototype.whenTargetNamed=function(e){return this._bindingWhenSyntax.whenTargetNamed(e)},e.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},e.prototype.whenTargetTagged=function(e,t){return this._bindingWhenSyntax.whenTargetTagged(e,t)},e.prototype.whenInjectedInto=function(e){return this._bindingWhenSyntax.whenInjectedInto(e)},e.prototype.whenParentNamed=function(e){return this._bindingWhenSyntax.whenParentNamed(e)},e.prototype.whenParentTagged=function(e,t){return this._bindingWhenSyntax.whenParentTagged(e,t)},e.prototype.whenAnyAncestorIs=function(e){return this._bindingWhenSyntax.whenAnyAncestorIs(e)},e.prototype.whenNoAncestorIs=function(e){return this._bindingWhenSyntax.whenNoAncestorIs(e)},e.prototype.whenAnyAncestorNamed=function(e){return this._bindingWhenSyntax.whenAnyAncestorNamed(e)},e.prototype.whenAnyAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenAnyAncestorTagged(e,t)},e.prototype.whenNoAncestorNamed=function(e){return this._bindingWhenSyntax.whenNoAncestorNamed(e)},e.prototype.whenNoAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenNoAncestorTagged(e,t)},e.prototype.whenAnyAncestorMatches=function(e){return this._bindingWhenSyntax.whenAnyAncestorMatches(e)},e.prototype.whenNoAncestorMatches=function(e){return this._bindingWhenSyntax.whenNoAncestorMatches(e)},e.prototype.onActivation=function(e){return this._bindingOnSyntax.onActivation(e)},e}();t.BindingWhenOnSyntax=r},"2cee":function(e,t,o){"use strict";o("6762"),o("2fdb");t["a"]={data:function(){return{ellipsed:[]}},methods:{tooltipIt:function(e,t){e.target.offsetWidth=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o("e1c6"),s=o("6923"),c=o("9757"),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.execute=function(e){var t=this.retrieveResult(e);return this.actionDispatcher.dispatch(t),{model:e.root,modelChanged:!1}},t.prototype.undo=function(e){return{model:e.root,modelChanged:!1}},t.prototype.redo=function(e){return{model:e.root,modelChanged:!1}},i([a.inject(s.TYPES.IActionDispatcher),r("design:type",Object)],t.prototype,"actionDispatcher",void 0),t=i([a.injectable()],t),t}(c.SystemCommand);t.ModelRequestCommand=p},3:function(e,t){},3022:function(e,t,o){(function(e){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),o={},n=0;n=r)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(e){return"[Circular]"}default:return e}}),c=n[o];o=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),O(o)?n.showHidden=o:o&&t._extend(n,o),q(n.showHidden)&&(n.showHidden=!1),q(n.depth)&&(n.depth=2),q(n.colors)&&(n.colors=!1),q(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),u(n,e,n.depth)}function c(e,t){var o=s.styles[t];return o?"["+s.colors[o][0]+"m"+e+"["+s.colors[o][1]+"m":e}function p(e,t){return e}function l(e){var t={};return e.forEach(function(e,o){t[e]=!0}),t}function u(e,o,n){if(e.customInspect&&o&&L(o.inspect)&&o.inspect!==t.inspect&&(!o.constructor||o.constructor.prototype!==o)){var i=o.inspect(n,e);return g(i)||(i=u(e,i,n)),i}var r=b(e,o);if(r)return r;var a=Object.keys(o),s=l(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(o)),w(o)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(o);if(0===a.length){if(L(o)){var c=o.name?": "+o.name:"";return e.stylize("[Function"+c+"]","special")}if(_(o))return e.stylize(RegExp.prototype.toString.call(o),"regexp");if(R(o))return e.stylize(Date.prototype.toString.call(o),"date");if(w(o))return d(o)}var p,O="",A=!1,m=["{","}"];if(z(o)&&(A=!0,m=["[","]"]),L(o)){var v=o.name?": "+o.name:"";O=" [Function"+v+"]"}return _(o)&&(O=" "+RegExp.prototype.toString.call(o)),R(o)&&(O=" "+Date.prototype.toUTCString.call(o)),w(o)&&(O=" "+d(o)),0!==a.length||A&&0!=o.length?n<0?_(o)?e.stylize(RegExp.prototype.toString.call(o),"regexp"):e.stylize("[Object]","special"):(e.seen.push(o),p=A?M(e,o,n,s,a):a.map(function(t){return h(e,o,n,s,t,A)}),e.seen.pop(),f(p,O,m)):m[0]+O+m[1]}function b(e,t){if(q(t))return e.stylize("undefined","undefined");if(g(t)){var o="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(o,"string")}return v(t)?e.stylize(""+t,"number"):O(t)?e.stylize(""+t,"boolean"):A(t)?e.stylize("null","null"):void 0}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function M(e,t,o,n,i){for(var r=[],a=0,s=t.length;a-1&&(s=r?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n"))):s=e.stylize("[Circular]","special")),q(a)){if(r&&i.match(/^\d+$/))return s;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function f(e,t,o){var n=e.reduce(function(e,t){return 0,t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?o[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+o[1]:o[0]+t+" "+e.join(", ")+" "+o[1]}function z(e){return Array.isArray(e)}function O(e){return"boolean"===typeof e}function A(e){return null===e}function m(e){return null==e}function v(e){return"number"===typeof e}function g(e){return"string"===typeof e}function y(e){return"symbol"===typeof e}function q(e){return void 0===e}function _(e){return W(e)&&"[object RegExp]"===S(e)}function W(e){return"object"===typeof e&&null!==e}function R(e){return W(e)&&"[object Date]"===S(e)}function w(e){return W(e)&&("[object Error]"===S(e)||e instanceof Error)}function L(e){return"function"===typeof e}function C(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function S(e){return Object.prototype.toString.call(e)}function E(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(o){if(q(r)&&(r=Object({NODE_ENV:"production",CLIENT:!0,SERVER:!1,DEV:!1,PROD:!0,THEME:"mat",MODE:"spa",WS_BASE_URL:"",STOMP_CLIENT_DEBUG:!1,KEXPLORER_DEBUG:!1,ROUTER_BASE:"/modeler/ui",WEB_BASE_URL:"https://integratedmodelling.org",PACKAGE_VERSION:"0.22.0",PACKAGE_BUILD:"",ENGINE_URL:"/modeler",ENGINE_SHARED:"/modeler/shared/",ENGINE_LOGIN:"/modeler",API:"/modeler/api/v2",WS_URL:"/modeler/message",WS_SUBSCRIBE:"/message",WS_MESSAGE_DESTINATION:"/klab/message",REST_UPLOAD_MAX_SIZE:"1024MB",SEARCH_TIMEOUT_MS:"4000",VUE_ROUTER_MODE:"hash",VUE_ROUTER_BASE:"",APP_URL:"undefined"}).NODE_DEBUG||""),o=o.toUpperCase(),!a[o])if(new RegExp("\\b"+o+"\\b","i").test(r)){var n=e.pid;a[o]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",o,n,e)}}else a[o]=function(){};return a[o]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=z,t.isBoolean=O,t.isNull=A,t.isNullOrUndefined=m,t.isNumber=v,t.isString=g,t.isSymbol=y,t.isUndefined=q,t.isRegExp=_,t.isObject=W,t.isDate=R,t.isError=w,t.isFunction=L,t.isPrimitive=C,t.isBuffer=o("d60a");var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function x(){var e=new Date,t=[E(e.getHours()),E(e.getMinutes()),E(e.getSeconds())].join(":");return[e.getDate(),T[e.getMonth()],t].join(" ")}function N(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",x(),t.format.apply(t,arguments))},t.inherits=o("28a0"),t._extend=function(e,t){if(!t||!W(t))return e;var o=Object.keys(t),n=o.length;while(n--)e[o[n]]=t[o[n]];return e};var B="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function k(e,t){if(!e){var o=new Error("Promise was rejected with a falsy value");o.reason=e,e=o}return t(e)}function P(t){if("function"!==typeof t)throw new TypeError('The "original" argument must be of type Function');function o(){for(var o=[],n=0;n=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("6923"),p=o("3864"),l=o("3a92"),u=function(){function e(){}return e.prototype.createElement=function(e,t){var o;if(this.registry.hasKey(e.type)){var n=this.registry.get(e.type,void 0);if(!(n instanceof l.SChildElement))throw new Error("Element with type "+e.type+" was expected to be an SChildElement.");o=n}else o=new l.SChildElement;return this.initializeChild(o,e,t)},e.prototype.createRoot=function(e){var t;if(this.registry.hasKey(e.type)){var o=this.registry.get(e.type,void 0);if(!(o instanceof l.SModelRoot))throw new Error("Element with type "+e.type+" was expected to be an SModelRoot.");t=o}else t=new l.SModelRoot;return this.initializeRoot(t,e)},e.prototype.createSchema=function(e){var t=this,o={};for(var n in e)if(!this.isReserved(e,n)){var i=e[n];"function"!==typeof i&&(o[n]=i)}return e instanceof l.SParentElement&&(o["children"]=e.children.map(function(e){return t.createSchema(e)})),o},e.prototype.initializeElement=function(e,t){for(var o in t)if(!this.isReserved(e,o)){var n=t[o];"function"!==typeof n&&(e[o]=n)}return e},e.prototype.isReserved=function(e,t){if(["children","parent","index"].indexOf(t)>=0)return!0;var o=e;do{var n=Object.getOwnPropertyDescriptor(o,t);if(void 0!==n)return void 0!==n.get;o=Object.getPrototypeOf(o)}while(o);return!1},e.prototype.initializeParent=function(e,t){var o=this;return this.initializeElement(e,t),l.isParent(t)&&(e.children=t.children.map(function(t){return o.createElement(t,e)})),e},e.prototype.initializeChild=function(e,t,o){return this.initializeParent(e,t),void 0!==o&&(e.parent=o),e},e.prototype.initializeRoot=function(e,t){return this.initializeParent(e,t),e.index.add(e),e},i([s.inject(c.TYPES.SModelRegistry),r("design:type",b)],e.prototype,"registry",void 0),e=i([s.injectable()],e),e}();t.SModelFactory=u,t.EMPTY_ROOT=Object.freeze({type:"NONE",id:"EMPTY"});var b=function(e){function t(t){var o=e.call(this)||this;return t.forEach(function(e){var t=o.getDefaultFeatures(e.constr);if(!t&&e.features&&e.features.enable&&(t=[]),t){var n=d(t,e.features);o.register(e.type,function(){var t=new e.constr;return t.features=n,t})}else o.register(e.type,function(){return new e.constr})}),o}return n(t,e),t.prototype.getDefaultFeatures=function(e){var t=e;do{var o=t.DEFAULT_FEATURES;if(o)return o;t=Object.getPrototypeOf(t)}while(t)},t=i([s.injectable(),a(0,s.multiInject(c.TYPES.SModelElementRegistration)),a(0,s.optional()),r("design:paramtypes",[Array])],t),t}(p.FactoryRegistry);function d(e,t){var o=new Set(e);if(t&&t.enable)for(var n=0,i=t.enable;n= than the number of constructor arguments of its base class."},t.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",t.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE="Invalid Container option. Default scope must be a string ('singleton' or 'transient').",t.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean",t.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean",t.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class",t.POST_CONSTRUCT_ERROR=function(){for(var e=[],t=0;t=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o("e1c6"),s=o("6923"),c=o("3864"),p=o("dd02"),l=o("66f9"),u=o("da84"),b=o("4b75"),d=o("ac2a"),M=function(e){function t(){var t=e.call(this)||this;return t.register(u.VBoxLayouter.KIND,new u.VBoxLayouter),t.register(b.HBoxLayouter.KIND,new b.HBoxLayouter),t.register(d.StackLayouter.KIND,new d.StackLayouter),t}return n(t,e),t}(c.InstanceRegistry);t.LayoutRegistry=M;var h=function(){function e(){}return e.prototype.layout=function(e){new f(e,this.layoutRegistry,this.logger).layout()},i([a.inject(s.TYPES.LayoutRegistry),r("design:type",M)],e.prototype,"layoutRegistry",void 0),i([a.inject(s.TYPES.ILogger),r("design:type",Object)],e.prototype,"logger",void 0),e=i([a.injectable()],e),e}();t.Layouter=h;var f=function(){function e(e,t,o){var n=this;this.element2boundsData=e,this.layoutRegistry=t,this.log=o,this.toBeLayouted=[],e.forEach(function(e,t){l.isLayoutContainer(t)&&n.toBeLayouted.push(t)})}return e.prototype.getBoundsData=function(e){var t=this.element2boundsData.get(e),o=e.bounds;return l.isLayoutContainer(e)&&this.toBeLayouted.indexOf(e)>=0&&(o=this.doLayout(e)),t||(t={bounds:o,boundsChanged:!1,alignmentChanged:!1},this.element2boundsData.set(e,t)),t},e.prototype.layout=function(){while(this.toBeLayouted.length>0){var e=this.toBeLayouted[0];this.doLayout(e)}},e.prototype.doLayout=function(e){var t=this.toBeLayouted.indexOf(e);t>=0&&this.toBeLayouted.splice(t,1);var o=this.layoutRegistry.get(e.layout);o&&o.layout(e,this);var n=this.element2boundsData.get(e);return void 0!==n&&void 0!==n.bounds?n.bounds:(this.log.error(e,"Layout failed"),p.EMPTY_BOUNDS)},e}();t.StatefulLayouter=f},"33b2":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("6923"),p=o("dd02"),l=o("3a92"),u=o("9757"),b=o("fba3"),d=function(){function e(){}return e.prototype.decorate=function(e,t){return t instanceof l.SModelRoot&&!p.isValidDimension(t.canvasBounds)&&(this.rootAndVnode=[t,e]),e},e.prototype.postUpdate=function(){if(void 0!==this.rootAndVnode){var e=this.rootAndVnode[1].elm,t=this.rootAndVnode[0].canvasBounds;if(void 0!==e){var o=this.getBoundsInPage(e);p.almostEquals(o.x,t.x)&&p.almostEquals(o.y,t.y)&&p.almostEquals(o.width,t.width)&&p.almostEquals(o.height,t.width)||this.actionDispatcher.dispatch(new M(o))}this.rootAndVnode=void 0}},e.prototype.getBoundsInPage=function(e){var t=e.getBoundingClientRect(),o=b.getWindowScroll();return{x:t.left+o.x,y:t.top+o.y,width:t.width,height:t.height}},i([s.inject(c.TYPES.IActionDispatcher),r("design:type",Object)],e.prototype,"actionDispatcher",void 0),e=i([s.injectable()],e),e}();t.CanvasBoundsInitializer=d;var M=function(){function e(t){this.newCanvasBounds=t,this.kind=e.KIND}return e.KIND="initializeCanvasBounds",e}();t.InitializeCanvasBoundsAction=M;var h=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o}return n(t,e),t.prototype.execute=function(e){return this.newCanvasBounds=this.action.newCanvasBounds,e.root.canvasBounds=this.newCanvasBounds,e.root},t.prototype.undo=function(e){return e.root},t.prototype.redo=function(e){return e.root},t.KIND=M.KIND,t=i([s.injectable(),a(0,s.inject(c.TYPES.Action)),r("design:paramtypes",[M])],t),t}(u.SystemCommand);t.InitializeCanvasBoundsCommand=h},"34eb":function(e,t,o){(function(n){function i(){return!("undefined"===typeof window||!window.process||"renderer"!==window.process.type)||("undefined"!==typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!==typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function r(e){var o=this.useColors;if(e[0]=(o?"%c":"")+this.namespace+(o?" %c":" ")+e[0]+(o?"%c ":" ")+"+"+t.humanize(this.diff),o){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var i=0,r=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(i++,"%c"===e&&(r=i))}),e.splice(r,0,n)}}function a(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}}function c(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!==typeof n&&"env"in n&&(e=Object({NODE_ENV:"production",CLIENT:!0,SERVER:!1,DEV:!1,PROD:!0,THEME:"mat",MODE:"spa",WS_BASE_URL:"",STOMP_CLIENT_DEBUG:!1,KEXPLORER_DEBUG:!1,ROUTER_BASE:"/modeler/ui",WEB_BASE_URL:"https://integratedmodelling.org",PACKAGE_VERSION:"0.22.0",PACKAGE_BUILD:"",ENGINE_URL:"/modeler",ENGINE_SHARED:"/modeler/shared/",ENGINE_LOGIN:"/modeler",API:"/modeler/api/v2",WS_URL:"/modeler/message",WS_SUBSCRIBE:"/message",WS_MESSAGE_DESTINATION:"/klab/message",REST_UPLOAD_MAX_SIZE:"1024MB",SEARCH_TIMEOUT_MS:"4000",VUE_ROUTER_MODE:"hash",VUE_ROUTER_BASE:"",APP_URL:"undefined"}).DEBUG),e}function p(){try{return window.localStorage}catch(e){}}t=e.exports=o("96fe"),t.log=a,t.formatArgs=r,t.save=s,t.load=c,t.useColors=i,t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:p(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(c())}).call(this,o("4362"))},3585:function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=o("3a92"),r=o("dd02"),a=o("66f9"),s=o("1978"),c=o("4c18"),p=o("e4f0"),l=o("a0af"),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.routingPoints=[],t}return n(t,e),Object.defineProperty(t.prototype,"source",{get:function(){return this.index.getById(this.sourceId)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){return this.index.getById(this.targetId)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bounds",{get:function(){return this.routingPoints.reduce(function(e,t){return r.combine(e,{x:t.x,y:t.y,width:0,height:0})},r.EMPTY_BOUNDS)},enumerable:!0,configurable:!0}),t}(i.SChildElement);function b(e){return e.hasFeature(t.connectableFeature)&&e.canConnect}function d(e,t){void 0===t&&(t=e.routingPoints);var o=M(t),n=e;while(n instanceof i.SChildElement){var r=n.parent;o=r.localToParent(o),n=r}return o}function M(e){for(var t={x:NaN,y:NaN,width:0,height:0},o=0,n=e;ot.x+t.width&&(t.width=i.x-t.x),i.yt.y+t.height&&(t.height=i.y-t.y))}return t}t.SRoutableElement=u,t.connectableFeature=Symbol("connectableFeature"),t.isConnectable=b,t.getAbsoluteRouteBounds=d,t.getRouteBounds=M;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.strokeWidth=0,t}return n(t,e),Object.defineProperty(t.prototype,"incomingEdges",{get:function(){return this.index.getIncomingEdges(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outgoingEdges",{get:function(){return this.index.getOutgoingEdges(this)},enumerable:!0,configurable:!0}),t.prototype.canConnect=function(e,t){return!0},t}(a.SShapeElement);t.SConnectableElement=h;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.editMode=!1,t.hoverFeedback=!1,t.selected=!1,t}return n(t,e),t.prototype.hasFeature=function(e){return-1!==t.DEFAULT_FEATURES.indexOf(e)},t.DEFAULT_FEATURES=[c.selectFeature,l.moveFeature,p.hoverFeedbackFeature],t}(i.SChildElement);t.SRoutingHandle=f;var z=function(e){function t(){var t=e.call(this)||this;return t.type="dangling-anchor",t.size={width:0,height:0},t}return n(t,e),t.DEFAULT_FEATURES=[s.deletableFeature],t}(h);t.SDanglingAnchor=z,t.edgeInProgressID="edge-in-progress",t.edgeInProgressTargetHandleID=t.edgeInProgressID+"-target-anchor"},"359b":function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("393a"),r=o("e45b"),a=o("e1c6"),s=function(){function e(){}return e.prototype.render=function(e,t){for(var o=i.html("div",null,t.renderChildren(e)),n=0,a=e.classes;n=0?e.type.substring(0,t):e.type}function s(e){if(!e.type)return"";var t=e.type.indexOf(":");return t>=0?e.type.substring(t+1):e.type}function c(e,t){if(e.id===t)return e;if(void 0!==e.children)for(var o=0,n=e.children;o=0;r--)e=n[r].parentToLocal(e)}return e}function b(e,t,o){var n=u(e,t,o),i=u({x:e.x+e.width,y:e.y+e.height},t,o);return{x:n.x,y:n.y,width:i.x-n.x,height:i.y-n.y}}t.registerModelElement=r,t.getBasicType=a,t.getSubType=s,t.findElement=c,t.findParent=p,t.findParentByFeature=l,t.translatePoint=u,t.translateBounds=b},3672:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("842c"),a=o("be02"),s=o("064a"),c=o("3585"),p=o("218d"),l=o("1978"),u=o("cd26"),b=o("1254"),d=o("a5f4"),M=o("61d8");t.edgeEditModule=new n.ContainerModule(function(e,t,o){var n={bind:e,isBound:o};r.configureCommand(n,d.SwitchEditModeCommand),r.configureCommand(n,M.ReconnectCommand),r.configureCommand(n,l.DeleteElementCommand),s.configureModelElement(n,"dangling-anchor",c.SDanglingAnchor,p.EmptyGroupView)}),t.labelEditModule=new n.ContainerModule(function(e,t,o){e(i.TYPES.MouseListener).to(u.EditLabelMouseListener),e(i.TYPES.KeyListener).to(u.EditLabelKeyListener),r.configureCommand({bind:e,isBound:o},u.ApplyLabelEditCommand)}),t.labelEditUiModule=new n.ContainerModule(function(e,t,o){var n={bind:e,isBound:o};a.configureActionHandler(n,u.EditLabelAction.KIND,b.EditLabelActionHandler),e(b.EditLabelUI).toSelf().inSingletonScope(),e(i.TYPES.IUIExtension).toService(b.EditLabelUI)})},"36e4":function(e,t,o){},"37a9":function(e,t,o){"use strict";var n=o("ddfc"),i=o.n(n);i.a},3864:function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("e1c6"),r=function(){function e(){this.elements=new Map}return e.prototype.register=function(e,t){if(void 0===e)throw new Error("Key is undefined");if(this.hasKey(e))throw new Error("Key is already registered: "+e);this.elements.set(e,t)},e.prototype.deregister=function(e){if(void 0===e)throw new Error("Key is undefined");this.elements.delete(e)},e.prototype.hasKey=function(e){return this.elements.has(e)},e.prototype.get=function(e,t){var o=this.elements.get(e);return o?new o(t):this.missing(e,t)},e.prototype.missing=function(e,t){throw new Error("Unknown registry key: "+e)},e=n([i.injectable()],e),e}();t.ProviderRegistry=r;var a=function(){function e(){this.elements=new Map}return e.prototype.register=function(e,t){if(void 0===e)throw new Error("Key is undefined");if(this.hasKey(e))throw new Error("Key is already registered: "+e);this.elements.set(e,t)},e.prototype.deregister=function(e){if(void 0===e)throw new Error("Key is undefined");this.elements.delete(e)},e.prototype.hasKey=function(e){return this.elements.has(e)},e.prototype.get=function(e,t){var o=this.elements.get(e);return o?o(t):this.missing(e,t)},e.prototype.missing=function(e,t){throw new Error("Unknown registry key: "+e)},e=n([i.injectable()],e),e}();t.FactoryRegistry=a;var s=function(){function e(){this.elements=new Map}return e.prototype.register=function(e,t){if(void 0===e)throw new Error("Key is undefined");if(this.hasKey(e))throw new Error("Key is already registered: "+e);this.elements.set(e,t)},e.prototype.deregister=function(e){if(void 0===e)throw new Error("Key is undefined");this.elements.delete(e)},e.prototype.hasKey=function(e){return this.elements.has(e)},e.prototype.get=function(e){var t=this.elements.get(e);return t||this.missing(e)},e.prototype.missing=function(e){throw new Error("Unknown registry key: "+e)},e=n([i.injectable()],e),e}();t.InstanceRegistry=s;var c=function(){function e(){this.elements=new Map}return e.prototype.register=function(e,t){if(void 0===e)throw new Error("Key is undefined");var o=this.elements.get(e);void 0!==o?o.push(t):this.elements.set(e,[t])},e.prototype.deregisterAll=function(e){if(void 0===e)throw new Error("Key is undefined");this.elements.delete(e)},e.prototype.get=function(e){var t=this.elements.get(e);return void 0!==t?t:[]},e=n([i.injectable()],e),e}();t.MultiInstanceRegistry=c},"38e8":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=o("66f9"),r=o("7d36"),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.enabled=!0,t}return n(t,e),t.DEFAULT_FEATURES=[i.boundsFeature,i.layoutableChildFeature,r.fadeFeature],t}(i.SShapeElement);t.SButton=a},"393a":function(e,t,o){"use strict";var n="http://www.w3.org/2000/svg",i=["hook","on","style","class","props","attrs","dataset"],r=Array.prototype.slice;function a(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||"symbol"===typeof e||null===e||void 0===e}function s(e,t,o,n){for(var i={ns:t},r=0,a=n.length;r0?l(c.slice(0,p),c.slice(p+1),e[c]):i[c]||l(o,c,e[c])}return i;function l(e,t,o){var n=i[e]||(i[e]={});n[t]=o}}function c(e,t,o,n,i,r){if(i.selector&&(n+=i.selector),i.classNames){var c=i.classNames;n=n+"."+(Array.isArray(c)?c.join("."):c.replace(/\s+/g,"."))}return{sel:n,data:s(i,e,t,o),children:r.map(function(e){return a(e)?{text:e}:e}),key:i.key}}function p(e,t,o,n,i,r){var a;if("function"===typeof n)a=n(i,r);else if(n&&"function"===typeof n.view)a=n.view(i,r);else{if(!n||"function"!==typeof n.render)throw"JSX tag must be either a string, a function or an object with 'view' or 'render' methods";a=n.render(i,r)}return a.key=i.key,a}function l(e,t,o){for(var n=t,i=e.length;n3||!Array.isArray(s))&&(s=r.call(arguments,2)),b(e,t||"props",o||i,n,a,s)}}e.exports={html:d(void 0),svg:d(n,"attrs"),JSX:d}},"3a7c":function(e,t,o){function n(e){return Array.isArray?Array.isArray(e):"[object Array]"===z(e)}function i(e){return"boolean"===typeof e}function r(e){return null===e}function a(e){return null==e}function s(e){return"number"===typeof e}function c(e){return"string"===typeof e}function p(e){return"symbol"===typeof e}function l(e){return void 0===e}function u(e){return"[object RegExp]"===z(e)}function b(e){return"object"===typeof e&&null!==e}function d(e){return"[object Date]"===z(e)}function M(e){return"[object Error]"===z(e)||e instanceof Error}function h(e){return"function"===typeof e}function f(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function z(e){return Object.prototype.toString.call(e)}t.isArray=n,t.isBoolean=i,t.isNull=r,t.isNullOrUndefined=a,t.isNumber=s,t.isString=c,t.isSymbol=p,t.isUndefined=l,t.isRegExp=u,t.isObject=b,t.isDate=d,t.isError=M,t.isFunction=h,t.isPrimitive=f,t.isBuffer=o("b639").Buffer.isBuffer},"3a92":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=o("dd02"),r=o("e629"),a=function(){function e(){}return Object.defineProperty(e.prototype,"root",{get:function(){var e=this;while(e){if(e instanceof l)return e;e=e instanceof p?e.parent:void 0}throw new Error("Element has no root")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.root.index},enumerable:!0,configurable:!0}),e.prototype.hasFeature=function(e){return void 0!==this.features&&this.features.has(e)},e}();function s(e){var t=e.children;return void 0!==t&&t.constructor===Array}t.SModelElement=a,t.isParent=s;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.children=[],t}return n(t,e),t.prototype.add=function(e,t){var o=this.children;if(void 0===t)o.push(e);else{if(t<0||t>this.children.length)throw new Error("Child index "+t+" out of bounds (0.."+o.length+")");o.splice(t,0,e)}e.parent=this,this.index.add(e)},t.prototype.remove=function(e){var t=this.children,o=t.indexOf(e);if(o<0)throw new Error("No such child "+e.id);t.splice(o,1),delete e.parent,this.index.remove(e)},t.prototype.removeAll=function(e){var t=this,o=this.children;if(void 0!==e){for(var n=o.length-1;n>=0;n--)if(e(o[n])){var i=o.splice(n,1)[0];delete i.parent,this.index.remove(i)}}else o.forEach(function(e){delete e.parent,t.index.remove(e)}),o.splice(0,o.length)},t.prototype.move=function(e,t){var o=this.children,n=o.indexOf(e);if(-1===n)throw new Error("No such child "+e.id);if(t<0||t>o.length-1)throw new Error("Child index "+t+" out of bounds (0.."+o.length+")");o.splice(n,1),o.splice(t,0,e)},t.prototype.localToParent=function(e){return i.isBounds(e)?e:{x:e.x,y:e.y,width:-1,height:-1}},t.prototype.parentToLocal=function(e){return i.isBounds(e)?e:{x:e.x,y:e.y,width:-1,height:-1}},t}(a);t.SParentElement=c;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(c);t.SChildElement=p;var l=function(e){function t(t){void 0===t&&(t=new d);var o=e.call(this)||this;return o.canvasBounds=i.EMPTY_BOUNDS,Object.defineProperty(o,"index",{value:t,writable:!1}),o}return n(t,e),t}(c);t.SModelRoot=l;var u="0123456789abcdefghijklmnopqrstuvwxyz";function b(e){void 0===e&&(e=8);for(var t="",o=0;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("6923"),p=o("3a92"),l=o("9757"),u=o("3585"),b=function(){function e(t){this.elementIDs=t,this.kind=e.KIND}return e.KIND="bringToFront",e}();t.BringToFrontAction=b;var d=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o.selected=[],o}return n(t,e),t.prototype.execute=function(e){var t=this,o=e.root;return this.action.elementIDs.forEach(function(e){var n=o.index.getById(e);n instanceof u.SRoutableElement&&(n.source&&t.addToSelection(n.source),n.target&&t.addToSelection(n.target)),n instanceof p.SChildElement&&t.addToSelection(n),t.includeConnectedEdges(n)}),this.redo(e)},t.prototype.includeConnectedEdges=function(e){var t=this;if(e instanceof u.SConnectableElement&&(e.incomingEdges.forEach(function(e){return t.addToSelection(e)}),e.outgoingEdges.forEach(function(e){return t.addToSelection(e)})),e instanceof p.SParentElement)for(var o=0,n=e.children;o=0;t--){var o=this.selected[t],n=o.element;n.parent.move(n,o.index)}return e.root},t.prototype.redo=function(e){for(var t=0;t=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("510b"),p=o("3a92"),l=o("6923"),u=o("0d7a"),b=o("e45b"),d=function(){function e(e){void 0===e&&(e=[]),this.mouseListeners=e}return e.prototype.register=function(e){this.mouseListeners.push(e)},e.prototype.deregister=function(e){var t=this.mouseListeners.indexOf(e);t>=0&&this.mouseListeners.splice(t,1)},e.prototype.getTargetElement=function(e,t){var o=t.target,n=e.index;while(o){if(o.id){var i=n.getById(this.domHelper.findSModelIdByDOMElement(o));if(void 0!==i)return i}o=o.parentNode}},e.prototype.handleEvent=function(e,t,o){var n=this;this.focusOnMouseEvent(e,t);var i=this.getTargetElement(t,o);if(i){var r=this.mouseListeners.map(function(t){return t[e].apply(t,[i,o])}).reduce(function(e,t){return e.concat(t)});if(r.length>0){o.preventDefault();for(var a=0,s=r;a=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}},s=this&&this.__awaiter||function(e,t,o,n){function i(e){return e instanceof o?e:new o(function(t){t(e)})}return new(o||(o=Promise))(function(o,r){function a(e){try{c(n.next(e))}catch(e){r(e)}}function s(e){try{c(n["throw"](e))}catch(e){r(e)}}function c(e){e.done?o(e.value):i(e.value).then(a,s)}c((n=n.apply(e,t||[])).next())})},c=this&&this.__generator||function(e,t){var o,n,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(e){return function(t){return c([e,t])}}function c(r){if(o)throw new TypeError("Generator is already executing.");while(a)try{if(o=1,n&&(i=2&r[0]?n["return"]:r[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,r[1])).done)return i;switch(n=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,n=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("510b"),p=o("9757"),l=o("6923"),u=o("33b2"),b=function(){function e(t,o){void 0===o&&(o=""),this.options=t,this.requestId=o,this.kind=e.KIND}return e.create=function(t){return new e(t,c.generateRequestId())},e.KIND="requestModel",e}();t.RequestModelAction=b;var d=function(){function e(t,o){void 0===o&&(o=""),this.newRoot=t,this.responseId=o,this.kind=e.KIND}return e.KIND="setModel",e}();t.SetModelAction=d;var M=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o}return n(t,e),t.prototype.execute=function(e){return this.oldRoot=e.modelFactory.createRoot(e.root),this.newRoot=e.modelFactory.createRoot(this.action.newRoot),this.newRoot},t.prototype.undo=function(e){return this.oldRoot},t.prototype.redo=function(e){return this.newRoot},Object.defineProperty(t.prototype,"blockUntil",{get:function(){return function(e){return e.kind===u.InitializeCanvasBoundsCommand.KIND}},enumerable:!0,configurable:!0}),t.KIND=d.KIND,t=i([s.injectable(),a(0,s.inject(l.TYPES.Action)),r("design:paramtypes",[d])],t),t}(p.ResetCommand);t.SetModelCommand=M},4047:function(e,t){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},"429b":function(e,t,o){e.exports=o("faa1").EventEmitter},"42be":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("9757"),p=o("6923"),l=o("26ad"),u=function(){function e(){this.kind=b.KIND}return e}();t.CommitModelAction=u;var b=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o}return n(t,e),t.prototype.execute=function(e){return this.newModel=e.modelFactory.createSchema(e.root),this.doCommit(this.newModel,e.root,!0)},t.prototype.doCommit=function(e,t,o){var n=this,i=this.modelSource.commitModel(e);return i instanceof Promise?i.then(function(e){return o&&(n.originalModel=e),t}):(o&&(this.originalModel=i),t)},t.prototype.undo=function(e){return this.doCommit(this.originalModel,e.root,!1)},t.prototype.redo=function(e){return this.doCommit(this.newModel,e.root,!1)},t.KIND="commitModel",i([s.inject(p.TYPES.ModelSource),r("design:type",l.ModelSource)],t.prototype,"modelSource",void 0),t=i([s.injectable(),a(0,s.inject(p.TYPES.Action)),r("design:paramtypes",[u])],t),t}(c.SystemCommand);t.CommitModelCommand=b},"42d6":function(e,t,o){"use strict";function n(e){for(var o in e)t.hasOwnProperty(o)||(t[o]=e[o])}Object.defineProperty(t,"__esModule",{value:!0}),n(o("510b")),n(o("0fb6")),n(o("be02")),n(o("c661")),n(o("538c")),n(o("c146")),n(o("987d")),n(o("9757")),n(o("842c")),n(o("5e9c")),n(o("160b")),n(o("33b2")),n(o("3f0a")),n(o("302f")),n(o("3623")),n(o("3a92")),n(o("ddee")),n(o("1590")),n(o("6176")),n(o("4c95c")),n(o("1417")),n(o("3b4c")),n(o("8d53")),n(o("064a")),n(o("8794")),n(o("65d1")),n(o("29fa")),n(o("a190")),n(o("e45b")),n(o("6923"));var i=o("8122");t.defaultModule=i.default,n(o("42f7")),n(o("61bf")),n(o("320b")),n(o("66f9")),n(o("da84")),n(o("4b75")),n(o("ac2a")),n(o("8e97")),n(o("70d9")),n(o("38e8")),n(o("a406")),n(o("0a28")),n(o("80b5")),n(o("1cc1")),n(o("3c83")),n(o("1e31")),n(o("9d6c")),n(o("779b")),n(o("ac57")),n(o("ea38")),n(o("3672")),n(o("1978")),n(o("cd26")),n(o("1254")),n(o("a5f4")),n(o("cc26")),n(o("61d8")),n(o("4741")),n(o("9964")),n(o("19b5")),n(o("1cd9")),n(o("7faf")),n(o("5d19")),n(o("e7fa")),n(o("7d36")),n(o("f4cb")),n(o("e4f0")),n(o("7f73")),n(o("755f")),n(o("e576")),n(o("a0af")),n(o("559d")),n(o("af44")),n(o("e1cb")),n(o("b485")),n(o("1f89")),n(o("869e")),n(o("b7b8")),n(o("9a1f")),n(o("46cc")),n(o("3585")),n(o("ab71")),n(o("d8f5")),n(o("168d")),n(o("8d9d")),n(o("4c18")),n(o("bcbd")),n(o("c20e")),n(o("d084")),n(o("cf61")),n(o("ed4f")),n(o("5eb6")),n(o("cf98")),n(o("3b62")),n(o("c444")),n(o("fe37")),n(o("3ada"));var r=o("5530");t.graphModule=r.default;var a=o("72dd");t.boundsModule=a.default;var s=o("54f8");t.buttonModule=s.default;var c=o("d14a");t.commandPaletteModule=c.default;var p=o("5884");t.contextMenuModule=p.default;var l=o("7bae3");t.decorationModule=l.default;var u=o("1e31");t.edgeLayoutModule=u.default;var b=o("04c2");t.expandModule=b.default;var d=o("9f8d");t.exportModule=d.default;var M=o("9811");t.fadeModule=M.default;var h=o("c95e");t.hoverModule=h.default;var f=o("520d");t.moveModule=f.default;var z=o("0483");t.openModule=z.default;var O=o("b7ca");t.routingModule=O.default;var A=o("c4e6");t.selectModule=A.default;var m=o("3b74");t.undoRedoModule=m.default;var v=o("cc3e");t.updateModule=v.default;var g=o("1e19");t.viewportModule=g.default;var y=o("6f35");t.zorderModule=y.default,n(o("dfc0")),n(o("47b7")),n(o("6bb9")),n(o("44c1")),n(o("9ad4")),n(o("359b")),n(o("87fa")),n(o("218d")),n(o("42be")),n(o("945d")),n(o("cb6e")),n(o("85ed")),n(o("26ad")),n(o("484b"));var q=o("8e65");t.modelSourceModule=q.default,n(o("fba3")),n(o("0be1")),n(o("dd02")),n(o("7b39")),n(o("9e2e")),n(o("3864"))},"42f7":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,o=1,n=arguments.length;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var c=o("e1c6"),p=o("510b"),l=o("9757"),u=o("6923"),b=o("66f9"),d=function(){function e(t){this.bounds=t,this.kind=e.KIND}return e.KIND="setBounds",e}();t.SetBoundsAction=d;var M=function(){function e(t,o){void 0===o&&(o=""),this.newRoot=t,this.requestId=o,this.kind=e.KIND}return e.create=function(t){return new e(t,p.generateRequestId())},e.KIND="requestBounds",e}();t.RequestBoundsAction=M;var h=function(){function e(t,o,n,i){void 0===i&&(i=""),this.bounds=t,this.revision=o,this.alignments=n,this.responseId=i,this.kind=e.KIND}return e.KIND="computedBounds",e}();t.ComputedBoundsAction=h;var f=function(){function e(){this.kind=e.KIND}return e.KIND="layout",e}();t.LayoutAction=f;var z=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o.bounds=[],o}return n(t,e),t.prototype.execute=function(e){var t=this;return this.action.bounds.forEach(function(o){var n=e.root.index.getById(o.elementId);n&&b.isBoundsAware(n)&&t.bounds.push({element:n,oldBounds:n.bounds,newPosition:o.newPosition,newSize:o.newSize})}),this.redo(e)},t.prototype.undo=function(e){return this.bounds.forEach(function(e){return e.element.bounds=e.oldBounds}),e.root},t.prototype.redo=function(e){return this.bounds.forEach(function(e){e.newPosition?e.element.bounds=i(i({},e.newPosition),e.newSize):e.element.bounds=i({x:e.element.bounds.x,y:e.element.bounds.y},e.newSize)}),e.root},t.KIND=d.KIND,t=r([c.injectable(),s(0,c.inject(u.TYPES.Action)),a("design:paramtypes",[d])],t),t}(l.SystemCommand);t.SetBoundsCommand=z;var O=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o}return n(t,e),t.prototype.execute=function(e){return{model:e.modelFactory.createRoot(this.action.newRoot),modelChanged:!0,cause:this.action}},Object.defineProperty(t.prototype,"blockUntil",{get:function(){return function(e){return e.kind===h.KIND}},enumerable:!0,configurable:!0}),t.KIND=M.KIND,t=r([c.injectable(),s(0,c.inject(u.TYPES.Action)),a("design:paramtypes",[M])],t),t}(l.HiddenCommand);t.RequestBoundsCommand=O},"44c1":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("8122"),i=o("8e65"),r=o("72dd"),a=o("54f8"),s=o("d14a"),c=o("5884"),p=o("7bae3"),l=o("1e31"),u=o("3672"),b=o("04c2"),d=o("9f8d"),M=o("9811"),h=o("c95e"),f=o("520d"),z=o("0483"),O=o("b7ca"),A=o("c4e6"),m=o("3b74"),v=o("cc3e"),g=o("1e19"),y=o("6f35");function q(e,t){var o=[n.default,i.default,r.default,a.default,s.default,c.default,p.default,u.edgeEditModule,l.default,b.default,d.default,M.default,h.default,u.labelEditModule,u.labelEditUiModule,f.default,z.default,O.default,A.default,m.default,v.default,g.default,y.default];if(t&&t.exclude)for(var q=0,_=t.exclude;q<_.length;q++){var W=_[q],R=o.indexOf(W);R>=0&&o.splice(R,1)}e.load.apply(e,o)}t.loadDefaultModules=q},"451f":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("c5f4"),i=o("1979"),r=function(e,t){var o=e.parentRequest;return null!==o&&(!!t(o)||r(o,t))};t.traverseAncerstors=r;var a=function(e){return function(t){var o=function(o){return null!==o&&null!==o.target&&o.target.matchesTag(e)(t)};return o.metaData=new i.Metadata(e,t),o}};t.taggedConstraint=a;var s=a(n.NAMED_TAG);t.namedConstraint=s;var c=function(e){return function(t){var o=null;if(null!==t){if(o=t.bindings[0],"string"===typeof e){var n=o.serviceIdentifier;return n===e}var i=t.bindings[0].implementationType;return e===i}return!1}};t.typeConstraint=c},4681:function(e,t,o){"use strict";var n=o("966d");function i(e,t){var o=this,i=this._readableState&&this._readableState.destroyed,r=this._writableState&&this._writableState.destroyed;return i||r?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(a,this,e)):n.nextTick(a,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?o._writableState?o._writableState.errorEmitted||(o._writableState.errorEmitted=!0,n.nextTick(a,o,e)):n.nextTick(a,o,e):t&&t(e)}),this)}function r(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(e,t){e.emit("error",t)}e.exports={destroy:i,undestroy:r}},"46cc":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,o=1,n=arguments.length;o0){var n=e.routingPoints.slice();if(this.cleanupRoutingPoints(e,n,!1,!0),n.length>0)return n.map(function(e,t){return i({kind:"linear",pointIndex:t},e)})}var r=this.getOptions(e),a=this.calculateDefaultCorners(e,t,o,r);return a.map(function(e){return i({kind:"linear"},e)})},t.prototype.createRoutingHandles=function(e){var t=this.route(e);if(this.commitRoute(e,t),t.length>0){this.addHandle(e,"source","routing-point",-2);for(var o=0;o0&&Math.abs(o-e[t-1].x)=0&&t0&&Math.abs(o-e[t-1].y)=0&&t=0;--c){if(!a.includes(r.bounds,t[c]))break;t.splice(c,1),o&&this.removeHandle(e,c)}if(t.length>=2){var p=this.getOptions(e);for(c=t.length-2;c>=0;--c)a.manhattanDistance(t[c],t[c+1])t?--e.pointIndex:e.pointIndex===t&&o.push(e))}),o.forEach(function(t){return e.remove(t)})},t.prototype.addAdditionalCorner=function(e,t,o,n,i){if(0!==t.length){var r,p="source"===o.kind?t[0]:t[t.length-1],l="source"===o.kind?0:t.length,u=l-("source"===o.kind?1:0);if(t.length>1)r=0===l?a.almostEquals(t[0].x,t[1].x):a.almostEquals(t[t.length-1].x,t[t.length-2].x);else{var b=n.getNearestSide(p);r=b===s.Side.TOP||b===s.Side.BOTTOM}if(r){if(p.yo.get(s.Side.BOTTOM).y){var d={x:o.get(s.Side.TOP).x,y:p.y};t.splice(l,0,d),i&&(e.children.forEach(function(e){e instanceof c.SRoutingHandle&&e.pointIndex>=u&&++e.pointIndex}),this.addHandle(e,"manhattan-50%","volatile-routing-point",u))}}else if(p.xo.get(s.Side.RIGHT).x){d={x:p.x,y:o.get(s.Side.LEFT).y};t.splice(l,0,d),i&&(e.children.forEach(function(e){e instanceof c.SRoutingHandle&&e.pointIndex>=u&&++e.pointIndex}),this.addHandle(e,"manhattan-50%","volatile-routing-point",u))}}},t.prototype.manhattanify=function(e,t){for(var o=1;o0)return r;var a=this.getBestConnectionAnchors(t,o,n,i),c=a.source,p=a.target,l=[],u=o.get(c),b=n.get(p);switch(c){case s.Side.RIGHT:switch(p){case s.Side.BOTTOM:l.push({x:b.x,y:u.y});break;case s.Side.TOP:l.push({x:b.x,y:u.y});break;case s.Side.RIGHT:l.push({x:Math.max(u.x,b.x)+1.5*i.standardDistance,y:u.y}),l.push({x:Math.max(u.x,b.x)+1.5*i.standardDistance,y:b.y});break;case s.Side.LEFT:b.y!==u.y&&(l.push({x:(u.x+b.x)/2,y:u.y}),l.push({x:(u.x+b.x)/2,y:b.y}));break}break;case s.Side.LEFT:switch(p){case s.Side.BOTTOM:l.push({x:b.x,y:u.y});break;case s.Side.TOP:l.push({x:b.x,y:u.y});break;default:b=n.get(s.Side.RIGHT),b.y!==u.y&&(l.push({x:(u.x+b.x)/2,y:u.y}),l.push({x:(u.x+b.x)/2,y:b.y}));break}break;case s.Side.TOP:switch(p){case s.Side.RIGHT:b.x-u.x>0?(l.push({x:u.x,y:u.y-i.standardDistance}),l.push({x:b.x+1.5*i.standardDistance,y:u.y-i.standardDistance}),l.push({x:b.x+1.5*i.standardDistance,y:b.y})):l.push({x:u.x,y:b.y});break;case s.Side.LEFT:b.x-u.x<0?(l.push({x:u.x,y:u.y-i.standardDistance}),l.push({x:b.x-1.5*i.standardDistance,y:u.y-i.standardDistance}),l.push({x:b.x-1.5*i.standardDistance,y:b.y})):l.push({x:u.x,y:b.y});break;case s.Side.TOP:l.push({x:u.x,y:Math.min(u.y,b.y)-1.5*i.standardDistance}),l.push({x:b.x,y:Math.min(u.y,b.y)-1.5*i.standardDistance});break;case s.Side.BOTTOM:b.x!==u.x&&(l.push({x:u.x,y:(u.y+b.y)/2}),l.push({x:b.x,y:(u.y+b.y)/2}));break}break;case s.Side.BOTTOM:switch(p){case s.Side.RIGHT:b.x-u.x>0?(l.push({x:u.x,y:u.y+i.standardDistance}),l.push({x:b.x+1.5*i.standardDistance,y:u.y+i.standardDistance}),l.push({x:b.x+1.5*i.standardDistance,y:b.y})):l.push({x:u.x,y:b.y});break;case s.Side.LEFT:b.x-u.x<0?(l.push({x:u.x,y:u.y+i.standardDistance}),l.push({x:b.x-1.5*i.standardDistance,y:u.y+i.standardDistance}),l.push({x:b.x-1.5*i.standardDistance,y:b.y})):l.push({x:u.x,y:b.y});break;default:b=n.get(s.Side.TOP),b.x!==u.x&&(l.push({x:u.x,y:(u.y+b.y)/2}),l.push({x:b.x,y:(u.y+b.y)/2}));break}break}return l},t.prototype.getBestConnectionAnchors=function(e,t,o,n){var i=t.get(s.Side.RIGHT),r=o.get(s.Side.LEFT);if(r.x-i.x>n.standardDistance)return{source:s.Side.RIGHT,target:s.Side.LEFT};if(i=t.get(s.Side.LEFT),r=o.get(s.Side.RIGHT),i.x-r.x>n.standardDistance)return{source:s.Side.LEFT,target:s.Side.RIGHT};if(i=t.get(s.Side.TOP),r=o.get(s.Side.BOTTOM),i.y-r.y>n.standardDistance)return{source:s.Side.TOP,target:s.Side.BOTTOM};if(i=t.get(s.Side.BOTTOM),r=o.get(s.Side.TOP),r.y-i.y>n.standardDistance)return{source:s.Side.BOTTOM,target:s.Side.TOP};if(i=t.get(s.Side.RIGHT),r=o.get(s.Side.TOP),r.x-i.x>.5*n.standardDistance&&r.y-i.y>n.standardDistance)return{source:s.Side.RIGHT,target:s.Side.TOP};if(r=o.get(s.Side.BOTTOM),r.x-i.x>.5*n.standardDistance&&i.y-r.y>n.standardDistance)return{source:s.Side.RIGHT,target:s.Side.BOTTOM};if(i=t.get(s.Side.LEFT),r=o.get(s.Side.BOTTOM),i.x-r.x>.5*n.standardDistance&&i.y-r.y>n.standardDistance)return{source:s.Side.LEFT,target:s.Side.BOTTOM};if(r=o.get(s.Side.TOP),i.x-r.x>.5*n.standardDistance&&r.y-i.y>n.standardDistance)return{source:s.Side.LEFT,target:s.Side.TOP};if(i=t.get(s.Side.TOP),r=o.get(s.Side.RIGHT),i.y-r.y>.5*n.standardDistance&&i.x-r.x>n.standardDistance)return{source:s.Side.TOP,target:s.Side.RIGHT};if(r=o.get(s.Side.LEFT),i.y-r.y>.5*n.standardDistance&&r.x-i.x>n.standardDistance)return{source:s.Side.TOP,target:s.Side.LEFT};if(i=t.get(s.Side.BOTTOM),r=o.get(s.Side.RIGHT),r.y-i.y>.5*n.standardDistance&&i.x-r.x>n.standardDistance)return{source:s.Side.BOTTOM,target:s.Side.RIGHT};if(r=o.get(s.Side.LEFT),r.y-i.y>.5*n.standardDistance&&r.x-i.x>n.standardDistance)return{source:s.Side.BOTTOM,target:s.Side.LEFT};if(i=t.get(s.Side.TOP),r=o.get(s.Side.TOP),!a.includes(o.bounds,i)&&!a.includes(t.bounds,r))if(i.y-r.y<0){if(Math.abs(i.x-r.x)>(t.bounds.width+n.standardDistance)/2)return{source:s.Side.TOP,target:s.Side.TOP}}else if(Math.abs(i.x-r.x)>o.bounds.width/2)return{source:s.Side.TOP,target:s.Side.TOP};if(i=t.get(s.Side.RIGHT),r=o.get(s.Side.RIGHT),!a.includes(o.bounds,i)&&!a.includes(t.bounds,r))if(i.x-r.x>0){if(Math.abs(i.y-r.y)>(t.bounds.height+n.standardDistance)/2)return{source:s.Side.RIGHT,target:s.Side.RIGHT}}else if(Math.abs(i.y-r.y)>o.bounds.height/2)return{source:s.Side.RIGHT,target:s.Side.RIGHT};return i=t.get(s.Side.TOP),r=o.get(s.Side.RIGHT),a.includes(o.bounds,i)||a.includes(t.bounds,r)?(r=o.get(s.Side.LEFT),a.includes(o.bounds,i)||a.includes(t.bounds,r)?(i=t.get(s.Side.BOTTOM),r=o.get(s.Side.RIGHT),a.includes(o.bounds,i)||a.includes(t.bounds,r)?(r=o.get(s.Side.LEFT),a.includes(o.bounds,i)||a.includes(t.bounds,r)?{source:s.Side.RIGHT,target:s.Side.BOTTOM}:{source:s.Side.BOTTOM,target:s.Side.LEFT}):{source:s.Side.BOTTOM,target:s.Side.RIGHT}):{source:s.Side.TOP,target:s.Side.LEFT}):{source:s.Side.TOP,target:s.Side.RIGHT}},t.KIND="manhattan",t}(s.LinearEdgeRouter);t.ManhattanEdgeRouter=p},4741:function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("3623"),r=o("9964"),a=o("e1c6"),s=function(){function e(t,o){this.expandIds=t,this.collapseIds=o,this.kind=e.KIND}return e.KIND="collapseExpand",e}();t.CollapseExpandAction=s;var c=function(){function e(t){void 0===t&&(t=!0),this.expand=t,this.kind=e.KIND}return e.KIND="collapseExpandAll",e}();t.CollapseExpandAllAction=c;var p=function(){function e(){}return e.prototype.buttonPressed=function(e){var t=i.findParentByFeature(e,r.isExpandable);return void 0!==t?[new s(t.expanded?[]:[t.id],t.expanded?[t.id]:[])]:[]},e.TYPE="button:expand",e=n([a.injectable()],e),e}();t.ExpandButtonHandler=p},"47b7":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=o("3a92"),r=o("66f9"),a=o("779b"),s=o("1978"),c=o("cc26"),p=o("7d36"),l=o("e4f0"),u=o("a0af"),b=o("3585"),d=o("4c18"),M=o("3b62"),h=o("dd02"),f=o("e629"),z=function(e){function t(t){return void 0===t&&(t=new y),e.call(this,t)||this}return n(t,e),t}(M.ViewportRootElement);t.SGraph=z;var O=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.selected=!1,t.hoverFeedback=!1,t.opacity=1,t}return n(t,e),t.prototype.canConnect=function(e,t){return void 0===this.children.find(function(e){return e instanceof A})},t.DEFAULT_FEATURES=[b.connectableFeature,s.deletableFeature,d.selectFeature,r.boundsFeature,u.moveFeature,r.layoutContainerFeature,p.fadeFeature,l.hoverFeedbackFeature,l.popupFeature],t}(b.SConnectableElement);t.SNode=O;var A=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.selected=!1,t.hoverFeedback=!1,t.opacity=1,t}return n(t,e),t.DEFAULT_FEATURES=[b.connectableFeature,d.selectFeature,r.boundsFeature,p.fadeFeature,l.hoverFeedbackFeature],t}(b.SConnectableElement);t.SPort=A;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.selected=!1,t.hoverFeedback=!1,t.opacity=1,t}return n(t,e),t.DEFAULT_FEATURES=[c.editFeature,s.deletableFeature,d.selectFeature,p.fadeFeature,l.hoverFeedbackFeature],t}(b.SRoutableElement);t.SEdge=m;var v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.selected=!1,t.alignment=h.ORIGIN_POINT,t.opacity=1,t}return n(t,e),t.DEFAULT_FEATURES=[r.boundsFeature,r.alignFeature,r.layoutableChildFeature,a.edgeLayoutFeature,p.fadeFeature],t}(r.SShapeElement);t.SLabel=v;var g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.opacity=1,t}return n(t,e),t.DEFAULT_FEATURES=[r.boundsFeature,r.layoutContainerFeature,r.layoutableChildFeature,p.fadeFeature],t}(r.SShapeElement);t.SCompartment=g;var y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.outgoing=new Map,t.incoming=new Map,t}return n(t,e),t.prototype.add=function(t){if(e.prototype.add.call(this,t),t instanceof m){if(t.sourceId){var o=this.outgoing.get(t.sourceId);void 0===o?this.outgoing.set(t.sourceId,[t]):o.push(t)}if(t.targetId){var n=this.incoming.get(t.targetId);void 0===n?this.incoming.set(t.targetId,[t]):n.push(t)}}},t.prototype.remove=function(t){if(e.prototype.remove.call(this,t),t instanceof m){var o=this.outgoing.get(t.sourceId);if(void 0!==o){var n=o.indexOf(t);n>=0&&(1===o.length?this.outgoing.delete(t.sourceId):o.splice(n,1))}var i=this.incoming.get(t.targetId);if(void 0!==i){n=i.indexOf(t);n>=0&&(1===i.length?this.incoming.delete(t.targetId):i.splice(n,1))}}},t.prototype.getAttachedElements=function(e){var t=this;return new f.FluentIterableImpl(function(){return{outgoing:t.outgoing.get(e.id),incoming:t.incoming.get(e.id),nextOutgoingIndex:0,nextIncomingIndex:0}},function(e){var t=e.nextOutgoingIndex;if(void 0!==e.outgoing&&t=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var r=o("e1c6"),a=o("945d"),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.listen=function(e){var t=this;e.addEventListener("message",function(e){t.messageReceived(e.data)}),e.addEventListener("error",function(e){t.logger.error(t,"error event received",e)}),this.webSocket=e},t.prototype.disconnect=function(){this.webSocket&&(this.webSocket.close(),this.webSocket=void 0)},t.prototype.sendMessage=function(e){if(!this.webSocket)throw new Error("WebSocket is not connected");this.webSocket.send(JSON.stringify(e))},t=i([r.injectable()],t),t}(a.DiagramServer);t.WebSocketDiagramServer=s},"48f9":function(e,t,o){},"4a4f":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("30e3"),i=o("c5f4"),r=o("1979");function a(){return function(e,t,o){var a=new r.Metadata(i.POST_CONSTRUCT,t);if(Reflect.hasOwnMetadata(i.POST_CONSTRUCT,e.constructor))throw new Error(n.MULTIPLE_POST_CONSTRUCT_METHODS);Reflect.defineMetadata(i.POST_CONSTRUCT,a,e.constructor)}}t.postConstruct=a},"4b0d":function(e,t,o){"use strict";var n=o("2196"),i=o.n(n);i.a},"4b75":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,o=1,n=arguments.length;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__spreadArrays||function(){for(var e=0,t=0,o=arguments.length;t=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("e1c6"),r=function(){function e(){this.tasks=[],this.endTasks=[],this.triggered=!1}return e.prototype.isAvailable=function(){return"function"===typeof requestAnimationFrame},e.prototype.onNextFrame=function(e){this.tasks.push(e),this.trigger()},e.prototype.onEndOfNextFrame=function(e){this.endTasks.push(e),this.trigger()},e.prototype.trigger=function(){var e=this;this.triggered||(this.triggered=!0,this.isAvailable()?requestAnimationFrame(function(t){return e.run(t)}):setTimeout(function(t){return e.run(t)}))},e.prototype.run=function(e){var t=this.tasks,o=this.endTasks;this.triggered=!1,this.tasks=[],this.endTasks=[],t.forEach(function(t){return t.call(void 0,e)}),o.forEach(function(t){return t.call(void 0,e)})},e=n([i.injectable()],e),e}();t.AnimationFrameSyncer=r},"54f8":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("70d9"),r=new n.ContainerModule(function(e){e(i.ButtonHandlerRegistry).toSelf().inSingletonScope()});t.default=r},5530:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("dfc0"),a=new n.ContainerModule(function(e,t,o,n){n(i.TYPES.IModelFactory).to(r.SGraphFactory).inSingletonScope()});t.default=a},"559d":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,o=1,n=arguments.length;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var c=o("e1c6"),p=o("c146"),l=o("9757"),u=o("3a92"),b=o("3623"),d=o("6923"),M=o("3b4c"),h=o("e45b"),f=o("47b7"),z=o("42be"),O=o("dd02"),A=o("66f9"),m=o("ea38"),v=o("1978"),g=o("a5f4"),y=o("61d8"),q=o("3585"),_=o("168d"),W=o("779b"),R=o("4c18"),w=o("bcbd"),L=o("5eb6"),C=o("a0af"),S=function(){function e(e,t,o){void 0===t&&(t=!0),void 0===o&&(o=!1),this.moves=e,this.animate=t,this.finished=o,this.kind=E.KIND}return e}();t.MoveAction=S;var E=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o.resolvedMoves=new Map,o.edgeMementi=[],o}var o;return n(t,e),o=t,t.prototype.execute=function(e){var t=this,o=e.root.index,n=new Map,i=new Map;return this.action.moves.forEach(function(e){var r=o.getById(e.elementId);if(r instanceof q.SRoutingHandle&&t.edgeRouterRegistry){var a=r.parent;if(a instanceof q.SRoutableElement){var s=t.resolveHandleMove(r,a,e);if(s){var c=n.get(a);c||(c=[],n.set(a,c)),c.push(s)}}}else if(r&&C.isLocateable(r)){var p=t.resolveElementMove(r,e);p&&(t.resolvedMoves.set(p.element.id,p),t.edgeRouterRegistry&&o.getAttachedElements(r).forEach(function(e){if(e instanceof q.SRoutableElement){var t=i.get(e),o=O.subtract(p.toPosition,p.fromPosition),n=t?O.linear(t,o,.5):o;i.set(e,n)}}))}}),this.doMove(n,i),this.action.animate?(this.undoMove(),new p.CompoundAnimation(e.root,e,[new T(e.root,this.resolvedMoves,e,!1),new x(e.root,this.edgeMementi,e,!1)]).start()):e.root},t.prototype.resolveHandleMove=function(e,t,o){var n=o.fromPosition;if(!n){var i=this.edgeRouterRegistry.get(t.routerKind);n=i.getHandlePosition(t,i.route(t),e)}if(n)return{handle:e,fromPosition:n,toPosition:o.toPosition}},t.prototype.resolveElementMove=function(e,t){var o=t.fromPosition||{x:e.position.x,y:e.position.y};return{element:e,fromPosition:o,toPosition:t.toPosition}},t.prototype.doMove=function(e,t){var o=this;this.resolvedMoves.forEach(function(e){e.element.position=e.toPosition}),e.forEach(function(e,t){var n=o.edgeRouterRegistry.get(t.routerKind),i=n.takeSnapshot(t);n.applyHandleMoves(t,e);var r=n.takeSnapshot(t);o.edgeMementi.push({edge:t,before:i,after:r})}),t.forEach(function(t,n){if(!e.get(n)){var i=o.edgeRouterRegistry.get(n.routerKind),r=i.takeSnapshot(n);if(n.source&&n.target&&o.resolvedMoves.get(n.source.id)&&o.resolvedMoves.get(n.target.id))n.routingPoints=n.routingPoints.map(function(e){return O.add(e,t)});else{var a=R.isSelectable(n)&&n.selected;i.cleanupRoutingPoints(n,n.routingPoints,a,o.action.finished)}var s=i.takeSnapshot(n);o.edgeMementi.push({edge:n,before:r,after:s})}})},t.prototype.undoMove=function(){var e=this;this.resolvedMoves.forEach(function(e){e.element.position=e.fromPosition}),this.edgeMementi.forEach(function(t){var o=e.edgeRouterRegistry.get(t.edge.routerKind);o.applySnapshot(t.edge,t.before)})},t.prototype.undo=function(e){return new p.CompoundAnimation(e.root,e,[new T(e.root,this.resolvedMoves,e,!0),new x(e.root,this.edgeMementi,e,!0)]).start()},t.prototype.redo=function(e){return new p.CompoundAnimation(e.root,e,[new T(e.root,this.resolvedMoves,e,!1),new x(e.root,this.edgeMementi,e,!1)]).start()},t.prototype.merge=function(e,t){var n=this;if(!this.action.animate&&e instanceof o)return e.resolvedMoves.forEach(function(e,t){var o=n.resolvedMoves.get(t);o?o.toPosition=e.toPosition:n.resolvedMoves.set(t,e)}),e.edgeMementi.forEach(function(e){var t=n.edgeMementi.find(function(t){return t.edge.id===e.edge.id});t?t.after=e.after:n.edgeMementi.push(e)}),!0;if(e instanceof y.ReconnectCommand){var i=e.memento;if(i){var r=this.edgeMementi.find(function(e){return e.edge.id===i.edge.id});r?r.after=i.after:this.edgeMementi.push(i)}return!0}return!1},t.KIND="move",r([c.inject(_.EdgeRouterRegistry),c.optional(),a("design:type",_.EdgeRouterRegistry)],t.prototype,"edgeRouterRegistry",void 0),t=o=r([c.injectable(),s(0,c.inject(d.TYPES.Action)),a("design:paramtypes",[S])],t),t}(l.MergeableCommand);t.MoveCommand=E;var T=function(e){function t(t,o,n,i){void 0===i&&(i=!1);var r=e.call(this,n)||this;return r.model=t,r.elementMoves=o,r.reverse=i,r}return n(t,e),t.prototype.tween=function(e){var t=this;return this.elementMoves.forEach(function(o){t.reverse?o.element.position={x:(1-e)*o.toPosition.x+e*o.fromPosition.x,y:(1-e)*o.toPosition.y+e*o.fromPosition.y}:o.element.position={x:(1-e)*o.fromPosition.x+e*o.toPosition.x,y:(1-e)*o.fromPosition.y+e*o.toPosition.y}}),this.model},t}(p.Animation);t.MoveAnimation=T;var x=function(e){function t(t,o,n,i){void 0===i&&(i=!1);var r=e.call(this,n)||this;return r.model=t,r.reverse=i,r.expanded=[],o.forEach(function(e){var t=r.reverse?e.after:e.before,o=r.reverse?e.before:e.after,n=t.routedPoints,i=o.routedPoints,a=Math.max(n.length,i.length);r.expanded.push({startExpandedRoute:r.growToSize(n,a),endExpandedRoute:r.growToSize(i,a),memento:e})}),r}return n(t,e),t.prototype.midPoint=function(e){var t=e.edge,o=e.edge.source,n=e.edge.target;return O.linear(b.translatePoint(O.center(o.bounds),o.parent,t.parent),b.translatePoint(O.center(n.bounds),n.parent,t.parent),.5)},t.prototype.start=function(){return this.expanded.forEach(function(e){e.memento.edge.removeAll(function(e){return e instanceof q.SRoutingHandle})}),e.prototype.start.call(this)},t.prototype.tween=function(e){var t=this;return 1===e?this.expanded.forEach(function(e){var o=e.memento;t.reverse?o.before.router.applySnapshot(o.edge,o.before):o.after.router.applySnapshot(o.edge,o.after)}):this.expanded.forEach(function(t){for(var o=[],n=1;n(a+p)*i)++p;a+=p;for(var l=0;l0?new S(i,!1,o):void 0}},t.prototype.snap=function(e,t,o){return o&&this.snapper?this.snapper.snap(e,t):e},t.prototype.getHandlePosition=function(e){if(this.edgeRouterRegistry){var t=e.parent;if(!(t instanceof q.SRoutableElement))return;var o=this.edgeRouterRegistry.get(t.routerKind),n=o.route(t);return o.getHandlePosition(t,n,e)}},t.prototype.mouseEnter=function(e,t){return e instanceof u.SModelRoot&&0===t.buttons&&this.mouseUp(e,t),[]},t.prototype.mouseUp=function(e,t){var o=this,n=[],i=!1;if(this.startDragPosition){var r=this.getElementMoves(e,t,!0);r&&n.push(r),e.root.index.all().forEach(function(t){if(t instanceof q.SRoutingHandle){var r=t.parent;if(r instanceof q.SRoutableElement&&t.danglingAnchor){var a=o.getHandlePosition(t);if(a){var s=b.translatePoint(a,t.parent,t.root),c=A.findChildrenAtPosition(e.root,s).find(function(e){return q.isConnectable(e)&&e.canConnect(r,t.kind)});c&&o.hasDragged&&(n.push(new y.ReconnectAction(t.parent.id,"source"===t.kind?c.id:r.sourceId,"target"===t.kind?c.id:r.targetId)),i=!0)}}t.editMode&&n.push(new g.SwitchEditModeAction([],[t.id]))}})}if(!i){var a=e.root.index.getById(q.edgeInProgressID);if(a instanceof u.SChildElement){var s=[];s.push(q.edgeInProgressID),a.children.forEach(function(e){e instanceof q.SRoutingHandle&&e.danglingAnchor&&s.push(e.danglingAnchor.id)}),n.push(new v.DeleteElementAction(s))}}return this.hasDragged&&n.push(new z.CommitModelAction),this.hasDragged=!1,this.startDragPosition=void 0,this.elementId2startPos.clear(),n},t.prototype.decorate=function(e,t){return e},r([c.inject(_.EdgeRouterRegistry),c.optional(),a("design:type",_.EdgeRouterRegistry)],t.prototype,"edgeRouterRegistry",void 0),r([c.inject(d.TYPES.ISnapper),c.optional(),a("design:type",Object)],t.prototype,"snapper",void 0),t}(M.MouseListener);t.MoveMouseListener=N;var B=function(){function e(){}return e.prototype.decorate=function(e,t){if(W.isEdgeLayoutable(t)&&t.parent instanceof f.SEdge)return e;var o="";if(C.isLocateable(t)&&t instanceof u.SChildElement&&void 0!==t.parent){var n=t.position;0===n.x&&0===n.y||(o="translate("+n.x+", "+n.y+")")}if(A.isAlignable(t)){var i=t.alignment;0===i.x&&0===i.y||(o.length>0&&(o+=" "),o+="translate("+i.x+", "+i.y+")")}return o.length>0&&h.setAttr(e,"transform",o),e},e.prototype.postUpdate=function(){},e=r([c.injectable()],e),e}();t.LocationPostprocessor=B},5823:function(e,t,o){"use strict";var n=o("e8de"),i=o.n(n);i.a},5870:function(e,t,o){},5884:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("1cc1"),r=o("3c83"),a=o("6923"),s=new n.ContainerModule(function(e){e(a.TYPES.IContextMenuServiceProvider).toProvider(function(e){return function(){return new Promise(function(t,o){e.container.isBound(a.TYPES.IContextMenuService)?t(e.container.get(a.TYPES.IContextMenuService)):o()})}}),e(a.TYPES.MouseListener).to(r.ContextMenuMouseListener),e(a.TYPES.IContextMenuProviderRegistry).to(i.ContextMenuProviderRegistry)});t.default=s},"5b35":function(e,t,o){"use strict";var n=o("b878"),i=o.n(n);i.a},"5bc0":function(e,t,o){},"5bcd":function(e,t,o){},"5d08":function(e,t,o){"use strict";var n=o("d675"),i=o.n(n);i.a},"5d19":function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o("66f9"),a=o("0fb6"),s=o("6923"),c=o("dd02"),p=o("e1c6"),l=function(){function e(t,o){void 0===o&&(o=""),this.svg=t,this.responseId=o,this.kind=e.KIND}return e.KIND="exportSvg",e}();t.ExportSvgAction=l;var u=function(){function e(){}return e.prototype.export=function(e,t){if("undefined"!==typeof document){var o=document.getElementById(this.options.hiddenDiv);if(null!==o&&o.firstElementChild&&"svg"===o.firstElementChild.tagName){var n=o.firstElementChild,i=this.createSvg(n,e);this.actionDispatcher.dispatch(new l(i,t?t.requestId:""))}}},e.prototype.createSvg=function(e,t){var o=new XMLSerializer,n=o.serializeToString(e),i=document.createElement("iframe");if(document.body.appendChild(i),!i.contentWindow)throw new Error("IFrame has no contentWindow");var r=i.contentWindow.document;r.open(),r.write(n),r.close();var a=r.getElementById(e.id);a.removeAttribute("opacity"),this.copyStyles(e,a,["width","height","opacity"]),a.setAttribute("version","1.1");var s=this.getBounds(t);a.setAttribute("viewBox",s.x+" "+s.y+" "+s.width+" "+s.height);var c=o.serializeToString(a);return document.body.removeChild(i),c},e.prototype.copyStyles=function(e,t,o){for(var n=getComputedStyle(e),i=getComputedStyle(t),r="",a=0;a=t.length?{value:void 0,done:!0}:(e=n(t,o),this._i+=e.length,{value:e,done:!1})})},"5e1a":function(e,t,o){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=o("8707").Buffer,r=o(3);function a(e,t,o){e.copy(t,o)}e.exports=function(){function e(){n(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";var t=this.head,o=""+t.data;while(t=t.next)o+=e+t.data;return o},e.prototype.concat=function(e){if(0===this.length)return i.alloc(0);var t=i.allocUnsafe(e>>>0),o=this.head,n=0;while(o)a(o.data,t,n),n+=o.data.length,o=o.next;return t},e}(),r&&r.inspect&&r.inspect.custom&&(e.exports.prototype[r.inspect.custom]=function(){var e=r.inspect({length:this.length});return this.constructor.name+" "+e})},"5e9c":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("6923");function i(e,t){var o=e.get(n.TYPES.CommandStackOptions);for(var i in t)t.hasOwnProperty(i)&&(o[i]=t[i]);return o}t.overrideCommandStackOptions=i},"5eb6":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("3a92");function i(e){return e instanceof n.SModelRoot&&e.hasFeature(t.viewportFeature)&&"zoom"in e&&"scroll"in e}t.viewportFeature=Symbol("viewportFeature"),t.isViewport=i},6176:function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}},s=this&&this.__spreadArrays||function(){for(var e=0,t=0,o=arguments.length;t=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o("e1c6"),a=o("dd02"),s=o("3a92"),c=o("6923"),p=o("42f7"),l=o("320b"),u=o("66f9"),b=function(){function e(){}return e}();t.BoundsData=b;var d=function(){function e(){this.element2boundsData=new Map}return e.prototype.decorate=function(e,t){return(u.isSizeable(t)||u.isLayoutContainer(t))&&this.element2boundsData.set(t,{vnode:e,bounds:t.bounds,boundsChanged:!1,alignmentChanged:!1}),t instanceof s.SModelRoot&&(this.root=t),e},e.prototype.postUpdate=function(e){if(void 0!==e&&e.kind===p.RequestBoundsAction.KIND){var t=e;this.getBoundsFromDOM(),this.layouter.layout(this.element2boundsData);var o=[],n=[];this.element2boundsData.forEach(function(e,t){if(e.boundsChanged&&void 0!==e.bounds){var i={elementId:t.id,newSize:{width:e.bounds.width,height:e.bounds.height}};t instanceof s.SChildElement&&u.isLayoutContainer(t.parent)&&(i.newPosition={x:e.bounds.x,y:e.bounds.y}),o.push(i)}e.alignmentChanged&&void 0!==e.alignment&&n.push({elementId:t.id,newAlignment:e.alignment})});var i=void 0!==this.root?this.root.revision:void 0;this.actionDispatcher.dispatch(new p.ComputedBoundsAction(o,i,n,t.requestId)),this.element2boundsData.clear()}},e.prototype.getBoundsFromDOM=function(){var e=this;this.element2boundsData.forEach(function(t,o){if(t.bounds&&u.isSizeable(o)){var n=t.vnode;if(n&&n.elm){var i=e.getBounds(n.elm,o);!u.isAlignable(o)||a.almostEquals(i.x,0)&&a.almostEquals(i.y,0)||(t.alignment={x:-i.x,y:-i.y},t.alignmentChanged=!0);var r={x:o.bounds.x,y:o.bounds.y,width:i.width,height:i.height};a.almostEquals(r.x,o.bounds.x)&&a.almostEquals(r.y,o.bounds.y)&&a.almostEquals(r.width,o.bounds.width)&&a.almostEquals(r.height,o.bounds.height)||(t.bounds=r,t.boundsChanged=!0)}}})},e.prototype.getBounds=function(e,t){if("function"!==typeof e.getBBox)return this.logger.error(this,"Not an SVG element:",e),a.EMPTY_BOUNDS;var o=e.getBBox();return{x:o.x,y:o.y,width:o.width,height:o.height}},n([r.inject(c.TYPES.ILogger),i("design:type",Object)],e.prototype,"logger",void 0),n([r.inject(c.TYPES.IActionDispatcher),i("design:type",Object)],e.prototype,"actionDispatcher",void 0),n([r.inject(c.TYPES.Layouter),i("design:type",l.Layouter)],e.prototype,"layouter",void 0),e=n([r.injectable()],e),e}();t.HiddenBoundsUpdater=d},"61d8":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("9757"),p=o("6923"),l=o("3585"),u=o("168d"),b=function(){function e(t,o,n){this.routableId=t,this.newSourceId=o,this.newTargetId=n,this.kind=e.KIND}return e.KIND="reconnect",e}();t.ReconnectAction=b;var d=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o}return n(t,e),t.prototype.execute=function(e){return this.doExecute(e),e.root},t.prototype.doExecute=function(e){var t=e.root.index,o=t.getById(this.action.routableId);if(o instanceof l.SRoutableElement){var n=this.edgeRouterRegistry.get(o.routerKind),i=n.takeSnapshot(o);n.applyReconnect(o,this.action.newSourceId,this.action.newTargetId);var r=n.takeSnapshot(o);this.memento={edge:o,before:i,after:r}}},t.prototype.undo=function(e){if(this.memento){var t=this.edgeRouterRegistry.get(this.memento.edge.routerKind);t.applySnapshot(this.memento.edge,this.memento.before)}return e.root},t.prototype.redo=function(e){if(this.memento){var t=this.edgeRouterRegistry.get(this.memento.edge.routerKind);t.applySnapshot(this.memento.edge,this.memento.after)}return e.root},t.KIND=b.KIND,i([s.inject(u.EdgeRouterRegistry),r("design:type",u.EdgeRouterRegistry)],t.prototype,"edgeRouterRegistry",void 0),t=i([s.injectable(),a(0,s.inject(p.TYPES.Action)),r("design:paramtypes",[b])],t),t}(c.Command);t.ReconnectCommand=d},6208:function(e,t,o){"use strict";var n=o("6cea"),i=o.n(n);i.a},"624f":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("30e3"),i=o("c5f4"),r=o("1979"),a=o("66d7"),s=function(){function e(e){this._cb=e}return e.prototype.unwrap=function(){return this._cb()},e}();function c(e){return function(t,o,s){if(void 0===e)throw new Error(n.UNDEFINED_INJECT_ANNOTATION(t.name));var c=new r.Metadata(i.INJECT_TAG,e);"number"===typeof s?a.tagParameter(t,o,s,c):a.tagProperty(t,o,c)}}t.LazyServiceIdentifer=s,t.inject=c},6283:function(e,t,o){"use strict";var n=o("5bcd"),i=o.n(n);i.a},"62c8":function(e,t,o){ -/*! safe-buffer. MIT License. Feross Aboukhadijeh */ -var n=o("b639"),i=n.Buffer;function r(e,t){for(var o in e)t[o]=e[o]}function a(e,t,o){return i(e,t,o)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(r(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),r(i,a),a.from=function(e,t,o){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,o)},a.alloc=function(e,t,o){if("number"!==typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"===typeof o?n.fill(t,o):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},6420:function(e,t,o){"use strict";var n=o("1f0f"),i=o.n(n);i.a},6592:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTextVNode=a,t.transformName=s,t.unescapeEntities=l;var n=o("81aa"),i=r(n);function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return(0,i.default)(void 0,void 0,void 0,l(e,t))}function s(e){e=e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()});var t=e.charAt(0).toLowerCase();return""+t+e.substring(1)}var c=new RegExp("&[a-z0-9#]+;","gi"),p=null;function l(e,t){return p||(p=t.createElement("div")),e.replace(c,function(e){return p.innerHTML=e,p.textContent})}},"65d1":function(e,t,o){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,o=1,n=arguments.length;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o("e1c6"),s=o("393a"),c=o("3623"),p=o("e45b"),l=o("8e97"),u=o("779b"),b=o("3585"),d=o("168d"),M=o("8d9d"),h=function(){function e(){}return e.prototype.render=function(e,t){var o="scale("+e.zoom+") translate("+-e.scroll.x+","+-e.scroll.y+")";return s.svg("svg",{"class-sprotty-graph":!0},s.svg("g",{transform:o},t.renderChildren(e)))},e=i([a.injectable()],e),e}();t.SGraphView=h;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(e,t){var o=this.edgeRouterRegistry.get(e.routerKind),n=o.route(e);if(0===n.length)return this.renderDanglingEdge("Cannot compute route",e,t);if(!this.isVisible(e,n,t)){if(0===e.children.length)return;return s.svg("g",null,t.renderChildren(e,{route:n}))}return s.svg("g",{"class-sprotty-edge":!0,"class-mouseover":e.hoverFeedback},this.renderLine(e,n,t),this.renderAdditionals(e,n,t),t.renderChildren(e,{route:n}))},t.prototype.renderLine=function(e,t,o){for(var n=t[0],i="M "+n.x+","+n.y,r=1;r0},e.prototype.connect_=function(){n&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){n&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,o=void 0===t?"":t,n=p.some(function(e){return!!~o.indexOf(e)});n&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),b=function(e,t){for(var o=0,n=Object.keys(t);o0},e}(),w="undefined"!==typeof WeakMap?new WeakMap:new o,L=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var o=u.getInstance(),n=new R(t,o,this);w.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){L.prototype[e]=function(){var t;return(t=w.get(this))[e].apply(t,arguments)}});var C=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:L}();t["a"]=C}).call(this,o("c8ba"))},"6f35":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("842c"),r=o("3ada"),a=new n.ContainerModule(function(e,t,o){i.configureCommand({bind:e,isBound:o},r.BringToFrontCommand)});t.default=a},"70d9":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("3864"),c=o("e1c6"),p=o("6923"),l=function(e){function t(t){var o=e.call(this)||this;return t.forEach(function(e){return o.register(e.TYPE,new e)}),o}return n(t,e),t=i([c.injectable(),a(0,c.multiInject(p.TYPES.IButtonHandler)),a(0,c.optional()),r("design:paramtypes",[Array])],t),t}(s.InstanceRegistry);t.ButtonHandlerRegistry=l},7122:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("30e3"),i=o("155f"),r=o("c5f4");function a(e,t,o){var n=t.filter(function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ClassProperty}),r=n.map(o);return n.forEach(function(t,o){var n="";n=t.target.name.value();var i=r[o];e[n]=i}),e}function s(e,t){return new(e.bind.apply(e,[void 0].concat(t)))}function c(e,t){if(Reflect.hasMetadata(r.POST_CONSTRUCT,e)){var o=Reflect.getMetadata(r.POST_CONSTRUCT,e);try{t[o.value]()}catch(t){throw new Error(n.POST_CONSTRUCT_ERROR(e.name,t.message))}}}function p(e,t,o){var n=null;if(t.length>0){var r=t.filter(function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ConstructorArgument}),p=r.map(o);n=s(e,p),n=a(n,t,o)}else n=new e;return c(e,n),n}t.resolveInstance=p},"715d":function(e,t,o){"use strict";var n=o("1f66"),i=o.n(n);i.a},7173:function(e,t,o){"use strict";var n=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"ft-wrapper",class:{"ft-no-timestamp":0===e.slices.length||-1===e.timestamp}},[o("div",{staticClass:"ft-container"},[o("div",{staticClass:"ft-time row"},[o("div",{staticClass:"ft-time-origin-container",on:{click:function(t){e.onClick(t,function(){e.changeTimestamp(-1)})}}},[o("q-icon",{staticClass:"ft-time-origin",class:{"ft-time-origin-active":-1===e.timestamp},attrs:{name:"mdi-clock-start"}}),0!==e.slices.length?o("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"},domProps:{innerHTML:e._s(e.slices.length>0?e.slices[0][1]:e.$t("label.timeOrigin"))}}):e._e()],1),o("div",{ref:"ft-timeline-"+e.observationId,staticClass:"ft-timeline-container col",class:{"ot-timeline-with-time":-1!==e.timestamp}},[o("div",{ref:"ft-timeline",staticClass:"ft-timeline",class:{"ft-with-slices":0!==e.slices.length},on:{mousemove:e.moveOnTimeline,click:function(t){e.changeTimestamp(e.getDateFromPosition(t))}}},[o("div",{directives:[{name:"show",rawName:"v-show",value:e.slices.length>0,expression:"slices.length > 0"}],staticClass:"ft-timeline-viewer"}),e.slices.length<=1?o("div",{staticClass:"ft-slice-container",style:{left:e.calculatePosition(e.start)+"px"}},[o("div",{staticClass:"ft-slice"}),o("div",{staticClass:"ft-slice-caption"},[e._v(e._s(e.getLabel(e.start)))])]):e._e(),e._l(e.slices,function(t,n){return-1!==t[0]?o("div",{key:n,staticClass:"ft-slice-container",style:{left:e.calculatePosition(t[0])+"px"}},[o("div",{staticClass:"ft-slice"}),o("div",{staticClass:"ft-slice-caption"},[e._v(e._s(e.getLabel(t[0])))])]):e._e()}),o("div",{staticClass:"ft-slice-container",style:{left:"calc("+e.calculatePosition(e.end)+"px - 2px)"}},[o("div",{staticClass:"ft-slice"}),o("div",{staticClass:"ft-slice-caption"},[e._v(e._s(e.getLabel(e.end)))])]),-1!==e.timestamp?o("div",{staticClass:"ft-actual-time",style:{left:"calc("+e.calculatePosition(e.timestamp)+"px - 11px + "+(e.timestamp===e.end?"0":"1")+"px)"}},[o("q-icon",{attrs:{name:"mdi-menu-down-outline"}})],1):e._e(),0!==e.slices.length?o("q-tooltip",{staticClass:"ft-date-tooltip",attrs:{offset:[0,15],self:"top middle",anchor:"bottom middle",delay:300},domProps:{innerHTML:e._s(e.timelineDate)}}):e._e()],2)])])]),o("q-resize-observable",{on:{resize:e.updateWidth}})],1)},i=[];n._withStripped=!0;o("ac6a");var r=o("278c"),a=o.n(r),s=(o("28a5"),o("c5f6"),o("c1df")),c=o.n(s),p=o("b8c1"),l={name:"FigureTimeline",mixins:[p["a"]],props:{observationId:{type:String,required:!0},start:{type:Number,required:!0},end:{type:Number,required:!0},rawSlices:{type:Array,default:function(){return[]}},startingTime:{type:Number,default:-1}},computed:{slices:function(){return this.rawSlices.map(function(e){var t=e.split(",");return[+t[0],t[1]]})}},data:function(){return{timestamp:this.startingTime,timelineDate:null,timelineWidth:0,timelineLeft:0}},methods:{formatDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return null===e?"":(t||(e=c()(e).format("L")),'
'.concat(e,"
"))},updateWidth:function(){var e=this.$refs["ft-timeline-".concat(this.observationId)];e?(this.timelineWidth=e.clientWidth,this.timelineLeft=e.getBoundingClientRect().left):(this.timelineWidth=0,this.timelineLeft=0)},calculatePosition:function(e){if(0===this.timelineWidth)return 0;if(-1===e)return 0;var t=Math.floor((e-this.start)*this.timelineWidth/(this.end-this.start));return t},moveOnTimeline:function(e){var t=this.getSlice(this.getDateFromPosition(e)),o=a()(t,2);this.timelineDate=o[1]},getDateFromPosition:function(e){if(0===this.timelineWidth)return 0;var t=e.clientX-this.timelineLeft,o=Math.floor(this.start+t*(this.end-this.start)/this.timelineWidth);return o>this.end?o=this.end:othis.end)return[this.end,this.formatDate(this.end)];var t=[this.start,this.formatDate(this.start)];return this.slices.length>0&&this.slices.forEach(function(o){o[0]<=e&&(t=o)}),t},changeTimestamp:function(e){if(0!==this.slices.length){e>this.end?this.timestamp=this.end:this.timestamp=e;var t=this.getSlice(e),o=a()(t,2);this.timelineDate=o[1],this.$emit("timestampchange",{time:t[0],timeString:-1===e?t[1]:c()(e).format("L")})}},getLabel:function(e){return c()(e).format("L")}},mounted:function(){this.updateWidth()}},u=l,b=(o("0faf"),o("2877")),d=Object(b["a"])(u,n,i,!1,null,null,null);d.options.__file="FigureTimeline.vue";t["a"]=d.exports},"719e":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("30e3"),i=o("c5f4");function r(){return function(e){if(Reflect.hasOwnMetadata(i.PARAM_TYPES,e))throw new Error(n.DUPLICATED_INJECTABLE_DECORATOR);var t=Reflect.getMetadata(i.DESIGN_PARAM_TYPES,e)||[];return Reflect.defineMetadata(i.PARAM_TYPES,t,e),e}}t.injectable=r},"71d9":function(e,t,o){},"72dd":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("42f7"),a=o("61bf"),s=o("320b"),c=o("842c"),p=new n.ContainerModule(function(e,t,o){c.configureCommand({bind:e,isBound:o},r.SetBoundsCommand),c.configureCommand({bind:e,isBound:o},r.RequestBoundsCommand),e(a.HiddenBoundsUpdater).toSelf().inSingletonScope(),e(i.TYPES.HiddenVNodePostprocessor).toService(a.HiddenBoundsUpdater),e(i.TYPES.Layouter).to(s.Layouter).inSingletonScope(),e(i.TYPES.LayoutRegistry).to(s.LayoutRegistry).inSingletonScope()});t.default=p},7364:function(e,t,o){},7521:function(e,t,o){"use strict";var n=o("48f9"),i=o.n(n);i.a},"755f":function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("393a"),r=o("e45b"),a=o("e1c6"),s=function(){function e(){}return e.prototype.render=function(e,t){var o=16/1792,n="scale("+o+", "+o+")",a=this.getMaxSeverity(e),s=i.svg("g",{"class-sprotty-issue":!0},i.svg("g",{transform:n},i.svg("path",{d:this.getPath(a)})));return r.setClass(s,"sprotty-"+a,!0),s},e.prototype.getMaxSeverity=function(e){for(var t="info",o=0,n=e.issues.map(function(e){return e.severity});o1?o("div",{staticClass:"kal-locales row reverse"},[o("q-select",{staticClass:"kal-lang-selector",attrs:{options:t.localeOptions,color:"app-main-color","hide-underline":""},model:{value:t.selectedLocale,callback:function(o){e.$set(t,"selectedLocale",o)},expression:"app.selectedLocale"}})],1):e._e()])})],2)])],1)],1)],1)])},R=[];W._withStripped=!0;o("a481"),o("7514"),o("20d6"),o("ac6a"),o("cadf"),o("456d"),o("7f7f");var w=o("be3b"),L=o("d247"),C={ab:{name:"Abkhaz",nativeName:"аҧсуа"},aa:{name:"Afar",nativeName:"Afaraf"},af:{name:"Afrikaans",nativeName:"Afrikaans"},ak:{name:"Akan",nativeName:"Akan"},sq:{name:"Albanian",nativeName:"Shqip"},am:{name:"Amharic",nativeName:"አማርኛ"},ar:{name:"Arabic",nativeName:"العربية"},an:{name:"Aragonese",nativeName:"Aragonés"},hy:{name:"Armenian",nativeName:"Հայերեն"},as:{name:"Assamese",nativeName:"অসমীয়া"},av:{name:"Avaric",nativeName:"авар мацӀ"},ae:{name:"Avestan",nativeName:"avesta"},ay:{name:"Aymara",nativeName:"aymar aru"},az:{name:"Azerbaijani",nativeName:"azərbaycan dili"},bm:{name:"Bambara",nativeName:"bamanankan"},ba:{name:"Bashkir",nativeName:"башҡорт теле"},eu:{name:"Basque",nativeName:"euskara"},be:{name:"Belarusian",nativeName:"Беларуская"},bn:{name:"Bengali",nativeName:"বাংলা"},bh:{name:"Bihari",nativeName:"भोजपुरी"},bi:{name:"Bislama",nativeName:"Bislama"},bs:{name:"Bosnian",nativeName:"bosanski jezik"},br:{name:"Breton",nativeName:"brezhoneg"},bg:{name:"Bulgarian",nativeName:"български език"},my:{name:"Burmese",nativeName:"ဗမာစာ"},ca:{name:"Catalan; Valencian",nativeName:"Català"},ch:{name:"Chamorro",nativeName:"Chamoru"},ce:{name:"Chechen",nativeName:"нохчийн мотт"},ny:{name:"Chichewa; Chewa; Nyanja",nativeName:"chiCheŵa"},zh:{name:"Chinese",nativeName:"中文 (Zhōngwén)"},cv:{name:"Chuvash",nativeName:"чӑваш чӗлхи"},kw:{name:"Cornish",nativeName:"Kernewek"},co:{name:"Corsican",nativeName:"corsu"},cr:{name:"Cree",nativeName:"ᓀᐦᐃᔭᐍᐏᐣ"},hr:{name:"Croatian",nativeName:"hrvatski"},cs:{name:"Czech",nativeName:"česky"},da:{name:"Danish",nativeName:"dansk"},dv:{name:"Divehi; Dhivehi; Maldivian;",nativeName:"ދިވެހި"},nl:{name:"Dutch",nativeName:"Nederlands"},en:{name:"English",nativeName:"English",flag:"gb"},eo:{name:"Esperanto",nativeName:"Esperanto"},et:{name:"Estonian",nativeName:"eesti"},ee:{name:"Ewe",nativeName:"Eʋegbe"},fo:{name:"Faroese",nativeName:"føroyskt"},fj:{name:"Fijian",nativeName:"vosa Vakaviti"},fi:{name:"Finnish",nativeName:"suomi"},fr:{name:"French",nativeName:"français"},ff:{name:"Fula; Fulah; Pulaar; Pular",nativeName:"Fulfulde"},gl:{name:"Galician",nativeName:"Galego"},ka:{name:"Georgian",nativeName:"ქართული"},de:{name:"German",nativeName:"Deutsch"},el:{name:"Greek",nativeName:"Ελληνικά"},gn:{name:"Guaraní",nativeName:"Avañeẽ"},gu:{name:"Gujarati",nativeName:"ગુજરાતી"},ht:{name:"Haitian; Haitian Creole",nativeName:"Kreyòl ayisyen"},ha:{name:"Hausa",nativeName:"Hausa"},he:{name:"Hebrew (modern)",nativeName:"עברית"},hz:{name:"Herero",nativeName:"Otjiherero"},hi:{name:"Hindi",nativeName:"हिन्दी"},ho:{name:"Hiri Motu",nativeName:"Hiri Motu"},hu:{name:"Hungarian",nativeName:"Magyar"},ia:{name:"Interlingua",nativeName:"Interlingua"},id:{name:"Indonesian",nativeName:"Bahasa Indonesia"},ie:{name:"Interlingue",nativeName:"Originally called Occidental; then Interlingue after WWII"},ga:{name:"Irish",nativeName:"Gaeilge"},ig:{name:"Igbo",nativeName:"Asụsụ Igbo"},ik:{name:"Inupiaq",nativeName:"Iñupiaq"},io:{name:"Ido",nativeName:"Ido"},is:{name:"Icelandic",nativeName:"Íslenska"},it:{name:"Italian",nativeName:"Italiano"},iu:{name:"Inuktitut",nativeName:"ᐃᓄᒃᑎᑐᑦ"},ja:{name:"Japanese",nativeName:"日本語 (にほんご/にっぽんご)"},jv:{name:"Javanese",nativeName:"basa Jawa"},kl:{name:"Kalaallisut",nativeName:"kalaallisut"},kn:{name:"Kannada",nativeName:"ಕನ್ನಡ"},kr:{name:"Kanuri",nativeName:"Kanuri"},ks:{name:"Kashmiri",nativeName:"कश्मीरी"},kk:{name:"Kazakh",nativeName:"Қазақ тілі"},km:{name:"Khmer",nativeName:"ភាសាខ្មែរ"},ki:{name:"Kikuyu",nativeName:"Gĩkũyũ"},rw:{name:"Kinyarwanda",nativeName:"Ikinyarwanda"},ky:{name:"Kirghiz",nativeName:"кыргыз тили"},kv:{name:"Komi",nativeName:"коми кыв"},kg:{name:"Kongo",nativeName:"KiKongo"},ko:{name:"Korean",nativeName:"한국어 (韓國語)"},ku:{name:"Kurdish",nativeName:"Kurdî"},kj:{name:"Kwanyama",nativeName:"Kuanyama"},la:{name:"Latin",nativeName:"latine"},lb:{name:"Luxembourgish",nativeName:"Lëtzebuergesch"},lg:{name:"Luganda",nativeName:"Luganda"},li:{name:"Limburgish",nativeName:"Limburgs"},ln:{name:"Lingala",nativeName:"Lingála"},lo:{name:"Lao",nativeName:"ພາສາລາວ"},lt:{name:"Lithuanian",nativeName:"lietuvių kalba"},lu:{name:"Luba-Katanga",nativeName:""},lv:{name:"Latvian",nativeName:"latviešu valoda"},gv:{name:"Manx",nativeName:"Gaelg"},mk:{name:"Macedonian",nativeName:"македонски јазик"},mg:{name:"Malagasy",nativeName:"Malagasy fiteny"},ms:{name:"Malay",nativeName:"bahasa Melayu"},ml:{name:"Malayalam",nativeName:"മലയാളം"},mt:{name:"Maltese",nativeName:"Malti"},mi:{name:"Māori",nativeName:"te reo Māori"},mr:{name:"Marathi (Marāṭhī)",nativeName:"मराठी"},mh:{name:"Marshallese",nativeName:"Kajin M̧ajeļ"},mn:{name:"Mongolian",nativeName:"монгол"},na:{name:"Nauru",nativeName:"Ekakairũ Naoero"},nv:{name:"Navajo",nativeName:"Diné bizaad"},nb:{name:"Norwegian Bokmål",nativeName:"Norsk bokmål"},nd:{name:"North Ndebele",nativeName:"isiNdebele"},ne:{name:"Nepali",nativeName:"नेपाली"},ng:{name:"Ndonga",nativeName:"Owambo"},nn:{name:"Norwegian Nynorsk",nativeName:"Norsk nynorsk"},no:{name:"Norwegian",nativeName:"Norsk"},ii:{name:"Nuosu",nativeName:"ꆈꌠ꒿ Nuosuhxop"},nr:{name:"South Ndebele",nativeName:"isiNdebele"},oc:{name:"Occitan",nativeName:"Occitan"},oj:{name:"Ojibwe",nativeName:"ᐊᓂᔑᓈᐯᒧᐎᓐ"},cu:{name:"Old Church Slavonic",nativeName:"ѩзыкъ словѣньскъ"},om:{name:"Oromo",nativeName:"Afaan Oromoo"},or:{name:"Oriya",nativeName:"ଓଡ଼ିଆ"},os:{name:"Ossetian",nativeName:"ирон æвзаг"},pa:{name:"Panjabi",nativeName:"ਪੰਜਾਬੀ"},pi:{name:"Pāli",nativeName:"पाऴि"},fa:{name:"Persian",nativeName:"فارسی"},pl:{name:"Polish",nativeName:"polski"},ps:{name:"Pashto",nativeName:"پښتو"},pt:{name:"Portuguese",nativeName:"Português"},qu:{name:"Quechua",nativeName:"Runa Simi"},rm:{name:"Romansh",nativeName:"rumantsch grischun"},rn:{name:"Kirundi",nativeName:"kiRundi"},ro:{name:"Romanian",nativeName:"română"},ru:{name:"Russian",nativeName:"русский"},sa:{name:"Sanskrit (Saṁskṛta)",nativeName:"संस्कृतम्"},sc:{name:"Sardinian",nativeName:"sardu"},sd:{name:"Sindhi",nativeName:"सिन्धी"},se:{name:"Northern Sami",nativeName:"Davvisámegiella"},sm:{name:"Samoan",nativeName:"gagana faa Samoa"},sg:{name:"Sango",nativeName:"yângâ tî sängö"},sr:{name:"Serbian",nativeName:"српски језик"},gd:{name:"Scottish Gaelic; Gaelic",nativeName:"Gàidhlig"},sn:{name:"Shona",nativeName:"chiShona"},si:{name:"Sinhala",nativeName:"සිංහල"},sk:{name:"Slovak",nativeName:"slovenčina"},sl:{name:"Slovene",nativeName:"slovenščina"},so:{name:"Somali",nativeName:"Soomaaliga"},st:{name:"Southern Sotho",nativeName:"Sesotho"},es:{name:"Spanish; Castilian",nativeName:"español"},su:{name:"Sundanese",nativeName:"Basa Sunda"},sw:{name:"Swahili",nativeName:"Kiswahili"},ss:{name:"Swati",nativeName:"SiSwati"},sv:{name:"Swedish",nativeName:"svenska"},ta:{name:"Tamil",nativeName:"தமிழ்"},te:{name:"Telugu",nativeName:"తెలుగు"},tg:{name:"Tajik",nativeName:"тоҷикӣ"},th:{name:"Thai",nativeName:"ไทย"},ti:{name:"Tigrinya",nativeName:"ትግርኛ"},bo:{name:"Tibetan Standard",nativeName:"བོད་ཡིག"},tk:{name:"Turkmen",nativeName:"Türkmen"},tl:{name:"Tagalog",nativeName:"Wikang Tagalog"},tn:{name:"Tswana",nativeName:"Setswana"},to:{name:"Tonga (Tonga Islands)",nativeName:"faka Tonga"},tr:{name:"Turkish",nativeName:"Türkçe"},ts:{name:"Tsonga",nativeName:"Xitsonga"},tt:{name:"Tatar",nativeName:"татарча"},tw:{name:"Twi",nativeName:"Twi"},ty:{name:"Tahitian",nativeName:"Reo Tahiti"},ug:{name:"Uighur",nativeName:"Uyƣurqə"},uk:{name:"Ukrainian",nativeName:"українська"},ur:{name:"Urdu",nativeName:"اردو"},uz:{name:"Uzbek",nativeName:"zbek"},ve:{name:"Venda",nativeName:"Tshivenḓa"},vi:{name:"Vietnamese",nativeName:"Tiếng Việt"},vo:{name:"Volapük",nativeName:"Volapük"},wa:{name:"Walloon",nativeName:"Walon"},cy:{name:"Welsh",nativeName:"Cymraeg"},wo:{name:"Wolof",nativeName:"Wollof"},fy:{name:"Western Frisian",nativeName:"Frysk"},xh:{name:"Xhosa",nativeName:"isiXhosa"},yi:{name:"Yiddish",nativeName:"ייִדיש"},yo:{name:"Yoruba",nativeName:"Yorùbá"},za:{name:"Zhuang",nativeName:"Saɯ cueŋƅ"}},S=o("2b0e"),E={name:"KlabSettings",data:function(){return{models:{userDetails:!1,appsList:!1},popupsOver:{userDetails:!1,appsList:!1},fabVisible:!1,closeTimeout:null,modalTimeout:null,appsList:[],localeOptions:[],test:"es",TERMINAL_TYPES:c["L"],ISO_LOCALE:C}},computed:a()({},Object(s["c"])("data",["sessionReference","isLocal"]),Object(s["c"])("view",["isApp","klabApp","hasShowSettings","layout","dataflowInfoOpen","mainViewerName"]),{hasDataflowInfo:function(){return this.dataflowInfoOpen&&this.mainViewerName===c["N"].DATAFLOW_VIEWER.name},modalsAreFocused:function(){var e=this;return Object.keys(this.popupsOver).some(function(t){return e.popupsOver[t]})||this.selectOpen},owner:function(){return this.sessionReference&&this.sessionReference.owner?this.sessionReference.owner:{unknown:this.$t("label.unknownUser")}},isDeveloper:function(){return this.owner&&this.owner.groups&&-1!==this.owner.groups.findIndex(function(e){return"DEVELOPERS"===e.id})}}),methods:a()({},Object(s["b"])("data",["loadSessionReference","addTerminal"]),Object(s["b"])("view",["setLayout","setShowSettings"]),{getLocalizedString:function(e,t){if(e.selectedLocale){var o=e.localizations.find(function(t){return t.isoCode===e.selectedLocale});if(o)return"label"===t?o.localizedLabel:o.localizedDescription;if("description"===t)return this.$t("label.noLayoutDescription");if(e.name)return e.name;this.$t("label.noLayoutLabel")}return""},loadApplications:function(){var e=this;if(this.appsList.splice(0),this.sessionReference&&this.sessionReference.publicApps){var t=this.sessionReference.publicApps.filter(function(e){return"WEB"===e.platform||"ANY"===e.platform});t.forEach(function(t){t.logo?(t.logoSrc="".concat("").concat(L["c"].REST_GET_PROJECT_RESOURCE,"/").concat(t.projectId,"/").concat(t.logo.replace("/",":")),e.appsList.push(t)):(t.logoSrc=c["b"].DEFAULT_LOGO,e.appsList.push(t)),e.$set(t,"selectedLocale",t.localizations[0].isoCode),t.localeOptions=t.localizations.map(function(e){return{label:e.languageDescription,value:e.isoCode,icon:"mdi-earth",className:"kal-locale-options"}})})}},runApp:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.selectedLocale,n="".concat(e.name,".").concat(o);this.layout&&this.layout.name===n||(e.selectedLocale=o,this.sendStompMessage(p["a"].RUN_APPLICATION({applicationId:n},this.$store.state.data.session).body),this.$nextTick(function(){t.models.appsList=!1,t.fabVisible=!1}))},exitApp:function(){this.layout&&this.setLayout(null)},logout:function(){var e=this,t="".concat("").concat("/modeler").concat(this.isApp?"?app=".concat(this.klabApp):"");null!==this.token?w["a"].post("".concat("").concat(L["c"].REST_API_LOGOUT),{headers:{Authorization:"Bearer ".concat(localStorage.getItem(c["t"].TOKEN))}}).then(function(o){var n=o.status;if(205===n)if(e.$store.state.data.isLocal)window.location=t;else{var i={redirectUri:t};S["a"].$keycloak.logout(i)}else e.$q.notify({message:e.$t("messages.errorLoggingOut"),type:"negative",icon:"mdi-alert-circle",timeout:2e3}),console.error("Strange status: ".concat(n))}).catch(function(t){e.$q.notify({message:e.$t("messages.errorLoggingOut"),type:"negative",icon:"mdi-alert-circle",timeout:2e3}),t.response&&403===t.response.status&&console.error("Probably bad token"),console.error("Error logging out: ".concat(t))}):window.location=t},mouseActionEnter:function(e){var t=this;clearTimeout(this.modalTimeout),this.modalTimeout=null,this.$nextTick(function(){t.models[e]=!0,Object.keys(t.models).forEach(function(o){o!==e&&(t.models[o]=!1)})})},mouseFabClick:function(e){var t=this;this.fabVisible?(e.stopPropagation(),e.preventDefault(),setTimeout(function(){window.addEventListener("click",t.closeAll)},300)):(this.closeTimeout&&(clearTimeout(this.closeTimeout),this.closeTimeout=null),this.modalsAreFocused||this.closeAll(e,500))},closeAll:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.closeTimeout=setTimeout(function(){Object.keys(e.models).forEach(function(t){e.models[t]=!1}),e.$refs["klab-settings"].hide(),window.removeEventListener("click",e.closeAll)},t)},openTerminal:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.closeAll(),setTimeout(function(){e.addTerminal(a()({},t&&{type:t}))},200)}}),watch:{sessionReference:function(){this.loadApplications()}},created:function(){this.loadApplications()}},T=E,x=(o("e2d7"),Object(A["a"])(T,W,R,!1,null,null,null));x.options.__file="KlabSettings.vue";var N=x.exports,B=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{directives:[{name:"draggable",rawName:"v-draggable",value:e.draggableConfig,expression:"draggableConfig"}],staticClass:"kterm-container",class:{"kterm-minimized":!e.terminal.active,"kterm-focused":e.hasFocus},attrs:{id:"kterm-container-"+e.terminal.id}},[o("div",{staticClass:"kterm-header",style:{"background-color":e.background},attrs:{id:"kterm-handle-"+e.terminal.id},on:{mousedown:function(t){e.instance.focus()}}},[o("q-btn",{staticClass:"kterm-button kterm-delete-history",attrs:{icon:"mdi-delete-clock-outline",disable:0===e.terminalCommands.length,flat:"",color:"white",dense:""},on:{click:e.deleteHistory}},[o("q-tooltip",{staticClass:"kterm-tooltip",attrs:{anchor:"top middle",self:"bottom middle",offset:[0,8],delay:1e3}},[e._v(e._s(e.$t("label.terminalDeleteHistory")))])],1),o("q-btn",{staticClass:"kterm-button kterm-drag",attrs:{icon:"mdi-resize",flat:"",color:"white",dense:""},on:{click:function(t){e.selectSize=!0}}},[o("q-tooltip",{staticClass:"kterm-tooltip",attrs:{anchor:"top middle",self:"bottom middle",offset:[0,8],delay:1e3}},[e._v(e._s(e.$t("label.terminalResizeWindow")))])],1),e.terminal.active?o("q-btn",{staticClass:"kterm-button kterm-minimize",attrs:{icon:"mdi-window-minimize",flat:"",color:"white",dense:""},on:{click:e.minimize}},[o("q-tooltip",{staticClass:"kterm-tooltip",attrs:{anchor:"top middle",self:"bottom middle",offset:[0,8],delay:1e3}},[e._v(e._s(e.$t("label.terminalMinimize")))])],1):o("q-btn",{staticClass:"kterm-button kterm-minimize",attrs:{icon:"mdi-window-maximize",flat:"",color:"white",dense:""},on:{click:e.maximize}},[o("q-tooltip",{staticClass:"kterm-tooltip",attrs:{anchor:"top middle",self:"bottom middle",offset:[0,8],delay:1e3}},[e._v(e._s(e.$t("label.terminalMaxmize")))])],1),o("q-btn",{staticClass:"kterm-button kterm-close",attrs:{icon:"mdi-close-circle",flat:"",color:"white",dense:""},on:{click:e.closeTerminal}},[o("q-tooltip",{staticClass:"kterm-tooltip",attrs:{anchor:"top middle",self:"bottom middle",offset:[0,8],delay:1e3}},[e._v(e._s(e.$t("label.terminalClose")))])],1)],1),o("div",{directives:[{name:"show",rawName:"v-show",value:e.terminal.active,expression:"terminal.active"}],staticClass:"kterm-terminal",attrs:{id:"kterm-"+e.terminal.id}}),o("q-dialog",{attrs:{color:"mc-main"},on:{ok:e.onOk},scopedSlots:e._u([{key:"buttons",fn:function(t){return[o("q-btn",{attrs:{color:"mc-main",outline:"",label:e.$t("label.appCancel")},on:{click:t.cancel}}),o("q-btn",{attrs:{color:"mc-main",label:e.$t("label.appOK")},on:{click:function(o){e.sizeSelected(t.ok,!1)}}}),o("q-btn",{attrs:{color:"mc-main",outline:"",label:e.$t("label.appSetDefault")},on:{click:function(o){e.sizeSelected(t.ok,!0)}}})]}}]),model:{value:e.selectSize,callback:function(t){e.selectSize=t},expression:"selectSize"}},[o("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("label.titleSelectTerminalSize")))]),o("div",{attrs:{slot:"body"},slot:"body"},[o("q-option-group",{attrs:{type:"radio",color:"mc-main",options:e.TERMINAL_SIZE_OPTIONS.map(function(e){return{label:e.label,value:e.value}})},model:{value:e.selectedSize,callback:function(t){e.selectedSize=t},expression:"selectedSize"}})],1)])],1)},k=[];B._withStripped=!0;var P,D=o("448a"),I=o.n(D),X=(o("96cf"),o("c973")),j=o.n(X),F=o("fcf3");o("f751");function H(e){return e&&(e.$el||e)}function U(e,t,o,n,i){void 0===i&&(i={});var r={left:o,top:n},a=e.height,s=e.width,c=n,p=n+a,l=o,u=o+s,b=i.top||0,d=i.bottom||0,M=i.left||0,h=i.right||0,f=t.top+b,z=t.bottom-d,O=t.left+M,A=t.right-h;return cz&&(r.top=z-a),lA&&(r.left=A-s),r}(function(e){e[e["Start"]=1]="Start",e[e["End"]=2]="End",e[e["Move"]=3]="Move"})(P||(P={}));var V={bind:function(e,t,o,n){V.update(e,t,o,n)},update:function(e,t,o,n){if(!t.value||!t.value.stopDragging){var i=t.value&&t.value.handle&&H(t.value.handle)||e;t&&t.value&&t.value.resetInitialPos&&(d(),f()),i.getAttribute("draggable")||(e.removeEventListener("touchstart",e.listener),e.removeEventListener("mousedown",e.listener),i.addEventListener("mousedown",c),i.addEventListener("touchstart",c,{passive:!1}),i.setAttribute("draggable","true"),e.listener=c,d(),f())}function r(){if(t.value)return t.value.boundingRect||t.value.boundingElement&&t.value.boundingElement.getBoundingClientRect()}function a(){if(!M()){var t=z();t.currentDragPosition&&(e.style.position="fixed",e.style.left=t.currentDragPosition.left+"px",e.style.top=t.currentDragPosition.top+"px")}}function s(e){return e.clientX=e.touches[0].clientX,e.clientY=e.touches[0].clientY,e}function c(e){if(window.TouchEvent&&e instanceof TouchEvent){if(e.targetTouches.length1||(t.value.fingers=2),h({initialPosition:s,startDragPosition:s,currentDragPosition:s,initialPos:u(e)}),a()}function M(){return t&&t.value&&t.value.noMove}function h(e){var t=z(),o=Object.assign({},t,e);i.setAttribute("draggable-state",JSON.stringify(o))}function f(e,o){var n=z(),i={x:0,y:0};n.currentDragPosition&&n.startDragPosition&&(i.x=n.currentDragPosition.left-n.startDragPosition.left,i.y=n.currentDragPosition.top-n.startDragPosition.top);var r=n.currentDragPosition&&Object.assign({},n.currentDragPosition);o===P.End?t.value&&t.value.onDragEnd&&n&&t.value.onDragEnd(i,r,e):o===P.Start?t.value&&t.value.onDragStart&&n&&t.value.onDragStart(i,r,e):t.value&&t.value.onPositionChange&&n&&t.value.onPositionChange(i,r,e)}function z(){return JSON.parse(i.getAttribute("draggable-state"))||{}}}},G=o("741d"),K=o("abcf"),$=(o("abb2"),K["b"].height),Y={name:"KlabTerminal",props:{terminal:{type:Object,required:!0},size:{type:String,validator:function(e){return-1!==c["K"].findIndex(function(t){return t.value===e})}},bgcolor:{type:String,default:""}},directives:{Draggable:V},data:function(){var e=this;return{instance:void 0,zIndex:1e3,draggableConfig:{handle:void 0,onDragEnd:function(){e.instance.focus()}},draggableElement:void 0,commandCounter:0,command:[],hasFocus:!1,selectedSize:null,selectSize:!1,commandsIndex:-1,TERMINAL_SIZE_OPTIONS:c["K"]}},computed:a()({background:function(){return""!==this.bgcolor?this.bgcolor:this.terminal.type===c["L"].DEBUGGER?"#002f74":"#2e0047"}},Object(s["c"])("data",["terminalCommands"])),methods:a()({},Object(s["b"])("data",["removeTerminal","addTerminalCommand","clearTerminalCommands"]),{minimize:function(){this.terminal.active=!1,this.changeDraggablePosition({top:window.innerHeight-55,left:25})},maximize:function(){var e=this;this.changeDraggablePosition(this.draggableConfig.initialPosition),this.terminal.active=!0,this.$nextTick(function(){e.instance.focus()})},closeTerminal:function(){this.sendStompMessage(p["a"].CONSOLE_CLOSED({consoleId:this.terminal.id,consoleType:this.terminal.type},this.$store.state.data.session).body),this.instance=null,this.removeTerminal(this.terminal.id)},changeDraggablePosition:function(e){this.draggableElement.style.left="".concat(e.left,"px"),this.draggableElement.style.top="".concat(e.top,"px");var t=JSON.parse(this.draggableConfig.handle.getAttribute("draggable-state"));t.startDragPosition=e,t.currentDragPosition=e,this.draggableConfig.handle.setAttribute("draggable-state",JSON.stringify(t))},commandResponseListener:function(e){e&&e.payload&&e.consoleId===this.terminal.id&&(this.instance.write("\b \b\b \b".concat(e.payload.replaceAll("\n","\r\n"))),this.instance.prompt())},onFocusListener:function(e){this.hasFocus=this.terminal.id===e},sizeSelected:function(){var e=j()(regeneratorRuntime.mark(function e(t,o){var n,i=this;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t();case 2:n=c["K"].find(function(e){return e.value===i.selectedSize}),this.instance.resize(n.cols,n.rows),o&&G["a"].set(c["Q"].COOKIE_TERMINAL_SIZE,this.selectedSize,{expires:30,path:"/",secure:!0});case 5:case"end":return e.stop()}},e,this)}));return function(t,o){return e.apply(this,arguments)}}(),onOk:function(){},deleteHistory:function(){this.clearTerminalCommands()}}),created:function(){this.sendStompMessage(p["a"].CONSOLE_CREATED({consoleId:this.terminal.id,consoleType:this.terminal.type},this.$store.state.data.session).body)},mounted:function(){var e,t=this;e=this.size?this.size:G["a"].has(c["Q"].COOKIE_TERMINAL_SIZE)?G["a"].get(c["Q"].COOKIE_TERMINAL_SIZE):c["K"][0].value;var o=c["K"].find(function(t){return t.value===e});this.selectedSize=o.value,this.instance=new F["Terminal"]({cols:o.cols,rows:o.rows,cursorBlink:!0,bellStyle:"both",theme:{background:this.background}}),this.instance.prompt=function(){t.instance.write("\r\n$ ")},this.instance.open(document.getElementById("kterm-".concat(this.terminal.id))),this.instance.writeln("".concat(this.$t("messages.terminalHello",{type:this.terminal.type})," / ").concat(this.terminal.id)),this.instance.prompt(),this.instance.onData(function(e){var o=function(){for(var e,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=0;n0){var i=t.command.join("");t.sendStompMessage(p["a"].COMMAND_REQUEST({consoleId:t.terminal.id,consoleType:t.terminal.type,commandId:"".concat(t.terminal.id,"-").concat(++t.commandCounter),payload:i},t.$store.state.data.session).body),t.addTerminalCommand(i)}t.command.splice(0,t.command.length),t.commandsIndex=-1,t.instance.prompt();break;case"":n>2&&t.instance.write("\b \b"),t.command.length>0&&t.command.pop();break;case"":t.terminalCommands.length>0&&t.commandsIndex0&&t.commandsIndex>0?o(t.terminalCommands[--t.commandsIndex]):(o(),t.commandsIndex=-1);break;case"":break;case"":break;default:t.command.push(e),t.instance.write(e)}}),this.instance.textarea.addEventListener("focus",function(){t.$eventBus.$emit(c["h"].TERMINAL_FOCUSED,t.terminal.id)}),this.draggableConfig.handle=document.getElementById("kterm-handle-".concat(this.terminal.id)),this.draggableElement=document.getElementById("kterm-container-".concat(this.terminal.id)),this.draggableConfig.initialPosition={top:window.innerHeight-$(this.draggableElement)-25,left:25},this.instance.focus(),this.$eventBus.$on(c["h"].TERMINAL_FOCUSED,this.onFocusListener),this.$eventBus.$on(c["h"].COMMAND_RESPONSE,this.commandResponseListener)},beforeDestroy:function(){null!==this.instance&&this.closeTerminal(),this.$eventBus.$off(c["h"].TERMINAL_FOCUSED,this.onFocusListener),this.$eventBus.$off(c["h"].COMMAND_RESPONSE,this.commandResponseListener)}},J=Y,Q=(o("23a0"),Object(A["a"])(J,B,k,!1,null,null,null));Q.options.__file="KlabTerminal.vue";var Z=Q.exports,ee=function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.activeDialog?o("q-modal",{attrs:{"content-classes":"kaa-container"},model:{value:e.hasActiveDialogs,callback:function(t){e.hasActiveDialogs=t},expression:"hasActiveDialogs"}},[o("div",{staticClass:"kaa-content",domProps:{innerHTML:e._s(e.activeDialog.content)}}),o("div",{staticClass:"kaa-button"},[o("q-btn",{attrs:{color:"app-title-color",label:e.$t("label.appOK")},on:{click:function(t){e.dialogAction(e.activeDialog,!0)}}}),e.activeDialog.type===e.APPS_COMPONENTS.CONFIRM?o("q-btn",{attrs:{color:"app-title-color",label:e.$t("label.appCancel")},on:{click:function(t){e.dialogAction(e.activeDialog,!1)}}}):e._e()],1)]):e._e()},te=[];ee._withStripped=!0;var oe={name:"AppDialogViewer",data:function(){return{activeDialog:null,APPS_COMPONENTS:c["a"]}},computed:a()({},Object(s["c"])("view",["layout","activeDialogs"]),{hasActiveDialogs:{get:function(){return this.activeDialogs.length>0},set:function(){}}}),methods:{setActiveDialog:function(){var e=this;this.activeDialogs.length>0?this.activeDialog=this.activeDialogs[this.activeDialogs.length-1]:this.$nextTick(function(){e.activeDialog=null})},dialogAction:function(e,t){this.activeDialog.dismiss=!0,e.type===c["a"].CONFIRM&&this.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},e,{components:[]}),booleanValue:t})}},watch:{activeDialogs:function(){this.setActiveDialog()}},mounted:function(){this.setActiveDialog()}},ne=oe,ie=(o("715d"),Object(A["a"])(ne,ee,te,!1,null,null,null));ie.options.__file="AppDialogsViewer.vue";var re=ie.exports,ae=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("q-layout",{staticClass:"kapp-layout-container",class:{"kapp-main":e.isRootLayout},style:e.modalDimensions,attrs:{view:"hhh lpr fFf",id:"kapp-"+e.idSuffix}},[!e.isModal&&e.hasHeader?o("q-layout-header",{staticClass:"kapp-header-container kapp-container print-hide",class:{"kapp-main":e.isRootLayout},attrs:{id:"kapp-"+e.idSuffix+"-header"}},[e.layout.header?o("klab-app-viewer",{staticClass:"kapp-header",attrs:{component:e.layout.header,direction:"horizontal"}}):o("div",{staticClass:"kapp-header row"},[o("div",{staticClass:"kapp-logo-container"},[o("img",{ref:"kapp-logo",staticClass:"kapp-logo",attrs:{id:"kapp-"+e.idSuffix+"-logo",src:e.logoImage}})]),o("div",{staticClass:"kapp-title-container"},[e.layout.label?o("div",{staticClass:"kapp-title"},[e._v(e._s(e.layout.label)),e.layout.versionString?o("span",{staticClass:"kapp-version"},[e._v(e._s(e.layout.versionString))]):e._e()]):e._e(),e.layout.description?o("div",{staticClass:"kapp-subtitle"},[e._v(e._s(e.layout.description))]):e._e()]),e.layout.menu&&e.layout.menu.length>0?o("div",{staticClass:"kapp-header-menu-container"},e._l(e.layout.menu,function(t){return o("div",{key:t.id,staticClass:"kapp-header-menu-item klab-link",on:{click:function(o){e.clickOnMenu(t.id,t.url)}}},[e._v(e._s(t.text)),t.url?o("span",{staticClass:"klab-external-link"},[e._v("🡥")]):e._e()])})):e._e(),o("div",{staticClass:"kapp-actions-container row items-end justify-end"},[o("main-actions-buttons",{staticClass:"col items-end",attrs:{"is-header":!0}})],1)])],1):e._e(),e.showLeftPanel?o("q-layout-drawer",{staticClass:"kapp-left-container kapp-container print-hide",class:{"kapp-main":e.isRootLayout},attrs:{side:"left","content-class":"kapp-left-inner-container",width:e.leftPanelWidth},model:{value:e.showLeftPanel,callback:function(t){e.showLeftPanel=t},expression:"showLeftPanel"}},[e.leftPanel?[o("klab-app-viewer",{staticClass:"kapp-left-wrapper",attrs:{id:"kapp-"+e.idSuffix+"-left-0",component:e.layout.leftPanels[0],direction:"vertical"}})]:e._e()],2):e._e(),e.showRightPanel?o("q-layout-drawer",{staticClass:"kapp-right-container kapp-container print-hide",class:{"kapp-main":e.isRootLayout},attrs:{side:"right","content-class":"kapp-right-inner-container",width:e.rightPanelWidth},model:{value:e.showRightPanel,callback:function(t){e.showRightPanel=t},expression:"showRightPanel"}},[e.rightPanel?[o("klab-app-viewer",{staticClass:"kapp-right-wrapper",attrs:{id:"kapp-"+e.idSuffix+"-right-0",component:e.layout.rightPanels[0],direction:"vertical"}})]:e._e()],2):e._e(),o("q-page-container",[e.layout&&0!==e.layout.panels.length?[o("klab-app-viewer",{staticClass:"kapp-main-container kapp-container print-hide",attrs:{id:"kapp-"+e.idSuffix+"-main-0",mainPanelStyle:e.mainPanelStyle,component:e.layout.panels[0]}})]:o("k-explorer",{staticClass:"kapp-main-container is-kexplorer",attrs:{id:"kapp-"+e.idSuffix+"-main",mainPanelStyle:e.mainPanelStyle}})],2),o("q-resize-observable",{on:{resize:function(t){e.updateLayout()}}}),o("q-modal",{staticClass:"kapp-modal",attrs:{"no-esc-dismiss":"","no-backdrop-dismiss":"","content-classes":["absolute-center","kapp-loading"]},model:{value:e.blockApp,callback:function(t){e.blockApp=t},expression:"blockApp"}},[o("q-spinner",{attrs:{color:"app-main-color",size:"3em"}})],1)],1)},se=[];ae._withStripped=!0;o("6762"),o("2fdb"),o("4917"),o("5df3"),o("1c4c");var ce=o("50fb"),pe=o.n(ce),le=o("84a2"),ue=o.n(le),be=o("6dd8"),de=o("0312"),Me=o.n(de);function he(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fe(e,t){for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:"y";if(this.isEnabled[n]||this.options.forceVisible){"x"===n?(e=this.scrollbarX,t=this.contentSizeX,o=this.trackXSize):(e=this.scrollbarY,t=this.contentSizeY,o=this.trackYSize);var i=o/t;this.handleSize[n]=Math.max(~~(i*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(this.handleSize[n]=Math.min(this.handleSize[n],this.options.scrollbarMaxSize)),"x"===n?e.style.width="".concat(this.handleSize[n],"px"):e.style.height="".concat(this.handleSize[n],"px")}}},{key:"positionScrollbar",value:function(){var e,t,o,n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";"x"===i?(e=this.scrollbarX,t=this.contentEl[this.scrollOffsetAttr[i]],o=this.contentSizeX,n=this.trackXSize):(e=this.scrollbarY,t=this.scrollContentEl[this.scrollOffsetAttr[i]],o=this.contentSizeY,n=this.trackYSize);var r=t/(o-n),a=~~((n-this.handleSize[i])*r);(this.isEnabled[i]||this.options.forceVisible)&&(e.style.transform="x"===i?"translate3d(".concat(a,"px, 0, 0)"):"translate3d(0, ".concat(a,"px, 0)"))}},{key:"toggleTrackVisibility",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y",t="y"===e?this.trackY:this.trackX,o="y"===e?this.scrollbarY:this.scrollbarX;this.isEnabled[e]||this.options.forceVisible?t.style.visibility="visible":t.style.visibility="hidden",this.options.forceVisible&&(this.isEnabled[e]?o.style.visibility="visible":o.style.visibility="hidden")}},{key:"hideNativeScrollbar",value:function(){this.scrollbarWidth=pe()(),this.scrollContentEl.style[this.isRtl?"paddingLeft":"paddingRight"]="".concat(this.scrollbarWidth||this.offsetSize,"px"),this.scrollContentEl.style.marginBottom="-".concat(2*this.scrollbarWidth||this.offsetSize,"px"),this.contentEl.style.paddingBottom="".concat(this.scrollbarWidth||this.offsetSize,"px"),0!==this.scrollbarWidth&&(this.contentEl.style[this.isRtl?"marginLeft":"marginRight"]="-".concat(this.scrollbarWidth,"px"))}},{key:"showScrollbar",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";this.isVisible[t]||(e="x"===t?this.scrollbarX:this.scrollbarY,this.isEnabled[t]&&(e.classList.add("visible"),this.isVisible[t]=!0),this.options.autoHide&&(window.clearInterval(this.flashTimeout),this.flashTimeout=window.setInterval(this.hideScrollbars,this.options.timeout)))}},{key:"onDrag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y";e.preventDefault();var o="y"===t?this.scrollbarY:this.scrollbarX,n="y"===t?e.pageY:e.pageX;this.dragOffset[t]=n-o.getBoundingClientRect()[this.offsetAttr[t]],this.currentAxis=t,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.onEndDrag)}},{key:"getScrollElement",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";return"y"===e?this.scrollContentEl:this.contentEl}},{key:"getContentElement",value:function(){return this.contentEl}},{key:"removeListeners",value:function(){this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter),this.scrollContentEl.removeEventListener("scroll",this.onScrollY),this.contentEl.removeEventListener("scroll",this.onScrollX),this.mutationObserver.disconnect(),this.resizeObserver.disconnect()}},{key:"unMount",value:function(){this.removeListeners(),this.el.SimpleBar=null}},{key:"isChildNode",value:function(e){return null!==e&&(e===this.el||this.isChildNode(e.parentNode))}},{key:"isWithinBounds",value:function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height}}],[{key:"initHtmlApi",value:function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),"undefined"!==typeof MutationObserver&&(this.globalObserver=new MutationObserver(function(t){t.forEach(function(t){Array.from(t.addedNodes).forEach(function(t){1===t.nodeType&&(t.hasAttribute("data-simplebar")?!t.SimpleBar&&new e(t,e.getElOptions(t)):Array.from(t.querySelectorAll("[data-simplebar]")).forEach(function(t){!t.SimpleBar&&new e(t,e.getElOptions(t))}))}),Array.from(t.removedNodes).forEach(function(e){1===e.nodeType&&(e.hasAttribute("data-simplebar")?e.SimpleBar&&e.SimpleBar.unMount():Array.from(e.querySelectorAll("[data-simplebar]")).forEach(function(e){e.SimpleBar&&e.SimpleBar.unMount()}))})})}),this.globalObserver.observe(document,{childList:!0,subtree:!0})),"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements))}},{key:"getElOptions",value:function(e){var t=Array.from(e.attributes).reduce(function(e,t){var o=t.name.match(/data-simplebar-(.+)/);if(o){var n=o[1].replace(/\W+(.)/g,function(e,t){return t.toUpperCase()});switch(t.value){case"true":e[n]=!0;break;case"false":e[n]=!1;break;case void 0:e[n]=!0;break;default:e[n]=t.value}}return e},{});return t}},{key:"removeObserver",value:function(){this.globalObserver.disconnect()}},{key:"initDOMLoadedElements",value:function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.from(document.querySelectorAll("[data-simplebar]")).forEach(function(t){t.SimpleBar||new e(t,e.getElOptions(t))})}},{key:"defaultOptions",get:function(){return{autoHide:!0,forceVisible:!1,classNames:{content:"simplebar-content",scrollContent:"simplebar-scroll-content",scrollbar:"simplebar-scrollbar",track:"simplebar-track"},scrollbarMinSize:25,scrollbarMaxSize:0,direction:"ltr",timeout:1e3}}}]),e}();Me.a&&Oe.initHtmlApi();var Ae=Oe,me=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("q-layout",{staticClass:"kexplorer-main-container print-hide",style:{width:e.mainPanelStyle.width+"px",height:e.mainPanelStyle.height+"px"},attrs:{view:"hHh lpr fFf",container:""}},[o("q-layout-drawer",{attrs:{side:"left",overlay:!1,breakpoint:0,width:e.leftMenuState===e.LEFTMENU_CONSTANTS.LEFTMENU_MAXIMIZED?e.LEFTMENU_CONSTANTS.LEFTMENU_MAXSIZE:e.LEFTMENU_CONSTANTS.LEFTMENU_MINSIZE,"content-class":["klab-left","no-scroll",e.largeMode?"klab-large-mode":""]},model:{value:e.leftMenuVisible,callback:function(t){e.leftMenuVisible=t},expression:"leftMenuVisible"}},[o("klab-left-menu")],1),o("q-page-container",[o("q-page",{staticClass:"column"},[o("div",{staticClass:"col row full-height kexplorer-container",class:{"kd-is-app":null!==e.layout}},[o("keep-alive",[o(e.mainViewer.name,{tag:"component",attrs:{"container-style":{width:e.mainPanelStyle.width-e.leftMenuWidth,height:e.mainPanelStyle.height}}})],1),o("q-resize-observable",{on:{resize:e.setChildrenToAskFor}})],1),o("div",{staticClass:"col-1 row"},[e.logVisible?o("klab-log"):e._e()],1),o("transition",{attrs:{name:"component-fade",mode:"out-in"}},[e.mainViewer.mainControl?o("klab-main-control",{directives:[{name:"show",rawName:"v-show",value:e.isTreeVisible,expression:"isTreeVisible"}]}):e._e()],1),o("transition",{attrs:{appear:"","enter-active-class":"animated zoomIn","leave-active-class":"animated zoomOut"}},[e.askForUndocking&&!e.mainViewer.mainControl?o("div",{staticClass:"kexplorer-undocking full-height full-width"}):e._e()]),e.isMainControlDocked?e._e():o("observation-time"),o("input-request-modal"),o("scale-change-dialog")],1)],1)],1)},ve=[];me._withStripped=!0;var ge=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{directives:[{name:"show",rawName:"v-show",value:!e.isDrawMode,expression:"!isDrawMode"}],ref:"main-control-container",staticClass:"mc-container print-hide small"},[o("transition",{attrs:{appear:"","enter-active-class":"animated fadeInLeft","leave-active-class":"animated fadeOutLeft"}},[o("div",{directives:[{name:"show",rawName:"v-show",value:e.isHidden,expression:"isHidden"}],staticClass:"spinner-lonely-div klab-spinner-div",style:{left:e.defaultLeft+"px",top:e.defaultTop+"px","border-color":e.hasTasks()?e.spinnerColor.color:"rgba(0,0,0,0)"}},[o("klab-spinner",{staticClass:"spinner-lonely",attrs:{"store-controlled":!0,size:40,ball:22,wrapperId:"spinner-lonely-div"},nativeOn:{dblclick:function(t){return e.show(t)},touchstart:function(t){e.handleTouch(t,null,e.show)}}})],1)]),o("transition",{attrs:{appear:"","enter-active-class":"animated fadeInLeft","leave-active-class":"animated fadeOutLeft"}},[o("q-card",{directives:[{name:"draggable",rawName:"v-draggable",value:e.dragMCConfig,expression:"dragMCConfig"},{name:"show",rawName:"v-show",value:!e.isHidden,expression:"!isHidden"}],staticClass:"mc-q-card no-box-shadow absolute lot-of-flow",class:[e.hasContext?"with-context":"bg-transparent without-context","mc-large-mode-"+e.largeMode],style:e.qCardStyle,attrs:{draggable:"false",flat:!0},nativeOn:{contextmenu:function(e){e.preventDefault()}}},[o("q-card-title",{ref:"mc-draggable",staticClass:"mc-q-card-title q-pa-xs",class:[e.fuzzyMode?"klab-fuzzy":"",e.searchIsFocused?"klab-search-focused":""],style:{"background-color":e.getBGColor(e.hasContext?"1.0":e.searchIsFocused?".8":".2")},attrs:{ondragstart:"return false;"},nativeOn:{mousedown:function(t){e.moved=!1},mousemove:function(t){e.moved=!0},mouseup:function(t){return e.focusSearch(t)}}},[o("klab-search-bar",{ref:"klab-search-bar"}),o("klab-breadcrumbs",{attrs:{slot:"subtitle"},slot:"subtitle"})],1),o("q-card-actions",{directives:[{name:"show",rawName:"v-show",value:e.hasContext&&!e.isHidden&&!e.hasHeader&&null===e.layout,expression:"hasContext && !isHidden && !hasHeader && layout === null"}],staticClass:"context-actions no-margin"},[o("div",{staticClass:"mc-tabs"},[o("div",{staticClass:"klab-button mc-tab",class:["tab-button",{active:"klab-log-pane"===e.selectedTab}],on:{click:function(t){e.selectedTab="klab-log-pane"}}},[o("q-icon",{attrs:{name:"mdi-console"}},[o("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("tooltips.showLogPane")))])],1)],1),o("div",{staticClass:"klab-button mc-tab",class:["tab-button",{active:"klab-tree-pane"===e.selectedTab}],on:{click:function(t){e.selectedTab="klab-tree-pane"}}},[o("q-icon",{attrs:{name:"mdi-folder-image"}},[o("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("tooltips.treePane")))])],1)],1)]),o("main-actions-buttons",{attrs:{orientation:"horizontal","separator-class":"mc-separator"}}),o("scale-buttons",{attrs:{docked:!1}}),o("div",{staticClass:"mc-separator",staticStyle:{right:"35px"}}),o("stop-actions-buttons")],1),o("q-card-main",{directives:[{name:"show",rawName:"v-show",value:e.hasContext&&!e.isHidden,expression:"hasContext && !isHidden"}],staticClass:"no-margin relative-position",attrs:{draggable:"false"}},[o("keep-alive",[o("transition",{attrs:{name:"component-fade",mode:"out-in"}},[o(e.selectedTab,{tag:"component"})],1)],1)],1),o("q-card-actions",{directives:[{name:"show",rawName:"v-show",value:e.hasContext&&!e.isHidden,expression:"hasContext && !isHidden"}],staticClass:"kmc-bottom-actions"},[o("div",{staticClass:"klab-button klab-action"},[o("q-icon",{attrs:{name:"mdi-terrain"}}),o("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("tooltips.scenarios")))])],1),o("div",{staticClass:"klab-button klab-action"},[o("q-icon",{attrs:{name:"mdi-human-male-female"}}),o("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("tooltips.observers")))])],1),e.contextHasTime?o("observations-timeline",{staticClass:"mc-timeline"}):e._e()],1)],1)],1),o("transition",{attrs:{appear:"","enter-active-class":"animated zoomIn","leave-active-class":"animated zoomOut"}},[e.askForDocking?o("div",{staticClass:"mc-docking full-height",style:{width:e.leftMenuMaximized}}):e._e()])],1)},ye=[];ge._withStripped=!0;var qe=o("1fe0"),_e=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"klab-actions",class:e.orientation},[o("div",{staticClass:"klab-main-actions"},["horizontal"!==e.orientation||e.isHeader?o("div",{staticClass:"klab-button klab-action",class:[{active:e.mainViewerName===e.VIEWERS.DATA_VIEWER.name}],on:{click:function(t){e.mainViewerName!==e.VIEWERS.DATA_VIEWER.name&&e.click(e.isMainControlDocked?e.VIEWERS.DOCKED_DATA_VIEWER:e.VIEWERS.DATA_VIEWER)}}},[o("q-icon",{attrs:{name:"mdi-folder-image"}},[o("q-tooltip",{attrs:{delay:600,offset:[0,8],self:e.tooltipAnchor("top"),anchor:e.tooltipAnchor("bottom")}},[e._v(e._s(e.$t("tooltips.dataViewer")))])],1)],1):e._e(),o("div",{staticClass:"klab-button klab-action",class:[{active:e.mainViewerName===e.VIEWERS.DOCUMENTATION_VIEWER.name,disabled:e.mainViewerName!==e.VIEWERS.DOCUMENTATION_VIEWER.name&&(!e.hasContext||!e.hasObservations)}],on:{click:function(t){e.mainViewerName!==e.VIEWERS.DOCUMENTATION_VIEWER.name&&e.hasContext&&e.hasObservations&&e.click(e.VIEWERS.DOCUMENTATION_VIEWER)}}},[o("q-icon",{attrs:{name:"mdi-text-box-multiple-outline"}},[e.reloadViews.length>0?o("span",{staticClass:"klab-button-notification"}):e._e(),o("q-tooltip",{attrs:{delay:600,offset:[0,8],self:e.tooltipAnchor("top"),anchor:e.tooltipAnchor("bottom")}},[e._v(e._s(e.hasObservations?e.$t("tooltips.documentationViewer"):e.$t("tooltips.noDocumentation")))])],1)],1),o("div",{staticClass:"klab-button klab-action",class:[{active:e.mainViewerName===e.VIEWERS.DATAFLOW_VIEWER.name,disabled:e.mainViewerName!==e.VIEWERS.DATAFLOW_VIEWER.name&&!e.hasContext}],on:{click:function(t){e.mainViewerName!==e.VIEWERS.DATAFLOW_VIEWER.name&&e.hasContext&&e.click(e.VIEWERS.DATAFLOW_VIEWER)}}},[o("q-icon",{attrs:{name:"mdi-sitemap"}},[e.mainViewerName!==e.VIEWERS.DATAFLOW_VIEWER.name&&e.hasContext&&e.flowchartsUpdatable?o("span",{staticClass:"klab-button-notification"}):e._e(),o("q-tooltip",{attrs:{delay:600,offset:[0,8],self:e.tooltipAnchor("top"),anchor:e.tooltipAnchor("bottom")}},[e._v(e._s(e.flowchartsUpdatable?e.$t("tooltips.dataflowViewer"):e.$t("tooltips.noDataflow")))])],1)],1)])])},We=[];_e._withStripped=!0;var Re={name:"MainActionsButtons",props:{orientation:{type:String,default:"horizontal"},separatorClass:{type:String,default:""},isHeader:{type:Boolean,default:!1}},data:function(){return{}},computed:a()({},Object(s["c"])("data",["hasObservations","flowchartsUpdatable","hasContext"]),Object(s["c"])("view",["spinnerColor","mainViewerName","statusTextsString","statusTextsLength","isMainControlDocked","reloadViews"])),methods:a()({},Object(s["b"])("view",["setMainViewer"]),{tooltipAnchor:function(e){return"".concat(e," ").concat("horizontal"===this.orientation?"middle":"left")},click:function(e){var t=this;this.setMainViewer(e),this.$nextTick(function(){t.$eventBus.$emit(c["h"].MAP_SIZE_CHANGED,{type:"changelayout"})})}}),created:function(){this.VIEWERS=c["N"]}},we=Re,Le=(o("6208"),Object(A["a"])(we,_e,We,!1,null,null,null));Le.options.__file="MainActionsButtons.vue";var Ce=Le.exports,Se=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"klab-destructive-actions"},[e.hasContext&&!e.hasTasks(e.contextId)?o("div",{staticClass:"klab-button klab-reset-context",on:{click:e.resetContext}},[o("q-icon",{attrs:{name:"mdi-close-circle-outline"}},[o("q-tooltip",{attrs:{delay:600,offset:[0,8],self:e.tooltipAnchor("top"),anchor:e.tooltipAnchor("bottom")}},[e._v(e._s(e.$t("tooltips.resetContext")))])],1)],1):e._e(),e.hasContext&&e.hasTasks(e.contextId)?o("div",{staticClass:"klab-button klab-interrupt-task",on:{click:e.interruptTask}},[o("q-icon",{attrs:{name:"mdi-stop-circle-outline"}},[o("q-tooltip",{attrs:{delay:600,offset:[0,8],self:e.tooltipAnchor("top"),anchor:e.tooltipAnchor("bottom")}},[e._v(e._s(e.$t("tooltips.interruptTask",{taskDescription:e.lastActiveTaskText})))])],1)],1):e._e()])},Ee=[];Se._withStripped=!0;var Te={computed:a()({},Object(s["c"])("data",["hasContext","contextId","session"])),methods:a()({},Object(s["b"])("data",["loadContext","setWaitinForReset"]),Object(s["b"])("view",["setSpinner"]),{loadOrReloadContext:function(e,t){null!==e&&this.setSpinner(a()({},c["I"].SPINNER_LOADING,{owner:e})),this.hasContext?(this.sendStompMessage(p["a"].RESET_CONTEXT(this.$store.state.data.session).body),null!==e?this.setWaitinForReset(e):"function"===typeof t&&this.callbackIfNothing()):this.loadContext(e)}})},xe={name:"StopActionsButtons",mixins:[Te],data:function(){return{}},computed:a()({},Object(s["c"])("data",["hasContext","contextId","previousContext"]),Object(s["c"])("stomp",["hasTasks","lastActiveTask"]),{lastActiveTaskText:function(){var e=null===this.lastActiveTask(this.contextId)?"":this.lastActiveTask(this.contextId).description;return e.includes(c["p"].UNKNOWN_SEARCH_OBSERVATION)?e.replace(c["p"].UNKNOWN_SEARCH_OBSERVATION,this.$t("messages.unknownSearchObservation")):e}}),methods:{tooltipAnchor:function(e){return"".concat(e," ").concat("horizontal"===this.orientation?"middle":"left")},resetContext:function(){this.sendStompMessage(p["a"].RESET_CONTEXT(this.$store.state.data.session).body)},interruptTask:function(){var e=this.lastActiveTask(this.contextId);null!==e&&e.alive&&this.sendStompMessage(p["a"].TASK_INTERRUPTED({taskId:e.id},this.$store.state.data.session).body)}}},Ne=xe,Be=(o("c31b"),Object(A["a"])(Ne,Se,Ee,!1,null,null,null));Be.options.__file="StopActionsButtons.vue";var ke=Be.exports,Pe=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{class:[e.hasContext?"with-context":"without-context",e.isDocked?"ksb-docked":""],style:{width:e.isDocked&&e.searchIsFocused&&e.largeMode?e.getLargeModeWidth():"100%"},attrs:{id:"ksb-container"}},[e.isDocked?e._e():o("div",{staticClass:"klab-spinner-div",attrs:{id:"ksb-spinner"}},[o("klab-spinner",{style:{"box-shadow":e.searchIsFocused?"0px 0px 3px "+e.getBGColor(".4"):"none"},attrs:{"store-controlled":!0,color:e.spinnerColor.hex,size:40,ball:22,wrapperId:"ksb-spinner",id:"spinner-searchbar"},nativeOn:{dblclick:function(t){return e.emitSpinnerDoubleclick(t)},touchstart:function(t){t.stopPropagation(),e.handleTouch(t,e.showSuggestions,e.emitSpinnerDoubleclick)}}})],1),o("div",{class:[e.fuzzyMode?"klab-fuzzy":"",e.searchIsFocused?"klab-search-focused":""],style:{"background-color":e.isDocked?e.getBGColor(e.hasContext?"1.0":e.searchIsFocused?".8":e.isDocked?"1.0":".2"):"rgba(0,0,0,0)"},attrs:{id:"ksb-search-container"}},[e.searchIsActive?o("klab-search",{ref:"klab-search",staticClass:"klab-search",on:{"busy-search":e.busySearch}}):o("div",{staticClass:"ksb-context-text text-white"},[o("scrolling-text",{ref:"st-context-text",attrs:{"with-edge":!0,"hover-active":!0,"initial-text":null===e.mainContextLabel?e.$t("label.noContextPlaceholder"):e.mainContextLabel,"placeholder-style":!e.hasContext}})],1),o("div",{ref:"ksb-status-texts",staticClass:"ksb-status-texts"},[o("scrolling-text",{ref:"st-status-text",attrs:{"with-edge":!0,edgeOpacity:e.hasContext?1:e.searchIsFocused?.8:.2,hoverActive:!1,initialText:e.statusTextsString,accentuate:!0}})],1),e.isScaleLocked["space"]&&!e.hasContext?o("q-icon",{attrs:{name:"mdi-lock-outline"}},[o("q-tooltip",{attrs:{anchor:"bottom middle",self:"top middle",offset:[10,5],delay:500}},[e._v(e._s(e.$t("label.scaleLocked",{type:e.$t("label.spaceScale")})))])],1):e._e(),o("main-control-menu")],1)])},De=[];Pe._withStripped=!0;var Ie=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{ref:"ks-container",attrs:{id:"ks-container"}},[o("div",{staticStyle:{position:"relative"},attrs:{id:"ks-internal-container"}},[e._l(e.acceptedTokens,function(t,n){return o("div",{key:t.index,ref:"token-"+t.index,refInFor:!0,class:["ks-tokens-accepted","ks-tokens","bg-semantic-elements",t.selected?"selected":"","text-"+t.leftColor],style:{"border-color":t.selected?t.rgb:"transparent"},attrs:{tabindex:n},on:{focus:function(o){e.onTokenFocus(t,o)},blur:function(o){e.onTokenFocus(t,o)},keydown:e.onKeyPressedOnToken,touchstart:function(t){e.handleTouch(t,null,e.deleteLastToken)}}},[e._v(e._s(t.value)+"\n "),o("q-tooltip",{attrs:{delay:500,offset:[0,15],self:"top left",anchor:"bottom left"}},[t.sublabel.length>0?o("span",[e._v(e._s(t.sublabel))]):o("span",[e._v(e._s(e.$t("label.noTokenDescription")))])])],1)}),o("div",{staticClass:"ks-tokens",class:[e.fuzzyMode?"ks-tokens-fuzzy":"ks-tokens-klab"]},[o("q-input",{ref:"ks-search-input",class:[e.fuzzyMode?"ks-fuzzy":"",e.searchIsFocused?"ks-search-focused":""],attrs:{autofocus:!0,placeholder:e.fuzzyMode?e.$t("label.fuzzySearchPlaceholder"):e.$t("label.searchPlaceholder"),size:"20",id:"ks-search-input",tabindex:e.acceptedTokens.length,"hide-underline":!0},on:{focus:function(t){e.onInputFocus(!0)},blur:function(t){e.onInputFocus(!1)},keydown:e.onKeyPressedOnSearchInput,keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,"Escape"))return null;e.searchEnd({})}},nativeOn:{contextmenu:function(e){e.preventDefault()},touchstart:function(t){e.handleTouch(t,null,e.searchInKLab)}},model:{value:e.actualToken,callback:function(t){e.actualToken=t},expression:"actualToken"}},[o("klab-autocomplete",{ref:"ks-autocomplete",class:[e.notChrome()?"not-chrome":""],attrs:{debounce:400,"min-characters":e.minimumCharForAutocomplete,"max-results":50,id:"ks-autocomplete"},on:{search:e.autocompleteSearch,selected:e.selected,show:e.onAutocompleteShow,hide:e.onAutocompleteHide}})],1)],1)],2)])},Xe=[];Ie._withStripped=!0;o("386d");var je=o("278c"),Fe=o.n(je),He=o("b0b2"),Ue=o("b12a"),Ve=o("7ea0"),Ge=o("b5b8"),Ke=o("1180"),$e=o("68c2"),Ye=o("506f"),Je=o("b8d9"),Qe=o("52b5"),Ze=o("03d8"),et={name:"QItemSide",props:{right:Boolean,icon:String,letter:{type:String,validator:function(e){return 1===e.length}},inverted:Boolean,avatar:String,image:String,stamp:String,color:String,textColor:String,tooltip:{type:Object,default:null}},computed:{type:function(){var e=this;return["icon","image","avatar","letter","stamp"].find(function(t){return e[t]})},classes:function(){var e=["q-item-side-".concat(this.right?"right":"left")];return!this.color||this.icon||this.letter||e.push("text-".concat(this.color)),e},typeClasses:function(){var e=["q-item-".concat(this.type)];return this.color&&(this.inverted&&(this.icon||this.letter)?e.push("bg-".concat(this.color)):this.textColor||e.push("text-".concat(this.color))),this.textColor&&e.push("text-".concat(this.textColor)),this.inverted&&(this.icon||this.letter)&&(e.push("q-item-inverted"),e.push("flex"),e.push("flex-center")),e},imagePath:function(){return this.image||this.avatar}},render:function(e){var t;return this.type&&(this.icon?(t=e(Qe["a"],{class:this.inverted?null:this.typeClasses,props:{name:this.icon,tooltip:this.tooltip}}),this.inverted&&(t=e("div",{class:this.typeClasses},[t]))):t=this.imagePath?e("img",{class:this.typeClasses,attrs:{src:this.imagePath}}):e("div",{class:this.typeClasses},[this.stamp||this.letter])),e("div",{staticClass:"q-item-side q-item-section",class:this.classes},[null!==this.tooltip?e(Ze["a"],{ref:"tooltip",class:"kl-model-desc-container",props:{offset:[25,0],anchor:"top right",self:"top left"}},[e("div",{class:["kl-model-desc","kl-model-desc-title"]},this.tooltip.title),e("div",{class:["kl-model-desc","kl-model-desc-state","bg-state-".concat(this.tooltip.state)]},this.tooltip.state),e("div",{class:["kl-model-desc","kl-model-desc-content"]},this.tooltip.content)]):null,t,this.$slots.default])}};function tt(e,t,o,n,i,r){var a={props:{right:r.right}};if(n&&i)e.push(t(o,a,n));else{var s=!1;for(var c in r)if(r.hasOwnProperty(c)&&(s=r[c],void 0!==s&&!0!==s)){e.push(t(o,{props:r}));break}n&&e.push(t(o,a,n))}}var ot={name:"QItemWrapper",props:{cfg:{type:Object,default:function(){return{}}},slotReplace:Boolean},render:function(e){var t=this.cfg,o=this.slotReplace,n=[];return tt(n,e,et,this.$slots.left,o,{icon:t.icon,color:t.leftColor,avatar:t.avatar,letter:t.letter,image:t.image,inverted:t.leftInverted,textColor:t.leftTextColor,tooltip:t.leftTooltip}),tt(n,e,Je["a"],this.$slots.main,o,{label:t.label,sublabel:t.sublabel,labelLines:t.labelLines,sublabelLines:t.sublabelLines,inset:t.inset}),tt(n,e,et,this.$slots.right,o,{right:!0,icon:t.rightIcon,color:t.rightColor,avatar:t.rightAvatar,letter:t.rightLetter,image:t.rightImage,stamp:t.stamp,inverted:t.rightInverted,textColor:t.rightTextColor,tooltip:t.rightTooltip}),n.push(this.$slots.default),e(Ye["a"],{attrs:this.$attrs,on:this.$listeners,props:t},n)}},nt=K["b"].width,it={name:"KlabQAutocomplete",extends:Ve["a"],methods:{trigger:function(e){var t=this;if(this.__input&&this.__input.isEditable()&&this.__input.hasFocus()&&this.isWorking()){var o=[null,void 0].includes(this.__input.val)?"":String(this.__input.val),n=o.length,i=Object($e["a"])(),r=this.$refs.popover;if(this.searchId=i,n0)return this.searchId="",this.__clearSearch(),void this.hide();if(this.width=nt(this.inputEl)+"px",this.staticData)return this.searchId="",this.results=this.filter(o,this.staticData),this.results.length?void this.__showResults():void r.hide();this.$emit("search",o,function(e){if(t.isWorking()&&t.searchId===i){if(t.__clearSearch(),Array.isArray(e)&&e.length>0)return t.results=e,void t.__showResults();t.hide()}})}}},render:function(e){var t=this,o=this.__input.isDark();return e(Ge["a"],{ref:"popover",class:o?"bg-dark":null,props:{fit:!0,keepOnScreen:!0,anchorClick:!1,maxHeight:this.maxHeight,noFocus:!0,noRefocus:!0},on:{show:function(){t.__input.selectionOpen=!0,t.$emit("show")},hide:function(){t.__input.selectionOpen=!1,t.$emit("hide")}},nativeOn:{mousedown:function(e){e.preventDefault()}}},[e(Ke["a"],{props:{dark:o,noBorder:!0,separator:this.separator},style:this.computedWidth},this.computedResults.map(function(o,n){return e(ot,{key:o.id||n,class:{"q-select-highlight":t.keyboardIndex===n,"cursor-pointer":!o.disable,"text-faded":o.disable,"ka-separator":o.separator},props:{cfg:o},nativeOn:{mousedown:function(e){!o.disable&&(t.keyboardIndex=n),e.preventDefault()},click:function(){!o.disable&&t.setValue(o)}}})}))])}},rt={data:function(){return{doubleTouchTimeout:null}},methods:{handleTouch:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:300;window.TouchEvent&&e instanceof TouchEvent&&(1===e.targetTouches.length?null===this.doubleTouchTimeout?this.doubleTouchTimeout=setTimeout(function(){t.doubleTouchTimeout=null,null!==o&&o(e)},r):(clearTimeout(this.doubleTouchTimeout),this.doubleTouchTimeout=null,null!==n&&n()):null!==i&&i(e))}}},at="=(<)>",st={name:"KlabSearch",components:{KlabAutocomplete:it},mixins:[rt],props:{maxResults:{type:Number,default:-1}},data:function(){return{searchContextId:null,searchRequestId:0,doneFunc:null,result:null,acceptedTokens:[],actualToken:"",actualSearchString:"",noSearch:!1,searchDiv:null,searchDivInitialSize:void 0,searchDivInternal:void 0,searchInput:null,autocompleteEl:null,scrolled:0,suggestionShowed:!1,searchTimeout:null,searchHistoryIndex:-1,autocompleteSB:null,freeText:!1,parenthesisDepth:0,last:!1,minimumCharForAutocomplete:2}},computed:a()({},Object(s["c"])("data",["searchResult","contextId","isCrossingIDL"]),Object(s["c"])("view",["spinner","searchIsFocused","searchLostChar","searchInApp","searchHistory","fuzzyMode","largeMode","isDocked","engineEventsCount"]),{inputSearchColor:{get:function(){return this.searchInput?this.searchInput.$refs.input.style.color:"black"},set:function(e){this.searchInput.$refs.input&&(this.searchInput.$refs.input.style.color=e)}}}),methods:a()({},Object(s["b"])("data",["setContextCustomLabel"]),Object(s["b"])("view",["searchStop","setSpinner","searchFocus","resetSearchLostChar","storePreviousSearch","setFuzzyMode","setLargeMode"]),{notChrome:function(){return-1===navigator.userAgent.indexOf("Chrome")},onTokenFocus:function(e,t){e.selected="focus"===t.type},onInputFocus:function(e){this.searchFocus({focused:e}),this.actualToken=this.actualSearchString},onAutocompleteShow:function(){this.suggestionShowed=!0},onAutocompleteHide:function(){this.suggestionShowed=!1,this.actualToken!==this.actualSearchString&&(this.noSearch=!0,this.resetSearchInput())},onKeyPressedOnToken:function(e){var t=this;if(37===e.keyCode||39===e.keyCode){e.preventDefault();var o=this.acceptedTokens.findIndex(function(e){return e.selected}),n=null,i=!1;if(37===e.keyCode&&o>0?n="token-".concat(this.acceptedTokens[o-1].index):39===e.keyCode&&o=a&&(o=a)}else{var s=i?r.$el:r,c=(i?s.offsetLeft:r.offsetLeft)+n+s.offsetWidth,p=t.searchDiv.offsetWidth+t.searchDiv.scrollLeft;p<=c&&(o=t.searchDiv.scrollLeft+(c-p)-n)}null!==o&&S["a"].nextTick(function(){t.searchDiv.scrollLeft=o})})}}},onKeyPressedOnSearchInput:function(e){var t=this;if(this.noSearch=!1,this.last)return e.preventDefault(),void this.$q.notify({message:this.$t("messages.lastTermAlertText"),type:"warning",icon:"mdi-alert",timeout:2e3});switch(e.keyCode){case 8:if(""===this.actualToken&&0!==this.acceptedTokens.length){var o=this.acceptedTokens.pop();this.searchHistoryIndex=-1,e.preventDefault(),this.sendStompMessage(p["a"].SEARCH_MATCH({contextId:this.searchContextId,matchIndex:o.matchIndex,matchId:o.id,added:!1},this.$store.state.data.session).body),this.freeText=this.acceptedTokens.length>0&&this.acceptedTokens[this.acceptedTokens.length-1].nextTokenClass!==c["w"].NEXT_TOKENS.TOKEN,this.$nextTick(function(){t.checkLargeMode(!1)})}else""!==this.actualSearchString?(e.preventDefault(),this.actualSearchString=this.actualSearchString.slice(0,-1),""===this.actualSearchString&&this.setFuzzyMode(!1)):""===this.actualSearchString&&""!==this.actualToken&&(this.actualToken="",e.preventDefault());break;case 9:this.suggestionShowed&&-1!==this.autocompleteEl.keyboardIndex?(this.autocompleteEl.setValue(this.autocompleteEl.results[this.autocompleteEl.keyboardIndex]),this.searchHistoryIndex=-1):this.freeText&&this.acceptText(),e.preventDefault();break;case 13:this.freeText||this.fuzzyMode?this.acceptText():this.searchInKLab(e);break;case 27:this.suggestionShowed?this.autocompleteEl.hide():this.searchEnd({noStore:!0}),e.preventDefault();break;case 32:if(e.preventDefault(),this.fuzzyMode)this.searchHistoryIndex=-1,this.actualSearchString+=e.key;else if(this.freeText)this.acceptFreeText();else if(this.suggestionShowed){var n=-1===this.autocompleteEl.keyboardIndex?0:this.autocompleteEl.keyboardIndex,i=this.autocompleteEl.results[n];i.separator||(this.autocompleteEl.setValue(i),this.searchHistoryIndex=-1)}else this.askForSuggestion()||this.$q.notify({message:this.$t("messages.noSpaceAllowedInSearch"),type:"warning",icon:"mdi-alert",timeout:1500});break;case 37:if(!this.suggestionShowed&&0===this.searchInput.$refs.input.selectionStart&&this.acceptedTokens.length>0){var r=this.acceptedTokens[this.acceptedTokens.length-1];S["a"].nextTick(function(){t.$refs["token-".concat(r.index)][0].focus()}),e.preventDefault()}break;case 38:this.suggestionShowed||this.searchHistoryEvent(1,e);break;case 40:this.suggestionShowed||this.searchHistoryEvent(-1,e);break;default:this.isAcceptedKey(e.key)?")"===e.key&&0===this.parenthesisDepth?e.preventDefault():(e.preventDefault(),0===this.acceptedTokens.length&&0===this.searchInput.$refs.input.selectionStart&&Object(He["h"])(e.key)&&this.setFuzzyMode(!0),this.searchHistoryIndex=-1,this.actualSearchString+=e.key,-1!==at.indexOf(e.key)&&this.askForSuggestion(e.key.trim())):39!==e.keyCode&&e.preventDefault();break}},acceptText:function(){var e=this,t=this.actualToken.trim();""===t?this.$q.notify({message:this.$t("messages.emptyFreeTextSearch"),type:"warning",icon:"mdi-alert",timeout:1e3}):this.search(this.actualToken,function(t){t&&t.length>0?e.selected(t[0],!1):e.$q.notify({message:e.$t("messages.noSearchResults"),type:"info",icon:"mdi-information",timeout:1e3})})},selected:function(e,t){var o=this;if(t)this.inputSearchColor=e.rgb;else{if(this.acceptedTokens.push(e),this.actualSearchString="",this.sendStompMessage(p["a"].SEARCH_MATCH({contextId:this.searchContextId,matchIndex:e.matchIndex,matchId:e.id,added:!0},this.$store.state.data.session).body),this.fuzzyMode)return void this.$nextTick(function(){o.searchEnd({})});this.freeText=e.nextTokenClass!==c["w"].NEXT_TOKENS.TOKEN,this.$nextTick(function(){o.checkLargeMode(!0)})}},checkLargeMode:function(){var e=this;this.$nextTick(function(){var t;if(e.isDocked)t=e.searchDivInitialSize-e.searchDivInternal.clientWidth,t<0&&0===e.largeMode?e.setLargeMode(1):t>=0&&e.largeMode>0&&e.setLargeMode(0);else if(t=e.searchDiv.clientWidth-e.searchDivInternal.clientWidth,t>=0){var o=Math.floor(t/c["g"].SEARCHBAR_INCREMENT);o>0&&e.largeMode>0&&(o>e.largeMode?e.setLargeMode(0):e.setLargeMode(e.largeMode-o))}else{var n=Math.ceil(Math.abs(t)/c["g"].SEARCHBAR_INCREMENT);e.setLargeMode(e.largeMode+n)}})},autocompleteSearch:function(e,t){this.freeText?t([]):this.search(e,t)},search:function(e,t){var o=this;if(this.noSearch)return this.noSearch=!1,void t([]);this.searchRequestId+=1,this.sendStompMessage(p["a"].SEARCH_REQUEST({requestId:this.searchRequestId,contextId:this.searchContextId,maxResults:this.maxResults,cancelSearch:!1,defaultResults:""===e,searchMode:this.fuzzyMode?c["F"].FREETEXT:c["F"].SEMANTIC,queryString:this.actualSearchString},this.$store.state.data.session).body),this.setSpinner(a()({},c["I"].SPINNER_LOADING,{owner:this.$options.name})),this.doneFunc=t,this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){o.setSpinner(a()({},c["I"].SPINNER_ERROR,{owner:o.$options.name,errorMessage:o.$t("errors.searchTimeout"),time:o.fuzzyMode?5:2,then:a()({},c["I"].SPINNER_STOPPED)})),o.doneFunc([])},"4000")},searchInKLab:function(){if(!this.suggestionShowed&&!this.fuzzyMode)if(this.parenthesisDepth>0)this.$q.notify({message:this.$t("messages.parenthesisAlertText"),type:"warning",icon:"mdi-alert",timeout:2e3});else if(this.isCrossingIDL)this.$q.dialog({title:this.$t("label.IDLAlertTitle"),message:this.$t("messages.IDLAlertText"),color:"mc-red"}).catch(function(){});else{if(this.acceptedTokens.length>0){if(this.engineEventsCount>0)return this.$emit("busy-search"),void this.$q.notify({message:this.$t("messages.resourcesValidating"),type:"warning",icon:"mdi-alert",timeout:2e3});var e=this.acceptedTokens.map(function(e){return e.id}).join(" ");this.sendStompMessage(p["a"].OBSERVATION_REQUEST({urn:e,contextId:this.contextId,searchContextId:null},this.$store.state.data.session).body);var t=this.acceptedTokens.map(function(e){return e.label}).join(" ");this.setContextCustomLabel(this.$t("messages.waitingObservationInit",{observation:t})),this.$q.notify({message:this.$t("label.askForObservation",{urn:t}),type:"info",icon:"mdi-information",timeout:2e3})}else console.info("Nothing to search for");this.searchEnd({})}},searchEnd:function(e){var t=e.noStore,o=void 0!==t&&t,n=e.noDelete,i=void 0!==n&&n;if(!this.suggestionShowed){if(this.acceptedTokens.length>0){if(i)return;o||this.storePreviousSearch({acceptedTokens:this.acceptedTokens.slice(0),searchContextId:this.searchContextId,searchRequestId:this.searchRequestId})}this.searchContextId=null,this.searchRequestId=0,this.doneFunc=null,this.result=null,this.acceptedTokens=[],this.searchHistoryIndex=-1,this.actualSearchString="",this.scrolled=0,this.noSearch=!1,this.freeText=!1,this.setFuzzyMode(!1),this.setLargeMode(0),this.parenthesisDepth=0,this.last=!1,this.searchStop()}},resetSearchInput:function(){var e=this;this.$nextTick(function(){e.actualToken=e.actualSearchString,e.inputSearchColor="black"})},searchHistoryEvent:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(""===this.actualToken&&this.searchHistory.length>0&&(0===this.acceptedTokens.length||this.searchHistoryIndex>=0)&&this.searchHistory.length>0&&(e>0||this.searchHistoryIndex>0)&&this.searchHistoryIndex+e0&&void 0!==arguments[0]?arguments[0]:"";return(""!==t||0===this.acceptedTokens.length)&&0===this.searchInput.$refs.input.selectionStart&&(this.search(t,function(o){e.autocompleteEl.__clearSearch(),Array.isArray(o)&&o.length>0?(e.autocompleteEl.results=o,S["a"].nextTick(function(){e.autocompleteEl.__showResults(),""!==t&&(e.autocompleteEl.keyboardIndex=0)})):e.autocompleteEl.hide()}),!0)},deleteLastToken:function(){if(0!==this.acceptedTokens.length){var e=this.acceptedTokens.pop();this.searchHistoryIndex=-1,this.sendStompMessage(p["a"].SEARCH_MATCH({contextId:this.searchContextId,matchIndex:e.matchIndex,matchId:e.id,added:!1},this.$store.state.data.session).body)}},charReceived:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];"ArrowUp"===e?this.searchHistoryEvent(1):"ArrowDown"===e?this.searchHistoryEvent(-1):" "===e?this.askForSuggestion():(Object(He["h"])(e)&&this.setFuzzyMode(!0),this.actualSearchString=t?this.actualSearchString+e:e,-1!==at.indexOf(e)&&this.askForSuggestion(e))}}),watch:{actualSearchString:function(){this.resetSearchInput()},searchResult:function(e){var t=this;if(!this.searchInApp){this.searchTimeout&&(clearTimeout(this.searchTimeout),this.searchTimeout=null);var o=e.requestId,n=e.contextId;if(null===this.searchContextId)this.searchContextId=n;else if(n!==this.searchContextId)return void console.warn("Something strange was happened: differents search context ids:\n\n actual: ".concat(this.searchContextId," / received: ").concat(n));if(this.searchRequestId===o){var i;null!==this.result&&this.result.requestId===o&&(i=e.matches).push.apply(i,I()(this.result.matches)),this.result=e;var r=this.result,s=r.matches,p=r.error,l=r.errorMessage,u=r.parenthesisDepth,b=r.last;if(this.parenthesisDepth=u,this.last=b,p)this.setSpinner(a()({},c["I"].SPINNER_ERROR,{owner:this.$options.name,errorMessage:l}));else{var d=[];s.forEach(function(e){var o=c["w"][e.matchType];if("undefined"!==typeof o){var n=o;if(null!==e.mainSemanticType){var i=c["G"][e.mainSemanticType];"undefined"!==typeof i&&(n=i)}if("SEPARATOR"===e.matchType)d.push({value:e.name,label:e.name,labelLines:1,rgb:n.rgb,selected:!1,disable:!0,separator:!0});else{var r=e.state?e.state:null,s=null!==r?Object(Ue["m"])(e.state):null;d.push(a()({value:e.name,label:e.name,labelLines:1,sublabel:e.description,sublabelLines:4,letter:n.symbol,leftInverted:!0,leftColor:n.color,rgb:n.rgb,id:e.id,index:t.acceptedTokens.length+1,matchIndex:e.index,selected:!1,disable:e.state&&"FORTHCOMING"===e.state,separator:!1,nextTokenClass:e.nextTokenClass},null!==s&&{rightIcon:s.icon,rightTextColor:"state-".concat(s.tooltip),rightTooltip:{state:s.tooltip,title:e.name,content:e.extendedDescription||e.description}}))}}else console.warn("Unknown type: ".concat(e.matchType))}),this.fuzzyMode||0!==d.length||this.$q.notify({message:this.$t("messages.noSearchResults"),type:"info",icon:"mdi-information",timeout:1e3}),this.setSpinner(a()({},c["I"].SPINNER_STOPPED,{owner:this.$options.name})),S["a"].nextTick(function(){t.doneFunc(d),t.autocompleteEl.keyboardIndex=0})}}else console.warn("Result discarded for bad request id: actual: ".concat(this.searchRequestId," / received: ").concat(o,"\n"))}},acceptedTokens:function(){var e=this;S["a"].nextTick(function(){var t=e.searchDiv.scrollWidth;e.scrolled!==t&&(e.searchDiv.scrollLeft=t,e.scrolled=t)})},searchIsFocused:function(e){e?(this.searchInput.focus(),this.acceptedTokens.forEach(function(e){e.selected=!1})):this.searchInput.blur()},searchLostChar:function(e){null!==e&&""!==e&&(this.charReceived(e,!0),this.resetSearchLostChar())}},beforeMount:function(){this.setFuzzyMode(!1)},mounted:function(){var e=this;this.searchDiv=this.$refs["ks-container"],this.searchDivInternal=document.getElementById("ks-internal-container"),this.searchInput=this.$refs["ks-search-input"],this.autocompleteEl=this.$refs["ks-autocomplete"],null!==this.searchLostChar&&""!==this.searchLostChar?this.charReceived(this.searchLostChar,!1):this.actualSearchString="",this.inputSearchColor="black",this.setLargeMode(0),this.$nextTick(function(){e.searchDivInitialSize=e.searchDiv.clientWidth})},updated:function(){var e=document.querySelectorAll("#ks-autocomplete .q-item-side-right");e.forEach(function(e){e.setAttribute("title","lalala")})},beforeDestroy:function(){this.searchTimeout&&(clearTimeout(this.searchTimeout),this.searchTimeout=null)}},ct=st,pt=(o("aff7"),Object(A["a"])(ct,Ie,Xe,!1,null,null,null));pt.options.__file="KlabSearch.vue";var lt=pt.exports,ut=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"st-container",class:{marquee:e.needMarquee<0,"hover-active":e.hoverActive}},[o("div",{ref:"st-text",staticClass:"st-text",class:{"st-accentuate":e.accentuate,"st-placeholder":e.placeholderStyle},style:{left:(e.needMarquee<0?e.needMarquee:0)+"px","animation-duration":e.animationDuration+"s"}},[e._v("\n "+e._s(e.text)+"\n ")]),e.withEdge?o("div",{staticClass:"st-edges",style:{"background-color":e.getBGColor(e.spinnerColor,e.edgeOpacity)}}):e._e()])},bt=[];ut._withStripped=!0;var dt={name:"ScrollingText",props:{hoverActive:{type:Boolean,default:!1},initialText:{type:String,default:""},duration:{type:Number,default:10},accentuate:{type:Boolean,default:!1},edgeOpacity:{type:Number,default:1},withEdge:{type:Boolean,default:!0},placeholderStyle:{type:Boolean,default:!1}},data:function(){return{needMarquee:0,animationDuration:this.duration,text:this.initialText,edgeBgGradient:""}},computed:a()({},Object(s["c"])("view",["spinnerColor"])),methods:{isNeededMarquee:function(){var e=this.$refs["st-text"];return"undefined"===typeof e?0:e.offsetWidth-e.scrollWidth},changeText:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.needMarquee=0,e!==this.text&&(this.text=null===e?"":e,this.$nextTick(function(){null!==o&&(t.animationDuration=o),t.needMarquee=t.isNeededMarquee(t.ref)}))},getBGColor:function(e,t){return"rgba(".concat(e.rgb.r,",").concat(e.rgb.g,",").concat(e.rgb.b,", ").concat(t,")")},getEdgeGradient:function(){return"linear-gradient(to right,\n ".concat(this.getBGColor(this.spinnerColor,1)," 0,\n ").concat(this.getBGColor(this.spinnerColor,0)," 5%,\n ").concat(this.getBGColor(this.spinnerColor,0)," 95%,\n ").concat(this.getBGColor(this.spinnerColor,1)," 100%)")}},watch:{spinnerColor:function(){this.edgeBgGradient=this.getEdgeGradient()}},mounted:function(){var e=this;this.$nextTick(function(){e.needMarquee=e.isNeededMarquee(e.ref)}),this.edgeBgGradient=this.getEdgeGradient()}},Mt=dt,ht=(o("2590"),Object(A["a"])(Mt,ut,bt,!1,null,null,null));ht.options.__file="ScrollingText.vue";var ft=ht.exports,zt=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("q-btn",{staticClass:"mcm-menubutton absolute-top-right",attrs:{icon:e.interactiveMode?"mdi-play":"mdi-chevron-right",color:e.interactiveMode?"mc-main-light":"black",size:"sm",round:"",flat:""}},[e.isVisible?o("q-popover",{ref:"mcm-main-popover",attrs:{anchor:"top right",self:"top left",persistent:!1,"max-height":"95vh"}},[o("q-btn",{staticClass:"mcm-icon-close-popover",attrs:{icon:"mdi-close",color:"grey-8",size:"xs",flat:"",round:""},on:{click:e.closeMenuPopups}}),o("q-list",{attrs:{dense:""}},[o("q-list-header",{staticStyle:{padding:"0 16px 0 16px","min-height":"0"}},[e._v("\n "+e._s(e.$t("label.mcMenuContext"))+"\n "),e.hasContext?o("q-icon",{staticClass:"mcm-copy-icon",attrs:{name:"mdi-content-copy"},nativeOn:{click:function(t){e.copyContextES(t,e.contextEncodedShape)}}},[o("q-tooltip",{attrs:{delay:1e3,anchor:"center right",self:"center left",offset:[10,10]}},[e._v("\n "+e._s(e.$t("tooltips.copyEncodedShapeToClipboard"))+"\n ")])],1):e._e()],1),o("q-item-separator"),e.hasContext?o("q-item",[o("div",{staticClass:"mcm-container"},[o("div",{staticClass:"klab-menuitem klab-clickable",on:{click:function(t){e.closeAndCall(null)}}},[o("div",{staticClass:"klab-item mdi mdi-star-four-points-outline klab-icon"}),o("div",{staticClass:"klab-item klab-text klab-only-text"},[e._v(e._s(e.$t("label.newContext")))])])])]):e._e(),o("q-item",[o("div",{staticClass:"mcm-container"},[o("div",{staticClass:"klab-menuitem klab-clickable",class:{"klab-not-available":0===e.contextsHistory.length},on:{click:e.toggleContextsHistory}},[o("div",{staticClass:"klab-item mdi mdi-history klab-icon"}),o("div",{staticClass:"klab-item klab-text klab-only-text"},[e._v(e._s(e.$t("label.previousContexts")))]),o("div",[o("q-icon",{staticClass:"mcm-contextbutton",attrs:{name:"mdi-chevron-right",color:"black",size:"sm"}}),o("q-popover",{ref:"mcm-contexts-popover",attrs:{anchor:"top right",self:"top left",offset:[18,28]}},[o("q-list",{attrs:{dense:""}},e._l(e.contextsHistory,function(t){return o("q-item",{key:t.id},[o("q-item-main",[o("div",{staticClass:"mcm-container mcm-context-label"},[o("div",{staticClass:"klab-menuitem",class:[t.id===e.contextId?"klab-no-clickable":"klab-clickable"],on:{click:function(o){e.closeAndCall(t.id)}}},[o("div",{staticClass:"klab-item klab-large-text",class:{"mcm-actual-context":t.id===e.contextId},style:{"font-style":e.contextTaskIsAlive(t.id)?"italic":"normal"},on:{mouseover:function(o){e.tooltipIt(o,t.id)}}},[e._v("\n "+e._s(e.formatContextTime(t))+": "+e._s(t.label)+"\n "),o("q-tooltip",{directives:[{name:"show",rawName:"v-show",value:e.needTooltip(t.id),expression:"needTooltip(context.id)"}],attrs:{anchor:"center right",self:"center left",offset:[10,10]}},[e._v("\n "+e._s(t.label)+"\n ")])],1)]),o("q-icon",{staticClass:"absolute-right mcm-copy-icon",attrs:{name:"mdi-content-copy"},nativeOn:{click:function(o){e.copyContextES(o,t.spatialProjection+" "+t.encodedShape)}}},[o("q-tooltip",{attrs:{delay:1e3,anchor:"center right",self:"center left",offset:[10,10]}},[e._v("\n "+e._s(e.$t("tooltips.copyEncodedShapeToClipboard"))+"\n ")])],1)],1)])],1)}))],1)],1)])])]),e.hasContext?e._e():[o("q-item",[o("q-item-main",[o("div",{staticClass:"mcm-container"},[o("div",{staticClass:"klab-menuitem klab-clickable",class:[e.isDrawMode?"klab-select":""],on:{click:function(t){e.startDraw()}}},[o("div",{staticClass:"klab-item mdi mdi-vector-polygon klab-icon"}),o("div",{staticClass:"klab-item klab-text klab-only-text"},[e._v(e._s(e.$t("label.drawCustomContext")))])])])])],1),o("q-list-header",{staticStyle:{padding:"8px 16px 0 16px","min-height":"0"}},[e._v(e._s(e.$t("label.mcMenuScale")))]),o("q-item-separator"),o("q-item",[o("q-item-main",[o("scale-reference",{attrs:{width:"180px",light:!0,scaleType:"space",editable:!0,full:!0}})],1)],1),o("q-item",[o("q-item-main",[o("scale-reference",{attrs:{width:"180px",light:!0,scaleType:"time",editable:!0,full:!0}})],1)],1)],o("q-list-header",{staticStyle:{padding:"8px 16px 0 16px","min-height":"0"}},[e._v(e._s(e.$t("label.mcMenuOption")))]),o("q-item-separator"),o("q-item",[o("div",{staticClass:"mcm-container"},[o("div",{staticClass:"klab-menuitem"},[o("div",{staticClass:"klab-item"},[e._v(e._s(e.$t("label.interactiveMode")))])]),o("q-item-side",{attrs:{right:""}},[o("q-toggle",{attrs:{color:"mc-main"},model:{value:e.interactiveModeModel,callback:function(t){e.interactiveModeModel=t},expression:"interactiveModeModel"}})],1)],1)]),o("q-item",[o("div",{staticClass:"mcm-container"},[o("div",{staticClass:"klab-menuitem"},[o("div",{staticClass:"klab-item"},[e._v(e._s(e.$t("label.viewCoordinates")))])]),o("q-item-side",{attrs:{right:""}},[o("q-toggle",{attrs:{color:"mc-main"},model:{value:e.coordinates,callback:function(t){e.coordinates=t},expression:"coordinates"}})],1)],1)]),e.hasContext?e._e():[o("q-list-header",{staticStyle:{padding:"8px 16px 0 16px","min-height":"0"}},[e._v(e._s(e.$t("label.mcMenuSettings")))]),o("q-item-separator"),o("q-item",[o("div",{staticClass:"mcm-container"},[o("div",{staticClass:"klab-menuitem"},[o("div",{staticClass:"klab-item"},[e._v(e._s(e.$t("label.optionSaveLocation")))])]),o("q-item-side",{attrs:{right:""}},[o("q-toggle",{attrs:{color:"mc-main"},model:{value:e.saveLocationVar,callback:function(t){e.saveLocationVar=t},expression:"saveLocationVar"}})],1)],1)]),o("q-item",[o("div",{staticClass:"mcm-container"},[o("div",{staticClass:"klab-menuitem"},[o("div",{staticClass:"klab-item"},[e._v(e._s(e.$t("label.saveDockedStatus")))])]),o("q-item-side",{attrs:{right:""}},[o("q-toggle",{attrs:{color:"mc-main"},model:{value:e.saveDockedStatusVar,callback:function(t){e.saveDockedStatusVar=t},expression:"saveDockedStatusVar"}})],1)],1)])],o("q-list-header",{staticStyle:{padding:"8px 16px 0 16px","min-height":"0"}},[e._v(e._s(e.$t("label.mcMenuHelp")))]),o("q-item-separator"),o("q-item",[o("div",{staticClass:"mcm-container"},[o("div",{staticClass:"klab-menuitem klab-clickable",on:{click:e.askTutorial}},[o("div",{staticClass:"klab-item klab-font klab-im-logo klab-icon"}),o("div",{staticClass:"klab-item klab-text klab-only-text"},[e._v(e._s(e.$t("label.showHelp")))])])])]),o("q-item-separator"),o("q-item",[o("div",{staticClass:"klab-version"},[e._v("Version: "+e._s(e.$store.state.data.packageVersion)+"/ Build "+e._s(e.$store.state.data.packageBuild))])])],2)],1):e._e()],1)},Ot=[];zt._withStripped=!0;var At=o("c1df"),mt=o.n(At),vt=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"sr-container",class:[e.light?"sr-light":"sr-dark","vertical"===e.orientation?"sr-vertical":""],style:{width:e.width},on:{click:function(t){e.scaleEditing=e.editable}}},[e.hasScale?o("div",{staticClass:"sr-scalereference klab-menuitem",class:{"sr-full":e.full,"klab-clickable":e.editable}},[e.full?o("div",{staticClass:"sr-locked klab-item mdi sr-icon",class:[e.isScaleLocked[e.scaleType]?"mdi-lock-outline":"mdi-lock-open-outline"],on:{click:function(t){t.preventDefault(),e.lockScale(t)}}},[o("q-tooltip",{attrs:{anchor:"bottom middle",self:"top middle",offset:[0,5]}},[e._v(e._s(e.isScaleLocked[e.scaleType]?e.$t("label.clickToUnlock"):e.$t("label.clickToLock")))])],1):e._e(),o("div",{staticClass:"sr-editables",style:{cursor:e.editable?"pointer":"default"}},[o("div",{staticClass:"sr-scaletype klab-item",class:["mdi "+e.type+" sr-icon"]}),o("div",{staticClass:"sr-description klab-item"},[e._v(e._s(e.description))]),o("div",{staticClass:"sr-spacescale klab-item"},[e._v(e._s(e.scale))]),e.editable?o("q-tooltip",{attrs:{anchor:"bottom middle",self:"top middle",offset:[0,5]}},[e.scaleType===e.SCALE_TYPE.ST_TIME&&""!==e.timeLimits?o("div",{staticClass:"sr-tooltip sr-time-tooltip",domProps:{innerHTML:e._s(e.timeLimits)}}):e._e(),o("div",{staticClass:"sr-tooltip"},[e._v(e._s(e.$t("label.clickToEditScale")))])]):e._e()],1)]):o("div",{staticClass:"sr-no-scalereference"},[o("p",[e._v(e._s(e.$t("label.noScaleReference")))])])])},gt=[];vt._withStripped=!0;var yt={name:"ScaleReference",props:{scaleType:{type:String,validator:function(e){return-1!==[c["C"].ST_SPACE,c["C"].ST_TIME].indexOf(e)},default:c["C"].ST_SPACE},useNext:{type:Boolean,default:!1},width:{type:String,default:"150px"},light:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},full:{type:Boolean,default:!1},orientation:{type:String,default:"horizontal"}},data:function(){return{SCALE_TYPE:c["C"]}},computed:a()({},Object(s["c"])("data",["scaleReference","isScaleLocked","nextScale"]),{scaleObj:function(){return this.useNext?this.nextScale:this.scaleReference},resolution:function(){return this.scaleType===c["C"].ST_SPACE?this.scaleObj.spaceResolutionConverted:this.scaleObj.timeUnit},unit:function(){return this.scaleType===c["C"].ST_SPACE?this.scaleObj.spaceUnit:this.scaleObj.timeUnit},type:function(){return this.scaleType===c["C"].ST_SPACE?"mdi-grid":"mdi-clock-outline"},description:function(){return this.scaleType===c["C"].ST_SPACE?this.scaleObj.spaceResolutionDescription:null===this.scaleObj.timeUnit?"YEAR":this.scaleObj.timeUnit},scale:function(){var e=this;return this.scaleType===c["C"].ST_SPACE?this.scaleObj.spaceScale:this.unit?c["D"].find(function(t){return t.value===e.unit}).index:this.scaleObj.timeScale},hasScale:function(){return this.useNext?null!==this.nextScale:null!==this.scaleReference},timeLimits:function(){return 0===this.scaleObj.start&&0===this.scaleObj.end?"":"".concat(mt()(this.scaleObj.start).format("L HH:mm:ss"),"
").concat(mt()(this.scaleObj.end).format("L HH:mm:ss"))},scaleEditing:{get:function(){return this.$store.getters["view/isScaleEditing"]},set:function(e){this.$store.dispatch("view/setScaleEditing",{active:e,type:this.scaleType})}}}),methods:a()({},Object(s["b"])("data",["setScaleLocked"]),{lockScale:function(e){e.stopPropagation();var t=!this.isScaleLocked[this.scaleType];this.sendStompMessage(p["a"].SETTING_CHANGE_REQUEST({setting:this.scaleType===c["C"].ST_SPACE?c["H"].LOCK_SPACE:c["H"].LOCK_TIME,value:t},this.$store.state.data.session).body),this.setScaleLocked({scaleType:this.scaleType,scaleLocked:t}),t||this.$eventBus.$emit(c["h"].SEND_REGION_OF_INTEREST)}})},qt=yt,_t=(o("cf611"),Object(A["a"])(qt,vt,gt,!1,null,null,null));_t.options.__file="ScaleReference.vue";var Wt=_t.exports,Rt=o("2cee"),wt=o("1442"),Lt={name:"MainControlMenu",mixins:[Rt["a"],Te],components:{ScaleReference:Wt},data:function(){return{}},computed:a()({},Object(s["c"])("data",["contextsHistory","hasContext","contextId","contextReloaded","contextEncodedShape","interactiveMode","session"]),Object(s["d"])("stomp",["subscriptions"]),Object(s["c"])("stomp",["lastActiveTask","contextTaskIsAlive"]),Object(s["c"])("view",["searchIsActive","isDrawMode","isScaleEditing","isMainControlDocked","viewCoordinates"]),Object(s["d"])("view",["saveLocation","saveDockedStatus"]),{saveLocationVar:{get:function(){return this.saveLocation},set:function(e){this.changeSaveLocation(e)}},saveDockedStatusVar:{get:function(){return this.saveDockedStatus},set:function(e){this.changeSaveDockedStatus(e)}},interactiveModeModel:{get:function(){return this.interactiveMode},set:function(e){this.setInteractiveMode(e)}},coordinates:{get:function(){return this.viewCoordinates},set:function(e){this.setViewCoordinates(e)}},isVisible:function(){return!this.isDrawMode&&!this.isScaleEditing}}),methods:a()({},Object(s["b"])("data",["setInteractiveMode"]),Object(s["b"])("view",["setDrawMode","setViewCoordinates"]),{startDraw:function(){this.setDrawMode(!this.isDrawMode)},toggleContextsHistory:function(){this.contextsHistory.length>0&&this.$refs["mcm-contexts-popover"].toggle()},closeAndCall:function(){var e=j()(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(this.contextId!==t){e.next=2;break}return e.abrupt("return");case 2:this.closeMenuPopups(),this.clearTooltip(),this.loadOrReloadContext(t,this.closeMenuPopups());case 5:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}(),formatContextTime:function(e){var t=e.lastUpdate;if(0===t&&(t=e.creationTime),t&&null!==t){var o=mt()(t),n=0===mt()().diff(o,"days");return n?o.format("HH:mm:ss"):o.format("YYYY/mm/dd HH:mm:ss")}return""},changeSaveLocation:function(e){this.$store.commit("view/SET_SAVE_LOCATION",e,{root:!0}),G["a"].set(c["Q"].COOKIE_SAVELOCATION,e,{expires:30,path:"/",secure:!0}),e||(G["a"].set(c["Q"].COOKIE_SAVELOCATION,e,{expires:30,path:"/",secure:!0}),G["a"].set(c["Q"].COOKIE_MAPDEFAULT,{center:wt["b"].center,zoom:wt["b"].zoom},{expires:30,path:"/",secure:!0}))},changeSaveDockedStatus:function(e){this.$store.commit("view/SET_SAVE_DOCKED_STATUS",e,{root:!0}),e?G["a"].set(c["Q"].COOKIE_DOCKED_STATUS,this.isMainControlDocked,{expires:30,path:"/",secure:!0}):G["a"].remove(c["Q"].COOKIE_DOCKED_STATUS)},copyContextES:function(e,t){e.stopPropagation(),Object(He["b"])(t),this.$q.notify({message:Object(He["a"])(this.$t("messages.customCopyToClipboard",{what:this.$t("label.context")})),type:"info",icon:"mdi-information",timeout:500})},closeMenuPopups:function(){this.$refs["mcm-main-popover"]&&this.$refs["mcm-main-popover"].hide(),this.$refs["mcm-contexts-popover"]&&this.$refs["mcm-contexts-popover"].hide()},sendInteractiveModeState:function(e){this.sendStompMessage(p["a"].SETTING_CHANGE_REQUEST({setting:c["H"].INTERACTIVE_MODE,value:e},this.session).body)},viewerClickListener:function(){this.isDrawMode||this.closeMenuPopups()},askTutorial:function(){this.$eventBus.$emit(c["h"].NEED_HELP),this.closeMenuPopups()}}),watch:{hasContext:function(){this.closeMenuPopups()},searchIsActive:function(e){e&&this.closeMenuPopups()},interactiveModeModel:function(e){this.sendInteractiveModeState(e)}},mounted:function(){this.$eventBus.$on(c["h"].VIEWER_CLICK,this.viewerClickListener)},beforeDestroy:function(){this.$eventBus.$off(c["h"].VIEWER_CLICK,this.viewerClickListener)}},Ct=Lt,St=(o("6774"),Object(A["a"])(Ct,zt,Ot,!1,null,null,null));St.options.__file="MainControlMenu.vue";var Et=St.exports,Tt={name:"KlabSearchBar",components:{KlabSpinner:v,KlabSearch:lt,ScrollingText:ft,MainControlMenu:Et},mixins:[rt],data:function(){return{searchAsked:!1,busyInformed:!1,searchAskedInterval:null}},computed:a()({},Object(s["c"])("data",["hasContext","contextLabel","contextCustomLabel","isScaleLocked"]),Object(s["c"])("view",["spinnerColor","searchIsActive","searchIsFocused","hasMainControl","statusTextsString","statusTextsLength","fuzzyMode","largeMode","isDocked","engineEventsCount"]),{isDocked:function(){return!this.hasMainControl},mainContextLabel:function(){return this.contextLabel?this.contextLabel:this.contextCustomLabel}}),methods:a()({},Object(s["b"])("view",["setMainViewer","searchStart","searchFocus","searchStop","setSpinner"]),{getLargeModeWidth:function(){return"".concat((window.innerWidth||document.body.clientWidth)-c["v"].LEFTMENU_MINSIZE,"px")},getBGColor:function(e){return"rgba(".concat(this.spinnerColor.rgb.r,",").concat(this.spinnerColor.rgb.g,",").concat(this.spinnerColor.rgb.b,", ").concat(e,")")},showSuggestions:function(e){1===e.targetTouches.length&&(e.preventDefault(),this.searchIsActive?this.searchIsFocused?this.$refs["klab-search"].searchEnd({noDelete:!1}):this.searchFocus({char:" ",focused:!0}):this.searchStart(" "))},emitSpinnerDoubleclick:function(){this.$eventBus.$emit(c["h"].SPINNER_DOUBLE_CLICK)},askForSuggestionsListener:function(e){this.showSuggestions(e)},busySearch:function(){this.searchAsked=!0,this.updateBusy()},updateBusy:function(){var e=this;null!==this.searchAskedInterval&&(clearTimeout(this.searchAskedInterval),this.searchAskedInterval=null),this.searchAsked&&(0===this.engineEventsCount?this.searchAskedInterval=setTimeout(function(){e.searchAsked=!1,e.busyInformed=!1,e.setSpinner(a()({},c["I"].SPINNER_STOPPED,{owner:"BusySearch"}))},600):this.busyInformed||(this.setSpinner(a()({},c["I"].SPINNER_LOADING,{owner:"BusySearch"})),this.busyInformed=!0))}}),watch:{statusTextsString:function(e){e.includes(c["p"].UNKNOWN_SEARCH_OBSERVATION)&&(e=e.replace(c["p"].UNKNOWN_SEARCH_OBSERVATION,this.$t("messages.unknownSearchObservation"))),this.$refs["st-status-text"].changeText(e,5*this.statusTextsLength)},mainContextLabel:function(e){this.$refs["st-context-text"]&&this.$refs["st-context-text"].changeText(e)},hasContext:function(e){e&&this.setSpinner(a()({},c["I"].SPINNER_STOPPED,{owner:"KlabSearch"}))},engineEventsCount:function(){this.updateBusy()}},mounted:function(){this.$eventBus.$on(c["h"].ASK_FOR_SUGGESTIONS,this.askForSuggestionsListener),this.updateBusy()},beforeDestroy:function(){this.$eventBus.$off(c["h"].ASK_FOR_SUGGESTIONS,this.askForSuggestionsListener)}},xt=Tt,Nt=(o("19f2"),Object(A["a"])(xt,Pe,De,!1,null,null,null));Nt.options.__file="KlabSearchBar.vue";var Bt=Nt.exports,kt=function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.contextsCount>1?o("div",{staticClass:"kbc-container"},e._l(e.contextsLabels,function(t,n){return o("span",{key:t.id,on:{click:function(o){e.load(t.contextId,n)}}},[e._v(e._s(t.label))])})):e._e()},Pt=[];kt._withStripped=!0;var Dt={name:"KlabBreadcrumbs",mixins:[Te],computed:a()({},Object(s["c"])("data",["contextsLabels","contextsCount","contextById"])),methods:a()({},Object(s["b"])("data",["loadContext"]),{load:function(e,t){if(t!==this.contextsCount-1){var o,n=this.$store.state.data.observations.find(function(t){return t.id===e});o=n||this.contextById(e),this.sendStompMessage(p["a"].CONTEXTUALIZATION_REQUEST(a()({contextId:o.id},o.contextId&&{parentContext:o.contextId}),this.$store.state.data.session).body),this.loadContext(e)}}})},It=Dt,Xt=(o("6c8f"),Object(A["a"])(It,kt,Pt,!1,null,null,null));Xt.options.__file="KlabBreadcrumbs.vue";var jt=Xt.exports,Ft=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{attrs:{id:"klab-tree-pane"}},[o("klab-splitter",{attrs:{margin:0,hidden:e.hasObservationInfo?"":"right"},on:{"close-info":e.onCloseInfo}},[o("div",{staticClass:"full-height",attrs:{slot:"left-pane",id:"ktp-left"},slot:"left-pane"},[e.hasTree?o("div",{ref:"kt-out-container",class:{"ktp-loading":e.taskOfContextIsAlive,"with-splitter":e.hasObservationInfo},attrs:{id:"kt-out-container"}},[o("q-resize-observable",{on:{resize:e.outContainerResized}}),[o("klab-tree",{ref:"kt-user-tree",style:{"max-height":!!e.userTreeMaxHeight&&e.userTreeMaxHeight+"px"},attrs:{id:"kt-user-tree",tree:e.userTree,"is-user":!0},on:{resized:e.recalculateTreeHeight}})],o("details",{directives:[{name:"show",rawName:"v-show",value:e.mainTreeHasNodes(),expression:"mainTreeHasNodes()"}],attrs:{id:"kt-tree-details",open:e.taskOfContextIsAlive||e.mainTreeHasNodes(!0)||e.detailsOpen}},[o("summary",[o("q-icon",{attrs:{name:"mdi-dots-horizontal",id:"ktp-main-tree-arrow"}},[o("q-tooltip",{attrs:{offset:[0,0],self:"top left",anchor:"bottom right"}},[e._v(e._s(e.detailsOpen?e.$t("tooltips.displayMainTree"):e.$t("tooltips.hideMainTree")))])],1)],1),o("klab-tree",{ref:"kt-tree",style:{"max-height":!!e.treeHeight&&e.treeHeight+"px"},attrs:{id:"kt-tree",tree:e.tree,"is-user":!1},on:{resized:e.recalculateTreeHeight}})],1)],2):e.hasContext?o("div",{staticClass:"q-ma-md text-center text-white ktp-no-tree"},[e._v("\n "+e._s(e.$t("label.noObservation"))+"\n ")]):o("div",{staticClass:"q-ma-md text-center text-white ktp-no-tree"},[e._v("\n "+e._s(e.$t("label.noContext"))+"\n ")])]),o("div",{staticClass:"full-height",attrs:{slot:"right-pane",id:"ktp-right"},slot:"right-pane"},[e.hasObservationInfo?o("observation-info",{on:{shownode:function(t){e.informTree(t)}}}):e._e()],1)])],1)},Ht=[];Ft._withStripped=!0;o("5df2");var Ut=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"splitter-container full-height"},[!e.hidden&&e.controllers?o("div",{staticClass:"splitter-controllers"},[e.onlyOpenClose?e._e():[o("q-btn",{staticClass:"no-padding splitter-actions",style:{color:e.controlsColor},attrs:{flat:"",round:"",size:"sm",id:"splitter-to-left",icon:"mdi-arrow-left"},nativeOn:{click:function(t){e.percent=0}}}),o("q-btn",{staticClass:"no-padding splitter-actions rotate-90",style:{color:e.controlsColor},attrs:{flat:"",round:"",size:"sm",id:"splitter-to-middle",icon:"mdi-format-align-middle"},nativeOn:{click:function(t){e.percent=50}}}),o("q-btn",{staticClass:"no-padding splitter-actions",style:{color:e.controlsColor},attrs:{flat:"",round:"",size:"sm",id:"splitter-to-right",icon:"mdi-arrow-right"},nativeOn:{click:function(t){e.percent=100}}})],o("q-btn",{staticClass:"no-padding splitter-actions",style:{color:e.controlsColor},attrs:{flat:"",round:"",size:"sm",id:"splitter-close",icon:"mdi-close"},nativeOn:{click:function(t){e.$emit("close-info")}}})],2):e._e(),o("div",e._g({staticClass:"vue-splitter",style:{cursor:e.cursor,flexDirection:e.flexDirection}},e.onlyOpenClose?{}:{mouseup:e.onUp,mousemove:e.onMouseMove,touchmove:e.onMove,touchend:e.onUp}),[o("div",{staticClass:"left-pane splitter-pane",style:e.leftPaneStyle},[e._t("left-pane")],2),e.hidden?e._e():[e.onlyOpenClose?e._e():o("div",e._g({staticClass:"splitter",class:{active:e.active},style:e.splitterStyle},e.onlyOpenClose?{}:{mousedown:e.onDown,touchstart:e.onDown})),o("div",{staticClass:"right-pane splitter-pane",style:e.rightPaneStyle},[e._t("right-pane")],2)]],2)])},Vt=[];Ut._withStripped=!0;var Gt={props:{margin:{type:Number,default:10},horizontal:{type:Boolean,default:!1},hidden:{type:String,default:""},splitterColor:{type:String,default:"rgba(0, 0, 0, 0.2)"},controlsColor:{type:String,default:"rgba(192, 192, 192)"},splitterSize:{type:Number,default:3},controllers:{type:Boolean,default:!0},onlyOpenClose:{type:Boolean,default:!0}},data:function(){return{active:!1,percent:"left"===this.hidden?0:"right"===this.hidden?100:this.onlyOpenClose?0:50,hasMoved:!1}},computed:{flexDirection:function(){return this.horizontal?"column":"row"},splitterStyle:function(){return this.horizontal?{height:"".concat(this.splitterSize,"px"),cursor:"ns-resize","background-color":this.splitterColor}:{width:"".concat(this.splitterSize,"px"),cursor:"ew-resize","background-color":this.splitterColor}},leftPaneStyle:function(){return this.horizontal?{height:"".concat(this.percent,"%")}:{width:"".concat(this.percent,"%")}},rightPaneStyle:function(){return this.horizontal?{height:"".concat(100-this.percent,"%")}:{width:"".concat(100-this.percent,"%")}},cursor:function(){return this.active?this.horizontal?"ns-resize":"ew-resize":""}},methods:{onDown:function(){this.active=!0,this.hasMoved=!1},onUp:function(){this.active=!1},onMove:function(e){var t=0,o=e.currentTarget,n=0;if(this.active){if(this.horizontal){while(o)t+=o.offsetTop,o=o.offsetParent;n=Math.floor((e.pageY-t)/e.currentTarget.offsetHeight*1e4)/100}else{while(o)t+=o.offsetLeft,o=o.offsetParent;n=Math.floor((e.pageX-t)/e.currentTarget.offsetWidth*1e4)/100}n>this.margin&&n<100-this.margin&&(this.percent=n),this.$emit("splitterresize"),this.hasMoved=!0}},onMouseMove:function(e){0!==e.buttons&&0!==e.which||(this.active=!1),this.onMove(e)}},watch:{hidden:function(){this.percent="left"===this.hidden?0:"right"===this.hidden?100:this.onlyOpenClose?0:50}}},Kt=Gt,$t=(o("1848"),Object(A["a"])(Kt,Ut,Vt,!1,null,null,null));$t.options.__file="KlabSplitter.vue";var Yt=$t.exports,Jt=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"kt-container relative-position klab-menu-component",class:{"kt-drag-enter":e.dragEnter>0&&!e.dragStart},on:{dragenter:e.onDragEnter,dragover:e.onDragOver,dragleave:e.onDragLeave,drop:e.onDrop}},[o("div",{staticClass:"kt-tree-container simplebar-vertical-only",on:{contextmenu:e.rightClickHandler}},[o("klab-q-tree",{ref:"klab-tree",attrs:{nodes:e.tree,"node-key":"id",ticked:e.ticked,selected:e.selected,expanded:e.expanded,"tick-strategy":"strict","text-color":"white","control-color":"white",color:"white",dark:!0,noNodesLabel:e.$t("label.noNodes"),"double-click-function":e.doubleClick,filter:e.isUser?"user":"tree",filterMethod:e.filterUser,noFilteredResultLabel:e.isUser?e.taskOfContextIsAlive?e.$t("messages.treeNoResultUserWaiting"):e.$t("messages.treeNoResultUser"):e.$t("messages.treeNoResultNoUser")},on:{"update:ticked":function(t){e.ticked=t},"update:selected":function(t){e.selected=t},"update:expanded":function(t){e.expanded=t},click:function(t){e.$refs["observations-context"].close()}},scopedSlots:e._u([{key:"header-default",fn:function(t){return o("div",{class:{"node-disabled":t.node.disabled&&!t.node.noTick}},[o("span",{directives:[{name:"ripple",rawName:"v-ripple",value:t.node.main,expression:"prop.node.main"}],staticClass:"node-element",class:[t.node.main?"node-emphasized":"",e.hasObservationInfo&&e.observationInfo.id===t.node.id?"node-selected":"",null!==e.cleanTopLayerId&&e.cleanTopLayerId===t.node.id?"node-on-top":"",e.checkObservationsOnTop(t.node.id)?"node-on-top":"",e.isUser?"node-user-element":"node-tree-element",t.node.needUpdate?"node-updatable":""],attrs:{draggable:t.node.parentId===e.contextId,id:"node-"+t.node.id},on:{dragstart:function(o){e.onDragStart(o,t.node.id)},dragend:e.onDragEnd}},[t.node.observationType===e.OBSERVATION_CONSTANTS.TYPE_PROCESS?o("q-icon",{staticClass:"node-no-tick",attrs:{name:"mdi-buddhism",size:"17px"}}):t.node.noTick?o("q-icon",{attrs:{name:"mdi-checkbox-blank-circle"}}):e._e(),e._v("\n "+e._s(t.node.label)+"\n "),t.node.dynamic?o("q-icon",{staticClass:"node-icon-time",class:{"animate-spin":t.node.loading},attrs:{name:"mdi-clock-outline",color:"mc-green"}}):o("q-icon",{staticClass:"node-icon-time node-loading-layer",class:{"animate-spin":t.node.loading},attrs:{name:"mdi-loading"}}),o("q-tooltip",{staticClass:"kt-q-tooltip",attrs:{delay:300,offset:[0,8],self:"bottom left",anchor:"top left"}},[e._v(e._s(e.clearObservable(t.node.observable)))])],1),t.node.childrenCount>0||t.node.children.length>0?[o("q-chip",{staticClass:"node-chip",class:{"node-substituible":!t.node.empty&&!t.node.noTick},attrs:{color:"white",small:"",dense:"","text-color":"grey-7"}},[e._v(e._s(t.node.childrenCount?t.node.childrenCount:t.node.children.length))])]:e._e(),t.node.empty||t.node.noTick?e._e():o("q-btn",{staticClass:"kt-upload",attrs:{round:"",flat:"",size:"sm",icon:"mdi-arrow-up",disable:""}},[o("q-tooltip",{staticClass:"kt-q-tooltip",attrs:{delay:300,offset:[0,8],self:"bottom left",anchor:"top left"}},[e._v(e._s(e.$t("tooltips.uploadData")))])],1),t.node.empty||t.node.noTick?e._e():o("q-btn",{staticClass:"kt-download",attrs:{round:"",flat:"",size:"sm",icon:"mdi-arrow-down"},nativeOn:{click:function(o){e.askForOutputFormat(o,t.node.id,t.node.exportFormats)}}}),"undefined"!==typeof t.node.idx?[o("q-chip",{staticClass:"node-chip transparent",style:{right:t.node.childrenCount>0?e.calculateRightPosition([t.node.childrenCount],"25px"):t.node.children.length>0?e.calculateRightPosition([t.node.children.length],"25px"):""},attrs:{small:"",dense:"","text-color":"grey-9"}},[e._v("\n "+e._s(e.$t("label.itemCounter",{loaded:t.node.idx+1,total:t.node.siblingsCount}))+"\n ")])]:e._e()],2)}},{key:"header-folder",fn:function(t){return o("div",{class:{"node-disabled":t.node.disabled&&!t.node.noTick}},[o("span",{directives:[{name:"ripple",rawName:"v-ripple",value:t.node.main,expression:"prop.node.main"}],staticClass:"node-element",class:[t.node.main?"node-emphasized":""],attrs:{draggable:t.node.parentId===e.contextId,id:"node-"+t.node.id},on:{dragstart:function(o){e.onDragStart(o,t.node.id)},dragend:e.onDragEnd}},[e._v(e._s(t.node.label))]),o("q-btn",{staticClass:"kt-upload",attrs:{round:"",flat:"",size:"sm",icon:"mdi-arrow-up"}}),o("q-btn",{staticClass:"kt-download",attrs:{round:"",flat:"",size:"sm",icon:"mdi-arrow-down"},nativeOn:{click:function(o){e.askForOutputFormat(o,t.node.id,t.node.exportFormats,!0)}}}),"undefined"!==typeof t.node.idx?[o("q-chip",{staticClass:"node-chip transparent",style:{right:t.node.childrenCount>0?e.calculateRightPosition([t.node.childrenCount],"25px"):t.node.children.length>0?e.calculateRightPosition([t.node.children.length],"25px"):""},attrs:{small:"",dense:"","text-color":"grey-9"}},[e._v("\n "+e._s(e.$t("label.itemCounter",{loaded:t.node.idx+1,total:t.node.siblingsCount}))+"\n ")])]:e._e(),o("q-chip",{staticClass:"node-chip",class:{"node-substituible":!t.node.empty&&!t.node.noTick},attrs:{color:"white",small:"",dense:"","text-color":"grey-7"}},[e._v(e._s(t.node.childrenCount?t.node.childrenCount:t.node.children.length))])],2)}},{key:"header-stub",fn:function(t){return o("div",{staticClass:"node-stub"},[o("span",{staticClass:"node-element node-stub"},[o("q-icon",{staticClass:"node-no-tick",attrs:{name:"mdi-checkbox-blank-circle"}}),e._v(e._s(e.$t("messages.loadingChildren"))+"\n ")],1)])}}])},[e._v("\n >\n ")])],1),o("observation-context-menu",{attrs:{"observation-id":e.contextMenuObservationId},on:{hide:function(t){e.contextMenuObservationId=null}}}),o("q-resize-observable",{on:{resize:function(t){e.$emit("resized")}}})],1)},Qt=[];Jt._withStripped=!0;o("f559"),o("6b54"),o("b54a");var Zt=o("e4f9"),eo=o("bffd"),to=o("b70a"),oo=o("525b"),no={name:"KlabQTree",extends:Zt["a"],props:{doubleClickTimeout:{type:Number,default:300},doubleClickFunction:{type:Function,default:null},noFilteredResultLabel:{type:String,default:null},checkClick:{type:Boolean,default:!0}},data:function(){return{lazy:{},innerTicked:this.ticked||[],innerExpanded:this.expanded||[],timeouts:[]}},methods:{__blur:function(){document.activeElement&&document.activeElement.blur()},__getNode:function(e,t){var o=this,n=t[this.nodeKey],i=this.meta[n],r=t.header&&this.$scopedSlots["header-".concat(t.header)]||this.$scopedSlots["default-header"],a=i.isParent?this.__getChildren(e,t.children):[],s=a.length>0||i.lazy&&"loaded"!==i.lazy,c=t.body&&this.$scopedSlots["body-".concat(t.body)]||this.$scopedSlots["default-body"],p=r||c?this.__getSlotScope(t,i,n):null;return c&&(c=e("div",{staticClass:"q-tree-node-body relative-position"},[e("div",{class:this.contentClass},[c(p)])])),e("div",{key:n,staticClass:"q-tree-node",class:{"q-tree-node-parent":s,"q-tree-node-child":!s}},[e("div",{staticClass:"q-tree-node-header relative-position row no-wrap items-center",class:{"q-tree-node-link":i.link,"q-tree-node-selected":i.selected,disabled:i.disabled},on:{click:function(e){o.checkClick?e&&e.srcElement&&-1!==e.srcElement.className.indexOf("node-element")&&o.__onClick(t,i):o.__onClick(t,i)}}},["loading"===i.lazy?e(to["a"],{staticClass:"q-tree-node-header-media q-mr-xs",props:{color:this.computedControlColor}}):s?e(Qe["a"],{staticClass:"q-tree-arrow q-mr-xs transition-generic",class:{"q-tree-arrow-rotate":i.expanded},props:{name:this.computedIcon},nativeOn:{click:function(e){o.__onExpandClick(t,i,e)}}}):null,e("span",{staticClass:"row no-wrap items-center",class:this.contentClass},[i.hasTicking&&!i.noTick?e(oo["a"],{staticClass:"q-mr-xs",props:{value:i.indeterminate?null:i.ticked,color:this.computedControlColor,dark:this.dark,keepColor:!0,disable:!i.tickable},on:{input:function(e){o.__onTickedClick(t,i,e)}}}):null,r?r(p):[this.__getNodeMedia(e,t),e("span",t[this.labelKey])]])]),s?e(eo["a"],{props:{duration:this.duration}},[e("div",{directives:[{name:"show",value:i.expanded}],staticClass:"q-tree-node-collapsible",class:"text-".concat(this.color)},[c,e("div",{staticClass:"q-tree-children",class:{disabled:i.disabled}},a)])]):c])},__onClick:function(e,t){var o=this;null===this.doubleClickFunction?this.__onClickDefault(e,t):"undefined"===typeof this.timeouts["id".concat(e.id)]||null===this.timeouts["id".concat(e.id)]?this.timeouts["id".concat(e.id)]=setTimeout(function(){o.timeouts["id".concat(e.id)]=null,o.__onClickDefault(e,t)},this.doubleClickTimeout):(clearTimeout(this.timeouts["id".concat(e.id)]),this.timeouts["id".concat(e.id)]=null,this.doubleClickFunction(e,t))},__onClickDefault:function(e,t){this.__blur(),this.hasSelection?t.selectable&&this.$emit("update:selected",t.key!==this.selected?t.key:null):this.__onExpandClick(e,t),"function"===typeof e.handler&&e.handler(e)}},render:function(e){var t=this.__getChildren(e,this.nodes),o=this.classes.indexOf("klab-no-nodes");return 0===t.length&&-1===o?this.classes.push("klab-no-nodes"):0!==t.length&&-1!==o&&this.classes.splice(o,1),e("div",{staticClass:"q-tree",class:this.classes},0===t.length?this.filter?this.noFilteredResultLabel:this.noNodesLabel||this.$t("messages.treeNoNodes"):t)}},io=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("q-context-menu",{directives:[{name:"show",rawName:"v-show",value:e.enableContextMenu,expression:"enableContextMenu"}],ref:"observations-context",on:{hide:e.hide}},[o("q-list",{staticStyle:{"min-width":"150px"},attrs:{dense:"","no-border":""}},[e._l(e.itemActions,function(t,n){return t.enabled?[t.separator&&0!==n?o("q-item-separator",{key:t.actionId}):e._e(),!t.separator&&t.enabled?o("q-item",{key:t.actionId,attrs:{link:""},nativeOn:{click:function(o){e.askForAction(t.actionId)}}},[o("q-item-main",{attrs:{label:t.actionLabel}})],1):e._e(),t.separator||t.enabled?e._e():o("q-item",{key:t.actionId,attrs:{disabled:""}},[o("q-item-main",{attrs:{label:t.actionLabel}})],1)]:e._e()})],2)],1)},ro=[];io._withStripped=!0;var ao={name:"ObservationContextMenu",props:{observationId:{type:String,default:null}},data:function(){return{enableContextMenu:!1,itemActions:[],itemObservation:null}},methods:a()({},Object(s["b"])("data",["setContext","loadContext","setContextMenuObservationId"]),{initContextMenu:function(){var e=this,t=this.$store.state.data.observations.find(function(t){return t.id===e.observationId});t?(this.resetContextMenu(!1),t&&t.actions&&t.actions.length>1?(this.itemActions=t.actions.slice(),this.itemObservation=t):this.resetContextMenu(),t.observationType!==c["z"].TYPE_STATE&&t.observationType!==c["z"].TYPE_GROUP&&(this.itemActions.push(c["A"].SEPARATOR_ITEM),this.itemActions.push(c["A"].RECONTEXTUALIZATION_ITEM),this.itemObservation=t),this.itemActions&&this.itemActions.length>0?this.enableContextMenu=this.itemActions&&this.itemActions.length>0:this.enableContextMenu=!1):this.resetContextMenu()},resetContextMenu:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.itemActions=[],this.itemObservation=null,e&&(this.enableContextMenu=!1)},hide:function(e){this.resetContextMenu(),this.$emit("hide",e)},askForAction:function(e){if(null!==this.itemObservation)switch(console.debug("Will ask for ".concat(e," of observation ").concat(this.itemObservation.id)),e){case"Recontextualization":this.sendStompMessage(p["a"].CONTEXTUALIZATION_REQUEST({contextId:this.itemObservation.id,parentContext:this.itemObservation.contextId},this.$store.state.data.session).body),this.loadContext(this.itemObservation.id);break;case"AddToCache":console.log("Ask for Add to cache, no action for now");break;default:break}this.enableContextMenu=!1}}),watch:{observationId:function(){null!==this.observationId?this.initContextMenu():this.resetContextMenu()}},mounted:function(){null!==this.observationId&&this.initContextMenu()}},so=ao,co=(o("ad0b"),Object(A["a"])(so,io,ro,!1,null,null,null));co.options.__file="ObservationContextMenu.vue";var po=co.exports,lo=null,uo={name:"klabTree",components:{KlabQTree:no,ObservationContextMenu:po},props:{isUser:{type:Boolean,required:!0},tree:{type:Array,required:!0}},data:function(){return{ticked:[],selected:null,expanded:[],itemObservationId:null,askingForChildren:!1,scrollElement:null,showPopover:null,dragStart:!1,dragEnter:0,watchedObservation:[],contextMenuObservationId:null,OBSERVATION_CONSTANTS:c["z"]}},computed:a()({},Object(s["c"])("data",["treeNode","lasts","contextReloaded","contextId","observations","timeEventsOfObservation","timestamp","observationsIdOnTop"]),Object(s["c"])("stomp",["tasks","taskOfContextIsAlive"]),Object(s["c"])("view",["observationInfo","hasObservationInfo","topLayerId"]),Object(s["d"])("view",["treeSelected","treeTicked","treeExpanded","showNotified"]),{cleanTopLayerId:function(){return this.topLayerId?this.topLayerId.substr(0,this.topLayerId.indexOf("T")):null}}),methods:a()({checkObservationsOnTop:function(e){return this.observationsIdOnTop.length>0&&this.observationsIdOnTop.includes(e)},copyToClipboard:He["b"]},Object(s["b"])("data",["setVisibility","selectNode","askForChildren","addChildrenToTree","setContext","changeTreeOfNode","setTimestamp"]),Object(s["b"])("view",["setSpinner","setMainDataViewer"]),{filterUser:function(e,t){return e.userNode?"user"===t:"tree"===t},rightClickHandler:function(e){e.preventDefault();var t=null;if(e.target.className.includes("node-element"))t=e.target;else{var o=e.target.getElementsByClassName("node-element");if(1===o.length){var n=Fe()(o,1);t=n[0]}}this.contextMenuObservationId=null!==t?t.id.substring(5):null},clearObservable:function(e){return 0===e.indexOf("(")&&e.lastIndexOf(")")===e.length-1?e.substring(1,e.length-1):e},askForOutputFormat:function(e,t,o){var n=this;null!==o&&o.length>0?(e.stopPropagation(),this.$q.dialog({title:this.$t("label.titleOutputFormat"),message:this.$t("label.askForOuputFormat"),options:{type:"radio",model:o[0].value,items:o},cancel:!0,preventClose:!1,color:"info"}).then(function(e){n.askDownload(t,e,o)}).catch(function(){})):this.$q.notify({message:"No available formats",type:"warning",icon:"mdi-alert",timeout:200})},askDownload:function(e,t,o,n){if("undefined"===typeof n){var i="";if(-1!==this.timestamp){var r=new Date(this.timestamp);i="_".concat(r.getFullYear()).concat(r.getMonth()<9?"0":"").concat(r.getMonth()+1).concat(r.getDate()<10?"0":"").concat(r.getDate(),"_").concat(r.getHours()<10?"0":"").concat(r.getHours()).concat(r.getMinutes()<10?"0":"").concat(r.getMinutes()).concat(r.getSeconds()<10?"0":"").concat(r.getSeconds())}n="".concat(e).concat(i)}var a=o.find(function(e){return e.value===t});Object(Ue["b"])(e,"RAW",n,a,this.timestamp)},changeNodeState:function(e){var t=e.nodeId,o=e.state;"undefined"!==typeof this.$refs["klab-tree"]&&this.$refs["klab-tree"].setTicked([t],o)},doubleClick:function(){var e=j()(regeneratorRuntime.mark(function e(t,o){var n,i;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(!t.isContainer){e.next=4;break}null!==t.viewerIdx&&this.setMainDataViewer({viewerIdx:t.viewerIdx,visible:t.visible}),e.next=14;break;case 4:if(t.observationType!==c["z"].TYPE_STATE){e.next=8;break}this.fitMap(t,o),e.next=14;break;case 8:if(n=this.observations.find(function(e){return e.id===t.id}),!n||null===n){e.next=14;break}return e.next=12,Object(Ue["j"])(n);case 12:i=e.sent,this.fitMap(t,o,i);case 14:case"end":return e.stop()}},e,this)}));return function(t,o){return e.apply(this,arguments)}}(),fitMap:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.$eventBus.$emit(c["h"].NEED_FIT_MAP,{geometry:o}),e&&t&&t.ticked&&this.setVisibility({node:e,visible:!0})},updateFolderListener:function(e){if(e&&e.folderId){var t=Object(Ue["f"])(this.tree,e.folderId);t&&null!==t&&(e.visible?this.$refs["klab-tree"].setTicked(t.children.map(function(e){return e.id}),!0):this.$refs["klab-tree"].setTicked(this.ticked.filter(function(e){return-1===t.children.findIndex(function(t){return t.id===e})}),!1))}},selectElementListener:function(e){var t=this,o=e.id,n=e.selected;this.$nextTick(function(){var e=Object(Ue["f"])(t.tree,o);e&&(t.setVisibility({node:e,visible:n}),n?t.ticked.push(o):t.ticked.splice(t.ticked.findIndex(function(e){return e===o}),1))})},treeSizeChangeListener:function(){var e=this;this.isUser||(null!=lo&&(clearTimeout(this.scrollToTimeout),lo=null),this.$nextTick(function(){lo=setTimeout(function(){e.scrollElement.scrollTop=e.scrollElement.scrollHeight},1e3)}))},calculateRightPosition:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=e.reduce(function(e,t){return e+t.toString().length},0),n=""!==t?" + ".concat(t):"";return"calc(".concat(o,"ch").concat(n,")")},onDragStart:function(e,t){e.dataTransfer.setData("id",t),this.dragStart=!0},onDragEnd:function(){this.dragStart=!1},onDragEnter:function(e){e.preventDefault(),this.dragStart||(this.dragEnter+=1)},onDragLeave:function(e){e.preventDefault(),this.dragStart||(this.dragEnter-=1)},onDragOver:function(e){e.preventDefault()},onDrop:function(e){if(e.preventDefault(),this.dragEnter>0){var t=e.dataTransfer.getData("id");t&&""!==t?this.changeTreeOfNode({id:t,isUserTree:this.isUser}):console.warn("Strange dropped node ".concat(e.dataTransfer.getData("id")))}else console.debug("Self dropped");this.dragStart=!1,this.dragEnter=0}}),watch:{tree:function(){this.treeSizeChangeListener()},treeSelected:function(e){e!==this.selected&&(this.selected=e)},expanded:function(e,t){if(this.$store.state.view.treeExpanded=e,t.length!==e.length){if(t.length>e.length){var o=t.filter(function(t){return e.indexOf(t)<0})[0],n=Object(Ue["f"])(this.tree,o);return this.sendStompMessage(p["a"].WATCH_REQUEST({active:!1,observationId:o,rootContextId:n.rootContextId},this.$store.state.data.session).body),this.watchedObservation.splice(this.watchedObservation.findIndex(function(e){return e.observationId===o}),1),void console.info("Stop watching observation ".concat(o," with rootContextId ").concat(n.rootContextId))}var i=e[e.length-1],r=Object(Ue["f"])(this.tree,i);r&&(this.sendStompMessage(p["a"].WATCH_REQUEST({active:!0,observationId:i,rootContextId:r.rootContextId},this.$store.state.data.session).body),this.watchedObservation.push({observationId:i,rootContextId:r.rootContextId}),console.info("Start watching observation ".concat(i," with rootContextId ").concat(r.rootContextId)),r.children.length>0&&r.children[0].id.startsWith("STUB")&&(r.children.splice(0,1),r.children.length0?(this.addChildrenToTree({parent:r}),this.$eventBus.$emit(c["h"].UPDATE_FOLDER,{folderId:r.id,visible:"undefined"!==typeof r.ticked&&r.ticked})):0===r.children.length&&this.askForChildren({parentId:r.id,offset:0,count:this.childrenToAskFor,total:r.childrenCount,visible:"undefined"!==typeof r.ticked&&(!!r.isContainer&&r.ticked)})))}},selected:function(e){null!==e?0===e.indexOf("ff_")?this.selected=null:this.selectNode(e):this.selectNode(null)},ticked:function(e,t){var o=this;if(this.$store.state.view.treeTicked=e,t.length!==e.length)if(t.length>e.length){var n=t.filter(function(t){return e.indexOf(t)<0})[0];if(n.startsWith("STUB"))return;var i=Object(Ue["f"])(this.tree,n);i&&(this.setVisibility({node:i,visible:!1}),i.isContainer&&(this.ticked=this.ticked.filter(function(e){return-1===i.children.findIndex(function(t){return t.id===e})})))}else{var r=e[e.length-1];if(r.startsWith("STUB"))return;var a=Object(Ue["f"])(this.tree,r);if(null!==a)if(a.isContainer){var s=function(){var e;o.setVisibility({node:a,visible:!0}),(e=o.ticked).push.apply(e,I()(a.children.filter(function(e){return e.parentArtifactId===a.id}).map(function(e){return e.id})))};this.askingForChildren||(a.childrenLoaded We are asking for tree now, this call is not need so exit");if(0===e.lasts.length)return t.preventDefault(),void console.debug("KlabTree -> There aren't incompleted folders, exit");var o=e.scrollElement.getBoundingClientRect(),n=o.bottom;e.lasts.forEach(function(t){var o=document.getElementById("node-".concat(t.observationId));if(null!==o){var i=o.getBoundingClientRect();if(0!==i.bottom&&i.bottom Asked for them"),e.$eventBus.$emit(c["h"].UPDATE_FOLDER,{folderId:t.folderId,visible:"undefined"!==typeof r.ticked&&r.ticked})})}}})}),this.$eventBus.$on(c["h"].UPDATE_FOLDER,this.updateFolderListener),this.$eventBus.$on(c["h"].SELECT_ELEMENT,this.selectElementListener),this.selected=this.treeSelected,this.ticked=this.treeTicked,this.expanded=this.treeExpanded},beforeDestroy:function(){var e=this;this.$eventBus.$off(c["h"].UPDATE_FOLDER,this.updateFolderListener),this.$eventBus.$off(c["h"].SELECT_ELEMENT,this.selectElementListener),this.watchedObservation.length>0&&this.watchedObservation.forEach(function(t){e.sendStompMessage(p["a"].WATCH_REQUEST({active:!1,observationId:t.observationId,rootContextId:t.rootContextId},e.$store.state.data.session).body),console.info("Stop watching observation ".concat(t.observationId," with rootContextId ").concat(t.rootContextId))})}},bo=uo,Mo=(o("5b35"),Object(A["a"])(bo,Jt,Qt,!1,null,null,null));Mo.options.__file="KlabTree.vue";var ho=Mo.exports,fo=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"relative-position klab-menu-component",attrs:{id:"oi-container"}},[o("div",{attrs:{id:"oi-controls"}},[o("div",{staticClass:"oi-control oi-text",attrs:{id:"oi-visualize"}},[o("q-checkbox",{attrs:{"keep-color":!0,color:"mc-yellow",readonly:1===e.observationInfo.valueCount||e.observationInfo.empty,disabled:1===e.observationInfo.valueCount||e.observationInfo.empty},nativeOn:{click:function(t){return e.showNode(t)}},model:{value:e.layerShow,callback:function(t){e.layerShow=t},expression:"layerShow"}})],1),o("div",{staticClass:"oi-control oi-text",attrs:{id:"oi-name"}},[o("span",[e._v(e._s(e.observationInfo.label))])]),e.hasSlider?o("div",{staticClass:"oi-control",attrs:{id:"oi-slider"}},[o("q-slider",{attrs:{min:0,max:1,step:.1,decimals:1,color:"mc-yellow",label:!1},model:{value:e.observationInfo.layerOpacity,callback:function(t){e.$set(e.observationInfo,"layerOpacity",t)},expression:"observationInfo.layerOpacity"}})],1):e._e()]),o("div",{class:e.getContainerClasses(),attrs:{id:"oi-metadata-map-wrapper"}},[o("div",{class:[this.exploreMode?"with-mapinfo":""],attrs:{id:"oi-scroll-container"}},[o("div",{attrs:{id:"oi-scroll-metadata-container"}},e._l(e.observationInfo.metadata,function(t,n){return o("div",{key:n,attrs:{id:"oi-metadata"}},[o("div",{staticClass:"oi-metadata-name oi-text"},[e._v(e._s(n))]),o("div",{staticClass:"oi-metadata-value",on:{dblclick:function(o){e.copyToClipboard(t)}}},[e._v(e._s(t))])])}))]),o("div",{directives:[{name:"show",rawName:"v-show",value:e.hasMapInfo,expression:"hasMapInfo"}],attrs:{id:"oi-mapinfo-container"},on:{mouseenter:function(t){e.setInfoShowed({index:0,categories:[],values:[e.mapSelection.value]})},mouseleave:function(t){e.setInfoShowed(null)}}},[o("div",{attrs:{id:"oi-mapinfo-map"}}),o("div",{staticClass:"oi-pixel-indicator",attrs:{id:"oi-pixel-h"}}),o("div",{staticClass:"oi-pixel-indicator",attrs:{id:"oi-pixel-v"}})])]),o("histogram-viewer",{attrs:{dataSummary:e.observationInfo.dataSummary,colormap:e.observationInfo.colormap}})],1)},zo=[];fo._withStripped=!0;var Oo=o("e00b"),Ao=o("5eee"),mo=o("a2c7"),vo={name:"ObservationInfo",components:{HistogramViewer:Oo["a"]},mixins:[Rt["a"]],data:function(){return{scrollBar:void 0,layerShow:!1,infoShowed:{index:-1,categories:[],values:[]},infoMap:null}},computed:a()({},Object(s["c"])("view",["observationInfo","mapSelection","exploreMode","viewer"]),{hasSlider:function(){return this.observationInfo.visible&&null!==this.observationInfo.viewerIdx&&this.viewer(this.observationInfo.viewerIdx).type.component===c["O"].VIEW_MAP.component},hasMapInfo:function(){return this.exploreMode&&null!==this.mapSelection.pixelSelected&&this.mapSelection.layerSelected.get("id").startsWith("cl_".concat(this.observationInfo.id))}}),methods:{copyToClipboard:function(e){Object(He["b"])(e),this.$q.notify({message:this.$t("messages.copiedToClipboard"),type:"info",icon:"mdi-information",timeout:1e3})},getContainerClasses:function(){var e=[];return null!==this.observationInfo.dataSummary&&e.push("k-with-histogram"),e},showNode:function(){this.$emit(c["h"].SHOW_NODE,{nodeId:this.observationInfo.id,state:this.layerShow})},viewerClosedListener:function(e){var t=e.idx;t===this.observationInfo.viewerIdx&&(this.layerShow=!1)},setInfoShowed:function(e){this.$eventBus.$emit(c["h"].SHOW_DATA_INFO,e)}},watch:{mapSelection:function(){var e=this;if(null!==this.mapSelection.layerSelected){var t=this.infoMap.getLayers().getArray();null!==this.mapSelection.pixelSelected?(t.length>1&&this.infoMap.removeLayer(t[1]),this.infoMap.addLayer(this.mapSelection.layerSelected),this.infoMap.getView().setCenter(this.mapSelection.pixelSelected),this.infoMap.getView().setZoom(14),this.$nextTick(function(){e.infoMap.updateSize()}),this.$eventBus.$emit(c["h"].SHOW_DATA_INFO,{index:0,categories:[],values:[this.mapSelection.value]})):t.length>1&&this.infoMap.removeLayer(t[1])}}},mounted:function(){this.scrollBar=new Ae(document.getElementById("oi-scroll-container")),this.infoMap=new Ao["a"]({view:new mo["a"]({center:[0,0],zoom:12}),target:"oi-mapinfo-map",layers:[wt["c"].EMPTY_LAYER],controls:[],interactions:[]}),this.layerShow=this.observationInfo.visible,this.$eventBus.$on(c["h"].VIEWER_CLOSED,this.viewerClosedListener)},beforeDestroy:function(){this.$eventBus.$on(c["h"].VIEWER_CLOSED,this.viewerClosedListener)}},go=vo,yo=(o("db0a"),Object(A["a"])(go,fo,zo,!1,null,null,null));yo.options.__file="ObservationInfo.vue";var qo=yo.exports,_o=K["b"].height,Wo={name:"klabTreeContainer",components:{KlabSplitter:Yt,KlabTree:ho,ObservationInfo:qo},data:function(){return{outContainerHeight:void 0,userTreeMaxHeight:void 0,userTreeHeight:void 0,treeHeight:void 0,detailsOpen:!1}},computed:a()({},Object(s["c"])("data",["tree","userTree","treeNode","hasTree","mainTreeHasNodes","hasContext"]),Object(s["c"])("stomp",["taskOfContextIsAlive"]),Object(s["c"])("view",["hasObservationInfo","isDocked"])),methods:a()({},Object(s["b"])("view",["setObservationInfo"]),{onCloseInfo:function(){this.setObservationInfo(null),this.$eventBus.$emit(c["h"].OBSERVATION_INFO_CLOSED)},informTree:function(e){var t=e.nodeId,o=e.state,n=this.treeNode(t);n&&(this.$refs["kt-tree"]&&this.$refs["kt-tree"].changeNodeState({nodeId:t,state:o}),n.userNode&&this.$refs["kt-user-tree"]&&this.$refs["kt-user-tree"].changeNodeState({nodeId:t,state:o}))},showNodeListener:function(e){this.informTree(e)},outContainerResized:function(){this.isDocked?this.outContainerHeight=_o(document.getElementById("dmc-tree"))+24:this.$refs["kt-out-container"]&&(this.outContainerHeight=Number.parseFloat(window.getComputedStyle(this.$refs["kt-out-container"],null).getPropertyValue("max-height"))),this.recalculateTreeHeight()},recalculateTreeHeight:function(){var e=this;this.$nextTick(function(){e.userTreeMaxHeight=e.mainTreeHasNodes()?e.outContainerHeight/2:e.outContainerHeight;var t=document.getElementById("kt-user-tree");t&&e.outContainerHeight&&(e.userTreeHeight=_o(t),e.treeHeight=e.outContainerHeight-e.userTreeHeight)})},initTree:function(){var e=this;this.hasTree&&this.$nextTick(function(){e.outContainerResized(),document.getElementById("kt-tree-details").addEventListener("toggle",function(t){e.detailsOpen=t.srcElement.open,e.recalculateTreeHeight()})})}}),watch:{userTree:function(){this.recalculateTreeHeight()},tree:function(){this.recalculateTreeHeight()},hasTree:function(){this.initTree()},taskOfContextIsAlive:function(){this.detailsOpen=this.taskOfContextIsAlive}},mounted:function(){this.$eventBus.$on(c["h"].SHOW_NODE,this.showNodeListener),window.addEventListener("resize",this.outContainerResized),this.initTree()},beforeDestroy:function(){this.$eventBus.$off(c["h"].SHOW_NODE,this.showNodeListener),window.removeEventListener("resize",this.outContainerResized)}},Ro=Wo,wo=(o("a663"),Object(A["a"])(Ro,Ft,Ht,!1,null,null,null));wo.options.__file="KlabTreePane.vue";var Lo=wo.exports,Co=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"ot-wrapper",class:{"ot-no-timestamp":0===e.timeEvents.length||-1===e.timestamp}},[o("div",{staticClass:"ot-container",class:{"ot-active-timeline":e.isVisible,"ot-docked":e.isMainControlDocked}},[o("div",{directives:[{name:"show",rawName:"v-show",value:e.isVisible,expression:"isVisible"}],staticClass:"ot-player"},[o("q-icon",{class:{"cursor-pointer":e.timestamp0},on:{click:function(t){if(t.target!==t.currentTarget)return null;e.onClick(t,function(){e.changeTimestamp(e.scaleReference.start)})},dblclick:function(t){e.onDblClick(t,function(){e.changeTimestamp(-1)})}}},[-1===e.timestamp?o("q-icon",{staticClass:"ot-time-origin",class:{"ot-time-origin-loaded":e.timeEvents.length},attrs:{name:"mdi-circle-medium",color:"mc-main"}}):e._e(),0!==e.timeEvents.length?o("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"},domProps:{innerHTML:e._s(e.formatDate(e.scaleReference.start))}}):e._e()],1),o("div",{directives:[{name:"show",rawName:"v-show",value:!e.isVisible,expression:"!isVisible"}],staticClass:"ot-date-text"},[e._v(e._s(e.startDate))])]),o("div",{ref:"ot-timeline-container",staticClass:"ot-timeline-container col",class:{"ot-timeline-with-time":-1!==e.timestamp}},[o("div",{ref:"ot-timeline",staticClass:"ot-timeline",class:{"ot-with-modifications":0!==e.timeEvents.length&&e.isVisible},on:{mousemove:e.moveOnTimeline,mouseenter:function(t){e.timelineActivated=!0},mouseleave:function(t){e.timelineActivated=!1},click:function(t){e.changeTimestamp(e.getDateFromPosition(t))}}},[o("div",{directives:[{name:"show",rawName:"v-show",value:e.isVisible,expression:"isVisible"}],staticClass:"ot-timeline-viewer"}),e._l(e.visibleEvents,function(t){return o("div",{key:t.id+"-"+t.timestamp,staticClass:"ot-modification-container",style:{left:"calc("+e.calculatePosition(t.timestamp)+"px - 1px)"}},[o("div",{staticClass:"ot-modification"})])}),o("div",{staticClass:"ot-loaded-time",style:{width:e.engineTimestamp>0?"calc("+e.calculatePosition(e.engineTimestamp)+"px + 4px)":0}}),-1!==e.timestamp?o("div",{staticClass:"ot-actual-time",style:{left:"calc("+e.calculatePosition(e.visibleTimestamp)+"px + "+(e.timestamp===e.scaleReference.end?"0":"1")+"px)"}}):e._e(),0!==e.timeEvents.length?o("q-tooltip",{staticClass:"ot-date-tooltip",attrs:{offset:[0,15],self:"top middle",anchor:"bottom middle",delay:300},domProps:{innerHTML:e._s(e.timelineDate)}}):e._e()],2)]),o("div",{staticClass:"ot-date-container"},[o("div",{staticClass:"ot-date ot-date-end col",class:{"ot-with-modifications":0!==e.timeEvents.length&&e.isVisible,"ot-date-loaded":e.engineTimestamp===e.scaleReference.end},on:{click:function(t){if(t.target!==t.currentTarget)return null;e.changeTimestamp(e.scaleReference.end)}}},[0!==e.timeEvents.length?o("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"},domProps:{innerHTML:e._s(e.formatDate(e.scaleReference.end))}}):e._e()],1),o("div",{directives:[{name:"show",rawName:"v-show",value:!e.isVisible,expression:"!isVisible"}],staticClass:"ot-date-text"},[e._v(e._s(e.endDate))])])])]),e.isMainControlDocked?o("observation-time"):e._e()],1)},So=[];Co._withStripped=!0;var Eo=o("b8c1"),To=function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.timeEvents.length>0?o("transition",{attrs:{name:"fade"}},[o("div",{staticClass:"otv-now",class:{"otv-novisible":-1===e.timestamp,"otv-docked":e.isMainControlDocked,"otv-running":e.isTimeRunning},domProps:{innerHTML:e._s(e.formattedTimestamp)}})]):e._e()},xo=[];To._withStripped=!0;var No={name:"ObservationTime",data:function(){return{formattedTimestamp:void 0}},computed:a()({},Object(s["c"])("data",["timestamp","timeEvents"]),Object(s["c"])("view",["isMainControlDocked","isTimeRunning"])),methods:{formatTimestamp:function(){if(-1===this.timestamp)this.formattedTimestamp=this.$t("label.noTimeSet");else{var e=mt()(this.timestamp);this.formattedTimestamp="".concat(e.format("L")," ").concat(e.format("HH:mm:ss:SSS"))}}},watch:{timestamp:function(){this.formatTimestamp()}},created:function(){this.formatTimestamp()}},Bo=No,ko=(o("8622"),Object(A["a"])(Bo,To,xo,!1,null,null,null));ko.options.__file="ObservationTime.vue";var Po=ko.exports,Do={name:"ObservationsTimeline",components:{ObservationTime:Po},mixins:[Eo["a"]],data:function(){var e=this;return{timelineActivated:!1,moveOnTimelineFunction:Object(qe["a"])(function(t){e.timelineActivated&&(e.timelineDate=e.formatDate(e.getDateFromPosition(t)))},300),timelineDate:null,timelineContainer:void 0,timelineLeft:void 0,visibleTimestamp:-1,playTimer:null,interval:void 0,speedMultiplier:1,selectSpeed:!1,pressTimer:null,longPress:!1}},computed:a()({},Object(s["c"])("data",["scaleReference","schedulingResolution","timeEvents","timestamp","modificationsTask","hasContext","visibleEvents","engineTimestamp"]),Object(s["c"])("stomp",["tasks"]),Object(s["c"])("view",["isMainControlDocked"]),{startDate:function(){return null!==this.scaleReference?this.formatDate(this.scaleReference.start,!0):""},endDate:function(){return null!==this.scaleReference?this.formatDate(this.scaleReference.end,!0):""},isVisible:function(){return this.visibleEvents.length>0}}),methods:a()({},Object(s["b"])("data",["setTimestamp","setModificationsTask"]),Object(s["b"])("view",["setTimeRunning"]),{formatDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null===e)return"";var n=mt()(e);return t?n.format("DD MMM YYYY"):'
'.concat(n.format("L")).concat(o?" - ":"
").concat(n.format("HH:mm:ss:SSS"),"
")},calculatePosition:function(e){if(this.timelineContainer||(this.timelineContainer=this.$refs["ot-timeline-container"]),!this.timelineContainer)return 0;var t=Math.floor((e-this.scaleReference.start)*this.timelineContainer.clientWidth/(this.scaleReference.end-this.scaleReference.start));return t},moveOnTimeline:function(e){this.moveOnTimelineFunction(e)},getDateFromPosition:function(e){if(this.timelineContainer||(this.timelineContainer=this.$refs["ot-timeline-container"]),!this.timelineContainer)return 0;var t=this.timelineContainer.clientWidth,o=e.clientX-this.timelineContainer.getBoundingClientRect().left,n=this.scaleReference.start+o*(this.scaleReference.end-this.scaleReference.start)/t;return n>this.scaleReference.end?n=this.scaleReference.end:nthis.scaleReference.end?(this.visibleTimestamp=this.scaleReference.end,this.setTimestamp(this.scaleReference.end)):(this.visibleTimestamp=e,this.setTimestamp(e)))},stop:function(){clearInterval(this.playTimer),this.playTimer=null},run:function(){var e=this;if(null!==this.playTimer)this.stop();else{this.interval||this.calculateInterval(),-1===this.timestamp&&this.changeTimestamp(this.scaleReference.start);var t={start:this.timestamp,stop:this.timestamp+this.interval.buffer};this.playTimer=setInterval(function(){e.changeTimestamp(Math.floor(e.timestamp+e.interval.step)),e.$nextTick(function(){e.timestamp>=e.scaleReference.end?e.stop():e.timestamp>t.stop-e.interval.step&&e.timestamp<=e.scaleReference.end&&(t={start:e.timestamp,stop:e.timestamp+e.interval.buffer},e.$eventBus.$emit(c["h"].NEED_LAYER_BUFFER,t))})},this.interval.interval),this.$eventBus.$emit(c["h"].NEED_LAYER_BUFFER,t)}},calculateInterval:function(){if(this.scaleReference&&this.schedulingResolution){var e=1,t=this.calculatePosition(this.scaleReference.start+this.schedulingResolution);t>1&&(e=t);var o=(this.schedulingResolution||c["M"].DEFAULT_STEP)/e,n=(this.scaleReference.end-this.scaleReference.start)/o,i=Math.max(document.body.clientHeight,document.body.clientWidth),r=(this.scaleReference.end-this.scaleReference.start)/4,a=i/e;a*nc["M"].MAX_PLAY_TIME&&(a=c["M"].MAX_PLAY_TIME/n),a/=this.speedMultiplier,this.interval={step:o,steps:n,interval:a,buffer:r,multiplier:this.speedMultiplier},console.info("Step: ".concat(this.interval.step,"; Steps: ").concat(this.interval.steps,"; Interval: ").concat(this.interval.interval,"; Buffer: ").concat(this.interval.buffer))}},startPress:function(){var e=this;this.longPress=!1,this.pressTimer?(clearInterval(this.pressTimer),this.pressTimer=null):this.pressTimer=setTimeout(function(){e.selectSpeed=!0,e.longPress=!0},600)},stopPress:function(){clearInterval(this.pressTimer),this.pressTimer=null,!this.longPress&&this.timestamp0&&this.modificationsTask){var o=e.find(function(e){return e.id===t.modificationsTask.id});o&&!o.alive&&this.setModificationsTask(null)}},visibleEvents:function(){0===this.visibleEvents.length&&null!==this.playTimer&&this.stop()},timestamp:function(e,t){!this.isMainControlDocked||-1!==e&&-1!==t||(this.timelineContainer=void 0)},playTimer:function(){this.setTimeRunning(null!==this.playTimer)}},mounted:function(){this.timelineDate=this.startTime,this.visibleTimestamp=this.timestamp,mt.a.locale(window.navigator.userLanguage||window.navigator.language),this.$eventBus.$on(c["h"].NEW_SCHEDULING,this.calculateInterval)},beforeDestroy:function(){this.$eventBus.$off(c["h"].NEW_SCHEDULING,this.calculateInterval)},destroyed:function(){this.stop()}},Io=Do,Xo=(o("31da"),Object(A["a"])(Io,Co,So,!1,null,null,null));Xo.options.__file="ObservationsTimeline.vue";var jo,Fo=Xo.exports,Ho=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"klab-menu-component kp-container",attrs:{id:"klab-log-pane"}},[o("div",{staticClass:"klp-level-selector"},[o("ul",e._l(e.LOG_ICONS,function(t,n,i){return o("li",{key:i,class:{"klp-selected":e.hasLevel(n)}},[o("q-btn",{staticClass:"klp-chip",attrs:{dense:"",size:"sm",icon:t.icon,color:t.color},on:{click:function(t){e.toggleLevel(n)}}},[o("q-tooltip",{attrs:{delay:600,offset:[0,5]}},[e._v(e._s(e.$t(t.i18nlabel)))])],1)],1)}))]),o("q-list",{staticClass:"no-padding no-border",attrs:{dense:"",dark:"",id:"log-container"}},[0!==e.logs.length?e._l(e.logs,function(t,n){return o("q-item",{key:n,staticClass:"log-item q-pa-xs"},[e.isSeparator(t)?[o("q-item-main",{staticClass:"klp-separator"},[o("span",[e._v(e._s(e.$t("label.contextReset")))])])]:[o("q-item-side",[o("q-item-tile",{staticStyle:{"font-size":"18px"},attrs:{icon:e.logColorAndIcon(t).icon,color:e.logColorAndIcon(t).color}})],1),o("q-item-main",[o("q-item-tile",[e._v(e._s(e.logText(t)))])],1)]],2)}):[o("q-item",{staticClass:"log-item log-no-items q-pa-xs"},[o("q-item-side",[o("q-item-tile",{staticStyle:{"font-size":"18px"},attrs:{icon:0===e.levels.length?"mdi-alert-outline":"mdi-information-outline"}})],1),o("q-item-main",[o("q-item-tile",[e._v(e._s(0===e.levels.length?e.$t("messages.noLevelSelected"):e.$t("messages.noLogItems")))])],1)],1)]],2)],1)},Uo=[];Ho._withStripped=!0;var Vo=(jo={},d()(jo,L["a"].TYPE_ERROR,{i18nlabel:"label.levelError",icon:"mdi-close-circle",color:"negative"}),d()(jo,L["a"].TYPE_WARNING,{i18nlabel:"label.levelWarning",icon:"mdi-alert",color:"warning"}),d()(jo,L["a"].TYPE_INFO,{i18nlabel:"label.levelInfo",icon:"mdi-information",color:"info"}),d()(jo,L["a"].TYPE_DEBUG,{i18nlabel:"label.levelDebug",icon:"mdi-console-line",color:"grey-6"}),d()(jo,L["a"].TYPE_ENGINEEVENT,{i18nlabel:"label.levelEngineEvent",icon:"mdi-cog-outline",color:"secondary"}),jo),Go={name:"KLabLogPane",data:function(){return{scrollBar:null,log:null,LOG_ICONS:Vo}},computed:a()({},Object(s["c"])("view",["klabLogReversedAndFiltered","levels"]),{logs:function(){return 0===this.levels.length?[]:this.klabLogReversedAndFiltered(5===this.levels.length?[]:this.levels)}}),methods:a()({},Object(s["b"])("view",["setLevels","toggleLevel"]),{logText:function(e){if(e&&e.payload){if(e.type===L["a"].TYPE_ENGINEEVENT){var t=e.time;return e.payload.timestamp&&(t=mt()(e.payload.timestamp)),"".concat(t.format("HH:mm:ss"),": ").concat(this.$t("engineEventLabels.evt".concat(e.payload.type))," ").concat(e.payload.started?"started":"stopped")}return"".concat(e.time?e.time.format("HH:mm:ss"):this.$t("messages.noTime"),": ").concat(e.payload)}return this.$t("label.klabNoMessage")},logColorAndIcon:function(e){var t=Vo[e.type];return t?Vo[e.type]:(console.warn("Log type: ".concat(e.type),e),Vo.Error)},isSeparator:function(e){return e&&e.payload&&e.payload.separator},hasLevel:function(e){return-1!==this.levels.indexOf(e)}}),mounted:function(){this.scrollBar=new Ae(document.getElementById("klab-log-pane"))}},Ko=Go,$o=(o("f58f"),Object(A["a"])(Ko,Ho,Uo,!1,null,null,null));$o.options.__file="KlabLogPane.vue";var Yo=$o.exports,Jo=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"sb-scales"},[e.hasNextScale()?o("div",{staticClass:"klab-button klab-action klab-mdi-next-scale"},[o("q-icon",{attrs:{name:"mdi-refresh",color:"mc-yellow"},nativeOn:{click:function(t){return e.rescaleContext(t)}}},[o("q-tooltip",{attrs:{delay:600,anchor:e.anchorType,self:e.selfType,offset:e.offsets}},[e._v(e._s(e.$t("tooltips.refreshScale")))])],1)],1):e._e(),o("div",{staticClass:"klab-button klab-action",class:[{active:e.showSpaceScalePopup}],on:{mouseover:function(t){e.toggleScalePopup("space",!0)},mouseleave:function(t){e.toggleScalePopup("space",!1)},click:function(t){e.scaleEditing={active:!0,type:e.SCALE_TYPE.ST_SPACE}}}},[o("q-icon",{class:{"klab-mdi-next-scale":e.hasNextScale(e.SCALE_TYPE.ST_SPACE)},attrs:{name:"mdi-earth"}},[o("q-popover",{attrs:{"anchor-click":!1,anchor:e.anchorType,self:e.selfType,offset:e.offsets},model:{value:e.showSpaceScalePopup,callback:function(t){e.showSpaceScalePopup=t},expression:"showSpaceScalePopup"}},[o("div",{staticClass:"mc-scalereference",attrs:{id:"mc-spacereference"}},[o("scale-reference",{attrs:{width:e.spaceWidth?e.spaceWidth:e.scaleWidth,"scale-type":"space",light:!0,editable:!1}}),e.hasNextScale(e.SCALE_TYPE.ST_SPACE)?o("scale-reference",{staticClass:"sb-next-scale",attrs:{width:e.spaceWidth?e.spaceWidth:e.scaleWidth,"scale-type":"space","use-next":!0,light:!0,editable:!1}}):e._e(),o("div",{staticClass:"sb-tooltip"},[e._v(e._s(e.$t("tooltips.clickToEdit",{type:e.SCALE_TYPE.ST_SPACE})))])],1)])],1)],1),o("div",{staticClass:"klab-button klab-action",class:[{active:e.showTimeScalePopup}],on:{mouseover:function(t){e.toggleScalePopup("time",!0)},mouseleave:function(t){e.toggleScalePopup("time",!1)},click:function(t){e.scaleEditing={active:!0,type:e.SCALE_TYPE.ST_TIME}}}},[o("q-icon",{class:{"klab-mdi-next-scale":e.hasNextScale(e.SCALE_TYPE.ST_TIME)},attrs:{name:"mdi-clock"}},[o("q-popover",{attrs:{"anchor-click":!1,anchor:e.anchorType,self:e.selfType,offset:e.offsets},model:{value:e.showTimeScalePopup,callback:function(t){e.showTimeScalePopup=t},expression:"showTimeScalePopup"}},[o("div",{staticClass:"mc-scalereference",attrs:{id:"mc-timereference"}},[o("scale-reference",{attrs:{width:e.timeWidth?e.timeWidth:e.scaleWidth,"scale-type":"time",light:!0,editable:!1}}),e.hasNextScale(e.SCALE_TYPE.ST_TIME)?o("scale-reference",{staticClass:"sb-next-scale",attrs:{width:"timeWidth ? timeWidth : scaleWidth","scale-type":"time",light:!0,editable:!1,"use-next":!0}}):e._e(),o("div",{staticClass:"sb-tooltip"},[e._v(e._s(e.$t("tooltips.clickToEdit",{type:e.SCALE_TYPE.ST_TIME})))])],1)])],1)],1)])},Qo=[];Jo._withStripped=!0;var Zo={name:"ScaleButtons",components:{ScaleReference:Wt},props:{docked:{type:Boolean,required:!0},offset:{type:Number,default:8},scaleWidth:{type:String,default:"140px"},timeWidth:{type:String,default:void 0},spaceWidth:{type:String,default:void 0}},data:function(){return{showSpaceScalePopup:!1,showTimeScalePopup:!1,anchorType:this.docked?"center right":"bottom left",selfType:this.docked?"center left":"top left",offsets:this.docked?[this.offset,0]:[0,this.offset],SCALE_TYPE:c["C"]}},computed:a()({},Object(s["c"])("data",["nextScale","hasNextScale","scaleReference","contextId"]),{scaleEditing:{get:function(){return this.$store.getters["view/isScaleEditing"]},set:function(e){var t=e.active,o=e.type;this.$store.dispatch("view/setScaleEditing",{active:t,type:o})}}}),methods:{toggleScalePopup:function(e,t){"space"===e?(this.showSpaceScalePopup=t,this.showTimeScalePopup=!1):"time"===e&&(this.showSpaceScalePopup=!1,this.showTimeScalePopup=t)},rescaleContext:function(){this.hasNextScale()&&this.sendStompMessage(p["a"].SCALE_REFERENCE(a()({scaleReference:this.scaleReference,contextId:this.contextId},this.hasNextScale(c["C"].ST_SPACE)&&{spaceResolution:this.nextScale.spaceResolutionConverted,spaceUnit:this.nextScale.spaceUnit},this.hasNextScale(c["C"].ST_TIME)&&{timeResolutionMultiplier:this.nextScale.timeResolutionMultiplier,timeUnit:this.nextScale.timeUnit,start:this.nextScale.start,end:this.nextScale.end}),this.$store.state.data.session).body)},noTimeScaleChange:function(){this.$q.notify({message:this.$t("messages.availableInFuture"),type:"info",icon:"mdi-information",timeout:1e3})}}},en=Zo,tn=(o("1817"),Object(A["a"])(en,Jo,Qo,!1,null,null,null));tn.options.__file="ScaleButtons.vue";var on=tn.exports,nn=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"kvs-container"},[o("div",{staticClass:"klab-button klab-action",class:{disabled:0===e.knowledgeViews.length}},[o("div",{staticClass:"kvs-button mdi mdi-text-box-multiple float-left"}),e.docked?e._e():o("q-icon",{staticClass:"float-left klab-item",staticStyle:{padding:"3px 0 0 8px"},attrs:{name:"mdi-chevron-down"}},[e.hasNew?o("span",{staticClass:"klab-button-notification"}):e._e()]),o("q-tooltip",{attrs:{offset:[8,0],self:e.selfTooltipType,anchor:e.anchorTooltipType,delay:600}},[e._v(e._s(0===e.knowledgeViews.length?e.$t("tooltips.noKnowledgeViews"):e.$t("tooltips.knowledgeViews")))])],1),o("q-popover",{staticClass:"kvs-popover",attrs:{disable:0===e.knowledgeViews.length,anchor:e.anchorType,self:e.selfType,offset:e.offsets},model:{value:e.kvListOpen,callback:function(t){e.kvListOpen=t},expression:"kvListOpen"}},[o("div",{staticClass:"kvs-popover-container"},[o("q-list",{staticClass:"kvs-list",attrs:{link:"","no-border":"",dense:"",dark:""}},e._l(e.knowledgeViews,function(t){return o("q-item",{key:t.viewId,nativeOn:{click:function(o){e.selectKnowledgeView(t.viewId)}}},[o("q-item-side",{attrs:{icon:e.KNOWLEDGE_VIEWS.find(function(e){return e.viewClass===t.viewClass}).icon}}),o("q-item-main",[o("div",[e._v(e._s(t.label))])]),o("q-tooltip",{ref:"kv-tooltip-"+t.viewId,refInFor:!0,attrs:{offset:[8,0],self:"center left",anchor:"center right"}},[e._v(e._s(t.title))])],1)}))],1)])],1)},rn=[];nn._withStripped=!0;var an={name:"KnoledgeViewsSelector",props:{docked:{type:Boolean,required:!0},offset:{type:Number,default:0}},data:function(){return{anchorTooltipType:this.docked?"bottom left":"center right",selfTooltipType:this.docked?"top left":"center left",offsetTooltip:this.docked?[0,this.offset]:[this.offset,0],anchorType:this.docked?"center right":"bottom left",selfType:this.docked?"center left":"top left",offsets:this.docked?[this.offset,0]:[0,this.offset],kvListOpen:!1,hasNew:!1,KNOWLEDGE_VIEWS:c["u"]}},computed:a()({},Object(s["c"])("data",["knowledgeViews"]),{knowledgeViewsLength:function(){return this.knowledgeViews.length}}),methods:a()({},Object(s["b"])("data",["showKnowledgeView"]),{selectKnowledgeView:function(e){var t=this;this.showKnowledgeView(e),this.$nextTick(function(){t.kvListOpen=!1;var o=t.$refs["kv-tooltip-".concat(e)];o&&o.length>0&&o[0].hide()})}}),watch:{knowledgeViewsLength:function(e,t){e>t&&(this.hasNew=!0)},kvListOpen:function(){this.kvListOpen&&this.hasNew&&(this.hasNew=!1)}}},sn=an,cn=(o("0e44"),Object(A["a"])(sn,nn,rn,!1,null,null,null));cn.options.__file="KnowledgeViewsSelector.vue";var pn=cn.exports,ln=K["b"].width,un=K["b"].height,bn={top:25,left:15},dn={name:"klabMainControl",components:{KlabSpinner:v,KlabSearchBar:Bt,KlabBreadcrumbs:jt,KlabTreePane:Lo,KlabLogPane:Yo,ScrollingText:ft,ScaleButtons:on,MainActionsButtons:Ce,StopActionsButtons:ke,ObservationsTimeline:Fo,KnowledgeViewsSelector:pn},directives:{Draggable:V},mixins:[rt],data:function(){var e=this;return{isHidden:!1,dragMCConfig:{handle:void 0,resetInitialPos:!1,onPositionChange:Object(qe["a"])(function(t,o,n){e.onDebouncedPositionChanged(n)},100),onDragStart:function(){e.dragging=!0},onDragEnd:this.checkWhereWasDragged,fingers:2},correctedPosition:{top:0,left:0},defaultLeft:bn.left,defaultTop:bn.top,centeredLeft:bn.left,dragging:!1,wasMoved:!1,askForDocking:!1,leftMenuMaximized:"".concat(c["v"].LEFTMENU_MAXSIZE,"px"),boundingElement:void 0,selectedTab:"klab-tree-pane",draggableElement:void 0,draggableElementWidth:0,kvListOpen:!1,KNOWLEDGE_VIEWS:c["u"]}},computed:a()({},Object(s["c"])("data",["hasContext","contextHasTime","knowledgeViews"]),Object(s["c"])("stomp",["hasTasks"]),Object(s["c"])("view",["spinnerColor","searchIsFocused","searchIsActive","isDrawMode","fuzzyMode","largeMode","windowSide","layout","hasHeader"]),{qCardStyle:function(){return{top:"".concat(this.defaultTop+this.correctedPosition.top,"px"),left:"".concat(this.centeredLeft+this.correctedPosition.left,"px"),"margin-top":"-".concat(this.correctedPosition.top,"px"),"margin-left":"-".concat(this.correctedPosition.left,"px")}}}),methods:a()({},Object(s["b"])("view",["setMainViewer","setLargeMode","searchStart","searchFocus","setWindowSide","setObservationInfo"]),{callStartType:function(e){this.searchIsFocused?e.evt.stopPropagation():this.$refs["klab-search-bar"].startType(e)},onDebouncedPositionChanged:function(e){this.askForDocking=!!(this.hasContext&&this.dragging&&null===this.layout&&e&&e.x<=30+this.correctedPosition.left)},hide:function(){this.dragMCConfig.resetInitialPos=!1,this.isHidden=!0},show:function(){this.dragMCConfig.resetInitialPos=!1,this.isHidden=!1},getRightLeft:function(){var e=ln(this.boundingElement);return e-this.draggableElement.offsetWidth-bn.left+this.correctedPosition.left},getCenteredLeft:function(){var e;if("undefined"===typeof this.draggableElement||this.hasContext)e=this.defaultLeft;else{var t=this.draggableElementWidth,o=ln(this.boundingElement);e=(o-t)/2}return e+this.correctedPosition.left},changeDraggablePosition:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t&&(e.top+=this.correctedPosition.top,e.left+=this.correctedPosition.left),this.draggableElement.style.left="".concat(e.left,"px"),this.draggableElement.style.top="".concat(e.top,"px");var o=JSON.parse(this.dragMCConfig.handle.getAttribute("draggable-state"));o.startDragPosition=e,o.currentDragPosition=e;var n=document.querySelector(".mc-q-card-title");n?n.setAttribute("draggable-state",JSON.stringify(o)):this.dragMCConfig.handle.setAttribute("draggable-state",JSON.stringify(o))},checkWhereWasDragged:function(){if(this.dragging=!1,this.askForDocking)return this.askForDocking=!1,this.setMainViewer(c["N"].DOCKED_DATA_VIEWER),void this.setObservationInfo(null);this.draggableElement.offsetTop<0&&this.changeDraggablePosition({top:0,left:Math.max(this.draggableElement.offsetLeft,0)}),this.draggableElement.offsetLeft+this.draggableElement.offsetWidth<=0&&this.changeDraggablePosition({top:Math.max(this.draggableElement.offsetTop,0),left:0}),this.draggableElement.offsetLeft>=ln(this.boundingElement)&&this.changeDraggablePosition({top:Math.max(this.draggableElement.offsetTop,0),left:Math.max(ln(this.boundingElement)-this.draggableElement.offsetWidth,0)}),this.draggableElement.offsetTop>=un(this.boundingElement)&&this.changeDraggablePosition({top:Math.max(un(this.boundingElement)-this.draggableElement.offsetHeight,0),left:Math.max(this.draggableElement.offsetLeft,0)})},getBGColor:function(e){return"rgba(".concat(this.spinnerColor.rgb.r,",").concat(this.spinnerColor.rgb.g,",").concat(this.spinnerColor.rgb.b,", ").concat(e,")")},mapSizeChangedListener:function(e){var t=this;if(e&&"changelayout"===e.type)return e.align&&this.setWindowSide(e.align),this.updateCorrectedPosition(),void this.$nextTick(function(){t.changeDraggablePosition({left:t.hasContext?"left"===t.windowSide?t.defaultLeft:t.getRightLeft():t.getCenteredLeft(),top:t.defaultTop},!1)});this.dragMCConfig.initialPosition={left:this.centeredLeft,top:this.defaultTop},this.checkWhereWasDragged()},spinnerDoubleClickListener:function(){this.hide()},updateCorrectedPosition:function(){var e=document.querySelector(".kapp-header-container"),t=document.querySelector(".kapp-left-container aside"),o=e?un(e):0,n=t?ln(t):0;this.correctedPosition={top:o,left:n},this.defaultTop=bn.top+o,this.defaultLeft=bn.left+n,this.centeredLeft=this.getCenteredLeft()},updateDraggable:function(){this.updateCorrectedPosition(),this.draggableElement=document.querySelector(".kexplorer-main-container .mc-q-card"),this.draggableElementWidth=ln(this.draggableElement),this.dragMCConfig.handle=document.querySelector(".kexplorer-main-container .mc-q-card-title"),this.boundingElement=document.querySelector(".kexplorer-container"),this.centeredLeft=this.getCenteredLeft(),this.dragMCConfig.initialPosition={left:this.centeredLeft,top:this.defaultTop}},focusSearch:function(e){this.moved||e&&e.target.classList&&(e.target.classList.contains("mcm-button")||e.target.classList.contains("q-icon")||e.target.classList.contains("q-btn")||e.target.classList.contains("q-btn-inner"))||(this.searchIsActive?this.searchIsFocused||this.searchFocus({focused:!0}):this.searchStart(""))}}),watch:{hasContext:function(){var e=this;this.setLargeMode(0),this.$nextTick(function(){e.changeDraggablePosition({top:e.defaultTop,left:e.hasContext?"left"===e.windowSide?e.defaultLeft:e.getRightLeft():e.getCenteredLeft()},!1)})},largeMode:function(){var e=this;this.hasContext||this.$nextTick(function(){var t=c["g"].SEARCHBAR_INCREMENT*e.largeMode/2;if(t>=0){var o=parseFloat(e.draggableElement.style.left),n=o-e.getCenteredLeft();n%(c["g"].SEARCHBAR_INCREMENT/2)===0&&e.changeDraggablePosition({top:parseFloat(e.draggableElement.style.top),left:e.getCenteredLeft()-t},!1)}})}},created:function(){this.defaultTop=bn.top,this.defaultLeft=bn.left,this.VIEWERS=c["N"]},mounted:function(){this.updateDraggable(),this.$eventBus.$on(c["h"].SPINNER_DOUBLE_CLICK,this.spinnerDoubleClickListener),this.$eventBus.$on(c["h"].MAP_SIZE_CHANGED,this.mapSizeChangedListener)},beforeDestroy:function(){this.$eventBus.$off(c["h"].SPINNER_DOUBLE_CLICK,this.spinnerDoubleClickListener),this.$eventBus.$off(c["h"].MAP_SIZE_CHANGED,this.mapSizeChangedListener)}},Mn=dn,hn=(o("96fa"),Object(A["a"])(Mn,ge,ye,!1,null,null,null));hn.options.__file="KlabMainControl.vue";var fn=hn.exports,zn=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"no-padding relative-position full-width"},e._l(e.dataViewers,function(t){return o("div",{key:t.idx,class:["no-padding",t.main?"absolute-top full-height full-width":"absolute thumb-view"],style:e.viewerStyle(t),attrs:{id:"dv-viewer-"+t.idx}},[t.main?e._e():o("div",{staticClass:"thumb-viewer-title absolute-top"},[o("div",{staticClass:"relative-position"},[o("div",{staticClass:"thumb-viewer-label float-left q-ma-sm",class:[t.type.hideable?"thumb-closable":""]},[e._v("\n "+e._s(e.capitalize(t.label))+"\n ")]),o("div",{staticClass:"float-right q-ma-xs thumb-viewer-button"},[o("q-btn",{staticClass:"shadow-1",attrs:{round:"",color:"mc-main",size:"xs",icon:"mdi-chevron-up"},on:{click:function(o){e.setMain(t.idx)}}}),t.type.hideable?o("q-btn",{staticClass:"shadow-1 thumb-close",attrs:{round:"",color:"black",size:"xs",icon:"mdi-close"},on:{click:function(o){e.closeViewer(t)}}}):e._e()],1)])]),o(t.type.component,{tag:"component",attrs:{idx:t.idx}})],1)}))},On=[];zn._withStripped=!0;var An=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{directives:[{name:"upload-files",rawName:"v-upload-files",value:e.uploadConfig,expression:"uploadConfig"}],staticClass:"fit no-padding map-viewer"},[o("div",{ref:"map"+e.idx,staticClass:"fit",class:{"mv-exploring":e.exploreMode||null!==e.topLayer},attrs:{id:"map"+e.idx}}),o("q-icon",{staticClass:"map-selection-marker",attrs:{name:e.mapSelection.locked?"mdi-image-filter-center-focus":"mdi-crop-free",id:"msm-"+e.idx}}),o("q-resize-observable",{on:{resize:e.handleResize}}),e.isDrawMode?o("map-drawer",{attrs:{map:e.map},on:{drawend:e.sendSpatialLocation}}):e._e(),o("q-modal",{attrs:{"no-esc-dismiss":"","no-backdrop-dismiss":"","content-classes":["gl-msg-content"]},model:{value:e.waitingGeolocation,callback:function(t){e.waitingGeolocation=t},expression:"waitingGeolocation"}},[o("div",{staticClass:"bg-opaque-white"},[o("div",{staticClass:"q-pa-xs"},[o("h5",[e._v(e._s(e.$t("messages.geolocationWaitingTitle")))]),o("p",{domProps:{innerHTML:e._s(e.$t("messages.geolocationWaitingText"))}}),o("p",{directives:[{name:"show",rawName:"v-show",value:null!==e.geolocationIncidence,expression:"geolocationIncidence !== null"}],staticClass:"gl-incidence"},[e._v(e._s(e.geolocationIncidence))]),o("div",{staticClass:"gl-btn-container"},[o("q-btn",{directives:[{name:"show",rawName:"v-show",value:null!==e.geolocationIncidence,expression:"geolocationIncidence !== null"}],attrs:{label:e.$t("label.appRetry"),color:"primary"},on:{click:e.retryGeolocation}}),o("q-btn",{attrs:{label:e.$t("label.appCancel"),color:"mc-main"},on:{click:function(t){e.stopGeolocation(!0)}}})],1)])])]),o("q-modal",{attrs:{"no-route-dismiss":!0,"no-esc-dismiss":!0,"no-backdrop-dismiss":!0},model:{value:e.progressBarVisible,callback:function(t){e.progressBarVisible=t},expression:"progressBarVisible"}},[o("q-progress",{attrs:{percentage:e.uploadProgress,color:"mc-main",stripe:!0,animate:!0,height:"1em"}})],1),o("div",{ref:"mv-popup",staticClass:"ol-popup",attrs:{id:"mv-popup"}},[o("q-btn",{staticClass:"ol-popup-closer",attrs:{icon:"mdi-close",color:"grey-8",size:"xs",flat:"",round:""},on:{click:e.closePopup}}),o("div",{staticClass:"ol-popup-content",attrs:{id:"mv-popup-content"},domProps:{innerHTML:e._s(e.popupContent)}})],1),o("observation-context-menu",{attrs:{"observation-id":e.contextMenuObservationId},on:{hide:function(t){e.contextMenuObservationId=null}}}),o("div",{staticClass:"mv-extent-map",class:{"mv-extent-map-hide":!e.hasExtentMap},attrs:{id:"mv-extent-map"}}),e.hasContext||null===e.proposedContext?e._e():o("q-btn",{staticClass:"mv-remove-proposed-context",style:null!==e.proposedContextCenter?e.proposedContextCenter:{},attrs:{icon:"mdi-close",size:"lg",round:""},nativeOn:{click:function(t){e.sendSpatialLocation(null)}}})],1)},mn=[];An._withStripped=!0;var vn="".concat("").concat(L["c"].REST_UPLOAD),gn="1024MB",yn=gn.substr(gn.length-2),qn="KB"===yn?1:"MB"===yn?2:"GB"===yn?3:"PB"===yn?4:0,_n=parseInt(gn.substring(0,gn.length-2),10)*Math.pow(1024,qn);function Wn(){var e=document.createElement("div");return("draggable"in e||"ondragstart"in e&&"ondrop"in e)&&"FormData"in window&&"FileReader"in window}var Rn=S["a"].directive("upload",{inserted:function(e,t){if(Wn()){var o=t.value&&t.value.onUploadProgress&&"function"===typeof t.value.onUploadProgress?t.value.onUploadProgress:function(){},n=t.value&&t.value.onUploadEnd&&"function"===typeof t.value.onUploadEnd?t.value.onUploadEnd:function(){console.debug("Upload complete")},i=t.value&&t.value.onUploadError&&"function"===typeof t.value.onUploadError?t.value.onUploadError:function(e){console.error(JSON.stringify(e,null,4))};["drag","dragstart","dragend","dragover","dragenter","dragleave","drop"].forEach(function(t){e.addEventListener(t,function(e){e.preventDefault(),e.stopPropagation()},!1)}),e.addEventListener("drop",function(e){var r=e.dataTransfer.files;if(null!==r&&0!==r.length){for(var a=new FormData,s=[],c=0;c_n?i("File is too large, max sixe is ".concat(gn)):(a.append("files[]",r[c]),s.push(r[c].name));"undefined"!==typeof t.value.refId&&null!==t.value.refId&&a.append("refId",t.value.refId||null),w["a"].post(vn,a,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(e){o(parseInt(Math.round(100*e.loaded/e.total),10))}}).then(function(){n(null!==r&&s.length>0?s.join(", "):null)}).catch(function(e){i(e,null!==r&&s.length>0?s.join(", "):null)})}})}}}),wn=o("256f"),Ln=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{directives:[{name:"draggable",rawName:"v-draggable",value:e.dragDCConfig,expression:"dragDCConfig"}],staticClass:"md-draw-controls"},[o("div",{staticClass:"md-title"},[e._v("Draw mode")]),o("div",{staticClass:"md-controls"},[o("q-icon",{staticClass:"md-control md-ok",attrs:{name:"mdi-check-circle-outline"},nativeOn:{click:function(t){e.drawOk()}}}),o("q-icon",{staticClass:"md-control md-erase",class:[e.hasCustomContextFeatures?"":"disabled"],attrs:{name:"mdi-delete-variant"},nativeOn:{click:function(t){e.hasCustomContextFeatures&&e.drawErase()}}}),o("q-icon",{staticClass:"md-control md-cancel",attrs:{name:"mdi-close-circle-outline"},nativeOn:{click:function(t){e.drawCancel()}}})],1),o("div",{directives:[{name:"show",rawName:"v-show",value:e.selectors,expression:"selectors"}],staticClass:"md-selector"},[o("q-btn-toggle",{attrs:{"toggle-color":"mc-main",size:"md",options:[{tabindex:1,icon:"mdi-vector-point",value:"Point",disable:!0},{tabindex:2,icon:"mdi-vector-line",value:"LineString",disable:!0},{tabindex:3,icon:"mdi-vector-polygon",value:"Polygon"},{tabindex:4,icon:"mdi-vector-circle-variant",value:"Circle"}]},model:{value:e.drawType,callback:function(t){e.drawType=t},expression:"drawType"}})],1)])},Cn=[];Ln._withStripped=!0;var Sn=o("a27f"),En=o("3e6b"),Tn=o("5831"),xn=o("6c77"),Nn=o("83a6"),Bn=o("8682"),kn=o("ce2c"),Pn=o("ac29"),Dn=o("c807"),In=o("4cdf"),Xn=o("f822"),jn=o("5bc3"),Fn={name:"MapDrawer",props:{map:{type:Object,required:!0},selectors:{type:Boolean,required:!1,default:!0},fillColor:{type:String,required:!1,default:"rgba(17, 170, 187, 0.3)"},strokeColor:{type:String,required:!1,default:"rgb(17, 170, 187)"},strokeWidth:{type:Number,required:!1,default:2},pointRadius:{type:Number,required:!1,default:5}},data:function(){return{drawerLayer:void 0,drawer:void 0,drawerModify:void 0,dragDCConfig:{resetInitialPos:!0},drawType:"Polygon"}},computed:{hasCustomContextFeatures:function(){return this.drawerLayer&&this.drawerLayer.getSource().getFeatures().length>0}},methods:a()({},Object(s["b"])("view",["setDrawMode"]),{drawOk:function(){var e=this.drawerLayer.getSource().getFeatures().filter(function(e){return null!==e.getGeometry()}),t=e.length,o=[];if(0!==t){for(var n=null,i=0;i0&&e.pop(),this.drawerLayer.getSource().clear(!0),this.drawerLayer.getSource().addFeatures(e)},drawCancel:function(){this.$emit("drawcancel"),this.drawerLayer.getSource().clear(),this.setDrawMode(!1)},setDrawer:function(){var e=this;this.drawer=new Pn["a"]({source:this.drawerLayer.getSource(),type:this.drawType}),this.drawer.on("drawend",function(t){var o=Object(He["j"])(t.feature.getGeometry());Object(He["i"])(o)||(e.$q.notify({message:e.$t("messages.invalidGeometry"),type:"negative",icon:"mdi-alert-circle",timeout:1e3}),t.feature.setGeometry(null))}),this.map.addInteraction(this.drawer)}}),watch:{drawType:function(){this.map.removeInteraction(this.drawer),this.setDrawer()}},directives:{Draggable:Sn["Draggable"]},mounted:function(){var e=new Tn["a"];this.drawerModify=new Dn["a"]({source:e}),this.drawerLayer=new En["a"]({id:"DrawerLayer",source:e,visible:!0,style:new xn["c"]({fill:new Nn["a"]({color:this.fillColor}),stroke:new Bn["a"]({color:this.strokeColor,width:this.strokeWidth}),image:new kn["a"]({radius:this.pointRadius,fill:new Nn["a"]({color:this.strokeColor})})})}),this.dragDCConfig.boundingElement=document.getElementById(this.map.get("target")),this.map.addLayer(this.drawerLayer),this.map.addInteraction(this.drawerModify),this.setDrawer()},beforeDestroy:function(){this.map.removeInteraction(this.drawer),this.map.removeInteraction(this.drawerModify),this.drawerLayer.getSource().clear(!0)}},Hn=Fn,Un=(o("37a9"),Object(A["a"])(Hn,Ln,Cn,!1,null,null,null));Un.options.__file="MapDrawer.vue";var Vn=Un.exports,Gn=o("e300"),Kn=o("9c78"),$n=o("c810"),Yn=o("592d"),Jn=o("e269"),Qn={BOTTOM_LEFT:"bottom-left",BOTTOM_CENTER:"bottom-center",BOTTOM_RIGHT:"bottom-right",CENTER_LEFT:"center-left",CENTER_CENTER:"center-center",CENTER_RIGHT:"center-right",TOP_LEFT:"top-left",TOP_CENTER:"top-center",TOP_RIGHT:"top-right"},Zn=o("cd7e"),ei=o("0999"),ti=o("1e8d"),oi=o("0af5"),ni={ELEMENT:"element",MAP:"map",OFFSET:"offset",POSITION:"position",POSITIONING:"positioning"},ii=function(e){function t(t){e.call(this),this.options=t,this.id=t.id,this.insertFirst=void 0===t.insertFirst||t.insertFirst,this.stopEvent=void 0===t.stopEvent||t.stopEvent,this.element=document.createElement("div"),this.element.className=void 0!==t.className?t.className:"ol-overlay-container "+Zn["d"],this.element.style.position="absolute",this.autoPan=void 0!==t.autoPan&&t.autoPan,this.autoPanAnimation=t.autoPanAnimation||{},this.autoPanMargin=void 0!==t.autoPanMargin?t.autoPanMargin:20,this.rendered={bottom_:"",left_:"",right_:"",top_:"",visible:!0},this.mapPostrenderListenerKey=null,Object(ti["a"])(this,Object(Jn["b"])(ni.ELEMENT),this.handleElementChanged,this),Object(ti["a"])(this,Object(Jn["b"])(ni.MAP),this.handleMapChanged,this),Object(ti["a"])(this,Object(Jn["b"])(ni.OFFSET),this.handleOffsetChanged,this),Object(ti["a"])(this,Object(Jn["b"])(ni.POSITION),this.handlePositionChanged,this),Object(ti["a"])(this,Object(Jn["b"])(ni.POSITIONING),this.handlePositioningChanged,this),void 0!==t.element&&this.setElement(t.element),this.setOffset(void 0!==t.offset?t.offset:[0,0]),this.setPositioning(void 0!==t.positioning?t.positioning:Qn.TOP_LEFT),void 0!==t.position&&this.setPosition(t.position)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getElement=function(){return this.get(ni.ELEMENT)},t.prototype.getId=function(){return this.id},t.prototype.getMap=function(){return this.get(ni.MAP)},t.prototype.getOffset=function(){return this.get(ni.OFFSET)},t.prototype.getPosition=function(){return this.get(ni.POSITION)},t.prototype.getPositioning=function(){return this.get(ni.POSITIONING)},t.prototype.handleElementChanged=function(){Object(ei["d"])(this.element);var e=this.getElement();e&&this.element.appendChild(e)},t.prototype.handleMapChanged=function(){this.mapPostrenderListenerKey&&(Object(ei["e"])(this.element),Object(ti["e"])(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);var e=this.getMap();if(e){this.mapPostrenderListenerKey=Object(ti["a"])(e,Yn["a"].POSTRENDER,this.render,this),this.updatePixelPosition();var t=this.stopEvent?e.getOverlayContainerStopEvent():e.getOverlayContainer();this.insertFirst?t.insertBefore(this.element,t.childNodes[0]||null):t.appendChild(this.element)}},t.prototype.render=function(){this.updatePixelPosition()},t.prototype.handleOffsetChanged=function(){this.updatePixelPosition()},t.prototype.handlePositionChanged=function(){this.updatePixelPosition(),this.get(ni.POSITION)&&this.autoPan&&this.panIntoView()},t.prototype.handlePositioningChanged=function(){this.updatePixelPosition()},t.prototype.setElement=function(e){this.set(ni.ELEMENT,e)},t.prototype.setMap=function(e){this.set(ni.MAP,e)},t.prototype.setOffset=function(e){this.set(ni.OFFSET,e)},t.prototype.setPosition=function(e){this.set(ni.POSITION,e)},t.prototype.panIntoView=function(){var e=this.getMap();if(e&&e.getTargetElement()){var t=this.getRect(e.getTargetElement(),e.getSize()),o=this.getElement(),n=this.getRect(o,[Object(ei["c"])(o),Object(ei["b"])(o)]),i=this.autoPanMargin;if(!Object(oi["g"])(t,n)){var r=n[0]-t[0],a=t[2]-n[2],s=n[1]-t[1],c=t[3]-n[3],p=[0,0];if(r<0?p[0]=r-i:a<0&&(p[0]=Math.abs(a)+i),s<0?p[1]=s-i:c<0&&(p[1]=Math.abs(c)+i),0!==p[0]||0!==p[1]){var l=e.getView().getCenter(),u=e.getPixelFromCoordinate(l),b=[u[0]+p[0],u[1]+p[1]];e.getView().animate({center:e.getCoordinateFromPixel(b),duration:this.autoPanAnimation.duration,easing:this.autoPanAnimation.easing})}}}},t.prototype.getRect=function(e,t){var o=e.getBoundingClientRect(),n=o.left+window.pageXOffset,i=o.top+window.pageYOffset;return[n,i,n+t[0],i+t[1]]},t.prototype.setPositioning=function(e){this.set(ni.POSITIONING,e)},t.prototype.setVisible=function(e){this.rendered.visible!==e&&(this.element.style.display=e?"":"none",this.rendered.visible=e)},t.prototype.updatePixelPosition=function(){var e=this.getMap(),t=this.getPosition();if(e&&e.isRendered()&&t){var o=e.getPixelFromCoordinate(t),n=e.getSize();this.updateRenderedPosition(o,n)}else this.setVisible(!1)},t.prototype.updateRenderedPosition=function(e,t){var o=this.element.style,n=this.getOffset(),i=this.getPositioning();this.setVisible(!0);var r=n[0],a=n[1];if(i==Qn.BOTTOM_RIGHT||i==Qn.CENTER_RIGHT||i==Qn.TOP_RIGHT){""!==this.rendered.left_&&(this.rendered.left_=o.left="");var s=Math.round(t[0]-e[0]-r)+"px";this.rendered.right_!=s&&(this.rendered.right_=o.right=s)}else{""!==this.rendered.right_&&(this.rendered.right_=o.right=""),i!=Qn.BOTTOM_CENTER&&i!=Qn.CENTER_CENTER&&i!=Qn.TOP_CENTER||(r-=this.element.offsetWidth/2);var c=Math.round(e[0]+r)+"px";this.rendered.left_!=c&&(this.rendered.left_=o.left=c)}if(i==Qn.BOTTOM_LEFT||i==Qn.BOTTOM_CENTER||i==Qn.BOTTOM_RIGHT){""!==this.rendered.top_&&(this.rendered.top_=o.top="");var p=Math.round(t[1]-e[1]-a)+"px";this.rendered.bottom_!=p&&(this.rendered.bottom_=o.bottom=p)}else{""!==this.rendered.bottom_&&(this.rendered.bottom_=o.bottom=""),i!=Qn.CENTER_LEFT&&i!=Qn.CENTER_CENTER&&i!=Qn.CENTER_RIGHT||(a-=this.element.offsetHeight/2);var l=Math.round(e[1]+a)+"px";this.rendered.top_!=l&&(this.rendered.top_=o.top=l)}},t.prototype.getOptions=function(){return this.options},t}(Jn["a"]),ri=ii,ai=o("b2da"),si=o.n(ai),ci=o("64d9"),pi=o("f403"),li=o("01d4"),ui=o("3900"),bi="projection",di="coordinateFormat",Mi=function(e){function t(t){var o=t||{},n=document.createElement("div");n.className=void 0!==o.className?o.className:"ol-mouse-position",e.call(this,{element:n,render:o.render||hi,target:o.target}),Object(ti["a"])(this,Object(Jn["b"])(bi),this.handleProjectionChanged_,this),o.coordinateFormat&&this.setCoordinateFormat(o.coordinateFormat),o.projection&&this.setProjection(o.projection),this.undefinedHTML_=void 0!==o.undefinedHTML?o.undefinedHTML:" ",this.renderOnMouseOut_=!!this.undefinedHTML_,this.renderedHTML_=n.innerHTML,this.mapProjection_=null,this.transform_=null,this.lastMouseMovePixel_=null}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.handleProjectionChanged_=function(){this.transform_=null},t.prototype.getCoordinateFormat=function(){return this.get(di)},t.prototype.getProjection=function(){return this.get(bi)},t.prototype.handleMouseMove=function(e){var t=this.getMap();this.lastMouseMovePixel_=t.getEventPixel(e),this.updateHTML_(this.lastMouseMovePixel_)},t.prototype.handleMouseOut=function(e){this.updateHTML_(null),this.lastMouseMovePixel_=null},t.prototype.setMap=function(t){if(e.prototype.setMap.call(this,t),t){var o=t.getViewport();this.listenerKeys.push(Object(ti["a"])(o,li["a"].MOUSEMOVE,this.handleMouseMove,this),Object(ti["a"])(o,li["a"].TOUCHSTART,this.handleMouseMove,this)),this.renderOnMouseOut_&&this.listenerKeys.push(Object(ti["a"])(o,li["a"].MOUSEOUT,this.handleMouseOut,this),Object(ti["a"])(o,li["a"].TOUCHEND,this.handleMouseOut,this))}},t.prototype.setCoordinateFormat=function(e){this.set(di,e)},t.prototype.setProjection=function(e){this.set(bi,Object(wn["g"])(e))},t.prototype.updateHTML_=function(e){var t=this.undefinedHTML_;if(e&&this.mapProjection_){if(!this.transform_){var o=this.getProjection();this.transform_=o?Object(wn["j"])(this.mapProjection_,o):wn["k"]}var n=this.getMap(),i=n.getCoordinateFromPixel(e);if(i){this.transform_(i,i);var r=this.getCoordinateFormat();t=r?r(i):i.toString()}}this.renderedHTML_&&t===this.renderedHTML_||(this.element.innerHTML=t,this.renderedHTML_=t)},t}(ui["default"]);function hi(e){var t=e.frameState;t?this.mapProjection_!=t.viewState.projection&&(this.mapProjection_=t.viewState.projection,this.transform_=null):this.mapProjection_=null}var fi=Mi,zi=o("a568"),Oi=(o("c58e"),{name:"MapViewer",components:{MapDrawer:Vn,ObservationContextMenu:po},props:{idx:{type:Number,required:!0}},directives:{UploadFiles:Rn},data:function(){var e=this;return{center:this.$mapDefaults.center,zoom:this.$mapDefaults.zoom,map:null,extentMap:null,hasExtentMap:!1,view:null,movedWithContext:!1,noNewRegion:!1,layers:new Gn["a"],zIndexCounter:0,baseLayers:null,layerSwitcher:null,visibleBaseLayer:null,mapSelectionMarker:void 0,wktInstance:new ci["a"],geolocationId:null,geolocationIncidence:null,popupContent:"",popupOverlay:void 0,contextLayer:null,proposedContextLayer:null,proposedContextCenter:null,uploadConfig:{refId:null,onUploadProgress:function(t){e.uploadProgress=t},onUploadEnd:function(t){e.$q.notify({message:e.$t("messages.uploadComplete",{fileName:t}),type:"info",icon:"mdi-information",timeout:1e3}),e.uploadProgress=null},onUploadError:function(t,o){e.$q.notify({message:"".concat(e.$t("errors.uploadError",{fileName:o}),"\n").concat(t.response.data.message),type:"negative",icon:"mdi-alert-circle",timeout:1e3}),e.uploadProgress=null}},uploadProgress:null,storedZoom:null,clicksOnMap:0,bufferingLayers:!1,lastModificationLoaded:null,previousTopLayer:null,lockedObservations:[],contextMenuObservationId:null,coordinatesControl:void 0}},computed:a()({observations:function(){return this.$store.getters["data/observationsOfViewer"](this.idx)},lockedObservationsIds:function(){return this.lockedObservations.map(function(e){return e.id})}},Object(s["c"])("data",["proposedContext","hasContext","contextId","contextLabel","session","timestamp","scaleReference","timeEvents","timeEventsOfObservation"]),Object(s["c"])("view",["contextGeometry","observationInfo","exploreMode","mapSelection","isDrawMode","topLayer","mainViewer","viewCoordinates"]),Object(s["d"])("view",["saveLocation"]),{hasCustomContextFeatures:function(){return this.drawerLayer&&this.drawerLayer.getSource().getFeatures().length>0},progressBarVisible:function(){return null!==this.uploadProgress},waitingGeolocation:{get:function(){return this.$store.state.view.waitingGeolocation},set:function(e){this.$store.state.view.waitingGeolocation=e}}}),methods:a()({},Object(s["b"])("data",["setCrossingIDL","putObservationOnTop"]),Object(s["b"])("view",["addToKexplorerLog","setSpinner","setMapSelection","setDrawMode","setTopLayer","setShowSettings"]),{handleResize:function(){null!==this.map&&(this.map.updateSize(),this.$eventBus.$emit(c["h"].MAP_SIZE_CHANGED))},onMoveEnd:function(){this.hasContext?this.movedWithContext=!0:this.isDrawMode||this.noNewRegion?this.noNewRegion=!1:this.sendRegionOfInterest()},sendRegionOfInterest:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.waitingGeolocation){var e=null,t=Object(wn["l"])(this.view.getCenter(),wt["d"].PROJ_EPSG_3857,wt["d"].PROJ_EPSG_4326);Math.abs(t[0])>180&&(t[0]%=180,this.view.animate({center:Object(wn["l"])(t,wt["d"].PROJ_EPSG_4326,wt["d"].PROJ_EPSG_3857),duration:500}));try{var o=Object(wn["m"])(this.map.getView().calculateExtent(this.map.getSize()),"EPSG:3857","EPSG:4326");if(o[0]<-180||o[1]<-90||o[2]>180||o[3]>90)return void this.setCrossingIDL(!0);this.setCrossingIDL(!1),e=p["a"].REGION_OF_INTEREST(o,this.session)}catch(e){console.error(e),this.addToKexplorerLog({type:c["x"].TYPE_ERROR,payload:{message:e.message,attach:e}})}e&&e.body&&(this.sendStompMessage(e.body),this.saveLocation&&G["a"].set(c["Q"].COOKIE_MAPDEFAULT,{center:this.view.getCenter(),zoom:this.view.getZoom()},{expires:30,path:"/",secure:!0}))}},findExistingLayerById:function(e){if(this.layers&&null!==this.layers){var t=this.layers.getArray();return t.filter(function(t){return null===t.get("id")?null===e:t.get("id").startsWith(e)})}return[]},findModificationTimestamp:function(e,t){if(-1!==t){var o=null===e?this.timeEvents:this.timeEventsOfObservation(e);return o.length>0?o.reduce(function(e,o){var n=t-o.timestamp;return n<=0?e:-1===e||n0)){e.next=7;break}if(c="".concat(o.id,"T").concat(i),p=s.find(function(e){return e.get("id")===c}),!p){e.next=7;break}return e.abrupt("return",{founds:s,layer:p});case 7:return e.prev=7,console.debug("Creating layer: ".concat(o.label," with timestamp ").concat(i)),e.next=11,Object(Ue["k"])(o,{projection:this.proj,timestamp:i,realTimestamp:a?i:this.timestamp});case 11:return l=e.sent,s&&s.length>0?l.setZIndex(o.zIndex):(this.zIndexCounter+=2,o.zIndex=this.zIndexCounter+o.zIndexOffset,l.setZIndex(o.zIndex)),this.layers.push(l),s.push(l),e.abrupt("return",{founds:s,layer:l});case 18:return e.prev=18,e.t0=e["catch"](7),console.error(e.t0.message),this.$q.notify({message:e.t0.message,type:"negative",icon:"mdi-alert-circle",timeout:3e3}),e.abrupt("return",null);case 23:case"end":return e.stop()}},e,this,[[7,18]])}));return function(t){return e.apply(this,arguments)}}(),bufferLayerImages:function(e){var t=this;e.stop>=this.scaleReference.end&&(e.stop=this.scaleReference.end-1),console.debug("Ask preload from ".concat(e.start," to ").concat(e.stop));var o=this.timeEvents.filter(function(t){return t.timestamp>e.start&&t.timestamp<=e.stop}),n=o.length;if(n>0){var i=function e(i){var r=t.observations.find(function(e){return e.id===o[i].id});r&&t.findLayerById({observation:r,timestamp:o[i].timestamp,isBuffer:!0}).then(function(t){var o=t.layer,r=o.getSource().image_;r&&0===r.state?(r.load(),o.getSource().on("imageloadend",function(t){t.image;++i125&&(this.hasExtentMap=!0,this.$nextTick(function(){e.extentMap.addLayer(e.proposedContextLayer),e.extentMap.getView().fit(e.proposedContext,{padding:[10,10,10,10],constrainResolution:!1})}))}},drawContext:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null!==t&&(this.layers.clear(),this.lockedObservations=[],this.previousTopLayer=null,null!==this.contextLayer?(this.map.removeLayer(this.contextLayer),this.contextLayer=null):this.baseLayers.removeMask()),null===this.contextGeometry)return console.debug("No context, send region of interest"),void this.sendRegionOfInterest();this.contextGeometry instanceof Array?(this.contextLayer=new En["a"]({id:this.contextId,source:new Tn["a"]({features:[new In["a"]({geometry:new pi["a"](this.contextGeometry),name:this.contextLabel,id:this.contextId})]}),style:Object(He["d"])(wt["e"].POINT_CONTEXT_SVG_PARAM,this.contextLabel)}),this.map.addLayer(this.contextLayer),this.view.setCenter(this.contextGeometry)):(this.baseLayers.setMask(this.contextGeometry),this.view.fit(this.contextGeometry,{padding:[10,10,10,10],constrainResolution:!1}))},drawObservations:function(){var e=j()(regeneratorRuntime.mark(function e(){var t,o,n=this;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:this.observations&&this.observations.length>0&&(this.lockedObservations=this.lockedObservations.filter(function(e){return e.visible}),t=this.observations.find(function(e){return e.top&&Object(Ue["n"])(e)}),t&&(this.previousTopLayer&&this.previousTopLayer.visible?t.id!==this.previousTopLayer.id&&(this.lockedObservations=this.lockedObservations.filter(function(e){return e.id!==t.id}),this.lockedObservations.push(this.previousTopLayer),this.previousTopLayer=t):this.previousTopLayer=t),o="undefined"!==typeof this.observations.find(function(e){return e.visible&&e.loading}),this.observations.forEach(function(e){if(!e.isContainer){var t=n.findModificationTimestamp(e.id,n.timestamp);n.findLayerById({observation:e,timestamp:t}).then(function(i){if(null!==i){var r=i.founds,a=i.layer;a.setOpacity(e.layerOpacity),a.setVisible(e.visible);var s=e.zIndex;if(e.top?s=e.zIndexOffset+wt["d"].ZINDEX_TOP:n.lockedObservationsIds.length>0&&n.lockedObservationsIds.includes(e.id)&&(s=Math.max(a.get("zIndex")-10,1)),o||(a.setZIndex(s),e.visible&&e.top&&Object(Ue["n"])(e)&&(null===n.topLayer||n.topLayer.id!=="".concat(e.id,"T").concat(t))?n.setTopLayer({id:"".concat(e.id,"T").concat(t),desc:e.label}):e.visible&&e.top||null===n.topLayer||n.topLayer.id!=="".concat(e.id,"T").concat(t)||n.setTopLayer(null)),r.length>0)if(e.visible){if(-1===t||-1!==e.tsImages.indexOf("T".concat(t))){var c=[];r.forEach(function(o,n){o.get("id")==="".concat(e.id,"T").concat(t)?o.setVisible(!0):o.getVisible()&&c.push(n)}),c.length>0&&c.forEach(function(e){n.$nextTick(function(){r[e].setVisible(!1)})})}}else r.forEach(function(e){e.setVisible(!1)});else console.debug("No multiple layer for observation ".concat(e.id,", refreshing")),a.setVisible(e.visible)}})}}),null===this.topLayer&&this.closePopup());case 1:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),sendSpatialLocation:function(e){if(e){var t=this.wktInstance.writeFeaturesText(e,{dataProjection:"EPSG:4326",featureProjection:"EPSG:3857"});this.sendStompMessage(p["a"].SPATIAL_LOCATION({wktShape:t},this.session).body),this.setCrossingIDL(!1)}else this.sendStompMessage(p["a"].SPATIAL_LOCATION({wktShape:""},this.session).body)},doGeolocation:function(){var e=this;null!==this.geolocationId&&navigator.geolocation.clearWatch(this.geolocationId),this.geolocationId=navigator.geolocation.watchPosition(function(t){e.center=Object(wn["l"])([t.coords.longitude,t.coords.latitude],wt["d"].PROJ_EPSG_4326,wt["d"].PROJ_EPSG_3857),e.stopGeolocation()},function(t){switch(t.code){case t.PERMISSION_DENIED:e.geolocationIncidence=e.$t("messages.geolocationErrorPermissionDenied");break;case t.POSITION_UNAVAILABLE:e.geolocationIncidence=e.$t("messages.geolocationErrorPermissionDenied");break;case t.TIMEOUT:e.geolocationIncidence=e.$t("messages.geolocationErrorPermissionDenied");break;default:e.geolocationIncidence=e.$t("messages.geolocationErrorPermissionDenied");break}},{enableHighAccuracy:!0,maximumAge:3e4,timeout:6e4})},retryGeolocation:function(){this.geolocationIncidence=null,this.doGeolocation()},stopGeolocation:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];navigator.geolocation.clearWatch(this.geolocationId),this.$nextTick(function(){e.waitingGeolocation=!1,t&&e.sendRegionOfInterest()})},closePopup:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];!e&&this.mapSelection.locked||(this.setMapSelection(c["g"].EMPTY_MAP_SELECTION),this.popupOverlay.setPosition(void 0))},setMapInfoPoint:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.event,o=void 0===t?null:t,n=e.locked,i=void 0!==n&&n,r=e.layer,s=void 0===r?null:r;if(this.exploreMode||null!==this.topLayer){var p,l;if(null!==o?(p=o.coordinate,i&&(o.preventDefault(),o.stopPropagation())):(i=this.mapSelection.locked,p=this.mapSelection.pixelSelected),null===s){l=this.exploreMode?"".concat(this.observationInfo.id,"T").concat(this.findModificationTimestamp(this.observationInfo.id,this.timestamp)):this.topLayer.id;var u=this.findExistingLayerById(l),b=Fe()(u,1);s=b[0]}else l=s.get("id");var d=new $n["a"]({id:"cl_".concat(l),source:s.getSource()});this.setMapSelection(a()({pixelSelected:p,timestamp:this.timestamp,layerSelected:d},!this.exploreMode&&{observationId:this.getObservationIdFromLayerId(l)},{locked:i}))}else this.$eventBus.$emit(c["h"].VIEWER_CLICK,o)},needFitMapListener:function(e){var t=this,o=e.mainIdx,n=void 0===o?null:o,i=e.geometry,r=void 0===i?null:i,a=e.withPadding,s=void 0===a||a;null===r&&this.mainViewer.name===c["N"].DATA_VIEWER.name&&this.contextGeometry&&null!==this.contextGeometry&&(r=this.contextGeometry),null!==r?(null!==n&&this.idx===n||(this.storedZoom=this.view.getZoom()),setTimeout(function(){r instanceof Array&&2===r.length?t.view.setCenter(r):t.view.fit(r,{padding:s?[10,10,10,10]:[0,0,0,0],constrainResolution:!1,callback:function(){t.movedWithContext=!1}})},200)):null!==this.storedZoom&&(this.view.setZoom(this.storedZoom),this.storedZoom=null)},observationInfoClosedListener:function(){this.mapSelection.locked||this.closePopup()},sendRegionOfInterestListener:function(){this.sendRegionOfInterest()},findTopLayerFromClick:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=[],n=[];return this.map.forEachLayerAtPixel(e.pixel,function(e){n[e.getType()]&&n[e.getType()]>e.get("zIndex")||(n[e.getType()]=e.get("zIndex"),o.push({layer:e,type:e.getType()}))},{layerFilter:function(e){return"TILE"!==e.getType()&&(!t||"VECTOR"!==e.getType())}}),o},getObservationIdFromLayerId:function(e){return e&&""!==e?e.substr(0,e.indexOf("T")):e},copyCoordinates:function(e){var t=this.coordinatesControl.element.innerText,o=document.createElement("textarea");o.value=t,o.style.top="0",o.style.left="0",o.style.position="fixed",document.body.appendChild(o),o.focus(),o.select();try{document.execCommand("copy");this.$q.notify({message:this.$t("messages.copiedToClipboard"),type:"info",icon:"mdi-information",timeout:1e3})}catch(e){console.error("Oops, unable to copy",e)}document.body.removeChild(o)},setCoordinatesControl:function(){var e=document.querySelector(".ol-mouse-position");this.viewCoordinates?this.map.addControl(this.coordinatesControl):e&&this.map.removeControl(this.coordinatesControl),G["a"].set(c["Q"].COOKIE_VIEW_COORDINATES,this.viewCoordinates,{expires:365,path:"/",secure:!0})}}),watch:{contextGeometry:function(e,t){this.drawContext(e,t),null!==e||this.movedWithContext||this.needFitMapListener({geometry:t,withPadding:!1}),this.movedWithContext=!1},observations:{handler:function(){var e=this;this.$nextTick(function(){return e.drawObservations()})},deep:!0},timestamp:function(e){var t=this.findModificationTimestamp(null,e);t!==this.lastModificationLoaded&&(this.lastModificationLoaded=t,this.drawObservations())},center:function(){this.view.setCenter(this.center)},mapSelection:function(e){if("undefined"!==typeof e&&null!==e&&null!==e.pixelSelected){if(this.mapSelectionMarker.setPosition(e.pixelSelected),null!==this.topLayer){var t=Object(wn["l"])(e.pixelSelected,"EPSG:3857","EPSG:4326");this.popupContent="

".concat(this.topLayer.desc,'

\n
\n

').concat(e.value,'

\n
\n

').concat(t[1].toFixed(6),", ").concat(t[0].toFixed(6),"

"),this.popupOverlay.setPosition(e.pixelSelected)}}else this.closePopup(),this.mapSelectionMarker.setPosition(void 0)},hasContext:function(e){this.uploadConfig.refId=this.contextId,e?this.setDrawMode(!1):(this.sendRegionOfInterest(),this.popupOverlay.setPosition(void 0))},proposedContext:function(e){var t=this;this.drawProposedContext(),this.$nextTick(function(){t.setSpinner(a()({},c["I"].SPINNER_STOPPED,{owner:"KlabSearch"}))})},topLayer:function(e){null!==e&&this.mapSelection.locked?this.setMapInfoPoint():this.closePopup()},hasExtentMap:function(){var e=this;this.hasExtentMap&&this.$nextTick(function(){e.extentMap.updateSize()}),this.setShowSettings(!this.hasExtentMap)},viewCoordinates:function(){this.setCoordinatesControl()}},created:function(){this.waitingGeolocation="geolocation"in navigator&&!G["a"].has(c["Q"].COOKIE_MAPDEFAULT)},mounted:function(){var e=this;this.baseLayers=wt["a"],this.baseLayers.layers.forEach(function(t){t.get("name")===e.$baseLayer&&(t.setVisible(!0),e.visibleBaseLayer=t);var o=t;o.on("propertychange",function(t){e.visibleBaseLayer=o,"propertychange"===t.type&&"visible"===t.key&&t.target.get(t.key)&&G["a"].set(c["Q"].COOKIE_BASELAYER,o.get("name"),{expires:30,path:"/",secure:!0})})});var t=wt["c"].MAPBOX_GOT;t.setVisible(!0);var o=new Kn["default"]({title:"BaseLayers",layers:this.baseLayers.layers});this.map=new Ao["a"]({view:new mo["a"]({center:this.center,zoom:this.zoom}),layers:o,target:"map".concat(this.idx),loadTilesWhileAnimating:!0,loadTilesWhileInteracting:!0}),this.map.on("moveend",this.onMoveEnd),this.map.on("click",function(n){if(e.viewCoordinates&&n.originalEvent.ctrlKey&&!n.originalEvent.altKey)e.copyCoordinates(n);else{if(e.isDrawMode)return n.preventDefault(),void n.stopPropagation();if(n.originalEvent.ctrlKey&&n.originalEvent.altKey&&n.originalEvent.shiftKey){var i=o.getLayersArray().slice(-1)[0];i&&"mapbox_got"===i.get("name")?(o.getLayers().pop(),e.baseLayers.layers.forEach(function(t){t.get("name")===e.$baseLayer&&(t.setVisible(!0),e.visibleBaseLayer=t)})):(o.getLayers().push(t),e.$q.notify({message:e.$t("messages.youHaveGOT"),type:"info",icon:"mdi-information",timeout:1500}))}e.clicksOnMap+=1,setTimeout(j()(regeneratorRuntime.mark(function t(){var o;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:1===e.clicksOnMap&&(o=e.findTopLayerFromClick(n,!1),o.length>0&&o.forEach(function(t){var i=t.layer.get("id");"VECTOR"===t.type?(e.putObservationOnTop(e.getObservationIdFromLayerId(i)),1===o.length&&e.closePopup()):e.topLayer&&i===e.topLayer.id?e.setMapInfoPoint({event:n}):(e.putObservationOnTop(e.getObservationIdFromLayerId(i)),e.setMapInfoPoint({event:n,layer:t.layer}))}),e.clicksOnMap=0);case 1:case"end":return t.stop()}},t)})),300)}}),this.map.on("dblclick",function(t){if(e.isDrawMode)return t.preventDefault(),void t.stopPropagation();var o=e.findTopLayerFromClick(t);if(1===o.length){var n=o[0].layer.get("id");e.topLayer&&n===e.topLayer.id?e.setMapInfoPoint({event:t,locked:!0}):(e.putObservationOnTop(e.getObservationIdFromLayerId(n)),e.setMapInfoPoint({event:t,locked:!0,layer:o[0].layer})),e.clicksOnMap=0}else console.warn("Multiple layer but must be one")}),this.map.on("contextmenu",function(t){var o=e.findTopLayerFromClick(t,!1);o.length>0&&(e.contextMenuObservationId=e.getObservationIdFromLayerId(o[0].layer.get("id")),t.preventDefault())}),this.view=this.map.getView(),this.proj=this.view.getProjection(),this.map.addLayer(new Kn["default"]({layers:this.layers})),this.layerSwitcher=new si.a,this.map.addControl(this.layerSwitcher),this.mapSelectionMarker=new ri({element:document.getElementById("msm-".concat(this.idx)),positioning:"center-center"}),this.map.addOverlay(this.mapSelectionMarker),this.popupOverlay=new ri({element:document.getElementById("mv-popup"),autoPan:!0,autoPanAnimation:{duration:250}}),this.map.addOverlay(this.popupOverlay),this.extentMap=new Ao["a"]({view:new mo["a"]({center:[0,0],zoom:12}),target:"mv-extent-map",layers:[wt["c"].OSM_LAYER],controls:[]}),this.coordinatesControl=new fi({coordinateFormat:Object(zi["c"])(6),projection:wt["d"].PROJ_EPSG_4326,undefinedHTML:"..."}),this.setCoordinatesControl(),this.drawContext(),this.drawObservations(),this.drawProposedContext(),this.waitingGeolocation&&this.doGeolocation(),this.setShowSettings(!this.hasExtentMap),this.$eventBus.$on(c["h"].NEED_FIT_MAP,this.needFitMapListener),this.$eventBus.$on(c["h"].OBSERVATION_INFO_CLOSED,this.observationInfoClosedListener),this.$eventBus.$on(c["h"].SEND_REGION_OF_INTEREST,this.sendRegionOfInterestListener),this.$eventBus.$on(c["h"].NEED_LAYER_BUFFER,this.bufferLayerImages)},beforeDestroy:function(){this.$eventBus.$off(c["h"].NEED_FIT_MAP,this.needFitMapListener),this.$eventBus.$off(c["h"].OBSERVATION_INFO_CLOSED,this.observationInfoClosedListener),this.$eventBus.$off(c["h"].SEND_REGION_OF_INTEREST,this.sendRegionOfInterestListener),this.$eventBus.$off(c["h"].NEED_LAYER_BUFFER,this.bufferLayerImages)}}),Ai=Oi,mi=(o("c612"),Object(A["a"])(Ai,An,mn,!1,null,null,null));mi.options.__file="MapViewer.vue";var vi=mi.exports,gi=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"fit gv-container",on:{wheel:e.changeForce}},[0===e.nodes.length?o("q-spinner",{attrs:{color:"mc-main",size:40}}):e._e(),o("q-resize-observable",{on:{resize:e.resize}}),o("d3-network",{ref:"gv-graph-"+e.idx,attrs:{"net-nodes":e.nodes,"net-links":e.links,options:e.options}})],1)},yi=[];gi._withStripped=!0;var qi=o("a5b7"),_i=o.n(qi),Wi={name:"GraphViewer",components:{D3Network:_i.a},props:{idx:{type:Number,required:!0}},data:function(){var e=Object.assign({},c["R"]);return e},computed:{observation:function(){var e=this.$store.getters["data/observationsOfViewer"](this.idx);return e.length>0?e[0]:null}},methods:{loadGraph:function(){var e=this,t="".concat("").concat(L["c"].REST_SESSION_VIEW,"data/").concat(this.observation.id);Object(Ue["h"])("gr_".concat(this.observation.id),t,{params:{format:"NETWORK",outputFormat:"json"}},function(t,o){if(t&&"undefined"!==typeof t.data){var n=t.data,i=n.nodes,r=n.edges;e.nodes=i.map(function(e){return{id:e.id,name:e.label,nodeSym:"~assets/klab-spinner.svg"}}),e.links=r.map(function(e){return{id:e.id,name:e.label,sid:e.source,tid:e.target}}),e.resize()}o()})},resize:function(){var e={w:this.$el.clientWidth,h:this.$el.clientHeight};this.updateOptions("size",e)},changeForce:function(e){if(e.preventDefault(),e&&e.deltaY){var t=this.options.force;if(e.deltaY<0&&t<5e3)t+=50;else{if(!(e.deltaY>0&&t>50))return;t-=50}this.updateOptions("force",t)}},updateOptions:function(e,t){this.options=a()({},this.options,d()({},e,t))},reset:function(){this.selected={},this.linksSelected={},this.nodes=[],this.links=[],this.$set(this.$data,"options",c["R"].options)},viewerClosedListener:function(e){var t=e.idx;t===this.idx&&this.$eventBus.$emit(c["h"].SHOW_NODE,{nodeId:this.observation.id,state:!1})}},watch:{observation:function(e){null!==e&&0===this.nodes.length?this.loadGraph():null===e&&this.reset()}},mounted:function(){this.options.size.w=this.$el.clientWidth,this.options.size.h=this.$el.clientHeight,this.$eventBus.$on(c["h"].VIEWER_CLOSED,this.viewerClosedListener)},beforeDestroy:function(){this.$eventBus.$off(c["h"].VIEWER_CLOSED,this.viewerClosedListener)}},Ri=Wi,wi=(o("6420"),o("9198"),Object(A["a"])(Ri,gi,yi,!1,null,null,null));wi.options.__file="GraphViewer.vue";var Li=wi.exports,Ci=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},Si=[function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"fit uv-container"},[o("h4",[e._v("Under construction")])])}];Ci._withStripped=!0;var Ei={name:"UnknownViewer",props:{idx:{type:Number,required:!0}}},Ti=Ei,xi=(o("1fac"),Object(A["a"])(Ti,Ci,Si,!1,null,null,null));xi.options.__file="UnknownViewer.vue";var Ni=xi.exports,Bi=[],ki={components:{MapViewer:vi,GraphViewer:Li,UnknownViewer:Ni},computed:a()({},Object(s["c"])("view",["dataViewers","mainDataViewerIdx","dataViewers"])),methods:a()({},Object(s["b"])("view",["setMainDataViewer"]),{setMain:function(e){this.setMainDataViewer({viewerIdx:e}),this.$eventBus.$emit(c["h"].VIEWER_SELECTED,{idx:e})},closeViewer:function(e){this.setMainDataViewer({viewerIdx:e.idx,viewerType:e.type,visible:!1}),this.$eventBus.$emit(c["h"].VIEWER_CLOSED,{idx:e.idx})},viewerStyle:function(e){return e.main?"":e.type.hideable&&!e.visible?"display: none":(Bi.push(e),0===Bi.length?"left: 0":"left: ".concat(200*(Bi.length-1)+10*(Bi.length-1),"px"))},capitalize:function(e){return Object(He["a"])(e)}}),watch:{mainDataViewerIdx:function(){Bi=[]},dataViewers:{handler:function(e){var t=this,o=e.length>0?e.find(function(e){return e.main}):null;this.$nextTick(function(){t.$eventBus.$emit(c["h"].NEED_FIT_MAP,a()({},null!==o&&"undefined"!==typeof o&&{idx:o.idx}))})},deep:!0}},beforeUpdate:function(){Bi=[]},mounted:function(){Bi=[]}},Pi=ki,Di=(o("f164"),Object(A["a"])(Pi,zn,On,!1,null,"216658d8",null));Di.options.__file="DataViewer.vue";var Ii=Di.exports,Xi=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("q-layout",{staticClass:"kd-main-container print-hide",style:{width:e.containerStyle.width+"px",height:e.containerStyle.height+"px"},attrs:{view:"hHh Lpr fFf",container:""}},[o("q-layout-header",[o("documentation-header")],1),o("q-layout-drawer",{attrs:{side:"left",breakpoint:0,"content-class":["klab-left","no-scroll"],width:e.LEFTMENU_CONSTANTS.LEFTMENU_DOCUMENTATION_SIZE,overlay:!1},model:{value:e.leftMenu,callback:function(t){e.leftMenu=t},expression:"leftMenu"}},[o("documentation-tree")],1),o("q-page-container",[o("q-page",{staticClass:"column"},[o("div",{staticClass:"col row full-height kd-container"},[o("documentation-viewer")],1)])],1),o("q-modal",{staticClass:"kd-modal",attrs:{"no-backdrop-dismiss":"","no-esc-dismiss":""},on:{show:e.launchPrint},model:{value:e.print,callback:function(t){e.print=t},expression:"print"}},[o("documentation-viewer",{attrs:{"for-printing":!0}}),o("q-btn",{staticClass:"dv-print-hide print-hide",attrs:{icon:"mdi-close",round:"",flat:"",size:"sm",color:"mc-main"},on:{click:function(t){e.print=!1}}})],1)],1)},ji=[];Xi._withStripped=!0;var Fi=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"dh-container full-width row items-center"},[o("div",{staticClass:"dh-tabs col justify-start"},[o("q-tabs",{attrs:{color:"mc-main","underline-color":"mc-main"},model:{value:e.selectedTab,callback:function(t){e.selectedTab=t},expression:"selectedTab"}},[o("q-tab",{staticClass:"klab-tab",attrs:{slot:"title",name:e.DOCUMENTATION_VIEWS.REPORT,icon:"mdi-text-box-outline",alert:-1!==e.reloadViews.indexOf(e.DOCUMENTATION_VIEWS.REPORT)},slot:"title"}),o("q-tab",{staticClass:"klab-tab",attrs:{slot:"title",name:e.DOCUMENTATION_VIEWS.TABLES,icon:"mdi-table",alert:-1!==e.reloadViews.indexOf(e.DOCUMENTATION_VIEWS.TABLES)},slot:"title"}),o("q-tab",{staticClass:"klab-tab",attrs:{slot:"title",name:e.DOCUMENTATION_VIEWS.FIGURES,icon:"mdi-image",alert:-1!==e.reloadViews.indexOf(e.DOCUMENTATION_VIEWS.FIGURES)},slot:"title"}),o("q-tab",{staticClass:"klab-tab",attrs:{slot:"title",name:e.DOCUMENTATION_VIEWS.RESOURCES,icon:"mdi-database-outline",alert:-1!==e.reloadViews.indexOf(e.DOCUMENTATION_VIEWS.RESOURCES)},slot:"title"})],1)],1),o("div",{staticClass:"dh-actions justify-end"},[o("q-btn",{staticClass:"dh-button",attrs:{icon:"mdi-refresh",flat:"",color:"mc-main"},on:{click:e.forceReload}},[o("q-tooltip",{attrs:{offset:[0,8],self:"bottom middle",anchor:"top middle",delay:1e3}},[e._v(e._s(e.$t("label.appReload")))])],1),o("q-btn",{staticClass:"dh-button",attrs:{icon:"mdi-printer",flat:"",color:"mc-main"},on:{click:e.print}},[o("q-tooltip",{attrs:{offset:[0,8],self:"bottom middle",anchor:"top middle",delay:1e3}},[e._v(e._s(e.$t("label.appPrint")))])],1),e.selectedTab===e.DOCUMENTATION_VIEWS.TABLES?[o("q-btn",{staticClass:"dh-button",attrs:{disable:e.tableFontSize-1<8,flat:"",icon:"mdi-format-font-size-decrease",color:"mc-main"},on:{click:function(t){e.tableFontSizeChange(-1)}}}),o("q-btn",{staticClass:"dh-button",attrs:{disable:e.tableFontSize+1>50,flat:"",icon:"mdi-format-font-size-increase",color:"mc-main"},on:{click:function(t){e.tableFontSizeChange(1)}}})]:e._e()],2),e.hasSpinner?o("div",{staticClass:"dh-spinner col-1 justify-end"},[o("transition",{attrs:{appear:"","enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut"}},[o("div",{staticClass:"klab-spinner-div item-center",attrs:{id:"kd-spinner"}},[o("klab-spinner",{attrs:{id:"spinner-documentation","store-controlled":!0,size:30,ball:22,wrapperId:"kd-spinner"}})],1)])],1):e._e()])},Hi=[];Fi._withStripped=!0;var Ui={name:"DocumentationHeader",components:{KlabSpinner:v},data:function(){return{DOCUMENTATION_VIEWS:c["n"]}},computed:a()({},Object(s["c"])("stomp",["hasTasks"]),Object(s["c"])("view",["leftMenuState","hasHeader","reloadViews","tableFontSize"]),{hasSpinner:function(){return!(this.leftMenuState!==c["v"].LEFTMENU_HIDDEN&&!this.hasHeader)},selectedTab:{get:function(){return this.$store.getters["view/documentationView"]},set:function(e){this.$store.dispatch("view/setDocumentationView",e,{root:!0}),this.setDocumentationSelected(null)}}}),methods:a()({},Object(s["b"])("view",["setTableFontSize","setDocumentationSelected"]),{tableFontSizeChange:function(e){this.setTableFontSize(this.tableFontSize+e),this.$eventBus.$emit(c["h"].FONT_SIZE_CHANGE,"table")},forceReload:function(){this.$eventBus.$emit(c["h"].REFRESH_DOCUMENTATION,{force:!0})},print:function(){this.$eventBus.$emit(c["h"].PRINT_DOCUMENTATION)}})},Vi=Ui,Gi=(o("d18c"),Object(A["a"])(Vi,Fi,Hi,!1,null,null,null));Gi.options.__file="DocumentationHeader.vue";var Ki=Gi.exports,$i=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"dt-container relative-position klab-menu-component"},[o("div",{staticClass:"dt-doc-container simplebar-vertical-only"},[o("div",{directives:[{name:"show",rawName:"v-show",value:0===e.tree.length,expression:"tree.length === 0"}],staticClass:"dt-tree-empty"},[e._v(e._s(e.$t("label.noDocumentation")))]),o("klab-q-tree",{attrs:{nodes:e.tree,"node-key":"id","check-click":!1,selected:e.selected,expanded:e.expanded,ticked:e.ticked,"text-color":"white","control-color":"white",color:"white",dark:!0,"no-nodes-label":e.$t("label.noNodes"),"no-results-label":e.$t("label.noNodes"),filter:e.documentationView,"filter-method":e.filter},on:{"update:selected":function(t){e.selected=t},"update:expanded":function(t){e.expanded=t},"update:ticked":function(t){e.ticked=t}}})],1),o("q-resize-observable",{on:{resize:function(t){e.$emit("resized")}}})],1)},Yi=[];$i._withStripped=!0;var Ji={name:"DocumentationTree",components:{KlabQTree:no},data:function(){return{expanded:[],selected:null,ticked:[],DOCUMENTATION_VIEWS:c["n"]}},computed:a()({},Object(s["c"])("data",["documentationTrees"]),Object(s["c"])("view",["documentationView","documentationSelected"]),{tree:function(){var e=this,t=this.documentationTrees.find(function(t){return t.view===e.documentationView}).tree||[];return t}}),methods:a()({},Object(s["b"])("view",["setDocumentationSelected"]),{filter:function(e,t){return t!==c["n"].REPORT||e.type!==c["l"].PARAGRAPH&&e.type!==c["l"].CITATION}}),watch:{selected:function(e){this.setDocumentationSelected(e)},documentationSelected:function(){this.selected=this.documentationSelected}},mounted:function(){this.selected=this.documentationSelected}},Qi=Ji,Zi=(o("5823"),Object(A["a"])(Qi,$i,Yi,!1,null,null,null));Zi.options.__file="DocumentationTree.vue";var er=Zi.exports,tr=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"dv-documentation"},[o("div",{staticClass:"dv-documentation-wrapper"},[0===e.content.length?[o("div",{staticClass:"dv-empty-documentation"},[e._v(e._s(e.$t("messages.noDocumentation")))])]:[o("div",{staticClass:"dv-content"},e._l(e.content,function(t){return o("div",{key:t.id,staticClass:"dv-item"},[t.type===e.DOCUMENTATION_TYPES.SECTION?[o("h1",{attrs:{id:e.getId(t.id)}},[e._v(e._s(t.idx)+" "+e._s(t.title))]),t.subtitle?o("h4",[e._v(e._s(t.subtitle))]):e._e()]:t.type===e.DOCUMENTATION_TYPES.PARAGRAPH?o("div",{staticClass:"dv-paragraph",domProps:{innerHTML:e._s(t.bodyText)}}):t.type===e.DOCUMENTATION_TYPES.REFERENCE?o("div",{staticClass:"dv-reference",attrs:{id:e.getId(t.id)},domProps:{innerHTML:e._s(t.bodyText)},on:{click:function(o){e.selectElement(".link-"+t.id)}}}):t.type===e.DOCUMENTATION_TYPES.CITATION?o("span",{staticClass:"dv-citation"},[o("a",{attrs:{href:"#",title:t.bodyText}},[e._v(e._s(t.bodyText))])]):t.type===e.DOCUMENTATION_TYPES.TABLE?o("div",{staticClass:"dv-table-container"},[o("div",{staticClass:"dv-table-title",attrs:{id:e.getId(t.id)}},[e._v(e._s(e.$t("label.reportTable")+" "+t.idx+". "+t.title))]),o("div",{staticClass:"dv-table",style:{"font-size":e.tableFontSize+"px"},attrs:{id:e.getId(t.id)+"-table"}}),o("div",{staticClass:"dv-table-bottom text-right print-hide"},[o("q-btn",{staticClass:"dv-button",attrs:{flat:"",color:"mc-main",icon:"mdi-content-copy"},on:{click:function(o){e.tableCopy(t.id)}}},[o("q-tooltip",{attrs:{anchor:"bottom middle",self:"top middle",offset:[0,5]}},[e._v(e._s(e.$t("label.tableCopy")))])],1),o("q-btn",{staticClass:"dv-button",attrs:{flat:"",color:"mc-main",icon:"mdi-download"},on:{click:function(o){e.tableDownload(t.id)}}},[o("q-tooltip",{attrs:{anchor:"bottom middle",self:"top middle",offset:[0,5]}},[e._v(e._s(e.$t("label.tableDownloadAsXSLX")))])],1)],1)]):t.type===e.DOCUMENTATION_TYPES.FIGURE?o("div",{staticClass:"dv-figure-container",attrs:{id:e.getId(t.id)}},[o("div",{staticClass:"dv-figure-wrapper col"},[o("div",{staticClass:"content-center row"},[o("div",{staticClass:"dv-figure-content col"},[o("div",{staticClass:"dv-figure-caption-wrapper row items-end"},[o("div",{staticClass:"dv-figure-caption col"},[e._v(e._s(e.$t("label.reportFigure")+" "+t.idx+(""!==t.figure.caption?". "+t.figure.caption:"")))]),t.figure.timeString&&""!==t.figure.timeString?o("div",{staticClass:"dv-figure-timestring col"},[e._v(e._s(t.figure.timeString))]):e._e()])]),o("div",{staticClass:"dv-col-fill col"})]),o("div",{staticClass:"row content-center"},[o("div",{staticClass:"dv-figure-content col"},[o("div",{directives:[{name:"show",rawName:"v-show",value:e.loadingImages.includes(t.id),expression:"loadingImages.includes(doc.id)"}],staticClass:"dv-figure-wait row items-center",style:{height:e.waitHeight+"px"}},[o("q-spinner",{staticClass:"col",attrs:{size:"3em"}})],1),o("div",{staticClass:"dv-figure-image col",class:"dv-figure-"+e.documentationView.toLowerCase()},[o("img",{staticClass:"dv-figure-img",class:[e.forPrinting?"dv-figure-print":"dv-figure-display"],attrs:{src:"",id:"figimg-"+e.documentationView+"-"+e.getId(t.id),alt:t.figure.caption}})])]),o("div",{staticClass:"dv-figure-legend col"},[o("histogram-viewer",{staticClass:"dv-figure-colormap",attrs:{dataSummary:t.figure.dataSummary,colormap:t.figure.colormap,id:e.getId(t.observationId),direction:"vertical",tooltips:!1,legend:!0}})],1)]),o("div",{staticClass:"row content-center"},[o("div",{staticClass:"dv-figure-content col"},[o("div",{staticClass:"dv-figure-time col"},[o("figure-timeline",{attrs:{start:t.figure.startTime,end:t.figure.endTime,"raw-slices":t.figure.timeSlices,observationId:t.figure.observationId},on:{timestampchange:function(o){e.changeTime(o,t.id)}}})],1)]),o("div",{staticClass:"dv-col-fill col"})])])]):t.type===e.DOCUMENTATION_TYPES.MODEL?o("div",{staticClass:"dv-model-container"},[o("div",{staticClass:"dv-model-code",attrs:{id:e.getId(t.id)},domProps:{innerHTML:e._s(e.getModelCode(t.bodyText))}})]):t.type===e.DOCUMENTATION_TYPES.RESOURCE?o("div",{staticClass:"dv-resource-container",attrs:{id:e.getId(t.id)}},[o("div",{staticClass:"dv-resource-title-container"},[o("div",{staticClass:"dv-resource-title"},[e._v(e._s(t.title))]),o("div",{staticClass:"dv-resource-originator"},[e._v(e._s(t.resource.originatorDescription))]),t.resource.keywords.length>0?o("div",{staticClass:"dv-resource-keywords text-right"},e._l(t.resource.keywords,function(n,i){return o("div",{key:i,staticClass:"dv-resource-keyword"},[o("span",{staticClass:"dv-resource-keyword"},[e._v(e._s(n))]),i0?o("div",{staticClass:"dv-resource-authors"},e._l(t.resource.authors,function(n,i){return o("div",{key:i,staticClass:"dv-resource-author-wrapper"},[o("span",{staticClass:"dv-resource-author"},[e._v(e._s(n))]),i0&&void 0!==arguments[0]?arguments[0]:{},t=e.view,o=void 0===t?null:t,n=e.force,i=void 0!==n&&n;null===o&&(o=this.documentationView),(-1!==this.reloadViews.indexOf(o)||i)&&this.loadDocumentation(o)},printDocumentation:function(){this.print=!0},closePrint:function(){this.print=!1},launchPrint:function(){this.$eventBus.$emit(c["h"].FONT_SIZE_CHANGE,"table"),setTimeout(function(){window.print()},600)}}),watch:{documentationView:function(){var e=this;this.$nextTick(function(){e.load()})},reloadViews:function(){var e=this;this.$nextTick(function(){e.load()})}},activated:function(){this.load()},mounted:function(){this.$eventBus.$on(c["h"].REFRESH_DOCUMENTATION,this.load),this.$eventBus.$on(c["h"].PRINT_DOCUMENTATION,this.printDocumentation),window.addEventListener("afterprint",this.closePrint)},beforeDestroy:function(){this.$eventBus.$off(c["h"].REFRESH_DOCUMENTATION,this.load),this.$eventBus.$off(c["h"].PRINT_DOCUMENTATION,this.printDocumentation),window.removeEventListener("afterprint",this.closePrint)}},cr=sr,pr=(o("7bbc"),Object(A["a"])(cr,Xi,ji,!1,null,null,null));pr.options.__file="KlabDocumentation.vue";var lr=pr.exports,ur=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"dfv-wrapper",class:"dfv-"+e.flowchartSelected},[o("div",{staticClass:"fit no-padding with-background dfv-container",class:{"dfv-with-info":e.dataflowInfoOpen}},[o("div",{staticClass:"dfv-graph-info"},[o("div",{staticClass:"dfv-graph-type"},[o("span",[e._v(e._s(e.flowchart(e.flowchartSelected)?e.flowchart(e.flowchartSelected).label:"Nothing"))])]),o("div",{staticClass:"dfv-graph-selector"},[o("q-btn",{staticClass:"dfv-button",class:e.flowchartSelected===e.CONSTANTS.GRAPH_DATAFLOW?"dfv-graph-selected":"",attrs:{disable:!(e.flowchart(e.CONSTANTS.GRAPH_DATAFLOW).flowchart||e.flowchart(e.CONSTANTS.GRAPH_DATAFLOW).updatable),icon:"mdi-sitemap",flat:"",color:"app-main-color"},on:{click:function(t){e.flowchartSelected!==e.CONSTANTS.GRAPH_DATAFLOW&&e.setFlowchartSelected(e.CONSTANTS.GRAPH_DATAFLOW)}}},[o("q-tooltip",{attrs:{offset:[0,8],self:"bottom middle",anchor:"top middle",delay:500}},[e._v(e._s(e.flowchart(e.CONSTANTS.GRAPH_DATAFLOW).label))])],1),o("q-btn",{class:e.flowchartSelected===e.CONSTANTS.GRAPH_PROVENANCE_SIMPLIFIED?"dfv-graph-selected":"",attrs:{disable:!(e.flowchart(e.CONSTANTS.GRAPH_PROVENANCE_SIMPLIFIED).flowchart||e.flowchart(e.CONSTANTS.GRAPH_PROVENANCE_SIMPLIFIED).updatable),icon:"mdi-graph-outline",flat:"",color:"app-main-color"},on:{click:function(t){e.flowchartSelected!==e.CONSTANTS.GRAPH_PROVENANCE_SIMPLIFIED&&e.setFlowchartSelected(e.CONSTANTS.GRAPH_PROVENANCE_SIMPLIFIED)}}},[o("q-tooltip",{attrs:{offset:[0,8],self:"bottom middle",anchor:"top middle",delay:500}},[e._v(e._s(e.flowchart(e.CONSTANTS.GRAPH_PROVENANCE_SIMPLIFIED).label))])],1)],1)]),o("div",[o("div",{attrs:{id:"sprotty"}}),o("q-resize-observable",{attrs:{debounce:300},on:{resize:e.resize}})],1)]),e.dataflowInfoOpen?o("div",{staticClass:"dfv-info-container"},[o("dataflow-info",{attrs:{width:"infoWidth"}})],1):e._e()])},br=[];ur._withStripped=!0;o("98db");var dr=o("970b"),Mr=o.n(dr),hr=o("5bc30"),fr=o.n(hr),zr=o("8449"),Or=o("42d6"),Ar=o("e1c6"),mr=0,vr=200,gr=!1,yr=function(){function e(){Mr()(this,e)}return fr()(e,[{key:"handle",value:function(e){switch(e.kind){case Or["SelectCommand"].KIND:gr=!1,mr=setTimeout(function(){gr||zr["b"].$emit(c["h"].GRAPH_NODE_SELECTED,e),gr=!1},vr);break;case Or["SetViewportCommand"].KIND:clearTimeout(mr),gr=!0;break;default:console.warn("Unknow action: ".concat(e.kind));break}}},{key:"initialize",value:function(e){e.register(Or["SelectCommand"].KIND,this),e.register(Or["SetViewportCommand"].KIND,this)}}]),e}();function qr(e){return void 0!==e.source&&void 0!==e.target}function _r(e){return void 0!==e.sources&&void 0!==e.targets}Ar.decorate(Ar.injectable(),yr);var Wr=function(){function e(){this.nodeIds=new Set,this.edgeIds=new Set,this.portIds=new Set,this.labelIds=new Set,this.sectionIds=new Set,this.isRestored=!1}return e.prototype.transform=function(e){var t,o,n=this,i={type:"graph",id:e.id||"root",children:[]};if(e.restored&&(this.isRestored=!0),e.children){var r=e.children.map(function(e){return n.transformElkNode(e)});(t=i.children).push.apply(t,r)}if(e.edges){var a=e.edges.map(function(e){return n.transformElkEdge(e)});(o=i.children).push.apply(o,a)}return i},e.prototype.transformElkNode=function(e){var t,o,n,i,r=this;this.checkAndRememberId(e,this.nodeIds);var a={type:"node",id:e.id,nodeType:e.id.split(".")[0],position:this.pos(e),size:this.size(e),status:this.isRestored?"processed":"waiting",children:[]};if(e.children){var s=e.children.map(function(e){return r.transformElkNode(e)});(t=a.children).push.apply(t,s)}if(e.ports){var c=e.ports.map(function(e){return r.transformElkPort(e)});(o=a.children).push.apply(o,c)}if(e.labels){var p=e.labels.map(function(e){return r.transformElkLabel(e)});(n=a.children).push.apply(n,p)}if(e.edges){var l=e.edges.map(function(e){return r.transformElkEdge(e)});(i=a.children).push.apply(i,l)}return a},e.prototype.transformElkPort=function(e){this.checkAndRememberId(e,this.portIds);var t={type:"port",id:e.id,position:this.pos(e),size:this.size(e),children:[]};return t},e.prototype.transformElkLabel=function(e){return this.checkAndRememberId(e,this.labelIds),{type:"label",id:e.id,text:e.text,position:this.pos(e),size:this.size(e)}},e.prototype.transformElkEdge=function(e){var t,o,n=this;this.checkAndRememberId(e,this.edgeIds);var i={type:"edge",id:e.id,sourceId:"",targetId:"",routingPoints:[],children:[]};if(qr(e)?(i.sourceId=e.source,i.targetId=e.target,e.sourcePoint&&i.routingPoints.push(e.sourcePoint),e.bendPoints&&(t=i.routingPoints).push.apply(t,e.bendPoints),e.targetPoint&&i.routingPoints.push(e.targetPoint)):_r(e)&&(i.sourceId=e.sources[0],i.targetId=e.targets[0],e.sections&&e.sections.forEach(function(e){var t;n.checkAndRememberId(e,n.sectionIds),i.routingPoints.push(e.startPoint),e.bendPoints&&(t=i.routingPoints).push.apply(t,e.bendPoints),i.routingPoints.push(e.endPoint)})),e.junctionPoints&&e.junctionPoints.forEach(function(t,o){var n={type:"junction",id:e.id+"_j"+o,position:t};i.children.push(n)}),e.labels){var r=e.labels.map(function(e){return n.transformElkLabel(e)});(o=i.children).push.apply(o,r)}return i},e.prototype.pos=function(e){return{x:e.x||0,y:e.y||0}},e.prototype.size=function(e){return{width:e.width||0,height:e.height||0}},e.prototype.checkAndRememberId=function(e,t){if(void 0===e.id||null===e.id)throw Error("An element is missing an id: "+e);if(t.has(e.id))throw Error("Duplicate id: "+e.id+".");t.add(e.id)},e}(),Rr=o("e1c6"),wr=o("393a"),Lr=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Cr=function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},Sr={createElement:wr["svg"]},Er=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Lr(t,e),t.prototype.render=function(e,t){var o="elknode "+(e.hoverFeedback?"mouseover ":"")+(e.selected?"selected ":"")+e.status+" elk-"+e.nodeType;return Sr.createElement("g",null,Sr.createElement("rect",{classNames:o,x:"0",y:"0",width:e.bounds.width,height:e.bounds.height}),t.renderChildren(e))},t}(Or["RectangularNodeView"]),Tr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Lr(t,e),t.prototype.render=function(e,t){return Sr.createElement("g",null,Sr.createElement("rect",{"class-elkport":!0,"class-mouseover":e.hoverFeedback,"class-selected":e.selected,x:"0",y:"0",width:e.bounds.width,height:e.bounds.height}),t.renderChildren(e))},t}(Or["RectangularNodeView"]),xr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Lr(t,e),t.prototype.renderLine=function(e,t,o){for(var n=t[0],i="M "+n.x+","+n.y,r=1;r=i||t.mouseModel&&t.mouseModel>=i,exselected:t.mouseModel&&t.model>=i&&t.mouseModel0&&void 0!==arguments[0]?arguments[0]:null;this.sendStompMessage(p["a"].DATAFLOW_NODE_RATING({nodeId:this.dataflowInfo.elementId,contextId:this.contextId,rating:this.dataflowInfo.rating,comment:e},this.session).body)},commentOk:function(){this.changeDataflowRating(this.commentContent),this.$q.notify({message:this.$t("messages.thankComment"),type:"info",icon:"mdi-information",timeout:1e3})},closePanel:function(){this.setDataflowInfoOpen(!1)}}),watch:{commentOpen:function(e){this.setModalMode(e)}}},Qr=Jr,Zr=(o("75c1"),Object(A["a"])(Qr,Ur,Vr,!1,null,null,null));Zr.options.__file="DataflowInfoPane.vue";var ea=Zr.exports,ta={name:"DataflowViewer",components:{DataflowInfo:ea},data:function(){return{modelSource:null,actionDispatcher:null,interval:null,processing:!1,visible:!1,needsUpdate:!0,CONSTANTS:c["g"]}},computed:a()({},Object(s["c"])("data",["flowchart","flowcharts","dataflowInfo","dataflowStatuses","contextId","session","context"]),Object(s["c"])("view",["leftMenuState","flowchartSelected","dataflowInfoOpen"])),methods:a()({},Object(s["b"])("data",["loadFlowchart"]),Object(s["b"])("view",["setFlowchartSelected","setDataflowInfoOpen"]),{doGraph:function(){var e=this,t=this.flowchart(this.flowchartSelected);if(t){if(this.processing)return void setTimeout(this.doGraph(),100);t.updatable?this.loadFlowchart(this.flowchartSelected).then(function(){var o=JSON.parse(JSON.stringify(t.flowchart));e.processing=!0,t.graph=(new Wr).transform(o),e.setModel(t),e.centerGraph(),e.processing=!1}).catch(function(e){console.error(e)}):null===t.graph||t.visible||(this.setModel(t),this.centerGraph())}},setModel:function(e){this.modelSource.setModel(e.graph),this.flowcharts.forEach(function(e){e.visible=!1}),e.visible=!0},centerGraph:function(){this.flowchartSelected===c["g"].GRAPH_DATAFLOW?this.actionDispatcher.dispatch(new Or["FitToScreenAction"]([],40)):this.actionDispatcher.dispatch(new Or["CenterAction"]([],40))},updateStatuses:function(){if(this.visible){if(0!==this.dataflowStatuses.length){for(var e=this.dataflowStatuses.length,t=0;t=0;o-=1)this.sendStompMessage(p["a"].DATAFLOW_NODE_DETAILS({nodeId:e.selectedElementsIDs[o],contextId:this.context.id},this.session).body)}},closePanel:function(){this.setDataflowInfoOpen(!1)},resize:function(){var e=this;this.$nextTick(function(){var t=document.getElementById("sprotty");if(null!==t){var o=t.getBoundingClientRect();e.actionDispatcher.dispatch(new Or["InitializeCanvasBoundsAction"]({x:o.left,y:o.top,width:o.width,height:o.height})),e.centerGraph()}})}}),watch:{flowchartSelected:function(){this.visible&&this.doGraph()},flowcharts:{handler:function(){this.visible&&this.doGraph()},deep:!0},dataflowStatuses:{handler:function(){this.flowchartSelected===c["g"].GRAPH_DATAFLOW&&null!==this.flowchart(this.flowchartSelected)&&this.updateStatuses()},deep:!0},dataflowInfo:function(e,t){null===e?this.setDataflowInfoOpen(!1):null===t?this.setDataflowInfoOpen(!0):e.elementId===t.elementId&&this.dataflowInfoOpen?this.setDataflowInfoOpen(!1):this.setDataflowInfoOpen(!0)},dataflowInfoOpen:function(){this.resize()}},mounted:function(){var e=Hr({needsClientLayout:!1,needsServerLayout:!0},"info");e.bind(Or["TYPES"].IActionHandlerInitializer).to(yr),this.modelSource=e.get(Or["TYPES"].ModelSource),this.actionDispatcher=e.get(Or["TYPES"].IActionDispatcher),this.$eventBus.$on(c["h"].GRAPH_NODE_SELECTED,this.graphNodeSelectedListener)},activated:function(){this.visible=!0,this.doGraph(),this.flowchartSelected===c["g"].GRAPH_DATAFLOW&&this.needsUpdate&&(this.updateStatuses(),this.needsUpdate=!1)},deactivated:function(){this.visible=!1},beforeDestroy:function(){this.$eventBus.$off(c["h"].GRAPH_NODE_SELECTED,this.graphNodeSelectedListener)}},oa=ta,na=(o("7890"),Object(A["a"])(oa,ur,br,!1,null,null,null));na.options.__file="DataflowViewer.vue";var ia=na.exports,ra=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("q-modal",{ref:"irm-modal-container",attrs:{"no-esc-dismiss":!0,"no-backdrop-dismiss":!0,"content-classes":["irm-container"]},on:{hide:e.cleanInputRequest},model:{value:e.opened,callback:function(t){e.opened=t},expression:"opened"}},[o("q-tabs",{class:{"irm-tabs-hidden":e.inputRequests.length<=1},attrs:{swipeable:"",animated:"",color:"white"},model:{value:e.selectedRequest,callback:function(t){e.selectedRequest=t},expression:"selectedRequest"}},[e._l(e.inputRequests,function(t){return o("q-tab",{key:t.messageId,class:{"irm-tabs-hidden":e.inputRequests.length<=1},attrs:{slot:"title",name:"request-"+t.messageId},slot:"title"})}),e._l(e.inputRequests,function(t){return o("q-tab-pane",{key:t.messageId,attrs:{name:"request-"+t.messageId}},[o("div",{staticClass:"irm-group"},[o("div",{staticClass:"irm-global-description"},[o("h4",[e._v(e._s(null!==t.sectionTitle?t.sectionTitle:e.$t("label.noInputSectionTitle")))]),o("p",[e._v(e._s(t.description))])]),o("div",{staticClass:"irm-fields-container",attrs:{"data-simplebar":""}},[o("div",{staticClass:"irm-fields-wrapper"},e._l(t.fields,function(n){return o("div",{key:e.getFieldId(n,t.messageId),staticClass:"irm-field"},[e.checkSectionTitle(n.sectionTitle)?o("div",{staticClass:"irm-section-description"},[o("h5",[e._v(e._s(n.sectionTitle))]),o("p",[e._v(e._s(n.sectionDescription))])]):e._e(),o("q-field",{attrs:{label:null!==n.label?n.label:n.id,helper:n.description}},[o(e.capitalizeFirstLetter(n.type)+"InputRequest",{tag:"component",attrs:{name:e.getFieldId(n,t.messageId),initialValue:n.initialValue,values:n.values,range:n.range,numericPrecision:n.numericPrecision,regexp:n.regexp},on:{change:function(o){e.updateForm(e.getFieldId(n,t.messageId),o)}}})],1)],1)}))]),o("div",{staticClass:"irm-buttons"},[o("q-btn",{attrs:{color:"primary",label:e.$t("label.cancelInputRequest")},on:{click:function(o){e.cancelRequest(t)}}}),o("q-btn",{attrs:{color:"mc-main",disable:e.formDataIsEmpty,label:e.$t("label.resetInputRequest")},on:{click:function(o){e.send(t.messageId,!0)}}}),o("q-btn",{attrs:{color:"mc-main",label:e.$t("label.submitInputRequest")},on:{click:function(o){e.send(t.messageId,!1)}}})],1)])])})],2)],1)},aa=[];ra._withStripped=!0;var sa=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("q-input",{attrs:{color:"mc-main",type:"text",placeholder:e.initialValue,name:e.name,error:e.hasError,clearable:!0,"clear-value":e.initialValue},on:{input:e.emitInput},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})},ca=[];sa._withStripped=!0;var pa={name:"TextField",props:{initialValue:{type:String,required:!0},name:{type:String,required:!0}},data:function(){return{value:""}},computed:{hasError:function(){return this.value,!1}},methods:{emitInput:function(e){this.$emit("change",e)}}},la=pa,ua=(o("9d14"),Object(A["a"])(la,sa,ca,!1,null,null,null));ua.options.__file="TextField.vue";var ba=ua.exports,da=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("q-input",{attrs:{color:"mc-main",type:"number",placeholder:e.initialValue,name:e.name,error:e.hasError,clearable:!0,"clear-value":e.initialValue},on:{input:e.emitInput},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})},Ma=[];da._withStripped=!0;var ha={name:"NumberField",props:{initialValue:{type:String,required:!0},name:{type:String,required:!0},numericPrecision:{type:Number,default:5},range:{type:String}},data:function(){return{value:""}},computed:{hasError:function(){return this.range,!1}},methods:{emitInput:function(e){var t=this;this.fitValue(),this.$nextTick(function(){t.$emit("change",e)})},fitValue:function(){0!==this.numericPrecision&&(this.value=this.value.toFixed(this.numericPrecision))}}},fa=ha,za=(o("d6e2"),Object(A["a"])(fa,da,Ma,!1,null,null,null));za.options.__file="NumberField.vue";var Oa=za.exports,Aa=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("q-checkbox",{attrs:{color:"mc-main",name:e.name},on:{input:e.emitInput},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}})},ma=[];Aa._withStripped=!0;var va={name:"BooleanField",props:{initialValue:{type:String,required:!0},name:{type:String,required:!0}},data:function(){return{checked:"true"===this.initialValue}},methods:{emitInput:function(e){var t=this;this.$nextTick(function(){t.$emit("change",e)})}}},ga=va,ya=(o("bb33"),Object(A["a"])(ga,Aa,ma,!1,null,null,null));ya.options.__file="BooleanField.vue";var qa=ya.exports,_a={name:"InputRequestModal",components:{TextInputRequest:ba,NumberInputRequest:Oa,BooleanInputRequest:qa},sectionTitle:void 0,data:function(){return{formData:{},simpleBars:[],selectedRequest:null}},computed:a()({},Object(s["c"])("data",["session"]),Object(s["c"])("view",["hasInputRequests","inputRequests"]),{opened:{set:function(){},get:function(){return this.hasInputRequests}},formDataIsEmpty:function(){return 0===Object.keys(this.formData).length}}),methods:a()({},Object(s["b"])("view",["removeInputRequest"]),{send:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.inputRequests.find(function(t){return t.messageId===e});if("undefined"!==typeof n){var i=n.fields.reduce(function(e,i){if(o)e[t.getFieldId(i)]=i.initialValue;else{var r=t.formData[t.getFieldId(i,n.messageId)];e[t.getFieldId(i)]="undefined"===typeof r||null===r||""===r?i.initialValue:r.toString()}return e},{});this.sendStompMessage(p["a"].USER_INPUT_RESPONSE({messageId:n.messageId,requestId:n.requestId,values:i},this.session).body),this.removeInputRequest(n.messageId)}},cancelRequest:function(e){this.sendStompMessage(p["a"].USER_INPUT_RESPONSE({messageId:e.messageId,requestId:e.requestId,cancelRun:!0,values:{}},this.session).body),this.removeInputRequest(e.messageId)},updateForm:function(e,t){null===t?this.$delete(this.formData,e):this.$set(this.formData,e,t)},capitalizeFirstLetter:function(e){return Object(He["a"])(e)},getFieldId:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return null===t?"".concat(e.functionId,"/").concat(e.id):"".concat(t,"-").concat(e.functionId,"/").concat(e.id)},checkSectionTitle:function(e){return this.$options.sectionTitle!==e&&(this.$options.sectionTitle=e,!0)},cleanInputRequest:function(){this.formData={},this.removeInputRequest(null)}}),watch:{inputRequests:function(){this.inputRequests.length>0&&(this.selectedRequest="request-".concat(this.inputRequests[0].messageId))}}},Wa=_a,Ra=(o("2b54"),Object(A["a"])(Wa,ra,aa,!1,null,null,null));Ra.options.__file="InputRequestModal.vue";var wa=Ra.exports,La=function(){var e=this,t=e.$createElement,o=e._self._c||t;return null!==e.scaleReference?o("q-dialog",{attrs:{title:e.$t("label.titleChangeScale",{type:e.scaleEditingType===e.SCALE_TYPE.ST_SPACE?e.$t("label.labelSpatial"):e.$t("label.labelTemporal")}),color:"info",cancel:!0,ok:!1},on:{show:e.initValues},scopedSlots:e._u([{key:"buttons",fn:function(t){return[o("q-btn",{attrs:{color:"mc-main",outline:"",label:e.$t("label.appCancel")},on:{click:t.cancel}}),o("q-btn",{attrs:{color:"mc-main",label:e.$t("label.appOK")},on:{click:function(o){e.choose(t.ok)}}})]}}]),model:{value:e.scaleEditing,callback:function(t){e.scaleEditing=t},expression:"scaleEditing"}},[o("div",{attrs:{slot:"body"},slot:"body"},[e.scaleEditingType===e.SCALE_TYPE.ST_SPACE?[o("q-input",{attrs:{type:"number",min:"0",color:"info",autofocus:"",after:[{icon:"warning",error:!0,condition:e.resolutionError}],"stack-label":e.resolutionError?e.$t("messages.changeScaleResolutionError"):e.$t("label.resolutionLabel")},model:{value:e.resolution,callback:function(t){e.resolution=t},expression:"resolution"}})]:e._e(),o("q-select",{attrs:{"float-label":e.$t("label.unitLabel"),color:"info",options:e.typedUnits(e.scaleEditingType)},on:{input:function(t){e.scaleEditingType===e.SCALE_TYPE.ST_TIME&&e.setStartDate()}},model:{value:e.unit,callback:function(t){e.unit=t},expression:"unit"}}),e.scaleEditingType===e.SCALE_TYPE.ST_TIME?[o("div",{staticClass:"row"},[e.unit===e.SCALE_VALUES.DECADE?o("q-input",{staticClass:"col col-4",attrs:{"float-label":e.$t("label.unitDecade"),type:"number",min:"0",max:"90",step:10,color:"mc-main",autofocus:""},on:{input:function(t){e.setStartDate()}},model:{value:e.unitInputs.decade,callback:function(t){e.$set(e.unitInputs,"decade",t)},expression:"unitInputs.decade"}}):e._e(),e.unit===e.SCALE_VALUES.CENTURY||e.unit===e.SCALE_VALUES.DECADE?o("q-input",{class:["col",e.unit===e.SCALE_VALUES.CENTURY?"col-8":"col-4"],attrs:{"float-label":e.$t("label.unitCentury"),type:"number",min:"1",step:1,color:"mc-main",autofocus:""},on:{input:function(t){e.setStartDate()}},model:{value:e.unitInputs.century,callback:function(t){e.$set(e.unitInputs,"century",t)},expression:"unitInputs.century"}}):e._e(),e.unit===e.SCALE_VALUES.MONTH?o("q-select",{staticClass:"col col-4",attrs:{"float-label":e.$t("label.unitMonth"),type:"number",min:"0",color:"mc-main",options:e.monthOptions,autofocus:""},on:{input:function(t){e.setStartDate()}},model:{value:e.unitInputs.month,callback:function(t){e.$set(e.unitInputs,"month",t)},expression:"unitInputs.month"}}):e._e(),e.unit===e.SCALE_VALUES.WEEK?o("q-input",{staticClass:"col col-4",attrs:{"float-label":e.$t("label.unitWeek"),type:"number",min:"1",max:"53",step:1,color:"mc-main",autofocus:""},on:{input:function(t){e.setStartDate(t)}},model:{value:e.unitInputs.week,callback:function(t){e.$set(e.unitInputs,"week",t)},expression:"unitInputs.week"}}):e._e(),e.unit===e.SCALE_VALUES.YEAR||e.unit===e.SCALE_VALUES.MONTH||e.unit===e.SCALE_VALUES.WEEK?o("q-input",{class:{col:e.unit===e.SCALE_VALUES.YEAR,"col-8":e.unit===e.SCALE_VALUES.YEAR,"col-4":e.unit===e.SCALE_VALUES.MONTH||e.unit===e.SCALE_VALUES.WEEK},attrs:{"float-label":e.$t("label.unitYear"),type:"number",min:"0",step:1,color:"mc-main",autofocus:""},on:{input:function(t){e.setStartDate()}},model:{value:e.unitInputs.year,callback:function(t){e.$set(e.unitInputs,"year",t)},expression:"unitInputs.year"}}):e._e(),e.unit===e.SCALE_VALUES.CENTURY||e.unit===e.SCALE_VALUES.DECADE||e.unit===e.SCALE_VALUES.YEAR||e.unit===e.SCALE_VALUES.MONTH||e.unit===e.SCALE_VALUES.WEEK?o("q-input",{staticClass:"col col-4",class:{"scd-inactive-multiplier":e.timeEndModified},attrs:{"float-label":e.$t("label.timeResolutionMultiplier"),type:"number",min:"1",step:1,color:"mc-main"},model:{value:e.timeResolutionMultiplier,callback:function(t){e.timeResolutionMultiplier=t},expression:"timeResolutionMultiplier"}},[e.timeEndModified?o("q-tooltip",{attrs:{offset:[0,15],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("messages.timeEndModified")))]):e._e()],1):e._e()],1),o("q-datetime",{attrs:{color:"mc-main","float-label":e.$t("label.labelTimeStart"),format:e.getFormat(),type:e.unit===e.SCALE_VALUES.HOUR||e.unit===e.SCALE_VALUES.MINUTE||e.unit===e.SCALE_VALUES.SECOND?"datetime":"date",minimal:"",format24h:"","default-view":e.unit===e.SCALE_VALUES.CENTURY||e.unit===e.SCALE_VALUES.DECADE||e.unit===e.SCALE_VALUES.YEAR?"year":"day"},on:{focus:function(t){e.manualInputChange=!0},blur:function(t){e.manualInputChange=!1},input:function(t){e.manualInputChange&&e.initUnitInputs()&&e.calculateEnd()}},model:{value:e.timeStart,callback:function(t){e.timeStart=t},expression:"timeStart"}}),o("q-datetime",{attrs:{color:"mc-main","float-label":e.$t("label.labelTimeEnd"),format:e.getFormat(),type:e.unit===e.SCALE_VALUES.HOUR||e.unit===e.SCALE_VALUES.MINUTE||e.unit===e.SCALE_VALUES.SECOND?"datetime":"date",minimal:"",format24h:"",after:[{icon:"warning",error:!0,condition:e.resolutionError}],"default-view":e.unit===e.SCALE_VALUES.CENTURY||e.unit===e.SCALE_VALUES.DECADE||e.unit===e.SCALE_VALUES.YEAR?"year":"day"},on:{input:e.checkEnd},model:{value:e.timeEnd,callback:function(t){e.timeEnd=t},expression:"timeEnd"}})]:e._e()],2)]):e._e()},Ca=[];La._withStripped=!0;var Sa=o("7f45"),Ea=o.n(Sa),Ta={name:"ScaleChangeDialog",data:function(){return{resolution:null,timeResolutionMultiplier:1,timeStart:null,timeEnd:null,timeEndMod:!1,unit:null,units:c["D"],resolutionError:!1,SCALE_TYPE:c["C"],SCALE_VALUES:c["E"],unitInputs:{century:null,year:null,month:null,week:null},monthOptions:[],timeEndModified:!1,manualInputChange:!1}},computed:a()({},Object(s["c"])("data",["scaleReference","nextScale","hasContext"]),Object(s["c"])("view",["scaleEditingType"]),{scaleEditing:{get:function(){return this.$store.getters["view/isScaleEditing"]},set:function(e){this.$store.dispatch("view/setScaleEditing",{active:e,type:this.scaleEditingType})}},typedUnits:function(){var e=this;return function(t){return e.units.filter(function(e){return e.type===t&&e.selectable}).map(function(t){return a()({},t,{label:e.$t("label.".concat(t.i18nlabel))})})}}}),methods:a()({},Object(s["b"])("data",["updateScaleReference","setNextScale"]),{choose:function(e){if(this.scaleEditingType===c["C"].ST_SPACE&&(""===this.resolution||this.resolution<=0))this.resolutionError=!0;else if(this.scaleEditingType!==c["C"].ST_TIME||this.checkEnd){if(e(),this.resolutionError=!1,this.scaleEditingType===c["C"].ST_SPACE&&(null===this.nextScale&&this.resolution===this.scaleReference.spaceResolutionConverted&&this.unit===this.scaleReference.spaceUnit||null!==this.nextScale&&this.resolution===this.nextScale.spaceResolutionConverted&&this.unit===this.nextScale.spaceUnit)||this.scaleEditingType===c["C"].ST_TIME&&(null===this.nextScale&&this.timeResolutionMultiplier===this.scaleReference.timeResolutionMultiplier&&this.unit===this.scaleReference.timeUnit&&this.timeStart===this.scaleReference.start&&this.timeEnd===this.scaleReference.end||null!==this.nextScale&&this.timeResolutionMultiplier===this.nextScale.timeResolutionMultiplier&&this.unit===this.nextScale.timeUnit&&this.timeStart===this.nextScale.start&&this.timeEnd===this.nextScale.end))return;var t=new Date(this.timeStart.getTime()),o=new Date(this.timeEnd.getTime());[c["E"].MILLENNIUM,c["E"].CENTURY,c["E"].DECADE,c["E"].YEAR,c["E"].MONTH,c["E"].WEEK,c["E"].DAY].includes(this.unit)&&(t.setUTCHours(0,0,0,0),o.setUTCHours(0,0,0,0)),this.hasContext||this.sendStompMessage(p["a"].SCALE_REFERENCE(a()({scaleReference:this.scaleReference},this.scaleEditingType===c["C"].ST_SPACE&&{spaceResolution:this.resolution,spaceUnit:this.unit},this.scaleEditingType===c["C"].ST_TIME&&{timeResolutionMultiplier:this.timeResolutionMultiplier,timeUnit:this.unit,start:t.getTime(),end:o.getTime()}),this.$store.state.data.session).body),this.updateScaleReference(a()({type:this.scaleEditingType,unit:this.unit},this.scaleEditingType===c["C"].ST_SPACE&&{spaceResolution:this.resolution,spaceResolutionConverted:this.resolution},this.scaleEditingType===c["C"].ST_TIME&&{timeResolutionMultiplier:this.timeResolutionMultiplier,start:t.getTime(),end:o.getTime()},{next:this.hasContext})),this.$q.notify({message:this.$t(this.hasContext?"messages.updateNextScale":"messages.updateScale",{type:this.scaleEditingType.charAt(0).toUpperCase()+this.scaleEditingType.slice(1)}),type:"info",icon:"mdi-information",timeout:2e3})}else this.resolutionError=!0},setStartDate:function(e){var t=new Date;switch(this.unit){case c["E"].CENTURY:t.setUTCDate(1),t.setUTCMonth(0),t.setUTCFullYear(100*(this.unitInputs.century-1));break;case c["E"].DECADE:this.unitInputs.decade=this.unitInputs.decade-this.unitInputs.decade%10,t.setUTCDate(1),t.setUTCMonth(0),t.setUTCFullYear(100*(this.unitInputs.century-1)+this.unitInputs.decade);break;case c["E"].YEAR:t.setUTCFullYear(this.unitInputs.year,0,1);break;case c["E"].MONTH:t.setUTCDate(1),t.setUTCMonth(this.unitInputs.month),t.setUTCFullYear(this.unitInputs.year);break;case c["E"].WEEK:if(e>53)return void(this.unitInputs.week=Ea()(this.timeStart).week());t.setUTCMonth(0),t.setUTCDate(1+7*(this.unitInputs.week-1)),t.setUTCFullYear(this.unitInputs.year);break;default:return}this.timeStart=t,this.initUnitInputs(),this.calculateEnd()},calculateEnd:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=c["D"].find(function(t){return t.value===e.unit});this.timeEnd=Ea()(this.timeStart).add(this.timeResolutionMultiplier*o.momentMultiplier-(1!==o.momentMultiplier?1:0),o.momentShorthand).toDate(),this.$nextTick(function(){e.timeEndModified=t})},checkEnd:function(){this.timeEnd<=this.timeStart?this.$q.notify({message:this.$t("messages.timeEndBeforeTimeStart"),type:"info",icon:"mdi-information",timeout:2e3}):this.calculateEnd(!0)},getFormat:function(){switch(this.unit){case c["E"].MILLENNIUM:case c["E"].CENTURY:case c["E"].DECADE:case c["E"].YEAR:case c["E"].MONTH:case c["E"].WEEK:case c["E"].DAY:return"DD/MM/YYYY";case c["E"].HOUR:return"DD/MM/YYYY HH:mm";case c["E"].MINUTE:case c["E"].SECOND:return"DD/MM/YYYY HH:mm:ss";case c["E"].MILLISECOND:return"DD/MM/YYYY HH:mm:ss:SSS";default:return"DD/MM/YYYY HH:mm:ss"}},formatDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"dddd, MMMM Do YYYY, h:mm:ss a";return e&&null!==e?Ea()(e).format(t):""},initValues:function(){var e=null!==this.nextScale?this.nextScale:null!==this.scaleReference?this.scaleReference:null;null!==e&&(this.resolution=e.spaceResolutionConverted,this.unit=this.scaleEditingType===c["C"].ST_SPACE?e.spaceUnit:null!==e.timeUnit?e.timeUnit:c["E"].YEAR,this.timeResolutionMultiplier=0!==e.timeResolutionMultiplier?e.timeResolutionMultiplier:1,this.timeStart=0!==e.start?new Date(e.start):new Date,this.calculateEnd()),this.initUnitInputs()},initUnitInputs:function(){var e=this.timeStart?Ea()(this.timeStart):Ea()();this.unitInputs.century=Math.floor(e.year()/100)+1,this.unitInputs.decade=10*Math.floor(e.year()/10)-100*Math.floor(e.year()/100),this.unitInputs.year=e.year(),this.unitInputs.month=e.month(),this.unitInputs.week=e.week()}}),watch:{timeResolutionMultiplier:function(e,t){e<1?this.timeResolutionMultiplier=t:this.calculateEnd()}},created:function(){for(var e=0;e<12;e++)this.monthOptions.push({label:this.$t("label.months.m".concat(e)),value:e})}},xa=Ta,Na=(o("c998"),Object(A["a"])(xa,La,Ca,!1,null,null,null));Na.options.__file="ScaleChangeDialog.vue";var Ba=Na.exports,ka=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"full-height",attrs:{id:"lm-container"}},[o("div",{staticClass:"full-height klab-lm-panel",style:{width:e.LEFTMENU_VISIBILITY.LEFTMENU_MINSIZE+"px"},attrs:{id:"lm-actions"}},[o("div",{attrs:{id:"spinner-leftmenu-container"}},[o("div",{style:{"border-color":e.hasTasks()?e.spinnerColor.color:"white"},attrs:{id:"spinner-leftmenu-div"}},[o("klab-spinner",{attrs:{id:"spinner-leftmenu","store-controlled":!0,size:40,ball:22,wrapperId:"spinner-leftmenu-div"},nativeOn:{touchstart:function(t){e.handleTouch(t,e.askForSuggestion)}}})],1)]),e.hasContext?[o("div",{staticClass:"lm-separator"}),o("main-actions-buttons",{attrs:{orientation:"vertical","separator-class":"lm-separator"}}),o("div",{staticClass:"lm-separator"})]:e._e(),o("div",{staticClass:"klab-button klab-action",class:[{active:e.logShowed}],on:{click:e.logAction}},[o("q-icon",{attrs:{name:"mdi-console"}},[o("q-tooltip",{attrs:{delay:600,offset:[0,8],self:"top left",anchor:"bottom left"}},[e._v(e._s(e.logShowed?e.$t("tooltips.hideLogPane"):e.$t("tooltips.showLogPane")))])],1)],1),o("div",{staticClass:"lm-separator"}),o("div",{style:{width:e.LEFTMENU_VISIBILITY.LEFTMENU_MINSIZE+"px"},attrs:{id:"lm-bottom-menu"}},[o("div",{staticClass:"lm-separator"}),o("scale-buttons",{attrs:{docked:!0}}),o("div",{staticClass:"lm-separator"}),o("div",{staticClass:"lm-bottom-buttons"},[o("stop-actions-buttons")],1)],1)],2),e.maximized?o("div",{staticClass:"full-height klab-lm-panel",style:{width:e.LEFTMENU_VISIBILITY.LEFTMENU_MAXSIZE-e.LEFTMENU_VISIBILITY.LEFTMENU_MINSIZE+"px"},attrs:{id:"lm-content"}},[o("div",{staticClass:"full-height",attrs:{id:"lm-content-container"}},[o("keep-alive",[o("transition",{attrs:{name:"component-fade",mode:"out-in"}},[o(e.leftMenuContent,{tag:"component",staticClass:"lm-component"})],1)],1)],1)]):e._e()])},Pa=[];ka._withStripped=!0;var Da=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"full-height",class:{"dmc-dragging":e.dragging,"dmc-large-mode":e.searchIsFocused&&e.largeMode>0},attrs:{id:"dmc-container"}},[o("klab-breadcrumbs"),o("klab-search-bar",{directives:[{name:"draggable",rawName:"v-draggable",value:e.dragMCConfig,expression:"dragMCConfig"}],ref:"klab-search-bar-docked"}),e.isTreeVisible?o("div",{staticClass:"q-card-main full-height",class:{"dmc-dragging":e.dragging,"dmc-loading":e.taskOfContextIsAlive},attrs:{id:"dmc-tree"}},[o("klab-tree-pane")],1):e._e(),e.contextHasTime?o("observations-timeline",{staticClass:"dmc-timeline"}):e._e()],1)},Ia=[];Da._withStripped=!0;var Xa=K["b"].width,ja={name:"KlabDockedMainControl",components:{KlabSearchBar:Bt,KlabBreadcrumbs:jt,ObservationsTimeline:Fo,KlabTreePane:Lo},directives:{Draggable:V},data:function(){var e=this;return{dragMCConfig:{onPositionChange:Object(qe["a"])(function(t,o){e.onDebouncedPositionChanged(o)},100),onDragStart:function(){e.dragging=!0},onDragEnd:this.checkUndock,fingers:2,noMove:!0},askForUndocking:!1,draggableElementWidth:0,dragging:!1}},computed:a()({},Object(s["c"])("data",["contextHasTime"]),Object(s["c"])("view",["largeMode","isTreeVisible"]),Object(s["c"])("stomp",["taskOfContextIsAlive"])),methods:a()({},Object(s["b"])("view",["searchIsFocused","setMainViewer"]),{onDebouncedPositionChanged:function(e){this.dragging&&(e&&e.left>this.undockLimit?this.askForUndocking=!0:this.askForUndocking=!1,this.$eventBus.$emit(c["h"].ASK_FOR_UNDOCK,this.askForUndocking))},checkUndock:function(){var e=this;this.$nextTick(function(){e.askForUndocking&&(e.askForUndocking=!1,e.setMainViewer(c["N"].DATA_VIEWER)),e.$eventBus.$emit(c["h"].ASK_FOR_UNDOCK,!1),e.dragging=!1})}}),mounted:function(){this.undockLimit=Xa(document.getElementById("dmc-container"))/3}},Fa=ja,Ha=(o("c7c3"),Object(A["a"])(Fa,Da,Ia,!1,null,null,null));Ha.options.__file="KlabDockedMainControl.vue";var Ua=Ha.exports,Va={name:"KlabLeftMenu",components:{KlabSpinner:v,MainActionsButtons:Ce,StopActionsButtons:ke,DockedMainControl:Ua,DocumentationTree:er,KlabLogPane:Yo,ScaleButtons:on,KnowledgeViewsSelector:pn},mixins:[rt],data:function(){return{}},computed:a()({},Object(s["c"])("data",["hasContext"]),Object(s["c"])("stomp",["hasTasks"]),Object(s["c"])("view",["spinnerColor","mainViewer","leftMenuContent","leftMenuState"]),{logShowed:function(){return this.leftMenuContent===c["v"].LOG_COMPONENT},maximized:function(){return this.leftMenuState===c["v"].LEFTMENU_MAXIMIZED&&this.leftMenuContent}}),methods:a()({},Object(s["b"])("view",["setLeftMenuState","setLeftMenuContent"]),{logAction:function(){this.logShowed?(this.setLeftMenuContent(this.mainViewer.leftMenuContent),this.setLeftMenuState(this.mainViewer.leftMenuState)):(this.setLeftMenuContent(c["v"].LOG_COMPONENT),this.setLeftMenuState(c["v"].LEFTMENU_MAXIMIZED))},askForSuggestion:function(e){this.$eventBus.$emit(c["h"].ASK_FOR_SUGGESTIONS,e)}}),created:function(){this.LEFTMENU_VISIBILITY=c["v"]}},Ga=Va,Ka=(o("6283"),Object(A["a"])(Ga,ka,Pa,!1,null,null,null));Ka.options.__file="KlabLeftMenu.vue";var $a=Ka.exports,Ya=(o("5bc0"),{name:"KExplorer",components:{KlabMainControl:fn,DataViewer:Ii,KlabDocumentation:lr,DataflowViewer:ia,InputRequestModal:wa,ScaleChangeDialog:Ba,ObservationTime:Po,KlabLeftMenu:$a},props:{mainPanelStyle:{type:Object,default:function(){return{}}}},data:function(){return{askForUndocking:!1,LEFTMENU_CONSTANTS:c["v"]}},computed:a()({},Object(s["c"])("data",["session","hasActiveTerminal"]),Object(s["c"])("stomp",["connectionDown"]),Object(s["c"])("view",["searchIsActive","searchIsFocused","searchInApp","mainViewerName","mainViewer","isTreeVisible","isInModalMode","spinnerErrorMessage","isMainControlDocked","admitSearch","isHelpShown","mainViewer","leftMenuState","largeMode","hasHeader","layout"]),{waitingGeolocation:{get:function(){return this.$store.state.view.waitingGeolocation},set:function(e){this.$store.state.view.waitingGeolocation=e}},logVisible:function(){return this.$logVisibility===c["Q"].PARAMS_LOG_VISIBLE},leftMenuVisible:{get:function(){return this.leftMenuState!==c["v"].LEFTMENU_HIDDEN&&!this.hasHeader},set:function(e){this.setLeftMenuState(e)}},leftMenuWidth:function(){return(this.leftMenuState===c["v"].LEFTMENU_MAXIMIZED?c["v"].LEFTMENU_MAXSIZE:this.leftMenuState===c["v"].LEFTMENU_MINIMIZED?c["v"].LEFTMENU_MINSIZE:0)-(this.hasHeader?c["v"].LEFTMENU_MINSIZE:0)}}),methods:a()({},Object(s["b"])("view",["searchStart","searchStop","searchFocus","setMainViewer","setLeftMenuState"]),{setChildrenToAskFor:function(){var e=Math.floor(window.innerHeight*parseInt(getComputedStyle(document.documentElement).getPropertyValue("--main-control-max-height"),10)/100),t=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--q-tree-no-child-min-height"),10),o=Math.floor(e/t);console.info("Set max children to ".concat(o)),this.$store.state.data.childrenToAskFor=o},askForUndockListener:function(e){this.askForUndocking=e},keydownListener:function(e){if(!(this.connectionDown||this.isInModalMode||!this.admitSearch||this.isHelpShown||this.searchInApp||this.hasActiveTerminal))return 27===e.keyCode&&this.searchIsActive?(this.searchStop(),void e.preventDefault()):void((38===e.keyCode||40===e.keyCode||32===e.keyCode||this.isAcceptedKey(e.key))&&(this.searchIsActive?this.searchIsFocused||(this.searchFocus({char:e.key,focused:!0}),e.preventDefault()):(this.searchStart(e.key),e.preventDefault())))},showDocumentation:function(){this.setMainViewer(c["N"].DOCUMENTATION_VIEWER)}}),watch:{spinnerErrorMessage:function(e,t){null!==e&&e!==t&&(console.error(this.spinnerErrorMessage),this.$q.notify({message:this.spinnerErrorMessage,type:"negative",icon:"mdi-alert-circle",timeout:1e3}))},leftMenuVisible:function(){var e=this;this.$nextTick(function(){e.$eventBus.$emit(c["h"].NEED_FIT_MAP,{})})}},created:function(){"undefined"===typeof this.mainViewer&&this.setMainViewer(c["N"].DATA_VIEWER)},mounted:function(){window.addEventListener("keydown",this.keydownListener),this.setChildrenToAskFor(),this.$eventBus.$on(c["h"].ASK_FOR_UNDOCK,this.askForUndockListener),this.$eventBus.$on(c["h"].SHOW_DOCUMENTATION,this.showDocumentation),this.sendStompMessage(p["a"].SETTING_CHANGE_REQUEST({setting:c["H"].INTERACTIVE_MODE,value:!1},this.session).body),this.sendStompMessage(p["a"].SETTING_CHANGE_REQUEST({setting:c["H"].LOCK_SPACE,value:!1},this.session).body),this.sendStompMessage(p["a"].SETTING_CHANGE_REQUEST({setting:c["H"].LOCK_TIME,value:!1},this.session).body)},beforeDestroy:function(){window.removeEventListener("keydown",this.keydownListener),this.$eventBus.$off(c["h"].ASK_FOR_UNDOCK,this.askForUndockListener),this.$eventBus.$off(c["h"].SHOW_DOCUMENTATION,this.showDocumentation)}}),Ja=Ya,Qa=(o("f913"),Object(A["a"])(Ja,me,ve,!1,null,null,null));Qa.options.__file="KExplorer.vue";var Za=Qa.exports,es=o("4082"),ts=o.n(es),os=o("0388"),ns=o("7d43"),is=o("9541"),rs=o("768b"),as=o("fb40"),ss=o("bd60"),cs="q:collapsible:close",ps={name:"QCollapsible",mixins:[as["a"],ss["a"],{props:ss["b"]}],modelToggle:{history:!1},props:{disable:Boolean,popup:Boolean,indent:Boolean,group:String,iconToggle:Boolean,collapseIcon:String,opened:Boolean,duration:Number,headerStyle:[Array,String,Object],headerClass:[Array,String,Object]},computed:{classes:function(){return{"q-collapsible-opened":this.showing,"q-collapsible-closed":!this.showing,"q-collapsible-popup-opened":this.popup&&this.showing,"q-collapsible-popup-closed":this.popup&&!this.showing,"q-collapsible-cursor-pointer":!this.separateToggle,"q-item-dark":this.dark,"q-item-separator":this.separator,"q-item-inset-separator":this.insetSeparator,disabled:this.disable}},separateToggle:function(){return this.iconToggle||void 0!==this.to}},watch:{showing:function(e){e&&this.group&&this.$root.$emit(cs,this)}},methods:{__toggleItem:function(){this.separateToggle||this.toggle()},__toggleIcon:function(e){this.separateToggle&&(e&&Object(Gr["g"])(e),this.toggle())},__eventHandler:function(e){this.group&&this!==e&&e.group===this.group&&this.hide()},__getToggleSide:function(e,t){return[e(is["a"],{slot:t?"right":void 0,staticClass:"cursor-pointer transition-generic relative-position q-collapsible-toggle-icon",class:{"rotate-180":this.showing,invisible:this.disable},nativeOn:{click:this.__toggleIcon},props:{icon:this.collapseIcon||this.$q.icon.collapsible.icon}})]},__getItemProps:function(e){return{props:e?{cfg:this.$props}:this.$props,style:this.headerStyle,class:this.headerClass,nativeOn:{click:this.__toggleItem}}}},created:function(){this.$root.$on(cs,this.__eventHandler),(this.opened||this.value)&&this.show()},beforeDestroy:function(){this.$root.$off(cs,this.__eventHandler)},render:function(e){return e(this.tag,{staticClass:"q-collapsible q-item-division relative-position",class:this.classes},[e("div",{staticClass:"q-collapsible-inner"},[this.$slots.header?e(Ye["a"],this.__getItemProps(),[this.$slots.header,e(ns["a"],{props:{right:!0},staticClass:"relative-position"},this.__getToggleSide(e))]):e(rs["a"],this.__getItemProps(!0),this.__getToggleSide(e,!0)),e(eo["a"],{props:{duration:this.duration}},[e("div",{directives:[{name:"show",value:this.showing}]},[e("div",{staticClass:"q-collapsible-sub-item relative-position",class:{indent:this.indent}},this.$slots.default)])])])])}},ls=o("dd1f"),us=o("5d8b"),bs=o("5931"),ds=o("482e"),Ms={LAYOUT:function(e){return S["a"].component("KAppLayout",{render:function(t){return t(Cs,{props:{layout:e}})}})},ALERT:function(e){return S["a"].component("KAppAlert",{render:function(t){return t(os["a"],{props:{value:!0,title:e.title,message:e.content},class:{"kcv-alert":!0}})}})},MAIN:function(e){return S["a"].component("KAppMain",{render:function(t){return t("div",a()({class:["kcv-main-container","kcv-dir-".concat(e.direction),"kcv-style-".concat(this.$store.getters["view/appStyle"])],attrs:{id:"".concat(e.applicationId,"-").concat(e.id),ref:"main-container"},style:a()({},e.style,e.mainPanelStyle)},e.name&&{ref:e.name}),this.$slots.default)}})},PANEL:function(e){return S["a"].component("KAppPanel",{render:function(t){return t("div",a()({class:["kcv-panel-container","kcv-dir-".concat(e.direction)],attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},style:Object(c["k"])(e)},e.name&&{ref:e.name}),this.$slots.default)}})},GROUP:function(e){return S["a"].component("KAppGroup",{data:function(){return{}},render:function(t){return t("div",{staticClass:"kcv-group",class:{"text-app-alt-color":e.attributes.altfg,"bg-app-alt-background":e.attributes.altbg,"kcv-wrapper":1===e.components.length,"kcv-group-bottom":e.attributes.bottom},attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},style:e.attributes.hfill?{width:"100%"}:{}},e.attributes.shelf||e.attributes.parentId?[t("div",a()({class:"kcv-group-content",style:Object(c["k"])(e)},e.attributes.scroll&&{attrs:{"data-simplebar":"data-simplebar"}}),this.$slots.default)]:[t("div",{staticClass:"kcv-group-container",class:{"kcv-group-no-label":!e.name}},[e.name?t("div",{class:"kcv-group-legend"},e.name):null,t("div",a()({class:"kcv-group-content",style:Object(c["k"])(e)},e.attributes.scroll&&{attrs:{"data-simplebar":"data-simplebar"}}),this.$slots.default)])])}})},SHELF:function(e){return e.attributes.opened?"true"===e.attributes.opened&&(e.attributes.opened=!0):e.attributes.opened=!1,S["a"].component("KAppShelf",{data:function(){return{opened:e.attributes.opened}},render:function(t){var o=this;return t(ps,{class:"kcv-collapsible",props:a()({opened:o.opened,headerClass:"kcv-collapsible-header",collapseIcon:"mdi-dots-vertical",separator:!1},!e.attributes.parentAttributes.multiple&&{group:e.attributes.parentId},{label:e.name},e.attributes.iconname&&{icon:"mdi-".concat(e.attributes.iconname)}),on:{hide:function(){e.attributes.opened=!1},show:function(){e.attributes.opened=!0}}},this.$slots.default)}})},SEPARATOR:function(e){return S["a"].component("KAppSeparator",{render:function(t){var o=this;return e.attributes.empty?t("hr",{class:"kcv-hr-separator",attrs:{id:"".concat(e.applicationId,"-").concat(e.id)}}):t("div",{class:"kcv-separator",attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},style:Object(c["k"])(e)},[e.attributes.iconname?t(Qe["a"],{class:"kcv-separator-icon",props:{name:"mdi-".concat(e.attributes.iconname),color:"app-main-color"}}):null,e.title?t("div",{class:"kcv-separator-title"},e.title):null,e.attributes.iconbutton?t(Qe["a"],{class:"kcv-separator-right",props:{name:"mdi-".concat(e.attributes.iconbutton),color:"app-main-color"},nativeOn:{click:function(){o.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},e,{components:[]}),booleanValue:!0})}}}):null,e.attributes.info?t(Qe["a"],{class:"kcv-separator-right",props:{name:"mdi-information-outline",color:"app-main-color"},nativeOn:{mouseover:function(){o.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},e,{components:[]}),booleanValue:!0})},mouseleave:function(){o.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},e,{components:[]}),booleanValue:!1})}}}):null])}})},TREE:function(e){var t=[];if(e.tree){var o=e.tree;e.tree.status||(e.tree.status={ticked:[],expanded:[],selected:{}});var n=function n(i){var r=o.values[i],a=Object(Ue["f"])(t,"".concat(e.id,"-").concat(r.id,"-").concat(i));if(!a){a={id:"".concat(e.id,"-").concat(r.id,"-").concat(i),label:r.label,type:r.type,observable:r.id,children:[]};var s=o.links.find(function(e){return e.first===i}).second;if(s===o.rootId)t.push(a);else{var c=n(s);c.children.push(a)}}return a};o.links.forEach(function(e){n(e.first)})}return S["a"].component("KAppTree",{data:function(){return{ticked:e.tree.status.ticked,expanded:e.tree.status.expanded,selected:e.tree.status.selected}},render:function(o){var n=this;return o("div",{class:"kcv-tree-container",style:Object(c["k"])(e)},[e.name?o("div",{class:"kcv-tree-legend"},e.name):null,o(Zt["a"],{class:"kcv-tree",attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},props:{nodes:t,nodeKey:"id",tickStrategy:e.attributes.check?"leaf":"none",ticked:n.ticked,selected:n.selected,expanded:n.expanded,color:"app-main-color",controlColor:"app-main-color",textColor:"app-main-color",dense:!0},on:{"update:ticked":function(t){n.ticked=t,e.tree.status.ticked=t;var o=e.tree,i=(o.status,ts()(o,["status"]));n.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},e,{tree:i,components:[]}),listValue:t})},"update:selected":function(t){n.selected=t,e.tree.status.selected=t},"update:expanded":function(t){n.expanded=t,e.tree.status.expanded=t}}}),e.attributes.tooltip?o(Ze["a"],{props:{anchor:"top right",self:"top left",offset:[6,0]}},[e.attributes.tooltip]):null])}})},LABEL:function(e){return e.attributes.width||(e.attributes.width=c["b"].LABEL_MIN_WIDTH),S["a"].component("KAppText",{data:function(){return{editable:!1,doneFunc:null,result:null,value:null,searchRequestId:0,searchContextId:null,searchTimeout:null,selected:null}},computed:{searchResult:function(){return this.$store.getters["data/searchResult"]},isSearch:function(){return"search"===e.attributes.tag&&this.editable}},methods:{search:function(e,t){var o=this;this.searchRequestId+=1,this.sendStompMessage(p["a"].SEARCH_REQUEST({requestId:this.searchRequestId,contextId:this.searchContextId,maxResults:-1,cancelSearch:!1,defaultResults:""===e,searchMode:c["F"].FREETEXT,queryString:e},this.$store.state.data.session).body),this.doneFunc=t,this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){o.$q.notify({message:o.$t("errors.searchTimeout"),type:"warning",icon:"mdi-alert",timeout:2e3}),o.doneFunc&&o.doneFunc([])},"4000")},autocompleteSelected:function(e){e&&(this.selected=e)},sendSelected:function(){this.sendStompMessage(p["a"].SEARCH_MATCH({contextId:this.searchContextId,matchIndex:this.selected.matchIndex,matchId:this.selected.id,added:!0},this.$store.state.data.session).body)},init:function(){this.doneFunc=null,this.result=null,this.value=null,this.searchRequestId=0,this.searchContextId=null,this.searchTimeout=null,this.selected=null}},watch:{searchResult:function(e){var t=this;if(this.isSearch){this.searchTimeout&&(clearTimeout(this.searchTimeout),this.searchTimeout=null);var o=e.requestId,n=e.contextId;if(null===this.searchContextId)this.searchContextId=n;else if(n!==this.searchContextId)return;if(this.searchRequestId===o){var i;null!==this.result&&this.result.requestId===o&&(i=e.matches).push.apply(i,I()(this.result.matches)),this.result=e;var r=this.result,a=r.matches,s=r.error,p=r.errorMessage;if(s)this.$q.notify({message:p,type:"error",icon:"mdi-alert",timeout:2e3});else{var l=[];a.forEach(function(e){var t=c["w"][e.matchType];if("undefined"!==typeof t){var o=t;if(null!==e.mainSemanticType){var n=c["G"][e.mainSemanticType];"undefined"!==typeof n&&(o=n)}l.push({value:e.name,label:e.name,labelLines:1,sublabel:e.description,sublabelLines:4,letter:o.symbol,leftInverted:!0,leftColor:o.color,rgb:o.rgb,id:e.id,matchIndex:e.index,selected:!1,disable:e.state&&"FORTHCOMING"===e.state,separator:!1})}else console.warn("Unknown type: ".concat(e.matchType))}),0===l.length&&this.$q.notify({message:this.$t("messages.noSearchResults"),type:"info",icon:"mdi-information",timeout:1e3}),S["a"].nextTick(function(){t.doneFunc(l)})}}else console.warn("Result discarded for bad request id: actual: ".concat(this.searchRequestId," / received: ").concat(o,"\n"))}}},render:function(t){var o=this,n=this;return this.isSearch?t(us["a"],{class:["kcv-text-input","kcv-form-element","kcv-search"],style:Object(c["k"])(e),attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},props:{value:n.value,color:"app-main-color",hideUnderline:!0,dense:!0,type:n.type,autofocus:!0},on:{keydown:function(e){27===e.keyCode&&(o.editable=!1,o.doneFunc&&(o.doneFunc(),o.doneFunc=null),o.$store.dispatch("view/searchInApp",!1),e.stopPropagation(),n.init()),13===e.keyCode&&o.selected&&(o.$store.dispatch("view/searchInApp",!1),o.editable=!1,n.sendSelected(),n.init())},input:function(e){n.value=e},blur:function(){o.$store.dispatch("view/searchInApp",!1),o.editable=!1},focus:function(){o.$store.dispatch("view/searchInApp",!0)}}},[t(Ve["a"],{props:{debounce:400,"min-characters":4},on:{search:function(e,t){n.search(e,t)},selected:function(e,t){n.autocompleteSelected(e,t)}}})]):t("div",a()({staticClass:"kcv-label",class:{"kcv-title":e.attributes.tag&&("title"===e.attributes.tag||"search"===e.attributes.tag),"kcv-clickable":"true"!==e.attributes.disabled&&"search"===e.attributes.tag,"kcv-ellipsis":e.attributes.ellipsis,"kcv-with-icon":e.attributes.iconname,"kcv-label-error":e.attributes.error,"kcv-label-info":e.attributes.info,"kcv-label-waiting":e.attributes.waiting},attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},style:Object(c["k"])(e)},"true"!==e.attributes.disabled&&"search"===e.attributes.tag&&{on:{click:function(){o.editable=!0,o.$store.dispatch("view/searchInApp",!0)}}}),[e.attributes.iconname?t(Qe["a"],{class:["kcv-label-icon",e.attributes.toggle?"kcv-label-toggle":""],props:{name:"mdi-".concat(e.attributes.iconname),color:"app-main-color"}}):null,e.content,e.attributes.tooltip?t(Ze["a"],{props:{anchor:"top right",self:"top left",offset:[6,0]}},"true"===e.attributes.tooltip?e.content:e.attributes.tooltip):null])}})},TEXT_INPUT:function(e){return S["a"].component("KAppTextInput",{data:function(){return{component:e,value:e.content,type:e.attributes.type||"number"}},render:function(t){var o=this;return t(us["a"],{class:["kcv-text-input","kcv-form-element","textarea"===e.attributes.type&&"kcv-textarea"],style:Object(c["k"])(e),attrs:{id:"".concat(e.applicationId,"-").concat(e.id),rows:e.attributes.rows||1},props:{value:o.value,color:"app-main-color",hideUnderline:!0,dense:!0,type:o.type,disable:"true"===e.attributes.disabled},on:{keydown:function(e){e.stopPropagation()},input:function(t){o.value=t,e.content=t,o.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},e,{components:[]}),stringValue:t})}}})}})},COMBO:function(e){return S["a"].component("KAppCombo",{data:function(){return{component:e,value:e.attributes.selected?e.choices.find(function(t){return t.first===e.attributes.selected}).first:e.choices[0].first}},render:function(t){var o=this;return t(bs["a"],{class:["kcv-combo","kcv-form-element"],style:Object(c["k"])(e),attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},props:{value:o.value,options:e.choices.map(function(e){return{label:e.first,value:e.second,className:"kcv-combo-option"}}),color:"app-text-color",popupCover:!1,dense:!0,disable:"true"===e.attributes.disabled,dark:"dark"===this.$store.getters["view/appStyle"]},on:{change:function(t){o.value=t,e.attributes.selected=o.value,o.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},e,{components:[]}),stringValue:t})}}})}})},PUSH_BUTTON:function(e){return S["a"].component("KAppPushButton",{data:function(){return{state:null}},watch:{state:function(){var t=this;e.attributes.timeout&&setTimeout(function(){delete e.attributes.error,delete e.attributes.waiting,delete e.attributes.done,t.state=null},e.attributes.timeout)}},render:function(t){var o=this,n=e.attributes.iconname&&!e.name;this.state=e.attributes.waiting?"waiting":e.attributes.computing?"computing":e.attributes.error?"error":e.attributes.done?"done":null;var i=e.attributes.waiting?"app-background-color":e.attributes.computing?"app-alt-color":e.attributes.error?"app-negative-color":e.attributes.done?"app-positive-color":"app-background-color";return t(ds["a"],{class:[n?"kcv-roundbutton":"kcv-pushbutton","kcv-form-element","breset"===e.attributes.tag?"kcv-reset-button":""],style:a()({},Object(c["k"])(e),e.attributes.timeout&&{"--button-icon-color":"app-background-color","--flash-color":e.attributes.error?"var(--app-negative-color)":e.attributes.done?"var(--app-positive-color)":"var(--app-main-color)",animation:"flash-button ".concat(e.attributes.timeout,"ms")}||{"--button-icon-color":"var(--".concat(i,")")}),attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},props:a()({},e.name&&{label:e.name,"text-color":"app-control-text-color"},{color:e.attributes.color?e.attributes.color:"app-main-color"},n&&{round:!0,dense:!0,flat:!0},{noCaps:!0,disable:"true"===e.attributes.disabled},"error"===this.state&&{icon:"mdi-alert-circle"}||"done"===this.state&&{icon:"mdi-check-circle"}||e.attributes.iconname&&{icon:"mdi-".concat(e.attributes.iconname)},"waiting"===this.state&&{loading:!0}),on:{click:function(){o.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},e,{components:[]})})}}},[e.attributes.tooltip?t(Ze["a"],{props:{anchor:"bottom left",self:"top left",offset:[10,0],delay:600}},"true"===e.attributes.tooltip?e.content:e.attributes.tooltip):null])}})},CHECK_BUTTON:function(e){return S["a"].component("KAppCheckButton",{data:function(){return{value:!!e.attributes.checked,component:e}},render:function(t){var o=this,n=e.attributes.waiting?"waiting":e.attributes.computing?"computing":e.attributes.error?"error":e.attributes.done?"done":null,i=e.attributes.error?"app-negative-color":e.attributes.done?"app-positive-color":"app-main-color";return t("div",{class:["kcv-checkbutton","kcv-form-element","text-".concat(i),"kcv-check-".concat(n),""===e.name?"kcv-check-only":"kcv-check-with-label"],style:Object(c["k"])(e)},[t(oo["a"],{props:a()({value:o.value,color:i,keepColor:!0,label:e.name,disable:"true"===e.attributes.disabled},e.attributes.waiting&&{"checked-icon":"mdi-loading","unchecked-icon":"mdi-loading",readonly:!0},e.attributes.computing&&{"checked-icon":"mdi-cog-outline","unchecked-icon":"mdi-cog-outline",readonly:!0}),attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},on:{input:function(t){o.value=t,e.attributes.checked=t,o.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},e,{components:[]}),booleanValue:t})}}}),e.attributes.tooltip?t(Ze["a"],{props:{anchor:"top left",self:"top right",offset:[e.attributes.width?52:0,0]}},"true"===e.attributes.tooltip?e.name:e.attributes.tooltip):null,e.attributes.error&&"true"!==e.attributes.error?t(Ze["a"],{class:"kcv-error-tooltip",props:{anchor:"bottom left",self:"top left",offset:[-10,0]}},e.attributes.error):null])}})},RADIO_BUTTON:function(e){return S["a"].component("KAppRadioButton",{data:function(){return{value:null,component:e}},render:function(t){var o=this;return t("div",{class:["kcv-checkbutton","kcv-form-element"],style:Object(c["k"])(e)},[t(ls["a"],{props:{val:!1,value:!1,color:"app-main-color",label:e.name},attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},on:{input:function(t){o.value=t,o.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:a()({},e,{components:[]}),booleanValue:t})}}})])}})},TEXT:function(e){return S["a"].component("KAppText",{data:function(){return{collapsed:!1}},render:function(t){var o=this;return t("div",{staticClass:"kcv-text",class:{"kcv-collapse":e.attributes.collapse,"kcv-collapsed":o.collapsed},attrs:{"data-simplebar":"data-simplebar"},style:Object(c["k"])(e)},[t("div",{staticClass:"kcv-internal-text",attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},domProps:{innerHTML:e.content}}),e.attributes.collapse?t("div",{staticClass:"kcv-collapse-button",on:{click:function(){o.collapsed=!o.collapsed}}},[t(Qe["a"],{staticClass:"kcv-collapse-icon",props:{name:o.collapsed?"mdi-arrow-down":"mdi-arrow-up",color:"app-main-color",size:"sm"}})]):null])}})},BROWSER:function(e){return S["a"].component("KBrowswer",{mounted:function(){},render:function(t){var o=e.content.startsWith("http")?e.content:"".concat("").concat("/modeler").concat(e.content);return t("iframe",{class:"kcv-browser",attrs:{id:"".concat(e.applicationId,"-").concat(e.id),width:e.attributes.width||"100%",height:e.attributes.height||"100%",frameBorder:"0",src:o},style:a()({},Object(c["k"])(e),{position:"absolute",top:0,bottom:0,left:0,right:0})})}})},UNKNOWN:function(e){return S["a"].component("KAppUnknown",{render:function(t){return t("div",{class:"kcv-unknown",attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},style:Object(c["k"])(e)},e.type)}})}};function hs(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return[];if(e.type===c["a"].VIEW)return t(Ms.LAYOUT);var n,i=null;switch(e.attributes.parentAttributes&&e.attributes.parentAttributes.shelf&&(i=Ms.SHELF(e)),e.type){case null:var r=o.mainPanelStyle,s=void 0===r?{}:r,p=o.direction,l=void 0===p?"vertical":p;n=Ms.MAIN(a()({},e,{mainPanelStyle:s,direction:l}));break;case c["a"].PANEL:n=Ms.PANEL(e);break;case c["a"].SEPARATOR:n=Ms.SEPARATOR(e);break;case c["a"].LABEL:n=Ms.LABEL(e);break;case c["a"].TEXT_INPUT:n=Ms.TEXT_INPUT(e);break;case c["a"].PUSH_BUTTON:n=Ms.PUSH_BUTTON(e);break;case c["a"].CHECK_BUTTON:n=Ms.CHECK_BUTTON(e);break;case c["a"].RADIO_BUTTON:n=Ms.RADIO_BUTTON(e);break;case c["a"].TREE:n=Ms.TREE(e);break;case c["a"].GROUP:n=Ms.GROUP(e),e.components&&e.components.length>0&&e.components.forEach(function(t){t.attributes.parentId=e.id,t.attributes.parentAttributes=e.attributes});break;case c["a"].TEXT:n=Ms.TEXT(e);break;case c["a"].COMBO:n=Ms.COMBO(e);break;case c["a"].BROWSER:n=Ms.BROWSER(e);break;default:n=Ms.UNKNOWN(e)}var u=[];return e.components&&e.components.length>0&&e.components.forEach(function(e){u.push(hs(e,t))}),i?t(i,{},[t(n,{},u)]):t(n,{},u)}var fs,zs,Os=K["b"].height,As={name:"KlabAppViewer",props:{component:{type:Object,required:!0},props:{type:Object,default:null},direction:{type:String,validator:function(e){return["horizontal","vertical"].includes(e)},default:"vertical"},mainPanelStyle:{type:Object,default:function(){return{}}}},data:function(){return{mainContainerHeight:void 0}},computed:{},methods:{calculateMinHeight:function(){this.$nextTick(function(){for(var e=document.querySelectorAll(".kcv-group-bottom"),t=0,o=0;o0},set:function(){}},showRightPanel:{get:function(){return this.layout&&this.layout.rightPanels.length>0},set:function(){}},leftPanelWidth:function(){return this.layout&&this.layout.leftPanels&&this.layout.leftPanels.length>0&&this.layout.leftPanels[0].attributes.width?parseInt(this.layout.leftPanels[0].attributes.width,10):512},rightPanelWidth:function(){return this.layout&&this.layout.rightPanels&&this.layout.rightPanels.length>0&&this.layout.rightPanels[0].attributes.width?parseInt(this.layout.rightPanels[0].attributes.width,10):512},mainPanelStyle:function(){return{width:this.header.width-this.leftPanel.width-this.rightPanel.width,height:this.leftPanel.height}},idSuffix:function(){return null!==this.layout?this.layout.applicationId:"default"},modalDimensions:function(){return this.isModal?{width:this.modalWidth,height:this.modalHeight,"min-height":this.modalHeight}:{}}}),methods:{setLogoImage:function(){this.layout&&this.layout.logo?this.logoImage="".concat("").concat(L["c"].REST_GET_PROJECT_RESOURCE,"/").concat(this.layout.projectId,"/").concat(this.layout.logo.replace("/",":")):this.logoImage=c["b"].DEFAULT_LOGO},setStyle:function(){var e=this,t=null;if(null===this.layout)t=c["j"].default;else{if(t=a()({},this.layout.style&&c["j"][this.layout.style]?c["j"][this.layout.style]:c["j"].default),this.layout.styleSpecs)try{var o=JSON.parse(this.layout.styleSpecs);t=a()({},t,o)}catch(e){console.error("Error parsing style specs",e)}var n=(this.layout.leftPanels.length>0&&this.layout.leftPanels[0].attributes.width?parseInt(this.layout.leftPanels[0].attributes.width,10):0)+(this.layout.rightPanels.length>0&&this.layout.rightPanels[0].attributes.width?parseInt(this.layout.rightPanels[0].attributes.width,10):0);0!==n&&document.documentElement.style.setProperty("--body-min-width","calc(640px + ".concat(n,"px)"))}null!==t&&Object.keys(t).forEach(function(o){var n=t[o];if("density"===o)switch(o="line-height",t.density){case"default":n=1;break;case"confortable":n=1.5;break;case"compact":n=.5;break;default:n=1}if(document.documentElement.style.setProperty("--app-".concat(o),n),o.includes("color"))try{var i=Object(He["e"])(n);if(i&&i.rgb){var r=e.layout&&"dark"===e.layout.style?-1:1;document.documentElement.style.setProperty("--app-rgb-".concat(o),"".concat(i.rgb.r,",").concat(i.rgb.g,",").concat(i.rgb.b)),document.documentElement.style.setProperty("--app-highlight-".concat(o),ys("rgb(".concat(i.rgb.r,",").concat(i.rgb.g,",").concat(i.rgb.b,")"),-15*r)),document.documentElement.style.setProperty("--app-darklight-".concat(o),ys("rgb(".concat(i.rgb.r,",").concat(i.rgb.g,",").concat(i.rgb.b,")"),-5*r)),document.documentElement.style.setProperty("--app-darken-".concat(o),ys("rgb(".concat(i.rgb.r,",").concat(i.rgb.g,",").concat(i.rgb.b,")"),-20*r)),document.documentElement.style.setProperty("--app-lighten-".concat(o),ys("rgb(".concat(i.rgb.r,",").concat(i.rgb.g,",").concat(i.rgb.b,")"),20*r)),document.documentElement.style.setProperty("--app-lighten90-".concat(o),ys("rgb(".concat(i.rgb.r,",").concat(i.rgb.g,",").concat(i.rgb.b,")"),90*r)),document.documentElement.style.setProperty("--app-lighten75-".concat(o),ys("rgb(".concat(i.rgb.r,",").concat(i.rgb.g,",").concat(i.rgb.b,")"),75*r))}}catch(e){console.warn("Error trying to parse a color from the layout style: ".concat(o,": ").concat(n))}}),this.$nextTick(function(){var e=document.querySelector(".kapp-left-inner-container");e&&new Ae(e);var t=document.querySelector(".kapp-right-inner-container");t&&new Ae(t)})},updateLayout:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.setLogoImage();var o=document.querySelector(".kapp-main.kapp-header-container");this.header.height=o?_s(o):0,this.header.width=window.innerWidth,this.leftPanel.height=window.innerHeight-this.header.height;var n=document.querySelector(".kapp-main.kapp-left-container aside");this.leftPanel.width=n?qs(n):0,this.rightPanel.height=window.innerHeight-this.header.height;var i=document.querySelector(".kapp-main.kapp-right-container aside");this.rightPanel.width=i?qs(i):0,this.$nextTick(function(){e.$eventBus.$emit(c["h"].MAP_SIZE_CHANGED,{type:"changelayout",align:e.layout&&e.layout.leftPanels.length>0?"right":"left"})}),this.setStyle(),t&&this.$eventBus.$emit(c["h"].SHOW_NOTIFICATIONS,{apps:null!==this.layout?[this.layout.name]:[],groups:this.sessionReference&&this.sessionReference.owner&&this.sessionReference.owner.groups?this.sessionReference.owner.groups.map(function(e){return e.id}):[]})},downloadListener:function(e){var t=e.url,o=e.parameters;this.$axios.get("".concat("").concat("/modeler").concat(t),{params:{format:"RAW"},responseType:"blob"}).then(function(e){var t=document.createElement("a");t.href=URL.createObjectURL(e.data),t.setAttribute("download",o.filename||"output_".concat((new Date).getTime())),document.body.appendChild(t),t.click(),t.remove(),setTimeout(function(){return URL.revokeObjectURL(t.href)},5e3)}).catch(function(e){console.error(e)})},clickOnMenu:function(e,t){if(t&&window.open(t),this.layout){var o=this.layout,n=o.applicationId,i=o.identity;this.sendStompMessage(p["a"].MENU_ACTION({identity:i,applicationId:n,menuId:e},this.$store.state.data.session).body)}},resetContextListener:function(){var e=this;null!==this.resetTimeout&&(clearTimeout(this.resetTimeout),this.resetTimeout=null),this.blockApp=!0,this.resetTimeout=setTimeout(function(){e.blockApp=!1,e.resetTimeout=null},1e3)},viewActionListener:function(){null!==this.resetTimeout&&this.resetContextListener()},updateListeners:function(){null!==this.layout?this.isRootLayout&&(this.$eventBus.$on(c["h"].RESET_CONTEXT,this.resetContextListener),this.$eventBus.$on(c["h"].VIEW_ACTION,this.viewActionListener),this.$eventBus.$on(c["h"].COMPONENT_ACTION,this.componentClickedListener)):(this.$eventBus.$off(c["h"].RESET_CONTEXT,this.resetContextListener),this.$eventBus.$off(c["h"].VIEW_ACTION,this.viewActionListener),this.$eventBus.$off(c["h"].COMPONENT_ACTION,this.componentClickedListener))},componentClickedListener:function(e){delete e.component.attributes.parentAttributes,delete e.component.attributes.parentId,this.sendStompMessage(p["a"].VIEW_ACTION(a()({},Ws,e),this.$store.state.data.session).body)}},watch:{layout:function(e,t){var o=this,n=null!==e&&(null===t||e.applicationId!==t.applicationId);if((null===e||!this.isApp&&n)&&(this.$nextTick(function(){o.updateLayout(!0)}),null!==t&&null!==t.name)){this.sendStompMessage(p["a"].RUN_APPLICATION({applicationId:t.name,stop:!0},this.$store.state.data.session).body);var i=localStorage.getItem(c["Q"].LOCAL_STORAGE_APP_ID);i&&i===t.name&&localStorage.removeItem(c["Q"].LOCAL_STORAGE_APP_ID)}null===t&&this.updateListeners()}},created:function(){},mounted:function(){this.updateLayout(!0),this.updateListeners(),this.$eventBus.$on(c["h"].DOWNLOAD_URL,this.downloadListener)},beforeDestroy:function(){this.$eventBus.$off(c["h"].DOWNLOAD_URL,this.downloadListener),this.$eventBus.$off(c["h"].RESET_CONTEXT,this.resetContextListener),this.$eventBus.$off(c["h"].VIEW_ACTION,this.viewActionListener)}},ws=Rs,Ls=(o("4b0d"),Object(A["a"])(ws,ae,se,!1,null,null,null));Ls.options.__file="KlabLayout.vue";var Cs=Ls.exports,Ss=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("q-modal",{attrs:{"content-classes":"km-main-container","no-esc-dismiss":"","no-backdrop-dismiss":""},model:{value:e.open,callback:function(t){e.open=t},expression:"open"}},[o("q-modal-layout",{staticClass:"km-modal-window"},[e.modal.label?o("q-toolbar",{staticClass:"km-title",attrs:{slot:"header"},slot:"header"},[o("q-toolbar-title",[e._v(e._s(e.modal.label))]),e.modal.subtitle?o("span",{staticClass:"km-subtitle",attrs:{slot:"subtitle"},slot:"subtitle"},[e._v(e._s(e.modal.subtitle))]):e._e()],1):e._e(),o("klab-layout",{staticClass:"km-content",attrs:{layout:e.modal,isModal:!0,"modal-width":e.width,"modal-height":e.height}}),o("div",{staticClass:"km-buttons justify-end row"},[o("q-btn",{staticClass:"klab-button",attrs:{label:e.$t("label.appClose")},on:{click:e.close}})],1)],1)],1)},Es=[];Ss._withStripped=!0;var Ts={name:"KlabModalWindow",props:{modal:{type:Object,required:!0}},components:{KlabLayout:Cs},data:function(){return{instance:void 0}},computed:{open:{get:function(){return null!==this.modal},set:function(e){e||this.close()}},width:function(){return this.modal&&("".concat(this.modal.panels[0].attributes.width,"px")||!1)},height:function(){return this.modal&&("".concat(this.modal.panels[0].attributes.height,"px")||!1)}},methods:a()({},Object(s["b"])("view",["setModalWindow"]),{close:function(){this.setModalWindow(null)}})},xs=Ts,Ns=(o("a4c5"),Object(A["a"])(xs,Ss,Es,!1,null,null,null));Ns.options.__file="KlabModalWindow.vue";var Bs=Ns.exports,ks=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{directives:[{name:"show",rawName:"v-show",value:e.showHelp,expression:"showHelp"}],staticClass:"modal fullscreen",attrs:{id:"modal-show-help"}},[o("div",{staticClass:"modal-backdrop absolute-full"}),o("div",{ref:"kp-help-container",staticClass:"klab-modal-container",style:{width:e.modalSize.width+"px",height:e.modalSize.height+"px",transform:"translate(-50%, -50%) scale("+e.scale+", "+e.scale+") !important"}},[o("div",{ref:"kp-help-inner",staticClass:"klab-modal-inner"},[o("div",{staticClass:"klab-modal-content full-height"},[o("div",{staticClass:"kp-help-titlebar"},e._l(e.presentations,function(t,n){return o("div",{key:"kp-pres-"+n,staticClass:"kp-link",class:{"kp-link-current":n===e.activeSectionIndex},attrs:{id:"kp-pres-"+n},on:{click:function(t){n!==e.activeSectionIndex&&e.loadPresentation(n)}}},[o("span",[e._v(e._s(t.linkTitle))])])})),e.presentationBlocked?e._e():o("q-carousel",{ref:"kp-carousel",staticClass:"kp-carousel full-height",attrs:{color:"white","no-swipe":""},on:{"slide-trigger":e.initStack}},e._l(e.activePresentation,function(t,n){return o("q-carousel-slide",{key:"kp-slide-"+n,staticClass:"kp-slide full-height"},[o("div",{staticClass:"kp-main-content"},[t.stack.layers&&t.stack.layers.length>0?o("klab-stack",{ref:"kp-stack",refInFor:!0,attrs:{presentation:e.presentations[e.activeSectionIndex],"owner-index":n,maxOwnerIndex:e.activePresentation.length,stack:t.stack,"on-top":e.currentSlide===n},on:{stackend:e.stackEnd}}):o("div",[e._v("No slides")]),t.title?o("div",{staticClass:"kp-main-title",domProps:{innerHTML:e._s(t.title)}}):e._e()],1)])}))],1),o("div",{staticClass:"kp-nav-tooltip",class:{visible:""!==e.tooltipTitle},domProps:{innerHTML:e._s(e.tooltipTitle)}}),o("div",{staticClass:"kp-navigation"},[o("div",{staticClass:"kp-nav-container"},e._l(e.activePresentation,function(t,n){return o("div",{key:"kp-nav-"+n,staticClass:"kp-navnumber-container",on:{click:function(t){e.goTo(n,0)},mouseover:function(o){e.showTitle(t.title)},mouseleave:function(t){e.showTitle("")}}},[o("div",{staticClass:"kp-nav-number",class:{"kp-nav-current":e.currentSlide===n}},[e._v(e._s(n+1))])])}))]),o("div",{staticClass:"kp-btn-container"},[o("q-checkbox",{staticClass:"kp-checkbox",attrs:{"keep-color":!0,color:"grey-8",label:e.$t("label.rememberDecision"),"left-label":!0},model:{value:e.remember,callback:function(t){e.remember=t},expression:"remember"}})],1),o("q-btn",{directives:[{name:"show",rawName:"v-show",value:1!==e.scale,expression:"scale !== 1"}],staticClass:"kp-icon-refresh-size",attrs:{icon:"mdi-refresh",color:"mc-main",size:"md",title:e.$t("label.refreshSize"),round:"",flat:""},on:{click:e.refreshSize}}),o("q-btn",{staticClass:"kp-icon-close-popover",attrs:{icon:"mdi-close-circle-outline",color:"grey-8",size:"md",title:e.$t("label.appClose"),round:"",flat:""},on:{click:e.hideHelp}})],1),e.waitForPresentation||e.presentationBlocked?o("div",{staticClass:"kp-help-inner",class:{"modal-backdrop":!e.presentationBlocked&&e.waitForPresentation}},[e.presentationBlocked?o("div",{staticClass:" kp-no-presentation"},[o("div",{staticClass:"fixed-center text-center"},[o("div",{staticClass:"kp-np-content",domProps:{innerHTML:e._s(e.$t("messages.presentationBlocked"))}}),o("q-btn",{attrs:{flat:"","no-caps":"",icon:"mdi-refresh",label:e.$t("label.appRetry")},on:{click:e.initPresentation}})],1)]):e.waitForPresentation?o("q-spinner",{staticClass:"fixed-center",attrs:{color:"mc-yellow",size:40}}):e._e()],1):e._e()])])},Ps=[];ks._withStripped=!0;o("55dd"),o("28a5");var Ds=function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.layers.length>0?o("div",{ref:"ks-stack-container",staticClass:"ks-stack-container"},[e._l(e.layers,function(t,n){return o("div",{key:"ks-layer-"+n,ref:"ks-layer",refInFor:!0,staticClass:"ks-layer",class:{"ks-top-layer":e.selectedLayer===n,"ks-hide-layer":e.selectedLayer!==n},style:{"z-index":e.selectedLayer===n?9999:e.layers.length-n},attrs:{id:"ks-layer-"+e.ownerIndex+"-"+n}},[t.image?o("div",{staticClass:"ks-layer-image",class:e.elementClasses(t.image),style:e.elementStyle(t.image)},[o("img",{style:{width:t.image.width||"auto",height:t.image.height||"auto","max-width":e.imgMaxSize.width,"max-height":e.imgMaxSize.height},attrs:{src:e.getImage(t),alt:t.image.alt||t.title||t.text,title:t.image.alt||t.title||t.text,id:"ks-image-"+e.ownerIndex+"-"+n}})]):e._e(),t.title||t.text?o("div",{staticClass:"ks-layer-caption",class:e.elementClasses(t.textDiv),style:e.elementStyle(t.textDiv)},[t.title?o("div",{staticClass:"ks-caption-title",domProps:{innerHTML:e._s(e.rewriteImageUrl(t.title))}}):e._e(),t.text?o("div",{staticClass:"ks-caption-text",style:{"text-align":t.textAlign||"left"},domProps:{innerHTML:e._s(e.rewriteImageUrl(t.text))}}):e._e()]):e._e()])}),o("div",{staticClass:"ks-navigation",class:{"ks-navigation-transparent":null!==e.animation}},[o("q-btn",{attrs:{id:"ks-prev",disable:!e.hasPrevious,"text-color":"grey-8",icon:"mdi-chevron-left",round:"",flat:"",dense:"",title:e.$t("label.appPrevious")},on:{click:e.previous}}),o("q-btn",{attrs:{id:"ks-play-stop",disable:!e.hasNext,"text-color":"grey-8",icon:null===e.animation?"mdi-play":"mdi-pause",round:"",flat:"",dense:"",title:null===e.animation?e.$t("label.appPlay"):e.$t("label.appPause")},on:{click:function(t){null===e.animation?e.playStack():e.stopStack()}}}),o("q-btn",{attrs:{id:"ks-replay",disable:!e.isGif,"text-color":"grey-8",icon:"mdi-reload",round:"",flat:"",dense:"",title:e.$t("label.appReplay")},on:{click:function(t){e.refreshLayer(e.layers[e.selectedLayer])}}}),o("q-btn",{attrs:{id:"ks-next",disable:!e.hasNext,"text-color":"grey-8",icon:"mdi-chevron-right",round:"",flat:"",dense:"",title:e.$t("label.appNext")},on:{click:e.next}})],1)],2):e._e()},Is=[];Ds._withStripped=!0;o("aef6");var Xs={name:"KlabStack",props:{presentation:{type:Object,required:!0},ownerIndex:{type:Number,required:!0},maxOwnerIndex:{type:Number,required:!0},stack:{type:Object,required:!0},onTop:{type:Boolean,default:!1}},data:function(){return{selectedLayer:0,animation:null,layers:this.stack.layers,animated:"undefined"!==typeof this.stack.animated&&this.stack.animated,autostart:"undefined"!==typeof this.stack.autostart?this.stack.autostart:0===this.ownerIndex,duration:this.stack.duration||5e3,infinite:"undefined"!==typeof this.stack.infinite&&this.stack.infinite,initialSize:{},scale:1,imgMaxSize:{width:"auto",height:"auto"}}},computed:{hasPrevious:function(){return this.selectedLayer>0||this.ownerIndex>0||this.infinite},hasNext:function(){return this.selectedLayer0?this.goTo(this.selectedLayer-1):this.infinite?this.goTo(this.layers.length-1):this.$emit("stackend",{index:this.ownerIndex,direction:-1})},reloadGif:function(e){var t=document.getElementById("ks-image-".concat(this.ownerIndex,"-").concat(this.selectedLayer));t&&(t.src=this.getImage(e))},setAnimation:function(e){if(this.hasNext){var t=this;null!==this.animation&&(clearTimeout(this.animation),this.animation=null),this.animation=setTimeout(function(){t.next()},e)}},getImage:function(e){return e.image?"".concat(this.baseUrl,"/").concat(e.image.url,"?t=").concat(Math.random()):""},rewriteImageUrl:function(e){return e&&e.length>0&&-1!==e.indexOf("0?t0&&this.goTo(t-1,"last")},refreshSize:function(){this.initialSize=void 0,this.onResize()},onResize:function(){var e=this;setTimeout(function(){if("undefined"===typeof e.initialSize){var t=window.innerWidth,o=window.innerHeight;e.initialSize={width:t,height:o}}if(e.scale=Math.min(window.innerWidth/e.initialSize.width,window.innerHeight/e.initialSize.height),1===e.scale){var n=window.innerWidth*c["r"].DEFAULT_WIDTH_PERCENTAGE/100,i=n/c["r"].DEFAULT_PROPORTIONS.width*c["r"].DEFAULT_PROPORTIONS.height,r=window.innerHeight*c["r"].DEFAULT_HEIGHT_PERCENTAGE/100,a=r/c["r"].DEFAULT_PROPORTIONS.height*c["r"].DEFAULT_PROPORTIONS.width;n0){var r=0;i.forEach(function(o,n){r+=1,Vs()("".concat(e.helpBaseUrl,"/index.php?sec=").concat(o.id),{param:"callback"},function(i,a){i?console.error(i.message):t.presentations.push({id:o.id,baseFolder:o.baseFolder,linkTitle:o.name,linkDescription:o.description,slides:a,index:n}),r-=1,0===r&&(e.presentationsLoading=!1,e.presentations.sort(function(e,t){return e.index-t.index}))})})}}})}catch(e){console.error("Error loading presentation: ".concat(e.message)),this.presentationsLoading=!1,this.presentationBlocked=e}}}),watch:{showHelp:function(e){this.$store.state.view.helpShown=e,e&&!this.presentationsLoading&&this.loadPresentation(0)},presentationsLoading:function(e){!e&&this.showHelp&&this.loadPresentation(0)},remember:function(e){e?G["a"].set(c["Q"].COOKIE_HELP_ON_START,!1,{expires:30,path:"/",secure:!0}):G["a"].remove(c["Q"].COOKIE_HELP_ON_START)}},created:function(){this.initPresentation()},mounted:function(){this.needHelp=this.isLocal&&!G["a"].has(c["Q"].COOKIE_HELP_ON_START),this.remember=!this.needHelp,this.$eventBus.$on(c["h"].NEED_HELP,this.helpNeededEvent),window.addEventListener("resize",this.onResize)},beforeDestroy:function(){this.$eventBus.$off(c["h"].NEED_HELP,this.helpNeededEvent),window.removeEventListener("resize",this.onResize)}},Ks=Gs,$s=(o("edad"),Object(A["a"])(Ks,ks,Ps,!1,null,null,null));$s.options.__file="KlabPresentation.vue";var Ys=$s.exports,Js=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("q-dialog",{staticClass:"kn-modal-container",attrs:{"prevent-close":""},scopedSlots:e._u([{key:"buttons",fn:function(t){return[o("q-checkbox",{staticClass:"kn-checkbox",attrs:{"keep-color":!0,color:"app-main-color",label:e.$t("label.rememberDecision")},model:{value:e.remember,callback:function(t){e.remember=t},expression:"remember"}}),o("q-btn",{attrs:{color:"app-main-color",label:e.$t("label.appAccept")},on:{click:e.onOk}})]}}]),model:{value:e.showNotifications,callback:function(t){e.showNotifications=t},expression:"showNotifications"}},[o("div",{staticClass:"kn-title",attrs:{slot:"title"},domProps:{innerHTML:e._s(e.actualNotification.title)},slot:"title"}),o("div",{staticClass:"kn-content",attrs:{slot:"message"},domProps:{innerHTML:e._s(e.actualNotification.content)},slot:"message"})])},Qs=[];Js._withStripped=!0;var Zs={name:"KlabNotifications",data:function(){return{notifications:[],actualNotificationIndex:-1,remember:!1,cooked:[]}},computed:a()({},Object(s["c"])("stomp",["connectionUp"]),Object(s["c"])("view",["isInModalMode"]),{showNotifications:{get:function(){return-1!==this.actualNotificationIndex&&!this.actualNotificationIndex.read},set:function(){}},actualNotification:function(){return-1===this.actualNotificationIndex?{id:-1,title:"",content:""}:this.notifications[this.actualNotificationIndex]}}),methods:a()({},Object(s["b"])("view",["setModalMode"]),{onOk:function(){var e=this,t=this.notifications[this.actualNotificationIndex];t.read=!0,this.remember&&(this.cooked.findIndex(function(e){return e===t.id})&&this.cooked.push(t.id),G["a"].set(c["Q"].COOKIE_NOTIFICATIONS,this.cooked,{expires:365,path:"/",secure:!0}),this.remember=!1),this.$nextTick(function(){do{e.actualNotificationIndex+=1}while(e.actualNotificationIndex0&&void 0!==arguments[0]?arguments[0]:{};this.notificationsLoading=!0,G["a"].has(c["Q"].COOKIE_NOTIFICATIONS)&&(this.cooked=G["a"].get(c["Q"].COOKIE_NOTIFICATIONS)),this.notifications.splice(0,this.notifications.length);try{var o="";if(t){var n=t.groups,i=t.apps;o=I()(n.map(function(e){return"groups[]=".concat(e)})).concat(I()(i.map(function(e){return"apps[]=".concat(e)}))).join("&")}var r=this;Vs()("".concat(c["d"].NOTIFICATIONS_URL).concat(""!==o?"?".concat(o):""),{param:"callback",timeout:5e3},function(t,o){t?console.error("Error loading notifications: ".concat(t.message)):o.length>0?o.forEach(function(e,t){var o=-1!==r.cooked.findIndex(function(t){return t==="".concat(e.id)});r.notifications.push(a()({},e,{read:o})),-1!==r.actualNotificationIndex||o||(r.actualNotificationIndex=t)}):console.debug("No notification"),e.presentationsLoading=!1})}catch(e){console.error("Error loading notifications: ".concat(e.message)),this.presentationsLoading=!1}}}),mounted:function(){this.$eventBus.$on(c["h"].SHOW_NOTIFICATIONS,this.initNotifications)},beforeDestroy:function(){this.$eventBus.$off(c["h"].SHOW_NOTIFICATIONS,this.initNotifications)}},ec=Zs,tc=(o("e0d9"),Object(A["a"])(ec,Js,Qs,!1,null,null,null));tc.options.__file="KlabNotifications.vue";var oc=tc.exports,nc=(o("8195"),{name:"LayoutDefault",components:{KlabLayout:Cs,KlabModalWindow:Bs,ConnectionStatus:_,KlabSettings:N,KlabTerminal:Z,AppDialogs:re,KlabPresentation:Ys,KlabNotifications:oc},data:function(){return{errorLoading:!1,waitApp:!1}},computed:a()({},Object(s["c"])("data",["hasContext","terminals","isDeveloper"]),Object(s["c"])("stomp",["connectionDown"]),Object(s["c"])("view",["layout","isApp","klabApp","modalWindow"]),{wait:{get:function(){return this.waitApp||this.errorLoading},set:function(){}}}),methods:{reload:function(){document.location.reload()}},created:function(){},mounted:function(){var e=this;this.sendStompMessage(p["a"].RESET_CONTEXT(this.$store.state.data.session).body);var t=localStorage.getItem(c["Q"].LOCAL_STORAGE_APP_ID);t&&(this.sendStompMessage(p["a"].RUN_APPLICATION({applicationId:t,stop:!0},this.$store.state.data.session).body),localStorage.removeItem(c["Q"].LOCAL_STORAGE_APP_ID)),this.isApp&&this.sendStompMessage(p["a"].RUN_APPLICATION({applicationId:this.$store.state.view.klabApp},this.$store.state.data.session).body),this.isApp&&null===this.layout&&(this.waitApp=!0,setTimeout(function(){e.isApp&&null===e.layout&&(e.errorLoading=!0)},15e3)),window.addEventListener("beforeunload",function(t){e.hasContext&&!e.isDeveloper&&(t.preventDefault(),t.returnValue=e.$t("messages.confirmExitPage"))})},watch:{layout:function(e){this.waitApp&&e&&(this.waitApp=!1),this.errorLoading&&e&&(this.errorLoading=!1)}}}),ic=nc,rc=(o("7521"),Object(A["a"])(ic,n,i,!1,null,null,null));rc.options.__file="default.vue";t["default"]=rc.exports},"7bae":function(e,t,o){},"7bae3":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("064a"),i=o("e1c6"),r=o("7f73"),a=o("755f"),s=o("6923"),c=o("e576"),p=new i.ContainerModule(function(e,t,o){n.configureModelElement({bind:e,isBound:o},"marker",r.SIssueMarker,a.IssueMarkerView),e(c.DecorationPlacer).toSelf().inSingletonScope(),e(s.TYPES.IVNodePostprocessor).toService(c.DecorationPlacer)});t.default=p},"7bbc":function(e,t,o){"use strict";var n=o("fcf8"),i=o.n(n);i.a},"7d36":function(e,t,o){"use strict";function n(e){return e.hasFeature(t.fadeFeature)&&void 0!==e["opacity"]}Object.defineProperty(t,"__esModule",{value:!0}),t.fadeFeature=Symbol("fadeFeature"),t.isFadeable=n},"7d72":function(e,t,o){"use strict";var n=o("62c8").Buffer,i=n.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(e){if(!e)return"utf8";var t;while(1)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=r(e);if("string"!==typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=M,this.end=h,t=4;break;case"utf8":this.fillLast=u,t=4;break;case"base64":this.text=f,this.end=z,t=3;break;default:return this.write=O,void(this.end=A)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function c(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function p(e,t,o){var n=t.length-1;if(n=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0))}function l(e,t,o){if(128!==(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"�"}}function u(e){var t=this.lastTotal-this.lastNeed,o=l(this,e,t);return void 0!==o?o:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function b(e,t){var o=p(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=o;var n=e.length-(o-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function M(e,t){if((e.length-t)%2===0){var o=e.toString("utf16le",t);if(o){var n=o.charCodeAt(o.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],o.slice(0,-1)}return o}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function h(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var o=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,o)}return t}function f(e,t){var o=(e.length-t)%3;return 0===o?e.toString("base64",t):(this.lastNeed=3-o,this.lastTotal=3,1===o?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-o))}function z(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function O(e){return e.toString(this.encoding)}function A(e){return e&&e.length?this.write(e):""}t.StringDecoder=s,s.prototype.write=function(e){if(0===e.length)return"";var t,o;if(this.lastNeed){if(t=this.fillLast(e),void 0===t)return"";o=this.lastNeed,this.lastNeed=0}else o=0;return o0,u=l?p.length:o.length,M=b(n,t,a,c,u),h=d(e,o),f=M.concat(h);return f}function u(e,t,o,a,s){var p=s[e.toString()]||[],l=h(p),u=!0!==l.unmanaged,b=a[e],d=l.inject||l.multiInject;if(b=d||b,b instanceof n.LazyServiceIdentifer&&(b=b.unwrap()),u){var M=b===Object,f=b===Function,z=void 0===b,O=M||f||z;if(!t&&O){var A=i.MISSING_INJECT_ANNOTATION+" argument "+e+" in class "+o+".";throw new Error(A)}var m=new c.Target(r.TargetTypeEnum.ConstructorArgument,l.targetName,b);return m.metadata=p,m}return null}function b(e,t,o,n,i){for(var r=[],a=0;a0?p:M(e,o)}return 0}function h(e){var t={};return e.forEach(function(e){t[e.key.toString()]=e.value}),{inject:t[a.INJECT_TAG],multiInject:t[a.MULTI_INJECT_TAG],targetName:t[a.NAME_TAG],unmanaged:t[a.UNMANAGED_TAG]}}t.getDependencies=p,t.getBaseClassDependencyCount=M},"7f45":function(e,t,o){var n=e.exports=o("0efb");n.tz.load(o("6cd2"))},"7f73":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=o("e4f0"),r=o("66f9");function a(e){return e.hasFeature(t.decorationFeature)}t.decorationFeature=Symbol("decorationFeature"),t.isDecoration=a;var s=function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return n(o,e),o.DEFAULT_FEATURES=[t.decorationFeature,r.boundsFeature,i.hoverFeedbackFeature,i.popupFeature],o}(r.SShapeElement);t.SDecoration=s;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(s);t.SIssueMarker=c;var p=function(){function e(){}return e}();t.SIssue=p},"7faf":function(e,t,o){"use strict";function n(e){return e.hasFeature(t.exportFeature)}Object.defineProperty(t,"__esModule",{value:!0}),t.exportFeature=Symbol("exportFeature"),t.isExportable=n},"80b5":function(e,t,o){"use strict";function n(e){return e instanceof HTMLElement?{x:e.offsetLeft,y:e.offsetTop}:e}Object.defineProperty(t,"__esModule",{value:!0}),t.toAnchor=n},8122:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("33b2"),a=o("9e2e"),s=o("0fb6"),c=o("be02"),p=o("160b"),l=o("302f"),u=o("538c"),b=o("29fa"),d=o("65d1"),M=o("3b4c"),h=o("1417"),f=o("a190"),z=o("064a"),O=o("8794"),A=o("0d7a"),m=o("b093"),v=o("842c"),g=o("cd10"),y=o("ddee"),q=o("1590"),_=o("3f0a"),W=o("6176"),R=o("c661"),w=new n.ContainerModule(function(e,t,o){e(i.TYPES.ILogger).to(a.NullLogger).inSingletonScope(),e(i.TYPES.LogLevel).toConstantValue(a.LogLevel.warn),e(i.TYPES.SModelRegistry).to(l.SModelRegistry).inSingletonScope(),e(c.ActionHandlerRegistry).toSelf().inSingletonScope(),e(i.TYPES.ActionHandlerRegistryProvider).toProvider(function(e){return function(){return new Promise(function(t){t(e.container.get(c.ActionHandlerRegistry))})}}),e(i.TYPES.ViewRegistry).to(z.ViewRegistry).inSingletonScope(),e(i.TYPES.IModelFactory).to(l.SModelFactory).inSingletonScope(),e(i.TYPES.IActionDispatcher).to(s.ActionDispatcher).inSingletonScope(),e(i.TYPES.IActionDispatcherProvider).toProvider(function(e){return function(){return new Promise(function(t){t(e.container.get(i.TYPES.IActionDispatcher))})}}),e(i.TYPES.IDiagramLocker).to(R.DefaultDiagramLocker).inSingletonScope(),e(i.TYPES.IActionHandlerInitializer).to(v.CommandActionHandlerInitializer),e(i.TYPES.ICommandStack).to(p.CommandStack).inSingletonScope(),e(i.TYPES.ICommandStackProvider).toProvider(function(e){return function(){return new Promise(function(t){t(e.container.get(i.TYPES.ICommandStack))})}}),e(i.TYPES.CommandStackOptions).toConstantValue({defaultDuration:250,undoHistoryLimit:50}),e(b.ModelViewer).toSelf().inSingletonScope(),e(b.HiddenModelViewer).toSelf().inSingletonScope(),e(b.PopupModelViewer).toSelf().inSingletonScope(),e(i.TYPES.ModelViewer).toDynamicValue(function(e){var t=e.container.createChild();return t.bind(i.TYPES.IViewer).toService(b.ModelViewer),t.bind(O.ViewerCache).toSelf(),t.get(O.ViewerCache)}).inSingletonScope(),e(i.TYPES.PopupModelViewer).toDynamicValue(function(e){var t=e.container.createChild();return t.bind(i.TYPES.IViewer).toService(b.PopupModelViewer),t.bind(O.ViewerCache).toSelf(),t.get(O.ViewerCache)}).inSingletonScope(),e(i.TYPES.HiddenModelViewer).toService(b.HiddenModelViewer),e(i.TYPES.IViewerProvider).toDynamicValue(function(e){return{get modelViewer(){return e.container.get(i.TYPES.ModelViewer)},get hiddenModelViewer(){return e.container.get(i.TYPES.HiddenModelViewer)},get popupModelViewer(){return e.container.get(i.TYPES.PopupModelViewer)}}}),e(i.TYPES.ViewerOptions).toConstantValue(d.defaultViewerOptions()),e(i.TYPES.PatcherProvider).to(b.PatcherProvider).inSingletonScope(),e(i.TYPES.DOMHelper).to(A.DOMHelper).inSingletonScope(),e(i.TYPES.ModelRendererFactory).toFactory(function(e){return function(t,o){var n=e.container.get(i.TYPES.ViewRegistry);return new b.ModelRenderer(n,t,o)}}),e(m.IdPostprocessor).toSelf().inSingletonScope(),e(i.TYPES.IVNodePostprocessor).toService(m.IdPostprocessor),e(i.TYPES.HiddenVNodePostprocessor).toService(m.IdPostprocessor),e(g.CssClassPostprocessor).toSelf().inSingletonScope(),e(i.TYPES.IVNodePostprocessor).toService(g.CssClassPostprocessor),e(i.TYPES.HiddenVNodePostprocessor).toService(g.CssClassPostprocessor),e(M.MouseTool).toSelf().inSingletonScope(),e(i.TYPES.IVNodePostprocessor).toService(M.MouseTool),e(h.KeyTool).toSelf().inSingletonScope(),e(i.TYPES.IVNodePostprocessor).toService(h.KeyTool),e(f.FocusFixPostprocessor).toSelf().inSingletonScope(),e(i.TYPES.IVNodePostprocessor).toService(f.FocusFixPostprocessor),e(i.TYPES.PopupVNodePostprocessor).toService(m.IdPostprocessor),e(M.PopupMouseTool).toSelf().inSingletonScope(),e(i.TYPES.PopupVNodePostprocessor).toService(M.PopupMouseTool),e(i.TYPES.AnimationFrameSyncer).to(u.AnimationFrameSyncer).inSingletonScope();var n={bind:e,isBound:o};v.configureCommand(n,r.InitializeCanvasBoundsCommand),e(r.CanvasBoundsInitializer).toSelf().inSingletonScope(),e(i.TYPES.IVNodePostprocessor).toService(r.CanvasBoundsInitializer),v.configureCommand(n,_.SetModelCommand),e(i.TYPES.IToolManager).to(y.ToolManager).inSingletonScope(),e(i.TYPES.KeyListener).to(y.DefaultToolsEnablingKeyListener),e(y.ToolManagerActionHandler).toSelf().inSingletonScope(),c.configureActionHandler(n,q.EnableDefaultToolsAction.KIND,y.ToolManagerActionHandler),c.configureActionHandler(n,q.EnableToolsAction.KIND,y.ToolManagerActionHandler),e(i.TYPES.UIExtensionRegistry).to(W.UIExtensionRegistry).inSingletonScope(),v.configureCommand(n,W.SetUIExtensionVisibilityCommand),e(M.MousePositionTracker).toSelf().inSingletonScope(),e(i.TYPES.MouseListener).toService(M.MousePositionTracker)});t.default=w},8195:function(e,t,o){},"81aa":function(e,t,o){"use strict";function n(e,t,o,n,i){var r=void 0===t?void 0:t.key;return{sel:e,data:t,children:o,text:n,elm:i,key:r}}Object.defineProperty(t,"__esModule",{value:!0}),t.vnode=n,t.default=n},8336:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("30e3"),i=o("155f"),r=o("0fd9"),a=o("2cac"),s=function(){function e(e){this._binding=e}return e.prototype.to=function(e){return this._binding.type=i.BindingTypeEnum.Instance,this._binding.implementationType=e,new r.BindingInWhenOnSyntax(this._binding)},e.prototype.toSelf=function(){if("function"!==typeof this._binding.serviceIdentifier)throw new Error(""+n.INVALID_TO_SELF_VALUE);var e=this._binding.serviceIdentifier;return this.to(e)},e.prototype.toConstantValue=function(e){return this._binding.type=i.BindingTypeEnum.ConstantValue,this._binding.cache=e,this._binding.dynamicValue=null,this._binding.implementationType=null,new a.BindingWhenOnSyntax(this._binding)},e.prototype.toDynamicValue=function(e){return this._binding.type=i.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=e,this._binding.implementationType=null,new r.BindingInWhenOnSyntax(this._binding)},e.prototype.toConstructor=function(e){return this._binding.type=i.BindingTypeEnum.Constructor,this._binding.implementationType=e,new a.BindingWhenOnSyntax(this._binding)},e.prototype.toFactory=function(e){return this._binding.type=i.BindingTypeEnum.Factory,this._binding.factory=e,new a.BindingWhenOnSyntax(this._binding)},e.prototype.toFunction=function(e){if("function"!==typeof e)throw new Error(n.INVALID_FUNCTION_BINDING);var t=this.toConstantValue(e);return this._binding.type=i.BindingTypeEnum.Function,t},e.prototype.toAutoFactory=function(e){return this._binding.type=i.BindingTypeEnum.Factory,this._binding.factory=function(t){var o=function(){return t.container.get(e)};return o},new a.BindingWhenOnSyntax(this._binding)},e.prototype.toProvider=function(e){return this._binding.type=i.BindingTypeEnum.Provider,this._binding.provider=e,new a.BindingWhenOnSyntax(this._binding)},e.prototype.toService=function(e){this.toDynamicValue(function(t){return t.container.get(e)})},e}();t.BindingToSyntax=s},"842c":function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=o("e1c6"),s=o("7b39"),c=o("6923"),p=function(){function e(e){this.commandRegistration=e}return e.prototype.handle=function(e){return this.commandRegistration.factory(e)},e}();t.CommandActionHandler=p;var l=function(){function e(e){this.registrations=e}return e.prototype.initialize=function(e){this.registrations.forEach(function(t){return e.register(t.kind,new p(t))})},e=n([a.injectable(),r(0,a.multiInject(c.TYPES.CommandRegistration)),r(0,a.optional()),i("design:paramtypes",[Array])],e),e}();function u(e,t){if(!s.isInjectable(t))throw new Error("Commands should be @injectable: "+t.name);e.isBound(t)||e.bind(t).toSelf(),e.bind(c.TYPES.CommandRegistration).toDynamicValue(function(e){return{kind:t.KIND,factory:function(o){var n=new a.Container;return n.parent=e.container,n.bind(c.TYPES.Action).toConstantValue(o),n.get(t)}}})}t.CommandActionHandlerInitializer=l,t.configureCommand=u},"84a2":function(e,t,o){(function(t){var o="Expected a function",n=NaN,i="[object Symbol]",r=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,p=parseInt,l="object"==typeof t&&t&&t.Object===Object&&t,u="object"==typeof self&&self&&self.Object===Object&&self,b=l||u||Function("return this")(),d=Object.prototype,M=d.toString,h=Math.max,f=Math.min,z=function(){return b.Date.now()};function O(e,t,n){var i,r,a,s,c,p,l=0,u=!1,b=!1,d=!0;if("function"!=typeof e)throw new TypeError(o);function M(t){var o=i,n=r;return i=r=void 0,l=t,s=e.apply(n,o),s}function O(e){return l=e,c=setTimeout(g,t),u?M(e):s}function A(e){var o=e-p,n=e-l,i=t-o;return b?f(i,a-n):i}function v(e){var o=e-p,n=e-l;return void 0===p||o>=t||o<0||b&&n>=a}function g(){var e=z();if(v(e))return q(e);c=setTimeout(g,A(e))}function q(e){return c=void 0,d&&i?M(e):(i=r=void 0,s)}function _(){void 0!==c&&clearTimeout(c),l=0,i=p=r=c=void 0}function W(){return void 0===c?s:q(z())}function R(){var e=z(),o=v(e);if(i=arguments,r=this,p=e,o){if(void 0===c)return O(p);if(b)return c=setTimeout(g,t),M(p)}return void 0===c&&(c=setTimeout(g,t)),s}return t=y(t)||0,m(n)&&(u=!!n.leading,b="maxWait"in n,a=b?h(y(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d),R.cancel=_,R.flush=W,R}function A(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new TypeError(o);return m(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),O(e,t,{leading:i,maxWait:t,trailing:r})}function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){return!!e&&"object"==typeof e}function g(e){return"symbol"==typeof e||v(e)&&M.call(e)==i}function y(e){if("number"==typeof e)return e;if(g(e))return n;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var o=s.test(e);return o||c.test(e)?p(e.slice(2),o?2:8):a.test(e)?n:+e}e.exports=A}).call(this,o("c8ba"))},"84b1":function(e,t,o){(function(t,o){e.exports=o()})(0,function(){"use strict";function e(e){var t,o,n=document,i=n.createElement("div"),r=i.style,a=navigator.userAgent,s=-1!==a.indexOf("Firefox")&&-1!==a.indexOf("Mobile"),c=e.debounceWaitMs||0,p=e.preventSubmit||!1,l=s?"input":"keyup",u=[],b="",d=2,M=e.showOnFocus,h=0;if(void 0!==e.minLength&&(d=e.minLength),!e.input)throw new Error("input undefined");var f=e.input;function z(){var e=i.parentNode;e&&e.removeChild(i)}function O(){o&&window.clearTimeout(o)}function A(){i.parentNode||n.body.appendChild(i)}function m(){return!!i.parentNode}function v(){h++,u=[],b="",t=void 0,z()}function g(){if(m()){r.height="auto",r.width=f.offsetWidth+"px";var t=f.getBoundingClientRect(),o=t.top+f.offsetHeight,n=window.innerHeight-o;n<0&&(n=0),r.top=o+"px",r.bottom="",r.left=t.left+"px",r.maxHeight=n+"px",e.customize&&e.customize(f,t,i,n)}}function y(){while(i.firstChild)i.removeChild(i.firstChild);var o=function(e,t){var o=n.createElement("div");return o.textContent=e.label||"",o};e.render&&(o=e.render);var r=function(e,t){var o=n.createElement("div");return o.textContent=e,o};e.renderGroup&&(r=e.renderGroup);var a=n.createDocumentFragment(),s="#9?$";if(u.forEach(function(n){if(n.group&&n.group!==s){s=n.group;var i=r(n.group,b);i&&(i.className+=" group",a.appendChild(i))}var c=o(n,b);c&&(c.addEventListener("click",function(t){e.onSelect(n,f),v(),t.preventDefault(),t.stopPropagation()}),n===t&&(c.className+=" selected"),a.appendChild(c))}),i.appendChild(a),u.length<1){if(!e.emptyMsg)return void v();var c=n.createElement("div");c.className="empty",c.textContent=e.emptyMsg,i.appendChild(c)}A(),g(),w()}function q(){m()&&y()}function _(){q()}function W(e){e.target!==i?q():e.preventDefault()}function R(e){for(var t=e.which||e.keyCode||0,o=[38,13,27,39,37,16,17,18,20,91,9],n=0,i=o;n0){var t=e[0],o=t.previousElementSibling;if(o&&-1!==o.className.indexOf("group")&&!o.previousElementSibling&&(t=o),t.offsetTopr&&(i.scrollTop+=n-r)}}}function L(){if(u.length<1)t=void 0;else if(t===u[0])t=u[u.length-1];else for(var e=u.length-1;e>0;e--)if(t===u[e]||1===e){t=u[e-1];break}}function C(){if(u.length<1&&(t=void 0),t&&t!==u[u.length-1]){for(var e=0;e=d||1===n?(O(),o=window.setTimeout(function(){e.fetch(r,function(e){h===i&&e&&(u=e,b=r,t=u.length>0?u[0]:void 0,y())},0)},0===n?c:0)):v()}function x(){setTimeout(function(){n.activeElement!==f&&v()},200)}function N(){f.removeEventListener("focus",E),f.removeEventListener("keydown",S),f.removeEventListener(l,R),f.removeEventListener("blur",x),window.removeEventListener("resize",_),n.removeEventListener("scroll",W,!0),O(),v(),h++}return i.className="autocomplete "+(e.className||""),r.position="fixed",i.addEventListener("mousedown",function(e){e.stopPropagation(),e.preventDefault()}),f.addEventListener("keydown",S),f.addEventListener(l,R),f.addEventListener("blur",x),f.addEventListener("focus",E),window.addEventListener("resize",_),n.addEventListener("scroll",W,!0),{destroy:N}}return e})},"84fd":function(e,t,o){},"85ed":function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__spreadArrays||function(){for(var e=0,t=0,o=arguments.length;t=s.LogLevel.error&&this.forward(e,t,s.LogLevel.error,o)},e.prototype.warn=function(e,t){for(var o=[],n=2;n=s.LogLevel.warn&&this.forward(e,t,s.LogLevel.warn,o)},e.prototype.info=function(e,t){for(var o=[],n=2;n=s.LogLevel.info&&this.forward(e,t,s.LogLevel.info,o)},e.prototype.log=function(e,t){for(var o=[],n=2;n=s.LogLevel.log)try{var i="object"===typeof e?e.constructor.name:String(e);console.log.apply(e,r([i+": "+t],o))}catch(e){}},e.prototype.forward=function(e,t,o,n){var i=new Date,r=new p(s.LogLevel[o],i.toLocaleTimeString(),"object"===typeof e?e.constructor.name:String(e),t,n.map(function(e){return JSON.stringify(e)}));this.modelSourceProvider().then(function(o){try{o.handle(r)}catch(o){try{console.log.apply(e,[t,r,o])}catch(e){}}})},n([a.inject(c.TYPES.ModelSourceProvider),i("design:type",Function)],e.prototype,"modelSourceProvider",void 0),n([a.inject(c.TYPES.LogLevel),i("design:type",Number)],e.prototype,"logLevel",void 0),e=n([a.injectable()],e),e}();t.ForwardingLogger=l},"861d":function(e,t,o){var n=/(?:|<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>)/g,i=o("c4ec"),r=Object.create?Object.create(null):{};function a(e,t,o,n,i){var r=t.indexOf("<",n),a=t.slice(n,-1===r?void 0:r);/^\s*$/.test(a)&&(a=" "),(!i&&r>-1&&o+e.length>=0||" "!==a)&&e.push({type:"text",content:a})}e.exports=function(e,t){t||(t={}),t.components||(t.components=r);var o,s=[],c=-1,p=[],l={},u=!1;return e.replace(n,function(n,r){if(u){if(n!=="")return;u=!1}var b,d="/"!==n.charAt(1),M=0===n.indexOf("\x3c!--"),h=r+n.length,f=e.charAt(h);d&&!M&&(c++,o=i(n),"tag"===o.type&&t.components[o.name]&&(o.type="component",u=!0),o.voidElement||u||!f||"<"===f||a(o.children,e,c,h,t.ignoreWhitespace),l[o.tagName]=o,0===c&&s.push(o),b=p[c-1],b&&b.children.push(o),p[c]=o),(M||!d||o.voidElement)&&(M||c--,!u&&"<"!==f&&f&&(b=-1===c?s:p[c].children,a(b,e,c,h,t.ignoreWhitespace)))}),!s.length&&e.length&&a(s,e,0,0,t.ignoreWhitespace),s}},8622:function(e,t,o){"use strict";var n=o("bc63"),i=o.n(n);i.a},"869e":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("6923"),p=o("3864");t.DIAMOND_ANCHOR_KIND="diamond",t.ELLIPTIC_ANCHOR_KIND="elliptic",t.RECTANGULAR_ANCHOR_KIND="rectangular";var l=function(e){function o(t){var o=e.call(this)||this;return t.forEach(function(e){return o.register(e.kind,e)}),o}return n(o,e),Object.defineProperty(o.prototype,"defaultAnchorKind",{get:function(){return t.RECTANGULAR_ANCHOR_KIND},enumerable:!0,configurable:!0}),o.prototype.get=function(t,o){return e.prototype.get.call(this,t+":"+(o||this.defaultAnchorKind))},o=i([s.injectable(),a(0,s.multiInject(c.TYPES.IAnchorComputer)),r("design:paramtypes",[Array])],o),o}(p.InstanceRegistry);t.AnchorComputerRegistry=l},8707:function(e,t,o){var n=o("b639"),i=n.Buffer;function r(e,t){for(var o in e)t[o]=e[o]}function a(e,t,o){return i(e,t,o)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(r(n,t),t.Buffer=a),r(i,a),a.from=function(e,t,o){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,o)},a.alloc=function(e,t,o){if("number"!==typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"===typeof o?n.fill(t,o):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},8794:function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o("e1c6"),a=o("6923"),s=o("538c"),c=function(){function e(){}return e.prototype.update=function(e,t){if(void 0!==t)this.delegate.update(e,t),this.cachedModel=void 0;else{var o=void 0===this.cachedModel;this.cachedModel=e,o&&this.scheduleUpdate()}},e.prototype.scheduleUpdate=function(){var e=this;this.syncer.onEndOfNextFrame(function(){e.cachedModel&&(e.delegate.update(e.cachedModel),e.cachedModel=void 0)})},n([r.inject(a.TYPES.IViewer),i("design:type",Object)],e.prototype,"delegate",void 0),n([r.inject(a.TYPES.AnimationFrameSyncer),i("design:type",s.AnimationFrameSyncer)],e.prototype,"syncer",void 0),e=n([r.injectable()],e),e}();t.ViewerCache=c},"87b3":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("7685"),i=o("30e3"),r=o("155f"),a=o("c5f4"),s=o("a8af"),c=o("ba33"),p=o("a32f"),l=o("1979"),u=o("c8c0"),b=o("7dba"),d=o("c622"),M=o("757d");function h(e){return e._bindingDictionary}function f(e,t,o,n,i,r){var s=e?a.MULTI_INJECT_TAG:a.INJECT_TAG,c=new l.Metadata(s,o),p=new M.Target(t,n,o,c);if(void 0!==i){var u=new l.Metadata(i,r);p.metadata.push(u)}return p}function z(e,t,o,i,r){var a=m(o.container,r.serviceIdentifier),s=[];return a.length===n.BindingCount.NoBindingsAvailable&&o.container.options.autoBindInjectable&&"function"===typeof r.serviceIdentifier&&e.getConstructorMetadata(r.serviceIdentifier).compilerGeneratedMetadata&&(o.container.bind(r.serviceIdentifier).toSelf(),a=m(o.container,r.serviceIdentifier)),s=t?a:a.filter(function(e){var t=new d.Request(e.serviceIdentifier,o,i,e,r);return e.constraint(t)}),O(r.serviceIdentifier,s,r,o.container),s}function O(e,t,o,r){switch(t.length){case n.BindingCount.NoBindingsAvailable:if(o.isOptional())return t;var a=c.getServiceIdentifierAsString(e),s=i.NOT_REGISTERED;throw s+=c.listMetadataForTarget(a,o),s+=c.listRegisteredBindingsForServiceIdentifier(r,a,m),new Error(s);case n.BindingCount.OnlyOneBindingAvailable:if(!o.isArray())return t;case n.BindingCount.MultipleBindingsAvailable:default:if(o.isArray())return t;a=c.getServiceIdentifierAsString(e),s=i.AMBIGUOUS_MATCH+" "+a;throw s+=c.listRegisteredBindingsForServiceIdentifier(r,a,m),new Error(s)}}function A(e,t,o,n,a,s){var c,p;if(null===a){c=z(e,t,n,null,s),p=new d.Request(o,n,null,c,s);var l=new u.Plan(n,p);n.addPlan(l)}else c=z(e,t,n,a,s),p=a.addChildRequest(s.serviceIdentifier,c,s);c.forEach(function(t){var o=null;if(s.isArray())o=p.addChildRequest(t.serviceIdentifier,t,s);else{if(t.cache)return;o=p}if(t.type===r.BindingTypeEnum.Instance&&null!==t.implementationType){var a=b.getDependencies(e,t.implementationType);if(!n.container.options.skipBaseClassChecks){var c=b.getBaseClassDependencyCount(e,t.implementationType);if(a.length=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("dd7b"),r=o("e1c6"),a=function(){function e(){}return e.prototype.render=function(e,t){var o=this;return i.h(this.selector(e),{key:e.id,hook:{init:this.init.bind(this),prepatch:this.prepatch.bind(this)},fn:function(){return o.renderAndDecorate(e,t)},args:this.watchedArgs(e),thunk:!0})},e.prototype.renderAndDecorate=function(e,t){var o=this.doRender(e,t);return t.decorate(o,e),o},e.prototype.copyToThunk=function(e,t){t.elm=e.elm,e.data.fn=t.data.fn,e.data.args=t.data.args,t.data=e.data,t.children=e.children,t.text=e.text,t.elm=e.elm},e.prototype.init=function(e){var t=e.data,o=t.fn.apply(void 0,t.args);this.copyToThunk(o,e)},e.prototype.prepatch=function(e,t){var o=e.data,n=t.data;this.equals(o.args,n.args)?this.copyToThunk(e,t):this.copyToThunk(n.fn.apply(void 0,n.args),t)},e.prototype.equals=function(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var o=0;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("e1c6"),r=o("3585"),a=function(){function e(){}return e.prototype.isVisible=function(e,t,o){if("hidden"===o.targetKind)return!0;if(0===t.length)return!0;var n=r.getAbsoluteRouteBounds(e,t),i=e.root.canvasBounds;return n.x<=i.width&&n.x+n.width>=0&&n.y<=i.height&&n.y+n.height>=0},e=n([i.injectable()],e),e}();t.RoutableView=a},"8e08":function(e,t,o){},"8e65":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("842c"),r=o("6923"),a=o("42be"),s=o("26ad"),c=new n.ContainerModule(function(e,t,o){e(r.TYPES.ModelSourceProvider).toProvider(function(e){return function(){return new Promise(function(t){t(e.container.get(r.TYPES.ModelSource))})}}),i.configureCommand({bind:e,isBound:o},a.CommitModelCommand),e(r.TYPES.IActionHandlerInitializer).toService(r.TYPES.ModelSource),e(s.ComputedBoundsApplicator).toSelf().inSingletonScope()});t.default=c},"8e97":function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("e1c6"),r=o("dd02"),a=o("66f9"),s=function(){function e(){}return e.prototype.isVisible=function(e,t){if("hidden"===t.targetKind)return!0;if(!r.isValidDimension(e.bounds))return!0;var o=a.getAbsoluteBounds(e),n=e.root.canvasBounds;return o.x<=n.width&&o.x+o.width>=0&&o.y<=n.height&&o.y+o.height>=0},e=n([i.injectable()],e),e}();t.ShapeView=s},"8ef3":function(e,t,o){},9016:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="undefined"!==typeof window&&window.requestAnimationFrame.bind(window)||setTimeout,i=function(e){n(function(){n(e)})},r=!1;function a(e,t,o){i(function(){e[t]=o})}function s(e,t){var o,n,i=t.elm,r=e.data.style,s=t.data.style;if((r||s)&&r!==s){r=r||{},s=s||{};var c="delayed"in r;for(n in r)s[n]||("-"===n[0]&&"-"===n[1]?i.style.removeProperty(n):i.style[n]="");for(n in s)if(o=s[n],"delayed"===n&&s.delayed)for(var p in s.delayed)o=s.delayed[p],c&&o===r.delayed[p]||a(i.style,p,o);else"remove"!==n&&o!==r[n]&&("-"===n[0]&&"-"===n[1]?i.style.setProperty(n,o):i.style[n]=o)}}function c(e){var t,o,n=e.elm,i=e.data.style;if(i&&(t=i.destroy))for(o in t)n.style[o]=t[o]}function p(e,t){var o=e.data.style;if(o&&o.remove){r||(getComputedStyle(document.body).transform,r=!0);var n,i,a=e.elm,s=0,c=o.remove,p=0,l=[];for(n in c)l.push(n),a.style[n]=c[n];i=getComputedStyle(a);for(var u=i["transition-property"].split(", ");s=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o("21a6"),c=o("e1c6"),p=o("3f0a"),l=o("6923"),u=o("42f7"),b=o("4741"),d=o("5d19"),M=o("f4cb"),h=o("b485"),f=o("cf61"),z=o("26ad");function O(e){return void 0!==e&&e.hasOwnProperty("action")}t.isActionMessage=O;var A=function(){function e(){this.kind=e.KIND}return e.KIND="serverStatus",e}();t.ServerStatusAction=A;var m="__receivedFromServer",v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentRoot={type:"NONE",id:"ROOT"},t}return n(t,e),t.prototype.initialize=function(t){e.prototype.initialize.call(this,t),t.register(u.ComputedBoundsAction.KIND,this),t.register(u.RequestBoundsCommand.KIND,this),t.register(M.RequestPopupModelAction.KIND,this),t.register(b.CollapseExpandAction.KIND,this),t.register(b.CollapseExpandAllAction.KIND,this),t.register(h.OpenAction.KIND,this),t.register(A.KIND,this),this.clientId||(this.clientId=this.viewerOptions.baseDiv)},t.prototype.handle=function(e){var t=this.handleLocally(e);t&&this.forwardToServer(e)},t.prototype.forwardToServer=function(e){var t={clientId:this.clientId,action:e};this.logger.log(this,"sending",t),this.sendMessage(t)},t.prototype.messageReceived=function(e){var t=this,o="string"===typeof e?JSON.parse(e):e;O(o)&&o.action?o.clientId&&o.clientId!==this.clientId||(o.action[m]=!0,this.logger.log(this,"receiving",o),this.actionDispatcher.dispatch(o.action).then(function(){t.storeNewModel(o.action)})):this.logger.error(this,"received data is not an action message",o)},t.prototype.handleLocally=function(e){switch(this.storeNewModel(e),e.kind){case u.ComputedBoundsAction.KIND:return this.handleComputedBounds(e);case p.RequestModelAction.KIND:return this.handleRequestModel(e);case u.RequestBoundsCommand.KIND:return!1;case d.ExportSvgAction.KIND:return this.handleExportSvgAction(e);case A.KIND:return this.handleServerStateAction(e)}return!e[m]},t.prototype.storeNewModel=function(e){if(e.kind===p.SetModelCommand.KIND||e.kind===f.UpdateModelCommand.KIND||e.kind===u.RequestBoundsCommand.KIND){var t=e.newRoot;t&&(this.currentRoot=t,e.kind!==p.SetModelCommand.KIND&&e.kind!==f.UpdateModelCommand.KIND||(this.lastSubmittedModelType=t.type))}},t.prototype.handleRequestModel=function(e){var t=i({needsClientLayout:this.viewerOptions.needsClientLayout,needsServerLayout:this.viewerOptions.needsServerLayout},e.options),o=i(i({},e),{options:t});return this.forwardToServer(o),!1},t.prototype.handleComputedBounds=function(e){if(this.viewerOptions.needsServerLayout)return!0;var t=this.currentRoot;return this.computedBoundsApplicator.apply(t,e),t.type===this.lastSubmittedModelType?this.actionDispatcher.dispatch(new f.UpdateModelAction(t)):this.actionDispatcher.dispatch(new p.SetModelAction(t)),this.lastSubmittedModelType=t.type,!1},t.prototype.handleExportSvgAction=function(e){var t=new Blob([e.svg],{type:"text/plain;charset=utf-8"});return s.saveAs(t,"diagram.svg"),!1},t.prototype.handleServerStateAction=function(e){return!1},t.prototype.commitModel=function(e){var t=this.currentRoot;return this.currentRoot=e,t},r([c.inject(l.TYPES.ILogger),a("design:type",Object)],t.prototype,"logger",void 0),r([c.inject(z.ComputedBoundsApplicator),a("design:type",z.ComputedBoundsApplicator)],t.prototype,"computedBoundsApplicator",void 0),t=r([c.injectable()],t),t}(z.ModelSource);t.DiagramServer=v},"966d":function(e,t,o){"use strict";(function(t){function o(e,o,n,i){if("function"!==typeof e)throw new TypeError('"callback" argument must be a function');var r,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,o)});case 3:return t.nextTick(function(){e.call(null,o,n)});case 4:return t.nextTick(function(){e.call(null,o,n,i)});default:r=new Array(s-1),a=0;while(a=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var r=o("e1c6"),a=function(){function e(){}return e=i([r.injectable()],e),e}();t.Command=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.merge=function(e,t){return!1},t=i([r.injectable()],t),t}(a);t.MergeableCommand=s;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.undo=function(e){return e.logger.error(this,"Cannot undo a hidden command"),e.root},t.prototype.redo=function(e){return e.logger.error(this,"Cannot redo a hidden command"),e.root},t=i([r.injectable()],t),t}(a);t.HiddenCommand=c;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t=i([r.injectable()],t),t}(a);t.PopupCommand=p;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t=i([r.injectable()],t),t}(a);t.SystemCommand=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t=i([r.injectable()],t),t}(a);t.ResetCommand=u},9811:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("e7fa"),a=new n.ContainerModule(function(e){e(i.TYPES.IVNodePostprocessor).to(r.ElementFader).inSingletonScope()});t.default=a},"987d":function(e,t,o){"use strict";function n(e){return e<.5?e*e*2:1-(1-e)*(1-e)*2}Object.defineProperty(t,"__esModule",{value:!0}),t.easeInOut=n},"98ab":function(e,t,o){},"98db":function(e,t,o){(function(e,t){ -/*! ***************************************************************************** -Copyright (C) Microsoft. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ -var o;(function(o){(function(e){var n="object"===typeof t?t:"object"===typeof self?self:"object"===typeof this?this:Function("return this;")(),i=r(o);function r(e,t){return function(o,n){"function"!==typeof e[o]&&Object.defineProperty(e,o,{configurable:!0,writable:!0,value:n}),t&&t(o,n)}}"undefined"===typeof n.Reflect?n.Reflect=o:i=r(n.Reflect,i),e(i)})(function(t){var o=Object.prototype.hasOwnProperty,n="function"===typeof Symbol,i=n&&"undefined"!==typeof Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",r=n&&"undefined"!==typeof Symbol.iterator?Symbol.iterator:"@@iterator",a="function"===typeof Object.create,s={__proto__:[]}instanceof Array,c=!a&&!s,p={create:a?function(){return re(Object.create(null))}:s?function(){return re({__proto__:null})}:function(){return re({})},has:c?function(e,t){return o.call(e,t)}:function(e,t){return t in e},get:c?function(e,t){return o.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},l=Object.getPrototypeOf(Function),u="object"===typeof e&&e["env"]&&"true"===e["env"]["REFLECT_METADATA_USE_MAP_POLYFILL"],b=u||"function"!==typeof Map||"function"!==typeof Map.prototype.entries?oe():Map,d=u||"function"!==typeof Set||"function"!==typeof Set.prototype.entries?ne():Set,M=u||"function"!==typeof WeakMap?ie():WeakMap,h=new M;function f(e,t,o,n){if(k(o)){if(!V(e))throw new TypeError;if(!K(t))throw new TypeError;return W(e,t)}if(!V(e))throw new TypeError;if(!I(t))throw new TypeError;if(!I(n)&&!k(n)&&!P(n))throw new TypeError;return P(n)&&(n=void 0),o=U(o),R(e,t,o,n)}function z(e,t){function o(o,n){if(!I(o))throw new TypeError;if(!k(n)&&!$(n))throw new TypeError;T(e,t,o,n)}return o}function O(e,t,o,n){if(!I(o))throw new TypeError;return k(n)||(n=U(n)),T(e,t,o,n)}function A(e,t,o){if(!I(t))throw new TypeError;return k(o)||(o=U(o)),L(e,t,o)}function m(e,t,o){if(!I(t))throw new TypeError;return k(o)||(o=U(o)),C(e,t,o)}function v(e,t,o){if(!I(t))throw new TypeError;return k(o)||(o=U(o)),S(e,t,o)}function g(e,t,o){if(!I(t))throw new TypeError;return k(o)||(o=U(o)),E(e,t,o)}function y(e,t){if(!I(e))throw new TypeError;return k(t)||(t=U(t)),x(e,t)}function q(e,t){if(!I(e))throw new TypeError;return k(t)||(t=U(t)),N(e,t)}function _(e,t,o){if(!I(t))throw new TypeError;k(o)||(o=U(o));var n=w(t,o,!1);if(k(n))return!1;if(!n.delete(e))return!1;if(n.size>0)return!0;var i=h.get(t);return i.delete(o),i.size>0||(h.delete(t),!0)}function W(e,t){for(var o=e.length-1;o>=0;--o){var n=e[o],i=n(t);if(!k(i)&&!P(i)){if(!K(i))throw new TypeError;t=i}}return t}function R(e,t,o,n){for(var i=e.length-1;i>=0;--i){var r=e[i],a=r(t,o,n);if(!k(a)&&!P(a)){if(!I(a))throw new TypeError;n=a}}return n}function w(e,t,o){var n=h.get(e);if(k(n)){if(!o)return;n=new b,h.set(e,n)}var i=n.get(t);if(k(i)){if(!o)return;i=new b,n.set(t,i)}return i}function L(e,t,o){var n=C(e,t,o);if(n)return!0;var i=te(t);return!P(i)&&L(e,i,o)}function C(e,t,o){var n=w(t,o,!1);return!k(n)&&F(n.has(e))}function S(e,t,o){var n=C(e,t,o);if(n)return E(e,t,o);var i=te(t);return P(i)?void 0:S(e,i,o)}function E(e,t,o){var n=w(t,o,!1);if(!k(n))return n.get(e)}function T(e,t,o,n){var i=w(o,n,!0);i.set(e,t)}function x(e,t){var o=N(e,t),n=te(e);if(null===n)return o;var i=x(n,t);if(i.length<=0)return o;if(o.length<=0)return i;for(var r=new d,a=[],s=0,c=o;s=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:o,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var o=this._find(e,!0);return this._values[o]=t,this},t.prototype.delete=function(t){var o=this._find(t,!1);if(o>=0){for(var n=this._keys.length,i=o+1;i=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("dd02"),r=o("869e"),a=o("46cc"),s=o("e1c6"),c=function(){function e(){}var t;return t=e,Object.defineProperty(e.prototype,"kind",{get:function(){return t.KIND},enumerable:!0,configurable:!0}),e.prototype.getAnchor=function(e,t,o){var n=e.bounds;if(n.width<=0||n.height<=0)return n;var r={x:n.x-o,y:n.y-o,width:n.width+2*o,height:n.height+2*o};return t.x>=r.x&&r.x+r.width>=t.x?t.y=r.y&&r.y+r.height>=t.y?t.x=r.x&&t.x<=r.x+r.width?r.x+.5*r.width>=t.x?(c=new i.PointToPointLine(t,{x:t.x,y:a.y}),s=t.y=r.y&&t.y<=r.y+r.height&&(r.y+.5*r.height>=t.y?(c=new i.PointToPointLine(t,{x:a.x,y:t.y}),s=t.x=r.x&&r.x+r.width>=t.x){c+=s.x;var l=.5*r.height*Math.sqrt(1-s.x*s.x/(.25*r.width*r.width));s.y<0?p-=l:p+=l}else if(t.y>=r.y&&r.y+r.height>=t.y){p+=s.y;var u=.5*r.width*Math.sqrt(1-s.y*s.y/(.25*r.height*r.height));s.x<0?c-=u:c+=u}return{x:c,y:p}},e.KIND=a.ManhattanEdgeRouter.KIND+":"+r.ELLIPTIC_ANCHOR_KIND,e=t=n([s.injectable()],e),e}();t.ManhattanEllipticAnchor=l},"9ad4":function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var r=o("e1c6"),a=o("393a"),s=o("ee16"),c=o("e45b"),p=o("8e97"),l=o("87fa"),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(e,t){if(!(e instanceof l.ShapedPreRenderedElement)||this.isVisible(e,t)){var o=s.default(e.code);return this.correctNamespace(o),o}},t.prototype.correctNamespace=function(e){"svg"!==e.sel&&"g"!==e.sel||c.setNamespace(e,"http://www.w3.org/2000/svg")},t=i([r.injectable()],t),t}(p.ShapeView);t.PreRenderedView=u;var b=function(){function e(){}return e.prototype.render=function(e,t){var o=s.default(e.code),n=a.svg("g",null,a.svg("foreignObject",{requiredFeatures:"http://www.w3.org/TR/SVG11/feature#Extensibility",height:e.bounds.height,width:e.bounds.width,x:0,y:0},o),t.renderChildren(e));return c.setAttr(n,"class",e.type),c.setNamespace(o,e.namespace),n},e=i([r.injectable()],e),e}();t.ForeignObjectView=b},"9bc6":function(e,t,o){"use strict";var n=o("232d"),i=o.n(n);i.a},"9d14":function(e,t,o){"use strict";var n=o("a5de"),i=o.n(n);i.a},"9d6c":function(e,t,o){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,o=1,n=arguments.length;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o("e1c6"),s=o("3a92"),c=o("e45b"),p=o("47b7"),l=o("dd02"),u=o("66f9"),b=o("779b"),d=o("168d"),M=function(){function e(){}return e.prototype.decorate=function(e,t){if(b.isEdgeLayoutable(t)&&t.parent instanceof p.SEdge&&t.bounds!==l.EMPTY_BOUNDS){var o=this.getEdgePlacement(t),n=t.parent,i=Math.min(1,Math.max(0,o.position)),r=this.edgeRouterRegistry.get(n.routerKind),a=r.pointAt(n,i),s=r.derivativeAt(n,i),u="";if(a&&s){u+="translate("+a.x+", "+a.y+")";var d=l.toDegrees(Math.atan2(s.y,s.x));if(o.rotate){var M=d;Math.abs(d)>90&&(d<0?M+=180:d>0&&(M-=180)),u+=" rotate("+M+")";var h=this.getRotatedAlignment(t,o,M!==d);u+=" translate("+h.x+", "+h.y+")"}else{h=this.getAlignment(t,o,d);u+=" translate("+h.x+", "+h.y+")"}c.setAttr(e,"transform",u)}}return e},e.prototype.getRotatedAlignment=function(e,t,o){var n=u.isAlignable(e)?e.alignment.x:0,i=u.isAlignable(e)?e.alignment.y:0,r=e.bounds;if("on"===t.side)return{x:n-.5*r.height,y:i-.5*r.height};if(o)switch(t.position<.3333333?n-=r.width+t.offset:t.position<.6666666?n-=.5*r.width:n+=t.offset,t.side){case"left":case"bottom":i-=t.offset+r.height;break;case"right":case"top":i+=t.offset}else switch(t.position<.3333333?n+=t.offset:t.position<.6666666?n-=.5*r.width:n-=r.width+t.offset,t.side){case"right":case"bottom":i+=-t.offset-r.height;break;case"left":case"top":i+=t.offset}return{x:n,y:i}},e.prototype.getEdgePlacement=function(e){var t=e,o=[];while(void 0!==t){var i=t.edgePlacement;if(void 0!==i&&o.push(i),!(t instanceof s.SChildElement))break;t=t.parent}return o.reverse().reduce(function(e,t){return n(n({},e),t)},b.DEFAULT_EDGE_PLACEMENT)},e.prototype.getAlignment=function(e,t,o){var n=e.bounds,i=u.isAlignable(e)?e.alignment.x-n.width:0,r=u.isAlignable(e)?e.alignment.y-n.height:0;if("on"===t.side)return{x:i+.5*n.height,y:r+.5*n.height};var a=this.getQuadrant(o),s={x:t.offset,y:r+.5*n.height},c={x:t.offset,y:r+n.height+t.offset},p={x:-n.width-t.offset,y:r+n.height+t.offset},b={x:-n.width-t.offset,y:r+.5*n.height},d={x:-n.width-t.offset,y:r-t.offset},M={x:t.offset,y:r-t.offset};switch(t.side){case"left":switch(a.orientation){case"west":return l.linear(c,p,a.position);case"north":return l.linear(p,d,a.position);case"east":return l.linear(d,M,a.position);case"south":return l.linear(M,c,a.position)}break;case"right":switch(a.orientation){case"west":return l.linear(d,M,a.position);case"north":return l.linear(M,c,a.position);case"east":return l.linear(c,p,a.position);case"south":return l.linear(p,d,a.position)}break;case"top":switch(a.orientation){case"west":return l.linear(d,M,a.position);case"north":return this.linearFlip(M,s,b,d,a.position);case"east":return l.linear(d,M,a.position);case"south":return this.linearFlip(M,s,b,d,a.position)}break;case"bottom":switch(a.orientation){case"west":return l.linear(c,p,a.position);case"north":return this.linearFlip(p,b,s,c,a.position);case"east":return l.linear(c,p,a.position);case"south":return this.linearFlip(p,b,s,c,a.position)}break}return{x:0,y:0}},e.prototype.getQuadrant=function(e){return Math.abs(e)>135?{orientation:"west",position:(e>0?e-135:e+225)/90}:e<-45?{orientation:"north",position:(e+135)/90}:e<45?{orientation:"east",position:(e+45)/90}:{orientation:"south",position:(e-45)/90}},e.prototype.linearFlip=function(e,t,o,n,i){return i<.5?l.linear(e,t,2*i):l.linear(o,n,2*i-1)},e.prototype.postUpdate=function(){},i([a.inject(d.EdgeRouterRegistry),r("design:type",d.EdgeRouterRegistry)],e.prototype,"edgeRouterRegistry",void 0),e=i([a.injectable()],e),e}();t.EdgeLayoutPostprocessor=M},"9e2e":function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__spreadArrays||function(){for(var e=0,t=0,o=arguments.length;t=a.error)try{console.error.apply(e,this.consoleArguments(e,t,o))}catch(e){}},e.prototype.warn=function(e,t){for(var o=[],n=2;n=a.warn)try{console.warn.apply(e,this.consoleArguments(e,t,o))}catch(e){}},e.prototype.info=function(e,t){for(var o=[],n=2;n=a.info)try{console.info.apply(e,this.consoleArguments(e,t,o))}catch(e){}},e.prototype.log=function(e,t){for(var o=[],n=2;n=a.log)try{console.log.apply(e,this.consoleArguments(e,t,o))}catch(e){}},e.prototype.consoleArguments=function(e,t,o){var n;n="object"===typeof e?e.constructor.name:e;var i=new Date;return r([i.toLocaleTimeString()+" "+this.viewOptions.baseDiv+" "+n+": "+t],o)},n([s.inject(c.TYPES.LogLevel),i("design:type",Number)],e.prototype,"logLevel",void 0),n([s.inject(c.TYPES.ViewerOptions),i("design:type",Object)],e.prototype,"viewOptions",void 0),e=n([s.injectable()],e),e}();t.ConsoleLogger=l},"9f62":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("c5f4"),i=o("1979"),r=o("66d7");function a(){return function(e,t,o){var a=new i.Metadata(n.UNMANAGED_TAG,!0);r.tagParameter(e,t,o,a)}}t.unmanaged=a},"9f8d":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("1cd9"),a=o("5d19"),s=o("842c"),c=new n.ContainerModule(function(e,t,o){e(i.TYPES.KeyListener).to(r.ExportSvgKeyListener).inSingletonScope(),e(i.TYPES.HiddenVNodePostprocessor).to(r.ExportSvgPostprocessor).inSingletonScope(),s.configureCommand({bind:e,isBound:o},r.ExportSvgCommand),e(i.TYPES.SvgExporter).to(a.SvgExporter).inSingletonScope()});t.default=c},a0af:function(e,t,o){"use strict";function n(e){return void 0!==e["position"]}function i(e){return e.hasFeature(t.moveFeature)&&n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.moveFeature=Symbol("moveFeature"),t.isLocateable=n,t.isMoveable=i},a16f:function(e,t,o){},a190:function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("e1c6"),r=o("e45b"),a=function(){function e(){}return e.prototype.decorate=function(e,t){return e.sel&&e.sel.startsWith("svg")&&r.setAttr(e,"tabindex",0),e},e.prototype.postUpdate=function(){},e=n([i.injectable()],e),e}();t.FocusFixPostprocessor=a},a1a5:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("c5f4"),i=o("1979"),r=o("66d7");function a(e){return function(t,o,a){var s=new i.Metadata(n.NAME_TAG,e);r.tagParameter(t,o,a,s)}}t.targetName=a},a27f:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("bcc9");t.Draggable=n.Draggable},a2e1:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("dd02"),i=o("3a92"),r=o("66f9"),a=function(){function e(){}return e.prototype.layout=function(e,t){var o=t.getBoundsData(e),n=this.getLayoutOptions(e),i=this.getChildrenSize(e,n,t),r=n.paddingFactor*(n.resizeContainer?i.width:Math.max(0,this.getFixedContainerBounds(e,n,t).width)-n.paddingLeft-n.paddingRight),a=n.paddingFactor*(n.resizeContainer?i.height:Math.max(0,this.getFixedContainerBounds(e,n,t).height)-n.paddingTop-n.paddingBottom);if(r>0&&a>0){var s=this.layoutChildren(e,t,n,r,a);o.bounds=this.getFinalContainerBounds(e,s,n,r,a),o.boundsChanged=!0}},e.prototype.getFinalContainerBounds=function(e,t,o,n,i){return{x:e.bounds.x,y:e.bounds.y,width:Math.max(o.minWidth,n+o.paddingLeft+o.paddingRight),height:Math.max(o.minHeight,i+o.paddingTop+o.paddingBottom)}},e.prototype.getFixedContainerBounds=function(e,t,o){var a=e;while(1){if(r.isBoundsAware(a)){var s=a.bounds;if(r.isLayoutContainer(a)&&t.resizeContainer&&o.log.error(a,"Resizable container found while detecting fixed bounds"),n.isValidDimension(s))return s}if(!(a instanceof i.SChildElement))return o.log.error(a,"Cannot detect fixed bounds"),n.EMPTY_BOUNDS;a=a.parent}},e.prototype.layoutChildren=function(e,t,o,i,a){var s=this,c={x:o.paddingLeft+.5*(i-i/o.paddingFactor),y:o.paddingTop+.5*(a-a/o.paddingFactor)};return e.children.forEach(function(e){if(r.isLayoutableChild(e)){var p=t.getBoundsData(e),l=p.bounds,u=s.getChildLayoutOptions(e,o);void 0!==l&&n.isValidDimension(l)&&(c=s.layoutChild(e,p,l,u,o,c,i,a))}}),c},e.prototype.getDx=function(e,t,o){switch(e){case"left":return 0;case"center":return.5*(o-t.width);case"right":return o-t.width}},e.prototype.getDy=function(e,t,o){switch(e){case"top":return 0;case"center":return.5*(o-t.height);case"bottom":return o-t.height}},e.prototype.getChildLayoutOptions=function(e,t){var o=e.layoutOptions;return void 0===o?t:this.spread(t,o)},e.prototype.getLayoutOptions=function(e){var t=this,o=e,n=[];while(void 0!==o){var r=o.layoutOptions;if(void 0!==r&&n.push(r),!(o instanceof i.SChildElement))break;o=o.parent}return n.reverse().reduce(function(e,o){return t.spread(e,o)},this.getDefaultLayoutOptions())},e}();t.AbstractLayout=a},a32f:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("77d3"),i=function(){function e(e){this.id=n.id(),this.container=e}return e.prototype.addPlan=function(e){this.plan=e},e.prototype.setCurrentRequest=function(e){this.currentRequest=e},e}();t.Context=i},a406:function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=o("e1c6"),s=o("510b"),c=o("6923"),p=o("e629"),l=o("e1cb"),u=o("bcbd"),b=o("ed4f"),d=function(){function e(e){void 0===e&&(e=[]),this.actionProviders=e}return e.prototype.getActions=function(e,t,o,n){var i=this.actionProviders.map(function(i){return i.getActions(e,t,o,n)});return Promise.all(i).then(function(e){return e.reduce(function(e,t){return void 0!==t?e.concat(t):e})})},e=n([a.injectable(),r(0,a.multiInject(c.TYPES.ICommandPaletteActionProvider)),r(0,a.optional()),i("design:paramtypes",[Array])],e),e}();t.CommandPaletteActionProviderRegistry=d;var M=function(){function e(e){this.logger=e}return e.prototype.getActions=function(e,t,o,n){return void 0!==n&&n%2===0?Promise.resolve(this.createSelectActions(e)):Promise.resolve([new s.LabeledAction("Select all",[new u.SelectAllAction])])},e.prototype.createSelectActions=function(e){var t=p.toArray(e.index.all().filter(function(e){return l.isNameable(e)}));return t.map(function(e){return new s.LabeledAction("Reveal "+l.name(e),[new u.SelectAction([e.id]),new b.CenterAction([e.id])],"fa-eye")})},e=n([a.injectable(),r(0,a.inject(c.TYPES.ILogger)),i("design:paramtypes",[Object])],e),e}();t.RevealNamedElementActionProvider=M},a4c5:function(e,t,o){"use strict";var n=o("7364"),i=o.n(n);i.a},a5b7:function(e,t,o){(function(t,o){e.exports=o()})("undefined"!==typeof self&&self,function(){return function(e){var t={};function o(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)o.d(n,i,function(t){return e[t]}.bind(null,i));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s="fb15")}({"014b":function(e,t,o){"use strict";var n=o("e53d"),i=o("07e3"),r=o("8e60"),a=o("63b6"),s=o("9138"),c=o("ebfd").KEY,p=o("294c"),l=o("dbdb"),u=o("45f2"),b=o("62a0"),d=o("5168"),M=o("ccb9"),h=o("6718"),f=o("47ee"),z=o("9003"),O=o("e4ae"),A=o("f772"),m=o("36c3"),v=o("1bc3"),g=o("aebd"),y=o("a159"),q=o("0395"),_=o("bf0b"),W=o("d9f6"),R=o("c3a1"),w=_.f,L=W.f,C=q.f,S=n.Symbol,E=n.JSON,T=E&&E.stringify,x="prototype",N=d("_hidden"),B=d("toPrimitive"),k={}.propertyIsEnumerable,P=l("symbol-registry"),D=l("symbols"),I=l("op-symbols"),X=Object[x],j="function"==typeof S,F=n.QObject,H=!F||!F[x]||!F[x].findChild,U=r&&p(function(){return 7!=y(L({},"a",{get:function(){return L(this,"a",{value:7}).a}})).a})?function(e,t,o){var n=w(X,t);n&&delete X[t],L(e,t,o),n&&e!==X&&L(X,t,n)}:L,V=function(e){var t=D[e]=y(S[x]);return t._k=e,t},G=j&&"symbol"==typeof S.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof S},K=function(e,t,o){return e===X&&K(I,t,o),O(e),t=v(t,!0),O(o),i(D,t)?(o.enumerable?(i(e,N)&&e[N][t]&&(e[N][t]=!1),o=y(o,{enumerable:g(0,!1)})):(i(e,N)||L(e,N,g(1,{})),e[N][t]=!0),U(e,t,o)):L(e,t,o)},$=function(e,t){O(e);var o,n=f(t=m(t)),i=0,r=n.length;while(r>i)K(e,o=n[i++],t[o]);return e},Y=function(e,t){return void 0===t?y(e):$(y(e),t)},J=function(e){var t=k.call(this,e=v(e,!0));return!(this===X&&i(D,e)&&!i(I,e))&&(!(t||!i(this,e)||!i(D,e)||i(this,N)&&this[N][e])||t)},Q=function(e,t){if(e=m(e),t=v(t,!0),e!==X||!i(D,t)||i(I,t)){var o=w(e,t);return!o||!i(D,t)||i(e,N)&&e[N][t]||(o.enumerable=!0),o}},Z=function(e){var t,o=C(m(e)),n=[],r=0;while(o.length>r)i(D,t=o[r++])||t==N||t==c||n.push(t);return n},ee=function(e){var t,o=e===X,n=C(o?I:m(e)),r=[],a=0;while(n.length>a)!i(D,t=n[a++])||o&&!i(X,t)||r.push(D[t]);return r};j||(S=function(){if(this instanceof S)throw TypeError("Symbol is not a constructor!");var e=b(arguments.length>0?arguments[0]:void 0),t=function(o){this===X&&t.call(I,o),i(this,N)&&i(this[N],e)&&(this[N][e]=!1),U(this,e,g(1,o))};return r&&H&&U(X,e,{configurable:!0,set:t}),V(e)},s(S[x],"toString",function(){return this._k}),_.f=Q,W.f=K,o("6abf").f=q.f=Z,o("355d").f=J,o("9aa9").f=ee,r&&!o("b8e3")&&s(X,"propertyIsEnumerable",J,!0),M.f=function(e){return V(d(e))}),a(a.G+a.W+a.F*!j,{Symbol:S});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),oe=0;te.length>oe;)d(te[oe++]);for(var ne=R(d.store),ie=0;ne.length>ie;)h(ne[ie++]);a(a.S+a.F*!j,"Symbol",{for:function(e){return i(P,e+="")?P[e]:P[e]=S(e)},keyFor:function(e){if(!G(e))throw TypeError(e+" is not a symbol!");for(var t in P)if(P[t]===e)return t},useSetter:function(){H=!0},useSimple:function(){H=!1}}),a(a.S+a.F*!j,"Object",{create:Y,defineProperty:K,defineProperties:$,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:ee}),E&&a(a.S+a.F*(!j||p(function(){var e=S();return"[null]"!=T([e])||"{}"!=T({a:e})||"{}"!=T(Object(e))})),"JSON",{stringify:function(e){var t,o,n=[e],i=1;while(arguments.length>i)n.push(arguments[i++]);if(o=t=n[1],(A(t)||void 0!==e)&&!G(e))return z(t)||(t=function(e,t){if("function"==typeof o&&(t=o.call(this,e,t)),!G(t))return t}),n[1]=t,T.apply(E,n)}}),S[x][B]||o("35e8")(S[x],B,S[x].valueOf),u(S,"Symbol"),u(Math,"Math",!0),u(n.JSON,"JSON",!0)},"01f9":function(e,t,o){"use strict";var n=o("2d00"),i=o("5ca1"),r=o("2aba"),a=o("32e9"),s=o("84f2"),c=o("41a0"),p=o("7f20"),l=o("38fd"),u=o("2b4c")("iterator"),b=!([].keys&&"next"in[].keys()),d="@@iterator",M="keys",h="values",f=function(){return this};e.exports=function(e,t,o,z,O,A,m){c(o,t,z);var v,g,y,q=function(e){if(!b&&e in w)return w[e];switch(e){case M:return function(){return new o(this,e)};case h:return function(){return new o(this,e)}}return function(){return new o(this,e)}},_=t+" Iterator",W=O==h,R=!1,w=e.prototype,L=w[u]||w[d]||O&&w[O],C=L||q(O),S=O?W?q("entries"):C:void 0,E="Array"==t&&w.entries||L;if(E&&(y=l(E.call(new e)),y!==Object.prototype&&y.next&&(p(y,_,!0),n||"function"==typeof y[u]||a(y,u,f))),W&&L&&L.name!==h&&(R=!0,C=function(){return L.call(this)}),n&&!m||!b&&!R&&w[u]||a(w,u,C),s[t]=C,s[_]=f,O)if(v={values:W?C:q(h),keys:A?C:q(M),entries:S},m)for(g in v)g in w||r(w,g,v[g]);else i(i.P+i.F*(b||R),t,v);return v}},"0395":function(e,t,o){var n=o("36c3"),i=o("6abf").f,r={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==r.call(e)?s(e):i(n(e))}},"07e3":function(e,t){var o={}.hasOwnProperty;e.exports=function(e,t){return o.call(e,t)}},"09fa":function(e,t,o){var n=o("4588"),i=o("9def");e.exports=function(e){if(void 0===e)return 0;var t=n(e),o=i(t);if(t!==o)throw RangeError("Wrong length!");return o}},"0a49":function(e,t,o){var n=o("9b43"),i=o("626a"),r=o("4bf8"),a=o("9def"),s=o("cd1c");e.exports=function(e,t){var o=1==e,c=2==e,p=3==e,l=4==e,u=6==e,b=5==e||u,d=t||s;return function(t,s,M){for(var h,f,z=r(t),O=i(z),A=n(s,M,3),m=a(O.length),v=0,g=o?d(t,m):c?d(t,0):void 0;m>v;v++)if((b||v in O)&&(h=O[v],f=A(h,v,z),e))if(o)g[v]=f;else if(f)switch(e){case 3:return!0;case 5:return h;case 6:return v;case 2:g.push(h)}else if(l)return!1;return u?-1:p||l?l:g}}},"0bfb":function(e,t,o){"use strict";var n=o("cb7c");e.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0d58":function(e,t,o){var n=o("ce10"),i=o("e11e");e.exports=Object.keys||function(e){return n(e,i)}},"0f88":function(e,t,o){var n,i=o("7726"),r=o("32e9"),a=o("ca5a"),s=a("typed_array"),c=a("view"),p=!(!i.ArrayBuffer||!i.DataView),l=p,u=0,b=9,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");while(up)r.call(a,o=s[p++])&&l.push(e?[o,a[o]]:a[o]);return l}}},1495:function(e,t,o){var n=o("86cc"),i=o("cb7c"),r=o("0d58");e.exports=o("9e1e")?Object.defineProperties:function(e,t){i(e);var o,a=r(t),s=a.length,c=0;while(s>c)n.f(e,o=a[c++],t[o]);return e}},1654:function(e,t,o){"use strict";var n=o("71c1")(!0);o("30f1")(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,o=this._i;return o>=t.length?{value:void 0,done:!0}:(e=n(t,o),this._i+=e.length,{value:e,done:!1})})},1691:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"1af6":function(e,t,o){var n=o("63b6");n(n.S,"Array",{isArray:o("9003")})},"1bc3":function(e,t,o){var n=o("f772");e.exports=function(e,t){if(!n(e))return e;var o,i;if(t&&"function"==typeof(o=e.toString)&&!n(i=o.call(e)))return i;if("function"==typeof(o=e.valueOf)&&!n(i=o.call(e)))return i;if(!t&&"function"==typeof(o=e.toString)&&!n(i=o.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(e,t,o){var n=o("f772"),i=o("e53d").document,r=n(i)&&n(i.createElement);e.exports=function(e){return r?i.createElement(e):{}}},"20fd":function(e,t,o){"use strict";var n=o("d9f6"),i=o("aebd");e.exports=function(e,t,o){t in e?n.f(e,t,i(0,o)):e[t]=o}},"214f":function(e,t,o){"use strict";var n=o("32e9"),i=o("2aba"),r=o("79e5"),a=o("be13"),s=o("2b4c");e.exports=function(e,t,o){var c=s(e),p=o(a,c,""[e]),l=p[0],u=p[1];r(function(){var t={};return t[c]=function(){return 7},7!=""[e](t)})&&(i(String.prototype,e,l),n(RegExp.prototype,c,2==t?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)}))}},"230e":function(e,t,o){var n=o("d3f4"),i=o("7726").document,r=n(i)&&n(i.createElement);e.exports=function(e){return r?i.createElement(e):{}}},"23c6":function(e,t,o){var n=o("2d95"),i=o("2b4c")("toStringTag"),r="Arguments"==n(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,o,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(o=a(t=Object(e),i))?o:r?n(t):"Object"==(s=n(t))&&"function"==typeof t.callee?"Arguments":s}},"241e":function(e,t,o){var n=o("25eb");e.exports=function(e){return Object(n(e))}},"25eb":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"27ee":function(e,t,o){var n=o("23c6"),i=o("2b4c")("iterator"),r=o("84f2");e.exports=o("8378").getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||r[n(e)]}},"28a5":function(e,t,o){o("214f")("split",2,function(e,t,n){"use strict";var i=o("aae3"),r=n,a=[].push,s="split",c="length",p="lastIndex";if("c"=="abbc"[s](/(b)*/)[1]||4!="test"[s](/(?:)/,-1)[c]||2!="ab"[s](/(?:ab)*/)[c]||4!="."[s](/(.?)(.?)/)[c]||"."[s](/()()/)[c]>1||""[s](/.?/)[c]){var l=void 0===/()??/.exec("")[1];n=function(e,t){var o=String(this);if(void 0===e&&0===t)return[];if(!i(e))return r.call(o,e,t);var n,s,u,b,d,M=[],h=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,z=void 0===t?4294967295:t>>>0,O=new RegExp(e.source,h+"g");l||(n=new RegExp("^"+O.source+"$(?!\\s)",h));while(s=O.exec(o)){if(u=s.index+s[0][c],u>f&&(M.push(o.slice(f,s.index)),!l&&s[c]>1&&s[0].replace(n,function(){for(d=1;d1&&s.index=z))break;O[p]===s.index&&O[p]++}return f===o[c]?!b&&O.test("")||M.push(""):M.push(o.slice(f)),M[c]>z?M.slice(0,z):M}}else"0"[s](void 0,0)[c]&&(n=function(e,t){return void 0===e&&0===t?[]:r.call(this,e,t)});return[function(o,i){var r=e(this),a=void 0==o?void 0:o[t];return void 0!==a?a.call(o,r,i):n.call(String(r),o,i)},n]})},"294c":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"2aba":function(e,t,o){var n=o("7726"),i=o("32e9"),r=o("69a8"),a=o("ca5a")("src"),s="toString",c=Function[s],p=(""+c).split(s);o("8378").inspectSource=function(e){return c.call(e)},(e.exports=function(e,t,o,s){var c="function"==typeof o;c&&(r(o,"name")||i(o,"name",t)),e[t]!==o&&(c&&(r(o,a)||i(o,a,e[t]?""+e[t]:p.join(String(t)))),e===n?e[t]=o:s?e[t]?e[t]=o:i(e,t,o):(delete e[t],i(e,t,o)))})(Function.prototype,s,function(){return"function"==typeof this&&this[a]||c.call(this)})},"2aeb":function(e,t,o){var n=o("cb7c"),i=o("1495"),r=o("e11e"),a=o("613b")("IE_PROTO"),s=function(){},c="prototype",p=function(){var e,t=o("230e")("iframe"),n=r.length,i="<",a=">";t.style.display="none",o("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),e.close(),p=e.F;while(n--)delete p[c][r[n]];return p()};e.exports=Object.create||function(e,t){var o;return null!==e?(s[c]=n(e),o=new s,s[c]=null,o[a]=e):o=p(),void 0===t?o:i(o,t)}},"2b4c":function(e,t,o){var n=o("5537")("wks"),i=o("ca5a"),r=o("7726").Symbol,a="function"==typeof r,s=e.exports=function(e){return n[e]||(n[e]=a&&r[e]||(a?r:i)("Symbol."+e))};s.store=n},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var o={}.toString;e.exports=function(e){return o.call(e).slice(8,-1)}},"30f1":function(e,t,o){"use strict";var n=o("b8e3"),i=o("63b6"),r=o("9138"),a=o("35e8"),s=o("481b"),c=o("8f60"),p=o("45f2"),l=o("53e2"),u=o("5168")("iterator"),b=!([].keys&&"next"in[].keys()),d="@@iterator",M="keys",h="values",f=function(){return this};e.exports=function(e,t,o,z,O,A,m){c(o,t,z);var v,g,y,q=function(e){if(!b&&e in w)return w[e];switch(e){case M:return function(){return new o(this,e)};case h:return function(){return new o(this,e)}}return function(){return new o(this,e)}},_=t+" Iterator",W=O==h,R=!1,w=e.prototype,L=w[u]||w[d]||O&&w[O],C=L||q(O),S=O?W?q("entries"):C:void 0,E="Array"==t&&w.entries||L;if(E&&(y=l(E.call(new e)),y!==Object.prototype&&y.next&&(p(y,_,!0),n||"function"==typeof y[u]||a(y,u,f))),W&&L&&L.name!==h&&(R=!0,C=function(){return L.call(this)}),n&&!m||!b&&!R&&w[u]||a(w,u,C),s[t]=C,s[_]=f,O)if(v={values:W?C:q(h),keys:A?C:q(M),entries:S},m)for(g in v)g in w||r(w,g,v[g]);else i(i.P+i.F*(b||R),t,v);return v}},"32e9":function(e,t,o){var n=o("86cc"),i=o("4630");e.exports=o("9e1e")?function(e,t,o){return n.f(e,t,i(1,o))}:function(e,t,o){return e[t]=o,e}},"32fc":function(e,t,o){var n=o("e53d").document;e.exports=n&&n.documentElement},"335c":function(e,t,o){var n=o("6b4c");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},"33a4":function(e,t,o){var n=o("84f2"),i=o("2b4c")("iterator"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||r[i]===e)}},"33cb":function(e,t,o){},"34ef":function(e,t,o){o("ec30")("Uint8",1,function(e){return function(t,o,n){return e(this,t,o,n)}})},"355d":function(e,t){t.f={}.propertyIsEnumerable},"35e8":function(e,t,o){var n=o("d9f6"),i=o("aebd");e.exports=o("8e60")?function(e,t,o){return n.f(e,t,i(1,o))}:function(e,t,o){return e[t]=o,e}},"36bd":function(e,t,o){"use strict";var n=o("4bf8"),i=o("77f1"),r=o("9def");e.exports=function(e){var t=n(this),o=r(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,o),c=a>2?arguments[2]:void 0,p=void 0===c?o:i(c,o);while(p>s)t[s++]=e;return t}},"36c3":function(e,t,o){var n=o("335c"),i=o("25eb");e.exports=function(e){return n(i(e))}},3702:function(e,t,o){var n=o("481b"),i=o("5168")("iterator"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||r[i]===e)}},3846:function(e,t,o){o("9e1e")&&"g"!=/./g.flags&&o("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:o("0bfb")})},"386b":function(e,t,o){var n=o("5ca1"),i=o("79e5"),r=o("be13"),a=/"/g,s=function(e,t,o,n){var i=String(r(e)),s="<"+t;return""!==o&&(s+=" "+o+'="'+String(n).replace(a,""")+'"'),s+">"+i+""};e.exports=function(e,t){var o={};o[e]=t(s),n(n.P+n.F*i(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",o)}},"38fd":function(e,t,o){var n=o("69a8"),i=o("4bf8"),r=o("613b")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),n(e,r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},"3a38":function(e,t){var o=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:o)(e)}},"3d11":function(e,t,o){"use strict";var n=o("33cb"),i=o.n(n);i.a},"40c3":function(e,t,o){var n=o("6b4c"),i=o("5168")("toStringTag"),r="Arguments"==n(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,o,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(o=a(t=Object(e),i))?o:r?n(t):"Object"==(s=n(t))&&"function"==typeof t.callee?"Arguments":s}},"41a0":function(e,t,o){"use strict";var n=o("2aeb"),i=o("4630"),r=o("7f20"),a={};o("32e9")(a,o("2b4c")("iterator"),function(){return this}),e.exports=function(e,t,o){e.prototype=n(a,{next:i(1,o)}),r(e,t+" Iterator")}},4588:function(e,t){var o=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:o)(e)}},"45f2":function(e,t,o){var n=o("d9f6").f,i=o("07e3"),r=o("5168")("toStringTag");e.exports=function(e,t,o){e&&!i(e=o?e:e.prototype,r)&&n(e,r,{configurable:!0,value:t})}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"469f":function(e,t,o){o("6c1c"),o("1654"),e.exports=o("7d7b")},"47ee":function(e,t,o){var n=o("c3a1"),i=o("9aa9"),r=o("355d");e.exports=function(e){var t=n(e),o=i.f;if(o){var a,s=o(e),c=r.f,p=0;while(s.length>p)c.call(e,a=s[p++])&&t.push(a)}return t}},"481b":function(e,t){e.exports={}},"4bf8":function(e,t,o){var n=o("be13");e.exports=function(e){return Object(n(e))}},"4ee1":function(e,t,o){var n=o("5168")("iterator"),i=!1;try{var r=[7][n]();r["return"]=function(){i=!0},Array.from(r,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var o=!1;try{var r=[7],a=r[n]();a.next=function(){return{done:o=!0}},r[n]=function(){return a},e(r)}catch(e){}return o}},"50ed":function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},5168:function(e,t,o){var n=o("dbdb")("wks"),i=o("62a0"),r=o("e53d").Symbol,a="function"==typeof r,s=e.exports=function(e){return n[e]||(n[e]=a&&r[e]||(a?r:i)("Symbol."+e))};s.store=n},5176:function(e,t,o){e.exports=o("51b6")},"51b6":function(e,t,o){o("a3c3"),e.exports=o("584a").Object.assign},"52a7":function(e,t){t.f={}.propertyIsEnumerable},"53e2":function(e,t,o){var n=o("07e3"),i=o("241e"),r=o("5559")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),n(e,r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},"549b":function(e,t,o){"use strict";var n=o("d864"),i=o("63b6"),r=o("241e"),a=o("b0dc"),s=o("3702"),c=o("b447"),p=o("20fd"),l=o("7cd6");i(i.S+i.F*!o("4ee1")(function(e){Array.from(e)}),"Array",{from:function(e){var t,o,i,u,b=r(e),d="function"==typeof this?this:Array,M=arguments.length,h=M>1?arguments[1]:void 0,f=void 0!==h,z=0,O=l(b);if(f&&(h=n(h,M>2?arguments[2]:void 0,2)),void 0==O||d==Array&&s(O))for(t=c(b.length),o=new d(t);t>z;z++)p(o,z,f?h(b[z],z):b[z]);else for(u=O.call(b),o=new d;!(i=u.next()).done;z++)p(o,z,f?a(u,h,[i.value,z],!0):i.value);return o.length=z,o}})},"54a1":function(e,t,o){o("6c1c"),o("1654"),e.exports=o("95d5")},5537:function(e,t,o){var n=o("8378"),i=o("7726"),r="__core-js_shared__",a=i[r]||(i[r]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:o("2d00")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},5559:function(e,t,o){var n=o("dbdb")("keys"),i=o("62a0");e.exports=function(e){return n[e]||(n[e]=i(e))}},"584a":function(e,t){var o=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=o)},"59a0":function(e,t,o){"use strict";var n=o("9257"),i=o.n(n);i.a},"5b4e":function(e,t,o){var n=o("36c3"),i=o("b447"),r=o("0fc9");e.exports=function(e){return function(t,o,a){var s,c=n(t),p=i(c.length),l=r(a,p);if(e&&o!=o){while(p>l)if(s=c[l++],s!=s)return!0}else for(;p>l;l++)if((e||l in c)&&c[l]===o)return e||l||0;return!e&&-1}}},"5ca1":function(e,t,o){var n=o("7726"),i=o("8378"),r=o("32e9"),a=o("2aba"),s=o("9b43"),c="prototype",p=function(e,t,o){var l,u,b,d,M=e&p.F,h=e&p.G,f=e&p.S,z=e&p.P,O=e&p.B,A=h?n:f?n[t]||(n[t]={}):(n[t]||{})[c],m=h?i:i[t]||(i[t]={}),v=m[c]||(m[c]={});for(l in h&&(o=t),o)u=!M&&A&&void 0!==A[l],b=(u?A:o)[l],d=O&&u?s(b,n):z&&"function"==typeof b?s(Function.call,b):b,A&&a(A,l,b,e&p.U),m[l]!=b&&r(m,l,d),z&&v[l]!=b&&(v[l]=b)};n.core=i,p.F=1,p.G=2,p.S=4,p.P=8,p.B=16,p.W=32,p.U=64,p.R=128,e.exports=p},"5cc5":function(e,t,o){var n=o("2b4c")("iterator"),i=!1;try{var r=[7][n]();r["return"]=function(){i=!0},Array.from(r,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var o=!1;try{var r=[7],a=r[n]();a.next=function(){return{done:o=!0}},r[n]=function(){return a},e(r)}catch(e){}return o}},"5d58":function(e,t,o){e.exports=o("d8d6")},"5d6b":function(e,t,o){var n=o("e53d").parseInt,i=o("a1ce").trim,r=o("e692"),a=/^[-+]?0[xX]/;e.exports=8!==n(r+"08")||22!==n(r+"0x16")?function(e,t){var o=i(String(e),3);return n(o,t>>>0||(a.test(o)?16:10))}:n},"5d73":function(e,t,o){e.exports=o("469f")},"613b":function(e,t,o){var n=o("5537")("keys"),i=o("ca5a");e.exports=function(e){return n[e]||(n[e]=i(e))}},"626a":function(e,t,o){var n=o("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},"62a0":function(e,t){var o=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++o+n).toString(36))}},"63b6":function(e,t,o){var n=o("e53d"),i=o("584a"),r=o("d864"),a=o("35e8"),s=o("07e3"),c="prototype",p=function(e,t,o){var l,u,b,d=e&p.F,M=e&p.G,h=e&p.S,f=e&p.P,z=e&p.B,O=e&p.W,A=M?i:i[t]||(i[t]={}),m=A[c],v=M?n:h?n[t]:(n[t]||{})[c];for(l in M&&(o=t),o)u=!d&&v&&void 0!==v[l],u&&s(A,l)||(b=u?v[l]:o[l],A[l]=M&&"function"!=typeof v[l]?o[l]:z&&u?r(b,n):O&&v[l]==b?function(e){var t=function(t,o,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,o)}return new e(t,o,n)}return e.apply(this,arguments)};return t[c]=e[c],t}(b):f&&"function"==typeof b?r(Function.call,b):b,f&&((A.virtual||(A.virtual={}))[l]=b,e&p.R&&m&&!m[l]&&a(m,l,b)))};p.F=1,p.G=2,p.S=4,p.P=8,p.B=16,p.W=32,p.U=64,p.R=128,e.exports=p},6718:function(e,t,o){var n=o("e53d"),i=o("584a"),r=o("b8e3"),a=o("ccb9"),s=o("d9f6").f;e.exports=function(e){var t=i.Symbol||(i.Symbol=r?{}:n.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},"67bb":function(e,t,o){e.exports=o("f921")},6821:function(e,t,o){var n=o("626a"),i=o("be13");e.exports=function(e){return n(i(e))}},"69a8":function(e,t){var o={}.hasOwnProperty;e.exports=function(e,t){return o.call(e,t)}},"69d3":function(e,t,o){o("6718")("asyncIterator")},"6a99":function(e,t,o){var n=o("d3f4");e.exports=function(e,t){if(!n(e))return e;var o,i;if(t&&"function"==typeof(o=e.toString)&&!n(i=o.call(e)))return i;if("function"==typeof(o=e.valueOf)&&!n(i=o.call(e)))return i;if(!t&&"function"==typeof(o=e.toString)&&!n(i=o.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"6abf":function(e,t,o){var n=o("e6f3"),i=o("1691").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},"6b4c":function(e,t){var o={}.toString;e.exports=function(e){return o.call(e).slice(8,-1)}},"6b54":function(e,t,o){"use strict";o("3846");var n=o("cb7c"),i=o("0bfb"),r=o("9e1e"),a="toString",s=/./[a],c=function(e){o("2aba")(RegExp.prototype,a,e,!0)};o("79e5")(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?c(function(){var e=n(this);return"/".concat(e.source,"/","flags"in e?e.flags:!r&&e instanceof RegExp?i.call(e):void 0)}):s.name!=a&&c(function(){return s.call(this)})},"6c1c":function(e,t,o){o("c367");for(var n=o("e53d"),i=o("35e8"),r=o("481b"),a=o("5168")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c=p?e?"":void 0:(r=s.charCodeAt(c),r<55296||r>56319||c+1===p||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):r:e?s.slice(c,c+2):a-56320+(r-55296<<10)+65536)}}},7445:function(e,t,o){var n=o("63b6"),i=o("5d6b");n(n.G+n.F*(parseInt!=i),{parseInt:i})},"765d":function(e,t,o){o("6718")("observable")},7726:function(e,t){var o=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=o)},"774e":function(e,t,o){e.exports=o("d2d5")},"77f1":function(e,t,o){var n=o("4588"),i=Math.max,r=Math.min;e.exports=function(e,t){return e=n(e),e<0?i(e+t,0):r(e,t)}},"794b":function(e,t,o){e.exports=!o("8e60")&&!o("294c")(function(){return 7!=Object.defineProperty(o("1ec9")("div"),"a",{get:function(){return 7}}).a})},"79aa":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"7a56":function(e,t,o){"use strict";var n=o("7726"),i=o("86cc"),r=o("9e1e"),a=o("2b4c")("species");e.exports=function(e){var t=n[e];r&&t&&!t[a]&&i.f(t,a,{configurable:!0,get:function(){return this}})}},"7cd6":function(e,t,o){var n=o("40c3"),i=o("5168")("iterator"),r=o("481b");e.exports=o("584a").getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||r[n(e)]}},"7d6d":function(e,t,o){var n=o("63b6"),i=o("13c8")(!1);n(n.S,"Object",{values:function(e){return i(e)}})},"7d7b":function(e,t,o){var n=o("e4ae"),i=o("7cd6");e.exports=o("584a").getIterator=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return n(t.call(e))}},"7e90":function(e,t,o){var n=o("d9f6"),i=o("e4ae"),r=o("c3a1");e.exports=o("8e60")?Object.defineProperties:function(e,t){i(e);var o,a=r(t),s=a.length,c=0;while(s>c)n.f(e,o=a[c++],t[o]);return e}},"7f20":function(e,t,o){var n=o("86cc").f,i=o("69a8"),r=o("2b4c")("toStringTag");e.exports=function(e,t,o){e&&!i(e=o?e:e.prototype,r)&&n(e,r,{configurable:!0,value:t})}},"7f7f":function(e,t,o){var n=o("86cc").f,i=Function.prototype,r=/^\s*function ([^ (]*)/,a="name";a in i||o("9e1e")&&n(i,a,{configurable:!0,get:function(){try{return(""+this).match(r)[1]}catch(e){return""}}})},8378:function(e,t){var o=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=o)},8436:function(e,t){e.exports=function(){}},"84f2":function(e,t){e.exports={}},"86cc":function(e,t,o){var n=o("cb7c"),i=o("c69a"),r=o("6a99"),a=Object.defineProperty;t.f=o("9e1e")?Object.defineProperty:function(e,t,o){if(n(e),t=r(t,!0),n(o),i)try{return a(e,t,o)}catch(e){}if("get"in o||"set"in o)throw TypeError("Accessors not supported!");return"value"in o&&(e[t]=o.value),e}},"8e60":function(e,t,o){e.exports=!o("294c")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"8f60":function(e,t,o){"use strict";var n=o("a159"),i=o("aebd"),r=o("45f2"),a={};o("35e8")(a,o("5168")("iterator"),function(){return this}),e.exports=function(e,t,o){e.prototype=n(a,{next:i(1,o)}),r(e,t+" Iterator")}},9003:function(e,t,o){var n=o("6b4c");e.exports=Array.isArray||function(e){return"Array"==n(e)}},9093:function(e,t,o){var n=o("ce10"),i=o("e11e").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},9138:function(e,t,o){e.exports=o("35e8")},9257:function(e,t,o){},9306:function(e,t,o){"use strict";var n=o("c3a1"),i=o("9aa9"),r=o("355d"),a=o("241e"),s=o("335c"),c=Object.assign;e.exports=!c||o("294c")(function(){var e={},t={},o=Symbol(),n="abcdefghijklmnopqrst";return e[o]=7,n.split("").forEach(function(e){t[e]=e}),7!=c({},e)[o]||Object.keys(c({},t)).join("")!=n})?function(e,t){var o=a(e),c=arguments.length,p=1,l=i.f,u=r.f;while(c>p){var b,d=s(arguments[p++]),M=l?n(d).concat(l(d)):n(d),h=M.length,f=0;while(h>f)u.call(d,b=M[f++])&&(o[b]=d[b])}return o}:c},"95d5":function(e,t,o){var n=o("40c3"),i=o("5168")("iterator"),r=o("481b");e.exports=o("584a").isIterable=function(e){var t=Object(e);return void 0!==t[i]||"@@iterator"in t||r.hasOwnProperty(n(t))}},"9aa9":function(e,t){t.f=Object.getOwnPropertySymbols},"9b43":function(e,t,o){var n=o("d8e8");e.exports=function(e,t,o){if(n(e),void 0===t)return e;switch(o){case 1:return function(o){return e.call(t,o)};case 2:return function(o,n){return e.call(t,o,n)};case 3:return function(o,n,i){return e.call(t,o,n,i)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,o){var n=o("2b4c")("unscopables"),i=Array.prototype;void 0==i[n]&&o("32e9")(i,n,{}),e.exports=function(e){i[n][e]=!0}},"9def":function(e,t,o){var n=o("4588"),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},"9e1c":function(e,t,o){o("7d6d"),e.exports=o("584a").Object.values},"9e1e":function(e,t,o){e.exports=!o("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},a159:function(e,t,o){var n=o("e4ae"),i=o("7e90"),r=o("1691"),a=o("5559")("IE_PROTO"),s=function(){},c="prototype",p=function(){var e,t=o("1ec9")("iframe"),n=r.length,i="<",a=">";t.style.display="none",o("32fc").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),e.close(),p=e.F;while(n--)delete p[c][r[n]];return p()};e.exports=Object.create||function(e,t){var o;return null!==e?(s[c]=n(e),o=new s,s[c]=null,o[a]=e):o=p(),void 0===t?o:i(o,t)}},a1ce:function(e,t,o){var n=o("63b6"),i=o("25eb"),r=o("294c"),a=o("e692"),s="["+a+"]",c="​…",p=RegExp("^"+s+s+"*"),l=RegExp(s+s+"*$"),u=function(e,t,o){var i={},s=r(function(){return!!a[e]()||c[e]()!=c}),p=i[e]=s?t(b):a[e];o&&(i[o]=p),n(n.P+n.F*s,"String",i)},b=u.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(p,"")),2&t&&(e=e.replace(l,"")),e};e.exports=u},a3c3:function(e,t,o){var n=o("63b6");n(n.S+n.F,"Object",{assign:o("9306")})},a481:function(e,t,o){o("214f")("replace",2,function(e,t,o){return[function(n,i){"use strict";var r=e(this),a=void 0==n?void 0:n[t];return void 0!==a?a.call(n,r,i):o.call(String(r),n,i)},o]})},a745:function(e,t,o){e.exports=o("f410")},aae3:function(e,t,o){var n=o("d3f4"),i=o("2d95"),r=o("2b4c")("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[r])?!!t:"RegExp"==i(e))}},ac6a:function(e,t,o){for(var n=o("cadf"),i=o("0d58"),r=o("2aba"),a=o("7726"),s=o("32e9"),c=o("84f2"),p=o("2b4c"),l=p("iterator"),u=p("toStringTag"),b=c.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},M=i(d),h=0;h0?i(n(e),9007199254740991):0}},b54a:function(e,t,o){"use strict";o("386b")("link",function(e){return function(t){return e(this,"a","href",t)}})},b8e3:function(e,t){e.exports=!0},b9e9:function(e,t,o){o("7445"),e.exports=o("584a").parseInt},ba92:function(e,t,o){"use strict";var n=o("4bf8"),i=o("77f1"),r=o("9def");e.exports=[].copyWithin||function(e,t){var o=n(this),a=r(o.length),s=i(e,a),c=i(t,a),p=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===p?a:i(p,a))-c,a-s),u=1;c0)c in o?o[s]=o[c]:delete o[s],s+=u,c+=u;return o}},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},bf0b:function(e,t,o){var n=o("355d"),i=o("aebd"),r=o("36c3"),a=o("1bc3"),s=o("07e3"),c=o("794b"),p=Object.getOwnPropertyDescriptor;t.f=o("8e60")?p:function(e,t){if(e=r(e),t=a(t,!0),c)try{return p(e,t)}catch(e){}if(s(e,t))return i(!n.f.call(e,t),e[t])}},c207:function(e,t){},c366:function(e,t,o){var n=o("6821"),i=o("9def"),r=o("77f1");e.exports=function(e){return function(t,o,a){var s,c=n(t),p=i(c.length),l=r(a,p);if(e&&o!=o){while(p>l)if(s=c[l++],s!=s)return!0}else for(;p>l;l++)if((e||l in c)&&c[l]===o)return e||l||0;return!e&&-1}}},c367:function(e,t,o){"use strict";var n=o("8436"),i=o("50ed"),r=o("481b"),a=o("36c3");e.exports=o("30f1")(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,o=this._i++;return!e||o>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?o:"values"==t?e[o]:[o,e[o]])},"values"),r.Arguments=r.Array,n("keys"),n("values"),n("entries")},c3a1:function(e,t,o){var n=o("e6f3"),i=o("1691");e.exports=Object.keys||function(e){return n(e,i)}},c69a:function(e,t,o){e.exports=!o("9e1e")&&!o("79e5")(function(){return 7!=Object.defineProperty(o("230e")("div"),"a",{get:function(){return 7}}).a})},c8bb:function(e,t,o){e.exports=o("54a1")},ca5a:function(e,t){var o=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++o+n).toString(36))}},cadf:function(e,t,o){"use strict";var n=o("9c6c"),i=o("d53b"),r=o("84f2"),a=o("6821");e.exports=o("01f9")(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,o=this._i++;return!e||o>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?o:"values"==t?e[o]:[o,e[o]])},"values"),r.Arguments=r.Array,n("keys"),n("values"),n("entries")},cb7c:function(e,t,o){var n=o("d3f4");e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},ccb9:function(e,t,o){t.f=o("5168")},cd1c:function(e,t,o){var n=o("e853");e.exports=function(e,t){return new(n(e))(t)}},ce10:function(e,t,o){var n=o("69a8"),i=o("6821"),r=o("c366")(!1),a=o("613b")("IE_PROTO");e.exports=function(e,t){var o,s=i(e),c=0,p=[];for(o in s)o!=a&&n(s,o)&&p.push(o);while(t.length>c)n(s,o=t[c++])&&(~r(p,o)||p.push(o));return p}},d2d5:function(e,t,o){o("1654"),o("549b"),e.exports=o("584a").Array.from},d3f4:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d864:function(e,t,o){var n=o("79aa");e.exports=function(e,t,o){if(n(e),void 0===t)return e;switch(o){case 1:return function(o){return e.call(t,o)};case 2:return function(o,n){return e.call(t,o,n)};case 3:return function(o,n,i){return e.call(t,o,n,i)}}return function(){return e.apply(t,arguments)}}},d8d6:function(e,t,o){o("1654"),o("6c1c"),e.exports=o("ccb9").f("iterator")},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},d9f6:function(e,t,o){var n=o("e4ae"),i=o("794b"),r=o("1bc3"),a=Object.defineProperty;t.f=o("8e60")?Object.defineProperty:function(e,t,o){if(n(e),t=r(t,!0),n(o),i)try{return a(e,t,o)}catch(e){}if("get"in o||"set"in o)throw TypeError("Accessors not supported!");return"value"in o&&(e[t]=o.value),e}},db0c:function(e,t,o){e.exports=o("9e1c")},dbdb:function(e,t,o){var n=o("584a"),i=o("e53d"),r="__core-js_shared__",a=i[r]||(i[r]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:o("b8e3")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},dcbc:function(e,t,o){var n=o("2aba");e.exports=function(e,t,o){for(var i in t)n(e,i,t[i],o);return e}},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e4ae:function(e,t,o){var n=o("f772");e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},e53d:function(e,t){var o=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=o)},e692:function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},e6f3:function(e,t,o){var n=o("07e3"),i=o("36c3"),r=o("5b4e")(!1),a=o("5559")("IE_PROTO");e.exports=function(e,t){var o,s=i(e),c=0,p=[];for(o in s)o!=a&&n(s,o)&&p.push(o);while(t.length>c)n(s,o=t[c++])&&(~r(p,o)||p.push(o));return p}},e814:function(e,t,o){e.exports=o("b9e9")},e853:function(e,t,o){var n=o("d3f4"),i=o("1169"),r=o("2b4c")("species");e.exports=function(e){var t;return i(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!i(t.prototype)||(t=void 0),n(t)&&(t=t[r],null===t&&(t=void 0))),void 0===t?Array:t}},ebd6:function(e,t,o){var n=o("cb7c"),i=o("d8e8"),r=o("2b4c")("species");e.exports=function(e,t){var o,a=n(e).constructor;return void 0===a||void 0==(o=n(a)[r])?t:i(o)}},ebfd:function(e,t,o){var n=o("62a0")("meta"),i=o("f772"),r=o("07e3"),a=o("d9f6").f,s=0,c=Object.isExtensible||function(){return!0},p=!o("294c")(function(){return c(Object.preventExtensions({}))}),l=function(e){a(e,n,{value:{i:"O"+ ++s,w:{}}})},u=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!r(e,n)){if(!c(e))return"F";if(!t)return"E";l(e)}return e[n].i},b=function(e,t){if(!r(e,n)){if(!c(e))return!0;if(!t)return!1;l(e)}return e[n].w},d=function(e){return p&&M.NEED&&c(e)&&!r(e,n)&&l(e),e},M=e.exports={KEY:n,NEED:!1,fastKey:u,getWeak:b,onFreeze:d}},ec30:function(e,t,o){"use strict";if(o("9e1e")){var n=o("2d00"),i=o("7726"),r=o("79e5"),a=o("5ca1"),s=o("0f88"),c=o("ed0b"),p=o("9b43"),l=o("f605"),u=o("4630"),b=o("32e9"),d=o("dcbc"),M=o("4588"),h=o("9def"),f=o("09fa"),z=o("77f1"),O=o("6a99"),A=o("69a8"),m=o("23c6"),v=o("d3f4"),g=o("4bf8"),y=o("33a4"),q=o("2aeb"),_=o("38fd"),W=o("9093").f,R=o("27ee"),w=o("ca5a"),L=o("2b4c"),C=o("0a49"),S=o("c366"),E=o("ebd6"),T=o("cadf"),x=o("84f2"),N=o("5cc5"),B=o("7a56"),k=o("36bd"),P=o("ba92"),D=o("86cc"),I=o("11e9"),X=D.f,j=I.f,F=i.RangeError,H=i.TypeError,U=i.Uint8Array,V="ArrayBuffer",G="Shared"+V,K="BYTES_PER_ELEMENT",$="prototype",Y=Array[$],J=c.ArrayBuffer,Q=c.DataView,Z=C(0),ee=C(2),te=C(3),oe=C(4),ne=C(5),ie=C(6),re=S(!0),ae=S(!1),se=T.values,ce=T.keys,pe=T.entries,le=Y.lastIndexOf,ue=Y.reduce,be=Y.reduceRight,de=Y.join,Me=Y.sort,he=Y.slice,fe=Y.toString,ze=Y.toLocaleString,Oe=L("iterator"),Ae=L("toStringTag"),me=w("typed_constructor"),ve=w("def_constructor"),ge=s.CONSTR,ye=s.TYPED,qe=s.VIEW,_e="Wrong length!",We=C(1,function(e,t){return Se(E(e,e[ve]),t)}),Re=r(function(){return 1===new U(new Uint16Array([1]).buffer)[0]}),we=!!U&&!!U[$].set&&r(function(){new U(1).set({})}),Le=function(e,t){var o=M(e);if(o<0||o%t)throw F("Wrong offset!");return o},Ce=function(e){if(v(e)&&ye in e)return e;throw H(e+" is not a typed array!")},Se=function(e,t){if(!(v(e)&&me in e))throw H("It is not a typed array constructor!");return new e(t)},Ee=function(e,t){return Te(E(e,e[ve]),t)},Te=function(e,t){var o=0,n=t.length,i=Se(e,n);while(n>o)i[o]=t[o++];return i},xe=function(e,t,o){X(e,t,{get:function(){return this._d[o]}})},Ne=function(e){var t,o,n,i,r,a,s=g(e),c=arguments.length,l=c>1?arguments[1]:void 0,u=void 0!==l,b=R(s);if(void 0!=b&&!y(b)){for(a=b.call(s),n=[],t=0;!(r=a.next()).done;t++)n.push(r.value);s=n}for(u&&c>2&&(l=p(l,arguments[2],2)),t=0,o=h(s.length),i=Se(this,o);o>t;t++)i[t]=u?l(s[t],t):s[t];return i},Be=function(){var e=0,t=arguments.length,o=Se(this,t);while(t>e)o[e]=arguments[e++];return o},ke=!!U&&r(function(){ze.call(new U(1))}),Pe=function(){return ze.apply(ke?he.call(Ce(this)):Ce(this),arguments)},De={copyWithin:function(e,t){return P.call(Ce(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return oe(Ce(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return k.apply(Ce(this),arguments)},filter:function(e){return Ee(this,ee(Ce(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return ne(Ce(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ie(Ce(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){Z(Ce(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ae(Ce(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return re(Ce(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return de.apply(Ce(this),arguments)},lastIndexOf:function(e){return le.apply(Ce(this),arguments)},map:function(e){return We(Ce(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return ue.apply(Ce(this),arguments)},reduceRight:function(e){return be.apply(Ce(this),arguments)},reverse:function(){var e,t=this,o=Ce(t).length,n=Math.floor(o/2),i=0;while(i1?arguments[1]:void 0)},sort:function(e){return Me.call(Ce(this),e)},subarray:function(e,t){var o=Ce(this),n=o.length,i=z(e,n);return new(E(o,o[ve]))(o.buffer,o.byteOffset+i*o.BYTES_PER_ELEMENT,h((void 0===t?n:z(t,n))-i))}},Ie=function(e,t){return Ee(this,he.call(Ce(this),e,t))},Xe=function(e){Ce(this);var t=Le(arguments[1],1),o=this.length,n=g(e),i=h(n.length),r=0;if(i+t>o)throw F(_e);while(r255?255:255&n),i.v[d](o*t+i.o,n,Re)},L=function(e,t){X(e,t,{get:function(){return R(this,t)},set:function(e){return w(this,t,e)},enumerable:!0})};A?(M=o(function(e,o,n,i){l(e,M,p,"_d");var r,a,s,c,u=0,d=0;if(v(o)){if(!(o instanceof J||(c=m(o))==V||c==G))return ye in o?Te(M,o):Ne.call(M,o);r=o,d=Le(n,t);var z=o.byteLength;if(void 0===i){if(z%t)throw F(_e);if(a=z-d,a<0)throw F(_e)}else if(a=h(i)*t,a+d>z)throw F(_e);s=a/t}else s=f(o),a=s*t,r=new J(a);b(e,"_d",{b:r,o:d,l:a,e:s,v:new Q(r)});while(u>1,l=23===t?C(2,-24)-C(2,-77):0,u=0,b=e<0||0===e&&1/e<0?1:0;for(e=L(e),e!=e||e===R?(i=e!=e?1:0,n=c):(n=S(E(e)/T),e*(r=C(2,-n))<1&&(n--,r*=2),e+=n+p>=1?l/r:l*C(2,1-p),e*r>=2&&(n++,r/=2),n+p>=c?(i=0,n=c):n+p>=1?(i=(e*r-1)*C(2,t),n+=p):(i=e*C(2,p-1)*C(2,t),n=0));t>=8;a[u++]=255&i,i/=256,t-=8);for(n=n<0;a[u++]=255&n,n/=256,s-=8);return a[--u]|=128*b,a}function X(e,t,o){var n,i=8*o-t-1,r=(1<>1,s=i-7,c=o-1,p=e[c--],l=127&p;for(p>>=7;s>0;l=256*l+e[c],c--,s-=8);for(n=l&(1<<-s)-1,l>>=-s,s+=t;s>0;n=256*n+e[c],c--,s-=8);if(0===l)l=1-a;else{if(l===r)return n?NaN:p?-R:R;n+=C(2,t),l-=a}return(p?-1:1)*n*C(2,l-t)}function j(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function F(e){return[255&e]}function H(e){return[255&e,e>>8&255]}function U(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function V(e){return I(e,52,8)}function G(e){return I(e,23,4)}function K(e,t,o){h(e[m],t,{get:function(){return this[o]}})}function $(e,t,o,n){var i=+o,r=d(i);if(r+t>e[P])throw W(g);var a=e[k]._b,s=r+e[D],c=a.slice(s,s+t);return n?c:c.reverse()}function Y(e,t,o,n,i,r){var a=+o,s=d(a);if(s+t>e[P])throw W(g);for(var c=e[k]._b,p=s+e[D],l=n(+i),u=0;uee;)(J=Z[ee++])in y||s(y,J,w[J]);r||(Q.constructor=y)}var te=new q(new y(2)),oe=q[m].setInt8;te.setInt8(0,2147483648),te.setInt8(1,2147483649),!te.getInt8(0)&&te.getInt8(1)||c(q[m],{setInt8:function(e,t){oe.call(this,e,t<<24>>24)},setUint8:function(e,t){oe.call(this,e,t<<24>>24)}},!0)}else y=function(e){l(this,y,O);var t=d(e);this._b=f.call(new Array(t),0),this[P]=t},q=function(e,t,o){l(this,q,A),l(e,y,A);var n=e[P],i=u(t);if(i<0||i>n)throw W("Wrong offset!");if(o=void 0===o?n-i:b(o),i+o>n)throw W(v);this[k]=e,this[D]=i,this[P]=o},i&&(K(y,N,"_l"),K(q,x,"_b"),K(q,N,"_l"),K(q,B,"_o")),c(q[m],{getInt8:function(e){return $(this,1,e)[0]<<24>>24},getUint8:function(e){return $(this,1,e)[0]},getInt16:function(e){var t=$(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=$(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return j($(this,4,e,arguments[1]))},getUint32:function(e){return j($(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return X($(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return X($(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){Y(this,1,e,F,t)},setUint8:function(e,t){Y(this,1,e,F,t)},setInt16:function(e,t){Y(this,2,e,H,t,arguments[2])},setUint16:function(e,t){Y(this,2,e,H,t,arguments[2])},setInt32:function(e,t){Y(this,4,e,U,t,arguments[2])},setUint32:function(e,t){Y(this,4,e,U,t,arguments[2])},setFloat32:function(e,t){Y(this,4,e,G,t,arguments[2])},setFloat64:function(e,t){Y(this,8,e,V,t,arguments[2])}});z(y,O),z(q,A),s(q[m],a.VIEW,!0),t[O]=y,t[A]=q},f410:function(e,t,o){o("1af6"),e.exports=o("584a").Array.isArray},f605:function(e,t){e.exports=function(e,t,o,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(o+": incorrect invocation!");return e}},f772:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},f921:function(e,t,o){o("014b"),o("c207"),o("69d3"),o("765d"),e.exports=o("584a").Symbol},fab2:function(e,t,o){var n=o("7726").document;e.exports=n&&n.documentElement},fb15:function(e,t,o){"use strict";o.r(t);var n,i={};(o.r(i),o.d(i,"forceCenter",function(){return z}),o.d(i,"forceCollide",function(){return H}),o.d(i,"forceLink",function(){return ee}),o.d(i,"forceManyBody",function(){return Te}),o.d(i,"forceRadial",function(){return xe}),o.d(i,"forceSimulation",function(){return Ee}),o.d(i,"forceX",function(){return Ne}),o.d(i,"forceY",function(){return Be}),"undefined"!==typeof window)&&((n=window.document.currentScript)&&(n=n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(o.p=n[1]));o("7f7f");var r=o("a745"),a=o.n(r);function s(e){if(a()(e)){for(var t=0,o=new Array(e.length);t=(r=(h+z)/2))?h=r:z=r,(l=o>=(a=(f+O)/2))?f=a:O=a,i=d,!(d=d[u=l<<1|p]))return i[u]=M,e;if(s=+e._x.call(null,d.data),c=+e._y.call(null,d.data),t===s&&o===c)return M.next=d,i?i[u]=M:e._root=M,e;do{i=i?i[u]=new Array(4):e._root=new Array(4),(p=t>=(r=(h+z)/2))?h=r:z=r,(l=o>=(a=(f+O)/2))?f=a:O=a}while((u=l<<1|p)===(b=(c>=a)<<1|s>=r));return i[b]=d,i[u]=M,e}function g(e){var t,o,n,i,r=e.length,a=new Array(r),s=new Array(r),c=1/0,p=1/0,l=-1/0,u=-1/0;for(o=0;ol&&(l=n),iu&&(u=i));for(le||e>i||n>t||t>r))return this;var a,s,c=i-o,p=this._root;switch(s=(t<(n+r)/2)<<1|e<(o+i)/2){case 0:do{a=new Array(4),a[s]=p,p=a}while(c*=2,i=o+c,r=n+c,e>i||t>r);break;case 1:do{a=new Array(4),a[s]=p,p=a}while(c*=2,o=i-c,r=n+c,o>e||t>r);break;case 2:do{a=new Array(4),a[s]=p,p=a}while(c*=2,i=o+c,n=r-c,e>i||n>t);break;case 3:do{a=new Array(4),a[s]=p,p=a}while(c*=2,o=i-c,n=r-c,o>e||n>t);break}this._root&&this._root.length&&(this._root=p)}return this._x0=o,this._y0=n,this._x1=i,this._y1=r,this},q=function(){var e=[];return this.visit(function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)}),e},_=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},W=function(e,t,o,n,i){this.node=e,this.x0=t,this.y0=o,this.x1=n,this.y1=i},R=function(e,t,o){var n,i,r,a,s,c,p,l=this._x0,u=this._y0,b=this._x1,d=this._y1,M=[],h=this._root;h&&M.push(new W(h,l,u,b,d)),null==o?o=1/0:(l=e-o,u=t-o,b=e+o,d=t+o,o*=o);while(c=M.pop())if(!(!(h=c.node)||(i=c.x0)>b||(r=c.y0)>d||(a=c.x1)=z)<<1|e>=f)&&(c=M[M.length-1],M[M.length-1]=M[M.length-1-p],M[M.length-1-p]=c)}else{var O=e-+this._x.call(null,h.data),A=t-+this._y.call(null,h.data),m=O*O+A*A;if(m=(s=(M+f)/2))?M=s:f=s,(l=a>=(c=(h+z)/2))?h=c:z=c,t=d,!(d=d[u=l<<1|p]))return this;if(!d.length)break;(t[u+1&3]||t[u+2&3]||t[u+3&3])&&(o=t,b=u)}while(d.data!==e)if(n=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,n?(i?n.next=i:delete n.next,this):t?(i?t[u]=i:delete t[u],(d=t[0]||t[1]||t[2]||t[3])&&d===(t[3]||t[2]||t[1]||t[0])&&!d.length&&(o?o[b]=d:this._root=d),this):(this._root=i,this)};function L(e){for(var t=0,o=e.length;tc+d||ip+d||rs.index){var M=c-a.x-a.vx,h=p-a.y-a.vy,f=M*M+h*h;fe.r&&(e.r=e[t].r)}function s(){if(t){var n,i,r=t.length;for(o=new Array(r),n=0;n=0&&(o=e.slice(n+1),e=e.slice(0,n)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:o}})}function re(e,t){for(var o,n=0,i=e.length;n0)for(var o,n,i=new Array(o),r=0;r=0&&t._call.call(null,e),t=t._next;--le}function qe(){he=(Me=ze.now())+fe,le=ue=0;try{ye()}finally{le=0,We(),he=0}}function _e(){var e=ze.now(),t=e-Me;t>de&&(fe-=t,Me=e)}function We(){var e,t,o=se,n=1/0;while(o)o._call?(n>o._time&&(n=o._time),e=o,o=o._next):(t=o._next,o._next=null,o=e?e._next=t:se=t);ce=e,Re(n)}function Re(e){if(!le){ue&&(ue=clearTimeout(ue));var t=e-he;t>24?(e<1/0&&(ue=setTimeout(qe,e-ze.now()-fe)),be&&(be=clearInterval(be))):(be||(Me=ze.now(),be=setInterval(_e,de)),le=1,Oe(qe))}}ve.prototype=ge.prototype={constructor:ve,restart:function(e,t,o){if("function"!==typeof e)throw new TypeError("callback is not a function");o=(null==o?Ae():+o)+(null==t?0:+t),this._next||ce===this||(ce?ce._next=this:se=this,ce=this),this._call=e,this._time=o,Re()},stop:function(){this._call&&(this._call=null,this._time=1/0,Re())}};function we(e){return e.x}function Le(e){return e.y}var Ce=10,Se=Math.PI*(3-Math.sqrt(5)),Ee=function(e){var t,o=1,n=.001,i=1-Math.pow(n,1/300),r=0,a=.6,s=K(),c=ge(l),p=pe("tick","end");function l(){u(),p.call("tick",t),o1?(null==o?s.remove(e):s.set(e,d(o)),t):s.get(e)},find:function(t,o,n){var i,r,a,s,c,p=0,l=e.length;for(null==n?n=1/0:n*=n,p=0;p1?(p.on(e,o),t):p.on(e)}}},Te=function(){var e,t,o,n,i=O(-30),r=1,a=1/0,s=.81;function c(n){var i,r=e.length,a=P(e,we,Le).visitAfter(l);for(o=n,i=0;i=a)){(e.data!==t||e.next)&&(0===l&&(l=A(),d+=l*l),0===u&&(u=A(),d+=u*u),d=0;o--){var n=e.attributes[o];n&&(t[n.name]=n.value)}var i=e.innerHTML;if(i)return{attrs:t,data:i}}return null},svgElFromString:function(e){var t=this.toDom(e);if(this.isSvgData(t))return t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t},svgDataToUrl:function(e,t){if("object"===Ve(t))for(var o in t){var n=t[o]?t[o]:"";e.setAttribute(o,n)}var i=this.export(e);return i?this.svgToUrl(this.serialize(i)):null},isSvgData:function(e){return!!e.firstChild&&"svg"===e.firstChild.parentNode.nodeName},svgToUrl:function(e){var t=new Blob([e],{type:"image/svg+xml"}),o=URL.createObjectURL(t);return o}},Qe={name:"svg-renderer",props:["size","nodes","noNodes","selected","linksSelected","links","nodeSize","padding","fontSize","strLinks","linkWidth","nodeLabels","linkLabels","labelOffset","nodeSym"],computed:{nodeSvg:function(){return this.nodeSym?Je.toObject(this.nodeSym):null}},methods:{getNodeSize:function(e,t){var o=e._size||this.nodeSize;return t&&(o=e["_"+t]||o),o},svgIcon:function(e){return e.svgObj||this.nodeSvg},emit:function(e,t){this.$emit("action",e,t)},svgScreenShot:function(e,t,o,n){var i=Je.export(this.$refs.svg,n);if(t)e(null,Je.save(i));else{o||(o=this.searchBackground());var r=Je.makeCanvas(this.size.w,this.size.h,o);Je.svgToImg(i,r,function(t,o){t?e(t):e(null,o)})}},linkClass:function(e){var t=["link"];return this.linksSelected.hasOwnProperty(e)&&t.push("selected"),this.strLinks||t.push("curve"),t},linkPath:function(e){var t={M:[0|e.source.x,0|e.source.y],X:[0|e.target.x,0|e.target.y]};return this.strLinks?"M "+t.M.join(" ")+" L"+t.X.join(" "):(t.Q=[e.source.x,e.target.y],"M "+t.M+" Q "+t.Q.join(" ")+" "+t.X)},nodeStyle:function(e){return e._color?"fill: "+e._color:""},linkStyle:function(e){var t={};return e._color&&(t.stroke=e._color),t},nodeClass:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=e._cssClass?e._cssClass:[];return a()(o)||(o=[o]),o.push("node"),t.forEach(function(e){return o.push(e)}),this.selected[e.id]&&o.push("selected"),(e.fx||e.fy)&&o.push("pinned"),o},searchBackground:function(){var e=this;while(e.$parent){var t=window.getComputedStyle(e.$el),o=t.getPropertyValue("background-color"),n=o.replace(/[^\d,]/g,"").split(","),i=n.reduce(function(e,t){return Ie()(e)+Ie()(t)},0);if(i>0)return o;e=e.$parent}return"white"},spriteSymbol:function(){var e=this.nodeSym;if(e)return Je.toSymbol(e)},linkAttrs:function(e){var t=e._svgAttrs||{};return t["stroke-width"]=t["stroke-width"]||this.linkWidth,t}}},Ze=Qe;function et(e,t,o,n,i,r,a,s){var c,p="function"===typeof e?e.options:e;if(t&&(p.render=t,p.staticRenderFns=o,p._compiled=!0),n&&(p.functional=!0),r&&(p._scopeId="data-v-"+r),a?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},p._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(p.functional){p._injectStyles=c;var l=p.render;p.render=function(e,t){return c.call(t),l(e,t)}}else{var u=p.beforeCreate;p.beforeCreate=u?[].concat(u,c):[c]}return{exports:e,options:p}}var tt,ot,nt=et(Ze,ke,Pe,!1,null,null,null),it=nt.exports,rt=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("canvas",{directives:[{name:"render-canvas",rawName:"v-render-canvas",value:{links:e.links,nodes:e.nodes},expression:"{links, nodes}"}],ref:"canvas",style:e.canvasStyle,attrs:{id:"canvas",width:e.size.w,height:e.size.h},on:{mouseup:function(t){return t.preventDefault(),e.canvasClick(t)},mousedown:function(t){return t.preventDefault(),e.canvasClick(t)},touchstart:function(t){return t.preventDefault(),e.canvasClick(t)},"&touchend":function(t){return e.canvasClick(t)}}})},at=[],st=(o("b54a"),o("6c7b"),{background:{_cssClass:"net-svg",fillStyle:"white"},node:{_cssClass:"node",fillStyle:"green",strokeStyle:"orange",lineWidth:2},link:{_cssClass:"link",strokeStyle:"blue",lineWidth:1},labels:{_cssClass:"node-label",_svgElement:"text",fillStyle:"black",fontFamily:"Arial"},nodeSelected:{_cssClass:"node selected",fillStyle:"red",strokeStyle:"orange",lineWidth:2},linkSelected:{_cssClass:"link selected",strokeStyle:"green",lineWidth:2},nodePinned:{_cssClass:"node pinned",fillStyle:"green",strokeStyle:"red"},nodeSelectedPinned:{_cssClass:"node selected pinned",fillStyle:"green",strokeStyle:"red"}}),ct=(o("6b54"),{randomId:function(){return Math.random().toString(36).substring(7)},fillStyle:function(e,t){var o=null,n="picker-"+this.randomId(),i=this.canvasPicker(e,n);t.appendChild(i);var r={fillStyle:"fill",strokeStyle:"stroke",lineWidth:"stroke-width",fontFamily:"font-family"};return e=this.mapStyle(n,r,e,o),t.removeChild(i),e},mapStyle:function(e,t,o,n,i){var r=window.getComputedStyle(document.getElementById(e),n);for(var a in i=i||["lineWidth"],t){var s=r.getPropertyValue(t[a]);i.indexOf(a)>-1&&(s=Ie()(s,10)),s&&(o[a]=s)}return o},canvasPicker:function(e,t){var o=e._svgAttrs||{},n=e._svgElement||"circle";if(!e._svgAttrs)switch(n){case"text":o={x:10,y:10,fontSize:20};break;case"circle":o={cx:10,cy:10,r:10};break}return o.class=e._cssClass,o.id=t,this.svgCreate(n,o)},compColor:function(e){var t=document.createElement("div");t.style.backgroundColor=e,document.body.appendChild(t);var o=window.getComputedStyle(t,null).getPropertyValue("background-color");return document.body.removeChild(t),o},svgCreate:function(e,t){var o=document.createElementNS("http://www.w3.org/2000/svg",e);for(var n in t)o.setAttributeNS(null,n,t[n]);return o},create:function(e,t,o){o=o||"body";var n=document.createElement(e),i=t||"";return i+=this.randomId(),n.setAttribute("id",i),document[o].appendChild(n),n}}),pt={name:"canvas-renderer",props:["size","offset","padding","nodes","selected","linksSelected","links","nodeSize","fontSize","strLinks","linkWidth","nodeLabels","labelOffset","canvasStyles","nodeSym","noNodes"],data:function(){return{hitCanvas:null,shapes:{},drag:null,stylesReady:!1,CssStyles:!0,styles:st,sprites:{}}},computed:{nodeSvg:function(){return this.nodeSym},canvasStyle:function(){var e=this.padding.x+"px",t=this.padding.y+"px";return{left:e,top:t}}},directives:{renderCanvas:function(e,t,o){var n=t.value.nodes,i=t.value.links;o.context.draw(n,i,e)}},created:function(){if(this.canvasStyles)for(var e in this.canvasStyles)this.styles[e]=this.canvasStyles[e]},mounted:function(){var e=this;this.$nextTick(function(){e.hitCanvas.width=e.size.w,e.hitCanvas.height=e.size.h})},watch:{nodeSize:function(){this.resetSprites()},canvasStyles:function(){this.resetSprites()}},methods:{canvasScreenShot:function(e,t){var o=this.$refs.canvas,n=document.createElement("canvas");n.width=o.width,n.height=o.height;var i=this.styles.background;t&&(i=this.getCssColor(t));var r=n.getContext("2d");r=this.setCtx(r,i),r.fillRect(0,0,n.width,n.height),r.drawImage(o,0,0);var a=n.toDataURL("image/png");a?e(null,a):e(new Error("error generating canvas image"))},emit:function(e,t){this.$emit("action",e,t)},canvasInit:function(){var e=document.createElement("canvas");e.width=this.size.w,e.height=this.size.h,e.top=this.offset.y,e.left=this.offset.x,e.id="hit-canvas",this.hitCanvas=e,this.resetSprites()},resetSprites:function(){this.sprites={};for(var e=["node","nodeSelected","nodePinned","nodeSelectedPinned"],t=0;t0&&e.y>0&&e.x0&&(n.data[r]=255,n.data[r-3]=t.r,n.data[r-2]=t.g,n.data[r-1]=t.b);return o.putImageData(n,0,0),e},newColorIndex:function(){while(1){var e=this.randomColor();if(!this.shapes[e.rgb])return e}},randomColor:function(){var e=Math.round(255*Math.random()),t=Math.round(255*Math.random()),o=Math.round(255*Math.random());return{r:e,g:t,b:o,rgb:"rgb(".concat(e,",").concat(t,",").concat(o,")")}},setCtx:function(e,t){for(var o in t)e[o]=t[o];return e},cloneCanvas:function(e){var t=document.createElement("canvas"),o=t.getContext("2d");return t.width=e.width,t.height=e.height,o.drawImage(e,0,0),t},Sprite:function(e,t){return this.sprites[e]||(this.sprites[e]=t()),this.sprites[e]},getCssStyles:function(){var e=ct.create("svg","css-picker");for(var t in this.styles){var o=this.styles[t]||{};o=ct.fillStyle(o,e)}document.body.removeChild(e),this.stylesReady=!0},loadNodeStyle:function(e){var t="node",o=this.selected[e.id];if(o&&(t="nodeSelected"),e.pinned&&(t="nodePinned"),o&&e.pinned&&(t="nodeSelectedPinned"),e._cssClass){var n=t+"-"+e._cssClass;if(!this.styles[n]){var i=f()({},this.styles[t]||{});i._cssClass=i._cssClass||"",i._cssClass+=" "+e._cssClass,this.updateStyle(n,i)}t=n}var r=f()({},this.styles[t]||this.updateStyle(t));return e._color&&(r.fillStyle=e._color,r._cssStyle="fill:"+e._color),e._cssClass&&(r._cssClass+=" "+e._cssClass),r},updateStyle:function(e,t){t=t||this.styles[e]||{};var o=ct.create("svg","css-picker");return t=ct.fillStyle(t,o),this.styles[e]=t,document.body.removeChild(o),t},getCssColor:function(e){var t=ct.create("div","color-picker"),o=t.id;t.setAttribute("style","background-color:"+e);var n=ct.mapStyle(o,{fillStyle:"background-color"},[]);return document.body.removeChild(t),n},labelStyle:function(e){var t=this.styles.labels,o=e._labelClass;if(o){var n="labels-"+o,i=this.styles[n];i||(i=f()({},t),i._cssClass+=" "+o,i=this.updateStyle(n,i)),t=i}return t}}},lt=pt,ut=(o("3d11"),et(lt,rt,at,!1,null,null,null)),bt=ut.exports,dt=(o("34ef"),{save:function(e,t){var o=this;e&&(e=this.dataURIToBlob(e,function(e){var n=URL.createObjectURL(e);o.download(n,t)}))},dataURIToBlob:function(e,t){for(var o=atob(e.split(",")[1]),n=o.length,i=new Uint8Array(n),r=0;r=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("9757"),p=o("3a92"),l=o("6923"),u=o("3585"),b=o("168d"),d=o("cc26"),M=function(){function e(t,o){void 0===t&&(t=[]),void 0===o&&(o=[]),this.elementsToActivate=t,this.elementsToDeactivate=o,this.kind=e.KIND}return e.KIND="switchEditMode",e}();t.SwitchEditModeAction=M;var h=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o.elementsToActivate=[],o.elementsToDeactivate=[],o.handlesToRemove=[],o}return n(t,e),t.prototype.execute=function(e){var t=this,o=e.root.index;return this.action.elementsToActivate.forEach(function(e){var n=o.getById(e);void 0!==n&&t.elementsToActivate.push(n)}),this.action.elementsToDeactivate.forEach(function(e){var n=o.getById(e);if(void 0!==n&&t.elementsToDeactivate.push(n),n instanceof u.SRoutingHandle&&n.parent instanceof u.SRoutableElement){var i=n.parent;t.shouldRemoveHandle(n,i)&&(t.handlesToRemove.push({handle:n,parent:i}),t.elementsToDeactivate.push(i),t.elementsToActivate.push(i))}}),this.doExecute(e)},t.prototype.doExecute=function(e){var t=this;return this.handlesToRemove.forEach(function(e){e.point=e.parent.routingPoints.splice(e.handle.pointIndex,1)[0]}),this.elementsToDeactivate.forEach(function(e){e instanceof u.SRoutableElement?e.removeAll(function(e){return e instanceof u.SRoutingHandle}):e instanceof u.SRoutingHandle&&(e.editMode=!1,e.danglingAnchor&&e.parent instanceof u.SRoutableElement&&e.danglingAnchor.original&&(e.parent.source===e.danglingAnchor?e.parent.sourceId=e.danglingAnchor.original.id:e.parent.target===e.danglingAnchor&&(e.parent.targetId=e.danglingAnchor.original.id),e.danglingAnchor.parent.remove(e.danglingAnchor),e.danglingAnchor=void 0))}),this.elementsToActivate.forEach(function(e){if(d.canEditRouting(e)&&e instanceof p.SParentElement){var o=t.edgeRouterRegistry.get(e.routerKind);o.createRoutingHandles(e)}else e instanceof u.SRoutingHandle&&(e.editMode=!0)}),e.root},t.prototype.shouldRemoveHandle=function(e,t){if("junction"===e.kind){var o=this.edgeRouterRegistry.get(t.routerKind),n=o.route(t);return void 0===n.find(function(t){return t.pointIndex===e.pointIndex})}return!1},t.prototype.undo=function(e){var t=this;return this.handlesToRemove.forEach(function(e){void 0!==e.point&&e.parent.routingPoints.splice(e.handle.pointIndex,0,e.point)}),this.elementsToActivate.forEach(function(e){e instanceof u.SRoutableElement?e.removeAll(function(e){return e instanceof u.SRoutingHandle}):e instanceof u.SRoutingHandle&&(e.editMode=!1)}),this.elementsToDeactivate.forEach(function(e){if(d.canEditRouting(e)){var o=t.edgeRouterRegistry.get(e.routerKind);o.createRoutingHandles(e)}else e instanceof u.SRoutingHandle&&(e.editMode=!0)}),e.root},t.prototype.redo=function(e){return this.doExecute(e)},t.KIND=M.KIND,i([s.inject(b.EdgeRouterRegistry),r("design:type",b.EdgeRouterRegistry)],t.prototype,"edgeRouterRegistry",void 0),t=i([s.injectable(),a(0,s.inject(l.TYPES.Action)),r("design:paramtypes",[M])],t),t}(c.Command);t.SwitchEditModeCommand=h},a663:function(e,t,o){"use strict";var n=o("84fd"),i=o.n(n);i.a},a8af:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("30e3");function i(e){return e instanceof RangeError||e.message===n.STACK_OVERFLOW}t.isStackOverflowExeption=i},ab71:function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("869e"),r=o("dd02"),a=o("e1c6"),s=o("d8f5"),c=function(){function e(){}return Object.defineProperty(e.prototype,"kind",{get:function(){return s.PolylineEdgeRouter.KIND+":"+i.ELLIPTIC_ANCHOR_KIND},enumerable:!0,configurable:!0}),e.prototype.getAnchor=function(e,t,o){void 0===o&&(o=0);var n=e.bounds,i=r.center(n),a=i.x-t.x,s=i.y-t.y,c=Math.sqrt(a*a+s*s),p=a/c||0,l=s/c||0;return{x:i.x-p*(.5*n.width+o),y:i.y-l*(.5*n.height+o)}},e=n([a.injectable()],e),e}();t.EllipseAnchor=c;var p=function(){function e(){}return Object.defineProperty(e.prototype,"kind",{get:function(){return s.PolylineEdgeRouter.KIND+":"+i.RECTANGULAR_ANCHOR_KIND},enumerable:!0,configurable:!0}),e.prototype.getAnchor=function(e,t,o){void 0===o&&(o=0);var n=e.bounds,i=r.center(n),a=new l(i,t);if(!r.almostEquals(i.y,t.y)){var s=this.getXIntersection(n.y,i,t);s>=n.x&&s<=n.x+n.width&&a.addCandidate(s,n.y-o);var c=this.getXIntersection(n.y+n.height,i,t);c>=n.x&&c<=n.x+n.width&&a.addCandidate(c,n.y+n.height+o)}if(!r.almostEquals(i.x,t.x)){var p=this.getYIntersection(n.x,i,t);p>=n.y&&p<=n.y+n.height&&a.addCandidate(n.x-o,p);var u=this.getYIntersection(n.x+n.width,i,t);u>=n.y&&u<=n.y+n.height&&a.addCandidate(n.x+n.width+o,u)}return a.best},e.prototype.getXIntersection=function(e,t,o){var n=(e-t.y)/(o.y-t.y);return(o.x-t.x)*n+t.x},e.prototype.getYIntersection=function(e,t,o){var n=(e-t.x)/(o.x-t.x);return(o.y-t.y)*n+t.y},e=n([a.injectable()],e),e}();t.RectangleAnchor=p;var l=function(){function e(e,t){this.centerPoint=e,this.refPoint=t,this.currentDist=-1}return e.prototype.addCandidate=function(e,t){var o=this.refPoint.x-e,n=this.refPoint.y-t,i=o*o+n*n;(this.currentDist<0||i=this.dragVertexDelay_?(this.downPx_=t.pixel,this.shouldHandle_=!this.freehand_,o=!0):this.lastDragTime_=void 0,this.shouldHandle_&&void 0!==this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)}return this.freehand_&&t.type===r["a"].POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(t),i=!1):this.freehand_&&t.type===r["a"].POINTERDOWN?i=!1:o?(i=t.type===r["a"].POINTERMOVE,i&&this.freehand_?i=this.handlePointerMove_(t):(t.pointerEvent.pointerType==A["b"]||t.type===r["a"].POINTERDRAG&&void 0===this.downTimeout_)&&this.handlePointerMove_(t)):t.type===r["a"].DBLCLICK&&(i=!1),e.prototype.handleEvent.call(this,t)&&i},t.prototype.handleDownEvent=function(e){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=e.pixel,this.finishCoordinate_||this.startDrawing_(e),!0):!!this.condition_(e)&&(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(function(){this.handlePointerMove_(new a["a"](r["a"].POINTERMOVE,e.map,e.pointerEvent,!1,e.frameState))}.bind(this),this.dragVertexDelay_),this.downPx_=e.pixel,!0)},t.prototype.handleUpEvent=function(e){var t=!0;this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0),this.handlePointerMove_(e);var o=this.mode_===R.CIRCLE;return this.shouldHandle_?(this.finishCoordinate_?this.freehand_||o?this.finishDrawing():this.atFinish_(e)?this.finishCondition_(e)&&this.finishDrawing():this.addToDrawing_(e):(this.startDrawing_(e),this.mode_===R.POINT&&this.finishDrawing()),t=!1):this.freehand_&&(this.finishCoordinate_=null,this.abortDrawing_()),!t&&this.stopClick_&&e.stopPropagation(),t},t.prototype.handlePointerMove_=function(e){if(this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){var t=this.downPx_,o=e.pixel,n=t[0]-o[0],i=t[1]-o[1],r=n*n+i*i;if(this.shouldHandle_=this.freehand_?r>this.squaredClickTolerance_:r<=this.squaredClickTolerance_,!this.shouldHandle_)return!0}return this.finishCoordinate_?this.modifyDrawing_(e):this.createOrUpdateSketchPoint_(e),!0},t.prototype.atFinish_=function(e){var t=!1;if(this.sketchFeature_){var o=!1,n=[this.finishCoordinate_];if(this.mode_===R.LINE_STRING)o=this.sketchCoords_.length>this.minPoints_;else if(this.mode_===R.POLYGON){var i=this.sketchCoords_;o=i[0].length>this.minPoints_,n=[i[0][0],i[0][i[0].length-2]]}if(o)for(var r=e.map,a=0,s=n.length;a=this.maxPoints_&&(this.freehand_?o.pop():t=!0),o.push(n.slice()),this.geometryFunction_(o,i)):this.mode_===R.POLYGON&&(o=this.sketchCoords_[0],o.length>=this.maxPoints_&&(this.freehand_?o.pop():t=!0),o.push(n.slice()),t&&(this.finishCoordinate_=o[0]),this.geometryFunction_(this.sketchCoords_,i)),this.updateSketchFeatures_(),t&&this.finishDrawing()},t.prototype.removeLastPoint=function(){if(this.sketchFeature_){var e,t,o=this.sketchFeature_.getGeometry();this.mode_===R.LINE_STRING?(e=this.sketchCoords_,e.splice(-2,1),this.geometryFunction_(e,o),e.length>=2&&(this.finishCoordinate_=e[e.length-2].slice())):this.mode_===R.POLYGON&&(e=this.sketchCoords_[0],e.splice(-2,1),t=this.sketchLine_.getGeometry(),t.setCoordinates(e),this.geometryFunction_(this.sketchCoords_,o)),0===e.length&&(this.finishCoordinate_=null),this.updateSketchFeatures_()}},t.prototype.finishDrawing=function(){var e=this.abortDrawing_();if(e){var t=this.sketchCoords_,o=e.getGeometry();this.mode_===R.LINE_STRING?(t.pop(),this.geometryFunction_(t,o)):this.mode_===R.POLYGON&&(t[0].pop(),this.geometryFunction_(t,o),t=o.getCoordinates()),this.type_===M["a"].MULTI_POINT?e.setGeometry(new z["a"]([t])):this.type_===M["a"].MULTI_LINE_STRING?e.setGeometry(new f["a"]([t])):this.type_===M["a"].MULTI_POLYGON&&e.setGeometry(new O["a"]([t])),this.dispatchEvent(new L(w.DRAWEND,e)),this.features_&&this.features_.push(e),this.source_&&this.source_.addFeature(e)}},t.prototype.abortDrawing_=function(){this.finishCoordinate_=null;var e=this.sketchFeature_;return e&&(this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0)),e},t.prototype.extend=function(e){var t=e.getGeometry(),o=t;this.sketchFeature_=e,this.sketchCoords_=o.getCoordinates();var n=this.sketchCoords_[this.sketchCoords_.length-1];this.finishCoordinate_=n.slice(),this.sketchCoords_.push(n.slice()),this.updateSketchFeatures_(),this.dispatchEvent(new L(w.DRAWSTART,this.sketchFeature_))},t.prototype.updateSketchFeatures_=function(){var e=[];this.sketchFeature_&&e.push(this.sketchFeature_),this.sketchLine_&&e.push(this.sketchLine_),this.sketchPoint_&&e.push(this.sketchPoint_);var t=this.overlay_.getSource();t.clear(!0),t.addFeatures(e)},t.prototype.updateState_=function(){var e=this.getMap(),t=this.getActive();e&&t||this.abortDrawing_(),this.overlay_.setMap(t?e:null)},t}(g["b"]);function S(){var e=Object(W["b"])();return function(t,o){return e[t.getGeometry().getType()]}}function E(e){var t;return e===M["a"].POINT||e===M["a"].MULTI_POINT?t=R.POINT:e===M["a"].LINE_STRING||e===M["a"].MULTI_LINE_STRING?t=R.LINE_STRING:e===M["a"].POLYGON||e===M["a"].MULTI_POLYGON?t=R.POLYGON:e===M["a"].CIRCLE&&(t=R.CIRCLE),t}t["a"]=C},ac2a:function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,o=1,n=arguments.length;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("9757"),c=o("3a92"),p=o("e1c6"),l=o("6923"),u=function(){function e(t,o){this.containerId=t,this.elementSchema=o,this.kind=e.KIND}return e.KIND="createElement",e}();t.CreateElementAction=u;var b=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o}return n(t,e),t.prototype.execute=function(e){var t=e.root.index.getById(this.action.containerId);return t instanceof c.SParentElement&&(this.container=t,this.newElement=e.modelFactory.createElement(this.action.elementSchema),this.container.add(this.newElement)),e.root},t.prototype.undo=function(e){return this.container.remove(this.newElement),e.root},t.prototype.redo=function(e){return this.container.add(this.newElement),e.root},t.KIND=u.KIND,t=i([p.injectable(),a(0,p.inject(l.TYPES.Action)),r("design:paramtypes",[u])],t),t}(s.Command);t.CreateElementCommand=b},ac8e:function(e,t,o){},ad0b:function(e,t,o){"use strict";var n=o("d988"),i=o.n(n);i.a},ad71:function(e,t,o){"use strict";(function(t,n){var i=o("966d");e.exports=g;var r,a=o("e3db");g.ReadableState=v;o("faa1").EventEmitter;var s=function(e,t){return e.listeners(t).length},c=o("429b"),p=o("8707").Buffer,l=("undefined"!==typeof t?t:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};function u(e){return p.from(e)}function b(e){return p.isBuffer(e)||e instanceof l}var d=Object.create(o("3a7c"));d.inherits=o("3fb5");var M=o(2),h=void 0;h=M&&M.debuglog?M.debuglog("stream"):function(){};var f,z=o("5e1a"),O=o("4681");d.inherits(g,c);var A=["error","close","destroy","pause","resume"];function m(e,t,o){if("function"===typeof e.prependListener)return e.prependListener(t,o);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(o):e._events[t]=[o,e._events[t]]:e.on(t,o)}function v(e,t){r=r||o("b19a"),e=e||{};var n=t instanceof r;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new z,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=o("7d72").StringDecoder),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function g(e){if(r=r||o("b19a"),!(this instanceof g))return new g(e);this._readableState=new v(e,this),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function y(e,t,o,n,i){var r,a=e._readableState;null===t?(a.reading=!1,C(e,a)):(i||(r=_(a,t)),r?e.emit("error",r):a.objectMode||t&&t.length>0?("string"===typeof t||a.objectMode||Object.getPrototypeOf(t)===p.prototype||(t=u(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):q(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!o?(t=a.decoder.write(t),a.objectMode||0!==t.length?q(e,a,t,!1):T(e,a)):q(e,a,t,!1))):n||(a.reading=!1));return W(a)}function q(e,t,o,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",o),e.read(0)):(t.length+=t.objectMode?1:o.length,n?t.buffer.unshift(o):t.buffer.push(o),t.needReadable&&S(e)),T(e,t)}function _(e,t){var o;return b(t)||"string"===typeof t||void 0===t||e.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o}function W(e){return!e.ended&&(e.needReadable||e.length=R?e=R:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function L(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=w(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function C(e,t){if(!t.ended){if(t.decoder){var o=t.decoder.end();o&&o.length&&(t.buffer.push(o),t.length+=t.objectMode?1:o.length)}t.ended=!0,S(e)}}function S(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(E,e):E(e))}function E(e){h("emit readable"),e.emit("readable"),D(e)}function T(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(x,e,t))}function x(e,t){var o=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(o=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):o=X(e,t.buffer,t.decoder),o);var o}function X(e,t,o){var n;return er.length?r.length:e;if(a===r.length?i+=r:i+=r.slice(0,e),e-=a,0===e){a===r.length?(++n,o.next?t.head=o.next:t.head=t.tail=null):(t.head=o,o.data=r.slice(a));break}++n}return t.length-=n,i}function F(e,t){var o=p.allocUnsafe(e),n=t.head,i=1;n.data.copy(o),e-=n.data.length;while(n=n.next){var r=n.data,a=e>r.length?r.length:e;if(r.copy(o,o.length-e,0,a),e-=a,0===e){a===r.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=r.slice(a));break}++i}return t.length-=i,o}function H(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(U,t,e))}function U(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function V(e,t){for(var o=0,n=e.length;o=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?H(this):S(this),null;if(e=L(e,t),0===e&&t.ended)return 0===t.length&&H(this),null;var n,i=t.needReadable;return h("need readable",i),(0===t.length||t.length-e0?I(e,t):null,null===n?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),o!==e&&t.ended&&H(this)),null!==n&&this.emit("data",n),n},g.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},g.prototype.pipe=function(e,t){var o=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e);break}r.pipesCount+=1,h("pipe count=%d opts=%j",r.pipesCount,t);var a=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr,c=a?l:v;function p(e,t){h("onunpipe"),e===o&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,d())}function l(){h("onend"),e.end()}r.endEmitted?i.nextTick(c):o.once("end",c),e.on("unpipe",p);var u=N(o);e.on("drain",u);var b=!1;function d(){h("cleanup"),e.removeListener("close",O),e.removeListener("finish",A),e.removeListener("drain",u),e.removeListener("error",z),e.removeListener("unpipe",p),o.removeListener("end",l),o.removeListener("end",v),o.removeListener("data",f),b=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||u()}var M=!1;function f(t){h("ondata"),M=!1;var n=e.write(t);!1!==n||M||((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==V(r.pipes,e))&&!b&&(h("false write response, pause",r.awaitDrain),r.awaitDrain++,M=!0),o.pause())}function z(t){h("onerror",t),v(),e.removeListener("error",z),0===s(e,"error")&&e.emit("error",t)}function O(){e.removeListener("finish",A),v()}function A(){h("onfinish"),e.removeListener("close",O),v()}function v(){h("unpipe"),o.unpipe(e)}return o.on("data",f),m(e,"error",z),e.once("close",O),e.once("finish",A),e.emit("pipe",o),r.flowing||(h("pipe resume"),o.resume()),e},g.prototype.unpipe=function(e){var t=this._readableState,o={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,o),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var r=0;r=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("e1c6"),r=o("66f9"),a=function(){function e(){}return Object.defineProperty(e.prototype,"gridX",{get:function(){return 10},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gridY",{get:function(){return 10},enumerable:!0,configurable:!0}),e.prototype.snap=function(e,t){return t&&r.isBoundsAware(t)?{x:Math.round((e.x+.5*t.bounds.width)/this.gridX)*this.gridX-.5*t.bounds.width,y:Math.round((e.y+.5*t.bounds.height)/this.gridY)*this.gridY-.5*t.bounds.height}:{x:Math.round(e.x/this.gridX)*this.gridX,y:Math.round(e.y/this.gridY)*this.gridY}},e=n([i.injectable()],e),e}();t.CenterGridSnapper=a},aff7:function(e,t,o){"use strict";var n=o("7bae"),i=o.n(n);i.a},b093:function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o("e1c6"),a=o("6923"),s=o("0d7a"),c=o("e45b"),p=function(){function e(){}return e.prototype.decorate=function(e,t){var o=c.getAttrs(e);return void 0!==o.id&&this.logger.warn(e,"Overriding id of vnode ("+o.id+"). Make sure not to set it manually in view."),o.id=this.domHelper.createUniqueDOMElementId(t),e.key||(e.key=t.id),e},e.prototype.postUpdate=function(){},n([r.inject(a.TYPES.ILogger),i("design:type",Object)],e.prototype,"logger",void 0),n([r.inject(a.TYPES.DOMHelper),i("design:type",s.DOMHelper)],e.prototype,"domHelper",void 0),e=n([r.injectable()],e),e}();t.IdPostprocessor=p},b19a:function(e,t,o){"use strict";var n=o("966d"),i=Object.keys||function(e){var t=[];for(var o in e)t.push(o);return t};e.exports=u;var r=Object.create(o("3a7c"));r.inherits=o("3fb5");var a=o("ad71"),s=o("dc14");r.inherits(u,a);for(var c=i(s.prototype),p=0;pt.getMaxResolution()||z=0?e:"children"}}]),p}(e);return window["ol"]&&window["ol"]["control"]&&(window["ol"]["control"]["LayerSwitcher"]=p),p})},b485:function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=o("3b4c"),r=o("3623"),a=o("1f89"),s=function(){function e(t){this.elementId=t,this.kind=e.KIND}return e.KIND="open",e}();t.OpenAction=s;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.doubleClick=function(e,t){var o=r.findParentByFeature(e,a.isOpenable);return void 0!==o?[new s(o.id)]:[]},t}(i.MouseListener);t.OpenMouseListener=c},b669:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("fba3");function i(e,t){for(var o=[],i=2;i=0)return!1;if(e.metaKey!==o.findIndex(function(e){return"meta"===e||"ctrlCmd"===e})>=0)return!1}else{if(e.ctrlKey!==o.findIndex(function(e){return"ctrl"===e||"ctrlCmd"===e})>=0)return!1;if(e.metaKey!==o.findIndex(function(e){return"meta"===e})>=0)return!1}return e.altKey===o.findIndex(function(e){return"alt"===e})>=0&&e.shiftKey===o.findIndex(function(e){return"shift"===e})>=0}function r(e){if(e.keyCode){var t=a[e.keyCode];if(void 0!==t)return t}return e.code}t.matchesKeystroke=i,t.getActualCode=r;var a=new Array(256);(function(){function e(e,t){void 0===a[t]&&(a[t]=e)}e("Pause",3),e("Backspace",8),e("Tab",9),e("Enter",13),e("ShiftLeft",16),e("ShiftRight",16),e("ControlLeft",17),e("ControlRight",17),e("AltLeft",18),e("AltRight",18),e("CapsLock",20),e("Escape",27),e("Space",32),e("PageUp",33),e("PageDown",34),e("End",35),e("Home",36),e("ArrowLeft",37),e("ArrowUp",38),e("ArrowRight",39),e("ArrowDown",40),e("Insert",45),e("Delete",46),e("Digit1",49),e("Digit2",50),e("Digit3",51),e("Digit4",52),e("Digit5",53),e("Digit6",54),e("Digit7",55),e("Digit8",56),e("Digit9",57),e("Digit0",48),e("KeyA",65),e("KeyB",66),e("KeyC",67),e("KeyD",68),e("KeyE",69),e("KeyF",70),e("KeyG",71),e("KeyH",72),e("KeyI",73),e("KeyJ",74),e("KeyK",75),e("KeyL",76),e("KeyM",77),e("KeyN",78),e("KeyO",79),e("KeyP",80),e("KeyQ",81),e("KeyR",82),e("KeyS",83),e("KeyT",84),e("KeyU",85),e("KeyV",86),e("KeyW",87),e("KeyX",88),e("KeyY",89),e("KeyZ",90),e("OSLeft",91),e("MetaLeft",91),e("OSRight",92),e("MetaRight",92),e("ContextMenu",93),e("Numpad0",96),e("Numpad1",97),e("Numpad2",98),e("Numpad3",99),e("Numpad4",100),e("Numpad5",101),e("Numpad6",102),e("Numpad7",103),e("Numpad8",104),e("Numpad9",105),e("NumpadMultiply",106),e("NumpadAdd",107),e("NumpadSeparator",108),e("NumpadSubtract",109),e("NumpadDecimal",110),e("NumpadDivide",111),e("F1",112),e("F2",113),e("F3",114),e("F4",115),e("F5",116),e("F6",117),e("F7",118),e("F8",119),e("F9",120),e("F10",121),e("F11",122),e("F12",123),e("F13",124),e("F14",125),e("F15",126),e("F16",127),e("F17",128),e("F18",129),e("F19",130),e("F20",131),e("F21",132),e("F22",133),e("F23",134),e("F24",135),e("NumLock",144),e("ScrollLock",145),e("Semicolon",186),e("Equal",187),e("Comma",188),e("Minus",189),e("Period",190),e("Slash",191),e("Backquote",192),e("IntlRo",193),e("BracketLeft",219),e("Backslash",220),e("BracketRight",221),e("Quote",222),e("IntlYen",255)})()},b7b8:function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__spreadArrays||function(){for(var e=0,t=0,o=arguments.length;t1)){var o=this.route(e);if(!(o.length<2)){for(var n=[],i=0,r=0;r1e-8&&c>=s){var l=Math.max(0,s-a)/n[r];return{segmentStart:o[r],segmentEnd:o[r+1],lambda:l}}a=c}return{segmentEnd:o.pop(),segmentStart:o.pop(),lambda:1}}}},e.prototype.addHandle=function(e,t,o,n){var i=new l.SRoutingHandle;return i.kind=t,i.pointIndex=n,i.type=o,"target"===t&&e.id===l.edgeInProgressID&&(i.id=l.edgeInProgressTargetHandleID),e.add(i),i},e.prototype.getHandlePosition=function(e,t,o){switch(o.kind){case"source":return e.source instanceof l.SDanglingAnchor?e.source.position:t[0];case"target":return e.target instanceof l.SDanglingAnchor?e.target.position:t[t.length-1];default:var n=this.getInnerHandlePosition(e,t,o);if(void 0!==n)return n;if(o.pointIndex>=0&&o.pointIndexr(n))&&(n=c),p>o&&(void 0===i||p0&&this.applyInnerHandleMoves(e,o),this.cleanupRoutingPoints(e,e.routingPoints,!0,!0)},e.prototype.cleanupRoutingPoints=function(e,t,o,n){var i=new d(e.source,e.parent,"source"),r=new d(e.target,e.parent,"target");this.resetRoutingPointsOnReconnect(e,t,o,i,r)},e.prototype.resetRoutingPointsOnReconnect=function(e,t,o,n,i){if(0===t.length||e.source instanceof l.SDanglingAnchor||e.target instanceof l.SDanglingAnchor){var a=this.getOptions(e),s=this.calculateDefaultCorners(e,n,i,a);if(t.splice.apply(t,r([0,t.length],s)),o){var c=-2;e.children.forEach(function(o){o instanceof l.SRoutingHandle&&("target"===o.kind?o.pointIndex=t.length:"line"===o.kind&&o.pointIndex>=t.length?e.remove(o):c=Math.max(o.pointIndex,c))});for(var p=c;p-1&&(e.routingPoints=[],this.cleanupRoutingPoints(e,e.routingPoints,!0,!0)))},e.prototype.takeSnapshot=function(e){return{routingPoints:e.routingPoints.slice(),routingHandles:e.children.filter(function(e){return e instanceof l.SRoutingHandle}).map(function(e){return e}),routedPoints:this.route(e),router:this,source:e.source,target:e.target}},e.prototype.applySnapshot=function(e,t){e.routingPoints=t.routingPoints,e.removeAll(function(e){return e instanceof l.SRoutingHandle}),e.routerKind=t.router.kind,t.routingHandles.forEach(function(t){return e.add(t)}),t.source&&(e.sourceId=t.source.id),t.target&&(e.targetId=t.target.id),e.root.index.remove(e),e.root.index.add(e)},e.prototype.calculateDefaultCorners=function(e,t,o,n){var i=this.getSelfEdgeIndex(e);if(i>=0){var r=n.standardDistance,s=n.selfEdgeOffset*Math.min(t.bounds.width,t.bounds.height);switch(i%4){case 0:return[{x:t.get(a.RIGHT).x+r,y:t.get(a.RIGHT).y+s},{x:t.get(a.RIGHT).x+r,y:t.get(a.BOTTOM).y+r},{x:t.get(a.BOTTOM).x+s,y:t.get(a.BOTTOM).y+r}];case 1:return[{x:t.get(a.BOTTOM).x-s,y:t.get(a.BOTTOM).y+r},{x:t.get(a.LEFT).x-r,y:t.get(a.BOTTOM).y+r},{x:t.get(a.LEFT).x-r,y:t.get(a.LEFT).y+s}];case 2:return[{x:t.get(a.LEFT).x-r,y:t.get(a.LEFT).y-s},{x:t.get(a.LEFT).x-r,y:t.get(a.TOP).y-r},{x:t.get(a.TOP).x-s,y:t.get(a.TOP).y-r}];case 3:return[{x:t.get(a.TOP).x+s,y:t.get(a.TOP).y-r},{x:t.get(a.RIGHT).x+r,y:t.get(a.TOP).y-r},{x:t.get(a.RIGHT).x+r,y:t.get(a.RIGHT).y-s}]}}return[]},e.prototype.getSelfEdgeIndex=function(e){return e.source&&e.source===e.target?e.source.outgoingEdges.filter(function(t){return t.target===e.source}).indexOf(e):-1},n([s.inject(u.AnchorComputerRegistry),i("design:type",u.AnchorComputerRegistry)],e.prototype,"anchorRegistry",void 0),e=n([s.injectable()],e),e}();t.LinearEdgeRouter=M},b7ca:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("46cc"),a=o("d8f5"),s=o("9a1f"),c=o("ab71"),p=o("869e"),l=o("168d"),u=new n.ContainerModule(function(e){e(l.EdgeRouterRegistry).toSelf().inSingletonScope(),e(p.AnchorComputerRegistry).toSelf().inSingletonScope(),e(r.ManhattanEdgeRouter).toSelf().inSingletonScope(),e(i.TYPES.IEdgeRouter).toService(r.ManhattanEdgeRouter),e(i.TYPES.IAnchorComputer).to(s.ManhattanEllipticAnchor).inSingletonScope(),e(i.TYPES.IAnchorComputer).to(s.ManhattanRectangularAnchor).inSingletonScope(),e(i.TYPES.IAnchorComputer).to(s.ManhattanDiamondAnchor).inSingletonScope(),e(a.PolylineEdgeRouter).toSelf().inSingletonScope(),e(i.TYPES.IEdgeRouter).toService(a.PolylineEdgeRouter),e(i.TYPES.IAnchorComputer).to(c.EllipseAnchor),e(i.TYPES.IAnchorComputer).to(c.RectangleAnchor),e(i.TYPES.IAnchorComputer).to(c.DiamondAnchor)});t.default=u},b7d1:function(e,t,o){(function(t){function o(e,t){if(n("noDeprecation"))return e;var o=!1;function i(){if(!o){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),o=!0}return e.apply(this,arguments)}return i}function n(e){try{if(!t.localStorage)return!1}catch(e){return!1}var o=t.localStorage[e];return null!=o&&"true"===String(o).toLowerCase()}e.exports=o}).call(this,o("c8ba"))},b878:function(e,t,o){},b8c1:function(e,t,o){"use strict";t["a"]={data:function(){return{timer:null,prevent:!1,delay:200}},methods:{onClick:function(e,t){var o=this;this.timer=setTimeout(function(){o.prevent||t(e),o.prevent=!1},this.delay)},onDblClick:function(e,t){clearTimeout(this.timer),this.prevent=!0,t(e)}}}},b967:function(e,t,o){"use strict";var n=o("0505"),i=o.n(n);i.a},ba33:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("30e3");function i(e){if("function"===typeof e){var t=e;return t.name}if("symbol"===typeof e)return e.toString();t=e;return t}function r(e,t,o){var n="",i=o(e,t);return 0!==i.length&&(n="\nRegistered bindings:",i.forEach(function(e){var t="Object";null!==e.implementationType&&(t=l(e.implementationType)),n=n+"\n "+t,e.constraint.metaData&&(n=n+" - "+e.constraint.metaData)})),n}function a(e,t){return null!==e.parentRequest&&(e.parentRequest.serviceIdentifier===t||a(e.parentRequest,t))}function s(e){function t(e,o){void 0===o&&(o=[]);var n=i(e.serviceIdentifier);return o.push(n),null!==e.parentRequest?t(e.parentRequest,o):o}var o=t(e);return o.reverse().join(" --\x3e ")}function c(e){e.childRequests.forEach(function(e){if(a(e,e.serviceIdentifier)){var t=s(e);throw new Error(n.CIRCULAR_DEPENDENCY+" "+t)}c(e)})}function p(e,t){if(t.isTagged()||t.isNamed()){var o="",n=t.getNamedTag(),i=t.getCustomTags();return null!==n&&(o+=n.toString()+"\n"),null!==i&&i.forEach(function(e){o+=e.toString()+"\n"})," "+e+"\n "+e+" - "+o}return" "+e}function l(e){if(e.name)return e.name;var t=e.toString(),o=t.match(/^function\s*([^\s(]+)/);return o?o[1]:"Anonymous function: "+t}t.getServiceIdentifierAsString=i,t.listRegisteredBindingsForServiceIdentifier=r,t.circularDependencyToException=c,t.listMetadataForTarget=p,t.getFunctionName=l},ba8b:function(e,t,o){},bab1:function(e,t,o){},bafd:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=t.context||document;if(!e)return null;var n=[],r=l((0,i.default)(e),n,o),a=void 0;return a=r?1===r.length?r[0]:r:u({type:"text",content:e},n,o),t.hooks&&t.hooks.create&&n.forEach(function(e){t.hooks.create(e)}),a};var n=o("861d"),i=c(n),r=o("2eed"),a=c(r),s=o("6592");function c(e){return e&&e.__esModule?e:{default:e}}function p(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function l(e,t,o){return e instanceof Array&&e.length>0?e.map(function(e){return u(e,t,o)}):void 0}function u(e,t,o){var n=void 0;return n="text"===e.type?(0,s.createTextVNode)(e.content,o):(0,a.default)(e.name,b(e,o),l(e.children,t,o)),t.push(n),n}function b(e,t){var o={};if(!e.attrs)return o;var n=Object.keys(e.attrs).reduce(function(o,n){if("style"!==n&&"class"!==n){var i=(0,s.unescapeEntities)(e.attrs[n],t);o?o[n]=i:o=p({},n,i)}return o},null);n&&(o.attrs=n);var i=d(e);i&&(o.style=i);var r=M(e);return r&&(o.class=r),o}function d(e){try{return e.attrs.style.split(";").reduce(function(e,t){var o=t.split(":"),n=(0,s.transformName)(o[0].trim());if(n){var i=o[1].replace("!important","").trim();e?e[n]=i:e=p({},n,i)}return e},null)}catch(e){return null}}function M(e){try{return e.attrs.class.split(" ").reduce(function(e,t){return t=t.trim(),t&&(e?e[t]=!0:e=p({},t,!0)),e},null)}catch(e){return null}}},bb33:function(e,t,o){"use strict";var n=o("bee8"),i=o.n(n);i.a},bb59:function(e,t,o){},bc63:function(e,t,o){},bcbd:function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("510b"),p=o("9757"),l=o("2f3a"),u=o("3a92"),b=o("3623"),d=o("6923"),M=o("1417"),h=o("3b4c"),f=o("e45b"),z=o("fba3"),O=o("e629"),A=o("b669"),m=o("70d9"),v=o("38e8"),g=o("a5f4"),y=o("3585"),q=o("3585"),_=o("3ada"),W=o("4c18"),R=function(){function e(t,o){void 0===t&&(t=[]),void 0===o&&(o=[]),this.selectedElementsIDs=t,this.deselectedElementsIDs=o,this.kind=e.KIND}return e.KIND="elementSelected",e}();t.SelectAction=R;var w=function(){function e(t){void 0===t&&(t=!0),this.select=t,this.kind=e.KIND}return e.KIND="allSelected",e}();t.SelectAllAction=w;var L=function(){function e(t){void 0===t&&(t=""),this.requestId=t,this.kind=e.KIND}return e.create=function(){return new e(c.generateRequestId())},e.KIND="getSelection",e}();t.GetSelectionAction=L;var C=function(){function e(t,o){void 0===t&&(t=[]),this.selectedElementsIDs=t,this.responseId=o,this.kind=e.KIND}return e.KIND="selectionResult",e}();t.SelectionResult=C;var S=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o.selected=[],o.deselected=[],o}return n(t,e),t.prototype.execute=function(e){var t=this,o=e.root;return this.action.selectedElementsIDs.forEach(function(e){var n=o.index.getById(e);n instanceof u.SChildElement&&W.isSelectable(n)&&t.selected.push(n)}),this.action.deselectedElementsIDs.forEach(function(e){var n=o.index.getById(e);n instanceof u.SChildElement&&W.isSelectable(n)&&t.deselected.push(n)}),this.redo(e)},t.prototype.undo=function(e){for(var t=0,o=this.selected;t0&&o.push(new g.SwitchEditModeAction([],a))}else{o.push(new R([],r.map(function(e){return e.id})));a=r.filter(function(e){return e instanceof q.SRoutableElement}).map(function(e){return e.id});a.length>0&&o.push(new g.SwitchEditModeAction([],a))}}}return o},t.prototype.mouseMove=function(e,t){return this.hasDragged=!0,[]},t.prototype.mouseUp=function(e,t){if(0===t.button&&!this.hasDragged){var o=b.findParentByFeature(e,W.isSelectable);if(void 0!==o&&this.wasSelected)return[new R([o.id],[])]}return this.hasDragged=!1,[]},t.prototype.decorate=function(e,t){var o=b.findParentByFeature(t,W.isSelectable);return void 0!==o&&f.setClass(e,"selected",o.selected),e},i([s.inject(m.ButtonHandlerRegistry),s.optional(),r("design:type",m.ButtonHandlerRegistry)],t.prototype,"buttonHandlerRegistry",void 0),t}(h.MouseListener);t.SelectMouseListener=T;var x=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o.previousSelection={},o}return n(t,e),t.prototype.retrieveResult=function(e){var t=e.root.index.all().filter(function(e){return W.isSelectable(e)&&e.selected}).map(function(e){return e.id});return new C(O.toArray(t),this.action.requestId)},t.KIND=L.KIND,t=i([s.injectable(),a(0,s.inject(d.TYPES.Action)),r("design:paramtypes",[L])],t),t}(l.ModelRequestCommand);t.GetSelectionCommand=x;var N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.keyDown=function(e,t){return A.matchesKeystroke(t,"KeyA","ctrlCmd")?[new w]:[]},t}(M.KeyListener);t.SelectKeyboardListener=N},bcc9:function(e,t,o){"use strict";var n,i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,o=1,n=arguments.length;oz&&(r.top=z-a),lA&&(r.left=A-s),r}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e["Start"]=1]="Start",e[e["End"]=2]="End",e[e["Move"]=3]="Move"}(n||(n={})),t.Draggable={bind:function(e,o,n,i){t.Draggable.update(e,o,n,i)},update:function(e,t,o,s){if(!t.value||!t.value.stopDragging){var c=t.value&&t.value.handle&&r(t.value.handle)||e;t&&t.value&&t.value.resetInitialPos&&(f(),O()),c.getAttribute("draggable")||(e.removeEventListener("mousedown",e["listener"]),c.addEventListener("mousedown",d),e.removeEventListener("touchstart",e["listener"]),c.addEventListener("touchstart",d,{passive:!1}),c.setAttribute("draggable","true"),e["listener"]=d,f(),O())}function p(o){o.preventDefault();var n=t.value&&t.value.stopDragging;if(!n){var i=A();i.startDragPosition&&i.initialMousePos||(f(o),i=A());var r=M(o),s=r.left-i.initialMousePos.left,c=r.top-i.initialMousePos.top,p={left:i.startDragPosition.left+s,top:i.startDragPosition.top+c},b=l(),d=e.getBoundingClientRect();b&&d&&(p=a(d,b,p.left,p.top,t.value.boundingRectMargin)),z({currentDragPosition:p}),u(),O(o)}}function l(){if(t.value)return t.value.boundingRect||t.value.boundingElement&&t.value.boundingElement.getBoundingClientRect()}function u(){var t=A();t.currentDragPosition&&(e.style.touchAction="none",e.style.position="fixed",e.style.left=t.currentDragPosition.left+"px",e.style.top=t.currentDragPosition.top+"px")}function b(e){e.preventDefault(),document.removeEventListener("mousemove",p),document.removeEventListener("mouseup",b),document.removeEventListener("touchmove",p),document.removeEventListener("touchend",b);var t=h();z({initialMousePos:void 0,startDragPosition:t,currentDragPosition:t}),O(e,n.End)}function d(e){z({initialMousePos:M(e)}),O(e,n.Start),document.addEventListener("mousemove",p),document.addEventListener("mouseup",b),document.addEventListener("touchmove",p),document.addEventListener("touchend",b)}function M(e){if(e instanceof MouseEvent)return{left:e.clientX,top:e.clientY};if(e instanceof TouchEvent){var t=e.changedTouches[e.changedTouches.length-1];return{left:t.clientX,top:t.clientY}}}function h(){var t=e.getBoundingClientRect();if(t.height&&t.width)return{left:t.left,top:t.top}}function f(e){var o=A(),n=t&&t.value&&t.value.initialPosition,i=o.initialPosition,r=h(),a=n||i||r;z({initialPosition:a,startDragPosition:a,currentDragPosition:a,initialMousePos:M(e)}),u()}function z(e){var t=A(),o=i(i({},t),e);c.setAttribute("draggable-state",JSON.stringify(o))}function O(e,o){var r=A(),a={x:0,y:0};r.currentDragPosition&&r.startDragPosition&&(a.x=r.currentDragPosition.left-r.startDragPosition.left,a.y=r.currentDragPosition.top-r.startDragPosition.top);var s=r.currentDragPosition&&i({},r.currentDragPosition);o===n.End?t.value&&t.value.onDragEnd&&r&&t.value.onDragEnd(a,s,e):o===n.Start?t.value&&t.value.onDragStart&&r&&t.value.onDragStart(a,s,e):t.value&&t.value.onPositionChange&&r&&t.value.onPositionChange(a,s,e)}function A(){return JSON.parse(c.getAttribute("draggable-state"))||{}}}}},be02:function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("6923"),p=o("3864"),l=o("7b39"),u=function(e){function t(t,o){var n=e.call(this)||this;return t.forEach(function(e){return n.register(e.actionKind,e.factory())}),o.forEach(function(e){return n.initializeActionHandler(e)}),n}return n(t,e),t.prototype.initializeActionHandler=function(e){e.initialize(this)},t=i([s.injectable(),a(0,s.multiInject(c.TYPES.ActionHandlerRegistration)),a(0,s.optional()),a(1,s.multiInject(c.TYPES.IActionHandlerInitializer)),a(1,s.optional()),r("design:paramtypes",[Array,Array])],t),t}(p.MultiInstanceRegistry);function b(e,t,o){if("function"===typeof o){if(!l.isInjectable(o))throw new Error("Action handlers should be @injectable: "+o.name);e.isBound(o)||e.bind(o).toSelf()}e.bind(c.TYPES.ActionHandlerRegistration).toDynamicValue(function(e){return{actionKind:t,factory:function(){return e.container.get(o)}}})}t.ActionHandlerRegistry=u,t.configureActionHandler=b},bee8:function(e,t,o){},c146:function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=o("987d"),r=function(){function e(e,t){void 0===t&&(t=i.easeInOut),this.context=e,this.ease=t}return e.prototype.start=function(){var e=this;return new Promise(function(t,o){var n=void 0,i=0,r=function(o){var a;i++,void 0===n?(n=o,a=0):a=o-n;var s=Math.min(1,a/e.context.duration),c=e.tween(e.ease(s),e.context);e.context.modelChanged.update(c),1===s?(e.context.logger.log(e,1e3*i/e.context.duration+" fps"),t(c)):e.context.syncer.onNextFrame(r)};if(e.context.syncer.isAvailable())e.context.syncer.onNextFrame(r);else{var a=e.tween(1,e.context);t(a)}})},e}();t.Animation=r;var a=function(e){function t(t,o,n,r){void 0===n&&(n=[]),void 0===r&&(r=i.easeInOut);var a=e.call(this,o,r)||this;return a.model=t,a.context=o,a.components=n,a.ease=r,a}return n(t,e),t.prototype.include=function(e){return this.components.push(e),this},t.prototype.tween=function(e,t){for(var o=0,n=this.components;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("dd02"),c=o("510b"),p=o("9757"),l=o("c146"),u=o("5eb6"),b=o("e1c6"),d=o("6923"),M=o("2f3a"),h=function(){function e(t,o,n){this.elementId=t,this.newViewport=o,this.animate=n,this.kind=e.KIND}return e.KIND="viewport",e}();t.SetViewportAction=h;var f=function(){function e(t){void 0===t&&(t=""),this.requestId=t,this.kind=e.KIND}return e.create=function(){return new e(c.generateRequestId())},e.KIND="getViewport",e}();t.GetViewportAction=f;var z=function(){function e(t,o,n){this.viewport=t,this.canvasBounds=o,this.responseId=n,this.kind=e.KIND}return e.KIND="viewportResult",e}();t.ViewportResult=z;var O=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o.newViewport=t.newViewport,o}var o;return n(t,e),o=t,t.prototype.execute=function(e){var t=e.root,o=t.index.getById(this.action.elementId);if(o&&u.isViewport(o)){if(this.element=o,this.oldViewport={scroll:this.element.scroll,zoom:this.element.zoom},this.action.animate)return new m(this.element,this.oldViewport,this.newViewport,e).start();this.element.scroll=this.newViewport.scroll,this.element.zoom=this.newViewport.zoom}return t},t.prototype.undo=function(e){return new m(this.element,this.newViewport,this.oldViewport,e).start()},t.prototype.redo=function(e){return new m(this.element,this.oldViewport,this.newViewport,e).start()},t.prototype.merge=function(e,t){return!this.action.animate&&e instanceof o&&this.element===e.element&&(this.newViewport=e.newViewport,!0)},t.KIND=h.KIND,t=o=i([b.injectable(),a(0,b.inject(d.TYPES.Action)),r("design:paramtypes",[h])],t),t}(p.MergeableCommand);t.SetViewportCommand=O;var A=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o}return n(t,e),t.prototype.retrieveResult=function(e){var t,o=e.root;return t=u.isViewport(o)?{scroll:o.scroll,zoom:o.zoom}:{scroll:s.ORIGIN_POINT,zoom:1},new z(t,o.canvasBounds,this.action.requestId)},t.KIND=f.KIND,t=i([a(0,b.inject(d.TYPES.Action)),r("design:paramtypes",[f])],t),t}(M.ModelRequestCommand);t.GetViewportCommand=A;var m=function(e){function t(t,o,n,i){var r=e.call(this,i)||this;return r.element=t,r.oldViewport=o,r.newViewport=n,r.context=i,r.zoomFactor=Math.log(n.zoom/o.zoom),r}return n(t,e),t.prototype.tween=function(e,t){return this.element.scroll={x:(1-e)*this.oldViewport.scroll.x+e*this.newViewport.scroll.x,y:(1-e)*this.oldViewport.scroll.y+e*this.newViewport.scroll.y},this.element.zoom=this.oldViewport.zoom*Math.exp(e*this.zoomFactor),t.root},t}(l.Animation);t.ViewportAnimation=m},c4e6:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("bcbd"),a=o("842c"),s=new n.ContainerModule(function(e,t,o){a.configureCommand({bind:e,isBound:o},r.SelectCommand),a.configureCommand({bind:e,isBound:o},r.SelectAllCommand),a.configureCommand({bind:e,isBound:o},r.GetSelectionCommand),e(i.TYPES.KeyListener).to(r.SelectKeyboardListener),e(i.TYPES.MouseListener).to(r.SelectMouseListener)});t.default=s},c4ec:function(e,t,o){var n=/([\w-]+)|=|(['"])([.\s\S]*?)\2/g,i=o("4047");e.exports=function(e){var t,o=0,r=!0,a={type:"tag",name:"",voidElement:!1,attrs:{},children:[]};return e.replace(n,function(n){if("="===n)return r=!0,void o++;r?0===o?((i[n]||"/"===e.charAt(e.length-2))&&(a.voidElement=!0),a.name=n):(a.attrs[t]=n.replace(/^['"]|['"]$/g,""),t=void 0):(t&&(a.attrs[t]=t),t=n),o++,r=!1}),a}},c51d:function(e,t,o){},c58e:function(e,t,o){},c5f4:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NAMED_TAG="named",t.NAME_TAG="name",t.UNMANAGED_TAG="unmanaged",t.OPTIONAL_TAG="optional",t.INJECT_TAG="inject",t.MULTI_INJECT_TAG="multi_inject",t.TAGGED="inversify:tagged",t.TAGGED_PROP="inversify:tagged_props",t.PARAM_TYPES="inversify:paramtypes",t.DESIGN_PARAM_TYPES="design:paramtypes",t.POST_CONSTRUCT="post_construct"},c612:function(e,t,o){"use strict";var n=o("8b1b"),i=o.n(n);i.a},c622:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("77d3"),i=function(){function e(e,t,o,i,r){this.id=n.id(),this.serviceIdentifier=e,this.parentContext=t,this.parentRequest=o,this.target=r,this.childRequests=[],this.bindings=Array.isArray(i)?i:[i],this.requestScope=null===o?new Map:null}return e.prototype.addChildRequest=function(t,o,n){var i=new e(t,this.parentContext,this,o,n);return this.childRequests.push(i),i},e}();t.Request=i},c661:function(e,t,o){"use strict";var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("e1c6"),r=function(){function e(){}return e.prototype.isAllowed=function(e){return!0},e=n([i.injectable()],e),e}();t.DefaultDiagramLocker=r},c7c3:function(e,t,o){"use strict";var n=o("3e33"),i=o.n(n);i.a},c807:function(e,t,o){"use strict";var n=o("1300"),i=o("e300"),r=o("183a"),a=o("4cdf"),s=o("0b2d"),c=o("9f5e"),p=o("a568"),l=o("1e8d"),u=o("cef7"),b=o("01d4"),d=o("06f8"),M=o("0af5"),h=o("f623"),f=o("f403"),z=o("4105"),O=o("3e6b"),A=o("5831"),m=o("a43f"),v=o("4a7d"),g=o("6c77"),y=0,q=1,_={MODIFYSTART:"modifystart",MODIFYEND:"modifyend"},W=function(e){function t(t,o,n){e.call(this,t),this.features=o,this.mapBrowserEvent=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(u["a"]),R=function(e){function t(t){var o;if(e.call(this,t),this.condition_=t.condition?t.condition:d["h"],this.defaultDeleteCondition_=function(e){return Object(d["a"])(e)&&Object(d["j"])(e)},this.deleteCondition_=t.deleteCondition?t.deleteCondition:this.defaultDeleteCondition_,this.insertVertexCondition_=t.insertVertexCondition?t.insertVertexCondition:d["c"],this.vertexFeature_=null,this.vertexSegments_=null,this.lastPixel_=[0,0],this.ignoreNextSingleClick_=!1,this.modified_=!1,this.rBush_=new v["a"],this.pixelTolerance_=void 0!==t.pixelTolerance?t.pixelTolerance:10,this.snappedToVertex_=!1,this.changingFeature_=!1,this.dragSegments_=[],this.overlay_=new O["a"]({source:new A["a"]({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.style?t.style:S(),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.SEGMENT_WRITERS_={Point:this.writePointGeometry_,LineString:this.writeLineStringGeometry_,LinearRing:this.writeLineStringGeometry_,Polygon:this.writePolygonGeometry_,MultiPoint:this.writeMultiPointGeometry_,MultiLineString:this.writeMultiLineStringGeometry_,MultiPolygon:this.writeMultiPolygonGeometry_,Circle:this.writeCircleGeometry_,GeometryCollection:this.writeGeometryCollectionGeometry_},this.source_=null,t.source?(this.source_=t.source,o=new i["a"](this.source_.getFeatures()),Object(l["a"])(this.source_,m["a"].ADDFEATURE,this.handleSourceAdd_,this),Object(l["a"])(this.source_,m["a"].REMOVEFEATURE,this.handleSourceRemove_,this)):o=t.features,!o)throw new Error("The modify interaction requires features or a source");this.features_=o,this.features_.forEach(this.addFeature_.bind(this)),Object(l["a"])(this.features_,r["a"].ADD,this.handleFeatureAdd_,this),Object(l["a"])(this.features_,r["a"].REMOVE,this.handleFeatureRemove_,this),this.lastPointerEvent_=null}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.addFeature_=function(e){var t=e.getGeometry();t&&t.getType()in this.SEGMENT_WRITERS_&&this.SEGMENT_WRITERS_[t.getType()].call(this,e,t);var o=this.getMap();o&&o.isRendered()&&this.getActive()&&this.handlePointerAtPixel_(this.lastPixel_,o),Object(l["a"])(e,b["a"].CHANGE,this.handleFeatureChange_,this)},t.prototype.willModifyFeatures_=function(e){this.modified_||(this.modified_=!0,this.dispatchEvent(new W(_.MODIFYSTART,this.features_,e)))},t.prototype.removeFeature_=function(e){this.removeFeatureSegmentData_(e),this.vertexFeature_&&0===this.features_.getLength()&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),Object(l["c"])(e,b["a"].CHANGE,this.handleFeatureChange_,this)},t.prototype.removeFeatureSegmentData_=function(e){var t=this.rBush_,o=[];t.forEach(function(t){e===t.feature&&o.push(t)});for(var n=o.length-1;n>=0;--n)t.remove(o[n])},t.prototype.setActive=function(t){this.vertexFeature_&&!t&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),e.prototype.setActive.call(this,t)},t.prototype.setMap=function(t){this.overlay_.setMap(t),e.prototype.setMap.call(this,t)},t.prototype.getOverlay=function(){return this.overlay_},t.prototype.handleSourceAdd_=function(e){e.feature&&this.features_.push(e.feature)},t.prototype.handleSourceRemove_=function(e){e.feature&&this.features_.remove(e.feature)},t.prototype.handleFeatureAdd_=function(e){this.addFeature_(e.element)},t.prototype.handleFeatureChange_=function(e){if(!this.changingFeature_){var t=e.target;this.removeFeature_(t),this.addFeature_(t)}},t.prototype.handleFeatureRemove_=function(e){var t=e.element;this.removeFeature_(t)},t.prototype.writePointGeometry_=function(e,t){var o=t.getCoordinates(),n={feature:e,geometry:t,segment:[o,o]};this.rBush_.insert(t.getExtent(),n)},t.prototype.writeMultiPointGeometry_=function(e,t){for(var o=t.getCoordinates(),n=0,i=o.length;n=0;--m)this.insertVertex_.apply(this,i[m])}return!!this.vertexFeature_},t.prototype.handleUpEvent=function(e){for(var t=this.dragSegments_.length-1;t>=0;--t){var o=this.dragSegments_[t][0],n=o.geometry;if(n.getType()===h["a"].CIRCLE){var i=n.getCenter(),r=o.featureSegments[0],a=o.featureSegments[1];r.segment[0]=r.segment[1]=i,a.segment[0]=a.segment[1]=i,this.rBush_.update(Object(M["m"])(i),r),this.rBush_.update(n.getExtent(),a)}else this.rBush_.update(Object(M["b"])(o.segment),o)}return this.modified_&&(this.dispatchEvent(new W(_.MODIFYEND,this.features_,e)),this.modified_=!1),!1},t.prototype.handlePointerMove_=function(e){this.lastPixel_=e.pixel,this.handlePointerAtPixel_(e.pixel,e.map)},t.prototype.handlePointerAtPixel_=function(e,t){var o=t.getCoordinateFromPixel(e),i=function(e,t){return L(o,e)-L(o,t)},r=Object(M["c"])(Object(M["m"])(o),t.getView().getResolution()*this.pixelTolerance_),a=this.rBush_,s=a.getInExtent(r);if(s.length>0){s.sort(i);var c=s[0],l=c.segment,u=C(o,c),b=t.getPixelFromCoordinate(u),d=Object(p["d"])(e,b);if(d<=this.pixelTolerance_){var f={};if(c.geometry.getType()===h["a"].CIRCLE&&c.index===q)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(u);else{var z=t.getPixelFromCoordinate(l[0]),O=t.getPixelFromCoordinate(l[1]),A=Object(p["h"])(b,z),m=Object(p["h"])(b,O);d=Math.sqrt(Math.min(A,m)),this.snappedToVertex_=d<=this.pixelTolerance_,this.snappedToVertex_&&(u=A>m?l[1]:l[0]),this.createOrUpdateVertexFeature_(u);for(var v=1,g=s.length;v=0;--r)o=b[r],l=o[0],u=Object(n["c"])(l.feature),l.depth&&(u+="-"+l.depth.join("-")),u in d||(d[u]={}),0===o[1]?(d[u].right=l,d[u].index=l.index):1==o[1]&&(d[u].left=l,d[u].index=l.index+1);for(u in d){switch(p=d[u].right,s=d[u].left,a=d[u].index,c=a-1,l=void 0!==s?s:p,c<0&&(c=0),i=l.geometry,t=i.getCoordinates(),e=t,f=!1,i.getType()){case h["a"].MULTI_LINE_STRING:t[l.depth[0]].length>2&&(t[l.depth[0]].splice(a,1),f=!0);break;case h["a"].LINE_STRING:t.length>2&&(t.splice(a,1),f=!0);break;case h["a"].MULTI_POLYGON:e=e[l.depth[1]];case h["a"].POLYGON:e=e[l.depth[0]],e.length>4&&(a==e.length-1&&(a=0),e.splice(a,1),f=!0,0===a&&(e.pop(),e.push(e[0]),c=e.length-1));break;default:}if(f){this.setGeometryCoordinates_(i,t);var z=[];if(void 0!==s&&(this.rBush_.remove(s),z.push(s.segment[0])),void 0!==p&&(this.rBush_.remove(p),z.push(p.segment[1])),void 0!==s&&void 0!==p){var O={depth:l.depth,feature:l.feature,geometry:l.geometry,index:c,segment:z};this.rBush_.insert(Object(M["b"])(O.segment),O)}this.updateSegmentIndices_(i,a,l.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),b.length=0}}return f},t.prototype.setGeometryCoordinates_=function(e,t){this.changingFeature_=!0,e.setCoordinates(t),this.changingFeature_=!1},t.prototype.updateSegmentIndices_=function(e,t,o,n){this.rBush_.forEachInExtent(e.getExtent(),function(i){i.geometry===e&&(void 0===o||void 0===i.depth||Object(c["b"])(i.depth,o))&&i.index>t&&(i.index+=n)})},t}(z["b"]);function w(e,t){return e.index-t.index}function L(e,t){var o=t.geometry;if(o.getType()===h["a"].CIRCLE){var n=o;if(t.index===q){var i=Object(p["h"])(n.getCenter(),e),r=Math.sqrt(i)-n.getRadius();return r*r}}return Object(p["i"])(e,t.segment)}function C(e,t){var o=t.geometry;return o.getType()===h["a"].CIRCLE&&t.index===q?o.getClosestPoint(e):Object(p["b"])(e,t.segment)}function S(){var e=Object(g["b"])();return function(t,o){return e[h["a"].POINT]}}t["a"]=R},c862:function(e,t,o){},c8c0:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){this.parentContext=e,this.rootRequest=t}return e}();t.Plan=n},c95e:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("f4cb"),a=o("0bd8"),s=o("842c"),c=o("be02"),p=o("ed4f"),l=o("c444"),u=o("559d"),b=new n.ContainerModule(function(e,t,o){e(i.TYPES.PopupVNodePostprocessor).to(a.PopupPositionUpdater).inSingletonScope(),e(i.TYPES.MouseListener).to(r.HoverMouseListener),e(i.TYPES.PopupMouseListener).to(r.PopupHoverMouseListener),e(i.TYPES.KeyListener).to(r.HoverKeyListener),e(i.TYPES.HoverState).toConstantValue({mouseOverTimer:void 0,mouseOutTimer:void 0,popupOpen:!1,previousPopupElement:void 0}),e(r.ClosePopupActionHandler).toSelf().inSingletonScope();var n={bind:e,isBound:o};s.configureCommand(n,r.HoverFeedbackCommand),s.configureCommand(n,r.SetPopupModelCommand),c.configureActionHandler(n,r.SetPopupModelCommand.KIND,r.ClosePopupActionHandler),c.configureActionHandler(n,p.FitToScreenCommand.KIND,r.ClosePopupActionHandler),c.configureActionHandler(n,p.CenterCommand.KIND,r.ClosePopupActionHandler),c.configureActionHandler(n,l.SetViewportCommand.KIND,r.ClosePopupActionHandler),c.configureActionHandler(n,u.MoveCommand.KIND,r.ClosePopupActionHandler)});t.default=b},c998:function(e,t,o){"use strict";var n=o("a16f"),i=o.n(n);i.a},cb6e:function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__awaiter||function(e,t,o,n){function i(e){return e instanceof o?e:new o(function(t){t(e)})}return new(o||(o=Promise))(function(o,r){function a(e){try{c(n.next(e))}catch(e){r(e)}}function s(e){try{c(n["throw"](e))}catch(e){r(e)}}function c(e){e.done?o(e.value):i(e.value).then(a,s)}c((n=n.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){var o,n,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(e){return function(t){return c([e,t])}}function c(r){if(o)throw new TypeError("Generator is already executing.");while(a)try{if(o=1,n&&(i=2&r[0]?n["return"]:r[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,r[1])).done)return i;switch(n=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,n=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]=0})]}})})},t.prototype.getViewport=function(){return a(this,void 0,void 0,function(){var e;return s(this,function(t){switch(t.label){case 0:return[4,this.actionDispatcher.request(f.GetViewportAction.create())];case 1:return e=t.sent(),[2,{scroll:e.viewport.scroll,zoom:e.viewport.zoom,canvasBounds:e.canvasBounds}]}})})},t.prototype.submitModel=function(e,t,o){return a(this,void 0,void 0,function(){var n,i;return s(this,function(r){switch(r.label){case 0:return this.viewerOptions.needsClientLayout?[4,this.actionDispatcher.request(h.RequestBoundsAction.create(e))]:[3,3];case 1:return n=r.sent(),i=this.computedBoundsApplicator.apply(this.currentRoot,n),[4,this.doSubmitModel(e,!0,o,i)];case 2:return r.sent(),[3,5];case 3:return[4,this.doSubmitModel(e,t,o)];case 4:r.sent(),r.label=5;case 5:return[2]}})})},t.prototype.doSubmitModel=function(e,t,o,n){return a(this,void 0,void 0,function(){var i,r,a,c,p;return s(this,function(s){switch(s.label){case 0:if(void 0===this.layoutEngine)return[3,6];s.label=1;case 1:return s.trys.push([1,5,,6]),i=this.layoutEngine.layout(e,n),i instanceof Promise?[4,i]:[3,3];case 2:return e=s.sent(),[3,4];case 3:void 0!==i&&(e=i),s.label=4;case 4:return[3,6];case 5:return r=s.sent(),this.logger.error(this,r.toString(),r.stack),[3,6];case 6:return a=this.lastSubmittedModelType,this.lastSubmittedModelType=e.type,o&&o.kind===u.RequestModelAction.KIND&&o.requestId?(c=o,[4,this.actionDispatcher.dispatch(new u.SetModelAction(e,c.requestId))]):[3,8];case 7:return s.sent(),[3,12];case 8:return t&&e.type===a?(p=Array.isArray(t)?t:e,[4,this.actionDispatcher.dispatch(new m.UpdateModelAction(p,!0,o))]):[3,10];case 9:return s.sent(),[3,12];case 10:return[4,this.actionDispatcher.dispatch(new u.SetModelAction(e))];case 11:s.sent(),s.label=12;case 12:return[2]}})})},t.prototype.applyMatches=function(e){var t=this.currentRoot;return A.applyMatches(t,e),this.submitModel(t,e)},t.prototype.addElements=function(e){for(var t=[],o=0,n=e;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=o("e45b"),r=o("e1c6"),a=o("3623"),s=function(){function e(){}return e.prototype.decorate=function(e,t){if(t.cssClasses)for(var o=0,n=t.cssClasses;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("510b"),p=o("9757"),l=o("6923"),u=o("3b4c"),b=o("1417"),d=o("b669"),M=o("4c18"),h=o("e629"),f=o("cc26"),z=function(){function e(t){this.labelId=t,this.kind=e.KIND}return e.KIND="EditLabel",e}();function O(e){return c.isAction(e)&&e.kind===z.KIND&&"labelId"in e}t.EditLabelAction=z,t.isEditLabelAction=O;var A=function(){function e(t,o){this.labelId=t,this.text=o,this.kind=e.KIND}return e.KIND="applyLabelEdit",e}();t.ApplyLabelEditAction=A;var m=function(){function e(){}return e}();t.ResolvedLabelEdit=m;var v=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o}return n(t,e),t.prototype.execute=function(e){var t=e.root.index,o=t.getById(this.action.labelId);return o&&f.isEditableLabel(o)&&(this.resolvedLabelEdit={label:o,oldLabel:o.text,newLabel:this.action.text},o.text=this.action.text),e.root},t.prototype.undo=function(e){return this.resolvedLabelEdit&&(this.resolvedLabelEdit.label.text=this.resolvedLabelEdit.oldLabel),e.root},t.prototype.redo=function(e){return this.resolvedLabelEdit&&(this.resolvedLabelEdit.label.text=this.resolvedLabelEdit.newLabel),e.root},t.KIND=A.KIND,t=i([a(0,s.inject(l.TYPES.Action)),r("design:paramtypes",[A])],t),t}(p.Command);t.ApplyLabelEditCommand=v;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.doubleClick=function(e,t){var o=q(e);return o?[new z(o.id)]:[]},t}(u.MouseListener);t.EditLabelMouseListener=g;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.keyDown=function(e,t){if(d.matchesKeystroke(t,"F2")){var o=h.toArray(e.index.all().filter(function(e){return M.isSelectable(e)&&e.selected})).map(q).filter(function(e){return void 0!==e});if(1===o.length)return[new z(o[0].id)]}return[]},t}(b.KeyListener);function q(e){return f.isEditableLabel(e)?e:f.isWithEditableLabel(e)&&e.editableLabel?e.editableLabel:void 0}t.EditLabelKeyListener=y,t.getEditableLabel=q},ce70:function(e,t,o){},cf13:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this.str=e}return e.prototype.startsWith=function(e){return 0===this.str.indexOf(e)},e.prototype.endsWith=function(e){var t="",o=e.split("").reverse().join("");return t=this.str.split("").reverse().join(""),this.startsWith.call({str:t},o)},e.prototype.contains=function(e){return-1!==this.str.indexOf(e)},e.prototype.equals=function(e){return this.str===e},e.prototype.value=function(){return this.str},e}();t.QueryableString=n},cf61:function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("dd02"),p=o("c146"),l=o("9757"),u=o("e7fa"),b=o("3a92"),d=o("559d"),M=o("7d36"),h=o("a0af"),f=o("66f9"),z=o("3b62"),O=o("4c18"),A=o("d084"),m=o("0f4c"),v=o("6923"),g=o("5eb6"),y=o("168d"),q=o("3585"),_=function(){function e(t,o,n){void 0===o&&(o=!0),this.animate=o,this.cause=n,this.kind=e.KIND,void 0!==t.id?this.newRoot=t:this.matches=t}return e.KIND="updateModel",e}();t.UpdateModelAction=_;var W=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o}return n(t,e),t.prototype.execute=function(e){var t;return void 0!==this.action.newRoot?t=e.modelFactory.createRoot(this.action.newRoot):(t=e.modelFactory.createRoot(e.root),void 0!==this.action.matches&&this.applyMatches(t,this.action.matches,e)),this.oldRoot=e.root,this.newRoot=t,this.performUpdate(this.oldRoot,this.newRoot,e)},t.prototype.performUpdate=function(e,t,o){if(void 0!==this.action.animate&&!this.action.animate||e.id!==t.id)return e.type===t.type&&c.isValidDimension(e.canvasBounds)&&(t.canvasBounds=e.canvasBounds),g.isViewport(e)&&g.isViewport(t)&&(t.zoom=e.zoom,t.scroll=e.scroll),t;var n=void 0;if(void 0===this.action.matches){var i=new A.ModelMatcher;n=i.match(e,t)}else n=this.convertToMatchResult(this.action.matches,e,t);var r=this.computeAnimation(t,n,o);return r instanceof p.Animation?r.start():r},t.prototype.applyMatches=function(e,t,o){for(var n=e.index,i=0,r=t;i=2?new p.CompoundAnimation(e,o,r):1===r.length?r[0]:e},t.prototype.updateElement=function(e,t,o){if(h.isLocateable(e)&&h.isLocateable(t)){var n=e.position,i=t.position;c.almostEquals(n.x,i.x)&&c.almostEquals(n.y,i.y)||(void 0===o.moves&&(o.moves=[]),o.moves.push({element:t,fromPosition:n,toPosition:i}),t.position=n)}f.isSizeable(e)&&f.isSizeable(t)&&(c.isValidDimension(t.bounds)?c.almostEquals(e.bounds.width,t.bounds.width)&&c.almostEquals(e.bounds.height,t.bounds.height)||(void 0===o.resizes&&(o.resizes=[]),o.resizes.push({element:t,fromDimension:{width:e.bounds.width,height:e.bounds.height},toDimension:{width:t.bounds.width,height:t.bounds.height}})):t.bounds={x:t.bounds.x,y:t.bounds.y,width:e.bounds.width,height:e.bounds.height}),e instanceof q.SRoutableElement&&t instanceof q.SRoutableElement&&this.edgeRouterRegistry&&(void 0===o.edgeMementi&&(o.edgeMementi=[]),o.edgeMementi.push({edge:t,before:this.takeSnapshot(e),after:this.takeSnapshot(t)})),O.isSelectable(e)&&O.isSelectable(t)&&(t.selected=e.selected),e instanceof b.SModelRoot&&t instanceof b.SModelRoot&&(t.canvasBounds=e.canvasBounds),e instanceof z.ViewportRootElement&&t instanceof z.ViewportRootElement&&(t.scroll=e.scroll,t.zoom=e.zoom)},t.prototype.takeSnapshot=function(e){var t=this.edgeRouterRegistry.get(e.routerKind);return t.takeSnapshot(e)},t.prototype.createAnimations=function(e,t,o){var n=[];if(e.fades.length>0&&n.push(new u.FadeAnimation(t,e.fades,o,!0)),void 0!==e.moves&&e.moves.length>0){for(var i=new Map,r=0,a=e.moves;r0){for(var c=new Map,p=0,l=e.resizes;p0&&n.push(new d.MorphEdgesAnimation(t,e.edgeMementi,o,!1)),n},t.prototype.undo=function(e){return this.performUpdate(this.newRoot,this.oldRoot,e)},t.prototype.redo=function(e){return this.performUpdate(this.oldRoot,this.newRoot,e)},t.KIND=_.KIND,i([s.inject(y.EdgeRouterRegistry),s.optional(),r("design:type",y.EdgeRouterRegistry)],t.prototype,"edgeRouterRegistry",void 0),t=i([s.injectable(),a(0,s.inject(v.TYPES.Action)),r("design:paramtypes",[_])],t),t}(l.Command);t.UpdateModelCommand=W},cf611:function(e,t,o){"use strict";var n=o("8e08"),i=o.n(n);i.a},cf81:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e34e"),i=o("451f"),r=function(){function e(e){this._binding=e}return e.prototype.when=function(e){return this._binding.constraint=e,new n.BindingOnSyntax(this._binding)},e.prototype.whenTargetNamed=function(e){return this._binding.constraint=i.namedConstraint(e),new n.BindingOnSyntax(this._binding)},e.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(e){var t=null!==e.target&&!e.target.isNamed()&&!e.target.isTagged();return t},new n.BindingOnSyntax(this._binding)},e.prototype.whenTargetTagged=function(e,t){return this._binding.constraint=i.taggedConstraint(e)(t),new n.BindingOnSyntax(this._binding)},e.prototype.whenInjectedInto=function(e){return this._binding.constraint=function(t){return i.typeConstraint(e)(t.parentRequest)},new n.BindingOnSyntax(this._binding)},e.prototype.whenParentNamed=function(e){return this._binding.constraint=function(t){return i.namedConstraint(e)(t.parentRequest)},new n.BindingOnSyntax(this._binding)},e.prototype.whenParentTagged=function(e,t){return this._binding.constraint=function(o){return i.taggedConstraint(e)(t)(o.parentRequest)},new n.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorIs=function(e){return this._binding.constraint=function(t){return i.traverseAncerstors(t,i.typeConstraint(e))},new n.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorIs=function(e){return this._binding.constraint=function(t){return!i.traverseAncerstors(t,i.typeConstraint(e))},new n.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorNamed=function(e){return this._binding.constraint=function(t){return i.traverseAncerstors(t,i.namedConstraint(e))},new n.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorNamed=function(e){return this._binding.constraint=function(t){return!i.traverseAncerstors(t,i.namedConstraint(e))},new n.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorTagged=function(e,t){return this._binding.constraint=function(o){return i.traverseAncerstors(o,i.taggedConstraint(e)(t))},new n.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorTagged=function(e,t){return this._binding.constraint=function(o){return!i.traverseAncerstors(o,i.taggedConstraint(e)(t))},new n.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorMatches=function(e){return this._binding.constraint=function(t){return i.traverseAncerstors(t,e)},new n.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorMatches=function(e){return this._binding.constraint=function(t){return!i.traverseAncerstors(t,e)},new n.BindingOnSyntax(this._binding)},e}();t.BindingWhenSyntax=r},cf98:function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=o("3a92"),r=o("3b4c"),a=o("3623"),s=o("c444"),c=o("5eb6"),p=o("a0af"),l=o("3585");function u(e){return"scroll"in e}t.isScrollable=u;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.mouseDown=function(e,t){var o=a.findParentByFeature(e,p.isMoveable);if(void 0===o&&!(e instanceof l.SRoutingHandle)){var n=a.findParentByFeature(e,c.isViewport);this.lastScrollPosition=n?{x:t.pageX,y:t.pageY}:void 0}return[]},t.prototype.mouseMove=function(e,t){if(0===t.buttons)this.mouseUp(e,t);else if(this.lastScrollPosition){var o=a.findParentByFeature(e,c.isViewport);if(o){var n=(t.pageX-this.lastScrollPosition.x)/o.zoom,i=(t.pageY-this.lastScrollPosition.y)/o.zoom,r={scroll:{x:o.scroll.x-n,y:o.scroll.y-i},zoom:o.zoom};return this.lastScrollPosition={x:t.pageX,y:t.pageY},[new s.SetViewportAction(o.id,r,!1)]}}return[]},t.prototype.mouseEnter=function(e,t){return e instanceof i.SModelRoot&&0===t.buttons&&this.mouseUp(e,t),[]},t.prototype.mouseUp=function(e,t){return this.lastScrollPosition=void 0,[]},t}(r.MouseListener);t.ScrollMouseListener=b},d084:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("3a92");function i(e,t){for(var o in e)e.hasOwnProperty(o)&&t(o,e[o])}t.forEachMatch=i;var r=function(){function e(){}return e.prototype.match=function(e,t){var o={};return this.matchLeft(e,o),this.matchRight(t,o),o},e.prototype.matchLeft=function(e,t,o){var i=t[e.id];if(void 0!==i?(i.left=e,i.leftParentId=o):(i={left:e,leftParentId:o},t[e.id]=i),n.isParent(e))for(var r=0,a=e.children;r=0&&(void 0!==a.right&&a.leftParentId===a.rightParentId?(c.children.splice(p,1,a.right),s=!0):c.children.splice(p,1)),o.remove(a.left)}}if(!s&&void 0!==a.right&&void 0!==a.rightParentId){var l=o.getById(a.rightParentId);void 0!==l&&(void 0===l.children&&(l.children=[]),l.children.push(a.right))}}}t.ModelMatcher=r,t.applyMatches=a},d14a:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("e1c6"),i=o("6923"),r=o("a406"),a=o("0a28"),s=new n.ContainerModule(function(e){e(a.CommandPalette).toSelf().inSingletonScope(),e(i.TYPES.IUIExtension).toService(a.CommandPalette),e(i.TYPES.KeyListener).to(a.CommandPaletteKeyListener),e(r.CommandPaletteActionProviderRegistry).toSelf().inSingletonScope(),e(i.TYPES.ICommandPaletteActionProviderRegistry).toService(r.CommandPaletteActionProviderRegistry)});t.default=s},d17b:function(e,t,o){e.exports=o("e372").Transform},d18c:function(e,t,o){"use strict";var n=o("943d"),i=o.n(n);i.a},d204:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("1979"),i=o("66d7");function r(e,t){return function(o,r,a){var s=new n.Metadata(e,t);"number"===typeof a?i.tagParameter(o,r,a,s):i.tagProperty(o,r,s)}}t.tagged=r},d485:function(e,t,o){e.exports=r;var n=o("faa1").EventEmitter,i=o("3fb5");function r(){n.call(this)}i(r,n),r.Readable=o("e372"),r.Writable=o("2c63"),r.Duplex=o("0960"),r.Transform=o("d17b"),r.PassThrough=o("c2ae"),r.Stream=r,r.prototype.pipe=function(e,t){var o=this;function i(t){e.writable&&!1===e.write(t)&&o.pause&&o.pause()}function r(){o.readable&&o.resume&&o.resume()}o.on("data",i),e.on("drain",r),e._isStdio||t&&!1===t.end||(o.on("end",s),o.on("close",c));var a=!1;function s(){a||(a=!0,e.end())}function c(){a||(a=!0,"function"===typeof e.destroy&&e.destroy())}function p(e){if(l(),0===n.listenerCount(this,"error"))throw e}function l(){o.removeListener("data",i),e.removeListener("drain",r),o.removeListener("end",s),o.removeListener("close",c),o.removeListener("error",p),e.removeListener("error",p),o.removeListener("end",l),o.removeListener("close",l),e.removeListener("close",l)}return o.on("error",p),e.on("error",p),o.on("end",l),o.on("close",l),e.on("close",l),e.emit("pipe",o),e}},d60a:function(e,t){e.exports=function(e){return e&&"object"===typeof e&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},d675:function(e,t,o){},d6e2:function(e,t,o){"use strict";var n=o("bab1"),i=o.n(n);i.a},d741:function(e,t,o){},d752:function(e,t,o){var n=o("7726").parseFloat,i=o("aa77").trim;e.exports=1/n(o("fdef")+"-0")!==-1/0?function(e){var t=i(String(e),3),o=n(t);return 0===o&&"-"==t.charAt(0)?-0:o}:n},d8f5:function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o("e1c6"),s=o("dd02"),c=o("3585"),p=o("869e"),l=o("b7b8"),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var o;return n(t,e),o=t,Object.defineProperty(t.prototype,"kind",{get:function(){return o.KIND},enumerable:!0,configurable:!0}),t.prototype.getOptions=function(e){return{minimalPointDistance:2,removeAngleThreshold:.1,standardDistance:20,selfEdgeOffset:.25}},t.prototype.route=function(e){var t,o,n=e.source,i=e.target;if(void 0===n||void 0===i)return[];var r=this.getOptions(e),a=e.routingPoints.length>0?e.routingPoints:[];this.cleanupRoutingPoints(e,a,!1,!1);var c=void 0!==a?a.length:0;if(0===c){var p=s.center(i.bounds);t=this.getTranslatedAnchor(n,p,i.parent,e,e.sourceAnchorCorrection);var l=s.center(n.bounds);o=this.getTranslatedAnchor(i,l,n.parent,e,e.targetAnchorCorrection)}else{var u=a[0];t=this.getTranslatedAnchor(n,u,e.parent,e,e.sourceAnchorCorrection);var b=a[c-1];o=this.getTranslatedAnchor(i,b,e.parent,e,e.targetAnchorCorrection)}var d=[];d.push({kind:"source",x:t.x,y:t.y});for(var M=0;M0&&M=r.minimalPointDistance+(e.sourceAnchorCorrection||0)||M===c-1&&s.maxDistance(h,o)>=r.minimalPointDistance+(e.targetAnchorCorrection||0))&&d.push({kind:"linear",x:h.x,y:h.y,pointIndex:M})}return d.push({kind:"target",x:o.x,y:o.y}),this.filterEditModeHandles(d,e,r)},t.prototype.filterEditModeHandles=function(e,t,o){if(0===t.children.length)return e;var n=0,i=function(){var i=e[n];if(void 0!==i.pointIndex){var r=t.children.find(function(e){return e instanceof c.SRoutingHandle&&"junction"===e.kind&&e.pointIndex===i.pointIndex});if(void 0!==r&&r.editMode&&n>0&&nr)&&e.pointIndex++}),o.addHandle(e,"line","volatile-routing-point",r),o.addHandle(e,"line","volatile-routing-point",r+1),r++),r>=0&&r-1?setImmediate:i.nextTick;A.WritableState=O;var c=Object.create(o("3a7c"));c.inherits=o("3fb5");var p={deprecate:o("b7d1")},l=o("429b"),u=o("8707").Buffer,b=("undefined"!==typeof n?n:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};function d(e){return u.from(e)}function M(e){return u.isBuffer(e)||e instanceof b}var h,f=o("4681");function z(){}function O(e,t){a=a||o("b19a"),e=e||{};var n=t instanceof a;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,s=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(s||0===s)?s:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var p=!1===e.decodeStrings;this.decodeStrings=!p,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){R(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}function A(e){if(a=a||o("b19a"),!h.call(A,this)&&!(this instanceof a))return new A(e);this._writableState=new O(e,this),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),l.call(this)}function m(e,t){var o=new Error("write after end");e.emit("error",o),i.nextTick(t,o)}function v(e,t,o,n){var r=!0,a=!1;return null===o?a=new TypeError("May not write null values to stream"):"string"===typeof o||void 0===o||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),i.nextTick(n,a),r=!1),r}function g(e,t,o){return e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=u.from(t,o)),t}function y(e,t,o,n,i,r){if(!o){var a=g(t,n,i);n!==a&&(o=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var c=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(A.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),A.prototype._write=function(e,t,o){o(new Error("_write() is not implemented"))},A.prototype._writev=null,A.prototype.end=function(e,t,o){var n=this._writableState;"function"===typeof e?(o=e,e=null,t=null):"function"===typeof t&&(o=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||N(this,n,o)},Object.defineProperty(A.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),A.prototype.destroy=f.destroy,A.prototype._undestroy=f.undestroy,A.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,o("4362"),o("c8ba"))},dd02:function(e,t,o){"use strict";function n(e,t){return{x:e.x+t.x,y:e.y+t.y}}function i(e,t){return{x:e.x-t.x,y:e.y-t.y}}function r(e){return e.width>=0&&e.height>=0}function a(e){return"x"in e&&"y"in e&&"width"in e&&"height"in e}function s(e,o){if(!r(e))return r(o)?o:t.EMPTY_BOUNDS;if(!r(o))return e;var n=Math.min(e.x,o.x),i=Math.min(e.y,o.y),a=Math.max(e.x+(e.width>=0?e.width:0),o.x+(o.width>=0?o.width:0)),s=Math.max(e.y+(e.height>=0?e.height:0),o.y+(o.height>=0?o.height:0));return{x:n,y:i,width:a-n,height:s-i}}function c(e,t){return{x:e.x+t.x,y:e.y+t.y,width:e.width,height:e.height}}function p(e){return{x:e.x+(e.width>=0?.5*e.width:0),y:e.y+(e.height>=0?.5*e.height:0)}}function l(e,t){var o={x:e.x>t.x?t.x:e.x,y:e.y>t.y?t.y:e.y,width:Math.abs(t.x-e.x),height:Math.abs(t.y-e.y)};return p(o)}function u(e,t){return t.x>=e.x&&t.x<=e.x+e.width&&t.y>=e.y&&t.y<=e.y+e.height}function b(e,t){var o=t.x-e.x,n=t.y-e.y;return Math.sqrt(o*o+n*n)}function d(e,t){return Math.abs(t.x-e.x)+Math.abs(t.y-e.y)}function M(e,t){return Math.max(Math.abs(t.x-e.x),Math.abs(t.y-e.y))}function h(e){return Math.atan2(e.y,e.x)}function f(e,t){var o=Math.sqrt((e.x*e.x+e.y*e.y)*(t.x*t.x+t.y*t.y));if(isNaN(o)||0===o)return NaN;var n=e.x*t.x+e.y*t.y;return Math.acos(n/o)}function z(e,t,o){var r=i(t,e),a=O(r),s={x:a.x*o,y:a.y*o};return n(e,s)}function O(e){var o=A(e);return 0===o||1===o?t.ORIGIN_POINT:{x:e.x/o,y:e.y/o}}function A(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}function m(e){return 180*e/Math.PI}function v(e){return e*Math.PI/180}function g(e,t){return Math.abs(e-t)<.001}function y(e,t,o){return{x:(1-o)*e.x+o*t.x,y:(1-o)*e.y+o*t.y}}Object.defineProperty(t,"__esModule",{value:!0}),t.ORIGIN_POINT=Object.freeze({x:0,y:0}),t.add=n,t.subtract=i,t.EMPTY_DIMENSION=Object.freeze({width:-1,height:-1}),t.isValidDimension=r,t.EMPTY_BOUNDS=Object.freeze({x:0,y:0,width:-1,height:-1}),t.isBounds=a,t.combine=s,t.translate=c,t.center=p,t.centerOfLine=l,t.includes=u,function(e){e[e["left"]=0]="left",e[e["right"]=1]="right",e[e["up"]=2]="up",e[e["down"]=3]="down"}(t.Direction||(t.Direction={})),t.euclideanDistance=b,t.manhattanDistance=d,t.maxDistance=M,t.angleOfPoint=h,t.angleBetweenPoints=f,t.shiftTowards=z,t.normalize=O,t.magnitude=A,t.toDegrees=m,t.toRadians=v,t.almostEquals=g,t.linear=y;var q=function(){function e(e){this.bounds=e}return Object.defineProperty(e.prototype,"topPoint",{get:function(){return{x:this.bounds.x+this.bounds.width/2,y:this.bounds.y}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rightPoint",{get:function(){return{x:this.bounds.x+this.bounds.width,y:this.bounds.y+this.bounds.height/2}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomPoint",{get:function(){return{x:this.bounds.x+this.bounds.width/2,y:this.bounds.y+this.bounds.height}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"leftPoint",{get:function(){return{x:this.bounds.x,y:this.bounds.y+this.bounds.height/2}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topRightSideLine",{get:function(){return new _(this.topPoint,this.rightPoint)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topLeftSideLine",{get:function(){return new _(this.topPoint,this.leftPoint)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomRightSideLine",{get:function(){return new _(this.bottomPoint,this.rightPoint)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomLeftSideLine",{get:function(){return new _(this.bottomPoint,this.leftPoint)},enumerable:!0,configurable:!0}),e.prototype.closestSideLine=function(e){var t=p(this.bounds);return e.x>t.x?e.y>t.y?this.bottomRightSideLine:this.topRightSideLine:e.y>t.y?this.bottomLeftSideLine:this.topLeftSideLine},e}();t.Diamond=q;var _=function(){function e(e,t){this.p1=e,this.p2=t}return Object.defineProperty(e.prototype,"a",{get:function(){return this.p1.y-this.p2.y},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"b",{get:function(){return this.p2.x-this.p1.x},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"c",{get:function(){return this.p2.x*this.p1.y-this.p1.x*this.p2.y},enumerable:!0,configurable:!0}),e}();function W(e,t){return{x:(e.c*t.b-t.c*e.b)/(e.a*t.b-t.a*e.b),y:(e.a*t.c-t.a*e.c)/(e.a*t.b-t.a*e.b)}}t.PointToPointLine=_,t.intersection=W},dd7b:function(e,t,o){"use strict";function n(e,t,o,n,i){var r=void 0===t?void 0:t.key;return{sel:e,data:t,children:o,text:n,elm:i,key:r}}o.r(t);var i=n,r=Array.isArray;function a(e){return"string"===typeof e||"number"===typeof e}function s(e){return document.createElement(e)}function c(e,t){return document.createElementNS(e,t)}function p(e){return document.createTextNode(e)}function l(e){return document.createComment(e)}function u(e,t,o){e.insertBefore(t,o)}function b(e,t){e.removeChild(t)}function d(e,t){e.appendChild(t)}function M(e){return e.parentNode}function h(e){return e.nextSibling}function f(e){return e.tagName}function z(e,t){e.textContent=t}function O(e){return e.textContent}function A(e){return 1===e.nodeType}function m(e){return 3===e.nodeType}function v(e){return 8===e.nodeType}var g={createElement:s,createElementNS:c,createTextNode:p,createComment:l,insertBefore:u,removeChild:b,appendChild:d,parentNode:M,nextSibling:h,tagName:f,setTextContent:z,getTextContent:O,isElement:A,isText:m,isComment:v},y=g;function q(e,t,o){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==o&&void 0!==t)for(var n=0;n0?l:p.length,M=u>0?u:p.length,h=-1!==l||-1!==u?p.slice(0,Math.min(d,M)):p,f=e.elm=S(n)&&S(o=n.ns)?c.createElementNS(o,h):c.createElement(h);for(d0&&f.setAttribute("class",p.slice(M+1).replace(/\./g," ")),o=0;ou?(s=null==o[O+1]?null:o[O+1].elm,d(e,s,o,l,O,n)):h(e,t,p,u))}function z(e,t,o){var n,i;S(n=t.data)&&S(i=n.hook)&&S(n=i.prepatch)&&n(e,t);var r=t.elm=e.elm,a=e.children,p=t.children;if(e!==t){if(void 0!==t.data){for(n=0;n=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o("e1c6"),s=o("6923"),c=o("1590"),p=o("1417"),l=o("b669"),u=function(){function e(){this.tools=[],this.defaultTools=[],this.actives=[]}return Object.defineProperty(e.prototype,"managedTools",{get:function(){return this.defaultTools.concat(this.tools)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeTools",{get:function(){return this.actives},enumerable:!0,configurable:!0}),e.prototype.disableActiveTools=function(){this.actives.forEach(function(e){return e.disable()}),this.actives.splice(0,this.actives.length)},e.prototype.enableDefaultTools=function(){this.enable(this.defaultTools.map(function(e){return e.id}))},e.prototype.enable=function(e){var t=this;this.disableActiveTools();var o=e.map(function(e){return t.tool(e)});o.forEach(function(e){void 0!==e&&(e.enable(),t.actives.push(e))})},e.prototype.tool=function(e){return this.managedTools.find(function(t){return t.id===e})},e.prototype.registerDefaultTools=function(){for(var e=[],t=0;t=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var r=o("e1c6"),a=o("302f"),s=o("3a92"),c=o("3623"),p=o("47b7"),l=o("38e8"),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.defaultGraphFeatures=a.createFeatureSet(p.SGraph.DEFAULT_FEATURES),t.defaultNodeFeatures=a.createFeatureSet(p.SNode.DEFAULT_FEATURES),t.defaultPortFeatures=a.createFeatureSet(p.SPort.DEFAULT_FEATURES),t.defaultEdgeFeatures=a.createFeatureSet(p.SEdge.DEFAULT_FEATURES),t.defaultLabelFeatures=a.createFeatureSet(p.SLabel.DEFAULT_FEATURES),t.defaultCompartmentFeatures=a.createFeatureSet(p.SCompartment.DEFAULT_FEATURES),t.defaultButtonFeatures=a.createFeatureSet(l.SButton.DEFAULT_FEATURES),t}return n(t,e),t.prototype.createElement=function(e,t){var o;if(this.registry.hasKey(e.type)){var n=this.registry.get(e.type,void 0);if(!(n instanceof s.SChildElement))throw new Error("Element with type "+e.type+" was expected to be an SChildElement.");o=n}else this.isNodeSchema(e)?(o=new p.SNode,o.features=this.defaultNodeFeatures):this.isPortSchema(e)?(o=new p.SPort,o.features=this.defaultPortFeatures):this.isEdgeSchema(e)?(o=new p.SEdge,o.features=this.defaultEdgeFeatures):this.isLabelSchema(e)?(o=new p.SLabel,o.features=this.defaultLabelFeatures):this.isCompartmentSchema(e)?(o=new p.SCompartment,o.features=this.defaultCompartmentFeatures):this.isButtonSchema(e)?(o=new l.SButton,o.features=this.defaultButtonFeatures):o=new s.SChildElement;return this.initializeChild(o,e,t)},t.prototype.createRoot=function(e){var t;if(this.registry.hasKey(e.type)){var o=this.registry.get(e.type,void 0);if(!(o instanceof s.SModelRoot))throw new Error("Element with type "+e.type+" was expected to be an SModelRoot.");t=o}else this.isGraphSchema(e)?(t=new p.SGraph,t.features=this.defaultGraphFeatures):t=new s.SModelRoot;return this.initializeRoot(t,e)},t.prototype.isGraphSchema=function(e){return"graph"===c.getBasicType(e)},t.prototype.isNodeSchema=function(e){return"node"===c.getBasicType(e)},t.prototype.isPortSchema=function(e){return"port"===c.getBasicType(e)},t.prototype.isEdgeSchema=function(e){return"edge"===c.getBasicType(e)},t.prototype.isLabelSchema=function(e){return"label"===c.getBasicType(e)},t.prototype.isCompartmentSchema=function(e){return"comp"===c.getBasicType(e)},t.prototype.isButtonSchema=function(e){return"button"===c.getBasicType(e)},t=i([r.injectable()],t),t}(a.SModelFactory);t.SGraphFactory=u},e00b:function(e,t,o){"use strict";var n=function(){var e,t,o=this,n=o.$createElement,i=o._self._c||n;return null!==o.dataSummary?i("div",{staticClass:"hv-histogram-container",class:"hv-histogram-"+o.direction,style:(e={},e["min-"+o.colormapStyle]=Math.max(4*o.dataSummary.histogram.length,256)+"px",e),on:{mouseleave:function(e){o.tooltips&&o.setInfoShowed(null)}}},[o.isHorizontal?[o.hasHistogram?i("div",{staticClass:"hv-histogram",class:[null!==o.colormap?"k-with-colormap":""]},o._l(o.dataSummary.histogram,function(e,t){return i("div",{key:t,staticClass:"hv-histogram-col",style:{width:o.histogramWidth+"%"},on:{mouseover:function(e){o.infoShowed={index:t,categories:o.dataSummary.categories,values:o.dataSummary.histogram}}}},[i("q-tooltip",{attrs:{offset:[0,10],delay:500}},[o._v(o._s(o.infoShowed.values[o.infoShowed.index]))]),i("div",{staticClass:"hv-histogram-val",style:{height:o.getHistogramDataHeight(e)+"%"}})],1)})):i("div",{staticClass:"hv-histogram-nodata"},[o._v(o._s(o.$t("label.noHistogramData")))])]:o._e(),o.dataSummary.categories.length>0?i("div",{staticClass:"hv-colormap-container",class:["hv-colormap-container-"+o.direction]},[null!==o.colormap?i("div",{staticClass:"hv-colormap",class:["hv-colormap-"+o.direction],style:(t={},t["min-"+o.colormapStyle]=Math.min(o.colormap.colors.length,256)+"px",t)},o._l(o.colormap.colors,function(e,t){var n;return i("div",{key:t,staticClass:"hv-colormap-col",style:(n={},n[o.colormapStyle]=o.colormapWidth+"%",n["background-color"]=e,n),on:{mouseover:function(e){o.tooltips&&(o.infoShowed={index:t,categories:[],values:o.colormap.labels})}}})})):o._e(),o.legend&&o.dataSummary.categories.length>0?i("div",{staticClass:"hv-legend hv-categories full-height"},[o._l(o.dataSummary.categories,function(e,t){return i("div",{key:t,staticClass:"hv-category",style:{"line-height":o.calculateFontSize()+"px","font-size":o.calculateFontSize()+"px"}},[o.dataSummary.categorized?i("span",{class:{"hv-zero-category":0===o.dataSummary.histogram[t]}},[o._v(o._s(e))]):i("span",[o._v(o._s(e.split(" ")[0]))])])}),o.dataSummary.categorized?o._e():i("div",{staticClass:"hv-category"},[o._v(o._s(o.histogramMax))])],2):o._e()]):o._e(),o.tooltips?i("div",{staticClass:"hv-data-details-container",class:{"hv-details-nodata":!o.hasHistogram&&null==o.colormap}},[i("div",{staticClass:"hv-histogram-min hv-data-details",on:{mouseover:function(e){o.tooltipIt(e,"q-hmin"+o.id+"-"+o.infoShowed.index)}}},[o._v(o._s(o.histogramMin)+"\n "),i("q-tooltip",{directives:[{name:"show",rawName:"v-show",value:o.needTooltip("q-hmin"+o.id+"-"+o.infoShowed.index),expression:"needTooltip(`q-hmin${id}-${infoShowed.index}`)"}],staticClass:"hv-tooltip"},[o._v(o._s(o.histogramMin))])],1),-1===o.infoShowed.index?[i("div",{staticClass:"hv-data-nodetail hv-data-details"},[o._v(o._s(o.$t("label.noInfoValues")))])]:[i("div",{staticClass:"hv-data-value hv-data-details",on:{mouseover:function(e){o.tooltipIt(e,"q-hdata"+o.id+"-"+o.infoShowed.index)}}},[o._v("\n "+o._s(o.infoShowedText)+"\n "),i("q-tooltip",{directives:[{name:"show",rawName:"v-show",value:o.needTooltip("q-hdata"+o.id+"-"+o.infoShowed.index),expression:"needTooltip(`q-hdata${id}-${infoShowed.index}`)"}],staticClass:"hv-tooltip",attrs:{anchor:"center right",self:"center left",offset:[10,10]}},[o._v("\n "+o._s(o.infoShowedText)+"\n ")])],1)],i("div",{staticClass:"hv-histogram-max hv-data-details",on:{mouseover:function(e){o.tooltipIt(e,"q-hmax"+o.id+"-"+o.infoShowed.index)}}},[o._v(o._s(o.histogramMax)+"\n "),i("q-tooltip",{directives:[{name:"show",rawName:"v-show",value:o.needTooltip("q-hmax"+o.id+"-"+o.infoShowed.index),expression:"needTooltip(`q-hmax${id}-${infoShowed.index}`)"}],staticClass:"hv-tooltip"},[o._v(o._s(o.histogramMax))])],1)],2):o._e()],2):o._e()},i=[];n._withStripped=!0;var r=o("3156"),a=o.n(r),s=(o("ac6a"),o("cadf"),o("2cee")),c=o("7cca"),p=o("abcf"),l=p["b"].height,u={name:"HistogramViewer",props:{dataSummary:{type:Object,required:!0},colormap:Object,id:{type:String,default:""},direction:{type:String,default:"horizontal",validator:function(e){return-1!==["horizontal","vertical"].indexOf(e)}},tooltips:{type:Boolean,default:!0},legend:{type:Boolean,default:!1}},mixins:[s["a"]],data:function(){return{infoShowed:{index:-1,categories:[],values:[]}}},computed:{hasHistogram:function(){return this.dataSummary.histogram.length>0},isHorizontal:function(){return"horizontal"===this.direction},maxHistogramValue:function(){return Math.max.apply(null,this.dataSummary.histogram)},histogramWidth:function(){return 100/this.dataSummary.histogram.length},histogramMin:function(){return"NaN"===this.dataSummary.minValue||this.dataSummary.categorized?"":Math.round(100*this.dataSummary.minValue)/100},histogramMax:function(){return"NaN"===this.dataSummary.maxValue||this.dataSummary.categorized?"":Math.round(100*this.dataSummary.maxValue)/100},colormapWidth:function(){return 100/this.colormap.colors.length},infoShowedText:function(){var e;return this.infoShowed.categories.length>0&&(e=this.infoShowed.categories[this.infoShowed.index],"undefined"!==typeof e&&null!==e&&""!==e)?e:this.infoShowed.values.length>0&&(e=this.infoShowed.values[this.infoShowed.index],"undefined"!==typeof e&&null!==e&&""!==e)?e:""},colormapStyle:function(){return"horizontal"===this.direction?"width":"height"},categoryHeight:function(){return console.warn(100/this.dataSummary.categories.length+(this.dataSummary.categorized?0:2)),100/(this.dataSummary.categories.length+(this.dataSummary.categorized?0:2))}},methods:{getHistogramDataHeight:function(e){return 100*e/this.maxHistogramValue},setInfoShowed:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.infoShowed=null===e?{index:-1,categories:[],values:[]}:a()({},e)},calculateFontSize:function(){var e=document.querySelector(".hv-categories");if(e){var t=l(e);return Math.min(Math.max(t/this.dataSummary.categories.length,6),12)}return 12}},mounted:function(){this.$eventBus.$on(c["h"].SHOW_DATA_INFO,this.setInfoShowed)},beforeDestroy:function(){this.$eventBus.$off(c["h"].SHOW_DATA_INFO,this.setInfoShowed)}},b=u,d=(o("4c12"),o("2877")),M=Object(d["a"])(b,n,i,!1,null,null,null);M.options.__file="HistogramViewer.vue";t["a"]=M.exports},e0d9:function(e,t,o){"use strict";var n=o("ce70"),i=o.n(n);i.a},e1c6:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("c5f4");t.METADATA_KEY=n;var i=o("f457");t.Container=i.Container;var r=o("155f");t.BindingScopeEnum=r.BindingScopeEnum,t.BindingTypeEnum=r.BindingTypeEnum,t.TargetTypeEnum=r.TargetTypeEnum;var a=o("771c");t.AsyncContainerModule=a.AsyncContainerModule,t.ContainerModule=a.ContainerModule;var s=o("719e");t.injectable=s.injectable;var c=o("d204");t.tagged=c.tagged;var p=o("6730");t.named=p.named;var l=o("624f");t.inject=l.inject,t.LazyServiceIdentifer=l.LazyServiceIdentifer;var u=o("8d8c");t.optional=u.optional;var b=o("9f62");t.unmanaged=b.unmanaged;var d=o("8c88");t.multiInject=d.multiInject;var M=o("a1a5");t.targetName=M.targetName;var h=o("4a4f");t.postConstruct=h.postConstruct;var f=o("c278");t.MetadataReader=f.MetadataReader;var z=o("77d3");t.id=z.id;var O=o("66d7");t.decorate=O.decorate;var A=o("451f");t.traverseAncerstors=A.traverseAncerstors,t.taggedConstraint=A.taggedConstraint,t.namedConstraint=A.namedConstraint,t.typeConstraint=A.typeConstraint;var m=o("ba33");t.getServiceIdentifierAsString=m.getServiceIdentifierAsString;var v=o("efc5");t.multiBindToService=v.multiBindToService},e1cb:function(e,t,o){"use strict";function n(e){return e.hasFeature(t.nameFeature)}function i(e){return n(e)?e.name:void 0}Object.defineProperty(t,"__esModule",{value:!0}),t.nameFeature=Symbol("nameableFeature"),t.isNameable=n,t.name=i},e2d7:function(e,t,o){"use strict";var n=o("8ef3"),i=o.n(n);i.a},e325:function(t,o,n){"use strict";var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),o=t.length>>>0;if("function"!==typeof e)throw new TypeError("predicate must be a function");var n=arguments[1],i=0;while(i>>0;if("function"!==typeof e)throw new TypeError("predicate must be a function");var n=arguments[1],i=0;while(i>>0;if(0===n)return!1;var i=0|t,r=Math.max(i>=0?i:n-Math.abs(i),0);function a(e,t){return e===t||"number"===typeof e&&"number"===typeof t&&isNaN(e)&&isNaN(t)}while(ro?(t=e-o,this.element.style.marginLeft=-t+"px"):this.element.style.marginLeft=0,this.scrollLeft=e,this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.scrollHorizontal()},a.prototype.generateColumnsFromRowData=function(e){var t,o,n=[],i=this.table.options.autoColumnsDefinitions;if(e&&e.length){for(var a in t=e[0],t){var s={field:a,title:a},c=t[a];switch("undefined"===typeof c?"undefined":r(c)){case"undefined":o="string";break;case"boolean":o="boolean";break;case"object":o=Array.isArray(c)?"array":"string";break;default:o=isNaN(c)||""===c?c.match(/((^[0-9]+[a-z]+)|(^[a-z]+[0-9]+))+$/i)?"alphanum":"string":"number";break}s.sorter=o,n.push(s)}if(i)switch("undefined"===typeof i?"undefined":r(i)){case"function":this.table.options.columns=i.call(this.table,n);break;case"object":Array.isArray(i)?n.forEach(function(e){var t=i.find(function(t){return t.field===e.field});t&&Object.assign(e,t)}):n.forEach(function(e){i[e.field]&&Object.assign(e,i[e.field])}),this.table.options.columns=n;break}else this.table.options.columns=n;this.setColumns(this.table.options.columns)}},a.prototype.setColumns=function(e,t){var o=this;while(o.headersElement.firstChild)o.headersElement.removeChild(o.headersElement.firstChild);o.columns=[],o.columnsByIndex=[],o.columnsByField={},o.table.modExists("frozenColumns")&&o.table.modules.frozenColumns.reset(),e.forEach(function(e,t){o._addColumn(e)}),o._reIndexColumns(),o.table.options.responsiveLayout&&o.table.modExists("responsiveLayout",!0)&&o.table.modules.responsiveLayout.initialize(),this.table.options.virtualDomHoz&&this.table.vdomHoz.reinitialize(!1,!0),o.redraw(!0)},a.prototype._addColumn=function(e,t,o){var n=new c(e,this),i=n.getElement(),r=o?this.findColumnIndex(o):o;if(o&&r>-1){var a=this.columns.indexOf(o.getTopColumn()),s=o.getElement();t?(this.columns.splice(a,0,n),s.parentNode.insertBefore(i,s)):(this.columns.splice(a+1,0,n),s.parentNode.insertBefore(i,s.nextSibling))}else t?(this.columns.unshift(n),this.headersElement.insertBefore(n.getElement(),this.headersElement.firstChild)):(this.columns.push(n),this.headersElement.appendChild(n.getElement())),n.columnRendered();return n},a.prototype.registerColumnField=function(e){e.definition.field&&(this.columnsByField[e.definition.field]=e)},a.prototype.registerColumnPosition=function(e){this.columnsByIndex.push(e)},a.prototype._reIndexColumns=function(){this.columnsByIndex=[],this.columns.forEach(function(e){e.reRegisterPosition()})},a.prototype._verticalAlignHeaders=function(){var e=this,t=0;e.columns.forEach(function(e){var o;e.clearVerticalAlign(),o=e.getHeight(),o>t&&(t=o)}),e.columns.forEach(function(o){o.verticalAlign(e.table.options.columnHeaderVertAlign,t)}),e.rowManager.adjustTableSize()},a.prototype.findColumn=function(e){var t=this;if("object"!=("undefined"===typeof e?"undefined":r(e)))return this.columnsByField[e]||!1;if(e instanceof c)return e;if(e instanceof s)return e._getSelf()||!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement){var o=t.columns.find(function(t){return t.element===e});return o||!1}return!1},a.prototype.getColumnByField=function(e){return this.columnsByField[e]},a.prototype.getColumnsByFieldRoot=function(e){var t=this,o=[];return Object.keys(this.columnsByField).forEach(function(n){var i=n.split(".")[0];i===e&&o.push(t.columnsByField[n])}),o},a.prototype.getColumnByIndex=function(e){return this.columnsByIndex[e]},a.prototype.getFirstVisibileColumn=function(e){e=this.columnsByIndex.findIndex(function(e){return e.visible});return e>-1&&this.columnsByIndex[e]},a.prototype.getColumns=function(){return this.columns},a.prototype.findColumnIndex=function(e){return this.columnsByIndex.findIndex(function(t){return e===t})},a.prototype.getRealColumns=function(){return this.columnsByIndex},a.prototype.traverse=function(e){var t=this;t.columnsByIndex.forEach(function(t,o){e(t,o)})},a.prototype.getDefinitions=function(e){var t=this,o=[];return t.columnsByIndex.forEach(function(t){(!e||e&&t.visible)&&o.push(t.getDefinition())}),o},a.prototype.getDefinitionTree=function(){var e=this,t=[];return e.columns.forEach(function(e){t.push(e.getDefinition(!0))}),t},a.prototype.getComponents=function(e){var t=this,o=[],n=e?t.columns:t.columnsByIndex;return n.forEach(function(e){o.push(e.getComponent())}),o},a.prototype.getWidth=function(){var e=0;return this.columnsByIndex.forEach(function(t){t.visible&&(e+=t.getWidth())}),e},a.prototype.moveColumn=function(e,t,o){this.moveColumnActual(e,t,o),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.initialize(),this.table.modExists("columnCalcs")&&this.table.modules.columnCalcs.recalc(this.table.rowManager.activeRows),t.element.parentNode.insertBefore(e.element,t.element),o&&t.element.parentNode.insertBefore(t.element,e.element),this._verticalAlignHeaders(),this.table.rowManager.reinitialize()},a.prototype.moveColumnActual=function(e,t,o){e.parent.isGroup?this._moveColumnInArray(e.parent.columns,e,t,o):this._moveColumnInArray(this.columns,e,t,o),this._moveColumnInArray(this.columnsByIndex,e,t,o,!0),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.initialize(),this.table.options.virtualDomHoz&&this.table.vdomHoz.reinitialize(!0),this.table.options.columnMoved&&this.table.options.columnMoved.call(this.table,e.getComponent(),this.table.columnManager.getComponents()),this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.columns&&this.table.modules.persistence.save("columns")},a.prototype._moveColumnInArray=function(e,t,o,n,i){var r,a=this,s=e.indexOf(t),c=[];s>-1&&(e.splice(s,1),r=e.indexOf(o),r>-1?n&&(r+=1):r=s,e.splice(r,0,t),i&&(this.table.options.dataTree&&this.table.modExists("dataTree",!0)&&this.table.rowManager.rows.forEach(function(e){c=c.concat(a.table.modules.dataTree.getTreeChildren(e,!1,!0))}),c=c.concat(this.table.rowManager.rows),c.forEach(function(e){if(e.cells.length){var t=e.cells.splice(s,1)[0];e.cells.splice(r,0,t)}})))},a.prototype.scrollToColumn=function(e,t,o){var n=this,i=0,r=0,a=0,s=e.getElement();return new Promise(function(c,p){if("undefined"===typeof t&&(t=n.table.options.scrollToColumnPosition),"undefined"===typeof o&&(o=n.table.options.scrollToColumnIfVisible),e.visible){switch(t){case"middle":case"center":a=-n.element.clientWidth/2;break;case"right":a=s.clientWidth-n.headersElement.clientWidth;break}if(!o&&(r=s.offsetLeft,r>0&&r+s.offsetWidthe.rowManager.element.clientHeight&&(t-=e.rowManager.element.offsetWidth-e.rowManager.element.clientWidth),this.columnsByIndex.forEach(function(n){var i,r,a;n.visible&&(i=n.definition.width||0,r="undefined"==typeof n.minWidth?e.table.options.columnMinWidth:parseInt(n.minWidth),a="string"==typeof i?i.indexOf("%")>-1?t/100*parseInt(i):parseInt(i):i,o+=a>r?a:r)}),o},a.prototype.addColumn=function(e,t,o){var n=this;return new Promise(function(i,r){var a=n._addColumn(e,t,o);n._reIndexColumns(),n.table.options.responsiveLayout&&n.table.modExists("responsiveLayout",!0)&&n.table.modules.responsiveLayout.initialize(),n.table.modExists("columnCalcs")&&n.table.modules.columnCalcs.recalc(n.table.rowManager.activeRows),n.redraw(!0),"fitColumns"!=n.table.modules.layout.getMode()&&a.reinitializeWidth(),n._verticalAlignHeaders(),n.table.rowManager.reinitialize(),n.table.options.virtualDomHoz&&n.table.vdomHoz.reinitialize(),i(a)})},a.prototype.deregisterColumn=function(e){var t,o=e.getField();o&&delete this.columnsByField[o],t=this.columnsByIndex.indexOf(e),t>-1&&this.columnsByIndex.splice(t,1),t=this.columns.indexOf(e),t>-1&&this.columns.splice(t,1),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.initialize(),this._verticalAlignHeaders(),this.redraw()},a.prototype.redraw=function(e){e&&(f.prototype.helpers.elVisible(this.element)&&this._verticalAlignHeaders(),this.table.rowManager.resetScroll(),this.table.rowManager.reinitialize()),["fitColumns","fitDataStretch"].indexOf(this.table.modules.layout.getMode())>-1?this.table.modules.layout.layout():e?this.table.modules.layout.layout():this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update(),this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.layout(),this.table.modExists("columnCalcs")&&this.table.modules.columnCalcs.recalc(this.table.rowManager.activeRows),e&&(this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.columns&&this.table.modules.persistence.save("columns"),this.table.modExists("columnCalcs")&&this.table.modules.columnCalcs.redraw()),this.table.footerManager.redraw()};var s=function(e){this._column=e,this.type="ColumnComponent"};s.prototype.getElement=function(){return this._column.getElement()},s.prototype.getDefinition=function(){return this._column.getDefinition()},s.prototype.getField=function(){return this._column.getField()},s.prototype.getCells=function(){var e=[];return this._column.cells.forEach(function(t){e.push(t.getComponent())}),e},s.prototype.getVisibility=function(){return console.warn("getVisibility function is deprecated, you should now use the isVisible function"),this._column.visible},s.prototype.isVisible=function(){return this._column.visible},s.prototype.show=function(){this._column.isGroup?this._column.columns.forEach(function(e){e.show()}):this._column.show()},s.prototype.hide=function(){this._column.isGroup?this._column.columns.forEach(function(e){e.hide()}):this._column.hide()},s.prototype.toggle=function(){this._column.visible?this.hide():this.show()},s.prototype.delete=function(){return this._column.delete()},s.prototype.getSubColumns=function(){var e=[];return this._column.columns.length&&this._column.columns.forEach(function(t){e.push(t.getComponent())}),e},s.prototype.getParentColumn=function(){return this._column.parent instanceof c&&this._column.parent.getComponent()},s.prototype._getSelf=function(){return this._column},s.prototype.scrollTo=function(){return this._column.table.columnManager.scrollToColumn(this._column)},s.prototype.getTable=function(){return this._column.table},s.prototype.headerFilterFocus=function(){this._column.table.modExists("filter",!0)&&this._column.table.modules.filter.setHeaderFilterFocus(this._column)},s.prototype.reloadHeaderFilter=function(){this._column.table.modExists("filter",!0)&&this._column.table.modules.filter.reloadHeaderFilter(this._column)},s.prototype.getHeaderFilterValue=function(){if(this._column.table.modExists("filter",!0))return this._column.table.modules.filter.getHeaderFilterValue(this._column)},s.prototype.setHeaderFilterValue=function(e){this._column.table.modExists("filter",!0)&&this._column.table.modules.filter.setHeaderFilterValue(this._column,e)},s.prototype.move=function(e,t){var o=this._column.table.columnManager.findColumn(e);o?this._column.table.columnManager.moveColumn(this._column,o,t):console.warn("Move Error - No matching column found:",o)},s.prototype.getNextColumn=function(){var e=this._column.nextColumn();return!!e&&e.getComponent()},s.prototype.getPrevColumn=function(){var e=this._column.prevColumn();return!!e&&e.getComponent()},s.prototype.updateDefinition=function(e){return this._column.updateDefinition(e)},s.prototype.getWidth=function(){return this._column.getWidth()},s.prototype.setWidth=function(e){var t;return t=!0===e?this._column.reinitializeWidth(!0):this._column.setWidth(e),this._column.table.options.virtualDomHoz&&this._column.table.vdomHoz.reinitialize(!0),t},s.prototype.validate=function(){return this._column.validate()};var c=function e(t,o){var n=this;this.table=o.table,this.definition=t,this.parent=o,this.type="column",this.columns=[],this.cells=[],this.element=this.createElement(),this.contentElement=!1,this.titleHolderElement=!1,this.titleElement=!1,this.groupElement=this.createGroupElement(),this.isGroup=!1,this.tooltip=!1,this.hozAlign="",this.vertAlign="",this.field="",this.fieldStructure="",this.getFieldValue="",this.setFieldValue="",this.titleFormatterRendered=!1,this.setField(this.definition.field),this.table.options.invalidOptionWarnings&&this.checkDefinition(),this.modules={},this.cellEvents={cellClick:!1,cellDblClick:!1,cellContext:!1,cellTap:!1,cellDblTap:!1,cellTapHold:!1,cellMouseEnter:!1,cellMouseLeave:!1,cellMouseOver:!1,cellMouseOut:!1,cellMouseMove:!1},this.width=null,this.widthStyled="",this.maxWidth=null,this.maxWidthStyled="",this.minWidth=null,this.minWidthStyled="",this.widthFixed=!1,this.visible=!0,this.component=null,this._mapDepricatedFunctionality(),t.columns?(this.isGroup=!0,t.columns.forEach(function(t,o){var i=new e(t,n);n.attachColumn(i)}),n.checkColumnVisibility()):o.registerColumnField(this),t.rowHandle&&!1!==this.table.options.movableRows&&this.table.modExists("moveRow")&&this.table.modules.moveRow.setHandle(!0),this._buildHeader(),this.bindModuleColumns()};c.prototype.createElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-col"),e.setAttribute("role","columnheader"),e.setAttribute("aria-sort","none"),e},c.prototype.createGroupElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-col-group-cols"),e},c.prototype.checkDefinition=function(){var e=this;Object.keys(this.definition).forEach(function(t){-1===e.defaultOptionList.indexOf(t)&&console.warn("Invalid column definition option in '"+(e.field||e.definition.title)+"' column:",t)})},c.prototype.setField=function(e){this.field=e,this.fieldStructure=e?this.table.options.nestedFieldSeparator?e.split(this.table.options.nestedFieldSeparator):[e]:[],this.getFieldValue=this.fieldStructure.length>1?this._getNestedData:this._getFlatData,this.setFieldValue=this.fieldStructure.length>1?this._setNestedData:this._setFlatData},c.prototype.registerColumnPosition=function(e){this.parent.registerColumnPosition(e)},c.prototype.registerColumnField=function(e){this.parent.registerColumnField(e)},c.prototype.reRegisterPosition=function(){this.isGroup?this.columns.forEach(function(e){e.reRegisterPosition()}):this.registerColumnPosition(this)},c.prototype._mapDepricatedFunctionality=function(){"undefined"!==typeof this.definition.hideInHtml&&(this.definition.htmlOutput=!this.definition.hideInHtml,console.warn("hideInHtml column definition property is deprecated, you should now use htmlOutput")),"undefined"!==typeof this.definition.align&&(this.definition.hozAlign=this.definition.align,console.warn("align column definition property is deprecated, you should now use hozAlign")),"undefined"!==typeof this.definition.downloadTitle&&(this.definition.titleDownload=this.definition.downloadTitle,console.warn("downloadTitle definition property is deprecated, you should now use titleDownload"))},c.prototype.setTooltip=function(){var e=this,t=e.definition,o=t.headerTooltip||!1===t.tooltip?t.headerTooltip:e.table.options.tooltipsHeader;o?!0===o?t.field?e.table.modules.localize.bind("columns|"+t.field,function(o){e.element.setAttribute("title",o||t.title)}):e.element.setAttribute("title",t.title):("function"==typeof o&&(o=o(e.getComponent()),!1===o&&(o="")),e.element.setAttribute("title",o)):e.element.setAttribute("title","")},c.prototype._buildHeader=function(){var e=this,t=e.definition;while(e.element.firstChild)e.element.removeChild(e.element.firstChild);t.headerVertical&&(e.element.classList.add("tabulator-col-vertical"),"flip"===t.headerVertical&&e.element.classList.add("tabulator-col-vertical-flip")),e.contentElement=e._bindEvents(),e.contentElement=e._buildColumnHeaderContent(),e.element.appendChild(e.contentElement),e.isGroup?e._buildGroupHeader():e._buildColumnHeader(),e.setTooltip(),e.table.options.resizableColumns&&e.table.modExists("resizeColumns")&&e.table.modules.resizeColumns.initializeColumn("header",e,e.element),t.headerFilter&&e.table.modExists("filter")&&e.table.modExists("edit")&&("undefined"!==typeof t.headerFilterPlaceholder&&t.field&&e.table.modules.localize.setHeaderFilterColumnPlaceholder(t.field,t.headerFilterPlaceholder),e.table.modules.filter.initializeColumn(e)),e.table.modExists("frozenColumns")&&e.table.modules.frozenColumns.initializeColumn(e),e.table.options.movableColumns&&!e.isGroup&&e.table.modExists("moveColumn")&&e.table.modules.moveColumn.initializeColumn(e),(t.topCalc||t.bottomCalc)&&e.table.modExists("columnCalcs")&&e.table.modules.columnCalcs.initializeColumn(e),e.table.modExists("persistence")&&e.table.modules.persistence.config.columns&&e.table.modules.persistence.initializeColumn(e),e.element.addEventListener("mouseenter",function(t){e.setTooltip()})},c.prototype._bindEvents=function(){var e,t,o,n=this,i=n.definition;"function"==typeof i.headerClick&&n.element.addEventListener("click",function(e){i.headerClick(e,n.getComponent())}),"function"==typeof i.headerDblClick&&n.element.addEventListener("dblclick",function(e){i.headerDblClick(e,n.getComponent())}),"function"==typeof i.headerContext&&n.element.addEventListener("contextmenu",function(e){i.headerContext(e,n.getComponent())}),"function"==typeof i.headerTap&&(o=!1,n.element.addEventListener("touchstart",function(e){o=!0},{passive:!0}),n.element.addEventListener("touchend",function(e){o&&i.headerTap(e,n.getComponent()),o=!1})),"function"==typeof i.headerDblTap&&(e=null,n.element.addEventListener("touchend",function(t){e?(clearTimeout(e),e=null,i.headerDblTap(t,n.getComponent())):e=setTimeout(function(){clearTimeout(e),e=null},300)})),"function"==typeof i.headerTapHold&&(t=null,n.element.addEventListener("touchstart",function(e){clearTimeout(t),t=setTimeout(function(){clearTimeout(t),t=null,o=!1,i.headerTapHold(e,n.getComponent())},1e3)},{passive:!0}),n.element.addEventListener("touchend",function(e){clearTimeout(t),t=null})),"function"==typeof i.cellClick&&(n.cellEvents.cellClick=i.cellClick),"function"==typeof i.cellDblClick&&(n.cellEvents.cellDblClick=i.cellDblClick),"function"==typeof i.cellContext&&(n.cellEvents.cellContext=i.cellContext),"function"==typeof i.cellMouseEnter&&(n.cellEvents.cellMouseEnter=i.cellMouseEnter),"function"==typeof i.cellMouseLeave&&(n.cellEvents.cellMouseLeave=i.cellMouseLeave),"function"==typeof i.cellMouseOver&&(n.cellEvents.cellMouseOver=i.cellMouseOver),"function"==typeof i.cellMouseOut&&(n.cellEvents.cellMouseOut=i.cellMouseOut),"function"==typeof i.cellMouseMove&&(n.cellEvents.cellMouseMove=i.cellMouseMove),"function"==typeof i.cellTap&&(n.cellEvents.cellTap=i.cellTap),"function"==typeof i.cellDblTap&&(n.cellEvents.cellDblTap=i.cellDblTap),"function"==typeof i.cellTapHold&&(n.cellEvents.cellTapHold=i.cellTapHold),"function"==typeof i.cellEdited&&(n.cellEvents.cellEdited=i.cellEdited),"function"==typeof i.cellEditing&&(n.cellEvents.cellEditing=i.cellEditing),"function"==typeof i.cellEditCancelled&&(n.cellEvents.cellEditCancelled=i.cellEditCancelled)},c.prototype._buildColumnHeader=function(){var e=this,t=this.definition,o=this.table;if(o.modExists("sort")&&o.modules.sort.initializeColumn(this,this.titleHolderElement),(t.headerContextMenu||t.headerClickMenu||t.headerMenu)&&o.modExists("menu")&&o.modules.menu.initializeColumnHeader(this),o.modExists("format")&&o.modules.format.initializeColumn(this),"undefined"!=typeof t.editor&&o.modExists("edit")&&o.modules.edit.initializeColumn(this),"undefined"!=typeof t.validator&&o.modExists("validate")&&o.modules.validate.initializeColumn(this),o.modExists("mutator")&&o.modules.mutator.initializeColumn(this),o.modExists("accessor")&&o.modules.accessor.initializeColumn(this),r(o.options.responsiveLayout)&&o.modExists("responsiveLayout")&&o.modules.responsiveLayout.initializeColumn(this),"undefined"!=typeof t.visible&&(t.visible?this.show(!0):this.hide(!0)),t.cssClass){var n=t.cssClass.split(" ");n.forEach(function(t){e.element.classList.add(t)})}t.field&&this.element.setAttribute("tabulator-field",t.field),this.setMinWidth("undefined"==typeof t.minWidth?this.table.options.columnMinWidth:parseInt(t.minWidth)),(t.maxWidth||this.table.options.columnMaxWidth)&&!1!==t.maxWidth&&this.setMaxWidth("undefined"==typeof t.maxWidth?this.table.options.columnMaxWidth:parseInt(t.maxWidth)),this.reinitializeWidth(),this.tooltip=this.definition.tooltip||!1===this.definition.tooltip?this.definition.tooltip:this.table.options.tooltips,this.hozAlign="undefined"==typeof this.definition.hozAlign?this.table.options.cellHozAlign:this.definition.hozAlign,this.vertAlign="undefined"==typeof this.definition.vertAlign?this.table.options.cellVertAlign:this.definition.vertAlign,this.titleElement.style.textAlign=this.definition.headerHozAlign||this.table.options.headerHozAlign},c.prototype._buildColumnHeaderContent=function(){this.definition,this.table;var e=document.createElement("div");return e.classList.add("tabulator-col-content"),this.titleHolderElement=document.createElement("div"),this.titleHolderElement.classList.add("tabulator-col-title-holder"),e.appendChild(this.titleHolderElement),this.titleElement=this._buildColumnHeaderTitle(),this.titleHolderElement.appendChild(this.titleElement),e},c.prototype._buildColumnHeaderTitle=function(){var e=this,t=e.definition,o=e.table,n=document.createElement("div");if(n.classList.add("tabulator-col-title"),t.editableTitle){var i=document.createElement("input");i.classList.add("tabulator-title-editor"),i.addEventListener("click",function(e){e.stopPropagation(),i.focus()}),i.addEventListener("change",function(){t.title=i.value,o.options.columnTitleChanged.call(e.table,e.getComponent())}),n.appendChild(i),t.field?o.modules.localize.bind("columns|"+t.field,function(e){i.value=e||t.title||" "}):i.value=t.title||" "}else t.field?o.modules.localize.bind("columns|"+t.field,function(o){e._formatColumnHeaderTitle(n,o||t.title||" ")}):e._formatColumnHeaderTitle(n,t.title||" ");return n},c.prototype._formatColumnHeaderTitle=function(e,t){var o,n,i,a,s,c=this;if(this.definition.titleFormatter&&this.table.modExists("format"))switch(o=this.table.modules.format.getFormatter(this.definition.titleFormatter),s=function(e){c.titleFormatterRendered=e},a={getValue:function(){return t},getElement:function(){return e}},i=this.definition.titleFormatterParams||{},i="function"===typeof i?i():i,n=o.call(this.table.modules.format,a,i,s),"undefined"===typeof n?"undefined":r(n)){case"object":n instanceof Node?e.appendChild(n):(e.innerHTML="",console.warn("Format Error - Title formatter has returned a type of object, the only valid formatter object return is an instance of Node, the formatter returned:",n));break;case"undefined":case"null":e.innerHTML="";break;default:e.innerHTML=n}else e.innerHTML=t},c.prototype._buildGroupHeader=function(){var e=this;if(this.element.classList.add("tabulator-col-group"),this.element.setAttribute("role","columngroup"),this.element.setAttribute("aria-title",this.definition.title),this.definition.cssClass){var t=this.definition.cssClass.split(" ");t.forEach(function(t){e.element.classList.add(t)})}(this.definition.headerContextMenu||this.definition.headerMenu)&&this.table.modExists("menu")&&this.table.modules.menu.initializeColumnHeader(this),this.titleElement.style.textAlign=this.definition.headerHozAlign||this.table.options.headerHozAlign,this.element.appendChild(this.groupElement)},c.prototype._getFlatData=function(e){return e[this.field]},c.prototype._getNestedData=function(e){for(var t,o=e,n=this.fieldStructure,i=n.length,r=0;r-1&&this.columns.splice(t,1),this.columns.length||this.delete()},c.prototype.setWidth=function(e){this.widthFixed=!0,this.setWidthActual(e)},c.prototype.setWidthActual=function(e){isNaN(e)&&(e=Math.floor(this.table.element.clientWidth/100*parseInt(e))),e=Math.max(this.minWidth,e),this.maxWidth&&(e=Math.min(this.maxWidth,e)),this.width=e,this.widthStyled=e?e+"px":"",this.element.style.width=this.widthStyled,this.isGroup||this.cells.forEach(function(e){e.setWidth()}),this.parent.isGroup&&this.parent.matchChildWidths(),this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.layout()},c.prototype.checkCellHeights=function(){var e=[];this.cells.forEach(function(t){t.row.heightInitialized&&(null!==t.row.getElement().offsetParent?(e.push(t.row),t.row.clearCellHeight()):t.row.heightInitialized=!1)}),e.forEach(function(e){e.calcHeight()}),e.forEach(function(e){e.setCellHeight()})},c.prototype.getWidth=function(){var e=0;return this.isGroup?this.columns.forEach(function(t){t.visible&&(e+=t.getWidth())}):e=this.width,e},c.prototype.getHeight=function(){return this.element.offsetHeight},c.prototype.setMinWidth=function(e){this.minWidth=e,this.minWidthStyled=e?e+"px":"",this.element.style.minWidth=this.minWidthStyled,this.cells.forEach(function(e){e.setMinWidth()})},c.prototype.setMaxWidth=function(e){this.maxWidth=e,this.maxWidthStyled=e?e+"px":"",this.element.style.maxWidth=this.maxWidthStyled,this.cells.forEach(function(e){e.setMaxWidth()})},c.prototype.delete=function(){var e=this;return new Promise(function(t,o){e.isGroup&&e.columns.forEach(function(e){e.delete()}),e.table.modExists("edit")&&e.table.modules.edit.currentCell.column===e&&e.table.modules.edit.cancelEdit();for(var n=e.cells.length,i=0;i-1&&this._nextVisibleColumn(e+1)},c.prototype._nextVisibleColumn=function(e){var t=this.table.columnManager.getColumnByIndex(e);return!t||t.visible?t:this._nextVisibleColumn(e+1)},c.prototype.prevColumn=function(){var e=this.table.columnManager.findColumnIndex(this);return e>-1&&this._prevVisibleColumn(e-1)},c.prototype._prevVisibleColumn=function(e){var t=this.table.columnManager.getColumnByIndex(e);return!t||t.visible?t:this._prevVisibleColumn(e-1)},c.prototype.reinitializeWidth=function(e){this.widthFixed=!1,"undefined"===typeof this.definition.width||e||this.setWidth(this.definition.width),this.table.modExists("filter")&&this.table.modules.filter.hideHeaderFilterElements(),this.fitToData(),this.table.modExists("filter")&&this.table.modules.filter.showHeaderFilterElements()},c.prototype.fitToData=function(){var e=this;this.widthFixed||(this.element.style.width="",e.cells.forEach(function(e){e.clearWidth()}));var t=this.element.offsetWidth;e.width&&this.widthFixed||(e.cells.forEach(function(e){var o=e.getWidth();o>t&&(t=o)}),t&&e.setWidthActual(t+1))},c.prototype.updateDefinition=function(e){var t=this;return new Promise(function(o,n){var i;t.isGroup?(console.warn("Column Update Error - The updateDefinition function is only available on ungrouped columns"),n("Column Update Error - The updateDefinition function is only available on columns, not column groups")):t.parent.isGroup?(console.warn("Column Update Error - The updateDefinition function is only available on ungrouped columns"),n("Column Update Error - The updateDefinition function is only available on columns, not column groups")):(i=Object.assign({},t.getDefinition()),i=Object.assign(i,e),t.table.columnManager.addColumn(i,!1,t).then(function(e){i.field==t.field&&(t.field=!1),t.delete().then(function(){o(e.getComponent())}).catch(function(e){n(e)})}).catch(function(e){n(e)}))})},c.prototype.deleteCell=function(e){var t=this.cells.indexOf(e);t>-1&&this.cells.splice(t,1)},c.prototype.defaultOptionList=["title","field","columns","visible","align","hozAlign","vertAlign","width","minWidth","maxWidth","widthGrow","widthShrink","resizable","frozen","responsive","tooltip","cssClass","rowHandle","hideInHtml","print","htmlOutput","sorter","sorterParams","formatter","formatterParams","variableHeight","editable","editor","editorParams","validator","mutator","mutatorParams","mutatorData","mutatorDataParams","mutatorEdit","mutatorEditParams","mutatorClipboard","mutatorClipboardParams","accessor","accessorParams","accessorData","accessorDataParams","accessorDownload","accessorDownloadParams","accessorClipboard","accessorClipboardParams","accessorPrint","accessorPrintParams","accessorHtmlOutput","accessorHtmlOutputParams","clipboard","download","downloadTitle","topCalc","topCalcParams","topCalcFormatter","topCalcFormatterParams","bottomCalc","bottomCalcParams","bottomCalcFormatter","bottomCalcFormatterParams","cellClick","cellDblClick","cellContext","cellTap","cellDblTap","cellTapHold","cellMouseEnter","cellMouseLeave","cellMouseOver","cellMouseOut","cellMouseMove","cellEditing","cellEdited","cellEditCancelled","headerSort","headerSortStartingDir","headerSortTristate","headerClick","headerDblClick","headerContext","headerTap","headerDblTap","headerTapHold","headerTooltip","headerVertical","headerHozAlign","editableTitle","titleFormatter","titleFormatterParams","headerFilter","headerFilterPlaceholder","headerFilterParams","headerFilterEmptyCheck","headerFilterFunc","headerFilterFuncParams","headerFilterLiveFilter","print","headerContextMenu","headerMenu","contextMenu","clickMenu","formatterPrint","formatterPrintParams","formatterClipboard","formatterClipboardParams","formatterHtmlOutput","formatterHtmlOutputParams","titlePrint","titleClipboard","titleHtmlOutput","titleDownload"],c.prototype.getComponent=function(){return this.component||(this.component=new s(this)),this.component};var p=function(e){this.table=e,this.element=this.createHolderElement(),this.tableElement=this.createTableElement(),this.heightFixer=this.createTableElement(),this.columnManager=null,this.height=0,this.firstRender=!1,this.renderMode="virtual",this.fixedHeight=!1,this.rows=[],this.activeRows=[],this.activeRowsCount=0,this.displayRows=[],this.displayRowsCount=0,this.scrollTop=0,this.scrollLeft=0,this.vDomRowHeight=20,this.vDomTop=0,this.vDomBottom=0,this.vDomScrollPosTop=0,this.vDomScrollPosBottom=0,this.vDomTopPad=0,this.vDomBottomPad=0,this.vDomMaxRenderChain=90,this.vDomWindowBuffer=0,this.vDomWindowMinTotalRows=20,this.vDomWindowMinMarginRows=5,this.vDomTopNewRows=[],this.vDomBottomNewRows=[],this.rowNumColumn=!1,this.redrawBlock=!1,this.redrawBlockRestoreConfig=!1,this.redrawBlockRederInPosition=!1};p.prototype.createHolderElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-tableHolder"),e.setAttribute("tabindex",0),e},p.prototype.createTableElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-table"),e},p.prototype.getElement=function(){return this.element},p.prototype.getTableElement=function(){return this.tableElement},p.prototype.getRowPosition=function(e,t){return t?this.activeRows.indexOf(e):this.rows.indexOf(e)},p.prototype.setColumnManager=function(e){this.columnManager=e},p.prototype.initialize=function(){var e=this;e.setRenderMode(),e.element.appendChild(e.tableElement),e.firstRender=!0,e.element.addEventListener("scroll",function(){var t=e.element.scrollLeft;e.scrollLeft!=t&&(e.columnManager.scrollHorizontal(t),e.table.options.groupBy&&e.table.modules.groupRows.scrollHeaders(t),e.table.modExists("columnCalcs")&&e.table.modules.columnCalcs.scrollHorizontal(t),e.table.options.scrollHorizontal(t)),e.scrollLeft=t}),"virtual"===this.renderMode&&e.element.addEventListener("scroll",function(){var t=e.element.scrollTop,o=e.scrollTop>t;e.scrollTop!=t?(e.scrollTop=t,e.scrollVertical(o),"scroll"==e.table.options.ajaxProgressiveLoad&&e.table.modules.ajax.nextPage(e.element.scrollHeight-e.element.clientHeight-t),e.table.options.scrollVertical(t)):e.scrollTop=t})},p.prototype.findRow=function(e){var t=this;if("object"!=("undefined"===typeof e?"undefined":r(e))){if("undefined"==typeof e||null===e)return!1;var o=t.rows.find(function(o){return o.data[t.table.options.index]==e});return o||!1}if(e instanceof b)return e;if(e instanceof u)return e._getSelf()||!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement){var n=t.rows.find(function(t){return t.getElement()===e});return n||!1}return!1},p.prototype.getRowFromDataObject=function(e){var t=this.rows.find(function(t){return t.data===e});return t||!1},p.prototype.getRowFromPosition=function(e,t){return t?this.activeRows[e]:this.rows[e]},p.prototype.scrollToRow=function(e,t,o){var n,i=this,r=this.getDisplayRows().indexOf(e),a=e.getElement(),s=0;return new Promise(function(e,c){if(r>-1){if("undefined"===typeof t&&(t=i.table.options.scrollToRowPosition),"undefined"===typeof o&&(o=i.table.options.scrollToRowIfVisible),"nearest"===t)switch(i.renderMode){case"classic":n=f.prototype.helpers.elOffset(a).top,t=Math.abs(i.element.scrollTop-n)>Math.abs(i.element.scrollTop+i.element.clientHeight-n)?"bottom":"top";break;case"virtual":t=Math.abs(i.vDomTop-r)>Math.abs(i.vDomBottom-r)?"bottom":"top";break}if(!o&&f.prototype.helpers.elVisible(a)&&(s=f.prototype.helpers.elOffset(a).top-f.prototype.helpers.elOffset(i.element).top,s>0&&s-1&&this.activeRows.splice(n,1),o>-1&&this.rows.splice(o,1),this.setActiveRows(this.activeRows),this.displayRowIterator(function(t){var o=t.indexOf(e);o>-1&&t.splice(o,1)}),t||this.reRenderInPosition(),this.regenerateRowNumbers(),this.table.options.rowDeleted.call(this.table,e.getComponent()),this.table.options.dataChanged&&this.table.options.dataChanged.call(this.table,this.getData()),this.table.options.groupBy&&this.table.modExists("groupRows")?this.table.modules.groupRows.updateGroupRows(!0):this.table.options.pagination&&this.table.modExists("page")?this.refreshActiveData(!1,!1,!0):this.table.options.pagination&&this.table.modExists("page")&&this.refreshActiveData("page")},p.prototype.addRow=function(e,t,o,n){var i=this.addRowActual(e,t,o,n);return this.table.options.history&&this.table.modExists("history")&&this.table.modules.history.action("rowAdd",i,{data:e,pos:t,index:o}),i},p.prototype.addRows=function(e,t,o){var n=this,i=this,r=[];return new Promise(function(a,s){t=n.findAddRowPos(t),Array.isArray(e)||(e=[e]),e.length-1,("undefined"==typeof o&&t||"undefined"!==typeof o&&!t)&&e.reverse(),e.forEach(function(e,n){var a=i.addRow(e,t,o,!0);r.push(a)}),n.table.options.groupBy&&n.table.modExists("groupRows")?n.table.modules.groupRows.updateGroupRows(!0):n.table.options.pagination&&n.table.modExists("page")?n.refreshActiveData(!1,!1,!0):n.reRenderInPosition(),n.table.modExists("columnCalcs")&&n.table.modules.columnCalcs.recalc(n.table.rowManager.activeRows),n.regenerateRowNumbers(),a(r)})},p.prototype.findAddRowPos=function(e){return"undefined"===typeof e&&(e=this.table.options.addRowPos),"pos"===e&&(e=!0),"bottom"===e&&(e=!1),e},p.prototype.addRowActual=function(e,t,o,n){var i,r,a=e instanceof b?e:new b(e||{},this),s=this.findAddRowPos(t),c=-1;if(!o&&this.table.options.pagination&&"page"==this.table.options.paginationAddRow&&(r=this.getDisplayRows(),s?r.length?o=r[0]:this.activeRows.length&&(o=this.activeRows[this.activeRows.length-1],s=!1):r.length&&(o=r[r.length-1],s=!(r.length1&&(!o||o&&-1==p.indexOf(o)?s?p[0]!==a&&(o=p[0],this._moveRowInArray(a.getGroup().rows,a,o,!s)):p[p.length-1]!==a&&(o=p[p.length-1],this._moveRowInArray(a.getGroup().rows,a,o,!s)):this._moveRowInArray(a.getGroup().rows,a,o,!s))}return o&&(c=this.rows.indexOf(o)),o&&c>-1?(i=this.activeRows.indexOf(o),this.displayRowIterator(function(e){var t=e.indexOf(o);t>-1&&e.splice(s?t:t+1,0,a)}),i>-1&&this.activeRows.splice(s?i:i+1,0,a),this.rows.splice(s?c:c+1,0,a)):s?(this.displayRowIterator(function(e){e.unshift(a)}),this.activeRows.unshift(a),this.rows.unshift(a)):(this.displayRowIterator(function(e){e.push(a)}),this.activeRows.push(a),this.rows.push(a)),this.setActiveRows(this.activeRows),this.table.options.rowAdded.call(this.table,a.getComponent()),this.table.options.dataChanged&&this.table.options.dataChanged.call(this.table,this.getData()),n||this.reRenderInPosition(),a},p.prototype.moveRow=function(e,t,o){this.table.options.history&&this.table.modExists("history")&&this.table.modules.history.action("rowMove",e,{posFrom:this.getRowPosition(e),posTo:this.getRowPosition(t),to:t,after:o}),this.moveRowActual(e,t,o),this.regenerateRowNumbers(),this.table.options.rowMoved.call(this.table,e.getComponent())},p.prototype.moveRowActual=function(e,t,o){var n=this;if(this._moveRowInArray(this.rows,e,t,o),this._moveRowInArray(this.activeRows,e,t,o),this.displayRowIterator(function(i){n._moveRowInArray(i,e,t,o)}),this.table.options.groupBy&&this.table.modExists("groupRows")){!o&&t instanceof B&&(t=this.table.rowManager.prevDisplayRow(e)||t);var i=t.getGroup(),r=e.getGroup();i===r?this._moveRowInArray(i.rows,e,t,o):(r&&r.removeRow(e),i.insertRow(e,t,o))}},p.prototype._moveRowInArray=function(e,t,o,n){var i,r,a,s;if(t!==o&&(i=e.indexOf(t),i>-1&&(e.splice(i,1),r=e.indexOf(o),r>-1?n?e.splice(r+1,0,t):e.splice(r,0,t):e.splice(i,0,t)),e===this.getDisplayRows())){a=ii?r:i+1;for(var c=a;c<=s;c++)e[c]&&this.styleRow(e[c],c)}},p.prototype.clearData=function(){this.setData([])},p.prototype.getRowIndex=function(e){return this.findRowIndex(e,this.rows)},p.prototype.getDisplayRowIndex=function(e){var t=this.getDisplayRows().indexOf(e);return t>-1&&t},p.prototype.nextDisplayRow=function(e,t){var o=this.getDisplayRowIndex(e),n=!1;return!1!==o&&o-1))&&o},p.prototype.getData=function(e,t){var o=[],n=this.getRows(e);return n.forEach(function(e){"row"==e.type&&o.push(e.getData(t||"data"))}),o},p.prototype.getComponents=function(e){var t=[],o=this.getRows(e);return o.forEach(function(e){t.push(e.getComponent())}),t},p.prototype.getDataCount=function(e){var t=this.getRows(e);return t.length},p.prototype._genRemoteRequest=function(){var e=this,t=this.table,o=t.options,n={};if(t.modExists("page")){if(o.ajaxSorting){var i=this.table.modules.sort.getSort();i.forEach(function(e){delete e.column}),n[this.table.modules.page.paginationDataSentNames.sorters]=i}if(o.ajaxFiltering){var r=this.table.modules.filter.getFilters(!0,!0);n[this.table.modules.page.paginationDataSentNames.filters]=r}this.table.modules.ajax.setParams(n,!0)}t.modules.ajax.sendRequest().then(function(t){e._setDataActual(t,!0)}).catch(function(e){})},p.prototype.filterRefresh=function(){var e=this.table,t=e.options,o=this.scrollLeft;t.ajaxFiltering?"remote"==t.pagination&&e.modExists("page")?(e.modules.page.reset(!0),e.modules.page.setPage(1).then(function(){}).catch(function(){})):t.ajaxProgressiveLoad?e.modules.ajax.loadData().then(function(){}).catch(function(){}):this._genRemoteRequest():this.refreshActiveData("filter"),this.scrollHorizontal(o)},p.prototype.sorterRefresh=function(e){var t=this.table,o=this.table.options,n=this.scrollLeft;o.ajaxSorting?("remote"==o.pagination||o.progressiveLoad)&&t.modExists("page")?(t.modules.page.reset(!0),t.modules.page.setPage(1).then(function(){}).catch(function(){})):o.ajaxProgressiveLoad?t.modules.ajax.loadData().then(function(){}).catch(function(){}):this._genRemoteRequest():this.refreshActiveData(e?"filter":"sort"),this.scrollHorizontal(n)},p.prototype.scrollHorizontal=function(e){this.scrollLeft=e,this.element.scrollLeft=e,this.table.options.groupBy&&this.table.modules.groupRows.scrollHeaders(e),this.table.modExists("columnCalcs")&&this.table.modules.columnCalcs.scrollHorizontal(e)},p.prototype.refreshActiveData=function(e,t,o){var n,i=this,r=this.table,a=["all","filter","sort","display","freeze","group","tree","page"];if(this.redrawBlock)(!this.redrawBlockRestoreConfig||a.indexOf(e)=0))break;r=s}else if(t-a[s].getElement().offsetTop>=0)i=s;else{if(n=!0,!(o-a[s].getElement().offsetTop>=0))break;r=s}}else i=this.vDomTop,r=this.vDomBottom;return a.slice(i,r+1)},p.prototype.displayRowIterator=function(e){this.displayRows.forEach(e),this.displayRowsCount=this.displayRows[this.displayRows.length-1].length},p.prototype.getRows=function(e){var t;switch(e){case"active":t=this.activeRows;break;case"display":t=this.table.rowManager.getDisplayRows();break;case"visible":t=this.getVisibleRows(!0);break;case"selected":t=this.table.modules.selectRow.selectedRows;break;default:t=this.rows}return t},p.prototype.reRenderInPosition=function(e){if("virtual"==this.getRenderMode())if(this.redrawBlock)e?e():this.redrawBlockRederInPosition=!0;else{for(var t=this.element.scrollTop,o=!1,n=!1,i=this.scrollLeft,r=this.getDisplayRows(),a=this.vDomTop;a<=this.vDomBottom;a++)if(r[a]){var s=t-r[a].getElement().offsetTop;if(!(!1===n||Math.abs(s)this.vDomWindowBuffer&&(this.vDomWindowBuffer=2*h),"group"!==M.type&&(l=!1),n.vDomBottom++,p++}e?(n.vDomTopPad=t?n.vDomRowHeight*this.vDomTop+o:n.scrollTop-c,n.vDomBottomPad=n.vDomBottom==n.displayRowsCount-1?0:Math.max(n.vDomScrollHeight-n.vDomTopPad-s-c,0)):(this.vDomTopPad=0,n.vDomRowHeight=Math.floor((s+c)/p),n.vDomBottomPad=n.vDomRowHeight*(n.displayRowsCount-n.vDomBottom-1),n.vDomScrollHeight=c+s+n.vDomBottomPad-n.height),i.style.paddingTop=n.vDomTopPad+"px",i.style.paddingBottom=n.vDomBottomPad+"px",t&&(this.scrollTop=n.vDomTopPad+c+o-(this.element.scrollWidth>this.element.clientWidth?this.element.offsetHeight-this.element.clientHeight:0)),this.scrollTop=Math.min(this.scrollTop,this.element.scrollHeight-this.height),this.element.scrollWidth>this.element.offsetWidth&&t&&(this.scrollTop+=this.element.offsetHeight-this.element.clientHeight),this.vDomScrollPosTop=this.scrollTop,this.vDomScrollPosBottom=this.scrollTop,r.scrollTop=this.scrollTop,i.style.minWidth=l?n.table.columnManager.getWidth()+"px":"",n.table.options.groupBy&&"fitDataFill"!=n.table.modules.layout.getMode()&&n.displayRowsCount==n.table.modules.groupRows.countGroups()&&(n.tableElement.style.minWidth=n.table.columnManager.getWidth())}else this.renderEmptyScroll();this.fixedHeight||this.adjustTableSize()},p.prototype.scrollVertical=function(e){var t=this.scrollTop-this.vDomScrollPosTop,o=this.scrollTop-this.vDomScrollPosBottom,n=2*this.vDomWindowBuffer;if(-t>n||o>n){var i=this.scrollLeft;this._virtualRenderFill(Math.floor(this.element.scrollTop/this.element.scrollHeight*this.displayRowsCount)),this.scrollHorizontal(i)}else e?(t<0&&this._addTopRow(-t),o<0&&(this.vDomScrollHeight-this.scrollTop>this.vDomWindowBuffer?this._removeBottomRow(-o):this.vDomScrollPosBottom=this.scrollTop)):(t>=0&&(this.scrollTop>this.vDomWindowBuffer?this._removeTopRow(t):this.vDomScrollPosTop=this.scrollTop),o>=0&&this._addBottomRow(o))},p.prototype._addTopRow=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=this.tableElement,n=this.getDisplayRows();if(this.vDomTop){var i=this.vDomTop-1,r=n[i],a=r.getHeight()||this.vDomRowHeight;e>=a&&(this.styleRow(r,i),o.insertBefore(r.getElement(),o.firstChild),r.initialized&&r.heightInitialized||(this.vDomTopNewRows.push(r),r.heightInitialized||r.clearCellHeight()),r.initialize(),this.vDomTopPad-=a,this.vDomTopPad<0&&(this.vDomTopPad=i*this.vDomRowHeight),i||(this.vDomTopPad=0),o.style.paddingTop=this.vDomTopPad+"px",this.vDomScrollPosTop-=a,this.vDomTop--),e=-(this.scrollTop-this.vDomScrollPosTop),r.getHeight()>this.vDomWindowBuffer&&(this.vDomWindowBuffer=2*r.getHeight()),t=(n[this.vDomTop-1].getHeight()||this.vDomRowHeight)?this._addTopRow(e,t+1):this._quickNormalizeRowHeight(this.vDomTopNewRows)}},p.prototype._removeTopRow=function(e){var t=this.tableElement,o=this.getDisplayRows()[this.vDomTop],n=o.getHeight()||this.vDomRowHeight;if(e>=n){var i=o.getElement();i.parentNode.removeChild(i),this.vDomTopPad+=n,t.style.paddingTop=this.vDomTopPad+"px",this.vDomScrollPosTop+=this.vDomTop?n:n+this.vDomWindowBuffer,this.vDomTop++,e=this.scrollTop-this.vDomScrollPosTop,this._removeTopRow(e)}},p.prototype._addBottomRow=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=this.tableElement,n=this.getDisplayRows();if(this.vDomBottom=a&&(this.styleRow(r,i),o.appendChild(r.getElement()),r.initialized&&r.heightInitialized||(this.vDomBottomNewRows.push(r),r.heightInitialized||r.clearCellHeight()),r.initialize(),this.vDomBottomPad-=a,(this.vDomBottomPad<0||i==this.displayRowsCount-1)&&(this.vDomBottomPad=0),o.style.paddingBottom=this.vDomBottomPad+"px",this.vDomScrollPosBottom+=a,this.vDomBottom++),e=this.scrollTop-this.vDomScrollPosBottom,r.getHeight()>this.vDomWindowBuffer&&(this.vDomWindowBuffer=2*r.getHeight()),t=(n[this.vDomBottom+1].getHeight()||this.vDomRowHeight)?this._addBottomRow(e,t+1):this._quickNormalizeRowHeight(this.vDomBottomNewRows)}},p.prototype._removeBottomRow=function(e){var t=this.tableElement,o=this.getDisplayRows()[this.vDomBottom],n=o.getHeight()||this.vDomRowHeight;if(e>=n){var i=o.getElement();i.parentNode&&i.parentNode.removeChild(i),this.vDomBottomPad+=n,this.vDomBottomPad<0&&(this.vDomBottomPad=0),t.style.paddingBottom=this.vDomBottomPad+"px",this.vDomScrollPosBottom-=n,this.vDomBottom--,e=-(this.scrollTop-this.vDomScrollPosBottom),this._removeBottomRow(e)}},p.prototype._quickNormalizeRowHeight=function(e){e.forEach(function(e){e.calcHeight()}),e.forEach(function(e){e.setCellHeight()}),e.length=0},p.prototype.normalizeHeight=function(){this.activeRows.forEach(function(e){e.normalizeHeight()})},p.prototype.adjustTableSize=function(){var e,t=this.element.clientHeight;if("virtual"===this.renderMode){var o=Math.floor(this.columnManager.getElement().getBoundingClientRect().height+(this.table.footerManager&&this.table.footerManager.active&&!this.table.footerManager.external?this.table.footerManager.getElement().getBoundingClientRect().height:0));this.fixedHeight?(this.element.style.minHeight="calc(100% - "+o+"px)",this.element.style.height="calc(100% - "+o+"px)",this.element.style.maxHeight="calc(100% - "+o+"px)"):(this.element.style.height="",this.element.style.height=this.table.element.clientHeight-o+"px",this.element.scrollTop=this.scrollTop),this.height=this.element.clientHeight,this.vDomWindowBuffer=this.table.options.virtualDomBuffer||this.height,this.fixedHeight||t==this.element.clientHeight||(e=this.table.modExists("resizeTable"),(e&&!this.table.modules.resizeTable.autoResize||!e)&&this.redraw())}},p.prototype.reinitialize=function(){this.rows.forEach(function(e){e.reinitialize(!0)})},p.prototype.blockRedraw=function(){this.redrawBlock=!0,this.redrawBlockRestoreConfig=!1},p.prototype.restoreRedraw=function(){this.redrawBlock=!1,this.redrawBlockRestoreConfig?(this.refreshActiveData(this.redrawBlockRestoreConfig.stage,this.redrawBlockRestoreConfig.skipStage,this.redrawBlockRestoreConfig.renderInPosition),this.redrawBlockRestoreConfig=!1):this.redrawBlockRederInPosition&&this.reRenderInPosition(),this.redrawBlockRederInPosition=!1},p.prototype.redraw=function(e){var t=this.scrollLeft;this.adjustTableSize(),this.table.tableWidth=this.table.element.clientWidth,e?this.renderTable():("classic"==this.renderMode?this.table.options.groupBy?this.refreshActiveData("group",!1,!1):this._simpleRender():(this.reRenderInPosition(),this.scrollHorizontal(t)),this.displayRowsCount||this.table.options.placeholder&&this.getElement().appendChild(this.table.options.placeholder))},p.prototype.resetScroll=function(){if(this.element.scrollLeft=0,this.element.scrollTop=0,"ie"===this.table.browser){var e=document.createEvent("Event");e.initEvent("scroll",!1,!0),this.element.dispatchEvent(e)}else this.element.dispatchEvent(new Event("scroll"))};var l=function(e){this.table=e,this.element=this.table.rowManager.tableElement,this.holderEl=this.table.rowManager.element,this.leftCol=0,this.rightCol=0,this.scrollLeft=0,this.vDomScrollPosLeft=0,this.vDomScrollPosRight=0,this.vDomPadLeft=0,this.vDomPadRight=0,this.fitDataColAvg=0,this.window=200,this.initialized=!1,this.columns=[],this.compatabilityCheck()&&this.initialize()};l.prototype.compatabilityCheck=function(){var e=this.table.options,t=!1,o=!0;return"fitDataTable"==e.layout&&(console.warn("Horizontal Vitrual DOM is not compatible with fitDataTable layout mode"),o=!1),e.responsiveLayout&&(console.warn("Horizontal Vitrual DOM is not compatible with responsive columns"),o=!1),this.table.rtl&&(console.warn("Horizontal Vitrual DOM is not currently compatible with RTL text direction"),o=!1),e.columns&&(t=e.columns.find(function(e){return e.frozen}),t&&(console.warn("Horizontal Vitrual DOM is not compatible with frozen columns"),o=!1)),o||(e.virtualDomHoz=!1),o},l.prototype.initialize=function(){var e=this;this.holderEl.addEventListener("scroll",function(){var t=e.holderEl.scrollLeft;e.scrollLeft!=t&&(e.scrollLeft=t,e.scroll(t-(e.vDomScrollPosLeft+e.window)))})},l.prototype.deinitialize=function(){this.initialized=!1},l.prototype.clear=function(){this.columns=[],this.leftCol=-1,this.rightCol=0,this.vDomScrollPosLeft=0,this.vDomScrollPosRight=0,this.vDomPadLeft=0,this.vDomPadRight=0},l.prototype.dataChange=function(){var e,t,o,n=!1,i=0,r=0;if("fitData"===this.table.options.layout){if(this.table.columnManager.columnsByIndex.forEach(function(e){!e.definition.width&&e.visible&&(n=!0)}),n&&n&&this.table.rowManager.getDisplayRows().length&&(this.vDomScrollPosRight=this.scrollLeft+this.holderEl.clientWidth+this.window,this.table.options.groupBy?(e=this.table.modules.groupRows.getGroups(!1)[0],t=e.getRows(!1)[0]):t=this.table.rowManager.getDisplayRows()[0],t)){o=t.getElement(),t.generateCells(),this.element.appendChild(o);for(r=0;rthis.vDomScrollPosRight)break}for(o.parentNode.removeChild(o),this.fitDataColAvg=Math.floor(i/(r+1)),r;ro.vDomScrollPosLeft&&i.8*this.holderEl.clientWidth?this.reinitialize():e>0?(this.addColRight(),this.removeColLeft()):(this.addColLeft(),this.removeColRight())},l.prototype.colPositionAdjust=function(e,t,o){for(var n=e;n=this.columns.length-1?this.vDomPadRight=0:this.vDomPadRight-=n.getWidth(),this.element.style.paddingRight=this.vDomPadRight+"px",this.addColRight())},l.prototype.addColLeft=function(){var e=this.columns[this.leftCol-1];if(e&&e.modules.vdomHoz.rightPos>=this.vDomScrollPosLeft){var t=this.table.rowManager.getVisibleRows();t.forEach(function(t){if("group"!==t.type){var o=t.getCell(e);t.getElement().prepend(o.getElement()),o.cellRendered()}}),this.leftCol?this.vDomPadLeft-=e.getWidth():this.vDomPadLeft=0,this.element.style.paddingLeft=this.vDomPadLeft+"px",this.leftCol--,this.addColLeft()}},l.prototype.removeColRight=function(e){var t;e=this.columns[this.rightCol];e&&e.modules.vdomHoz.leftPos>this.vDomScrollPosRight&&(t=this.table.rowManager.getVisibleRows(),e.modules.vdomHoz.visible=!1,t.forEach(function(t){if("group"!==t.type){var o=t.getCell(e);t.getElement().removeChild(o.getElement())}}),this.vDomPadRight+=e.getWidth(),this.element.style.paddingRight=this.vDomPadRight+"px",this.rightCol--,this.removeColRight())},l.prototype.removeColLeft=function(){var e,t=this.columns[this.leftCol];t&&t.modules.vdomHoz.rightPos-1}return!1},u.prototype.treeCollapse=function(){this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.collapseRow(this._row)},u.prototype.treeExpand=function(){this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.expandRow(this._row)},u.prototype.treeToggle=function(){this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.toggleRow(this._row)},u.prototype.getTreeParent=function(){return!!this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.getTreeParent(this._row)},u.prototype.getTreeChildren=function(){return!!this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.getTreeChildren(this._row,!0)},u.prototype.addTreeChild=function(e,t,o){return!!this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.addTreeChildRow(this._row,e,t,o)},u.prototype.reformat=function(){return this._row.reinitialize()},u.prototype.getGroup=function(){return this._row.getGroup().getComponent()},u.prototype.getTable=function(){return this._row.table},u.prototype.getNextRow=function(){var e=this._row.nextRow();return e?e.getComponent():e},u.prototype.getPrevRow=function(){var e=this._row.prevRow();return e?e.getComponent():e};var b=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"row";this.table=t.table,this.parent=t,this.data={},this.type=o,this.element=!1,this.modules={},this.cells=[],this.height=0,this.heightStyled="",this.manualHeight=!1,this.outerHeight=0,this.initialized=!1,this.heightInitialized=!1,this.component=null,this.created=!1,this.setData(e)};b.prototype.create=function(){this.created||(this.created=!0,this.generateElement())},b.prototype.createElement=function(){var e=document.createElement("div");e.classList.add("tabulator-row"),e.setAttribute("role","row"),this.element=e},b.prototype.getElement=function(){return this.create(),this.element},b.prototype.detachElement=function(){this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)},b.prototype.generateElement=function(){var e,t,o,n=this;this.createElement(),!1!==n.table.options.selectable&&n.table.modExists("selectRow")&&n.table.modules.selectRow.initializeRow(this),!1!==n.table.options.movableRows&&n.table.modExists("moveRow")&&n.table.modules.moveRow.initializeRow(this),!1!==n.table.options.dataTree&&n.table.modExists("dataTree")&&n.table.modules.dataTree.initializeRow(this),"collapse"===n.table.options.responsiveLayout&&n.table.modExists("responsiveLayout")&&n.table.modules.responsiveLayout.initializeRow(this),(n.table.options.rowContextMenu||n.table.options.rowClickMenu)&&this.table.modExists("menu")&&n.table.modules.menu.initializeRow(this),n.table.options.rowClick&&n.element.addEventListener("click",function(e){n.table.options.rowClick(e,n.getComponent())}),n.table.options.rowDblClick&&n.element.addEventListener("dblclick",function(e){n.table.options.rowDblClick(e,n.getComponent())}),n.table.options.rowContext&&n.element.addEventListener("contextmenu",function(e){n.table.options.rowContext(e,n.getComponent())}),n.table.options.rowMouseEnter&&n.element.addEventListener("mouseenter",function(e){n.table.options.rowMouseEnter(e,n.getComponent())}),n.table.options.rowMouseLeave&&n.element.addEventListener("mouseleave",function(e){n.table.options.rowMouseLeave(e,n.getComponent())}),n.table.options.rowMouseOver&&n.element.addEventListener("mouseover",function(e){n.table.options.rowMouseOver(e,n.getComponent())}),n.table.options.rowMouseOut&&n.element.addEventListener("mouseout",function(e){n.table.options.rowMouseOut(e,n.getComponent())}),n.table.options.rowMouseMove&&n.element.addEventListener("mousemove",function(e){n.table.options.rowMouseMove(e,n.getComponent())}),n.table.options.rowTap&&(o=!1,n.element.addEventListener("touchstart",function(e){o=!0},{passive:!0}),n.element.addEventListener("touchend",function(e){o&&n.table.options.rowTap(e,n.getComponent()),o=!1})),n.table.options.rowDblTap&&(e=null,n.element.addEventListener("touchend",function(t){e?(clearTimeout(e),e=null,n.table.options.rowDblTap(t,n.getComponent())):e=setTimeout(function(){clearTimeout(e),e=null},300)})),n.table.options.rowTapHold&&(t=null,n.element.addEventListener("touchstart",function(e){clearTimeout(t),t=setTimeout(function(){clearTimeout(t),t=null,o=!1,n.table.options.rowTapHold(e,n.getComponent())},1e3)},{passive:!0}),n.element.addEventListener("touchend",function(e){clearTimeout(t),t=null}))},b.prototype.generateCells=function(){this.cells=this.table.columnManager.generateCells(this)},b.prototype.initialize=function(e){var t=this;if(this.create(),!this.initialized||e){this.deleteCells();while(this.element.firstChild)this.element.removeChild(this.element.firstChild);this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.layoutRow(this),this.generateCells(),this.table.options.virtualDomHoz&&this.table.vdomHoz.initialized?this.table.vdomHoz.initializeRow(this):this.cells.forEach(function(e){t.element.appendChild(e.getElement()),e.cellRendered()}),e&&this.normalizeHeight(),this.table.options.dataTree&&this.table.modExists("dataTree")&&this.table.modules.dataTree.layoutRow(this),"collapse"===this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout")&&this.table.modules.responsiveLayout.layoutRow(this),this.table.options.rowFormatter&&this.table.options.rowFormatter(this.getComponent()),this.table.options.resizableRows&&this.table.modExists("resizeRows")&&this.table.modules.resizeRows.initializeRow(this),this.initialized=!0}else this.table.options.virtualDomHoz&&this.table.vdomHoz.reinitializeRow(this)},b.prototype.reinitializeHeight=function(){this.heightInitialized=!1,this.element&&null!==this.element.offsetParent&&this.normalizeHeight(!0)},b.prototype.reinitialize=function(e){this.initialized=!1,this.heightInitialized=!1,this.manualHeight||(this.height=0,this.heightStyled=""),this.element&&null!==this.element.offsetParent&&this.initialize(!0),this.table.options.dataTree&&this.table.modExists("dataTree",!0)&&this.table.modules.dataTree.getTreeChildren(this,!1,!0).forEach(function(e){e.reinitialize(!0)})},b.prototype.calcHeight=function(e){var t=0,o=this.table.options.resizableRows?this.element.clientHeight:0;this.cells.forEach(function(e){var o=e.getHeight();o>t&&(t=o)}),this.height=e?Math.max(t,o):this.manualHeight?this.height:Math.max(t,o),this.heightStyled=this.height?this.height+"px":"",this.outerHeight=this.element.offsetHeight},b.prototype.setCellHeight=function(){this.cells.forEach(function(e){e.setHeight()}),this.heightInitialized=!0},b.prototype.clearCellHeight=function(){this.cells.forEach(function(e){e.clearHeight()})},b.prototype.normalizeHeight=function(e){e&&this.clearCellHeight(),this.calcHeight(e),this.setCellHeight()},b.prototype.setHeight=function(e,t){(this.height!=e||t)&&(this.manualHeight=!0,this.height=e,this.heightStyled=e?e+"px":"",this.setCellHeight(),this.outerHeight=this.element.offsetHeight)},b.prototype.getHeight=function(){return this.outerHeight},b.prototype.getWidth=function(){return this.element.offsetWidth},b.prototype.deleteCell=function(e){var t=this.cells.indexOf(e);t>-1&&this.cells.splice(t,1)},b.prototype.setData=function(e){this.table.modExists("mutator")&&(e=this.table.modules.mutator.transformRow(e,"data")),this.data=e,this.table.options.reactiveData&&this.table.modExists("reactiveData",!0)&&this.table.modules.reactiveData.watchRow(this)},b.prototype.updateData=function(e){var t,o=this,n=this.element&&f.prototype.helpers.elVisible(this.element),i={};return new Promise(function(r,a){for(var s in"string"===typeof e&&(e=JSON.parse(e)),o.table.options.reactiveData&&o.table.modExists("reactiveData",!0)&&o.table.modules.reactiveData.block(),o.table.modExists("mutator")?(i=Object.assign(i,o.data),i=Object.assign(i,e),t=o.table.modules.mutator.transformRow(i,"data",e)):t=e,t)o.data[s]=t[s];for(var s in o.table.options.reactiveData&&o.table.modExists("reactiveData",!0)&&o.table.modules.reactiveData.unblock(),e){var c=o.table.columnManager.getColumnsByFieldRoot(s);c.forEach(function(e){var i=o.getCell(e.getField());if(i){var r=e.getFieldValue(t);i.getValue()!=r&&(i.setValueProcessData(r),n&&i.cellRendered())}})}o.table.options.groupUpdateOnCellEdit&&o.table.options.groupBy&&o.table.modExists("groupRows")&&o.table.modules.groupRows.reassignRowToGroup(o.row),n?(o.normalizeHeight(!0),o.table.options.rowFormatter&&o.table.options.rowFormatter(o.getComponent())):(o.initialized=!1,o.height=0,o.heightStyled=""),!1!==o.table.options.dataTree&&o.table.modExists("dataTree")&&o.table.modules.dataTree.redrawNeeded(e)&&(o.table.modules.dataTree.initializeRow(o),n&&(o.table.modules.dataTree.layoutRow(o),o.table.rowManager.refreshActiveData("tree",!1,!0))),o.table.options.rowUpdated.call(o.table,o.getComponent()),o.table.options.dataChanged&&o.table.options.dataChanged.call(o.table,o.table.rowManager.getData()),r()})},b.prototype.getData=function(e){return e&&this.table.modExists("accessor")?this.table.modules.accessor.transformRow(this,e):this.data},b.prototype.getCell=function(e){var t=!1;return e=this.table.columnManager.findColumn(e),t=this.cells.find(function(t){return t.column===e}),t},b.prototype.getCellIndex=function(e){return this.cells.findIndex(function(t){return t===e})},b.prototype.findNextEditableCell=function(e){var t=!1;if(e0)for(var o=e-1;o>=0;o--){var n=this.cells[o],i=!0;if(n.column.modules.edit&&f.prototype.helpers.elVisible(n.getElement())&&("function"==typeof n.column.modules.edit.check&&(i=n.column.modules.edit.check(n.getComponent())),i)){t=n;break}}return t},b.prototype.getCells=function(){return this.cells},b.prototype.nextRow=function(){var e=this.table.rowManager.nextDisplayRow(this,!0);return e||!1},b.prototype.prevRow=function(){var e=this.table.rowManager.prevDisplayRow(this,!0);return e||!1},b.prototype.moveToRow=function(e,t){var o=this.table.rowManager.findRow(e);o?(this.table.rowManager.moveRowActual(this,o,!t),this.table.rowManager.refreshActiveData("display",!1,!0)):console.warn("Move Error - No matching row found:",e)},b.prototype.validate=function(){var e=[];return this.cells.forEach(function(t){t.validate()||e.push(t.getComponent())}),!e.length||e},b.prototype.delete=function(){var e=this;return new Promise(function(t,o){var n,i;e.table.options.history&&e.table.modExists("history")&&(e.table.options.groupBy&&e.table.modExists("groupRows")?(i=e.getGroup().rows,n=i.indexOf(e),n&&(n=i[n-1])):(n=e.table.rowManager.getRowIndex(e),n&&(n=e.table.rowManager.rows[n-1])),e.table.modules.history.action("rowDelete",e,{data:e.getData(),pos:!n,index:n})),e.deleteActual(),t()})},b.prototype.deleteActual=function(e){this.table.rowManager.getRowIndex(this);this.detatchModules(),this.table.options.reactiveData&&this.table.modExists("reactiveData",!0),this.modules.group&&this.modules.group.removeRow(this),this.table.rowManager.deleteRow(this,e),this.deleteCells(),this.initialized=!1,this.heightInitialized=!1,this.element=!1,this.table.options.dataTree&&this.table.modExists("dataTree",!0)&&this.table.modules.dataTree.rowDelete(this),this.table.modExists("columnCalcs")&&(this.table.options.groupBy&&this.table.modExists("groupRows")?this.table.modules.columnCalcs.recalcRowGroup(this):this.table.modules.columnCalcs.recalc(this.table.rowManager.activeRows))},b.prototype.detatchModules=function(){this.table.modExists("selectRow")&&this.table.modules.selectRow._deselectRow(this,!0),this.table.modExists("edit")&&this.table.modules.edit.currentCell.row===this&&this.table.modules.edit.cancelEdit(),this.table.modExists("frozenRows")&&this.table.modules.frozenRows.detachRow(this)},b.prototype.deleteCells=function(){for(var e=this.cells.length,t=0;t",footerElement:!1,index:"id",textDirection:"auto",keybindings:[],tabEndNewRow:!1,invalidOptionWarnings:!0,clipboard:!1,clipboardCopyStyled:!0,clipboardCopyConfig:!1,clipboardCopyFormatter:!1,clipboardCopyRowRange:"active",clipboardPasteParser:"table",clipboardPasteAction:"insert",clipboardCopied:function(){},clipboardPasted:function(){},clipboardPasteError:function(){},downloadDataFormatter:!1,downloadReady:function(e,t){return t},downloadComplete:!1,downloadConfig:{},downloadRowRange:"active",dataTree:!1,dataTreeFilter:!0,dataTreeSort:!0,dataTreeElementColumn:!1,dataTreeBranchElement:!0,dataTreeChildIndent:9,dataTreeChildField:"_children",dataTreeCollapseElement:!1,dataTreeExpandElement:!1,dataTreeStartExpanded:!1,dataTreeRowExpanded:function(){},dataTreeRowCollapsed:function(){},dataTreeChildColumnCalcs:!1,dataTreeSelectPropagate:!1,printAsHtml:!1,printFormatter:!1,printHeader:!1,printFooter:!1,printCopyStyle:!0,printStyled:!0,printVisibleRows:!0,printRowRange:"visible",printConfig:{},addRowPos:"bottom",selectable:"highlight",selectableRangeMode:"drag",selectableRollingSelection:!0,selectablePersistence:!0,selectableCheck:function(e,t){return!0},headerFilterLiveFilterDelay:300,headerFilterPlaceholder:!1,headerVisible:!0,history:!1,locale:!1,langs:{},virtualDom:!0,virtualDomBuffer:0,virtualDomHoz:!1,persistentLayout:!1,persistentSort:!1,persistentFilter:!1,persistenceID:"",persistenceMode:!0,persistenceReaderFunc:!1,persistenceWriterFunc:!1,persistence:!1,responsiveLayout:!1,responsiveLayoutCollapseStartOpen:!0,responsiveLayoutCollapseUseFormatters:!0,responsiveLayoutCollapseFormatter:!1,pagination:!1,paginationSize:!1,paginationInitialPage:1,paginationButtonCount:5,paginationSizeSelector:!1,paginationElement:!1,paginationDataSent:{},paginationDataReceived:{},paginationAddRow:"page",ajaxURL:!1,ajaxURLGenerator:!1,ajaxParams:{},ajaxConfig:"get",ajaxContentType:"form",ajaxRequestFunc:!1,ajaxLoader:!0,ajaxLoaderLoading:!1,ajaxLoaderError:!1,ajaxFiltering:!1,ajaxSorting:!1,ajaxProgressiveLoad:!1,ajaxProgressiveLoadDelay:0,ajaxProgressiveLoadScrollMargin:0,groupBy:!1,groupStartOpen:!0,groupValues:!1,groupUpdateOnCellEdit:!1,groupHeader:!1,groupHeaderPrint:null,groupHeaderClipboard:null,groupHeaderHtmlOutput:null,groupHeaderDownload:null,htmlOutputConfig:!1,movableColumns:!1,movableRows:!1,movableRowsConnectedTables:!1,movableRowsConnectedElements:!1,movableRowsSender:!1,movableRowsReceiver:"insert",movableRowsSendingStart:function(){},movableRowsSent:function(){},movableRowsSentFailed:function(){},movableRowsSendingStop:function(){},movableRowsReceivingStart:function(){},movableRowsReceived:function(){},movableRowsReceivedFailed:function(){},movableRowsReceivingStop:function(){},movableRowsElementDrop:function(){},scrollToRowPosition:"top",scrollToRowIfVisible:!0,scrollToColumnPosition:"left",scrollToColumnIfVisible:!0,rowFormatter:!1,rowFormatterPrint:null,rowFormatterClipboard:null,rowFormatterHtmlOutput:null,placeholder:!1,tableBuilding:function(){},tableBuilt:function(){},renderStarted:function(){},renderComplete:function(){},rowClick:!1,rowDblClick:!1,rowContext:!1,rowTap:!1,rowDblTap:!1,rowTapHold:!1,rowMouseEnter:!1,rowMouseLeave:!1,rowMouseOver:!1,rowMouseOut:!1,rowMouseMove:!1,rowContextMenu:!1,rowClickMenu:!1,rowAdded:function(){},rowDeleted:function(){},rowMoved:function(){},rowUpdated:function(){},rowSelectionChanged:function(){},rowSelected:function(){},rowDeselected:function(){},rowResized:function(){},cellClick:!1,cellDblClick:!1,cellContext:!1,cellTap:!1,cellDblTap:!1,cellTapHold:!1,cellMouseEnter:!1,cellMouseLeave:!1,cellMouseOver:!1,cellMouseOut:!1,cellMouseMove:!1,cellEditing:function(){},cellEdited:function(){},cellEditCancelled:function(){},columnMoved:!1,columnResized:function(){},columnTitleChanged:function(){},columnVisibilityChanged:function(){},htmlImporting:function(){},htmlImported:function(){},dataLoading:function(){},dataLoaded:function(){},dataEdited:!1,dataChanged:!1,ajaxRequesting:function(){},ajaxResponse:!1,ajaxError:function(){},dataFiltering:!1,dataFiltered:!1,dataSorting:function(){},dataSorted:function(){},groupToggleElement:"arrow",groupClosedShowCalcs:!1,dataGrouping:function(){},dataGrouped:!1,groupVisibilityChanged:function(){},groupClick:!1,groupDblClick:!1,groupContext:!1,groupContextMenu:!1,groupClickMenu:!1,groupTap:!1,groupDblTap:!1,groupTapHold:!1,columnCalcs:!0,pageLoaded:function(){},localized:function(){},validationMode:"blocking",validationFailed:function(){},historyUndo:function(){},historyRedo:function(){},scrollHorizontal:function(){},scrollVertical:function(){}},f.prototype.initializeOptions=function(e){if(!1!==e.invalidOptionWarnings)for(var t in e)"undefined"===typeof this.defaultOptions[t]&&console.warn("Invalid table constructor option:",t);for(var t in this.defaultOptions)t in e?this.options[t]=e[t]:Array.isArray(this.defaultOptions[t])?this.options[t]=Object.assign([],this.defaultOptions[t]):"object"===r(this.defaultOptions[t])&&null!==this.defaultOptions[t]?this.options[t]=Object.assign({},this.defaultOptions[t]):this.options[t]=this.defaultOptions[t]},f.prototype.initializeElement=function(e){return"undefined"!==typeof HTMLElement&&e instanceof HTMLElement?(this.element=e,!0):"string"===typeof e?(this.element=document.querySelector(e),!!this.element||(console.error("Tabulator Creation Error - no element found matching selector: ",e),!1)):(console.error("Tabulator Creation Error - Invalid element provided:",e),!1)},f.prototype.rtlCheck=function(){var e=window.getComputedStyle(this.element);switch(this.options.textDirection){case"auto":if("rtl"!==e.direction)break;case"rtl":this.element.classList.add("tabulator-rtl"),this.rtl=!0;break;case"ltr":this.element.classList.add("tabulator-ltr");default:this.rtl=!1}},f.prototype._mapDepricatedFunctionality=function(){(this.options.persistentLayout||this.options.persistentSort||this.options.persistentFilter)&&(this.options.persistence||(this.options.persistence={})),this.options.dataEdited&&(console.warn("DEPRECATION WARNING - dataEdited option has been deprecated, please use the dataChanged option instead"),this.options.dataChanged=this.options.dataEdited),this.options.downloadDataFormatter&&console.warn("DEPRECATION WARNING - downloadDataFormatter option has been deprecated"),"undefined"!==typeof this.options.clipboardCopyHeader&&(this.options.columnHeaders=this.options.clipboardCopyHeader,console.warn("DEPRECATION WARNING - clipboardCopyHeader option has been deprecated, please use the columnHeaders property on the clipboardCopyConfig option")),!0!==this.options.printVisibleRows&&(console.warn("printVisibleRows option is deprecated, you should now use the printRowRange option"),this.options.persistence.printRowRange="active"),!0!==this.options.printCopyStyle&&(console.warn("printCopyStyle option is deprecated, you should now use the printStyled option"),this.options.persistence.printStyled=this.options.printCopyStyle),this.options.persistentLayout&&(console.warn("persistentLayout option is deprecated, you should now use the persistence option"),!0!==this.options.persistence&&"undefined"===typeof this.options.persistence.columns&&(this.options.persistence.columns=!0)),this.options.persistentSort&&(console.warn("persistentSort option is deprecated, you should now use the persistence option"),!0!==this.options.persistence&&"undefined"===typeof this.options.persistence.sort&&(this.options.persistence.sort=!0)),this.options.persistentFilter&&(console.warn("persistentFilter option is deprecated, you should now use the persistence option"),!0!==this.options.persistence&&"undefined"===typeof this.options.persistence.filter&&(this.options.persistence.filter=!0)),this.options.columnVertAlign&&(console.warn("columnVertAlign option is deprecated, you should now use the columnHeaderVertAlign option"),this.options.columnHeaderVertAlign=this.options.columnVertAlign)},f.prototype._clearSelection=function(){this.element.classList.add("tabulator-block-select"),window.getSelection?window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges():document.selection&&document.selection.empty(),this.element.classList.remove("tabulator-block-select")},f.prototype._create=function(){this._clearObjectPointers(),this._mapDepricatedFunctionality(),this.bindModules(),this.rtlCheck(),"TABLE"===this.element.tagName&&this.modExists("htmlTableImport",!0)&&this.modules.htmlTableImport.parseTable(),this.columnManager=new a(this),this.rowManager=new p(this),this.footerManager=new h(this),this.columnManager.setRowManager(this.rowManager),this.rowManager.setColumnManager(this.columnManager),this.options.virtualDomHoz&&(this.vdomHoz=new l(this)),this._buildElement(),this._loadInitialData()},f.prototype._clearObjectPointers=function(){this.options.columns=this.options.columns.slice(0),this.options.reactiveData||(this.options.data=this.options.data.slice(0))},f.prototype._buildElement=function(){var e=this,t=this.element,o=this.modules,n=this.options;n.tableBuilding.call(this),t.classList.add("tabulator"),t.setAttribute("role","grid");while(t.firstChild)t.removeChild(t.firstChild);for(var i in n.height&&(n.height=isNaN(n.height)?n.height:n.height+"px",t.style.height=n.height),!1!==n.minHeight&&(n.minHeight=isNaN(n.minHeight)?n.minHeight:n.minHeight+"px",t.style.minHeight=n.minHeight),!1!==n.maxHeight&&(n.maxHeight=isNaN(n.maxHeight)?n.maxHeight:n.maxHeight+"px",t.style.maxHeight=n.maxHeight),this.columnManager.initialize(),this.rowManager.initialize(),this._detectBrowser(),this.modExists("layout",!0)&&o.layout.initialize(n.layout),o.localize.initialize(),!1!==n.headerFilterPlaceholder&&o.localize.setHeaderFilterPlaceholder(n.headerFilterPlaceholder),n.langs)o.localize.installLang(i,n.langs[i]);if(o.localize.setLocale(n.locale),"string"==typeof n.placeholder){var r=document.createElement("div");r.classList.add("tabulator-placeholder");var a=document.createElement("span");a.innerHTML=n.placeholder,r.appendChild(a),n.placeholder=r}if(t.appendChild(this.columnManager.getElement()),t.appendChild(this.rowManager.getElement()),n.footerElement&&this.footerManager.activate(),n.persistence&&this.modExists("persistence",!0)&&o.persistence.initialize(),n.movableRows&&this.modExists("moveRow")&&o.moveRow.initialize(),n.autoColumns&&this.options.data&&this.columnManager.generateColumnsFromRowData(this.options.data),this.modExists("columnCalcs")&&o.columnCalcs.initialize(),this.columnManager.setColumns(n.columns),n.dataTree&&this.modExists("dataTree",!0)&&o.dataTree.initialize(),this.modExists("frozenRows")&&this.modules.frozenRows.initialize(),(n.persistence&&this.modExists("persistence",!0)&&o.persistence.config.sort||n.initialSort)&&this.modExists("sort",!0)){var s=[];n.persistence&&this.modExists("persistence",!0)&&o.persistence.config.sort?(s=o.persistence.load("sort"),!1===s&&n.initialSort&&(s=n.initialSort)):n.initialSort&&(s=n.initialSort),o.sort.setSort(s)}if((n.persistence&&this.modExists("persistence",!0)&&o.persistence.config.filter||n.initialFilter)&&this.modExists("filter",!0)){var c=[];n.persistence&&this.modExists("persistence",!0)&&o.persistence.config.filter?(c=o.persistence.load("filter"),!1===c&&n.initialFilter&&(c=n.initialFilter)):n.initialFilter&&(c=n.initialFilter),o.filter.setFilter(c)}n.initialHeaderFilter&&this.modExists("filter",!0)&&n.initialHeaderFilter.forEach(function(t){var n=e.columnManager.findColumn(t.field);if(!n)return console.warn("Column Filter Error - No matching column found:",t.field),!1;o.filter.setHeaderFilterValue(n,t.value)}),this.modExists("ajax")&&o.ajax.initialize(),n.pagination&&this.modExists("page",!0)&&o.page.initialize(),n.groupBy&&this.modExists("groupRows",!0)&&o.groupRows.initialize(),this.modExists("keybindings")&&o.keybindings.initialize(),this.modExists("selectRow")&&o.selectRow.clearSelectionData(!0),n.autoResize&&this.modExists("resizeTable")&&o.resizeTable.initialize(),this.modExists("clipboard")&&o.clipboard.initialize(),n.printAsHtml&&this.modExists("print")&&o.print.initialize(),n.tableBuilt.call(this)},f.prototype._loadInitialData=function(){var e=this;if(e.options.pagination&&e.modExists("page"))if(e.modules.page.reset(!0,!0),"local"==e.options.pagination){if(e.options.data.length)e.rowManager.setData(e.options.data,!1,!0);else{if((e.options.ajaxURL||e.options.ajaxURLGenerator)&&e.modExists("ajax"))return void e.modules.ajax.loadData(!1,!0).then(function(){}).catch(function(){e.options.paginationInitialPage&&e.modules.page.setPage(e.options.paginationInitialPage)});e.rowManager.setData(e.options.data,!1,!0)}e.options.paginationInitialPage&&e.modules.page.setPage(e.options.paginationInitialPage)}else e.options.ajaxURL?e.modules.page.setPage(e.options.paginationInitialPage).then(function(){}).catch(function(){}):e.rowManager.setData([],!1,!0);else e.options.data.length?e.rowManager.setData(e.options.data):(e.options.ajaxURL||e.options.ajaxURLGenerator)&&e.modExists("ajax")?e.modules.ajax.loadData(!1,!0).then(function(){}).catch(function(){}):e.rowManager.setData(e.options.data,!1,!0)},f.prototype.destroy=function(){var e=this.element;f.prototype.comms.deregister(this),this.options.reactiveData&&this.modExists("reactiveData",!0)&&this.modules.reactiveData.unwatchData(),this.rowManager.rows.forEach(function(e){e.wipe()}),this.rowManager.rows=[],this.rowManager.activeRows=[],this.rowManager.displayRows=[],this.options.autoResize&&this.modExists("resizeTable")&&this.modules.resizeTable.clearBindings(),this.modExists("keybindings")&&this.modules.keybindings.clearBindings();while(e.firstChild)e.removeChild(e.firstChild);e.classList.remove("tabulator")},f.prototype._detectBrowser=function(){var e=navigator.userAgent||navigator.vendor||window.opera;e.indexOf("Trident")>-1?(this.browser="ie",this.browserSlow=!0):e.indexOf("Edge")>-1?(this.browser="edge",this.browserSlow=!0):e.indexOf("Firefox")>-1?(this.browser="firefox",this.browserSlow=!1):(this.browser="other",this.browserSlow=!1),this.browserMobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4))},f.prototype.blockRedraw=function(){return this.rowManager.blockRedraw()},f.prototype.restoreRedraw=function(){return this.rowManager.restoreRedraw()},f.prototype.setDataFromLocalFile=function(e){var t=this;return new Promise(function(o,n){var i=document.createElement("input");i.type="file",i.accept=e||".json,application/json",i.addEventListener("change",function(e){var r,a=i.files[0],s=new FileReader;s.readAsText(a),s.onload=function(e){try{r=JSON.parse(s.result)}catch(e){return console.warn("File Load Error - File contents is invalid JSON",e),void n(e)}t.setData(r).then(function(e){o(e)}).catch(function(e){o(e)})},s.onerror=function(e){console.warn("File Load Error - Unable to read file"),n()}}),i.click()})},f.prototype.setData=function(e,t,o){return this.modExists("ajax")&&this.modules.ajax.blockActiveRequest(),this._setData(e,t,o,!1,!0)},f.prototype._setData=function(e,t,o,n,i){var r=this;return"string"!==typeof e?e?r.rowManager.setData(e,n,i):r.modExists("ajax")&&(r.modules.ajax.getUrl||r.options.ajaxURLGenerator)?"remote"==r.options.pagination&&r.modExists("page",!0)?(r.modules.page.reset(!0,!0),r.modules.page.setPage(1)):r.modules.ajax.loadData(n,i):r.rowManager.setData([],n,i):0==e.indexOf("{")||0==e.indexOf("[")?r.rowManager.setData(JSON.parse(e),n,i):r.modExists("ajax",!0)?(t&&r.modules.ajax.setParams(t),o&&r.modules.ajax.setConfig(o),r.modules.ajax.setUrl(e),"remote"==r.options.pagination&&r.modExists("page",!0)?(r.modules.page.reset(!0,!0),r.modules.page.setPage(1)):r.modules.ajax.loadData(n,i)):void 0},f.prototype.clearData=function(){this.modExists("ajax")&&this.modules.ajax.blockActiveRequest(),this.rowManager.clearData()},f.prototype.getData=function(e){return!0===e&&(console.warn("passing a boolean to the getData function is deprecated, you should now pass the string 'active'"),e="active"),this.rowManager.getData(e)},f.prototype.getDataCount=function(e){return!0===e&&(console.warn("passing a boolean to the getDataCount function is deprecated, you should now pass the string 'active'"),e="active"),this.rowManager.getDataCount(e)},f.prototype.searchRows=function(e,t,o){if(this.modExists("filter",!0))return this.modules.filter.search("rows",e,t,o)},f.prototype.searchData=function(e,t,o){if(this.modExists("filter",!0))return this.modules.filter.search("data",e,t,o)},f.prototype.getHtml=function(e,t,o){if(this.modExists("export",!0))return this.modules.export.getHtml(e,t,o)},f.prototype.print=function(e,t,o){if(this.modExists("print",!0))return this.modules.print.printFullscreen(e,t,o)},f.prototype.getAjaxUrl=function(){if(this.modExists("ajax",!0))return this.modules.ajax.getUrl()},f.prototype.replaceData=function(e,t,o){return this.modExists("ajax")&&this.modules.ajax.blockActiveRequest(),this._setData(e,t,o,!0)},f.prototype.updateData=function(e){var t=this,o=this,n=0;return new Promise(function(i,r){t.modExists("ajax")&&t.modules.ajax.blockActiveRequest(),"string"===typeof e&&(e=JSON.parse(e)),e?e.forEach(function(e){var t=o.rowManager.findRow(e[o.options.index]);t&&(n++,t.updateData(e).then(function(){n--,n||i()}))}):(console.warn("Update Error - No data provided"),r("Update Error - No data provided"))})},f.prototype.addData=function(e,t,o){var n=this;return new Promise(function(i,r){n.modExists("ajax")&&n.modules.ajax.blockActiveRequest(),"string"===typeof e&&(e=JSON.parse(e)),e?n.rowManager.addRows(e,t,o).then(function(e){var t=[];e.forEach(function(e){t.push(e.getComponent())}),i(t)}):(console.warn("Update Error - No data provided"),r("Update Error - No data provided"))})},f.prototype.updateOrAddData=function(e){var t=this,o=this,n=[],i=0;return new Promise(function(r,a){t.modExists("ajax")&&t.modules.ajax.blockActiveRequest(),"string"===typeof e&&(e=JSON.parse(e)),e?e.forEach(function(e){var t=o.rowManager.findRow(e[o.options.index]);i++,t?t.updateData(e).then(function(){i--,n.push(t.getComponent()),i||r(n)}):o.rowManager.addRows(e).then(function(e){i--,n.push(e[0].getComponent()),i||r(n)})}):(console.warn("Update Error - No data provided"),a("Update Error - No data provided"))})},f.prototype.getRow=function(e){var t=this.rowManager.findRow(e);return t?t.getComponent():(console.warn("Find Error - No matching row found:",e),!1)},f.prototype.getRowFromPosition=function(e,t){var o=this.rowManager.getRowFromPosition(e,t);return o?o.getComponent():(console.warn("Find Error - No matching row found:",e),!1)},f.prototype.deleteRow=function(e){var t=this;return new Promise(function(o,n){var i=t,r=0,a=0,s=[];function c(){r++,r==e.length&&a&&(i.rowManager.reRenderInPosition(),o())}Array.isArray(e)||(e=[e]),e.forEach(function(e){var o=t.rowManager.findRow(e,!0);o?s.push(o):(console.warn("Delete Error - No matching row found:",e),n("Delete Error - No matching row found"),c())}),s.sort(function(e,o){return t.rowManager.rows.indexOf(e)>t.rowManager.rows.indexOf(o)?1:-1}),s.forEach(function(e){e.delete().then(function(){a++,c()}).catch(function(e){c(),n(e)})})})},f.prototype.addRow=function(e,t,o){var n=this;return new Promise(function(i,r){"string"===typeof e&&(e=JSON.parse(e)),n.rowManager.addRows(e,t,o).then(function(e){n.modExists("columnCalcs")&&n.modules.columnCalcs.recalc(n.rowManager.activeRows),i(e[0].getComponent())})})},f.prototype.updateOrAddRow=function(e,t){var o=this;return new Promise(function(n,i){var r=o.rowManager.findRow(e);"string"===typeof t&&(t=JSON.parse(t)),r?r.updateData(t).then(function(){o.modExists("columnCalcs")&&o.modules.columnCalcs.recalc(o.rowManager.activeRows),n(r.getComponent())}).catch(function(e){i(e)}):r=o.rowManager.addRows(t).then(function(e){o.modExists("columnCalcs")&&o.modules.columnCalcs.recalc(o.rowManager.activeRows),n(e[0].getComponent())}).catch(function(e){i(e)})})},f.prototype.updateRow=function(e,t){var o=this;return new Promise(function(n,i){var r=o.rowManager.findRow(e);"string"===typeof t&&(t=JSON.parse(t)),r?r.updateData(t).then(function(){n(r.getComponent())}).catch(function(e){i(e)}):(console.warn("Update Error - No matching row found:",e),i("Update Error - No matching row found"))})},f.prototype.scrollToRow=function(e,t,o){var n=this;return new Promise(function(i,r){var a=n.rowManager.findRow(e);a?n.rowManager.scrollToRow(a,t,o).then(function(){i()}).catch(function(e){r(e)}):(console.warn("Scroll Error - No matching row found:",e),r("Scroll Error - No matching row found"))})},f.prototype.moveRow=function(e,t,o){var n=this.rowManager.findRow(e);n?n.moveToRow(t,o):console.warn("Move Error - No matching row found:",e)},f.prototype.getRows=function(e){return!0===e&&(console.warn("passing a boolean to the getRows function is deprecated, you should now pass the string 'active'"),e="active"),this.rowManager.getComponents(e)},f.prototype.getRowPosition=function(e,t){var o=this.rowManager.findRow(e);return o?this.rowManager.getRowPosition(o,t):(console.warn("Position Error - No matching row found:",e),!1)},f.prototype.copyToClipboard=function(e){this.modExists("clipboard",!0)&&this.modules.clipboard.copy(e)},f.prototype.setColumns=function(e){this.columnManager.setColumns(e)},f.prototype.getColumns=function(e){return this.columnManager.getComponents(e)},f.prototype.getColumn=function(e){var t=this.columnManager.findColumn(e);return t?t.getComponent():(console.warn("Find Error - No matching column found:",e),!1)},f.prototype.getColumnDefinitions=function(){return this.columnManager.getDefinitionTree()},f.prototype.getColumnLayout=function(){if(this.modExists("persistence",!0))return this.modules.persistence.parseColumns(this.columnManager.getColumns())},f.prototype.setColumnLayout=function(e){return!!this.modExists("persistence",!0)&&(this.columnManager.setColumns(this.modules.persistence.mergeDefinition(this.options.columns,e)),!0)},f.prototype.showColumn=function(e){var t=this.columnManager.findColumn(e);if(!t)return console.warn("Column Show Error - No matching column found:",e),!1;t.show(),this.options.responsiveLayout&&this.modExists("responsiveLayout",!0)&&this.modules.responsiveLayout.update()},f.prototype.hideColumn=function(e){var t=this.columnManager.findColumn(e);if(!t)return console.warn("Column Hide Error - No matching column found:",e),!1;t.hide(),this.options.responsiveLayout&&this.modExists("responsiveLayout",!0)&&this.modules.responsiveLayout.update()},f.prototype.toggleColumn=function(e){var t=this.columnManager.findColumn(e);if(!t)return console.warn("Column Visibility Toggle Error - No matching column found:",e),!1;t.visible?t.hide():t.show()},f.prototype.addColumn=function(e,t,o){var n=this;return new Promise(function(i,r){var a=n.columnManager.findColumn(o);n.columnManager.addColumn(e,t,a).then(function(e){i(e.getComponent())}).catch(function(e){r(e)})})},f.prototype.deleteColumn=function(e){var t=this;return new Promise(function(o,n){var i=t.columnManager.findColumn(e);i?i.delete().then(function(){o()}).catch(function(e){n(e)}):(console.warn("Column Delete Error - No matching column found:",e),n())})},f.prototype.updateColumnDefinition=function(e,t){var o=this;return new Promise(function(n,i){var r=o.columnManager.findColumn(e);r?r.updateDefinition(t).then(function(e){n(e)}).catch(function(e){i(e)}):(console.warn("Column Update Error - No matching column found:",e),i())})},f.prototype.moveColumn=function(e,t,o){var n=this.columnManager.findColumn(e),i=this.columnManager.findColumn(t);n?i?this.columnManager.moveColumn(n,i,o):console.warn("Move Error - No matching column found:",i):console.warn("Move Error - No matching column found:",e)},f.prototype.scrollToColumn=function(e,t,o){var n=this;return new Promise(function(i,r){var a=n.columnManager.findColumn(e);a?n.columnManager.scrollToColumn(a,t,o).then(function(){i()}).catch(function(e){r(e)}):(console.warn("Scroll Error - No matching column found:",e),r("Scroll Error - No matching column found"))})},f.prototype.setLocale=function(e){this.modules.localize.setLocale(e)},f.prototype.getLocale=function(){return this.modules.localize.getLocale()},f.prototype.getLang=function(e){return this.modules.localize.getLang(e)},f.prototype.redraw=function(e){this.columnManager.redraw(e),this.rowManager.redraw(e)},f.prototype.setHeight=function(e){"classic"!==this.rowManager.renderMode?(this.options.height=isNaN(e)?e:e+"px",this.element.style.height=this.options.height,this.rowManager.setRenderMode(),this.rowManager.redraw()):console.warn("setHeight function is not available in classic render mode")},f.prototype.setSort=function(e,t){this.modExists("sort",!0)&&(this.modules.sort.setSort(e,t),this.rowManager.sorterRefresh())},f.prototype.getSorters=function(){if(this.modExists("sort",!0))return this.modules.sort.getSort()},f.prototype.clearSort=function(){this.modExists("sort",!0)&&(this.modules.sort.clear(),this.rowManager.sorterRefresh())},f.prototype.setFilter=function(e,t,o,n){this.modExists("filter",!0)&&(this.modules.filter.setFilter(e,t,o,n),this.rowManager.filterRefresh())},f.prototype.refreshFilter=function(){this.modExists("filter",!0)&&this.rowManager.filterRefresh()},f.prototype.addFilter=function(e,t,o,n){this.modExists("filter",!0)&&(this.modules.filter.addFilter(e,t,o,n),this.rowManager.filterRefresh())},f.prototype.getFilters=function(e){if(this.modExists("filter",!0))return this.modules.filter.getFilters(e)},f.prototype.setHeaderFilterFocus=function(e){if(this.modExists("filter",!0)){var t=this.columnManager.findColumn(e);if(!t)return console.warn("Column Filter Focus Error - No matching column found:",e),!1;this.modules.filter.setHeaderFilterFocus(t)}},f.prototype.getHeaderFilterValue=function(e){if(this.modExists("filter",!0)){var t=this.columnManager.findColumn(e);if(t)return this.modules.filter.getHeaderFilterValue(t);console.warn("Column Filter Error - No matching column found:",e)}},f.prototype.setHeaderFilterValue=function(e,t){if(this.modExists("filter",!0)){var o=this.columnManager.findColumn(e);if(!o)return console.warn("Column Filter Error - No matching column found:",e),!1;this.modules.filter.setHeaderFilterValue(o,t)}},f.prototype.getHeaderFilters=function(){if(this.modExists("filter",!0))return this.modules.filter.getHeaderFilters()},f.prototype.removeFilter=function(e,t,o){this.modExists("filter",!0)&&(this.modules.filter.removeFilter(e,t,o),this.rowManager.filterRefresh())},f.prototype.clearFilter=function(e){this.modExists("filter",!0)&&(this.modules.filter.clearFilter(e),this.rowManager.filterRefresh())},f.prototype.clearHeaderFilter=function(){this.modExists("filter",!0)&&(this.modules.filter.clearHeaderFilter(),this.rowManager.filterRefresh())},f.prototype.selectRow=function(e){this.modExists("selectRow",!0)&&(!0===e&&(console.warn("passing a boolean to the selectRowselectRow function is deprecated, you should now pass the string 'active'"),e="active"),this.modules.selectRow.selectRows(e))},f.prototype.deselectRow=function(e){this.modExists("selectRow",!0)&&this.modules.selectRow.deselectRows(e)},f.prototype.toggleSelectRow=function(e){this.modExists("selectRow",!0)&&this.modules.selectRow.toggleRow(e)},f.prototype.getSelectedRows=function(){if(this.modExists("selectRow",!0))return this.modules.selectRow.getSelectedRows()},f.prototype.getSelectedData=function(){if(this.modExists("selectRow",!0))return this.modules.selectRow.getSelectedData()},f.prototype.getInvalidCells=function(){if(this.modExists("validate",!0))return this.modules.validate.getInvalidCells()},f.prototype.clearCellValidation=function(e){var t=this;this.modExists("validate",!0)&&(e||(e=this.modules.validate.getInvalidCells()),Array.isArray(e)||(e=[e]),e.forEach(function(e){t.modules.validate.clearValidation(e._getSelf())}))},f.prototype.validate=function(e){var t=[];return this.rowManager.rows.forEach(function(e){var o=e.validate();!0!==o&&(t=t.concat(o))}),!t.length||t},f.prototype.setMaxPage=function(e){if(!this.options.pagination||!this.modExists("page"))return!1;this.modules.page.setMaxPage(e)},f.prototype.setPage=function(e){return this.options.pagination&&this.modExists("page")?this.modules.page.setPage(e):new Promise(function(e,t){t()})},f.prototype.setPageToRow=function(e){var t=this;return new Promise(function(o,n){t.options.pagination&&t.modExists("page")?(e=t.rowManager.findRow(e),e?t.modules.page.setPageToRow(e).then(function(){o()}).catch(function(){n()}):n()):n()})},f.prototype.setPageSize=function(e){if(!this.options.pagination||!this.modExists("page"))return!1;this.modules.page.setPageSize(e),this.modules.page.setPage(1).then(function(){}).catch(function(){})},f.prototype.getPageSize=function(){if(this.options.pagination&&this.modExists("page",!0))return this.modules.page.getPageSize()},f.prototype.previousPage=function(){if(!this.options.pagination||!this.modExists("page"))return!1;this.modules.page.previousPage()},f.prototype.nextPage=function(){if(!this.options.pagination||!this.modExists("page"))return!1;this.modules.page.nextPage()},f.prototype.getPage=function(){return!(!this.options.pagination||!this.modExists("page"))&&this.modules.page.getPage()},f.prototype.getPageMax=function(){return!(!this.options.pagination||!this.modExists("page"))&&this.modules.page.getPageMax()},f.prototype.setGroupBy=function(e){if(!this.modExists("groupRows",!0))return!1;this.options.groupBy=e,this.modules.groupRows.initialize(),this.rowManager.refreshActiveData("display"),this.options.persistence&&this.modExists("persistence",!0)&&this.modules.persistence.config.group&&this.modules.persistence.save("group")},f.prototype.setGroupValues=function(e){if(!this.modExists("groupRows",!0))return!1;this.options.groupValues=e,this.modules.groupRows.initialize(),this.rowManager.refreshActiveData("display"),this.options.persistence&&this.modExists("persistence",!0)&&this.modules.persistence.config.group&&this.modules.persistence.save("group")},f.prototype.setGroupStartOpen=function(e){if(!this.modExists("groupRows",!0))return!1;this.options.groupStartOpen=e,this.modules.groupRows.initialize(),this.options.groupBy?(this.rowManager.refreshActiveData("group"),this.options.persistence&&this.modExists("persistence",!0)&&this.modules.persistence.config.group&&this.modules.persistence.save("group")):console.warn("Grouping Update - cant refresh view, no groups have been set")},f.prototype.setGroupHeader=function(e){if(!this.modExists("groupRows",!0))return!1;this.options.groupHeader=e,this.modules.groupRows.initialize(),this.options.groupBy?(this.rowManager.refreshActiveData("group"),this.options.persistence&&this.modExists("persistence",!0)&&this.modules.persistence.config.group&&this.modules.persistence.save("group")):console.warn("Grouping Update - cant refresh view, no groups have been set")},f.prototype.getGroups=function(e){return!!this.modExists("groupRows",!0)&&this.modules.groupRows.getGroups(!0)},f.prototype.getGroupedData=function(){if(this.modExists("groupRows",!0))return this.options.groupBy?this.modules.groupRows.getGroupedData():this.getData()},f.prototype.getEditedCells=function(){if(this.modExists("edit",!0))return this.modules.edit.getEditedCells()},f.prototype.clearCellEdited=function(e){var t=this;this.modExists("edit",!0)&&(e||(e=this.modules.edit.getEditedCells()),Array.isArray(e)||(e=[e]),e.forEach(function(e){t.modules.edit.clearEdited(e._getSelf())}))},f.prototype.getCalcResults=function(){return!!this.modExists("columnCalcs",!0)&&this.modules.columnCalcs.getResults()},f.prototype.recalc=function(){this.modExists("columnCalcs",!0)&&this.modules.columnCalcs.recalcAll(this.rowManager.activeRows)},f.prototype.navigatePrev=function(){var e=!1;return!(!this.modExists("edit",!0)||(e=this.modules.edit.currentCell,!e))&&e.nav().prev()},f.prototype.navigateNext=function(){var e=!1;return!(!this.modExists("edit",!0)||(e=this.modules.edit.currentCell,!e))&&e.nav().next()},f.prototype.navigateLeft=function(){var t=!1;return!(!this.modExists("edit",!0)||(t=this.modules.edit.currentCell,!t))&&(e.preventDefault(),t.nav().left())},f.prototype.navigateRight=function(){var t=!1;return!(!this.modExists("edit",!0)||(t=this.modules.edit.currentCell,!t))&&(e.preventDefault(),t.nav().right())},f.prototype.navigateUp=function(){var t=!1;return!(!this.modExists("edit",!0)||(t=this.modules.edit.currentCell,!t))&&(e.preventDefault(),t.nav().up())},f.prototype.navigateDown=function(){var t=!1;return!(!this.modExists("edit",!0)||(t=this.modules.edit.currentCell,!t))&&(e.preventDefault(),t.nav().down())},f.prototype.undo=function(){return!(!this.options.history||!this.modExists("history",!0))&&this.modules.history.undo()},f.prototype.redo=function(){return!(!this.options.history||!this.modExists("history",!0))&&this.modules.history.redo()},f.prototype.getHistoryUndoSize=function(){return!(!this.options.history||!this.modExists("history",!0))&&this.modules.history.getHistoryUndoSize()},f.prototype.getHistoryRedoSize=function(){return!(!this.options.history||!this.modExists("history",!0))&&this.modules.history.getHistoryRedoSize()},f.prototype.clearHistory=function(){return!(!this.options.history||!this.modExists("history",!0))&&this.modules.history.clear()},f.prototype.download=function(e,t,o,n){this.modExists("download",!0)&&this.modules.download.download(e,t,o,n)},f.prototype.downloadToTab=function(e,t,o,n){this.modExists("download",!0)&&this.modules.download.download(e,t,o,n,!0)},f.prototype.tableComms=function(e,t,o,n){this.modules.comms.receive(e,t,o,n)},f.prototype.moduleBindings={},f.prototype.extendModule=function(e,t,o){if(f.prototype.moduleBindings[e]){var n=f.prototype.moduleBindings[e].prototype[t];if(n)if("object"==("undefined"===typeof o?"undefined":r(o)))for(var i in o)n[i]=o[i];else console.warn("Module Error - Invalid value type, it must be an object");else console.warn("Module Error - property does not exist:",t)}else console.warn("Module Error - module does not exist:",e)},f.prototype.registerModule=function(e,t){f.prototype.moduleBindings[e]=t},f.prototype.bindModules=function(){for(var e in this.modules={},f.prototype.moduleBindings)this.modules[e]=new f.prototype.moduleBindings[e](this)},f.prototype.modExists=function(e,t){return!!this.modules[e]||(t&&console.error("Tabulator Module Not Installed: "+e),!1)},f.prototype.helpers={elVisible:function(e){return!(e.offsetWidth<=0&&e.offsetHeight<=0)},elOffset:function(e){var t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset-document.documentElement.clientTop,left:t.left+window.pageXOffset-document.documentElement.clientLeft}},deepClone:function(e){var t=Object.assign(Array.isArray(e)?[]:{},e);for(var o in e)null!=e[o]&&"object"===r(e[o])&&(e[o]instanceof Date?t[o]=new Date(e[o]):t[o]=this.deepClone(e[o]));return t}},f.prototype.comms={tables:[],register:function(e){f.prototype.comms.tables.push(e)},deregister:function(e){var t=f.prototype.comms.tables.indexOf(e);t>-1&&f.prototype.comms.tables.splice(t,1)},lookupTable:function(e,t){var o,n,i=[];if("string"===typeof e){if(o=document.querySelectorAll(e),o.length)for(var r=0;r0?r.setWidth(i):r.reinitializeWidth()):this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()},fitColumns:function(e){var t=this,o=t.table.element.clientWidth,n=0,i=0,r=0,a=0,s=[],c=[],p=0,l=0,u=0;function b(e){var t;return t="string"==typeof e?e.indexOf("%")>-1?o/100*parseInt(e):parseInt(e):e,t}function d(e,t,o,n){var i=[],a=0,s=0,c=0,p=r,l=0,u=0,M=[];function h(e){return o*(e.column.definition.widthGrow||1)}function f(e){return b(e.width)-o*(e.column.definition.widthShrink||0)}return e.forEach(function(e,r){var a=n?f(e):h(e);e.column.minWidth>=a?i.push(e):e.column.maxWidth&&e.column.maxWidththis.table.rowManager.element.clientHeight&&(o-=this.table.rowManager.element.offsetWidth-this.table.rowManager.element.clientWidth),e.forEach(function(e){var t,o,i;e.visible&&(t=e.definition.width,o=parseInt(e.minWidth),t?(i=b(t),n+=i>o?i:o,e.definition.widthShrink&&(c.push({column:e,width:i>o?i:o}),p+=e.definition.widthShrink)):(s.push({column:e,width:0}),r+=e.definition.widthGrow||1))}),i=o-n,a=Math.floor(i/r);u=d(s,i,a,!1);s.length&&u>0&&(s[s.length-1].width+=+u),s.forEach(function(e){i-=e.width}),l=Math.abs(u)+i,l>0&&p&&(u=d(c,l,Math.floor(l/p),!0)),c.length&&(c[c.length-1].width-=u),s.forEach(function(e){e.column.setWidth(e.width)}),c.forEach(function(e){e.column.setWidth(e.width)})}},f.prototype.registerModule("layout",z);var O=function(e){this.table=e,this.locale="default",this.lang=!1,this.bindings={},this.langList={}};O.prototype.initialize=function(){this.langList=f.prototype.helpers.deepClone(this.langs)},O.prototype.setHeaderFilterPlaceholder=function(e){this.langList.default.headerFilters.default=e},O.prototype.setHeaderFilterColumnPlaceholder=function(e,t){this.langList.default.headerFilters.columns[e]=t,this.lang&&!this.lang.headerFilters.columns[e]&&(this.lang.headerFilters.columns[e]=t)},O.prototype.installLang=function(e,t){this.langList[e]?this._setLangProp(this.langList[e],t):this.langList[e]=t},O.prototype._setLangProp=function(e,t){for(var o in t)e[o]&&"object"==r(e[o])?this._setLangProp(e[o],t[o]):e[o]=t[o]},O.prototype.setLocale=function(e){var t=this;function o(e,t){for(var n in e)"object"==r(e[n])?(t[n]||(t[n]={}),o(e[n],t[n])):t[n]=e[n]}if(e=e||"default",!0===e&&navigator.language&&(e=navigator.language.toLowerCase()),e&&!t.langList[e]){var n=e.split("-")[0];t.langList[n]?(console.warn("Localization Error - Exact matching locale not found, using closest match: ",e,n),e=n):(console.warn("Localization Error - Matching locale not found, using default: ",e),e="default")}t.locale=e,t.lang=f.prototype.helpers.deepClone(t.langList.default||{}),"default"!=e&&o(t.langList[e],t.lang),t.table.options.localized.call(t.table,t.locale,t.lang),t._executeBindings()},O.prototype.getLocale=function(e){return self.locale},O.prototype.getLang=function(e){return e?this.langList[e]:this.lang},O.prototype.getText=function(e,t){e=t?e+"|"+t:e;var o=e.split("|"),n=this._getLangElement(o,this.locale);return n||""},O.prototype._getLangElement=function(e,t){var o=this,n=o.lang;return e.forEach(function(e){var t;n&&(t=n[e],n="undefined"!=typeof t&&t)}),n},O.prototype.bind=function(e,t){this.bindings[e]||(this.bindings[e]=[]),this.bindings[e].push(t),t(this.getText(e),this.lang)},O.prototype._executeBindings=function(){var e=this,t=function(t){e.bindings[t].forEach(function(o){o(e.getText(t),e.lang)})};for(var o in e.bindings)t(o)},O.prototype.langs={default:{groups:{item:"item",items:"items"},columns:{},ajax:{loading:"Loading",error:"Error"},pagination:{page_size:"Page Size",page_title:"Show Page",first:"First",first_title:"First Page",last:"Last",last_title:"Last Page",prev:"Prev",prev_title:"Prev Page",next:"Next",next_title:"Next Page",all:"All"},headerFilters:{default:"filter column...",columns:{}}}},f.prototype.registerModule("localize",O);var A=function(e){this.table=e};A.prototype.getConnections=function(e){var t,o=this,n=[];return t=f.prototype.comms.lookupTable(e),t.forEach(function(e){o.table!==e&&n.push(e)}),n},A.prototype.send=function(e,t,o,n){var i=this,r=this.getConnections(e);r.forEach(function(e){e.tableComms(i.table.element,t,o,n)}),!r.length&&e&&console.warn("Table Connection Error - No tables matching selector found",e)},A.prototype.receive=function(e,t,o,n){if(this.table.modExists(t))return this.table.modules[t].commsReceived(e,o,n);console.warn("Inter-table Comms Error - no such module:",t)},f.prototype.registerModule("comms",A);var m=function(e){this.table=e,this.allowedTypes=["","data","download","clipboard","print","htmlOutput"]};m.prototype.initializeColumn=function(e){var t=this,o=!1,n={};this.allowedTypes.forEach(function(i){var r,a="accessor"+(i.charAt(0).toUpperCase()+i.slice(1));e.definition[a]&&(r=t.lookupAccessor(e.definition[a]),r&&(o=!0,n[a]={accessor:r,params:e.definition[a+"Params"]||{}}))}),o&&(e.modules.accessor=n)},m.prototype.lookupAccessor=function(e){var t=!1;switch("undefined"===typeof e?"undefined":r(e)){case"string":this.accessors[e]?t=this.accessors[e]:console.warn("Accessor Error - No such accessor found, ignoring: ",e);break;case"function":t=e;break}return t},m.prototype.transformRow=function(e,t){var o="accessor"+(t.charAt(0).toUpperCase()+t.slice(1)),n=e.getComponent(),i=f.prototype.helpers.deepClone(e.data||{});return this.table.columnManager.traverse(function(e){var r,a,s,c;e.modules.accessor&&(a=e.modules.accessor[o]||e.modules.accessor.accessor||!1,a&&(r=e.getFieldValue(i),"undefined"!=r&&(c=e.getComponent(),s="function"===typeof a.params?a.params(r,i,t,c,n):a.params,e.setFieldValue(i,a.accessor(r,i,t,s,c,n)))))}),i},m.prototype.accessors={},f.prototype.registerModule("accessor",m);var v=function(e){this.table=e,this.config=!1,this.url="",this.urlGenerator=!1,this.params=!1,this.loaderElement=this.createLoaderElement(),this.msgElement=this.createMsgElement(),this.loadingElement=!1,this.errorElement=!1,this.loaderPromise=!1,this.progressiveLoad=!1,this.loading=!1,this.requestOrder=0};v.prototype.initialize=function(){var e;this.loaderElement.appendChild(this.msgElement),this.table.options.ajaxLoaderLoading&&("string"==typeof this.table.options.ajaxLoaderLoading?(e=document.createElement("template"),e.innerHTML=this.table.options.ajaxLoaderLoading.trim(),this.loadingElement=e.content.firstChild):this.loadingElement=this.table.options.ajaxLoaderLoading),this.loaderPromise=this.table.options.ajaxRequestFunc||this.defaultLoaderPromise,this.urlGenerator=this.table.options.ajaxURLGenerator||this.defaultURLGenerator,this.table.options.ajaxLoaderError&&("string"==typeof this.table.options.ajaxLoaderError?(e=document.createElement("template"),e.innerHTML=this.table.options.ajaxLoaderError.trim(),this.errorElement=e.content.firstChild):this.errorElement=this.table.options.ajaxLoaderError),this.table.options.ajaxParams&&this.setParams(this.table.options.ajaxParams),this.table.options.ajaxConfig&&this.setConfig(this.table.options.ajaxConfig),this.table.options.ajaxURL&&this.setUrl(this.table.options.ajaxURL),this.table.options.ajaxProgressiveLoad&&(this.table.options.pagination?(this.progressiveLoad=!1,console.error("Progressive Load Error - Pagination and progressive load cannot be used at the same time")):this.table.modExists("page")?(this.progressiveLoad=this.table.options.ajaxProgressiveLoad,this.table.modules.page.initializeProgressive(this.progressiveLoad)):console.error("Pagination plugin is required for progressive ajax loading"))},v.prototype.createLoaderElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-loader"),e},v.prototype.createMsgElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-loader-msg"),e.setAttribute("role","alert"),e},v.prototype.setParams=function(e,t){if(t)for(var o in this.params=this.params||{},e)this.params[o]=e[o];else this.params=e},v.prototype.getParams=function(){return this.params||{}},v.prototype.setConfig=function(e){if(this._loadDefaultConfig(),"string"==typeof e)this.config.method=e;else for(var t in e)this.config[t]=e[t]},v.prototype._loadDefaultConfig=function(e){var t=this;if(!t.config||e)for(var o in t.config={},t.defaultConfig)t.config[o]=t.defaultConfig[o]},v.prototype.setUrl=function(e){this.url=e},v.prototype.getUrl=function(){return this.url},v.prototype.loadData=function(e,t){return this.progressiveLoad?this._loadDataProgressive():this._loadDataStandard(e,t)},v.prototype.nextPage=function(e){var t;this.loading||(t=this.table.options.ajaxProgressiveLoadScrollMargin||2*this.table.rowManager.getElement().clientHeight,en||null===n)&&(n=e)}),null!==n?!1!==i?n.toFixed(i):n:""},min:function(e,t,o){var n=null,i="undefined"!==typeof o.precision&&o.precision;return e.forEach(function(e){e=Number(e),(e"),o.dataTreeExpandElement?"string"===typeof o.dataTreeExpandElement?(e=document.createElement("div"),e.innerHTML=o.dataTreeExpandElement,this.expandEl=e.firstChild):this.expandEl=o.dataTreeExpandElement:(this.expandEl=document.createElement("div"),this.expandEl.classList.add("tabulator-data-tree-control"),this.expandEl.tabIndex=0,this.expandEl.innerHTML="
"),r(o.dataTreeStartExpanded)){case"boolean":this.startOpen=function(e,t){return o.dataTreeStartExpanded};break;case"function":this.startOpen=o.dataTreeStartExpanded;break;default:this.startOpen=function(e,t){return o.dataTreeStartExpanded[t]};break}},_.prototype.initializeRow=function(e){var t=e.getData()[this.field],o=Array.isArray(t),n=o||!o&&"object"===("undefined"===typeof t?"undefined":r(t))&&null!==t;!n&&e.modules.dataTree&&e.modules.dataTree.branchEl&&e.modules.dataTree.branchEl.parentNode.removeChild(e.modules.dataTree.branchEl),!n&&e.modules.dataTree&&e.modules.dataTree.controlEl&&e.modules.dataTree.controlEl.parentNode.removeChild(e.modules.dataTree.controlEl),e.modules.dataTree={index:e.modules.dataTree?e.modules.dataTree.index:0,open:!!n&&(e.modules.dataTree?e.modules.dataTree.open:this.startOpen(e.getComponent(),0)),controlEl:!(!e.modules.dataTree||!n)&&e.modules.dataTree.controlEl,branchEl:!(!e.modules.dataTree||!n)&&e.modules.dataTree.branchEl,parent:!!e.modules.dataTree&&e.modules.dataTree.parent,children:n}},_.prototype.layoutRow=function(e){var t=this.elementField?e.getCell(this.elementField):e.getCells()[0],o=t.getElement(),n=e.modules.dataTree;n.branchEl&&(n.branchEl.parentNode&&n.branchEl.parentNode.removeChild(n.branchEl),n.branchEl=!1),n.controlEl&&(n.controlEl.parentNode&&n.controlEl.parentNode.removeChild(n.controlEl),n.controlEl=!1),this.generateControlElement(e,o),e.getElement().classList.add("tabulator-tree-level-"+n.index),n.index&&(this.branchEl?(n.branchEl=this.branchEl.cloneNode(!0),o.insertBefore(n.branchEl,o.firstChild),this.table.rtl?n.branchEl.style.marginRight=(n.branchEl.offsetWidth+n.branchEl.style.marginLeft)*(n.index-1)+n.index*this.indent+"px":n.branchEl.style.marginLeft=(n.branchEl.offsetWidth+n.branchEl.style.marginRight)*(n.index-1)+n.index*this.indent+"px"):this.table.rtl?o.style.paddingRight=parseInt(window.getComputedStyle(o,null).getPropertyValue("padding-right"))+n.index*this.indent+"px":o.style.paddingLeft=parseInt(window.getComputedStyle(o,null).getPropertyValue("padding-left"))+n.index*this.indent+"px")},_.prototype.generateControlElement=function(e,t){var o=this,n=e.modules.dataTree,i=(t=t||e.getCells()[0].getElement(),n.controlEl);!1!==n.children&&(n.open?(n.controlEl=this.collapseEl.cloneNode(!0),n.controlEl.addEventListener("click",function(t){t.stopPropagation(),o.collapseRow(e)})):(n.controlEl=this.expandEl.cloneNode(!0),n.controlEl.addEventListener("click",function(t){t.stopPropagation(),o.expandRow(e)})),n.controlEl.addEventListener("mousedown",function(e){e.stopPropagation()}),i&&i.parentNode===t?i.parentNode.replaceChild(n.controlEl,i):t.insertBefore(n.controlEl,t.firstChild))},_.prototype.setDisplayIndex=function(e){this.displayIndex=e},_.prototype.getDisplayIndex=function(){return this.displayIndex},_.prototype.getRows=function(e){var t=this,o=[];return e.forEach(function(e,n){var i,r;o.push(e),e instanceof b&&(e.create(),i=e.modules.dataTree.children,i.index||!1===i.children||(r=t.getChildren(e),r.forEach(function(e){e.create(),o.push(e)})))}),o},_.prototype.getChildren=function(e,t){var o=this,n=e.modules.dataTree,i=[],r=[];return!1!==n.children&&(n.open||t)&&(Array.isArray(n.children)||(n.children=this.generateChildren(e)),i=this.table.modExists("filter")&&this.table.options.dataTreeFilter?this.table.modules.filter.filter(n.children):n.children,this.table.modExists("sort")&&this.table.options.dataTreeSort&&this.table.modules.sort.sort(i),i.forEach(function(e){r.push(e);var t=o.getChildren(e);t.forEach(function(e){r.push(e)})})),r},_.prototype.generateChildren=function(e){var t=this,o=[],n=e.getData()[this.field];return Array.isArray(n)||(n=[n]),n.forEach(function(n){var i=new b(n||{},t.table.rowManager);i.create(),i.modules.dataTree.index=e.modules.dataTree.index+1,i.modules.dataTree.parent=e,i.modules.dataTree.children&&(i.modules.dataTree.open=t.startOpen(i.getComponent(),i.modules.dataTree.index)),o.push(i)}),o},_.prototype.expandRow=function(e,t){var o=e.modules.dataTree;!1!==o.children&&(o.open=!0,e.reinitialize(),this.table.rowManager.refreshActiveData("tree",!1,!0),this.table.options.dataTreeRowExpanded(e.getComponent(),e.modules.dataTree.index))},_.prototype.collapseRow=function(e){var t=e.modules.dataTree;!1!==t.children&&(t.open=!1,e.reinitialize(),this.table.rowManager.refreshActiveData("tree",!1,!0),this.table.options.dataTreeRowCollapsed(e.getComponent(),e.modules.dataTree.index))},_.prototype.toggleRow=function(e){var t=e.modules.dataTree;!1!==t.children&&(t.open?this.collapseRow(e):this.expandRow(e))},_.prototype.getTreeParent=function(e){return!!e.modules.dataTree.parent&&e.modules.dataTree.parent.getComponent()},_.prototype.getFilteredTreeChildren=function(e){var t,o=e.modules.dataTree,n=[];return o.children&&(Array.isArray(o.children)||(o.children=this.generateChildren(e)),t=this.table.modExists("filter")&&this.table.options.dataTreeFilter?this.table.modules.filter.filter(o.children):o.children,t.forEach(function(e){e instanceof b&&n.push(e)})),n},_.prototype.rowDelete=function(e){var t,o=e.modules.dataTree.parent;o&&(t=this.findChildIndex(e,o),!1!==t&&o.data[this.field].splice(t,1),o.data[this.field].length||delete o.data[this.field],this.initializeRow(o),this.layoutRow(o)),this.table.rowManager.refreshActiveData("tree",!1,!0)},_.prototype.addTreeChildRow=function(e,t,o,n){var i=!1;"string"===typeof t&&(t=JSON.parse(t)),Array.isArray(e.data[this.field])||(e.data[this.field]=[],e.modules.dataTree.open=this.startOpen(e.getComponent(),e.modules.dataTree.index)),"undefined"!==typeof n&&(i=this.findChildIndex(n,e),!1!==i&&e.data[this.field].splice(o?i:i+1,0,t)),!1===i&&(o?e.data[this.field].unshift(t):e.data[this.field].push(t)),this.initializeRow(e),this.layoutRow(e),this.table.rowManager.refreshActiveData("tree",!1,!0)},_.prototype.findChildIndex=function(e,t){var o=this,n=!1;return"object"==("undefined"===typeof e?"undefined":r(e))?e instanceof b?n=e.data:e instanceof u?n=e._getSelf().data:"undefined"!==typeof HTMLElement&&e instanceof HTMLElement&&t.modules.dataTree&&(n=t.modules.dataTree.children.find(function(t){return t instanceof b&&t.element===e}),n&&(n=n.data)):n="undefined"!=typeof e&&null!==e&&t.data[this.field].find(function(t){return t.data[o.table.options.index]==e}),n&&(Array.isArray(t.data[this.field])&&(n=t.data[this.field].indexOf(n)),-1==n&&(n=!1)),n},_.prototype.getTreeChildren=function(e,t,o){var n=this,i=e.modules.dataTree,r=[];return i.children&&(Array.isArray(i.children)||(i.children=this.generateChildren(e)),i.children.forEach(function(e){e instanceof b&&(r.push(t?e.getComponent():e),o&&(r=r.concat(n.getTreeChildren(e,t,o))))})),r},_.prototype.checkForRestyle=function(e){e.row.cells.indexOf(e)||e.row.reinitialize()},_.prototype.getChildField=function(){return this.field},_.prototype.redrawNeeded=function(e){return!!this.field&&"undefined"!==typeof e[this.field]||!!this.elementField&&"undefined"!==typeof e[this.elementField]},f.prototype.registerModule("dataTree",_);var W=function(e){this.table=e};W.prototype.download=function(e,t,o,n,i){var r=this,a=!1;function s(o,n){i?!0===i?r.triggerDownload(o,n,e,t,!0):i(o):r.triggerDownload(o,n,e,t)}if("function"==typeof e?a=e:r.downloaders[e]?a=r.downloaders[e]:console.warn("Download Error - No such download type found: ",e),a){var c=this.generateExportList(n);a.call(this.table,c,o||{},s)}},W.prototype.generateExportList=function(e){var t=this.table.modules.export.generateExportList(this.table.options.downloadConfig,!1,e||this.table.options.downloadRowRange,"download"),o=this.table.options.groupHeaderDownload;return o&&!Array.isArray(o)&&(o=[o]),t.forEach(function(e){var t;"group"===e.type&&(t=e.columns[0],o&&o[e.indent]&&(t.value=o[e.indent](t.value,e.component._group.getRowCount(),e.component._group.getData(),e.component)))}),t},W.prototype.triggerDownload=function(e,t,o,n,i){var r=document.createElement("a"),a=new Blob([e],{type:t});n=n||"Tabulator."+("function"===typeof o?"txt":o);a=this.table.options.downloadReady.call(this.table,e,a),a&&(i?window.open(window.URL.createObjectURL(a)):navigator.msSaveOrOpenBlob?navigator.msSaveOrOpenBlob(a,n):(r.setAttribute("href",window.URL.createObjectURL(a)),r.setAttribute("download",n),r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r)),this.table.options.downloadComplete&&this.table.options.downloadComplete())},W.prototype.commsReceived=function(e,t,o){switch(t){case"intercept":this.download(o.type,"",o.options,o.active,o.intercept);break}},W.prototype.downloaders={csv:function(e,t,o){var n=t&&t.delimiter?t.delimiter:",",i=[],a=[];e.forEach(function(e){var t=[];switch(e.type){case"group":console.warn("Download Warning - CSV downloader cannot process row groups");break;case"calc":console.warn("Download Warning - CSV downloader cannot process column calculations");break;case"header":e.columns.forEach(function(e,t){e&&1===e.depth&&(a[t]="undefined"==typeof e.value||null===e.value?"":'"'+String(e.value).split('"').join('""')+'"')});break;case"row":e.columns.forEach(function(e){if(e){switch(r(e.value)){case"object":e.value=JSON.stringify(e.value);break;case"undefined":case"null":e.value="";break}t.push('"'+String(e.value).split('"').join('""')+'"')}}),i.push(t.join(n));break}}),a.length&&i.unshift(a.join(n)),i=i.join("\n"),t.bom&&(i="\ufeff"+i),o(i,"text/csv")},json:function(e,t,o){var n=[];e.forEach(function(e){var t={};switch(e.type){case"header":break;case"group":console.warn("Download Warning - JSON downloader cannot process row groups");break;case"calc":console.warn("Download Warning - JSON downloader cannot process column calculations");break;case"row":e.columns.forEach(function(e){e&&(t[e.component.getField()]=e.value)}),n.push(t);break}}),n=JSON.stringify(n,null,"\t"),o(n,"application/json")},pdf:function(e,t,o){var n=[],i=[],a={},s=t.rowGroupStyles||{fontStyle:"bold",fontSize:12,cellPadding:6,fillColor:220},c=t.rowCalcStyles||{fontStyle:"bold",fontSize:10,cellPadding:4,fillColor:232},p=t.jsPDF||{},l=t&&t.title?t.title:"";function u(e,t){var o=[];return e.columns.forEach(function(e){var n;if(e){switch(r(e.value)){case"object":e.value=JSON.stringify(e.value);break;case"undefined":case"null":e.value="";break}n={content:e.value,colSpan:e.width,rowSpan:e.height},t&&(n.styles=t),o.push(n)}else o.push("")}),o}p.orientation||(p.orientation=t.orientation||"landscape"),p.unit||(p.unit="pt"),e.forEach(function(e){switch(e.type){case"header":n.push(u(e));break;case"group":i.push(u(e,s));break;case"calc":i.push(u(e,c));break;case"row":i.push(u(e));break}});var b=new jsPDF(p);t&&t.autoTable&&(a="function"===typeof t.autoTable?t.autoTable(b)||{}:t.autoTable),l&&(a.addPageContent=function(e){b.text(l,40,30)}),a.head=n,a.body=i,b.autoTable(a),t&&t.documentProcessing&&t.documentProcessing(b),o(b.output("arraybuffer"),"application/pdf")},xlsx:function(e,t,o){var n,i=this,a=t.sheetName||"Sheet1",s=XLSX.utils.book_new();function c(){var t=[],o=[],n={},i={s:{c:0,r:0},e:{c:e[0]?e[0].columns.reduce(function(e,t){return e+(t&&t.width?t.width:1)},0):0,r:e.length}};return e.forEach(function(e,n){var i=[];e.columns.forEach(function(e,t){e?(i.push(e.value instanceof Date||"object"!==r(e.value)?e.value:JSON.stringify(e.value)),(e.width>1||e.height>-1)&&o.push({s:{r:n,c:t},e:{r:n+e.height-1,c:t+e.width-1}})):i.push("")}),t.push(i)}),XLSX.utils.sheet_add_aoa(n,t),n["!ref"]=XLSX.utils.encode_range(i),o.length&&(n["!merges"]=o),n}if(s.SheetNames=[],s.Sheets={},t.sheetOnly)o(c());else{if(t.sheets)for(var p in t.sheets)!0===t.sheets[p]?(s.SheetNames.push(p),s.Sheets[p]=c()):(s.SheetNames.push(p),this.modules.comms.send(t.sheets[p],"download","intercept",{type:"xlsx",options:{sheetOnly:!0},active:i.active,intercept:function(e){s.Sheets[p]=e}}));else s.SheetNames.push(a),s.Sheets[a]=c();t.documentProcessing&&(s=t.documentProcessing(s)),n=XLSX.write(s,{bookType:"xlsx",bookSST:!0,type:"binary"}),o(l(n),"application/octet-stream")}function l(e){for(var t=new ArrayBuffer(e.length),o=new Uint8Array(t),n=0;n!=e.length;++n)o[n]=255&e.charCodeAt(n);return t}},html:function(e,t,o){this.modExists("export",!0)&&o(this.modules.export.genereateHTMLTable(e),"text/html")}},f.prototype.registerModule("download",W);var R=function(e){this.table=e,this.currentCell=!1,this.mouseClick=!1,this.recursionBlock=!1,this.invalidEdit=!1,this.editedCells=[]};R.prototype.initializeColumn=function(e){var t=this,o={editor:!1,blocked:!1,check:e.definition.editable,params:e.definition.editorParams||{}};switch(r(e.definition.editor)){case"string":"tick"===e.definition.editor&&(e.definition.editor="tickCross",console.warn("DEPRECATION WARNING - the tick editor has been deprecated, please use the tickCross editor")),t.editors[e.definition.editor]?o.editor=t.editors[e.definition.editor]:console.warn("Editor Error - No such editor found: ",e.definition.editor);break;case"function":o.editor=e.definition.editor;break;case"boolean":!0===e.definition.editor&&("function"!==typeof e.definition.formatter?("tick"===e.definition.formatter&&(e.definition.formatter="tickCross",console.warn("DEPRECATION WARNING - the tick editor has been deprecated, please use the tickCross editor")),t.editors[e.definition.formatter]?o.editor=t.editors[e.definition.formatter]:o.editor=t.editors["input"]):console.warn("Editor Error - Cannot auto lookup editor for a custom formatter: ",e.definition.formatter));break}o.editor&&(e.modules.edit=o)},R.prototype.getCurrentCell=function(){return!!this.currentCell&&this.currentCell.getComponent()},R.prototype.clearEditor=function(e){var t,o=this.currentCell;if(this.invalidEdit=!1,o){this.currentCell=!1,t=o.getElement(),e?o.validate():t.classList.remove("tabulator-validation-fail"),t.classList.remove("tabulator-editing");while(t.firstChild)t.removeChild(t.firstChild);o.row.getElement().classList.remove("tabulator-row-editing")}},R.prototype.cancelEdit=function(){if(this.currentCell){var e=this.currentCell,t=this.currentCell.getComponent();this.clearEditor(!0),e.setValueActual(e.getValue()),e.cellRendered(),("textarea"==e.column.definition.editor||e.column.definition.variableHeight)&&e.row.normalizeHeight(!0),e.column.cellEvents.cellEditCancelled&&e.column.cellEvents.cellEditCancelled.call(this.table,t),this.table.options.cellEditCancelled.call(this.table,t)}},R.prototype.bindEditor=function(e){var t=this,o=e.getElement(!0);o.setAttribute("tabindex",0),o.addEventListener("click",function(e){o.classList.contains("tabulator-editing")||o.focus({preventScroll:!0})}),o.addEventListener("mousedown",function(e){2===e.button?e.preventDefault():t.mouseClick=!0}),o.addEventListener("focus",function(o){t.recursionBlock||t.edit(e,o,!1)})},R.prototype.focusCellNoEvent=function(e,t){this.recursionBlock=!0,t&&"ie"===this.table.browser||e.getElement().focus({preventScroll:!0}),this.recursionBlock=!1},R.prototype.editCell=function(e,t){this.focusCellNoEvent(e),this.edit(e,!1,t)},R.prototype.focusScrollAdjust=function(e){if("virtual"==this.table.rowManager.getRenderMode()){var t=this.table.rowManager.element.scrollTop,o=this.table.rowManager.element.clientHeight+this.table.rowManager.element.scrollTop,n=e.row.getElement();n.offsetTop;n.offsetTopo&&(this.table.rowManager.element.scrollTop+=n.offsetTop+n.offsetHeight-o);var i=this.table.rowManager.element.scrollLeft,r=this.table.rowManager.element.clientWidth+this.table.rowManager.element.scrollLeft,a=e.getElement();a.offsetLeft;this.table.modExists("frozenColumns")&&(i+=parseInt(this.table.modules.frozenColumns.leftMargin),r-=parseInt(this.table.modules.frozenColumns.rightMargin)),this.table.options.virtualDomHoz&&(i-=parseInt(this.table.vdomHoz.vDomPadLeft),r-=parseInt(this.table.vdomHoz.vDomPadLeft)),a.offsetLeftr&&(this.table.rowManager.element.scrollLeft+=a.offsetLeft+a.offsetWidth-r)}},R.prototype.edit=function(e,t,o){var n,i,a,s=this,c=!0,p=function(){},l=e.getElement();if(!this.currentCell){if(e.column.modules.edit.blocked)return this.mouseClick=!1,l.blur(),!1;switch(t&&t.stopPropagation(),r(e.column.modules.edit.check)){case"function":c=e.column.modules.edit.check(e.getComponent());break;case"boolean":c=e.column.modules.edit.check;break}if(c||o){if(s.cancelEdit(),s.currentCell=e,this.focusScrollAdjust(e),i=e.getComponent(),this.mouseClick&&(this.mouseClick=!1,e.column.cellEvents.cellClick&&e.column.cellEvents.cellClick.call(this.table,t,i)),e.column.cellEvents.cellEditing&&e.column.cellEvents.cellEditing.call(this.table,i),s.table.options.cellEditing.call(this.table,i),a="function"===typeof e.column.modules.edit.params?e.column.modules.edit.params(i):e.column.modules.edit.params,n=e.column.modules.edit.editor.call(s,i,h,d,M,a),!1===n)return l.blur(),!1;if(!(n instanceof Node))return console.warn("Edit Error - Editor should return an instance of Node, the editor returned:",n),l.blur(),!1;l.classList.add("tabulator-editing"),e.row.getElement().classList.add("tabulator-row-editing");while(l.firstChild)l.removeChild(l.firstChild);l.appendChild(n),p();for(var u=l.children,b=0;b46){if(a>=o.length)return t.preventDefault(),t.stopPropagation(),!1,!1;switch(o[a]){case n:if(s.toUpperCase()==s.toLowerCase())return t.preventDefault(),t.stopPropagation(),!1,!1;break;case i:if(isNaN(s))return t.preventDefault(),t.stopPropagation(),!1,!1;break;case r:break;default:if(s!==o[a])return t.preventDefault(),t.stopPropagation(),!1,!1}!0}}),e.addEventListener("keyup",function(o){o.keyCode>46&&t.maskAutoFill&&a(e.value.length)}),e.placeholder||(e.placeholder=o),t.maskAutoFill&&a(e.value.length)},R.prototype.getEditedCells=function(){var e=[];return this.editedCells.forEach(function(t){e.push(t.getComponent())}),e},R.prototype.clearEdited=function(e){var t;e.modules.edit&&e.modules.edit.edited&&(e.modules.edit.edited=!1,e.modules.validate&&(e.modules.validate.invalid=!1)),t=this.editedCells.indexOf(e),t>-1&&this.editedCells.splice(t,1)},R.prototype.editors={input:function(e,t,o,n,i){var a=e.getValue(),s=document.createElement("input");if(s.setAttribute("type",i.search?"search":"text"),s.style.padding="4px",s.style.width="100%",s.style.boxSizing="border-box",i.elementAttributes&&"object"==r(i.elementAttributes))for(var c in i.elementAttributes)"+"==c.charAt(0)?(c=c.slice(1),s.setAttribute(c,s.getAttribute(c)+i.elementAttributes["+"+c])):s.setAttribute(c,i.elementAttributes[c]);function p(e){(null===a||"undefined"===typeof a)&&""!==s.value||s.value!==a?o(s.value)&&(a=s.value):n()}return s.value="undefined"!==typeof a?a:"",t(function(){s.focus({preventScroll:!0}),s.style.height="100%"}),s.addEventListener("change",p),s.addEventListener("blur",p),s.addEventListener("keydown",function(e){switch(e.keyCode){case 13:p(e);break;case 27:n();break;case 35:case 36:e.stopPropagation();break}}),i.mask&&this.table.modules.edit.maskInput(s,i),s},textarea:function(e,t,o,n,i){var a=e.getValue(),s=i.verticalNavigation||"hybrid",c=String(null!==a&&"undefined"!==typeof a?a:""),p=((c.match(/(?:\r\n|\r|\n)/g)||[]).length,document.createElement("textarea")),l=0;if(p.style.display="block",p.style.padding="2px",p.style.height="100%",p.style.width="100%",p.style.boxSizing="border-box",p.style.whiteSpace="pre-wrap",p.style.resize="none",i.elementAttributes&&"object"==r(i.elementAttributes))for(var u in i.elementAttributes)"+"==u.charAt(0)?(u=u.slice(1),p.setAttribute(u,p.getAttribute(u)+i.elementAttributes["+"+u])):p.setAttribute(u,i.elementAttributes[u]);function b(t){(null===a||"undefined"===typeof a)&&""!==p.value||p.value!==a?(o(p.value)&&(a=p.value),setTimeout(function(){e.getRow().normalizeHeight()},300)):n()}return p.value=c,t(function(){p.focus({preventScroll:!0}),p.style.height="100%",p.scrollHeight,p.style.height=p.scrollHeight+"px",e.getRow().normalizeHeight()}),p.addEventListener("change",b),p.addEventListener("blur",b),p.addEventListener("keyup",function(){p.style.height="";var t=p.scrollHeight;p.style.height=t+"px",t!=l&&(l=t,e.getRow().normalizeHeight())}),p.addEventListener("keydown",function(e){switch(e.keyCode){case 27:n();break;case 38:("editor"==s||"hybrid"==s&&p.selectionStart)&&(e.stopImmediatePropagation(),e.stopPropagation());break;case 40:("editor"==s||"hybrid"==s&&p.selectionStart!==p.value.length)&&(e.stopImmediatePropagation(),e.stopPropagation());break;case 35:case 36:e.stopPropagation();break}}),i.mask&&this.table.modules.edit.maskInput(p,i),p},number:function(e,t,o,n,i){var a=e.getValue(),s=i.verticalNavigation||"editor",c=document.createElement("input");if(c.setAttribute("type","number"),"undefined"!=typeof i.max&&c.setAttribute("max",i.max),"undefined"!=typeof i.min&&c.setAttribute("min",i.min),"undefined"!=typeof i.step&&c.setAttribute("step",i.step),c.style.padding="4px",c.style.width="100%",c.style.boxSizing="border-box",i.elementAttributes&&"object"==r(i.elementAttributes))for(var p in i.elementAttributes)"+"==p.charAt(0)?(p=p.slice(1),c.setAttribute(p,c.getAttribute(p)+i.elementAttributes["+"+p])):c.setAttribute(p,i.elementAttributes[p]);c.value=a;var l=function(e){u()};function u(){var e=c.value;isNaN(e)||""===e||(e=Number(e)),e!==a?o(e)&&(a=e):n()}return t(function(){c.removeEventListener("blur",l),c.focus({preventScroll:!0}),c.style.height="100%",c.addEventListener("blur",l)}),c.addEventListener("keydown",function(e){switch(e.keyCode){case 13:u();break;case 27:n();break;case 38:case 40:"editor"==s&&(e.stopImmediatePropagation(),e.stopPropagation());break;case 35:case 36:e.stopPropagation();break}}),i.mask&&this.table.modules.edit.maskInput(c,i),c},range:function(e,t,o,n,i){var a=e.getValue(),s=document.createElement("input");if(s.setAttribute("type","range"),"undefined"!=typeof i.max&&s.setAttribute("max",i.max),"undefined"!=typeof i.min&&s.setAttribute("min",i.min),"undefined"!=typeof i.step&&s.setAttribute("step",i.step),s.style.padding="4px",s.style.width="100%",s.style.boxSizing="border-box",i.elementAttributes&&"object"==r(i.elementAttributes))for(var c in i.elementAttributes)"+"==c.charAt(0)?(c=c.slice(1),s.setAttribute(c,s.getAttribute(c)+i.elementAttributes["+"+c])):s.setAttribute(c,i.elementAttributes[c]);function p(){var e=s.value;isNaN(e)||""===e||(e=Number(e)),e!=a?o(e)&&(a=e):n()}return s.value=a,t(function(){s.focus({preventScroll:!0}),s.style.height="100%"}),s.addEventListener("blur",function(e){p()}),s.addEventListener("keydown",function(e){switch(e.keyCode){case 13:p();break;case 27:n();break}}),s},select:function(e,t,o,n,i){var a=this,s=this,c=e.getElement(),p=e.getValue(),l=i.verticalNavigation||"editor",u="undefined"!==typeof p||null===p?Array.isArray(p)?p:[p]:"undefined"!==typeof i.defaultValue?i.defaultValue:[],b=document.createElement("input"),d=document.createElement("div"),M=i.multiselect,h=[],z={},O=[],A=[],m=!0,v=!1,g="",y=null;function q(t){var o,n={},i=s.table.getData();return o=t?s.table.columnManager.getColumnByField(t):e.getColumn()._getSelf(),o?i.forEach(function(e){var t=o.getFieldValue(e);null!==t&&"undefined"!==typeof t&&""!==t&&(n[t]=!0)}):console.warn("unable to find matching column to create select lookup list:",t),Object.keys(n)}function _(t,o){var n=[],a=[];function s(e){e={label:e.label,value:e.value,itemParams:e.itemParams,elementAttributes:e.elementAttributes,element:!1};return o.indexOf(e.value)>-1&&w(e),n.push(e),a.push(e),e}if("function"==typeof t&&(t=t(e)),Array.isArray(t))t.forEach(function(e){var t;"object"===("undefined"===typeof e?"undefined":r(e))?e.options?(t={label:e.label,group:!0,itemParams:e.itemParams,elementAttributes:e.elementAttributes,element:!1},a.push(t),e.options.forEach(function(e){s(e)})):s(e):(t={label:e,value:e,element:!1},o.indexOf(t.value)>-1&&w(t),n.push(t),a.push(t))});else for(var c in t){var p={label:t[c],value:c,element:!1};o.indexOf(p.value)>-1&&w(p),n.push(p),a.push(p)}i.sortValuesList&&(n.sort(function(e,t){return e.labelt.label?1:0}),a.sort(function(e,t){return e.labelt.label?1:0}),"asc"!==i.sortValuesList&&(n.reverse(),a.reverse())),h=n,O=a,W()}function W(){while(d.firstChild)d.removeChild(d.firstChild);O.forEach(function(t){var o=t.element;if(!o){if(o=document.createElement("div"),t.label=i.listItemFormatter?i.listItemFormatter(t.value,t.label,e,o,t.itemParams):t.label,t.group?(o.classList.add("tabulator-edit-select-list-group"),o.tabIndex=0,o.innerHTML=""===t.label?" ":t.label):(o.classList.add("tabulator-edit-select-list-item"),o.tabIndex=0,o.innerHTML=""===t.label?" ":t.label,o.addEventListener("click",function(){v=!0,setTimeout(function(){v=!1},10),M?(C(t),b.focus()):S(t)}),A.indexOf(t)>-1&&o.classList.add("active")),t.elementAttributes&&"object"==r(t.elementAttributes))for(var n in t.elementAttributes)"+"==n.charAt(0)?(n=n.slice(1),o.setAttribute(n,b.getAttribute(n)+t.elementAttributes["+"+n])):o.setAttribute(n,t.elementAttributes[n]);o.addEventListener("mousedown",function(){m=!1,setTimeout(function(){m=!0},10)}),t.element=o}d.appendChild(o)})}function R(e,t){!M&&z&&z.element&&z.element.classList.remove("active"),z&&z.element&&z.element.classList.remove("focused"),z=e,e.element&&(e.element.classList.add("focused"),t&&e.element.classList.add("active")),e&&e.element&&e.element.scrollIntoView&&e.element.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})}function w(e){var t=A.indexOf(e);-1==t&&(A.push(e),R(e,!0)),T()}function L(e){var t=A[e];e>-1&&(A.splice(e,1),t.element&&t.element.classList.remove("active"))}function C(e){e||(e=z);var t=A.indexOf(e);t>-1?L(t):(!0!==M&&A.length>=M&&L(0),w(e)),T()}function S(e){k(),e||(e=z),e&&(b.value=e.label,o(e.value)),u=[e.value]}function E(e){e||k();var t=[];A.forEach(function(e){t.push(e.value)}),u=t,o(t)}function T(){var e=[];A.forEach(function(t){e.push(t.label)}),b.value=e.join(", "),!1===s.currentCell&&E(!0)}function x(){for(var e=A.length,t=0;t0&&R(h[t-1],!M));break;case 40:t=h.indexOf(z),("editor"==l||"hybrid"==l&&t=38&&e.keyCode<=90&&D(e.keyCode)}}),b.addEventListener("blur",function(e){m&&(M?E():N())}),b.addEventListener("focus",function(e){v||B()}),d=document.createElement("div"),d.classList.add("tabulator-edit-select-list"),t(function(){b.style.height="100%",b.focus({preventScroll:!0})}),setTimeout(function(){a.table.rowManager.element.addEventListener("scroll",N)},10),b},autocomplete:function(e,t,o,n,i){var a=this,s=this,c=e.getElement(),p=e.getValue(),l=i.verticalNavigation||"editor",u="undefined"!==typeof p||null===p?p:"undefined"!==typeof i.defaultValue?i.defaultValue:"",b=document.createElement("input"),d=document.createElement("div"),M=[],h=!1,z=!0,O=!1;if(b.setAttribute("type","search"),b.style.padding="4px",b.style.width="100%",b.style.boxSizing="border-box",i.elementAttributes&&"object"==r(i.elementAttributes))for(var A in i.elementAttributes)"+"==A.charAt(0)?(A=A.slice(1),b.setAttribute(A,b.getAttribute(A)+i.elementAttributes["+"+A])):b.setAttribute(A,i.elementAttributes[A]);function m(){!0===i.values?O=v():"string"===typeof i.values&&(O=v(i.values))}function v(t){var o,n={},r=s.table.getData();return o=t?s.table.columnManager.getColumnByField(t):e.getColumn()._getSelf(),o?(r.forEach(function(e){var t=o.getFieldValue(e);null!==t&&"undefined"!==typeof t&&""!==t&&(n[t]=!0)}),n=i.sortValuesList?"asc"==i.sortValuesList?Object.keys(n).sort():Object.keys(n).sort().reverse():Object.keys(n)):console.warn("unable to find matching column to create autocomplete lookup list:",t),n}function g(e,t){var o,n,r=[];o=O||(i.values||[]),i.searchFunc?(r=i.searchFunc(e,o),r instanceof Promise?(y("undefined"!==typeof i.searchingPlaceholder?i.searchingPlaceholder:"Searching..."),r.then(function(e){W(q(e),t)}).catch(function(e){console.err("error in autocomplete search promise:",e)})):W(q(r),t)):(n=q(o),""===e?i.showListOnEmpty&&(r=n):n.forEach(function(t){null===t.value&&"undefined"===typeof t.value||(String(t.value).toLowerCase().indexOf(String(e).toLowerCase())>-1||String(t.title).toLowerCase().indexOf(String(e).toLowerCase())>-1)&&r.push(t)}),W(r,t))}function y(e){var t=document.createElement("div");_(),!1!==e&&(t.classList.add("tabulator-edit-select-list-notice"),t.tabIndex=0,e instanceof Node?t.appendChild(e):t.innerHTML=e,d.appendChild(t))}function q(e){var t=[];if(Array.isArray(e))e.forEach(function(e){var o={};"object"===("undefined"===typeof e?"undefined":r(e))?(o.title=i.listItemFormatter?i.listItemFormatter(e.value,e.label):e.label,o.value=e.value):(o.title=i.listItemFormatter?i.listItemFormatter(e,e):e,o.value=e),t.push(o)});else for(var o in e){var n={title:i.listItemFormatter?i.listItemFormatter(o,e[o]):e[o],value:o};t.push(n)}return t}function _(){while(d.firstChild)d.removeChild(d.firstChild)}function W(e,t){e.length?R(e,t):i.emptyPlaceholder&&y(i.emptyPlaceholder)}function R(e,t){var o=!1;_(),M=e,M.forEach(function(e){var n=e.element;n||(n=document.createElement("div"),n.classList.add("tabulator-edit-select-list-item"),n.tabIndex=0,n.innerHTML=e.title,n.addEventListener("click",function(t){C(e),w()}),n.addEventListener("mousedown",function(e){z=!1,setTimeout(function(){z=!0},10)}),e.element=n,t&&e.value==p&&(b.value=e.title,e.element.classList.add("active"),o=!0),e===h&&(e.element.classList.add("active"),o=!0)),d.appendChild(n)}),o||C(!1)}function w(){S(),h?p!==h.value?(p=h.value,b.value=h.title,o(h.value)):n():i.freetext?(p=b.value,o(b.value)):i.allowEmpty&&""===b.value?(p=b.value,o(b.value)):n()}function L(){if(!d.parentNode){console.log("show",u);while(d.firstChild)d.removeChild(d.firstChild);var e=f.prototype.helpers.elOffset(c);d.style.minWidth=c.offsetWidth+"px",d.style.top=e.top+c.offsetHeight+"px",d.style.left=e.left+"px",document.body.appendChild(d)}}function C(e,t){h&&h.element&&h.element.classList.remove("active"),h=e,e&&e.element&&e.element.classList.add("active"),e&&e.element&&e.element.scrollIntoView&&e.element.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})}function S(){d.parentNode&&d.parentNode.removeChild(d),T()}function E(){S(),n()}function T(){s.table.rowManager.element.removeEventListener("scroll",E)}return d.classList.add("tabulator-edit-select-list"),d.addEventListener("mousedown",function(e){z=!1,setTimeout(function(){z=!0},10)}),b.addEventListener("keydown",function(e){var t;switch(e.keyCode){case 38:t=M.indexOf(h),("editor"==l||"hybrid"==l&&t)&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),C(t>0&&M[t-1]));break;case 40:t=M.indexOf(h),("editor"==l||"hybrid"==l&&t'):("ie"==a.table.browser?t.setAttribute("class","tabulator-star-inactive"):t.classList.replace("tabulator-star-active","tabulator-star-inactive"),t.innerHTML='')})}function h(e){var t=document.createElement("span"),n=d.cloneNode(!0);u.push(n),t.addEventListener("mouseenter",function(t){t.stopPropagation(),t.stopImmediatePropagation(),M(e)}),t.addEventListener("mousemove",function(e){e.stopPropagation(),e.stopImmediatePropagation()}),t.addEventListener("click",function(t){t.stopPropagation(),t.stopImmediatePropagation(),o(e),s.blur()}),t.appendChild(n),b.appendChild(t)}function f(e){c=e,M(e)}if(s.style.whiteSpace="nowrap",s.style.overflow="hidden",s.style.textOverflow="ellipsis",b.style.verticalAlign="middle",b.style.display="inline-block",b.style.padding="4px",d.setAttribute("width",l),d.setAttribute("height",l),d.setAttribute("viewBox","0 0 512 512"),d.setAttribute("xml:space","preserve"),d.style.padding="0 1px",i.elementAttributes&&"object"==r(i.elementAttributes))for(var z in i.elementAttributes)"+"==z.charAt(0)?(z=z.slice(1),b.setAttribute(z,b.getAttribute(z)+i.elementAttributes["+"+z])):b.setAttribute(z,i.elementAttributes[z]);for(var O=1;O<=p;O++)h(O);return c=Math.min(parseInt(c),p),M(c),b.addEventListener("mousemove",function(e){M(0)}),b.addEventListener("click",function(e){o(0)}),s.addEventListener("blur",function(e){n()}),s.addEventListener("keydown",function(e){switch(e.keyCode){case 39:f(c+1);break;case 37:f(c-1);break;case 13:o(c);break;case 27:n();break}}),b},progress:function(e,t,o,n,i){var a,s,c=e.getElement(),p="undefined"===typeof i.max?c.getElementsByTagName("div")[0].getAttribute("max")||100:i.max,l="undefined"===typeof i.min?c.getElementsByTagName("div")[0].getAttribute("min")||0:i.min,u=(p-l)/100,b=e.getValue()||0,d=document.createElement("div"),M=document.createElement("div");function h(){var e=window.getComputedStyle(c,null),t=u*Math.round(M.offsetWidth/((c.clientWidth-parseInt(e.getPropertyValue("padding-left"))-parseInt(e.getPropertyValue("padding-right")))/100))+l;o(t),c.setAttribute("aria-valuenow",t),c.setAttribute("aria-label",b)}if(d.style.position="absolute",d.style.right="0",d.style.top="0",d.style.bottom="0",d.style.width="5px",d.classList.add("tabulator-progress-handle"),M.style.display="inline-block",M.style.position="relative",M.style.height="100%",M.style.backgroundColor="#488CE9",M.style.maxWidth="100%",M.style.minWidth="0%",i.elementAttributes&&"object"==r(i.elementAttributes))for(var f in i.elementAttributes)"+"==f.charAt(0)?(f=f.slice(1),M.setAttribute(f,M.getAttribute(f)+i.elementAttributes["+"+f])):M.setAttribute(f,i.elementAttributes[f]);return c.style.padding="4px 4px",b=Math.min(parseFloat(b),p),b=Math.max(parseFloat(b),l),b=Math.round((b-l)/u),M.style.width=b+"%",c.setAttribute("aria-valuemin",l),c.setAttribute("aria-valuemax",p),M.appendChild(d),d.addEventListener("mousedown",function(e){a=e.screenX,s=M.offsetWidth}),d.addEventListener("mouseover",function(){d.style.cursor="ew-resize"}),c.addEventListener("mousemove",function(e){a&&(M.style.width=s+e.screenX-a+"px")}),c.addEventListener("mouseup",function(e){a&&(e.stopPropagation(),e.stopImmediatePropagation(),a=!1,s=!1,h())}),c.addEventListener("keydown",function(e){switch(e.keyCode){case 39:e.preventDefault(),M.style.width=M.clientWidth+c.clientWidth/100+"px";break;case 37:e.preventDefault(),M.style.width=M.clientWidth-c.clientWidth/100+"px";break;case 9:case 13:h();break;case 27:n();break}}),c.addEventListener("blur",function(){n()}),M},tickCross:function(e,t,o,n,i){var a=e.getValue(),s=document.createElement("input"),c=i.tristate,p="undefined"===typeof i.indeterminateValue?null:i.indeterminateValue,l=!1;if(s.setAttribute("type","checkbox"),s.style.marginTop="5px",s.style.boxSizing="border-box",i.elementAttributes&&"object"==r(i.elementAttributes))for(var u in i.elementAttributes)"+"==u.charAt(0)?(u=u.slice(1),s.setAttribute(u,s.getAttribute(u)+i.elementAttributes["+"+u])):s.setAttribute(u,i.elementAttributes[u]);function b(e){return c?e?l?p:s.checked:s.checked&&!l?(s.checked=!1,s.indeterminate=!0,l=!0,p):(l=!1,s.checked):s.checked}return s.value=a,!c||"undefined"!==typeof a&&a!==p&&""!==a||(l=!0,s.indeterminate=!0),"firefox"!=this.table.browser&&t(function(){s.focus({preventScroll:!0})}),s.checked=!0===a||"true"===a||"True"===a||1===a,t(function(){s.focus()}),s.addEventListener("change",function(e){o(b())}),s.addEventListener("blur",function(e){o(b(!0))}),s.addEventListener("keydown",function(e){13==e.keyCode&&o(b()),27==e.keyCode&&n()}),s}},f.prototype.registerModule("edit",R);var w=function(e,t,o,n){this.type=e,this.columns=t,this.component=o||!1,this.indent=n||0},L=function(e,t,o,n,i){this.value=e,this.component=t||!1,this.width=o,this.height=n,this.depth=i},C=function(e){this.table=e,this.config={},this.cloneTableStyle=!0,this.colVisProp=""};C.prototype.generateExportList=function(e,t,o,n){this.cloneTableStyle=t,this.config=e||{},this.colVisProp=n;var i=!1!==this.config.columnHeaders?this.headersToExportRows(this.generateColumnGroupHeaders()):[],r=this.bodyToExportRows(this.rowLookup(o));return i.concat(r)},C.prototype.genereateTable=function(e,t,o,n){var i=this.generateExportList(e,t,o,n);return this.genereateTableElement(i)},C.prototype.rowLookup=function(e){var t=this,o=[];if("function"==typeof e)e.call(this.table).forEach(function(e){e=t.table.rowManager.findRow(e),e&&o.push(e)});else switch(e){case!0:case"visible":o=this.table.rowManager.getVisibleRows(!0);break;case"all":o=this.table.rowManager.rows;break;case"selected":o=this.table.modules.selectRow.selectedRows;break;case"active":default:o=this.table.options.pagination?this.table.rowManager.getDisplayRows(this.table.rowManager.displayRows.length-2):this.table.rowManager.getDisplayRows()}return Object.assign([],o)},C.prototype.generateColumnGroupHeaders=function(){var e=this,t=[],o=!1!==this.config.columnGroups?this.table.columnManager.columns:this.table.columnManager.columnsByIndex;return o.forEach(function(o){var n=e.processColumnGroup(o);n&&t.push(n)}),t},C.prototype.processColumnGroup=function(e){var t=this,o=e.columns,n=0,i=e.definition["title"+(this.colVisProp.charAt(0).toUpperCase()+this.colVisProp.slice(1))]||e.definition.title,r={title:i,column:e,depth:1};if(o.length){if(r.subGroups=[],r.width=0,o.forEach(function(e){var o=t.processColumnGroup(e);o&&(r.width+=o.width,r.subGroups.push(o),o.depth>n&&(n=o.depth))}),r.depth+=n,!r.width)return!1}else{if(!this.columnVisCheck(e))return!1;r.width=1}return r},C.prototype.columnVisCheck=function(e){return!1!==e.definition[this.colVisProp]&&(e.visible||!e.visible&&e.definition[this.colVisProp])},C.prototype.headersToExportRows=function(e){var t=[],o=0,n=[];function i(e,n){var r=o-n;if("undefined"===typeof t[n]&&(t[n]=[]),e.height=e.subGroups?1:r-e.depth+1,t[n].push(e),e.height>1)for(var a=1;a1)for(var s=1;so&&(o=e.depth)}),e.forEach(function(e){i(e,0)}),t.forEach(function(e){var t=[];e.forEach(function(e){e?t.push(new L(e.title,e.column.getComponent(),e.width,e.height,e.depth)):t.push(null)}),n.push(new w("header",t))}),n},C.prototype.bodyToExportRows=function(e){var t=this,o=[],n=[];return this.table.columnManager.columnsByIndex.forEach(function(e){t.columnVisCheck(e)&&o.push(e.getComponent())}),!1!==this.config.columnCalcs&&this.table.modExists("columnCalcs")&&(this.table.modules.columnCalcs.topInitialized&&e.unshift(this.table.modules.columnCalcs.topRow),this.table.modules.columnCalcs.botInitialized&&e.push(this.table.modules.columnCalcs.botRow)),e=e.filter(function(e){switch(e.type){case"group":return!1!==t.config.rowGroups;case"calc":return!1!==t.config.columnCalcs;case"row":return!(t.table.options.dataTree&&!1===t.config.dataTree&&e.modules.dataTree.parent)}return!0}),e.forEach(function(e,i){var r=e.getData(t.colVisProp),a=[],s=0;switch(e.type){case"group":s=e.level,a.push(new L(e.key,e.getComponent(),o.length,1));break;case"calc":case"row":o.forEach(function(e){a.push(new L(e._column.getFieldValue(r),e,1,1))}),t.table.options.dataTree&&!1!==t.config.dataTree&&(s=e.modules.dataTree.index);break}n.push(new w(e.type,a,e.getComponent(),s))}),n},C.prototype.genereateTableElement=function(e){var t=this,o=document.createElement("table"),n=document.createElement("thead"),i=document.createElement("tbody"),r=this.lookupTableStyles(),a=this.table.options["rowFormatter"+(this.colVisProp.charAt(0).toUpperCase()+this.colVisProp.slice(1))],s={};return s.rowFormatter=null!==a?a:this.table.options.rowFormatter,this.table.options.dataTree&&!1!==this.config.dataTree&&this.table.modExists("columnCalcs")&&(s.treeElementField=this.table.modules.dataTree.elementField),s.groupHeader=this.table.options["groupHeader"+(this.colVisProp.charAt(0).toUpperCase()+this.colVisProp.slice(1))],s.groupHeader&&!Array.isArray(s.groupHeader)&&(s.groupHeader=[s.groupHeader]),o.classList.add("tabulator-print-table"),this.mapElementStyles(this.table.columnManager.getHeadersElement(),n,["border-top","border-left","border-right","border-bottom","background-color","color","font-weight","font-family","font-size"]),e.length>1e3&&console.warn("It may take a long time to render an HTML table with more than 1000 rows"),e.forEach(function(e,o){switch(e.type){case"header":n.appendChild(t.genereateHeaderElement(e,s,r));break;case"group":i.appendChild(t.genereateGroupElement(e,s,r));break;case"calc":i.appendChild(t.genereateCalcElement(e,s,r));break;case"row":var a=t.genereateRowElement(e,s,r);t.mapElementStyles(o%2&&r.evenRow?r.evenRow:r.oddRow,a,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),i.appendChild(a);break}}),n.innerHTML&&o.appendChild(n),o.appendChild(i),this.mapElementStyles(this.table.element,o,["border-top","border-left","border-right","border-bottom"]),o},C.prototype.lookupTableStyles=function(){var e={};return this.cloneTableStyle&&window.getComputedStyle&&(e.oddRow=this.table.element.querySelector(".tabulator-row-odd:not(.tabulator-group):not(.tabulator-calcs)"),e.evenRow=this.table.element.querySelector(".tabulator-row-even:not(.tabulator-group):not(.tabulator-calcs)"),e.calcRow=this.table.element.querySelector(".tabulator-row.tabulator-calcs"),e.firstRow=this.table.element.querySelector(".tabulator-row:not(.tabulator-group):not(.tabulator-calcs)"),e.firstGroup=this.table.element.getElementsByClassName("tabulator-group")[0],e.firstRow&&(e.styleCells=e.firstRow.getElementsByClassName("tabulator-cell"),e.firstCell=e.styleCells[0],e.lastCell=e.styleCells[e.styleCells.length-1])),e},C.prototype.genereateHeaderElement=function(e,t,o){var n=this,i=document.createElement("tr");return e.columns.forEach(function(e){if(e){var t=document.createElement("th"),o=e.component._column.definition.cssClass?e.component._column.definition.cssClass.split(" "):[];t.colSpan=e.width,t.rowSpan=e.height,t.innerHTML=e.value,n.cloneTableStyle&&(t.style.boxSizing="border-box"),o.forEach(function(e){t.classList.add(e)}),n.mapElementStyles(e.component.getElement(),t,["text-align","border-top","border-left","border-right","border-bottom","background-color","color","font-weight","font-family","font-size"]),n.mapElementStyles(e.component._column.contentElement,t,["padding-top","padding-left","padding-right","padding-bottom"]),e.component._column.visible?n.mapElementStyles(e.component.getElement(),t,["width"]):e.component._column.definition.width&&(t.style.width=e.component._column.definition.width+"px"),e.component._column.parent&&n.mapElementStyles(e.component._column.parent.groupElement,t,["border-top"]),i.appendChild(t)}}),i},C.prototype.genereateGroupElement=function(e,t,o){var n=document.createElement("tr"),i=document.createElement("td"),r=e.columns[0];return n.classList.add("tabulator-print-table-row"),t.groupHeader&&t.groupHeader[e.indent]?r.value=t.groupHeader[e.indent](r.value,e.component._group.getRowCount(),e.component._group.getData(),e.component):!1===t.groupHeader?r.value=r.value:r.value=e.component._group.generator(r.value,e.component._group.getRowCount(),e.component._group.getData(),e.component),i.colSpan=r.width,i.innerHTML=r.value,n.classList.add("tabulator-print-table-group"),n.classList.add("tabulator-group-level-"+e.indent),r.component.isVisible()&&n.classList.add("tabulator-group-visible"),this.mapElementStyles(o.firstGroup,n,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),this.mapElementStyles(o.firstGroup,i,["padding-top","padding-left","padding-right","padding-bottom"]),n.appendChild(i),n},C.prototype.genereateCalcElement=function(e,t,o){var n=this.genereateRowElement(e,t,o);return n.classList.add("tabulator-print-table-calcs"),this.mapElementStyles(o.calcRow,n,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),n},C.prototype.genereateRowElement=function(e,t,o){var n=this,a=document.createElement("tr");return a.classList.add("tabulator-print-table-row"),e.columns.forEach(function(s){if(s){var c=document.createElement("td"),p=s.component._column,l=s.value,u={modules:{},getValue:function(){return l},getField:function(){return p.definition.field},getElement:function(){return c},getColumn:function(){return p.getComponent()},getData:function(){return e.component.getData()},getRow:function(){return e.component},getComponent:function(){return u},column:p},b=p.definition.cssClass?p.definition.cssClass.split(" "):[];if(b.forEach(function(e){c.classList.add(e)}),n.table.modExists("format")&&!1!==n.config.formatCells)l=n.table.modules.format.formatExportValue(u,n.colVisProp);else switch("undefined"===typeof l?"undefined":r(l)){case"object":l=JSON.stringify(l);break;case"undefined":case"null":l="";break;default:l=l}l instanceof Node?c.appendChild(l):c.innerHTML=l,o.firstCell&&(n.mapElementStyles(o.firstCell,c,["padding-top","padding-left","padding-right","padding-bottom","border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size"]),p.definition.align&&(c.style.textAlign=p.definition.align)),n.table.options.dataTree&&!1!==n.config.dataTree&&(t.treeElementField&&t.treeElementField==p.field||!t.treeElementField&&0==i)&&(e.component._row.modules.dataTree.controlEl&&c.insertBefore(e.component._row.modules.dataTree.controlEl.cloneNode(!0),c.firstChild),e.component._row.modules.dataTree.branchEl&&c.insertBefore(e.component._row.modules.dataTree.branchEl.cloneNode(!0),c.firstChild)),a.appendChild(c),u.modules.format&&u.modules.format.renderedCallback&&u.modules.format.renderedCallback(),t.rowFormatter&&!1!==n.config.formatCells&&t.rowFormatter(e.component)}}),a},C.prototype.genereateHTMLTable=function(e){var t=document.createElement("div");return t.appendChild(this.genereateTableElement(e)),t.innerHTML},C.prototype.getHtml=function(e,t,o,n){var i=this.generateExportList(o||this.table.options.htmlOutputConfig,t,e,n||"htmlOutput");return this.genereateHTMLTable(i)},C.prototype.mapElementStyles=function(e,t,o){if(this.cloneTableStyle&&e&&t){var n={"background-color":"backgroundColor",color:"fontColor",width:"width","font-weight":"fontWeight","font-family":"fontFamily","font-size":"fontSize","text-align":"textAlign","border-top":"borderTop","border-left":"borderLeft","border-right":"borderRight","border-bottom":"borderBottom","padding-top":"paddingTop","padding-left":"paddingLeft","padding-right":"paddingRight","padding-bottom":"paddingBottom"};if(window.getComputedStyle){var i=window.getComputedStyle(e);o.forEach(function(e){t.style[n[e]]=i.getPropertyValue(e)})}}},f.prototype.registerModule("export",C);var S=function(e){this.table=e,this.filterList=[],this.headerFilters={},this.headerFilterColumns=[],this.prevHeaderFilterChangeCheck="",this.prevHeaderFilterChangeCheck="{}",this.changed=!1};S.prototype.initializeColumn=function(e,t){var o,n=this,i=e.getField();function a(t){var a,s="input"==e.modules.filter.tagType&&"text"==e.modules.filter.attrType||"textarea"==e.modules.filter.tagType?"partial":"match",c="",p="";if("undefined"===typeof e.modules.filter.prevSuccess||e.modules.filter.prevSuccess!==t){if(e.modules.filter.prevSuccess=t,e.modules.filter.emptyFunc(t))delete n.headerFilters[i];else{switch(e.modules.filter.value=t,r(e.definition.headerFilterFunc)){case"string":n.filters[e.definition.headerFilterFunc]?(c=e.definition.headerFilterFunc,a=function(o){var i=e.definition.headerFilterFuncParams||{},r=e.getFieldValue(o);return i="function"===typeof i?i(t,r,o):i,n.filters[e.definition.headerFilterFunc](t,r,o,i)}):console.warn("Header Filter Error - Matching filter function not found: ",e.definition.headerFilterFunc);break;case"function":a=function(o){var n=e.definition.headerFilterFuncParams||{},i=e.getFieldValue(o);return n="function"===typeof n?n(t,i,o):n,e.definition.headerFilterFunc(t,i,o,n)},c=a;break}if(!a)switch(s){case"partial":a=function(o){var n=e.getFieldValue(o);return"undefined"!==typeof n&&null!==n&&String(n).toLowerCase().indexOf(String(t).toLowerCase())>-1},c="like";break;default:a=function(o){return e.getFieldValue(o)==t},c="="}n.headerFilters[i]={value:t,func:a,type:c,params:o||{}}}p=JSON.stringify(n.headerFilters),n.prevHeaderFilterChangeCheck!==p&&(n.prevHeaderFilterChangeCheck=p,n.changed=!0,n.table.rowManager.filterRefresh())}return!0}e.modules.filter={success:a,attrType:!1,tagType:!1,emptyFunc:!1},this.generateHeaderFilterElement(e)},S.prototype.generateHeaderFilterElement=function(e,t,o){var n,i,a,s,c,p,l,u=this,b=this,d=e.modules.filter.success,M=e.getField();function h(){}if(e.modules.filter.headerElement&&e.modules.filter.headerElement.parentNode&&e.contentElement.removeChild(e.modules.filter.headerElement.parentNode),M){switch(e.modules.filter.emptyFunc=e.definition.headerFilterEmptyCheck||function(e){return!e&&"0"!==e&&0!==e},n=document.createElement("div"),n.classList.add("tabulator-header-filter"),r(e.definition.headerFilter)){case"string":b.table.modules.edit.editors[e.definition.headerFilter]?(i=b.table.modules.edit.editors[e.definition.headerFilter],"tick"!==e.definition.headerFilter&&"tickCross"!==e.definition.headerFilter||e.definition.headerFilterEmptyCheck||(e.modules.filter.emptyFunc=function(e){return!0!==e&&!1!==e})):console.warn("Filter Error - Cannot build header filter, No such editor found: ",e.definition.editor);break;case"function":i=e.definition.headerFilter;break;case"boolean":e.modules.edit&&e.modules.edit.editor?i=e.modules.edit.editor:e.definition.formatter&&b.table.modules.edit.editors[e.definition.formatter]?(i=b.table.modules.edit.editors[e.definition.formatter],"tick"!==e.definition.formatter&&"tickCross"!==e.definition.formatter||e.definition.headerFilterEmptyCheck||(e.modules.filter.emptyFunc=function(e){return!0!==e&&!1!==e})):i=b.table.modules.edit.editors["input"];break}if(i){if(s={getValue:function(){return"undefined"!==typeof t?t:""},getField:function(){return e.definition.field},getElement:function(){return n},getColumn:function(){return e.getComponent()},getRow:function(){return{normalizeHeight:function(){}}}},l=e.definition.headerFilterParams||{},l="function"===typeof l?l.call(b.table):l,a=i.call(this.table.modules.edit,s,function(){},d,h,l),!a)return void console.warn("Filter Error - Cannot add filter to "+M+" column, editor returned a value of false");if(!(a instanceof Node))return void console.warn("Filter Error - Cannot add filter to "+M+" column, editor should return an instance of Node, the editor returned:",a);M?b.table.modules.localize.bind("headerFilters|columns|"+e.definition.field,function(e){a.setAttribute("placeholder","undefined"!==typeof e&&e?e:b.table.modules.localize.getText("headerFilters|default"))}):b.table.modules.localize.bind("headerFilters|default",function(e){a.setAttribute("placeholder","undefined"!==typeof b.column.definition.headerFilterPlaceholder&&b.column.definition.headerFilterPlaceholder?b.column.definition.headerFilterPlaceholder:e)}),a.addEventListener("click",function(e){e.stopPropagation(),a.focus()}),a.addEventListener("focus",function(e){var t=u.table.columnManager.element.scrollLeft;t!==u.table.rowManager.element.scrollLeft&&(u.table.rowManager.scrollHorizontal(t),u.table.columnManager.scrollHorizontal(t))}),c=!1,p=function(e){c&&clearTimeout(c),c=setTimeout(function(){d(a.value)},b.table.options.headerFilterLiveFilterDelay)},e.modules.filter.headerElement=a,e.modules.filter.attrType=a.hasAttribute("type")?a.getAttribute("type").toLowerCase():"",e.modules.filter.tagType=a.tagName.toLowerCase(),!1!==e.definition.headerFilterLiveFilter&&("autocomplete"!==e.definition.headerFilter&&"tickCross"!==e.definition.headerFilter&&("autocomplete"!==e.definition.editor&&"tickCross"!==e.definition.editor||!0!==e.definition.headerFilter)&&(a.addEventListener("keyup",p),a.addEventListener("search",p),"number"==e.modules.filter.attrType&&a.addEventListener("change",function(e){d(a.value)}),"text"==e.modules.filter.attrType&&"ie"!==this.table.browser&&a.setAttribute("type","search")),"input"!=e.modules.filter.tagType&&"select"!=e.modules.filter.tagType&&"textarea"!=e.modules.filter.tagType||a.addEventListener("mousedown",function(e){e.stopPropagation()})),n.appendChild(a),e.contentElement.appendChild(n),o||b.headerFilterColumns.push(e)}}else console.warn("Filter Error - Cannot add header filter, column has no field set:",e.definition.title)},S.prototype.hideHeaderFilterElements=function(){this.headerFilterColumns.forEach(function(e){e.modules.filter&&e.modules.filter.headerElement&&(e.modules.filter.headerElement.style.display="none")})},S.prototype.showHeaderFilterElements=function(){this.headerFilterColumns.forEach(function(e){e.modules.filter&&e.modules.filter.headerElement&&(e.modules.filter.headerElement.style.display="")})},S.prototype.setHeaderFilterFocus=function(e){e.modules.filter&&e.modules.filter.headerElement?e.modules.filter.headerElement.focus():console.warn("Column Filter Focus Error - No header filter set on column:",e.getField())},S.prototype.getHeaderFilterValue=function(e){if(e.modules.filter&&e.modules.filter.headerElement)return e.modules.filter.headerElement.value;console.warn("Column Filter Error - No header filter set on column:",e.getField())},S.prototype.setHeaderFilterValue=function(e,t){e&&(e.modules.filter&&e.modules.filter.headerElement?(this.generateHeaderFilterElement(e,t,!0),e.modules.filter.success(t)):console.warn("Column Filter Error - No header filter set on column:",e.getField()))},S.prototype.reloadHeaderFilter=function(e){e&&(e.modules.filter&&e.modules.filter.headerElement?this.generateHeaderFilterElement(e,e.modules.filter.value,!0):console.warn("Column Filter Error - No header filter set on column:",e.getField()))},S.prototype.hasChanged=function(){var e=this.changed;return this.changed=!1,e},S.prototype.setFilter=function(e,t,o,n){var i=this;i.filterList=[],Array.isArray(e)||(e=[{field:e,type:t,value:o,params:n}]),i.addFilter(e)},S.prototype.addFilter=function(e,t,o,n){var i=this;Array.isArray(e)||(e=[{field:e,type:t,value:o,params:n}]),e.forEach(function(e){e=i.findFilter(e),e&&(i.filterList.push(e),i.changed=!0)}),this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.filter&&this.table.modules.persistence.save("filter")},S.prototype.findFilter=function(e){var t,o=this;if(Array.isArray(e))return this.findSubFilters(e);var n=!1;return"function"==typeof e.field?n=function(t){return e.field(t,e.type||{})}:o.filters[e.type]?(t=o.table.columnManager.getColumnByField(e.field),n=t?function(n){return o.filters[e.type](e.value,t.getFieldValue(n),n,e.params||{})}:function(t){return o.filters[e.type](e.value,t[e.field],t,e.params||{})}):console.warn("Filter Error - No such filter type found, ignoring: ",e.type),e.func=n,!!e.func&&e},S.prototype.findSubFilters=function(e){var t=this,o=[];return e.forEach(function(e){e=t.findFilter(e),e&&o.push(e)}),!!o.length&&o},S.prototype.getFilters=function(e,t){var o=[];return e&&(o=this.getHeaderFilters()),t&&o.forEach(function(e){"function"==typeof e.type&&(e.type="function")}),o=o.concat(this.filtersToArray(this.filterList,t)),o},S.prototype.filtersToArray=function(e,t){var o=this,n=[];return e.forEach(function(e){var i;Array.isArray(e)?n.push(o.filtersToArray(e,t)):(i={field:e.field,type:e.type,value:e.value},t&&"function"==typeof i.type&&(i.type="function"),n.push(i))}),n},S.prototype.getHeaderFilters=function(){var e=[];for(var t in this.headerFilters)e.push({field:t,type:this.headerFilters[t].type,value:this.headerFilters[t].value});return e},S.prototype.removeFilter=function(e,t,o){var n=this;Array.isArray(e)||(e=[{field:e,type:t,value:o}]),e.forEach(function(e){var t=-1;t="object"==r(e.field)?n.filterList.findIndex(function(t){return e===t}):n.filterList.findIndex(function(t){return e.field===t.field&&e.type===t.type&&e.value===t.value}),t>-1?(n.filterList.splice(t,1),n.changed=!0):console.warn("Filter Error - No matching filter type found, ignoring: ",e.type)}),this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.filter&&this.table.modules.persistence.save("filter")},S.prototype.clearFilter=function(e){this.filterList=[],e&&this.clearHeaderFilter(),this.changed=!0,this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.filter&&this.table.modules.persistence.save("filter")},S.prototype.clearHeaderFilter=function(){var e=this;this.headerFilters={},e.prevHeaderFilterChangeCheck="{}",this.headerFilterColumns.forEach(function(t){"undefined"!==typeof t.modules.filter.value&&delete t.modules.filter.value,t.modules.filter.prevSuccess=void 0,e.reloadHeaderFilter(t)}),this.changed=!0},S.prototype.search=function(e,t,o,n){var i=this,r=[],a=[];return Array.isArray(t)||(t=[{field:t,type:o,value:n}]),t.forEach(function(e){e=i.findFilter(e),e&&a.push(e)}),this.table.rowManager.rows.forEach(function(t){var o=!0;a.forEach(function(e){i.filterRecurse(e,t.getData())||(o=!1)}),o&&r.push("data"===e?t.getData("data"):t.getComponent())}),r},S.prototype.filter=function(e,t){var o=this,n=[],i=[];return o.table.options.dataFiltering&&o.table.options.dataFiltering.call(o.table,o.getFilters()),o.table.options.ajaxFiltering||!o.filterList.length&&!Object.keys(o.headerFilters).length?n=e.slice(0):e.forEach(function(e){o.filterRow(e)&&n.push(e)}),o.table.options.dataFiltered&&(n.forEach(function(e){i.push(e.getComponent())}),o.table.options.dataFiltered.call(o.table,o.getFilters(),i)),n},S.prototype.filterRow=function(e,t){var o=this,n=!0,i=e.getData();for(var r in o.filterList.forEach(function(e){o.filterRecurse(e,i)||(n=!1)}),o.headerFilters)o.headerFilters[r].func(i)||(n=!1);return n},S.prototype.filterRecurse=function(e,t){var o=this,n=!1;return Array.isArray(e)?e.forEach(function(e){o.filterRecurse(e,t)&&(n=!0)}):n=e.func(t),n},S.prototype.filters={"=":function(e,t,o,n){return t==e},"<":function(e,t,o,n){return t":function(e,t,o,n){return t>e},">=":function(e,t,o,n){return t>=e},"!=":function(e,t,o,n){return t!=e},regex:function(e,t,o,n){return"string"==typeof e&&(e=new RegExp(e)),e.test(t)},like:function(e,t,o,n){return null===e||"undefined"===typeof e?t===e:"undefined"!==typeof t&&null!==t&&String(t).toLowerCase().indexOf(e.toLowerCase())>-1},keywords:function(e,t,o,n){var i=e.toLowerCase().split("undefined"===typeof n.separator?" ":n.separator),r=String(null===t||"undefined"===typeof t?"":t).toLowerCase(),a=[];return i.forEach(function(e){r.includes(e)&&a.push(!0)}),n.matchAll?a.length===i.length:!!a.length},starts:function(e,t,o,n){return null===e||"undefined"===typeof e?t===e:"undefined"!==typeof t&&null!==t&&String(t).toLowerCase().startsWith(e.toLowerCase())},ends:function(e,t,o,n){return null===e||"undefined"===typeof e?t===e:"undefined"!==typeof t&&null!==t&&String(t).toLowerCase().endsWith(e.toLowerCase())},in:function(e,t,o,n){return Array.isArray(e)?!e.length||e.indexOf(t)>-1:(console.warn("Filter Error - filter value is not an array:",e),!1)}},f.prototype.registerModule("filter",S);var E=function(e){this.table=e};E.prototype.initializeColumn=function(e){e.modules.format=this.lookupFormatter(e,""),"undefined"!==typeof e.definition.formatterPrint&&(e.modules.format.print=this.lookupFormatter(e,"Print")),"undefined"!==typeof e.definition.formatterClipboard&&(e.modules.format.clipboard=this.lookupFormatter(e,"Clipboard")),"undefined"!==typeof e.definition.formatterHtmlOutput&&(e.modules.format.htmlOutput=this.lookupFormatter(e,"HtmlOutput"))},E.prototype.lookupFormatter=function(e,t){var o={params:e.definition["formatter"+t+"Params"]||{}},n=e.definition["formatter"+t];switch("undefined"===typeof n?"undefined":r(n)){case"string":"tick"===n&&(n="tickCross","undefined"==typeof o.params.crossElement&&(o.params.crossElement=!1),console.warn("DEPRECATION WARNING - the tick formatter has been deprecated, please use the tickCross formatter with the crossElement param set to false")),this.formatters[n]?o.formatter=this.formatters[n]:(console.warn("Formatter Error - No such formatter found: ",n),o.formatter=this.formatters.plaintext);break;case"function":o.formatter=n;break;default:o.formatter=this.formatters.plaintext;break}return o},E.prototype.cellRendered=function(e){e.modules.format&&e.modules.format.renderedCallback&&!e.modules.format.rendered&&(e.modules.format.renderedCallback(),e.modules.format.rendered=!0)},E.prototype.formatValue=function(e){var t=e.getComponent(),o="function"===typeof e.column.modules.format.params?e.column.modules.format.params(t):e.column.modules.format.params;function n(t){e.modules.format||(e.modules.format={}),e.modules.format.renderedCallback=t,e.modules.format.rendered=!1}return e.column.modules.format.formatter.call(this,t,o,n)},E.prototype.formatExportValue=function(e,t){var o,n=e.column.modules.format[t];if(n){var i=function(t){e.modules.format||(e.modules.format={}),e.modules.format.renderedCallback=t,e.modules.format.rendered=!1};return o="function"===typeof n.params?n.params(component):n.params,n.formatter.call(this,e.getComponent(),o,i)}return this.formatValue(e)},E.prototype.sanitizeHTML=function(e){if(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return String(e).replace(/[&<>"'`=\/]/g,function(e){return t[e]})}return e},E.prototype.emptyToSpace=function(e){return null===e||"undefined"===typeof e||""===e?" ":e},E.prototype.getFormatter=function(e){switch("undefined"===typeof e?"undefined":r(e)){case"string":this.formatters[e]?e=this.formatters[e]:(console.warn("Formatter Error - No such formatter found: ",e),e=this.formatters.plaintext);break;case"function":e=e;break;default:e=this.formatters.plaintext;break}return e},E.prototype.formatters={plaintext:function(e,t,o){return this.emptyToSpace(this.sanitizeHTML(e.getValue()))},html:function(e,t,o){return e.getValue()},textarea:function(e,t,o){return e.getElement().style.whiteSpace="pre-wrap",this.emptyToSpace(this.sanitizeHTML(e.getValue()))},money:function(e,t,o){var n,i,r,a,s=parseFloat(e.getValue()),c=t.decimal||".",p=t.thousand||",",l=t.symbol||"",u=!!t.symbolAfter,b="undefined"!==typeof t.precision?t.precision:2;if(isNaN(s))return this.emptyToSpace(this.sanitizeHTML(e.getValue()));n=!1!==b?s.toFixed(b):s,n=String(n).split("."),i=n[0],r=n.length>1?c+n[1]:"",a=/(\d+)(\d{3})/;while(a.test(i))i=i.replace(a,"$1"+p+"$2");return u?i+r+l:l+i+r},link:function(e,t,o){var n,i=e.getValue(),a=t.urlPrefix||"",s=t.download,c=i,p=document.createElement("a");if(t.labelField&&(n=e.getData(),c=n[t.labelField]),t.label)switch(r(t.label)){case"string":c=t.label;break;case"function":c=t.label(e);break}if(c){if(t.urlField&&(n=e.getData(),i=n[t.urlField]),t.url)switch(r(t.url)){case"string":i=t.url;break;case"function":i=t.url(e);break}return p.setAttribute("href",a+i),t.target&&p.setAttribute("target",t.target),t.download&&(s="function"==typeof s?s(e):!0===s?"":s,p.setAttribute("download",s)),p.innerHTML=this.emptyToSpace(this.sanitizeHTML(c)),p}return" "},image:function(e,t,o){var n=document.createElement("img"),i=e.getValue();switch(t.urlPrefix&&(i=t.urlPrefix+e.getValue()),t.urlSuffix&&(i+=t.urlSuffix),n.setAttribute("src",i),r(t.height)){case"number":n.style.height=t.height+"px";break;case"string":n.style.height=t.height;break}switch(r(t.width)){case"number":n.style.width=t.width+"px";break;case"string":n.style.width=t.width;break}return n.addEventListener("load",function(){e.getRow().normalizeHeight()}),n},tickCross:function(e,t,o){var n=e.getValue(),i=e.getElement(),r=t.allowEmpty,a=t.allowTruthy,s="undefined"!==typeof t.tickElement?t.tickElement:'',c="undefined"!==typeof t.crossElement?t.crossElement:'';return a&&n||!0===n||"true"===n||"True"===n||1===n||"1"===n?(i.setAttribute("aria-checked",!0),s||""):!r||"null"!==n&&""!==n&&null!==n&&"undefined"!==typeof n?(i.setAttribute("aria-checked",!1),c||""):(i.setAttribute("aria-checked","mixed"),"")},datetime:function(e,t,o){var n=t.inputFormat||"YYYY-MM-DD hh:mm:ss",i=t.outputFormat||"DD/MM/YYYY hh:mm:ss",r="undefined"!==typeof t.invalidPlaceholder?t.invalidPlaceholder:"",a=e.getValue(),s=moment(a,n);return s.isValid()?t.timezone?s.tz(t.timezone).format(i):s.format(i):!0===r?a:"function"===typeof r?r(a):r},datetimediff:function(e,t,o){var n=t.inputFormat||"YYYY-MM-DD hh:mm:ss",i="undefined"!==typeof t.invalidPlaceholder?t.invalidPlaceholder:"",r="undefined"!==typeof t.suffix&&t.suffix,a="undefined"!==typeof t.unit?t.unit:void 0,s="undefined"!==typeof t.humanize&&t.humanize,c="undefined"!==typeof t.date?t.date:moment(),p=e.getValue(),l=moment(p,n);return l.isValid()?s?moment.duration(l.diff(c)).humanize(r):l.diff(c,a)+(r?" "+r:""):!0===i?p:"function"===typeof i?i(p):i},lookup:function(e,t,o){var n=e.getValue();return"undefined"===typeof t[n]?(console.warn("Missing display value for "+n),n):t[n]},star:function(e,t,o){var n=e.getValue(),i=e.getElement(),r=t&&t.stars?t.stars:5,a=document.createElement("span"),s=document.createElementNS("http://www.w3.org/2000/svg","svg"),c='',p='';a.style.verticalAlign="middle",s.setAttribute("width","14"),s.setAttribute("height","14"),s.setAttribute("viewBox","0 0 512 512"),s.setAttribute("xml:space","preserve"),s.style.padding="0 1px",n=n&&!isNaN(n)?parseInt(n):0,n=Math.max(0,Math.min(n,r));for(var l=1;l<=r;l++){var u=s.cloneNode(!0);u.innerHTML=l<=n?c:p,a.appendChild(u)}return i.style.whiteSpace="nowrap",i.style.overflow="hidden",i.style.textOverflow="ellipsis",i.setAttribute("aria-label",n),a},traffic:function(e,t,o){var n,i,a=this.sanitizeHTML(e.getValue())||0,s=document.createElement("span"),c=t&&t.max?t.max:100,p=t&&t.min?t.min:0,l=t&&"undefined"!==typeof t.color?t.color:["red","orange","green"],u="#666666";if(!isNaN(a)&&"undefined"!==typeof e.getValue()){switch(s.classList.add("tabulator-traffic-light"),i=parseFloat(a)<=c?parseFloat(a):c,i=parseFloat(i)>=p?parseFloat(i):p,n=(c-p)/100,i=Math.round((i-p)/n),"undefined"===typeof l?"undefined":r(l)){case"string":u=l;break;case"function":u=l(a);break;case"object":if(Array.isArray(l)){var b=100/l.length,d=Math.floor(i/b);d=Math.min(d,l.length-1),d=Math.max(d,0),u=l[d];break}}return s.style.backgroundColor=u,s}},progress:function(e,t,o){var n,i,a,s,c,p=this.sanitizeHTML(e.getValue())||0,l=e.getElement(),u=t&&t.max?t.max:100,b=t&&t.min?t.min:0,M=t&&t.legendAlign?t.legendAlign:"center";switch(i=parseFloat(p)<=u?parseFloat(p):u,i=parseFloat(i)>=b?parseFloat(i):b,n=(u-b)/100,i=Math.round((i-b)/n),r(t.color)){case"string":a=t.color;break;case"function":a=t.color(p);break;case"object":if(Array.isArray(t.color)){var h=100/t.color.length,f=Math.floor(i/h);f=Math.min(f,t.color.length-1),f=Math.max(f,0),a=t.color[f];break}default:a="#2DC214"}switch(r(t.legend)){case"string":s=t.legend;break;case"function":s=t.legend(p);break;case"boolean":s=p;break;default:s=!1}switch(r(t.legendColor)){case"string":c=t.legendColor;break;case"function":c=t.legendColor(p);break;case"object":if(Array.isArray(t.legendColor)){h=100/t.legendColor.length,f=Math.floor(i/h);f=Math.min(f,t.legendColor.length-1),f=Math.max(f,0),c=t.legendColor[f]}break;default:c="#000"}l.style.minWidth="30px",l.style.position="relative",l.setAttribute("aria-label",i);var z=document.createElement("div");if(z.style.display="inline-block",z.style.position="relative",z.style.width=i+"%",z.style.backgroundColor=a,z.style.height="100%",z.setAttribute("data-max",u),z.setAttribute("data-min",b),s){var O=document.createElement("div");O.style.position="absolute",O.style.top="4px",O.style.left=0,O.style.textAlign=M,O.style.width="100%",O.style.color=c,O.innerHTML=s}return o(function(){if(!(e instanceof d)){var t=document.createElement("div");t.style.position="absolute",t.style.top="4px",t.style.bottom="4px",t.style.left="4px",t.style.right="4px",l.appendChild(t),l=t}l.appendChild(z),s&&l.appendChild(O)}),""},color:function(e,t,o){return e.getElement().style.backgroundColor=this.sanitizeHTML(e.getValue()),""},buttonTick:function(e,t,o){return''},buttonCross:function(e,t,o){return''},rownum:function(e,t,o){return this.table.rowManager.activeRows.indexOf(e.getRow()._getSelf())+1},handle:function(e,t,o){return e.getElement().classList.add("tabulator-row-handle"),"
"},responsiveCollapse:function(e,t,o){var n=document.createElement("div"),i=e.getRow()._row.modules.responsiveLayout;function r(e){var t=i.element;i.open=e,t&&(i.open?(n.classList.add("open"),t.style.display=""):(n.classList.remove("open"),t.style.display="none"))}return n.classList.add("tabulator-responsive-collapse-toggle"),n.innerHTML="+-",e.getElement().classList.add("tabulator-row-handle"),n.addEventListener("click",function(e){e.stopImmediatePropagation(),r(!i.open)}),r(i.open),n},rowSelection:function(e,t,o){var n=this,i=document.createElement("input");if(i.type="checkbox",this.table.modExists("selectRow",!0))if(i.addEventListener("click",function(e){e.stopPropagation()}),"function"==typeof e.getRow){var r=e.getRow();r instanceof u?(i.addEventListener("change",function(e){r.toggleSelect()}),i.checked=r.isSelected&&r.isSelected(),this.table.modules.selectRow.registerRowSelectCheckbox(r,i)):i=""}else i.addEventListener("change",function(e){n.table.modules.selectRow.selectedRows.length?n.table.deselectRow():n.table.selectRow(t.rowRange)}),this.table.modules.selectRow.registerHeaderSelectCheckbox(i);return i}},f.prototype.registerModule("format",E);var T=function(e){this.table=e,this.leftColumns=[],this.rightColumns=[],this.leftMargin=0,this.rightMargin=0,this.rightPadding=0,this.initializationMode="left",this.active=!1,this.scrollEndTimer=!1};T.prototype.reset=function(){this.initializationMode="left",this.leftColumns=[],this.rightColumns=[],this.leftMargin=0,this.rightMargin=0,this.rightMargin=0,this.active=!1,this.table.columnManager.headersElement.style.marginLeft=0,this.table.columnManager.element.style.paddingRight=0},T.prototype.initializeColumn=function(e){var t={margin:0,edge:!1};e.isGroup||(this.frozenCheck(e)?(t.position=this.initializationMode,"left"==this.initializationMode?this.leftColumns.push(e):this.rightColumns.unshift(e),this.active=!0,e.modules.frozen=t):this.initializationMode="right")},T.prototype.frozenCheck=function(e){return e.parent.isGroup&&e.definition.frozen&&console.warn("Frozen Column Error - Parent column group must be frozen, not individual columns or sub column groups"),e.parent.isGroup?this.frozenCheck(e.parent):e.definition.frozen},T.prototype.scrollHorizontal=function(){var e,t=this;this.active&&(clearTimeout(this.scrollEndTimer),this.scrollEndTimer=setTimeout(function(){t.layout()},100),e=this.table.rowManager.getVisibleRows(),this.calcMargins(),this.layoutColumnPosition(),this.layoutCalcRows(),e.forEach(function(e){"row"===e.type&&t.layoutRow(e)}),this.table.rowManager.tableElement.style.marginRight=this.rightMargin)},T.prototype.calcMargins=function(){this.leftMargin=this._calcSpace(this.leftColumns,this.leftColumns.length)+"px",this.table.columnManager.headersElement.style.marginLeft=this.leftMargin,this.rightMargin=this._calcSpace(this.rightColumns,this.rightColumns.length)+"px",this.table.columnManager.element.style.paddingRight=this.rightMargin,this.rightPadding=this.table.rowManager.element.clientWidth+this.table.columnManager.scrollLeft},T.prototype.layoutCalcRows=function(){this.table.modExists("columnCalcs")&&(this.table.modules.columnCalcs.topInitialized&&this.table.modules.columnCalcs.topRow&&this.layoutRow(this.table.modules.columnCalcs.topRow),this.table.modules.columnCalcs.botInitialized&&this.table.modules.columnCalcs.botRow&&this.layoutRow(this.table.modules.columnCalcs.botRow))},T.prototype.layoutColumnPosition=function(e){var t=this,o=[];this.leftColumns.forEach(function(n,i){if(n.modules.frozen.margin=t._calcSpace(t.leftColumns,i)+t.table.columnManager.scrollLeft+"px",i==t.leftColumns.length-1?n.modules.frozen.edge=!0:n.modules.frozen.edge=!1,n.parent.isGroup){var r=t.getColGroupParentElement(n);o.includes(r)||(t.layoutElement(r,n),o.push(r)),n.modules.frozen.edge&&r.classList.add("tabulator-frozen-"+n.modules.frozen.position)}else t.layoutElement(n.getElement(),n);e&&n.cells.forEach(function(e){t.layoutElement(e.getElement(!0),n)})}),this.rightColumns.forEach(function(o,n){o.modules.frozen.margin=t.rightPadding-t._calcSpace(t.rightColumns,n+1)+"px",n==t.rightColumns.length-1?o.modules.frozen.edge=!0:o.modules.frozen.edge=!1,o.parent.isGroup?t.layoutElement(t.getColGroupParentElement(o),o):t.layoutElement(o.getElement(),o),e&&o.cells.forEach(function(e){t.layoutElement(e.getElement(!0),o)})})},T.prototype.getColGroupParentElement=function(e){return e.parent.isGroup?this.getColGroupParentElement(e.parent):e.getElement()},T.prototype.layout=function(){var e=this;e.active&&(this.calcMargins(),e.table.rowManager.getDisplayRows().forEach(function(t){"row"===t.type&&e.layoutRow(t)}),this.layoutCalcRows(),this.layoutColumnPosition(!0),this.table.rowManager.tableElement.style.marginRight=this.rightMargin)},T.prototype.layoutRow=function(e){var t=this,o=e.getElement();o.style.paddingLeft=this.leftMargin,this.leftColumns.forEach(function(o){var n=e.getCell(o);n&&t.layoutElement(n.getElement(!0),o)}),this.rightColumns.forEach(function(o){var n=e.getCell(o);n&&t.layoutElement(n.getElement(!0),o)})},T.prototype.layoutElement=function(e,t){t.modules.frozen&&(e.style.position="absolute",e.style.left=t.modules.frozen.margin,e.classList.add("tabulator-frozen"),t.modules.frozen.edge&&e.classList.add("tabulator-frozen-"+t.modules.frozen.position))},T.prototype._calcSpace=function(e,t){for(var o=0,n=0;n-1&&t.splice(o,1)}),t},x.prototype.freezeRow=function(e){e.modules.frozen?console.warn("Freeze Error - Row is already frozen"):(e.modules.frozen=!0,this.topElement.appendChild(e.getElement()),e.initialize(),e.normalizeHeight(),this.table.rowManager.adjustTableSize(),this.rows.push(e),this.table.rowManager.refreshActiveData("display"),this.styleRows())},x.prototype.unfreezeRow=function(e){this.rows.indexOf(e);e.modules.frozen?(e.modules.frozen=!1,this.detachRow(e),this.table.rowManager.adjustTableSize(),this.table.rowManager.refreshActiveData("display"),this.rows.length&&this.styleRows()):console.warn("Freeze Error - Row is already unfrozen")},x.prototype.detachRow=function(e){var t=this.rows.indexOf(e);if(t>-1){var o=e.getElement();o.parentNode.removeChild(o),this.rows.splice(t,1)}},x.prototype.styleRows=function(e){var t=this;this.rows.forEach(function(e,o){t.table.rowManager.styleRow(e,o)})},f.prototype.registerModule("frozenRows",x);var N=function(e){this._group=e,this.type="GroupComponent"};N.prototype.getKey=function(){return this._group.key},N.prototype.getField=function(){return this._group.field},N.prototype.getElement=function(){return this._group.element},N.prototype.getRows=function(){return this._group.getRows(!0)},N.prototype.getSubGroups=function(){return this._group.getSubGroups(!0)},N.prototype.getParentGroup=function(){return!!this._group.parent&&this._group.parent.getComponent()},N.prototype.getVisibility=function(){return console.warn("getVisibility function is deprecated, you should now use the isVisible function"),this._group.visible},N.prototype.isVisible=function(){return this._group.visible},N.prototype.show=function(){this._group.show()},N.prototype.hide=function(){this._group.hide()},N.prototype.toggle=function(){this._group.toggleVisibility()},N.prototype._getSelf=function(){return this._group},N.prototype.getTable=function(){return this._group.groupManager.table};var B=function(e,t,o,n,i,r,a){this.groupManager=e,this.parent=t,this.key=n,this.level=o,this.field=i,this.hasSubGroups=o-1?o?this.rows.splice(i+1,0,e):this.rows.splice(i,0,e):o?this.rows.push(e):this.rows.unshift(e),e.modules.group=this,this.generateGroupHeaderContents(),this.groupManager.table.modExists("columnCalcs")&&"table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modules.columnCalcs.recalcGroup(this),this.groupManager.updateGroupRows(!0)},B.prototype.scrollHeader=function(e){this.arrowElement.style.marginLeft=e,this.groupList.forEach(function(t){t.scrollHeader(e)})},B.prototype.getRowIndex=function(e){},B.prototype.conformRowData=function(e){return this.field?e[this.field]=this.key:console.warn("Data Conforming Error - Cannot conform row data to match new group as groupBy is a function"),this.parent&&(e=this.parent.conformRowData(e)),e},B.prototype.removeRow=function(e){var t=this.rows.indexOf(e),o=e.getElement();t>-1&&this.rows.splice(t,1),this.groupManager.table.options.groupValues||this.rows.length?(o.parentNode&&o.parentNode.removeChild(o),this.generateGroupHeaderContents(),this.groupManager.table.modExists("columnCalcs")&&"table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modules.columnCalcs.recalcGroup(this)):(this.parent?this.parent.removeGroup(this):this.groupManager.removeGroup(this),this.groupManager.updateGroupRows(!0))},B.prototype.removeGroup=function(e){var t,o=e.level+"_"+e.key;this.groups[o]&&(delete this.groups[o],t=this.groupList.indexOf(e),t>-1&&this.groupList.splice(t,1),this.groupList.length||(this.parent?this.parent.removeGroup(this):this.groupManager.removeGroup(this)))},B.prototype.getHeadersAndRows=function(e){var t=[];return t.push(this),this._visSet(),this.visible?this.groupList.length?this.groupList.forEach(function(o){t=t.concat(o.getHeadersAndRows(e))}):(!e&&"table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modExists("columnCalcs")&&this.groupManager.table.modules.columnCalcs.hasTopCalcs()&&(this.calcs.top&&(this.calcs.top.detachElement(),this.calcs.top.deleteCells()),this.calcs.top=this.groupManager.table.modules.columnCalcs.generateTopRow(this.rows),t.push(this.calcs.top)),t=t.concat(this.rows),!e&&"table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modExists("columnCalcs")&&this.groupManager.table.modules.columnCalcs.hasBottomCalcs()&&(this.calcs.bottom&&(this.calcs.bottom.detachElement(),this.calcs.bottom.deleteCells()),this.calcs.bottom=this.groupManager.table.modules.columnCalcs.generateBottomRow(this.rows),t.push(this.calcs.bottom))):this.groupList.length||"table"==this.groupManager.table.options.columnCalcs||this.groupManager.table.modExists("columnCalcs")&&(!e&&this.groupManager.table.modules.columnCalcs.hasTopCalcs()&&(this.calcs.top&&(this.calcs.top.detachElement(),this.calcs.top.deleteCells()),this.groupManager.table.options.groupClosedShowCalcs&&(this.calcs.top=this.groupManager.table.modules.columnCalcs.generateTopRow(this.rows),t.push(this.calcs.top))),!e&&this.groupManager.table.modules.columnCalcs.hasBottomCalcs()&&(this.calcs.bottom&&(this.calcs.bottom.detachElement(),this.calcs.bottom.deleteCells()),this.groupManager.table.options.groupClosedShowCalcs&&(this.calcs.bottom=this.groupManager.table.modules.columnCalcs.generateBottomRow(this.rows),t.push(this.calcs.bottom)))),t},B.prototype.getData=function(e,t){var o=[];return this._visSet(),(!e||e&&this.visible)&&this.rows.forEach(function(e){o.push(e.getData(t||"data"))}),o},B.prototype.getRowCount=function(){var e=0;return this.groupList.length?this.groupList.forEach(function(t){e+=t.getRowCount()}):e=this.rows.length,e},B.prototype.toggleVisibility=function(){this.visible?this.hide():this.show()},B.prototype.hide=function(){this.visible=!1,"classic"!=this.groupManager.table.rowManager.getRenderMode()||this.groupManager.table.options.pagination?this.groupManager.updateGroupRows(!0):(this.element.classList.remove("tabulator-group-visible"),this.groupList.length?this.groupList.forEach(function(e){var t=e.getHeadersAndRows();t.forEach(function(e){e.detachElement()})}):this.rows.forEach(function(e){var t=e.getElement();t.parentNode.removeChild(t)}),this.groupManager.table.rowManager.setDisplayRows(this.groupManager.updateGroupRows(),this.groupManager.getDisplayIndex()),this.groupManager.table.rowManager.checkClassicModeGroupHeaderWidth()),this.groupManager.table.options.groupVisibilityChanged.call(this.table,this.getComponent(),!1)},B.prototype.show=function(){var e=this;if(e.visible=!0,"classic"!=this.groupManager.table.rowManager.getRenderMode()||this.groupManager.table.options.pagination)this.groupManager.updateGroupRows(!0);else{this.element.classList.add("tabulator-group-visible");var t=e.getElement();this.groupList.length?this.groupList.forEach(function(e){var o=e.getHeadersAndRows();o.forEach(function(e){var o=e.getElement();t.parentNode.insertBefore(o,t.nextSibling),e.initialize(),t=o})}):e.rows.forEach(function(e){var o=e.getElement();t.parentNode.insertBefore(o,t.nextSibling),e.initialize(),t=o}),this.groupManager.table.rowManager.setDisplayRows(this.groupManager.updateGroupRows(),this.groupManager.getDisplayIndex()),this.groupManager.table.rowManager.checkClassicModeGroupHeaderWidth()}this.groupManager.table.options.groupVisibilityChanged.call(this.table,this.getComponent(),!0)},B.prototype._visSet=function(){var e=[];"function"==typeof this.visible&&(this.rows.forEach(function(t){e.push(t.getData())}),this.visible=this.visible(this.key,this.getRowCount(),e,this.getComponent()))},B.prototype.getRowGroup=function(e){var t=!1;return this.groupList.length?this.groupList.forEach(function(o){var n=o.getRowGroup(e);n&&(t=n)}):this.rows.find(function(t){return t===e})&&(t=this),t},B.prototype.getSubGroups=function(e){var t=[];return this.groupList.forEach(function(o){t.push(e?o.getComponent():o)}),t},B.prototype.getRows=function(e){var t=[];return this.rows.forEach(function(o){t.push(e?o.getComponent():o)}),t},B.prototype.generateGroupHeaderContents=function(){var e=[];this.rows.forEach(function(t){e.push(t.getData())}),this.elementContents=this.generator(this.key,this.getRowCount(),e,this.getComponent());while(this.element.firstChild)this.element.removeChild(this.element.firstChild);"string"===typeof this.elementContents?this.element.innerHTML=this.elementContents:this.element.appendChild(this.elementContents),this.element.insertBefore(this.arrowElement,this.element.firstChild)},B.prototype.getPath=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.unshift(this.key),this.parent&&this.parent.getPath(e),e},B.prototype.getElement=function(){this.addBindingsd=!1,this._visSet(),this.visible?this.element.classList.add("tabulator-group-visible"):this.element.classList.remove("tabulator-group-visible");for(var e=0;en.length&&console.warn("Error creating group headers, groupHeader array is shorter than groupBy array"),e.headerGenerator=[function(){return""}],this.startOpen=[function(){return!1}],e.table.modules.localize.bind("groups|item",function(t,o){e.headerGenerator[0]=function(e,n,i){return("undefined"===typeof e?"":e)+"("+n+" "+(1===n?t:o.groups.items)+")"}}),this.groupIDLookups=[],Array.isArray(t)||t)this.table.modExists("columnCalcs")&&"table"!=this.table.options.columnCalcs&&"both"!=this.table.options.columnCalcs&&this.table.modules.columnCalcs.removeCalcs();else if(this.table.modExists("columnCalcs")&&"group"!=this.table.options.columnCalcs){var i=this.table.columnManager.getRealColumns();i.forEach(function(t){t.definition.topCalc&&e.table.modules.columnCalcs.initializeTopRow(),t.definition.bottomCalc&&e.table.modules.columnCalcs.initializeBottomRow()})}Array.isArray(t)||(t=[t]),t.forEach(function(t,o){var n,i;"function"==typeof t?n=t:(i=e.table.columnManager.getColumnByField(t),n=i?function(e){return i.getFieldValue(e)}:function(e){return e[t]}),e.groupIDLookups.push({field:"function"!==typeof t&&t,func:n,values:!!e.allowedValues&&e.allowedValues[o]})}),o&&(Array.isArray(o)||(o=[o]),o.forEach(function(e){e="function"==typeof e?e:function(){return!0}}),e.startOpen=o),n&&(e.headerGenerator=Array.isArray(n)?n:[n]),this.initialized=!0},k.prototype.setDisplayIndex=function(e){this.displayIndex=e},k.prototype.getDisplayIndex=function(){return this.displayIndex},k.prototype.getRows=function(e){return this.groupIDLookups.length?(this.table.options.dataGrouping.call(this.table),this.generateGroups(e),this.table.options.dataGrouped&&this.table.options.dataGrouped.call(this.table,this.getGroups(!0)),this.updateGroupRows()):e.slice(0)},k.prototype.getGroups=function(e){var t=[];return this.groupList.forEach(function(o){t.push(e?o.getComponent():o)}),t},k.prototype.getChildGroups=function(e){var t=this,o=[];return e||(e=this),e.groupList.forEach(function(e){e.groupList.length?o=o.concat(t.getChildGroups(e)):o.push(e)}),o},k.prototype.wipe=function(){this.groupList.forEach(function(e){e.wipe()})},k.prototype.pullGroupListData=function(e){var t=this,o=[];return e.forEach(function(e){var n={level:0,rowCount:0,headerContent:""},i=[];e.hasSubGroups?(i=t.pullGroupListData(e.groupList),n.level=e.level,n.rowCount=i.length-e.groupList.length,n.headerContent=e.generator(e.key,n.rowCount,e.rows,e),o.push(n),o=o.concat(i)):(n.level=e.level,n.headerContent=e.generator(e.key,e.rows.length,e.rows,e),n.rowCount=e.getRows().length,o.push(n),e.getRows().forEach(function(e){o.push(e.getData("data"))}))}),o},k.prototype.getGroupedData=function(){return this.pullGroupListData(this.groupList)},k.prototype.getRowGroup=function(e){var t=!1;return this.groupList.forEach(function(o){var n=o.getRowGroup(e);n&&(t=n)}),t},k.prototype.countGroups=function(){return this.groupList.length},k.prototype.generateGroups=function(e){var t=this,o=t.groups;t.groups={},t.groupList=[],this.allowedValues&&this.allowedValues[0]?(this.allowedValues[0].forEach(function(e){t.createGroup(e,0,o)}),e.forEach(function(e){t.assignRowToExistingGroup(e,o)})):e.forEach(function(e){t.assignRowToGroup(e,o)})},k.prototype.createGroup=function(e,t,o){var n,i=t+"_"+e;o=o||[],n=new B(this,!1,t,e,this.groupIDLookups[0].field,this.headerGenerator[0],o[i]),this.groups[i]=n,this.groupList.push(n)},k.prototype.assignRowToExistingGroup=function(e,t){var o=this.groupIDLookups[0].func(e.getData()),n="0_"+o;this.groups[n]&&this.groups[n].addRow(e)},k.prototype.assignRowToGroup=function(e,t){var o=this.groupIDLookups[0].func(e.getData()),n=!this.groups["0_"+o];return n&&this.createGroup(o,0,t),this.groups["0_"+o].addRow(e),!n},k.prototype.reassignRowToGroup=function(e){var t=e.getGroup(),o=t.getPath(),n=this.getExpectedPath(e),i=!0;i=o.length==n.length&&o.every(function(e,t){return e===n[t]});i||(t.removeRow(e),this.assignRowToGroup(e,self.groups),this.table.rowManager.refreshActiveData("group",!1,!0))},k.prototype.getExpectedPath=function(e){var t=[],o=e.getData();return this.groupIDLookups.forEach(function(e){t.push(e.func(o))}),t},k.prototype.updateGroupRows=function(e){var t=this,o=[];if(t.groupList.forEach(function(e){o=o.concat(e.getHeadersAndRows())}),e){var n=t.table.rowManager.setDisplayRows(o,this.getDisplayIndex());!0!==n&&this.setDisplayIndex(n),t.table.rowManager.refreshActiveData("group",!0,!0)}return o},k.prototype.scrollHeaders=function(e){this.table.options.virtualDomHoz&&(e-=this.table.vdomHoz.vDomPadLeft),e+="px",this.groupList.forEach(function(t){t.scrollHeader(e)})},k.prototype.removeGroup=function(e){var t,o=e.level+"_"+e.key;this.groups[o]&&(delete this.groups[o],t=this.groupList.indexOf(e),t>-1&&this.groupList.splice(t,1))},f.prototype.registerModule("groupRows",k);var P=function(e){this.table=e,this.history=[],this.index=-1};P.prototype.clear=function(){this.history=[],this.index=-1},P.prototype.action=function(e,t,o){this.history=this.history.slice(0,this.index+1),this.history.push({type:e,component:t,data:o}),this.index++},P.prototype.getHistoryUndoSize=function(){return this.index+1},P.prototype.getHistoryRedoSize=function(){return this.history.length-(this.index+1)},P.prototype.clearComponentHistory=function(e){var t=this.history.findIndex(function(t){return t.component===e});t>-1&&(this.history.splice(t,1),t<=this.index&&this.index--,this.clearComponentHistory(e))},P.prototype.undo=function(){if(this.index>-1){var e=this.history[this.index];return this.undoers[e.type].call(this,e),this.index--,this.table.options.historyUndo.call(this.table,e.type,e.component.getComponent(),e.data),!0}return console.warn("History Undo Error - No more history to undo"),!1},P.prototype.redo=function(){if(this.history.length-1>this.index){this.index++;var e=this.history[this.index];return this.redoers[e.type].call(this,e),this.table.options.historyRedo.call(this.table,e.type,e.component.getComponent(),e.data),!0}return console.warn("History Redo Error - No more history to redo"),!1},P.prototype.undoers={cellEdit:function(e){e.component.setValueProcessData(e.data.oldValue)},rowAdd:function(e){e.component.deleteActual()},rowDelete:function(e){var t=this.table.rowManager.addRowActual(e.data.data,e.data.pos,e.data.index);this.table.options.groupBy&&this.table.modExists("groupRows")&&this.table.modules.groupRows.updateGroupRows(!0),this._rebindRow(e.component,t)},rowMove:function(e){this.table.rowManager.moveRowActual(e.component,this.table.rowManager.rows[e.data.posFrom],!e.data.after),this.table.rowManager.redraw()}},P.prototype.redoers={cellEdit:function(e){e.component.setValueProcessData(e.data.newValue)},rowAdd:function(e){var t=this.table.rowManager.addRowActual(e.data.data,e.data.pos,e.data.index);this.table.options.groupBy&&this.table.modExists("groupRows")&&this.table.modules.groupRows.updateGroupRows(!0),this._rebindRow(e.component,t)},rowDelete:function(e){e.component.deleteActual()},rowMove:function(e){this.table.rowManager.moveRowActual(e.component,this.table.rowManager.rows[e.data.posTo],e.data.after),this.table.rowManager.redraw()}},P.prototype._rebindRow=function(e,t){this.history.forEach(function(o){if(o.component instanceof b)o.component===e&&(o.component=t);else if(o.component instanceof M&&o.component.row===e){var n=o.component.column.getField();n&&(o.component=t.getCell(n))}})},f.prototype.registerModule("history",P);var D=function(e){this.table=e,this.fieldIndex=[],this.hasIndex=!1};D.prototype.parseTable=function(){var e=this,t=e.table.element,o=e.table.options,n=(o.columns,t.getElementsByTagName("th")),i=t.getElementsByTagName("tbody")[0],a=[];e.hasIndex=!1,e.table.options.htmlImporting.call(this.table),i=i?i.getElementsByTagName("tr"):[],e._extractOptions(t,o),n.length?e._extractHeaders(n,i):e._generateBlankHeaders(n,i);for(var s=0;s-1&&e.pressedKeys.splice(i,1)}},this.table.element.addEventListener("keydown",this.keyupBinding),this.table.element.addEventListener("keyup",this.keydownBinding)},I.prototype.clearBindings=function(){this.keyupBinding&&this.table.element.removeEventListener("keydown",this.keyupBinding),this.keydownBinding&&this.table.element.removeEventListener("keyup",this.keydownBinding)},I.prototype.checkBinding=function(e,t){var o=this,n=!0;return e.ctrlKey==t.ctrl&&e.shiftKey==t.shift&&e.metaKey==t.meta&&(t.keys.forEach(function(e){var t=o.pressedKeys.indexOf(e);-1==t&&(n=!1)}),n&&t.action.call(o,e),!0)},I.prototype.bindings={navPrev:"shift + 9",navNext:9,navUp:38,navDown:40,scrollPageUp:33,scrollPageDown:34,scrollToStart:36,scrollToEnd:35,undo:"ctrl + 90",redo:"ctrl + 89",copyToClipboard:"ctrl + 67"},I.prototype.actions={keyBlock:function(e){e.stopPropagation(),e.preventDefault()},scrollPageUp:function(e){var t=this.table.rowManager,o=t.scrollTop-t.height;t.element.scrollHeight;e.preventDefault(),t.displayRowsCount&&(o>=0?t.element.scrollTop=o:t.scrollToRow(t.getDisplayRows()[0])),this.table.element.focus()},scrollPageDown:function(e){var t=this.table.rowManager,o=t.scrollTop+t.height,n=t.element.scrollHeight;e.preventDefault(),t.displayRowsCount&&(o<=n?t.element.scrollTop=o:t.scrollToRow(t.getDisplayRows()[t.displayRowsCount-1])),this.table.element.focus()},scrollToStart:function(e){var t=this.table.rowManager;e.preventDefault(),t.displayRowsCount&&t.scrollToRow(t.getDisplayRows()[0]),this.table.element.focus()},scrollToEnd:function(e){var t=this.table.rowManager;e.preventDefault(),t.displayRowsCount&&t.scrollToRow(t.getDisplayRows()[t.displayRowsCount-1]),this.table.element.focus()},navPrev:function(e){var t=!1;this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell,t&&(e.preventDefault(),t.nav().prev()))},navNext:function(e){var t,o=!1,n=this.table.options.tabEndNewRow;this.table.modExists("edit")&&(o=this.table.modules.edit.currentCell,o&&(e.preventDefault(),t=o.nav(),t.next()||n&&(o.getElement().firstChild.blur(),n=!0===n?this.table.addRow({}):"function"==typeof n?this.table.addRow(n(o.row.getComponent())):this.table.addRow(Object.assign({},n)),n.then(function(){setTimeout(function(){t.next()})}))))},navLeft:function(e){var t=!1;this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell,t&&(e.preventDefault(),t.nav().left()))},navRight:function(e){var t=!1;this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell,t&&(e.preventDefault(),t.nav().right()))},navUp:function(e){var t=!1;this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell,t&&(e.preventDefault(),t.nav().up()))},navDown:function(e){var t=!1;this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell,t&&(e.preventDefault(),t.nav().down()))},undo:function(e){var t=!1;this.table.options.history&&this.table.modExists("history")&&this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell,t||(e.preventDefault(),this.table.modules.history.undo()))},redo:function(e){var t=!1;this.table.options.history&&this.table.modExists("history")&&this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell,t||(e.preventDefault(),this.table.modules.history.redo()))},copyToClipboard:function(e){this.table.modules.edit.currentCell||this.table.modExists("clipboard",!0)&&this.table.modules.clipboard.copy(!1,!0)}},f.prototype.registerModule("keybindings",I);var X=function(e){this.table=e,this.menuElements=[],this.blurEvent=this.hideMenu.bind(this),this.escEvent=this.escMenu.bind(this),this.nestedMenuBlock=!1,this.positionReversedX=!1};X.prototype.initializeColumnHeader=function(e){var t,o=this;e.definition.headerContextMenu&&(e.getElement().addEventListener("contextmenu",this.LoadMenuEvent.bind(this,e,e.definition.headerContextMenu)),this.tapHold(e,e.definition.headerContextMenu)),e.definition.headerMenu&&(t=document.createElement("span"),t.classList.add("tabulator-header-menu-button"),t.innerHTML="⋮",t.addEventListener("click",function(t){t.stopPropagation(),t.preventDefault(),o.LoadMenuEvent(e,e.definition.headerMenu,t)}),e.titleElement.insertBefore(t,e.titleElement.firstChild))},X.prototype.LoadMenuEvent=function(e,t,o){t="function"==typeof t?t.call(this.table,e.getComponent(),o):t,this.loadMenu(o,e,t)},X.prototype.tapHold=function(e,t){var o=this,n=e.getElement(),i=null,r=!1;n.addEventListener("touchstart",function(n){clearTimeout(i),r=!1,i=setTimeout(function(){clearTimeout(i),i=null,r=!0,o.LoadMenuEvent(e,t,n)},1e3)},{passive:!0}),n.addEventListener("touchend",function(e){clearTimeout(i),i=null,r&&e.preventDefault()})},X.prototype.initializeCell=function(e){e.column.definition.contextMenu&&(e.getElement(!0).addEventListener("contextmenu",this.LoadMenuEvent.bind(this,e,e.column.definition.contextMenu)),this.tapHold(e,e.column.definition.contextMenu)),e.column.definition.clickMenu&&e.getElement(!0).addEventListener("click",this.LoadMenuEvent.bind(this,e,e.column.definition.clickMenu))},X.prototype.initializeRow=function(e){this.table.options.rowContextMenu&&(e.getElement().addEventListener("contextmenu",this.LoadMenuEvent.bind(this,e,this.table.options.rowContextMenu)),this.tapHold(e,this.table.options.rowContextMenu)),this.table.options.rowClickMenu&&e.getElement().addEventListener("click",this.LoadMenuEvent.bind(this,e,this.table.options.rowClickMenu))},X.prototype.initializeGroup=function(e){this.table.options.groupContextMenu&&(e.getElement().addEventListener("contextmenu",this.LoadMenuEvent.bind(this,e,this.table.options.groupContextMenu)),this.tapHold(e,this.table.options.groupContextMenu)),this.table.options.groupClickMenu&&e.getElement().addEventListener("click",this.LoadMenuEvent.bind(this,e,this.table.options.groupClickMenu))},X.prototype.loadMenu=function(e,t,o,n){var i=this,r=!(e instanceof MouseEvent),a=document.createElement("div");if(a.classList.add("tabulator-menu"),r||e.preventDefault(),o&&o.length){if(!n){if(this.nestedMenuBlock){if(this.isOpen())return}else this.nestedMenuBlock=setTimeout(function(){i.nestedMenuBlock=!1},100);this.hideMenu(),this.menuElements=[]}o.forEach(function(e){var o=document.createElement("div"),n=e.label,r=e.disabled;e.separator?o.classList.add("tabulator-menu-separator"):(o.classList.add("tabulator-menu-item"),"function"==typeof n&&(n=n.call(i.table,t.getComponent())),n instanceof Node?o.appendChild(n):o.innerHTML=n,"function"==typeof r&&(r=r.call(i.table,t.getComponent())),r?(o.classList.add("tabulator-menu-item-disabled"),o.addEventListener("click",function(e){e.stopPropagation()})):e.menu&&e.menu.length?o.addEventListener("click",function(n){n.stopPropagation(),i.hideOldSubMenus(a),i.loadMenu(n,t,e.menu,o)}):e.action&&o.addEventListener("click",function(o){e.action(o,t.getComponent())}),e.menu&&e.menu.length&&o.classList.add("tabulator-menu-item-submenu")),a.appendChild(o)}),a.addEventListener("click",function(e){i.hideMenu()}),this.menuElements.push(a),this.positionMenu(a,n,r,e)}},X.prototype.hideOldSubMenus=function(e){var t=this.menuElements.indexOf(e);if(t>-1)for(var o=this.menuElements.length-1;o>t;o--){var n=this.menuElements[o];n.parentNode&&n.parentNode.removeChild(n),this.menuElements.pop()}},X.prototype.positionMenu=function(e,t,o,n){var i,r,a,s=this,c=Math.max(document.body.offsetHeight,window.innerHeight);t?(a=f.prototype.helpers.elOffset(t),i=a.left+t.offsetWidth,r=a.top-1):(i=o?n.touches[0].pageX:n.pageX,r=o?n.touches[0].pageY:n.pageY,this.positionReversedX=!1),e.style.top=r+"px",e.style.left=i+"px",setTimeout(function(){s.table.rowManager.element.addEventListener("scroll",s.blurEvent),document.body.addEventListener("click",s.blurEvent),document.body.addEventListener("contextmenu",s.blurEvent),window.addEventListener("resize",s.blurEvent),document.body.addEventListener("keydown",s.escEvent)},100),document.body.appendChild(e),r+e.offsetHeight>=c&&(e.style.top="",e.style.bottom=t?c-a.top-t.offsetHeight-1+"px":c-r+"px"),(i+e.offsetWidth>=document.body.offsetWidth||this.positionReversedX)&&(e.style.left="",e.style.right=t?document.documentElement.offsetWidth-a.left+"px":document.documentElement.offsetWidth-i+"px",this.positionReversedX=!0)},X.prototype.isOpen=function(){return!!this.menuElements.length},X.prototype.escMenu=function(e){27==e.keyCode&&this.hideMenu()},X.prototype.hideMenu=function(){this.menuElements.forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)}),document.body.removeEventListener("keydown",this.escEvent),document.body.removeEventListener("click",this.blurEvent),document.body.removeEventListener("contextmenu",this.blurEvent),window.removeEventListener("resize",this.blurEvent),this.table.rowManager.element.removeEventListener("scroll",this.blurEvent)},X.prototype.menus={},f.prototype.registerModule("menu",X);var j=function(e){this.table=e,this.placeholderElement=this.createPlaceholderElement(),this.hoverElement=!1,this.checkTimeout=!1,this.checkPeriod=250,this.moving=!1,this.toCol=!1,this.toColAfter=!1,this.startX=0,this.autoScrollMargin=40,this.autoScrollStep=5,this.autoScrollTimeout=!1,this.touchMove=!1,this.moveHover=this.moveHover.bind(this),this.endMove=this.endMove.bind(this)};j.prototype.createPlaceholderElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-col"),e.classList.add("tabulator-col-placeholder"),e},j.prototype.initializeColumn=function(e){var t,o=this,n={};e.modules.frozen||(t=e.getElement(),n.mousemove=function(n){e.parent===o.moving.parent&&((o.touchMove?n.touches[0].pageX:n.pageX)-f.prototype.helpers.elOffset(t).left+o.table.columnManager.element.scrollLeft>e.getWidth()/2?o.toCol===e&&o.toColAfter||(t.parentNode.insertBefore(o.placeholderElement,t.nextSibling),o.moveColumn(e,!0)):(o.toCol!==e||o.toColAfter)&&(t.parentNode.insertBefore(o.placeholderElement,t),o.moveColumn(e,!1)))}.bind(o),t.addEventListener("mousedown",function(t){o.touchMove=!1,1===t.which&&(o.checkTimeout=setTimeout(function(){o.startMove(t,e)},o.checkPeriod))}),t.addEventListener("mouseup",function(e){1===e.which&&o.checkTimeout&&clearTimeout(o.checkTimeout)}),o.bindTouchEvents(e)),e.modules.moveColumn=n},j.prototype.bindTouchEvents=function(e){var t,o,n,i,r,a,s=this,c=e.getElement(),p=!1;c.addEventListener("touchstart",function(c){s.checkTimeout=setTimeout(function(){s.touchMove=!0,e,t=e.nextColumn(),n=t?t.getWidth()/2:0,o=e.prevColumn(),i=o?o.getWidth()/2:0,r=0,a=0,p=!1,s.startMove(c,e)},s.checkPeriod)},{passive:!0}),c.addEventListener("touchmove",function(c){var l,u;s.moving&&(s.moveHover(c),p||(p=c.touches[0].pageX),l=c.touches[0].pageX-p,l>0?t&&l-r>n&&(u=t,u!==e&&(p=c.touches[0].pageX,u.getElement().parentNode.insertBefore(s.placeholderElement,u.getElement().nextSibling),s.moveColumn(u,!0))):o&&-l-a>i&&(u=o,u!==e&&(p=c.touches[0].pageX,u.getElement().parentNode.insertBefore(s.placeholderElement,u.getElement()),s.moveColumn(u,!1))),u&&(u,t=u.nextColumn(),r=n,n=t?t.getWidth()/2:0,o=u.prevColumn(),a=i,i=o?o.getWidth()/2:0))},{passive:!0}),c.addEventListener("touchend",function(e){s.checkTimeout&&clearTimeout(s.checkTimeout),s.moving&&s.endMove(e)})},j.prototype.startMove=function(e,t){var o=t.getElement();this.moving=t,this.startX=(this.touchMove?e.touches[0].pageX:e.pageX)-f.prototype.helpers.elOffset(o).left,this.table.element.classList.add("tabulator-block-select"),this.placeholderElement.style.width=t.getWidth()+"px",this.placeholderElement.style.height=t.getHeight()+"px",o.parentNode.insertBefore(this.placeholderElement,o),o.parentNode.removeChild(o),this.hoverElement=o.cloneNode(!0),this.hoverElement.classList.add("tabulator-moving"),this.table.columnManager.getElement().appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.bottom="0",this.touchMove||(this._bindMouseMove(),document.body.addEventListener("mousemove",this.moveHover),document.body.addEventListener("mouseup",this.endMove)),this.moveHover(e)},j.prototype._bindMouseMove=function(){this.table.columnManager.columnsByIndex.forEach(function(e){e.modules.moveColumn.mousemove&&e.getElement().addEventListener("mousemove",e.modules.moveColumn.mousemove)})},j.prototype._unbindMouseMove=function(){this.table.columnManager.columnsByIndex.forEach(function(e){e.modules.moveColumn.mousemove&&e.getElement().removeEventListener("mousemove",e.modules.moveColumn.mousemove)})},j.prototype.moveColumn=function(e,t){var o=this.moving.getCells();this.toCol=e,this.toColAfter=t,t?e.getCells().forEach(function(e,t){var n=e.getElement(!0);n.parentNode.insertBefore(o[t].getElement(),n.nextSibling)}):e.getCells().forEach(function(e,t){var n=e.getElement(!0);n.parentNode.insertBefore(o[t].getElement(),n)})},j.prototype.endMove=function(e){(1===e.which||this.touchMove)&&(this._unbindMouseMove(),this.placeholderElement.parentNode.insertBefore(this.moving.getElement(),this.placeholderElement.nextSibling),this.placeholderElement.parentNode.removeChild(this.placeholderElement),this.hoverElement.parentNode.removeChild(this.hoverElement),this.table.element.classList.remove("tabulator-block-select"),this.toCol&&this.table.columnManager.moveColumnActual(this.moving,this.toCol,this.toColAfter),this.moving=!1,this.toCol=!1,this.toColAfter=!1,this.touchMove||(document.body.removeEventListener("mousemove",this.moveHover),document.body.removeEventListener("mouseup",this.endMove)))},j.prototype.moveHover=function(e){var t,o=this,n=o.table.columnManager.getElement(),i=n.scrollLeft,r=(o.touchMove?e.touches[0].pageX:e.pageX)-f.prototype.helpers.elOffset(n).left+i;o.hoverElement.style.left=r-o.startX+"px",r-ie.getHeight()/2){if(t.toRow!==e||!t.toRowAfter){var n=e.getElement();n.parentNode.insertBefore(t.placeholderElement,n.nextSibling),t.moveRow(e,!0)}}else if(t.toRow!==e||t.toRowAfter){n=e.getElement();n.previousSibling&&(n.parentNode.insertBefore(t.placeholderElement,n),t.moveRow(e,!1))}}.bind(t),e.modules.moveRow=o},F.prototype.initializeRow=function(e){var t,o=this,n={};n.mouseup=function(t){o.tableRowDrop(t,e)}.bind(o),n.mousemove=function(t){var n=e.getElement();t.pageY-f.prototype.helpers.elOffset(n).top+o.table.rowManager.element.scrollTop>e.getHeight()/2?o.toRow===e&&o.toRowAfter||(n.parentNode.insertBefore(o.placeholderElement,n.nextSibling),o.moveRow(e,!0)):(o.toRow!==e||o.toRowAfter)&&(n.parentNode.insertBefore(o.placeholderElement,n),o.moveRow(e,!1))}.bind(o),this.hasHandle||(t=e.getElement(),t.addEventListener("mousedown",function(t){1===t.which&&(o.checkTimeout=setTimeout(function(){o.startMove(t,e)},o.checkPeriod))}),t.addEventListener("mouseup",function(e){1===e.which&&o.checkTimeout&&clearTimeout(o.checkTimeout)}),this.bindTouchEvents(e,e.getElement())),e.modules.moveRow=n},F.prototype.initializeCell=function(e){var t=this,o=e.getElement(!0);o.addEventListener("mousedown",function(o){1===o.which&&(t.checkTimeout=setTimeout(function(){t.startMove(o,e.row)},t.checkPeriod))}),o.addEventListener("mouseup",function(e){1===e.which&&t.checkTimeout&&clearTimeout(t.checkTimeout)}),this.bindTouchEvents(e.row,o)},F.prototype.bindTouchEvents=function(e,t){var o,n,i,r,a,s,c=this,p=!1;t.addEventListener("touchstart",function(t){c.checkTimeout=setTimeout(function(){c.touchMove=!0,e,o=e.nextRow(),i=o?o.getHeight()/2:0,n=e.prevRow(),r=n?n.getHeight()/2:0,a=0,s=0,p=!1,c.startMove(t,e)},c.checkPeriod)},{passive:!0}),this.moving,this.toRow,this.toRowAfter,t.addEventListener("touchmove",function(t){var l,u;c.moving&&(t.preventDefault(),c.moveHover(t),p||(p=t.touches[0].pageY),l=t.touches[0].pageY-p,l>0?o&&l-a>i&&(u=o,u!==e&&(p=t.touches[0].pageY,u.getElement().parentNode.insertBefore(c.placeholderElement,u.getElement().nextSibling),c.moveRow(u,!0))):n&&-l-s>r&&(u=n,u!==e&&(p=t.touches[0].pageY,u.getElement().parentNode.insertBefore(c.placeholderElement,u.getElement()),c.moveRow(u,!1))),u&&(u,o=u.nextRow(),a=i,i=o?o.getHeight()/2:0,n=u.prevRow(),s=r,r=n?n.getHeight()/2:0))}),t.addEventListener("touchend",function(e){c.checkTimeout&&clearTimeout(c.checkTimeout),c.moving&&(c.endMove(e),c.touchMove=!1)})},F.prototype._bindMouseMove=function(){var e=this;e.table.rowManager.getDisplayRows().forEach(function(e){"row"!==e.type&&"group"!==e.type||!e.modules.moveRow.mousemove||e.getElement().addEventListener("mousemove",e.modules.moveRow.mousemove)})},F.prototype._unbindMouseMove=function(){var e=this;e.table.rowManager.getDisplayRows().forEach(function(e){"row"!==e.type&&"group"!==e.type||!e.modules.moveRow.mousemove||e.getElement().removeEventListener("mousemove",e.modules.moveRow.mousemove)})},F.prototype.startMove=function(e,t){var o=t.getElement();this.setStartPosition(e,t),this.moving=t,this.table.element.classList.add("tabulator-block-select"),this.placeholderElement.style.width=t.getWidth()+"px",this.placeholderElement.style.height=t.getHeight()+"px",this.connection?(this.table.element.classList.add("tabulator-movingrow-sending"),this.connectToTables(t)):(o.parentNode.insertBefore(this.placeholderElement,o),o.parentNode.removeChild(o)),this.hoverElement=o.cloneNode(!0),this.hoverElement.classList.add("tabulator-moving"),this.connection?(document.body.appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.top="0",this.hoverElement.style.width=this.table.element.clientWidth+"px",this.hoverElement.style.whiteSpace="nowrap",this.hoverElement.style.overflow="hidden",this.hoverElement.style.pointerEvents="none"):(this.table.rowManager.getTableElement().appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.top="0",this._bindMouseMove()),document.body.addEventListener("mousemove",this.moveHover),document.body.addEventListener("mouseup",this.endMove),this.moveHover(e)},F.prototype.setStartPosition=function(e,t){var o,n,i=this.touchMove?e.touches[0].pageX:e.pageX,r=this.touchMove?e.touches[0].pageY:e.pageY;o=t.getElement(),this.connection?(n=o.getBoundingClientRect(),this.startX=n.left-i+window.pageXOffset,this.startY=n.top-r+window.pageYOffset):this.startY=r-o.getBoundingClientRect().top},F.prototype.endMove=function(e){e&&1!==e.which&&!this.touchMove||(this._unbindMouseMove(),this.connection||(this.placeholderElement.parentNode.insertBefore(this.moving.getElement(),this.placeholderElement.nextSibling),this.placeholderElement.parentNode.removeChild(this.placeholderElement)),this.hoverElement.parentNode.removeChild(this.hoverElement),this.table.element.classList.remove("tabulator-block-select"),this.toRow&&this.table.rowManager.moveRow(this.moving,this.toRow,this.toRowAfter),this.moving=!1,this.toRow=!1,this.toRowAfter=!1,document.body.removeEventListener("mousemove",this.moveHover),document.body.removeEventListener("mouseup",this.endMove),this.connection&&(this.table.element.classList.remove("tabulator-movingrow-sending"),this.disconnectFromTables()))},F.prototype.moveRow=function(e,t){this.toRow=e,this.toRowAfter=t},F.prototype.moveHover=function(e){this.connection?this.moveHoverConnections.call(this,e):this.moveHoverTable.call(this,e)},F.prototype.moveHoverTable=function(e){var t=this.table.rowManager.getElement(),o=t.scrollTop,n=(this.touchMove?e.touches[0].pageY:e.pageY)-t.getBoundingClientRect().top+o;this.hoverElement.style.top=n-this.startY+"px"},F.prototype.moveHoverConnections=function(e){this.hoverElement.style.left=this.startX+(this.touchMove?e.touches[0].pageX:e.pageX)+"px",this.hoverElement.style.top=this.startY+(this.touchMove?e.touches[0].pageY:e.pageY)+"px"},F.prototype.elementRowDrop=function(e,t,o){this.table.options.movableRowsElementDrop&&this.table.options.movableRowsElementDrop(e,t,!!o&&o.getComponent())},F.prototype.connectToTables=function(e){var t,o=this;this.connectionSelectorsTables&&(t=this.table.modules.comms.getConnections(this.connectionSelectorsTables),this.table.options.movableRowsSendingStart.call(this.table,t),this.table.modules.comms.send(this.connectionSelectorsTables,"moveRow","connect",{row:e})),this.connectionSelectorsElements&&(this.connectionElements=[],Array.isArray(this.connectionSelectorsElements)||(this.connectionSelectorsElements=[this.connectionSelectorsElements]),this.connectionSelectorsElements.forEach(function(e){"string"===typeof e?o.connectionElements=o.connectionElements.concat(Array.prototype.slice.call(document.querySelectorAll(e))):o.connectionElements.push(e)}),this.connectionElements.forEach(function(e){var t=function(t){o.elementRowDrop(t,e,o.moving)};e.addEventListener("mouseup",t),e.tabulatorElementDropEvent=t,e.classList.add("tabulator-movingrow-receiving")}))},F.prototype.disconnectFromTables=function(){var e;this.connectionSelectorsTables&&(e=this.table.modules.comms.getConnections(this.connectionSelectorsTables),this.table.options.movableRowsSendingStop.call(this.table,e),this.table.modules.comms.send(this.connectionSelectorsTables,"moveRow","disconnect")),this.connectionElements.forEach(function(e){e.classList.remove("tabulator-movingrow-receiving"),e.removeEventListener("mouseup",e.tabulatorElementDropEvent),delete e.tabulatorElementDropEvent})},F.prototype.connect=function(e,t){var o=this;return this.connectedTable?(console.warn("Move Row Error - Table cannot accept connection, already connected to table:",this.connectedTable),!1):(this.connectedTable=e,this.connectedRow=t,this.table.element.classList.add("tabulator-movingrow-receiving"),o.table.rowManager.getDisplayRows().forEach(function(e){"row"===e.type&&e.modules.moveRow&&e.modules.moveRow.mouseup&&e.getElement().addEventListener("mouseup",e.modules.moveRow.mouseup)}),o.tableRowDropEvent=o.tableRowDrop.bind(o),o.table.element.addEventListener("mouseup",o.tableRowDropEvent),this.table.options.movableRowsReceivingStart.call(this.table,t,e),!0)},F.prototype.disconnect=function(e){var t=this;e===this.connectedTable?(this.connectedTable=!1,this.connectedRow=!1,this.table.element.classList.remove("tabulator-movingrow-receiving"),t.table.rowManager.getDisplayRows().forEach(function(e){"row"===e.type&&e.modules.moveRow&&e.modules.moveRow.mouseup&&e.getElement().removeEventListener("mouseup",e.modules.moveRow.mouseup)}),t.table.element.removeEventListener("mouseup",t.tableRowDropEvent),this.table.options.movableRowsReceivingStop.call(this.table,e)):console.warn("Move Row Error - trying to disconnect from non connected table")},F.prototype.dropComplete=function(e,t,o){var n=!1;if(o){switch(r(this.table.options.movableRowsSender)){case"string":n=this.senders[this.table.options.movableRowsSender];break;case"function":n=this.table.options.movableRowsSender;break}n?n.call(this,this.moving.getComponent(),t?t.getComponent():void 0,e):this.table.options.movableRowsSender&&console.warn("Mover Row Error - no matching sender found:",this.table.options.movableRowsSender),this.table.options.movableRowsSent.call(this.table,this.moving.getComponent(),t?t.getComponent():void 0,e)}else this.table.options.movableRowsSentFailed.call(this.table,this.moving.getComponent(),t?t.getComponent():void 0,e);this.endMove()},F.prototype.tableRowDrop=function(e,t){var o=!1,n=!1;switch(e.stopImmediatePropagation(),r(this.table.options.movableRowsReceiver)){case"string":o=this.receivers[this.table.options.movableRowsReceiver];break;case"function":o=this.table.options.movableRowsReceiver;break}o?n=o.call(this,this.connectedRow.getComponent(),t?t.getComponent():void 0,this.connectedTable):console.warn("Mover Row Error - no matching receiver found:",this.table.options.movableRowsReceiver),n?this.table.options.movableRowsReceived.call(this.table,this.connectedRow.getComponent(),t?t.getComponent():void 0,this.connectedTable):this.table.options.movableRowsReceivedFailed.call(this.table,this.connectedRow.getComponent(),t?t.getComponent():void 0,this.connectedTable),this.table.modules.comms.send(this.connectedTable,"moveRow","dropcomplete",{row:t,success:n})},F.prototype.receivers={insert:function(e,t,o){return this.table.addRow(e.getData(),void 0,t),!0},add:function(e,t,o){return this.table.addRow(e.getData()),!0},update:function(e,t,o){return!!t&&(t.update(e.getData()),!0)},replace:function(e,t,o){return!!t&&(this.table.addRow(e.getData(),void 0,t),t.delete(),!0)}},F.prototype.senders={delete:function(e,t,o){e.delete()}},F.prototype.commsReceived=function(e,t,o){switch(t){case"connect":return this.connect(e,o.row);case"disconnect":return this.disconnect(e);case"dropcomplete":return this.dropComplete(e,o.row,o.success)}},f.prototype.registerModule("moveRow",F);var H=function(e){this.table=e,this.allowedTypes=["","data","edit","clipboard"],this.enabled=!0};H.prototype.initializeColumn=function(e){var t=this,o=!1,n={};this.allowedTypes.forEach(function(i){var r,a="mutator"+(i.charAt(0).toUpperCase()+i.slice(1));e.definition[a]&&(r=t.lookupMutator(e.definition[a]),r&&(o=!0,n[a]={mutator:r,params:e.definition[a+"Params"]||{}}))}),o&&(e.modules.mutate=n)},H.prototype.lookupMutator=function(e){var t=!1;switch("undefined"===typeof e?"undefined":r(e)){case"string":this.mutators[e]?t=this.mutators[e]:console.warn("Mutator Error - No such mutator found, ignoring: ",e);break;case"function":t=e;break}return t},H.prototype.transformRow=function(e,t,o){var n,i=this,r="mutator"+(t.charAt(0).toUpperCase()+t.slice(1));return this.enabled&&i.table.columnManager.traverse(function(i){var a,s,c;i.modules.mutate&&(a=i.modules.mutate[r]||i.modules.mutate.mutator||!1,a&&(n=i.getFieldValue("undefined"!==typeof o?o:e),"data"!=t&&"undefined"===typeof n||(c=i.getComponent(),s="function"===typeof a.params?a.params(n,e,t,c):a.params,i.setFieldValue(e,a.mutator(n,e,t,s,c)))))}),e},H.prototype.transformCell=function(e,t){var o=e.column.modules.mutate.mutatorEdit||e.column.modules.mutate.mutator||!1,n={};return o?(n=Object.assign(n,e.row.getData()),e.column.setFieldValue(n,t),o.mutator(t,n,"edit",o.params,e.getComponent())):t},H.prototype.enable=function(){this.enabled=!0},H.prototype.disable=function(){this.enabled=!1},H.prototype.mutators={},f.prototype.registerModule("mutator",H);var U=function(e){this.table=e,this.mode="local",this.progressiveLoad=!1,this.size=0,this.page=1,this.count=5,this.max=1,this.displayIndex=0,this.initialLoad=!0,this.pageSizes=[],this.dataReceivedNames={},this.dataSentNames={},this.createElements()};U.prototype.createElements=function(){var e;this.element=document.createElement("span"),this.element.classList.add("tabulator-paginator"),this.pagesElement=document.createElement("span"),this.pagesElement.classList.add("tabulator-pages"),e=document.createElement("button"),e.classList.add("tabulator-page"),e.setAttribute("type","button"),e.setAttribute("role","button"),e.setAttribute("aria-label",""),e.setAttribute("title",""),this.firstBut=e.cloneNode(!0),this.firstBut.setAttribute("data-page","first"),this.prevBut=e.cloneNode(!0),this.prevBut.setAttribute("data-page","prev"),this.nextBut=e.cloneNode(!0),this.nextBut.setAttribute("data-page","next"),this.lastBut=e.cloneNode(!0),this.lastBut.setAttribute("data-page","last"),this.table.options.paginationSizeSelector&&(this.pageSizeSelect=document.createElement("select"),this.pageSizeSelect.classList.add("tabulator-page-size"))},U.prototype.generatePageSizeSelectList=function(){var e=this,t=[];if(this.pageSizeSelect){if(Array.isArray(this.table.options.paginationSizeSelector))t=this.table.options.paginationSizeSelector,this.pageSizes=t,-1==this.pageSizes.indexOf(this.size)&&t.unshift(this.size);else if(-1==this.pageSizes.indexOf(this.size)){t=[];for(var o=1;o<5;o++)t.push(this.size*o);this.pageSizes=t}else t=this.pageSizes;while(this.pageSizeSelect.firstChild)this.pageSizeSelect.removeChild(this.pageSizeSelect.firstChild);t.forEach(function(t){var o=document.createElement("option");o.value=t,!0===t?e.table.modules.localize.bind("pagination|all",function(e){o.innerHTML=e}):o.innerHTML=t,e.pageSizeSelect.appendChild(o)}),this.pageSizeSelect.value=this.size}},U.prototype.initialize=function(e){var t,o,n,i=this;this.dataSentNames=Object.assign({},this.paginationDataSentNames),this.dataSentNames=Object.assign(this.dataSentNames,this.table.options.paginationDataSent),this.dataReceivedNames=Object.assign({},this.paginationDataReceivedNames),this.dataReceivedNames=Object.assign(this.dataReceivedNames,this.table.options.paginationDataReceived),i.table.modules.localize.bind("pagination|first",function(e){i.firstBut.innerHTML=e}),i.table.modules.localize.bind("pagination|first_title",function(e){i.firstBut.setAttribute("aria-label",e),i.firstBut.setAttribute("title",e)}),i.table.modules.localize.bind("pagination|prev",function(e){i.prevBut.innerHTML=e}),i.table.modules.localize.bind("pagination|prev_title",function(e){i.prevBut.setAttribute("aria-label",e),i.prevBut.setAttribute("title",e)}),i.table.modules.localize.bind("pagination|next",function(e){i.nextBut.innerHTML=e}),i.table.modules.localize.bind("pagination|next_title",function(e){i.nextBut.setAttribute("aria-label",e),i.nextBut.setAttribute("title",e)}),i.table.modules.localize.bind("pagination|last",function(e){i.lastBut.innerHTML=e}),i.table.modules.localize.bind("pagination|last_title",function(e){i.lastBut.setAttribute("aria-label",e),i.lastBut.setAttribute("title",e)}),i.firstBut.addEventListener("click",function(){i.setPage(1).then(function(){}).catch(function(){})}),i.prevBut.addEventListener("click",function(){i.previousPage().then(function(){}).catch(function(){})}),i.nextBut.addEventListener("click",function(){i.nextPage().then(function(){}).catch(function(){})}),i.lastBut.addEventListener("click",function(){i.setPage(i.max).then(function(){}).catch(function(){})}),i.table.options.paginationElement&&(i.element=i.table.options.paginationElement),this.pageSizeSelect&&(t=document.createElement("label"),i.table.modules.localize.bind("pagination|page_size",function(e){i.pageSizeSelect.setAttribute("aria-label",e),i.pageSizeSelect.setAttribute("title",e),t.innerHTML=e}),i.element.appendChild(t),i.element.appendChild(i.pageSizeSelect),i.pageSizeSelect.addEventListener("change",function(e){i.setPageSize("true"==i.pageSizeSelect.value||i.pageSizeSelect.value),i.setPage(1).then(function(){}).catch(function(){})})),i.element.appendChild(i.firstBut),i.element.appendChild(i.prevBut),i.element.appendChild(i.pagesElement),i.element.appendChild(i.nextBut),i.element.appendChild(i.lastBut),i.table.options.paginationElement||e||i.table.footerManager.append(i.element,i),i.mode=i.table.options.pagination,i.table.options.paginationSize?i.size=i.table.options.paginationSize:(o=document.createElement("div"),o.classList.add("tabulator-row"),o.style.visibility=e,n=document.createElement("div"),n.classList.add("tabulator-cell"),n.innerHTML="Page Row Test",o.appendChild(n),i.table.rowManager.getTableElement().appendChild(o),i.size=Math.floor(i.table.rowManager.getElement().clientHeight/o.offsetHeight),i.table.rowManager.getTableElement().removeChild(o)),i.count=i.table.options.paginationButtonCount,i.generatePageSizeSelectList()},U.prototype.initializeProgressive=function(e){this.initialize(!0),this.mode="progressive_"+e,this.progressiveLoad=!0},U.prototype.setDisplayIndex=function(e){this.displayIndex=e},U.prototype.getDisplayIndex=function(){return this.displayIndex},U.prototype.setMaxRows=function(e){this.max=e?!0===this.size?1:Math.ceil(e/this.size):1,this.page>this.max&&(this.page=this.max)},U.prototype.reset=function(e,t){return("local"==this.mode||e)&&(this.page=1),t&&(this.initialLoad=!0),!0},U.prototype.setMaxPage=function(e){e=parseInt(e),this.max=e||1,this.page>this.max&&(this.page=this.max,this.trigger())},U.prototype.setPage=function(e){var t=this,o=this;switch(e){case"first":return this.setPage(1);case"prev":return this.previousPage();case"next":return this.nextPage();case"last":return this.setPage(this.max)}return new Promise(function(n,i){e=parseInt(e),e>0&&e<=t.max||"local"!==t.mode?(t.page=e,t.trigger().then(function(){n()}).catch(function(){i()}),o.table.options.persistence&&o.table.modExists("persistence",!0)&&o.table.modules.persistence.config.page&&o.table.modules.persistence.save("page")):(console.warn("Pagination Error - Requested page is out of range of 1 - "+t.max+":",e),i())})},U.prototype.setPageToRow=function(e){var t=this;return new Promise(function(o,n){var i=t.table.rowManager.getDisplayRows(t.displayIndex-1),r=i.indexOf(e);if(r>-1){var a=!0===t.size?1:Math.ceil((r+1)/t.size);t.setPage(a).then(function(){o()}).catch(function(){n()})}else console.warn("Pagination Error - Requested row is not visible"),n()})},U.prototype.setPageSize=function(e){!0!==e&&(e=parseInt(e)),e>0&&(this.size=e),this.pageSizeSelect&&this.generatePageSizeSelectList(),this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.page&&this.table.modules.persistence.save("page")},U.prototype._setPageButtons=function(){var e=this,t=Math.floor((this.count-1)/2),o=Math.ceil((this.count-1)/2),n=this.max-this.page+t+10&&r<=e.max&&e.pagesElement.appendChild(e._generatePageButton(r));this.footerRedraw()},U.prototype._generatePageButton=function(e){var t=this,o=document.createElement("button");return o.classList.add("tabulator-page"),e==t.page&&o.classList.add("active"),o.setAttribute("type","button"),o.setAttribute("role","button"),t.table.modules.localize.bind("pagination|page_title",function(t){o.setAttribute("aria-label",t+" "+e),o.setAttribute("title",t+" "+e)}),o.setAttribute("data-page",e),o.textContent=e,o.addEventListener("click",function(o){t.setPage(e).then(function(){}).catch(function(){})}),o},U.prototype.previousPage=function(){var e=this;return new Promise(function(t,o){e.page>1?(e.page--,e.trigger().then(function(){t()}).catch(function(){o()}),e.table.options.persistence&&e.table.modExists("persistence",!0)&&e.table.modules.persistence.config.page&&e.table.modules.persistence.save("page")):(console.warn("Pagination Error - Previous page would be less than page 1:",0),o())})},U.prototype.nextPage=function(){var e=this;return new Promise(function(t,o){e.pagei?n.splice(i,0,e):n.push(e))}),n},V.prototype._findColumn=function(e,t){var o=t.columns?"group":t.field?"field":"object";return e.find(function(e){switch(o){case"group":return e.title===t.title&&e.columns.length===t.columns.length;case"field":return e.field===t.field;case"object":return e===t}})},V.prototype.save=function(e){var t={};switch(e){case"columns":t=this.parseColumns(this.table.columnManager.getColumns());break;case"filter":t=this.table.modules.filter.getFilters();break;case"sort":t=this.validateSorters(this.table.modules.sort.getSort());break;case"group":t=this.getGroupConfig();break;case"page":t=this.getPageConfig();break}this.writeFunc&&this.writeFunc(this.id,e,t)},V.prototype.validateSorters=function(e){return e.forEach(function(e){e.column=e.field,delete e.field}),e},V.prototype.getGroupConfig=function(){var e={};return this.config.group&&((!0===this.config.group||this.config.group.groupBy)&&(e.groupBy=this.table.options.groupBy),(!0===this.config.group||this.config.group.groupStartOpen)&&(e.groupStartOpen=this.table.options.groupStartOpen),(!0===this.config.group||this.config.group.groupHeader)&&(e.groupHeader=this.table.options.groupHeader)),e},V.prototype.getPageConfig=function(){var e={};return this.config.page&&((!0===this.config.page||this.config.page.size)&&(e.paginationSize=this.table.modules.page.getPageSize()),(!0===this.config.page||this.config.page.page)&&(e.paginationInitialPage=this.table.modules.page.getPage())),e},V.prototype.parseColumns=function(e){var t=this,o=[],n=["headerContextMenu","headerMenu","contextMenu","clickMenu"];return e.forEach(function(e){var i,r={},a=e.getDefinition();e.isGroup?(r.title=a.title,r.columns=t.parseColumns(e.getColumns())):(r.field=e.getField(),!0===t.config.columns||void 0==t.config.columns?(i=Object.keys(a),i.push("width")):i=t.config.columns,i.forEach(function(t){switch(t){case"width":r.width=e.getWidth();break;case"visible":r.visible=e.visible;break;default:"function"!==typeof a[t]&&-1===n.indexOf(t)&&(r[t]=a[t])}})),o.push(r)}),o},V.prototype.readers={local:function(e,t){var o=localStorage.getItem(e+"-"+t);return!!o&&JSON.parse(o)},cookie:function(e,t){var o,n,i=document.cookie,r=e+"-"+t,a=i.indexOf(r+"=");return a>-1&&(i=i.substr(a),o=i.indexOf(";"),o>-1&&(i=i.substr(0,o)),n=i.replace(r+"=","")),!!n&&JSON.parse(n)}},V.prototype.writers={local:function(e,t,o){localStorage.setItem(e+"-"+t,JSON.stringify(o))},cookie:function(e,t,o){var n=new Date;n.setDate(n.getDate()+1e4),document.cookie=e+"-"+t+"="+JSON.stringify(o)+"; expires="+n.toUTCString()}},f.prototype.registerModule("persistence",V);var G=function(e){this.table=e,this.element=!1,this.manualBlock=!1};G.prototype.initialize=function(){window.addEventListener("beforeprint",this.replaceTable.bind(this)),window.addEventListener("afterprint",this.cleanup.bind(this))},G.prototype.replaceTable=function(){this.manualBlock||(this.element=document.createElement("div"),this.element.classList.add("tabulator-print-table"),this.element.appendChild(this.table.modules.export.genereateTable(this.table.options.printConfig,this.table.options.printStyled,this.table.options.printRowRange,"print")),this.table.element.style.display="none",this.table.element.parentNode.insertBefore(this.element,this.table.element))},G.prototype.cleanup=function(){document.body.classList.remove("tabulator-print-fullscreen-hide"),this.element&&this.element.parentNode&&(this.element.parentNode.removeChild(this.element),this.table.element.style.display="")},G.prototype.printFullscreen=function(e,t,o){var n,i,r=window.scrollX,a=window.scrollY,s=document.createElement("div"),c=document.createElement("div"),p=this.table.modules.export.genereateTable("undefined"!=typeof o?o:this.table.options.printConfig,"undefined"!=typeof t?t:this.table.options.printStyled,e,"print");this.manualBlock=!0,this.element=document.createElement("div"),this.element.classList.add("tabulator-print-fullscreen"),this.table.options.printHeader&&(s.classList.add("tabulator-print-header"),n="function"==typeof this.table.options.printHeader?this.table.options.printHeader.call(this.table):this.table.options.printHeader,"string"==typeof n?s.innerHTML=n:s.appendChild(n),this.element.appendChild(s)),this.element.appendChild(p),this.table.options.printFooter&&(c.classList.add("tabulator-print-footer"),i="function"==typeof this.table.options.printFooter?this.table.options.printFooter.call(this.table):this.table.options.printFooter,"string"==typeof i?c.innerHTML=i:c.appendChild(i),this.element.appendChild(c)),document.body.classList.add("tabulator-print-fullscreen-hide"),document.body.appendChild(this.element),this.table.options.printFormatter&&this.table.options.printFormatter(this.element,p),window.print(),this.cleanup(),window.scrollTo(r,a),this.manualBlock=!1},f.prototype.registerModule("print",G);var K=function(e){this.table=e,this.data=!1,this.blocked=!1,this.origFuncs={},this.currentVersion=0};K.prototype.watchData=function(e){var t,o=this;this.currentVersion++,t=this.currentVersion,o.unwatchData(),o.data=e,o.origFuncs.push=e.push,Object.defineProperty(o.data,"push",{enumerable:!1,configurable:!0,value:function(){var n=Array.from(arguments);return o.blocked||t!==o.currentVersion||n.forEach(function(e){o.table.rowManager.addRowActual(e,!1)}),o.origFuncs.push.apply(e,arguments)}}),o.origFuncs.unshift=e.unshift,Object.defineProperty(o.data,"unshift",{enumerable:!1,configurable:!0,value:function(){var n=Array.from(arguments);return o.blocked||t!==o.currentVersion||n.forEach(function(e){o.table.rowManager.addRowActual(e,!0)}),o.origFuncs.unshift.apply(e,arguments)}}),o.origFuncs.shift=e.shift,Object.defineProperty(o.data,"shift",{enumerable:!1,configurable:!0,value:function(){var n;return o.blocked||t!==o.currentVersion||o.data.length&&(n=o.table.rowManager.getRowFromDataObject(o.data[0]),n&&n.deleteActual()),o.origFuncs.shift.call(e)}}),o.origFuncs.pop=e.pop,Object.defineProperty(o.data,"pop",{enumerable:!1,configurable:!0,value:function(){var n;return o.blocked||t!==o.currentVersion||o.data.length&&(n=o.table.rowManager.getRowFromDataObject(o.data[o.data.length-1]),n&&n.deleteActual()),o.origFuncs.pop.call(e)}}),o.origFuncs.splice=e.splice,Object.defineProperty(o.data,"splice",{enumerable:!1,configurable:!0,value:function(){var n,i=Array.from(arguments),r=i[0]<0?e.length+i[0]:i[0],a=i[1],s=!!i[2]&&i.slice(2);if(!o.blocked&&t===o.currentVersion){if(s&&(n=!!e[r]&&o.table.rowManager.getRowFromDataObject(e[r]),n?s.forEach(function(e){o.table.rowManager.addRowActual(e,!0,n,!0)}):(s=s.slice().reverse(),s.forEach(function(e){o.table.rowManager.addRowActual(e,!0,!1,!0)}))),0!==a){var c=e.slice(r,"undefined"===typeof i[1]?i[1]:r+a);c.forEach(function(e,t){var n=o.table.rowManager.getRowFromDataObject(e);n&&n.deleteActual(t!==c.length-1)})}(s||0!==a)&&o.table.rowManager.reRenderInPosition()}return o.origFuncs.splice.apply(e,arguments)}})},K.prototype.unwatchData=function(){if(!1!==this.data)for(var e in this.origFuncs)Object.defineProperty(this.data,e,{enumerable:!0,configurable:!0,writable:!0,value:this.origFuncs.key})},K.prototype.watchRow=function(e){var t=e.getData();for(var o in this.blocked=!0,t)this.watchKey(e,t,o);this.table.options.dataTree&&this.watchTreeChildren(e),this.blocked=!1},K.prototype.watchTreeChildren=function(e){var t=this,o=e.getData()[this.table.options.dataTreeChildField],n={};function i(){t.table.modules.dataTree.initializeRow(e),t.table.modules.dataTree.layoutRow(e),t.table.rowManager.refreshActiveData("tree",!1,!0)}o&&(n.push=o.push,Object.defineProperty(o,"push",{enumerable:!1,configurable:!0,value:function(){var e=n.push.apply(o,arguments);return i(),e}}),n.unshift=o.unshift,Object.defineProperty(o,"unshift",{enumerable:!1,configurable:!0,value:function(){var e=n.unshift.apply(o,arguments);return i(),e}}),n.shift=o.shift,Object.defineProperty(o,"shift",{enumerable:!1,configurable:!0,value:function(){var e=n.shift.call(o);return i(),e}}),n.pop=o.pop,Object.defineProperty(o,"pop",{enumerable:!1,configurable:!0,value:function(){var e=n.pop.call(o);return i(),e}}),n.splice=o.splice,Object.defineProperty(o,"splice",{enumerable:!1,configurable:!0,value:function(){var e=n.splice.apply(o,arguments);return i(),e}}))},K.prototype.watchKey=function(e,t,o){var n=this,i=Object.getOwnPropertyDescriptor(t,o),r=t[o],a=this.currentVersion;Object.defineProperty(t,o,{set:function(t){if(r=t,!n.blocked&&a===n.currentVersion){var s={};s[o]=t,e.updateData(s)}i.set&&i.set(t)},get:function(){return i.get&&i.get(),r}})},K.prototype.unwatchRow=function(e){var t=e.getData();for(var o in t)Object.defineProperty(t,o,{value:t[o]})},K.prototype.block=function(){this.blocked=!0},K.prototype.unblock=function(){this.blocked=!1},f.prototype.registerModule("reactiveData",K);var $=function(e){this.table=e,this.startColumn=!1,this.startX=!1,this.startWidth=!1,this.handle=null,this.prevHandle=null};$.prototype.initializeColumn=function(e,t,o){var n=this,i=!1,r=this.table.options.resizableColumns;if("header"===e&&(i="textarea"==t.definition.formatter||t.definition.variableHeight,t.modules.resize={variableHeight:i}),!0===r||r==e){var a=document.createElement("div");a.className="tabulator-col-resize-handle";var s=document.createElement("div");s.className="tabulator-col-resize-handle prev",a.addEventListener("click",function(e){e.stopPropagation()});var c=function(e){var o=t.getLastColumn();o&&n._checkResizability(o)&&(n.startColumn=t,n._mouseDown(e,o,a))};a.addEventListener("mousedown",c),a.addEventListener("touchstart",c,{passive:!0}),a.addEventListener("dblclick",function(e){var o=t.getLastColumn();o&&n._checkResizability(o)&&(e.stopPropagation(),o.reinitializeWidth(!0))}),s.addEventListener("click",function(e){e.stopPropagation()});var p=function(e){var o,i,r;o=t.getFirstColumn(),o&&(i=n.table.columnManager.findColumnIndex(o),r=i>0&&n.table.columnManager.getColumnByIndex(i-1),r&&n._checkResizability(r)&&(n.startColumn=t,n._mouseDown(e,r,s)))};s.addEventListener("mousedown",p),s.addEventListener("touchstart",p,{passive:!0}),s.addEventListener("dblclick",function(e){var o,i,r;o=t.getFirstColumn(),o&&(i=n.table.columnManager.findColumnIndex(o),r=i>0&&n.table.columnManager.getColumnByIndex(i-1),r&&n._checkResizability(r)&&(e.stopPropagation(),r.reinitializeWidth(!0)))}),o.appendChild(a),o.appendChild(s)}},$.prototype._checkResizability=function(e){return"undefined"!=typeof e.definition.resizable?e.definition.resizable:this.table.options.resizableColumns},$.prototype._mouseDown=function(e,t,o){var n=this;function i(e){n.table.rtl?t.setWidth(n.startWidth-(("undefined"===typeof e.screenX?e.touches[0].screenX:e.screenX)-n.startX)):t.setWidth(n.startWidth+(("undefined"===typeof e.screenX?e.touches[0].screenX:e.screenX)-n.startX)),n.table.options.virtualDomHoz&&n.table.vdomHoz.reinitialize(!0),!n.table.browserSlow&&t.modules.resize&&t.modules.resize.variableHeight&&t.checkCellHeights()}function r(e){n.startColumn.modules.edit&&(n.startColumn.modules.edit.blocked=!1),n.table.browserSlow&&t.modules.resize&&t.modules.resize.variableHeight&&t.checkCellHeights(),document.body.removeEventListener("mouseup",r),document.body.removeEventListener("mousemove",i),o.removeEventListener("touchmove",i),o.removeEventListener("touchend",r),n.table.element.classList.remove("tabulator-block-select"),n.table.options.persistence&&n.table.modExists("persistence",!0)&&n.table.modules.persistence.config.columns&&n.table.modules.persistence.save("columns"),n.table.options.columnResized.call(n.table,t.getComponent())}n.table.element.classList.add("tabulator-block-select"),e.stopPropagation(),n.startColumn.modules.edit&&(n.startColumn.modules.edit.blocked=!0),n.startX="undefined"===typeof e.screenX?e.touches[0].screenX:e.screenX,n.startWidth=t.getWidth(),document.body.addEventListener("mousemove",i),document.body.addEventListener("mouseup",r),o.addEventListener("touchmove",i,{passive:!0}),o.addEventListener("touchend",r)},f.prototype.registerModule("resizeColumns",$);var Y=function(e){this.table=e,this.startColumn=!1,this.startY=!1,this.startHeight=!1,this.handle=null,this.prevHandle=null};Y.prototype.initializeRow=function(e){var t=this,o=e.getElement(),n=document.createElement("div");n.className="tabulator-row-resize-handle";var i=document.createElement("div");i.className="tabulator-row-resize-handle prev",n.addEventListener("click",function(e){e.stopPropagation()});var r=function(o){t.startRow=e,t._mouseDown(o,e,n)};n.addEventListener("mousedown",r),n.addEventListener("touchstart",r,{passive:!0}),i.addEventListener("click",function(e){e.stopPropagation()});var a=function(o){var n=t.table.rowManager.prevDisplayRow(e);n&&(t.startRow=n,t._mouseDown(o,n,i))};i.addEventListener("mousedown",a),i.addEventListener("touchstart",a,{passive:!0}),o.appendChild(n),o.appendChild(i)},Y.prototype._mouseDown=function(e,t,o){var n=this;function i(e){t.setHeight(n.startHeight+(("undefined"===typeof e.screenY?e.touches[0].screenY:e.screenY)-n.startY))}function r(e){document.body.removeEventListener("mouseup",i),document.body.removeEventListener("mousemove",i),o.removeEventListener("touchmove",i),o.removeEventListener("touchend",r),n.table.element.classList.remove("tabulator-block-select"),n.table.options.rowResized.call(this.table,t.getComponent())}n.table.element.classList.add("tabulator-block-select"),e.stopPropagation(),n.startY="undefined"===typeof e.screenY?e.touches[0].screenY:e.screenY,n.startHeight=t.getHeight(),document.body.addEventListener("mousemove",i),document.body.addEventListener("mouseup",r),o.addEventListener("touchmove",i,{passive:!0}),o.addEventListener("touchend",r)},f.prototype.registerModule("resizeRows",Y);var J=function(e){this.table=e,this.binding=!1,this.observer=!1,this.containerObserver=!1,this.tableHeight=0,this.tableWidth=0,this.containerHeight=0,this.containerWidth=0,this.autoResize=!1};J.prototype.initialize=function(e){var t,o=this,n=this.table;this.tableHeight=n.element.clientHeight,this.tableWidth=n.element.clientWidth,n.element.parentNode&&(this.containerHeight=n.element.parentNode.clientHeight,this.containerWidth=n.element.parentNode.clientWidth),"undefined"!==typeof ResizeObserver&&"virtual"===n.rowManager.getRenderMode()?(this.autoResize=!0,this.observer=new ResizeObserver(function(e){if(!n.browserMobile||n.browserMobile&&!n.modules.edit.currentCell){var t=Math.floor(e[0].contentRect.height),i=Math.floor(e[0].contentRect.width);o.tableHeight==t&&o.tableWidth==i||(o.tableHeight=t,o.tableWidth=i,n.element.parentNode&&(o.containerHeight=n.element.parentNode.clientHeight,o.containerWidth=n.element.parentNode.clientWidth),n.options.virtualDomHoz&&n.vdomHoz.reinitialize(!0),n.redraw())}}),this.observer.observe(n.element),t=window.getComputedStyle(n.element),this.table.element.parentNode&&!this.table.rowManager.fixedHeight&&(t.getPropertyValue("max-height")||t.getPropertyValue("min-height"))&&(this.containerObserver=new ResizeObserver(function(e){if(!n.browserMobile||n.browserMobile&&!n.modules.edit.currentCell){var t=Math.floor(e[0].contentRect.height),i=Math.floor(e[0].contentRect.width);o.containerHeight==t&&o.containerWidth==i||(o.containerHeight=t,o.containerWidth=i,o.tableHeight=n.element.clientHeight,o.tableWidth=n.element.clientWidth),n.options.virtualDomHoz&&n.vdomHoz.reinitialize(!0),n.redraw()}}),this.containerObserver.observe(this.table.element.parentNode))):(this.binding=function(){(!n.browserMobile||n.browserMobile&&!n.modules.edit.currentCell)&&(n.options.virtualDomHoz&&n.vdomHoz.reinitialize(!0),n.redraw())},window.addEventListener("resize",this.binding))},J.prototype.clearBindings=function(e){this.binding&&window.removeEventListener("resize",this.binding),this.observer&&this.observer.unobserve(this.table.element),this.containerObserver&&this.containerObserver.unobserve(this.table.element.parentNode)},f.prototype.registerModule("resizeTable",J);var Q=function(e){this.table=e,this.columns=[],this.hiddenColumns=[],this.mode="",this.index=0,this.collapseFormatter=[],this.collapseStartOpen=!0,this.collapseHandleColumn=!1};Q.prototype.initialize=function(){var e=this,t=[];this.mode=this.table.options.responsiveLayout,this.collapseFormatter=this.table.options.responsiveLayoutCollapseFormatter||this.formatCollapsedData,this.collapseStartOpen=this.table.options.responsiveLayoutCollapseStartOpen,this.hiddenColumns=[],this.table.columnManager.columnsByIndex.forEach(function(o,n){o.modules.responsive&&o.modules.responsive.order&&o.modules.responsive.visible&&(o.modules.responsive.index=n,t.push(o),o.visible||"collapse"!==e.mode||e.hiddenColumns.push(o))}),t=t.reverse(),t=t.sort(function(e,t){var o=t.modules.responsive.order-e.modules.responsive.order;return o||t.modules.responsive.index-e.modules.responsive.index}),this.columns=t,"collapse"===this.mode&&this.generateCollapsedContent();var o=this.table.columnManager.columnsByIndex,n=Array.isArray(o),i=0;for(o=n?o:o[Symbol.iterator]();;){var r;if(n){if(i>=o.length)break;r=o[i++]}else{if(i=o.next(),i.done)break;r=i.value}var a=r;if("responsiveCollapse"==a.definition.formatter){this.collapseHandleColumn=a;break}}this.collapseHandleColumn&&(this.hiddenColumns.length?this.collapseHandleColumn.show():this.collapseHandleColumn.hide())},Q.prototype.initializeColumn=function(e){var t=e.getDefinition();e.modules.responsive={order:"undefined"===typeof t.responsive?1:t.responsive,visible:!1!==t.visible}},Q.prototype.initializeRow=function(e){var t;"calc"!==e.type&&(t=document.createElement("div"),t.classList.add("tabulator-responsive-collapse"),e.modules.responsiveLayout={element:t,open:this.collapseStartOpen},this.collapseStartOpen||(t.style.display="none"))},Q.prototype.layoutRow=function(e){var t=e.getElement();e.modules.responsiveLayout&&(t.appendChild(e.modules.responsiveLayout.element),this.generateCollapsedRowContent(e))},Q.prototype.updateColumnVisibility=function(e,t){e.modules.responsive&&(e.modules.responsive.visible=t,this.initialize())},Q.prototype.hideColumn=function(e){var t=this.hiddenColumns.length;e.hide(!1,!0),"collapse"===this.mode&&(this.hiddenColumns.unshift(e),this.generateCollapsedContent(),this.collapseHandleColumn&&!t&&this.collapseHandleColumn.show())},Q.prototype.showColumn=function(e){var t;e.show(!1,!0),e.setWidth(e.getWidth()),"collapse"===this.mode&&(t=this.hiddenColumns.indexOf(e),t>-1&&this.hiddenColumns.splice(t,1),this.generateCollapsedContent(),this.collapseHandleColumn&&!this.hiddenColumns.length&&this.collapseHandleColumn.hide())},Q.prototype.update=function(){var e=this,t=!0;while(t){var o="fitColumns"==e.table.modules.layout.getMode()?e.table.columnManager.getFlexBaseWidth():e.table.columnManager.getWidth(),n=(e.table.options.headerVisible?e.table.columnManager.element.clientWidth:e.table.element.clientWidth)-o;if(n<0){var i=e.columns[e.index];i?(e.hideColumn(i),e.index++):t=!1}else{var r=e.columns[e.index-1];r&&n>0&&n>=r.getWidth()?(e.showColumn(r),e.index--):t=!1}e.table.rowManager.activeRowsCount||e.table.rowManager.renderEmptyScroll()}},Q.prototype.generateCollapsedContent=function(){var e=this,t=this.table.rowManager.getDisplayRows();t.forEach(function(t){e.generateCollapsedRowContent(t)})},Q.prototype.generateCollapsedRowContent=function(e){var t,o;if(e.modules.responsiveLayout){t=e.modules.responsiveLayout.element;while(t.firstChild)t.removeChild(t.firstChild);o=this.collapseFormatter(this.generateCollapsedRowData(e)),o&&t.appendChild(o)}},Q.prototype.generateCollapsedRowData=function(e){var t,o=this,n=e.getData(),i=[];return this.hiddenColumns.forEach(function(r){var a=r.getFieldValue(n);r.definition.title&&r.field&&(r.modules.format&&o.table.options.responsiveLayoutCollapseUseFormatters?(t={value:!1,data:{},getValue:function(){return a},getData:function(){return n},getElement:function(){return document.createElement("div")},getRow:function(){return e.getComponent()},getColumn:function(){return r.getComponent()}},i.push({field:r.field,title:r.definition.title,value:r.modules.format.formatter.call(o.table.modules.format,t,r.modules.format.params)})):i.push({field:r.field,title:r.definition.title,value:a}))}),i},Q.prototype.formatCollapsedData=function(e){var t=document.createElement("table");return e.forEach(function(e){var o,n=document.createElement("tr"),i=document.createElement("td"),r=document.createElement("td"),a=document.createElement("strong");i.appendChild(a),this.table.modules.localize.bind("columns|"+e.field,function(t){a.innerText=t||e.title}),e.value instanceof Node?(o=document.createElement("div"),o.appendChild(e.value),r.appendChild(o)):r.innerHTML=e.value,n.appendChild(i),n.appendChild(r),t.appendChild(n)},this),Object.keys(e).length?t:""},f.prototype.registerModule("responsiveLayout",Q);var Z=function(e){this.table=e,this.selecting=!1,this.lastClickedRow=!1,this.selectPrev=[],this.selectedRows=[],this.headerCheckboxElement=null};Z.prototype.clearSelectionData=function(e){this.selecting=!1,this.lastClickedRow=!1,this.selectPrev=[],this.selectedRows=[],e||this._rowSelectionChanged()},Z.prototype.initializeRow=function(e){var t=this,o=e.getElement(),n=function e(){setTimeout(function(){t.selecting=!1},50),document.body.removeEventListener("mouseup",e)};e.modules.select={selected:!1},t.table.options.selectableCheck.call(this.table,e.getComponent())?(o.classList.add("tabulator-selectable"),o.classList.remove("tabulator-unselectable"),t.table.options.selectable&&"highlight"!=t.table.options.selectable&&("click"===t.table.options.selectableRangeMode?o.addEventListener("click",function(o){if(o.shiftKey){t.table._clearSelection(),t.lastClickedRow=t.lastClickedRow||e;var n=t.table.rowManager.getDisplayRowIndex(t.lastClickedRow),i=t.table.rowManager.getDisplayRowIndex(e),r=n<=i?n:i,a=n>=i?n:i,s=t.table.rowManager.getDisplayRows().slice(0),c=s.splice(r,a-r+1);o.ctrlKey||o.metaKey?(c.forEach(function(o){o!==t.lastClickedRow&&(!0===t.table.options.selectable||t.isRowSelected(e)?t.toggleRow(o):t.selectedRows.lengtht.table.options.selectable&&(c=c.slice(0,t.table.options.selectable)),t.selectRows(c)),t.table._clearSelection()}else o.ctrlKey||o.metaKey?(t.toggleRow(e),t.lastClickedRow=e):(t.deselectRows(void 0,!0),t.selectRows(e),t.lastClickedRow=e)}):(o.addEventListener("click",function(o){t.table.modExists("edit")&&t.table.modules.edit.getCurrentCell()||t.table._clearSelection(),t.selecting||t.toggleRow(e)}),o.addEventListener("mousedown",function(o){if(o.shiftKey)return t.table._clearSelection(),t.selecting=!0,t.selectPrev=[],document.body.addEventListener("mouseup",n),document.body.addEventListener("keyup",n),t.toggleRow(e),!1}),o.addEventListener("mouseenter",function(o){t.selecting&&(t.table._clearSelection(),t.toggleRow(e),t.selectPrev[1]==e&&t.toggleRow(t.selectPrev[0]))}),o.addEventListener("mouseout",function(o){t.selecting&&(t.table._clearSelection(),t.selectPrev.unshift(e))})))):(o.classList.add("tabulator-unselectable"),o.classList.remove("tabulator-selectable"))},Z.prototype.toggleRow=function(e){this.table.options.selectableCheck.call(this.table,e.getComponent())&&(e.modules.select&&e.modules.select.selected?this._deselectRow(e):this._selectRow(e))},Z.prototype.selectRows=function(e){var t,o=this;switch("undefined"===typeof e?"undefined":r(e)){case"undefined":this.table.rowManager.rows.forEach(function(e){o._selectRow(e,!0,!0)}),this._rowSelectionChanged();break;case"string":t=this.table.rowManager.findRow(e),t?this._selectRow(t,!0,!0):this.table.rowManager.getRows(e).forEach(function(e){o._selectRow(e,!0,!0)}),this._rowSelectionChanged();break;default:Array.isArray(e)?(e.forEach(function(e){o._selectRow(e,!0,!0)}),this._rowSelectionChanged()):this._selectRow(e,!1,!0);break}},Z.prototype._selectRow=function(e,t,o){if(!isNaN(this.table.options.selectable)&&!0!==this.table.options.selectable&&!o&&this.selectedRows.length>=this.table.options.selectable){if(!this.table.options.selectableRollingSelection)return!1;this._deselectRow(this.selectedRows[0])}var n=this.table.rowManager.findRow(e);n?-1==this.selectedRows.indexOf(n)&&(n.getElement().classList.add("tabulator-selected"),n.modules.select||(n.modules.select={}),n.modules.select.selected=!0,n.modules.select.checkboxEl&&(n.modules.select.checkboxEl.checked=!0),this.selectedRows.push(n),this.table.options.dataTreeSelectPropagate&&this.childRowSelection(n,!0),t||this.table.options.rowSelected.call(this.table,n.getComponent()),this._rowSelectionChanged(t)):t||console.warn("Selection Error - No such row found, ignoring selection:"+e)},Z.prototype.isRowSelected=function(e){return-1!==this.selectedRows.indexOf(e)},Z.prototype.deselectRows=function(e,t){var o,n=this;if("undefined"==typeof e){o=n.selectedRows.length;for(var i=0;i-1&&(i.getElement().classList.remove("tabulator-selected"),i.modules.select||(i.modules.select={}),i.modules.select.selected=!1,i.modules.select.checkboxEl&&(i.modules.select.checkboxEl.checked=!1),n.selectedRows.splice(o,1),this.table.options.dataTreeSelectPropagate&&this.childRowSelection(i,!1),t||n.table.options.rowDeselected.call(this.table,i.getComponent()),n._rowSelectionChanged(t))):t||console.warn("Deselection Error - No such row found, ignoring selection:"+e)},Z.prototype.getSelectedData=function(){var e=[];return this.selectedRows.forEach(function(t){e.push(t.getData())}),e},Z.prototype.getSelectedRows=function(){var e=[];return this.selectedRows.forEach(function(t){e.push(t.getComponent())}),e},Z.prototype._rowSelectionChanged=function(e){this.headerCheckboxElement&&(0===this.selectedRows.length?(this.headerCheckboxElement.checked=!1,this.headerCheckboxElement.indeterminate=!1):this.table.rowManager.rows.length===this.selectedRows.length?(this.headerCheckboxElement.checked=!0,this.headerCheckboxElement.indeterminate=!1):(this.headerCheckboxElement.indeterminate=!0,this.headerCheckboxElement.checked=!1)),e||this.table.options.rowSelectionChanged.call(this.table,this.getSelectedData(),this.getSelectedRows())},Z.prototype.registerRowSelectCheckbox=function(e,t){e._row.modules.select||(e._row.modules.select={}),e._row.modules.select.checkboxEl=t},Z.prototype.registerHeaderSelectCheckbox=function(e){this.headerCheckboxElement=e},Z.prototype.childRowSelection=function(e,t){var o=this.table.modules.dataTree.getChildren(e,!0);if(t){var n=o,i=Array.isArray(n),r=0;for(n=i?n:n[Symbol.iterator]();;){var a;if(i){if(r>=n.length)break;a=n[r++]}else{if(r=n.next(),r.done)break;a=r.value}var s=a;this._selectRow(s,!0)}}else{var c=o,p=Array.isArray(c),l=0;for(c=p?c:c[Symbol.iterator]();;){var u;if(p){if(l>=c.length)break;u=c[l++]}else{if(l=c.next(),l.done)break;u=l.value}var b=u;this._deselectRow(b,!0)}}},f.prototype.registerModule("selectRow",Z);var ee=function(e){this.table=e,this.sortList=[],this.changed=!1};ee.prototype.initializeColumn=function(e,t){var o,n,i=this,a=!1;switch(r(e.definition.sorter)){case"string":i.sorters[e.definition.sorter]?a=i.sorters[e.definition.sorter]:console.warn("Sort Error - No such sorter found: ",e.definition.sorter);break;case"function":a=e.definition.sorter;break}e.modules.sort={sorter:a,dir:"none",params:e.definition.sorterParams||{},startingDir:e.definition.headerSortStartingDir||"asc",tristate:"undefined"!==typeof e.definition.headerSortTristate?e.definition.headerSortTristate:this.table.options.headerSortTristate},("undefined"===typeof e.definition.headerSort?!1!==this.table.options.headerSort:!1!==e.definition.headerSort)&&(o=e.getElement(),o.classList.add("tabulator-sortable"),n=document.createElement("div"),n.classList.add("tabulator-col-sorter"),"object"==r(this.table.options.headerSortElement)?n.appendChild(this.table.options.headerSortElement):n.innerHTML=this.table.options.headerSortElement,t.appendChild(n),e.modules.sort.element=n,o.addEventListener("click",function(t){var o="",n=[],r=!1;if(e.modules.sort){if(e.modules.sort.tristate)o="none"==e.modules.sort.dir?e.modules.sort.startingDir:e.modules.sort.dir==e.modules.sort.startingDir?"asc"==e.modules.sort.dir?"desc":"asc":"none";else switch(e.modules.sort.dir){case"asc":o="desc";break;case"desc":o="asc";break;default:o=e.modules.sort.startingDir}i.table.options.columnHeaderSortMulti&&(t.shiftKey||t.ctrlKey)?(n=i.getSort(),r=n.findIndex(function(t){return t.field===e.getField()}),r>-1?(n[r].dir=o,r!=n.length-1&&(r=n.splice(r,1)[0],"none"!=o&&n.push(r))):"none"!=o&&n.push({column:e,dir:o}),i.setSort(n)):"none"==o?i.clear():i.setSort(e,o),i.table.rowManager.sorterRefresh(!i.sortList.length)}}))},ee.prototype.hasChanged=function(){var e=this.changed;return this.changed=!1,e},ee.prototype.getSort=function(){var e=this,t=[];return e.sortList.forEach(function(e){e.column&&t.push({column:e.column.getComponent(),field:e.column.getField(),dir:e.dir})}),t},ee.prototype.setSort=function(e,t){var o=this,n=[];Array.isArray(e)||(e=[{column:e,dir:t}]),e.forEach(function(e){var t;t=o.table.columnManager.findColumn(e.column),t?(e.column=t,n.push(e),o.changed=!0):console.warn("Sort Warning - Sort field does not exist and is being ignored: ",e.column)}),o.sortList=n,this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.sort&&this.table.modules.persistence.save("sort")},ee.prototype.clear=function(){this.setSort([])},ee.prototype.findSorter=function(e){var t,o,n=this.table.rowManager.activeRows[0],i="string";if(n&&(n=n.getData(),t=e.getField(),t))switch(o=e.getFieldValue(n),"undefined"===typeof o?"undefined":r(o)){case"undefined":i="string";break;case"boolean":i="boolean";break;default:isNaN(o)||""===o?o.match(/((^[0-9]+[a-z]+)|(^[a-z]+[0-9]+))+$/i)&&(i="alphanum"):i="number";break}return this.sorters[i]},ee.prototype.sort=function(e){var t=this,o=this.table.options.sortOrderReverse?t.sortList.slice().reverse():t.sortList,n=[],i=[];t.table.options.dataSorting&&t.table.options.dataSorting.call(t.table,t.getSort()),t.clearColumnHeaders(),t.table.options.ajaxSorting?o.forEach(function(e,o){t.setColumnHeader(e.column,e.dir)}):(o.forEach(function(e,o){var i=e.column.modules.sort;e.column&&i&&(i.sorter||(i.sorter=t.findSorter(e.column)),e.params="function"===typeof i.params?i.params(e.column.getComponent(),e.dir):i.params,n.push(e)),t.setColumnHeader(e.column,e.dir)}),n.length&&t._sortItems(e,n)),t.table.options.dataSorted&&(e.forEach(function(e){i.push(e.getComponent())}),t.table.options.dataSorted.call(t.table,t.getSort(),i))},ee.prototype.clearColumnHeaders=function(){this.table.columnManager.getRealColumns().forEach(function(e){e.modules.sort&&(e.modules.sort.dir="none",e.getElement().setAttribute("aria-sort","none"))})},ee.prototype.setColumnHeader=function(e,t){e.modules.sort.dir=t,e.getElement().setAttribute("aria-sort",t)},ee.prototype._sortItems=function(e,t){var o=this,n=t.length-1;e.sort(function(e,i){for(var r,a=n;a>=0;a--){var s=t[a];if(r=o._sortRow(e,i,s.column,s.dir,s.params),0!==r)break}return r})},ee.prototype._sortRow=function(e,t,o,n,i){var r,a,s="asc"==n?e:t,c="asc"==n?t:e;return e=o.getFieldValue(s.getData()),t=o.getFieldValue(c.getData()),e="undefined"!==typeof e?e:"",t="undefined"!==typeof t?t:"",r=s.getComponent(),a=c.getComponent(),o.modules.sort.sorter.call(this,e,t,r,a,o.getComponent(),n,i)},ee.prototype.sorters={number:function(e,t,o,n,i,r,a){var s=a.alignEmptyValues,c=a.decimalSeparator,p=a.thousandSeparator,l=0;if(e=String(e),t=String(t),p&&(e=e.split(p).join(""),t=t.split(p).join("")),c&&(e=e.split(c).join("."),t=t.split(c).join(".")),e=parseFloat(e),t=parseFloat(t),isNaN(e))l=isNaN(t)?0:-1;else{if(!isNaN(t))return e-t;l=1}return("top"===s&&"desc"===r||"bottom"===s&&"asc"===r)&&(l*=-1),l},string:function(e,t,o,n,i,a,s){var c,p=s.alignEmptyValues,l=0;if(e){if(t){switch(r(s.locale)){case"boolean":s.locale&&(c=this.table.modules.localize.getLocale());break;case"string":c=s.locale;break}return String(e).toLowerCase().localeCompare(String(t).toLowerCase(),c)}l=1}else l=t?-1:0;return("top"===p&&"desc"===a||"bottom"===p&&"asc"===a)&&(l*=-1),l},date:function(e,t,o,n,i,r,a){return a.format||(a.format="DD/MM/YYYY"),this.sorters.datetime.call(this,e,t,o,n,i,r,a)},time:function(e,t,o,n,i,r,a){return a.format||(a.format="HH:mm"),this.sorters.datetime.call(this,e,t,o,n,i,r,a)},datetime:function(e,t,o,n,i,r,a){var s=a.format||"DD/MM/YYYY HH:mm:ss",c=a.alignEmptyValues,p=0;if("undefined"!=typeof moment){if(e=moment(e,s),t=moment(t,s),e.isValid()){if(t.isValid())return e-t;p=1}else p=t.isValid()?-1:0;return("top"===c&&"desc"===r||"bottom"===c&&"asc"===r)&&(p*=-1),p}console.error("Sort Error - 'datetime' sorter is dependant on moment.js")},boolean:function(e,t,o,n,i,r,a){var s=!0===e||"true"===e||"True"===e||1===e?1:0,c=!0===t||"true"===t||"True"===t||1===t?1:0;return s-c},array:function(e,t,o,n,i,r,a){var s=0,c=0,p=a.type||"length",l=a.alignEmptyValues,u=0;function b(e){switch(p){case"length":return e.length;case"sum":return e.reduce(function(e,t){return e+t});case"max":return Math.max.apply(null,e);case"min":return Math.min.apply(null,e);case"avg":return e.reduce(function(e,t){return e+t})/e.length}}if(Array.isArray(e)){if(Array.isArray(t))return s=e?b(e):0,c=t?b(t):0,s-c;l=1}else l=Array.isArray(t)?-1:0;return("top"===l&&"desc"===r||"bottom"===l&&"asc"===r)&&(u*=-1),u},exists:function(e,t,o,n,i,r,a){var s="undefined"==typeof e?0:1,c="undefined"==typeof t?0:1;return s-c},alphanum:function(e,t,o,n,i,r,a){var s,c,p,l,u,b=0,d=/(\d+)|(\D+)/g,M=/\d/,h=a.alignEmptyValues,f=0;if(e||0===e){if(t||0===t){if(isFinite(e)&&isFinite(t))return e-t;if(s=String(e).toLowerCase(),c=String(t).toLowerCase(),s===c)return 0;if(!M.test(s)||!M.test(c))return s>c?1:-1;s=s.match(d),c=c.match(d),u=s.length>c.length?c.length:s.length;while(bl?1:-1;return s.length>c.length}f=1}else f=t||0===t?-1:0;return("top"===h&&"desc"===r||"bottom"===h&&"asc"===r)&&(f*=-1),f}},f.prototype.registerModule("sort",ee);var te=function(e){this.table=e,this.invalidCells=[]};te.prototype.initializeColumn=function(e){var t,o=this,n=[];e.definition.validator&&(Array.isArray(e.definition.validator)?e.definition.validator.forEach(function(e){t=o._extractValidator(e),t&&n.push(t)}):(t=this._extractValidator(e.definition.validator),t&&n.push(t)),e.modules.validate=!!n.length&&n)},te.prototype._extractValidator=function(e){var t,o,n;switch("undefined"===typeof e?"undefined":r(e)){case"string":return n=e.indexOf(":"),n>-1?(t=e.substring(0,n),o=e.substring(n+1)):t=e,this._buildValidator(t,o);case"function":return this._buildValidator(e);case"object":return this._buildValidator(e.type,e.parameters)}},te.prototype._buildValidator=function(e,t){var o="function"==typeof e?e:this.validators[e];return o?{type:"function"==typeof e?"function":e,func:o,params:t}:(console.warn("Validator Setup Error - No matching validator found:",e),!1)},te.prototype.validate=function(e,t,o){var n=this,i=[],r=this.invalidCells.indexOf(t);return e&&e.forEach(function(e){e.func.call(n,t.getComponent(),o,e.params)||i.push({type:e.type,parameters:e.params})}),i=!i.length||i,t.modules.validate||(t.modules.validate={}),!0===i?(t.modules.validate.invalid=!1,t.getElement().classList.remove("tabulator-validation-fail"),r>-1&&this.invalidCells.splice(r,1)):(t.modules.validate.invalid=!0,"manual"!==this.table.options.validationMode&&t.getElement().classList.add("tabulator-validation-fail"),-1==r&&this.invalidCells.push(t)),i},te.prototype.getInvalidCells=function(){var e=[];return this.invalidCells.forEach(function(t){e.push(t.getComponent())}),e},te.prototype.clearValidation=function(e){var t;e.modules.validate&&e.modules.validate.invalid&&(e.getElement().classList.remove("tabulator-validation-fail"),e.modules.validate.invalid=!1,t=this.invalidCells.indexOf(e),t>-1&&this.invalidCells.splice(t,1))},te.prototype.validators={integer:function(e,t,o){return""===t||null===t||"undefined"===typeof t||(t=Number(t),"number"===typeof t&&isFinite(t)&&Math.floor(t)===t)},float:function(e,t,o){return""===t||null===t||"undefined"===typeof t||(t=Number(t),"number"===typeof t&&isFinite(t)&&t%1!==0)},numeric:function(e,t,o){return""===t||null===t||"undefined"===typeof t||!isNaN(t)},string:function(e,t,o){return""===t||null===t||"undefined"===typeof t||isNaN(t)},max:function(e,t,o){return""===t||null===t||"undefined"===typeof t||parseFloat(t)<=o},min:function(e,t,o){return""===t||null===t||"undefined"===typeof t||parseFloat(t)>=o},starts:function(e,t,o){return""===t||null===t||"undefined"===typeof t||String(t).toLowerCase().startsWith(String(o).toLowerCase())},ends:function(e,t,o){return""===t||null===t||"undefined"===typeof t||String(t).toLowerCase().endsWith(String(o).toLowerCase())},minLength:function(e,t,o){return""===t||null===t||"undefined"===typeof t||String(t).length>=o},maxLength:function(e,t,o){return""===t||null===t||"undefined"===typeof t||String(t).length<=o},in:function(e,t,o){return""===t||null===t||"undefined"===typeof t||("string"==typeof o&&(o=o.split("|")),""===t||o.indexOf(t)>-1)},regex:function(e,t,o){if(""===t||null===t||"undefined"===typeof t)return!0;var n=new RegExp(o);return n.test(t)},unique:function(e,t,o){if(""===t||null===t||"undefined"===typeof t)return!0;var n=!0,i=e.getData(),r=e.getColumn()._getSelf();return this.table.rowManager.rows.forEach(function(e){var o=e.getData();o!==i&&t==r.getFieldValue(o)&&(n=!1)}),n},required:function(e,t,o){return""!==t&&null!==t&&"undefined"!==typeof t}},f.prototype.registerModule("validate",te),o["a"]=f},e34e:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("cf81"),i=function(){function e(e){this._binding=e}return e.prototype.onActivation=function(e){return this._binding.onActivation=e,new n.BindingWhenSyntax(this._binding)},e}();t.BindingOnSyntax=i},e372:function(e,t,o){t=e.exports=o("ad71"),t.Stream=t,t.Readable=t,t.Writable=o("dc14"),t.Duplex=o("b19a"),t.Transform=o("27bf"),t.PassThrough=o("780f")},e445:function(e,t,o){},e45b:function(e,t,o){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,o=1,n=arguments.length;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o("e1c6"),a=o("3a92"),s=o("7f73"),c=o("e45b"),p=o("dd02"),l=o("66f9"),u=o("3585"),b=o("168d"),d=function(){function e(){}return e.prototype.decorate=function(e,t){if(s.isDecoration(t)){var o=this.getPosition(t),n="translate("+o.x+", "+o.y+")";c.setAttr(e,"transform",n)}return e},e.prototype.getPosition=function(e){if(e instanceof a.SChildElement&&e.parent instanceof u.SRoutableElement){var t=this.edgeRouterRegistry.get(e.parent.routerKind),o=t.route(e.parent);if(o.length>1){var n=Math.floor(.5*(o.length-1)),i=l.isSizeable(e)?{x:-.5*e.bounds.width,y:-.5*e.bounds.width}:p.ORIGIN_POINT;return{x:.5*(o[n].x+o[n+1].x)+i.x,y:.5*(o[n].y+o[n+1].y)+i.y}}}return l.isSizeable(e)?{x:-.666*e.bounds.width,y:-.666*e.bounds.height}:p.ORIGIN_POINT},e.prototype.postUpdate=function(){},n([r.inject(b.EdgeRouterRegistry),i("design:type",b.EdgeRouterRegistry)],e.prototype,"edgeRouterRegistry",void 0),e=n([r.injectable()],e),e}();t.DecorationPlacer=d},e5a7:function(e,t,o){},e629:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){this.startFn=e,this.nextFn=t}return e.prototype[Symbol.iterator]=function(){var e,t=this,o=(e={state:this.startFn(),next:function(){return t.nextFn(o.state)}},e[Symbol.iterator]=function(){return o},e);return o},e.prototype.filter=function(e){return r(this,e)},e.prototype.map=function(e){return a(this,e)},e.prototype.forEach=function(e){var t,o=this[Symbol.iterator](),n=0;do{t=o.next(),void 0!==t.value&&e(t.value,n),n++}while(!t.done)},e.prototype.indexOf=function(e){var t,o=this[Symbol.iterator](),n=0;do{if(t=o.next(),t.value===e)return n;n++}while(!t.done);return-1},e}();function i(e){if(e.constructor===Array)return e;var t=[];return e.forEach(function(e){return t.push(e)}),t}function r(e,t){return new n(function(){return s(e)},function(e){var o;do{o=e.next()}while(!o.done&&!t(o.value));return o})}function a(e,o){return new n(function(){return s(e)},function(e){var n=e.next(),i=n.done,r=n.value;return i?t.DONE_RESULT:{done:!1,value:o(r)}})}function s(e){var o=e[Symbol.iterator];if("function"===typeof o)return o.call(e);var n=e.length;return"number"===typeof n&&n>=0?new c(e):{next:function(){return t.DONE_RESULT}}}t.FluentIterableImpl=n,t.toArray=i,t.DONE_RESULT=Object.freeze({done:!0,value:void 0}),t.filterIterable=r,t.mapIterable=a;var c=function(){function e(e){this.array=e,this.index=0}return e.prototype.next=function(){return this.index=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a};Object.defineProperty(t,"__esModule",{value:!0});var r=o("e1c6"),a=o("c146"),s=o("3a92"),c=o("e45b"),p=o("7d36"),l=function(e){function t(t,o,n,i){void 0===i&&(i=!1);var r=e.call(this,n)||this;return r.model=t,r.elementFades=o,r.removeAfterFadeOut=i,r}return n(t,e),t.prototype.tween=function(e,t){for(var o=0,n=this.elementFades;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("dd02"),c=o("b669"),p=o("3a92"),l=o("9757"),u=o("1417"),b=o("66f9"),d=o("4c18"),M=o("c444"),h=o("5eb6"),f=o("e1c6"),z=o("6923"),O=function(){function e(t,o,n){void 0===o&&(o=!0),void 0===n&&(n=!1),this.elementIds=t,this.animate=o,this.retainZoom=n,this.kind=e.KIND}return e.KIND="center",e}();t.CenterAction=O;var A=function(){function e(t,o,n,i){void 0===i&&(i=!0),this.elementIds=t,this.padding=o,this.maxZoom=n,this.animate=i,this.kind=e.KIND}return e.KIND="fit",e}();t.FitToScreenAction=A;var m=function(e){function t(t){var o=e.call(this)||this;return o.animate=t,o}return n(t,e),t.prototype.initialize=function(e){var t=this;if(h.isViewport(e)){this.oldViewport={scroll:e.scroll,zoom:e.zoom};var o=[];if(this.getElementIds().forEach(function(n){var i=e.index.getById(n);i&&b.isBoundsAware(i)&&o.push(t.boundsInViewport(i,i.bounds,e))}),0===o.length&&e.index.all().forEach(function(n){d.isSelectable(n)&&n.selected&&b.isBoundsAware(n)&&o.push(t.boundsInViewport(n,n.bounds,e))}),0===o.length&&e.index.all().forEach(function(n){b.isBoundsAware(n)&&o.push(t.boundsInViewport(n,n.bounds,e))}),0!==o.length){var n=o.reduce(function(e,t){return s.combine(e,t)});s.isValidDimension(n)&&(this.newViewport=this.getNewViewport(n,e))}}},t.prototype.boundsInViewport=function(e,t,o){return e instanceof p.SChildElement&&e.parent!==o?this.boundsInViewport(e.parent,e.parent.localToParent(t),o):t},t.prototype.execute=function(e){return this.initialize(e.root),this.redo(e)},t.prototype.undo=function(e){var t=e.root;if(h.isViewport(t)&&void 0!==this.newViewport&&!this.equal(this.newViewport,this.oldViewport)){if(this.animate)return new M.ViewportAnimation(t,this.newViewport,this.oldViewport,e).start();t.scroll=this.oldViewport.scroll,t.zoom=this.oldViewport.zoom}return t},t.prototype.redo=function(e){var t=e.root;if(h.isViewport(t)&&void 0!==this.newViewport&&!this.equal(this.newViewport,this.oldViewport)){if(this.animate)return new M.ViewportAnimation(t,this.oldViewport,this.newViewport,e).start();t.scroll=this.newViewport.scroll,t.zoom=this.newViewport.zoom}return t},t.prototype.equal=function(e,t){return e.zoom===t.zoom&&e.scroll.x===t.scroll.x&&e.scroll.y===t.scroll.y},t=i([f.injectable(),r("design:paramtypes",[Boolean])],t),t}(l.Command);t.BoundsAwareViewportCommand=m;var v=function(e){function t(t){var o=e.call(this,t.animate)||this;return o.action=t,o}return n(t,e),t.prototype.getElementIds=function(){return this.action.elementIds},t.prototype.getNewViewport=function(e,t){if(s.isValidDimension(t.canvasBounds)){var o=this.action.retainZoom&&h.isViewport(t)?t.zoom:1,n=s.center(e);return{scroll:{x:n.x-.5*t.canvasBounds.width/o,y:n.y-.5*t.canvasBounds.height/o},zoom:o}}},t.KIND=O.KIND,t=i([a(0,f.inject(z.TYPES.Action)),r("design:paramtypes",[O])],t),t}(m);t.CenterCommand=v;var g=function(e){function t(t){var o=e.call(this,t.animate)||this;return o.action=t,o}return n(t,e),t.prototype.getElementIds=function(){return this.action.elementIds},t.prototype.getNewViewport=function(e,t){if(s.isValidDimension(t.canvasBounds)){var o=s.center(e),n=void 0===this.action.padding?0:2*this.action.padding,i=Math.min(t.canvasBounds.width/(e.width+n),t.canvasBounds.height/(e.height+n));return void 0!==this.action.maxZoom&&(i=Math.min(i,this.action.maxZoom)),i===1/0&&(i=1),{scroll:{x:o.x-.5*t.canvasBounds.width/i,y:o.y-.5*t.canvasBounds.height/i},zoom:i}}},t.KIND=A.KIND,t=i([a(0,f.inject(z.TYPES.Action)),r("design:paramtypes",[A])],t),t}(m);t.FitToScreenCommand=g;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.keyDown=function(e,t){return c.matchesKeystroke(t,"KeyC","ctrlCmd","shift")?[new O([])]:c.matchesKeystroke(t,"KeyF","ctrlCmd","shift")?[new A([])]:[]},t}(u.KeyListener);t.CenterKeyboardListener=y},edad:function(e,t,o){"use strict";var n=o("c51d"),i=o.n(n);i.a},ee16:function(e,t,o){e.exports=o("bafd")},efc5:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multiBindToService=function(e){return function(t){return function(){for(var o=[],n=0;n0&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o("e1c6"),c=o("b669"),p=o("dd02"),l=o("6923"),u=o("3a92"),b=o("3b4c"),d=o("510b"),M=o("9757"),h=o("302f"),f=o("1417"),z=o("3623"),O=o("66f9"),A=o("e4f0"),m=function(){function e(t,o){this.mouseoverElement=t,this.mouseIsOver=o,this.kind=e.KIND}return e.KIND="hoverFeedback",e}();t.HoverFeedbackAction=m;var v=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o}return n(t,e),t.prototype.execute=function(e){var t=e.root,o=t.index.getById(this.action.mouseoverElement);return o&&A.isHoverable(o)&&(o.hoverFeedback=this.action.mouseIsOver),this.redo(e)},t.prototype.undo=function(e){return e.root},t.prototype.redo=function(e){return e.root},t.KIND=m.KIND,t=i([s.injectable(),a(0,s.inject(l.TYPES.Action)),r("design:paramtypes",[m])],t),t}(M.SystemCommand);t.HoverFeedbackCommand=v;var g=function(){function e(t,o,n){void 0===n&&(n=""),this.elementId=t,this.bounds=o,this.requestId=n,this.kind=e.KIND}return e.create=function(t,o){return new e(t,o,d.generateRequestId())},e.KIND="requestPopupModel",e}();t.RequestPopupModelAction=g;var y=function(){function e(t,o){void 0===o&&(o=""),this.newRoot=t,this.responseId=o,this.kind=e.KIND}return e.KIND="setPopupModel",e}();t.SetPopupModelAction=y;var q=function(e){function t(t){var o=e.call(this)||this;return o.action=t,o}return n(t,e),t.prototype.execute=function(e){return this.oldRoot=e.root,this.newRoot=e.modelFactory.createRoot(this.action.newRoot),this.newRoot},t.prototype.undo=function(e){return this.oldRoot},t.prototype.redo=function(e){return this.newRoot},t.KIND=y.KIND,t=i([s.injectable(),a(0,s.inject(l.TYPES.Action)),r("design:paramtypes",[y])],t),t}(M.PopupCommand);t.SetPopupModelCommand=q;var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.mouseDown=function(e,t){return this.mouseIsDown=!0,[]},t.prototype.mouseUp=function(e,t){return this.mouseIsDown=!1,[]},t.prototype.stopMouseOutTimer=function(){void 0!==this.state.mouseOutTimer&&(window.clearTimeout(this.state.mouseOutTimer),this.state.mouseOutTimer=void 0)},t.prototype.startMouseOutTimer=function(){var e=this;return this.stopMouseOutTimer(),new Promise(function(t){e.state.mouseOutTimer=window.setTimeout(function(){e.state.popupOpen=!1,e.state.previousPopupElement=void 0,t(new y({type:h.EMPTY_ROOT.type,id:h.EMPTY_ROOT.id}))},e.options.popupCloseDelay)})},t.prototype.stopMouseOverTimer=function(){void 0!==this.state.mouseOverTimer&&(window.clearTimeout(this.state.mouseOverTimer),this.state.mouseOverTimer=void 0)},i([s.inject(l.TYPES.ViewerOptions),r("design:type",Object)],t.prototype,"options",void 0),i([s.inject(l.TYPES.HoverState),r("design:type",Object)],t.prototype,"state",void 0),t}(b.MouseListener);t.AbstractHoverMouseListener=_;var W=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.computePopupBounds=function(e,t){var o={x:-5,y:20},n=O.getAbsoluteBounds(e),i=e.root.canvasBounds,r=p.translate(n,i),a=r.x+r.width-t.x,s=r.y+r.height-t.y;s<=a&&this.allowSidePosition(e,"below",s)?o={x:-5,y:Math.round(s+5)}:a<=s&&this.allowSidePosition(e,"right",a)&&(o={x:Math.round(a+5),y:-5});var c=t.x+o.x,l=i.x+i.width;c>l&&(c=l);var u=t.y+o.y,b=i.y+i.height;return u>b&&(u=b),{x:c,y:u,width:-1,height:-1}},t.prototype.allowSidePosition=function(e,t,o){return!(e instanceof u.SModelRoot)&&o<=150},t.prototype.startMouseOverTimer=function(e,t){var o=this;return this.stopMouseOverTimer(),new Promise(function(n){o.state.mouseOverTimer=window.setTimeout(function(){var i=o.computePopupBounds(e,{x:t.pageX,y:t.pageY});n(new g(e.id,i)),o.state.popupOpen=!0,o.state.previousPopupElement=e},o.options.popupOpenDelay)})},t.prototype.mouseOver=function(e,t){var o=[];if(!this.mouseIsDown){var n=z.findParent(e,A.hasPopupFeature);this.state.popupOpen&&(void 0===n||void 0!==this.state.previousPopupElement&&this.state.previousPopupElement.id!==n.id)?o.push(this.startMouseOutTimer()):(this.stopMouseOverTimer(),this.stopMouseOutTimer()),void 0===n||void 0!==this.state.previousPopupElement&&this.state.previousPopupElement.id===n.id||o.push(this.startMouseOverTimer(n,t)),this.lastHoverFeedbackElementId&&(o.push(new m(this.lastHoverFeedbackElementId,!1)),this.lastHoverFeedbackElementId=void 0);var i=z.findParentByFeature(e,A.isHoverable);void 0!==i&&(o.push(new m(i.id,!0)),this.lastHoverFeedbackElementId=i.id)}return o},t.prototype.mouseOut=function(e,t){var o=[];if(!this.mouseIsDown){var n=document.elementFromPoint(t.x,t.y);if(!this.isSprottyPopup(n)){if(this.state.popupOpen){var i=z.findParent(e,A.hasPopupFeature);void 0!==this.state.previousPopupElement&&void 0!==i&&this.state.previousPopupElement.id===i.id&&o.push(this.startMouseOutTimer())}this.stopMouseOverTimer();var r=z.findParentByFeature(e,A.isHoverable);void 0!==r&&(o.push(new m(r.id,!1)),this.lastHoverFeedbackElementId=void 0)}}return o},t.prototype.isSprottyPopup=function(e){return!!e&&(e.id===this.options.popupDiv||!!e.parentElement&&this.isSprottyPopup(e.parentElement))},t.prototype.mouseMove=function(e,t){var o=[];if(!this.mouseIsDown){void 0!==this.state.previousPopupElement&&this.closeOnMouseMove(this.state.previousPopupElement,t)&&o.push(this.startMouseOutTimer());var n=z.findParent(e,A.hasPopupFeature);void 0===n||void 0!==this.state.previousPopupElement&&this.state.previousPopupElement.id===n.id||o.push(this.startMouseOverTimer(n,t))}return o},t.prototype.closeOnMouseMove=function(e,t){return e instanceof u.SModelRoot},i([s.inject(l.TYPES.ViewerOptions),r("design:type",Object)],t.prototype,"options",void 0),t=i([s.injectable()],t),t}(_);t.HoverMouseListener=W;var R=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.mouseOut=function(e,t){return[this.startMouseOutTimer()]},t.prototype.mouseOver=function(e,t){return this.stopMouseOutTimer(),this.stopMouseOverTimer(),[]},t=i([s.injectable()],t),t}(_);t.PopupHoverMouseListener=R;var w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.keyDown=function(e,t){return c.matchesKeystroke(t,"Escape")?[new y({type:h.EMPTY_ROOT.type,id:h.EMPTY_ROOT.id})]:[]},t}(f.KeyListener);t.HoverKeyListener=w;var L=function(){function e(){this.popupOpen=!1}return e.prototype.handle=function(e){if(e.kind===q.KIND)this.popupOpen=e.newRoot.type!==h.EMPTY_ROOT.type;else if(this.popupOpen)return new y({id:h.EMPTY_ROOT.id,type:h.EMPTY_ROOT.type})},e=i([s.injectable()],e),e}();t.ClosePopupActionHandler=L},f58f:function(e,t,o){"use strict";var n=o("15f6"),i=o.n(n);i.a},f913:function(e,t,o){"use strict";var n=o("0c4a"),i=o.n(n);i.a},f923:function(e,t,o){"use strict";function n(e,t){var o,n,i=t.elm,r=e.data.class,a=t.data.class;if((r||a)&&r!==a){for(n in r=r||{},a=a||{},r)a[n]||i.classList.remove(n);for(n in a)o=a[n],o!==r[n]&&i.classList[o?"add":"remove"](n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.classModule={create:n,update:n},t.default=t.classModule},faa1:function(e,t,o){"use strict";var n,i="object"===typeof Reflect?Reflect:null,r=i&&"function"===typeof i.apply?i.apply:function(e,t,o){return Function.prototype.apply.call(e,t,o)};function a(e){console&&console.warn&&console.warn(e)}n=i&&"function"===typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!==e};function c(){c.init.call(this)}e.exports=c,e.exports.once=m,c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var p=10;function l(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?c.defaultMaxListeners:e._maxListeners}function b(e,t,o,n){var i,r,s;if(l(o),r=e._events,void 0===r?(r=e._events=Object.create(null),e._eventsCount=0):(void 0!==r.newListener&&(e.emit("newListener",t,o.listener?o.listener:o),r=e._events),s=r[t]),void 0===s)s=r[t]=o,++e._eventsCount;else if("function"===typeof s?s=r[t]=n?[o,s]:[s,o]:n?s.unshift(o):s.push(o),i=u(e),i>0&&s.length>i&&!s.warned){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,a(c)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function M(e,t,o){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:o},i=d.bind(n);return i.listener=o,n.wrapFn=i,i}function h(e,t,o){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"===typeof i?o?[i.listener||i]:[i]:o?A(i):z(i,i.length)}function f(e){var t=this._events;if(void 0!==t){var o=t[e];if("function"===typeof o)return 1;if(void 0!==o)return o.length}return 0}function z(e,t){for(var o=new Array(t),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=i[e];if(void 0===c)return!1;if("function"===typeof c)r(c,this,t);else{var p=c.length,l=z(c,p);for(o=0;o=0;r--)if(o[r]===t||o[r].listener===t){a=o[r].listener,i=r;break}if(i<0)return this;0===i?o.shift():O(o,i),1===o.length&&(n[e]=o[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},c.prototype.off=c.prototype.removeListener,c.prototype.removeAllListeners=function(e){var t,o,n;if(o=this._events,void 0===o)return this;if(void 0===o.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==o[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete o[e]),this;if(0===arguments.length){var i,r=Object.keys(o);for(n=0;n=0;n--)this.removeListener(e,t[n]);return this},c.prototype.listeners=function(e){return h(this,e,!0)},c.prototype.rawListeners=function(e){return h(this,e,!1)},c.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},c.prototype.listenerCount=f,c.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},fba3:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("dd02");function i(e){return r()?e.metaKey:e.ctrlKey}function r(){return-1!==window.navigator.userAgent.indexOf("Mac")}function a(e){if(e&&"undefined"!==typeof window&&window.location){var t="";return window.location.protocol&&(t+=window.location.protocol+"//"),window.location.host&&(t+=window.location.host),t.length>0&&!e.startsWith(t)}return!1}function s(){return"undefined"===typeof window?n.ORIGIN_POINT:{x:window.pageXOffset,y:window.pageYOffset}}t.isCtrlOrCmd=i,t.isMac=r,t.isCrossSite=a,t.getWindowScroll=s},fcf3:function(e,t,o){!function(t,o){e.exports=o()}(self,function(){return(()=>{"use strict";var e={4567:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0}),t.AccessibilityManager=void 0;var r=o(9042),a=o(6114),s=o(9924),c=o(3656),p=o(844),l=o(5596),u=o(9631),b=function(e){function t(t,o){var n=e.call(this)||this;n._terminal=t,n._renderService=o,n._liveRegionLineCount=0,n._charsToConsume=[],n._charsToAnnounce="",n._accessibilityTreeRoot=document.createElement("div"),n._accessibilityTreeRoot.classList.add("xterm-accessibility"),n._accessibilityTreeRoot.tabIndex=0,n._rowContainer=document.createElement("div"),n._rowContainer.setAttribute("role","list"),n._rowContainer.classList.add("xterm-accessibility-tree"),n._rowElements=[];for(var i=0;ie;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},t.prototype._createAccessibilityTreeNode=function(){var e=document.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e},t.prototype._onTab=function(e){for(var t=0;t0?this._charsToConsume.shift()!==e&&(this._charsToAnnounce+=e):this._charsToAnnounce+=e,"\n"===e&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=r.tooMuchOutput)),a.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){t._accessibilityTreeRoot.appendChild(t._liveRegion)},0))},t.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,a.isMac&&(0,u.removeElementFromParent)(this._liveRegion)},t.prototype._onKey=function(e){this._clearLiveRegion(),this._charsToConsume.push(e)},t.prototype._refreshRows=function(e,t){this._renderRowsDebouncer.refresh(e,t,this._terminal.rows)},t.prototype._renderRows=function(e,t){for(var o=this._terminal.buffer,n=o.lines.length.toString(),i=e;i<=t;i++){var r=o.translateBufferLineToString(o.ydisp+i,!0),a=(o.ydisp+i+1).toString(),s=this._rowElements[i];s&&(0===r.length?s.innerText=" ":s.textContent=r,s.setAttribute("aria-posinset",a),s.setAttribute("aria-setsize",n))}this._announceCharacters()},t.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var e=0;e{function o(e){return e.replace(/\r?\n/g,"\r")}function n(e,t){return t?"[200~"+e+"[201~":e}function i(e,t,i){e=n(e=o(e),i.decPrivateModes.bracketedPasteMode),i.triggerDataEvent(e,!0),t.value=""}function r(e,t,o){var n=o.getBoundingClientRect(),i=e.clientX-n.left-10,r=e.clientY-n.top-10;t.style.width="20px",t.style.height="20px",t.style.left=i+"px",t.style.top=r+"px",t.style.zIndex="1000",t.focus()}Object.defineProperty(t,"__esModule",{value:!0}),t.rightClickHandler=t.moveTextAreaUnderMouseCursor=t.paste=t.handlePasteEvent=t.copyHandler=t.bracketTextForPaste=t.prepareTextForTerminal=void 0,t.prepareTextForTerminal=o,t.bracketTextForPaste=n,t.copyHandler=function(e,t){e.clipboardData&&e.clipboardData.setData("text/plain",t.selectionText),e.preventDefault()},t.handlePasteEvent=function(e,t,o){e.stopPropagation(),e.clipboardData&&i(e.clipboardData.getData("text/plain"),t,o)},t.paste=i,t.moveTextAreaUnderMouseCursor=r,t.rightClickHandler=function(e,t,o,n,i){r(e,t,o),i&&n.rightClickSelect(e),t.value=n.selectionText,t.select()}},7239:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorContrastCache=void 0;var o=function(){function e(){this._color={},this._rgba={}}return e.prototype.clear=function(){this._color={},this._rgba={}},e.prototype.setCss=function(e,t,o){this._rgba[e]||(this._rgba[e]={}),this._rgba[e][t]=o},e.prototype.getCss=function(e,t){return this._rgba[e]?this._rgba[e][t]:void 0},e.prototype.setColor=function(e,t,o){this._color[e]||(this._color[e]={}),this._color[e][t]=o},e.prototype.getColor=function(e,t){return this._color[e]?this._color[e][t]:void 0},e}();t.ColorContrastCache=o},5680:function(e,t,o){var n=this&&this.__read||function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var n,i,r=o.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.ColorManager=t.DEFAULT_ANSI_COLORS=void 0;var i=o(8055),r=o(7239),a=i.css.toColor("#ffffff"),s=i.css.toColor("#000000"),c=i.css.toColor("#ffffff"),p=i.css.toColor("#000000"),l={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};t.DEFAULT_ANSI_COLORS=Object.freeze(function(){for(var e=[i.css.toColor("#2e3436"),i.css.toColor("#cc0000"),i.css.toColor("#4e9a06"),i.css.toColor("#c4a000"),i.css.toColor("#3465a4"),i.css.toColor("#75507b"),i.css.toColor("#06989a"),i.css.toColor("#d3d7cf"),i.css.toColor("#555753"),i.css.toColor("#ef2929"),i.css.toColor("#8ae234"),i.css.toColor("#fce94f"),i.css.toColor("#729fcf"),i.css.toColor("#ad7fa8"),i.css.toColor("#34e2e2"),i.css.toColor("#eeeeec")],t=[0,95,135,175,215,255],o=0;o<216;o++){var n=t[o/36%6|0],r=t[o/6%6|0],a=t[o%6];e.push({css:i.channels.toCss(n,r,a),rgba:i.channels.toRgba(n,r,a)})}for(o=0;o<24;o++){var s=8+10*o;e.push({css:i.channels.toCss(s,s,s),rgba:i.channels.toRgba(s,s,s)})}return e}());var u=function(){function e(e,o){this.allowTransparency=o;var n=e.createElement("canvas");n.width=1,n.height=1;var u=n.getContext("2d");if(!u)throw new Error("Could not get rendering context");this._ctx=u,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new r.ColorContrastCache,this.colors={foreground:a,background:s,cursor:c,cursorAccent:p,selectionTransparent:l,selectionOpaque:i.color.blend(s,l),selectionForeground:void 0,ansi:t.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache},this._updateRestoreColors()}return e.prototype.onOptionsChange=function(e){"minimumContrastRatio"===e&&this._contrastCache.clear()},e.prototype.setTheme=function(e){void 0===e&&(e={}),this.colors.foreground=this._parseColor(e.foreground,a),this.colors.background=this._parseColor(e.background,s),this.colors.cursor=this._parseColor(e.cursor,c,!0),this.colors.cursorAccent=this._parseColor(e.cursorAccent,p,!0),this.colors.selectionTransparent=this._parseColor(e.selection,l,!0),this.colors.selectionOpaque=i.color.blend(this.colors.background,this.colors.selectionTransparent);var o={css:"",rgba:0};this.colors.selectionForeground=e.selectionForeground?this._parseColor(e.selectionForeground,o):void 0,this.colors.selectionForeground===o&&(this.colors.selectionForeground=void 0),i.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=i.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(e.black,t.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(e.red,t.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(e.green,t.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(e.yellow,t.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(e.blue,t.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(e.magenta,t.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(e.cyan,t.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(e.white,t.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(e.brightBlack,t.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(e.brightRed,t.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(e.brightGreen,t.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(e.brightYellow,t.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(e.brightBlue,t.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(e.brightMagenta,t.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(e.brightCyan,t.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(e.brightWhite,t.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear(),this._updateRestoreColors()},e.prototype.restoreColor=function(e){if(void 0!==e)switch(e){case 256:this.colors.foreground=this._restoreColors.foreground;break;case 257:this.colors.background=this._restoreColors.background;break;case 258:this.colors.cursor=this._restoreColors.cursor;break;default:this.colors.ansi[e]=this._restoreColors.ansi[e]}else for(var t=0;t=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.removeElementFromParent=void 0,t.removeElementFromParent=function(){for(var e,t,n,i=[],r=0;r{Object.defineProperty(t,"__esModule",{value:!0}),t.addDisposableDomListener=void 0,t.addDisposableDomListener=function(e,t,o,n){e.addEventListener(t,o,n);var i=!1;return{dispose:function(){i||(i=!0,e.removeEventListener(t,o,n))}}}},3551:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseZone=t.Linkifier=void 0;var r=o(8460),a=o(2585),s=function(){function e(e,t,o){this._bufferService=e,this._logService=t,this._unicodeService=o,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new r.EventEmitter,this._onHideLinkUnderline=new r.EventEmitter,this._onLinkTooltip=new r.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(e.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),e.prototype.attachToDom=function(e,t){this._element=e,this._mouseZoneManager=t},e.prototype.linkifyRows=function(t,o){var n=this;this._mouseZoneManager&&(void 0===this._rowsToLinkify.start||void 0===this._rowsToLinkify.end?(this._rowsToLinkify.start=t,this._rowsToLinkify.end=o):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,t),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,o)),this._mouseZoneManager.clearAll(t,o),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return n._linkifyRows()},e._timeBeforeLatency))},e.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var e=this._bufferService.buffer;if(void 0!==this._rowsToLinkify.start&&void 0!==this._rowsToLinkify.end){var t=e.ydisp+this._rowsToLinkify.start;if(!(t>=e.lines.length)){for(var o=e.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,n=Math.ceil(2e3/this._bufferService.cols),i=this._bufferService.buffer.iterator(!1,t,o,n,n);i.hasNext();)for(var r=i.next(),a=0;a=0;t--)if(e.priority<=this._linkMatchers[t].priority)return void this._linkMatchers.splice(t+1,0,e);this._linkMatchers.splice(0,0,e)}else this._linkMatchers.push(e)},e.prototype.deregisterLinkMatcher=function(e){for(var t=0;t>9&511:void 0;o.validationCallback?o.validationCallback(s,function(e){i._rowsTimeoutId||e&&i._addLink(p[1],p[0]-i._bufferService.buffer.ydisp,s,o,b)}):c._addLink(p[1],p[0]-c._bufferService.buffer.ydisp,s,o,b)},c=this;null!==(n=r.exec(t))&&"break"!==s(););},e.prototype._addLink=function(e,t,o,n,i){var r=this;if(this._mouseZoneManager&&this._element){var a=this._unicodeService.getStringCellWidth(o),s=e%this._bufferService.cols,p=t+Math.floor(e/this._bufferService.cols),l=(s+a)%this._bufferService.cols,u=p+Math.floor((s+a)/this._bufferService.cols);0===l&&(l=this._bufferService.cols,u--),this._mouseZoneManager.add(new c(s+1,p+1,l+1,u+1,function(e){if(n.handler)return n.handler(e,o);var t=window.open();t?(t.opener=null,t.location.href=o):console.warn("Opening link blocked as opener could not be cleared")},function(){r._onShowLinkUnderline.fire(r._createLinkHoverEvent(s,p,l,u,i)),r._element.classList.add("xterm-cursor-pointer")},function(e){r._onLinkTooltip.fire(r._createLinkHoverEvent(s,p,l,u,i)),n.hoverTooltipCallback&&n.hoverTooltipCallback(e,o,{start:{x:s,y:p},end:{x:l,y:u}})},function(){r._onHideLinkUnderline.fire(r._createLinkHoverEvent(s,p,l,u,i)),r._element.classList.remove("xterm-cursor-pointer"),n.hoverLeaveCallback&&n.hoverLeaveCallback()},function(e){return!n.willLinkActivate||n.willLinkActivate(e,o)}))}},e.prototype._createLinkHoverEvent=function(e,t,o,n,i){return{x1:e,y1:t,x2:o,y2:n,cols:this._bufferService.cols,fg:i}},e._timeBeforeLatency=200,e=n([i(0,a.IBufferService),i(1,a.ILogService),i(2,a.IUnicodeService)],e)}();t.Linkifier=s;var c=function(e,t,o,n,i,r,a,s,c){this.x1=e,this.y1=t,this.x2=o,this.y2=n,this.clickCallback=i,this.hoverCallback=r,this.tooltipCallback=a,this.leaveCallback=s,this.willLinkActivate=c};t.MouseZone=c},6465:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],n=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},c=this&&this.__read||function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var n,i,r=o.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.Linkifier2=void 0;var p=o(2585),l=o(8460),u=o(844),b=o(3656),d=function(e){function t(t){var o=e.call(this)||this;return o._bufferService=t,o._linkProviders=[],o._linkCacheDisposables=[],o._isMouseOut=!0,o._activeLine=-1,o._onShowLinkUnderline=o.register(new l.EventEmitter),o._onHideLinkUnderline=o.register(new l.EventEmitter),o.register((0,u.getDisposeArrayDisposable)(o._linkCacheDisposables)),o}return i(t,e),Object.defineProperty(t.prototype,"currentLink",{get:function(){return this._currentLink},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),t.prototype.registerLinkProvider=function(e){var t=this;return this._linkProviders.push(e),{dispose:function(){var o=t._linkProviders.indexOf(e);-1!==o&&t._linkProviders.splice(o,1)}}},t.prototype.attachToDom=function(e,t,o){var n=this;this._element=e,this._mouseService=t,this._renderService=o,this.register((0,b.addDisposableDomListener)(this._element,"mouseleave",function(){n._isMouseOut=!0,n._clearCurrentLink()})),this.register((0,b.addDisposableDomListener)(this._element,"mousemove",this._onMouseMove.bind(this))),this.register((0,b.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,b.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))},t.prototype._onMouseMove=function(e){if(this._lastMouseEvent=e,this._element&&this._mouseService){var t=this._positionFromMouseEvent(e,this._element,this._mouseService);if(t){this._isMouseOut=!1;for(var o=e.composedPath(),n=0;ne?this._bufferService.cols:a.link.range.end.x,p=s;p<=c;p++){if(o.has(p)){i.splice(r--,1);break}o.add(p)}}},t.prototype._checkLinkProviderResult=function(e,t,o){var n,i=this;if(!this._activeProviderReplies)return o;for(var r=this._activeProviderReplies.get(e),a=!1,s=0;s=e&&this._currentLink.link.range.end.y<=t)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,u.disposeArray)(this._linkCacheDisposables))},t.prototype._handleNewLink=function(e){var t=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var o=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);o&&this._linkAtPosition(e.link,o)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:void 0===e.link.decorations||e.link.decorations.underline,pointerCursor:void 0===e.link.decorations||e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:function(){var e,o;return null===(o=null===(e=t._currentLink)||void 0===e?void 0:e.state)||void 0===o?void 0:o.decorations.pointerCursor},set:function(e){var o,n;(null===(o=t._currentLink)||void 0===o?void 0:o.state)&&t._currentLink.state.decorations.pointerCursor!==e&&(t._currentLink.state.decorations.pointerCursor=e,t._currentLink.state.isHovered&&(null===(n=t._element)||void 0===n||n.classList.toggle("xterm-cursor-pointer",e)))}},underline:{get:function(){var e,o;return null===(o=null===(e=t._currentLink)||void 0===e?void 0:e.state)||void 0===o?void 0:o.decorations.underline},set:function(o){var n,i,r;(null===(n=t._currentLink)||void 0===n?void 0:n.state)&&(null===(r=null===(i=t._currentLink)||void 0===i?void 0:i.state)||void 0===r?void 0:r.decorations.underline)!==o&&(t._currentLink.state.decorations.underline=o,t._currentLink.state.isHovered&&t._fireUnderlineEvent(e.link,o))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(function(e){var o=0===e.start?0:e.start+1+t._bufferService.buffer.ydisp;t._clearCurrentLink(o,e.end+1+t._bufferService.buffer.ydisp)})))}},t.prototype._linkHover=function(e,t,o){var n;(null===(n=this._currentLink)||void 0===n?void 0:n.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),t.hover&&t.hover(o,t.text)},t.prototype._fireUnderlineEvent=function(e,t){var o=e.range,n=this._bufferService.buffer.ydisp,i=this._createLinkUnderlineEvent(o.start.x-1,o.start.y-n-1,o.end.x,o.end.y-n-1,void 0);(t?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(i)},t.prototype._linkLeave=function(e,t,o){var n;(null===(n=this._currentLink)||void 0===n?void 0:n.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),t.leave&&t.leave(o,t.text)},t.prototype._linkAtPosition=function(e,t){var o=e.range.start.y===e.range.end.y,n=e.range.start.yt.y;return(o&&e.range.start.x<=t.x&&e.range.end.x>=t.x||n&&e.range.end.x>=t.x||i&&e.range.start.x<=t.x||n&&i)&&e.range.start.y<=t.y&&e.range.end.y>=t.y},t.prototype._positionFromMouseEvent=function(e,t,o){var n=o.getCoords(e,t,this._bufferService.cols,this._bufferService.rows);if(n)return{x:n[0],y:n[1]+this._bufferService.buffer.ydisp}},t.prototype._createLinkUnderlineEvent=function(e,t,o,n,i){return{x1:e,y1:t,x2:o,y2:n,cols:this._bufferService.cols,fg:i}},r([a(0,p.IBufferService)],t)}(u.Disposable);t.Linkifier2=d},9042:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.tooMuchOutput=t.promptLabel=void 0,t.promptLabel="Terminal input",t.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},6954:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseZoneManager=void 0;var s=o(844),c=o(3656),p=o(4725),l=o(2585),u=function(e){function t(t,o,n,i,r,a){var s=e.call(this)||this;return s._element=t,s._screenElement=o,s._bufferService=n,s._mouseService=i,s._selectionService=r,s._optionsService=a,s._zones=[],s._areZonesActive=!1,s._lastHoverCoords=[void 0,void 0],s._initialSelectionLength=0,s.register((0,c.addDisposableDomListener)(s._element,"mousedown",function(e){return s._onMouseDown(e)})),s._mouseMoveListener=function(e){return s._onMouseMove(e)},s._mouseLeaveListener=function(e){return s._onMouseLeave(e)},s._clickListener=function(e){return s._onClick(e)},s}return i(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._deactivate()},t.prototype.add=function(e){this._zones.push(e),1===this._zones.length&&this._activate()},t.prototype.clearAll=function(e,t){if(0!==this._zones.length){e&&t||(e=0,t=this._bufferService.rows-1);for(var o=0;oe&&n.y1<=t+1||n.y2>e&&n.y2<=t+1||n.y1t+1)&&(this._currentZone&&this._currentZone===n&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(o--,1))}0===this._zones.length&&this._deactivate()}},t.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},t.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},t.prototype._onMouseMove=function(e){this._lastHoverCoords[0]===e.pageX&&this._lastHoverCoords[1]===e.pageY||(this._onHover(e),this._lastHoverCoords=[e.pageX,e.pageY])},t.prototype._onHover=function(e){var t=this,o=this._findZoneEventAt(e);o!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),o&&(this._currentZone=o,o.hoverCallback&&o.hoverCallback(e),this._tooltipTimeout=window.setTimeout(function(){return t._onTooltip(e)},this._optionsService.rawOptions.linkTooltipHoverDuration)))},t.prototype._onTooltip=function(e){this._tooltipTimeout=void 0;var t=this._findZoneEventAt(e);null==t||t.tooltipCallback(e)},t.prototype._onMouseDown=function(e){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var t=this._findZoneEventAt(e);(null==t?void 0:t.willLinkActivate(e))&&(e.preventDefault(),e.stopImmediatePropagation())}},t.prototype._onMouseLeave=function(e){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},t.prototype._onClick=function(e){var t=this._findZoneEventAt(e),o=this._getSelectionLength();t&&o===this._initialSelectionLength&&(t.clickCallback(e),e.preventDefault(),e.stopImmediatePropagation())},t.prototype._getSelectionLength=function(){var e=this._selectionService.selectionText;return e?e.length:0},t.prototype._findZoneEventAt=function(e){var t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(t)for(var o=t[0],n=t[1],i=0;i=r.x1&&o=r.x1||n===r.y2&&or.y1&&n=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.RenderDebouncer=void 0;var n=function(){function e(e){this._renderCallback=e,this._refreshCallbacks=[]}return e.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.addRefreshCallback=function(e){var t=this;return this._refreshCallbacks.push(e),this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return t._innerRefresh()})),this._animationFrame},e.prototype.refresh=function(e,t,o){var n=this;this._rowCount=o,e=void 0!==e?e:0,t=void 0!==t?t:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return n._innerRefresh()}))},e.prototype._innerRefresh=function(){if(this._animationFrame=void 0,void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t),this._runRefreshCallbacks()}else this._runRefreshCallbacks()},e.prototype._runRefreshCallbacks=function(){var e,t;try{for(var n=o(this._refreshCallbacks),i=n.next();!i.done;i=n.next())(0,i.value)(0)}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this._refreshCallbacks=[]},e}();t.RenderDebouncer=n},5596:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0}),t.ScreenDprMonitor=void 0;var r=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._currentDevicePixelRatio=window.devicePixelRatio,t}return i(t,e),t.prototype.setListener=function(e){var t=this;this._listener&&this.clearListener(),this._listener=e,this._outerListener=function(){t._listener&&(t._listener(window.devicePixelRatio,t._currentDevicePixelRatio),t._updateDpr())},this._updateDpr()},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.clearListener()},t.prototype._updateDpr=function(){var e;this._outerListener&&(null===(e=this._resolutionMediaMatchList)||void 0===e||e.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},t.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},t}(o(844).Disposable);t.ScreenDprMonitor=r},3236:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],n=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var n,i,r=o.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a},s=this&&this.__spreadArray||function(e,t,o){if(o||2===arguments.length)for(var n,i=0,r=t.length;i4)&&t.coreMouseService.triggerMouseEvent({col:i.x-33,row:i.y-33,button:o,action:n,ctrl:e.ctrlKey,alt:e.altKey,shift:e.shiftKey})}var i={mouseup:null,wheel:null,mousedrag:null,mousemove:null},r=function(t){return n(t),t.buttons||(e._document.removeEventListener("mouseup",i.mouseup),i.mousedrag&&e._document.removeEventListener("mousemove",i.mousedrag)),e.cancel(t)},a=function(t){return n(t),e.cancel(t,!0)},s=function(e){e.buttons&&n(e)},c=function(e){e.buttons||n(e)};this.register(this.coreMouseService.onProtocolChange(function(t){t?("debug"===e.optionsService.rawOptions.logLevel&&e._logService.debug("Binding to mouse events:",e.coreMouseService.explainEvents(t)),e.element.classList.add("enable-mouse-events"),e._selectionService.disable()):(e._logService.debug("Unbinding from mouse events."),e.element.classList.remove("enable-mouse-events"),e._selectionService.enable()),8&t?i.mousemove||(o.addEventListener("mousemove",c),i.mousemove=c):(o.removeEventListener("mousemove",i.mousemove),i.mousemove=null),16&t?i.wheel||(o.addEventListener("wheel",a,{passive:!1}),i.wheel=a):(o.removeEventListener("wheel",i.wheel),i.wheel=null),2&t?i.mouseup||(i.mouseup=r):(e._document.removeEventListener("mouseup",i.mouseup),i.mouseup=null),4&t?i.mousedrag||(i.mousedrag=s):(e._document.removeEventListener("mousemove",i.mousedrag),i.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,z.addDisposableDomListener)(o,"mousedown",function(t){if(t.preventDefault(),e.focus(),e.coreMouseService.areMouseEventsActive&&!e._selectionService.shouldForceSelection(t))return n(t),i.mouseup&&e._document.addEventListener("mouseup",i.mouseup),i.mousedrag&&e._document.addEventListener("mousemove",i.mousedrag),e.cancel(t)})),this.register((0,z.addDisposableDomListener)(o,"wheel",function(t){if(!i.wheel){if(!e.buffer.hasScrollback){var o=e.viewport.getLinesScrolled(t);if(0===o)return;for(var n=u.C0.ESC+(e.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(t.deltaY<0?"A":"B"),r="",a=0;a=65&&e.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(o.key!==u.C0.ETX&&o.key!==u.C0.CR||(this.textarea.value=""),this._onKey.fire({key:o.key,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(o.key,!0),this.optionsService.rawOptions.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(e,!0))))},t.prototype._isThirdLevelShift=function(e,t){var o=e.isMac&&!this.options.macOptionIsMeta&&t.altKey&&!t.ctrlKey&&!t.metaKey||e.isWindows&&t.altKey&&t.ctrlKey&&!t.metaKey||e.isWindows&&t.getModifierState("AltGraph");return"keypress"===t.type?o:o&&(!t.keyCode||t.keyCode>47)},t.prototype._keyUp=function(e){this._keyDownSeen=!1,this._customKeyEventHandler&&!1===this._customKeyEventHandler(e)||(function(e){return 16===e.keyCode||17===e.keyCode||18===e.keyCode}(e)||this.focus(),this.updateCursorStyle(e),this._keyPressHandled=!1)},t.prototype._keyPress=function(e){var t;if(this._keyPressHandled=!1,this._keyDownHandled)return!1;if(this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;if(this.cancel(e),e.charCode)t=e.charCode;else if(null===e.which||void 0===e.which)t=e.keyCode;else{if(0===e.which||0===e.charCode)return!1;t=e.which}return!(!t||(e.altKey||e.ctrlKey||e.metaKey)&&!this._isThirdLevelShift(this.browser,e)||(t=String.fromCharCode(t),this._onKey.fire({key:t,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(t,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))},t.prototype._inputEvent=function(e){if(e.data&&"insertText"===e.inputType&&(!e.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;var t=e.data;return this.coreService.triggerDataEvent(t,!0),this.cancel(e),!0}return!1},t.prototype.bell=function(){var e;this._soundBell()&&(null===(e=this._soundService)||void 0===e||e.playBellSound()),this._onBell.fire()},t.prototype.resize=function(t,o){t!==this.cols||o!==this.rows?e.prototype.resize.call(this,t,o):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},t.prototype._afterResize=function(e,t){var o,n;null===(o=this._charSizeService)||void 0===o||o.measure(),null===(n=this.viewport)||void 0===n||n.syncScrollArea(!0)},t.prototype.clear=function(){if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var e=1;e{Object.defineProperty(t,"__esModule",{value:!0}),t.TimeBasedDebouncer=void 0;var o=function(){function e(e,t){void 0===t&&(t=1e3),this._renderCallback=e,this._debounceThresholdMS=t,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}return e.prototype.dispose=function(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)},e.prototype.refresh=function(e,t,o){var n=this;this._rowCount=o,e=void 0!==e?e:0,t=void 0!==t?t:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t;var i=Date.now();if(i-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=i,this._innerRefresh();else if(!this._additionalRefreshRequested){var r=i-this._lastRefreshMs,a=this._debounceThresholdMS-r;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(function(){n._lastRefreshMs=Date.now(),n._innerRefresh(),n._additionalRefreshRequested=!1,n._refreshTimeoutID=void 0},a)}},e.prototype._innerRefresh=function(){if(void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t)}},e}();t.TimeBasedDebouncer=o},1680:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Viewport=void 0;var s=o(844),c=o(3656),p=o(4725),l=o(2585),u=function(e){function t(t,o,n,i,r,a,s,p){var l=e.call(this)||this;return l._scrollLines=t,l._viewportElement=o,l._scrollArea=n,l._element=i,l._bufferService=r,l._optionsService=a,l._charSizeService=s,l._renderService=p,l.scrollBarWidth=0,l._currentRowHeight=0,l._currentScaledCellHeight=0,l._lastRecordedBufferLength=0,l._lastRecordedViewportHeight=0,l._lastRecordedBufferHeight=0,l._lastTouchY=0,l._lastScrollTop=0,l._wheelPartialScroll=0,l._refreshAnimationFrame=null,l._ignoreNextScrollEvent=!1,l.scrollBarWidth=l._viewportElement.offsetWidth-l._scrollArea.offsetWidth||15,l.register((0,c.addDisposableDomListener)(l._viewportElement,"scroll",l._onScroll.bind(l))),l._activeBuffer=l._bufferService.buffer,l.register(l._bufferService.buffers.onBufferActivate(function(e){return l._activeBuffer=e.activeBuffer})),l._renderDimensions=l._renderService.dimensions,l.register(l._renderService.onDimensionsChange(function(e){return l._renderDimensions=e})),setTimeout(function(){return l.syncScrollArea()},0),l}return i(t,e),t.prototype.onThemeChange=function(e){this._viewportElement.style.backgroundColor=e.background.css},t.prototype._refresh=function(e){var t=this;if(e)return this._innerRefresh(),void(null!==this._refreshAnimationFrame&&cancelAnimationFrame(this._refreshAnimationFrame));null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return t._innerRefresh()}))},t.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._currentScaledCellHeight=this._renderService.dimensions.scaledCellHeight,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var e=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==e&&(this._lastRecordedBufferHeight=e,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var t=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==t&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=t),this._refreshAnimationFrame=null},t.prototype.syncScrollArea=function(e){if(void 0===e&&(e=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(e);this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.scaledCellHeight===this._currentScaledCellHeight||this._refresh(e)},t.prototype._onScroll=function(e){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent){if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._scrollLines(0);var t=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(t)}},t.prototype._bubbleScroll=function(e,t){var o=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(t<0&&0!==this._viewportElement.scrollTop||t>0&&o0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._bufferService.rows),t},t.prototype._applyScrollModifier=function(e,t){var o=this._optionsService.rawOptions.fastScrollModifier;return"alt"===o&&t.altKey||"ctrl"===o&&t.ctrlKey||"shift"===o&&t.shiftKey?e*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:e*this._optionsService.rawOptions.scrollSensitivity},t.prototype.onTouchStart=function(e){this._lastTouchY=e.touches[0].pageY},t.prototype.onTouchMove=function(e){var t=this._lastTouchY-e.touches[0].pageY;return this._lastTouchY=e.touches[0].pageY,0!==t&&(this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))},r([a(4,l.IBufferService),a(5,l.IOptionsService),a(6,p.ICharSizeService),a(7,p.IRenderService)],t)}(s.Disposable);t.Viewport=u},3107:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],n=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferDecorationRenderer=void 0;var c=o(3656),p=o(4725),l=o(844),u=o(2585),b=function(e){function t(t,o,n,i){var r=e.call(this)||this;return r._screenElement=t,r._bufferService=o,r._decorationService=n,r._renderService=i,r._decorationElements=new Map,r._altBufferIsActive=!1,r._dimensionsChanged=!1,r._container=document.createElement("div"),r._container.classList.add("xterm-decoration-container"),r._screenElement.appendChild(r._container),r.register(r._renderService.onRenderedViewportChange(function(){return r._queueRefresh()})),r.register(r._renderService.onDimensionsChange(function(){r._dimensionsChanged=!0,r._queueRefresh()})),r.register((0,c.addDisposableDomListener)(window,"resize",function(){return r._queueRefresh()})),r.register(r._bufferService.buffers.onBufferActivate(function(){r._altBufferIsActive=r._bufferService.buffer===r._bufferService.buffers.alt})),r.register(r._decorationService.onDecorationRegistered(function(){return r._queueRefresh()})),r.register(r._decorationService.onDecorationRemoved(function(e){return r._removeDecoration(e)})),r}return i(t,e),t.prototype.dispose=function(){this._container.remove(),this._decorationElements.clear(),e.prototype.dispose.call(this)},t.prototype._queueRefresh=function(){var e=this;void 0===this._animationFrame&&(this._animationFrame=this._renderService.addRefreshCallback(function(){e.refreshDecorations(),e._animationFrame=void 0}))},t.prototype.refreshDecorations=function(){var e,t;try{for(var o=s(this._decorationService.decorations),n=o.next();!n.done;n=o.next()){var i=n.value;this._renderDecoration(i)}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}this._dimensionsChanged=!1},t.prototype._renderDecoration=function(e){this._refreshStyle(e),this._dimensionsChanged&&this._refreshXPosition(e)},t.prototype._createElement=function(e){var t,o=document.createElement("div");o.classList.add("xterm-decoration"),o.style.width=Math.round((e.options.width||1)*this._renderService.dimensions.actualCellWidth)+"px",o.style.height=(e.options.height||1)*this._renderService.dimensions.actualCellHeight+"px",o.style.top=(e.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.actualCellHeight+"px",o.style.lineHeight=this._renderService.dimensions.actualCellHeight+"px";var n=null!==(t=e.options.x)&&void 0!==t?t:0;return n&&n>this._bufferService.cols&&(o.style.display="none"),this._refreshXPosition(e,o),o},t.prototype._refreshStyle=function(e){var t=this,o=e.marker.line-this._bufferService.buffers.active.ydisp;if(o<0||o>=this._bufferService.rows)e.element&&(e.element.style.display="none",e.onRenderEmitter.fire(e.element));else{var n=this._decorationElements.get(e);n||(e.onDispose(function(){return t._removeDecoration(e)}),n=this._createElement(e),e.element=n,this._decorationElements.set(e,n),this._container.appendChild(n)),n.style.top=o*this._renderService.dimensions.actualCellHeight+"px",n.style.display=this._altBufferIsActive?"none":"block",e.onRenderEmitter.fire(n)}},t.prototype._refreshXPosition=function(e,t){var o;if(void 0===t&&(t=e.element),t){var n=null!==(o=e.options.x)&&void 0!==o?o:0;"right"===(e.options.anchor||"left")?t.style.right=n?n*this._renderService.dimensions.actualCellWidth+"px":"":t.style.left=n?n*this._renderService.dimensions.actualCellWidth+"px":""}},t.prototype._removeDecoration=function(e){var t;null===(t=this._decorationElements.get(e))||void 0===t||t.remove(),this._decorationElements.delete(e)},r([a(1,u.IBufferService),a(2,u.IDecorationService),a(3,p.IRenderService)],t)}(l.Disposable);t.BufferDecorationRenderer=b},5871:function(e,t){var o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],n=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.ColorZoneStore=void 0;var n=function(){function e(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}return Object.defineProperty(e.prototype,"zones",{get:function(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones},enumerable:!1,configurable:!0}),e.prototype.clear=function(){this._zones.length=0,this._zonePoolIndex=0},e.prototype.addDecoration=function(e){var t,n;if(e.options.overviewRulerOptions){try{for(var i=o(this._zones),r=i.next();!r.done;r=i.next()){var a=r.value;if(a.color===e.options.overviewRulerOptions.color&&a.position===e.options.overviewRulerOptions.position){if(this._lineIntersectsZone(a,e.marker.line))return;if(this._lineAdjacentToZone(a,e.marker.line,e.options.overviewRulerOptions.position))return void this._addLineToZone(a,e.marker.line)}}}catch(e){t={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}if(this._zonePoolIndex=e.startBufferLine&&t<=e.endBufferLine},e.prototype._lineAdjacentToZone=function(e,t,o){return t>=e.startBufferLine-this._linePadding[o||"full"]&&t<=e.endBufferLine+this._linePadding[o||"full"]},e.prototype._addLineToZone=function(e,t){e.startBufferLine=Math.min(e.startBufferLine,t),e.endBufferLine=Math.max(e.endBufferLine,t)},e}();t.ColorZoneStore=n},5744:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],n=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.OverviewRulerRenderer=void 0;var c=o(5871),p=o(3656),l=o(4725),u=o(844),b=o(2585),d={full:0,left:0,center:0,right:0},M={full:0,left:0,center:0,right:0},h={full:0,left:0,center:0,right:0},f=function(e){function t(t,o,n,i,r,a){var s,p=e.call(this)||this;p._viewportElement=t,p._screenElement=o,p._bufferService=n,p._decorationService=i,p._renderService=r,p._optionsService=a,p._colorZoneStore=new c.ColorZoneStore,p._shouldUpdateDimensions=!0,p._shouldUpdateAnchor=!0,p._lastKnownBufferLength=0,p._canvas=document.createElement("canvas"),p._canvas.classList.add("xterm-decoration-overview-ruler"),p._refreshCanvasDimensions(),null===(s=p._viewportElement.parentElement)||void 0===s||s.insertBefore(p._canvas,p._viewportElement);var l=p._canvas.getContext("2d");if(!l)throw new Error("Ctx cannot be null");return p._ctx=l,p._registerDecorationListeners(),p._registerBufferChangeListeners(),p._registerDimensionChangeListeners(),p}return i(t,e),Object.defineProperty(t.prototype,"_width",{get:function(){return this._optionsService.options.overviewRulerWidth||0},enumerable:!1,configurable:!0}),t.prototype._registerDecorationListeners=function(){var e=this;this.register(this._decorationService.onDecorationRegistered(function(){return e._queueRefresh(void 0,!0)})),this.register(this._decorationService.onDecorationRemoved(function(){return e._queueRefresh(void 0,!0)}))},t.prototype._registerBufferChangeListeners=function(){var e=this;this.register(this._renderService.onRenderedViewportChange(function(){return e._queueRefresh()})),this.register(this._bufferService.buffers.onBufferActivate(function(){e._canvas.style.display=e._bufferService.buffer===e._bufferService.buffers.alt?"none":"block"})),this.register(this._bufferService.onScroll(function(){e._lastKnownBufferLength!==e._bufferService.buffers.normal.lines.length&&(e._refreshDrawHeightConstants(),e._refreshColorZonePadding())}))},t.prototype._registerDimensionChangeListeners=function(){var e=this;this.register(this._renderService.onRender(function(){e._containerHeight&&e._containerHeight===e._screenElement.clientHeight||(e._queueRefresh(!0),e._containerHeight=e._screenElement.clientHeight)})),this.register(this._optionsService.onOptionChange(function(t){"overviewRulerWidth"===t&&e._queueRefresh(!0)})),this.register((0,p.addDisposableDomListener)(window,"resize",function(){e._queueRefresh(!0)})),this._queueRefresh(!0)},t.prototype.dispose=function(){var t;null===(t=this._canvas)||void 0===t||t.remove(),e.prototype.dispose.call(this)},t.prototype._refreshDrawConstants=function(){var e=Math.floor(this._canvas.width/3),t=Math.ceil(this._canvas.width/3);M.full=this._canvas.width,M.left=e,M.center=t,M.right=e,this._refreshDrawHeightConstants(),h.full=0,h.left=0,h.center=M.left,h.right=M.left+M.center},t.prototype._refreshDrawHeightConstants=function(){d.full=Math.round(2*window.devicePixelRatio);var e=this._canvas.height/this._bufferService.buffer.lines.length,t=Math.round(Math.max(Math.min(e,12),6)*window.devicePixelRatio);d.left=t,d.center=t,d.right=t},t.prototype._refreshColorZonePadding=function(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*d.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*d.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*d.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*d.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length},t.prototype._refreshCanvasDimensions=function(){this._canvas.style.width=this._width+"px",this._canvas.width=Math.round(this._width*window.devicePixelRatio),this._canvas.style.height=this._screenElement.clientHeight+"px",this._canvas.height=Math.round(this._screenElement.clientHeight*window.devicePixelRatio),this._refreshDrawConstants(),this._refreshColorZonePadding()},t.prototype._refreshDecorations=function(){var e,t,o,n,i,r;this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();try{for(var a=s(this._decorationService.decorations),c=a.next();!c.done;c=a.next()){var p=c.value;this._colorZoneStore.addDecoration(p)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}this._ctx.lineWidth=1;var l=this._colorZoneStore.zones;try{for(var u=s(l),b=u.next();!b.done;b=u.next())"full"!==(h=b.value).position&&this._renderColorZone(h)}catch(e){o={error:e}}finally{try{b&&!b.done&&(n=u.return)&&n.call(u)}finally{if(o)throw o.error}}try{for(var d=s(l),M=d.next();!M.done;M=d.next()){var h;"full"===(h=M.value).position&&this._renderColorZone(h)}}catch(e){i={error:e}}finally{try{M&&!M.done&&(r=d.return)&&r.call(d)}finally{if(i)throw i.error}}this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1},t.prototype._renderColorZone=function(e){this._ctx.fillStyle=e.color,this._ctx.fillRect(h[e.position||"full"],Math.round((this._canvas.height-1)*(e.startBufferLine/this._bufferService.buffers.active.lines.length)-d[e.position||"full"]/2),M[e.position||"full"],Math.round((this._canvas.height-1)*((e.endBufferLine-e.startBufferLine)/this._bufferService.buffers.active.lines.length)+d[e.position||"full"]))},t.prototype._queueRefresh=function(e,t){var o=this;this._shouldUpdateDimensions=e||this._shouldUpdateDimensions,this._shouldUpdateAnchor=t||this._shouldUpdateAnchor,void 0===this._animationFrame&&(this._animationFrame=window.requestAnimationFrame(function(){o._refreshDecorations(),o._animationFrame=void 0}))},r([a(2,b.IBufferService),a(3,b.IDecorationService),a(4,l.IRenderService),a(5,b.IOptionsService)],t)}(u.Disposable);t.OverviewRulerRenderer=f},2950:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CompositionHelper=void 0;var r=o(4725),a=o(2585),s=function(){function e(e,t,o,n,i,r){this._textarea=e,this._compositionView=t,this._bufferService=o,this._optionsService=n,this._coreService=i,this._renderService=r,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}return Object.defineProperty(e.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),e.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")},e.prototype.compositionupdate=function(e){var t=this;this._compositionView.textContent=e.data,this.updateCompositionElements(),setTimeout(function(){t._compositionPosition.end=t._textarea.value.length},0)},e.prototype.compositionend=function(){this._finalizeComposition(!0)},e.prototype.keydown=function(e){if(this._isComposing||this._isSendingComposition){if(229===e.keyCode)return!1;if(16===e.keyCode||17===e.keyCode||18===e.keyCode)return!1;this._finalizeComposition(!1)}return 229!==e.keyCode||(this._handleAnyTextareaChanges(),!1)},e.prototype._finalizeComposition=function(e){var t=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,e){var o={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){var e;t._isSendingComposition&&(t._isSendingComposition=!1,o.start+=t._dataAlreadySent.length,(e=t._isComposing?t._textarea.value.substring(o.start,o.end):t._textarea.value.substring(o.start)).length>0&&t._coreService.triggerDataEvent(e,!0))},0)}else{this._isSendingComposition=!1;var n=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(n,!0)}},e.prototype._handleAnyTextareaChanges=function(){var e=this,t=this._textarea.value;setTimeout(function(){if(!e._isComposing){var o=e._textarea.value.replace(t,"");o.length>0&&(e._dataAlreadySent=o,e._coreService.triggerDataEvent(o,!0))}},0)},e.prototype.updateCompositionElements=function(e){var t=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var o=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),n=this._renderService.dimensions.actualCellHeight,i=this._bufferService.buffer.y*this._renderService.dimensions.actualCellHeight,r=o*this._renderService.dimensions.actualCellWidth;this._compositionView.style.left=r+"px",this._compositionView.style.top=i+"px",this._compositionView.style.height=n+"px",this._compositionView.style.lineHeight=n+"px",this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var a=this._compositionView.getBoundingClientRect();this._textarea.style.left=r+"px",this._textarea.style.top=i+"px",this._textarea.style.width=Math.max(a.width,1)+"px",this._textarea.style.height=Math.max(a.height,1)+"px",this._textarea.style.lineHeight=a.height+"px"}e||setTimeout(function(){return t.updateCompositionElements(!0)},0)}},n([i(2,a.IBufferService),i(3,a.IOptionsService),i(4,a.ICoreService),i(5,r.IRenderService)],e)}();t.CompositionHelper=s},9806:(e,t)=>{function o(e,t,o){var n=o.getBoundingClientRect(),i=e.getComputedStyle(o),r=parseInt(i.getPropertyValue("padding-left")),a=parseInt(i.getPropertyValue("padding-top"));return[t.clientX-n.left-r,t.clientY-n.top-a]}Object.defineProperty(t,"__esModule",{value:!0}),t.getRawByteCoords=t.getCoords=t.getCoordsRelativeToElement=void 0,t.getCoordsRelativeToElement=o,t.getCoords=function(e,t,n,i,r,a,s,c,p){if(a){var l=o(e,t,n);if(l)return l[0]=Math.ceil((l[0]+(p?s/2:0))/s),l[1]=Math.ceil(l[1]/c),l[0]=Math.min(Math.max(l[0],1),i+(p?1:0)),l[1]=Math.min(Math.max(l[1],1),r),l}},t.getRawByteCoords=function(e){if(e)return{x:e[0]+32,y:e[1]+32}}},9504:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.moveToCellSequence=void 0;var n=o(2584);function i(e,t,o,n){var i=e-r(o,e),s=t-r(o,t),l=Math.abs(i-s)-function(e,t,o){for(var n=0,i=e-r(o,e),s=t-r(o,t),c=0;c=0&&tt?"A":"B"}function s(e,t,o,n,i,r){for(var a=e,s=t,c="";a!==o||s!==n;)a+=i?1:-1,i&&a>r.cols-1?(c+=r.buffer.translateBufferLineToString(s,!1,e,a),a=0,e=0,s++):!i&&a<0&&(c+=r.buffer.translateBufferLineToString(s,!1,0,e+1),e=a=r.cols-1,s--);return c+r.buffer.translateBufferLineToString(s,!1,e,a)}function c(e,t){var o=t?"O":"[";return n.C0.ESC+o+e}function p(e,t){e=Math.floor(e);for(var o="",n=0;n0?n-r(a,n):t;var b=n,d=function(e,t,o,n,a,s){var c;return c=i(o,n,a,s).length>0?n-r(a,n):t,e=o&&ce?"D":"C",p(Math.abs(l-e),c(a,n));a=u>t?"D":"C";var b=Math.abs(u-t);return p(function(e,t){return t.cols-e}(u>t?e:l,o)+(b-1)*o.cols+1+((u>t?l:e)-1),c(a,n))}},4389:function(e,t,o){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,o=1,n=arguments.length;o=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.Terminal=void 0;var r=o(3236),a=o(9042),s=o(7975),c=o(7090),p=o(5741),l=o(8285),u=["cols","rows"],b=function(){function e(e){var t=this;this._core=new r.Terminal(e),this._addonManager=new p.AddonManager,this._publicOptions=n({},this._core.options);var o=function(e){return t._core.options[e]},i=function(e,o){t._checkReadonlyOptions(e),t._core.options[e]=o};for(var a in this._core.options){var s={get:o.bind(this,a),set:i.bind(this,a)};Object.defineProperty(this._publicOptions,a,s)}}return e.prototype._checkReadonlyOptions=function(e){if(u.includes(e))throw new Error('Option "'+e+'" can only be set in the constructor')},e.prototype._checkProposedApi=function(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")},Object.defineProperty(e.prototype,"onBell",{get:function(){return this._core.onBell},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onWriteParsed",{get:function(){return this._core.onWriteParsed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new s.ParserApi(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"unicode",{get:function(){return this._checkProposedApi(),new c.UnicodeApi(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"buffer",{get:function(){return this._checkProposedApi(),this._buffer||(this._buffer=new l.BufferNamespaceApi(this._core)),this._buffer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"modes",{get:function(){var e=this._core.coreService.decPrivateModes,t="none";switch(this._core.coreMouseService.activeProtocol){case"X10":t="x10";break;case"VT200":t="vt200";break;case"DRAG":t="drag";break;case"ANY":t="any"}return{applicationCursorKeysMode:e.applicationCursorKeys,applicationKeypadMode:e.applicationKeypad,bracketedPasteMode:e.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:t,originMode:e.origin,reverseWraparoundMode:e.reverseWraparound,sendFocusMode:e.sendFocus,wraparoundMode:e.wraparound}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._publicOptions},set:function(e){for(var t in e)this._publicOptions[t]=e[t]},enumerable:!1,configurable:!0}),e.prototype.blur=function(){this._core.blur()},e.prototype.focus=function(){this._core.focus()},e.prototype.resize=function(e,t){this._verifyIntegers(e,t),this._core.resize(e,t)},e.prototype.open=function(e){this._core.open(e)},e.prototype.attachCustomKeyEventHandler=function(e){this._core.attachCustomKeyEventHandler(e)},e.prototype.registerLinkMatcher=function(e,t,o){return this._checkProposedApi(),this._core.registerLinkMatcher(e,t,o)},e.prototype.deregisterLinkMatcher=function(e){this._checkProposedApi(),this._core.deregisterLinkMatcher(e)},e.prototype.registerLinkProvider=function(e){return this._checkProposedApi(),this._core.registerLinkProvider(e)},e.prototype.registerCharacterJoiner=function(e){return this._checkProposedApi(),this._core.registerCharacterJoiner(e)},e.prototype.deregisterCharacterJoiner=function(e){this._checkProposedApi(),this._core.deregisterCharacterJoiner(e)},e.prototype.registerMarker=function(e){return void 0===e&&(e=0),this._checkProposedApi(),this._verifyIntegers(e),this._core.addMarker(e)},e.prototype.registerDecoration=function(e){var t,o,n;return this._checkProposedApi(),this._verifyPositiveIntegers(null!==(t=e.x)&&void 0!==t?t:0,null!==(o=e.width)&&void 0!==o?o:0,null!==(n=e.height)&&void 0!==n?n:0),this._core.registerDecoration(e)},e.prototype.addMarker=function(e){return this.registerMarker(e)},e.prototype.hasSelection=function(){return this._core.hasSelection()},e.prototype.select=function(e,t,o){this._verifyIntegers(e,t,o),this._core.select(e,t,o)},e.prototype.getSelection=function(){return this._core.getSelection()},e.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},e.prototype.clearSelection=function(){this._core.clearSelection()},e.prototype.selectAll=function(){this._core.selectAll()},e.prototype.selectLines=function(e,t){this._verifyIntegers(e,t),this._core.selectLines(e,t)},e.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},e.prototype.scrollLines=function(e){this._verifyIntegers(e),this._core.scrollLines(e)},e.prototype.scrollPages=function(e){this._verifyIntegers(e),this._core.scrollPages(e)},e.prototype.scrollToTop=function(){this._core.scrollToTop()},e.prototype.scrollToBottom=function(){this._core.scrollToBottom()},e.prototype.scrollToLine=function(e){this._verifyIntegers(e),this._core.scrollToLine(e)},e.prototype.clear=function(){this._core.clear()},e.prototype.write=function(e,t){this._core.write(e,t)},e.prototype.writeUtf8=function(e,t){this._core.write(e,t)},e.prototype.writeln=function(e,t){this._core.write(e),this._core.write("\r\n",t)},e.prototype.paste=function(e){this._core.paste(e)},e.prototype.getOption=function(e){return this._core.optionsService.getOption(e)},e.prototype.setOption=function(e,t){this._checkReadonlyOptions(e),this._core.optionsService.setOption(e,t)},e.prototype.refresh=function(e,t){this._verifyIntegers(e,t),this._core.refresh(e,t)},e.prototype.reset=function(){this._core.reset()},e.prototype.clearTextureAtlas=function(){this._core.clearTextureAtlas()},e.prototype.loadAddon=function(e){return this._addonManager.loadAddon(this,e)},Object.defineProperty(e,"strings",{get:function(){return a},enumerable:!1,configurable:!0}),e.prototype._verifyIntegers=function(){for(var e,t,o=[],n=0;n=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseRenderLayer=void 0;var i=o(643),r=o(8803),a=o(1420),s=o(3734),c=o(1752),p=o(8055),l=o(9631),u=o(8978),b=function(){function e(e,t,o,n,i,r,a,s,c){this._container=e,this._alpha=n,this._colors=i,this._rendererId=r,this._bufferService=a,this._optionsService=s,this._decorationService=c,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._columnSelectMode=!1,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+t+"-layer"),this._canvas.style.zIndex=o.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return e.prototype.dispose=function(){var e;(0,l.removeElementFromParent)(this._canvas),null===(e=this._charAtlas)||void 0===e||e.dispose()},e.prototype._initCanvas=function(){this._ctx=(0,c.throwIfFalsy)(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},e.prototype.onOptionsChanged=function(){},e.prototype.onBlur=function(){},e.prototype.onFocus=function(){},e.prototype.onCursorMove=function(){},e.prototype.onGridChanged=function(e,t){},e.prototype.onSelectionChanged=function(e,t,o){void 0===o&&(o=!1),this._selectionStart=e,this._selectionEnd=t,this._columnSelectMode=o},e.prototype.setColors=function(e){this._refreshCharAtlas(e)},e.prototype._setTransparency=function(e){if(e!==this._alpha){var t=this._canvas;this._alpha=e,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,t),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},e.prototype._refreshCharAtlas=function(e){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=(0,a.acquireCharAtlas)(this._optionsService.rawOptions,this._rendererId,e,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},e.prototype.resize=function(e){this._scaledCellWidth=e.scaledCellWidth,this._scaledCellHeight=e.scaledCellHeight,this._scaledCharWidth=e.scaledCharWidth,this._scaledCharHeight=e.scaledCharHeight,this._scaledCharLeft=e.scaledCharLeft,this._scaledCharTop=e.scaledCharTop,this._canvas.width=e.scaledCanvasWidth,this._canvas.height=e.scaledCanvasHeight,this._canvas.style.width=e.canvasWidth+"px",this._canvas.style.height=e.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},e.prototype.clearTextureAtlas=function(){var e;null===(e=this._charAtlas)||void 0===e||e.clear()},e.prototype._fillCells=function(e,t,o,n){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,o*this._scaledCellWidth,n*this._scaledCellHeight)},e.prototype._fillMiddleLineAtCells=function(e,t,o){void 0===o&&(o=1);var n=Math.ceil(.5*this._scaledCellHeight);this._ctx.fillRect(e*this._scaledCellWidth,(t+1)*this._scaledCellHeight-n-window.devicePixelRatio,o*this._scaledCellWidth,window.devicePixelRatio)},e.prototype._fillBottomLineAtCells=function(e,t,o){void 0===o&&(o=1),this._ctx.fillRect(e*this._scaledCellWidth,(t+1)*this._scaledCellHeight-window.devicePixelRatio-1,o*this._scaledCellWidth,window.devicePixelRatio)},e.prototype._fillLeftLineAtCell=function(e,t,o){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,window.devicePixelRatio*o,this._scaledCellHeight)},e.prototype._strokeRectAtCell=function(e,t,o,n){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(e*this._scaledCellWidth+window.devicePixelRatio/2,t*this._scaledCellHeight+window.devicePixelRatio/2,o*this._scaledCellWidth-window.devicePixelRatio,n*this._scaledCellHeight-window.devicePixelRatio)},e.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},e.prototype._clearCells=function(e,t,o,n){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,t*this._scaledCellHeight,o*this._scaledCellWidth,n*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,o*this._scaledCellWidth,n*this._scaledCellHeight))},e.prototype._fillCharTrueColor=function(e,t,o){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline=r.TEXT_BASELINE,this._clipRow(o);var n=!1;!1!==this._optionsService.rawOptions.customGlyphs&&(n=(0,u.tryDrawCustomChar)(this._ctx,e.getChars(),t*this._scaledCellWidth,o*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),n||this._ctx.fillText(e.getChars(),t*this._scaledCellWidth+this._scaledCharLeft,o*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight)},e.prototype._drawChars=function(e,t,o){var a,s,c,p=this._getContrastColor(e,t,o);if(p||e.isFgRGB()||e.isBgRGB())this._drawUncachedChars(e,t,o,p);else{var l,u;e.isInverse()?(l=e.isBgDefault()?r.INVERTED_DEFAULT_COLOR:e.getBgColor(),u=e.isFgDefault()?r.INVERTED_DEFAULT_COLOR:e.getFgColor()):(u=e.isBgDefault()?i.DEFAULT_COLOR:e.getBgColor(),l=e.isFgDefault()?i.DEFAULT_COLOR:e.getFgColor()),l+=this._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&l<8?8:0,this._currentGlyphIdentifier.chars=e.getChars()||i.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=e.getCode()||i.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=u,this._currentGlyphIdentifier.fg=l,this._currentGlyphIdentifier.bold=!!e.isBold(),this._currentGlyphIdentifier.dim=!!e.isDim(),this._currentGlyphIdentifier.italic=!!e.isItalic();var b=!1;try{for(var d=n(this._decorationService.getDecorationsAtCell(t,o)),M=d.next();!M.done;M=d.next()){var h=M.value;if(h.backgroundColorRGB||h.foregroundColorRGB){b=!0;break}}}catch(e){a={error:e}}finally{try{M&&!M.done&&(s=d.return)&&s.call(d)}finally{if(a)throw a.error}}!b&&(null===(c=this._charAtlas)||void 0===c?void 0:c.draw(this._ctx,this._currentGlyphIdentifier,t*this._scaledCellWidth+this._scaledCharLeft,o*this._scaledCellHeight+this._scaledCharTop))||this._drawUncachedChars(e,t,o)}},e.prototype._drawUncachedChars=function(e,t,o,n){if(this._ctx.save(),this._ctx.font=this._getFont(!!e.isBold(),!!e.isItalic()),this._ctx.textBaseline=r.TEXT_BASELINE,e.isInverse())if(n)this._ctx.fillStyle=n.css;else if(e.isBgDefault())this._ctx.fillStyle=p.color.opaque(this._colors.background).css;else if(e.isBgRGB())this._ctx.fillStyle="rgb("+s.AttributeData.toColorRGB(e.getBgColor()).join(",")+")";else{var i=e.getBgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&i<8&&(i+=8),this._ctx.fillStyle=this._colors.ansi[i].css}else if(n)this._ctx.fillStyle=n.css;else if(e.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(e.isFgRGB())this._ctx.fillStyle="rgb("+s.AttributeData.toColorRGB(e.getFgColor()).join(",")+")";else{var a=e.getFgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&a<8&&(a+=8),this._ctx.fillStyle=this._colors.ansi[a].css}this._clipRow(o),e.isDim()&&(this._ctx.globalAlpha=r.DIM_OPACITY);var c=!1;!1!==this._optionsService.rawOptions.customGlyphs&&(c=(0,u.tryDrawCustomChar)(this._ctx,e.getChars(),t*this._scaledCellWidth,o*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),c||this._ctx.fillText(e.getChars(),t*this._scaledCellWidth+this._scaledCharLeft,o*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight),this._ctx.restore()},e.prototype._clipRow=function(e){this._ctx.beginPath(),this._ctx.rect(0,e*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},e.prototype._getFont=function(e,t){return(t?"italic":"")+" "+(e?this._optionsService.rawOptions.fontWeightBold:this._optionsService.rawOptions.fontWeight)+" "+this._optionsService.rawOptions.fontSize*window.devicePixelRatio+"px "+this._optionsService.rawOptions.fontFamily},e.prototype._getContrastColor=function(e,t,o){var i,r,a,s,l=!1;try{for(var u=n(this._decorationService.getDecorationsAtCell(t,o)),b=u.next();!b.done;b=u.next()){var d=b.value;"top"!==d.options.layer&&l||(d.backgroundColorRGB&&(a=d.backgroundColorRGB.rgba),d.foregroundColorRGB&&(s=d.foregroundColorRGB.rgba),l="top"===d.options.layer)}}catch(e){i={error:e}}finally{try{b&&!b.done&&(r=u.return)&&r.call(u)}finally{if(i)throw i.error}}if(l||this._colors.selectionForeground&&this._isCellInSelection(t,o)&&(s=this._colors.selectionForeground.rgba),a||s||1!==this._optionsService.rawOptions.minimumContrastRatio&&!(0,c.excludeFromContrastRatioDemands)(e.getCode())){if(!a&&!s){var M=this._colors.contrastCache.getColor(e.bg,e.fg);if(void 0!==M)return M||void 0}var h=e.getFgColor(),f=e.getFgColorMode(),z=e.getBgColor(),O=e.getBgColorMode(),A=!!e.isInverse(),m=!!e.isInverse();if(A){var v=h;h=z,z=v;var g=f;f=O,O=g}var y=this._resolveBackgroundRgba(void 0!==a?50331648:O,null!=a?a:z,A),q=this._resolveForegroundRgba(f,h,A,m),_=p.rgba.ensureContrastRatio(null!=a?a:y,null!=s?s:q,this._optionsService.rawOptions.minimumContrastRatio);if(!_){if(!s)return void this._colors.contrastCache.setColor(e.bg,e.fg,null);_=s}var W={css:p.channels.toCss(_>>24&255,_>>16&255,_>>8&255),rgba:_};return a||s||this._colors.contrastCache.setColor(e.bg,e.fg,W),W}},e.prototype._resolveBackgroundRgba=function(e,t,o){switch(e){case 16777216:case 33554432:return this._colors.ansi[t].rgba;case 50331648:return t<<8;default:return o?this._colors.foreground.rgba:this._colors.background.rgba}},e.prototype._resolveForegroundRgba=function(e,t,o,n){switch(e){case 16777216:case 33554432:return this._optionsService.rawOptions.drawBoldTextInBrightColors&&n&&t<8&&(t+=8),this._colors.ansi[t].rgba;case 50331648:return t<<8;default:return o?this._colors.background.rgba:this._colors.foreground.rgba}},e.prototype._isCellInSelection=function(e,t){var o=this._selectionStart,n=this._selectionEnd;return!(!o||!n)&&(this._columnSelectMode?e>=o[0]&&t>=o[1]&&eo[1]&&t=o[0]&&e=o[0])},e}();t.BaseRenderLayer=b},2512:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CursorRenderLayer=void 0;var s=o(1546),c=o(511),p=o(2585),l=o(4725),u=600,b=function(e){function t(t,o,n,i,r,a,s,p,l,u){var b=e.call(this,t,"cursor",o,!0,n,i,a,s,u)||this;return b._onRequestRedraw=r,b._coreService=p,b._coreBrowserService=l,b._cell=new c.CellData,b._state={x:0,y:0,isFocused:!1,style:"",width:0},b._cursorRenderers={bar:b._renderBarCursor.bind(b),block:b._renderBlockCursor.bind(b),underline:b._renderUnderlineCursor.bind(b)},b}return i(t,e),t.prototype.dispose=function(){this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0),e.prototype.dispose.call(this)},t.prototype.resize=function(t){e.prototype.resize.call(this,t),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},t.prototype.reset=function(){var e;this._clearCursor(),null===(e=this._cursorBlinkStateManager)||void 0===e||e.restartBlinkAnimation(),this.onOptionsChanged()},t.prototype.onBlur=function(){var e;null===(e=this._cursorBlinkStateManager)||void 0===e||e.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onFocus=function(){var e;null===(e=this._cursorBlinkStateManager)||void 0===e||e.resume(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onOptionsChanged=function(){var e,t=this;this._optionsService.rawOptions.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new d(this._coreBrowserService.isFocused,function(){t._render(!0)})):(null===(e=this._cursorBlinkStateManager)||void 0===e||e.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onCursorMove=function(){var e;null===(e=this._cursorBlinkStateManager)||void 0===e||e.restartBlinkAnimation()},t.prototype.onGridChanged=function(e,t){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},t.prototype._render=function(e){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var t=this._bufferService.buffer.ybase+this._bufferService.buffer.y,o=t-this._bufferService.buffer.ydisp;if(o<0||o>=this._bufferService.rows)this._clearCursor();else{var n=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(t).loadCell(n,this._cell),void 0!==this._cell.content){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var i=this._optionsService.rawOptions.cursorStyle;return i&&"block"!==i?this._cursorRenderers[i](n,o,this._cell):this._renderBlurCursor(n,o,this._cell),this._ctx.restore(),this._state.x=n,this._state.y=o,this._state.isFocused=!1,this._state.style=i,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===n&&this._state.y===o&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.rawOptions.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.rawOptions.cursorStyle||"block"](n,o,this._cell),this._ctx.restore(),this._state.x=n,this._state.y=o,this._state.isFocused=!1,this._state.style=this._optionsService.rawOptions.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},t.prototype._clearCursor=function(){this._state&&(window.devicePixelRatio<1?this._clearAll():this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},t.prototype._renderBarCursor=function(e,t,o){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(e,t,this._optionsService.rawOptions.cursorWidth),this._ctx.restore()},t.prototype._renderBlockCursor=function(e,t,o){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(e,t,o.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(o,e,t),this._ctx.restore()},t.prototype._renderUnderlineCursor=function(e,t,o){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(e,t),this._ctx.restore()},t.prototype._renderBlurCursor=function(e,t,o){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(e,t,o.getWidth(),1),this._ctx.restore()},r([a(5,p.IBufferService),a(6,p.IOptionsService),a(7,p.ICoreService),a(8,l.ICoreBrowserService),a(9,p.IDecorationService)],t)}(s.BaseRenderLayer);t.CursorRenderLayer=b;var d=function(){function e(e,t){this._renderCallback=t,this.isCursorVisible=!0,e&&this._restartInterval()}return Object.defineProperty(e.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.restartBlinkAnimation=function(){var e=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){e._renderCallback(),e._animationFrame=void 0})))},e.prototype._restartInterval=function(e){var t=this;void 0===e&&(e=u),this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout=window.setTimeout(function(){if(t._animationTimeRestarted){var e=u-(Date.now()-t._animationTimeRestarted);if(t._animationTimeRestarted=void 0,e>0)return void t._restartInterval(e)}t.isCursorVisible=!1,t._animationFrame=window.requestAnimationFrame(function(){t._renderCallback(),t._animationFrame=void 0}),t._blinkInterval=window.setInterval(function(){if(t._animationTimeRestarted){var e=u-(Date.now()-t._animationTimeRestarted);return t._animationTimeRestarted=void 0,void t._restartInterval(e)}t.isCursorVisible=!t.isCursorVisible,t._animationFrame=window.requestAnimationFrame(function(){t._renderCallback(),t._animationFrame=void 0})},u)},e)},e.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},e}()},8978:function(e,t,o){var n,i,r,a,s,c,p,l,u,b,d,M,h,f,z,O,A,m,v,g,y,q,_,W,R,w,L,C,S,E,T,x,N,B,k,P,D,I,X,j,F,H,U,V,G,K,$,Y,J,Q,Z,ee,te,oe,ne,ie,re,ae,se,ce,pe,le,ue,be,de,Me,he,fe,ze,Oe,Ae,me,ve,ge,ye,qe,_e,We,Re,we,Le,Ce,Se,Ee,Te,xe,Ne,Be,ke,Pe,De,Ie,Xe,je,Fe,He,Ue,Ve,Ge,Ke,$e,Ye,Je,Qe,Ze,et,tt,ot,nt,it,rt,at,st,ct,pt,lt,ut,bt,dt,Mt,ht,ft,zt,Ot,At,mt,vt,gt,yt=this&&this.__read||function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var n,i,r=o.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a},qt=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],n=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.tryDrawCustomChar=t.powerlineDefinitions=t.boxDrawingDefinitions=t.blockElementDefinitions=void 0;var _t=o(1752);t.blockElementDefinitions={"▀":[{x:0,y:0,w:8,h:4}],"▁":[{x:0,y:7,w:8,h:1}],"▂":[{x:0,y:6,w:8,h:2}],"▃":[{x:0,y:5,w:8,h:3}],"▄":[{x:0,y:4,w:8,h:4}],"▅":[{x:0,y:3,w:8,h:5}],"▆":[{x:0,y:2,w:8,h:6}],"▇":[{x:0,y:1,w:8,h:7}],"█":[{x:0,y:0,w:8,h:8}],"▉":[{x:0,y:0,w:7,h:8}],"▊":[{x:0,y:0,w:6,h:8}],"▋":[{x:0,y:0,w:5,h:8}],"▌":[{x:0,y:0,w:4,h:8}],"▍":[{x:0,y:0,w:3,h:8}],"▎":[{x:0,y:0,w:2,h:8}],"▏":[{x:0,y:0,w:1,h:8}],"▐":[{x:4,y:0,w:4,h:8}],"▔":[{x:0,y:0,w:9,h:1}],"▕":[{x:7,y:0,w:1,h:8}],"▖":[{x:0,y:4,w:4,h:4}],"▗":[{x:4,y:4,w:4,h:4}],"▘":[{x:0,y:0,w:4,h:4}],"▙":[{x:0,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"▚":[{x:0,y:0,w:4,h:4},{x:4,y:4,w:4,h:4}],"▛":[{x:0,y:0,w:4,h:8},{x:0,y:0,w:4,h:8}],"▜":[{x:0,y:0,w:8,h:4},{x:4,y:0,w:4,h:8}],"▝":[{x:4,y:0,w:4,h:4}],"▞":[{x:4,y:0,w:4,h:4},{x:0,y:4,w:4,h:4}],"▟":[{x:4,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"🭰":[{x:1,y:0,w:1,h:8}],"🭱":[{x:2,y:0,w:1,h:8}],"🭲":[{x:3,y:0,w:1,h:8}],"🭳":[{x:4,y:0,w:1,h:8}],"🭴":[{x:5,y:0,w:1,h:8}],"🭵":[{x:6,y:0,w:1,h:8}],"🭶":[{x:0,y:1,w:8,h:1}],"🭷":[{x:0,y:2,w:8,h:1}],"🭸":[{x:0,y:3,w:8,h:1}],"🭹":[{x:0,y:4,w:8,h:1}],"🭺":[{x:0,y:5,w:8,h:1}],"🭻":[{x:0,y:6,w:8,h:1}],"🭼":[{x:0,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"🭽":[{x:0,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"🭾":[{x:7,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"🭿":[{x:7,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"🮀":[{x:0,y:0,w:8,h:1},{x:0,y:7,w:8,h:1}],"🮁":[{x:0,y:0,w:8,h:1},{x:0,y:2,w:8,h:1},{x:0,y:4,w:8,h:1},{x:0,y:7,w:8,h:1}],"🮂":[{x:0,y:0,w:8,h:2}],"🮃":[{x:0,y:0,w:8,h:3}],"🮄":[{x:0,y:0,w:8,h:5}],"🮅":[{x:0,y:0,w:8,h:6}],"🮆":[{x:0,y:0,w:8,h:7}],"🮇":[{x:6,y:0,w:2,h:8}],"🮈":[{x:5,y:0,w:3,h:8}],"🮉":[{x:3,y:0,w:5,h:8}],"🮊":[{x:2,y:0,w:6,h:8}],"🮋":[{x:1,y:0,w:7,h:8}],"🮕":[{x:0,y:0,w:2,h:2},{x:4,y:0,w:2,h:2},{x:2,y:2,w:2,h:2},{x:6,y:2,w:2,h:2},{x:0,y:4,w:2,h:2},{x:4,y:4,w:2,h:2},{x:2,y:6,w:2,h:2},{x:6,y:6,w:2,h:2}],"🮖":[{x:2,y:0,w:2,h:2},{x:6,y:0,w:2,h:2},{x:0,y:2,w:2,h:2},{x:4,y:2,w:2,h:2},{x:2,y:4,w:2,h:2},{x:6,y:4,w:2,h:2},{x:0,y:6,w:2,h:2},{x:4,y:6,w:2,h:2}],"🮗":[{x:0,y:2,w:8,h:2},{x:0,y:6,w:8,h:2}]};var Wt={"░":[[1,0,0,0],[0,0,0,0],[0,0,1,0],[0,0,0,0]],"▒":[[1,0],[0,0],[0,1],[0,0]],"▓":[[0,1],[1,1],[1,0],[1,1]]};t.boxDrawingDefinitions={"─":(n={},n[1]="M0,.5 L1,.5",n),"━":(i={},i[3]="M0,.5 L1,.5",i),"│":(r={},r[1]="M.5,0 L.5,1",r),"┃":(a={},a[3]="M.5,0 L.5,1",a),"┌":(s={},s[1]="M0.5,1 L.5,.5 L1,.5",s),"┏":(c={},c[3]="M0.5,1 L.5,.5 L1,.5",c),"┐":(p={},p[1]="M0,.5 L.5,.5 L.5,1",p),"┓":(l={},l[3]="M0,.5 L.5,.5 L.5,1",l),"└":(u={},u[1]="M.5,0 L.5,.5 L1,.5",u),"┗":(b={},b[3]="M.5,0 L.5,.5 L1,.5",b),"┘":(d={},d[1]="M.5,0 L.5,.5 L0,.5",d),"┛":(M={},M[3]="M.5,0 L.5,.5 L0,.5",M),"├":(h={},h[1]="M.5,0 L.5,1 M.5,.5 L1,.5",h),"┣":(f={},f[3]="M.5,0 L.5,1 M.5,.5 L1,.5",f),"┤":(z={},z[1]="M.5,0 L.5,1 M.5,.5 L0,.5",z),"┫":(O={},O[3]="M.5,0 L.5,1 M.5,.5 L0,.5",O),"┬":(A={},A[1]="M0,.5 L1,.5 M.5,.5 L.5,1",A),"┳":(m={},m[3]="M0,.5 L1,.5 M.5,.5 L.5,1",m),"┴":(v={},v[1]="M0,.5 L1,.5 M.5,.5 L.5,0",v),"┻":(g={},g[3]="M0,.5 L1,.5 M.5,.5 L.5,0",g),"┼":(y={},y[1]="M0,.5 L1,.5 M.5,0 L.5,1",y),"╋":(q={},q[3]="M0,.5 L1,.5 M.5,0 L.5,1",q),"╴":(_={},_[1]="M.5,.5 L0,.5",_),"╸":(W={},W[3]="M.5,.5 L0,.5",W),"╵":(R={},R[1]="M.5,.5 L.5,0",R),"╹":(w={},w[3]="M.5,.5 L.5,0",w),"╶":(L={},L[1]="M.5,.5 L1,.5",L),"╺":(C={},C[3]="M.5,.5 L1,.5",C),"╷":(S={},S[1]="M.5,.5 L.5,1",S),"╻":(E={},E[3]="M.5,.5 L.5,1",E),"═":(T={},T[1]=function(e,t){return"M0,"+(.5-t)+" L1,"+(.5-t)+" M0,"+(.5+t)+" L1,"+(.5+t)},T),"║":(x={},x[1]=function(e,t){return"M"+(.5-e)+",0 L"+(.5-e)+",1 M"+(.5+e)+",0 L"+(.5+e)+",1"},x),"╒":(N={},N[1]=function(e,t){return"M.5,1 L.5,"+(.5-t)+" L1,"+(.5-t)+" M.5,"+(.5+t)+" L1,"+(.5+t)},N),"╓":(B={},B[1]=function(e,t){return"M"+(.5-e)+",1 L"+(.5-e)+",.5 L1,.5 M"+(.5+e)+",.5 L"+(.5+e)+",1"},B),"╔":(k={},k[1]=function(e,t){return"M1,"+(.5-t)+" L"+(.5-e)+","+(.5-t)+" L"+(.5-e)+",1 M1,"+(.5+t)+" L"+(.5+e)+","+(.5+t)+" L"+(.5+e)+",1"},k),"╕":(P={},P[1]=function(e,t){return"M0,"+(.5-t)+" L.5,"+(.5-t)+" L.5,1 M0,"+(.5+t)+" L.5,"+(.5+t)},P),"╖":(D={},D[1]=function(e,t){return"M"+(.5+e)+",1 L"+(.5+e)+",.5 L0,.5 M"+(.5-e)+",.5 L"+(.5-e)+",1"},D),"╗":(I={},I[1]=function(e,t){return"M0,"+(.5+t)+" L"+(.5-e)+","+(.5+t)+" L"+(.5-e)+",1 M0,"+(.5-t)+" L"+(.5+e)+","+(.5-t)+" L"+(.5+e)+",1"},I),"╘":(X={},X[1]=function(e,t){return"M.5,0 L.5,"+(.5+t)+" L1,"+(.5+t)+" M.5,"+(.5-t)+" L1,"+(.5-t)},X),"╙":(j={},j[1]=function(e,t){return"M1,.5 L"+(.5-e)+",.5 L"+(.5-e)+",0 M"+(.5+e)+",.5 L"+(.5+e)+",0"},j),"╚":(F={},F[1]=function(e,t){return"M1,"+(.5-t)+" L"+(.5+e)+","+(.5-t)+" L"+(.5+e)+",0 M1,"+(.5+t)+" L"+(.5-e)+","+(.5+t)+" L"+(.5-e)+",0"},F),"╛":(H={},H[1]=function(e,t){return"M0,"+(.5+t)+" L.5,"+(.5+t)+" L.5,0 M0,"+(.5-t)+" L.5,"+(.5-t)},H),"╜":(U={},U[1]=function(e,t){return"M0,.5 L"+(.5+e)+",.5 L"+(.5+e)+",0 M"+(.5-e)+",.5 L"+(.5-e)+",0"},U),"╝":(V={},V[1]=function(e,t){return"M0,"+(.5-t)+" L"+(.5-e)+","+(.5-t)+" L"+(.5-e)+",0 M0,"+(.5+t)+" L"+(.5+e)+","+(.5+t)+" L"+(.5+e)+",0"},V),"╞":(G={},G[1]=function(e,t){return"M.5,0 L.5,1 M.5,"+(.5-t)+" L1,"+(.5-t)+" M.5,"+(.5+t)+" L1,"+(.5+t)},G),"╟":(K={},K[1]=function(e,t){return"M"+(.5-e)+",0 L"+(.5-e)+",1 M"+(.5+e)+",0 L"+(.5+e)+",1 M"+(.5+e)+",.5 L1,.5"},K),"╠":($={},$[1]=function(e,t){return"M"+(.5-e)+",0 L"+(.5-e)+",1 M1,"+(.5+t)+" L"+(.5+e)+","+(.5+t)+" L"+(.5+e)+",1 M1,"+(.5-t)+" L"+(.5+e)+","+(.5-t)+" L"+(.5+e)+",0"},$),"╡":(Y={},Y[1]=function(e,t){return"M.5,0 L.5,1 M0,"+(.5-t)+" L.5,"+(.5-t)+" M0,"+(.5+t)+" L.5,"+(.5+t)},Y),"╢":(J={},J[1]=function(e,t){return"M0,.5 L"+(.5-e)+",.5 M"+(.5-e)+",0 L"+(.5-e)+",1 M"+(.5+e)+",0 L"+(.5+e)+",1"},J),"╣":(Q={},Q[1]=function(e,t){return"M"+(.5+e)+",0 L"+(.5+e)+",1 M0,"+(.5+t)+" L"+(.5-e)+","+(.5+t)+" L"+(.5-e)+",1 M0,"+(.5-t)+" L"+(.5-e)+","+(.5-t)+" L"+(.5-e)+",0"},Q),"╤":(Z={},Z[1]=function(e,t){return"M0,"+(.5-t)+" L1,"+(.5-t)+" M0,"+(.5+t)+" L1,"+(.5+t)+" M.5,"+(.5+t)+" L.5,1"},Z),"╥":(ee={},ee[1]=function(e,t){return"M0,.5 L1,.5 M"+(.5-e)+",.5 L"+(.5-e)+",1 M"+(.5+e)+",.5 L"+(.5+e)+",1"},ee),"╦":(te={},te[1]=function(e,t){return"M0,"+(.5-t)+" L1,"+(.5-t)+" M0,"+(.5+t)+" L"+(.5-e)+","+(.5+t)+" L"+(.5-e)+",1 M1,"+(.5+t)+" L"+(.5+e)+","+(.5+t)+" L"+(.5+e)+",1"},te),"╧":(oe={},oe[1]=function(e,t){return"M.5,0 L.5,"+(.5-t)+" M0,"+(.5-t)+" L1,"+(.5-t)+" M0,"+(.5+t)+" L1,"+(.5+t)},oe),"╨":(ne={},ne[1]=function(e,t){return"M0,.5 L1,.5 M"+(.5-e)+",.5 L"+(.5-e)+",0 M"+(.5+e)+",.5 L"+(.5+e)+",0"},ne),"╩":(ie={},ie[1]=function(e,t){return"M0,"+(.5+t)+" L1,"+(.5+t)+" M0,"+(.5-t)+" L"+(.5-e)+","+(.5-t)+" L"+(.5-e)+",0 M1,"+(.5-t)+" L"+(.5+e)+","+(.5-t)+" L"+(.5+e)+",0"},ie),"╪":(re={},re[1]=function(e,t){return"M.5,0 L.5,1 M0,"+(.5-t)+" L1,"+(.5-t)+" M0,"+(.5+t)+" L1,"+(.5+t)},re),"╫":(ae={},ae[1]=function(e,t){return"M0,.5 L1,.5 M"+(.5-e)+",0 L"+(.5-e)+",1 M"+(.5+e)+",0 L"+(.5+e)+",1"},ae),"╬":(se={},se[1]=function(e,t){return"M0,"+(.5+t)+" L"+(.5-e)+","+(.5+t)+" L"+(.5-e)+",1 M1,"+(.5+t)+" L"+(.5+e)+","+(.5+t)+" L"+(.5+e)+",1 M0,"+(.5-t)+" L"+(.5-e)+","+(.5-t)+" L"+(.5-e)+",0 M1,"+(.5-t)+" L"+(.5+e)+","+(.5-t)+" L"+(.5+e)+",0"},se),"╱":(ce={},ce[1]="M1,0 L0,1",ce),"╲":(pe={},pe[1]="M0,0 L1,1",pe),"╳":(le={},le[1]="M1,0 L0,1 M0,0 L1,1",le),"╼":(ue={},ue[1]="M.5,.5 L0,.5",ue[3]="M.5,.5 L1,.5",ue),"╽":(be={},be[1]="M.5,.5 L.5,0",be[3]="M.5,.5 L.5,1",be),"╾":(de={},de[1]="M.5,.5 L1,.5",de[3]="M.5,.5 L0,.5",de),"╿":(Me={},Me[1]="M.5,.5 L.5,1",Me[3]="M.5,.5 L.5,0",Me),"┍":(he={},he[1]="M.5,.5 L.5,1",he[3]="M.5,.5 L1,.5",he),"┎":(fe={},fe[1]="M.5,.5 L1,.5",fe[3]="M.5,.5 L.5,1",fe),"┑":(ze={},ze[1]="M.5,.5 L.5,1",ze[3]="M.5,.5 L0,.5",ze),"┒":(Oe={},Oe[1]="M.5,.5 L0,.5",Oe[3]="M.5,.5 L.5,1",Oe),"┕":(Ae={},Ae[1]="M.5,.5 L.5,0",Ae[3]="M.5,.5 L1,.5",Ae),"┖":(me={},me[1]="M.5,.5 L1,.5",me[3]="M.5,.5 L.5,0",me),"┙":(ve={},ve[1]="M.5,.5 L.5,0",ve[3]="M.5,.5 L0,.5",ve),"┚":(ge={},ge[1]="M.5,.5 L0,.5",ge[3]="M.5,.5 L.5,0",ge),"┝":(ye={},ye[1]="M.5,0 L.5,1",ye[3]="M.5,.5 L1,.5",ye),"┞":(qe={},qe[1]="M0.5,1 L.5,.5 L1,.5",qe[3]="M.5,.5 L.5,0",qe),"┟":(_e={},_e[1]="M.5,0 L.5,.5 L1,.5",_e[3]="M.5,.5 L.5,1",_e),"┠":(We={},We[1]="M.5,.5 L1,.5",We[3]="M.5,0 L.5,1",We),"┡":(Re={},Re[1]="M.5,.5 L.5,1",Re[3]="M.5,0 L.5,.5 L1,.5",Re),"┢":(we={},we[1]="M.5,.5 L.5,0",we[3]="M0.5,1 L.5,.5 L1,.5",we),"┥":(Le={},Le[1]="M.5,0 L.5,1",Le[3]="M.5,.5 L0,.5",Le),"┦":(Ce={},Ce[1]="M0,.5 L.5,.5 L.5,1",Ce[3]="M.5,.5 L.5,0",Ce),"┧":(Se={},Se[1]="M.5,0 L.5,.5 L0,.5",Se[3]="M.5,.5 L.5,1",Se),"┨":(Ee={},Ee[1]="M.5,.5 L0,.5",Ee[3]="M.5,0 L.5,1",Ee),"┩":(Te={},Te[1]="M.5,.5 L.5,1",Te[3]="M.5,0 L.5,.5 L0,.5",Te),"┪":(xe={},xe[1]="M.5,.5 L.5,0",xe[3]="M0,.5 L.5,.5 L.5,1",xe),"┭":(Ne={},Ne[1]="M0.5,1 L.5,.5 L1,.5",Ne[3]="M.5,.5 L0,.5",Ne),"┮":(Be={},Be[1]="M0,.5 L.5,.5 L.5,1",Be[3]="M.5,.5 L1,.5",Be),"┯":(ke={},ke[1]="M.5,.5 L.5,1",ke[3]="M0,.5 L1,.5",ke),"┰":(Pe={},Pe[1]="M0,.5 L1,.5",Pe[3]="M.5,.5 L.5,1",Pe),"┱":(De={},De[1]="M.5,.5 L1,.5",De[3]="M0,.5 L.5,.5 L.5,1",De),"┲":(Ie={},Ie[1]="M.5,.5 L0,.5",Ie[3]="M0.5,1 L.5,.5 L1,.5",Ie),"┵":(Xe={},Xe[1]="M.5,0 L.5,.5 L1,.5",Xe[3]="M.5,.5 L0,.5",Xe),"┶":(je={},je[1]="M.5,0 L.5,.5 L0,.5",je[3]="M.5,.5 L1,.5",je),"┷":(Fe={},Fe[1]="M.5,.5 L.5,0",Fe[3]="M0,.5 L1,.5",Fe),"┸":(He={},He[1]="M0,.5 L1,.5",He[3]="M.5,.5 L.5,0",He),"┹":(Ue={},Ue[1]="M.5,.5 L1,.5",Ue[3]="M.5,0 L.5,.5 L0,.5",Ue),"┺":(Ve={},Ve[1]="M.5,.5 L0,.5",Ve[3]="M.5,0 L.5,.5 L1,.5",Ve),"┽":(Ge={},Ge[1]="M.5,0 L.5,1 M.5,.5 L1,.5",Ge[3]="M.5,.5 L0,.5",Ge),"┾":(Ke={},Ke[1]="M.5,0 L.5,1 M.5,.5 L0,.5",Ke[3]="M.5,.5 L1,.5",Ke),"┿":($e={},$e[1]="M.5,0 L.5,1",$e[3]="M0,.5 L1,.5",$e),"╀":(Ye={},Ye[1]="M0,.5 L1,.5 M.5,.5 L.5,1",Ye[3]="M.5,.5 L.5,0",Ye),"╁":(Je={},Je[1]="M.5,.5 L.5,0 M0,.5 L1,.5",Je[3]="M.5,.5 L.5,1",Je),"╂":(Qe={},Qe[1]="M0,.5 L1,.5",Qe[3]="M.5,0 L.5,1",Qe),"╃":(Ze={},Ze[1]="M0.5,1 L.5,.5 L1,.5",Ze[3]="M.5,0 L.5,.5 L0,.5",Ze),"╄":(et={},et[1]="M0,.5 L.5,.5 L.5,1",et[3]="M.5,0 L.5,.5 L1,.5",et),"╅":(tt={},tt[1]="M.5,0 L.5,.5 L1,.5",tt[3]="M0,.5 L.5,.5 L.5,1",tt),"╆":(ot={},ot[1]="M.5,0 L.5,.5 L0,.5",ot[3]="M0.5,1 L.5,.5 L1,.5",ot),"╇":(nt={},nt[1]="M.5,.5 L.5,1",nt[3]="M.5,.5 L.5,0 M0,.5 L1,.5",nt),"╈":(it={},it[1]="M.5,.5 L.5,0",it[3]="M0,.5 L1,.5 M.5,.5 L.5,1",it),"╉":(rt={},rt[1]="M.5,.5 L1,.5",rt[3]="M.5,0 L.5,1 M.5,.5 L0,.5",rt),"╊":(at={},at[1]="M.5,.5 L0,.5",at[3]="M.5,0 L.5,1 M.5,.5 L1,.5",at),"╌":(st={},st[1]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",st),"╍":(ct={},ct[3]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",ct),"┄":(pt={},pt[1]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",pt),"┅":(lt={},lt[3]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",lt),"┈":(ut={},ut[1]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",ut),"┉":(bt={},bt[3]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",bt),"╎":(dt={},dt[1]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",dt),"╏":(Mt={},Mt[3]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",Mt),"┆":(ht={},ht[1]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",ht),"┇":(ft={},ft[3]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",ft),"┊":(zt={},zt[1]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",zt),"┋":(Ot={},Ot[3]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",Ot),"╭":(At={},At[1]="C.5,1,.5,.5,1,.5",At),"╮":(mt={},mt[1]="C.5,1,.5,.5,0,.5",mt),"╯":(vt={},vt[1]="C.5,0,.5,.5,0,.5",vt),"╰":(gt={},gt[1]="C.5,0,.5,.5,1,.5",gt)},t.powerlineDefinitions={"":{d:"M0,0 L1,.5 L0,1",type:0},"":{d:"M0,0 L1,.5 L0,1",type:1,horizontalPadding:.5},"":{d:"M1,0 L0,.5 L1,1",type:0},"":{d:"M1,0 L0,.5 L1,1",type:1,horizontalPadding:.5}},t.tryDrawCustomChar=function(e,o,n,i,r,a){var s=t.blockElementDefinitions[o];if(s)return function(e,t,o,n,i,r){for(var a=0;a7&&parseInt(c.slice(7,9),16)||1;else{if(!c.startsWith("rgba"))throw new Error('Unexpected fillStyle color format "'+c+'" when drawing pattern glyph');h=(a=yt(c.substring(5,c.length-1).split(",").map(function(e){return parseFloat(e)}),4))[0],f=a[1],z=a[2],O=a[3]}for(var A=0;A{Object.defineProperty(t,"__esModule",{value:!0}),t.GridCache=void 0;var o=function(){function e(){this.cache=[]}return e.prototype.resize=function(e,t){for(var o=0;o=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LinkRenderLayer=void 0;var s=o(1546),c=o(8803),p=o(2040),l=o(2585),u=function(e){function t(t,o,n,i,r,a,s,c,p){var l=e.call(this,t,"link",o,!0,n,i,s,c,p)||this;return r.onShowLinkUnderline(function(e){return l._onShowLinkUnderline(e)}),r.onHideLinkUnderline(function(e){return l._onHideLinkUnderline(e)}),a.onShowLinkUnderline(function(e){return l._onShowLinkUnderline(e)}),a.onHideLinkUnderline(function(e){return l._onHideLinkUnderline(e)}),l}return i(t,e),t.prototype.resize=function(t){e.prototype.resize.call(this,t),this._state=void 0},t.prototype.reset=function(){this._clearCurrentLink()},t.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var e=this._state.y2-this._state.y1-1;e>0&&this._clearCells(0,this._state.y1+1,this._state.cols,e),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},t.prototype._onShowLinkUnderline=function(e){if(e.fg===c.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:e.fg&&(0,p.is256Color)(e.fg)?this._ctx.fillStyle=this._colors.ansi[e.fg].css:this._ctx.fillStyle=this._colors.foreground.css,e.y1===e.y2)this._fillBottomLineAtCells(e.x1,e.y1,e.x2-e.x1);else{this._fillBottomLineAtCells(e.x1,e.y1,e.cols-e.x1);for(var t=e.y1+1;t=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],n=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.Renderer=void 0;var c=o(9596),p=o(4149),l=o(2512),u=o(5098),b=o(844),d=o(4725),M=o(2585),h=o(1420),f=o(8460),z=1,O=function(e){function t(t,o,n,i,r,a,s,b){var d=e.call(this)||this;d._colors=t,d._screenElement=o,d._bufferService=a,d._charSizeService=s,d._optionsService=b,d._id=z++,d._onRequestRedraw=new f.EventEmitter;var M=d._optionsService.rawOptions.allowTransparency;return d._renderLayers=[r.createInstance(c.TextRenderLayer,d._screenElement,0,d._colors,M,d._id),r.createInstance(p.SelectionRenderLayer,d._screenElement,1,d._colors,d._id),r.createInstance(u.LinkRenderLayer,d._screenElement,2,d._colors,d._id,n,i),r.createInstance(l.CursorRenderLayer,d._screenElement,3,d._colors,d._id,d._onRequestRedraw)],d.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},d._devicePixelRatio=window.devicePixelRatio,d._updateDimensions(),d.onOptionsChanged(),d}return i(t,e),Object.defineProperty(t.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){var t,o;try{for(var n=s(this._renderLayers),i=n.next();!i.done;i=n.next())i.value.dispose()}catch(e){t={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(t)throw t.error}}e.prototype.dispose.call(this),(0,h.removeTerminalFromCache)(this._id)},t.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},t.prototype.setColors=function(e){var t,o;this._colors=e;try{for(var n=s(this._renderLayers),i=n.next();!i.done;i=n.next()){var r=i.value;r.setColors(this._colors),r.reset()}}catch(e){t={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(t)throw t.error}}},t.prototype.onResize=function(e,t){var o,n;this._updateDimensions();try{for(var i=s(this._renderLayers),r=i.next();!r.done;r=i.next())r.value.resize(this.dimensions)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},t.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},t.prototype.onBlur=function(){this._runOperation(function(e){return e.onBlur()})},t.prototype.onFocus=function(){this._runOperation(function(e){return e.onFocus()})},t.prototype.onSelectionChanged=function(e,t,o){void 0===o&&(o=!1),this._runOperation(function(n){return n.onSelectionChanged(e,t,o)}),this._colors.selectionForeground&&this._onRequestRedraw.fire({start:0,end:this._bufferService.rows-1})},t.prototype.onCursorMove=function(){this._runOperation(function(e){return e.onCursorMove()})},t.prototype.onOptionsChanged=function(){this._runOperation(function(e){return e.onOptionsChanged()})},t.prototype.clear=function(){this._runOperation(function(e){return e.reset()})},t.prototype._runOperation=function(e){var t,o;try{for(var n=s(this._renderLayers),i=n.next();!i.done;i=n.next())e(i.value)}catch(e){t={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(t)throw t.error}}},t.prototype.renderRows=function(e,t){var o,n;try{for(var i=s(this._renderLayers),r=i.next();!r.done;r=i.next())r.value.onGridChanged(e,t)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}},t.prototype.clearTextureAtlas=function(){var e,t;try{for(var o=s(this._renderLayers),n=o.next();!n.done;n=o.next())n.value.clearTextureAtlas()}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}},t.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.rawOptions.lineHeight),this.dimensions.scaledCharTop=1===this._optionsService.rawOptions.lineHeight?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.rawOptions.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},r([a(4,M.IInstantiationService),a(5,M.IBufferService),a(6,d.ICharSizeService),a(7,M.IOptionsService)],t)}(b.Disposable);t.Renderer=O},1752:(e,t)=>{function o(e){return 57508<=e&&e<=57558}Object.defineProperty(t,"__esModule",{value:!0}),t.excludeFromContrastRatioDemands=t.isPowerlineGlyph=t.throwIfFalsy=void 0,t.throwIfFalsy=function(e){if(!e)throw new Error("value must not be falsy");return e},t.isPowerlineGlyph=o,t.excludeFromContrastRatioDemands=function(e){return o(e)||function(e){return 9472<=e&&e<=9631}(e)}},4149:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionRenderLayer=void 0;var s=o(1546),c=o(2585),p=function(e){function t(t,o,n,i,r,a,s){var c=e.call(this,t,"selection",o,!0,n,i,r,a,s)||this;return c._clearState(),c}return i(t,e),t.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},t.prototype.resize=function(t){e.prototype.resize.call(this,t),this._clearState()},t.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},t.prototype.onSelectionChanged=function(t,o,n){if(e.prototype.onSelectionChanged.call(this,t,o,n),this._didStateChange(t,o,n,this._bufferService.buffer.ydisp))if(this._clearAll(),t&&o){var i=t[1]-this._bufferService.buffer.ydisp,r=o[1]-this._bufferService.buffer.ydisp,a=Math.max(i,0),s=Math.min(r,this._bufferService.rows-1);if(a>=this._bufferService.rows||s<0)this._state.ydisp=this._bufferService.buffer.ydisp;else{if(this._ctx.fillStyle=this._colors.selectionTransparent.css,n){var c=t[0],p=o[0]-c,l=s-a+1;this._fillCells(c,a,p,l)}else{c=i===a?t[0]:0;var u=a===r?o[0]:this._bufferService.cols;this._fillCells(c,a,u-c,1);var b=Math.max(s-a-1,0);if(this._fillCells(0,a+1,this._bufferService.cols,b),a!==s){var d=r===s?o[0]:this._bufferService.cols;this._fillCells(0,s,d,1)}}this._state.start=[t[0],t[1]],this._state.end=[o[0],o[1]],this._state.columnSelectMode=n,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},t.prototype._didStateChange=function(e,t,o,n){return!this._areCoordinatesEqual(e,this._state.start)||!this._areCoordinatesEqual(t,this._state.end)||o!==this._state.columnSelectMode||n!==this._state.ydisp},t.prototype._areCoordinatesEqual=function(e,t){return!(!e||!t)&&e[0]===t[0]&&e[1]===t[1]},r([a(4,c.IBufferService),a(5,c.IOptionsService),a(6,c.IDecorationService)],t)}(s.BaseRenderLayer);t.SelectionRenderLayer=p},9596:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],n=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.TextRenderLayer=void 0;var c=o(3700),p=o(1546),l=o(3734),u=o(643),b=o(511),d=o(2585),M=o(4725),h=o(4269),f=function(e){function t(t,o,n,i,r,a,s,p,l){var u=e.call(this,t,"text",o,i,n,r,a,s,l)||this;return u._characterJoinerService=p,u._characterWidth=0,u._characterFont="",u._characterOverlapCache={},u._workCell=new b.CellData,u._state=new c.GridCache,u}return i(t,e),t.prototype.resize=function(t){e.prototype.resize.call(this,t);var o=this._getFont(!1,!1);this._characterWidth===t.scaledCharWidth&&this._characterFont===o||(this._characterWidth=t.scaledCharWidth,this._characterFont=o,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},t.prototype.reset=function(){this._state.clear(),this._clearAll()},t.prototype._forEachCell=function(e,t,o){for(var n=e;n<=t;n++)for(var i=n+this._bufferService.buffer.ydisp,r=this._bufferService.buffer.lines.get(i),a=this._characterJoinerService.getJoinedCharacters(i),s=0;s0&&s===a[0][0]){p=!0;var b=a.shift();c=new h.JoinedCellData(this._workCell,r.translateToString(!0,b[0],b[1]),b[1]-b[0]),l=b[1]-1}!p&&this._isOverlapping(c)&&lthis._characterWidth;return this._ctx.restore(),this._characterOverlapCache[t]=o,o},r([a(5,d.IBufferService),a(6,d.IOptionsService),a(7,M.ICharacterJoinerService),a(8,d.IDecorationService)],t)}(p.BaseRenderLayer);t.TextRenderLayer=f},9616:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseCharAtlas=void 0;var o=function(){function e(){this._didWarmUp=!1}return e.prototype.dispose=function(){},e.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},e.prototype._doWarmUp=function(){},e.prototype.clear=function(){},e.prototype.beginFrame=function(){},e}();t.BaseCharAtlas=o},1420:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.removeTerminalFromCache=t.acquireCharAtlas=void 0;var n=o(2040),i=o(1906),r=[];t.acquireCharAtlas=function(e,t,o,a,s){for(var c=(0,n.generateConfig)(a,s,e,o),p=0;p=0){if((0,n.configEquals)(u.config,c))return u.atlas;1===u.ownedBy.length?(u.atlas.dispose(),r.splice(p,1)):u.ownedBy.splice(l,1);break}}for(p=0;p{Object.defineProperty(t,"__esModule",{value:!0}),t.is256Color=t.configEquals=t.generateConfig=void 0;var n=o(643);t.generateConfig=function(e,t,o,n){var i={foreground:n.foreground,background:n.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:n.ansi.slice()};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:e,scaledCharHeight:t,fontFamily:o.fontFamily,fontSize:o.fontSize,fontWeight:o.fontWeight,fontWeightBold:o.fontWeightBold,allowTransparency:o.allowTransparency,colors:i}},t.configEquals=function(e,t){for(var o=0;o{Object.defineProperty(t,"__esModule",{value:!0}),t.CHAR_ATLAS_CELL_SPACING=t.TEXT_BASELINE=t.DIM_OPACITY=t.INVERTED_DEFAULT_COLOR=void 0;var n=o(6114);t.INVERTED_DEFAULT_COLOR=257,t.DIM_OPACITY=.5,t.TEXT_BASELINE=n.isFirefox||n.isLegacyEdge?"bottom":"ideographic",t.CHAR_ATLAS_CELL_SPACING=1},1906:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0}),t.NoneCharAtlas=t.DynamicCharAtlas=t.getGlyphCacheKey=void 0;var r=o(8803),a=o(9616),s=o(5680),c=o(7001),p=o(6114),l=o(1752),u=o(8055),b=1024,d=1024,M={css:"rgba(0, 0, 0, 0)",rgba:0};function h(e){return e.code<<21|e.bg<<12|e.fg<<3|(e.bold?0:4)+(e.dim?0:2)+(e.italic?0:1)}t.getGlyphCacheKey=h;var f=function(e){function t(t,o){var n=e.call(this)||this;n._config=o,n._drawToCacheCount=0,n._glyphsWaitingOnBitmap=[],n._bitmapCommitTimeout=null,n._bitmap=null,n._cacheCanvas=t.createElement("canvas"),n._cacheCanvas.width=b,n._cacheCanvas.height=d,n._cacheCtx=(0,l.throwIfFalsy)(n._cacheCanvas.getContext("2d",{alpha:!0}));var i=t.createElement("canvas");i.width=n._config.scaledCharWidth,i.height=n._config.scaledCharHeight,n._tmpCtx=(0,l.throwIfFalsy)(i.getContext("2d",{alpha:n._config.allowTransparency})),n._width=Math.floor(b/n._config.scaledCharWidth),n._height=Math.floor(d/n._config.scaledCharHeight);var r=n._width*n._height;return n._cacheMap=new c.LRUMap(r),n._cacheMap.prealloc(r),n}return i(t,e),t.prototype.dispose=function(){null!==this._bitmapCommitTimeout&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},t.prototype.beginFrame=function(){this._drawToCacheCount=0},t.prototype.clear=function(){if(this._cacheMap.size>0){var e=this._width*this._height;this._cacheMap=new c.LRUMap(e),this._cacheMap.prealloc(e)}this._cacheCtx.clearRect(0,0,b,d),this._tmpCtx.clearRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight)},t.prototype.draw=function(e,t,o,n){if(32===t.code)return!0;if(!this._canCache(t))return!1;var i=h(t),r=this._cacheMap.get(i);if(null!=r)return this._drawFromCache(e,r,o,n),!0;if(this._drawToCacheCount<100){var a;a=this._cacheMap.size>>24,i=t.rgba>>>16&255,r=t.rgba>>>8&255,a=0;a{Object.defineProperty(t,"__esModule",{value:!0}),t.LRUMap=void 0;var o=function(){function e(e){this.capacity=e,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return e.prototype._unlinkNode=function(e){var t=e.prev,o=e.next;e===this._head&&(this._head=o),e===this._tail&&(this._tail=t),null!==t&&(t.next=o),null!==o&&(o.prev=t)},e.prototype._appendNode=function(e){var t=this._tail;null!==t&&(t.next=e),e.prev=t,e.next=null,this._tail=e,null===this._head&&(this._head=e)},e.prototype.prealloc=function(e){for(var t=this._nodePool,o=0;o=this.capacity)o=this._head,this._unlinkNode(o),delete this._map[o.key],o.key=e,o.value=t,this._map[e]=o;else{var n=this._nodePool;n.length>0?((o=n.pop()).key=e,o.value=t):o={prev:null,next:null,key:e,value:t},this._map[e]=o,this.size++}this._appendNode(o)},e}();t.LRUMap=o},1296:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],n=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.DomRenderer=void 0;var c=o(3787),p=o(8803),l=o(844),u=o(4725),b=o(2585),d=o(8460),M=o(8055),h=o(9631),f="xterm-dom-renderer-owner-",z="xterm-fg-",O="xterm-bg-",A="xterm-focus",m=1,v=function(e){function t(t,o,n,i,r,a,s,p,l,u){var b=e.call(this)||this;return b._colors=t,b._element=o,b._screenElement=n,b._viewportElement=i,b._linkifier=r,b._linkifier2=a,b._charSizeService=p,b._optionsService=l,b._bufferService=u,b._terminalClass=m++,b._rowElements=[],b._rowContainer=document.createElement("div"),b._rowContainer.classList.add("xterm-rows"),b._rowContainer.style.lineHeight="normal",b._rowContainer.setAttribute("aria-hidden","true"),b._refreshRowElements(b._bufferService.cols,b._bufferService.rows),b._selectionContainer=document.createElement("div"),b._selectionContainer.classList.add("xterm-selection"),b._selectionContainer.setAttribute("aria-hidden","true"),b.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},b._updateDimensions(),b._injectCss(),b._rowFactory=s.createInstance(c.DomRendererRowFactory,document,b._colors),b._element.classList.add(f+b._terminalClass),b._screenElement.appendChild(b._rowContainer),b._screenElement.appendChild(b._selectionContainer),b.register(b._linkifier.onShowLinkUnderline(function(e){return b._onLinkHover(e)})),b.register(b._linkifier.onHideLinkUnderline(function(e){return b._onLinkLeave(e)})),b.register(b._linkifier2.onShowLinkUnderline(function(e){return b._onLinkHover(e)})),b.register(b._linkifier2.onHideLinkUnderline(function(e){return b._onLinkLeave(e)})),b}return i(t,e),Object.defineProperty(t.prototype,"onRequestRedraw",{get:function(){return(new d.EventEmitter).event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this._element.classList.remove(f+this._terminalClass),(0,h.removeElementFromParent)(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),e.prototype.dispose.call(this)},t.prototype._updateDimensions=function(){var e,t;this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.rawOptions.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;try{for(var o=s(this._rowElements),n=o.next();!n.done;n=o.next()){var i=n.value;i.style.width=this.dimensions.canvasWidth+"px",i.style.height=this.dimensions.actualCellHeight+"px",i.style.lineHeight=this.dimensions.actualCellHeight+"px",i.style.overflow="hidden"}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var r=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.textContent=r,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},t.prototype.setColors=function(e){this._colors=e,this._injectCss()},t.prototype._injectCss=function(){var e=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var t=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.rawOptions.fontFamily+"; font-size: "+this._optionsService.rawOptions.fontSize+"px;}";t+=this._terminalSelector+" span:not(."+c.BOLD_CLASS+") { font-weight: "+this._optionsService.rawOptions.fontWeight+";}"+this._terminalSelector+" span."+c.BOLD_CLASS+" { font-weight: "+this._optionsService.rawOptions.fontWeightBold+";}"+this._terminalSelector+" span."+c.ITALIC_CLASS+" { font-style: italic;}",t+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",t+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",t+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+c.CURSOR_CLASS+"."+c.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+c.CURSOR_CLASS+"."+c.CURSOR_BLINK_CLASS+":not(."+c.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+c.CURSOR_CLASS+"."+c.CURSOR_BLINK_CLASS+"."+c.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+c.CURSOR_CLASS+"."+c.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+c.CURSOR_CLASS+"."+c.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.rawOptions.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+c.CURSOR_CLASS+"."+c.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",t+=this._terminalSelector+" .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" .xterm-selection div { position: absolute; background-color: "+this._colors.selectionOpaque.css+";}",this._colors.ansi.forEach(function(o,n){t+=e._terminalSelector+" ."+z+n+" { color: "+o.css+"; }"+e._terminalSelector+" ."+O+n+" { background-color: "+o.css+"; }"}),t+=this._terminalSelector+" ."+z+p.INVERTED_DEFAULT_COLOR+" { color: "+M.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" ."+O+p.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.textContent=t},t.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},t.prototype._refreshRowElements=function(e,t){for(var o=this._rowElements.length;o<=t;o++){var n=document.createElement("div");this._rowContainer.appendChild(n),this._rowElements.push(n)}for(;this._rowElements.length>t;)this._rowContainer.removeChild(this._rowElements.pop())},t.prototype.onResize=function(e,t){this._refreshRowElements(e,t),this._updateDimensions()},t.prototype.onCharSizeChanged=function(){this._updateDimensions()},t.prototype.onBlur=function(){this._rowContainer.classList.remove(A)},t.prototype.onFocus=function(){this._rowContainer.classList.add(A)},t.prototype.onSelectionChanged=function(e,t,o){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(this._rowFactory.onSelectionChanged(e,t,o),this.renderRows(0,this._bufferService.rows-1),e&&t){var n=e[1]-this._bufferService.buffer.ydisp,i=t[1]-this._bufferService.buffer.ydisp,r=Math.max(n,0),a=Math.min(i,this._bufferService.rows-1);if(!(r>=this._bufferService.rows||a<0)){var s=document.createDocumentFragment();if(o){var c=e[0]>t[0];s.appendChild(this._createSelectionElement(r,c?t[0]:e[0],c?e[0]:t[0],a-r+1))}else{var p=n===r?e[0]:0,l=r===i?t[0]:this._bufferService.cols;s.appendChild(this._createSelectionElement(r,p,l));var u=a-r-1;if(s.appendChild(this._createSelectionElement(r+1,0,this._bufferService.cols,u)),r!==a){var b=i===a?t[0]:this._bufferService.cols;s.appendChild(this._createSelectionElement(a,0,b))}}this._selectionContainer.appendChild(s)}}},t.prototype._createSelectionElement=function(e,t,o,n){void 0===n&&(n=1);var i=document.createElement("div");return i.style.height=n*this.dimensions.actualCellHeight+"px",i.style.top=e*this.dimensions.actualCellHeight+"px",i.style.left=t*this.dimensions.actualCellWidth+"px",i.style.width=this.dimensions.actualCellWidth*(o-t)+"px",i},t.prototype.onCursorMove=function(){},t.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},t.prototype.clear=function(){var e,t;try{for(var o=s(this._rowElements),n=o.next();!n.done;n=o.next())n.value.innerText=""}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}},t.prototype.renderRows=function(e,t){for(var o=this._bufferService.buffer.ybase+this._bufferService.buffer.y,n=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),i=this._optionsService.rawOptions.cursorBlink,r=e;r<=t;r++){var a=this._rowElements[r];a.innerText="";var s=r+this._bufferService.buffer.ydisp,c=this._bufferService.buffer.lines.get(s),p=this._optionsService.rawOptions.cursorStyle;a.appendChild(this._rowFactory.createRow(c,s,s===o,p,n,i,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(t.prototype,"_terminalSelector",{get:function(){return"."+f+this._terminalClass},enumerable:!1,configurable:!0}),t.prototype._onLinkHover=function(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!0)},t.prototype._onLinkLeave=function(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!1)},t.prototype._setCellUnderline=function(e,t,o,n,i,r){for(;e!==t||o!==n;){var a=this._rowElements[o];if(!a)return;var s=a.children[e];s&&(s.style.textDecoration=r?"underline":"none"),++e>=i&&(e=0,o++)}},r([a(6,b.IInstantiationService),a(7,u.ICharSizeService),a(8,b.IOptionsService),a(9,b.IBufferService)],t)}(l.Disposable);t.DomRenderer=v},3787:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}},r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],n=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.DomRendererRowFactory=t.CURSOR_STYLE_UNDERLINE_CLASS=t.CURSOR_STYLE_BAR_CLASS=t.CURSOR_STYLE_BLOCK_CLASS=t.CURSOR_BLINK_CLASS=t.CURSOR_CLASS=t.STRIKETHROUGH_CLASS=t.UNDERLINE_CLASS=t.ITALIC_CLASS=t.DIM_CLASS=t.BOLD_CLASS=void 0;var a=o(8803),s=o(643),c=o(511),p=o(2585),l=o(8055),u=o(4725),b=o(4269),d=o(1752);t.BOLD_CLASS="xterm-bold",t.DIM_CLASS="xterm-dim",t.ITALIC_CLASS="xterm-italic",t.UNDERLINE_CLASS="xterm-underline",t.STRIKETHROUGH_CLASS="xterm-strikethrough",t.CURSOR_CLASS="xterm-cursor",t.CURSOR_BLINK_CLASS="xterm-cursor-blink",t.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",t.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",t.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var M=function(){function e(e,t,o,n,i,r){this._document=e,this._colors=t,this._characterJoinerService=o,this._optionsService=n,this._coreService=i,this._decorationService=r,this._workCell=new c.CellData,this._columnSelectMode=!1}return e.prototype.setColors=function(e){this._colors=e},e.prototype.onSelectionChanged=function(e,t,o){this._selectionStart=e,this._selectionEnd=t,this._columnSelectMode=o},e.prototype.createRow=function(e,o,n,i,c,p,u,d){for(var M,f,z=this._document.createDocumentFragment(),O=this._characterJoinerService.getJoinedCharacters(o),A=0,m=Math.min(e.length,d)-1;m>=0;m--)if(e.loadCell(m,this._workCell).getCode()!==s.NULL_CELL_CODE||n&&m===c){A=m+1;break}for(m=0;m0&&m===O[0][0]){g=!0;var _=O.shift();q=new b.JoinedCellData(this._workCell,e.translateToString(!0,_[0],_[1]),_[1]-_[0]),y=_[1]-1,v=q.getWidth()}var W=this._document.createElement("span");if(v>1&&(W.style.width=u*v+"px"),g&&(W.style.display="inline",c>=m&&c<=y&&(c=m)),!this._coreService.isCursorHidden&&n&&m===c)switch(W.classList.add(t.CURSOR_CLASS),p&&W.classList.add(t.CURSOR_BLINK_CLASS),i){case"bar":W.classList.add(t.CURSOR_STYLE_BAR_CLASS);break;case"underline":W.classList.add(t.CURSOR_STYLE_UNDERLINE_CLASS);break;default:W.classList.add(t.CURSOR_STYLE_BLOCK_CLASS)}q.isBold()&&W.classList.add(t.BOLD_CLASS),q.isItalic()&&W.classList.add(t.ITALIC_CLASS),q.isDim()&&W.classList.add(t.DIM_CLASS),q.isUnderline()&&W.classList.add(t.UNDERLINE_CLASS),q.isInvisible()?W.textContent=s.WHITESPACE_CELL_CHAR:W.textContent=q.getChars()||s.WHITESPACE_CELL_CHAR,q.isStrikethrough()&&W.classList.add(t.STRIKETHROUGH_CLASS);var R=q.getFgColor(),w=q.getFgColorMode(),L=q.getBgColor(),C=q.getBgColorMode(),S=!!q.isInverse();if(S){var E=R;R=L,L=E;var T=w;w=C,C=T}var x=void 0,N=void 0,B=!1;try{for(var k=(M=void 0,r(this._decorationService.getDecorationsAtCell(m,o))),P=k.next();!P.done;P=k.next()){var D=P.value;"top"!==D.options.layer&&B||(D.backgroundColorRGB&&(C=50331648,L=D.backgroundColorRGB.rgba>>8&16777215,x=D.backgroundColorRGB),D.foregroundColorRGB&&(w=50331648,R=D.foregroundColorRGB.rgba>>8&16777215,N=D.foregroundColorRGB),B="top"===D.options.layer)}}catch(e){M={error:e}}finally{try{P&&!P.done&&(f=k.return)&&f.call(k)}finally{if(M)throw M.error}}var I=this._isCellInSelection(m,o);B||this._colors.selectionForeground&&I&&(w=50331648,R=this._colors.selectionForeground.rgba>>8&16777215,N=this._colors.selectionForeground),I&&(x=this._colors.selectionOpaque,B=!0),B&&W.classList.add("xterm-decoration-top");var X=void 0;switch(C){case 16777216:case 33554432:X=this._colors.ansi[L],W.classList.add("xterm-bg-"+L);break;case 50331648:X=l.rgba.toColor(L>>16,L>>8&255,255&L),this._addStyle(W,"background-color:#"+h((L>>>0).toString(16),"0",6));break;default:S?(X=this._colors.foreground,W.classList.add("xterm-bg-"+a.INVERTED_DEFAULT_COLOR)):X=this._colors.background}switch(w){case 16777216:case 33554432:q.isBold()&&R<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(R+=8),this._applyMinimumContrast(W,X,this._colors.ansi[R],q,x,void 0)||W.classList.add("xterm-fg-"+R);break;case 50331648:var j=l.rgba.toColor(R>>16&255,R>>8&255,255&R);this._applyMinimumContrast(W,X,j,q,x,N)||this._addStyle(W,"color:#"+h(R.toString(16),"0",6));break;default:this._applyMinimumContrast(W,X,this._colors.foreground,q,x,void 0)||S&&W.classList.add("xterm-fg-"+a.INVERTED_DEFAULT_COLOR)}z.appendChild(W),m=y}}return z},e.prototype._applyMinimumContrast=function(e,t,o,n,i,r){if(1===this._optionsService.rawOptions.minimumContrastRatio||(0,d.excludeFromContrastRatioDemands)(n.getCode()))return!1;var a=void 0;return i||r||(a=this._colors.contrastCache.getColor(t.rgba,o.rgba)),void 0===a&&(a=l.color.ensureContrastRatio(i||t,r||o,this._optionsService.rawOptions.minimumContrastRatio),this._colors.contrastCache.setColor((i||t).rgba,(r||o).rgba,null!=a?a:null)),!!a&&(this._addStyle(e,"color:"+a.css),!0)},e.prototype._addStyle=function(e,t){e.setAttribute("style",""+(e.getAttribute("style")||"")+t+";")},e.prototype._isCellInSelection=function(e,t){var o=this._selectionStart,n=this._selectionEnd;return!(!o||!n)&&(this._columnSelectMode?o[0]<=n[0]?e>=o[0]&&t>=o[1]&&e=o[1]&&e>=n[0]&&t<=n[1]:t>o[1]&&t=o[0]&&e=o[0])},n([i(2,u.ICharacterJoinerService),i(3,p.IOptionsService),i(4,p.ICoreService),i(5,p.IDecorationService)],e)}();function h(e,t,o){for(;e.length{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionModel=void 0;var o=function(){function e(e){this._bufferService=e,this.isSelectAllActive=!1,this.selectionStartLength=0}return e.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(e.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"finalSelectionEnd",{get:function(){return this.isSelectAllActive?[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1]:this.selectionStart?!this.selectionEnd||this.areSelectionValuesReversed()?(e=this.selectionStart[0]+this.selectionStartLength)>this._bufferService.cols?e%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)-1]:[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[e,this.selectionStart[1]]:this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?(e=this.selectionStart[0]+this.selectionStartLength)>this._bufferService.cols?[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[Math.max(e,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd:void 0;var e},enumerable:!1,configurable:!0}),e.prototype.areSelectionValuesReversed=function(){var e=this.selectionStart,t=this.selectionEnd;return!(!e||!t)&&(e[1]>t[1]||e[1]===t[1]&&e[0]>t[0])},e.prototype.onTrim=function(e){return this.selectionStart&&(this.selectionStart[1]-=e),this.selectionEnd&&(this.selectionEnd[1]-=e),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},e}();t.SelectionModel=o},428:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharSizeService=void 0;var r=o(2585),a=o(8460),s=function(){function e(e,t,o){this._optionsService=o,this.width=0,this.height=0,this._onCharSizeChange=new a.EventEmitter,this._measureStrategy=new c(e,t,this._optionsService)}return Object.defineProperty(e.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),e.prototype.measure=function(){var e=this._measureStrategy.measure();e.width===this.width&&e.height===this.height||(this.width=e.width,this.height=e.height,this._onCharSizeChange.fire())},n([i(2,r.IOptionsService)],e)}();t.CharSizeService=s;var c=function(){function e(e,t,o){this._document=e,this._parentElement=t,this._optionsService=o,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return e.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var e=this._measureElement.getBoundingClientRect();return 0!==e.width&&0!==e.height&&(this._result.width=e.width,this._result.height=Math.ceil(e.height)),this._result},e}()},4269:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharacterJoinerService=t.JoinedCellData=void 0;var s=o(3734),c=o(643),p=o(511),l=o(2585),u=function(e){function t(t,o,n){var i=e.call(this)||this;return i.content=0,i.combinedData="",i.fg=t.fg,i.bg=t.bg,i.combinedData=o,i._width=n,i}return i(t,e),t.prototype.isCombined=function(){return 2097152},t.prototype.getWidth=function(){return this._width},t.prototype.getChars=function(){return this.combinedData},t.prototype.getCode=function(){return 2097151},t.prototype.setFromCharData=function(e){throw new Error("not implemented")},t.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},t}(s.AttributeData);t.JoinedCellData=u;var b=function(){function e(e){this._bufferService=e,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new p.CellData}return e.prototype.register=function(e){var t={id:this._nextCharacterJoinerId++,handler:e};return this._characterJoiners.push(t),t.id},e.prototype.deregister=function(e){for(var t=0;t1)for(var u=this._getJoinedRanges(n,a,r,t,i),b=0;b1)for(u=this._getJoinedRanges(n,a,r,t,i),b=0;b{Object.defineProperty(t,"__esModule",{value:!0}),t.CoreBrowserService=void 0;var o=function(){function e(e){this._textarea=e}return Object.defineProperty(e.prototype,"isFocused",{get:function(){return(this._textarea.getRootNode?this._textarea.getRootNode():document).activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),e}();t.CoreBrowserService=o},8934:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseService=void 0;var r=o(4725),a=o(9806),s=function(){function e(e,t){this._renderService=e,this._charSizeService=t}return e.prototype.getCoords=function(e,t,o,n,i){return(0,a.getCoords)(window,e,t,o,n,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,i)},e.prototype.getRawByteCoords=function(e,t,o,n){var i=this.getCoords(e,t,o,n);return(0,a.getRawByteCoords)(i)},n([i(0,r.IRenderService),i(1,r.ICharSizeService)],e)}();t.MouseService=s},3230:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenderService=void 0;var s=o(6193),c=o(8460),p=o(844),l=o(5596),u=o(3656),b=o(2585),d=o(4725),M=function(e){function t(t,o,n,i,r,a,p){var b=e.call(this)||this;if(b._renderer=t,b._rowCount=o,b._charSizeService=r,b._isPaused=!1,b._needsFullRefresh=!1,b._isNextRenderRedrawOnly=!0,b._needsSelectionRefresh=!1,b._canvasWidth=0,b._canvasHeight=0,b._selectionState={start:void 0,end:void 0,columnSelectMode:!1},b._onDimensionsChange=new c.EventEmitter,b._onRenderedViewportChange=new c.EventEmitter,b._onRender=new c.EventEmitter,b._onRefreshRequest=new c.EventEmitter,b.register({dispose:function(){return b._renderer.dispose()}}),b._renderDebouncer=new s.RenderDebouncer(function(e,t){return b._renderRows(e,t)}),b.register(b._renderDebouncer),b._screenDprMonitor=new l.ScreenDprMonitor,b._screenDprMonitor.setListener(function(){return b.onDevicePixelRatioChange()}),b.register(b._screenDprMonitor),b.register(p.onResize(function(){return b._fullRefresh()})),b.register(p.buffers.onBufferActivate(function(){var e;return null===(e=b._renderer)||void 0===e?void 0:e.clear()})),b.register(i.onOptionChange(function(){return b._handleOptionsChanged()})),b.register(b._charSizeService.onCharSizeChange(function(){return b.onCharSizeChanged()})),b.register(a.onDecorationRegistered(function(){return b._fullRefresh()})),b.register(a.onDecorationRemoved(function(){return b._fullRefresh()})),b._renderer.onRequestRedraw(function(e){return b.refreshRows(e.start,e.end,!0)}),b.register((0,u.addDisposableDomListener)(window,"resize",function(){return b.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var d=new IntersectionObserver(function(e){return b._onIntersectionChange(e[e.length-1])},{threshold:0});d.observe(n),b.register({dispose:function(){return d.disconnect()}})}return b}return i(t,e),Object.defineProperty(t.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRenderedViewportChange",{get:function(){return this._onRenderedViewportChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),t.prototype._onIntersectionChange=function(e){this._isPaused=void 0===e.isIntersecting?0===e.intersectionRatio:!e.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},t.prototype.refreshRows=function(e,t,o){void 0===o&&(o=!1),this._isPaused?this._needsFullRefresh=!0:(o||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(e,t,this._rowCount))},t.prototype._renderRows=function(e,t){this._renderer.renderRows(e,t),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:e,end:t}),this._onRender.fire({start:e,end:t}),this._isNextRenderRedrawOnly=!0},t.prototype.resize=function(e,t){this._rowCount=t,this._fireOnCanvasResize()},t.prototype._handleOptionsChanged=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},t.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.setRenderer=function(e){var t=this;this._renderer.dispose(),this._renderer=e,this._renderer.onRequestRedraw(function(e){return t.refreshRows(e.start,e.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},t.prototype.addRefreshCallback=function(e){return this._renderDebouncer.addRefreshCallback(e)},t.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},t.prototype.clearTextureAtlas=function(){var e,t;null===(t=null===(e=this._renderer)||void 0===e?void 0:e.clearTextureAtlas)||void 0===t||t.call(e),this._fullRefresh()},t.prototype.setColors=function(e){this._renderer.setColors(e),this._fullRefresh()},t.prototype.onDevicePixelRatioChange=function(){this._charSizeService.measure(),this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},t.prototype.onResize=function(e,t){this._renderer.onResize(e,t),this._fullRefresh()},t.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},t.prototype.onBlur=function(){this._renderer.onBlur()},t.prototype.onFocus=function(){this._renderer.onFocus()},t.prototype.onSelectionChanged=function(e,t,o){this._selectionState.start=e,this._selectionState.end=t,this._selectionState.columnSelectMode=o,this._renderer.onSelectionChanged(e,t,o)},t.prototype.onCursorMove=function(){this._renderer.onCursorMove()},t.prototype.clear=function(){this._renderer.clear()},r([a(3,b.IOptionsService),a(4,d.ICharSizeService),a(5,b.IDecorationService),a(6,b.IBufferService)],t)}(p.Disposable);t.RenderService=M},9312:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionService=void 0;var s=o(6114),c=o(456),p=o(511),l=o(8460),u=o(4725),b=o(2585),d=o(9806),M=o(9504),h=o(844),f=o(4841),z=String.fromCharCode(160),O=new RegExp(z,"g"),A=function(e){function t(t,o,n,i,r,a,s,u){var b=e.call(this)||this;return b._element=t,b._screenElement=o,b._linkifier=n,b._bufferService=i,b._coreService=r,b._mouseService=a,b._optionsService=s,b._renderService=u,b._dragScrollAmount=0,b._enabled=!0,b._workCell=new p.CellData,b._mouseDownTimeStamp=0,b._oldHasSelection=!1,b._oldSelectionStart=void 0,b._oldSelectionEnd=void 0,b._onLinuxMouseSelection=b.register(new l.EventEmitter),b._onRedrawRequest=b.register(new l.EventEmitter),b._onSelectionChange=b.register(new l.EventEmitter),b._onRequestScrollLines=b.register(new l.EventEmitter),b._mouseMoveListener=function(e){return b._onMouseMove(e)},b._mouseUpListener=function(e){return b._onMouseUp(e)},b._coreService.onUserInput(function(){b.hasSelection&&b.clearSelection()}),b._trimListener=b._bufferService.buffer.lines.onTrim(function(e){return b._onTrim(e)}),b.register(b._bufferService.buffers.onBufferActivate(function(e){return b._onBufferActivate(e)})),b.enable(),b._model=new c.SelectionModel(b._bufferService),b._activeSelectionMode=0,b}return i(t,e),Object.defineProperty(t.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this._removeMouseDownListeners()},t.prototype.reset=function(){this.clearSelection()},t.prototype.disable=function(){this.clearSelection(),this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSelection",{get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;return!(!e||!t||e[0]===t[0]&&e[1]===t[1])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionText",{get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;if(!e||!t)return"";var o=this._bufferService.buffer,n=[];if(3===this._activeSelectionMode){if(e[0]===t[0])return"";for(var i=e[0]t[1]&&e[1]=t[0]&&e[0]=t[0]},t.prototype._selectWordAtCursor=function(e,t){var o,n,i=null===(n=null===(o=this._linkifier.currentLink)||void 0===o?void 0:o.link)||void 0===n?void 0:n.range;if(i)return this._model.selectionStart=[i.start.x-1,i.start.y-1],this._model.selectionStartLength=(0,f.getRangeLength)(i,this._bufferService.cols),this._model.selectionEnd=void 0,!0;var r=this._getMouseBufferCoords(e);return!!r&&(this._selectWordAt(r,t),this._model.selectionEnd=void 0,!0)},t.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},t.prototype.selectLines=function(e,t){this._model.clearSelection(),e=Math.max(e,0),t=Math.min(t,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,e],this._model.selectionEnd=[this._bufferService.cols,t],this.refresh(),this._onSelectionChange.fire()},t.prototype._onTrim=function(e){this._model.onTrim(e)&&this.refresh()},t.prototype._getMouseBufferCoords=function(e){var t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(t)return t[0]--,t[1]--,t[1]+=this._bufferService.buffer.ydisp,t},t.prototype._getMouseEventScrollAmount=function(e){var t=(0,d.getCoordsRelativeToElement)(window,e,this._screenElement)[1],o=this._renderService.dimensions.canvasHeight;return t>=0&&t<=o?0:(t>o&&(t-=o),t=Math.min(Math.max(t,-50),50),(t/=50)/Math.abs(t)+Math.round(14*t))},t.prototype.shouldForceSelection=function(e){return s.isMac?e.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:e.shiftKey},t.prototype.onMouseDown=function(e){if(this._mouseDownTimeStamp=e.timeStamp,(2!==e.button||!this.hasSelection)&&0===e.button){if(!this._enabled){if(!this.shouldForceSelection(e))return;e.stopPropagation()}e.preventDefault(),this._dragScrollAmount=0,this._enabled&&e.shiftKey?this._onIncrementalClick(e):1===e.detail?this._onSingleClick(e):2===e.detail?this._onDoubleClick(e):3===e.detail&&this._onTripleClick(e),this._addMouseDownListeners(),this.refresh(!0)}},t.prototype._addMouseDownListeners=function(){var e=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return e._dragScroll()},50)},t.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},t.prototype._onIncrementalClick=function(e){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(e))},t.prototype._onSingleClick=function(e){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(e)?3:0,this._model.selectionStart=this._getMouseBufferCoords(e),this._model.selectionStart){this._model.selectionEnd=void 0;var t=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);t&&t.length!==this._model.selectionStart[0]&&0===t.hasWidth(this._model.selectionStart[0])&&this._model.selectionStart[0]++}},t.prototype._onDoubleClick=function(e){this._selectWordAtCursor(e,!0)&&(this._activeSelectionMode=1)},t.prototype._onTripleClick=function(e){var t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=2,this._selectLineAt(t[1]))},t.prototype.shouldColumnSelect=function(e){return e.altKey&&!(s.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)},t.prototype._onMouseMove=function(e){if(e.stopImmediatePropagation(),this._model.selectionStart){var t=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(e),this._model.selectionEnd){2===this._activeSelectionMode?this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var o=this._bufferService.buffer;if(this._model.selectionEnd[1]0?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(e.ydisp+this._bufferService.rows,e.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=e.ydisp),this.refresh()}},t.prototype._onMouseUp=function(e){var t=e.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&t<500&&e.altKey&&this._optionsService.getOption("altClickMovesCursor")){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var o=this._mouseService.getCoords(e,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(o&&void 0!==o[0]&&void 0!==o[1]){var n=(0,M.moveToCellSequence)(o[0]-1,o[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(n,!0)}}}else this._fireEventIfSelectionChanged()},t.prototype._fireEventIfSelectionChanged=function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd,o=!(!e||!t||e[0]===t[0]&&e[1]===t[1]);o?e&&t&&(this._oldSelectionStart&&this._oldSelectionEnd&&e[0]===this._oldSelectionStart[0]&&e[1]===this._oldSelectionStart[1]&&t[0]===this._oldSelectionEnd[0]&&t[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(e,t,o)):this._oldHasSelection&&this._fireOnSelectionChange(e,t,o)},t.prototype._fireOnSelectionChange=function(e,t,o){this._oldSelectionStart=e,this._oldSelectionEnd=t,this._oldHasSelection=o,this._onSelectionChange.fire()},t.prototype._onBufferActivate=function(e){var t=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=e.activeBuffer.lines.onTrim(function(e){return t._onTrim(e)})},t.prototype._convertViewportColToCharacterIndex=function(e,t){for(var o=t[0],n=0;t[0]>=n;n++){var i=e.loadCell(n,this._workCell).getChars().length;0===this._workCell.getWidth()?o--:i>1&&t[0]!==n&&(o+=i-1)}return o},t.prototype.setSelection=function(e,t,o){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=o,this.refresh(),this._fireEventIfSelectionChanged()},t.prototype.rightClickSelect=function(e){this._isClickInSelection(e)||(this._selectWordAtCursor(e,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())},t.prototype._getWordAt=function(e,t,o,n){if(void 0===o&&(o=!0),void 0===n&&(n=!0),!(e[0]>=this._bufferService.cols)){var i=this._bufferService.buffer,r=i.lines.get(e[1]);if(r){var a=i.translateBufferLineToString(e[1],!1),s=this._convertViewportColToCharacterIndex(r,e),c=s,p=e[0]-s,l=0,u=0,b=0,d=0;if(" "===a.charAt(s)){for(;s>0&&" "===a.charAt(s-1);)s--;for(;c1&&(d+=f-1,c+=f-1);M>0&&s>0&&!this._isCharWordSeparator(r.loadCell(M-1,this._workCell));){r.loadCell(M-1,this._workCell);var z=this._workCell.getChars().length;0===this._workCell.getWidth()?(l++,M--):z>1&&(b+=z-1,s-=z-1),s--,M--}for(;h1&&(d+=O-1,c+=O-1),c++,h++}}c++;var A=s+p-l+b,m=Math.min(this._bufferService.cols,c-s+l+u-b-d);if(t||""!==a.slice(s,c).trim()){if(o&&0===A&&32!==r.getCodePoint(0)){var v=i.lines.get(e[1]-1);if(v&&r.isWrapped&&32!==v.getCodePoint(this._bufferService.cols-1)){var g=this._getWordAt([this._bufferService.cols-1,e[1]-1],!1,!0,!1);if(g){var y=this._bufferService.cols-g.start;A-=y,m+=y}}}if(n&&A+m===this._bufferService.cols&&32!==r.getCodePoint(this._bufferService.cols-1)){var q=i.lines.get(e[1]+1);if((null==q?void 0:q.isWrapped)&&32!==q.getCodePoint(0)){var _=this._getWordAt([0,e[1]+1],!1,!1,!0);_&&(m+=_.length)}}return{start:A,length:m}}}}},t.prototype._selectWordAt=function(e,t){var o=this._getWordAt(e,t);if(o){for(;o.start<0;)o.start+=this._bufferService.cols,e[1]--;this._model.selectionStart=[o.start,e[1]],this._model.selectionStartLength=o.length}},t.prototype._selectToWordAt=function(e){var t=this._getWordAt(e,!0);if(t){for(var o=e[1];t.start<0;)t.start+=this._bufferService.cols,o--;if(!this._model.areSelectionValuesReversed())for(;t.start+t.length>this._bufferService.cols;)t.length-=this._bufferService.cols,o++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?t.start:t.start+t.length,o]}},t.prototype._isCharWordSeparator=function(e){return 0!==e.getWidth()&&this._optionsService.rawOptions.wordSeparator.indexOf(e.getChars())>=0},t.prototype._selectLineAt=function(e){var t=this._bufferService.buffer.getWrappedRangeForLine(e),o={start:{x:0,y:t.first},end:{x:this._bufferService.cols-1,y:t.last}};this._model.selectionStart=[0,t.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,f.getRangeLength)(o,this._bufferService.cols)},r([a(3,b.IBufferService),a(4,b.ICoreService),a(5,u.IMouseService),a(6,b.IOptionsService),a(7,u.IRenderService)],t)}(h.Disposable);t.SelectionService=A},4725:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ICharacterJoinerService=t.ISoundService=t.ISelectionService=t.IRenderService=t.IMouseService=t.ICoreBrowserService=t.ICharSizeService=void 0;var n=o(8343);t.ICharSizeService=(0,n.createDecorator)("CharSizeService"),t.ICoreBrowserService=(0,n.createDecorator)("CoreBrowserService"),t.IMouseService=(0,n.createDecorator)("MouseService"),t.IRenderService=(0,n.createDecorator)("RenderService"),t.ISelectionService=(0,n.createDecorator)("SelectionService"),t.ISoundService=(0,n.createDecorator)("SoundService"),t.ICharacterJoinerService=(0,n.createDecorator)("CharacterJoinerService")},357:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SoundService=void 0;var r=o(2585),a=function(){function e(e){this._optionsService=e}return Object.defineProperty(e,"audioContext",{get:function(){if(!e._audioContext){var t=window.AudioContext||window.webkitAudioContext;if(!t)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;e._audioContext=new t}return e._audioContext},enumerable:!1,configurable:!0}),e.prototype.playBellSound=function(){var t=e.audioContext;if(t){var o=t.createBufferSource();t.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.rawOptions.bellSound)),function(e){o.buffer=e,o.connect(t.destination),o.start(0)})}},e.prototype._base64ToArrayBuffer=function(e){for(var t=window.atob(e),o=t.length,n=new Uint8Array(o),i=0;i{Object.defineProperty(t,"__esModule",{value:!0}),t.CircularList=void 0;var n=o(8460),i=function(){function e(e){this._maxLength=e,this.onDeleteEmitter=new n.EventEmitter,this.onInsertEmitter=new n.EventEmitter,this.onTrimEmitter=new n.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(e.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxLength",{get:function(){return this._maxLength},set:function(e){if(this._maxLength!==e){for(var t=new Array(e),o=0;othis._length)for(var t=this._length;t=e;i--)this._array[this._getCyclicIndex(i+o.length)]=this._array[this._getCyclicIndex(i)];for(i=0;ithis._maxLength){var r=this._length+o.length-this._maxLength;this._startIndex+=r,this._length=this._maxLength,this.onTrimEmitter.fire(r)}else this._length+=o.length},e.prototype.trimStart=function(e){e>this._length&&(e=this._length),this._startIndex+=e,this._length-=e,this.onTrimEmitter.fire(e)},e.prototype.shiftElements=function(e,t,o){if(!(t<=0)){if(e<0||e>=this._length)throw new Error("start argument out of range");if(e+o<0)throw new Error("Cannot shift elements in list beyond index 0");if(o>0){for(var n=t-1;n>=0;n--)this.set(e+n+o,this.get(e+n));var i=e+t+o-this._length;if(i>0)for(this._length+=i;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(n=0;n{Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function e(t,o){if(void 0===o&&(o=5),"object"!=typeof t)return t;var n=Array.isArray(t)?[]:{};for(var i in t)n[i]=o<=1?t[i]:t[i]&&e(t[i],o-1);return n}},8055:function(e,t){var o,n,i,r,a=this&&this.__read||function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var n,i,r=o.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a};function s(e){var t=e.toString(16);return t.length<2?"0"+t:t}function c(e,t){return e>>0}}(o=t.channels||(t.channels={})),(n=t.color||(t.color={})).blend=function(e,t){var n=(255&t.rgba)/255;if(1===n)return{css:t.css,rgba:t.rgba};var i=t.rgba>>24&255,r=t.rgba>>16&255,a=t.rgba>>8&255,s=e.rgba>>24&255,c=e.rgba>>16&255,p=e.rgba>>8&255,l=s+Math.round((i-s)*n),u=c+Math.round((r-c)*n),b=p+Math.round((a-p)*n);return{css:o.toCss(l,u,b),rgba:o.toRgba(l,u,b)}},n.isOpaque=function(e){return 255==(255&e.rgba)},n.ensureContrastRatio=function(e,t,o){var n=r.ensureContrastRatio(e.rgba,t.rgba,o);if(n)return r.toColor(n>>24&255,n>>16&255,n>>8&255)},n.opaque=function(e){var t=(255|e.rgba)>>>0,n=a(r.toChannels(t),3),i=n[0],s=n[1],c=n[2];return{css:o.toCss(i,s,c),rgba:t}},n.opacity=function(e,t){var n=Math.round(255*t),i=a(r.toChannels(e.rgba),3),s=i[0],c=i[1],p=i[2];return{css:o.toCss(s,c,p,n),rgba:o.toRgba(s,c,p,n)}},n.toColorRGB=function(e){return[e.rgba>>24&255,e.rgba>>16&255,e.rgba>>8&255]},(t.css||(t.css={})).toColor=function(e){if(e.match(/#[0-9a-f]{3,8}/i))switch(e.length){case 4:var t=parseInt(e.slice(1,2).repeat(2),16),o=parseInt(e.slice(2,3).repeat(2),16),n=parseInt(e.slice(3,4).repeat(2),16);return r.toColor(t,o,n);case 5:t=parseInt(e.slice(1,2).repeat(2),16),o=parseInt(e.slice(2,3).repeat(2),16),n=parseInt(e.slice(3,4).repeat(2),16);var i=parseInt(e.slice(4,5).repeat(2),16);return r.toColor(t,o,n,i);case 7:return{css:e,rgba:(parseInt(e.slice(1),16)<<8|255)>>>0};case 9:return{css:e,rgba:parseInt(e.slice(1),16)>>>0}}var a=e.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(a)return t=parseInt(a[1]),o=parseInt(a[2]),n=parseInt(a[3]),i=Math.round(255*(void 0===a[5]?1:parseFloat(a[5]))),r.toColor(t,o,n,i);throw new Error("css.toColor: Unsupported css format")},function(e){function t(e,t,o){var n=e/255,i=t/255,r=o/255;return.2126*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.7152*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))}e.relativeLuminance=function(e){return t(e>>16&255,e>>8&255,255&e)},e.relativeLuminance2=t}(i=t.rgb||(t.rgb={})),function(e){function t(e,t,o){for(var n=e>>24&255,r=e>>16&255,a=e>>8&255,s=t>>24&255,p=t>>16&255,l=t>>8&255,u=c(i.relativeLuminance2(s,p,l),i.relativeLuminance2(n,r,a));u0||p>0||l>0);)s-=Math.max(0,Math.ceil(.1*s)),p-=Math.max(0,Math.ceil(.1*p)),l-=Math.max(0,Math.ceil(.1*l)),u=c(i.relativeLuminance2(s,p,l),i.relativeLuminance2(n,r,a));return(s<<24|p<<16|l<<8|255)>>>0}function n(e,t,o){for(var n=e>>24&255,r=e>>16&255,a=e>>8&255,s=t>>24&255,p=t>>16&255,l=t>>8&255,u=c(i.relativeLuminance2(s,p,l),i.relativeLuminance2(n,r,a));u>>0}e.ensureContrastRatio=function(e,o,r){var a=i.relativeLuminance(e>>8),s=i.relativeLuminance(o>>8);if(c(a,s)>8));if(lc(a,i.relativeLuminance(u>>8))?p:u}return p}var b=n(e,o,r),d=c(a,i.relativeLuminance(b>>8));return dc(a,i.relativeLuminance(u>>8))?b:u):b}},e.reduceLuminance=t,e.increaseLuminance=n,e.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},e.toColor=function(e,t,n,i){return{css:o.toCss(e,t,n,i),rgba:o.toRgba(e,t,n,i)}}}(r=t.rgba||(t.rgba={})),t.toPaddedHex=s,t.contrastRatio=c},8969:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],n=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreTerminal=void 0;var a=o(844),s=o(2585),c=o(4348),p=o(7866),l=o(744),u=o(7302),b=o(6975),d=o(8460),M=o(1753),h=o(3730),f=o(1480),z=o(7994),O=o(9282),A=o(5435),m=o(5981),v=!1,g=function(e){function t(t){var o=e.call(this)||this;return o._onBinary=new d.EventEmitter,o._onData=new d.EventEmitter,o._onLineFeed=new d.EventEmitter,o._onResize=new d.EventEmitter,o._onScroll=new d.EventEmitter,o._onWriteParsed=new d.EventEmitter,o._instantiationService=new c.InstantiationService,o.optionsService=new u.OptionsService(t),o._instantiationService.setService(s.IOptionsService,o.optionsService),o._bufferService=o.register(o._instantiationService.createInstance(l.BufferService)),o._instantiationService.setService(s.IBufferService,o._bufferService),o._logService=o._instantiationService.createInstance(p.LogService),o._instantiationService.setService(s.ILogService,o._logService),o.coreService=o.register(o._instantiationService.createInstance(b.CoreService,function(){return o.scrollToBottom()})),o._instantiationService.setService(s.ICoreService,o.coreService),o.coreMouseService=o._instantiationService.createInstance(M.CoreMouseService),o._instantiationService.setService(s.ICoreMouseService,o.coreMouseService),o._dirtyRowService=o._instantiationService.createInstance(h.DirtyRowService),o._instantiationService.setService(s.IDirtyRowService,o._dirtyRowService),o.unicodeService=o._instantiationService.createInstance(f.UnicodeService),o._instantiationService.setService(s.IUnicodeService,o.unicodeService),o._charsetService=o._instantiationService.createInstance(z.CharsetService),o._instantiationService.setService(s.ICharsetService,o._charsetService),o._inputHandler=new A.InputHandler(o._bufferService,o._charsetService,o.coreService,o._dirtyRowService,o._logService,o.optionsService,o.coreMouseService,o.unicodeService),o.register((0,d.forwardEvent)(o._inputHandler.onLineFeed,o._onLineFeed)),o.register(o._inputHandler),o.register((0,d.forwardEvent)(o._bufferService.onResize,o._onResize)),o.register((0,d.forwardEvent)(o.coreService.onData,o._onData)),o.register((0,d.forwardEvent)(o.coreService.onBinary,o._onBinary)),o.register(o.optionsService.onOptionChange(function(e){return o._updateOptions(e)})),o.register(o._bufferService.onScroll(function(e){o._onScroll.fire({position:o._bufferService.buffer.ydisp,source:0}),o._dirtyRowService.markRangeDirty(o._bufferService.buffer.scrollTop,o._bufferService.buffer.scrollBottom)})),o.register(o._inputHandler.onScroll(function(e){o._onScroll.fire({position:o._bufferService.buffer.ydisp,source:0}),o._dirtyRowService.markRangeDirty(o._bufferService.buffer.scrollTop,o._bufferService.buffer.scrollBottom)})),o._writeBuffer=new m.WriteBuffer(function(e,t){return o._inputHandler.parse(e,t)}),o.register((0,d.forwardEvent)(o._writeBuffer.onWriteParsed,o._onWriteParsed)),o}return i(t,e),Object.defineProperty(t.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onWriteParsed",{get:function(){return this._onWriteParsed.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onScroll",{get:function(){var e=this;return this._onScrollApi||(this._onScrollApi=new d.EventEmitter,this.register(this._onScroll.event(function(t){var o;null===(o=e._onScrollApi)||void 0===o||o.fire(t.position)}))),this._onScrollApi.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return this.optionsService.options},set:function(e){for(var t in e)this.optionsService.options[t]=e[t]},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){var t;this._isDisposed||(e.prototype.dispose.call(this),null===(t=this._windowsMode)||void 0===t||t.dispose(),this._windowsMode=void 0)},t.prototype.write=function(e,t){this._writeBuffer.write(e,t)},t.prototype.writeSync=function(e,t){this._logService.logLevel<=s.LogLevelEnum.WARN&&!v&&(this._logService.warn("writeSync is unreliable and will be removed soon."),v=!0),this._writeBuffer.writeSync(e,t)},t.prototype.resize=function(e,t){isNaN(e)||isNaN(t)||(e=Math.max(e,l.MINIMUM_COLS),t=Math.max(t,l.MINIMUM_ROWS),this._bufferService.resize(e,t))},t.prototype.scroll=function(e,t){void 0===t&&(t=!1),this._bufferService.scroll(e,t)},t.prototype.scrollLines=function(e,t,o){this._bufferService.scrollLines(e,t,o)},t.prototype.scrollPages=function(e){this._bufferService.scrollPages(e)},t.prototype.scrollToTop=function(){this._bufferService.scrollToTop()},t.prototype.scrollToBottom=function(){this._bufferService.scrollToBottom()},t.prototype.scrollToLine=function(e){this._bufferService.scrollToLine(e)},t.prototype.registerEscHandler=function(e,t){return this._inputHandler.registerEscHandler(e,t)},t.prototype.registerDcsHandler=function(e,t){return this._inputHandler.registerDcsHandler(e,t)},t.prototype.registerCsiHandler=function(e,t){return this._inputHandler.registerCsiHandler(e,t)},t.prototype.registerOscHandler=function(e,t){return this._inputHandler.registerOscHandler(e,t)},t.prototype._setup=function(){this.optionsService.rawOptions.windowsMode&&this._enableWindowsMode()},t.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()},t.prototype._updateOptions=function(e){var t;switch(e){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.rawOptions.windowsMode?this._enableWindowsMode():(null===(t=this._windowsMode)||void 0===t||t.dispose(),this._windowsMode=void 0)}},t.prototype._enableWindowsMode=function(){var e=this;if(!this._windowsMode){var t=[];t.push(this.onLineFeed(O.updateWindowsModeWrappedState.bind(null,this._bufferService))),t.push(this.registerCsiHandler({final:"H"},function(){return(0,O.updateWindowsModeWrappedState)(e._bufferService),!1})),this._windowsMode={dispose:function(){var e,o;try{for(var n=r(t),i=n.next();!i.done;i=n.next())i.value.dispose()}catch(t){e={error:t}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(e)throw e.error}}}}}},t}(a.Disposable);t.CoreTerminal=g},8460:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.forwardEvent=t.EventEmitter=void 0;var o=function(){function e(){this._listeners=[],this._disposed=!1}return Object.defineProperty(e.prototype,"event",{get:function(){var e=this;return this._event||(this._event=function(t){return e._listeners.push(t),{dispose:function(){if(!e._disposed)for(var o=0;o24)return t.setWinLines||!1;switch(e){case 1:return!!t.restoreWin;case 2:return!!t.minimizeWin;case 3:return!!t.setWinPosition;case 4:return!!t.setWinSizePixels;case 5:return!!t.raiseWin;case 6:return!!t.lowerWin;case 7:return!!t.refreshWin;case 8:return!!t.setWinSizeChars;case 9:return!!t.maximizeWin;case 10:return!!t.fullscreenWin;case 11:return!!t.getWinState;case 13:return!!t.getWinPosition;case 14:return!!t.getWinSizePixels;case 15:return!!t.getScreenSizePixels;case 16:return!!t.getCellSizePixels;case 18:return!!t.getWinSizeChars;case 19:return!!t.getScreenSizeChars;case 20:return!!t.getIconTitle;case 21:return!!t.getWinTitle;case 22:return!!t.pushTitle;case 23:return!!t.popTitle;case 24:return!!t.setWinLines}return!1}!function(e){e[e.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",e[e.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"}(r=t.WindowsOptionsReportType||(t.WindowsOptionsReportType={}));var q=function(){function e(e,t,o,n){this._bufferService=e,this._coreService=t,this._logService=o,this._optionsService=n,this._data=new Uint32Array(0)}return e.prototype.hook=function(e){this._data=new Uint32Array(0)},e.prototype.put=function(e,t,o){this._data=(0,l.concat)(this._data,e.subarray(t,o))},e.prototype.unhook=function(e){if(!e)return this._data=new Uint32Array(0),!0;var t=(0,u.utf32ToString)(this._data);switch(this._data=new Uint32Array(0),t){case'"q':this._coreService.triggerDataEvent(a.C0.ESC+'P1$r0"q'+a.C0.ESC+"\\");break;case'"p':this._coreService.triggerDataEvent(a.C0.ESC+'P1$r61;1"p'+a.C0.ESC+"\\");break;case"r":var o=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";this._coreService.triggerDataEvent(a.C0.ESC+"P1$r"+o+a.C0.ESC+"\\");break;case"m":this._coreService.triggerDataEvent(a.C0.ESC+"P1$r0m"+a.C0.ESC+"\\");break;case" q":var n={block:2,underline:4,bar:6}[this._optionsService.rawOptions.cursorStyle];n-=this._optionsService.rawOptions.cursorBlink?1:0,this._coreService.triggerDataEvent(a.C0.ESC+"P1$r"+n+" q"+a.C0.ESC+"\\");break;default:this._logService.debug("Unknown DCS $q %s",t),this._coreService.triggerDataEvent(a.C0.ESC+"P0$r"+a.C0.ESC+"\\")}return!0},e}(),_=function(e){function t(t,o,n,i,r,p,l,M,f){void 0===f&&(f=new c.EscapeSequenceParser);var z=e.call(this)||this;z._bufferService=t,z._charsetService=o,z._coreService=n,z._dirtyRowService=i,z._logService=r,z._optionsService=p,z._coreMouseService=l,z._unicodeService=M,z._parser=f,z._parseBuffer=new Uint32Array(4096),z._stringDecoder=new u.StringToUtf32,z._utf8Decoder=new u.Utf8ToUtf32,z._workCell=new h.CellData,z._windowTitle="",z._iconName="",z._windowTitleStack=[],z._iconNameStack=[],z._curAttrData=b.DEFAULT_ATTR_DATA.clone(),z._eraseAttrDataInternal=b.DEFAULT_ATTR_DATA.clone(),z._onRequestBell=new d.EventEmitter,z._onRequestRefreshRows=new d.EventEmitter,z._onRequestReset=new d.EventEmitter,z._onRequestSendFocus=new d.EventEmitter,z._onRequestSyncScrollBar=new d.EventEmitter,z._onRequestWindowsOptionsReport=new d.EventEmitter,z._onA11yChar=new d.EventEmitter,z._onA11yTab=new d.EventEmitter,z._onCursorMove=new d.EventEmitter,z._onLineFeed=new d.EventEmitter,z._onScroll=new d.EventEmitter,z._onTitleChange=new d.EventEmitter,z._onColor=new d.EventEmitter,z._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},z._specialColors=[256,257,258],z.register(z._parser),z._activeBuffer=z._bufferService.buffer,z.register(z._bufferService.buffers.onBufferActivate(function(e){return z._activeBuffer=e.activeBuffer})),z._parser.setCsiHandlerFallback(function(e,t){z._logService.debug("Unknown CSI code: ",{identifier:z._parser.identToString(e),params:t.toArray()})}),z._parser.setEscHandlerFallback(function(e){z._logService.debug("Unknown ESC code: ",{identifier:z._parser.identToString(e)})}),z._parser.setExecuteHandlerFallback(function(e){z._logService.debug("Unknown EXECUTE code: ",{code:e})}),z._parser.setOscHandlerFallback(function(e,t,o){z._logService.debug("Unknown OSC code: ",{identifier:e,action:t,data:o})}),z._parser.setDcsHandlerFallback(function(e,t,o){"HOOK"===t&&(o=o.toArray()),z._logService.debug("Unknown DCS code: ",{identifier:z._parser.identToString(e),action:t,payload:o})}),z._parser.setPrintHandler(function(e,t,o){return z.print(e,t,o)}),z._parser.registerCsiHandler({final:"@"},function(e){return z.insertChars(e)}),z._parser.registerCsiHandler({intermediates:" ",final:"@"},function(e){return z.scrollLeft(e)}),z._parser.registerCsiHandler({final:"A"},function(e){return z.cursorUp(e)}),z._parser.registerCsiHandler({intermediates:" ",final:"A"},function(e){return z.scrollRight(e)}),z._parser.registerCsiHandler({final:"B"},function(e){return z.cursorDown(e)}),z._parser.registerCsiHandler({final:"C"},function(e){return z.cursorForward(e)}),z._parser.registerCsiHandler({final:"D"},function(e){return z.cursorBackward(e)}),z._parser.registerCsiHandler({final:"E"},function(e){return z.cursorNextLine(e)}),z._parser.registerCsiHandler({final:"F"},function(e){return z.cursorPrecedingLine(e)}),z._parser.registerCsiHandler({final:"G"},function(e){return z.cursorCharAbsolute(e)}),z._parser.registerCsiHandler({final:"H"},function(e){return z.cursorPosition(e)}),z._parser.registerCsiHandler({final:"I"},function(e){return z.cursorForwardTab(e)}),z._parser.registerCsiHandler({final:"J"},function(e){return z.eraseInDisplay(e)}),z._parser.registerCsiHandler({prefix:"?",final:"J"},function(e){return z.eraseInDisplay(e)}),z._parser.registerCsiHandler({final:"K"},function(e){return z.eraseInLine(e)}),z._parser.registerCsiHandler({prefix:"?",final:"K"},function(e){return z.eraseInLine(e)}),z._parser.registerCsiHandler({final:"L"},function(e){return z.insertLines(e)}),z._parser.registerCsiHandler({final:"M"},function(e){return z.deleteLines(e)}),z._parser.registerCsiHandler({final:"P"},function(e){return z.deleteChars(e)}),z._parser.registerCsiHandler({final:"S"},function(e){return z.scrollUp(e)}),z._parser.registerCsiHandler({final:"T"},function(e){return z.scrollDown(e)}),z._parser.registerCsiHandler({final:"X"},function(e){return z.eraseChars(e)}),z._parser.registerCsiHandler({final:"Z"},function(e){return z.cursorBackwardTab(e)}),z._parser.registerCsiHandler({final:"`"},function(e){return z.charPosAbsolute(e)}),z._parser.registerCsiHandler({final:"a"},function(e){return z.hPositionRelative(e)}),z._parser.registerCsiHandler({final:"b"},function(e){return z.repeatPrecedingCharacter(e)}),z._parser.registerCsiHandler({final:"c"},function(e){return z.sendDeviceAttributesPrimary(e)}),z._parser.registerCsiHandler({prefix:">",final:"c"},function(e){return z.sendDeviceAttributesSecondary(e)}),z._parser.registerCsiHandler({final:"d"},function(e){return z.linePosAbsolute(e)}),z._parser.registerCsiHandler({final:"e"},function(e){return z.vPositionRelative(e)}),z._parser.registerCsiHandler({final:"f"},function(e){return z.hVPosition(e)}),z._parser.registerCsiHandler({final:"g"},function(e){return z.tabClear(e)}),z._parser.registerCsiHandler({final:"h"},function(e){return z.setMode(e)}),z._parser.registerCsiHandler({prefix:"?",final:"h"},function(e){return z.setModePrivate(e)}),z._parser.registerCsiHandler({final:"l"},function(e){return z.resetMode(e)}),z._parser.registerCsiHandler({prefix:"?",final:"l"},function(e){return z.resetModePrivate(e)}),z._parser.registerCsiHandler({final:"m"},function(e){return z.charAttributes(e)}),z._parser.registerCsiHandler({final:"n"},function(e){return z.deviceStatus(e)}),z._parser.registerCsiHandler({prefix:"?",final:"n"},function(e){return z.deviceStatusPrivate(e)}),z._parser.registerCsiHandler({intermediates:"!",final:"p"},function(e){return z.softReset(e)}),z._parser.registerCsiHandler({intermediates:" ",final:"q"},function(e){return z.setCursorStyle(e)}),z._parser.registerCsiHandler({final:"r"},function(e){return z.setScrollRegion(e)}),z._parser.registerCsiHandler({final:"s"},function(e){return z.saveCursor(e)}),z._parser.registerCsiHandler({final:"t"},function(e){return z.windowOptions(e)}),z._parser.registerCsiHandler({final:"u"},function(e){return z.restoreCursor(e)}),z._parser.registerCsiHandler({intermediates:"'",final:"}"},function(e){return z.insertColumns(e)}),z._parser.registerCsiHandler({intermediates:"'",final:"~"},function(e){return z.deleteColumns(e)}),z._parser.setExecuteHandler(a.C0.BEL,function(){return z.bell()}),z._parser.setExecuteHandler(a.C0.LF,function(){return z.lineFeed()}),z._parser.setExecuteHandler(a.C0.VT,function(){return z.lineFeed()}),z._parser.setExecuteHandler(a.C0.FF,function(){return z.lineFeed()}),z._parser.setExecuteHandler(a.C0.CR,function(){return z.carriageReturn()}),z._parser.setExecuteHandler(a.C0.BS,function(){return z.backspace()}),z._parser.setExecuteHandler(a.C0.HT,function(){return z.tab()}),z._parser.setExecuteHandler(a.C0.SO,function(){return z.shiftOut()}),z._parser.setExecuteHandler(a.C0.SI,function(){return z.shiftIn()}),z._parser.setExecuteHandler(a.C1.IND,function(){return z.index()}),z._parser.setExecuteHandler(a.C1.NEL,function(){return z.nextLine()}),z._parser.setExecuteHandler(a.C1.HTS,function(){return z.tabSet()}),z._parser.registerOscHandler(0,new O.OscHandler(function(e){return z.setTitle(e),z.setIconName(e),!0})),z._parser.registerOscHandler(1,new O.OscHandler(function(e){return z.setIconName(e)})),z._parser.registerOscHandler(2,new O.OscHandler(function(e){return z.setTitle(e)})),z._parser.registerOscHandler(4,new O.OscHandler(function(e){return z.setOrReportIndexedColor(e)})),z._parser.registerOscHandler(10,new O.OscHandler(function(e){return z.setOrReportFgColor(e)})),z._parser.registerOscHandler(11,new O.OscHandler(function(e){return z.setOrReportBgColor(e)})),z._parser.registerOscHandler(12,new O.OscHandler(function(e){return z.setOrReportCursorColor(e)})),z._parser.registerOscHandler(104,new O.OscHandler(function(e){return z.restoreIndexedColor(e)})),z._parser.registerOscHandler(110,new O.OscHandler(function(e){return z.restoreFgColor(e)})),z._parser.registerOscHandler(111,new O.OscHandler(function(e){return z.restoreBgColor(e)})),z._parser.registerOscHandler(112,new O.OscHandler(function(e){return z.restoreCursorColor(e)})),z._parser.registerEscHandler({final:"7"},function(){return z.saveCursor()}),z._parser.registerEscHandler({final:"8"},function(){return z.restoreCursor()}),z._parser.registerEscHandler({final:"D"},function(){return z.index()}),z._parser.registerEscHandler({final:"E"},function(){return z.nextLine()}),z._parser.registerEscHandler({final:"H"},function(){return z.tabSet()}),z._parser.registerEscHandler({final:"M"},function(){return z.reverseIndex()}),z._parser.registerEscHandler({final:"="},function(){return z.keypadApplicationMode()}),z._parser.registerEscHandler({final:">"},function(){return z.keypadNumericMode()}),z._parser.registerEscHandler({final:"c"},function(){return z.fullReset()}),z._parser.registerEscHandler({final:"n"},function(){return z.setgLevel(2)}),z._parser.registerEscHandler({final:"o"},function(){return z.setgLevel(3)}),z._parser.registerEscHandler({final:"|"},function(){return z.setgLevel(3)}),z._parser.registerEscHandler({final:"}"},function(){return z.setgLevel(2)}),z._parser.registerEscHandler({final:"~"},function(){return z.setgLevel(1)}),z._parser.registerEscHandler({intermediates:"%",final:"@"},function(){return z.selectDefaultCharset()}),z._parser.registerEscHandler({intermediates:"%",final:"G"},function(){return z.selectDefaultCharset()});var A=function(e){m._parser.registerEscHandler({intermediates:"(",final:e},function(){return z.selectCharset("("+e)}),m._parser.registerEscHandler({intermediates:")",final:e},function(){return z.selectCharset(")"+e)}),m._parser.registerEscHandler({intermediates:"*",final:e},function(){return z.selectCharset("*"+e)}),m._parser.registerEscHandler({intermediates:"+",final:e},function(){return z.selectCharset("+"+e)}),m._parser.registerEscHandler({intermediates:"-",final:e},function(){return z.selectCharset("-"+e)}),m._parser.registerEscHandler({intermediates:".",final:e},function(){return z.selectCharset("."+e)}),m._parser.registerEscHandler({intermediates:"/",final:e},function(){return z.selectCharset("/"+e)})},m=this;for(var v in s.CHARSETS)A(v);return z._parser.registerEscHandler({intermediates:"#",final:"8"},function(){return z.screenAlignmentPattern()}),z._parser.setErrorHandler(function(e){return z._logService.error("Parsing error: ",e),e}),z._parser.registerDcsHandler({intermediates:"$",final:"q"},new q(z._bufferService,z._coreService,z._logService,z._optionsService)),z}return i(t,e),Object.defineProperty(t.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestSendFocus",{get:function(){return this._onRequestSendFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onColor",{get:function(){return this._onColor.event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._preserveStack=function(e,t,o,n){this._parseStack.paused=!0,this._parseStack.cursorStartX=e,this._parseStack.cursorStartY=t,this._parseStack.decodedLength=o,this._parseStack.position=n},t.prototype._logSlowResolvingAsync=function(e){this._logService.logLevel<=z.LogLevelEnum.WARN&&Promise.race([e,new Promise(function(e,t){return setTimeout(function(){return t("#SLOW_TIMEOUT")},5e3)})]).catch(function(e){if("#SLOW_TIMEOUT"!==e)throw e;console.warn("async parser handler taking longer than 5000 ms")})},t.prototype.parse=function(e,t){var o,n=this._activeBuffer.x,i=this._activeBuffer.y,r=0,a=this._parseStack.paused;if(a){if(o=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,t))return this._logSlowResolvingAsync(o),o;n=this._parseStack.cursorStartX,i=this._parseStack.cursorStartY,this._parseStack.paused=!1,e.length>g&&(r=this._parseStack.position+g)}if(this._logService.logLevel<=z.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+("string"==typeof e?' "'+e+'"':' "'+Array.prototype.map.call(e,function(e){return String.fromCharCode(e)}).join("")+'"'),"string"==typeof e?e.split("").map(function(e){return e.charCodeAt(0)}):e),this._parseBuffer.lengthg)for(var s=r;s0&&2===b.getWidth(this._activeBuffer.x-1)&&b.setCellFromCodePoint(this._activeBuffer.x-1,0,1,l.fg,l.bg,l.extended);for(var d=t;d=s)if(c){for(;this._activeBuffer.x=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),b=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=s-1,2===i)continue;if(p&&(b.insertCells(this._activeBuffer.x,i,this._activeBuffer.getNullCell(l),l),2===b.getWidth(s-1)&&b.setCellFromCodePoint(s-1,M.NULL_CELL_CODE,M.NULL_CELL_WIDTH,l.fg,l.bg,l.extended)),b.setCellFromCodePoint(this._activeBuffer.x++,n,i,l.fg,l.bg,l.extended),i>0)for(;--i;)b.setCellFromCodePoint(this._activeBuffer.x++,0,0,l.fg,l.bg,l.extended)}else b.getWidth(this._activeBuffer.x-1)?b.addCodepointToCell(this._activeBuffer.x-1,n):b.addCodepointToCell(this._activeBuffer.x-2,n)}o-t>0&&(b.loadCell(this._activeBuffer.x-1,this._workCell),2===this._workCell.getWidth()||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),this._activeBuffer.x0&&0===b.getWidth(this._activeBuffer.x)&&!b.hasContent(this._activeBuffer.x)&&b.setCellFromCodePoint(this._activeBuffer.x,0,1,l.fg,l.bg,l.extended),this._dirtyRowService.markDirty(this._activeBuffer.y)},t.prototype.registerCsiHandler=function(e,t){var o=this;return"t"!==e.final||e.prefix||e.intermediates?this._parser.registerCsiHandler(e,t):this._parser.registerCsiHandler(e,function(e){return!y(e.params[0],o._optionsService.rawOptions.windowOptions)||t(e)})},t.prototype.registerDcsHandler=function(e,t){return this._parser.registerDcsHandler(e,new A.DcsHandler(t))},t.prototype.registerEscHandler=function(e,t){return this._parser.registerEscHandler(e,t)},t.prototype.registerOscHandler=function(e,t){return this._parser.registerOscHandler(e,new O.OscHandler(t))},t.prototype.bell=function(){return this._onRequestBell.fire(),!0},t.prototype.lineFeed=function(){return this._dirtyRowService.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowService.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0},t.prototype.carriageReturn=function(){return this._activeBuffer.x=0,!0},t.prototype.backspace=function(){var e;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(0===this._activeBuffer.x&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&(null===(e=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))||void 0===e?void 0:e.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;var t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);t.hasWidth(this._activeBuffer.x)&&!t.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0},t.prototype.tab=function(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;var e=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-e),!0},t.prototype.shiftOut=function(){return this._charsetService.setgLevel(1),!0},t.prototype.shiftIn=function(){return this._charsetService.setgLevel(0),!0},t.prototype._restrictCursor=function(e){void 0===e&&(e=this._bufferService.cols-1),this._activeBuffer.x=Math.min(e,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowService.markDirty(this._activeBuffer.y)},t.prototype._setCursor=function(e,t){this._dirtyRowService.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=e,this._activeBuffer.y=this._activeBuffer.scrollTop+t):(this._activeBuffer.x=e,this._activeBuffer.y=t),this._restrictCursor(),this._dirtyRowService.markDirty(this._activeBuffer.y)},t.prototype._moveCursor=function(e,t){this._restrictCursor(),this._setCursor(this._activeBuffer.x+e,this._activeBuffer.y+t)},t.prototype.cursorUp=function(e){var t=this._activeBuffer.y-this._activeBuffer.scrollTop;return t>=0?this._moveCursor(0,-Math.min(t,e.params[0]||1)):this._moveCursor(0,-(e.params[0]||1)),!0},t.prototype.cursorDown=function(e){var t=this._activeBuffer.scrollBottom-this._activeBuffer.y;return t>=0?this._moveCursor(0,Math.min(t,e.params[0]||1)):this._moveCursor(0,e.params[0]||1),!0},t.prototype.cursorForward=function(e){return this._moveCursor(e.params[0]||1,0),!0},t.prototype.cursorBackward=function(e){return this._moveCursor(-(e.params[0]||1),0),!0},t.prototype.cursorNextLine=function(e){return this.cursorDown(e),this._activeBuffer.x=0,!0},t.prototype.cursorPrecedingLine=function(e){return this.cursorUp(e),this._activeBuffer.x=0,!0},t.prototype.cursorCharAbsolute=function(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0},t.prototype.cursorPosition=function(e){return this._setCursor(e.length>=2?(e.params[1]||1)-1:0,(e.params[0]||1)-1),!0},t.prototype.charPosAbsolute=function(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0},t.prototype.hPositionRelative=function(e){return this._moveCursor(e.params[0]||1,0),!0},t.prototype.linePosAbsolute=function(e){return this._setCursor(this._activeBuffer.x,(e.params[0]||1)-1),!0},t.prototype.vPositionRelative=function(e){return this._moveCursor(0,e.params[0]||1),!0},t.prototype.hVPosition=function(e){return this.cursorPosition(e),!0},t.prototype.tabClear=function(e){var t=e.params[0];return 0===t?delete this._activeBuffer.tabs[this._activeBuffer.x]:3===t&&(this._activeBuffer.tabs={}),!0},t.prototype.cursorForwardTab=function(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var t=e.params[0]||1;t--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0},t.prototype.cursorBackwardTab=function(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var t=e.params[0]||1;t--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0},t.prototype._eraseInBufferLine=function(e,t,o,n){void 0===n&&(n=!1);var i=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);i.replaceCells(t,o,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),n&&(i.isWrapped=!1)},t.prototype._resetBufferLine=function(e){var t=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);t.fill(this._activeBuffer.getNullCell(this._eraseAttrData())),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+e),t.isWrapped=!1},t.prototype.eraseInDisplay=function(e){var t;switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:for(t=this._activeBuffer.y,this._dirtyRowService.markDirty(t),this._eraseInBufferLine(t++,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x);t=this._bufferService.cols&&(this._activeBuffer.lines.get(t+1).isWrapped=!1);t--;)this._resetBufferLine(t);this._dirtyRowService.markDirty(0);break;case 2:for(t=this._bufferService.rows,this._dirtyRowService.markDirty(t-1);t--;)this._resetBufferLine(t);this._dirtyRowService.markDirty(0);break;case 3:var o=this._activeBuffer.lines.length-this._bufferService.rows;o>0&&(this._activeBuffer.lines.trimStart(o),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-o,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-o,0),this._onScroll.fire(0))}return!0},t.prototype.eraseInLine=function(e){switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0)}return this._dirtyRowService.markDirty(this._activeBuffer.y),!0},t.prototype.insertLines=function(e){this._restrictCursor();var t=e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.y0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(a.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(a.C0.ESC+"[?6c")),!0},t.prototype.sendDeviceAttributesSecondary=function(e){return e.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(a.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(a.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(e.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(a.C0.ESC+"[>83;40003;0c")),!0},t.prototype._is=function(e){return 0===(this._optionsService.rawOptions.termName+"").indexOf(e)},t.prototype.setMode=function(e){for(var t=0;t=2||2===n[1]&&r+i>=5)break;n[1]&&(i=1)}while(++r+t5)&&(e=1),t.extended.underlineStyle=e,t.fg|=268435456,0===e&&(t.fg&=-268435457),t.updateExtended()},t.prototype.charAttributes=function(e){if(1===e.length&&0===e.params[0])return this._curAttrData.fg=b.DEFAULT_ATTR_DATA.fg,this._curAttrData.bg=b.DEFAULT_ATTR_DATA.bg,!0;for(var t,o=e.length,n=this._curAttrData,i=0;i=30&&t<=37?(n.fg&=-50331904,n.fg|=16777216|t-30):t>=40&&t<=47?(n.bg&=-50331904,n.bg|=16777216|t-40):t>=90&&t<=97?(n.fg&=-50331904,n.fg|=16777224|t-90):t>=100&&t<=107?(n.bg&=-50331904,n.bg|=16777224|t-100):0===t?(n.fg=b.DEFAULT_ATTR_DATA.fg,n.bg=b.DEFAULT_ATTR_DATA.bg):1===t?n.fg|=134217728:3===t?n.bg|=67108864:4===t?(n.fg|=268435456,this._processUnderline(e.hasSubParams(i)?e.getSubParams(i)[0]:1,n)):5===t?n.fg|=536870912:7===t?n.fg|=67108864:8===t?n.fg|=1073741824:9===t?n.fg|=2147483648:2===t?n.bg|=134217728:21===t?this._processUnderline(2,n):22===t?(n.fg&=-134217729,n.bg&=-134217729):23===t?n.bg&=-67108865:24===t?n.fg&=-268435457:25===t?n.fg&=-536870913:27===t?n.fg&=-67108865:28===t?n.fg&=-1073741825:29===t?n.fg&=2147483647:39===t?(n.fg&=-67108864,n.fg|=16777215&b.DEFAULT_ATTR_DATA.fg):49===t?(n.bg&=-67108864,n.bg|=16777215&b.DEFAULT_ATTR_DATA.bg):38===t||48===t||58===t?i+=this._extractColor(e,i,n):59===t?(n.extended=n.extended.clone(),n.extended.underlineColor=-1,n.updateExtended()):100===t?(n.fg&=-67108864,n.fg|=16777215&b.DEFAULT_ATTR_DATA.fg,n.bg&=-67108864,n.bg|=16777215&b.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",t);return!0},t.prototype.deviceStatus=function(e){switch(e.params[0]){case 5:this._coreService.triggerDataEvent(a.C0.ESC+"[0n");break;case 6:var t=this._activeBuffer.y+1,o=this._activeBuffer.x+1;this._coreService.triggerDataEvent(a.C0.ESC+"["+t+";"+o+"R")}return!0},t.prototype.deviceStatusPrivate=function(e){if(6===e.params[0]){var t=this._activeBuffer.y+1,o=this._activeBuffer.x+1;this._coreService.triggerDataEvent(a.C0.ESC+"[?"+t+";"+o+"R")}return!0},t.prototype.softReset=function(e){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=b.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0},t.prototype.setCursorStyle=function(e){var t=e.params[0]||1;switch(t){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}var o=t%2==1;return this._optionsService.options.cursorBlink=o,!0},t.prototype.setScrollRegion=function(e){var t,o=e.params[0]||1;return(e.length<2||(t=e.params[1])>this._bufferService.rows||0===t)&&(t=this._bufferService.rows),t>o&&(this._activeBuffer.scrollTop=o-1,this._activeBuffer.scrollBottom=t-1,this._setCursor(0,0)),!0},t.prototype.windowOptions=function(e){if(!y(e.params[0],this._optionsService.rawOptions.windowOptions))return!0;var t=e.length>1?e.params[1]:0;switch(e.params[0]){case 14:2!==t&&this._onRequestWindowsOptionsReport.fire(r.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(r.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(a.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:0!==t&&2!==t||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),0!==t&&1!==t||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:0!==t&&2!==t||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),0!==t&&1!==t||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0},t.prototype.saveCursor=function(e){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0},t.prototype.restoreCursor=function(e){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0},t.prototype.setTitle=function(e){return this._windowTitle=e,this._onTitleChange.fire(e),!0},t.prototype.setIconName=function(e){return this._iconName=e,!0},t.prototype.setOrReportIndexedColor=function(e){for(var t=[],o=e.split(";");o.length>1;){var n=o.shift(),i=o.shift();if(/^\d+$/.exec(n)){var r=parseInt(n);if(0<=r&&r<256)if("?"===i)t.push({type:0,index:r});else{var a=(0,m.parseColor)(i);a&&t.push({type:1,index:r,color:a})}}}return t.length&&this._onColor.fire(t),!0},t.prototype._setOrReportSpecialColor=function(e,t){for(var o=e.split(";"),n=0;n=this._specialColors.length);++n,++t)if("?"===o[n])this._onColor.fire([{type:0,index:this._specialColors[t]}]);else{var i=(0,m.parseColor)(o[n]);i&&this._onColor.fire([{type:1,index:this._specialColors[t],color:i}])}return!0},t.prototype.setOrReportFgColor=function(e){return this._setOrReportSpecialColor(e,0)},t.prototype.setOrReportBgColor=function(e){return this._setOrReportSpecialColor(e,1)},t.prototype.setOrReportCursorColor=function(e){return this._setOrReportSpecialColor(e,2)},t.prototype.restoreIndexedColor=function(e){if(!e)return this._onColor.fire([{type:2}]),!0;for(var t=[],o=e.split(";"),n=0;n=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0},t.prototype.tabSet=function(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0},t.prototype.reverseIndex=function(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){var e=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,e,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0},t.prototype.fullReset=function(){return this._parser.reset(),this._onRequestReset.fire(),!0},t.prototype.reset=function(){this._curAttrData=b.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=b.DEFAULT_ATTR_DATA.clone()},t.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},t.prototype.setgLevel=function(e){return this._charsetService.setgLevel(e),!0},t.prototype.screenAlignmentPattern=function(){var e=new h.CellData;e.content=1<<22|"E".charCodeAt(0),e.fg=this._curAttrData.fg,e.bg=this._curAttrData.bg,this._setCursor(0,0);for(var t=0;t=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.getDisposeArrayDisposable=t.disposeArray=t.Disposable=void 0;var n=function(){function e(){this._disposables=[],this._isDisposed=!1}return e.prototype.dispose=function(){var e,t;this._isDisposed=!0;try{for(var n=o(this._disposables),i=n.next();!i.done;i=n.next())i.value.dispose()}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this._disposables.length=0},e.prototype.register=function(e){return this._disposables.push(e),e},e.prototype.unregister=function(e){var t=this._disposables.indexOf(e);-1!==t&&this._disposables.splice(t,1)},e}();function i(e){var t,n;try{for(var i=o(e),r=i.next();!r.done;r=i.next())r.value.dispose()}catch(e){t={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}e.length=0}t.Disposable=n,t.disposeArray=i,t.getDisposeArrayDisposable=function(e){return{dispose:function(){return i(e)}}}},6114:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isLinux=t.isWindows=t.isIphone=t.isIpad=t.isMac=t.isSafari=t.isLegacyEdge=t.isFirefox=void 0;var o="undefined"==typeof navigator,n=o?"node":navigator.userAgent,i=o?"node":navigator.platform;t.isFirefox=n.includes("Firefox"),t.isLegacyEdge=n.includes("Edge"),t.isSafari=/^((?!chrome|android).)*safari/i.test(n),t.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(i),t.isIpad="iPad"===i,t.isIphone="iPhone"===i,t.isWindows=["Windows","Win16","Win32","WinCE"].includes(i),t.isLinux=i.indexOf("Linux")>=0},6106:function(e,t){var o=this&&this.__generator||function(e,t){var o,n,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,n&&(i=2&r[0]?n.return:r[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,r[1])).done)return i;switch(n=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,n=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]=this._array.length)return[2];if(this._getKey(this._array[t])!==e)return[2];o.label=1;case 1:return[4,this._array[t]];case 2:o.sent(),o.label=3;case 3:if(++te)return this._search(e,t,n-1);if(this._getKey(this._array[n])0&&this._getKey(this._array[n-1])===e;)n--;return n},e}();t.SortedList=n},8273:(e,t)=>{function o(e,t,o,n){if(void 0===o&&(o=0),void 0===n&&(n=e.length),o>=e.length)return e;o=(e.length+o)%e.length,n=n>=e.length?e.length:(e.length+n)%e.length;for(var i=o;i{Object.defineProperty(t,"__esModule",{value:!0}),t.updateWindowsModeWrappedState=void 0;var n=o(643);t.updateWindowsModeWrappedState=function(e){var t=e.buffer.lines.get(e.buffer.ybase+e.buffer.y-1),o=null==t?void 0:t.get(e.cols-1),i=e.buffer.lines.get(e.buffer.ybase+e.buffer.y);i&&o&&(i.isWrapped=o[n.CHAR_DATA_CODE_INDEX]!==n.NULL_CELL_CODE&&o[n.CHAR_DATA_CODE_INDEX]!==n.WHITESPACE_CELL_CODE)}},3734:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedAttrs=t.AttributeData=void 0;var o=function(){function e(){this.fg=0,this.bg=0,this.extended=new n}return e.toColorRGB=function(e){return[e>>>16&255,e>>>8&255,255&e]},e.fromColorRGB=function(e){return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},e.prototype.clone=function(){var t=new e;return t.fg=this.fg,t.bg=this.bg,t.extended=this.extended.clone(),t},e.prototype.isInverse=function(){return 67108864&this.fg},e.prototype.isBold=function(){return 134217728&this.fg},e.prototype.isUnderline=function(){return 268435456&this.fg},e.prototype.isBlink=function(){return 536870912&this.fg},e.prototype.isInvisible=function(){return 1073741824&this.fg},e.prototype.isItalic=function(){return 67108864&this.bg},e.prototype.isDim=function(){return 134217728&this.bg},e.prototype.isStrikethrough=function(){return 2147483648&this.fg},e.prototype.getFgColorMode=function(){return 50331648&this.fg},e.prototype.getBgColorMode=function(){return 50331648&this.bg},e.prototype.isFgRGB=function(){return 50331648==(50331648&this.fg)},e.prototype.isBgRGB=function(){return 50331648==(50331648&this.bg)},e.prototype.isFgPalette=function(){return 16777216==(50331648&this.fg)||33554432==(50331648&this.fg)},e.prototype.isBgPalette=function(){return 16777216==(50331648&this.bg)||33554432==(50331648&this.bg)},e.prototype.isFgDefault=function(){return 0==(50331648&this.fg)},e.prototype.isBgDefault=function(){return 0==(50331648&this.bg)},e.prototype.isAttributeDefault=function(){return 0===this.fg&&0===this.bg},e.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},e.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},e.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},e.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},e.prototype.getUnderlineColor=function(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()},e.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},e.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648==(50331648&this.extended.underlineColor):this.isFgRGB()},e.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?16777216==(50331648&this.extended.underlineColor)||33554432==(50331648&this.extended.underlineColor):this.isFgPalette()},e.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?0==(50331648&this.extended.underlineColor):this.isFgDefault()},e.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},e}();t.AttributeData=o;var n=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=-1),this.underlineStyle=e,this.underlineColor=t}return e.prototype.clone=function(){return new e(this.underlineStyle,this.underlineColor)},e.prototype.isEmpty=function(){return 0===this.underlineStyle},e}();t.ExtendedAttrs=n},9092:function(e,t,o){var n=this&&this.__read||function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var n,i,r=o.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t,o){if(o||2===arguments.length)for(var n,i=0,r=t.length;ithis._rows},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCursorInViewport",{get:function(){var e=this.ybase+this.y-this.ydisp;return e>=0&&et.MAX_BUFFER_SIZE?t.MAX_BUFFER_SIZE:o},e.prototype.fillViewportRows=function(e){if(0===this.lines.length){void 0===e&&(e=a.DEFAULT_ATTR_DATA);for(var t=this._rows;t--;)this.lines.push(this.getBlankLine(e))}},e.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new r.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},e.prototype.resize=function(e,t){var o=this.getNullCell(a.DEFAULT_ATTR_DATA),n=this._getCorrectBufferLength(t);if(n>this.lines.maxLength&&(this.lines.maxLength=n),this.lines.length>0){if(this._cols0&&this.lines.length<=this.ybase+this.y+r+1?(this.ybase--,r++,this.ydisp>0&&this.ydisp--):this.lines.push(new a.BufferLine(e,o)));else for(s=this._rows;s>t;s--)this.lines.length>t+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(n0&&(this.lines.trimStart(c),this.ybase=Math.max(this.ybase-c,0),this.ydisp=Math.max(this.ydisp-c,0),this.savedY=Math.max(this.savedY-c,0)),this.lines.maxLength=n}this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,t-1),r&&(this.y+=r),this.savedX=Math.min(this.savedX,e-1),this.scrollTop=0}if(this.scrollBottom=t-1,this._isReflowEnabled&&(this._reflow(e,t),this._cols>e))for(i=0;ithis._cols?this._reflowLarger(e,t):this._reflowSmaller(e,t))},e.prototype._reflowLarger=function(e,t){var o=(0,p.reflowLargerGetLinesToRemove)(this.lines,this._cols,e,this.ybase+this.y,this.getNullCell(a.DEFAULT_ATTR_DATA));if(o.length>0){var n=(0,p.reflowLargerCreateNewLayout)(this.lines,o);(0,p.reflowLargerApplyNewLayout)(this.lines,n.layout),this._reflowLargerAdjustViewport(e,t,n.countRemoved)}},e.prototype._reflowLargerAdjustViewport=function(e,t,o){for(var n=this.getNullCell(a.DEFAULT_ATTR_DATA),i=o;i-- >0;)0===this.ybase?(this.y>0&&this.y--,this.lines.length=0;c--){var l=this.lines.get(c);if(!(!l||!l.isWrapped&&l.getTrimmedLength()<=e)){for(var u=[l];l.isWrapped&&c>0;)l=this.lines.get(--c),u.unshift(l);var b=this.ybase+this.y;if(!(b>=c&&b0&&(r.push({start:c+u.length+s,newLines:z}),s+=z.length),u.push.apply(u,i([],n(z),!1));var m=h.length-1,v=h[m];0===v&&(v=h[--m]);for(var g=u.length-f-1,y=M;g>=0;){var q=Math.min(y,v);if(void 0===u[m])break;if(u[m].copyCellsFrom(u[g],y-q,v-q,q,!0),0==(v-=q)&&(v=h[--m]),0==(y-=q)){g--;var _=Math.max(g,0);y=(0,p.getWrappedLineTrimmedLength)(u,_,this._cols)}}for(O=0;O0;)0===this.ybase?this.y0){var R=[],w=[];for(O=0;O=0;O--)if(E&&E.start>C+T){for(var x=E.newLines.length-1;x>=0;x--)this.lines.set(O--,E.newLines[x]);O++,R.push({index:C+1,amount:E.newLines.length}),T+=E.newLines.length,E=r[++S]}else this.lines.set(O,w[C--]);var N=0;for(O=R.length-1;O>=0;O--)R[O].index+=N,this.lines.onInsertEmitter.fire(R[O]),N+=R[O].amount;var B=Math.max(0,L+s-this.lines.maxLength);B>0&&this.lines.onTrimEmitter.fire(B)}},e.prototype.stringIndexToBufferIndex=function(e,t,o){for(void 0===o&&(o=!1);t;){var n=this.lines.get(e);if(!n)return[-1,-1];for(var i=o?n.getTrimmedLength():n.length,r=0;r0&&this.lines.get(t).isWrapped;)t--;for(;o+10;);return e>=this._cols?this._cols-1:e<0?0:e},e.prototype.nextStop=function(e){for(null==e&&(e=this.x);!this.tabs[++e]&&e=this._cols?this._cols-1:e<0?0:e},e.prototype.clearMarkers=function(e){this._isClearing=!0;for(var t=0;t=e.index&&(o.line+=e.amount)})),o.register(this.lines.onDelete(function(e){o.line>=e.index&&o.linee.index&&(o.line-=e.amount)})),o.register(o.onDispose(function(){return t._removeMarker(o)})),o},e.prototype._removeMarker=function(e){this._isClearing||this.markers.splice(this.markers.indexOf(e),1)},e.prototype.iterator=function(e,t,o,n,i){return new M(this,e,t,o,n,i)},e}();t.Buffer=d;var M=function(){function e(e,t,o,n,i,r){void 0===o&&(o=0),void 0===n&&(n=e.lines.length),void 0===i&&(i=0),void 0===r&&(r=0),this._buffer=e,this._trimRight=t,this._startIndex=o,this._endIndex=n,this._startOverscan=i,this._endOverscan=r,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return e.prototype.hasNext=function(){return this._currentthis._endIndex+this._endOverscan&&(e.last=this._endIndex+this._endOverscan),e.first=Math.max(e.first,0),e.last=Math.min(e.last,this._buffer.lines.length);for(var t="",o=e.first;o<=e.last;++o)t+=this._buffer.translateBufferLineToString(o,this._trimRight);return this._current=e.last+1,{range:e,content:t}},e}();t.BufferStringIterator=M},8437:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLine=t.DEFAULT_ATTR_DATA=void 0;var n=o(482),i=o(643),r=o(511),a=o(3734);t.DEFAULT_ATTR_DATA=Object.freeze(new a.AttributeData);var s=function(){function e(e,t,o){void 0===o&&(o=!1),this.isWrapped=o,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*e);for(var n=t||r.CellData.fromCharData([0,i.NULL_CELL_CHAR,i.NULL_CELL_WIDTH,i.NULL_CELL_CODE]),a=0;a>22,2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):o]},e.prototype.set=function(e,t){this._data[3*e+1]=t[i.CHAR_DATA_ATTR_INDEX],t[i.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[e]=t[1],this._data[3*e+0]=2097152|e|t[i.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*e+0]=t[i.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|t[i.CHAR_DATA_WIDTH_INDEX]<<22},e.prototype.getWidth=function(e){return this._data[3*e+0]>>22},e.prototype.hasWidth=function(e){return 12582912&this._data[3*e+0]},e.prototype.getFg=function(e){return this._data[3*e+1]},e.prototype.getBg=function(e){return this._data[3*e+2]},e.prototype.hasContent=function(e){return 4194303&this._data[3*e+0]},e.prototype.getCodePoint=function(e){var t=this._data[3*e+0];return 2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):2097151&t},e.prototype.isCombined=function(e){return 2097152&this._data[3*e+0]},e.prototype.getString=function(e){var t=this._data[3*e+0];return 2097152&t?this._combined[e]:2097151&t?(0,n.stringFromCodePoint)(2097151&t):""},e.prototype.loadCell=function(e,t){var o=3*e;return t.content=this._data[o+0],t.fg=this._data[o+1],t.bg=this._data[o+2],2097152&t.content&&(t.combinedData=this._combined[e]),268435456&t.bg&&(t.extended=this._extendedAttrs[e]),t},e.prototype.setCell=function(e,t){2097152&t.content&&(this._combined[e]=t.combinedData),268435456&t.bg&&(this._extendedAttrs[e]=t.extended),this._data[3*e+0]=t.content,this._data[3*e+1]=t.fg,this._data[3*e+2]=t.bg},e.prototype.setCellFromCodePoint=function(e,t,o,n,i,r){268435456&i&&(this._extendedAttrs[e]=r),this._data[3*e+0]=t|o<<22,this._data[3*e+1]=n,this._data[3*e+2]=i},e.prototype.addCodepointToCell=function(e,t){var o=this._data[3*e+0];2097152&o?this._combined[e]+=(0,n.stringFromCodePoint)(t):(2097151&o?(this._combined[e]=(0,n.stringFromCodePoint)(2097151&o)+(0,n.stringFromCodePoint)(t),o&=-2097152,o|=2097152):o=t|1<<22,this._data[3*e+0]=o)},e.prototype.insertCells=function(e,t,o,n){if((e%=this.length)&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==n?void 0:n.fg)||0,(null==n?void 0:n.bg)||0,(null==n?void 0:n.extended)||new a.ExtendedAttrs),t=0;--s)this.setCell(e+t+s,this.loadCell(e+s,i));for(s=0;sthis.length){var o=new Uint32Array(3*e);this.length&&(3*e=e&&delete this._combined[r]}}else this._data=new Uint32Array(0),this._combined={};this.length=e}},e.prototype.fill=function(e){this._combined={},this._extendedAttrs={};for(var t=0;t=0;--e)if(4194303&this._data[3*e+0])return e+(this._data[3*e+0]>>22);return 0},e.prototype.copyCellsFrom=function(e,t,o,n,i){var r=e._data;if(i)for(var a=n-1;a>=0;a--)for(var s=0;s<3;s++)this._data[3*(o+a)+s]=r[3*(t+a)+s];else for(a=0;a=t&&(this._combined[p-t+o]=e._combined[p])}},e.prototype.translateToString=function(e,t,o){void 0===e&&(e=!1),void 0===t&&(t=0),void 0===o&&(o=this.length),e&&(o=Math.min(o,this.getTrimmedLength()));for(var r="";t>22||1}return r},e}();t.BufferLine=s},4841:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getRangeLength=void 0,t.getRangeLength=function(e,t){if(e.start.y>e.end.y)throw new Error("Buffer range end ("+e.end.x+", "+e.end.y+") cannot be before start ("+e.start.x+", "+e.start.y+")");return t*(e.end.y-e.start.y)+(e.end.x-e.start.x+1)}},4634:(e,t)=>{function o(e,t,o){if(t===e.length-1)return e[t].getTrimmedLength();var n=!e[t].hasContent(o-1)&&1===e[t].getWidth(o-1),i=2===e[t+1].getWidth(0);return n&&i?o-1:o}Object.defineProperty(t,"__esModule",{value:!0}),t.getWrappedLineTrimmedLength=t.reflowSmallerGetNewLineLengths=t.reflowLargerApplyNewLayout=t.reflowLargerCreateNewLayout=t.reflowLargerGetLinesToRemove=void 0,t.reflowLargerGetLinesToRemove=function(e,t,n,i,r){for(var a=[],s=0;s=s&&i0&&(m>u||0===l[m].getTrimmedLength());m--)A++;A>0&&(a.push(s+l.length-A),a.push(A)),s+=l.length-1}}}return a},t.reflowLargerCreateNewLayout=function(e,t){for(var o=[],n=0,i=t[n],r=0,a=0;ap&&(a-=p,s++);var l=2===e[s].getWidth(a-1);l&&a--;var u=l?n-1:n;i.push(u),c+=u}return i},t.getWrappedLineTrimmedLength=o},5295:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0}),t.BufferSet=void 0;var r=o(9092),a=o(8460),s=function(e){function t(t,o){var n=e.call(this)||this;return n._optionsService=t,n._bufferService=o,n._onBufferActivate=n.register(new a.EventEmitter),n.reset(),n}return i(t,e),Object.defineProperty(t.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),t.prototype.reset=function(){this._normal=new r.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new r.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()},Object.defineProperty(t.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),t.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},t.prototype.activateAltBuffer=function(e){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(e),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},t.prototype.resize=function(e,t){this._normal.resize(e,t),this._alt.resize(e,t)},t.prototype.setupTabStops=function(e){this._normal.setupTabStops(e),this._alt.setupTabStops(e)},t}(o(844).Disposable);t.BufferSet=s},511:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0}),t.CellData=void 0;var r=o(482),a=o(643),s=o(3734),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.content=0,t.fg=0,t.bg=0,t.extended=new s.ExtendedAttrs,t.combinedData="",t}return i(t,e),t.fromCharData=function(e){var o=new t;return o.setFromCharData(e),o},t.prototype.isCombined=function(){return 2097152&this.content},t.prototype.getWidth=function(){return this.content>>22},t.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,r.stringFromCodePoint)(2097151&this.content):""},t.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},t.prototype.setFromCharData=function(e){this.fg=e[a.CHAR_DATA_ATTR_INDEX],this.bg=0;var t=!1;if(e[a.CHAR_DATA_CHAR_INDEX].length>2)t=!0;else if(2===e[a.CHAR_DATA_CHAR_INDEX].length){var o=e[a.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=o&&o<=56319){var n=e[a.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=n&&n<=57343?this.content=1024*(o-55296)+n-56320+65536|e[a.CHAR_DATA_WIDTH_INDEX]<<22:t=!0}else t=!0}else this.content=e[a.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|e[a.CHAR_DATA_WIDTH_INDEX]<<22;t&&(this.combinedData=e[a.CHAR_DATA_CHAR_INDEX],this.content=2097152|e[a.CHAR_DATA_WIDTH_INDEX]<<22)},t.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},t}(s.AttributeData);t.CellData=c},643:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WHITESPACE_CELL_CODE=t.WHITESPACE_CELL_WIDTH=t.WHITESPACE_CELL_CHAR=t.NULL_CELL_CODE=t.NULL_CELL_WIDTH=t.NULL_CELL_CHAR=t.CHAR_DATA_CODE_INDEX=t.CHAR_DATA_WIDTH_INDEX=t.CHAR_DATA_CHAR_INDEX=t.CHAR_DATA_ATTR_INDEX=t.DEFAULT_ATTR=t.DEFAULT_COLOR=void 0,t.DEFAULT_COLOR=256,t.DEFAULT_ATTR=256|t.DEFAULT_COLOR<<9,t.CHAR_DATA_ATTR_INDEX=0,t.CHAR_DATA_CHAR_INDEX=1,t.CHAR_DATA_WIDTH_INDEX=2,t.CHAR_DATA_CODE_INDEX=3,t.NULL_CELL_CHAR="",t.NULL_CELL_WIDTH=1,t.NULL_CELL_CODE=0,t.WHITESPACE_CELL_CHAR=" ",t.WHITESPACE_CELL_WIDTH=1,t.WHITESPACE_CELL_CODE=32},4863:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0}),t.Marker=void 0;var r=o(8460),a=function(e){function t(o){var n=e.call(this)||this;return n.line=o,n._id=t._nextId++,n.isDisposed=!1,n._onDispose=new r.EventEmitter,n}return i(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),e.prototype.dispose.call(this))},t._nextId=1,t}(o(844).Disposable);t.Marker=a},7116:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_CHARSET=t.CHARSETS=void 0,t.CHARSETS={},t.DEFAULT_CHARSET=t.CHARSETS.B,t.CHARSETS[0]={"`":"◆",a:"▒",b:"␉",c:"␌",d:"␍",e:"␊",f:"°",g:"±",h:"␤",i:"␋",j:"┘",k:"┐",l:"┌",m:"└",n:"┼",o:"⎺",p:"⎻",q:"─",r:"⎼",s:"⎽",t:"├",u:"┤",v:"┴",w:"┬",x:"│",y:"≤",z:"≥","{":"π","|":"≠","}":"£","~":"·"},t.CHARSETS.A={"#":"£"},t.CHARSETS.B=void 0,t.CHARSETS[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"},t.CHARSETS.C=t.CHARSETS[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"},t.CHARSETS.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"},t.CHARSETS.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"},t.CHARSETS.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"},t.CHARSETS.E=t.CHARSETS[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"},t.CHARSETS.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"},t.CHARSETS.H=t.CHARSETS[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"}},2584:(e,t)=>{var o,n;Object.defineProperty(t,"__esModule",{value:!0}),t.C1_ESCAPED=t.C1=t.C0=void 0,function(e){e.NUL="\0",e.SOH="",e.STX="",e.ETX="",e.EOT="",e.ENQ="",e.ACK="",e.BEL="",e.BS="\b",e.HT="\t",e.LF="\n",e.VT="\v",e.FF="\f",e.CR="\r",e.SO="",e.SI="",e.DLE="",e.DC1="",e.DC2="",e.DC3="",e.DC4="",e.NAK="",e.SYN="",e.ETB="",e.CAN="",e.EM="",e.SUB="",e.ESC="",e.FS="",e.GS="",e.RS="",e.US="",e.SP=" ",e.DEL=""}(o=t.C0||(t.C0={})),(n=t.C1||(t.C1={})).PAD="€",n.HOP="",n.BPH="‚",n.NBH="ƒ",n.IND="„",n.NEL="…",n.SSA="†",n.ESA="‡",n.HTS="ˆ",n.HTJ="‰",n.VTS="Š",n.PLD="‹",n.PLU="Œ",n.RI="",n.SS2="Ž",n.SS3="",n.DCS="",n.PU1="‘",n.PU2="’",n.STS="“",n.CCH="”",n.MW="•",n.SPA="–",n.EPA="—",n.SOS="˜",n.SGCI="™",n.SCI="š",n.CSI="›",n.ST="œ",n.OSC="",n.PM="ž",n.APC="Ÿ",(t.C1_ESCAPED||(t.C1_ESCAPED={})).ST=o.ESC+"\\"},7399:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.evaluateKeyboardEvent=void 0;var n=o(2584),i={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};t.evaluateKeyboardEvent=function(e,t,o,r){var a={type:0,cancel:!1,key:void 0},s=(e.shiftKey?1:0)|(e.altKey?2:0)|(e.ctrlKey?4:0)|(e.metaKey?8:0);switch(e.keyCode){case 0:"UIKeyInputUpArrow"===e.key?a.key=t?n.C0.ESC+"OA":n.C0.ESC+"[A":"UIKeyInputLeftArrow"===e.key?a.key=t?n.C0.ESC+"OD":n.C0.ESC+"[D":"UIKeyInputRightArrow"===e.key?a.key=t?n.C0.ESC+"OC":n.C0.ESC+"[C":"UIKeyInputDownArrow"===e.key&&(a.key=t?n.C0.ESC+"OB":n.C0.ESC+"[B");break;case 8:if(e.shiftKey){a.key=n.C0.BS;break}if(e.altKey){a.key=n.C0.ESC+n.C0.DEL;break}a.key=n.C0.DEL;break;case 9:if(e.shiftKey){a.key=n.C0.ESC+"[Z";break}a.key=n.C0.HT,a.cancel=!0;break;case 13:a.key=e.altKey?n.C0.ESC+n.C0.CR:n.C0.CR,a.cancel=!0;break;case 27:a.key=n.C0.ESC,e.altKey&&(a.key=n.C0.ESC+n.C0.ESC),a.cancel=!0;break;case 37:if(e.metaKey)break;s?(a.key=n.C0.ESC+"[1;"+(s+1)+"D",a.key===n.C0.ESC+"[1;3D"&&(a.key=n.C0.ESC+(o?"b":"[1;5D"))):a.key=t?n.C0.ESC+"OD":n.C0.ESC+"[D";break;case 39:if(e.metaKey)break;s?(a.key=n.C0.ESC+"[1;"+(s+1)+"C",a.key===n.C0.ESC+"[1;3C"&&(a.key=n.C0.ESC+(o?"f":"[1;5C"))):a.key=t?n.C0.ESC+"OC":n.C0.ESC+"[C";break;case 38:if(e.metaKey)break;s?(a.key=n.C0.ESC+"[1;"+(s+1)+"A",o||a.key!==n.C0.ESC+"[1;3A"||(a.key=n.C0.ESC+"[1;5A")):a.key=t?n.C0.ESC+"OA":n.C0.ESC+"[A";break;case 40:if(e.metaKey)break;s?(a.key=n.C0.ESC+"[1;"+(s+1)+"B",o||a.key!==n.C0.ESC+"[1;3B"||(a.key=n.C0.ESC+"[1;5B")):a.key=t?n.C0.ESC+"OB":n.C0.ESC+"[B";break;case 45:e.shiftKey||e.ctrlKey||(a.key=n.C0.ESC+"[2~");break;case 46:a.key=s?n.C0.ESC+"[3;"+(s+1)+"~":n.C0.ESC+"[3~";break;case 36:a.key=s?n.C0.ESC+"[1;"+(s+1)+"H":t?n.C0.ESC+"OH":n.C0.ESC+"[H";break;case 35:a.key=s?n.C0.ESC+"[1;"+(s+1)+"F":t?n.C0.ESC+"OF":n.C0.ESC+"[F";break;case 33:e.shiftKey?a.type=2:e.ctrlKey?a.key=n.C0.ESC+"[5;"+(s+1)+"~":a.key=n.C0.ESC+"[5~";break;case 34:e.shiftKey?a.type=3:e.ctrlKey?a.key=n.C0.ESC+"[6;"+(s+1)+"~":a.key=n.C0.ESC+"[6~";break;case 112:a.key=s?n.C0.ESC+"[1;"+(s+1)+"P":n.C0.ESC+"OP";break;case 113:a.key=s?n.C0.ESC+"[1;"+(s+1)+"Q":n.C0.ESC+"OQ";break;case 114:a.key=s?n.C0.ESC+"[1;"+(s+1)+"R":n.C0.ESC+"OR";break;case 115:a.key=s?n.C0.ESC+"[1;"+(s+1)+"S":n.C0.ESC+"OS";break;case 116:a.key=s?n.C0.ESC+"[15;"+(s+1)+"~":n.C0.ESC+"[15~";break;case 117:a.key=s?n.C0.ESC+"[17;"+(s+1)+"~":n.C0.ESC+"[17~";break;case 118:a.key=s?n.C0.ESC+"[18;"+(s+1)+"~":n.C0.ESC+"[18~";break;case 119:a.key=s?n.C0.ESC+"[19;"+(s+1)+"~":n.C0.ESC+"[19~";break;case 120:a.key=s?n.C0.ESC+"[20;"+(s+1)+"~":n.C0.ESC+"[20~";break;case 121:a.key=s?n.C0.ESC+"[21;"+(s+1)+"~":n.C0.ESC+"[21~";break;case 122:a.key=s?n.C0.ESC+"[23;"+(s+1)+"~":n.C0.ESC+"[23~";break;case 123:a.key=s?n.C0.ESC+"[24;"+(s+1)+"~":n.C0.ESC+"[24~";break;default:if(!e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)if(o&&!r||!e.altKey||e.metaKey)!o||e.altKey||e.ctrlKey||e.shiftKey||!e.metaKey?e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.keyCode>=48&&1===e.key.length?a.key=e.key:e.key&&e.ctrlKey&&("_"===e.key&&(a.key=n.C0.US),"@"===e.key&&(a.key=n.C0.NUL)):65===e.keyCode&&(a.type=1);else{var c=i[e.keyCode],p=null==c?void 0:c[e.shiftKey?1:0];if(p)a.key=n.C0.ESC+p;else if(e.keyCode>=65&&e.keyCode<=90){var l=e.ctrlKey?e.keyCode-64:e.keyCode+32,u=String.fromCharCode(l);e.shiftKey&&(u=u.toUpperCase()),a.key=n.C0.ESC+u}else"Dead"===e.key&&e.code.startsWith("Key")&&(u=e.code.slice(3,4),e.shiftKey||(u=u.toLowerCase()),a.key=n.C0.ESC+u,a.cancel=!0)}else e.keyCode>=65&&e.keyCode<=90?a.key=String.fromCharCode(e.keyCode-64):32===e.keyCode?a.key=n.C0.NUL:e.keyCode>=51&&e.keyCode<=55?a.key=String.fromCharCode(e.keyCode-51+27):56===e.keyCode?a.key=n.C0.DEL:219===e.keyCode?a.key=n.C0.ESC:220===e.keyCode?a.key=n.C0.FS:221===e.keyCode&&(a.key=n.C0.GS)}return a}},482:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Utf8ToUtf32=t.StringToUtf32=t.utf32ToString=t.stringFromCodePoint=void 0,t.stringFromCodePoint=function(e){return e>65535?(e-=65536,String.fromCharCode(55296+(e>>10))+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)},t.utf32ToString=function(e,t,o){void 0===t&&(t=0),void 0===o&&(o=e.length);for(var n="",i=t;i65535?(r-=65536,n+=String.fromCharCode(55296+(r>>10))+String.fromCharCode(r%1024+56320)):n+=String.fromCharCode(r)}return n};var o=function(){function e(){this._interim=0}return e.prototype.clear=function(){this._interim=0},e.prototype.decode=function(e,t){var o=e.length;if(!o)return 0;var n=0,i=0;this._interim&&(56320<=(s=e.charCodeAt(i++))&&s<=57343?t[n++]=1024*(this._interim-55296)+s-56320+65536:(t[n++]=this._interim,t[n++]=s),this._interim=0);for(var r=i;r=o)return this._interim=a,n;var s;56320<=(s=e.charCodeAt(r))&&s<=57343?t[n++]=1024*(a-55296)+s-56320+65536:(t[n++]=a,t[n++]=s)}else 65279!==a&&(t[n++]=a)}return n},e}();t.StringToUtf32=o;var n=function(){function e(){this.interim=new Uint8Array(3)}return e.prototype.clear=function(){this.interim.fill(0)},e.prototype.decode=function(e,t){var o=e.length;if(!o)return 0;var n,i,r,a,s=0,c=0,p=0;if(this.interim[0]){var l=!1,u=this.interim[0];u&=192==(224&u)?31:224==(240&u)?15:7;for(var b=0,d=void 0;(d=63&this.interim[++b])&&b<4;)u<<=6,u|=d;for(var M=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,h=M-b;p=o)return 0;if(128!=(192&(d=e[p++]))){p--,l=!0;break}this.interim[b++]=d,u<<=6,u|=63&d}l||(2===M?u<128?p--:t[s++]=u:3===M?u<2048||u>=55296&&u<=57343||65279===u||(t[s++]=u):u<65536||u>1114111||(t[s++]=u)),this.interim.fill(0)}for(var f=o-4,z=p;z=o)return this.interim[0]=n,s;if(128!=(192&(i=e[z++]))){z--;continue}if((c=(31&n)<<6|63&i)<128){z--;continue}t[s++]=c}else if(224==(240&n)){if(z>=o)return this.interim[0]=n,s;if(128!=(192&(i=e[z++]))){z--;continue}if(z>=o)return this.interim[0]=n,this.interim[1]=i,s;if(128!=(192&(r=e[z++]))){z--;continue}if((c=(15&n)<<12|(63&i)<<6|63&r)<2048||c>=55296&&c<=57343||65279===c)continue;t[s++]=c}else if(240==(248&n)){if(z>=o)return this.interim[0]=n,s;if(128!=(192&(i=e[z++]))){z--;continue}if(z>=o)return this.interim[0]=n,this.interim[1]=i,s;if(128!=(192&(r=e[z++]))){z--;continue}if(z>=o)return this.interim[0]=n,this.interim[1]=i,this.interim[2]=r,s;if(128!=(192&(a=e[z++]))){z--;continue}if((c=(7&n)<<18|(63&i)<<12|(63&r)<<6|63&a)<65536||c>1114111)continue;t[s++]=c}}return s},e}();t.Utf8ToUtf32=n},225:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeV6=void 0;var n,i=o(8273),r=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],a=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],s=function(){function e(){if(this.version="6",!n){n=new Uint8Array(65536),(0,i.fill)(n,1),n[0]=0,(0,i.fill)(n,0,1,32),(0,i.fill)(n,0,127,160),(0,i.fill)(n,2,4352,4448),n[9001]=2,n[9002]=2,(0,i.fill)(n,2,11904,42192),n[12351]=1,(0,i.fill)(n,2,44032,55204),(0,i.fill)(n,2,63744,64256),(0,i.fill)(n,2,65040,65050),(0,i.fill)(n,2,65072,65136),(0,i.fill)(n,2,65280,65377),(0,i.fill)(n,2,65504,65511);for(var e=0;et[i][1])return!1;for(;i>=n;)if(e>t[o=n+i>>1][1])n=o+1;else{if(!(e=131072&&e<=196605||e>=196608&&e<=262141?2:1},e}();t.UnicodeV6=s},5981:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WriteBuffer=void 0;var n=o(8460),i="undefined"==typeof queueMicrotask?function(e){Promise.resolve().then(e)}:queueMicrotask,r=function(){function e(e){this._action=e,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._onWriteParsed=new n.EventEmitter}return Object.defineProperty(e.prototype,"onWriteParsed",{get:function(){return this._onWriteParsed.event},enumerable:!1,configurable:!0}),e.prototype.writeSync=function(e,t){if(void 0!==t&&this._syncCalls>t)this._syncCalls=0;else if(this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(void 0),this._syncCalls++,!this._isSyncWriting){var o;for(this._isSyncWriting=!0;o=this._writeBuffer.shift();){this._action(o);var n=this._callbacks.shift();n&&n()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}},e.prototype.write=function(e,t){var o=this;if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return o._innerWrite()})),this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t)},e.prototype._innerWrite=function(e,t){var o=this;void 0===e&&(e=0),void 0===t&&(t=!0);for(var n=e||Date.now();this._writeBuffer.length>this._bufferOffset;){var r=this._writeBuffer[this._bufferOffset],a=this._action(r,t);if(a)return void a.catch(function(e){return i(function(){throw e}),Promise.resolve(!1)}).then(function(e){return Date.now()-n>=12?setTimeout(function(){return o._innerWrite(0,e)}):o._innerWrite(n,e)});var s=this._callbacks[this._bufferOffset];if(s&&s(),this._bufferOffset++,this._pendingData-=r.length,Date.now()-n>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(function(){return o._innerWrite()})):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()},e}();t.WriteBuffer=r},5941:function(e,t){var o=this&&this.__read||function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var n,i,r=o.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.toRgbString=t.parseColor=void 0;var n=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,i=/^[\da-f]+$/;function r(e,t){var o=e.toString(16),n=o.length<2?"0"+o:o;switch(t){case 4:return o[0];case 8:return n;case 12:return(n+n).slice(0,3);default:return n+n}}t.parseColor=function(e){if(e){var t=e.toLowerCase();if(0===t.indexOf("rgb:")){t=t.slice(4);var o=n.exec(t);if(o){var r=o[1]?15:o[4]?255:o[7]?4095:65535;return[Math.round(parseInt(o[1]||o[4]||o[7]||o[10],16)/r*255),Math.round(parseInt(o[2]||o[5]||o[8]||o[11],16)/r*255),Math.round(parseInt(o[3]||o[6]||o[9]||o[12],16)/r*255)]}}else if(0===t.indexOf("#")&&(t=t.slice(1),i.exec(t)&&[3,6,9,12].includes(t.length))){for(var a=t.length/3,s=[0,0,0],c=0;c<3;++c){var p=parseInt(t.slice(a*c,a*c+a),16);s[c]=1===a?p<<4:2===a?p:3===a?p>>4:p>>8}return s}}},t.toRgbString=function(e,t){void 0===t&&(t=16);var n=o(e,3),i=n[0],a=n[1],s=n[2];return"rgb:"+r(i,t)+"/"+r(a,t)+"/"+r(s,t)}},5770:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PAYLOAD_LIMIT=void 0,t.PAYLOAD_LIMIT=1e7},6351:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DcsHandler=t.DcsParser=void 0;var n=o(482),i=o(8742),r=o(5770),a=[],s=function(){function e(){this._handlers=Object.create(null),this._active=a,this._ident=0,this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return e.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=a},e.prototype.registerHandler=function(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);var o=this._handlers[e];return o.push(t),{dispose:function(){var e=o.indexOf(t);-1!==e&&o.splice(e,1)}}},e.prototype.clearHandler=function(e){this._handlers[e]&&delete this._handlers[e]},e.prototype.setHandlerFallback=function(e){this._handlerFb=e},e.prototype.reset=function(){if(this._active.length)for(var e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].unhook(!1);this._stack.paused=!1,this._active=a,this._ident=0},e.prototype.hook=function(e,t){if(this.reset(),this._ident=e,this._active=this._handlers[e]||a,this._active.length)for(var o=this._active.length-1;o>=0;o--)this._active[o].hook(t);else this._handlerFb(this._ident,"HOOK",t)},e.prototype.put=function(e,t,o){if(this._active.length)for(var i=this._active.length-1;i>=0;i--)this._active[i].put(e,t,o);else this._handlerFb(this._ident,"PUT",(0,n.utf32ToString)(e,t,o))},e.prototype.unhook=function(e,t){if(void 0===t&&(t=!0),this._active.length){var o=!1,n=this._active.length-1,i=!1;if(this._stack.paused&&(n=this._stack.loopPosition-1,o=t,i=this._stack.fallThrough,this._stack.paused=!1),!i&&!1===o){for(;n>=0&&!0!==(o=this._active[n].unhook(e));n--)if(o instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=n,this._stack.fallThrough=!1,o;n--}for(;n>=0;n--)if((o=this._active[n].unhook(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=n,this._stack.fallThrough=!0,o}else this._handlerFb(this._ident,"UNHOOK",e);this._active=a,this._ident=0},e}();t.DcsParser=s;var c=new i.Params;c.addParam(0);var p=function(){function e(e){this._handler=e,this._data="",this._params=c,this._hitLimit=!1}return e.prototype.hook=function(e){this._params=e.length>1||e.params[0]?e.clone():c,this._data="",this._hitLimit=!1},e.prototype.put=function(e,t,o){this._hitLimit||(this._data+=(0,n.utf32ToString)(e,t,o),this._data.length>r.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},e.prototype.unhook=function(e){var t=this,o=!1;if(this._hitLimit)o=!1;else if(e&&(o=this._handler(this._data,this._params))instanceof Promise)return o.then(function(e){return t._params=c,t._data="",t._hitLimit=!1,e});return this._params=c,this._data="",this._hitLimit=!1,o},e}();t.DcsHandler=p},2015:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0}),t.EscapeSequenceParser=t.VT500_TRANSITION_TABLE=t.TransitionTable=void 0;var r=o(844),a=o(8273),s=o(8742),c=o(6242),p=o(6351),l=function(){function e(e){this.table=new Uint8Array(e)}return e.prototype.setDefault=function(e,t){(0,a.fill)(this.table,e<<4|t)},e.prototype.add=function(e,t,o,n){this.table[t<<8|e]=o<<4|n},e.prototype.addMany=function(e,t,o,n){for(var i=0;i1)throw new Error("only one byte as prefix supported");if((o=e.prefix.charCodeAt(0))&&60>o||o>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(e.intermediates){if(e.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var n=0;ni||i>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");o<<=8,o|=i}}if(1!==e.final.length)throw new Error("final must be a single byte");var r=e.final.charCodeAt(0);if(t[0]>r||r>t[1])throw new Error("final must be in range "+t[0]+" .. "+t[1]);return(o<<=8)|r},o.prototype.identToString=function(e){for(var t=[];e;)t.push(String.fromCharCode(255&e)),e>>=8;return t.reverse().join("")},o.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},o.prototype.setPrintHandler=function(e){this._printHandler=e},o.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},o.prototype.registerEscHandler=function(e,t){var o=this._identifier(e,[48,126]);void 0===this._escHandlers[o]&&(this._escHandlers[o]=[]);var n=this._escHandlers[o];return n.push(t),{dispose:function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}},o.prototype.clearEscHandler=function(e){this._escHandlers[this._identifier(e,[48,126])]&&delete this._escHandlers[this._identifier(e,[48,126])]},o.prototype.setEscHandlerFallback=function(e){this._escHandlerFb=e},o.prototype.setExecuteHandler=function(e,t){this._executeHandlers[e.charCodeAt(0)]=t},o.prototype.clearExecuteHandler=function(e){this._executeHandlers[e.charCodeAt(0)]&&delete this._executeHandlers[e.charCodeAt(0)]},o.prototype.setExecuteHandlerFallback=function(e){this._executeHandlerFb=e},o.prototype.registerCsiHandler=function(e,t){var o=this._identifier(e);void 0===this._csiHandlers[o]&&(this._csiHandlers[o]=[]);var n=this._csiHandlers[o];return n.push(t),{dispose:function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}},o.prototype.clearCsiHandler=function(e){this._csiHandlers[this._identifier(e)]&&delete this._csiHandlers[this._identifier(e)]},o.prototype.setCsiHandlerFallback=function(e){this._csiHandlerFb=e},o.prototype.registerDcsHandler=function(e,t){return this._dcsParser.registerHandler(this._identifier(e),t)},o.prototype.clearDcsHandler=function(e){this._dcsParser.clearHandler(this._identifier(e))},o.prototype.setDcsHandlerFallback=function(e){this._dcsParser.setHandlerFallback(e)},o.prototype.registerOscHandler=function(e,t){return this._oscParser.registerHandler(e,t)},o.prototype.clearOscHandler=function(e){this._oscParser.clearHandler(e)},o.prototype.setOscHandlerFallback=function(e){this._oscParser.setHandlerFallback(e)},o.prototype.setErrorHandler=function(e){this._errorHandler=e},o.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},o.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,0!==this._parseStack.state&&(this._parseStack.state=2,this._parseStack.handlers=[])},o.prototype._preserveStack=function(e,t,o,n,i){this._parseStack.state=e,this._parseStack.handlers=t,this._parseStack.handlerPos=o,this._parseStack.transition=n,this._parseStack.chunkPos=i},o.prototype.parse=function(e,t,o){var n,i=0,r=0,a=0;if(this._parseStack.state)if(2===this._parseStack.state)this._parseStack.state=0,a=this._parseStack.chunkPos+1;else{if(void 0===o||1===this._parseStack.state)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");var s=this._parseStack.handlers,c=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(!1===o&&c>-1)for(;c>=0&&!0!==(n=s[c](this._params));c--)if(n instanceof Promise)return this._parseStack.handlerPos=c,n;this._parseStack.handlers=[];break;case 4:if(!1===o&&c>-1)for(;c>=0&&!0!==(n=s[c]());c--)if(n instanceof Promise)return this._parseStack.handlerPos=c,n;this._parseStack.handlers=[];break;case 6:if(i=e[this._parseStack.chunkPos],n=this._dcsParser.unhook(24!==i&&26!==i,o))return n;27===i&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(i=e[this._parseStack.chunkPos],n=this._oscParser.end(24!==i&&26!==i,o))return n;27===i&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,a=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(var p=a;p>4){case 2:for(var l=p+1;;++l){if(l>=t||(i=e[l])<32||i>126&&i=t||(i=e[l])<32||i>126&&i=t||(i=e[l])<32||i>126&&i=t||(i=e[l])<32||i>126&&i=0&&!0!==(n=s[b](this._params));b--)if(n instanceof Promise)return this._preserveStack(3,s,b,r,p),n;b<0&&this._csiHandlerFb(this._collect<<8|i,this._params),this.precedingCodepoint=0;break;case 8:do{switch(i){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(i-48)}}while(++p47&&i<60);p--;break;case 9:this._collect<<=8,this._collect|=i;break;case 10:for(var d=this._escHandlers[this._collect<<8|i],M=d?d.length-1:-1;M>=0&&!0!==(n=d[M]());M--)if(n instanceof Promise)return this._preserveStack(4,d,M,r,p),n;M<0&&this._escHandlerFb(this._collect<<8|i),this.precedingCodepoint=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|i,this._params);break;case 13:for(var h=p+1;;++h)if(h>=t||24===(i=e[h])||26===i||27===i||i>127&&i=t||(i=e[f])<32||i>127&&i{Object.defineProperty(t,"__esModule",{value:!0}),t.OscHandler=t.OscParser=void 0;var n=o(5770),i=o(482),r=[],a=function(){function e(){this._state=0,this._active=r,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return e.prototype.registerHandler=function(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);var o=this._handlers[e];return o.push(t),{dispose:function(){var e=o.indexOf(t);-1!==e&&o.splice(e,1)}}},e.prototype.clearHandler=function(e){this._handlers[e]&&delete this._handlers[e]},e.prototype.setHandlerFallback=function(e){this._handlerFb=e},e.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=r},e.prototype.reset=function(){if(2===this._state)for(var e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].end(!1);this._stack.paused=!1,this._active=r,this._id=-1,this._state=0},e.prototype._start=function(){if(this._active=this._handlers[this._id]||r,this._active.length)for(var e=this._active.length-1;e>=0;e--)this._active[e].start();else this._handlerFb(this._id,"START")},e.prototype._put=function(e,t,o){if(this._active.length)for(var n=this._active.length-1;n>=0;n--)this._active[n].put(e,t,o);else this._handlerFb(this._id,"PUT",(0,i.utf32ToString)(e,t,o))},e.prototype.start=function(){this.reset(),this._state=1},e.prototype.put=function(e,t,o){if(3!==this._state){if(1===this._state)for(;t0&&this._put(e,t,o)}},e.prototype.end=function(e,t){if(void 0===t&&(t=!0),0!==this._state){if(3!==this._state)if(1===this._state&&this._start(),this._active.length){var o=!1,n=this._active.length-1,i=!1;if(this._stack.paused&&(n=this._stack.loopPosition-1,o=t,i=this._stack.fallThrough,this._stack.paused=!1),!i&&!1===o){for(;n>=0&&!0!==(o=this._active[n].end(e));n--)if(o instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=n,this._stack.fallThrough=!1,o;n--}for(;n>=0;n--)if((o=this._active[n].end(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=n,this._stack.fallThrough=!0,o}else this._handlerFb(this._id,"END",e);this._active=r,this._id=-1,this._state=0}},e}();t.OscParser=a;var s=function(){function e(e){this._handler=e,this._data="",this._hitLimit=!1}return e.prototype.start=function(){this._data="",this._hitLimit=!1},e.prototype.put=function(e,t,o){this._hitLimit||(this._data+=(0,i.utf32ToString)(e,t,o),this._data.length>n.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},e.prototype.end=function(e){var t=this,o=!1;if(this._hitLimit)o=!1;else if(e&&(o=this._handler(this._data))instanceof Promise)return o.then(function(e){return t._data="",t._hitLimit=!1,e});return this._data="",this._hitLimit=!1,o},e}();t.OscHandler=s},8742:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Params=void 0;var o=2147483647,n=function(){function e(e,t){if(void 0===e&&(e=32),void 0===t&&(t=32),this.maxLength=e,this.maxSubParamsLength=t,t>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(e),this.length=0,this._subParams=new Int32Array(t),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(e),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return e.fromArray=function(t){var o=new e;if(!t.length)return o;for(var n=Array.isArray(t[0])?1:0;n>8,n=255&this._subParamsIdx[t];n-o>0&&e.push(Array.prototype.slice.call(this._subParams,o,n))}return e},e.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},e.prototype.addParam=function(e){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=e>o?o:e}},e.prototype.addSubParam=function(e){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=e>o?o:e,this._subParamsIdx[this.length-1]++}},e.prototype.hasSubParams=function(e){return(255&this._subParamsIdx[e])-(this._subParamsIdx[e]>>8)>0},e.prototype.getSubParams=function(e){var t=this._subParamsIdx[e]>>8,o=255&this._subParamsIdx[e];return o-t>0?this._subParams.subarray(t,o):null},e.prototype.getSubParamsAll=function(){for(var e={},t=0;t>8,n=255&this._subParamsIdx[t];n-o>0&&(e[t]=this._subParams.slice(o,n))}return e},e.prototype.addDigit=function(e){var t;if(!(this._rejectDigits||!(t=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var n=this._digitIsSub?this._subParams:this.params,i=n[t-1];n[t-1]=~i?Math.min(10*i+e,o):e}},e}();t.Params=n},5741:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AddonManager=void 0;var o=function(){function e(){this._addons=[]}return e.prototype.dispose=function(){for(var e=this._addons.length-1;e>=0;e--)this._addons[e].instance.dispose()},e.prototype.loadAddon=function(e,t){var o=this,n={instance:t,dispose:t.dispose,isDisposed:!1};this._addons.push(n),t.dispose=function(){return o._wrappedAddonDispose(n)},t.activate(e)},e.prototype._wrappedAddonDispose=function(e){if(!e.isDisposed){for(var t=-1,o=0;o{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferApiView=void 0;var n=o(3785),i=o(511),r=function(){function e(e,t){this._buffer=e,this.type=t}return e.prototype.init=function(e){return this._buffer=e,this},Object.defineProperty(e.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),e.prototype.getLine=function(e){var t=this._buffer.lines.get(e);if(t)return new n.BufferLineApiView(t)},e.prototype.getNullCell=function(){return new i.CellData},e}();t.BufferApiView=r},3785:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLineApiView=void 0;var n=o(511),i=function(){function e(e){this._line=e}return Object.defineProperty(e.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),e.prototype.getCell=function(e,t){if(!(e<0||e>=this._line.length))return t?(this._line.loadCell(e,t),t):this._line.loadCell(e,new n.CellData)},e.prototype.translateToString=function(e,t,o){return this._line.translateToString(e,t,o)},e}();t.BufferLineApiView=i},8285:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferNamespaceApi=void 0;var n=o(8771),i=o(8460),r=function(){function e(e){var t=this;this._core=e,this._onBufferChange=new i.EventEmitter,this._normal=new n.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new n.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(function(){return t._onBufferChange.fire(t.active)})}return Object.defineProperty(e.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"active",{get:function(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"normal",{get:function(){return this._normal.init(this._core.buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alternate",{get:function(){return this._alternate.init(this._core.buffers.alt)},enumerable:!1,configurable:!0}),e}();t.BufferNamespaceApi=r},7975:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ParserApi=void 0;var o=function(){function e(e){this._core=e}return e.prototype.registerCsiHandler=function(e,t){return this._core.registerCsiHandler(e,function(e){return t(e.toArray())})},e.prototype.addCsiHandler=function(e,t){return this.registerCsiHandler(e,t)},e.prototype.registerDcsHandler=function(e,t){return this._core.registerDcsHandler(e,function(e,o){return t(e,o.toArray())})},e.prototype.addDcsHandler=function(e,t){return this.registerDcsHandler(e,t)},e.prototype.registerEscHandler=function(e,t){return this._core.registerEscHandler(e,t)},e.prototype.addEscHandler=function(e,t){return this.registerEscHandler(e,t)},e.prototype.registerOscHandler=function(e,t){return this._core.registerOscHandler(e,t)},e.prototype.addOscHandler=function(e,t){return this.registerOscHandler(e,t)},e}();t.ParserApi=o},7090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeApi=void 0;var o=function(){function e(e){this._core=e}return e.prototype.register=function(e){this._core.unicodeService.register(e)},Object.defineProperty(e.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(e){this._core.unicodeService.activeVersion=e},enumerable:!1,configurable:!0}),e}();t.UnicodeApi=o},744:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferService=t.MINIMUM_ROWS=t.MINIMUM_COLS=void 0;var s=o(2585),c=o(5295),p=o(8460),l=o(844);t.MINIMUM_COLS=2,t.MINIMUM_ROWS=1;var u=function(e){function o(o){var n=e.call(this)||this;return n._optionsService=o,n.isUserScrolling=!1,n._onResize=new p.EventEmitter,n._onScroll=new p.EventEmitter,n.cols=Math.max(o.rawOptions.cols||0,t.MINIMUM_COLS),n.rows=Math.max(o.rawOptions.rows||0,t.MINIMUM_ROWS),n.buffers=new c.BufferSet(o,n),n}return i(o,e),Object.defineProperty(o.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),o.prototype.dispose=function(){e.prototype.dispose.call(this),this.buffers.dispose()},o.prototype.resize=function(e,t){this.cols=e,this.rows=t,this.buffers.resize(e,t),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:e,rows:t})},o.prototype.reset=function(){this.buffers.reset(),this.isUserScrolling=!1},o.prototype.scroll=function(e,t){void 0===t&&(t=!1);var o,n=this.buffer;(o=this._cachedBlankLine)&&o.length===this.cols&&o.getFg(0)===e.fg&&o.getBg(0)===e.bg||(o=n.getBlankLine(e,t),this._cachedBlankLine=o),o.isWrapped=t;var i=n.ybase+n.scrollTop,r=n.ybase+n.scrollBottom;if(0===n.scrollTop){var a=n.lines.isFull;r===n.lines.length-1?a?n.lines.recycle().copyFrom(o):n.lines.push(o.clone()):n.lines.splice(r+1,0,o.clone()),a?this.isUserScrolling&&(n.ydisp=Math.max(n.ydisp-1,0)):(n.ybase++,this.isUserScrolling||n.ydisp++)}else{var s=r-i+1;n.lines.shiftElements(i+1,s-1,-1),n.lines.set(r,o.clone())}this.isUserScrolling||(n.ydisp=n.ybase),this._onScroll.fire(n.ydisp)},o.prototype.scrollLines=function(e,t,o){var n=this.buffer;if(e<0){if(0===n.ydisp)return;this.isUserScrolling=!0}else e+n.ydisp>=n.ybase&&(this.isUserScrolling=!1);var i=n.ydisp;n.ydisp=Math.max(Math.min(n.ydisp+e,n.ybase),0),i!==n.ydisp&&(t||this._onScroll.fire(n.ydisp))},o.prototype.scrollPages=function(e){this.scrollLines(e*(this.rows-1))},o.prototype.scrollToTop=function(){this.scrollLines(-this.buffer.ydisp)},o.prototype.scrollToBottom=function(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)},o.prototype.scrollToLine=function(e){var t=e-this.buffer.ydisp;0!==t&&this.scrollLines(t)},r([a(0,s.IOptionsService)],o)}(l.Disposable);t.BufferService=u},7994:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CharsetService=void 0;var o=function(){function e(){this.glevel=0,this._charsets=[]}return e.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},e.prototype.setgLevel=function(e){this.glevel=e,this.charset=this._charsets[e]},e.prototype.setgCharset=function(e,t){this._charsets[e]=t,this.glevel===e&&(this.charset=t)},e}();t.CharsetService=o},1753:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}},r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],n=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreMouseService=void 0;var a=o(2585),s=o(8460),c={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(e){return 4!==e.button&&1===e.action&&(e.ctrl=!1,e.alt=!1,e.shift=!1,!0)}},VT200:{events:19,restrict:function(e){return 32!==e.action}},DRAG:{events:23,restrict:function(e){return 32!==e.action||3!==e.button}},ANY:{events:31,restrict:function(e){return!0}}};function p(e,t){var o=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return 4===e.button?(o|=64,o|=e.action):(o|=3&e.button,4&e.button&&(o|=64),8&e.button&&(o|=128),32===e.action?o|=32:0!==e.action||t||(o|=3)),o}var l=String.fromCharCode,u={DEFAULT:function(e){var t=[p(e,!1)+32,e.col+32,e.row+32];return t[0]>255||t[1]>255||t[2]>255?"":""+l(t[0])+l(t[1])+l(t[2])},SGR:function(e){var t=0===e.action&&4!==e.button?"m":"M";return"[<"+p(e,!0)+";"+e.col+";"+e.row+t}},b=function(){function e(e,t){var o,n,i,a;this._bufferService=e,this._coreService=t,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new s.EventEmitter,this._lastEvent=null;try{for(var p=r(Object.keys(c)),l=p.next();!l.done;l=p.next()){var b=l.value;this.addProtocol(b,c[b])}}catch(e){o={error:e}}finally{try{l&&!l.done&&(n=p.return)&&n.call(p)}finally{if(o)throw o.error}}try{for(var d=r(Object.keys(u)),M=d.next();!M.done;M=d.next()){var h=M.value;this.addEncoding(h,u[h])}}catch(e){i={error:e}}finally{try{M&&!M.done&&(a=d.return)&&a.call(d)}finally{if(i)throw i.error}}this.reset()}return e.prototype.addProtocol=function(e,t){this._protocols[e]=t},e.prototype.addEncoding=function(e,t){this._encodings[e]=t},Object.defineProperty(e.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(e){if(!this._protocols[e])throw new Error('unknown protocol "'+e+'"');this._activeProtocol=e,this._onProtocolChange.fire(this._protocols[e].events)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"areMouseEventsActive",{get:function(){return 0!==this._protocols[this._activeProtocol].events},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(e){if(!this._encodings[e])throw new Error('unknown encoding "'+e+'"');this._activeEncoding=e},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(e.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),e.prototype.triggerMouseEvent=function(e){if(e.col<0||e.col>=this._bufferService.cols||e.row<0||e.row>=this._bufferService.rows)return!1;if(4===e.button&&32===e.action)return!1;if(3===e.button&&32!==e.action)return!1;if(4!==e.button&&(2===e.action||3===e.action))return!1;if(e.col++,e.row++,32===e.action&&this._lastEvent&&this._compareEvents(this._lastEvent,e))return!1;if(!this._protocols[this._activeProtocol].restrict(e))return!1;var t=this._encodings[this._activeEncoding](e);return t&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=e,!0},e.prototype.explainEvents=function(e){return{down:!!(1&e),up:!!(2&e),drag:!!(4&e),move:!!(8&e),wheel:!!(16&e)}},e.prototype._compareEvents=function(e,t){return e.col===t.col&&e.row===t.row&&e.button===t.button&&e.action===t.action&&e.ctrl===t.ctrl&&e.alt===t.alt&&e.shift===t.shift},n([i(0,a.IBufferService),i(1,a.ICoreService)],e)}();t.CoreMouseService=b},6975:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreService=void 0;var s=o(2585),c=o(8460),p=o(1439),l=o(844),u=Object.freeze({insertMode:!1}),b=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),d=function(e){function t(t,o,n,i){var r=e.call(this)||this;return r._bufferService=o,r._logService=n,r._optionsService=i,r.isCursorInitialized=!1,r.isCursorHidden=!1,r._onData=r.register(new c.EventEmitter),r._onUserInput=r.register(new c.EventEmitter),r._onBinary=r.register(new c.EventEmitter),r._scrollToBottom=t,r.register({dispose:function(){return r._scrollToBottom=void 0}}),r.modes=(0,p.clone)(u),r.decPrivateModes=(0,p.clone)(b),r}return i(t,e),Object.defineProperty(t.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),t.prototype.reset=function(){this.modes=(0,p.clone)(u),this.decPrivateModes=(0,p.clone)(b)},t.prototype.triggerDataEvent=function(e,t){if(void 0===t&&(t=!1),!this._optionsService.rawOptions.disableStdin){var o=this._bufferService.buffer;o.ybase!==o.ydisp&&this._scrollToBottom(),t&&this._onUserInput.fire(),this._logService.debug('sending data "'+e+'"',function(){return e.split("").map(function(e){return e.charCodeAt(0)})}),this._onData.fire(e)}},t.prototype.triggerBinaryEvent=function(e){this._optionsService.rawOptions.disableStdin||(this._logService.debug('sending binary "'+e+'"',function(){return e.split("").map(function(e){return e.charCodeAt(0)})}),this._onBinary.fire(e))},r([a(1,s.IBufferService),a(2,s.ILogService),a(3,s.IOptionsService)],t)}(l.Disposable);t.CoreService=d},9074:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__generator||function(e,t){var o,n,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,n&&(i=2&r[0]?n.return:r[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,r[1])).done)return i;switch(n=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,n=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.DecorationService=void 0;var s=o(8055),c=o(8460),p=o(844),l=o(6106),u=function(e){function t(){var t=e.call(this)||this;return t._decorations=new l.SortedList(function(e){return e.marker.line}),t._onDecorationRegistered=t.register(new c.EventEmitter),t._onDecorationRemoved=t.register(new c.EventEmitter),t}return i(t,e),Object.defineProperty(t.prototype,"onDecorationRegistered",{get:function(){return this._onDecorationRegistered.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onDecorationRemoved",{get:function(){return this._onDecorationRemoved.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"decorations",{get:function(){return this._decorations.values()},enumerable:!1,configurable:!0}),t.prototype.registerDecoration=function(e){var t=this;if(!e.marker.isDisposed){var o=new b(e);if(o){var n=o.marker.onDispose(function(){return o.dispose()});o.onDispose(function(){o&&(t._decorations.delete(o)&&t._onDecorationRemoved.fire(o),n.dispose())}),this._decorations.insert(o),this._onDecorationRegistered.fire(o)}return o}},t.prototype.reset=function(){var e,t;try{for(var o=a(this._decorations.values()),n=o.next();!n.done;n=o.next())n.value.dispose()}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}this._decorations.clear()},t.prototype.getDecorationsAtLine=function(e){return r(this,function(t){return[2,this._decorations.getKeyIterator(e)]})},t.prototype.getDecorationsAtCell=function(e,t,o){var n,i,s,c,p,l,u,b,d,M,h;return r(this,function(r){switch(r.label){case 0:n=0,i=0,r.label=1;case 1:r.trys.push([1,6,7,8]),s=a(this._decorations.getKeyIterator(t)),c=s.next(),r.label=2;case 2:return c.done?[3,5]:(p=c.value,n=null!==(d=p.options.x)&&void 0!==d?d:0,i=n+(null!==(M=p.options.width)&&void 0!==M?M:1),!(e>=n&&e=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirtyRowService=void 0;var r=o(2585),a=function(){function e(e){this._bufferService=e,this.clearRange()}return Object.defineProperty(e.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),e.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},e.prototype.markDirty=function(e){ethis._end&&(this._end=e)},e.prototype.markRangeDirty=function(e,t){if(e>t){var o=e;e=t,t=o}ethis._end&&(this._end=t)},e.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},n([i(0,r.IBufferService)],e)}();t.DirtyRowService=a},4348:function(e,t,o){var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],n=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var n,i,r=o.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a},r=this&&this.__spreadArray||function(e,t,o){if(o||2===arguments.length)for(var n,i=0,r=t.length;i0?p[0].index:a.length;if(a.length!==h)throw new Error("[createInstance] First service dependency of "+e.name+" at position "+(h+1)+" conflicts with "+a.length+" static arguments");return new(e.bind.apply(e,r([void 0],i(r(r([],i(a),!1),i(l),!1)),!1)))},e}();t.InstantiationService=p},7866:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},i=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}},r=this&&this.__read||function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var n,i,r=o.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a},a=this&&this.__spreadArray||function(e,t,o){if(o||2===arguments.length)for(var n,i=0,r=t.length;i{function o(e,t,o){t.di$target===t?t.di$dependencies.push({id:e,index:o}):(t.di$dependencies=[{id:e,index:o}],t.di$target=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.createDecorator=t.getServiceDependencies=t.serviceRegistry=void 0,t.serviceRegistry=new Map,t.getServiceDependencies=function(e){return e.di$dependencies||[]},t.createDecorator=function(e){if(t.serviceRegistry.has(e))return t.serviceRegistry.get(e);var n=function(e,t,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");o(n,e,i)};return n.toString=function(){return e},t.serviceRegistry.set(e,n),n}},2585:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IDecorationService=t.IUnicodeService=t.IOptionsService=t.ILogService=t.LogLevelEnum=t.IInstantiationService=t.IDirtyRowService=t.ICharsetService=t.ICoreService=t.ICoreMouseService=t.IBufferService=void 0;var n,i=o(8343);t.IBufferService=(0,i.createDecorator)("BufferService"),t.ICoreMouseService=(0,i.createDecorator)("CoreMouseService"),t.ICoreService=(0,i.createDecorator)("CoreService"),t.ICharsetService=(0,i.createDecorator)("CharsetService"),t.IDirtyRowService=(0,i.createDecorator)("DirtyRowService"),t.IInstantiationService=(0,i.createDecorator)("InstantiationService"),(n=t.LogLevelEnum||(t.LogLevelEnum={}))[n.DEBUG=0]="DEBUG",n[n.INFO=1]="INFO",n[n.WARN=2]="WARN",n[n.ERROR=3]="ERROR",n[n.OFF=4]="OFF",t.ILogService=(0,i.createDecorator)("LogService"),t.IOptionsService=(0,i.createDecorator)("OptionsService"),t.IUnicodeService=(0,i.createDecorator)("UnicodeService"),t.IDecorationService=(0,i.createDecorator)("DecorationService")},1480:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeService=void 0;var n=o(8460),i=o(225),r=function(){function e(){this._providers=Object.create(null),this._active="",this._onChange=new n.EventEmitter;var e=new i.UnicodeV6;this.register(e),this._active=e.version,this._activeProvider=e}return Object.defineProperty(e.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeVersion",{get:function(){return this._active},set:function(e){if(!this._providers[e])throw new Error('unknown Unicode version "'+e+'"');this._active=e,this._activeProvider=this._providers[e],this._onChange.fire(e)},enumerable:!1,configurable:!0}),e.prototype.register=function(e){this._providers[e.version]=e},e.prototype.wcwidth=function(e){return this._activeProvider.wcwidth(e)},e.prototype.getStringCellWidth=function(e){for(var t=0,o=e.length,n=0;n=o)return t+this.wcwidth(i);var r=e.charCodeAt(n);56320<=r&&r<=57343?i=1024*(i-55296)+r-56320+65536:t+=this.wcwidth(r)}t+=this.wcwidth(i)}return t},e}();t.UnicodeService=r}},t={};return function o(n){var i=t[n];if(void 0!==i)return i.exports;var r=t[n]={exports:{}};return e[n].call(r.exports,r,r.exports,o),r.exports}(4389)})()})},fcf8:function(e,t,o){},fd0f:function(e,t,o){},fe37:function(e,t,o){"use strict";var n=this&&this.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=o("fba3"),r=o("3b4c"),a=o("3623"),s=o("c444"),c=o("5eb6");function p(e){return"zoom"in e}function l(e){var t=1,o=a.findParentByFeature(e,c.isViewport);return o&&(t=o.zoom),t}t.isZoomable=p,t.getZoom=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.wheel=function(e,t){var o=a.findParentByFeature(e,c.isViewport);if(o){var n=this.getZoomFactor(t),i=this.getViewportOffset(e.root,t),r=1/(n*o.zoom)-1/o.zoom,p={scroll:{x:o.scroll.x-r*i.x,y:o.scroll.y-r*i.y},zoom:o.zoom*n};return[new s.SetViewportAction(o.id,p,!1)]}return[]},t.prototype.getViewportOffset=function(e,t){var o=e.canvasBounds,n=i.getWindowScroll();return{x:t.clientX+n.x-o.x,y:t.clientY+n.y-o.y}},t.prototype.getZoomFactor=function(e){return e.deltaMode===e.DOM_DELTA_PAGE?Math.exp(.5*-e.deltaY):e.deltaMode===e.DOM_DELTA_LINE?Math.exp(.05*-e.deltaY):Math.exp(.005*-e.deltaY)},t}(r.MouseListener);t.ZoomMouseListener=u},ff70:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="http://www.w3.org/1999/xlink",i="http://www.w3.org/XML/1998/namespace",r=58,a=120;function s(e,t){var o,s=t.elm,c=e.data.attrs,p=t.data.attrs;if((c||p)&&c!==p){for(o in c=c||{},p=p||{},p){var l=p[o],u=c[o];u!==l&&(!0===l?s.setAttribute(o,""):!1===l?s.removeAttribute(o):o.charCodeAt(0)!==a?s.setAttribute(o,l):o.charCodeAt(3)===r?s.setAttributeNS(i,o,l):o.charCodeAt(5)===r?s.setAttributeNS(n,o,l):s.setAttribute(o,l))}for(o in c)o in p||s.removeAttribute(o)}}t.attributesModule={create:s,update:s},t.default=t.attributesModule}}]); \ No newline at end of file diff --git a/klab.engine/src/main/resources/static/ui/js/app.5acec31b.js b/klab.engine/src/main/resources/static/ui/js/app.5acec31b.js deleted file mode 100644 index 69cfd06ac..000000000 --- a/klab.engine/src/main/resources/static/ui/js/app.5acec31b.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(e,t,n){e.exports=n("2f39")},"034f":function(e,t,n){"use strict";var o=n("fb1c"),a=n.n(o);a.a},1:function(e,t){},1442:function(e,t,n){"use strict";n.d(t,"d",function(){return _}),n.d(t,"f",function(){return A}),n.d(t,"e",function(){return v}),n.d(t,"c",function(){return N}),n.d(t,"b",function(){return h}),n.d(t,"a",function(){return R});n("ac6a"),n("7514"),n("48c0"),n("6c7b");var o=n("7cca"),a=n("480c"),i=n("5043"),r=n("d0e9"),c=n("2ef1"),s=n("6c77"),l=n("83a6"),u=n("8682"),d=n("8295"),E=n("6cbf"),f=n("bcf0"),T=n("4cdf"),p=n("ddaa"),S=n("8f3a"),m=n("256f"),O="pk.eyJ1Ijoiay1sYWIiLCJhIjoiY2prd2d2dWNxMHlvcDNxcDVsY3FncDBydiJ9.zMQE3gu-0qPpkLapVfVhnA",b='© Mapbox © OpenStreetMap Improve this map',_={BING_KEY:"",COORD_BC3:[-2.968226,43.332125],PROJ_EPSG_4326:Object(m["g"])("EPSG:4326"),PROJ_EPSG_3857:Object(m["g"])("EPSG:3857"),ZINDEX_TOP:1e4,ZINDEX_BASE:1e3,ZINDEX_MULTIPLIER_RASTER:0,ZINDEX_MULTIPLIER_POLYGONS:1,ZINDEX_MULTIPLIER_LINES:2,ZINDEX_MULTIPLIER_POINTS:3,DEFAULT_BASELAYER:"osm_layer"},I={MARKER_SVG:function(e){var t=e.fill,n=void 0===t?"yellow":t,o=e.stroke,a=void 0===o?"black":o,i=e.strokeWidth,r=void 0===i?"5":i;return'\n ')}},A={POINT_OBSERVATION_ICON:new E["a"]({anchor:[.5,1],src:"statics/maps/marker.png",opacity:.8,scale:.6}),POINT_OBSERVATION_SVG_ICON:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.3;return new E["a"]({opacity:1,src:"data:image/svg+xml;utf8,".concat(I.MARKER_SVG(e)),scale:t})},POINT_OBSERVATION_TEXT:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.offsetY,n=void 0===t?25:t,o=e.bold,a=void 0!==o&&o,i=e.size,r=void 0===i?"10px":i;return new d["a"]({textAlign:"center",textBaseline:"bottom",offsetY:n,font:"".concat(a?"bold":"normal"," ").concat(r," Roboto, sans-serif")})}},v={POLYGON_CONTEXT_STYLE:new s["c"]({fill:new l["a"]({color:"rgba(38, 166, 154, 0.2)"})}),POLYGON_PROPOSED_CONTEXT:new s["c"]({fill:new l["a"]({color:"rgba(255,255,255,0.5)"}),stroke:new f["a"]({width:8,pattern:"hatch",color:"#3187ca",offset:0,scale:.75,fill:new l["a"]({color:"#FFFFFF"}),size:2,spacing:5,angle:45})}),POLYGON_OBSERVATION_STYLE:new s["c"]({stroke:new u["a"]({color:"rgb(255, 102, 0)",width:2}),fill:new l["a"]({color:"rgba(255, 102, 0, 0.2)"})}),LNE_OBSERVATION_STYLE:new s["c"]({stroke:new u["a"]({color:"rgb(255, 102, 0)",width:2})}),POINT_OBSERVATION_SVG_PARAM:{fill:o["e"].MAIN_COLOR,stroke:"rgb(51,51,51)",strokeWidth:"4",scale:.3},POINT_CONTEXT_SVG_PARAM:{fill:"rgb(17, 170, 187)",stroke:"rgb(51,51,51)",strokeWidth:"5",scale:.5,offsetY:35,bold:!0,size:"14px"}},N={OSM_LAYER:new a["a"]({name:"osm_layer",title:"OpenStreetMap",type:"base",source:new r["a"]({attributions:'Map credits ©\n OSM\n contributors.'}),visible:!1}),CLEARMAP_TOPO_LAYER:new a["a"]({name:"clearmap_topo_layer",title:"UN Clear Map",type:"base",source:new i["a"]({url:"https://geoservices.un.org/arcgis/rest/services/ClearMap_WebTopo/MapServer/export"}),visible:!1}),CLEARMAP_PLAIN_LAYER:new a["a"]({name:"clearmap_plain_layer",title:"UN Clear Map Plain",type:"base",source:new i["a"]({url:"https://geoservices.un.org/arcgis/rest/services/ClearMap_WebPlain/MapServer/export"}),visible:!1}),CLEARMAP_DARK_LAYER:new a["a"]({name:"clearmap_dark_layer",title:"UN Clear Map Dark",type:"base",source:new i["a"]({url:"https://geoservices.un.org/arcgis/rest/services/ClearMap_WebDark/MapServer/export"}),visible:!1}),CLEARMAP_GRAY_LAYER:new a["a"]({name:"clearmap_gray_layer",title:"UN Clear Map Gray",type:"base",source:new i["a"]({url:"https://geoservices.un.org/arcgis/rest/services/ClearMap_WebGray/MapServer/export"}),visible:!1}),GOOGLE_HYBRID:new a["a"]({name:"google_hybrid",title:"Google Hybrid",type:"base",source:new c["a"]({crossOrigin:"anonymous",url:"http://mt{0-3}.google.com/vt/lyrs=y&hl=en&x={x}&y={y}&z={z}",attribution:"© 2018 Google, Inc"}),visible:!1}),GOOGLE_STREET:new a["a"]({name:"google_street",title:"Google Street",type:"base",source:new c["a"]({crossOrigin:"anonymous",url:"http://mt{0-3}.google.com/vt/lyrs=m&x={x}&y={y}&z={z}",attribution:"© 2018 Google, Inc"}),visible:!1}),GOOGLE_TERRAIN:new a["a"]({name:"google_terrain",title:"Google Terrain",type:"base",source:new c["a"]({crossOrigin:"anonymous",url:"https://mt{0-3}.google.com/vt/lyrs=t&x={x}&y={y}&z={z}",attribution:"© 2018 Google, Inc"}),visible:!1}),MAPBOX_CALI_TERRAIN:new a["a"]({name:"mapbox_cali_terrain",title:"Mapbox Terrain",type:"base",source:new c["a"]({crossOrigin:"anonymous",url:"https://api.mapbox.com/styles/v1/k-lab/cjkwh1z9z06ok2rrn9unfpn2n/tiles/256/{z}/{x}/{y}?access_token=".concat(O),attribution:b}),visible:!1}),MAPBOX_MINIMO:new a["a"]({name:"mapbox_minimo",title:"Mapbox Minimo",type:"base",source:new c["a"]({crossOrigin:"anonymous",url:"https://api.mapbox.com/styles/v1/k-lab/cjm0l6i4g7ffj2sqk7xy5dv1m/tiles/256/{z}/{x}/{y}?access_token=".concat(O),attribution:b}),visible:!1}),MAPBOX_TERRAIN:new a["a"]({name:"mapbox_terrain",title:"Mapbox Terrain",type:"base",source:new c["a"]({crossOrigin:"anonymous",format:"pbf",url:"https://api.mapbox.com/styles/v1/k-lab/cl1dgarpr005f15ntep34yq88/tiles/256/{z}/{x}/{y}?access_token=".concat(O),attribution:b}),visible:!1}),MAPBOX_GOT:new a["a"]({name:"mapbox_got",title:"k.LAB Mapbox GOT",type:"base",source:new c["a"]({crossOrigin:"anonymous",url:"https://api.mapbox.com/styles/v1/k-lab/cjuihteg13toh1fmovvd6r80y/tiles/256/{z}/{x}/{y}?access_token=".concat(O),attribution:b}),visible:!1}),EMPTY_LAYER:new a["a"]({name:"empty_layer",title:"No background",type:"base",visible:!1})},h={controls:S["a"]({attribution:!1}).extend([]),target:"map",projection:_.PROJ_EPSG_4326,center:Object(m["l"])(_.COORD_BC3,_.PROJ_EPSG_4326,_.PROJ_EPSG_3857),zoom:13},R={layers:[N.EMPTY_LAYER,N.CLEARMAP_TOPO_LAYER,N.MAPBOX_MINIMO,N.MAPBOX_TERRAIN,N.OSM_LAYER],mask:null,hasMask:function(){return null!==this.mask},getBaseLayer:function(){return this.layers.find(function(e){return"base"===e.get("type")&&e.getVisible()})},setMask:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[38,38,38,.4];null!==this.mask&&this.removeMask(),this.mask=new p["a"]({feature:new T["a"]({geometry:e,name:"Context"}),inner:!1,active:!0,fill:new l["a"]({color:n})}),this.layers.forEach(function(e){e.addFilter(t.mask)})},removeMask:function(){var e=this;null!==this.mask&&this.layers.forEach(function(t){t.removeFilter(e.mask)}),this.mask=null}}},"17dc":function(e,t,n){"use strict";n.d(t,"a",function(){return f});n("ac6a"),n("cadf"),n("6b54"),n("c5f6");var o=n("3156"),a=n.n(o),i=n("278c"),r=n.n(i),c=n("2369"),s=n("c1df"),l=n.n(s),u=n("d247");function d(e,t,n,o,a){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,r=n!==u["b"].PAYLOAD_CLASS_EMPTY?c["b"].validateJsonSchema(o,n):o;return{validated:r,body:{messageClass:e,type:t,payloadClass:n,payload:o,identity:a,timestamp:l()().valueOf(),inResponseTo:i}}}var E={SPATIAL_EXTENT:function(e){var t=r()(e,4),n=t[0],o=t[1],a=t[2],i=t[3];return{south:o,west:n,north:i,east:a}}},f={REGION_OF_INTEREST:function(e,t){return d(u["b"].CLASS_USERCONTEXTCHANGE,u["b"].TYPE_REGIONOFINTEREST,u["b"].PAYLOAD_CLASS_SPATIALEXTENT,E.SPATIAL_EXTENT(e),t)},SEARCH_REQUEST:function(e,t){var n=e.queryString,o=e.searchMode,i=e.requestId,r=e.contextId,c=void 0===r?null:r,s=e.matchTypes,l=void 0===s?null:s,E=e.cancelSearch,f=void 0!==E&&E,T=e.defaultResults,p=void 0!==T&&T,S=e.maxResults;return d(u["b"].CLASS_SEARCH,u["b"].TYPE_SUBMITSEARCH,u["b"].PAYLOAD_CLASS_SEARCHREQUEST,a()({},null!==c&&{contextId:c},null!==l&&{matchTypes:l},{queryString:n,searchMode:o,requestId:i,cancelSearch:f,defaultResults:p,maxResults:S}),t)},SEARCH_MATCH:function(e,t){var n=e.contextId,o=e.matchId,a=e.matchIndex,i=e.added;return d(u["b"].CLASS_SEARCH,u["b"].TYPE_MATCHACTION,u["b"].PAYLOAD_CLASS_SEARCHMATCHACTION,{contextId:n,matchId:o,matchIndex:a,added:i},t)},OBSERVATION_REQUEST:function(e,t){var n=e.urn,o=e.contextId,i=e.searchContextId,r=void 0===i?null:i,c=e.estimate,s=void 0!==c&&c,l=e.estimatedCost,E=void 0===l?0:l;return d(u["b"].CLASS_OBSERVATIONLIFECYCLE,u["b"].TYPE_REQUESTOBSERVATION,u["b"].PAYLOAD_CLASS_OBSERVATIONREQUEST,a()({urn:n},null!==o&&{contextId:o},null!==r&&{searchContextId:r},{estimate:s,estimatedCost:E}),t)},RESET_CONTEXT:function(e){return d(u["b"].CLASS_USERCONTEXTCHANGE,u["b"].TYPE_RESETCONTEXT,u["b"].PAYLOAD_CLASS_EMPTY,"",e)},CONTEXTUALIZATION_REQUEST:function(e,t){var n=e.contextUrn,o=e.contextId,i=e.parentContext,r=e.contextQuery;return d(u["b"].CLASS_OBSERVATIONLIFECYCLE,u["b"].TYPE_RECONTEXTUALIZE,u["b"].PAYLOAD_CLASS_CONTEXTUALIZATIONREQUEST,a()({},"undefined"!==typeof n&&{contextUrn:n},"undefined"!==typeof o&&{contextId:o},"undefined"!==typeof i&&{parentContext:i},"undefined"!==typeof r&&{contextQuery:r}),t)},TASK_INTERRUPTED:function(e,t){var n=e.taskId,o=e.forceInterruption,a=void 0===o||o;return d(u["b"].CLASS_TASKLIFECYCLE,u["b"].TYPE_TASKINTERRUPTED,u["b"].PAYLOAD_CLASS_INTERRUPTTASK,{taskId:n,forceInterruption:a},t)},SCALE_REFERENCE:function(e,t){var n=e.scaleReference,o=e.spaceResolution,i=e.spaceUnit,r=e.timeResolutionMultiplier,c=e.timeUnit,s=e.start,l=e.end,E=e.timeResolutionDescription,f=void 0===E?"":E,T=e.contextId,p=void 0===T?"":T,S=e.shape,m=void 0===S?"":S,O=e.timeType,b=void 0===O?"":O,_=e.timeGeometry,I=void 0===_?"":_,A=e.spaceGeometry,v=void 0===A?"":A;return d(u["b"].CLASS_USERCONTEXTDEFINITION,u["b"].TYPE_SCALEDEFINED,u["b"].PAYLOAD_CLASS_SCALEREFERENCE,a()({},n,{name:"",contextId:p,shape:m,timeType:b,timeGeometry:I,spaceGeometry:v,timeResolutionDescription:null===f?"":f},"undefined"!==typeof o&&{spaceResolution:o},"undefined"!==typeof i&&{spaceUnit:i},"undefined"!==typeof r&&{timeResolutionMultiplier:r},"undefined"!==typeof c&&{timeUnit:c},"undefined"!==typeof s&&{start:s},"undefined"!==typeof l&&{end:l}),t)},SPATIAL_LOCATION:function(e,t){var n=e.wktShape,o=e.contextId,i=void 0===o?null:o;return d(u["b"].CLASS_USERCONTEXTCHANGE,u["b"].TYPE_FEATUREADDED,u["b"].PAYLOAD_CLASS_SPATIALLOCATION,a()({easting:Number.MIN_VALUE,northing:Number.MIN_VALUE,wktShape:n},null!==i&&{contextId:i}),t)},DATAFLOW_NODE_DETAILS:function(e,t){var n=e.nodeId,o=e.contextId;return d(u["b"].CLASS_TASKLIFECYCLE,u["b"].TYPE_DATAFLOWNODEDETAIL,u["b"].PAYLOAD_CLASS_DATAFLOWSTATE,{nodeId:n,monitorable:!1,rating:-1,progress:0,contextId:o},t)},DATAFLOW_NODE_RATING:function(e,t){var n=e.nodeId,o=e.contextId,i=e.rating,r=e.comment,c=void 0===r?null:r;return d(u["b"].CLASS_TASKLIFECYCLE,u["b"].TYPE_DATAFLOWNODERATING,u["b"].PAYLOAD_CLASS_DATAFLOWSTATE,a()({nodeId:n,monitorable:!1,progress:0,rating:i},null!==c&&{comment:c},{contextId:o}),t)},SETTING_CHANGE_REQUEST:function(e,t){var n=e.setting,o=e.value;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_CHANGESETTING,u["b"].PAYLOAD_CLASS_SETTINGCHANGEREQUEST,{setting:n,previousValue:(!o).toString(),newValue:o.toString()},t)},USER_INPUT_RESPONSE:function(e,t){var n=e.messageId,o=e.requestId,a=e.cancelRun,i=void 0!==a&&a,r=e.values,c=void 0===r?{}:r;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_USERINPUTPROVIDED,u["b"].PAYLOAD_CLASS_USERINPUTRESPONSE,{requestId:o,cancelRun:i,values:c},t,n)},WATCH_REQUEST:function(e,t){var n=e.active,o=e.eventType,i=e.observationId,r=e.rootContextId;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_WATCHOBSERVATION,u["b"].PAYLOAD_CLASS_WATCHREQUEST,a()({active:n,observationId:i,rootContextId:r},o&&{eventType:o}),t)},WATCH_ENGINE_EVENT:function(e,t){var n=e.active,o=e.eventType;return d(u["b"].CLASS_NOTIFICATION,u["b"].TYPE_ENGINEEVENT,u["b"].PAYLOAD_CLASS_WATCHREQUEST,{active:n,eventType:o},t)},VIEW_ACTION:function(e,t){var n=e.component,o=e.componentTag,a=void 0===o?null:o,i=e.applicationId,r=void 0===i?null:i,c=e.booleanValue,s=void 0===c?null:c,l=e.doubleValue,E=void 0===l?null:l,f=e.intValue,T=void 0===f?null:f,p=e.stringValue,S=void 0===p?null:p,m=e.listValue,O=void 0===m?[]:m,b=e.dateValue,_=void 0===b?null:b,I=e.data,A=void 0===I?null:I;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_VIEWACTION,u["b"].PAYLOAD_CLASS_VIEWACTION,{component:n,componentTag:a,applicationId:r,booleanValue:s,doubleValue:E,intValue:T,stringValue:S,listValue:O,dateValue:_,data:A},t)},MENU_ACTION:function(e,t){var n=e.identity,o=e.applicationId,a=e.menuId;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_VIEWACTION,u["b"].PAYLOAD_CLASS_MENUACTION,{identity:n,applicationId:o,menuId:a},t)},RUN_APPLICATION:function(e,t){var n=e.applicationId,o=e.test,a=void 0!==o&&o,i=e.stop,r=void 0!==i&&i;return d(u["b"].CLASS_RUN,u["b"].TYPE_RUNAPP,u["b"].PAYLOAD_CLASS_LOADAPPLICATIONREQUEST,{behavior:n,test:a,stop:r,parameters:{}},t)},CONSOLE_CREATED:function(e,t){var n=e.consoleId,o=e.consoleType;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_CONSOLECREATED,u["b"].PAYLOAD_CLASS_CONSOLENOTIFICATION,{consoleId:n,consoleType:o},t)},CONSOLE_CLOSED:function(e,t){var n=e.consoleId,o=e.consoleType;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_CONSOLECLOSED,u["b"].PAYLOAD_CLASS_CONSOLENOTIFICATION,{consoleId:n,consoleType:o},t)},COMMAND_REQUEST:function(e,t){var n=e.consoleId,o=e.consoleType,a=e.commandId,i=e.payload;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_COMMANDREQUEST,u["b"].PAYLOAD_CLASS_CONSOLENOTIFICATION,{consoleId:n,consoleType:o,commandId:a,payload:i},t)}}},"1e5d":function(e,t,n){},2369:function(e,t,n){"use strict";var o=n("278c"),a=n.n(o),i=(n("ffc1"),n("ac6a"),n("cadf"),n("456d"),n("7037")),r=n.n(i),c=n("970b"),s=n.n(c),l=n("5bc30"),u=n.n(l),d=n("be3b"),E=n("3b1b6"),f=n.n(E),T=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{draft:"draft-04"};if(s()(this,e),void 0===t||""===t)throw Error("URL is mandatory");this.djvEnv=new f.a({version:n.draft}),this.initialized=!1,this.url=t,this.initTimeout=null,console.debug("Load schema(s) on creation"),this.initTimeout=setTimeout(this.init(t),2e3)}return u()(e,[{key:"validateJsonSchema",value:function(e,t){if(!this.initialized)return console.info("djvEnv not ready"),!1;if(this.djvEnv.resolve(t)){var n=this.djvEnv.validate(t,e);if("undefined"===typeof n)return!0;if("$ref"===n.keyword)return!0;throw Error(n)}throw Error("Schema not found: ".concat(t))}},{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.url;this.initialized||d["a"].get(t,{}).then(function(n){var o=n.data;if("object"!==r()(o))throw Error("Error asking for JsonSchema(s): no data");if(0===Object.keys(o).length)throw Error("Schema on url ".concat(t," is empty, check it"));for(var i=Object.entries(o),c=0;c-1))&&(a.splice(o,1),this.listeners.set(e,a),!0)}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(ze()(this,e),!t)throw new Error("Connection url is needed");this.connectionUrl=t,this.connectionHeaders=n;var a=o.stompOptions,i=void 0===a?{debug:!1}:a,r=o.sockJSOptions,c=void 0===r?{}:r,s=o.reconnection,l=void 0!==s&&s,u=o.reconnectionAttempts,d=void 0===u?1/0:u,E=o.reconnectionDelay,f=void 0===E?2e3:E,T=o.debug,p=void 0!==T&&T,S=o.store,m=void 0===S?null:S,O=o.storeNS,b=void 0===O?"":O;this.reconnection=l,this.reconnectionAttempts=d,this.reconnectionDelay=f,this.hasDebug=p,this.reconnectTimeoutId=-1,this.reconnectionCount=0,"undefined"!==typeof m&&null!==m&&(this.store=m,this.storeNS=b),this.stompOptions=i,this.sockJSOptions=c,this.connect()}return Ke()(e,[{key:"debug",value:function(){var e;this.hasDebug&&(e=console).debug.apply(e,arguments)}},{key:"connect",value:function(){var e=this,t=Xe()(this.connectionUrl,{},this.sockJSOptions);t.protocol=this.stompOptions.protocol||"",this.StompClient=Je.a.over(t,this.stompOptions),this.StompClient.connect(this.connectionHeaders,function(t){e.doOnEvent("onconnect",t)},function(t){return setTimeout(function(){e.doOnEvent("onerror",t)},1e3)})}},{key:"isConnected",value:function(){return this.StompClient&&this.StompClient.connected}},{key:"reconnect",value:function(){var e=this;this.reconnectionCount<=this.reconnectionAttempts?(this.reconnectionCount+=1,clearTimeout(this.reconnectTimeoutId),this.reconnectTimeoutId=setTimeout(function(){e.doOnEvent("reconnect",e.reconnectionCount),e.connect()},this.reconnectionDelay)):this.store&&this.passToStore("stomp_onerror","Reconnection error")}},{key:"subscribe",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){t.doOnEvent("onmessage",e)};if(e){var a=this.StompClient.subscribe(e,o,n);if(a)return this.doOnEvent("onsubscribe",a),a}return null}},{key:"unsubscribe",value:function(e,t){this.StompClient.unsubscribe(e,t)}},{key:"send",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.isConnected()?(this.StompClient.send(e,JSON.stringify(t),n),this.doOnEvent("onsend",{headers:n,message:t}),!0):(this.doOnEvent("onerrorsend",{headers:n,message:t}),!1)}},{key:"doOnEvent",value:function(e,t){Ze.emit(e,t)||this.debug("No listener for ".concat(e)),this.store&&this.passToStore("stomp_".concat(e),t),this.reconnection&&"onoconnect"===e&&(this.reconnectionCount=0),this.reconnection&&"onerror"===e&&this.reconnect()}},{key:"passToStore",value:function(e,t){if(e.startsWith("stomp_")){var n="dispatch",o=[this.storeNS||"",e.toLowerCase()].filter(function(e){return!!e}).join("/"),a=t||null;t&&t.data&&(a=JSON.parse(t.data),a.mutation?o=[a.namespace||"",a.mutation].filter(function(e){return!!e}).join("/"):a.action&&(n="dispatch",o=[a.namespace||"",a.action].filter(function(e){return!!e}).join("/"))),this.store[n](o,a)}}},{key:"close",value:function(){this.StompClient&&(this.StompClient.disconnect(),this.doOnEvent("onclose")),this.reconnectTimeoutId&&clearTimeout(this.reconnectTimeoutId)}}]),e}(),tt={install:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!t)throw new Error("[vue-stomp-client] cannot locate connection");var a=null;o.connectManually?(e.prototype.$connect=function(){a=new et(t,n,o),e.prototype.$stompClient=a.StompClient},e.prototype.$disconnect=function(){a&&a.reconnection&&(a.reconnection=!1),e.prototype.$stompClient&&(a.close(),delete e.prototype.$stompClient)}):(a=new et(t,n,o),e.prototype.$stompClient=a.StompClient),e.mixin({methods:{sendStompMessage:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.defaultMessageDestination;a.send(n,e,t)?console.debug("Message sent: ".concat(JSON.stringify(e,null,4))):console.debug("Message not sent, still no connected:\n".concat(JSON.stringify(e,null,4)))},subscribe:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.defaultSubscribeDestination;return a.subscribe("".concat(i,"/").concat(e),t,n)},unsubscribe:function(e){a.unsubscribe(e),console.debug("Unsubscribe the subscription with id ".concat(e))},reconnect:function(){a.StompClient&&!a.StompClient.connected&&(console.debug("Try to reconnect..."),a.reconnect())},disconnect:function(){a&&a.reconnection&&(a.reconnection=!1),a.close()}},created:function(){var e=this;if(this.$options.sockets){var t=this,n=this.$options.sockets;this.$options.sockets=new Proxy({},{set:function(e,n,o){return Ze.addListener(n,o,t),e[n]=o,!0},deleteProperty:function(e,n){return Ze.removeListener(n,t.$options.sockets[n],t),delete e.key,!0}}),n&&Object.keys(n).forEach(function(t){e.$options.sockets[t]=n[t]})}},beforeDestroy:function(){var e=this;if(this.$options.sockets){var t=this.$options.sockets;t&&Object.keys(t).forEach(function(t){console.debug("Remove listener ".concat(t)),Ze.removeListener(t,e.$options.sockets[t],e),delete e.$options.sockets[t]})}}})}},nt=function(e){var t=e.Vue,n=e.store,o=new URLSearchParams(window.location.search).get(Ae["Q"].PARAMS_STOMP_DEBUG),a=!1;"true"===o&&(a=!0),t.use(tt,"/modeler/message",{},{stompOptions:{debug:a,protocol:"v12.stomp"},store:n,storeNS:"stomp",reconnection:!0,reconnectionAttempts:5,debug:a,defaultMessageDestination:"/klab/message",defaultSubscribeDestination:"/message"})},ot=ye(),at=ot.app,it=ot.store,rt=ot.router;[xe["a"],Me["b"],We,Ge["a"],je["a"],nt].forEach(function(e){e({app:at,router:rt,store:it,Vue:o["a"],ssrContext:null})}),new o["a"](at)},4360:function(e,t,n){"use strict";var o,a=n("2b0e"),i=n("2f62"),r=(n("ac6a"),n("cadf"),n("f400"),n("7cca")),c=n("d247"),s={kexplorerLog:[],statusTexts:[],klabLog:[],dataViewers:[],mainDataViewerIdx:0,lastViewerId:0,mainViewer:void 0,treeVisible:!0,leftMenuContent:null,leftMenuState:r["v"].LEFTMENU_HIDDEN,mainControlDocked:!1,contextGeometry:null,spinner:r["I"].SPINNER_STOPPED,spinnerOwners:[],searchActive:!1,searchFocus:!1,searchLostChar:"",searchHistory:[],searchInApp:!1,flowchartSelected:r["g"].GRAPH_DATAFLOW,dataflowInfoOpen:!1,observationInfo:null,mapSelection:r["g"].EMPTY_MAP_SELECTION,exploreMapMode:!1,treeSelected:null,treeTicked:[],treeExpanded:[],topLayer:null,scaleEditing:{active:!1,type:null},drawMode:!1,customContext:!1,saveLocation:!0,saveDockedStatus:!1,modalMode:!1,inputRequests:[],waitingGeolocation:!0,helpShown:!1,modalSize:r["r"].DEFAULT_MODAL_SIZE,fuzzyMode:!1,largeMode:0,helpBaseUrl:null,timeRunning:!1,layout:null,windowSide:"left",dialogs:[],modalWindow:null,engineEvents:[],klabApp:null,levels:[c["a"].TYPE_INFO,c["a"].TYPE_WARNING,c["a"].TYPE_ERROR],showSettings:!0,notificationsParams:null,reloadViews:[],documentationView:r["n"].REPORT,documentationSelected:null,documentationCache:new Map,tableFontSize:12,textFontSize:10,viewCoordinates:!0},l=(n("7514"),n("7f7f"),n("6762"),n("2fdb"),n("448a")),u=n.n(l),d=n("b12a"),E=n("b0b2"),f={kexplorerLog:function(e){return e.kexplorerLog},lastKexplorerLog:function(e){return function(t){return Object(d["o"])(e.kexplorerLog,t)}},klabLog:function(e){return e.klabLog},lastKlabLog:function(e){return function(t){return Object(d["o"])(e.klabLog,t)}},klabLogReversedAndFiltered:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(0===e.klabLog.length)return[];var n=u()(e.klabLog).reverse();return 0===t.length?n:n.filter(function(e){return t.includes(e.type)})}},levels:function(e){return e.levels},statusTexts:function(e){return e.statusTexts},statusTextsLength:function(e){return e.statusTexts.length},statusTextsString:function(e){return e.statusTexts.length>0?e.statusTexts.map(function(e){return e.text}).join(" - "):""},mainViewer:function(e){return e.mainViewer},mainViewerName:function(e){return e.mainViewer?e.mainViewer.name:null},isTreeVisible:function(e){return e.treeVisible},leftMenuContent:function(e){return e.leftMenuContent},leftMenuState:function(e){return e.leftMenuState},isDocked:function(e){return e.leftMenuState!==r["v"].LEFTMENU_HIDDEN},hasMainControl:function(e){return e.mainViewer&&e.mainViewer.mainControl},isMainControlDocked:function(e){return e.mainControlDocked},admitSearch:function(e){return e.mainViewer&&e.mainViewer.hasSearch},contextGeometry:function(e){return e.contextGeometry},dataViewers:function(e){return e.dataViewers},mainDataViewer:function(e){return e.dataViewers.find(function(e){return e.main})},mainDataViewerIdx:function(e){return e.mainDataViewerIdx},lastViewerId:function(e){return e.lastViewerId},viewer:function(e){return function(t){return e.dataViewers.length>0?e.dataViewers.find(function(e){return e.idx===t}):null}},spinnerIsAnimated:function(e){return e.spinner.animated},spinner:function(e){return e.spinner},spinnerOwners:function(e){return e.spinnerOwners},spinnerColor:function(e){return"undefined"!==e.spinner&&null!==e.spinner?Object(E["e"])(e.spinner.color):null},spinnerErrorMessage:function(e){return"undefined"!==e.spinner&&null!==e.spinner?e.spinner.errorMessage:null},searchIsActive:function(e){return e.searchActive},searchIsFocused:function(e){return e.searchFocus},searchLostChar:function(e){return e.searchLostChar},searchHistory:function(e){return e.searchHistory},searchInApp:function(e){return e.searchInApp},flowchartSelected:function(e){return e.flowchartSelected},dataflowInfoOpen:function(e){return e.dataflowInfoOpen},observationInfo:function(e){return e.observationInfo},mapSelection:function(e){return e.mapSelection},hasObservationInfo:function(e){return null!==e.observationInfo},exploreMode:function(e){return!!(null!==e.observationInfo&&Object(d["n"])(e.observationInfo)&&e.observationInfo.dataSummary.histogram.length>0&&e.observationInfo.visible&&e.observationInfo.top)},isScaleEditing:function(e){return e.scaleEditing.active},scaleEditingType:function(e){return e.scaleEditing.type},isDrawMode:function(e){return e.drawMode},hasCustomContext:function(e){return e.customContext},topLayer:function(e){return e.topLayer},topLayerId:function(e){return null!==e.topLayer?e.topLayer.id:null},inputRequests:function(e){return e.inputRequests},hasInputRequests:function(e){return 0!==e.inputRequests.length},isInModalMode:function(e){return e.modalMode},isHelpShown:function(e){return e.helpShown},modalSize:function(e){return e.modalSize},fuzzyMode:function(e){return e.fuzzyMode},largeMode:function(e){return e.largeMode},isTimeRunning:function(e){return e.timeRunning},layout:function(e){return e.layout},appStyle:function(e){return e.layout.style||"default"},modalWindow:function(e){return e.modalWindow},hasHeader:function(e){return e.layout&&(e.layout.header||e.layout.logo||e.layout.label||e.layout.description)},windowSide:function(e){return e.windowSide},isApp:function(e){return null!==e.klabApp},klabApp:function(e){return e.klabApp},activeDialogs:function(e){return e.dialogs.filter(function(e){return!e.dismiss})},engineEvents:function(e){return e.engineEvents},engineEventsCount:function(e){return e.engineEvents.length},hasShowSettings:function(e){return e.showSettings},notificationsParams:function(e){return e.notificationsParams},reloadViews:function(e){return e.reloadViews},documentationView:function(e){return e.documentationView},documentationSelected:function(e){return e.documentationSelected},documentationCache:function(e){return e.documentationCache},tableFontSize:function(e){return e.tableFontSize},textFontSize:function(e){return e.textFontSize},viewCoordinates:function(e){return e.viewCoordinates}},T=(n("f751"),n("3156")),p=n.n(T),S=(n("20d6"),n("741d")),m={ADD_TO_KEXPLORER_LOG:function(e,t){Object(d["p"])(e.kexplorerLog,t)},ADD_TO_KLAB_LOG:function(e,t){Object(d["p"])(e.klabLog,t)},SET_LEVELS:function(e,t){t&&(e.levels=t)},TOGGLE_LEVEL:function(e,t){var n=e.levels.indexOf(t);-1===n?e.levels.push(t):e.levels.splice(n,1)},ADD_TO_STATUS_TEXTS:function(e,t){var n=t.id,o=t.text;e.statusTexts.push({id:n,text:o})},REMOVE_FROM_STATUS_TEXTS:function(e,t){var n=e.statusTexts.findIndex(function(e){return e.id===t});-1!==n&&e.statusTexts.splice(n,1)},SET_CONTEXT_LAYER:function(e,t){e.dataViewers.splice(0,e.dataViewers.length),e.lastViewerId=0,e.contextGeometry=t,e.treeExpanded=[],e.treeTicked=[],e.statusTexts=[],e.treeSelected=null,e.topLayer=null,e.reloadViews.splice(0,e.reloadViews.length),e.documentationSelected=null,e.modalWindow=null},SET_MAIN_VIEWER:function(e,t){e.mainViewer=t},SET_TREE_VISIBLE:function(e,t){e.treeVisible=t},SET_LEFTMENU_CONTENT:function(e,t){e.leftMenuContent=t},SET_LEFTMENU_STATE:function(e,t){e.leftMenuState=t},SET_MAIN_DATA_VIEWER:function(e,t){var n=t.viewerIdx,o=t.visible;if(o)e.dataViewers.forEach(function(t){t.idx===n?(t.main=!0,e.mainDataViewerIdx=n):t.main=!1,t.visible=!t.type.hideable||t.idx===n||t.visible});else{var a=!1;e.dataViewers.forEach(function(t){a||t.type.hideable&&!t.visible?(t.main=!1,t.type.hideable&&t.idx===n&&(t.visible=!1)):(t.main=!0,e.mainDataViewerIdx=t.idx,a=!0)})}},RESET_MAIN_DATA_VIEWER:function(e){e.dataViewer=[],e.mainDataViewerIdx=0},SET_SAVE_DOCKED_STATUS:function(e,t){e.saveDockedStatus=t},SET_MAIN_CONTROL_DOCKED:function(e,t){e.mainControlDocked=t,e.saveDockedStatus&&S["a"].set(r["Q"].COOKIE_DOCKED_STATUS,t,{expires:30,path:"/",secure:!0})},ADD_VIEWER_ELEMENT:function(e,t){var n=t.main,o=t.type,a=t.label,i=t.visible,r=t.callback;0===e.lastViewerId?n=!0:!0===n&&e.dataViewers.forEach(function(e){e.main=!1}),e.lastViewerId+=1,e.dataViewers.push({idx:e.lastViewerId,main:n,type:o,label:a,visible:i,observations:[]}),"function"===typeof r&&r(e.lastViewerId)},SET_SPINNER_ANIMATED:function(e,t){e.spinner.animated=t},SET_SPINNER_COLOR:function(e,t){e.spinner.color=t},SET_SPINNER:function(e,t){var n=t.animated,o=t.color,a=t.errorMessage,i=void 0===a?null:a;e.spinner={animated:n,color:o,errorMessage:i}},ADD_TO_SPINNER_OWNERS:function(e,t){var n=e.spinnerOwners.indexOf(t);-1===n&&e.spinnerOwners.push(t)},REMOVE_FROM_SPINNER_OWNERS:function(e,t){var n=e.spinnerOwners.indexOf(t);-1!==n&&e.spinnerOwners.splice(n,1)},SEARCH_ACTIVE:function(e,t){var n=t.active,o=t.char,a=void 0===o?"":o;e.searchActive!==n&&(e.searchLostChar=a,e.searchActive=n)},SEARCH_FOCUS:function(e,t){var n=t.focused,o=t.char,a=void 0===o?"":o;e.searchFocus!==n&&(e.searchLostChar=a,e.searchFocus=n)},SEARCH_INAPP:function(e,t){e.searchInApp=t},RESET_SEARCH_LOST_CHAR:function(e){e.searchLostChar=""},RESET_SEARCH:function(e){e.searchActive=!1,e.searchFocus=!1,e.searchLostChar=""},STORE_SEARCH:function(e,t){e.searchHistory.unshift(t)},SET_FLOWCHART_SELECTED:function(e,t){e.flowchartSelected=t},SET_DATAFLOW_INFO_OPEN:function(e,t){e.dataflowInfoOpen=t},SET_OBSERVATION_INFO:function(e,t){null===t?(e.treeSelected=null,e.mapSelection.locked||(e.mapSelection=r["g"].EMPTY_MAP_SELECTION),e.observationInfo=null):null!==e.observationInfo&&t.id===e.observationInfo.id||(e.observationInfo=t,e.mapSelection.locked||(e.mapSelection=r["g"].EMPTY_MAP_SELECTION),e.treeSelected=t.id)},SET_MAP_SELECTION:function(e,t){var n=t.pixelSelected,o=t.layerSelected,a=t.value,i=void 0===a?null:a,c=t.locked,s=void 0!==c&&c;e.mapSelection=null===t||null===n?r["g"].EMPTY_MAP_SELECTION:{pixelSelected:n,layerSelected:o,value:i,locked:s}},SET_SCALE_EDITING:function(e,t){var n=t.active,o=t.type;e.scaleEditing={active:n,type:o}},SET_DRAW_MODE:function(e,t){e.drawMode=t},SET_CUSTOM_CONTEXT:function(e,t){e.customContext=t},SET_SAVE_LOCATION:function(e,t){e.saveLocation=t},SET_TOP_LAYER:function(e,t){e.topLayer=t},SET_MODAL_MODE:function(e,t){e.modalMode=t},SET_INPUT_REQUEST:function(e,t){var n=t.payload,o=t.id;e.inputRequests.push(p()({messageId:o},n))},REMOVE_INPUT_REQUEST:function(e,t){if(e.inputRequests.length>0)if(null===t)e.inputRequests.splice(0,e.inputRequests.length);else{var n=e.inputRequests.findIndex(function(e){return e.messageId===t});-1!==n&&e.inputRequests.splice(n,1)}},SET_MODAL_SIZE:function(e,t){var n=t.width,o=t.height;e.modalSize={width:n,height:o}},SET_FUZZY_MODE:function(e,t){e.fuzzyMode=t},SET_LARGE_MODE:function(e,t){t<0?t=0:t>6&&(t=r["g"].MAX_SEARCHBAR_INCREMENTS),e.largeMode=t},SET_TIME_RUNNING:function(e,t){e.timeRunning=t},SET_LAYOUT:function(e,t){e.layout=t},SET_MODAL_WINDOW:function(e,t){e.modalWindow=t},SET_WINDOW_SIDE:function(e,t){e.windowSide=t},CREATE_VIEW_COMPONENT:function(e,t){if(t.type!==r["a"].ALERT&&t.type!==r["a"].CONFIRM){var n=e.layout&&(Object(d["d"])(e.layout,t.id)||e.modalWindow&&Object(d["d"])(e.modalWindow,t.id));if(n)console.log("Updating component: ",JSON.stringify(n,null,2)),Object.assign(n,t),console.log("Updated component: ",JSON.stringify(n,null,2));else{var o=Object(d["c"])(e.layout,t.parentId)||e.modalWindow&&Object(d["c"])(e.modalWindow,t.id);o&&(o.children.push(t),console.warn("Update parent: ",o))}}else e.dialogs.push(p()({},t,{dismiss:!1}))},SET_ENGINE_EVENT:function(e,t){if(null!==e.engineEvents)switch(t.type){case r["o"].RESOURCE_VALIDATION:var n=e.engineEvents.findIndex(function(e){return e.id===t.id});t.started?-1===n?e.engineEvents.push({id:t.id,timestamp:t.timestamp}):console.debug("Try to start an existing engine event",t):-1!==n?e.engineEvents.splice(n,1):console.debug("Try to stop an unregistered engine event",t),console.debug("Engine event with id ".concat(t.id," ").concat(t.started?"start":"stop"," / total engine events: ").concat(e.engineEvents.length));break;default:break}else console.debug("Receive an engine event before subscription")},VIEW_ACTION:function(e,t){if(null!==t.component){if(e.layout||e.modalWindow){var n=Object(d["d"])(e.layout,t.component.id)||null!==e.modalWindow&&Object(d["d"])(e.modalWindow,t.component.id);n&&(0===t.component.components.length&&0!==n.components.length&&delete t.component.components,Object.assign(n,t.component))}}else console.warn("Action component is null")},SHOW_SETTINGS:function(e,t){e.showSettings=t},SET_NOTIFICATIONS_PARAMS:function(e,t){e.notificationsParams=t},SET_DOCUMENTATION_VIEW:function(e,t){e.documentationView=t},SET_DOCUMENTATION_SELECTED:function(e,t){e.documentationSelected=t},SET_RELOAD_VIEWS:function(e,t){t&&t.forEach(function(t){-1===e.reloadViews.indexOf(t)&&e.reloadViews.push(t)})},REMOVE_RELOAD_VIEW:function(e,t){-1!==e.reloadViews.indexOf(t)&&e.reloadViews.splice(e.reloadViews.indexOf(t),1)},SET_TABLE_FONT_SIZE:function(e,t){e.tableFontSize=t},SET_TEXT_FONT_SIZE:function(e,t){e.textFontSize=t},SET_VIEW_COORDINATES:function(e,t){e.viewCoordinates=t}},O=n("7037"),b=n.n(O),_=(n("551c"),n("c1df")),I=n.n(_),A=n("4328"),v=n.n(A),N=n("8449"),h=n("256f"),R={addToKexplorerLog:function(e,t){var n=e.commit,o=t.type,a=t.payload,i=t.important,r=void 0!==i&&i;n("ADD_TO_KEXPLORER_LOG",{type:o,payload:a,important:r,time:I()()})},addToKlabLog:function(e,t){var n=e.commit,o=t.type,a=t.id,i=t.payload,r=t.timestamp;n("ADD_TO_KLAB_LOG",{type:o,id:a,payload:i,time:I()(r)})},setLevels:function(e,t){var n=e.commit;n("SET_LEVELS",t)},toggleLevel:function(e,t){var n=e.commit;n("TOGGLE_LEVEL",t)},addToStatusTexts:function(e,t){var n=e.commit,o=t.id,a=t.text;n("ADD_TO_STATUS_TEXTS",{id:o,text:a})},removeFromStatusTexts:function(e,t){var n=e.commit;n("REMOVE_FROM_STATUS_TEXTS",t)},setContextLayer:function(e,t){var n=e.state,o=e.commit,a=e.dispatch;Object(d["j"])(t).then(function(e){o("SET_CONTEXT_LAYER",e),o("RESET_SEARCH"),a("assignViewer",{observation:t,main:!0}),n.mainViewer.name===r["N"].DATA_VIEWER.name&&n.mainControlDocked&&a("setMainViewer",r["N"].DOCKED_DATA_VIEWER)})},resetContext:function(e){var t=e.commit;t("SET_CONTEXT_LAYER",null),t("RESET_SEARCH"),t("SET_OBSERVATION_INFO",null);var n=r["N"].DATA_VIEWER;t("SET_LEFTMENU_CONTENT",n.leftMenuContent),t("SET_LEFTMENU_STATE",n.leftMenuState),t("SET_MAIN_VIEWER",n),t("RESET_MAIN_DATA_VIEWER",null),t("SET_MAP_SELECTION",r["g"].EMPTY_MAP_SELECTION),t("SET_FLOWCHART_SELECTED",r["g"].GRAPH_DATAFLOW)},setMainViewer:function(e,t){var n=e.state,o=e.commit,a=e.dispatch;t&&"undefined"!==typeof n.mainViewer&&(t.leftMenuContent===r["v"].DOCKED_DATA_VIEWER_COMPONENT?o("SET_MAIN_CONTROL_DOCKED",!0):t.leftMenuContent===r["v"].DATA_VIEWER_COMPONENT&&o("SET_MAIN_CONTROL_DOCKED",!1)),o("SET_MAIN_VIEWER",t),t&&(a("setLeftMenuState",t.leftMenuState),a("setLeftMenuContent",t.leftMenuContent))},setTreeVisible:function(e,t){var n=e.commit;n("SET_TREE_VISIBLE",t)},setLeftMenuContent:function(e,t){var n=e.commit;n("SET_LEFTMENU_CONTENT",t)},setLeftMenuState:function(e,t){var n=e.commit;n("SET_LEFTMENU_STATE",t)},setMainDataViewer:function(e,t){var n=e.commit,o=e.getters,a=t.viewerIdx,i=t.viewerType,r=void 0===i?null:i,c=t.visible,s=void 0===c||c;(s&&a!==o.mainDataViewerIdx||!s&&null!==r&&r.hideable)&&n("SET_MAIN_DATA_VIEWER",{viewerIdx:a,visible:s})},assignViewer:function(e,t){var n=e.commit,o=e.getters,a=e.dispatch,i=e.rootGetters,c=t.observation,s=t.main,l=void 0!==s&&s;return new Promise(function(e,t){var s,u=null,E=null;if(c.observationType)switch(c.observationType){case r["z"].TYPE_GROUP:case r["z"].TYPE_VIEW:case r["z"].TYPE_PROCESS:u=null;break;case r["z"].TYPE_STATE:var f;if(1===c.valueCount)u=null;else if(u=r["O"].VIEW_MAP,f=c.parentId===i["data/contextId"]?i["data/context"]:i["data/observations"].find(function(e){return e.id===c.parentId}),"undefined"!==typeof f){c.encodedShape=f.encodedShape;var T=f;E=T.label}else console.warn("Need parent of ".concat(c.id," but doesn't find it. Parent id is ").concat(c.parentId));break;case r["z"].TYPE_INITIAL:case r["z"].TYPE_RELATIONSHIP:u=r["O"].VIEW_MAP;var p=null;if(null!==c.parentId&&(p=Object(d["f"])(i["data/tree"],c.parentId),"undefined"===typeof p&&(console.warn("Observation with id ".concat(c.id," has an invalid unknown parent: ").concat(c.parentId)),p=null)),p){var S=p;E=S.label}else E=c.label;break;case r["z"].TYPE_SUBJECT:u=r["O"].VIEW_MAP;break;case r["z"].TYPE_CONFIGURATION:u=r["O"].VIEW_GRAPH,E=c.label;break;case r["z"].TYPE_EVENT:u=r["O"].VIEW_UNKNOWN;break;default:t(new Error("Unknown observation type in observation labeled ".concat(c.label,": ").concat(c.observationType)));break}null!==u?(console.debug("Need a viewer of type ".concat(u.component)),u.forceNew||(s=o.dataViewers.find(function(e){return e.type.component===u.component})),"undefined"===typeof s?(console.info("Create new viewer of type ".concat(u.component)),n("ADD_VIEWER_ELEMENT",{main:l,type:u,label:E&&null!==E?E:u.label,visible:!u.hideable,callback:function(t){e(t)}})):(l&&a("setMainDataViewer",{viewerIdx:s.idx}),e(s.idx))):e(null)})},setSpinner:function(e,t){var n=e.commit,o=e.getters,a=e.dispatch,i=t.animated,c=t.color,s=t.time,l=void 0===s?null:s,u=t.then,d=void 0===u?null:u,E=t.errorMessage,f=void 0===E?null:E,T=t.owner;return new Promise(function(e){if(!T||null===T)throw new Error("No spinner owner!");i?n("ADD_TO_SPINNER_OWNERS",T):(n("REMOVE_FROM_SPINNER_OWNERS",T),0!==o.spinnerOwners.length&&(i=!0,c!==r["I"].SPINNER_ERROR.color&&(c=r["I"].SPINNER_LOADING.color))),null!==f&&"object"===b()(f)&&(f=JSON.stringify(f)),n("SET_SPINNER",{animated:i,color:c,errorMessage:f}),null!==l&&null!==d&&setTimeout(function(){a("setSpinner",p()({},d,{owner:T}))},1e3*l),e()})},searchStart:function(e){var t=e.commit,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t("SEARCH_ACTIVE",{active:!0,char:n})},searchStop:function(e){var t=e.commit;t("SEARCH_ACTIVE",{active:!1})},searchFocus:function(e,t){var n=e.commit,o=t.focused,a=t.char,i=void 0===a?null:a;n("SEARCH_FOCUS",{focused:o,char:i})},resetSearchLostChar:function(e){var t=e.commit;t("RESET_SEARCH_LOST_CHAR")},storePreviousSearch:function(e,t){var n=e.commit;n("STORE_SEARCH",t)},searchInApp:function(e,t){var n=e.commit;n("SEARCH_INAPP",t)},setFlowchartSelected:function(e,t){var n=e.commit;n("SET_FLOWCHART_SELECTED",t)},setDataflowInfoOpen:function(e,t){var n=e.commit;n("SET_DATAFLOW_INFO_OPEN",t)},setObservationInfo:function(e,t){var n=e.commit;n("SET_OBSERVATION_INFO",t)},setMapSelection:function(e,t){var n=e.commit,o=e.state,a=t.pixelSelected,i=t.timestamp,s=void 0===i?-1:i,l=t.layerSelected,u=void 0===l?null:l,E=t.observationId,f=void 0===E?null:E,T=t.locked,p=void 0!==T&&T;if(null!==a){null===f&&(f=o.observationInfo.id);var S="".concat("").concat(c["c"].REST_SESSION_VIEW,"data/").concat(f),m=Object(h["l"])(a,"EPSG:3857","EPSG:4326"),O=-1!==s?"T1(1){time=".concat(s.toFixed(0),"}"):"";Object(d["h"])("pv_".concat(f),S,{params:{format:"SCALAR",locator:"".concat(O,"S0(1){latlon=[").concat(m[0]," ").concat(m[1],"]}")},paramsSerializer:function(e){return v.a.stringify(e,{arrayFormat:"repeat"})}},function(e,t){var o="No value";e&&"undefined"!==typeof e.data&&(o=e.data),n("SET_MAP_SELECTION",{pixelSelected:a,layerSelected:u,value:o,locked:p}),t()})}else n("SET_MAP_SELECTION",r["g"].EMPTY_MAP_SELECTION)},setScaleEditing:function(e,t){var n=e.commit,o=t.active,a=t.type;n("SET_SCALE_EDITING",{active:o,type:a}),n("SET_MODAL_MODE",o)},setDrawMode:function(e,t){var n=e.commit;n("SET_DRAW_MODE",t),n("SET_MODAL_MODE",t)},setCustomContext:function(e,t){var n=e.commit;n("SET_CUSTOM_CONTEXT",t)},setTopLayer:function(e,t){var n=e.commit;n("SET_TOP_LAYER",t)},inputRequest:function(e,t){var n=e.commit;n("SET_INPUT_REQUEST",t),n("SET_MODAL_MODE",!0)},removeInputRequest:function(e,t){var n=e.commit,o=e.getters;n("REMOVE_INPUT_REQUEST",t),o.hasInputRequests||n("SET_MODAL_MODE",!1)},setModalMode:function(e,t){var n=e.commit;n("SET_MODAL_MODE",t)},setModalSize:function(e,t){var n=e.commit,o=t.width,a=t.height;n("SET_MODAL_SIZE",{width:o,height:a})},setFuzzyMode:function(e,t){var n=e.rootGetters,o=e.commit;n["data/hasContext"]||o("SET_FUZZY_MODE",t)},setLargeMode:function(e,t){var n=e.commit;n("SET_LARGE_MODE",t)},setTimeRunning:function(e,t){var n=e.commit;n("SET_TIME_RUNNING",t)},setLayout:function(e,t){var n=e.commit;if(null===t||"DESKTOP"!==t.platform&&"MOBILE"!==t.platform)if(n("SET_LAYOUT",null===t?null:p()({},t)),null!==t)localStorage.setItem(r["Q"].LOCAL_STORAGE_APP_ID,t.name);else{var o=localStorage.getItem(r["Q"].LOCAL_STORAGE_APP_ID);o&&localStorage.removeItem(r["Q"].LOCAL_STORAGE_APP_ID)}else console.info("Received an app for another platform: ".concat(t.platform))},setModalWindow:function(e,t){var n=e.commit;n("SET_MODAL_WINDOW",t)},setWindowSide:function(e,t){var n=e.commit;n("SET_WINDOW_SIDE",t)},setEngineEvent:function(e,t){var n=e.commit;n("SET_ENGINE_EVENT",t)},createViewComponent:function(e,t){var n=e.commit;n("CREATE_VIEW_COMPONENT",t)},viewAction:function(e,t){var n=e.commit;n("VIEW_ACTION",t)},viewSetting:function(e,t){var n=e.getters,o=e.rootGetters,a=e.dispatch;if(t){var i=function(){N["b"].$emit(r["h"].SELECT_ELEMENT,{id:t.targetId,selected:t.operation===r["P"].SHOW})};switch(t.target){case r["P"].OBSERVATION:n.mainViewerName!==r["N"].DATA_VIEWER.name&&t.operation===r["P"].SHOW?a("setMainViewer",r["N"].DATA_VIEWER).then(function(){i(),N["b"].$emit(r["h"].MAP_SIZE_CHANGED,{type:"changelayout"})}):i();break;case r["P"].VIEW:i();break;case r["P"].TREE:n.mainViewerName===r["N"].DATA_VIEWER.name&&o["data/hasContext"]&&a("setTreeVisible",t.operation===r["P"].SHOW);break;case r["P"].REPORT:n.mainViewerName===r["N"].REPORT_VIEWER.name&&t.operation===r["P"].HIDE?a("setMainViewer",n.isMainControlDocked?r["N"].DOCKED_DATA_VIEWER:r["N"].DATA_VIEWER):n.mainViewerName!==r["N"].REPORT_VIEWER.name&&o["data/hasObservations"]&&t.operation===r["P"].SHOW&&a("setMainViewer",r["N"].REPORT_VIEWER);break;case r["P"].DATAFLOW:n.mainViewerName===r["N"].DATAFLOW_VIEWER.name&&t.operation===r["P"].HIDE?a("setMainViewer",n.isMainControlDocked?r["N"].DOCKED_DATA_VIEWER:r["N"].DATA_VIEWER):n.mainViewerName!==r["N"].DATAFLOW_VIEWER.name&&o["data/hasContext"]&&t.operation===r["P"].SHOW&&a("setMainViewer",r["N"].DATAFLOW_VIEWER);break;case r["P"].URL:N["b"].$emit(r["h"].DOWNLOAD_URL,{url:t.targetId,parameters:t.parameters});break;default:break}}},setShowSettings:function(e,t){var n=e.commit;n("SHOW_SETTINGS",t)},setNotificationsParams:function(e,t){var n=e.commit;n("SET_NOTIFICATIONS_PARAMS",t)},setDocumentationView:function(e,t){var n=e.commit;n("SET_DOCUMENTATION_VIEW",t)},setDocumentationSelected:function(e,t){var n=e.commit;n("SET_DOCUMENTATION_SELECTED",t)},setDocumentation:function(e,t){var n=e.commit,o=e.rootGetters;if(!t.view){var a=o["data/documentationContent"].get(t.id);if(!a)return void console.debug("Try to show an unknown document: ".concat(t.id));t.view=r["m"][a.type]}n("SET_DOCUMENTATION_VIEW",t.view),n("SET_DOCUMENTATION_SELECTED",t.id),N["b"].$emit(r["h"].SHOW_DOCUMENTATION),N["b"].$emit(r["h"].SELECT_ELEMENT,{id:t.id,selected:!0})},changeInDocumentation:function(e,t){var n=e.commit;if(t.viewsAffected){var o=t.viewsAffected.filter(function(e){return e!==r["n"].REFERENCES&&e!==r["n"].MODELS});if(o.length>1&&o.includes(r["n"].TABLES)){var a=o.indexOf(r["n"].REPORT);-1!==a&&o.splice(a,1)}o.length>0&&n("SET_RELOAD_VIEWS",o)}},removeReloadView:function(e,t){var n=e.commit;n("REMOVE_RELOAD_VIEW",t)},setTableFontSize:function(e,t){var n=e.commit;n("SET_TABLE_FONT_SIZE",t)},setTextFontSize:function(e,t){var n=e.commit;n("SET_TABLE_FONT_SIZE",t)},setViewCoordinates:function(e,t){var n=e.commit;n("SET_VIEW_COORDINATES",t)}},C={namespaced:!0,state:s,getters:f,mutations:m,actions:R},g=(n("456d"),n("970b")),L=n.n(g),w=n("5bc30"),P=n.n(w),D=function(){function e(){L()(this,e),this.items=[]}return P()(e,[{key:"push",value:function(e){this.items.push(e)}},{key:"pop",value:function(e){if("undefined"!==typeof e&&e>0){if(e>this.size()-1)throw Error("Stack overflow");return this.items.splice(e+1),this.items.peek()}return this.items.pop()}},{key:"peek",value:function(){return 0===this.items.length?null:this.items[this.items.length-1]}},{key:"previous",value:function(){return this.items.length<=1?null:this.items[this.items.length-2]}},{key:"size",value:function(){return this.items.length}},{key:"findIndex",value:function(e){return this.items.findIndex(e)}},{key:"findItem",value:function(e){return this.items.find(function(t){return t.id===e})}},{key:"map",value:function(e){return this.items.map(e)}},{key:"empty",value:function(){this.items.splice(0)}},{key:"isEmpty",value:function(){return 0===this.items.length}},{key:"toArray",value:function(){return this.items}}]),e}(),y={sessionReference:null,tree:[],userTree:[],lasts:[],contexts:new D,contextCustomLabel:null,scaleReference:null,schedulingResolution:null,proposedContext:null,scaleLocked:{space:!1,time:!1},nextScale:null,observations:[],contextMenuObservationId:null,knowledgeViews:[],timeEvents:[],modificationsTask:null,timestamp:-1,engineTimestamp:-1,flowcharts:r["s"],dataflowStatuses:[],dataflowInfo:null,session:null,contextsHistory:[],waitingForReset:null,orphans:[],searchResult:null,childrenToAskFor:r["g"].CHILDREN_TO_ASK_FOR,interactiveMode:!1,crossingIDL:!1,capabilities:{},local:!1,token:null,packageVersion:"0.22.0",packageBuild:"0",terminalsCounter:0,terminals:[],terminalCommands:null!==localStorage.getItem(r["Q"].LOCAL_STORAGE_TERMINAL_COMMANDS)?JSON.parse(localStorage.getItem(r["Q"].LOCAL_STORAGE_TERMINAL_COMMANDS)):[],documentationTrees:Object.keys(r["n"]).map(function(e){return{view:e,tree:[]}}),documentationContent:new Map},x=(n("55dd"),{sessionReference:function(e){return e.sessionReference},isDeveloper:function(e){return e.sessionReference&&e.sessionReference.owner&&e.sessionReference.owner.groups&&-1!==e.sessionReference.owner.groups.findIndex(function(e){return"DEVELOPERS"===e.id})},tree:function(e){return e.tree},treeNode:function(e){return function(t){return Object(d["f"])(e.tree,t)}},lasts:function(e){return e.lasts},hasTree:function(e){return e.tree.length>0},mainTreeHasNodes:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return null!==Object(d["e"])(e.tree,"",function(e){return e.userNode||t&&!e.ticked?null:e})}},userTree:function(e){return e.userTree},observations:function(e){return e.observations},observationsOfViewer:function(e){return function(t){return e.observations.filter(function(e){return e.viewerIdx===t})}},hasObservations:function(e){return 0!==e.observations.length},visibleObservations:function(e){return e.observations.filter(function(e){return e.visible})},observationsIdOnTop:function(e){return e.observations.filter(function(e){return e.top}).map(function(e){return e.id})},contextMenuObservationId:function(e){return e.contextMenuObservationId},knowledgeViews:function(e){return e.knowledgeViews},visibleKnowledgeView:function(e){return e.knowledgeViews.find(function(e){return e.show})},timeEvents:function(e){return e.timeEvents},timeEventsOfObservation:function(e){return function(t){return e.timeEvents.filter(function(e){return e.id===t})}},timeEventsUntil:function(e){return function(t){return e.timeEventsEvents.filter(function(e){return e.timestamp<=t})}},modificationsTask:function(e){return e.modificationsTask},visibleEvents:function(e){var t=e.observations.filter(function(e){return e.visible}).map(function(e){return e.id});return e.timeEvents.filter(function(e){return t.includes(e.id)})},timestamp:function(e){return e.timestamp},engineTimestamp:function(e){return e.engineTimestamp},flowcharts:function(e){return e.flowcharts},flowchart:function(e){return function(t){return e.flowcharts.find(function(e){return e.type===t})}},flowchartsUpdatable:function(e){return e.flowcharts.find(function(e){return e.updatable})},flowchartUpdatable:function(e){return function(t){var n=e.flowcharts.find(function(e){return e.type===t});return!!n&&n.updatable}},dataflowStatuses:function(e){return e.dataflowStatuses},dataflowInfo:function(e){return e.dataflowInfo},contextsId:function(e){return e.contexts.map(function(e){return e.id})},context:function(e){return e.contexts.peek()},contextsCount:function(e){return e.contexts.size()},previousContext:function(e){return e.contexts.previous()},contextById:function(e){return function(t){return e.contexts.findItem(t)}},proposedContext:function(e){return e.proposedContext},hasContext:function(e,t){return null!==t.context},contextLabel:function(e,t){return null!==t.context?t.context.label:null},contextCustomLabel:function(e){return null!==e.contextCustomLabel?e.contextCustomLabel:null},contextsLabels:function(e,t){return null!==t.context?e.contexts.map(function(e){return{label:e.label,contextId:e.id}}):[]},contextId:function(e,t){return null!==t.context?t.context.id:null},contextEncodedShape:function(e,t){return null!==t.context?"".concat(t.context.spatialProjection," ").concat(t.context.encodedShape):""},contextsHistory:function(e){return e.contextsHistory.length>0&&e.contextsHistory.sort(function(e,t){return e.creationTime===t.creationTime?0:e.creationTime>t.creationTime?-1:1}),e.contextsHistory},contextReloaded:function(e,t){return null!==t.context&&"undefined"!==typeof t.context.restored&&t.context.restored},contextHasTime:function(e,t){return null!==t.context&&t.context.scaleReference&&0!==t.context.scaleReference.end},session:function(e){return e.session},scaleReference:function(e,t){return null!==t.context?t.context.scaleReference:e.scaleReference},schedulingResolution:function(e){return e.schedulingResolution},isScaleLocked:function(e){return e.scaleLocked},nextScale:function(e){return e.nextScale},hasNextScale:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null!==e.nextScale&&(null===t||t===r["C"].ST_SPACE&&e.nextScale.spaceChanged||t===r["C"].ST_SPACE&&e.nextScale.spaceChanged)}},capabilities:function(e){return e.capabilities},searchResult:function(e){return e.searchResult},interactiveMode:function(e){return e.interactiveMode},isCrossingIDL:function(e){return e.crossingIDL},isLocal:function(e){return e.local},terminals:function(e){return e.terminals},hasActiveTerminal:function(e){return-1!==e.terminals.findIndex(function(e){return e.active})},terminalCommands:function(e){return e.terminalCommands},documentationTrees:function(e){return e.documentationTrees},documentationContent:function(e){return e.documentationContent}}),M=n("9523"),k=n.n(M),U=n("1442"),V={SET_SESSION_REFERENCE:function(e,t){e.sessionReference=t},SET_CONTEXT:function(e,t){var n=t.context,o=void 0===n?null:n,a=t.isRecontext,i=void 0!==a&&a;if(null===o)e.contexts.empty();else{var c=e.contexts.findIndex(function(e){return e.id===o.id});if(-1===c){if(i){var s=e.contexts.peek();o.scaleReference=s.scaleReference}e.contexts.push(o)}else e.contexts.pop(c)}e.tree=[],e.userTree=[],e.lasts=[],e.observations=[],e.knowledgeViews=[],e.flowcharts.forEach(function(e){e.flowchart=null,e.graph=null,e.updatable=!1,e.visible=!1}),e.dataflowStatuses=[],e.dataflowInfo=null,e.nodeSelected=null,e.nextScale=null,e.crossingIDL=!1,e.contextCustomLabel=null,e.timeEvents=[],e.timestamp=-1,e.engineTimestamp=-1,e.proposedContext=null,e.documentationTrees.forEach(function(e){e.tree.splice(0,e.tree.length)}),e.documentationContent.clear(),e.documentationView=r["n"].REPORT,null===o?e.contextsHistory=[]:"undefined"===typeof o.restored&&(o.restored=!1),e.schedulingResolution=null},SET_CONTEXT_CUSTOM_LABEL:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e.contextCustomLabel=t},WAITING_FOR_RESET:function(e,t){e.waitingForReset=t},STORE_CONTEXT:function(e,t){var n=e.contextsHistory.find(function(e){return e.id===t.id});"undefined"===typeof n?(console.debug("Added new context in store with id ".concat(t.id)),e.contextsHistory.push(t)):console.debug("Context with id ".concat(t.id," yet exists in contextHistory"))},SET_RELOAD_FLOWCHART:function(e,t){e.flowcharts.filter(function(e){return null===t||e.target===t}).forEach(function(e){e.updatable=!0,e.visible=!1})},ADD_FLOWCHART:function(e,t){var n=t.flowchart,o=t.target,a=e.flowcharts.find(function(e){return e.type===o});a?(a.flowchart=n,a.updatable=!1):console.warn("Unknown target to add flowchart: ".concat(o))},SET_DATAFLOW_STATUS:function(e,t){var n=t.id,o=t.status,a=e.dataflowStatuses.find(function(e){return e.id===n});"undefined"!==typeof a?a.status=o:e.dataflowStatuses.push({id:n,status:o})},SET_DATAFLOW_INFO:function(e,t){e.dataflowInfo=t},UPDATE_TIME_EVENTS:function(e,t){t.timeEvents&&t.timeEvents.length>0&&(t.timeEvents.forEach(function(n){e.timeEvents.push({id:t.id,timestamp:n})}),console.debug("Added ".concat(t.timeEvents.length," events")))},ADD_OBSERVATION:function(e,t){var n=t.observation;e.observations.push(n),console.info("Added observation: ".concat(n.label)),console.debug("Observation content: ".concat(JSON.stringify(n,null,2)))},UPDATE_OBSERVATION:function(e,t){var n=t.observationIndex,o=t.newObservation,a=e.observations[n],i=p()({},a,o);e.observations.splice(n,1,i);var r=function(e){e?(e.needUpdate=!i.contextualized,e.dynamic=i.dynamic,e.childrenCount=i.childrenCount,e.children.forEach(function(e){e.siblingsCount=i.childrenCount}),e.tickable=null!==i.viewerIdx&&!i.empty||i.isContainer||i.childrenCount>0,e.exportFormats=i.exportFormats):console.warn("Node of ".concat(i.id," - ").concat(i.label," not found"))},c=Object(d["f"])(e.tree,i.id);r(c),c&&c.userNode&&r(Object(d["f"])(e.userTree,i.id))},SET_CONTEXTMENU_OBSERVATIONID:function(e,t){e.contextMenuObservationId=t},MOD_BRING_FORWARD:function(e,t){var n=e.observations.find(function(e){return e.id===t.id});n||console.warn("Receive a bring forward for an unknown observation: ".concat(t.id," - ").concat(t.label)),n.main=!0,t.main=!0},MOD_STRUCTURE_CHANGE:function(e,t){var n=t.node,o=t.modificationEvent,a=e.observations.find(function(e){return e.id===o.id});a.childrenCount=o.newSize,a.empty=!1,o.exportFormats&&(a.exportFormats=o.exportFormats);var i=function(e){e&&(e.childrenCount=o.newSize,o.exportFormats&&(e.exportFormats=o.exportFormats),e.children.forEach(function(e){e.siblingsCount=o.newSize}),e.tickable=!0,e.disabled=!1,e.empty=!1,e.needUpdate=!0)};i(n),n.userNode&&i(Object(d["f"])(e.userTree,n.id))},MOD_VALUE_CHANGE:function(e,t){if(t.dynamic=!0,t.needUpdate=!1,t.userNode){var n=Object(d["f"])(e.userTree,t.id);n?(n.dynamic=!0,n.needUpdate=!1):console.warn("Node theoretically in user tree but not found: ".concat(t.id," - ").concat(t.label))}},ADD_KNOWLEDGE_VIEW:function(e,t){e.knowledgeViews.push(p()({},t,{show:!1}))},SHOW_KNOWLEDGE_VIEW:function(e,t){e.knowledgeViews.forEach(function(e){e.viewId===t&&(e.show=!0)})},ADD_TIME_EVENT:function(e,t){var n=-1!==e.timeEvents.findIndex(function(e){return e.id===t.id&&e.timestamp===t.timestamp&&e.newAttributes===t.newAttributes&&e.newScale===t.newScale&&e.newName===t.newName&&e.newSemantics===t.newSemantics&&e.newSize===t.newSize});n?console.warn("Duplicated time event:\n ".concat(JSON.stringify(t,null,2))):e.timeEvents.push(t)},SET_MODIFICATIONS_TASK:function(e,t){e.modificationsTask=t},SET_TIMESTAMP:function(e,t){e.timestamp=t},SET_ENGINE_TIMESTAMP:function(e,t){e.engineTimestamp=t},SET_SCHEDULING_STATUS:function(e,t){if(null!==e.scaleReference)switch(t.type){case"TIME_ADVANCED":e.engineTimestamp=t.currentTime;break;case"STARTED":e.engineTimestamp=t.currentTime,e.schedulingResolution=t.resolution,N["b"].$emit(r["h"].NEW_SCHEDULING);break;case"FINISHED":e.engineTimestamp=e.scaleReference.end;break;default:console.warn("Unknown scheduling type: ".concat(t.type));break}else console.warn("Try to change scheduling type but no scaleReference")},ADD_NODE:function(e,t){var n=t.node,o=t.parentId,a=t.toUserTreeOnly,i=void 0!==a&&a,r=e.contexts.peek();if(null===r)return console.info("Context is null, it's just set or is a new observation of previous search for this session, so added to orphans. ID: ".concat(n.id)),void e.orphans.push(n);var c=r.id===r.rootContextId;if((c&&n.rootContextId!==r.id||!c&&n.contextId!==r.id)&&console.info("Subcontext or trying to add to tree an observation of other context. Actual: ".concat(r.id," / Node: ").concat(n.rootContextId)),r.id!==n.id)if(r.id===o){if(i||e.tree.push(n),n.userNode){var s=JSON.parse(JSON.stringify(n));e.userTree.push(s)}}else{var l=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,i=Object(d["f"])(t,o);null!==i?(i.children.length===i.childrenCount&&(i.childrenCount++,i.children.forEach(function(e){e.siblingsCount=i.childrenCount})),i.children.push(p()({},a,{idx:i.children.length,siblingsCount:i.childrenCount})),i.disabled=!1):(console.warn("Orphan founded with id ".concat(n.id)),e.orphans.push(n))};i||l(e.tree),n.userNode&&l(e.userTree,JSON.parse(JSON.stringify(n)))}else console.error("Try to add context to tree, check it!")},REMOVE_NODE:function(e,t){var n=t.id,o=t.fromMainTree,a=void 0!==o&&o,i=a?e.tree:e.userTree,r=function e(t,n){var o=t.findIndex(function(e){return e.id===n});-1===o?t.forEach(function(t){t.children&&0!==t.children.length&&e(t.children,n)}):(t.splice(o,1),console.debug("Find and delete node ".concat(n," from ").concat(a?"main tree":"user tree")))};r(i,n)},UPDATE_USER_NODE:function(e,t){var n=t.node,o=t.userNode,a=function e(t){t.userNode=o,t.children&&t.children.length>0&&t.children.forEach(function(t){return e(t)})};a(n)},SET_FOLDER_VISIBLE:function(e,t){var n=t.nodeId,o=t.visible,a=t.zIndexOffset;if(null!==a){e.observations.forEach(function(e){e.parentArtifactId===n||e.parentId===n?(e.visible=o,e.top=o):o&&e.zIndexOffset===a&&(e.top=!1)});var i=e.observations.find(function(e){return e.id===n});"undefined"!==typeof i&&(i.visible=o)}else console.info("Folder with id ".concat(n," has no loaded elements"));var r=function(e){var t=Object(d["f"])(e,n);"undefined"!==typeof t&&null!==t&&t.children.length>0&&(t.children.forEach(function(e){e.parentArtifactId===t.id&&(e.ticked=o)}),t.ticked=o)};r(e.tree),r(e.userTree)},SET_VISIBLE:function(e,t){var n=t.id,o=t.visible,a=e.observations.findIndex(function(e){return e.id===n}),i=e.observations[a];if("undefined"!==typeof i){var r=i.zIndexOffset;i.visible=o,i.top=o,o&&e.observations.forEach(function(e){e.id!==n&&e.zIndexOffset===r&&(e.top=!1)});var c=function(e){var t=Object(d["f"])(e,n);t&&(t.ticked=o)};c(e.tree),c(e.userTree),e.observations.splice(a,1,i)}else console.warn("Try to change visibility to no existing observations with id ".concat(n))},SET_LOADING_LAYERS:function(e,t){var n=t.loading,o=t.observation;if(o){o.loading=n;var a=Object(d["f"])(e.tree,o.id);if(a&&(a.loading=n,a.userNode)){var i=Object(d["f"])(e.userTree,o.id);i.loading=n}}},STORE_RAW_SEARCH_RESULT:function(e,t){e.searchResult=t},ADD_LAST:function(e,t){var n=t.parentId,o=t.observationId,a=t.offsetToAdd,i=t.total,r=e.lasts.findIndex(function(e){return n===e.parentId});if(-1!==r){var c=e.lasts[r];c.offset+a>=c.total?(e.lasts.splice(r,1),console.info("Folder ".concat(n," fully loaded"))):(c.observationId=o,c.offset+=a,console.info("Loaded more elements in folder ".concat(n,". New offset is ").concat(c.offset," ")))}else{if(a+1===i)return void console.info("Nothing to do in folder ".concat(n,". Offset is ").concat(a," and total is ").concat(i," "));e.lasts.push({parentId:n,observationId:o,offset:a,total:i}),console.debug("Added folder ".concat(n,". Offset is ").concat(a," "))}},SET_SCALE_REFERENCE:function(e,t){null===t.timeUnit&&(t.timeUnit=r["E"].YEAR),e.scaleReference=t,e.context||(null!==e.scaleReference.shape?e.proposedContext=d["a"].readGeometry(e.scaleReference.shape,{dataProjection:U["d"].PROJ_EPSG_4326,featureProjection:U["d"].PROJ_EPSG_3857}):e.proposedContext=null),console.info("Scale reference set: ".concat(JSON.stringify(t,null,2)))},UPDATE_SCALE_REFERENCE:function(e,t){var n,o=t.type,a=t.unit,i=t.timeResolutionMultiplier,c=t.start,s=t.end,l=t.next,u=void 0!==l&&l,d=t.spaceResolution;o===r["C"].ST_SPACE&&0!==d&&Math.round(d)!==d&&(d=d.toFixed(1));var E=p()({},e.scaleReference,(n={},k()(n,"".concat(o,"Unit"),a),k()(n,"".concat(o,"ResolutionDescription"),(d&&0!==d?"".concat(d," "):"")+a),n),o===r["C"].ST_SPACE&&{spaceResolution:d,spaceResolutionConverted:d},o===r["C"].ST_TIME&&{timeResolutionMultiplier:i,start:c,end:s});u?e.nextScale=p()({},E,{spaceChanged:o===r["C"].ST_SPACE,timeChanged:o===r["C"].ST_TIME}):e.scaleReference=E},SET_SCALE_LOCKED:function(e,t){var n=t.scaleType,o=t.scaleLocked;"all"===n?(e.scaleLocked.space=o,e.scaleLocked.time=o):Object.prototype.hasOwnProperty.call(e.scaleLocked,n)?(console.info("Set ".concat(o," to ").concat(n," scale type")),e.scaleLocked[n]=o):console.error("Try to set locked to unknow scale type: ".concat(n))},SET_INTERACTIVE_MODE:function(e,t){e.interactiveMode=t},SET_CROSSING_IDL:function(e,t){e.crossingIDL=t},ADD_TERMINAL:function(e,t){e.terminals.push(t)},REMOVE_TERMINAL:function(e,t){var n=e.terminals.findIndex(function(e){return e.id===t});-1!==n?e.terminals.splice(n,1):console.warn("Trying to remove unknown terminal ".concat(t))},ADD_TERMINAL_COMMAND:function(e,t){e.terminalCommands.push(t),localStorage.setItem(r["Q"].LOCAL_STORAGE_TERMINAL_COMMANDS,JSON.stringify(e.terminalCommands))},CLEAR_TERMINAL_COMMANDS:function(e){e.terminalCommands.splice(0,e.terminalCommands.length),localStorage.setItem(r["Q"].LOCAL_STORAGE_TERMINAL_COMMANDS,JSON.stringify(e.terminalCommands))},SET_DOCUMENTATION:function(e,t){var n=t.view,o=t.tree,a=e.documentationTrees.findIndex(function(e){return e.view===n});-1===a?console.warn("Unknown documentation view: ".concat(n)):e.documentationTrees[a].tree=o},ADD_DOCUMENTATION:function(e,t){t.forEach(function(t){e.documentationContent.set(t.id,t)})}},F=(n("28a5"),n("f559"),n("ffc1"),n("96cf"),n("c973")),Y=n.n(F),W=n("be3b"),G=n("17dc"),j=n("e7d8"),H=void 0,z={loadSessionReference:function(e){var t=e.commit;return new Promise(function(e,n){W["a"].get("".concat("").concat(c["c"].REST_SESSION_INFO),{maxRedirects:0}).then(function(n){var o=n.data;o&&(t("SET_SESSION_REFERENCE",o),e())}).catch(function(e){e.response&&403===e.response.status?n(new Error("Invalid session")):n(new Error("Error retrieving session: ".concat(e)))})})},setContext:function(e,t){var n=t.context,o=t.isRecontext,a=e.commit,i=e.getters,r=e.dispatch;null!==i.context&&i.context.id===n.id||(a("SET_CONTEXT",{context:n,isRecontext:o}),o&&r("view/resetContext",null,{root:!0}),r("view/setContextLayer",n,{root:!0}),console.debug("Send start watch context ".concat(n.id)),Object(d["q"])(G["a"].WATCH_REQUEST,{active:!0,observationId:n.id,rootContextId:n.rootContextId}))},resetContext:function(e){var t=e.commit,n=e.dispatch,o=e.state,a=e.getters,i=a.context;if(null!==i){var s={id:i.id,rootContextId:i.rootContextId};t("SET_CONTEXT",{}),n("getSessionContexts"),n("view/resetContext",null,{root:!0}),null!==o.waitingForReset?(n("loadContext",o.waitingForReset),o.waitingForReset=null):n("addObservation",{observation:r["B"],main:!0}),n("view/addToKlabLog",{type:c["a"].TYPE_INFO,payload:{message:"Context reset",separator:!0}},{root:!0}),console.debug("Send stop watch context ".concat(s.id)),Object(d["q"])(G["a"].WATCH_REQUEST,{active:!1,observationId:s.id,rootContextId:s.rootContextId})}else console.info("Try to reset null context, is initial reset?")},setWaitinForReset:function(e){var t=e.commit,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t("WAITING_FOR_RESET",n)},loadContext:function(e,t){var n=e.commit,o=e.dispatch;console.info("Ask for context to restore ".concat(t)),W["a"].get("".concat("").concat(c["c"].REST_SESSION_VIEW,"describe/").concat(t),{params:{childLevel:1}}).then(function(){var e=Y()(regeneratorRuntime.mark(function e(a){var i,c,s;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return i=a.data,i.restored=!0,e.next=4,o("setContext",{context:p()({},i,{children:[]})});case 4:if(n("data/SET_RELOAD_FLOWCHART",{target:null},{root:!0}),console.debug("Context received with id ".concat(i.id)),!(i.children.length>0)){e.next=12;break}return c=[],s=i.children,s.forEach(function(e){null!==e.taskId&&(-1===c.indexOf(e.taskId)&&c.push(e.taskId),o("addObservation",{observation:e,restored:!0}))}),e.next=12,Promise.all(c);case 12:o("view/setSpinner",p()({},r["I"].SPINNER_STOPPED,{owner:t}),{root:!0});case 13:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()).catch(function(e){throw o("view/setSpinner",p()({},r["I"].SPINNER_ERROR,{owner:t,errorMessage:e}),{root:!0}),e})},getSessionContexts:function(e){var t=e.getters,n=e.commit;return new Promise(function(e,o){if(null!==t.session){var a="".concat("").concat(c["c"].REST_STATUS);Object(d["h"])(t.session,a,{transformRequest:[function(e,t){return delete t.common.Klab_Authorization,e}]},function(a,i){var r=a.data;if(console.debug("Contexts history:\n".concat(JSON.stringify(r,null,4))),r&&r.sessions&&r.sessions.length>0){var c=r.sessions.find(function(e){return e.id===t.session});if("undefined"!==typeof c){var s=c.rootObservations;if(null===s||0===Object.keys(s).length&&s.constructor===Object)console.debug("No root observation founded"),e(0);else{console.debug("Find ".concat(Object.keys(s).length," root observations for this session"));var l=0;Object.entries(s).forEach(function(e){n("STORE_CONTEXT",e[1]),l+=1}),e(l)}}else console.warn("No information for session ".concat(t.session,", isn't valid session?")),o(new Error("No information for session ".concat(t.session,", disconnect")))}i()})}else o(new Error("No session established, no useful engine available, disconnect"))})},setContextCustomLabel:function(e,t){var n=e.commit;n("SET_CONTEXT_CUSTOM_LABEL",t)},addObservation:function(e,t){var n=e.commit,o=e.rootGetters,a=e.state,i=e.dispatch,c=t.observation,s=t.toTree,l=void 0===s||s,u=t.visible,E=void 0!==u&&u,f=t.restored,T=void 0!==f&&f,S=t.updated,m=void 0!==S&&S;return new Promise(function(e){var t=a.observations.findIndex(function(e){return e.id===c.id});return-1!==t?(m?(n("UPDATE_OBSERVATION",{observationIndex:t,newObservation:c}),n("UPDATE_TIME_EVENTS",c),console.debug("Observation$ ".concat(c.label," updated"))):i("view/addToKexplorerLog",{type:r["x"].TYPE_WARNING,payload:{message:"Existing observation received: ".concat(c.label)},important:!0},{root:!0}),e()):(i("view/assignViewer",{observation:c},{root:!0}).then(function(t){if(c.viewerIdx=t,c.visible=E,c.top=!1,c.zIndex=0,c.layerOpacity=c.layerOpacity||1,c.colormap=c.colormap||null,c.tsImages=[],c.isContainer=c.observationType===r["z"].TYPE_GROUP||c.observationType===r["z"].TYPE_VIEW,c.singleValue=c.observationType===r["z"].TYPE_STATE&&1===c.valueCount,c.loading=!1,c.loaded=!0,null===c.contextId){var a=o["stomp/tasks"].find(function(e){return c.taskId.startsWith(e.id)});if(a){var s=a.contextId;c.contextId=s}else c.contextId=c.rootContextId}if(n("ADD_OBSERVATION",{observation:p()({},c,{children:[]}),restored:T}),n("UPDATE_TIME_EVENTS",c),c.observationType===r["z"].TYPE_INITIAL)return e();if(c.children.length>0&&(c.disabled=!1,c.children.forEach(function(e){i("addObservation",{observation:e})})),l){var u=Object(d["l"])(c);if(n("ADD_NODE",u),c.childrenCount>0&&0===c.children.length){var f=u.node;i("addStub",f)}}return e()}),null)})},updateObservation:function(e,t){var n=e.commit,o=e.dispatch,a=e.state,i=t.observationId,r=t.exportFormats,s=a.observations.findIndex(function(e){return e.id===i});-1!==s?W["a"].get("".concat("").concat(c["c"].REST_SESSION_VIEW,"describe/").concat(i),{params:{childLevel:0}}).then(function(e){var t=e.data;if(t){if(r&&(t.exportFormats=r),n("UPDATE_OBSERVATION",{observationIndex:s,newObservation:t}),t.childrenCount>0){var c=Object(d["f"])(a.tree,t.id),l=c.children,u=l.length>0;u&&1===l.length&&(u=!l[0].id.startsWith("STUB")),u&&o("askForChildren",{parentId:i,count:Math.max(l.length,a.childrenToAskFor),total:t.childrenCount,updated:!0})}}else console.warn("Ask for update observation ".concat(i," but nothing found in engine"))}):console.warn("Try to update a not existing observation: ".concat(i))},addStub:function(e,t){var n=e.commit;n("ADD_NODE",{node:p()({},t,{id:"STUB-".concat(t.id),observable:"",label:"",children:[],childrenCount:0,childrenLoaded:0,siblingsCount:t.childrenCount,parentArtifactId:t.id,tickable:!1,disabled:!0,empty:!0,actions:{},header:"stub",main:!1,isContainer:!1,exportFormats:{},observationType:r["z"].TYPE_INITIAL,noTick:!0,parentId:t.id,dynamic:!1},t.userNode&&{userNode:t.userNode}),parentId:t.id}),n("ADD_LAST",{parentId:t.id,observationId:"STUB-".concat(t.id),offsetToAdd:0,total:t.childrenCount})},addKnowledgeView:function(e,t){var n=e.commit;n("ADD_KNOWLEDGE_VIEW",t)},showKnowledgeView:function(e,t){var n=e.commit;n("SHOW_KNOWLEDGE_VIEW",t)},addModificationEvent:function(e,t){var n=e.rootGetters,o=e.state,a=e.commit,i=e.dispatch,c=Object(d["f"])(o.tree,t.id);if(c)switch(t.type){case r["y"].BRING_FORWARD:a("MOD_BRING_FORWARD",c),i("changeTreeOfNode",{id:t.id,isUserTree:!0});break;case r["y"].VALUE_CHANGE:a("MOD_VALUE_CHANGE",c),a("ADD_TIME_EVENT",t),null===o.modificationsTask&&i("setModificationsTask",n["stomp/lastActiveTask"]());break;case r["y"].STRUCTURE_CHANGE:a("MOD_STRUCTURE_CHANGE",{node:c,modificationEvent:t}),c.childrenCount>0&&0===c.children.length&&i("addStub",c);break;case r["y"].CONTEXTUALIZATION_COMPLETED:i("updateObservation",{observationId:t.id,exportFormats:t.exportFormats});break;default:console.warn("Unknown modification event: ".concat(t.type));break}else t.id!==t.contextId?console.debug("Modification event for a not existing node, probably still not loaded",t):console.debug("Modification event for context",t)},setModificationsTask:function(e){var t=e.commit,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t("SET_MODIFICATIONS_TASK",n)},setTimestamp:function(e,t){var n=e.commit;t&&-1!==t&&(t=Math.round(t)),n("SET_TIMESTAMP",t)},setScheduling:function(e,t){var n=e.commit,o=e.getters;o.context&&t.contextId===o.context.id?n("SET_SCHEDULING_STATUS",t):console.debug("Received a scheduling of other context: ".concat(t.contextId))},askForChildren:function(e,t){var n=e.commit,o=e.dispatch,a=e.state,i=t.parentId,s=t.total,l=t.offset,u=void 0===l?0:l,E=t.count,f=void 0===E?a.childrenToAskFor:E,T=t.toTree,S=void 0===T||T,m=t.visible,O=void 0!==m&&m,b=t.notified,_=void 0===b||b,I=t.updated,A=void 0!==I&&I;return new Promise(function(e){console.debug("Ask for children of node ".concat(i,": count:").concat(f," / offset ").concat(u)),o("view/setSpinner",p()({},r["I"].SPINNER_LOADING,{owner:i}),{root:!0}).then(function(){W["a"].get("".concat("").concat(c["c"].REST_SESSION_VIEW,"children/").concat(i),{params:{count:f,offset:u}}).then(function(t){var c=t.data;c&&c.length>0?c.forEach(function(t,l,u){t.notified=_,t.siblingsCount=s,o("addObservation",{observation:t,toTree:S,visible:O,updated:A}).then(function(){if(l===u.length-1){S&&n("ADD_LAST",{parentId:i,observationId:t.id,offsetToAdd:c.length,total:s});var E=function(e){var t=Object(d["f"])(e,i);t&&null!==t&&(t.childrenLoaded+=c.length)};E(a.tree),E(a.userTree),o("view/setSpinner",p()({},r["I"].SPINNER_STOPPED,{owner:i}),{root:!0}),e()}})}):(o("view/setSpinner",p()({},r["I"].SPINNER_STOPPED,{owner:i}),{root:!0}),e())})})})},addChildrenToTree:function(e,t){var n=e.dispatch,o=e.commit,a=e.state,i=t.parent,r=t.count,c=void 0===r?a.childrenToAskFor:r;if(i&&null!==i)for(var s=a.observations.filter(function(e){return e.parentArtifactId===i.id||e.parentId===i.id}),l=s.length,u=i.children.length,E=u,f=0;E0&&0===T.children.length&&n("addStub",p.node),f!==c-1&&E!==l-1||o("ADD_LAST",{parentId:i.id,observationId:T.id,offsetToAdd:f+1,total:i.childrenLoaded})}},changeTreeOfNode:function(e,t){var n=e.commit,o=e.state,a=t.id,i=t.isUserTree,r=Object(d["f"])(o.tree,a);i?null===Object(d["f"])(o.userTree,a)?(n("UPDATE_USER_NODE",{node:r,userNode:!0}),n("ADD_NODE",{node:r,parentId:r.parentArtifactId||r.parentId,toUserTreeOnly:!0})):console.warn("Try to move to user tree an existing node: ".concat(a," - ").concat(r.label)):(n("UPDATE_USER_NODE",{node:r,userNode:!1}),n("REMOVE_NODE",{id:a}))},setVisibility:function(e,t){var n=e.commit,o=e.dispatch,a=e.state,i=t.node,r=t.visible;if(i.isContainer){if(0!==i.childrenCount&&null===i.viewerIdx){var c=a.observations.find(function(e){return e.parentArtifactId===i.id||e.parentId===i.id});if("undefined"!==typeof c){var s=c.viewerIdx,l=c.viewerType,u=c.zIndexOffset;i.viewerIdx=s,i.viewerType=l,i.zIndexOffset=u}else i.zIndexOffset=null}null!==i.viewerIdx&&o("view/setMainDataViewer",{viewerIdx:i.viewerIdx,visible:r},{root:!0}),n("SET_FOLDER_VISIBLE",{nodeId:i.id,visible:r,zIndexOffset:i.zIndexOffset})}else o("view/setMainDataViewer",{viewerIdx:i.viewerIdx,visible:r},{root:!0}),n("SET_VISIBLE",{id:i.id,visible:r})},putObservationOnTop:function(e,t){var n=e.commit;n("SET_VISIBLE",{id:t,visible:!0})},setContextMenuObservationId:function(e,t){var n=e.commit;n("SET_CONTEXTMENU_OBSERVATIONID",t)},selectNode:function(e,t){var n=e.dispatch,o=e.state;if(null===t)n("view/setObservationInfo",null,{root:!0});else{var a=o.observations.find(function(e){return e.id===t});a&&(a.visible&&!a.top&&n("setVisibility",{node:a,visible:!0}),n("view/setObservationInfo",a,{root:!0}))}},setLoadingLayers:function(e,t){var n=e.commit,o=t.loading,a=t.observation;a&&n("SET_LOADING_LAYERS",{loading:o,observation:a})},loadFlowchart:function(e){var t=e.commit,n=e.getters,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r["g"].GRAPH_DATAFLOW;return new Promise(function(e,a){console.info("Ask for flowchart ".concat(o)),W["a"].get("".concat("").concat(c["c"].REST_API_EXPORT,"/").concat(o,"/").concat(n.contextId),{headers:{Accept:"application/json"}}).then(function(i){var r=i.data;if("undefined"!==typeof r&&null!==r)try{r.restored=n.context.restored,t("ADD_FLOWCHART",{flowchart:r,target:o}),e()}catch(e){a(new Error("Error in dataflow layout for the context ".concat(H.contextId,": ").concat(e)))}else a(new Error("Dataflow in context ".concat(H.contextId," has no layout")))}).catch(function(e){a(e)})})},setReloadFlowchart:function(e,t){var n=e.commit,o=t.target;n("SET_RELOAD_FLOWCHART",o)},setDataflowStatus:function(e,t){var n=e.commit,o=t.id,a=t.status;n("SET_DATAFLOW_STATUS",{id:o,status:a})},setDataflowInfo:function(e,t){var n=e.commit;if(null===t)n("SET_DATAFLOW_INFO",null);else{var o=t.id,a=t.html,i=t.rateable,r=t.rating,c=t.averageRating;if(null!==o&&""!==o){var s=o.split("."),l=s[s.length-1],u=s.slice(0,s.length-1);n("SET_DATAFLOW_INFO",{elementId:l,elementTypes:u,html:a,rateable:i,rating:r,averageRating:c})}}},storeSearchResult:function(e,t){var n=e.commit;n("STORE_RAW_SEARCH_RESULT",t)},setScaleReference:function(e,t){var n=e.commit;n("SET_SCALE_REFERENCE",t)},updateScaleReference:function(e,t){var n=e.commit;n("UPDATE_SCALE_REFERENCE",t)},setScaleLocked:function(e,t){var n=e.commit,o=t.scaleType,a=t.scaleLocked;n("SET_SCALE_LOCKED",{scaleType:o,scaleLocked:a})},setInteractiveMode:function(e,t){var n=e.commit;n("SET_INTERACTIVE_MODE",t)},setCrossingIDL:function(e,t){var n=e.commit;n("SET_CROSSING_IDL",t)},addTerminal:function(e,t){var n=e.state,o=e.commit,a=t.id,i=t.active,c=t.type;if(a){var s=n.terminals.findIndex(function(e){return e.id===a});-1!==s?console.warn("Terminal already exists"):n.terminals[s].active=!0}else a="".concat(n.session,"-").concat(++n.terminalsCounter),o("ADD_TERMINAL",{id:a,active:"undefined"===typeof i||i,type:c||r["L"].CONSOLE})},removeTerminal:function(e,t){var n=e.commit;n("REMOVE_TERMINAL",t)},addTerminalCommand:function(e,t){var n=e.commit;n("ADD_TERMINAL_COMMAND",t)},clearTerminalCommands:function(e){var t=e.commit;t("CLEAR_TERMINAL_COMMANDS")},loadDocumentation:function(e){var t=e.dispatch,n=e.getters,o=e.rootGetters,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new Promise(function(e,i){if(null===n.contextId)return console.warn("Ask documentation without context"),void i(new Error("Ask documentation without context"));null===a&&(a=o["view/documentationView"],null===a&&console.warn("No view selected")),W["a"].get("".concat("").concat(c["c"].REST_SESSION_OBSERVATION,"documentation/").concat(a,"/").concat(n.contextId),{}).then(function(n){var o=n.data;""===o?(console.warn("Empty report"),e(!1)):t("refreshDocumentation",{view:a,documentation:o}).then(function(){t("view/removeReloadView",a,{root:!0}).then(function(){e(!0)})})}).catch(function(e){i(e)})})},refreshDocumentation:function(e,t){var n=e.commit,o=t.view,a=t.documentation,i=[],c=[],s=new Map,l=function e(t,n,o,a){var i,l;switch(n.type===r["l"].SECTION?l=null===o?"".concat(a,"."):"".concat(o).concat(a,"."):(l=s.has(n.type)?s.get(n.type)+1:1,s.set(n.type,l)),n.type){case r["l"].SECTION:i="".concat(l," ").concat(n.title);break;case r["l"].TABLE:i="".concat(Object(j["b"])().tc("label.reportTable")," ").concat(l,". ").concat(n.bodyText);break;case r["l"].RESOURCE:i=n.title;break;case r["l"].MODEL:i=n.id;break;case r["l"].REFERENCE:i=n.id;break;case r["l"].FIGURE:i="".concat(Object(j["b"])().tc("label.reportFigure")," ").concat(l,". ").concat(n.figure.label);break;default:i=n.type}var u={type:n.type,id:n.id,idx:l,parentId:n.parentId,previousId:n.previousId,nextId:n.nextId,label:i,children:[]},d=0;n.children.forEach(function(t){var n=-1;t.type===r["l"].SECTION&&(n=++d),e(u.children,t,l,n)}),t.push(u),c.push({id:n.id,idx:l,label:i,type:n.type,title:n.title,subtitle:n.subtitle,bodyText:n.bodyText,model:n.model,section:n.section,resource:n.resource,table:n.table,figure:n.figure,reference:n.reference})},u=0;a.forEach(function(e,t){l(i,e,null,e.type===r["l"].SECTION?++u:t)}),n("SET_DOCUMENTATION",{view:o,tree:i}),n("ADD_DOCUMENTATION",c)}},B={namespaced:!0,state:y,getters:x,mutations:V,actions:z},K={stompClient:null,connectionState:r["f"].CONNECTION_UNKNOWN,reconnectionsAttempt:0,subscriber:null,sentMessages:[],receivedMessages:[],queuedMessage:null,tasks:[],subscriptions:[]},Q={connectionDown:function(e){return e.connectionState!==r["f"].CONNECTION_UP},lastError:function(e){var t=e.receivedMessages.filter(function(e){return e.type===r["x"].TYPE_ERROR}).slice(-1);return 1===t.length?t[0]:null},lastMessage:function(e){var t=e.receivedMessages.filter(function(e){return e.type===r["x"].TYPE_MESSAGE}).slice(-1);return 1===t.length?t[0]:null},lastReceivedMessage:function(e){return e.receivedMessages.length>0?e.receivedMessages.slice(-1)[0]:null},lastSendedMessage:function(e){return e.sentMessages.length>0?e.sentMessages.slice(-1)[0]:null},subscriberId:function(e){return null!==e.subscriber?e.subscriber.id:null},queuedMessage:function(e){return e.queuedMessage},connectionState:function(e){return e.connectionState},connectionUp:function(e){return e.connectionState===r["f"].CONNECTION_UP},tasks:function(e){return e.tasks},taskIsAlive:function(e){return function(t){return"undefined"!==typeof e.tasks.find(function(e){return e.id===t&&e.alive})}},taskOfContextIsAlive:function(e,t,n,o){return"undefined"!==typeof e.tasks.find(function(e){return e.contextId===o["data/contextId"]&&e.alive})},contextTaskIsAlive:function(e){return function(t){return"undefined"!==typeof e.tasks.find(function(e){return e.contextId===t&&e.alive})}},hasTasks:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return-1!==e.tasks.findIndex(function(e){return e.alive&&(null===t||e.contextId===t)})}},lastActiveTask:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=e.tasks.filter(function(e){return e.alive&&(null===t||e.contextId===t)});return n.length>0?n.pop():null}}},X={STOMP_CONNECTION_STATE:function(e,t){e.connectionState=t},STOMP_ERROR:function(e,t){Object(d["p"])(e.receivedMessages,{date:I()().format("HH:mm:ss"),type:r["x"].TYPE_ERROR,message:t})},STOMP_MESSAGE:function(e,t){Object(d["p"])(e.receivedMessages,{date:I()().format("HH:mm:ss"),type:r["x"].TYPE_MESSAGE,message:t})},STOMP_SEND_MESSAGE:function(e,t){Object(d["p"])(e.sentMessages,p()({date:I()().format("HH:mm:ss")},t))},STOMP_SUBSCRIBED:function(e,t){e.subscriber=t},STOMP_RECONNECTIONS_ATTEMPT:function(e,t){e.reconnectionsAttempt=t},STOMP_RECONNECTIONS_ATTEMPT_RESET:function(e){e.reconnectionsAttempt=0},STOMP_QUEUE_MESSAGE:function(e,t){e.queuedMessage=t},STOMP_CLEAN_QUEUE:function(e){e.queuedMessage=null},TASK_START:function(e,t){var n=t.id,o=t.contextId,a=t.description;-1!==e.tasks.findIndex(function(e){return e.id===n})?console.debug("Received duplicated start task id: ".concat(n," - ").concat(a)):e.tasks.push({id:n,contextId:o,description:a,alive:!0})},TASK_END:function(e,t){var n=t.id,o=e.tasks.findIndex(function(e){return e.id===n});if(-1!==o){var a=e.tasks[o];a.alive=!1,e.tasks.splice(o,1,a)}else console.debug("Task with id = ".concat(n," not founded or is not alive"))}};function q(e,t,n,o){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];e("view/addToKexplorerLog",{type:t,payload:{message:n,attach:o},important:a},{root:!0})}var J=(o={},k()(o,c["a"].TYPE_TASKSTARTED,function(e,t){var n=e.payload,o=t.dispatch;o("stomp/taskStart",n,{root:!0}),q(o,r["x"].TYPE_DEBUG,"Started task with id ".concat(n.id)),o("view/addToStatusTexts",{id:n.id,text:n.description},{root:!0})}),k()(o,c["a"].TYPE_TASKABORTED,function(e,t){var n=e.payload,o=t.dispatch;o("stomp/taskAbort",n,{root:!0}),q(o,r["x"].TYPE_ERROR,"Aborted task with id ".concat(n.id),n),o("view/removeFromStatusTexts",n.id,{root:!0})}),k()(o,c["a"].TYPE_TASKFINISHED,function(e,t){var n=e.payload,o=t.dispatch;o("stomp/taskEnd",n,{root:!0}),q(o,r["x"].TYPE_DEBUG,"Ended task with id ".concat(n.id)),o("view/removeFromStatusTexts",n.id,{root:!0})}),k()(o,c["a"].TYPE_PROVENANCECHANGED,function(e,t){var n=e.payload,o=t.dispatch,a=t.rootGetters;n.contextId&&null!==a["data/context"]&&a["data/context"].id!==n.contextId?(q(o,r["x"].TYPE_INFO,"Provenance of incorrect context received"),console.warn(a["data/context"].id,n.contextId)):(o("data/setReloadFlowchart",{target:n.target},{root:!0}),q(o,r["x"].TYPE_DEBUG,"Provenance available in context ".concat(n.contextId)))}),k()(o,c["a"].TYPE_DATAFLOWCOMPILED,function(e,t){var n=e.payload,o=t.dispatch,a=t.rootGetters;n.contextId&&null!==a["data/context"]&&a["data/context"].id!==n.contextId?(q(o,r["x"].TYPE_INFO,"Dataflow of incorrect context received"),console.warn(a["data/context"].id,n.contextId)):(o("data/setReloadFlowchart",{target:n.target},{root:!0}),q(o,r["x"].TYPE_DEBUG,"Dataflow compiled in context ".concat(n.contextId)))}),k()(o,c["a"].TYPE_DATAFLOWSTATECHANGED,function(e,t){var n,o=e.payload,a=t.dispatch;n="STARTED"===o.status?r["i"].PROCESSING:"FINISHED"===o.status?r["i"].PROCESSED:"ABORTED"===o.status?r["i"].ABORTED:r["i"].WAITING,a("data/setDataflowStatus",{id:o.nodeId,status:n},{root:!0})}),k()(o,c["a"].TYPE_DATAFLOWDOCUMENTATION,function(e,t){var n=e.payload,o=t.dispatch;n&&n.dataflowId&&n.htmlDescription?(q(o,r["x"].TYPE_DEBUG,"Dataflow element info received",n),o("data/setDataflowInfo",{id:n.dataflowId,html:n.htmlDescription,rateable:n.rateable,rating:n.rating,averageRating:n.averageRating},{root:!0})):q(o,r["x"].TYPE_WARNING,"Strange payload of dataflow element info received",n)}),k()(o,c["a"].TYPE_NEWOBSERVATION,function(e,t){var n=e.payload,o=t.rootState,a=t.rootGetters,i=t.dispatch,c=o.stomp.tasks.find(function(e){return e.id===n.taskId});"undefined"===typeof c&&-1!==o.data.contextsHistory.findIndex(function(e){return e.id===n.contextId})&&(i("stomp/taskStart",{id:n.taskId,description:r["p"].UNKNOWN_SEARCH_OBSERVATION,contextId:n.contextId},{root:!0}),i("view/addToStatusTexts",{id:n.taskId,text:r["p"].UNKNOWN_SEARCH_OBSERVATION},{root:!0}),q(i,r["x"].TYPE_INFO,"Received an observation of previous context with no task associated. Session was been reloaded?",n)),null===n.parentId?null===a["data/context"]?(q(i,r["x"].TYPE_DEBUG,"New context received with id ".concat(n.id),n),i("data/setContext",{context:n},{root:!0}),"undefined"!==typeof n.scaleReference&&null!==n.scaleReference&&i("data/setScaleReference",n.scaleReference,{root:!0})):q(i,r["x"].TYPE_ERROR,"Strange behaviour: observation with no parent in existing context: ".concat(n.id," - ").concat(n.label),n):null!==a["data/context"]&&(a["data/context"].id===n.rootContextId||c&&a["data/context"].id===c.contextId)?(q(i,r["x"].TYPE_INFO,"New observation received with id ".concat(n.id,", rootContextId ").concat(n.rootContextId," and contextId ").concat(n.contextId),n),n.notified=!0,i("data/addObservation",{observation:n},{root:!0})):q(i,r["x"].TYPE_INFO,"Received an observation of different context",n,null,4)}),k()(o,c["a"].TYPE_MODIFIEDOBSERVATION,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["x"].TYPE_DEBUG,"Received a modification event",n),o("data/addModificationEvent",n,{root:!0})}),k()(o,c["a"].TYPE_QUERYRESULT,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["x"].TYPE_INFO,"Received search results",n),o("data/storeSearchResult",n,{root:!0})}),k()(o,c["a"].TYPE_RESETCONTEXT,function(e,t){var n=t.dispatch;q(n,r["x"].TYPE_INFO,"Received context reset"),N["b"].$emit(r["h"].RESET_CONTEXT),n("data/resetContext",null,{root:!0})}),k()(o,c["a"].TYPE_SCALEDEFINED,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["x"].TYPE_INFO,"Received scale reference",n),o("data/setScaleReference",n,{root:!0})}),k()(o,c["a"].TYPE_USERINPUTREQUESTED,function(e,t){var n=t.dispatch;q(n,r["x"].TYPE_INFO,"Received input request",e.payload),n("view/inputRequest",e,{root:!0})}),k()(o,c["a"].TYPE_SCHEDULEADVANCED,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["x"].TYPE_INFO,"Received schedule advanced",n),o("data/setScheduling",n,{root:!0})}),k()(o,c["a"].TYPE_SCHEDULINGSTARTED,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["x"].TYPE_INFO,"Received scheduling started",n),o("data/setScheduling",n,{root:!0})}),k()(o,c["a"].TYPE_SCHEDULINGFINISHED,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["x"].TYPE_INFO,"Received scheduling finished",n),o("data/setScheduling",n,{root:!0})}),k()(o,c["a"].TYPE_ENGINEEVENT,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["x"].TYPE_INFO,"Engine event received",n),o("view/setEngineEvent",n,{root:!0})}),k()(o,c["a"].TYPE_DEBUG,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["x"].TYPE_DEBUG,n)}),k()(o,c["a"].TYPE_INFO,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["x"].TYPE_INFO,n)}),k()(o,c["a"].TYPE_WARNING,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["x"].TYPE_WARNING,n)}),k()(o,c["a"].TYPE_ERROR,function(e,t){var n=e.payload,o=t.dispatch;n===r["f"].UNKNOWN_IDENTITY?N["b"].$emit(r["h"].SESSION_CUT):q(o,r["x"].TYPE_ERROR,n)}),k()(o,c["a"].TYPE_USERPROJECTOPENED,function(e,t){var n=t.dispatch;q(n,r["x"].TYPE_INFO,"Project opened in k.Modeler")}),k()(o,c["a"].TYPE_PROJECTFILEMODIFIED,function(e,t){var n=t.dispatch;q(n,r["x"].TYPE_INFO,"Project modified in k.Modeler")}),k()(o,c["a"].TYPE_NETWORKSTATUS,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["x"].TYPE_INFO,"Network status received",n)}),k()(o,c["a"].TYPE_AUTHORITYDOCUMENTATION,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["x"].TYPE_INFO,"Authority documentation message received",n)}),k()(o,c["a"].TYPE_SETUPINTERFACE,function(e,t){var n=e.payload,o=t.dispatch;o("view/setLayout",n,{root:!0}),q(o,r["x"].TYPE_INFO,"App ".concat(n.name," loaded"),n,!0)}),k()(o,c["a"].TYPE_CREATEMODALWINDOW,function(e,t){var n=e.payload,o=t.dispatch;o("view/setModalWindow",n,{root:!0}),q(o,r["x"].TYPE_INFO,"Modal ".concat(n.name," loaded"),n)}),k()(o,c["a"].TYPE_CREATEVIEWCOMPONENT,function(e,t){var n=e.payload,o=t.dispatch;o("view/createViewComponent",n,{root:!0}),q(o,r["x"].TYPE_INFO,"New create view component received",n)}),k()(o,c["a"].TYPE_VIEWACTION,function(e,t){var n=e.payload,o=t.dispatch;o("view/viewAction",n,{root:!0}),N["b"].$emit(r["h"].VIEW_ACTION),q(o,r["x"].TYPE_INFO,"New view action received",n)}),k()(o,c["a"].TYPE_VIEWSETTING,function(e,t){var n=e.payload,o=t.dispatch;o("view/viewSetting",n,{root:!0}),q(o,r["x"].TYPE_INFO,"New view setting received",n)}),k()(o,c["a"].TYPE_VIEWAVAILABLE,function(e,t){var n=e.payload,o=t.dispatch;o("view/setDocumentation",{id:n.viewId,view:n.viewClass},{root:!0}),q(o,r["x"].TYPE_INFO,"New documentation available",n)}),k()(o,c["a"].TYPE_DOCUMENTATIONCHANGED,function(e,t){var n=e.payload,o=t.dispatch;o("view/changeInDocumentation",n,{root:!0}),q(o,r["x"].TYPE_INFO,"New change in documentation",n)}),k()(o,c["a"].TYPE_COMMANDRESPONSE,function(e,t){var n=e.payload,o=t.dispatch;N["b"].$emit(r["h"].COMMAND_RESPONSE,n),q(o,r["x"].TYPE_INFO,"Command response received",n)}),o),$=function(e){var t=e.body,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=JSON.parse(t),a=n.dispatch;return o.messageClass===c["a"].CLASS_NOTIFICATION&&a("view/addToKlabLog",o,{root:!0}),Object.prototype.hasOwnProperty.call(J,o.type)?J[o.type](o,n):(console.warn("Unknown parser ".concat(o.type)),!1)},Z={stomp_onconnect:function(e,t){var n=e.commit;n("STOMP_CONNECTION_STATE",r["f"].CONNECTION_UP),n("STOMP_RECONNECTIONS_ATTEMPT_RESET"),n("STOMP_MESSAGE",t)},stomp_onclose:function(e){var t=e.commit;t("STOMP_CONNECTION_STATE",r["f"].CONNECTION_DOWN)},stomp_onerror:function(e,t){var n=e.dispatch;n("setConnectionState",{state:r["f"].CONNECTION_ERROR,message:t})},setConnectionState:function(e,t){var n=e.commit,o=t.state,a=t.message;n("STOMP_CONNECTION_STATE",o),n("STOMP_ERROR",a)},stomp_onmessage:function(e,t){var n=e.commit;n("STOMP_MESSAGE",t),$(t,e)},stomp_onsubscribe:function(e,t){var n=e.commit;n("STOMP_SUBSCRIBED",t)},stomp_reconnect:function(e,t){var n=e.commit;n("STOMP_RECONNECTIONS_ATTEMPT",t),n("STOMP_CONNECTION_STATE",r["f"].CONNECTION_WORKING)},stomp_onsend:function(e,t){var n=e.commit,o=t.message;n("STOMP_SEND_MESSAGE",o)},stomp_onerrorsend:function(e,t){var n=e.commit;n("STOMP_QUEUE_MESSAGE",t)},stomp_cleanqueue:function(e){var t=e.commit;t("STOMP_CLEAN_QUEUE")},taskStart:function(e,t){var n=e.commit,o=e.dispatch;o("view/setSpinner",p()({},r["I"].SPINNER_LOADING,{owner:t.id}),{root:!0}),n("TASK_START",t)},taskAbort:function(e,t){var n=e.commit,o=e.dispatch;n("TASK_END",t),o("view/setSpinner",p()({},r["I"].SPINNER_STOPPED,{owner:t.id}),{root:!0})},taskEnd:function(e,t){var n=e.commit,o=e.dispatch;n("TASK_END",t),o("view/setSpinner",p()({},r["I"].SPINNER_STOPPED,{owner:t.id}),{root:!0})}},ee={namespaced:!0,state:K,getters:Q,mutations:X,actions:Z};a["a"].use(i["a"]);var te=new i["a"].Store({modules:{view:C,data:B,stomp:ee}});t["a"]=te},4678:function(e,t,n){var o={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-ps":"4c98","./ar-ps.js":"4c98","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d833","./ar-tn.js":"6d833","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn-bd":"9686","./bn-bd.js":"9686","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-mx":"b5b7","./es-mx.js":"b5b7","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku-kmr":"7558","./ku-kmr.js":"7558","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function a(e){var t=i(e);return n(t)}function i(e){var t=o[e];if(!(t+1)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t}a.keys=function(){return Object.keys(o)},a.resolve=i,e.exports=a,a.id="4678"},"7cca":function(e,t,n){"use strict";n.d(t,"g",function(){return l}),n.d(t,"s",function(){return u}),n.d(t,"v",function(){return d}),n.d(t,"N",function(){return E}),n.d(t,"O",function(){return f}),n.d(t,"w",function(){return T}),n.d(t,"G",function(){return p}),n.d(t,"R",function(){return S}),n.d(t,"f",function(){return m}),n.d(t,"x",function(){return O}),n.d(t,"z",function(){return b}),n.d(t,"B",function(){return _}),n.d(t,"q",function(){return I}),n.d(t,"Q",function(){return A}),n.d(t,"d",function(){return v}),n.d(t,"e",function(){return N}),n.d(t,"I",function(){return R}),n.d(t,"p",function(){return C}),n.d(t,"i",function(){return g}),n.d(t,"h",function(){return L}),n.d(t,"C",function(){return w}),n.d(t,"E",function(){return P}),n.d(t,"D",function(){return D}),n.d(t,"y",function(){return y}),n.d(t,"M",function(){return x}),n.d(t,"F",function(){return M}),n.d(t,"H",function(){return k}),n.d(t,"r",function(){return U}),n.d(t,"A",function(){return F}),n.d(t,"u",function(){return Y}),n.d(t,"P",function(){return W}),n.d(t,"o",function(){return G}),n.d(t,"a",function(){return j}),n.d(t,"c",function(){return H}),n.d(t,"b",function(){return z}),n.d(t,"k",function(){return K}),n.d(t,"j",function(){return Q}),n.d(t,"L",function(){return X}),n.d(t,"K",function(){return q}),n.d(t,"n",function(){return J}),n.d(t,"l",function(){return $}),n.d(t,"m",function(){return Z}),n.d(t,"J",function(){return ee}),n.d(t,"t",function(){return te});var o,a=n("9523"),i=n.n(a),r=(n("f559"),n("cadf"),n("456d"),n("ac6a"),n("3156")),c=n.n(r),s=n("e7d8"),l={EMPTY_MAP_SELECTION:{pixelSelected:null,layerSelected:null,value:null,locked:!1},HIST_MAX_LENGTH:50,CHILDREN_TO_ASK_FOR:25,SEARCHBAR_SIZE:512,SEARCHBAR_INCREMENT:128,MAX_SEARCHBAR_INCREMENTS:6,TARGET_DATAFLOW:"DATAFLOW",TARGET_PROVENANCE:"PROVENANCE",GRAPH_DATAFLOW:"dataflow",GRAPH_PROVENANCE_FULL:"provenance_full",GRAPH_PROVENANCE_SIMPLIFIED:"provenance_simplified"},u=[{flowchart:null,graph:null,updatable:!1,visible:!1,target:l.TARGET_DATAFLOW,type:l.GRAPH_DATAFLOW,label:"Dataflow"},{flowchart:null,graph:null,updatable:!1,visible:!1,target:l.TARGET_PROVENANCE,type:l.GRAPH_PROVENANCE_FULL,label:"Provenance full"},{flowchart:null,graph:null,updatable:!1,visible:!1,target:l.TARGET_PROVENANCE,type:l.GRAPH_PROVENANCE_SIMPLIFIED,label:"Provenance simplified"}],d={LEFTMENU_MAXSIZE:512,LEFTMENU_MINSIZE:80,LEFTMENU_DOCUMENTATION_SIZE:320,LEFTMENU_MAXIMIZED:"max",LEFTMENU_MINIMIZED:"min",LEFTMENU_HIDDEN:"hidden",DATA_VIEWER_COMPONENT:"klab-main-control",DOCKED_DATA_VIEWER_COMPONENT:"docked-main-control",REPORT_VIEWER_COMPONENT:"reports-details",DOCUMENTATION_VIEWER_COMPONENT:"documentation-tree",DATAFLOW_VIEWER_COMPONENT:"dataflow-details",DATAFLOW_INFO_COMPONENT:"dataflow-info",PROVENANCE_VIEWER_COMPONENT:"provenance-details",LOG_COMPONENT:"klab-log-pane"},E={DATA_VIEWER:{name:"DataViewer",leftMenuState:d.LEFTMENU_HIDDEN,leftMenuContent:d.DATA_VIEWER_COMPONENT,mainControl:!0,hasSearch:!0},DOCKED_DATA_VIEWER:{name:"DataViewer",leftMenuState:d.LEFTMENU_MAXIMIZED,leftMenuContent:d.DOCKED_DATA_VIEWER_COMPONENT,mainControl:!1,hasSearch:!0},DOCUMENTATION_VIEWER:{name:"KlabDocumentation",leftMenuState:d.LEFTMENU_MINIMIZED,leftMenuContent:d.DOCUMENTATION_VIEWER_COMPONENT,mainControl:!1,hasSearch:!1},REPORT_VIEWER:{name:"ReportViewer",leftMenuState:d.LEFTMENU_MINIMIZED,leftMenuContent:d.REPORT_VIEWER_COMPONENT,mainControl:!1,hasSearch:!1},DATAFLOW_VIEWER:{name:"DataflowViewer",leftMenuState:d.LEFTMENU_MINIMIZED,leftMenuContent:d.DATAFLOW_VIEWER_COMPONENT,mainControl:!1,hasSearch:!1},PROVENANCE_VIEWER:{name:"ProvenanceViewer",leftMenuState:d.LEFTMENU_MINIMIZED,leftMenuContent:d.PROVENANCE_VIEWER_COMPONENT,mainControl:!1,hasSearch:!1}},f={VIEW_MAP:{component:"MapViewer",label:"Maps",hideable:!1,forceNew:!1},VIEW_CHART:{component:"ChartViewer",label:"Chart",hideable:!0,forceNew:!0},VIEW_GRAPH:{component:"GraphViewer",label:"Graph",hideable:!0,forceNew:!0},VIEW_BLOB:{component:"BlobViewer",label:"Blob",hideable:!1,forceNew:!1},VIEW_UNKNOWN:{component:"UnknownViewer",label:"Under construction",hideable:!1,forceNew:!1}},T={CONCEPT:{label:"Concept",symbol:"C",color:"sem-types",rgb:"rgb(38, 50, 56)"},PREFIX_OPERATOR:{label:"Prefix operator",symbol:"O",color:"sem-types",rgb:"rgb(38, 50, 56)"},INFIX_OPERATOR:{label:"Infix operator",symbol:"O",color:"sem-types",rgb:"rgb(38, 50, 56)"},OBSERVATION:{label:"Observation",symbol:"O",color:"sem-types",rgb:"rgb(38, 50, 56)"},MODEL:{label:"Model",symbol:"M",color:"sem-types",rgb:"rgb(38, 50, 56)"},MODIFIER:{label:"Modifier",symbol:"O",color:"sem-types",rgb:"rgb(38, 50, 56)"},PRESET_OBSERVABLE:{label:"Preset observable",symbol:"O",color:"sem-preset-observable",rgb:"rgb(240, 240, 240)"},SEPARATOR:{label:"Separator",symbol:"S",color:"sem-separator",rgb:"rgb(10, 10, 10)"},NEXT_TOKENS:{TOKEN:"TOKEN",TEXT:"TEXT",INTEGER:"INTEGER",DOUBLE:"DOUBLE",BOOLEAN:"BOOLEAN",UNIT:"UNIT",CURRENCY:"CURRENCY"}},p={QUALITY:{label:"Quality",symbol:"Q",color:"sem-quality",rgb:"rgb(0, 153, 0)"},SUBJECT:{label:"Subject",symbol:"S",color:"sem-subject",rgb:"rgb(153, 76, 0)"},IDENTITY:{label:"identity",symbol:"Id",color:"sem-identity",rgb:"rgb(0, 102, 204)"},ATTRIBUTE:{label:"Attribute",symbol:"A",color:"sem-attribute",rgb:"rgb(0, 102, 204)"},REALM:{label:"Realm",symbol:"R",color:"sem-realm",rgb:"rgb(0, 102, 204)"},TRAIT:{label:"Trait",symbol:"T",color:"sem-trait",rgb:"rgb(0, 102, 204)"},EVENT:{label:"Event",symbol:"E",color:"sem-event",rgb:"rgb(53, 153, 0)"},RELATIONSHIP:{label:"Relationship",symbol:"R",color:"sem-relationship",rgb:"rgb(210, 170, 0)"},PROCESS:{label:"Process",symbol:"P",color:"sem-process",rgb:"rgb(204, 0, 0)"},ROLE:{label:"Role",symbol:"R",color:"sem-role",rgb:"rgb(0, 86, 163)"},CONFIGURATION:{label:"Configuration",symbol:"C",color:"sem-configuration",rgb:"rgb(98, 98, 98)"},DOMAIN:{label:"Domain",symbol:"D",color:"sem-domain",rgb:"rgb(240, 240, 240)"}},S={nodes:[],links:[],showMenu:!1,selected:{},showSelection:!1,linksSelected:{},options:{canvas:!1,size:{w:500,h:500},force:350,offset:{x:0,y:0},nodeSize:20,linkWidth:1,nodeLabels:!0,linkLabels:!1,strLinks:!0}},m={CONNECTION_UNKNOWN:"UNKNOWN",CONNECTION_UP:"UP",CONNECTION_DOWN:"DOWN",CONNECTION_WORKING:"WORKING",CONNECTION_ERROR:"ERROR",UNKNOWN_IDENTITY:"UNKNOWN_IDENTITY"},O={TYPE_DEBUG:"debug",TYPE_WARNING:"warning",TYPE_ERROR:"error",TYPE_INFO:"info",TYPE_MESSAGE:"MSG",TYPE_ALL:"ALL"},b={TYPE_PROCESS:"PROCESS",TYPE_STATE:"STATE",TYPE_SUBJECT:"SUBJECT",TYPE_CONFIGURATION:"CONFIGURATION",TYPE_EVENT:"EVENT",TYPE_RELATIONSHIP:"RELATIONSHIP",TYPE_GROUP:"GROUP",TYPE_VIEW:"VIEW",TYPE_INITIAL:"INITIAL"},_={shapeType:"POINT",encodedShape:"POINT (40.299841 9.343971)",id:null,label:"DEFAULT",parentId:-1,visible:!0,spatialProjection:"EPSG:4326",observationType:b.TYPE_INITIAL},I={TYPE_RASTER:"RASTER",TYPE_SHAPE:"SHAPE",TYPE_SCALAR:"SCALAR",TYPE_TIMESERIES:"TIMESERIES",TYPE_NETWORK:"NETWORK",TYPE_PROPORTIONS:"PROPORTIONS",TYPE_COLORMAP:"COLORMAP",SHAPE_POLYGON:"POLYGON",SHAPE_POINT:"POINT",PARAM_VIEWPORT_SIZE:800,PARAM_VIEWPORT_MAX_SIZE:7680,PARAM_VIEWPORT_MULTIPLIER:1},A={PARAMS_MODE:"mode",PARAMS_MODE_IDE:"ide",PARAMS_MODE_STANDALONE:"standalone",PARAMS_SESSION:"session",PARAMS_LOG:"log",PARAMS_LOG_HIDDEN:"hidden",PARAMS_LOG_VISIBLE:"visible",PARAMS_LOCAL_HELP:"localhelp",PARAMS_APP:"app",PARAMS_DEBUG_REMOTE:"remote-debug",PARAMS_STOMP_DEBUG:"stomp-debug",PARAMS_TOKEN:"token",COOKIE_LANG:"klab_exp_lang",COOKIE_SESSION:"klab_session",COOKIE_MODE:"klab_mode",COOKIE_LOG:"klab_log",COOKIE_BASELAYER:"klab_baselayer",COOKIE_MAPDEFAULT:"klab_mapdefault",COOKIE_SAVELOCATION:"klab_saveLocation",COOKIE_HELP_ON_START:"klab_helponstart",COOKIE_DOCKED_STATUS:"klab_dockedstatus",COOKIE_NOTIFICATIONS:"klab_notifications",COOKIE_TERMINAL_SIZE:"klab_terminalsize",COOKIE_VIEW_COORDINATES:"klab_coordinates",LOCAL_STORAGE_APP_ID:"klab:appId",LOCAL_STORAGE_TERMINAL_COMMANDS:"klab:terminalCommands"},v={NOTIFICATIONS_URL:"".concat("https://integratedmodelling.org","/statics/notifications/index.php")},N={MAIN_COLOR:"rgb(17, 170, 187)",MAIN_GREEN:"rgb(231,255,219)",MAIN_CYAN:"rgb(228,253,255)",MAIN_YELLOW:"rgb(255, 195, 0)",MAIN_RED_HEX:"#ff6464",MAIN_COLOR_HEX:"#11aabb",MAIN_GREEN_HEX:"#e7ffdb",MAIN_CYAN_HEX:"#e4fdff",MAIN_YELLOW_HEX:"#ffc300",MAIN_RED:"rgb(255, 100, 100)",PRIMARY:"#DA1F26",SECONDARY:"#26A69A",TERTIARY:"#555",NEUTRAL:"#E0E1E2",POSITIVE:"#19A019",NEGATIVE:"#DB2828",INFO:"#1E88CE",WARNING:"#F2C037",PRIMARY_NAME:"primary",SECONDARY_NAME:"secondary",TERTIARY_NAME:"tertiary",POSITIVE_NAME:"positive",NEGATIVE_NAME:"negative",INFO_NAME:"info",WARNING_NAME:"warning"},h={SPINNER_STOPPED_COLOR:N.MAIN_COLOR,SPINNER_LOADING_COLOR:N.MAIN_YELLOW,SPINNER_MC_RED:N.MAIN_RED,SPINNER_ERROR_COLOR:N.NEGATIVE_NAME},R={SPINNER_LOADING:{color:h.SPINNER_LOADING_COLOR,animated:!0},SPINNER_STOPPED:{color:h.SPINNER_STOPPED_COLOR,animated:!1},SPINNER_ERROR:{color:h.SPINNER_ERROR_COLOR,animated:!1,time:2,then:{color:h.SPINNER_STOPPED_COLOR,animated:!1}}},C={UNKNOWN_SEARCH_OBSERVATION:"$$UNKNOWN_SEARCH_OBSERVATION$$"},g={WAITING:"waiting",PROCESSING:"processing",PROCESSED:"processed",ABORTED:"aborted"},L={MAP_SIZE_CHANGED:"mapsizechanged",UPDATE_FOLDER:"updatefolder",GRAPH_NODE_SELECTED:"graphnodeselected",SPINNER_DOUBLE_CLICK:"spinnerdoubleclick",SHOW_NODE:"shownode",ASK_FOR_UNDOCK:"askforundock",ASK_FOR_SUGGESTIONS:"askforsuggestions",NEED_FIT_MAP:"needfitmap",TREE_VISIBLE:"treevisible",VIEWER_CLICK:"viewerclick",VIEWER_SELECTED:"viewerselected",VIEWER_CLOSED:"viewerclosed",OBSERVATION_INFO_CLOSED:"observationinfoclosed",SEND_REGION_OF_INTEREST:"sendregionofinterest",NEED_HELP:"needhelp",OBSERVATION_BY_TIME:"observationbytime",NEED_LAYER_BUFFER:"needlayerbuffer",COMPONENT_ACTION:"componentaction",LAYOUT_CHANGED:"layoutchanged",SELECT_ELEMENT:"selectelement",PROPOSED_CONTEXT_CHANGE:"proposedcontextchange",NEW_SCHEDULING:"newscheduling",SHOW_NOTIFICATIONS:"shownotifications",TERMINAL_FOCUSED:"terminalfocused",COMMAND_RESPONSE:"commandresponse",REFRESH_DOCUMENTATION:"refreshdocumentation",PRINT_DOCUMENTATION:"printdocumentation",SHOW_DOCUMENTATION:"showdowcumentation",FONT_SIZE_CHANGE:"fontsizechange",DOWNLOAD_URL:"downloadurl",RESET_CONTEXT:"resetcontext",VIEW_ACTION:"viewaction",SESSION_CUT:"sessioncut",SHOW_DATA_INFO:"showdatainfo"},w={ST_SPACE:"space",ST_TIME:"time"},P={CENTIMETERS:"cm",METERS:"m",KILOMETERS:"km",MILLENNIUM:"MILLENNIUM",CENTURY:"CENTURY",DECADE:"DECADE",YEAR:"YEAR",MONTH:"MONTH",WEEK:"WEEK",DAY:"DAY",HOUR:"HOUR",MINUTE:"MINUTE",SECOND:"SECOND",MILLISECOND:"MILLISECOND"},D=[{i18nlabel:"unitCentimeter",type:w.ST_SPACE,value:P.CENTIMETERS,selectable:!0},{i18nlabel:"unitMeter",type:w.ST_SPACE,value:P.METERS,selectable:!0},{i18nlabel:"unitKilometer",type:w.ST_SPACE,value:P.KILOMETERS,selectable:!0},{i18nlabel:"unitMillennium",type:w.ST_TIME,value:P.MILLENNIUM,selectable:!1,momentShorthand:"y",momentMultiplier:1e3,index:0},{i18nlabel:"unitCentury",type:w.ST_TIME,value:P.CENTURY,selectable:!0,momentShorthand:"y",momentMultiplier:100,index:1},{i18nlabel:"unitDecade",type:w.ST_TIME,value:P.DECADE,selectable:!0,momentShorthand:"y",momentMultiplier:10,index:2},{i18nlabel:"unitYear",type:w.ST_TIME,value:P.YEAR,selectable:!0,momentShorthand:"y",momentMultiplier:1,index:3},{i18nlabel:"unitMonth",type:w.ST_TIME,value:P.MONTH,selectable:!0,momentShorthand:"M",momentMultiplier:1,index:4},{i18nlabel:"unitWeek",type:w.ST_TIME,value:P.WEEK,selectable:!0,momentShorthand:"W",momentMultiplier:1,index:5},{i18nlabel:"unitDay",type:w.ST_TIME,value:P.DAY,selectable:!0,momentShorthand:"d",momentMultiplier:1,index:6},{i18nlabel:"unitHour",type:w.ST_TIME,value:P.HOUR,selectable:!0,momentShorthand:"h",momentMultiplier:1,index:7},{i18nlabel:"unitMinute",type:w.ST_TIME,value:P.MINUTE,selectable:!0,momentShorthand:"m",momentMultiplier:1,index:8},{i18nlabel:"unitSecond",type:w.ST_TIME,value:P.SECOND,selectable:!1,momentShorthand:"s",momentMultiplier:1,index:9},{i18nlabel:"unitMillisecond",type:w.ST_TIME,value:P.MILLISECOND,selectable:!1,momentShorthand:"ms",momentMultiplier:1,index:10}],y={SPATIAL_TRANSLATION:"SpatialTranslation",SPATIAL_CHANGE:"SpatialChange",TERMINATION:"Termination",STRUCTURE_CHANGE:"StructureChange",NAME_CHANGE:"NameChange",ATTRIBUTE_CHANGE:"AttributeChange",VALUE_CHANGE:"ValueChange",BRING_FORWARD:"BringForward",CONTEXTUALIZATION_COMPLETED:"ContextualizationCompleted"},x={DEFAULT_STEP:864e5,DEFAULT_INTERVAL:100,PIXEL_TIME_MULTIPLIER:1,MIN_PLAY_TIME:6e4,MAX_PLAY_TIME:6e4},M={SEMANTIC:"SEMANTIC",FREETEXT:"FREETEXT"},k={INTERACTIVE_MODE:"InteractiveMode",LOCK_SPACE:"LockSpace",LOCK_TIME:"LockTime"},U={DEFAULT_MODAL_SIZE:{width:1024,height:768},DEFAULT_PROPORTIONS:{width:4,height:3},DEFAULT_WIDTH_PERCENTAGE:90,DEFAULT_HEIGHT_PERCENTAGE:90,DEFAULT_HELP_BASE_URL:"https://integratedmodelling.org/statics/help"},V={actionLabel:null,actionId:null,downloadUrl:null,downloadFileExtension:null,enabled:!1,separator:!1,submenu:[]},F={SEPARATOR_ITEM:c()({},V,{enabled:!0,separator:!0}),RECONTEXTUALIZATION_ITEM:c()({},V,{actionId:"Recontextualization",actionLabel:Object(s["b"])().tc("label.recontextualization"),enabled:!0})},Y=[{viewClass:"table",label:Object(s["b"])().tc("label.kwTable"),icon:"mdi-table",exportIcons:[{type:"xlsx",icon:"mdi-file-excel"}]},{viewClass:"chart",label:Object(s["b"])().tc("label.kwChart"),icon:"mdi-chart-bar",exportIcons:[]}],W={OBSERVATION:"Observation",VIEW:"View",TREE:"Tree",REPORT:"Report",DATAFLOW:"Dataflow",SHOW:"Show",HIDE:"Hide",URL:"Url",DOWNLOAD:"Download"},G={RESOURCE_VALIDATION:"ResourceValidation"},j={PANEL:"Panel",ALERT:"Alert",PUSH_BUTTON:"PushButton",CHECK_BUTTON:"CheckButton",RADIO_BUTTON:"RadioButton",TEXT_INPUT:"TextInput",COMBO:"Combo",GROUP:"Group",MAP:"Map",TREE:"Tree",TREE_ITEM:"TreeItem",CONFIRM:"Confirm",VIEW:"View",CONTAINER:"Container",MULTICONTAINER:"MultiContainer",LABEL:"Label",TEXT:"Text",TABLE:"Table",NOTIFICATION:"Notification",INPUT_GROUP:"InputGroup",SEPARATOR:"Separator",MODAL_WINDOW:"ModalWindow",WINDOW:"Window",BROWSER:"Browser",IMAGE:"Image"},H={USER_ACTION:"UserAction",ENABLE:"Enable",HIDE:"Hide",UPDATE:"Update",MENU_ACTION:"MenuAction"},z={LABEL_MIN_WIDTH:"150px",DEFAULT_LOGO:"statics/klab-logo.png"},B=/^\d+\D{1,2}/,K=function(e){var t={};return Object.keys(e.attributes).forEach(function(n){var o=e.attributes[n];switch(n){case"hidden":t.display="none";break;case"width":"content"===o?t["flex-basis"]="0":o.startsWith("col")?t["flex-grow"]=o.substring(3):t.width="".concat(o).concat(B.test(o)?"":"px");break;case"height":t.height="".concat(o).concat(B.test(o)?"":"px");break;case"hfill":e.attributes.hbox&&(t["flex-wrap"]="nowrap"),t.width="100%";break;case"vfill":t["flex-grow"]=1;break;case"top":case"bottom":case"middle":e.attributes.parentAttributes&&(e.attributes.parentAttributes.hbox||e.attributes.parentAttributes.vbox)?t["align-self"]="top"===n?"flex-start":"bottom"===n?"flex-end":"center":e.attributes.hbox||e.attributes.vbox?t["justify-content"]=n:t["vertical-align"]=n;break;case"hbox":case"vbox":t["flex-direction"]="hbox"===n?"row":"column",e.attributes.center&&(t["align-items"]="center");break;case"left":case"right":t["text-align"]=n;break;default:break}}),t},Q={dark:{"main-color":"white","positive-color":"rgb(116, 212, 116)","negative-color":"rgb(250, 117, 117)","background-color":"rgb(18, 18, 18)","alt-background":"rgb(99,99,99)","text-color":"white","control-text-color":"black","title-color":"white","alt-color":"rgb(0, 204, 204)","font-family":"'Roboto', '-apple-system', 'Helvetica Neue', Helvetica, Arial, sans-serif","font-size":"1em","title-size":"26px","subtitle-size":"16px","line-height":"1em"},light:{"main-color":"black","background-color":"white","alt-background":"rgb(233,233,233)","text-color":"black","control-text-color":"white","title-color":"black","alt-color":"rgb(0,138,150)","font-family":"'Roboto', '-apple-system', 'Helvetica Neue', Helvetica, Arial, sans-serif","font-size":"1em","title-size":"26px","subtitle-size":"16px","line-height":"1em"},worst:{"main-color":"green","background-color":"yellow","alt-background":"fuchsia","text-color":"red","control-text-color":"yellow","title-color":"indigo","alt-color":"blue","font-family":"comics","font-size":"1.2em","title-size":"32px","subtitle-size":"20px","line-height":"1.2em"},default:{"main-color":"rgb(0, 92, 129)","background-color":"rgb(250, 250, 250)","alt-background":"rgb(222, 222, 222)","text-color":"rgb(0, 92, 129)","control-text-color":"rgb(250, 250, 250)","title-color":"rgb(0, 92, 129)","alt-color":"rgb(0, 138, 150)","font-family":"'Roboto', '-apple-system', 'Helvetica Neue', Helvetica, Arial, sans-serif","font-size":"1em","title-size":"26px","subtitle-size":"16px","line-height":"1em"}},X={DEBUGGER:"Debugger",CONSOLE:"Console"},q=[{value:"80x24",label:"80x24",cols:80,rows:24},{value:"80x43",label:"80x43",cols:80,rows:43},{value:"132x24",label:"132x24",cols:132,rows:24},{value:"132x43",label:"132x43",cols:132,rows:43}],J={REPORT:"REPORT",FIGURES:"FIGURES",TABLES:"TABLES",RESOURCES:"RESOURCES",MODELS:"MODELS",PROVENANCE:"PROVENANCE",REFERENCES:"REFERENCES"},$={REPORT:"Report",SECTION:"Section",PARAGRAPH:"Paragraph",TABLE:"Table",CHART:"Chart",FIGURE:"Figure",RESOURCE:"Resource",MODEL:"Model",REFERENCE:"Reference",CITATION:"Citation",VIEW:"View",LINK:"Link",ANCHOR:"Anchor"},Z=(o={},i()(o,$.REPORT,J.REPORT),i()(o,$.SECTION,J.REPORT),i()(o,$.PARAGRAPH,J.REPORT),i()(o,$.TABLE,J.TABLES),i()(o,$.CHART,J.REPORT),i()(o,$.FIGURE,J.FIGURES),i()(o,$.RESOURCE,J.RESOURCES),i()(o,$.MODEL,J.MODELS),i()(o,$.REFERENCE,J.REPORT),i()(o,$.CITATION,J.REPORT),i()(o,$.VIEW,J.REPORT),i()(o,$.LINK,J.REPORT),i()(o,$.ANCHOR,J.REPORT),o),ee={NUMBER:"NUMBER",BOOLEAN:"BOOLEAN",CONCEPT:"CONCEPT",PROCESS:"PROCESS",EVENT:"EVENT",OBJECT:"OBJECT",TEXT:"TEXT",VALUE:"VALUE",RANGE:"RANGE",ENUM:"ENUM",EXTENT:"EXTENT",TEMPORALEXTENT:"TEMPORALEXTENT",SPATIALEXTENT:"SPATIALEXTENT",ANNOTATION:"ANNOTATION",LIST:"LIST",VOID:"VOID",MAP:"MAP",TABLE:"TABLE"},te={URL:__ENV__.KEYCLOAK_URL,REALM:"im",CLIENT_ID:"k.Explorer",TOKEN:"vue-token",REFRESH_TOKEN:"vue-refresh-token",BEARER:"Bearer "}},"7e6d":function(e,t,n){},8449:function(e,t,n){"use strict";n.d(t,"b",function(){return d});n("ac6a"),n("cadf"),n("456d");var o=n("7037"),a=n.n(o),i=(n("386d"),n("7cca")),r=n("1442"),c=n("8fec"),s=n("be3b"),l=n("741d"),u=n("2b0e"),d=new u["a"];t["a"]=function(e){var t,n=e.store,o=new URLSearchParams(window.location.search),E=o.get(i["Q"].PARAMS_SESSION)||l["a"].get(i["Q"].COOKIE_SESSION),f=o.get(i["Q"].PARAMS_MODE)||l["a"].get(i["Q"].COOKIE_MODE)||i["Q"].PARAMS_MODE_IDE,T=o.get(i["Q"].PARAMS_LOG)||l["a"].get(i["Q"].COOKIE_LOG)||i["Q"].PARAMS_LOG_HIDDEN,p=l["a"].get(i["Q"].COOKIE_BASELAYER)||r["d"].DEFAULT_BASELAYER,S=l["a"].get(i["Q"].COOKIE_MAPDEFAULT)||{center:r["b"].center,zoom:r["b"].zoom},m=!l["a"].has(i["Q"].COOKIE_SAVELOCATION)||l["a"].get(i["Q"].COOKIE_SAVELOCATION),O=l["a"].has(i["Q"].COOKIE_DOCKED_STATUS),b=o.get(i["Q"].PARAMS_DEBUG_REMOTE);if(b)t="true"!==b;else{var _=window.location.hostname.toLowerCase();t=-1===_.indexOf("integratedmodelling.org")&&-1===_.indexOf("klab.officialstatistics.org")}t="engine.remote "===__ENV__.ACTIVE_PROFILE,console.warn(t);var I=o.get(i["Q"].PARAMS_TOKEN);u["a"].mixin({methods:{hexToRgbValues:function(e){if("undefined"!==typeof e){var t=c["b"](e);return"".concat(t.r,", ").concat(t.g,", ").concat(t.b)}return"black"},isAcceptedKey:function(e){var t="abcdefghijklmnopqrstuvwxyz0123456789.<>=!()+-*/^";return e=e.toLowerCase(),-1!==t.indexOf(e)}}}),u["a"].prototype.$eventBus=d,n.state.data.session=E,u["a"].prototype.$mode=f,l["a"].set(i["Q"].COOKIE_MODE,f,{expires:30,path:"/",secure:!0}),u["a"].prototype.$logVisibility=T,l["a"].set(i["Q"].COOKIE_LOG,T,{expires:30,path:"/",secure:!0}),u["a"].prototype.$baseLayer=p,l["a"].set(i["Q"].COOKIE_BASELAYER,p,{expires:30,path:"/",secure:!0}),u["a"].prototype.$mapDefaults=S,n.state.view.saveLocation=m,l["a"].set(i["Q"].COOKIE_SAVELOCATION,m,{expires:30,path:"/",secure:!0}),n.state.view.saveDockedStatus=O,O&&(n.state.view.mainControlDocked=l["a"].get(i["Q"].COOKIE_DOCKED_STATUS)),n.state.view.viewCoordinates=l["a"].has(i["Q"].COOKIE_VIEW_COORDINATES)&&l["a"].get(i["Q"].COOKIE_VIEW_COORDINATES),n.state.data.local=t,n.state.data.token=I,console.info("Session: ".concat(E," / mode: ").concat(f));var A=o.get(i["Q"].PARAMS_LOCAL_HELP);n.state.view.helpBaseUrl=A?"http://".concat(A):i["r"].DEFAULT_HELP_BASE_URL;var v=o.get(i["Q"].PARAMS_APP);v&&(n.state.view.klabApp=v),s["a"].get("".concat("").concat("/modeler","/capabilities"),{}).then(function(e){var t=e.data;if("object"!==a()(t))throw Error("Error asking for capabilities: no data");if(0===Object.keys(t).length)throw Error("Capabilities are empty, check it");n.state.data.capabilities=t}).catch(function(e){console.error("Error trying to retrieve capabilities: ".concat(e))})}},"8fec":function(e,t,n){"use strict";n.d(t,"d",function(){return a}),n.d(t,"b",function(){return i}),n.d(t,"c",function(){return c}),n.d(t,"a",function(){return s});n("c5f6"),n("ee1d"),n("a481"),n("6b54");var o=/^rgb(a)?\((\d{1,3}),(\d{1,3}),(\d{1,3}),?([01]?\.?\d*?)?\)$/;function a(e){var t=e.r,n=e.g,o=e.b,a=e.a,i=void 0!==a;if(t=Math.round(t),n=Math.round(n),o=Math.round(o),t>255||n>255||o>255||i&&a>100)throw new TypeError("Expected 3 numbers below 256 (and optionally one below 100)");return a=i?(256|Math.round(255*a/100)).toString(16).slice(1):"","#".concat((o|n<<8|t<<16|1<<24).toString(16).slice(1)).concat(a)}function i(e){if("string"!==typeof e)throw new TypeError("Expected a string");e=e.replace(/^#/,""),3===e.length?e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]:4===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);var t=parseInt(e,16);return e.length>6?{r:t>>24&255,g:t>>16&255,b:t>>8&255,a:Math.round((255&t)/2.55)}:{r:t>>16,g:t>>8&255,b:255&t}}function r(e){if("string"!==typeof e)throw new TypeError("Expected a string");var t=e.replace(/ /g,""),n=o.exec(t);if(null===n)return i(t);var a={r:Math.min(255,parseInt(n[2],10)),g:Math.min(255,parseInt(n[3],10)),b:Math.min(255,parseInt(n[4],10))};if(n[1]){var r=parseFloat(n[5]);a.a=100*Math.min(1,!0===Number.isNaN(r)?1:r)}return a}function c(e,t){if("string"!==typeof e)throw new TypeError("Expected a string as color");if("number"!==typeof t)throw new TypeError("Expected a numeric percent");var n=r(e),o=t<0?0:255,a=Math.abs(t)/100,i=n.r,c=n.g,s=n.b;return"#".concat((16777216+65536*(Math.round((o-i)*a)+i)+256*(Math.round((o-c)*a)+c)+(Math.round((o-s)*a)+s)).toString(16).slice(1))}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body;if("string"!==typeof e)throw new TypeError("Expected a string as color");if(!(t instanceof Element))throw new TypeError("Expected a DOM element");return getComputedStyle(t).getPropertyValue("--q-color-".concat(e)).trim()||null}},b0b2:function(e,t,n){"use strict";n.d(t,"a",function(){return P}),n.d(t,"h",function(){return y}),n.d(t,"e",function(){return M}),n.d(t,"f",function(){return k}),n.d(t,"g",function(){return U}),n.d(t,"b",function(){return V}),n.d(t,"k",function(){return F}),n.d(t,"j",function(){return Y}),n.d(t,"i",function(){return W}),n.d(t,"l",function(){return G}),n.d(t,"c",function(){return H}),n.d(t,"d",function(){return z});n("4917"),n("28a5"),n("48c0"),n("6c7b"),n("ac6a");var o=n("278c"),a=n.n(o),i=(n("c5f6"),n("ee1d"),n("8fec")),r=n("256f"),c=n("5bc3"),s=n("6c77"),l=n("1442"),u=n("f403"),d=n("7a09"),E=n("9a44"),f=n("47e4"),T=n("88da"),p=n("f822"),S=n("049d"),m=n("c4c8"),O=n("c7e3"),b=n("f384"),_=n("01ae"),I=n("7f68"),A=n("881a"),v=/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/,N=i["b"],h=i["a"],R=i["d"],C={topLeft:Object(r["l"])([-180,90],l["d"].PROJ_EPSG_4326,l["d"].PROJ_EPSG_3857),bottomLeft:Object(r["l"])([-180,-90],l["d"].PROJ_EPSG_4326,l["d"].PROJ_EPSG_3857),topRight:Object(r["l"])([180,90],l["d"].PROJ_EPSG_4326,l["d"].PROJ_EPSG_3857),bottomRight:Object(r["l"])([180,-90],l["d"].PROJ_EPSG_4326,l["d"].PROJ_EPSG_3857)},g=new I["b"],L={left:g.createLineString([new I["a"](C.topLeft[0],C.topLeft[1]),new I["a"](C.bottomLeft[0],C.bottomLeft[1])]),right:g.createLineString([new I["a"](C.topRight[0],C.topRight[1]),new I["a"](C.bottomRight[0],C.bottomRight[1])])},w=g.createPolygon([new I["a"](C.topLeft[0],C.topLeft[1]),new I["a"](C.topRight[0],C.topRight[1]),new I["a"](C.bottomRight[0],C.bottomRight[1]),new I["a"](C.bottomLeft[0],C.bottomLeft[1]),new I["a"](C.topLeft[0],C.topLeft[1])]);function P(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}function D(e){if("string"!==typeof e)throw new TypeError("Expected a string");var t=v.exec(e);if(t){var n={r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10)};return t[4]&&(n.a=parseFloat(t[4])),n}return N(e)}function y(e){return!!Number.isNaN(1*e)&&e===e.toUpperCase()}function x(e){var t={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};return"undefined"!==typeof t[e.toLowerCase()]?t[e.toLowerCase()]:null}function M(e){var t,n;if(0===e.indexOf("#"))n=e,t=N(e);else if(-1!==e.indexOf(","))t=D(e),n=R(t);else{if(n=h(e),null===n&&(n=x(e),null===n))throw new Error("Unknown color: ".concat(e));t=N(n)}return{rgb:t,hex:n,color:e}}function k(e,t,n){(null===e||null===t||n<1)&&console.warn("Bad colors: ".concat(e,", ").concat(t));for(var o,a,i,r=M(e).rgb,c=M(t).rgb,s=1/(n-1),l=[],u=0;u2&&void 0!==arguments[2]?arguments[2]:null,o=function(e,t,n){return e+(t-e)*n},i=[],r=Number((e.length-1)/(t-1)),c=a()(e,1);i[0]=c[0];for(var s=1;s0&&document.getSelection().getRangeAt(0);t.select(),document.execCommand("copy"),document.body.removeChild(t),n&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(n))}var F=new A["a"];F.inject(u["a"],d["a"],S["a"],c["a"],E["a"],f["a"],T["a"]);var Y=function(e){return e instanceof p["a"]&&(e=Object(c["b"])(e)),F.read(e)},W=function(e){return new m["a"](e).isValid()},G=function(e,t){return O["a"].union(e,t)};function j(e){var t=[];return O["a"].intersection(e,L.left)&&t.push(L.left),O["a"].intersection(e,L.right)&&t.push(L.right),t}function H(e){var t=j(e);if(0===t.length)return e;var n=e.getExteriorRing();t.forEach(function(e){n=O["a"].union(n,e)});var o=new _["a"];o.add(n);for(var a=o.getPolygons(),i=null,r=a.iterator();r.hasNext();){var c=r.next();if(!b["a"].contains(w,c)){for(var s=[],l=c.getCoordinates(),u=l.length,d=0;d0&&void 0!==arguments[0]?arguments[0]:null;if(null===e)return!1;var t=e.geometryTypes;return t&&"undefined"!==typeof t.find(function(e){return e===l["q"].TYPE_RASTER})},g=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l["g"].HIST_MAX_LENGTH;e.push(t),e.length>n&&e.shift()},L=function(e,t){if(0===e.length)return null;if(void 0===t)return e[e.length-1];var n=s()(e).reverse().find(function(e){return e.type===t});return"undefined"!==typeof n?n:null},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;if(e&&null!==t&&"function"===typeof n){var o=[].reduce,a=function e(a,i){if(a||!i)return a;if(Array.isArray(i))return o.call(Object(i),e,a);var r=n(i,t);return null===r&&i.children&&i.children.length>0?e(null,i.children):r};return a(null,e)}return null},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(e,t,function(e,t){return e.id===t?e:null})},D=function(e){var t=null!==e.parentArtifactId||null!==e.parentId&&e.rootContextId!==e.parentId,n=null!==e.parentArtifactId?e.parentArtifactId:e.parentId,o=e.main;if(!o&&t){var a=P(d["a"].getters["data/tree"],n);null!==a&&(o=o||a.userNode)}return{node:r()({id:e.id,label:e.literalValue||e.label,observable:e.observable,type:e.shapeType,dynamic:e.dynamic||!1,needUpdate:!e.contextualized,viewerIdx:e.viewerIdx,viewerType:null!==e.viewerIdx?d["a"].getters["view/viewer"](e.viewerIdx).type:null,loading:!1,children:[],childrenCount:e.childrenCount,childrenLoaded:0,siblingsCount:e.siblingsCount,parentArtifactId:e.parentArtifactId,tickable:null!==e.viewerIdx&&!e.empty||e.isContainer||e.childrenCount>0,disabled:e.empty&&(!e.isContainer||0===e.childrenCount)||e.singleValue||e.observationType===l["z"].TYPE_PROCESS,empty:e.empty,actions:e.actions,header:e.isContainer?"folder":"default",main:e.main,userNode:o,isContainer:e.isContainer,exportFormats:e.exportFormats,rootContextId:e.rootContextId,contextId:e.contextId,observationType:e.observationType,noTick:e.singleValue||e.observationType===l["z"].TYPE_PROCESS},e.isContainer&&{childrenLoaded:0},e.siblingsCount&&{siblingsCount:e.siblingsCount},{parentId:n}),parentId:n}},y=function(e){return new Promise(function(t,n){var o=null;if(null!==e)if(o=Object(I["g"])(e),null===o){var a=e.substring(5);fetch("https://epsg.io/?format=json&q=".concat(a)).then(function(a){return a.json().then(function(a){var i=a.results;if(i&&i.length>0)for(var r=0,c=i.length;r0&&u&&u.length>0&&d&&4===d.length){var f="EPSG:".concat(l);v["a"].defs(f,u),Object(A["a"])(v["a"]),o=Object(I["g"])(f);var T=Object(I["i"])(E["d"].PROJ_EPSG_4326,o),p=Object(_["a"])([d[1],d[2],d[3],d[0]],T);o.setExtent(p),console.info("New projection registered: ".concat(f)),t(o)}else n(new Error("Some error in projection search result: ".concat(JSON.stringify(s))))}else n(new Error("Some error in projection search result: no results"))}else n(new Error("Unknown projection: ".concat(e)))})})}else t(o);else t(E["d"].PROJ_EPSG_4326)})};function x(e){return M.apply(this,arguments)}function M(){return M=a()(regeneratorRuntime.mark(function e(t){var n,o,a,i,r;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.spatialProjection,e.next=3,y(n);case 3:if(o=e.sent,a=t.encodedShape,a){e.next=7;break}return e.abrupt("return",null);case 7:return 0===a.indexOf("LINEARRING")&&(a=a.replace("LINEARRING","LINESTRING")),i=null,-1!==a.indexOf("POINT")?(r=R.readFeature(a,{dataProjection:o,featureProjection:E["d"].PROJ_EPSG_3857}),null!==r&&null!==r.getGeometry()&&(i=r.getGeometry().getFirstCoordinate())):i=R.readGeometry(a,{dataProjection:o,featureProjection:E["d"].PROJ_EPSG_3857}),t.id===t.rootContextId&&(t.zIndexOffset=0),e.abrupt("return",i);case 12:case"end":return e.stop()}},e)})),M.apply(this,arguments)}function k(e){return U.apply(this,arguments)}function U(){return U=a()(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.response?{status:t.response.data.status||t.response.status,message:t.response.data.message||t.response.data.error||t.response.data||(""!==t.response.statusText?t.response.statusText:"Unknown"),axiosError:t}:t.request?{status:t.request.status,message:t.message,axiosError:t}:{status:"UNKNOWN",message:t.message,axiosError:t},!(n instanceof Blob)){e.next=5;break}return e.next=4,n.text();case 4:n=e.sent;case 5:return e.abrupt("return",n);case 6:case"end":return e.stop()}},e)})),U.apply(this,arguments)}var V=function(e,t,n,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;d["a"].dispatch("view/setSpinner",r()({},l["I"].SPINNER_LOADING,{owner:e}),{root:!0}),N["a"].get(t,n).then(function(t){t&&o(t,function(){d["a"].dispatch("view/setSpinner",r()({},l["I"].SPINNER_STOPPED,{owner:e}),{root:!0})})}).catch(function(){var t=a()(regeneratorRuntime.mark(function t(n){var o,a;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,k(n);case 2:if(o=t.sent,a=null,null!=o&&(a=o.message),d["a"].dispatch("view/setSpinner",r()({},l["I"].SPINNER_ERROR,{owner:e,errorMessage:a}),{root:!0}),null===i){t.next=10;break}i(n),t.next=11;break;case 10:throw n;case 11:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}())},F=function(e){if("RAMP"===e.type&&e.colors.length>1&&e.colors.length<256){for(var t=[],n=[],o=e.colors.length,a=Math.floor(256/o),i=a+(256-o*a),r=0;rl["q"].PARAM_VIEWPORT_MAX_SIZE&&(a=l["q"].PARAM_VIEWPORT_MAX_SIZE),P=L.getExtent(),D="".concat("").concat(u["c"].REST_SESSION_VIEW,"data/").concat(t.id),x=new b["a"]({projection:R,imageExtent:P,url:D,style:E["e"].POLYGON_OBSERVATION_STYLE,imageLoadFunction:function(e,n){d["a"].dispatch("view/setSpinner",r()({},l["I"].SPINNER_LOADING,{owner:"".concat(n).concat(c)}),{root:!0}),d["a"].dispatch("data/setLoadingLayers",{loading:!0,observation:t}),N["a"].get(n,{params:r()({format:l["q"].TYPE_RASTER,viewport:a},-1!==_&&{locator:"T1(1){time=".concat(_,"}")}),responseType:"blob"}).then(function(o){if(o){var a=new FileReader;a.readAsDataURL(o.data),a.onload=function(){var o=e.getImage();o.src=a.result,d["a"].dispatch("view/setSpinner",r()({},l["I"].SPINNER_STOPPED,{owner:"".concat(n).concat(c)}),{root:!0}),t.tsImages.push("T".concat(c)),t.loaded=!0,d["a"].dispatch("data/setLoadingLayers",{loading:!1,observation:t}),V("cm_".concat(t.id),D,{params:r()({format:l["q"].TYPE_COLORMAP},-1!==c&&{locator:"T1(1){time=".concat(c,"}")})},function(e,n){e&&e.data&&(t.colormap=F(e.data)),n()})},a.onerror=function(e){d["a"].dispatch("view/setSpinner",r()({},l["I"].SPINNER_ERROR,{owner:"".concat(n).concat(c),errorMessage:e}),{root:!0})}}}).catch(function(e){throw d["a"].dispatch("view/setSpinner",r()({},l["I"].SPINNER_ERROR,{owner:"".concat(n).concat(c),errorMessage:e.message}),{root:!0}),d["a"].dispatch("data/setLoadingLayers",{loading:!1,observation:t}),e})}}),e.abrupt("return",new O["a"]({id:w,source:x}));case 19:return 0===g.indexOf("LINESTRING")||0===g.indexOf("MULTILINESTRING")?(M=E["e"].LNE_OBSERVATION_STYLE,t.zIndexOffset=E["d"].ZINDEX_BASE*E["d"].ZINDEX_MULTIPLIER_LINES):0===g.indexOf("POINT")||0===g.indexOf("MULTIPOINT")?(M=Object(f["d"])(E["e"].POINT_OBSERVATION_SVG_PARAM,t.label),t.zIndexOffset=E["d"].ZINDEX_BASE*E["d"].ZINDEX_MULTIPLIER_POINTS):(M=E["e"].POLYGON_OBSERVATION_STYLE,t.zIndexOffset=E["d"].ZINDEX_BASE*E["d"].ZINDEX_MULTIPLIER_POLYGONS),k=new m["a"]({geometry:L,name:t.label,id:w}),U=new p["a"]({id:w,source:new T["a"]({features:[k]}),style:M}),e.abrupt("return",U);case 23:case"end":return e.stop()}},e)})),W.apply(this,arguments)}function G(e,t){d["a"].$app.sendStompMessage(e(t,d["a"].state.data.session).body)}var j=function(e){switch(e){case"FORTHCOMING":return{icon:"mdi-airplane-landing",tooltip:"forthcoming"};case"EXPERIMENTAL":return{icon:"mdi-flask-outline",tooltip:"experimental"};case"NEW":return{icon:"mdi-new-box",tooltip:"new"};case"STABLE":return{icon:"mdi-check-circle-outline",tooltip:"stable"};case"BETA":return{icon:"mdi-radioactive",tooltip:"beta"};default:return{}}},H=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e,t){return e.id===t?e:null};if(e&&null!==t){var o=[].reduce,a=function e(a,i){if(a||!i)return a;if(Array.isArray(i))return o.call(Object(i),e,a);var r=n(i,t);return null===r&&i.components&&i.components.length>0?e(null,i.components):r};return a(null,e)}return null},z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return H(s()(e.panels).concat(s()(e.leftPanels),s()(e.rightPanels),[e.header,e.footer]).filter(function(e){return null!==e}),t,n)};function B(e,t,n,o){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;V("dw_".concat(e),"".concat("").concat(u["c"].REST_SESSION_VIEW,"data/").concat(e),{params:r()({format:t,outputFormat:o.value,adapter:o.adapter},-1!==a&&{locator:"T1(1){time=".concat(a,"}")}),responseType:"blob"},function(e,t){var a=window.URL.createObjectURL(new Blob([e.data])),i=document.createElement("a");i.href=a,i.setAttribute("download","".concat(n,".").concat(o.extension)),document.body.appendChild(i),i.click(),i.remove(),window.URL.revokeObjectURL(a),t()})}function K(e,t){var n=[Object.assign({},e)];return delete n[0][t],e[t]&&e[t].length>0?n.concat(e[t].map(function(e){return K(e,t)}).reduce(function(e,t){return e.concat(t)},[])):n}}).call(this,n("b639").Buffer)},be3b:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var o=n("bc3a"),a=n.n(o),i=n("7cca"),r=a.a.create();t["b"]=function(e){var t=e.Vue,n=e.store;localStorage.getItem(i["t"].TOKEN)&&(r.defaults.headers.common.Authorization="Bearer ".concat(localStorage.getItem(i["t"].TOKEN))),console.debug(n.state.data.session),n.state.data.session?r.defaults.headers.common.Klab_Authorization=n.state.data.session:console.warn("No session established en axios header, check it"),n.state.data.token&&(r.defaults.headers.common.Authentication=n.state.data.token),t.prototype.$axios=r}},d247:function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"a",function(){return a}),n.d(t,"c",function(){return i});n("0d6d"),Object.freeze({SEARCH_TYPES:[{enumId:"CONCEPT",name:"CONCEPT",color:"#ff0000"},{enumId:"OPERATOR",name:"OPERATOR",color:"#ffff00"},{enumId:"OBSERVATION",name:"OBSERVATION",color:"#ff00ff"},{enumId:"MODEL",name:"MODEL",color:"#0000ff"}]});var o=Object.freeze({CLASS_USERCONTEXTCHANGE:"UserContextChange",CLASS_SEARCH:"Search",CLASS_OBSERVATIONLIFECYCLE:"ObservationLifecycle",CLASS_TASKLIFECYCLE:"TaskLifecycle",CLASS_USERCONTEXTDEFINITION:"UserContextDefinition",CLASS_USERINTERFACE:"UserInterface",CLASS_NOTIFICATION:"Notification",CLASS_RUN:"Run",TYPE_REGIONOFINTEREST:"RegionOfInterest",TYPE_FEATUREADDED:"FeatureAdded",TYPE_PERIODOFINTEREST:"PeriodOfInterest",TYPE_SUBMITSEARCH:"SubmitSearch",TYPE_MATCHACTION:"MatchAction",TYPE_REQUESTOBSERVATION:"RequestObservation",TYPE_RESETCONTEXT:"ResetContext",TYPE_RECONTEXTUALIZE:"Recontextualize",TYPE_TASKINTERRUPTED:"TaskInterrupted",TYPE_SCALEDEFINED:"ScaleDefined",TYPE_DATAFLOWNODEDETAIL:"DataflowNodeDetail",TYPE_DATAFLOWNODERATING:"DataflowNodeRating",TYPE_CHANGESETTING:"ChangeSetting",TYPE_USERINPUTPROVIDED:"UserInputProvided",TYPE_WATCHOBSERVATION:"WatchObservation",TYPE_ENGINEEVENT:"EngineEvent",TYPE_VIEWACTION:"ViewAction",TYPE_RUNAPP:"RunApp",TYPE_CONSOLECREATED:"ConsoleCreated",TYPE_CONSOLECLOSED:"ConsoleClosed",TYPE_COMMANDREQUEST:"CommandRequest",PAYLOAD_CLASS_SPATIALEXTENT:"SpatialExtent",PAYLOAD_CLASS_SPATIALLOCATION:"SpatialLocation",PAYLOAD_CLASS_TEMPORALEXTENT:"TemporalExtent",PAYLOAD_CLASS_SEARCHREQUEST:"SearchRequest",PAYLOAD_CLASS_SEARCHMATCHACTION:"SearchMatchAction",PAYLOAD_CLASS_OBSERVATIONREQUEST:"ObservationRequest",PAYLOAD_CLASS_INTERRUPTTASK:"InterruptTask",PAYLOAD_CLASS_SCALEREFERENCE:"ScaleReference",PAYLOAD_CLASS_DATAFLOWSTATE:"DataflowState",PAYLOAD_CLASS_CONTEXTUALIZATIONREQUEST:"ContextualizationRequest",PAYLOAD_CLASS_SETTINGCHANGEREQUEST:"SettingChangeRequest",PAYLOAD_CLASS_USERINPUTRESPONSE:"UserInputResponse",PAYLOAD_CLASS_WATCHREQUEST:"WatchRequest",PAYLOAD_CLASS_EMPTY:"String",PAYLOAD_CLASS_VIEWACTION:"ViewAction",PAYLOAD_CLASS_MENUACTION:"MenuAction",PAYLOAD_CLASS_LOADAPPLICATIONREQUEST:"LoadApplicationRequest",PAYLOAD_CLASS_CONSOLENOTIFICATION:"ConsoleNotification"}),a=Object.freeze({CLASS_TASKLIFECYCLE:"TaskLifecycle",CLASS_OBSERVATIONLIFECYCLE:"ObservationLifecycle",CLASS_QUERY:"Query",CLASS_USERCONTEXTCHANGE:"UserContextChange",CLASS_NOTIFICATION:"Notification",CLASS_USERCONTEXTDEFINITION:"UserContextDefinition",CLASS_USERINTERFACE:"UserInterface",CLASS_AUTHORIZATION:"Authorization",CLASS_VIEWACTOR:"ViewActor",TYPE_DATAFLOWCOMPILED:"DataflowCompiled",TYPE_DATAFLOWSTATECHANGED:"DataflowStateChanged",TYPE_DATAFLOWDOCUMENTATION:"DataflowDocumentation",TYPE_NEWOBSERVATION:"NewObservation",TYPE_MODIFIEDOBSERVATION:"ModifiedObservation",TYPE_QUERYRESULT:"QueryResult",TYPE_RESETCONTEXT:"ResetContext",TYPE_SCALEDEFINED:"ScaleDefined",TYPE_USERINPUTREQUESTED:"UserInputRequested",TYPE_USERPROJECTOPENED:"UserProjectOpened",TYPE_PROJECTFILEMODIFIED:"ProjectFileModified",TYPE_SCHEDULINGSTARTED:"SchedulingStarted",TYPE_SCHEDULINGFINISHED:"SchedulingFinished",TYPE_NETWORKSTATUS:"NetworkStatus",TYPE_CREATEVIEWCOMPONENT:"CreateViewComponent",TYPE_SCHEDULEADVANCED:"ScheduleAdvanced",TYPE_ENGINEEVENT:"EngineEvent",TYPE_SETUPINTERFACE:"SetupInterface",TYPE_VIEWACTION:"ViewAction",TYPE_VIEWAVAILABLE:"ViewAvailable",TYPE_VIEWSETTING:"ViewSetting",TYPE_COMMANDRESPONSE:"CommandResponse",TYPE_DOCUMENTATIONCHANGED:"DocumentationChanged",TYPE_CREATEMODALWINDOW:"CreateModalWindow",TYPE_AUTHORITYDOCUMENTATION:"AuthorityDocumentation",TYPE_PROVENANCECHANGED:"ProvenanceChanged",TYPE_TASKSTARTED:"TaskStarted",TYPE_TASKFINISHED:"TaskFinished",TYPE_TASKABORTED:"TaskAborted",TYPE_DEBUG:"Debug",TYPE_INFO:"Info",TYPE_WARNING:"Warning",TYPE_ERROR:"Error",PAYLOAD_CLASS_TASKREFERENCE:"TaskReference",PAYLOAD_CLASS_CONTEXTUALIZATIONNOTIFICATION:"ContextualizationNotification",PAYLOAD_CLASS_DATAFLOWSTATE:"DataflowState",PAYLOAD_CLASS_OBSERVATIONREFERENCE:"ObservationReference",PAYLOAD_CLASS_SEARCHRESPONSE:"SearchResponse",PAYLOAD_CLASS_SCALEREFERENCE:"ScaleReference",PAYLOAD_CLASS_USERINPUTREQUEST:"UserInputRequest",PAYLOAD_CLASS_SCHEDULERNOTIFICATION:"SchedulerNotification",PAYLOAD_CLASS_NETWORKREFERENCE:"NetworkReference",PAYLOAD_CLASS_EMPTY:"String",PAYLOAD_CLASS_VIEWCOMPONENT:"ViewComponent",PAYLOAD_CLASS_ENGINEEVENT:"EngineEvent",PAYLOAD_CLASS_LAYOUT:"Layout",PAYLOAD_CLASS_VIEWACTION:"ViewAction",PAYLOAD_CLASS_VIEWSETTING:"ViewSetting",PAYLOAD_CLASS_KNOWLEDGEVIEWREFERENCE:"KnowledgeViewReference",PAYLOAD_CLASS_CONSOLENOTIFICATION:"ConsoleNotification",PAYLOAD_CLASS_DOCUMENTATIONEVENT:"DocumentationEvent"}),i=Object.freeze({REST_STATUS:"".concat("/modeler","/engine/status"),REST_SESSION_INFO:"".concat("/modeler","/engine/session/info"),REST_SESSION_VIEW:"".concat("/modeler","/engine/session/view/"),REST_SESSION_OBSERVATION:"".concat("/modeler","/engine/session/observation/"),REST_UPLOAD:"".concat("/modeler","/resource/put"),REST_GET_PROJECT_RESOURCE:"".concat("/modeler","/engine/project/resource/get"),REST_API_LOGOUT:"".concat("/modeler/api/v2","/users/log-out"),REST_API_EXPORT:"".concat("/modeler/api/v2","/public/export")})},e7d8:function(e,t,n){"use strict";var o=n("2b0e"),a=n("a925"),i={label:{appTitle:"k.LAB Explorer EN",appRunning:"Running on Quasar v{version}",appClose:"Close",appOK:"Ok",appAccept:"Accept",appYES:"Yes",appNO:"No",appCancel:"Cancel",appRetry:"Retry",appNext:"Next",appPrevious:"Previous",appWarning:"Warning",appPlay:"Play",appReplay:"Replay",appPause:"Pause",appReload:"Reload",appPrint:"Print",appSetDefault:"Set as default",klabNoMessage:"No message",klabUnknownError:"Unknown error",klabNoDate:"No date",klabMessagesToSend:"There are one message in queue",modalNoConnection:"No connection, please wait",appFooter:"k.LAB Explorer - 2018",treeTitle:"Observation",reconnect:"Reconnect",unknownLabel:"Unknown",context:"context",noContext:"",noContextPlaceholder:"",contextShape:"context shape",noObservation:"No observations available",searchPlaceholder:"Search knowledge",fuzzySearchPlaceholder:"Free search",askForObservation:"Observing {urn}",noTokenDescription:"No description available",btnContextReset:"Reset context",contextReset:"Context reset",itemCounter:"{loaded} of {total}",logTab:"Log",treeTab:"Tree",noHistogramData:"No data",noInfoValues:"",noScaleReference:"",mcMenuScale:"Space & time:",mcMenuContext:"Context",mcMenuOption:"Options",mcMenuSettings:"Settings",mcMenuHelp:"Help",showTutorial:"Show tutorial",showHelp:"Show help",refreshSize:"Refresh window size",titleOutputFormat:"Download observation",askForOuputFormat:"Select format",titleChangeScale:"Change {type} scale",askForNewScale:"Select new scale",resolutionLabel:"Resolution value",unitLabel:"Unit value",clickToEditScale:"Click to edit",clickToLock:"Click to lock scale",clickToUnlock:"Click to unlock scale",scaleLocked:"{type} scale locked",spaceScale:"Space",timeScale:"Time",unitCentimeter:"Centimeters",unitMeter:"Meters",unitKilometer:"Kilometers",unitMillennium:"Millennium",unitCentury:"Century",unitDecade:"Decade",unitYear:"Year",unitMonth:"Month",unitWeek:"Week",unitDay:"Day",unitHour:"Hour",unitMinute:"Minute",unitSecond:"Second",unitMillisecond:"Millisecond",timeOrigin:"Initial time",labelTimeStart:"Start time",labelTimeEnd:"End time",labelSpatial:"spatial",labelTemporal:"temporal",newContext:"New context",previousContexts:"Previous contexts",drawCustomContext:"Draw context",eraseCustomContext:"Erase custom context",addToCustomContext:"Add shape",drawPoint:"Point",drawLineString:"Line",drawPolygon:"Polygon",drawCircle:"Circle",optionShowAll:"Show all",optionSaveLocation:"Remember location",saveDockedStatus:"Remember docked status",noNodes:"No observations",loadShowData:"Load and show data",interactiveMode:"Interactive mode",noInputSectionTitle:"No section title",cancelInputRequest:"Cancel run",resetInputRequest:"Use defaults",submitInputRequest:"Submit",IDLAlertTitle:"Warning!",recontextualization:"Set as context",rememberDecision:"Don't show again",titleCommentResource:"Comment on resource",sendComment:"Send",noTimeSet:"Initial state",timeResolutionMultiplier:"Multiplier",months:{m0:"January",m1:"February",m2:"March",m3:"April",m4:"May",m5:"June",m6:"July",m7:"August",m8:"September",m9:"October",m10:"November",m11:"December"},removeProposedContext:"Remove context",levelDebug:"Debug",levelInfo:"Info",levelWarning:"Warning",levelError:"Error",levelEngineEvent:"Engine event",userDetails:"User details",unknownUser:"Unknown user",userId:"Id:",userEmail:"Email:",userLastLogin:"Last login:",userGroups:"Groups:",appsList:"Available apps",appsClose:"Close app",appsLogout:"Logout",reloadApplications:"Reload applications",noLayoutLabel:"No title",noLayoutDescription:"No description",kwTable:"Table",kwChart:"Chart",openTerminal:"Open terminal",openDebugger:"Open debugger",titleSelectTerminalSize:"Select terminal size",terminalDeleteHistory:"Delete history",terminalResizeWindow:"Resize terminal window",terminalMinimize:"Minimize terminal",terminalMaximize:"Maximize terminal",terminalClose:"Close terminal",noDocumentation:"No elements available for this view",tableDownloadAsXSLX:"Download table as .xslx",tableCopy:"Copy table to clipboard",resettingContext:"Resetting context",reportTable:"Table",reportFigure:"Figure",viewCoordinates:"Show coordinates"},messages:{connectionClosed:"Connection closed",connectionWorking:"Trying to reconnect",connectionUnknown:"Starting...",noSpaceAllowedInSearch:"Spaces cannot be used in the search box",noSearchResults:"No search results",noActionForObservation:"No actions available",noTime:"no time",emptyReport:'
Empty report
',noLoadedReport:"No report loaded",copiedToClipboard:"Copied to clipboard",customCopyToClipboard:"{what} copied to clipboard",changeScaleResolutionError:"Resolution must be positive",updateScale:"{type} scale updated",updateNextScale:"New {type} scale have been stored, press refresh to update",invalidGeometry:"Polygon is not valid",geolocationWaitingTitle:"Enable geolocation?",geolocationWaitingText:"k.Explorer can detect your current location to initialize the geographical viewer.
In order to do so, you need to authorize geolocation.
This is merely for your convenience and does not affect operation.
Your choice will be remembered and can be changed at any time.",geolocationErrorPermissionDenied:"Geolocation has not been authorized",geolocationErrorPositionUnavailable:"Location information is unavailable",geolocationErrorTimeout:"A request to get the user location timed out",geolocationErrorUnknown:"An unknown error occurred",unknownSearchObservation:"Previous observations results",noLogItems:"Empty log",noLevelSelected:"No levels selected",uploadComplete:"Upload of file {fileName} complete",IDLAlertText:"Actual view crossing the International Date Line. A drawn context is needed",lastTermAlertText:"No more terms allowed",parenthesisAlertText:"You have open parenthesis",emptyFreeTextSearch:"Empty search is not allowed",fuzzyModeOff:"Free search off",fuzzyModeOn:"Free search on",treeNoResult:"No results",treeNoNodes:"No data",treeNoResultUser:"No main observations",treeNoResultUserWaiting:"Computing...",treeNoResultNoUser:"No observations",treeNoMainSummary:"Other observations",thankComment:"Comment has been sent",confirmRescaleContext:"The context will be recreate with new resolution.\nAre you sure?",loadingChildren:"Loading children...",waitingLocation:"Searching for {location}...",waitingObservationInit:"Initializing observation...",availableInFuture:"This feature will be available soon",timeEndBeforeTimeStart:"End time cannot be before start time",timeEndModified:"Multiplier is not used because the end time was manually changed",pressToChangeSpeed:"Press to play
Hold to change speed
Actual speed x{multiplier}",resourcesValidating:"Engine is busy",presentationBlocked:'

Can\'t access online help resources: check your network connection

A browser extension may also be interfering

',noAppsAvailable:"No available apps",noGroupsAssigned:"No groups assigned",appLoading:"Loading app {app}",errorLoadingApp:"Error loading app {app}",reloadApp:"Reload application",errorLoggingOut:"Error logging out, contact support",terminalHello:"Welcome to k.LAB {type}",noDocumentation:"No documentation available",confirmExitPage:"Data will be lost if you leave the page, are you sure?",tableCopied:"Table copied to clipboard",invalidSession:"Invalid session",sessionClosed:"Session closed by server",unknownSessionError:"Problem with session",youHaveGOT:"Winter is coming"},tooltips:{treePane:"View tree",showLogPane:"View log",hideLogPane:"Hide log",resetContext:"Reset context",interruptTask:"Interrupt task {taskDescription}",dataViewer:"View data",reportViewer:"View report",documentationViewer:"View documentation",scenarios:"Scenarios",observers:"Observers",noReportTask:"Cannot view report,\nwait for task end",noReportObservation:"Report not available,\nno observations",noDocumentation:"Documentation not available,\nno observations",noDataflow:"Dataflow not availble",noDataflowInfo:"No details",dataflowViewer:"View data flow",provenanceViewer:"View provenance (will be...)",undock:"Undock",copyEncodedShapeToClipboard:"Copy context shape to clipboard",cancelInputRequest:"Cancel run",resetInputRequest:"Use default values",submitInputRequest:"Submit values",displayMainTree:"Display main tree",hideMainTree:"Hide main tree",rateIt:"Rate resource",commentIt:"Comment on resource",refreshScale:"Refresh context with new scale(s)",clickToEdit:"Click to edit {type} scale",palette:"No palette",unknown:"To be decided",noKnowledgeViews:"No knowledge views",knowledgeViews:"Knowledge views",uploadData:"Upload data (forthcoming)"},errors:{connectionError:"Connection error",searchTimeout:"Search timeout",uploadError:"Upload error for the file {fileName}"},engineEventLabels:{evtResourceValidation:"Resource validation"},langName:"English"},r={label:{appTitle:"k.LAB Explorer ES",appRunning:"Ejecutándose sobre Quasar v{version}",appClose:"Cerrar",appOK:"Ok",appCancel:"Cancelar",appRetry:"Reintentar",appNext:"Siguiente",appPrevious:"Precedente",klabNoMessage:"No hay ningún mensaje",klabUnknownError:"Error desconocido",klabNoDate:"No hay fecha",klabMessagesToSend:"Hay un mensaje en la cola",modalNoConnection:"No hay conexión, esperar",appFooter:"k.LAB Explorer - 2018",treeTitle:"Observaciones",reconnect:"Reconectar",unknownLabel:"Desconocido",context:"contesto",noContext:"",contextShape:"context shape",noObservation:"No hay observaciones",searchPlaceholder:"Buscar in k.LAB",fuzzySearchPlaceholder:"Buscar",askForObservation:"Pidiendo {urn}",noTokenDescription:"No hay descripción",btnContextReset:"Resetear contexto",contextReset:"Contexto reseteado",itemCounter:"{loaded} de {total}",logTab:"Log",treeTab:"Árbol",noHistogramData:"No data",noInfoValues:"",noScaleReference:"",mcMenuScale:"Espacio y tiempo:",mcMenuContext:"Contexto",mcMenuOption:"Optciones",titleOutputFormat:"Download observación",askForOuputFormat:"Seleccionar un formato",titleChangeScale:"Cambiar escala",askForNewScale:"Seleccionar nueva escala",resolutionLabel:"Valor de la escala",unitLabel:"Unidad de la escala",clickToEditScale:"Click para modificar",clickToLock:"Click para bloquear la escala",clickToUnlock:"Click para desbloquear la escala",scaleLocked:"{type} escala bloqueada",spaceScale:"Espacio",timeScale:"Tiempo",labelCm:"Centimetros",labelM:"Metros",labelKm:"Kilometros",labelSpatial:"espacial",labelTemporal:"temporal",newContext:"Nuevo contexto",previousContexts:"Contextos prévios",drawCustomContext:"Dibujar contexto",eraseCustomContext:"Borrar contexto",addToCustomContext:"Añadir shape",drawPoint:"Punto",drawLineString:"Línea",drawPolygon:"Polígono",drawCircle:"Circulo",optionShowAll:"Ver todas",optionSaveLocation:"Recordar posición",noNodes:"No results: is waiting?",loadShowData:"Cargar y visualizar datos",interactiveMode:"Modo interactivo",noInputSectionTitle:"No section title",cancelInputRequest:"Cancelar ejecución",resetInputRequest:"Utilizar defaults",submitInputRequest:"Enviar",IDLAlertTitle:"Cuidado!",recontextualization:"Fijar como contexto",rememberDecision:"Recordar mi elección"},messages:{connectionClosed:"Conexión cerrada",connectionWorking:"Intentando reconectar",connectionUnknown:"Inicializando...",noSpaceAllowedInSearch:"No está permitido utilizar espacios en la búsqueda",noSearchResults:"No hay resultados",noActionForObservation:"No hay acciones disponibles",noTime:"sin información",emptyReport:'',noLoadedReport:"No se ha cargado ningun report",copiedToClipboard:"Copiado",customCopyToClipboard:"{what} copiado",changeScaleResolutionError:"La resolución tiene que ser positiva",updateScale:"Actualizada la escala {type}, nuevo valor {resolution} {unit}",invalidGeometry:"Polígono no válido",geolocationWaitingTitle:"¿Habilitar la geolocalización?",geolocationWaitingText:"k.Explorer puede detectar tu posición actual para inicializar la vista geográfica.
Para hacer eso, hay que autorizar la geolocalización.
Esto es solamente por comodidad yno afecta a la operatividad.
Your choice will be remembered and can be changed at any time.",geolocationErrorPermissionDenied:"No se ha autorizado la geolocalización",geolocationErrorPositionUnavailable:"No hay información de posicionamiento",geolocationErrorTimeout:"Se ha superado el tiempo de espera para la geolocalización",geolocationErrorUnknown:"Ha habido un error desconocido",needHelpTitle:"How to use",needHelp0Text:"To use this, you need to know various things:",needHelp1Text:"The first",needHelp2Text:"The second",needHelp3Text:"The last",unknownSearchObservation:"Resultado de observaciones previas",noLogItems:"No hay elementos en el log",uploadComplete:"Upload del file {fileName} completado",IDLAlertText:"La selección actual cruza la IDL. Sólo está permitido en caso de dibujar un contexto",lastTermAlertText:"No están permitidos mas tokens",parenthesisAlertText:"Parentesis no balanceadas",emptyFreeTextSearch:"Búsqueda vacía",fuzzyModeOff:"Búsqueda libre desactivada",fuzzyModeOn:"Búsqueda libre activada",youHaveGOT:"Winter is coming"},tooltips:{treePane:"Ver árbol",logPane:"Ver log",resetContext:"Reset context",interruptTask:"Interrumpir proceso {taskDescription}",dataViewer:"Ver datos",reportViewer:"Ver report",noReportTask:"Cannot view report,\nwait for task end",noReportObservation:"Report no disponibile,\nno hay observaciones",noDataflow:"Dataflow no disponible",dataflowViewer:"Ver data flow",provenanceViewer:"Ver provenance (will be...)",undock:"Desacoplar",copyEncodedShapeToClipboard:"Copiar el contexto en el portapapeles",cancelInputRequest:"Cancelar ejecución",resetInputRequest:"Utilizar default",submitInputRequest:"Enviar"},errors:{connectionError:"Error de conexión",searchTimeout:"Tiempo de busqueda terminado",uploadError:"Error durante el upload del file {fileName}"},langName:"Español"},c={label:{appTitle:"k.LAB Explorer IT",appRunning:"Esecutandosi con Quasar v{version}",appClose:"Chiudi",appOK:"Ok",appCancel:"Cancellare",appRetry:"Riprovare",appNext:"Successiva",appPrevious:"Precedente",klabNoMessage:"Nessun messaggio",klabUnknownError:"Errore sconosciuto",klabNoDate:"Nessuna data",klabMessagesToSend:"C'è un messaggio in coda",modalNoConnection:"Non c'è connessione",appFooter:"k.LAB Explorer - 2018",treeTitle:"Osservazioni",reconnect:"Riconnettere",unknownLabel:"Sconosciuto",context:"contesto",noContext:"",contextShape:"context shape",noObservation:"Nessuna osservazione disponibile",searchPlaceholder:"Cerca in k.LAB",fuzzySearchPlaceholder:"Cerca",askForObservation:"Chiedendo {urn}",noTokenDescription:"Descrizione non disponibile",btnContextReset:"Resettare il contesto",contextReset:"Contesto resettato",itemCounter:"{loaded} di {total}",logTab:"Log",treeTab:"Albero",noHistogramData:"No data",noInfoValues:"",noScaleReference:"",mcMenuScale:"Spazio e tempo",mcMenuContext:"Contesto",mcMenuOption:"Optziono",titleOutputFormat:"Download osservazione",askForOuputFormat:"Selezionare un formato",titleChangeScale:"Cambiare scala",askForNewScale:"Seleccionar la nueva escala",resolutionLabel:"Valore della scala",unitLabel:"Unità della scala",clickToEditScale:"Click per modificare",clickToLock:"Click per bloccare la scala",clickToUnlock:"Click per sbloccare la scala",scaleLocked:"{type} scala bloccata",spaceScale:"Spacio",timeScale:"Tempo",labelCm:"Centimetri",labelM:"Metri",labelKm:"Kilometri",labelSpatial:"spaziale",labelTemporal:"temporale",newContext:"Constesto nuovo",previousContexts:"Contesti precedenti",drawCustomContext:"Disegnare contesto",eraseCustomContext:"Eliminare contesto",addToCustomContext:"Aggiungere shape",drawPoint:"Punto",drawLineString:"Linea",drawPolygon:"Poligono",drawCircle:"Cerchio",optionShowAll:"Vedere tutte",optionSaveLocation:"Ricordare posizione",noNodes:"No results: is waiting?",loadShowData:"Caricare e visualizzare dati",interactiveMode:"Modo interattivo",noInputSectionTitle:"Sezione senza titolo",cancelInputRequest:"Cancellare esecuzion",resetInputRequest:"Utilizzare defaults",submitInputRequest:"Inviare",IDLAlertTitle:"Attenzione!",recontextualization:"Settare come contesto",rememberDecision:"Ricordare la mia decisione"},messages:{connectionClosed:"Connessione chiusa",connectionWorking:"Cercando di riconnettere",connectionUnknown:"Inizializzando...",noSpaceAllowedInSearch:"Non è permesso utilizare spazi nella ricerca",noSearchResults:"Non esistono risultati",noActionForObservation:"Nessuna azione disponibile",noTime:"senza informazione di ora",emptyReport:'',noLoadedReport:"Non si è caricato nessun report",copiedToClipboard:"Copiato",customCopyToClipboard:"{what} copiato",changeScaleResolutionError:"La risoluzione deve essere positiva",updateScale:"Attualizata la scala {type}, nuovo valore {resolution} {unit}",invalidGeometry:"Poligono non valido",geolocationWaitingTitle:"Attivare la geolocalizzazione?",geolocationWaitingText:"k.Explorer può detettare la posizione per inizializzare la vista geografica.
Perché questo sia possibile, è necessario autorizzare la geolocalizzazione.
Quest'ultimo è esclusivamente per comodità e non influenza l'operatività.
Your choice will be remembered and can be changed at any time.",geolocationErrorPermissionDenied:"Non si ha autorizzato la geolocalizzazione",geolocationErrorPositionUnavailable:"Posizione non disponibile",geolocationErrorTimeout:"Terminato il tempo di attesa per la geolocalizzazione",geolocationErrorUnknown:"Errore imprevisto",needHelpTitle:"How to use",needHelp0Text:"To use this, you need to know various things:",needHelp1Text:"The first",needHelp2Text:"The second",needHelp3Text:"The last",unknownSearchObservation:"Risultato di osservazioni previe",noLogItems:"Il log è vuoto",uploadComplete:"Upload del file {fileName} completato",IDLAlertText:"La selezione attuale incrocia la IDL. per poterlo fare è necessario disegnare un contesto",lastTermAlertText:"Non sono permessi altri token",parenthesisAlertText:"Paretesi sbilanciate",emptyFreeTextSearch:"Ricerca vuota",fuzzyModeOff:"Ricerca libers disattivata",fuzzyModeOn:"Ricerca libera attivata",youHaveGOT:"Winter is coming"},tooltips:{treePane:"Albero",logPane:"Log",resetContext:"Reset context",interruptTask:"Interrompere processo {taskDescription}",dataViewer:"Vedere dati",reportViewer:"Vedere report",noReportTask:"Report non disponibile,\naspettare",noReportObservation:"Report non disponibile,\nnon ci sono osservazioni",noDataflow:"Dataflow non disponible",dataflowViewer:"Vedere data flow (will be...)",provenanceViewer:"Vedere provenance (will be...)",undock:"Sganciare",copyEncodedShapeToClipboard:"Copia il contesto negli appunti",cancelInputRequest:"Cancellare esecuzion",resetInputRequest:"Utilizzare default",submitInputRequest:"Inviare"},errors:{connectionError:"Errore di connessione",searchTimeout:"Tempo di ricerca terminato",uploadError:"Errore durante l'upload del file {fileName}"},langName:"Italiano"},s={en:i,es:r,it:c},l=n("741d"),u=n("7cca");n.d(t,"b",function(){return E});var d=null;function E(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e||null===d){o["a"].use(a["a"]);var t="en";l["a"].has(u["Q"].COOKIE_LANG)?(t=l["a"].get(u["Q"].COOKIE_LANG),console.debug("Locale set from cookie to ".concat(t))):(l["a"].set(u["Q"].COOKIE_LANG,t,{expires:30,path:"/",secure:!0}),console.debug("Lang cookie set to ".concat(t))),d=new a["a"]({locale:t,fallbackLocale:"en",messages:s})}return d}t["a"]=function(e){var t=e.app;t.i18n=E()}},fb1c:function(e,t,n){}},[[0,"runtime","vendor"]]]); \ No newline at end of file diff --git a/klab.engine/src/main/resources/static/ui/js/app.87cc1f0f.js b/klab.engine/src/main/resources/static/ui/js/app.87cc1f0f.js new file mode 100644 index 000000000..f029d0806 --- /dev/null +++ b/klab.engine/src/main/resources/static/ui/js/app.87cc1f0f.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(e,t,n){e.exports=n("2f39")},"034f":function(e,t,n){"use strict";var o=n("fb1c"),a=n.n(o);a.a},1:function(e,t){},1442:function(e,t,n){"use strict";n.d(t,"d",function(){return A}),n.d(t,"f",function(){return I}),n.d(t,"e",function(){return v}),n.d(t,"c",function(){return N}),n.d(t,"b",function(){return h}),n.d(t,"a",function(){return R});n("ac6a"),n("7514"),n("48c0"),n("6c7b");var o=n("7cca"),a=n("480c"),i=n("5043"),r=n("d0e9"),c=n("2ef1"),s=n("6c77"),l=n("83a6"),u=n("8682"),d=n("8295"),E=n("6cbf"),f=n("bcf0"),T=n("4cdf"),p=n("ddaa"),S=n("8f3a"),m=n("256f"),O="pk.eyJ1Ijoiay1sYWIiLCJhIjoiY2prd2d2dWNxMHlvcDNxcDVsY3FncDBydiJ9.zMQE3gu-0qPpkLapVfVhnA",b='© Mapbox © OpenStreetMap Improve this map',A={BING_KEY:"",COORD_BC3:[-2.968226,43.332125],PROJ_EPSG_4326:Object(m["g"])("EPSG:4326"),PROJ_EPSG_3857:Object(m["g"])("EPSG:3857"),ZINDEX_TOP:1e4,ZINDEX_BASE:1e3,ZINDEX_MULTIPLIER_RASTER:0,ZINDEX_MULTIPLIER_POLYGONS:1,ZINDEX_MULTIPLIER_LINES:2,ZINDEX_MULTIPLIER_POINTS:3,DEFAULT_BASELAYER:"osm_layer"},_={MARKER_SVG:function(e){var t=e.fill,n=void 0===t?"yellow":t,o=e.stroke,a=void 0===o?"black":o,i=e.strokeWidth,r=void 0===i?"5":i;return'\n ')}},I={POINT_OBSERVATION_ICON:new E["a"]({anchor:[.5,1],src:"statics/maps/marker.png",opacity:.8,scale:.6}),POINT_OBSERVATION_SVG_ICON:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.3;return new E["a"]({opacity:1,src:"data:image/svg+xml;utf8,".concat(_.MARKER_SVG(e)),scale:t})},POINT_OBSERVATION_TEXT:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.offsetY,n=void 0===t?25:t,o=e.bold,a=void 0!==o&&o,i=e.size,r=void 0===i?"10px":i;return new d["a"]({textAlign:"center",textBaseline:"bottom",offsetY:n,font:"".concat(a?"bold":"normal"," ").concat(r," Roboto, sans-serif")})}},v={POLYGON_CONTEXT_STYLE:new s["c"]({fill:new l["a"]({color:"rgba(38, 166, 154, 0.2)"})}),POLYGON_PROPOSED_CONTEXT:new s["c"]({fill:new l["a"]({color:"rgba(255,255,255,0.5)"}),stroke:new f["a"]({width:8,pattern:"hatch",color:"#3187ca",offset:0,scale:.75,fill:new l["a"]({color:"#FFFFFF"}),size:2,spacing:5,angle:45})}),POLYGON_OBSERVATION_STYLE:new s["c"]({stroke:new u["a"]({color:"rgb(255, 102, 0)",width:2}),fill:new l["a"]({color:"rgba(255, 102, 0, 0.2)"})}),LNE_OBSERVATION_STYLE:new s["c"]({stroke:new u["a"]({color:"rgb(255, 102, 0)",width:2})}),POINT_OBSERVATION_SVG_PARAM:{fill:o["e"].MAIN_COLOR,stroke:"rgb(51,51,51)",strokeWidth:"4",scale:.3},POINT_CONTEXT_SVG_PARAM:{fill:"rgb(17, 170, 187)",stroke:"rgb(51,51,51)",strokeWidth:"5",scale:.5,offsetY:35,bold:!0,size:"14px"}},N={OSM_LAYER:new a["a"]({name:"osm_layer",title:"OpenStreetMap",type:"base",source:new r["a"]({attributions:'Map credits ©\n OSM\n contributors.'}),visible:!1}),CLEARMAP_TOPO_LAYER:new a["a"]({name:"clearmap_topo_layer",title:"UN Clear Map",type:"base",source:new i["a"]({url:"https://geoservices.un.org/arcgis/rest/services/ClearMap_WebTopo/MapServer/export"}),visible:!1}),CLEARMAP_PLAIN_LAYER:new a["a"]({name:"clearmap_plain_layer",title:"UN Clear Map Plain",type:"base",source:new i["a"]({url:"https://geoservices.un.org/arcgis/rest/services/ClearMap_WebPlain/MapServer/export"}),visible:!1}),CLEARMAP_DARK_LAYER:new a["a"]({name:"clearmap_dark_layer",title:"UN Clear Map Dark",type:"base",source:new i["a"]({url:"https://geoservices.un.org/arcgis/rest/services/ClearMap_WebDark/MapServer/export"}),visible:!1}),CLEARMAP_GRAY_LAYER:new a["a"]({name:"clearmap_gray_layer",title:"UN Clear Map Gray",type:"base",source:new i["a"]({url:"https://geoservices.un.org/arcgis/rest/services/ClearMap_WebGray/MapServer/export"}),visible:!1}),GOOGLE_HYBRID:new a["a"]({name:"google_hybrid",title:"Google Hybrid",type:"base",source:new c["a"]({crossOrigin:"anonymous",url:"http://mt{0-3}.google.com/vt/lyrs=y&hl=en&x={x}&y={y}&z={z}",attribution:"© 2018 Google, Inc"}),visible:!1}),GOOGLE_STREET:new a["a"]({name:"google_street",title:"Google Street",type:"base",source:new c["a"]({crossOrigin:"anonymous",url:"http://mt{0-3}.google.com/vt/lyrs=m&x={x}&y={y}&z={z}",attribution:"© 2018 Google, Inc"}),visible:!1}),GOOGLE_TERRAIN:new a["a"]({name:"google_terrain",title:"Google Terrain",type:"base",source:new c["a"]({crossOrigin:"anonymous",url:"https://mt{0-3}.google.com/vt/lyrs=t&x={x}&y={y}&z={z}",attribution:"© 2018 Google, Inc"}),visible:!1}),MAPBOX_CALI_TERRAIN:new a["a"]({name:"mapbox_cali_terrain",title:"Mapbox Terrain",type:"base",source:new c["a"]({crossOrigin:"anonymous",url:"https://api.mapbox.com/styles/v1/k-lab/cjkwh1z9z06ok2rrn9unfpn2n/tiles/256/{z}/{x}/{y}?access_token=".concat(O),attribution:b}),visible:!1}),MAPBOX_MINIMO:new a["a"]({name:"mapbox_minimo",title:"Mapbox Minimo",type:"base",source:new c["a"]({crossOrigin:"anonymous",url:"https://api.mapbox.com/styles/v1/k-lab/cjm0l6i4g7ffj2sqk7xy5dv1m/tiles/256/{z}/{x}/{y}?access_token=".concat(O),attribution:b}),visible:!1}),MAPBOX_TERRAIN:new a["a"]({name:"mapbox_terrain",title:"Mapbox Terrain",type:"base",source:new c["a"]({crossOrigin:"anonymous",format:"pbf",url:"https://api.mapbox.com/styles/v1/k-lab/cl1dgarpr005f15ntep34yq88/tiles/256/{z}/{x}/{y}?access_token=".concat(O),attribution:b}),visible:!1}),MAPBOX_GOT:new a["a"]({name:"mapbox_got",title:"k.LAB Mapbox GOT",type:"base",source:new c["a"]({crossOrigin:"anonymous",url:"https://api.mapbox.com/styles/v1/k-lab/cjuihteg13toh1fmovvd6r80y/tiles/256/{z}/{x}/{y}?access_token=".concat(O),attribution:b}),visible:!1}),EMPTY_LAYER:new a["a"]({name:"empty_layer",title:"No background",type:"base",visible:!1})},h={controls:S["a"]({attribution:!1}).extend([]),target:"map",projection:A.PROJ_EPSG_4326,center:Object(m["l"])(A.COORD_BC3,A.PROJ_EPSG_4326,A.PROJ_EPSG_3857),zoom:13},R={layers:[N.EMPTY_LAYER,N.CLEARMAP_TOPO_LAYER,N.MAPBOX_MINIMO,N.MAPBOX_TERRAIN,N.OSM_LAYER],mask:null,hasMask:function(){return null!==this.mask},getBaseLayer:function(){return this.layers.find(function(e){return"base"===e.get("type")&&e.getVisible()})},setMask:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[38,38,38,.4];null!==this.mask&&this.removeMask(),this.mask=new p["a"]({feature:new T["a"]({geometry:e,name:"Context"}),inner:!1,active:!0,fill:new l["a"]({color:n})}),this.layers.forEach(function(e){e.addFilter(t.mask)})},removeMask:function(){var e=this;null!==this.mask&&this.layers.forEach(function(t){t.removeFilter(e.mask)}),this.mask=null}}},"17dc":function(e,t,n){"use strict";n.d(t,"a",function(){return f});n("ac6a"),n("cadf"),n("6b54"),n("c5f6");var o=n("3156"),a=n.n(o),i=n("278c"),r=n.n(i),c=n("2369"),s=n("c1df"),l=n.n(s),u=n("d247");function d(e,t,n,o,a){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,r=n!==u["b"].PAYLOAD_CLASS_EMPTY?c["b"].validateJsonSchema(o,n):o;return{validated:r,body:{messageClass:e,type:t,payloadClass:n,payload:o,identity:a,timestamp:l()().valueOf(),inResponseTo:i}}}var E={SPATIAL_EXTENT:function(e){var t=r()(e,4),n=t[0],o=t[1],a=t[2],i=t[3];return{south:o,west:n,north:i,east:a}}},f={REGION_OF_INTEREST:function(e,t){return d(u["b"].CLASS_USERCONTEXTCHANGE,u["b"].TYPE_REGIONOFINTEREST,u["b"].PAYLOAD_CLASS_SPATIALEXTENT,E.SPATIAL_EXTENT(e),t)},SEARCH_REQUEST:function(e,t){var n=e.queryString,o=e.searchMode,i=e.requestId,r=e.contextId,c=void 0===r?null:r,s=e.matchTypes,l=void 0===s?null:s,E=e.cancelSearch,f=void 0!==E&&E,T=e.defaultResults,p=void 0!==T&&T,S=e.maxResults;return d(u["b"].CLASS_SEARCH,u["b"].TYPE_SUBMITSEARCH,u["b"].PAYLOAD_CLASS_SEARCHREQUEST,a()({},null!==c&&{contextId:c},null!==l&&{matchTypes:l},{queryString:n,searchMode:o,requestId:i,cancelSearch:f,defaultResults:p,maxResults:S}),t)},SEARCH_MATCH:function(e,t){var n=e.contextId,o=e.matchId,a=e.matchIndex,i=e.added;return d(u["b"].CLASS_SEARCH,u["b"].TYPE_MATCHACTION,u["b"].PAYLOAD_CLASS_SEARCHMATCHACTION,{contextId:n,matchId:o,matchIndex:a,added:i},t)},OBSERVATION_REQUEST:function(e,t){var n=e.urn,o=e.contextId,i=e.searchContextId,r=void 0===i?null:i,c=e.estimate,s=void 0!==c&&c,l=e.estimatedCost,E=void 0===l?0:l;return d(u["b"].CLASS_OBSERVATIONLIFECYCLE,u["b"].TYPE_REQUESTOBSERVATION,u["b"].PAYLOAD_CLASS_OBSERVATIONREQUEST,a()({urn:n},null!==o&&{contextId:o},null!==r&&{searchContextId:r},{estimate:s,estimatedCost:E}),t)},RESET_CONTEXT:function(e){return d(u["b"].CLASS_USERCONTEXTCHANGE,u["b"].TYPE_RESETCONTEXT,u["b"].PAYLOAD_CLASS_EMPTY,"",e)},CONTEXTUALIZATION_REQUEST:function(e,t){var n=e.contextUrn,o=e.contextId,i=e.parentContext,r=e.contextQuery;return d(u["b"].CLASS_OBSERVATIONLIFECYCLE,u["b"].TYPE_RECONTEXTUALIZE,u["b"].PAYLOAD_CLASS_CONTEXTUALIZATIONREQUEST,a()({},"undefined"!==typeof n&&{contextUrn:n},"undefined"!==typeof o&&{contextId:o},"undefined"!==typeof i&&{parentContext:i},"undefined"!==typeof r&&{contextQuery:r}),t)},TASK_INTERRUPTED:function(e,t){var n=e.taskId,o=e.forceInterruption,a=void 0===o||o;return d(u["b"].CLASS_TASKLIFECYCLE,u["b"].TYPE_TASKINTERRUPTED,u["b"].PAYLOAD_CLASS_INTERRUPTTASK,{taskId:n,forceInterruption:a},t)},SCALE_REFERENCE:function(e,t){var n=e.scaleReference,o=e.spaceResolution,i=e.spaceUnit,r=e.timeResolutionMultiplier,c=e.timeUnit,s=e.start,l=e.end,E=e.timeResolutionDescription,f=void 0===E?"":E,T=e.contextId,p=void 0===T?"":T,S=e.shape,m=void 0===S?"":S,O=e.timeType,b=void 0===O?"":O,A=e.timeGeometry,_=void 0===A?"":A,I=e.spaceGeometry,v=void 0===I?"":I;return d(u["b"].CLASS_USERCONTEXTDEFINITION,u["b"].TYPE_SCALEDEFINED,u["b"].PAYLOAD_CLASS_SCALEREFERENCE,a()({},n,{name:"",contextId:p,shape:m,timeType:b,timeGeometry:_,spaceGeometry:v,timeResolutionDescription:null===f?"":f},"undefined"!==typeof o&&{spaceResolution:o},"undefined"!==typeof i&&{spaceUnit:i},"undefined"!==typeof r&&{timeResolutionMultiplier:r},"undefined"!==typeof c&&{timeUnit:c},"undefined"!==typeof s&&{start:s},"undefined"!==typeof l&&{end:l}),t)},SPATIAL_LOCATION:function(e,t){var n=e.wktShape,o=e.contextId,i=void 0===o?null:o;return d(u["b"].CLASS_USERCONTEXTCHANGE,u["b"].TYPE_FEATUREADDED,u["b"].PAYLOAD_CLASS_SPATIALLOCATION,a()({easting:Number.MIN_VALUE,northing:Number.MIN_VALUE,wktShape:n},null!==i&&{contextId:i}),t)},DATAFLOW_NODE_DETAILS:function(e,t){var n=e.nodeId,o=e.contextId;return d(u["b"].CLASS_TASKLIFECYCLE,u["b"].TYPE_DATAFLOWNODEDETAIL,u["b"].PAYLOAD_CLASS_DATAFLOWSTATE,{nodeId:n,monitorable:!1,rating:-1,progress:0,contextId:o},t)},DATAFLOW_NODE_RATING:function(e,t){var n=e.nodeId,o=e.contextId,i=e.rating,r=e.comment,c=void 0===r?null:r;return d(u["b"].CLASS_TASKLIFECYCLE,u["b"].TYPE_DATAFLOWNODERATING,u["b"].PAYLOAD_CLASS_DATAFLOWSTATE,a()({nodeId:n,monitorable:!1,progress:0,rating:i},null!==c&&{comment:c},{contextId:o}),t)},SETTING_CHANGE_REQUEST:function(e,t){var n=e.setting,o=e.value;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_CHANGESETTING,u["b"].PAYLOAD_CLASS_SETTINGCHANGEREQUEST,{setting:n,previousValue:(!o).toString(),newValue:o.toString()},t)},USER_INPUT_RESPONSE:function(e,t){var n=e.messageId,o=e.requestId,a=e.cancelRun,i=void 0!==a&&a,r=e.values,c=void 0===r?{}:r;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_USERINPUTPROVIDED,u["b"].PAYLOAD_CLASS_USERINPUTRESPONSE,{requestId:o,cancelRun:i,values:c},t,n)},WATCH_REQUEST:function(e,t){var n=e.active,o=e.eventType,i=e.observationId,r=e.rootContextId;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_WATCHOBSERVATION,u["b"].PAYLOAD_CLASS_WATCHREQUEST,a()({active:n,observationId:i,rootContextId:r},o&&{eventType:o}),t)},WATCH_ENGINE_EVENT:function(e,t){var n=e.active,o=e.eventType;return d(u["b"].CLASS_NOTIFICATION,u["b"].TYPE_ENGINEEVENT,u["b"].PAYLOAD_CLASS_WATCHREQUEST,{active:n,eventType:o},t)},VIEW_ACTION:function(e,t){var n=e.component,o=e.componentTag,a=void 0===o?null:o,i=e.applicationId,r=void 0===i?null:i,c=e.booleanValue,s=void 0===c?null:c,l=e.doubleValue,E=void 0===l?null:l,f=e.intValue,T=void 0===f?null:f,p=e.stringValue,S=void 0===p?null:p,m=e.listValue,O=void 0===m?[]:m,b=e.dateValue,A=void 0===b?null:b,_=e.data,I=void 0===_?null:_;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_VIEWACTION,u["b"].PAYLOAD_CLASS_VIEWACTION,{component:n,componentTag:a,applicationId:r,booleanValue:s,doubleValue:E,intValue:T,stringValue:S,listValue:O,dateValue:A,data:I},t)},MENU_ACTION:function(e,t){var n=e.identity,o=e.applicationId,a=e.menuId;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_VIEWACTION,u["b"].PAYLOAD_CLASS_MENUACTION,{identity:n,applicationId:o,menuId:a},t)},RUN_APPLICATION:function(e,t){var n=e.applicationId,o=e.test,a=void 0!==o&&o,i=e.stop,r=void 0!==i&&i;return d(u["b"].CLASS_RUN,u["b"].TYPE_RUNAPP,u["b"].PAYLOAD_CLASS_LOADAPPLICATIONREQUEST,{behavior:n,test:a,stop:r,parameters:{}},t)},CONSOLE_CREATED:function(e,t){var n=e.consoleId,o=e.consoleType;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_CONSOLECREATED,u["b"].PAYLOAD_CLASS_CONSOLENOTIFICATION,{consoleId:n,consoleType:o},t)},CONSOLE_CLOSED:function(e,t){var n=e.consoleId,o=e.consoleType;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_CONSOLECLOSED,u["b"].PAYLOAD_CLASS_CONSOLENOTIFICATION,{consoleId:n,consoleType:o},t)},COMMAND_REQUEST:function(e,t){var n=e.consoleId,o=e.consoleType,a=e.commandId,i=e.payload;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_COMMANDREQUEST,u["b"].PAYLOAD_CLASS_CONSOLENOTIFICATION,{consoleId:n,consoleType:o,commandId:a,payload:i},t)}}},"1e5d":function(e,t,n){},2369:function(e,t,n){"use strict";var o=n("278c"),a=n.n(o),i=(n("ffc1"),n("ac6a"),n("cadf"),n("456d"),n("7037")),r=n.n(i),c=n("970b"),s=n.n(c),l=n("5bc30"),u=n.n(l),d=n("be3b"),E=n("3b1b6"),f=n.n(E),T=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{draft:"draft-04"};if(s()(this,e),void 0===t||""===t)throw Error("URL is mandatory");this.djvEnv=new f.a({version:n.draft}),this.initialized=!1,this.url=t,this.initTimeout=null,console.debug("Load schema(s) on creation"),this.initTimeout=setTimeout(this.init(t),2e3)}return u()(e,[{key:"validateJsonSchema",value:function(e,t){if(!this.initialized)return console.info("djvEnv not ready"),!1;if(this.djvEnv.resolve(t)){var n=this.djvEnv.validate(t,e);if("undefined"===typeof n)return!0;if("$ref"===n.keyword)return!0;throw Error(n)}throw Error("Schema not found: ".concat(t))}},{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.url;this.initialized||d["a"].get(t,{}).then(function(n){var o=n.data;if("object"!==r()(o))throw Error("Error asking for JsonSchema(s): no data");if(0===Object.keys(o).length)throw Error("Schema on url ".concat(t," is empty, check it"));for(var i=Object.entries(o),c=0;c-1))&&(a.splice(o,1),this.listeners.set(e,a),!0)}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(ze()(this,e),!t)throw new Error("Connection url is needed");this.connectionUrl=t,this.connectionHeaders=n;var a=o.stompOptions,i=void 0===a?{debug:!1}:a,r=o.sockJSOptions,c=void 0===r?{}:r,s=o.reconnection,l=void 0!==s&&s,u=o.reconnectionAttempts,d=void 0===u?1/0:u,E=o.reconnectionDelay,f=void 0===E?2e3:E,T=o.debug,p=void 0!==T&&T,S=o.store,m=void 0===S?null:S,O=o.storeNS,b=void 0===O?"":O;this.reconnection=l,this.reconnectionAttempts=d,this.reconnectionDelay=f,this.hasDebug=p,this.reconnectTimeoutId=-1,this.reconnectionCount=0,"undefined"!==typeof m&&null!==m&&(this.store=m,this.storeNS=b),this.stompOptions=i,this.sockJSOptions=c,this.connect()}return Ke()(e,[{key:"debug",value:function(){var e;this.hasDebug&&(e=console).debug.apply(e,arguments)}},{key:"connect",value:function(){var e=this,t=Xe()(this.connectionUrl,{},this.sockJSOptions);t.protocol=this.stompOptions.protocol||"",this.StompClient=Je.a.over(t,this.stompOptions),this.StompClient.connect(this.connectionHeaders,function(t){e.doOnEvent("onconnect",t)},function(t){return setTimeout(function(){e.doOnEvent("onerror",t)},1e3)})}},{key:"isConnected",value:function(){return this.StompClient&&this.StompClient.connected}},{key:"reconnect",value:function(){var e=this;this.reconnectionCount<=this.reconnectionAttempts?(this.reconnectionCount+=1,clearTimeout(this.reconnectTimeoutId),this.reconnectTimeoutId=setTimeout(function(){e.doOnEvent("reconnect",e.reconnectionCount),e.connect()},this.reconnectionDelay)):this.store&&this.passToStore("stomp_onerror","Reconnection error")}},{key:"subscribe",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){t.doOnEvent("onmessage",e)};if(e){var a=this.StompClient.subscribe(e,o,n);if(a)return this.doOnEvent("onsubscribe",a),a}return null}},{key:"unsubscribe",value:function(e,t){this.StompClient.unsubscribe(e,t)}},{key:"send",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.isConnected()?(this.StompClient.send(e,JSON.stringify(t),n),this.doOnEvent("onsend",{headers:n,message:t}),!0):(this.doOnEvent("onerrorsend",{headers:n,message:t}),!1)}},{key:"doOnEvent",value:function(e,t){Ze.emit(e,t)||this.debug("No listener for ".concat(e)),this.store&&this.passToStore("stomp_".concat(e),t),this.reconnection&&"onoconnect"===e&&(this.reconnectionCount=0),this.reconnection&&"onerror"===e&&this.reconnect()}},{key:"passToStore",value:function(e,t){if(e.startsWith("stomp_")){var n="dispatch",o=[this.storeNS||"",e.toLowerCase()].filter(function(e){return!!e}).join("/"),a=t||null;t&&t.data&&(a=JSON.parse(t.data),a.mutation?o=[a.namespace||"",a.mutation].filter(function(e){return!!e}).join("/"):a.action&&(n="dispatch",o=[a.namespace||"",a.action].filter(function(e){return!!e}).join("/"))),this.store[n](o,a)}}},{key:"close",value:function(){this.StompClient&&(this.StompClient.disconnect(),this.doOnEvent("onclose")),this.reconnectTimeoutId&&clearTimeout(this.reconnectTimeoutId)}}]),e}(),tt={install:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!t)throw new Error("[vue-stomp-client] cannot locate connection");var a=null;o.connectManually?(e.prototype.$connect=function(){a=new et(t,n,o),e.prototype.$stompClient=a.StompClient},e.prototype.$disconnect=function(){a&&a.reconnection&&(a.reconnection=!1),e.prototype.$stompClient&&(a.close(),delete e.prototype.$stompClient)}):(a=new et(t,n,o),e.prototype.$stompClient=a.StompClient),e.mixin({methods:{sendStompMessage:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.defaultMessageDestination;a.send(n,e,t)?console.debug("Message sent: ".concat(JSON.stringify(e,null,4))):console.debug("Message not sent, still no connected:\n".concat(JSON.stringify(e,null,4)))},subscribe:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.defaultSubscribeDestination;return a.subscribe("".concat(i,"/").concat(e),t,n)},unsubscribe:function(e){a.unsubscribe(e),console.debug("Unsubscribe the subscription with id ".concat(e))},reconnect:function(){a.StompClient&&!a.StompClient.connected&&(console.debug("Try to reconnect..."),a.reconnect())},disconnect:function(){a&&a.reconnection&&(a.reconnection=!1),a.close()}},created:function(){var e=this;if(this.$options.sockets){var t=this,n=this.$options.sockets;this.$options.sockets=new Proxy({},{set:function(e,n,o){return Ze.addListener(n,o,t),e[n]=o,!0},deleteProperty:function(e,n){return Ze.removeListener(n,t.$options.sockets[n],t),delete e.key,!0}}),n&&Object.keys(n).forEach(function(t){e.$options.sockets[t]=n[t]})}},beforeDestroy:function(){var e=this;if(this.$options.sockets){var t=this.$options.sockets;t&&Object.keys(t).forEach(function(t){console.debug("Remove listener ".concat(t)),Ze.removeListener(t,e.$options.sockets[t],e),delete e.$options.sockets[t]})}}})}},nt=function(e){var t=e.Vue,n=e.store,o=new URLSearchParams(window.location.search).get(Ie["R"].PARAMS_STOMP_DEBUG),a=!1;"true"===o&&(a=!0),t.use(tt,"/modeler/message",{},{stompOptions:{debug:a,protocol:"v12.stomp"},store:n,storeNS:"stomp",reconnection:!0,reconnectionAttempts:5,debug:a,defaultMessageDestination:"/klab/message",defaultSubscribeDestination:"/message"})},ot=De(),at=ot.app,it=ot.store,rt=ot.router;[Me["a"],xe["b"],We,Ge["a"],je["a"],nt].forEach(function(e){e({app:at,router:rt,store:it,Vue:o["a"],ssrContext:null})}),new o["a"](at)},4360:function(e,t,n){"use strict";var o,a=n("2b0e"),i=n("2f62"),r=(n("ac6a"),n("cadf"),n("f400"),n("7cca")),c=n("d247"),s={kexplorerLog:[],statusTexts:[],klabLog:[],dataViewers:[],mainDataViewerIdx:0,lastViewerId:0,mainViewer:void 0,treeVisible:!0,leftMenuContent:null,leftMenuState:r["w"].LEFTMENU_HIDDEN,mainControlDocked:!1,contextGeometry:null,spinner:r["J"].SPINNER_STOPPED,spinnerOwners:[],searchActive:!1,searchFocus:!1,searchLostChar:"",searchHistory:[],searchInApp:!1,flowchartSelected:r["g"].GRAPH_DATAFLOW,dataflowInfoOpen:!1,observationInfo:null,mapSelection:r["g"].EMPTY_MAP_SELECTION,exploreMapMode:!1,treeSelected:null,treeTicked:[],treeExpanded:[],topLayer:null,scaleEditing:{active:!1,type:null},drawMode:!1,customContext:!1,saveLocation:!0,saveDockedStatus:!1,modalMode:!1,inputRequests:[],waitingGeolocation:!0,helpShown:!1,modalSize:r["s"].DEFAULT_MODAL_SIZE,fuzzyMode:!1,largeMode:0,helpBaseUrl:null,timeRunning:!1,layout:null,windowSide:"left",dialogs:[],modalWindow:null,engineEvents:[],klabApp:null,levels:[c["a"].TYPE_INFO,c["a"].TYPE_WARNING,c["a"].TYPE_ERROR],showSettings:!0,notificationsParams:null,reloadViews:[],documentationView:r["n"].REPORT,documentationSelected:null,documentationCache:new Map,tableFontSize:12,textFontSize:10,viewCoordinates:!0},l=(n("7514"),n("7f7f"),n("6762"),n("2fdb"),n("448a")),u=n.n(l),d=n("b12a"),E=n("b0b2"),f={kexplorerLog:function(e){return e.kexplorerLog},lastKexplorerLog:function(e){return function(t){return Object(d["o"])(e.kexplorerLog,t)}},klabLog:function(e){return e.klabLog},lastKlabLog:function(e){return function(t){return Object(d["o"])(e.klabLog,t)}},klabLogReversedAndFiltered:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(0===e.klabLog.length)return[];var n=u()(e.klabLog).reverse();return 0===t.length?n:n.filter(function(e){return t.includes(e.type)})}},levels:function(e){return e.levels},statusTexts:function(e){return e.statusTexts},statusTextsLength:function(e){return e.statusTexts.length},statusTextsString:function(e){return e.statusTexts.length>0?e.statusTexts.map(function(e){return e.text}).join(" - "):""},mainViewer:function(e){return e.mainViewer},mainViewerName:function(e){return e.mainViewer?e.mainViewer.name:null},isTreeVisible:function(e){return e.treeVisible},leftMenuContent:function(e){return e.leftMenuContent},leftMenuState:function(e){return e.leftMenuState},isDocked:function(e){return e.leftMenuState!==r["w"].LEFTMENU_HIDDEN},hasMainControl:function(e){return e.mainViewer&&e.mainViewer.mainControl},isMainControlDocked:function(e){return e.mainControlDocked},admitSearch:function(e){return e.mainViewer&&e.mainViewer.hasSearch},contextGeometry:function(e){return e.contextGeometry},dataViewers:function(e){return e.dataViewers},mainDataViewer:function(e){return e.dataViewers.find(function(e){return e.main})},mainDataViewerIdx:function(e){return e.mainDataViewerIdx},lastViewerId:function(e){return e.lastViewerId},viewer:function(e){return function(t){return e.dataViewers.length>0?e.dataViewers.find(function(e){return e.idx===t}):null}},spinnerIsAnimated:function(e){return e.spinner.animated},spinner:function(e){return e.spinner},spinnerOwners:function(e){return e.spinnerOwners},spinnerColor:function(e){return"undefined"!==e.spinner&&null!==e.spinner?Object(E["e"])(e.spinner.color):null},spinnerErrorMessage:function(e){return"undefined"!==e.spinner&&null!==e.spinner?e.spinner.errorMessage:null},searchIsActive:function(e){return e.searchActive},searchIsFocused:function(e){return e.searchFocus},searchLostChar:function(e){return e.searchLostChar},searchHistory:function(e){return e.searchHistory},searchInApp:function(e){return e.searchInApp},flowchartSelected:function(e){return e.flowchartSelected},dataflowInfoOpen:function(e){return e.dataflowInfoOpen},observationInfo:function(e){return e.observationInfo},mapSelection:function(e){return e.mapSelection},hasObservationInfo:function(e){return null!==e.observationInfo},exploreMode:function(e){return!!(null!==e.observationInfo&&Object(d["n"])(e.observationInfo)&&e.observationInfo.dataSummary.histogram.length>0&&e.observationInfo.visible&&e.observationInfo.top)},isScaleEditing:function(e){return e.scaleEditing.active},scaleEditingType:function(e){return e.scaleEditing.type},isDrawMode:function(e){return e.drawMode},hasCustomContext:function(e){return e.customContext},topLayer:function(e){return e.topLayer},topLayerId:function(e){return null!==e.topLayer?e.topLayer.id:null},inputRequests:function(e){return e.inputRequests},hasInputRequests:function(e){return 0!==e.inputRequests.length},isInModalMode:function(e){return e.modalMode},isHelpShown:function(e){return e.helpShown},modalSize:function(e){return e.modalSize},fuzzyMode:function(e){return e.fuzzyMode},largeMode:function(e){return e.largeMode},isTimeRunning:function(e){return e.timeRunning},layout:function(e){return e.layout},appStyle:function(e){return e.layout.style||"default"},modalWindow:function(e){return e.modalWindow},hasHeader:function(e){return e.layout&&(e.layout.header||e.layout.logo||e.layout.label||e.layout.description)},windowSide:function(e){return e.windowSide},isApp:function(e){return null!==e.klabApp},klabApp:function(e){return e.klabApp},activeDialogs:function(e){return e.dialogs.filter(function(e){return!e.dismiss})},engineEvents:function(e){return e.engineEvents},engineEventsCount:function(e){return e.engineEvents.length},hasShowSettings:function(e){return e.showSettings},notificationsParams:function(e){return e.notificationsParams},reloadViews:function(e){return e.reloadViews},documentationView:function(e){return e.documentationView},documentationSelected:function(e){return e.documentationSelected},documentationCache:function(e){return e.documentationCache},tableFontSize:function(e){return e.tableFontSize},textFontSize:function(e){return e.textFontSize},viewCoordinates:function(e){return e.viewCoordinates}},T=(n("f751"),n("3156")),p=n.n(T),S=(n("20d6"),n("741d")),m={ADD_TO_KEXPLORER_LOG:function(e,t){Object(d["p"])(e.kexplorerLog,t)},ADD_TO_KLAB_LOG:function(e,t){Object(d["p"])(e.klabLog,t)},SET_LEVELS:function(e,t){t&&(e.levels=t)},TOGGLE_LEVEL:function(e,t){var n=e.levels.indexOf(t);-1===n?e.levels.push(t):e.levels.splice(n,1)},ADD_TO_STATUS_TEXTS:function(e,t){var n=t.id,o=t.text;e.statusTexts.push({id:n,text:o})},REMOVE_FROM_STATUS_TEXTS:function(e,t){var n=e.statusTexts.findIndex(function(e){return e.id===t});-1!==n&&e.statusTexts.splice(n,1)},SET_CONTEXT_LAYER:function(e,t){e.dataViewers.splice(0,e.dataViewers.length),e.lastViewerId=0,e.contextGeometry=t,e.treeExpanded=[],e.treeTicked=[],e.statusTexts=[],e.treeSelected=null,e.topLayer=null,e.reloadViews.splice(0,e.reloadViews.length),e.documentationSelected=null,e.modalWindow=null},SET_MAIN_VIEWER:function(e,t){e.mainViewer=t},SET_TREE_VISIBLE:function(e,t){e.treeVisible=t},SET_LEFTMENU_CONTENT:function(e,t){e.leftMenuContent=t},SET_LEFTMENU_STATE:function(e,t){e.leftMenuState=t},SET_MAIN_DATA_VIEWER:function(e,t){var n=t.viewerIdx,o=t.visible;if(o)e.dataViewers.forEach(function(t){t.idx===n?(t.main=!0,e.mainDataViewerIdx=n):t.main=!1,t.visible=!t.type.hideable||t.idx===n||t.visible});else{var a=!1;e.dataViewers.forEach(function(t){a||t.type.hideable&&!t.visible?(t.main=!1,t.type.hideable&&t.idx===n&&(t.visible=!1)):(t.main=!0,e.mainDataViewerIdx=t.idx,a=!0)})}},RESET_MAIN_DATA_VIEWER:function(e){e.dataViewer=[],e.mainDataViewerIdx=0},SET_SAVE_DOCKED_STATUS:function(e,t){e.saveDockedStatus=t},SET_MAIN_CONTROL_DOCKED:function(e,t){e.mainControlDocked=t,e.saveDockedStatus&&S["a"].set(r["R"].COOKIE_DOCKED_STATUS,t,{expires:30,path:"/",secure:!0})},ADD_VIEWER_ELEMENT:function(e,t){var n=t.main,o=t.type,a=t.label,i=t.visible,r=t.callback;0===e.lastViewerId?n=!0:!0===n&&e.dataViewers.forEach(function(e){e.main=!1}),e.lastViewerId+=1,e.dataViewers.push({idx:e.lastViewerId,main:n,type:o,label:a,visible:i,observations:[]}),"function"===typeof r&&r(e.lastViewerId)},SET_SPINNER_ANIMATED:function(e,t){e.spinner.animated=t},SET_SPINNER_COLOR:function(e,t){e.spinner.color=t},SET_SPINNER:function(e,t){var n=t.animated,o=t.color,a=t.errorMessage,i=void 0===a?null:a;e.spinner={animated:n,color:o,errorMessage:i}},ADD_TO_SPINNER_OWNERS:function(e,t){var n=e.spinnerOwners.indexOf(t);-1===n&&e.spinnerOwners.push(t)},REMOVE_FROM_SPINNER_OWNERS:function(e,t){var n=e.spinnerOwners.indexOf(t);-1!==n&&e.spinnerOwners.splice(n,1)},SEARCH_ACTIVE:function(e,t){var n=t.active,o=t.char,a=void 0===o?"":o;e.searchActive!==n&&(e.searchLostChar=a,e.searchActive=n)},SEARCH_FOCUS:function(e,t){var n=t.focused,o=t.char,a=void 0===o?"":o;e.searchFocus!==n&&(e.searchLostChar=a,e.searchFocus=n)},SEARCH_INAPP:function(e,t){e.searchInApp=t},RESET_SEARCH_LOST_CHAR:function(e){e.searchLostChar=""},RESET_SEARCH:function(e){e.searchActive=!1,e.searchFocus=!1,e.searchLostChar=""},STORE_SEARCH:function(e,t){e.searchHistory.unshift(t)},SET_FLOWCHART_SELECTED:function(e,t){e.flowchartSelected=t},SET_DATAFLOW_INFO_OPEN:function(e,t){e.dataflowInfoOpen=t},SET_OBSERVATION_INFO:function(e,t){null===t?(e.treeSelected=null,e.mapSelection.locked||(e.mapSelection=r["g"].EMPTY_MAP_SELECTION),e.observationInfo=null):null!==e.observationInfo&&t.id===e.observationInfo.id||(e.observationInfo=t,e.mapSelection.locked||(e.mapSelection=r["g"].EMPTY_MAP_SELECTION),e.treeSelected=t.id)},SET_MAP_SELECTION:function(e,t){var n=t.pixelSelected,o=t.layerSelected,a=t.value,i=void 0===a?null:a,c=t.locked,s=void 0!==c&&c;e.mapSelection=null===t||null===n?r["g"].EMPTY_MAP_SELECTION:{pixelSelected:n,layerSelected:o,value:i,locked:s}},SET_SCALE_EDITING:function(e,t){var n=t.active,o=t.type;e.scaleEditing={active:n,type:o}},SET_DRAW_MODE:function(e,t){e.drawMode=t},SET_CUSTOM_CONTEXT:function(e,t){e.customContext=t},SET_SAVE_LOCATION:function(e,t){e.saveLocation=t},SET_TOP_LAYER:function(e,t){e.topLayer=t},SET_MODAL_MODE:function(e,t){e.modalMode=t},SET_INPUT_REQUEST:function(e,t){var n=t.payload,o=t.id;e.inputRequests.push(p()({messageId:o},n))},REMOVE_INPUT_REQUEST:function(e,t){if(e.inputRequests.length>0)if(null===t)e.inputRequests.splice(0,e.inputRequests.length);else{var n=e.inputRequests.findIndex(function(e){return e.messageId===t});-1!==n&&e.inputRequests.splice(n,1)}},SET_MODAL_SIZE:function(e,t){var n=t.width,o=t.height;e.modalSize={width:n,height:o}},SET_FUZZY_MODE:function(e,t){e.fuzzyMode=t},SET_LARGE_MODE:function(e,t){t<0?t=0:t>6&&(t=r["g"].MAX_SEARCHBAR_INCREMENTS),e.largeMode=t},SET_TIME_RUNNING:function(e,t){e.timeRunning=t},SET_LAYOUT:function(e,t){e.layout=t},SET_MODAL_WINDOW:function(e,t){e.modalWindow=t},SET_WINDOW_SIDE:function(e,t){e.windowSide=t},CREATE_VIEW_COMPONENT:function(e,t){if(t.type!==r["a"].ALERT&&t.type!==r["a"].CONFIRM){var n=e.layout&&(Object(d["d"])(e.layout,t.id)||e.modalWindow&&Object(d["d"])(e.modalWindow,t.id));if(n)console.log("Updating component: ",JSON.stringify(n,null,2)),Object.assign(n,t),console.log("Updated component: ",JSON.stringify(n,null,2));else{var o=Object(d["c"])(e.layout,t.parentId)||e.modalWindow&&Object(d["c"])(e.modalWindow,t.id);o&&(o.children.push(t),console.warn("Update parent: ",o))}}else e.dialogs.push(p()({},t,{dismiss:!1}))},SET_ENGINE_EVENT:function(e,t){if(null!==e.engineEvents)switch(t.type){case r["o"].RESOURCE_VALIDATION:var n=e.engineEvents.findIndex(function(e){return e.id===t.id});t.started?-1===n?e.engineEvents.push({id:t.id,timestamp:t.timestamp}):console.debug("Try to start an existing engine event",t):-1!==n?e.engineEvents.splice(n,1):console.debug("Try to stop an unregistered engine event",t),console.debug("Engine event with id ".concat(t.id," ").concat(t.started?"start":"stop"," / total engine events: ").concat(e.engineEvents.length));break;default:break}else console.debug("Receive an engine event before subscription")},VIEW_ACTION:function(e,t){if(null!==t.component){if(e.layout||e.modalWindow){var n=Object(d["d"])(e.layout,t.component.id)||null!==e.modalWindow&&Object(d["d"])(e.modalWindow,t.component.id);n&&(0===t.component.components.length&&0!==n.components.length&&delete t.component.components,Object.assign(n,t.component))}}else console.warn("Action component is null")},SHOW_SETTINGS:function(e,t){e.showSettings=t},SET_NOTIFICATIONS_PARAMS:function(e,t){e.notificationsParams=t},SET_DOCUMENTATION_VIEW:function(e,t){e.documentationView=t},SET_DOCUMENTATION_SELECTED:function(e,t){e.documentationSelected=t},SET_RELOAD_VIEWS:function(e,t){t&&t.forEach(function(t){-1===e.reloadViews.indexOf(t)&&e.reloadViews.push(t)})},REMOVE_RELOAD_VIEW:function(e,t){-1!==e.reloadViews.indexOf(t)&&e.reloadViews.splice(e.reloadViews.indexOf(t),1)},SET_TABLE_FONT_SIZE:function(e,t){e.tableFontSize=t},SET_TEXT_FONT_SIZE:function(e,t){e.textFontSize=t},SET_VIEW_COORDINATES:function(e,t){e.viewCoordinates=t}},O=n("7037"),b=n.n(O),A=(n("551c"),n("c1df")),_=n.n(A),I=n("4328"),v=n.n(I),N=n("8449"),h=n("256f"),R={addToKexplorerLog:function(e,t){var n=e.commit,o=t.type,a=t.payload,i=t.important,r=void 0!==i&&i;n("ADD_TO_KEXPLORER_LOG",{type:o,payload:a,important:r,time:_()()})},addToKlabLog:function(e,t){var n=e.commit,o=t.type,a=t.id,i=t.payload,r=t.timestamp;n("ADD_TO_KLAB_LOG",{type:o,id:a,payload:i,time:_()(r)})},setLevels:function(e,t){var n=e.commit;n("SET_LEVELS",t)},toggleLevel:function(e,t){var n=e.commit;n("TOGGLE_LEVEL",t)},addToStatusTexts:function(e,t){var n=e.commit,o=t.id,a=t.text;n("ADD_TO_STATUS_TEXTS",{id:o,text:a})},removeFromStatusTexts:function(e,t){var n=e.commit;n("REMOVE_FROM_STATUS_TEXTS",t)},setContextLayer:function(e,t){var n=e.state,o=e.commit,a=e.dispatch;Object(d["j"])(t).then(function(e){o("SET_CONTEXT_LAYER",e),o("RESET_SEARCH"),a("assignViewer",{observation:t,main:!0}),n.mainViewer.name===r["O"].DATA_VIEWER.name&&n.mainControlDocked&&a("setMainViewer",r["O"].DOCKED_DATA_VIEWER)})},resetContext:function(e){var t=e.commit;t("SET_CONTEXT_LAYER",null),t("RESET_SEARCH"),t("SET_OBSERVATION_INFO",null);var n=r["O"].DATA_VIEWER;t("SET_LEFTMENU_CONTENT",n.leftMenuContent),t("SET_LEFTMENU_STATE",n.leftMenuState),t("SET_MAIN_VIEWER",n),t("RESET_MAIN_DATA_VIEWER",null),t("SET_MAP_SELECTION",r["g"].EMPTY_MAP_SELECTION),t("SET_FLOWCHART_SELECTED",r["g"].GRAPH_DATAFLOW)},setMainViewer:function(e,t){var n=e.state,o=e.commit,a=e.dispatch;t&&"undefined"!==typeof n.mainViewer&&(t.leftMenuContent===r["w"].DOCKED_DATA_VIEWER_COMPONENT?o("SET_MAIN_CONTROL_DOCKED",!0):t.leftMenuContent===r["w"].DATA_VIEWER_COMPONENT&&o("SET_MAIN_CONTROL_DOCKED",!1)),o("SET_MAIN_VIEWER",t),t&&(a("setLeftMenuState",t.leftMenuState),a("setLeftMenuContent",t.leftMenuContent))},setTreeVisible:function(e,t){var n=e.commit;n("SET_TREE_VISIBLE",t)},setLeftMenuContent:function(e,t){var n=e.commit;n("SET_LEFTMENU_CONTENT",t)},setLeftMenuState:function(e,t){var n=e.commit;n("SET_LEFTMENU_STATE",t)},setMainDataViewer:function(e,t){var n=e.commit,o=e.getters,a=t.viewerIdx,i=t.viewerType,r=void 0===i?null:i,c=t.visible,s=void 0===c||c;(s&&a!==o.mainDataViewerIdx||!s&&null!==r&&r.hideable)&&n("SET_MAIN_DATA_VIEWER",{viewerIdx:a,visible:s})},assignViewer:function(e,t){var n=e.commit,o=e.getters,a=e.dispatch,i=e.rootGetters,c=t.observation,s=t.main,l=void 0!==s&&s;return new Promise(function(e,t){var s,u=null,E=null;if(c.observationType)switch(c.observationType){case r["A"].TYPE_GROUP:case r["A"].TYPE_VIEW:case r["A"].TYPE_PROCESS:u=null;break;case r["A"].TYPE_STATE:var f;if(1===c.valueCount)u=null;else if(u=r["P"].VIEW_MAP,f=c.parentId===i["data/contextId"]?i["data/context"]:i["data/observations"].find(function(e){return e.id===c.parentId}),"undefined"!==typeof f){c.encodedShape=f.encodedShape;var T=f;E=T.label}else console.warn("Need parent of ".concat(c.id," but doesn't find it. Parent id is ").concat(c.parentId));break;case r["A"].TYPE_INITIAL:case r["A"].TYPE_RELATIONSHIP:u=r["P"].VIEW_MAP;var p=null;if(null!==c.parentId&&(p=Object(d["f"])(i["data/tree"],c.parentId),"undefined"===typeof p&&(console.warn("Observation with id ".concat(c.id," has an invalid unknown parent: ").concat(c.parentId)),p=null)),p){var S=p;E=S.label}else E=c.label;break;case r["A"].TYPE_SUBJECT:u=r["P"].VIEW_MAP;break;case r["A"].TYPE_CONFIGURATION:u=r["P"].VIEW_GRAPH,E=c.label;break;case r["A"].TYPE_EVENT:u=r["P"].VIEW_UNKNOWN;break;default:t(new Error("Unknown observation type in observation labeled ".concat(c.label,": ").concat(c.observationType)));break}null!==u?(console.debug("Need a viewer of type ".concat(u.component)),u.forceNew||(s=o.dataViewers.find(function(e){return e.type.component===u.component})),"undefined"===typeof s?(console.info("Create new viewer of type ".concat(u.component)),n("ADD_VIEWER_ELEMENT",{main:l,type:u,label:E&&null!==E?E:u.label,visible:!u.hideable,callback:function(t){e(t)}})):(l&&a("setMainDataViewer",{viewerIdx:s.idx}),e(s.idx))):e(null)})},setSpinner:function(e,t){var n=e.commit,o=e.getters,a=e.dispatch,i=t.animated,c=t.color,s=t.time,l=void 0===s?null:s,u=t.then,d=void 0===u?null:u,E=t.errorMessage,f=void 0===E?null:E,T=t.owner;return new Promise(function(e){if(!T||null===T)throw new Error("No spinner owner!");i?n("ADD_TO_SPINNER_OWNERS",T):(n("REMOVE_FROM_SPINNER_OWNERS",T),0!==o.spinnerOwners.length&&(i=!0,c!==r["J"].SPINNER_ERROR.color&&(c=r["J"].SPINNER_LOADING.color))),null!==f&&"object"===b()(f)&&(f=JSON.stringify(f)),n("SET_SPINNER",{animated:i,color:c,errorMessage:f}),null!==l&&null!==d&&setTimeout(function(){a("setSpinner",p()({},d,{owner:T}))},1e3*l),e()})},searchStart:function(e){var t=e.commit,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t("SEARCH_ACTIVE",{active:!0,char:n})},searchStop:function(e){var t=e.commit;t("SEARCH_ACTIVE",{active:!1})},searchFocus:function(e,t){var n=e.commit,o=t.focused,a=t.char,i=void 0===a?null:a;n("SEARCH_FOCUS",{focused:o,char:i})},resetSearchLostChar:function(e){var t=e.commit;t("RESET_SEARCH_LOST_CHAR")},storePreviousSearch:function(e,t){var n=e.commit;n("STORE_SEARCH",t)},searchInApp:function(e,t){var n=e.commit;n("SEARCH_INAPP",t)},setFlowchartSelected:function(e,t){var n=e.commit;n("SET_FLOWCHART_SELECTED",t)},setDataflowInfoOpen:function(e,t){var n=e.commit;n("SET_DATAFLOW_INFO_OPEN",t)},setObservationInfo:function(e,t){var n=e.commit;n("SET_OBSERVATION_INFO",t)},setMapSelection:function(e,t){var n=e.commit,o=e.state,a=t.pixelSelected,i=t.timestamp,s=void 0===i?-1:i,l=t.layerSelected,u=void 0===l?null:l,E=t.observationId,f=void 0===E?null:E,T=t.locked,p=void 0!==T&&T;if(null!==a){null===f&&(f=o.observationInfo.id);var S="".concat("").concat(c["c"].REST_SESSION_VIEW,"data/").concat(f),m=Object(h["l"])(a,"EPSG:3857","EPSG:4326"),O=-1!==s?"T1(1){time=".concat(s.toFixed(0),"}"):"";Object(d["h"])("pv_".concat(f),S,{params:{format:"SCALAR",locator:"".concat(O,"S0(1){latlon=[").concat(m[0]," ").concat(m[1],"]}")},paramsSerializer:function(e){return v.a.stringify(e,{arrayFormat:"repeat"})}},function(e,t){var o="No value";e&&"undefined"!==typeof e.data&&(o=e.data),n("SET_MAP_SELECTION",{pixelSelected:a,layerSelected:u,value:o,locked:p}),t()})}else n("SET_MAP_SELECTION",r["g"].EMPTY_MAP_SELECTION)},setScaleEditing:function(e,t){var n=e.commit,o=t.active,a=t.type;n("SET_SCALE_EDITING",{active:o,type:a}),n("SET_MODAL_MODE",o)},setDrawMode:function(e,t){var n=e.commit;n("SET_DRAW_MODE",t),n("SET_MODAL_MODE",t)},setCustomContext:function(e,t){var n=e.commit;n("SET_CUSTOM_CONTEXT",t)},setTopLayer:function(e,t){var n=e.commit;n("SET_TOP_LAYER",t)},inputRequest:function(e,t){var n=e.commit;n("SET_INPUT_REQUEST",t),n("SET_MODAL_MODE",!0)},removeInputRequest:function(e,t){var n=e.commit,o=e.getters;n("REMOVE_INPUT_REQUEST",t),o.hasInputRequests||n("SET_MODAL_MODE",!1)},setModalMode:function(e,t){var n=e.commit;n("SET_MODAL_MODE",t)},setModalSize:function(e,t){var n=e.commit,o=t.width,a=t.height;n("SET_MODAL_SIZE",{width:o,height:a})},setFuzzyMode:function(e,t){var n=e.rootGetters,o=e.commit;n["data/hasContext"]||o("SET_FUZZY_MODE",t)},setLargeMode:function(e,t){var n=e.commit;n("SET_LARGE_MODE",t)},setTimeRunning:function(e,t){var n=e.commit;n("SET_TIME_RUNNING",t)},setLayout:function(e,t){var n=e.commit;if(null===t||"DESKTOP"!==t.platform&&"MOBILE"!==t.platform)if(n("SET_LAYOUT",null===t?null:p()({},t)),null!==t)localStorage.setItem(r["R"].LOCAL_STORAGE_APP_ID,t.name);else{var o=localStorage.getItem(r["R"].LOCAL_STORAGE_APP_ID);o&&localStorage.removeItem(r["R"].LOCAL_STORAGE_APP_ID)}else console.info("Received an app for another platform: ".concat(t.platform))},setModalWindow:function(e,t){var n=e.commit;n("SET_MODAL_WINDOW",t)},setWindowSide:function(e,t){var n=e.commit;n("SET_WINDOW_SIDE",t)},setEngineEvent:function(e,t){var n=e.commit;n("SET_ENGINE_EVENT",t)},createViewComponent:function(e,t){var n=e.commit;n("CREATE_VIEW_COMPONENT",t)},viewAction:function(e,t){var n=e.commit;n("VIEW_ACTION",t)},viewSetting:function(e,t){var n=e.getters,o=e.rootGetters,a=e.dispatch;if(t){var i=function(){N["b"].$emit(r["h"].SELECT_ELEMENT,{id:t.targetId,selected:t.operation===r["Q"].SHOW})};switch(t.target){case r["Q"].OBSERVATION:n.mainViewerName!==r["O"].DATA_VIEWER.name&&t.operation===r["Q"].SHOW?a("setMainViewer",r["O"].DATA_VIEWER).then(function(){i(),N["b"].$emit(r["h"].MAP_SIZE_CHANGED,{type:"changelayout"})}):i();break;case r["Q"].VIEW:i();break;case r["Q"].TREE:n.mainViewerName===r["O"].DATA_VIEWER.name&&o["data/hasContext"]&&a("setTreeVisible",t.operation===r["Q"].SHOW);break;case r["Q"].REPORT:n.mainViewerName===r["O"].REPORT_VIEWER.name&&t.operation===r["Q"].HIDE?a("setMainViewer",n.isMainControlDocked?r["O"].DOCKED_DATA_VIEWER:r["O"].DATA_VIEWER):n.mainViewerName!==r["O"].REPORT_VIEWER.name&&o["data/hasObservations"]&&t.operation===r["Q"].SHOW&&a("setMainViewer",r["O"].REPORT_VIEWER);break;case r["Q"].DATAFLOW:n.mainViewerName===r["O"].DATAFLOW_VIEWER.name&&t.operation===r["Q"].HIDE?a("setMainViewer",n.isMainControlDocked?r["O"].DOCKED_DATA_VIEWER:r["O"].DATA_VIEWER):n.mainViewerName!==r["O"].DATAFLOW_VIEWER.name&&o["data/hasContext"]&&t.operation===r["Q"].SHOW&&a("setMainViewer",r["O"].DATAFLOW_VIEWER);break;case r["Q"].URL:N["b"].$emit(r["h"].DOWNLOAD_URL,{url:t.targetId,parameters:t.parameters});break;default:break}}},setShowSettings:function(e,t){var n=e.commit;n("SHOW_SETTINGS",t)},setNotificationsParams:function(e,t){var n=e.commit;n("SET_NOTIFICATIONS_PARAMS",t)},setDocumentationView:function(e,t){var n=e.commit;n("SET_DOCUMENTATION_VIEW",t)},setDocumentationSelected:function(e,t){var n=e.commit;n("SET_DOCUMENTATION_SELECTED",t)},setDocumentation:function(e,t){var n=e.commit,o=e.rootGetters;if(!t.view){var a=o["data/documentationContent"].get(t.id);if(!a)return void console.debug("Try to show an unknown document: ".concat(t.id));t.view=r["m"][a.type]}n("SET_DOCUMENTATION_VIEW",t.view),n("SET_DOCUMENTATION_SELECTED",t.id),N["b"].$emit(r["h"].SHOW_DOCUMENTATION),N["b"].$emit(r["h"].SELECT_ELEMENT,{id:t.id,selected:!0})},changeInDocumentation:function(e,t){var n=e.commit;if(t.viewsAffected){var o=t.viewsAffected.filter(function(e){return e!==r["n"].REFERENCES&&e!==r["n"].MODELS});if(o.length>1&&o.includes(r["n"].TABLES)){var a=o.indexOf(r["n"].REPORT);-1!==a&&o.splice(a,1)}o.length>0&&n("SET_RELOAD_VIEWS",o)}},removeReloadView:function(e,t){var n=e.commit;n("REMOVE_RELOAD_VIEW",t)},setTableFontSize:function(e,t){var n=e.commit;n("SET_TABLE_FONT_SIZE",t)},setTextFontSize:function(e,t){var n=e.commit;n("SET_TABLE_FONT_SIZE",t)},setViewCoordinates:function(e,t){var n=e.commit;n("SET_VIEW_COORDINATES",t)}},C={namespaced:!0,state:s,getters:f,mutations:m,actions:R},g=(n("456d"),n("970b")),L=n.n(g),w=n("5bc30"),P=n.n(w),y=function(){function e(){L()(this,e),this.items=[]}return P()(e,[{key:"push",value:function(e){this.items.push(e)}},{key:"pop",value:function(e){if("undefined"!==typeof e&&e>0){if(e>this.size()-1)throw Error("Stack overflow");return this.items.splice(e+1),this.items.peek()}return this.items.pop()}},{key:"peek",value:function(){return 0===this.items.length?null:this.items[this.items.length-1]}},{key:"previous",value:function(){return this.items.length<=1?null:this.items[this.items.length-2]}},{key:"size",value:function(){return this.items.length}},{key:"findIndex",value:function(e){return this.items.findIndex(e)}},{key:"findItem",value:function(e){return this.items.find(function(t){return t.id===e})}},{key:"map",value:function(e){return this.items.map(e)}},{key:"empty",value:function(){this.items.splice(0)}},{key:"isEmpty",value:function(){return 0===this.items.length}},{key:"toArray",value:function(){return this.items}}]),e}(),D={sessionReference:null,tree:[],userTree:[],lasts:[],contexts:new y,contextCustomLabel:null,scaleReference:null,schedulingResolution:null,proposedContext:null,scaleLocked:{space:!1,time:!1},nextScale:null,observations:[],contextMenuObservationId:null,knowledgeViews:[],timeEvents:[],modificationsTask:null,timestamp:-1,engineTimestamp:-1,flowcharts:r["t"],dataflowStatuses:[],dataflowInfo:null,session:null,contextsHistory:[],waitingForReset:null,orphans:[],searchResult:null,childrenToAskFor:r["g"].CHILDREN_TO_ASK_FOR,interactiveMode:!1,crossingIDL:!1,capabilities:{},local:!1,token:null,packageVersion:"0.22.0",packageBuild:"0",terminalsCounter:0,terminals:[],terminalCommands:null!==localStorage.getItem(r["R"].LOCAL_STORAGE_TERMINAL_COMMANDS)?JSON.parse(localStorage.getItem(r["R"].LOCAL_STORAGE_TERMINAL_COMMANDS)):[],documentationTrees:Object.keys(r["n"]).map(function(e){return{view:e,tree:[]}}),documentationContent:new Map},M=(n("55dd"),{sessionReference:function(e){return e.sessionReference},isDeveloper:function(e){return e.sessionReference&&e.sessionReference.owner&&e.sessionReference.owner.groups&&-1!==e.sessionReference.owner.groups.findIndex(function(e){return"DEVELOPERS"===e.id})},tree:function(e){return e.tree},treeNode:function(e){return function(t){return Object(d["f"])(e.tree,t)}},lasts:function(e){return e.lasts},hasTree:function(e){return e.tree.length>0},mainTreeHasNodes:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return null!==Object(d["e"])(e.tree,"",function(e){return e.userNode||t&&!e.ticked?null:e})}},userTree:function(e){return e.userTree},observations:function(e){return e.observations},observationsOfViewer:function(e){return function(t){return e.observations.filter(function(e){return e.viewerIdx===t})}},hasObservations:function(e){return 0!==e.observations.length},visibleObservations:function(e){return e.observations.filter(function(e){return e.visible})},observationsIdOnTop:function(e){return e.observations.filter(function(e){return e.top}).map(function(e){return e.id})},contextMenuObservationId:function(e){return e.contextMenuObservationId},knowledgeViews:function(e){return e.knowledgeViews},visibleKnowledgeView:function(e){return e.knowledgeViews.find(function(e){return e.show})},timeEvents:function(e){return e.timeEvents},timeEventsOfObservation:function(e){return function(t){return e.timeEvents.filter(function(e){return e.id===t})}},timeEventsUntil:function(e){return function(t){return e.timeEventsEvents.filter(function(e){return e.timestamp<=t})}},modificationsTask:function(e){return e.modificationsTask},visibleEvents:function(e){var t=e.observations.filter(function(e){return e.visible}).map(function(e){return e.id});return e.timeEvents.filter(function(e){return t.includes(e.id)})},timestamp:function(e){return e.timestamp},engineTimestamp:function(e){return e.engineTimestamp},flowcharts:function(e){return e.flowcharts},flowchart:function(e){return function(t){return e.flowcharts.find(function(e){return e.type===t})}},flowchartsUpdatable:function(e){return e.flowcharts.find(function(e){return e.updatable})},flowchartUpdatable:function(e){return function(t){var n=e.flowcharts.find(function(e){return e.type===t});return!!n&&n.updatable}},dataflowStatuses:function(e){return e.dataflowStatuses},dataflowInfo:function(e){return e.dataflowInfo},contextsId:function(e){return e.contexts.map(function(e){return e.id})},context:function(e){return e.contexts.peek()},contextsCount:function(e){return e.contexts.size()},previousContext:function(e){return e.contexts.previous()},contextById:function(e){return function(t){return e.contexts.findItem(t)}},proposedContext:function(e){return e.proposedContext},hasContext:function(e,t){return null!==t.context},contextLabel:function(e,t){return null!==t.context?t.context.label:null},contextCustomLabel:function(e){return null!==e.contextCustomLabel?e.contextCustomLabel:null},contextsLabels:function(e,t){return null!==t.context?e.contexts.map(function(e){return{label:e.label,contextId:e.id}}):[]},contextId:function(e,t){return null!==t.context?t.context.id:null},contextEncodedShape:function(e,t){return null!==t.context?"".concat(t.context.spatialProjection," ").concat(t.context.encodedShape):""},contextsHistory:function(e){return e.contextsHistory.length>0&&e.contextsHistory.sort(function(e,t){return e.creationTime===t.creationTime?0:e.creationTime>t.creationTime?-1:1}),e.contextsHistory},contextReloaded:function(e,t){return null!==t.context&&"undefined"!==typeof t.context.restored&&t.context.restored},contextHasTime:function(e,t){return null!==t.context&&t.context.scaleReference&&0!==t.context.scaleReference.end},session:function(e){return e.session},scaleReference:function(e,t){return null!==t.context?t.context.scaleReference:e.scaleReference},schedulingResolution:function(e){return e.schedulingResolution},isScaleLocked:function(e){return e.scaleLocked},nextScale:function(e){return e.nextScale},hasNextScale:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null!==e.nextScale&&(null===t||t===r["D"].ST_SPACE&&e.nextScale.spaceChanged||t===r["D"].ST_SPACE&&e.nextScale.spaceChanged)}},capabilities:function(e){return e.capabilities},searchResult:function(e){return e.searchResult},interactiveMode:function(e){return e.interactiveMode},isCrossingIDL:function(e){return e.crossingIDL},isLocal:function(e){return e.local},terminals:function(e){return e.terminals},hasActiveTerminal:function(e){return-1!==e.terminals.findIndex(function(e){return e.active})},terminalCommands:function(e){return e.terminalCommands},documentationTrees:function(e){return e.documentationTrees},documentationContent:function(e){return e.documentationContent}}),x=n("9523"),k=n.n(x),U=n("1442"),V={SET_SESSION_REFERENCE:function(e,t){e.sessionReference=t},SET_CONTEXT:function(e,t){var n=t.context,o=void 0===n?null:n,a=t.isRecontext,i=void 0!==a&&a;if(null===o)e.contexts.empty();else{var c=e.contexts.findIndex(function(e){return e.id===o.id});if(-1===c){if(i){var s=e.contexts.peek();o.scaleReference=s.scaleReference}e.contexts.push(o)}else e.contexts.pop(c)}e.tree=[],e.userTree=[],e.lasts=[],e.observations=[],e.knowledgeViews=[],e.flowcharts.forEach(function(e){e.flowchart=null,e.graph=null,e.updatable=!1,e.visible=!1}),e.dataflowStatuses=[],e.dataflowInfo=null,e.nodeSelected=null,e.nextScale=null,e.crossingIDL=!1,e.contextCustomLabel=null,e.timeEvents=[],e.timestamp=-1,e.engineTimestamp=-1,e.proposedContext=null,e.documentationTrees.forEach(function(e){e.tree.splice(0,e.tree.length)}),e.documentationContent.clear(),e.documentationView=r["n"].REPORT,null===o?e.contextsHistory=[]:"undefined"===typeof o.restored&&(o.restored=!1),e.schedulingResolution=null},SET_CONTEXT_CUSTOM_LABEL:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e.contextCustomLabel=t},WAITING_FOR_RESET:function(e,t){e.waitingForReset=t},STORE_CONTEXT:function(e,t){var n=e.contextsHistory.find(function(e){return e.id===t.id});"undefined"===typeof n?(console.debug("Added new context in store with id ".concat(t.id)),e.contextsHistory.push(t)):console.debug("Context with id ".concat(t.id," yet exists in contextHistory"))},SET_RELOAD_FLOWCHART:function(e,t){e.flowcharts.filter(function(e){return null===t||e.target===t}).forEach(function(e){e.updatable=!0,e.visible=!1})},ADD_FLOWCHART:function(e,t){var n=t.flowchart,o=t.target,a=e.flowcharts.find(function(e){return e.type===o});a?(a.flowchart=n,a.updatable=!1):console.warn("Unknown target to add flowchart: ".concat(o))},SET_DATAFLOW_STATUS:function(e,t){var n=t.id,o=t.status,a=e.dataflowStatuses.find(function(e){return e.id===n});"undefined"!==typeof a?a.status=o:e.dataflowStatuses.push({id:n,status:o})},SET_DATAFLOW_INFO:function(e,t){e.dataflowInfo=t},UPDATE_TIME_EVENTS:function(e,t){t.timeEvents&&t.timeEvents.length>0&&(t.timeEvents.forEach(function(n){e.timeEvents.push({id:t.id,timestamp:n})}),console.debug("Added ".concat(t.timeEvents.length," events")))},ADD_OBSERVATION:function(e,t){var n=t.observation;e.observations.push(n),console.info("Added observation: ".concat(n.label)),console.debug("Observation content: ".concat(JSON.stringify(n,null,2)))},UPDATE_OBSERVATION:function(e,t){var n=t.observationIndex,o=t.newObservation,a=e.observations[n],i=p()({},a,o);e.observations.splice(n,1,i);var r=function(e){e?(e.needUpdate=!i.contextualized,e.dynamic=i.dynamic,e.childrenCount=i.childrenCount,e.children.forEach(function(e){e.siblingsCount=i.childrenCount}),e.tickable=null!==i.viewerIdx&&!i.empty||i.isContainer||i.childrenCount>0,e.exportFormats=i.exportFormats):console.warn("Node of ".concat(i.id," - ").concat(i.label," not found"))},c=Object(d["f"])(e.tree,i.id);r(c),c&&c.userNode&&r(Object(d["f"])(e.userTree,i.id))},SET_CONTEXTMENU_OBSERVATIONID:function(e,t){e.contextMenuObservationId=t},MOD_BRING_FORWARD:function(e,t){var n=e.observations.find(function(e){return e.id===t.id});n||console.warn("Receive a bring forward for an unknown observation: ".concat(t.id," - ").concat(t.label)),n.main=!0,t.main=!0},MOD_STRUCTURE_CHANGE:function(e,t){var n=t.node,o=t.modificationEvent,a=e.observations.find(function(e){return e.id===o.id});a.childrenCount=o.newSize,a.empty=!1,o.exportFormats&&(a.exportFormats=o.exportFormats);var i=function(e){e&&(e.childrenCount=o.newSize,o.exportFormats&&(e.exportFormats=o.exportFormats),e.children.forEach(function(e){e.siblingsCount=o.newSize}),e.tickable=!0,e.disabled=!1,e.empty=!1,e.needUpdate=!0)};i(n),n.userNode&&i(Object(d["f"])(e.userTree,n.id))},MOD_VALUE_CHANGE:function(e,t){if(t.dynamic=!0,t.needUpdate=!1,t.userNode){var n=Object(d["f"])(e.userTree,t.id);n?(n.dynamic=!0,n.needUpdate=!1):console.warn("Node theoretically in user tree but not found: ".concat(t.id," - ").concat(t.label))}},ADD_KNOWLEDGE_VIEW:function(e,t){e.knowledgeViews.push(p()({},t,{show:!1}))},SHOW_KNOWLEDGE_VIEW:function(e,t){e.knowledgeViews.forEach(function(e){e.viewId===t&&(e.show=!0)})},ADD_TIME_EVENT:function(e,t){var n=-1!==e.timeEvents.findIndex(function(e){return e.id===t.id&&e.timestamp===t.timestamp&&e.newAttributes===t.newAttributes&&e.newScale===t.newScale&&e.newName===t.newName&&e.newSemantics===t.newSemantics&&e.newSize===t.newSize});n?console.warn("Duplicated time event:\n ".concat(JSON.stringify(t,null,2))):e.timeEvents.push(t)},SET_MODIFICATIONS_TASK:function(e,t){e.modificationsTask=t},SET_TIMESTAMP:function(e,t){e.timestamp=t},SET_ENGINE_TIMESTAMP:function(e,t){e.engineTimestamp=t},SET_SCHEDULING_STATUS:function(e,t){if(null!==e.scaleReference)switch(t.type){case"TIME_ADVANCED":e.engineTimestamp=t.currentTime;break;case"STARTED":e.engineTimestamp=t.currentTime,e.schedulingResolution=t.resolution,N["b"].$emit(r["h"].NEW_SCHEDULING);break;case"FINISHED":e.engineTimestamp=e.scaleReference.end;break;default:console.warn("Unknown scheduling type: ".concat(t.type));break}else console.warn("Try to change scheduling type but no scaleReference")},ADD_NODE:function(e,t){var n=t.node,o=t.parentId,a=t.toUserTreeOnly,i=void 0!==a&&a,r=e.contexts.peek();if(null===r)return console.info("Context is null, it's just set or is a new observation of previous search for this session, so added to orphans. ID: ".concat(n.id)),void e.orphans.push(n);var c=r.id===r.rootContextId;if((c&&n.rootContextId!==r.id||!c&&n.contextId!==r.id)&&console.info("Subcontext or trying to add to tree an observation of other context. Actual: ".concat(r.id," / Node: ").concat(n.rootContextId)),r.id!==n.id)if(r.id===o){if(i||e.tree.push(n),n.userNode){var s=JSON.parse(JSON.stringify(n));e.userTree.push(s)}}else{var l=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,i=Object(d["f"])(t,o);null!==i?(i.children.length===i.childrenCount&&(i.childrenCount++,i.children.forEach(function(e){e.siblingsCount=i.childrenCount})),i.children.push(p()({},a,{idx:i.children.length,siblingsCount:i.childrenCount})),i.disabled=!1):(console.warn("Orphan founded with id ".concat(n.id)),e.orphans.push(n))};i||l(e.tree),n.userNode&&l(e.userTree,JSON.parse(JSON.stringify(n)))}else console.error("Try to add context to tree, check it!")},REMOVE_NODE:function(e,t){var n=t.id,o=t.fromMainTree,a=void 0!==o&&o,i=a?e.tree:e.userTree,r=function e(t,n){var o=t.findIndex(function(e){return e.id===n});-1===o?t.forEach(function(t){t.children&&0!==t.children.length&&e(t.children,n)}):(t.splice(o,1),console.debug("Find and delete node ".concat(n," from ").concat(a?"main tree":"user tree")))};r(i,n)},UPDATE_USER_NODE:function(e,t){var n=t.node,o=t.userNode,a=function e(t){t.userNode=o,t.children&&t.children.length>0&&t.children.forEach(function(t){return e(t)})};a(n)},SET_FOLDER_VISIBLE:function(e,t){var n=t.nodeId,o=t.visible,a=t.zIndexOffset;if(null!==a){e.observations.forEach(function(e){e.parentArtifactId===n||e.parentId===n?(e.visible=o,e.top=o):o&&e.zIndexOffset===a&&(e.top=!1)});var i=e.observations.find(function(e){return e.id===n});"undefined"!==typeof i&&(i.visible=o)}else console.info("Folder with id ".concat(n," has no loaded elements"));var r=function(e){var t=Object(d["f"])(e,n);"undefined"!==typeof t&&null!==t&&t.children.length>0&&(t.children.forEach(function(e){e.parentArtifactId===t.id&&(e.ticked=o)}),t.ticked=o)};r(e.tree),r(e.userTree)},SET_VISIBLE:function(e,t){var n=t.id,o=t.visible,a=e.observations.findIndex(function(e){return e.id===n}),i=e.observations[a];if("undefined"!==typeof i){var r=i.zIndexOffset;i.visible=o,i.top=o,o&&e.observations.forEach(function(e){e.id!==n&&e.zIndexOffset===r&&(e.top=!1)});var c=function(e){var t=Object(d["f"])(e,n);t&&(t.ticked=o)};c(e.tree),c(e.userTree),e.observations.splice(a,1,i)}else console.warn("Try to change visibility to no existing observations with id ".concat(n))},SET_LOADING_LAYERS:function(e,t){var n=t.loading,o=t.observation;if(o){o.loading=n;var a=Object(d["f"])(e.tree,o.id);if(a&&(a.loading=n,a.userNode)){var i=Object(d["f"])(e.userTree,o.id);i.loading=n}}},STORE_RAW_SEARCH_RESULT:function(e,t){e.searchResult=t},ADD_LAST:function(e,t){var n=t.parentId,o=t.observationId,a=t.offsetToAdd,i=t.total,r=e.lasts.findIndex(function(e){return n===e.parentId});if(-1!==r){var c=e.lasts[r];c.offset+a>=c.total?(e.lasts.splice(r,1),console.info("Folder ".concat(n," fully loaded"))):(c.observationId=o,c.offset+=a,console.info("Loaded more elements in folder ".concat(n,". New offset is ").concat(c.offset," ")))}else{if(a+1===i)return void console.info("Nothing to do in folder ".concat(n,". Offset is ").concat(a," and total is ").concat(i," "));e.lasts.push({parentId:n,observationId:o,offset:a,total:i}),console.debug("Added folder ".concat(n,". Offset is ").concat(a," "))}},SET_SCALE_REFERENCE:function(e,t){null===t.timeUnit&&(t.timeUnit=r["F"].YEAR),e.scaleReference=t,e.context||(null!==e.scaleReference.shape?e.proposedContext=d["a"].readGeometry(e.scaleReference.shape,{dataProjection:U["d"].PROJ_EPSG_4326,featureProjection:U["d"].PROJ_EPSG_3857}):e.proposedContext=null),console.info("Scale reference set: ".concat(JSON.stringify(t,null,2)))},UPDATE_SCALE_REFERENCE:function(e,t){var n,o=t.type,a=t.unit,i=t.timeResolutionMultiplier,c=t.start,s=t.end,l=t.next,u=void 0!==l&&l,d=t.spaceResolution;o===r["D"].ST_SPACE&&0!==d&&Math.round(d)!==d&&(d=d.toFixed(1));var E=p()({},e.scaleReference,(n={},k()(n,"".concat(o,"Unit"),a),k()(n,"".concat(o,"ResolutionDescription"),(d&&0!==d?"".concat(d," "):"")+a),n),o===r["D"].ST_SPACE&&{spaceResolution:d,spaceResolutionConverted:d},o===r["D"].ST_TIME&&{timeResolutionMultiplier:i,start:c,end:s});u?e.nextScale=p()({},E,{spaceChanged:o===r["D"].ST_SPACE,timeChanged:o===r["D"].ST_TIME}):e.scaleReference=E},SET_SCALE_LOCKED:function(e,t){var n=t.scaleType,o=t.scaleLocked;"all"===n?(e.scaleLocked.space=o,e.scaleLocked.time=o):Object.prototype.hasOwnProperty.call(e.scaleLocked,n)?(console.info("Set ".concat(o," to ").concat(n," scale type")),e.scaleLocked[n]=o):console.error("Try to set locked to unknow scale type: ".concat(n))},SET_INTERACTIVE_MODE:function(e,t){e.interactiveMode=t},SET_CROSSING_IDL:function(e,t){e.crossingIDL=t},ADD_TERMINAL:function(e,t){e.terminals.push(t)},REMOVE_TERMINAL:function(e,t){var n=e.terminals.findIndex(function(e){return e.id===t});-1!==n?e.terminals.splice(n,1):console.warn("Trying to remove unknown terminal ".concat(t))},ADD_TERMINAL_COMMAND:function(e,t){e.terminalCommands.push(t),localStorage.setItem(r["R"].LOCAL_STORAGE_TERMINAL_COMMANDS,JSON.stringify(e.terminalCommands))},CLEAR_TERMINAL_COMMANDS:function(e){e.terminalCommands.splice(0,e.terminalCommands.length),localStorage.setItem(r["R"].LOCAL_STORAGE_TERMINAL_COMMANDS,JSON.stringify(e.terminalCommands))},SET_DOCUMENTATION:function(e,t){var n=t.view,o=t.tree,a=e.documentationTrees.findIndex(function(e){return e.view===n});-1===a?console.warn("Unknown documentation view: ".concat(n)):e.documentationTrees[a].tree=o},ADD_DOCUMENTATION:function(e,t){t.forEach(function(t){e.documentationContent.set(t.id,t)})}},F=(n("28a5"),n("f559"),n("ffc1"),n("96cf"),n("c973")),Y=n.n(F),W=n("be3b"),G=n("17dc"),j=n("e7d8"),H=void 0,z={loadSessionReference:function(e){var t=e.commit;return new Promise(function(e,n){W["a"].get("".concat("").concat(c["c"].REST_SESSION_INFO),{maxRedirects:0}).then(function(n){var o=n.data;o&&(t("SET_SESSION_REFERENCE",o),e())}).catch(function(e){e.response&&403===e.response.status?n(new Error("Invalid session")):n(new Error("Error retrieving session: ".concat(e)))})})},setContext:function(e,t){var n=t.context,o=t.isRecontext,a=e.commit,i=e.getters,r=e.dispatch;null!==i.context&&i.context.id===n.id||(a("SET_CONTEXT",{context:n,isRecontext:o}),o&&r("view/resetContext",null,{root:!0}),r("view/setContextLayer",n,{root:!0}),console.debug("Send start watch context ".concat(n.id)),Object(d["q"])(G["a"].WATCH_REQUEST,{active:!0,observationId:n.id,rootContextId:n.rootContextId}))},resetContext:function(e){var t=e.commit,n=e.dispatch,o=e.state,a=e.getters,i=a.context;if(null!==i){var s={id:i.id,rootContextId:i.rootContextId};t("SET_CONTEXT",{}),n("getSessionContexts"),n("view/resetContext",null,{root:!0}),null!==o.waitingForReset?(n("loadContext",o.waitingForReset),o.waitingForReset=null):n("addObservation",{observation:r["C"],main:!0}),n("view/addToKlabLog",{type:c["a"].TYPE_INFO,payload:{message:"Context reset",separator:!0}},{root:!0}),console.debug("Send stop watch context ".concat(s.id)),Object(d["q"])(G["a"].WATCH_REQUEST,{active:!1,observationId:s.id,rootContextId:s.rootContextId})}else console.info("Try to reset null context, is initial reset?")},setWaitinForReset:function(e){var t=e.commit,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t("WAITING_FOR_RESET",n)},loadContext:function(e,t){var n=e.commit,o=e.dispatch;console.info("Ask for context to restore ".concat(t)),W["a"].get("".concat("").concat(c["c"].REST_SESSION_VIEW,"describe/").concat(t),{params:{childLevel:1}}).then(function(){var e=Y()(regeneratorRuntime.mark(function e(a){var i,c,s;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return i=a.data,i.restored=!0,e.next=4,o("setContext",{context:p()({},i,{children:[]})});case 4:if(n("data/SET_RELOAD_FLOWCHART",{target:null},{root:!0}),console.debug("Context received with id ".concat(i.id)),!(i.children.length>0)){e.next=12;break}return c=[],s=i.children,s.forEach(function(e){null!==e.taskId&&(-1===c.indexOf(e.taskId)&&c.push(e.taskId),o("addObservation",{observation:e,restored:!0}))}),e.next=12,Promise.all(c);case 12:o("view/setSpinner",p()({},r["J"].SPINNER_STOPPED,{owner:t}),{root:!0});case 13:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()).catch(function(e){throw o("view/setSpinner",p()({},r["J"].SPINNER_ERROR,{owner:t,errorMessage:e}),{root:!0}),e})},getSessionContexts:function(e){var t=e.getters,n=e.commit;return new Promise(function(e,o){if(null!==t.session){var a="".concat("").concat(c["c"].REST_STATUS);Object(d["h"])(t.session,a,{transformRequest:[function(e,t){return delete t.common[r["r"].KLAB_AUTHORIZATION],e}]},function(a,i){var r=a.data;if(console.debug("Contexts history:\n".concat(JSON.stringify(r,null,4))),r&&r.sessions&&r.sessions.length>0){var c=r.sessions.find(function(e){return e.id===t.session});if("undefined"!==typeof c){var s=c.rootObservations;if(null===s||0===Object.keys(s).length&&s.constructor===Object)console.debug("No root observation founded"),e(0);else{console.debug("Find ".concat(Object.keys(s).length," root observations for this session"));var l=0;Object.entries(s).forEach(function(e){n("STORE_CONTEXT",e[1]),l+=1}),e(l)}}else console.warn("No information for session ".concat(t.session,", isn't valid session?")),o(new Error("No information for session ".concat(t.session,", disconnect")))}i()})}else o(new Error("No session established, no useful engine available, disconnect"))})},setContextCustomLabel:function(e,t){var n=e.commit;n("SET_CONTEXT_CUSTOM_LABEL",t)},addObservation:function(e,t){var n=e.commit,o=e.rootGetters,a=e.state,i=e.dispatch,c=t.observation,s=t.toTree,l=void 0===s||s,u=t.visible,E=void 0!==u&&u,f=t.restored,T=void 0!==f&&f,S=t.updated,m=void 0!==S&&S;return new Promise(function(e){var t=a.observations.findIndex(function(e){return e.id===c.id});return-1!==t?(m?(n("UPDATE_OBSERVATION",{observationIndex:t,newObservation:c}),n("UPDATE_TIME_EVENTS",c),console.debug("Observation$ ".concat(c.label," updated"))):i("view/addToKexplorerLog",{type:r["y"].TYPE_WARNING,payload:{message:"Existing observation received: ".concat(c.label)},important:!0},{root:!0}),e()):(i("view/assignViewer",{observation:c},{root:!0}).then(function(t){if(c.viewerIdx=t,c.visible=E,c.top=!1,c.zIndex=0,c.layerOpacity=c.layerOpacity||1,c.colormap=c.colormap||null,c.tsImages=[],c.isContainer=c.observationType===r["A"].TYPE_GROUP||c.observationType===r["A"].TYPE_VIEW,c.singleValue=c.observationType===r["A"].TYPE_STATE&&1===c.valueCount,c.loading=!1,c.loaded=!0,null===c.contextId){var a=o["stomp/tasks"].find(function(e){return c.taskId.startsWith(e.id)});if(a){var s=a.contextId;c.contextId=s}else c.contextId=c.rootContextId}if(n("ADD_OBSERVATION",{observation:p()({},c,{children:[]}),restored:T}),n("UPDATE_TIME_EVENTS",c),c.observationType===r["A"].TYPE_INITIAL)return e();if(c.children.length>0&&(c.disabled=!1,c.children.forEach(function(e){i("addObservation",{observation:e})})),l){var u=Object(d["l"])(c);if(n("ADD_NODE",u),c.childrenCount>0&&0===c.children.length){var f=u.node;i("addStub",f)}}return e()}),null)})},updateObservation:function(e,t){var n=e.commit,o=e.dispatch,a=e.state,i=t.observationId,r=t.exportFormats,s=a.observations.findIndex(function(e){return e.id===i});-1!==s?W["a"].get("".concat("").concat(c["c"].REST_SESSION_VIEW,"describe/").concat(i),{params:{childLevel:0}}).then(function(e){var t=e.data;if(t){if(r&&(t.exportFormats=r),n("UPDATE_OBSERVATION",{observationIndex:s,newObservation:t}),t.childrenCount>0){var c=Object(d["f"])(a.tree,t.id),l=c.children,u=l.length>0;u&&1===l.length&&(u=!l[0].id.startsWith("STUB")),u&&o("askForChildren",{parentId:i,count:Math.max(l.length,a.childrenToAskFor),total:t.childrenCount,updated:!0})}}else console.warn("Ask for update observation ".concat(i," but nothing found in engine"))}):console.warn("Try to update a not existing observation: ".concat(i))},addStub:function(e,t){var n=e.commit;n("ADD_NODE",{node:p()({},t,{id:"STUB-".concat(t.id),observable:"",label:"",children:[],childrenCount:0,childrenLoaded:0,siblingsCount:t.childrenCount,parentArtifactId:t.id,tickable:!1,disabled:!0,empty:!0,actions:{},header:"stub",main:!1,isContainer:!1,exportFormats:{},observationType:r["A"].TYPE_INITIAL,noTick:!0,parentId:t.id,dynamic:!1},t.userNode&&{userNode:t.userNode}),parentId:t.id}),n("ADD_LAST",{parentId:t.id,observationId:"STUB-".concat(t.id),offsetToAdd:0,total:t.childrenCount})},addKnowledgeView:function(e,t){var n=e.commit;n("ADD_KNOWLEDGE_VIEW",t)},showKnowledgeView:function(e,t){var n=e.commit;n("SHOW_KNOWLEDGE_VIEW",t)},addModificationEvent:function(e,t){var n=e.rootGetters,o=e.state,a=e.commit,i=e.dispatch,c=Object(d["f"])(o.tree,t.id);if(c)switch(t.type){case r["z"].BRING_FORWARD:a("MOD_BRING_FORWARD",c),i("changeTreeOfNode",{id:t.id,isUserTree:!0});break;case r["z"].VALUE_CHANGE:a("MOD_VALUE_CHANGE",c),a("ADD_TIME_EVENT",t),null===o.modificationsTask&&i("setModificationsTask",n["stomp/lastActiveTask"]());break;case r["z"].STRUCTURE_CHANGE:a("MOD_STRUCTURE_CHANGE",{node:c,modificationEvent:t}),c.childrenCount>0&&0===c.children.length&&i("addStub",c);break;case r["z"].CONTEXTUALIZATION_COMPLETED:i("updateObservation",{observationId:t.id,exportFormats:t.exportFormats});break;default:console.warn("Unknown modification event: ".concat(t.type));break}else t.id!==t.contextId?console.debug("Modification event for a not existing node, probably still not loaded",t):console.debug("Modification event for context",t)},setModificationsTask:function(e){var t=e.commit,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t("SET_MODIFICATIONS_TASK",n)},setTimestamp:function(e,t){var n=e.commit;t&&-1!==t&&(t=Math.round(t)),n("SET_TIMESTAMP",t)},setScheduling:function(e,t){var n=e.commit,o=e.getters;o.context&&t.contextId===o.context.id?n("SET_SCHEDULING_STATUS",t):console.debug("Received a scheduling of other context: ".concat(t.contextId))},askForChildren:function(e,t){var n=e.commit,o=e.dispatch,a=e.state,i=t.parentId,s=t.total,l=t.offset,u=void 0===l?0:l,E=t.count,f=void 0===E?a.childrenToAskFor:E,T=t.toTree,S=void 0===T||T,m=t.visible,O=void 0!==m&&m,b=t.notified,A=void 0===b||b,_=t.updated,I=void 0!==_&&_;return new Promise(function(e){console.debug("Ask for children of node ".concat(i,": count:").concat(f," / offset ").concat(u)),o("view/setSpinner",p()({},r["J"].SPINNER_LOADING,{owner:i}),{root:!0}).then(function(){W["a"].get("".concat("").concat(c["c"].REST_SESSION_VIEW,"children/").concat(i),{params:{count:f,offset:u}}).then(function(t){var c=t.data;c&&c.length>0?c.forEach(function(t,l,u){t.notified=A,t.siblingsCount=s,o("addObservation",{observation:t,toTree:S,visible:O,updated:I}).then(function(){if(l===u.length-1){S&&n("ADD_LAST",{parentId:i,observationId:t.id,offsetToAdd:c.length,total:s});var E=function(e){var t=Object(d["f"])(e,i);t&&null!==t&&(t.childrenLoaded+=c.length)};E(a.tree),E(a.userTree),o("view/setSpinner",p()({},r["J"].SPINNER_STOPPED,{owner:i}),{root:!0}),e()}})}):(o("view/setSpinner",p()({},r["J"].SPINNER_STOPPED,{owner:i}),{root:!0}),e())})})})},addChildrenToTree:function(e,t){var n=e.dispatch,o=e.commit,a=e.state,i=t.parent,r=t.count,c=void 0===r?a.childrenToAskFor:r;if(i&&null!==i)for(var s=a.observations.filter(function(e){return e.parentArtifactId===i.id||e.parentId===i.id}),l=s.length,u=i.children.length,E=u,f=0;E0&&0===T.children.length&&n("addStub",p.node),f!==c-1&&E!==l-1||o("ADD_LAST",{parentId:i.id,observationId:T.id,offsetToAdd:f+1,total:i.childrenLoaded})}},changeTreeOfNode:function(e,t){var n=e.commit,o=e.state,a=t.id,i=t.isUserTree,r=Object(d["f"])(o.tree,a);i?null===Object(d["f"])(o.userTree,a)?(n("UPDATE_USER_NODE",{node:r,userNode:!0}),n("ADD_NODE",{node:r,parentId:r.parentArtifactId||r.parentId,toUserTreeOnly:!0})):console.warn("Try to move to user tree an existing node: ".concat(a," - ").concat(r.label)):(n("UPDATE_USER_NODE",{node:r,userNode:!1}),n("REMOVE_NODE",{id:a}))},setVisibility:function(e,t){var n=e.commit,o=e.dispatch,a=e.state,i=t.node,r=t.visible;if(i.isContainer){if(0!==i.childrenCount&&null===i.viewerIdx){var c=a.observations.find(function(e){return e.parentArtifactId===i.id||e.parentId===i.id});if("undefined"!==typeof c){var s=c.viewerIdx,l=c.viewerType,u=c.zIndexOffset;i.viewerIdx=s,i.viewerType=l,i.zIndexOffset=u}else i.zIndexOffset=null}null!==i.viewerIdx&&o("view/setMainDataViewer",{viewerIdx:i.viewerIdx,visible:r},{root:!0}),n("SET_FOLDER_VISIBLE",{nodeId:i.id,visible:r,zIndexOffset:i.zIndexOffset})}else o("view/setMainDataViewer",{viewerIdx:i.viewerIdx,visible:r},{root:!0}),n("SET_VISIBLE",{id:i.id,visible:r})},putObservationOnTop:function(e,t){var n=e.commit;n("SET_VISIBLE",{id:t,visible:!0})},setContextMenuObservationId:function(e,t){var n=e.commit;n("SET_CONTEXTMENU_OBSERVATIONID",t)},selectNode:function(e,t){var n=e.dispatch,o=e.state;if(null===t)n("view/setObservationInfo",null,{root:!0});else{var a=o.observations.find(function(e){return e.id===t});a&&(a.visible&&!a.top&&n("setVisibility",{node:a,visible:!0}),n("view/setObservationInfo",a,{root:!0}))}},setLoadingLayers:function(e,t){var n=e.commit,o=t.loading,a=t.observation;a&&n("SET_LOADING_LAYERS",{loading:o,observation:a})},loadFlowchart:function(e){var t=e.commit,n=e.getters,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r["g"].GRAPH_DATAFLOW;return new Promise(function(e,a){console.info("Ask for flowchart ".concat(o)),W["a"].get("".concat("").concat(c["c"].REST_API_EXPORT,"/").concat(o,"/").concat(n.contextId),{headers:{Accept:"application/json"}}).then(function(i){var r=i.data;if("undefined"!==typeof r&&null!==r)try{r.restored=n.context.restored,t("ADD_FLOWCHART",{flowchart:r,target:o}),e()}catch(e){a(new Error("Error in dataflow layout for the context ".concat(H.contextId,": ").concat(e)))}else a(new Error("Dataflow in context ".concat(H.contextId," has no layout")))}).catch(function(e){a(e)})})},setReloadFlowchart:function(e,t){var n=e.commit,o=t.target;n("SET_RELOAD_FLOWCHART",o)},setDataflowStatus:function(e,t){var n=e.commit,o=t.id,a=t.status;n("SET_DATAFLOW_STATUS",{id:o,status:a})},setDataflowInfo:function(e,t){var n=e.commit;if(null===t)n("SET_DATAFLOW_INFO",null);else{var o=t.id,a=t.html,i=t.rateable,r=t.rating,c=t.averageRating;if(null!==o&&""!==o){var s=o.split("."),l=s[s.length-1],u=s.slice(0,s.length-1);n("SET_DATAFLOW_INFO",{elementId:l,elementTypes:u,html:a,rateable:i,rating:r,averageRating:c})}}},storeSearchResult:function(e,t){var n=e.commit;n("STORE_RAW_SEARCH_RESULT",t)},setScaleReference:function(e,t){var n=e.commit;n("SET_SCALE_REFERENCE",t)},updateScaleReference:function(e,t){var n=e.commit;n("UPDATE_SCALE_REFERENCE",t)},setScaleLocked:function(e,t){var n=e.commit,o=t.scaleType,a=t.scaleLocked;n("SET_SCALE_LOCKED",{scaleType:o,scaleLocked:a})},setInteractiveMode:function(e,t){var n=e.commit;n("SET_INTERACTIVE_MODE",t)},setCrossingIDL:function(e,t){var n=e.commit;n("SET_CROSSING_IDL",t)},addTerminal:function(e,t){var n=e.state,o=e.commit,a=t.id,i=t.active,c=t.type;if(a){var s=n.terminals.findIndex(function(e){return e.id===a});-1!==s?console.warn("Terminal already exists"):n.terminals[s].active=!0}else a="".concat(n.session,"-").concat(++n.terminalsCounter),o("ADD_TERMINAL",{id:a,active:"undefined"===typeof i||i,type:c||r["M"].CONSOLE})},removeTerminal:function(e,t){var n=e.commit;n("REMOVE_TERMINAL",t)},addTerminalCommand:function(e,t){var n=e.commit;n("ADD_TERMINAL_COMMAND",t)},clearTerminalCommands:function(e){var t=e.commit;t("CLEAR_TERMINAL_COMMANDS")},loadDocumentation:function(e){var t=e.dispatch,n=e.getters,o=e.rootGetters,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new Promise(function(e,i){if(null===n.contextId)return console.warn("Ask documentation without context"),void i(new Error("Ask documentation without context"));null===a&&(a=o["view/documentationView"],null===a&&console.warn("No view selected")),W["a"].get("".concat("").concat(c["c"].REST_SESSION_OBSERVATION,"documentation/").concat(a,"/").concat(n.contextId),{}).then(function(n){var o=n.data;""===o?(console.warn("Empty report"),e(!1)):t("refreshDocumentation",{view:a,documentation:o}).then(function(){t("view/removeReloadView",a,{root:!0}).then(function(){e(!0)})})}).catch(function(e){i(e)})})},refreshDocumentation:function(e,t){var n=e.commit,o=t.view,a=t.documentation,i=[],c=[],s=new Map,l=function e(t,n,o,a){var i,l;switch(n.type===r["l"].SECTION?l=null===o?"".concat(a,"."):"".concat(o).concat(a,"."):(l=s.has(n.type)?s.get(n.type)+1:1,s.set(n.type,l)),n.type){case r["l"].SECTION:i="".concat(l," ").concat(n.title);break;case r["l"].TABLE:i="".concat(Object(j["b"])().tc("label.reportTable")," ").concat(l,". ").concat(n.bodyText);break;case r["l"].RESOURCE:i=n.title;break;case r["l"].MODEL:i=n.id;break;case r["l"].REFERENCE:i=n.id;break;case r["l"].FIGURE:i="".concat(Object(j["b"])().tc("label.reportFigure")," ").concat(l,". ").concat(n.figure.label);break;default:i=n.type}var u={type:n.type,id:n.id,idx:l,parentId:n.parentId,previousId:n.previousId,nextId:n.nextId,label:i,children:[]},d=0;n.children.forEach(function(t){var n=-1;t.type===r["l"].SECTION&&(n=++d),e(u.children,t,l,n)}),t.push(u),c.push({id:n.id,idx:l,label:i,type:n.type,title:n.title,subtitle:n.subtitle,bodyText:n.bodyText,model:n.model,section:n.section,resource:n.resource,table:n.table,figure:n.figure,reference:n.reference})},u=0;a.forEach(function(e,t){l(i,e,null,e.type===r["l"].SECTION?++u:t)}),n("SET_DOCUMENTATION",{view:o,tree:i}),n("ADD_DOCUMENTATION",c)}},B={namespaced:!0,state:D,getters:M,mutations:V,actions:z},K={stompClient:null,connectionState:r["f"].CONNECTION_UNKNOWN,reconnectionsAttempt:0,subscriber:null,sentMessages:[],receivedMessages:[],queuedMessage:null,tasks:[],subscriptions:[]},Q={connectionDown:function(e){return e.connectionState!==r["f"].CONNECTION_UP},lastError:function(e){var t=e.receivedMessages.filter(function(e){return e.type===r["y"].TYPE_ERROR}).slice(-1);return 1===t.length?t[0]:null},lastMessage:function(e){var t=e.receivedMessages.filter(function(e){return e.type===r["y"].TYPE_MESSAGE}).slice(-1);return 1===t.length?t[0]:null},lastReceivedMessage:function(e){return e.receivedMessages.length>0?e.receivedMessages.slice(-1)[0]:null},lastSendedMessage:function(e){return e.sentMessages.length>0?e.sentMessages.slice(-1)[0]:null},subscriberId:function(e){return null!==e.subscriber?e.subscriber.id:null},queuedMessage:function(e){return e.queuedMessage},connectionState:function(e){return e.connectionState},connectionUp:function(e){return e.connectionState===r["f"].CONNECTION_UP},tasks:function(e){return e.tasks},taskIsAlive:function(e){return function(t){return"undefined"!==typeof e.tasks.find(function(e){return e.id===t&&e.alive})}},taskOfContextIsAlive:function(e,t,n,o){return"undefined"!==typeof e.tasks.find(function(e){return e.contextId===o["data/contextId"]&&e.alive})},contextTaskIsAlive:function(e){return function(t){return"undefined"!==typeof e.tasks.find(function(e){return e.contextId===t&&e.alive})}},hasTasks:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return-1!==e.tasks.findIndex(function(e){return e.alive&&(null===t||e.contextId===t)})}},lastActiveTask:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=e.tasks.filter(function(e){return e.alive&&(null===t||e.contextId===t)});return n.length>0?n.pop():null}}},X={STOMP_CONNECTION_STATE:function(e,t){e.connectionState=t},STOMP_ERROR:function(e,t){Object(d["p"])(e.receivedMessages,{date:_()().format("HH:mm:ss"),type:r["y"].TYPE_ERROR,message:t})},STOMP_MESSAGE:function(e,t){Object(d["p"])(e.receivedMessages,{date:_()().format("HH:mm:ss"),type:r["y"].TYPE_MESSAGE,message:t})},STOMP_SEND_MESSAGE:function(e,t){Object(d["p"])(e.sentMessages,p()({date:_()().format("HH:mm:ss")},t))},STOMP_SUBSCRIBED:function(e,t){e.subscriber=t},STOMP_RECONNECTIONS_ATTEMPT:function(e,t){e.reconnectionsAttempt=t},STOMP_RECONNECTIONS_ATTEMPT_RESET:function(e){e.reconnectionsAttempt=0},STOMP_QUEUE_MESSAGE:function(e,t){e.queuedMessage=t},STOMP_CLEAN_QUEUE:function(e){e.queuedMessage=null},TASK_START:function(e,t){var n=t.id,o=t.contextId,a=t.description;-1!==e.tasks.findIndex(function(e){return e.id===n})?console.debug("Received duplicated start task id: ".concat(n," - ").concat(a)):e.tasks.push({id:n,contextId:o,description:a,alive:!0})},TASK_END:function(e,t){var n=t.id,o=e.tasks.findIndex(function(e){return e.id===n});if(-1!==o){var a=e.tasks[o];a.alive=!1,e.tasks.splice(o,1,a)}else console.debug("Task with id = ".concat(n," not founded or is not alive"))}};function q(e,t,n,o){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];e("view/addToKexplorerLog",{type:t,payload:{message:n,attach:o},important:a},{root:!0})}var J=(o={},k()(o,c["a"].TYPE_TASKSTARTED,function(e,t){var n=e.payload,o=t.dispatch;o("stomp/taskStart",n,{root:!0}),q(o,r["y"].TYPE_DEBUG,"Started task with id ".concat(n.id)),o("view/addToStatusTexts",{id:n.id,text:n.description},{root:!0})}),k()(o,c["a"].TYPE_TASKABORTED,function(e,t){var n=e.payload,o=t.dispatch;o("stomp/taskAbort",n,{root:!0}),q(o,r["y"].TYPE_ERROR,"Aborted task with id ".concat(n.id),n),o("view/removeFromStatusTexts",n.id,{root:!0})}),k()(o,c["a"].TYPE_TASKFINISHED,function(e,t){var n=e.payload,o=t.dispatch;o("stomp/taskEnd",n,{root:!0}),q(o,r["y"].TYPE_DEBUG,"Ended task with id ".concat(n.id)),o("view/removeFromStatusTexts",n.id,{root:!0})}),k()(o,c["a"].TYPE_PROVENANCECHANGED,function(e,t){var n=e.payload,o=t.dispatch,a=t.rootGetters;n.contextId&&null!==a["data/context"]&&a["data/context"].id!==n.contextId?(q(o,r["y"].TYPE_INFO,"Provenance of incorrect context received"),console.warn(a["data/context"].id,n.contextId)):(o("data/setReloadFlowchart",{target:n.target},{root:!0}),q(o,r["y"].TYPE_DEBUG,"Provenance available in context ".concat(n.contextId)))}),k()(o,c["a"].TYPE_DATAFLOWCOMPILED,function(e,t){var n=e.payload,o=t.dispatch,a=t.rootGetters;n.contextId&&null!==a["data/context"]&&a["data/context"].id!==n.contextId?(q(o,r["y"].TYPE_INFO,"Dataflow of incorrect context received"),console.warn(a["data/context"].id,n.contextId)):(o("data/setReloadFlowchart",{target:n.target},{root:!0}),q(o,r["y"].TYPE_DEBUG,"Dataflow compiled in context ".concat(n.contextId)))}),k()(o,c["a"].TYPE_DATAFLOWSTATECHANGED,function(e,t){var n,o=e.payload,a=t.dispatch;n="STARTED"===o.status?r["i"].PROCESSING:"FINISHED"===o.status?r["i"].PROCESSED:"ABORTED"===o.status?r["i"].ABORTED:r["i"].WAITING,a("data/setDataflowStatus",{id:o.nodeId,status:n},{root:!0})}),k()(o,c["a"].TYPE_DATAFLOWDOCUMENTATION,function(e,t){var n=e.payload,o=t.dispatch;n&&n.dataflowId&&n.htmlDescription?(q(o,r["y"].TYPE_DEBUG,"Dataflow element info received",n),o("data/setDataflowInfo",{id:n.dataflowId,html:n.htmlDescription,rateable:n.rateable,rating:n.rating,averageRating:n.averageRating},{root:!0})):q(o,r["y"].TYPE_WARNING,"Strange payload of dataflow element info received",n)}),k()(o,c["a"].TYPE_NEWOBSERVATION,function(e,t){var n=e.payload,o=t.rootState,a=t.rootGetters,i=t.dispatch,c=o.stomp.tasks.find(function(e){return e.id===n.taskId});"undefined"===typeof c&&-1!==o.data.contextsHistory.findIndex(function(e){return e.id===n.contextId})&&(i("stomp/taskStart",{id:n.taskId,description:r["p"].UNKNOWN_SEARCH_OBSERVATION,contextId:n.contextId},{root:!0}),i("view/addToStatusTexts",{id:n.taskId,text:r["p"].UNKNOWN_SEARCH_OBSERVATION},{root:!0}),q(i,r["y"].TYPE_INFO,"Received an observation of previous context with no task associated. Session was been reloaded?",n)),null===n.parentId?null===a["data/context"]?(q(i,r["y"].TYPE_DEBUG,"New context received with id ".concat(n.id),n),i("data/setContext",{context:n},{root:!0}),"undefined"!==typeof n.scaleReference&&null!==n.scaleReference&&i("data/setScaleReference",n.scaleReference,{root:!0})):q(i,r["y"].TYPE_ERROR,"Strange behaviour: observation with no parent in existing context: ".concat(n.id," - ").concat(n.label),n):null!==a["data/context"]&&(a["data/context"].id===n.rootContextId||c&&a["data/context"].id===c.contextId)?(q(i,r["y"].TYPE_INFO,"New observation received with id ".concat(n.id,", rootContextId ").concat(n.rootContextId," and contextId ").concat(n.contextId),n),n.notified=!0,i("data/addObservation",{observation:n},{root:!0})):q(i,r["y"].TYPE_INFO,"Received an observation of different context",n,null,4)}),k()(o,c["a"].TYPE_MODIFIEDOBSERVATION,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["y"].TYPE_DEBUG,"Received a modification event",n),o("data/addModificationEvent",n,{root:!0})}),k()(o,c["a"].TYPE_QUERYRESULT,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["y"].TYPE_INFO,"Received search results",n),o("data/storeSearchResult",n,{root:!0})}),k()(o,c["a"].TYPE_RESETCONTEXT,function(e,t){var n=t.dispatch;q(n,r["y"].TYPE_INFO,"Received context reset"),N["b"].$emit(r["h"].RESET_CONTEXT),n("data/resetContext",null,{root:!0})}),k()(o,c["a"].TYPE_SCALEDEFINED,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["y"].TYPE_INFO,"Received scale reference",n),o("data/setScaleReference",n,{root:!0})}),k()(o,c["a"].TYPE_USERINPUTREQUESTED,function(e,t){var n=t.dispatch;q(n,r["y"].TYPE_INFO,"Received input request",e.payload),n("view/inputRequest",e,{root:!0})}),k()(o,c["a"].TYPE_SCHEDULEADVANCED,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["y"].TYPE_INFO,"Received schedule advanced",n),o("data/setScheduling",n,{root:!0})}),k()(o,c["a"].TYPE_SCHEDULINGSTARTED,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["y"].TYPE_INFO,"Received scheduling started",n),o("data/setScheduling",n,{root:!0})}),k()(o,c["a"].TYPE_SCHEDULINGFINISHED,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["y"].TYPE_INFO,"Received scheduling finished",n),o("data/setScheduling",n,{root:!0})}),k()(o,c["a"].TYPE_ENGINEEVENT,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["y"].TYPE_INFO,"Engine event received",n),o("view/setEngineEvent",n,{root:!0})}),k()(o,c["a"].TYPE_DEBUG,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["y"].TYPE_DEBUG,n)}),k()(o,c["a"].TYPE_INFO,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["y"].TYPE_INFO,n)}),k()(o,c["a"].TYPE_WARNING,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["y"].TYPE_WARNING,n)}),k()(o,c["a"].TYPE_ERROR,function(e,t){var n=e.payload,o=t.dispatch;n===r["f"].UNKNOWN_IDENTITY?N["b"].$emit(r["h"].SESSION_CUT):q(o,r["y"].TYPE_ERROR,n)}),k()(o,c["a"].TYPE_USERPROJECTOPENED,function(e,t){var n=t.dispatch;q(n,r["y"].TYPE_INFO,"Project opened in k.Modeler")}),k()(o,c["a"].TYPE_PROJECTFILEMODIFIED,function(e,t){var n=t.dispatch;q(n,r["y"].TYPE_INFO,"Project modified in k.Modeler")}),k()(o,c["a"].TYPE_NETWORKSTATUS,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["y"].TYPE_INFO,"Network status received",n)}),k()(o,c["a"].TYPE_AUTHORITYDOCUMENTATION,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["y"].TYPE_INFO,"Authority documentation message received",n)}),k()(o,c["a"].TYPE_SETUPINTERFACE,function(e,t){var n=e.payload,o=t.dispatch;o("view/setLayout",n,{root:!0}),q(o,r["y"].TYPE_INFO,"App ".concat(n.name," loaded"),n,!0)}),k()(o,c["a"].TYPE_CREATEMODALWINDOW,function(e,t){var n=e.payload,o=t.dispatch;o("view/setModalWindow",n,{root:!0}),q(o,r["y"].TYPE_INFO,"Modal ".concat(n.name," loaded"),n)}),k()(o,c["a"].TYPE_CREATEVIEWCOMPONENT,function(e,t){var n=e.payload,o=t.dispatch;o("view/createViewComponent",n,{root:!0}),q(o,r["y"].TYPE_INFO,"New create view component received",n)}),k()(o,c["a"].TYPE_VIEWACTION,function(e,t){var n=e.payload,o=t.dispatch;o("view/viewAction",n,{root:!0}),N["b"].$emit(r["h"].VIEW_ACTION),q(o,r["y"].TYPE_INFO,"New view action received",n)}),k()(o,c["a"].TYPE_VIEWSETTING,function(e,t){var n=e.payload,o=t.dispatch;o("view/viewSetting",n,{root:!0}),q(o,r["y"].TYPE_INFO,"New view setting received",n)}),k()(o,c["a"].TYPE_VIEWAVAILABLE,function(e,t){var n=e.payload,o=t.dispatch;o("view/setDocumentation",{id:n.viewId,view:n.viewClass},{root:!0}),q(o,r["y"].TYPE_INFO,"New documentation available",n)}),k()(o,c["a"].TYPE_DOCUMENTATIONCHANGED,function(e,t){var n=e.payload,o=t.dispatch;o("view/changeInDocumentation",n,{root:!0}),q(o,r["y"].TYPE_INFO,"New change in documentation",n)}),k()(o,c["a"].TYPE_COMMANDRESPONSE,function(e,t){var n=e.payload,o=t.dispatch;N["b"].$emit(r["h"].COMMAND_RESPONSE,n),q(o,r["y"].TYPE_INFO,"Command response received",n)}),o),$=function(e){var t=e.body,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=JSON.parse(t),a=n.dispatch;return o.messageClass===c["a"].CLASS_NOTIFICATION&&a("view/addToKlabLog",o,{root:!0}),Object.prototype.hasOwnProperty.call(J,o.type)?J[o.type](o,n):(console.warn("Unknown parser ".concat(o.type)),!1)},Z={stomp_onconnect:function(e,t){var n=e.commit;n("STOMP_CONNECTION_STATE",r["f"].CONNECTION_UP),n("STOMP_RECONNECTIONS_ATTEMPT_RESET"),n("STOMP_MESSAGE",t)},stomp_onclose:function(e){var t=e.commit;t("STOMP_CONNECTION_STATE",r["f"].CONNECTION_DOWN)},stomp_onerror:function(e,t){var n=e.dispatch;n("setConnectionState",{state:r["f"].CONNECTION_ERROR,message:t})},setConnectionState:function(e,t){var n=e.commit,o=t.state,a=t.message;n("STOMP_CONNECTION_STATE",o),n("STOMP_ERROR",a)},stomp_onmessage:function(e,t){var n=e.commit;n("STOMP_MESSAGE",t),$(t,e)},stomp_onsubscribe:function(e,t){var n=e.commit;n("STOMP_SUBSCRIBED",t)},stomp_reconnect:function(e,t){var n=e.commit;n("STOMP_RECONNECTIONS_ATTEMPT",t),n("STOMP_CONNECTION_STATE",r["f"].CONNECTION_WORKING)},stomp_onsend:function(e,t){var n=e.commit,o=t.message;n("STOMP_SEND_MESSAGE",o)},stomp_onerrorsend:function(e,t){var n=e.commit;n("STOMP_QUEUE_MESSAGE",t)},stomp_cleanqueue:function(e){var t=e.commit;t("STOMP_CLEAN_QUEUE")},taskStart:function(e,t){var n=e.commit,o=e.dispatch;o("view/setSpinner",p()({},r["J"].SPINNER_LOADING,{owner:t.id}),{root:!0}),n("TASK_START",t)},taskAbort:function(e,t){var n=e.commit,o=e.dispatch;n("TASK_END",t),o("view/setSpinner",p()({},r["J"].SPINNER_STOPPED,{owner:t.id}),{root:!0})},taskEnd:function(e,t){var n=e.commit,o=e.dispatch;n("TASK_END",t),o("view/setSpinner",p()({},r["J"].SPINNER_STOPPED,{owner:t.id}),{root:!0})}},ee={namespaced:!0,state:K,getters:Q,mutations:X,actions:Z};a["a"].use(i["a"]);var te=new i["a"].Store({modules:{view:C,data:B,stomp:ee}});t["a"]=te},4678:function(e,t,n){var o={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-ps":"4c98","./ar-ps.js":"4c98","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d833","./ar-tn.js":"6d833","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn-bd":"9686","./bn-bd.js":"9686","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-mx":"b5b7","./es-mx.js":"b5b7","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku-kmr":"7558","./ku-kmr.js":"7558","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function a(e){var t=i(e);return n(t)}function i(e){var t=o[e];if(!(t+1)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t}a.keys=function(){return Object.keys(o)},a.resolve=i,e.exports=a,a.id="4678"},"7cca":function(e,t,n){"use strict";n.d(t,"g",function(){return l}),n.d(t,"t",function(){return u}),n.d(t,"w",function(){return d}),n.d(t,"O",function(){return E}),n.d(t,"P",function(){return f}),n.d(t,"x",function(){return T}),n.d(t,"H",function(){return p}),n.d(t,"S",function(){return S}),n.d(t,"f",function(){return m}),n.d(t,"y",function(){return O}),n.d(t,"A",function(){return b}),n.d(t,"C",function(){return A}),n.d(t,"q",function(){return _}),n.d(t,"R",function(){return I}),n.d(t,"d",function(){return v}),n.d(t,"e",function(){return N}),n.d(t,"J",function(){return R}),n.d(t,"p",function(){return C}),n.d(t,"i",function(){return g}),n.d(t,"h",function(){return L}),n.d(t,"D",function(){return w}),n.d(t,"F",function(){return P}),n.d(t,"E",function(){return y}),n.d(t,"z",function(){return D}),n.d(t,"N",function(){return M}),n.d(t,"G",function(){return x}),n.d(t,"I",function(){return k}),n.d(t,"s",function(){return U}),n.d(t,"B",function(){return F}),n.d(t,"v",function(){return Y}),n.d(t,"Q",function(){return W}),n.d(t,"o",function(){return G}),n.d(t,"a",function(){return j}),n.d(t,"c",function(){return H}),n.d(t,"b",function(){return z}),n.d(t,"k",function(){return K}),n.d(t,"j",function(){return Q}),n.d(t,"M",function(){return X}),n.d(t,"L",function(){return q}),n.d(t,"n",function(){return J}),n.d(t,"l",function(){return $}),n.d(t,"m",function(){return Z}),n.d(t,"r",function(){return ee}),n.d(t,"K",function(){return te}),n.d(t,"u",function(){return ne});var o,a=n("9523"),i=n.n(a),r=(n("f559"),n("cadf"),n("456d"),n("ac6a"),n("3156")),c=n.n(r),s=n("e7d8"),l={EMPTY_MAP_SELECTION:{pixelSelected:null,layerSelected:null,value:null,locked:!1},HIST_MAX_LENGTH:50,CHILDREN_TO_ASK_FOR:25,SEARCHBAR_SIZE:512,SEARCHBAR_INCREMENT:128,MAX_SEARCHBAR_INCREMENTS:6,TARGET_DATAFLOW:"DATAFLOW",TARGET_PROVENANCE:"PROVENANCE",GRAPH_DATAFLOW:"dataflow",GRAPH_PROVENANCE_FULL:"provenance_full",GRAPH_PROVENANCE_SIMPLIFIED:"provenance_simplified"},u=[{flowchart:null,graph:null,updatable:!1,visible:!1,target:l.TARGET_DATAFLOW,type:l.GRAPH_DATAFLOW,label:"Dataflow"},{flowchart:null,graph:null,updatable:!1,visible:!1,target:l.TARGET_PROVENANCE,type:l.GRAPH_PROVENANCE_FULL,label:"Provenance full"},{flowchart:null,graph:null,updatable:!1,visible:!1,target:l.TARGET_PROVENANCE,type:l.GRAPH_PROVENANCE_SIMPLIFIED,label:"Provenance simplified"}],d={LEFTMENU_MAXSIZE:512,LEFTMENU_MINSIZE:80,LEFTMENU_DOCUMENTATION_SIZE:320,LEFTMENU_MAXIMIZED:"max",LEFTMENU_MINIMIZED:"min",LEFTMENU_HIDDEN:"hidden",DATA_VIEWER_COMPONENT:"klab-main-control",DOCKED_DATA_VIEWER_COMPONENT:"docked-main-control",REPORT_VIEWER_COMPONENT:"reports-details",DOCUMENTATION_VIEWER_COMPONENT:"documentation-tree",DATAFLOW_VIEWER_COMPONENT:"dataflow-details",DATAFLOW_INFO_COMPONENT:"dataflow-info",PROVENANCE_VIEWER_COMPONENT:"provenance-details",LOG_COMPONENT:"klab-log-pane"},E={DATA_VIEWER:{name:"DataViewer",leftMenuState:d.LEFTMENU_HIDDEN,leftMenuContent:d.DATA_VIEWER_COMPONENT,mainControl:!0,hasSearch:!0},DOCKED_DATA_VIEWER:{name:"DataViewer",leftMenuState:d.LEFTMENU_MAXIMIZED,leftMenuContent:d.DOCKED_DATA_VIEWER_COMPONENT,mainControl:!1,hasSearch:!0},DOCUMENTATION_VIEWER:{name:"KlabDocumentation",leftMenuState:d.LEFTMENU_MINIMIZED,leftMenuContent:d.DOCUMENTATION_VIEWER_COMPONENT,mainControl:!1,hasSearch:!1},REPORT_VIEWER:{name:"ReportViewer",leftMenuState:d.LEFTMENU_MINIMIZED,leftMenuContent:d.REPORT_VIEWER_COMPONENT,mainControl:!1,hasSearch:!1},DATAFLOW_VIEWER:{name:"DataflowViewer",leftMenuState:d.LEFTMENU_MINIMIZED,leftMenuContent:d.DATAFLOW_VIEWER_COMPONENT,mainControl:!1,hasSearch:!1},PROVENANCE_VIEWER:{name:"ProvenanceViewer",leftMenuState:d.LEFTMENU_MINIMIZED,leftMenuContent:d.PROVENANCE_VIEWER_COMPONENT,mainControl:!1,hasSearch:!1}},f={VIEW_MAP:{component:"MapViewer",label:"Maps",hideable:!1,forceNew:!1},VIEW_CHART:{component:"ChartViewer",label:"Chart",hideable:!0,forceNew:!0},VIEW_GRAPH:{component:"GraphViewer",label:"Graph",hideable:!0,forceNew:!0},VIEW_BLOB:{component:"BlobViewer",label:"Blob",hideable:!1,forceNew:!1},VIEW_UNKNOWN:{component:"UnknownViewer",label:"Under construction",hideable:!1,forceNew:!1}},T={CONCEPT:{label:"Concept",symbol:"C",color:"sem-types",rgb:"rgb(38, 50, 56)"},PREFIX_OPERATOR:{label:"Prefix operator",symbol:"O",color:"sem-types",rgb:"rgb(38, 50, 56)"},INFIX_OPERATOR:{label:"Infix operator",symbol:"O",color:"sem-types",rgb:"rgb(38, 50, 56)"},OBSERVATION:{label:"Observation",symbol:"O",color:"sem-types",rgb:"rgb(38, 50, 56)"},MODEL:{label:"Model",symbol:"M",color:"sem-types",rgb:"rgb(38, 50, 56)"},MODIFIER:{label:"Modifier",symbol:"O",color:"sem-types",rgb:"rgb(38, 50, 56)"},PRESET_OBSERVABLE:{label:"Preset observable",symbol:"O",color:"sem-preset-observable",rgb:"rgb(240, 240, 240)"},SEPARATOR:{label:"Separator",symbol:"S",color:"sem-separator",rgb:"rgb(10, 10, 10)"},NEXT_TOKENS:{TOKEN:"TOKEN",TEXT:"TEXT",INTEGER:"INTEGER",DOUBLE:"DOUBLE",BOOLEAN:"BOOLEAN",UNIT:"UNIT",CURRENCY:"CURRENCY"}},p={QUALITY:{label:"Quality",symbol:"Q",color:"sem-quality",rgb:"rgb(0, 153, 0)"},SUBJECT:{label:"Subject",symbol:"S",color:"sem-subject",rgb:"rgb(153, 76, 0)"},IDENTITY:{label:"identity",symbol:"Id",color:"sem-identity",rgb:"rgb(0, 102, 204)"},ATTRIBUTE:{label:"Attribute",symbol:"A",color:"sem-attribute",rgb:"rgb(0, 102, 204)"},REALM:{label:"Realm",symbol:"R",color:"sem-realm",rgb:"rgb(0, 102, 204)"},TRAIT:{label:"Trait",symbol:"T",color:"sem-trait",rgb:"rgb(0, 102, 204)"},EVENT:{label:"Event",symbol:"E",color:"sem-event",rgb:"rgb(53, 153, 0)"},RELATIONSHIP:{label:"Relationship",symbol:"R",color:"sem-relationship",rgb:"rgb(210, 170, 0)"},PROCESS:{label:"Process",symbol:"P",color:"sem-process",rgb:"rgb(204, 0, 0)"},ROLE:{label:"Role",symbol:"R",color:"sem-role",rgb:"rgb(0, 86, 163)"},CONFIGURATION:{label:"Configuration",symbol:"C",color:"sem-configuration",rgb:"rgb(98, 98, 98)"},DOMAIN:{label:"Domain",symbol:"D",color:"sem-domain",rgb:"rgb(240, 240, 240)"}},S={nodes:[],links:[],showMenu:!1,selected:{},showSelection:!1,linksSelected:{},options:{canvas:!1,size:{w:500,h:500},force:350,offset:{x:0,y:0},nodeSize:20,linkWidth:1,nodeLabels:!0,linkLabels:!1,strLinks:!0}},m={CONNECTION_UNKNOWN:"UNKNOWN",CONNECTION_UP:"UP",CONNECTION_DOWN:"DOWN",CONNECTION_WORKING:"WORKING",CONNECTION_ERROR:"ERROR",UNKNOWN_IDENTITY:"UNKNOWN_IDENTITY"},O={TYPE_DEBUG:"debug",TYPE_WARNING:"warning",TYPE_ERROR:"error",TYPE_INFO:"info",TYPE_MESSAGE:"MSG",TYPE_ALL:"ALL"},b={TYPE_PROCESS:"PROCESS",TYPE_STATE:"STATE",TYPE_SUBJECT:"SUBJECT",TYPE_CONFIGURATION:"CONFIGURATION",TYPE_EVENT:"EVENT",TYPE_RELATIONSHIP:"RELATIONSHIP",TYPE_GROUP:"GROUP",TYPE_VIEW:"VIEW",TYPE_INITIAL:"INITIAL"},A={shapeType:"POINT",encodedShape:"POINT (40.299841 9.343971)",id:null,label:"DEFAULT",parentId:-1,visible:!0,spatialProjection:"EPSG:4326",observationType:b.TYPE_INITIAL},_={TYPE_RASTER:"RASTER",TYPE_SHAPE:"SHAPE",TYPE_SCALAR:"SCALAR",TYPE_TIMESERIES:"TIMESERIES",TYPE_NETWORK:"NETWORK",TYPE_PROPORTIONS:"PROPORTIONS",TYPE_COLORMAP:"COLORMAP",SHAPE_POLYGON:"POLYGON",SHAPE_POINT:"POINT",PARAM_VIEWPORT_SIZE:800,PARAM_VIEWPORT_MAX_SIZE:7680,PARAM_VIEWPORT_MULTIPLIER:1},I={PARAMS_MODE:"mode",PARAMS_MODE_IDE:"ide",PARAMS_MODE_STANDALONE:"standalone",PARAMS_SESSION:"session",PARAMS_LOG:"log",PARAMS_LOG_HIDDEN:"hidden",PARAMS_LOG_VISIBLE:"visible",PARAMS_LOCAL_HELP:"localhelp",PARAMS_APP:"app",PARAMS_DEBUG_REMOTE:"remote-debug",PARAMS_STOMP_DEBUG:"stomp-debug",PARAMS_TOKEN:"token",COOKIE_LANG:"klab_exp_lang",COOKIE_SESSION:"klab_session",COOKIE_MODE:"klab_mode",COOKIE_LOG:"klab_log",COOKIE_BASELAYER:"klab_baselayer",COOKIE_MAPDEFAULT:"klab_mapdefault",COOKIE_SAVELOCATION:"klab_saveLocation",COOKIE_HELP_ON_START:"klab_helponstart",COOKIE_DOCKED_STATUS:"klab_dockedstatus",COOKIE_NOTIFICATIONS:"klab_notifications",COOKIE_TERMINAL_SIZE:"klab_terminalsize",COOKIE_VIEW_COORDINATES:"klab_coordinates",LOCAL_STORAGE_APP_ID:"klab:appId",LOCAL_STORAGE_TERMINAL_COMMANDS:"klab:terminalCommands"},v={NOTIFICATIONS_URL:"".concat("https://integratedmodelling.org","/statics/notifications/index.php")},N={MAIN_COLOR:"rgb(17, 170, 187)",MAIN_GREEN:"rgb(231,255,219)",MAIN_CYAN:"rgb(228,253,255)",MAIN_YELLOW:"rgb(255, 195, 0)",MAIN_RED_HEX:"#ff6464",MAIN_COLOR_HEX:"#11aabb",MAIN_GREEN_HEX:"#e7ffdb",MAIN_CYAN_HEX:"#e4fdff",MAIN_YELLOW_HEX:"#ffc300",MAIN_RED:"rgb(255, 100, 100)",PRIMARY:"#DA1F26",SECONDARY:"#26A69A",TERTIARY:"#555",NEUTRAL:"#E0E1E2",POSITIVE:"#19A019",NEGATIVE:"#DB2828",INFO:"#1E88CE",WARNING:"#F2C037",PRIMARY_NAME:"primary",SECONDARY_NAME:"secondary",TERTIARY_NAME:"tertiary",POSITIVE_NAME:"positive",NEGATIVE_NAME:"negative",INFO_NAME:"info",WARNING_NAME:"warning"},h={SPINNER_STOPPED_COLOR:N.MAIN_COLOR,SPINNER_LOADING_COLOR:N.MAIN_YELLOW,SPINNER_MC_RED:N.MAIN_RED,SPINNER_ERROR_COLOR:N.NEGATIVE_NAME},R={SPINNER_LOADING:{color:h.SPINNER_LOADING_COLOR,animated:!0},SPINNER_STOPPED:{color:h.SPINNER_STOPPED_COLOR,animated:!1},SPINNER_ERROR:{color:h.SPINNER_ERROR_COLOR,animated:!1,time:2,then:{color:h.SPINNER_STOPPED_COLOR,animated:!1}}},C={UNKNOWN_SEARCH_OBSERVATION:"$$UNKNOWN_SEARCH_OBSERVATION$$"},g={WAITING:"waiting",PROCESSING:"processing",PROCESSED:"processed",ABORTED:"aborted"},L={MAP_SIZE_CHANGED:"mapsizechanged",UPDATE_FOLDER:"updatefolder",GRAPH_NODE_SELECTED:"graphnodeselected",SPINNER_DOUBLE_CLICK:"spinnerdoubleclick",SHOW_NODE:"shownode",ASK_FOR_UNDOCK:"askforundock",ASK_FOR_SUGGESTIONS:"askforsuggestions",NEED_FIT_MAP:"needfitmap",TREE_VISIBLE:"treevisible",VIEWER_CLICK:"viewerclick",VIEWER_SELECTED:"viewerselected",VIEWER_CLOSED:"viewerclosed",OBSERVATION_INFO_CLOSED:"observationinfoclosed",SEND_REGION_OF_INTEREST:"sendregionofinterest",NEED_HELP:"needhelp",OBSERVATION_BY_TIME:"observationbytime",NEED_LAYER_BUFFER:"needlayerbuffer",COMPONENT_ACTION:"componentaction",LAYOUT_CHANGED:"layoutchanged",SELECT_ELEMENT:"selectelement",PROPOSED_CONTEXT_CHANGE:"proposedcontextchange",NEW_SCHEDULING:"newscheduling",SHOW_NOTIFICATIONS:"shownotifications",TERMINAL_FOCUSED:"terminalfocused",COMMAND_RESPONSE:"commandresponse",REFRESH_DOCUMENTATION:"refreshdocumentation",PRINT_DOCUMENTATION:"printdocumentation",SHOW_DOCUMENTATION:"showdowcumentation",FONT_SIZE_CHANGE:"fontsizechange",DOWNLOAD_URL:"downloadurl",RESET_CONTEXT:"resetcontext",VIEW_ACTION:"viewaction",SESSION_CUT:"sessioncut",SHOW_DATA_INFO:"showdatainfo"},w={ST_SPACE:"space",ST_TIME:"time"},P={CENTIMETERS:"cm",METERS:"m",KILOMETERS:"km",MILLENNIUM:"MILLENNIUM",CENTURY:"CENTURY",DECADE:"DECADE",YEAR:"YEAR",MONTH:"MONTH",WEEK:"WEEK",DAY:"DAY",HOUR:"HOUR",MINUTE:"MINUTE",SECOND:"SECOND",MILLISECOND:"MILLISECOND"},y=[{i18nlabel:"unitCentimeter",type:w.ST_SPACE,value:P.CENTIMETERS,selectable:!0},{i18nlabel:"unitMeter",type:w.ST_SPACE,value:P.METERS,selectable:!0},{i18nlabel:"unitKilometer",type:w.ST_SPACE,value:P.KILOMETERS,selectable:!0},{i18nlabel:"unitMillennium",type:w.ST_TIME,value:P.MILLENNIUM,selectable:!1,momentShorthand:"y",momentMultiplier:1e3,index:0},{i18nlabel:"unitCentury",type:w.ST_TIME,value:P.CENTURY,selectable:!0,momentShorthand:"y",momentMultiplier:100,index:1},{i18nlabel:"unitDecade",type:w.ST_TIME,value:P.DECADE,selectable:!0,momentShorthand:"y",momentMultiplier:10,index:2},{i18nlabel:"unitYear",type:w.ST_TIME,value:P.YEAR,selectable:!0,momentShorthand:"y",momentMultiplier:1,index:3},{i18nlabel:"unitMonth",type:w.ST_TIME,value:P.MONTH,selectable:!0,momentShorthand:"M",momentMultiplier:1,index:4},{i18nlabel:"unitWeek",type:w.ST_TIME,value:P.WEEK,selectable:!0,momentShorthand:"W",momentMultiplier:1,index:5},{i18nlabel:"unitDay",type:w.ST_TIME,value:P.DAY,selectable:!0,momentShorthand:"d",momentMultiplier:1,index:6},{i18nlabel:"unitHour",type:w.ST_TIME,value:P.HOUR,selectable:!0,momentShorthand:"h",momentMultiplier:1,index:7},{i18nlabel:"unitMinute",type:w.ST_TIME,value:P.MINUTE,selectable:!0,momentShorthand:"m",momentMultiplier:1,index:8},{i18nlabel:"unitSecond",type:w.ST_TIME,value:P.SECOND,selectable:!1,momentShorthand:"s",momentMultiplier:1,index:9},{i18nlabel:"unitMillisecond",type:w.ST_TIME,value:P.MILLISECOND,selectable:!1,momentShorthand:"ms",momentMultiplier:1,index:10}],D={SPATIAL_TRANSLATION:"SpatialTranslation",SPATIAL_CHANGE:"SpatialChange",TERMINATION:"Termination",STRUCTURE_CHANGE:"StructureChange",NAME_CHANGE:"NameChange",ATTRIBUTE_CHANGE:"AttributeChange",VALUE_CHANGE:"ValueChange",BRING_FORWARD:"BringForward",CONTEXTUALIZATION_COMPLETED:"ContextualizationCompleted"},M={DEFAULT_STEP:864e5,DEFAULT_INTERVAL:100,PIXEL_TIME_MULTIPLIER:1,MIN_PLAY_TIME:6e4,MAX_PLAY_TIME:6e4},x={SEMANTIC:"SEMANTIC",FREETEXT:"FREETEXT"},k={INTERACTIVE_MODE:"InteractiveMode",LOCK_SPACE:"LockSpace",LOCK_TIME:"LockTime"},U={DEFAULT_MODAL_SIZE:{width:1024,height:768},DEFAULT_PROPORTIONS:{width:4,height:3},DEFAULT_WIDTH_PERCENTAGE:90,DEFAULT_HEIGHT_PERCENTAGE:90,DEFAULT_HELP_BASE_URL:"https://integratedmodelling.org/statics/help"},V={actionLabel:null,actionId:null,downloadUrl:null,downloadFileExtension:null,enabled:!1,separator:!1,submenu:[]},F={SEPARATOR_ITEM:c()({},V,{enabled:!0,separator:!0}),RECONTEXTUALIZATION_ITEM:c()({},V,{actionId:"Recontextualization",actionLabel:Object(s["b"])().tc("label.recontextualization"),enabled:!0})},Y=[{viewClass:"table",label:Object(s["b"])().tc("label.kwTable"),icon:"mdi-table",exportIcons:[{type:"xlsx",icon:"mdi-file-excel"}]},{viewClass:"chart",label:Object(s["b"])().tc("label.kwChart"),icon:"mdi-chart-bar",exportIcons:[]}],W={OBSERVATION:"Observation",VIEW:"View",TREE:"Tree",REPORT:"Report",DATAFLOW:"Dataflow",SHOW:"Show",HIDE:"Hide",URL:"Url",DOWNLOAD:"Download"},G={RESOURCE_VALIDATION:"ResourceValidation"},j={PANEL:"Panel",ALERT:"Alert",PUSH_BUTTON:"PushButton",CHECK_BUTTON:"CheckButton",RADIO_BUTTON:"RadioButton",TEXT_INPUT:"TextInput",COMBO:"Combo",GROUP:"Group",MAP:"Map",TREE:"Tree",TREE_ITEM:"TreeItem",CONFIRM:"Confirm",VIEW:"View",CONTAINER:"Container",MULTICONTAINER:"MultiContainer",LABEL:"Label",TEXT:"Text",TABLE:"Table",NOTIFICATION:"Notification",INPUT_GROUP:"InputGroup",SEPARATOR:"Separator",MODAL_WINDOW:"ModalWindow",WINDOW:"Window",BROWSER:"Browser",IMAGE:"Image"},H={USER_ACTION:"UserAction",ENABLE:"Enable",HIDE:"Hide",UPDATE:"Update",MENU_ACTION:"MenuAction"},z={LABEL_MIN_WIDTH:"150px",DEFAULT_LOGO:"statics/klab-logo.png"},B=/^\d+\D{1,2}/,K=function(e){var t={};return Object.keys(e.attributes).forEach(function(n){var o=e.attributes[n];switch(n){case"hidden":t.display="none";break;case"width":"content"===o?t["flex-basis"]="0":o.startsWith("col")?t["flex-grow"]=o.substring(3):t.width="".concat(o).concat(B.test(o)?"":"px");break;case"height":t.height="".concat(o).concat(B.test(o)?"":"px");break;case"hfill":e.attributes.hbox&&(t["flex-wrap"]="nowrap"),t.width="100%";break;case"vfill":t["flex-grow"]=1;break;case"top":case"bottom":case"middle":e.attributes.parentAttributes&&(e.attributes.parentAttributes.hbox||e.attributes.parentAttributes.vbox)?t["align-self"]="top"===n?"flex-start":"bottom"===n?"flex-end":"center":e.attributes.hbox||e.attributes.vbox?t["justify-content"]=n:t["vertical-align"]=n;break;case"hbox":case"vbox":t["flex-direction"]="hbox"===n?"row":"column",e.attributes.center&&(t["align-items"]="center");break;case"left":case"right":t["text-align"]=n;break;default:break}}),t},Q={dark:{"main-color":"white","positive-color":"rgb(116, 212, 116)","negative-color":"rgb(250, 117, 117)","background-color":"rgb(18, 18, 18)","alt-background":"rgb(99,99,99)","text-color":"white","control-text-color":"black","title-color":"white","alt-color":"rgb(0, 204, 204)","font-family":"'Roboto', '-apple-system', 'Helvetica Neue', Helvetica, Arial, sans-serif","font-size":"1em","title-size":"26px","subtitle-size":"16px","line-height":"1em"},light:{"main-color":"black","background-color":"white","alt-background":"rgb(233,233,233)","text-color":"black","control-text-color":"white","title-color":"black","alt-color":"rgb(0,138,150)","font-family":"'Roboto', '-apple-system', 'Helvetica Neue', Helvetica, Arial, sans-serif","font-size":"1em","title-size":"26px","subtitle-size":"16px","line-height":"1em"},worst:{"main-color":"green","background-color":"yellow","alt-background":"fuchsia","text-color":"red","control-text-color":"yellow","title-color":"indigo","alt-color":"blue","font-family":"comics","font-size":"1.2em","title-size":"32px","subtitle-size":"20px","line-height":"1.2em"},default:{"main-color":"rgb(0, 92, 129)","background-color":"rgb(250, 250, 250)","alt-background":"rgb(222, 222, 222)","text-color":"rgb(0, 92, 129)","control-text-color":"rgb(250, 250, 250)","title-color":"rgb(0, 92, 129)","alt-color":"rgb(0, 138, 150)","font-family":"'Roboto', '-apple-system', 'Helvetica Neue', Helvetica, Arial, sans-serif","font-size":"1em","title-size":"26px","subtitle-size":"16px","line-height":"1em"}},X={DEBUGGER:"Debugger",CONSOLE:"Console"},q=[{value:"80x24",label:"80x24",cols:80,rows:24},{value:"80x43",label:"80x43",cols:80,rows:43},{value:"132x24",label:"132x24",cols:132,rows:24},{value:"132x43",label:"132x43",cols:132,rows:43}],J={REPORT:"REPORT",FIGURES:"FIGURES",TABLES:"TABLES",RESOURCES:"RESOURCES",MODELS:"MODELS",PROVENANCE:"PROVENANCE",REFERENCES:"REFERENCES"},$={REPORT:"Report",SECTION:"Section",PARAGRAPH:"Paragraph",TABLE:"Table",CHART:"Chart",FIGURE:"Figure",RESOURCE:"Resource",MODEL:"Model",REFERENCE:"Reference",CITATION:"Citation",VIEW:"View",LINK:"Link",ANCHOR:"Anchor"},Z=(o={},i()(o,$.REPORT,J.REPORT),i()(o,$.SECTION,J.REPORT),i()(o,$.PARAGRAPH,J.REPORT),i()(o,$.TABLE,J.TABLES),i()(o,$.CHART,J.REPORT),i()(o,$.FIGURE,J.FIGURES),i()(o,$.RESOURCE,J.RESOURCES),i()(o,$.MODEL,J.MODELS),i()(o,$.REFERENCE,J.REPORT),i()(o,$.CITATION,J.REPORT),i()(o,$.VIEW,J.REPORT),i()(o,$.LINK,J.REPORT),i()(o,$.ANCHOR,J.REPORT),o),ee={KLAB_AUTHORIZATION:"klab-authorization"},te={NUMBER:"NUMBER",BOOLEAN:"BOOLEAN",CONCEPT:"CONCEPT",PROCESS:"PROCESS",EVENT:"EVENT",OBJECT:"OBJECT",TEXT:"TEXT",VALUE:"VALUE",RANGE:"RANGE",ENUM:"ENUM",EXTENT:"EXTENT",TEMPORALEXTENT:"TEMPORALEXTENT",SPATIALEXTENT:"SPATIALEXTENT",ANNOTATION:"ANNOTATION",LIST:"LIST",VOID:"VOID",MAP:"MAP",TABLE:"TABLE"},ne={URL:__ENV__.KEYCLOAK_URL,REALM:"im",CLIENT_ID:"k.Explorer",TOKEN:"vue-token",REFRESH_TOKEN:"vue-refresh-token",BEARER:"Bearer "}},"7e6d":function(e,t,n){},8449:function(e,t,n){"use strict";n.d(t,"b",function(){return d});n("ac6a"),n("cadf"),n("456d");var o=n("7037"),a=n.n(o),i=(n("386d"),n("7cca")),r=n("1442"),c=n("8fec"),s=n("be3b"),l=n("741d"),u=n("2b0e"),d=new u["a"];t["a"]=function(e){var t,n=e.store,o=new URLSearchParams(window.location.search),E=o.get(i["R"].PARAMS_SESSION)||l["a"].get(i["R"].COOKIE_SESSION),f=o.get(i["R"].PARAMS_MODE)||l["a"].get(i["R"].COOKIE_MODE)||i["R"].PARAMS_MODE_IDE,T=o.get(i["R"].PARAMS_LOG)||l["a"].get(i["R"].COOKIE_LOG)||i["R"].PARAMS_LOG_HIDDEN,p=l["a"].get(i["R"].COOKIE_BASELAYER)||r["d"].DEFAULT_BASELAYER,S=l["a"].get(i["R"].COOKIE_MAPDEFAULT)||{center:r["b"].center,zoom:r["b"].zoom},m=!l["a"].has(i["R"].COOKIE_SAVELOCATION)||l["a"].get(i["R"].COOKIE_SAVELOCATION),O=l["a"].has(i["R"].COOKIE_DOCKED_STATUS),b=o.get(i["R"].PARAMS_DEBUG_REMOTE);if(b)t="true"!==b;else{var A=window.location.hostname.toLowerCase();t=-1===A.indexOf("integratedmodelling.org")&&-1===A.indexOf("klab.officialstatistics.org")}t="engine.remote "===__ENV__.ACTIVE_PROFILE;var _=o.get(i["R"].PARAMS_TOKEN);u["a"].mixin({methods:{hexToRgbValues:function(e){if("undefined"!==typeof e){var t=c["b"](e);return"".concat(t.r,", ").concat(t.g,", ").concat(t.b)}return"black"},isAcceptedKey:function(e){var t="abcdefghijklmnopqrstuvwxyz0123456789.<>=!()+-*/^";return e=e.toLowerCase(),-1!==t.indexOf(e)}}}),u["a"].prototype.$eventBus=d,n.state.data.session=E,u["a"].prototype.$mode=f,l["a"].set(i["R"].COOKIE_MODE,f,{expires:30,path:"/",secure:!0}),u["a"].prototype.$logVisibility=T,l["a"].set(i["R"].COOKIE_LOG,T,{expires:30,path:"/",secure:!0}),u["a"].prototype.$baseLayer=p,l["a"].set(i["R"].COOKIE_BASELAYER,p,{expires:30,path:"/",secure:!0}),u["a"].prototype.$mapDefaults=S,n.state.view.saveLocation=m,l["a"].set(i["R"].COOKIE_SAVELOCATION,m,{expires:30,path:"/",secure:!0}),n.state.view.saveDockedStatus=O,O&&(n.state.view.mainControlDocked=l["a"].get(i["R"].COOKIE_DOCKED_STATUS)),n.state.view.viewCoordinates=l["a"].has(i["R"].COOKIE_VIEW_COORDINATES)&&l["a"].get(i["R"].COOKIE_VIEW_COORDINATES),n.state.data.local=t,n.state.data.token=_,console.info("Session: ".concat(E," / mode: ").concat(f));var I=o.get(i["R"].PARAMS_LOCAL_HELP);n.state.view.helpBaseUrl=I?"http://".concat(I):i["s"].DEFAULT_HELP_BASE_URL;var v=o.get(i["R"].PARAMS_APP);v&&(n.state.view.klabApp=v),s["a"].get("".concat("").concat("/modeler","/capabilities"),{}).then(function(e){var t=e.data;if("object"!==a()(t))throw Error("Error asking for capabilities: no data");if(0===Object.keys(t).length)throw Error("Capabilities are empty, check it");n.state.data.capabilities=t}).catch(function(e){console.error("Error trying to retrieve capabilities: ".concat(e))})}},"8fec":function(e,t,n){"use strict";n.d(t,"d",function(){return a}),n.d(t,"b",function(){return i}),n.d(t,"c",function(){return c}),n.d(t,"a",function(){return s});n("c5f6"),n("ee1d"),n("a481"),n("6b54");var o=/^rgb(a)?\((\d{1,3}),(\d{1,3}),(\d{1,3}),?([01]?\.?\d*?)?\)$/;function a(e){var t=e.r,n=e.g,o=e.b,a=e.a,i=void 0!==a;if(t=Math.round(t),n=Math.round(n),o=Math.round(o),t>255||n>255||o>255||i&&a>100)throw new TypeError("Expected 3 numbers below 256 (and optionally one below 100)");return a=i?(256|Math.round(255*a/100)).toString(16).slice(1):"","#".concat((o|n<<8|t<<16|1<<24).toString(16).slice(1)).concat(a)}function i(e){if("string"!==typeof e)throw new TypeError("Expected a string");e=e.replace(/^#/,""),3===e.length?e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]:4===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);var t=parseInt(e,16);return e.length>6?{r:t>>24&255,g:t>>16&255,b:t>>8&255,a:Math.round((255&t)/2.55)}:{r:t>>16,g:t>>8&255,b:255&t}}function r(e){if("string"!==typeof e)throw new TypeError("Expected a string");var t=e.replace(/ /g,""),n=o.exec(t);if(null===n)return i(t);var a={r:Math.min(255,parseInt(n[2],10)),g:Math.min(255,parseInt(n[3],10)),b:Math.min(255,parseInt(n[4],10))};if(n[1]){var r=parseFloat(n[5]);a.a=100*Math.min(1,!0===Number.isNaN(r)?1:r)}return a}function c(e,t){if("string"!==typeof e)throw new TypeError("Expected a string as color");if("number"!==typeof t)throw new TypeError("Expected a numeric percent");var n=r(e),o=t<0?0:255,a=Math.abs(t)/100,i=n.r,c=n.g,s=n.b;return"#".concat((16777216+65536*(Math.round((o-i)*a)+i)+256*(Math.round((o-c)*a)+c)+(Math.round((o-s)*a)+s)).toString(16).slice(1))}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body;if("string"!==typeof e)throw new TypeError("Expected a string as color");if(!(t instanceof Element))throw new TypeError("Expected a DOM element");return getComputedStyle(t).getPropertyValue("--q-color-".concat(e)).trim()||null}},b0b2:function(e,t,n){"use strict";n.d(t,"a",function(){return P}),n.d(t,"h",function(){return D}),n.d(t,"e",function(){return x}),n.d(t,"f",function(){return k}),n.d(t,"g",function(){return U}),n.d(t,"b",function(){return V}),n.d(t,"k",function(){return F}),n.d(t,"j",function(){return Y}),n.d(t,"i",function(){return W}),n.d(t,"l",function(){return G}),n.d(t,"c",function(){return H}),n.d(t,"d",function(){return z});n("4917"),n("28a5"),n("48c0"),n("6c7b"),n("ac6a");var o=n("278c"),a=n.n(o),i=(n("c5f6"),n("ee1d"),n("8fec")),r=n("256f"),c=n("5bc3"),s=n("6c77"),l=n("1442"),u=n("f403"),d=n("7a09"),E=n("9a44"),f=n("47e4"),T=n("88da"),p=n("f822"),S=n("049d"),m=n("c4c8"),O=n("c7e3"),b=n("f384"),A=n("01ae"),_=n("7f68"),I=n("881a"),v=/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/,N=i["b"],h=i["a"],R=i["d"],C={topLeft:Object(r["l"])([-180,90],l["d"].PROJ_EPSG_4326,l["d"].PROJ_EPSG_3857),bottomLeft:Object(r["l"])([-180,-90],l["d"].PROJ_EPSG_4326,l["d"].PROJ_EPSG_3857),topRight:Object(r["l"])([180,90],l["d"].PROJ_EPSG_4326,l["d"].PROJ_EPSG_3857),bottomRight:Object(r["l"])([180,-90],l["d"].PROJ_EPSG_4326,l["d"].PROJ_EPSG_3857)},g=new _["b"],L={left:g.createLineString([new _["a"](C.topLeft[0],C.topLeft[1]),new _["a"](C.bottomLeft[0],C.bottomLeft[1])]),right:g.createLineString([new _["a"](C.topRight[0],C.topRight[1]),new _["a"](C.bottomRight[0],C.bottomRight[1])])},w=g.createPolygon([new _["a"](C.topLeft[0],C.topLeft[1]),new _["a"](C.topRight[0],C.topRight[1]),new _["a"](C.bottomRight[0],C.bottomRight[1]),new _["a"](C.bottomLeft[0],C.bottomLeft[1]),new _["a"](C.topLeft[0],C.topLeft[1])]);function P(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}function y(e){if("string"!==typeof e)throw new TypeError("Expected a string");var t=v.exec(e);if(t){var n={r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10)};return t[4]&&(n.a=parseFloat(t[4])),n}return N(e)}function D(e){return!!Number.isNaN(1*e)&&e===e.toUpperCase()}function M(e){var t={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};return"undefined"!==typeof t[e.toLowerCase()]?t[e.toLowerCase()]:null}function x(e){var t,n;if(0===e.indexOf("#"))n=e,t=N(e);else if(-1!==e.indexOf(","))t=y(e),n=R(t);else{if(n=h(e),null===n&&(n=M(e),null===n))throw new Error("Unknown color: ".concat(e));t=N(n)}return{rgb:t,hex:n,color:e}}function k(e,t,n){(null===e||null===t||n<1)&&console.warn("Bad colors: ".concat(e,", ").concat(t));for(var o,a,i,r=x(e).rgb,c=x(t).rgb,s=1/(n-1),l=[],u=0;u2&&void 0!==arguments[2]?arguments[2]:null,o=function(e,t,n){return e+(t-e)*n},i=[],r=Number((e.length-1)/(t-1)),c=a()(e,1);i[0]=c[0];for(var s=1;s0&&document.getSelection().getRangeAt(0);t.select(),document.execCommand("copy"),document.body.removeChild(t),n&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(n))}var F=new I["a"];F.inject(u["a"],d["a"],S["a"],c["a"],E["a"],f["a"],T["a"]);var Y=function(e){return e instanceof p["a"]&&(e=Object(c["b"])(e)),F.read(e)},W=function(e){return new m["a"](e).isValid()},G=function(e,t){return O["a"].union(e,t)};function j(e){var t=[];return O["a"].intersection(e,L.left)&&t.push(L.left),O["a"].intersection(e,L.right)&&t.push(L.right),t}function H(e){var t=j(e);if(0===t.length)return e;var n=e.getExteriorRing();t.forEach(function(e){n=O["a"].union(n,e)});var o=new A["a"];o.add(n);for(var a=o.getPolygons(),i=null,r=a.iterator();r.hasNext();){var c=r.next();if(!b["a"].contains(w,c)){for(var s=[],l=c.getCoordinates(),u=l.length,d=0;d0&&void 0!==arguments[0]?arguments[0]:null;if(null===e)return!1;var t=e.geometryTypes;return t&&"undefined"!==typeof t.find(function(e){return e===l["q"].TYPE_RASTER})},g=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l["g"].HIST_MAX_LENGTH;e.push(t),e.length>n&&e.shift()},L=function(e,t){if(0===e.length)return null;if(void 0===t)return e[e.length-1];var n=s()(e).reverse().find(function(e){return e.type===t});return"undefined"!==typeof n?n:null},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;if(e&&null!==t&&"function"===typeof n){var o=[].reduce,a=function e(a,i){if(a||!i)return a;if(Array.isArray(i))return o.call(Object(i),e,a);var r=n(i,t);return null===r&&i.children&&i.children.length>0?e(null,i.children):r};return a(null,e)}return null},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(e,t,function(e,t){return e.id===t?e:null})},y=function(e){var t=null!==e.parentArtifactId||null!==e.parentId&&e.rootContextId!==e.parentId,n=null!==e.parentArtifactId?e.parentArtifactId:e.parentId,o=e.main;if(!o&&t){var a=P(d["a"].getters["data/tree"],n);null!==a&&(o=o||a.userNode)}return{node:r()({id:e.id,label:e.literalValue||e.label,observable:e.observable,type:e.shapeType,dynamic:e.dynamic||!1,needUpdate:!e.contextualized,viewerIdx:e.viewerIdx,viewerType:null!==e.viewerIdx?d["a"].getters["view/viewer"](e.viewerIdx).type:null,loading:!1,children:[],childrenCount:e.childrenCount,childrenLoaded:0,siblingsCount:e.siblingsCount,parentArtifactId:e.parentArtifactId,tickable:null!==e.viewerIdx&&!e.empty||e.isContainer||e.childrenCount>0,disabled:e.empty&&(!e.isContainer||0===e.childrenCount)||e.singleValue||e.observationType===l["A"].TYPE_PROCESS,empty:e.empty,actions:e.actions,header:e.isContainer?"folder":"default",main:e.main,userNode:o,isContainer:e.isContainer,exportFormats:e.exportFormats,rootContextId:e.rootContextId,contextId:e.contextId,observationType:e.observationType,noTick:e.singleValue||e.observationType===l["A"].TYPE_PROCESS},e.isContainer&&{childrenLoaded:0},e.siblingsCount&&{siblingsCount:e.siblingsCount},{parentId:n}),parentId:n}},D=function(e){return new Promise(function(t,n){var o=null;if(null!==e)if(o=Object(_["g"])(e),null===o){var a=e.substring(5);fetch("https://epsg.io/?format=json&q=".concat(a)).then(function(a){return a.json().then(function(a){var i=a.results;if(i&&i.length>0)for(var r=0,c=i.length;r0&&u&&u.length>0&&d&&4===d.length){var f="EPSG:".concat(l);v["a"].defs(f,u),Object(I["a"])(v["a"]),o=Object(_["g"])(f);var T=Object(_["i"])(E["d"].PROJ_EPSG_4326,o),p=Object(A["a"])([d[1],d[2],d[3],d[0]],T);o.setExtent(p),console.info("New projection registered: ".concat(f)),t(o)}else n(new Error("Some error in projection search result: ".concat(JSON.stringify(s))))}else n(new Error("Some error in projection search result: no results"))}else n(new Error("Unknown projection: ".concat(e)))})})}else t(o);else t(E["d"].PROJ_EPSG_4326)})};function M(e){return x.apply(this,arguments)}function x(){return x=a()(regeneratorRuntime.mark(function e(t){var n,o,a,i,r;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.spatialProjection,e.next=3,D(n);case 3:if(o=e.sent,a=t.encodedShape,a){e.next=7;break}return e.abrupt("return",null);case 7:return 0===a.indexOf("LINEARRING")&&(a=a.replace("LINEARRING","LINESTRING")),i=null,-1!==a.indexOf("POINT")?(r=R.readFeature(a,{dataProjection:o,featureProjection:E["d"].PROJ_EPSG_3857}),null!==r&&null!==r.getGeometry()&&(i=r.getGeometry().getFirstCoordinate())):i=R.readGeometry(a,{dataProjection:o,featureProjection:E["d"].PROJ_EPSG_3857}),t.id===t.rootContextId&&(t.zIndexOffset=0),e.abrupt("return",i);case 12:case"end":return e.stop()}},e)})),x.apply(this,arguments)}function k(e){return U.apply(this,arguments)}function U(){return U=a()(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.response?{status:t.response.data.status||t.response.status,message:t.response.data.message||t.response.data.error||t.response.data||(""!==t.response.statusText?t.response.statusText:"Unknown"),axiosError:t}:t.request?{status:t.request.status,message:t.message,axiosError:t}:{status:"UNKNOWN",message:t.message,axiosError:t},!(n instanceof Blob)){e.next=5;break}return e.next=4,n.text();case 4:n=e.sent;case 5:return e.abrupt("return",n);case 6:case"end":return e.stop()}},e)})),U.apply(this,arguments)}var V=function(e,t,n,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;d["a"].dispatch("view/setSpinner",r()({},l["J"].SPINNER_LOADING,{owner:e}),{root:!0}),N["a"].get(t,n).then(function(t){t&&o(t,function(){d["a"].dispatch("view/setSpinner",r()({},l["J"].SPINNER_STOPPED,{owner:e}),{root:!0})})}).catch(function(){var t=a()(regeneratorRuntime.mark(function t(n){var o,a;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,k(n);case 2:if(o=t.sent,a=null,null!=o&&(a=o.message),d["a"].dispatch("view/setSpinner",r()({},l["J"].SPINNER_ERROR,{owner:e,errorMessage:a}),{root:!0}),null===i){t.next=10;break}i(n),t.next=11;break;case 10:throw n;case 11:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}())},F=function(e){if("RAMP"===e.type&&e.colors.length>1&&e.colors.length<256){for(var t=[],n=[],o=e.colors.length,a=Math.floor(256/o),i=a+(256-o*a),r=0;rl["q"].PARAM_VIEWPORT_MAX_SIZE&&(a=l["q"].PARAM_VIEWPORT_MAX_SIZE),P=L.getExtent(),y="".concat("").concat(u["c"].REST_SESSION_VIEW,"data/").concat(t.id),M=new b["a"]({projection:R,imageExtent:P,url:y,style:E["e"].POLYGON_OBSERVATION_STYLE,imageLoadFunction:function(e,n){d["a"].dispatch("view/setSpinner",r()({},l["J"].SPINNER_LOADING,{owner:"".concat(n).concat(c)}),{root:!0}),d["a"].dispatch("data/setLoadingLayers",{loading:!0,observation:t}),N["a"].get(n,{params:r()({format:l["q"].TYPE_RASTER,viewport:a},-1!==A&&{locator:"T1(1){time=".concat(A,"}")}),responseType:"blob"}).then(function(o){if(o){var a=new FileReader;a.readAsDataURL(o.data),a.onload=function(){var o=e.getImage();o.src=a.result,d["a"].dispatch("view/setSpinner",r()({},l["J"].SPINNER_STOPPED,{owner:"".concat(n).concat(c)}),{root:!0}),t.tsImages.push("T".concat(c)),t.loaded=!0,d["a"].dispatch("data/setLoadingLayers",{loading:!1,observation:t}),V("cm_".concat(t.id),y,{params:r()({format:l["q"].TYPE_COLORMAP},-1!==c&&{locator:"T1(1){time=".concat(c,"}")})},function(e,n){e&&e.data&&(t.colormap=F(e.data)),n()})},a.onerror=function(e){d["a"].dispatch("view/setSpinner",r()({},l["J"].SPINNER_ERROR,{owner:"".concat(n).concat(c),errorMessage:e}),{root:!0})}}}).catch(function(e){throw d["a"].dispatch("view/setSpinner",r()({},l["J"].SPINNER_ERROR,{owner:"".concat(n).concat(c),errorMessage:e.message}),{root:!0}),d["a"].dispatch("data/setLoadingLayers",{loading:!1,observation:t}),e})}}),e.abrupt("return",new O["a"]({id:w,source:M}));case 19:return 0===g.indexOf("LINESTRING")||0===g.indexOf("MULTILINESTRING")?(x=E["e"].LNE_OBSERVATION_STYLE,t.zIndexOffset=E["d"].ZINDEX_BASE*E["d"].ZINDEX_MULTIPLIER_LINES):0===g.indexOf("POINT")||0===g.indexOf("MULTIPOINT")?(x=Object(f["d"])(E["e"].POINT_OBSERVATION_SVG_PARAM,t.label),t.zIndexOffset=E["d"].ZINDEX_BASE*E["d"].ZINDEX_MULTIPLIER_POINTS):(x=E["e"].POLYGON_OBSERVATION_STYLE,t.zIndexOffset=E["d"].ZINDEX_BASE*E["d"].ZINDEX_MULTIPLIER_POLYGONS),k=new m["a"]({geometry:L,name:t.label,id:w}),U=new p["a"]({id:w,source:new T["a"]({features:[k]}),style:x}),e.abrupt("return",U);case 23:case"end":return e.stop()}},e)})),W.apply(this,arguments)}function G(e,t){d["a"].$app.sendStompMessage(e(t,d["a"].state.data.session).body)}var j=function(e){switch(e){case"FORTHCOMING":return{icon:"mdi-airplane-landing",tooltip:"forthcoming"};case"EXPERIMENTAL":return{icon:"mdi-flask-outline",tooltip:"experimental"};case"NEW":return{icon:"mdi-new-box",tooltip:"new"};case"STABLE":return{icon:"mdi-check-circle-outline",tooltip:"stable"};case"BETA":return{icon:"mdi-radioactive",tooltip:"beta"};default:return{}}},H=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e,t){return e.id===t?e:null};if(e&&null!==t){var o=[].reduce,a=function e(a,i){if(a||!i)return a;if(Array.isArray(i))return o.call(Object(i),e,a);var r=n(i,t);return null===r&&i.components&&i.components.length>0?e(null,i.components):r};return a(null,e)}return null},z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return H(s()(e.panels).concat(s()(e.leftPanels),s()(e.rightPanels),[e.header,e.footer]).filter(function(e){return null!==e}),t,n)};function B(e,t,n,o){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;V("dw_".concat(e),"".concat("").concat(u["c"].REST_SESSION_VIEW,"data/").concat(e),{params:r()({format:t,outputFormat:o.value,adapter:o.adapter},-1!==a&&{locator:"T1(1){time=".concat(a,"}")}),responseType:"blob"},function(e,t){var a=window.URL.createObjectURL(new Blob([e.data])),i=document.createElement("a");i.href=a,i.setAttribute("download","".concat(n,".").concat(o.extension)),document.body.appendChild(i),i.click(),i.remove(),window.URL.revokeObjectURL(a),t()})}function K(e,t){var n=[Object.assign({},e)];return delete n[0][t],e[t]&&e[t].length>0?n.concat(e[t].map(function(e){return K(e,t)}).reduce(function(e,t){return e.concat(t)},[])):n}}).call(this,n("b639").Buffer)},be3b:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var o=n("bc3a"),a=n.n(o),i=n("7cca"),r=a.a.create();t["b"]=function(e){var t=e.Vue,n=e.store;localStorage.getItem(i["u"].TOKEN)&&(r.defaults.headers.common.Authorization="Bearer ".concat(localStorage.getItem(i["u"].TOKEN))),console.debug(n.state.data.session),n.state.data.session?r.defaults.headers.common[i["r"].KLAB_AUTHORIZATION]=n.state.data.session:console.warn("No session established en axios header, check it"),n.state.data.token&&(r.defaults.headers.common.Authentication=n.state.data.token),t.prototype.$axios=r}},d247:function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"a",function(){return a}),n.d(t,"c",function(){return i});n("0d6d"),Object.freeze({SEARCH_TYPES:[{enumId:"CONCEPT",name:"CONCEPT",color:"#ff0000"},{enumId:"OPERATOR",name:"OPERATOR",color:"#ffff00"},{enumId:"OBSERVATION",name:"OBSERVATION",color:"#ff00ff"},{enumId:"MODEL",name:"MODEL",color:"#0000ff"}]});var o=Object.freeze({CLASS_USERCONTEXTCHANGE:"UserContextChange",CLASS_SEARCH:"Search",CLASS_OBSERVATIONLIFECYCLE:"ObservationLifecycle",CLASS_TASKLIFECYCLE:"TaskLifecycle",CLASS_USERCONTEXTDEFINITION:"UserContextDefinition",CLASS_USERINTERFACE:"UserInterface",CLASS_NOTIFICATION:"Notification",CLASS_RUN:"Run",TYPE_REGIONOFINTEREST:"RegionOfInterest",TYPE_FEATUREADDED:"FeatureAdded",TYPE_PERIODOFINTEREST:"PeriodOfInterest",TYPE_SUBMITSEARCH:"SubmitSearch",TYPE_MATCHACTION:"MatchAction",TYPE_REQUESTOBSERVATION:"RequestObservation",TYPE_RESETCONTEXT:"ResetContext",TYPE_RECONTEXTUALIZE:"Recontextualize",TYPE_TASKINTERRUPTED:"TaskInterrupted",TYPE_SCALEDEFINED:"ScaleDefined",TYPE_DATAFLOWNODEDETAIL:"DataflowNodeDetail",TYPE_DATAFLOWNODERATING:"DataflowNodeRating",TYPE_CHANGESETTING:"ChangeSetting",TYPE_USERINPUTPROVIDED:"UserInputProvided",TYPE_WATCHOBSERVATION:"WatchObservation",TYPE_ENGINEEVENT:"EngineEvent",TYPE_VIEWACTION:"ViewAction",TYPE_RUNAPP:"RunApp",TYPE_CONSOLECREATED:"ConsoleCreated",TYPE_CONSOLECLOSED:"ConsoleClosed",TYPE_COMMANDREQUEST:"CommandRequest",PAYLOAD_CLASS_SPATIALEXTENT:"SpatialExtent",PAYLOAD_CLASS_SPATIALLOCATION:"SpatialLocation",PAYLOAD_CLASS_TEMPORALEXTENT:"TemporalExtent",PAYLOAD_CLASS_SEARCHREQUEST:"SearchRequest",PAYLOAD_CLASS_SEARCHMATCHACTION:"SearchMatchAction",PAYLOAD_CLASS_OBSERVATIONREQUEST:"ObservationRequest",PAYLOAD_CLASS_INTERRUPTTASK:"InterruptTask",PAYLOAD_CLASS_SCALEREFERENCE:"ScaleReference",PAYLOAD_CLASS_DATAFLOWSTATE:"DataflowState",PAYLOAD_CLASS_CONTEXTUALIZATIONREQUEST:"ContextualizationRequest",PAYLOAD_CLASS_SETTINGCHANGEREQUEST:"SettingChangeRequest",PAYLOAD_CLASS_USERINPUTRESPONSE:"UserInputResponse",PAYLOAD_CLASS_WATCHREQUEST:"WatchRequest",PAYLOAD_CLASS_EMPTY:"String",PAYLOAD_CLASS_VIEWACTION:"ViewAction",PAYLOAD_CLASS_MENUACTION:"MenuAction",PAYLOAD_CLASS_LOADAPPLICATIONREQUEST:"LoadApplicationRequest",PAYLOAD_CLASS_CONSOLENOTIFICATION:"ConsoleNotification"}),a=Object.freeze({CLASS_TASKLIFECYCLE:"TaskLifecycle",CLASS_OBSERVATIONLIFECYCLE:"ObservationLifecycle",CLASS_QUERY:"Query",CLASS_USERCONTEXTCHANGE:"UserContextChange",CLASS_NOTIFICATION:"Notification",CLASS_USERCONTEXTDEFINITION:"UserContextDefinition",CLASS_USERINTERFACE:"UserInterface",CLASS_AUTHORIZATION:"Authorization",CLASS_VIEWACTOR:"ViewActor",TYPE_DATAFLOWCOMPILED:"DataflowCompiled",TYPE_DATAFLOWSTATECHANGED:"DataflowStateChanged",TYPE_DATAFLOWDOCUMENTATION:"DataflowDocumentation",TYPE_NEWOBSERVATION:"NewObservation",TYPE_MODIFIEDOBSERVATION:"ModifiedObservation",TYPE_QUERYRESULT:"QueryResult",TYPE_RESETCONTEXT:"ResetContext",TYPE_SCALEDEFINED:"ScaleDefined",TYPE_USERINPUTREQUESTED:"UserInputRequested",TYPE_USERPROJECTOPENED:"UserProjectOpened",TYPE_PROJECTFILEMODIFIED:"ProjectFileModified",TYPE_SCHEDULINGSTARTED:"SchedulingStarted",TYPE_SCHEDULINGFINISHED:"SchedulingFinished",TYPE_NETWORKSTATUS:"NetworkStatus",TYPE_CREATEVIEWCOMPONENT:"CreateViewComponent",TYPE_SCHEDULEADVANCED:"ScheduleAdvanced",TYPE_ENGINEEVENT:"EngineEvent",TYPE_SETUPINTERFACE:"SetupInterface",TYPE_VIEWACTION:"ViewAction",TYPE_VIEWAVAILABLE:"ViewAvailable",TYPE_VIEWSETTING:"ViewSetting",TYPE_COMMANDRESPONSE:"CommandResponse",TYPE_DOCUMENTATIONCHANGED:"DocumentationChanged",TYPE_CREATEMODALWINDOW:"CreateModalWindow",TYPE_AUTHORITYDOCUMENTATION:"AuthorityDocumentation",TYPE_PROVENANCECHANGED:"ProvenanceChanged",TYPE_TASKSTARTED:"TaskStarted",TYPE_TASKFINISHED:"TaskFinished",TYPE_TASKABORTED:"TaskAborted",TYPE_DEBUG:"Debug",TYPE_INFO:"Info",TYPE_WARNING:"Warning",TYPE_ERROR:"Error",PAYLOAD_CLASS_TASKREFERENCE:"TaskReference",PAYLOAD_CLASS_CONTEXTUALIZATIONNOTIFICATION:"ContextualizationNotification",PAYLOAD_CLASS_DATAFLOWSTATE:"DataflowState",PAYLOAD_CLASS_OBSERVATIONREFERENCE:"ObservationReference",PAYLOAD_CLASS_SEARCHRESPONSE:"SearchResponse",PAYLOAD_CLASS_SCALEREFERENCE:"ScaleReference",PAYLOAD_CLASS_USERINPUTREQUEST:"UserInputRequest",PAYLOAD_CLASS_SCHEDULERNOTIFICATION:"SchedulerNotification",PAYLOAD_CLASS_NETWORKREFERENCE:"NetworkReference",PAYLOAD_CLASS_EMPTY:"String",PAYLOAD_CLASS_VIEWCOMPONENT:"ViewComponent",PAYLOAD_CLASS_ENGINEEVENT:"EngineEvent",PAYLOAD_CLASS_LAYOUT:"Layout",PAYLOAD_CLASS_VIEWACTION:"ViewAction",PAYLOAD_CLASS_VIEWSETTING:"ViewSetting",PAYLOAD_CLASS_KNOWLEDGEVIEWREFERENCE:"KnowledgeViewReference",PAYLOAD_CLASS_CONSOLENOTIFICATION:"ConsoleNotification",PAYLOAD_CLASS_DOCUMENTATIONEVENT:"DocumentationEvent"}),i=Object.freeze({REST_STATUS:"".concat("/modeler","/engine/status"),REST_SESSION_INFO:"".concat("/modeler","/engine/session/info"),REST_SESSION_VIEW:"".concat("/modeler","/engine/session/view/"),REST_SESSION_OBSERVATION:"".concat("/modeler","/engine/session/observation/"),REST_UPLOAD:"".concat("/modeler","/resource/put"),REST_GET_PROJECT_RESOURCE:"".concat("/modeler","/engine/project/resource/get"),REST_API_LOGOUT:"".concat("/modeler/api/v2","/users/log-out"),REST_API_EXPORT:"".concat("/modeler/api/v2","/public/export")})},e7d8:function(e,t,n){"use strict";var o=n("2b0e"),a=n("a925"),i={label:{appTitle:"k.LAB Explorer EN",appRunning:"Running on Quasar v{version}",appClose:"Close",appOK:"Ok",appAccept:"Accept",appYES:"Yes",appNO:"No",appCancel:"Cancel",appRetry:"Retry",appNext:"Next",appPrevious:"Previous",appWarning:"Warning",appPlay:"Play",appReplay:"Replay",appPause:"Pause",appReload:"Reload",appPrint:"Print",appSetDefault:"Set as default",klabNoMessage:"No message",klabUnknownError:"Unknown error",klabNoDate:"No date",klabMessagesToSend:"There are one message in queue",modalNoConnection:"No connection, please wait",appFooter:"k.LAB Explorer - 2018",treeTitle:"Observation",reconnect:"Reconnect",unknownLabel:"Unknown",context:"context",noContext:"",noContextPlaceholder:"",contextShape:"context shape",noObservation:"No observations available",searchPlaceholder:"Search knowledge",fuzzySearchPlaceholder:"Free search",askForObservation:"Observing {urn}",noTokenDescription:"No description available",btnContextReset:"Reset context",contextReset:"Context reset",itemCounter:"{loaded} of {total}",logTab:"Log",treeTab:"Tree",noHistogramData:"No data",noInfoValues:"",noScaleReference:"",mcMenuScale:"Space & time:",mcMenuContext:"Context",mcMenuOption:"Options",mcMenuSettings:"Settings",mcMenuHelp:"Help",showTutorial:"Show tutorial",showHelp:"Show help",refreshSize:"Refresh window size",titleOutputFormat:"Download observation",askForOuputFormat:"Select format",titleChangeScale:"Change {type} scale",askForNewScale:"Select new scale",resolutionLabel:"Resolution value",unitLabel:"Unit value",clickToEditScale:"Click to edit",clickToLock:"Click to lock scale",clickToUnlock:"Click to unlock scale",scaleLocked:"{type} scale locked",spaceScale:"Space",timeScale:"Time",unitCentimeter:"Centimeters",unitMeter:"Meters",unitKilometer:"Kilometers",unitMillennium:"Millennium",unitCentury:"Century",unitDecade:"Decade",unitYear:"Year",unitMonth:"Month",unitWeek:"Week",unitDay:"Day",unitHour:"Hour",unitMinute:"Minute",unitSecond:"Second",unitMillisecond:"Millisecond",timeOrigin:"Initial time",labelTimeStart:"Start time",labelTimeEnd:"End time",labelSpatial:"spatial",labelTemporal:"temporal",newContext:"New context",previousContexts:"Previous contexts",drawCustomContext:"Draw context",eraseCustomContext:"Erase custom context",addToCustomContext:"Add shape",drawPoint:"Point",drawLineString:"Line",drawPolygon:"Polygon",drawCircle:"Circle",optionShowAll:"Show all",optionSaveLocation:"Remember location",saveDockedStatus:"Remember docked status",noNodes:"No observations",loadShowData:"Load and show data",interactiveMode:"Interactive mode",noInputSectionTitle:"No section title",cancelInputRequest:"Cancel run",resetInputRequest:"Use defaults",submitInputRequest:"Submit",IDLAlertTitle:"Warning!",recontextualization:"Set as context",rememberDecision:"Don't show again",titleCommentResource:"Comment on resource",sendComment:"Send",noTimeSet:"Initial state",timeResolutionMultiplier:"Multiplier",months:{m0:"January",m1:"February",m2:"March",m3:"April",m4:"May",m5:"June",m6:"July",m7:"August",m8:"September",m9:"October",m10:"November",m11:"December"},removeProposedContext:"Remove context",levelDebug:"Debug",levelInfo:"Info",levelWarning:"Warning",levelError:"Error",levelEngineEvent:"Engine event",userDetails:"User details",unknownUser:"Unknown user",userId:"Id:",userEmail:"Email:",userLastLogin:"Last login:",userGroups:"Groups:",appsList:"Available apps",appsClose:"Close app",appsLogout:"Logout",reloadApplications:"Reload applications",noLayoutLabel:"No title",noLayoutDescription:"No description",kwTable:"Table",kwChart:"Chart",openTerminal:"Open terminal",openDebugger:"Open debugger",titleSelectTerminalSize:"Select terminal size",terminalDeleteHistory:"Delete history",terminalResizeWindow:"Resize terminal window",terminalMinimize:"Minimize terminal",terminalMaximize:"Maximize terminal",terminalClose:"Close terminal",noDocumentation:"No elements available for this view",tableDownloadAsXSLX:"Download table as .xslx",tableCopy:"Copy table to clipboard",resettingContext:"Resetting context",reportTable:"Table",reportFigure:"Figure",viewCoordinates:"Show coordinates"},messages:{connectionClosed:"Connection closed",connectionWorking:"Trying to reconnect",connectionUnknown:"Starting...",noSpaceAllowedInSearch:"Spaces cannot be used in the search box",noSearchResults:"No search results",noActionForObservation:"No actions available",noTime:"no time",emptyReport:'
Empty report
',noLoadedReport:"No report loaded",copiedToClipboard:"Copied to clipboard",customCopyToClipboard:"{what} copied to clipboard",changeScaleResolutionError:"Resolution must be positive",updateScale:"{type} scale updated",updateNextScale:"New {type} scale have been stored, press refresh to update",invalidGeometry:"Polygon is not valid",geolocationWaitingTitle:"Enable geolocation?",geolocationWaitingText:"k.Explorer can detect your current location to initialize the geographical viewer.
In order to do so, you need to authorize geolocation.
This is merely for your convenience and does not affect operation.
Your choice will be remembered and can be changed at any time.",geolocationErrorPermissionDenied:"Geolocation has not been authorized",geolocationErrorPositionUnavailable:"Location information is unavailable",geolocationErrorTimeout:"A request to get the user location timed out",geolocationErrorUnknown:"An unknown error occurred",unknownSearchObservation:"Previous observations results",noLogItems:"Empty log",noLevelSelected:"No levels selected",uploadComplete:"Upload of file {fileName} complete",IDLAlertText:"Actual view crossing the International Date Line. A drawn context is needed",lastTermAlertText:"No more terms allowed",parenthesisAlertText:"You have open parenthesis",emptyFreeTextSearch:"Empty search is not allowed",fuzzyModeOff:"Free search off",fuzzyModeOn:"Free search on",treeNoResult:"No results",treeNoNodes:"No data",treeNoResultUser:"No main observations",treeNoResultUserWaiting:"Computing...",treeNoResultNoUser:"No observations",treeNoMainSummary:"Other observations",thankComment:"Comment has been sent",confirmRescaleContext:"The context will be recreate with new resolution.\nAre you sure?",loadingChildren:"Loading children...",waitingLocation:"Searching for {location}...",waitingObservationInit:"Initializing observation...",availableInFuture:"This feature will be available soon",timeEndBeforeTimeStart:"End time cannot be before start time",timeEndModified:"Multiplier is not used because the end time was manually changed",pressToChangeSpeed:"Press to play
Hold to change speed
Actual speed x{multiplier}",resourcesValidating:"Engine is busy",presentationBlocked:'

Can\'t access online help resources: check your network connection

A browser extension may also be interfering

',noAppsAvailable:"No available apps",noGroupsAssigned:"No groups assigned",appLoading:"Loading app {app}",errorLoadingApp:"Error loading app {app}",reloadApp:"Reload application",errorLoggingOut:"Error logging out, contact support",terminalHello:"Welcome to k.LAB {type}",noDocumentation:"No documentation available",confirmExitPage:"Data will be lost if you leave the page, are you sure?",tableCopied:"Table copied to clipboard",invalidSession:"Invalid session",sessionClosed:"Session closed by server",unknownSessionError:"Problem with session",youHaveGOT:"Winter is coming"},tooltips:{treePane:"View tree",showLogPane:"View log",hideLogPane:"Hide log",resetContext:"Reset context",interruptTask:"Interrupt task {taskDescription}",dataViewer:"View data",reportViewer:"View report",documentationViewer:"View documentation",scenarios:"Scenarios",observers:"Observers",noReportTask:"Cannot view report,\nwait for task end",noReportObservation:"Report not available,\nno observations",noDocumentation:"Documentation not available,\nno observations",noDataflow:"Dataflow not availble",noDataflowInfo:"No details",dataflowViewer:"View data flow",provenanceViewer:"View provenance (will be...)",undock:"Undock",copyEncodedShapeToClipboard:"Copy context shape to clipboard",cancelInputRequest:"Cancel run",resetInputRequest:"Use default values",submitInputRequest:"Submit values",displayMainTree:"Display main tree",hideMainTree:"Hide main tree",rateIt:"Rate resource",commentIt:"Comment on resource",refreshScale:"Refresh context with new scale(s)",clickToEdit:"Click to edit {type} scale",palette:"No palette",unknown:"To be decided",noKnowledgeViews:"No knowledge views",knowledgeViews:"Knowledge views",uploadData:"Upload data (forthcoming)"},errors:{connectionError:"Connection error",searchTimeout:"Search timeout",uploadError:"Upload error for the file {fileName}"},engineEventLabels:{evtResourceValidation:"Resource validation"},langName:"English"},r={label:{appTitle:"k.LAB Explorer ES",appRunning:"Ejecutándose sobre Quasar v{version}",appClose:"Cerrar",appOK:"Ok",appCancel:"Cancelar",appRetry:"Reintentar",appNext:"Siguiente",appPrevious:"Precedente",klabNoMessage:"No hay ningún mensaje",klabUnknownError:"Error desconocido",klabNoDate:"No hay fecha",klabMessagesToSend:"Hay un mensaje en la cola",modalNoConnection:"No hay conexión, esperar",appFooter:"k.LAB Explorer - 2018",treeTitle:"Observaciones",reconnect:"Reconectar",unknownLabel:"Desconocido",context:"contesto",noContext:"",contextShape:"context shape",noObservation:"No hay observaciones",searchPlaceholder:"Buscar in k.LAB",fuzzySearchPlaceholder:"Buscar",askForObservation:"Pidiendo {urn}",noTokenDescription:"No hay descripción",btnContextReset:"Resetear contexto",contextReset:"Contexto reseteado",itemCounter:"{loaded} de {total}",logTab:"Log",treeTab:"Árbol",noHistogramData:"No data",noInfoValues:"",noScaleReference:"",mcMenuScale:"Espacio y tiempo:",mcMenuContext:"Contexto",mcMenuOption:"Optciones",titleOutputFormat:"Download observación",askForOuputFormat:"Seleccionar un formato",titleChangeScale:"Cambiar escala",askForNewScale:"Seleccionar nueva escala",resolutionLabel:"Valor de la escala",unitLabel:"Unidad de la escala",clickToEditScale:"Click para modificar",clickToLock:"Click para bloquear la escala",clickToUnlock:"Click para desbloquear la escala",scaleLocked:"{type} escala bloqueada",spaceScale:"Espacio",timeScale:"Tiempo",labelCm:"Centimetros",labelM:"Metros",labelKm:"Kilometros",labelSpatial:"espacial",labelTemporal:"temporal",newContext:"Nuevo contexto",previousContexts:"Contextos prévios",drawCustomContext:"Dibujar contexto",eraseCustomContext:"Borrar contexto",addToCustomContext:"Añadir shape",drawPoint:"Punto",drawLineString:"Línea",drawPolygon:"Polígono",drawCircle:"Circulo",optionShowAll:"Ver todas",optionSaveLocation:"Recordar posición",noNodes:"No results: is waiting?",loadShowData:"Cargar y visualizar datos",interactiveMode:"Modo interactivo",noInputSectionTitle:"No section title",cancelInputRequest:"Cancelar ejecución",resetInputRequest:"Utilizar defaults",submitInputRequest:"Enviar",IDLAlertTitle:"Cuidado!",recontextualization:"Fijar como contexto",rememberDecision:"Recordar mi elección"},messages:{connectionClosed:"Conexión cerrada",connectionWorking:"Intentando reconectar",connectionUnknown:"Inicializando...",noSpaceAllowedInSearch:"No está permitido utilizar espacios en la búsqueda",noSearchResults:"No hay resultados",noActionForObservation:"No hay acciones disponibles",noTime:"sin información",emptyReport:'',noLoadedReport:"No se ha cargado ningun report",copiedToClipboard:"Copiado",customCopyToClipboard:"{what} copiado",changeScaleResolutionError:"La resolución tiene que ser positiva",updateScale:"Actualizada la escala {type}, nuevo valor {resolution} {unit}",invalidGeometry:"Polígono no válido",geolocationWaitingTitle:"¿Habilitar la geolocalización?",geolocationWaitingText:"k.Explorer puede detectar tu posición actual para inicializar la vista geográfica.
Para hacer eso, hay que autorizar la geolocalización.
Esto es solamente por comodidad yno afecta a la operatividad.
Your choice will be remembered and can be changed at any time.",geolocationErrorPermissionDenied:"No se ha autorizado la geolocalización",geolocationErrorPositionUnavailable:"No hay información de posicionamiento",geolocationErrorTimeout:"Se ha superado el tiempo de espera para la geolocalización",geolocationErrorUnknown:"Ha habido un error desconocido",needHelpTitle:"How to use",needHelp0Text:"To use this, you need to know various things:",needHelp1Text:"The first",needHelp2Text:"The second",needHelp3Text:"The last",unknownSearchObservation:"Resultado de observaciones previas",noLogItems:"No hay elementos en el log",uploadComplete:"Upload del file {fileName} completado",IDLAlertText:"La selección actual cruza la IDL. Sólo está permitido en caso de dibujar un contexto",lastTermAlertText:"No están permitidos mas tokens",parenthesisAlertText:"Parentesis no balanceadas",emptyFreeTextSearch:"Búsqueda vacía",fuzzyModeOff:"Búsqueda libre desactivada",fuzzyModeOn:"Búsqueda libre activada",youHaveGOT:"Winter is coming"},tooltips:{treePane:"Ver árbol",logPane:"Ver log",resetContext:"Reset context",interruptTask:"Interrumpir proceso {taskDescription}",dataViewer:"Ver datos",reportViewer:"Ver report",noReportTask:"Cannot view report,\nwait for task end",noReportObservation:"Report no disponibile,\nno hay observaciones",noDataflow:"Dataflow no disponible",dataflowViewer:"Ver data flow",provenanceViewer:"Ver provenance (will be...)",undock:"Desacoplar",copyEncodedShapeToClipboard:"Copiar el contexto en el portapapeles",cancelInputRequest:"Cancelar ejecución",resetInputRequest:"Utilizar default",submitInputRequest:"Enviar"},errors:{connectionError:"Error de conexión",searchTimeout:"Tiempo de busqueda terminado",uploadError:"Error durante el upload del file {fileName}"},langName:"Español"},c={label:{appTitle:"k.LAB Explorer IT",appRunning:"Esecutandosi con Quasar v{version}",appClose:"Chiudi",appOK:"Ok",appCancel:"Cancellare",appRetry:"Riprovare",appNext:"Successiva",appPrevious:"Precedente",klabNoMessage:"Nessun messaggio",klabUnknownError:"Errore sconosciuto",klabNoDate:"Nessuna data",klabMessagesToSend:"C'è un messaggio in coda",modalNoConnection:"Non c'è connessione",appFooter:"k.LAB Explorer - 2018",treeTitle:"Osservazioni",reconnect:"Riconnettere",unknownLabel:"Sconosciuto",context:"contesto",noContext:"",contextShape:"context shape",noObservation:"Nessuna osservazione disponibile",searchPlaceholder:"Cerca in k.LAB",fuzzySearchPlaceholder:"Cerca",askForObservation:"Chiedendo {urn}",noTokenDescription:"Descrizione non disponibile",btnContextReset:"Resettare il contesto",contextReset:"Contesto resettato",itemCounter:"{loaded} di {total}",logTab:"Log",treeTab:"Albero",noHistogramData:"No data",noInfoValues:"",noScaleReference:"",mcMenuScale:"Spazio e tempo",mcMenuContext:"Contesto",mcMenuOption:"Optziono",titleOutputFormat:"Download osservazione",askForOuputFormat:"Selezionare un formato",titleChangeScale:"Cambiare scala",askForNewScale:"Seleccionar la nueva escala",resolutionLabel:"Valore della scala",unitLabel:"Unità della scala",clickToEditScale:"Click per modificare",clickToLock:"Click per bloccare la scala",clickToUnlock:"Click per sbloccare la scala",scaleLocked:"{type} scala bloccata",spaceScale:"Spacio",timeScale:"Tempo",labelCm:"Centimetri",labelM:"Metri",labelKm:"Kilometri",labelSpatial:"spaziale",labelTemporal:"temporale",newContext:"Constesto nuovo",previousContexts:"Contesti precedenti",drawCustomContext:"Disegnare contesto",eraseCustomContext:"Eliminare contesto",addToCustomContext:"Aggiungere shape",drawPoint:"Punto",drawLineString:"Linea",drawPolygon:"Poligono",drawCircle:"Cerchio",optionShowAll:"Vedere tutte",optionSaveLocation:"Ricordare posizione",noNodes:"No results: is waiting?",loadShowData:"Caricare e visualizzare dati",interactiveMode:"Modo interattivo",noInputSectionTitle:"Sezione senza titolo",cancelInputRequest:"Cancellare esecuzion",resetInputRequest:"Utilizzare defaults",submitInputRequest:"Inviare",IDLAlertTitle:"Attenzione!",recontextualization:"Settare come contesto",rememberDecision:"Ricordare la mia decisione"},messages:{connectionClosed:"Connessione chiusa",connectionWorking:"Cercando di riconnettere",connectionUnknown:"Inizializzando...",noSpaceAllowedInSearch:"Non è permesso utilizare spazi nella ricerca",noSearchResults:"Non esistono risultati",noActionForObservation:"Nessuna azione disponibile",noTime:"senza informazione di ora",emptyReport:'',noLoadedReport:"Non si è caricato nessun report",copiedToClipboard:"Copiato",customCopyToClipboard:"{what} copiato",changeScaleResolutionError:"La risoluzione deve essere positiva",updateScale:"Attualizata la scala {type}, nuovo valore {resolution} {unit}",invalidGeometry:"Poligono non valido",geolocationWaitingTitle:"Attivare la geolocalizzazione?",geolocationWaitingText:"k.Explorer può detettare la posizione per inizializzare la vista geografica.
Perché questo sia possibile, è necessario autorizzare la geolocalizzazione.
Quest'ultimo è esclusivamente per comodità e non influenza l'operatività.
Your choice will be remembered and can be changed at any time.",geolocationErrorPermissionDenied:"Non si ha autorizzato la geolocalizzazione",geolocationErrorPositionUnavailable:"Posizione non disponibile",geolocationErrorTimeout:"Terminato il tempo di attesa per la geolocalizzazione",geolocationErrorUnknown:"Errore imprevisto",needHelpTitle:"How to use",needHelp0Text:"To use this, you need to know various things:",needHelp1Text:"The first",needHelp2Text:"The second",needHelp3Text:"The last",unknownSearchObservation:"Risultato di osservazioni previe",noLogItems:"Il log è vuoto",uploadComplete:"Upload del file {fileName} completato",IDLAlertText:"La selezione attuale incrocia la IDL. per poterlo fare è necessario disegnare un contesto",lastTermAlertText:"Non sono permessi altri token",parenthesisAlertText:"Paretesi sbilanciate",emptyFreeTextSearch:"Ricerca vuota",fuzzyModeOff:"Ricerca libers disattivata",fuzzyModeOn:"Ricerca libera attivata",youHaveGOT:"Winter is coming"},tooltips:{treePane:"Albero",logPane:"Log",resetContext:"Reset context",interruptTask:"Interrompere processo {taskDescription}",dataViewer:"Vedere dati",reportViewer:"Vedere report",noReportTask:"Report non disponibile,\naspettare",noReportObservation:"Report non disponibile,\nnon ci sono osservazioni",noDataflow:"Dataflow non disponible",dataflowViewer:"Vedere data flow (will be...)",provenanceViewer:"Vedere provenance (will be...)",undock:"Sganciare",copyEncodedShapeToClipboard:"Copia il contesto negli appunti",cancelInputRequest:"Cancellare esecuzion",resetInputRequest:"Utilizzare default",submitInputRequest:"Inviare"},errors:{connectionError:"Errore di connessione",searchTimeout:"Tempo di ricerca terminato",uploadError:"Errore durante l'upload del file {fileName}"},langName:"Italiano"},s={en:i,es:r,it:c},l=n("741d"),u=n("7cca");n.d(t,"b",function(){return E});var d=null;function E(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e||null===d){o["a"].use(a["a"]);var t="en";l["a"].has(u["R"].COOKIE_LANG)?(t=l["a"].get(u["R"].COOKIE_LANG),console.debug("Locale set from cookie to ".concat(t))):(l["a"].set(u["R"].COOKIE_LANG,t,{expires:30,path:"/",secure:!0}),console.debug("Lang cookie set to ".concat(t))),d=new a["a"]({locale:t,fallbackLocale:"en",messages:s})}return d}t["a"]=function(e){var t=e.app;t.i18n=E()}},fb1c:function(e,t,n){}},[[0,"runtime","vendor"]]]); \ No newline at end of file diff --git a/klab.engine/src/main/resources/static/ui/js/runtime.60ad2521.js b/klab.engine/src/main/resources/static/ui/js/runtime.5d4b968f.js similarity index 53% rename from klab.engine/src/main/resources/static/ui/js/runtime.60ad2521.js rename to klab.engine/src/main/resources/static/ui/js/runtime.5d4b968f.js index 5eba1c9b6..090f24d79 100644 --- a/klab.engine/src/main/resources/static/ui/js/runtime.60ad2521.js +++ b/klab.engine/src/main/resources/static/ui/js/runtime.5d4b968f.js @@ -1 +1 @@ -(function(e){function t(t){for(var n,o,i=t[0],c=t[1],l=t[2],f=0,s=[];f1&&"boolean"!==typeof e)throw new l('"allowMissing" argument must be a boolean');if(null===I(/^%?[^%]*%?$/,t))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=A(t),i=n.length>0?n[0]:"",r=N("%"+i+"%",e),s=r.name,o=r.value,a=!1,u=r.alias;u&&(i=u[0],O(n,S([0,1],u)));for(var h=1,d=!0;h=n.length){var g=f(o,p);d=!!g,o=d&&"get"in g&&!("originalValue"in g.get)?g.get:o[p]}else d=T(o,p),o=o[p];d&&!a&&(M[s]=o)}}return o}},"010e":function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["vendor"],{"0040":function(t,e,n){"use strict";var i=function(){};t.exports=function(t){return{filterToEnabled:function(e,n){var r={main:[],facade:[]};return e?"string"===typeof e&&(e=[e]):e=[],t.forEach(function(t){t&&("websocket"!==t.transportName||!1!==n.websocket?e.length&&-1===e.indexOf(t.transportName)?i("not in whitelist",t.transportName):t.enabled(n)?(i("enabled",t.transportName),r.main.push(t),t.facadeTransport&&r.facade.push(t.facadeTransport)):i("disabled",t.transportName):i("disabled from server","websocket"))}),r}}}},"00ce":function(t,e,n){"use strict";var i,r=n("a645"),s=n("417f"),o=n("dc99"),a=n("1409"),c=n("67ee"),l=n("0d25"),u=n("67d9"),h=Function,d=function(t){try{return h('"use strict"; return ('+t+").constructor;")()}catch(t){}},f=n("2aa9"),p=n("71c9"),_=function(){throw new l},m=f?function(){try{return arguments.callee,_}catch(t){try{return f(arguments,"callee").get}catch(t){return _}}}():_,g=n("5156")(),y=n("c3e0"),v="function"===typeof Reflect&&Reflect.getPrototypeOf||Object.getPrototypeOf||y,b=n("e16f"),M=n("926d"),w={},x="undefined"!==typeof Uint8Array&&v?v(Uint8Array):i,L={__proto__:null,"%AggregateError%":"undefined"===typeof AggregateError?i:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?i:ArrayBuffer,"%ArrayIteratorPrototype%":g&&v?v([][Symbol.iterator]()):i,"%AsyncFromSyncIteratorPrototype%":i,"%AsyncFunction%":w,"%AsyncGenerator%":w,"%AsyncGeneratorFunction%":w,"%AsyncIteratorPrototype%":w,"%Atomics%":"undefined"===typeof Atomics?i:Atomics,"%BigInt%":"undefined"===typeof BigInt?i:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?i:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?i:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?i:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":s,"%Float32Array%":"undefined"===typeof Float32Array?i:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?i:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?i:FinalizationRegistry,"%Function%":h,"%GeneratorFunction%":w,"%Int8Array%":"undefined"===typeof Int8Array?i:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?i:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?i:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&v?v(v([][Symbol.iterator]())):i,"%JSON%":"object"===typeof JSON?JSON:i,"%Map%":"undefined"===typeof Map?i:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&g&&v?v((new Map)[Symbol.iterator]()):i,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%Object.getOwnPropertyDescriptor%":f,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?i:Promise,"%Proxy%":"undefined"===typeof Proxy?i:Proxy,"%RangeError%":o,"%ReferenceError%":a,"%Reflect%":"undefined"===typeof Reflect?i:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?i:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&g&&v?v((new Set)[Symbol.iterator]()):i,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?i:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&v?v(""[Symbol.iterator]()):i,"%Symbol%":g?Symbol:i,"%SyntaxError%":c,"%ThrowTypeError%":m,"%TypedArray%":x,"%TypeError%":l,"%Uint8Array%":"undefined"===typeof Uint8Array?i:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?i:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?i:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?i:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"===typeof WeakMap?i:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?i:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?i:WeakSet,"%Function.prototype.call%":M,"%Function.prototype.apply%":b,"%Object.defineProperty%":p};if(v)try{null.error}catch(t){var E=v(v(t));L["%Error.prototype%"]=E}var T=function t(e){var n;if("%AsyncFunction%"===e)n=d("async function () {}");else if("%GeneratorFunction%"===e)n=d("function* () {}");else if("%AsyncGeneratorFunction%"===e)n=d("async function* () {}");else if("%AsyncGenerator%"===e){var i=t("%AsyncGeneratorFunction%");i&&(n=i.prototype)}else if("%AsyncIteratorPrototype%"===e){var r=t("%AsyncGenerator%");r&&v&&(n=v(r.prototype))}return L[e]=n,n},S={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},O=n("0f7c"),k=n("9671"),C=O.call(M,Array.prototype.concat),I=O.call(b,Array.prototype.splice),D=O.call(M,String.prototype.replace),R=O.call(M,String.prototype.slice),A=O.call(M,RegExp.prototype.exec),N=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Y=/\\(\\)?/g,P=function(t){var e=R(t,0,1),n=R(t,-1);if("%"===e&&"%"!==n)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new c("invalid intrinsic syntax, expected opening `%`");var i=[];return D(t,N,function(t,e,n,r){i[i.length]=n?D(r,Y,"$1"):e||t}),i},j=function(t,e){var n,i=t;if(k(S,i)&&(n=S[i],i="%"+n[0]+"%"),k(L,i)){var r=L[i];if(r===w&&(r=T(i)),"undefined"===typeof r&&!e)throw new l("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:r}}throw new c("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!==typeof t||0===t.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof e)throw new l('"allowMissing" argument must be a boolean');if(null===A(/^%?[^%]*%?$/,t))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=P(t),i=n.length>0?n[0]:"",r=j("%"+i+"%",e),s=r.name,o=r.value,a=!1,u=r.alias;u&&(i=u[0],I(n,C([0,1],u)));for(var h=1,d=!0;h=n.length){var g=f(o,p);d=!!g,o=d&&"get"in g&&!("originalValue"in g.get)?g.get:o[p]}else d=k(o,p),o=o[p];d&&!a&&(L[s]=o)}}return o}},"010e":function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration -var e=t.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}});return e})},"014b":function(t,e,n){"use strict";var i=n("e53d"),r=n("07e3"),s=n("8e60"),o=n("63b6"),a=n("9138"),c=n("ebfd").KEY,l=n("294c"),u=n("dbdb"),h=n("45f2"),d=n("62a0"),f=n("5168"),p=n("ccb9"),_=n("6718"),m=n("47ee"),g=n("9003"),y=n("e4ae"),v=n("f772"),b=n("241e"),M=n("36c3"),w=n("1bc3"),x=n("aebd"),L=n("a159"),E=n("0395"),T=n("bf0b"),S=n("9aa9"),O=n("d9f6"),k=n("c3a1"),C=T.f,I=O.f,D=E.f,R=i.Symbol,A=i.JSON,N=A&&A.stringify,Y="prototype",P=f("_hidden"),j=f("toPrimitive"),F={}.propertyIsEnumerable,H=u("symbol-registry"),q=u("symbols"),G=u("op-symbols"),z=Object[Y],B="function"==typeof R&&!!S.f,U=i.QObject,W=!U||!U[Y]||!U[Y].findChild,$=s&&l(function(){return 7!=L(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=C(z,e);i&&delete z[e],I(t,e,n),i&&t!==z&&I(z,e,i)}:I,V=function(t){var e=q[t]=L(R[Y]);return e._k=t,e},X=B&&"symbol"==typeof R.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof R},K=function(t,e,n){return t===z&&K(G,e,n),y(t),e=w(e,!0),y(n),r(q,e)?(n.enumerable?(r(t,P)&&t[P][e]&&(t[P][e]=!1),n=L(n,{enumerable:x(0,!1)})):(r(t,P)||I(t,P,x(1,{})),t[P][e]=!0),$(t,e,n)):I(t,e,n)},Z=function(t,e){y(t);var n,i=m(e=M(e)),r=0,s=i.length;while(s>r)K(t,n=i[r++],e[n]);return t},J=function(t,e){return void 0===e?L(t):Z(L(t),e)},Q=function(t){var e=F.call(this,t=w(t,!0));return!(this===z&&r(q,t)&&!r(G,t))&&(!(e||!r(this,t)||!r(q,t)||r(this,P)&&this[P][t])||e)},tt=function(t,e){if(t=M(t),e=w(e,!0),t!==z||!r(q,e)||r(G,e)){var n=C(t,e);return!n||!r(q,e)||r(t,P)&&t[P][e]||(n.enumerable=!0),n}},et=function(t){var e,n=D(M(t)),i=[],s=0;while(n.length>s)r(q,e=n[s++])||e==P||e==c||i.push(e);return i},nt=function(t){var e,n=t===z,i=D(n?G:M(t)),s=[],o=0;while(i.length>o)!r(q,e=i[o++])||n&&!r(z,e)||s.push(q[e]);return s};B||(R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:void 0),e=function(n){this===z&&e.call(G,n),r(this,P)&&r(this[P],t)&&(this[P][t]=!1),$(this,t,x(1,n))};return s&&W&&$(z,t,{configurable:!0,set:e}),V(t)},a(R[Y],"toString",function(){return this._k}),T.f=tt,O.f=K,n("6abf").f=E.f=et,n("355d").f=Q,S.f=nt,s&&!n("b8e3")&&a(z,"propertyIsEnumerable",Q,!0),p.f=function(t){return V(f(t))}),o(o.G+o.W+o.F*!B,{Symbol:R});for(var it="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;it.length>rt;)f(it[rt++]);for(var st=k(f.store),ot=0;st.length>ot;)_(st[ot++]);o(o.S+o.F*!B,"Symbol",{for:function(t){return r(H,t+="")?H[t]:H[t]=R(t)},keyFor:function(t){if(!X(t))throw TypeError(t+" is not a symbol!");for(var e in H)if(H[e]===t)return e},useSetter:function(){W=!0},useSimple:function(){W=!1}}),o(o.S+o.F*!B,"Object",{create:J,defineProperty:K,defineProperties:Z,getOwnPropertyDescriptor:tt,getOwnPropertyNames:et,getOwnPropertySymbols:nt});var at=l(function(){S.f(1)});o(o.S+o.F*at,"Object",{getOwnPropertySymbols:function(t){return S.f(b(t))}}),A&&o(o.S+o.F*(!B||l(function(){var t=R();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))})),"JSON",{stringify:function(t){var e,n,i=[t],r=1;while(arguments.length>r)i.push(arguments[r++]);if(n=e=i[1],(v(e)||void 0!==t)&&!X(t))return g(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!X(e))return e}),i[1]=e,N.apply(A,i)}}),R[Y][j]||n("35e8")(R[Y],j,R[Y].valueOf),h(R,"Symbol"),h(Math,"Math",!0),h(i.JSON,"JSON",!0)},"01ae":function(t,e,n){"use strict";var i=n("138e"),r=n("c6a3"),s=n("7d15"),o=n("7b52"),a=n("0ba1"),c=n("f885"),l=n("d7bb"),u=n("c4c8"),h=n("3894"),d=n("3f99"),f=n("7c92"),p=n("968e"),_=n("c569"),m=n("70d5"),g=n("223d"),y=n("a6ef"),v=n("668c");class b{constructor(){b.constructor_.apply(this,arguments)}static constructor_(){this._factory=null,this._deList=new m["a"],this._lowestEdge=null,this._ring=null,this._locator=null,this._ringPts=null,this._holes=null,this._shell=null,this._isHole=null,this._isProcessed=!1,this._isIncludedSet=!1,this._isIncluded=!1;const t=arguments[0];this._factory=t}static findEdgeRingContaining(t,e){const n=t.getRing(),i=n.getEnvelopeInternal();let r=n.getCoordinateN(0),s=null,o=null;for(let a=e.iterator();a.hasNext();){const t=a.next(),e=t.getRing(),c=e.getEnvelopeInternal();if(c.equals(i))continue;if(!c.contains(i))continue;r=_["a"].ptNotInList(n.getCoordinates(),t.getCoordinates());const l=t.isInRing(r);l&&(null===s||o.contains(c))&&(s=t,o=s.getRing().getEnvelopeInternal())}return s}static addEdge(t,e,n){if(e)for(let i=0;i=0;i--)n.add(t[i],!1)}static findDirEdgesInRing(t){let e=t;const n=new m["a"];do{n.add(e),e=e.getNext(),v["a"].isTrue(null!==e,"found null DE in ring"),v["a"].isTrue(e===t||!e.isInRing(),"found DE already in ring")}while(e!==t);return n}isIncluded(){return this._isIncluded}getCoordinates(){if(null===this._ringPts){const t=new a["a"];for(let e=this._deList.iterator();e.hasNext();){const n=e.next(),i=n.getEdge();b.addEdge(i.getLine().getCoordinates(),n.getEdgeDirection(),t)}this._ringPts=t.toCoordinateArray()}return this._ringPts}build(t){let e=t;do{this.add(e),e.setRing(this),e=e.getNext(),v["a"].isTrue(null!==e,"found null DE in ring"),v["a"].isTrue(e===t||!e.isInRing(),"found DE already in ring")}while(e!==t)}isInRing(t){return o["a"].EXTERIOR!==this.getLocator().locate(t)}addHole(){if(arguments[0]instanceof h["a"]){const t=arguments[0];null===this._holes&&(this._holes=new m["a"]),this._holes.add(t)}else if(arguments[0]instanceof b){const t=arguments[0];t.setShell(this);const e=t.getRing();null===this._holes&&(this._holes=new m["a"]),this._holes.add(e)}}computeHole(){const t=this.getRing();this._isHole=f["a"].isCCW(t.getCoordinates())}getLocator(){return null===this._locator&&(this._locator=new y["a"](this.getRing())),this._locator}getShell(){return this.isHole()?this._shell:this}updateIncluded(){if(this.isHole())return null;for(let t=0;tt._quadrant?1:this._quadrant=0)continue;e.add(t);const r=b.findDirEdgesInRing(t);H.label(r,n),n++}return e}static getDegreeNonDeleted(t){const e=t.getOutEdges().getEdges();let n=0;for(let i=e.iterator();i.hasNext();){const t=i.next();t.isMarked()||n++}return n}static deleteAllEdges(t){const e=t.getOutEdges().getEdges();for(let n=e.iterator();n.hasNext();){const t=n.next();t.setMarked(!0);const e=t.getSym();null!==e&&e.setMarked(!0)}}static label(t,e){for(let n=t.iterator();n.hasNext();){const t=n.next();t.setLabel(e)}}static computeNextCWEdges(t){const e=t.getOutEdges();let n=null,i=null;for(let r=e.getEdges().iterator();r.hasNext();){const t=r.next();if(!t.isMarked()){if(null===n&&(n=t),null!==i){const e=i.getSym();e.setNext(t)}i=t}}if(null!==i){const t=i.getSym();t.setNext(n)}}static computeNextCCWEdges(t,e){const n=t.getOutEdges();let i=null,r=null;const s=n.getEdges();for(let o=s.size()-1;o>=0;o--){const t=s.get(o),n=t.getSym();let a=null;t.getLabel()===e&&(a=t);let c=null;n.getLabel()===e&&(c=n),null===a&&null===c||(null!==c&&(r=c),null!==a&&(null!==r&&(r.setNext(a),r=null),null===i&&(i=a)))}null!==r&&(v["a"].isTrue(null!==i),r.setNext(i))}static getDegree(t,e){const n=t.getOutEdges().getEdges();let i=0;for(let r=n.iterator();r.hasNext();){const t=r.next();t.getLabel()===e&&i++}return i}static findIntersectionNodes(t,e){let n=t,i=null;do{const r=n.getFromNode();H.getDegree(r,e)>1&&(null===i&&(i=new m["a"]),i.add(r)),n=n.getNext(),v["a"].isTrue(null!==n,"found null DE in ring"),v["a"].isTrue(n===t||!n.isInRing(),"found DE already in ring")}while(n!==t);return i}findEdgeRing(t){const e=new b(this._factory);return e.build(t),e}computeDepthParity(){if(0===arguments.length)while(1){const t=null;if(null===t)return null;this.computeDepthParity(t)}else if(1===arguments.length){arguments[0]}}computeNextCWEdges(){for(let t=this.nodeIterator();t.hasNext();){const e=t.next();H.computeNextCWEdges(e)}}addEdge(t){if(t.isEmpty())return null;const e=_["a"].removeRepeatedPoints(t.getCoordinates());if(e.length<2)return null;const n=e[0],i=e[e.length-1],r=this.getNode(n),s=this.getNode(i),o=new C(r,s,e[1],!0),a=new C(s,r,e[e.length-2],!1),c=new N(t);c.setDirectedEdges(o,a),this.add(c)}deleteCutEdges(){this.computeNextCWEdges(),H.findLabeledEdgeRings(this._dirEdges);const t=new m["a"];for(let e=this._dirEdges.iterator();e.hasNext();){const n=e.next();if(n.isMarked())continue;const i=n.getSym();if(n.getLabel()===i.getLabel()){n.setMarked(!0),i.setMarked(!0);const e=n.getEdge();t.add(e.getLine())}}return t}getEdgeRings(){this.computeNextCWEdges(),H.label(this._dirEdges,-1);const t=H.findLabeledEdgeRings(this._dirEdges);this.convertMaximalToMinimalEdgeRings(t);const e=new m["a"];for(let n=this._dirEdges.iterator();n.hasNext();){const t=n.next();if(t.isMarked())continue;if(t.isInRing())continue;const i=this.findEdgeRing(t);e.add(i)}return e}getNode(t){let e=this.findNode(t);return null===e&&(e=new R(t),this.add(e)),e}convertMaximalToMinimalEdgeRings(t){for(let e=t.iterator();e.hasNext();){const t=e.next(),n=t.getLabel(),i=H.findIntersectionNodes(t,n);if(null!==i)for(let e=i.iterator();e.hasNext();){const t=e.next();H.computeNextCCWEdges(t,n)}}}deleteDangles(){const t=this.findNodesOfDegree(1),e=new I["a"],n=new F["a"];for(let i=t.iterator();i.hasNext();)n.push(i.next());while(!n.isEmpty()){const t=n.pop();H.deleteAllEdges(t);const i=t.getOutEdges().getEdges();for(let r=i.iterator();r.hasNext();){const t=r.next();t.setMarked(!0);const i=t.getSym();null!==i&&i.setMarked(!0);const s=t.getEdge();e.add(s.getLine());const o=t.getToNode();1===H.getDegreeNonDeleted(o)&&n.push(o)}}return e}}var q=n("38de"),G=n("cd4a");n.d(e,"a",function(){return z});class z{constructor(){z.constructor_.apply(this,arguments)}static constructor_(){if(this._lineStringAdder=new B(this),this._graph=null,this._dangles=new m["a"],this._cutEdges=new m["a"],this._invalidRingLines=new m["a"],this._holeList=null,this._shellList=null,this._polyList=null,this._isCheckingRingsValid=!0,this._extractOnlyPolygonal=null,this._geomFactory=null,0===arguments.length)z.constructor_.call(this,!1);else if(1===arguments.length){const t=arguments[0];this._extractOnlyPolygonal=t}}static findOuterShells(t){for(let e=t.iterator();e.hasNext();){const t=e.next(),n=t.getOuterHole();null===n||n.isProcessed()||(t.setIncluded(!0),n.setProcessed(!0))}}static extractPolygons(t,e){const n=new m["a"];for(let i=t.iterator();i.hasNext();){const t=i.next();(e||t.isIncluded())&&n.add(t.getPolygon())}return n}static findDisjointShells(t){z.findOuterShells(t);let e=null;do{e=!1;for(let n=t.iterator();n.hasNext();){const t=n.next();t.isIncludedSet()||(t.updateIncluded(),t.isIncludedSet()||(e=!0))}}while(e)}getGeometry(){return null===this._geomFactory&&(this._geomFactory=new G["a"]),this.polygonize(),this._extractOnlyPolygonal?this._geomFactory.buildGeometry(this._polyList):this._geomFactory.createGeometryCollection(G["a"].toGeometryArray(this._polyList))}getInvalidRingLines(){return this.polygonize(),this._invalidRingLines}findValidRings(t,e,n){for(let i=t.iterator();i.hasNext();){const t=i.next();t.isValid()?e.add(t):n.add(t.getLineString())}}polygonize(){if(null!==this._polyList)return null;if(this._polyList=new m["a"],null===this._graph)return null;this._dangles=this._graph.deleteDangles(),this._cutEdges=this._graph.deleteCutEdges();const t=this._graph.getEdgeRings();let e=new m["a"];this._invalidRingLines=new m["a"],this._isCheckingRingsValid?this.findValidRings(t,e,this._invalidRingLines):e=t,this.findShellsAndHoles(e),L.assignHolesToShells(this._holeList,this._shellList),s["a"].sort(this._shellList,new b.EnvelopeComparator);let n=!0;this._extractOnlyPolygonal&&(z.findDisjointShells(this._shellList),n=!1),this._polyList=z.extractPolygons(this._shellList,n)}getDangles(){return this.polygonize(),this._dangles}add(){if(Object(q["a"])(arguments[0],r["a"])){const t=arguments[0];for(let e=t.iterator();e.hasNext();){const t=e.next();this.add(t)}}else if(arguments[0]instanceof i["a"]){const t=arguments[0];this._geomFactory=t.getFactory(),null===this._graph&&(this._graph=new H(this._geomFactory)),this._graph.addEdge(t)}else if(arguments[0]instanceof E["a"]){const t=arguments[0];t.apply(this._lineStringAdder)}}setCheckRingsValid(t){this._isCheckingRingsValid=t}findShellsAndHoles(t){this._holeList=new m["a"],this._shellList=new m["a"];for(let e=t.iterator();e.hasNext();){const t=e.next();t.computeHole(),t.isHole()?this._holeList.add(t):this._shellList.add(t)}}getCutEdges(){return this.polygonize(),this._cutEdges}getPolygons(){return this.polygonize(),this._polyList}}class B{constructor(){B.constructor_.apply(this,arguments)}static constructor_(){this.p=null;const t=arguments[0];this.p=t}filter(t){t instanceof i["a"]&&this.p.add(t)}get interfaces_(){return[w["a"]]}}z.LineStringAdder=B},"01d4":function(t,e,n){"use strict";e["a"]={CHANGE:"change",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",ERROR:"error",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",MOUSEDOWN:"mousedown",MOUSEMOVE:"mousemove",MOUSEOUT:"mouseout",MOUSEUP:"mouseup",MOUSEWHEEL:"mousewheel",MSPOINTERDOWN:"MSPointerDown",RESIZE:"resize",TOUCHSTART:"touchstart",TOUCHMOVE:"touchmove",TOUCHEND:"touchend",WHEEL:"wheel"}},"01f9":function(t,e,n){"use strict";var i=n("2d00"),r=n("5ca1"),s=n("2aba"),o=n("32e9"),a=n("84f2"),c=n("41a0"),l=n("7f20"),u=n("38fd"),h=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),f="@@iterator",p="keys",_="values",m=function(){return this};t.exports=function(t,e,n,g,y,v,b){c(n,e,g);var M,w,x,L=function(t){if(!d&&t in O)return O[t];switch(t){case p:return function(){return new n(this,t)};case _:return function(){return new n(this,t)}}return function(){return new n(this,t)}},E=e+" Iterator",T=y==_,S=!1,O=t.prototype,k=O[h]||O[f]||y&&O[y],C=k||L(y),I=y?T?L("entries"):C:void 0,D="Array"==e&&O.entries||k;if(D&&(x=u(D.call(new t)),x!==Object.prototype&&x.next&&(l(x,E,!0),i||"function"==typeof x[h]||o(x,h,m))),T&&k&&k.name!==_&&(S=!0,C=function(){return k.call(this)}),i&&!b||!d&&!S&&O[h]||o(O,h,C),a[e]=C,a[E]=m,y)if(M={values:T?C:L(_),keys:v?C:L(p),entries:I},b)for(w in M)w in O||s(O,w,M[w]);else r(r.P+r.F*(d||S),e,M);return M}},"02f4":function(t,e,n){var i=n("4588"),r=n("be13");t.exports=function(t){return function(e,n){var s,o,a=String(r(e)),c=i(n),l=a.length;return c<0||c>=l?t?"":void 0:(s=a.charCodeAt(c),s<55296||s>56319||c+1===l||(o=a.charCodeAt(c+1))<56320||o>57343?t?a.charAt(c):s:t?a.slice(c,c+2):o-56320+(s-55296<<10)+65536)}}},"02fb":function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; +var e=t.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}});return e})},"014b":function(t,e,n){"use strict";var i=n("e53d"),r=n("07e3"),s=n("8e60"),o=n("63b6"),a=n("9138"),c=n("ebfd").KEY,l=n("294c"),u=n("dbdb"),h=n("45f2"),d=n("62a0"),f=n("5168"),p=n("ccb9"),_=n("6718"),m=n("47ee"),g=n("9003"),y=n("e4ae"),v=n("f772"),b=n("241e"),M=n("36c3"),w=n("1bc3"),x=n("aebd"),L=n("a159"),E=n("0395"),T=n("bf0b"),S=n("9aa9"),O=n("d9f6"),k=n("c3a1"),C=T.f,I=O.f,D=E.f,R=i.Symbol,A=i.JSON,N=A&&A.stringify,Y="prototype",P=f("_hidden"),j=f("toPrimitive"),F={}.propertyIsEnumerable,H=u("symbol-registry"),G=u("symbols"),q=u("op-symbols"),z=Object[Y],B="function"==typeof R&&!!S.f,U=i.QObject,W=!U||!U[Y]||!U[Y].findChild,$=s&&l(function(){return 7!=L(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=C(z,e);i&&delete z[e],I(t,e,n),i&&t!==z&&I(z,e,i)}:I,V=function(t){var e=G[t]=L(R[Y]);return e._k=t,e},X=B&&"symbol"==typeof R.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof R},K=function(t,e,n){return t===z&&K(q,e,n),y(t),e=w(e,!0),y(n),r(G,e)?(n.enumerable?(r(t,P)&&t[P][e]&&(t[P][e]=!1),n=L(n,{enumerable:x(0,!1)})):(r(t,P)||I(t,P,x(1,{})),t[P][e]=!0),$(t,e,n)):I(t,e,n)},J=function(t,e){y(t);var n,i=m(e=M(e)),r=0,s=i.length;while(s>r)K(t,n=i[r++],e[n]);return t},Z=function(t,e){return void 0===e?L(t):J(L(t),e)},Q=function(t){var e=F.call(this,t=w(t,!0));return!(this===z&&r(G,t)&&!r(q,t))&&(!(e||!r(this,t)||!r(G,t)||r(this,P)&&this[P][t])||e)},tt=function(t,e){if(t=M(t),e=w(e,!0),t!==z||!r(G,e)||r(q,e)){var n=C(t,e);return!n||!r(G,e)||r(t,P)&&t[P][e]||(n.enumerable=!0),n}},et=function(t){var e,n=D(M(t)),i=[],s=0;while(n.length>s)r(G,e=n[s++])||e==P||e==c||i.push(e);return i},nt=function(t){var e,n=t===z,i=D(n?q:M(t)),s=[],o=0;while(i.length>o)!r(G,e=i[o++])||n&&!r(z,e)||s.push(G[e]);return s};B||(R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:void 0),e=function(n){this===z&&e.call(q,n),r(this,P)&&r(this[P],t)&&(this[P][t]=!1),$(this,t,x(1,n))};return s&&W&&$(z,t,{configurable:!0,set:e}),V(t)},a(R[Y],"toString",function(){return this._k}),T.f=tt,O.f=K,n("6abf").f=E.f=et,n("355d").f=Q,S.f=nt,s&&!n("b8e3")&&a(z,"propertyIsEnumerable",Q,!0),p.f=function(t){return V(f(t))}),o(o.G+o.W+o.F*!B,{Symbol:R});for(var it="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;it.length>rt;)f(it[rt++]);for(var st=k(f.store),ot=0;st.length>ot;)_(st[ot++]);o(o.S+o.F*!B,"Symbol",{for:function(t){return r(H,t+="")?H[t]:H[t]=R(t)},keyFor:function(t){if(!X(t))throw TypeError(t+" is not a symbol!");for(var e in H)if(H[e]===t)return e},useSetter:function(){W=!0},useSimple:function(){W=!1}}),o(o.S+o.F*!B,"Object",{create:Z,defineProperty:K,defineProperties:J,getOwnPropertyDescriptor:tt,getOwnPropertyNames:et,getOwnPropertySymbols:nt});var at=l(function(){S.f(1)});o(o.S+o.F*at,"Object",{getOwnPropertySymbols:function(t){return S.f(b(t))}}),A&&o(o.S+o.F*(!B||l(function(){var t=R();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))})),"JSON",{stringify:function(t){var e,n,i=[t],r=1;while(arguments.length>r)i.push(arguments[r++]);if(n=e=i[1],(v(e)||void 0!==t)&&!X(t))return g(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!X(e))return e}),i[1]=e,N.apply(A,i)}}),R[Y][j]||n("35e8")(R[Y],j,R[Y].valueOf),h(R,"Symbol"),h(Math,"Math",!0),h(i.JSON,"JSON",!0)},"01ae":function(t,e,n){"use strict";var i=n("138e"),r=n("c6a3"),s=n("7d15"),o=n("7b52"),a=n("0ba1"),c=n("f885"),l=n("d7bb"),u=n("c4c8"),h=n("3894"),d=n("3f99"),f=n("7c92"),p=n("968e"),_=n("c569"),m=n("70d5"),g=n("223d"),y=n("a6ef"),v=n("668c");class b{constructor(){b.constructor_.apply(this,arguments)}static constructor_(){this._factory=null,this._deList=new m["a"],this._lowestEdge=null,this._ring=null,this._locator=null,this._ringPts=null,this._holes=null,this._shell=null,this._isHole=null,this._isProcessed=!1,this._isIncludedSet=!1,this._isIncluded=!1;const t=arguments[0];this._factory=t}static findEdgeRingContaining(t,e){const n=t.getRing(),i=n.getEnvelopeInternal();let r=n.getCoordinateN(0),s=null,o=null;for(let a=e.iterator();a.hasNext();){const t=a.next(),e=t.getRing(),c=e.getEnvelopeInternal();if(c.equals(i))continue;if(!c.contains(i))continue;r=_["a"].ptNotInList(n.getCoordinates(),t.getCoordinates());const l=t.isInRing(r);l&&(null===s||o.contains(c))&&(s=t,o=s.getRing().getEnvelopeInternal())}return s}static addEdge(t,e,n){if(e)for(let i=0;i=0;i--)n.add(t[i],!1)}static findDirEdgesInRing(t){let e=t;const n=new m["a"];do{n.add(e),e=e.getNext(),v["a"].isTrue(null!==e,"found null DE in ring"),v["a"].isTrue(e===t||!e.isInRing(),"found DE already in ring")}while(e!==t);return n}isIncluded(){return this._isIncluded}getCoordinates(){if(null===this._ringPts){const t=new a["a"];for(let e=this._deList.iterator();e.hasNext();){const n=e.next(),i=n.getEdge();b.addEdge(i.getLine().getCoordinates(),n.getEdgeDirection(),t)}this._ringPts=t.toCoordinateArray()}return this._ringPts}build(t){let e=t;do{this.add(e),e.setRing(this),e=e.getNext(),v["a"].isTrue(null!==e,"found null DE in ring"),v["a"].isTrue(e===t||!e.isInRing(),"found DE already in ring")}while(e!==t)}isInRing(t){return o["a"].EXTERIOR!==this.getLocator().locate(t)}addHole(){if(arguments[0]instanceof h["a"]){const t=arguments[0];null===this._holes&&(this._holes=new m["a"]),this._holes.add(t)}else if(arguments[0]instanceof b){const t=arguments[0];t.setShell(this);const e=t.getRing();null===this._holes&&(this._holes=new m["a"]),this._holes.add(e)}}computeHole(){const t=this.getRing();this._isHole=f["a"].isCCW(t.getCoordinates())}getLocator(){return null===this._locator&&(this._locator=new y["a"](this.getRing())),this._locator}getShell(){return this.isHole()?this._shell:this}updateIncluded(){if(this.isHole())return null;for(let t=0;tt._quadrant?1:this._quadrant=0)continue;e.add(t);const r=b.findDirEdgesInRing(t);H.label(r,n),n++}return e}static getDegreeNonDeleted(t){const e=t.getOutEdges().getEdges();let n=0;for(let i=e.iterator();i.hasNext();){const t=i.next();t.isMarked()||n++}return n}static deleteAllEdges(t){const e=t.getOutEdges().getEdges();for(let n=e.iterator();n.hasNext();){const t=n.next();t.setMarked(!0);const e=t.getSym();null!==e&&e.setMarked(!0)}}static label(t,e){for(let n=t.iterator();n.hasNext();){const t=n.next();t.setLabel(e)}}static computeNextCWEdges(t){const e=t.getOutEdges();let n=null,i=null;for(let r=e.getEdges().iterator();r.hasNext();){const t=r.next();if(!t.isMarked()){if(null===n&&(n=t),null!==i){const e=i.getSym();e.setNext(t)}i=t}}if(null!==i){const t=i.getSym();t.setNext(n)}}static computeNextCCWEdges(t,e){const n=t.getOutEdges();let i=null,r=null;const s=n.getEdges();for(let o=s.size()-1;o>=0;o--){const t=s.get(o),n=t.getSym();let a=null;t.getLabel()===e&&(a=t);let c=null;n.getLabel()===e&&(c=n),null===a&&null===c||(null!==c&&(r=c),null!==a&&(null!==r&&(r.setNext(a),r=null),null===i&&(i=a)))}null!==r&&(v["a"].isTrue(null!==i),r.setNext(i))}static getDegree(t,e){const n=t.getOutEdges().getEdges();let i=0;for(let r=n.iterator();r.hasNext();){const t=r.next();t.getLabel()===e&&i++}return i}static findIntersectionNodes(t,e){let n=t,i=null;do{const r=n.getFromNode();H.getDegree(r,e)>1&&(null===i&&(i=new m["a"]),i.add(r)),n=n.getNext(),v["a"].isTrue(null!==n,"found null DE in ring"),v["a"].isTrue(n===t||!n.isInRing(),"found DE already in ring")}while(n!==t);return i}findEdgeRing(t){const e=new b(this._factory);return e.build(t),e}computeDepthParity(){if(0===arguments.length)while(1){const t=null;if(null===t)return null;this.computeDepthParity(t)}else if(1===arguments.length){arguments[0]}}computeNextCWEdges(){for(let t=this.nodeIterator();t.hasNext();){const e=t.next();H.computeNextCWEdges(e)}}addEdge(t){if(t.isEmpty())return null;const e=_["a"].removeRepeatedPoints(t.getCoordinates());if(e.length<2)return null;const n=e[0],i=e[e.length-1],r=this.getNode(n),s=this.getNode(i),o=new C(r,s,e[1],!0),a=new C(s,r,e[e.length-2],!1),c=new N(t);c.setDirectedEdges(o,a),this.add(c)}deleteCutEdges(){this.computeNextCWEdges(),H.findLabeledEdgeRings(this._dirEdges);const t=new m["a"];for(let e=this._dirEdges.iterator();e.hasNext();){const n=e.next();if(n.isMarked())continue;const i=n.getSym();if(n.getLabel()===i.getLabel()){n.setMarked(!0),i.setMarked(!0);const e=n.getEdge();t.add(e.getLine())}}return t}getEdgeRings(){this.computeNextCWEdges(),H.label(this._dirEdges,-1);const t=H.findLabeledEdgeRings(this._dirEdges);this.convertMaximalToMinimalEdgeRings(t);const e=new m["a"];for(let n=this._dirEdges.iterator();n.hasNext();){const t=n.next();if(t.isMarked())continue;if(t.isInRing())continue;const i=this.findEdgeRing(t);e.add(i)}return e}getNode(t){let e=this.findNode(t);return null===e&&(e=new R(t),this.add(e)),e}convertMaximalToMinimalEdgeRings(t){for(let e=t.iterator();e.hasNext();){const t=e.next(),n=t.getLabel(),i=H.findIntersectionNodes(t,n);if(null!==i)for(let e=i.iterator();e.hasNext();){const t=e.next();H.computeNextCCWEdges(t,n)}}}deleteDangles(){const t=this.findNodesOfDegree(1),e=new I["a"],n=new F["a"];for(let i=t.iterator();i.hasNext();)n.push(i.next());while(!n.isEmpty()){const t=n.pop();H.deleteAllEdges(t);const i=t.getOutEdges().getEdges();for(let r=i.iterator();r.hasNext();){const t=r.next();t.setMarked(!0);const i=t.getSym();null!==i&&i.setMarked(!0);const s=t.getEdge();e.add(s.getLine());const o=t.getToNode();1===H.getDegreeNonDeleted(o)&&n.push(o)}}return e}}var G=n("38de"),q=n("cd4a");n.d(e,"a",function(){return z});class z{constructor(){z.constructor_.apply(this,arguments)}static constructor_(){if(this._lineStringAdder=new B(this),this._graph=null,this._dangles=new m["a"],this._cutEdges=new m["a"],this._invalidRingLines=new m["a"],this._holeList=null,this._shellList=null,this._polyList=null,this._isCheckingRingsValid=!0,this._extractOnlyPolygonal=null,this._geomFactory=null,0===arguments.length)z.constructor_.call(this,!1);else if(1===arguments.length){const t=arguments[0];this._extractOnlyPolygonal=t}}static findOuterShells(t){for(let e=t.iterator();e.hasNext();){const t=e.next(),n=t.getOuterHole();null===n||n.isProcessed()||(t.setIncluded(!0),n.setProcessed(!0))}}static extractPolygons(t,e){const n=new m["a"];for(let i=t.iterator();i.hasNext();){const t=i.next();(e||t.isIncluded())&&n.add(t.getPolygon())}return n}static findDisjointShells(t){z.findOuterShells(t);let e=null;do{e=!1;for(let n=t.iterator();n.hasNext();){const t=n.next();t.isIncludedSet()||(t.updateIncluded(),t.isIncludedSet()||(e=!0))}}while(e)}getGeometry(){return null===this._geomFactory&&(this._geomFactory=new q["a"]),this.polygonize(),this._extractOnlyPolygonal?this._geomFactory.buildGeometry(this._polyList):this._geomFactory.createGeometryCollection(q["a"].toGeometryArray(this._polyList))}getInvalidRingLines(){return this.polygonize(),this._invalidRingLines}findValidRings(t,e,n){for(let i=t.iterator();i.hasNext();){const t=i.next();t.isValid()?e.add(t):n.add(t.getLineString())}}polygonize(){if(null!==this._polyList)return null;if(this._polyList=new m["a"],null===this._graph)return null;this._dangles=this._graph.deleteDangles(),this._cutEdges=this._graph.deleteCutEdges();const t=this._graph.getEdgeRings();let e=new m["a"];this._invalidRingLines=new m["a"],this._isCheckingRingsValid?this.findValidRings(t,e,this._invalidRingLines):e=t,this.findShellsAndHoles(e),L.assignHolesToShells(this._holeList,this._shellList),s["a"].sort(this._shellList,new b.EnvelopeComparator);let n=!0;this._extractOnlyPolygonal&&(z.findDisjointShells(this._shellList),n=!1),this._polyList=z.extractPolygons(this._shellList,n)}getDangles(){return this.polygonize(),this._dangles}add(){if(Object(G["a"])(arguments[0],r["a"])){const t=arguments[0];for(let e=t.iterator();e.hasNext();){const t=e.next();this.add(t)}}else if(arguments[0]instanceof i["a"]){const t=arguments[0];this._geomFactory=t.getFactory(),null===this._graph&&(this._graph=new H(this._geomFactory)),this._graph.addEdge(t)}else if(arguments[0]instanceof E["a"]){const t=arguments[0];t.apply(this._lineStringAdder)}}setCheckRingsValid(t){this._isCheckingRingsValid=t}findShellsAndHoles(t){this._holeList=new m["a"],this._shellList=new m["a"];for(let e=t.iterator();e.hasNext();){const t=e.next();t.computeHole(),t.isHole()?this._holeList.add(t):this._shellList.add(t)}}getCutEdges(){return this.polygonize(),this._cutEdges}getPolygons(){return this.polygonize(),this._polyList}}class B{constructor(){B.constructor_.apply(this,arguments)}static constructor_(){this.p=null;const t=arguments[0];this.p=t}filter(t){t instanceof i["a"]&&this.p.add(t)}get interfaces_(){return[w["a"]]}}z.LineStringAdder=B},"01d4":function(t,e,n){"use strict";e["a"]={CHANGE:"change",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",ERROR:"error",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",MOUSEDOWN:"mousedown",MOUSEMOVE:"mousemove",MOUSEOUT:"mouseout",MOUSEUP:"mouseup",MOUSEWHEEL:"mousewheel",MSPOINTERDOWN:"MSPointerDown",RESIZE:"resize",TOUCHSTART:"touchstart",TOUCHMOVE:"touchmove",TOUCHEND:"touchend",WHEEL:"wheel"}},"01f9":function(t,e,n){"use strict";var i=n("2d00"),r=n("5ca1"),s=n("2aba"),o=n("32e9"),a=n("84f2"),c=n("41a0"),l=n("7f20"),u=n("38fd"),h=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),f="@@iterator",p="keys",_="values",m=function(){return this};t.exports=function(t,e,n,g,y,v,b){c(n,e,g);var M,w,x,L=function(t){if(!d&&t in O)return O[t];switch(t){case p:return function(){return new n(this,t)};case _:return function(){return new n(this,t)}}return function(){return new n(this,t)}},E=e+" Iterator",T=y==_,S=!1,O=t.prototype,k=O[h]||O[f]||y&&O[y],C=k||L(y),I=y?T?L("entries"):C:void 0,D="Array"==e&&O.entries||k;if(D&&(x=u(D.call(new t)),x!==Object.prototype&&x.next&&(l(x,E,!0),i||"function"==typeof x[h]||o(x,h,m))),T&&k&&k.name!==_&&(S=!0,C=function(){return k.call(this)}),i&&!b||!d&&!S&&O[h]||o(O,h,C),a[e]=C,a[E]=m,y)if(M={values:T?C:L(_),keys:v?C:L(p),entries:I},b)for(w in M)w in O||s(O,w,M[w]);else r(r.P+r.F*(d||S),e,M);return M}},"02f4":function(t,e,n){var i=n("4588"),r=n("be13");t.exports=function(t){return function(e,n){var s,o,a=String(r(e)),c=i(n),l=a.length;return c<0||c>=l?t?"":void 0:(s=a.charCodeAt(c),s<55296||s>56319||c+1===l||(o=a.charCodeAt(c+1))<56320||o>57343?t?a.charAt(c):s:t?a.slice(c,c+2):o-56320+(s-55296<<10)+65536)}}},"02fb":function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(t,e){return 12===t&&(t=0),"രാത്രി"===e&&t>=4||"ഉച്ച കഴിഞ്ഞ്"===e||"വൈകുന്നേരം"===e?t+12:t},meridiem:function(t,e,n){return t<4?"രാത്രി":t<12?"രാവിലെ":t<17?"ഉച്ച കഴിഞ്ഞ്":t<20?"വൈകുന്നേരം":"രാത്രി"}});return e})},"0354":function(t,e,n){"use strict";t.exports=r,t.exports.default=r;var i=n("61ca");function r(t,e){if(!(this instanceof r))return new r(t,e);this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&this._initFormat(e),this.clear()}function s(t,e,n){if(!n)return e.indexOf(t);for(var i=0;i=t.minX&&e.maxY>=t.minY}function g(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function y(t,e,n,r,s){var o,a=[e,n];while(a.length)n=a.pop(),e=a.pop(),n-e<=r||(o=e+Math.ceil((n-e)/r/2)*r,i(t,o,e,n,s),a.push(e,o,o,n))}r.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,n=[],i=this.toBBox;if(!m(t,e))return n;var r,s,o,a,c=[];while(e){for(r=0,s=e.children.length;r=0){if(!(s[e].children.length>this._maxEntries))break;this._split(s,e),e--}this._adjustParentBBoxes(r,s,e)},_split:function(t,e){var n=t[e],i=n.children.length,r=this._minEntries;this._chooseSplitAxis(n,r,i);var s=this._chooseSplitIndex(n,r,i),a=g(n.children.splice(s,n.children.length-s));a.height=n.height,a.leaf=n.leaf,o(n,this.toBBox),o(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(n,a)},_splitRoot:function(t,e){this.data=g([t,e]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,n){var i,r,s,o,c,l,u,d;for(l=u=1/0,i=e;i<=n-e;i++)r=a(t,0,i,this.toBBox),s=a(t,i,n,this.toBBox),o=p(r,s),c=h(r)+h(s),o=e;r--)s=t.children[r],c(u,t.leaf?o(s):s),h+=d(u);return h},_adjustParentBBoxes:function(t,e,n){for(var i=n;i>=0;i--)c(e[i],t)},_condense:function(t){for(var e,n=t.length-1;n>=0;n--)0===t[n].children.length?n>0?(e=t[n-1].children,e.splice(e.indexOf(t[n]),1)):this.clear():o(t[n],this.toBBox)},_initFormat:function(t){var e=["return a"," - b",";"];this.compareMinX=new Function("a","b",e.join(t[0])),this.compareMinY=new Function("a","b",e.join(t[1])),this.toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}},"0360":function(t,e,n){"use strict";n.d(e,"a",function(){return i});class i{static opposite(t){return t===i.LEFT?i.RIGHT:t===i.RIGHT?i.LEFT:t}}i.ON=0,i.LEFT=1,i.RIGHT=2},"0388":function(t,e,n){"use strict";n("551c"),n("f751");var i=n("0952"),r=n("5d8b"),s=n("482e"),o=n("c1f9"),a=n("9fe0"),c=n("b18c");e["a"]={name:"QDialog",props:{value:Boolean,title:String,message:String,prompt:Object,options:Object,ok:{type:[String,Object,Boolean],default:!0},cancel:[String,Object,Boolean],stackButtons:Boolean,preventClose:Boolean,noBackdropDismiss:Boolean,noEscDismiss:Boolean,noRefocus:Boolean,position:String,color:{type:String,default:"primary"}},render:function(t){var e=this,n=[],r=this.$slots.title||this.title,s=this.$slots.message||this.message;return r&&n.push(t("div",{staticClass:"modal-header"},[r])),s&&n.push(t("div",{staticClass:"modal-body modal-message modal-scroll"},[s])),(this.hasForm||this.$slots.body)&&n.push(t("div",{staticClass:"modal-body modal-scroll"},this.hasForm?this.prompt?this.__getPrompt(t):this.__getOptions(t):[this.$slots.body])),this.$scopedSlots.buttons?n.push(t("div",{staticClass:"modal-buttons",class:this.buttonClass},[this.$scopedSlots.buttons({ok:this.__onOk,cancel:this.__onCancel})])):(this.ok||this.cancel)&&n.push(this.__getButtons(t)),t(i["a"],{ref:"modal",props:{value:this.value,minimized:!0,noBackdropDismiss:this.noBackdropDismiss||this.preventClose,noEscDismiss:this.noEscDismiss||this.preventClose,noRefocus:this.noRefocus,position:this.position},on:{input:function(t){e.$emit("input",t)},show:function(){if(e.$q.platform.is.desktop){var t;if((e.prompt||e.options)&&(t=e.prompt?e.$refs.modal.$el.getElementsByTagName("INPUT"):e.$refs.modal.$el.getElementsByClassName("q-option"),t.length))return t[0].focus(),void e.$emit("show");t=e.$refs.modal.$el.getElementsByClassName("q-btn"),t.length&&t[t.length-1].focus(),e.$emit("show")}else e.$emit("show")},hide:function(){e.$emit("hide")},dismiss:function(){e.$emit("cancel")},"escape-key":function(){e.$emit("escape-key")}}},n)},computed:{hasForm:function(){return this.prompt||this.options},okLabel:function(){return!0===this.ok?this.$q.i18n.label.ok:this.ok},cancelLabel:function(){return!0===this.cancel?this.$q.i18n.label.cancel:this.cancel},buttonClass:function(){return this.stackButtons?"column":"row"},okProps:function(){return Object(this.ok)===this.ok?Object.assign({color:this.color,label:this.$q.i18n.label.ok,noRipple:!0},this.ok):{color:this.color,flat:!0,label:this.okLabel,noRipple:!0}},cancelProps:function(){return Object(this.cancel)===this.cancel?Object.assign({color:this.color,label:this.$q.i18n.label.cancel,noRipple:!0},this.cancel):{color:this.color,flat:!0,label:this.cancelLabel,noRipple:!0}}},methods:{show:function(){return this.$refs.modal.show()},hide:function(){var t=this;return this.$refs.modal?this.$refs.modal.hide().then(function(){return t.hasForm?Object(a["a"])(t.__getData()):void 0}):Promise.resolve()},__getPrompt:function(t){var e=this;return[t(r["a"],{style:"margin-bottom: 10px",props:{value:this.prompt.model,type:this.prompt.type||"text",color:this.color,noPassToggle:!0},on:{input:function(t){e.prompt.model=t},keyup:function(t){13===Object(c["a"])(t)&&e.__onOk()}}})]},__getOptions:function(t){var e=this;return[t(o["a"],{props:{value:this.options.model,type:this.options.type,color:this.color,inline:this.options.inline,options:this.options.items},on:{change:function(t){e.options.model=t}}})]},__getButtons:function(t){var e=[];return this.cancel&&e.push(t(s["a"],{props:this.cancelProps,on:{click:this.__onCancel}})),this.ok&&e.push(t(s["a"],{props:this.okProps,on:{click:this.__onOk}})),t("div",{staticClass:"modal-buttons",class:this.buttonClass},e)},__onOk:function(){var t=this;return this.hide().then(function(e){t.$emit("ok",e)})},__onCancel:function(){var t=this;return this.hide().then(function(){t.$emit("cancel")})},__getData:function(){return this.prompt?this.prompt.model:this.options?this.options.model:void 0}}}},"0390":function(t,e,n){"use strict";var i=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?i(t,e).length:1)}},"0395":function(t,e,n){var i=n("36c3"),r=n("6abf").f,s={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return r(t)}catch(t){return o.slice()}};t.exports.f=function(t){return o&&"[object Window]"==s.call(t)?a(t):r(i(t))}},"03d8":function(t,e,n){"use strict";n("84490"),n("c5f6");var i=n("1fe0"),r=n("1528"),s=n("ea22"),o=n("fb40"),a=n("b18c"),c=n("559e");e["a"]={name:"QTooltip",mixins:[o["a"],c["a"]],props:{anchor:{type:String,default:"top middle",validator:s["c"]},self:{type:String,default:"bottom middle",validator:s["c"]},offset:{type:Array,validator:s["a"]},delay:{type:Number,default:0},maxHeight:String,disable:Boolean},watch:{$route:function(){this.hide()}},computed:{anchorOrigin:function(){return Object(s["b"])(this.anchor)},selfOrigin:function(){return Object(s["b"])(this.self)}},methods:{__show:function(){clearTimeout(this.timer),document.body.appendChild(this.$el),this.scrollTarget=Object(r["b"])(this.anchorEl),this.scrollTarget.addEventListener("scroll",this.hide,a["e"].passive),window.addEventListener("resize",this.__debouncedUpdatePosition,a["e"].passive),this.$q.platform.is.mobile&&document.body.addEventListener("click",this.hide,!0),this.__updatePosition(),this.showPromise&&this.showPromiseResolve()},__hide:function(){this.__cleanup(),this.hidePromise&&this.hidePromiseResolve()},__cleanup:function(){clearTimeout(this.timer),this.scrollTarget.removeEventListener("scroll",this.hide,a["e"].passive),window.removeEventListener("resize",this.__debouncedUpdatePosition,a["e"].passive),this.$el.remove(),this.$q.platform.is.mobile&&document.body.removeEventListener("click",this.hide,!0)},__updatePosition:function(){Object(s["d"])({el:this.$el,animate:!0,offset:this.offset,anchorEl:this.anchorEl,anchorOrigin:this.anchorOrigin,selfOrigin:this.selfOrigin,maxHeight:this.maxHeight})},__delayShow:function(){clearTimeout(this.timer),this.timer=setTimeout(this.show,this.delay)},__delayHide:function(){clearTimeout(this.timer),this.hide()}},render:function(t){if(this.canRender)return t("div",{staticClass:"q-tooltip animate-popup"},[t("div",this.$slots.default)])},beforeMount:function(){var t=this;this.__debouncedUpdatePosition=Object(i["a"])(function(){t.__updatePosition()},70)},mounted:function(){var t=this;this.$nextTick(function(){t.$el.offsetHeight,t.anchorEl=t.$el.parentNode,t.anchorEl.removeChild(t.$el),(t.anchorEl.classList.contains("q-popup--skip")||t.anchorEl.classList.contains("no-pointer-events"))&&(t.anchorEl=t.anchorEl.parentNode),t.$q.platform.is.mobile?t.anchorEl.addEventListener("click",t.show):(t.anchorEl.addEventListener("mouseenter",t.__delayShow),t.anchorEl.addEventListener("focus",t.__delayShow),t.anchorEl.addEventListener("mouseleave",t.__delayHide),t.anchorEl.addEventListener("blur",t.__delayHide)),t.value&&t.show()})},beforeDestroy:function(){clearTimeout(this.timer),this.showing&&this.__cleanup(),this.anchorEl&&(this.$q.platform.is.mobile?this.anchorEl.removeEventListener("click",this.show):(this.anchorEl.removeEventListener("mouseenter",this.__delayShow),this.anchorEl.removeEventListener("focus",this.__delayShow),this.anchorEl.removeEventListener("mouseleave",this.__delayHide),this.anchorEl.removeEventListener("blur",this.__delayHide)))}}},"03ec":function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration -var e=t.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(t){var e=/сехет$/i.exec(t)?"рен":/ҫул$/i.exec(t)?"тан":"ран";return t+e},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}});return e})},"0414":function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r});var i=42,r=256},"045d":function(t,e,n){"use strict";e["a"]={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},"049d":function(t,e,n){"use strict";var i=n("0af5"),r=n("521b"),s=n("f623"),o=n("9abc"),a=n("b589"),c=n("9769"),l=n("abb7"),u=n("bb6c"),h=n("1c48"),d=function(t){function e(e,n){t.call(this),this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===n||Array.isArray(e[0])?this.setCoordinates(e,n):this.setFlatCoordinates(n,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout)},e.prototype.closestPointXY=function(t,e,n,r){return r + * @license MIT + */ +t.exports=function(t){return null!=t&&null!=t.constructor&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}},"045d":function(t,e,n){"use strict";e["a"]={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},"049d":function(t,e,n){"use strict";var i=n("0af5"),r=n("521b"),s=n("f623"),o=n("9abc"),a=n("b589"),c=n("9769"),l=n("abb7"),u=n("bb6c"),h=n("1c48"),d=function(t){function e(e,n){t.call(this),this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===n||Array.isArray(e[0])?this.setCoordinates(e,n):this.setFlatCoordinates(n,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout)},e.prototype.closestPointXY=function(t,e,n,r){return r=this.minZoom){if(2===this.zoomFactor_?(o=Math.floor(o/2),a=Math.floor(a/2),s=Object(u["a"])(o,o,a,a,i)):s=this.getTileRangeForExtentAndZ(c,l,i),e.call(n,l,s))return!0;--l}return!1},_.prototype.getExtent=function(){return this.extent_},_.prototype.getMaxZoom=function(){return this.maxZoom},_.prototype.getMinZoom=function(){return this.minZoom},_.prototype.getOrigin=function(t){return this.origin_?this.origin_:this.origins_[t]},_.prototype.getResolution=function(t){return this.resolutions_[t]},_.prototype.getResolutions=function(){return this.resolutions_},_.prototype.getTileCoordChildTileRange=function(t,e,n){if(t[0]1&&void 0!==arguments[1]?arguments[1]:this.maximized,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.minimized,i=t?{action:"add",step:1}:{action:"remove",step:-1};if(e){if(l.maximized+=i.step,!t&&l.maximized>0)return;document.body.classList[i.action]("q-maximized-modal")}else if(!n){if(l.responsive+=i.step,!t&&l.responsive>0)return;document.body.classList[i.action]("q-responsive-modal")}},__shake:function(){var t=this;this.$el.classList.remove("animate-shake"),this.$el.classList.add("animate-shake"),clearTimeout(this.shakeTimeout),this.shakeTimeout=setTimeout(function(){t.$el.classList.remove("animate-shake")},150)}},mounted:function(){this.value&&this.show()},beforeDestroy:function(){clearTimeout(this.shakeTimeout),this.$el.remove(),this.showing&&this.__cleanup()},render:function(t){var e=this;return t("transition",{props:this.transitionProps,on:{afterEnter:function(){e.showPromise&&e.showPromiseResolve()},enterCancelled:function(){e.showPromise&&e.showPromiseReject(),e.$el.remove()},afterLeave:function(){e.hidePromise&&e.hidePromiseResolve(),e.$el.remove()},leaveCancelled:function(){e.hidePromise&&e.hidePromiseReject()}}},[t("div",{staticClass:"modal fullscreen row",class:this.modalClasses,directives:[{name:"show",value:this.showing}]},[t("div",{staticClass:"modal-backdrop absolute-full",on:{click:this.__dismiss}}),t("div",{ref:"content",staticClass:"modal-content",style:this.modalCss,class:this.contentClassesCalc,attrs:{tabindex:-1},on:{click:this.__stopPropagation,touchstart:this.__stopPropagation}},this.$slots.default)])])}}},"0999":function(t,e,n){"use strict";function i(t,e){var n=document.createElement("canvas");return t&&(n.width=t),e&&(n.height=e),n.getContext("2d")}function r(t){var e=t.offsetWidth,n=getComputedStyle(t);return e+=parseInt(n.marginLeft,10)+parseInt(n.marginRight,10),e}function s(t){var e=t.offsetHeight,n=getComputedStyle(t);return e+=parseInt(n.marginTop,10)+parseInt(n.marginBottom,10),e}function o(t,e){var n=e.parentNode;n&&n.replaceChild(t,e)}function a(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function c(t){while(t.lastChild)t.removeChild(t.lastChild)}n.d(e,"a",function(){return i}),n.d(e,"c",function(){return r}),n.d(e,"b",function(){return s}),n.d(e,"f",function(){return o}),n.d(e,"e",function(){return a}),n.d(e,"d",function(){return c})},"09fa":function(t,e,n){var i=n("4588"),r=n("9def");t.exports=function(t){if(void 0===t)return 0;var e=i(t),n=r(e);if(e!==n)throw RangeError("Wrong length!");return n}},"09fa6":function(t,e,n){"use strict";var i=n("482e"),r=n("1731");e["a"]={name:"QBtnToggle",props:{value:{required:!0},color:String,textColor:String,toggleColor:{type:String,default:"primary"},toggleTextColor:String,options:{type:Array,required:!0,validator:function(t){return t.every(function(t){return("label"in t||"icon"in t)&&"value"in t})}},readonly:Boolean,disable:Boolean,noCaps:Boolean,noWrap:Boolean,outline:Boolean,flat:Boolean,dense:Boolean,rounded:Boolean,push:Boolean,size:String,glossy:Boolean,noRipple:Boolean,waitForRipple:Boolean},computed:{val:function(){var t=this;return this.options.map(function(e){return e.value===t.value})}},methods:{set:function(t,e){var n=this;this.readonly||(this.$emit("input",t,e),this.$nextTick(function(){JSON.stringify(t)!==JSON.stringify(n.value)&&n.$emit("change",t,e)}))}},render:function(t){var e=this;return t(r["a"],{staticClass:"q-btn-toggle",props:{outline:this.outline,flat:this.flat,rounded:this.rounded,push:this.push}},this.options.map(function(n,r){return t(i["a"],{key:"".concat(n.label).concat(n.icon).concat(n.iconRight),on:{click:function(){return e.set(n.value,n)}},props:{disable:e.disable||n.disable,label:n.label,color:e.val[r]?n.toggleColor||e.toggleColor:n.color||e.color,textColor:e.val[r]?n.toggleTextColor||e.toggleTextColor:n.textColor||e.textColor,icon:n.icon,iconRight:n.iconRight,noCaps:e.noCaps||n.noCaps,noWrap:e.noWrap||n.noWrap,outline:e.outline,flat:e.flat,rounded:e.rounded,push:e.push,glossy:e.glossy,size:e.size,dense:e.dense,noRipple:e.noRipple||n.noRipple,waitForRipple:e.waitForRipple||n.waitForRipple,tabindex:n.tabindex}})}))}}},"0a06":function(t,e,n){"use strict";var i=n("2444"),r=n("c532"),s=n("f6b49"),o=n("5270");function a(t){this.defaults=t,this.interceptors={request:new s,response:new s}}a.prototype.request=function(t){"string"===typeof t&&(t=r.merge({url:arguments[0]},arguments[1])),t=r.merge(i,{method:"get"},this.defaults,t),t.method=t.method.toLowerCase();var e=[o,void 0],n=Promise.resolve(t);this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});while(e.length)n=n.then(e.shift(),e.shift());return n},r.forEach(["delete","get","head","options"],function(t){a.prototype[t]=function(e,n){return this.request(r.merge(n||{},{method:t,url:e}))}}),r.forEach(["post","put","patch"],function(t){a.prototype[t]=function(e,n,i){return this.request(r.merge(i||{},{method:t,url:e,data:n}))}}),t.exports=a},"0a36":function(t,e,n){"use strict";var i={__proto__:null,foo:{}},r=Object;t.exports=function(){return{__proto__:i}.foo===i.foo&&!(i instanceof r)}},"0a3c":function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; +var e=t.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(t,e){return"元"===e[1]?1:parseInt(e[1]||t,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(t){return"午後"===t},meridiem:function(t,e,n){return t<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(t){return t.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(t){return this.week()!==t.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(t,e){switch(e){case"y":return 1===t?"元年":t+"年";case"d":case"D":case"DDD":return t+"日";default:return t}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}});return e})},"07e3":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"085e":function(t,e,n){},"089b":function(t,e,n){"use strict";var i=n("0414"),r=n("345d"),s=n("0af5"),o=n("3820"),a=n("256f"),c=n("fced"),l=n("92fa"),u=n("dc07"),h=n("9f5e"),d=n("7fc9"),f=n("2c30"),p=[0,0,0],_=function(t){var e;if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,Object(l["a"])(Object(h["e"])(this.resolutions_,function(t,e){return e-t},!0),17),!t.origins)for(var n=0,r=this.resolutions_.length-1;n=this.minZoom){if(2===this.zoomFactor_?(o=Math.floor(o/2),a=Math.floor(a/2),s=Object(u["a"])(o,o,a,a,i)):s=this.getTileRangeForExtentAndZ(c,l,i),e.call(n,l,s))return!0;--l}return!1},_.prototype.getExtent=function(){return this.extent_},_.prototype.getMaxZoom=function(){return this.maxZoom},_.prototype.getMinZoom=function(){return this.minZoom},_.prototype.getOrigin=function(t){return this.origin_?this.origin_:this.origins_[t]},_.prototype.getResolution=function(t){return this.resolutions_[t]},_.prototype.getResolutions=function(){return this.resolutions_},_.prototype.getTileCoordChildTileRange=function(t,e,n){if(t[0]1&&void 0!==arguments[1]?arguments[1]:this.maximized,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.minimized,i=t?{action:"add",step:1}:{action:"remove",step:-1};if(e){if(l.maximized+=i.step,!t&&l.maximized>0)return;document.body.classList[i.action]("q-maximized-modal")}else if(!n){if(l.responsive+=i.step,!t&&l.responsive>0)return;document.body.classList[i.action]("q-responsive-modal")}},__shake:function(){var t=this;this.$el.classList.remove("animate-shake"),this.$el.classList.add("animate-shake"),clearTimeout(this.shakeTimeout),this.shakeTimeout=setTimeout(function(){t.$el.classList.remove("animate-shake")},150)}},mounted:function(){this.value&&this.show()},beforeDestroy:function(){clearTimeout(this.shakeTimeout),this.$el.remove(),this.showing&&this.__cleanup()},render:function(t){var e=this;return t("transition",{props:this.transitionProps,on:{afterEnter:function(){e.showPromise&&e.showPromiseResolve()},enterCancelled:function(){e.showPromise&&e.showPromiseReject(),e.$el.remove()},afterLeave:function(){e.hidePromise&&e.hidePromiseResolve(),e.$el.remove()},leaveCancelled:function(){e.hidePromise&&e.hidePromiseReject()}}},[t("div",{staticClass:"modal fullscreen row",class:this.modalClasses,directives:[{name:"show",value:this.showing}]},[t("div",{staticClass:"modal-backdrop absolute-full",on:{click:this.__dismiss}}),t("div",{ref:"content",staticClass:"modal-content",style:this.modalCss,class:this.contentClassesCalc,attrs:{tabindex:-1},on:{click:this.__stopPropagation,touchstart:this.__stopPropagation}},this.$slots.default)])])}}},"0999":function(t,e,n){"use strict";function i(t,e){var n=document.createElement("canvas");return t&&(n.width=t),e&&(n.height=e),n.getContext("2d")}function r(t){var e=t.offsetWidth,n=getComputedStyle(t);return e+=parseInt(n.marginLeft,10)+parseInt(n.marginRight,10),e}function s(t){var e=t.offsetHeight,n=getComputedStyle(t);return e+=parseInt(n.marginTop,10)+parseInt(n.marginBottom,10),e}function o(t,e){var n=e.parentNode;n&&n.replaceChild(t,e)}function a(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function c(t){while(t.lastChild)t.removeChild(t.lastChild)}n.d(e,"a",function(){return i}),n.d(e,"c",function(){return r}),n.d(e,"b",function(){return s}),n.d(e,"f",function(){return o}),n.d(e,"e",function(){return a}),n.d(e,"d",function(){return c})},"09fa":function(t,e,n){var i=n("4588"),r=n("9def");t.exports=function(t){if(void 0===t)return 0;var e=i(t),n=r(e);if(e!==n)throw RangeError("Wrong length!");return n}},"09fa6":function(t,e,n){"use strict";var i=n("482e"),r=n("1731");e["a"]={name:"QBtnToggle",props:{value:{required:!0},color:String,textColor:String,toggleColor:{type:String,default:"primary"},toggleTextColor:String,options:{type:Array,required:!0,validator:function(t){return t.every(function(t){return("label"in t||"icon"in t)&&"value"in t})}},readonly:Boolean,disable:Boolean,noCaps:Boolean,noWrap:Boolean,outline:Boolean,flat:Boolean,dense:Boolean,rounded:Boolean,push:Boolean,size:String,glossy:Boolean,noRipple:Boolean,waitForRipple:Boolean},computed:{val:function(){var t=this;return this.options.map(function(e){return e.value===t.value})}},methods:{set:function(t,e){var n=this;this.readonly||(this.$emit("input",t,e),this.$nextTick(function(){JSON.stringify(t)!==JSON.stringify(n.value)&&n.$emit("change",t,e)}))}},render:function(t){var e=this;return t(r["a"],{staticClass:"q-btn-toggle",props:{outline:this.outline,flat:this.flat,rounded:this.rounded,push:this.push}},this.options.map(function(n,r){return t(i["a"],{key:"".concat(n.label).concat(n.icon).concat(n.iconRight),on:{click:function(){return e.set(n.value,n)}},props:{disable:e.disable||n.disable,label:n.label,color:e.val[r]?n.toggleColor||e.toggleColor:n.color||e.color,textColor:e.val[r]?n.toggleTextColor||e.toggleTextColor:n.textColor||e.textColor,icon:n.icon,iconRight:n.iconRight,noCaps:e.noCaps||n.noCaps,noWrap:e.noWrap||n.noWrap,outline:e.outline,flat:e.flat,rounded:e.rounded,push:e.push,glossy:e.glossy,size:e.size,dense:e.dense,noRipple:e.noRipple||n.noRipple,waitForRipple:e.waitForRipple||n.waitForRipple,tabindex:n.tabindex}})}))}}},"0a06":function(t,e,n){"use strict";var i=n("2444"),r=n("c532"),s=n("f6b49"),o=n("5270");function a(t){this.defaults=t,this.interceptors={request:new s,response:new s}}a.prototype.request=function(t){"string"===typeof t&&(t=r.merge({url:arguments[0]},arguments[1])),t=r.merge(i,{method:"get"},this.defaults,t),t.method=t.method.toLowerCase();var e=[o,void 0],n=Promise.resolve(t);this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});while(e.length)n=n.then(e.shift(),e.shift());return n},r.forEach(["delete","get","head","options"],function(t){a.prototype[t]=function(e,n){return this.request(r.merge(n||{},{method:t,url:e}))}}),r.forEach(["post","put","patch"],function(t){a.prototype[t]=function(e,n,i){return this.request(r.merge(i||{},{method:t,url:e,data:n}))}}),t.exports=a},"0a3c":function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,s=t.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,i){return t?/-MMM-/.test(i)?n[t.month()]:e[t.month()]:e},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return s})},"0a43":function(t,e,n){},"0a49":function(t,e,n){var i=n("9b43"),r=n("626a"),s=n("4bf8"),o=n("9def"),a=n("cd1c");t.exports=function(t,e){var n=1==t,c=2==t,l=3==t,u=4==t,h=6==t,d=5==t||h,f=e||a;return function(e,a,p){for(var _,m,g=s(e),y=r(g),v=i(a,p,3),b=o(y.length),M=0,w=n?f(e,b):c?f(e,0):void 0;b>M;M++)if((d||M in y)&&(_=y[M],m=v(_,M,g),t))if(n)w[M]=m;else if(m)switch(t){case 3:return!0;case 5:return _;case 6:return M;case 2:w.push(_)}else if(u)return!1;return h?-1:l||u?u:w}}},"0a58":function(t,e,n){},"0a75":function(t,e,n){t.exports=n("454f")},"0a84":function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration -var e=t.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}});return e})},"0a9d":function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return o});var i=n("9f5e"),r=n("25f1");function s(t,e,n,s,o,a,c){for(var l,u,h,d,f,p,_,m=o[a+1],g=[],y=0,v=n.length;yw&&(h=(d+f)/2,Object(r["c"])(t,e,n,s,h,m)&&(M=h,w=x)),d=f}return isNaN(M)&&(M=o[a]),c?(c.push(M,m,w),c):[M,m,w]}function o(t,e,n,i,r){for(var o=[],a=0,c=n.length;ar&&(l|=s["a"].RIGHT),co&&(l|=s["a"].ABOVE),l===s["a"].UNKNOWN&&(l=s["a"].INTERSECTING),l}function _(){return[1/0,1/0,-1/0,-1/0]}function m(t,e,n,i,r){return r?(r[0]=t,r[1]=e,r[2]=n,r[3]=i,r):[t,e,n,i]}function g(t){return m(1/0,1/0,-1/0,-1/0,t)}function y(t,e){var n=t[0],i=t[1];return m(n,i,n,i,e)}function v(t,e){var n=g(e);return L(n,t)}function b(t,e,n,i,r){var s=g(r);return E(s,t,e,n,i)}function M(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function w(t,e){return e[0]t[2]&&(t[2]=e[2]),e[1]t[3]&&(t[3]=e[3]),t}function x(t,e){e[0]t[2]&&(t[2]=e[0]),e[1]t[3]&&(t[3]=e[1])}function L(t,e){for(var n=0,i=e.length;ne[0]?i[0]=t[0]:i[0]=e[0],t[1]>e[1]?i[1]=t[1]:i[1]=e[1],t[2]=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function H(t){return t[2]=l&&a<=h),i||!(o&s["a"].RIGHT)||r&s["a"].RIGHT||(c=g-(m-h)*y,i=c>=u&&c<=d),i||!(o&s["a"].BELOW)||r&s["a"].BELOW||(a=m-(g-u)/y,i=a>=l&&a<=h),i||!(o&s["a"].LEFT)||r&s["a"].LEFT||(c=g-(m-l)*y,i=c>=u&&c<=d)}return i}function B(t,e,n){var i=[t[0],t[1],t[0],t[3],t[2],t[1],t[2],t[3]];e(i,i,2);var r=[i[0],i[2],i[4],i[6]],s=[i[1],i[3],i[5],i[7]];return a(r,s,n)}},"0b2d":function(t,e,n){"use strict";var i=n("01d4");e["a"]={SINGLECLICK:"singleclick",CLICK:i["a"].CLICK,DBLCLICK:i["a"].DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},"0ba1":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("38de"),r=n("c6a3"),s=n("ad3f"),o=n("70d5");class a extends o["a"]{constructor(){super(),a.constructor_.apply(this,arguments)}static constructor_(){if(0===arguments.length);else if(1===arguments.length){const t=arguments[0];this.ensureCapacity(t.length),this.add(t,!0)}else if(2===arguments.length){const t=arguments[0],e=arguments[1];this.ensureCapacity(t.length),this.add(t,e)}}getCoordinate(t){return this.get(t)}addAll(){if(2===arguments.length&&"boolean"===typeof arguments[1]&&Object(i["a"])(arguments[0],r["a"])){const t=arguments[0],e=arguments[1];let n=!1;for(let i=t.iterator();i.hasNext();)this.add(i.next(),e),n=!0;return n}return super.addAll.apply(this,arguments)}clone(){const t=super.clone.call(this);for(let e=0;e0){const t=this.get(0).copy();this.add(t,!1)}}toCoordinateArray(){if(0===arguments.length)return this.toArray(a.coordArrayType);if(1===arguments.length){const t=arguments[0];if(t)return this.toArray(a.coordArrayType);const e=this.size(),n=new Array(e).fill(null);for(let i=0;i=1){const e=this.get(this.size()-1);if(e.equals2D(t))return null}super.add.call(this,t)}else if(arguments[0]instanceof Object&&"boolean"===typeof arguments[1]){const t=arguments[0],e=arguments[1];return this.add(t,e),!0}}else if(3===arguments.length){if("boolean"===typeof arguments[2]&&arguments[0]instanceof Array&&"boolean"===typeof arguments[1]){const t=arguments[0],e=arguments[1],n=arguments[2];if(n)for(let i=0;i=0;i--)this.add(t[i],e);return!0}if("boolean"===typeof arguments[2]&&Number.isInteger(arguments[0])&&arguments[1]instanceof s["a"]){const t=arguments[0],e=arguments[1],n=arguments[2];if(!n){const n=this.size();if(n>0){if(t>0){const n=this.get(t-1);if(n.equals2D(e))return null}if(ti&&(r=-1);for(let s=n;s!==i;s+=r)this.add(t[s],e);return!0}}}a.coordArrayType=new Array(0).fill(null)},"0bfb":function(t,e,n){"use strict";var i=n("cb7c");t.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0c2e":function(t,e,n){},"0caa":function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; +var e=t.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}});return e})},"0a9d":function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return o});var i=n("9f5e"),r=n("25f1");function s(t,e,n,s,o,a,c){for(var l,u,h,d,f,p,_,m=o[a+1],g=[],y=0,v=n.length;yw&&(h=(d+f)/2,Object(r["c"])(t,e,n,s,h,m)&&(M=h,w=x)),d=f}return isNaN(M)&&(M=o[a]),c?(c.push(M,m,w),c):[M,m,w]}function o(t,e,n,i,r){for(var o=[],a=0,c=n.length;ar&&(l|=s["a"].RIGHT),co&&(l|=s["a"].ABOVE),l===s["a"].UNKNOWN&&(l=s["a"].INTERSECTING),l}function _(){return[1/0,1/0,-1/0,-1/0]}function m(t,e,n,i,r){return r?(r[0]=t,r[1]=e,r[2]=n,r[3]=i,r):[t,e,n,i]}function g(t){return m(1/0,1/0,-1/0,-1/0,t)}function y(t,e){var n=t[0],i=t[1];return m(n,i,n,i,e)}function v(t,e){var n=g(e);return L(n,t)}function b(t,e,n,i,r){var s=g(r);return E(s,t,e,n,i)}function M(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function w(t,e){return e[0]t[2]&&(t[2]=e[2]),e[1]t[3]&&(t[3]=e[3]),t}function x(t,e){e[0]t[2]&&(t[2]=e[0]),e[1]t[3]&&(t[3]=e[1])}function L(t,e){for(var n=0,i=e.length;ne[0]?i[0]=t[0]:i[0]=e[0],t[1]>e[1]?i[1]=t[1]:i[1]=e[1],t[2]=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function H(t){return t[2]=l&&a<=h),i||!(o&s["a"].RIGHT)||r&s["a"].RIGHT||(c=g-(m-h)*y,i=c>=u&&c<=d),i||!(o&s["a"].BELOW)||r&s["a"].BELOW||(a=m-(g-u)/y,i=a>=l&&a<=h),i||!(o&s["a"].LEFT)||r&s["a"].LEFT||(c=g-(m-l)*y,i=c>=u&&c<=d)}return i}function B(t,e,n){var i=[t[0],t[1],t[0],t[3],t[2],t[1],t[2],t[3]];e(i,i,2);var r=[i[0],i[2],i[4],i[6]],s=[i[1],i[3],i[5],i[7]];return a(r,s,n)}},"0b2d":function(t,e,n){"use strict";var i=n("01d4");e["a"]={SINGLECLICK:"singleclick",CLICK:i["a"].CLICK,DBLCLICK:i["a"].DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},"0ba1":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("38de"),r=n("c6a3"),s=n("ad3f"),o=n("70d5");class a extends o["a"]{constructor(){super(),a.constructor_.apply(this,arguments)}static constructor_(){if(0===arguments.length);else if(1===arguments.length){const t=arguments[0];this.ensureCapacity(t.length),this.add(t,!0)}else if(2===arguments.length){const t=arguments[0],e=arguments[1];this.ensureCapacity(t.length),this.add(t,e)}}getCoordinate(t){return this.get(t)}addAll(){if(2===arguments.length&&"boolean"===typeof arguments[1]&&Object(i["a"])(arguments[0],r["a"])){const t=arguments[0],e=arguments[1];let n=!1;for(let i=t.iterator();i.hasNext();)this.add(i.next(),e),n=!0;return n}return super.addAll.apply(this,arguments)}clone(){const t=super.clone.call(this);for(let e=0;e0){const t=this.get(0).copy();this.add(t,!1)}}toCoordinateArray(){if(0===arguments.length)return this.toArray(a.coordArrayType);if(1===arguments.length){const t=arguments[0];if(t)return this.toArray(a.coordArrayType);const e=this.size(),n=new Array(e).fill(null);for(let i=0;i=1){const e=this.get(this.size()-1);if(e.equals2D(t))return null}super.add.call(this,t)}else if(arguments[0]instanceof Object&&"boolean"===typeof arguments[1]){const t=arguments[0],e=arguments[1];return this.add(t,e),!0}}else if(3===arguments.length){if("boolean"===typeof arguments[2]&&arguments[0]instanceof Array&&"boolean"===typeof arguments[1]){const t=arguments[0],e=arguments[1],n=arguments[2];if(n)for(let i=0;i=0;i--)this.add(t[i],e);return!0}if("boolean"===typeof arguments[2]&&Number.isInteger(arguments[0])&&arguments[1]instanceof s["a"]){const t=arguments[0],e=arguments[1],n=arguments[2];if(!n){const n=this.size();if(n>0){if(t>0){const n=this.get(t-1);if(n.equals2D(e))return null}if(ti&&(r=-1);for(let s=n;s!==i;s+=r)this.add(t[s],e);return!0}}}a.coordArrayType=new Array(0).fill(null)},"0bfb":function(t,e,n){"use strict";var i=n("cb7c");t.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0c2e":function(t,e,n){},"0caa":function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration function e(t,e,n,i){var r={s:["thoddea sekondamni","thodde sekond"],ss:[t+" sekondamni",t+" sekond"],m:["eka mintan","ek minut"],mm:[t+" mintamni",t+" mintam"],h:["eka voran","ek vor"],hh:[t+" voramni",t+" voram"],d:["eka disan","ek dis"],dd:[t+" disamni",t+" dis"],M:["eka mhoinean","ek mhoino"],MM:[t+" mhoineamni",t+" mhoine"],y:["eka vorsan","ek voros"],yy:[t+" vorsamni",t+" vorsam"]};return i?r[n][0]:r[n][1]}var n=t.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(t,e){switch(e){case"D":return t+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return t}},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(t,e){return 12===t&&(t=0),"rati"===e?t<4?t:t+12:"sokallim"===e?t:"donparam"===e?t>12?t:t+12:"sanje"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"rati":t<12?"sokallim":t<16?"donparam":t<20?"sanje":"rati"}});return n})},"0d25":function(t,e,n){"use strict";t.exports=TypeError},"0d3e":function(t,e,n){"use strict";n.d(e,"a",function(){return E});var i=n("ad3f"),r=n("cd4a");const s={XY:"XY",XYZ:"XYZ",XYM:"XYM",XYZM:"XYZM"},o={POINT:"Point",LINE_STRING:"LineString",LINEAR_RING:"LinearRing",POLYGON:"Polygon",MULTI_POINT:"MultiPoint",MULTI_LINE_STRING:"MultiLineString",MULTI_POLYGON:"MultiPolygon",GEOMETRY_COLLECTION:"GeometryCollection",CIRCLE:"Circle"},a="EMPTY",c="Z",l="M",u="ZM",h={TEXT:1,LEFT_PAREN:2,RIGHT_PAREN:3,NUMBER:4,COMMA:5,EOF:6},d={};for(const T in o)d[T]=o[T].toUpperCase();class f{constructor(t){this.wkt=t,this.index_=-1}isAlpha_(t){return t>="a"&&t<="z"||t>="A"&&t<="Z"}isNumeric_(t,e){const n=void 0!==e&&e;return t>="0"&&t<="9"||"."==t&&!n}isWhiteSpace_(t){return" "==t||"\t"==t||"\r"==t||"\n"==t}nextChar_(){return this.wkt.charAt(++this.index_)}nextToken(){const t=this.nextChar_(),e=this.index_;let n,i=t;if("("==t)n=h.LEFT_PAREN;else if(","==t)n=h.COMMA;else if(")"==t)n=h.RIGHT_PAREN;else if(this.isNumeric_(t)||"-"==t)n=h.NUMBER,i=this.readNumber_();else if(this.isAlpha_(t))n=h.TEXT,i=this.readText_();else{if(this.isWhiteSpace_(t))return this.nextToken();if(""!==t)throw new Error("Unexpected character: "+t);n=h.EOF}return{position:e,value:i,type:n}}readNumber_(){let t;const e=this.index_;let n=!1,i=!1;do{"."==t?n=!0:"e"!=t&&"E"!=t||(i=!0),t=this.nextChar_()}while(this.isNumeric_(t,n)||!i&&("e"==t||"E"==t)||i&&("-"==t||"+"==t));return parseFloat(this.wkt.substring(e,this.index_--))}readText_(){let t;const e=this.index_;do{t=this.nextChar_()}while(this.isAlpha_(t));return this.wkt.substring(e,this.index_--).toUpperCase()}}class p{constructor(t,e){this.lexer_=t,this.token_,this.layout_=s.XY,this.factory=e}consume_(){this.token_=this.lexer_.nextToken()}isTokenType(t){const e=this.token_.type==t;return e}match(t){const e=this.isTokenType(t);return e&&this.consume_(),e}parse(){this.consume_();const t=this.parseGeometry_();return t}parseGeometryLayout_(){let t=s.XY;const e=this.token_;if(this.isTokenType(h.TEXT)){const n=e.value;n===c?t=s.XYZ:n===l?t=s.XYM:n===u&&(t=s.XYZM),t!==s.XY&&this.consume_()}return t}parseGeometryCollectionText_(){if(this.match(h.LEFT_PAREN)){const t=[];do{t.push(this.parseGeometry_())}while(this.match(h.COMMA));if(this.match(h.RIGHT_PAREN))return t}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())}parsePointText_(){if(this.match(h.LEFT_PAREN)){const t=this.parsePoint_();if(this.match(h.RIGHT_PAREN))return t}else if(this.isEmptyGeometry_())return null;throw new Error(this.formatErrorMessage_())}parseLineStringText_(){if(this.match(h.LEFT_PAREN)){const t=this.parsePointList_();if(this.match(h.RIGHT_PAREN))return t}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())}parsePolygonText_(){if(this.match(h.LEFT_PAREN)){const t=this.parseLineStringTextList_();if(this.match(h.RIGHT_PAREN))return t}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())}parseMultiPointText_(){if(this.match(h.LEFT_PAREN)){let t;if(t=this.token_.type==h.LEFT_PAREN?this.parsePointTextList_():this.parsePointList_(),this.match(h.RIGHT_PAREN))return t}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())}parseMultiLineStringText_(){if(this.match(h.LEFT_PAREN)){const t=this.parseLineStringTextList_();if(this.match(h.RIGHT_PAREN))return t}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())}parseMultiPolygonText_(){if(this.match(h.LEFT_PAREN)){const t=this.parsePolygonTextList_();if(this.match(h.RIGHT_PAREN))return t}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())}parsePoint_(){const t=[],e=this.layout_.length;for(let n=0;nt?new i["a"](...t):new i["a"],n=n=>{const i=n.map(n=>t.createLinearRing(n.map(e)));return i.length>1?t.createPolygon(i[0],i.slice(1)):1===i.length?t.createPolygon(i[0]):t.createPolygon()},r=this.token_;if(this.match(h.TEXT)){const s=r.value;if(this.layout_=this.parseGeometryLayout_(),"GEOMETRYCOLLECTION"==s){const e=this.parseGeometryCollectionText_();return t.createGeometryCollection(e)}switch(s){case"POINT":{const e=this.parsePointText_();return e?t.createPoint(new i["a"](...e)):t.createPoint()}case"LINESTRING":{const n=this.parseLineStringText_(),i=n.map(e);return t.createLineString(i)}case"LINEARRING":{const n=this.parseLineStringText_(),i=n.map(e);return t.createLinearRing(i)}case"POLYGON":{const e=this.parsePolygonText_();return e&&0!==e.length?n(e):t.createPolygon()}case"MULTIPOINT":{const n=this.parseMultiPointText_();if(!n||0===n.length)return t.createMultiPoint();const i=n.map(e).map(e=>t.createPoint(e));return t.createMultiPoint(i)}case"MULTILINESTRING":{const n=this.parseMultiLineStringText_(),i=n.map(n=>t.createLineString(n.map(e)));return t.createMultiLineString(i)}case"MULTIPOLYGON":{const e=this.parseMultiPolygonText_();if(!e||0===e.length)return t.createMultiPolygon();const i=e.map(n);return t.createMultiPolygon(i)}default:throw new Error("Invalid geometry type: "+s)}}throw new Error(this.formatErrorMessage_())}}function _(t){if(t.isEmpty())return"";const e=t.getCoordinate(),n=[e.x,e.y];return void 0===e.z||Number.isNaN(e.z)||n.push(e.z),void 0===e.m||Number.isNaN(e.m)||n.push(e.m),n.join(" ")}function m(t){const e=[];for(let n=0,i=t.getNumGeometries();n{const e=[t.x,t.y];return void 0===t.z||Number.isNaN(t.z)||e.push(t.z),void 0===t.m||Number.isNaN(t.m)||e.push(t.m),e}),n=[];for(let i=0,r=e.length;i0&&(e+=" "+i),t.isEmpty())return e+" "+a;const r=n(t);return e+" ("+r+")"}class E{constructor(t){this.geometryFactory=t||new r["a"],this.precisionModel=this.geometryFactory.getPrecisionModel()}read(t){const e=new f(t),n=new p(e,this.geometryFactory),i=n.parse();return i}write(t){return L(t)}}},"0d58":function(t,e,n){var i=n("ce10"),r=n("e11e");t.exports=Object.keys||function(t){return i(t,r)}},"0d6d":function(t,e,n){var i=n("d3f4"),r=n("67ab").onFreeze;n("5eda")("freeze",function(t){return function(e){return t&&i(e)?t(r(e)):e}})},"0dd8":function(t,e,n){"use strict";var i=n("7b52"),r=n("0360"),s=n("2709"),o=n("fe5c"),a=n("7c92"),c=n("b08b"),l=n("70d5"),u=n("668c");class h{constructor(){h.constructor_.apply(this,arguments)}static constructor_(){if(this._startDe=null,this._maxNodeDegree=-1,this._edges=new l["a"],this._pts=new l["a"],this._label=new c["a"](i["a"].NONE),this._ring=null,this._isHole=null,this._shell=null,this._holes=new l["a"],this._geometryFactory=null,0===arguments.length);else if(2===arguments.length){const t=arguments[0],e=arguments[1];this._geometryFactory=e,this.computePoints(t),this.computeRing()}}computeRing(){if(null!==this._ring)return null;const t=new Array(this._pts.size()).fill(null);for(let e=0;ethis._maxNodeDegree&&(this._maxNodeDegree=n),t=this.getNext(t)}while(t!==this._startDe);this._maxNodeDegree*=2}addPoints(t,e,n){const i=t.getCoordinates();if(e){let t=1;n&&(t=0);for(let e=t;e=0;e--)this._pts.add(i[e])}}containsPoint(t){const e=this.getLinearRing(),n=e.getEnvelopeInternal();if(!n.contains(t))return!1;if(!s["a"].isInRing(t,e.getCoordinates()))return!1;for(let i=this._holes.iterator();i.hasNext();){const e=i.next();if(e.containsPoint(t))return!1}return!0}getMaxNodeDegree(){return this._maxNodeDegree<0&&this.computeMaxNodeDegree(),this._maxNodeDegree}setShell(t){this._shell=t,null!==t&&t.addHole(this)}toPolygon(t){const e=new Array(this._holes.size()).fill(null);for(let i=0;i0&&(n.__timeout=setTimeout(function(){r()},n.timeout+1e3));var c=n.position.indexOf("top")>-1?"unshift":"push";return this.notifs[n.position][c](n),r},remove:function(t){t.__timeout&&clearTimeout(t.__timeout);var e=this.notifs[t.position].indexOf(t);if(-1!==e){var n=this.$refs["notif_".concat(t.__uid)];if(n&&n.$el){var i=n.$el;i.style.left="".concat(i.offsetLeft,"px"),i.style.width=getComputedStyle(i).width}this.notifs[t.position].splice(e,1),"function"===typeof t.onDismiss&&t.onDismiss()}}},render:function(t){var e=this;return t("div",{staticClass:"q-notifications"},u.map(function(n){var i=["left","center","right"].includes(n)?"center":n.indexOf("top")>-1?"top":"bottom",r=n.indexOf("left")>-1?"start":n.indexOf("right")>-1?"end":"center",o=["left","right"].includes(n)?"items-".concat("left"===n?"start":"end"," justify-center"):"center"===n?"flex-center":"items-".concat(r);return t("transition-group",{key:n,staticClass:"q-notification-list q-notification-list-".concat(i," fixed column ").concat(o),tag:"div",props:{name:"q-notification-".concat(n),mode:"out-in"}},e.notifs[n].map(function(e){return t(s,{ref:"notif_".concat(e.__uid),key:e.__uid,staticClass:"q-notification",props:e},[e.message])}))}))}}),this.__vm.$mount(n)}e["a"]={create:function(t){return c["c"]?function(){}:this.__vm.add(t)},setDefaults:function(t){Object.assign(l,t)},install:function(t){if(c["c"])return t.$q.notify=function(){},void(t.$q.notify.setDefaults=function(){});h.call(this,t),t.cfg.notify&&this.setDefaults(t.cfg.notify),t.$q.notify=this.create.bind(this),t.$q.notify.setDefaults=this.setDefaults}}},"138e":function(t,e,n){"use strict";var i=n("38de"),r=n("ad3f");class s{static ofLine(t){const e=t.size();if(e<=1)return 0;let n=0;const i=new r["a"];t.getCoordinate(0,i);let s=i.x,o=i.y;for(let r=1;r0){const t=this._points.copy();_["a"].reverse(t),this._points=t}return null}}}getCoordinate(){return this.isEmpty()?null:this._points.getCoordinate(0)}getBoundaryDimension(){return this.isClosed()?u["a"].FALSE:0}getLength(){return s.ofLine(this._points)}getNumPoints(){return this._points.size()}compareToSameClass(){if(1===arguments.length){const t=arguments[0],e=t;let n=0,i=0;while(n= 2)");this._points=t}isCoordinate(t){for(let e=0;et._quadrant?1:this._quadrant=1&&t%10<=4&&(t%100<10||t%100>=20)?t%10===1?e[0]:e[1]:e[2]},translate:function(t,n,i,r){var s,o=e.words[i];return 1===i.length?"y"===i&&n?"једна година":r||n?o[0]:o[1]:(s=e.correctGrammaticalCase(t,o),"yy"===i&&n&&"годину"===s?t+" година":t+" "+s)}},n=t.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){var t=["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"];return t[this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:e.translate,dd:e.translate,M:e.translate,MM:e.translate,y:e.translate,yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n})},1409:function(t,e,n){"use strict";t.exports=ReferenceError},1436:function(t,e,n){"use strict";n.d(e,"a",function(){return p});var i=n("138e"),r=n("cd4a"),s=n("3894"),o=n("76af"),a=n("c73a"),c=n("70d5"),l=n("58e9"),u=n("fd89"),h=n("a02c"),d=n("78c4"),f=n("f69e");class p{constructor(){p.constructor_.apply(this,arguments)}static constructor_(){this._inputGeom=null,this._factory=null,this._pruneEmptyGeometry=!0,this._preserveGeometryCollectionType=!0,this._preserveCollections=!1,this._preserveType=!1}transformPoint(t,e){return this._factory.createPoint(this.transformCoordinates(t.getCoordinateSequence(),t))}transformPolygon(t,e){let n=!0;const i=this.transformLinearRing(t.getExteriorRing(),t);null!==i&&i instanceof s["a"]&&!i.isEmpty()||(n=!1);const r=new c["a"];for(let o=0;o0&&i<4&&!this._preserveType?this._factory.createLineString(n):this._factory.createLinearRing(n)}transformGeometryCollection(t,e){const n=new c["a"];for(let i=0;ic)i.f(t,n=o[c++],e[n]);return t}},1526:function(t,e,n){"use strict";var i=n("b18c");function r(t,e,n){var r=n.stop,s=n.center;r&&t.stopPropagation();var o,a,c=document.createElement("span"),l=document.createElement("span"),u=e.clientWidth>e.clientHeight?e.clientWidth:e.clientHeight,h="".concat(s?u:2*u,"px"),d=e.getBoundingClientRect();if(c.appendChild(l),c.className="q-ripple-container",l.className="q-ripple-animation",l.style.width=h,l.style.height=h,e.appendChild(c),s)o=a=0;else{var f=Object(i["f"])(t);o=f.left-d.left-u,a=f.top-d.top-u}l.classList.add("q-ripple-animation-enter"),l.classList.add("q-ripple-animation-visible"),l.style.transform="translate(".concat(o,"px, ").concat(a,"px) scale3d(0, 0, 0)"),setTimeout(function(){l.classList.remove("q-ripple-animation-enter"),l.style.transform="translate(".concat(o,"px, ").concat(a,"px) scale3d(1, 1, 1)"),setTimeout(function(){l.classList.remove("q-ripple-animation-visible"),setTimeout(function(){c.remove()},300)},300)},10)}function s(t){t.mat;var e=t.ios;return e&&!0}e["a"]={name:"ripple",inserted:function(t,e){var n=e.value,i=e.modifiers;if(!s(i)){var o={enabled:!1!==n,modifiers:{stop:i.stop,center:i.center},click:function(e){o.enabled&&-1!==e.detail&&r(e,t,o.modifiers)},keyup:function(e){o.enabled&&13===e.keyCode&&r(e,t,o.modifiers)}};t.__qripple=o,t.addEventListener("click",o.click,!1),t.addEventListener("keyup",o.keyup,!1)}},update:function(t,e){var n=e.value,i=e.modifiers,r=i.stop,s=i.center,o=t.__qripple;o&&(o.enabled=!1!==n,o.modifiers={stop:r,center:s})},unbind:function(t,e){var n=e.modifiers,i=t.__qripple;i&&!s(n)&&(t.removeEventListener("click",i.click,!1),t.removeEventListener("keyup",i.keyup,!1),delete t.__qripple)}}},1528:function(t,e,n){"use strict";n.d(e,"b",function(){return s}),n.d(e,"a",function(){return o}),n.d(e,"e",function(){return l}),n.d(e,"c",function(){return u}),n.d(e,"d",function(){return h});n("6762"),n("2fdb");var i,r=n("abcf");function s(t){return t.closest(".scroll,.scroll-y,.overflow-auto")||window}function o(t){return t===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:t.scrollTop}function a(t,e,n){var i=o(t);n<=0?i!==e&&c(t,e):requestAnimationFrame(function(){var r=i+(e-i)/Math.max(16,n)*16;c(t,r),r!==e&&a(t,e,n-16)})}function c(t,e){if(t===window)return document.documentElement.scrollTop=e,void(document.body.scrollTop=e);t.scrollTop=e}function l(t,e,n){n?a(t,e,n):c(t,e)}function u(){if(void 0!==i)return i;var t=document.createElement("p"),e=document.createElement("div");Object(r["a"])(t,{width:"100%",height:"200px"}),Object(r["a"])(e,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e);var n=t.offsetWidth;e.style.overflow="scroll";var s=t.offsetWidth;return n===s&&(s=e.clientWidth),e.remove(),i=n-s,i}function h(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!(!t||t.nodeType!==Node.ELEMENT_NODE)&&(e?t.scrollHeight>t.clientHeight&&(t.classList.contains("scroll")||t.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(t)["overflow-y"])):t.scrollWidth>t.clientWidth&&(t.classList.contains("scroll")||t.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(t)["overflow-x"])))}},1548:function(t,e,n){"use strict";var i=n("3fb5"),r=n("ada0").EventEmitter,s=function(){};function o(t,e){s(t),r.call(this);var n=this;this.bufferPosition=0,this.xo=new e("POST",t,null),this.xo.on("chunk",this._chunkHandler.bind(this)),this.xo.once("finish",function(t,e){s("finish",t,e),n._chunkHandler(t,e),n.xo=null;var i=200===t?"network":"permanent";s("close",i),n.emit("close",null,i),n._cleanup()})}i(o,r),o.prototype._chunkHandler=function(t,e){if(s("_chunkHandler",t),200===t&&e)for(var n=-1;;this.bufferPosition+=n+1){var i=e.slice(this.bufferPosition);if(n=i.indexOf("\n"),-1===n)break;var r=i.slice(0,n);r&&(s("message",r),this.emit("message",r))}},o.prototype._cleanup=function(){s("_cleanup"),this.removeAllListeners()},o.prototype.abort=function(){s("abort"),this.xo&&(this.xo.close(),s("close"),this.emit("close",null,"user"),this.xo=null),this._cleanup()},t.exports=o},"15a2":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("1fb5"),r=n("6c27");if("undefined"===typeof Promise)throw Error("Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.");var s=!1;function o(){s||(s=!0,console.warn("[KEYCLOAK] Usage of legacy style promise methods such as `.error()` and `.success()` has been deprecated and support will be removed in future versions. Use standard style promise methods such as `.then() and `.catch()` instead."))}function a(t){if(!(this instanceof a))return new a(t);for(var e,n,s=this,c=[],l={enable:!0,callbackList:[],interval:5},u=document.getElementsByTagName("script"),h=0;h=0;--n){var i=e[n];"error"==t.data?i.setError():i.setSuccess("unchanged"==t.data)}}};return window.addEventListener("message",i,!1),t.promise}function A(){l.enable&&s.token&&setTimeout(function(){N().then(function(t){t&&A()})},1e3*l.interval)}function N(){var t=I();if(l.iframe&&l.iframeOrigin){var e=s.clientId+" "+(s.sessionId?s.sessionId:"");l.callbackList.push(t);var n=l.iframeOrigin;1==l.callbackList.length&&l.iframe.contentWindow.postMessage(e,n)}else t.setSuccess();return t.promise}function Y(){var t=I();if(l.enable||s.silentCheckSsoRedirectUri){var e=document.createElement("iframe");e.setAttribute("src",s.endpoints.thirdPartyCookiesIframe()),e.setAttribute("title","keycloak-3p-check-iframe"),e.style.display="none",document.body.appendChild(e);var n=function(i){e.contentWindow===i.source&&("supported"!==i.data&&"unsupported"!==i.data||("unsupported"===i.data&&(l.enable=!1,s.silentCheckSsoFallback&&(s.silentCheckSsoRedirectUri=!1),p("[KEYCLOAK] 3rd party cookies aren't supported by this browser. checkLoginIframe and silent check-sso are not available.")),document.body.removeChild(e),window.removeEventListener("message",n),t.setSuccess()))};window.addEventListener("message",n,!1)}else t.setSuccess();return D(t.promise,s.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function P(t){if(!t||"default"==t)return{login:function(t){return window.location.replace(s.createLoginUrl(t)),I().promise},logout:function(t){return window.location.replace(s.createLogoutUrl(t)),I().promise},register:function(t){return window.location.replace(s.createRegisterUrl(t)),I().promise},accountManagement:function(){var t=s.createAccountUrl();if("undefined"===typeof t)throw"Not supported by the OIDC server";return window.location.href=t,I().promise},redirectUri:function(t,e){return t&&t.redirectUri?t.redirectUri:s.redirectUri?s.redirectUri:location.href}};if("cordova"==t){l.enable=!1;var e=function(t,e,n){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(t,e,n):window.open(t,e,n)},n=function(t){return t&&t.cordovaOptions?Object.keys(t.cordovaOptions).reduce(function(e,n){return e[n]=t.cordovaOptions[n],e},{}):{}},i=function(t){return Object.keys(t).reduce(function(e,n){return e.push(n+"="+t[n]),e},[]).join(",")},r=function(t){var e=n(t);return e.location="no",t&&"none"==t.prompt&&(e.hidden="yes"),i(e)};return{login:function(t){var n=I(),i=r(t),o=s.createLoginUrl(t),a=e(o,"_blank",i),c=!1,l=!1,u=function(){l=!0,a.close()};return a.addEventListener("loadstart",function(t){if(0==t.url.indexOf("http://localhost")){var e=O(t.url);w(e,n),u(),c=!0}}),a.addEventListener("loaderror",function(t){if(!c)if(0==t.url.indexOf("http://localhost")){var e=O(t.url);w(e,n),u(),c=!0}else n.setError(),u()}),a.addEventListener("exit",function(t){l||n.setError({reason:"closed_by_user"})}),n.promise},logout:function(t){var n,i=I(),r=s.createLogoutUrl(t),o=e(r,"_blank","location=no,hidden=yes,clearcache=yes");return o.addEventListener("loadstart",function(t){0==t.url.indexOf("http://localhost")&&o.close()}),o.addEventListener("loaderror",function(t){0==t.url.indexOf("http://localhost")?o.close():(n=!0,o.close())}),o.addEventListener("exit",function(t){n?i.setError():(s.clearToken(),i.setSuccess())}),i.promise},register:function(t){var n=I(),i=s.createRegisterUrl(),o=r(t),a=e(i,"_blank",o);return a.addEventListener("loadstart",function(t){if(0==t.url.indexOf("http://localhost")){a.close();var e=O(t.url);w(e,n)}}),n.promise},accountManagement:function(){var t=s.createAccountUrl();if("undefined"===typeof t)throw"Not supported by the OIDC server";var n=e(t,"_blank","location=no");n.addEventListener("loadstart",function(t){0==t.url.indexOf("http://localhost")&&n.close()})},redirectUri:function(t){return"http://localhost"}}}if("cordova-native"==t)return l.enable=!1,{login:function(t){var e=I(),n=s.createLoginUrl(t);return universalLinks.subscribe("keycloak",function(t){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var n=O(t.url);w(n,e)}),window.cordova.plugins.browsertab.openUrl(n),e.promise},logout:function(t){var e=I(),n=s.createLogoutUrl(t);return universalLinks.subscribe("keycloak",function(t){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),s.clearToken(),e.setSuccess()}),window.cordova.plugins.browsertab.openUrl(n),e.promise},register:function(t){var e=I(),n=s.createRegisterUrl(t);return universalLinks.subscribe("keycloak",function(t){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var n=O(t.url);w(n,e)}),window.cordova.plugins.browsertab.openUrl(n),e.promise},accountManagement:function(){var t=s.createAccountUrl();if("undefined"===typeof t)throw"Not supported by the OIDC server";window.cordova.plugins.browsertab.openUrl(t)},redirectUri:function(t){return t&&t.redirectUri?t.redirectUri:s.redirectUri?s.redirectUri:"http://localhost"}};throw"invalid adapter type: "+t}s.init=function(t){s.authenticated=!1,n=H();var i=["default","cordova","cordova-native"];if(e=t&&i.indexOf(t.adapter)>-1?P(t.adapter):t&&"object"===typeof t.adapter?t.adapter:window.Cordova||window.cordova?P("cordova"):P(),t){if("undefined"!==typeof t.useNonce&&(d=t.useNonce),"undefined"!==typeof t.checkLoginIframe&&(l.enable=t.checkLoginIframe),t.checkLoginIframeInterval&&(l.interval=t.checkLoginIframeInterval),"login-required"===t.onLoad&&(s.loginRequired=!0),t.responseMode){if("query"!==t.responseMode&&"fragment"!==t.responseMode)throw"Invalid value for responseMode";s.responseMode=t.responseMode}if(t.flow){switch(t.flow){case"standard":s.responseType="code";break;case"implicit":s.responseType="id_token token";break;case"hybrid":s.responseType="code id_token token";break;default:throw"Invalid value for flow"}s.flow=t.flow}if(null!=t.timeSkew&&(s.timeSkew=t.timeSkew),t.redirectUri&&(s.redirectUri=t.redirectUri),t.silentCheckSsoRedirectUri&&(s.silentCheckSsoRedirectUri=t.silentCheckSsoRedirectUri),"boolean"===typeof t.silentCheckSsoFallback?s.silentCheckSsoFallback=t.silentCheckSsoFallback:s.silentCheckSsoFallback=!0,t.pkceMethod){if("S256"!==t.pkceMethod)throw"Invalid value for pkceMethod";s.pkceMethod=t.pkceMethod}"boolean"===typeof t.enableLogging?s.enableLogging=t.enableLogging:s.enableLogging=!1,"string"===typeof t.scope&&(s.scope=t.scope),"number"===typeof t.messageReceiveTimeout&&t.messageReceiveTimeout>0?s.messageReceiveTimeout=t.messageReceiveTimeout:s.messageReceiveTimeout=1e4}s.responseMode||(s.responseMode="fragment"),s.responseType||(s.responseType="code",s.flow="standard");var r=I(),o=I();o.promise.then(function(){s.onReady&&s.onReady(s.authenticated),r.setSuccess(s.authenticated)}).catch(function(t){r.setError(t)});var a=x();function c(){var e=function(t){t||(i.prompt="none"),s.login(i).then(function(){o.setSuccess()}).catch(function(t){o.setError(t)})},n=function(){var t=document.createElement("iframe"),e=s.createLoginUrl({prompt:"none",redirectUri:s.silentCheckSsoRedirectUri});t.setAttribute("src",e),t.setAttribute("title","keycloak-silent-check-sso"),t.style.display="none",document.body.appendChild(t);var n=function(e){if(e.origin===window.location.origin&&t.contentWindow===e.source){var i=O(e.data);w(i,o),document.body.removeChild(t),window.removeEventListener("message",n)}};window.addEventListener("message",n)},i={};switch(t.onLoad){case"check-sso":l.enable?R().then(function(){N().then(function(t){t?o.setSuccess():s.silentCheckSsoRedirectUri?n():e(!1)}).catch(function(t){o.setError(t)})}):s.silentCheckSsoRedirectUri?n():e(!1);break;case"login-required":e(!0);break;default:throw"Invalid value for onLoad"}}function u(){var e=O(window.location.href);if(e&&window.history.replaceState(window.history.state,null,e.newUrl),e&&e.valid)return R().then(function(){w(e,o)}).catch(function(t){o.setError(t)});t?t.token&&t.refreshToken?(E(t.token,t.refreshToken,t.idToken),l.enable?R().then(function(){N().then(function(t){t?(s.onAuthSuccess&&s.onAuthSuccess(),o.setSuccess(),A()):o.setSuccess()}).catch(function(t){o.setError(t)})}):s.updateToken(-1).then(function(){s.onAuthSuccess&&s.onAuthSuccess(),o.setSuccess()}).catch(function(e){s.onAuthError&&s.onAuthError(),t.onLoad?c():o.setError(e)})):t.onLoad?c():o.setSuccess():o.setSuccess()}function h(){var t=I(),e=function(){"interactive"!==document.readyState&&"complete"!==document.readyState||(document.removeEventListener("readystatechange",e),t.setSuccess())};return document.addEventListener("readystatechange",e),e(),t.promise}return a.then(function(){h().then(Y).then(u).catch(function(t){r.setError(t)})}),a.catch(function(t){r.setError(t)}),r.promise},s.login=function(t){return e.login(t)},s.createLoginUrl=function(t){var i,r=S(),o=S(),a=e.redirectUri(t),c={state:r,nonce:o,redirectUri:encodeURIComponent(a)};t&&t.prompt&&(c.prompt=t.prompt),i=t&&"register"==t.action?s.endpoints.register():s.endpoints.authorize();var l=t&&t.scope||s.scope;l?-1===l.indexOf("openid")&&(l="openid "+l):l="openid";var u=i+"?client_id="+encodeURIComponent(s.clientId)+"&redirect_uri="+encodeURIComponent(a)+"&state="+encodeURIComponent(r)+"&response_mode="+encodeURIComponent(s.responseMode)+"&response_type="+encodeURIComponent(s.responseType)+"&scope="+encodeURIComponent(l);if(d&&(u=u+"&nonce="+encodeURIComponent(o)),t&&t.prompt&&(u+="&prompt="+encodeURIComponent(t.prompt)),t&&t.maxAge&&(u+="&max_age="+encodeURIComponent(t.maxAge)),t&&t.loginHint&&(u+="&login_hint="+encodeURIComponent(t.loginHint)),t&&t.idpHint&&(u+="&kc_idp_hint="+encodeURIComponent(t.idpHint)),t&&t.action&&"register"!=t.action&&(u+="&kc_action="+encodeURIComponent(t.action)),t&&t.locale&&(u+="&ui_locales="+encodeURIComponent(t.locale)),t&&t.acr){var h=v(t.acr);u+="&claims="+encodeURIComponent(h)}if(s.pkceMethod){var f=m(96);c.pkceCodeVerifier=f;var p=y(s.pkceMethod,f);u+="&code_challenge="+p,u+="&code_challenge_method="+s.pkceMethod}return n.add(c),u},s.logout=function(t){return e.logout(t)},s.createLogoutUrl=function(t){var n=s.endpoints.logout()+"?client_id="+encodeURIComponent(s.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(e.redirectUri(t,!1));return s.idToken&&(n+="&id_token_hint="+encodeURIComponent(s.idToken)),n},s.register=function(t){return e.register(t)},s.createRegisterUrl=function(t){return t||(t={}),t.action="register",s.createLoginUrl(t)},s.createAccountUrl=function(t){var n=b(),i=void 0;return"undefined"!==typeof n&&(i=n+"/account?referrer="+encodeURIComponent(s.clientId)+"&referrer_uri="+encodeURIComponent(e.redirectUri(t))),i},s.accountManagement=function(){return e.accountManagement()},s.hasRealmRole=function(t){var e=s.realmAccess;return!!e&&e.roles.indexOf(t)>=0},s.hasResourceRole=function(t,e){if(!s.resourceAccess)return!1;var n=s.resourceAccess[e||s.clientId];return!!n&&n.roles.indexOf(t)>=0},s.loadUserProfile=function(){var t=b()+"/account",e=new XMLHttpRequest;e.open("GET",t,!0),e.setRequestHeader("Accept","application/json"),e.setRequestHeader("Authorization","bearer "+s.token);var n=I();return e.onreadystatechange=function(){4==e.readyState&&(200==e.status?(s.profile=JSON.parse(e.responseText),n.setSuccess(s.profile)):n.setError())},e.send(),n.promise},s.loadUserInfo=function(){var t=s.endpoints.userinfo(),e=new XMLHttpRequest;e.open("GET",t,!0),e.setRequestHeader("Accept","application/json"),e.setRequestHeader("Authorization","bearer "+s.token);var n=I();return e.onreadystatechange=function(){4==e.readyState&&(200==e.status?(s.userInfo=JSON.parse(e.responseText),n.setSuccess(s.userInfo)):n.setError())},e.send(),n.promise},s.isTokenExpired=function(t){if(!s.tokenParsed||!s.refreshToken&&"implicit"!=s.flow)throw"Not authenticated";if(null==s.timeSkew)return f("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var e=s.tokenParsed["exp"]-Math.ceil((new Date).getTime()/1e3)+s.timeSkew;if(t){if(isNaN(t))throw"Invalid minValidity";e-=t}return e<0},s.updateToken=function(t){var e=I();if(!s.refreshToken)return e.setError(),e.promise;t=t||5;var n=function(){var n=!1;if(-1==t?(n=!0,f("[KEYCLOAK] Refreshing token: forced refresh")):s.tokenParsed&&!s.isTokenExpired(t)||(n=!0,f("[KEYCLOAK] Refreshing token: token expired")),n){var i="grant_type=refresh_token&refresh_token="+s.refreshToken,r=s.endpoints.token();if(c.push(e),1==c.length){var o=new XMLHttpRequest;o.open("POST",r,!0),o.setRequestHeader("Content-type","application/x-www-form-urlencoded"),o.withCredentials=!0,i+="&client_id="+encodeURIComponent(s.clientId);var a=(new Date).getTime();o.onreadystatechange=function(){if(4==o.readyState)if(200==o.status){f("[KEYCLOAK] Token refreshed"),a=(a+(new Date).getTime())/2;var t=JSON.parse(o.responseText);E(t["access_token"],t["refresh_token"],t["id_token"],a),s.onAuthRefreshSuccess&&s.onAuthRefreshSuccess();for(var e=c.pop();null!=e;e=c.pop())e.setSuccess(!0)}else{p("[KEYCLOAK] Failed to refresh token"),400==o.status&&s.clearToken(),s.onAuthRefreshError&&s.onAuthRefreshError();for(e=c.pop();null!=e;e=c.pop())e.setError(!0)}},o.send(i)}}else e.setSuccess(!1)};if(l.enable){var i=N();i.then(function(){n()}).catch(function(t){e.setError(t)})}else n();return e.promise},s.clearToken=function(){s.token&&(E(null,null,null),s.onAuthLogout&&s.onAuthLogout(),s.loginRequired&&s.login())};var j=function(){if(!(this instanceof j))return new j;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var t=this;function e(){for(var t=(new Date).getTime(),e=0;e=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})},"167b":function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; +var e={words:{ss:["секунда","секунде","секунди"],m:["један минут","једног минута"],mm:["минут","минута","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],d:["један дан","једног дана"],dd:["дан","дана","дана"],M:["један месец","једног месеца"],MM:["месец","месеца","месеци"],y:["једну годину","једне године"],yy:["годину","године","година"]},correctGrammaticalCase:function(t,e){return t%10>=1&&t%10<=4&&(t%100<10||t%100>=20)?t%10===1?e[0]:e[1]:e[2]},translate:function(t,n,i,r){var s,o=e.words[i];return 1===i.length?"y"===i&&n?"једна година":r||n?o[0]:o[1]:(s=e.correctGrammaticalCase(t,o),"yy"===i&&n&&"годину"===s?t+" година":t+" "+s)}},n=t.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){var t=["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"];return t[this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:e.translate,dd:e.translate,M:e.translate,MM:e.translate,y:e.translate,yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n})},1409:function(t,e,n){"use strict";t.exports=ReferenceError},1436:function(t,e,n){"use strict";n.d(e,"a",function(){return p});var i=n("138e"),r=n("cd4a"),s=n("3894"),o=n("76af"),a=n("c73a"),c=n("70d5"),l=n("58e9"),u=n("fd89"),h=n("a02c"),d=n("78c4"),f=n("f69e");class p{constructor(){p.constructor_.apply(this,arguments)}static constructor_(){this._inputGeom=null,this._factory=null,this._pruneEmptyGeometry=!0,this._preserveGeometryCollectionType=!0,this._preserveCollections=!1,this._preserveType=!1}transformPoint(t,e){return this._factory.createPoint(this.transformCoordinates(t.getCoordinateSequence(),t))}transformPolygon(t,e){let n=!0;const i=this.transformLinearRing(t.getExteriorRing(),t);null!==i&&i instanceof s["a"]&&!i.isEmpty()||(n=!1);const r=new c["a"];for(let o=0;o0&&i<4&&!this._preserveType?this._factory.createLineString(n):this._factory.createLinearRing(n)}transformGeometryCollection(t,e){const n=new c["a"];for(let i=0;ic)i.f(t,n=o[c++],e[n]);return t}},1526:function(t,e,n){"use strict";var i=n("b18c");function r(t,e,n){var r=n.stop,s=n.center;r&&t.stopPropagation();var o,a,c=document.createElement("span"),l=document.createElement("span"),u=e.clientWidth>e.clientHeight?e.clientWidth:e.clientHeight,h="".concat(s?u:2*u,"px"),d=e.getBoundingClientRect();if(c.appendChild(l),c.className="q-ripple-container",l.className="q-ripple-animation",l.style.width=h,l.style.height=h,e.appendChild(c),s)o=a=0;else{var f=Object(i["f"])(t);o=f.left-d.left-u,a=f.top-d.top-u}l.classList.add("q-ripple-animation-enter"),l.classList.add("q-ripple-animation-visible"),l.style.transform="translate(".concat(o,"px, ").concat(a,"px) scale3d(0, 0, 0)"),setTimeout(function(){l.classList.remove("q-ripple-animation-enter"),l.style.transform="translate(".concat(o,"px, ").concat(a,"px) scale3d(1, 1, 1)"),setTimeout(function(){l.classList.remove("q-ripple-animation-visible"),setTimeout(function(){c.remove()},300)},300)},10)}function s(t){t.mat;var e=t.ios;return e&&!0}e["a"]={name:"ripple",inserted:function(t,e){var n=e.value,i=e.modifiers;if(!s(i)){var o={enabled:!1!==n,modifiers:{stop:i.stop,center:i.center},click:function(e){o.enabled&&-1!==e.detail&&r(e,t,o.modifiers)},keyup:function(e){o.enabled&&13===e.keyCode&&r(e,t,o.modifiers)}};t.__qripple=o,t.addEventListener("click",o.click,!1),t.addEventListener("keyup",o.keyup,!1)}},update:function(t,e){var n=e.value,i=e.modifiers,r=i.stop,s=i.center,o=t.__qripple;o&&(o.enabled=!1!==n,o.modifiers={stop:r,center:s})},unbind:function(t,e){var n=e.modifiers,i=t.__qripple;i&&!s(n)&&(t.removeEventListener("click",i.click,!1),t.removeEventListener("keyup",i.keyup,!1),delete t.__qripple)}}},1528:function(t,e,n){"use strict";n.d(e,"b",function(){return s}),n.d(e,"a",function(){return o}),n.d(e,"e",function(){return l}),n.d(e,"c",function(){return u}),n.d(e,"d",function(){return h});n("6762"),n("2fdb");var i,r=n("abcf");function s(t){return t.closest(".scroll,.scroll-y,.overflow-auto")||window}function o(t){return t===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:t.scrollTop}function a(t,e,n){var i=o(t);n<=0?i!==e&&c(t,e):requestAnimationFrame(function(){var r=i+(e-i)/Math.max(16,n)*16;c(t,r),r!==e&&a(t,e,n-16)})}function c(t,e){if(t===window)return document.documentElement.scrollTop=e,void(document.body.scrollTop=e);t.scrollTop=e}function l(t,e,n){n?a(t,e,n):c(t,e)}function u(){if(void 0!==i)return i;var t=document.createElement("p"),e=document.createElement("div");Object(r["a"])(t,{width:"100%",height:"200px"}),Object(r["a"])(e,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e);var n=t.offsetWidth;e.style.overflow="scroll";var s=t.offsetWidth;return n===s&&(s=e.clientWidth),e.remove(),i=n-s,i}function h(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!(!t||t.nodeType!==Node.ELEMENT_NODE)&&(e?t.scrollHeight>t.clientHeight&&(t.classList.contains("scroll")||t.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(t)["overflow-y"])):t.scrollWidth>t.clientWidth&&(t.classList.contains("scroll")||t.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(t)["overflow-x"])))}},1548:function(t,e,n){"use strict";var i=n("3fb5"),r=n("ada0").EventEmitter,s=function(){};function o(t,e){s(t),r.call(this);var n=this;this.bufferPosition=0,this.xo=new e("POST",t,null),this.xo.on("chunk",this._chunkHandler.bind(this)),this.xo.once("finish",function(t,e){s("finish",t,e),n._chunkHandler(t,e),n.xo=null;var i=200===t?"network":"permanent";s("close",i),n.emit("close",null,i),n._cleanup()})}i(o,r),o.prototype._chunkHandler=function(t,e){if(s("_chunkHandler",t),200===t&&e)for(var n=-1;;this.bufferPosition+=n+1){var i=e.slice(this.bufferPosition);if(n=i.indexOf("\n"),-1===n)break;var r=i.slice(0,n);r&&(s("message",r),this.emit("message",r))}},o.prototype._cleanup=function(){s("_cleanup"),this.removeAllListeners()},o.prototype.abort=function(){s("abort"),this.xo&&(this.xo.close(),s("close"),this.emit("close",null,"user"),this.xo=null),this._cleanup()},t.exports=o},"15a2":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("1fb5"),r=n("6c27");if("undefined"===typeof Promise)throw Error("Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.");var s=!1;function o(){s||(s=!0,console.warn("[KEYCLOAK] Usage of legacy style promise methods such as `.error()` and `.success()` has been deprecated and support will be removed in future versions. Use standard style promise methods such as `.then() and `.catch()` instead."))}function a(t){if(!(this instanceof a))return new a(t);for(var e,n,s=this,c=[],l={enable:!0,callbackList:[],interval:5},u=document.getElementsByTagName("script"),h=0;h=0;--n){var i=e[n];"error"==t.data?i.setError():i.setSuccess("unchanged"==t.data)}}};return window.addEventListener("message",i,!1),t.promise}function A(){l.enable&&s.token&&setTimeout(function(){N().then(function(t){t&&A()})},1e3*l.interval)}function N(){var t=I();if(l.iframe&&l.iframeOrigin){var e=s.clientId+" "+(s.sessionId?s.sessionId:"");l.callbackList.push(t);var n=l.iframeOrigin;1==l.callbackList.length&&l.iframe.contentWindow.postMessage(e,n)}else t.setSuccess();return t.promise}function Y(){var t=I();if(l.enable||s.silentCheckSsoRedirectUri){var e=document.createElement("iframe");e.setAttribute("src",s.endpoints.thirdPartyCookiesIframe()),e.setAttribute("title","keycloak-3p-check-iframe"),e.style.display="none",document.body.appendChild(e);var n=function(i){e.contentWindow===i.source&&("supported"!==i.data&&"unsupported"!==i.data||("unsupported"===i.data&&(l.enable=!1,s.silentCheckSsoFallback&&(s.silentCheckSsoRedirectUri=!1),p("[KEYCLOAK] 3rd party cookies aren't supported by this browser. checkLoginIframe and silent check-sso are not available.")),document.body.removeChild(e),window.removeEventListener("message",n),t.setSuccess()))};window.addEventListener("message",n,!1)}else t.setSuccess();return D(t.promise,s.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function P(t){if(!t||"default"==t)return{login:function(t){return window.location.replace(s.createLoginUrl(t)),I().promise},logout:function(t){return window.location.replace(s.createLogoutUrl(t)),I().promise},register:function(t){return window.location.replace(s.createRegisterUrl(t)),I().promise},accountManagement:function(){var t=s.createAccountUrl();if("undefined"===typeof t)throw"Not supported by the OIDC server";return window.location.href=t,I().promise},redirectUri:function(t,e){return t&&t.redirectUri?t.redirectUri:s.redirectUri?s.redirectUri:location.href}};if("cordova"==t){l.enable=!1;var e=function(t,e,n){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(t,e,n):window.open(t,e,n)},n=function(t){return t&&t.cordovaOptions?Object.keys(t.cordovaOptions).reduce(function(e,n){return e[n]=t.cordovaOptions[n],e},{}):{}},i=function(t){return Object.keys(t).reduce(function(e,n){return e.push(n+"="+t[n]),e},[]).join(",")},r=function(t){var e=n(t);return e.location="no",t&&"none"==t.prompt&&(e.hidden="yes"),i(e)};return{login:function(t){var n=I(),i=r(t),o=s.createLoginUrl(t),a=e(o,"_blank",i),c=!1,l=!1,u=function(){l=!0,a.close()};return a.addEventListener("loadstart",function(t){if(0==t.url.indexOf("http://localhost")){var e=O(t.url);w(e,n),u(),c=!0}}),a.addEventListener("loaderror",function(t){if(!c)if(0==t.url.indexOf("http://localhost")){var e=O(t.url);w(e,n),u(),c=!0}else n.setError(),u()}),a.addEventListener("exit",function(t){l||n.setError({reason:"closed_by_user"})}),n.promise},logout:function(t){var n,i=I(),r=s.createLogoutUrl(t),o=e(r,"_blank","location=no,hidden=yes,clearcache=yes");return o.addEventListener("loadstart",function(t){0==t.url.indexOf("http://localhost")&&o.close()}),o.addEventListener("loaderror",function(t){0==t.url.indexOf("http://localhost")?o.close():(n=!0,o.close())}),o.addEventListener("exit",function(t){n?i.setError():(s.clearToken(),i.setSuccess())}),i.promise},register:function(t){var n=I(),i=s.createRegisterUrl(),o=r(t),a=e(i,"_blank",o);return a.addEventListener("loadstart",function(t){if(0==t.url.indexOf("http://localhost")){a.close();var e=O(t.url);w(e,n)}}),n.promise},accountManagement:function(){var t=s.createAccountUrl();if("undefined"===typeof t)throw"Not supported by the OIDC server";var n=e(t,"_blank","location=no");n.addEventListener("loadstart",function(t){0==t.url.indexOf("http://localhost")&&n.close()})},redirectUri:function(t){return"http://localhost"}}}if("cordova-native"==t)return l.enable=!1,{login:function(t){var e=I(),n=s.createLoginUrl(t);return universalLinks.subscribe("keycloak",function(t){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var n=O(t.url);w(n,e)}),window.cordova.plugins.browsertab.openUrl(n),e.promise},logout:function(t){var e=I(),n=s.createLogoutUrl(t);return universalLinks.subscribe("keycloak",function(t){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),s.clearToken(),e.setSuccess()}),window.cordova.plugins.browsertab.openUrl(n),e.promise},register:function(t){var e=I(),n=s.createRegisterUrl(t);return universalLinks.subscribe("keycloak",function(t){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var n=O(t.url);w(n,e)}),window.cordova.plugins.browsertab.openUrl(n),e.promise},accountManagement:function(){var t=s.createAccountUrl();if("undefined"===typeof t)throw"Not supported by the OIDC server";window.cordova.plugins.browsertab.openUrl(t)},redirectUri:function(t){return t&&t.redirectUri?t.redirectUri:s.redirectUri?s.redirectUri:"http://localhost"}};throw"invalid adapter type: "+t}s.init=function(t){s.authenticated=!1,n=H();var i=["default","cordova","cordova-native"];if(e=t&&i.indexOf(t.adapter)>-1?P(t.adapter):t&&"object"===typeof t.adapter?t.adapter:window.Cordova||window.cordova?P("cordova"):P(),t){if("undefined"!==typeof t.useNonce&&(d=t.useNonce),"undefined"!==typeof t.checkLoginIframe&&(l.enable=t.checkLoginIframe),t.checkLoginIframeInterval&&(l.interval=t.checkLoginIframeInterval),"login-required"===t.onLoad&&(s.loginRequired=!0),t.responseMode){if("query"!==t.responseMode&&"fragment"!==t.responseMode)throw"Invalid value for responseMode";s.responseMode=t.responseMode}if(t.flow){switch(t.flow){case"standard":s.responseType="code";break;case"implicit":s.responseType="id_token token";break;case"hybrid":s.responseType="code id_token token";break;default:throw"Invalid value for flow"}s.flow=t.flow}if(null!=t.timeSkew&&(s.timeSkew=t.timeSkew),t.redirectUri&&(s.redirectUri=t.redirectUri),t.silentCheckSsoRedirectUri&&(s.silentCheckSsoRedirectUri=t.silentCheckSsoRedirectUri),"boolean"===typeof t.silentCheckSsoFallback?s.silentCheckSsoFallback=t.silentCheckSsoFallback:s.silentCheckSsoFallback=!0,t.pkceMethod){if("S256"!==t.pkceMethod)throw"Invalid value for pkceMethod";s.pkceMethod=t.pkceMethod}"boolean"===typeof t.enableLogging?s.enableLogging=t.enableLogging:s.enableLogging=!1,"string"===typeof t.scope&&(s.scope=t.scope),"number"===typeof t.messageReceiveTimeout&&t.messageReceiveTimeout>0?s.messageReceiveTimeout=t.messageReceiveTimeout:s.messageReceiveTimeout=1e4}s.responseMode||(s.responseMode="fragment"),s.responseType||(s.responseType="code",s.flow="standard");var r=I(),o=I();o.promise.then(function(){s.onReady&&s.onReady(s.authenticated),r.setSuccess(s.authenticated)}).catch(function(t){r.setError(t)});var a=x();function c(){var e=function(t){t||(i.prompt="none"),s.login(i).then(function(){o.setSuccess()}).catch(function(t){o.setError(t)})},n=function(){var t=document.createElement("iframe"),e=s.createLoginUrl({prompt:"none",redirectUri:s.silentCheckSsoRedirectUri});t.setAttribute("src",e),t.setAttribute("title","keycloak-silent-check-sso"),t.style.display="none",document.body.appendChild(t);var n=function(e){if(e.origin===window.location.origin&&t.contentWindow===e.source){var i=O(e.data);w(i,o),document.body.removeChild(t),window.removeEventListener("message",n)}};window.addEventListener("message",n)},i={};switch(t.onLoad){case"check-sso":l.enable?R().then(function(){N().then(function(t){t?o.setSuccess():s.silentCheckSsoRedirectUri?n():e(!1)}).catch(function(t){o.setError(t)})}):s.silentCheckSsoRedirectUri?n():e(!1);break;case"login-required":e(!0);break;default:throw"Invalid value for onLoad"}}function u(){var e=O(window.location.href);if(e&&window.history.replaceState(window.history.state,null,e.newUrl),e&&e.valid)return R().then(function(){w(e,o)}).catch(function(t){o.setError(t)});t?t.token&&t.refreshToken?(E(t.token,t.refreshToken,t.idToken),l.enable?R().then(function(){N().then(function(t){t?(s.onAuthSuccess&&s.onAuthSuccess(),o.setSuccess(),A()):o.setSuccess()}).catch(function(t){o.setError(t)})}):s.updateToken(-1).then(function(){s.onAuthSuccess&&s.onAuthSuccess(),o.setSuccess()}).catch(function(e){s.onAuthError&&s.onAuthError(),t.onLoad?c():o.setError(e)})):t.onLoad?c():o.setSuccess():o.setSuccess()}function h(){var t=I(),e=function(){"interactive"!==document.readyState&&"complete"!==document.readyState||(document.removeEventListener("readystatechange",e),t.setSuccess())};return document.addEventListener("readystatechange",e),e(),t.promise}return a.then(function(){h().then(Y).then(u).catch(function(t){r.setError(t)})}),a.catch(function(t){r.setError(t)}),r.promise},s.login=function(t){return e.login(t)},s.createLoginUrl=function(t){var i,r=S(),o=S(),a=e.redirectUri(t),c={state:r,nonce:o,redirectUri:encodeURIComponent(a)};t&&t.prompt&&(c.prompt=t.prompt),i=t&&"register"==t.action?s.endpoints.register():s.endpoints.authorize();var l=t&&t.scope||s.scope;l?-1===l.indexOf("openid")&&(l="openid "+l):l="openid";var u=i+"?client_id="+encodeURIComponent(s.clientId)+"&redirect_uri="+encodeURIComponent(a)+"&state="+encodeURIComponent(r)+"&response_mode="+encodeURIComponent(s.responseMode)+"&response_type="+encodeURIComponent(s.responseType)+"&scope="+encodeURIComponent(l);if(d&&(u=u+"&nonce="+encodeURIComponent(o)),t&&t.prompt&&(u+="&prompt="+encodeURIComponent(t.prompt)),t&&t.maxAge&&(u+="&max_age="+encodeURIComponent(t.maxAge)),t&&t.loginHint&&(u+="&login_hint="+encodeURIComponent(t.loginHint)),t&&t.idpHint&&(u+="&kc_idp_hint="+encodeURIComponent(t.idpHint)),t&&t.action&&"register"!=t.action&&(u+="&kc_action="+encodeURIComponent(t.action)),t&&t.locale&&(u+="&ui_locales="+encodeURIComponent(t.locale)),t&&t.acr){var h=v(t.acr);u+="&claims="+encodeURIComponent(h)}if(s.pkceMethod){var f=m(96);c.pkceCodeVerifier=f;var p=y(s.pkceMethod,f);u+="&code_challenge="+p,u+="&code_challenge_method="+s.pkceMethod}return n.add(c),u},s.logout=function(t){return e.logout(t)},s.createLogoutUrl=function(t){var n=s.endpoints.logout()+"?client_id="+encodeURIComponent(s.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(e.redirectUri(t,!1));return s.idToken&&(n+="&id_token_hint="+encodeURIComponent(s.idToken)),n},s.register=function(t){return e.register(t)},s.createRegisterUrl=function(t){return t||(t={}),t.action="register",s.createLoginUrl(t)},s.createAccountUrl=function(t){var n=b(),i=void 0;return"undefined"!==typeof n&&(i=n+"/account?referrer="+encodeURIComponent(s.clientId)+"&referrer_uri="+encodeURIComponent(e.redirectUri(t))),i},s.accountManagement=function(){return e.accountManagement()},s.hasRealmRole=function(t){var e=s.realmAccess;return!!e&&e.roles.indexOf(t)>=0},s.hasResourceRole=function(t,e){if(!s.resourceAccess)return!1;var n=s.resourceAccess[e||s.clientId];return!!n&&n.roles.indexOf(t)>=0},s.loadUserProfile=function(){var t=b()+"/account",e=new XMLHttpRequest;e.open("GET",t,!0),e.setRequestHeader("Accept","application/json"),e.setRequestHeader("Authorization","bearer "+s.token);var n=I();return e.onreadystatechange=function(){4==e.readyState&&(200==e.status?(s.profile=JSON.parse(e.responseText),n.setSuccess(s.profile)):n.setError())},e.send(),n.promise},s.loadUserInfo=function(){var t=s.endpoints.userinfo(),e=new XMLHttpRequest;e.open("GET",t,!0),e.setRequestHeader("Accept","application/json"),e.setRequestHeader("Authorization","bearer "+s.token);var n=I();return e.onreadystatechange=function(){4==e.readyState&&(200==e.status?(s.userInfo=JSON.parse(e.responseText),n.setSuccess(s.userInfo)):n.setError())},e.send(),n.promise},s.isTokenExpired=function(t){if(!s.tokenParsed||!s.refreshToken&&"implicit"!=s.flow)throw"Not authenticated";if(null==s.timeSkew)return f("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var e=s.tokenParsed["exp"]-Math.ceil((new Date).getTime()/1e3)+s.timeSkew;if(t){if(isNaN(t))throw"Invalid minValidity";e-=t}return e<0},s.updateToken=function(t){var e=I();if(!s.refreshToken)return e.setError(),e.promise;t=t||5;var n=function(){var n=!1;if(-1==t?(n=!0,f("[KEYCLOAK] Refreshing token: forced refresh")):s.tokenParsed&&!s.isTokenExpired(t)||(n=!0,f("[KEYCLOAK] Refreshing token: token expired")),n){var i="grant_type=refresh_token&refresh_token="+s.refreshToken,r=s.endpoints.token();if(c.push(e),1==c.length){var o=new XMLHttpRequest;o.open("POST",r,!0),o.setRequestHeader("Content-type","application/x-www-form-urlencoded"),o.withCredentials=!0,i+="&client_id="+encodeURIComponent(s.clientId);var a=(new Date).getTime();o.onreadystatechange=function(){if(4==o.readyState)if(200==o.status){f("[KEYCLOAK] Token refreshed"),a=(a+(new Date).getTime())/2;var t=JSON.parse(o.responseText);E(t["access_token"],t["refresh_token"],t["id_token"],a),s.onAuthRefreshSuccess&&s.onAuthRefreshSuccess();for(var e=c.pop();null!=e;e=c.pop())e.setSuccess(!0)}else{p("[KEYCLOAK] Failed to refresh token"),400==o.status&&s.clearToken(),s.onAuthRefreshError&&s.onAuthRefreshError();for(e=c.pop();null!=e;e=c.pop())e.setError(!0)}},o.send(i)}}else e.setSuccess(!1)};if(l.enable){var i=N();i.then(function(){n()}).catch(function(t){e.setError(t)})}else n();return e.promise},s.clearToken=function(){s.token&&(E(null,null,null),s.onAuthLogout&&s.onAuthLogout(),s.loginRequired&&s.login())};var j=function(){if(!(this instanceof j))return new j;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var t=this;function e(){for(var t=(new Date).getTime(),e=0;e=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})},"167b":function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration -var e=t.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(t,e){var n=1===t?"r":2===t?"n":3===t?"r":4===t?"t":"è";return"w"!==e&&"W"!==e||(n="a"),t+n},week:{dow:1,doy:4}});return e})},1691:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},1696:function(t,e,n){"use strict";t.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"===typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;var i=42;for(e in t[e]=i,t)return!1;if("function"===typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var s=Object.getOwnPropertyDescriptor(t,e);if(s.value!==i||!0!==s.enumerable)return!1}return!0}},1731:function(t,e,n){"use strict";e["a"]={name:"QBtnGroup",props:{outline:Boolean,flat:Boolean,rounded:Boolean,push:Boolean},computed:{classes:function(){var t=this;return["outline","flat","rounded","push"].filter(function(e){return t[e]}).map(function(t){return"q-btn-group-".concat(t)}).join(" ")}},render:function(t){return t("div",{staticClass:"q-btn-group row no-wrap inline",class:this.classes},this.$slots.default)}}},"177b":function(t,e,n){"use strict";n.d(e,"b",function(){return i}),n.d(e,"a",function(){return r}),n.d(e,"c",function(){return s}),n.d(e,"d",function(){return o});function i(t){return t.charAt(0).toUpperCase()+t.slice(1)}function r(t,e,n){return n<=e?e:Math.min(n,Math.max(e,t))}function s(t,e,n){if(n<=e)return e;var i=n-e+1,r=e+(t-e)%i;return r1&&void 0!==arguments[1]?arguments[1]:2,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",i=""+t;return i.length>=e?i:new Array(e-i.length+1).join(n)+i}},1816:function(t,e,n){"use strict";(function(e){var i=n("440d"),r=n("9c59"),s=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,o=/[\n\r\t]/g,a=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,c=/:\d+$/,l=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,u=/^[a-zA-Z]:/;function h(t){return(t||"").toString().replace(s,"")}var d=[["#","hash"],["?","query"],function(t,e){return _(e.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],f={hash:1,query:1};function p(t){var n;n="undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:{};var i=n.location||{};t=t||i;var r,s={},o=typeof t;if("blob:"===t.protocol)s=new y(unescape(t.pathname),{});else if("string"===o)for(r in s=new y(t,{}),f)delete s[r];else if("object"===o){for(r in t)r in f||(s[r]=t[r]);void 0===s.slashes&&(s.slashes=a.test(t.href))}return s}function _(t){return"file:"===t||"ftp:"===t||"http:"===t||"https:"===t||"ws:"===t||"wss:"===t}function m(t,e){t=h(t),t=t.replace(o,""),e=e||{};var n,i=l.exec(t),r=i[1]?i[1].toLowerCase():"",s=!!i[2],a=!!i[3],c=0;return s?a?(n=i[2]+i[3]+i[4],c=i[2].length+i[3].length):(n=i[2]+i[4],c=i[2].length):a?(n=i[3]+i[4],c=i[3].length):n=i[4],"file:"===r?c>=2&&(n=n.slice(2)):_(r)?n=i[4]:r?s&&(n=n.slice(2)):c>=2&&_(e.protocol)&&(n=i[4]),{protocol:r,slashes:s||_(r),slashesCount:c,rest:n}}function g(t,e){if(""===t)return e;var n=(e||"/").split("/").slice(0,-1).concat(t.split("/")),i=n.length,r=n[i-1],s=!1,o=0;while(i--)"."===n[i]?n.splice(i,1):".."===n[i]?(n.splice(i,1),o++):o&&(0===i&&(s=!0),n.splice(i,1),o--);return s&&n.unshift(""),"."!==r&&".."!==r||n.push(""),n.join("/")}function y(t,e,n){if(t=h(t),t=t.replace(o,""),!(this instanceof y))return new y(t,e,n);var s,a,c,l,f,v,b=d.slice(),M=typeof e,w=this,x=0;for("object"!==M&&"string"!==M&&(n=e,e=null),n&&"function"!==typeof n&&(n=r.parse),e=p(e),a=m(t||"",e),s=!a.protocol&&!a.slashes,w.slashes=a.slashes||s&&e.slashes,w.protocol=a.protocol||e.protocol||"",t=a.rest,("file:"===a.protocol&&(2!==a.slashesCount||u.test(t))||!a.slashes&&(a.protocol||a.slashesCount<2||!_(w.protocol)))&&(b[3]=[/(.*)/,"pathname"]);xn)e.push(arguments[n++]);return g[++m]=function(){a("function"==typeof t?t:Function(t),e)},i(m),m},f=function(t){delete g[t]},"process"==n("2d95")(h)?i=function(t){h.nextTick(o(v,t,1))}:_&&_.now?i=function(t){_.now(o(v,t,1))}:p?(r=new p,s=r.port2,r.port1.onmessage=b,i=o(s.postMessage,s,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(i=function(t){u.postMessage(t+"","*")},u.addEventListener("message",b,!1)):i=y in l("script")?function(t){c.appendChild(l("script"))[y]=function(){c.removeChild(this),v.call(t)}}:function(t){setTimeout(o(v,t,1),0)}),t.exports={set:d,clear:f}},1992:function(t,e,n){},"19aa":function(t){t.exports={a:"0.17.20"}},"1af9":function(t,e,n){"use strict";n.d(e,"b",function(){return f});var i=n("1e8d"),r=n("01d4"),s=n("1300"),o=n("e269"),a=n("5564"),c=n("df4c"),l=n("38f3"),u=n("070d"),h=n("6d83"),d=function(t){function e(e){var n=Object(l["a"])({},e);delete n.source,t.call(this,n),this.mapPrecomposeKey_=null,this.mapRenderKey_=null,this.sourceChangeKey_=null,e.map&&this.setMap(e.map),Object(i["a"])(this,Object(o["b"])(c["a"].SOURCE),this.handleSourcePropertyChange_,this);var r=e.source?e.source:null;this.setSource(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getLayersArray=function(t){var e=t||[];return e.push(this),e},e.prototype.getLayerStatesArray=function(t){var e=t||[];return e.push(this.getLayerState()),e},e.prototype.getSource=function(){var t=this.get(c["a"].SOURCE);return t||null},e.prototype.getSourceState=function(){var t=this.getSource();return t?t.getState():h["a"].UNDEFINED},e.prototype.handleSourceChange_=function(){this.changed()},e.prototype.handleSourcePropertyChange_=function(){this.sourceChangeKey_&&(Object(i["e"])(this.sourceChangeKey_),this.sourceChangeKey_=null);var t=this.getSource();t&&(this.sourceChangeKey_=Object(i["a"])(t,r["a"].CHANGE,this.handleSourceChange_,this)),this.changed()},e.prototype.setMap=function(t){this.mapPrecomposeKey_&&(Object(i["e"])(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&(Object(i["e"])(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=Object(i["a"])(t,u["a"].PRECOMPOSE,function(t){var e=t,n=this.getLayerState();n.managed=!1,void 0===this.getZIndex()&&(n.zIndex=1/0),e.frameState.layerStatesArray.push(n),e.frameState.layerStates[Object(s["c"])(this)]=n},this),this.mapRenderKey_=Object(i["a"])(this,r["a"].CHANGE,t.render,t),this.changed())},e.prototype.setSource=function(t){this.set(c["a"].SOURCE,t)},e}(a["a"]);function f(t,e){return t.visible&&e>=t.minResolution&&e1&&void 0!==arguments[1]?arguments[1]:2,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",i=""+t;return i.length>=e?i:new Array(e-i.length+1).join(n)+i}},1816:function(t,e,n){"use strict";(function(e){var i=n("440d"),r=n("9c59"),s=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,o=/[\n\r\t]/g,a=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,c=/:\d+$/,l=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,u=/^[a-zA-Z]:/;function h(t){return(t||"").toString().replace(s,"")}var d=[["#","hash"],["?","query"],function(t,e){return _(e.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],f={hash:1,query:1};function p(t){var n;n="undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:{};var i=n.location||{};t=t||i;var r,s={},o=typeof t;if("blob:"===t.protocol)s=new y(unescape(t.pathname),{});else if("string"===o)for(r in s=new y(t,{}),f)delete s[r];else if("object"===o){for(r in t)r in f||(s[r]=t[r]);void 0===s.slashes&&(s.slashes=a.test(t.href))}return s}function _(t){return"file:"===t||"ftp:"===t||"http:"===t||"https:"===t||"ws:"===t||"wss:"===t}function m(t,e){t=h(t),t=t.replace(o,""),e=e||{};var n,i=l.exec(t),r=i[1]?i[1].toLowerCase():"",s=!!i[2],a=!!i[3],c=0;return s?a?(n=i[2]+i[3]+i[4],c=i[2].length+i[3].length):(n=i[2]+i[4],c=i[2].length):a?(n=i[3]+i[4],c=i[3].length):n=i[4],"file:"===r?c>=2&&(n=n.slice(2)):_(r)?n=i[4]:r?s&&(n=n.slice(2)):c>=2&&_(e.protocol)&&(n=i[4]),{protocol:r,slashes:s||_(r),slashesCount:c,rest:n}}function g(t,e){if(""===t)return e;var n=(e||"/").split("/").slice(0,-1).concat(t.split("/")),i=n.length,r=n[i-1],s=!1,o=0;while(i--)"."===n[i]?n.splice(i,1):".."===n[i]?(n.splice(i,1),o++):o&&(0===i&&(s=!0),n.splice(i,1),o--);return s&&n.unshift(""),"."!==r&&".."!==r||n.push(""),n.join("/")}function y(t,e,n){if(t=h(t),t=t.replace(o,""),!(this instanceof y))return new y(t,e,n);var s,a,c,l,f,v,b=d.slice(),M=typeof e,w=this,x=0;for("object"!==M&&"string"!==M&&(n=e,e=null),n&&"function"!==typeof n&&(n=r.parse),e=p(e),a=m(t||"",e),s=!a.protocol&&!a.slashes,w.slashes=a.slashes||s&&e.slashes,w.protocol=a.protocol||e.protocol||"",t=a.rest,("file:"===a.protocol&&(2!==a.slashesCount||u.test(t))||!a.slashes&&(a.protocol||a.slashesCount<2||!_(w.protocol)))&&(b[3]=[/(.*)/,"pathname"]);xn)e.push(arguments[n++]);return g[++m]=function(){a("function"==typeof t?t:Function(t),e)},i(m),m},f=function(t){delete g[t]},"process"==n("2d95")(h)?i=function(t){h.nextTick(o(v,t,1))}:_&&_.now?i=function(t){_.now(o(v,t,1))}:p?(r=new p,s=r.port2,r.port1.onmessage=b,i=o(s.postMessage,s,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(i=function(t){u.postMessage(t+"","*")},u.addEventListener("message",b,!1)):i=y in l("script")?function(t){c.appendChild(l("script"))[y]=function(){c.removeChild(this),v.call(t)}}:function(t){setTimeout(o(v,t,1),0)}),t.exports={set:d,clear:f}},1992:function(t,e,n){},"19aa":function(t){t.exports={a:"0.17.20"}},"1af9":function(t,e,n){"use strict";n.d(e,"b",function(){return f});var i=n("1e8d"),r=n("01d4"),s=n("1300"),o=n("e269"),a=n("5564"),c=n("df4c"),l=n("38f3"),u=n("070d"),h=n("6d83"),d=function(t){function e(e){var n=Object(l["a"])({},e);delete n.source,t.call(this,n),this.mapPrecomposeKey_=null,this.mapRenderKey_=null,this.sourceChangeKey_=null,e.map&&this.setMap(e.map),Object(i["a"])(this,Object(o["b"])(c["a"].SOURCE),this.handleSourcePropertyChange_,this);var r=e.source?e.source:null;this.setSource(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getLayersArray=function(t){var e=t||[];return e.push(this),e},e.prototype.getLayerStatesArray=function(t){var e=t||[];return e.push(this.getLayerState()),e},e.prototype.getSource=function(){var t=this.get(c["a"].SOURCE);return t||null},e.prototype.getSourceState=function(){var t=this.getSource();return t?t.getState():h["a"].UNDEFINED},e.prototype.handleSourceChange_=function(){this.changed()},e.prototype.handleSourcePropertyChange_=function(){this.sourceChangeKey_&&(Object(i["e"])(this.sourceChangeKey_),this.sourceChangeKey_=null);var t=this.getSource();t&&(this.sourceChangeKey_=Object(i["a"])(t,r["a"].CHANGE,this.handleSourceChange_,this)),this.changed()},e.prototype.setMap=function(t){this.mapPrecomposeKey_&&(Object(i["e"])(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&(Object(i["e"])(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=Object(i["a"])(t,u["a"].PRECOMPOSE,function(t){var e=t,n=this.getLayerState();n.managed=!1,void 0===this.getZIndex()&&(n.zIndex=1/0),e.frameState.layerStatesArray.push(n),e.frameState.layerStates[Object(s["c"])(this)]=n},this),this.mapRenderKey_=Object(i["a"])(this,r["a"].CHANGE,t.render,t),this.changed())},e.prototype.setSource=function(t){this.set(c["a"].SOURCE,t)},e}(a["a"]);function f(t,e){return t.visible&&e>=t.minResolution&&e=t.getNumPoints()&&null===s)return null;let a=t.getCoordinate(o);null!==s&&s.segmentIndex===n.segmentIndex&&(a=s.coord);const c=new i["a"](t,n.coord,a,new r["a"](t.getLabel()));e.add(c)}createEdgeEndForPrev(t,e,n,s){let o=n.segmentIndex;if(0===n.dist){if(0===o)return null;o--}let a=t.getCoordinate(o);null!==s&&s.segmentIndex>=o&&(a=s.coord);const c=new r["a"](t.getLabel());c.flip();const l=new i["a"](t,n.coord,a,c);e.add(l)}}},"1bc3":function(t,e,n){var i=n("f772");t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},"1c48":function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return s}),n.d(e,"e",function(){return o}),n.d(e,"c",function(){return c}),n.d(e,"d",function(){return l});var i=n("7fc9");function r(t,e,n,r,s,o,a){var c=(n-e)/r;if(c<3){for(;e0){for(var d=u.pop(),f=u.pop(),p=0,_=t[f],m=t[f+1],g=t[d],y=t[d+1],v=f+r;vp&&(h=v,p=w)}p>s&&(l[(h-e)/r]=1,f+r0&&m>p)&&(_<0&&g<_||_==g||_>0&&g>_)?(c=d,l=f):(s[a++]=c,s[a++]=l,u=c,h=l,c=d,l=f)}}return s[a++]=c,s[a++]=l,a}function c(t,e,n,i,r,s,o,c){for(var l=0,u=n.length;l=2&&e%1 //! moment.js locale configuration var e=t.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(t){return t.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,function(t,e,n){return"ი"===n?e+"ში":e+n+"ში"})},past:function(t){return/(წამი|წუთი|საათი|დღე|თვე)/.test(t)?t.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(t)?t.replace(/წელი$/,"წლის წინ"):t},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(t){return 0===t?t:1===t?t+"-ლი":t<20||t<=100&&t%20===0||t%100===0?"მე-"+t:t+"-ე"},week:{dow:1,doy:7}});return e})},2040:function(t,e,n){"use strict";n("d263"),n("c5f6");var i=n("363b"),r=n("559e");e["a"]={name:"QLayoutHeader",mixins:[r["a"]],inject:{layout:{default:function(){console.error("QLayoutHeader needs to be child of QLayout")}}},props:{value:{type:Boolean,default:!0},reveal:Boolean,revealOffset:{type:Number,default:250}},data:function(){return{size:0,revealed:!0}},watch:{value:function(t){this.__update("space",t),this.__updateLocal("revealed",!0),this.layout.__animate()},offset:function(t){this.__update("offset",t)},reveal:function(t){t||this.__updateLocal("revealed",this.value)},revealed:function(t){this.layout.__animate(),this.$emit("reveal",t)},"layout.scroll":function(t){this.reveal&&this.__updateLocal("revealed","up"===t.direction||t.position<=this.revealOffset||t.position-t.inflexionPosition<100)}},computed:{fixed:function(){return this.reveal||this.layout.view.indexOf("H")>-1||this.layout.container},offset:function(){if(!this.canRender||!this.value)return 0;if(this.fixed)return this.revealed?this.size:0;var t=this.size-this.layout.scroll.position;return t>0?t:0},computedClass:function(){return{"fixed-top":this.fixed,"absolute-top":!this.fixed,"q-layout-header-hidden":!this.canRender||!this.value||this.fixed&&!this.revealed}},computedStyle:function(){var t=this.layout.rows.top,e={};return"l"===t[0]&&this.layout.left.space&&(e[this.$q.i18n.rtl?"right":"left"]="".concat(this.layout.left.size,"px")),"r"===t[2]&&this.layout.right.space&&(e[this.$q.i18n.rtl?"left":"right"]="".concat(this.layout.right.size,"px")),e}},render:function(t){return t("header",{staticClass:"q-layout-header q-layout-marginal q-layout-transition",class:this.computedClass,style:this.computedStyle},[t(i["a"],{props:{debounce:0},on:{resize:this.__onResize}}),this.$slots.default])},created:function(){this.layout.instances.header=this,this.__update("space",this.value),this.__update("offset",this.offset)},beforeDestroy:function(){this.layout.instances.header===this&&(this.layout.instances.header=null,this.__update("size",0),this.__update("offset",0),this.__update("space",!1))},methods:{__onResize:function(t){var e=t.height;this.__updateLocal("size",e),this.__update("size",e)},__update:function(t,e){this.layout.header[t]!==e&&(this.layout.header[t]=e)},__updateLocal:function(t,e){this[t]!==e&&(this[t]=e)}}}},2054:function(t,e,n){"use strict";n("c5f6");var i=n("cd88"),r=n("e660"),s=n("52b5");e["a"]={name:"QInputFrame",mixins:[i["a"],r["a"]],props:{focused:Boolean,length:Number,focusable:Boolean,additionalLength:Boolean},computed:{hasStackLabel:function(){return"string"===typeof this.stackLabel&&this.stackLabel.length>0},hasLabel:function(){return this.hasStackLabel||"string"===typeof this.floatLabel&&this.floatLabel.length>0},label:function(){return this.hasStackLabel?this.stackLabel:this.floatLabel},addonClass:function(){return{"q-if-addon-visible":!this.hasLabel||this.labelIsAbove}},classes:function(){var t=[{"q-if-has-label":this.label,"q-if-focused":this.focused,"q-if-error":this.hasError,"q-if-warning":this.hasWarning,"q-if-disabled":this.disable,"q-if-readonly":this.readonly,"q-if-focusable":this.focusable&&!this.disable,"q-if-inverted":this.isInverted,"q-if-inverted-light":this.isInvertedLight,"q-if-light-color":this.lightColor,"q-if-dark":this.dark,"q-if-hide-underline":this.isHideUnderline,"q-if-standard":this.isStandard,"q-if-has-content":this.hasContent}],e=this.hasError?"negative":this.hasWarning?"warning":this.color;return this.isInverted?(t.push("bg-".concat(e)),t.push("text-".concat(this.isInvertedLight?"black":"white"))):e&&t.push("text-".concat(e)),t}},methods:{__onClick:function(t){this.$emit("click",t)},__onMouseDown:function(t){var e=this;!this.disable&&this.$nextTick(function(){return e.$emit("focus",t)})},__additionalHidden:function(t,e,n,i){return void 0!==t.condition?!1===t.condition:void 0!==t.content&&!t.content===i>0||void 0!==t.error&&!t.error===e||void 0!==t.warning&&!t.warning===n},__baHandler:function(t,e){e.allowPropagation||t.stopPropagation(),e.handler&&e.handler(t)}},render:function(t){var e=this;return t("div",{staticClass:"q-if row no-wrap relative-position",class:this.classes,attrs:{tabindex:this.focusable&&!this.disable?0:-1},on:{click:this.__onClick}},[t("div",{staticClass:"q-if-baseline"},"|"),this.before&&this.before.map(function(n){return t(s["a"],{key:"b".concat(n.icon),staticClass:"q-if-control q-if-control-before",class:[n.class,{hidden:e.__additionalHidden(n,e.hasError,e.hasWarning,e.length)}],props:{name:n.icon},nativeOn:{mousedown:e.__onMouseDown,touchstart:e.__onMouseDown,click:function(t){e.__baHandler(t,n)}}})})||void 0,t("div",{staticClass:"q-if-inner col column q-popup--skip"},[t("div",{staticClass:"row no-wrap relative-position"},[this.prefix&&t("span",{staticClass:"q-if-addon q-if-addon-left",class:this.addonClass,domProps:{innerHTML:this.prefix}})||void 0,this.hasLabel&&t("div",{staticClass:"q-if-label",class:{"q-if-label-above":this.labelIsAbove}},[t("div",{staticClass:"q-if-label-inner ellipsis",domProps:{innerHTML:this.label}})])||void 0].concat(this.$slots.default).concat([this.suffix&&t("span",{staticClass:"q-if-addon q-if-addon-right",class:this.addonClass,domProps:{innerHTML:this.suffix}})||void 0])),this.hasLabel&&t("div",{staticClass:"q-if-label-spacer",domProps:{innerHTML:this.label}})||void 0]),this.after&&this.after.map(function(n){return t(s["a"],{key:"a".concat(n.icon),staticClass:"q-if-control",class:[n.class,{hidden:e.__additionalHidden(n,e.hasError,e.hasWarning,e.length)}],props:{name:n.icon},nativeOn:{mousedown:e.__onMouseDown,touchstart:e.__onMouseDown,click:function(t){e.__baHandler(t,n)}}})})||void 0].concat(this.$slots.after))}}},2065:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("c73a");class r{constructor(){r.constructor_.apply(this,arguments)}static constructor_(){this._isDone=!1}applyTo(t){for(let e=0;e1?arguments[1]:void 0)}}),n("9c6c")(s)},"20fd":function(t,e,n){"use strict";var i=n("d9f6"),r=n("aebd");t.exports=function(t,e,n){e in t?i.f(t,e,r(0,n)):t[e]=n}},"214f":function(t,e,n){"use strict";n("b0c5");var i=n("2aba"),r=n("32e9"),s=n("79e5"),o=n("be13"),a=n("2b4c"),c=n("520a"),l=a("species"),u=!s(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}),h=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var d=a(t),f=!s(function(){var e={};return e[d]=function(){return 7},7!=""[t](e)}),p=f?!s(function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[l]=function(){return n}),n[d](""),!e}):void 0;if(!f||!p||"replace"===t&&!u||"split"===t&&!h){var _=/./[d],m=n(o,d,""[t],function(t,e,n,i,r){return e.exec===c?f&&!r?{done:!0,value:_.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}}),g=m[0],y=m[1];i(String.prototype,t,g),r(RegExp.prototype,d,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}}},"21e3":function(t,e,n){},2236:function(t,e){function n(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],function(t){c.headers[t]={}}),i.forEach(["post","put","patch"],function(t){c.headers[t]=i.merge(s)}),t.exports=c}).call(this,n("4362"))},"24c5":function(t,e,n){"use strict";var i,r,s,o,a=n("b8e3"),c=n("e53d"),l=n("d864"),u=n("40c3"),h=n("63b6"),d=n("f772"),f=n("79aa"),p=n("1173"),_=n("a22a"),m=n("f201"),g=n("4178").set,y=n("aba2")(),v=n("656e"),b=n("4439"),M=n("bc13"),w=n("cd78"),x="Promise",L=c.TypeError,E=c.process,T=E&&E.versions,S=T&&T.v8||"",O=c[x],k="process"==u(E),C=function(){},I=r=v.f,D=!!function(){try{var t=O.resolve(1),e=(t.constructor={})[n("5168")("species")]=function(t){t(C,C)};return(k||"function"==typeof PromiseRejectionEvent)&&t.then(C)instanceof e&&0!==S.indexOf("6.6")&&-1===M.indexOf("Chrome/66")}catch(t){}}(),R=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},A=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){var i=t._v,r=1==t._s,s=0,o=function(e){var n,s,o,a=r?e.ok:e.fail,c=e.resolve,l=e.reject,u=e.domain;try{a?(r||(2==t._h&&P(t),t._h=1),!0===a?n=i:(u&&u.enter(),n=a(i),u&&(u.exit(),o=!0)),n===e.promise?l(L("Promise-chain cycle")):(s=R(n))?s.call(n,c,l):c(n)):l(i)}catch(t){u&&!o&&u.exit(),l(t)}};while(n.length>s)o(n[s++]);t._c=[],t._n=!1,e&&!t._h&&N(t)})}},N=function(t){g.call(c,function(){var e,n,i,r=t._v,s=Y(t);if(s&&(e=b(function(){k?E.emit("unhandledRejection",r,t):(n=c.onunhandledrejection)?n({promise:t,reason:r}):(i=c.console)&&i.error&&i.error("Unhandled promise rejection",r)}),t._h=k||Y(t)?2:1),t._a=void 0,s&&e.e)throw e.v})},Y=function(t){return 1!==t._h&&0===(t._a||t._c).length},P=function(t){g.call(c,function(){var e;k?E.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},j=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),A(e,!0))},F=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw L("Promise can't be resolved itself");(e=R(t))?y(function(){var i={_w:n,_d:!1};try{e.call(t,l(F,i,1),l(j,i,1))}catch(t){j.call(i,t)}}):(n._v=t,n._s=1,A(n,!1))}catch(t){j.call({_w:n,_d:!1},t)}}};D||(O=function(t){p(this,O,x,"_h"),f(t),i.call(this);try{t(l(F,this,1),l(j,this,1))}catch(t){j.call(this,t)}},i=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},i.prototype=n("5c95")(O.prototype,{then:function(t,e){var n=I(m(this,O));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=k?E.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&A(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),s=function(){var t=new i;this.promise=t,this.resolve=l(F,t,1),this.reject=l(j,t,1)},v.f=I=function(t){return t===O||t===o?new s(t):r(t)}),h(h.G+h.W+h.F*!D,{Promise:O}),n("45f2")(O,x),n("4c95")(x),o=n("584a")[x],h(h.S+h.F*!D,x,{reject:function(t){var e=I(this),n=e.reject;return n(t),e.promise}}),h(h.S+h.F*(a||!D),x,{resolve:function(t){return w(a&&this===o?O:this,t)}}),h(h.S+h.F*!(D&&n("4ee1")(function(t){O.all(t)["catch"](C)})),x,{all:function(t){var e=this,n=I(e),i=n.resolve,r=n.reject,s=b(function(){var n=[],s=0,o=1;_(t,!1,function(t){var a=s++,c=!1;n.push(void 0),o++,e.resolve(t).then(function(t){c||(c=!0,n[a]=t,--o||i(n))},r)}),--o||i(n)});return s.e&&r(s.v),n.promise},race:function(t){var e=this,n=I(e),i=n.reject,r=b(function(){_(t,!1,function(t){e.resolve(t).then(n.resolve,i)})});return r.e&&i(r.v),n.promise}})},2513:function(t,e,n){"use strict";n.d(e,"a",function(){return i});class i{filter(t){}}},2554:function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration -function e(t,e,n,i){switch(n){case"m":return e?"jedna minuta":i?"jednu minutu":"jedne minute"}}function n(t,e,n){var i=t+" ";switch(n){case"ss":return i+=1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi",i;case"mm":return i+=1===t?"minuta":2===t||3===t||4===t?"minute":"minuta",i;case"h":return"jedan sat";case"hh":return i+=1===t?"sat":2===t||3===t||4===t?"sata":"sati",i;case"dd":return i+=1===t?"dan":"dana",i;case"MM":return i+=1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci",i;case"yy":return i+=1===t?"godina":2===t||3===t||4===t?"godine":"godina",i}}var i=t.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:n,m:e,mm:n,h:n,hh:n,d:"dan",dd:n,M:"mjesec",MM:n,y:"godinu",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return i})},"256f":function(t,e,n){"use strict";var i=n("790a"),r=n("0af5"),s=n("7fc9"),o=n("f5dd"),a=n("fced"),c=6378137,l=Math.PI*c,u=[-l,-l,l,l],h=[-180,-85,180,85],d=function(t){function e(e){t.call(this,{code:e,units:a["b"].METERS,extent:u,global:!0,worldExtent:h,getPointResolution:function(t,e){return t/Object(s["b"])(e[1]/c)}})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(o["a"]),f=[new d("EPSG:3857"),new d("EPSG:102100"),new d("EPSG:102113"),new d("EPSG:900913"),new d("urn:ogc:def:crs:EPSG:6.18:3:3857"),new d("urn:ogc:def:crs:EPSG::3857"),new d("http://www.opengis.net/gml/srs/epsg.xml#3857")];function p(t,e,n){var i=t.length,r=n>1?n:2,s=e;void 0===s&&(s=r>2?t.slice():new Array(i));for(var o=l,a=0;ao?u=o:u<-o&&(u=-o),s[a+1]=u}return s}function _(t,e,n){var i=t.length,r=n>1?n:2,s=e;void 0===s&&(s=r>2?t.slice():new Array(i));for(var o=0;o=2;--l)o[a+l]=e[a+l]}return o}}function N(t,e,n,i){var r=k(t),s=k(e);Object(L["a"])(r,s,A(n)),Object(L["a"])(s,r,A(i))}function Y(t,e){if(t===e)return!0;var n=t.getUnits()===e.getUnits();if(t.getCode()===e.getCode())return n;var i=P(t,e);return i===E&&n}function P(t,e){var n=t.getCode(),i=e.getCode(),r=Object(L["c"])(n,i);return r||(r=T),r}function j(t,e){var n=k(t),i=k(e);return P(n,i)}function F(t,e,n){var i=j(e,n);return i(t,void 0,t.length)}function H(t,e,n){var i=j(e,n);return Object(r["a"])(t,i)}function q(){I(f),I(b),D(b,f,p,_)}n.d(e,"k",function(){return T}),n.d(e,"d",function(){return S}),n.d(e,"g",function(){return k}),n.d(e,"h",function(){return C}),n.d(e,"c",function(){return I}),n.d(e,"e",function(){return R}),n.d(e,"b",function(){return N}),n.d(e,"f",function(){return Y}),n.d(e,"j",function(){return P}),n.d(e,"i",function(){return j}),n.d(e,"l",function(){return F}),n.d(e,"m",function(){return H}),n.d(e,"a",function(){return a["a"]}),q()},2577:function(t,e,n){},2582:function(t,e,n){"use strict";var i=n("cfe6"),r="abcdefghijklmnopqrstuvwxyz012345";t.exports={string:function(t){for(var e=r.length,n=i.randomBytes(t),s=[],o=0;os&&(l-a)*(s-c)-(r-a)*(u-c)>0&&o++:u<=s&&(l-a)*(s-c)-(r-a)*(u-c)<0&&o--,a=l,c=u}return 0!==o}function o(t,e,n,i,r,o){if(0===n.length)return!1;if(!s(t,e,n[0],i,r,o))return!1;for(var a=1,c=n.length;ae._xValue?1:this._eventTypee._eventType?1:0}getInsertEvent(){return this._insertEvent}isInsert(){return this._eventType===_.INSERT}isSameLabel(t){return null!==this._label&&this._label===t._label}get interfaces_(){return[p["a"]]}}_.INSERT=1,_.DELETE=2;class m extends c{constructor(){super(),m.constructor_.apply(this,arguments)}static constructor_(){this.events=new h["a"],this.nOverlaps=null}prepareEvents(){l["a"].sort(this.events);for(let t=0;t=2,"found LineString with single point"),this.insertBoundaryPoint(this._argIndex,e[0]),this.insertBoundaryPoint(this._argIndex,e[e.length-1])}getInvalidPoint(){return this._invalidPoint}getBoundaryPoints(){const t=this.getBoundaryNodes(),e=new Array(t.size()).fill(null);let n=0;for(let i=t.iterator();i.hasNext();){const t=i.next();e[n++]=t.getCoordinate().copy()}return e}addSelfIntersectionNodes(t){for(let e=this._edges.iterator();e.hasNext();){const n=e.next(),i=n.getLabel().getLocation(t);for(let e=n.eiList.iterator();e.hasNext();){const n=e.next();this.addSelfIntersectionNode(t,n.coord,i)}}}add(){if(!(1===arguments.length&&arguments[0]instanceof s["a"]))return super.add.apply(this,arguments);{const t=arguments[0];if(t.isEmpty())return null;if(t instanceof I["a"]&&(this._useBoundaryDeterminationRule=!1),t instanceof S["a"])this.addPolygon(t);else if(t instanceof i["a"])this.addLineString(t);else if(t instanceof T["a"])this.addPoint(t);else if(t instanceof O["a"])this.addCollection(t);else if(t instanceof M["a"])this.addCollection(t);else if(t instanceof I["a"])this.addCollection(t);else{if(!(t instanceof D["a"]))throw new R["a"](t.getGeometryType());this.addCollection(t)}}}addCollection(t){for(let e=0;e50?(null===this._areaPtLocator&&(this._areaPtLocator=new A["a"](this._parentGeom)),this._areaPtLocator.locate(t)):this._ptLocator.locate(t,this._parentGeom)}findEdge(){if(1===arguments.length&&arguments[0]instanceof i["a"]){const t=arguments[0];return this._lineEdgeMap.get(t)}return super.findEdge.apply(this,arguments)}computeSplitEdges(t){for(let e=this._edges.iterator();e.hasNext();){const n=e.next();n.eiList.addSplitEdges(t)}}computeEdgeIntersections(t,e,n){const i=new u(e,n,!0);i.setBoundaryNodes(this.getBoundaryNodes(),t.getBoundaryNodes());const r=this.createEdgeSetIntersector();return r.computeIntersections(this._edges,t._edges,i),i}getGeometry(){return this._parentGeom}getBoundaryNodeRule(){return this._boundaryNodeRule}hasTooFewPoints(){return this._hasTooFewPoints}addPoint(){if(arguments[0]instanceof T["a"]){const t=arguments[0],e=t.getCoordinate();this.insertPoint(this._argIndex,e,L["a"].INTERIOR)}else if(arguments[0]instanceof E["a"]){const t=arguments[0];this.insertPoint(this._argIndex,t,L["a"].INTERIOR)}}getBoundaryNodes(){return null===this._boundaryNodes&&(this._boundaryNodes=this._nodes.getBoundaryNodes(this._argIndex)),this._boundaryNodes}addSelfIntersectionNode(t,e,n){if(this.isBoundaryNode(t,e))return null;n===L["a"].BOUNDARY&&this._useBoundaryDeterminationRule?this.insertBoundaryPoint(t,e):this.insertPoint(t,e,n)}addPolygonRing(t,e,n){if(t.isEmpty())return null;const i=v["a"].removeRepeatedPoints(t.getCoordinates());if(i.length<4)return this._hasTooFewPoints=!0,this._invalidPoint=i[0],null;let r=e,s=n;g["a"].isCCW(i)&&(r=n,s=e);const o=new Y["a"](i,new y["a"](this._argIndex,L["a"].BOUNDARY,r,s));this._lineEdgeMap.put(t,o),this.insertEdge(o),this.insertPoint(this._argIndex,i[0],L["a"].BOUNDARY)}insertPoint(t,e,n){const i=this._nodes.addNode(e),r=i.getLabel();null===r?i._label=new y["a"](t,n):r.setLocation(t,n)}createEdgeSetIntersector(){return new m}}},"26a0":function(t,e,n){"use strict";(function(e){t.exports={isOpera:function(){return e.navigator&&/opera/i.test(e.navigator.userAgent)},isKonqueror:function(){return e.navigator&&/konqueror/i.test(e.navigator.userAgent)},hasDomain:function(){if(!e.document)return!0;try{return!!e.document.domain}catch(t){return!1}}}}).call(this,n("c8ba"))},"26e3":function(t,e,n){"use strict";(function(e){var i=n("3fb5"),r=n("9f3a"),s=n("d5e5");t.exports=function(t){function n(e,n){r.call(this,t.transportName,e,n)}return i(n,r),n.enabled=function(n,i){if(!e.document)return!1;var o=s.extend({},i);return o.sameOrigin=!0,t.enabled(o)&&r.enabled()},n.transportName="iframe-"+t.transportName,n.needBody=!0,n.roundTrips=r.roundTrips+t.roundTrips-1,n.facadeTransport=t,n}}).call(this,n("c8ba"))},"26f9":function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; +function e(t,e,n,i){switch(n){case"m":return e?"jedna minuta":i?"jednu minutu":"jedne minute"}}function n(t,e,n){var i=t+" ";switch(n){case"ss":return i+=1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi",i;case"mm":return i+=1===t?"minuta":2===t||3===t||4===t?"minute":"minuta",i;case"h":return"jedan sat";case"hh":return i+=1===t?"sat":2===t||3===t||4===t?"sata":"sati",i;case"dd":return i+=1===t?"dan":"dana",i;case"MM":return i+=1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci",i;case"yy":return i+=1===t?"godina":2===t||3===t||4===t?"godine":"godina",i}}var i=t.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:n,m:e,mm:n,h:n,hh:n,d:"dan",dd:n,M:"mjesec",MM:n,y:"godinu",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return i})},"256f":function(t,e,n){"use strict";var i=n("790a"),r=n("0af5"),s=n("7fc9"),o=n("f5dd"),a=n("fced"),c=6378137,l=Math.PI*c,u=[-l,-l,l,l],h=[-180,-85,180,85],d=function(t){function e(e){t.call(this,{code:e,units:a["b"].METERS,extent:u,global:!0,worldExtent:h,getPointResolution:function(t,e){return t/Object(s["b"])(e[1]/c)}})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(o["a"]),f=[new d("EPSG:3857"),new d("EPSG:102100"),new d("EPSG:102113"),new d("EPSG:900913"),new d("urn:ogc:def:crs:EPSG:6.18:3:3857"),new d("urn:ogc:def:crs:EPSG::3857"),new d("http://www.opengis.net/gml/srs/epsg.xml#3857")];function p(t,e,n){var i=t.length,r=n>1?n:2,s=e;void 0===s&&(s=r>2?t.slice():new Array(i));for(var o=l,a=0;ao?u=o:u<-o&&(u=-o),s[a+1]=u}return s}function _(t,e,n){var i=t.length,r=n>1?n:2,s=e;void 0===s&&(s=r>2?t.slice():new Array(i));for(var o=0;o=2;--l)o[a+l]=e[a+l]}return o}}function N(t,e,n,i){var r=k(t),s=k(e);Object(L["a"])(r,s,A(n)),Object(L["a"])(s,r,A(i))}function Y(t,e){if(t===e)return!0;var n=t.getUnits()===e.getUnits();if(t.getCode()===e.getCode())return n;var i=P(t,e);return i===E&&n}function P(t,e){var n=t.getCode(),i=e.getCode(),r=Object(L["c"])(n,i);return r||(r=T),r}function j(t,e){var n=k(t),i=k(e);return P(n,i)}function F(t,e,n){var i=j(e,n);return i(t,void 0,t.length)}function H(t,e,n){var i=j(e,n);return Object(r["a"])(t,i)}function G(){I(f),I(b),D(b,f,p,_)}n.d(e,"k",function(){return T}),n.d(e,"d",function(){return S}),n.d(e,"g",function(){return k}),n.d(e,"h",function(){return C}),n.d(e,"c",function(){return I}),n.d(e,"e",function(){return R}),n.d(e,"b",function(){return N}),n.d(e,"f",function(){return Y}),n.d(e,"j",function(){return P}),n.d(e,"i",function(){return j}),n.d(e,"l",function(){return F}),n.d(e,"m",function(){return H}),n.d(e,"a",function(){return a["a"]}),G()},2577:function(t,e,n){},2582:function(t,e,n){"use strict";var i=n("cfe6"),r="abcdefghijklmnopqrstuvwxyz012345";t.exports={string:function(t){for(var e=r.length,n=i.randomBytes(t),s=[],o=0;os&&(l-a)*(s-c)-(r-a)*(u-c)>0&&o++:u<=s&&(l-a)*(s-c)-(r-a)*(u-c)<0&&o--,a=l,c=u}return 0!==o}function o(t,e,n,i,r,o){if(0===n.length)return!1;if(!s(t,e,n[0],i,r,o))return!1;for(var a=1,c=n.length;ae._xValue?1:this._eventTypee._eventType?1:0}getInsertEvent(){return this._insertEvent}isInsert(){return this._eventType===_.INSERT}isSameLabel(t){return null!==this._label&&this._label===t._label}get interfaces_(){return[p["a"]]}}_.INSERT=1,_.DELETE=2;class m extends c{constructor(){super(),m.constructor_.apply(this,arguments)}static constructor_(){this.events=new h["a"],this.nOverlaps=null}prepareEvents(){l["a"].sort(this.events);for(let t=0;t=2,"found LineString with single point"),this.insertBoundaryPoint(this._argIndex,e[0]),this.insertBoundaryPoint(this._argIndex,e[e.length-1])}getInvalidPoint(){return this._invalidPoint}getBoundaryPoints(){const t=this.getBoundaryNodes(),e=new Array(t.size()).fill(null);let n=0;for(let i=t.iterator();i.hasNext();){const t=i.next();e[n++]=t.getCoordinate().copy()}return e}addSelfIntersectionNodes(t){for(let e=this._edges.iterator();e.hasNext();){const n=e.next(),i=n.getLabel().getLocation(t);for(let e=n.eiList.iterator();e.hasNext();){const n=e.next();this.addSelfIntersectionNode(t,n.coord,i)}}}add(){if(!(1===arguments.length&&arguments[0]instanceof s["a"]))return super.add.apply(this,arguments);{const t=arguments[0];if(t.isEmpty())return null;if(t instanceof I["a"]&&(this._useBoundaryDeterminationRule=!1),t instanceof S["a"])this.addPolygon(t);else if(t instanceof i["a"])this.addLineString(t);else if(t instanceof T["a"])this.addPoint(t);else if(t instanceof O["a"])this.addCollection(t);else if(t instanceof M["a"])this.addCollection(t);else if(t instanceof I["a"])this.addCollection(t);else{if(!(t instanceof D["a"]))throw new R["a"](t.getGeometryType());this.addCollection(t)}}}addCollection(t){for(let e=0;e50?(null===this._areaPtLocator&&(this._areaPtLocator=new A["a"](this._parentGeom)),this._areaPtLocator.locate(t)):this._ptLocator.locate(t,this._parentGeom)}findEdge(){if(1===arguments.length&&arguments[0]instanceof i["a"]){const t=arguments[0];return this._lineEdgeMap.get(t)}return super.findEdge.apply(this,arguments)}computeSplitEdges(t){for(let e=this._edges.iterator();e.hasNext();){const n=e.next();n.eiList.addSplitEdges(t)}}computeEdgeIntersections(t,e,n){const i=new u(e,n,!0);i.setBoundaryNodes(this.getBoundaryNodes(),t.getBoundaryNodes());const r=this.createEdgeSetIntersector();return r.computeIntersections(this._edges,t._edges,i),i}getGeometry(){return this._parentGeom}getBoundaryNodeRule(){return this._boundaryNodeRule}hasTooFewPoints(){return this._hasTooFewPoints}addPoint(){if(arguments[0]instanceof T["a"]){const t=arguments[0],e=t.getCoordinate();this.insertPoint(this._argIndex,e,L["a"].INTERIOR)}else if(arguments[0]instanceof E["a"]){const t=arguments[0];this.insertPoint(this._argIndex,t,L["a"].INTERIOR)}}getBoundaryNodes(){return null===this._boundaryNodes&&(this._boundaryNodes=this._nodes.getBoundaryNodes(this._argIndex)),this._boundaryNodes}addSelfIntersectionNode(t,e,n){if(this.isBoundaryNode(t,e))return null;n===L["a"].BOUNDARY&&this._useBoundaryDeterminationRule?this.insertBoundaryPoint(t,e):this.insertPoint(t,e,n)}addPolygonRing(t,e,n){if(t.isEmpty())return null;const i=v["a"].removeRepeatedPoints(t.getCoordinates());if(i.length<4)return this._hasTooFewPoints=!0,this._invalidPoint=i[0],null;let r=e,s=n;g["a"].isCCW(i)&&(r=n,s=e);const o=new Y["a"](i,new y["a"](this._argIndex,L["a"].BOUNDARY,r,s));this._lineEdgeMap.put(t,o),this.insertEdge(o),this.insertPoint(this._argIndex,i[0],L["a"].BOUNDARY)}insertPoint(t,e,n){const i=this._nodes.addNode(e),r=i.getLabel();null===r?i._label=new y["a"](t,n):r.setLocation(t,n)}createEdgeSetIntersector(){return new m}}},"26a0":function(t,e,n){"use strict";(function(e){t.exports={isOpera:function(){return e.navigator&&/opera/i.test(e.navigator.userAgent)},isKonqueror:function(){return e.navigator&&/konqueror/i.test(e.navigator.userAgent)},hasDomain:function(){if(!e.document)return!0;try{return!!e.document.domain}catch(t){return!1}}}}).call(this,n("c8ba"))},"26e3":function(t,e,n){"use strict";(function(e){var i=n("3fb5"),r=n("9f3a"),s=n("d5e5");t.exports=function(t){function n(e,n){r.call(this,t.transportName,e,n)}return i(n,r),n.enabled=function(n,i){if(!e.document)return!1;var o=s.extend({},i);return o.sameOrigin=!0,t.enabled(o)&&r.enabled()},n.transportName="iframe-"+t.transportName,n.needBody=!0,n.roundTrips=r.roundTrips+t.roundTrips-1,n.facadeTransport=t,n}}).call(this,n("c8ba"))},"26f9":function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration -var e={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(t,e,n,i){return e?"kelios sekundės":i?"kelių sekundžių":"kelias sekundes"}function i(t,e,n,i){return e?s(n)[0]:i?s(n)[1]:s(n)[2]}function r(t){return t%10===0||t>10&&t<20}function s(t){return e[t].split("_")}function o(t,e,n,o){var a=t+" ";return 1===t?a+i(t,e,n[0],o):e?a+(r(t)?s(n)[1]:s(n)[0]):o?a+s(n)[1]:a+(r(t)?s(n)[1]:s(n)[2])}var a=t.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:n,ss:o,m:i,mm:o,h:i,hh:o,d:i,dd:o,M:i,MM:o,y:i,yy:o},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(t){return t+"-oji"},week:{dow:1,doy:4}});return a})},2709:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n("7b52"),r=n("38de"),s=n("ad3f"),o=n("6f62"),a=n("8a23"),c=n("cf09");class l{static isInRing(t,e){return l.locateInRing(t,e)!==i["a"].EXTERIOR}static locateInRing(t,e){return c["a"].locatePointInRing(t,e)}static isOnLine(){if(arguments[0]instanceof s["a"]&&Object(r["a"])(arguments[1],o["a"])){const t=arguments[0],e=arguments[1],n=new a["a"],i=new s["a"],r=new s["a"],o=e.size();for(let s=1;s-1e3&&t<1e3||E.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof t){var i=t<0?-k(-t):k(t);if(i!==t){var r=String(i),s=M.call(e,r.length+1);return w.call(r,n,"$&_")+"."+w.call(w.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return w.call(e,n,"$&_")}var j=n(1),F=j.custom,H=K(F)?F:null;function q(t,e,n){var i="double"===(n.quoteStyle||e)?'"':"'";return i+t+i}function G(t){return w.call(String(t),/"/g,""")}function z(t){return"[object Array]"===tt(t)&&(!A||!("object"===typeof t&&A in t))}function B(t){return"[object Date]"===tt(t)&&(!A||!("object"===typeof t&&A in t))}function U(t){return"[object RegExp]"===tt(t)&&(!A||!("object"===typeof t&&A in t))}function W(t){return"[object Error]"===tt(t)&&(!A||!("object"===typeof t&&A in t))}function $(t){return"[object String]"===tt(t)&&(!A||!("object"===typeof t&&A in t))}function V(t){return"[object Number]"===tt(t)&&(!A||!("object"===typeof t&&A in t))}function X(t){return"[object Boolean]"===tt(t)&&(!A||!("object"===typeof t&&A in t))}function K(t){if(R)return t&&"object"===typeof t&&t instanceof Symbol;if("symbol"===typeof t)return!0;if(!t||"object"!==typeof t||!D)return!1;try{return D.call(t),!0}catch(t){}return!1}function Z(t){if(!t||"object"!==typeof t||!C)return!1;try{return C.call(t),!0}catch(t){}return!1}t.exports=function t(n,i,r,a){var c=i||{};if(Q(c,"quoteStyle")&&"single"!==c.quoteStyle&&"double"!==c.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Q(c,"maxStringLength")&&("number"===typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var h=!Q(c,"customInspect")||c.customInspect;if("boolean"!==typeof h&&"symbol"!==h)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Q(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Q(c,"numericSeparator")&&"boolean"!==typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=c.numericSeparator;if("undefined"===typeof n)return"undefined";if(null===n)return"null";if("boolean"===typeof n)return n?"true":"false";if("string"===typeof n)return lt(n,c);if("number"===typeof n){if(0===n)return 1/0/n>0?"0":"-0";var f=String(n);return d?P(n,f):f}if("bigint"===typeof n){var p=String(n)+"n";return d?P(n,p):p}var _="undefined"===typeof c.depth?5:c.depth;if("undefined"===typeof r&&(r=0),r>=_&&_>0&&"object"===typeof n)return z(n)?"[Array]":"[Object]";var m=_t(c,r);if("undefined"===typeof a)a=[];else if(nt(a,n)>=0)return"[Circular]";function y(e,n,i){if(n&&(a=O.call(a),a.push(n)),i){var s={depth:c.depth};return Q(c,"quoteStyle")&&(s.quoteStyle=c.quoteStyle),t(e,s,r+1,a)}return t(e,c,r+1,a)}if("function"===typeof n&&!U(n)){var v=et(n),b=gt(n,y);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(b.length>0?" { "+S.call(b,", ")+" }":"")}if(K(n)){var x=R?w.call(String(n),/^(Symbol\(.*\))_[^)]*$/,"$1"):D.call(n);return"object"!==typeof n||R?x:ht(x)}if(ct(n)){for(var E="<"+L.call(String(n.nodeName)),k=n.attributes||[],I=0;I",E}if(z(n)){if(0===n.length)return"[]";var F=gt(n,y);return m&&!pt(F)?"["+mt(F,m)+"]":"[ "+S.call(F,", ")+" ]"}if(W(n)){var J=gt(n,y);return"cause"in Error.prototype||!("cause"in n)||N.call(n,"cause")?0===J.length?"["+String(n)+"]":"{ ["+String(n)+"] "+S.call(J,", ")+" }":"{ ["+String(n)+"] "+S.call(T.call("[cause]: "+y(n.cause),J),", ")+" }"}if("object"===typeof n&&h){if(H&&"function"===typeof n[H]&&j)return j(n,{depth:_-r});if("symbol"!==h&&"function"===typeof n.inspect)return n.inspect()}if(it(n)){var ut=[];return o&&o.call(n,function(t,e){ut.push(y(e,n,!0)+" => "+y(t,n))}),ft("Map",s.call(n),ut,m)}if(ot(n)){var yt=[];return u&&u.call(n,function(t){yt.push(y(t,n))}),ft("Set",l.call(n),yt,m)}if(rt(n))return dt("WeakMap");if(at(n))return dt("WeakSet");if(st(n))return dt("WeakRef");if(V(n))return ht(y(Number(n)));if(Z(n))return ht(y(C.call(n)));if(X(n))return ht(g.call(n));if($(n))return ht(y(String(n)));if("undefined"!==typeof window&&n===window)return"{ [object Window] }";if("undefined"!==typeof globalThis&&n===globalThis||"undefined"!==typeof e&&n===e)return"{ [object globalThis] }";if(!B(n)&&!U(n)){var vt=gt(n,y),bt=Y?Y(n)===Object.prototype:n instanceof Object||n.constructor===Object,Mt=n instanceof Object?"":"null prototype",wt=!bt&&A&&Object(n)===n&&A in n?M.call(tt(n),8,-1):Mt?"Object":"",xt=bt||"function"!==typeof n.constructor?"":n.constructor.name?n.constructor.name+" ":"",Lt=xt+(wt||Mt?"["+S.call(T.call([],wt||[],Mt||[]),": ")+"] ":"");return 0===vt.length?Lt+"{}":m?Lt+"{"+mt(vt,m)+"}":Lt+"{ "+S.call(vt,", ")+" }"}return String(n)};var J=Object.prototype.hasOwnProperty||function(t){return t in this};function Q(t,e){return J.call(t,e)}function tt(t){return y.call(t)}function et(t){if(t.name)return t.name;var e=b.call(v.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function nt(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;ne.maxStringLength){var n=t.length-e.maxStringLength,i="... "+n+" more character"+(n>1?"s":"");return lt(M.call(t,0,e.maxStringLength),e)+i}var r=w.call(w.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,ut);return q(r,"single",e)}function ut(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+x.call(e.toString(16))}function ht(t){return"Object("+t+")"}function dt(t){return t+" { ? }"}function ft(t,e,n,i){var r=i?mt(n,i):S.call(n,", ");return t+" ("+e+") {"+r+"}"}function pt(t){for(var e=0;e=0)return!1;return!0}function _t(t,e){var n;if("\t"===t.indent)n="\t";else{if(!("number"===typeof t.indent&&t.indent>0))return null;n=S.call(Array(t.indent+1)," ")}return{base:n,prev:S.call(Array(e+1),n)}}function mt(t,e){if(0===t.length)return"";var n="\n"+e.prev+e.base;return n+S.call(t,","+n)+"\n"+e.prev}function gt(t,e){var n=z(t),i=[];if(n){i.length=t.length;for(var r=0;r1||""[f](/.?/)[p]?function(t,e){var r=String(this);if(void 0===t&&0===e)return[];if(!i(t))return n.call(r,t,e);var s,o,a,c=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),h=0,f=void 0===e?m:e>>>0,g=new RegExp(t.source,u+"g");while(s=l.call(g,r)){if(o=g[_],o>h&&(c.push(r.slice(h,s.index)),s[p]>1&&s.index=f))break;g[_]===s.index&&g[_]++}return h===r[p]?!a&&g.test("")||c.push(""):c.push(r.slice(h)),c[p]>f?c.slice(0,f):c}:"0"[f](void 0,0)[p]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,i){var r=t(this),s=void 0==n?void 0:n[e];return void 0!==s?s.call(n,r,i):y.call(String(r),n,i)},function(t,e){var i=u(y,t,this,e,y!==n);if(i.done)return i.value;var l=r(t),d=String(this),f=s(l,RegExp),p=l.unicode,_=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(g?"y":"g"),v=new f(g?l:"^(?:"+l.source+")",_),b=void 0===e?m:e>>>0;if(0===b)return[];if(0===d.length)return null===c(v,d)?[d]:[];var M=0,w=0,x=[];while(ws.threshold)s.event.abort=!0;else{if(s.event.detected)return t.stopPropagation(),void t.preventDefault();var e=Object(i["f"])(t),n=e.left-s.event.x,r=Math.abs(n),o=e.top-s.event.y,a=Math.abs(o);r!==a&&(s.event.detected=!0,s.event.abort=!(s.direction.vertical&&ra||s.direction.up&&r0||s.direction.left&&r>a&&n<0||s.direction.right&&r>a&&n>0),s.move(t))}},end:function(e){if(t.classList.remove("q-touch"),!s.event.abort&&s.event.detected){var n=(new Date).getTime()-s.event.time;if(!(n>s.threshold)){e.stopPropagation(),e.preventDefault();var r,o=Object(i["f"])(e),a=o.left-s.event.x,c=Math.abs(a),l=o.top-s.event.y,u=Math.abs(l);if(c>=u){if(c<50)return;r=a<0?"left":"right"}else{if(u<50)return;r=l<0?"up":"down"}s.direction[r]&&s.handler({evt:e,direction:r,duration:n,distance:{x:c,y:u}})}}}};t.__qtouchswipe=s,n&&t.addEventListener("mousedown",s.mouseStart),t.addEventListener("touchstart",s.start),t.addEventListener("touchmove",s.move),t.addEventListener("touchend",s.end)},update:function(t,e){e.oldValue!==e.value&&(t.__qtouchswipe.handler=e.value)},unbind:function(t,e){var n=t.__qtouchswipe;n&&(t.removeEventListener("mousedown",n.mouseStart),t.removeEventListener("touchstart",n.start),t.removeEventListener("touchmove",n.move),t.removeEventListener("touchend",n.end),delete t.__qtouchswipe)}}},2921:function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; +var e={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(t,e,n,i){return e?"kelios sekundės":i?"kelių sekundžių":"kelias sekundes"}function i(t,e,n,i){return e?s(n)[0]:i?s(n)[1]:s(n)[2]}function r(t){return t%10===0||t>10&&t<20}function s(t){return e[t].split("_")}function o(t,e,n,o){var a=t+" ";return 1===t?a+i(t,e,n[0],o):e?a+(r(t)?s(n)[1]:s(n)[0]):o?a+s(n)[1]:a+(r(t)?s(n)[1]:s(n)[2])}var a=t.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:n,ss:o,m:i,mm:o,h:i,hh:o,d:i,dd:o,M:i,MM:o,y:i,yy:o},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(t){return t+"-oji"},week:{dow:1,doy:4}});return a})},2709:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n("7b52"),r=n("38de"),s=n("ad3f"),o=n("6f62"),a=n("8a23"),c=n("cf09");class l{static isInRing(t,e){return l.locateInRing(t,e)!==i["a"].EXTERIOR}static locateInRing(t,e){return c["a"].locatePointInRing(t,e)}static isOnLine(){if(arguments[0]instanceof s["a"]&&Object(r["a"])(arguments[1],o["a"])){const t=arguments[0],e=arguments[1],n=new a["a"],i=new s["a"],r=new s["a"],o=e.size();for(let s=1;s-1e3&&t<1e3||E.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof t){var i=t<0?-k(-t):k(t);if(i!==t){var r=String(i),s=M.call(e,r.length+1);return w.call(r,n,"$&_")+"."+w.call(w.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return w.call(e,n,"$&_")}var j=n(1),F=j.custom,H=Z(F)?F:null,G={__proto__:null,double:'"',single:"'"},q={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function z(t,e,n){var i=n.quoteStyle||e,r=G[i];return r+t+r}function B(t){return w.call(String(t),/"/g,""")}function U(t){return"[object Array]"===nt(t)&&(!A||!("object"===typeof t&&A in t))}function W(t){return"[object Date]"===nt(t)&&(!A||!("object"===typeof t&&A in t))}function $(t){return"[object RegExp]"===nt(t)&&(!A||!("object"===typeof t&&A in t))}function V(t){return"[object Error]"===nt(t)&&(!A||!("object"===typeof t&&A in t))}function X(t){return"[object String]"===nt(t)&&(!A||!("object"===typeof t&&A in t))}function K(t){return"[object Number]"===nt(t)&&(!A||!("object"===typeof t&&A in t))}function J(t){return"[object Boolean]"===nt(t)&&(!A||!("object"===typeof t&&A in t))}function Z(t){if(R)return t&&"object"===typeof t&&t instanceof Symbol;if("symbol"===typeof t)return!0;if(!t||"object"!==typeof t||!D)return!1;try{return D.call(t),!0}catch(t){}return!1}function Q(t){if(!t||"object"!==typeof t||!C)return!1;try{return C.call(t),!0}catch(t){}return!1}t.exports=function t(n,i,r,a){var c=i||{};if(et(c,"quoteStyle")&&!et(G,c.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(et(c,"maxStringLength")&&("number"===typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var h=!et(c,"customInspect")||c.customInspect;if("boolean"!==typeof h&&"symbol"!==h)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(et(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(et(c,"numericSeparator")&&"boolean"!==typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=c.numericSeparator;if("undefined"===typeof n)return"undefined";if(null===n)return"null";if("boolean"===typeof n)return n?"true":"false";if("string"===typeof n)return ht(n,c);if("number"===typeof n){if(0===n)return 1/0/n>0?"0":"-0";var f=String(n);return d?P(n,f):f}if("bigint"===typeof n){var p=String(n)+"n";return d?P(n,p):p}var _="undefined"===typeof c.depth?5:c.depth;if("undefined"===typeof r&&(r=0),r>=_&&_>0&&"object"===typeof n)return U(n)?"[Array]":"[Object]";var m=gt(c,r);if("undefined"===typeof a)a=[];else if(rt(a,n)>=0)return"[Circular]";function y(e,n,i){if(n&&(a=O.call(a),a.push(n)),i){var s={depth:c.depth};return et(c,"quoteStyle")&&(s.quoteStyle=c.quoteStyle),t(e,s,r+1,a)}return t(e,c,r+1,a)}if("function"===typeof n&&!$(n)){var v=it(n),b=vt(n,y);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(b.length>0?" { "+S.call(b,", ")+" }":"")}if(Z(n)){var x=R?w.call(String(n),/^(Symbol\(.*\))_[^)]*$/,"$1"):D.call(n);return"object"!==typeof n||R?x:ft(x)}if(ut(n)){for(var E="<"+L.call(String(n.nodeName)),k=n.attributes||[],I=0;I",E}if(U(n)){if(0===n.length)return"[]";var F=vt(n,y);return m&&!mt(F)?"["+yt(F,m)+"]":"[ "+S.call(F,", ")+" ]"}if(V(n)){var q=vt(n,y);return"cause"in Error.prototype||!("cause"in n)||N.call(n,"cause")?0===q.length?"["+String(n)+"]":"{ ["+String(n)+"] "+S.call(q,", ")+" }":"{ ["+String(n)+"] "+S.call(T.call("[cause]: "+y(n.cause),q),", ")+" }"}if("object"===typeof n&&h){if(H&&"function"===typeof n[H]&&j)return j(n,{depth:_-r});if("symbol"!==h&&"function"===typeof n.inspect)return n.inspect()}if(st(n)){var tt=[];return o&&o.call(n,function(t,e){tt.push(y(e,n,!0)+" => "+y(t,n))}),_t("Map",s.call(n),tt,m)}if(ct(n)){var dt=[];return u&&u.call(n,function(t){dt.push(y(t,n))}),_t("Set",l.call(n),dt,m)}if(ot(n))return pt("WeakMap");if(lt(n))return pt("WeakSet");if(at(n))return pt("WeakRef");if(K(n))return ft(y(Number(n)));if(Q(n))return ft(y(C.call(n)));if(J(n))return ft(g.call(n));if(X(n))return ft(y(String(n)));if("undefined"!==typeof window&&n===window)return"{ [object Window] }";if("undefined"!==typeof globalThis&&n===globalThis||"undefined"!==typeof e&&n===e)return"{ [object globalThis] }";if(!W(n)&&!$(n)){var bt=vt(n,y),Mt=Y?Y(n)===Object.prototype:n instanceof Object||n.constructor===Object,wt=n instanceof Object?"":"null prototype",xt=!Mt&&A&&Object(n)===n&&A in n?M.call(nt(n),8,-1):wt?"Object":"",Lt=Mt||"function"!==typeof n.constructor?"":n.constructor.name?n.constructor.name+" ":"",Et=Lt+(xt||wt?"["+S.call(T.call([],xt||[],wt||[]),": ")+"] ":"");return 0===bt.length?Et+"{}":m?Et+"{"+yt(bt,m)+"}":Et+"{ "+S.call(bt,", ")+" }"}return String(n)};var tt=Object.prototype.hasOwnProperty||function(t){return t in this};function et(t,e){return tt.call(t,e)}function nt(t){return y.call(t)}function it(t){if(t.name)return t.name;var e=b.call(v.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function rt(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;ne.maxStringLength){var n=t.length-e.maxStringLength,i="... "+n+" more character"+(n>1?"s":"");return ht(M.call(t,0,e.maxStringLength),e)+i}var r=q[e.quoteStyle||"single"];r.lastIndex=0;var s=w.call(w.call(t,r,"\\$1"),/[\x00-\x1f]/g,dt);return z(s,"single",e)}function dt(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+x.call(e.toString(16))}function ft(t){return"Object("+t+")"}function pt(t){return t+" { ? }"}function _t(t,e,n,i){var r=i?yt(n,i):S.call(n,", ");return t+" ("+e+") {"+r+"}"}function mt(t){for(var e=0;e=0)return!1;return!0}function gt(t,e){var n;if("\t"===t.indent)n="\t";else{if(!("number"===typeof t.indent&&t.indent>0))return null;n=S.call(Array(t.indent+1)," ")}return{base:n,prev:S.call(Array(e+1),n)}}function yt(t,e){if(0===t.length)return"";var n="\n"+e.prev+e.base;return n+S.call(t,","+n)+"\n"+e.prev}function vt(t,e){var n=U(t),i=[];if(n){i.length=t.length;for(var r=0;r1||""[f](/.?/)[p]?function(t,e){var r=String(this);if(void 0===t&&0===e)return[];if(!i(t))return n.call(r,t,e);var s,o,a,c=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),h=0,f=void 0===e?m:e>>>0,g=new RegExp(t.source,u+"g");while(s=l.call(g,r)){if(o=g[_],o>h&&(c.push(r.slice(h,s.index)),s[p]>1&&s.index=f))break;g[_]===s.index&&g[_]++}return h===r[p]?!a&&g.test("")||c.push(""):c.push(r.slice(h)),c[p]>f?c.slice(0,f):c}:"0"[f](void 0,0)[p]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,i){var r=t(this),s=void 0==n?void 0:n[e];return void 0!==s?s.call(n,r,i):y.call(String(r),n,i)},function(t,e){var i=u(y,t,this,e,y!==n);if(i.done)return i.value;var l=r(t),d=String(this),f=s(l,RegExp),p=l.unicode,_=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(g?"y":"g"),v=new f(g?l:"^(?:"+l.source+")",_),b=void 0===e?m:e>>>0;if(0===b)return[];if(0===d.length)return null===c(v,d)?[d]:[];var M=0,w=0,x=[];while(ws.threshold)s.event.abort=!0;else{if(s.event.detected)return t.stopPropagation(),void t.preventDefault();var e=Object(i["f"])(t),n=e.left-s.event.x,r=Math.abs(n),o=e.top-s.event.y,a=Math.abs(o);r!==a&&(s.event.detected=!0,s.event.abort=!(s.direction.vertical&&ra||s.direction.up&&r0||s.direction.left&&r>a&&n<0||s.direction.right&&r>a&&n>0),s.move(t))}},end:function(e){if(t.classList.remove("q-touch"),!s.event.abort&&s.event.detected){var n=(new Date).getTime()-s.event.time;if(!(n>s.threshold)){e.stopPropagation(),e.preventDefault();var r,o=Object(i["f"])(e),a=o.left-s.event.x,c=Math.abs(a),l=o.top-s.event.y,u=Math.abs(l);if(c>=u){if(c<50)return;r=a<0?"left":"right"}else{if(u<50)return;r=l<0?"up":"down"}s.direction[r]&&s.handler({evt:e,direction:r,duration:n,distance:{x:c,y:u}})}}}};t.__qtouchswipe=s,n&&t.addEventListener("mousedown",s.mouseStart),t.addEventListener("touchstart",s.start),t.addEventListener("touchmove",s.move),t.addEventListener("touchend",s.end)},update:function(t,e){e.oldValue!==e.value&&(t.__qtouchswipe.handler=e.value)},unbind:function(t,e){var n=t.__qtouchswipe;n&&(t.removeEventListener("mousedown",n.mouseStart),t.removeEventListener("touchstart",n.start),t.removeEventListener("touchmove",n.move),t.removeEventListener("touchend",n.end),delete t.__qtouchswipe)}}},2921:function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(t){return/^ch$/i.test(t)},meridiem:function(t,e,n){return t<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}});return e})},2926:function(t,e,n){(function(t,e){e()})(0,function(){"use strict";var e=function(t){var e=t.properties,n=t.keywords,i=t.validators,r=t.formats,s=t.keys,o=t.transformation;Object.assign(e,{minimum:function(t){return"%s <"+(t.exclusiveMinimum?"=":"")+" "+t.minimum},maximum:function(t){return"%s >"+(t.exclusiveMaximum?"=":"")+" "+t.maximum}}),delete e.exclusiveMaximum,delete e.exclusiveMinimum,["$id","contains","const","examples"].forEach(function(t){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}),-1===n.indexOf("exclusiveMaximum")&&n.push("exclusiveMaximum","exclusiveMininum","id"),["contains","constant","propertyNames"].forEach(function(t){var e=i.name[t];delete i.name[t];var n=i.list.indexOf(e);-1!==n&&i.list.splice(n,1)}),delete r["json-pointer"],delete r["uri-reference"],delete r["uri-template"],Object.assign(s,{id:"id"}),Object.assign(o,{ANY_SCHEMA:!0,NOT_ANY_SCHEMA:!1})};t.exports=e})},"293c":function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration -var e={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,n,i){var r=e.words[i];return 1===i.length?n?r[0]:r[1]:t+" "+e.correctGrammaticalCase(t,r)}},n=t.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){var t=["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return t[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mjesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n})},"294c":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"29f6":function(t,e,n){"use strict";e["a"]={POINT:"point",LINE:"line"}},"2a06":function(t,e,n){t.exports=n("d2d5")},"2a70":function(t,e,n){"use strict";e["a"]={name:"QModalLayout",inject:{__qmodal:{default:function(){console.error("QModalLayout needs to be child of QModal")}}},props:{headerStyle:[String,Object,Array],headerClass:[String,Object,Array],contentStyle:[String,Object,Array],contentClass:[String,Object,Array],footerStyle:[String,Object,Array],footerClass:[String,Object,Array]},watch:{__qmodal:function(t,e){e&&e.unregister(this),t&&t.register(this)}},mounted:function(){this.__qmodal&&this.__qmodal.register(this)},beforeDestroy:function(){this.__qmodal&&this.__qmodal.unregister(this)},render:function(t){var e=[];return(this.$slots.header||this.$slots.navigation)&&e.push(t("div",{staticClass:"q-layout-header",style:this.headerStyle,class:this.headerClass},[this.$slots.header,this.$slots.navigation])),e.push(t("div",{staticClass:"q-modal-layout-content col scroll",style:this.contentStyle,class:this.contentClass},this.$slots.default)),this.$slots.footer&&e.push(t("div",{staticClass:"q-layout-footer",style:this.footerStyle,class:this.footerClass},[this.$slots.footer,null])),t("div",{staticClass:"q-modal-layout col column no-wrap"},e)}}},"2aa9":function(t,e,n){"use strict";var i=n("00ce"),r=i("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(t){r=null}t.exports=r},"2aba":function(t,e,n){var i=n("7726"),r=n("32e9"),s=n("69a8"),o=n("ca5a")("src"),a=n("fa5b"),c="toString",l=(""+a).split(c);n("8378").inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,n,a){var c="function"==typeof n;c&&(s(n,"name")||r(n,"name",e)),t[e]!==n&&(c&&(s(n,o)||r(n,o,t[e]?""+t[e]:l.join(String(e)))),t===i?t[e]=n:a?t[e]?t[e]=n:r(t,e,n):(delete t[e],r(t,e,n)))})(Function.prototype,c,function(){return"function"==typeof this&&this[o]||a.call(this)})},"2ac1":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("fd89"),r=n("cd0e");class s{static toDimensionSymbol(t){switch(t){case s.FALSE:return s.SYM_FALSE;case s.TRUE:return s.SYM_TRUE;case s.DONTCARE:return s.SYM_DONTCARE;case s.P:return s.SYM_P;case s.L:return s.SYM_L;case s.A:return s.SYM_A}throw new i["a"]("Unknown dimension value: "+t)}static toDimensionValue(t){switch(r["a"].toUpperCase(t)){case s.SYM_FALSE:return s.FALSE;case s.SYM_TRUE:return s.TRUE;case s.SYM_DONTCARE:return s.DONTCARE;case s.SYM_P:return s.P;case s.SYM_L:return s.L;case s.SYM_A:return s.A}throw new i["a"]("Unknown dimension symbol: "+t)}}s.P=0,s.L=1,s.A=2,s.FALSE=-1,s.TRUE=-2,s.DONTCARE=-3,s.SYM_FALSE="F",s.SYM_TRUE="T",s.SYM_DONTCARE="*",s.SYM_P="0",s.SYM_L="1",s.SYM_A="2"},"2ac6":function(t,e,n){},"2aeb":function(t,e,n){var i=n("cb7c"),r=n("1495"),s=n("e11e"),o=n("613b")("IE_PROTO"),a=function(){},c="prototype",l=function(){var t,e=n("230e")("iframe"),i=s.length,r="<",o=">";e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(r+"script"+o+"document.F=Object"+r+"/script"+o),t.close(),l=t.F;while(i--)delete l[c][s[i]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(a[c]=i(t),n=new a,a[c]=null,n[o]=t):n=l(),void 0===e?n:r(n,e)}},"2b0e":function(t,e,n){"use strict";(function(t){ +var e={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,n,i){var r=e.words[i];return 1===i.length?n?r[0]:r[1]:t+" "+e.correctGrammaticalCase(t,r)}},n=t.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){var t=["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return t[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mjesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n})},"294c":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"29f6":function(t,e,n){"use strict";e["a"]={POINT:"point",LINE:"line"}},"2a06":function(t,e,n){t.exports=n("d2d5")},"2a70":function(t,e,n){"use strict";e["a"]={name:"QModalLayout",inject:{__qmodal:{default:function(){console.error("QModalLayout needs to be child of QModal")}}},props:{headerStyle:[String,Object,Array],headerClass:[String,Object,Array],contentStyle:[String,Object,Array],contentClass:[String,Object,Array],footerStyle:[String,Object,Array],footerClass:[String,Object,Array]},watch:{__qmodal:function(t,e){e&&e.unregister(this),t&&t.register(this)}},mounted:function(){this.__qmodal&&this.__qmodal.register(this)},beforeDestroy:function(){this.__qmodal&&this.__qmodal.unregister(this)},render:function(t){var e=[];return(this.$slots.header||this.$slots.navigation)&&e.push(t("div",{staticClass:"q-layout-header",style:this.headerStyle,class:this.headerClass},[this.$slots.header,this.$slots.navigation])),e.push(t("div",{staticClass:"q-modal-layout-content col scroll",style:this.contentStyle,class:this.contentClass},this.$slots.default)),this.$slots.footer&&e.push(t("div",{staticClass:"q-layout-footer",style:this.footerStyle,class:this.footerClass},[this.$slots.footer,null])),t("div",{staticClass:"q-modal-layout col column no-wrap"},e)}}},"2aa9":function(t,e,n){"use strict";var i=n("6c3d");if(i)try{i([],"length")}catch(t){i=null}t.exports=i},"2aba":function(t,e,n){var i=n("7726"),r=n("32e9"),s=n("69a8"),o=n("ca5a")("src"),a=n("fa5b"),c="toString",l=(""+a).split(c);n("8378").inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,n,a){var c="function"==typeof n;c&&(s(n,"name")||r(n,"name",e)),t[e]!==n&&(c&&(s(n,o)||r(n,o,t[e]?""+t[e]:l.join(String(e)))),t===i?t[e]=n:a?t[e]?t[e]=n:r(t,e,n):(delete t[e],r(t,e,n)))})(Function.prototype,c,function(){return"function"==typeof this&&this[o]||a.call(this)})},"2ac1":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("fd89"),r=n("cd0e");class s{static toDimensionSymbol(t){switch(t){case s.FALSE:return s.SYM_FALSE;case s.TRUE:return s.SYM_TRUE;case s.DONTCARE:return s.SYM_DONTCARE;case s.P:return s.SYM_P;case s.L:return s.SYM_L;case s.A:return s.SYM_A}throw new i["a"]("Unknown dimension value: "+t)}static toDimensionValue(t){switch(r["a"].toUpperCase(t)){case s.SYM_FALSE:return s.FALSE;case s.SYM_TRUE:return s.TRUE;case s.SYM_DONTCARE:return s.DONTCARE;case s.SYM_P:return s.P;case s.SYM_L:return s.L;case s.SYM_A:return s.A}throw new i["a"]("Unknown dimension symbol: "+t)}}s.P=0,s.L=1,s.A=2,s.FALSE=-1,s.TRUE=-2,s.DONTCARE=-3,s.SYM_FALSE="F",s.SYM_TRUE="T",s.SYM_DONTCARE="*",s.SYM_P="0",s.SYM_L="1",s.SYM_A="2"},"2ac6":function(t,e,n){},"2aeb":function(t,e,n){var i=n("cb7c"),r=n("1495"),s=n("e11e"),o=n("613b")("IE_PROTO"),a=function(){},c="prototype",l=function(){var t,e=n("230e")("iframe"),i=s.length,r="<",o=">";e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(r+"script"+o+"document.F=Object"+r+"/script"+o),t.close(),l=t.F;while(i--)delete l[c][s[i]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(a[c]=i(t),n=new a,a[c]=null,n[o]=t):n=l(),void 0===e?n:r(n,e)}},"2b0e":function(t,e,n){"use strict";(function(t){ /*! * Vue.js v2.5.17 * (c) 2014-2018 Evan You * Released under the MIT License. */ -var n=Object.freeze({});function i(t){return void 0===t||null===t}function r(t){return void 0!==t&&null!==t}function s(t){return!0===t}function o(t){return!1===t}function a(t){return"string"===typeof t||"number"===typeof t||"symbol"===typeof t||"boolean"===typeof t}function c(t){return null!==t&&"object"===typeof t}var l=Object.prototype.toString;function u(t){return"[object Object]"===l.call(t)}function h(t){return"[object RegExp]"===l.call(t)}function d(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function f(t){return null==t?"":"object"===typeof t?JSON.stringify(t,null,2):String(t)}function p(t){var e=parseFloat(t);return isNaN(e)?t:e}function _(t,e){for(var n=Object.create(null),i=t.split(","),r=0;r-1)return t.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function v(t,e){return y.call(t,e)}function b(t){var e=Object.create(null);return function(n){var i=e[n];return i||(e[n]=t(n))}}var M=/-(\w)/g,w=b(function(t){return t.replace(M,function(t,e){return e?e.toUpperCase():""})}),x=b(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),L=/\B([A-Z])/g,E=b(function(t){return t.replace(L,"-$1").toLowerCase()});function T(t,e){function n(n){var i=arguments.length;return i?i>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function S(t,e){return t.bind(e)}var O=Function.prototype.bind?S:T;function k(t,e){e=e||0;var n=t.length-e,i=new Array(n);while(n--)i[n]=t[n+e];return i}function C(t,e){for(var n in e)t[n]=e[n];return t}function I(t){for(var e={},n=0;n0,tt=Z&&Z.indexOf("edge/")>0,et=(Z&&Z.indexOf("android"),Z&&/iphone|ipad|ipod|ios/.test(Z)||"ios"===K),nt=(Z&&/chrome\/\d+/.test(Z),{}.watch),it=!1;if(V)try{var rt={};Object.defineProperty(rt,"passive",{get:function(){it=!0}}),window.addEventListener("test-passive",null,rt)}catch(t){}var st=function(){return void 0===W&&(W=!V&&!X&&"undefined"!==typeof t&&"server"===t["process"].env.VUE_ENV),W},ot=V&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function at(t){return"function"===typeof t&&/native code/.test(t.toString())}var ct,lt="undefined"!==typeof Symbol&&at(Symbol)&&"undefined"!==typeof Reflect&&at(Reflect.ownKeys);ct="undefined"!==typeof Set&&at(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ut=D,ht=0,dt=function(){this.id=ht++,this.subs=[]};dt.prototype.addSub=function(t){this.subs.push(t)},dt.prototype.removeSub=function(t){g(this.subs,t)},dt.prototype.depend=function(){dt.target&&dt.target.addDep(this)},dt.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;e-1)if(s&&!v(r,"default"))o=!1;else if(""===o||o===E(t)){var c=Kt(String,r.type);(c<0||a0&&(o=Le(o,(e||"")+"_"+n),xe(o[0])&&xe(l)&&(u[c]=vt(l.text+o[0].text),o.shift()),u.push.apply(u,o)):a(o)?xe(l)?u[c]=vt(l.text+o):""!==o&&u.push(vt(o)):xe(o)&&xe(l)?u[c]=vt(l.text+o.text):(s(t._isVList)&&r(o.tag)&&i(o.key)&&r(e)&&(o.key="__vlist"+e+"_"+n+"__"),u.push(o)));return u}function Ee(t,e){return(t.__esModule||lt&&"Module"===t[Symbol.toStringTag])&&(t=t.default),c(t)?e.extend(t):t}function Te(t,e,n,i,r){var s=yt();return s.asyncFactory=t,s.asyncMeta={data:e,context:n,children:i,tag:r},s}function Se(t,e,n){if(s(t.error)&&r(t.errorComp))return t.errorComp;if(r(t.resolved))return t.resolved;if(s(t.loading)&&r(t.loadingComp))return t.loadingComp;if(!r(t.contexts)){var o=t.contexts=[n],a=!0,l=function(){for(var t=0,e=o.length;t1?k(n):n;for(var i=k(arguments,1),r=0,s=n.length;rJe&&$e[n].id>t.id)n--;$e.splice(n+1,0,t)}else $e.push(t);Ke||(Ke=!0,ue(tn))}}var on=0,an=function(t,e,n,i,r){this.vm=t,r&&(t._watcher=this),t._watchers.push(this),i?(this.deep=!!i.deep,this.user=!!i.user,this.lazy=!!i.lazy,this.sync=!!i.sync):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++on,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ct,this.newDepIds=new ct,this.expression="","function"===typeof e?this.getter=e:(this.getter=U(e),this.getter||(this.getter=function(){})),this.value=this.lazy?void 0:this.get()};an.prototype.get=function(){var t;pt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;Zt(t,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&de(t),_t(),this.cleanupDeps()}return t},an.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},an.prototype.cleanupDeps=function(){var t=this,e=this.deps.length;while(e--){var n=t.deps[e];t.newDepIds.has(n.id)||n.removeSub(t)}var i=this.depIds;this.depIds=this.newDepIds,this.newDepIds=i,this.newDepIds.clear(),i=this.deps,this.deps=this.newDeps,this.newDeps=i,this.newDeps.length=0},an.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():sn(this)},an.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||c(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){Zt(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},an.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},an.prototype.depend=function(){var t=this,e=this.deps.length;while(e--)t.deps[e].depend()},an.prototype.teardown=function(){var t=this;if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);var e=this.deps.length;while(e--)t.deps[e].removeSub(t);this.active=!1}};var cn={enumerable:!0,configurable:!0,get:D,set:D};function ln(t,e,n){cn.get=function(){return this[e][n]},cn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,cn)}function un(t){t._watchers=[];var e=t.$options;e.props&&hn(t,e.props),e.methods&&yn(t,e.methods),e.data?dn(t):Ct(t._data={},!0),e.computed&&_n(t,e.computed),e.watch&&e.watch!==nt&&vn(t,e.watch)}function hn(t,e){var n=t.$options.propsData||{},i=t._props={},r=t.$options._propKeys=[],s=!t.$parent;s||Tt(!1);var o=function(s){r.push(s);var o=Wt(s,e,n,t);It(i,s,o),s in t||ln(t,"_props",s)};for(var a in e)o(a);Tt(!0)}function dn(t){var e=t.$options.data;e=t._data="function"===typeof e?fn(e,t):e||{},u(e)||(e={});var n=Object.keys(e),i=t.$options.props,r=(t.$options.methods,n.length);while(r--){var s=n[r];0,i&&v(i,s)||G(s)||ln(t,"_data",s)}Ct(e,!0)}function fn(t,e){pt();try{return t.call(e,e)}catch(t){return Zt(t,e,"data()"),{}}finally{_t()}}var pn={lazy:!0};function _n(t,e){var n=t._computedWatchers=Object.create(null),i=st();for(var r in e){var s=e[r],o="function"===typeof s?s:s.get;0,i||(n[r]=new an(t,o||D,D,pn)),r in t||mn(t,r,s)}}function mn(t,e,n){var i=!st();"function"===typeof n?(cn.get=i?gn(e):n,cn.set=D):(cn.get=n.get?i&&!1!==n.cache?gn(e):n.get:D,cn.set=n.set?n.set:D),Object.defineProperty(t,e,cn)}function gn(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),dt.target&&e.depend(),e.value}}function yn(t,e){t.$options.props;for(var n in e)t[n]=null==e[n]?D:O(e[n],t)}function vn(t,e){for(var n in e){var i=e[n];if(Array.isArray(i))for(var r=0;r=0||n.indexOf(t[r])<0)&&i.push(t[r]);return i}return t}function ai(t){this._init(t)}function ci(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=k(arguments,1);return n.unshift(this),"function"===typeof t.install?t.install.apply(t,n):"function"===typeof t&&t.apply(null,n),e.push(t),this}}function li(t){t.mixin=function(t){return this.options=Bt(this.options,t),this}}function ui(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,i=n.cid,r=t._Ctor||(t._Ctor={});if(r[i])return r[i];var s=t.name||n.options.name;var o=function(t){this._init(t)};return o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.cid=e++,o.options=Bt(n.options,t),o["super"]=n,o.options.props&&hi(o),o.options.computed&&di(o),o.extend=n.extend,o.mixin=n.mixin,o.use=n.use,F.forEach(function(t){o[t]=n[t]}),s&&(o.options.components[s]=o),o.superOptions=n.options,o.extendOptions=t,o.sealedOptions=C({},o.options),r[i]=o,o}}function hi(t){var e=t.options.props;for(var n in e)ln(t.prototype,"_props",n)}function di(t){var e=t.options.computed;for(var n in e)mn(t.prototype,n,e[n])}function fi(t){F.forEach(function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"===typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}function pi(t){return t&&(t.Ctor.options.name||t.tag)}function _i(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!h(t)&&t.test(e)}function mi(t,e){var n=t.cache,i=t.keys,r=t._vnode;for(var s in n){var o=n[s];if(o){var a=pi(o.componentOptions);a&&!e(a)&&gi(n,s,i,r)}}}function gi(t,e,n,i){var r=t[e];!r||i&&r.tag===i.tag||r.componentInstance.$destroy(),t[e]=null,g(n,e)}ni(ai),Mn(ai),Ae(ai),He(ai),ti(ai);var yi=[String,RegExp,Array],vi={name:"keep-alive",abstract:!0,props:{include:yi,exclude:yi,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){var t=this;for(var e in t.cache)gi(t.cache,e,t.keys)},mounted:function(){var t=this;this.$watch("include",function(e){mi(t,function(t){return _i(e,t)})}),this.$watch("exclude",function(e){mi(t,function(t){return!_i(e,t)})})},render:function(){var t=this.$slots.default,e=ke(t),n=e&&e.componentOptions;if(n){var i=pi(n),r=this,s=r.include,o=r.exclude;if(s&&(!i||!_i(s,i))||o&&i&&_i(o,i))return e;var a=this,c=a.cache,l=a.keys,u=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;c[u]?(e.componentInstance=c[u].componentInstance,g(l,u),l.push(u)):(c[u]=e,l.push(u),this.max&&l.length>parseInt(this.max)&&gi(c,l[0],l,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},bi={KeepAlive:vi};function Mi(t){var e={get:function(){return q}};Object.defineProperty(t,"config",e),t.util={warn:ut,extend:C,mergeOptions:Bt,defineReactive:It},t.set=Dt,t.delete=Rt,t.nextTick=ue,t.options=Object.create(null),F.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,C(t.options.components,bi),ci(t),li(t),ui(t),fi(t)}Mi(ai),Object.defineProperty(ai.prototype,"$isServer",{get:st}),Object.defineProperty(ai.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(ai,"FunctionalRenderContext",{value:Pn}),ai.version="2.5.17";var wi=_("style,class"),xi=_("input,textarea,option,select,progress"),Li=function(t,e,n){return"value"===n&&xi(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Ei=_("contenteditable,draggable,spellcheck"),Ti=_("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Si="http://www.w3.org/1999/xlink",Oi=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},ki=function(t){return Oi(t)?t.slice(6,t.length):""},Ci=function(t){return null==t||!1===t};function Ii(t){var e=t.data,n=t,i=t;while(r(i.componentInstance))i=i.componentInstance._vnode,i&&i.data&&(e=Di(i.data,e));while(r(n=n.parent))n&&n.data&&(e=Di(e,n.data));return Ri(e.staticClass,e.class)}function Di(t,e){return{staticClass:Ai(t.staticClass,e.staticClass),class:r(t.class)?[t.class,e.class]:e.class}}function Ri(t,e){return r(t)||r(e)?Ai(t,Ni(e)):""}function Ai(t,e){return t?e?t+" "+e:t:e||""}function Ni(t){return Array.isArray(t)?Yi(t):c(t)?Pi(t):"string"===typeof t?t:""}function Yi(t){for(var e,n="",i=0,s=t.length;i-1?zi[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:zi[t]=/HTMLUnknownElement/.test(e.toString())}var Ui=_("text,number,password,search,email,tel,url");function Wi(t){if("string"===typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function $i(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)}function Vi(t,e){return document.createElementNS(ji[t],e)}function Xi(t){return document.createTextNode(t)}function Ki(t){return document.createComment(t)}function Zi(t,e,n){t.insertBefore(e,n)}function Ji(t,e){t.removeChild(e)}function Qi(t,e){t.appendChild(e)}function tr(t){return t.parentNode}function er(t){return t.nextSibling}function nr(t){return t.tagName}function ir(t,e){t.textContent=e}function rr(t,e){t.setAttribute(e,"")}var sr=Object.freeze({createElement:$i,createElementNS:Vi,createTextNode:Xi,createComment:Ki,insertBefore:Zi,removeChild:Ji,appendChild:Qi,parentNode:tr,nextSibling:er,tagName:nr,setTextContent:ir,setStyleScope:rr}),or={create:function(t,e){ar(e)},update:function(t,e){t.data.ref!==e.data.ref&&(ar(t,!0),ar(e))},destroy:function(t){ar(t,!0)}};function ar(t,e){var n=t.data.ref;if(r(n)){var i=t.context,s=t.componentInstance||t.elm,o=i.$refs;e?Array.isArray(o[n])?g(o[n],s):o[n]===s&&(o[n]=void 0):t.data.refInFor?Array.isArray(o[n])?o[n].indexOf(s)<0&&o[n].push(s):o[n]=[s]:o[n]=s}}var cr=new mt("",{},[]),lr=["create","activate","update","remove","destroy"];function ur(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&r(t.data)===r(e.data)&&hr(t,e)||s(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&i(e.asyncFactory.error))}function hr(t,e){if("input"!==t.tag)return!0;var n,i=r(n=t.data)&&r(n=n.attrs)&&n.type,s=r(n=e.data)&&r(n=n.attrs)&&n.type;return i===s||Ui(i)&&Ui(s)}function dr(t,e,n){var i,s,o={};for(i=e;i<=n;++i)s=t[i].key,r(s)&&(o[s]=i);return o}function fr(t){var e,n,o={},c=t.modules,l=t.nodeOps;for(e=0;e_?(h=i(n[y+1])?null:n[y+1].elm,x(t,h,n,p,y,s)):p>y&&E(t,e,d,_)}function O(t,e,n,i){for(var s=n;s-1?Lr(t,e,n):Ti(e)?Ci(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Ei(e)?t.setAttribute(e,Ci(n)||"false"===n?"false":"true"):Oi(e)?Ci(n)?t.removeAttributeNS(Si,ki(e)):t.setAttributeNS(Si,e,n):Lr(t,e,n)}function Lr(t,e,n){if(Ci(n))t.removeAttribute(e);else{if(J&&!Q&&"TEXTAREA"===t.tagName&&"placeholder"===e&&!t.__ieph){var i=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",i)};t.addEventListener("input",i),t.__ieph=!0}t.setAttribute(e,n)}}var Er={create:wr,update:wr};function Tr(t,e){var n=e.elm,s=e.data,o=t.data;if(!(i(s.staticClass)&&i(s.class)&&(i(o)||i(o.staticClass)&&i(o.class)))){var a=Ii(e),c=n._transitionClasses;r(c)&&(a=Ai(a,Ni(c))),a!==n._prevClass&&(n.setAttribute("class",a),n._prevClass=a)}}var Sr,Or={create:Tr,update:Tr},kr="__r",Cr="__c";function Ir(t){if(r(t[kr])){var e=J?"change":"input";t[e]=[].concat(t[kr],t[e]||[]),delete t[kr]}r(t[Cr])&&(t.change=[].concat(t[Cr],t.change||[]),delete t[Cr])}function Dr(t,e,n){var i=Sr;return function r(){var s=t.apply(null,arguments);null!==s&&Ar(e,r,n,i)}}function Rr(t,e,n,i,r){e=le(e),n&&(e=Dr(e,t,i)),Sr.addEventListener(t,e,it?{capture:i,passive:r}:i)}function Ar(t,e,n,i){(i||Sr).removeEventListener(t,e._withTask||e,n)}function Nr(t,e){if(!i(t.data.on)||!i(e.data.on)){var n=e.data.on||{},r=t.data.on||{};Sr=e.elm,Ir(n),ge(n,r,Rr,Ar,e.context),Sr=void 0}}var Yr={create:Nr,update:Nr};function Pr(t,e){if(!i(t.data.domProps)||!i(e.data.domProps)){var n,s,o=e.elm,a=t.data.domProps||{},c=e.data.domProps||{};for(n in r(c.__ob__)&&(c=e.data.domProps=C({},c)),a)i(c[n])&&(o[n]="");for(n in c){if(s=c[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),s===a[n])continue;1===o.childNodes.length&&o.removeChild(o.childNodes[0])}if("value"===n){o._value=s;var l=i(s)?"":String(s);jr(o,l)&&(o.value=l)}else o[n]=s}}}function jr(t,e){return!t.composing&&("OPTION"===t.tagName||Fr(t,e)||Hr(t,e))}function Fr(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}function Hr(t,e){var n=t.value,i=t._vModifiers;if(r(i)){if(i.lazy)return!1;if(i.number)return p(n)!==p(e);if(i.trim)return n.trim()!==e.trim()}return n!==e}var qr={create:Pr,update:Pr},Gr=b(function(t){var e={},n=/;(?![^(]*\))/g,i=/:(.+)/;return t.split(n).forEach(function(t){if(t){var n=t.split(i);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e});function zr(t){var e=Br(t.style);return t.staticStyle?C(t.staticStyle,e):e}function Br(t){return Array.isArray(t)?I(t):"string"===typeof t?Gr(t):t}function Ur(t,e){var n,i={};if(e){var r=t;while(r.componentInstance)r=r.componentInstance._vnode,r&&r.data&&(n=zr(r.data))&&C(i,n)}(n=zr(t.data))&&C(i,n);var s=t;while(s=s.parent)s.data&&(n=zr(s.data))&&C(i,n);return i}var Wr,$r=/^--/,Vr=/\s*!important$/,Xr=function(t,e,n){if($r.test(e))t.style.setProperty(e,n);else if(Vr.test(n))t.style.setProperty(e,n.replace(Vr,""),"important");else{var i=Zr(e);if(Array.isArray(n))for(var r=0,s=n.length;r-1?e.split(/\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function es(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{var n=" "+(t.getAttribute("class")||"")+" ",i=" "+e+" ";while(n.indexOf(i)>=0)n=n.replace(i," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function ns(t){if(t){if("object"===typeof t){var e={};return!1!==t.css&&C(e,is(t.name||"v")),C(e,t),e}return"string"===typeof t?is(t):void 0}}var is=b(function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}}),rs=V&&!Q,ss="transition",os="animation",as="transition",cs="transitionend",ls="animation",us="animationend";rs&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(as="WebkitTransition",cs="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(ls="WebkitAnimation",us="webkitAnimationEnd"));var hs=V?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function ds(t){hs(function(){hs(t)})}function fs(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),ts(t,e))}function ps(t,e){t._transitionClasses&&g(t._transitionClasses,e),es(t,e)}function _s(t,e,n){var i=gs(t,e),r=i.type,s=i.timeout,o=i.propCount;if(!r)return n();var a=r===ss?cs:us,c=0,l=function(){t.removeEventListener(a,u),n()},u=function(e){e.target===t&&++c>=o&&l()};setTimeout(function(){c0&&(n=ss,u=o,h=s.length):e===os?l>0&&(n=os,u=l,h=c.length):(u=Math.max(o,l),n=u>0?o>l?ss:os:null,h=n?n===ss?s.length:c.length:0);var d=n===ss&&ms.test(i[as+"Property"]);return{type:n,timeout:u,propCount:h,hasTransform:d}}function ys(t,e){while(t.length1}function Ls(t,e){!0!==e.data.show&&bs(e)}var Es=V?{create:Ls,activate:Ls,remove:function(t,e){!0!==t.data.show?Ms(t,e):e()}}:{},Ts=[Er,Or,Yr,qr,Qr,Es],Ss=Ts.concat(Mr),Os=fr({nodeOps:sr,modules:Ss});Q&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&Ys(t,"input")});var ks={inserted:function(t,e,n,i){"select"===n.tag?(i.elm&&!i.elm._vOptions?ye(n,"postpatch",function(){ks.componentUpdated(t,e,n)}):Cs(t,e,n.context),t._vOptions=[].map.call(t.options,Rs)):("textarea"===n.tag||Ui(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",As),t.addEventListener("compositionend",Ns),t.addEventListener("change",Ns),Q&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){Cs(t,e,n.context);var i=t._vOptions,r=t._vOptions=[].map.call(t.options,Rs);if(r.some(function(t,e){return!N(t,i[e])})){var s=t.multiple?e.value.some(function(t){return Ds(t,r)}):e.value!==e.oldValue&&Ds(e.value,r);s&&Ys(t,"change")}}}};function Cs(t,e,n){Is(t,e,n),(J||tt)&&setTimeout(function(){Is(t,e,n)},0)}function Is(t,e,n){var i=e.value,r=t.multiple;if(!r||Array.isArray(i)){for(var s,o,a=0,c=t.options.length;a-1,o.selected!==s&&(o.selected=s);else if(N(Rs(o),i))return void(t.selectedIndex!==a&&(t.selectedIndex=a));r||(t.selectedIndex=-1)}}function Ds(t,e){return e.every(function(e){return!N(e,t)})}function Rs(t){return"_value"in t?t._value:t.value}function As(t){t.target.composing=!0}function Ns(t){t.target.composing&&(t.target.composing=!1,Ys(t.target,"input"))}function Ys(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Ps(t){return!t.componentInstance||t.data&&t.data.transition?t:Ps(t.componentInstance._vnode)}var js={bind:function(t,e,n){var i=e.value;n=Ps(n);var r=n.data&&n.data.transition,s=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;i&&r?(n.data.show=!0,bs(n,function(){t.style.display=s})):t.style.display=i?s:"none"},update:function(t,e,n){var i=e.value,r=e.oldValue;if(!i!==!r){n=Ps(n);var s=n.data&&n.data.transition;s?(n.data.show=!0,i?bs(n,function(){t.style.display=t.__vOriginalDisplay}):Ms(n,function(){t.style.display="none"})):t.style.display=i?t.__vOriginalDisplay:"none"}},unbind:function(t,e,n,i,r){r||(t.style.display=t.__vOriginalDisplay)}},Fs={model:ks,show:js},Hs={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function qs(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?qs(ke(e.children)):t}function Gs(t){var e={},n=t.$options;for(var i in n.propsData)e[i]=t[i];var r=n._parentListeners;for(var s in r)e[w(s)]=r[s];return e}function zs(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function Bs(t){while(t=t.parent)if(t.data.transition)return!0}function Us(t,e){return e.key===t.key&&e.tag===t.tag}var Ws={name:"transition",props:Hs,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(function(t){return t.tag||Oe(t)}),n.length)){0;var i=this.mode;0;var r=n[0];if(Bs(this.$vnode))return r;var s=qs(r);if(!s)return r;if(this._leaving)return zs(t,r);var o="__transition-"+this._uid+"-";s.key=null==s.key?s.isComment?o+"comment":o+s.tag:a(s.key)?0===String(s.key).indexOf(o)?s.key:o+s.key:s.key;var c=(s.data||(s.data={})).transition=Gs(this),l=this._vnode,u=qs(l);if(s.data.directives&&s.data.directives.some(function(t){return"show"===t.name})&&(s.data.show=!0),u&&u.data&&!Us(s,u)&&!Oe(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var h=u.data.transition=C({},c);if("out-in"===i)return this._leaving=!0,ye(h,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),zs(t,r);if("in-out"===i){if(Oe(s))return l;var d,f=function(){d()};ye(c,"afterEnter",f),ye(c,"enterCancelled",f),ye(h,"delayLeave",function(t){d=t})}}return r}}},$s=C({tag:String,moveClass:String},Hs);delete $s.mode;var Vs={props:$s,render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),i=this.prevChildren=this.children,r=this.$slots.default||[],s=this.children=[],o=Gs(this),a=0;a=0&&Math.floor(e)===e&&isFinite(t)}function f(t){return null==t?"":"object"===typeof t?JSON.stringify(t,null,2):String(t)}function p(t){var e=parseFloat(t);return isNaN(e)?t:e}function _(t,e){for(var n=Object.create(null),i=t.split(","),r=0;r-1)return t.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function v(t,e){return y.call(t,e)}function b(t){var e=Object.create(null);return function(n){var i=e[n];return i||(e[n]=t(n))}}var M=/-(\w)/g,w=b(function(t){return t.replace(M,function(t,e){return e?e.toUpperCase():""})}),x=b(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),L=/\B([A-Z])/g,E=b(function(t){return t.replace(L,"-$1").toLowerCase()});function T(t,e){function n(n){var i=arguments.length;return i?i>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function S(t,e){return t.bind(e)}var O=Function.prototype.bind?S:T;function k(t,e){e=e||0;var n=t.length-e,i=new Array(n);while(n--)i[n]=t[n+e];return i}function C(t,e){for(var n in e)t[n]=e[n];return t}function I(t){for(var e={},n=0;n0,tt=J&&J.indexOf("edge/")>0,et=(J&&J.indexOf("android"),J&&/iphone|ipad|ipod|ios/.test(J)||"ios"===K),nt=(J&&/chrome\/\d+/.test(J),{}.watch),it=!1;if(V)try{var rt={};Object.defineProperty(rt,"passive",{get:function(){it=!0}}),window.addEventListener("test-passive",null,rt)}catch(t){}var st=function(){return void 0===W&&(W=!V&&!X&&"undefined"!==typeof t&&"server"===t["process"].env.VUE_ENV),W},ot=V&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function at(t){return"function"===typeof t&&/native code/.test(t.toString())}var ct,lt="undefined"!==typeof Symbol&&at(Symbol)&&"undefined"!==typeof Reflect&&at(Reflect.ownKeys);ct="undefined"!==typeof Set&&at(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ut=D,ht=0,dt=function(){this.id=ht++,this.subs=[]};dt.prototype.addSub=function(t){this.subs.push(t)},dt.prototype.removeSub=function(t){g(this.subs,t)},dt.prototype.depend=function(){dt.target&&dt.target.addDep(this)},dt.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;e-1)if(s&&!v(r,"default"))o=!1;else if(""===o||o===E(t)){var c=Kt(String,r.type);(c<0||a0&&(o=Le(o,(e||"")+"_"+n),xe(o[0])&&xe(l)&&(u[c]=vt(l.text+o[0].text),o.shift()),u.push.apply(u,o)):a(o)?xe(l)?u[c]=vt(l.text+o):""!==o&&u.push(vt(o)):xe(o)&&xe(l)?u[c]=vt(l.text+o.text):(s(t._isVList)&&r(o.tag)&&i(o.key)&&r(e)&&(o.key="__vlist"+e+"_"+n+"__"),u.push(o)));return u}function Ee(t,e){return(t.__esModule||lt&&"Module"===t[Symbol.toStringTag])&&(t=t.default),c(t)?e.extend(t):t}function Te(t,e,n,i,r){var s=yt();return s.asyncFactory=t,s.asyncMeta={data:e,context:n,children:i,tag:r},s}function Se(t,e,n){if(s(t.error)&&r(t.errorComp))return t.errorComp;if(r(t.resolved))return t.resolved;if(s(t.loading)&&r(t.loadingComp))return t.loadingComp;if(!r(t.contexts)){var o=t.contexts=[n],a=!0,l=function(){for(var t=0,e=o.length;t1?k(n):n;for(var i=k(arguments,1),r=0,s=n.length;rZe&&$e[n].id>t.id)n--;$e.splice(n+1,0,t)}else $e.push(t);Ke||(Ke=!0,ue(tn))}}var on=0,an=function(t,e,n,i,r){this.vm=t,r&&(t._watcher=this),t._watchers.push(this),i?(this.deep=!!i.deep,this.user=!!i.user,this.lazy=!!i.lazy,this.sync=!!i.sync):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++on,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ct,this.newDepIds=new ct,this.expression="","function"===typeof e?this.getter=e:(this.getter=U(e),this.getter||(this.getter=function(){})),this.value=this.lazy?void 0:this.get()};an.prototype.get=function(){var t;pt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;Jt(t,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&de(t),_t(),this.cleanupDeps()}return t},an.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},an.prototype.cleanupDeps=function(){var t=this,e=this.deps.length;while(e--){var n=t.deps[e];t.newDepIds.has(n.id)||n.removeSub(t)}var i=this.depIds;this.depIds=this.newDepIds,this.newDepIds=i,this.newDepIds.clear(),i=this.deps,this.deps=this.newDeps,this.newDeps=i,this.newDeps.length=0},an.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():sn(this)},an.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||c(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){Jt(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},an.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},an.prototype.depend=function(){var t=this,e=this.deps.length;while(e--)t.deps[e].depend()},an.prototype.teardown=function(){var t=this;if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);var e=this.deps.length;while(e--)t.deps[e].removeSub(t);this.active=!1}};var cn={enumerable:!0,configurable:!0,get:D,set:D};function ln(t,e,n){cn.get=function(){return this[e][n]},cn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,cn)}function un(t){t._watchers=[];var e=t.$options;e.props&&hn(t,e.props),e.methods&&yn(t,e.methods),e.data?dn(t):Ct(t._data={},!0),e.computed&&_n(t,e.computed),e.watch&&e.watch!==nt&&vn(t,e.watch)}function hn(t,e){var n=t.$options.propsData||{},i=t._props={},r=t.$options._propKeys=[],s=!t.$parent;s||Tt(!1);var o=function(s){r.push(s);var o=Wt(s,e,n,t);It(i,s,o),s in t||ln(t,"_props",s)};for(var a in e)o(a);Tt(!0)}function dn(t){var e=t.$options.data;e=t._data="function"===typeof e?fn(e,t):e||{},u(e)||(e={});var n=Object.keys(e),i=t.$options.props,r=(t.$options.methods,n.length);while(r--){var s=n[r];0,i&&v(i,s)||q(s)||ln(t,"_data",s)}Ct(e,!0)}function fn(t,e){pt();try{return t.call(e,e)}catch(t){return Jt(t,e,"data()"),{}}finally{_t()}}var pn={lazy:!0};function _n(t,e){var n=t._computedWatchers=Object.create(null),i=st();for(var r in e){var s=e[r],o="function"===typeof s?s:s.get;0,i||(n[r]=new an(t,o||D,D,pn)),r in t||mn(t,r,s)}}function mn(t,e,n){var i=!st();"function"===typeof n?(cn.get=i?gn(e):n,cn.set=D):(cn.get=n.get?i&&!1!==n.cache?gn(e):n.get:D,cn.set=n.set?n.set:D),Object.defineProperty(t,e,cn)}function gn(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),dt.target&&e.depend(),e.value}}function yn(t,e){t.$options.props;for(var n in e)t[n]=null==e[n]?D:O(e[n],t)}function vn(t,e){for(var n in e){var i=e[n];if(Array.isArray(i))for(var r=0;r=0||n.indexOf(t[r])<0)&&i.push(t[r]);return i}return t}function ai(t){this._init(t)}function ci(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=k(arguments,1);return n.unshift(this),"function"===typeof t.install?t.install.apply(t,n):"function"===typeof t&&t.apply(null,n),e.push(t),this}}function li(t){t.mixin=function(t){return this.options=Bt(this.options,t),this}}function ui(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,i=n.cid,r=t._Ctor||(t._Ctor={});if(r[i])return r[i];var s=t.name||n.options.name;var o=function(t){this._init(t)};return o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.cid=e++,o.options=Bt(n.options,t),o["super"]=n,o.options.props&&hi(o),o.options.computed&&di(o),o.extend=n.extend,o.mixin=n.mixin,o.use=n.use,F.forEach(function(t){o[t]=n[t]}),s&&(o.options.components[s]=o),o.superOptions=n.options,o.extendOptions=t,o.sealedOptions=C({},o.options),r[i]=o,o}}function hi(t){var e=t.options.props;for(var n in e)ln(t.prototype,"_props",n)}function di(t){var e=t.options.computed;for(var n in e)mn(t.prototype,n,e[n])}function fi(t){F.forEach(function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"===typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}function pi(t){return t&&(t.Ctor.options.name||t.tag)}function _i(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!h(t)&&t.test(e)}function mi(t,e){var n=t.cache,i=t.keys,r=t._vnode;for(var s in n){var o=n[s];if(o){var a=pi(o.componentOptions);a&&!e(a)&&gi(n,s,i,r)}}}function gi(t,e,n,i){var r=t[e];!r||i&&r.tag===i.tag||r.componentInstance.$destroy(),t[e]=null,g(n,e)}ni(ai),Mn(ai),Ae(ai),He(ai),ti(ai);var yi=[String,RegExp,Array],vi={name:"keep-alive",abstract:!0,props:{include:yi,exclude:yi,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){var t=this;for(var e in t.cache)gi(t.cache,e,t.keys)},mounted:function(){var t=this;this.$watch("include",function(e){mi(t,function(t){return _i(e,t)})}),this.$watch("exclude",function(e){mi(t,function(t){return!_i(e,t)})})},render:function(){var t=this.$slots.default,e=ke(t),n=e&&e.componentOptions;if(n){var i=pi(n),r=this,s=r.include,o=r.exclude;if(s&&(!i||!_i(s,i))||o&&i&&_i(o,i))return e;var a=this,c=a.cache,l=a.keys,u=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;c[u]?(e.componentInstance=c[u].componentInstance,g(l,u),l.push(u)):(c[u]=e,l.push(u),this.max&&l.length>parseInt(this.max)&&gi(c,l[0],l,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},bi={KeepAlive:vi};function Mi(t){var e={get:function(){return G}};Object.defineProperty(t,"config",e),t.util={warn:ut,extend:C,mergeOptions:Bt,defineReactive:It},t.set=Dt,t.delete=Rt,t.nextTick=ue,t.options=Object.create(null),F.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,C(t.options.components,bi),ci(t),li(t),ui(t),fi(t)}Mi(ai),Object.defineProperty(ai.prototype,"$isServer",{get:st}),Object.defineProperty(ai.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(ai,"FunctionalRenderContext",{value:Pn}),ai.version="2.5.17";var wi=_("style,class"),xi=_("input,textarea,option,select,progress"),Li=function(t,e,n){return"value"===n&&xi(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Ei=_("contenteditable,draggable,spellcheck"),Ti=_("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Si="http://www.w3.org/1999/xlink",Oi=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},ki=function(t){return Oi(t)?t.slice(6,t.length):""},Ci=function(t){return null==t||!1===t};function Ii(t){var e=t.data,n=t,i=t;while(r(i.componentInstance))i=i.componentInstance._vnode,i&&i.data&&(e=Di(i.data,e));while(r(n=n.parent))n&&n.data&&(e=Di(e,n.data));return Ri(e.staticClass,e.class)}function Di(t,e){return{staticClass:Ai(t.staticClass,e.staticClass),class:r(t.class)?[t.class,e.class]:e.class}}function Ri(t,e){return r(t)||r(e)?Ai(t,Ni(e)):""}function Ai(t,e){return t?e?t+" "+e:t:e||""}function Ni(t){return Array.isArray(t)?Yi(t):c(t)?Pi(t):"string"===typeof t?t:""}function Yi(t){for(var e,n="",i=0,s=t.length;i-1?zi[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:zi[t]=/HTMLUnknownElement/.test(e.toString())}var Ui=_("text,number,password,search,email,tel,url");function Wi(t){if("string"===typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function $i(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)}function Vi(t,e){return document.createElementNS(ji[t],e)}function Xi(t){return document.createTextNode(t)}function Ki(t){return document.createComment(t)}function Ji(t,e,n){t.insertBefore(e,n)}function Zi(t,e){t.removeChild(e)}function Qi(t,e){t.appendChild(e)}function tr(t){return t.parentNode}function er(t){return t.nextSibling}function nr(t){return t.tagName}function ir(t,e){t.textContent=e}function rr(t,e){t.setAttribute(e,"")}var sr=Object.freeze({createElement:$i,createElementNS:Vi,createTextNode:Xi,createComment:Ki,insertBefore:Ji,removeChild:Zi,appendChild:Qi,parentNode:tr,nextSibling:er,tagName:nr,setTextContent:ir,setStyleScope:rr}),or={create:function(t,e){ar(e)},update:function(t,e){t.data.ref!==e.data.ref&&(ar(t,!0),ar(e))},destroy:function(t){ar(t,!0)}};function ar(t,e){var n=t.data.ref;if(r(n)){var i=t.context,s=t.componentInstance||t.elm,o=i.$refs;e?Array.isArray(o[n])?g(o[n],s):o[n]===s&&(o[n]=void 0):t.data.refInFor?Array.isArray(o[n])?o[n].indexOf(s)<0&&o[n].push(s):o[n]=[s]:o[n]=s}}var cr=new mt("",{},[]),lr=["create","activate","update","remove","destroy"];function ur(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&r(t.data)===r(e.data)&&hr(t,e)||s(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&i(e.asyncFactory.error))}function hr(t,e){if("input"!==t.tag)return!0;var n,i=r(n=t.data)&&r(n=n.attrs)&&n.type,s=r(n=e.data)&&r(n=n.attrs)&&n.type;return i===s||Ui(i)&&Ui(s)}function dr(t,e,n){var i,s,o={};for(i=e;i<=n;++i)s=t[i].key,r(s)&&(o[s]=i);return o}function fr(t){var e,n,o={},c=t.modules,l=t.nodeOps;for(e=0;e_?(h=i(n[y+1])?null:n[y+1].elm,x(t,h,n,p,y,s)):p>y&&E(t,e,d,_)}function O(t,e,n,i){for(var s=n;s-1?Lr(t,e,n):Ti(e)?Ci(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Ei(e)?t.setAttribute(e,Ci(n)||"false"===n?"false":"true"):Oi(e)?Ci(n)?t.removeAttributeNS(Si,ki(e)):t.setAttributeNS(Si,e,n):Lr(t,e,n)}function Lr(t,e,n){if(Ci(n))t.removeAttribute(e);else{if(Z&&!Q&&"TEXTAREA"===t.tagName&&"placeholder"===e&&!t.__ieph){var i=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",i)};t.addEventListener("input",i),t.__ieph=!0}t.setAttribute(e,n)}}var Er={create:wr,update:wr};function Tr(t,e){var n=e.elm,s=e.data,o=t.data;if(!(i(s.staticClass)&&i(s.class)&&(i(o)||i(o.staticClass)&&i(o.class)))){var a=Ii(e),c=n._transitionClasses;r(c)&&(a=Ai(a,Ni(c))),a!==n._prevClass&&(n.setAttribute("class",a),n._prevClass=a)}}var Sr,Or={create:Tr,update:Tr},kr="__r",Cr="__c";function Ir(t){if(r(t[kr])){var e=Z?"change":"input";t[e]=[].concat(t[kr],t[e]||[]),delete t[kr]}r(t[Cr])&&(t.change=[].concat(t[Cr],t.change||[]),delete t[Cr])}function Dr(t,e,n){var i=Sr;return function r(){var s=t.apply(null,arguments);null!==s&&Ar(e,r,n,i)}}function Rr(t,e,n,i,r){e=le(e),n&&(e=Dr(e,t,i)),Sr.addEventListener(t,e,it?{capture:i,passive:r}:i)}function Ar(t,e,n,i){(i||Sr).removeEventListener(t,e._withTask||e,n)}function Nr(t,e){if(!i(t.data.on)||!i(e.data.on)){var n=e.data.on||{},r=t.data.on||{};Sr=e.elm,Ir(n),ge(n,r,Rr,Ar,e.context),Sr=void 0}}var Yr={create:Nr,update:Nr};function Pr(t,e){if(!i(t.data.domProps)||!i(e.data.domProps)){var n,s,o=e.elm,a=t.data.domProps||{},c=e.data.domProps||{};for(n in r(c.__ob__)&&(c=e.data.domProps=C({},c)),a)i(c[n])&&(o[n]="");for(n in c){if(s=c[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),s===a[n])continue;1===o.childNodes.length&&o.removeChild(o.childNodes[0])}if("value"===n){o._value=s;var l=i(s)?"":String(s);jr(o,l)&&(o.value=l)}else o[n]=s}}}function jr(t,e){return!t.composing&&("OPTION"===t.tagName||Fr(t,e)||Hr(t,e))}function Fr(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}function Hr(t,e){var n=t.value,i=t._vModifiers;if(r(i)){if(i.lazy)return!1;if(i.number)return p(n)!==p(e);if(i.trim)return n.trim()!==e.trim()}return n!==e}var Gr={create:Pr,update:Pr},qr=b(function(t){var e={},n=/;(?![^(]*\))/g,i=/:(.+)/;return t.split(n).forEach(function(t){if(t){var n=t.split(i);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e});function zr(t){var e=Br(t.style);return t.staticStyle?C(t.staticStyle,e):e}function Br(t){return Array.isArray(t)?I(t):"string"===typeof t?qr(t):t}function Ur(t,e){var n,i={};if(e){var r=t;while(r.componentInstance)r=r.componentInstance._vnode,r&&r.data&&(n=zr(r.data))&&C(i,n)}(n=zr(t.data))&&C(i,n);var s=t;while(s=s.parent)s.data&&(n=zr(s.data))&&C(i,n);return i}var Wr,$r=/^--/,Vr=/\s*!important$/,Xr=function(t,e,n){if($r.test(e))t.style.setProperty(e,n);else if(Vr.test(n))t.style.setProperty(e,n.replace(Vr,""),"important");else{var i=Jr(e);if(Array.isArray(n))for(var r=0,s=n.length;r-1?e.split(/\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function es(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{var n=" "+(t.getAttribute("class")||"")+" ",i=" "+e+" ";while(n.indexOf(i)>=0)n=n.replace(i," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function ns(t){if(t){if("object"===typeof t){var e={};return!1!==t.css&&C(e,is(t.name||"v")),C(e,t),e}return"string"===typeof t?is(t):void 0}}var is=b(function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}}),rs=V&&!Q,ss="transition",os="animation",as="transition",cs="transitionend",ls="animation",us="animationend";rs&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(as="WebkitTransition",cs="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(ls="WebkitAnimation",us="webkitAnimationEnd"));var hs=V?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function ds(t){hs(function(){hs(t)})}function fs(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),ts(t,e))}function ps(t,e){t._transitionClasses&&g(t._transitionClasses,e),es(t,e)}function _s(t,e,n){var i=gs(t,e),r=i.type,s=i.timeout,o=i.propCount;if(!r)return n();var a=r===ss?cs:us,c=0,l=function(){t.removeEventListener(a,u),n()},u=function(e){e.target===t&&++c>=o&&l()};setTimeout(function(){c0&&(n=ss,u=o,h=s.length):e===os?l>0&&(n=os,u=l,h=c.length):(u=Math.max(o,l),n=u>0?o>l?ss:os:null,h=n?n===ss?s.length:c.length:0);var d=n===ss&&ms.test(i[as+"Property"]);return{type:n,timeout:u,propCount:h,hasTransform:d}}function ys(t,e){while(t.length1}function Ls(t,e){!0!==e.data.show&&bs(e)}var Es=V?{create:Ls,activate:Ls,remove:function(t,e){!0!==t.data.show?Ms(t,e):e()}}:{},Ts=[Er,Or,Yr,Gr,Qr,Es],Ss=Ts.concat(Mr),Os=fr({nodeOps:sr,modules:Ss});Q&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&Ys(t,"input")});var ks={inserted:function(t,e,n,i){"select"===n.tag?(i.elm&&!i.elm._vOptions?ye(n,"postpatch",function(){ks.componentUpdated(t,e,n)}):Cs(t,e,n.context),t._vOptions=[].map.call(t.options,Rs)):("textarea"===n.tag||Ui(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",As),t.addEventListener("compositionend",Ns),t.addEventListener("change",Ns),Q&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){Cs(t,e,n.context);var i=t._vOptions,r=t._vOptions=[].map.call(t.options,Rs);if(r.some(function(t,e){return!N(t,i[e])})){var s=t.multiple?e.value.some(function(t){return Ds(t,r)}):e.value!==e.oldValue&&Ds(e.value,r);s&&Ys(t,"change")}}}};function Cs(t,e,n){Is(t,e,n),(Z||tt)&&setTimeout(function(){Is(t,e,n)},0)}function Is(t,e,n){var i=e.value,r=t.multiple;if(!r||Array.isArray(i)){for(var s,o,a=0,c=t.options.length;a-1,o.selected!==s&&(o.selected=s);else if(N(Rs(o),i))return void(t.selectedIndex!==a&&(t.selectedIndex=a));r||(t.selectedIndex=-1)}}function Ds(t,e){return e.every(function(e){return!N(e,t)})}function Rs(t){return"_value"in t?t._value:t.value}function As(t){t.target.composing=!0}function Ns(t){t.target.composing&&(t.target.composing=!1,Ys(t.target,"input"))}function Ys(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Ps(t){return!t.componentInstance||t.data&&t.data.transition?t:Ps(t.componentInstance._vnode)}var js={bind:function(t,e,n){var i=e.value;n=Ps(n);var r=n.data&&n.data.transition,s=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;i&&r?(n.data.show=!0,bs(n,function(){t.style.display=s})):t.style.display=i?s:"none"},update:function(t,e,n){var i=e.value,r=e.oldValue;if(!i!==!r){n=Ps(n);var s=n.data&&n.data.transition;s?(n.data.show=!0,i?bs(n,function(){t.style.display=t.__vOriginalDisplay}):Ms(n,function(){t.style.display="none"})):t.style.display=i?t.__vOriginalDisplay:"none"}},unbind:function(t,e,n,i,r){r||(t.style.display=t.__vOriginalDisplay)}},Fs={model:ks,show:js},Hs={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Gs(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Gs(ke(e.children)):t}function qs(t){var e={},n=t.$options;for(var i in n.propsData)e[i]=t[i];var r=n._parentListeners;for(var s in r)e[w(s)]=r[s];return e}function zs(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function Bs(t){while(t=t.parent)if(t.data.transition)return!0}function Us(t,e){return e.key===t.key&&e.tag===t.tag}var Ws={name:"transition",props:Hs,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(function(t){return t.tag||Oe(t)}),n.length)){0;var i=this.mode;0;var r=n[0];if(Bs(this.$vnode))return r;var s=Gs(r);if(!s)return r;if(this._leaving)return zs(t,r);var o="__transition-"+this._uid+"-";s.key=null==s.key?s.isComment?o+"comment":o+s.tag:a(s.key)?0===String(s.key).indexOf(o)?s.key:o+s.key:s.key;var c=(s.data||(s.data={})).transition=qs(this),l=this._vnode,u=Gs(l);if(s.data.directives&&s.data.directives.some(function(t){return"show"===t.name})&&(s.data.show=!0),u&&u.data&&!Us(s,u)&&!Oe(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var h=u.data.transition=C({},c);if("out-in"===i)return this._leaving=!0,ye(h,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),zs(t,r);if("in-out"===i){if(Oe(s))return l;var d,f=function(){d()};ye(c,"afterEnter",f),ye(c,"enterCancelled",f),ye(h,"delayLeave",function(t){d=t})}}return r}}},$s=C({tag:String,moveClass:String},Hs);delete $s.mode;var Vs={props:$s,render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),i=this.prevChildren=this.children,r=this.$slots.default||[],s=this.children=[],o=qs(this),a=0;a=20?"ste":"de")},week:{dow:1,doy:4}});return e})},"2c30":function(t,e,n){"use strict";function i(t,e,n,i){return void 0!==i?(i[0]=t,i[1]=e,i[2]=n,i):[t,e,n]}function r(t,e,n){return t+"/"+e+"/"+n}function s(t){return r(t[0],t[1],t[2])}function o(t){return t.split("/").map(Number)}function a(t){return(t[1]<n||n>e.getMaxZoom())return!1;var s,o=e.getExtent();return s=o?e.getTileRangeForExtentAndZ(o,n):e.getFullTileRange(n),!s||s.containsXY(i,r)}n.d(e,"a",function(){return i}),n.d(e,"d",function(){return r}),n.d(e,"c",function(){return s}),n.d(e,"b",function(){return o}),n.d(e,"e",function(){return a}),n.d(e,"f",function(){return c})},"2d00":function(t,e){t.exports=!1},"2d83":function(t,e,n){"use strict";var i=n("387f");t.exports=function(t,e,n,r,s){var o=new Error(t);return i(o,e,n,r,s)}},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2e67":function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},"2e8c":function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration @@ -78,17 +85,17 @@ var e=t.defineLocale("en-gb",{months:"January_February_March_April_May_June_July //! moment.js locale configuration var e={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function i(t,e,n,i){var r="";if(e)switch(n){case"s":r="काही सेकंद";break;case"ss":r="%d सेकंद";break;case"m":r="एक मिनिट";break;case"mm":r="%d मिनिटे";break;case"h":r="एक तास";break;case"hh":r="%d तास";break;case"d":r="एक दिवस";break;case"dd":r="%d दिवस";break;case"M":r="एक महिना";break;case"MM":r="%d महिने";break;case"y":r="एक वर्ष";break;case"yy":r="%d वर्षे";break}else switch(n){case"s":r="काही सेकंदां";break;case"ss":r="%d सेकंदां";break;case"m":r="एका मिनिटा";break;case"mm":r="%d मिनिटां";break;case"h":r="एका तासा";break;case"hh":r="%d तासां";break;case"d":r="एका दिवसा";break;case"dd":r="%d दिवसां";break;case"M":r="एका महिन्या";break;case"MM":r="%d महिन्यां";break;case"y":r="एका वर्षा";break;case"yy":r="%d वर्षां";break}return r.replace(/%d/i,t)}var r=t.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},preparse:function(t){return t.replace(/[१२३४५६७८९०]/g,function(t){return n[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(t,e){return 12===t&&(t=0),"पहाटे"===e||"सकाळी"===e?t:"दुपारी"===e||"सायंकाळी"===e||"रात्री"===e?t>=12?t:t+12:void 0},meridiem:function(t,e,n){return t>=0&&t<6?"पहाटे":t<12?"सकाळी":t<17?"दुपारी":t<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}});return r})},"3a08":function(t,e,n){"use strict";e["a"]={name:"QCardMain",render:function(t){return t("div",{staticClass:"q-card-main q-card-container"},this.$slots.default)}}},"3a38":function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},"3a39":function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration -var e={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},i=t.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(t){return t.replace(/[१२३४५६७८९०]/g,function(t){return n[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(t,e){return 12===t&&(t=0),"राति"===e?t<4?t:t+12:"बिहान"===e?t:"दिउँसो"===e?t>=10?t:t+12:"साँझ"===e?t+12:void 0},meridiem:function(t,e,n){return t<3?"राति":t<12?"बिहान":t<16?"दिउँसो":t<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}});return i})},"3a39b":function(t,e,n){"use strict";var i=n("e300"),r=function(t,e,n){this.decay_=t,this.minVelocity_=e,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0};r.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},r.prototype.update=function(t,e){this.points_.push(t,e,Date.now())},r.prototype.end=function(){if(this.points_.length<6)return!1;var t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]0&&this.points_[n+2]>t)n-=3;var i=this.points_[e+2]-this.points_[n+2];if(i<1e3/60)return!1;var r=this.points_[e]-this.points_[n],s=this.points_[e+1]-this.points_[n+1];return this.angle_=Math.atan2(s,r),this.initialVelocity_=Math.sqrt(r*r+s*s)/i,this.initialVelocity_>this.minVelocity_},r.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},r.prototype.getAngle=function(){return this.angle_};var s=r,o=n("0b2d"),a=n("4334"),c=function(t){function e(e){t.call(this,{handleEvent:l});var n=e||{};this.delta_=n.delta?n.delta:1,this.duration_=void 0!==n.duration?n.duration:250}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(a["a"]);function l(t){var e=!1;if(t.type==o["a"].DBLCLICK){var n=t.originalEvent,i=t.map,r=t.coordinate,s=n.shiftKey?-this.delta_:this.delta_,c=i.getView();Object(a["f"])(c,s,r,this.duration_),t.preventDefault(),e=!0}return!e}var u=c,h=n("496f"),d=n("a568"),f=n("ca42"),p=n("06f8"),_=n("57cb"),m=n("4105"),g=function(t){function e(e){t.call(this,{stopDown:_["a"]});var n=e||{};this.kinetic_=n.kinetic,this.lastCentroid=null,this.lastPointersCount_,this.panning_=!1,this.condition_=n.condition?n.condition:p["g"],this.noKinetic_=!1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleDragEvent=function(t){this.panning_||(this.panning_=!0,this.getMap().getView().setHint(h["a"].INTERACTING,1));var e=this.targetPointers,n=Object(m["a"])(e);if(e.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(n[0],n[1]),this.lastCentroid){var i=this.lastCentroid[0]-n[0],r=n[1]-this.lastCentroid[1],s=t.map,o=s.getView(),a=[i,r];Object(d["g"])(a,o.getResolution()),Object(d["f"])(a,o.getRotation()),Object(d["a"])(a,o.getCenter()),a=o.constrainCenter(a),o.setCenter(a)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=n,this.lastPointersCount_=e.length},e.prototype.handleUpEvent=function(t){var e=t.map,n=e.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){var i=this.kinetic_.getDistance(),r=this.kinetic_.getAngle(),s=n.getCenter(),o=e.getPixelFromCoordinate(s),a=e.getCoordinateFromPixel([o[0]-i*Math.cos(r),o[1]-i*Math.sin(r)]);n.animate({center:n.constrainCenter(a),duration:500,easing:f["b"]})}return this.panning_&&(this.panning_=!1,n.setHint(h["a"].INTERACTING,-1)),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>0&&this.condition_(t)){var e=t.map,n=e.getView();return this.lastCentroid=null,n.getAnimating()&&n.setCenter(t.frameState.viewState.center),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1},e}(m["b"]),y=g,v=n("8cc5"),b=function(t){function e(e){var n=e||{};t.call(this,{stopDown:_["a"]}),this.condition_=n.condition?n.condition:p["b"],this.lastAngle_=void 0,this.duration_=void 0!==n.duration?n.duration:250}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleDragEvent=function(t){if(Object(p["f"])(t)){var e=t.map,n=e.getView();if(n.getConstraints().rotation!==v["c"]){var i=e.getSize(),r=t.pixel,s=Math.atan2(i[1]/2-r[1],r[0]-i[0]/2);if(void 0!==this.lastAngle_){var o=s-this.lastAngle_,c=n.getRotation();Object(a["d"])(n,c-o)}this.lastAngle_=s}}},e.prototype.handleUpEvent=function(t){if(!Object(p["f"])(t))return!0;var e=t.map,n=e.getView();n.setHint(h["a"].INTERACTING,-1);var i=n.getRotation();return Object(a["c"])(n,i,void 0,this.duration_),!1},e.prototype.handleDownEvent=function(t){if(!Object(p["f"])(t))return!1;if(Object(p["e"])(t)&&this.condition_(t)){var e=t.map;return e.getView().setHint(h["a"].INTERACTING,1),this.lastAngle_=void 0,!0}return!1},e}(m["b"]),M=b,w=n("0af5"),x=n("cef7"),L=n("da5c"),E=n("5bc3"),T=function(t){function e(e){t.call(this),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.className="ol-box "+e,this.map_=null,this.startPixel_=null,this.endPixel_=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){this.setMap(null)},e.prototype.render_=function(){var t=this.startPixel_,e=this.endPixel_,n="px",i=this.element_.style;i.left=Math.min(t[0],e[0])+n,i.top=Math.min(t[1],e[1])+n,i.width=Math.abs(e[0]-t[0])+n,i.height=Math.abs(e[1]-t[1])+n},e.prototype.setMap=function(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var e=this.element_.style;e.left=e.top=e.width=e.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},e.prototype.setPixels=function(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()},e.prototype.createOrUpdateGeometry=function(){var t=this.startPixel_,e=this.endPixel_,n=[t,[t[0],e[1]],e,[e[0],t[1]]],i=n.map(this.map_.getCoordinateFromPixel,this.map_);i[4]=i[0].slice(),this.geometry_?this.geometry_.setCoordinates([i]):this.geometry_=new E["a"]([i])},e.prototype.getGeometry=function(){return this.geometry_},e}(L["a"]),S=T,O={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend"},k=function(t){function e(e,n,i){t.call(this,e),this.coordinate=n,this.mapBrowserEvent=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(x["a"]),C=function(t){function e(e){t.call(this);var n=e||{};this.box_=new S(n.className||"ol-dragbox"),this.minArea_=void 0!==n.minArea?n.minArea:64,this.onBoxEnd_=n.onBoxEnd?n.onBoxEnd:_["c"],this.startPixel_=null,this.condition_=n.condition?n.condition:p["c"],this.boxEndCondition_=n.boxEndCondition?n.boxEndCondition:this.defaultBoxEndCondition}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.defaultBoxEndCondition=function(t,e,n){var i=n[0]-e[0],r=n[1]-e[1];return i*i+r*r>=this.minArea_},e.prototype.getGeometry=function(){return this.box_.getGeometry()},e.prototype.handleDragEvent=function(t){Object(p["f"])(t)&&(this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new k(O.BOXDRAG,t.coordinate,t)))},e.prototype.handleUpEvent=function(t){return!Object(p["f"])(t)||(this.box_.setMap(null),this.boxEndCondition_(t,this.startPixel_,t.pixel)&&(this.onBoxEnd_(t),this.dispatchEvent(new k(O.BOXEND,t.coordinate,t))),!1)},e.prototype.handleDownEvent=function(t){return!!Object(p["f"])(t)&&(!(!Object(p["e"])(t)||!this.condition_(t))&&(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new k(O.BOXSTART,t.coordinate,t)),!0))},e}(m["b"]),I=C,D=function(t){function e(e){var n=e||{},i=n.condition?n.condition:p["i"];t.call(this,{condition:i,className:n.className||"ol-dragzoom",onBoxEnd:R}),this.duration_=void 0!==n.duration?n.duration:200,this.out_=void 0!==n.out&&n.out}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(I);function R(){var t=this.getMap(),e=t.getView(),n=t.getSize(),i=this.getGeometry().getExtent();if(this.out_){var r=e.calculateExtent(n),s=Object(w["n"])([t.getPixelFromCoordinate(Object(w["v"])(i)),t.getPixelFromCoordinate(Object(w["D"])(i))]),o=e.getResolutionForExtent(s,n);Object(w["J"])(r,1/o),i=r}var a=e.constrainResolution(e.getResolutionForExtent(i,n)),c=Object(w["x"])(i);c=e.constrainCenter(c),e.animate({resolution:a,center:c,duration:this.duration_,easing:f["b"]})}var A=D,N=n("01d4"),Y={LEFT:37,UP:38,RIGHT:39,DOWN:40},P=function(t){function e(e){t.call(this,{handleEvent:j});var n=e||{};this.defaultCondition_=function(t){return Object(p["g"])(t)&&Object(p["k"])(t)},this.condition_=void 0!==n.condition?n.condition:this.defaultCondition_,this.duration_=void 0!==n.duration?n.duration:100,this.pixelDelta_=void 0!==n.pixelDelta?n.pixelDelta:128}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(a["a"]);function j(t){var e=!1;if(t.type==N["a"].KEYDOWN){var n=t.originalEvent,i=n.keyCode;if(this.condition_(t)&&(i==Y.DOWN||i==Y.LEFT||i==Y.RIGHT||i==Y.UP)){var r=t.map,s=r.getView(),o=s.getResolution()*this.pixelDelta_,c=0,l=0;i==Y.DOWN?l=-o:i==Y.LEFT?c=-o:i==Y.RIGHT?c=o:l=o;var u=[c,l];Object(d["f"])(u,s.getRotation()),Object(a["b"])(s,u,this.duration_),t.preventDefault(),e=!0}}return!e}var F=P,H=function(t){function e(e){t.call(this,{handleEvent:q});var n=e||{};this.condition_=n.condition?n.condition:p["k"],this.delta_=n.delta?n.delta:1,this.duration_=void 0!==n.duration?n.duration:100}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(a["a"]);function q(t){var e=!1;if(t.type==N["a"].KEYDOWN||t.type==N["a"].KEYPRESS){var n=t.originalEvent,i=n.charCode;if(this.condition_(t)&&(i=="+".charCodeAt(0)||i=="-".charCodeAt(0))){var r=t.map,s=i=="+".charCodeAt(0)?this.delta_:-this.delta_,o=r.getView();Object(a["f"])(o,s,void 0,this.duration_),t.preventDefault(),e=!0}}return!e}var G=H,z=n("617d"),B=n("7fc9"),U=1,W={TRACKPAD:"trackpad",WHEEL:"wheel"},$=function(t){function e(e){var n=e||{};t.call(this,n),this.delta_=0,this.duration_=void 0!==n.duration?n.duration:250,this.timeout_=void 0!==n.timeout?n.timeout:80,this.useAnchor_=void 0===n.useAnchor||n.useAnchor,this.constrainResolution_=n.constrainResolution||!1,this.condition_=n.condition?n.condition:p["c"],this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.trackpadDeltaPerZoom_=300,this.trackpadZoomBuffer_=1.5}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.decrementInteractingHint_=function(){this.trackpadTimeoutId_=void 0;var t=this.getMap().getView();t.setHint(h["a"].INTERACTING,-1)},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;var e=t.type;if(e!==N["a"].WHEEL&&e!==N["a"].MOUSEWHEEL)return!0;t.preventDefault();var n,i=t.map,r=t.originalEvent;if(this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==N["a"].WHEEL?(n=r.deltaY,z["c"]&&r.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(n/=z["b"]),r.deltaMode===WheelEvent.DOM_DELTA_LINE&&(n*=40)):t.type==N["a"].MOUSEWHEEL&&(n=-r.wheelDeltaY,z["g"]&&(n/=3)),0===n)return!1;var s=Date.now();if(void 0===this.startTime_&&(this.startTime_=s),(!this.mode_||s-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(n)<4?W.TRACKPAD:W.WHEEL),this.mode_===W.TRACKPAD){var o=i.getView();this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):o.setHint(h["a"].INTERACTING,1),this.trackpadTimeoutId_=setTimeout(this.decrementInteractingHint_.bind(this),this.trackpadEventGap_);var a=o.getResolution()*Math.pow(2,n/this.trackpadDeltaPerZoom_),c=o.getMinResolution(),l=o.getMaxResolution(),u=0;if(al&&(a=Math.min(a,l*this.trackpadZoomBuffer_),u=-1),this.lastAnchor_){var d=o.calculateCenterZoom(a,this.lastAnchor_);o.setCenter(o.constrainCenter(d))}return o.setResolution(a),0===u&&this.constrainResolution_&&o.animate({resolution:o.constrainResolution(a,n>0?-1:1),easing:f["b"],anchor:this.lastAnchor_,duration:this.duration_}),u>0?o.animate({resolution:c,easing:f["b"],anchor:this.lastAnchor_,duration:500}):u<0&&o.animate({resolution:l,easing:f["b"],anchor:this.lastAnchor_,duration:500}),this.startTime_=s,!1}this.delta_+=n;var p=Math.max(this.timeout_-(s-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,i),p),!1},e.prototype.handleWheelZoom_=function(t){var e=t.getView();e.getAnimating()&&e.cancelAnimations();var n=U,i=Object(B["a"])(this.delta_,-n,n);Object(a["f"])(e,-i,this.lastAnchor_,this.duration_),this.mode_=void 0,this.delta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},e.prototype.setMouseAnchor=function(t){this.useAnchor_=t,t||(this.lastAnchor_=null)},e}(a["a"]),V=$,X=function(t){function e(e){var n=e||{},i=n;i.stopDown||(i.stopDown=_["a"]),t.call(this,i),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=void 0!==n.threshold?n.threshold:.3,this.duration_=void 0!==n.duration?n.duration:250}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleDragEvent=function(t){var e=0,n=this.targetPointers[0],i=this.targetPointers[1],r=Math.atan2(i.clientY-n.clientY,i.clientX-n.clientX);if(void 0!==this.lastAngle_){var s=r-this.lastAngle_;this.rotationDelta_+=s,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=s}this.lastAngle_=r;var o=t.map,c=o.getView();if(c.getConstraints().rotation!==v["c"]){var l=o.getViewport().getBoundingClientRect(),u=Object(m["a"])(this.targetPointers);if(u[0]-=l.left,u[1]-=l.top,this.anchor_=o.getCoordinateFromPixel(u),this.rotating_){var h=c.getRotation();o.render(),Object(a["d"])(c,h+e,this.anchor_)}}},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var e=t.map,n=e.getView();if(n.setHint(h["a"].INTERACTING,-1),this.rotating_){var i=n.getRotation();Object(a["c"])(n,i,this.anchor_,this.duration_)}return!1}return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||e.getView().setHint(h["a"].INTERACTING,1),!0}return!1},e}(m["b"]),K=X,Z=function(t){function e(e){var n=e||{},i=n;i.stopDown||(i.stopDown=_["a"]),t.call(this,i),this.constrainResolution_=n.constrainResolution||!1,this.anchor_=null,this.duration_=void 0!==n.duration?n.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleDragEvent=function(t){var e=1,n=this.targetPointers[0],i=this.targetPointers[1],r=n.clientX-i.clientX,s=n.clientY-i.clientY,o=Math.sqrt(r*r+s*s);void 0!==this.lastDistance_&&(e=this.lastDistance_/o),this.lastDistance_=o;var c=t.map,l=c.getView(),u=l.getResolution(),h=l.getMaxResolution(),d=l.getMinResolution(),f=u*e;f>h?(e=h/u,f=h):fn.getMaxResolution()){var r=this.lastScaleDelta_-1;Object(a["e"])(n,i,this.anchor_,this.duration_,r)}return!1}return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().setHint(h["a"].INTERACTING,1),!0}return!1},e}(m["b"]),J=Z;function Q(t){var e=t||{},n=new i["a"],r=new s(-.005,.05,100),o=void 0===e.altShiftDragRotate||e.altShiftDragRotate;o&&n.push(new M);var a=void 0===e.doubleClickZoom||e.doubleClickZoom;a&&n.push(new u({delta:e.zoomDelta,duration:e.zoomDuration}));var c=void 0===e.dragPan||e.dragPan;c&&n.push(new y({condition:e.onFocusOnly?p["d"]:void 0,kinetic:r}));var l=void 0===e.pinchRotate||e.pinchRotate;l&&n.push(new K);var h=void 0===e.pinchZoom||e.pinchZoom;h&&n.push(new J({constrainResolution:e.constrainResolution,duration:e.zoomDuration}));var d=void 0===e.keyboard||e.keyboard;d&&(n.push(new F),n.push(new G({delta:e.zoomDelta,duration:e.zoomDuration})));var f=void 0===e.mouseWheelZoom||e.mouseWheelZoom;f&&n.push(new V({condition:e.onFocusOnly?p["d"]:void 0,constrainResolution:e.constrainResolution,duration:e.zoomDuration}));var _=void 0===e.shiftDragZoom||e.shiftDragZoom;return _&&n.push(new A({duration:e.zoomDuration})),n}n.d(e,"a",function(){return Q})},"3a6c":function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; +var e={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},i=t.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(t){return t.replace(/[१२३४५६७८९०]/g,function(t){return n[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(t,e){return 12===t&&(t=0),"राति"===e?t<4?t:t+12:"बिहान"===e?t:"दिउँसो"===e?t>=10?t:t+12:"साँझ"===e?t+12:void 0},meridiem:function(t,e,n){return t<3?"राति":t<12?"बिहान":t<16?"दिउँसो":t<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}});return i})},"3a39b":function(t,e,n){"use strict";var i=n("e300"),r=function(t,e,n){this.decay_=t,this.minVelocity_=e,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0};r.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},r.prototype.update=function(t,e){this.points_.push(t,e,Date.now())},r.prototype.end=function(){if(this.points_.length<6)return!1;var t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]0&&this.points_[n+2]>t)n-=3;var i=this.points_[e+2]-this.points_[n+2];if(i<1e3/60)return!1;var r=this.points_[e]-this.points_[n],s=this.points_[e+1]-this.points_[n+1];return this.angle_=Math.atan2(s,r),this.initialVelocity_=Math.sqrt(r*r+s*s)/i,this.initialVelocity_>this.minVelocity_},r.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},r.prototype.getAngle=function(){return this.angle_};var s=r,o=n("0b2d"),a=n("4334"),c=function(t){function e(e){t.call(this,{handleEvent:l});var n=e||{};this.delta_=n.delta?n.delta:1,this.duration_=void 0!==n.duration?n.duration:250}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(a["a"]);function l(t){var e=!1;if(t.type==o["a"].DBLCLICK){var n=t.originalEvent,i=t.map,r=t.coordinate,s=n.shiftKey?-this.delta_:this.delta_,c=i.getView();Object(a["f"])(c,s,r,this.duration_),t.preventDefault(),e=!0}return!e}var u=c,h=n("496f"),d=n("a568"),f=n("ca42"),p=n("06f8"),_=n("57cb"),m=n("4105"),g=function(t){function e(e){t.call(this,{stopDown:_["a"]});var n=e||{};this.kinetic_=n.kinetic,this.lastCentroid=null,this.lastPointersCount_,this.panning_=!1,this.condition_=n.condition?n.condition:p["g"],this.noKinetic_=!1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleDragEvent=function(t){this.panning_||(this.panning_=!0,this.getMap().getView().setHint(h["a"].INTERACTING,1));var e=this.targetPointers,n=Object(m["a"])(e);if(e.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(n[0],n[1]),this.lastCentroid){var i=this.lastCentroid[0]-n[0],r=n[1]-this.lastCentroid[1],s=t.map,o=s.getView(),a=[i,r];Object(d["g"])(a,o.getResolution()),Object(d["f"])(a,o.getRotation()),Object(d["a"])(a,o.getCenter()),a=o.constrainCenter(a),o.setCenter(a)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=n,this.lastPointersCount_=e.length},e.prototype.handleUpEvent=function(t){var e=t.map,n=e.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){var i=this.kinetic_.getDistance(),r=this.kinetic_.getAngle(),s=n.getCenter(),o=e.getPixelFromCoordinate(s),a=e.getCoordinateFromPixel([o[0]-i*Math.cos(r),o[1]-i*Math.sin(r)]);n.animate({center:n.constrainCenter(a),duration:500,easing:f["b"]})}return this.panning_&&(this.panning_=!1,n.setHint(h["a"].INTERACTING,-1)),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>0&&this.condition_(t)){var e=t.map,n=e.getView();return this.lastCentroid=null,n.getAnimating()&&n.setCenter(t.frameState.viewState.center),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1},e}(m["b"]),y=g,v=n("8cc5"),b=function(t){function e(e){var n=e||{};t.call(this,{stopDown:_["a"]}),this.condition_=n.condition?n.condition:p["b"],this.lastAngle_=void 0,this.duration_=void 0!==n.duration?n.duration:250}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleDragEvent=function(t){if(Object(p["f"])(t)){var e=t.map,n=e.getView();if(n.getConstraints().rotation!==v["c"]){var i=e.getSize(),r=t.pixel,s=Math.atan2(i[1]/2-r[1],r[0]-i[0]/2);if(void 0!==this.lastAngle_){var o=s-this.lastAngle_,c=n.getRotation();Object(a["d"])(n,c-o)}this.lastAngle_=s}}},e.prototype.handleUpEvent=function(t){if(!Object(p["f"])(t))return!0;var e=t.map,n=e.getView();n.setHint(h["a"].INTERACTING,-1);var i=n.getRotation();return Object(a["c"])(n,i,void 0,this.duration_),!1},e.prototype.handleDownEvent=function(t){if(!Object(p["f"])(t))return!1;if(Object(p["e"])(t)&&this.condition_(t)){var e=t.map;return e.getView().setHint(h["a"].INTERACTING,1),this.lastAngle_=void 0,!0}return!1},e}(m["b"]),M=b,w=n("0af5"),x=n("cef7"),L=n("da5c"),E=n("5bc3"),T=function(t){function e(e){t.call(this),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.className="ol-box "+e,this.map_=null,this.startPixel_=null,this.endPixel_=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){this.setMap(null)},e.prototype.render_=function(){var t=this.startPixel_,e=this.endPixel_,n="px",i=this.element_.style;i.left=Math.min(t[0],e[0])+n,i.top=Math.min(t[1],e[1])+n,i.width=Math.abs(e[0]-t[0])+n,i.height=Math.abs(e[1]-t[1])+n},e.prototype.setMap=function(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var e=this.element_.style;e.left=e.top=e.width=e.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},e.prototype.setPixels=function(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()},e.prototype.createOrUpdateGeometry=function(){var t=this.startPixel_,e=this.endPixel_,n=[t,[t[0],e[1]],e,[e[0],t[1]]],i=n.map(this.map_.getCoordinateFromPixel,this.map_);i[4]=i[0].slice(),this.geometry_?this.geometry_.setCoordinates([i]):this.geometry_=new E["a"]([i])},e.prototype.getGeometry=function(){return this.geometry_},e}(L["a"]),S=T,O={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend"},k=function(t){function e(e,n,i){t.call(this,e),this.coordinate=n,this.mapBrowserEvent=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(x["a"]),C=function(t){function e(e){t.call(this);var n=e||{};this.box_=new S(n.className||"ol-dragbox"),this.minArea_=void 0!==n.minArea?n.minArea:64,this.onBoxEnd_=n.onBoxEnd?n.onBoxEnd:_["c"],this.startPixel_=null,this.condition_=n.condition?n.condition:p["c"],this.boxEndCondition_=n.boxEndCondition?n.boxEndCondition:this.defaultBoxEndCondition}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.defaultBoxEndCondition=function(t,e,n){var i=n[0]-e[0],r=n[1]-e[1];return i*i+r*r>=this.minArea_},e.prototype.getGeometry=function(){return this.box_.getGeometry()},e.prototype.handleDragEvent=function(t){Object(p["f"])(t)&&(this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new k(O.BOXDRAG,t.coordinate,t)))},e.prototype.handleUpEvent=function(t){return!Object(p["f"])(t)||(this.box_.setMap(null),this.boxEndCondition_(t,this.startPixel_,t.pixel)&&(this.onBoxEnd_(t),this.dispatchEvent(new k(O.BOXEND,t.coordinate,t))),!1)},e.prototype.handleDownEvent=function(t){return!!Object(p["f"])(t)&&(!(!Object(p["e"])(t)||!this.condition_(t))&&(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new k(O.BOXSTART,t.coordinate,t)),!0))},e}(m["b"]),I=C,D=function(t){function e(e){var n=e||{},i=n.condition?n.condition:p["i"];t.call(this,{condition:i,className:n.className||"ol-dragzoom",onBoxEnd:R}),this.duration_=void 0!==n.duration?n.duration:200,this.out_=void 0!==n.out&&n.out}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(I);function R(){var t=this.getMap(),e=t.getView(),n=t.getSize(),i=this.getGeometry().getExtent();if(this.out_){var r=e.calculateExtent(n),s=Object(w["n"])([t.getPixelFromCoordinate(Object(w["v"])(i)),t.getPixelFromCoordinate(Object(w["D"])(i))]),o=e.getResolutionForExtent(s,n);Object(w["J"])(r,1/o),i=r}var a=e.constrainResolution(e.getResolutionForExtent(i,n)),c=Object(w["x"])(i);c=e.constrainCenter(c),e.animate({resolution:a,center:c,duration:this.duration_,easing:f["b"]})}var A=D,N=n("01d4"),Y={LEFT:37,UP:38,RIGHT:39,DOWN:40},P=function(t){function e(e){t.call(this,{handleEvent:j});var n=e||{};this.defaultCondition_=function(t){return Object(p["g"])(t)&&Object(p["k"])(t)},this.condition_=void 0!==n.condition?n.condition:this.defaultCondition_,this.duration_=void 0!==n.duration?n.duration:100,this.pixelDelta_=void 0!==n.pixelDelta?n.pixelDelta:128}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(a["a"]);function j(t){var e=!1;if(t.type==N["a"].KEYDOWN){var n=t.originalEvent,i=n.keyCode;if(this.condition_(t)&&(i==Y.DOWN||i==Y.LEFT||i==Y.RIGHT||i==Y.UP)){var r=t.map,s=r.getView(),o=s.getResolution()*this.pixelDelta_,c=0,l=0;i==Y.DOWN?l=-o:i==Y.LEFT?c=-o:i==Y.RIGHT?c=o:l=o;var u=[c,l];Object(d["f"])(u,s.getRotation()),Object(a["b"])(s,u,this.duration_),t.preventDefault(),e=!0}}return!e}var F=P,H=function(t){function e(e){t.call(this,{handleEvent:G});var n=e||{};this.condition_=n.condition?n.condition:p["k"],this.delta_=n.delta?n.delta:1,this.duration_=void 0!==n.duration?n.duration:100}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(a["a"]);function G(t){var e=!1;if(t.type==N["a"].KEYDOWN||t.type==N["a"].KEYPRESS){var n=t.originalEvent,i=n.charCode;if(this.condition_(t)&&(i=="+".charCodeAt(0)||i=="-".charCodeAt(0))){var r=t.map,s=i=="+".charCodeAt(0)?this.delta_:-this.delta_,o=r.getView();Object(a["f"])(o,s,void 0,this.duration_),t.preventDefault(),e=!0}}return!e}var q=H,z=n("617d"),B=n("7fc9"),U=1,W={TRACKPAD:"trackpad",WHEEL:"wheel"},$=function(t){function e(e){var n=e||{};t.call(this,n),this.delta_=0,this.duration_=void 0!==n.duration?n.duration:250,this.timeout_=void 0!==n.timeout?n.timeout:80,this.useAnchor_=void 0===n.useAnchor||n.useAnchor,this.constrainResolution_=n.constrainResolution||!1,this.condition_=n.condition?n.condition:p["c"],this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.trackpadDeltaPerZoom_=300,this.trackpadZoomBuffer_=1.5}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.decrementInteractingHint_=function(){this.trackpadTimeoutId_=void 0;var t=this.getMap().getView();t.setHint(h["a"].INTERACTING,-1)},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;var e=t.type;if(e!==N["a"].WHEEL&&e!==N["a"].MOUSEWHEEL)return!0;t.preventDefault();var n,i=t.map,r=t.originalEvent;if(this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==N["a"].WHEEL?(n=r.deltaY,z["c"]&&r.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(n/=z["b"]),r.deltaMode===WheelEvent.DOM_DELTA_LINE&&(n*=40)):t.type==N["a"].MOUSEWHEEL&&(n=-r.wheelDeltaY,z["g"]&&(n/=3)),0===n)return!1;var s=Date.now();if(void 0===this.startTime_&&(this.startTime_=s),(!this.mode_||s-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(n)<4?W.TRACKPAD:W.WHEEL),this.mode_===W.TRACKPAD){var o=i.getView();this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):o.setHint(h["a"].INTERACTING,1),this.trackpadTimeoutId_=setTimeout(this.decrementInteractingHint_.bind(this),this.trackpadEventGap_);var a=o.getResolution()*Math.pow(2,n/this.trackpadDeltaPerZoom_),c=o.getMinResolution(),l=o.getMaxResolution(),u=0;if(al&&(a=Math.min(a,l*this.trackpadZoomBuffer_),u=-1),this.lastAnchor_){var d=o.calculateCenterZoom(a,this.lastAnchor_);o.setCenter(o.constrainCenter(d))}return o.setResolution(a),0===u&&this.constrainResolution_&&o.animate({resolution:o.constrainResolution(a,n>0?-1:1),easing:f["b"],anchor:this.lastAnchor_,duration:this.duration_}),u>0?o.animate({resolution:c,easing:f["b"],anchor:this.lastAnchor_,duration:500}):u<0&&o.animate({resolution:l,easing:f["b"],anchor:this.lastAnchor_,duration:500}),this.startTime_=s,!1}this.delta_+=n;var p=Math.max(this.timeout_-(s-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,i),p),!1},e.prototype.handleWheelZoom_=function(t){var e=t.getView();e.getAnimating()&&e.cancelAnimations();var n=U,i=Object(B["a"])(this.delta_,-n,n);Object(a["f"])(e,-i,this.lastAnchor_,this.duration_),this.mode_=void 0,this.delta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},e.prototype.setMouseAnchor=function(t){this.useAnchor_=t,t||(this.lastAnchor_=null)},e}(a["a"]),V=$,X=function(t){function e(e){var n=e||{},i=n;i.stopDown||(i.stopDown=_["a"]),t.call(this,i),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=void 0!==n.threshold?n.threshold:.3,this.duration_=void 0!==n.duration?n.duration:250}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleDragEvent=function(t){var e=0,n=this.targetPointers[0],i=this.targetPointers[1],r=Math.atan2(i.clientY-n.clientY,i.clientX-n.clientX);if(void 0!==this.lastAngle_){var s=r-this.lastAngle_;this.rotationDelta_+=s,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=s}this.lastAngle_=r;var o=t.map,c=o.getView();if(c.getConstraints().rotation!==v["c"]){var l=o.getViewport().getBoundingClientRect(),u=Object(m["a"])(this.targetPointers);if(u[0]-=l.left,u[1]-=l.top,this.anchor_=o.getCoordinateFromPixel(u),this.rotating_){var h=c.getRotation();o.render(),Object(a["d"])(c,h+e,this.anchor_)}}},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var e=t.map,n=e.getView();if(n.setHint(h["a"].INTERACTING,-1),this.rotating_){var i=n.getRotation();Object(a["c"])(n,i,this.anchor_,this.duration_)}return!1}return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||e.getView().setHint(h["a"].INTERACTING,1),!0}return!1},e}(m["b"]),K=X,J=function(t){function e(e){var n=e||{},i=n;i.stopDown||(i.stopDown=_["a"]),t.call(this,i),this.constrainResolution_=n.constrainResolution||!1,this.anchor_=null,this.duration_=void 0!==n.duration?n.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleDragEvent=function(t){var e=1,n=this.targetPointers[0],i=this.targetPointers[1],r=n.clientX-i.clientX,s=n.clientY-i.clientY,o=Math.sqrt(r*r+s*s);void 0!==this.lastDistance_&&(e=this.lastDistance_/o),this.lastDistance_=o;var c=t.map,l=c.getView(),u=l.getResolution(),h=l.getMaxResolution(),d=l.getMinResolution(),f=u*e;f>h?(e=h/u,f=h):fn.getMaxResolution()){var r=this.lastScaleDelta_-1;Object(a["e"])(n,i,this.anchor_,this.duration_,r)}return!1}return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().setHint(h["a"].INTERACTING,1),!0}return!1},e}(m["b"]),Z=J;function Q(t){var e=t||{},n=new i["a"],r=new s(-.005,.05,100),o=void 0===e.altShiftDragRotate||e.altShiftDragRotate;o&&n.push(new M);var a=void 0===e.doubleClickZoom||e.doubleClickZoom;a&&n.push(new u({delta:e.zoomDelta,duration:e.zoomDuration}));var c=void 0===e.dragPan||e.dragPan;c&&n.push(new y({condition:e.onFocusOnly?p["d"]:void 0,kinetic:r}));var l=void 0===e.pinchRotate||e.pinchRotate;l&&n.push(new K);var h=void 0===e.pinchZoom||e.pinchZoom;h&&n.push(new Z({constrainResolution:e.constrainResolution,duration:e.zoomDuration}));var d=void 0===e.keyboard||e.keyboard;d&&(n.push(new F),n.push(new q({delta:e.zoomDelta,duration:e.zoomDuration})));var f=void 0===e.mouseWheelZoom||e.mouseWheelZoom;f&&n.push(new V({condition:e.onFocusOnly?p["d"]:void 0,constrainResolution:e.constrainResolution,duration:e.zoomDuration}));var _=void 0===e.shiftDragZoom||e.shiftDragZoom;return _&&n.push(new A({duration:e.zoomDuration})),n}n.d(e,"a",function(){return Q})},"3a6c":function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,n){var i=100*t+e;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});return e})},"3b1b":function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration -var e={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"},n=t.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(t,e){return 12===t&&(t=0),"шаб"===e?t<4?t:t+12:"субҳ"===e?t:"рӯз"===e?t>=11?t:t+12:"бегоҳ"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"шаб":t<11?"субҳ":t<16?"рӯз":t<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(t){var n=t%10,i=t>=100?100:null;return t+(e[t]||e[n]||e[i])},week:{dow:1,doy:7}});return n})},"3b1b6":function(t,e,n){!function(e,i){t.exports=i(n("2926"))}("undefined"!=typeof self&&self,function(t){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=8)}([function(t,e,n){"use strict";function i(t,e,n){return"function"!=typeof t?t:t(e,n)}function r(t,e){return"object"===(void 0===t?"undefined":s(t))&&Object.prototype.hasOwnProperty.call(t,e)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports={asExpression:i,hasProperty:r}},function(t,e,n){"use strict";function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(t){return"object"===(void 0===t?"undefined":a(t))||"boolean"==typeof t}function s(t){return!0===t?c.ANY_SCHEMA:!1===t?c.NOT_ANY_SCHEMA:t}function o(t){if("object"!==(void 0===t?"undefined":a(t))||null===t)return{enum:[t]};if(Array.isArray(t))return{items:t.map(o),additionalItems:!1};var e=Object.keys(t);return{properties:e.reduce(function(e,n){return Object.assign({},e,i({},n,o(t[n])))},{}),required:e}}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c={ANY_SCHEMA:{},NOT_ANY_SCHEMA:{not:{}}};t.exports={is:r,make:o,transform:s,transformation:c}},function(t,e,n){"use strict";function i(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e1?e-1:0),s=1;s2&&void 0!==arguments[2]?arguments[2]:{},i=n.inner,r=new Function("schema",t)(e);return i||(r.toString=function(){return t}),r}function a(t){var e=t.defineErrors,n=t.index;return"\n "+(e?"const errors = [];":"")+"\n "+(n?"let i"+Array.apply(void 0,i(Array(n))).map(function(t,e){return e+1}).join(",i")+";":"")+"\n "}function c(t){var e=t.context;if(t.inner||!e.length)return"";var n=[],i=[];return e.forEach(function(t,e){"number"!=typeof t?n.push(e+1+" = "+t):i.push(e+1+" = f"+(t+1))}),"const f"+n.concat(i).join(", f")+";"}function l(t){var e=t.defineErrors,n=t.lines,i=a(t),r=e?"if(errors.length) return errors;":"";return'\n "use strict";\n '+i+"\n "+n.join("\n")+"\n "+r+"\n "}function u(t,e){var n=t.cachedIndex,i=t.lines,r=e.context,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=s.inner,a=s.errorHandler,u={context:r,inner:o,defineErrors:a,index:n,lines:i};return"\n "+c(u)+"\n function f0(data) {\n "+l(u)+"\n }\n return f0;\n "}function h(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i= 256 || !/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])(\\.([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9]))*$/.test(",")"],["",".length >= 256 || !/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\\\-]{0,61}[a-zA-Z0-9])(\\\\.([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\\\-]{0,61}[a-zA-Z0-9]))*$/.test(",")"]),f=i(["!/^[A-Za-z][A-Za-z0-9+\\-.]*:(?:\\/\\/(?:(?:[A-Za-z0-9\\-._~!$&'()*+,;=:]|%[0-9A-Fa-f]{2})*@)?(?:\\[(?:(?:(?:(?:[0-9A-Fa-f]{1,4}:){6}|::(?:[0-9A-Fa-f]{1,4}:){5}|(?:[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,1}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){3}|(?:(?:[0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){2}|(?:(?:[0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}:|(?:(?:[0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})?::)(?:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))|(?:(?:[0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})?::)|[Vv][0-9A-Fa-f]+\\.[A-Za-z0-9\\-._~!$&'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)|(?:[A-Za-z0-9\\-._~!$&'()*+,;=]|%[0-9A-Fa-f]{2})*)(?::[0-9]*)?(?:\\/(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*|\\/(?:(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:\\/(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*)?|(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:\\/(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*|)(?:\\?(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@\\/?]|%[0-9A-Fa-f]{2})*)?(?:\\#(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@\\/?]|%[0-9A-Fa-f]{2})*)?$/.test(",")"],["!/^[A-Za-z][A-Za-z0-9+\\\\-.]*:(?:\\\\/\\\\/(?:(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:]|%[0-9A-Fa-f]{2})*@)?(?:\\\\[(?:(?:(?:(?:[0-9A-Fa-f]{1,4}:){6}|::(?:[0-9A-Fa-f]{1,4}:){5}|(?:[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,1}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){3}|(?:(?:[0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){2}|(?:(?:[0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}:|(?:(?:[0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})?::)(?:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))|(?:(?:[0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})?::)|[Vv][0-9A-Fa-f]+\\\\.[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:]+)\\\\]|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)|(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=]|%[0-9A-Fa-f]{2})*)(?::[0-9]*)?(?:\\\\/(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*|\\\\/(?:(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:\\\\/(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*)?|(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:\\\\/(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*|)(?:\\\\?(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@\\\\/?]|%[0-9A-Fa-f]{2})*)?(?:\\\\#(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@\\\\/?]|%[0-9A-Fa-f]{2})*)?$/.test(",")"]),p=i(["!/^[^@]+@[^@]+\\.[^@]+$/.test(",")"],["!/^[^@]+@[^@]+\\\\.[^@]+$/.test(",")"]),_=i(["!/^(\\d?\\d?\\d){0,255}\\.(\\d?\\d?\\d){0,255}\\.(\\d?\\d?\\d){0,255}\\.(\\d?\\d?\\d){0,255}$/.test(",") || ",'.split(".")[3] > 255'],["!/^(\\\\d?\\\\d?\\\\d){0,255}\\\\.(\\\\d?\\\\d?\\\\d){0,255}\\\\.(\\\\d?\\\\d?\\\\d){0,255}\\\\.(\\\\d?\\\\d?\\\\d){0,255}$/.test(",") || ",'.split(".")[3] > 255']),m=i(["!/^((?=.*::)(?!.*::.+::)(::)?([\\dA-F]{1,4}:(:|\\b)|){5}|([\\dA-F]{1,4}:){6})((([\\dA-F]{1,4}((?!\\3)::|:\\b|$))|(?!\\2\\3)){2}|(((2[0-4]|1\\d|[1-9])?\\d|25[0-5])\\.?\\b){4})$/.test(",")"],["!/^((?=.*::)(?!.*::.+::)(::)?([\\\\dA-F]{1,4}:(:|\\\\b)|){5}|([\\\\dA-F]{1,4}:){6})((([\\\\dA-F]{1,4}((?!\\\\3)::|:\\\\b|$))|(?!\\\\2\\\\3)){2}|(((2[0-4]|1\\\\d|[1-9])?\\\\d|25[0-5])\\\\.?\\\\b){4})$/.test(",")"]),g=i(["/[^\\\\]\\\\[^.*+?^${}()|[\\]\\\\bBcdDfnrsStvwWxu0-9]/i.test(",")"],["/[^\\\\\\\\]\\\\\\\\[^.*+?^\\${}()|[\\\\]\\\\\\\\bBcdDfnrsStvwWxu0-9]/i.test(",")"]),y=i(["!/^$|^\\/(?:~(?=[01])|[^~])*$/i.test(",")"],["!/^$|^\\\\/(?:~(?=[01])|[^~])*$/i.test(",")"]),v=i(["!/^(?:[A-Za-z][A-Za-z0-9+\\-.]*:(?:\\/\\/(?:(?:[A-Za-z0-9\\-._~!$&'()*+,;=:]|%[0-9A-Fa-f]{2})*@)?(?:\\[(?:(?:(?:(?:[0-9A-Fa-f]{1,4}:){6}|::(?:[0-9A-Fa-f]{1,4}:){5}|(?:[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,1}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){3}|(?:(?:[0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){2}|(?:(?:[0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}:|(?:(?:[0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})?::)(?:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))|(?:(?:[0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})?::)|[Vv][0-9A-Fa-f]+\\.[A-Za-z0-9\\-._~!$&'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)|(?:[A-Za-z0-9\\-._~!$&'()*+,;=]|%[0-9A-Fa-f]{2})*)(?::[0-9]*)?(?:\\/(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*|\\/(?:(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:\\/(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*)?|(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:\\/(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*|)(?:\\?(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@\\/?]|%[0-9A-Fa-f]{2})*)?(?:\\#(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@\\/?]|%[0-9A-Fa-f]{2})*)?|(?:\\/\\/(?:(?:[A-Za-z0-9\\-._~!$&'()*+,;=:]|%[0-9A-Fa-f]{2})*@)?(?:\\[(?:(?:(?:(?:[0-9A-Fa-f]{1,4}:){6}|::(?:[0-9A-Fa-f]{1,4}:){5}|(?:[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,1}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){3}|(?:(?:[0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){2}|(?:(?:[0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}:|(?:(?:[0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})?::)(?:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))|(?:(?:[0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})?::)|[Vv][0-9A-Fa-f]+\\.[A-Za-z0-9\\-._~!$&'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)|(?:[A-Za-z0-9\\-._~!$&'()*+,;=]|%[0-9A-Fa-f]{2})*)(?::[0-9]*)?(?:\\/(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*|\\/(?:(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:\\/(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*)?|(?:[A-Za-z0-9\\-._~!$&'()*+,;=@]|%[0-9A-Fa-f]{2})+(?:\\/(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*|)(?:\\?(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@\\/?]|%[0-9A-Fa-f]{2})*)?(?:\\#(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@\\/?]|%[0-9A-Fa-f]{2})*)?)$/i.test(",")"],["!/^(?:[A-Za-z][A-Za-z0-9+\\\\-.]*:(?:\\\\/\\\\/(?:(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:]|%[0-9A-Fa-f]{2})*@)?(?:\\\\[(?:(?:(?:(?:[0-9A-Fa-f]{1,4}:){6}|::(?:[0-9A-Fa-f]{1,4}:){5}|(?:[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,1}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){3}|(?:(?:[0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){2}|(?:(?:[0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}:|(?:(?:[0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})?::)(?:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))|(?:(?:[0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})?::)|[Vv][0-9A-Fa-f]+\\\\.[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:]+)\\\\]|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)|(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=]|%[0-9A-Fa-f]{2})*)(?::[0-9]*)?(?:\\\\/(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*|\\\\/(?:(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:\\\\/(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*)?|(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:\\\\/(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*|)(?:\\\\?(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@\\\\/?]|%[0-9A-Fa-f]{2})*)?(?:\\\\#(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@\\\\/?]|%[0-9A-Fa-f]{2})*)?|(?:\\\\/\\\\/(?:(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:]|%[0-9A-Fa-f]{2})*@)?(?:\\\\[(?:(?:(?:(?:[0-9A-Fa-f]{1,4}:){6}|::(?:[0-9A-Fa-f]{1,4}:){5}|(?:[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,1}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){3}|(?:(?:[0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){2}|(?:(?:[0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}:|(?:(?:[0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})?::)(?:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))|(?:(?:[0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})?::)|[Vv][0-9A-Fa-f]+\\\\.[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:]+)\\\\]|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)|(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=]|%[0-9A-Fa-f]{2})*)(?::[0-9]*)?(?:\\\\/(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*|\\\\/(?:(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:\\\\/(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*)?|(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=@]|%[0-9A-Fa-f]{2})+(?:\\\\/(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*|)(?:\\\\?(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@\\\\/?]|%[0-9A-Fa-f]{2})*)?(?:\\\\#(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@\\\\/?]|%[0-9A-Fa-f]{2})*)?)$/i.test(",")"]),b=i(["!/^(?:(?:[^\\x00-\\x20\"'<>%\\\\^`{|}]|%[0-9a-f]{2})|\\{[+#.\\/;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?:\\:[1-9][0-9]{0,3}|\\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?:\\:[1-9][0-9]{0,3}|\\*)?)*\\})*$/i.test(",")"],["!/^(?:(?:[^\\\\x00-\\\\x20\"\\'<>%\\\\\\\\^\\`{|}]|%[0-9a-f]{2})|\\\\{[+#.\\\\/;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?:\\\\:[1-9][0-9]{0,3}|\\\\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?:\\\\:[1-9][0-9]{0,3}|\\\\*)?)*\\\\})*$/i.test(",")"]),M=n(2),w=M.expression;t.exports={alpha:w(r,"data"),alphanumeric:w(s,"data"),identifier:w(o,"data"),hexadecimal:w(a,"data"),numeric:w(c,"data"),"date-time":w(l,"data","data"),uppercase:w(u,"data","data"),lowercase:w(h,"data","data"),hostname:w(d,"data","data"),uri:w(f,"data"),email:w(p,"data"),ipv4:w(_,"data","data"),ipv6:w(m,"data"),regex:w(g,"data"),"json-pointer":w(y,"data"),"uri-reference":w(v,"data"),"uri-template":w(b,"data")}},function(t,e,n){"use strict";var i=n(11),r=n(12),s=n(13),o=n(14),a=n(16),c=n(17),l=n(18),u=n(19),h=n(20),d=n(21),f=n(22),p=n(23),_=n(24),m=n(25),g=n(26),y=n(27);t.exports={name:{$ref:a,required:i,format:r,property:s,type:o,not:c,anyOf:l,oneOf:u,allOf:h,dependencies:d,properties:f,patternProperties:p,items:_,contains:m,constant:g,propertyNames:y},list:[a,i,r,s,o,c,l,u,h,d,f,p,_,m,g,y]}},function(t,e,n){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports={readOnly:"false",exclusiveMinimum:function(t){return"%s <= "+t.exclusiveMinimum},minimum:function(t){return"%s < "+t.minimum},exclusiveMaximum:function(t){return"%s >= "+t.exclusiveMaximum},maximum:function(t){return"%s > "+t.maximum},multipleOf:'($1/$2) % 1 !== 0 && typeof $1 === "number"',pattern:function(t){var e=void 0,n=void 0;return"string"==typeof t.pattern?e=t.pattern:(e=t.pattern[0],n=t.pattern[1]),'typeof ($1) === "string" && !'+new RegExp(e,n)+".test($1)"},minLength:'typeof $1 === "string" && function dltml(b,c){for(var a=0,d=b.length;a=e&&a=e&&ac}($1, $2)',minItems:"$1.length < $2 && Array.isArray($1)",maxItems:"$1.length > $2 && Array.isArray($1)",uniqueItems:function(t,e){return t.uniqueItems?(e(e.cache("{}")),'Array.isArray($1) && $1.some(function(item, key) {\n if(item !== null && typeof item === "object") key = JSON.stringify(item);\n else key = item;\n if('+e.cache("{}")+".hasOwnProperty(key)) return true;\n "+e.cache("{}")+"[key] = true;\n })"):"true"},minProperties:'!Array.isArray($1) && typeof $1 === "object" && Object.keys($1).length < $2',maxProperties:'!Array.isArray($1) && typeof $1 === "object" && Object.keys($1).length > $2',enum:function(t,e){return t.enum.map(function(t){var n="$1",r=t;return"object"===(void 0===t?"undefined":i(t))?(r="'"+JSON.stringify(t)+"'",n=e.cache("JSON.stringify($1)")):"string"==typeof t&&(r="'"+escape(t)+"'"),n+" != decodeURIComponent("+r+")"}).join(" && ")}}},function(t,e,n){"use strict";t.exports=["$ref","$schema","type","not","anyOf","allOf","oneOf","properties","patternProperties","additionalProperties","items","additionalItems","required","default","title","description","definitions","dependencies","$id","contains","const","examples"]},function(t,e,n){"use strict";function i(t){return"string"!=typeof t?t:t.split(u)[0]}function r(t){return l.test(t)}function s(t){return t.replace(h,"$1")}function o(t){return"string"!=typeof t?t:t.split(u)[1]}function a(t){return t.filter(function(t){return"string"==typeof t}).reduce(function(t,e){if(!t.length||r(e))return e;if(!e)return t;if(0===e.indexOf("#")){var n=t.indexOf("#");return-1===n?t+e:t.slice(0,n)+e}var i=s(t)+e;return i+(-1===i.indexOf("#")?"#":"")},"")}function c(t){return decodeURIComponent(t.replace(/~1/g,"/").replace(/~0/g,"~"))}var l=/:\/\//,u=/#\/?/,h=/(^[^:]+:\/\/[^?#]*\/).*/,d={id:"$id"};t.exports={makePath:a,isFullUri:r,head:i,fragment:o,normalize:c,keys:d}},function(t,e,n){t.exports=n(9)},function(t,e,n){"use strict";function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!(this instanceof r))return new r(t);this.options=t,this.resolved={},this.state=new d(null,this),this.useVersion(t.version,t.versionConfigure),this.addFormat(t.formats)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=n(2),a=o.restore,c=o.expression,l=n(3),u=n(10),h=u.generate,d=u.State,f=n(28),p=f.add,_=f.use;Object.assign(r,{expression:c}),Object.assign(r.prototype,{validate:function(t,e){return this.resolve(t).fn(e)},addSchema:function(t,e){var n=this,i="object"===(void 0===t?"undefined":s(t))?t:e,r={schema:i,fn:h(this,i,void 0,this.options)};return[t,e.id].filter(function(t){return"string"==typeof t}).forEach(function(t){n.resolved[t]=Object.assign({name:t},r)}),r},removeSchema:function(t){t?delete this.resolved[t]:this.resolved={}},resolve:function(t){return"object"!==(void 0===t?"undefined":s(t))&&this.resolved[t]?this.resolved[t]:this.addSchema(t,this.state.resolve(t))},export:function(t){var e=this,n=void 0;return t?(n=this.resolve(t),n={name:t,schema:n.schema,fn:n.fn.toString()}):(n={},Object.keys(this.resolved).forEach(function(t){n[t]={name:t,schema:e.resolved[t].schema,fn:e.resolved[t].fn.toString()}})),JSON.stringify(n)},import:function(t){var e=this,n=JSON.parse(t),r=n;n.name&&n.fn&&n.schema&&(r=i({},n.name,n)),Object.keys(r).forEach(function(t){var n=r[t],i=n.name,s=n.schema,o=n.fn,c=a(o,s,e.options);e.resolved[i]={name:i,schema:s,fn:c}})},addFormat:function(t,e){"string"!=typeof t?"object"===(void 0===t?"undefined":s(t))&&Object.assign(l,t):l[t]=e},setErrorHandler:function(t){Object.assign(this.options,{errorHandler:t})},useVersion:function(t,e){"function"!=typeof e&&"draft-04"===t&&(e=n(29)),"function"==typeof e&&p(t,e),_(t)}}),t.exports=r},function(t,e,n){"use strict";function i(){var t=(arguments.length>0&&void 0!==arguments[0]&&arguments[0],arguments[1]);Object.assign(this,{context:[],entries:new Map,env:t})}function r(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new i(e,t),r=arguments[3],s=u(n,r);s.visit(e);var o=c(s,n,r);return l(o,e,r)}var s=n(4),o=s.list,a=n(2),c=a.body,l=a.restore,u=a.template,h=n(0),d=h.hasProperty,f=n(7),p=f.normalize,_=f.makePath,m=f.head,g=f.isFullUri,y=f.fragment,v=f.keys,b=n(1),M=b.is,w=b.transform;i.prototype=Object.assign(Object.create(Array.prototype),{addEntry:function(t,e){var n=this.entries.get(e);return!1===n?this.context.push(e):(void 0===n&&(this.entries.set(e,!1),n=r(this.env,e,this,{inner:!0}),this.entries.set(e,n),this.revealReference(e)),this.context.push(n))},revealReference:function(t){for(var e=this.context.indexOf(t);-1!==e;e=this.context.indexOf(t))this.context[e]=this.context.length},link:function(t){var e=this.resolve(t);return this.addEntry(t,e)},resolveReference:function(t){if(g(t))return t;for(var e=void 0,n=void 0,i=this.length-1;i>=0;i-=1,e=!1){var r=this[i],s=r[v.id],o=r.$ref;if(e=s||o,g(e)){n=i;break}}for(var a=[],c=this.length-1;c>n;c-=1){var l=this[c],u=l[v.id],h=l.$ref,d=u||h;m(d)&&a.push(d)}return _([e].concat(a,[t]))},ascend:function(t){for(var e=m(t),n=this.env.resolved[e]||{},i=n.schema,r=void 0===i?this[0]:i;r.$ref&&m(r.$ref)!==m(t)&&1===Object.keys(r).length;)r=this.ascend(r.$ref);return r},descend:function(t,e){var n=this,i=y(t);if(!i&&g(t))return e;i||(i=t);var r=i.split("/"),s=r.map(p).reduce(function(t,e,i){var s=t[e];return M(s)||(s=t.definitions&&t.definitions[e]),i!==r.length-1&&d(s,v.id)&&n.push(s),s},e);return M(s)?s:e},resolve:function(t){if("string"!=typeof t)return t;var e=this.resolveReference(t),n=this.ascend(e);return this.descend(t,n)},visit:function(t,e){var n=w(t),i=this.length;this.push(n),o.some(function(t){return t(n,e)}),this.length=i}}),t.exports={State:i,generate:r}},function(t,e,n){"use strict";t.exports=function(t,e){Array.isArray(t.required)&&e("if ("+e.data+" !== null && typeof "+e.data+" === 'object' && !Array.isArray("+e.data+")) {\n "+t.required.map(function(t){return"if (!"+e.data+'.hasOwnProperty(decodeURIComponent("'+escape(t)+'"))) '+e.error("required",t)}).join("")+"\n }")}},function(t,e,n){"use strict";var i=n(3);t.exports=function(t,e){if(void 0!==t.format){var n=i[t.format];"function"==typeof n&&e("if ("+n({data:e.data,schema:t})+") "+e.error("format"))}}},function(t,e,n){"use strict";var i=n(5),r=n(6),s=n(0),o=s.asExpression;t.exports=function(t,e){Object.keys(t).forEach(function(n){if(-1===r.indexOf(n)&&"format"!==n){var s=o(i[n],t,e);if(s){var a=e.error(n);e("if ("+s+") "+a,e.data,t[n])}}})}},function(t,e,n){"use strict";var i=n(15),r=n(0),s=r.hasProperty;t.exports=function(t,e){if(s(t,"type")){var n=e.error("type",t.type);e("if (("+[].concat(t.type).map(function(t){return i[t]}).join(") && (")+")) "+n,e.data)}}},function(t,e,n){"use strict";t.exports={null:"%s !== null",string:'typeof %s !== "string"',boolean:'typeof %s !== "boolean"',number:'typeof %s !== "number" || %s !== %s',integer:'typeof %s !== "number" || %s % 1 !== 0',object:'!%s || typeof %s !== "object" || Array.isArray(%s)',array:"!Array.isArray(%s)",date:"!(%s instanceof Date)"}},function(t,e,n){"use strict";var i=n(0),r=i.hasProperty;t.exports=function(t,e){return!!r(t,"$ref")&&(e("if ("+e.link(t.$ref)+"("+e.data+")) "+e.error("$ref")),!0)}},function(t,e,n){"use strict";var i=n(0),r=i.hasProperty;t.exports=function(t,e){r(t,"not")&&e("if (!"+e.link(t.not)+"("+e.data+")) "+e.error("not"))}},function(t,e,n){"use strict";var i=n(0),r=i.hasProperty;t.exports=function(t,e){if(r(t,"anyOf")){var n=e.error("anyOf"),i=t.anyOf.map(function(t){return e.link(t)+"("+e.data+")"}).join(" && ");e("if ("+i+") "+n)}}},function(t,e,n){"use strict";var i=n(0),r=i.hasProperty;t.exports=function(t,e){if(r(t,"oneOf")){var n=t.oneOf.map(function(t){return e.link(t)}),i=e.cache("["+n+"]"),s=e.cache("["+n+"]"),o=e.cache(s+".length - 1"),a=e.cache(s+".length - 1"),c=e.cache("0"),l=e.cache("0"),u=e.error("oneOf");e("for (\n "+i+", "+o+", "+c+";\n "+a+" >= 0 && "+a+" < "+s+".length;\n "+a+"--) {\n if(!"+s+"["+a+"]("+e.data+")) "+l+"++;\n }\n if ("+l+" !== 1) "+u+"\n ")}}},function(t,e,n){"use strict";var i=n(0),r=i.hasProperty;t.exports=function(t,e){if(r(t,"allOf")){var n=e.error("allOf"),i=t.allOf.map(function(t){return e.link(t)+"("+e.data+")"}).join(" || ");e("if ("+i+") "+n)}}},function(t,e,n){"use strict";function i(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e "+n+") "+r),t.items.forEach(function(t,n){e("if("+o+".length > "+n+") {"),o.push("["+n+"]"),e.visit(t),o.pop(),e("}")}),"object"===i(t.additionalItems)){var a=e.cache(n),c=e.cache(n);e("for ("+a+"; "+c+" < "+o+".length; "+c+"++) {"),o.push("["+e.cache(n)+"]"),e.visit(t.additionalItems),o.pop(),e("}")}}else{var l=e.cache("0"),u=e.cache("0");e("for ("+l+"; "+u+" < "+o+".length; "+u+"++) {"),o.push("["+u+"]"),e.visit(t.items),o.pop(),e("}")}e("}")}}},function(t,e,n){"use strict";var i=n(0),r=i.hasProperty;t.exports=function(t,e){if(r(t,"contains")){var n=e.error("contains"),i=""+e.link(t.contains),s=e.data,o=e.cache("0"),a=e.cache("0");e("if (Array.isArray("+s+")) {\n if ("+s+".length === 0) "+n+"\n for ("+o+"; "+a+" < "+s+".length; "+a+"++) {\n if (!"+i+"("+s.toString.apply(s.concat("["+a+"]"))+")) break;\n if ("+a+" === "+s+".length - 1) "+n+"\n }\n }")}}},function(t,e,n){"use strict";var i=n(0),r=i.hasProperty,s=n(1),o=s.make;t.exports=function(t,e){if(r(t,"const")){var n=o(t.const);e.visit(n)}}},function(t,e,n){"use strict";var i=n(0),r=i.hasProperty;t.exports=function(t,e){if(r(t,"propertyNames")){var n=e.link(t.propertyNames),i=e.error("propertyNames");e("if (Object.keys("+e.data+").some("+n+")) "+i)}}},function(t,e,n){"use strict";function i(t,e){f[t]=e}function r(t){t&&f[t]&&(0,f[t])({properties:s,keywords:o,validators:a,formats:c,keys:u,transformation:d})}var s=n(5),o=n(6),a=n(4),c=n(3),l=n(7),u=l.keys,h=n(1),d=h.transformation,f={};t.exports={add:i,use:r}},function(e,n){e.exports=t}])})},"3b32":function(t,e,n){"use strict";n.d(e,"a",function(){return f});var i=n("7b52"),r=n("ad3f"),s=n("e514"),o=n("67cf"),a=n("968e"),c=n("70d5"),l=n("cb24"),u=n("af76"),h=n("7c92"),d=n("69ba");class f{constructor(){f.constructor_.apply(this,arguments)}static constructor_(){if(this._edges=new c["a"],this._nodes=null,this._edgeEndList=new c["a"],0===arguments.length)this._nodes=new o["a"](new u["a"]);else if(1===arguments.length){const t=arguments[0];this._nodes=new o["a"](t)}}static linkResultDirectedEdges(t){for(let e=t.iterator();e.hasNext();){const t=e.next();t.getEdges().linkResultDirectedEdges()}}printEdges(t){t.println("Edges:");for(let e=0;e=11?t:t+12:"бегоҳ"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"шаб":t<11?"субҳ":t<16?"рӯз":t<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(t){var n=t%10,i=t>=100?100:null;return t+(e[t]||e[n]||e[i])},week:{dow:1,doy:7}});return n})},"3b1b6":function(t,e,n){!function(e,i){t.exports=i(n("2926"))}("undefined"!=typeof self&&self,function(t){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=8)}([function(t,e,n){"use strict";function i(t,e,n){return"function"!=typeof t?t:t(e,n)}function r(t,e){return"object"===(void 0===t?"undefined":s(t))&&Object.prototype.hasOwnProperty.call(t,e)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports={asExpression:i,hasProperty:r}},function(t,e,n){"use strict";function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(t){return"object"===(void 0===t?"undefined":a(t))||"boolean"==typeof t}function s(t){return!0===t?c.ANY_SCHEMA:!1===t?c.NOT_ANY_SCHEMA:t}function o(t){if("object"!==(void 0===t?"undefined":a(t))||null===t)return{enum:[t]};if(Array.isArray(t))return{items:t.map(o),additionalItems:!1};var e=Object.keys(t);return{properties:e.reduce(function(e,n){return Object.assign({},e,i({},n,o(t[n])))},{}),required:e}}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c={ANY_SCHEMA:{},NOT_ANY_SCHEMA:{not:{}}};t.exports={is:r,make:o,transform:s,transformation:c}},function(t,e,n){"use strict";function i(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e1?e-1:0),s=1;s2&&void 0!==arguments[2]?arguments[2]:{},i=n.inner,r=new Function("schema",t)(e);return i||(r.toString=function(){return t}),r}function a(t){var e=t.defineErrors,n=t.index;return"\n "+(e?"const errors = [];":"")+"\n "+(n?"let i"+Array.apply(void 0,i(Array(n))).map(function(t,e){return e+1}).join(",i")+";":"")+"\n "}function c(t){var e=t.context;if(t.inner||!e.length)return"";var n=[],i=[];return e.forEach(function(t,e){"number"!=typeof t?n.push(e+1+" = "+t):i.push(e+1+" = f"+(t+1))}),"const f"+n.concat(i).join(", f")+";"}function l(t){var e=t.defineErrors,n=t.lines,i=a(t),r=e?"if(errors.length) return errors;":"";return'\n "use strict";\n '+i+"\n "+n.join("\n")+"\n "+r+"\n "}function u(t,e){var n=t.cachedIndex,i=t.lines,r=e.context,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=s.inner,a=s.errorHandler,u={context:r,inner:o,defineErrors:a,index:n,lines:i};return"\n "+c(u)+"\n function f0(data) {\n "+l(u)+"\n }\n return f0;\n "}function h(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i= 256 || !/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])(\\.([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9]))*$/.test(",")"],["",".length >= 256 || !/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\\\-]{0,61}[a-zA-Z0-9])(\\\\.([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\\\-]{0,61}[a-zA-Z0-9]))*$/.test(",")"]),f=i(["!/^[A-Za-z][A-Za-z0-9+\\-.]*:(?:\\/\\/(?:(?:[A-Za-z0-9\\-._~!$&'()*+,;=:]|%[0-9A-Fa-f]{2})*@)?(?:\\[(?:(?:(?:(?:[0-9A-Fa-f]{1,4}:){6}|::(?:[0-9A-Fa-f]{1,4}:){5}|(?:[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,1}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){3}|(?:(?:[0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){2}|(?:(?:[0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}:|(?:(?:[0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})?::)(?:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))|(?:(?:[0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})?::)|[Vv][0-9A-Fa-f]+\\.[A-Za-z0-9\\-._~!$&'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)|(?:[A-Za-z0-9\\-._~!$&'()*+,;=]|%[0-9A-Fa-f]{2})*)(?::[0-9]*)?(?:\\/(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*|\\/(?:(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:\\/(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*)?|(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:\\/(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*|)(?:\\?(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@\\/?]|%[0-9A-Fa-f]{2})*)?(?:\\#(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@\\/?]|%[0-9A-Fa-f]{2})*)?$/.test(",")"],["!/^[A-Za-z][A-Za-z0-9+\\\\-.]*:(?:\\\\/\\\\/(?:(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:]|%[0-9A-Fa-f]{2})*@)?(?:\\\\[(?:(?:(?:(?:[0-9A-Fa-f]{1,4}:){6}|::(?:[0-9A-Fa-f]{1,4}:){5}|(?:[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,1}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){3}|(?:(?:[0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){2}|(?:(?:[0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}:|(?:(?:[0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})?::)(?:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))|(?:(?:[0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})?::)|[Vv][0-9A-Fa-f]+\\\\.[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:]+)\\\\]|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)|(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=]|%[0-9A-Fa-f]{2})*)(?::[0-9]*)?(?:\\\\/(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*|\\\\/(?:(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:\\\\/(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*)?|(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:\\\\/(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*|)(?:\\\\?(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@\\\\/?]|%[0-9A-Fa-f]{2})*)?(?:\\\\#(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@\\\\/?]|%[0-9A-Fa-f]{2})*)?$/.test(",")"]),p=i(["!/^[^@]+@[^@]+\\.[^@]+$/.test(",")"],["!/^[^@]+@[^@]+\\\\.[^@]+$/.test(",")"]),_=i(["!/^(\\d?\\d?\\d){0,255}\\.(\\d?\\d?\\d){0,255}\\.(\\d?\\d?\\d){0,255}\\.(\\d?\\d?\\d){0,255}$/.test(",") || ",'.split(".")[3] > 255'],["!/^(\\\\d?\\\\d?\\\\d){0,255}\\\\.(\\\\d?\\\\d?\\\\d){0,255}\\\\.(\\\\d?\\\\d?\\\\d){0,255}\\\\.(\\\\d?\\\\d?\\\\d){0,255}$/.test(",") || ",'.split(".")[3] > 255']),m=i(["!/^((?=.*::)(?!.*::.+::)(::)?([\\dA-F]{1,4}:(:|\\b)|){5}|([\\dA-F]{1,4}:){6})((([\\dA-F]{1,4}((?!\\3)::|:\\b|$))|(?!\\2\\3)){2}|(((2[0-4]|1\\d|[1-9])?\\d|25[0-5])\\.?\\b){4})$/.test(",")"],["!/^((?=.*::)(?!.*::.+::)(::)?([\\\\dA-F]{1,4}:(:|\\\\b)|){5}|([\\\\dA-F]{1,4}:){6})((([\\\\dA-F]{1,4}((?!\\\\3)::|:\\\\b|$))|(?!\\\\2\\\\3)){2}|(((2[0-4]|1\\\\d|[1-9])?\\\\d|25[0-5])\\\\.?\\\\b){4})$/.test(",")"]),g=i(["/[^\\\\]\\\\[^.*+?^${}()|[\\]\\\\bBcdDfnrsStvwWxu0-9]/i.test(",")"],["/[^\\\\\\\\]\\\\\\\\[^.*+?^\\${}()|[\\\\]\\\\\\\\bBcdDfnrsStvwWxu0-9]/i.test(",")"]),y=i(["!/^$|^\\/(?:~(?=[01])|[^~])*$/i.test(",")"],["!/^$|^\\\\/(?:~(?=[01])|[^~])*$/i.test(",")"]),v=i(["!/^(?:[A-Za-z][A-Za-z0-9+\\-.]*:(?:\\/\\/(?:(?:[A-Za-z0-9\\-._~!$&'()*+,;=:]|%[0-9A-Fa-f]{2})*@)?(?:\\[(?:(?:(?:(?:[0-9A-Fa-f]{1,4}:){6}|::(?:[0-9A-Fa-f]{1,4}:){5}|(?:[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,1}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){3}|(?:(?:[0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){2}|(?:(?:[0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}:|(?:(?:[0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})?::)(?:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))|(?:(?:[0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})?::)|[Vv][0-9A-Fa-f]+\\.[A-Za-z0-9\\-._~!$&'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)|(?:[A-Za-z0-9\\-._~!$&'()*+,;=]|%[0-9A-Fa-f]{2})*)(?::[0-9]*)?(?:\\/(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*|\\/(?:(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:\\/(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*)?|(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:\\/(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*|)(?:\\?(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@\\/?]|%[0-9A-Fa-f]{2})*)?(?:\\#(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@\\/?]|%[0-9A-Fa-f]{2})*)?|(?:\\/\\/(?:(?:[A-Za-z0-9\\-._~!$&'()*+,;=:]|%[0-9A-Fa-f]{2})*@)?(?:\\[(?:(?:(?:(?:[0-9A-Fa-f]{1,4}:){6}|::(?:[0-9A-Fa-f]{1,4}:){5}|(?:[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,1}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){3}|(?:(?:[0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){2}|(?:(?:[0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}:|(?:(?:[0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})?::)(?:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))|(?:(?:[0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})?::)|[Vv][0-9A-Fa-f]+\\.[A-Za-z0-9\\-._~!$&'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)|(?:[A-Za-z0-9\\-._~!$&'()*+,;=]|%[0-9A-Fa-f]{2})*)(?::[0-9]*)?(?:\\/(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*|\\/(?:(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:\\/(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*)?|(?:[A-Za-z0-9\\-._~!$&'()*+,;=@]|%[0-9A-Fa-f]{2})+(?:\\/(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*|)(?:\\?(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@\\/?]|%[0-9A-Fa-f]{2})*)?(?:\\#(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@\\/?]|%[0-9A-Fa-f]{2})*)?)$/i.test(",")"],["!/^(?:[A-Za-z][A-Za-z0-9+\\\\-.]*:(?:\\\\/\\\\/(?:(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:]|%[0-9A-Fa-f]{2})*@)?(?:\\\\[(?:(?:(?:(?:[0-9A-Fa-f]{1,4}:){6}|::(?:[0-9A-Fa-f]{1,4}:){5}|(?:[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,1}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){3}|(?:(?:[0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){2}|(?:(?:[0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}:|(?:(?:[0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})?::)(?:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))|(?:(?:[0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})?::)|[Vv][0-9A-Fa-f]+\\\\.[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:]+)\\\\]|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)|(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=]|%[0-9A-Fa-f]{2})*)(?::[0-9]*)?(?:\\\\/(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*|\\\\/(?:(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:\\\\/(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*)?|(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:\\\\/(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*|)(?:\\\\?(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@\\\\/?]|%[0-9A-Fa-f]{2})*)?(?:\\\\#(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@\\\\/?]|%[0-9A-Fa-f]{2})*)?|(?:\\\\/\\\\/(?:(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:]|%[0-9A-Fa-f]{2})*@)?(?:\\\\[(?:(?:(?:(?:[0-9A-Fa-f]{1,4}:){6}|::(?:[0-9A-Fa-f]{1,4}:){5}|(?:[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,1}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){3}|(?:(?:[0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){2}|(?:(?:[0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}:|(?:(?:[0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})?::)(?:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))|(?:(?:[0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})?::)|[Vv][0-9A-Fa-f]+\\\\.[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:]+)\\\\]|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)|(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=]|%[0-9A-Fa-f]{2})*)(?::[0-9]*)?(?:\\\\/(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*|\\\\/(?:(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:\\\\/(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*)?|(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=@]|%[0-9A-Fa-f]{2})+(?:\\\\/(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*|)(?:\\\\?(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@\\\\/?]|%[0-9A-Fa-f]{2})*)?(?:\\\\#(?:[A-Za-z0-9\\\\-._~!$&\\'()*+,;=:@\\\\/?]|%[0-9A-Fa-f]{2})*)?)$/i.test(",")"]),b=i(["!/^(?:(?:[^\\x00-\\x20\"'<>%\\\\^`{|}]|%[0-9a-f]{2})|\\{[+#.\\/;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?:\\:[1-9][0-9]{0,3}|\\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?:\\:[1-9][0-9]{0,3}|\\*)?)*\\})*$/i.test(",")"],["!/^(?:(?:[^\\\\x00-\\\\x20\"\\'<>%\\\\\\\\^\\`{|}]|%[0-9a-f]{2})|\\\\{[+#.\\\\/;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?:\\\\:[1-9][0-9]{0,3}|\\\\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?:\\\\:[1-9][0-9]{0,3}|\\\\*)?)*\\\\})*$/i.test(",")"]),M=n(2),w=M.expression;t.exports={alpha:w(r,"data"),alphanumeric:w(s,"data"),identifier:w(o,"data"),hexadecimal:w(a,"data"),numeric:w(c,"data"),"date-time":w(l,"data","data"),uppercase:w(u,"data","data"),lowercase:w(h,"data","data"),hostname:w(d,"data","data"),uri:w(f,"data"),email:w(p,"data"),ipv4:w(_,"data","data"),ipv6:w(m,"data"),regex:w(g,"data"),"json-pointer":w(y,"data"),"uri-reference":w(v,"data"),"uri-template":w(b,"data")}},function(t,e,n){"use strict";var i=n(11),r=n(12),s=n(13),o=n(14),a=n(16),c=n(17),l=n(18),u=n(19),h=n(20),d=n(21),f=n(22),p=n(23),_=n(24),m=n(25),g=n(26),y=n(27);t.exports={name:{$ref:a,required:i,format:r,property:s,type:o,not:c,anyOf:l,oneOf:u,allOf:h,dependencies:d,properties:f,patternProperties:p,items:_,contains:m,constant:g,propertyNames:y},list:[a,i,r,s,o,c,l,u,h,d,f,p,_,m,g,y]}},function(t,e,n){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports={readOnly:"false",exclusiveMinimum:function(t){return"%s <= "+t.exclusiveMinimum},minimum:function(t){return"%s < "+t.minimum},exclusiveMaximum:function(t){return"%s >= "+t.exclusiveMaximum},maximum:function(t){return"%s > "+t.maximum},multipleOf:'($1/$2) % 1 !== 0 && typeof $1 === "number"',pattern:function(t){var e=void 0,n=void 0;return"string"==typeof t.pattern?e=t.pattern:(e=t.pattern[0],n=t.pattern[1]),'typeof ($1) === "string" && !'+new RegExp(e,n)+".test($1)"},minLength:'typeof $1 === "string" && function dltml(b,c){for(var a=0,d=b.length;a=e&&a=e&&ac}($1, $2)',minItems:"$1.length < $2 && Array.isArray($1)",maxItems:"$1.length > $2 && Array.isArray($1)",uniqueItems:function(t,e){return t.uniqueItems?(e(e.cache("{}")),'Array.isArray($1) && $1.some(function(item, key) {\n if(item !== null && typeof item === "object") key = JSON.stringify(item);\n else key = item;\n if('+e.cache("{}")+".hasOwnProperty(key)) return true;\n "+e.cache("{}")+"[key] = true;\n })"):"true"},minProperties:'!Array.isArray($1) && typeof $1 === "object" && Object.keys($1).length < $2',maxProperties:'!Array.isArray($1) && typeof $1 === "object" && Object.keys($1).length > $2',enum:function(t,e){return t.enum.map(function(t){var n="$1",r=t;return"object"===(void 0===t?"undefined":i(t))?(r="'"+JSON.stringify(t)+"'",n=e.cache("JSON.stringify($1)")):"string"==typeof t&&(r="'"+escape(t)+"'"),n+" != decodeURIComponent("+r+")"}).join(" && ")}}},function(t,e,n){"use strict";t.exports=["$ref","$schema","type","not","anyOf","allOf","oneOf","properties","patternProperties","additionalProperties","items","additionalItems","required","default","title","description","definitions","dependencies","$id","contains","const","examples"]},function(t,e,n){"use strict";function i(t){return"string"!=typeof t?t:t.split(u)[0]}function r(t){return l.test(t)}function s(t){return t.replace(h,"$1")}function o(t){return"string"!=typeof t?t:t.split(u)[1]}function a(t){return t.filter(function(t){return"string"==typeof t}).reduce(function(t,e){if(!t.length||r(e))return e;if(!e)return t;if(0===e.indexOf("#")){var n=t.indexOf("#");return-1===n?t+e:t.slice(0,n)+e}var i=s(t)+e;return i+(-1===i.indexOf("#")?"#":"")},"")}function c(t){return decodeURIComponent(t.replace(/~1/g,"/").replace(/~0/g,"~"))}var l=/:\/\//,u=/#\/?/,h=/(^[^:]+:\/\/[^?#]*\/).*/,d={id:"$id"};t.exports={makePath:a,isFullUri:r,head:i,fragment:o,normalize:c,keys:d}},function(t,e,n){t.exports=n(9)},function(t,e,n){"use strict";function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!(this instanceof r))return new r(t);this.options=t,this.resolved={},this.state=new d(null,this),this.useVersion(t.version,t.versionConfigure),this.addFormat(t.formats)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=n(2),a=o.restore,c=o.expression,l=n(3),u=n(10),h=u.generate,d=u.State,f=n(28),p=f.add,_=f.use;Object.assign(r,{expression:c}),Object.assign(r.prototype,{validate:function(t,e){return this.resolve(t).fn(e)},addSchema:function(t,e){var n=this,i="object"===(void 0===t?"undefined":s(t))?t:e,r={schema:i,fn:h(this,i,void 0,this.options)};return[t,e.id].filter(function(t){return"string"==typeof t}).forEach(function(t){n.resolved[t]=Object.assign({name:t},r)}),r},removeSchema:function(t){t?delete this.resolved[t]:this.resolved={}},resolve:function(t){return"object"!==(void 0===t?"undefined":s(t))&&this.resolved[t]?this.resolved[t]:this.addSchema(t,this.state.resolve(t))},export:function(t){var e=this,n=void 0;return t?(n=this.resolve(t),n={name:t,schema:n.schema,fn:n.fn.toString()}):(n={},Object.keys(this.resolved).forEach(function(t){n[t]={name:t,schema:e.resolved[t].schema,fn:e.resolved[t].fn.toString()}})),JSON.stringify(n)},import:function(t){var e=this,n=JSON.parse(t),r=n;n.name&&n.fn&&n.schema&&(r=i({},n.name,n)),Object.keys(r).forEach(function(t){var n=r[t],i=n.name,s=n.schema,o=n.fn,c=a(o,s,e.options);e.resolved[i]={name:i,schema:s,fn:c}})},addFormat:function(t,e){"string"!=typeof t?"object"===(void 0===t?"undefined":s(t))&&Object.assign(l,t):l[t]=e},setErrorHandler:function(t){Object.assign(this.options,{errorHandler:t})},useVersion:function(t,e){"function"!=typeof e&&"draft-04"===t&&(e=n(29)),"function"==typeof e&&p(t,e),_(t)}}),t.exports=r},function(t,e,n){"use strict";function i(){var t=(arguments.length>0&&void 0!==arguments[0]&&arguments[0],arguments[1]);Object.assign(this,{context:[],entries:new Map,env:t})}function r(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new i(e,t),r=arguments[3],s=u(n,r);s.visit(e);var o=c(s,n,r);return l(o,e,r)}var s=n(4),o=s.list,a=n(2),c=a.body,l=a.restore,u=a.template,h=n(0),d=h.hasProperty,f=n(7),p=f.normalize,_=f.makePath,m=f.head,g=f.isFullUri,y=f.fragment,v=f.keys,b=n(1),M=b.is,w=b.transform;i.prototype=Object.assign(Object.create(Array.prototype),{addEntry:function(t,e){var n=this.entries.get(e);return!1===n?this.context.push(e):(void 0===n&&(this.entries.set(e,!1),n=r(this.env,e,this,{inner:!0}),this.entries.set(e,n),this.revealReference(e)),this.context.push(n))},revealReference:function(t){for(var e=this.context.indexOf(t);-1!==e;e=this.context.indexOf(t))this.context[e]=this.context.length},link:function(t){var e=this.resolve(t);return this.addEntry(t,e)},resolveReference:function(t){if(g(t))return t;for(var e=void 0,n=void 0,i=this.length-1;i>=0;i-=1,e=!1){var r=this[i],s=r[v.id],o=r.$ref;if(e=s||o,g(e)){n=i;break}}for(var a=[],c=this.length-1;c>n;c-=1){var l=this[c],u=l[v.id],h=l.$ref,d=u||h;m(d)&&a.push(d)}return _([e].concat(a,[t]))},ascend:function(t){for(var e=m(t),n=this.env.resolved[e]||{},i=n.schema,r=void 0===i?this[0]:i;r.$ref&&m(r.$ref)!==m(t)&&1===Object.keys(r).length;)r=this.ascend(r.$ref);return r},descend:function(t,e){var n=this,i=y(t);if(!i&&g(t))return e;i||(i=t);var r=i.split("/"),s=r.map(p).reduce(function(t,e,i){var s=t[e];return M(s)||(s=t.definitions&&t.definitions[e]),i!==r.length-1&&d(s,v.id)&&n.push(s),s},e);return M(s)?s:e},resolve:function(t){if("string"!=typeof t)return t;var e=this.resolveReference(t),n=this.ascend(e);return this.descend(t,n)},visit:function(t,e){var n=w(t),i=this.length;this.push(n),o.some(function(t){return t(n,e)}),this.length=i}}),t.exports={State:i,generate:r}},function(t,e,n){"use strict";t.exports=function(t,e){Array.isArray(t.required)&&e("if ("+e.data+" !== null && typeof "+e.data+" === 'object' && !Array.isArray("+e.data+")) {\n "+t.required.map(function(t){return"if (!"+e.data+'.hasOwnProperty(decodeURIComponent("'+escape(t)+'"))) '+e.error("required",t)}).join("")+"\n }")}},function(t,e,n){"use strict";var i=n(3);t.exports=function(t,e){if(void 0!==t.format){var n=i[t.format];"function"==typeof n&&e("if ("+n({data:e.data,schema:t})+") "+e.error("format"))}}},function(t,e,n){"use strict";var i=n(5),r=n(6),s=n(0),o=s.asExpression;t.exports=function(t,e){Object.keys(t).forEach(function(n){if(-1===r.indexOf(n)&&"format"!==n){var s=o(i[n],t,e);if(s){var a=e.error(n);e("if ("+s+") "+a,e.data,t[n])}}})}},function(t,e,n){"use strict";var i=n(15),r=n(0),s=r.hasProperty;t.exports=function(t,e){if(s(t,"type")){var n=e.error("type",t.type);e("if (("+[].concat(t.type).map(function(t){return i[t]}).join(") && (")+")) "+n,e.data)}}},function(t,e,n){"use strict";t.exports={null:"%s !== null",string:'typeof %s !== "string"',boolean:'typeof %s !== "boolean"',number:'typeof %s !== "number" || %s !== %s',integer:'typeof %s !== "number" || %s % 1 !== 0',object:'!%s || typeof %s !== "object" || Array.isArray(%s)',array:"!Array.isArray(%s)",date:"!(%s instanceof Date)"}},function(t,e,n){"use strict";var i=n(0),r=i.hasProperty;t.exports=function(t,e){return!!r(t,"$ref")&&(e("if ("+e.link(t.$ref)+"("+e.data+")) "+e.error("$ref")),!0)}},function(t,e,n){"use strict";var i=n(0),r=i.hasProperty;t.exports=function(t,e){r(t,"not")&&e("if (!"+e.link(t.not)+"("+e.data+")) "+e.error("not"))}},function(t,e,n){"use strict";var i=n(0),r=i.hasProperty;t.exports=function(t,e){if(r(t,"anyOf")){var n=e.error("anyOf"),i=t.anyOf.map(function(t){return e.link(t)+"("+e.data+")"}).join(" && ");e("if ("+i+") "+n)}}},function(t,e,n){"use strict";var i=n(0),r=i.hasProperty;t.exports=function(t,e){if(r(t,"oneOf")){var n=t.oneOf.map(function(t){return e.link(t)}),i=e.cache("["+n+"]"),s=e.cache("["+n+"]"),o=e.cache(s+".length - 1"),a=e.cache(s+".length - 1"),c=e.cache("0"),l=e.cache("0"),u=e.error("oneOf");e("for (\n "+i+", "+o+", "+c+";\n "+a+" >= 0 && "+a+" < "+s+".length;\n "+a+"--) {\n if(!"+s+"["+a+"]("+e.data+")) "+l+"++;\n }\n if ("+l+" !== 1) "+u+"\n ")}}},function(t,e,n){"use strict";var i=n(0),r=i.hasProperty;t.exports=function(t,e){if(r(t,"allOf")){var n=e.error("allOf"),i=t.allOf.map(function(t){return e.link(t)+"("+e.data+")"}).join(" || ");e("if ("+i+") "+n)}}},function(t,e,n){"use strict";function i(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e "+n+") "+r),t.items.forEach(function(t,n){e("if("+o+".length > "+n+") {"),o.push("["+n+"]"),e.visit(t),o.pop(),e("}")}),"object"===i(t.additionalItems)){var a=e.cache(n),c=e.cache(n);e("for ("+a+"; "+c+" < "+o+".length; "+c+"++) {"),o.push("["+e.cache(n)+"]"),e.visit(t.additionalItems),o.pop(),e("}")}}else{var l=e.cache("0"),u=e.cache("0");e("for ("+l+"; "+u+" < "+o+".length; "+u+"++) {"),o.push("["+u+"]"),e.visit(t.items),o.pop(),e("}")}e("}")}}},function(t,e,n){"use strict";var i=n(0),r=i.hasProperty;t.exports=function(t,e){if(r(t,"contains")){var n=e.error("contains"),i=""+e.link(t.contains),s=e.data,o=e.cache("0"),a=e.cache("0");e("if (Array.isArray("+s+")) {\n if ("+s+".length === 0) "+n+"\n for ("+o+"; "+a+" < "+s+".length; "+a+"++) {\n if (!"+i+"("+s.toString.apply(s.concat("["+a+"]"))+")) break;\n if ("+a+" === "+s+".length - 1) "+n+"\n }\n }")}}},function(t,e,n){"use strict";var i=n(0),r=i.hasProperty,s=n(1),o=s.make;t.exports=function(t,e){if(r(t,"const")){var n=o(t.const);e.visit(n)}}},function(t,e,n){"use strict";var i=n(0),r=i.hasProperty;t.exports=function(t,e){if(r(t,"propertyNames")){var n=e.link(t.propertyNames),i=e.error("propertyNames");e("if (Object.keys("+e.data+").some("+n+")) "+i)}}},function(t,e,n){"use strict";function i(t,e){f[t]=e}function r(t){t&&f[t]&&(0,f[t])({properties:s,keywords:o,validators:a,formats:c,keys:u,transformation:d})}var s=n(5),o=n(6),a=n(4),c=n(3),l=n(7),u=l.keys,h=n(1),d=h.transformation,f={};t.exports={add:i,use:r}},function(e,n){e.exports=t}])})},"3b32":function(t,e,n){"use strict";n.d(e,"a",function(){return f});var i=n("7b52"),r=n("ad3f"),s=n("e514"),o=n("67cf"),a=n("968e"),c=n("70d5"),l=n("cb24"),u=n("af76"),h=n("7c92"),d=n("69ba");class f{constructor(){f.constructor_.apply(this,arguments)}static constructor_(){if(this._edges=new c["a"],this._nodes=null,this._edgeEndList=new c["a"],0===arguments.length)this._nodes=new o["a"](new u["a"]);else if(1===arguments.length){const t=arguments[0];this._nodes=new o["a"](t)}}static linkResultDirectedEdges(t){for(let e=t.iterator();e.hasNext();){const t=e.next();t.getEdges().linkResultDirectedEdges()}}printEdges(t){t.println("Edges:");for(let e=0;e1&&t<5&&1!==~~(t/10)}function o(t,e,n,i){var r=t+" ";switch(n){case"s":return e||i?"pár sekund":"pár sekundami";case"ss":return e||i?r+(s(t)?"sekundy":"sekund"):r+"sekundami";case"m":return e?"minuta":i?"minutu":"minutou";case"mm":return e||i?r+(s(t)?"minuty":"minut"):r+"minutami";case"h":return e?"hodina":i?"hodinu":"hodinou";case"hh":return e||i?r+(s(t)?"hodiny":"hodin"):r+"hodinami";case"d":return e||i?"den":"dnem";case"dd":return e||i?r+(s(t)?"dny":"dní"):r+"dny";case"M":return e||i?"měsíc":"měsícem";case"MM":return e||i?r+(s(t)?"měsíce":"měsíců"):r+"měsíci";case"y":return e||i?"rok":"rokem";case"yy":return e||i?r+(s(t)?"roky":"let"):r+"lety"}}var a=t.defineLocale("cs",{months:e,monthsShort:n,monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a})},"3c11":function(t,e,n){"use strict";var i=n("63b6"),r=n("584a"),s=n("e53d"),o=n("f201"),a=n("cd78");i(i.P+i.R,"Promise",{finally:function(t){var e=o(this,r.Promise||s.Promise),n="function"==typeof t;return this.then(n?function(n){return a(e,t()).then(function(){return n})}:t,n?function(n){return a(e,t()).then(function(){throw n})}:t)}})},"3c22":function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("5c38"),r=function(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32};function s(t,e,n){var r=n?Object(i["b"])(n):"null";return e+":"+t+":"+r}r.prototype.clear=function(){this.cache_={},this.cacheSize_=0},r.prototype.expire=function(){if(this.cacheSize_>this.maxCacheSize_){var t=0;for(var e in this.cache_){var n=this.cache_[e];0!==(3&t++)||n.hasListener()||(delete this.cache_[e],--this.cacheSize_)}}},r.prototype.get=function(t,e,n){var i=s(t,e,n);return i in this.cache_?this.cache_[i]:null},r.prototype.set=function(t,e,n,i){var r=s(t,e,n);this.cache_[r]=i,++this.cacheSize_},r.prototype.setSize=function(t){this.maxCacheSize_=t,this.expire()};var o=new r},"3c35":function(t,e){(function(e){t.exports=e}).call(this,{})},"3c81":function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"b",function(){return l});var i=n("0999"),r=n("0af5"),s=n("7fc9"),o=n("256f");function a(t,e,n,i){var s=Object(o["l"])(n,e,t),a=Object(o["h"])(e,i,n),c=e.getMetersPerUnit();void 0!==c&&(a*=c);var l=t.getMetersPerUnit();void 0!==l&&(a/=l);var u=t.getExtent();if(!u||Object(r["f"])(u,s)){var h=Object(o["h"])(t,a,s)/a;isFinite(h)&&h>0&&(a/=h)}return a}function c(t,e,n,i){var r=n-t,s=i-e,o=Math.sqrt(r*r+s*s);return[Math.round(n+r/o),Math.round(i+s/o)]}function l(t,e,n,o,a,l,u,h,d,f,p){var _=Object(i["a"])(Math.round(n*t),Math.round(n*e));if(0===d.length)return _.canvas;_.scale(n,n);var m=Object(r["j"])();d.forEach(function(t,e,n){Object(r["q"])(m,t.extent)});var g=Object(r["E"])(m),y=Object(r["A"])(m),v=Object(i["a"])(Math.round(n*g/o),Math.round(n*y/o)),b=n/o;d.forEach(function(t,e,n){var i=t.extent[0]-m[0],s=-(t.extent[3]-m[3]),o=Object(r["E"])(t.extent),a=Object(r["A"])(t.extent);v.drawImage(t.image,f,f,t.image.width-2*f,t.image.height-2*f,i*b,s*b,o*b,a*b)});var M=Object(r["C"])(u);return h.getTriangles().forEach(function(t,e,i){var r=t.source,a=t.target,u=r[0][0],h=r[0][1],d=r[1][0],f=r[1][1],p=r[2][0],g=r[2][1],y=(a[0][0]-M[0])/l,b=-(a[0][1]-M[1])/l,w=(a[1][0]-M[0])/l,x=-(a[1][1]-M[1])/l,L=(a[2][0]-M[0])/l,E=-(a[2][1]-M[1])/l,T=u,S=h;u=0,h=0,d-=T,f-=S,p-=T,g-=S;var O=[[d,f,0,0,w-y],[p,g,0,0,L-y],[0,0,d,f,x-b],[0,0,p,g,E-b]],k=Object(s["e"])(O);if(k){_.save(),_.beginPath();var C=(y+w+L)/3,I=(b+x+E)/3,D=c(C,I,y,b),R=c(C,I,w,x),A=c(C,I,L,E);_.moveTo(R[0],R[1]),_.lineTo(D[0],D[1]),_.lineTo(A[0],A[1]),_.clip(),_.transform(k[0],k[2],k[1],k[3],y,b),_.translate(m[0]-T,m[3]-S),_.scale(o/n,-o/n),_.drawImage(v.canvas,0,0),_.restore()}}),p&&(_.save(),_.strokeStyle="black",_.lineWidth=1,h.getTriangles().forEach(function(t,e,n){var i=t.target,r=(i[0][0]-M[0])/l,s=-(i[0][1]-M[1])/l,o=(i[1][0]-M[0])/l,a=-(i[1][1]-M[1])/l,c=(i[2][0]-M[0])/l,u=-(i[2][1]-M[1])/l;_.beginPath(),_.moveTo(o,a),_.lineTo(r,s),_.lineTo(c,u),_.closePath(),_.stroke()}),_.restore()),_.canvas}},"3d49":function(t,e,n){},"3d5b":function(t,e,n){"use strict";n("551c"),n("f751");var i=n("cd88"),r={props:{popover:Boolean,modal:Boolean},computed:{isPopover:function(){return!!this.popover||!this.modal&&(this.$q.platform.is.desktop&&!this.$q.platform.within.iframe)}}},s=n("559e"),o=(n("6762"),n("2fdb"),n("c5f6"),n("7037")),a=n.n(o),c=n("73f5"),l=function(t){var e=a()(t);return null===t||void 0===t||"number"===e||"string"===e||Object(c["a"])(t)},u={value:{validator:l,required:!0},defaultValue:{type:[String,Number,Date],default:null},type:{type:String,default:"date",validator:function(t){return["date","time","datetime"].includes(t)}},color:{type:String,default:"primary"},dark:Boolean,min:{validator:l,default:null},max:{validator:l,default:null},headerLabel:String,firstDayOfWeek:Number,formatModel:{type:String,default:"auto",validator:function(t){return["auto","date","number","string"].includes(t)}},format24h:{type:[Boolean,Number],default:0,validator:function(t){return[!0,!1,0].includes(t)}},defaultView:{type:String,validator:function(t){return["year","month","day","hour","minute"].includes(t)}},minimal:Boolean},h={format:String,okLabel:String,cancelLabel:String,displayValue:String},d=n("2054"),f=n("52b5"),p=n("b5b8"),_=n("abcf"),m=n("b18c"),g=n("482e"),y=(n("28a5"),n("4917"),n("cadf"),n("456d"),n("ac6a"),n("a481"),n("177b")),v=n("b157"),b=864e5,M=36e5,w=6e4,x=/\[((?:[^\]\\]|\\]|\\)*)\]|d{1,4}|M{1,4}|m{1,2}|w{1,2}|Qo|Do|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]/g,L=/^[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}(.[0-9]{6})?$/;function E(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t>0?"-":"+",i=Math.abs(t),r=Math.floor(i/60),s=i%60;return n+Object(y["d"])(r)+e+Object(y["d"])(s)}function T(t,e){var n=new Date(t.getFullYear(),e,0,0,0,0,0),i=n.getDate();t.setMonth(e-1,Math.min(i,t.getDate()))}function S(t){return new Date(Object(c["c"])(t)&&null!==L.exec(t)?t.substring(0,23).replace(" ","T"):t)}function O(t){if("number"===typeof t)return!0;var e=Date.parse(t);return!1===isNaN(e)}function k(t){var e=new Date(t.getFullYear(),t.getMonth(),t.getDate());e.setDate(e.getDate()-(e.getDay()+6)%7+3);var n=new Date(e.getFullYear(),0,4);n.setDate(n.getDate()-(n.getDay()+6)%7+3);var i=e.getTimezoneOffset()-n.getTimezoneOffset();e.setHours(e.getHours()-i);var r=(e-n)/(7*b);return 1+Math.floor(r)}function C(t,e,n){var i=S(t),r="set".concat(n?"UTC":"");return Object.keys(e).forEach(function(t){if("month"!==t){var n="year"===t?"FullYear":t.charAt(0).toUpperCase()+t.slice(1);i["".concat(r).concat(n)](e[t])}else T(i,e.month)}),i}function I(t,e){var n=S(t);switch(e){case"year":n.setMonth(0);case"month":n.setDate(1);case"day":n.setHours(0);case"hour":n.setMinutes(0);case"minute":n.setSeconds(0);case"second":n.setMilliseconds(0)}return n}function D(t,e,n){return(t.getTime()-t.getTimezoneOffset()*w-(e.getTime()-e.getTimezoneOffset()*w))/n}function R(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"days",i=S(t),r=S(e);switch(n){case"years":return i.getFullYear()-r.getFullYear();case"months":return 12*(i.getFullYear()-r.getFullYear())+i.getMonth()-r.getMonth();case"days":return D(I(i,"day"),I(r,"day"),b);case"hours":return D(I(i,"hour"),I(r,"hour"),M);case"minutes":return D(I(i,"minute"),I(r,"minute"),w);case"seconds":return D(I(i,"second"),I(r,"second"),1e3)}}function A(t){return R(t,I(t,"year"),"days")+1}function N(t){return Object(c["a"])(t)?"date":"number"===typeof t?"number":"string"}function Y(t,e,n){if(t||0===t)switch(e){case"date":return t;case"number":return t.getTime();default:return q(t,n)}}function P(t,e,n){var i=S(t);if(e){var r=S(e);if(is)return s}return i}function j(t,e,n){var i=S(t),r=S(e);if(void 0===n)return i.getTime()===r.getTime();switch(n){case"second":if(i.getSeconds()!==r.getSeconds())return!1;case"minute":if(i.getMinutes()!==r.getMinutes())return!1;case"hour":if(i.getHours()!==r.getHours())return!1;case"day":if(i.getDate()!==r.getDate())return!1;case"month":if(i.getMonth()!==r.getMonth())return!1;case"year":if(i.getFullYear()!==r.getFullYear())return!1;break;default:throw new Error("date isSameDate unknown unit ".concat(n))}return!0}function F(t){if(t>=11&&t<=13)return"".concat(t,"th");switch(t%10){case 1:return"".concat(t,"st");case 2:return"".concat(t,"nd");case 3:return"".concat(t,"rd")}return"".concat(t,"th")}var H={YY:function(t){return Object(y["d"])(t.getFullYear(),4).substr(2)},YYYY:function(t){return Object(y["d"])(t.getFullYear(),4)},M:function(t){return t.getMonth()+1},MM:function(t){return Object(y["d"])(t.getMonth()+1)},MMM:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(e.monthNamesShort||v["a"].lang.date.monthsShort)[t.getMonth()]},MMMM:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(e.monthNames||v["a"].lang.date.months)[t.getMonth()]},Q:function(t){return Math.ceil((t.getMonth()+1)/3)},Qo:function(t){return F(this.Q(t))},D:function(t){return t.getDate()},Do:function(t){return F(t.getDate())},DD:function(t){return Object(y["d"])(t.getDate())},DDD:function(t){return A(t)},DDDD:function(t){return Object(y["d"])(A(t),3)},d:function(t){return t.getDay()},dd:function(t){return this.dddd(t).slice(0,2)},ddd:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(e.dayNamesShort||v["a"].lang.date.daysShort)[t.getDay()]},dddd:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(e.dayNames||v["a"].lang.date.days)[t.getDay()]},E:function(t){return t.getDay()||7},w:function(t){return k(t)},ww:function(t){return Object(y["d"])(k(t))},H:function(t){return t.getHours()},HH:function(t){return Object(y["d"])(t.getHours())},h:function(t){var e=t.getHours();return 0===e?12:e>12?e%12:e},hh:function(t){return Object(y["d"])(this.h(t))},m:function(t){return t.getMinutes()},mm:function(t){return Object(y["d"])(t.getMinutes())},s:function(t){return t.getSeconds()},ss:function(t){return Object(y["d"])(t.getSeconds())},S:function(t){return Math.floor(t.getMilliseconds()/100)},SS:function(t){return Object(y["d"])(Math.floor(t.getMilliseconds()/10))},SSS:function(t){return Object(y["d"])(t.getMilliseconds(),3)},A:function(t){return this.H(t)<12?"AM":"PM"},a:function(t){return this.H(t)<12?"am":"pm"},aa:function(t){return this.H(t)<12?"a.m.":"p.m."},Z:function(t){return E(t.getTimezoneOffset(),":")},ZZ:function(t){return E(t.getTimezoneOffset())},X:function(t){return Math.floor(t.getTime()/1e3)},x:function(t){return t.getTime()}};function q(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DDTHH:mm:ss.SSSZ",n=arguments.length>2?arguments[2]:void 0;if(0===t||t){var i=S(t);return e.replace(x,function(t,e){return t in H?H[t](i,n):void 0===e?t:e.split("\\]").join("]")})}}function G(t){return Object(c["a"])(t)?new Date(t.getTime()):t}var z=/^\d{4}[^\d]\d{2}[^\d]\d{2}/,B={props:u,computed:{computedValue:function(){return"date"===this.type&&"string"===this.formatModel&&z.test(this.value)?this.value.slice(0,10).split(/[^\d]/).join("/"):this.value},computedDefaultValue:function(){return"date"===this.type&&"string"===this.formatModel&&z.test(this.defaultValue)?this.defaultValue.slice(0,10).split(/[^\d]+/).join("/"):this.defaultValue},computedDateFormat:function(){if("date"===this.type&&"string"===this.formatModel)return"YYYY/MM/DD HH:mm:ss"},model:{get:function(){return O(this.computedValue)?new Date(this.computedValue):this.computedDefaultValue?new Date(this.computedDefaultValue):I(new Date,"day")},set:function(t){var e=this,n=P(t,this.pmin,this.pmax),i=Y(n,"auto"===this.formatModel?N(this.value):this.formatModel,this.computedDateFormat);this.$emit("input",i),this.$nextTick(function(){j(i,e.value)||e.$emit("change",i)})}},pmin:function(){return this.min?new Date(this.min):null},pmax:function(){return this.max?new Date(this.max):null},typeHasDate:function(){return"date"===this.type||"datetime"===this.type},typeHasTime:function(){return"time"===this.type||"datetime"===this.type},year:function(){return this.model.getFullYear()},month:function(){return this.model.getMonth()+1},day:function(){return this.model.getDate()},minute:function(){return this.model.getMinutes()},currentYear:function(){return(new Date).getFullYear()},yearInterval:function(){return{min:null!==this.pmin?this.pmin.getFullYear():(this.year||this.currentYear)-80,max:null!==this.pmax?this.pmax.getFullYear():(this.year||this.currentYear)+80}},monthInterval:function(){return{min:this.monthMin,max:null!==this.pmax&&this.pmax.getFullYear()===this.year?this.pmax.getMonth():11}},monthMin:function(){return null!==this.pmin&&this.pmin.getFullYear()===this.year?this.pmin.getMonth():0},daysInMonth:function(){return new Date(this.year,this.model.getMonth()+1,0).getDate()},editable:function(){return!this.disable&&!this.readonly},__needsBorder:function(){return!0}},methods:{toggleAmPm:function(){if(this.editable){var t=this.model.getHours(),e=this.am?12:-12;this.model=new Date(new Date(this.model).setHours(t+e))}},__parseTypeValue:function(t,e){return"month"===t?Object(y["c"])(e,1,12):"date"===t?Object(y["c"])(e,1,this.daysInMonth):"year"===t?Object(y["c"])(e,this.yearInterval.min,this.yearInterval.max):"hour"===t?Object(y["c"])(e,0,23):"minute"===t?Object(y["c"])(e,0,59):void 0}}},U=n("e660"),W=n("1526");function $(t){return 0===t?12:t>=13?t-12:t}var V={name:"QDatetimePicker",mixins:[B,U["a"],s["a"]],props:{defaultValue:[String,Number,Date],disable:Boolean,readonly:Boolean},directives:{Ripple:W["a"]},data:function(){return{view:this.__calcView(this.defaultView),dragging:!1,centerClockPos:0,fakeValue:{year:null,month:null}}},watch:{value:function(t){t||(this.view=["date","datetime"].includes(this.type)?"day":"hour")},view:function(){this.__scrollView(!0)},model:function(){this.fakeValue.month!==this.month&&(this.fakeValue.month=this.month,this.__scrollView()),this.fakeValue.year!==this.year&&(this.fakeValue.year=this.year,this.__scrollView())}},computed:{classes:function(){var t=[];return this.disable&&t.push("disabled"),this.readonly&&t.push("readonly"),this.dark&&t.push("q-datetime-dark"),this.minimal&&t.push("q-datetime-minimal"),this.color&&t.push("text-".concat(this.color)),t},dateArrow:function(){var t=[this.$q.icon.datetime.arrowLeft,this.$q.icon.datetime.arrowRight];return this.$q.i18n.rtl?t.reverse():t},computedFormat24h:function(){return 0!==this.format24h?this.format24h:this.$q.i18n.date.format24h},computedFirstDayOfWeek:function(){return void 0!==this.firstDayOfWeek?this.firstDayOfWeek:this.$q.i18n.date.firstDayOfWeek},headerDayNames:function(){var t=this.$q.i18n.date.daysShort,e=this.computedFirstDayOfWeek;return e>0?t.slice(e,7).concat(t.slice(0,e)):t},fakeModel:function(){return new Date(this.fakeYear,this.fakeMonth-1,1)},fakeYear:function(){return this.fakeValue.year||this.year},fakeMonth:function(){return this.fakeValue.month||this.month},daysInMonth:function(){return new Date(this.fakeYear,this.fakeMonth,0).getDate()},monthString:function(){return"".concat(this.$q.i18n.date.monthsShort[this.month-1])},monthStamp:function(){return"".concat(this.$q.i18n.date.months[this.fakeMonth-1]," ").concat(this.fakeYear)},weekDayString:function(){return this.headerLabel||this.$q.i18n.date.days[this.model.getDay()]},fillerDays:function(){var t=this.fakeModel.getDay()-this.computedFirstDayOfWeek;return t<0&&(t+=7),t},beforeMinDays:function(){if(null===this.pmin)return!1;var t=this.pmin.getFullYear(),e=this.pmin.getMonth()+1;return t===this.fakeYear&&e===this.fakeMonth?this.pmin.getDate()-1:(t>this.fakeYear||t===this.fakeYear&&e>this.fakeMonth)&&this.daysInMonth},afterMaxDays:function(){if(null===this.pmax)return!1;var t=this.pmax.getFullYear(),e=this.pmax.getMonth()+1;return t===this.fakeYear&&e===this.fakeMonth?this.daysInMonth-this.maxDay:(t0||t){var e=this.beforeMinDays>0?this.beforeMinDays+1:1;return{min:e,max:this.daysInMonth-t}}return{min:1,max:this.daysInMonth}},hour:function(){var t=this.model.getHours();return this.computedFormat24h?t:$(t)},minute:function(){return this.model.getMinutes()},am:function(){return this.model.getHours()<=11},clockPointerStyle:function(){var t="minute"===this.view,e=t?60:12,n=Math.round((t?this.minute:this.hour)*(360/e))-180,i=["rotate(".concat(n,"deg)")];return t||!this.computedFormat24h||this.hour>0&&this.hour<13||i.push("scale(.7, .7)"),{transform:i.join(" ")}},isValid:function(){return O(this.value)},today:function(){var t=new Date;return j(t,this.fakeModel,"month")?t.getDate():-1}},methods:{setYear:function(t,e){this.editable&&(e||(this.view="month"),this.model=new Date(new Date(this.model).setFullYear(this.__parseTypeValue("year",t))))},setMonth:function(t,e){this.editable&&(e||(this.view="day"),this.model=C(this.model,{month:t}))},moveFakeMonth:function(t){var e=this.fakeMonth+(t>0?1:-1),n=this.fakeYear;if(e<1?(e=12,n-=1):e>12&&(e=1,n+=1),null!==this.pmin&&t>0){var i=this.pmin.getFullYear(),r=this.pmin.getMonth()+1;ns?(n=s,e=o):n===s&&e>o&&(e=o)}this.fakeValue.year=n,this.fakeValue.month=e},setDay:function(t,e,n,i){if(this.editable){if(n&&i){var r=C(this.model,{month:i});r.setFullYear(this.__parseTypeValue("year",n)),r.setDate(this.__parseTypeValue("date",t)),this.model=r}else this.model=new Date(new Date(this.model).setDate(this.__parseTypeValue("date",t)));e||"date"!==this.type?e||(this.view="hour"):(this.$emit("canClose"),this.minimal&&this.setView(this.defaultView))}},setHour:function(t){this.editable&&(t=this.__parseTypeValue("hour",t),!this.computedFormat24h&&t<12&&!this.am&&(t+=12),this.model=new Date(new Date(this.model).setHours(t)))},setMinute:function(t){this.editable&&(this.model=new Date(new Date(this.model).setMinutes(this.__parseTypeValue("minute",t))))},setView:function(t){var e=this.__calcView(t);this.view!==e&&(this.view=e)},__calcView:function(t){switch(this.type){case"time":return["hour","minute"].includes(t)?t:"hour";case"date":return["year","month","day"].includes(t)?t:"day";default:return["year","month","day","hour","minute"].includes(t)?t:"day"}},__pad:function(t,e){return(t<10?e||"0":"")+t},__scrollView:function(t){var e=this;if("year"===this.view||"month"===this.view){t&&setTimeout(function(){e.__scrollView()},200);var n=this.$refs.selector,i=n?n.querySelector(".q-btn:not(.active)"):null,r=n?n.querySelector(".q-btn.active"):null,s=n?n.offsetHeight:0;this.$nextTick(function(){var t="year"===e.view?e.year-e.yearInterval.min:e.month-e.monthMin-1;s&&r&&(n.scrollTop=t*(i?i.offsetHeight:0)+(r.offsetHeight-s)/2)})}},__dragStart:function(t,e){Object(m["g"])(t);var n=this.$refs.clock,i=Object(_["d"])(n);this.centerClockPos={top:i.top+Object(_["c"])(n)/2,left:i.left+Object(_["e"])(n)/2},this.dragging=!0,this.__updateClock(t,e)},__dragMove:function(t){this.dragging&&(Object(m["g"])(t),this.__updateClock(t))},__dragStop:function(t,e){Object(m["g"])(t),this.dragging=!1,void 0!==t&&this.__updateClock(t,e),"minute"===this.view?(this.$emit("canClose"),this.minimal&&this.setView(this.defaultView)):this.view="minute"},__updateClock:function(t,e){if(void 0!==e)return this["hour"===this.view?"setHour":"setMinute"](e);var n=Object(m["f"])(t),i=Math.abs(n.top-this.centerClockPos.top),r=Math.sqrt(Math.pow(Math.abs(n.top-this.centerClockPos.top),2)+Math.pow(Math.abs(n.left-this.centerClockPos.left),2)),s=Math.asin(i/r)*(180/Math.PI);if(s=n.top0||this.disable||this.readonly},on:{click:function(){e.moveFakeMonth(-1)}}}),t("div",{staticClass:"col q-datetime-month-stamp"},[this.monthStamp]),t(g["a"],{staticClass:"q-datetime-arrow",attrs:{tabindex:-1},props:{round:!0,dense:!0,flat:!0,icon:this.dateArrow[1],repeatTimeout:this.__repeatTimeout,disable:this.afterMaxDays>0||this.disable||this.readonly},on:{click:function(){e.moveFakeMonth(1)}}})]),t("div",{staticClass:"q-datetime-weekdays row no-wrap items-center justify-start"},this.headerDayNames.map(function(e){return t("div",[e])})),t("div",{staticClass:"q-datetime-days row wrap items-center justify-start content-center"},n)])},__getClockView:function(t){var e=this,n=[];if("hour"===this.view){var i,r,s="";this.computedFormat24h?(i=0,r=24,s=" fmt24"):(i=1,r=13);for(var o=function(i){n.push(t("div",{staticClass:"q-datetime-clock-position".concat(s),class:["q-datetime-clock-pos-".concat(i),i===e.hour?"active":""],on:{"!mousedown":function(t){return e.__dragStart(t,i)},"!mouseup":function(t){return e.__dragStop(t,i)}}},[t("span",[i||"00"])]))},a=i;a1&&t<5&&1!==~~(t/10)}function o(t,e,n,i){var r=t+" ";switch(n){case"s":return e||i?"pár sekund":"pár sekundami";case"ss":return e||i?r+(s(t)?"sekundy":"sekund"):r+"sekundami";case"m":return e?"minuta":i?"minutu":"minutou";case"mm":return e||i?r+(s(t)?"minuty":"minut"):r+"minutami";case"h":return e?"hodina":i?"hodinu":"hodinou";case"hh":return e||i?r+(s(t)?"hodiny":"hodin"):r+"hodinami";case"d":return e||i?"den":"dnem";case"dd":return e||i?r+(s(t)?"dny":"dní"):r+"dny";case"M":return e||i?"měsíc":"měsícem";case"MM":return e||i?r+(s(t)?"měsíce":"měsíců"):r+"měsíci";case"y":return e||i?"rok":"rokem";case"yy":return e||i?r+(s(t)?"roky":"let"):r+"lety"}}var a=t.defineLocale("cs",{months:e,monthsShort:n,monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a})},"3c11":function(t,e,n){"use strict";var i=n("63b6"),r=n("584a"),s=n("e53d"),o=n("f201"),a=n("cd78");i(i.P+i.R,"Promise",{finally:function(t){var e=o(this,r.Promise||s.Promise),n="function"==typeof t;return this.then(n?function(n){return a(e,t()).then(function(){return n})}:t,n?function(n){return a(e,t()).then(function(){throw n})}:t)}})},"3c22":function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("5c38"),r=function(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32};function s(t,e,n){var r=n?Object(i["b"])(n):"null";return e+":"+t+":"+r}r.prototype.clear=function(){this.cache_={},this.cacheSize_=0},r.prototype.expire=function(){if(this.cacheSize_>this.maxCacheSize_){var t=0;for(var e in this.cache_){var n=this.cache_[e];0!==(3&t++)||n.hasListener()||(delete this.cache_[e],--this.cacheSize_)}}},r.prototype.get=function(t,e,n){var i=s(t,e,n);return i in this.cache_?this.cache_[i]:null},r.prototype.set=function(t,e,n,i){var r=s(t,e,n);this.cache_[r]=i,++this.cacheSize_},r.prototype.setSize=function(t){this.maxCacheSize_=t,this.expire()};var o=new r},"3c35":function(t,e){(function(e){t.exports=e}).call(this,{})},"3c81":function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"b",function(){return l});var i=n("0999"),r=n("0af5"),s=n("7fc9"),o=n("256f");function a(t,e,n,i){var s=Object(o["l"])(n,e,t),a=Object(o["h"])(e,i,n),c=e.getMetersPerUnit();void 0!==c&&(a*=c);var l=t.getMetersPerUnit();void 0!==l&&(a/=l);var u=t.getExtent();if(!u||Object(r["f"])(u,s)){var h=Object(o["h"])(t,a,s)/a;isFinite(h)&&h>0&&(a/=h)}return a}function c(t,e,n,i){var r=n-t,s=i-e,o=Math.sqrt(r*r+s*s);return[Math.round(n+r/o),Math.round(i+s/o)]}function l(t,e,n,o,a,l,u,h,d,f,p){var _=Object(i["a"])(Math.round(n*t),Math.round(n*e));if(0===d.length)return _.canvas;_.scale(n,n);var m=Object(r["j"])();d.forEach(function(t,e,n){Object(r["q"])(m,t.extent)});var g=Object(r["E"])(m),y=Object(r["A"])(m),v=Object(i["a"])(Math.round(n*g/o),Math.round(n*y/o)),b=n/o;d.forEach(function(t,e,n){var i=t.extent[0]-m[0],s=-(t.extent[3]-m[3]),o=Object(r["E"])(t.extent),a=Object(r["A"])(t.extent);v.drawImage(t.image,f,f,t.image.width-2*f,t.image.height-2*f,i*b,s*b,o*b,a*b)});var M=Object(r["C"])(u);return h.getTriangles().forEach(function(t,e,i){var r=t.source,a=t.target,u=r[0][0],h=r[0][1],d=r[1][0],f=r[1][1],p=r[2][0],g=r[2][1],y=(a[0][0]-M[0])/l,b=-(a[0][1]-M[1])/l,w=(a[1][0]-M[0])/l,x=-(a[1][1]-M[1])/l,L=(a[2][0]-M[0])/l,E=-(a[2][1]-M[1])/l,T=u,S=h;u=0,h=0,d-=T,f-=S,p-=T,g-=S;var O=[[d,f,0,0,w-y],[p,g,0,0,L-y],[0,0,d,f,x-b],[0,0,p,g,E-b]],k=Object(s["e"])(O);if(k){_.save(),_.beginPath();var C=(y+w+L)/3,I=(b+x+E)/3,D=c(C,I,y,b),R=c(C,I,w,x),A=c(C,I,L,E);_.moveTo(R[0],R[1]),_.lineTo(D[0],D[1]),_.lineTo(A[0],A[1]),_.clip(),_.transform(k[0],k[2],k[1],k[3],y,b),_.translate(m[0]-T,m[3]-S),_.scale(o/n,-o/n),_.drawImage(v.canvas,0,0),_.restore()}}),p&&(_.save(),_.strokeStyle="black",_.lineWidth=1,h.getTriangles().forEach(function(t,e,n){var i=t.target,r=(i[0][0]-M[0])/l,s=-(i[0][1]-M[1])/l,o=(i[1][0]-M[0])/l,a=-(i[1][1]-M[1])/l,c=(i[2][0]-M[0])/l,u=-(i[2][1]-M[1])/l;_.beginPath(),_.moveTo(o,a),_.lineTo(r,s),_.lineTo(c,u),_.closePath(),_.stroke()}),_.restore()),_.canvas}},"3d49":function(t,e,n){},"3d5b":function(t,e,n){"use strict";n("551c"),n("f751");var i=n("cd88"),r={props:{popover:Boolean,modal:Boolean},computed:{isPopover:function(){return!!this.popover||!this.modal&&(this.$q.platform.is.desktop&&!this.$q.platform.within.iframe)}}},s=n("559e"),o=(n("6762"),n("2fdb"),n("c5f6"),n("7037")),a=n.n(o),c=n("73f5"),l=function(t){var e=a()(t);return null===t||void 0===t||"number"===e||"string"===e||Object(c["a"])(t)},u={value:{validator:l,required:!0},defaultValue:{type:[String,Number,Date],default:null},type:{type:String,default:"date",validator:function(t){return["date","time","datetime"].includes(t)}},color:{type:String,default:"primary"},dark:Boolean,min:{validator:l,default:null},max:{validator:l,default:null},headerLabel:String,firstDayOfWeek:Number,formatModel:{type:String,default:"auto",validator:function(t){return["auto","date","number","string"].includes(t)}},format24h:{type:[Boolean,Number],default:0,validator:function(t){return[!0,!1,0].includes(t)}},defaultView:{type:String,validator:function(t){return["year","month","day","hour","minute"].includes(t)}},minimal:Boolean},h={format:String,okLabel:String,cancelLabel:String,displayValue:String},d=n("2054"),f=n("52b5"),p=n("b5b8"),_=n("abcf"),m=n("b18c"),g=n("482e"),y=(n("28a5"),n("4917"),n("cadf"),n("456d"),n("ac6a"),n("a481"),n("177b")),v=n("b157"),b=864e5,M=36e5,w=6e4,x=/\[((?:[^\]\\]|\\]|\\)*)\]|d{1,4}|M{1,4}|m{1,2}|w{1,2}|Qo|Do|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]/g,L=/^[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}(.[0-9]{6})?$/;function E(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t>0?"-":"+",i=Math.abs(t),r=Math.floor(i/60),s=i%60;return n+Object(y["d"])(r)+e+Object(y["d"])(s)}function T(t,e){var n=new Date(t.getFullYear(),e,0,0,0,0,0),i=n.getDate();t.setMonth(e-1,Math.min(i,t.getDate()))}function S(t){return new Date(Object(c["c"])(t)&&null!==L.exec(t)?t.substring(0,23).replace(" ","T"):t)}function O(t){if("number"===typeof t)return!0;var e=Date.parse(t);return!1===isNaN(e)}function k(t){var e=new Date(t.getFullYear(),t.getMonth(),t.getDate());e.setDate(e.getDate()-(e.getDay()+6)%7+3);var n=new Date(e.getFullYear(),0,4);n.setDate(n.getDate()-(n.getDay()+6)%7+3);var i=e.getTimezoneOffset()-n.getTimezoneOffset();e.setHours(e.getHours()-i);var r=(e-n)/(7*b);return 1+Math.floor(r)}function C(t,e,n){var i=S(t),r="set".concat(n?"UTC":"");return Object.keys(e).forEach(function(t){if("month"!==t){var n="year"===t?"FullYear":t.charAt(0).toUpperCase()+t.slice(1);i["".concat(r).concat(n)](e[t])}else T(i,e.month)}),i}function I(t,e){var n=S(t);switch(e){case"year":n.setMonth(0);case"month":n.setDate(1);case"day":n.setHours(0);case"hour":n.setMinutes(0);case"minute":n.setSeconds(0);case"second":n.setMilliseconds(0)}return n}function D(t,e,n){return(t.getTime()-t.getTimezoneOffset()*w-(e.getTime()-e.getTimezoneOffset()*w))/n}function R(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"days",i=S(t),r=S(e);switch(n){case"years":return i.getFullYear()-r.getFullYear();case"months":return 12*(i.getFullYear()-r.getFullYear())+i.getMonth()-r.getMonth();case"days":return D(I(i,"day"),I(r,"day"),b);case"hours":return D(I(i,"hour"),I(r,"hour"),M);case"minutes":return D(I(i,"minute"),I(r,"minute"),w);case"seconds":return D(I(i,"second"),I(r,"second"),1e3)}}function A(t){return R(t,I(t,"year"),"days")+1}function N(t){return Object(c["a"])(t)?"date":"number"===typeof t?"number":"string"}function Y(t,e,n){if(t||0===t)switch(e){case"date":return t;case"number":return t.getTime();default:return G(t,n)}}function P(t,e,n){var i=S(t);if(e){var r=S(e);if(is)return s}return i}function j(t,e,n){var i=S(t),r=S(e);if(void 0===n)return i.getTime()===r.getTime();switch(n){case"second":if(i.getSeconds()!==r.getSeconds())return!1;case"minute":if(i.getMinutes()!==r.getMinutes())return!1;case"hour":if(i.getHours()!==r.getHours())return!1;case"day":if(i.getDate()!==r.getDate())return!1;case"month":if(i.getMonth()!==r.getMonth())return!1;case"year":if(i.getFullYear()!==r.getFullYear())return!1;break;default:throw new Error("date isSameDate unknown unit ".concat(n))}return!0}function F(t){if(t>=11&&t<=13)return"".concat(t,"th");switch(t%10){case 1:return"".concat(t,"st");case 2:return"".concat(t,"nd");case 3:return"".concat(t,"rd")}return"".concat(t,"th")}var H={YY:function(t){return Object(y["d"])(t.getFullYear(),4).substr(2)},YYYY:function(t){return Object(y["d"])(t.getFullYear(),4)},M:function(t){return t.getMonth()+1},MM:function(t){return Object(y["d"])(t.getMonth()+1)},MMM:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(e.monthNamesShort||v["a"].lang.date.monthsShort)[t.getMonth()]},MMMM:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(e.monthNames||v["a"].lang.date.months)[t.getMonth()]},Q:function(t){return Math.ceil((t.getMonth()+1)/3)},Qo:function(t){return F(this.Q(t))},D:function(t){return t.getDate()},Do:function(t){return F(t.getDate())},DD:function(t){return Object(y["d"])(t.getDate())},DDD:function(t){return A(t)},DDDD:function(t){return Object(y["d"])(A(t),3)},d:function(t){return t.getDay()},dd:function(t){return this.dddd(t).slice(0,2)},ddd:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(e.dayNamesShort||v["a"].lang.date.daysShort)[t.getDay()]},dddd:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(e.dayNames||v["a"].lang.date.days)[t.getDay()]},E:function(t){return t.getDay()||7},w:function(t){return k(t)},ww:function(t){return Object(y["d"])(k(t))},H:function(t){return t.getHours()},HH:function(t){return Object(y["d"])(t.getHours())},h:function(t){var e=t.getHours();return 0===e?12:e>12?e%12:e},hh:function(t){return Object(y["d"])(this.h(t))},m:function(t){return t.getMinutes()},mm:function(t){return Object(y["d"])(t.getMinutes())},s:function(t){return t.getSeconds()},ss:function(t){return Object(y["d"])(t.getSeconds())},S:function(t){return Math.floor(t.getMilliseconds()/100)},SS:function(t){return Object(y["d"])(Math.floor(t.getMilliseconds()/10))},SSS:function(t){return Object(y["d"])(t.getMilliseconds(),3)},A:function(t){return this.H(t)<12?"AM":"PM"},a:function(t){return this.H(t)<12?"am":"pm"},aa:function(t){return this.H(t)<12?"a.m.":"p.m."},Z:function(t){return E(t.getTimezoneOffset(),":")},ZZ:function(t){return E(t.getTimezoneOffset())},X:function(t){return Math.floor(t.getTime()/1e3)},x:function(t){return t.getTime()}};function G(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DDTHH:mm:ss.SSSZ",n=arguments.length>2?arguments[2]:void 0;if(0===t||t){var i=S(t);return e.replace(x,function(t,e){return t in H?H[t](i,n):void 0===e?t:e.split("\\]").join("]")})}}function q(t){return Object(c["a"])(t)?new Date(t.getTime()):t}var z=/^\d{4}[^\d]\d{2}[^\d]\d{2}/,B={props:u,computed:{computedValue:function(){return"date"===this.type&&"string"===this.formatModel&&z.test(this.value)?this.value.slice(0,10).split(/[^\d]/).join("/"):this.value},computedDefaultValue:function(){return"date"===this.type&&"string"===this.formatModel&&z.test(this.defaultValue)?this.defaultValue.slice(0,10).split(/[^\d]+/).join("/"):this.defaultValue},computedDateFormat:function(){if("date"===this.type&&"string"===this.formatModel)return"YYYY/MM/DD HH:mm:ss"},model:{get:function(){return O(this.computedValue)?new Date(this.computedValue):this.computedDefaultValue?new Date(this.computedDefaultValue):I(new Date,"day")},set:function(t){var e=this,n=P(t,this.pmin,this.pmax),i=Y(n,"auto"===this.formatModel?N(this.value):this.formatModel,this.computedDateFormat);this.$emit("input",i),this.$nextTick(function(){j(i,e.value)||e.$emit("change",i)})}},pmin:function(){return this.min?new Date(this.min):null},pmax:function(){return this.max?new Date(this.max):null},typeHasDate:function(){return"date"===this.type||"datetime"===this.type},typeHasTime:function(){return"time"===this.type||"datetime"===this.type},year:function(){return this.model.getFullYear()},month:function(){return this.model.getMonth()+1},day:function(){return this.model.getDate()},minute:function(){return this.model.getMinutes()},currentYear:function(){return(new Date).getFullYear()},yearInterval:function(){return{min:null!==this.pmin?this.pmin.getFullYear():(this.year||this.currentYear)-80,max:null!==this.pmax?this.pmax.getFullYear():(this.year||this.currentYear)+80}},monthInterval:function(){return{min:this.monthMin,max:null!==this.pmax&&this.pmax.getFullYear()===this.year?this.pmax.getMonth():11}},monthMin:function(){return null!==this.pmin&&this.pmin.getFullYear()===this.year?this.pmin.getMonth():0},daysInMonth:function(){return new Date(this.year,this.model.getMonth()+1,0).getDate()},editable:function(){return!this.disable&&!this.readonly},__needsBorder:function(){return!0}},methods:{toggleAmPm:function(){if(this.editable){var t=this.model.getHours(),e=this.am?12:-12;this.model=new Date(new Date(this.model).setHours(t+e))}},__parseTypeValue:function(t,e){return"month"===t?Object(y["c"])(e,1,12):"date"===t?Object(y["c"])(e,1,this.daysInMonth):"year"===t?Object(y["c"])(e,this.yearInterval.min,this.yearInterval.max):"hour"===t?Object(y["c"])(e,0,23):"minute"===t?Object(y["c"])(e,0,59):void 0}}},U=n("e660"),W=n("1526");function $(t){return 0===t?12:t>=13?t-12:t}var V={name:"QDatetimePicker",mixins:[B,U["a"],s["a"]],props:{defaultValue:[String,Number,Date],disable:Boolean,readonly:Boolean},directives:{Ripple:W["a"]},data:function(){return{view:this.__calcView(this.defaultView),dragging:!1,centerClockPos:0,fakeValue:{year:null,month:null}}},watch:{value:function(t){t||(this.view=["date","datetime"].includes(this.type)?"day":"hour")},view:function(){this.__scrollView(!0)},model:function(){this.fakeValue.month!==this.month&&(this.fakeValue.month=this.month,this.__scrollView()),this.fakeValue.year!==this.year&&(this.fakeValue.year=this.year,this.__scrollView())}},computed:{classes:function(){var t=[];return this.disable&&t.push("disabled"),this.readonly&&t.push("readonly"),this.dark&&t.push("q-datetime-dark"),this.minimal&&t.push("q-datetime-minimal"),this.color&&t.push("text-".concat(this.color)),t},dateArrow:function(){var t=[this.$q.icon.datetime.arrowLeft,this.$q.icon.datetime.arrowRight];return this.$q.i18n.rtl?t.reverse():t},computedFormat24h:function(){return 0!==this.format24h?this.format24h:this.$q.i18n.date.format24h},computedFirstDayOfWeek:function(){return void 0!==this.firstDayOfWeek?this.firstDayOfWeek:this.$q.i18n.date.firstDayOfWeek},headerDayNames:function(){var t=this.$q.i18n.date.daysShort,e=this.computedFirstDayOfWeek;return e>0?t.slice(e,7).concat(t.slice(0,e)):t},fakeModel:function(){return new Date(this.fakeYear,this.fakeMonth-1,1)},fakeYear:function(){return this.fakeValue.year||this.year},fakeMonth:function(){return this.fakeValue.month||this.month},daysInMonth:function(){return new Date(this.fakeYear,this.fakeMonth,0).getDate()},monthString:function(){return"".concat(this.$q.i18n.date.monthsShort[this.month-1])},monthStamp:function(){return"".concat(this.$q.i18n.date.months[this.fakeMonth-1]," ").concat(this.fakeYear)},weekDayString:function(){return this.headerLabel||this.$q.i18n.date.days[this.model.getDay()]},fillerDays:function(){var t=this.fakeModel.getDay()-this.computedFirstDayOfWeek;return t<0&&(t+=7),t},beforeMinDays:function(){if(null===this.pmin)return!1;var t=this.pmin.getFullYear(),e=this.pmin.getMonth()+1;return t===this.fakeYear&&e===this.fakeMonth?this.pmin.getDate()-1:(t>this.fakeYear||t===this.fakeYear&&e>this.fakeMonth)&&this.daysInMonth},afterMaxDays:function(){if(null===this.pmax)return!1;var t=this.pmax.getFullYear(),e=this.pmax.getMonth()+1;return t===this.fakeYear&&e===this.fakeMonth?this.daysInMonth-this.maxDay:(t0||t){var e=this.beforeMinDays>0?this.beforeMinDays+1:1;return{min:e,max:this.daysInMonth-t}}return{min:1,max:this.daysInMonth}},hour:function(){var t=this.model.getHours();return this.computedFormat24h?t:$(t)},minute:function(){return this.model.getMinutes()},am:function(){return this.model.getHours()<=11},clockPointerStyle:function(){var t="minute"===this.view,e=t?60:12,n=Math.round((t?this.minute:this.hour)*(360/e))-180,i=["rotate(".concat(n,"deg)")];return t||!this.computedFormat24h||this.hour>0&&this.hour<13||i.push("scale(.7, .7)"),{transform:i.join(" ")}},isValid:function(){return O(this.value)},today:function(){var t=new Date;return j(t,this.fakeModel,"month")?t.getDate():-1}},methods:{setYear:function(t,e){this.editable&&(e||(this.view="month"),this.model=new Date(new Date(this.model).setFullYear(this.__parseTypeValue("year",t))))},setMonth:function(t,e){this.editable&&(e||(this.view="day"),this.model=C(this.model,{month:t}))},moveFakeMonth:function(t){var e=this.fakeMonth+(t>0?1:-1),n=this.fakeYear;if(e<1?(e=12,n-=1):e>12&&(e=1,n+=1),null!==this.pmin&&t>0){var i=this.pmin.getFullYear(),r=this.pmin.getMonth()+1;ns?(n=s,e=o):n===s&&e>o&&(e=o)}this.fakeValue.year=n,this.fakeValue.month=e},setDay:function(t,e,n,i){if(this.editable){if(n&&i){var r=C(this.model,{month:i});r.setFullYear(this.__parseTypeValue("year",n)),r.setDate(this.__parseTypeValue("date",t)),this.model=r}else this.model=new Date(new Date(this.model).setDate(this.__parseTypeValue("date",t)));e||"date"!==this.type?e||(this.view="hour"):(this.$emit("canClose"),this.minimal&&this.setView(this.defaultView))}},setHour:function(t){this.editable&&(t=this.__parseTypeValue("hour",t),!this.computedFormat24h&&t<12&&!this.am&&(t+=12),this.model=new Date(new Date(this.model).setHours(t)))},setMinute:function(t){this.editable&&(this.model=new Date(new Date(this.model).setMinutes(this.__parseTypeValue("minute",t))))},setView:function(t){var e=this.__calcView(t);this.view!==e&&(this.view=e)},__calcView:function(t){switch(this.type){case"time":return["hour","minute"].includes(t)?t:"hour";case"date":return["year","month","day"].includes(t)?t:"day";default:return["year","month","day","hour","minute"].includes(t)?t:"day"}},__pad:function(t,e){return(t<10?e||"0":"")+t},__scrollView:function(t){var e=this;if("year"===this.view||"month"===this.view){t&&setTimeout(function(){e.__scrollView()},200);var n=this.$refs.selector,i=n?n.querySelector(".q-btn:not(.active)"):null,r=n?n.querySelector(".q-btn.active"):null,s=n?n.offsetHeight:0;this.$nextTick(function(){var t="year"===e.view?e.year-e.yearInterval.min:e.month-e.monthMin-1;s&&r&&(n.scrollTop=t*(i?i.offsetHeight:0)+(r.offsetHeight-s)/2)})}},__dragStart:function(t,e){Object(m["g"])(t);var n=this.$refs.clock,i=Object(_["d"])(n);this.centerClockPos={top:i.top+Object(_["c"])(n)/2,left:i.left+Object(_["e"])(n)/2},this.dragging=!0,this.__updateClock(t,e)},__dragMove:function(t){this.dragging&&(Object(m["g"])(t),this.__updateClock(t))},__dragStop:function(t,e){Object(m["g"])(t),this.dragging=!1,void 0!==t&&this.__updateClock(t,e),"minute"===this.view?(this.$emit("canClose"),this.minimal&&this.setView(this.defaultView)):this.view="minute"},__updateClock:function(t,e){if(void 0!==e)return this["hour"===this.view?"setHour":"setMinute"](e);var n=Object(m["f"])(t),i=Math.abs(n.top-this.centerClockPos.top),r=Math.sqrt(Math.pow(Math.abs(n.top-this.centerClockPos.top),2)+Math.pow(Math.abs(n.left-this.centerClockPos.left),2)),s=Math.asin(i/r)*(180/Math.PI);if(s=n.top0||this.disable||this.readonly},on:{click:function(){e.moveFakeMonth(-1)}}}),t("div",{staticClass:"col q-datetime-month-stamp"},[this.monthStamp]),t(g["a"],{staticClass:"q-datetime-arrow",attrs:{tabindex:-1},props:{round:!0,dense:!0,flat:!0,icon:this.dateArrow[1],repeatTimeout:this.__repeatTimeout,disable:this.afterMaxDays>0||this.disable||this.readonly},on:{click:function(){e.moveFakeMonth(1)}}})]),t("div",{staticClass:"q-datetime-weekdays row no-wrap items-center justify-start"},this.headerDayNames.map(function(e){return t("div",[e])})),t("div",{staticClass:"q-datetime-days row wrap items-center justify-start content-center"},n)])},__getClockView:function(t){var e=this,n=[];if("hour"===this.view){var i,r,s="";this.computedFormat24h?(i=0,r=24,s=" fmt24"):(i=1,r=13);for(var o=function(i){n.push(t("div",{staticClass:"q-datetime-clock-position".concat(s),class:["q-datetime-clock-pos-".concat(i),i===e.hour?"active":""],on:{"!mousedown":function(t){return e.__dragStart(t,i)},"!mouseup":function(t){return e.__dragStop(t,i)}}},[t("span",[i||"00"])]))},a=i;a=10?t:t+12},week:{dow:0,doy:6}});return i})},"3e1e":function(t,e,n){"use strict";(function(e){var i=n("3fb5"),r=n("7577"),s=n("1548"),o=n("df09"),a=n("73aa"),c=n("26a0");function l(t){if(!a.enabled&&!o.enabled)throw new Error("Transport created when disabled");r.call(this,t,"/xhr_streaming",s,o)}i(l,r),l.enabled=function(t){return!t.nullOrigin&&(!c.isOpera()&&o.enabled)},l.transportName="xhr-streaming",l.roundTrips=2,l.needBody=!!e.document,t.exports=l}).call(this,n("c8ba"))},"3e37":function(t,e,n){"use strict";n.d(e,"a",function(){return i});class i{isInBoundary(t){}}class r{isInBoundary(t){return t%2===1}get interfaces_(){return[i]}}class s{isInBoundary(t){return t>0}get interfaces_(){return[i]}}class o{isInBoundary(t){return t>1}get interfaces_(){return[i]}}class a{isInBoundary(t){return 1===t}get interfaces_(){return[i]}}i.Mod2BoundaryNodeRule=r,i.EndPointBoundaryNodeRule=s,i.MultiValentEndPointBoundaryNodeRule=o,i.MonoValentEndPointBoundaryNodeRule=a,i.MOD2_BOUNDARY_RULE=new r,i.ENDPOINT_BOUNDARY_RULE=new s,i.MULTIVALENT_ENDPOINT_BOUNDARY_RULE=new o,i.MONOVALENT_ENDPOINT_BOUNDARY_RULE=new a,i.OGC_SFS_BOUNDARY_RULE=i.MOD2_BOUNDARY_RULE},"3e6b":function(t,e,n){"use strict";var i=n("5dec"),r=n("1af9"),s=n("050e"),o=n("38f3"),a=n("6c77"),c={RENDER_ORDER:"renderOrder"},l=function(t){function e(e){var n=e||{},r=Object(o["a"])({},n);delete r.style,delete r.renderBuffer,delete r.updateWhileAnimating,delete r.updateWhileInteracting,t.call(this,r),this.declutter_=void 0!==n.declutter&&n.declutter,this.renderBuffer_=void 0!==n.renderBuffer?n.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(n.style),this.updateWhileAnimating_=void 0!==n.updateWhileAnimating&&n.updateWhileAnimating,this.updateWhileInteracting_=void 0!==n.updateWhileInteracting&&n.updateWhileInteracting,this.renderMode_=n.renderMode||s["a"].VECTOR,this.type=i["a"].VECTOR}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDeclutter=function(){return this.declutter_},e.prototype.setDeclutter=function(t){this.declutter_=t},e.prototype.getRenderBuffer=function(){return this.renderBuffer_},e.prototype.getRenderOrder=function(){return this.get(c.RENDER_ORDER)},e.prototype.getStyle=function(){return this.style_},e.prototype.getStyleFunction=function(){return this.styleFunction_},e.prototype.getUpdateWhileAnimating=function(){return this.updateWhileAnimating_},e.prototype.getUpdateWhileInteracting=function(){return this.updateWhileInteracting_},e.prototype.setRenderOrder=function(t){this.set(c.RENDER_ORDER,t)},e.prototype.setStyle=function(t){this.style_=void 0!==t?t:a["a"],this.styleFunction_=null===t?void 0:Object(a["d"])(this.style_),this.changed()},e.prototype.getRenderMode=function(){return this.renderMode_},e}(r["a"]);l.prototype.getSource,e["a"]=l},"3e92":function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration -var e={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"},i=t.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(t){return t.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,function(t){return n[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(t,e){return 12===t&&(t=0),"ರಾತ್ರಿ"===e?t<4?t:t+12:"ಬೆಳಿಗ್ಗೆ"===e?t:"ಮಧ್ಯಾಹ್ನ"===e?t>=10?t:t+12:"ಸಂಜೆ"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"ರಾತ್ರಿ":t<10?"ಬೆಳಿಗ್ಗೆ":t<17?"ಮಧ್ಯಾಹ್ನ":t<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(t){return t+"ನೇ"},week:{dow:0,doy:6}});return i})},"3eb1":function(t,e,n){"use strict";var i=n("0f7c"),r=n("00ce"),s=n("d009"),o=n("0d25"),a=r("%Function.prototype.apply%"),c=r("%Function.prototype.call%"),l=r("%Reflect.apply%",!0)||i.call(c,a),u=n("71c9"),h=r("%Math.max%");t.exports=function(t){if("function"!==typeof t)throw new o("a function is required");var e=l(i,c,arguments);return s(e,1+h(0,t.length-(arguments.length-1)),!0)};var d=function(){return l(i,a,arguments)};u?u(t.exports,"apply",{value:d}):t.exports.apply=d},"3f99":function(t,e,n){"use strict";n.d(e,"a",function(){return i});class i extends Error{constructor(t){super(t),this.name=Object.keys({Exception:i})[0]}toString(){return this.message}}},"3fb5":function(t,e){"function"===typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},4082:function(t,e,n){var i=n("afdb"),r=n("f0e4");function s(t,e){if(null==t)return{};var n,s,o=r(t,e);if(i){var a=i(t);for(s=0;s=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}t.exports=s},"40b2":function(t,e,n){"use strict";var i=n("3fb5"),r=n("54d6"),s=n("73aa"),o=n("7577");function a(t){if(!r.enabled)throw new Error("Transport created when disabled");o.call(this,t,"/htmlfile",r,s)}i(a,o),a.enabled=function(t){return r.enabled&&t.sameOrigin},a.transportName="htmlfile",a.roundTrips=2,t.exports=a},"40c3":function(t,e,n){var i=n("6b4c"),r=n("5168")("toStringTag"),s="Arguments"==i(function(){return arguments}()),o=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=o(e=Object(t),r))?n:s?i(e):"Object"==(a=i(e))&&"function"==typeof e.callee?"Arguments":a}},4105:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("0b2d"),r=n("4334"),s=n("38f3"),o=function(t){function e(e){var n=e||{};t.call(this,n),n.handleDownEvent&&(this.handleDownEvent=n.handleDownEvent),n.handleDragEvent&&(this.handleDragEvent=n.handleDragEvent),n.handleMoveEvent&&(this.handleMoveEvent=n.handleMoveEvent),n.handleUpEvent&&(this.handleUpEvent=n.handleUpEvent),n.stopDown&&(this.stopDown=n.stopDown),this.handlingDownUpSequence=!1,this.trackedPointers_={},this.targetPointers=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleDownEvent=function(t){return!1},e.prototype.handleDragEvent=function(t){},e.prototype.handleEvent=function(t){if(!t.pointerEvent)return!0;var e=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==i["a"].POINTERDRAG)this.handleDragEvent(t);else if(t.type==i["a"].POINTERUP){var n=this.handleUpEvent(t);this.handlingDownUpSequence=n&&this.targetPointers.length>0}}else if(t.type==i["a"].POINTERDOWN){var r=this.handleDownEvent(t);r&&t.preventDefault(),this.handlingDownUpSequence=r,e=this.stopDown(r)}else t.type==i["a"].POINTERMOVE&&this.handleMoveEvent(t);return!e},e.prototype.handleMoveEvent=function(t){},e.prototype.handleUpEvent=function(t){return!1},e.prototype.stopDown=function(t){return t},e.prototype.updateTrackedPointers_=function(t){if(c(t)){var e=t.pointerEvent,n=e.pointerId.toString();t.type==i["a"].POINTERUP?delete this.trackedPointers_[n]:t.type==i["a"].POINTERDOWN?this.trackedPointers_[n]=e:n in this.trackedPointers_&&(this.trackedPointers_[n]=e),this.targetPointers=Object(s["c"])(this.trackedPointers_)}},e}(r["a"]);function a(t){for(var e=t.length,n=0,i=0,r=0;r0?T.join(",")||null:void 0}];else if(c(g))D=g;else{var A=Object.keys(T);D=y?A.sort(y):A}var N=d?n.replace(/\./g,"%2E"):n,Y=o&&c(T)&&1===T.length?N+"[]":N;if(a&&c(T)&&0===T.length)return Y+"[]";for(var P=0;P0?v+y:""}},4178:function(t,e,n){var i,r,s,o=n("d864"),a=n("3024"),c=n("32fc"),l=n("1ec9"),u=n("e53d"),h=u.process,d=u.setImmediate,f=u.clearImmediate,p=u.MessageChannel,_=u.Dispatch,m=0,g={},y="onreadystatechange",v=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},b=function(t){v.call(t.data)};d&&f||(d=function(t){var e=[],n=1;while(arguments.length>n)e.push(arguments[n++]);return g[++m]=function(){a("function"==typeof t?t:Function(t),e)},i(m),m},f=function(t){delete g[t]},"process"==n("6b4c")(h)?i=function(t){h.nextTick(o(v,t,1))}:_&&_.now?i=function(t){_.now(o(v,t,1))}:p?(r=new p,s=r.port2,r.port1.onmessage=b,i=o(s.postMessage,s,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(i=function(t){u.postMessage(t+"","*")},u.addEventListener("message",b,!1)):i=y in l("script")?function(t){c.appendChild(l("script"))[y]=function(){c.removeChild(this),v.call(t)}}:function(t){setTimeout(o(v,t,1),0)}),t.exports={set:d,clear:f}},"417f":function(t,e,n){"use strict";t.exports=EvalError},"41a0":function(t,e,n){"use strict";var i=n("2aeb"),r=n("4630"),s=n("7f20"),o={};n("32e9")(o,n("2b4c")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(o,{next:r(1,n)}),s(t,e+" Iterator")}},"41a4":function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("70d5"),r=n("ff9f"),s=n("c9fd");class o extends r["a"]{constructor(){super(),this.map=new Map}get(t){return this.map.get(t)||null}put(t,e){return this.map.set(t,e),e}values(){const t=new i["a"],e=this.map.values();let n=e.next();while(!n.done)t.add(n.value),n=e.next();return t}entrySet(){const t=new s["a"];return this.map.entries().forEach(e=>t.add(e)),t}size(){return this.map.size()}}},"423e":function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; +var e={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"},i=t.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(t){return t.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,function(t){return n[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(t,e){return 12===t&&(t=0),"ರಾತ್ರಿ"===e?t<4?t:t+12:"ಬೆಳಿಗ್ಗೆ"===e?t:"ಮಧ್ಯಾಹ್ನ"===e?t>=10?t:t+12:"ಸಂಜೆ"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"ರಾತ್ರಿ":t<10?"ಬೆಳಿಗ್ಗೆ":t<17?"ಮಧ್ಯಾಹ್ನ":t<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(t){return t+"ನೇ"},week:{dow:0,doy:6}});return i})},"3eb1":function(t,e,n){"use strict";var i=n("d009"),r=n("71c9"),s=n("f9ae"),o=n("72e5");t.exports=function(t){var e=s(arguments),n=t.length-(arguments.length-1);return i(e,1+(n>0?n:0),!0)},r?r(t.exports,"apply",{value:o}):t.exports.apply=o},"3f99":function(t,e,n){"use strict";n.d(e,"a",function(){return i});class i extends Error{constructor(t){super(t),this.name=Object.keys({Exception:i})[0]}toString(){return this.message}}},"3fb5":function(t,e){"function"===typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},4082:function(t,e,n){var i=n("afdb"),r=n("f0e4");function s(t,e){if(null==t)return{};var n,s,o=r(t,e);if(i){var a=i(t);for(s=0;s=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}t.exports=s},"40b2":function(t,e,n){"use strict";var i=n("3fb5"),r=n("54d6"),s=n("73aa"),o=n("7577");function a(t){if(!r.enabled)throw new Error("Transport created when disabled");o.call(this,t,"/htmlfile",r,s)}i(a,o),a.enabled=function(t){return r.enabled&&t.sameOrigin},a.transportName="htmlfile",a.roundTrips=2,t.exports=a},"40c3":function(t,e,n){var i=n("6b4c"),r=n("5168")("toStringTag"),s="Arguments"==i(function(){return arguments}()),o=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=o(e=Object(t),r))?n:s?i(e):"Object"==(a=i(e))&&"function"==typeof e.callee?"Arguments":a}},4105:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("0b2d"),r=n("4334"),s=n("38f3"),o=function(t){function e(e){var n=e||{};t.call(this,n),n.handleDownEvent&&(this.handleDownEvent=n.handleDownEvent),n.handleDragEvent&&(this.handleDragEvent=n.handleDragEvent),n.handleMoveEvent&&(this.handleMoveEvent=n.handleMoveEvent),n.handleUpEvent&&(this.handleUpEvent=n.handleUpEvent),n.stopDown&&(this.stopDown=n.stopDown),this.handlingDownUpSequence=!1,this.trackedPointers_={},this.targetPointers=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleDownEvent=function(t){return!1},e.prototype.handleDragEvent=function(t){},e.prototype.handleEvent=function(t){if(!t.pointerEvent)return!0;var e=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==i["a"].POINTERDRAG)this.handleDragEvent(t);else if(t.type==i["a"].POINTERUP){var n=this.handleUpEvent(t);this.handlingDownUpSequence=n&&this.targetPointers.length>0}}else if(t.type==i["a"].POINTERDOWN){var r=this.handleDownEvent(t);r&&t.preventDefault(),this.handlingDownUpSequence=r,e=this.stopDown(r)}else t.type==i["a"].POINTERMOVE&&this.handleMoveEvent(t);return!e},e.prototype.handleMoveEvent=function(t){},e.prototype.handleUpEvent=function(t){return!1},e.prototype.stopDown=function(t){return t},e.prototype.updateTrackedPointers_=function(t){if(c(t)){var e=t.pointerEvent,n=e.pointerId.toString();t.type==i["a"].POINTERUP?delete this.trackedPointers_[n]:t.type==i["a"].POINTERDOWN?this.trackedPointers_[n]=e:n in this.trackedPointers_&&(this.trackedPointers_[n]=e),this.targetPointers=Object(s["c"])(this.trackedPointers_)}},e}(r["a"]);function a(t){for(var e=t.length,n=0,i=0,r=0;r0?T.join(",")||null:void 0}];else if(c(g))D=g;else{var A=Object.keys(T);D=y?A.sort(y):A}var N=d?String(n).replace(/\./g,"%2E"):String(n),Y=o&&c(T)&&1===T.length?N+"[]":N;if(a&&c(T)&&0===T.length)return Y+"[]";for(var P=0;P0?b+v:""}},4178:function(t,e,n){var i,r,s,o=n("d864"),a=n("3024"),c=n("32fc"),l=n("1ec9"),u=n("e53d"),h=u.process,d=u.setImmediate,f=u.clearImmediate,p=u.MessageChannel,_=u.Dispatch,m=0,g={},y="onreadystatechange",v=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},b=function(t){v.call(t.data)};d&&f||(d=function(t){var e=[],n=1;while(arguments.length>n)e.push(arguments[n++]);return g[++m]=function(){a("function"==typeof t?t:Function(t),e)},i(m),m},f=function(t){delete g[t]},"process"==n("6b4c")(h)?i=function(t){h.nextTick(o(v,t,1))}:_&&_.now?i=function(t){_.now(o(v,t,1))}:p?(r=new p,s=r.port2,r.port1.onmessage=b,i=o(s.postMessage,s,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(i=function(t){u.postMessage(t+"","*")},u.addEventListener("message",b,!1)):i=y in l("script")?function(t){c.appendChild(l("script"))[y]=function(){c.removeChild(this),v.call(t)}}:function(t){setTimeout(o(v,t,1),0)}),t.exports={set:d,clear:f}},"417f":function(t,e,n){"use strict";t.exports=EvalError},"41a0":function(t,e,n){"use strict";var i=n("2aeb"),r=n("4630"),s=n("7f20"),o={};n("32e9")(o,n("2b4c")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(o,{next:r(1,n)}),s(t,e+" Iterator")}},"41a4":function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("70d5"),r=n("ff9f"),s=n("c9fd");class o extends r["a"]{constructor(){super(),this.map=new Map}get(t){return this.map.get(t)||null}put(t,e){return this.map.set(t,e),e}values(){const t=new i["a"],e=this.map.values();let n=e.next();while(!n.done)t.add(n.value),n=e.next();return t}entrySet(){const t=new s["a"];return this.map.entries().forEach(e=>t.add(e)),t}size(){return this.map.size()}}},"423e":function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}});return e})},"42b5":function(t,e,n){"use strict";var i=n("b18c"),r=n("177b");e["a"]={data:function(){return{keyboardIndex:0,keyboardMoveDirection:!1,keyboardMoveTimer:!1}},watch:{keyboardIndex:function(t){var e=this;this.$refs.popover&&this.$refs.popover.showing&&this.keyboardMoveDirection&&t>-1&&this.$nextTick(function(){if(e.$refs.popover){var t=e.$refs.popover.$el.querySelector(".q-select-highlight");if(t&&t.scrollIntoView){if(t.scrollIntoViewIfNeeded)return t.scrollIntoViewIfNeeded(!1);t.scrollIntoView(e.keyboardMoveDirection<0)}}})}},methods:{__keyboardShow:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.keyboardIndex!==t&&(this.keyboardIndex=t)},__keyboardSetCurrentSelection:function(t){this.keyboardIndex>=0&&this.keyboardIndex<=this.keyboardMaxIndex&&this.__keyboardSetSelection(this.keyboardIndex,t)},__keyboardHandleKey:function(t){var e=Object(i["a"])(t);switch(e){case 38:this.__keyboardMoveCursor(-1,t);break;case 40:this.__keyboardMoveCursor(1,t);break;case 13:if(this.$refs.popover.showing)return Object(i["g"])(t),void this.__keyboardSetCurrentSelection();break;case 9:this.hide();break}this.__keyboardCustomKeyHandle(e,t)},__keyboardMoveCursor:function(t,e){var n=this;if(Object(i["g"])(e),this.$refs.popover.showing){clearTimeout(this.keyboardMoveTimer);var s=this.keyboardIndex,o=this.__keyboardIsSelectableIndex||function(){return!0};do{s=Object(r["c"])(s+t,-1,this.keyboardMaxIndex)}while(s!==this.keyboardIndex&&!o(s));return this.keyboardMoveDirection=s>this.keyboardIndex?1:-1,this.keyboardMoveTimer=setTimeout(function(){n.keyboardMoveDirection=!1},500),void(this.keyboardIndex=s)}this.__keyboardShowTrigger()}}}},"42d2":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("ad3f"),r=n("fd89");class s extends i["a"]{constructor(){super(),s.constructor_.apply(this,arguments)}static constructor_(){if(this._m=null,0===arguments.length)i["a"].constructor_.call(this),this._m=0;else if(1===arguments.length){if(arguments[0]instanceof s){const t=arguments[0];i["a"].constructor_.call(this,t),this._m=t._m}else if(arguments[0]instanceof i["a"]){const t=arguments[0];i["a"].constructor_.call(this,t),this._m=this.getM()}}else if(4===arguments.length){const t=arguments[0],e=arguments[1],n=arguments[2],r=arguments[3];i["a"].constructor_.call(this,t,e,n),this._m=r}}setM(t){this._m=t}getOrdinate(t){switch(t){case i["a"].X:return this.x;case i["a"].Y:return this.y;case i["a"].Z:return this.getZ();case i["a"].M:return this.getM()}throw new r["a"]("Invalid ordinate index: "+t)}copy(){return new s(this)}toString(){return"("+this.x+", "+this.y+", "+this.getZ()+" m="+this.getM()+")"}setCoordinate(t){this.x=t.x,this.y=t.y,this.z=t.getZ(),this._m=t.getM()}getM(){return this._m}setOrdinate(t,e){switch(t){case i["a"].X:this.x=e;break;case i["a"].Y:this.y=e;break;case i["a"].Z:this.z=e;break;case i["a"].M:this._m=e;break;default:throw new r["a"]("Invalid ordinate index: "+t)}}}},4328:function(t,e,n){"use strict";var i=n("4127"),r=n("9e6a"),s=n("b313");t.exports={formats:s,parse:r,stringify:i}},4334:function(t,e,n){"use strict";n.d(e,"b",function(){return c}),n.d(e,"c",function(){return l}),n.d(e,"d",function(){return u}),n.d(e,"e",function(){return h}),n.d(e,"f",function(){return d}),n.d(e,"g",function(){return f});var i=n("e269"),r=n("ca42"),s=n("bf62"),o=n("7fc9"),a=function(t){function e(e){t.call(this),e.handleEvent&&(this.handleEvent=e.handleEvent),this.map_=null,this.setActive(!0)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getActive=function(){return this.get(s["a"].ACTIVE)},e.prototype.getMap=function(){return this.map_},e.prototype.handleEvent=function(t){return!0},e.prototype.setActive=function(t){this.set(s["a"].ACTIVE,t)},e.prototype.setMap=function(t){this.map_=t},e}(i["a"]);function c(t,e,n){var i=t.getCenter();if(i){var s=t.constrainCenter([i[0]+e[0],i[1]+e[1]]);n?t.animate({duration:n,easing:r["d"],center:s}):t.setCenter(s)}}function l(t,e,n,i){e=t.constrainRotation(e,0),u(t,e,n,i)}function u(t,e,n,i){if(void 0!==e){var s=t.getRotation(),o=t.getCenter();void 0!==s&&o&&i>0?t.animate({rotation:e,anchor:n,duration:i,easing:r["b"]}):t.rotate(e,n)}}function h(t,e,n,i,r){e=t.constrainResolution(e,0,r),f(t,e,n,i)}function d(t,e,n,i){var r=t.getResolution(),s=t.constrainResolution(r,e,0);if(void 0!==s){var a=t.getResolutions();s=Object(o["a"])(s,t.getMinResolution()||a[a.length-1],t.getMaxResolution()||a[0])}if(n&&void 0!==s&&s!==r){var c=t.getCenter(),l=t.calculateCenterZoom(s,n);l=t.constrainCenter(l),n=[(s*c[0]-r*l[0])/(s-r),(s*c[1]-r*l[1])/(s-r)]}f(t,s,n,i)}function f(t,e,n,i){if(e){var s=t.getResolution(),o=t.getCenter();if(void 0!==s&&o&&e!==s&&i)t.animate({resolution:e,anchor:n,duration:i,easing:r["b"]});else{if(n){var a=t.calculateCenterZoom(e,n);t.setCenter(a)}t.setResolution(e)}}}e["a"]=a},4362:function(t,e,n){e.nextTick=function(t){var e=Array.prototype.slice.call(arguments);e.shift(),setTimeout(function(){t.apply(null,e)},0)},e.platform=e.arch=e.execPath=e.title="browser",e.pid=1,e.browser=!0,e.env={},e.argv=[],e.binding=function(t){throw new Error("No such module. (Possibly not yet loaded)")},function(){var t,i="/";e.cwd=function(){return i},e.chdir=function(e){t||(t=n("df7c")),i=t.resolve(e,i)}}(),e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},"43ed":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("ad3f"),r=n("fd89");class s extends i["a"]{constructor(){super(),s.constructor_.apply(this,arguments)}static constructor_(){if(this._m=null,0===arguments.length)i["a"].constructor_.call(this),this._m=0;else if(1===arguments.length){if(arguments[0]instanceof s){const t=arguments[0];i["a"].constructor_.call(this,t.x,t.y),this._m=t._m}else if(arguments[0]instanceof i["a"]){const t=arguments[0];i["a"].constructor_.call(this,t.x,t.y),this._m=this.getM()}}else if(3===arguments.length){const t=arguments[0],e=arguments[1],n=arguments[2];i["a"].constructor_.call(this,t,e,i["a"].NULL_ORDINATE),this._m=n}}setM(t){this._m=t}setZ(t){throw new r["a"]("CoordinateXY dimension 2 does not support z-ordinate")}copy(){return new s(this)}toString(){return"("+this.x+", "+this.y+" m="+this.getM()+")"}setCoordinate(t){this.x=t.x,this.y=t.y,this.z=t.getZ(),this._m=t.getM()}getM(){return this._m}setOrdinate(t,e){switch(t){case s.X:this.x=e;break;case s.Y:this.y=e;break;case s.M:this._m=e;break;default:throw new r["a"]("Invalid ordinate index: "+t)}}getZ(){return i["a"].NULL_ORDINATE}getOrdinate(t){switch(t){case s.X:return this.x;case s.Y:return this.y;case s.M:return this._m}throw new r["a"]("Invalid ordinate index: "+t)}}s.X=0,s.Y=1,s.Z=-1,s.M=2},"43fc":function(t,e,n){"use strict";var i=n("63b6"),r=n("656e"),s=n("4439");i(i.S,"Promise",{try:function(t){var e=r.f(this),n=s(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},"440c":function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration @@ -96,7 +103,7 @@ function e(t,e,n,i){var r={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger //! moment.js locale configuration var e={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"},n=t.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(t){return/^(gündüz|axşam)$/.test(t)},meridiem:function(t,e,n){return t<4?"gecə":t<12?"səhər":t<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(t){if(0===t)return t+"-ıncı";var n=t%10,i=t%100-n,r=t>=100?100:null;return t+(e[n]||e[i]||e[r])},week:{dow:1,doy:7}});return n})},"486c":function(t,e,n){"use strict";(function(e){n("7725");var i,r=n("1816"),s=n("3fb5"),o=n("930c"),a=n("2582"),c=n("84fc"),l=n("621f"),u=n("c282"),h=n("0040"),d=n("d5e5"),f=n("26a0"),p=n("48cd"),_=n("9a83"),m=n("97a2"),g=n("a0e2"),y=n("e362"),v=n("47e43"),b=n("b9a8"),M=function(){};function w(t,e,n){if(!(this instanceof w))return new w(t,e,n);if(arguments.length<1)throw new TypeError("Failed to construct 'SockJS: 1 argument required, but only 0 present");m.call(this),this.readyState=w.CONNECTING,this.extensions="",this.protocol="",n=n||{},n.protocols_whitelist&&p.warn("'protocols_whitelist' is DEPRECATED. Use 'transports' instead."),this._transportsWhitelist=n.transports,this._transportOptions=n.transportOptions||{};var i=n.sessionId||8;if("function"===typeof i)this._generateSessionId=i;else{if("number"!==typeof i)throw new TypeError("If sessionId is used in the options, it needs to be a number or a function.");this._generateSessionId=function(){return a.string(i)}}this._server=n.server||a.numberString(1e3);var s=new r(t);if(!s.host||!s.protocol)throw new SyntaxError("The URL '"+t+"' is invalid");if(s.hash)throw new SyntaxError("The URL must not contain a fragment");if("http:"!==s.protocol&&"https:"!==s.protocol)throw new SyntaxError("The URL's scheme must be either 'http:' or 'https:'. '"+s.protocol+"' is not allowed.");var o="https:"===s.protocol;if("https:"===g.protocol&&!o)throw new Error("SecurityError: An insecure SockJS connection may not be initiated from a page loaded over HTTPS");e?Array.isArray(e)||(e=[e]):e=[];var c=e.sort();c.forEach(function(t,e){if(!t)throw new SyntaxError("The protocols entry '"+t+"' is invalid.");if(e=3e3&&t<=4999}s(w,m),w.prototype.close=function(t,e){if(t&&!x(t))throw new Error("InvalidAccessError: Invalid code");if(e&&e.length>123)throw new SyntaxError("reason argument has an invalid length");if(this.readyState!==w.CLOSING&&this.readyState!==w.CLOSED){var n=!0;this._close(t||1e3,e||"Normal closure",n)}},w.prototype.send=function(t){if("string"!==typeof t&&(t=""+t),this.readyState===w.CONNECTING)throw new Error("InvalidStateError: The connection has not been established yet");this.readyState===w.OPEN&&this._transport.send(c.quote(t))},w.version=n("1015"),w.CONNECTING=0,w.OPEN=1,w.CLOSING=2,w.CLOSED=3,w.prototype._receiveInfo=function(t,e){if(M("_receiveInfo",e),this._ir=null,t){this._rto=this.countRTO(e),this._transUrl=t.base_url?t.base_url:this.url,t=d.extend(t,this._urlInfo),M("info",t);var n=i.filterToEnabled(this._transportsWhitelist,t);this._transports=n.main,M(this._transports.length+" enabled transports"),this._connect()}else this._close(1002,"Cannot connect to server")},w.prototype._connect=function(){for(var t=this._transports.shift();t;t=this._transports.shift()){if(M("attempt",t.transportName),t.needBody&&(!e.document.body||"undefined"!==typeof e.document.readyState&&"complete"!==e.document.readyState&&"interactive"!==e.document.readyState))return M("waiting for body"),this._transports.unshift(t),void u.attachEvent("load",this._connect.bind(this));var n=this._rto*t.roundTrips||5e3;this._transportTimeoutId=setTimeout(this._transportTimeout.bind(this),n),M("using timeout",n);var i=l.addPath(this._transUrl,"/"+this._server+"/"+this._generateSessionId()),r=this._transportOptions[t.transportName];M("transport url",i);var s=new t(i,this._transUrl,r);return s.on("message",this._transportMessage.bind(this)),s.once("close",this._transportClose.bind(this)),s.transportName=t.transportName,void(this._transport=s)}this._close(2e3,"All transports failed",!1)},w.prototype._transportTimeout=function(){M("_transportTimeout"),this.readyState===w.CONNECTING&&(this._transport&&this._transport.close(),this._transportClose(2007,"Transport timed out"))},w.prototype._transportMessage=function(t){M("_transportMessage",t);var e,n=this,i=t.slice(0,1),r=t.slice(1);switch(i){case"o":return void this._open();case"h":return this.dispatchEvent(new _("heartbeat")),void M("heartbeat",this.transport)}if(r)try{e=o.parse(r)}catch(t){M("bad json",r)}if("undefined"!==typeof e)switch(i){case"a":Array.isArray(e)&&e.forEach(function(t){M("message",n.transport,t),n.dispatchEvent(new v(t))});break;case"m":M("message",this.transport,e),this.dispatchEvent(new v(e));break;case"c":Array.isArray(e)&&2===e.length&&this._close(e[0],e[1],!0);break}else M("empty payload",r)},w.prototype._transportClose=function(t,e){M("_transportClose",this.transport,t,e),this._transport&&(this._transport.removeAllListeners(),this._transport=null,this.transport=null),x(t)||2e3===t||this.readyState!==w.CONNECTING?this._close(t,e):this._connect()},w.prototype._open=function(){M("_open",this._transport.transportName,this.readyState),this.readyState===w.CONNECTING?(this._transportTimeoutId&&(clearTimeout(this._transportTimeoutId),this._transportTimeoutId=null),this.readyState=w.OPEN,this.transport=this._transport.transportName,this.dispatchEvent(new _("open")),M("connected",this.transport)):this._close(1006,"Server lost session")},w.prototype._close=function(t,e,n){M("_close",this.transport,t,e,n,this.readyState);var i=!1;if(this._ir&&(i=!0,this._ir.close(),this._ir=null),this._transport&&(this._transport.close(),this._transport=null,this.transport=null),this.readyState===w.CLOSED)throw new Error("InvalidStateError: SockJS has already been closed");this.readyState=w.CLOSING,setTimeout(function(){this.readyState=w.CLOSED,i&&this.dispatchEvent(new _("error"));var r=new y("close");r.wasClean=n||!1,r.code=t||1e3,r.reason=e,this.dispatchEvent(r),this.onmessage=this.onclose=this.onerror=null,M("disconnected")}.bind(this),0)},w.prototype.countRTO=function(t){return t>100?4*t:300+t},t.exports=function(t){return i=h(t),n("9fa7")(w,t),w}}).call(this,n("c8ba"))},"487d":function(t,e,n){},"48c0":function(t,e,n){"use strict";n("386b")("bold",function(t){return function(){return t(this,"b","","")}})},"48cd":function(t,e,n){"use strict";(function(e){var n={};["log","debug","warn"].forEach(function(t){var i;try{i=e.console&&e.console[t]&&e.console[t].apply}catch(t){}n[t]=i?function(){return e.console[t].apply(e.console,arguments)}:"log"===t?function(){}:n.log}),t.exports=n}).call(this,n("c8ba"))},4917:function(t,e,n){"use strict";var i=n("cb7c"),r=n("9def"),s=n("0390"),o=n("5f1b");n("214f")("match",1,function(t,e,n,a){return[function(n){var i=t(this),r=void 0==n?void 0:n[e];return void 0!==r?r.call(n,i):new RegExp(n)[e](String(i))},function(t){var e=a(n,t,this);if(e.done)return e.value;var c=i(t),l=String(this);if(!c.global)return o(c,l);var u=c.unicode;c.lastIndex=0;var h,d=[],f=0;while(null!==(h=o(c,l))){var p=String(h[0]);d[f]=p,""===p&&(c.lastIndex=s(l,r(c.lastIndex),u)),f++}return 0===f?null:d}]})},"496f":function(t,e,n){"use strict";e["a"]={ANIMATING:0,INTERACTING:1}},"49ab":function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration -var e=t.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,n){var i=100*t+e;return i<600?"凌晨":i<900?"早上":i<1200?"上午":1200===i?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});return e})},"4a59":function(t,e,n){var i=n("9b43"),r=n("1fa8"),s=n("33a4"),o=n("cb7c"),a=n("9def"),c=n("27ee"),l={},u={};e=t.exports=function(t,e,n,h,d){var f,p,_,m,g=d?function(){return t}:c(t),y=i(n,h,e?2:1),v=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(s(g)){for(f=a(t.length);f>v;v++)if(m=e?y(o(p=t[v])[0],p[1]):y(t[v]),m===l||m===u)return m}else for(_=g.call(t);!(p=_.next()).done;)if(m=r(_,y,p.value,e),m===l||m===u)return m};e.BREAK=l,e.RETURN=u},"4a7b":function(t,e,n){"use strict";n.d(e,"a",function(){return i});class i{constructor(t){this.str=t}append(t){this.str+=t}setCharAt(t,e){this.str=this.str.substr(0,t)+e+this.str.substr(t+1)}toString(){return this.str}}},"4a7d":function(t,e,n){"use strict";var i=n("1300"),r=n("0354"),s=n.n(r),o=n("0af5"),a=n("38f3"),c=function(t){this.rbush_=s()(t,void 0),this.items_={}};c.prototype.insert=function(t,e){var n={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(n),this.items_[Object(i["c"])(e)]=n},c.prototype.load=function(t,e){for(var n=new Array(e.length),r=0,s=e.length;r>>0,i=arguments[1],r=0;r=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,n){var i=100*t+e;return i<600?"凌晨":i<900?"早上":i<1200?"上午":1200===i?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});return e})},"4a59":function(t,e,n){var i=n("9b43"),r=n("1fa8"),s=n("33a4"),o=n("cb7c"),a=n("9def"),c=n("27ee"),l={},u={};e=t.exports=function(t,e,n,h,d){var f,p,_,m,g=d?function(){return t}:c(t),y=i(n,h,e?2:1),v=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(s(g)){for(f=a(t.length);f>v;v++)if(m=e?y(o(p=t[v])[0],p[1]):y(t[v]),m===l||m===u)return m}else for(_=g.call(t);!(p=_.next()).done;)if(m=r(_,y,p.value,e),m===l||m===u)return m};e.BREAK=l,e.RETURN=u},"4a7b":function(t,e,n){"use strict";n.d(e,"a",function(){return i});class i{constructor(t){this.str=t}append(t){this.str+=t}setCharAt(t,e){this.str=this.str.substr(0,t)+e+this.str.substr(t+1)}toString(){return this.str}}},"4a7d":function(t,e,n){"use strict";var i=n("1300"),r=n("0354"),s=n.n(r),o=n("0af5"),a=n("38f3"),c=function(t){this.rbush_=s()(t,void 0),this.items_={}};c.prototype.insert=function(t,e){var n={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(n),this.items_[Object(i["c"])(e)]=n},c.prototype.load=function(t,e){for(var n=new Array(e.length),r=0,s=e.length;r>>0,i=arguments[1],r=0;r=11?t:t+12},meridiem:function(t,e,n){var i=100*t+e;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(t){return t.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(t){return this.week()!==t.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"周";default:return t}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}});return e})},"5c95":function(t,e,n){var i=n("35e8");t.exports=function(t,e,n){for(var r in e)n&&t[r]?t[r]=e[r]:i(t,r,e[r]);return t}},"5ca1":function(t,e,n){var i=n("7726"),r=n("8378"),s=n("32e9"),o=n("2aba"),a=n("9b43"),c="prototype",l=function(t,e,n){var u,h,d,f,p=t&l.F,_=t&l.G,m=t&l.S,g=t&l.P,y=t&l.B,v=_?i:m?i[e]||(i[e]={}):(i[e]||{})[c],b=_?r:r[e]||(r[e]={}),M=b[c]||(b[c]={});for(u in _&&(n=e),n)h=!p&&v&&void 0!==v[u],d=(h?v:n)[u],f=y&&h?a(d,i):g&&"function"==typeof d?a(Function.call,d):d,v&&o(v,u,d,t&l.U),b[u]!=d&&s(b,u,f),g&&M[u]!=d&&(M[u]=d)};i.core=r,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},"5cbb":function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration -var e=t.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(t,e){return 12===t&&(t=0),"రాత్రి"===e?t<4?t:t+12:"ఉదయం"===e?t:"మధ్యాహ్నం"===e?t>=10?t:t+12:"సాయంత్రం"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"రాత్రి":t<10?"ఉదయం":t<17?"మధ్యాహ్నం":t<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}});return e})},"5cc5":function(t,e,n){var i=n("2b4c")("iterator"),r=!1;try{var s=[7][i]();s["return"]=function(){r=!0},Array.from(s,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var s=[7],o=s[i]();o.next=function(){return{done:n=!0}},s[i]=function(){return o},t(s)}catch(t){}return n}},"5d8b":function(t,e,n){"use strict";n("f751"),n("7cdf"),n("c5f6"),n("6762"),n("2fdb");var i=n("cd88"),r=n("d7db"),s=["text","textarea","email","search","tel","file","number","password","url","time","date"],o=n("8e2f"),a=n("177b"),c=n("363b"),l=n("2054"),u=n("b70a"),h=n("52b5");e["a"]={name:"QInput",mixins:[i["a"],r["a"]],props:{value:{required:!0},type:{type:String,default:"text",validator:function(t){return s.includes(t)}},align:{type:String,validator:function(t){return["left","center","right"].includes(t)}},noPassToggle:Boolean,numericKeyboardToggle:Boolean,readonly:Boolean,decimals:Number,step:Number,upperCase:Boolean,lowerCase:Boolean,initialShowPassword:Boolean},data:function(){var t=this;return{showPass:this.initialShowPassword,showNumber:!0,model:this.value,watcher:null,autofilled:!1,shadow:{val:this.model,set:this.__set,setNav:this.__set,loading:!1,watched:0,isEditable:function(){return t.editable},isDark:function(){return t.dark},hasFocus:function(){return document.activeElement===t.$refs.input},register:function(){t.shadow.watched+=1,t.__watcherRegister()},unregister:function(){t.shadow.watched=Math.max(0,t.shadow.watched-1),t.__watcherUnregister()},getEl:function(){return t.$refs.input}}}},watch:{value:function(t){var e=parseFloat(this.model),n=parseFloat(t);(!this.isNumber||this.isNumberError||isNaN(e)||isNaN(n)||e!==n)&&(this.model=t),this.isNumberError=!1,this.isNegZero=!1},isTextarea:function(t){this[t?"__watcherRegister":"__watcherUnregister"]()},"$attrs.rows":function(){this.isTextarea&&this.__updateArea()}},provide:function(){return{__input:this.shadow}},computed:{isNumber:function(){return"number"===this.type},isPassword:function(){return"password"===this.type},isTextarea:function(){return"textarea"===this.type},isLoading:function(){return this.loading||this.shadow.watched&&this.shadow.loading},keyboardToggle:function(){return this.$q.platform.is.mobile&&this.isNumber&&this.numericKeyboardToggle},inputType:function(){return this.isPassword?this.showPass&&this.editable?"text":"password":this.isNumber?this.showNumber||!this.editable?"number":"text":this.type},inputClasses:function(){var t=[];return this.align&&t.push("text-".concat(this.align)),this.autofilled&&t.push("q-input-autofill"),t},length:function(){return null!==this.model&&void 0!==this.model?(""+this.model).length:0},computedClearValue:function(){return void 0===this.clearValue?this.isNumber?null:"":this.clearValue},computedStep:function(){return this.step||(this.decimals?Math.pow(10,-this.decimals):"any")},frameProps:function(){return{prefix:this.prefix,suffix:this.suffix,stackLabel:this.stackLabel,floatLabel:this.floatLabel,placeholder:this.placeholder,error:this.error,warning:this.warning,disable:this.disable,readonly:this.readonly,inverted:this.inverted,invertedLight:this.invertedLight,dark:this.dark,hideUnderline:this.hideUnderline,before:this.before,after:this.after,color:this.color,noParentField:this.noParentField,focused:this.focused,length:this.autofilled+this.length}}},methods:{togglePass:function(){this.showPass=!this.showPass,clearTimeout(this.timer),this.focus()},toggleNumber:function(){this.showNumber=!this.showNumber,clearTimeout(this.timer),this.focus()},__clearTimer:function(){var t=this;this.$nextTick(function(){return clearTimeout(t.timer)})},__onAnimationStart:function(t){if(0===t.animationName.indexOf("webkit-autofill-")){var e="webkit-autofill-on"===t.animationName;if(e!==this.autofilled)return t.value=this.autofilled=e,t.el=this,this.$emit("autofill",t)}},__setModel:function(t){clearTimeout(this.timer),this.focus(),this.__set(this.isNumber&&0===t?t:t||(this.isNumber?null:""),!0)},__set:function(t,e){var n=this,i=t&&t.target?t.target.value:t;if(this.isNumber){this.isNegZero=1/i===-1/0;var r=this.isNegZero?-0:i;if(this.model=i,i=parseFloat(i),isNaN(i)||this.isNegZero)return this.isNumberError=!0,void(e&&(this.$emit("input",r),this.$nextTick(function(){String(1/r)!==String(1/n.value)&&n.$emit("change",r)})));this.isNumberError=!1,Number.isInteger(this.decimals)&&(i=parseFloat(i.toFixed(this.decimals)))}else this.lowerCase?i=i.toLowerCase():this.upperCase&&(i=i.toUpperCase()),this.model=i;this.$emit("input",i),e&&this.$nextTick(function(){JSON.stringify(i)!==JSON.stringify(n.value)&&n.$emit("change",i)})},__updateArea:function(){var t=this.$refs.shadow,e=this.$refs.input;if(t&&e){var n=t.scrollHeight,i=Object(a["a"])(n,t.offsetHeight,this.maxHeight||n);e.style.height="".concat(i,"px"),e.style.overflowY=this.maxHeight&&i=e.length){for(var r=[],s=0;sthis.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_},e.prototype.disposeInternal=function(){this.relayedListenerKey_&&(Object(u["e"])(this.relayedListenerKey_),this.relayedListenerKey_=null),this.pointerdownListenerKey_&&(Object(u["e"])(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(u["e"]),this.dragListenerKeys_.length=0,this.documentPointerEventHandler_&&(this.documentPointerEventHandler_.dispose(),this.documentPointerEventHandler_=null),this.pointerEventHandler_&&(this.pointerEventHandler_.dispose(),this.pointerEventHandler_=null),t.prototype.disposeInternal.call(this)},e}(h["a"]),et=tt,nt=n("7238"),it=n("592d"),rt={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"},st=n("070d"),ot=n("e269"),at=n("7b4f"),ct=n("acc1"),lt=n("01d4"),ut=n("92fa"),ht=n("38f3"),dt=1/0,ft=function(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}};ft.prototype.clear=function(){this.elements_.length=0,this.priorities_.length=0,Object(ht["b"])(this.queuedElements_)},ft.prototype.dequeue=function(){var t=this.elements_,e=this.priorities_,n=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));var i=this.keyFunction_(n);return delete this.queuedElements_[i],n},ft.prototype.enqueue=function(t){Object(ut["a"])(!(this.keyFunction_(t)in this.queuedElements_),31);var e=this.priorityFunction_(t);return e!=dt&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)},ft.prototype.getCount=function(){return this.elements_.length},ft.prototype.getLeftChildIndex_=function(t){return 2*t+1},ft.prototype.getRightChildIndex_=function(t){return 2*t+2},ft.prototype.getParentIndex_=function(t){return t-1>>1},ft.prototype.heapify_=function(){var t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)},ft.prototype.isEmpty=function(){return 0===this.elements_.length},ft.prototype.isKeyQueued=function(t){return t in this.queuedElements_},ft.prototype.isQueued=function(t){return this.isKeyQueued(this.keyFunction_(t))},ft.prototype.siftUp_=function(t){var e=this.elements_,n=this.priorities_,i=e.length,r=e[t],s=n[t],o=t;while(t>1){var a=this.getLeftChildIndex_(t),c=this.getRightChildIndex_(t),l=ct){var o=this.getParentIndex_(e);if(!(i[o]>s))break;n[e]=n[o],i[e]=i[o],e=o}n[e]=r,i[e]=s},ft.prototype.reprioritize=function(){var t,e,n,i=this.priorityFunction_,r=this.elements_,s=this.priorities_,o=0,a=r.length;for(e=0;e0)i=this.dequeue()[0],r=i.getKey(),n=i.getState(),n===ct["a"].ABORT?o=!0:n!==ct["a"].IDLE||r in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[r]=!0,++this.tilesLoading_,++s,i.load());0===s&&o&&this.tileChangeCallback_()},e}(pt),mt=_t,gt=n("a2c7"),yt=n("496f"),vt=n("0999"),bt=n("0af5"),Mt=n("57cb"),wt=n("9c78"),xt=n("345d"),Lt=n("a896"),Et=function(t){function e(e){t.call(this);var n=Tt(e);this.maxTilesLoading_=void 0!==e.maxTilesLoading?e.maxTilesLoading:16,this.loadTilesWhileAnimating_=void 0!==e.loadTilesWhileAnimating&&e.loadTilesWhileAnimating,this.loadTilesWhileInteracting_=void 0!==e.loadTilesWhileInteracting&&e.loadTilesWhileInteracting,this.pixelRatio_=void 0!==e.pixelRatio?e.pixelRatio:a["b"],this.animationDelayKey_,this.animationDelay_=function(){this.animationDelayKey_=void 0,this.renderFrame_.call(this,Date.now())}.bind(this),this.coordinateToPixelTransform_=Object(Lt["c"])(),this.pixelToCoordinateTransform_=Object(Lt["c"])(),this.frameIndex_=0,this.frameState_=null,this.previousExtent_=null,this.viewPropertyListenerKey_=null,this.viewChangeListenerKey_=null,this.layerGroupPropertyListenerKeys_=null,this.viewport_=document.createElement("div"),this.viewport_.className="ol-viewport"+(a["h"]?" ol-touch":""),this.viewport_.style.position="relative",this.viewport_.style.overflow="hidden",this.viewport_.style.width="100%",this.viewport_.style.height="100%",this.viewport_.style.msTouchAction="none",this.viewport_.style.touchAction="none",this.overlayContainer_=document.createElement("div"),this.overlayContainer_.className="ol-overlaycontainer",this.viewport_.appendChild(this.overlayContainer_),this.overlayContainerStopEvent_=document.createElement("div"),this.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent";for(var i=[lt["a"].CLICK,lt["a"].DBLCLICK,lt["a"].MOUSEDOWN,lt["a"].TOUCHSTART,lt["a"].MSPOINTERDOWN,c["a"].POINTERDOWN,lt["a"].MOUSEWHEEL,lt["a"].WHEEL],o=0,l=i.length;o=0;n--){var i=e[n];if(i.getActive()){var r=i.handleEvent(t);if(!r)break}}}},e.prototype.handlePostRender=function(){var t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){var n=this.maxTilesLoading_,i=n;if(t){var r=t.viewHints;r[yt["a"].ANIMATING]&&(n=this.loadTilesWhileAnimating_?8:0,i=2),r[yt["a"].INTERACTING]&&(n=this.loadTilesWhileInteracting_?8:0,i=2)}e.getTilesLoading()p[2]){var g=Math.ceil((p[0]-m)/_);f=[m+_*g,t[1]]}}var y,v=e.layerStatesArray,b=v.length;for(y=b-1;y>=0;--y){var M=v[y],w=M.layer;if(Object(Ft["b"])(M,u)&&o.call(a,w)){var x=this.getLayerRenderer(w),L=w.getSource();if(L&&(c=x.forEachFeatureAtCoordinate(L.getWrapX()?f:t,e,n,h)),c)return c}}},e.prototype.forEachLayerAtPixel=function(t,e,n,r,s,o,a){return Object(i["b"])()},e.prototype.hasFeatureAtCoordinate=function(t,e,n,i,r){var s=this.forEachFeatureAtCoordinate(t,e,n,Mt["b"],this,i,r);return void 0!==s},e.prototype.getLayerRenderer=function(t){var e=Object(i["c"])(t);if(e in this.layerRenderers_)return this.layerRenderers_[e];for(var n,r=0,s=this.layerRendererConstructors_.length;r=0;--c){var p=h[c],_=p.layer;if(Object(Ft["b"])(p,u)&&s.call(o,_)){var m=this.getLayerRenderer(_);if(a=m.forEachLayerAtCoordinate(f,e,n,i,r),a)return a}}},e.prototype.registerLayerRenderers=function(e){t.prototype.registerLayerRenderers.call(this,e);for(var n=0,i=e.length;n=.5&&h>=.5&&n.drawImage(i,0,0,+i.width,+i.height,Math.round(c),Math.round(l),Math.round(u),Math.round(h)),n.globalAlpha=a,s&&n.restore()}this.postCompose(n,t,e)},e.prototype.getImage=function(){return Object(i["b"])()},e.prototype.getImageTransform=function(){return Object(i["b"])()},e.prototype.forEachLayerAtCoordinate=function(t,e,n,i,r){if(this.getImage()){var s=Object(Lt["a"])(this.coordinateToCanvasPixelTransform,t.slice());Object(ae["g"])(s,e.viewState.resolution/this.renderedResolution),this.hitCanvasContext_||(this.hitCanvasContext_=Object(vt["a"])(1,1)),this.hitCanvasContext_.clearRect(0,0,1,1),this.hitCanvasContext_.drawImage(this.getImage(),s[0],s[1],1,1,0,0,1,1);var o=this.hitCanvasContext_.getImageData(0,0,1,1).data;return o[3]>0?i.call(r,this.getLayer(),o):void 0}},e}(de),pe=fe,_e=function(t){function e(n){if(t.call(this,n),this.image_=null,this.imageTransform_=Object(Lt["c"])(),this.skippedFeatures_=[],this.vectorRenderer_=null,n.getType()===Yt["a"].VECTOR)for(var i=0,r=re.length;i0&&(this.newTiles_=!0):a.setState(ct["a"].LOADED)),this.isDrawableTile_(a)||(a=a.getInterimTile()),a},e.prototype.prepareFrame=function(t,e){var n=t.pixelRatio,r=t.size,s=t.viewState,o=s.projection,a=s.resolution,c=s.center,l=this.getLayer(),u=l.getSource(),h=u.getRevision(),d=u.getTileGridForProjection(o),f=d.getZForResolution(a,this.zDirection),p=d.getResolution(f),_=Math.round(a/p)||1,m=t.extent;if(void 0!==e.extent&&(m=Object(bt["B"])(m,e.extent)),Object(bt["H"])(m))return!1;var g=d.getTileRangeForExtentAndZ(m,f),y=d.getTileRangeExtent(f,g),v=u.getTilePixelRatio(n),b={};b[f]={};var M,w,x,L=this.createLoadedTileFinder(u,o,b),E=t.viewHints,T=E[yt["a"].ANIMATING]||E[yt["a"].INTERACTING],S=this.tmpExtent,O=this.tmpTileRange_;for(this.newTiles_=!1,w=g.minX;w<=g.maxX;++w)for(x=g.minY;x<=g.maxY;++x)if(!(Date.now()-t.time>16&&T)){if(M=this.getTile(f,w,x,n,o),this.isDrawableTile_(M)){var k=Object(i["c"])(this);if(M.getState()==ct["a"].LOADED){b[f][M.tileCoord.toString()]=M;var C=M.inTransition(k);this.newTiles_||!C&&-1!==this.renderedTiles.indexOf(M)||(this.newTiles_=!0)}if(1===M.getAlpha(k,t.time))continue}var I=d.getTileCoordChildTileRange(M.tileCoord,O,S),D=!1;I&&(D=L(f+1,I)),D||d.forEachTileCoordParentTileRange(M.tileCoord,L,null,O,S)}var R=p*n/v*_;if(!(this.renderedResolution&&Date.now()-t.time>16&&T)&&(this.newTiles_||!this.renderedExtent_||!Object(bt["g"])(this.renderedExtent_,m)||this.renderedRevision!=h||_!=this.oversampling_||!T&&R!=this.renderedResolution)){var A=this.context;if(A){var N=u.getTilePixelSize(f,n,o),Y=Math.round(g.getWidth()*N[0]/_),P=Math.round(g.getHeight()*N[1]/_),j=A.canvas;j.width!=Y||j.height!=P?(this.oversampling_=_,j.width=Y,j.height=P):((this.renderedExtent_&&!Object(bt["p"])(y,this.renderedExtent_)||this.renderedRevision!=h)&&A.clearRect(0,0,Y,P),_=this.oversampling_)}this.renderedTiles.length=0;var F,H,q,G,z,B,U,W,$,V,X,K=Object.keys(b).map(Number);for(K.sort(function(t,e){return t===f?1:e===f?-1:t>e?1:t0},e.prototype.drawTileImage=function(t,e,n,r,s,o,a,c,l){var u=this.getTileImage(t);if(u){var h=Object(i["c"])(this),d=l?t.getAlpha(h,e.time):1,f=this.getLayer(),p=f.getSource();1!==d||p.getOpaque(e.viewState.projection)||this.context.clearRect(r,s,o,a);var _=d!==this.context.globalAlpha;_&&(this.context.save(),this.context.globalAlpha=d),this.context.drawImage(u,c,c,u.width-2*c,u.height-2*c,r,s,o,a),_&&this.context.restore(),1!==d?e.animate=!0:l&&t.endTransition(h)}},e.prototype.getImage=function(){var t=this.context;return t?t.canvas:null},e.prototype.getImageTransform=function(){return this.imageTransform_},e.prototype.getTileImage=function(t){return t.getImage()},e}(pe);ye["handles"]=function(t){return t.getType()===Yt["a"].TILE},ye["create"]=function(t,e){return new ye(e)},ye.prototype.getLayer;var ve=ye,be=n("0354"),Me=n.n(be),we=function(){};we.prototype.getReplay=function(t,e){return Object(i["b"])()},we.prototype.isEmpty=function(){return Object(i["b"])()},we.prototype.addDeclutter=function(t){return Object(i["b"])()};var xe=we,Le={CIRCLE:"Circle",DEFAULT:"Default",IMAGE:"Image",LINE_STRING:"LineString",POLYGON:"Polygon",TEXT:"Text"},Ee=n("045d"),Te=n("bb6c"),Se=n("5938"),Oe=n("7fc9");function ke(t,e,n,i,r,s,o,a){var c=[],l=t[e]>t[n-i],u=r.length,h=t[e],d=t[e+1];e+=i;for(var f,p,_,m=t[e],g=t[e+1],y=0,v=Math.sqrt(Math.pow(m-h,2)+Math.pow(g-d,2)),b="",M=0,w=0;w0?-Math.PI:Math.PI),void 0!==_){var O=S-_;if(O+=O>Math.PI?-2*Math.PI:O<-Math.PI?2*Math.PI:0,Math.abs(O)>a)return null}var k=T/v,C=Object(Oe["c"])(h,m,k),I=Object(Oe["c"])(d,g,k);_==S?(l&&(f[0]=C,f[1]=I,f[2]=L/2),f[4]=b):(b=x,M=L,f=[C,I,L/2,S,b],l?c.unshift(f):c.push(f),_=S),o+=L}return c}var Ce={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},Ie=[Ce.FILL],De=[Ce.STROKE],Re=[Ce.BEGIN_PATH],Ae=[Ce.CLOSE_PATH],Ne=Ce,Ye=[Le.POLYGON,Le.CIRCLE,Le.LINE_STRING,Le.IMAGE,Le.TEXT,Le.DEFAULT],Pe={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},je=Object(bt["j"])(),Fe=Object(Lt["c"])(),He=function(t){function e(e,n,i,r,s,o){t.call(this),this.declutterTree=o,this.tolerance=e,this.maxExtent=n,this.overlaps=s,this.pixelRatio=r,this.maxLineWidth=0,this.resolution=i,this.alignFill_,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_=null,this.bufferedMaxExtent_=null,this.instructions=[],this.coordinates=[],this.coordinateCache_={},this.renderedTransform_=Object(Lt["c"])(),this.hitDetectionInstructions=[],this.pixelCoordinates_=null,this.state={},this.viewRotation_=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.replayTextBackground_=function(t,e,n,i,r,s,o){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,n),t.lineTo.apply(t,i),t.lineTo.apply(t,r),t.lineTo.apply(t,e),s&&(this.alignFill_=s[2],this.fill_(t)),o&&(this.setStrokeStyle_(t,o),t.stroke())},e.prototype.replayImage_=function(t,e,n,i,r,s,o,a,c,l,u,h,d,f,p,_,m,g){var y=m||g;r*=d,s*=d,e-=r,n-=s;var v,b,M,w,x=p+l>i.width?i.width-l:p,L=a+u>i.height?i.height-u:a,E=_[3]+x*d+_[1],T=_[0]+L*d+_[2],S=e-_[3],O=n-_[0];(y||0!==h)&&(v=[S,O],b=[S+E,O],M=[S+E,O+T],w=[S,O+T]);var k=null;if(0!==h){var C=e+r,I=n+s;k=Object(Lt["b"])(Fe,C,I,1,1,h,-C,-I),Object(bt["l"])(je),Object(bt["r"])(je,Object(Lt["a"])(Fe,v)),Object(bt["r"])(je,Object(Lt["a"])(Fe,b)),Object(bt["r"])(je,Object(Lt["a"])(Fe,M)),Object(bt["r"])(je,Object(Lt["a"])(Fe,w))}else Object(bt["k"])(S,O,S+E,O+T,je);var D=t.canvas,R=g?g[2]*d/2:0,A=je[0]-R<=D.width&&je[2]+R>=0&&je[1]-R<=D.height&&je[3]+R>=0;if(f&&(e=Math.round(e),n=Math.round(n)),o){if(!A&&1==o[4])return;Object(bt["q"])(o,je);var N=A?[t,k?k.slice(0):null,c,i,l,u,x,L,e,n,d]:null;N&&y&&N.push(m,g,v,b,M,w),o.push(N)}else A&&(y&&this.replayTextBackground_(t,v,b,M,w,m,g),Object(Gt["n"])(t,k,c,i,l,u,x,L,e,n,d))},e.prototype.applyPixelRatio=function(t){var e=this.pixelRatio;return 1==e?t:t.map(function(t){return t*e})},e.prototype.appendFlatCoordinates=function(t,e,n,i,r,s){var o=this.coordinates.length,a=this.getBufferedMaxExtent();s&&(e+=i);var c,l,u,h=[t[e],t[e+1]],d=[NaN,NaN],f=!0;for(c=e+i;c5){var n=t[4];if(1==n||n==t.length-5){var i={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};if(!this.declutterTree.collides(i)){this.declutterTree.insert(i);for(var r=5,s=t.length;r11&&this.replayTextBackground_(o[0],o[13],o[14],o[15],o[16],o[11],o[12]),Gt["n"].apply(void 0,o))}}t.length=5,Object(bt["l"])(t)}}},e.prototype.replay_=function(t,e,n,r,s,o,a){var c;this.pixelCoordinates_&&Object(G["b"])(e,this.renderedTransform_)?c=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),c=Object(Wt["c"])(this.coordinates,0,this.coordinates.length,2,e,this.pixelCoordinates_),Object(Lt["g"])(this.renderedTransform_,e));var l,u,h,d,f,p,_,m,g,y,v,b,M=!Object(ht["d"])(n),w=0,x=r.length,L=0,E=0,T=0,S=null,O=null,k=this.coordinateCache_,C=this.viewRotation_,I={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:C},D=this.instructions!=r||this.overlaps?0:200;while(wD&&(this.fill_(t),E=0),T>D&&(t.stroke(),T=0),E||T||(t.beginPath(),d=f=NaN),++w;break;case Ne.CIRCLE:L=R[1];var N=c[L],Y=c[L+1],P=c[L+2],j=c[L+3],F=P-N,H=j-Y,q=Math.sqrt(F*F+H*H);t.moveTo(N+q,Y),t.arc(N,Y,q,0,2*Math.PI,!0),++w;break;case Ne.CLOSE_PATH:t.closePath(),++w;break;case Ne.CUSTOM:L=R[1],l=R[2];var z=R[3],B=R[4],U=6==R.length?R[5]:void 0;I.geometry=z,I.feature=y,w in k||(k[w]=[]);var W=k[w];U?U(c,L,l,2,W):(W[0]=c[L],W[1]=c[L+1],W.length=2),B(W,I),++w;break;case Ne.DRAW_IMAGE:L=R[1],l=R[2],g=R[3],u=R[4],h=R[5],m=o?null:R[6];var $=R[7],V=R[8],X=R[9],K=R[10],Z=R[11],J=R[12],Q=R[13],tt=R[14],et=void 0,nt=void 0,it=void 0;for(R.length>16?(et=R[15],nt=R[16],it=R[17]):(et=Gt["j"],nt=it=!1),Z&&(J+=C);Lthis.maxLineWidth&&(this.maxLineWidth=n.lineWidth,this.bufferedMaxExtent_=null)}else n.strokeStyle=void 0,n.lineCap=void 0,n.lineDash=null,n.lineDashOffset=void 0,n.lineJoin=void 0,n.lineWidth=void 0,n.miterLimit=void 0},e.prototype.createFill=function(t,e){var n=t.fillStyle,i=[Ne.SET_FILL_STYLE,n];return"string"!==typeof n&&i.push(!0),i},e.prototype.applyStroke=function(t){this.instructions.push(this.createStroke(t))},e.prototype.createStroke=function(t){return[Ne.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]},e.prototype.updateFillStyle=function(t,e,n){var i=t.fillStyle;"string"===typeof i&&t.currentFillStyle==i||(void 0!==i&&this.instructions.push(e.call(this,t,n)),t.currentFillStyle=i)},e.prototype.updateStrokeStyle=function(t,e){var n=t.strokeStyle,i=t.lineCap,r=t.lineDash,s=t.lineDashOffset,o=t.lineJoin,a=t.lineWidth,c=t.miterLimit;(t.currentStrokeStyle!=n||t.currentLineCap!=i||r!=t.currentLineDash&&!Object(G["b"])(t.currentLineDash,r)||t.currentLineDashOffset!=s||t.currentLineJoin!=o||t.currentLineWidth!=a||t.currentMiterLimit!=c)&&(void 0!==n&&e.call(this,t),t.currentStrokeStyle=n,t.currentLineCap=i,t.currentLineDash=r,t.currentLineDashOffset=s,t.currentLineJoin=o,t.currentLineWidth=a,t.currentMiterLimit=c)},e.prototype.endGeometry=function(t,e){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var n=[Ne.END_GEOMETRY,e];this.instructions.push(n),this.hitDetectionInstructions.push(n)},e.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=Object(bt["d"])(this.maxExtent),this.maxLineWidth>0)){var t=this.resolution*(this.maxLineWidth+1)/2;Object(bt["c"])(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},e}(Vt),qe=He,Ge=function(t){function e(e,n,i,r,s,o){t.call(this,e,n,i,r,s,o),this.declutterGroup_=null,this.hitDetectionImage_=null,this.image_=null,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawCoordinates_=function(t,e,n,i){return this.appendFlatCoordinates(t,e,n,i,!1,!1)},e.prototype.drawPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var n=t.getFlatCoordinates(),i=t.getStride(),r=this.coordinates.length,s=this.drawCoordinates_(n,0,n.length,i);this.instructions.push([Ne.DRAW_IMAGE,r,s,this.image_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_*this.pixelRatio,this.width_]),this.hitDetectionInstructions.push([Ne.DRAW_IMAGE,r,s,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_]),this.endGeometry(t,e)}},e.prototype.drawMultiPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var n=t.getFlatCoordinates(),i=t.getStride(),r=this.coordinates.length,s=this.drawCoordinates_(n,0,n.length,i);this.instructions.push([Ne.DRAW_IMAGE,r,s,this.image_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_*this.pixelRatio,this.width_]),this.hitDetectionInstructions.push([Ne.DRAW_IMAGE,r,s,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_]),this.endGeometry(t,e)}},e.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0},e.prototype.setImageStyle=function(t,e){var n=t.getAnchor(),i=t.getSize(),r=t.getHitDetectionImage(1),s=t.getImage(1),o=t.getOrigin();this.anchorX_=n[0],this.anchorY_=n[1],this.declutterGroup_=e,this.hitDetectionImage_=r,this.image_=s,this.height_=i[1],this.opacity_=t.getOpacity(),this.originX_=o[0],this.originY_=o[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScale(),this.width_=i[0]},e}(qe),ze=Ge,Be=function(t){function e(e,n,i,r,s,o){t.call(this,e,n,i,r,s,o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawFlatCoordinates_=function(t,e,n,i){var r=this.coordinates.length,s=this.appendFlatCoordinates(t,e,n,i,!1,!1),o=[Ne.MOVE_TO_LINE_TO,r,s];return this.instructions.push(o),this.hitDetectionInstructions.push(o),n},e.prototype.drawLineString=function(t,e){var n=this.state,i=n.strokeStyle,r=n.lineWidth;if(void 0!==i&&void 0!==r){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([Ne.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],Re);var s=t.getFlatCoordinates(),o=t.getStride();this.drawFlatCoordinates_(s,0,s.length,o),this.hitDetectionInstructions.push(De),this.endGeometry(t,e)}},e.prototype.drawMultiLineString=function(t,e){var n=this.state,i=n.strokeStyle,r=n.lineWidth;if(void 0!==i&&void 0!==r){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([Ne.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],Re);for(var s=t.getEnds(),o=t.getFlatCoordinates(),a=t.getStride(),c=0,l=0,u=s.length;lt&&(y>g&&(g=y,_=v,m=o),y=0,v=o-r)),a=c,h=f,d=p),l=b,u=M}return y+=c,y>g?[v,o]:[_,m]}var Ze=n("29f6"),Je=function(t){function e(e,n,i,r,s,o){t.call(this,e,n,i,r,s,o),this.declutterGroup_,this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",this.widths_={},Gt["o"].prune()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawText=function(t,e){var n=this.textFillState_,i=this.textStrokeState_,r=this.textState_;if(""!==this.text_&&r&&(n||i)){var s,o,a=this.coordinates.length,c=t.getType(),l=null,u=2,h=2;if(r.placement===Ze["a"].LINE){if(!Object(bt["F"])(this.getBufferedMaxExtent(),t.getExtent()))return;var d;if(l=t.getFlatCoordinates(),h=t.getStride(),c==Bt["a"].LINE_STRING)d=[l.length];else if(c==Bt["a"].MULTI_LINE_STRING)d=t.getEnds();else if(c==Bt["a"].POLYGON)d=t.getEnds().slice(0,1);else if(c==Bt["a"].MULTI_POLYGON){var f=t.getEndss();for(d=[],s=0,o=f.length;s=M)&&l.push(w[s],w[s+1]);if(u=l.length,0==u)return;break;default:}u=this.appendFlatCoordinates(l,0,u,h,!1,!1),(r.backgroundFill||r.backgroundStroke)&&(this.setFillStrokeStyle(r.backgroundFill,r.backgroundStroke),r.backgroundFill&&(this.updateFillStyle(this.state,this.createFill,t),this.hitDetectionInstructions.push(this.createFill(this.state,t))),r.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e),this.drawTextImage_(b,a,u),this.endGeometry(t,e)}}},e.prototype.getImage=function(t,e,n,i){var r,s=i+e+t+n+this.pixelRatio;if(!Gt["o"].containsKey(s)){var o=i?this.strokeStates[i]||this.textStrokeState_:null,c=n?this.fillStates[n]||this.textFillState_:null,l=this.textStates[e]||this.textState_,u=this.pixelRatio,h=l.scale*u,d=Pe[l.textAlign||Gt["l"]],f=i&&o.lineWidth?o.lineWidth:0,p=t.split("\n"),_=p.length,m=[],g=Qe(l.font,p,m),y=Object(Gt["p"])(l.font),v=y*_,b=g+f,M=Object(vt["a"])(Math.ceil(b*h),Math.ceil((v+f)*h));r=M.canvas,Gt["o"].set(s,r),1!=h&&M.scale(h,h),M.font=l.font,i&&(M.strokeStyle=o.strokeStyle,M.lineWidth=f,M.lineCap=o.lineCap,M.lineJoin=o.lineJoin,M.miterLimit=o.miterLimit,a["a"]&&o.lineDash.length&&(M.setLineDash(o.lineDash),M.lineDashOffset=o.lineDashOffset)),n&&(M.fillStyle=c.fillStyle),M.textBaseline="middle",M.textAlign="center";var w,x=.5-d,L=d*r.width/h+x*f;if(i)for(w=0;w<_;++w)M.strokeText(p[w],L+x*m[w],.5*(f+y)+w*y);if(n)for(w=0;w<_;++w)M.fillText(p[w],L+x*m[w],.5*(f+y)+w*y)}return Gt["o"].get(s)},e.prototype.drawTextImage_=function(t,e,n){var i=this.textState_,r=this.textStrokeState_,s=this.pixelRatio,o=Pe[i.textAlign||Gt["l"]],a=Pe[i.textBaseline],c=r&&r.lineWidth?r.lineWidth:0,l=o*t.width/s+2*(.5-o)*c,u=a*t.height/s+2*(.5-a)*c;this.instructions.push([Ne.DRAW_IMAGE,e,n,t,(l-this.textOffsetX_)*s,(u-this.textOffsetY_)*s,this.declutterGroup_,t.height,1,0,0,this.textRotateWithView_,this.textRotation_,1,t.width,i.padding==Gt["j"]?Gt["j"]:i.padding.map(function(t){return t*s}),!!i.backgroundFill,!!i.backgroundStroke]),this.hitDetectionInstructions.push([Ne.DRAW_IMAGE,e,n,t,(l-this.textOffsetX_)*s,(u-this.textOffsetY_)*s,this.declutterGroup_,t.height,1,0,0,this.textRotateWithView_,this.textRotation_,1/s,t.width,i.padding,!!i.backgroundFill,!!i.backgroundStroke])},e.prototype.drawChars_=function(t,e,n){var i=this.textStrokeState_,r=this.textState_,s=this.textFillState_,o=this.strokeKey_;i&&(o in this.strokeStates||(this.strokeStates[o]={strokeStyle:i.strokeStyle,lineCap:i.lineCap,lineDashOffset:i.lineDashOffset,lineWidth:i.lineWidth,lineJoin:i.lineJoin,miterLimit:i.miterLimit,lineDash:i.lineDash}));var a=this.textKey_;this.textKey_ in this.textStates||(this.textStates[this.textKey_]={font:r.font,textAlign:r.textAlign||Gt["l"],scale:r.scale});var c=this.fillKey_;s&&(c in this.fillStates||(this.fillStates[c]={fillStyle:s.fillStyle}));var l=this.pixelRatio,u=Pe[r.textBaseline],h=this.textOffsetY_*l,d=this.text_,f=r.font,p=r.scale,_=i?i.lineWidth*p/2:0,m=this.widths_[f];m||(this.widths_[f]=m={}),this.instructions.push([Ne.DRAW_CHARS,t,e,u,n,r.overflow,c,r.maxAngle,function(t){var e=m[t];return e||(e=m[t]=Object(Gt["q"])(f,t)),e*p*l},h,o,_*l,d,a,1]),this.hitDetectionInstructions.push([Ne.DRAW_CHARS,t,e,u,n,r.overflow,c,r.maxAngle,function(t){var e=m[t];return e||(e=m[t]=Object(Gt["q"])(f,t)),e*p},h,o,_,d,a,1/l])},e.prototype.setTextStyle=function(t,e){var n,r,s;if(t){this.declutterGroup_=e;var o=t.getFill();o?(r=this.textFillState_,r||(r=this.textFillState_={}),r.fillStyle=Object(zt["a"])(o.getColor()||Gt["b"])):r=this.textFillState_=null;var a=t.getStroke();if(a){s=this.textStrokeState_,s||(s=this.textStrokeState_={});var c=a.getLineDash(),l=a.getLineDashOffset(),u=a.getWidth(),h=a.getMiterLimit();s.lineCap=a.getLineCap()||Gt["d"],s.lineDash=c?c.slice():Gt["e"],s.lineDashOffset=void 0===l?Gt["f"]:l,s.lineJoin=a.getLineJoin()||Gt["g"],s.lineWidth=void 0===u?Gt["h"]:u,s.miterLimit=void 0===h?Gt["i"]:h,s.strokeStyle=Object(zt["a"])(a.getColor()||Gt["k"])}else s=this.textStrokeState_=null;n=this.textState_;var d=t.getFont()||Gt["c"];Object(Gt["a"])(d);var f=t.getScale();n.overflow=t.getOverflow(),n.font=d,n.maxAngle=t.getMaxAngle(),n.placement=t.getPlacement(),n.textAlign=t.getTextAlign(),n.textBaseline=t.getTextBaseline()||Gt["m"],n.backgroundFill=t.getBackgroundFill(),n.backgroundStroke=t.getBackgroundStroke(),n.padding=t.getPadding()||Gt["j"],n.scale=void 0===f?1:f;var p=t.getOffsetX(),_=t.getOffsetY(),m=t.getRotateWithView(),g=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=void 0===p?0:p,this.textOffsetY_=void 0===_?0:_,this.textRotateWithView_=void 0!==m&&m,this.textRotation_=void 0===g?0:g,this.strokeKey_=s?("string"==typeof s.strokeStyle?s.strokeStyle:Object(i["c"])(s.strokeStyle))+s.lineCap+s.lineDashOffset+"|"+s.lineWidth+s.lineJoin+s.miterLimit+"["+s.lineDash.join()+"]":"",this.textKey_=n.font+n.scale+(n.textAlign||"?"),this.fillKey_=r?"string"==typeof r.fillStyle?r.fillStyle:"|"+Object(i["c"])(r.fillStyle):""}else this.text_=""},e}(qe);function Qe(t,e,n){for(var i=e.length,r=0,s=0;s0){var r=void 0;return(!h||d!=Le.IMAGE&&d!=Le.TEXT||-1!==h.indexOf(t))&&(r=s(t)),r||void u.clearRect(0,0,c,c)}}this.declutterTree_&&(h=this.declutterTree_.all().map(function(t){return t.value}));var _,m,g,y,v,b=Object.keys(this.replaysByZIndex_).map(Number);for(b.sort(G["g"]),_=b.length-1;_>=0;--_){var M=b[_].toString();for(g=this.replaysByZIndex_[M],m=Ye.length-1;m>=0;--m)if(d=Ye[m],y=g[d],void 0!==y)if(!o||d!=Le.IMAGE&&d!=Le.TEXT){if(v=y.replayHitDetection(u,l,n,r,p,a),v)return v}else{var w=o[M];w?w.push(y,l.slice(0)):o[M]=[y,l.slice(0)]}}},e.prototype.getClipCoords=function(t){var e=this.maxExtent_,n=e[0],i=e[1],r=e[2],s=e[3],o=[n,i,n,s,r,s,r,i];return Object(Wt["c"])(o,0,8,2,t,o),o},e.prototype.getReplay=function(t,e){var n=void 0!==t?t.toString():"0",i=this.replaysByZIndex_[n];void 0===i&&(i={},this.replaysByZIndex_[n]=i);var r=i[e];if(void 0===r){var s=en[e];r=new s(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_,this.overlaps_,this.declutterTree_),i[e]=r}return r},e.prototype.getReplays=function(){return this.replaysByZIndex_},e.prototype.isEmpty=function(){return Object(ht["d"])(this.replaysByZIndex_)},e.prototype.replay=function(t,e,n,i,r,s,o){var a=Object.keys(this.replaysByZIndex_).map(Number);a.sort(G["g"]),t.save(),this.clip(t,e);var c,l,u,h,d,f,p=s||Ye;for(c=0,l=a.length;c=r)for(i=r;i=s)sn(n,t+r,t+s),sn(n,t+s,t+r),sn(n,t-s,t+r),sn(n,t-r,t+s),sn(n,t-r,t-s),sn(n,t-s,t-r),sn(n,t+s,t-r),sn(n,t+r,t-s),s++,o+=1+2*s,2*(o-r)+1>0&&(r-=1,o+=1-2*r);return rn[t]=n,n}function an(t,e,n,i){for(var r=Object.keys(t).map(Number).sort(G["g"]),s={},o=0,a=r.length;ol[2])++D,k=I*D,h=this.getTransform(e,k),p.replay(_,h,c,s,T),C-=I}if(Object(Gt["s"])(_,c,S/2,O/2),b&&this.dispatchRenderEvent(_,e,h),_!=t){if(v){var R=t.globalAlpha;t.globalAlpha=n.opacity,t.drawImage(_.canvas,-g,-y),t.globalAlpha=R}else t.drawImage(_.canvas,-g,-y);_.translate(-g,-y)}v||(_.globalAlpha=L)}f&&t.restore()},e.prototype.composeFrame=function(t,e,n){var i=this.getTransform(t,0);this.preCompose(n,t,i),this.compose(n,t,e),this.postCompose(n,t,e,i)},e.prototype.forEachFeatureAtCoordinate=function(t,e,n,r,s){if(this.replayGroup_){var o=e.viewState.resolution,a=e.viewState.rotation,c=this.getLayer(),l={},u=this.replayGroup_.forEachFeatureAtCoordinate(t,o,a,n,{},function(t){var e=Object(i["c"])(t);if(!(e in l))return l[e]=!0,r.call(s,t,c)},null);return u}},e.prototype.handleFontsChanged_=function(t){var e=this.getLayer();e.getVisible()&&this.replayGroup_&&e.changed()},e.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},e.prototype.prepareFrame=function(t,e){var n=this.getLayer(),i=n.getSource(),r=t.viewHints[yt["a"].ANIMATING],s=t.viewHints[yt["a"].INTERACTING],o=n.getUpdateWhileAnimating(),a=n.getUpdateWhileInteracting();if(!this.dirty_&&!o&&r||!a&&s)return!0;var c=t.extent,l=t.viewState,u=l.projection,h=l.resolution,d=t.pixelRatio,f=n.getRevision(),p=n.getRenderBuffer(),_=n.getRenderOrder();void 0===_&&(_=hn);var m=Object(bt["c"])(c,p*h),g=l.projection.getExtent();if(i.getWrapX()&&l.projection.canWrapX()&&!Object(bt["g"])(g,t.extent)){var y=Object(bt["E"])(g),v=Math.max(Object(bt["E"])(m)/2,y);m[0]=g[0]-v,m[2]=g[2]+v}if(!this.dirty_&&this.renderedResolution_==h&&this.renderedRevision_==f&&this.renderedRenderOrder_==_&&Object(bt["g"])(this.renderedExtent_,m))return this.replayGroupChanged=!1,!0;this.replayGroup_=null,this.dirty_=!1;var b=new cn(fn(h,d),m,h,d,i.getOverlaps(),this.declutterTree_,n.getRenderBuffer());i.loadFeatures(m,h,u);var M=function(t){var e,i=t.getStyleFunction()||n.getStyleFunction();if(i&&(e=i(t,h)),e){var r=this.renderFeature(t,h,d,e,b);this.dirty_=this.dirty_||r}}.bind(this);if(_){var w=[];i.forEachFeatureInExtent(m,function(t){w.push(t)}),w.sort(_);for(var x=0,L=w.length;x=0;--b){var M=m[b];if(M.getState()!=ct["a"].ABORT)for(var w=M.tileCoord,x=g.getTileCoordExtent(w,this.tmpExtent)[0]-M.extent[0],L=void 0,E=0,T=M.tileKeys.length;E=10?t:t+12:"సాయంత్రం"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"రాత్రి":t<10?"ఉదయం":t<17?"మధ్యాహ్నం":t<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}});return e})},"5cc5":function(t,e,n){var i=n("2b4c")("iterator"),r=!1;try{var s=[7][i]();s["return"]=function(){r=!0},Array.from(s,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var s=[7],o=s[i]();o.next=function(){return{done:n=!0}},s[i]=function(){return o},t(s)}catch(t){}return n}},"5d8b":function(t,e,n){"use strict";n("f751"),n("7cdf"),n("c5f6"),n("6762"),n("2fdb");var i=n("cd88"),r=n("d7db"),s=["text","textarea","email","search","tel","file","number","password","url","time","date"],o=n("8e2f"),a=n("177b"),c=n("363b"),l=n("2054"),u=n("b70a"),h=n("52b5");e["a"]={name:"QInput",mixins:[i["a"],r["a"]],props:{value:{required:!0},type:{type:String,default:"text",validator:function(t){return s.includes(t)}},align:{type:String,validator:function(t){return["left","center","right"].includes(t)}},noPassToggle:Boolean,numericKeyboardToggle:Boolean,readonly:Boolean,decimals:Number,step:Number,upperCase:Boolean,lowerCase:Boolean,initialShowPassword:Boolean},data:function(){var t=this;return{showPass:this.initialShowPassword,showNumber:!0,model:this.value,watcher:null,autofilled:!1,shadow:{val:this.model,set:this.__set,setNav:this.__set,loading:!1,watched:0,isEditable:function(){return t.editable},isDark:function(){return t.dark},hasFocus:function(){return document.activeElement===t.$refs.input},register:function(){t.shadow.watched+=1,t.__watcherRegister()},unregister:function(){t.shadow.watched=Math.max(0,t.shadow.watched-1),t.__watcherUnregister()},getEl:function(){return t.$refs.input}}}},watch:{value:function(t){var e=parseFloat(this.model),n=parseFloat(t);(!this.isNumber||this.isNumberError||isNaN(e)||isNaN(n)||e!==n)&&(this.model=t),this.isNumberError=!1,this.isNegZero=!1},isTextarea:function(t){this[t?"__watcherRegister":"__watcherUnregister"]()},"$attrs.rows":function(){this.isTextarea&&this.__updateArea()}},provide:function(){return{__input:this.shadow}},computed:{isNumber:function(){return"number"===this.type},isPassword:function(){return"password"===this.type},isTextarea:function(){return"textarea"===this.type},isLoading:function(){return this.loading||this.shadow.watched&&this.shadow.loading},keyboardToggle:function(){return this.$q.platform.is.mobile&&this.isNumber&&this.numericKeyboardToggle},inputType:function(){return this.isPassword?this.showPass&&this.editable?"text":"password":this.isNumber?this.showNumber||!this.editable?"number":"text":this.type},inputClasses:function(){var t=[];return this.align&&t.push("text-".concat(this.align)),this.autofilled&&t.push("q-input-autofill"),t},length:function(){return null!==this.model&&void 0!==this.model?(""+this.model).length:0},computedClearValue:function(){return void 0===this.clearValue?this.isNumber?null:"":this.clearValue},computedStep:function(){return this.step||(this.decimals?Math.pow(10,-this.decimals):"any")},frameProps:function(){return{prefix:this.prefix,suffix:this.suffix,stackLabel:this.stackLabel,floatLabel:this.floatLabel,placeholder:this.placeholder,error:this.error,warning:this.warning,disable:this.disable,readonly:this.readonly,inverted:this.inverted,invertedLight:this.invertedLight,dark:this.dark,hideUnderline:this.hideUnderline,before:this.before,after:this.after,color:this.color,noParentField:this.noParentField,focused:this.focused,length:this.autofilled+this.length}}},methods:{togglePass:function(){this.showPass=!this.showPass,clearTimeout(this.timer),this.focus()},toggleNumber:function(){this.showNumber=!this.showNumber,clearTimeout(this.timer),this.focus()},__clearTimer:function(){var t=this;this.$nextTick(function(){return clearTimeout(t.timer)})},__onAnimationStart:function(t){if(0===t.animationName.indexOf("webkit-autofill-")){var e="webkit-autofill-on"===t.animationName;if(e!==this.autofilled)return t.value=this.autofilled=e,t.el=this,this.$emit("autofill",t)}},__setModel:function(t){clearTimeout(this.timer),this.focus(),this.__set(this.isNumber&&0===t?t:t||(this.isNumber?null:""),!0)},__set:function(t,e){var n=this,i=t&&t.target?t.target.value:t;if(this.isNumber){this.isNegZero=1/i===-1/0;var r=this.isNegZero?-0:i;if(this.model=i,i=parseFloat(i),isNaN(i)||this.isNegZero)return this.isNumberError=!0,void(e&&(this.$emit("input",r),this.$nextTick(function(){String(1/r)!==String(1/n.value)&&n.$emit("change",r)})));this.isNumberError=!1,Number.isInteger(this.decimals)&&(i=parseFloat(i.toFixed(this.decimals)))}else this.lowerCase?i=i.toLowerCase():this.upperCase&&(i=i.toUpperCase()),this.model=i;this.$emit("input",i),e&&this.$nextTick(function(){JSON.stringify(i)!==JSON.stringify(n.value)&&n.$emit("change",i)})},__updateArea:function(){var t=this.$refs.shadow,e=this.$refs.input;if(t&&e){var n=t.scrollHeight,i=Object(a["a"])(n,t.offsetHeight,this.maxHeight||n);e.style.height="".concat(i,"px"),e.style.overflowY=this.maxHeight&&i=e.length){for(var r=[],s=0;sthis.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_},e.prototype.disposeInternal=function(){this.relayedListenerKey_&&(Object(u["e"])(this.relayedListenerKey_),this.relayedListenerKey_=null),this.pointerdownListenerKey_&&(Object(u["e"])(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(u["e"]),this.dragListenerKeys_.length=0,this.documentPointerEventHandler_&&(this.documentPointerEventHandler_.dispose(),this.documentPointerEventHandler_=null),this.pointerEventHandler_&&(this.pointerEventHandler_.dispose(),this.pointerEventHandler_=null),t.prototype.disposeInternal.call(this)},e}(h["a"]),et=tt,nt=n("7238"),it=n("592d"),rt={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"},st=n("070d"),ot=n("e269"),at=n("7b4f"),ct=n("acc1"),lt=n("01d4"),ut=n("92fa"),ht=n("38f3"),dt=1/0,ft=function(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}};ft.prototype.clear=function(){this.elements_.length=0,this.priorities_.length=0,Object(ht["b"])(this.queuedElements_)},ft.prototype.dequeue=function(){var t=this.elements_,e=this.priorities_,n=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));var i=this.keyFunction_(n);return delete this.queuedElements_[i],n},ft.prototype.enqueue=function(t){Object(ut["a"])(!(this.keyFunction_(t)in this.queuedElements_),31);var e=this.priorityFunction_(t);return e!=dt&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)},ft.prototype.getCount=function(){return this.elements_.length},ft.prototype.getLeftChildIndex_=function(t){return 2*t+1},ft.prototype.getRightChildIndex_=function(t){return 2*t+2},ft.prototype.getParentIndex_=function(t){return t-1>>1},ft.prototype.heapify_=function(){var t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)},ft.prototype.isEmpty=function(){return 0===this.elements_.length},ft.prototype.isKeyQueued=function(t){return t in this.queuedElements_},ft.prototype.isQueued=function(t){return this.isKeyQueued(this.keyFunction_(t))},ft.prototype.siftUp_=function(t){var e=this.elements_,n=this.priorities_,i=e.length,r=e[t],s=n[t],o=t;while(t>1){var a=this.getLeftChildIndex_(t),c=this.getRightChildIndex_(t),l=ct){var o=this.getParentIndex_(e);if(!(i[o]>s))break;n[e]=n[o],i[e]=i[o],e=o}n[e]=r,i[e]=s},ft.prototype.reprioritize=function(){var t,e,n,i=this.priorityFunction_,r=this.elements_,s=this.priorities_,o=0,a=r.length;for(e=0;e0)i=this.dequeue()[0],r=i.getKey(),n=i.getState(),n===ct["a"].ABORT?o=!0:n!==ct["a"].IDLE||r in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[r]=!0,++this.tilesLoading_,++s,i.load());0===s&&o&&this.tileChangeCallback_()},e}(pt),mt=_t,gt=n("a2c7"),yt=n("496f"),vt=n("0999"),bt=n("0af5"),Mt=n("57cb"),wt=n("9c78"),xt=n("345d"),Lt=n("a896"),Et=function(t){function e(e){t.call(this);var n=Tt(e);this.maxTilesLoading_=void 0!==e.maxTilesLoading?e.maxTilesLoading:16,this.loadTilesWhileAnimating_=void 0!==e.loadTilesWhileAnimating&&e.loadTilesWhileAnimating,this.loadTilesWhileInteracting_=void 0!==e.loadTilesWhileInteracting&&e.loadTilesWhileInteracting,this.pixelRatio_=void 0!==e.pixelRatio?e.pixelRatio:a["b"],this.animationDelayKey_,this.animationDelay_=function(){this.animationDelayKey_=void 0,this.renderFrame_.call(this,Date.now())}.bind(this),this.coordinateToPixelTransform_=Object(Lt["c"])(),this.pixelToCoordinateTransform_=Object(Lt["c"])(),this.frameIndex_=0,this.frameState_=null,this.previousExtent_=null,this.viewPropertyListenerKey_=null,this.viewChangeListenerKey_=null,this.layerGroupPropertyListenerKeys_=null,this.viewport_=document.createElement("div"),this.viewport_.className="ol-viewport"+(a["h"]?" ol-touch":""),this.viewport_.style.position="relative",this.viewport_.style.overflow="hidden",this.viewport_.style.width="100%",this.viewport_.style.height="100%",this.viewport_.style.msTouchAction="none",this.viewport_.style.touchAction="none",this.overlayContainer_=document.createElement("div"),this.overlayContainer_.className="ol-overlaycontainer",this.viewport_.appendChild(this.overlayContainer_),this.overlayContainerStopEvent_=document.createElement("div"),this.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent";for(var i=[lt["a"].CLICK,lt["a"].DBLCLICK,lt["a"].MOUSEDOWN,lt["a"].TOUCHSTART,lt["a"].MSPOINTERDOWN,c["a"].POINTERDOWN,lt["a"].MOUSEWHEEL,lt["a"].WHEEL],o=0,l=i.length;o=0;n--){var i=e[n];if(i.getActive()){var r=i.handleEvent(t);if(!r)break}}}},e.prototype.handlePostRender=function(){var t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){var n=this.maxTilesLoading_,i=n;if(t){var r=t.viewHints;r[yt["a"].ANIMATING]&&(n=this.loadTilesWhileAnimating_?8:0,i=2),r[yt["a"].INTERACTING]&&(n=this.loadTilesWhileInteracting_?8:0,i=2)}e.getTilesLoading()p[2]){var g=Math.ceil((p[0]-m)/_);f=[m+_*g,t[1]]}}var y,v=e.layerStatesArray,b=v.length;for(y=b-1;y>=0;--y){var M=v[y],w=M.layer;if(Object(Ft["b"])(M,u)&&o.call(a,w)){var x=this.getLayerRenderer(w),L=w.getSource();if(L&&(c=x.forEachFeatureAtCoordinate(L.getWrapX()?f:t,e,n,h)),c)return c}}},e.prototype.forEachLayerAtPixel=function(t,e,n,r,s,o,a){return Object(i["b"])()},e.prototype.hasFeatureAtCoordinate=function(t,e,n,i,r){var s=this.forEachFeatureAtCoordinate(t,e,n,Mt["b"],this,i,r);return void 0!==s},e.prototype.getLayerRenderer=function(t){var e=Object(i["c"])(t);if(e in this.layerRenderers_)return this.layerRenderers_[e];for(var n,r=0,s=this.layerRendererConstructors_.length;r=0;--c){var p=h[c],_=p.layer;if(Object(Ft["b"])(p,u)&&s.call(o,_)){var m=this.getLayerRenderer(_);if(a=m.forEachLayerAtCoordinate(f,e,n,i,r),a)return a}}},e.prototype.registerLayerRenderers=function(e){t.prototype.registerLayerRenderers.call(this,e);for(var n=0,i=e.length;n=.5&&h>=.5&&n.drawImage(i,0,0,+i.width,+i.height,Math.round(c),Math.round(l),Math.round(u),Math.round(h)),n.globalAlpha=a,s&&n.restore()}this.postCompose(n,t,e)},e.prototype.getImage=function(){return Object(i["b"])()},e.prototype.getImageTransform=function(){return Object(i["b"])()},e.prototype.forEachLayerAtCoordinate=function(t,e,n,i,r){if(this.getImage()){var s=Object(Lt["a"])(this.coordinateToCanvasPixelTransform,t.slice());Object(ae["g"])(s,e.viewState.resolution/this.renderedResolution),this.hitCanvasContext_||(this.hitCanvasContext_=Object(vt["a"])(1,1)),this.hitCanvasContext_.clearRect(0,0,1,1),this.hitCanvasContext_.drawImage(this.getImage(),s[0],s[1],1,1,0,0,1,1);var o=this.hitCanvasContext_.getImageData(0,0,1,1).data;return o[3]>0?i.call(r,this.getLayer(),o):void 0}},e}(de),pe=fe,_e=function(t){function e(n){if(t.call(this,n),this.image_=null,this.imageTransform_=Object(Lt["c"])(),this.skippedFeatures_=[],this.vectorRenderer_=null,n.getType()===Yt["a"].VECTOR)for(var i=0,r=re.length;i0&&(this.newTiles_=!0):a.setState(ct["a"].LOADED)),this.isDrawableTile_(a)||(a=a.getInterimTile()),a},e.prototype.prepareFrame=function(t,e){var n=t.pixelRatio,r=t.size,s=t.viewState,o=s.projection,a=s.resolution,c=s.center,l=this.getLayer(),u=l.getSource(),h=u.getRevision(),d=u.getTileGridForProjection(o),f=d.getZForResolution(a,this.zDirection),p=d.getResolution(f),_=Math.round(a/p)||1,m=t.extent;if(void 0!==e.extent&&(m=Object(bt["B"])(m,e.extent)),Object(bt["H"])(m))return!1;var g=d.getTileRangeForExtentAndZ(m,f),y=d.getTileRangeExtent(f,g),v=u.getTilePixelRatio(n),b={};b[f]={};var M,w,x,L=this.createLoadedTileFinder(u,o,b),E=t.viewHints,T=E[yt["a"].ANIMATING]||E[yt["a"].INTERACTING],S=this.tmpExtent,O=this.tmpTileRange_;for(this.newTiles_=!1,w=g.minX;w<=g.maxX;++w)for(x=g.minY;x<=g.maxY;++x)if(!(Date.now()-t.time>16&&T)){if(M=this.getTile(f,w,x,n,o),this.isDrawableTile_(M)){var k=Object(i["c"])(this);if(M.getState()==ct["a"].LOADED){b[f][M.tileCoord.toString()]=M;var C=M.inTransition(k);this.newTiles_||!C&&-1!==this.renderedTiles.indexOf(M)||(this.newTiles_=!0)}if(1===M.getAlpha(k,t.time))continue}var I=d.getTileCoordChildTileRange(M.tileCoord,O,S),D=!1;I&&(D=L(f+1,I)),D||d.forEachTileCoordParentTileRange(M.tileCoord,L,null,O,S)}var R=p*n/v*_;if(!(this.renderedResolution&&Date.now()-t.time>16&&T)&&(this.newTiles_||!this.renderedExtent_||!Object(bt["g"])(this.renderedExtent_,m)||this.renderedRevision!=h||_!=this.oversampling_||!T&&R!=this.renderedResolution)){var A=this.context;if(A){var N=u.getTilePixelSize(f,n,o),Y=Math.round(g.getWidth()*N[0]/_),P=Math.round(g.getHeight()*N[1]/_),j=A.canvas;j.width!=Y||j.height!=P?(this.oversampling_=_,j.width=Y,j.height=P):((this.renderedExtent_&&!Object(bt["p"])(y,this.renderedExtent_)||this.renderedRevision!=h)&&A.clearRect(0,0,Y,P),_=this.oversampling_)}this.renderedTiles.length=0;var F,H,G,q,z,B,U,W,$,V,X,K=Object.keys(b).map(Number);for(K.sort(function(t,e){return t===f?1:e===f?-1:t>e?1:t0},e.prototype.drawTileImage=function(t,e,n,r,s,o,a,c,l){var u=this.getTileImage(t);if(u){var h=Object(i["c"])(this),d=l?t.getAlpha(h,e.time):1,f=this.getLayer(),p=f.getSource();1!==d||p.getOpaque(e.viewState.projection)||this.context.clearRect(r,s,o,a);var _=d!==this.context.globalAlpha;_&&(this.context.save(),this.context.globalAlpha=d),this.context.drawImage(u,c,c,u.width-2*c,u.height-2*c,r,s,o,a),_&&this.context.restore(),1!==d?e.animate=!0:l&&t.endTransition(h)}},e.prototype.getImage=function(){var t=this.context;return t?t.canvas:null},e.prototype.getImageTransform=function(){return this.imageTransform_},e.prototype.getTileImage=function(t){return t.getImage()},e}(pe);ye["handles"]=function(t){return t.getType()===Yt["a"].TILE},ye["create"]=function(t,e){return new ye(e)},ye.prototype.getLayer;var ve=ye,be=n("0354"),Me=n.n(be),we=function(){};we.prototype.getReplay=function(t,e){return Object(i["b"])()},we.prototype.isEmpty=function(){return Object(i["b"])()},we.prototype.addDeclutter=function(t){return Object(i["b"])()};var xe=we,Le={CIRCLE:"Circle",DEFAULT:"Default",IMAGE:"Image",LINE_STRING:"LineString",POLYGON:"Polygon",TEXT:"Text"},Ee=n("045d"),Te=n("bb6c"),Se=n("5938"),Oe=n("7fc9");function ke(t,e,n,i,r,s,o,a){var c=[],l=t[e]>t[n-i],u=r.length,h=t[e],d=t[e+1];e+=i;for(var f,p,_,m=t[e],g=t[e+1],y=0,v=Math.sqrt(Math.pow(m-h,2)+Math.pow(g-d,2)),b="",M=0,w=0;w0?-Math.PI:Math.PI),void 0!==_){var O=S-_;if(O+=O>Math.PI?-2*Math.PI:O<-Math.PI?2*Math.PI:0,Math.abs(O)>a)return null}var k=T/v,C=Object(Oe["c"])(h,m,k),I=Object(Oe["c"])(d,g,k);_==S?(l&&(f[0]=C,f[1]=I,f[2]=L/2),f[4]=b):(b=x,M=L,f=[C,I,L/2,S,b],l?c.unshift(f):c.push(f),_=S),o+=L}return c}var Ce={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},Ie=[Ce.FILL],De=[Ce.STROKE],Re=[Ce.BEGIN_PATH],Ae=[Ce.CLOSE_PATH],Ne=Ce,Ye=[Le.POLYGON,Le.CIRCLE,Le.LINE_STRING,Le.IMAGE,Le.TEXT,Le.DEFAULT],Pe={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},je=Object(bt["j"])(),Fe=Object(Lt["c"])(),He=function(t){function e(e,n,i,r,s,o){t.call(this),this.declutterTree=o,this.tolerance=e,this.maxExtent=n,this.overlaps=s,this.pixelRatio=r,this.maxLineWidth=0,this.resolution=i,this.alignFill_,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_=null,this.bufferedMaxExtent_=null,this.instructions=[],this.coordinates=[],this.coordinateCache_={},this.renderedTransform_=Object(Lt["c"])(),this.hitDetectionInstructions=[],this.pixelCoordinates_=null,this.state={},this.viewRotation_=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.replayTextBackground_=function(t,e,n,i,r,s,o){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,n),t.lineTo.apply(t,i),t.lineTo.apply(t,r),t.lineTo.apply(t,e),s&&(this.alignFill_=s[2],this.fill_(t)),o&&(this.setStrokeStyle_(t,o),t.stroke())},e.prototype.replayImage_=function(t,e,n,i,r,s,o,a,c,l,u,h,d,f,p,_,m,g){var y=m||g;r*=d,s*=d,e-=r,n-=s;var v,b,M,w,x=p+l>i.width?i.width-l:p,L=a+u>i.height?i.height-u:a,E=_[3]+x*d+_[1],T=_[0]+L*d+_[2],S=e-_[3],O=n-_[0];(y||0!==h)&&(v=[S,O],b=[S+E,O],M=[S+E,O+T],w=[S,O+T]);var k=null;if(0!==h){var C=e+r,I=n+s;k=Object(Lt["b"])(Fe,C,I,1,1,h,-C,-I),Object(bt["l"])(je),Object(bt["r"])(je,Object(Lt["a"])(Fe,v)),Object(bt["r"])(je,Object(Lt["a"])(Fe,b)),Object(bt["r"])(je,Object(Lt["a"])(Fe,M)),Object(bt["r"])(je,Object(Lt["a"])(Fe,w))}else Object(bt["k"])(S,O,S+E,O+T,je);var D=t.canvas,R=g?g[2]*d/2:0,A=je[0]-R<=D.width&&je[2]+R>=0&&je[1]-R<=D.height&&je[3]+R>=0;if(f&&(e=Math.round(e),n=Math.round(n)),o){if(!A&&1==o[4])return;Object(bt["q"])(o,je);var N=A?[t,k?k.slice(0):null,c,i,l,u,x,L,e,n,d]:null;N&&y&&N.push(m,g,v,b,M,w),o.push(N)}else A&&(y&&this.replayTextBackground_(t,v,b,M,w,m,g),Object(qt["n"])(t,k,c,i,l,u,x,L,e,n,d))},e.prototype.applyPixelRatio=function(t){var e=this.pixelRatio;return 1==e?t:t.map(function(t){return t*e})},e.prototype.appendFlatCoordinates=function(t,e,n,i,r,s){var o=this.coordinates.length,a=this.getBufferedMaxExtent();s&&(e+=i);var c,l,u,h=[t[e],t[e+1]],d=[NaN,NaN],f=!0;for(c=e+i;c5){var n=t[4];if(1==n||n==t.length-5){var i={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};if(!this.declutterTree.collides(i)){this.declutterTree.insert(i);for(var r=5,s=t.length;r11&&this.replayTextBackground_(o[0],o[13],o[14],o[15],o[16],o[11],o[12]),qt["n"].apply(void 0,o))}}t.length=5,Object(bt["l"])(t)}}},e.prototype.replay_=function(t,e,n,r,s,o,a){var c;this.pixelCoordinates_&&Object(q["b"])(e,this.renderedTransform_)?c=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),c=Object(Wt["c"])(this.coordinates,0,this.coordinates.length,2,e,this.pixelCoordinates_),Object(Lt["g"])(this.renderedTransform_,e));var l,u,h,d,f,p,_,m,g,y,v,b,M=!Object(ht["d"])(n),w=0,x=r.length,L=0,E=0,T=0,S=null,O=null,k=this.coordinateCache_,C=this.viewRotation_,I={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:C},D=this.instructions!=r||this.overlaps?0:200;while(wD&&(this.fill_(t),E=0),T>D&&(t.stroke(),T=0),E||T||(t.beginPath(),d=f=NaN),++w;break;case Ne.CIRCLE:L=R[1];var N=c[L],Y=c[L+1],P=c[L+2],j=c[L+3],F=P-N,H=j-Y,G=Math.sqrt(F*F+H*H);t.moveTo(N+G,Y),t.arc(N,Y,G,0,2*Math.PI,!0),++w;break;case Ne.CLOSE_PATH:t.closePath(),++w;break;case Ne.CUSTOM:L=R[1],l=R[2];var z=R[3],B=R[4],U=6==R.length?R[5]:void 0;I.geometry=z,I.feature=y,w in k||(k[w]=[]);var W=k[w];U?U(c,L,l,2,W):(W[0]=c[L],W[1]=c[L+1],W.length=2),B(W,I),++w;break;case Ne.DRAW_IMAGE:L=R[1],l=R[2],g=R[3],u=R[4],h=R[5],m=o?null:R[6];var $=R[7],V=R[8],X=R[9],K=R[10],J=R[11],Z=R[12],Q=R[13],tt=R[14],et=void 0,nt=void 0,it=void 0;for(R.length>16?(et=R[15],nt=R[16],it=R[17]):(et=qt["j"],nt=it=!1),J&&(Z+=C);Lthis.maxLineWidth&&(this.maxLineWidth=n.lineWidth,this.bufferedMaxExtent_=null)}else n.strokeStyle=void 0,n.lineCap=void 0,n.lineDash=null,n.lineDashOffset=void 0,n.lineJoin=void 0,n.lineWidth=void 0,n.miterLimit=void 0},e.prototype.createFill=function(t,e){var n=t.fillStyle,i=[Ne.SET_FILL_STYLE,n];return"string"!==typeof n&&i.push(!0),i},e.prototype.applyStroke=function(t){this.instructions.push(this.createStroke(t))},e.prototype.createStroke=function(t){return[Ne.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]},e.prototype.updateFillStyle=function(t,e,n){var i=t.fillStyle;"string"===typeof i&&t.currentFillStyle==i||(void 0!==i&&this.instructions.push(e.call(this,t,n)),t.currentFillStyle=i)},e.prototype.updateStrokeStyle=function(t,e){var n=t.strokeStyle,i=t.lineCap,r=t.lineDash,s=t.lineDashOffset,o=t.lineJoin,a=t.lineWidth,c=t.miterLimit;(t.currentStrokeStyle!=n||t.currentLineCap!=i||r!=t.currentLineDash&&!Object(q["b"])(t.currentLineDash,r)||t.currentLineDashOffset!=s||t.currentLineJoin!=o||t.currentLineWidth!=a||t.currentMiterLimit!=c)&&(void 0!==n&&e.call(this,t),t.currentStrokeStyle=n,t.currentLineCap=i,t.currentLineDash=r,t.currentLineDashOffset=s,t.currentLineJoin=o,t.currentLineWidth=a,t.currentMiterLimit=c)},e.prototype.endGeometry=function(t,e){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var n=[Ne.END_GEOMETRY,e];this.instructions.push(n),this.hitDetectionInstructions.push(n)},e.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=Object(bt["d"])(this.maxExtent),this.maxLineWidth>0)){var t=this.resolution*(this.maxLineWidth+1)/2;Object(bt["c"])(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},e}(Vt),Ge=He,qe=function(t){function e(e,n,i,r,s,o){t.call(this,e,n,i,r,s,o),this.declutterGroup_=null,this.hitDetectionImage_=null,this.image_=null,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawCoordinates_=function(t,e,n,i){return this.appendFlatCoordinates(t,e,n,i,!1,!1)},e.prototype.drawPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var n=t.getFlatCoordinates(),i=t.getStride(),r=this.coordinates.length,s=this.drawCoordinates_(n,0,n.length,i);this.instructions.push([Ne.DRAW_IMAGE,r,s,this.image_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_*this.pixelRatio,this.width_]),this.hitDetectionInstructions.push([Ne.DRAW_IMAGE,r,s,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_]),this.endGeometry(t,e)}},e.prototype.drawMultiPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var n=t.getFlatCoordinates(),i=t.getStride(),r=this.coordinates.length,s=this.drawCoordinates_(n,0,n.length,i);this.instructions.push([Ne.DRAW_IMAGE,r,s,this.image_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_*this.pixelRatio,this.width_]),this.hitDetectionInstructions.push([Ne.DRAW_IMAGE,r,s,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_]),this.endGeometry(t,e)}},e.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0},e.prototype.setImageStyle=function(t,e){var n=t.getAnchor(),i=t.getSize(),r=t.getHitDetectionImage(1),s=t.getImage(1),o=t.getOrigin();this.anchorX_=n[0],this.anchorY_=n[1],this.declutterGroup_=e,this.hitDetectionImage_=r,this.image_=s,this.height_=i[1],this.opacity_=t.getOpacity(),this.originX_=o[0],this.originY_=o[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScale(),this.width_=i[0]},e}(Ge),ze=qe,Be=function(t){function e(e,n,i,r,s,o){t.call(this,e,n,i,r,s,o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawFlatCoordinates_=function(t,e,n,i){var r=this.coordinates.length,s=this.appendFlatCoordinates(t,e,n,i,!1,!1),o=[Ne.MOVE_TO_LINE_TO,r,s];return this.instructions.push(o),this.hitDetectionInstructions.push(o),n},e.prototype.drawLineString=function(t,e){var n=this.state,i=n.strokeStyle,r=n.lineWidth;if(void 0!==i&&void 0!==r){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([Ne.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],Re);var s=t.getFlatCoordinates(),o=t.getStride();this.drawFlatCoordinates_(s,0,s.length,o),this.hitDetectionInstructions.push(De),this.endGeometry(t,e)}},e.prototype.drawMultiLineString=function(t,e){var n=this.state,i=n.strokeStyle,r=n.lineWidth;if(void 0!==i&&void 0!==r){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([Ne.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],Re);for(var s=t.getEnds(),o=t.getFlatCoordinates(),a=t.getStride(),c=0,l=0,u=s.length;lt&&(y>g&&(g=y,_=v,m=o),y=0,v=o-r)),a=c,h=f,d=p),l=b,u=M}return y+=c,y>g?[v,o]:[_,m]}var Je=n("29f6"),Ze=function(t){function e(e,n,i,r,s,o){t.call(this,e,n,i,r,s,o),this.declutterGroup_,this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",this.widths_={},qt["o"].prune()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawText=function(t,e){var n=this.textFillState_,i=this.textStrokeState_,r=this.textState_;if(""!==this.text_&&r&&(n||i)){var s,o,a=this.coordinates.length,c=t.getType(),l=null,u=2,h=2;if(r.placement===Je["a"].LINE){if(!Object(bt["F"])(this.getBufferedMaxExtent(),t.getExtent()))return;var d;if(l=t.getFlatCoordinates(),h=t.getStride(),c==Bt["a"].LINE_STRING)d=[l.length];else if(c==Bt["a"].MULTI_LINE_STRING)d=t.getEnds();else if(c==Bt["a"].POLYGON)d=t.getEnds().slice(0,1);else if(c==Bt["a"].MULTI_POLYGON){var f=t.getEndss();for(d=[],s=0,o=f.length;s=M)&&l.push(w[s],w[s+1]);if(u=l.length,0==u)return;break;default:}u=this.appendFlatCoordinates(l,0,u,h,!1,!1),(r.backgroundFill||r.backgroundStroke)&&(this.setFillStrokeStyle(r.backgroundFill,r.backgroundStroke),r.backgroundFill&&(this.updateFillStyle(this.state,this.createFill,t),this.hitDetectionInstructions.push(this.createFill(this.state,t))),r.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e),this.drawTextImage_(b,a,u),this.endGeometry(t,e)}}},e.prototype.getImage=function(t,e,n,i){var r,s=i+e+t+n+this.pixelRatio;if(!qt["o"].containsKey(s)){var o=i?this.strokeStates[i]||this.textStrokeState_:null,c=n?this.fillStates[n]||this.textFillState_:null,l=this.textStates[e]||this.textState_,u=this.pixelRatio,h=l.scale*u,d=Pe[l.textAlign||qt["l"]],f=i&&o.lineWidth?o.lineWidth:0,p=t.split("\n"),_=p.length,m=[],g=Qe(l.font,p,m),y=Object(qt["p"])(l.font),v=y*_,b=g+f,M=Object(vt["a"])(Math.ceil(b*h),Math.ceil((v+f)*h));r=M.canvas,qt["o"].set(s,r),1!=h&&M.scale(h,h),M.font=l.font,i&&(M.strokeStyle=o.strokeStyle,M.lineWidth=f,M.lineCap=o.lineCap,M.lineJoin=o.lineJoin,M.miterLimit=o.miterLimit,a["a"]&&o.lineDash.length&&(M.setLineDash(o.lineDash),M.lineDashOffset=o.lineDashOffset)),n&&(M.fillStyle=c.fillStyle),M.textBaseline="middle",M.textAlign="center";var w,x=.5-d,L=d*r.width/h+x*f;if(i)for(w=0;w<_;++w)M.strokeText(p[w],L+x*m[w],.5*(f+y)+w*y);if(n)for(w=0;w<_;++w)M.fillText(p[w],L+x*m[w],.5*(f+y)+w*y)}return qt["o"].get(s)},e.prototype.drawTextImage_=function(t,e,n){var i=this.textState_,r=this.textStrokeState_,s=this.pixelRatio,o=Pe[i.textAlign||qt["l"]],a=Pe[i.textBaseline],c=r&&r.lineWidth?r.lineWidth:0,l=o*t.width/s+2*(.5-o)*c,u=a*t.height/s+2*(.5-a)*c;this.instructions.push([Ne.DRAW_IMAGE,e,n,t,(l-this.textOffsetX_)*s,(u-this.textOffsetY_)*s,this.declutterGroup_,t.height,1,0,0,this.textRotateWithView_,this.textRotation_,1,t.width,i.padding==qt["j"]?qt["j"]:i.padding.map(function(t){return t*s}),!!i.backgroundFill,!!i.backgroundStroke]),this.hitDetectionInstructions.push([Ne.DRAW_IMAGE,e,n,t,(l-this.textOffsetX_)*s,(u-this.textOffsetY_)*s,this.declutterGroup_,t.height,1,0,0,this.textRotateWithView_,this.textRotation_,1/s,t.width,i.padding,!!i.backgroundFill,!!i.backgroundStroke])},e.prototype.drawChars_=function(t,e,n){var i=this.textStrokeState_,r=this.textState_,s=this.textFillState_,o=this.strokeKey_;i&&(o in this.strokeStates||(this.strokeStates[o]={strokeStyle:i.strokeStyle,lineCap:i.lineCap,lineDashOffset:i.lineDashOffset,lineWidth:i.lineWidth,lineJoin:i.lineJoin,miterLimit:i.miterLimit,lineDash:i.lineDash}));var a=this.textKey_;this.textKey_ in this.textStates||(this.textStates[this.textKey_]={font:r.font,textAlign:r.textAlign||qt["l"],scale:r.scale});var c=this.fillKey_;s&&(c in this.fillStates||(this.fillStates[c]={fillStyle:s.fillStyle}));var l=this.pixelRatio,u=Pe[r.textBaseline],h=this.textOffsetY_*l,d=this.text_,f=r.font,p=r.scale,_=i?i.lineWidth*p/2:0,m=this.widths_[f];m||(this.widths_[f]=m={}),this.instructions.push([Ne.DRAW_CHARS,t,e,u,n,r.overflow,c,r.maxAngle,function(t){var e=m[t];return e||(e=m[t]=Object(qt["q"])(f,t)),e*p*l},h,o,_*l,d,a,1]),this.hitDetectionInstructions.push([Ne.DRAW_CHARS,t,e,u,n,r.overflow,c,r.maxAngle,function(t){var e=m[t];return e||(e=m[t]=Object(qt["q"])(f,t)),e*p},h,o,_,d,a,1/l])},e.prototype.setTextStyle=function(t,e){var n,r,s;if(t){this.declutterGroup_=e;var o=t.getFill();o?(r=this.textFillState_,r||(r=this.textFillState_={}),r.fillStyle=Object(zt["a"])(o.getColor()||qt["b"])):r=this.textFillState_=null;var a=t.getStroke();if(a){s=this.textStrokeState_,s||(s=this.textStrokeState_={});var c=a.getLineDash(),l=a.getLineDashOffset(),u=a.getWidth(),h=a.getMiterLimit();s.lineCap=a.getLineCap()||qt["d"],s.lineDash=c?c.slice():qt["e"],s.lineDashOffset=void 0===l?qt["f"]:l,s.lineJoin=a.getLineJoin()||qt["g"],s.lineWidth=void 0===u?qt["h"]:u,s.miterLimit=void 0===h?qt["i"]:h,s.strokeStyle=Object(zt["a"])(a.getColor()||qt["k"])}else s=this.textStrokeState_=null;n=this.textState_;var d=t.getFont()||qt["c"];Object(qt["a"])(d);var f=t.getScale();n.overflow=t.getOverflow(),n.font=d,n.maxAngle=t.getMaxAngle(),n.placement=t.getPlacement(),n.textAlign=t.getTextAlign(),n.textBaseline=t.getTextBaseline()||qt["m"],n.backgroundFill=t.getBackgroundFill(),n.backgroundStroke=t.getBackgroundStroke(),n.padding=t.getPadding()||qt["j"],n.scale=void 0===f?1:f;var p=t.getOffsetX(),_=t.getOffsetY(),m=t.getRotateWithView(),g=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=void 0===p?0:p,this.textOffsetY_=void 0===_?0:_,this.textRotateWithView_=void 0!==m&&m,this.textRotation_=void 0===g?0:g,this.strokeKey_=s?("string"==typeof s.strokeStyle?s.strokeStyle:Object(i["c"])(s.strokeStyle))+s.lineCap+s.lineDashOffset+"|"+s.lineWidth+s.lineJoin+s.miterLimit+"["+s.lineDash.join()+"]":"",this.textKey_=n.font+n.scale+(n.textAlign||"?"),this.fillKey_=r?"string"==typeof r.fillStyle?r.fillStyle:"|"+Object(i["c"])(r.fillStyle):""}else this.text_=""},e}(Ge);function Qe(t,e,n){for(var i=e.length,r=0,s=0;s0){var r=void 0;return(!h||d!=Le.IMAGE&&d!=Le.TEXT||-1!==h.indexOf(t))&&(r=s(t)),r||void u.clearRect(0,0,c,c)}}this.declutterTree_&&(h=this.declutterTree_.all().map(function(t){return t.value}));var _,m,g,y,v,b=Object.keys(this.replaysByZIndex_).map(Number);for(b.sort(q["g"]),_=b.length-1;_>=0;--_){var M=b[_].toString();for(g=this.replaysByZIndex_[M],m=Ye.length-1;m>=0;--m)if(d=Ye[m],y=g[d],void 0!==y)if(!o||d!=Le.IMAGE&&d!=Le.TEXT){if(v=y.replayHitDetection(u,l,n,r,p,a),v)return v}else{var w=o[M];w?w.push(y,l.slice(0)):o[M]=[y,l.slice(0)]}}},e.prototype.getClipCoords=function(t){var e=this.maxExtent_,n=e[0],i=e[1],r=e[2],s=e[3],o=[n,i,n,s,r,s,r,i];return Object(Wt["c"])(o,0,8,2,t,o),o},e.prototype.getReplay=function(t,e){var n=void 0!==t?t.toString():"0",i=this.replaysByZIndex_[n];void 0===i&&(i={},this.replaysByZIndex_[n]=i);var r=i[e];if(void 0===r){var s=en[e];r=new s(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_,this.overlaps_,this.declutterTree_),i[e]=r}return r},e.prototype.getReplays=function(){return this.replaysByZIndex_},e.prototype.isEmpty=function(){return Object(ht["d"])(this.replaysByZIndex_)},e.prototype.replay=function(t,e,n,i,r,s,o){var a=Object.keys(this.replaysByZIndex_).map(Number);a.sort(q["g"]),t.save(),this.clip(t,e);var c,l,u,h,d,f,p=s||Ye;for(c=0,l=a.length;c=r)for(i=r;i=s)sn(n,t+r,t+s),sn(n,t+s,t+r),sn(n,t-s,t+r),sn(n,t-r,t+s),sn(n,t-r,t-s),sn(n,t-s,t-r),sn(n,t+s,t-r),sn(n,t+r,t-s),s++,o+=1+2*s,2*(o-r)+1>0&&(r-=1,o+=1-2*r);return rn[t]=n,n}function an(t,e,n,i){for(var r=Object.keys(t).map(Number).sort(q["g"]),s={},o=0,a=r.length;ol[2])++D,k=I*D,h=this.getTransform(e,k),p.replay(_,h,c,s,T),C-=I}if(Object(qt["s"])(_,c,S/2,O/2),b&&this.dispatchRenderEvent(_,e,h),_!=t){if(v){var R=t.globalAlpha;t.globalAlpha=n.opacity,t.drawImage(_.canvas,-g,-y),t.globalAlpha=R}else t.drawImage(_.canvas,-g,-y);_.translate(-g,-y)}v||(_.globalAlpha=L)}f&&t.restore()},e.prototype.composeFrame=function(t,e,n){var i=this.getTransform(t,0);this.preCompose(n,t,i),this.compose(n,t,e),this.postCompose(n,t,e,i)},e.prototype.forEachFeatureAtCoordinate=function(t,e,n,r,s){if(this.replayGroup_){var o=e.viewState.resolution,a=e.viewState.rotation,c=this.getLayer(),l={},u=this.replayGroup_.forEachFeatureAtCoordinate(t,o,a,n,{},function(t){var e=Object(i["c"])(t);if(!(e in l))return l[e]=!0,r.call(s,t,c)},null);return u}},e.prototype.handleFontsChanged_=function(t){var e=this.getLayer();e.getVisible()&&this.replayGroup_&&e.changed()},e.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},e.prototype.prepareFrame=function(t,e){var n=this.getLayer(),i=n.getSource(),r=t.viewHints[yt["a"].ANIMATING],s=t.viewHints[yt["a"].INTERACTING],o=n.getUpdateWhileAnimating(),a=n.getUpdateWhileInteracting();if(!this.dirty_&&!o&&r||!a&&s)return!0;var c=t.extent,l=t.viewState,u=l.projection,h=l.resolution,d=t.pixelRatio,f=n.getRevision(),p=n.getRenderBuffer(),_=n.getRenderOrder();void 0===_&&(_=hn);var m=Object(bt["c"])(c,p*h),g=l.projection.getExtent();if(i.getWrapX()&&l.projection.canWrapX()&&!Object(bt["g"])(g,t.extent)){var y=Object(bt["E"])(g),v=Math.max(Object(bt["E"])(m)/2,y);m[0]=g[0]-v,m[2]=g[2]+v}if(!this.dirty_&&this.renderedResolution_==h&&this.renderedRevision_==f&&this.renderedRenderOrder_==_&&Object(bt["g"])(this.renderedExtent_,m))return this.replayGroupChanged=!1,!0;this.replayGroup_=null,this.dirty_=!1;var b=new cn(fn(h,d),m,h,d,i.getOverlaps(),this.declutterTree_,n.getRenderBuffer());i.loadFeatures(m,h,u);var M=function(t){var e,i=t.getStyleFunction()||n.getStyleFunction();if(i&&(e=i(t,h)),e){var r=this.renderFeature(t,h,d,e,b);this.dirty_=this.dirty_||r}}.bind(this);if(_){var w=[];i.forEachFeatureInExtent(m,function(t){w.push(t)}),w.sort(_);for(var x=0,L=w.length;x=0;--b){var M=m[b];if(M.getState()!=ct["a"].ABORT)for(var w=M.tileCoord,x=g.getTileCoordExtent(w,this.tmpExtent)[0]-M.extent[0],L=void 0,E=0,T=M.tileKeys.length;E0&&(s=a["a"].determineBoundary(e,n)),this._label.setLocation(t,s)}computeLabelSide(t,e){for(let n=this.iterator();n.hasNext();){const i=n.next();if(i.getLabel().isArea()){const n=i.getLabel().getLocation(t,e);if(n===r["a"].INTERIOR)return this._label.setLocation(t,e,r["a"].INTERIOR),null;n===r["a"].EXTERIOR&&this._label.setLocation(t,e,r["a"].EXTERIOR)}}}getLabel(){return this._label}computeLabelSides(t){this.computeLabelSide(t,o["a"].LEFT),this.computeLabelSide(t,o["a"].RIGHT)}updateIM(t){u["a"].updateIM(this._label,t)}computeLabel(t){let e=!1;for(let n=this.iterator();n.hasNext();){const t=n.next();t.getLabel().isArea()&&(e=!0)}this._label=e?new c["a"](r["a"].NONE,r["a"].NONE,r["a"].NONE):new c["a"](r["a"].NONE);for(let n=0;n<2;n++)this.computeLabelOn(n,t),e&&this.computeLabelSides(n)}}class d extends i["a"]{constructor(){super()}updateIM(t){for(let e=this.iterator();e.hasNext();){const n=e.next();n.updateIM(t)}}insert(t){let e=this._edgeMap.get(t);null===e?(e=new h(t),this.insertEdgeEnd(t,e)):e.insert(t)}}var f=n("e514");class p extends f["a"]{constructor(){super(),p.constructor_.apply(this,arguments)}static constructor_(){const t=arguments[0],e=arguments[1];f["a"].constructor_.call(this,t,e)}computeIM(t){t.setAtLeastIfValid(this._label.getLocation(0),this._label.getLocation(1),0)}updateIMFromEdges(t){this._edges.updateIM(t)}}var _=n("af76");n.d(e,"a",function(){return m});class m extends _["a"]{constructor(){super()}createNode(t){return new p(t,new d)}}},6117:function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(t,e){return 12===t&&(t=0),"يېرىم كېچە"===e||"سەھەر"===e||"چۈشتىن بۇرۇن"===e?t:"چۈشتىن كېيىن"===e||"كەچ"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,n){var i=100*t+e;return i<600?"يېرىم كېچە":i<900?"سەھەر":i<1130?"چۈشتىن بۇرۇن":i<1230?"چۈش":i<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"-كۈنى";case"w":case"W":return t+"-ھەپتە";default:return t}},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:1,doy:7}});return e})},"613b":function(t,e,n){var i=n("5537")("keys"),r=n("ca5a");t.exports=function(t){return i[t]||(i[t]=r(t))}},"617d":function(t,e,n){"use strict";n.d(e,"c",function(){return r}),n.d(e,"g",function(){return s}),n.d(e,"i",function(){return o}),n.d(e,"d",function(){return a}),n.d(e,"b",function(){return c}),n.d(e,"a",function(){return l}),n.d(e,"h",function(){return u}),n.d(e,"f",function(){return h}),n.d(e,"e",function(){return d});var i="undefined"!==typeof navigator?navigator.userAgent.toLowerCase():"",r=-1!==i.indexOf("firefox"),s=-1!==i.indexOf("safari")&&-1==i.indexOf("chrom"),o=-1!==i.indexOf("webkit")&&-1==i.indexOf("edge"),a=-1!==i.indexOf("macintosh"),c=window.devicePixelRatio||1,l=function(){var t=!1;try{t=!!document.createElement("canvas").getContext("2d").setLineDash}catch(t){}return t}(),u=(navigator,"ontouchstart"in window),h="PointerEvent"in window,d=!!navigator.msPointerEnabled},6186:function(t,e,n){"use strict";n("386d"),n("c5f6");var i=n("5d8b"),r=n("d7db"),s=n("cd88");e["a"]={name:"QSearch",mixins:[s["a"],r["a"]],props:{value:{required:!0},type:{type:String,default:"search"},debounce:{type:Number,default:300},icon:String,noIcon:Boolean,upperCase:Boolean,lowerCase:Boolean},data:function(){return{model:this.value,childDebounce:!1}},provide:function(){var t=this,e=function(e){t.model!==e&&(t.model=e)};return{__inputDebounce:{set:e,setNav:e,setChildDebounce:function(e){t.childDebounce=e}}}},watch:{value:function(t){this.model=t},model:function(t){var e=this;clearTimeout(this.timer),this.value!==t&&(t||0===t||(this.model="number"===this.type?null:""),this.timer=setTimeout(function(){e.$emit("input",e.model)},this.debounceValue))}},computed:{debounceValue:function(){return this.childDebounce?0:this.debounce},computedClearValue:function(){return this.isNumber&&0===this.clearValue?this.clearValue:this.clearValue||("number"===this.type?null:"")},controlBefore:function(){var t=(this.before||[]).slice();return this.noIcon||t.unshift({icon:this.icon||this.$q.icon.search.icon,handler:this.focus}),t},controlAfter:function(){var t=(this.after||[]).slice();return this.isClearable&&t.push({icon:this.$q.icon.search["clear".concat(this.isInverted?"Inverted":"")],handler:this.clear}),t}},methods:{clear:function(t){this.$refs.input.clear(t)}},render:function(t){var e=this;return t(i["a"],{ref:"input",staticClass:"q-search",props:{value:this.model,type:this.type,autofocus:this.autofocus,placeholder:this.placeholder||this.$q.i18n.label.search,disable:this.disable,readonly:this.readonly,error:this.error,warning:this.warning,align:this.align,noParentField:this.noParentField,floatLabel:this.floatLabel,stackLabel:this.stackLabel,prefix:this.prefix,suffix:this.suffix,inverted:this.inverted,invertedLight:this.invertedLight,dark:this.dark,hideUnderline:this.hideUnderline,color:this.color,rows:this.rows,before:this.controlBefore,after:this.controlAfter,clearValue:this.clearValue,upperCase:this.upperCase,lowerCase:this.lowerCase},attrs:this.$attrs,on:{input:function(t){e.model=t},focus:this.__onFocus,blur:this.__onBlur,keyup:this.__onKeyup,keydown:this.__onKeydown,click:this.__onClick,paste:this.__onPaste,clear:function(t){e.$emit("clear",t),e.__emit()}}},this.$slots.default)}}},"61ca":function(t,e,n){(function(e,n){t.exports=n()})(0,function(){"use strict";function t(t,n,r,s,o){e(t,n,r||0,s||t.length-1,o||i)}function e(t,i,r,s,o){while(s>r){if(s-r>600){var a=s-r+1,c=i-r+1,l=Math.log(a),u=.5*Math.exp(2*l/3),h=.5*Math.sqrt(l*u*(a-u)/a)*(c-a/2<0?-1:1),d=Math.max(r,Math.floor(i-c*u/a+h)),f=Math.min(s,Math.floor(i+(a-c)*u/a+h));e(t,i,d,f,o)}var p=t[i],_=r,m=s;n(t,r,i),o(t[s],p)>0&&n(t,r,s);while(_0)m--}0===o(t[r],p)?n(t,r,m):(m++,n(t,m,s)),m<=i&&(r=m+1),i<=m&&(s=m-1)}}function n(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function i(t,e){return te?1:0}return t})},"621f":function(t,e,n){"use strict";var i=n("1816"),r=function(){};t.exports={getOrigin:function(t){if(!t)return null;var e=new i(t);if("file:"===e.protocol)return null;var n=e.port;return n||(n="https:"===e.protocol?"443":"80"),e.protocol+"//"+e.hostname+":"+n},isOriginEqual:function(t,e){var n=this.getOrigin(t)===this.getOrigin(e);return r("same",t,e,n),n},isSchemeEqual:function(t,e){return t.split(":")[0]===e.split(":")[0]},addPath:function(t,e){var n=t.split("?");return n[0]+e+(n[1]?"?"+n[1]:"")},addQuery:function(t,e){return t+(-1===t.indexOf("?")?"?"+e:"&"+e)}}},"626a":function(t,e,n){var i=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},"62a0":function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},"62e4":function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},6336:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("fd89"),r=n("76fd"),s=n("caca");class o{static pointToSegmentString(t,e){if(0===e.length)throw new i["a"]("Line array must contain at least one vertex");let n=t.distance(e[0]);for(let i=0;i1||c<0||c>1)&&(a=!0)}}else a=!0;return a?r["a"].min(o.pointToSegment(t,n,i),o.pointToSegment(e,n,i),o.pointToSegment(n,t,e),o.pointToSegment(i,t,e)):0}static pointToLinePerpendicular(t,e,n){const i=(n.x-e.x)*(n.x-e.x)+(n.y-e.y)*(n.y-e.y),r=((e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y))/i;return Math.abs(r)*Math.sqrt(i)}static pointToSegment(t,e,n){if(e.x===n.x&&e.y===n.y)return t.distance(e);const i=(n.x-e.x)*(n.x-e.x)+(n.y-e.y)*(n.y-e.y),r=((t.x-e.x)*(n.x-e.x)+(t.y-e.y)*(n.y-e.y))/i;if(r<=0)return t.distance(e);if(r>=1)return t.distance(n);const s=((e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y))/i;return Math.abs(s)*Math.sqrt(i)}}},"63b6":function(t,e,n){var i=n("e53d"),r=n("584a"),s=n("d864"),o=n("35e8"),a=n("07e3"),c="prototype",l=function(t,e,n){var u,h,d,f=t&l.F,p=t&l.G,_=t&l.S,m=t&l.P,g=t&l.B,y=t&l.W,v=p?r:r[e]||(r[e]={}),b=v[c],M=p?i:_?i[e]:(i[e]||{})[c];for(u in p&&(n=e),n)h=!f&&M&&void 0!==M[u],h&&a(v,u)||(d=h?M[u]:n[u],v[u]=p&&"function"!=typeof M[u]?n[u]:g&&h?s(d,i):y&&M[u]==d?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e[c]=t[c],e}(d):m&&"function"==typeof d?s(Function.call,d):d,m&&((v.virtual||(v.virtual={}))[u]=d,t&l.R&&b&&!b[u]&&o(b,u,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},"63d1":function(t,e,n){},6403:function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration -var e=t.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,n){return t<11?"pagi":t<15?"tengahari":t<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});return e})},"64b0":function(t,e,n){"use strict";var i=n("71c9"),r=function(){return!!i};r.hasArrayLengthDefineBug=function(){if(!i)return null;try{return 1!==i([],"length",{value:1}).length}catch(t){return!0}},t.exports=r},"64d9":function(t,e,n){"use strict";var i=n("4cdf"),r=n("38f3"),s=n("1300"),o=n("256f"),a=function(){this.dataProjection=null,this.defaultFeatureProjection=null};a.prototype.getReadOptions=function(t,e){var n;return e&&(n={dataProjection:e.dataProjection?e.dataProjection:this.readProjection(t),featureProjection:e.featureProjection}),this.adaptOptions(n)},a.prototype.adaptOptions=function(t){return Object(r["a"])({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection},t)},a.prototype.getLastExtent=function(){return null},a.prototype.getType=function(){return Object(s["b"])()},a.prototype.readFeature=function(t,e){return Object(s["b"])()},a.prototype.readFeatures=function(t,e){return Object(s["b"])()},a.prototype.readGeometry=function(t,e){return Object(s["b"])()},a.prototype.readProjection=function(t){return Object(s["b"])()},a.prototype.writeFeature=function(t,e){return Object(s["b"])()},a.prototype.writeFeatures=function(t,e){return Object(s["b"])()},a.prototype.writeGeometry=function(t,e){return Object(s["b"])()};var c=a;function l(t,e,n){var i,r=n?Object(o["g"])(n.featureProjection):null,s=n?Object(o["g"])(n.dataProjection):null;if(i=r&&s&&!Object(o["f"])(r,s)?Array.isArray(t)?Object(o["m"])(t,s,r):(e?t.clone():t).transform(e?r:s,e?s:r):t,e&&n&&void 0!==n.decimals&&!Array.isArray(i)){var a=Math.pow(10,n.decimals),c=function(t){for(var e=0,n=t.length;e="a"&&t<="z"||t>="A"&&t<="Z"},P.prototype.isNumeric_=function(t,e){var n=void 0!==e&&e;return t>="0"&&t<="9"||"."==t&&!n},P.prototype.isWhiteSpace_=function(t){return" "==t||"\t"==t||"\r"==t||"\n"==t},P.prototype.nextChar_=function(){return this.wkt.charAt(++this.index_)},P.prototype.nextToken=function(){var t,e=this.nextChar_(),n=this.index_,i=e;if("("==e)t=A.LEFT_PAREN;else if(","==e)t=A.COMMA;else if(")"==e)t=A.RIGHT_PAREN;else if(this.isNumeric_(e)||"-"==e)t=A.NUMBER,i=this.readNumber_();else if(this.isAlpha_(e))t=A.TEXT,i=this.readText_();else{if(this.isWhiteSpace_(e))return this.nextToken();if(""!==e)throw new Error("Unexpected character: "+e);t=A.EOF}return{position:n,value:i,type:t}},P.prototype.readNumber_=function(){var t,e=this.index_,n=!1,i=!1;do{"."==t?n=!0:"e"!=t&&"E"!=t||(i=!0),t=this.nextChar_()}while(this.isNumeric_(t,n)||!i&&("e"==t||"E"==t)||i&&("-"==t||"+"==t));return parseFloat(this.wkt.substring(e,this.index_--))},P.prototype.readText_=function(){var t,e=this.index_;do{t=this.nextChar_()}while(this.isAlpha_(t));return this.wkt.substring(e,this.index_--).toUpperCase()};var j=function(t){this.lexer_=t,this.token_,this.layout_=w["a"].XY};j.prototype.consume_=function(){this.token_=this.lexer_.nextToken()},j.prototype.isTokenType=function(t){var e=this.token_.type==t;return e},j.prototype.match=function(t){var e=this.isTokenType(t);return e&&this.consume_(),e},j.prototype.parse=function(){this.consume_();var t=this.parseGeometry_();return t},j.prototype.parseGeometryLayout_=function(){var t=w["a"].XY,e=this.token_;if(this.isTokenType(A.TEXT)){var n=e.value;n===I?t=w["a"].XYZ:n===D?t=w["a"].XYM:n===R&&(t=w["a"].XYZM),t!==w["a"].XY&&this.consume_()}return t},j.prototype.parseGeometryCollectionText_=function(){if(this.match(A.LEFT_PAREN)){var t=[];do{t.push(this.parseGeometry_())}while(this.match(A.COMMA));if(this.match(A.RIGHT_PAREN))return t}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())},j.prototype.parsePointText_=function(){if(this.match(A.LEFT_PAREN)){var t=this.parsePoint_();if(this.match(A.RIGHT_PAREN))return t}else if(this.isEmptyGeometry_())return null;throw new Error(this.formatErrorMessage_())},j.prototype.parseLineStringText_=function(){if(this.match(A.LEFT_PAREN)){var t=this.parsePointList_();if(this.match(A.RIGHT_PAREN))return t}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())},j.prototype.parsePolygonText_=function(){if(this.match(A.LEFT_PAREN)){var t=this.parseLineStringTextList_();if(this.match(A.RIGHT_PAREN))return t}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())},j.prototype.parseMultiPointText_=function(){var t;if(this.match(A.LEFT_PAREN)){if(t=this.token_.type==A.LEFT_PAREN?this.parsePointTextList_():this.parsePointList_(),this.match(A.RIGHT_PAREN))return t}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())},j.prototype.parseMultiLineStringText_=function(){if(this.match(A.LEFT_PAREN)){var t=this.parseLineStringTextList_();if(this.match(A.RIGHT_PAREN))return t}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())},j.prototype.parseMultiPolygonText_=function(){if(this.match(A.LEFT_PAREN)){var t=this.parsePolygonTextList_();if(this.match(A.RIGHT_PAREN))return t}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())},j.prototype.parsePoint_=function(){for(var t=[],e=this.layout_.length,n=0;n0&&(e+=" "+r)}return 0===i.length?e+" "+C:e+"("+i+")"}e["a"]=F},"656e":function(t,e,n){"use strict";var i=n("79aa");function r(t){var e,n;this.promise=new t(function(t,i){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=i}),this.resolve=i(e),this.reject=i(n)}t.exports.f=function(t){return new r(t)}},6580:function(t,e,n){"use strict";e["a"]={name:"QCardTitle",render:function(t){return t("div",{staticClass:"q-card-primary q-card-container row no-wrap"},[t("div",{staticClass:"col column"},[t("div",{staticClass:"q-card-title"},this.$slots.default),t("div",{staticClass:"q-card-subtitle"},[this.$slots.subtitle])]),t("div",{staticClass:"col-auto self-center q-card-title-extra"},[this.$slots.right])])}}},"65db":function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; +var e=t.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,n){return t<11?"pagi":t<15?"tengahari":t<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});return e})},"64b0":function(t,e,n){"use strict";var i=n("71c9"),r=function(){return!!i};r.hasArrayLengthDefineBug=function(){if(!i)return null;try{return 1!==i([],"length",{value:1}).length}catch(t){return!0}},t.exports=r},"64d9":function(t,e,n){"use strict";var i=n("4cdf"),r=n("38f3"),s=n("1300"),o=n("256f"),a=function(){this.dataProjection=null,this.defaultFeatureProjection=null};a.prototype.getReadOptions=function(t,e){var n;return e&&(n={dataProjection:e.dataProjection?e.dataProjection:this.readProjection(t),featureProjection:e.featureProjection}),this.adaptOptions(n)},a.prototype.adaptOptions=function(t){return Object(r["a"])({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection},t)},a.prototype.getLastExtent=function(){return null},a.prototype.getType=function(){return Object(s["b"])()},a.prototype.readFeature=function(t,e){return Object(s["b"])()},a.prototype.readFeatures=function(t,e){return Object(s["b"])()},a.prototype.readGeometry=function(t,e){return Object(s["b"])()},a.prototype.readProjection=function(t){return Object(s["b"])()},a.prototype.writeFeature=function(t,e){return Object(s["b"])()},a.prototype.writeFeatures=function(t,e){return Object(s["b"])()},a.prototype.writeGeometry=function(t,e){return Object(s["b"])()};var c=a;function l(t,e,n){var i,r=n?Object(o["g"])(n.featureProjection):null,s=n?Object(o["g"])(n.dataProjection):null;if(i=r&&s&&!Object(o["f"])(r,s)?Array.isArray(t)?Object(o["m"])(t,s,r):(e?t.clone():t).transform(e?r:s,e?s:r):t,e&&n&&void 0!==n.decimals&&!Array.isArray(i)){var a=Math.pow(10,n.decimals),c=function(t){for(var e=0,n=t.length;e="a"&&t<="z"||t>="A"&&t<="Z"},P.prototype.isNumeric_=function(t,e){var n=void 0!==e&&e;return t>="0"&&t<="9"||"."==t&&!n},P.prototype.isWhiteSpace_=function(t){return" "==t||"\t"==t||"\r"==t||"\n"==t},P.prototype.nextChar_=function(){return this.wkt.charAt(++this.index_)},P.prototype.nextToken=function(){var t,e=this.nextChar_(),n=this.index_,i=e;if("("==e)t=A.LEFT_PAREN;else if(","==e)t=A.COMMA;else if(")"==e)t=A.RIGHT_PAREN;else if(this.isNumeric_(e)||"-"==e)t=A.NUMBER,i=this.readNumber_();else if(this.isAlpha_(e))t=A.TEXT,i=this.readText_();else{if(this.isWhiteSpace_(e))return this.nextToken();if(""!==e)throw new Error("Unexpected character: "+e);t=A.EOF}return{position:n,value:i,type:t}},P.prototype.readNumber_=function(){var t,e=this.index_,n=!1,i=!1;do{"."==t?n=!0:"e"!=t&&"E"!=t||(i=!0),t=this.nextChar_()}while(this.isNumeric_(t,n)||!i&&("e"==t||"E"==t)||i&&("-"==t||"+"==t));return parseFloat(this.wkt.substring(e,this.index_--))},P.prototype.readText_=function(){var t,e=this.index_;do{t=this.nextChar_()}while(this.isAlpha_(t));return this.wkt.substring(e,this.index_--).toUpperCase()};var j=function(t){this.lexer_=t,this.token_,this.layout_=w["a"].XY};j.prototype.consume_=function(){this.token_=this.lexer_.nextToken()},j.prototype.isTokenType=function(t){var e=this.token_.type==t;return e},j.prototype.match=function(t){var e=this.isTokenType(t);return e&&this.consume_(),e},j.prototype.parse=function(){this.consume_();var t=this.parseGeometry_();return t},j.prototype.parseGeometryLayout_=function(){var t=w["a"].XY,e=this.token_;if(this.isTokenType(A.TEXT)){var n=e.value;n===I?t=w["a"].XYZ:n===D?t=w["a"].XYM:n===R&&(t=w["a"].XYZM),t!==w["a"].XY&&this.consume_()}return t},j.prototype.parseGeometryCollectionText_=function(){if(this.match(A.LEFT_PAREN)){var t=[];do{t.push(this.parseGeometry_())}while(this.match(A.COMMA));if(this.match(A.RIGHT_PAREN))return t}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())},j.prototype.parsePointText_=function(){if(this.match(A.LEFT_PAREN)){var t=this.parsePoint_();if(this.match(A.RIGHT_PAREN))return t}else if(this.isEmptyGeometry_())return null;throw new Error(this.formatErrorMessage_())},j.prototype.parseLineStringText_=function(){if(this.match(A.LEFT_PAREN)){var t=this.parsePointList_();if(this.match(A.RIGHT_PAREN))return t}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())},j.prototype.parsePolygonText_=function(){if(this.match(A.LEFT_PAREN)){var t=this.parseLineStringTextList_();if(this.match(A.RIGHT_PAREN))return t}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())},j.prototype.parseMultiPointText_=function(){var t;if(this.match(A.LEFT_PAREN)){if(t=this.token_.type==A.LEFT_PAREN?this.parsePointTextList_():this.parsePointList_(),this.match(A.RIGHT_PAREN))return t}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())},j.prototype.parseMultiLineStringText_=function(){if(this.match(A.LEFT_PAREN)){var t=this.parseLineStringTextList_();if(this.match(A.RIGHT_PAREN))return t}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())},j.prototype.parseMultiPolygonText_=function(){if(this.match(A.LEFT_PAREN)){var t=this.parsePolygonTextList_();if(this.match(A.RIGHT_PAREN))return t}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())},j.prototype.parsePoint_=function(){for(var t=[],e=this.layout_.length,n=0;n0&&(e+=" "+r)}return 0===i.length?e+" "+C:e+"("+i+")"}e["a"]=F},"656e":function(t,e,n){"use strict";var i=n("79aa");function r(t){var e,n;this.promise=new t(function(t,i){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=i}),this.resolve=i(e),this.reject=i(n)}t.exports.f=function(t){return new r(t)}},6580:function(t,e,n){"use strict";e["a"]={name:"QCardTitle",render:function(t){return t("div",{staticClass:"q-card-primary q-card-container row no-wrap"},[t("div",{staticClass:"col column"},[t("div",{staticClass:"q-card-title"},this.$slots.default),t("div",{staticClass:"q-card-subtitle"},[this.$slots.subtitle])]),t("div",{staticClass:"col-auto self-center q-card-title-extra"},[this.$slots.right])])}}},"65db":function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(t){return"p"===t.charAt(0).toLowerCase()},meridiem:function(t,e,n){return t>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}});return e})},"668c":function(t,e,n){"use strict";var i=n("55f7");class r extends i["a"]{constructor(){super(),r.constructor_.apply(this,arguments)}static constructor_(){if(0===arguments.length)i["a"].constructor_.call(this);else if(1===arguments.length){const t=arguments[0];i["a"].constructor_.call(this,t)}}}n.d(e,"a",function(){return s});class s{static isTrue(){if(1===arguments.length){const t=arguments[0];s.isTrue(t,null)}else if(2===arguments.length){const t=arguments[0],e=arguments[1];if(!t)throw null===e?new r:new r(e)}}static shouldNeverReachHere(){if(0===arguments.length)s.shouldNeverReachHere(null);else if(1===arguments.length){const t=arguments[0];throw new r("Should never reach here"+(null!==t?": "+t:""))}}static equals(){if(2===arguments.length){const t=arguments[0],e=arguments[1];s.equals(t,e,null)}else if(3===arguments.length){const t=arguments[0],e=arguments[1],n=arguments[2];if(!e.equals(t))throw new r("Expected "+t+" but encountered "+e+(null!==n?": "+n:""))}}}},"66bc":function(t,e,n){},6718:function(t,e,n){var i=n("e53d"),r=n("584a"),s=n("b8e3"),o=n("ccb9"),a=n("d9f6").f;t.exports=function(t){var e=r.Symbol||(r.Symbol=s?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:o.f(t)})}},6762:function(t,e,n){"use strict";var i=n("5ca1"),r=n("c366")(!0);i(i.P,"Array",{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6780:function(t,e,n){"use strict";var i=n("0388"),r=(n("551c"),n("4082")),s=n.n(r),o=n("a60d"),a=function(t,e){return function(n,i){var r=n.className,a=s()(n,["className"]);return new Promise(function(n,s){if(o["c"])return n();var c=document.createElement("div");document.body.appendChild(c);var l=function(t){n(t),h.$destroy()},u=function(t){s(t||new Error),h.$destroy()},h=new e({el:c,data:function(){return{props:a}},render:function(e){return e(t,{ref:"modal",props:a,class:r,on:{ok:l,cancel:u}})},mounted:function(){this.$refs.modal.show()}});i&&i.then(l,u)})}};e["a"]={install:function(t){var e=t.$q,n=t.Vue;this.create=e.dialog=a(i["a"],n)}}},6784:function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration @@ -138,7 +145,7 @@ function e(t,e,n){var i={mm:"munutenn",MM:"miz",dd:"devezh"};return t+" "+r(i[n] //! moment.js locale configuration var e=t.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return e})},"688e":function(t,e,n){"use strict";var i="Function.prototype.bind called on incompatible ",r=Object.prototype.toString,s=Math.max,o="[object Function]",a=function(t,e){for(var n=[],i=0;i10&&n<20?t+"-ти":1===e?t+"-ви":2===e?t+"-ри":7===e||8===e?t+"-ми":t+"-ти"},week:{dow:1,doy:7}});return e})},6945:function(t,e,n){"use strict";t.exports=[n("397f"),n("3e1e"),n("b185"),n("7b4d"),n("26e3")(n("7b4d")),n("40b2"),n("26e3")(n("40b2")),n("e2b3"),n("e556"),n("26e3")(n("e2b3")),n("f84c")]},"696e":function(t,e,n){n("c207"),n("1654"),n("6c1c"),n("24c5"),n("3c11"),n("43fc"),t.exports=n("584a").Promise},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"69ba":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("7b52"),r=n("13ca"),s=n("0360"),o=n("fe5c"),a=n("b08b");class c extends r["a"]{constructor(){super(),c.constructor_.apply(this,arguments)}static constructor_(){this._isForward=null,this._isInResult=!1,this._isVisited=!1,this._sym=null,this._next=null,this._nextMin=null,this._edgeRing=null,this._minEdgeRing=null,this._depth=[0,-999,-999];const t=arguments[0],e=arguments[1];if(r["a"].constructor_.call(this,t),this._isForward=e,e)this.init(t.getCoordinate(0),t.getCoordinate(1));else{const e=t.getNumPoints()-1;this.init(t.getCoordinate(e),t.getCoordinate(e-1))}this.computeDirectedLabel()}static depthFactor(t,e){return t===i["a"].EXTERIOR&&e===i["a"].INTERIOR?1:t===i["a"].INTERIOR&&e===i["a"].EXTERIOR?-1:0}setVisited(t){this._isVisited=t}setDepth(t,e){if(-999!==this._depth[t]&&this._depth[t]!==e)throw new o["a"]("assigned depths do not match",this.getCoordinate());this._depth[t]=e}isInteriorAreaEdge(){let t=!0;for(let e=0;e<2;e++)this._label.isArea(e)&&this._label.getLocation(e,s["a"].LEFT)===i["a"].INTERIOR&&this._label.getLocation(e,s["a"].RIGHT)===i["a"].INTERIOR||(t=!1);return t}setNextMin(t){this._nextMin=t}print(t){super.print.call(this,t),t.print(" "+this._depth[s["a"].LEFT]+"/"+this._depth[s["a"].RIGHT]),t.print(" ("+this.getDepthDelta()+")"),this._isInResult&&t.print(" inResult")}setMinEdgeRing(t){this._minEdgeRing=t}getSym(){return this._sym}isForward(){return this._isForward}setSym(t){this._sym=t}setVisitedEdge(t){this.setVisited(t),this._sym.setVisited(t)}getNextMin(){return this._nextMin}getDepth(t){return this._depth[t]}computeDirectedLabel(){this._label=new a["a"](this._edge.getLabel()),this._isForward||this._label.flip()}getNext(){return this._next}isLineEdge(){const t=this._label.isLine(0)||this._label.isLine(1),e=!this._label.isArea(0)||this._label.allPositionsEqual(0,i["a"].EXTERIOR),n=!this._label.isArea(1)||this._label.allPositionsEqual(1,i["a"].EXTERIOR);return t&&e&&n}setEdgeRing(t){this._edgeRing=t}getMinEdgeRing(){return this._minEdgeRing}getDepthDelta(){let t=this._edge.getDepthDelta();return this._isForward||(t=-t),t}setInResult(t){this._isInResult=t}getEdge(){return this._edge}printEdge(t){this.print(t),t.print(" "),this._isForward?this._edge.print(t):this._edge.printReverse(t)}setEdgeDepths(t,e){let n=this.getEdge().getDepthDelta();this._isForward||(n=-n);let i=1;t===s["a"].LEFT&&(i=-1);const r=s["a"].opposite(t),o=n*i,a=e+o;this.setDepth(t,e),this.setDepth(r,a)}getEdgeRing(){return this._edgeRing}isInResult(){return this._isInResult}setNext(t){this._next=t}isVisited(){return this._isVisited}}},"69d3":function(t,e,n){n("6718")("asyncIterator")},"6a99":function(t,e,n){var i=n("d3f4");t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},"6aa0":function(t,e,n){"use strict";var i=n("482e"),r=n("52b5"),s=n("2720"),o=n("fb40");e["a"]={name:"QFab",mixins:[s["a"],o["a"]],provide:function(){var t=this;return{__qFabClose:function(e){return t.hide(e).then(function(){return t.$refs.trigger&&t.$refs.trigger.$el&&t.$refs.trigger.$el.focus(),e})}}},props:{icon:String,activeIcon:String,direction:{type:String,default:"right"},persistent:Boolean},watch:{$route:function(){!this.persistent&&this.hide()}},created:function(){this.value&&this.show()},render:function(t){return t("div",{staticClass:"q-fab z-fab row inline justify-center",class:{"q-fab-opened":this.showing}},[t(i["a"],{ref:"trigger",props:{fab:!0,outline:this.outline,push:this.push,flat:this.flat,color:this.color,textColor:this.textColor,glossy:this.glossy},on:{click:this.toggle}},[this.$slots.tooltip,t(r["a"],{staticClass:"q-fab-icon absolute-full",props:{name:this.icon||this.$q.icon.fab.icon}}),t(r["a"],{staticClass:"q-fab-active-icon absolute-full",props:{name:this.activeIcon||this.$q.icon.fab.activeIcon}})]),t("div",{staticClass:"q-fab-actions flex no-wrap inline items-center",class:"q-fab-".concat(this.direction)},this.$slots.default)])}}},"6aa2":function(t,e,n){n("ec30")("Uint8",1,function(t){return function(e,n,i){return t(this,e,n,i)}},!0)},"6abf":function(t,e,n){var i=n("e6f3"),r=n("1691").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},"6b4c":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"6b54":function(t,e,n){"use strict";n("3846");var i=n("cb7c"),r=n("0bfb"),s=n("9e1e"),o="toString",a=/./[o],c=function(t){n("2aba")(RegExp.prototype,o,t,!0)};n("79e5")(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?c(function(){var t=i(this);return"/".concat(t.source,"/","flags"in t?t.flags:!s&&t instanceof RegExp?r.call(t):void 0)}):a.name!=o&&c(function(){return a.call(this)})},"6c1c":function(t,e,n){n("c367");for(var i=n("e53d"),r=n("35e8"),s=n("481b"),o=n("5168")("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c10&&n<20?t+"-ти":1===e?t+"-ви":2===e?t+"-ри":7===e||8===e?t+"-ми":t+"-ти"},week:{dow:1,doy:7}});return e})},6945:function(t,e,n){"use strict";t.exports=[n("397f"),n("3e1e"),n("b185"),n("7b4d"),n("26e3")(n("7b4d")),n("40b2"),n("26e3")(n("40b2")),n("e2b3"),n("e556"),n("26e3")(n("e2b3")),n("f84c")]},"696e":function(t,e,n){n("c207"),n("1654"),n("6c1c"),n("24c5"),n("3c11"),n("43fc"),t.exports=n("584a").Promise},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"69ba":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("7b52"),r=n("13ca"),s=n("0360"),o=n("fe5c"),a=n("b08b");class c extends r["a"]{constructor(){super(),c.constructor_.apply(this,arguments)}static constructor_(){this._isForward=null,this._isInResult=!1,this._isVisited=!1,this._sym=null,this._next=null,this._nextMin=null,this._edgeRing=null,this._minEdgeRing=null,this._depth=[0,-999,-999];const t=arguments[0],e=arguments[1];if(r["a"].constructor_.call(this,t),this._isForward=e,e)this.init(t.getCoordinate(0),t.getCoordinate(1));else{const e=t.getNumPoints()-1;this.init(t.getCoordinate(e),t.getCoordinate(e-1))}this.computeDirectedLabel()}static depthFactor(t,e){return t===i["a"].EXTERIOR&&e===i["a"].INTERIOR?1:t===i["a"].INTERIOR&&e===i["a"].EXTERIOR?-1:0}setVisited(t){this._isVisited=t}setDepth(t,e){if(-999!==this._depth[t]&&this._depth[t]!==e)throw new o["a"]("assigned depths do not match",this.getCoordinate());this._depth[t]=e}isInteriorAreaEdge(){let t=!0;for(let e=0;e<2;e++)this._label.isArea(e)&&this._label.getLocation(e,s["a"].LEFT)===i["a"].INTERIOR&&this._label.getLocation(e,s["a"].RIGHT)===i["a"].INTERIOR||(t=!1);return t}setNextMin(t){this._nextMin=t}print(t){super.print.call(this,t),t.print(" "+this._depth[s["a"].LEFT]+"/"+this._depth[s["a"].RIGHT]),t.print(" ("+this.getDepthDelta()+")"),this._isInResult&&t.print(" inResult")}setMinEdgeRing(t){this._minEdgeRing=t}getSym(){return this._sym}isForward(){return this._isForward}setSym(t){this._sym=t}setVisitedEdge(t){this.setVisited(t),this._sym.setVisited(t)}getNextMin(){return this._nextMin}getDepth(t){return this._depth[t]}computeDirectedLabel(){this._label=new a["a"](this._edge.getLabel()),this._isForward||this._label.flip()}getNext(){return this._next}isLineEdge(){const t=this._label.isLine(0)||this._label.isLine(1),e=!this._label.isArea(0)||this._label.allPositionsEqual(0,i["a"].EXTERIOR),n=!this._label.isArea(1)||this._label.allPositionsEqual(1,i["a"].EXTERIOR);return t&&e&&n}setEdgeRing(t){this._edgeRing=t}getMinEdgeRing(){return this._minEdgeRing}getDepthDelta(){let t=this._edge.getDepthDelta();return this._isForward||(t=-t),t}setInResult(t){this._isInResult=t}getEdge(){return this._edge}printEdge(t){this.print(t),t.print(" "),this._isForward?this._edge.print(t):this._edge.printReverse(t)}setEdgeDepths(t,e){let n=this.getEdge().getDepthDelta();this._isForward||(n=-n);let i=1;t===s["a"].LEFT&&(i=-1);const r=s["a"].opposite(t),o=n*i,a=e+o;this.setDepth(t,e),this.setDepth(r,a)}getEdgeRing(){return this._edgeRing}isInResult(){return this._isInResult}setNext(t){this._next=t}isVisited(){return this._isVisited}}},"69d3":function(t,e,n){n("6718")("asyncIterator")},"6a99":function(t,e,n){var i=n("d3f4");t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},"6aa0":function(t,e,n){"use strict";var i=n("482e"),r=n("52b5"),s=n("2720"),o=n("fb40");e["a"]={name:"QFab",mixins:[s["a"],o["a"]],provide:function(){var t=this;return{__qFabClose:function(e){return t.hide(e).then(function(){return t.$refs.trigger&&t.$refs.trigger.$el&&t.$refs.trigger.$el.focus(),e})}}},props:{icon:String,activeIcon:String,direction:{type:String,default:"right"},persistent:Boolean},watch:{$route:function(){!this.persistent&&this.hide()}},created:function(){this.value&&this.show()},render:function(t){return t("div",{staticClass:"q-fab z-fab row inline justify-center",class:{"q-fab-opened":this.showing}},[t(i["a"],{ref:"trigger",props:{fab:!0,outline:this.outline,push:this.push,flat:this.flat,color:this.color,textColor:this.textColor,glossy:this.glossy},on:{click:this.toggle}},[this.$slots.tooltip,t(r["a"],{staticClass:"q-fab-icon absolute-full",props:{name:this.icon||this.$q.icon.fab.icon}}),t(r["a"],{staticClass:"q-fab-active-icon absolute-full",props:{name:this.activeIcon||this.$q.icon.fab.activeIcon}})]),t("div",{staticClass:"q-fab-actions flex no-wrap inline items-center",class:"q-fab-".concat(this.direction)},this.$slots.default)])}}},"6aa2":function(t,e,n){n("ec30")("Uint8",1,function(t){return function(e,n,i){return t(this,e,n,i)}},!0)},"6abf":function(t,e,n){var i=n("e6f3"),r=n("1691").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},"6b3f":function(t,e,n){"use strict";t.exports="undefined"!==typeof Reflect&&Reflect&&Reflect.apply},"6b4c":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"6b54":function(t,e,n){"use strict";n("3846");var i=n("cb7c"),r=n("0bfb"),s=n("9e1e"),o="toString",a=/./[o],c=function(t){n("2aba")(RegExp.prototype,o,t,!0)};n("79e5")(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?c(function(){var t=i(this);return"/".concat(t.source,"/","flags"in t?t.flags:!s&&t instanceof RegExp?r.call(t):void 0)}):a.name!=o&&c(function(){return a.call(this)})},"6c1c":function(t,e,n){n("c367");for(var i=n("e53d"),r=n("35e8"),s=n("481b"),o=n("5168")("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c>6,o[c++]=128|63&s):s<55296||s>=57344?(o[c++]=224|s>>12,o[c++]=128|s>>6&63,o[c++]=128|63&s):(s=65536+((1023&s)<<10|1023&t.charCodeAt(++i)),o[c++]=240|s>>18,o[c++]=128|s>>12&63,o[c++]=128|s>>6&63,o[c++]=128|63&s);t=o}else{if("object"!==r)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(t)))throw new Error(ERROR)}t.length>64&&(t=new Sha256(e,!0).update(t).array());var l=[],u=[];for(i=0;i<64;++i){var h=t[i]||0;l[i]=92^h,u[i]=54^h}Sha256.call(this,e,n),this.update(u),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}Sha256.prototype.update=function(t){if(!this.finalized){var e,n=typeof t;if("string"!==n){if("object"!==n)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(t)))throw new Error(ERROR);e=!0}var i,r,s=0,o=t.length,a=this.blocks;while(s>2]|=t[s]<>2]|=i<>2]|=(192|i>>6)<>2]|=(128|63&i)<=57344?(a[r>>2]|=(224|i>>12)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<>2]|=(240|i>>18)<>2]|=(128|i>>12&63)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<=64?(this.block=a[16],this.start=r-64,this.hash(),this.hashed=!0):this.start=r}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[16]=this.block,t[e>>2]|=EXTRA[3&e],this.block=t[16],e>=56&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var t,e,n,i,r,s,o,a,c,l,u,h=this.h0,d=this.h1,f=this.h2,p=this.h3,_=this.h4,m=this.h5,g=this.h6,y=this.h7,v=this.blocks;for(t=16;t<64;++t)r=v[t-15],e=(r>>>7|r<<25)^(r>>>18|r<<14)^r>>>3,r=v[t-2],n=(r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10,v[t]=v[t-16]+e+v[t-7]+n<<0;for(u=d&f,t=0;t<64;t+=4)this.first?(this.is224?(a=300032,r=v[0]-1413257819,y=r-150054599<<0,p=r+24177077<<0):(a=704751109,r=v[0]-210244248,y=r-1521486534<<0,p=r+143694565<<0),this.first=!1):(e=(h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10),n=(_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7),a=h&d,i=a^h&f^u,o=_&m^~_&g,r=y+n+o+K[t]+v[t],s=e+i,y=p+r<<0,p=r+s<<0),e=(p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10),n=(y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7),c=p&h,i=c^p&d^a,o=y&_^~y&m,r=g+n+o+K[t+1]+v[t+1],s=e+i,g=f+r<<0,f=r+s<<0,e=(f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),n=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7),l=f&p,i=l^f&h^c,o=g&y^~g&_,r=m+n+o+K[t+2]+v[t+2],s=e+i,m=d+r<<0,d=r+s<<0,e=(d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),n=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7),u=d&f,i=u^d&p^l,o=m&g^~m&y,r=_+n+o+K[t+3]+v[t+3],s=e+i,_=h+r<<0,h=r+s<<0;this.h0=this.h0+h<<0,this.h1=this.h1+d<<0,this.h2=this.h2+f<<0,this.h3=this.h3+p<<0,this.h4=this.h4+_<<0,this.h5=this.h5+m<<0,this.h6=this.h6+g<<0,this.h7=this.h7+y<<0},Sha256.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,i=this.h3,r=this.h4,s=this.h5,o=this.h6,a=this.h7,c=HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[15&s]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o];return this.is224||(c+=HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[15&a]),c},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,i=this.h3,r=this.h4,s=this.h5,o=this.h6,a=this.h7,c=[t>>24&255,t>>16&255,t>>8&255,255&t,e>>24&255,e>>16&255,e>>8&255,255&e,n>>24&255,n>>16&255,n>>8&255,255&n,i>>24&255,i>>16&255,i>>8&255,255&i,r>>24&255,r>>16&255,r>>8&255,255&r,s>>24&255,s>>16&255,s>>8&255,255&s,o>>24&255,o>>16&255,o>>8&255,255&o];return this.is224||c.push(a>>24&255,a>>16&255,a>>8&255,255&a),c},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(this.is224?28:32),e=new DataView(t);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),e.setUint32(20,this.h5),e.setUint32(24,this.h6),this.is224||e.setUint32(28,this.h7),t},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(t),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()}).call(this,__webpack_require__("4362"),__webpack_require__("c8ba"))},"6c64":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("7c92");class r{static toDegrees(t){return 180*t/Math.PI}static isAcute(t,e,n){const i=t.x-e.x,r=t.y-e.y,s=n.x-e.x,o=n.y-e.y,a=i*s+r*o;return a>0}static isObtuse(t,e,n){const i=t.x-e.x,r=t.y-e.y,s=n.x-e.x,o=n.y-e.y,a=i*s+r*o;return a<0}static interiorAngle(t,e,n){const i=r.angle(e,t),s=r.angle(e,n);return Math.abs(s-i)}static normalizePositive(t){if(t<0){while(t<0)t+=r.PI_TIMES_2;t>=r.PI_TIMES_2&&(t=0)}else{while(t>=r.PI_TIMES_2)t-=r.PI_TIMES_2;t<0&&(t=0)}return t}static angleBetween(t,e,n){const i=r.angle(e,t),s=r.angle(e,n);return r.diff(i,s)}static diff(t,e){let n=null;return n=tMath.PI&&(n=2*Math.PI-n),n}static toRadians(t){return t*Math.PI/180}static normalize(t){while(t>Math.PI)t-=r.PI_TIMES_2;while(t<=-Math.PI)t+=r.PI_TIMES_2;return t}static angle(){if(1===arguments.length){const t=arguments[0];return Math.atan2(t.y,t.x)}if(2===arguments.length){const t=arguments[0],e=arguments[1],n=e.x-t.x,i=e.y-t.y;return Math.atan2(i,n)}}static getTurn(t,e){const n=Math.sin(e-t);return n>0?r.COUNTERCLOCKWISE:n<0?r.CLOCKWISE:r.NONE}static angleBetweenOriented(t,e,n){const i=r.angle(e,t),s=r.angle(e,n),o=s-i;return o<=-Math.PI?o+r.PI_TIMES_2:o>Math.PI?o-r.PI_TIMES_2:o}}r.PI_TIMES_2=2*Math.PI,r.PI_OVER_2=Math.PI/2,r.PI_OVER_4=Math.PI/4,r.COUNTERCLOCKWISE=i["a"].COUNTERCLOCKWISE,r.CLOCKWISE=i["a"].CLOCKWISE,r.NONE=i["a"].COLLINEAR},"6c77":function(t,e,n){"use strict";n.d(e,"d",function(){return l}),n.d(e,"a",function(){return h}),n.d(e,"b",function(){return d});var i=n("92fa"),r=n("f623"),s=n("ce2c"),o=n("83a6"),a=n("8682"),c=function(t){var e=t||{};this.geometry_=null,this.geometryFunction_=f,void 0!==e.geometry&&this.setGeometry(e.geometry),this.fill_=void 0!==e.fill?e.fill:null,this.image_=void 0!==e.image?e.image:null,this.renderer_=void 0!==e.renderer?e.renderer:null,this.stroke_=void 0!==e.stroke?e.stroke:null,this.text_=void 0!==e.text?e.text:null,this.zIndex_=e.zIndex};function l(t){var e;if("function"===typeof t)e=t;else{var n;if(Array.isArray(t))n=t;else{Object(i["a"])("function"===typeof t.getZIndex,41);var r=t;n=[r]}e=function(){return n}}return e}c.prototype.clone=function(){var t=this.getGeometry();return t&&"object"===typeof t&&(t=t.clone()),new c({geometry:t,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})},c.prototype.getRenderer=function(){return this.renderer_},c.prototype.setRenderer=function(t){this.renderer_=t},c.prototype.getGeometry=function(){return this.geometry_},c.prototype.getGeometryFunction=function(){return this.geometryFunction_},c.prototype.getFill=function(){return this.fill_},c.prototype.setFill=function(t){this.fill_=t},c.prototype.getImage=function(){return this.image_},c.prototype.setImage=function(t){this.image_=t},c.prototype.getStroke=function(){return this.stroke_},c.prototype.setStroke=function(t){this.stroke_=t},c.prototype.getText=function(){return this.text_},c.prototype.setText=function(t){this.text_=t},c.prototype.getZIndex=function(){return this.zIndex_},c.prototype.setGeometry=function(t){"function"===typeof t?this.geometryFunction_=t:"string"===typeof t?this.geometryFunction_=function(e){return e.get(t)}:t?void 0!==t&&(this.geometryFunction_=function(){return t}):this.geometryFunction_=f,this.geometry_=t},c.prototype.setZIndex=function(t){this.zIndex_=t};var u=null;function h(t,e){if(!u){var n=new o["a"]({color:"rgba(255,255,255,0.4)"}),i=new a["a"]({color:"#3399CC",width:1.25});u=[new c({image:new s["a"]({fill:n,stroke:i,radius:5}),fill:n,stroke:i})]}return u}function d(){var t={},e=[255,255,255,1],n=[0,153,255,1],i=3;return t[r["a"].POLYGON]=[new c({fill:new o["a"]({color:[255,255,255,.5]})})],t[r["a"].MULTI_POLYGON]=t[r["a"].POLYGON],t[r["a"].LINE_STRING]=[new c({stroke:new a["a"]({color:e,width:i+2})}),new c({stroke:new a["a"]({color:n,width:i})})],t[r["a"].MULTI_LINE_STRING]=t[r["a"].LINE_STRING],t[r["a"].CIRCLE]=t[r["a"].POLYGON].concat(t[r["a"].LINE_STRING]),t[r["a"].POINT]=[new c({image:new s["a"]({radius:2*i,fill:new o["a"]({color:n}),stroke:new a["a"]({color:e,width:i/2})}),zIndex:1/0})],t[r["a"].MULTI_POINT]=t[r["a"].POINT],t[r["a"].GEOMETRY_COLLECTION]=t[r["a"].POLYGON].concat(t[r["a"].LINE_STRING],t[r["a"].POINT]),t}function f(t){return t.getGeometry()}e["c"]=c},"6c7b":function(t,e,n){var i=n("5ca1");i(i.P,"Array",{fill:n("36bd")}),n("9c6c")("fill")},"6cbf":function(t,e,n){"use strict";var i=n("1300"),r=n("869f"),s=n("92fa"),o=n("5c38"),a=n("1e8d"),c=n("01d4"),l={FRACTION:"fraction",PIXELS:"pixels"},u=n("0999"),h=n("0ec0"),d=n("3c22"),f=function(t){function e(e,n,i,r,s,o){t.call(this),this.hitDetectionImage_=null,this.image_=e||new Image,null!==r&&(this.image_.crossOrigin=r),this.canvas_=o?document.createElement("canvas"):null,this.color_=o,this.imageListenerKeys_=null,this.imageState_=s,this.size_=i,this.src_=n,this.tainted_}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.isTainted_=function(){if(void 0===this.tainted_&&this.imageState_===r["a"].LOADED){this.tainted_=!1;var t=Object(u["a"])(1,1);try{t.drawImage(this.image_,0,0),t.getImageData(0,0,1,1)}catch(t){this.tainted_=!0}}return!0===this.tainted_},e.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(c["a"].CHANGE)},e.prototype.handleImageError_=function(){this.imageState_=r["a"].ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},e.prototype.handleImageLoad_=function(){this.imageState_=r["a"].LOADED,this.size_&&(this.image_.width=this.size_[0],this.image_.height=this.size_[1]),this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.replaceColor_(),this.dispatchChangeEvent_()},e.prototype.getImage=function(t){return this.canvas_?this.canvas_:this.image_},e.prototype.getImageState=function(){return this.imageState_},e.prototype.getHitDetectionImage=function(t){if(!this.hitDetectionImage_)if(this.isTainted_()){var e=this.size_[0],n=this.size_[1],i=Object(u["a"])(e,n);i.fillRect(0,0,e,n),this.hitDetectionImage_=i.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_},e.prototype.getSize=function(){return this.size_},e.prototype.getSrc=function(){return this.src_},e.prototype.load=function(){if(this.imageState_==r["a"].IDLE){this.imageState_=r["a"].LOADING,this.imageListenerKeys_=[Object(a["b"])(this.image_,c["a"].ERROR,this.handleImageError_,this),Object(a["b"])(this.image_,c["a"].LOAD,this.handleImageLoad_,this)];try{this.image_.src=this.src_}catch(t){this.handleImageError_()}}},e.prototype.replaceColor_=function(){if(this.color_&&!this.isTainted_()){this.canvas_.width=this.image_.width,this.canvas_.height=this.image_.height;var t=this.canvas_.getContext("2d");t.drawImage(this.image_,0,0);for(var e=t.getImageData(0,0,this.image_.width,this.image_.height),n=e.data,i=this.color_[0]/255,r=this.color_[1]/255,s=this.color_[2]/255,o=0,a=n.length;o0,6);var g=void 0!==n.src?r["a"].IDLE:r["a"].LOADED;this.color_=void 0!==n.color?Object(o["a"])(n.color):null,this.iconImage_=p(d,m,f,this.crossOrigin_,g,this.color_),this.offset_=void 0!==n.offset?n.offset:[0,0],this.offsetOrigin_=void 0!==n.offsetOrigin?n.offsetOrigin:_.TOP_LEFT,this.origin_=null,this.size_=void 0!==n.size?n.size:null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,crossOrigin:this.crossOrigin_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,src:this.getSrc(),offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,size:null!==this.size_?this.size_.slice():void 0,opacity:this.getOpacity(),scale:this.getScale(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView()})},e.prototype.getAnchor=function(){if(this.normalizedAnchor_)return this.normalizedAnchor_;var t=this.anchor_,e=this.getSize();if(this.anchorXUnits_==l.FRACTION||this.anchorYUnits_==l.FRACTION){if(!e)return null;t=this.anchor_.slice(),this.anchorXUnits_==l.FRACTION&&(t[0]*=e[0]),this.anchorYUnits_==l.FRACTION&&(t[1]*=e[1])}if(this.anchorOrigin_!=_.TOP_LEFT){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),this.anchorOrigin_!=_.TOP_RIGHT&&this.anchorOrigin_!=_.BOTTOM_RIGHT||(t[0]=-t[0]+e[0]),this.anchorOrigin_!=_.BOTTOM_LEFT&&this.anchorOrigin_!=_.BOTTOM_RIGHT||(t[1]=-t[1]+e[1])}return this.normalizedAnchor_=t,this.normalizedAnchor_},e.prototype.setAnchor=function(t){this.anchor_=t,this.normalizedAnchor_=null},e.prototype.getColor=function(){return this.color_},e.prototype.getImage=function(t){return this.iconImage_.getImage(t)},e.prototype.getImageSize=function(){return this.iconImage_.getSize()},e.prototype.getHitDetectionImageSize=function(){return this.getImageSize()},e.prototype.getImageState=function(){return this.iconImage_.getImageState()},e.prototype.getHitDetectionImage=function(t){return this.iconImage_.getHitDetectionImage(t)},e.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var t=this.offset_;if(this.offsetOrigin_!=_.TOP_LEFT){var e=this.getSize(),n=this.iconImage_.getSize();if(!e||!n)return null;t=t.slice(),this.offsetOrigin_!=_.TOP_RIGHT&&this.offsetOrigin_!=_.BOTTOM_RIGHT||(t[0]=n[0]-e[0]-t[0]),this.offsetOrigin_!=_.BOTTOM_LEFT&&this.offsetOrigin_!=_.BOTTOM_RIGHT||(t[1]=n[1]-e[1]-t[1])}return this.origin_=t,this.origin_},e.prototype.getSrc=function(){return this.iconImage_.getSrc()},e.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},e.prototype.listenImageChange=function(t,e){return Object(a["a"])(this.iconImage_,c["a"].CHANGE,t,e)},e.prototype.load=function(){this.iconImage_.load()},e.prototype.unlistenImageChange=function(t,e){Object(a["c"])(this.iconImage_,c["a"].CHANGE,t,e)},e}(m["a"]);e["a"]=g},"6ce3":function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; +(function(){"use strict";var ERROR="input is invalid type",WINDOW="object"===typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"===typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"===typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&"object"===typeof module&&module.exports,AMD=__webpack_require__("3c35"),ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];!root.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!ARRAY_BUFFER||!root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"===typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t,e){return function(n){return new Sha256(e,!0).update(n)[t]()}},createMethod=function(t){var e=createOutputMethod("hex",t);NODE_JS&&(e=nodeWrap(e,t)),e.create=function(){return new Sha256(t)},e.update=function(t){return e.create().update(t)};for(var n=0;n>6,o[c++]=128|63&s):s<55296||s>=57344?(o[c++]=224|s>>12,o[c++]=128|s>>6&63,o[c++]=128|63&s):(s=65536+((1023&s)<<10|1023&t.charCodeAt(++i)),o[c++]=240|s>>18,o[c++]=128|s>>12&63,o[c++]=128|s>>6&63,o[c++]=128|63&s);t=o}else{if("object"!==r)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(t)))throw new Error(ERROR)}t.length>64&&(t=new Sha256(e,!0).update(t).array());var l=[],u=[];for(i=0;i<64;++i){var h=t[i]||0;l[i]=92^h,u[i]=54^h}Sha256.call(this,e,n),this.update(u),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}Sha256.prototype.update=function(t){if(!this.finalized){var e,n=typeof t;if("string"!==n){if("object"!==n)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(t)))throw new Error(ERROR);e=!0}var i,r,s=0,o=t.length,a=this.blocks;while(s>2]|=t[s]<>2]|=i<>2]|=(192|i>>6)<>2]|=(128|63&i)<=57344?(a[r>>2]|=(224|i>>12)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<>2]|=(240|i>>18)<>2]|=(128|i>>12&63)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<=64?(this.block=a[16],this.start=r-64,this.hash(),this.hashed=!0):this.start=r}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[16]=this.block,t[e>>2]|=EXTRA[3&e],this.block=t[16],e>=56&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var t,e,n,i,r,s,o,a,c,l,u,h=this.h0,d=this.h1,f=this.h2,p=this.h3,_=this.h4,m=this.h5,g=this.h6,y=this.h7,v=this.blocks;for(t=16;t<64;++t)r=v[t-15],e=(r>>>7|r<<25)^(r>>>18|r<<14)^r>>>3,r=v[t-2],n=(r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10,v[t]=v[t-16]+e+v[t-7]+n<<0;for(u=d&f,t=0;t<64;t+=4)this.first?(this.is224?(a=300032,r=v[0]-1413257819,y=r-150054599<<0,p=r+24177077<<0):(a=704751109,r=v[0]-210244248,y=r-1521486534<<0,p=r+143694565<<0),this.first=!1):(e=(h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10),n=(_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7),a=h&d,i=a^h&f^u,o=_&m^~_&g,r=y+n+o+K[t]+v[t],s=e+i,y=p+r<<0,p=r+s<<0),e=(p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10),n=(y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7),c=p&h,i=c^p&d^a,o=y&_^~y&m,r=g+n+o+K[t+1]+v[t+1],s=e+i,g=f+r<<0,f=r+s<<0,e=(f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),n=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7),l=f&p,i=l^f&h^c,o=g&y^~g&_,r=m+n+o+K[t+2]+v[t+2],s=e+i,m=d+r<<0,d=r+s<<0,e=(d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),n=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7),u=d&f,i=u^d&p^l,o=m&g^~m&y,r=_+n+o+K[t+3]+v[t+3],s=e+i,_=h+r<<0,h=r+s<<0;this.h0=this.h0+h<<0,this.h1=this.h1+d<<0,this.h2=this.h2+f<<0,this.h3=this.h3+p<<0,this.h4=this.h4+_<<0,this.h5=this.h5+m<<0,this.h6=this.h6+g<<0,this.h7=this.h7+y<<0},Sha256.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,i=this.h3,r=this.h4,s=this.h5,o=this.h6,a=this.h7,c=HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[15&s]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o];return this.is224||(c+=HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[15&a]),c},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,i=this.h3,r=this.h4,s=this.h5,o=this.h6,a=this.h7,c=[t>>24&255,t>>16&255,t>>8&255,255&t,e>>24&255,e>>16&255,e>>8&255,255&e,n>>24&255,n>>16&255,n>>8&255,255&n,i>>24&255,i>>16&255,i>>8&255,255&i,r>>24&255,r>>16&255,r>>8&255,255&r,s>>24&255,s>>16&255,s>>8&255,255&s,o>>24&255,o>>16&255,o>>8&255,255&o];return this.is224||c.push(a>>24&255,a>>16&255,a>>8&255,255&a),c},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(this.is224?28:32),e=new DataView(t);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),e.setUint32(20,this.h5),e.setUint32(24,this.h6),this.is224||e.setUint32(28,this.h7),t},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(t),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()}).call(this,__webpack_require__("4362"),__webpack_require__("c8ba"))},"6c3d":function(t,e,n){"use strict";t.exports=Object.getOwnPropertyDescriptor},"6c64":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("7c92");class r{static toDegrees(t){return 180*t/Math.PI}static isAcute(t,e,n){const i=t.x-e.x,r=t.y-e.y,s=n.x-e.x,o=n.y-e.y,a=i*s+r*o;return a>0}static isObtuse(t,e,n){const i=t.x-e.x,r=t.y-e.y,s=n.x-e.x,o=n.y-e.y,a=i*s+r*o;return a<0}static interiorAngle(t,e,n){const i=r.angle(e,t),s=r.angle(e,n);return Math.abs(s-i)}static normalizePositive(t){if(t<0){while(t<0)t+=r.PI_TIMES_2;t>=r.PI_TIMES_2&&(t=0)}else{while(t>=r.PI_TIMES_2)t-=r.PI_TIMES_2;t<0&&(t=0)}return t}static angleBetween(t,e,n){const i=r.angle(e,t),s=r.angle(e,n);return r.diff(i,s)}static diff(t,e){let n=null;return n=tMath.PI&&(n=2*Math.PI-n),n}static toRadians(t){return t*Math.PI/180}static normalize(t){while(t>Math.PI)t-=r.PI_TIMES_2;while(t<=-Math.PI)t+=r.PI_TIMES_2;return t}static angle(){if(1===arguments.length){const t=arguments[0];return Math.atan2(t.y,t.x)}if(2===arguments.length){const t=arguments[0],e=arguments[1],n=e.x-t.x,i=e.y-t.y;return Math.atan2(i,n)}}static getTurn(t,e){const n=Math.sin(e-t);return n>0?r.COUNTERCLOCKWISE:n<0?r.CLOCKWISE:r.NONE}static angleBetweenOriented(t,e,n){const i=r.angle(e,t),s=r.angle(e,n),o=s-i;return o<=-Math.PI?o+r.PI_TIMES_2:o>Math.PI?o-r.PI_TIMES_2:o}}r.PI_TIMES_2=2*Math.PI,r.PI_OVER_2=Math.PI/2,r.PI_OVER_4=Math.PI/4,r.COUNTERCLOCKWISE=i["a"].COUNTERCLOCKWISE,r.CLOCKWISE=i["a"].CLOCKWISE,r.NONE=i["a"].COLLINEAR},"6c77":function(t,e,n){"use strict";n.d(e,"d",function(){return l}),n.d(e,"a",function(){return h}),n.d(e,"b",function(){return d});var i=n("92fa"),r=n("f623"),s=n("ce2c"),o=n("83a6"),a=n("8682"),c=function(t){var e=t||{};this.geometry_=null,this.geometryFunction_=f,void 0!==e.geometry&&this.setGeometry(e.geometry),this.fill_=void 0!==e.fill?e.fill:null,this.image_=void 0!==e.image?e.image:null,this.renderer_=void 0!==e.renderer?e.renderer:null,this.stroke_=void 0!==e.stroke?e.stroke:null,this.text_=void 0!==e.text?e.text:null,this.zIndex_=e.zIndex};function l(t){var e;if("function"===typeof t)e=t;else{var n;if(Array.isArray(t))n=t;else{Object(i["a"])("function"===typeof t.getZIndex,41);var r=t;n=[r]}e=function(){return n}}return e}c.prototype.clone=function(){var t=this.getGeometry();return t&&"object"===typeof t&&(t=t.clone()),new c({geometry:t,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})},c.prototype.getRenderer=function(){return this.renderer_},c.prototype.setRenderer=function(t){this.renderer_=t},c.prototype.getGeometry=function(){return this.geometry_},c.prototype.getGeometryFunction=function(){return this.geometryFunction_},c.prototype.getFill=function(){return this.fill_},c.prototype.setFill=function(t){this.fill_=t},c.prototype.getImage=function(){return this.image_},c.prototype.setImage=function(t){this.image_=t},c.prototype.getStroke=function(){return this.stroke_},c.prototype.setStroke=function(t){this.stroke_=t},c.prototype.getText=function(){return this.text_},c.prototype.setText=function(t){this.text_=t},c.prototype.getZIndex=function(){return this.zIndex_},c.prototype.setGeometry=function(t){"function"===typeof t?this.geometryFunction_=t:"string"===typeof t?this.geometryFunction_=function(e){return e.get(t)}:t?void 0!==t&&(this.geometryFunction_=function(){return t}):this.geometryFunction_=f,this.geometry_=t},c.prototype.setZIndex=function(t){this.zIndex_=t};var u=null;function h(t,e){if(!u){var n=new o["a"]({color:"rgba(255,255,255,0.4)"}),i=new a["a"]({color:"#3399CC",width:1.25});u=[new c({image:new s["a"]({fill:n,stroke:i,radius:5}),fill:n,stroke:i})]}return u}function d(){var t={},e=[255,255,255,1],n=[0,153,255,1],i=3;return t[r["a"].POLYGON]=[new c({fill:new o["a"]({color:[255,255,255,.5]})})],t[r["a"].MULTI_POLYGON]=t[r["a"].POLYGON],t[r["a"].LINE_STRING]=[new c({stroke:new a["a"]({color:e,width:i+2})}),new c({stroke:new a["a"]({color:n,width:i})})],t[r["a"].MULTI_LINE_STRING]=t[r["a"].LINE_STRING],t[r["a"].CIRCLE]=t[r["a"].POLYGON].concat(t[r["a"].LINE_STRING]),t[r["a"].POINT]=[new c({image:new s["a"]({radius:2*i,fill:new o["a"]({color:n}),stroke:new a["a"]({color:e,width:i/2})}),zIndex:1/0})],t[r["a"].MULTI_POINT]=t[r["a"].POINT],t[r["a"].GEOMETRY_COLLECTION]=t[r["a"].POLYGON].concat(t[r["a"].LINE_STRING],t[r["a"].POINT]),t}function f(t){return t.getGeometry()}e["c"]=c},"6c7b":function(t,e,n){var i=n("5ca1");i(i.P,"Array",{fill:n("36bd")}),n("9c6c")("fill")},"6cbf":function(t,e,n){"use strict";var i=n("1300"),r=n("869f"),s=n("92fa"),o=n("5c38"),a=n("1e8d"),c=n("01d4"),l={FRACTION:"fraction",PIXELS:"pixels"},u=n("0999"),h=n("0ec0"),d=n("3c22"),f=function(t){function e(e,n,i,r,s,o){t.call(this),this.hitDetectionImage_=null,this.image_=e||new Image,null!==r&&(this.image_.crossOrigin=r),this.canvas_=o?document.createElement("canvas"):null,this.color_=o,this.imageListenerKeys_=null,this.imageState_=s,this.size_=i,this.src_=n,this.tainted_}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.isTainted_=function(){if(void 0===this.tainted_&&this.imageState_===r["a"].LOADED){this.tainted_=!1;var t=Object(u["a"])(1,1);try{t.drawImage(this.image_,0,0),t.getImageData(0,0,1,1)}catch(t){this.tainted_=!0}}return!0===this.tainted_},e.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(c["a"].CHANGE)},e.prototype.handleImageError_=function(){this.imageState_=r["a"].ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},e.prototype.handleImageLoad_=function(){this.imageState_=r["a"].LOADED,this.size_&&(this.image_.width=this.size_[0],this.image_.height=this.size_[1]),this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.replaceColor_(),this.dispatchChangeEvent_()},e.prototype.getImage=function(t){return this.canvas_?this.canvas_:this.image_},e.prototype.getImageState=function(){return this.imageState_},e.prototype.getHitDetectionImage=function(t){if(!this.hitDetectionImage_)if(this.isTainted_()){var e=this.size_[0],n=this.size_[1],i=Object(u["a"])(e,n);i.fillRect(0,0,e,n),this.hitDetectionImage_=i.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_},e.prototype.getSize=function(){return this.size_},e.prototype.getSrc=function(){return this.src_},e.prototype.load=function(){if(this.imageState_==r["a"].IDLE){this.imageState_=r["a"].LOADING,this.imageListenerKeys_=[Object(a["b"])(this.image_,c["a"].ERROR,this.handleImageError_,this),Object(a["b"])(this.image_,c["a"].LOAD,this.handleImageLoad_,this)];try{this.image_.src=this.src_}catch(t){this.handleImageError_()}}},e.prototype.replaceColor_=function(){if(this.color_&&!this.isTainted_()){this.canvas_.width=this.image_.width,this.canvas_.height=this.image_.height;var t=this.canvas_.getContext("2d");t.drawImage(this.image_,0,0);for(var e=t.getImageData(0,0,this.image_.width,this.image_.height),n=e.data,i=this.color_[0]/255,r=this.color_[1]/255,s=this.color_[2]/255,o=0,a=n.length;o0,6);var g=void 0!==n.src?r["a"].IDLE:r["a"].LOADED;this.color_=void 0!==n.color?Object(o["a"])(n.color):null,this.iconImage_=p(d,m,f,this.crossOrigin_,g,this.color_),this.offset_=void 0!==n.offset?n.offset:[0,0],this.offsetOrigin_=void 0!==n.offsetOrigin?n.offsetOrigin:_.TOP_LEFT,this.origin_=null,this.size_=void 0!==n.size?n.size:null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,crossOrigin:this.crossOrigin_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,src:this.getSrc(),offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,size:null!==this.size_?this.size_.slice():void 0,opacity:this.getOpacity(),scale:this.getScale(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView()})},e.prototype.getAnchor=function(){if(this.normalizedAnchor_)return this.normalizedAnchor_;var t=this.anchor_,e=this.getSize();if(this.anchorXUnits_==l.FRACTION||this.anchorYUnits_==l.FRACTION){if(!e)return null;t=this.anchor_.slice(),this.anchorXUnits_==l.FRACTION&&(t[0]*=e[0]),this.anchorYUnits_==l.FRACTION&&(t[1]*=e[1])}if(this.anchorOrigin_!=_.TOP_LEFT){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),this.anchorOrigin_!=_.TOP_RIGHT&&this.anchorOrigin_!=_.BOTTOM_RIGHT||(t[0]=-t[0]+e[0]),this.anchorOrigin_!=_.BOTTOM_LEFT&&this.anchorOrigin_!=_.BOTTOM_RIGHT||(t[1]=-t[1]+e[1])}return this.normalizedAnchor_=t,this.normalizedAnchor_},e.prototype.setAnchor=function(t){this.anchor_=t,this.normalizedAnchor_=null},e.prototype.getColor=function(){return this.color_},e.prototype.getImage=function(t){return this.iconImage_.getImage(t)},e.prototype.getImageSize=function(){return this.iconImage_.getSize()},e.prototype.getHitDetectionImageSize=function(){return this.getImageSize()},e.prototype.getImageState=function(){return this.iconImage_.getImageState()},e.prototype.getHitDetectionImage=function(t){return this.iconImage_.getHitDetectionImage(t)},e.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var t=this.offset_;if(this.offsetOrigin_!=_.TOP_LEFT){var e=this.getSize(),n=this.iconImage_.getSize();if(!e||!n)return null;t=t.slice(),this.offsetOrigin_!=_.TOP_RIGHT&&this.offsetOrigin_!=_.BOTTOM_RIGHT||(t[0]=n[0]-e[0]-t[0]),this.offsetOrigin_!=_.BOTTOM_LEFT&&this.offsetOrigin_!=_.BOTTOM_RIGHT||(t[1]=n[1]-e[1]-t[1])}return this.origin_=t,this.origin_},e.prototype.getSrc=function(){return this.iconImage_.getSrc()},e.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},e.prototype.listenImageChange=function(t,e){return Object(a["a"])(this.iconImage_,c["a"].CHANGE,t,e)},e.prototype.load=function(){this.iconImage_.load()},e.prototype.unlistenImageChange=function(t,e){Object(a["c"])(this.iconImage_,c["a"].CHANGE,t,e)},e}(m["a"]);e["a"]=g},"6ce3":function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"én time",hh:"%d timer",d:"én dag",dd:"%d dager",w:"én uke",ww:"%d uker",M:"én måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return e})},"6d79":function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration @@ -169,7 +176,7 @@ var e=t.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugn //! moment.js locale configuration var e=t.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10,n=1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n},week:{dow:1,doy:4}});return e})},"6f62":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("1d1d"),r=n("4c44");class s{getCoordinate(){if(1===arguments.length){arguments[0]}else if(2===arguments.length){arguments[0],arguments[1]}}getCoordinateCopy(t){}createCoordinate(){}getDimension(){}hasM(){return this.getMeasures()>0}getX(t){}hasZ(){return this.getDimension()-this.getMeasures()>2}getMeasures(){return 0}expandEnvelope(t){}copy(){}getY(t){}toCoordinateArray(){}getM(t){if(this.hasM()){const e=this.getDimension()-this.getMeasures();return this.getOrdinate(t,e)}return i["a"].NaN}setOrdinate(t,e,n){}getZ(t){return this.hasZ()?this.getOrdinate(t,2):i["a"].NaN}size(){}getOrdinate(t,e){}get interfaces_(){return[r["a"]]}}s.X=0,s.Y=1,s.Z=2,s.M=3},"6f68":function(t,e,n){"use strict";var i=n("a60d"),r=[];e["a"]={__installed:!1,__install:function(){this.__installed=!0,window.addEventListener("keyup",function(t){0!==r.length&&(27!==t.which&&27!==t.keyCode||r[r.length-1]())})},register:function(t){i["a"].is.desktop&&(this.__installed||this.__install(),r.push(t))},pop:function(){i["a"].is.desktop&&r.pop()}}},7037:function(t,e,n){var i=n("8415"),r=n("db78");function s(t){return s="function"===typeof r&&"symbol"===typeof i?function(t){return typeof t}:function(t){return t&&"function"===typeof r&&t.constructor===r&&t!==r.prototype?"symbol":typeof t},s(t)}function o(e){return"function"===typeof r&&"symbol"===s(i)?t.exports=o=function(t){return s(t)}:t.exports=o=function(t){return t&&"function"===typeof r&&t.constructor===r&&t!==r.prototype?"symbol":s(t)},o(e)}t.exports=o},7051:function(t,e,n){"use strict";var i=n("9523"),r=n.n(i),s=(n("28a5"),n("fc6c")),o=n("363b"),a=n("a60d"),c=n("1528");e["a"]={name:"QLayout",provide:function(){return{layout:this}},props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:function(t){return/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(t.toLowerCase())}}},data:function(){return{height:a["d"]?0:window.innerHeight,width:a["d"]||this.container?0:window.innerWidth,containerHeight:0,scrollbarWidth:a["d"]?0:Object(c["c"])(),header:{size:0,offset:0,space:!1},right:{size:300,offset:0,space:!1},footer:{size:0,offset:0,space:!1},left:{size:300,offset:0,space:!1},scroll:{position:0,direction:"down"}}},computed:{rows:function(){var t=this.view.toLowerCase().split(" ");return{top:t[0].split(""),middle:t[1].split(""),bottom:t[2].split("")}},targetStyle:function(){if(0!==this.scrollbarWidth)return r()({},this.$q.i18n.rtl?"left":"right","".concat(this.scrollbarWidth,"px"))},targetChildStyle:function(){var t;if(0!==this.scrollbarWidth)return t={},r()(t,this.$q.i18n.rtl?"right":"left",0),r()(t,this.$q.i18n.rtl?"left":"right","-".concat(this.scrollbarWidth,"px")),r()(t,"width","calc(100% + ".concat(this.scrollbarWidth,"px)")),t}},created:function(){this.instances={header:null,right:null,footer:null,left:null}},render:function(t){var e=t("div",{staticClass:"q-layout"},[t(s["a"],{on:{scroll:this.__onPageScroll}}),t(o["a"],{on:{resize:this.__onPageResize}}),this.$slots.default]);return this.container?t("div",{staticClass:"q-layout-container relative-position overflow-hidden"},[t(o["a"],{on:{resize:this.__onContainerResize}}),t("div",{staticClass:"absolute-full",style:this.targetStyle},[t("div",{staticClass:"overflow-auto",style:this.targetChildStyle},[e])])]):e},methods:{__animate:function(){var t=this;this.timer?clearTimeout(this.timer):document.body.classList.add("q-layout-animate"),this.timer=setTimeout(function(){document.body.classList.remove("q-layout-animate"),t.timer=null},150)},__onPageScroll:function(t){this.scroll=t,this.$emit("scroll",t)},__onPageResize:function(t){var e=t.height,n=t.width,i=!1;this.height!==e&&(i=!0,this.height=e,this.$emit("scrollHeight",e),this.__updateScrollbarWidth()),this.width!==n&&(i=!0,this.width=n),i&&this.$emit("resize",{height:e,width:n})},__onContainerResize:function(t){var e=t.height;this.containerHeight!==e&&(this.containerHeight=e,this.__updateScrollbarWidth())},__updateScrollbarWidth:function(){if(this.container){var t=this.height>this.containerHeight?Object(c["c"])():0;this.scrollbarWidth!==t&&(this.scrollbarWidth=t)}}}}},"70d5":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("c6a3"),r=n("f761"),s=n("c8da"),o=n("062e");class a extends s["a"]{constructor(t){super(),this.array=[],t instanceof i["a"]&&this.addAll(t)}get interfaces_(){return[s["a"],i["a"]]}ensureCapacity(){}add(t){return 1===arguments.length?this.array.push(t):this.array.splice(arguments[0],0,arguments[1]),!0}clear(){this.array=[]}addAll(t){for(const e of t)this.array.push(e)}set(t,e){const n=this.array[t];return this.array[t]=e,n}iterator(){return new c(this)}get(t){if(t<0||t>=this.size())throw new r["a"];return this.array[t]}isEmpty(){return 0===this.array.length}sort(t){t?this.array.sort((e,n)=>t.compare(e,n)):this.array.sort()}size(){return this.array.length}toArray(){return this.array.slice()}remove(t){for(let e=0,n=this.array.length;e=20?"ste":"de")},week:{dow:1,doy:4}});return i})},"717e":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("7b52"),r=n("fd89"),s=n("2ac1"),o=n("4c44"),a=n("4a7b");class c{constructor(){c.constructor_.apply(this,arguments)}static constructor_(){if(this._matrix=null,0===arguments.length)this._matrix=Array(3).fill().map(()=>Array(3)),this.setAll(s["a"].FALSE);else if(1===arguments.length)if("string"===typeof arguments[0]){const t=arguments[0];c.constructor_.call(this),this.set(t)}else if(arguments[0]instanceof c){const t=arguments[0];c.constructor_.call(this),this._matrix[i["a"].INTERIOR][i["a"].INTERIOR]=t._matrix[i["a"].INTERIOR][i["a"].INTERIOR],this._matrix[i["a"].INTERIOR][i["a"].BOUNDARY]=t._matrix[i["a"].INTERIOR][i["a"].BOUNDARY],this._matrix[i["a"].INTERIOR][i["a"].EXTERIOR]=t._matrix[i["a"].INTERIOR][i["a"].EXTERIOR],this._matrix[i["a"].BOUNDARY][i["a"].INTERIOR]=t._matrix[i["a"].BOUNDARY][i["a"].INTERIOR],this._matrix[i["a"].BOUNDARY][i["a"].BOUNDARY]=t._matrix[i["a"].BOUNDARY][i["a"].BOUNDARY],this._matrix[i["a"].BOUNDARY][i["a"].EXTERIOR]=t._matrix[i["a"].BOUNDARY][i["a"].EXTERIOR],this._matrix[i["a"].EXTERIOR][i["a"].INTERIOR]=t._matrix[i["a"].EXTERIOR][i["a"].INTERIOR],this._matrix[i["a"].EXTERIOR][i["a"].BOUNDARY]=t._matrix[i["a"].EXTERIOR][i["a"].BOUNDARY],this._matrix[i["a"].EXTERIOR][i["a"].EXTERIOR]=t._matrix[i["a"].EXTERIOR][i["a"].EXTERIOR]}}static isTrue(t){return t>=0||t===s["a"].TRUE}static matches(){if(Number.isInteger(arguments[0])&&"string"===typeof arguments[1]){const t=arguments[0],e=arguments[1];return e===s["a"].SYM_DONTCARE||(e===s["a"].SYM_TRUE&&(t>=0||t===s["a"].TRUE)||(e===s["a"].SYM_FALSE&&t===s["a"].FALSE||(e===s["a"].SYM_P&&t===s["a"].P||(e===s["a"].SYM_L&&t===s["a"].L||e===s["a"].SYM_A&&t===s["a"].A))))}if("string"===typeof arguments[0]&&"string"===typeof arguments[1]){const t=arguments[0],e=arguments[1],n=new c(t);return n.matches(e)}}isIntersects(){return!this.isDisjoint()}set(){if(1===arguments.length){const t=arguments[0];for(let e=0;ee?this.isTouches(e,t):(t===s["a"].A&&e===s["a"].A||t===s["a"].L&&e===s["a"].L||t===s["a"].L&&e===s["a"].A||t===s["a"].P&&e===s["a"].A||t===s["a"].P&&e===s["a"].L)&&(this._matrix[i["a"].INTERIOR][i["a"].INTERIOR]===s["a"].FALSE&&(c.isTrue(this._matrix[i["a"].INTERIOR][i["a"].BOUNDARY])||c.isTrue(this._matrix[i["a"].BOUNDARY][i["a"].INTERIOR])||c.isTrue(this._matrix[i["a"].BOUNDARY][i["a"].BOUNDARY])))}isOverlaps(t,e){return t===s["a"].P&&e===s["a"].P||t===s["a"].A&&e===s["a"].A?c.isTrue(this._matrix[i["a"].INTERIOR][i["a"].INTERIOR])&&c.isTrue(this._matrix[i["a"].INTERIOR][i["a"].EXTERIOR])&&c.isTrue(this._matrix[i["a"].EXTERIOR][i["a"].INTERIOR]):t===s["a"].L&&e===s["a"].L&&(1===this._matrix[i["a"].INTERIOR][i["a"].INTERIOR]&&c.isTrue(this._matrix[i["a"].INTERIOR][i["a"].EXTERIOR])&&c.isTrue(this._matrix[i["a"].EXTERIOR][i["a"].INTERIOR]))}isEquals(t,e){return t===e&&(c.isTrue(this._matrix[i["a"].INTERIOR][i["a"].INTERIOR])&&this._matrix[i["a"].INTERIOR][i["a"].EXTERIOR]===s["a"].FALSE&&this._matrix[i["a"].BOUNDARY][i["a"].EXTERIOR]===s["a"].FALSE&&this._matrix[i["a"].EXTERIOR][i["a"].INTERIOR]===s["a"].FALSE&&this._matrix[i["a"].EXTERIOR][i["a"].BOUNDARY]===s["a"].FALSE)}matches(t){if(9!==t.length)throw new r["a"]("Should be length 9: "+t);for(let e=0;e<3;e++)for(let n=0;n<3;n++)if(!c.matches(this._matrix[e][n],t.charAt(3*e+n)))return!1;return!0}add(t){for(let e=0;e<3;e++)for(let n=0;n<3;n++)this.setAtLeast(e,n,t.get(e,n))}isDisjoint(){return this._matrix[i["a"].INTERIOR][i["a"].INTERIOR]===s["a"].FALSE&&this._matrix[i["a"].INTERIOR][i["a"].BOUNDARY]===s["a"].FALSE&&this._matrix[i["a"].BOUNDARY][i["a"].INTERIOR]===s["a"].FALSE&&this._matrix[i["a"].BOUNDARY][i["a"].BOUNDARY]===s["a"].FALSE}isCrosses(t,e){return t===s["a"].P&&e===s["a"].L||t===s["a"].P&&e===s["a"].A||t===s["a"].L&&e===s["a"].A?c.isTrue(this._matrix[i["a"].INTERIOR][i["a"].INTERIOR])&&c.isTrue(this._matrix[i["a"].INTERIOR][i["a"].EXTERIOR]):t===s["a"].L&&e===s["a"].P||t===s["a"].A&&e===s["a"].P||t===s["a"].A&&e===s["a"].L?c.isTrue(this._matrix[i["a"].INTERIOR][i["a"].INTERIOR])&&c.isTrue(this._matrix[i["a"].EXTERIOR][i["a"].INTERIOR]):t===s["a"].L&&e===s["a"].L&&0===this._matrix[i["a"].INTERIOR][i["a"].INTERIOR]}isCovers(){const t=c.isTrue(this._matrix[i["a"].INTERIOR][i["a"].INTERIOR])||c.isTrue(this._matrix[i["a"].INTERIOR][i["a"].BOUNDARY])||c.isTrue(this._matrix[i["a"].BOUNDARY][i["a"].INTERIOR])||c.isTrue(this._matrix[i["a"].BOUNDARY][i["a"].BOUNDARY]);return t&&this._matrix[i["a"].EXTERIOR][i["a"].INTERIOR]===s["a"].FALSE&&this._matrix[i["a"].EXTERIOR][i["a"].BOUNDARY]===s["a"].FALSE}isCoveredBy(){const t=c.isTrue(this._matrix[i["a"].INTERIOR][i["a"].INTERIOR])||c.isTrue(this._matrix[i["a"].INTERIOR][i["a"].BOUNDARY])||c.isTrue(this._matrix[i["a"].BOUNDARY][i["a"].INTERIOR])||c.isTrue(this._matrix[i["a"].BOUNDARY][i["a"].BOUNDARY]);return t&&this._matrix[i["a"].INTERIOR][i["a"].EXTERIOR]===s["a"].FALSE&&this._matrix[i["a"].BOUNDARY][i["a"].EXTERIOR]===s["a"].FALSE}setAtLeast(){if(1===arguments.length){const t=arguments[0];for(let e=0;e=0&&e>=0&&this.setAtLeast(t,e,n)}toString(){const t=new a["a"]("123456789");for(let e=0;e<3;e++)for(let n=0;n<3;n++)t.setCharAt(3*e+n,s["a"].toDimensionSymbol(this._matrix[e][n]));return t.toString()}setAll(t){for(let e=0;e<3;e++)for(let n=0;n<3;n++)this._matrix[e][n]=t}get(t,e){return this._matrix[t][e]}transpose(){let t=this._matrix[1][0];return this._matrix[1][0]=this._matrix[0][1],this._matrix[0][1]=t,t=this._matrix[2][0],this._matrix[2][0]=this._matrix[0][2],this._matrix[0][2]=t,t=this._matrix[2][1],this._matrix[2][1]=this._matrix[1][2],this._matrix[1][2]=t,this}get interfaces_(){return[o["a"]]}}},"71c1":function(t,e,n){var i=n("3a38"),r=n("25eb");t.exports=function(t){return function(e,n){var s,o,a=String(r(e)),c=i(n),l=a.length;return c<0||c>=l?t?"":void 0:(s=a.charCodeAt(c),s<55296||s>56319||c+1===l||(o=a.charCodeAt(c+1))<56320||o>57343?t?a.charAt(c):s:t?a.slice(c,c+2):o-56320+(s-55296<<10)+65536)}}},"71c9":function(t,e,n){"use strict";var i=n("00ce"),r=i("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(t){r=!1}t.exports=r},7238:function(t,e,n){"use strict";var i=n("cef7"),r=function(t){function e(e,n,i){t.call(this,e),this.map=n,this.frameState=void 0!==i?i:null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(i["a"]);e["a"]=r},"72c5":function(t,e,n){},7333:function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; +var e="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),i=t.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(t,i){return t?/-MMM-/.test(i)?n[t.month()]:e[t.month()]:e},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}});return i})},"717e":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("7b52"),r=n("fd89"),s=n("2ac1"),o=n("4c44"),a=n("4a7b");class c{constructor(){c.constructor_.apply(this,arguments)}static constructor_(){if(this._matrix=null,0===arguments.length)this._matrix=Array(3).fill().map(()=>Array(3)),this.setAll(s["a"].FALSE);else if(1===arguments.length)if("string"===typeof arguments[0]){const t=arguments[0];c.constructor_.call(this),this.set(t)}else if(arguments[0]instanceof c){const t=arguments[0];c.constructor_.call(this),this._matrix[i["a"].INTERIOR][i["a"].INTERIOR]=t._matrix[i["a"].INTERIOR][i["a"].INTERIOR],this._matrix[i["a"].INTERIOR][i["a"].BOUNDARY]=t._matrix[i["a"].INTERIOR][i["a"].BOUNDARY],this._matrix[i["a"].INTERIOR][i["a"].EXTERIOR]=t._matrix[i["a"].INTERIOR][i["a"].EXTERIOR],this._matrix[i["a"].BOUNDARY][i["a"].INTERIOR]=t._matrix[i["a"].BOUNDARY][i["a"].INTERIOR],this._matrix[i["a"].BOUNDARY][i["a"].BOUNDARY]=t._matrix[i["a"].BOUNDARY][i["a"].BOUNDARY],this._matrix[i["a"].BOUNDARY][i["a"].EXTERIOR]=t._matrix[i["a"].BOUNDARY][i["a"].EXTERIOR],this._matrix[i["a"].EXTERIOR][i["a"].INTERIOR]=t._matrix[i["a"].EXTERIOR][i["a"].INTERIOR],this._matrix[i["a"].EXTERIOR][i["a"].BOUNDARY]=t._matrix[i["a"].EXTERIOR][i["a"].BOUNDARY],this._matrix[i["a"].EXTERIOR][i["a"].EXTERIOR]=t._matrix[i["a"].EXTERIOR][i["a"].EXTERIOR]}}static isTrue(t){return t>=0||t===s["a"].TRUE}static matches(){if(Number.isInteger(arguments[0])&&"string"===typeof arguments[1]){const t=arguments[0],e=arguments[1];return e===s["a"].SYM_DONTCARE||(e===s["a"].SYM_TRUE&&(t>=0||t===s["a"].TRUE)||(e===s["a"].SYM_FALSE&&t===s["a"].FALSE||(e===s["a"].SYM_P&&t===s["a"].P||(e===s["a"].SYM_L&&t===s["a"].L||e===s["a"].SYM_A&&t===s["a"].A))))}if("string"===typeof arguments[0]&&"string"===typeof arguments[1]){const t=arguments[0],e=arguments[1],n=new c(t);return n.matches(e)}}isIntersects(){return!this.isDisjoint()}set(){if(1===arguments.length){const t=arguments[0];for(let e=0;ee?this.isTouches(e,t):(t===s["a"].A&&e===s["a"].A||t===s["a"].L&&e===s["a"].L||t===s["a"].L&&e===s["a"].A||t===s["a"].P&&e===s["a"].A||t===s["a"].P&&e===s["a"].L)&&(this._matrix[i["a"].INTERIOR][i["a"].INTERIOR]===s["a"].FALSE&&(c.isTrue(this._matrix[i["a"].INTERIOR][i["a"].BOUNDARY])||c.isTrue(this._matrix[i["a"].BOUNDARY][i["a"].INTERIOR])||c.isTrue(this._matrix[i["a"].BOUNDARY][i["a"].BOUNDARY])))}isOverlaps(t,e){return t===s["a"].P&&e===s["a"].P||t===s["a"].A&&e===s["a"].A?c.isTrue(this._matrix[i["a"].INTERIOR][i["a"].INTERIOR])&&c.isTrue(this._matrix[i["a"].INTERIOR][i["a"].EXTERIOR])&&c.isTrue(this._matrix[i["a"].EXTERIOR][i["a"].INTERIOR]):t===s["a"].L&&e===s["a"].L&&(1===this._matrix[i["a"].INTERIOR][i["a"].INTERIOR]&&c.isTrue(this._matrix[i["a"].INTERIOR][i["a"].EXTERIOR])&&c.isTrue(this._matrix[i["a"].EXTERIOR][i["a"].INTERIOR]))}isEquals(t,e){return t===e&&(c.isTrue(this._matrix[i["a"].INTERIOR][i["a"].INTERIOR])&&this._matrix[i["a"].INTERIOR][i["a"].EXTERIOR]===s["a"].FALSE&&this._matrix[i["a"].BOUNDARY][i["a"].EXTERIOR]===s["a"].FALSE&&this._matrix[i["a"].EXTERIOR][i["a"].INTERIOR]===s["a"].FALSE&&this._matrix[i["a"].EXTERIOR][i["a"].BOUNDARY]===s["a"].FALSE)}matches(t){if(9!==t.length)throw new r["a"]("Should be length 9: "+t);for(let e=0;e<3;e++)for(let n=0;n<3;n++)if(!c.matches(this._matrix[e][n],t.charAt(3*e+n)))return!1;return!0}add(t){for(let e=0;e<3;e++)for(let n=0;n<3;n++)this.setAtLeast(e,n,t.get(e,n))}isDisjoint(){return this._matrix[i["a"].INTERIOR][i["a"].INTERIOR]===s["a"].FALSE&&this._matrix[i["a"].INTERIOR][i["a"].BOUNDARY]===s["a"].FALSE&&this._matrix[i["a"].BOUNDARY][i["a"].INTERIOR]===s["a"].FALSE&&this._matrix[i["a"].BOUNDARY][i["a"].BOUNDARY]===s["a"].FALSE}isCrosses(t,e){return t===s["a"].P&&e===s["a"].L||t===s["a"].P&&e===s["a"].A||t===s["a"].L&&e===s["a"].A?c.isTrue(this._matrix[i["a"].INTERIOR][i["a"].INTERIOR])&&c.isTrue(this._matrix[i["a"].INTERIOR][i["a"].EXTERIOR]):t===s["a"].L&&e===s["a"].P||t===s["a"].A&&e===s["a"].P||t===s["a"].A&&e===s["a"].L?c.isTrue(this._matrix[i["a"].INTERIOR][i["a"].INTERIOR])&&c.isTrue(this._matrix[i["a"].EXTERIOR][i["a"].INTERIOR]):t===s["a"].L&&e===s["a"].L&&0===this._matrix[i["a"].INTERIOR][i["a"].INTERIOR]}isCovers(){const t=c.isTrue(this._matrix[i["a"].INTERIOR][i["a"].INTERIOR])||c.isTrue(this._matrix[i["a"].INTERIOR][i["a"].BOUNDARY])||c.isTrue(this._matrix[i["a"].BOUNDARY][i["a"].INTERIOR])||c.isTrue(this._matrix[i["a"].BOUNDARY][i["a"].BOUNDARY]);return t&&this._matrix[i["a"].EXTERIOR][i["a"].INTERIOR]===s["a"].FALSE&&this._matrix[i["a"].EXTERIOR][i["a"].BOUNDARY]===s["a"].FALSE}isCoveredBy(){const t=c.isTrue(this._matrix[i["a"].INTERIOR][i["a"].INTERIOR])||c.isTrue(this._matrix[i["a"].INTERIOR][i["a"].BOUNDARY])||c.isTrue(this._matrix[i["a"].BOUNDARY][i["a"].INTERIOR])||c.isTrue(this._matrix[i["a"].BOUNDARY][i["a"].BOUNDARY]);return t&&this._matrix[i["a"].INTERIOR][i["a"].EXTERIOR]===s["a"].FALSE&&this._matrix[i["a"].BOUNDARY][i["a"].EXTERIOR]===s["a"].FALSE}setAtLeast(){if(1===arguments.length){const t=arguments[0];for(let e=0;e=0&&e>=0&&this.setAtLeast(t,e,n)}toString(){const t=new a["a"]("123456789");for(let e=0;e<3;e++)for(let n=0;n<3;n++)t.setCharAt(3*e+n,s["a"].toDimensionSymbol(this._matrix[e][n]));return t.toString()}setAll(t){for(let e=0;e<3;e++)for(let n=0;n<3;n++)this._matrix[e][n]=t}get(t,e){return this._matrix[t][e]}transpose(){let t=this._matrix[1][0];return this._matrix[1][0]=this._matrix[0][1],this._matrix[0][1]=t,t=this._matrix[2][0],this._matrix[2][0]=this._matrix[0][2],this._matrix[0][2]=t,t=this._matrix[2][1],this._matrix[2][1]=this._matrix[1][2],this._matrix[1][2]=t,this}get interfaces_(){return[o["a"]]}}},"71c1":function(t,e,n){var i=n("3a38"),r=n("25eb");t.exports=function(t){return function(e,n){var s,o,a=String(r(e)),c=i(n),l=a.length;return c<0||c>=l?t?"":void 0:(s=a.charCodeAt(c),s<55296||s>56319||c+1===l||(o=a.charCodeAt(c+1))<56320||o>57343?t?a.charAt(c):s:t?a.slice(c,c+2):o-56320+(s-55296<<10)+65536)}}},"71c9":function(t,e,n){"use strict";var i=Object.defineProperty||!1;if(i)try{i({},"a",{value:1})}catch(t){i=!1}t.exports=i},7238:function(t,e,n){"use strict";var i=n("cef7"),r=function(t){function e(e,n,i){t.call(this,e),this.map=n,this.frameState=void 0!==i?i:null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(i["a"]);e["a"]=r},"72c5":function(t,e,n){},"72e5":function(t,e,n){"use strict";var i=n("0f7c"),r=n("e16f"),s=n("3b6a");t.exports=function(){return s(i,r,arguments)}},7333:function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10,n=1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n}});return e})},73334:function(t,e,n){"use strict";var i=n("9e1e"),r=n("0d58"),s=n("2621"),o=n("52a7"),a=n("4bf8"),c=n("626a"),l=Object.assign;t.exports=!l||n("79e5")(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=l({},t)[n]||Object.keys(l({},e)).join("")!=i})?function(t,e){var n=a(t),l=arguments.length,u=1,h=s.f,d=o.f;while(l>u){var f,p=c(arguments[u++]),_=h?r(p).concat(h(p)):r(p),m=_.length,g=0;while(m>g)f=_[g++],i&&!d.call(p,f)||(n[f]=p[f])}return n}:l},"73aa":function(t,e,n){"use strict";var i=n("3fb5"),r=n("d8d6");function s(t,e,n){r.call(this,t,e,n,{noCredentials:!0})}i(s,r),s.enabled=r.enabled,t.exports=s},"73f5":function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r}),n.d(e,"c",function(){return s});n("6b54");function i(t){return"[object Date]"===Object.prototype.toString.call(t)}function r(t){return"number"===typeof t&&isFinite(t)}function s(t){return"string"===typeof t}},"741d":function(t,e,n){"use strict";n("f751"),n("28a5"),n("a481");var i=n("a60d");function r(t){return encodeURIComponent(t)}function s(t){return decodeURIComponent(t)}function o(t){return r(t===Object(t)?JSON.stringify(t):""+t)}function a(t){if(""===t)return t;0===t.indexOf('"')&&(t=t.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")),t=s(t.replace(/\+/g," "));try{t=JSON.parse(t)}catch(t){}return t}function c(t,e){var n,i,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(void 0!==s.expires){if(i=parseInt(s.expires,10),isNaN(i))return void console.error("Quasar cookie: expires needs to be a number");n=new Date,n.setMilliseconds(n.getMilliseconds()+864e5*i)}var c="".concat(r(t),"=").concat(o(e)),u=[c,void 0!==n?"; Expires="+n.toUTCString():"",s.path?"; Path="+s.path:"",s.domain?"; Domain="+s.domain:"",s.httpOnly?"; HttpOnly":"",s.secure?"; Secure":""].join("");if(a){a.req.qCookies?a.req.qCookies.push(u):a.req.qCookies=[u],a.res.setHeader("Set-Cookie",a.req.qCookies);var h=a.req.headers.cookie||"";if(void 0!==n&&i<0){var d=l(t,a);void 0!==d&&(h=h.replace("".concat(t,"=").concat(d,"; "),"").replace("; ".concat(t,"=").concat(d),"").replace("".concat(t,"=").concat(d),""))}else h=h?"".concat(c,"; ").concat(h):u;a.req.headers.cookie=h}else document.cookie=u}function l(t,e){for(var n,i,r,o=t?void 0:{},c=e?e.req.headers:document,l=c.cookie?c.cookie.split("; "):[],u=0,h=l.length;u0&&void 0!==arguments[0]?arguments[0]:{},e=t.ssr;return{get:function(t){return l(t,e)},set:function(t,n,i){return c(t,n,i,e)},has:function(t){return h(t,e)},remove:function(t,n){return u(t,n,e)},all:function(){return l(null,e)}}}e["a"]={parseSSR:function(t){return t?d({ssr:t}):this},install:function(t){var e=t.$q,n=t.queues;i["c"]?n.server.push(function(t,e){t.cookies=d(e)}):(Object.assign(this,d()),e.cookies=this)}}},"747a":function(t,e,n){},"74dc":function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration @@ -198,7 +205,7 @@ var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n * vue-router v3.0.1 * (c) 2017 Evan You * @license MIT - */function i(t,e){0}function r(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}var s={name:"router-view",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,i=e.children,r=e.parent,s=e.data;s.routerView=!0;var c=r.$createElement,l=n.name,u=r.$route,h=r._routerViewCache||(r._routerViewCache={}),d=0,f=!1;while(r&&r._routerRoot!==r)r.$vnode&&r.$vnode.data.routerView&&d++,r._inactive&&(f=!0),r=r.$parent;if(s.routerViewDepth=d,f)return c(h[l],s,i);var p=u.matched[d];if(!p)return h[l]=null,c();var _=h[l]=p.components[l];s.registerRouteInstance=function(t,e){var n=p.instances[l];(e&&n!==t||!e&&n===t)&&(p.instances[l]=e)},(s.hook||(s.hook={})).prepatch=function(t,e){p.instances[l]=e.componentInstance};var m=s.props=o(u,p.props&&p.props[l]);if(m){m=s.props=a({},m);var g=s.attrs=s.attrs||{};for(var y in m)_.props&&y in _.props||(g[y]=m[y],delete m[y])}return c(_,s,i)}};function o(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}function a(t,e){for(var n in e)t[n]=e[n];return t}var c=/[!'()*]/g,l=function(t){return"%"+t.charCodeAt(0).toString(16)},u=/%2C/g,h=function(t){return encodeURIComponent(t).replace(c,l).replace(u,",")},d=decodeURIComponent;function f(t,e,n){void 0===e&&(e={});var i,r=n||p;try{i=r(t||"")}catch(t){i={}}for(var s in e)i[s]=e[s];return i}function p(t){var e={};return t=t.trim().replace(/^(\?|#|&)/,""),t?(t.split("&").forEach(function(t){var n=t.replace(/\+/g," ").split("="),i=d(n.shift()),r=n.length>0?d(n.join("=")):null;void 0===e[i]?e[i]=r:Array.isArray(e[i])?e[i].push(r):e[i]=[e[i],r]}),e):e}function _(t){var e=t?Object.keys(t).map(function(e){var n=t[e];if(void 0===n)return"";if(null===n)return h(e);if(Array.isArray(n)){var i=[];return n.forEach(function(t){void 0!==t&&(null===t?i.push(h(e)):i.push(h(e)+"="+h(t)))}),i.join("&")}return h(e)+"="+h(n)}).filter(function(t){return t.length>0}).join("&"):null;return e?"?"+e:""}var m=/\/?$/;function g(t,e,n,i){var r=i&&i.options.stringifyQuery,s=e.query||{};try{s=y(s)}catch(t){}var o={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:s,params:e.params||{},fullPath:M(e,r),matched:t?b(t):[]};return n&&(o.redirectedFrom=M(n,r)),Object.freeze(o)}function y(t){if(Array.isArray(t))return t.map(y);if(t&&"object"===typeof t){var e={};for(var n in t)e[n]=y(t[n]);return e}return t}var v=g(null,{path:"/"});function b(t){var e=[];while(t)e.unshift(t),t=t.parent;return e}function M(t,e){var n=t.path,i=t.query;void 0===i&&(i={});var r=t.hash;void 0===r&&(r="");var s=e||_;return(n||"/")+s(i)+r}function w(t,e){return e===v?t===e:!!e&&(t.path&&e.path?t.path.replace(m,"")===e.path.replace(m,"")&&t.hash===e.hash&&x(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&x(t.query,e.query)&&x(t.params,e.params)))}function x(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t),i=Object.keys(e);return n.length===i.length&&n.every(function(n){var i=t[n],r=e[n];return"object"===typeof i&&"object"===typeof r?x(i,r):String(i)===String(r)})}function L(t,e){return 0===t.path.replace(m,"/").indexOf(e.path.replace(m,"/"))&&(!e.hash||t.hash===e.hash)&&E(t.query,e.query)}function E(t,e){for(var n in e)if(!(n in t))return!1;return!0}var T,S=[String,Object],O=[String,Array],k={name:"router-link",props:{to:{type:S,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:O,default:"click"}},render:function(t){var e=this,n=this.$router,i=this.$route,r=n.resolve(this.to,i,this.append),s=r.location,o=r.route,a=r.href,c={},l=n.options.linkActiveClass,u=n.options.linkExactActiveClass,h=null==l?"router-link-active":l,d=null==u?"router-link-exact-active":u,f=null==this.activeClass?h:this.activeClass,p=null==this.exactActiveClass?d:this.exactActiveClass,_=s.path?g(null,s,null,n):o;c[p]=w(i,_),c[f]=this.exact?c[p]:L(i,_);var m=function(t){C(t)&&(e.replace?n.replace(s):n.push(s))},y={click:C};Array.isArray(this.event)?this.event.forEach(function(t){y[t]=m}):y[this.event]=m;var v={class:c};if("a"===this.tag)v.on=y,v.attrs={href:a};else{var b=I(this.$slots.default);if(b){b.isStatic=!1;var M=T.util.extend,x=b.data=M({},b.data);x.on=y;var E=b.data.attrs=M({},b.data.attrs);E.href=a}else v.on=y}return t(this.tag,v,this.$slots.default)}};function C(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&(void 0===t.button||0===t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function I(t){if(t)for(var e,n=0;n=0&&(e=t.slice(i),t=t.slice(0,i));var r=t.indexOf("?");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{path:t,query:n,hash:e}}function Y(t){return t.replace(/\/\//g,"/")}var P=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},j=it,F=B,H=U,q=V,G=nt,z=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function B(t,e){var n,i=[],r=0,s=0,o="",a=e&&e.delimiter||"/";while(null!=(n=z.exec(t))){var c=n[0],l=n[1],u=n.index;if(o+=t.slice(s,u),s=u+c.length,l)o+=l[1];else{var h=t[s],d=n[2],f=n[3],p=n[4],_=n[5],m=n[6],g=n[7];o&&(i.push(o),o="");var y=null!=d&&null!=h&&h!==d,v="+"===m||"*"===m,b="?"===m||"*"===m,M=n[2]||a,w=p||_;i.push({name:f||r++,prefix:d||"",delimiter:M,optional:b,repeat:v,partial:y,asterisk:!!g,pattern:w?K(w):g?".*":"[^"+X(M)+"]+?"})}}return s-1&&(a.params[d]=n.params[d]);if(l)return a.path=st(l.path,a.params,'named route "'+c+'"'),u(l,a,o)}else if(a.path){a.params={};for(var f=0;f=t.length?n():t[r]?e(t[r],function(){i(r+1)}):i(r+1)};i(0)}function Nt(t){return function(e,n,i){var s=!1,o=0,a=null;Yt(t,function(t,e,n,c){if("function"===typeof t&&void 0===t.cid){s=!0,o++;var l,u=Ht(function(e){Ft(e)&&(e=e.default),t.resolved="function"===typeof e?e:T.extend(e),n.components[c]=e,o--,o<=0&&i()}),h=Ht(function(t){var e="Failed to resolve async component "+c+": "+t;a||(a=r(t)?t:new Error(e),i(a))});try{l=t(u,h)}catch(t){h(t)}if(l)if("function"===typeof l.then)l.then(u,h);else{var d=l.component;d&&"function"===typeof d.then&&d.then(u,h)}}}),s||i()}}function Yt(t,e){return Pt(t.map(function(t){return Object.keys(t.components).map(function(n){return e(t.components[n],t.instances[n],t,n)})}))}function Pt(t){return Array.prototype.concat.apply([],t)}var jt="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function Ft(t){return t.__esModule||jt&&"Module"===t[Symbol.toStringTag]}function Ht(t){var e=!1;return function(){var n=[],i=arguments.length;while(i--)n[i]=arguments[i];if(!e)return e=!0,t.apply(this,n)}}var qt=function(t,e){this.router=t,this.base=Gt(e),this.current=v,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function Gt(t){if(!t)if(R){var e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^https?:\/\/[^\/]+/,"")}else t="/";return"/"!==t.charAt(0)&&(t="/"+t),t.replace(/\/$/,"")}function zt(t,e){var n,i=Math.max(t.length,e.length);for(n=0;n=0?e.slice(0,n):e;return i+"#"+t}function se(t){Tt?Dt(re(t)):window.location.hash=t}function oe(t){Tt?Rt(re(t)):window.location.replace(re(t))}var ae=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var i=this;this.transitionTo(t,function(t){i.stack=i.stack.slice(0,i.index+1).concat(t),i.index++,e&&e(t)},n)},e.prototype.replace=function(t,e,n){var i=this;this.transitionTo(t,function(t){i.stack=i.stack.slice(0,i.index).concat(t),e&&e(t)},n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var i=this.stack[n];this.confirmTransition(i,function(){e.index=n,e.updateRoute(i)})}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(qt),ce=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=dt(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!Tt&&!1!==t.fallback,this.fallback&&(e="hash"),R||(e="abstract"),this.mode=e,e){case"history":this.history=new Jt(this,t.base);break;case"hash":this.history=new te(this,t.base,this.fallback);break;case"abstract":this.history=new ae(this,t.base);break;default:0}},le={currentRoute:{configurable:!0}};function ue(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function he(t,e,n){var i="hash"===n?"#"+e:e;return t?Y(t+"/"+i):i}ce.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},le.currentRoute.get=function(){return this.history&&this.history.current},ce.prototype.init=function(t){var e=this;if(this.apps.push(t),!this.app){this.app=t;var n=this.history;if(n instanceof Jt)n.transitionTo(n.getCurrentLocation());else if(n instanceof te){var i=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),i,i)}n.listen(function(t){e.apps.forEach(function(e){e._route=t})})}},ce.prototype.beforeEach=function(t){return ue(this.beforeHooks,t)},ce.prototype.beforeResolve=function(t){return ue(this.resolveHooks,t)},ce.prototype.afterEach=function(t){return ue(this.afterHooks,t)},ce.prototype.onReady=function(t,e){this.history.onReady(t,e)},ce.prototype.onError=function(t){this.history.onError(t)},ce.prototype.push=function(t,e,n){this.history.push(t,e,n)},ce.prototype.replace=function(t,e,n){this.history.replace(t,e,n)},ce.prototype.go=function(t){this.history.go(t)},ce.prototype.back=function(){this.go(-1)},ce.prototype.forward=function(){this.go(1)},ce.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map(function(t){return Object.keys(t.components).map(function(e){return t.components[e]})})):[]},ce.prototype.resolve=function(t,e,n){var i=ut(t,e||this.history.current,n,this),r=this.match(i,e),s=r.redirectedFrom||r.fullPath,o=this.history.base,a=he(o,s,this.mode);return{location:i,route:r,href:a,normalizedTo:i,resolved:r}},ce.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==v&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(ce.prototype,le),ce.install=D,ce.version="3.0.1",R&&window.Vue&&window.Vue.use(ce),e["a"]=ce},"8cc5":function(t,e,n){"use strict";n.d(e,"c",function(){return r}),n.d(e,"d",function(){return s}),n.d(e,"a",function(){return o}),n.d(e,"b",function(){return a});var i=n("7fc9");function r(t,e){return void 0!==t?0:void 0}function s(t,e){return void 0!==t?t+e:void 0}function o(t){var e=2*Math.PI/t;return function(t,n){return void 0!==t?(t=Math.floor((t+n)/e+.5)*e,t):void 0}}function a(t){var e=t||Object(i["i"])(5);return function(t,n){return void 0!==t?Math.abs(t+n)<=e?0:t+n:void 0}}},"8d47":function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; + */function i(t,e){0}function r(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}var s={name:"router-view",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,i=e.children,r=e.parent,s=e.data;s.routerView=!0;var c=r.$createElement,l=n.name,u=r.$route,h=r._routerViewCache||(r._routerViewCache={}),d=0,f=!1;while(r&&r._routerRoot!==r)r.$vnode&&r.$vnode.data.routerView&&d++,r._inactive&&(f=!0),r=r.$parent;if(s.routerViewDepth=d,f)return c(h[l],s,i);var p=u.matched[d];if(!p)return h[l]=null,c();var _=h[l]=p.components[l];s.registerRouteInstance=function(t,e){var n=p.instances[l];(e&&n!==t||!e&&n===t)&&(p.instances[l]=e)},(s.hook||(s.hook={})).prepatch=function(t,e){p.instances[l]=e.componentInstance};var m=s.props=o(u,p.props&&p.props[l]);if(m){m=s.props=a({},m);var g=s.attrs=s.attrs||{};for(var y in m)_.props&&y in _.props||(g[y]=m[y],delete m[y])}return c(_,s,i)}};function o(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}function a(t,e){for(var n in e)t[n]=e[n];return t}var c=/[!'()*]/g,l=function(t){return"%"+t.charCodeAt(0).toString(16)},u=/%2C/g,h=function(t){return encodeURIComponent(t).replace(c,l).replace(u,",")},d=decodeURIComponent;function f(t,e,n){void 0===e&&(e={});var i,r=n||p;try{i=r(t||"")}catch(t){i={}}for(var s in e)i[s]=e[s];return i}function p(t){var e={};return t=t.trim().replace(/^(\?|#|&)/,""),t?(t.split("&").forEach(function(t){var n=t.replace(/\+/g," ").split("="),i=d(n.shift()),r=n.length>0?d(n.join("=")):null;void 0===e[i]?e[i]=r:Array.isArray(e[i])?e[i].push(r):e[i]=[e[i],r]}),e):e}function _(t){var e=t?Object.keys(t).map(function(e){var n=t[e];if(void 0===n)return"";if(null===n)return h(e);if(Array.isArray(n)){var i=[];return n.forEach(function(t){void 0!==t&&(null===t?i.push(h(e)):i.push(h(e)+"="+h(t)))}),i.join("&")}return h(e)+"="+h(n)}).filter(function(t){return t.length>0}).join("&"):null;return e?"?"+e:""}var m=/\/?$/;function g(t,e,n,i){var r=i&&i.options.stringifyQuery,s=e.query||{};try{s=y(s)}catch(t){}var o={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:s,params:e.params||{},fullPath:M(e,r),matched:t?b(t):[]};return n&&(o.redirectedFrom=M(n,r)),Object.freeze(o)}function y(t){if(Array.isArray(t))return t.map(y);if(t&&"object"===typeof t){var e={};for(var n in t)e[n]=y(t[n]);return e}return t}var v=g(null,{path:"/"});function b(t){var e=[];while(t)e.unshift(t),t=t.parent;return e}function M(t,e){var n=t.path,i=t.query;void 0===i&&(i={});var r=t.hash;void 0===r&&(r="");var s=e||_;return(n||"/")+s(i)+r}function w(t,e){return e===v?t===e:!!e&&(t.path&&e.path?t.path.replace(m,"")===e.path.replace(m,"")&&t.hash===e.hash&&x(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&x(t.query,e.query)&&x(t.params,e.params)))}function x(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t),i=Object.keys(e);return n.length===i.length&&n.every(function(n){var i=t[n],r=e[n];return"object"===typeof i&&"object"===typeof r?x(i,r):String(i)===String(r)})}function L(t,e){return 0===t.path.replace(m,"/").indexOf(e.path.replace(m,"/"))&&(!e.hash||t.hash===e.hash)&&E(t.query,e.query)}function E(t,e){for(var n in e)if(!(n in t))return!1;return!0}var T,S=[String,Object],O=[String,Array],k={name:"router-link",props:{to:{type:S,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:O,default:"click"}},render:function(t){var e=this,n=this.$router,i=this.$route,r=n.resolve(this.to,i,this.append),s=r.location,o=r.route,a=r.href,c={},l=n.options.linkActiveClass,u=n.options.linkExactActiveClass,h=null==l?"router-link-active":l,d=null==u?"router-link-exact-active":u,f=null==this.activeClass?h:this.activeClass,p=null==this.exactActiveClass?d:this.exactActiveClass,_=s.path?g(null,s,null,n):o;c[p]=w(i,_),c[f]=this.exact?c[p]:L(i,_);var m=function(t){C(t)&&(e.replace?n.replace(s):n.push(s))},y={click:C};Array.isArray(this.event)?this.event.forEach(function(t){y[t]=m}):y[this.event]=m;var v={class:c};if("a"===this.tag)v.on=y,v.attrs={href:a};else{var b=I(this.$slots.default);if(b){b.isStatic=!1;var M=T.util.extend,x=b.data=M({},b.data);x.on=y;var E=b.data.attrs=M({},b.data.attrs);E.href=a}else v.on=y}return t(this.tag,v,this.$slots.default)}};function C(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&(void 0===t.button||0===t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function I(t){if(t)for(var e,n=0;n=0&&(e=t.slice(i),t=t.slice(0,i));var r=t.indexOf("?");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{path:t,query:n,hash:e}}function Y(t){return t.replace(/\/\//g,"/")}var P=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},j=it,F=B,H=U,G=V,q=nt,z=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function B(t,e){var n,i=[],r=0,s=0,o="",a=e&&e.delimiter||"/";while(null!=(n=z.exec(t))){var c=n[0],l=n[1],u=n.index;if(o+=t.slice(s,u),s=u+c.length,l)o+=l[1];else{var h=t[s],d=n[2],f=n[3],p=n[4],_=n[5],m=n[6],g=n[7];o&&(i.push(o),o="");var y=null!=d&&null!=h&&h!==d,v="+"===m||"*"===m,b="?"===m||"*"===m,M=n[2]||a,w=p||_;i.push({name:f||r++,prefix:d||"",delimiter:M,optional:b,repeat:v,partial:y,asterisk:!!g,pattern:w?K(w):g?".*":"[^"+X(M)+"]+?"})}}return s-1&&(a.params[d]=n.params[d]);if(l)return a.path=st(l.path,a.params,'named route "'+c+'"'),u(l,a,o)}else if(a.path){a.params={};for(var f=0;f=t.length?n():t[r]?e(t[r],function(){i(r+1)}):i(r+1)};i(0)}function Nt(t){return function(e,n,i){var s=!1,o=0,a=null;Yt(t,function(t,e,n,c){if("function"===typeof t&&void 0===t.cid){s=!0,o++;var l,u=Ht(function(e){Ft(e)&&(e=e.default),t.resolved="function"===typeof e?e:T.extend(e),n.components[c]=e,o--,o<=0&&i()}),h=Ht(function(t){var e="Failed to resolve async component "+c+": "+t;a||(a=r(t)?t:new Error(e),i(a))});try{l=t(u,h)}catch(t){h(t)}if(l)if("function"===typeof l.then)l.then(u,h);else{var d=l.component;d&&"function"===typeof d.then&&d.then(u,h)}}}),s||i()}}function Yt(t,e){return Pt(t.map(function(t){return Object.keys(t.components).map(function(n){return e(t.components[n],t.instances[n],t,n)})}))}function Pt(t){return Array.prototype.concat.apply([],t)}var jt="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function Ft(t){return t.__esModule||jt&&"Module"===t[Symbol.toStringTag]}function Ht(t){var e=!1;return function(){var n=[],i=arguments.length;while(i--)n[i]=arguments[i];if(!e)return e=!0,t.apply(this,n)}}var Gt=function(t,e){this.router=t,this.base=qt(e),this.current=v,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function qt(t){if(!t)if(R){var e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^https?:\/\/[^\/]+/,"")}else t="/";return"/"!==t.charAt(0)&&(t="/"+t),t.replace(/\/$/,"")}function zt(t,e){var n,i=Math.max(t.length,e.length);for(n=0;n=0?e.slice(0,n):e;return i+"#"+t}function se(t){Tt?Dt(re(t)):window.location.hash=t}function oe(t){Tt?Rt(re(t)):window.location.replace(re(t))}var ae=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var i=this;this.transitionTo(t,function(t){i.stack=i.stack.slice(0,i.index+1).concat(t),i.index++,e&&e(t)},n)},e.prototype.replace=function(t,e,n){var i=this;this.transitionTo(t,function(t){i.stack=i.stack.slice(0,i.index).concat(t),e&&e(t)},n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var i=this.stack[n];this.confirmTransition(i,function(){e.index=n,e.updateRoute(i)})}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Gt),ce=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=dt(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!Tt&&!1!==t.fallback,this.fallback&&(e="hash"),R||(e="abstract"),this.mode=e,e){case"history":this.history=new Zt(this,t.base);break;case"hash":this.history=new te(this,t.base,this.fallback);break;case"abstract":this.history=new ae(this,t.base);break;default:0}},le={currentRoute:{configurable:!0}};function ue(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function he(t,e,n){var i="hash"===n?"#"+e:e;return t?Y(t+"/"+i):i}ce.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},le.currentRoute.get=function(){return this.history&&this.history.current},ce.prototype.init=function(t){var e=this;if(this.apps.push(t),!this.app){this.app=t;var n=this.history;if(n instanceof Zt)n.transitionTo(n.getCurrentLocation());else if(n instanceof te){var i=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),i,i)}n.listen(function(t){e.apps.forEach(function(e){e._route=t})})}},ce.prototype.beforeEach=function(t){return ue(this.beforeHooks,t)},ce.prototype.beforeResolve=function(t){return ue(this.resolveHooks,t)},ce.prototype.afterEach=function(t){return ue(this.afterHooks,t)},ce.prototype.onReady=function(t,e){this.history.onReady(t,e)},ce.prototype.onError=function(t){this.history.onError(t)},ce.prototype.push=function(t,e,n){this.history.push(t,e,n)},ce.prototype.replace=function(t,e,n){this.history.replace(t,e,n)},ce.prototype.go=function(t){this.history.go(t)},ce.prototype.back=function(){this.go(-1)},ce.prototype.forward=function(){this.go(1)},ce.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map(function(t){return Object.keys(t.components).map(function(e){return t.components[e]})})):[]},ce.prototype.resolve=function(t,e,n){var i=ut(t,e||this.history.current,n,this),r=this.match(i,e),s=r.redirectedFrom||r.fullPath,o=this.history.base,a=he(o,s,this.mode);return{location:i,route:r,href:a,normalizedTo:i,resolved:r}},ce.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==v&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(ce.prototype,le),ce.install=D,ce.version="3.0.1",R&&window.Vue&&window.Vue.use(ce),e["a"]=ce},"8cc5":function(t,e,n){"use strict";n.d(e,"c",function(){return r}),n.d(e,"d",function(){return s}),n.d(e,"a",function(){return o}),n.d(e,"b",function(){return a});var i=n("7fc9");function r(t,e){return void 0!==t?0:void 0}function s(t,e){return void 0!==t?t+e:void 0}function o(t){var e=2*Math.PI/t;return function(t,n){return void 0!==t?(t=Math.floor((t+n)/e+.5)*e,t):void 0}}function a(t){var e=t||Object(i["i"])(5);return function(t,n){return void 0!==t?Math.abs(t+n)<=e?0:t+n:void 0}}},"8d47":function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration function e(t){return"undefined"!==typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}var n=t.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(t,e){return t?"string"===typeof e&&/D/.test(e.substring(0,e.indexOf("MMMM")))?this._monthsGenitiveEl[t.month()]:this._monthsNominativeEl[t.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(t,e,n){return t>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(t){return"μ"===(t+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(t,n){var i=this._calendarEl[t],r=n&&n.hours();return e(i)&&(i=i.apply(n)),i.replace("{}",r%12===1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}});return n})},"8d57":function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration @@ -212,7 +219,7 @@ var e={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0 //! moment.js locale configuration var e=t.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,n){var i=100*t+e;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});return e})},9138:function(t,e,n){t.exports=n("35e8")},9152:function(t,e){ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ -e.read=function(t,e,n,i,r){var s,o,a=8*r-i-1,c=(1<>1,u=-7,h=n?r-1:0,d=n?-1:1,f=t[e+h];for(h+=d,s=f&(1<<-u)-1,f>>=-u,u+=a;u>0;s=256*s+t[e+h],h+=d,u-=8);for(o=s&(1<<-u)-1,s>>=-u,u+=i;u>0;o=256*o+t[e+h],h+=d,u-=8);if(0===s)s=1-l;else{if(s===c)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,i),s-=l}return(f?-1:1)*o*Math.pow(2,s-i)},e.write=function(t,e,n,i,r,s){var o,a,c,l=8*s-r-1,u=(1<>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:s-1,p=i?1:-1,_=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),e+=o+h>=1?d/c:d*Math.pow(2,1-h),e*c>=2&&(o++,c/=2),o+h>=u?(a=0,o=u):o+h>=1?(a=(e*c-1)*Math.pow(2,r),o+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,r),o=0));r>=8;t[n+f]=255&a,f+=p,a/=256,r-=8);for(o=o<0;t[n+f]=255&o,f+=p,o/=256,l-=8);t[n+f-p]|=128*_}},"91b1":function(t,e,n){"use strict";var i=n("a504"),r=n("1300"),s=n("acc1"),o=n("ca42"),a=n("0ec0"),c=n("01d4"),l=function(t){function e(e,n,i){t.call(this);var r=i||{};this.tileCoord=e,this.state=n,this.interimTile=null,this.key="",this.transition_=void 0===r.transition?250:r.transition,this.transitionStarts_={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.changed=function(){this.dispatchEvent(c["a"].CHANGE)},e.prototype.getKey=function(){return this.key+"/"+this.tileCoord},e.prototype.getInterimTile=function(){if(!this.interimTile)return this;var t=this.interimTile;do{if(t.getState()==s["a"].LOADED)return t;t=t.interimTile}while(t);return this},e.prototype.refreshInterimChain=function(){if(this.interimTile){var t=this.interimTile,e=this;do{if(t.getState()==s["a"].LOADED){t.interimTile=null;break}t.getState()==s["a"].LOADING?e=t:t.getState()==s["a"].IDLE?e.interimTile=t.interimTile:e=t,t=e.interimTile}while(t)}},e.prototype.getTileCoord=function(){return this.tileCoord},e.prototype.getState=function(){return this.state},e.prototype.setState=function(t){this.state=t,this.changed()},e.prototype.load=function(){},e.prototype.getAlpha=function(t,e){if(!this.transition_)return 1;var n=this.transitionStarts_[t];if(n){if(-1===n)return 1}else n=e,this.transitionStarts_[t]=n;var i=e-n+1e3/60;return i>=this.transition_?1:Object(o["a"])(i/this.transition_)},e.prototype.inTransition=function(t){return!!this.transition_&&-1!==this.transitionStarts_[t]},e.prototype.endTransition=function(t){this.transition_&&(this.transitionStarts_[t]=-1)},e}(a["a"]),u=l,h=n("0999"),d=n("1e8d"),f=function(t){function e(e,n,i,r,s,o){t.call(this,e,n,o),this.crossOrigin_=r,this.src_=i,this.image_=new Image,null!==r&&(this.image_.crossOrigin=r),this.imageListenerKeys_=null,this.tileLoadFunction_=s}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){this.state==s["a"].LOADING&&(this.unlistenImage_(),this.image_=p()),this.interimTile&&this.interimTile.dispose(),this.state=s["a"].ABORT,this.changed(),t.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.image_},e.prototype.getKey=function(){return this.src_},e.prototype.handleImageError_=function(){this.state=s["a"].ERROR,this.unlistenImage_(),this.image_=p(),this.changed()},e.prototype.handleImageLoad_=function(){var t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=s["a"].LOADED:this.state=s["a"].EMPTY,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state==s["a"].ERROR&&(this.state=s["a"].IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==s["a"].IDLE&&(this.state=s["a"].LOADING,this.changed(),this.imageListenerKeys_=[Object(d["b"])(this.image_,c["a"].ERROR,this.handleImageError_,this),Object(d["b"])(this.image_,c["a"].LOAD,this.handleImageLoad_,this)],this.tileLoadFunction_(this,this.src_))},e.prototype.unlistenImage_=function(){this.imageListenerKeys_.forEach(d["e"]),this.imageListenerKeys_=null},e}(u);function p(){var t=Object(h["a"])(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas}var _=f,m=n("5116"),g=n("2c30"),y=function(t){function e(e){t.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.expireCache=function(t){while(this.canExpireCache()){var e=this.peekLast(),n=e.tileCoord[0].toString();if(n in t&&t[n].contains(e.tileCoord))break;this.pop().dispose()}},e.prototype.pruneExceptNewestZ=function(){if(0!==this.getCount()){var t=this.peekFirstKey(),e=Object(g["b"])(t),n=e[0];this.forEach(function(t){t.tileCoord[0]!==n&&(this.remove(Object(g["c"])(t.tileCoord)),t.dispose())},this)}},e}(m["a"]),v=y,b=n("256f"),M=n("0af5"),w=n("7fc9"),x=n("3c81"),L=n("b739"),E=function(t){function e(e,n,r,o,a,c,l,u,h,d,f){t.call(this,a,s["a"].IDLE),this.renderEdges_=void 0!==f&&f,this.pixelRatio_=l,this.gutter_=u,this.canvas_=null,this.sourceTileGrid_=n,this.targetTileGrid_=o,this.wrappedTileCoord_=c||a,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0;var p=o.getTileCoordExtent(this.wrappedTileCoord_),_=this.targetTileGrid_.getExtent(),m=this.sourceTileGrid_.getExtent(),g=_?Object(M["B"])(p,_):p;if(0!==Object(M["u"])(g)){var y=e.getExtent();y&&(m=m?Object(M["B"])(m,y):y);var v=o.getResolution(this.wrappedTileCoord_[0]),b=Object(M["x"])(g),E=Object(x["a"])(e,r,b,v);if(!isFinite(E)||E<=0)this.state=s["a"].EMPTY;else{var T=void 0!==d?d:i["b"];if(this.triangulation_=new L["a"](e,r,g,m,E*T),0!==this.triangulation_.getTriangles().length){this.sourceZ_=n.getZForResolution(E);var S=this.triangulation_.calculateSourceExtent();if(m&&(e.canWrapX()?(S[1]=Object(w["a"])(S[1],m[1],m[3]),S[3]=Object(w["a"])(S[3],m[1],m[3])):S=Object(M["B"])(S,m)),Object(M["u"])(S)){for(var O=n.getTileRangeForExtentAndZ(S,this.sourceZ_),k=O.minX;k<=O.maxX;k++)for(var C=O.minY;C<=O.maxY;C++){var I=h(this.sourceZ_,k,C,l);I&&this.sourceTiles_.push(I)}0===this.sourceTiles_.length&&(this.state=s["a"].EMPTY)}else this.state=s["a"].EMPTY}else this.state=s["a"].EMPTY}}else this.state=s["a"].EMPTY}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){this.state==s["a"].LOADING&&this.unlistenSources_(),t.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.canvas_},e.prototype.reproject_=function(){var t=[];if(this.sourceTiles_.forEach(function(e,n,i){e&&e.getState()==s["a"].LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(e.tileCoord),image:e.getImage()})}.bind(this)),this.sourceTiles_.length=0,0===t.length)this.state=s["a"].ERROR;else{var e=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(e),i="number"===typeof n?n:n[0],r="number"===typeof n?n:n[1],o=this.targetTileGrid_.getResolution(e),a=this.sourceTileGrid_.getResolution(this.sourceZ_),c=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=Object(x["b"])(i,r,this.pixelRatio_,a,this.sourceTileGrid_.getExtent(),o,c,this.triangulation_,t,this.gutter_,this.renderEdges_),this.state=s["a"].LOADED}this.changed()},e.prototype.load=function(){if(this.state==s["a"].IDLE){this.state=s["a"].LOADING,this.changed();var t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(e,n,i){var r=e.getState();if(r==s["a"].IDLE||r==s["a"].LOADING){t++;var o=Object(d["a"])(e,c["a"].CHANGE,function(n){var i=e.getState();i!=s["a"].LOADED&&i!=s["a"].ERROR&&i!=s["a"].EMPTY||(Object(d["e"])(o),t--,0===t&&(this.unlistenSources_(),this.reproject_()))},this);this.sourcesListenerKeys_.push(o)}}.bind(this)),this.sourceTiles_.forEach(function(t,e,n){var i=t.getState();i==s["a"].IDLE&&t.load()}),0===t&&setTimeout(this.reproject_.bind(this),0)}},e.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(d["e"]),this.sourcesListenerKeys_=null},e}(u),T=E,S=n("92fa");function O(t,e){var n=/\{z\}/g,i=/\{x\}/g,r=/\{y\}/g,s=/\{-y\}/g;return function(o,a,c){return o?t.replace(n,o[0].toString()).replace(i,o[1].toString()).replace(r,function(){var t=-o[2]-1;return t.toString()}).replace(s,function(){var t=o[0],n=e.getFullTileRange(t);Object(S["a"])(n,55);var i=n.getHeight()+o[2];return i.toString()}):void 0}}function k(t,e){for(var n=t.length,i=new Array(n),r=0;r1)))/4)-u((t-1901+e)/100)+u((t-1601+e)/400)};e=function(t){for(r=u(t/864e5),n=u(r/365.2425)+1970-1;f(n+1,0)<=r;n++);for(i=u((r-f(n,0))/30.42);f(n,i+1)<=r;i++);r=1+r-f(n,i),s=(t%864e5+864e5)%864e5,o=u(s/36e5)%24,a=u(s/6e4)%60,c=u(s/1e3)%60,l=s%1e3}}return I=function(t){return t>-1/0&&t<1/0?(e(t),t=(n<=0||n>=1e4?(n<0?"-":"+")+C(6,n<0?-n:n):C(4,n))+"-"+C(2,i+1)+"-"+C(2,r)+"T"+C(2,o)+":"+C(2,a)+":"+C(2,c)+"."+C(3,l)+"Z",n=i=r=o=a=c=l=null):t=null,t},I(t)};if(v("json-stringify")&&!v("date-serialization")){function D(t){return I(this)}var R=e.stringify;e.stringify=function(t,e,n){var i=s.prototype.toJSON;s.prototype.toJSON=D;var r=R(t,e,n);return s.prototype.toJSON=i,r}}else{var A="\\u00",N=function(t){var e=t.charCodeAt(0),n=O[e];return n||A+C(2,e.toString(16))},Y=/[\x00-\x1f\x22\x5c]/g,P=function(t){return Y.lastIndex=0,'"'+(Y.test(t)?t.replace(Y,N):t)+'"'},j=function(t,e,n,i,r,o,a){var c,u,h,d,p,m,y,v,b;if(g(function(){c=e[t]}),"object"==typeof c&&c&&(c.getUTCFullYear&&_.call(c)==M&&c.toJSON===s.prototype.toJSON?c=I(c):"function"==typeof c.toJSON&&(c=c.toJSON(t))),n&&(c=n.call(e,t,c)),c==f)return c===f?c:"null";switch(u=typeof c,"object"==u&&(h=_.call(c)),h||u){case"boolean":case E:return""+c;case"number":case w:return c>-1/0&&c<1/0?""+c:"null";case"string":case x:return P(""+c)}if("object"==typeof c){for(y=a.length;y--;)if(a[y]===c)throw l();if(a.push(c),d=[],v=o,o+=r,h==L){for(m=0,y=c.length;m0)for(n>10&&(n=10),i="";i.length=48&&r<=57||r>=97&&r<=102||r>=65&&r<=70||z();t+=q("0x"+s.slice(e,F));break;default:z()}else{if(34==r)break;r=s.charCodeAt(F),e=F;while(r>=32&&92!=r&&34!=r)r=s.charCodeAt(++F);t+=s.slice(e,F)}if(34==s.charCodeAt(F))return F++,t;z();default:if(e=F,45==r&&(i=!0,r=s.charCodeAt(++F)),r>=48&&r<=57){for(48==r&&(r=s.charCodeAt(F+1),r>=48&&r<=57)&&z(),i=!1;F=48&&r<=57);F++);if(46==s.charCodeAt(F)){for(n=++F;n57)break;n==F&&z(),F=n}if(r=s.charCodeAt(F),101==r||69==r){for(r=s.charCodeAt(++F),43!=r&&45!=r||F++,n=F;n57)break;n==F&&z(),F=n}return+s.slice(e,F)}i&&z();var a=s.slice(F,F+4);if("true"==a)return F+=4,!0;if("fals"==a&&101==s.charCodeAt(F+4))return F+=5,!1;if("null"==a)return F+=4,null;z()}return"$"},U=function(t){var e,n;if("$"==t&&z(),"string"==typeof t){if("@"==(T?t.charAt(0):t[0]))return t.slice(1);if("["==t){for(e=[];;){if(t=B(),"]"==t)break;n?","==t?(t=B(),"]"==t&&z()):z():n=!0,","==t&&z(),e.push(U(t))}return e}if("{"==t){for(e={};;){if(t=B(),"}"==t)break;n?","==t?(t=B(),"}"==t&&z()):z():n=!0,","!=t&&"string"==typeof t&&"@"==(T?t.charAt(0):t[0])&&":"==B()||z(),e[t.slice(1)]=U(B())}return e}z()}return t},W=function(t,e,n){var i=$(t,e,n);i===f?delete t[e]:t[e]=i},$=function(t,e,n){var i,r=t[e];if("object"==typeof r&&r)if(_.call(r)==L)for(i=r.length;i--;)W(_,S,r,i,n);else S(r,function(t){W(r,t,n)});return n.call(t,e,r)};e.parse=function(t,e){var n,i;return F=0,H=""+t,n=U(B()),"$"!=B()&&z(),F=H=null,e&&_.call(e)==b?$((i={},i[""]=n,i),"",e):n}}}return e.runInContext=u,e}if(!l||l.global!==l&&l.window!==l&&l.self!==l||(c=l),a&&!s)u(c,a);else{var h=c.JSON,d=c.JSON3,f=!1,p=u(c,c.JSON3={noConflict:function(){return f||(f=!0,c.JSON=h,c.JSON3=d,h=d=null),p}});c.JSON={parse:p.parse,stringify:p.stringify}}s&&(r=function(){return p}.call(e,n,e,t),void 0===r||(t.exports=r))}).call(this)}).call(this,n("62e4")(t),n("c8ba"))},9338:function(t,e,n){},"93ea":function(t,e,n){},"93f5":function(t,e,n){"use strict";n("f751"),n("c5f6");var i=n("177b"),r=n("b18c"),s=n("1528"),o=n("363b"),a=n("fc6c"),c=n("f62b");e["a"]={name:"QScrollArea",directives:{TouchPan:c["a"]},props:{thumbStyle:{type:Object,default:function(){return{}}},contentStyle:{type:Object,default:function(){return{}}},contentActiveStyle:{type:Object,default:function(){return{}}},delay:{type:Number,default:1e3}},data:function(){return{active:!1,hover:!1,containerHeight:0,scrollPosition:0,scrollHeight:0}},computed:{thumbHidden:function(){return this.scrollHeight<=this.containerHeight||!this.active&&!this.hover},thumbHeight:function(){return Math.round(Object(i["a"])(this.containerHeight*this.containerHeight/this.scrollHeight,50,this.containerHeight))},style:function(){var t=this.scrollPercentage*(this.containerHeight-this.thumbHeight);return Object.assign({},this.thumbStyle,{top:"".concat(t,"px"),height:"".concat(this.thumbHeight,"px")})},mainStyle:function(){return this.thumbHidden?this.contentStyle:this.contentActiveStyle},scrollPercentage:function(){var t=Object(i["a"])(this.scrollPosition/(this.scrollHeight-this.containerHeight),0,1);return Math.round(1e4*t)/1e4}},methods:{setScrollPosition:function(t,e){Object(s["e"])(this.$refs.target,t,e)},__updateContainer:function(t){var e=t.height;this.containerHeight!==e&&(this.containerHeight=e,this.__setActive(!0,!0))},__updateScroll:function(t){var e=t.position;this.scrollPosition!==e&&(this.scrollPosition=e,this.__setActive(!0,!0))},__updateScrollHeight:function(t){var e=t.height;this.scrollHeight!==e&&(this.scrollHeight=e,this.__setActive(!0,!0))},__panThumb:function(t){t.isFirst&&(this.refPos=this.scrollPosition,this.__setActive(!0,!0),document.body.classList.add("non-selectable"),document.selection?document.selection.empty():window.getSelection&&window.getSelection().removeAllRanges()),t.isFinal&&(this.__setActive(!1),document.body.classList.remove("non-selectable"));var e=(this.scrollHeight-this.containerHeight)/(this.containerHeight-this.thumbHeight);this.$refs.target.scrollTop=this.refPos+("down"===t.direction?1:-1)*t.distance.y*e},__panContainer:function(t){t.isFirst&&(this.refPos=this.scrollPosition,this.__setActive(!0,!0)),t.isFinal&&this.__setActive(!1);var e=this.refPos+("down"===t.direction?-1:1)*t.distance.y;this.$refs.target.scrollTop=e,e>0&&e+this.containerHeight0&&e.scrollTop+this.containerHeight=i/2?(a<0?-1:1)*i:0)-a,r&&(o=parseFloat(o.toFixed(r))),Object(s["a"])(o,e,n)}var h={directives:{TouchPan:a["a"]},props:{min:{type:Number,default:1},max:{type:Number,default:5},step:{type:Number,default:1},decimals:Number,snap:Boolean,markers:Boolean,label:Boolean,labelAlways:Boolean,square:Boolean,color:String,fillHandleAlways:Boolean,error:Boolean,warning:Boolean,readonly:Boolean,disable:Boolean},computed:{editable:function(){return!this.disable&&!this.readonly},classes:function(){var t={disabled:this.disable,readonly:this.readonly,"label-always":this.labelAlways,"has-error":this.error,"has-warning":this.warning};return this.error||this.warning||!this.color||(t["text-".concat(this.color)]=!0),t},markersLen:function(){return(this.max-this.min)/this.step+1},labelColor:function(){return this.error?"negative":this.warning?"warning":this.color||"primary"},computedDecimals:function(){return void 0!==this.decimals?this.decimals||0:(String(this.step).trim("0").split(".")[1]||"").length},computedStep:function(){return void 0!==this.decimals?1/Math.pow(10,this.decimals||0):this.step}},methods:{__pan:function(t){var e=this;t.isFinal?this.dragging&&(this.dragTimer=setTimeout(function(){e.dragging=!1},100),this.__end(t.evt),this.__update(!0)):t.isFirst?(clearTimeout(this.dragTimer),this.dragging=this.__getDragging(t.evt)):this.dragging&&(this.__move(t.evt),this.__update())},__update:function(t){var e=this;JSON.stringify(this.model)!==JSON.stringify(this.value)&&(this.$emit("input",this.model),t&&this.$nextTick(function(){JSON.stringify(e.model)!==JSON.stringify(e.value)&&e.$emit("change",e.model)}))},__click:function(t){if(!this.dragging){var e=this.__getDragging(t);e&&(this.__end(t,e),this.__update(!0))}},__getMarkers:function(t){if(this.markers){for(var e=[],n=0;nthis.max?this.model=this.max:this.model=t,this.currentPercentage=(this.model-this.min)/(this.max-this.min))},min:function(t){this.modelt?this.model=t:this.$nextTick(this.__validateProps)},step:function(){this.$nextTick(this.__validateProps)}},methods:{__getDragging:function(t){var e=this.$refs.handle;return{left:e.getBoundingClientRect().left,width:e.offsetWidth}},__move:function(t){var e=c(t,this.dragging,this.$q.i18n.rtl);this.currentPercentage=e,this.model=u(e,this.min,this.max,this.step,this.computedDecimals)},__end:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.dragging,n=c(t,e,this.$q.i18n.rtl);this.model=u(n,this.min,this.max,this.step,this.computedDecimals),this.currentPercentage=(this.model-this.min)/(this.max-this.min)},__onKeyDown:function(t){var e=t.keyCode;if(this.editable&&[37,40,39,38].includes(e)){Object(o["g"])(t);var n=this.computedDecimals,i=t.ctrlKey?10*this.computedStep:this.computedStep,r=[37,40].includes(e)?-i:i,a=n?parseFloat((this.model+r).toFixed(n)):this.model+r;this.model=Object(s["a"])(a,this.min,this.max),this.currentPercentage=(this.model-this.min)/(this.max-this.min),this.__update()}},__onKeyUp:function(t){var e=t.keyCode;this.editable&&[37,40,39,38].includes(e)&&this.__update(!0)},__validateProps:function(){this.min>=this.max?console.error("Range error: min >= max",this.$el,this.min,this.max):l((this.max-this.min)/this.step,this.computedDecimals)&&console.error("Range error: step must be a divisor of max - min",this.min,this.max,this.step,this.computedDecimals)},__getContent:function(t){var e;return[t("div",{staticClass:"q-slider-track active-track",style:{width:this.percentage},class:{"no-transition":this.dragging,"handle-at-minimum":this.model===this.min}}),t("div",{staticClass:"q-slider-handle",style:(e={},r()(e,this.$q.i18n.rtl?"right":"left",this.percentage),r()(e,"borderRadius",this.square?"0":"50%"),e),class:{dragging:this.dragging,"handle-at-minimum":!this.fillHandleAlways&&this.model===this.min},attrs:{tabindex:this.$q.platform.is.desktop?this.editable?0:-1:void 0},on:{keydown:this.__onKeyDown,keyup:this.__onKeyUp}},[this.label||this.labelAlways?t(d["a"],{staticClass:"q-slider-label no-pointer-events",class:{"label-always":this.labelAlways},props:{pointing:"down",square:!0,dense:!0,color:this.labelColor}},[this.displayValue]):null,t("div",{staticClass:"q-slider-ring"})])]}}}},9523:function(t,e,n){var i=n("0a75");function r(t,e,n){return e in t?i(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}t.exports=r},"953c":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n("7b52"),r=n("78c4"),s=n("2709"),o=n("85e4"),a=n("e834"),c=n("c73a");class l{constructor(){l.constructor_.apply(this,arguments)}static constructor_(){this._geom=null;const t=arguments[0];this._geom=t}static locatePointInPolygon(t,e){if(e.isEmpty())return i["a"].EXTERIOR;const n=e.getExteriorRing(),r=l.locatePointInRing(t,n);if(r!==i["a"].INTERIOR)return r;for(let s=0;s>1,u=-7,h=n?r-1:0,d=n?-1:1,f=t[e+h];for(h+=d,s=f&(1<<-u)-1,f>>=-u,u+=a;u>0;s=256*s+t[e+h],h+=d,u-=8);for(o=s&(1<<-u)-1,s>>=-u,u+=i;u>0;o=256*o+t[e+h],h+=d,u-=8);if(0===s)s=1-l;else{if(s===c)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,i),s-=l}return(f?-1:1)*o*Math.pow(2,s-i)},e.write=function(t,e,n,i,r,s){var o,a,c,l=8*s-r-1,u=(1<>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:s-1,p=i?1:-1,_=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),e+=o+h>=1?d/c:d*Math.pow(2,1-h),e*c>=2&&(o++,c/=2),o+h>=u?(a=0,o=u):o+h>=1?(a=(e*c-1)*Math.pow(2,r),o+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,r),o=0));r>=8;t[n+f]=255&a,f+=p,a/=256,r-=8);for(o=o<0;t[n+f]=255&o,f+=p,o/=256,l-=8);t[n+f-p]|=128*_}},"91b1":function(t,e,n){"use strict";var i=n("a504"),r=n("1300"),s=n("acc1"),o=n("ca42"),a=n("0ec0"),c=n("01d4"),l=function(t){function e(e,n,i){t.call(this);var r=i||{};this.tileCoord=e,this.state=n,this.interimTile=null,this.key="",this.transition_=void 0===r.transition?250:r.transition,this.transitionStarts_={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.changed=function(){this.dispatchEvent(c["a"].CHANGE)},e.prototype.getKey=function(){return this.key+"/"+this.tileCoord},e.prototype.getInterimTile=function(){if(!this.interimTile)return this;var t=this.interimTile;do{if(t.getState()==s["a"].LOADED)return t;t=t.interimTile}while(t);return this},e.prototype.refreshInterimChain=function(){if(this.interimTile){var t=this.interimTile,e=this;do{if(t.getState()==s["a"].LOADED){t.interimTile=null;break}t.getState()==s["a"].LOADING?e=t:t.getState()==s["a"].IDLE?e.interimTile=t.interimTile:e=t,t=e.interimTile}while(t)}},e.prototype.getTileCoord=function(){return this.tileCoord},e.prototype.getState=function(){return this.state},e.prototype.setState=function(t){this.state=t,this.changed()},e.prototype.load=function(){},e.prototype.getAlpha=function(t,e){if(!this.transition_)return 1;var n=this.transitionStarts_[t];if(n){if(-1===n)return 1}else n=e,this.transitionStarts_[t]=n;var i=e-n+1e3/60;return i>=this.transition_?1:Object(o["a"])(i/this.transition_)},e.prototype.inTransition=function(t){return!!this.transition_&&-1!==this.transitionStarts_[t]},e.prototype.endTransition=function(t){this.transition_&&(this.transitionStarts_[t]=-1)},e}(a["a"]),u=l,h=n("0999"),d=n("1e8d"),f=function(t){function e(e,n,i,r,s,o){t.call(this,e,n,o),this.crossOrigin_=r,this.src_=i,this.image_=new Image,null!==r&&(this.image_.crossOrigin=r),this.imageListenerKeys_=null,this.tileLoadFunction_=s}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){this.state==s["a"].LOADING&&(this.unlistenImage_(),this.image_=p()),this.interimTile&&this.interimTile.dispose(),this.state=s["a"].ABORT,this.changed(),t.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.image_},e.prototype.getKey=function(){return this.src_},e.prototype.handleImageError_=function(){this.state=s["a"].ERROR,this.unlistenImage_(),this.image_=p(),this.changed()},e.prototype.handleImageLoad_=function(){var t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=s["a"].LOADED:this.state=s["a"].EMPTY,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state==s["a"].ERROR&&(this.state=s["a"].IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==s["a"].IDLE&&(this.state=s["a"].LOADING,this.changed(),this.imageListenerKeys_=[Object(d["b"])(this.image_,c["a"].ERROR,this.handleImageError_,this),Object(d["b"])(this.image_,c["a"].LOAD,this.handleImageLoad_,this)],this.tileLoadFunction_(this,this.src_))},e.prototype.unlistenImage_=function(){this.imageListenerKeys_.forEach(d["e"]),this.imageListenerKeys_=null},e}(u);function p(){var t=Object(h["a"])(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas}var _=f,m=n("5116"),g=n("2c30"),y=function(t){function e(e){t.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.expireCache=function(t){while(this.canExpireCache()){var e=this.peekLast(),n=e.tileCoord[0].toString();if(n in t&&t[n].contains(e.tileCoord))break;this.pop().dispose()}},e.prototype.pruneExceptNewestZ=function(){if(0!==this.getCount()){var t=this.peekFirstKey(),e=Object(g["b"])(t),n=e[0];this.forEach(function(t){t.tileCoord[0]!==n&&(this.remove(Object(g["c"])(t.tileCoord)),t.dispose())},this)}},e}(m["a"]),v=y,b=n("256f"),M=n("0af5"),w=n("7fc9"),x=n("3c81"),L=n("b739"),E=function(t){function e(e,n,r,o,a,c,l,u,h,d,f){t.call(this,a,s["a"].IDLE),this.renderEdges_=void 0!==f&&f,this.pixelRatio_=l,this.gutter_=u,this.canvas_=null,this.sourceTileGrid_=n,this.targetTileGrid_=o,this.wrappedTileCoord_=c||a,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0;var p=o.getTileCoordExtent(this.wrappedTileCoord_),_=this.targetTileGrid_.getExtent(),m=this.sourceTileGrid_.getExtent(),g=_?Object(M["B"])(p,_):p;if(0!==Object(M["u"])(g)){var y=e.getExtent();y&&(m=m?Object(M["B"])(m,y):y);var v=o.getResolution(this.wrappedTileCoord_[0]),b=Object(M["x"])(g),E=Object(x["a"])(e,r,b,v);if(!isFinite(E)||E<=0)this.state=s["a"].EMPTY;else{var T=void 0!==d?d:i["b"];if(this.triangulation_=new L["a"](e,r,g,m,E*T),0!==this.triangulation_.getTriangles().length){this.sourceZ_=n.getZForResolution(E);var S=this.triangulation_.calculateSourceExtent();if(m&&(e.canWrapX()?(S[1]=Object(w["a"])(S[1],m[1],m[3]),S[3]=Object(w["a"])(S[3],m[1],m[3])):S=Object(M["B"])(S,m)),Object(M["u"])(S)){for(var O=n.getTileRangeForExtentAndZ(S,this.sourceZ_),k=O.minX;k<=O.maxX;k++)for(var C=O.minY;C<=O.maxY;C++){var I=h(this.sourceZ_,k,C,l);I&&this.sourceTiles_.push(I)}0===this.sourceTiles_.length&&(this.state=s["a"].EMPTY)}else this.state=s["a"].EMPTY}else this.state=s["a"].EMPTY}}else this.state=s["a"].EMPTY}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){this.state==s["a"].LOADING&&this.unlistenSources_(),t.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.canvas_},e.prototype.reproject_=function(){var t=[];if(this.sourceTiles_.forEach(function(e,n,i){e&&e.getState()==s["a"].LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(e.tileCoord),image:e.getImage()})}.bind(this)),this.sourceTiles_.length=0,0===t.length)this.state=s["a"].ERROR;else{var e=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(e),i="number"===typeof n?n:n[0],r="number"===typeof n?n:n[1],o=this.targetTileGrid_.getResolution(e),a=this.sourceTileGrid_.getResolution(this.sourceZ_),c=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=Object(x["b"])(i,r,this.pixelRatio_,a,this.sourceTileGrid_.getExtent(),o,c,this.triangulation_,t,this.gutter_,this.renderEdges_),this.state=s["a"].LOADED}this.changed()},e.prototype.load=function(){if(this.state==s["a"].IDLE){this.state=s["a"].LOADING,this.changed();var t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(e,n,i){var r=e.getState();if(r==s["a"].IDLE||r==s["a"].LOADING){t++;var o=Object(d["a"])(e,c["a"].CHANGE,function(n){var i=e.getState();i!=s["a"].LOADED&&i!=s["a"].ERROR&&i!=s["a"].EMPTY||(Object(d["e"])(o),t--,0===t&&(this.unlistenSources_(),this.reproject_()))},this);this.sourcesListenerKeys_.push(o)}}.bind(this)),this.sourceTiles_.forEach(function(t,e,n){var i=t.getState();i==s["a"].IDLE&&t.load()}),0===t&&setTimeout(this.reproject_.bind(this),0)}},e.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(d["e"]),this.sourcesListenerKeys_=null},e}(u),T=E,S=n("92fa");function O(t,e){var n=/\{z\}/g,i=/\{x\}/g,r=/\{y\}/g,s=/\{-y\}/g;return function(o,a,c){return o?t.replace(n,o[0].toString()).replace(i,o[1].toString()).replace(r,function(){var t=-o[2]-1;return t.toString()}).replace(s,function(){var t=o[0],n=e.getFullTileRange(t);Object(S["a"])(n,55);var i=n.getHeight()+o[2];return i.toString()}):void 0}}function k(t,e){for(var n=t.length,i=new Array(n),r=0;r1)))/4)-u((t-1901+e)/100)+u((t-1601+e)/400)};e=function(t){for(r=u(t/864e5),n=u(r/365.2425)+1970-1;f(n+1,0)<=r;n++);for(i=u((r-f(n,0))/30.42);f(n,i+1)<=r;i++);r=1+r-f(n,i),s=(t%864e5+864e5)%864e5,o=u(s/36e5)%24,a=u(s/6e4)%60,c=u(s/1e3)%60,l=s%1e3}}return I=function(t){return t>-1/0&&t<1/0?(e(t),t=(n<=0||n>=1e4?(n<0?"-":"+")+C(6,n<0?-n:n):C(4,n))+"-"+C(2,i+1)+"-"+C(2,r)+"T"+C(2,o)+":"+C(2,a)+":"+C(2,c)+"."+C(3,l)+"Z",n=i=r=o=a=c=l=null):t=null,t},I(t)};if(v("json-stringify")&&!v("date-serialization")){function D(t){return I(this)}var R=e.stringify;e.stringify=function(t,e,n){var i=s.prototype.toJSON;s.prototype.toJSON=D;var r=R(t,e,n);return s.prototype.toJSON=i,r}}else{var A="\\u00",N=function(t){var e=t.charCodeAt(0),n=O[e];return n||A+C(2,e.toString(16))},Y=/[\x00-\x1f\x22\x5c]/g,P=function(t){return Y.lastIndex=0,'"'+(Y.test(t)?t.replace(Y,N):t)+'"'},j=function(t,e,n,i,r,o,a){var c,u,h,d,p,m,y,v,b;if(g(function(){c=e[t]}),"object"==typeof c&&c&&(c.getUTCFullYear&&_.call(c)==M&&c.toJSON===s.prototype.toJSON?c=I(c):"function"==typeof c.toJSON&&(c=c.toJSON(t))),n&&(c=n.call(e,t,c)),c==f)return c===f?c:"null";switch(u=typeof c,"object"==u&&(h=_.call(c)),h||u){case"boolean":case E:return""+c;case"number":case w:return c>-1/0&&c<1/0?""+c:"null";case"string":case x:return P(""+c)}if("object"==typeof c){for(y=a.length;y--;)if(a[y]===c)throw l();if(a.push(c),d=[],v=o,o+=r,h==L){for(m=0,y=c.length;m0)for(n>10&&(n=10),i="";i.length=48&&r<=57||r>=97&&r<=102||r>=65&&r<=70||z();t+=G("0x"+s.slice(e,F));break;default:z()}else{if(34==r)break;r=s.charCodeAt(F),e=F;while(r>=32&&92!=r&&34!=r)r=s.charCodeAt(++F);t+=s.slice(e,F)}if(34==s.charCodeAt(F))return F++,t;z();default:if(e=F,45==r&&(i=!0,r=s.charCodeAt(++F)),r>=48&&r<=57){for(48==r&&(r=s.charCodeAt(F+1),r>=48&&r<=57)&&z(),i=!1;F=48&&r<=57);F++);if(46==s.charCodeAt(F)){for(n=++F;n57)break;n==F&&z(),F=n}if(r=s.charCodeAt(F),101==r||69==r){for(r=s.charCodeAt(++F),43!=r&&45!=r||F++,n=F;n57)break;n==F&&z(),F=n}return+s.slice(e,F)}i&&z();var a=s.slice(F,F+4);if("true"==a)return F+=4,!0;if("fals"==a&&101==s.charCodeAt(F+4))return F+=5,!1;if("null"==a)return F+=4,null;z()}return"$"},U=function(t){var e,n;if("$"==t&&z(),"string"==typeof t){if("@"==(T?t.charAt(0):t[0]))return t.slice(1);if("["==t){for(e=[];;){if(t=B(),"]"==t)break;n?","==t?(t=B(),"]"==t&&z()):z():n=!0,","==t&&z(),e.push(U(t))}return e}if("{"==t){for(e={};;){if(t=B(),"}"==t)break;n?","==t?(t=B(),"}"==t&&z()):z():n=!0,","!=t&&"string"==typeof t&&"@"==(T?t.charAt(0):t[0])&&":"==B()||z(),e[t.slice(1)]=U(B())}return e}z()}return t},W=function(t,e,n){var i=$(t,e,n);i===f?delete t[e]:t[e]=i},$=function(t,e,n){var i,r=t[e];if("object"==typeof r&&r)if(_.call(r)==L)for(i=r.length;i--;)W(_,S,r,i,n);else S(r,function(t){W(r,t,n)});return n.call(t,e,r)};e.parse=function(t,e){var n,i;return F=0,H=""+t,n=U(B()),"$"!=B()&&z(),F=H=null,e&&_.call(e)==b?$((i={},i[""]=n,i),"",e):n}}}return e.runInContext=u,e}if(!l||l.global!==l&&l.window!==l&&l.self!==l||(c=l),a&&!s)u(c,a);else{var h=c.JSON,d=c.JSON3,f=!1,p=u(c,c.JSON3={noConflict:function(){return f||(f=!0,c.JSON=h,c.JSON3=d,h=d=null),p}});c.JSON={parse:p.parse,stringify:p.stringify}}s&&(r=function(){return p}.call(e,n,e,t),void 0===r||(t.exports=r))}).call(this)}).call(this,n("62e4")(t),n("c8ba"))},9338:function(t,e,n){},"93ea":function(t,e,n){},"93f5":function(t,e,n){"use strict";n("f751"),n("c5f6");var i=n("177b"),r=n("b18c"),s=n("1528"),o=n("363b"),a=n("fc6c"),c=n("f62b");e["a"]={name:"QScrollArea",directives:{TouchPan:c["a"]},props:{thumbStyle:{type:Object,default:function(){return{}}},contentStyle:{type:Object,default:function(){return{}}},contentActiveStyle:{type:Object,default:function(){return{}}},delay:{type:Number,default:1e3}},data:function(){return{active:!1,hover:!1,containerHeight:0,scrollPosition:0,scrollHeight:0}},computed:{thumbHidden:function(){return this.scrollHeight<=this.containerHeight||!this.active&&!this.hover},thumbHeight:function(){return Math.round(Object(i["a"])(this.containerHeight*this.containerHeight/this.scrollHeight,50,this.containerHeight))},style:function(){var t=this.scrollPercentage*(this.containerHeight-this.thumbHeight);return Object.assign({},this.thumbStyle,{top:"".concat(t,"px"),height:"".concat(this.thumbHeight,"px")})},mainStyle:function(){return this.thumbHidden?this.contentStyle:this.contentActiveStyle},scrollPercentage:function(){var t=Object(i["a"])(this.scrollPosition/(this.scrollHeight-this.containerHeight),0,1);return Math.round(1e4*t)/1e4}},methods:{setScrollPosition:function(t,e){Object(s["e"])(this.$refs.target,t,e)},__updateContainer:function(t){var e=t.height;this.containerHeight!==e&&(this.containerHeight=e,this.__setActive(!0,!0))},__updateScroll:function(t){var e=t.position;this.scrollPosition!==e&&(this.scrollPosition=e,this.__setActive(!0,!0))},__updateScrollHeight:function(t){var e=t.height;this.scrollHeight!==e&&(this.scrollHeight=e,this.__setActive(!0,!0))},__panThumb:function(t){t.isFirst&&(this.refPos=this.scrollPosition,this.__setActive(!0,!0),document.body.classList.add("non-selectable"),document.selection?document.selection.empty():window.getSelection&&window.getSelection().removeAllRanges()),t.isFinal&&(this.__setActive(!1),document.body.classList.remove("non-selectable"));var e=(this.scrollHeight-this.containerHeight)/(this.containerHeight-this.thumbHeight);this.$refs.target.scrollTop=this.refPos+("down"===t.direction?1:-1)*t.distance.y*e},__panContainer:function(t){t.isFirst&&(this.refPos=this.scrollPosition,this.__setActive(!0,!0)),t.isFinal&&this.__setActive(!1);var e=this.refPos+("down"===t.direction?-1:1)*t.distance.y;this.$refs.target.scrollTop=e,e>0&&e+this.containerHeight0&&e.scrollTop+this.containerHeight=i/2?(a<0?-1:1)*i:0)-a,r&&(o=parseFloat(o.toFixed(r))),Object(s["a"])(o,e,n)}var h={directives:{TouchPan:a["a"]},props:{min:{type:Number,default:1},max:{type:Number,default:5},step:{type:Number,default:1},decimals:Number,snap:Boolean,markers:Boolean,label:Boolean,labelAlways:Boolean,square:Boolean,color:String,fillHandleAlways:Boolean,error:Boolean,warning:Boolean,readonly:Boolean,disable:Boolean},computed:{editable:function(){return!this.disable&&!this.readonly},classes:function(){var t={disabled:this.disable,readonly:this.readonly,"label-always":this.labelAlways,"has-error":this.error,"has-warning":this.warning};return this.error||this.warning||!this.color||(t["text-".concat(this.color)]=!0),t},markersLen:function(){return(this.max-this.min)/this.step+1},labelColor:function(){return this.error?"negative":this.warning?"warning":this.color||"primary"},computedDecimals:function(){return void 0!==this.decimals?this.decimals||0:(String(this.step).trim("0").split(".")[1]||"").length},computedStep:function(){return void 0!==this.decimals?1/Math.pow(10,this.decimals||0):this.step}},methods:{__pan:function(t){var e=this;t.isFinal?this.dragging&&(this.dragTimer=setTimeout(function(){e.dragging=!1},100),this.__end(t.evt),this.__update(!0)):t.isFirst?(clearTimeout(this.dragTimer),this.dragging=this.__getDragging(t.evt)):this.dragging&&(this.__move(t.evt),this.__update())},__update:function(t){var e=this;JSON.stringify(this.model)!==JSON.stringify(this.value)&&(this.$emit("input",this.model),t&&this.$nextTick(function(){JSON.stringify(e.model)!==JSON.stringify(e.value)&&e.$emit("change",e.model)}))},__click:function(t){if(!this.dragging){var e=this.__getDragging(t);e&&(this.__end(t,e),this.__update(!0))}},__getMarkers:function(t){if(this.markers){for(var e=[],n=0;nthis.max?this.model=this.max:this.model=t,this.currentPercentage=(this.model-this.min)/(this.max-this.min))},min:function(t){this.modelt?this.model=t:this.$nextTick(this.__validateProps)},step:function(){this.$nextTick(this.__validateProps)}},methods:{__getDragging:function(t){var e=this.$refs.handle;return{left:e.getBoundingClientRect().left,width:e.offsetWidth}},__move:function(t){var e=c(t,this.dragging,this.$q.i18n.rtl);this.currentPercentage=e,this.model=u(e,this.min,this.max,this.step,this.computedDecimals)},__end:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.dragging,n=c(t,e,this.$q.i18n.rtl);this.model=u(n,this.min,this.max,this.step,this.computedDecimals),this.currentPercentage=(this.model-this.min)/(this.max-this.min)},__onKeyDown:function(t){var e=t.keyCode;if(this.editable&&[37,40,39,38].includes(e)){Object(o["g"])(t);var n=this.computedDecimals,i=t.ctrlKey?10*this.computedStep:this.computedStep,r=[37,40].includes(e)?-i:i,a=n?parseFloat((this.model+r).toFixed(n)):this.model+r;this.model=Object(s["a"])(a,this.min,this.max),this.currentPercentage=(this.model-this.min)/(this.max-this.min),this.__update()}},__onKeyUp:function(t){var e=t.keyCode;this.editable&&[37,40,39,38].includes(e)&&this.__update(!0)},__validateProps:function(){this.min>=this.max?console.error("Range error: min >= max",this.$el,this.min,this.max):l((this.max-this.min)/this.step,this.computedDecimals)&&console.error("Range error: step must be a divisor of max - min",this.min,this.max,this.step,this.computedDecimals)},__getContent:function(t){var e;return[t("div",{staticClass:"q-slider-track active-track",style:{width:this.percentage},class:{"no-transition":this.dragging,"handle-at-minimum":this.model===this.min}}),t("div",{staticClass:"q-slider-handle",style:(e={},r()(e,this.$q.i18n.rtl?"right":"left",this.percentage),r()(e,"borderRadius",this.square?"0":"50%"),e),class:{dragging:this.dragging,"handle-at-minimum":!this.fillHandleAlways&&this.model===this.min},attrs:{tabindex:this.$q.platform.is.desktop?this.editable?0:-1:void 0},on:{keydown:this.__onKeyDown,keyup:this.__onKeyUp}},[this.label||this.labelAlways?t(d["a"],{staticClass:"q-slider-label no-pointer-events",class:{"label-always":this.labelAlways},props:{pointing:"down",square:!0,dense:!0,color:this.labelColor}},[this.displayValue]):null,t("div",{staticClass:"q-slider-ring"})])]}}}},9523:function(t,e,n){var i=n("0a75");function r(t,e,n){return e in t?i(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}t.exports=r},"953c":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n("7b52"),r=n("78c4"),s=n("2709"),o=n("85e4"),a=n("e834"),c=n("c73a");class l{constructor(){l.constructor_.apply(this,arguments)}static constructor_(){this._geom=null;const t=arguments[0];this._geom=t}static locatePointInPolygon(t,e){if(e.isEmpty())return i["a"].EXTERIOR;const n=e.getExteriorRing(),r=l.locatePointInRing(t,n);if(r!==i["a"].INTERIOR)return r;for(let s=0;s=2&&e%10<=4&&(e%100<10||e%100>=20)?n[1]:n[2]}function n(t,n,i){var r={ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return"m"===i?n?"минута":"минуту":t+" "+e(r[i],+t)}var i=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],r=t.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:i,longMonthsParse:i,shortMonthsParse:i,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(t){if(t.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(t){if(t.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:n,m:n,mm:n,h:"час",hh:n,d:"день",dd:n,w:"неделя",ww:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(t){return/^(дня|вечера)$/.test(t)},meridiem:function(t,e,n){return t<4?"ночи":t<12?"утра":t<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":return t+"-й";case"D":return t+"-го";case"w":case"W":return t+"-я";default:return t}},week:{dow:1,doy:4}});return r})},"958b":function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration @@ -220,22 +227,22 @@ function e(t,e,n,i){switch(n){case"s":return e?"хэдхэн секунд":"хэ //! moment.js locale configuration var e={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"},n=t.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(t){var n=t%10,i=t>=100?100:null;return t+(e[t]||e[n]||e[i])},week:{dow:1,doy:7}});return n})},9671:function(t,e,n){"use strict";var i=Function.prototype.call,r=Object.prototype.hasOwnProperty,s=n("0f7c");t.exports=s.call(i,r)},9686:function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration -var e={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"},i=t.defineLocale("bn-bd",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(t){return t.replace(/[১২৩৪৫৬৭৮৯০]/g,function(t){return n[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,meridiemHour:function(t,e){return 12===t&&(t=0),"রাত"===e?t<4?t:t+12:"ভোর"===e?t:"সকাল"===e?t:"দুপুর"===e?t>=3?t:t+12:"বিকাল"===e?t+12:"সন্ধ্যা"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"রাত":t<6?"ভোর":t<12?"সকাল":t<15?"দুপুর":t<18?"বিকাল":t<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}});return i})},"968e":function(t,e,n){"use strict";n.d(e,"a",function(){return i});class i{static arraycopy(t,e,n,i,r){let s=0;for(let o=e;o=0;--s){var o=this.tryEntries[s],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(c&&l){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;C(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:D(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=n),_}}}function b(t,e,n,i){var r=e&&e.prototype instanceof w?e:w,s=Object.create(r.prototype),o=new I(i||[]);return s._invoke=S(t,n,o),s}function M(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function w(){}function x(){}function L(){}function E(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function T(t){function n(e,i,s,o){var a=M(t[e],t,i);if("throw"!==a.type){var c=a.arg,l=c.value;return l&&"object"===typeof l&&r.call(l,"__await")?Promise.resolve(l.__await).then(function(t){n("next",t,s,o)},function(t){n("throw",t,s,o)}):Promise.resolve(l).then(function(t){c.value=t,s(c)},o)}o(a.arg)}var i;function s(t,e){function r(){return new Promise(function(i,r){n(t,e,i,r)})}return i=i?i.then(r,r):r()}"object"===typeof e.process&&e.process.domain&&(n=e.process.domain.bind(n)),this._invoke=s}function S(t,e,n){var i=h;return function(r,s){if(i===f)throw new Error("Generator is already running");if(i===p){if("throw"===r)throw s;return R()}n.method=r,n.arg=s;while(1){var o=n.delegate;if(o){var a=O(o,n);if(a){if(a===_)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=f;var c=M(t,e,n);if("normal"===c.type){if(i=n.done?p:d,c.arg===_)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=p,n.method="throw",n.arg=c.arg)}}}function O(t,e){var i=t.iterator[e.method];if(i===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,O(t,e),"throw"===e.method))return _;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return _}var r=M(i,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,_;var s=r.arg;return s?s.done?(e[t.resultName]=s.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,_):s:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,_)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function D(t){if(t){var e=t[o];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var i=-1,s=function e(){while(++i=3?t:t+12:"বিকাল"===e?t+12:"সন্ধ্যা"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"রাত":t<6?"ভোর":t<12?"সকাল":t<15?"দুপুর":t<18?"বিকাল":t<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}});return i})},"968e":function(t,e,n){"use strict";n.d(e,"a",function(){return i});class i{static arraycopy(t,e,n,i,r){let s=0;for(let o=e;o=0;--i){var s=this.tryEntries[i],o=s.completion;if("root"===s.tryLoc)return n("end");if(s.tryLoc<=this.prev){var a=r.call(s,"catchLoc"),c=r.call(s,"finallyLoc");if(a&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;T(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:O(t),resultName:e,nextLoc:n},p}}}function m(t,e,n,i){var r=e&&e.prototype instanceof y?e:y,s=Object.create(r.prototype),o=new S(i||[]);return s._invoke=L(t,n,o),s}function g(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function y(){}function v(){}function b(){}function M(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function w(t){this.arg=t}function x(t){function e(n,i,r,s){var o=g(t[n],t,i);if("throw"!==o.type){var a=o.arg,c=a.value;return c instanceof w?Promise.resolve(c.arg).then(function(t){e("next",t,r,s)},function(t){e("throw",t,r,s)}):Promise.resolve(c).then(function(t){a.value=t,r(a)},s)}s(o.arg)}var i;function r(t,n){function r(){return new Promise(function(i,r){e(t,n,i,r)})}return i=i?i.then(r,r):r()}"object"===typeof n&&n.domain&&(e=n.domain.bind(e)),this._invoke=r}function L(t,e,n){var r=u;return function(s,o){if(r===d)throw new Error("Generator is already running");if(r===f){if("throw"===s)throw o;return k()}while(1){var a=n.delegate;if(a){if("return"===s||"throw"===s&&a.iterator[s]===i){n.delegate=null;var c=a.iterator["return"];if(c){var l=g(c,a.iterator,o);if("throw"===l.type){s="throw",o=l.arg;continue}}if("return"===s)continue}l=g(a.iterator[s],a.iterator,o);if("throw"===l.type){n.delegate=null,s="throw",o=l.arg;continue}s="next",o=i;var _=l.arg;if(!_.done)return r=h,_;n[a.resultName]=_.value,n.next=a.nextLoc,n.delegate=null}if("next"===s)n.sent=n._sent=o;else if("throw"===s){if(r===u)throw r=f,o;n.dispatchException(o)&&(s="next",o=i)}else"return"===s&&n.abrupt("return",o);r=d;l=g(t,e,n);if("normal"===l.type){r=n.done?f:h;_={value:l.arg,done:n.done};if(l.arg!==p)return _;n.delegate&&"next"===s&&(o=i)}else"throw"===l.type&&(r=f,s="throw",o=l.arg)}}}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function O(t){if(t){var e=t[o];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var n=-1,s=function e(){while(++n=20||t>=100&&t%100===0)&&(r=" de "),t+r+i[n]}var n=t.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:e,m:"un minut",mm:e,h:"o oră",hh:e,d:"o zi",dd:e,w:"o săptămână",ww:e,M:"o lună",MM:e,y:"un an",yy:e},week:{dow:1,doy:7}});return n})},9769:function(t,e,n){"use strict";n.d(e,"e",function(){return s}),n.d(e,"a",function(){return o}),n.d(e,"f",function(){return a}),n.d(e,"d",function(){return c}),n.d(e,"b",function(){return l}),n.d(e,"c",function(){return u});var i=n("7fc9");function r(t,e,n,r,s,o,a){var c,l=t[e],u=t[e+1],h=t[n]-l,d=t[n+1]-u;if(0===h&&0===d)c=e;else{var f=((s-l)*h+(o-u)*d)/(h*h+d*d);if(f>1)c=n;else{if(f>0){for(var p=0;ps&&(s=u),o=c,a=l}return s}function o(t,e,n,i,r){for(var o=0,a=n.length;o20?n=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(n=i[e]),t+n},week:{dow:1,doy:4}});return e})},"97a1":function(t,e,n){},"97a2":function(t,e,n){"use strict";function i(){this._listeners={}}i.prototype.addEventListener=function(t,e){t in this._listeners||(this._listeners[t]=[]);var n=this._listeners[t];-1===n.indexOf(e)&&(n=n.concat([e])),this._listeners[t]=n},i.prototype.removeEventListener=function(t,e){var n=this._listeners[t];if(n){var i=n.indexOf(e);-1===i||(n.length>1?this._listeners[t]=n.slice(0,i).concat(n.slice(i+1)):delete this._listeners[t])}},i.prototype.dispatchEvent=function(){var t=arguments[0],e=t.type,n=1===arguments.length?[t]:Array.apply(null,arguments);if(this["on"+e]&&this["on"+e].apply(this,n),e in this._listeners)for(var i=this._listeners[e],r=0;r0){if(s<=0)return o.signum(a);i=r+s}else{if(!(r<0))return o.signum(a);if(s>=0)return o.signum(a);i=-r-s}const c=o.DP_SAFE_EPSILON*i;return a>=c||-a>=c?o.signum(a):2}static signum(t){return t>0?1:t<0?-1:0}}o.DP_SAFE_EPSILON=1e-15},"9a83":function(t,e,n){"use strict";function i(t){this.type=t}i.prototype.initEvent=function(t,e,n){return this.type=t,this.bubbles=e,this.cancelable=n,this.timeStamp=+new Date,this},i.prototype.stopPropagation=function(){},i.prototype.preventDefault=function(){},i.CAPTURING_PHASE=1,i.AT_TARGET=2,i.BUBBLING_PHASE=3,t.exports=i},"9aa9":function(t,e){e.f=Object.getOwnPropertySymbols},"9abc":function(t,e,n){"use strict";n.d(e,"b",function(){return d});var i=n("1300"),r=n("0af5"),s=n("8f37"),o=n("521b"),a=n("bef8"),c=n("38f3"),l=function(t){function e(){t.call(this),this.layout=o["a"].XY,this.stride=2,this.flatCoordinates=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.computeExtent=function(t){return Object(r["o"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinates=function(){return Object(i["b"])()},e.prototype.getFirstCoordinate=function(){return this.flatCoordinates.slice(0,this.stride)},e.prototype.getFlatCoordinates=function(){return this.flatCoordinates},e.prototype.getLastCoordinate=function(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)},e.prototype.getLayout=function(){return this.layout},e.prototype.getSimplifiedGeometry=function(t){if(this.simplifiedGeometryRevision!=this.getRevision()&&(Object(c["b"])(this.simplifiedGeometryCache),this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;var e=t.toString();if(this.simplifiedGeometryCache.hasOwnProperty(e))return this.simplifiedGeometryCache[e];var n=this.getSimplifiedGeometryInternal(t),i=n.getFlatCoordinates();return i.length0?r(i(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"9e58":function(t,e,n){"use strict";n("551c"),n("f751"),n("28a5");var i=n("0707"),r=n("52b5"),s=n("482e"),o=n("1731"),a=n("b5b8");e["a"]={name:"QBtnDropdown",mixins:[i["a"]],props:{value:Boolean,split:Boolean,contentClass:[Array,String,Object],contentStyle:[Array,String,Object],popoverAnchor:{type:String,default:"bottom right"},popoverSelf:{type:String,default:"top right"}},data:function(){return{showing:this.value}},watch:{value:function(t){this.$refs.popover&&this.$refs.popover[t?"show":"hide"]()}},render:function(t){var e=this,n=t(a["a"],{ref:"popover",props:{disable:this.disable,fit:!0,anchorClick:!this.split,anchor:this.popoverAnchor,self:this.popoverSelf},class:this.contentClass,style:this.contentStyle,on:{show:function(t){e.showing=!0,e.$emit("show",t),e.$emit("input",!0)},hide:function(t){e.showing=!1,e.$emit("hide",t),e.$emit("input",!1)}}},this.$slots.default),i=t(r["a"],{props:{name:this.$q.icon.input.dropdown},staticClass:"transition-generic",class:{"rotate-180":this.showing,"on-right":!this.split,"q-btn-dropdown-arrow":!this.split}}),c=t(s["a"],{props:Object.assign({},this.$props,{iconRight:this.split?this.iconRight:null}),class:this.split?"q-btn-dropdown-current":"q-btn-dropdown q-btn-dropdown-simple",on:{click:function(t){e.split&&e.hide(),e.disable||e.$emit("click",t)}}},this.split?null:[i,n]);return this.split?t(o["a"],{props:{outline:this.outline,flat:this.flat,rounded:this.rounded,push:this.push},staticClass:"q-btn-dropdown q-btn-dropdown-split no-wrap q-btn-item"},[c,t(s["a"],{props:{disable:this.disable,outline:this.outline,flat:this.flat,rounded:this.rounded,push:this.push,size:this.size,color:this.color,textColor:this.textColor,dense:this.dense,glossy:this.glossy,noRipple:this.noRipple,waitForRipple:this.waitForRipple},staticClass:"q-btn-dropdown-arrow",on:{click:function(){e.toggle()}}},[i]),[n]]):c},methods:{toggle:function(){return this.$refs.popover?this.$refs.popover.toggle():Promise.resolve()},show:function(){return this.$refs.popover?this.$refs.popover.show():Promise.resolve()},hide:function(){return this.$refs.popover?this.$refs.popover.hide():Promise.resolve()}},mounted:function(){var t=this;this.$nextTick(function(){t.value&&t.$refs.popover&&t.$refs.popover.show()})}}},"9e6a":function(t,e,n){"use strict";var i=n("d233"),r=Object.prototype.hasOwnProperty,s=Array.isArray,o={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:i.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},a=function(t){return t.replace(/&#(\d+);/g,function(t,e){return String.fromCharCode(parseInt(e,10))})},c=function(t,e){return t&&"string"===typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},l="utf8=%26%2310003%3B",u="utf8=%E2%9C%93",h=function(t,e){var n={__proto__:null},h=e.ignoreQueryPrefix?t.replace(/^\?/,""):t;h=h.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var d,f=e.parameterLimit===1/0?void 0:e.parameterLimit,p=h.split(e.delimiter,f),_=-1,m=e.charset;if(e.charsetSentinel)for(d=0;d-1&&(y=s(y)?[y]:y);var w=r.call(n,g);w&&"combine"===e.duplicates?n[g]=i.combine(n[g],y):w&&"last"!==e.duplicates||(n[g]=y)}return n},d=function(t,e,n,i){for(var r=i?e:c(e,n),s=t.length-1;s>=0;--s){var o,a=t[s];if("[]"===a&&n.parseArrays)o=n.allowEmptyArrays&&(""===r||n.strictNullHandling&&null===r)?[]:[].concat(r);else{o=n.plainObjects?Object.create(null):{};var l="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,u=n.decodeDotInKeys?l.replace(/%2E/g,"."):l,h=parseInt(u,10);n.parseArrays||""!==u?!isNaN(h)&&a!==u&&String(h)===u&&h>=0&&n.parseArrays&&h<=n.arrayLimit?(o=[],o[h]=r):"__proto__"!==u&&(o[u]=r):o={0:r}}r=o}return r},f=function(t,e,n,i){if(t){var s=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,c=n.depth>0&&o.exec(s),l=c?s.slice(0,c.index):s,u=[];if(l){if(!n.plainObjects&&r.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}var h=0;while(n.depth>0&&null!==(c=a.exec(s))&&he.x?t.x:e.x,l=t.y>e.y?t.y:e.y,u=n.xs.x?n.x:s.x,f=n.y>s.y?n.y:s.y,p=o>u?o:u,_=ch?a:h,g=l20?n=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(n=i[e]),t+n},week:{dow:1,doy:4}});return e})},"97a1":function(t,e,n){},"97a2":function(t,e,n){"use strict";function i(){this._listeners={}}i.prototype.addEventListener=function(t,e){t in this._listeners||(this._listeners[t]=[]);var n=this._listeners[t];-1===n.indexOf(e)&&(n=n.concat([e])),this._listeners[t]=n},i.prototype.removeEventListener=function(t,e){var n=this._listeners[t];if(n){var i=n.indexOf(e);-1===i||(n.length>1?this._listeners[t]=n.slice(0,i).concat(n.slice(i+1)):delete this._listeners[t])}},i.prototype.dispatchEvent=function(){var t=arguments[0],e=t.type,n=1===arguments.length?[t]:Array.apply(null,arguments);if(this["on"+e]&&this["on"+e].apply(this,n),e in this._listeners)for(var i=this._listeners[e],r=0;r0){if(s<=0)return o.signum(a);i=r+s}else{if(!(r<0))return o.signum(a);if(s>=0)return o.signum(a);i=-r-s}const c=o.DP_SAFE_EPSILON*i;return a>=c||-a>=c?o.signum(a):2}static signum(t){return t>0?1:t<0?-1:0}}o.DP_SAFE_EPSILON=1e-15},"9a83":function(t,e,n){"use strict";function i(t){this.type=t}i.prototype.initEvent=function(t,e,n){return this.type=t,this.bubbles=e,this.cancelable=n,this.timeStamp=+new Date,this},i.prototype.stopPropagation=function(){},i.prototype.preventDefault=function(){},i.CAPTURING_PHASE=1,i.AT_TARGET=2,i.BUBBLING_PHASE=3,t.exports=i},"9aa9":function(t,e){e.f=Object.getOwnPropertySymbols},"9abc":function(t,e,n){"use strict";n.d(e,"b",function(){return d});var i=n("1300"),r=n("0af5"),s=n("8f37"),o=n("521b"),a=n("bef8"),c=n("38f3"),l=function(t){function e(){t.call(this),this.layout=o["a"].XY,this.stride=2,this.flatCoordinates=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.computeExtent=function(t){return Object(r["o"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinates=function(){return Object(i["b"])()},e.prototype.getFirstCoordinate=function(){return this.flatCoordinates.slice(0,this.stride)},e.prototype.getFlatCoordinates=function(){return this.flatCoordinates},e.prototype.getLastCoordinate=function(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)},e.prototype.getLayout=function(){return this.layout},e.prototype.getSimplifiedGeometry=function(t){if(this.simplifiedGeometryRevision!=this.getRevision()&&(Object(c["b"])(this.simplifiedGeometryCache),this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;var e=t.toString();if(this.simplifiedGeometryCache.hasOwnProperty(e))return this.simplifiedGeometryCache[e];var n=this.getSimplifiedGeometryInternal(t),i=n.getFlatCoordinates();return i.length0?r(i(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"9e58":function(t,e,n){"use strict";n("551c"),n("f751"),n("28a5");var i=n("0707"),r=n("52b5"),s=n("482e"),o=n("1731"),a=n("b5b8");e["a"]={name:"QBtnDropdown",mixins:[i["a"]],props:{value:Boolean,split:Boolean,contentClass:[Array,String,Object],contentStyle:[Array,String,Object],popoverAnchor:{type:String,default:"bottom right"},popoverSelf:{type:String,default:"top right"}},data:function(){return{showing:this.value}},watch:{value:function(t){this.$refs.popover&&this.$refs.popover[t?"show":"hide"]()}},render:function(t){var e=this,n=t(a["a"],{ref:"popover",props:{disable:this.disable,fit:!0,anchorClick:!this.split,anchor:this.popoverAnchor,self:this.popoverSelf},class:this.contentClass,style:this.contentStyle,on:{show:function(t){e.showing=!0,e.$emit("show",t),e.$emit("input",!0)},hide:function(t){e.showing=!1,e.$emit("hide",t),e.$emit("input",!1)}}},this.$slots.default),i=t(r["a"],{props:{name:this.$q.icon.input.dropdown},staticClass:"transition-generic",class:{"rotate-180":this.showing,"on-right":!this.split,"q-btn-dropdown-arrow":!this.split}}),c=t(s["a"],{props:Object.assign({},this.$props,{iconRight:this.split?this.iconRight:null}),class:this.split?"q-btn-dropdown-current":"q-btn-dropdown q-btn-dropdown-simple",on:{click:function(t){e.split&&e.hide(),e.disable||e.$emit("click",t)}}},this.split?null:[i,n]);return this.split?t(o["a"],{props:{outline:this.outline,flat:this.flat,rounded:this.rounded,push:this.push},staticClass:"q-btn-dropdown q-btn-dropdown-split no-wrap q-btn-item"},[c,t(s["a"],{props:{disable:this.disable,outline:this.outline,flat:this.flat,rounded:this.rounded,push:this.push,size:this.size,color:this.color,textColor:this.textColor,dense:this.dense,glossy:this.glossy,noRipple:this.noRipple,waitForRipple:this.waitForRipple},staticClass:"q-btn-dropdown-arrow",on:{click:function(){e.toggle()}}},[i]),[n]]):c},methods:{toggle:function(){return this.$refs.popover?this.$refs.popover.toggle():Promise.resolve()},show:function(){return this.$refs.popover?this.$refs.popover.show():Promise.resolve()},hide:function(){return this.$refs.popover?this.$refs.popover.hide():Promise.resolve()}},mounted:function(){var t=this;this.$nextTick(function(){t.value&&t.$refs.popover&&t.$refs.popover.show()})}}},"9e6a":function(t,e,n){"use strict";var i=n("d233"),r=Object.prototype.hasOwnProperty,s=Array.isArray,o={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:i.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},a=function(t){return t.replace(/&#(\d+);/g,function(t,e){return String.fromCharCode(parseInt(e,10))})},c=function(t,e){return t&&"string"===typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},l="utf8=%26%2310003%3B",u="utf8=%E2%9C%93",h=function(t,e){var n={__proto__:null},h=e.ignoreQueryPrefix?t.replace(/^\?/,""):t;h=h.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var d,f=e.parameterLimit===1/0?void 0:e.parameterLimit,p=h.split(e.delimiter,f),_=-1,m=e.charset;if(e.charsetSentinel)for(d=0;d-1&&(y=s(y)?[y]:y);var w=r.call(n,g);w&&"combine"===e.duplicates?n[g]=i.combine(n[g],y):w&&"last"!==e.duplicates||(n[g]=y)}return n},d=function(t,e,n,i){for(var r=i?e:c(e,n),s=t.length-1;s>=0;--s){var o,a=t[s];if("[]"===a&&n.parseArrays)o=n.allowEmptyArrays&&(""===r||n.strictNullHandling&&null===r)?[]:[].concat(r);else{o=n.plainObjects?{__proto__:null}:{};var l="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,u=n.decodeDotInKeys?l.replace(/%2E/g,"."):l,h=parseInt(u,10);n.parseArrays||""!==u?!isNaN(h)&&a!==u&&String(h)===u&&h>=0&&n.parseArrays&&h<=n.arrayLimit?(o=[],o[h]=r):"__proto__"!==u&&(o[u]=r):o={0:r}}r=o}return r},f=function(t,e,n,i){if(t){var s=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,c=n.depth>0&&o.exec(s),l=c?s.slice(0,c.index):s,u=[];if(l){if(!n.plainObjects&&r.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}var h=0;while(n.depth>0&&null!==(c=a.exec(s))&&he.x?t.x:e.x,l=t.y>e.y?t.y:e.y,u=n.xs.x?n.x:s.x,f=n.y>s.y?n.y:s.y,p=o>u?o:u,_=ch?a:h,g=l>1),s=+o(t[i],e),s<0?a=i+1:(c=i,l=!s);return l?a:~a}function r(t,e){return t>e?1:t=0}function o(t,e,n){var i,r=t.length;if(t[0]<=e)return 0;if(e<=t[r-1])return r-1;if(n>0){for(i=1;i-1;return i&&t.splice(n,1),i}function u(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i0||n&&0===s)})}n.d(e,"a",function(){return i}),n.d(e,"g",function(){return r}),n.d(e,"d",function(){return s}),n.d(e,"f",function(){return o}),n.d(e,"i",function(){return a}),n.d(e,"c",function(){return c}),n.d(e,"h",function(){return l}),n.d(e,"b",function(){return u}),n.d(e,"j",function(){return h}),n.d(e,"e",function(){return d})},"9fa7":function(t,e,n){"use strict";var i=n("621f"),r=n("c282"),s=n("930c"),o=n("bb31"),a=n("c529"),c=n("f1f8"),l=n("a0e2"),u=function(){};t.exports=function(t,e){var n,h={};e.forEach(function(t){t.facadeTransport&&(h[t.facadeTransport.transportName]=t.facadeTransport)}),h[a.transportName]=a,t.bootstrap_iframe=function(){var e;c.currentWindowId=l.hash.slice(1);var a=function(r){if(r.source===parent&&("undefined"===typeof n&&(n=r.origin),r.origin===n)){var a;try{a=s.parse(r.data)}catch(t){return void u("bad json",r.data)}if(a.windowId===c.currentWindowId)switch(a.type){case"s":var d;try{d=s.parse(a.data)}catch(t){u("bad json",a.data);break}var f=d[0],p=d[1],_=d[2],m=d[3];if(u(f,p,_,m),f!==t.version)throw new Error('Incompatible SockJS! Main site uses: "'+f+'", the iframe: "'+t.version+'".');if(!i.isOriginEqual(_,l.href)||!i.isOriginEqual(m,l.href))throw new Error("Can't connect to different domain from within an iframe. ("+l.href+", "+_+", "+m+")");e=new o(new h[p](_,m));break;case"m":e._send(a.data);break;case"c":e&&e._close(),e=null;break}}};r.attachEvent("message",a),c.postMessage("s")}}},"9fe0":function(t,e,n){"use strict";e["a"]=function(t){var e=JSON.stringify(t);if(e)return JSON.parse(e)}},"9ff4":function(t,e,n){"use strict";n("28a5");e["a"]={lang:"en-us",label:{clear:"Clear",ok:"OK",cancel:"Cancel",close:"Close",set:"Set",select:"Select",reset:"Reset",remove:"Remove",update:"Update",create:"Create",search:"Search",filter:"Filter",refresh:"Refresh"},date:{days:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),daysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),firstDayOfWeek:0,format24h:!1},pullToRefresh:{pull:"Pull down to refresh",release:"Release to refresh",refresh:"Refreshing..."},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:function(t){return 1===t?"1 record selected.":(0===t?"No":t)+" records selected."},recordsPerPage:"Records per page:",allRows:"All",pagination:function(t,e,n){return t+"-"+e+" of "+n},columns:"Columns"},editor:{url:"URL",bold:"Bold",italic:"Italic",strikethrough:"Strikethrough",underline:"Underline",unorderedList:"Unordered List",orderedList:"Ordered List",subscript:"Subscript",superscript:"Superscript",hyperlink:"Hyperlink",toggleFullscreen:"Toggle Fullscreen",quote:"Quote",left:"Left align",center:"Center align",right:"Right align",justify:"Justify align",print:"Print",outdent:"Decrease indentation",indent:"Increase indentation",removeFormat:"Remove formatting",formatting:"Formatting",fontSize:"Font Size",align:"Align",hr:"Insert Horizontal Rule",undo:"Undo",redo:"Redo",header1:"Header 1",header2:"Header 2",header3:"Header 3",header4:"Header 4",header5:"Header 5",header6:"Header 6",paragraph:"Paragraph",code:"Code",size1:"Very small",size2:"A bit small",size3:"Normal",size4:"Medium-large",size5:"Big",size6:"Very big",size7:"Maximum",defaultFont:"Default Font"},tree:{noNodes:"No nodes available",noResults:"No matching nodes found"}}},a02c:function(t,e,n){"use strict";n.d(e,"a",function(){return p});var i=n("38de"),r=n("12dd"),s=n("2ac1"),o=n("7bd7"),a=n("3d80"),c=n("c191"),l=n("c9eb"),u=n("2513"),h=n("edde"),d=n("caca"),f=n("668c");class p extends c["a"]{constructor(){super(),p.constructor_.apply(this,arguments)}static constructor_(){this._coordinates=null;const t=arguments[0],e=arguments[1];c["a"].constructor_.call(this,e),this.init(t)}computeEnvelopeInternal(){if(this.isEmpty())return new d["a"];const t=new d["a"];return t.expandToInclude(this._coordinates.getX(0),this._coordinates.getY(0)),t}getCoordinates(){return this.isEmpty()?[]:[this.getCoordinate()]}copyInternal(){return new p(this._coordinates.copy(),this._factory)}equalsExact(){if(2===arguments.length&&"number"===typeof arguments[1]&&arguments[0]instanceof c["a"]){const t=arguments[0],e=arguments[1];return!!this.isEquivalentClass(t)&&(!(!this.isEmpty()||!t.isEmpty())||this.isEmpty()===t.isEmpty()&&this.equal(t.getCoordinate(),this.getCoordinate(),e))}return super.equalsExact.apply(this,arguments)}reverseInternal(){return this.getFactory().createPoint(this._coordinates.copy())}getTypeCode(){return c["a"].TYPECODE_POINT}getDimension(){return 0}getNumPoints(){return this.isEmpty()?0:1}getX(){if(null===this.getCoordinate())throw new a["a"]("getX called on empty Point");return this.getCoordinate().x}getBoundary(){return this.getFactory().createGeometryCollection()}getGeometryType(){return c["a"].TYPENAME_POINT}getCoordinateSequence(){return this._coordinates}getY(){if(null===this.getCoordinate())throw new a["a"]("getY called on empty Point");return this.getCoordinate().y}isSimple(){return!0}normalize(){}getCoordinate(){return 0!==this._coordinates.size()?this._coordinates.getCoordinate(0):null}getBoundaryDimension(){return s["a"].FALSE}compareToSameClass(){if(1===arguments.length){const t=arguments[0],e=t;return this.getCoordinate().compareTo(e.getCoordinate())}if(2===arguments.length){const t=arguments[0],e=arguments[1],n=t;return e.compare(this._coordinates,n._coordinates)}}apply(){if(Object(i["a"])(arguments[0],l["a"])){const t=arguments[0];if(this.isEmpty())return null;t.filter(this.getCoordinate())}else if(Object(i["a"])(arguments[0],h["a"])){const t=arguments[0];if(this.isEmpty())return null;t.filter(this._coordinates,0),t.isGeometryChanged()&&this.geometryChanged()}else if(Object(i["a"])(arguments[0],u["a"])){const t=arguments[0];t.filter(this)}else if(Object(i["a"])(arguments[0],r["a"])){const t=arguments[0];t.filter(this)}}isEmpty(){return 0===this._coordinates.size()}init(t){null===t&&(t=this.getFactory().getCoordinateSequenceFactory().create([])),f["a"].isTrue(t.size()<=1),this._coordinates=t}get interfaces_(){return[o["a"]]}}},a0e2:function(t,e,n){"use strict";(function(e){t.exports=e.location||{origin:"http://localhost:80",protocol:"http:",host:"localhost",port:80,href:"http://localhost/",hash:""}}).call(this,n("c8ba"))},a114:function(t,e,n){},a159:function(t,e,n){var i=n("e4ae"),r=n("7e90"),s=n("1691"),o=n("5559")("IE_PROTO"),a=function(){},c="prototype",l=function(){var t,e=n("1ec9")("iframe"),i=s.length,r="<",o=">";e.style.display="none",n("32fc").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(r+"script"+o+"document.F=Object"+r+"/script"+o),t.close(),l=t.F;while(i--)delete l[c][s[i]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(a[c]=i(t),n=new a,a[c]=null,n[o]=t):n=l(),void 0===e?n:r(n,e)}},a22a:function(t,e,n){var i=n("d864"),r=n("b0dc"),s=n("3702"),o=n("e4ae"),a=n("b447"),c=n("7cd6"),l={},u={};e=t.exports=function(t,e,n,h,d){var f,p,_,m,g=d?function(){return t}:c(t),y=i(n,h,e?2:1),v=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(s(g)){for(f=a(t.length);f>v;v++)if(m=e?y(o(p=t[v])[0],p[1]):y(t[v]),m===l||m===u)return m}else for(_=g.call(t);!(p=_.next()).done;)if(m=r(_,y,p.value,e),m===l||m===u)return m};e.BREAK=l,e.RETURN=u},a25f:function(t,e,n){var i=n("7726"),r=i.navigator;t.exports=r&&r.userAgent||""},a272:function(t,e,n){"use strict";n.d(e,"a",function(){return i});class i{constructor(t,e){this.low=e||0,this.high=t||0}static toBinaryString(t){let e,n="";for(e=2147483648;e>0;e>>>=1)n+=(t.high&e)===e?"1":"0";for(e=2147483648;e>0;e>>>=1)n+=(t.low&e)===e?"1":"0";return n}}},a2c7:function(t,e,n){"use strict";var i=n("0414"),r=n("1300"),s=n("57cb"),o=n("7fc9");function a(t){return function(e){return e?[Object(o["a"])(e[0],t[0],t[2]),Object(o["a"])(e[1],t[1],t[3])]:void 0}}function c(t){return t}var l=n("e269"),u=n("9f5e");function h(t){return function(e,n,i){if(void 0!==e){var r=Object(u["f"])(t,e,i);r=Object(o["a"])(r+n,0,t.length-1);var s=Math.floor(r);if(r!=s&&s1&&"function"===typeof arguments[i-1]&&(e=arguments[i-1],--i),!this.isDef()){var r=arguments[i-1];return r.center&&this.setCenter(r.center),void 0!==r.zoom&&this.setZoom(r.zoom),void 0!==r.rotation&&this.setRotation(r.rotation),void(e&&S(e,!0))}for(var s=Date.now(),a=this.getCenter().slice(),c=this.getResolution(),l=this.getRotation(),u=[],h=0;h0},e.prototype.getInteracting=function(){return this.hints_[p["a"].INTERACTING]>0},e.prototype.cancelAnimations=function(){this.setHint(p["a"].ANIMATING,-this.hints_[p["a"].ANIMATING]);for(var t=0,e=this.animations_.length;t=0;--n){for(var i=this.animations_[n],r=!0,s=0,a=i.length;s0?l/c.duration:1;u>=1?(c.complete=!0,u=1):r=!1;var h=c.easing(u);if(c.sourceCenter){var d=c.sourceCenter[0],f=c.sourceCenter[1],m=c.targetCenter[0],g=c.targetCenter[1],y=d+h*(m-d),v=f+h*(g-f);this.set(_.CENTER,[y,v])}if(c.sourceResolution&&c.targetResolution){var b=1===h?c.targetResolution:c.sourceResolution+h*(c.targetResolution-c.sourceResolution);c.anchor&&this.set(_.CENTER,this.calculateCenterZoom(b,c.anchor)),this.set(_.RESOLUTION,b)}if(void 0!==c.sourceRotation&&void 0!==c.targetRotation){var M=1===h?Object(o["d"])(c.targetRotation+Math.PI,2*Math.PI)-Math.PI:c.sourceRotation+h*(c.targetRotation-c.sourceRotation);c.anchor&&this.set(_.CENTER,this.calculateCenterRotate(M,c.anchor)),this.set(_.ROTATION,M)}if(e=!0,!c.complete)break}}if(r){this.animations_[n]=null,this.setHint(p["a"].ANIMATING,-1);var w=i[0].callback;w&&S(w,!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_))}},e.prototype.calculateCenterRotate=function(t,e){var n,i=this.getCenter();return void 0!==i&&(n=[i[0]-e[0],i[1]-e[1]],Object(g["f"])(n,t-this.getRotation()),Object(g["a"])(n,e)),n},e.prototype.calculateCenterZoom=function(t,e){var n,i=this.getCenter(),r=this.getResolution();if(void 0!==i&&void 0!==r){var s=e[0]-t*(e[0]-i[0])/r,o=e[1]-t*(e[1]-i[1])/r;n=[s,o]}return n},e.prototype.getSizeFromViewport_=function(){var t=[100,100],e='.ol-viewport[data-view="'+Object(r["c"])(this)+'"]',n=document.querySelector(e);if(n){var i=getComputedStyle(n);t[0]=parseInt(i.width,10),t[1]=parseInt(i.height,10)}return t},e.prototype.constrainCenter=function(t){return this.constraints_.center(t)},e.prototype.constrainResolution=function(t,e,n){var i=e||0,r=n||0;return this.constraints_.resolution(t,i,r)},e.prototype.constrainRotation=function(t,e){var n=e||0;return this.constraints_.rotation(t,n)},e.prototype.getCenter=function(){return this.get(_.CENTER)},e.prototype.getConstraints=function(){return this.constraints_},e.prototype.getHints=function(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()},e.prototype.calculateExtent=function(t){var e=t||this.getSizeFromViewport_(),n=this.getCenter();Object(m["a"])(n,1);var i=this.getResolution();Object(m["a"])(void 0!==i,2);var r=this.getRotation();return Object(m["a"])(void 0!==r,3),Object(v["z"])(n,i,r,e)},e.prototype.getMaxResolution=function(){return this.maxResolution_},e.prototype.getMinResolution=function(){return this.minResolution_},e.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},e.prototype.setMaxZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))},e.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},e.prototype.setMinZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))},e.prototype.getProjection=function(){return this.projection_},e.prototype.getResolution=function(){return this.get(_.RESOLUTION)},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,e){var n=e||this.getSizeFromViewport_(),i=Object(v["E"])(t)/n[0],r=Object(v["A"])(t)/n[1];return Math.max(i,r)},e.prototype.getResolutionForValueFunction=function(t){var e=t||2,n=this.maxResolution_,i=this.minResolution_,r=Math.log(n/i)/Math.log(e);return function(t){var i=n/Math.pow(e,t*r);return i}},e.prototype.getRotation=function(){return this.get(_.ROTATION)},e.prototype.getValueForResolutionFunction=function(t){var e=t||2,n=this.maxResolution_,i=this.minResolution_,r=Math.log(n/i)/Math.log(e);return function(t){var i=Math.log(n/t)/Math.log(e)/r;return i}},e.prototype.getState=function(t){var e=this.getCenter(),n=this.getProjection(),i=this.getResolution(),r=i/t,s=this.getRotation();return{center:[Math.round(e[0]/r)*r,Math.round(e[1]/r)*r],projection:void 0!==n?n:null,resolution:i,rotation:s,zoom:this.getZoom()}},e.prototype.getZoom=function(){var t,e=this.getResolution();return void 0!==e&&(t=this.getZoomForResolution(e)),t},e.prototype.getZoomForResolution=function(t){var e,n,i=this.minZoom_||0;if(this.resolutions_){var r=Object(u["f"])(this.resolutions_,t,1);i=r,e=this.resolutions_[r],n=r==this.resolutions_.length-1?2:e/this.resolutions_[r+1]}else e=this.maxResolution_,n=this.zoomFactor_;return i+Math.log(e/t)/Math.log(n)},e.prototype.getResolutionForZoom=function(t){return this.constrainResolution(this.maxResolution_,t-this.minZoom_,0)},e.prototype.fit=function(t,e){var n,i=e||{},r=i.size;r||(r=this.getSizeFromViewport_()),Object(m["a"])(Array.isArray(t)||"function"===typeof t.getSimplifiedGeometry,24),Array.isArray(t)?(Object(m["a"])(!Object(v["H"])(t),25),n=Object(M["c"])(t)):t.getType()===b["a"].CIRCLE?(t=t.getExtent(),n=Object(M["c"])(t),n.rotate(this.getRotation(),Object(v["x"])(t))):n=t;var o,a=void 0!==i.padding?i.padding:[0,0,0,0],c=void 0===i.constrainResolution||i.constrainResolution,l=void 0!==i.nearest&&i.nearest;o=void 0!==i.minResolution?i.minResolution:void 0!==i.maxZoom?this.constrainResolution(this.maxResolution_,i.maxZoom-this.minZoom_,0):0;for(var u=n.getFlatCoordinates(),h=this.getRotation(),d=Math.cos(-h),f=Math.sin(-h),p=1/0,_=1/0,g=-1/0,y=-1/0,w=n.getStride(),x=0,L=u.length;x=3&&t%100<=10?3:t%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(t){return function(i,r,s,o){var a=e(i),c=n[t][e(i)];return 2===a&&(c=c[r?0:1]),c.replace(/%d/i,i)}},r=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],s=t.defineLocale("ar-dz",{months:r,monthsShort:r,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(t){return"م"===t},meridiem:function(t,e,n){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:0,doy:4}});return s})},a43f:function(t,e,n){"use strict";e["a"]={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature"}},a481:function(t,e,n){"use strict";var i=n("cb7c"),r=n("4bf8"),s=n("9def"),o=n("4588"),a=n("0390"),c=n("5f1b"),l=Math.max,u=Math.min,h=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g,p=function(t){return void 0===t?t:String(t)};n("214f")("replace",2,function(t,e,n,_){return[function(i,r){var s=t(this),o=void 0==i?void 0:i[e];return void 0!==o?o.call(i,s,r):n.call(String(s),i,r)},function(t,e){var r=_(n,t,this,e);if(r.done)return r.value;var h=i(t),d=String(this),f="function"===typeof e;f||(e=String(e));var g=h.global;if(g){var y=h.unicode;h.lastIndex=0}var v=[];while(1){var b=c(h,d);if(null===b)break;if(v.push(b),!g)break;var M=String(b[0]);""===M&&(h.lastIndex=a(d,s(h.lastIndex),y))}for(var w="",x=0,L=0;L=x&&(w+=d.slice(x,T)+I,x=T+E.length)}return w+d.slice(x)}];function m(t,e,i,s,o,a){var c=i+t.length,l=s.length,u=f;return void 0!==o&&(o=r(o),u=d),n.call(a,u,function(n,r){var a;switch(r.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,i);case"'":return e.slice(c);case"<":a=o[r.slice(1,-1)];break;default:var u=+r;if(0===u)return n;if(u>l){var d=h(u/10);return 0===d?n:d<=l?void 0===s[d-1]?r.charAt(1):s[d-1]+r.charAt(1):n}a=s[u-1]}return void 0===a?"":a})}})},a4a9:function(t,e,n){},a504:function(t,e,n){"use strict";n.d(e,"b",function(){return i}),n.d(e,"a",function(){return r});var i=.5,r=!0},a555:function(t,e,n){},a568:function(t,e,n){"use strict";n("7fc9");function i(t,e){return t[0]+=e[0],t[1]+=e[1],t}function r(t,e){var n,i,r=t[0],s=t[1],o=e[0],a=e[1],c=o[0],l=o[1],u=a[0],h=a[1],d=u-c,f=h-l,p=0===d&&0===f?0:(d*(r-c)+f*(s-l))/(d*d+f*f||0);return p<=0?(n=c,i=l):p>=1?(n=u,i=h):(n=c+p*d,i=l+p*f),[n,i]}function s(t){return function(e){return f(e,t)}}function o(t,e,n){return t?e.replace("{x}",t[0].toFixed(n)).replace("{y}",t[1].toFixed(n)):""}function a(t,e){for(var n=!0,i=t.length-1;i>=0;--i)if(t[i]!=e[i]){n=!1;break}return n}function c(t,e){var n=Math.cos(e),i=Math.sin(e),r=t[0]*n-t[1]*i,s=t[1]*n+t[0]*i;return t[0]=r,t[1]=s,t}function l(t,e){return t[0]*=e,t[1]*=e,t}function u(t,e){var n=t[0]-e[0],i=t[1]-e[1];return n*n+i*i}function h(t,e){return Math.sqrt(u(t,e))}function d(t,e){return u(t,r(t,e))}function f(t,e){return o(t,"{x}, {y}",e)}n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r}),n.d(e,"c",function(){return s}),n.d(e,"e",function(){return a}),n.d(e,"f",function(){return c}),n.d(e,"g",function(){return l}),n.d(e,"h",function(){return u}),n.d(e,"d",function(){return h}),n.d(e,"i",function(){return d})},a5b8:function(t,e,n){"use strict";var i=n("d8e8");function r(t){var e,n;this.promise=new t(function(t,i){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=i}),this.resolve=i(e),this.reject=i(n)}t.exports.f=function(t){return new r(t)}},a60d:function(t,e,n){"use strict";n.d(e,"c",function(){return o}),n.d(e,"b",function(){return a}),n.d(e,"d",function(){return c});n("f751");var i,r=n("3156"),s=n.n(r),o="undefined"===typeof window,a=!1,c=o;function l(t,e){var n=/(edge)\/([\w.]+)/.exec(t)||/(opr)[\/]([\w.]+)/.exec(t)||/(vivaldi)[\/]([\w.]+)/.exec(t)||/(chrome)[\/]([\w.]+)/.exec(t)||/(iemobile)[\/]([\w.]+)/.exec(t)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(t)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(t)||/(webkit)[\/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:n[5]||n[3]||n[1]||"",version:n[2]||n[4]||"0",versionNumber:n[4]||n[2]||"0",platform:e[0]||""}}function u(t){return/(ipad)/.exec(t)||/(ipod)/.exec(t)||/(windows phone)/.exec(t)||/(iphone)/.exec(t)||/(kindle)/.exec(t)||/(silk)/.exec(t)||/(android)/.exec(t)||/(win)/.exec(t)||/(mac)/.exec(t)||/(linux)/.exec(t)||/(cros)/.exec(t)||/(playbook)/.exec(t)||/(bb)/.exec(t)||/(blackberry)/.exec(t)||[]}function h(t){t=(t||navigator.userAgent||navigator.vendor||window.opera).toLowerCase();var e=u(t),n=l(t,e),i={};return n.browser&&(i[n.browser]=!0,i.version=n.version,i.versionNumber=parseInt(n.versionNumber,10)),n.platform&&(i[n.platform]=!0),(i.android||i.bb||i.blackberry||i.ipad||i.iphone||i.ipod||i.kindle||i.playbook||i.silk||i["windows phone"])&&(i.mobile=!0),(i.ipod||i.ipad||i.iphone)&&(i.ios=!0),i["windows phone"]&&(i.winphone=!0,delete i["windows phone"]),(i.cros||i.mac||i.linux||i.win)&&(i.desktop=!0),(i.chrome||i.opr||i.safari||i.vivaldi)&&(i.webkit=!0),(i.rv||i.iemobile)&&(n.browser="ie",i.ie=!0),i.edge&&(n.browser="edge",i.edge=!0),(i.safari&&i.blackberry||i.bb)&&(n.browser="blackberry",i.blackberry=!0),i.safari&&i.playbook&&(n.browser="playbook",i.playbook=!0),i.opr&&(n.browser="opera",i.opera=!0),i.safari&&i.android&&(n.browser="android",i.android=!0),i.safari&&i.kindle&&(n.browser="kindle",i.kindle=!0),i.safari&&i.silk&&(n.browser="silk",i.silk=!0),i.vivaldi&&(n.browser="vivaldi",i.vivaldi=!0),i.name=n.browser,i.platform=n.platform,o||(window.process&&window.process.versions&&window.process.versions.electron?i.electron=!0:0===document.location.href.indexOf("chrome-extension://")?i.chromeExt=!0:(window._cordovaNative||window.cordova)&&(i.cordova=!0),a=void 0===i.cordova&&void 0===i.electron&&!!document.querySelector("[data-server-rendered]"),a&&(c=!0)),i}function d(){if(void 0!==i)return i;try{if(window.localStorage)return i=!0,!0}catch(t){}return i=!1,!1}function f(){return{has:{touch:function(){return!!("ontouchstart"in document.documentElement)||window.navigator.msMaxTouchPoints>0}(),webStorage:d()},within:{iframe:window.self!==window.top}}}e["a"]={has:{touch:!1,webStorage:!1},within:{iframe:!1},parseSSR:function(t){return t?{is:h(t.req.headers["user-agent"]),has:this.has,within:this.within}:s()({is:h()},f())},install:function(t,e,n){var i=this;o?e.server.push(function(t,e){t.platform=i.parseSSR(e.ssr)}):(this.is=h(),a?(e.takeover.push(function(t){c=a=!1,Object.assign(t.platform,f())}),n.util.defineReactive(t,"platform",this)):(Object.assign(this,f()),t.platform=this))}}},a645:function(t,e,n){"use strict";t.exports=Error},a6ef:function(t,e,n){"use strict";var i=n("38de"),r=n("fd89"),s=n("0660"),o=n("85e4"),a=n("3894"),c=n("f885"),l=n("ad3f"),u=n("1d1d"),h=n("223d");class d{constructor(){d.constructor_.apply(this,arguments)}static constructor_(){this._min=u["a"].POSITIVE_INFINITY,this._max=u["a"].NEGATIVE_INFINITY}getMin(){return this._min}intersects(t,e){return!(this._min>e||this._maxs?1:0}get interfaces_(){return[h["a"]]}}d.NodeComparator=f;class p extends d{constructor(){super(),p.constructor_.apply(this,arguments)}static constructor_(){this._item=null;const t=arguments[0],e=arguments[1],n=arguments[2];this._min=t,this._max=e,this._item=n}query(t,e,n){if(!this.intersects(t,e))return null;n.visitItem(this._item)}}var _=n("7d15"),m=n("968e"),g=n("70d5"),y=n("3d80");class v extends d{constructor(){super(),v.constructor_.apply(this,arguments)}static constructor_(){this._node1=null,this._node2=null;const t=arguments[0],e=arguments[1];this._node1=t,this._node2=e,this.buildExtent(this._node1,this._node2)}buildExtent(t,e){this._min=Math.min(t._min,e._min),this._max=Math.max(t._max,e._max)}query(t,e,n){if(!this.intersects(t,e))return null;null!==this._node1&&this._node1.query(t,e,n),null!==this._node2&&this._node2.query(t,e,n)}}class b{constructor(){b.constructor_.apply(this,arguments)}static constructor_(){this._leaves=new g["a"],this._root=null,this._level=0}buildTree(){_["a"].sort(this._leaves,new d.NodeComparator);let t=this._leaves,e=null,n=new g["a"];while(1){if(this.buildLevel(t,n),1===n.size())return n.get(0);e=t,t=n,n=e}}insert(t,e,n){if(null!==this._root)throw new y["a"]("Index cannot be added to once it has been queried");this._leaves.add(new p(t,e,n))}query(t,e,n){if(this.init(),null===this._root)return null;this._root.query(t,e,n)}buildRoot(){if(null!==this._root)return null;this._root=this.buildTree()}printNode(t){m["a"].out.println(c["a"].toLineString(new l["a"](t._min,this._level),new l["a"](t._max,this._level)))}init(){return null!==this._root?null:0===this._leaves.size()?null:void this.buildRoot()}buildLevel(t,e){this._level++,e.clear();for(let n=0;n=this.text.length)return;t=this.text[this.place++]}switch(this.state){case k:return this.neutral(t);case C:return this.keyword(t);case D:return this.quoted(t);case R:return this.afterquote(t);case I:return this.number(t);case A:return}},H.prototype.afterquote=function(t){if('"'===t)return this.word+='"',void(this.state=D);if(j.test(t))return this.word=this.word.trim(),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in afterquote yet, index '+this.place)},H.prototype.afterItem=function(t){return","===t?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=k)):"]"===t?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=k,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=A))):void 0},H.prototype.number=function(t){if(!F.test(t)){if(j.test(t))return this.word=parseFloat(this.word),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in number yet, index '+this.place)}this.word+=t},H.prototype.quoted=function(t){'"'!==t?this.word+=t:this.state=R},H.prototype.keyword=function(t){if(P.test(t))this.word+=t;else{if("["===t){var e=[];return e.push(this.word),this.level++,null===this.root?this.root=e:this.currentObject.push(e),this.stack.push(this.currentObject),this.currentObject=e,void(this.state=k)}if(!j.test(t))throw new Error("havn't handled \""+t+'" in keyword yet, index '+this.place);this.afterItem(t)}},H.prototype.neutral=function(t){if(Y.test(t))return this.word=t,void(this.state=C);if('"'===t)return this.word="",void(this.state=D);if(F.test(t))return this.word=t,void(this.state=I);if(!j.test(t))throw new Error("havn't handled \""+t+'" in neutral yet, index '+this.place);this.afterItem(t)},H.prototype.output=function(){while(this.place0?90:-90)):(t.lat0=W(t.lat1>0?90:-90),t.lat_ts=t.lat1)}var V=function(t){var e=O(t),n=e.shift(),i=e.shift();e.unshift(["name",i]),e.unshift(["type",n]);var r={};return z(e,r),$(r),r};function X(t){var e=this;if(2===arguments.length){var n=arguments[1];"string"===typeof n?"+"===n.charAt(0)?X[t]=S(arguments[1]):X[t]=V(arguments[1]):X[t]=n}else if(1===arguments.length){if(Array.isArray(t))return t.map(function(t){Array.isArray(t)?X.apply(e,t):X(t)});if("string"===typeof t){if(t in X)return X[t]}else"EPSG"in t?X["EPSG:"+t.EPSG]=t:"ESRI"in t?X["ESRI:"+t.ESRI]=t:"IAU2000"in t?X["IAU2000:"+t.IAU2000]=t:console.log(t);return}}i(X);var K=X;function Z(t){return"string"===typeof t}function J(t){return t in K}var Q=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function tt(t){return Q.some(function(e){return t.indexOf(e)>-1})}var et=["3857","900913","3785","102113"];function nt(t){var e=T(t,"authority");if(e){var n=T(e,"epsg");return n&&et.indexOf(n)>-1}}function it(t){var e=T(t,"extension");if(e)return T(e,"proj4")}function rt(t){return"+"===t[0]}function st(t){if(!Z(t))return t;if(J(t))return K[t];if(tt(t)){var e=V(t);if(nt(e))return K["EPSG:3857"];var n=it(e);return n?S(n):e}return rt(t)?S(t):void 0}var ot=st,at=function(t,e){var n,i;if(t=t||{},!e)return t;for(i in e)n=e[i],void 0!==n&&(t[i]=n);return t},ct=function(t,e,n){var i=t*e;return n/Math.sqrt(1-i*i)},lt=function(t){return t<0?-1:1},ut=function(t){return Math.abs(t)<=w?t:t-lt(t)*M},ht=function(t,e,n){var i=t*n,r=.5*t;return i=Math.pow((1-i)/(1+i),r),Math.tan(.5*(f-e))/i},dt=function(t,e){for(var n,i,r=.5*t,s=f-2*Math.atan(e),o=0;o<=15;o++)if(n=t*Math.sin(s),i=f-2*Math.atan(e*Math.pow((1-n)/(1+n),r))-s,s+=i,Math.abs(i)<=1e-10)return s;return-9999};function ft(){var t=this.b/this.a;this.es=1-t*t,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=ct(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function pt(t){var e,n,i=t.x,r=t.y;if(r*v>90&&r*v<-90&&i*v>180&&i*v<-180)return null;if(Math.abs(Math.abs(r)-f)<=g)return null;if(this.sphere)e=this.x0+this.a*this.k0*ut(i-this.long0),n=this.y0+this.a*this.k0*Math.log(Math.tan(b+.5*r));else{var s=Math.sin(r),o=ht(this.e,r,s);e=this.x0+this.a*this.k0*ut(i-this.long0),n=this.y0-this.a*this.k0*Math.log(o)}return t.x=e,t.y=n,t}function _t(t){var e,n,i=t.x-this.x0,r=t.y-this.y0;if(this.sphere)n=f-2*Math.atan(Math.exp(-r/(this.a*this.k0)));else{var s=Math.exp(-r/(this.a*this.k0));if(n=dt(this.e,s),-9999===n)return null}return e=ut(this.long0+i/(this.a*this.k0)),t.x=e,t.y=n,t}var mt=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"],gt={init:ft,forward:pt,inverse:_t,names:mt};function yt(){}function vt(t){return t}var bt=["longlat","identity"],Mt={init:yt,forward:vt,inverse:vt,names:bt},wt=[gt,Mt],xt={},Lt=[];function Et(t,e){var n=Lt.length;return t.names?(Lt[n]=t,t.names.forEach(function(t){xt[t.toLowerCase()]=n}),this):(console.log(e),!0)}function Tt(t){if(!t)return!1;var e=t.toLowerCase();return"undefined"!==typeof xt[e]&&Lt[xt[e]]?Lt[xt[e]]:void 0}function St(){wt.forEach(Et)}var Ot={start:St,add:Et,get:Tt},kt={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk80ign:{a:6378249.2,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"}},Ct=kt.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};function It(t,e,n,i){var r=t*t,s=e*e,o=(r-s)/r,a=0;i?(t*=1-o*(p+o*(_+o*m)),r=t*t,o=0):a=Math.sqrt(o);var c=(r-s)/s;return{es:o,e:a,ep2:c}}function Dt(t,e,n,i,r){if(!t){var s=T(kt,i);s||(s=Ct),t=s.a,e=s.b,n=s.rf}return n&&!e&&(e=(1-1/n)*t),(0===n||Math.abs(t-e)3&&(0===f.datum_params[3]&&0===f.datum_params[4]&&0===f.datum_params[5]&&0===f.datum_params[6]||(f.datum_type=s,f.datum_params[3]*=d,f.datum_params[4]*=d,f.datum_params[5]*=d,f.datum_params[6]=f.datum_params[6]/1e6+1))),h&&(f.datum_type=o,f.grids=h),f.a=n,f.b=i,f.es=l,f.ep2=u,f}Rt.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},Rt.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},Rt.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},Rt.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},Rt.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},Rt.potsdam={towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},Rt.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},Rt.hermannskogel={towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"},Rt.militargeographische_institut={towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Militar-Geographische Institut"},Rt.osni52={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},Rt.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},Rt.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},Rt.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},Rt.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},Rt.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},Rt.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},Rt.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},Rt.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"};var Nt=At,Yt={};function Pt(t,e){var n=new DataView(e),i=qt(n),r=Gt(n,i),s=Bt(n,r,i),o={header:r,subgrids:s};return Yt[t]=o,o}function jt(t){if(void 0===t)return null;var e=t.split(",");return e.map(Ft)}function Ft(t){if(0===t.length)return null;var e="@"===t[0];return e&&(t=t.slice(1)),"null"===t?{name:"null",mandatory:!e,grid:null,isNull:!0}:{name:t,mandatory:!e,grid:Yt[t]||null,isNull:!1}}function Ht(t){return t/3600*Math.PI/180}function qt(t){var e=t.getInt32(8,!1);return 11!==e&&(e=t.getInt32(8,!0),11!==e&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}function Gt(t,e){return{nFields:t.getInt32(8,e),nSubgridFields:t.getInt32(24,e),nSubgrids:t.getInt32(40,e),shiftType:zt(t,56,64).trim(),fromSemiMajorAxis:t.getFloat64(120,e),fromSemiMinorAxis:t.getFloat64(136,e),toSemiMajorAxis:t.getFloat64(152,e),toSemiMinorAxis:t.getFloat64(168,e)}}function zt(t,e,n){return String.fromCharCode.apply(null,new Uint8Array(t.buffer.slice(e,n)))}function Bt(t,e,n){for(var i=176,r=[],s=0;s5e-11)&&(t.datum_type===r?t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]:t.datum_type!==s||t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]&&t.datum_params[3]===e.datum_params[3]&&t.datum_params[4]===e.datum_params[4]&&t.datum_params[5]===e.datum_params[5]&&t.datum_params[6]===e.datum_params[6]))}function Zt(t,e,n){var i,r,s,o,a=t.x,c=t.y,l=t.z?t.z:0;if(c<-f&&c>-1.001*f)c=-f;else if(c>f&&c<1.001*f)c=f;else{if(c<-f)return{x:-1/0,y:-1/0,z:t.z};if(c>f)return{x:1/0,y:1/0,z:t.z}}return a>Math.PI&&(a-=2*Math.PI),r=Math.sin(c),o=Math.cos(c),s=r*r,i=n/Math.sqrt(1-e*s),{x:(i+l)*o*Math.cos(a),y:(i+l)*o*Math.sin(a),z:(i*(1-e)+l)*r}}function Jt(t,e,n,i){var r,s,o,a,c,l,u,h,d,p,_,m,g,y,v,b,M=1e-12,w=M*M,x=30,L=t.x,E=t.y,T=t.z?t.z:0;if(r=Math.sqrt(L*L+E*E),s=Math.sqrt(L*L+E*E+T*T),r/nw&&gi.y||f>i.x||ml&&Math.abs(o.y)>l);if(c<0)return console.log("Inverse grid shift iterator failed to converge."),i;i.x=ut(s.x+n.ll[0]),i.y=s.y+n.ll[1]}else isNaN(s.x)||(i.x=t.x+s.x,i.y=t.y+s.y);return i}function se(t,e){var n,i={x:t.x/e.del[0],y:t.y/e.del[1]},r={x:Math.floor(i.x),y:Math.floor(i.y)},s={x:i.x-1*r.x,y:i.y-1*r.y},o={x:Number.NaN,y:Number.NaN};if(r.x<0||r.x>=e.lim[0])return o;if(r.y<0||r.y>=e.lim[1])return o;n=r.y*e.lim[0]+r.x;var a={x:e.cvs[n][0],y:e.cvs[n][1]};n++;var c={x:e.cvs[n][0],y:e.cvs[n][1]};n+=e.lim[0];var l={x:e.cvs[n][0],y:e.cvs[n][1]};n--;var u={x:e.cvs[n][0],y:e.cvs[n][1]},h=s.x*s.y,d=s.x*(1-s.y),f=(1-s.x)*(1-s.y),p=(1-s.x)*s.y;return o.x=f*a.x+d*c.x+p*u.x+h*l.x,o.y=f*a.y+d*c.y+p*u.y+h*l.y,o}var oe=function(t,e,n){var i,r,s,o=n.x,a=n.y,c=n.z||0,l={};for(s=0;s<3;s++)if(!e||2!==s||void 0!==n.z)switch(0===s?(i=o,r=-1!=="ew".indexOf(t.axis[s])?"x":"y"):1===s?(i=a,r=-1!=="ns".indexOf(t.axis[s])?"y":"x"):(i=c,r="z"),t.axis[s]){case"e":l[r]=i;break;case"w":l[r]=-i;break;case"n":l[r]=i;break;case"s":l[r]=-i;break;case"u":void 0!==n[r]&&(l.z=i);break;case"d":void 0!==n[r]&&(l.z=-i);break;default:return null}return l},ae=function(t){var e={x:t[0],y:t[1]};return t.length>2&&(e.z=t[2]),t.length>3&&(e.m=t[3]),e},ce=function(t){le(t.x),le(t.y)};function le(t){if("function"===typeof Number.isFinite){if(Number.isFinite(t))return;throw new TypeError("coordinates must be finite numbers")}if("number"!==typeof t||t!==t||!isFinite(t))throw new TypeError("coordinates must be finite numbers")}function ue(t,e){return(t.datum.datum_type===r||t.datum.datum_type===s||t.datum.datum_type===o)&&"WGS84"!==e.datumCode||(e.datum.datum_type===r||e.datum.datum_type===s||e.datum.datum_type===o)&&"WGS84"!==t.datumCode}function he(t,e,n,i){var r;n=Array.isArray(n)?ae(n):{x:n.x,y:n.y,z:n.z,m:n.m};var s=void 0!==n.z;if(ce(n),t.datum&&e.datum&&ue(t,e)&&(r=new Xt("WGS84"),n=he(t,r,n,i),t=r),i&&"enu"!==t.axis&&(n=oe(t,!1,n)),"longlat"===t.projName)n={x:n.x*y,y:n.y*y,z:n.z||0};else if(t.to_meter&&(n={x:n.x*t.to_meter,y:n.y*t.to_meter,z:n.z||0}),n=t.inverse(n),!n)return;if(t.from_greenwich&&(n.x+=t.from_greenwich),n=ne(t.datum,e.datum,n),n)return e.from_greenwich&&(n={x:n.x-e.from_greenwich,y:n.y,z:n.z||0}),"longlat"===e.projName?n={x:n.x*v,y:n.y*v,z:n.z||0}:(n=e.forward(n),e.to_meter&&(n={x:n.x/e.to_meter,y:n.y/e.to_meter,z:n.z||0})),i&&"enu"!==e.axis?oe(e,!0,n):(n&&!s&&delete n.z,n)}var de=Xt("WGS84");function fe(t,e,n,i){var r,s,o;return Array.isArray(n)?(r=he(t,e,n,i)||{x:NaN,y:NaN},n.length>2?"undefined"!==typeof t.name&&"geocent"===t.name||"undefined"!==typeof e.name&&"geocent"===e.name?"number"===typeof r.z?[r.x,r.y,r.z].concat(n.slice(3)):[r.x,r.y,n[2]].concat(n.slice(3)):[r.x,r.y].concat(n.slice(2)):[r.x,r.y]):(s=he(t,e,n,i),o=Object.keys(n),2===o.length?s:(o.forEach(function(i){if("undefined"!==typeof t.name&&"geocent"===t.name||"undefined"!==typeof e.name&&"geocent"===e.name){if("x"===i||"y"===i||"z"===i)return}else if("x"===i||"y"===i)return;s[i]=n[i]}),s))}function pe(t){return t instanceof Xt?t:t.oProj?t.oProj:Xt(t)}function _e(t,e,n){t=pe(t);var i,r=!1;return"undefined"===typeof e?(e=t,t=de,r=!0):("undefined"!==typeof e.x||Array.isArray(e))&&(n=e,e=t,t=de,r=!0),e=pe(e),n?fe(t,e,n):(i={forward:function(n,i){return fe(t,e,n,i)},inverse:function(n,i){return fe(e,t,n,i)}},r&&(i.oProj=e),i)}var me=_e,ge=6,ye="AJSAJS",ve="AFAFAF",be=65,Me=73,we=79,xe=86,Le=90,Ee={forward:Te,inverse:Se,toPoint:Oe};function Te(t,e){return e=e||5,Ae(Ie({lat:t[1],lon:t[0]}),e)}function Se(t){var e=De(je(t.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat,e.lon,e.lat]:[e.left,e.bottom,e.right,e.top]}function Oe(t){var e=De(je(t.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat]:[(e.left+e.right)/2,(e.top+e.bottom)/2]}function ke(t){return t*(Math.PI/180)}function Ce(t){return t/Math.PI*180}function Ie(t){var e,n,i,r,s,o,a,c,l,u=t.lat,h=t.lon,d=6378137,f=.00669438,p=.9996,_=ke(u),m=ke(h);l=Math.floor((h+180)/6)+1,180===h&&(l=60),u>=56&&u<64&&h>=3&&h<12&&(l=32),u>=72&&u<84&&(h>=0&&h<9?l=31:h>=9&&h<21?l=33:h>=21&&h<33?l=35:h>=33&&h<42&&(l=37)),e=6*(l-1)-180+3,c=ke(e),n=f/(1-f),i=d/Math.sqrt(1-f*Math.sin(_)*Math.sin(_)),r=Math.tan(_)*Math.tan(_),s=n*Math.cos(_)*Math.cos(_),o=Math.cos(_)*(m-c),a=d*((1-f/4-3*f*f/64-5*f*f*f/256)*_-(3*f/8+3*f*f/32+45*f*f*f/1024)*Math.sin(2*_)+(15*f*f/256+45*f*f*f/1024)*Math.sin(4*_)-35*f*f*f/3072*Math.sin(6*_));var g=p*i*(o+(1-r+s)*o*o*o/6+(5-18*r+r*r+72*s-58*n)*o*o*o*o*o/120)+5e5,y=p*(a+i*Math.tan(_)*(o*o/2+(5-r+9*s+4*s*s)*o*o*o*o/24+(61-58*r+r*r+600*s-330*n)*o*o*o*o*o*o/720));return u<0&&(y+=1e7),{northing:Math.round(y),easting:Math.round(g),zoneNumber:l,zoneLetter:Re(u)}}function De(t){var e=t.northing,n=t.easting,i=t.zoneLetter,r=t.zoneNumber;if(r<0||r>60)return null;var s,o,a,c,l,u,h,d,f,p,_=.9996,m=6378137,g=.00669438,y=(1-Math.sqrt(1-g))/(1+Math.sqrt(1-g)),v=n-5e5,b=e;i<"N"&&(b-=1e7),d=6*(r-1)-180+3,s=g/(1-g),h=b/_,f=h/(m*(1-g/4-3*g*g/64-5*g*g*g/256)),p=f+(3*y/2-27*y*y*y/32)*Math.sin(2*f)+(21*y*y/16-55*y*y*y*y/32)*Math.sin(4*f)+151*y*y*y/96*Math.sin(6*f),o=m/Math.sqrt(1-g*Math.sin(p)*Math.sin(p)),a=Math.tan(p)*Math.tan(p),c=s*Math.cos(p)*Math.cos(p),l=m*(1-g)/Math.pow(1-g*Math.sin(p)*Math.sin(p),1.5),u=v/(o*_);var M=p-o*Math.tan(p)/l*(u*u/2-(5+3*a+10*c-4*c*c-9*s)*u*u*u*u/24+(61+90*a+298*c+45*a*a-252*s-3*c*c)*u*u*u*u*u*u/720);M=Ce(M);var w,x=(u-(1+2*a+c)*u*u*u/6+(5-2*c+28*a-3*c*c+8*s+24*a*a)*u*u*u*u*u/120)/Math.cos(p);if(x=d+Ce(x),t.accuracy){var L=De({northing:t.northing+t.accuracy,easting:t.easting+t.accuracy,zoneLetter:t.zoneLetter,zoneNumber:t.zoneNumber});w={top:L.lat,right:L.lon,bottom:M,left:x}}else w={lat:M,lon:x};return w}function Re(t){var e="Z";return 84>=t&&t>=72?e="X":72>t&&t>=64?e="W":64>t&&t>=56?e="V":56>t&&t>=48?e="U":48>t&&t>=40?e="T":40>t&&t>=32?e="S":32>t&&t>=24?e="R":24>t&&t>=16?e="Q":16>t&&t>=8?e="P":8>t&&t>=0?e="N":0>t&&t>=-8?e="M":-8>t&&t>=-16?e="L":-16>t&&t>=-24?e="K":-24>t&&t>=-32?e="J":-32>t&&t>=-40?e="H":-40>t&&t>=-48?e="G":-48>t&&t>=-56?e="F":-56>t&&t>=-64?e="E":-64>t&&t>=-72?e="D":-72>t&&t>=-80&&(e="C"),e}function Ae(t,e){var n="00000"+t.easting,i="00000"+t.northing;return t.zoneNumber+t.zoneLetter+Ne(t.easting,t.northing,t.zoneNumber)+n.substr(n.length-5,e)+i.substr(i.length-5,e)}function Ne(t,e,n){var i=Ye(n),r=Math.floor(t/1e5),s=Math.floor(e/1e5)%20;return Pe(r,s,i)}function Ye(t){var e=t%ge;return 0===e&&(e=ge),e}function Pe(t,e,n){var i=n-1,r=ye.charCodeAt(i),s=ve.charCodeAt(i),o=r+t-1,a=s+e,c=!1;o>Le&&(o=o-Le+be-1,c=!0),(o===Me||rMe||(o>Me||rwe||(o>we||rLe&&(o=o-Le+be-1),a>xe?(a=a-xe+be-1,c=!0):c=!1,(a===Me||sMe||(a>Me||swe||(a>we||sxe&&(a=a-xe+be-1);var l=String.fromCharCode(o)+String.fromCharCode(a);return l}function je(t){if(t&&0===t.length)throw"MGRSPoint coverting from nothing";var e,n=t.length,i=null,r="",s=0;while(!/[A-Z]/.test(e=t.charAt(s))){if(s>=2)throw"MGRSPoint bad conversion from: "+t;r+=e,s++}var o=parseInt(r,10);if(0===s||s+3>n)throw"MGRSPoint bad conversion from: "+t;var a=t.charAt(s++);if(a<="A"||"B"===a||"Y"===a||a>="Z"||"I"===a||"O"===a)throw"MGRSPoint zone letter "+a+" not handled: "+t;i=t.substring(s,s+=2);var c=Ye(o),l=Fe(i.charAt(0),c),u=He(i.charAt(1),c);while(u0&&(d=1e5/Math.pow(10,g),f=t.substring(s,s+g),y=parseFloat(f)*d,p=t.substring(s+g),v=parseFloat(p)*d),_=y+l,m=v+u,{easting:_,northing:m,zoneLetter:a,zoneNumber:o,accuracy:d}}function Fe(t,e){var n=ye.charCodeAt(e-1),i=1e5,r=!1;while(n!==t.charCodeAt(0)){if(n++,n===Me&&n++,n===we&&n++,n>Le){if(r)throw"Bad character: "+t;n=be,r=!0}i+=1e5}return i}function He(t,e){if(t>"V")throw"MGRSPoint given invalid Northing "+t;var n=ve.charCodeAt(e-1),i=0,r=!1;while(n!==t.charCodeAt(0)){if(n++,n===Me&&n++,n===we&&n++,n>xe){if(r)throw"Bad character: "+t;n=be,r=!0}i+=1e5}return i}function qe(t){var e;switch(t){case"C":e=11e5;break;case"D":e=2e6;break;case"E":e=28e5;break;case"F":e=37e5;break;case"G":e=46e5;break;case"H":e=55e5;break;case"J":e=64e5;break;case"K":e=73e5;break;case"L":e=82e5;break;case"M":e=91e5;break;case"N":e=0;break;case"P":e=8e5;break;case"Q":e=17e5;break;case"R":e=26e5;break;case"S":e=35e5;break;case"T":e=44e5;break;case"U":e=53e5;break;case"V":e=62e5;break;case"W":e=7e6;break;case"X":e=79e5;break;default:e=-1}if(e>=0)return e;throw"Invalid zone letter: "+t}function Ge(t,e,n){if(!(this instanceof Ge))return new Ge(t,e,n);if(Array.isArray(t))this.x=t[0],this.y=t[1],this.z=t[2]||0;else if("object"===typeof t)this.x=t.x,this.y=t.y,this.z=t.z||0;else if("string"===typeof t&&"undefined"===typeof e){var i=t.split(",");this.x=parseFloat(i[0],10),this.y=parseFloat(i[1],10),this.z=parseFloat(i[2],10)||0}else this.x=t,this.y=e,this.z=n||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}Ge.fromMGRS=function(t){return new Ge(Oe(t))},Ge.prototype.toMGRS=function(t){return Te([this.x,this.y],t)};var ze=Ge,Be=1,Ue=.25,We=.046875,$e=.01953125,Ve=.01068115234375,Xe=.75,Ke=.46875,Ze=.013020833333333334,Je=.007120768229166667,Qe=.3645833333333333,tn=.005696614583333333,en=.3076171875,nn=function(t){var e=[];e[0]=Be-t*(Ue+t*(We+t*($e+t*Ve))),e[1]=t*(Xe-t*(We+t*($e+t*Ve)));var n=t*t;return e[2]=n*(Ke-t*(Ze+t*Je)),n*=t,e[3]=n*(Qe-t*tn),e[4]=n*t*en,e},rn=function(t,e,n,i){return n*=e,e*=e,i[0]*t-n*(i[1]+e*(i[2]+e*(i[3]+e*i[4])))},sn=20,on=function(t,e,n){for(var i=1/(1-e),r=t,s=sn;s;--s){var o=Math.sin(r),a=1-e*o*o;if(a=(rn(r,o,Math.cos(r),n)-t)*(a*Math.sqrt(a))*i,r-=a,Math.abs(a)g?Math.tan(s):0,p=Math.pow(f,2),_=Math.pow(p,2);e=1-this.es*Math.pow(a,2),l/=Math.sqrt(e);var m=rn(s,a,c,this.en);n=this.a*(this.k0*l*(1+u/6*(1-p+h+u/20*(5-18*p+_+14*h-58*p*h+u/42*(61+179*_-_*p-479*p)))))+this.x0,i=this.a*(this.k0*(m-this.ml0+a*o*l/2*(1+u/12*(5-p+9*h+4*d+u/30*(61+_-58*p+270*h-330*p*h+u/56*(1385+543*_-_*p-3111*p))))))+this.y0}else{var y=c*Math.sin(o);if(Math.abs(Math.abs(y)-1)=1){if(y-1>g)return 93;i=0}else i=Math.acos(i);s<0&&(i=-i),i=this.a*this.k0*(i-this.lat0)+this.y0}return t.x=n,t.y=i,t}function ln(t){var e,n,i,r,s=(t.x-this.x0)*(1/this.a),o=(t.y-this.y0)*(1/this.a);if(this.es)if(e=this.ml0+o/this.k0,n=on(e,this.es,this.en),Math.abs(n)g?Math.tan(n):0,u=this.ep2*Math.pow(c,2),h=Math.pow(u,2),d=Math.pow(l,2),p=Math.pow(d,2);e=1-this.es*Math.pow(a,2);var _=s*Math.sqrt(e)/this.k0,m=Math.pow(_,2);e*=l,i=n-e*m/(1-this.es)*.5*(1-m/12*(5+3*d-9*u*d+u-4*h-m/30*(61+90*d-252*u*d+45*p+46*u-m/56*(1385+3633*d+4095*p+1574*p*d)))),r=ut(this.long0+_*(1-m/6*(1+2*d+u-m/20*(5+28*d+24*p+8*u*d+6*u-m/42*(61+662*d+1320*p+720*p*d))))/c)}else i=f*lt(o),r=0;else{var y=Math.exp(s/this.k0),v=.5*(y-1/y),b=this.lat0+o/this.k0,M=Math.cos(b);e=Math.sqrt((1-Math.pow(M,2))/(1+Math.pow(v,2))),i=Math.asin(e),o<0&&(i=-i),r=0===v&&0===M?0:ut(Math.atan2(v,M)+this.long0)}return t.x=r,t.y=i,t}var un=["Fast_Transverse_Mercator","Fast Transverse Mercator"],hn={init:an,forward:cn,inverse:ln,names:un},dn=function(t){var e=Math.exp(t);return e=(e-1/e)/2,e},fn=function(t,e){t=Math.abs(t),e=Math.abs(e);var n=Math.max(t,e),i=Math.min(t,e)/(n||1);return n*Math.sqrt(1+Math.pow(i,2))},pn=function(t){var e=1+t,n=e-1;return 0===n?t:t*Math.log(e)/n},_n=function(t){var e=Math.abs(t);return e=pn(e*(1+e/(fn(1,e)+1))),t<0?-e:e},mn=function(t,e){var n,i=2*Math.cos(2*e),r=t.length-1,s=t[r],o=0;while(--r>=0)n=i*s-o+t[r],o=s,s=n;return e+n*Math.sin(2*e)},gn=function(t,e){var n,i=2*Math.cos(e),r=t.length-1,s=t[r],o=0;while(--r>=0)n=i*s-o+t[r],o=s,s=n;return Math.sin(e)*n},yn=function(t){var e=Math.exp(t);return e=(e+1/e)/2,e},vn=function(t,e,n){var i,r,s=Math.sin(e),o=Math.cos(e),a=dn(n),c=yn(n),l=2*o*c,u=-2*s*a,h=t.length-1,d=t[h],f=0,p=0,_=0;while(--h>=0)i=p,r=f,p=d,f=_,d=l*p-i-u*f+t[h],_=u*p-r+l*f;return l=s*c,u=o*a,[l*d-u*_,l*_+u*d]};function bn(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(hn.init.apply(this),this.forward=hn.forward,this.inverse=hn.inverse),this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var t=this.es/(1+Math.sqrt(1-this.es)),e=t/(2-t),n=e;this.cgb[0]=e*(2+e*(-2/3+e*(e*(116/45+e*(26/45+e*(-2854/675)))-2))),this.cbg[0]=e*(e*(2/3+e*(4/3+e*(-82/45+e*(32/45+e*(4642/4725)))))-2),n*=e,this.cgb[1]=n*(7/3+e*(e*(-227/45+e*(2704/315+e*(2323/945)))-1.6)),this.cbg[1]=n*(5/3+e*(-16/15+e*(-13/9+e*(904/315+e*(-1522/945))))),n*=e,this.cgb[2]=n*(56/15+e*(-136/35+e*(-1262/105+e*(73814/2835)))),this.cbg[2]=n*(-26/15+e*(34/21+e*(1.6+e*(-12686/2835)))),n*=e,this.cgb[3]=n*(4279/630+e*(-332/35+e*(-399572/14175))),this.cbg[3]=n*(1237/630+e*(e*(-24832/14175)-2.4)),n*=e,this.cgb[4]=n*(4174/315+e*(-144838/6237)),this.cbg[4]=n*(-734/315+e*(109598/31185)),n*=e,this.cgb[5]=n*(601676/22275),this.cbg[5]=n*(444337/155925),n=Math.pow(e,2),this.Qn=this.k0/(1+e)*(1+n*(.25+n*(1/64+n/256))),this.utg[0]=e*(e*(2/3+e*(-37/96+e*(1/360+e*(81/512+e*(-96199/604800)))))-.5),this.gtu[0]=e*(.5+e*(-2/3+e*(5/16+e*(41/180+e*(-127/288+e*(7891/37800)))))),this.utg[1]=n*(-1/48+e*(-1/15+e*(437/1440+e*(-46/105+e*(1118711/3870720))))),this.gtu[1]=n*(13/48+e*(e*(557/1440+e*(281/630+e*(-1983433/1935360)))-.6)),n*=e,this.utg[2]=n*(-17/480+e*(37/840+e*(209/4480+e*(-5569/90720)))),this.gtu[2]=n*(61/240+e*(-103/140+e*(15061/26880+e*(167603/181440)))),n*=e,this.utg[3]=n*(-4397/161280+e*(11/504+e*(830251/7257600))),this.gtu[3]=n*(49561/161280+e*(-179/168+e*(6601661/7257600))),n*=e,this.utg[4]=n*(-4583/161280+e*(108847/3991680)),this.gtu[4]=n*(34729/80640+e*(-3418889/1995840)),n*=e,this.utg[5]=-.03233083094085698*n,this.gtu[5]=.6650675310896665*n;var i=mn(this.cbg,this.lat0);this.Zb=-this.Qn*(i+gn(this.gtu,2*i))}function Mn(t){var e=ut(t.x-this.long0),n=t.y;n=mn(this.cbg,n);var i=Math.sin(n),r=Math.cos(n),s=Math.sin(e),o=Math.cos(e);n=Math.atan2(i,o*r),e=Math.atan2(s*r,fn(i,r*o)),e=_n(Math.tan(e));var a,c,l=vn(this.gtu,2*n,2*e);return n+=l[0],e+=l[1],Math.abs(e)<=2.623395162778?(a=this.a*(this.Qn*e)+this.x0,c=this.a*(this.Qn*n+this.Zb)+this.y0):(a=1/0,c=1/0),t.x=a,t.y=c,t}function wn(t){var e,n,i=(t.x-this.x0)*(1/this.a),r=(t.y-this.y0)*(1/this.a);if(r=(r-this.Zb)/this.Qn,i/=this.Qn,Math.abs(i)<=2.623395162778){var s=vn(this.utg,2*r,2*i);r+=s[0],i+=s[1],i=Math.atan(dn(i));var o=Math.sin(r),a=Math.cos(r),c=Math.sin(i),l=Math.cos(i);r=Math.atan2(o*l,fn(c,l*a)),i=Math.atan2(c,l*a),e=ut(i+this.long0),n=mn(this.cgb,r)}else e=1/0,n=1/0;return t.x=e,t.y=n,t}var xn=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"],Ln={init:bn,forward:Mn,inverse:wn,names:xn},En=function(t,e){if(void 0===t){if(t=Math.floor(30*(ut(e)+Math.PI)/Math.PI)+1,t<0)return 0;if(t>60)return 60}return t},Tn="etmerc";function Sn(){var t=En(this.zone,this.long0);if(void 0===t)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(t)-183)*y,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,Ln.init.apply(this),this.forward=Ln.forward,this.inverse=Ln.inverse}var On=["Universal Transverse Mercator System","utm"],kn={init:Sn,names:On,dependsOn:Tn},Cn=function(t,e){return Math.pow((1-t)/(1+t),e)},In=20;function Dn(){var t=Math.sin(this.lat0),e=Math.cos(this.lat0);e*=e,this.rc=Math.sqrt(1-this.es)/(1-this.es*t*t),this.C=Math.sqrt(1+this.es*e*e/(1-this.es)),this.phic0=Math.asin(t/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+b)/(Math.pow(Math.tan(.5*this.lat0+b),this.C)*Cn(this.e*t,this.ratexp))}function Rn(t){var e=t.x,n=t.y;return t.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*n+b),this.C)*Cn(this.e*Math.sin(n),this.ratexp))-f,t.x=this.C*e,t}function An(t){for(var e=1e-14,n=t.x/this.C,i=t.y,r=Math.pow(Math.tan(.5*i+b)/this.K,1/this.C),s=In;s>0;--s){if(i=2*Math.atan(r*Cn(this.e*Math.sin(t.y),-.5*this.e))-f,Math.abs(i-t.y)0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=g&&Math.abs(Math.cos(this.lat_ts))>g&&(this.k0=.5*this.cons*ct(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/ht(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=ct(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-f,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function Bn(t){var e,n,i,r,s,o,a=t.x,c=t.y,l=Math.sin(c),u=Math.cos(c),h=ut(a-this.long0);return Math.abs(Math.abs(a-this.long0)-Math.PI)<=g&&Math.abs(c+this.lat0)<=g?(t.x=NaN,t.y=NaN,t):this.sphere?(e=2*this.k0/(1+this.sinlat0*l+this.coslat0*u*Math.cos(h)),t.x=this.a*e*u*Math.sin(h)+this.x0,t.y=this.a*e*(this.coslat0*l-this.sinlat0*u*Math.cos(h))+this.y0,t):(n=2*Math.atan(this.ssfn_(c,l,this.e))-f,r=Math.cos(n),i=Math.sin(n),Math.abs(this.coslat0)<=g?(s=ht(this.e,c*this.con,this.con*l),o=2*this.a*this.k0*s/this.cons,t.x=this.x0+o*Math.sin(a-this.long0),t.y=this.y0-this.con*o*Math.cos(a-this.long0),t):(Math.abs(this.sinlat0)0?ut(this.long0+Math.atan2(t.x,-1*t.y)):ut(this.long0+Math.atan2(t.x,t.y)):ut(this.long0+Math.atan2(t.x*Math.sin(a),o*this.coslat0*Math.cos(a)-t.y*this.sinlat0*Math.sin(a))),t.x=e,t.y=n,t)}if(Math.abs(this.coslat0)<=g){if(o<=g)return n=this.lat0,e=this.long0,t.x=e,t.y=n,t;t.x*=this.con,t.y*=this.con,i=o*this.cons/(2*this.a*this.k0),n=this.con*dt(this.e,i),e=this.con*ut(this.con*this.long0+Math.atan2(t.x,-1*t.y))}else r=2*Math.atan(o*this.cosX0/(2*this.a*this.k0*this.ms1)),e=this.long0,o<=g?s=this.X0:(s=Math.asin(Math.cos(r)*this.sinX0+t.y*Math.sin(r)*this.cosX0/o),e=ut(this.long0+Math.atan2(t.x*Math.sin(r),o*this.cosX0*Math.cos(r)-t.y*this.sinX0*Math.sin(r)))),n=-1*dt(this.e,Math.tan(.5*(f+s)));return t.x=e,t.y=n,t}var Wn=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)","Polar_Stereographic"],$n={init:zn,forward:Bn,inverse:Un,names:Wn,ssfn_:Gn};function Vn(){var t=this.lat0;this.lambda0=this.long0;var e=Math.sin(t),n=this.a,i=this.rf,r=1/i,s=2*r-Math.pow(r,2),o=this.e=Math.sqrt(s);this.R=this.k0*n*Math.sqrt(1-s)/(1-s*Math.pow(e,2)),this.alpha=Math.sqrt(1+s/(1-s)*Math.pow(Math.cos(t),4)),this.b0=Math.asin(e/this.alpha);var a=Math.log(Math.tan(Math.PI/4+this.b0/2)),c=Math.log(Math.tan(Math.PI/4+t/2)),l=Math.log((1+o*e)/(1-o*e));this.K=a-this.alpha*c+this.alpha*o/2*l}function Xn(t){var e=Math.log(Math.tan(Math.PI/4-t.y/2)),n=this.e/2*Math.log((1+this.e*Math.sin(t.y))/(1-this.e*Math.sin(t.y))),i=-this.alpha*(e+n)+this.K,r=2*(Math.atan(Math.exp(i))-Math.PI/4),s=this.alpha*(t.x-this.lambda0),o=Math.atan(Math.sin(s)/(Math.sin(this.b0)*Math.tan(r)+Math.cos(this.b0)*Math.cos(s))),a=Math.asin(Math.cos(this.b0)*Math.sin(r)-Math.sin(this.b0)*Math.cos(r)*Math.cos(s));return t.y=this.R/2*Math.log((1+Math.sin(a))/(1-Math.sin(a)))+this.y0,t.x=this.R*o+this.x0,t}function Kn(t){var e=t.x-this.x0,n=t.y-this.y0,i=e/this.R,r=2*(Math.atan(Math.exp(n/this.R))-Math.PI/4),s=Math.asin(Math.cos(this.b0)*Math.sin(r)+Math.sin(this.b0)*Math.cos(r)*Math.cos(i)),o=Math.atan(Math.sin(i)/(Math.cos(this.b0)*Math.cos(i)-Math.sin(this.b0)*Math.tan(r))),a=this.lambda0+o/this.alpha,c=0,l=s,u=-1e3,h=0;while(Math.abs(l-u)>1e-7){if(++h>20)return;c=1/this.alpha*(Math.log(Math.tan(Math.PI/4+s/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(l))/2)),u=l,l=2*Math.atan(Math.exp(c))-Math.PI/2}return t.x=a,t.y=l,t}var Zn=["somerc"],Jn={init:Vn,forward:Xn,inverse:Kn,names:Zn},Qn=1e-7;function ti(t){var e=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],n="object"===typeof t.PROJECTION?Object.keys(t.PROJECTION)[0]:t.PROJECTION;return"no_uoff"in t||"no_off"in t||-1!==e.indexOf(n)}function ei(){var t,e,n,i,r,s,o,a,c,l,u,h=0,d=0,p=0,_=0,m=0,v=0,w=0;this.no_off=ti(this),this.no_rot="no_rot"in this;var x=!1;"alpha"in this&&(x=!0);var L=!1;if("rectified_grid_angle"in this&&(L=!0),x&&(w=this.alpha),L&&(h=this.rectified_grid_angle*y),x||L)d=this.longc;else if(p=this.long1,m=this.lat1,_=this.long2,v=this.lat2,Math.abs(m-v)<=Qn||(t=Math.abs(m))<=Qn||Math.abs(t-f)<=Qn||Math.abs(Math.abs(this.lat0)-f)<=Qn||Math.abs(Math.abs(v)-f)<=Qn)throw new Error;var E=1-this.es;e=Math.sqrt(E),Math.abs(this.lat0)>g?(a=Math.sin(this.lat0),n=Math.cos(this.lat0),t=1-this.es*a*a,this.B=n*n,this.B=Math.sqrt(1+this.es*this.B*this.B/E),this.A=this.B*this.k0*e/t,i=this.B*e/(n*Math.sqrt(t)),r=i*i-1,r<=0?r=0:(r=Math.sqrt(r),this.lat0<0&&(r=-r)),this.E=r+=i,this.E*=Math.pow(ht(this.e,this.lat0,a),this.B)):(this.B=1/e,this.A=this.k0,this.E=i=r=1),x||L?(x?(u=Math.asin(Math.sin(w)/i),L||(h=w)):(u=h,w=Math.asin(i*Math.sin(u))),this.lam0=d-Math.asin(.5*(r-1/r)*Math.tan(u))/this.B):(s=Math.pow(ht(this.e,m,Math.sin(m)),this.B),o=Math.pow(ht(this.e,v,Math.sin(v)),this.B),r=this.E/s,c=(o-s)/(o+s),l=this.E*this.E,l=(l-o*s)/(l+o*s),t=p-_,t<-Math.pi?_-=M:t>Math.pi&&(_+=M),this.lam0=ut(.5*(p+_)-Math.atan(l*Math.tan(.5*this.B*(p-_))/c)/this.B),u=Math.atan(2*Math.sin(this.B*ut(p-this.lam0))/(r-1/r)),h=w=Math.asin(i*Math.sin(u))),this.singam=Math.sin(u),this.cosgam=Math.cos(u),this.sinrot=Math.sin(h),this.cosrot=Math.cos(h),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.A,this.B,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(i*i-1)/Math.cos(w))),this.lat0<0&&(this.u_0=-this.u_0)),r=.5*u,this.v_pole_n=this.ArB*Math.log(Math.tan(b-r)),this.v_pole_s=this.ArB*Math.log(Math.tan(b+r))}function ni(t){var e,n,i,r,s,o,a,c,l={};if(t.x=t.x-this.lam0,Math.abs(Math.abs(t.y)-f)>g){if(s=this.E/Math.pow(ht(this.e,t.y,Math.sin(t.y)),this.B),o=1/s,e=.5*(s-o),n=.5*(s+o),r=Math.sin(this.B*t.x),i=(e*this.singam-r*this.cosgam)/n,Math.abs(Math.abs(i)-1)0?this.v_pole_n:this.v_pole_s,a=this.ArB*t.y;return this.no_rot?(l.x=a,l.y=c):(a-=this.u_0,l.x=c*this.cosrot+a*this.sinrot,l.y=a*this.cosrot-c*this.sinrot),l.x=this.a*l.x+this.x0,l.y=this.a*l.y+this.y0,l}function ii(t){var e,n,i,r,s,o,a,c={};if(t.x=(t.x-this.x0)*(1/this.a),t.y=(t.y-this.y0)*(1/this.a),this.no_rot?(n=t.y,e=t.x):(n=t.x*this.cosrot-t.y*this.sinrot,e=t.y*this.cosrot+t.x*this.sinrot+this.u_0),i=Math.exp(-this.BrA*n),r=.5*(i-1/i),s=.5*(i+1/i),o=Math.sin(this.BrA*e),a=(o*this.cosgam+r*this.singam)/s,Math.abs(Math.abs(a)-1)g?this.ns=Math.log(i/a)/Math.log(r/c):this.ns=e,isNaN(this.ns)&&(this.ns=e),this.f0=i/(this.ns*Math.pow(r,this.ns)),this.rh=this.a*this.f0*Math.pow(l,this.ns),this.title||(this.title="Lambert Conformal Conic")}}function ai(t){var e=t.x,n=t.y;Math.abs(2*Math.abs(n)-Math.PI)<=g&&(n=lt(n)*(f-2*g));var i,r,s=Math.abs(Math.abs(n)-f);if(s>g)i=ht(this.e,n,Math.sin(n)),r=this.a*this.f0*Math.pow(i,this.ns);else{if(s=n*this.ns,s<=0)return null;r=0}var o=this.ns*ut(e-this.long0);return t.x=this.k0*(r*Math.sin(o))+this.x0,t.y=this.k0*(this.rh-r*Math.cos(o))+this.y0,t}function ci(t){var e,n,i,r,s,o=(t.x-this.x0)/this.k0,a=this.rh-(t.y-this.y0)/this.k0;this.ns>0?(e=Math.sqrt(o*o+a*a),n=1):(e=-Math.sqrt(o*o+a*a),n=-1);var c=0;if(0!==e&&(c=Math.atan2(n*o,n*a)),0!==e||this.ns>0){if(n=1/this.ns,i=Math.pow(e/(this.a*this.f0),n),r=dt(this.e,i),-9999===r)return null}else r=-f;return s=ut(c/this.ns+this.long0),t.x=s,t.y=r,t}var li=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"],ui={init:oi,forward:ai,inverse:ci,names:li};function hi(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq}function di(t){var e,n,i,r,s,o,a,c=t.x,l=t.y,u=ut(c-this.long0);return e=Math.pow((1+this.e*Math.sin(l))/(1-this.e*Math.sin(l)),this.alfa*this.e/2),n=2*(Math.atan(this.k*Math.pow(Math.tan(l/2+this.s45),this.alfa)/e)-this.s45),i=-u*this.alfa,r=Math.asin(Math.cos(this.ad)*Math.sin(n)+Math.sin(this.ad)*Math.cos(n)*Math.cos(i)),s=Math.asin(Math.cos(n)*Math.sin(i)/Math.cos(r)),o=this.n*s,a=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(r/2+this.s45),this.n),t.y=a*Math.cos(o)/1,t.x=a*Math.sin(o)/1,this.czech||(t.y*=-1,t.x*=-1),t}function fi(t){var e,n,i,r,s,o,a,c,l=t.x;t.x=t.y,t.y=l,this.czech||(t.y*=-1,t.x*=-1),o=Math.sqrt(t.x*t.x+t.y*t.y),s=Math.atan2(t.y,t.x),r=s/Math.sin(this.s0),i=2*(Math.atan(Math.pow(this.ro0/o,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),e=Math.asin(Math.cos(this.ad)*Math.sin(i)-Math.sin(this.ad)*Math.cos(i)*Math.cos(r)),n=Math.asin(Math.cos(i)*Math.sin(r)/Math.cos(e)),t.x=this.long0-n/this.alfa,a=e,c=0;var u=0;do{t.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(e/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(a))/(1-this.e*Math.sin(a)),this.e/2))-this.s45),Math.abs(a-t.y)<1e-10&&(c=1),a=t.y,u+=1}while(0===c&&u<15);return u>=15?null:t}var pi=["Krovak","krovak"],_i={init:hi,forward:di,inverse:fi,names:pi},mi=function(t,e,n,i,r){return t*r-e*Math.sin(2*r)+n*Math.sin(4*r)-i*Math.sin(6*r)},gi=function(t){return 1-.25*t*(1+t/16*(3+1.25*t))},yi=function(t){return.375*t*(1+.25*t*(1+.46875*t))},vi=function(t){return.05859375*t*t*(1+.75*t)},bi=function(t){return t*t*t*(35/3072)},Mi=function(t,e,n){var i=e*n;return t/Math.sqrt(1-i*i)},wi=function(t){return Math.abs(t)1e-7?(n=t*e,(1-t*t)*(e/(1-n*n)-.5/t*Math.log((1-n)/(1+n)))):2*e},Ci=1,Ii=2,Di=3,Ri=4;function Ai(){var t,e=Math.abs(this.lat0);if(Math.abs(e-f)0)switch(this.qp=ki(this.e,1),this.mmf=.5/(1-this.es),this.apa=zi(this.es),this.mode){case this.N_POLE:this.dd=1;break;case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),t=Math.sin(this.lat0),this.sinb1=ki(this.e,t)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*t*t)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd;break}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))}function Ni(t){var e,n,i,r,s,o,a,c,l,u,h=t.x,d=t.y;if(h=ut(h-this.long0),this.sphere){if(s=Math.sin(d),u=Math.cos(d),i=Math.cos(h),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(n=this.mode===this.EQUIT?1+u*i:1+this.sinph0*s+this.cosph0*u*i,n<=g)return null;n=Math.sqrt(2/n),e=n*u*Math.sin(h),n*=this.mode===this.EQUIT?s:this.cosph0*s-this.sinph0*u*i}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(i=-i),Math.abs(d+this.lat0)=0?(e=(l=Math.sqrt(o))*r,n=i*(this.mode===this.S_POLE?l:-l)):e=n=0;break}}return t.x=this.a*e+this.x0,t.y=this.a*n+this.y0,t}function Yi(t){t.x-=this.x0,t.y-=this.y0;var e,n,i,r,s,o,a,c=t.x/this.a,l=t.y/this.a;if(this.sphere){var u,h=0,d=0;if(u=Math.sqrt(c*c+l*l),n=.5*u,n>1)return null;switch(n=2*Math.asin(n),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(d=Math.sin(n),h=Math.cos(n)),this.mode){case this.EQUIT:n=Math.abs(u)<=g?0:Math.asin(l*d/u),c*=d,l=h*u;break;case this.OBLIQ:n=Math.abs(u)<=g?this.lat0:Math.asin(h*this.sinph0+l*d*this.cosph0/u),c*=d*this.cosph0,l=(h-Math.sin(n)*this.sinph0)*u;break;case this.N_POLE:l=-l,n=f-n;break;case this.S_POLE:n-=f;break}e=0!==l||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(c,l):0}else{if(a=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(c/=this.dd,l*=this.dd,o=Math.sqrt(c*c+l*l),o1&&(t=t>1?1:-1),Math.asin(t)};function Vi(){Math.abs(this.lat1+this.lat2)g?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)}function Xi(t){var e=t.x,n=t.y;this.sin_phi=Math.sin(n),this.cos_phi=Math.cos(n);var i=ki(this.e3,this.sin_phi),r=this.a*Math.sqrt(this.c-this.ns0*i)/this.ns0,s=this.ns0*ut(e-this.long0),o=r*Math.sin(s)+this.x0,a=this.rh-r*Math.cos(s)+this.y0;return t.x=o,t.y=a,t}function Ki(t){var e,n,i,r,s,o;return t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns0>=0?(e=Math.sqrt(t.x*t.x+t.y*t.y),i=1):(e=-Math.sqrt(t.x*t.x+t.y*t.y),i=-1),r=0,0!==e&&(r=Math.atan2(i*t.x,i*t.y)),i=e*this.ns0/this.a,this.sphere?o=Math.asin((this.c-i*i)/(2*this.ns0)):(n=(this.c-i*i)/this.ns0,o=this.phi1z(this.e3,n)),s=ut(r/this.ns0+this.long0),t.x=s,t.y=o,t}function Zi(t,e){var n,i,r,s,o,a=$i(.5*e);if(t0||Math.abs(o)<=g?(a=this.x0+this.a*s*n*Math.sin(i)/o,c=this.y0+this.a*s*(this.cos_p14*e-this.sin_p14*n*r)/o):(a=this.x0+this.infinity_dist*n*Math.sin(i),c=this.y0+this.infinity_dist*(this.cos_p14*e-this.sin_p14*n*r)),t.x=a,t.y=c,t}function nr(t){var e,n,i,r,s,o;return t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,(e=Math.sqrt(t.x*t.x+t.y*t.y))?(r=Math.atan2(e,this.rc),n=Math.sin(r),i=Math.cos(r),o=$i(i*this.sin_p14+t.y*n*this.cos_p14/e),s=Math.atan2(t.x*n,e*this.cos_p14*i-t.y*this.sin_p14*n),s=ut(this.long0+s)):(o=this.phic0,s=0),t.x=s,t.y=o,t}var ir=["gnom"],rr={init:tr,forward:er,inverse:nr,names:ir},sr=function(t,e){var n=1-(1-t*t)/(2*t)*Math.log((1-t)/(1+t));if(Math.abs(Math.abs(e)-n)<1e-6)return e<0?-1*f:f;for(var i,r,s,o,a=Math.asin(.5*e),c=0;c<30;c++)if(r=Math.sin(a),s=Math.cos(a),o=t*r,i=Math.pow(1-o*o,2)/(2*s)*(e/(1-t*t)-r/(1-o*o)+.5/t*Math.log((1-o)/(1+o))),a+=i,Math.abs(i)<=1e-10)return a;return NaN};function or(){this.sphere||(this.k0=ct(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function ar(t){var e,n,i=t.x,r=t.y,s=ut(i-this.long0);if(this.sphere)e=this.x0+this.a*s*Math.cos(this.lat_ts),n=this.y0+this.a*Math.sin(r)/Math.cos(this.lat_ts);else{var o=ki(this.e,Math.sin(r));e=this.x0+this.a*this.k0*s,n=this.y0+this.a*o*.5/this.k0}return t.x=e,t.y=n,t}function cr(t){var e,n;return t.x-=this.x0,t.y-=this.y0,this.sphere?(e=ut(this.long0+t.x/this.a/Math.cos(this.lat_ts)),n=Math.asin(t.y/this.a*Math.cos(this.lat_ts))):(n=sr(this.e,2*t.y*this.k0/this.a),e=ut(this.long0+t.x/(this.a*this.k0))),t.x=e,t.y=n,t}var lr=["cea"],ur={init:or,forward:ar,inverse:cr,names:lr};function hr(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)}function dr(t){var e=t.x,n=t.y,i=ut(e-this.long0),r=wi(n-this.lat0);return t.x=this.x0+this.a*i*this.rc,t.y=this.y0+this.a*r,t}function fr(t){var e=t.x,n=t.y;return t.x=ut(this.long0+(e-this.x0)/(this.a*this.rc)),t.y=wi(this.lat0+(n-this.y0)/this.a),t}var pr=["Equirectangular","Equidistant_Cylindrical","eqc"],_r={init:hr,forward:dr,inverse:fr,names:pr},mr=20;function gr(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=gi(this.es),this.e1=yi(this.es),this.e2=vi(this.es),this.e3=bi(this.es),this.ml0=this.a*mi(this.e0,this.e1,this.e2,this.e3,this.lat0)}function yr(t){var e,n,i,r=t.x,s=t.y,o=ut(r-this.long0);if(i=o*Math.sin(s),this.sphere)Math.abs(s)<=g?(e=this.a*o,n=-1*this.a*this.lat0):(e=this.a*Math.sin(i)/Math.tan(s),n=this.a*(wi(s-this.lat0)+(1-Math.cos(i))/Math.tan(s)));else if(Math.abs(s)<=g)e=this.a*o,n=-1*this.ml0;else{var a=Mi(this.a,this.e,Math.sin(s))/Math.tan(s);e=a*Math.sin(i),n=this.a*mi(this.e0,this.e1,this.e2,this.e3,s)-this.ml0+a*(1-Math.cos(i))}return t.x=e+this.x0,t.y=n+this.y0,t}function vr(t){var e,n,i,r,s,o,a,c,l;if(i=t.x-this.x0,r=t.y-this.y0,this.sphere)if(Math.abs(r+this.a*this.lat0)<=g)e=ut(i/this.a+this.long0),n=0;else{var u;for(o=this.lat0+r/this.a,a=i*i/this.a/this.a+o*o,c=o,s=mr;s;--s)if(u=Math.tan(c),l=-1*(o*(c*u+1)-c-.5*(c*c+a)*u)/((c-o)/u-1),c+=l,Math.abs(l)<=g){n=c;break}e=ut(this.long0+Math.asin(i*Math.tan(c)/this.a)/Math.sin(n))}else if(Math.abs(r+this.ml0)<=g)n=0,e=ut(this.long0+i/this.a);else{var h,d,f,p,_;for(o=(this.ml0+r)/this.a,a=i*i/this.a/this.a+o*o,c=o,s=mr;s;--s)if(_=this.e*Math.sin(c),h=Math.sqrt(1-_*_)*Math.tan(c),d=this.a*mi(this.e0,this.e1,this.e2,this.e3,c),f=this.e0-2*this.e1*Math.cos(2*c)+4*this.e2*Math.cos(4*c)-6*this.e3*Math.cos(6*c),p=d/this.a,l=(o*(h*p+1)-p-.5*h*(p*p+a))/(this.es*Math.sin(2*c)*(p*p+a-2*o*p)/(4*h)+(o-p)*(h*f-2/Math.sin(2*c))-f),c-=l,Math.abs(l)<=g){n=c;break}h=Math.sqrt(1-this.es*Math.pow(Math.sin(n),2))*Math.tan(n),e=ut(this.long0+Math.asin(i*h/this.a)/Math.sin(n))}return t.x=e,t.y=n,t}var br=["Polyconic","poly"],Mr={init:gr,forward:yr,inverse:vr,names:br};function wr(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013}function xr(t){var e,n=t.x,i=t.y,r=i-this.lat0,s=n-this.long0,o=r/d*1e-5,a=s,c=1,l=0;for(e=1;e<=10;e++)c*=o,l+=this.A[e]*c;var u,h,f=l,p=a,_=1,m=0,g=0,y=0;for(e=1;e<=6;e++)u=_*f-m*p,h=m*f+_*p,_=u,m=h,g=g+this.B_re[e]*_-this.B_im[e]*m,y=y+this.B_im[e]*_+this.B_re[e]*m;return t.x=y*this.a+this.x0,t.y=g*this.a+this.y0,t}function Lr(t){var e,n,i,r=t.x,s=t.y,o=r-this.x0,a=s-this.y0,c=a/this.a,l=o/this.a,u=1,h=0,f=0,p=0;for(e=1;e<=6;e++)n=u*c-h*l,i=h*c+u*l,u=n,h=i,f=f+this.C_re[e]*u-this.C_im[e]*h,p=p+this.C_im[e]*u+this.C_re[e]*h;for(var _=0;_.999999999999&&(n=.999999999999),e=Math.asin(n);var i=ut(this.long0+t.x/(.900316316158*this.a*Math.cos(e)));i<-Math.PI&&(i=-Math.PI),i>Math.PI&&(i=Math.PI),n=(2*e+Math.sin(2*e))/Math.PI,Math.abs(n)>1&&(n=1);var r=Math.asin(n);return t.x=i,t.y=r,t}var qr=["Mollweide","moll"],Gr={init:jr,forward:Fr,inverse:Hr,names:qr};function zr(){Math.abs(this.lat1+this.lat2)=0?(n=Math.sqrt(t.x*t.x+t.y*t.y),e=1):(n=-Math.sqrt(t.x*t.x+t.y*t.y),e=-1);var s=0;if(0!==n&&(s=Math.atan2(e*t.x,e*t.y)),this.sphere)return r=ut(this.long0+s/this.ns),i=wi(this.g-n/this.a),t.x=r,t.y=i,t;var o=this.g-n/this.a;return i=xi(o,this.e0,this.e1,this.e2,this.e3),r=ut(this.long0+s/this.ns),t.x=r,t.y=i,t}var Wr=["Equidistant_Conic","eqdc"],$r={init:zr,forward:Br,inverse:Ur,names:Wr};function Vr(){this.R=this.a}function Xr(t){var e,n,i=t.x,r=t.y,s=ut(i-this.long0);Math.abs(r)<=g&&(e=this.x0+this.R*s,n=this.y0);var o=$i(2*Math.abs(r/Math.PI));(Math.abs(s)<=g||Math.abs(Math.abs(r)-f)<=g)&&(e=this.x0,n=r>=0?this.y0+Math.PI*this.R*Math.tan(.5*o):this.y0+Math.PI*this.R*-Math.tan(.5*o));var a=.5*Math.abs(Math.PI/s-s/Math.PI),c=a*a,l=Math.sin(o),u=Math.cos(o),h=u/(l+u-1),d=h*h,p=h*(2/l-1),_=p*p,m=Math.PI*this.R*(a*(h-_)+Math.sqrt(c*(h-_)*(h-_)-(_+c)*(d-_)))/(_+c);s<0&&(m=-m),e=this.x0+m;var y=c+h;return m=Math.PI*this.R*(p*y-a*Math.sqrt((_+c)*(c+1)-y*y))/(_+c),n=r>=0?this.y0+m:this.y0-m,t.x=e,t.y=n,t}function Kr(t){var e,n,i,r,s,o,a,c,l,u,h,d,f;return t.x-=this.x0,t.y-=this.y0,h=Math.PI*this.R,i=t.x/h,r=t.y/h,s=i*i+r*r,o=-Math.abs(r)*(1+s),a=o-2*r*r+i*i,c=-2*o+1+2*r*r+s*s,f=r*r/c+(2*a*a*a/c/c/c-9*o*a/c/c)/27,l=(o-a*a/3/c)/c,u=2*Math.sqrt(-l/3),h=3*f/l/u,Math.abs(h)>1&&(h=h>=0?1:-1),d=Math.acos(h)/3,n=t.y>=0?(-u*Math.cos(d+Math.PI/3)-a/3/c)*Math.PI:-(-u*Math.cos(d+Math.PI/3)-a/3/c)*Math.PI,e=Math.abs(i)2*f*this.a)return;return n=e/this.a,i=Math.sin(n),r=Math.cos(n),s=this.long0,Math.abs(e)<=g?o=this.lat0:(o=$i(r*this.sin_p12+t.y*i*this.cos_p12/e),a=Math.abs(this.lat0)-f,s=Math.abs(a)<=g?this.lat0>=0?ut(this.long0+Math.atan2(t.x,-t.y)):ut(this.long0-Math.atan2(-t.x,t.y)):ut(this.long0+Math.atan2(t.x*i,e*this.cos_p12*r-t.y*this.sin_p12*i))),t.x=s,t.y=o,t}return c=gi(this.es),l=yi(this.es),u=vi(this.es),h=bi(this.es),Math.abs(this.sin_p12-1)<=g?(d=this.a*mi(c,l,u,h,f),e=Math.sqrt(t.x*t.x+t.y*t.y),p=d-e,o=xi(p/this.a,c,l,u,h),s=ut(this.long0+Math.atan2(t.x,-1*t.y)),t.x=s,t.y=o,t):Math.abs(this.sin_p12+1)<=g?(d=this.a*mi(c,l,u,h,f),e=Math.sqrt(t.x*t.x+t.y*t.y),p=e-d,o=xi(p/this.a,c,l,u,h),s=ut(this.long0+Math.atan2(t.x,t.y)),t.x=s,t.y=o,t):(e=Math.sqrt(t.x*t.x+t.y*t.y),y=Math.atan2(t.x,t.y),_=Mi(this.a,this.e,this.sin_p12),v=Math.cos(y),b=this.e*this.cos_p12*v,M=-b*b/(1-this.es),w=3*this.es*(1-M)*this.sin_p12*this.cos_p12*v/(1-this.es),x=e/_,L=x-M*(1+M)*Math.pow(x,3)/6-w*(1+3*M)*Math.pow(x,4)/24,E=1-M*L*L/2-x*L*L*L/6,m=Math.asin(this.sin_p12*Math.cos(L)+this.cos_p12*Math.sin(L)*v),s=ut(this.long0+Math.asin(Math.sin(y)*Math.sin(L)/Math.cos(m))),T=Math.sin(m),o=Math.atan2((T-this.es*E*this.sin_p12)*Math.tan(m),T*(1-this.es)),t.x=s,t.y=o,t)}var ns=["Azimuthal_Equidistant","aeqd"],is={init:Qr,forward:ts,inverse:es,names:ns};function rs(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function ss(t){var e,n,i,r,s,o,a,c,l=t.x,u=t.y;return i=ut(l-this.long0),e=Math.sin(u),n=Math.cos(u),r=Math.cos(i),o=this.sin_p14*e+this.cos_p14*n*r,s=1,(o>0||Math.abs(o)<=g)&&(a=this.a*s*n*Math.sin(i),c=this.y0+this.a*s*(this.cos_p14*e-this.sin_p14*n*r)),t.x=a,t.y=c,t}function os(t){var e,n,i,r,s,o,a;return t.x-=this.x0,t.y-=this.y0,e=Math.sqrt(t.x*t.x+t.y*t.y),n=$i(e/this.a),i=Math.sin(n),r=Math.cos(n),o=this.long0,Math.abs(e)<=g?(a=this.lat0,t.x=o,t.y=a,t):(a=$i(r*this.sin_p14+t.y*i*this.cos_p14/e),s=Math.abs(this.lat0)-f,Math.abs(s)<=g?(o=this.lat0>=0?ut(this.long0+Math.atan2(t.x,-t.y)):ut(this.long0-Math.atan2(-t.x,t.y)),t.x=o,t.y=a,t):(o=ut(this.long0+Math.atan2(t.x*i,e*this.cos_p14*r-t.y*this.sin_p14*i)),t.x=o,t.y=a,t))}var as=["ortho"],cs={init:rs,forward:ss,inverse:os,names:as},ls={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},us={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function hs(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=f-b/2?this.face=ls.TOP:this.lat0<=-(f-b/2)?this.face=ls.BOTTOM:Math.abs(this.long0)<=b?this.face=ls.FRONT:Math.abs(this.long0)<=f+b?this.face=this.long0>0?ls.RIGHT:ls.LEFT:this.face=ls.BACK,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)}function ds(t){var e,n,i,r,s,o,a={x:0,y:0},c={value:0};if(t.x-=this.long0,e=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(t.y)):t.y,n=t.x,this.face===ls.TOP)r=f-e,n>=b&&n<=f+b?(c.value=us.AREA_0,i=n-f):n>f+b||n<=-(f+b)?(c.value=us.AREA_1,i=n>0?n-w:n+w):n>-(f+b)&&n<=-b?(c.value=us.AREA_2,i=n+f):(c.value=us.AREA_3,i=n);else if(this.face===ls.BOTTOM)r=f+e,n>=b&&n<=f+b?(c.value=us.AREA_0,i=-n+f):n=-b?(c.value=us.AREA_1,i=-n):n<-b&&n>=-(f+b)?(c.value=us.AREA_2,i=-n-f):(c.value=us.AREA_3,i=n>0?-n+w:-n-w);else{var l,u,h,d,p,_,m;this.face===ls.RIGHT?n=_s(n,+f):this.face===ls.BACK?n=_s(n,+w):this.face===ls.LEFT&&(n=_s(n,-f)),d=Math.sin(e),p=Math.cos(e),_=Math.sin(n),m=Math.cos(n),l=p*m,u=p*_,h=d,this.face===ls.FRONT?(r=Math.acos(l),i=ps(r,h,u,c)):this.face===ls.RIGHT?(r=Math.acos(u),i=ps(r,h,-l,c)):this.face===ls.BACK?(r=Math.acos(-l),i=ps(r,h,-u,c)):this.face===ls.LEFT?(r=Math.acos(-u),i=ps(r,h,l,c)):(r=i=0,c.value=us.AREA_0)}return o=Math.atan(12/w*(i+Math.acos(Math.sin(i)*Math.cos(b))-f)),s=Math.sqrt((1-Math.cos(r))/(Math.cos(o)*Math.cos(o))/(1-Math.cos(Math.atan(1/Math.cos(i))))),c.value===us.AREA_1?o+=f:c.value===us.AREA_2?o+=w:c.value===us.AREA_3&&(o+=1.5*w),a.x=s*Math.cos(o),a.y=s*Math.sin(o),a.x=a.x*this.a+this.x0,a.y=a.y*this.a+this.y0,t.x=a.x,t.y=a.y,t}function fs(t){var e,n,i,r,s,o,a,c,l,u,h,d,p={lam:0,phi:0},_={value:0};if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,n=Math.atan(Math.sqrt(t.x*t.x+t.y*t.y)),e=Math.atan2(t.y,t.x),t.x>=0&&t.x>=Math.abs(t.y)?_.value=us.AREA_0:t.y>=0&&t.y>=Math.abs(t.x)?(_.value=us.AREA_1,e-=f):t.x<0&&-t.x>=Math.abs(t.y)?(_.value=us.AREA_2,e=e<0?e+w:e-w):(_.value=us.AREA_3,e+=f),l=w/12*Math.tan(e),s=Math.sin(l)/(Math.cos(l)-1/Math.sqrt(2)),o=Math.atan(s),i=Math.cos(e),r=Math.tan(n),a=1-i*i*r*r*(1-Math.cos(Math.atan(1/Math.cos(o)))),a<-1?a=-1:a>1&&(a=1),this.face===ls.TOP)c=Math.acos(a),p.phi=f-c,_.value===us.AREA_0?p.lam=o+f:_.value===us.AREA_1?p.lam=o<0?o+w:o-w:_.value===us.AREA_2?p.lam=o-f:p.lam=o;else if(this.face===ls.BOTTOM)c=Math.acos(a),p.phi=c-f,_.value===us.AREA_0?p.lam=-o+f:_.value===us.AREA_1?p.lam=-o:_.value===us.AREA_2?p.lam=-o-f:p.lam=o<0?-o-w:-o+w;else{var m,g,y;m=a,l=m*m,y=l>=1?0:Math.sqrt(1-l)*Math.sin(o),l+=y*y,g=l>=1?0:Math.sqrt(1-l),_.value===us.AREA_1?(l=g,g=-y,y=l):_.value===us.AREA_2?(g=-g,y=-y):_.value===us.AREA_3&&(l=g,g=y,y=-l),this.face===ls.RIGHT?(l=m,m=-g,g=l):this.face===ls.BACK?(m=-m,g=-g):this.face===ls.LEFT&&(l=m,m=g,g=-l),p.phi=Math.acos(-y)-f,p.lam=Math.atan2(g,m),this.face===ls.RIGHT?p.lam=_s(p.lam,-f):this.face===ls.BACK?p.lam=_s(p.lam,-w):this.face===ls.LEFT&&(p.lam=_s(p.lam,+f))}0!==this.es&&(u=p.phi<0?1:0,h=Math.tan(p.phi),d=this.b/Math.sqrt(h*h+this.one_minus_f_squared),p.phi=Math.atan(Math.sqrt(this.a*this.a-d*d)/(this.one_minus_f*d)),u&&(p.phi=-p.phi));return p.lam+=this.long0,t.x=p.lam,t.y=p.phi,t}function ps(t,e,n,i){var r;return tb&&r<=f+b?(i.value=us.AREA_1,r-=f):r>f+b||r<=-(f+b)?(i.value=us.AREA_2,r=r>=0?r-w:r+w):(i.value=us.AREA_3,r+=f)),r}function _s(t,e){var n=t+e;return n<-w?n+=M:n>+w&&(n-=M),n}var ms=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"],gs={init:hs,forward:ds,inverse:fs,names:ms},ys=[[1,2.2199e-17,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],vs=[[-5.20417e-18,.0124,1.21431e-18,-8.45284e-11],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],bs=.8487,Ms=1.3523,ws=v/5,xs=1/ws,Ls=18,Es=function(t,e){return t[0]+e*(t[1]+e*(t[2]+e*t[3]))},Ts=function(t,e){return t[1]+e*(2*t[2]+3*e*t[3])};function Ss(t,e,n,i){for(var r=e;i;--i){var s=t(r);if(r-=s,Math.abs(s)=Ls&&(i=Ls-1),n=v*(n-xs*i);var r={x:Es(ys[i],n)*e,y:Es(vs[i],n)};return t.y<0&&(r.y=-r.y),r.x=r.x*this.a*bs+this.x0,r.y=r.y*this.a*Ms+this.y0,r}function Cs(t){var e={x:(t.x-this.x0)/(this.a*bs),y:Math.abs(t.y-this.y0)/(this.a*Ms)};if(e.y>=1)e.x/=ys[Ls][0],e.y=t.y<0?-f:f;else{var n=Math.floor(e.y*Ls);for(n<0?n=0:n>=Ls&&(n=Ls-1);;)if(vs[n][0]>e.y)--n;else{if(!(vs[n+1][0]<=e.y))break;++n}var i=vs[n],r=5*(e.y-i[0])/(vs[n+1][0]-i[0]);r=Ss(function(t){return(Es(i,t)-e.y)/Ts(i,t)},r,g,100),e.x/=Es(ys[n],r),e.y=(5*n+r)*y,t.y<0&&(e.y=-e.y)}return e.x=ut(e.x+this.long0),e}var Is=["Robinson","robin"],Ds={init:Os,forward:ks,inverse:Cs,names:Is};function Rs(){this.name="geocent"}function As(t){var e=Zt(t,this.es,this.a);return e}function Ns(t){var e=Jt(t,this.es,this.a,this.b);return e}var Ys=["Geocentric","geocentric","geocent","Geocent"],Ps={init:Rs,forward:As,inverse:Ns,names:Ys},js={N_POLE:0,S_POLE:1,EQUIT:2,OBLIQ:3},Fs={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};function Hs(){if(Object.keys(Fs).forEach(function(t){if("undefined"===typeof this[t])this[t]=Fs[t].def;else{if(Fs[t].num&&isNaN(this[t]))throw new Error("Invalid parameter value, must be numeric "+t+" = "+this[t]);Fs[t].num&&(this[t]=parseFloat(this[t]))}Fs[t].degrees&&(this[t]=this[t]*y)}.bind(this)),Math.abs(Math.abs(this.lat0)-f)1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var t=this.tilt,e=this.azi;this.cg=Math.cos(e),this.sg=Math.sin(e),this.cw=Math.cos(t),this.sw=Math.sin(t)}function qs(t){t.x-=this.long0;var e,n,i,r,s=Math.sin(t.y),o=Math.cos(t.y),a=Math.cos(t.x);switch(this.mode){case js.OBLIQ:n=this.sinph0*s+this.cosph0*o*a;break;case js.EQUIT:n=o*a;break;case js.S_POLE:n=-s;break;case js.N_POLE:n=s;break}switch(n=this.pn1/(this.p-n),e=n*o*Math.sin(t.x),this.mode){case js.OBLIQ:n*=this.cosph0*s-this.sinph0*o*a;break;case js.EQUIT:n*=s;break;case js.N_POLE:n*=-o*a;break;case js.S_POLE:n*=o*a;break}return i=n*this.cg+e*this.sg,r=1/(i*this.sw*this.h1+this.cw),e=(e*this.cg-n*this.sg)*this.cw*r,n=i*r,t.x=e*this.a,t.y=n*this.a,t}function Gs(t){t.x/=this.a,t.y/=this.a;var e,n,i,r={x:t.x,y:t.y};i=1/(this.pn1-t.y*this.sw),e=this.pn1*t.x*i,n=this.pn1*t.y*this.cw*i,t.x=e*this.cg+n*this.sg,t.y=n*this.cg-e*this.sg;var s=fn(t.x,t.y);if(Math.abs(s)1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,0!==this.es){var t=1-this.es,e=1/t;this.radius_p=Math.sqrt(t),this.radius_p2=t,this.radius_p_inv2=e,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")}function Ws(t){var e,n,i,r,s=t.x,o=t.y;if(s-=this.long0,"ellipse"===this.shape){o=Math.atan(this.radius_p2*Math.tan(o));var a=this.radius_p/fn(this.radius_p*Math.cos(o),Math.sin(o));if(n=a*Math.cos(s)*Math.cos(o),i=a*Math.sin(s)*Math.cos(o),r=a*Math.sin(o),(this.radius_g-n)*n-i*i-r*r*this.radius_p_inv2<0)return t.x=Number.NaN,t.y=Number.NaN,t;e=this.radius_g-n,this.flip_axis?(t.x=this.radius_g_1*Math.atan(i/fn(r,e)),t.y=this.radius_g_1*Math.atan(r/e)):(t.x=this.radius_g_1*Math.atan(i/e),t.y=this.radius_g_1*Math.atan(r/fn(i,e)))}else"sphere"===this.shape&&(e=Math.cos(o),n=Math.cos(s)*e,i=Math.sin(s)*e,r=Math.sin(o),e=this.radius_g-n,this.flip_axis?(t.x=this.radius_g_1*Math.atan(i/fn(r,e)),t.y=this.radius_g_1*Math.atan(r/e)):(t.x=this.radius_g_1*Math.atan(i/e),t.y=this.radius_g_1*Math.atan(r/fn(i,e))));return t.x=t.x*this.a,t.y=t.y*this.a,t}function $s(t){var e,n,i,r,s=-1,o=0,a=0;if(t.x=t.x/this.a,t.y=t.y/this.a,"ellipse"===this.shape){this.flip_axis?(a=Math.tan(t.y/this.radius_g_1),o=Math.tan(t.x/this.radius_g_1)*fn(1,a)):(o=Math.tan(t.x/this.radius_g_1),a=Math.tan(t.y/this.radius_g_1)*fn(1,o));var c=a/this.radius_p;if(e=o*o+c*c+s*s,n=2*this.radius_g*s,i=n*n-4*e*this.C,i<0)return t.x=Number.NaN,t.y=Number.NaN,t;r=(-n-Math.sqrt(i))/(2*e),s=this.radius_g+r*s,o*=r,a*=r,t.x=Math.atan2(o,s),t.y=Math.atan(a*Math.cos(t.x)/s),t.y=Math.atan(this.radius_p_inv2*Math.tan(t.y))}else if("sphere"===this.shape){if(this.flip_axis?(a=Math.tan(t.y/this.radius_g_1),o=Math.tan(t.x/this.radius_g_1)*Math.sqrt(1+a*a)):(o=Math.tan(t.x/this.radius_g_1),a=Math.tan(t.y/this.radius_g_1)*Math.sqrt(1+o*o)),e=o*o+a*a+s*s,n=2*this.radius_g*s,i=n*n-4*e*this.C,i<0)return t.x=Number.NaN,t.y=Number.NaN,t;r=(-n-Math.sqrt(i))/(2*e),s=this.radius_g+r*s,o*=r,a*=r,t.x=Math.atan2(o,s),t.y=Math.atan(a*Math.cos(t.x)/s)}return t.x=t.x+this.long0,t}var Vs=["Geostationary Satellite View","Geostationary_Satellite","geos"],Xs={init:Us,forward:Ws,inverse:$s,names:Vs},Ks=1.340264,Zs=-.081106,Js=893e-6,Qs=.003796,to=Math.sqrt(3)/2;function eo(){this.es=0,this.long0=void 0!==this.long0?this.long0:0}function no(t){var e=ut(t.x-this.long0),n=t.y,i=Math.asin(to*Math.sin(n)),r=i*i,s=r*r*r;return t.x=e*Math.cos(i)/(to*(Ks+3*Zs*r+s*(7*Js+9*Qs*r))),t.y=i*(Ks+Zs*r+s*(Js+Qs*r)),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t}function io(t){t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a;var e,n,i,r,s,o,a=1e-9,c=12,l=t.y;for(o=0;o=f?this.cphi1=0:this.cphi1=1/Math.tan(this.phi1),this.inverse=ho,this.forward=uo)}function co(t){var e,n,i,r=ut(t.x-(this.long0||0)),s=t.y;return e=this.am1+this.m1-rn(s,n=Math.sin(s),i=Math.cos(s),this.en),n=i*r/(e*Math.sqrt(1-this.es*n*n)),t.x=e*Math.sin(n),t.y=this.am1-e*Math.cos(n),t.x=this.a*t.x+(this.x0||0),t.y=this.a*t.y+(this.y0||0),t}function lo(t){var e,n,i,r;if(t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a,n=fn(t.x,t.y=this.am1-t.y),r=on(this.am1+this.m1-n,this.es,this.en),(e=Math.abs(r))oo?(t.x=n*Math.sin(e=i*Math.cos(r)/n),t.y=this.cphi1-n*Math.cos(e)):t.x=t.y=0,t.x=this.a*t.x+(this.x0||0),t.y=this.a*t.y+(this.y0||0),t}function ho(t){var e,n;t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a;var i=fn(t.x,t.y=this.cphi1-t.y);if(n=this.cphi1+this.phi1-i,Math.abs(n)>f)throw new Error;return e=Math.abs(Math.abs(n)-f)<=oo?0:i*Math.atan2(t.x,t.y)/Math.cos(n),t.x=ut(e+(this.long0||0)),t.y=wi(n),t}var fo=["bonne","Bonne (Werner lat_1=90)"],po={init:ao,names:fo},_o=function(t){t.Proj.projections.add(hn),t.Proj.projections.add(Ln),t.Proj.projections.add(kn),t.Proj.projections.add(qn),t.Proj.projections.add($n),t.Proj.projections.add(Jn),t.Proj.projections.add(si),t.Proj.projections.add(ui),t.Proj.projections.add(_i),t.Proj.projections.add(Oi),t.Proj.projections.add(Wi),t.Proj.projections.add(Qi),t.Proj.projections.add(rr),t.Proj.projections.add(ur),t.Proj.projections.add(_r),t.Proj.projections.add(Mr),t.Proj.projections.add(Tr),t.Proj.projections.add(Ir),t.Proj.projections.add(Pr),t.Proj.projections.add(Gr),t.Proj.projections.add($r),t.Proj.projections.add(Jr),t.Proj.projections.add(is),t.Proj.projections.add(cs),t.Proj.projections.add(gs),t.Proj.projections.add(Ds),t.Proj.projections.add(Ps),t.Proj.projections.add(Bs),t.Proj.projections.add(Xs),t.Proj.projections.add(so),t.Proj.projections.add(po)};me.defaultDatum="WGS84",me.Proj=Xt,me.WGS84=new me.Proj("WGS84"),me.Point=ze,me.toPoint=ae,me.defs=K,me.nadgrid=Pt,me.transform=he,me.mgrs=Ee,me.version="__VERSION__",_o(me);e["a"]=me},a7da:function(t,e,n){"use strict";e["a"]={name:"QCarouselSlide",inject:{carousel:{default:function(){console.error("QCarouselSlide needs to be child of QCarousel")}}},props:{imgSrc:String},computed:{computedStyle:function(){var t={};return this.imgSrc&&(t.backgroundImage="url(".concat(this.imgSrc,")"),t.backgroundSize="cover",t.backgroundPosition="50%"),!this.carousel.inFullscreen&&this.carousel.height&&(t.maxHeight=this.carousel.height),t}},render:function(t){return t("div",{staticClass:"q-carousel-slide relative-position scroll",style:this.computedStyle},this.$slots.default)},created:function(){this.carousel.__registerSlide()},beforeDestroy:function(){this.carousel.__unregisterSlide()}}},a7fa:function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; +var e=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(t){return function(i,r,s,o){var a=e(i),c=n[t][e(i)];return 2===a&&(c=c[r?0:1]),c.replace(/%d/i,i)}},r=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],s=t.defineLocale("ar-dz",{months:r,monthsShort:r,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(t){return"م"===t},meridiem:function(t,e,n){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:0,doy:4}});return s})},a43f:function(t,e,n){"use strict";e["a"]={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature"}},a481:function(t,e,n){"use strict";var i=n("cb7c"),r=n("4bf8"),s=n("9def"),o=n("4588"),a=n("0390"),c=n("5f1b"),l=Math.max,u=Math.min,h=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g,p=function(t){return void 0===t?t:String(t)};n("214f")("replace",2,function(t,e,n,_){return[function(i,r){var s=t(this),o=void 0==i?void 0:i[e];return void 0!==o?o.call(i,s,r):n.call(String(s),i,r)},function(t,e){var r=_(n,t,this,e);if(r.done)return r.value;var h=i(t),d=String(this),f="function"===typeof e;f||(e=String(e));var g=h.global;if(g){var y=h.unicode;h.lastIndex=0}var v=[];while(1){var b=c(h,d);if(null===b)break;if(v.push(b),!g)break;var M=String(b[0]);""===M&&(h.lastIndex=a(d,s(h.lastIndex),y))}for(var w="",x=0,L=0;L=x&&(w+=d.slice(x,T)+I,x=T+E.length)}return w+d.slice(x)}];function m(t,e,i,s,o,a){var c=i+t.length,l=s.length,u=f;return void 0!==o&&(o=r(o),u=d),n.call(a,u,function(n,r){var a;switch(r.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,i);case"'":return e.slice(c);case"<":a=o[r.slice(1,-1)];break;default:var u=+r;if(0===u)return n;if(u>l){var d=h(u/10);return 0===d?n:d<=l?void 0===s[d-1]?r.charAt(1):s[d-1]+r.charAt(1):n}a=s[u-1]}return void 0===a?"":a})}})},a4a9:function(t,e,n){},a504:function(t,e,n){"use strict";n.d(e,"b",function(){return i}),n.d(e,"a",function(){return r});var i=.5,r=!0},a555:function(t,e,n){},a568:function(t,e,n){"use strict";n("7fc9");function i(t,e){return t[0]+=e[0],t[1]+=e[1],t}function r(t,e){var n,i,r=t[0],s=t[1],o=e[0],a=e[1],c=o[0],l=o[1],u=a[0],h=a[1],d=u-c,f=h-l,p=0===d&&0===f?0:(d*(r-c)+f*(s-l))/(d*d+f*f||0);return p<=0?(n=c,i=l):p>=1?(n=u,i=h):(n=c+p*d,i=l+p*f),[n,i]}function s(t){return function(e){return f(e,t)}}function o(t,e,n){return t?e.replace("{x}",t[0].toFixed(n)).replace("{y}",t[1].toFixed(n)):""}function a(t,e){for(var n=!0,i=t.length-1;i>=0;--i)if(t[i]!=e[i]){n=!1;break}return n}function c(t,e){var n=Math.cos(e),i=Math.sin(e),r=t[0]*n-t[1]*i,s=t[1]*n+t[0]*i;return t[0]=r,t[1]=s,t}function l(t,e){return t[0]*=e,t[1]*=e,t}function u(t,e){var n=t[0]-e[0],i=t[1]-e[1];return n*n+i*i}function h(t,e){return Math.sqrt(u(t,e))}function d(t,e){return u(t,r(t,e))}function f(t,e){return o(t,"{x}, {y}",e)}n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r}),n.d(e,"c",function(){return s}),n.d(e,"e",function(){return a}),n.d(e,"f",function(){return c}),n.d(e,"g",function(){return l}),n.d(e,"h",function(){return u}),n.d(e,"d",function(){return h}),n.d(e,"i",function(){return d})},a5b8:function(t,e,n){"use strict";var i=n("d8e8");function r(t){var e,n;this.promise=new t(function(t,i){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=i}),this.resolve=i(e),this.reject=i(n)}t.exports.f=function(t){return new r(t)}},a60d:function(t,e,n){"use strict";n.d(e,"c",function(){return o}),n.d(e,"b",function(){return a}),n.d(e,"d",function(){return c});n("f751");var i,r=n("3156"),s=n.n(r),o="undefined"===typeof window,a=!1,c=o;function l(t,e){var n=/(edge)\/([\w.]+)/.exec(t)||/(opr)[\/]([\w.]+)/.exec(t)||/(vivaldi)[\/]([\w.]+)/.exec(t)||/(chrome)[\/]([\w.]+)/.exec(t)||/(iemobile)[\/]([\w.]+)/.exec(t)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(t)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(t)||/(webkit)[\/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:n[5]||n[3]||n[1]||"",version:n[2]||n[4]||"0",versionNumber:n[4]||n[2]||"0",platform:e[0]||""}}function u(t){return/(ipad)/.exec(t)||/(ipod)/.exec(t)||/(windows phone)/.exec(t)||/(iphone)/.exec(t)||/(kindle)/.exec(t)||/(silk)/.exec(t)||/(android)/.exec(t)||/(win)/.exec(t)||/(mac)/.exec(t)||/(linux)/.exec(t)||/(cros)/.exec(t)||/(playbook)/.exec(t)||/(bb)/.exec(t)||/(blackberry)/.exec(t)||[]}function h(t){t=(t||navigator.userAgent||navigator.vendor||window.opera).toLowerCase();var e=u(t),n=l(t,e),i={};return n.browser&&(i[n.browser]=!0,i.version=n.version,i.versionNumber=parseInt(n.versionNumber,10)),n.platform&&(i[n.platform]=!0),(i.android||i.bb||i.blackberry||i.ipad||i.iphone||i.ipod||i.kindle||i.playbook||i.silk||i["windows phone"])&&(i.mobile=!0),(i.ipod||i.ipad||i.iphone)&&(i.ios=!0),i["windows phone"]&&(i.winphone=!0,delete i["windows phone"]),(i.cros||i.mac||i.linux||i.win)&&(i.desktop=!0),(i.chrome||i.opr||i.safari||i.vivaldi)&&(i.webkit=!0),(i.rv||i.iemobile)&&(n.browser="ie",i.ie=!0),i.edge&&(n.browser="edge",i.edge=!0),(i.safari&&i.blackberry||i.bb)&&(n.browser="blackberry",i.blackberry=!0),i.safari&&i.playbook&&(n.browser="playbook",i.playbook=!0),i.opr&&(n.browser="opera",i.opera=!0),i.safari&&i.android&&(n.browser="android",i.android=!0),i.safari&&i.kindle&&(n.browser="kindle",i.kindle=!0),i.safari&&i.silk&&(n.browser="silk",i.silk=!0),i.vivaldi&&(n.browser="vivaldi",i.vivaldi=!0),i.name=n.browser,i.platform=n.platform,o||(window.process&&window.process.versions&&window.process.versions.electron?i.electron=!0:0===document.location.href.indexOf("chrome-extension://")?i.chromeExt=!0:(window._cordovaNative||window.cordova)&&(i.cordova=!0),a=void 0===i.cordova&&void 0===i.electron&&!!document.querySelector("[data-server-rendered]"),a&&(c=!0)),i}function d(){if(void 0!==i)return i;try{if(window.localStorage)return i=!0,!0}catch(t){}return i=!1,!1}function f(){return{has:{touch:function(){return!!("ontouchstart"in document.documentElement)||window.navigator.msMaxTouchPoints>0}(),webStorage:d()},within:{iframe:window.self!==window.top}}}e["a"]={has:{touch:!1,webStorage:!1},within:{iframe:!1},parseSSR:function(t){return t?{is:h(t.req.headers["user-agent"]),has:this.has,within:this.within}:s()({is:h()},f())},install:function(t,e,n){var i=this;o?e.server.push(function(t,e){t.platform=i.parseSSR(e.ssr)}):(this.is=h(),a?(e.takeover.push(function(t){c=a=!1,Object.assign(t.platform,f())}),n.util.defineReactive(t,"platform",this)):(Object.assign(this,f()),t.platform=this))}}},a645:function(t,e,n){"use strict";t.exports=Error},a6ef:function(t,e,n){"use strict";var i=n("38de"),r=n("fd89"),s=n("0660"),o=n("85e4"),a=n("3894"),c=n("f885"),l=n("ad3f"),u=n("1d1d"),h=n("223d");class d{constructor(){d.constructor_.apply(this,arguments)}static constructor_(){this._min=u["a"].POSITIVE_INFINITY,this._max=u["a"].NEGATIVE_INFINITY}getMin(){return this._min}intersects(t,e){return!(this._min>e||this._maxs?1:0}get interfaces_(){return[h["a"]]}}d.NodeComparator=f;class p extends d{constructor(){super(),p.constructor_.apply(this,arguments)}static constructor_(){this._item=null;const t=arguments[0],e=arguments[1],n=arguments[2];this._min=t,this._max=e,this._item=n}query(t,e,n){if(!this.intersects(t,e))return null;n.visitItem(this._item)}}var _=n("7d15"),m=n("968e"),g=n("70d5"),y=n("3d80");class v extends d{constructor(){super(),v.constructor_.apply(this,arguments)}static constructor_(){this._node1=null,this._node2=null;const t=arguments[0],e=arguments[1];this._node1=t,this._node2=e,this.buildExtent(this._node1,this._node2)}buildExtent(t,e){this._min=Math.min(t._min,e._min),this._max=Math.max(t._max,e._max)}query(t,e,n){if(!this.intersects(t,e))return null;null!==this._node1&&this._node1.query(t,e,n),null!==this._node2&&this._node2.query(t,e,n)}}class b{constructor(){b.constructor_.apply(this,arguments)}static constructor_(){this._leaves=new g["a"],this._root=null,this._level=0}buildTree(){_["a"].sort(this._leaves,new d.NodeComparator);let t=this._leaves,e=null,n=new g["a"];while(1){if(this.buildLevel(t,n),1===n.size())return n.get(0);e=t,t=n,n=e}}insert(t,e,n){if(null!==this._root)throw new y["a"]("Index cannot be added to once it has been queried");this._leaves.add(new p(t,e,n))}query(t,e,n){if(this.init(),null===this._root)return null;this._root.query(t,e,n)}buildRoot(){if(null!==this._root)return null;this._root=this.buildTree()}printNode(t){m["a"].out.println(c["a"].toLineString(new l["a"](t._min,this._level),new l["a"](t._max,this._level)))}init(){return null!==this._root?null:0===this._leaves.size()?null:void this.buildRoot()}buildLevel(t,e){this._level++,e.clear();for(let n=0;n=this.text.length)return;t=this.text[this.place++]}switch(this.state){case k:return this.neutral(t);case C:return this.keyword(t);case D:return this.quoted(t);case R:return this.afterquote(t);case I:return this.number(t);case A:return}},H.prototype.afterquote=function(t){if('"'===t)return this.word+='"',void(this.state=D);if(j.test(t))return this.word=this.word.trim(),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in afterquote yet, index '+this.place)},H.prototype.afterItem=function(t){return","===t?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=k)):"]"===t?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=k,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=A))):void 0},H.prototype.number=function(t){if(!F.test(t)){if(j.test(t))return this.word=parseFloat(this.word),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in number yet, index '+this.place)}this.word+=t},H.prototype.quoted=function(t){'"'!==t?this.word+=t:this.state=R},H.prototype.keyword=function(t){if(P.test(t))this.word+=t;else{if("["===t){var e=[];return e.push(this.word),this.level++,null===this.root?this.root=e:this.currentObject.push(e),this.stack.push(this.currentObject),this.currentObject=e,void(this.state=k)}if(!j.test(t))throw new Error("havn't handled \""+t+'" in keyword yet, index '+this.place);this.afterItem(t)}},H.prototype.neutral=function(t){if(Y.test(t))return this.word=t,void(this.state=C);if('"'===t)return this.word="",void(this.state=D);if(F.test(t))return this.word=t,void(this.state=I);if(!j.test(t))throw new Error("havn't handled \""+t+'" in neutral yet, index '+this.place);this.afterItem(t)},H.prototype.output=function(){while(this.place0?90:-90)):(t.lat0=$(t.lat1>0?90:-90),t.lat_ts=t.lat1)}var K=function(t){var e=O(t),n=e[0],i={};return z(e,i),V(i),i[n]};function J(t){var e=this;if(2===arguments.length){var n=arguments[1];"string"===typeof n?"+"===n.charAt(0)?J[t]=S(arguments[1]):J[t]=K(arguments[1]):J[t]=n}else if(1===arguments.length){if(Array.isArray(t))return t.map(function(t){Array.isArray(t)?J.apply(e,t):J(t)});if("string"===typeof t){if(t in J)return J[t]}else"EPSG"in t?J["EPSG:"+t.EPSG]=t:"ESRI"in t?J["ESRI:"+t.ESRI]=t:"IAU2000"in t?J["IAU2000:"+t.IAU2000]=t:console.log(t);return}}i(J);var Z=J;function Q(t){return"string"===typeof t}function tt(t){return t in Z}var et=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function nt(t){return et.some(function(e){return t.indexOf(e)>-1})}var it=["3857","900913","3785","102113"];function rt(t){var e=T(t,"authority");if(e){var n=T(e,"epsg");return n&&it.indexOf(n)>-1}}function st(t){var e=T(t,"extension");if(e)return T(e,"proj4")}function ot(t){return"+"===t[0]}function at(t){if(!Q(t))return t;if(tt(t))return Z[t];if(nt(t)){var e=K(t);if(rt(e))return Z["EPSG:3857"];var n=st(e);return n?S(n):e}return ot(t)?S(t):void 0}var ct=at,lt=function(t,e){var n,i;if(t=t||{},!e)return t;for(i in e)n=e[i],void 0!==n&&(t[i]=n);return t},ut=function(t,e,n){var i=t*e;return n/Math.sqrt(1-i*i)},ht=function(t){return t<0?-1:1},dt=function(t){return Math.abs(t)<=w?t:t-ht(t)*M},ft=function(t,e,n){var i=t*n,r=.5*t;return i=Math.pow((1-i)/(1+i),r),Math.tan(.5*(f-e))/i},pt=function(t,e){for(var n,i,r=.5*t,s=f-2*Math.atan(e),o=0;o<=15;o++)if(n=t*Math.sin(s),i=f-2*Math.atan(e*Math.pow((1-n)/(1+n),r))-s,s+=i,Math.abs(i)<=1e-10)return s;return-9999};function _t(){var t=this.b/this.a;this.es=1-t*t,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=ut(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function mt(t){var e,n,i=t.x,r=t.y;if(r*v>90&&r*v<-90&&i*v>180&&i*v<-180)return null;if(Math.abs(Math.abs(r)-f)<=g)return null;if(this.sphere)e=this.x0+this.a*this.k0*dt(i-this.long0),n=this.y0+this.a*this.k0*Math.log(Math.tan(b+.5*r));else{var s=Math.sin(r),o=ft(this.e,r,s);e=this.x0+this.a*this.k0*dt(i-this.long0),n=this.y0-this.a*this.k0*Math.log(o)}return t.x=e,t.y=n,t}function gt(t){var e,n,i=t.x-this.x0,r=t.y-this.y0;if(this.sphere)n=f-2*Math.atan(Math.exp(-r/(this.a*this.k0)));else{var s=Math.exp(-r/(this.a*this.k0));if(n=pt(this.e,s),-9999===n)return null}return e=dt(this.long0+i/(this.a*this.k0)),t.x=e,t.y=n,t}var yt=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"],vt={init:_t,forward:mt,inverse:gt,names:yt};function bt(){}function Mt(t){return t}var wt=["longlat","identity"],xt={init:bt,forward:Mt,inverse:Mt,names:wt},Lt=[vt,xt],Et={},Tt=[];function St(t,e){var n=Tt.length;return t.names?(Tt[n]=t,t.names.forEach(function(t){Et[t.toLowerCase()]=n}),this):(console.log(e),!0)}function Ot(t){if(!t)return!1;var e=t.toLowerCase();return"undefined"!==typeof Et[e]&&Tt[Et[e]]?Tt[Et[e]]:void 0}function kt(){Lt.forEach(St)}var Ct={start:kt,add:St,get:Ot},It={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk80ign:{a:6378249.2,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"}},Dt=It.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};function Rt(t,e,n,i){var r=t*t,s=e*e,o=(r-s)/r,a=0;i?(t*=1-o*(p+o*(_+o*m)),r=t*t,o=0):a=Math.sqrt(o);var c=(r-s)/s;return{es:o,e:a,ep2:c}}function At(t,e,n,i,r){if(!t){var s=T(It,i);s||(s=Dt),t=s.a,e=s.b,n=s.rf}return n&&!e&&(e=(1-1/n)*t),(0===n||Math.abs(t-e)3&&(0===f.datum_params[3]&&0===f.datum_params[4]&&0===f.datum_params[5]&&0===f.datum_params[6]||(f.datum_type=s,f.datum_params[3]*=d,f.datum_params[4]*=d,f.datum_params[5]*=d,f.datum_params[6]=f.datum_params[6]/1e6+1))),h&&(f.datum_type=o,f.grids=h),f.a=n,f.b=i,f.es=l,f.ep2=u,f}var Ht=Ft,Gt={};function qt(t,e){var n=new DataView(e),i=Wt(n),r=$t(n,i),s=Xt(n,r,i),o={header:r,subgrids:s};return Gt[t]=o,o}function zt(t){if(void 0===t)return null;var e=t.split(",");return e.map(Bt)}function Bt(t){if(0===t.length)return null;var e="@"===t[0];return e&&(t=t.slice(1)),"null"===t?{name:"null",mandatory:!e,grid:null,isNull:!0}:{name:t,mandatory:!e,grid:Gt[t]||null,isNull:!1}}function Ut(t){return t/3600*Math.PI/180}function Wt(t){var e=t.getInt32(8,!1);return 11!==e&&(e=t.getInt32(8,!0),11!==e&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}function $t(t,e){return{nFields:t.getInt32(8,e),nSubgridFields:t.getInt32(24,e),nSubgrids:t.getInt32(40,e),shiftType:Vt(t,56,64).trim(),fromSemiMajorAxis:t.getFloat64(120,e),fromSemiMinorAxis:t.getFloat64(136,e),toSemiMajorAxis:t.getFloat64(152,e),toSemiMinorAxis:t.getFloat64(168,e)}}function Vt(t,e,n){return String.fromCharCode.apply(null,new Uint8Array(t.buffer.slice(e,n)))}function Xt(t,e,n){for(var i=176,r=[],s=0;s5e-11)&&(t.datum_type===r?t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]:t.datum_type!==s||t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]&&t.datum_params[3]===e.datum_params[3]&&t.datum_params[4]===e.datum_params[4]&&t.datum_params[5]===e.datum_params[5]&&t.datum_params[6]===e.datum_params[6]))}function ne(t,e,n){var i,r,s,o,a=t.x,c=t.y,l=t.z?t.z:0;if(c<-f&&c>-1.001*f)c=-f;else if(c>f&&c<1.001*f)c=f;else{if(c<-f)return{x:-1/0,y:-1/0,z:t.z};if(c>f)return{x:1/0,y:1/0,z:t.z}}return a>Math.PI&&(a-=2*Math.PI),r=Math.sin(c),o=Math.cos(c),s=r*r,i=n/Math.sqrt(1-e*s),{x:(i+l)*o*Math.cos(a),y:(i+l)*o*Math.sin(a),z:(i*(1-e)+l)*r}}function ie(t,e,n,i){var r,s,o,a,c,l,u,h,d,p,_,m,g,y,v,b,M=1e-12,w=M*M,x=30,L=t.x,E=t.y,T=t.z?t.z:0;if(r=Math.sqrt(L*L+E*E),s=Math.sqrt(L*L+E*E+T*T),r/nw&&gi.y||f>i.x||ml&&Math.abs(o.y)>l);if(c<0)return console.log("Inverse grid shift iterator failed to converge."),i;i.x=dt(s.x+n.ll[0]),i.y=s.y+n.ll[1]}else isNaN(s.x)||(i.x=t.x+s.x,i.y=t.y+s.y);return i}function ue(t,e){var n,i={x:t.x/e.del[0],y:t.y/e.del[1]},r={x:Math.floor(i.x),y:Math.floor(i.y)},s={x:i.x-1*r.x,y:i.y-1*r.y},o={x:Number.NaN,y:Number.NaN};if(r.x<0||r.x>=e.lim[0])return o;if(r.y<0||r.y>=e.lim[1])return o;n=r.y*e.lim[0]+r.x;var a={x:e.cvs[n][0],y:e.cvs[n][1]};n++;var c={x:e.cvs[n][0],y:e.cvs[n][1]};n+=e.lim[0];var l={x:e.cvs[n][0],y:e.cvs[n][1]};n--;var u={x:e.cvs[n][0],y:e.cvs[n][1]},h=s.x*s.y,d=s.x*(1-s.y),f=(1-s.x)*(1-s.y),p=(1-s.x)*s.y;return o.x=f*a.x+d*c.x+p*u.x+h*l.x,o.y=f*a.y+d*c.y+p*u.y+h*l.y,o}var he=function(t,e,n){var i,r,s,o=n.x,a=n.y,c=n.z||0,l={};for(s=0;s<3;s++)if(!e||2!==s||void 0!==n.z)switch(0===s?(i=o,r=-1!=="ew".indexOf(t.axis[s])?"x":"y"):1===s?(i=a,r=-1!=="ns".indexOf(t.axis[s])?"y":"x"):(i=c,r="z"),t.axis[s]){case"e":l[r]=i;break;case"w":l[r]=-i;break;case"n":l[r]=i;break;case"s":l[r]=-i;break;case"u":void 0!==n[r]&&(l.z=i);break;case"d":void 0!==n[r]&&(l.z=-i);break;default:return null}return l},de=function(t){var e={x:t[0],y:t[1]};return t.length>2&&(e.z=t[2]),t.length>3&&(e.m=t[3]),e},fe=function(t){pe(t.x),pe(t.y)};function pe(t){if("function"===typeof Number.isFinite){if(Number.isFinite(t))return;throw new TypeError("coordinates must be finite numbers")}if("number"!==typeof t||t!==t||!isFinite(t))throw new TypeError("coordinates must be finite numbers")}function _e(t,e){return(t.datum.datum_type===r||t.datum.datum_type===s||t.datum.datum_type===o)&&"WGS84"!==e.datumCode||(e.datum.datum_type===r||e.datum.datum_type===s||e.datum.datum_type===o)&&"WGS84"!==t.datumCode}function me(t,e,n,i){var r;n=Array.isArray(n)?de(n):{x:n.x,y:n.y,z:n.z,m:n.m};var s=void 0!==n.z;if(fe(n),t.datum&&e.datum&&_e(t,e)&&(r=new te("WGS84"),n=me(t,r,n,i),t=r),i&&"enu"!==t.axis&&(n=he(t,!1,n)),"longlat"===t.projName)n={x:n.x*y,y:n.y*y,z:n.z||0};else if(t.to_meter&&(n={x:n.x*t.to_meter,y:n.y*t.to_meter,z:n.z||0}),n=t.inverse(n),!n)return;if(t.from_greenwich&&(n.x+=t.from_greenwich),n=ae(t.datum,e.datum,n),n)return e.from_greenwich&&(n={x:n.x-e.from_greenwich,y:n.y,z:n.z||0}),"longlat"===e.projName?n={x:n.x*v,y:n.y*v,z:n.z||0}:(n=e.forward(n),e.to_meter&&(n={x:n.x/e.to_meter,y:n.y/e.to_meter,z:n.z||0})),i&&"enu"!==e.axis?he(e,!0,n):(n&&!s&&delete n.z,n)}var ge=te("WGS84");function ye(t,e,n,i){var r,s,o;return Array.isArray(n)?(r=me(t,e,n,i)||{x:NaN,y:NaN},n.length>2?"undefined"!==typeof t.name&&"geocent"===t.name||"undefined"!==typeof e.name&&"geocent"===e.name?"number"===typeof r.z?[r.x,r.y,r.z].concat(n.slice(3)):[r.x,r.y,n[2]].concat(n.slice(3)):[r.x,r.y].concat(n.slice(2)):[r.x,r.y]):(s=me(t,e,n,i),o=Object.keys(n),2===o.length?s:(o.forEach(function(i){if("undefined"!==typeof t.name&&"geocent"===t.name||"undefined"!==typeof e.name&&"geocent"===e.name){if("x"===i||"y"===i||"z"===i)return}else if("x"===i||"y"===i)return;s[i]=n[i]}),s))}function ve(t){return t instanceof te?t:t.oProj?t.oProj:te(t)}function be(t,e,n){t=ve(t);var i,r=!1;return"undefined"===typeof e?(e=t,t=ge,r=!0):("undefined"!==typeof e.x||Array.isArray(e))&&(n=e,e=t,t=ge,r=!0),e=ve(e),n?ye(t,e,n):(i={forward:function(n,i){return ye(t,e,n,i)},inverse:function(n,i){return ye(e,t,n,i)}},r&&(i.oProj=e),i)}var Me=be,we=6,xe="AJSAJS",Le="AFAFAF",Ee=65,Te=73,Se=79,Oe=86,ke=90,Ce={forward:Ie,inverse:De,toPoint:Re};function Ie(t,e){return e=e||5,Fe(Ye({lat:t[1],lon:t[0]}),e)}function De(t){var e=Pe(ze(t.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat,e.lon,e.lat]:[e.left,e.bottom,e.right,e.top]}function Re(t){var e=Pe(ze(t.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat]:[(e.left+e.right)/2,(e.top+e.bottom)/2]}function Ae(t){return t*(Math.PI/180)}function Ne(t){return t/Math.PI*180}function Ye(t){var e,n,i,r,s,o,a,c,l,u=t.lat,h=t.lon,d=6378137,f=.00669438,p=.9996,_=Ae(u),m=Ae(h);l=Math.floor((h+180)/6)+1,180===h&&(l=60),u>=56&&u<64&&h>=3&&h<12&&(l=32),u>=72&&u<84&&(h>=0&&h<9?l=31:h>=9&&h<21?l=33:h>=21&&h<33?l=35:h>=33&&h<42&&(l=37)),e=6*(l-1)-180+3,c=Ae(e),n=f/(1-f),i=d/Math.sqrt(1-f*Math.sin(_)*Math.sin(_)),r=Math.tan(_)*Math.tan(_),s=n*Math.cos(_)*Math.cos(_),o=Math.cos(_)*(m-c),a=d*((1-f/4-3*f*f/64-5*f*f*f/256)*_-(3*f/8+3*f*f/32+45*f*f*f/1024)*Math.sin(2*_)+(15*f*f/256+45*f*f*f/1024)*Math.sin(4*_)-35*f*f*f/3072*Math.sin(6*_));var g=p*i*(o+(1-r+s)*o*o*o/6+(5-18*r+r*r+72*s-58*n)*o*o*o*o*o/120)+5e5,y=p*(a+i*Math.tan(_)*(o*o/2+(5-r+9*s+4*s*s)*o*o*o*o/24+(61-58*r+r*r+600*s-330*n)*o*o*o*o*o*o/720));return u<0&&(y+=1e7),{northing:Math.round(y),easting:Math.round(g),zoneNumber:l,zoneLetter:je(u)}}function Pe(t){var e=t.northing,n=t.easting,i=t.zoneLetter,r=t.zoneNumber;if(r<0||r>60)return null;var s,o,a,c,l,u,h,d,f,p,_=.9996,m=6378137,g=.00669438,y=(1-Math.sqrt(1-g))/(1+Math.sqrt(1-g)),v=n-5e5,b=e;i<"N"&&(b-=1e7),d=6*(r-1)-180+3,s=g/(1-g),h=b/_,f=h/(m*(1-g/4-3*g*g/64-5*g*g*g/256)),p=f+(3*y/2-27*y*y*y/32)*Math.sin(2*f)+(21*y*y/16-55*y*y*y*y/32)*Math.sin(4*f)+151*y*y*y/96*Math.sin(6*f),o=m/Math.sqrt(1-g*Math.sin(p)*Math.sin(p)),a=Math.tan(p)*Math.tan(p),c=s*Math.cos(p)*Math.cos(p),l=m*(1-g)/Math.pow(1-g*Math.sin(p)*Math.sin(p),1.5),u=v/(o*_);var M=p-o*Math.tan(p)/l*(u*u/2-(5+3*a+10*c-4*c*c-9*s)*u*u*u*u/24+(61+90*a+298*c+45*a*a-252*s-3*c*c)*u*u*u*u*u*u/720);M=Ne(M);var w,x=(u-(1+2*a+c)*u*u*u/6+(5-2*c+28*a-3*c*c+8*s+24*a*a)*u*u*u*u*u/120)/Math.cos(p);if(x=d+Ne(x),t.accuracy){var L=Pe({northing:t.northing+t.accuracy,easting:t.easting+t.accuracy,zoneLetter:t.zoneLetter,zoneNumber:t.zoneNumber});w={top:L.lat,right:L.lon,bottom:M,left:x}}else w={lat:M,lon:x};return w}function je(t){var e="Z";return 84>=t&&t>=72?e="X":72>t&&t>=64?e="W":64>t&&t>=56?e="V":56>t&&t>=48?e="U":48>t&&t>=40?e="T":40>t&&t>=32?e="S":32>t&&t>=24?e="R":24>t&&t>=16?e="Q":16>t&&t>=8?e="P":8>t&&t>=0?e="N":0>t&&t>=-8?e="M":-8>t&&t>=-16?e="L":-16>t&&t>=-24?e="K":-24>t&&t>=-32?e="J":-32>t&&t>=-40?e="H":-40>t&&t>=-48?e="G":-48>t&&t>=-56?e="F":-56>t&&t>=-64?e="E":-64>t&&t>=-72?e="D":-72>t&&t>=-80&&(e="C"),e}function Fe(t,e){var n="00000"+t.easting,i="00000"+t.northing;return t.zoneNumber+t.zoneLetter+He(t.easting,t.northing,t.zoneNumber)+n.substr(n.length-5,e)+i.substr(i.length-5,e)}function He(t,e,n){var i=Ge(n),r=Math.floor(t/1e5),s=Math.floor(e/1e5)%20;return qe(r,s,i)}function Ge(t){var e=t%we;return 0===e&&(e=we),e}function qe(t,e,n){var i=n-1,r=xe.charCodeAt(i),s=Le.charCodeAt(i),o=r+t-1,a=s+e,c=!1;o>ke&&(o=o-ke+Ee-1,c=!0),(o===Te||rTe||(o>Te||rSe||(o>Se||rke&&(o=o-ke+Ee-1),a>Oe?(a=a-Oe+Ee-1,c=!0):c=!1,(a===Te||sTe||(a>Te||sSe||(a>Se||sOe&&(a=a-Oe+Ee-1);var l=String.fromCharCode(o)+String.fromCharCode(a);return l}function ze(t){if(t&&0===t.length)throw"MGRSPoint coverting from nothing";var e,n=t.length,i=null,r="",s=0;while(!/[A-Z]/.test(e=t.charAt(s))){if(s>=2)throw"MGRSPoint bad conversion from: "+t;r+=e,s++}var o=parseInt(r,10);if(0===s||s+3>n)throw"MGRSPoint bad conversion from: "+t;var a=t.charAt(s++);if(a<="A"||"B"===a||"Y"===a||a>="Z"||"I"===a||"O"===a)throw"MGRSPoint zone letter "+a+" not handled: "+t;i=t.substring(s,s+=2);var c=Ge(o),l=Be(i.charAt(0),c),u=Ue(i.charAt(1),c);while(u0&&(d=1e5/Math.pow(10,g),f=t.substring(s,s+g),y=parseFloat(f)*d,p=t.substring(s+g),v=parseFloat(p)*d),_=y+l,m=v+u,{easting:_,northing:m,zoneLetter:a,zoneNumber:o,accuracy:d}}function Be(t,e){var n=xe.charCodeAt(e-1),i=1e5,r=!1;while(n!==t.charCodeAt(0)){if(n++,n===Te&&n++,n===Se&&n++,n>ke){if(r)throw"Bad character: "+t;n=Ee,r=!0}i+=1e5}return i}function Ue(t,e){if(t>"V")throw"MGRSPoint given invalid Northing "+t;var n=Le.charCodeAt(e-1),i=0,r=!1;while(n!==t.charCodeAt(0)){if(n++,n===Te&&n++,n===Se&&n++,n>Oe){if(r)throw"Bad character: "+t;n=Ee,r=!0}i+=1e5}return i}function We(t){var e;switch(t){case"C":e=11e5;break;case"D":e=2e6;break;case"E":e=28e5;break;case"F":e=37e5;break;case"G":e=46e5;break;case"H":e=55e5;break;case"J":e=64e5;break;case"K":e=73e5;break;case"L":e=82e5;break;case"M":e=91e5;break;case"N":e=0;break;case"P":e=8e5;break;case"Q":e=17e5;break;case"R":e=26e5;break;case"S":e=35e5;break;case"T":e=44e5;break;case"U":e=53e5;break;case"V":e=62e5;break;case"W":e=7e6;break;case"X":e=79e5;break;default:e=-1}if(e>=0)return e;throw"Invalid zone letter: "+t}function $e(t,e,n){if(!(this instanceof $e))return new $e(t,e,n);if(Array.isArray(t))this.x=t[0],this.y=t[1],this.z=t[2]||0;else if("object"===typeof t)this.x=t.x,this.y=t.y,this.z=t.z||0;else if("string"===typeof t&&"undefined"===typeof e){var i=t.split(",");this.x=parseFloat(i[0],10),this.y=parseFloat(i[1],10),this.z=parseFloat(i[2],10)||0}else this.x=t,this.y=e,this.z=n||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}$e.fromMGRS=function(t){return new $e(Re(t))},$e.prototype.toMGRS=function(t){return Ie([this.x,this.y],t)};var Ve=$e,Xe=1,Ke=.25,Je=.046875,Ze=.01953125,Qe=.01068115234375,tn=.75,en=.46875,nn=.013020833333333334,rn=.007120768229166667,sn=.3645833333333333,on=.005696614583333333,an=.3076171875,cn=function(t){var e=[];e[0]=Xe-t*(Ke+t*(Je+t*(Ze+t*Qe))),e[1]=t*(tn-t*(Je+t*(Ze+t*Qe)));var n=t*t;return e[2]=n*(en-t*(nn+t*rn)),n*=t,e[3]=n*(sn-t*on),e[4]=n*t*an,e},ln=function(t,e,n,i){return n*=e,e*=e,i[0]*t-n*(i[1]+e*(i[2]+e*(i[3]+e*i[4])))},un=20,hn=function(t,e,n){for(var i=1/(1-e),r=t,s=un;s;--s){var o=Math.sin(r),a=1-e*o*o;if(a=(ln(r,o,Math.cos(r),n)-t)*(a*Math.sqrt(a))*i,r-=a,Math.abs(a)g?Math.tan(s):0,p=Math.pow(f,2),_=Math.pow(p,2);e=1-this.es*Math.pow(a,2),l/=Math.sqrt(e);var m=ln(s,a,c,this.en);n=this.a*(this.k0*l*(1+u/6*(1-p+h+u/20*(5-18*p+_+14*h-58*p*h+u/42*(61+179*_-_*p-479*p)))))+this.x0,i=this.a*(this.k0*(m-this.ml0+a*o*l/2*(1+u/12*(5-p+9*h+4*d+u/30*(61+_-58*p+270*h-330*p*h+u/56*(1385+543*_-_*p-3111*p))))))+this.y0}else{var y=c*Math.sin(o);if(Math.abs(Math.abs(y)-1)=1){if(y-1>g)return 93;i=0}else i=Math.acos(i);s<0&&(i=-i),i=this.a*this.k0*(i-this.lat0)+this.y0}return t.x=n,t.y=i,t}function pn(t){var e,n,i,r,s=(t.x-this.x0)*(1/this.a),o=(t.y-this.y0)*(1/this.a);if(this.es)if(e=this.ml0+o/this.k0,n=hn(e,this.es,this.en),Math.abs(n)g?Math.tan(n):0,u=this.ep2*Math.pow(c,2),h=Math.pow(u,2),d=Math.pow(l,2),p=Math.pow(d,2);e=1-this.es*Math.pow(a,2);var _=s*Math.sqrt(e)/this.k0,m=Math.pow(_,2);e*=l,i=n-e*m/(1-this.es)*.5*(1-m/12*(5+3*d-9*u*d+u-4*h-m/30*(61+90*d-252*u*d+45*p+46*u-m/56*(1385+3633*d+4095*p+1574*p*d)))),r=dt(this.long0+_*(1-m/6*(1+2*d+u-m/20*(5+28*d+24*p+8*u*d+6*u-m/42*(61+662*d+1320*p+720*p*d))))/c)}else i=f*ht(o),r=0;else{var y=Math.exp(s/this.k0),v=.5*(y-1/y),b=this.lat0+o/this.k0,M=Math.cos(b);e=Math.sqrt((1-Math.pow(M,2))/(1+Math.pow(v,2))),i=Math.asin(e),o<0&&(i=-i),r=0===v&&0===M?0:dt(Math.atan2(v,M)+this.long0)}return t.x=r,t.y=i,t}var _n=["Fast_Transverse_Mercator","Fast Transverse Mercator"],mn={init:dn,forward:fn,inverse:pn,names:_n},gn=function(t){var e=Math.exp(t);return e=(e-1/e)/2,e},yn=function(t,e){t=Math.abs(t),e=Math.abs(e);var n=Math.max(t,e),i=Math.min(t,e)/(n||1);return n*Math.sqrt(1+Math.pow(i,2))},vn=function(t){var e=1+t,n=e-1;return 0===n?t:t*Math.log(e)/n},bn=function(t){var e=Math.abs(t);return e=vn(e*(1+e/(yn(1,e)+1))),t<0?-e:e},Mn=function(t,e){var n,i=2*Math.cos(2*e),r=t.length-1,s=t[r],o=0;while(--r>=0)n=i*s-o+t[r],o=s,s=n;return e+n*Math.sin(2*e)},wn=function(t,e){var n,i=2*Math.cos(e),r=t.length-1,s=t[r],o=0;while(--r>=0)n=i*s-o+t[r],o=s,s=n;return Math.sin(e)*n},xn=function(t){var e=Math.exp(t);return e=(e+1/e)/2,e},Ln=function(t,e,n){var i,r,s=Math.sin(e),o=Math.cos(e),a=gn(n),c=xn(n),l=2*o*c,u=-2*s*a,h=t.length-1,d=t[h],f=0,p=0,_=0;while(--h>=0)i=p,r=f,p=d,f=_,d=l*p-i-u*f+t[h],_=u*p-r+l*f;return l=s*c,u=o*a,[l*d-u*_,l*_+u*d]};function En(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(mn.init.apply(this),this.forward=mn.forward,this.inverse=mn.inverse),this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var t=this.es/(1+Math.sqrt(1-this.es)),e=t/(2-t),n=e;this.cgb[0]=e*(2+e*(-2/3+e*(e*(116/45+e*(26/45+e*(-2854/675)))-2))),this.cbg[0]=e*(e*(2/3+e*(4/3+e*(-82/45+e*(32/45+e*(4642/4725)))))-2),n*=e,this.cgb[1]=n*(7/3+e*(e*(-227/45+e*(2704/315+e*(2323/945)))-1.6)),this.cbg[1]=n*(5/3+e*(-16/15+e*(-13/9+e*(904/315+e*(-1522/945))))),n*=e,this.cgb[2]=n*(56/15+e*(-136/35+e*(-1262/105+e*(73814/2835)))),this.cbg[2]=n*(-26/15+e*(34/21+e*(1.6+e*(-12686/2835)))),n*=e,this.cgb[3]=n*(4279/630+e*(-332/35+e*(-399572/14175))),this.cbg[3]=n*(1237/630+e*(e*(-24832/14175)-2.4)),n*=e,this.cgb[4]=n*(4174/315+e*(-144838/6237)),this.cbg[4]=n*(-734/315+e*(109598/31185)),n*=e,this.cgb[5]=n*(601676/22275),this.cbg[5]=n*(444337/155925),n=Math.pow(e,2),this.Qn=this.k0/(1+e)*(1+n*(.25+n*(1/64+n/256))),this.utg[0]=e*(e*(2/3+e*(-37/96+e*(1/360+e*(81/512+e*(-96199/604800)))))-.5),this.gtu[0]=e*(.5+e*(-2/3+e*(5/16+e*(41/180+e*(-127/288+e*(7891/37800)))))),this.utg[1]=n*(-1/48+e*(-1/15+e*(437/1440+e*(-46/105+e*(1118711/3870720))))),this.gtu[1]=n*(13/48+e*(e*(557/1440+e*(281/630+e*(-1983433/1935360)))-.6)),n*=e,this.utg[2]=n*(-17/480+e*(37/840+e*(209/4480+e*(-5569/90720)))),this.gtu[2]=n*(61/240+e*(-103/140+e*(15061/26880+e*(167603/181440)))),n*=e,this.utg[3]=n*(-4397/161280+e*(11/504+e*(830251/7257600))),this.gtu[3]=n*(49561/161280+e*(-179/168+e*(6601661/7257600))),n*=e,this.utg[4]=n*(-4583/161280+e*(108847/3991680)),this.gtu[4]=n*(34729/80640+e*(-3418889/1995840)),n*=e,this.utg[5]=-.03233083094085698*n,this.gtu[5]=.6650675310896665*n;var i=Mn(this.cbg,this.lat0);this.Zb=-this.Qn*(i+wn(this.gtu,2*i))}function Tn(t){var e=dt(t.x-this.long0),n=t.y;n=Mn(this.cbg,n);var i=Math.sin(n),r=Math.cos(n),s=Math.sin(e),o=Math.cos(e);n=Math.atan2(i,o*r),e=Math.atan2(s*r,yn(i,r*o)),e=bn(Math.tan(e));var a,c,l=Ln(this.gtu,2*n,2*e);return n+=l[0],e+=l[1],Math.abs(e)<=2.623395162778?(a=this.a*(this.Qn*e)+this.x0,c=this.a*(this.Qn*n+this.Zb)+this.y0):(a=1/0,c=1/0),t.x=a,t.y=c,t}function Sn(t){var e,n,i=(t.x-this.x0)*(1/this.a),r=(t.y-this.y0)*(1/this.a);if(r=(r-this.Zb)/this.Qn,i/=this.Qn,Math.abs(i)<=2.623395162778){var s=Ln(this.utg,2*r,2*i);r+=s[0],i+=s[1],i=Math.atan(gn(i));var o=Math.sin(r),a=Math.cos(r),c=Math.sin(i),l=Math.cos(i);r=Math.atan2(o*l,yn(c,l*a)),i=Math.atan2(c,l*a),e=dt(i+this.long0),n=Mn(this.cgb,r)}else e=1/0,n=1/0;return t.x=e,t.y=n,t}var On=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"],kn={init:En,forward:Tn,inverse:Sn,names:On},Cn=function(t,e){if(void 0===t){if(t=Math.floor(30*(dt(e)+Math.PI)/Math.PI)+1,t<0)return 0;if(t>60)return 60}return t},In="etmerc";function Dn(){var t=Cn(this.zone,this.long0);if(void 0===t)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(t)-183)*y,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,kn.init.apply(this),this.forward=kn.forward,this.inverse=kn.inverse}var Rn=["Universal Transverse Mercator System","utm"],An={init:Dn,names:Rn,dependsOn:In},Nn=function(t,e){return Math.pow((1-t)/(1+t),e)},Yn=20;function Pn(){var t=Math.sin(this.lat0),e=Math.cos(this.lat0);e*=e,this.rc=Math.sqrt(1-this.es)/(1-this.es*t*t),this.C=Math.sqrt(1+this.es*e*e/(1-this.es)),this.phic0=Math.asin(t/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+b)/(Math.pow(Math.tan(.5*this.lat0+b),this.C)*Nn(this.e*t,this.ratexp))}function jn(t){var e=t.x,n=t.y;return t.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*n+b),this.C)*Nn(this.e*Math.sin(n),this.ratexp))-f,t.x=this.C*e,t}function Fn(t){for(var e=1e-14,n=t.x/this.C,i=t.y,r=Math.pow(Math.tan(.5*i+b)/this.K,1/this.C),s=Yn;s>0;--s){if(i=2*Math.atan(r*Nn(this.e*Math.sin(t.y),-.5*this.e))-f,Math.abs(i-t.y)0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=g&&Math.abs(Math.cos(this.lat_ts))>g&&(this.k0=.5*this.cons*ut(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/ft(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=ut(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-f,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function Xn(t){var e,n,i,r,s,o,a=t.x,c=t.y,l=Math.sin(c),u=Math.cos(c),h=dt(a-this.long0);return Math.abs(Math.abs(a-this.long0)-Math.PI)<=g&&Math.abs(c+this.lat0)<=g?(t.x=NaN,t.y=NaN,t):this.sphere?(e=2*this.k0/(1+this.sinlat0*l+this.coslat0*u*Math.cos(h)),t.x=this.a*e*u*Math.sin(h)+this.x0,t.y=this.a*e*(this.coslat0*l-this.sinlat0*u*Math.cos(h))+this.y0,t):(n=2*Math.atan(this.ssfn_(c,l,this.e))-f,r=Math.cos(n),i=Math.sin(n),Math.abs(this.coslat0)<=g?(s=ft(this.e,c*this.con,this.con*l),o=2*this.a*this.k0*s/this.cons,t.x=this.x0+o*Math.sin(a-this.long0),t.y=this.y0-this.con*o*Math.cos(a-this.long0),t):(Math.abs(this.sinlat0)0?dt(this.long0+Math.atan2(t.x,-1*t.y)):dt(this.long0+Math.atan2(t.x,t.y)):dt(this.long0+Math.atan2(t.x*Math.sin(a),o*this.coslat0*Math.cos(a)-t.y*this.sinlat0*Math.sin(a))),t.x=e,t.y=n,t)}if(Math.abs(this.coslat0)<=g){if(o<=g)return n=this.lat0,e=this.long0,t.x=e,t.y=n,t;t.x*=this.con,t.y*=this.con,i=o*this.cons/(2*this.a*this.k0),n=this.con*pt(this.e,i),e=this.con*dt(this.con*this.long0+Math.atan2(t.x,-1*t.y))}else r=2*Math.atan(o*this.cosX0/(2*this.a*this.k0*this.ms1)),e=this.long0,o<=g?s=this.X0:(s=Math.asin(Math.cos(r)*this.sinX0+t.y*Math.sin(r)*this.cosX0/o),e=dt(this.long0+Math.atan2(t.x*Math.sin(r),o*this.cosX0*Math.cos(r)-t.y*this.sinX0*Math.sin(r)))),n=-1*pt(this.e,Math.tan(.5*(f+s)));return t.x=e,t.y=n,t}var Jn=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)","Polar_Stereographic"],Zn={init:Vn,forward:Xn,inverse:Kn,names:Jn,ssfn_:$n};function Qn(){var t=this.lat0;this.lambda0=this.long0;var e=Math.sin(t),n=this.a,i=this.rf,r=1/i,s=2*r-Math.pow(r,2),o=this.e=Math.sqrt(s);this.R=this.k0*n*Math.sqrt(1-s)/(1-s*Math.pow(e,2)),this.alpha=Math.sqrt(1+s/(1-s)*Math.pow(Math.cos(t),4)),this.b0=Math.asin(e/this.alpha);var a=Math.log(Math.tan(Math.PI/4+this.b0/2)),c=Math.log(Math.tan(Math.PI/4+t/2)),l=Math.log((1+o*e)/(1-o*e));this.K=a-this.alpha*c+this.alpha*o/2*l}function ti(t){var e=Math.log(Math.tan(Math.PI/4-t.y/2)),n=this.e/2*Math.log((1+this.e*Math.sin(t.y))/(1-this.e*Math.sin(t.y))),i=-this.alpha*(e+n)+this.K,r=2*(Math.atan(Math.exp(i))-Math.PI/4),s=this.alpha*(t.x-this.lambda0),o=Math.atan(Math.sin(s)/(Math.sin(this.b0)*Math.tan(r)+Math.cos(this.b0)*Math.cos(s))),a=Math.asin(Math.cos(this.b0)*Math.sin(r)-Math.sin(this.b0)*Math.cos(r)*Math.cos(s));return t.y=this.R/2*Math.log((1+Math.sin(a))/(1-Math.sin(a)))+this.y0,t.x=this.R*o+this.x0,t}function ei(t){var e=t.x-this.x0,n=t.y-this.y0,i=e/this.R,r=2*(Math.atan(Math.exp(n/this.R))-Math.PI/4),s=Math.asin(Math.cos(this.b0)*Math.sin(r)+Math.sin(this.b0)*Math.cos(r)*Math.cos(i)),o=Math.atan(Math.sin(i)/(Math.cos(this.b0)*Math.cos(i)-Math.sin(this.b0)*Math.tan(r))),a=this.lambda0+o/this.alpha,c=0,l=s,u=-1e3,h=0;while(Math.abs(l-u)>1e-7){if(++h>20)return;c=1/this.alpha*(Math.log(Math.tan(Math.PI/4+s/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(l))/2)),u=l,l=2*Math.atan(Math.exp(c))-Math.PI/2}return t.x=a,t.y=l,t}var ni=["somerc"],ii={init:Qn,forward:ti,inverse:ei,names:ni},ri=1e-7;function si(t){var e=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],n="object"===typeof t.PROJECTION?Object.keys(t.PROJECTION)[0]:t.PROJECTION;return"no_uoff"in t||"no_off"in t||-1!==e.indexOf(n)}function oi(){var t,e,n,i,r,s,o,a,c,l,u,h=0,d=0,p=0,_=0,m=0,v=0,w=0;this.no_off=si(this),this.no_rot="no_rot"in this;var x=!1;"alpha"in this&&(x=!0);var L=!1;if("rectified_grid_angle"in this&&(L=!0),x&&(w=this.alpha),L&&(h=this.rectified_grid_angle*y),x||L)d=this.longc;else if(p=this.long1,m=this.lat1,_=this.long2,v=this.lat2,Math.abs(m-v)<=ri||(t=Math.abs(m))<=ri||Math.abs(t-f)<=ri||Math.abs(Math.abs(this.lat0)-f)<=ri||Math.abs(Math.abs(v)-f)<=ri)throw new Error;var E=1-this.es;e=Math.sqrt(E),Math.abs(this.lat0)>g?(a=Math.sin(this.lat0),n=Math.cos(this.lat0),t=1-this.es*a*a,this.B=n*n,this.B=Math.sqrt(1+this.es*this.B*this.B/E),this.A=this.B*this.k0*e/t,i=this.B*e/(n*Math.sqrt(t)),r=i*i-1,r<=0?r=0:(r=Math.sqrt(r),this.lat0<0&&(r=-r)),this.E=r+=i,this.E*=Math.pow(ft(this.e,this.lat0,a),this.B)):(this.B=1/e,this.A=this.k0,this.E=i=r=1),x||L?(x?(u=Math.asin(Math.sin(w)/i),L||(h=w)):(u=h,w=Math.asin(i*Math.sin(u))),this.lam0=d-Math.asin(.5*(r-1/r)*Math.tan(u))/this.B):(s=Math.pow(ft(this.e,m,Math.sin(m)),this.B),o=Math.pow(ft(this.e,v,Math.sin(v)),this.B),r=this.E/s,c=(o-s)/(o+s),l=this.E*this.E,l=(l-o*s)/(l+o*s),t=p-_,t<-Math.pi?_-=M:t>Math.pi&&(_+=M),this.lam0=dt(.5*(p+_)-Math.atan(l*Math.tan(.5*this.B*(p-_))/c)/this.B),u=Math.atan(2*Math.sin(this.B*dt(p-this.lam0))/(r-1/r)),h=w=Math.asin(i*Math.sin(u))),this.singam=Math.sin(u),this.cosgam=Math.cos(u),this.sinrot=Math.sin(h),this.cosrot=Math.cos(h),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.A,this.B,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(i*i-1)/Math.cos(w))),this.lat0<0&&(this.u_0=-this.u_0)),r=.5*u,this.v_pole_n=this.ArB*Math.log(Math.tan(b-r)),this.v_pole_s=this.ArB*Math.log(Math.tan(b+r))}function ai(t){var e,n,i,r,s,o,a,c,l={};if(t.x=t.x-this.lam0,Math.abs(Math.abs(t.y)-f)>g){if(s=this.E/Math.pow(ft(this.e,t.y,Math.sin(t.y)),this.B),o=1/s,e=.5*(s-o),n=.5*(s+o),r=Math.sin(this.B*t.x),i=(e*this.singam-r*this.cosgam)/n,Math.abs(Math.abs(i)-1)0?this.v_pole_n:this.v_pole_s,a=this.ArB*t.y;return this.no_rot?(l.x=a,l.y=c):(a-=this.u_0,l.x=c*this.cosrot+a*this.sinrot,l.y=a*this.cosrot-c*this.sinrot),l.x=this.a*l.x+this.x0,l.y=this.a*l.y+this.y0,l}function ci(t){var e,n,i,r,s,o,a,c={};if(t.x=(t.x-this.x0)*(1/this.a),t.y=(t.y-this.y0)*(1/this.a),this.no_rot?(n=t.y,e=t.x):(n=t.x*this.cosrot-t.y*this.sinrot,e=t.y*this.cosrot+t.x*this.sinrot+this.u_0),i=Math.exp(-this.BrA*n),r=.5*(i-1/i),s=.5*(i+1/i),o=Math.sin(this.BrA*e),a=(o*this.cosgam+r*this.singam)/s,Math.abs(Math.abs(a)-1)g?this.ns=Math.log(i/a)/Math.log(r/c):this.ns=e,isNaN(this.ns)&&(this.ns=e),this.f0=i/(this.ns*Math.pow(r,this.ns)),this.rh=this.a*this.f0*Math.pow(l,this.ns),this.title||(this.title="Lambert Conformal Conic")}}function di(t){var e=t.x,n=t.y;Math.abs(2*Math.abs(n)-Math.PI)<=g&&(n=ht(n)*(f-2*g));var i,r,s=Math.abs(Math.abs(n)-f);if(s>g)i=ft(this.e,n,Math.sin(n)),r=this.a*this.f0*Math.pow(i,this.ns);else{if(s=n*this.ns,s<=0)return null;r=0}var o=this.ns*dt(e-this.long0);return t.x=this.k0*(r*Math.sin(o))+this.x0,t.y=this.k0*(this.rh-r*Math.cos(o))+this.y0,t}function fi(t){var e,n,i,r,s,o=(t.x-this.x0)/this.k0,a=this.rh-(t.y-this.y0)/this.k0;this.ns>0?(e=Math.sqrt(o*o+a*a),n=1):(e=-Math.sqrt(o*o+a*a),n=-1);var c=0;if(0!==e&&(c=Math.atan2(n*o,n*a)),0!==e||this.ns>0){if(n=1/this.ns,i=Math.pow(e/(this.a*this.f0),n),r=pt(this.e,i),-9999===r)return null}else r=-f;return s=dt(c/this.ns+this.long0),t.x=s,t.y=r,t}var pi=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"],_i={init:hi,forward:di,inverse:fi,names:pi};function mi(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq}function gi(t){var e,n,i,r,s,o,a,c=t.x,l=t.y,u=dt(c-this.long0);return e=Math.pow((1+this.e*Math.sin(l))/(1-this.e*Math.sin(l)),this.alfa*this.e/2),n=2*(Math.atan(this.k*Math.pow(Math.tan(l/2+this.s45),this.alfa)/e)-this.s45),i=-u*this.alfa,r=Math.asin(Math.cos(this.ad)*Math.sin(n)+Math.sin(this.ad)*Math.cos(n)*Math.cos(i)),s=Math.asin(Math.cos(n)*Math.sin(i)/Math.cos(r)),o=this.n*s,a=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(r/2+this.s45),this.n),t.y=a*Math.cos(o)/1,t.x=a*Math.sin(o)/1,this.czech||(t.y*=-1,t.x*=-1),t}function yi(t){var e,n,i,r,s,o,a,c,l=t.x;t.x=t.y,t.y=l,this.czech||(t.y*=-1,t.x*=-1),o=Math.sqrt(t.x*t.x+t.y*t.y),s=Math.atan2(t.y,t.x),r=s/Math.sin(this.s0),i=2*(Math.atan(Math.pow(this.ro0/o,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),e=Math.asin(Math.cos(this.ad)*Math.sin(i)-Math.sin(this.ad)*Math.cos(i)*Math.cos(r)),n=Math.asin(Math.cos(i)*Math.sin(r)/Math.cos(e)),t.x=this.long0-n/this.alfa,a=e,c=0;var u=0;do{t.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(e/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(a))/(1-this.e*Math.sin(a)),this.e/2))-this.s45),Math.abs(a-t.y)<1e-10&&(c=1),a=t.y,u+=1}while(0===c&&u<15);return u>=15?null:t}var vi=["Krovak","krovak"],bi={init:mi,forward:gi,inverse:yi,names:vi},Mi=function(t,e,n,i,r){return t*r-e*Math.sin(2*r)+n*Math.sin(4*r)-i*Math.sin(6*r)},wi=function(t){return 1-.25*t*(1+t/16*(3+1.25*t))},xi=function(t){return.375*t*(1+.25*t*(1+.46875*t))},Li=function(t){return.05859375*t*t*(1+.75*t)},Ei=function(t){return t*t*t*(35/3072)},Ti=function(t,e,n){var i=e*n;return t/Math.sqrt(1-i*i)},Si=function(t){return Math.abs(t)1e-7?(n=t*e,(1-t*t)*(e/(1-n*n)-.5/t*Math.log((1-n)/(1+n)))):2*e},Ni=1,Yi=2,Pi=3,ji=4;function Fi(){var t,e=Math.abs(this.lat0);if(Math.abs(e-f)0)switch(this.qp=Ai(this.e,1),this.mmf=.5/(1-this.es),this.apa=Vi(this.es),this.mode){case this.N_POLE:this.dd=1;break;case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),t=Math.sin(this.lat0),this.sinb1=Ai(this.e,t)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*t*t)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd;break}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))}function Hi(t){var e,n,i,r,s,o,a,c,l,u,h=t.x,d=t.y;if(h=dt(h-this.long0),this.sphere){if(s=Math.sin(d),u=Math.cos(d),i=Math.cos(h),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(n=this.mode===this.EQUIT?1+u*i:1+this.sinph0*s+this.cosph0*u*i,n<=g)return null;n=Math.sqrt(2/n),e=n*u*Math.sin(h),n*=this.mode===this.EQUIT?s:this.cosph0*s-this.sinph0*u*i}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(i=-i),Math.abs(d+this.lat0)=0?(e=(l=Math.sqrt(o))*r,n=i*(this.mode===this.S_POLE?l:-l)):e=n=0;break}}return t.x=this.a*e+this.x0,t.y=this.a*n+this.y0,t}function Gi(t){t.x-=this.x0,t.y-=this.y0;var e,n,i,r,s,o,a,c=t.x/this.a,l=t.y/this.a;if(this.sphere){var u,h=0,d=0;if(u=Math.sqrt(c*c+l*l),n=.5*u,n>1)return null;switch(n=2*Math.asin(n),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(d=Math.sin(n),h=Math.cos(n)),this.mode){case this.EQUIT:n=Math.abs(u)<=g?0:Math.asin(l*d/u),c*=d,l=h*u;break;case this.OBLIQ:n=Math.abs(u)<=g?this.lat0:Math.asin(h*this.sinph0+l*d*this.cosph0/u),c*=d*this.cosph0,l=(h-Math.sin(n)*this.sinph0)*u;break;case this.N_POLE:l=-l,n=f-n;break;case this.S_POLE:n-=f;break}e=0!==l||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(c,l):0}else{if(a=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(c/=this.dd,l*=this.dd,o=Math.sqrt(c*c+l*l),o1&&(t=t>1?1:-1),Math.asin(t)};function Qi(){Math.abs(this.lat1+this.lat2)g?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)}function tr(t){var e=t.x,n=t.y;this.sin_phi=Math.sin(n),this.cos_phi=Math.cos(n);var i=Ai(this.e3,this.sin_phi),r=this.a*Math.sqrt(this.c-this.ns0*i)/this.ns0,s=this.ns0*dt(e-this.long0),o=r*Math.sin(s)+this.x0,a=this.rh-r*Math.cos(s)+this.y0;return t.x=o,t.y=a,t}function er(t){var e,n,i,r,s,o;return t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns0>=0?(e=Math.sqrt(t.x*t.x+t.y*t.y),i=1):(e=-Math.sqrt(t.x*t.x+t.y*t.y),i=-1),r=0,0!==e&&(r=Math.atan2(i*t.x,i*t.y)),i=e*this.ns0/this.a,this.sphere?o=Math.asin((this.c-i*i)/(2*this.ns0)):(n=(this.c-i*i)/this.ns0,o=this.phi1z(this.e3,n)),s=dt(r/this.ns0+this.long0),t.x=s,t.y=o,t}function nr(t,e){var n,i,r,s,o,a=Zi(.5*e);if(t0||Math.abs(o)<=g?(a=this.x0+this.a*s*n*Math.sin(i)/o,c=this.y0+this.a*s*(this.cos_p14*e-this.sin_p14*n*r)/o):(a=this.x0+this.infinity_dist*n*Math.sin(i),c=this.y0+this.infinity_dist*(this.cos_p14*e-this.sin_p14*n*r)),t.x=a,t.y=c,t}function ar(t){var e,n,i,r,s,o;return t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,(e=Math.sqrt(t.x*t.x+t.y*t.y))?(r=Math.atan2(e,this.rc),n=Math.sin(r),i=Math.cos(r),o=Zi(i*this.sin_p14+t.y*n*this.cos_p14/e),s=Math.atan2(t.x*n,e*this.cos_p14*i-t.y*this.sin_p14*n),s=dt(this.long0+s)):(o=this.phic0,s=0),t.x=s,t.y=o,t}var cr=["gnom"],lr={init:sr,forward:or,inverse:ar,names:cr},ur=function(t,e){var n=1-(1-t*t)/(2*t)*Math.log((1-t)/(1+t));if(Math.abs(Math.abs(e)-n)<1e-6)return e<0?-1*f:f;for(var i,r,s,o,a=Math.asin(.5*e),c=0;c<30;c++)if(r=Math.sin(a),s=Math.cos(a),o=t*r,i=Math.pow(1-o*o,2)/(2*s)*(e/(1-t*t)-r/(1-o*o)+.5/t*Math.log((1-o)/(1+o))),a+=i,Math.abs(i)<=1e-10)return a;return NaN};function hr(){this.sphere||(this.k0=ut(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function dr(t){var e,n,i=t.x,r=t.y,s=dt(i-this.long0);if(this.sphere)e=this.x0+this.a*s*Math.cos(this.lat_ts),n=this.y0+this.a*Math.sin(r)/Math.cos(this.lat_ts);else{var o=Ai(this.e,Math.sin(r));e=this.x0+this.a*this.k0*s,n=this.y0+this.a*o*.5/this.k0}return t.x=e,t.y=n,t}function fr(t){var e,n;return t.x-=this.x0,t.y-=this.y0,this.sphere?(e=dt(this.long0+t.x/this.a/Math.cos(this.lat_ts)),n=Math.asin(t.y/this.a*Math.cos(this.lat_ts))):(n=ur(this.e,2*t.y*this.k0/this.a),e=dt(this.long0+t.x/(this.a*this.k0))),t.x=e,t.y=n,t}var pr=["cea"],_r={init:hr,forward:dr,inverse:fr,names:pr};function mr(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)}function gr(t){var e=t.x,n=t.y,i=dt(e-this.long0),r=Si(n-this.lat0);return t.x=this.x0+this.a*i*this.rc,t.y=this.y0+this.a*r,t}function yr(t){var e=t.x,n=t.y;return t.x=dt(this.long0+(e-this.x0)/(this.a*this.rc)),t.y=Si(this.lat0+(n-this.y0)/this.a),t}var vr=["Equirectangular","Equidistant_Cylindrical","eqc"],br={init:mr,forward:gr,inverse:yr,names:vr},Mr=20;function wr(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=wi(this.es),this.e1=xi(this.es),this.e2=Li(this.es),this.e3=Ei(this.es),this.ml0=this.a*Mi(this.e0,this.e1,this.e2,this.e3,this.lat0)}function xr(t){var e,n,i,r=t.x,s=t.y,o=dt(r-this.long0);if(i=o*Math.sin(s),this.sphere)Math.abs(s)<=g?(e=this.a*o,n=-1*this.a*this.lat0):(e=this.a*Math.sin(i)/Math.tan(s),n=this.a*(Si(s-this.lat0)+(1-Math.cos(i))/Math.tan(s)));else if(Math.abs(s)<=g)e=this.a*o,n=-1*this.ml0;else{var a=Ti(this.a,this.e,Math.sin(s))/Math.tan(s);e=a*Math.sin(i),n=this.a*Mi(this.e0,this.e1,this.e2,this.e3,s)-this.ml0+a*(1-Math.cos(i))}return t.x=e+this.x0,t.y=n+this.y0,t}function Lr(t){var e,n,i,r,s,o,a,c,l;if(i=t.x-this.x0,r=t.y-this.y0,this.sphere)if(Math.abs(r+this.a*this.lat0)<=g)e=dt(i/this.a+this.long0),n=0;else{var u;for(o=this.lat0+r/this.a,a=i*i/this.a/this.a+o*o,c=o,s=Mr;s;--s)if(u=Math.tan(c),l=-1*(o*(c*u+1)-c-.5*(c*c+a)*u)/((c-o)/u-1),c+=l,Math.abs(l)<=g){n=c;break}e=dt(this.long0+Math.asin(i*Math.tan(c)/this.a)/Math.sin(n))}else if(Math.abs(r+this.ml0)<=g)n=0,e=dt(this.long0+i/this.a);else{var h,d,f,p,_;for(o=(this.ml0+r)/this.a,a=i*i/this.a/this.a+o*o,c=o,s=Mr;s;--s)if(_=this.e*Math.sin(c),h=Math.sqrt(1-_*_)*Math.tan(c),d=this.a*Mi(this.e0,this.e1,this.e2,this.e3,c),f=this.e0-2*this.e1*Math.cos(2*c)+4*this.e2*Math.cos(4*c)-6*this.e3*Math.cos(6*c),p=d/this.a,l=(o*(h*p+1)-p-.5*h*(p*p+a))/(this.es*Math.sin(2*c)*(p*p+a-2*o*p)/(4*h)+(o-p)*(h*f-2/Math.sin(2*c))-f),c-=l,Math.abs(l)<=g){n=c;break}h=Math.sqrt(1-this.es*Math.pow(Math.sin(n),2))*Math.tan(n),e=dt(this.long0+Math.asin(i*h/this.a)/Math.sin(n))}return t.x=e,t.y=n,t}var Er=["Polyconic","poly"],Tr={init:wr,forward:xr,inverse:Lr,names:Er};function Sr(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013}function Or(t){var e,n=t.x,i=t.y,r=i-this.lat0,s=n-this.long0,o=r/d*1e-5,a=s,c=1,l=0;for(e=1;e<=10;e++)c*=o,l+=this.A[e]*c;var u,h,f=l,p=a,_=1,m=0,g=0,y=0;for(e=1;e<=6;e++)u=_*f-m*p,h=m*f+_*p,_=u,m=h,g=g+this.B_re[e]*_-this.B_im[e]*m,y=y+this.B_im[e]*_+this.B_re[e]*m;return t.x=y*this.a+this.x0,t.y=g*this.a+this.y0,t}function kr(t){var e,n,i,r=t.x,s=t.y,o=r-this.x0,a=s-this.y0,c=a/this.a,l=o/this.a,u=1,h=0,f=0,p=0;for(e=1;e<=6;e++)n=u*c-h*l,i=h*c+u*l,u=n,h=i,f=f+this.C_re[e]*u-this.C_im[e]*h,p=p+this.C_im[e]*u+this.C_re[e]*h;for(var _=0;_.999999999999&&(n=.999999999999),e=Math.asin(n);var i=dt(this.long0+t.x/(.900316316158*this.a*Math.cos(e)));i<-Math.PI&&(i=-Math.PI),i>Math.PI&&(i=Math.PI),n=(2*e+Math.sin(2*e))/Math.PI,Math.abs(n)>1&&(n=1);var r=Math.asin(n);return t.x=i,t.y=r,t}var Wr=["Mollweide","moll"],$r={init:zr,forward:Br,inverse:Ur,names:Wr};function Vr(){Math.abs(this.lat1+this.lat2)=0?(n=Math.sqrt(t.x*t.x+t.y*t.y),e=1):(n=-Math.sqrt(t.x*t.x+t.y*t.y),e=-1);var s=0;if(0!==n&&(s=Math.atan2(e*t.x,e*t.y)),this.sphere)return r=dt(this.long0+s/this.ns),i=Si(this.g-n/this.a),t.x=r,t.y=i,t;var o=this.g-n/this.a;return i=Oi(o,this.e0,this.e1,this.e2,this.e3),r=dt(this.long0+s/this.ns),t.x=r,t.y=i,t}var Jr=["Equidistant_Conic","eqdc"],Zr={init:Vr,forward:Xr,inverse:Kr,names:Jr};function Qr(){this.R=this.a}function ts(t){var e,n,i=t.x,r=t.y,s=dt(i-this.long0);Math.abs(r)<=g&&(e=this.x0+this.R*s,n=this.y0);var o=Zi(2*Math.abs(r/Math.PI));(Math.abs(s)<=g||Math.abs(Math.abs(r)-f)<=g)&&(e=this.x0,n=r>=0?this.y0+Math.PI*this.R*Math.tan(.5*o):this.y0+Math.PI*this.R*-Math.tan(.5*o));var a=.5*Math.abs(Math.PI/s-s/Math.PI),c=a*a,l=Math.sin(o),u=Math.cos(o),h=u/(l+u-1),d=h*h,p=h*(2/l-1),_=p*p,m=Math.PI*this.R*(a*(h-_)+Math.sqrt(c*(h-_)*(h-_)-(_+c)*(d-_)))/(_+c);s<0&&(m=-m),e=this.x0+m;var y=c+h;return m=Math.PI*this.R*(p*y-a*Math.sqrt((_+c)*(c+1)-y*y))/(_+c),n=r>=0?this.y0+m:this.y0-m,t.x=e,t.y=n,t}function es(t){var e,n,i,r,s,o,a,c,l,u,h,d,f;return t.x-=this.x0,t.y-=this.y0,h=Math.PI*this.R,i=t.x/h,r=t.y/h,s=i*i+r*r,o=-Math.abs(r)*(1+s),a=o-2*r*r+i*i,c=-2*o+1+2*r*r+s*s,f=r*r/c+(2*a*a*a/c/c/c-9*o*a/c/c)/27,l=(o-a*a/3/c)/c,u=2*Math.sqrt(-l/3),h=3*f/l/u,Math.abs(h)>1&&(h=h>=0?1:-1),d=Math.acos(h)/3,n=t.y>=0?(-u*Math.cos(d+Math.PI/3)-a/3/c)*Math.PI:-(-u*Math.cos(d+Math.PI/3)-a/3/c)*Math.PI,e=Math.abs(i)2*f*this.a)return;return n=e/this.a,i=Math.sin(n),r=Math.cos(n),s=this.long0,Math.abs(e)<=g?o=this.lat0:(o=Zi(r*this.sin_p12+t.y*i*this.cos_p12/e),a=Math.abs(this.lat0)-f,s=Math.abs(a)<=g?this.lat0>=0?dt(this.long0+Math.atan2(t.x,-t.y)):dt(this.long0-Math.atan2(-t.x,t.y)):dt(this.long0+Math.atan2(t.x*i,e*this.cos_p12*r-t.y*this.sin_p12*i))),t.x=s,t.y=o,t}return c=wi(this.es),l=xi(this.es),u=Li(this.es),h=Ei(this.es),Math.abs(this.sin_p12-1)<=g?(d=this.a*Mi(c,l,u,h,f),e=Math.sqrt(t.x*t.x+t.y*t.y),p=d-e,o=Oi(p/this.a,c,l,u,h),s=dt(this.long0+Math.atan2(t.x,-1*t.y)),t.x=s,t.y=o,t):Math.abs(this.sin_p12+1)<=g?(d=this.a*Mi(c,l,u,h,f),e=Math.sqrt(t.x*t.x+t.y*t.y),p=e-d,o=Oi(p/this.a,c,l,u,h),s=dt(this.long0+Math.atan2(t.x,t.y)),t.x=s,t.y=o,t):(e=Math.sqrt(t.x*t.x+t.y*t.y),y=Math.atan2(t.x,t.y),_=Ti(this.a,this.e,this.sin_p12),v=Math.cos(y),b=this.e*this.cos_p12*v,M=-b*b/(1-this.es),w=3*this.es*(1-M)*this.sin_p12*this.cos_p12*v/(1-this.es),x=e/_,L=x-M*(1+M)*Math.pow(x,3)/6-w*(1+3*M)*Math.pow(x,4)/24,E=1-M*L*L/2-x*L*L*L/6,m=Math.asin(this.sin_p12*Math.cos(L)+this.cos_p12*Math.sin(L)*v),s=dt(this.long0+Math.asin(Math.sin(y)*Math.sin(L)/Math.cos(m))),T=Math.sin(m),o=Math.atan2((T-this.es*E*this.sin_p12)*Math.tan(m),T*(1-this.es)),t.x=s,t.y=o,t)}var as=["Azimuthal_Equidistant","aeqd"],cs={init:rs,forward:ss,inverse:os,names:as};function ls(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function us(t){var e,n,i,r,s,o,a,c,l=t.x,u=t.y;return i=dt(l-this.long0),e=Math.sin(u),n=Math.cos(u),r=Math.cos(i),o=this.sin_p14*e+this.cos_p14*n*r,s=1,(o>0||Math.abs(o)<=g)&&(a=this.a*s*n*Math.sin(i),c=this.y0+this.a*s*(this.cos_p14*e-this.sin_p14*n*r)),t.x=a,t.y=c,t}function hs(t){var e,n,i,r,s,o,a;return t.x-=this.x0,t.y-=this.y0,e=Math.sqrt(t.x*t.x+t.y*t.y),n=Zi(e/this.a),i=Math.sin(n),r=Math.cos(n),o=this.long0,Math.abs(e)<=g?(a=this.lat0,t.x=o,t.y=a,t):(a=Zi(r*this.sin_p14+t.y*i*this.cos_p14/e),s=Math.abs(this.lat0)-f,Math.abs(s)<=g?(o=this.lat0>=0?dt(this.long0+Math.atan2(t.x,-t.y)):dt(this.long0-Math.atan2(-t.x,t.y)),t.x=o,t.y=a,t):(o=dt(this.long0+Math.atan2(t.x*i,e*this.cos_p14*r-t.y*this.sin_p14*i)),t.x=o,t.y=a,t))}var ds=["ortho"],fs={init:ls,forward:us,inverse:hs,names:ds},ps={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},_s={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function ms(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=f-b/2?this.face=ps.TOP:this.lat0<=-(f-b/2)?this.face=ps.BOTTOM:Math.abs(this.long0)<=b?this.face=ps.FRONT:Math.abs(this.long0)<=f+b?this.face=this.long0>0?ps.RIGHT:ps.LEFT:this.face=ps.BACK,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)}function gs(t){var e,n,i,r,s,o,a={x:0,y:0},c={value:0};if(t.x-=this.long0,e=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(t.y)):t.y,n=t.x,this.face===ps.TOP)r=f-e,n>=b&&n<=f+b?(c.value=_s.AREA_0,i=n-f):n>f+b||n<=-(f+b)?(c.value=_s.AREA_1,i=n>0?n-w:n+w):n>-(f+b)&&n<=-b?(c.value=_s.AREA_2,i=n+f):(c.value=_s.AREA_3,i=n);else if(this.face===ps.BOTTOM)r=f+e,n>=b&&n<=f+b?(c.value=_s.AREA_0,i=-n+f):n=-b?(c.value=_s.AREA_1,i=-n):n<-b&&n>=-(f+b)?(c.value=_s.AREA_2,i=-n-f):(c.value=_s.AREA_3,i=n>0?-n+w:-n-w);else{var l,u,h,d,p,_,m;this.face===ps.RIGHT?n=bs(n,+f):this.face===ps.BACK?n=bs(n,+w):this.face===ps.LEFT&&(n=bs(n,-f)),d=Math.sin(e),p=Math.cos(e),_=Math.sin(n),m=Math.cos(n),l=p*m,u=p*_,h=d,this.face===ps.FRONT?(r=Math.acos(l),i=vs(r,h,u,c)):this.face===ps.RIGHT?(r=Math.acos(u),i=vs(r,h,-l,c)):this.face===ps.BACK?(r=Math.acos(-l),i=vs(r,h,-u,c)):this.face===ps.LEFT?(r=Math.acos(-u),i=vs(r,h,l,c)):(r=i=0,c.value=_s.AREA_0)}return o=Math.atan(12/w*(i+Math.acos(Math.sin(i)*Math.cos(b))-f)),s=Math.sqrt((1-Math.cos(r))/(Math.cos(o)*Math.cos(o))/(1-Math.cos(Math.atan(1/Math.cos(i))))),c.value===_s.AREA_1?o+=f:c.value===_s.AREA_2?o+=w:c.value===_s.AREA_3&&(o+=1.5*w),a.x=s*Math.cos(o),a.y=s*Math.sin(o),a.x=a.x*this.a+this.x0,a.y=a.y*this.a+this.y0,t.x=a.x,t.y=a.y,t}function ys(t){var e,n,i,r,s,o,a,c,l,u,h,d,p={lam:0,phi:0},_={value:0};if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,n=Math.atan(Math.sqrt(t.x*t.x+t.y*t.y)),e=Math.atan2(t.y,t.x),t.x>=0&&t.x>=Math.abs(t.y)?_.value=_s.AREA_0:t.y>=0&&t.y>=Math.abs(t.x)?(_.value=_s.AREA_1,e-=f):t.x<0&&-t.x>=Math.abs(t.y)?(_.value=_s.AREA_2,e=e<0?e+w:e-w):(_.value=_s.AREA_3,e+=f),l=w/12*Math.tan(e),s=Math.sin(l)/(Math.cos(l)-1/Math.sqrt(2)),o=Math.atan(s),i=Math.cos(e),r=Math.tan(n),a=1-i*i*r*r*(1-Math.cos(Math.atan(1/Math.cos(o)))),a<-1?a=-1:a>1&&(a=1),this.face===ps.TOP)c=Math.acos(a),p.phi=f-c,_.value===_s.AREA_0?p.lam=o+f:_.value===_s.AREA_1?p.lam=o<0?o+w:o-w:_.value===_s.AREA_2?p.lam=o-f:p.lam=o;else if(this.face===ps.BOTTOM)c=Math.acos(a),p.phi=c-f,_.value===_s.AREA_0?p.lam=-o+f:_.value===_s.AREA_1?p.lam=-o:_.value===_s.AREA_2?p.lam=-o-f:p.lam=o<0?-o-w:-o+w;else{var m,g,y;m=a,l=m*m,y=l>=1?0:Math.sqrt(1-l)*Math.sin(o),l+=y*y,g=l>=1?0:Math.sqrt(1-l),_.value===_s.AREA_1?(l=g,g=-y,y=l):_.value===_s.AREA_2?(g=-g,y=-y):_.value===_s.AREA_3&&(l=g,g=y,y=-l),this.face===ps.RIGHT?(l=m,m=-g,g=l):this.face===ps.BACK?(m=-m,g=-g):this.face===ps.LEFT&&(l=m,m=g,g=-l),p.phi=Math.acos(-y)-f,p.lam=Math.atan2(g,m),this.face===ps.RIGHT?p.lam=bs(p.lam,-f):this.face===ps.BACK?p.lam=bs(p.lam,-w):this.face===ps.LEFT&&(p.lam=bs(p.lam,+f))}0!==this.es&&(u=p.phi<0?1:0,h=Math.tan(p.phi),d=this.b/Math.sqrt(h*h+this.one_minus_f_squared),p.phi=Math.atan(Math.sqrt(this.a*this.a-d*d)/(this.one_minus_f*d)),u&&(p.phi=-p.phi));return p.lam+=this.long0,t.x=p.lam,t.y=p.phi,t}function vs(t,e,n,i){var r;return tb&&r<=f+b?(i.value=_s.AREA_1,r-=f):r>f+b||r<=-(f+b)?(i.value=_s.AREA_2,r=r>=0?r-w:r+w):(i.value=_s.AREA_3,r+=f)),r}function bs(t,e){var n=t+e;return n<-w?n+=M:n>+w&&(n-=M),n}var Ms=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"],ws={init:ms,forward:gs,inverse:ys,names:Ms},xs=[[1,2.2199e-17,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],Ls=[[-5.20417e-18,.0124,1.21431e-18,-8.45284e-11],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],Es=.8487,Ts=1.3523,Ss=v/5,Os=1/Ss,ks=18,Cs=function(t,e){return t[0]+e*(t[1]+e*(t[2]+e*t[3]))},Is=function(t,e){return t[1]+e*(2*t[2]+3*e*t[3])};function Ds(t,e,n,i){for(var r=e;i;--i){var s=t(r);if(r-=s,Math.abs(s)=ks&&(i=ks-1),n=v*(n-Os*i);var r={x:Cs(xs[i],n)*e,y:Cs(Ls[i],n)};return t.y<0&&(r.y=-r.y),r.x=r.x*this.a*Es+this.x0,r.y=r.y*this.a*Ts+this.y0,r}function Ns(t){var e={x:(t.x-this.x0)/(this.a*Es),y:Math.abs(t.y-this.y0)/(this.a*Ts)};if(e.y>=1)e.x/=xs[ks][0],e.y=t.y<0?-f:f;else{var n=Math.floor(e.y*ks);for(n<0?n=0:n>=ks&&(n=ks-1);;)if(Ls[n][0]>e.y)--n;else{if(!(Ls[n+1][0]<=e.y))break;++n}var i=Ls[n],r=5*(e.y-i[0])/(Ls[n+1][0]-i[0]);r=Ds(function(t){return(Cs(i,t)-e.y)/Is(i,t)},r,g,100),e.x/=Cs(xs[n],r),e.y=(5*n+r)*y,t.y<0&&(e.y=-e.y)}return e.x=dt(e.x+this.long0),e}var Ys=["Robinson","robin"],Ps={init:Rs,forward:As,inverse:Ns,names:Ys};function js(){this.name="geocent"}function Fs(t){var e=ne(t,this.es,this.a);return e}function Hs(t){var e=ie(t,this.es,this.a,this.b);return e}var Gs=["Geocentric","geocentric","geocent","Geocent"],qs={init:js,forward:Fs,inverse:Hs,names:Gs},zs={N_POLE:0,S_POLE:1,EQUIT:2,OBLIQ:3},Bs={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};function Us(){if(Object.keys(Bs).forEach(function(t){if("undefined"===typeof this[t])this[t]=Bs[t].def;else{if(Bs[t].num&&isNaN(this[t]))throw new Error("Invalid parameter value, must be numeric "+t+" = "+this[t]);Bs[t].num&&(this[t]=parseFloat(this[t]))}Bs[t].degrees&&(this[t]=this[t]*y)}.bind(this)),Math.abs(Math.abs(this.lat0)-f)1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var t=this.tilt,e=this.azi;this.cg=Math.cos(e),this.sg=Math.sin(e),this.cw=Math.cos(t),this.sw=Math.sin(t)}function Ws(t){t.x-=this.long0;var e,n,i,r,s=Math.sin(t.y),o=Math.cos(t.y),a=Math.cos(t.x);switch(this.mode){case zs.OBLIQ:n=this.sinph0*s+this.cosph0*o*a;break;case zs.EQUIT:n=o*a;break;case zs.S_POLE:n=-s;break;case zs.N_POLE:n=s;break}switch(n=this.pn1/(this.p-n),e=n*o*Math.sin(t.x),this.mode){case zs.OBLIQ:n*=this.cosph0*s-this.sinph0*o*a;break;case zs.EQUIT:n*=s;break;case zs.N_POLE:n*=-o*a;break;case zs.S_POLE:n*=o*a;break}return i=n*this.cg+e*this.sg,r=1/(i*this.sw*this.h1+this.cw),e=(e*this.cg-n*this.sg)*this.cw*r,n=i*r,t.x=e*this.a,t.y=n*this.a,t}function $s(t){t.x/=this.a,t.y/=this.a;var e,n,i,r={x:t.x,y:t.y};i=1/(this.pn1-t.y*this.sw),e=this.pn1*t.x*i,n=this.pn1*t.y*this.cw*i,t.x=e*this.cg+n*this.sg,t.y=n*this.cg-e*this.sg;var s=yn(t.x,t.y);if(Math.abs(s)1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,0!==this.es){var t=1-this.es,e=1/t;this.radius_p=Math.sqrt(t),this.radius_p2=t,this.radius_p_inv2=e,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")}function Js(t){var e,n,i,r,s=t.x,o=t.y;if(s-=this.long0,"ellipse"===this.shape){o=Math.atan(this.radius_p2*Math.tan(o));var a=this.radius_p/yn(this.radius_p*Math.cos(o),Math.sin(o));if(n=a*Math.cos(s)*Math.cos(o),i=a*Math.sin(s)*Math.cos(o),r=a*Math.sin(o),(this.radius_g-n)*n-i*i-r*r*this.radius_p_inv2<0)return t.x=Number.NaN,t.y=Number.NaN,t;e=this.radius_g-n,this.flip_axis?(t.x=this.radius_g_1*Math.atan(i/yn(r,e)),t.y=this.radius_g_1*Math.atan(r/e)):(t.x=this.radius_g_1*Math.atan(i/e),t.y=this.radius_g_1*Math.atan(r/yn(i,e)))}else"sphere"===this.shape&&(e=Math.cos(o),n=Math.cos(s)*e,i=Math.sin(s)*e,r=Math.sin(o),e=this.radius_g-n,this.flip_axis?(t.x=this.radius_g_1*Math.atan(i/yn(r,e)),t.y=this.radius_g_1*Math.atan(r/e)):(t.x=this.radius_g_1*Math.atan(i/e),t.y=this.radius_g_1*Math.atan(r/yn(i,e))));return t.x=t.x*this.a,t.y=t.y*this.a,t}function Zs(t){var e,n,i,r,s=-1,o=0,a=0;if(t.x=t.x/this.a,t.y=t.y/this.a,"ellipse"===this.shape){this.flip_axis?(a=Math.tan(t.y/this.radius_g_1),o=Math.tan(t.x/this.radius_g_1)*yn(1,a)):(o=Math.tan(t.x/this.radius_g_1),a=Math.tan(t.y/this.radius_g_1)*yn(1,o));var c=a/this.radius_p;if(e=o*o+c*c+s*s,n=2*this.radius_g*s,i=n*n-4*e*this.C,i<0)return t.x=Number.NaN,t.y=Number.NaN,t;r=(-n-Math.sqrt(i))/(2*e),s=this.radius_g+r*s,o*=r,a*=r,t.x=Math.atan2(o,s),t.y=Math.atan(a*Math.cos(t.x)/s),t.y=Math.atan(this.radius_p_inv2*Math.tan(t.y))}else if("sphere"===this.shape){if(this.flip_axis?(a=Math.tan(t.y/this.radius_g_1),o=Math.tan(t.x/this.radius_g_1)*Math.sqrt(1+a*a)):(o=Math.tan(t.x/this.radius_g_1),a=Math.tan(t.y/this.radius_g_1)*Math.sqrt(1+o*o)),e=o*o+a*a+s*s,n=2*this.radius_g*s,i=n*n-4*e*this.C,i<0)return t.x=Number.NaN,t.y=Number.NaN,t;r=(-n-Math.sqrt(i))/(2*e),s=this.radius_g+r*s,o*=r,a*=r,t.x=Math.atan2(o,s),t.y=Math.atan(a*Math.cos(t.x)/s)}return t.x=t.x+this.long0,t}var Qs=["Geostationary Satellite View","Geostationary_Satellite","geos"],to={init:Ks,forward:Js,inverse:Zs,names:Qs},eo=1.340264,no=-.081106,io=893e-6,ro=.003796,so=Math.sqrt(3)/2;function oo(){this.es=0,this.long0=void 0!==this.long0?this.long0:0}function ao(t){var e=dt(t.x-this.long0),n=t.y,i=Math.asin(so*Math.sin(n)),r=i*i,s=r*r*r;return t.x=e*Math.cos(i)/(so*(eo+3*no*r+s*(7*io+9*ro*r))),t.y=i*(eo+no*r+s*(io+ro*r)),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t}function co(t){t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a;var e,n,i,r,s,o,a=1e-9,c=12,l=t.y;for(o=0;o=f?this.cphi1=0:this.cphi1=1/Math.tan(this.phi1),this.inverse=go,this.forward=mo)}function po(t){var e,n,i,r=dt(t.x-(this.long0||0)),s=t.y;return e=this.am1+this.m1-ln(s,n=Math.sin(s),i=Math.cos(s),this.en),n=i*r/(e*Math.sqrt(1-this.es*n*n)),t.x=e*Math.sin(n),t.y=this.am1-e*Math.cos(n),t.x=this.a*t.x+(this.x0||0),t.y=this.a*t.y+(this.y0||0),t}function _o(t){var e,n,i,r;if(t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a,n=yn(t.x,t.y=this.am1-t.y),r=hn(this.am1+this.m1-n,this.es,this.en),(e=Math.abs(r))ho?(t.x=n*Math.sin(e=i*Math.cos(r)/n),t.y=this.cphi1-n*Math.cos(e)):t.x=t.y=0,t.x=this.a*t.x+(this.x0||0),t.y=this.a*t.y+(this.y0||0),t}function go(t){var e,n;t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a;var i=yn(t.x,t.y=this.cphi1-t.y);if(n=this.cphi1+this.phi1-i,Math.abs(n)>f)throw new Error;return e=Math.abs(Math.abs(n)-f)<=ho?0:i*Math.atan2(t.x,t.y)/Math.cos(n),t.x=dt(e+(this.long0||0)),t.y=Si(n),t}var yo=["bonne","Bonne (Werner lat_1=90)"],vo={init:fo,names:yo},bo=function(t){t.Proj.projections.add(mn),t.Proj.projections.add(kn),t.Proj.projections.add(An),t.Proj.projections.add(Wn),t.Proj.projections.add(Zn),t.Proj.projections.add(ii),t.Proj.projections.add(ui),t.Proj.projections.add(_i),t.Proj.projections.add(bi),t.Proj.projections.add(Ri),t.Proj.projections.add(Ji),t.Proj.projections.add(rr),t.Proj.projections.add(lr),t.Proj.projections.add(_r),t.Proj.projections.add(br),t.Proj.projections.add(Tr),t.Proj.projections.add(Ir),t.Proj.projections.add(Yr),t.Proj.projections.add(qr),t.Proj.projections.add($r),t.Proj.projections.add(Zr),t.Proj.projections.add(is),t.Proj.projections.add(cs),t.Proj.projections.add(fs),t.Proj.projections.add(ws),t.Proj.projections.add(Ps),t.Proj.projections.add(qs),t.Proj.projections.add(Xs),t.Proj.projections.add(to),t.Proj.projections.add(uo),t.Proj.projections.add(vo)};Me.defaultDatum="WGS84",Me.Proj=te,Me.WGS84=new Me.Proj("WGS84"),Me.Point=Ve,Me.toPoint=de,Me.defs=Z,Me.nadgrid=qt,Me.transform=me,Me.mgrs=Ce,Me.version="__VERSION__",bo(Me);e["a"]=Me},a7da:function(t,e,n){"use strict";e["a"]={name:"QCarouselSlide",inject:{carousel:{default:function(){console.error("QCarouselSlide needs to be child of QCarousel")}}},props:{imgSrc:String},computed:{computedStyle:function(){var t={};return this.imgSrc&&(t.backgroundImage="url(".concat(this.imgSrc,")"),t.backgroundSize="cover",t.backgroundPosition="50%"),!this.carousel.inFullscreen&&this.carousel.height&&(t.maxHeight=this.carousel.height),t}},render:function(t){return t("div",{staticClass:"q-carousel-slide relative-position scroll",style:this.computedStyle},this.$slots.default)},created:function(){this.carousel.__registerSlide()},beforeDestroy:function(){this.carousel.__unregisterSlide()}}},a7fa:function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}});return e})},a829:function(t,e,n){"use strict";var i=n("c6a3"),r=n("062e"),s=n("46ef"),o=n("272a");class a extends o["a"]{}n.d(e,"a",function(){return c});class c extends a{constructor(t){super(),this.array=[],t instanceof i["a"]&&this.addAll(t)}contains(t){for(const e of this.array)if(0===e.compareTo(t))return!0;return!1}add(t){if(this.contains(t))return!1;for(let e=0,n=this.array.length;e/g,">").replace(/"/g,""").replace(/'/g,"'")}function T(t){return null!=t&&Object.keys(t).forEach(function(e){"string"==typeof t[e]&&(t[e]=E(t[e]))}),t}function S(t){t.prototype.hasOwnProperty("$i18n")||Object.defineProperty(t.prototype,"$i18n",{get:function(){return this._i18n}}),t.prototype.$t=function(t){var e=[],n=arguments.length-1;while(n-- >0)e[n]=arguments[n+1];var i=this.$i18n;return i._t.apply(i,[t,i.locale,i._getMessages(),this].concat(e))},t.prototype.$tc=function(t,e){var n=[],i=arguments.length-2;while(i-- >0)n[i]=arguments[i+2];var r=this.$i18n;return r._tc.apply(r,[t,r.locale,r._getMessages(),this,e].concat(n))},t.prototype.$te=function(t,e){var n=this.$i18n;return n._te(t,n.locale,n._getMessages(),e)},t.prototype.$d=function(t){var e,n=[],i=arguments.length-1;while(i-- >0)n[i]=arguments[i+1];return(e=this.$i18n).d.apply(e,[t].concat(n))},t.prototype.$n=function(t){var e,n=[],i=arguments.length-1;while(i-- >0)n[i]=arguments[i+1];return(e=this.$i18n).n.apply(e,[t].concat(n))}}function O(t){function e(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)}return void 0===t&&(t=!1),t?{mounted:e}:{beforeCreate:function(){var t=this.$options;if(t.i18n=t.i18n||(t.__i18nBridge||t.__i18n?{}:null),t.i18n)if(t.i18n instanceof Tt){if(t.__i18nBridge||t.__i18n)try{var e=t.i18n&&t.i18n.messages?t.i18n.messages:{},n=t.__i18nBridge||t.__i18n;n.forEach(function(t){e=x(e,JSON.parse(t))}),Object.keys(e).forEach(function(n){t.i18n.mergeLocaleMessage(n,e[n])})}catch(t){0}this._i18n=t.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(f(t.i18n)){var i=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof Tt?this.$root.$i18n:null;if(i&&(t.i18n.root=this.$root,t.i18n.formatter=i.formatter,t.i18n.fallbackLocale=i.fallbackLocale,t.i18n.formatFallbackMessages=i.formatFallbackMessages,t.i18n.silentTranslationWarn=i.silentTranslationWarn,t.i18n.silentFallbackWarn=i.silentFallbackWarn,t.i18n.pluralizationRules=i.pluralizationRules,t.i18n.preserveDirectiveContent=i.preserveDirectiveContent),t.__i18nBridge||t.__i18n)try{var r=t.i18n&&t.i18n.messages?t.i18n.messages:{},s=t.__i18nBridge||t.__i18n;s.forEach(function(t){r=x(r,JSON.parse(t))}),t.i18n.messages=r}catch(t){0}var o=t.i18n,a=o.sharedMessages;a&&f(a)&&(t.i18n.messages=x(t.i18n.messages,a)),this._i18n=new Tt(t.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===t.i18n.sync||t.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),i&&i.onComponentInstanceCreated(this._i18n)}else 0;else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof Tt?this._i18n=this.$root.$i18n:t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof Tt&&(this._i18n=t.parent.$i18n)},beforeMount:function(){var t=this.$options;t.i18n=t.i18n||(t.__i18nBridge||t.__i18n?{}:null),t.i18n?t.i18n instanceof Tt?(this._i18n.subscribeDataChanging(this),this._subscribing=!0):f(t.i18n)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof Tt?(this._i18n.subscribeDataChanging(this),this._subscribing=!0):t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof Tt&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:e,beforeDestroy:function(){if(this._i18n){var t=this;this.$nextTick(function(){t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher)})}}}}var k={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(t,e){var n=e.data,i=e.parent,r=e.props,s=e.slots,o=i.$i18n;if(o){var a=r.path,c=r.locale,l=r.places,u=s(),h=o.i(a,c,C(u)||l?I(u.default,l):u),d=r.tag&&!0!==r.tag||!1===r.tag?r.tag:"span";return d?t(d,n,h):h}}};function C(t){var e;for(e in t)if("default"!==e)return!1;return Boolean(e)}function I(t,e){var n=e?D(e):{};if(!t)return n;t=t.filter(function(t){return t.tag||""!==t.text.trim()});var i=t.every(N);return t.reduce(i?R:A,n)}function D(t){return Array.isArray(t)?t.reduce(A,{}):Object.assign({},t)}function R(t,e){return e.data&&e.data.attrs&&e.data.attrs.place&&(t[e.data.attrs.place]=e),t}function A(t,e,n){return t[n]=e,t}function N(t){return Boolean(t.data&&t.data.attrs&&t.data.attrs.place)}var Y,P={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(t,e){var n=e.props,r=e.parent,s=e.data,o=r.$i18n;if(!o)return null;var a=null,l=null;u(n.format)?a=n.format:c(n.format)&&(n.format.key&&(a=n.format.key),l=Object.keys(n.format).reduce(function(t,e){var r;return b(i,e)?Object.assign({},t,(r={},r[e]=n.format[e],r)):t},null));var h=n.locale||o.locale,d=o._ntp(n.value,h,a,l),f=d.map(function(t,e){var n,i=s.scopedSlots&&s.scopedSlots[t.type];return i?i((n={},n[t.type]=t.value,n.index=e,n.parts=d,n)):t.value}),p=n.tag&&!0!==n.tag||!1===n.tag?n.tag:"span";return p?t(p,{attrs:s.attrs,class:s["class"],staticClass:s.staticClass},f):f}};function j(t,e,n){q(t,n)&&z(t,e,n)}function F(t,e,n,i){if(q(t,n)){var r=n.context.$i18n;G(t,n)&&L(e.value,e.oldValue)&&L(t._localeMessage,r.getLocaleMessage(r.locale))||z(t,e,n)}}function H(t,e,n,i){var r=n.context;if(r){var o=n.context.$i18n||{};e.modifiers.preserve||o.preserveDirectiveContent||(t.textContent=""),t._vt=void 0,delete t["_vt"],t._locale=void 0,delete t["_locale"],t._localeMessage=void 0,delete t["_localeMessage"]}else s("Vue instance does not exists in VNode context")}function q(t,e){var n=e.context;return n?!!n.$i18n||(s("VueI18n instance does not exists in Vue instance"),!1):(s("Vue instance does not exists in VNode context"),!1)}function G(t,e){var n=e.context;return t._locale===n.$i18n.locale}function z(t,e,n){var i,r,o=e.value,a=B(o),c=a.path,l=a.locale,u=a.args,h=a.choice;if(c||l||u)if(c){var d=n.context;t._vt=t.textContent=null!=h?(i=d.$i18n).tc.apply(i,[c,h].concat(U(l,u))):(r=d.$i18n).t.apply(r,[c].concat(U(l,u))),t._locale=d.$i18n.locale,t._localeMessage=d.$i18n.getLocaleMessage(d.$i18n.locale)}else s("`path` is required in v-t directive");else s("value type not supported")}function B(t){var e,n,i,r;return u(t)?e=t:f(t)&&(e=t.path,n=t.locale,i=t.args,r=t.choice),{path:e,locale:n,args:i,choice:r}}function U(t,e){var n=[];return t&&n.push(t),e&&(Array.isArray(e)||f(e))&&n.push(e),n}function W(t,e){void 0===e&&(e={bridge:!1}),W.installed=!0,Y=t;Y.version&&Number(Y.version.split(".")[0]);S(Y),Y.mixin(O(e.bridge)),Y.directive("t",{bind:j,update:F,unbind:H}),Y.component(k.name,k),Y.component(P.name,P);var n=Y.config.optionMergeStrategies;n.i18n=function(t,e){return void 0===e?t:e}}var $=function(){this._caches=Object.create(null)};$.prototype.interpolate=function(t,e){if(!e)return[t];var n=this._caches[t];return n||(n=K(t),this._caches[t]=n),Z(n,e)};var V=/^(?:\d)+/,X=/^(?:\w)+/;function K(t){var e=[],n=0,i="";while(n0)h--,u=ot,d[J]();else{if(h=0,void 0===n)return!1;if(n=mt(n),!1===n)return!1;d[Q]()}};while(null!==u)if(l++,e=t[l],"\\"!==e||!f()){if(r=_t(e),a=ht[u],s=a[r]||a["else"]||ut,s===ut)return;if(u=s[0],o=d[s[1]],o&&(i=s[2],i=void 0===i?e:i,!1===o()))return;if(u===lt)return c}}var yt=function(){this._cache=Object.create(null)};yt.prototype.parsePath=function(t){var e=this._cache[t];return e||(e=gt(t),e&&(this._cache[t]=e)),e||[]},yt.prototype.getPathValue=function(t,e){if(!c(t))return null;var n=this.parsePath(e);if(0===n.length)return null;var i=n.length,r=t,s=0;while(s/,Mt=/(?:@(?:\.[a-zA-Z]+)?:(?:[\w\-_|./]+|\([\w\-_:|./]+\)))/g,wt=/^@(?:\.([a-zA-Z]+))?:/,xt=/[()]/g,Lt={upper:function(t){return t.toLocaleUpperCase()},lower:function(t){return t.toLocaleLowerCase()},capitalize:function(t){return""+t.charAt(0).toLocaleUpperCase()+t.substr(1)}},Et=new $,Tt=function(t){var e=this;void 0===t&&(t={}),!Y&&"undefined"!==typeof window&&window.Vue&&W(window.Vue);var n=t.locale||"en-US",i=!1!==t.fallbackLocale&&(t.fallbackLocale||"en-US"),r=t.messages||{},s=t.dateTimeFormats||t.datetimeFormats||{},o=t.numberFormats||{};this._vm=null,this._formatter=t.formatter||Et,this._modifiers=t.modifiers||{},this._missing=t.missing||null,this._root=t.root||null,this._sync=void 0===t.sync||!!t.sync,this._fallbackRoot=void 0===t.fallbackRoot||!!t.fallbackRoot,this._fallbackRootWithEmptyString=void 0===t.fallbackRootWithEmptyString||!!t.fallbackRootWithEmptyString,this._formatFallbackMessages=void 0!==t.formatFallbackMessages&&!!t.formatFallbackMessages,this._silentTranslationWarn=void 0!==t.silentTranslationWarn&&t.silentTranslationWarn,this._silentFallbackWarn=void 0!==t.silentFallbackWarn&&!!t.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new yt,this._dataListeners=new Set,this._componentInstanceCreatedListener=t.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==t.preserveDirectiveContent&&!!t.preserveDirectiveContent,this.pluralizationRules=t.pluralizationRules||{},this._warnHtmlInMessage=t.warnHtmlInMessage||"off",this._postTranslation=t.postTranslation||null,this._escapeParameterHtml=t.escapeParameterHtml||!1,"__VUE_I18N_BRIDGE__"in t&&(this.__VUE_I18N_BRIDGE__=t.__VUE_I18N_BRIDGE__),this.getChoiceIndex=function(t,n){var i=Object.getPrototypeOf(e);if(i&&i.getChoiceIndex){var r=i.getChoiceIndex;return r.call(e,t,n)}var s=function(t,e){return t=Math.abs(t),2===e?t?t>1?1:0:1:t?Math.min(t,2):0};return e.locale in e.pluralizationRules?e.pluralizationRules[e.locale].apply(e,[t,n]):s(t,n)},this._exist=function(t,n){return!(!t||!n)&&(!p(e._path.getPathValue(t,n))||!!t[n])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(r).forEach(function(t){e._checkLocaleMessage(t,e._warnHtmlInMessage,r[t])}),this._initVM({locale:n,fallbackLocale:i,messages:r,dateTimeFormats:s,numberFormats:o})},St={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0},sync:{configurable:!0}};Tt.prototype._checkLocaleMessage=function(t,e,n){var i=[],r=function(t,e,n,i){if(f(n))Object.keys(n).forEach(function(s){var o=n[s];f(o)?(i.push(s),i.push("."),r(t,e,o,i),i.pop(),i.pop()):(i.push(s),r(t,e,o,i),i.pop())});else if(a(n))n.forEach(function(n,s){f(n)?(i.push("["+s+"]"),i.push("."),r(t,e,n,i),i.pop(),i.pop()):(i.push("["+s+"]"),r(t,e,n,i),i.pop())});else if(u(n)){var c=bt.test(n);if(c){var l="Detected HTML in message '"+n+"' of keypath '"+i.join("")+"' at '"+e+"'. Consider component interpolation with '' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===t?s(l):"error"===t&&o(l)}}};r(e,t,n,i)},Tt.prototype._initVM=function(t){var e=Y.config.silent;Y.config.silent=!0,this._vm=new Y({data:t,__VUE18N__INSTANCE__:!0}),Y.config.silent=e},Tt.prototype.destroyVM=function(){this._vm.$destroy()},Tt.prototype.subscribeDataChanging=function(t){this._dataListeners.add(t)},Tt.prototype.unsubscribeDataChanging=function(t){y(this._dataListeners,t)},Tt.prototype.watchI18nData=function(){var t=this;return this._vm.$watch("$data",function(){var e=v(t._dataListeners),n=e.length;while(n--)Y.nextTick(function(){e[n]&&e[n].$forceUpdate()})},{deep:!0})},Tt.prototype.watchLocale=function(t){if(t){if(!this.__VUE_I18N_BRIDGE__)return null;var e=this,n=this._vm;return this.vm.$watch("locale",function(i){n.$set(n,"locale",i),e.__VUE_I18N_BRIDGE__&&t&&(t.locale.value=i),n.$forceUpdate()},{immediate:!0})}if(!this._sync||!this._root)return null;var i=this._vm;return this._root.$i18n.vm.$watch("locale",function(t){i.$set(i,"locale",t),i.$forceUpdate()},{immediate:!0})},Tt.prototype.onComponentInstanceCreated=function(t){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(t,this)},St.vm.get=function(){return this._vm},St.messages.get=function(){return g(this._getMessages())},St.dateTimeFormats.get=function(){return g(this._getDateTimeFormats())},St.numberFormats.get=function(){return g(this._getNumberFormats())},St.availableLocales.get=function(){return Object.keys(this.messages).sort()},St.locale.get=function(){return this._vm.locale},St.locale.set=function(t){this._vm.$set(this._vm,"locale",t)},St.fallbackLocale.get=function(){return this._vm.fallbackLocale},St.fallbackLocale.set=function(t){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",t)},St.formatFallbackMessages.get=function(){return this._formatFallbackMessages},St.formatFallbackMessages.set=function(t){this._formatFallbackMessages=t},St.missing.get=function(){return this._missing},St.missing.set=function(t){this._missing=t},St.formatter.get=function(){return this._formatter},St.formatter.set=function(t){this._formatter=t},St.silentTranslationWarn.get=function(){return this._silentTranslationWarn},St.silentTranslationWarn.set=function(t){this._silentTranslationWarn=t},St.silentFallbackWarn.get=function(){return this._silentFallbackWarn},St.silentFallbackWarn.set=function(t){this._silentFallbackWarn=t},St.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},St.preserveDirectiveContent.set=function(t){this._preserveDirectiveContent=t},St.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},St.warnHtmlInMessage.set=function(t){var e=this,n=this._warnHtmlInMessage;if(this._warnHtmlInMessage=t,n!==t&&("warn"===t||"error"===t)){var i=this._getMessages();Object.keys(i).forEach(function(t){e._checkLocaleMessage(t,e._warnHtmlInMessage,i[t])})}},St.postTranslation.get=function(){return this._postTranslation},St.postTranslation.set=function(t){this._postTranslation=t},St.sync.get=function(){return this._sync},St.sync.set=function(t){this._sync=t},Tt.prototype._getMessages=function(){return this._vm.messages},Tt.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},Tt.prototype._getNumberFormats=function(){return this._vm.numberFormats},Tt.prototype._warnDefault=function(t,e,n,i,r,s){if(!p(n))return n;if(this._missing){var o=this._missing.apply(null,[t,e,i,r]);if(u(o))return o}else 0;if(this._formatFallbackMessages){var a=m.apply(void 0,r);return this._render(e,s,a.params,e)}return e},Tt.prototype._isFallbackRoot=function(t){return(this._fallbackRootWithEmptyString?!t:p(t))&&!p(this._root)&&this._fallbackRoot},Tt.prototype._isSilentFallbackWarn=function(t){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(t):this._silentFallbackWarn},Tt.prototype._isSilentFallback=function(t,e){return this._isSilentFallbackWarn(e)&&(this._isFallbackRoot()||t!==this.fallbackLocale)},Tt.prototype._isSilentTranslationWarn=function(t){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(t):this._silentTranslationWarn},Tt.prototype._interpolate=function(t,e,n,i,r,s,o){if(!e)return null;var c,l=this._path.getPathValue(e,n);if(a(l)||f(l))return l;if(p(l)){if(!f(e))return null;if(c=e[n],!u(c)&&!_(c))return null}else{if(!u(l)&&!_(l))return null;c=l}return u(c)&&(c.indexOf("@:")>=0||c.indexOf("@.")>=0)&&(c=this._link(t,e,c,i,"raw",s,o)),this._render(c,r,s,n)},Tt.prototype._link=function(t,e,n,i,r,s,o){var c=n,l=c.match(Mt);for(var u in l)if(l.hasOwnProperty(u)){var h=l[u],d=h.match(wt),f=d[0],p=d[1],_=h.replace(f,"").replace(xt,"");if(b(o,_))return c;o.push(_);var m=this._interpolate(t,e,_,i,"raw"===r?"string":r,"raw"===r?void 0:s,o);if(this._isFallbackRoot(m)){if(!this._root)throw Error("unexpected error");var g=this._root.$i18n;m=g._translate(g._getMessages(),g.locale,g.fallbackLocale,_,i,r,s)}m=this._warnDefault(t,_,m,i,a(s)?s:[s],r),this._modifiers.hasOwnProperty(p)?m=this._modifiers[p](m):Lt.hasOwnProperty(p)&&(m=Lt[p](m)),o.pop(),c=m?c.replace(h,m):c}return c},Tt.prototype._createMessageContext=function(t,e,n,i){var r=this,s=a(t)?t:[],o=c(t)?t:{},l=function(t){return s[t]},u=function(t){return o[t]},h=this._getMessages(),d=this.locale;return{list:l,named:u,values:t,formatter:e,path:n,messages:h,locale:d,linked:function(t){return r._interpolate(d,h[d]||{},t,null,i,void 0,[t])}}},Tt.prototype._render=function(t,e,n,i){if(_(t))return t(this._createMessageContext(n,this._formatter||Et,i,e));var r=this._formatter.interpolate(t,n,i);return r||(r=Et.interpolate(t,n,i)),"string"!==e||u(r)?r:r.join("")},Tt.prototype._appendItemToChain=function(t,e,n){var i=!1;return b(t,e)||(i=!0,e&&(i="!"!==e[e.length-1],e=e.replace(/!/g,""),t.push(e),n&&n[e]&&(i=n[e]))),i},Tt.prototype._appendLocaleToChain=function(t,e,n){var i,r=e.split("-");do{var s=r.join("-");i=this._appendItemToChain(t,s,n),r.splice(-1,1)}while(r.length&&!0===i);return i},Tt.prototype._appendBlockToChain=function(t,e,n){for(var i=!0,r=0;r0)s[o]=arguments[o+4];if(!t)return"";var a=m.apply(void 0,s);this._escapeParameterHtml&&(a.params=T(a.params));var c=a.locale||e,l=this._translate(n,c,this.fallbackLocale,t,i,"string",a.params);if(this._isFallbackRoot(l)){if(!this._root)throw Error("unexpected error");return(r=this._root).$t.apply(r,[t].concat(s))}return l=this._warnDefault(c,t,l,i,s,"string"),this._postTranslation&&null!==l&&void 0!==l&&(l=this._postTranslation(l,t)),l},Tt.prototype.t=function(t){var e,n=[],i=arguments.length-1;while(i-- >0)n[i]=arguments[i+1];return(e=this)._t.apply(e,[t,this.locale,this._getMessages(),null].concat(n))},Tt.prototype._i=function(t,e,n,i,r){var s=this._translate(n,e,this.fallbackLocale,t,i,"raw",r);if(this._isFallbackRoot(s)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(t,e,r)}return this._warnDefault(e,t,s,i,[r],"raw")},Tt.prototype.i=function(t,e,n){return t?(u(e)||(e=this.locale),this._i(t,e,this._getMessages(),null,n)):""},Tt.prototype._tc=function(t,e,n,i,r){var s,o=[],a=arguments.length-5;while(a-- >0)o[a]=arguments[a+5];if(!t)return"";void 0===r&&(r=1);var c={count:r,n:r},l=m.apply(void 0,o);return l.params=Object.assign(c,l.params),o=null===l.locale?[l.params]:[l.locale,l.params],this.fetchChoice((s=this)._t.apply(s,[t,e,n,i].concat(o)),r)},Tt.prototype.fetchChoice=function(t,e){if(!t||!u(t))return null;var n=t.split("|");return e=this.getChoiceIndex(e,n.length),n[e]?n[e].trim():t},Tt.prototype.tc=function(t,e){var n,i=[],r=arguments.length-2;while(r-- >0)i[r]=arguments[r+2];return(n=this)._tc.apply(n,[t,this.locale,this._getMessages(),null,e].concat(i))},Tt.prototype._te=function(t,e,n){var i=[],r=arguments.length-3;while(r-- >0)i[r]=arguments[r+3];var s=m.apply(void 0,i).locale||e;return this._exist(n[s],t)},Tt.prototype.te=function(t,e){return this._te(t,this.locale,this._getMessages(),e)},Tt.prototype.getLocaleMessage=function(t){return g(this._vm.messages[t]||{})},Tt.prototype.setLocaleMessage=function(t,e){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(t,this._warnHtmlInMessage,e),this._vm.$set(this._vm.messages,t,e)},Tt.prototype.mergeLocaleMessage=function(t,e){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(t,this._warnHtmlInMessage,e),this._vm.$set(this._vm.messages,t,x("undefined"!==typeof this._vm.messages[t]&&Object.keys(this._vm.messages[t]).length?Object.assign({},this._vm.messages[t]):{},e))},Tt.prototype.getDateTimeFormat=function(t){return g(this._vm.dateTimeFormats[t]||{})},Tt.prototype.setDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,e),this._clearDateTimeFormat(t,e)},Tt.prototype.mergeDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,x(this._vm.dateTimeFormats[t]||{},e)),this._clearDateTimeFormat(t,e)},Tt.prototype._clearDateTimeFormat=function(t,e){for(var n in e){var i=t+"__"+n;this._dateTimeFormatters.hasOwnProperty(i)&&delete this._dateTimeFormatters[i]}},Tt.prototype._localizeDateTime=function(t,e,n,i,r,s){for(var o=e,a=i[o],c=this._getLocaleChain(e,n),l=0;l0)e[n]=arguments[n+1];var i=this.locale,s=null,o=null;return 1===e.length?(u(e[0])?s=e[0]:c(e[0])&&(e[0].locale&&(i=e[0].locale),e[0].key&&(s=e[0].key)),o=Object.keys(e[0]).reduce(function(t,n){var i;return b(r,n)?Object.assign({},t,(i={},i[n]=e[0][n],i)):t},null)):2===e.length&&(u(e[0])&&(s=e[0]),u(e[1])&&(i=e[1])),this._d(t,i,s,o)},Tt.prototype.getNumberFormat=function(t){return g(this._vm.numberFormats[t]||{})},Tt.prototype.setNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,e),this._clearNumberFormat(t,e)},Tt.prototype.mergeNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,x(this._vm.numberFormats[t]||{},e)),this._clearNumberFormat(t,e)},Tt.prototype._clearNumberFormat=function(t,e){for(var n in e){var i=t+"__"+n;this._numberFormatters.hasOwnProperty(i)&&delete this._numberFormatters[i]}},Tt.prototype._getNumberFormatter=function(t,e,n,i,r,s){for(var o=e,a=i[o],c=this._getLocaleChain(e,n),l=0;l0)e[n]=arguments[n+1];var r=this.locale,s=null,o=null;return 1===e.length?u(e[0])?s=e[0]:c(e[0])&&(e[0].locale&&(r=e[0].locale),e[0].key&&(s=e[0].key),o=Object.keys(e[0]).reduce(function(t,n){var r;return b(i,n)?Object.assign({},t,(r={},r[n]=e[0][n],r)):t},null)):2===e.length&&(u(e[0])&&(s=e[0]),u(e[1])&&(r=e[1])),this._n(t,r,s,o)},Tt.prototype._ntp=function(t,e,n,i){if(!Tt.availabilities.numberFormat)return[];if(!n){var r=i?new Intl.NumberFormat(e,i):new Intl.NumberFormat(e);return r.formatToParts(t)}var s=this._getNumberFormatter(t,e,this.fallbackLocale,this._getNumberFormats(),n,i),o=s&&s.formatToParts(t);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(t,e,n,i)}return o||[]},Object.defineProperties(Tt.prototype,St),Object.defineProperty(Tt,"availabilities",{get:function(){if(!vt){var t="undefined"!==typeof Intl;vt={dateTimeFormat:t&&"undefined"!==typeof Intl.DateTimeFormat,numberFormat:t&&"undefined"!==typeof Intl.NumberFormat}}return vt}}),Tt.install=W,Tt.version="8.28.2",e["a"]=Tt},a963:function(t,e,n){},a9b5:function(t,e,n){},aa77:function(t,e,n){var i=n("5ca1"),r=n("be13"),s=n("79e5"),o=n("fdef"),a="["+o+"]",c="​…",l=RegExp("^"+a+a+"*"),u=RegExp(a+a+"*$"),h=function(t,e,n){var r={},a=s(function(){return!!o[t]()||c[t]()!=c}),l=r[t]=a?e(d):o[t];n&&(r[n]=l),i(i.P+i.F*a,"String",r)},d=h.trim=function(t,e){return t=String(r(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(u,"")),t};t.exports=h},aab2:function(t,e,n){},aae3:function(t,e,n){var i=n("d3f4"),r=n("2d95"),s=n("2b4c")("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[s])?!!e:"RegExp"==r(t))}},aaf2:function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; + */var i=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"],r=["dateStyle","timeStyle","calendar","localeMatcher","hour12","hourCycle","timeZone","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function s(t,e){"undefined"!==typeof console&&(console.warn("[vue-i18n] "+t),e&&console.warn(e.stack))}function o(t,e){"undefined"!==typeof console&&(console.error("[vue-i18n] "+t),e&&console.error(e.stack))}var a=Array.isArray;function c(t){return null!==t&&"object"===typeof t}function l(t){return"boolean"===typeof t}function u(t){return"string"===typeof t}var h=Object.prototype.toString,d="[object Object]";function f(t){return h.call(t)===d}function p(t){return null===t||void 0===t}function _(t){return"function"===typeof t}function m(){var t=[],e=arguments.length;while(e--)t[e]=arguments[e];var n=null,i=null;return 1===t.length?c(t[0])||a(t[0])?i=t[0]:"string"===typeof t[0]&&(n=t[0]):2===t.length&&("string"===typeof t[0]&&(n=t[0]),(c(t[1])||a(t[1]))&&(i=t[1])),{locale:n,params:i}}function g(t){return JSON.parse(JSON.stringify(t))}function y(t,e){if(t.delete(e))return t}function v(t){var e=[];return t.forEach(function(t){return e.push(t)}),e}function b(t,e){return!!~t.indexOf(e)}var M=Object.prototype.hasOwnProperty;function w(t,e){return M.call(t,e)}function x(t){for(var e=arguments,n=Object(t),i=1;i/g,">").replace(/"/g,""").replace(/'/g,"'")}function T(t){return null!=t&&Object.keys(t).forEach(function(e){"string"==typeof t[e]&&(t[e]=E(t[e]))}),t}function S(t){t.prototype.hasOwnProperty("$i18n")||Object.defineProperty(t.prototype,"$i18n",{get:function(){return this._i18n}}),t.prototype.$t=function(t){var e=[],n=arguments.length-1;while(n-- >0)e[n]=arguments[n+1];var i=this.$i18n;return i._t.apply(i,[t,i.locale,i._getMessages(),this].concat(e))},t.prototype.$tc=function(t,e){var n=[],i=arguments.length-2;while(i-- >0)n[i]=arguments[i+2];var r=this.$i18n;return r._tc.apply(r,[t,r.locale,r._getMessages(),this,e].concat(n))},t.prototype.$te=function(t,e){var n=this.$i18n;return n._te(t,n.locale,n._getMessages(),e)},t.prototype.$d=function(t){var e,n=[],i=arguments.length-1;while(i-- >0)n[i]=arguments[i+1];return(e=this.$i18n).d.apply(e,[t].concat(n))},t.prototype.$n=function(t){var e,n=[],i=arguments.length-1;while(i-- >0)n[i]=arguments[i+1];return(e=this.$i18n).n.apply(e,[t].concat(n))}}function O(t){function e(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)}return void 0===t&&(t=!1),t?{mounted:e}:{beforeCreate:function(){var t=this.$options;if(t.i18n=t.i18n||(t.__i18nBridge||t.__i18n?{}:null),t.i18n)if(t.i18n instanceof Tt){if(t.__i18nBridge||t.__i18n)try{var e=t.i18n&&t.i18n.messages?t.i18n.messages:{},n=t.__i18nBridge||t.__i18n;n.forEach(function(t){e=x(e,JSON.parse(t))}),Object.keys(e).forEach(function(n){t.i18n.mergeLocaleMessage(n,e[n])})}catch(t){0}this._i18n=t.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(f(t.i18n)){var i=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof Tt?this.$root.$i18n:null;if(i&&(t.i18n.root=this.$root,t.i18n.formatter=i.formatter,t.i18n.fallbackLocale=i.fallbackLocale,t.i18n.formatFallbackMessages=i.formatFallbackMessages,t.i18n.silentTranslationWarn=i.silentTranslationWarn,t.i18n.silentFallbackWarn=i.silentFallbackWarn,t.i18n.pluralizationRules=i.pluralizationRules,t.i18n.preserveDirectiveContent=i.preserveDirectiveContent),t.__i18nBridge||t.__i18n)try{var r=t.i18n&&t.i18n.messages?t.i18n.messages:{},s=t.__i18nBridge||t.__i18n;s.forEach(function(t){r=x(r,JSON.parse(t))}),t.i18n.messages=r}catch(t){0}var o=t.i18n,a=o.sharedMessages;a&&f(a)&&(t.i18n.messages=x(t.i18n.messages,a)),this._i18n=new Tt(t.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===t.i18n.sync||t.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),i&&i.onComponentInstanceCreated(this._i18n)}else 0;else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof Tt?this._i18n=this.$root.$i18n:t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof Tt&&(this._i18n=t.parent.$i18n)},beforeMount:function(){var t=this.$options;t.i18n=t.i18n||(t.__i18nBridge||t.__i18n?{}:null),t.i18n?t.i18n instanceof Tt?(this._i18n.subscribeDataChanging(this),this._subscribing=!0):f(t.i18n)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof Tt?(this._i18n.subscribeDataChanging(this),this._subscribing=!0):t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof Tt&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:e,beforeDestroy:function(){if(this._i18n){var t=this;this.$nextTick(function(){t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher)})}}}}var k={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(t,e){var n=e.data,i=e.parent,r=e.props,s=e.slots,o=i.$i18n;if(o){var a=r.path,c=r.locale,l=r.places,u=s(),h=o.i(a,c,C(u)||l?I(u.default,l):u),d=r.tag&&!0!==r.tag||!1===r.tag?r.tag:"span";return d?t(d,n,h):h}}};function C(t){var e;for(e in t)if("default"!==e)return!1;return Boolean(e)}function I(t,e){var n=e?D(e):{};if(!t)return n;t=t.filter(function(t){return t.tag||""!==t.text.trim()});var i=t.every(N);return t.reduce(i?R:A,n)}function D(t){return Array.isArray(t)?t.reduce(A,{}):Object.assign({},t)}function R(t,e){return e.data&&e.data.attrs&&e.data.attrs.place&&(t[e.data.attrs.place]=e),t}function A(t,e,n){return t[n]=e,t}function N(t){return Boolean(t.data&&t.data.attrs&&t.data.attrs.place)}var Y,P={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(t,e){var n=e.props,r=e.parent,s=e.data,o=r.$i18n;if(!o)return null;var a=null,l=null;u(n.format)?a=n.format:c(n.format)&&(n.format.key&&(a=n.format.key),l=Object.keys(n.format).reduce(function(t,e){var r;return b(i,e)?Object.assign({},t,(r={},r[e]=n.format[e],r)):t},null));var h=n.locale||o.locale,d=o._ntp(n.value,h,a,l),f=d.map(function(t,e){var n,i=s.scopedSlots&&s.scopedSlots[t.type];return i?i((n={},n[t.type]=t.value,n.index=e,n.parts=d,n)):t.value}),p=n.tag&&!0!==n.tag||!1===n.tag?n.tag:"span";return p?t(p,{attrs:s.attrs,class:s["class"],staticClass:s.staticClass},f):f}};function j(t,e,n){G(t,n)&&z(t,e,n)}function F(t,e,n,i){if(G(t,n)){var r=n.context.$i18n;q(t,n)&&L(e.value,e.oldValue)&&L(t._localeMessage,r.getLocaleMessage(r.locale))||z(t,e,n)}}function H(t,e,n,i){var r=n.context;if(r){var o=n.context.$i18n||{};e.modifiers.preserve||o.preserveDirectiveContent||(t.textContent=""),t._vt=void 0,delete t["_vt"],t._locale=void 0,delete t["_locale"],t._localeMessage=void 0,delete t["_localeMessage"]}else s("Vue instance does not exists in VNode context")}function G(t,e){var n=e.context;return n?!!n.$i18n||(s("VueI18n instance does not exists in Vue instance"),!1):(s("Vue instance does not exists in VNode context"),!1)}function q(t,e){var n=e.context;return t._locale===n.$i18n.locale}function z(t,e,n){var i,r,o=e.value,a=B(o),c=a.path,l=a.locale,u=a.args,h=a.choice;if(c||l||u)if(c){var d=n.context;t._vt=t.textContent=null!=h?(i=d.$i18n).tc.apply(i,[c,h].concat(U(l,u))):(r=d.$i18n).t.apply(r,[c].concat(U(l,u))),t._locale=d.$i18n.locale,t._localeMessage=d.$i18n.getLocaleMessage(d.$i18n.locale)}else s("`path` is required in v-t directive");else s("value type not supported")}function B(t){var e,n,i,r;return u(t)?e=t:f(t)&&(e=t.path,n=t.locale,i=t.args,r=t.choice),{path:e,locale:n,args:i,choice:r}}function U(t,e){var n=[];return t&&n.push(t),e&&(Array.isArray(e)||f(e))&&n.push(e),n}function W(t,e){void 0===e&&(e={bridge:!1}),W.installed=!0,Y=t;Y.version&&Number(Y.version.split(".")[0]);S(Y),Y.mixin(O(e.bridge)),Y.directive("t",{bind:j,update:F,unbind:H}),Y.component(k.name,k),Y.component(P.name,P);var n=Y.config.optionMergeStrategies;n.i18n=function(t,e){return void 0===e?t:e}}var $=function(){this._caches=Object.create(null)};$.prototype.interpolate=function(t,e){if(!e)return[t];var n=this._caches[t];return n||(n=K(t),this._caches[t]=n),J(n,e)};var V=/^(?:\d)+/,X=/^(?:\w)+/;function K(t){var e=[],n=0,i="";while(n0)h--,u=ot,d[Z]();else{if(h=0,void 0===n)return!1;if(n=mt(n),!1===n)return!1;d[Q]()}};while(null!==u)if(l++,e=t[l],"\\"!==e||!f()){if(r=_t(e),a=ht[u],s=a[r]||a["else"]||ut,s===ut)return;if(u=s[0],o=d[s[1]],o&&(i=s[2],i=void 0===i?e:i,!1===o()))return;if(u===lt)return c}}var yt=function(){this._cache=Object.create(null)};yt.prototype.parsePath=function(t){var e=this._cache[t];return e||(e=gt(t),e&&(this._cache[t]=e)),e||[]},yt.prototype.getPathValue=function(t,e){if(!c(t))return null;var n=this.parsePath(e);if(0===n.length)return null;var i=n.length,r=t,s=0;while(s/,Mt=/(?:@(?:\.[a-zA-Z]+)?:(?:[\w\-_|./]+|\([\w\-_:|./]+\)))/g,wt=/^@(?:\.([a-zA-Z]+))?:/,xt=/[()]/g,Lt={upper:function(t){return t.toLocaleUpperCase()},lower:function(t){return t.toLocaleLowerCase()},capitalize:function(t){return""+t.charAt(0).toLocaleUpperCase()+t.substr(1)}},Et=new $,Tt=function(t){var e=this;void 0===t&&(t={}),!Y&&"undefined"!==typeof window&&window.Vue&&W(window.Vue);var n=t.locale||"en-US",i=!1!==t.fallbackLocale&&(t.fallbackLocale||"en-US"),r=t.messages||{},s=t.dateTimeFormats||t.datetimeFormats||{},o=t.numberFormats||{};this._vm=null,this._formatter=t.formatter||Et,this._modifiers=t.modifiers||{},this._missing=t.missing||null,this._root=t.root||null,this._sync=void 0===t.sync||!!t.sync,this._fallbackRoot=void 0===t.fallbackRoot||!!t.fallbackRoot,this._fallbackRootWithEmptyString=void 0===t.fallbackRootWithEmptyString||!!t.fallbackRootWithEmptyString,this._formatFallbackMessages=void 0!==t.formatFallbackMessages&&!!t.formatFallbackMessages,this._silentTranslationWarn=void 0!==t.silentTranslationWarn&&t.silentTranslationWarn,this._silentFallbackWarn=void 0!==t.silentFallbackWarn&&!!t.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new yt,this._dataListeners=new Set,this._componentInstanceCreatedListener=t.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==t.preserveDirectiveContent&&!!t.preserveDirectiveContent,this.pluralizationRules=t.pluralizationRules||{},this._warnHtmlInMessage=t.warnHtmlInMessage||"off",this._postTranslation=t.postTranslation||null,this._escapeParameterHtml=t.escapeParameterHtml||!1,"__VUE_I18N_BRIDGE__"in t&&(this.__VUE_I18N_BRIDGE__=t.__VUE_I18N_BRIDGE__),this.getChoiceIndex=function(t,n){var i=Object.getPrototypeOf(e);if(i&&i.getChoiceIndex){var r=i.getChoiceIndex;return r.call(e,t,n)}var s=function(t,e){return t=Math.abs(t),2===e?t?t>1?1:0:1:t?Math.min(t,2):0};return e.locale in e.pluralizationRules?e.pluralizationRules[e.locale].apply(e,[t,n]):s(t,n)},this._exist=function(t,n){return!(!t||!n)&&(!p(e._path.getPathValue(t,n))||!!t[n])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(r).forEach(function(t){e._checkLocaleMessage(t,e._warnHtmlInMessage,r[t])}),this._initVM({locale:n,fallbackLocale:i,messages:r,dateTimeFormats:s,numberFormats:o})},St={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0},sync:{configurable:!0}};Tt.prototype._checkLocaleMessage=function(t,e,n){var i=[],r=function(t,e,n,i){if(f(n))Object.keys(n).forEach(function(s){var o=n[s];f(o)?(i.push(s),i.push("."),r(t,e,o,i),i.pop(),i.pop()):(i.push(s),r(t,e,o,i),i.pop())});else if(a(n))n.forEach(function(n,s){f(n)?(i.push("["+s+"]"),i.push("."),r(t,e,n,i),i.pop(),i.pop()):(i.push("["+s+"]"),r(t,e,n,i),i.pop())});else if(u(n)){var c=bt.test(n);if(c){var l="Detected HTML in message '"+n+"' of keypath '"+i.join("")+"' at '"+e+"'. Consider component interpolation with '' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===t?s(l):"error"===t&&o(l)}}};r(e,t,n,i)},Tt.prototype._initVM=function(t){var e=Y.config.silent;Y.config.silent=!0,this._vm=new Y({data:t,__VUE18N__INSTANCE__:!0}),Y.config.silent=e},Tt.prototype.destroyVM=function(){this._vm.$destroy()},Tt.prototype.subscribeDataChanging=function(t){this._dataListeners.add(t)},Tt.prototype.unsubscribeDataChanging=function(t){y(this._dataListeners,t)},Tt.prototype.watchI18nData=function(){var t=this;return this._vm.$watch("$data",function(){var e=v(t._dataListeners),n=e.length;while(n--)Y.nextTick(function(){e[n]&&e[n].$forceUpdate()})},{deep:!0})},Tt.prototype.watchLocale=function(t){if(t){if(!this.__VUE_I18N_BRIDGE__)return null;var e=this,n=this._vm;return this.vm.$watch("locale",function(i){n.$set(n,"locale",i),e.__VUE_I18N_BRIDGE__&&t&&(t.locale.value=i),n.$forceUpdate()},{immediate:!0})}if(!this._sync||!this._root)return null;var i=this._vm;return this._root.$i18n.vm.$watch("locale",function(t){i.$set(i,"locale",t),i.$forceUpdate()},{immediate:!0})},Tt.prototype.onComponentInstanceCreated=function(t){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(t,this)},St.vm.get=function(){return this._vm},St.messages.get=function(){return g(this._getMessages())},St.dateTimeFormats.get=function(){return g(this._getDateTimeFormats())},St.numberFormats.get=function(){return g(this._getNumberFormats())},St.availableLocales.get=function(){return Object.keys(this.messages).sort()},St.locale.get=function(){return this._vm.locale},St.locale.set=function(t){this._vm.$set(this._vm,"locale",t)},St.fallbackLocale.get=function(){return this._vm.fallbackLocale},St.fallbackLocale.set=function(t){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",t)},St.formatFallbackMessages.get=function(){return this._formatFallbackMessages},St.formatFallbackMessages.set=function(t){this._formatFallbackMessages=t},St.missing.get=function(){return this._missing},St.missing.set=function(t){this._missing=t},St.formatter.get=function(){return this._formatter},St.formatter.set=function(t){this._formatter=t},St.silentTranslationWarn.get=function(){return this._silentTranslationWarn},St.silentTranslationWarn.set=function(t){this._silentTranslationWarn=t},St.silentFallbackWarn.get=function(){return this._silentFallbackWarn},St.silentFallbackWarn.set=function(t){this._silentFallbackWarn=t},St.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},St.preserveDirectiveContent.set=function(t){this._preserveDirectiveContent=t},St.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},St.warnHtmlInMessage.set=function(t){var e=this,n=this._warnHtmlInMessage;if(this._warnHtmlInMessage=t,n!==t&&("warn"===t||"error"===t)){var i=this._getMessages();Object.keys(i).forEach(function(t){e._checkLocaleMessage(t,e._warnHtmlInMessage,i[t])})}},St.postTranslation.get=function(){return this._postTranslation},St.postTranslation.set=function(t){this._postTranslation=t},St.sync.get=function(){return this._sync},St.sync.set=function(t){this._sync=t},Tt.prototype._getMessages=function(){return this._vm.messages},Tt.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},Tt.prototype._getNumberFormats=function(){return this._vm.numberFormats},Tt.prototype._warnDefault=function(t,e,n,i,r,s){if(!p(n))return n;if(this._missing){var o=this._missing.apply(null,[t,e,i,r]);if(u(o))return o}else 0;if(this._formatFallbackMessages){var a=m.apply(void 0,r);return this._render(e,s,a.params,e)}return e},Tt.prototype._isFallbackRoot=function(t){return(this._fallbackRootWithEmptyString?!t:p(t))&&!p(this._root)&&this._fallbackRoot},Tt.prototype._isSilentFallbackWarn=function(t){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(t):this._silentFallbackWarn},Tt.prototype._isSilentFallback=function(t,e){return this._isSilentFallbackWarn(e)&&(this._isFallbackRoot()||t!==this.fallbackLocale)},Tt.prototype._isSilentTranslationWarn=function(t){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(t):this._silentTranslationWarn},Tt.prototype._interpolate=function(t,e,n,i,r,s,o){if(!e)return null;var c,l=this._path.getPathValue(e,n);if(a(l)||f(l))return l;if(p(l)){if(!f(e))return null;if(c=e[n],!u(c)&&!_(c))return null}else{if(!u(l)&&!_(l))return null;c=l}return u(c)&&(c.indexOf("@:")>=0||c.indexOf("@.")>=0)&&(c=this._link(t,e,c,i,"raw",s,o)),this._render(c,r,s,n)},Tt.prototype._link=function(t,e,n,i,r,s,o){var c=n,l=c.match(Mt);for(var u in l)if(l.hasOwnProperty(u)){var h=l[u],d=h.match(wt),f=d[0],p=d[1],_=h.replace(f,"").replace(xt,"");if(b(o,_))return c;o.push(_);var m=this._interpolate(t,e,_,i,"raw"===r?"string":r,"raw"===r?void 0:s,o);if(this._isFallbackRoot(m)){if(!this._root)throw Error("unexpected error");var g=this._root.$i18n;m=g._translate(g._getMessages(),g.locale,g.fallbackLocale,_,i,r,s)}m=this._warnDefault(t,_,m,i,a(s)?s:[s],r),this._modifiers.hasOwnProperty(p)?m=this._modifiers[p](m):Lt.hasOwnProperty(p)&&(m=Lt[p](m)),o.pop(),c=m?c.replace(h,m):c}return c},Tt.prototype._createMessageContext=function(t,e,n,i){var r=this,s=a(t)?t:[],o=c(t)?t:{},l=function(t){return s[t]},u=function(t){return o[t]},h=this._getMessages(),d=this.locale;return{list:l,named:u,values:t,formatter:e,path:n,messages:h,locale:d,linked:function(t){return r._interpolate(d,h[d]||{},t,null,i,void 0,[t])}}},Tt.prototype._render=function(t,e,n,i){if(_(t))return t(this._createMessageContext(n,this._formatter||Et,i,e));var r=this._formatter.interpolate(t,n,i);return r||(r=Et.interpolate(t,n,i)),"string"!==e||u(r)?r:r.join("")},Tt.prototype._appendItemToChain=function(t,e,n){var i=!1;return b(t,e)||(i=!0,e&&(i="!"!==e[e.length-1],e=e.replace(/!/g,""),t.push(e),n&&n[e]&&(i=n[e]))),i},Tt.prototype._appendLocaleToChain=function(t,e,n){var i,r=e.split("-");do{var s=r.join("-");i=this._appendItemToChain(t,s,n),r.splice(-1,1)}while(r.length&&!0===i);return i},Tt.prototype._appendBlockToChain=function(t,e,n){for(var i=!0,r=0;r0)s[o]=arguments[o+4];if(!t)return"";var a=m.apply(void 0,s);this._escapeParameterHtml&&(a.params=T(a.params));var c=a.locale||e,l=this._translate(n,c,this.fallbackLocale,t,i,"string",a.params);if(this._isFallbackRoot(l)){if(!this._root)throw Error("unexpected error");return(r=this._root).$t.apply(r,[t].concat(s))}return l=this._warnDefault(c,t,l,i,s,"string"),this._postTranslation&&null!==l&&void 0!==l&&(l=this._postTranslation(l,t)),l},Tt.prototype.t=function(t){var e,n=[],i=arguments.length-1;while(i-- >0)n[i]=arguments[i+1];return(e=this)._t.apply(e,[t,this.locale,this._getMessages(),null].concat(n))},Tt.prototype._i=function(t,e,n,i,r){var s=this._translate(n,e,this.fallbackLocale,t,i,"raw",r);if(this._isFallbackRoot(s)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(t,e,r)}return this._warnDefault(e,t,s,i,[r],"raw")},Tt.prototype.i=function(t,e,n){return t?(u(e)||(e=this.locale),this._i(t,e,this._getMessages(),null,n)):""},Tt.prototype._tc=function(t,e,n,i,r){var s,o=[],a=arguments.length-5;while(a-- >0)o[a]=arguments[a+5];if(!t)return"";void 0===r&&(r=1);var c={count:r,n:r},l=m.apply(void 0,o);return l.params=Object.assign(c,l.params),o=null===l.locale?[l.params]:[l.locale,l.params],this.fetchChoice((s=this)._t.apply(s,[t,e,n,i].concat(o)),r)},Tt.prototype.fetchChoice=function(t,e){if(!t||!u(t))return null;var n=t.split("|");return e=this.getChoiceIndex(e,n.length),n[e]?n[e].trim():t},Tt.prototype.tc=function(t,e){var n,i=[],r=arguments.length-2;while(r-- >0)i[r]=arguments[r+2];return(n=this)._tc.apply(n,[t,this.locale,this._getMessages(),null,e].concat(i))},Tt.prototype._te=function(t,e,n){var i=[],r=arguments.length-3;while(r-- >0)i[r]=arguments[r+3];var s=m.apply(void 0,i).locale||e;return this._exist(n[s],t)},Tt.prototype.te=function(t,e){return this._te(t,this.locale,this._getMessages(),e)},Tt.prototype.getLocaleMessage=function(t){return g(this._vm.messages[t]||{})},Tt.prototype.setLocaleMessage=function(t,e){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(t,this._warnHtmlInMessage,e),this._vm.$set(this._vm.messages,t,e)},Tt.prototype.mergeLocaleMessage=function(t,e){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(t,this._warnHtmlInMessage,e),this._vm.$set(this._vm.messages,t,x("undefined"!==typeof this._vm.messages[t]&&Object.keys(this._vm.messages[t]).length?Object.assign({},this._vm.messages[t]):{},e))},Tt.prototype.getDateTimeFormat=function(t){return g(this._vm.dateTimeFormats[t]||{})},Tt.prototype.setDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,e),this._clearDateTimeFormat(t,e)},Tt.prototype.mergeDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,x(this._vm.dateTimeFormats[t]||{},e)),this._clearDateTimeFormat(t,e)},Tt.prototype._clearDateTimeFormat=function(t,e){for(var n in e){var i=t+"__"+n;this._dateTimeFormatters.hasOwnProperty(i)&&delete this._dateTimeFormatters[i]}},Tt.prototype._localizeDateTime=function(t,e,n,i,r,s){for(var o=e,a=i[o],c=this._getLocaleChain(e,n),l=0;l0)e[n]=arguments[n+1];var i=this.locale,s=null,o=null;return 1===e.length?(u(e[0])?s=e[0]:c(e[0])&&(e[0].locale&&(i=e[0].locale),e[0].key&&(s=e[0].key)),o=Object.keys(e[0]).reduce(function(t,n){var i;return b(r,n)?Object.assign({},t,(i={},i[n]=e[0][n],i)):t},null)):2===e.length&&(u(e[0])&&(s=e[0]),u(e[1])&&(i=e[1])),this._d(t,i,s,o)},Tt.prototype.getNumberFormat=function(t){return g(this._vm.numberFormats[t]||{})},Tt.prototype.setNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,e),this._clearNumberFormat(t,e)},Tt.prototype.mergeNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,x(this._vm.numberFormats[t]||{},e)),this._clearNumberFormat(t,e)},Tt.prototype._clearNumberFormat=function(t,e){for(var n in e){var i=t+"__"+n;this._numberFormatters.hasOwnProperty(i)&&delete this._numberFormatters[i]}},Tt.prototype._getNumberFormatter=function(t,e,n,i,r,s){for(var o=e,a=i[o],c=this._getLocaleChain(e,n),l=0;l0)e[n]=arguments[n+1];var r=this.locale,s=null,o=null;return 1===e.length?u(e[0])?s=e[0]:c(e[0])&&(e[0].locale&&(r=e[0].locale),e[0].key&&(s=e[0].key),o=Object.keys(e[0]).reduce(function(t,n){var r;return b(i,n)?Object.assign({},t,(r={},r[n]=e[0][n],r)):t},null)):2===e.length&&(u(e[0])&&(s=e[0]),u(e[1])&&(r=e[1])),this._n(t,r,s,o)},Tt.prototype._ntp=function(t,e,n,i){if(!Tt.availabilities.numberFormat)return[];if(!n){var r=i?new Intl.NumberFormat(e,i):new Intl.NumberFormat(e);return r.formatToParts(t)}var s=this._getNumberFormatter(t,e,this.fallbackLocale,this._getNumberFormats(),n,i),o=s&&s.formatToParts(t);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(t,e,n,i)}return o||[]},Object.defineProperties(Tt.prototype,St),Object.defineProperty(Tt,"availabilities",{get:function(){if(!vt){var t="undefined"!==typeof Intl;vt={dateTimeFormat:t&&"undefined"!==typeof Intl.DateTimeFormat,numberFormat:t&&"undefined"!==typeof Intl.NumberFormat}}return vt}}),Tt.install=W,Tt.version="8.28.2",e["a"]=Tt},a963:function(t,e,n){},a9b5:function(t,e,n){},aa77:function(t,e,n){var i=n("5ca1"),r=n("be13"),s=n("79e5"),o=n("fdef"),a="["+o+"]",c="​…",l=RegExp("^"+a+a+"*"),u=RegExp(a+a+"*$"),h=function(t,e,n){var r={},a=s(function(){return!!o[t]()||c[t]()!=c}),l=r[t]=a?e(d):o[t];n&&(r[n]=l),i(i.P+i.F*a,"String",r)},d=h.trim=function(t,e){return t=String(r(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(u,"")),t};t.exports=h},aab2:function(t,e,n){},aae3:function(t,e,n){var i=n("d3f4"),r=n("2d95"),s=n("2b4c")("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[s])?!!e:"RegExp"==r(t))}},aaf2:function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration function e(t,e,n,i){var r={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[t+" सॅकंडांनी",t+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[t+" मिणटांनी",t+" मिणटां"],h:["एका वरान","एक वर"],hh:[t+" वरांनी",t+" वरां"],d:["एका दिसान","एक दीस"],dd:[t+" दिसांनी",t+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[t+" म्हयन्यानी",t+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[t+" वर्सांनी",t+" वर्सां"]};return i?r[n][0]:r[n][1]}var n=t.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"},calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(t,e){switch(e){case"D":return t+"वेर";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return t}},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(t,e){return 12===t&&(t=0),"राती"===e?t<4?t:t+12:"सकाळीं"===e?t:"दनपारां"===e?t>12?t:t+12:"सांजे"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"राती":t<12?"सकाळीं":t<16?"दनपारां":t<20?"सांजे":"राती"}});return n})},ab35:function(t,e,n){"use strict";var i=n("1300"),r=function(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale};r.prototype.clone=function(){return new r({opacity:this.getOpacity(),scale:this.getScale(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView()})},r.prototype.getOpacity=function(){return this.opacity_},r.prototype.getRotateWithView=function(){return this.rotateWithView_},r.prototype.getRotation=function(){return this.rotation_},r.prototype.getScale=function(){return this.scale_},r.prototype.getSnapToPixel=function(){return!1},r.prototype.getAnchor=function(){return Object(i["b"])()},r.prototype.getImage=function(t){return Object(i["b"])()},r.prototype.getHitDetectionImage=function(t){return Object(i["b"])()},r.prototype.getImageState=function(){return Object(i["b"])()},r.prototype.getImageSize=function(){return Object(i["b"])()},r.prototype.getHitDetectionImageSize=function(){return Object(i["b"])()},r.prototype.getOrigin=function(){return Object(i["b"])()},r.prototype.getSize=function(){return Object(i["b"])()},r.prototype.setOpacity=function(t){this.opacity_=t},r.prototype.setRotateWithView=function(t){this.rotateWithView_=t},r.prototype.setRotation=function(t){this.rotation_=t},r.prototype.setScale=function(t){this.scale_=t},r.prototype.setSnapToPixel=function(t){},r.prototype.listenImageChange=function(t,e){return Object(i["b"])()},r.prototype.load=function(){Object(i["b"])()},r.prototype.unlistenImageChange=function(t,e){Object(i["b"])()},e["a"]=r},ab98:function(t,e,n){},aba2:function(t,e,n){var i=n("e53d"),r=n("4178").set,s=i.MutationObserver||i.WebKitMutationObserver,o=i.process,a=i.Promise,c="process"==n("6b4c")(o);t.exports=function(){var t,e,n,l=function(){var i,r;c&&(i=o.domain)&&i.exit();while(t){r=t.fn,t=t.next;try{r()}catch(i){throw t?n():e=void 0,i}}e=void 0,i&&i.enter()};if(c)n=function(){o.nextTick(l)};else if(!s||i.navigator&&i.navigator.standalone)if(a&&a.resolve){var u=a.resolve(void 0);n=function(){u.then(l)}}else n=function(){r.call(i,l)};else{var h=!0,d=document.createTextNode("");new s(l).observe(d,{characterData:!0}),n=function(){d.data=h=!h}}return function(i){var r={fn:i,next:void 0};e&&(e.next=r),t||(t=r,n()),e=r}}},abb7:function(t,e,n){"use strict";function i(t,e,n,i){for(var r=0,s=n.length;r=n)break;const i=t.charAt(e);if(e++,o["a"].isDigit(i)){const t=i-"0";r.selfMultiply(h.TEN),r.selfAdd(t),a++}else{if("."!==i){if("e"===i||"E"===i){const n=t.substring(e);try{l=s["a"].parseInt(n)}catch(e){throw e instanceof NumberFormatException?new NumberFormatException("Invalid exponent "+n+" in string "+t):e}break}throw new NumberFormatException("Unexpected character '"+i+"' at position "+e+" in string "+t)}c=a,u=!0}}let d=r;u||(c=a);const f=a-c-l;if(0===f)d=r;else if(f>0){const t=h.TEN.pow(f);d=r.divide(t)}else if(f<0){const t=h.TEN.pow(-f);d=r.multiply(t)}return i?d.negate():d}static createNaN(){return new h(r["a"].NaN,r["a"].NaN)}static copy(t){return new h(t)}static magnitude(t){const e=Math.abs(t),n=Math.log(e)/Math.log(10);let i=Math.trunc(Math.floor(n));const r=Math.pow(10,i);return 10*r<=e&&(i+=1),i}static stringOfChar(t,e){const n=new i["a"];for(let i=0;i9?(r=!0,s="9"):s="0"+e,a.append(s),n=n.subtract(h.valueOf(e)).multiply(h.TEN),r&&n.selfAdd(h.TEN);let l=!0;const u=h.magnitude(n._hi);if(u<0&&Math.abs(u)>=c-i&&(l=!1),!l)break}return e[0]=r,a.toString()}sqr(){return this.multiply(this)}getSpecialNumberString(){return this.isZero()?"0.0":this.isNaN()?"NaN ":null}setValue(){if(arguments[0]instanceof h){const t=arguments[0];return this.init(t),this}if("number"===typeof arguments[0]){const t=arguments[0];return this.init(t),this}}multiply(){if(arguments[0]instanceof h){const t=arguments[0];return t.isNaN()?h.createNaN():h.copy(this).selfMultiply(t)}if("number"===typeof arguments[0]){const t=arguments[0];return r["a"].isNaN(t)?h.createNaN():h.copy(this).selfMultiply(t,0)}}isNaN(){return r["a"].isNaN(this._hi)}reciprocal(){let t=null,e=null,n=null,i=null,r=null,s=null,o=null,a=null;r=1/this._hi,s=h.SPLIT*r,t=s-r,a=h.SPLIT*this._hi,t=s-t,e=r-t,n=a-this._hi,o=r*this._hi,n=a-n,i=this._hi-n,a=t*n-o+t*i+e*n+e*i,s=(1-o-a-r*this._lo)/this._hi;const c=r+s,l=r-c+s;return new h(c,l)}doubleValue(){return this._hi+this._lo}subtract(){if(arguments[0]instanceof h){const t=arguments[0];return this.add(t.negate())}if("number"===typeof arguments[0]){const t=arguments[0];return this.add(-t)}}equals(){if(1===arguments.length&&arguments[0]instanceof h){const t=arguments[0];return this._hi===t._hi&&this._lo===t._lo}}isZero(){return 0===this._hi&&0===this._lo}selfSubtract(){if(arguments[0]instanceof h){const t=arguments[0];return this.isNaN()?this:this.selfAdd(-t._hi,-t._lo)}if("number"===typeof arguments[0]){const t=arguments[0];return this.isNaN()?this:this.selfAdd(-t,0)}}min(t){return this.le(t)?this:t}selfDivide(){if(1===arguments.length){if(arguments[0]instanceof h){const t=arguments[0];return this.selfDivide(t._hi,t._lo)}if("number"===typeof arguments[0]){const t=arguments[0];return this.selfDivide(t,0)}}else if(2===arguments.length){const t=arguments[0],e=arguments[1];let n=null,i=null,r=null,s=null,o=null,a=null,c=null,l=null;return o=this._hi/t,a=h.SPLIT*o,n=a-o,l=h.SPLIT*t,n=a-n,i=o-n,r=l-t,c=o*t,r=l-r,s=t-r,l=n*r-c+n*s+i*r+i*s,a=(this._hi-c-l+this._lo-o*e)/t,l=o+a,this._hi=l,this._lo=o-l+a,this}}dump(){return"DD<"+this._hi+", "+this._lo+">"}divide(){if(arguments[0]instanceof h){const t=arguments[0];let e=null,n=null,i=null,r=null,s=null,o=null,a=null,c=null;s=this._hi/t._hi,o=h.SPLIT*s,e=o-s,c=h.SPLIT*t._hi,e=o-e,n=s-e,i=c-t._hi,a=s*t._hi,i=c-i,r=t._hi-i,c=e*i-a+e*r+n*i+n*r,o=(this._hi-a-c+this._lo-s*t._lo)/t._hi,c=s+o;const l=c,u=s-c+o;return new h(l,u)}if("number"===typeof arguments[0]){const t=arguments[0];return r["a"].isNaN(t)?h.createNaN():h.copy(this).selfDivide(t,0)}}ge(t){return this._hi>t._hi||this._hi===t._hi&&this._lo>=t._lo}pow(t){if(0===t)return h.valueOf(1);let e=new h(this),n=h.valueOf(1),i=Math.abs(t);if(i>1)while(i>0)i%2===1&&n.selfMultiply(e),i/=2,i>0&&(e=e.sqr());else n=e;return t<0?n.reciprocal():n}ceil(){if(this.isNaN())return h.NaN;const t=Math.ceil(this._hi);let e=0;return t===this._hi&&(e=Math.ceil(this._lo)),new h(t,e)}compareTo(t){const e=t;return this._hie._hi?1:this._loe._lo?1:0}rint(){if(this.isNaN())return this;const t=this.add(.5);return t.floor()}max(t){return this.ge(t)?this:t}sqrt(){if(this.isZero())return h.valueOf(0);if(this.isNegative())return h.NaN;const t=1/Math.sqrt(this._hi),e=this._hi*t,n=h.valueOf(e),i=this.subtract(n.sqr()),r=i._hi*(.5*t);return n.add(r)}selfAdd(){if(1===arguments.length){if(arguments[0]instanceof h){const t=arguments[0];return this.selfAdd(t._hi,t._lo)}if("number"===typeof arguments[0]){const t=arguments[0];let e=null,n=null,i=null,r=null,s=null,o=null;return i=this._hi+t,s=i-this._hi,r=i-s,r=t-s+(this._hi-r),o=r+this._lo,e=i+o,n=o+(i-e),this._hi=e+n,this._lo=n+(e-this._hi),this}}else if(2===arguments.length){const t=arguments[0],e=arguments[1];let n=null,i=null,r=null,s=null,o=null,a=null,c=null,l=null;o=this._hi+t,r=this._lo+e,c=o-this._hi,l=r-this._lo,a=o-c,s=r-l,a=t-c+(this._hi-a),s=e-l+(this._lo-s),c=a+r,n=o+c,i=c+(o-n),c=s+i;const u=n+c,h=c+(n-u);return this._hi=u,this._lo=h,this}}selfMultiply(){if(1===arguments.length){if(arguments[0]instanceof h){const t=arguments[0];return this.selfMultiply(t._hi,t._lo)}if("number"===typeof arguments[0]){const t=arguments[0];return this.selfMultiply(t,0)}}else if(2===arguments.length){const t=arguments[0],e=arguments[1];let n=null,i=null,r=null,s=null,o=null,a=null;o=h.SPLIT*this._hi,n=o-this._hi,a=h.SPLIT*t,n=o-n,i=this._hi-n,r=a-t,o=this._hi*t,r=a-r,s=t-r,a=n*r-o+n*s+i*r+i*s+(this._hi*e+this._lo*t);const c=o+a;n=o-c;const l=a+n;return this._hi=c,this._lo=l,this}}selfSqr(){return this.selfMultiply(this)}floor(){if(this.isNaN())return h.NaN;const t=Math.floor(this._hi);let e=0;return t===this._hi&&(e=Math.floor(this._lo)),new h(t,e)}negate(){return this.isNaN()?this:new h(-this._hi,-this._lo)}clone(){try{return null}catch(t){if(t instanceof CloneNotSupportedException)return null;throw t}}intValue(){return Math.trunc(this._hi)}toString(){const t=h.magnitude(this._hi);return t>=-3&&t<=20?this.toStandardNotation():this.toSciNotation()}toStandardNotation(){const t=this.getSpecialNumberString();if(null!==t)return t;const e=new Array(1).fill(null),n=this.extractSignificantDigits(!0,e),i=e[0]+1;let r=n;if("."===n.charAt(0))r="0"+n;else if(i<0)r="0."+h.stringOfChar("0",-i)+n;else if(-1===n.indexOf(".")){const t=i-n.length,e=h.stringOfChar("0",t);r=n+e+".0"}return this.isNegative()?"-"+r:r}toSciNotation(){if(this.isZero())return h.SCI_NOT_ZERO;const t=this.getSpecialNumberString();if(null!==t)return t;const e=new Array(1).fill(null),n=this.extractSignificantDigits(!1,e),i=h.SCI_NOT_EXPONENT_CHAR+e[0];if("0"===n.charAt(0))throw new u["a"]("Found leading zero: "+n);let r="";n.length>1&&(r=n.substring(1));const s=n.charAt(0)+"."+r;return this.isNegative()?"-"+s+i:s+i}abs(){return this.isNaN()?h.NaN:this.isNegative()?this.negate():new h(this)}isPositive(){return this._hi>0||0===this._hi&&this._lo>0}lt(t){return this._hit._hi||this._hi===t._hi&&this._lo>t._lo}isNegative(){return this._hi<0||0===this._hi&&this._lo<0}trunc(){return this.isNaN()?h.NaN:this.isPositive()?this.floor():this.ceil()}signum(){return this._hi>0?1:this._hi<0?-1:this._lo>0?1:this._lo<0?-1:0}get interfaces_(){return[l["a"],a["a"],c["a"]]}}h.PI=new h(3.141592653589793,1.2246467991473532e-16),h.TWO_PI=new h(6.283185307179586,2.4492935982947064e-16),h.PI_2=new h(1.5707963267948966,6.123233995736766e-17),h.E=new h(2.718281828459045,1.4456468917292502e-16),h.NaN=new h(r["a"].NaN,r["a"].NaN),h.EPS=1.23259516440783e-32,h.SPLIT=134217729,h.MAX_PRINT_DIGITS=32,h.TEN=h.valueOf(10),h.ONE=h.valueOf(1),h.SCI_NOT_EXPONENT_CHAR="E",h.SCI_NOT_ZERO="0.0E0"},ac6a:function(t,e,n){for(var i=n("cadf"),r=n("0d58"),s=n("2aba"),o=n("7726"),a=n("32e9"),c=n("84f2"),l=n("2b4c"),u=l("iterator"),h=l("toStringTag"),d=c.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=r(f),_=0;_e.x?1:this.ye.y?1:0}getX(){return this.x}copy(){return new p(this)}toString(){return"("+this.x+", "+this.y+", "+this.getZ()+")"}distance3D(t){const e=this.x-t.x,n=this.y-t.y,i=this.getZ()-t.getZ();return Math.sqrt(e*e+n*n+i*i)}getY(){return this.y}getM(){return s["a"].NaN}setOrdinate(t,e){switch(t){case p.X:this.x=e;break;case p.Y:this.y=e;break;case p.Z:this.setZ(e);break;default:throw new r["a"]("Invalid ordinate index: "+t)}}getZ(){return this.z}getOrdinate(t){switch(t){case p.X:return this.x;case p.Y:return this.y;case p.Z:return this.getZ()}throw new r["a"]("Invalid ordinate index: "+t)}equals(t){return t instanceof p&&this.equals2D(t)}equalInZ(t,e){return i.equalsWithTolerance(this.getZ(),t.getZ(),e)}setZ(t){this.z=t}clone(){try{const t=null;return t}catch(t){if(t instanceof CloneNotSupportedException)return c["a"].shouldNeverReachHere("this shouldn't happen because this class is Cloneable"),null;throw t}}setY(t){this.y=t}distance(t){const e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)}hashCode(){let t=17;return t=37*t+p.hashCode(this.x),t=37*t+p.hashCode(this.y),t}setCoordinate(t){this.x=t.x,this.y=t.y,this.z=t.getZ()}get interfaces_(){return[o["a"],l["a"],a["a"]]}}class _{constructor(){_.constructor_.apply(this,arguments)}static constructor_(){if(this._dimensionsToTest=2,0===arguments.length)_.constructor_.call(this,2);else if(1===arguments.length){const t=arguments[0];if(2!==t&&3!==t)throw new r["a"]("only 2 or 3 dimensions may be specified");this._dimensionsToTest=t}}static compare(t,e){return te?1:s["a"].isNaN(t)?s["a"].isNaN(e)?0:-1:s["a"].isNaN(e)?1:0}compare(t,e){const n=_.compare(t.x,e.x);if(0!==n)return n;const i=_.compare(t.y,e.y);if(0!==i)return i;if(this._dimensionsToTest<=2)return 0;const r=_.compare(t.getZ(),e.getZ());return r}get interfaces_(){return[u["a"]]}}p.DimensionalComparator=_,p.NULL_ORDINATE=s["a"].NaN,p.X=0,p.Y=1,p.Z=2,p.M=3},ada0:function(t,e,n){"use strict";var i=n("3fb5"),r=n("97a2");function s(){r.call(this)}i(s,r),s.prototype.removeAllListeners=function(t){t?delete this._listeners[t]:this._listeners={}},s.prototype.once=function(t,e){var n=this,i=!1;function r(){n.removeListener(t,r),i||(i=!0,e.apply(this,arguments))}this.on(t,r)},s.prototype.emit=function(){var t=arguments[0],e=this._listeners[t];if(e){for(var n=arguments.length,i=new Array(n-1),r=1;r * @license MIT */ -var i=n("1fb5"),r=n("9152"),s=n("e3db");function o(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(t,e){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function v(t){return+t!=t&&(t=0),l.alloc(+t)}function b(t,e){if(l.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(t).length;default:if(i)return K(t).length;e=(""+e).toLowerCase(),i=!0}}function M(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return P(this,e,n);case"utf8":case"utf-8":return D(this,e,n);case"ascii":return N(this,e,n);case"latin1":case"binary":return Y(this,e,n);case"base64":return I(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function w(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function x(t,e,n,i,r){if(0===t.length)return-1;if("string"===typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"===typeof e&&(e=l.from(e,i)),l.isBuffer(e))return 0===e.length?-1:L(t,e,n,i,r);if("number"===typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):L(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function L(t,e,n,i,r){var s,o=1,a=t.length,c=e.length;if(void 0!==i&&(i=String(i).toLowerCase(),"ucs2"===i||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;o=2,a/=2,c/=2,n/=2}function l(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(r){var u=-1;for(s=n;sa&&(n=a-c),s=n;s>=0;s--){for(var h=!0,d=0;dr&&(i=r)):i=r;var s=e.length;if(s%2!==0)throw new TypeError("Invalid hex string");i>s/2&&(i=s/2);for(var o=0;o239?4:l>223?3:l>191?2:1;if(r+h<=n)switch(h){case 1:l<128&&(u=l);break;case 2:s=t[r+1],128===(192&s)&&(c=(31&l)<<6|63&s,c>127&&(u=c));break;case 3:s=t[r+1],o=t[r+2],128===(192&s)&&128===(192&o)&&(c=(15&l)<<12|(63&s)<<6|63&o,c>2047&&(c<55296||c>57343)&&(u=c));break;case 4:s=t[r+1],o=t[r+2],a=t[r+3],128===(192&s)&&128===(192&o)&&128===(192&a)&&(c=(15&l)<<18|(63&s)<<12|(63&o)<<6|63&a,c>65535&&c<1114112&&(u=c))}null===u?(u=65533,h=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=h}return A(i)}e.Buffer=l,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:o(),e.kMaxLength=a(),l.poolSize=8192,l._augment=function(t){return t.__proto__=l.prototype,t},l.from=function(t,e,n){return u(null,t,e,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(t,e,n){return d(null,t,e,n)},l.allocUnsafe=function(t){return f(null,t)},l.allocUnsafeSlow=function(t){return f(null,t)},l.isBuffer=function(t){return!(null==t||!t._isBuffer)},l.compare=function(t,e){if(!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,i=e.length,r=0,s=Math.min(n,i);r0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},l.prototype.compare=function(t,e,n,i,r){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,r>>>=0,this===t)return 0;for(var s=r-i,o=n-e,a=Math.min(s,o),c=this.slice(i,r),u=t.slice(e,n),h=0;hr)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var s=!1;;)switch(i){case"hex":return E(this,t,e,n);case"utf8":case"utf-8":return T(this,t,e,n);case"ascii":return S(this,t,e,n);case"latin1":case"binary":return O(this,t,e,n);case"base64":return k(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e,n);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var R=4096;function A(t){var e=t.length;if(e<=R)return String.fromCharCode.apply(String,t);var n="",i=0;while(ii)&&(n=i);for(var r="",s=e;sn)throw new RangeError("Trying to access beyond buffer length")}function H(t,e,n,i,r,s){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||et.length)throw new RangeError("Index out of range")}function q(t,e,n,i){e<0&&(e=65535+e+1);for(var r=0,s=Math.min(t.length-n,2);r>>8*(i?r:1-r)}function G(t,e,n,i){e<0&&(e=4294967295+e+1);for(var r=0,s=Math.min(t.length-n,4);r>>8*(i?r:3-r)&255}function z(t,e,n,i,r,s){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function B(t,e,n,i,s){return s||z(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),r.write(t,e,n,i,23,4),n+4}function U(t,e,n,i,s){return s||z(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),r.write(t,e,n,i,52,8),n+8}l.prototype.slice=function(t,e){var n,i=this.length;if(t=~~t,e=void 0===e?i:~~e,t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),e0&&(r*=256))i+=this[t+--e]*r;return i},l.prototype.readUInt8=function(t,e){return e||F(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return e||F(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return e||F(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,e){return e||F(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUInt32BE=function(t,e){return e||F(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);var i=this[t],r=1,s=0;while(++s=r&&(i-=Math.pow(2,8*e)),i},l.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);var i=e,r=1,s=this[t+--i];while(i>0&&(r*=256))s+=this[t+--i]*r;return r*=128,s>=r&&(s-=Math.pow(2,8*e)),s},l.prototype.readInt8=function(t,e){return e||F(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){e||F(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(t,e){e||F(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(t,e){return e||F(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||F(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||F(t,4,this.length),r.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||F(t,4,this.length),r.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||F(t,8,this.length),r.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||F(t,8,this.length),r.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,n,i){if(t=+t,e|=0,n|=0,!i){var r=Math.pow(2,8*n)-1;H(this,t,e,n,r,0)}var s=1,o=0;this[e]=255&t;while(++o=0&&(o*=256))this[e+s]=t/o&255;return e+n},l.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,1,255,0),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},l.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):q(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):q(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):G(this,t,e,!0),e+4},l.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):G(this,t,e,!1),e+4},l.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);H(this,t,e,n,r-1,-r)}var s=0,o=1,a=0;this[e]=255&t;while(++s>0)-a&255;return e+n},l.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);H(this,t,e,n,r-1,-r)}var s=n-1,o=1,a=0;this[e+s]=255&t;while(--s>=0&&(o*=256))t<0&&0===a&&0!==this[e+s+1]&&(a=1),this[e+s]=(t/o>>0)-a&255;return e+n},l.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):q(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):q(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):G(this,t,e,!0),e+4},l.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):G(this,t,e,!1),e+4},l.prototype.writeFloatLE=function(t,e,n){return B(this,t,e,!0,n)},l.prototype.writeFloatBE=function(t,e,n){return B(this,t,e,!1,n)},l.prototype.writeDoubleLE=function(t,e,n){return U(this,t,e,!0,n)},l.prototype.writeDoubleBE=function(t,e,n){return U(this,t,e,!1,n)},l.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e=0;--r)t[r+e]=this[r+n];else if(s<1e3||!l.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(s=e;s55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&s.push(239,191,189);continue}if(o+1===i){(e-=3)>-1&&s.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&s.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&s.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;s.push(n)}else if(n<2048){if((e-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return s}function Z(t){for(var e=[],n=0;n>8,r=n%256,s.push(r),s.push(i)}return s}function Q(t){return i.toByteArray($(t))}function tt(t,e,n,i){for(var r=0;r=e.length||r>=t.length)break;e[r+n]=t[r]}return r}function et(t){return t!==t}}).call(this,n("c8ba"))},b70a:function(t,e,n){"use strict";n("c5f6");var i={props:{color:String,size:{type:[Number,String],default:"1em"}},computed:{classes:function(){if(this.color)return"text-".concat(this.color)}}},r={name:"QSpinnerMat",mixins:[i],render:function(t){return t("svg",{staticClass:"q-spinner q-spinner-mat",class:this.classes,attrs:{width:this.size,height:this.size,viewBox:"25 25 50 50"}},[t("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-miterlimit":"10"}})])}};e["a"]={mixins:[r],name:"QSpinner"}},b739:function(t,e,n){"use strict";var i=n("0af5"),r=n("7fc9"),s=n("256f"),o=10,a=.25,c=function(t,e,n,r,a){this.sourceProj_=t,this.targetProj_=e;var c={},l=Object(s["i"])(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){var e=t[0]+"/"+t[1];return c[e]||(c[e]=l(t)),c[e]},this.maxSourceExtent_=r,this.errorThresholdSquared_=a*a,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!r&&!!this.sourceProj_.getExtent()&&Object(i["E"])(r)==Object(i["E"])(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Object(i["E"])(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Object(i["E"])(this.targetProj_.getExtent()):null;var u=Object(i["C"])(n),h=Object(i["D"])(n),d=Object(i["w"])(n),f=Object(i["v"])(n),p=this.transformInv_(u),_=this.transformInv_(h),m=this.transformInv_(d),g=this.transformInv_(f);if(this.addQuad_(u,h,d,f,p,_,m,g,o),this.wrapsXInSource_){var y=1/0;this.triangles_.forEach(function(t,e,n){y=Math.min(y,t.source[0][0],t.source[1][0],t.source[2][0])}),this.triangles_.forEach(function(t){if(Math.max(t.source[0][0],t.source[1][0],t.source[2][0])-y>this.sourceWorldWidth_/2){var e=[[t.source[0][0],t.source[0][1]],[t.source[1][0],t.source[1][1]],[t.source[2][0],t.source[2][1]]];e[0][0]-y>this.sourceWorldWidth_/2&&(e[0][0]-=this.sourceWorldWidth_),e[1][0]-y>this.sourceWorldWidth_/2&&(e[1][0]-=this.sourceWorldWidth_),e[2][0]-y>this.sourceWorldWidth_/2&&(e[2][0]-=this.sourceWorldWidth_);var n=Math.min(e[0][0],e[1][0],e[2][0]),i=Math.max(e[0][0],e[1][0],e[2][0]);i-n.5&&f<1,m=!1;if(h>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var g=Object(i["b"])([t,e,n,s]),y=Object(i["E"])(g)/this.targetWorldWidth_;m=y>a||m}!_&&this.sourceProj_.isGlobal()&&f&&(m=f>a||m)}if(m||!this.maxSourceExtent_||Object(i["F"])(d,this.maxSourceExtent_)){if(!m&&(!isFinite(o[0])||!isFinite(o[1])||!isFinite(c[0])||!isFinite(c[1])||!isFinite(l[0])||!isFinite(l[1])||!isFinite(u[0])||!isFinite(u[1]))){if(!(h>0))return;m=!0}if(h>0){if(!m){var v,b=[(t[0]+n[0])/2,(t[1]+n[1])/2],M=this.transformInv_(b);if(_){var w=(Object(r["d"])(o[0],p)+Object(r["d"])(l[0],p))/2;v=w-Object(r["d"])(M[0],p)}else v=(o[0]+l[0])/2-M[0];var x=(o[1]+l[1])/2-M[1],L=v*v+x*x;m=L>this.errorThresholdSquared_}if(m){if(Math.abs(t[0]-n[0])<=Math.abs(t[1]-n[1])){var E=[(e[0]+n[0])/2,(e[1]+n[1])/2],T=this.transformInv_(E),S=[(s[0]+t[0])/2,(s[1]+t[1])/2],O=this.transformInv_(S);this.addQuad_(t,e,E,S,o,c,T,O,h-1),this.addQuad_(S,E,n,s,O,T,l,u,h-1)}else{var k=[(t[0]+e[0])/2,(t[1]+e[1])/2],C=this.transformInv_(k),I=[(n[0]+s[0])/2,(n[1]+s[1])/2],D=this.transformInv_(I);this.addQuad_(t,k,I,s,o,C,D,u,h-1),this.addQuad_(k,e,n,I,C,c,l,D,h-1)}return}}if(_){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}this.addTriangle_(t,n,s,o,l,u),this.addTriangle_(t,e,n,o,c,l)}},c.prototype.calculateSourceExtent=function(){var t=Object(i["j"])();return this.triangles_.forEach(function(e,n,r){var s=e.source;Object(i["r"])(t,s[0]),Object(i["r"])(t,s[1]),Object(i["r"])(t,s[2])}),t},c.prototype.getTriangles=function(){return this.triangles_},e["a"]=c},b7e9:function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; +var i=n("1fb5"),r=n("9152"),s=n("2335");function o(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(t,e){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function v(t){return+t!=t&&(t=0),l.alloc(+t)}function b(t,e){if(l.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(t).length;default:if(i)return K(t).length;e=(""+e).toLowerCase(),i=!0}}function M(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return P(this,e,n);case"utf8":case"utf-8":return D(this,e,n);case"ascii":return N(this,e,n);case"latin1":case"binary":return Y(this,e,n);case"base64":return I(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function w(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function x(t,e,n,i,r){if(0===t.length)return-1;if("string"===typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"===typeof e&&(e=l.from(e,i)),l.isBuffer(e))return 0===e.length?-1:L(t,e,n,i,r);if("number"===typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):L(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function L(t,e,n,i,r){var s,o=1,a=t.length,c=e.length;if(void 0!==i&&(i=String(i).toLowerCase(),"ucs2"===i||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;o=2,a/=2,c/=2,n/=2}function l(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(r){var u=-1;for(s=n;sa&&(n=a-c),s=n;s>=0;s--){for(var h=!0,d=0;dr&&(i=r)):i=r;var s=e.length;if(s%2!==0)throw new TypeError("Invalid hex string");i>s/2&&(i=s/2);for(var o=0;o239?4:l>223?3:l>191?2:1;if(r+h<=n)switch(h){case 1:l<128&&(u=l);break;case 2:s=t[r+1],128===(192&s)&&(c=(31&l)<<6|63&s,c>127&&(u=c));break;case 3:s=t[r+1],o=t[r+2],128===(192&s)&&128===(192&o)&&(c=(15&l)<<12|(63&s)<<6|63&o,c>2047&&(c<55296||c>57343)&&(u=c));break;case 4:s=t[r+1],o=t[r+2],a=t[r+3],128===(192&s)&&128===(192&o)&&128===(192&a)&&(c=(15&l)<<18|(63&s)<<12|(63&o)<<6|63&a,c>65535&&c<1114112&&(u=c))}null===u?(u=65533,h=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=h}return A(i)}e.Buffer=l,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:o(),e.kMaxLength=a(),l.poolSize=8192,l._augment=function(t){return t.__proto__=l.prototype,t},l.from=function(t,e,n){return u(null,t,e,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(t,e,n){return d(null,t,e,n)},l.allocUnsafe=function(t){return f(null,t)},l.allocUnsafeSlow=function(t){return f(null,t)},l.isBuffer=function(t){return!(null==t||!t._isBuffer)},l.compare=function(t,e){if(!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,i=e.length,r=0,s=Math.min(n,i);r0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},l.prototype.compare=function(t,e,n,i,r){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,r>>>=0,this===t)return 0;for(var s=r-i,o=n-e,a=Math.min(s,o),c=this.slice(i,r),u=t.slice(e,n),h=0;hr)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var s=!1;;)switch(i){case"hex":return E(this,t,e,n);case"utf8":case"utf-8":return T(this,t,e,n);case"ascii":return S(this,t,e,n);case"latin1":case"binary":return O(this,t,e,n);case"base64":return k(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e,n);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var R=4096;function A(t){var e=t.length;if(e<=R)return String.fromCharCode.apply(String,t);var n="",i=0;while(ii)&&(n=i);for(var r="",s=e;sn)throw new RangeError("Trying to access beyond buffer length")}function H(t,e,n,i,r,s){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||et.length)throw new RangeError("Index out of range")}function G(t,e,n,i){e<0&&(e=65535+e+1);for(var r=0,s=Math.min(t.length-n,2);r>>8*(i?r:1-r)}function q(t,e,n,i){e<0&&(e=4294967295+e+1);for(var r=0,s=Math.min(t.length-n,4);r>>8*(i?r:3-r)&255}function z(t,e,n,i,r,s){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function B(t,e,n,i,s){return s||z(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),r.write(t,e,n,i,23,4),n+4}function U(t,e,n,i,s){return s||z(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),r.write(t,e,n,i,52,8),n+8}l.prototype.slice=function(t,e){var n,i=this.length;if(t=~~t,e=void 0===e?i:~~e,t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),e0&&(r*=256))i+=this[t+--e]*r;return i},l.prototype.readUInt8=function(t,e){return e||F(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return e||F(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return e||F(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,e){return e||F(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUInt32BE=function(t,e){return e||F(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);var i=this[t],r=1,s=0;while(++s=r&&(i-=Math.pow(2,8*e)),i},l.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);var i=e,r=1,s=this[t+--i];while(i>0&&(r*=256))s+=this[t+--i]*r;return r*=128,s>=r&&(s-=Math.pow(2,8*e)),s},l.prototype.readInt8=function(t,e){return e||F(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){e||F(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(t,e){e||F(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(t,e){return e||F(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||F(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||F(t,4,this.length),r.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||F(t,4,this.length),r.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||F(t,8,this.length),r.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||F(t,8,this.length),r.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,n,i){if(t=+t,e|=0,n|=0,!i){var r=Math.pow(2,8*n)-1;H(this,t,e,n,r,0)}var s=1,o=0;this[e]=255&t;while(++o=0&&(o*=256))this[e+s]=t/o&255;return e+n},l.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,1,255,0),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},l.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):G(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):G(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):q(this,t,e,!0),e+4},l.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):q(this,t,e,!1),e+4},l.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);H(this,t,e,n,r-1,-r)}var s=0,o=1,a=0;this[e]=255&t;while(++s>0)-a&255;return e+n},l.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);H(this,t,e,n,r-1,-r)}var s=n-1,o=1,a=0;this[e+s]=255&t;while(--s>=0&&(o*=256))t<0&&0===a&&0!==this[e+s+1]&&(a=1),this[e+s]=(t/o>>0)-a&255;return e+n},l.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):G(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):G(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):q(this,t,e,!0),e+4},l.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):q(this,t,e,!1),e+4},l.prototype.writeFloatLE=function(t,e,n){return B(this,t,e,!0,n)},l.prototype.writeFloatBE=function(t,e,n){return B(this,t,e,!1,n)},l.prototype.writeDoubleLE=function(t,e,n){return U(this,t,e,!0,n)},l.prototype.writeDoubleBE=function(t,e,n){return U(this,t,e,!1,n)},l.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e=0;--r)t[r+e]=this[r+n];else if(s<1e3||!l.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(s=e;s55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&s.push(239,191,189);continue}if(o+1===i){(e-=3)>-1&&s.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&s.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&s.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;s.push(n)}else if(n<2048){if((e-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return s}function J(t){for(var e=[],n=0;n>8,r=n%256,s.push(r),s.push(i)}return s}function Q(t){return i.toByteArray($(t))}function tt(t,e,n,i){for(var r=0;r=e.length||r>=t.length)break;e[r+n]=t[r]}return r}function et(t){return t!==t}}).call(this,n("c8ba"))},b70a:function(t,e,n){"use strict";n("c5f6");var i={props:{color:String,size:{type:[Number,String],default:"1em"}},computed:{classes:function(){if(this.color)return"text-".concat(this.color)}}},r={name:"QSpinnerMat",mixins:[i],render:function(t){return t("svg",{staticClass:"q-spinner q-spinner-mat",class:this.classes,attrs:{width:this.size,height:this.size,viewBox:"25 25 50 50"}},[t("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-miterlimit":"10"}})])}};e["a"]={mixins:[r],name:"QSpinner"}},b739:function(t,e,n){"use strict";var i=n("0af5"),r=n("7fc9"),s=n("256f"),o=10,a=.25,c=function(t,e,n,r,a){this.sourceProj_=t,this.targetProj_=e;var c={},l=Object(s["i"])(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){var e=t[0]+"/"+t[1];return c[e]||(c[e]=l(t)),c[e]},this.maxSourceExtent_=r,this.errorThresholdSquared_=a*a,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!r&&!!this.sourceProj_.getExtent()&&Object(i["E"])(r)==Object(i["E"])(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Object(i["E"])(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Object(i["E"])(this.targetProj_.getExtent()):null;var u=Object(i["C"])(n),h=Object(i["D"])(n),d=Object(i["w"])(n),f=Object(i["v"])(n),p=this.transformInv_(u),_=this.transformInv_(h),m=this.transformInv_(d),g=this.transformInv_(f);if(this.addQuad_(u,h,d,f,p,_,m,g,o),this.wrapsXInSource_){var y=1/0;this.triangles_.forEach(function(t,e,n){y=Math.min(y,t.source[0][0],t.source[1][0],t.source[2][0])}),this.triangles_.forEach(function(t){if(Math.max(t.source[0][0],t.source[1][0],t.source[2][0])-y>this.sourceWorldWidth_/2){var e=[[t.source[0][0],t.source[0][1]],[t.source[1][0],t.source[1][1]],[t.source[2][0],t.source[2][1]]];e[0][0]-y>this.sourceWorldWidth_/2&&(e[0][0]-=this.sourceWorldWidth_),e[1][0]-y>this.sourceWorldWidth_/2&&(e[1][0]-=this.sourceWorldWidth_),e[2][0]-y>this.sourceWorldWidth_/2&&(e[2][0]-=this.sourceWorldWidth_);var n=Math.min(e[0][0],e[1][0],e[2][0]),i=Math.max(e[0][0],e[1][0],e[2][0]);i-n.5&&f<1,m=!1;if(h>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var g=Object(i["b"])([t,e,n,s]),y=Object(i["E"])(g)/this.targetWorldWidth_;m=y>a||m}!_&&this.sourceProj_.isGlobal()&&f&&(m=f>a||m)}if(m||!this.maxSourceExtent_||Object(i["F"])(d,this.maxSourceExtent_)){if(!m&&(!isFinite(o[0])||!isFinite(o[1])||!isFinite(c[0])||!isFinite(c[1])||!isFinite(l[0])||!isFinite(l[1])||!isFinite(u[0])||!isFinite(u[1]))){if(!(h>0))return;m=!0}if(h>0){if(!m){var v,b=[(t[0]+n[0])/2,(t[1]+n[1])/2],M=this.transformInv_(b);if(_){var w=(Object(r["d"])(o[0],p)+Object(r["d"])(l[0],p))/2;v=w-Object(r["d"])(M[0],p)}else v=(o[0]+l[0])/2-M[0];var x=(o[1]+l[1])/2-M[1],L=v*v+x*x;m=L>this.errorThresholdSquared_}if(m){if(Math.abs(t[0]-n[0])<=Math.abs(t[1]-n[1])){var E=[(e[0]+n[0])/2,(e[1]+n[1])/2],T=this.transformInv_(E),S=[(s[0]+t[0])/2,(s[1]+t[1])/2],O=this.transformInv_(S);this.addQuad_(t,e,E,S,o,c,T,O,h-1),this.addQuad_(S,E,n,s,O,T,l,u,h-1)}else{var k=[(t[0]+e[0])/2,(t[1]+e[1])/2],C=this.transformInv_(k),I=[(n[0]+s[0])/2,(n[1]+s[1])/2],D=this.transformInv_(I);this.addQuad_(t,k,I,s,o,C,D,u,h-1),this.addQuad_(k,e,n,I,C,c,l,D,h-1)}return}}if(_){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}this.addTriangle_(t,n,s,o,l,u),this.addTriangle_(t,e,n,o,c,l)}},c.prototype.calculateSourceExtent=function(){var t=Object(i["j"])();return this.triangles_.forEach(function(e,n,r){var s=e.source;Object(i["r"])(t,s[0]),Object(i["r"])(t,s[1]),Object(i["r"])(t,s[2])}),t},c.prototype.getTriangles=function(){return this.triangles_},e["a"]=c},b7e9:function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10,n=1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n},week:{dow:1,doy:4}});return e})},b84c:function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration @@ -273,18 +280,11 @@ var e=t.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕ //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com -(function(e,n){t.exports=n()})(0,function(){"use strict";var i,r;function s(){return i.apply(null,arguments)}function o(t){i=t}function a(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function c(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function l(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function u(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(l(t,e))return!1;return!0}function h(t){return void 0===t}function d(t){return"number"===typeof t||"[object Number]"===Object.prototype.toString.call(t)}function f(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function p(t,e){var n,i=[],r=t.length;for(n=0;n>>0;for(e=0;e0)for(n=0;n=0;return(s?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var j=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,F=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,H={},q={};function G(t,e,n,i){var r=i;"string"===typeof i&&(r=function(){return this[i]()}),t&&(q[t]=r),e&&(q[e[0]]=function(){return P(r.apply(this,arguments),e[1],e[2])}),n&&(q[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function z(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function B(t){var e,n,i=t.match(j);for(e=0,n=i.length;e=0&&F.test(t))t=t.replace(F,i),F.lastIndex=0,n-=1;return t}var $={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function V(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(j).map(function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t}).join(""),this._longDateFormat[t])}var X="Invalid date";function K(){return this._invalidDate}var Z="%d",J=/\d{1,2}/;function Q(t){return this._ordinal.replace("%d",t)}var tt={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function et(t,e,n,i){var r=this._relativeTime[n];return I(r)?r(t,e,n,i):r.replace(/%d/i,t)}function nt(t,e){var n=this._relativeTime[t>0?"future":"past"];return I(n)?n(e):n.replace(/%s/i,e)}var it={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function rt(t){return"string"===typeof t?it[t]||it[t.toLowerCase()]:void 0}function st(t){var e,n,i={};for(n in t)l(t,n)&&(e=rt(n),e&&(i[e]=t[n]));return i}var ot={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function at(t){var e,n=[];for(e in t)l(t,e)&&n.push({unit:e,priority:ot[e]});return n.sort(function(t,e){return t.priority-e.priority}),n}var ct,lt=/\d/,ut=/\d\d/,ht=/\d{3}/,dt=/\d{4}/,ft=/[+-]?\d{6}/,pt=/\d\d?/,_t=/\d\d\d\d?/,mt=/\d\d\d\d\d\d?/,gt=/\d{1,3}/,yt=/\d{1,4}/,vt=/[+-]?\d{1,6}/,bt=/\d+/,Mt=/[+-]?\d+/,wt=/Z|[+-]\d\d:?\d\d/gi,xt=/Z|[+-]\d\d(?::?\d\d)?/gi,Lt=/[+-]?\d+(\.\d{1,3})?/,Et=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Tt=/^[1-9]\d?/,St=/^([1-9]\d|\d)/;function Ot(t,e,n){ct[t]=I(e)?e:function(t,i){return t&&n?n:e}}function kt(t,e){return l(ct,t)?ct[t](e._strict,e._locale):new RegExp(Ct(t))}function Ct(t){return It(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,r){return e||n||i||r}))}function It(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Dt(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function Rt(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=Dt(e)),n}ct={};var At={};function Nt(t,e){var n,i,r=e;for("string"===typeof t&&(t=[t]),d(e)&&(r=function(t,n){n[e]=Rt(t)}),i=t.length,n=0;n68?1900:2e3)};var Xt,Kt=Jt("FullYear",!0);function Zt(){return jt(this.year())}function Jt(t,e){return function(n){return null!=n?(te(this,t,n),s.updateOffset(this,e),this):Qt(this,t)}}function Qt(t,e){if(!t.isValid())return NaN;var n=t._d,i=t._isUTC;switch(e){case"Milliseconds":return i?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return i?n.getUTCSeconds():n.getSeconds();case"Minutes":return i?n.getUTCMinutes():n.getMinutes();case"Hours":return i?n.getUTCHours():n.getHours();case"Date":return i?n.getUTCDate():n.getDate();case"Day":return i?n.getUTCDay():n.getDay();case"Month":return i?n.getUTCMonth():n.getMonth();case"FullYear":return i?n.getUTCFullYear():n.getFullYear();default:return NaN}}function te(t,e,n){var i,r,s,o,a;if(t.isValid()&&!isNaN(n)){switch(i=t._d,r=t._isUTC,e){case"Milliseconds":return void(r?i.setUTCMilliseconds(n):i.setMilliseconds(n));case"Seconds":return void(r?i.setUTCSeconds(n):i.setSeconds(n));case"Minutes":return void(r?i.setUTCMinutes(n):i.setMinutes(n));case"Hours":return void(r?i.setUTCHours(n):i.setHours(n));case"Date":return void(r?i.setUTCDate(n):i.setDate(n));case"FullYear":break;default:return}s=n,o=t.month(),a=t.date(),a=29!==a||1!==o||jt(s)?a:28,r?i.setUTCFullYear(s,o,a):i.setFullYear(s,o,a)}}function ee(t){return t=rt(t),I(this[t])?this[t]():this}function ne(t,e){if("object"===typeof t){t=st(t);var n,i=at(t),r=i.length;for(n=0;n=0?(a=new Date(t+400,e,n,i,r,s,o),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,n,i,r,s,o),a}function Me(t){var e,n;return t<100&&t>=0?(n=Array.prototype.slice.call(arguments),n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function we(t,e,n){var i=7+e-n,r=(7+Me(t,0,i).getUTCDay()-e)%7;return-r+i-1}function xe(t,e,n,i,r){var s,o,a=(7+n-i)%7,c=we(t,i,r),l=1+7*(e-1)+a+c;return l<=0?(s=t-1,o=Vt(s)+l):l>Vt(t)?(s=t+1,o=l-Vt(t)):(s=t,o=l),{year:s,dayOfYear:o}}function Le(t,e,n){var i,r,s=we(t.year(),e,n),o=Math.floor((t.dayOfYear()-s-1)/7)+1;return o<1?(r=t.year()-1,i=o+Ee(r,e,n)):o>Ee(t.year(),e,n)?(i=o-Ee(t.year(),e,n),r=t.year()+1):(r=t.year(),i=o),{week:i,year:r}}function Ee(t,e,n){var i=we(t,e,n),r=we(t+1,e,n);return(Vt(t)-i+r)/7}function Te(t){return Le(t,this._week.dow,this._week.doy).week}G("w",["ww",2],"wo","week"),G("W",["WW",2],"Wo","isoWeek"),Ot("w",pt,Tt),Ot("ww",pt,ut),Ot("W",pt,Tt),Ot("WW",pt,ut),Yt(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=Rt(t)});var Se={dow:0,doy:6};function Oe(){return this._week.dow}function ke(){return this._week.doy}function Ce(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Ie(t){var e=Le(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function De(t,e){return"string"!==typeof t?t:isNaN(t)?(t=e.weekdaysParse(t),"number"===typeof t?t:null):parseInt(t,10)}function Re(t,e){return"string"===typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Ae(t,e){return t.slice(e,7).concat(t.slice(0,e))}G("d",0,"do","day"),G("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),G("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),G("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),G("e",0,0,"weekday"),G("E",0,0,"isoWeekday"),Ot("d",pt),Ot("e",pt),Ot("E",pt),Ot("dd",function(t,e){return e.weekdaysMinRegex(t)}),Ot("ddd",function(t,e){return e.weekdaysShortRegex(t)}),Ot("dddd",function(t,e){return e.weekdaysRegex(t)}),Yt(["dd","ddd","dddd"],function(t,e,n,i){var r=n._locale.weekdaysParse(t,i,n._strict);null!=r?e.d=r:y(n).invalidWeekday=t}),Yt(["d","e","E"],function(t,e,n,i){e[i]=Rt(t)});var Ne="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ye="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Pe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),je=Et,Fe=Et,He=Et;function qe(t,e){var n=a(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Ae(n,this._week.dow):t?n[t.day()]:n}function Ge(t){return!0===t?Ae(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function ze(t){return!0===t?Ae(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Be(t,e,n){var i,r,s,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)s=m([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(s,"").toLocaleLowerCase();return n?"dddd"===e?(r=Xt.call(this._weekdaysParse,o),-1!==r?r:null):"ddd"===e?(r=Xt.call(this._shortWeekdaysParse,o),-1!==r?r:null):(r=Xt.call(this._minWeekdaysParse,o),-1!==r?r:null):"dddd"===e?(r=Xt.call(this._weekdaysParse,o),-1!==r?r:(r=Xt.call(this._shortWeekdaysParse,o),-1!==r?r:(r=Xt.call(this._minWeekdaysParse,o),-1!==r?r:null))):"ddd"===e?(r=Xt.call(this._shortWeekdaysParse,o),-1!==r?r:(r=Xt.call(this._weekdaysParse,o),-1!==r?r:(r=Xt.call(this._minWeekdaysParse,o),-1!==r?r:null))):(r=Xt.call(this._minWeekdaysParse,o),-1!==r?r:(r=Xt.call(this._weekdaysParse,o),-1!==r?r:(r=Xt.call(this._shortWeekdaysParse,o),-1!==r?r:null)))}function Ue(t,e,n){var i,r,s;if(this._weekdaysParseExact)return Be.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=m([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(s.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}}function We(t){if(!this.isValid())return null!=t?this:NaN;var e=Qt(this,"Day");return null!=t?(t=De(t,this.localeData()),this.add(t-e,"d")):e}function $e(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Ve(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Re(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function Xe(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Je.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=je),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ke(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Je.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Fe),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ze(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Je.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=He),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Je(){function t(t,e){return e.length-t.length}var e,n,i,r,s,o=[],a=[],c=[],l=[];for(e=0;e<7;e++)n=m([2e3,1]).day(e),i=It(this.weekdaysMin(n,"")),r=It(this.weekdaysShort(n,"")),s=It(this.weekdays(n,"")),o.push(i),a.push(r),c.push(s),l.push(i),l.push(r),l.push(s);o.sort(t),a.sort(t),c.sort(t),l.sort(t),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Qe(){return this.hours()%12||12}function tn(){return this.hours()||24}function en(t,e){G(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function nn(t,e){return e._meridiemParse}function rn(t){return"p"===(t+"").toLowerCase().charAt(0)}G("H",["HH",2],0,"hour"),G("h",["hh",2],0,Qe),G("k",["kk",2],0,tn),G("hmm",0,0,function(){return""+Qe.apply(this)+P(this.minutes(),2)}),G("hmmss",0,0,function(){return""+Qe.apply(this)+P(this.minutes(),2)+P(this.seconds(),2)}),G("Hmm",0,0,function(){return""+this.hours()+P(this.minutes(),2)}),G("Hmmss",0,0,function(){return""+this.hours()+P(this.minutes(),2)+P(this.seconds(),2)}),en("a",!0),en("A",!1),Ot("a",nn),Ot("A",nn),Ot("H",pt,St),Ot("h",pt,Tt),Ot("k",pt,Tt),Ot("HH",pt,ut),Ot("hh",pt,ut),Ot("kk",pt,ut),Ot("hmm",_t),Ot("hmmss",mt),Ot("Hmm",_t),Ot("Hmmss",mt),Nt(["H","HH"],Gt),Nt(["k","kk"],function(t,e,n){var i=Rt(t);e[Gt]=24===i?0:i}),Nt(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),Nt(["h","hh"],function(t,e,n){e[Gt]=Rt(t),y(n).bigHour=!0}),Nt("hmm",function(t,e,n){var i=t.length-2;e[Gt]=Rt(t.substr(0,i)),e[zt]=Rt(t.substr(i)),y(n).bigHour=!0}),Nt("hmmss",function(t,e,n){var i=t.length-4,r=t.length-2;e[Gt]=Rt(t.substr(0,i)),e[zt]=Rt(t.substr(i,2)),e[Bt]=Rt(t.substr(r)),y(n).bigHour=!0}),Nt("Hmm",function(t,e,n){var i=t.length-2;e[Gt]=Rt(t.substr(0,i)),e[zt]=Rt(t.substr(i))}),Nt("Hmmss",function(t,e,n){var i=t.length-4,r=t.length-2;e[Gt]=Rt(t.substr(0,i)),e[zt]=Rt(t.substr(i,2)),e[Bt]=Rt(t.substr(r))});var sn=/[ap]\.?m?\.?/i,on=Jt("Hours",!0);function an(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var cn,ln={calendar:N,longDateFormat:$,invalidDate:X,ordinal:Z,dayOfMonthOrdinalParse:J,relativeTime:tt,months:se,monthsShort:oe,week:Se,weekdays:Ne,weekdaysMin:Pe,weekdaysShort:Ye,meridiemParse:sn},un={},hn={};function dn(t,e){var n,i=Math.min(t.length,e.length);for(n=0;n0){if(i=mn(r.slice(0,e).join("-")),i)return i;if(n&&n.length>=e&&dn(r,n)>=e-1)break;e--}s++}return cn}function _n(t){return!(!t||!t.match("^[^/\\\\]*$"))}function mn(i){var r=null;if(void 0===un[i]&&"undefined"!==typeof t&&t&&t.exports&&_n(i))try{r=cn._abbr,e,n("4678")("./"+i),gn(r)}catch(t){un[i]=null}return un[i]}function gn(t,e){var n;return t&&(n=h(e)?bn(t):yn(t,e),n?cn=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),cn._abbr}function yn(t,e){if(null!==e){var n,i=ln;if(e.abbr=t,null!=un[t])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=un[t]._config;else if(null!=e.parentLocale)if(null!=un[e.parentLocale])i=un[e.parentLocale]._config;else{if(n=mn(e.parentLocale),null==n)return hn[e.parentLocale]||(hn[e.parentLocale]=[]),hn[e.parentLocale].push({name:t,config:e}),null;i=n._config}return un[t]=new A(R(i,e)),hn[t]&&hn[t].forEach(function(t){yn(t.name,t.config)}),gn(t),un[t]}return delete un[t],null}function vn(t,e){if(null!=e){var n,i,r=ln;null!=un[t]&&null!=un[t].parentLocale?un[t].set(R(un[t]._config,e)):(i=mn(t),null!=i&&(r=i._config),e=R(r,e),null==i&&(e.abbr=t),n=new A(e),n.parentLocale=un[t],un[t]=n),gn(t)}else null!=un[t]&&(null!=un[t].parentLocale?(un[t]=un[t].parentLocale,t===gn()&&gn(t)):null!=un[t]&&delete un[t]);return un[t]}function bn(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return cn;if(!a(t)){if(e=mn(t),e)return e;t=[t]}return pn(t)}function Mn(){return O(un)}function wn(t){var e,n=t._a;return n&&-2===y(t).overflow&&(e=n[Ht]<0||n[Ht]>11?Ht:n[qt]<1||n[qt]>re(n[Ft],n[Ht])?qt:n[Gt]<0||n[Gt]>24||24===n[Gt]&&(0!==n[zt]||0!==n[Bt]||0!==n[Ut])?Gt:n[zt]<0||n[zt]>59?zt:n[Bt]<0||n[Bt]>59?Bt:n[Ut]<0||n[Ut]>999?Ut:-1,y(t)._overflowDayOfYear&&(eqt)&&(e=qt),y(t)._overflowWeeks&&-1===e&&(e=Wt),y(t)._overflowWeekday&&-1===e&&(e=$t),y(t).overflow=e),t}var xn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ln=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,En=/Z|[+-]\d\d(?::?\d\d)?/,Tn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Sn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],On=/^\/?Date\((-?\d+)/i,kn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Cn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function In(t){var e,n,i,r,s,o,a=t._i,c=xn.exec(a)||Ln.exec(a),l=Tn.length,u=Sn.length;if(c){for(y(t).iso=!0,e=0,n=l;eVt(s)||0===t._dayOfYear)&&(y(t)._overflowDayOfYear=!0),n=Me(s,0,t._dayOfYear),t._a[Ht]=n.getUTCMonth(),t._a[qt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=o[e]=i[e];for(;e<7;e++)t._a[e]=o[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Gt]&&0===t._a[zt]&&0===t._a[Bt]&&0===t._a[Ut]&&(t._nextDay=!0,t._a[Gt]=0),t._d=(t._useUTC?Me:be).apply(null,o),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Gt]=24),t._w&&"undefined"!==typeof t._w.d&&t._w.d!==r&&(y(t).weekdayMismatch=!0)}}function Gn(t){var e,n,i,r,s,o,a,c,l;e=t._w,null!=e.GG||null!=e.W||null!=e.E?(s=1,o=4,n=Fn(e.GG,t._a[Ft],Le(Zn(),1,4).year),i=Fn(e.W,1),r=Fn(e.E,1),(r<1||r>7)&&(c=!0)):(s=t._locale._week.dow,o=t._locale._week.doy,l=Le(Zn(),s,o),n=Fn(e.gg,t._a[Ft],l.year),i=Fn(e.w,l.week),null!=e.d?(r=e.d,(r<0||r>6)&&(c=!0)):null!=e.e?(r=e.e+s,(e.e<0||e.e>6)&&(c=!0)):r=s),i<1||i>Ee(n,s,o)?y(t)._overflowWeeks=!0:null!=c?y(t)._overflowWeekday=!0:(a=xe(n,i,r,s,o),t._a[Ft]=a.year,t._dayOfYear=a.dayOfYear)}function zn(t){if(t._f!==s.ISO_8601)if(t._f!==s.RFC_2822){t._a=[],y(t).empty=!0;var e,n,i,r,o,a,c,l=""+t._i,u=l.length,h=0;for(i=W(t._f,t._locale).match(j)||[],c=i.length,e=0;e0&&y(t).unusedInput.push(o),l=l.slice(l.indexOf(n)+n.length),h+=n.length),q[r]?(n?y(t).empty=!1:y(t).unusedTokens.push(r),Pt(r,n,t)):t._strict&&!n&&y(t).unusedTokens.push(r);y(t).charsLeftOver=u-h,l.length>0&&y(t).unusedInput.push(l),t._a[Gt]<=12&&!0===y(t).bigHour&&t._a[Gt]>0&&(y(t).bigHour=void 0),y(t).parsedDateParts=t._a.slice(0),y(t).meridiem=t._meridiem,t._a[Gt]=Bn(t._locale,t._a[Gt],t._meridiem),a=y(t).era,null!==a&&(t._a[Ft]=t._locale.erasConvertYear(a,t._a[Ft])),qn(t),wn(t)}else Pn(t);else In(t)}function Bn(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?(i=t.isPM(n),i&&e<12&&(e+=12),i||12!==e||(e=0),e):e}function Un(t){var e,n,i,r,s,o,a=!1,c=t._f.length;if(0===c)return y(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;rthis?this:t:b()});function ti(t,e){var n,i;if(1===e.length&&a(e[0])&&(e=e[0]),!e.length)return Zn();for(n=e[0],i=1;ithis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Li(){if(!h(this._isDSTShifted))return this._isDSTShifted;var t,e={};return x(e,this),e=Vn(e),e._a?(t=e._isUTC?m(e._a):Zn(e._a),this._isDSTShifted=this.isValid()&&hi(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ei(){return!!this.isValid()&&!this._isUTC}function Ti(){return!!this.isValid()&&this._isUTC}function Si(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}s.updateOffset=function(){};var Oi=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ki=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ci(t,e){var n,i,r,s=t,o=null;return li(t)?s={ms:t._milliseconds,d:t._days,M:t._months}:d(t)||!isNaN(+t)?(s={},e?s[e]=+t:s.milliseconds=+t):(o=Oi.exec(t))?(n="-"===o[1]?-1:1,s={y:0,d:Rt(o[qt])*n,h:Rt(o[Gt])*n,m:Rt(o[zt])*n,s:Rt(o[Bt])*n,ms:Rt(ui(1e3*o[Ut]))*n}):(o=ki.exec(t))?(n="-"===o[1]?-1:1,s={y:Ii(o[2],n),M:Ii(o[3],n),w:Ii(o[4],n),d:Ii(o[5],n),h:Ii(o[6],n),m:Ii(o[7],n),s:Ii(o[8],n)}):null==s?s={}:"object"===typeof s&&("from"in s||"to"in s)&&(r=Ri(Zn(s.from),Zn(s.to)),s={},s.ms=r.milliseconds,s.M=r.months),i=new ci(s),li(t)&&l(t,"_locale")&&(i._locale=t._locale),li(t)&&l(t,"_isValid")&&(i._isValid=t._isValid),i}function Ii(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Di(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Ri(t,e){var n;return t.isValid()&&e.isValid()?(e=_i(e,t),t.isBefore(e)?n=Di(t,e):(n=Di(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ai(t,e){return function(n,i){var r,s;return null===i||isNaN(+i)||(C(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=n,n=i,i=s),r=Ci(n,i),Ni(this,r,t),this}}function Ni(t,e,n,i){var r=e._milliseconds,o=ui(e._days),a=ui(e._months);t.isValid()&&(i=null==i||i,a&&pe(t,Qt(t,"Month")+a*n),o&&te(t,"Date",Qt(t,"Date")+o*n),r&&t._d.setTime(t._d.valueOf()+r*n),i&&s.updateOffset(t,o||a))}Ci.fn=ci.prototype,Ci.invalid=ai;var Yi=Ai(1,"add"),Pi=Ai(-1,"subtract");function ji(t){return"string"===typeof t||t instanceof String}function Fi(t){return E(t)||f(t)||ji(t)||d(t)||qi(t)||Hi(t)||null===t||void 0===t}function Hi(t){var e,n,i=c(t)&&!u(t),r=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o=s.length;for(e=0;en.valueOf():n.valueOf()9999?U(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):I(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z")):U(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function nr(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,n,i,r="moment",s="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",s="Z"),t="["+r+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",i=s+'[")]',this.format(t+e+n+i)}function ir(t){t||(t=this.isUtc()?s.defaultFormatUtc:s.defaultFormat);var e=U(this,t);return this.localeData().postformat(e)}function rr(t,e){return this.isValid()&&(E(t)&&t.isValid()||Zn(t).isValid())?Ci({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function sr(t){return this.from(Zn(),t)}function or(t,e){return this.isValid()&&(E(t)&&t.isValid()||Zn(t).isValid())?Ci({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function ar(t){return this.to(Zn(),t)}function cr(t){var e;return void 0===t?this._locale._abbr:(e=bn(t),null!=e&&(this._locale=e),this)}s.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",s.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var lr=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function ur(){return this._locale}var hr=1e3,dr=60*hr,fr=60*dr,pr=3506328*fr;function _r(t,e){return(t%e+e)%e}function mr(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-pr:new Date(t,e,n).valueOf()}function gr(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-pr:Date.UTC(t,e,n)}function yr(t){var e,n;if(t=rt(t),void 0===t||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?gr:mr,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=_r(e+(this._isUTC?0:this.utcOffset()*dr),fr);break;case"minute":e=this._d.valueOf(),e-=_r(e,dr);break;case"second":e=this._d.valueOf(),e-=_r(e,hr);break}return this._d.setTime(e),s.updateOffset(this,!0),this}function vr(t){var e,n;if(t=rt(t),void 0===t||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?gr:mr,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=fr-_r(e+(this._isUTC?0:this.utcOffset()*dr),fr)-1;break;case"minute":e=this._d.valueOf(),e+=dr-_r(e,dr)-1;break;case"second":e=this._d.valueOf(),e+=hr-_r(e,hr)-1;break}return this._d.setTime(e),s.updateOffset(this,!0),this}function br(){return this._d.valueOf()-6e4*(this._offset||0)}function Mr(){return Math.floor(this.valueOf()/1e3)}function wr(){return new Date(this.valueOf())}function xr(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Lr(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function Er(){return this.isValid()?this.toISOString():null}function Tr(){return v(this)}function Sr(){return _({},y(this))}function Or(){return y(this).overflow}function kr(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Cr(t,e){var n,i,r,o=this._eras||bn("en")._eras;for(n=0,i=o.length;n=0)return c[i]}function Dr(t,e){var n=t.since<=t.until?1:-1;return void 0===e?s(t.since).year():s(t.since).year()+(e-t.offset)*n}function Rr(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;ts&&(e=s),Qr.call(this,t,e,n,i,r))}function Qr(t,e,n,i,r){var s=xe(t,e,n,i,r),o=Me(s.year,0,s.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function ts(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}G("N",0,0,"eraAbbr"),G("NN",0,0,"eraAbbr"),G("NNN",0,0,"eraAbbr"),G("NNNN",0,0,"eraName"),G("NNNNN",0,0,"eraNarrow"),G("y",["y",1],"yo","eraYear"),G("y",["yy",2],0,"eraYear"),G("y",["yyy",3],0,"eraYear"),G("y",["yyyy",4],0,"eraYear"),Ot("N",Hr),Ot("NN",Hr),Ot("NNN",Hr),Ot("NNNN",qr),Ot("NNNNN",Gr),Nt(["N","NN","NNN","NNNN","NNNNN"],function(t,e,n,i){var r=n._locale.erasParse(t,i,n._strict);r?y(n).era=r:y(n).invalidEra=t}),Ot("y",bt),Ot("yy",bt),Ot("yyy",bt),Ot("yyyy",bt),Ot("yo",zr),Nt(["y","yy","yyy","yyyy"],Ft),Nt(["yo"],function(t,e,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[Ft]=n._locale.eraYearOrdinalParse(t,r):e[Ft]=parseInt(t,10)}),G(0,["gg",2],0,function(){return this.weekYear()%100}),G(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Ur("gggg","weekYear"),Ur("ggggg","weekYear"),Ur("GGGG","isoWeekYear"),Ur("GGGGG","isoWeekYear"),Ot("G",Mt),Ot("g",Mt),Ot("GG",pt,ut),Ot("gg",pt,ut),Ot("GGGG",yt,dt),Ot("gggg",yt,dt),Ot("GGGGG",vt,ft),Ot("ggggg",vt,ft),Yt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=Rt(t)}),Yt(["gg","GG"],function(t,e,n,i){e[i]=s.parseTwoDigitYear(t)}),G("Q",0,"Qo","quarter"),Ot("Q",lt),Nt("Q",function(t,e){e[Ht]=3*(Rt(t)-1)}),G("D",["DD",2],"Do","date"),Ot("D",pt,Tt),Ot("DD",pt,ut),Ot("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),Nt(["D","DD"],qt),Nt("Do",function(t,e){e[qt]=Rt(t.match(pt)[0])});var es=Jt("Date",!0);function ns(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}G("DDD",["DDDD",3],"DDDo","dayOfYear"),Ot("DDD",gt),Ot("DDDD",ht),Nt(["DDD","DDDD"],function(t,e,n){n._dayOfYear=Rt(t)}),G("m",["mm",2],0,"minute"),Ot("m",pt,St),Ot("mm",pt,ut),Nt(["m","mm"],zt);var is=Jt("Minutes",!1);G("s",["ss",2],0,"second"),Ot("s",pt,St),Ot("ss",pt,ut),Nt(["s","ss"],Bt);var rs,ss,os=Jt("Seconds",!1);for(G("S",0,0,function(){return~~(this.millisecond()/100)}),G(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),G(0,["SSS",3],0,"millisecond"),G(0,["SSSS",4],0,function(){return 10*this.millisecond()}),G(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),G(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),G(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),G(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),G(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Ot("S",gt,lt),Ot("SS",gt,ut),Ot("SSS",gt,ht),rs="SSSS";rs.length<=9;rs+="S")Ot(rs,bt);function as(t,e){e[Ut]=Rt(1e3*("0."+t))}for(rs="S";rs.length<=9;rs+="S")Nt(rs,as);function cs(){return this._isUTC?"UTC":""}function ls(){return this._isUTC?"Coordinated Universal Time":""}ss=Jt("Milliseconds",!1),G("z",0,0,"zoneAbbr"),G("zz",0,0,"zoneName");var us=L.prototype;function hs(t){return Zn(1e3*t)}function ds(){return Zn.apply(null,arguments).parseZone()}function fs(t){return t}us.add=Yi,us.calendar=Bi,us.clone=Ui,us.diff=Ji,us.endOf=vr,us.format=ir,us.from=rr,us.fromNow=sr,us.to=or,us.toNow=ar,us.get=ee,us.invalidAt=Or,us.isAfter=Wi,us.isBefore=$i,us.isBetween=Vi,us.isSame=Xi,us.isSameOrAfter=Ki,us.isSameOrBefore=Zi,us.isValid=Tr,us.lang=lr,us.locale=cr,us.localeData=ur,us.max=Qn,us.min=Jn,us.parsingFlags=Sr,us.set=ne,us.startOf=yr,us.subtract=Pi,us.toArray=xr,us.toObject=Lr,us.toDate=wr,us.toISOString=er,us.inspect=nr,"undefined"!==typeof Symbol&&null!=Symbol.for&&(us[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),us.toJSON=Er,us.toString=tr,us.unix=Mr,us.valueOf=br,us.creationData=kr,us.eraName=Rr,us.eraNarrow=Ar,us.eraAbbr=Nr,us.eraYear=Yr,us.year=Kt,us.isLeapYear=Zt,us.weekYear=Wr,us.isoWeekYear=$r,us.quarter=us.quarters=ts,us.month=_e,us.daysInMonth=me,us.week=us.weeks=Ce,us.isoWeek=us.isoWeeks=Ie,us.weeksInYear=Kr,us.weeksInWeekYear=Zr,us.isoWeeksInYear=Vr,us.isoWeeksInISOWeekYear=Xr,us.date=es,us.day=us.days=We,us.weekday=$e,us.isoWeekday=Ve,us.dayOfYear=ns,us.hour=us.hours=on,us.minute=us.minutes=is,us.second=us.seconds=os,us.millisecond=us.milliseconds=ss,us.utcOffset=gi,us.utc=vi,us.local=bi,us.parseZone=Mi,us.hasAlignedHourOffset=wi,us.isDST=xi,us.isLocal=Ei,us.isUtcOffset=Ti,us.isUtc=Si,us.isUTC=Si,us.zoneAbbr=cs,us.zoneName=ls,us.dates=S("dates accessor is deprecated. Use date instead.",es),us.months=S("months accessor is deprecated. Use month instead",_e),us.years=S("years accessor is deprecated. Use year instead",Kt),us.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",yi),us.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Li);var ps=A.prototype;function _s(t,e,n,i){var r=bn(),s=m().set(i,e);return r[n](s,t)}function ms(t,e,n){if(d(t)&&(e=t,t=void 0),t=t||"",null!=e)return _s(t,e,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=_s(t,i,n,"month");return r}function gs(t,e,n,i){"boolean"===typeof t?(d(e)&&(n=e,e=void 0),e=e||""):(e=t,n=e,t=!1,d(e)&&(n=e,e=void 0),e=e||"");var r,s=bn(),o=t?s._week.dow:0,a=[];if(null!=n)return _s(e,(n+o)%7,i,"day");for(r=0;r<7;r++)a[r]=_s(e,(r+o)%7,i,"day");return a}function ys(t,e){return ms(t,e,"months")}function vs(t,e){return ms(t,e,"monthsShort")}function bs(t,e,n){return gs(t,e,n,"weekdays")}function Ms(t,e,n){return gs(t,e,n,"weekdaysShort")}function ws(t,e,n){return gs(t,e,n,"weekdaysMin")}ps.calendar=Y,ps.longDateFormat=V,ps.invalidDate=K,ps.ordinal=Q,ps.preparse=fs,ps.postformat=fs,ps.relativeTime=et,ps.pastFuture=nt,ps.set=D,ps.eras=Cr,ps.erasParse=Ir,ps.erasConvertYear=Dr,ps.erasAbbrRegex=jr,ps.erasNameRegex=Pr,ps.erasNarrowRegex=Fr,ps.months=ue,ps.monthsShort=he,ps.monthsParse=fe,ps.monthsRegex=ye,ps.monthsShortRegex=ge,ps.week=Te,ps.firstDayOfYear=ke,ps.firstDayOfWeek=Oe,ps.weekdays=qe,ps.weekdaysMin=ze,ps.weekdaysShort=Ge,ps.weekdaysParse=Ue,ps.weekdaysRegex=Xe,ps.weekdaysShortRegex=Ke,ps.weekdaysMinRegex=Ze,ps.isPM=rn,ps.meridiem=an,gn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=1===Rt(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n}}),s.lang=S("moment.lang is deprecated. Use moment.locale instead.",gn),s.langData=S("moment.langData is deprecated. Use moment.localeData instead.",bn);var xs=Math.abs;function Ls(){var t=this._data;return this._milliseconds=xs(this._milliseconds),this._days=xs(this._days),this._months=xs(this._months),t.milliseconds=xs(t.milliseconds),t.seconds=xs(t.seconds),t.minutes=xs(t.minutes),t.hours=xs(t.hours),t.months=xs(t.months),t.years=xs(t.years),this}function Es(t,e,n,i){var r=Ci(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function Ts(t,e){return Es(this,t,e,1)}function Ss(t,e){return Es(this,t,e,-1)}function Os(t){return t<0?Math.floor(t):Math.ceil(t)}function ks(){var t,e,n,i,r,s=this._milliseconds,o=this._days,a=this._months,c=this._data;return s>=0&&o>=0&&a>=0||s<=0&&o<=0&&a<=0||(s+=864e5*Os(Is(a)+o),o=0,a=0),c.milliseconds=s%1e3,t=Dt(s/1e3),c.seconds=t%60,e=Dt(t/60),c.minutes=e%60,n=Dt(e/60),c.hours=n%24,o+=Dt(n/24),r=Dt(Cs(o)),a+=r,o-=Os(Is(r)),i=Dt(a/12),a%=12,c.days=o,c.months=a,c.years=i,this}function Cs(t){return 4800*t/146097}function Is(t){return 146097*t/4800}function Ds(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if(t=rt(t),"month"===t||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+Cs(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Is(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}}function Rs(t){return function(){return this.as(t)}}var As=Rs("ms"),Ns=Rs("s"),Ys=Rs("m"),Ps=Rs("h"),js=Rs("d"),Fs=Rs("w"),Hs=Rs("M"),qs=Rs("Q"),Gs=Rs("y"),zs=As;function Bs(){return Ci(this)}function Us(t){return t=rt(t),this.isValid()?this[t+"s"]():NaN}function Ws(t){return function(){return this.isValid()?this._data[t]:NaN}}var $s=Ws("milliseconds"),Vs=Ws("seconds"),Xs=Ws("minutes"),Ks=Ws("hours"),Zs=Ws("days"),Js=Ws("months"),Qs=Ws("years");function to(){return Dt(this.days()/7)}var eo=Math.round,no={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function io(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}function ro(t,e,n,i){var r=Ci(t).abs(),s=eo(r.as("s")),o=eo(r.as("m")),a=eo(r.as("h")),c=eo(r.as("d")),l=eo(r.as("M")),u=eo(r.as("w")),h=eo(r.as("y")),d=s<=n.ss&&["s",s]||s0,d[4]=i,io.apply(null,d)}function so(t){return void 0===t?eo:"function"===typeof t&&(eo=t,!0)}function oo(t,e){return void 0!==no[t]&&(void 0===e?no[t]:(no[t]=e,"s"===t&&(no.ss=e-1),!0))}function ao(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,s=no;return"object"===typeof t&&(e=t,t=!1),"boolean"===typeof t&&(r=t),"object"===typeof e&&(s=Object.assign({},no,e),null!=e.s&&null==e.ss&&(s.ss=e.s-1)),n=this.localeData(),i=ro(this,!r,s,n),r&&(i=n.pastFuture(+this,i)),n.postformat(i)}var co=Math.abs;function lo(t){return(t>0)-(t<0)||+t}function uo(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,i,r,s,o,a,c=co(this._milliseconds)/1e3,l=co(this._days),u=co(this._months),h=this.asSeconds();return h?(t=Dt(c/60),e=Dt(t/60),c%=60,t%=60,n=Dt(u/12),u%=12,i=c?c.toFixed(3).replace(/\.?0+$/,""):"",r=h<0?"-":"",s=lo(this._months)!==lo(h)?"-":"",o=lo(this._days)!==lo(h)?"-":"",a=lo(this._milliseconds)!==lo(h)?"-":"",r+"P"+(n?s+n+"Y":"")+(u?s+u+"M":"")+(l?o+l+"D":"")+(e||t||c?"T":"")+(e?a+e+"H":"")+(t?a+t+"M":"")+(c?a+i+"S":"")):"P0D"}var ho=ci.prototype;return ho.isValid=oi,ho.abs=Ls,ho.add=Ts,ho.subtract=Ss,ho.as=Ds,ho.asMilliseconds=As,ho.asSeconds=Ns,ho.asMinutes=Ys,ho.asHours=Ps,ho.asDays=js,ho.asWeeks=Fs,ho.asMonths=Hs,ho.asQuarters=qs,ho.asYears=Gs,ho.valueOf=zs,ho._bubble=ks,ho.clone=Bs,ho.get=Us,ho.milliseconds=$s,ho.seconds=Vs,ho.minutes=Xs,ho.hours=Ks,ho.days=Zs,ho.weeks=to,ho.months=Js,ho.years=Qs,ho.humanize=ao,ho.toISOString=uo,ho.toString=uo,ho.toJSON=uo,ho.locale=cr,ho.localeData=ur,ho.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",uo),ho.lang=lr,G("X",0,0,"unix"),G("x",0,0,"valueOf"),Ot("x",Mt),Ot("X",Lt),Nt("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t))}),Nt("x",function(t,e,n){n._d=new Date(Rt(t))}), +(function(e,n){t.exports=n()})(0,function(){"use strict";var i,r;function s(){return i.apply(null,arguments)}function o(t){i=t}function a(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function c(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function l(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function u(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(l(t,e))return!1;return!0}function h(t){return void 0===t}function d(t){return"number"===typeof t||"[object Number]"===Object.prototype.toString.call(t)}function f(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function p(t,e){var n,i=[],r=t.length;for(n=0;n>>0;for(e=0;e0)for(n=0;n=0;return(s?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var j=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,F=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,H={},G={};function q(t,e,n,i){var r=i;"string"===typeof i&&(r=function(){return this[i]()}),t&&(G[t]=r),e&&(G[e[0]]=function(){return P(r.apply(this,arguments),e[1],e[2])}),n&&(G[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function z(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function B(t){var e,n,i=t.match(j);for(e=0,n=i.length;e=0&&F.test(t))t=t.replace(F,i),F.lastIndex=0,n-=1;return t}var $={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function V(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(j).map(function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t}).join(""),this._longDateFormat[t])}var X="Invalid date";function K(){return this._invalidDate}var J="%d",Z=/\d{1,2}/;function Q(t){return this._ordinal.replace("%d",t)}var tt={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function et(t,e,n,i){var r=this._relativeTime[n];return I(r)?r(t,e,n,i):r.replace(/%d/i,t)}function nt(t,e){var n=this._relativeTime[t>0?"future":"past"];return I(n)?n(e):n.replace(/%s/i,e)}var it={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function rt(t){return"string"===typeof t?it[t]||it[t.toLowerCase()]:void 0}function st(t){var e,n,i={};for(n in t)l(t,n)&&(e=rt(n),e&&(i[e]=t[n]));return i}var ot={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function at(t){var e,n=[];for(e in t)l(t,e)&&n.push({unit:e,priority:ot[e]});return n.sort(function(t,e){return t.priority-e.priority}),n}var ct,lt=/\d/,ut=/\d\d/,ht=/\d{3}/,dt=/\d{4}/,ft=/[+-]?\d{6}/,pt=/\d\d?/,_t=/\d\d\d\d?/,mt=/\d\d\d\d\d\d?/,gt=/\d{1,3}/,yt=/\d{1,4}/,vt=/[+-]?\d{1,6}/,bt=/\d+/,Mt=/[+-]?\d+/,wt=/Z|[+-]\d\d:?\d\d/gi,xt=/Z|[+-]\d\d(?::?\d\d)?/gi,Lt=/[+-]?\d+(\.\d{1,3})?/,Et=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Tt=/^[1-9]\d?/,St=/^([1-9]\d|\d)/;function Ot(t,e,n){ct[t]=I(e)?e:function(t,i){return t&&n?n:e}}function kt(t,e){return l(ct,t)?ct[t](e._strict,e._locale):new RegExp(Ct(t))}function Ct(t){return It(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,r){return e||n||i||r}))}function It(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Dt(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function Rt(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=Dt(e)),n}ct={};var At={};function Nt(t,e){var n,i,r=e;for("string"===typeof t&&(t=[t]),d(e)&&(r=function(t,n){n[e]=Rt(t)}),i=t.length,n=0;n68?1900:2e3)};var Xt,Kt=Zt("FullYear",!0);function Jt(){return jt(this.year())}function Zt(t,e){return function(n){return null!=n?(te(this,t,n),s.updateOffset(this,e),this):Qt(this,t)}}function Qt(t,e){if(!t.isValid())return NaN;var n=t._d,i=t._isUTC;switch(e){case"Milliseconds":return i?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return i?n.getUTCSeconds():n.getSeconds();case"Minutes":return i?n.getUTCMinutes():n.getMinutes();case"Hours":return i?n.getUTCHours():n.getHours();case"Date":return i?n.getUTCDate():n.getDate();case"Day":return i?n.getUTCDay():n.getDay();case"Month":return i?n.getUTCMonth():n.getMonth();case"FullYear":return i?n.getUTCFullYear():n.getFullYear();default:return NaN}}function te(t,e,n){var i,r,s,o,a;if(t.isValid()&&!isNaN(n)){switch(i=t._d,r=t._isUTC,e){case"Milliseconds":return void(r?i.setUTCMilliseconds(n):i.setMilliseconds(n));case"Seconds":return void(r?i.setUTCSeconds(n):i.setSeconds(n));case"Minutes":return void(r?i.setUTCMinutes(n):i.setMinutes(n));case"Hours":return void(r?i.setUTCHours(n):i.setHours(n));case"Date":return void(r?i.setUTCDate(n):i.setDate(n));case"FullYear":break;default:return}s=n,o=t.month(),a=t.date(),a=29!==a||1!==o||jt(s)?a:28,r?i.setUTCFullYear(s,o,a):i.setFullYear(s,o,a)}}function ee(t){return t=rt(t),I(this[t])?this[t]():this}function ne(t,e){if("object"===typeof t){t=st(t);var n,i=at(t),r=i.length;for(n=0;n=0?(a=new Date(t+400,e,n,i,r,s,o),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,n,i,r,s,o),a}function Me(t){var e,n;return t<100&&t>=0?(n=Array.prototype.slice.call(arguments),n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function we(t,e,n){var i=7+e-n,r=(7+Me(t,0,i).getUTCDay()-e)%7;return-r+i-1}function xe(t,e,n,i,r){var s,o,a=(7+n-i)%7,c=we(t,i,r),l=1+7*(e-1)+a+c;return l<=0?(s=t-1,o=Vt(s)+l):l>Vt(t)?(s=t+1,o=l-Vt(t)):(s=t,o=l),{year:s,dayOfYear:o}}function Le(t,e,n){var i,r,s=we(t.year(),e,n),o=Math.floor((t.dayOfYear()-s-1)/7)+1;return o<1?(r=t.year()-1,i=o+Ee(r,e,n)):o>Ee(t.year(),e,n)?(i=o-Ee(t.year(),e,n),r=t.year()+1):(r=t.year(),i=o),{week:i,year:r}}function Ee(t,e,n){var i=we(t,e,n),r=we(t+1,e,n);return(Vt(t)-i+r)/7}function Te(t){return Le(t,this._week.dow,this._week.doy).week}q("w",["ww",2],"wo","week"),q("W",["WW",2],"Wo","isoWeek"),Ot("w",pt,Tt),Ot("ww",pt,ut),Ot("W",pt,Tt),Ot("WW",pt,ut),Yt(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=Rt(t)});var Se={dow:0,doy:6};function Oe(){return this._week.dow}function ke(){return this._week.doy}function Ce(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Ie(t){var e=Le(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function De(t,e){return"string"!==typeof t?t:isNaN(t)?(t=e.weekdaysParse(t),"number"===typeof t?t:null):parseInt(t,10)}function Re(t,e){return"string"===typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Ae(t,e){return t.slice(e,7).concat(t.slice(0,e))}q("d",0,"do","day"),q("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),q("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),q("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),q("e",0,0,"weekday"),q("E",0,0,"isoWeekday"),Ot("d",pt),Ot("e",pt),Ot("E",pt),Ot("dd",function(t,e){return e.weekdaysMinRegex(t)}),Ot("ddd",function(t,e){return e.weekdaysShortRegex(t)}),Ot("dddd",function(t,e){return e.weekdaysRegex(t)}),Yt(["dd","ddd","dddd"],function(t,e,n,i){var r=n._locale.weekdaysParse(t,i,n._strict);null!=r?e.d=r:y(n).invalidWeekday=t}),Yt(["d","e","E"],function(t,e,n,i){e[i]=Rt(t)});var Ne="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ye="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Pe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),je=Et,Fe=Et,He=Et;function Ge(t,e){var n=a(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Ae(n,this._week.dow):t?n[t.day()]:n}function qe(t){return!0===t?Ae(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function ze(t){return!0===t?Ae(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Be(t,e,n){var i,r,s,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)s=m([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(s,"").toLocaleLowerCase();return n?"dddd"===e?(r=Xt.call(this._weekdaysParse,o),-1!==r?r:null):"ddd"===e?(r=Xt.call(this._shortWeekdaysParse,o),-1!==r?r:null):(r=Xt.call(this._minWeekdaysParse,o),-1!==r?r:null):"dddd"===e?(r=Xt.call(this._weekdaysParse,o),-1!==r?r:(r=Xt.call(this._shortWeekdaysParse,o),-1!==r?r:(r=Xt.call(this._minWeekdaysParse,o),-1!==r?r:null))):"ddd"===e?(r=Xt.call(this._shortWeekdaysParse,o),-1!==r?r:(r=Xt.call(this._weekdaysParse,o),-1!==r?r:(r=Xt.call(this._minWeekdaysParse,o),-1!==r?r:null))):(r=Xt.call(this._minWeekdaysParse,o),-1!==r?r:(r=Xt.call(this._weekdaysParse,o),-1!==r?r:(r=Xt.call(this._shortWeekdaysParse,o),-1!==r?r:null)))}function Ue(t,e,n){var i,r,s;if(this._weekdaysParseExact)return Be.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=m([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(s.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}}function We(t){if(!this.isValid())return null!=t?this:NaN;var e=Qt(this,"Day");return null!=t?(t=De(t,this.localeData()),this.add(t-e,"d")):e}function $e(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Ve(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Re(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function Xe(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Ze.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=je),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ke(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Ze.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Fe),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Je(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Ze.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=He),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ze(){function t(t,e){return e.length-t.length}var e,n,i,r,s,o=[],a=[],c=[],l=[];for(e=0;e<7;e++)n=m([2e3,1]).day(e),i=It(this.weekdaysMin(n,"")),r=It(this.weekdaysShort(n,"")),s=It(this.weekdays(n,"")),o.push(i),a.push(r),c.push(s),l.push(i),l.push(r),l.push(s);o.sort(t),a.sort(t),c.sort(t),l.sort(t),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Qe(){return this.hours()%12||12}function tn(){return this.hours()||24}function en(t,e){q(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function nn(t,e){return e._meridiemParse}function rn(t){return"p"===(t+"").toLowerCase().charAt(0)}q("H",["HH",2],0,"hour"),q("h",["hh",2],0,Qe),q("k",["kk",2],0,tn),q("hmm",0,0,function(){return""+Qe.apply(this)+P(this.minutes(),2)}),q("hmmss",0,0,function(){return""+Qe.apply(this)+P(this.minutes(),2)+P(this.seconds(),2)}),q("Hmm",0,0,function(){return""+this.hours()+P(this.minutes(),2)}),q("Hmmss",0,0,function(){return""+this.hours()+P(this.minutes(),2)+P(this.seconds(),2)}),en("a",!0),en("A",!1),Ot("a",nn),Ot("A",nn),Ot("H",pt,St),Ot("h",pt,Tt),Ot("k",pt,Tt),Ot("HH",pt,ut),Ot("hh",pt,ut),Ot("kk",pt,ut),Ot("hmm",_t),Ot("hmmss",mt),Ot("Hmm",_t),Ot("Hmmss",mt),Nt(["H","HH"],qt),Nt(["k","kk"],function(t,e,n){var i=Rt(t);e[qt]=24===i?0:i}),Nt(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),Nt(["h","hh"],function(t,e,n){e[qt]=Rt(t),y(n).bigHour=!0}),Nt("hmm",function(t,e,n){var i=t.length-2;e[qt]=Rt(t.substr(0,i)),e[zt]=Rt(t.substr(i)),y(n).bigHour=!0}),Nt("hmmss",function(t,e,n){var i=t.length-4,r=t.length-2;e[qt]=Rt(t.substr(0,i)),e[zt]=Rt(t.substr(i,2)),e[Bt]=Rt(t.substr(r)),y(n).bigHour=!0}),Nt("Hmm",function(t,e,n){var i=t.length-2;e[qt]=Rt(t.substr(0,i)),e[zt]=Rt(t.substr(i))}),Nt("Hmmss",function(t,e,n){var i=t.length-4,r=t.length-2;e[qt]=Rt(t.substr(0,i)),e[zt]=Rt(t.substr(i,2)),e[Bt]=Rt(t.substr(r))});var sn=/[ap]\.?m?\.?/i,on=Zt("Hours",!0);function an(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var cn,ln={calendar:N,longDateFormat:$,invalidDate:X,ordinal:J,dayOfMonthOrdinalParse:Z,relativeTime:tt,months:se,monthsShort:oe,week:Se,weekdays:Ne,weekdaysMin:Pe,weekdaysShort:Ye,meridiemParse:sn},un={},hn={};function dn(t,e){var n,i=Math.min(t.length,e.length);for(n=0;n0){if(i=mn(r.slice(0,e).join("-")),i)return i;if(n&&n.length>=e&&dn(r,n)>=e-1)break;e--}s++}return cn}function _n(t){return!(!t||!t.match("^[^/\\\\]*$"))}function mn(i){var r=null;if(void 0===un[i]&&"undefined"!==typeof t&&t&&t.exports&&_n(i))try{r=cn._abbr,e,n("4678")("./"+i),gn(r)}catch(t){un[i]=null}return un[i]}function gn(t,e){var n;return t&&(n=h(e)?bn(t):yn(t,e),n?cn=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),cn._abbr}function yn(t,e){if(null!==e){var n,i=ln;if(e.abbr=t,null!=un[t])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=un[t]._config;else if(null!=e.parentLocale)if(null!=un[e.parentLocale])i=un[e.parentLocale]._config;else{if(n=mn(e.parentLocale),null==n)return hn[e.parentLocale]||(hn[e.parentLocale]=[]),hn[e.parentLocale].push({name:t,config:e}),null;i=n._config}return un[t]=new A(R(i,e)),hn[t]&&hn[t].forEach(function(t){yn(t.name,t.config)}),gn(t),un[t]}return delete un[t],null}function vn(t,e){if(null!=e){var n,i,r=ln;null!=un[t]&&null!=un[t].parentLocale?un[t].set(R(un[t]._config,e)):(i=mn(t),null!=i&&(r=i._config),e=R(r,e),null==i&&(e.abbr=t),n=new A(e),n.parentLocale=un[t],un[t]=n),gn(t)}else null!=un[t]&&(null!=un[t].parentLocale?(un[t]=un[t].parentLocale,t===gn()&&gn(t)):null!=un[t]&&delete un[t]);return un[t]}function bn(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return cn;if(!a(t)){if(e=mn(t),e)return e;t=[t]}return pn(t)}function Mn(){return O(un)}function wn(t){var e,n=t._a;return n&&-2===y(t).overflow&&(e=n[Ht]<0||n[Ht]>11?Ht:n[Gt]<1||n[Gt]>re(n[Ft],n[Ht])?Gt:n[qt]<0||n[qt]>24||24===n[qt]&&(0!==n[zt]||0!==n[Bt]||0!==n[Ut])?qt:n[zt]<0||n[zt]>59?zt:n[Bt]<0||n[Bt]>59?Bt:n[Ut]<0||n[Ut]>999?Ut:-1,y(t)._overflowDayOfYear&&(eGt)&&(e=Gt),y(t)._overflowWeeks&&-1===e&&(e=Wt),y(t)._overflowWeekday&&-1===e&&(e=$t),y(t).overflow=e),t}var xn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ln=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,En=/Z|[+-]\d\d(?::?\d\d)?/,Tn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Sn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],On=/^\/?Date\((-?\d+)/i,kn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Cn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function In(t){var e,n,i,r,s,o,a=t._i,c=xn.exec(a)||Ln.exec(a),l=Tn.length,u=Sn.length;if(c){for(y(t).iso=!0,e=0,n=l;eVt(s)||0===t._dayOfYear)&&(y(t)._overflowDayOfYear=!0),n=Me(s,0,t._dayOfYear),t._a[Ht]=n.getUTCMonth(),t._a[Gt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=o[e]=i[e];for(;e<7;e++)t._a[e]=o[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[qt]&&0===t._a[zt]&&0===t._a[Bt]&&0===t._a[Ut]&&(t._nextDay=!0,t._a[qt]=0),t._d=(t._useUTC?Me:be).apply(null,o),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[qt]=24),t._w&&"undefined"!==typeof t._w.d&&t._w.d!==r&&(y(t).weekdayMismatch=!0)}}function qn(t){var e,n,i,r,s,o,a,c,l;e=t._w,null!=e.GG||null!=e.W||null!=e.E?(s=1,o=4,n=Fn(e.GG,t._a[Ft],Le(Jn(),1,4).year),i=Fn(e.W,1),r=Fn(e.E,1),(r<1||r>7)&&(c=!0)):(s=t._locale._week.dow,o=t._locale._week.doy,l=Le(Jn(),s,o),n=Fn(e.gg,t._a[Ft],l.year),i=Fn(e.w,l.week),null!=e.d?(r=e.d,(r<0||r>6)&&(c=!0)):null!=e.e?(r=e.e+s,(e.e<0||e.e>6)&&(c=!0)):r=s),i<1||i>Ee(n,s,o)?y(t)._overflowWeeks=!0:null!=c?y(t)._overflowWeekday=!0:(a=xe(n,i,r,s,o),t._a[Ft]=a.year,t._dayOfYear=a.dayOfYear)}function zn(t){if(t._f!==s.ISO_8601)if(t._f!==s.RFC_2822){t._a=[],y(t).empty=!0;var e,n,i,r,o,a,c,l=""+t._i,u=l.length,h=0;for(i=W(t._f,t._locale).match(j)||[],c=i.length,e=0;e0&&y(t).unusedInput.push(o),l=l.slice(l.indexOf(n)+n.length),h+=n.length),G[r]?(n?y(t).empty=!1:y(t).unusedTokens.push(r),Pt(r,n,t)):t._strict&&!n&&y(t).unusedTokens.push(r);y(t).charsLeftOver=u-h,l.length>0&&y(t).unusedInput.push(l),t._a[qt]<=12&&!0===y(t).bigHour&&t._a[qt]>0&&(y(t).bigHour=void 0),y(t).parsedDateParts=t._a.slice(0),y(t).meridiem=t._meridiem,t._a[qt]=Bn(t._locale,t._a[qt],t._meridiem),a=y(t).era,null!==a&&(t._a[Ft]=t._locale.erasConvertYear(a,t._a[Ft])),Gn(t),wn(t)}else Pn(t);else In(t)}function Bn(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?(i=t.isPM(n),i&&e<12&&(e+=12),i||12!==e||(e=0),e):e}function Un(t){var e,n,i,r,s,o,a=!1,c=t._f.length;if(0===c)return y(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;rthis?this:t:b()});function ti(t,e){var n,i;if(1===e.length&&a(e[0])&&(e=e[0]),!e.length)return Jn();for(n=e[0],i=1;ithis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Li(){if(!h(this._isDSTShifted))return this._isDSTShifted;var t,e={};return x(e,this),e=Vn(e),e._a?(t=e._isUTC?m(e._a):Jn(e._a),this._isDSTShifted=this.isValid()&&hi(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ei(){return!!this.isValid()&&!this._isUTC}function Ti(){return!!this.isValid()&&this._isUTC}function Si(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}s.updateOffset=function(){};var Oi=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ki=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ci(t,e){var n,i,r,s=t,o=null;return li(t)?s={ms:t._milliseconds,d:t._days,M:t._months}:d(t)||!isNaN(+t)?(s={},e?s[e]=+t:s.milliseconds=+t):(o=Oi.exec(t))?(n="-"===o[1]?-1:1,s={y:0,d:Rt(o[Gt])*n,h:Rt(o[qt])*n,m:Rt(o[zt])*n,s:Rt(o[Bt])*n,ms:Rt(ui(1e3*o[Ut]))*n}):(o=ki.exec(t))?(n="-"===o[1]?-1:1,s={y:Ii(o[2],n),M:Ii(o[3],n),w:Ii(o[4],n),d:Ii(o[5],n),h:Ii(o[6],n),m:Ii(o[7],n),s:Ii(o[8],n)}):null==s?s={}:"object"===typeof s&&("from"in s||"to"in s)&&(r=Ri(Jn(s.from),Jn(s.to)),s={},s.ms=r.milliseconds,s.M=r.months),i=new ci(s),li(t)&&l(t,"_locale")&&(i._locale=t._locale),li(t)&&l(t,"_isValid")&&(i._isValid=t._isValid),i}function Ii(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Di(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Ri(t,e){var n;return t.isValid()&&e.isValid()?(e=_i(e,t),t.isBefore(e)?n=Di(t,e):(n=Di(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ai(t,e){return function(n,i){var r,s;return null===i||isNaN(+i)||(C(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=n,n=i,i=s),r=Ci(n,i),Ni(this,r,t),this}}function Ni(t,e,n,i){var r=e._milliseconds,o=ui(e._days),a=ui(e._months);t.isValid()&&(i=null==i||i,a&&pe(t,Qt(t,"Month")+a*n),o&&te(t,"Date",Qt(t,"Date")+o*n),r&&t._d.setTime(t._d.valueOf()+r*n),i&&s.updateOffset(t,o||a))}Ci.fn=ci.prototype,Ci.invalid=ai;var Yi=Ai(1,"add"),Pi=Ai(-1,"subtract");function ji(t){return"string"===typeof t||t instanceof String}function Fi(t){return E(t)||f(t)||ji(t)||d(t)||Gi(t)||Hi(t)||null===t||void 0===t}function Hi(t){var e,n,i=c(t)&&!u(t),r=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o=s.length;for(e=0;en.valueOf():n.valueOf()9999?U(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):I(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z")):U(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function nr(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,n,i,r="moment",s="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",s="Z"),t="["+r+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",i=s+'[")]',this.format(t+e+n+i)}function ir(t){t||(t=this.isUtc()?s.defaultFormatUtc:s.defaultFormat);var e=U(this,t);return this.localeData().postformat(e)}function rr(t,e){return this.isValid()&&(E(t)&&t.isValid()||Jn(t).isValid())?Ci({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function sr(t){return this.from(Jn(),t)}function or(t,e){return this.isValid()&&(E(t)&&t.isValid()||Jn(t).isValid())?Ci({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function ar(t){return this.to(Jn(),t)}function cr(t){var e;return void 0===t?this._locale._abbr:(e=bn(t),null!=e&&(this._locale=e),this)}s.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",s.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var lr=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function ur(){return this._locale}var hr=1e3,dr=60*hr,fr=60*dr,pr=3506328*fr;function _r(t,e){return(t%e+e)%e}function mr(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-pr:new Date(t,e,n).valueOf()}function gr(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-pr:Date.UTC(t,e,n)}function yr(t){var e,n;if(t=rt(t),void 0===t||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?gr:mr,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=_r(e+(this._isUTC?0:this.utcOffset()*dr),fr);break;case"minute":e=this._d.valueOf(),e-=_r(e,dr);break;case"second":e=this._d.valueOf(),e-=_r(e,hr);break}return this._d.setTime(e),s.updateOffset(this,!0),this}function vr(t){var e,n;if(t=rt(t),void 0===t||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?gr:mr,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=fr-_r(e+(this._isUTC?0:this.utcOffset()*dr),fr)-1;break;case"minute":e=this._d.valueOf(),e+=dr-_r(e,dr)-1;break;case"second":e=this._d.valueOf(),e+=hr-_r(e,hr)-1;break}return this._d.setTime(e),s.updateOffset(this,!0),this}function br(){return this._d.valueOf()-6e4*(this._offset||0)}function Mr(){return Math.floor(this.valueOf()/1e3)}function wr(){return new Date(this.valueOf())}function xr(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Lr(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function Er(){return this.isValid()?this.toISOString():null}function Tr(){return v(this)}function Sr(){return _({},y(this))}function Or(){return y(this).overflow}function kr(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Cr(t,e){var n,i,r,o=this._eras||bn("en")._eras;for(n=0,i=o.length;n=0)return c[i]}function Dr(t,e){var n=t.since<=t.until?1:-1;return void 0===e?s(t.since).year():s(t.since).year()+(e-t.offset)*n}function Rr(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;ts&&(e=s),Qr.call(this,t,e,n,i,r))}function Qr(t,e,n,i,r){var s=xe(t,e,n,i,r),o=Me(s.year,0,s.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function ts(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}q("N",0,0,"eraAbbr"),q("NN",0,0,"eraAbbr"),q("NNN",0,0,"eraAbbr"),q("NNNN",0,0,"eraName"),q("NNNNN",0,0,"eraNarrow"),q("y",["y",1],"yo","eraYear"),q("y",["yy",2],0,"eraYear"),q("y",["yyy",3],0,"eraYear"),q("y",["yyyy",4],0,"eraYear"),Ot("N",Hr),Ot("NN",Hr),Ot("NNN",Hr),Ot("NNNN",Gr),Ot("NNNNN",qr),Nt(["N","NN","NNN","NNNN","NNNNN"],function(t,e,n,i){var r=n._locale.erasParse(t,i,n._strict);r?y(n).era=r:y(n).invalidEra=t}),Ot("y",bt),Ot("yy",bt),Ot("yyy",bt),Ot("yyyy",bt),Ot("yo",zr),Nt(["y","yy","yyy","yyyy"],Ft),Nt(["yo"],function(t,e,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[Ft]=n._locale.eraYearOrdinalParse(t,r):e[Ft]=parseInt(t,10)}),q(0,["gg",2],0,function(){return this.weekYear()%100}),q(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Ur("gggg","weekYear"),Ur("ggggg","weekYear"),Ur("GGGG","isoWeekYear"),Ur("GGGGG","isoWeekYear"),Ot("G",Mt),Ot("g",Mt),Ot("GG",pt,ut),Ot("gg",pt,ut),Ot("GGGG",yt,dt),Ot("gggg",yt,dt),Ot("GGGGG",vt,ft),Ot("ggggg",vt,ft),Yt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=Rt(t)}),Yt(["gg","GG"],function(t,e,n,i){e[i]=s.parseTwoDigitYear(t)}),q("Q",0,"Qo","quarter"),Ot("Q",lt),Nt("Q",function(t,e){e[Ht]=3*(Rt(t)-1)}),q("D",["DD",2],"Do","date"),Ot("D",pt,Tt),Ot("DD",pt,ut),Ot("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),Nt(["D","DD"],Gt),Nt("Do",function(t,e){e[Gt]=Rt(t.match(pt)[0])});var es=Zt("Date",!0);function ns(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}q("DDD",["DDDD",3],"DDDo","dayOfYear"),Ot("DDD",gt),Ot("DDDD",ht),Nt(["DDD","DDDD"],function(t,e,n){n._dayOfYear=Rt(t)}),q("m",["mm",2],0,"minute"),Ot("m",pt,St),Ot("mm",pt,ut),Nt(["m","mm"],zt);var is=Zt("Minutes",!1);q("s",["ss",2],0,"second"),Ot("s",pt,St),Ot("ss",pt,ut),Nt(["s","ss"],Bt);var rs,ss,os=Zt("Seconds",!1);for(q("S",0,0,function(){return~~(this.millisecond()/100)}),q(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),q(0,["SSS",3],0,"millisecond"),q(0,["SSSS",4],0,function(){return 10*this.millisecond()}),q(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),q(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),q(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),q(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),q(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Ot("S",gt,lt),Ot("SS",gt,ut),Ot("SSS",gt,ht),rs="SSSS";rs.length<=9;rs+="S")Ot(rs,bt);function as(t,e){e[Ut]=Rt(1e3*("0."+t))}for(rs="S";rs.length<=9;rs+="S")Nt(rs,as);function cs(){return this._isUTC?"UTC":""}function ls(){return this._isUTC?"Coordinated Universal Time":""}ss=Zt("Milliseconds",!1),q("z",0,0,"zoneAbbr"),q("zz",0,0,"zoneName");var us=L.prototype;function hs(t){return Jn(1e3*t)}function ds(){return Jn.apply(null,arguments).parseZone()}function fs(t){return t}us.add=Yi,us.calendar=Bi,us.clone=Ui,us.diff=Zi,us.endOf=vr,us.format=ir,us.from=rr,us.fromNow=sr,us.to=or,us.toNow=ar,us.get=ee,us.invalidAt=Or,us.isAfter=Wi,us.isBefore=$i,us.isBetween=Vi,us.isSame=Xi,us.isSameOrAfter=Ki,us.isSameOrBefore=Ji,us.isValid=Tr,us.lang=lr,us.locale=cr,us.localeData=ur,us.max=Qn,us.min=Zn,us.parsingFlags=Sr,us.set=ne,us.startOf=yr,us.subtract=Pi,us.toArray=xr,us.toObject=Lr,us.toDate=wr,us.toISOString=er,us.inspect=nr,"undefined"!==typeof Symbol&&null!=Symbol.for&&(us[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),us.toJSON=Er,us.toString=tr,us.unix=Mr,us.valueOf=br,us.creationData=kr,us.eraName=Rr,us.eraNarrow=Ar,us.eraAbbr=Nr,us.eraYear=Yr,us.year=Kt,us.isLeapYear=Jt,us.weekYear=Wr,us.isoWeekYear=$r,us.quarter=us.quarters=ts,us.month=_e,us.daysInMonth=me,us.week=us.weeks=Ce,us.isoWeek=us.isoWeeks=Ie,us.weeksInYear=Kr,us.weeksInWeekYear=Jr,us.isoWeeksInYear=Vr,us.isoWeeksInISOWeekYear=Xr,us.date=es,us.day=us.days=We,us.weekday=$e,us.isoWeekday=Ve,us.dayOfYear=ns,us.hour=us.hours=on,us.minute=us.minutes=is,us.second=us.seconds=os,us.millisecond=us.milliseconds=ss,us.utcOffset=gi,us.utc=vi,us.local=bi,us.parseZone=Mi,us.hasAlignedHourOffset=wi,us.isDST=xi,us.isLocal=Ei,us.isUtcOffset=Ti,us.isUtc=Si,us.isUTC=Si,us.zoneAbbr=cs,us.zoneName=ls,us.dates=S("dates accessor is deprecated. Use date instead.",es),us.months=S("months accessor is deprecated. Use month instead",_e),us.years=S("years accessor is deprecated. Use year instead",Kt),us.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",yi),us.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Li);var ps=A.prototype;function _s(t,e,n,i){var r=bn(),s=m().set(i,e);return r[n](s,t)}function ms(t,e,n){if(d(t)&&(e=t,t=void 0),t=t||"",null!=e)return _s(t,e,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=_s(t,i,n,"month");return r}function gs(t,e,n,i){"boolean"===typeof t?(d(e)&&(n=e,e=void 0),e=e||""):(e=t,n=e,t=!1,d(e)&&(n=e,e=void 0),e=e||"");var r,s=bn(),o=t?s._week.dow:0,a=[];if(null!=n)return _s(e,(n+o)%7,i,"day");for(r=0;r<7;r++)a[r]=_s(e,(r+o)%7,i,"day");return a}function ys(t,e){return ms(t,e,"months")}function vs(t,e){return ms(t,e,"monthsShort")}function bs(t,e,n){return gs(t,e,n,"weekdays")}function Ms(t,e,n){return gs(t,e,n,"weekdaysShort")}function ws(t,e,n){return gs(t,e,n,"weekdaysMin")}ps.calendar=Y,ps.longDateFormat=V,ps.invalidDate=K,ps.ordinal=Q,ps.preparse=fs,ps.postformat=fs,ps.relativeTime=et,ps.pastFuture=nt,ps.set=D,ps.eras=Cr,ps.erasParse=Ir,ps.erasConvertYear=Dr,ps.erasAbbrRegex=jr,ps.erasNameRegex=Pr,ps.erasNarrowRegex=Fr,ps.months=ue,ps.monthsShort=he,ps.monthsParse=fe,ps.monthsRegex=ye,ps.monthsShortRegex=ge,ps.week=Te,ps.firstDayOfYear=ke,ps.firstDayOfWeek=Oe,ps.weekdays=Ge,ps.weekdaysMin=ze,ps.weekdaysShort=qe,ps.weekdaysParse=Ue,ps.weekdaysRegex=Xe,ps.weekdaysShortRegex=Ke,ps.weekdaysMinRegex=Je,ps.isPM=rn,ps.meridiem=an,gn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=1===Rt(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n}}),s.lang=S("moment.lang is deprecated. Use moment.locale instead.",gn),s.langData=S("moment.langData is deprecated. Use moment.localeData instead.",bn);var xs=Math.abs;function Ls(){var t=this._data;return this._milliseconds=xs(this._milliseconds),this._days=xs(this._days),this._months=xs(this._months),t.milliseconds=xs(t.milliseconds),t.seconds=xs(t.seconds),t.minutes=xs(t.minutes),t.hours=xs(t.hours),t.months=xs(t.months),t.years=xs(t.years),this}function Es(t,e,n,i){var r=Ci(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function Ts(t,e){return Es(this,t,e,1)}function Ss(t,e){return Es(this,t,e,-1)}function Os(t){return t<0?Math.floor(t):Math.ceil(t)}function ks(){var t,e,n,i,r,s=this._milliseconds,o=this._days,a=this._months,c=this._data;return s>=0&&o>=0&&a>=0||s<=0&&o<=0&&a<=0||(s+=864e5*Os(Is(a)+o),o=0,a=0),c.milliseconds=s%1e3,t=Dt(s/1e3),c.seconds=t%60,e=Dt(t/60),c.minutes=e%60,n=Dt(e/60),c.hours=n%24,o+=Dt(n/24),r=Dt(Cs(o)),a+=r,o-=Os(Is(r)),i=Dt(a/12),a%=12,c.days=o,c.months=a,c.years=i,this}function Cs(t){return 4800*t/146097}function Is(t){return 146097*t/4800}function Ds(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if(t=rt(t),"month"===t||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+Cs(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Is(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}}function Rs(t){return function(){return this.as(t)}}var As=Rs("ms"),Ns=Rs("s"),Ys=Rs("m"),Ps=Rs("h"),js=Rs("d"),Fs=Rs("w"),Hs=Rs("M"),Gs=Rs("Q"),qs=Rs("y"),zs=As;function Bs(){return Ci(this)}function Us(t){return t=rt(t),this.isValid()?this[t+"s"]():NaN}function Ws(t){return function(){return this.isValid()?this._data[t]:NaN}}var $s=Ws("milliseconds"),Vs=Ws("seconds"),Xs=Ws("minutes"),Ks=Ws("hours"),Js=Ws("days"),Zs=Ws("months"),Qs=Ws("years");function to(){return Dt(this.days()/7)}var eo=Math.round,no={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function io(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}function ro(t,e,n,i){var r=Ci(t).abs(),s=eo(r.as("s")),o=eo(r.as("m")),a=eo(r.as("h")),c=eo(r.as("d")),l=eo(r.as("M")),u=eo(r.as("w")),h=eo(r.as("y")),d=s<=n.ss&&["s",s]||s0,d[4]=i,io.apply(null,d)}function so(t){return void 0===t?eo:"function"===typeof t&&(eo=t,!0)}function oo(t,e){return void 0!==no[t]&&(void 0===e?no[t]:(no[t]=e,"s"===t&&(no.ss=e-1),!0))}function ao(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,s=no;return"object"===typeof t&&(e=t,t=!1),"boolean"===typeof t&&(r=t),"object"===typeof e&&(s=Object.assign({},no,e),null!=e.s&&null==e.ss&&(s.ss=e.s-1)),n=this.localeData(),i=ro(this,!r,s,n),r&&(i=n.pastFuture(+this,i)),n.postformat(i)}var co=Math.abs;function lo(t){return(t>0)-(t<0)||+t}function uo(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,i,r,s,o,a,c=co(this._milliseconds)/1e3,l=co(this._days),u=co(this._months),h=this.asSeconds();return h?(t=Dt(c/60),e=Dt(t/60),c%=60,t%=60,n=Dt(u/12),u%=12,i=c?c.toFixed(3).replace(/\.?0+$/,""):"",r=h<0?"-":"",s=lo(this._months)!==lo(h)?"-":"",o=lo(this._days)!==lo(h)?"-":"",a=lo(this._milliseconds)!==lo(h)?"-":"",r+"P"+(n?s+n+"Y":"")+(u?s+u+"M":"")+(l?o+l+"D":"")+(e||t||c?"T":"")+(e?a+e+"H":"")+(t?a+t+"M":"")+(c?a+i+"S":"")):"P0D"}var ho=ci.prototype;return ho.isValid=oi,ho.abs=Ls,ho.add=Ts,ho.subtract=Ss,ho.as=Ds,ho.asMilliseconds=As,ho.asSeconds=Ns,ho.asMinutes=Ys,ho.asHours=Ps,ho.asDays=js,ho.asWeeks=Fs,ho.asMonths=Hs,ho.asQuarters=Gs,ho.asYears=qs,ho.valueOf=zs,ho._bubble=ks,ho.clone=Bs,ho.get=Us,ho.milliseconds=$s,ho.seconds=Vs,ho.minutes=Xs,ho.hours=Ks,ho.days=Js,ho.weeks=to,ho.months=Zs,ho.years=Qs,ho.humanize=ao,ho.toISOString=uo,ho.toString=uo,ho.toJSON=uo,ho.locale=cr,ho.localeData=ur,ho.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",uo),ho.lang=lr,q("X",0,0,"unix"),q("x",0,0,"valueOf"),Ot("x",Mt),Ot("X",Lt),Nt("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t))}),Nt("x",function(t,e,n){n._d=new Date(Rt(t))}), //! moment.js -s.version="2.30.1",o(Zn),s.fn=us,s.min=ei,s.max=ni,s.now=ii,s.utc=m,s.unix=hs,s.months=ys,s.isDate=f,s.locale=gn,s.invalid=b,s.duration=Ci,s.isMoment=E,s.weekdays=bs,s.parseZone=ds,s.localeData=bn,s.isDuration=li,s.monthsShort=vs,s.weekdaysMin=ws,s.defineLocale=yn,s.updateLocale=vn,s.locales=Mn,s.weekdaysShort=Ms,s.normalizeUnits=rt,s.relativeTimeRounding=so,s.relativeTimeThreshold=oo,s.calendarFormat=zi,s.prototype=us,s.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},s})}).call(this,n("62e4")(t))},c1f9:function(t,e,n){"use strict";n("6762"),n("2fdb");var i=n("dd1f"),r=n("525b"),s=n("bc9b"),o=n("e660"),a={radio:i["a"],checkbox:r["a"],toggle:s["a"]};e["a"]={name:"QOptionGroup",mixins:[o["a"]],props:{value:{required:!0},type:{default:"radio",validator:function(t){return["radio","checkbox","toggle"].includes(t)}},color:String,keepColor:Boolean,dark:Boolean,options:{type:Array,validator:function(t){return t.every(function(t){return"value"in t&&"label"in t})}},leftLabel:Boolean,inline:Boolean,disable:Boolean,readonly:Boolean},computed:{component:function(){return a[this.type]},model:function(){return Array.isArray(this.value)?this.value.slice():this.value},length:function(){return this.value?"radio"===this.type?1:this.value.length:0},__needsBorder:function(){return!0}},methods:{__onFocus:function(){this.$emit("focus")},__onBlur:function(){this.$emit("blur")},__update:function(t){var e=this;this.$emit("input",t),this.$nextTick(function(){JSON.stringify(t)!==JSON.stringify(e.value)&&e.$emit("change",t)})}},created:function(){var t=Array.isArray(this.value);"radio"===this.type?t&&console.error("q-option-group: model should not be array"):t||console.error("q-option-group: model should be array in your case")},render:function(t){var e=this;return t("div",{staticClass:"q-option-group group",class:{"q-option-group-inline-opts":this.inline}},this.options.map(function(n){return t("div",[t(e.component,{props:{value:e.value,val:n.value,readonly:e.readonly||n.readonly,disable:e.disable||n.disable,label:n.label,leftLabel:e.leftLabel||n.leftLabel,color:n.color||e.color,checkedIcon:n.checkedIcon,uncheckedIcon:n.uncheckedIcon,dark:n.dark||e.dark,keepColor:n.keepColor||e.keepColor},on:{input:e.__update,focus:e.__onFocus,blur:e.__onBlur}})])}))}}},c207:function(t,e){},c240:function(t,e){function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}t.exports=n},c26b:function(t,e,n){"use strict";var i=n("86cc").f,r=n("2aeb"),s=n("dcbc"),o=n("9b43"),a=n("f605"),c=n("4a59"),l=n("01f9"),u=n("d53b"),h=n("7a56"),d=n("9e1e"),f=n("67ab").fastKey,p=n("b39a"),_=d?"_s":"size",m=function(t,e){var n,i=f(e);if("F"!==i)return t._i[i];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,l){var u=t(function(t,i){a(t,u,e,"_i"),t._t=e,t._i=r(null),t._f=void 0,t._l=void 0,t[_]=0,void 0!=i&&c(i,n,t[l],t)});return s(u.prototype,{clear:function(){for(var t=p(this,e),n=t._i,i=t._f;i;i=i.n)i.r=!0,i.p&&(i.p=i.p.n=void 0),delete n[i.i];t._f=t._l=void 0,t[_]=0},delete:function(t){var n=p(this,e),i=m(n,t);if(i){var r=i.n,s=i.p;delete n._i[i.i],i.r=!0,s&&(s.n=r),r&&(r.p=s),n._f==i&&(n._f=r),n._l==i&&(n._l=s),n[_]--}return!!i},forEach:function(t){p(this,e);var n,i=o(t,arguments.length>1?arguments[1]:void 0,3);while(n=n?n.n:this._f){i(n.v,n.k,this);while(n&&n.r)n=n.p}},has:function(t){return!!m(p(this,e),t)}}),d&&i(u.prototype,"size",{get:function(){return p(this,e)[_]}}),u},def:function(t,e,n){var i,r,s=m(t,e);return s?s.v=n:(t._l=s={i:r=f(e,!0),k:e,v:n,p:i=t._l,n:void 0,r:!1},t._f||(t._f=s),i&&(i.n=s),t[_]++,"F"!==r&&(t._i[r]=s)),t},getEntry:m,setStrong:function(t,e,n){l(t,e,function(t,n){this._t=p(t,e),this._k=n,this._l=void 0},function(){var t=this,e=t._k,n=t._l;while(n&&n.r)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?u(0,"keys"==e?n.k:"values"==e?n.v:[n.k,n.v]):(t._t=void 0,u(1))},n?"entries":"values",!n,!0),h(e)}}},c282:function(t,e,n){"use strict";(function(e){var i=n("2582"),r={},s=!1,o=e.chrome&&e.chrome.app&&e.chrome.app.runtime;t.exports={attachEvent:function(t,n){"undefined"!==typeof e.addEventListener?e.addEventListener(t,n,!1):e.document&&e.attachEvent&&(e.document.attachEvent("on"+t,n),e.attachEvent("on"+t,n))},detachEvent:function(t,n){"undefined"!==typeof e.addEventListener?e.removeEventListener(t,n,!1):e.document&&e.detachEvent&&(e.document.detachEvent("on"+t,n),e.detachEvent("on"+t,n))},unloadAdd:function(t){if(o)return null;var e=i.string(8);return r[e]=t,s&&setTimeout(this.triggerUnloadCallbacks,0),e},unloadDel:function(t){t in r&&delete r[t]},triggerUnloadCallbacks:function(){for(var t in r)r[t](),delete r[t]}};var a=function(){s||(s=!0,t.exports.triggerUnloadCallbacks())};o||t.exports.attachEvent("unload",a)}).call(this,n("c8ba"))},c2d3:function(t,e,n){"use strict";window.ol&&!ol.ext&&(ol.ext={});var i=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t};window.ol&&(ol.inherits||(ol.inherits=i)),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),window.Element&&!Element.prototype.remove&&(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),e["a"]=i},c345:function(t,e,n){"use strict";var i=n("c532"),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,s,o={};return t?(i.forEach(t.split("\n"),function(t){if(s=t.indexOf(":"),e=i.trim(t.substr(0,s)).toLowerCase(),n=i.trim(t.substr(s+1)),e){if(o[e]&&r.indexOf(e)>=0)return;o[e]="set-cookie"===e?(o[e]?o[e]:[]).concat([n]):o[e]?o[e]+", "+n:n}}),o):o}},c366:function(t,e,n){var i=n("6821"),r=n("9def"),s=n("77f1");t.exports=function(t){return function(e,n,o){var a,c=i(e),l=r(c.length),u=s(o,l);if(t&&n!=n){while(l>u)if(a=c[u++],a!=a)return!0}else for(;l>u;u++)if((t||u in c)&&c[u]===n)return t||u||0;return!t&&-1}}},c367:function(t,e,n){"use strict";var i=n("8436"),r=n("50ed"),s=n("481b"),o=n("36c3");t.exports=n("30f1")(Array,"Array",function(t,e){this._t=o(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),s.Arguments=s.Array,i("keys"),i("values"),i("entries")},c3a1:function(t,e,n){var i=n("e6f3"),r=n("1691");t.exports=Object.keys||function(t){return i(t,r)}},c401:function(t,e,n){"use strict";var i=n("c532");t.exports=function(t,e,n){return i.forEach(n,function(n){t=n(t,e)}),t}},c4c8:function(t,e,n){"use strict";var i=n("7b52"),r=n("c191"),s=n("cd4a"),o=n("0360"),a=n("78c4"),c=n("76af"),l=n("0dd8"),u=n("67bc"),h=n("70d5"),d=n("668c"),f=n("3b32");class p{constructor(){p.constructor_.apply(this,arguments)}static constructor_(){this._geometryFactory=new s["a"],this._geomGraph=null,this._disconnectedRingcoord=null;const t=arguments[0];this._geomGraph=t}static findDifferentPoint(t,e){for(let n=0;n1)return this._invalidPoint=e.getEdge().getCoordinate(0),!0}}return!1}isNodeConsistentArea(){const t=this._geomGraph.computeSelfNodes(this._li,!0,!0);return t.hasProperIntersection()?(this._invalidPoint=t.getProperIntersectionPoint(),!1):(this._nodeGraph.build(this._geomGraph),this.isNodeEdgeAreaLabelsConsistent())}getInvalidPoint(){return this._invalidPoint}}var w=n("c8c7"),x=n("caca");class L{constructor(){L.constructor_.apply(this,arguments)}static constructor_(){this._graph=null,this._rings=new h["a"],this._totalEnv=new x["a"],this._index=null,this._nestedPt=null;const t=arguments[0];this._graph=t}add(t){this._rings.add(t),this._totalEnv.expandToInclude(t.getEnvelopeInternal())}getNestedPoint(){return this._nestedPt}buildIndex(){this._index=new w["a"];for(let t=0;t=1&&(e=t.getCoordinateN(0)),this._validErr=new E(E.RING_NOT_CLOSED,e)}}checkShellsNotNested(t,e){for(let n=0;n=o[0]&&a[2]<=o[2]||(a[1]>=o[1]&&a[3]<=o[3]||Object(s["a"])(t,e,n,r,function(t,e){return Object(i["G"])(o,t,e)}))))}function a(t,e,n,i,r){for(var s=0,a=n.length;s-1&&e-1){var l=this.buffer[c];r&&(l.exact=r),i&&(l.selectable=i),s&&(l.selected=s),o&&(l.priority=o)}else this.buffer.push(t);a&&(this.bufferTimer=setTimeout(function(){var t=e.buffer.find(function(t){return t.exact&&t.selected})||e.buffer.find(function(t){return t.selectable&&t.selected})||e.buffer.find(function(t){return t.exact})||e.buffer.filter(function(t){return t.selectable}).sort(function(t,e){return e.priority-t.priority})[0]||e.buffer[0];e.buffer.length=0,e.selectTab(t.value)},100))},__swipe:function(t){this.go("left"===t.direction?1:-1)},__repositionBar:function(){var t=this;clearTimeout(this.timer);var e=!1,n=this.$refs.posbar,i=this.currentEl;if(!1!==this.data.highlight&&(this.data.highlight=!1,e=!0),!i)return this.finalPosbar={width:0,left:0},void this.__setPositionBar(0,0);var r=n.parentNode.offsetLeft;e&&this.oldEl&&this.__setPositionBar(this.oldEl.getBoundingClientRect().width,this.oldEl.offsetLeft-r),this.timer=setTimeout(function(){var e=i.getBoundingClientRect().width,s=i.offsetLeft-r;n.classList.remove("contract"),t.oldEl=i,t.finalPosbar={width:e,left:s},t.__setPositionBar(t.posbar.left0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.posbar.width!==t||this.posbar.left!==e){this.posbar={width:t,left:e};var n=this.$q.i18n.rtl?e+t:e;this.$refs.posbar.style.transform="translateX(".concat(n,"px) scaleX(").concat(t,")")}else this.__updatePosbarTransition()},__updatePosbarTransition:function(){if(this.finalPosbar.width===this.posbar.width&&this.finalPosbar.left===this.posbar.left)return this.posbar={},void(!0!==this.data.highlight&&(this.data.highlight=!0));this.$refs.posbar.classList.add("contract"),this.__setPositionBar(this.finalPosbar.width,this.finalPosbar.left)},__redraw:function(){this.$q.platform.is.desktop&&(this.scrollerWidth=Object(i["e"])(this.$refs.scroller),0===this.scrollerWidth&&0===this.$refs.scroller.scrollWidth||(this.scrollerWidth+5=this.$refs.scroller.scrollWidth?"add":"remove";this.$refs.leftScroll.classList[this.$refs.scroller.scrollLeft<=0?"add":"remove"]("disabled"),this.$refs.rightScroll.classList[t]("disabled")}},__getTabElByName:function(t){var e=this.$children.find(function(e){return e.name===t&&e.$el&&1===e.$el.nodeType});if(e)return e.$el},__findTabAndScroll:function(t,e){var n=this;setTimeout(function(){n.__scrollToTab(n.__getTabElByName(t),e)},4*l)},__scrollToTab:function(t,e){if(t&&this.scrollable){var n=this.$refs.scroller.getBoundingClientRect(),i=t.getBoundingClientRect(),r=i.width,s=i.left-n.left;s<0?e?this.$refs.scroller.scrollLeft+=s:this.__animScrollTo(this.$refs.scroller.scrollLeft+s):(s+=r-this.$refs.scroller.offsetWidth,s>0&&(e?this.$refs.scroller.scrollLeft+=s:this.__animScrollTo(this.$refs.scroller.scrollLeft+s)))}},__animScrollTo:function(t){var e=this;this.__stopAnimScroll(),this.__scrollTowards(t),this.scrollTimer=setInterval(function(){e.__scrollTowards(t)&&e.__stopAnimScroll()},5)},__scrollToStart:function(){this.__animScrollTo(0)},__scrollToEnd:function(){this.__animScrollTo(9999)},__stopAnimScroll:function(){clearInterval(this.scrollTimer)},__scrollTowards:function(t){var e=this.$refs.scroller.scrollLeft,n=t=t)&&(i=!0,e=t),this.$refs.scroller.scrollLeft=e,i}},render:function(t){return t("div",{staticClass:"q-tabs flex no-wrap overflow-hidden",class:this.classes},[t("div",{staticClass:"q-tabs-head row",ref:"tabs",class:this.innerClasses},[t("div",{ref:"scroller",staticClass:"q-tabs-scroller row no-wrap"},[this.$slots.title,t("div",{staticClass:"relative-position self-stretch q-tabs-global-bar-container",class:this.posbarClasses},[t("div",{ref:"posbar",staticClass:"q-tabs-bar q-tabs-global-bar",class:this.data.underlineClass,on:{transitionend:this.__updatePosbarTransition}})])]),t("div",{ref:"leftScroll",staticClass:"row flex-center q-tabs-left-scroll",on:{mousedown:this.__scrollToStart,touchstart:this.__scrollToStart,mouseup:this.__stopAnimScroll,mouseleave:this.__stopAnimScroll,touchend:this.__stopAnimScroll}},[t(s["a"],{props:{name:this.$q.icon.tabs.left}})]),t("div",{ref:"rightScroll",staticClass:"row flex-center q-tabs-right-scroll",on:{mousedown:this.__scrollToEnd,touchstart:this.__scrollToEnd,mouseup:this.__stopAnimScroll,mouseleave:this.__stopAnimScroll,touchend:this.__stopAnimScroll}},[t(s["a"],{props:{name:this.$q.icon.tabs.right}})])]),t("div",{staticClass:"q-tabs-panes",class:this.panesContainerClass,directives:this.swipeable?[{name:"touch-swipe",value:this.__swipe}]:null},this.$slots.default)])},created:function(){this.timer=null,this.scrollTimer=null,this.bufferTimer=null,this.buffer=[],this.scrollable=!this.$q.platform.is.desktop,this.__redraw=Object(r["a"])(this.__redraw,l),this.__updateScrollIndicator=Object(r["a"])(this.__updateScrollIndicator,l)},mounted:function(){var t=this;this.$nextTick(function(){t.$refs.scroller&&(t.$refs.scroller.addEventListener("scroll",t.__updateScrollIndicator,o["e"].passive),window.addEventListener("resize",t.__redraw,o["e"].passive),""!==t.data.tabName&&t.value&&t.selectTab(t.value),t.__redraw(),t.__findTabAndScroll(t.data.tabName,!0))})},beforeDestroy:function(){clearTimeout(this.timer),clearTimeout(this.bufferTimer),this.__stopAnimScroll(),this.$refs.scroller.removeEventListener("scroll",this.__updateScrollIndicator,o["e"].passive),window.removeEventListener("resize",this.__redraw,o["e"].passive),this.__redraw.cancel(),this.__updateScrollIndicator.cancel()}}},c569:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n("0ba1"),r=n("af0f"),s=n("76fd"),o=n("968e"),a=n("223d"),c=n("caca");class l{static scroll(t,e){const n=l.indexOf(e,t);if(n<0)return null;const i=new Array(t.length).fill(null);o["a"].arraycopy(t,n,i,0,t.length-n),o["a"].arraycopy(t,0,i,t.length-n,n),o["a"].arraycopy(i,0,t,0,t.length)}static removeRepeatedPoints(t){if(!l.hasRepeatedPoints(t))return t;const e=new i["a"](t,!1);return e.toCoordinateArray()}static reverse(t){const e=t.length-1,n=Math.trunc(e/2);for(let i=0;i<=n;i++){const n=t[i];t[i]=t[e-i],t[e-i]=n}}static removeNull(t){let e=0;for(let r=0;r=t.length&&(i=0),n=t?e:[]}static indexOf(t,e){for(let n=0;n0)&&(e=t[n]);return e}}class u{compare(t,e){const n=t,i=e;return l.compare(n,i)}get interfaces_(){return[a["a"]]}}class h{compare(t,e){const n=t,i=e;if(n.lengthi.length)return 1;if(0===n.length)return 0;const r=l.compare(n,i),s=l.isEqualReversed(n,i);return s?0:r}OLDcompare(t,e){const n=t,i=e;if(n.lengthi.length)return 1;if(0===n.length)return 0;const r=l.increasingDirection(n),s=l.increasingDirection(i);let o=r>0?0:n.length-1,a=s>0?0:n.length-1;for(let c=0;c2){e=y?e.trim():d(e,3);var n,i,r,s=e.charCodeAt(0);if(43===s||45===s){if(n=e.charCodeAt(2),88===n||120===n)return NaN}else if(48===s){switch(e.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+e}for(var o,c=e.slice(2),l=0,u=c.length;lr)return NaN;return parseInt(c,i)}}return+e};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof p&&(g?c(function(){m.valueOf.call(n)}):s(n)!=f)?o(new _(v(e)),n,p):v(e)};for(var b,M=n("9e1e")?l(_):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;M.length>w;w++)r(_,b=M[w])&&!r(p,b)&&h(p,b,u(_,b));p.prototype=m,m.constructor=p,n("2aba")(i,f,p)}},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},c6a3:function(t,e,n){"use strict";n.d(e,"a",function(){return i});class i{add(){}addAll(){}isEmpty(){}iterator(){}size(){}toArray(){}remove(){}}},c6e1:function(t,e,n){(function(e,n){t.exports=n()})(0,function(){"use strict";var t=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},e=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";t(this,n),this.command=e,this.headers=i,this.body=r}return e(n,[{key:"toString",value:function(){var t=this,e=[this.command],n=!1===this.headers["content-length"];return n&&delete this.headers["content-length"],Object.keys(this.headers).forEach(function(n){var i=t.headers[n];e.push(n+":"+i)}),this.body&&!n&&e.push("content-length:"+h(this.body)),e.push(a.LF+this.body),e.join(a.LF)}}],[{key:"unmarshallSingle",value:function(t){var e=t.search(new RegExp(a.LF+a.LF)),i=t.substring(0,e).split(a.LF),r=i.shift(),s={},o="",l=e+2,u=!0,h=!1,d=void 0;try{for(var f,p=i.reverse()[Symbol.iterator]();!(u=(f=p.next()).done);u=!0){var _=f.value,m=_.indexOf(":");s[c(_.substring(0,m))]=c(_.substring(m+1))}}catch(t){h=!0,d=t}finally{try{!u&&p.return&&p.return()}finally{if(h)throw d}}if(s["content-length"]){var g=parseInt(s["content-length"],10);o=(""+t).substring(l,l+g)}else for(var y=null,v=l;v1&&void 0!==arguments[1]?arguments[1]:{};t(this,i);var r=n.binary,s=void 0!==r&&r,o=n.heartbeat,a=void 0===o?{outgoing:1e4,incoming:1e4}:o,c=n.debug,l=void 0===c||c,u=n.protocols,h=void 0===u?[]:u;this.ws=e,this.ws.binaryType="arraybuffer",this.isBinary=!!s,this.hasDebug=!!l,this.connected=!1,this.heartbeat=a||{outgoing:0,incoming:0},this.maxWebSocketFrameSize=16384,this.subscriptions={},this.partialData="",this.protocols=h}return e(i,[{key:"debug",value:function(){var t;this.hasDebug&&(t=console).log.apply(t,arguments)}},{key:"connect",value:function(){var t=this,e=this._parseConnect.apply(this,arguments),i=n(e,3),s=i[0],c=i[1],l=i[2];this.connectCallback=c,this.debug("Opening Web Socket..."),this.ws.onmessage=function(e){var n=e.data;if(e.data instanceof ArrayBuffer&&(n=u(new Uint8Array(e.data))),t.serverActivity=Date.now(),n!==a.LF){t.debug("<<< "+n);var i=f.unmarshall(t.partialData+n);t.partialData=i.partial,i.frames.forEach(function(e){switch(e.command){case"CONNECTED":t.debug("connected to server "+e.headers.server),t.connected=!0,t.version=e.headers.version,t._setupHeartbeat(e.headers),c&&c(e);break;case"MESSAGE":var n=e.headers.subscription,i=t.subscriptions[n]||t.onreceive;if(i){var s=t.version===r.V1_2&&e.headers.ack||e.headers["message-id"];e.ack=t.ack.bind(t,s,n),e.nack=t.nack.bind(t,s,n),i(e)}else t.debug("Unhandled received MESSAGE: "+e);break;case"RECEIPT":t.onreceipt&&t.onreceipt(e);break;case"ERROR":l&&l(e);break;default:t.debug("Unhandled frame: "+e)}})}else t.debug("<<< PONG")},this.ws.onclose=function(e){t.debug("Whoops! Lost connection to "+t.ws.url+":",{event:e}),t._cleanUp(),l&&l(e)},this.ws.onopen=function(){t.debug("Web Socket Opened..."),s["accept-version"]=o(t.ws.protocol||t.protocols[0],t.debug.bind(t)),s["heart-beat"]||(s["heart-beat"]=[t.heartbeat.outgoing,t.heartbeat.incoming].join(",")),t._transmit("CONNECT",s)},this.ws.readyState===this.ws.OPEN&&this.ws.onopen()}},{key:"disconnect",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._transmit("DISCONNECT",e),this.ws.onclose=null,this.ws.close(),this._cleanUp(),t&&t()}},{key:"send",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Object.assign({},n);i.destination=t,this._transmit("SEND",i,e)}},{key:"begin",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"tx-"+d();return this._transmit("BEGIN",{transaction:t}),{id:t,commit:this.commit.bind(this,t),abort:this.abort.bind(this,t)}}},{key:"commit",value:function(t){this._transmit("COMMIT",{transaction:t})}},{key:"abort",value:function(t){this._transmit("ABORT",{transaction:t})}},{key:"ack",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Object.assign({},n),s=this.version===r.V1_2?"id":"message-id";i[s]=t,i.subscription=e,this._transmit("ACK",i)}},{key:"nack",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Object.assign({},n),s=this.version===r.V1_2?"id":"message-id";i[s]=t,i.subscription=e,this._transmit("NACK",i)}},{key:"subscribe",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Object.assign({},n);return i.id||(i.id="sub-"+d()),i.destination=t,this.subscriptions[i.id]=e,this._transmit("SUBSCRIBE",i),{id:i.id,unsubscribe:this.unsubscribe.bind(this,i.id)}}},{key:"unsubscribe",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign({},e);delete this.subscriptions[t],n.id=t,this._transmit("UNSUBSCRIBE",n)}},{key:"_cleanUp",value:function(){this.connected=!1,clearInterval(this.pinger),clearInterval(this.ponger)}},{key:"_transmit",value:function(t,e,n){var i=f.marshall(t,e,n);this.debug(">>> "+i,{frame:{command:t,headers:e,body:n}}),this._wsSend(i)}},{key:"_wsSend",value:function(t){this.isBinary&&(t=l(t)),this.debug(">>> length "+t.length);while(1){if(!(t.length>this.maxWebSocketFrameSize))return this.ws.send(t);this.ws.send(t.slice(0,this.maxWebSocketFrameSize)),t=t.slice(this.maxWebSocketFrameSize),this.debug("remaining = "+t.length)}}},{key:"_setupHeartbeat",value:function(t){var e=this;if(this.version===r.V1_1||this.version===r.V1_2){var i=(t["heart-beat"]||"0,0").split(",").map(function(t){return parseInt(t,10)}),s=n(i,2),o=s[0],c=s[1];if(0!==this.heartbeat.outgoing&&0!==c){var l=Math.max(this.heartbeat.outgoing,c);this.debug("send PING every "+l+"ms"),this.pinger=setInterval(function(){e._wsSend(a.LF),e.debug(">>> PING")},l)}if(0!==this.heartbeat.incoming&&0!==o){var u=Math.max(this.heartbeat.incoming,o);this.debug("check PONG every "+u+"ms"),this.ponger=setInterval(function(){var t=Date.now()-e.serverActivity;t>2*u&&(e.debug("did not receive server activity for the last "+t+"ms"),e.ws.close())},u)}}}},{key:"_parseConnect",value:function(){for(var t={},e=void 0,n=void 0,i=arguments.length,r=Array(i),s=0;s1&&void 0!==arguments[1]?arguments[1]:{},n=new WebSocket(t,e.protocols||r.supportedProtocols());return new p(n,e)},over:function(){for(var t=arguments.length,e=Array(t),n=0;n1?arguments[1]:void 0,3);while(n=n?n.n:this._f){i(n.v,n.k,this);while(n&&n.r)n=n.p}},has:function(t){return!!m(p(this,e),t)}}),d&&i(u.prototype,"size",{get:function(){return p(this,e)[_]}}),u},def:function(t,e,n){var i,r,s=m(t,e);return s?s.v=n:(t._l=s={i:r=f(e,!0),k:e,v:n,p:i=t._l,n:void 0,r:!1},t._f||(t._f=s),i&&(i.n=s),t[_]++,"F"!==r&&(t._i[r]=s)),t},getEntry:m,setStrong:function(t,e,n){l(t,e,function(t,n){this._t=p(t,e),this._k=n,this._l=void 0},function(){var t=this,e=t._k,n=t._l;while(n&&n.r)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?u(0,"keys"==e?n.k:"values"==e?n.v:[n.k,n.v]):(t._t=void 0,u(1))},n?"entries":"values",!n,!0),h(e)}}},c282:function(t,e,n){"use strict";(function(e){var i=n("2582"),r={},s=!1,o=e.chrome&&e.chrome.app&&e.chrome.app.runtime;t.exports={attachEvent:function(t,n){"undefined"!==typeof e.addEventListener?e.addEventListener(t,n,!1):e.document&&e.attachEvent&&(e.document.attachEvent("on"+t,n),e.attachEvent("on"+t,n))},detachEvent:function(t,n){"undefined"!==typeof e.addEventListener?e.removeEventListener(t,n,!1):e.document&&e.detachEvent&&(e.document.detachEvent("on"+t,n),e.detachEvent("on"+t,n))},unloadAdd:function(t){if(o)return null;var e=i.string(8);return r[e]=t,s&&setTimeout(this.triggerUnloadCallbacks,0),e},unloadDel:function(t){t in r&&delete r[t]},triggerUnloadCallbacks:function(){for(var t in r)r[t](),delete r[t]}};var a=function(){s||(s=!0,t.exports.triggerUnloadCallbacks())};o||t.exports.attachEvent("unload",a)}).call(this,n("c8ba"))},c2d3:function(t,e,n){"use strict";window.ol&&!ol.ext&&(ol.ext={});var i=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t};window.ol&&(ol.inherits||(ol.inherits=i)),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),window.Element&&!Element.prototype.remove&&(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),e["a"]=i},c345:function(t,e,n){"use strict";var i=n("c532"),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,s,o={};return t?(i.forEach(t.split("\n"),function(t){if(s=t.indexOf(":"),e=i.trim(t.substr(0,s)).toLowerCase(),n=i.trim(t.substr(s+1)),e){if(o[e]&&r.indexOf(e)>=0)return;o[e]="set-cookie"===e?(o[e]?o[e]:[]).concat([n]):o[e]?o[e]+", "+n:n}}),o):o}},c366:function(t,e,n){var i=n("6821"),r=n("9def"),s=n("77f1");t.exports=function(t){return function(e,n,o){var a,c=i(e),l=r(c.length),u=s(o,l);if(t&&n!=n){while(l>u)if(a=c[u++],a!=a)return!0}else for(;l>u;u++)if((t||u in c)&&c[u]===n)return t||u||0;return!t&&-1}}},c367:function(t,e,n){"use strict";var i=n("8436"),r=n("50ed"),s=n("481b"),o=n("36c3");t.exports=n("30f1")(Array,"Array",function(t,e){this._t=o(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),s.Arguments=s.Array,i("keys"),i("values"),i("entries")},c3a1:function(t,e,n){var i=n("e6f3"),r=n("1691");t.exports=Object.keys||function(t){return i(t,r)}},c3e0:function(t,e,n){"use strict";var i=n("f9ae"),r=n("2aa9"),s=[].__proto__===Array.prototype,o=s&&r&&r(Object.prototype,"__proto__"),a=Object,c=a.getPrototypeOf;t.exports=o&&"function"===typeof o.get?i([o.get]):"function"===typeof c&&function(t){return c(null==t?t:a(t))}},c401:function(t,e,n){"use strict";var i=n("c532");t.exports=function(t,e,n){return i.forEach(n,function(n){t=n(t,e)}),t}},c4c8:function(t,e,n){"use strict";var i=n("7b52"),r=n("c191"),s=n("cd4a"),o=n("0360"),a=n("78c4"),c=n("76af"),l=n("0dd8"),u=n("67bc"),h=n("70d5"),d=n("668c"),f=n("3b32");class p{constructor(){p.constructor_.apply(this,arguments)}static constructor_(){this._geometryFactory=new s["a"],this._geomGraph=null,this._disconnectedRingcoord=null;const t=arguments[0];this._geomGraph=t}static findDifferentPoint(t,e){for(let n=0;n1)return this._invalidPoint=e.getEdge().getCoordinate(0),!0}}return!1}isNodeConsistentArea(){const t=this._geomGraph.computeSelfNodes(this._li,!0,!0);return t.hasProperIntersection()?(this._invalidPoint=t.getProperIntersectionPoint(),!1):(this._nodeGraph.build(this._geomGraph),this.isNodeEdgeAreaLabelsConsistent())}getInvalidPoint(){return this._invalidPoint}}var w=n("c8c7"),x=n("caca");class L{constructor(){L.constructor_.apply(this,arguments)}static constructor_(){this._graph=null,this._rings=new h["a"],this._totalEnv=new x["a"],this._index=null,this._nestedPt=null;const t=arguments[0];this._graph=t}add(t){this._rings.add(t),this._totalEnv.expandToInclude(t.getEnvelopeInternal())}getNestedPoint(){return this._nestedPt}buildIndex(){this._index=new w["a"];for(let t=0;t=1&&(e=t.getCoordinateN(0)),this._validErr=new E(E.RING_NOT_CLOSED,e)}}checkShellsNotNested(t,e){for(let n=0;n=o[0]&&a[2]<=o[2]||(a[1]>=o[1]&&a[3]<=o[3]||Object(s["a"])(t,e,n,r,function(t,e){return Object(i["G"])(o,t,e)}))))}function a(t,e,n,i,r){for(var s=0,a=n.length;s-1&&e-1){var l=this.buffer[c];r&&(l.exact=r),i&&(l.selectable=i),s&&(l.selected=s),o&&(l.priority=o)}else this.buffer.push(t);a&&(this.bufferTimer=setTimeout(function(){var t=e.buffer.find(function(t){return t.exact&&t.selected})||e.buffer.find(function(t){return t.selectable&&t.selected})||e.buffer.find(function(t){return t.exact})||e.buffer.filter(function(t){return t.selectable}).sort(function(t,e){return e.priority-t.priority})[0]||e.buffer[0];e.buffer.length=0,e.selectTab(t.value)},100))},__swipe:function(t){this.go("left"===t.direction?1:-1)},__repositionBar:function(){var t=this;clearTimeout(this.timer);var e=!1,n=this.$refs.posbar,i=this.currentEl;if(!1!==this.data.highlight&&(this.data.highlight=!1,e=!0),!i)return this.finalPosbar={width:0,left:0},void this.__setPositionBar(0,0);var r=n.parentNode.offsetLeft;e&&this.oldEl&&this.__setPositionBar(this.oldEl.getBoundingClientRect().width,this.oldEl.offsetLeft-r),this.timer=setTimeout(function(){var e=i.getBoundingClientRect().width,s=i.offsetLeft-r;n.classList.remove("contract"),t.oldEl=i,t.finalPosbar={width:e,left:s},t.__setPositionBar(t.posbar.left0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.posbar.width!==t||this.posbar.left!==e){this.posbar={width:t,left:e};var n=this.$q.i18n.rtl?e+t:e;this.$refs.posbar.style.transform="translateX(".concat(n,"px) scaleX(").concat(t,")")}else this.__updatePosbarTransition()},__updatePosbarTransition:function(){if(this.finalPosbar.width===this.posbar.width&&this.finalPosbar.left===this.posbar.left)return this.posbar={},void(!0!==this.data.highlight&&(this.data.highlight=!0));this.$refs.posbar.classList.add("contract"),this.__setPositionBar(this.finalPosbar.width,this.finalPosbar.left)},__redraw:function(){this.$q.platform.is.desktop&&(this.scrollerWidth=Object(i["e"])(this.$refs.scroller),0===this.scrollerWidth&&0===this.$refs.scroller.scrollWidth||(this.scrollerWidth+5=this.$refs.scroller.scrollWidth?"add":"remove";this.$refs.leftScroll.classList[this.$refs.scroller.scrollLeft<=0?"add":"remove"]("disabled"),this.$refs.rightScroll.classList[t]("disabled")}},__getTabElByName:function(t){var e=this.$children.find(function(e){return e.name===t&&e.$el&&1===e.$el.nodeType});if(e)return e.$el},__findTabAndScroll:function(t,e){var n=this;setTimeout(function(){n.__scrollToTab(n.__getTabElByName(t),e)},4*l)},__scrollToTab:function(t,e){if(t&&this.scrollable){var n=this.$refs.scroller.getBoundingClientRect(),i=t.getBoundingClientRect(),r=i.width,s=i.left-n.left;s<0?e?this.$refs.scroller.scrollLeft+=s:this.__animScrollTo(this.$refs.scroller.scrollLeft+s):(s+=r-this.$refs.scroller.offsetWidth,s>0&&(e?this.$refs.scroller.scrollLeft+=s:this.__animScrollTo(this.$refs.scroller.scrollLeft+s)))}},__animScrollTo:function(t){var e=this;this.__stopAnimScroll(),this.__scrollTowards(t),this.scrollTimer=setInterval(function(){e.__scrollTowards(t)&&e.__stopAnimScroll()},5)},__scrollToStart:function(){this.__animScrollTo(0)},__scrollToEnd:function(){this.__animScrollTo(9999)},__stopAnimScroll:function(){clearInterval(this.scrollTimer)},__scrollTowards:function(t){var e=this.$refs.scroller.scrollLeft,n=t=t)&&(i=!0,e=t),this.$refs.scroller.scrollLeft=e,i}},render:function(t){return t("div",{staticClass:"q-tabs flex no-wrap overflow-hidden",class:this.classes},[t("div",{staticClass:"q-tabs-head row",ref:"tabs",class:this.innerClasses},[t("div",{ref:"scroller",staticClass:"q-tabs-scroller row no-wrap"},[this.$slots.title,t("div",{staticClass:"relative-position self-stretch q-tabs-global-bar-container",class:this.posbarClasses},[t("div",{ref:"posbar",staticClass:"q-tabs-bar q-tabs-global-bar",class:this.data.underlineClass,on:{transitionend:this.__updatePosbarTransition}})])]),t("div",{ref:"leftScroll",staticClass:"row flex-center q-tabs-left-scroll",on:{mousedown:this.__scrollToStart,touchstart:this.__scrollToStart,mouseup:this.__stopAnimScroll,mouseleave:this.__stopAnimScroll,touchend:this.__stopAnimScroll}},[t(s["a"],{props:{name:this.$q.icon.tabs.left}})]),t("div",{ref:"rightScroll",staticClass:"row flex-center q-tabs-right-scroll",on:{mousedown:this.__scrollToEnd,touchstart:this.__scrollToEnd,mouseup:this.__stopAnimScroll,mouseleave:this.__stopAnimScroll,touchend:this.__stopAnimScroll}},[t(s["a"],{props:{name:this.$q.icon.tabs.right}})])]),t("div",{staticClass:"q-tabs-panes",class:this.panesContainerClass,directives:this.swipeable?[{name:"touch-swipe",value:this.__swipe}]:null},this.$slots.default)])},created:function(){this.timer=null,this.scrollTimer=null,this.bufferTimer=null,this.buffer=[],this.scrollable=!this.$q.platform.is.desktop,this.__redraw=Object(r["a"])(this.__redraw,l),this.__updateScrollIndicator=Object(r["a"])(this.__updateScrollIndicator,l)},mounted:function(){var t=this;this.$nextTick(function(){t.$refs.scroller&&(t.$refs.scroller.addEventListener("scroll",t.__updateScrollIndicator,o["e"].passive),window.addEventListener("resize",t.__redraw,o["e"].passive),""!==t.data.tabName&&t.value&&t.selectTab(t.value),t.__redraw(),t.__findTabAndScroll(t.data.tabName,!0))})},beforeDestroy:function(){clearTimeout(this.timer),clearTimeout(this.bufferTimer),this.__stopAnimScroll(),this.$refs.scroller.removeEventListener("scroll",this.__updateScrollIndicator,o["e"].passive),window.removeEventListener("resize",this.__redraw,o["e"].passive),this.__redraw.cancel(),this.__updateScrollIndicator.cancel()}}},c569:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n("0ba1"),r=n("af0f"),s=n("76fd"),o=n("968e"),a=n("223d"),c=n("caca");class l{static scroll(t,e){const n=l.indexOf(e,t);if(n<0)return null;const i=new Array(t.length).fill(null);o["a"].arraycopy(t,n,i,0,t.length-n),o["a"].arraycopy(t,0,i,t.length-n,n),o["a"].arraycopy(i,0,t,0,t.length)}static removeRepeatedPoints(t){if(!l.hasRepeatedPoints(t))return t;const e=new i["a"](t,!1);return e.toCoordinateArray()}static reverse(t){const e=t.length-1,n=Math.trunc(e/2);for(let i=0;i<=n;i++){const n=t[i];t[i]=t[e-i],t[e-i]=n}}static removeNull(t){let e=0;for(let r=0;r=t.length&&(i=0),n=t?e:[]}static indexOf(t,e){for(let n=0;n0)&&(e=t[n]);return e}}class u{compare(t,e){const n=t,i=e;return l.compare(n,i)}get interfaces_(){return[a["a"]]}}class h{compare(t,e){const n=t,i=e;if(n.lengthi.length)return 1;if(0===n.length)return 0;const r=l.compare(n,i),s=l.isEqualReversed(n,i);return s?0:r}OLDcompare(t,e){const n=t,i=e;if(n.lengthi.length)return 1;if(0===n.length)return 0;const r=l.increasingDirection(n),s=l.increasingDirection(i);let o=r>0?0:n.length-1,a=s>0?0:n.length-1;for(let c=0;c2){e=y?e.trim():d(e,3);var n,i,r,s=e.charCodeAt(0);if(43===s||45===s){if(n=e.charCodeAt(2),88===n||120===n)return NaN}else if(48===s){switch(e.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+e}for(var o,c=e.slice(2),l=0,u=c.length;lr)return NaN;return parseInt(c,i)}}return+e};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof p&&(g?c(function(){m.valueOf.call(n)}):s(n)!=f)?o(new _(v(e)),n,p):v(e)};for(var b,M=n("9e1e")?l(_):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;M.length>w;w++)r(_,b=M[w])&&!r(p,b)&&h(p,b,u(_,b));p.prototype=m,m.constructor=p,n("2aba")(i,f,p)}},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},c6a3:function(t,e,n){"use strict";n.d(e,"a",function(){return i});class i{add(){}addAll(){}isEmpty(){}iterator(){}size(){}toArray(){}remove(){}}},c6e1:function(t,e,n){(function(e,n){t.exports=n()})(0,function(){"use strict";var t=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},e=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";t(this,n),this.command=e,this.headers=i,this.body=r}return e(n,[{key:"toString",value:function(){var t=this,e=[this.command],n=!1===this.headers["content-length"];return n&&delete this.headers["content-length"],Object.keys(this.headers).forEach(function(n){var i=t.headers[n];e.push(n+":"+i)}),this.body&&!n&&e.push("content-length:"+h(this.body)),e.push(a.LF+this.body),e.join(a.LF)}}],[{key:"unmarshallSingle",value:function(t){var e=t.search(new RegExp(a.LF+a.LF)),i=t.substring(0,e).split(a.LF),r=i.shift(),s={},o="",l=e+2,u=!0,h=!1,d=void 0;try{for(var f,p=i.reverse()[Symbol.iterator]();!(u=(f=p.next()).done);u=!0){var _=f.value,m=_.indexOf(":");s[c(_.substring(0,m))]=c(_.substring(m+1))}}catch(t){h=!0,d=t}finally{try{!u&&p.return&&p.return()}finally{if(h)throw d}}if(s["content-length"]){var g=parseInt(s["content-length"],10);o=(""+t).substring(l,l+g)}else for(var y=null,v=l;v1&&void 0!==arguments[1]?arguments[1]:{};t(this,i);var r=n.binary,s=void 0!==r&&r,o=n.heartbeat,a=void 0===o?{outgoing:1e4,incoming:1e4}:o,c=n.debug,l=void 0===c||c,u=n.protocols,h=void 0===u?[]:u;this.ws=e,this.ws.binaryType="arraybuffer",this.isBinary=!!s,this.hasDebug=!!l,this.connected=!1,this.heartbeat=a||{outgoing:0,incoming:0},this.maxWebSocketFrameSize=16384,this.subscriptions={},this.partialData="",this.protocols=h}return e(i,[{key:"debug",value:function(){var t;this.hasDebug&&(t=console).log.apply(t,arguments)}},{key:"connect",value:function(){var t=this,e=this._parseConnect.apply(this,arguments),i=n(e,3),s=i[0],c=i[1],l=i[2];this.connectCallback=c,this.debug("Opening Web Socket..."),this.ws.onmessage=function(e){var n=e.data;if(e.data instanceof ArrayBuffer&&(n=u(new Uint8Array(e.data))),t.serverActivity=Date.now(),n!==a.LF){t.debug("<<< "+n);var i=f.unmarshall(t.partialData+n);t.partialData=i.partial,i.frames.forEach(function(e){switch(e.command){case"CONNECTED":t.debug("connected to server "+e.headers.server),t.connected=!0,t.version=e.headers.version,t._setupHeartbeat(e.headers),c&&c(e);break;case"MESSAGE":var n=e.headers.subscription,i=t.subscriptions[n]||t.onreceive;if(i){var s=t.version===r.V1_2&&e.headers.ack||e.headers["message-id"];e.ack=t.ack.bind(t,s,n),e.nack=t.nack.bind(t,s,n),i(e)}else t.debug("Unhandled received MESSAGE: "+e);break;case"RECEIPT":t.onreceipt&&t.onreceipt(e);break;case"ERROR":l&&l(e);break;default:t.debug("Unhandled frame: "+e)}})}else t.debug("<<< PONG")},this.ws.onclose=function(e){t.debug("Whoops! Lost connection to "+t.ws.url+":",{event:e}),t._cleanUp(),l&&l(e)},this.ws.onopen=function(){t.debug("Web Socket Opened..."),s["accept-version"]=o(t.ws.protocol||t.protocols[0],t.debug.bind(t)),s["heart-beat"]||(s["heart-beat"]=[t.heartbeat.outgoing,t.heartbeat.incoming].join(",")),t._transmit("CONNECT",s)},this.ws.readyState===this.ws.OPEN&&this.ws.onopen()}},{key:"disconnect",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._transmit("DISCONNECT",e),this.ws.onclose=null,this.ws.close(),this._cleanUp(),t&&t()}},{key:"send",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Object.assign({},n);i.destination=t,this._transmit("SEND",i,e)}},{key:"begin",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"tx-"+d();return this._transmit("BEGIN",{transaction:t}),{id:t,commit:this.commit.bind(this,t),abort:this.abort.bind(this,t)}}},{key:"commit",value:function(t){this._transmit("COMMIT",{transaction:t})}},{key:"abort",value:function(t){this._transmit("ABORT",{transaction:t})}},{key:"ack",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Object.assign({},n),s=this.version===r.V1_2?"id":"message-id";i[s]=t,i.subscription=e,this._transmit("ACK",i)}},{key:"nack",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Object.assign({},n),s=this.version===r.V1_2?"id":"message-id";i[s]=t,i.subscription=e,this._transmit("NACK",i)}},{key:"subscribe",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Object.assign({},n);return i.id||(i.id="sub-"+d()),i.destination=t,this.subscriptions[i.id]=e,this._transmit("SUBSCRIBE",i),{id:i.id,unsubscribe:this.unsubscribe.bind(this,i.id)}}},{key:"unsubscribe",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign({},e);delete this.subscriptions[t],n.id=t,this._transmit("UNSUBSCRIBE",n)}},{key:"_cleanUp",value:function(){this.connected=!1,clearInterval(this.pinger),clearInterval(this.ponger)}},{key:"_transmit",value:function(t,e,n){var i=f.marshall(t,e,n);this.debug(">>> "+i,{frame:{command:t,headers:e,body:n}}),this._wsSend(i)}},{key:"_wsSend",value:function(t){this.isBinary&&(t=l(t)),this.debug(">>> length "+t.length);while(1){if(!(t.length>this.maxWebSocketFrameSize))return this.ws.send(t);this.ws.send(t.slice(0,this.maxWebSocketFrameSize)),t=t.slice(this.maxWebSocketFrameSize),this.debug("remaining = "+t.length)}}},{key:"_setupHeartbeat",value:function(t){var e=this;if(this.version===r.V1_1||this.version===r.V1_2){var i=(t["heart-beat"]||"0,0").split(",").map(function(t){return parseInt(t,10)}),s=n(i,2),o=s[0],c=s[1];if(0!==this.heartbeat.outgoing&&0!==c){var l=Math.max(this.heartbeat.outgoing,c);this.debug("send PING every "+l+"ms"),this.pinger=setInterval(function(){e._wsSend(a.LF),e.debug(">>> PING")},l)}if(0!==this.heartbeat.incoming&&0!==o){var u=Math.max(this.heartbeat.incoming,o);this.debug("check PONG every "+u+"ms"),this.ponger=setInterval(function(){var t=Date.now()-e.serverActivity;t>2*u&&(e.debug("did not receive server activity for the last "+t+"ms"),e.ws.close())},u)}}}},{key:"_parseConnect",value:function(){for(var t={},e=void 0,n=void 0,i=arguments.length,r=Array(i),s=0;s1&&void 0!==arguments[1]?arguments[1]:{},n=new WebSocket(t,e.protocols||r.supportedProtocols());return new p(n,e)},over:function(){for(var t=arguments.length,e=Array(t),n=0;n - * @license MIT - */ -t.exports=function(t){return null!=t&&null!=t.constructor&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}},c7e3:function(t,e,n){"use strict";var i=n("2709"),r=n("fe5c"),s=n("0dd8"),o=n("c569"),a=n("70d5"),c=n("668c"),l=n("3b32");class u{constructor(){u.constructor_.apply(this,arguments)}static constructor_(){this._geometryFactory=null,this._shellList=new a["a"];const t=arguments[0];this._geometryFactory=t}static findEdgeRingContaining(t,e){const n=t.getLinearRing(),r=n.getEnvelopeInternal();let s=n.getCoordinateN(0),a=null,c=null;for(let l=e.iterator();l.hasNext();){const t=l.next(),e=t.getLinearRing(),u=e.getEnvelopeInternal();if(u.equals(r))continue;if(!u.contains(r))continue;s=o["a"].ptNotInList(n.getCoordinates(),e.getCoordinates());let h=!1;i["a"].isInRing(s,e.getCoordinates())&&(h=!0),h&&(null===a||c.contains(u))&&(a=t,c=a.getLinearRing().getEnvelopeInternal())}return a}sortShellsAndHoles(t,e,n){for(let i=t.iterator();i.hasNext();){const t=i.next();t.isHole()?n.add(t):e.add(t)}}computePolygons(t){const e=new a["a"];for(let n=t.iterator();n.hasNext();){const t=n.next(),i=t.toPolygon(this._geometryFactory);e.add(i)}return e}placeFreeHoles(t,e){for(let n=e.iterator();n.hasNext();){const e=n.next();if(null===e.getShell()){const n=u.findEdgeRingContaining(e,t);if(null===n)throw new r["a"]("unable to assign hole to a shell",e.getCoordinate(0));e.setShell(n)}}}buildMinimalEdgeRings(t,e,n){const i=new a["a"];for(let r=t.iterator();r.hasNext();){const t=r.next();if(t.getMaxNodeDegree()>2){t.linkDirectedEdgesForMinimalEdgeRings();const i=t.buildMinimalRings(),r=this.findShell(i);null!==r?(this.placePolygonHoles(r,i),e.add(r)):n.addAll(i)}else i.add(t)}return i}buildMaximalEdgeRings(t){const e=new a["a"];for(let n=t.iterator();n.hasNext();){const t=n.next();if(t.isInResult()&&t.getLabel().isArea()&&null===t.getEdgeRing()){const n=new s["a"](t,this._geometryFactory);e.add(n),n.setInResult()}}return e}placePolygonHoles(t,e){for(let n=e.iterator();n.hasNext();){const e=n.next();e.isHole()&&e.setShell(t)}}getPolygons(){const t=this.computePolygons(this._shellList);return t}findShell(t){let e=0,n=null;for(let i=t.iterator();i.hasNext();){const t=i.next();t.isHole()||(n=t,e++)}return c["a"].isTrue(e<=1,"found two shells in MinimalEdgeRing list"),n}add(){if(1===arguments.length){const t=arguments[0];this.add(t.getEdgeEnds(),t.getNodes())}else if(2===arguments.length){const t=arguments[0],e=arguments[1];l["a"].linkResultDirectedEdges(e);const n=this.buildMaximalEdgeRings(t),i=new a["a"],r=this.buildMinimalEdgeRings(n,this._shellList,i);this.sortShellsAndHoles(r,this._shellList,i),this.placeFreeHoles(this._shellList,i)}}}var h=n("0360"),d=n("fd89");class f{constructor(){f.constructor_.apply(this,arguments)}static constructor_(){this._op=null,this._geometryFactory=null,this._ptLocator=null,this._lineEdgesList=new a["a"],this._resultLineList=new a["a"];const t=arguments[0],e=arguments[1],n=arguments[2];this._op=t,this._geometryFactory=e,this._ptLocator=n}collectLines(t){for(let e=this._op.getGraph().getEdgeEnds().iterator();e.hasNext();){const n=e.next();this.collectLineEdge(n,t,this._lineEdgesList),this.collectBoundaryTouchEdge(n,t,this._lineEdgesList)}}labelIsolatedLine(t,e){const n=this._ptLocator.locate(t.getCoordinate(),this._op.getArgGeometry(e));t.getLabel().setLocation(e,n)}build(t){return this.findCoveredLineEdges(),this.collectLines(t),this.buildLines(t),this._resultLineList}collectLineEdge(t,e,n){const i=t.getLabel(),r=t.getEdge();t.isLineEdge()&&(t.isVisited()||!pe.isResultOfOp(i,e)||r.isCovered()||(n.add(r),t.setVisitedEdge(!0)))}findCoveredLineEdges(){for(let t=this._op.getGraph().getNodes().iterator();t.hasNext();){const e=t.next();e.getEdges().findCoveredLineEdges()}for(let t=this._op.getGraph().getEdgeEnds().iterator();t.hasNext();){const e=t.next(),n=e.getEdge();if(e.isLineEdge()&&!n.isCoveredSet()){const t=this._op.isCoveredByA(e.getCoordinate());n.setCovered(t)}}}labelIsolatedLines(t){for(let e=t.iterator();e.hasNext();){const t=e.next(),n=t.getLabel();t.isIsolated()&&(n.isNull(0)?this.labelIsolatedLine(t,0):this.labelIsolatedLine(t,1))}}buildLines(t){for(let e=this._lineEdgesList.iterator();e.hasNext();){const t=e.next(),n=this._geometryFactory.createLineString(t.getCoordinates());this._resultLineList.add(n),t.setInResult(!0)}}collectBoundaryTouchEdge(t,e,n){const i=t.getLabel();return t.isLineEdge()?null:t.isVisited()?null:t.isInteriorAreaEdge()?null:t.getEdge().isInResult()?null:(c["a"].isTrue(!(t.isInResult()||t.getSym().isInResult())||!t.getEdge().isInResult()),void(pe.isResultOfOp(i,e)&&e===pe.INTERSECTION&&(n.add(t.getEdge()),t.setVisitedEdge(!0))))}}class p{constructor(){p.constructor_.apply(this,arguments)}static constructor_(){this._op=null,this._geometryFactory=null,this._resultPointList=new a["a"];const t=arguments[0],e=arguments[1];arguments[2];this._op=t,this._geometryFactory=e}build(t){return this.extractNonCoveredResultNodes(t),this._resultPointList}extractNonCoveredResultNodes(t){for(let e=this._op.getGraph().getNodes().iterator();e.hasNext();){const n=e.next();if(!n.isInResult()&&(!n.isIncidentEdgeInResult()&&(0===n.getEdges().getDegree()||t===pe.INTERSECTION))){const e=n.getLabel();pe.isResultOfOp(e,t)&&this.filterCoveredNodeToPoint(n)}}}filterCoveredNodeToPoint(t){const e=t.getCoordinate();if(!this._op.isCoveredByLA(e)){const t=this._geometryFactory.createPoint(e);this._resultPointList.add(t)}}}var _=n("a829"),m=n("1d1d");class g{constructor(){g.constructor_.apply(this,arguments)}static constructor_(){if(this._quadrantSegments=g.DEFAULT_QUADRANT_SEGMENTS,this._endCapStyle=g.CAP_ROUND,this._joinStyle=g.JOIN_ROUND,this._mitreLimit=g.DEFAULT_MITRE_LIMIT,this._isSingleSided=!1,this._simplifyFactor=g.DEFAULT_SIMPLIFY_FACTOR,0===arguments.length);else if(1===arguments.length){const t=arguments[0];this.setQuadrantSegments(t)}else if(2===arguments.length){const t=arguments[0],e=arguments[1];this.setQuadrantSegments(t),this.setEndCapStyle(e)}else if(4===arguments.length){const t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3];this.setQuadrantSegments(t),this.setEndCapStyle(e),this.setJoinStyle(n),this.setMitreLimit(i)}}static bufferDistanceError(t){const e=Math.PI/2/t;return 1-Math.cos(e/2)}getEndCapStyle(){return this._endCapStyle}isSingleSided(){return this._isSingleSided}setQuadrantSegments(t){this._quadrantSegments=t,0===this._quadrantSegments&&(this._joinStyle=g.JOIN_BEVEL),this._quadrantSegments<0&&(this._joinStyle=g.JOIN_MITRE,this._mitreLimit=Math.abs(this._quadrantSegments)),t<=0&&(this._quadrantSegments=1),this._joinStyle!==g.JOIN_ROUND&&(this._quadrantSegments=g.DEFAULT_QUADRANT_SEGMENTS)}getJoinStyle(){return this._joinStyle}setJoinStyle(t){this._joinStyle=t}setSimplifyFactor(t){this._simplifyFactor=t<0?0:t}getSimplifyFactor(){return this._simplifyFactor}getQuadrantSegments(){return this._quadrantSegments}setEndCapStyle(t){this._endCapStyle=t}getMitreLimit(){return this._mitreLimit}setMitreLimit(t){this._mitreLimit=t}setSingleSided(t){this._isSingleSided=t}}g.CAP_ROUND=1,g.CAP_FLAT=2,g.CAP_SQUARE=3,g.JOIN_ROUND=1,g.JOIN_MITRE=2,g.JOIN_BEVEL=3,g.DEFAULT_QUADRANT_SEGMENTS=8,g.DEFAULT_MITRE_LIMIT=5,g.DEFAULT_SIMPLIFY_FACTOR=.01;var y=n("38de"),v=n("ad3f"),b=n("0ba1");class M{static relativeSign(t,e){return te?1:0}static compareValue(t,e){return t<0?-1:t>0?1:e<0?-1:e>0?1:0}static compare(t,e,n){if(e.equals2D(n))return 0;const i=M.relativeSign(e.x,n.x),r=M.relativeSign(e.y,n.y);switch(t){case 0:return M.compareValue(i,r);case 1:return M.compareValue(r,i);case 2:return M.compareValue(r,-i);case 3:return M.compareValue(-i,r);case 4:return M.compareValue(-i,-r);case 5:return M.compareValue(-r,-i);case 6:return M.compareValue(-r,i);case 7:return M.compareValue(i,-r)}return c["a"].shouldNeverReachHere("invalid octant value"),0}}var w=n("7c01");class x{constructor(){x.constructor_.apply(this,arguments)}static constructor_(){this._segString=null,this.coord=null,this.segmentIndex=null,this._segmentOctant=null,this._isInterior=null;const t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3];this._segString=t,this.coord=new v["a"](e),this.segmentIndex=n,this._segmentOctant=i,this._isInterior=!e.equals2D(t.getCoordinate(n))}getCoordinate(){return this.coord}print(t){t.print(this.coord),t.print(" seg # = "+this.segmentIndex)}compareTo(t){const e=t;return this.segmentIndexe.segmentIndex?1:this.coord.equals2D(e.coord)?0:this._isInterior?e._isInterior?M.compare(this._segmentOctant,this.coord,e.coord):1:-1}isEndPoint(t){return 0===this.segmentIndex&&!this._isInterior||this.segmentIndex===t}toString(){return this.segmentIndex+":"+this.coord.toString()}isInterior(){return this._isInterior}get interfaces_(){return[w["a"]]}}n("5912");var L=n("3101"),E=n("46ef"),T=n("7701"),S=n("55f7");class O{constructor(){O.constructor_.apply(this,arguments)}static constructor_(){this._nodeMap=new T["a"],this._edge=null;const t=arguments[0];this._edge=t}getSplitCoordinates(){const t=new b["a"];this.addEndpoints();const e=this.iterator();let n=e.next();while(e.hasNext()){const i=e.next();this.addEdgeCoordinates(n,i,t),n=i}return t.toCoordinateArray()}print(t){t.println("Intersections:");for(let e=this.iterator();e.hasNext();){const n=e.next();n.print(t)}}findCollapsesFromExistingVertices(t){for(let e=0;e=0?e>=0?n>=i?0:1:n>=i?7:6:e>=0?n>=i?3:2:n>=i?4:5}if(arguments[0]instanceof v["a"]&&arguments[1]instanceof v["a"]){const t=arguments[0],e=arguments[1],n=e.x-t.x,i=e.y-t.y;if(0===n&&0===i)throw new d["a"]("Cannot compute the octant for two identical points "+t);return I.octant(n,i)}}}class D{getCoordinates(){}size(){}getCoordinate(t){}isClosed(){}setData(t){}getData(){}}class R{addIntersection(t,e){}get interfaces_(){return[D]}}class A{constructor(){A.constructor_.apply(this,arguments)}static constructor_(){this._nodeList=new O(this),this._pts=null,this._data=null;const t=arguments[0],e=arguments[1];this._pts=t,this._data=e}static getNodedSubstrings(){if(1===arguments.length){const t=arguments[0],e=new a["a"];return A.getNodedSubstrings(t,e),e}if(2===arguments.length){const t=arguments[0],e=arguments[1];for(let n=t.iterator();n.hasNext();){const t=n.next();t.getNodeList().addSplitEdges(e)}}}getCoordinates(){return this._pts}size(){return this._pts.length}getCoordinate(t){return this._pts[t]}isClosed(){return this._pts[0].equals(this._pts[this._pts.length-1])}getSegmentOctant(t){return t===this._pts.length-1?-1:this.safeOctant(this.getCoordinate(t),this.getCoordinate(t+1))}toString(){return k["a"].toLineString(new C["a"](this._pts))}getNodeList(){return this._nodeList}addIntersectionNode(t,e){let n=e;const i=n+1;if(i=t.length-1)return t.length-1;const i=X["a"].quadrant(t[n],t[n+1]);let r=e+1;while(rn.getId()&&(n.computeOverlaps(i,t),this._nOverlaps++),this._segInt.isDone())return null}}}}class Q extends W{constructor(){super(),Q.constructor_.apply(this,arguments)}static constructor_(){this._si=null;const t=arguments[0];this._si=t}overlap(){if(4!==arguments.length)return super.overlap.apply(this,arguments);{const t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3],r=t.getContext(),s=n.getContext();this._si.processIntersections(r,e,s,i)}}}J.SegmentOverlapAction=Q;class tt{constructor(){tt.constructor_.apply(this,arguments)}static constructor_(){this._li=null,this._pt=null,this._originalPt=null,this._ptScaled=null,this._p0Scaled=null,this._p1Scaled=null,this._scaleFactor=null,this._minx=null,this._maxx=null,this._miny=null,this._maxy=null,this._corner=new Array(4).fill(null),this._safeEnv=null;const t=arguments[0],e=arguments[1],n=arguments[2];if(this._originalPt=t,this._pt=t,this._scaleFactor=e,this._li=n,e<=0)throw new d["a"]("Scale factor must be non-zero");1!==e&&(this._pt=new v["a"](this.scale(t.x),this.scale(t.y)),this._p0Scaled=new v["a"],this._p1Scaled=new v["a"]),this.initCorners(this._pt)}intersectsScaled(t,e){const n=Math.min(t.x,e.x),i=Math.max(t.x,e.x),r=Math.min(t.y,e.y),s=Math.max(t.y,e.y),o=this._maxxi||this._maxys;if(o)return!1;const a=this.intersectsToleranceSquare(t,e);return c["a"].isTrue(!(o&&a),"Found bad envelope test"),a}copyScaled(t,e){e.x=this.scale(t.x),e.y=this.scale(t.y)}getSafeEnvelope(){if(null===this._safeEnv){const t=tt.SAFE_ENV_EXPANSION_FACTOR/this._scaleFactor;this._safeEnv=new $["a"](this._originalPt.x-t,this._originalPt.x+t,this._originalPt.y-t,this._originalPt.y+t)}return this._safeEnv}intersectsPixelClosure(t,e){return this._li.computeIntersection(t,e,this._corner[0],this._corner[1]),!!this._li.hasIntersection()||(this._li.computeIntersection(t,e,this._corner[1],this._corner[2]),!!this._li.hasIntersection()||(this._li.computeIntersection(t,e,this._corner[2],this._corner[3]),!!this._li.hasIntersection()||(this._li.computeIntersection(t,e,this._corner[3],this._corner[0]),!!this._li.hasIntersection())))}intersectsToleranceSquare(t,e){let n=!1,i=!1;return this._li.computeIntersection(t,e,this._corner[0],this._corner[1]),!!this._li.isProper()||(this._li.computeIntersection(t,e,this._corner[1],this._corner[2]),!!this._li.isProper()||(this._li.hasIntersection()&&(n=!0),this._li.computeIntersection(t,e,this._corner[2],this._corner[3]),!!this._li.isProper()||(this._li.hasIntersection()&&(i=!0),this._li.computeIntersection(t,e,this._corner[3],this._corner[0]),!!this._li.isProper()||(!(!n||!i)||(!!t.equals(this._pt)||!!e.equals(this._pt))))))}addSnappedNode(t,e){const n=t.getCoordinate(e),i=t.getCoordinate(e+1);return!!this.intersects(n,i)&&(t.addIntersection(this.getCoordinate(),e),!0)}initCorners(t){const e=.5;this._minx=t.x-e,this._maxx=t.x+e,this._miny=t.y-e,this._maxy=t.y+e,this._corner[0]=new v["a"](this._maxx,this._maxy),this._corner[1]=new v["a"](this._minx,this._maxy),this._corner[2]=new v["a"](this._minx,this._miny),this._corner[3]=new v["a"](this._maxx,this._miny)}intersects(t,e){return 1===this._scaleFactor?this.intersectsScaled(t,e):(this.copyScaled(t,this._p0Scaled),this.copyScaled(e,this._p1Scaled),this.intersectsScaled(this._p0Scaled,this._p1Scaled))}scale(t){return Math.round(t*this._scaleFactor)}getCoordinate(){return this._originalPt}}tt.SAFE_ENV_EXPANSION_FACTOR=.75;var et=n("3f99");class nt{constructor(){nt.constructor_.apply(this,arguments)}static constructor_(){this.selectedSegment=new U["a"]}select(){if(1===arguments.length){arguments[0]}else if(2===arguments.length){const t=arguments[0],e=arguments[1];t.getLineSegment(e,this.selectedSegment),this.select(this.selectedSegment)}}}var it=n("0660");class rt{constructor(){rt.constructor_.apply(this,arguments)}static constructor_(){this._index=null;const t=arguments[0];this._index=t}snap(){if(1===arguments.length){const t=arguments[0];return this.snap(t,null,-1)}if(3===arguments.length){const t=arguments[0],e=arguments[1],n=arguments[2],i=t.getSafeEnvelope(),r=new st(t,e,n);return this._index.query(i,new class{get interfaces_(){return[it["a"]]}visitItem(t){const e=t;e.select(i,r)}}),r.isNodeAdded()}}}class st extends nt{constructor(){super(),st.constructor_.apply(this,arguments)}static constructor_(){this._hotPixel=null,this._parentEdge=null,this._hotPixelVertexIndex=null,this._isNodeAdded=!1;const t=arguments[0],e=arguments[1],n=arguments[2];this._hotPixel=t,this._parentEdge=e,this._hotPixelVertexIndex=n}select(){if(!(2===arguments.length&&Number.isInteger(arguments[1])&&arguments[0]instanceof V))return super.select.apply(this,arguments);{const t=arguments[0],e=arguments[1],n=t.getContext();if(this._parentEdge===n&&(e===this._hotPixelVertexIndex||e+1===this._hotPixelVertexIndex))return null;this._isNodeAdded|=this._hotPixel.addSnappedNode(n,e)}}isNodeAdded(){return this._isNodeAdded}}rt.HotPixelSnapAction=st;class ot{isDone(){}processIntersections(t,e,n,i){}}class at{constructor(){at.constructor_.apply(this,arguments)}static constructor_(){this._li=null,this._interiorIntersections=null;const t=arguments[0];this._li=t,this._interiorIntersections=new a["a"]}isDone(){return!1}processIntersections(t,e,n,i){if(t===n&&e===i)return null;const r=t.getCoordinates()[e],s=t.getCoordinates()[e+1],o=n.getCoordinates()[i],a=n.getCoordinates()[i+1];if(this._li.computeIntersection(r,s,o,a),this._li.hasIntersection()&&this._li.isInteriorIntersection()){for(let t=0;t0&&this._minIndexthis._minCoord.y&&n.y>this._minCoord.y&&i===ft["a"].CLOCKWISE&&(r=!0),r&&(this._minIndex=this._minIndex-1)}getRightmostSideOfSegment(t,e){const n=t.getEdge(),i=n.getCoordinates();if(e<0||e+1>=i.length)return-1;if(i[e].y===i[e+1].y)return-1;let r=h["a"].LEFT;return i[e].ythis._minCoord.x)&&(this._minDe=t,this._minIndex=n,this._minCoord=e[n])}findRightmostEdgeAtNode(){const t=this._minDe.getNode(),e=t.getEdges();this._minDe=e.getRightmostEdge(),this._minDe.isForward()||(this._minDe=this._minDe.getSym(),this._minIndex=this._minDe.getEdge().getCoordinates().length-1)}findEdge(t){for(let n=t.iterator();n.hasNext();){const t=n.next();t.isForward()&&this.checkForRightmostCoordinate(t)}c["a"].isTrue(0!==this._minIndex||this._minCoord.equals(this._minDe.getCoordinate()),"inconsistency in rightmost processing"),0===this._minIndex?this.findRightmostEdgeAtNode():this.findRightmostEdgeAtVertex(),this._orientedDe=this._minDe;const e=this.getRightmostSide(this._minDe,this._minIndex);e===h["a"].LEFT&&(this._orientedDe=this._minDe.getSym())}}class _t{constructor(){this.array=[]}addLast(t){this.array.push(t)}removeFirst(){return this.array.shift()}isEmpty(){return 0===this.array.length}}class mt{constructor(){mt.constructor_.apply(this,arguments)}static constructor_(){this._finder=null,this._dirEdgeList=new a["a"],this._nodes=new a["a"],this._rightMostCoord=null,this._env=null,this._finder=new pt}clearVisitedEdges(){for(let t=this._dirEdgeList.iterator();t.hasNext();){const e=t.next();e.setVisited(!1)}}compareTo(t){const e=t;return this._rightMostCoord.xe._rightMostCoord.x?1:0}getEnvelope(){if(null===this._env){const t=new $["a"];for(let e=this._dirEdgeList.iterator();e.hasNext();){const n=e.next(),i=n.getEdge().getCoordinates();for(let e=0;e=1&&e.getDepth(h["a"].LEFT)<=0&&!e.isInteriorAreaEdge()&&e.setInResult(!0)}}computeDepths(t){const e=new ht["a"],n=new _t,i=t.getNode();n.addLast(i),e.add(i),t.setVisited(!0);while(!n.isEmpty()){const t=n.removeFirst();e.add(t),this.computeNodeDepth(t);for(let i=t.getEdges().iterator();i.hasNext();){const t=i.next(),r=t.getSym();if(r.isVisited())continue;const s=r.getNode();e.contains(s)||(n.addLast(s),e.add(s))}}}getNodes(){return this._nodes}getDirectedEdges(){return this._dirEdgeList}get interfaces_(){return[w["a"]]}}var gt=n("6336");class yt{constructor(){yt.constructor_.apply(this,arguments)}static constructor_(){this._inputLine=null,this._distanceTol=null,this._isDeleted=null,this._angleOrientation=ft["a"].COUNTERCLOCKWISE;const t=arguments[0];this._inputLine=t}static simplify(t,e){const n=new yt(t);return n.simplify(e)}isDeletable(t,e,n,i){const r=this._inputLine[t],s=this._inputLine[e],o=this._inputLine[n];return!!this.isConcave(r,s,o)&&(!!this.isShallow(r,s,o,i)&&this.isShallowSampled(r,s,t,n,i))}deleteShallowConcavities(){let t=1,e=this.findNextNonDeletedIndex(t),n=this.findNextNonDeletedIndex(e),i=!1;while(n=0;n--)this.addPt(t[n])}isRedundant(t){if(this._ptList.size()<1)return!1;const e=this._ptList.get(this._ptList.size()-1),n=t.distance(e);return n=8&&e.getJoinStyle()===g.JOIN_ROUND&&(this._closingSegLengthFactor=wt.MAX_CLOSING_SEG_LEN_FACTOR),this.init(n)}getCoordinates(){const t=this._segList.getCoordinates();return t}addMitreJoin(t,e,n,i){const r=bt["a"].intersection(e.p0,e.p1,n.p0,n.p1);if(null!==r){const e=i<=0?1:r.distance(t)/Math.abs(i);if(e<=this._bufParams.getMitreLimit())return this._segList.addPt(r),null}this.addLimitedMitreJoin(e,n,i,this._bufParams.getMitreLimit())}addLastSegment(){this._segList.addPt(this._offset1.p1)}initSideSegments(t,e,n){this._s1=t,this._s2=e,this._side=n,this._seg1.setCoordinates(t,e),this.computeOffsetSegment(this._seg1,n,this._distance,this._offset1)}addLimitedMitreJoin(t,e,n,i){const r=this._seg0.p1,s=Mt["a"].angle(r,this._seg0.p0),o=Mt["a"].angleBetweenOriented(this._seg0.p0,r,this._seg1.p1),a=o/2,c=Mt["a"].normalize(s+a),l=Mt["a"].normalize(c+Math.PI),u=i*n,d=u*Math.abs(Math.sin(a)),f=n-d,p=r.x+u*Math.cos(l),_=r.y+u*Math.sin(l),m=new v["a"](p,_),g=new U["a"](r,m),y=g.pointAlongOffset(1,f),b=g.pointAlongOffset(1,-f);this._side===h["a"].LEFT?(this._segList.addPt(y),this._segList.addPt(b)):(this._segList.addPt(b),this._segList.addPt(y))}addDirectedFillet(t,e,n,i,r){const s=i===ft["a"].CLOCKWISE?-1:1,o=Math.abs(e-n),a=Math.trunc(o/this._filletAngleQuantum+.5);if(a<1)return null;const c=o/a,l=new v["a"];for(let u=0;u0){const t=new v["a"]((this._closingSegLengthFactor*this._offset0.p1.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset0.p1.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(t);const e=new v["a"]((this._closingSegLengthFactor*this._offset1.p0.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset1.p0.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(e)}else this._segList.addPt(this._s1);this._segList.addPt(this._offset1.p0)}}createCircle(t){const e=new v["a"](t.x+this._distance,t.y);this._segList.addPt(e),this.addDirectedFillet(t,0,2*Math.PI,-1,this._distance),this._segList.closeRing()}addBevelJoin(t,e){this._segList.addPt(t.p1),this._segList.addPt(e.p0)}init(t){this._distance=t,this._maxCurveSegmentError=t*(1-Math.cos(this._filletAngleQuantum/2)),this._segList=new vt,this._segList.setPrecisionModel(this._precisionModel),this._segList.setMinimumVertexDistance(t*wt.CURVE_VERTEX_SNAP_DISTANCE_FACTOR)}addCollinear(t){this._li.computeIntersection(this._s0,this._s1,this._s1,this._s2);const e=this._li.getIntersectionNum();e>=2&&(this._bufParams.getJoinStyle()===g.JOIN_BEVEL||this._bufParams.getJoinStyle()===g.JOIN_MITRE?(t&&this._segList.addPt(this._offset0.p1),this._segList.addPt(this._offset1.p0)):this.addCornerFillet(this._s1,this._offset0.p1,this._offset1.p0,ft["a"].CLOCKWISE,this._distance))}addNextSegment(t,e){if(this._s0=this._s1,this._s1=this._s2,this._s2=t,this._seg0.setCoordinates(this._s0,this._s1),this.computeOffsetSegment(this._seg0,this._side,this._distance,this._offset0),this._seg1.setCoordinates(this._s1,this._s2),this.computeOffsetSegment(this._seg1,this._side,this._distance,this._offset1),this._s1.equals(this._s2))return null;const n=ft["a"].index(this._s0,this._s1,this._s2),i=n===ft["a"].CLOCKWISE&&this._side===h["a"].LEFT||n===ft["a"].COUNTERCLOCKWISE&&this._side===h["a"].RIGHT;0===n?this.addCollinear(e):i?this.addOutsideTurn(n,e):this.addInsideTurn(n,e)}addLineEndCap(t,e){const n=new U["a"](t,e),i=new U["a"];this.computeOffsetSegment(n,h["a"].LEFT,this._distance,i);const r=new U["a"];this.computeOffsetSegment(n,h["a"].RIGHT,this._distance,r);const s=e.x-t.x,o=e.y-t.y,a=Math.atan2(o,s);switch(this._bufParams.getEndCapStyle()){case g.CAP_ROUND:this._segList.addPt(i.p1),this.addDirectedFillet(e,a+Math.PI/2,a-Math.PI/2,ft["a"].CLOCKWISE,this._distance),this._segList.addPt(r.p1);break;case g.CAP_FLAT:this._segList.addPt(i.p1),this._segList.addPt(r.p1);break;case g.CAP_SQUARE:const t=new v["a"];t.x=Math.abs(this._distance)*Math.cos(a),t.y=Math.abs(this._distance)*Math.sin(a);const n=new v["a"](i.p1.x+t.x,i.p1.y+t.y),s=new v["a"](r.p1.x+t.x,r.p1.y+t.y);this._segList.addPt(n),this._segList.addPt(s);break}}addOutsideTurn(t,e){if(this._offset0.p1.distance(this._offset1.p0)=u&&(a-=2*Math.PI),this._segList.addPt(e),this.addDirectedFillet(t,a,u,i,r),this._segList.addPt(n)}closeRing(){this._segList.closeRing()}hasNarrowConcaveAngle(){return this._hasNarrowConcaveAngle}}wt.OFFSET_SEGMENT_SEPARATION_FACTOR=.001,wt.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR=.001,wt.CURVE_VERTEX_SNAP_DISTANCE_FACTOR=1e-6,wt.MAX_CLOSING_SEG_LEN_FACTOR=80;class xt{constructor(){xt.constructor_.apply(this,arguments)}static constructor_(){this._distance=0,this._precisionModel=null,this._bufParams=null;const t=arguments[0],e=arguments[1];this._precisionModel=t,this._bufParams=e}static copyCoordinates(t){const e=new Array(t.length).fill(null);for(let n=0;n=0;t--)n.addNextSegment(e[t],!0)}else{n.addSegments(t,!1);const e=yt.simplify(t,i),r=e.length-1;n.initSideSegments(e[0],e[1],h["a"].LEFT),n.addFirstSegment();for(let t=2;t<=r;t++)n.addNextSegment(e[t],!0)}n.addLastSegment(),n.closeRing()}computeRingBufferCurve(t,e,n){let i=this.simplifyTolerance(this._distance);e===h["a"].RIGHT&&(i=-i);const r=yt.simplify(t,i),s=r.length-1;n.initSideSegments(r[s-1],r[0],e);for(let o=1;o<=s;o++){const t=1!==o;n.addNextSegment(r[o],t)}n.closeRing()}computeLineBufferCurve(t,e){const n=this.simplifyTolerance(this._distance),i=yt.simplify(t,n),r=i.length-1;e.initSideSegments(i[0],i[1],h["a"].LEFT);for(let a=2;a<=r;a++)e.addNextSegment(i[a],!0);e.addLastSegment(),e.addLineEndCap(i[r-1],i[r]);const s=yt.simplify(t,-n),o=s.length-1;e.initSideSegments(s[o],s[o-1],h["a"].LEFT);for(let a=o-2;a>=0;a--)e.addNextSegment(s[a],!0);e.addLastSegment(),e.addLineEndCap(s[1],s[0]),e.closeRing()}computePointCurve(t,e){switch(this._bufParams.getEndCapStyle()){case g.CAP_ROUND:e.createCircle(t);break;case g.CAP_SQUARE:e.createSquare(t);break}}getLineCurve(t,e){if(this._distance=e,this.isLineOffsetEmpty(e))return null;const n=Math.abs(e),i=this.getSegGen(n);if(t.length<=1)this.computePointCurve(t[0],i);else if(this._bufParams.isSingleSided()){const n=e<0;this.computeSingleSidedBufferCurve(t,n,i)}else this.computeLineBufferCurve(t,i);const r=i.getCoordinates();return r}getBufferParameters(){return this._bufParams}simplifyTolerance(t){return t*this._bufParams.getSimplifyFactor()}getRingCurve(t,e,n){if(this._distance=n,t.length<=2)return this.getLineCurve(t,n);if(0===n)return xt.copyCoordinates(t);const i=this.getSegGen(n);return this.computeRingBufferCurve(t,e,i),i.getCoordinates()}computeOffsetCurve(t,e,n){const i=this.simplifyTolerance(this._distance);if(e){const e=yt.simplify(t,-i),r=e.length-1;n.initSideSegments(e[r],e[r-1],h["a"].LEFT),n.addFirstSegment();for(let t=r-2;t>=0;t--)n.addNextSegment(e[t],!0)}else{const e=yt.simplify(t,i),r=e.length-1;n.initSideSegments(e[0],e[1],h["a"].LEFT),n.addFirstSegment();for(let t=2;t<=r;t++)n.addNextSegment(e[t],!0)}n.addLastSegment()}isLineOffsetEmpty(t){return 0===t||t<0&&!this._bufParams.isSingleSided()}getSegGen(t){return new wt(this._precisionModel,this._bufParams,t)}}var Lt=n("7d15"),Et=n("b08b"),Tt=n("c8da"),St=n("69ba");class Ot{constructor(){Ot.constructor_.apply(this,arguments)}static constructor_(){this._subgraphs=null,this._seg=new U["a"];const t=arguments[0];this._subgraphs=t}findStabbedSegments(){if(1===arguments.length){const t=arguments[0],e=new a["a"];for(let n=this._subgraphs.iterator();n.hasNext();){const i=n.next(),r=i.getEnvelope();t.yr.getMaxY()||this.findStabbedSegments(t,i.getDirectedEdges(),e)}return e}if(3===arguments.length)if(Object(y["a"])(arguments[2],Tt["a"])&&arguments[0]instanceof v["a"]&&arguments[1]instanceof St["a"]){const t=arguments[0],e=arguments[1],n=arguments[2],i=e.getEdge().getCoordinates();for(let r=0;rthis._seg.p1.y&&this._seg.reverse();const s=Math.max(this._seg.p0.x,this._seg.p1.x);if(sthis._seg.p1.y)continue;if(ft["a"].index(this._seg.p0,this._seg.p1,t)===ft["a"].RIGHT)continue;let o=e.getDepth(h["a"].LEFT);this._seg.p0.equals(i[r])||(o=e.getDepth(h["a"].RIGHT));const a=new kt(this._seg,o);n.add(a)}}else if(Object(y["a"])(arguments[2],Tt["a"])&&arguments[0]instanceof v["a"]&&Object(y["a"])(arguments[1],Tt["a"])){const t=arguments[0],e=arguments[1],n=arguments[2];for(let i=e.iterator();i.hasNext();){const e=i.next();e.isForward()&&this.findStabbedSegments(t,e,n)}}}getDepth(t){const e=this.findStabbedSegments(t);if(0===e.size())return 0;const n=Lt["a"].min(e);return n._leftDepth}}class kt{constructor(){kt.constructor_.apply(this,arguments)}static constructor_(){this._upwardSeg=null,this._leftDepth=null;const t=arguments[0],e=arguments[1];this._upwardSeg=new U["a"](t),this._leftDepth=e}compareX(t,e){const n=t.p0.compareTo(e.p0);return 0!==n?n:t.p1.compareTo(e.p1)}toString(){return this._upwardSeg.toString()}compareTo(t){const e=t;if(this._upwardSeg.minX()>=e._upwardSeg.maxX())return 1;if(this._upwardSeg.maxX()<=e._upwardSeg.minX())return-1;let n=this._upwardSeg.orientationIndex(e._upwardSeg);return 0!==n?n:(n=-1*e._upwardSeg.orientationIndex(this._upwardSeg),0!==n?n:this._upwardSeg.compareTo(e._upwardSeg))}get interfaces_(){return[w["a"]]}}Ot.DepthSegment=kt;var Ct=n("138e"),It=n("a02c"),Dt=n("3894"),Rt=n("76af"),At=n("58e9"),Nt=n("b37b"),Yt=n("78c4"),Pt=n("f69e"),jt=n("c73a");class Ft{constructor(){Ft.constructor_.apply(this,arguments)}static constructor_(){this._inputGeom=null,this._distance=null,this._curveBuilder=null,this._curveList=new a["a"];const t=arguments[0],e=arguments[1],n=arguments[2];this._inputGeom=t,this._distance=e,this._curveBuilder=n}addRingSide(t,e,n,i,r){if(0===e&&t.length=Dt["a"].MINIMUM_VALID_SIZE&&ft["a"].isCCW(t)&&(s=r,o=i,n=h["a"].opposite(n));const a=this._curveBuilder.getRingCurve(t,n,e);this.addCurve(a,s,o)}addRingBothSides(t,e){this.addRingSide(t,e,h["a"].LEFT,ut["a"].EXTERIOR,ut["a"].INTERIOR),this.addRingSide(t,e,h["a"].RIGHT,ut["a"].INTERIOR,ut["a"].EXTERIOR)}addPoint(t){if(this._distance<=0)return null;const e=t.getCoordinates(),n=this._curveBuilder.getLineCurve(e,this._distance);this.addCurve(n,ut["a"].EXTERIOR,ut["a"].INTERIOR)}addPolygon(t){let e=this._distance,n=h["a"].LEFT;this._distance<0&&(e=-this._distance,n=h["a"].RIGHT);const i=t.getExteriorRing(),r=o["a"].removeRepeatedPoints(i.getCoordinates());if(this._distance<0&&this.isErodedCompletely(i,this._distance))return null;if(this._distance<=0&&r.length<3)return null;this.addRingSide(r,e,n,ut["a"].EXTERIOR,ut["a"].INTERIOR);for(let s=0;s0&&this.isErodedCompletely(i,-this._distance)||this.addRingSide(r,e,h["a"].opposite(n),ut["a"].INTERIOR,ut["a"].EXTERIOR)}}isTriangleErodedCompletely(t,e){const n=new Nt["a"](t[0],t[1],t[2]),i=n.inCentre(),r=gt["a"].pointToSegment(i,n.p0,n.p1);return rr}addCollection(t){for(let e=0;e0&&t.print(","),t.print("(");const i=n.getCoordinates();for(let e=0;e0&&t.print(","),t.print(i[e].x+" "+i[e].y);t.println(")")}t.print(") ")}addAll(t){for(let e=t.iterator();e.hasNext();)this.add(e.next())}findEdgeIndex(t){for(let e=0;e0?e:0,o=r+2*s,a=Math.trunc(Math.log(o)/Math.log(10)+1),c=n-a,l=Math.pow(10,c);return l}bufferFixedPrecision(t){const e=new j(new ct(new H["a"](1)),t.getScale()),n=new Ut(this._bufParams);n.setWorkingPrecisionModel(t),n.setNoder(e),this._resultGeometry=n.buffer(this._argGeom,this._distance)}bufferReducedPrecision(){if(0===arguments.length){for(let t=Wt.MAX_PRECISION_DIGITS;t>=0;t--){try{this.bufferReducedPrecision(t)}catch(t){if(!(t instanceof r["a"]))throw t;this._saveException=t}if(null!==this._resultGeometry)return null}throw this._saveException}if(1===arguments.length){const t=arguments[0],e=Wt.precisionScaleFactor(this._argGeom,this._distance,t),n=new H["a"](e);this.bufferFixedPrecision(n)}}bufferOriginalPrecision(){try{const t=new Ut(this._bufParams);this._resultGeometry=t.buffer(this._argGeom,this._distance)}catch(t){if(!(t instanceof S["a"]))throw t;this._saveException=t}}getResultGeometry(t){return this._distance=t,this.computeGeometry(),this._resultGeometry}setEndCapStyle(t){this._bufParams.setEndCapStyle(t)}computeGeometry(){if(this.bufferOriginalPrecision(),null!==this._resultGeometry)return null;const t=this._argGeom.getFactory().getPrecisionModel();t.getType()===H["a"].FIXED?this.bufferFixedPrecision(t):this.bufferReducedPrecision()}setQuadrantSegments(t){this._bufParams.setQuadrantSegments(t)}}Wt.CAP_ROUND=g.CAP_ROUND,Wt.CAP_BUTT=g.CAP_FLAT,Wt.CAP_FLAT=g.CAP_FLAT,Wt.CAP_SQUARE=g.CAP_SQUARE,Wt.MAX_PRECISION_DIGITS=12;class $t{constructor(){$t.constructor_.apply(this,arguments)}static constructor_(){if(this._snapTolerance=0,this._srcPts=null,this._seg=new U["a"],this._allowSnappingToSourceVertices=!1,this._isClosed=!1,arguments[0]instanceof Ct["a"]&&"number"===typeof arguments[1]){const t=arguments[0],e=arguments[1];$t.constructor_.call(this,t.getCoordinates(),e)}else if(arguments[0]instanceof Array&&"number"===typeof arguments[1]){const t=arguments[0],e=arguments[1];this._srcPts=t,this._isClosed=$t.isClosed(t),this._snapTolerance=e}}static isClosed(t){return!(t.length<=1)&&t[0].equals2D(t[t.length-1])}snapVertices(t,e){const n=this._isClosed?t.size()-1:t.size();for(let i=0;i=0&&t.add(r+1,new v["a"](n),!1)}}findSegmentIndexToSnap(t,e){let n=m["a"].MAX_VALUE,i=-1;for(let r=0;re&&(e=t)}return e}if(2===arguments.length){const t=arguments[0],e=arguments[1];return Math.min(Kt.computeOverlaySnapTolerance(t),Kt.computeOverlaySnapTolerance(e))}}static snapToSelf(t,e,n){const i=new Kt(t);return i.snapToSelf(e,n)}static snap(t,e,n){const i=new Array(2).fill(null),r=new Kt(t);i[0]=r.snapTo(e,n);const s=new Kt(e);return i[1]=s.snapTo(i[0],n),i}computeSnapTolerance(t){const e=this.computeMinimumSegmentLength(t),n=e/10;return n}snapTo(t,e){const n=this.extractTargetCoordinates(t),i=new Zt(e,n);return i.transform(this._srcGeom)}snapToSelf(t,e){const n=this.extractTargetCoordinates(this._srcGeom),i=new Zt(t,n,!0),r=i.transform(this._srcGeom);let s=r;return e&&Object(y["a"])(s,Vt["a"])&&(s=Wt.bufferOp(r,0)),s}extractTargetCoordinates(t){const e=new _["a"],n=t.getCoordinates();for(let i=0;i>>20}static zeroLowerBits(t,e){let n="low";if(e>32&&(t.low=0,e%=32,n="high"),e>0){const i=e<32?~((1<=0;i--){if(te.getBit(t,i)!==te.getBit(e,i))return n;n++}return 52}}var ee=n("c9eb");class ne{constructor(){ne.constructor_.apply(this,arguments)}static constructor_(){this._commonCoord=null,this._ccFilter=new ie}add(t){t.apply(this._ccFilter),this._commonCoord=this._ccFilter.getCommonCoordinate()}removeCommonBits(t){if(0===this._commonCoord.x&&0===this._commonCoord.y)return t;const e=new v["a"](this._commonCoord);e.x=-e.x,e.y=-e.y;const n=new re(e);return t.apply(n),t.geometryChanged(),t}addCommonBits(t){const e=new re(this._commonCoord);t.apply(e),t.geometryChanged()}getCommonCoordinate(){return this._commonCoord}}class ie{constructor(){ie.constructor_.apply(this,arguments)}static constructor_(){this._commonBitsX=new te,this._commonBitsY=new te}filter(t){this._commonBitsX.add(t.x),this._commonBitsY.add(t.y)}getCommonCoordinate(){return new v["a"](this._commonBitsX.getCommon(),this._commonBitsY.getCommon())}get interfaces_(){return[ee["a"]]}}class re{constructor(){re.constructor_.apply(this,arguments)}static constructor_(){this.trans=null;const t=arguments[0];this.trans=t}filter(t,e){const n=t.getOrdinate(e,0)+this.trans.x,i=t.getOrdinate(e,1)+this.trans.y;t.setOrdinate(e,0,n),t.setOrdinate(e,1,i)}isGeometryChanged(){return!0}isDone(){return!1}get interfaces_(){return[Jt["a"]]}}ne.CommonCoordinateFilter=ie,ne.Translater=re;class se{constructor(){se.constructor_.apply(this,arguments)}static constructor_(){this._geom=new Array(2).fill(null),this._snapTolerance=null,this._cbr=null;const t=arguments[0],e=arguments[1];this._geom[0]=t,this._geom[1]=e,this.computeSnapTolerance()}static overlayOp(t,e,n){const i=new se(t,e);return i.getResultGeometry(n)}static union(t,e){return se.overlayOp(t,e,pe.UNION)}static intersection(t,e){return se.overlayOp(t,e,pe.INTERSECTION)}static symDifference(t,e){return se.overlayOp(t,e,pe.SYMDIFFERENCE)}static difference(t,e){return se.overlayOp(t,e,pe.DIFFERENCE)}selfSnap(t){const e=new Kt(t),n=e.snapTo(t,this._snapTolerance);return n}removeCommonBits(t){this._cbr=new ne,this._cbr.add(t[0]),this._cbr.add(t[1]);const e=new Array(2).fill(null);return e[0]=this._cbr.removeCommonBits(t[0].copy()),e[1]=this._cbr.removeCommonBits(t[1].copy()),e}prepareResult(t){return this._cbr.addCommonBits(t),t}getResultGeometry(t){const e=this.snap(this._geom),n=pe.overlayOp(e[0],e[1],t);return this.prepareResult(n)}checkValid(t){t.isValid()||N["a"].out.println("Snapped geometry is invalid")}computeSnapTolerance(){this._snapTolerance=Kt.computeOverlaySnapTolerance(this._geom[0],this._geom[1])}snap(t){const e=this.removeCommonBits(t),n=Kt.snap(e[0],e[1],this._snapTolerance);return n}}class oe{constructor(){oe.constructor_.apply(this,arguments)}static constructor_(){this._geom=new Array(2).fill(null);const t=arguments[0],e=arguments[1];this._geom[0]=t,this._geom[1]=e}static overlayOp(t,e,n){const i=new oe(t,e);return i.getResultGeometry(n)}static union(t,e){return oe.overlayOp(t,e,pe.UNION)}static intersection(t,e){return oe.overlayOp(t,e,pe.INTERSECTION)}static symDifference(t,e){return oe.overlayOp(t,e,pe.SYMDIFFERENCE)}static difference(t,e){return oe.overlayOp(t,e,pe.DIFFERENCE)}getResultGeometry(t){let e=null,n=!1,i=null;try{e=pe.overlayOp(this._geom[0],this._geom[1],t);const r=!0;r&&(n=!0)}catch(t){if(!(t instanceof S["a"]))throw t;i=t}if(!n)try{e=se.overlayOp(this._geom[0],this._geom[1],t)}catch(t){throw t instanceof S["a"]?i:t}return e}}var ae=n("dc2b");class ce{constructor(){ce.constructor_.apply(this,arguments)}static constructor_(){this._pts=null,this._data=null;const t=arguments[0],e=arguments[1];this._pts=t,this._data=e}getCoordinates(){return this._pts}size(){return this._pts.length}getCoordinate(t){return this._pts[t]}isClosed(){return this._pts[0].equals(this._pts[this._pts.length-1])}getSegmentOctant(t){return t===this._pts.length-1?-1:I.octant(this.getCoordinate(t),this.getCoordinate(t+1))}setData(t){this._data=t}getData(){return this._data}toString(){return k["a"].toLineString(new C["a"](this._pts))}get interfaces_(){return[D]}}class le{constructor(){le.constructor_.apply(this,arguments)}static constructor_(){this._findAllIntersections=!1,this._isCheckEndSegmentsOnly=!1,this._keepIntersections=!0,this._isInteriorIntersectionsOnly=!1,this._li=null,this._interiorIntersection=null,this._intSegments=null,this._intersections=new a["a"],this._intersectionCount=0;const t=arguments[0];this._li=t,this._interiorIntersection=null}static createAllIntersectionsFinder(t){const e=new le(t);return e.setFindAllIntersections(!0),e}static isInteriorVertexIntersection(){if(4===arguments.length){const t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3];return(!n||!i)&&!!t.equals2D(e)}if(8===arguments.length){const t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3],r=arguments[4],s=arguments[5],o=arguments[6],a=arguments[7];return!!le.isInteriorVertexIntersection(t,n,r,o)||(!!le.isInteriorVertexIntersection(t,i,r,a)||(!!le.isInteriorVertexIntersection(e,n,s,o)||!!le.isInteriorVertexIntersection(e,i,s,a)))}}static createInteriorIntersectionCounter(t){const e=new le(t);return e.setInteriorIntersectionsOnly(!0),e.setFindAllIntersections(!0),e.setKeepIntersections(!1),e}static createIntersectionCounter(t){const e=new le(t);return e.setFindAllIntersections(!0),e.setKeepIntersections(!1),e}static isEndSegment(t,e){return 0===e||e>=t.size()-2}static createAnyIntersectionFinder(t){return new le(t)}static createInteriorIntersectionsFinder(t){const e=new le(t);return e.setFindAllIntersections(!0),e.setInteriorIntersectionsOnly(!0),e}count(){return this._intersectionCount}getIntersections(){return this._intersections}setFindAllIntersections(t){this._findAllIntersections=t}setKeepIntersections(t){this._keepIntersections=t}getIntersection(){return this._interiorIntersection}processIntersections(t,e,n,i){if(!this._findAllIntersections&&this.hasIntersection())return null;const r=t===n,s=r&&e===i;if(s)return null;if(this._isCheckEndSegmentsOnly){const r=le.isEndSegment(t,e)||le.isEndSegment(n,i);if(!r)return null}const o=t.getCoordinate(e),a=t.getCoordinate(e+1),c=n.getCoordinate(i),l=n.getCoordinate(i+1),u=0===e,h=e+2===t.size(),d=0===i,f=i+2===n.size();this._li.computeIntersection(o,a,c,l);const p=this._li.hasIntersection()&&this._li.isInteriorIntersection();let _=!1;if(!this._isInteriorIntersectionsOnly){const t=r&&Math.abs(i-e)<=1;_=!t&&le.isInteriorVertexIntersection(o,a,c,l,u,h,d,f)}(p||_)&&(this._intSegments=new Array(4).fill(null),this._intSegments[0]=o,this._intSegments[1]=a,this._intSegments[2]=c,this._intSegments[3]=l,this._interiorIntersection=this._li.getIntersection(0),this._keepIntersections&&this._intersections.add(this._interiorIntersection),this._intersectionCount++)}hasIntersection(){return null!==this._interiorIntersection}isDone(){return!this._findAllIntersections&&null!==this._interiorIntersection}setInteriorIntersectionsOnly(t){this._isInteriorIntersectionsOnly=t}setCheckEndSegmentsOnly(t){this._isCheckEndSegmentsOnly=t}getIntersectionSegments(){return this._intSegments}get interfaces_(){return[ot]}}class ue{constructor(){ue.constructor_.apply(this,arguments)}static constructor_(){this._li=new G["a"],this._segStrings=null,this._findAllIntersections=!1,this._segInt=null,this._isValid=!0;const t=arguments[0];this._segStrings=t}static computeIntersections(t){const e=new ue(t);return e.setFindAllIntersections(!0),e.isValid(),e.getIntersections()}isValid(){return this.execute(),this._isValid}setFindAllIntersections(t){this._findAllIntersections=t}checkInteriorIntersections(){this._isValid=!0,this._segInt=new le(this._li),this._segInt.setFindAllIntersections(this._findAllIntersections);const t=new J;if(t.setSegmentIntersector(this._segInt),t.computeNodes(this._segStrings),this._segInt.hasIntersection())return this._isValid=!1,null}checkValid(){if(this.execute(),!this._isValid)throw new r["a"](this.getErrorMessage(),this._segInt.getIntersection())}getErrorMessage(){if(this._isValid)return"no intersections found";const t=this._segInt.getIntersectionSegments();return"found non-noded intersection between "+k["a"].toLineString(t[0],t[1])+" and "+k["a"].toLineString(t[2],t[3])}execute(){if(null!==this._segInt)return null;this.checkInteriorIntersections()}getIntersections(){return this._segInt.getIntersections()}}class he{constructor(){he.constructor_.apply(this,arguments)}static constructor_(){this._nv=null;const t=arguments[0];this._nv=new ue(he.toSegmentStrings(t))}static toSegmentStrings(t){const e=new a["a"];for(let n=t.iterator();n.hasNext();){const t=n.next();e.add(new ce(t.getCoordinates(),t))}return e}static checkValid(t){const e=new he(t);e.checkValid()}checkValid(){this._nv.checkValid()}}var de=n("1f31"),fe=n("7bd1");n.d(e,"a",function(){return pe});class pe extends fe["a"]{constructor(){super(),pe.constructor_.apply(this,arguments)}static constructor_(){this._ptLocator=new ae["a"],this._geomFact=null,this._resultGeom=null,this._graph=null,this._edgeList=new Gt,this._resultPolyList=new a["a"],this._resultLineList=new a["a"],this._resultPointList=new a["a"];const t=arguments[0],e=arguments[1];fe["a"].constructor_.call(this,t,e),this._graph=new l["a"](new Ht["a"]),this._geomFact=t.getFactory()}static overlayOp(t,e,n){const i=new pe(t,e),r=i.getResultGeometry(n);return r}static union(t,e){if(t.isEmpty()||e.isEmpty()){if(t.isEmpty()&&e.isEmpty())return pe.createEmptyResult(pe.UNION,t,e,t.getFactory());if(t.isEmpty())return e.copy();if(e.isEmpty())return t.copy()}if(t.isGeometryCollection()||e.isGeometryCollection())throw new d["a"]("This method does not support GeometryCollection arguments");return oe.overlayOp(t,e,pe.UNION)}static intersection(t,e){if(t.isEmpty()||e.isEmpty())return pe.createEmptyResult(pe.INTERSECTION,t,e,t.getFactory());if(t.isGeometryCollection()){const n=e;return de["a"].map(t,new class{get interfaces_(){return[MapOp]}map(t){return pe.intersection(t,n)}})}return oe.overlayOp(t,e,pe.INTERSECTION)}static symDifference(t,e){if(t.isEmpty()||e.isEmpty()){if(t.isEmpty()&&e.isEmpty())return pe.createEmptyResult(pe.SYMDIFFERENCE,t,e,t.getFactory());if(t.isEmpty())return e.copy();if(e.isEmpty())return t.copy()}if(t.isGeometryCollection()||e.isGeometryCollection())throw new d["a"]("This method does not support GeometryCollection arguments");return oe.overlayOp(t,e,pe.SYMDIFFERENCE)}static resultDimension(t,e,n){const i=e.getDimension(),r=n.getDimension();let s=-1;switch(t){case pe.INTERSECTION:s=Math.min(i,r);break;case pe.UNION:s=Math.max(i,r);break;case pe.DIFFERENCE:s=i;break;case pe.SYMDIFFERENCE:s=Math.max(i,r);break}return s}static createEmptyResult(t,e,n,i){const r=pe.resultDimension(t,e,n);return i.createEmpty(r)}static difference(t,e){if(t.isEmpty())return pe.createEmptyResult(pe.DIFFERENCE,t,e,t.getFactory());if(e.isEmpty())return t.copy();if(t.isGeometryCollection()||e.isGeometryCollection())throw new d["a"]("This method does not support GeometryCollection arguments");return oe.overlayOp(t,e,pe.DIFFERENCE)}static isResultOfOp(){if(2===arguments.length){const t=arguments[0],e=arguments[1],n=t.getLocation(0),i=t.getLocation(1);return pe.isResultOfOp(n,i,e)}if(3===arguments.length){let t=arguments[0],e=arguments[1],n=arguments[2];switch(t===ut["a"].BOUNDARY&&(t=ut["a"].INTERIOR),e===ut["a"].BOUNDARY&&(e=ut["a"].INTERIOR),n){case pe.INTERSECTION:return t===ut["a"].INTERIOR&&e===ut["a"].INTERIOR;case pe.UNION:return t===ut["a"].INTERIOR||e===ut["a"].INTERIOR;case pe.DIFFERENCE:return t===ut["a"].INTERIOR&&e!==ut["a"].INTERIOR;case pe.SYMDIFFERENCE:return t===ut["a"].INTERIOR&&e!==ut["a"].INTERIOR||t!==ut["a"].INTERIOR&&e===ut["a"].INTERIOR}return!1}}insertUniqueEdge(t){const e=this._edgeList.findEqualEdge(t);if(null!==e){const n=e.getLabel();let i=t.getLabel();e.isPointwiseEqual(t)||(i=new Et["a"](t.getLabel()),i.flip());const r=e.getDepth();r.isNull()&&r.add(n),r.add(i),n.merge(i)}else this._edgeList.add(t)}getGraph(){return this._graph}cancelDuplicateResultEdges(){for(let t=this._graph.getEdgeEnds().iterator();t.hasNext();){const e=t.next(),n=e.getSym();e.isInResult()&&n.isInResult()&&(e.setInResult(!1),n.setInResult(!1))}}mergeSymLabels(){for(let t=this._graph.getNodes().iterator();t.hasNext();){const e=t.next();e.getEdges().mergeSymLabels()}}computeOverlay(t){this.copyPoints(0),this.copyPoints(1),this._arg[0].computeSelfNodes(this._li,!1),this._arg[1].computeSelfNodes(this._li,!1),this._arg[0].computeEdgeIntersections(this._arg[1],this._li,!0);const e=new a["a"];this._arg[0].computeSplitEdges(e),this._arg[1].computeSplitEdges(e);this.insertUniqueEdges(e),this.computeLabelsFromDepths(),this.replaceCollapsedEdges(),he.checkValid(this._edgeList.getEdges()),this._graph.addEdges(this._edgeList.getEdges()),this.computeLabelling(),this.labelIncompleteNodes(),this.findResultAreaEdges(t),this.cancelDuplicateResultEdges();const n=new u(this._geomFact);n.add(this._graph),this._resultPolyList=n.getPolygons();const i=new f(this,this._geomFact,this._ptLocator);this._resultLineList=i.build(t);const r=new p(this,this._geomFact,this._ptLocator);this._resultPointList=r.build(t),this._resultGeom=this.computeGeometry(this._resultPointList,this._resultLineList,this._resultPolyList,t)}findResultAreaEdges(t){for(let e=this._graph.getEdgeEnds().iterator();e.hasNext();){const n=e.next(),i=n.getLabel();i.isArea()&&!n.isInteriorAreaEdge()&&pe.isResultOfOp(i.getLocation(0,h["a"].RIGHT),i.getLocation(1,h["a"].RIGHT),t)&&n.setInResult(!0)}}computeLabelsFromDepths(){for(let t=this._edgeList.iterator();t.hasNext();){const e=t.next(),n=e.getLabel(),i=e.getDepth();if(!i.isNull()){i.normalize();for(let t=0;t<2;t++)n.isNull(t)||!n.isArea()||i.isNull(t)||(0===i.getDelta(t)?n.toLine(t):(c["a"].isTrue(!i.isNull(t,h["a"].LEFT),"depth of LEFT side has not been initialized"),n.setLocation(t,h["a"].LEFT,i.getLocation(t,h["a"].LEFT)),c["a"].isTrue(!i.isNull(t,h["a"].RIGHT),"depth of RIGHT side has not been initialized"),n.setLocation(t,h["a"].RIGHT,i.getLocation(t,h["a"].RIGHT))))}}}isCoveredByA(t){return!!this.isCovered(t,this._resultPolyList)}isCoveredByLA(t){return!!this.isCovered(t,this._resultLineList)||!!this.isCovered(t,this._resultPolyList)}computeGeometry(t,e,n,i){const r=new a["a"];return r.addAll(t),r.addAll(e),r.addAll(n),r.isEmpty()?pe.createEmptyResult(i,this._arg[0].getGeometry(),this._arg[1].getGeometry(),this._geomFact):this._geomFact.buildGeometry(r)}isCovered(t,e){for(let n=e.iterator();n.hasNext();){const e=n.next(),i=this._ptLocator.locate(t,e);if(i!==ut["a"].EXTERIOR)return!0}return!1}replaceCollapsedEdges(){const t=new a["a"];for(let e=this._edgeList.iterator();e.hasNext();){const n=e.next();n.isCollapsed()&&(e.remove(),t.add(n.getCollapsedEdge()))}this._edgeList.addAll(t)}updateNodeLabelling(){for(let t=this._graph.getNodes().iterator();t.hasNext();){const e=t.next(),n=e.getEdges().getLabel();e.getLabel().merge(n)}}getResultGeometry(t){return this.computeOverlay(t),this._resultGeom}insertUniqueEdges(t){for(let e=t.iterator();e.hasNext();){const t=e.next();this.insertUniqueEdge(t)}}labelIncompleteNode(t,e){const n=this._ptLocator.locate(t.getCoordinate(),this._arg[e].getGeometry());t.getLabel().setLocation(e,n)}copyPoints(t){for(let e=this._arg[t].getNodeIterator();e.hasNext();){const n=e.next(),i=this._graph.addNode(n.getCoordinate());i.setLabel(t,n.getLabel().getLocation(t))}}computeLabelling(){for(let t=this._graph.getNodes().iterator();t.hasNext();){const e=t.next();e.getEdges().computeLabelling(this._arg)}this.mergeSymLabels(),this.updateNodeLabelling()}labelIncompleteNodes(){for(let t=this._graph.getNodes().iterator();t.hasNext();){const e=t.next(),n=e.getLabel();e.isIsolated()&&(n.isNull(0)?this.labelIncompleteNode(e,0):this.labelIncompleteNode(e,1)),e.getEdges().updateLabelling(n)}}}pe.INTERSECTION=1,pe.UNION=2,pe.DIFFERENCE=3,pe.SYMDIFFERENCE=4},c810:function(t,e,n){"use strict";var i=n("5dec"),r=n("1af9"),s=function(t){function e(e){var n=e||{};t.call(this,n),this.type=i["a"].IMAGE}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(r["a"]);s.prototype.getSource,e["a"]=s},c888:function(t,e,n){},c8af:function(t,e,n){"use strict";var i=n("c532");t.exports=function(t,e){i.forEach(t,function(n,i){i!==e&&i.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[i])})}},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"===typeof window&&(n=window)}t.exports=n},c8c7:function(t,e,n){"use strict";class i{getBounds(){}}var r=n("e35d");class s{constructor(){s.constructor_.apply(this,arguments)}static constructor_(){this._bounds=null,this._item=null;const t=arguments[0],e=arguments[1];this._bounds=t,this._item=e}getItem(){return this._item}getBounds(){return this._bounds}get interfaces_(){return[i,r["a"]]}}var o=n("d932"),a=n.n(o);class c{constructor(){this._fpQueue=new a.a((t,e)=>t.compareTo(e)<0)}poll(){return this._fpQueue.poll()}size(){return this._fpQueue.size}clear(){this._fpQueue=new a.a}peek(){return this._fpQueue.peek()}remove(){return this._fpQueue.poll()}isEmpty(){return this._fpQueue.isEmpty()}add(t){this._fpQueue.add(t)}}var l=n("38de"),u=n("1d1d");class h{query(){if(1===arguments.length){arguments[0]}else if(2===arguments.length){arguments[0],arguments[1]}}insert(t,e){}remove(t,e){}}var d=n("70d5"),f=n("668c");class p{constructor(){p.constructor_.apply(this,arguments)}static constructor_(){if(this._childBoundables=new d["a"],this._bounds=null,this._level=null,0===arguments.length);else if(1===arguments.length){const t=arguments[0];this._level=t}}getLevel(){return this._level}addChildBoundable(t){f["a"].isTrue(null===this._bounds),this._childBoundables.add(t)}isEmpty(){return this._childBoundables.isEmpty()}getBounds(){return null===this._bounds&&(this._bounds=this.computeBounds()),this._bounds}size(){return this._childBoundables.size()}getChildBoundables(){return this._childBoundables}get interfaces_(){return[i,r["a"]]}}var _=n("7d15"),m=n("fd89");class g{static distance(t,e,n,i){const r=n-t,s=i-e;return Math.sqrt(r*r+s*s)}static maximumDistance(t,e){const n=Math.min(t.getMinX(),e.getMinX()),i=Math.min(t.getMinY(),e.getMinY()),r=Math.max(t.getMaxX(),e.getMaxX()),s=Math.max(t.getMaxY(),e.getMaxY());return g.distance(n,i,r,s)}static minMaxDistance(t,e){const n=t.getMinX(),i=t.getMinY(),r=t.getMaxX(),s=t.getMaxY(),o=e.getMinX(),a=e.getMinY(),c=e.getMaxX(),l=e.getMaxY();let u=g.maxDistance(n,i,n,s,o,a,o,l);return u=Math.min(u,g.maxDistance(n,i,n,s,o,a,c,a)),u=Math.min(u,g.maxDistance(n,i,n,s,c,l,o,l)),u=Math.min(u,g.maxDistance(n,i,n,s,c,l,c,a)),u=Math.min(u,g.maxDistance(n,i,r,i,o,a,o,l)),u=Math.min(u,g.maxDistance(n,i,r,i,o,a,c,a)),u=Math.min(u,g.maxDistance(n,i,r,i,c,l,o,l)),u=Math.min(u,g.maxDistance(n,i,r,i,c,l,c,a)),u=Math.min(u,g.maxDistance(r,s,n,s,o,a,o,l)),u=Math.min(u,g.maxDistance(r,s,n,s,o,a,c,a)),u=Math.min(u,g.maxDistance(r,s,n,s,c,l,o,l)),u=Math.min(u,g.maxDistance(r,s,n,s,c,l,c,a)),u=Math.min(u,g.maxDistance(r,s,r,i,o,a,o,l)),u=Math.min(u,g.maxDistance(r,s,r,i,o,a,c,a)),u=Math.min(u,g.maxDistance(r,s,r,i,c,l,o,l)),u=Math.min(u,g.maxDistance(r,s,r,i,c,l,c,a)),u}static maxDistance(t,e,n,i,r,s,o,a){let c=g.distance(t,e,r,s);return c=Math.max(c,g.distance(t,e,o,a)),c=Math.max(c,g.distance(n,i,r,s)),c=Math.max(c,g.distance(n,i,o,a)),c}}var y=n("7c01");class v{constructor(){v.constructor_.apply(this,arguments)}static constructor_(){this._boundable1=null,this._boundable2=null,this._distance=null,this._itemDistance=null;const t=arguments[0],e=arguments[1],n=arguments[2];this._boundable1=t,this._boundable2=e,this._itemDistance=n,this._distance=this.distance()}static area(t){return t.getBounds().getArea()}static isComposite(t){return t instanceof p}maximumDistance(){return g.maximumDistance(this._boundable1.getBounds(),this._boundable2.getBounds())}expandToQueue(t,e){const n=v.isComposite(this._boundable1),i=v.isComposite(this._boundable2);if(n&&i)return v.area(this._boundable1)>v.area(this._boundable2)?(this.expand(this._boundable1,this._boundable2,!1,t,e),null):(this.expand(this._boundable2,this._boundable1,!0,t,e),null);if(n)return this.expand(this._boundable1,this._boundable2,!1,t,e),null;if(i)return this.expand(this._boundable2,this._boundable1,!0,t,e),null;throw new m["a"]("neither boundable is composite")}isLeaves(){return!(v.isComposite(this._boundable1)||v.isComposite(this._boundable2))}getBoundable(t){return 0===t?this._boundable1:this._boundable2}getDistance(){return this._distance}distance(){return this.isLeaves()?this._itemDistance.distance(this._boundable1,this._boundable2):this._boundable1.getBounds().distance(this._boundable2.getBounds())}compareTo(t){const e=t;return this._distancee._distance?1:0}expand(t,e,n,i,r){const s=t.getChildBoundables();for(let o=s.iterator();o.hasNext();){const t=o.next();let s=null;s=n?new v(e,t,this._itemDistance):new v(t,e,this._itemDistance),s.getDistance()1,"Node capacity must be greater than 1"),this._nodeCapacity=t}}static compareDoubles(t,e){return t>e?1:t-2),e.getLevel()===t)return n.add(e),null;for(let i=e.getChildBoundables().iterator();i.hasNext();){const e=i.next();e instanceof p?this.boundablesAtLevel(t,e,n):(f["a"].isTrue(e instanceof s),-1===t&&n.add(e))}return null}}getRoot(){return this.build(),this._root}remove(){if(2===arguments.length){const t=arguments[0],e=arguments[1];return this.build(),!!this.getIntersectsOp().intersects(this._root.getBounds(),t)&&this.remove(t,this._root,e)}if(3===arguments.length){const t=arguments[0],e=arguments[1],n=arguments[2];let i=this.removeItem(e,n);if(i)return!0;let r=null;for(let s=e.getChildBoundables().iterator();s.hasNext();){const e=s.next();if(this.getIntersectsOp().intersects(e.getBounds(),t)&&(e instanceof p&&(i=this.remove(t,e,n),i))){r=e;break}}return null!==r&&r.getChildBoundables().isEmpty()&&e.getChildBoundables().remove(r),i}}createHigherLevels(t,e){f["a"].isTrue(!t.isEmpty());const n=this.createParentBoundables(t,e+1);return 1===n.size()?n.get(0):this.createHigherLevels(n,e+1)}depth(){if(0===arguments.length)return this.isEmpty()?0:(this.build(),this.depth(this._root));if(1===arguments.length){const t=arguments[0];let e=0;for(let n=t.getChildBoundables().iterator();n.hasNext();){const t=n.next();if(t instanceof p){const n=this.depth(t);n>e&&(e=n)}}return e+1}}createParentBoundables(t,e){f["a"].isTrue(!t.isEmpty());const n=new d["a"];n.add(this.createNode(e));const i=new d["a"](t);_["a"].sort(i,this.getComparator());for(let r=i.iterator();r.hasNext();){const t=r.next();this.lastNode(n).getChildBoundables().size()===this.getNodeCapacity()&&n.add(this.createNode(e)),this.lastNode(n).addChildBoundable(t)}return n}isEmpty(){return this._built?this._root.isEmpty():this._itemBoundables.isEmpty()}getNodeCapacity(){return this._nodeCapacity}lastNode(t){return t.get(t.size()-1)}size(){if(0===arguments.length)return this.isEmpty()?0:(this.build(),this.size(this._root));if(1===arguments.length){const t=arguments[0];let e=0;for(let n=t.getChildBoundables().iterator();n.hasNext();){const t=n.next();t instanceof p?e+=this.size(t):t instanceof s&&(e+=1)}return e}}removeItem(t,e){let n=null;for(let i=t.getChildBoundables().iterator();i.hasNext();){const t=i.next();t instanceof s&&t.getItem()===e&&(n=t)}return null!==n&&(t.getChildBoundables().remove(n),!0)}itemsTree(){if(0===arguments.length){this.build();const t=this.itemsTree(this._root);return null===t?new d["a"]:t}if(1===arguments.length){const t=arguments[0],e=new d["a"];for(let n=t.getChildBoundables().iterator();n.hasNext();){const t=n.next();if(t instanceof p){const n=this.itemsTree(t);null!==n&&e.add(n)}else t instanceof s?e.add(t.getItem()):f["a"].shouldNeverReachHere()}return e.size()<=0?null:e}}query(){if(1===arguments.length){const t=arguments[0];this.build();const e=new d["a"];return this.isEmpty()?e:(this.getIntersectsOp().intersects(this._root.getBounds(),t)&&this.queryInternal(t,this._root,e),e)}if(2===arguments.length){const t=arguments[0],e=arguments[1];if(this.build(),this.isEmpty())return null;this.getIntersectsOp().intersects(this._root.getBounds(),t)&&this.queryInternal(t,this._root,e)}}build(){if(this._built)return null;this._root=this._itemBoundables.isEmpty()?this.createNode(0):this.createHigherLevels(this._itemBoundables,-1),this._itemBoundables=null,this._built=!0}get interfaces_(){return[r["a"]]}}function E(){}L.IntersectsOp=E,L.DEFAULT_NODE_CAPACITY=10;class T{distance(t,e){}}n.d(e,"a",function(){return S});class S extends L{constructor(){super(),S.constructor_.apply(this,arguments)}static constructor_(){if(0===arguments.length)S.constructor_.call(this,S.DEFAULT_NODE_CAPACITY);else if(1===arguments.length){const t=arguments[0];L.constructor_.call(this,t)}}static getItems(t){const e=new Array(t.size()).fill(null);let n=0;while(!t.isEmpty()){const i=t.poll();e[n]=i.getBoundable(0).getItem(),n++}return e}static avg(t,e){return(t+e)/2}static centreY(t){return S.avg(t.getMinY(),t.getMaxY())}static centreX(t){return S.avg(t.getMinX(),t.getMaxX())}size(){return 0===arguments.length?super.size.call(this):super.size.apply(this,arguments)}insert(){if(!(2===arguments.length&&arguments[1]instanceof Object&&arguments[0]instanceof M["a"]))return super.insert.apply(this,arguments);{const t=arguments[0],e=arguments[1];if(t.isNull())return null;super.insert.call(this,t,e)}}getIntersectsOp(){return S.intersectsOp}verticalSlices(t,e){const n=Math.trunc(Math.ceil(t.size()/e)),i=new Array(e).fill(null),r=t.iterator();for(let s=0;s0){const t=i.poll(),r=t.getDistance();if(r>=e)break;t.isLeaves()?(e=r,n=t):t.expandToQueue(i,e)}return null===n?null:[n.getBoundable(0).getItem(),n.getBoundable(1).getItem()]}}else{if(2===arguments.length){const t=arguments[0],e=arguments[1];if(this.isEmpty()||t.isEmpty())return null;const n=new v(this.getRoot(),t.getRoot(),e);return this.nearestNeighbour(n)}if(3===arguments.length){const t=arguments[0],e=arguments[1],n=arguments[2],i=new s(t,e),r=new v(this.getRoot(),i,n);return this.nearestNeighbour(r)[0]}if(4===arguments.length){const t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3],r=new s(t,e),o=new v(this.getRoot(),r,n);return this.nearestNeighbourK(o,i)}}}isWithinDistance(){if(2===arguments.length){const t=arguments[0],e=arguments[1];let n=u["a"].POSITIVE_INFINITY;const i=new c;i.add(t);while(!i.isEmpty()){const t=i.poll(),r=t.getDistance();if(r>e)return!1;if(t.maximumDistance()<=e)return!0;if(t.isLeaves()){if(n=r,n<=e)return!0}else t.expandToQueue(i,n)}return!1}if(3===arguments.length){const t=arguments[0],e=arguments[1],n=arguments[2],i=new v(this.getRoot(),t.getRoot(),e);return this.isWithinDistance(i,n)}}createParentBoundablesFromVerticalSlices(t,e){f["a"].isTrue(t.length>0);const n=new d["a"];for(let i=0;i=0){const t=r.poll(),e=t.getDistance();if(e>=i)break;if(t.isLeaves())if(s.size()e&&(s.poll(),s.add(t));const r=s.peek();i=r.getDistance()}else t.expandToQueue(r,i)}return S.getItems(s)}}createNode(t){return new O(t)}get interfaces_(){return[h,r["a"]]}}class O extends p{constructor(){super(),O.constructor_.apply(this,arguments)}static constructor_(){const t=arguments[0];p.constructor_.call(this,t)}computeBounds(){let t=null;for(let e=this.getChildBoundables().iterator();e.hasNext();){const n=e.next();null===t?t=new M["a"](n.getBounds()):t.expandToInclude(n.getBounds())}return t}}S.STRtreeNode=O,S.xComparator=new class{get interfaces_(){return[b["a"]]}compare(t,e){return L.compareDoubles(S.centreX(t.getBounds()),S.centreX(e.getBounds()))}},S.yComparator=new class{get interfaces_(){return[b["a"]]}compare(t,e){return L.compareDoubles(S.centreY(t.getBounds()),S.centreY(e.getBounds()))}},S.intersectsOp=new class{get interfaces_(){return[IntersectsOp]}intersects(t,e){return t.intersects(e)}},S.DEFAULT_NODE_CAPACITY=10},c8da:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("c6a3");class r extends i["a"]{get(){}set(){}isEmpty(){}}},c8f3:function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; +var e=t.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(t){return 2===t?"שעתיים":t+" שעות"},d:"יום",dd:function(t){return 2===t?"יומיים":t+" ימים"},M:"חודש",MM:function(t){return 2===t?"חודשיים":t+" חודשים"},y:"שנה",yy:function(t){return 2===t?"שנתיים":t%10===0&&10!==t?t+" שנה":t+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(t){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(t)},meridiem:function(t,e,n){return t<5?"לפנות בוקר":t<10?"בבוקר":t<12?n?'לפנה"צ':"לפני הצהריים":t<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}});return e})},c7e3:function(t,e,n){"use strict";var i=n("2709"),r=n("fe5c"),s=n("0dd8"),o=n("c569"),a=n("70d5"),c=n("668c"),l=n("3b32");class u{constructor(){u.constructor_.apply(this,arguments)}static constructor_(){this._geometryFactory=null,this._shellList=new a["a"];const t=arguments[0];this._geometryFactory=t}static findEdgeRingContaining(t,e){const n=t.getLinearRing(),r=n.getEnvelopeInternal();let s=n.getCoordinateN(0),a=null,c=null;for(let l=e.iterator();l.hasNext();){const t=l.next(),e=t.getLinearRing(),u=e.getEnvelopeInternal();if(u.equals(r))continue;if(!u.contains(r))continue;s=o["a"].ptNotInList(n.getCoordinates(),e.getCoordinates());let h=!1;i["a"].isInRing(s,e.getCoordinates())&&(h=!0),h&&(null===a||c.contains(u))&&(a=t,c=a.getLinearRing().getEnvelopeInternal())}return a}sortShellsAndHoles(t,e,n){for(let i=t.iterator();i.hasNext();){const t=i.next();t.isHole()?n.add(t):e.add(t)}}computePolygons(t){const e=new a["a"];for(let n=t.iterator();n.hasNext();){const t=n.next(),i=t.toPolygon(this._geometryFactory);e.add(i)}return e}placeFreeHoles(t,e){for(let n=e.iterator();n.hasNext();){const e=n.next();if(null===e.getShell()){const n=u.findEdgeRingContaining(e,t);if(null===n)throw new r["a"]("unable to assign hole to a shell",e.getCoordinate(0));e.setShell(n)}}}buildMinimalEdgeRings(t,e,n){const i=new a["a"];for(let r=t.iterator();r.hasNext();){const t=r.next();if(t.getMaxNodeDegree()>2){t.linkDirectedEdgesForMinimalEdgeRings();const i=t.buildMinimalRings(),r=this.findShell(i);null!==r?(this.placePolygonHoles(r,i),e.add(r)):n.addAll(i)}else i.add(t)}return i}buildMaximalEdgeRings(t){const e=new a["a"];for(let n=t.iterator();n.hasNext();){const t=n.next();if(t.isInResult()&&t.getLabel().isArea()&&null===t.getEdgeRing()){const n=new s["a"](t,this._geometryFactory);e.add(n),n.setInResult()}}return e}placePolygonHoles(t,e){for(let n=e.iterator();n.hasNext();){const e=n.next();e.isHole()&&e.setShell(t)}}getPolygons(){const t=this.computePolygons(this._shellList);return t}findShell(t){let e=0,n=null;for(let i=t.iterator();i.hasNext();){const t=i.next();t.isHole()||(n=t,e++)}return c["a"].isTrue(e<=1,"found two shells in MinimalEdgeRing list"),n}add(){if(1===arguments.length){const t=arguments[0];this.add(t.getEdgeEnds(),t.getNodes())}else if(2===arguments.length){const t=arguments[0],e=arguments[1];l["a"].linkResultDirectedEdges(e);const n=this.buildMaximalEdgeRings(t),i=new a["a"],r=this.buildMinimalEdgeRings(n,this._shellList,i);this.sortShellsAndHoles(r,this._shellList,i),this.placeFreeHoles(this._shellList,i)}}}var h=n("0360"),d=n("fd89");class f{constructor(){f.constructor_.apply(this,arguments)}static constructor_(){this._op=null,this._geometryFactory=null,this._ptLocator=null,this._lineEdgesList=new a["a"],this._resultLineList=new a["a"];const t=arguments[0],e=arguments[1],n=arguments[2];this._op=t,this._geometryFactory=e,this._ptLocator=n}collectLines(t){for(let e=this._op.getGraph().getEdgeEnds().iterator();e.hasNext();){const n=e.next();this.collectLineEdge(n,t,this._lineEdgesList),this.collectBoundaryTouchEdge(n,t,this._lineEdgesList)}}labelIsolatedLine(t,e){const n=this._ptLocator.locate(t.getCoordinate(),this._op.getArgGeometry(e));t.getLabel().setLocation(e,n)}build(t){return this.findCoveredLineEdges(),this.collectLines(t),this.buildLines(t),this._resultLineList}collectLineEdge(t,e,n){const i=t.getLabel(),r=t.getEdge();t.isLineEdge()&&(t.isVisited()||!pe.isResultOfOp(i,e)||r.isCovered()||(n.add(r),t.setVisitedEdge(!0)))}findCoveredLineEdges(){for(let t=this._op.getGraph().getNodes().iterator();t.hasNext();){const e=t.next();e.getEdges().findCoveredLineEdges()}for(let t=this._op.getGraph().getEdgeEnds().iterator();t.hasNext();){const e=t.next(),n=e.getEdge();if(e.isLineEdge()&&!n.isCoveredSet()){const t=this._op.isCoveredByA(e.getCoordinate());n.setCovered(t)}}}labelIsolatedLines(t){for(let e=t.iterator();e.hasNext();){const t=e.next(),n=t.getLabel();t.isIsolated()&&(n.isNull(0)?this.labelIsolatedLine(t,0):this.labelIsolatedLine(t,1))}}buildLines(t){for(let e=this._lineEdgesList.iterator();e.hasNext();){const t=e.next(),n=this._geometryFactory.createLineString(t.getCoordinates());this._resultLineList.add(n),t.setInResult(!0)}}collectBoundaryTouchEdge(t,e,n){const i=t.getLabel();return t.isLineEdge()?null:t.isVisited()?null:t.isInteriorAreaEdge()?null:t.getEdge().isInResult()?null:(c["a"].isTrue(!(t.isInResult()||t.getSym().isInResult())||!t.getEdge().isInResult()),void(pe.isResultOfOp(i,e)&&e===pe.INTERSECTION&&(n.add(t.getEdge()),t.setVisitedEdge(!0))))}}class p{constructor(){p.constructor_.apply(this,arguments)}static constructor_(){this._op=null,this._geometryFactory=null,this._resultPointList=new a["a"];const t=arguments[0],e=arguments[1];arguments[2];this._op=t,this._geometryFactory=e}build(t){return this.extractNonCoveredResultNodes(t),this._resultPointList}extractNonCoveredResultNodes(t){for(let e=this._op.getGraph().getNodes().iterator();e.hasNext();){const n=e.next();if(!n.isInResult()&&(!n.isIncidentEdgeInResult()&&(0===n.getEdges().getDegree()||t===pe.INTERSECTION))){const e=n.getLabel();pe.isResultOfOp(e,t)&&this.filterCoveredNodeToPoint(n)}}}filterCoveredNodeToPoint(t){const e=t.getCoordinate();if(!this._op.isCoveredByLA(e)){const t=this._geometryFactory.createPoint(e);this._resultPointList.add(t)}}}var _=n("a829"),m=n("1d1d");class g{constructor(){g.constructor_.apply(this,arguments)}static constructor_(){if(this._quadrantSegments=g.DEFAULT_QUADRANT_SEGMENTS,this._endCapStyle=g.CAP_ROUND,this._joinStyle=g.JOIN_ROUND,this._mitreLimit=g.DEFAULT_MITRE_LIMIT,this._isSingleSided=!1,this._simplifyFactor=g.DEFAULT_SIMPLIFY_FACTOR,0===arguments.length);else if(1===arguments.length){const t=arguments[0];this.setQuadrantSegments(t)}else if(2===arguments.length){const t=arguments[0],e=arguments[1];this.setQuadrantSegments(t),this.setEndCapStyle(e)}else if(4===arguments.length){const t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3];this.setQuadrantSegments(t),this.setEndCapStyle(e),this.setJoinStyle(n),this.setMitreLimit(i)}}static bufferDistanceError(t){const e=Math.PI/2/t;return 1-Math.cos(e/2)}getEndCapStyle(){return this._endCapStyle}isSingleSided(){return this._isSingleSided}setQuadrantSegments(t){this._quadrantSegments=t,0===this._quadrantSegments&&(this._joinStyle=g.JOIN_BEVEL),this._quadrantSegments<0&&(this._joinStyle=g.JOIN_MITRE,this._mitreLimit=Math.abs(this._quadrantSegments)),t<=0&&(this._quadrantSegments=1),this._joinStyle!==g.JOIN_ROUND&&(this._quadrantSegments=g.DEFAULT_QUADRANT_SEGMENTS)}getJoinStyle(){return this._joinStyle}setJoinStyle(t){this._joinStyle=t}setSimplifyFactor(t){this._simplifyFactor=t<0?0:t}getSimplifyFactor(){return this._simplifyFactor}getQuadrantSegments(){return this._quadrantSegments}setEndCapStyle(t){this._endCapStyle=t}getMitreLimit(){return this._mitreLimit}setMitreLimit(t){this._mitreLimit=t}setSingleSided(t){this._isSingleSided=t}}g.CAP_ROUND=1,g.CAP_FLAT=2,g.CAP_SQUARE=3,g.JOIN_ROUND=1,g.JOIN_MITRE=2,g.JOIN_BEVEL=3,g.DEFAULT_QUADRANT_SEGMENTS=8,g.DEFAULT_MITRE_LIMIT=5,g.DEFAULT_SIMPLIFY_FACTOR=.01;var y=n("38de"),v=n("ad3f"),b=n("0ba1");class M{static relativeSign(t,e){return te?1:0}static compareValue(t,e){return t<0?-1:t>0?1:e<0?-1:e>0?1:0}static compare(t,e,n){if(e.equals2D(n))return 0;const i=M.relativeSign(e.x,n.x),r=M.relativeSign(e.y,n.y);switch(t){case 0:return M.compareValue(i,r);case 1:return M.compareValue(r,i);case 2:return M.compareValue(r,-i);case 3:return M.compareValue(-i,r);case 4:return M.compareValue(-i,-r);case 5:return M.compareValue(-r,-i);case 6:return M.compareValue(-r,i);case 7:return M.compareValue(i,-r)}return c["a"].shouldNeverReachHere("invalid octant value"),0}}var w=n("7c01");class x{constructor(){x.constructor_.apply(this,arguments)}static constructor_(){this._segString=null,this.coord=null,this.segmentIndex=null,this._segmentOctant=null,this._isInterior=null;const t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3];this._segString=t,this.coord=new v["a"](e),this.segmentIndex=n,this._segmentOctant=i,this._isInterior=!e.equals2D(t.getCoordinate(n))}getCoordinate(){return this.coord}print(t){t.print(this.coord),t.print(" seg # = "+this.segmentIndex)}compareTo(t){const e=t;return this.segmentIndexe.segmentIndex?1:this.coord.equals2D(e.coord)?0:this._isInterior?e._isInterior?M.compare(this._segmentOctant,this.coord,e.coord):1:-1}isEndPoint(t){return 0===this.segmentIndex&&!this._isInterior||this.segmentIndex===t}toString(){return this.segmentIndex+":"+this.coord.toString()}isInterior(){return this._isInterior}get interfaces_(){return[w["a"]]}}n("5912");var L=n("3101"),E=n("46ef"),T=n("7701"),S=n("55f7");class O{constructor(){O.constructor_.apply(this,arguments)}static constructor_(){this._nodeMap=new T["a"],this._edge=null;const t=arguments[0];this._edge=t}getSplitCoordinates(){const t=new b["a"];this.addEndpoints();const e=this.iterator();let n=e.next();while(e.hasNext()){const i=e.next();this.addEdgeCoordinates(n,i,t),n=i}return t.toCoordinateArray()}print(t){t.println("Intersections:");for(let e=this.iterator();e.hasNext();){const n=e.next();n.print(t)}}findCollapsesFromExistingVertices(t){for(let e=0;e=0?e>=0?n>=i?0:1:n>=i?7:6:e>=0?n>=i?3:2:n>=i?4:5}if(arguments[0]instanceof v["a"]&&arguments[1]instanceof v["a"]){const t=arguments[0],e=arguments[1],n=e.x-t.x,i=e.y-t.y;if(0===n&&0===i)throw new d["a"]("Cannot compute the octant for two identical points "+t);return I.octant(n,i)}}}class D{getCoordinates(){}size(){}getCoordinate(t){}isClosed(){}setData(t){}getData(){}}class R{addIntersection(t,e){}get interfaces_(){return[D]}}class A{constructor(){A.constructor_.apply(this,arguments)}static constructor_(){this._nodeList=new O(this),this._pts=null,this._data=null;const t=arguments[0],e=arguments[1];this._pts=t,this._data=e}static getNodedSubstrings(){if(1===arguments.length){const t=arguments[0],e=new a["a"];return A.getNodedSubstrings(t,e),e}if(2===arguments.length){const t=arguments[0],e=arguments[1];for(let n=t.iterator();n.hasNext();){const t=n.next();t.getNodeList().addSplitEdges(e)}}}getCoordinates(){return this._pts}size(){return this._pts.length}getCoordinate(t){return this._pts[t]}isClosed(){return this._pts[0].equals(this._pts[this._pts.length-1])}getSegmentOctant(t){return t===this._pts.length-1?-1:this.safeOctant(this.getCoordinate(t),this.getCoordinate(t+1))}toString(){return k["a"].toLineString(new C["a"](this._pts))}getNodeList(){return this._nodeList}addIntersectionNode(t,e){let n=e;const i=n+1;if(i=t.length-1)return t.length-1;const i=X["a"].quadrant(t[n],t[n+1]);let r=e+1;while(rn.getId()&&(n.computeOverlaps(i,t),this._nOverlaps++),this._segInt.isDone())return null}}}}class Q extends W{constructor(){super(),Q.constructor_.apply(this,arguments)}static constructor_(){this._si=null;const t=arguments[0];this._si=t}overlap(){if(4!==arguments.length)return super.overlap.apply(this,arguments);{const t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3],r=t.getContext(),s=n.getContext();this._si.processIntersections(r,e,s,i)}}}Z.SegmentOverlapAction=Q;class tt{constructor(){tt.constructor_.apply(this,arguments)}static constructor_(){this._li=null,this._pt=null,this._originalPt=null,this._ptScaled=null,this._p0Scaled=null,this._p1Scaled=null,this._scaleFactor=null,this._minx=null,this._maxx=null,this._miny=null,this._maxy=null,this._corner=new Array(4).fill(null),this._safeEnv=null;const t=arguments[0],e=arguments[1],n=arguments[2];if(this._originalPt=t,this._pt=t,this._scaleFactor=e,this._li=n,e<=0)throw new d["a"]("Scale factor must be non-zero");1!==e&&(this._pt=new v["a"](this.scale(t.x),this.scale(t.y)),this._p0Scaled=new v["a"],this._p1Scaled=new v["a"]),this.initCorners(this._pt)}intersectsScaled(t,e){const n=Math.min(t.x,e.x),i=Math.max(t.x,e.x),r=Math.min(t.y,e.y),s=Math.max(t.y,e.y),o=this._maxxi||this._maxys;if(o)return!1;const a=this.intersectsToleranceSquare(t,e);return c["a"].isTrue(!(o&&a),"Found bad envelope test"),a}copyScaled(t,e){e.x=this.scale(t.x),e.y=this.scale(t.y)}getSafeEnvelope(){if(null===this._safeEnv){const t=tt.SAFE_ENV_EXPANSION_FACTOR/this._scaleFactor;this._safeEnv=new $["a"](this._originalPt.x-t,this._originalPt.x+t,this._originalPt.y-t,this._originalPt.y+t)}return this._safeEnv}intersectsPixelClosure(t,e){return this._li.computeIntersection(t,e,this._corner[0],this._corner[1]),!!this._li.hasIntersection()||(this._li.computeIntersection(t,e,this._corner[1],this._corner[2]),!!this._li.hasIntersection()||(this._li.computeIntersection(t,e,this._corner[2],this._corner[3]),!!this._li.hasIntersection()||(this._li.computeIntersection(t,e,this._corner[3],this._corner[0]),!!this._li.hasIntersection())))}intersectsToleranceSquare(t,e){let n=!1,i=!1;return this._li.computeIntersection(t,e,this._corner[0],this._corner[1]),!!this._li.isProper()||(this._li.computeIntersection(t,e,this._corner[1],this._corner[2]),!!this._li.isProper()||(this._li.hasIntersection()&&(n=!0),this._li.computeIntersection(t,e,this._corner[2],this._corner[3]),!!this._li.isProper()||(this._li.hasIntersection()&&(i=!0),this._li.computeIntersection(t,e,this._corner[3],this._corner[0]),!!this._li.isProper()||(!(!n||!i)||(!!t.equals(this._pt)||!!e.equals(this._pt))))))}addSnappedNode(t,e){const n=t.getCoordinate(e),i=t.getCoordinate(e+1);return!!this.intersects(n,i)&&(t.addIntersection(this.getCoordinate(),e),!0)}initCorners(t){const e=.5;this._minx=t.x-e,this._maxx=t.x+e,this._miny=t.y-e,this._maxy=t.y+e,this._corner[0]=new v["a"](this._maxx,this._maxy),this._corner[1]=new v["a"](this._minx,this._maxy),this._corner[2]=new v["a"](this._minx,this._miny),this._corner[3]=new v["a"](this._maxx,this._miny)}intersects(t,e){return 1===this._scaleFactor?this.intersectsScaled(t,e):(this.copyScaled(t,this._p0Scaled),this.copyScaled(e,this._p1Scaled),this.intersectsScaled(this._p0Scaled,this._p1Scaled))}scale(t){return Math.round(t*this._scaleFactor)}getCoordinate(){return this._originalPt}}tt.SAFE_ENV_EXPANSION_FACTOR=.75;var et=n("3f99");class nt{constructor(){nt.constructor_.apply(this,arguments)}static constructor_(){this.selectedSegment=new U["a"]}select(){if(1===arguments.length){arguments[0]}else if(2===arguments.length){const t=arguments[0],e=arguments[1];t.getLineSegment(e,this.selectedSegment),this.select(this.selectedSegment)}}}var it=n("0660");class rt{constructor(){rt.constructor_.apply(this,arguments)}static constructor_(){this._index=null;const t=arguments[0];this._index=t}snap(){if(1===arguments.length){const t=arguments[0];return this.snap(t,null,-1)}if(3===arguments.length){const t=arguments[0],e=arguments[1],n=arguments[2],i=t.getSafeEnvelope(),r=new st(t,e,n);return this._index.query(i,new class{get interfaces_(){return[it["a"]]}visitItem(t){const e=t;e.select(i,r)}}),r.isNodeAdded()}}}class st extends nt{constructor(){super(),st.constructor_.apply(this,arguments)}static constructor_(){this._hotPixel=null,this._parentEdge=null,this._hotPixelVertexIndex=null,this._isNodeAdded=!1;const t=arguments[0],e=arguments[1],n=arguments[2];this._hotPixel=t,this._parentEdge=e,this._hotPixelVertexIndex=n}select(){if(!(2===arguments.length&&Number.isInteger(arguments[1])&&arguments[0]instanceof V))return super.select.apply(this,arguments);{const t=arguments[0],e=arguments[1],n=t.getContext();if(this._parentEdge===n&&(e===this._hotPixelVertexIndex||e+1===this._hotPixelVertexIndex))return null;this._isNodeAdded|=this._hotPixel.addSnappedNode(n,e)}}isNodeAdded(){return this._isNodeAdded}}rt.HotPixelSnapAction=st;class ot{isDone(){}processIntersections(t,e,n,i){}}class at{constructor(){at.constructor_.apply(this,arguments)}static constructor_(){this._li=null,this._interiorIntersections=null;const t=arguments[0];this._li=t,this._interiorIntersections=new a["a"]}isDone(){return!1}processIntersections(t,e,n,i){if(t===n&&e===i)return null;const r=t.getCoordinates()[e],s=t.getCoordinates()[e+1],o=n.getCoordinates()[i],a=n.getCoordinates()[i+1];if(this._li.computeIntersection(r,s,o,a),this._li.hasIntersection()&&this._li.isInteriorIntersection()){for(let t=0;t0&&this._minIndexthis._minCoord.y&&n.y>this._minCoord.y&&i===ft["a"].CLOCKWISE&&(r=!0),r&&(this._minIndex=this._minIndex-1)}getRightmostSideOfSegment(t,e){const n=t.getEdge(),i=n.getCoordinates();if(e<0||e+1>=i.length)return-1;if(i[e].y===i[e+1].y)return-1;let r=h["a"].LEFT;return i[e].ythis._minCoord.x)&&(this._minDe=t,this._minIndex=n,this._minCoord=e[n])}findRightmostEdgeAtNode(){const t=this._minDe.getNode(),e=t.getEdges();this._minDe=e.getRightmostEdge(),this._minDe.isForward()||(this._minDe=this._minDe.getSym(),this._minIndex=this._minDe.getEdge().getCoordinates().length-1)}findEdge(t){for(let n=t.iterator();n.hasNext();){const t=n.next();t.isForward()&&this.checkForRightmostCoordinate(t)}c["a"].isTrue(0!==this._minIndex||this._minCoord.equals(this._minDe.getCoordinate()),"inconsistency in rightmost processing"),0===this._minIndex?this.findRightmostEdgeAtNode():this.findRightmostEdgeAtVertex(),this._orientedDe=this._minDe;const e=this.getRightmostSide(this._minDe,this._minIndex);e===h["a"].LEFT&&(this._orientedDe=this._minDe.getSym())}}class _t{constructor(){this.array=[]}addLast(t){this.array.push(t)}removeFirst(){return this.array.shift()}isEmpty(){return 0===this.array.length}}class mt{constructor(){mt.constructor_.apply(this,arguments)}static constructor_(){this._finder=null,this._dirEdgeList=new a["a"],this._nodes=new a["a"],this._rightMostCoord=null,this._env=null,this._finder=new pt}clearVisitedEdges(){for(let t=this._dirEdgeList.iterator();t.hasNext();){const e=t.next();e.setVisited(!1)}}compareTo(t){const e=t;return this._rightMostCoord.xe._rightMostCoord.x?1:0}getEnvelope(){if(null===this._env){const t=new $["a"];for(let e=this._dirEdgeList.iterator();e.hasNext();){const n=e.next(),i=n.getEdge().getCoordinates();for(let e=0;e=1&&e.getDepth(h["a"].LEFT)<=0&&!e.isInteriorAreaEdge()&&e.setInResult(!0)}}computeDepths(t){const e=new ht["a"],n=new _t,i=t.getNode();n.addLast(i),e.add(i),t.setVisited(!0);while(!n.isEmpty()){const t=n.removeFirst();e.add(t),this.computeNodeDepth(t);for(let i=t.getEdges().iterator();i.hasNext();){const t=i.next(),r=t.getSym();if(r.isVisited())continue;const s=r.getNode();e.contains(s)||(n.addLast(s),e.add(s))}}}getNodes(){return this._nodes}getDirectedEdges(){return this._dirEdgeList}get interfaces_(){return[w["a"]]}}var gt=n("6336");class yt{constructor(){yt.constructor_.apply(this,arguments)}static constructor_(){this._inputLine=null,this._distanceTol=null,this._isDeleted=null,this._angleOrientation=ft["a"].COUNTERCLOCKWISE;const t=arguments[0];this._inputLine=t}static simplify(t,e){const n=new yt(t);return n.simplify(e)}isDeletable(t,e,n,i){const r=this._inputLine[t],s=this._inputLine[e],o=this._inputLine[n];return!!this.isConcave(r,s,o)&&(!!this.isShallow(r,s,o,i)&&this.isShallowSampled(r,s,t,n,i))}deleteShallowConcavities(){let t=1,e=this.findNextNonDeletedIndex(t),n=this.findNextNonDeletedIndex(e),i=!1;while(n=0;n--)this.addPt(t[n])}isRedundant(t){if(this._ptList.size()<1)return!1;const e=this._ptList.get(this._ptList.size()-1),n=t.distance(e);return n=8&&e.getJoinStyle()===g.JOIN_ROUND&&(this._closingSegLengthFactor=wt.MAX_CLOSING_SEG_LEN_FACTOR),this.init(n)}getCoordinates(){const t=this._segList.getCoordinates();return t}addMitreJoin(t,e,n,i){const r=bt["a"].intersection(e.p0,e.p1,n.p0,n.p1);if(null!==r){const e=i<=0?1:r.distance(t)/Math.abs(i);if(e<=this._bufParams.getMitreLimit())return this._segList.addPt(r),null}this.addLimitedMitreJoin(e,n,i,this._bufParams.getMitreLimit())}addLastSegment(){this._segList.addPt(this._offset1.p1)}initSideSegments(t,e,n){this._s1=t,this._s2=e,this._side=n,this._seg1.setCoordinates(t,e),this.computeOffsetSegment(this._seg1,n,this._distance,this._offset1)}addLimitedMitreJoin(t,e,n,i){const r=this._seg0.p1,s=Mt["a"].angle(r,this._seg0.p0),o=Mt["a"].angleBetweenOriented(this._seg0.p0,r,this._seg1.p1),a=o/2,c=Mt["a"].normalize(s+a),l=Mt["a"].normalize(c+Math.PI),u=i*n,d=u*Math.abs(Math.sin(a)),f=n-d,p=r.x+u*Math.cos(l),_=r.y+u*Math.sin(l),m=new v["a"](p,_),g=new U["a"](r,m),y=g.pointAlongOffset(1,f),b=g.pointAlongOffset(1,-f);this._side===h["a"].LEFT?(this._segList.addPt(y),this._segList.addPt(b)):(this._segList.addPt(b),this._segList.addPt(y))}addDirectedFillet(t,e,n,i,r){const s=i===ft["a"].CLOCKWISE?-1:1,o=Math.abs(e-n),a=Math.trunc(o/this._filletAngleQuantum+.5);if(a<1)return null;const c=o/a,l=new v["a"];for(let u=0;u0){const t=new v["a"]((this._closingSegLengthFactor*this._offset0.p1.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset0.p1.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(t);const e=new v["a"]((this._closingSegLengthFactor*this._offset1.p0.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset1.p0.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(e)}else this._segList.addPt(this._s1);this._segList.addPt(this._offset1.p0)}}createCircle(t){const e=new v["a"](t.x+this._distance,t.y);this._segList.addPt(e),this.addDirectedFillet(t,0,2*Math.PI,-1,this._distance),this._segList.closeRing()}addBevelJoin(t,e){this._segList.addPt(t.p1),this._segList.addPt(e.p0)}init(t){this._distance=t,this._maxCurveSegmentError=t*(1-Math.cos(this._filletAngleQuantum/2)),this._segList=new vt,this._segList.setPrecisionModel(this._precisionModel),this._segList.setMinimumVertexDistance(t*wt.CURVE_VERTEX_SNAP_DISTANCE_FACTOR)}addCollinear(t){this._li.computeIntersection(this._s0,this._s1,this._s1,this._s2);const e=this._li.getIntersectionNum();e>=2&&(this._bufParams.getJoinStyle()===g.JOIN_BEVEL||this._bufParams.getJoinStyle()===g.JOIN_MITRE?(t&&this._segList.addPt(this._offset0.p1),this._segList.addPt(this._offset1.p0)):this.addCornerFillet(this._s1,this._offset0.p1,this._offset1.p0,ft["a"].CLOCKWISE,this._distance))}addNextSegment(t,e){if(this._s0=this._s1,this._s1=this._s2,this._s2=t,this._seg0.setCoordinates(this._s0,this._s1),this.computeOffsetSegment(this._seg0,this._side,this._distance,this._offset0),this._seg1.setCoordinates(this._s1,this._s2),this.computeOffsetSegment(this._seg1,this._side,this._distance,this._offset1),this._s1.equals(this._s2))return null;const n=ft["a"].index(this._s0,this._s1,this._s2),i=n===ft["a"].CLOCKWISE&&this._side===h["a"].LEFT||n===ft["a"].COUNTERCLOCKWISE&&this._side===h["a"].RIGHT;0===n?this.addCollinear(e):i?this.addOutsideTurn(n,e):this.addInsideTurn(n,e)}addLineEndCap(t,e){const n=new U["a"](t,e),i=new U["a"];this.computeOffsetSegment(n,h["a"].LEFT,this._distance,i);const r=new U["a"];this.computeOffsetSegment(n,h["a"].RIGHT,this._distance,r);const s=e.x-t.x,o=e.y-t.y,a=Math.atan2(o,s);switch(this._bufParams.getEndCapStyle()){case g.CAP_ROUND:this._segList.addPt(i.p1),this.addDirectedFillet(e,a+Math.PI/2,a-Math.PI/2,ft["a"].CLOCKWISE,this._distance),this._segList.addPt(r.p1);break;case g.CAP_FLAT:this._segList.addPt(i.p1),this._segList.addPt(r.p1);break;case g.CAP_SQUARE:const t=new v["a"];t.x=Math.abs(this._distance)*Math.cos(a),t.y=Math.abs(this._distance)*Math.sin(a);const n=new v["a"](i.p1.x+t.x,i.p1.y+t.y),s=new v["a"](r.p1.x+t.x,r.p1.y+t.y);this._segList.addPt(n),this._segList.addPt(s);break}}addOutsideTurn(t,e){if(this._offset0.p1.distance(this._offset1.p0)=u&&(a-=2*Math.PI),this._segList.addPt(e),this.addDirectedFillet(t,a,u,i,r),this._segList.addPt(n)}closeRing(){this._segList.closeRing()}hasNarrowConcaveAngle(){return this._hasNarrowConcaveAngle}}wt.OFFSET_SEGMENT_SEPARATION_FACTOR=.001,wt.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR=.001,wt.CURVE_VERTEX_SNAP_DISTANCE_FACTOR=1e-6,wt.MAX_CLOSING_SEG_LEN_FACTOR=80;class xt{constructor(){xt.constructor_.apply(this,arguments)}static constructor_(){this._distance=0,this._precisionModel=null,this._bufParams=null;const t=arguments[0],e=arguments[1];this._precisionModel=t,this._bufParams=e}static copyCoordinates(t){const e=new Array(t.length).fill(null);for(let n=0;n=0;t--)n.addNextSegment(e[t],!0)}else{n.addSegments(t,!1);const e=yt.simplify(t,i),r=e.length-1;n.initSideSegments(e[0],e[1],h["a"].LEFT),n.addFirstSegment();for(let t=2;t<=r;t++)n.addNextSegment(e[t],!0)}n.addLastSegment(),n.closeRing()}computeRingBufferCurve(t,e,n){let i=this.simplifyTolerance(this._distance);e===h["a"].RIGHT&&(i=-i);const r=yt.simplify(t,i),s=r.length-1;n.initSideSegments(r[s-1],r[0],e);for(let o=1;o<=s;o++){const t=1!==o;n.addNextSegment(r[o],t)}n.closeRing()}computeLineBufferCurve(t,e){const n=this.simplifyTolerance(this._distance),i=yt.simplify(t,n),r=i.length-1;e.initSideSegments(i[0],i[1],h["a"].LEFT);for(let a=2;a<=r;a++)e.addNextSegment(i[a],!0);e.addLastSegment(),e.addLineEndCap(i[r-1],i[r]);const s=yt.simplify(t,-n),o=s.length-1;e.initSideSegments(s[o],s[o-1],h["a"].LEFT);for(let a=o-2;a>=0;a--)e.addNextSegment(s[a],!0);e.addLastSegment(),e.addLineEndCap(s[1],s[0]),e.closeRing()}computePointCurve(t,e){switch(this._bufParams.getEndCapStyle()){case g.CAP_ROUND:e.createCircle(t);break;case g.CAP_SQUARE:e.createSquare(t);break}}getLineCurve(t,e){if(this._distance=e,this.isLineOffsetEmpty(e))return null;const n=Math.abs(e),i=this.getSegGen(n);if(t.length<=1)this.computePointCurve(t[0],i);else if(this._bufParams.isSingleSided()){const n=e<0;this.computeSingleSidedBufferCurve(t,n,i)}else this.computeLineBufferCurve(t,i);const r=i.getCoordinates();return r}getBufferParameters(){return this._bufParams}simplifyTolerance(t){return t*this._bufParams.getSimplifyFactor()}getRingCurve(t,e,n){if(this._distance=n,t.length<=2)return this.getLineCurve(t,n);if(0===n)return xt.copyCoordinates(t);const i=this.getSegGen(n);return this.computeRingBufferCurve(t,e,i),i.getCoordinates()}computeOffsetCurve(t,e,n){const i=this.simplifyTolerance(this._distance);if(e){const e=yt.simplify(t,-i),r=e.length-1;n.initSideSegments(e[r],e[r-1],h["a"].LEFT),n.addFirstSegment();for(let t=r-2;t>=0;t--)n.addNextSegment(e[t],!0)}else{const e=yt.simplify(t,i),r=e.length-1;n.initSideSegments(e[0],e[1],h["a"].LEFT),n.addFirstSegment();for(let t=2;t<=r;t++)n.addNextSegment(e[t],!0)}n.addLastSegment()}isLineOffsetEmpty(t){return 0===t||t<0&&!this._bufParams.isSingleSided()}getSegGen(t){return new wt(this._precisionModel,this._bufParams,t)}}var Lt=n("7d15"),Et=n("b08b"),Tt=n("c8da"),St=n("69ba");class Ot{constructor(){Ot.constructor_.apply(this,arguments)}static constructor_(){this._subgraphs=null,this._seg=new U["a"];const t=arguments[0];this._subgraphs=t}findStabbedSegments(){if(1===arguments.length){const t=arguments[0],e=new a["a"];for(let n=this._subgraphs.iterator();n.hasNext();){const i=n.next(),r=i.getEnvelope();t.yr.getMaxY()||this.findStabbedSegments(t,i.getDirectedEdges(),e)}return e}if(3===arguments.length)if(Object(y["a"])(arguments[2],Tt["a"])&&arguments[0]instanceof v["a"]&&arguments[1]instanceof St["a"]){const t=arguments[0],e=arguments[1],n=arguments[2],i=e.getEdge().getCoordinates();for(let r=0;rthis._seg.p1.y&&this._seg.reverse();const s=Math.max(this._seg.p0.x,this._seg.p1.x);if(sthis._seg.p1.y)continue;if(ft["a"].index(this._seg.p0,this._seg.p1,t)===ft["a"].RIGHT)continue;let o=e.getDepth(h["a"].LEFT);this._seg.p0.equals(i[r])||(o=e.getDepth(h["a"].RIGHT));const a=new kt(this._seg,o);n.add(a)}}else if(Object(y["a"])(arguments[2],Tt["a"])&&arguments[0]instanceof v["a"]&&Object(y["a"])(arguments[1],Tt["a"])){const t=arguments[0],e=arguments[1],n=arguments[2];for(let i=e.iterator();i.hasNext();){const e=i.next();e.isForward()&&this.findStabbedSegments(t,e,n)}}}getDepth(t){const e=this.findStabbedSegments(t);if(0===e.size())return 0;const n=Lt["a"].min(e);return n._leftDepth}}class kt{constructor(){kt.constructor_.apply(this,arguments)}static constructor_(){this._upwardSeg=null,this._leftDepth=null;const t=arguments[0],e=arguments[1];this._upwardSeg=new U["a"](t),this._leftDepth=e}compareX(t,e){const n=t.p0.compareTo(e.p0);return 0!==n?n:t.p1.compareTo(e.p1)}toString(){return this._upwardSeg.toString()}compareTo(t){const e=t;if(this._upwardSeg.minX()>=e._upwardSeg.maxX())return 1;if(this._upwardSeg.maxX()<=e._upwardSeg.minX())return-1;let n=this._upwardSeg.orientationIndex(e._upwardSeg);return 0!==n?n:(n=-1*e._upwardSeg.orientationIndex(this._upwardSeg),0!==n?n:this._upwardSeg.compareTo(e._upwardSeg))}get interfaces_(){return[w["a"]]}}Ot.DepthSegment=kt;var Ct=n("138e"),It=n("a02c"),Dt=n("3894"),Rt=n("76af"),At=n("58e9"),Nt=n("b37b"),Yt=n("78c4"),Pt=n("f69e"),jt=n("c73a");class Ft{constructor(){Ft.constructor_.apply(this,arguments)}static constructor_(){this._inputGeom=null,this._distance=null,this._curveBuilder=null,this._curveList=new a["a"];const t=arguments[0],e=arguments[1],n=arguments[2];this._inputGeom=t,this._distance=e,this._curveBuilder=n}addRingSide(t,e,n,i,r){if(0===e&&t.length=Dt["a"].MINIMUM_VALID_SIZE&&ft["a"].isCCW(t)&&(s=r,o=i,n=h["a"].opposite(n));const a=this._curveBuilder.getRingCurve(t,n,e);this.addCurve(a,s,o)}addRingBothSides(t,e){this.addRingSide(t,e,h["a"].LEFT,ut["a"].EXTERIOR,ut["a"].INTERIOR),this.addRingSide(t,e,h["a"].RIGHT,ut["a"].INTERIOR,ut["a"].EXTERIOR)}addPoint(t){if(this._distance<=0)return null;const e=t.getCoordinates(),n=this._curveBuilder.getLineCurve(e,this._distance);this.addCurve(n,ut["a"].EXTERIOR,ut["a"].INTERIOR)}addPolygon(t){let e=this._distance,n=h["a"].LEFT;this._distance<0&&(e=-this._distance,n=h["a"].RIGHT);const i=t.getExteriorRing(),r=o["a"].removeRepeatedPoints(i.getCoordinates());if(this._distance<0&&this.isErodedCompletely(i,this._distance))return null;if(this._distance<=0&&r.length<3)return null;this.addRingSide(r,e,n,ut["a"].EXTERIOR,ut["a"].INTERIOR);for(let s=0;s0&&this.isErodedCompletely(i,-this._distance)||this.addRingSide(r,e,h["a"].opposite(n),ut["a"].INTERIOR,ut["a"].EXTERIOR)}}isTriangleErodedCompletely(t,e){const n=new Nt["a"](t[0],t[1],t[2]),i=n.inCentre(),r=gt["a"].pointToSegment(i,n.p0,n.p1);return rr}addCollection(t){for(let e=0;e0&&t.print(","),t.print("(");const i=n.getCoordinates();for(let e=0;e0&&t.print(","),t.print(i[e].x+" "+i[e].y);t.println(")")}t.print(") ")}addAll(t){for(let e=t.iterator();e.hasNext();)this.add(e.next())}findEdgeIndex(t){for(let e=0;e0?e:0,o=r+2*s,a=Math.trunc(Math.log(o)/Math.log(10)+1),c=n-a,l=Math.pow(10,c);return l}bufferFixedPrecision(t){const e=new j(new ct(new H["a"](1)),t.getScale()),n=new Ut(this._bufParams);n.setWorkingPrecisionModel(t),n.setNoder(e),this._resultGeometry=n.buffer(this._argGeom,this._distance)}bufferReducedPrecision(){if(0===arguments.length){for(let t=Wt.MAX_PRECISION_DIGITS;t>=0;t--){try{this.bufferReducedPrecision(t)}catch(t){if(!(t instanceof r["a"]))throw t;this._saveException=t}if(null!==this._resultGeometry)return null}throw this._saveException}if(1===arguments.length){const t=arguments[0],e=Wt.precisionScaleFactor(this._argGeom,this._distance,t),n=new H["a"](e);this.bufferFixedPrecision(n)}}bufferOriginalPrecision(){try{const t=new Ut(this._bufParams);this._resultGeometry=t.buffer(this._argGeom,this._distance)}catch(t){if(!(t instanceof S["a"]))throw t;this._saveException=t}}getResultGeometry(t){return this._distance=t,this.computeGeometry(),this._resultGeometry}setEndCapStyle(t){this._bufParams.setEndCapStyle(t)}computeGeometry(){if(this.bufferOriginalPrecision(),null!==this._resultGeometry)return null;const t=this._argGeom.getFactory().getPrecisionModel();t.getType()===H["a"].FIXED?this.bufferFixedPrecision(t):this.bufferReducedPrecision()}setQuadrantSegments(t){this._bufParams.setQuadrantSegments(t)}}Wt.CAP_ROUND=g.CAP_ROUND,Wt.CAP_BUTT=g.CAP_FLAT,Wt.CAP_FLAT=g.CAP_FLAT,Wt.CAP_SQUARE=g.CAP_SQUARE,Wt.MAX_PRECISION_DIGITS=12;class $t{constructor(){$t.constructor_.apply(this,arguments)}static constructor_(){if(this._snapTolerance=0,this._srcPts=null,this._seg=new U["a"],this._allowSnappingToSourceVertices=!1,this._isClosed=!1,arguments[0]instanceof Ct["a"]&&"number"===typeof arguments[1]){const t=arguments[0],e=arguments[1];$t.constructor_.call(this,t.getCoordinates(),e)}else if(arguments[0]instanceof Array&&"number"===typeof arguments[1]){const t=arguments[0],e=arguments[1];this._srcPts=t,this._isClosed=$t.isClosed(t),this._snapTolerance=e}}static isClosed(t){return!(t.length<=1)&&t[0].equals2D(t[t.length-1])}snapVertices(t,e){const n=this._isClosed?t.size()-1:t.size();for(let i=0;i=0&&t.add(r+1,new v["a"](n),!1)}}findSegmentIndexToSnap(t,e){let n=m["a"].MAX_VALUE,i=-1;for(let r=0;re&&(e=t)}return e}if(2===arguments.length){const t=arguments[0],e=arguments[1];return Math.min(Kt.computeOverlaySnapTolerance(t),Kt.computeOverlaySnapTolerance(e))}}static snapToSelf(t,e,n){const i=new Kt(t);return i.snapToSelf(e,n)}static snap(t,e,n){const i=new Array(2).fill(null),r=new Kt(t);i[0]=r.snapTo(e,n);const s=new Kt(e);return i[1]=s.snapTo(i[0],n),i}computeSnapTolerance(t){const e=this.computeMinimumSegmentLength(t),n=e/10;return n}snapTo(t,e){const n=this.extractTargetCoordinates(t),i=new Jt(e,n);return i.transform(this._srcGeom)}snapToSelf(t,e){const n=this.extractTargetCoordinates(this._srcGeom),i=new Jt(t,n,!0),r=i.transform(this._srcGeom);let s=r;return e&&Object(y["a"])(s,Vt["a"])&&(s=Wt.bufferOp(r,0)),s}extractTargetCoordinates(t){const e=new _["a"],n=t.getCoordinates();for(let i=0;i>>20}static zeroLowerBits(t,e){let n="low";if(e>32&&(t.low=0,e%=32,n="high"),e>0){const i=e<32?~((1<=0;i--){if(te.getBit(t,i)!==te.getBit(e,i))return n;n++}return 52}}var ee=n("c9eb");class ne{constructor(){ne.constructor_.apply(this,arguments)}static constructor_(){this._commonCoord=null,this._ccFilter=new ie}add(t){t.apply(this._ccFilter),this._commonCoord=this._ccFilter.getCommonCoordinate()}removeCommonBits(t){if(0===this._commonCoord.x&&0===this._commonCoord.y)return t;const e=new v["a"](this._commonCoord);e.x=-e.x,e.y=-e.y;const n=new re(e);return t.apply(n),t.geometryChanged(),t}addCommonBits(t){const e=new re(this._commonCoord);t.apply(e),t.geometryChanged()}getCommonCoordinate(){return this._commonCoord}}class ie{constructor(){ie.constructor_.apply(this,arguments)}static constructor_(){this._commonBitsX=new te,this._commonBitsY=new te}filter(t){this._commonBitsX.add(t.x),this._commonBitsY.add(t.y)}getCommonCoordinate(){return new v["a"](this._commonBitsX.getCommon(),this._commonBitsY.getCommon())}get interfaces_(){return[ee["a"]]}}class re{constructor(){re.constructor_.apply(this,arguments)}static constructor_(){this.trans=null;const t=arguments[0];this.trans=t}filter(t,e){const n=t.getOrdinate(e,0)+this.trans.x,i=t.getOrdinate(e,1)+this.trans.y;t.setOrdinate(e,0,n),t.setOrdinate(e,1,i)}isGeometryChanged(){return!0}isDone(){return!1}get interfaces_(){return[Zt["a"]]}}ne.CommonCoordinateFilter=ie,ne.Translater=re;class se{constructor(){se.constructor_.apply(this,arguments)}static constructor_(){this._geom=new Array(2).fill(null),this._snapTolerance=null,this._cbr=null;const t=arguments[0],e=arguments[1];this._geom[0]=t,this._geom[1]=e,this.computeSnapTolerance()}static overlayOp(t,e,n){const i=new se(t,e);return i.getResultGeometry(n)}static union(t,e){return se.overlayOp(t,e,pe.UNION)}static intersection(t,e){return se.overlayOp(t,e,pe.INTERSECTION)}static symDifference(t,e){return se.overlayOp(t,e,pe.SYMDIFFERENCE)}static difference(t,e){return se.overlayOp(t,e,pe.DIFFERENCE)}selfSnap(t){const e=new Kt(t),n=e.snapTo(t,this._snapTolerance);return n}removeCommonBits(t){this._cbr=new ne,this._cbr.add(t[0]),this._cbr.add(t[1]);const e=new Array(2).fill(null);return e[0]=this._cbr.removeCommonBits(t[0].copy()),e[1]=this._cbr.removeCommonBits(t[1].copy()),e}prepareResult(t){return this._cbr.addCommonBits(t),t}getResultGeometry(t){const e=this.snap(this._geom),n=pe.overlayOp(e[0],e[1],t);return this.prepareResult(n)}checkValid(t){t.isValid()||N["a"].out.println("Snapped geometry is invalid")}computeSnapTolerance(){this._snapTolerance=Kt.computeOverlaySnapTolerance(this._geom[0],this._geom[1])}snap(t){const e=this.removeCommonBits(t),n=Kt.snap(e[0],e[1],this._snapTolerance);return n}}class oe{constructor(){oe.constructor_.apply(this,arguments)}static constructor_(){this._geom=new Array(2).fill(null);const t=arguments[0],e=arguments[1];this._geom[0]=t,this._geom[1]=e}static overlayOp(t,e,n){const i=new oe(t,e);return i.getResultGeometry(n)}static union(t,e){return oe.overlayOp(t,e,pe.UNION)}static intersection(t,e){return oe.overlayOp(t,e,pe.INTERSECTION)}static symDifference(t,e){return oe.overlayOp(t,e,pe.SYMDIFFERENCE)}static difference(t,e){return oe.overlayOp(t,e,pe.DIFFERENCE)}getResultGeometry(t){let e=null,n=!1,i=null;try{e=pe.overlayOp(this._geom[0],this._geom[1],t);const r=!0;r&&(n=!0)}catch(t){if(!(t instanceof S["a"]))throw t;i=t}if(!n)try{e=se.overlayOp(this._geom[0],this._geom[1],t)}catch(t){throw t instanceof S["a"]?i:t}return e}}var ae=n("dc2b");class ce{constructor(){ce.constructor_.apply(this,arguments)}static constructor_(){this._pts=null,this._data=null;const t=arguments[0],e=arguments[1];this._pts=t,this._data=e}getCoordinates(){return this._pts}size(){return this._pts.length}getCoordinate(t){return this._pts[t]}isClosed(){return this._pts[0].equals(this._pts[this._pts.length-1])}getSegmentOctant(t){return t===this._pts.length-1?-1:I.octant(this.getCoordinate(t),this.getCoordinate(t+1))}setData(t){this._data=t}getData(){return this._data}toString(){return k["a"].toLineString(new C["a"](this._pts))}get interfaces_(){return[D]}}class le{constructor(){le.constructor_.apply(this,arguments)}static constructor_(){this._findAllIntersections=!1,this._isCheckEndSegmentsOnly=!1,this._keepIntersections=!0,this._isInteriorIntersectionsOnly=!1,this._li=null,this._interiorIntersection=null,this._intSegments=null,this._intersections=new a["a"],this._intersectionCount=0;const t=arguments[0];this._li=t,this._interiorIntersection=null}static createAllIntersectionsFinder(t){const e=new le(t);return e.setFindAllIntersections(!0),e}static isInteriorVertexIntersection(){if(4===arguments.length){const t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3];return(!n||!i)&&!!t.equals2D(e)}if(8===arguments.length){const t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3],r=arguments[4],s=arguments[5],o=arguments[6],a=arguments[7];return!!le.isInteriorVertexIntersection(t,n,r,o)||(!!le.isInteriorVertexIntersection(t,i,r,a)||(!!le.isInteriorVertexIntersection(e,n,s,o)||!!le.isInteriorVertexIntersection(e,i,s,a)))}}static createInteriorIntersectionCounter(t){const e=new le(t);return e.setInteriorIntersectionsOnly(!0),e.setFindAllIntersections(!0),e.setKeepIntersections(!1),e}static createIntersectionCounter(t){const e=new le(t);return e.setFindAllIntersections(!0),e.setKeepIntersections(!1),e}static isEndSegment(t,e){return 0===e||e>=t.size()-2}static createAnyIntersectionFinder(t){return new le(t)}static createInteriorIntersectionsFinder(t){const e=new le(t);return e.setFindAllIntersections(!0),e.setInteriorIntersectionsOnly(!0),e}count(){return this._intersectionCount}getIntersections(){return this._intersections}setFindAllIntersections(t){this._findAllIntersections=t}setKeepIntersections(t){this._keepIntersections=t}getIntersection(){return this._interiorIntersection}processIntersections(t,e,n,i){if(!this._findAllIntersections&&this.hasIntersection())return null;const r=t===n,s=r&&e===i;if(s)return null;if(this._isCheckEndSegmentsOnly){const r=le.isEndSegment(t,e)||le.isEndSegment(n,i);if(!r)return null}const o=t.getCoordinate(e),a=t.getCoordinate(e+1),c=n.getCoordinate(i),l=n.getCoordinate(i+1),u=0===e,h=e+2===t.size(),d=0===i,f=i+2===n.size();this._li.computeIntersection(o,a,c,l);const p=this._li.hasIntersection()&&this._li.isInteriorIntersection();let _=!1;if(!this._isInteriorIntersectionsOnly){const t=r&&Math.abs(i-e)<=1;_=!t&&le.isInteriorVertexIntersection(o,a,c,l,u,h,d,f)}(p||_)&&(this._intSegments=new Array(4).fill(null),this._intSegments[0]=o,this._intSegments[1]=a,this._intSegments[2]=c,this._intSegments[3]=l,this._interiorIntersection=this._li.getIntersection(0),this._keepIntersections&&this._intersections.add(this._interiorIntersection),this._intersectionCount++)}hasIntersection(){return null!==this._interiorIntersection}isDone(){return!this._findAllIntersections&&null!==this._interiorIntersection}setInteriorIntersectionsOnly(t){this._isInteriorIntersectionsOnly=t}setCheckEndSegmentsOnly(t){this._isCheckEndSegmentsOnly=t}getIntersectionSegments(){return this._intSegments}get interfaces_(){return[ot]}}class ue{constructor(){ue.constructor_.apply(this,arguments)}static constructor_(){this._li=new q["a"],this._segStrings=null,this._findAllIntersections=!1,this._segInt=null,this._isValid=!0;const t=arguments[0];this._segStrings=t}static computeIntersections(t){const e=new ue(t);return e.setFindAllIntersections(!0),e.isValid(),e.getIntersections()}isValid(){return this.execute(),this._isValid}setFindAllIntersections(t){this._findAllIntersections=t}checkInteriorIntersections(){this._isValid=!0,this._segInt=new le(this._li),this._segInt.setFindAllIntersections(this._findAllIntersections);const t=new Z;if(t.setSegmentIntersector(this._segInt),t.computeNodes(this._segStrings),this._segInt.hasIntersection())return this._isValid=!1,null}checkValid(){if(this.execute(),!this._isValid)throw new r["a"](this.getErrorMessage(),this._segInt.getIntersection())}getErrorMessage(){if(this._isValid)return"no intersections found";const t=this._segInt.getIntersectionSegments();return"found non-noded intersection between "+k["a"].toLineString(t[0],t[1])+" and "+k["a"].toLineString(t[2],t[3])}execute(){if(null!==this._segInt)return null;this.checkInteriorIntersections()}getIntersections(){return this._segInt.getIntersections()}}class he{constructor(){he.constructor_.apply(this,arguments)}static constructor_(){this._nv=null;const t=arguments[0];this._nv=new ue(he.toSegmentStrings(t))}static toSegmentStrings(t){const e=new a["a"];for(let n=t.iterator();n.hasNext();){const t=n.next();e.add(new ce(t.getCoordinates(),t))}return e}static checkValid(t){const e=new he(t);e.checkValid()}checkValid(){this._nv.checkValid()}}var de=n("1f31"),fe=n("7bd1");n.d(e,"a",function(){return pe});class pe extends fe["a"]{constructor(){super(),pe.constructor_.apply(this,arguments)}static constructor_(){this._ptLocator=new ae["a"],this._geomFact=null,this._resultGeom=null,this._graph=null,this._edgeList=new qt,this._resultPolyList=new a["a"],this._resultLineList=new a["a"],this._resultPointList=new a["a"];const t=arguments[0],e=arguments[1];fe["a"].constructor_.call(this,t,e),this._graph=new l["a"](new Ht["a"]),this._geomFact=t.getFactory()}static overlayOp(t,e,n){const i=new pe(t,e),r=i.getResultGeometry(n);return r}static union(t,e){if(t.isEmpty()||e.isEmpty()){if(t.isEmpty()&&e.isEmpty())return pe.createEmptyResult(pe.UNION,t,e,t.getFactory());if(t.isEmpty())return e.copy();if(e.isEmpty())return t.copy()}if(t.isGeometryCollection()||e.isGeometryCollection())throw new d["a"]("This method does not support GeometryCollection arguments");return oe.overlayOp(t,e,pe.UNION)}static intersection(t,e){if(t.isEmpty()||e.isEmpty())return pe.createEmptyResult(pe.INTERSECTION,t,e,t.getFactory());if(t.isGeometryCollection()){const n=e;return de["a"].map(t,new class{get interfaces_(){return[MapOp]}map(t){return pe.intersection(t,n)}})}return oe.overlayOp(t,e,pe.INTERSECTION)}static symDifference(t,e){if(t.isEmpty()||e.isEmpty()){if(t.isEmpty()&&e.isEmpty())return pe.createEmptyResult(pe.SYMDIFFERENCE,t,e,t.getFactory());if(t.isEmpty())return e.copy();if(e.isEmpty())return t.copy()}if(t.isGeometryCollection()||e.isGeometryCollection())throw new d["a"]("This method does not support GeometryCollection arguments");return oe.overlayOp(t,e,pe.SYMDIFFERENCE)}static resultDimension(t,e,n){const i=e.getDimension(),r=n.getDimension();let s=-1;switch(t){case pe.INTERSECTION:s=Math.min(i,r);break;case pe.UNION:s=Math.max(i,r);break;case pe.DIFFERENCE:s=i;break;case pe.SYMDIFFERENCE:s=Math.max(i,r);break}return s}static createEmptyResult(t,e,n,i){const r=pe.resultDimension(t,e,n);return i.createEmpty(r)}static difference(t,e){if(t.isEmpty())return pe.createEmptyResult(pe.DIFFERENCE,t,e,t.getFactory());if(e.isEmpty())return t.copy();if(t.isGeometryCollection()||e.isGeometryCollection())throw new d["a"]("This method does not support GeometryCollection arguments");return oe.overlayOp(t,e,pe.DIFFERENCE)}static isResultOfOp(){if(2===arguments.length){const t=arguments[0],e=arguments[1],n=t.getLocation(0),i=t.getLocation(1);return pe.isResultOfOp(n,i,e)}if(3===arguments.length){let t=arguments[0],e=arguments[1],n=arguments[2];switch(t===ut["a"].BOUNDARY&&(t=ut["a"].INTERIOR),e===ut["a"].BOUNDARY&&(e=ut["a"].INTERIOR),n){case pe.INTERSECTION:return t===ut["a"].INTERIOR&&e===ut["a"].INTERIOR;case pe.UNION:return t===ut["a"].INTERIOR||e===ut["a"].INTERIOR;case pe.DIFFERENCE:return t===ut["a"].INTERIOR&&e!==ut["a"].INTERIOR;case pe.SYMDIFFERENCE:return t===ut["a"].INTERIOR&&e!==ut["a"].INTERIOR||t!==ut["a"].INTERIOR&&e===ut["a"].INTERIOR}return!1}}insertUniqueEdge(t){const e=this._edgeList.findEqualEdge(t);if(null!==e){const n=e.getLabel();let i=t.getLabel();e.isPointwiseEqual(t)||(i=new Et["a"](t.getLabel()),i.flip());const r=e.getDepth();r.isNull()&&r.add(n),r.add(i),n.merge(i)}else this._edgeList.add(t)}getGraph(){return this._graph}cancelDuplicateResultEdges(){for(let t=this._graph.getEdgeEnds().iterator();t.hasNext();){const e=t.next(),n=e.getSym();e.isInResult()&&n.isInResult()&&(e.setInResult(!1),n.setInResult(!1))}}mergeSymLabels(){for(let t=this._graph.getNodes().iterator();t.hasNext();){const e=t.next();e.getEdges().mergeSymLabels()}}computeOverlay(t){this.copyPoints(0),this.copyPoints(1),this._arg[0].computeSelfNodes(this._li,!1),this._arg[1].computeSelfNodes(this._li,!1),this._arg[0].computeEdgeIntersections(this._arg[1],this._li,!0);const e=new a["a"];this._arg[0].computeSplitEdges(e),this._arg[1].computeSplitEdges(e);this.insertUniqueEdges(e),this.computeLabelsFromDepths(),this.replaceCollapsedEdges(),he.checkValid(this._edgeList.getEdges()),this._graph.addEdges(this._edgeList.getEdges()),this.computeLabelling(),this.labelIncompleteNodes(),this.findResultAreaEdges(t),this.cancelDuplicateResultEdges();const n=new u(this._geomFact);n.add(this._graph),this._resultPolyList=n.getPolygons();const i=new f(this,this._geomFact,this._ptLocator);this._resultLineList=i.build(t);const r=new p(this,this._geomFact,this._ptLocator);this._resultPointList=r.build(t),this._resultGeom=this.computeGeometry(this._resultPointList,this._resultLineList,this._resultPolyList,t)}findResultAreaEdges(t){for(let e=this._graph.getEdgeEnds().iterator();e.hasNext();){const n=e.next(),i=n.getLabel();i.isArea()&&!n.isInteriorAreaEdge()&&pe.isResultOfOp(i.getLocation(0,h["a"].RIGHT),i.getLocation(1,h["a"].RIGHT),t)&&n.setInResult(!0)}}computeLabelsFromDepths(){for(let t=this._edgeList.iterator();t.hasNext();){const e=t.next(),n=e.getLabel(),i=e.getDepth();if(!i.isNull()){i.normalize();for(let t=0;t<2;t++)n.isNull(t)||!n.isArea()||i.isNull(t)||(0===i.getDelta(t)?n.toLine(t):(c["a"].isTrue(!i.isNull(t,h["a"].LEFT),"depth of LEFT side has not been initialized"),n.setLocation(t,h["a"].LEFT,i.getLocation(t,h["a"].LEFT)),c["a"].isTrue(!i.isNull(t,h["a"].RIGHT),"depth of RIGHT side has not been initialized"),n.setLocation(t,h["a"].RIGHT,i.getLocation(t,h["a"].RIGHT))))}}}isCoveredByA(t){return!!this.isCovered(t,this._resultPolyList)}isCoveredByLA(t){return!!this.isCovered(t,this._resultLineList)||!!this.isCovered(t,this._resultPolyList)}computeGeometry(t,e,n,i){const r=new a["a"];return r.addAll(t),r.addAll(e),r.addAll(n),r.isEmpty()?pe.createEmptyResult(i,this._arg[0].getGeometry(),this._arg[1].getGeometry(),this._geomFact):this._geomFact.buildGeometry(r)}isCovered(t,e){for(let n=e.iterator();n.hasNext();){const e=n.next(),i=this._ptLocator.locate(t,e);if(i!==ut["a"].EXTERIOR)return!0}return!1}replaceCollapsedEdges(){const t=new a["a"];for(let e=this._edgeList.iterator();e.hasNext();){const n=e.next();n.isCollapsed()&&(e.remove(),t.add(n.getCollapsedEdge()))}this._edgeList.addAll(t)}updateNodeLabelling(){for(let t=this._graph.getNodes().iterator();t.hasNext();){const e=t.next(),n=e.getEdges().getLabel();e.getLabel().merge(n)}}getResultGeometry(t){return this.computeOverlay(t),this._resultGeom}insertUniqueEdges(t){for(let e=t.iterator();e.hasNext();){const t=e.next();this.insertUniqueEdge(t)}}labelIncompleteNode(t,e){const n=this._ptLocator.locate(t.getCoordinate(),this._arg[e].getGeometry());t.getLabel().setLocation(e,n)}copyPoints(t){for(let e=this._arg[t].getNodeIterator();e.hasNext();){const n=e.next(),i=this._graph.addNode(n.getCoordinate());i.setLabel(t,n.getLabel().getLocation(t))}}computeLabelling(){for(let t=this._graph.getNodes().iterator();t.hasNext();){const e=t.next();e.getEdges().computeLabelling(this._arg)}this.mergeSymLabels(),this.updateNodeLabelling()}labelIncompleteNodes(){for(let t=this._graph.getNodes().iterator();t.hasNext();){const e=t.next(),n=e.getLabel();e.isIsolated()&&(n.isNull(0)?this.labelIncompleteNode(e,0):this.labelIncompleteNode(e,1)),e.getEdges().updateLabelling(n)}}}pe.INTERSECTION=1,pe.UNION=2,pe.DIFFERENCE=3,pe.SYMDIFFERENCE=4},c810:function(t,e,n){"use strict";var i=n("5dec"),r=n("1af9"),s=function(t){function e(e){var n=e||{};t.call(this,n),this.type=i["a"].IMAGE}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(r["a"]);s.prototype.getSource,e["a"]=s},c888:function(t,e,n){},c8af:function(t,e,n){"use strict";var i=n("c532");t.exports=function(t,e){i.forEach(t,function(n,i){i!==e&&i.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[i])})}},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"===typeof window&&(n=window)}t.exports=n},c8c7:function(t,e,n){"use strict";class i{getBounds(){}}var r=n("e35d");class s{constructor(){s.constructor_.apply(this,arguments)}static constructor_(){this._bounds=null,this._item=null;const t=arguments[0],e=arguments[1];this._bounds=t,this._item=e}getItem(){return this._item}getBounds(){return this._bounds}get interfaces_(){return[i,r["a"]]}}var o=n("d932"),a=n.n(o);class c{constructor(){this._fpQueue=new a.a((t,e)=>t.compareTo(e)<0)}poll(){return this._fpQueue.poll()}size(){return this._fpQueue.size}clear(){this._fpQueue=new a.a}peek(){return this._fpQueue.peek()}remove(){return this._fpQueue.poll()}isEmpty(){return this._fpQueue.isEmpty()}add(t){this._fpQueue.add(t)}}var l=n("38de"),u=n("1d1d");class h{query(){if(1===arguments.length){arguments[0]}else if(2===arguments.length){arguments[0],arguments[1]}}insert(t,e){}remove(t,e){}}var d=n("70d5"),f=n("668c");class p{constructor(){p.constructor_.apply(this,arguments)}static constructor_(){if(this._childBoundables=new d["a"],this._bounds=null,this._level=null,0===arguments.length);else if(1===arguments.length){const t=arguments[0];this._level=t}}getLevel(){return this._level}addChildBoundable(t){f["a"].isTrue(null===this._bounds),this._childBoundables.add(t)}isEmpty(){return this._childBoundables.isEmpty()}getBounds(){return null===this._bounds&&(this._bounds=this.computeBounds()),this._bounds}size(){return this._childBoundables.size()}getChildBoundables(){return this._childBoundables}get interfaces_(){return[i,r["a"]]}}var _=n("7d15"),m=n("fd89");class g{static distance(t,e,n,i){const r=n-t,s=i-e;return Math.sqrt(r*r+s*s)}static maximumDistance(t,e){const n=Math.min(t.getMinX(),e.getMinX()),i=Math.min(t.getMinY(),e.getMinY()),r=Math.max(t.getMaxX(),e.getMaxX()),s=Math.max(t.getMaxY(),e.getMaxY());return g.distance(n,i,r,s)}static minMaxDistance(t,e){const n=t.getMinX(),i=t.getMinY(),r=t.getMaxX(),s=t.getMaxY(),o=e.getMinX(),a=e.getMinY(),c=e.getMaxX(),l=e.getMaxY();let u=g.maxDistance(n,i,n,s,o,a,o,l);return u=Math.min(u,g.maxDistance(n,i,n,s,o,a,c,a)),u=Math.min(u,g.maxDistance(n,i,n,s,c,l,o,l)),u=Math.min(u,g.maxDistance(n,i,n,s,c,l,c,a)),u=Math.min(u,g.maxDistance(n,i,r,i,o,a,o,l)),u=Math.min(u,g.maxDistance(n,i,r,i,o,a,c,a)),u=Math.min(u,g.maxDistance(n,i,r,i,c,l,o,l)),u=Math.min(u,g.maxDistance(n,i,r,i,c,l,c,a)),u=Math.min(u,g.maxDistance(r,s,n,s,o,a,o,l)),u=Math.min(u,g.maxDistance(r,s,n,s,o,a,c,a)),u=Math.min(u,g.maxDistance(r,s,n,s,c,l,o,l)),u=Math.min(u,g.maxDistance(r,s,n,s,c,l,c,a)),u=Math.min(u,g.maxDistance(r,s,r,i,o,a,o,l)),u=Math.min(u,g.maxDistance(r,s,r,i,o,a,c,a)),u=Math.min(u,g.maxDistance(r,s,r,i,c,l,o,l)),u=Math.min(u,g.maxDistance(r,s,r,i,c,l,c,a)),u}static maxDistance(t,e,n,i,r,s,o,a){let c=g.distance(t,e,r,s);return c=Math.max(c,g.distance(t,e,o,a)),c=Math.max(c,g.distance(n,i,r,s)),c=Math.max(c,g.distance(n,i,o,a)),c}}var y=n("7c01");class v{constructor(){v.constructor_.apply(this,arguments)}static constructor_(){this._boundable1=null,this._boundable2=null,this._distance=null,this._itemDistance=null;const t=arguments[0],e=arguments[1],n=arguments[2];this._boundable1=t,this._boundable2=e,this._itemDistance=n,this._distance=this.distance()}static area(t){return t.getBounds().getArea()}static isComposite(t){return t instanceof p}maximumDistance(){return g.maximumDistance(this._boundable1.getBounds(),this._boundable2.getBounds())}expandToQueue(t,e){const n=v.isComposite(this._boundable1),i=v.isComposite(this._boundable2);if(n&&i)return v.area(this._boundable1)>v.area(this._boundable2)?(this.expand(this._boundable1,this._boundable2,!1,t,e),null):(this.expand(this._boundable2,this._boundable1,!0,t,e),null);if(n)return this.expand(this._boundable1,this._boundable2,!1,t,e),null;if(i)return this.expand(this._boundable2,this._boundable1,!0,t,e),null;throw new m["a"]("neither boundable is composite")}isLeaves(){return!(v.isComposite(this._boundable1)||v.isComposite(this._boundable2))}getBoundable(t){return 0===t?this._boundable1:this._boundable2}getDistance(){return this._distance}distance(){return this.isLeaves()?this._itemDistance.distance(this._boundable1,this._boundable2):this._boundable1.getBounds().distance(this._boundable2.getBounds())}compareTo(t){const e=t;return this._distancee._distance?1:0}expand(t,e,n,i,r){const s=t.getChildBoundables();for(let o=s.iterator();o.hasNext();){const t=o.next();let s=null;s=n?new v(e,t,this._itemDistance):new v(t,e,this._itemDistance),s.getDistance()1,"Node capacity must be greater than 1"),this._nodeCapacity=t}}static compareDoubles(t,e){return t>e?1:t-2),e.getLevel()===t)return n.add(e),null;for(let i=e.getChildBoundables().iterator();i.hasNext();){const e=i.next();e instanceof p?this.boundablesAtLevel(t,e,n):(f["a"].isTrue(e instanceof s),-1===t&&n.add(e))}return null}}getRoot(){return this.build(),this._root}remove(){if(2===arguments.length){const t=arguments[0],e=arguments[1];return this.build(),!!this.getIntersectsOp().intersects(this._root.getBounds(),t)&&this.remove(t,this._root,e)}if(3===arguments.length){const t=arguments[0],e=arguments[1],n=arguments[2];let i=this.removeItem(e,n);if(i)return!0;let r=null;for(let s=e.getChildBoundables().iterator();s.hasNext();){const e=s.next();if(this.getIntersectsOp().intersects(e.getBounds(),t)&&(e instanceof p&&(i=this.remove(t,e,n),i))){r=e;break}}return null!==r&&r.getChildBoundables().isEmpty()&&e.getChildBoundables().remove(r),i}}createHigherLevels(t,e){f["a"].isTrue(!t.isEmpty());const n=this.createParentBoundables(t,e+1);return 1===n.size()?n.get(0):this.createHigherLevels(n,e+1)}depth(){if(0===arguments.length)return this.isEmpty()?0:(this.build(),this.depth(this._root));if(1===arguments.length){const t=arguments[0];let e=0;for(let n=t.getChildBoundables().iterator();n.hasNext();){const t=n.next();if(t instanceof p){const n=this.depth(t);n>e&&(e=n)}}return e+1}}createParentBoundables(t,e){f["a"].isTrue(!t.isEmpty());const n=new d["a"];n.add(this.createNode(e));const i=new d["a"](t);_["a"].sort(i,this.getComparator());for(let r=i.iterator();r.hasNext();){const t=r.next();this.lastNode(n).getChildBoundables().size()===this.getNodeCapacity()&&n.add(this.createNode(e)),this.lastNode(n).addChildBoundable(t)}return n}isEmpty(){return this._built?this._root.isEmpty():this._itemBoundables.isEmpty()}getNodeCapacity(){return this._nodeCapacity}lastNode(t){return t.get(t.size()-1)}size(){if(0===arguments.length)return this.isEmpty()?0:(this.build(),this.size(this._root));if(1===arguments.length){const t=arguments[0];let e=0;for(let n=t.getChildBoundables().iterator();n.hasNext();){const t=n.next();t instanceof p?e+=this.size(t):t instanceof s&&(e+=1)}return e}}removeItem(t,e){let n=null;for(let i=t.getChildBoundables().iterator();i.hasNext();){const t=i.next();t instanceof s&&t.getItem()===e&&(n=t)}return null!==n&&(t.getChildBoundables().remove(n),!0)}itemsTree(){if(0===arguments.length){this.build();const t=this.itemsTree(this._root);return null===t?new d["a"]:t}if(1===arguments.length){const t=arguments[0],e=new d["a"];for(let n=t.getChildBoundables().iterator();n.hasNext();){const t=n.next();if(t instanceof p){const n=this.itemsTree(t);null!==n&&e.add(n)}else t instanceof s?e.add(t.getItem()):f["a"].shouldNeverReachHere()}return e.size()<=0?null:e}}query(){if(1===arguments.length){const t=arguments[0];this.build();const e=new d["a"];return this.isEmpty()?e:(this.getIntersectsOp().intersects(this._root.getBounds(),t)&&this.queryInternal(t,this._root,e),e)}if(2===arguments.length){const t=arguments[0],e=arguments[1];if(this.build(),this.isEmpty())return null;this.getIntersectsOp().intersects(this._root.getBounds(),t)&&this.queryInternal(t,this._root,e)}}build(){if(this._built)return null;this._root=this._itemBoundables.isEmpty()?this.createNode(0):this.createHigherLevels(this._itemBoundables,-1),this._itemBoundables=null,this._built=!0}get interfaces_(){return[r["a"]]}}function E(){}L.IntersectsOp=E,L.DEFAULT_NODE_CAPACITY=10;class T{distance(t,e){}}n.d(e,"a",function(){return S});class S extends L{constructor(){super(),S.constructor_.apply(this,arguments)}static constructor_(){if(0===arguments.length)S.constructor_.call(this,S.DEFAULT_NODE_CAPACITY);else if(1===arguments.length){const t=arguments[0];L.constructor_.call(this,t)}}static getItems(t){const e=new Array(t.size()).fill(null);let n=0;while(!t.isEmpty()){const i=t.poll();e[n]=i.getBoundable(0).getItem(),n++}return e}static avg(t,e){return(t+e)/2}static centreY(t){return S.avg(t.getMinY(),t.getMaxY())}static centreX(t){return S.avg(t.getMinX(),t.getMaxX())}size(){return 0===arguments.length?super.size.call(this):super.size.apply(this,arguments)}insert(){if(!(2===arguments.length&&arguments[1]instanceof Object&&arguments[0]instanceof M["a"]))return super.insert.apply(this,arguments);{const t=arguments[0],e=arguments[1];if(t.isNull())return null;super.insert.call(this,t,e)}}getIntersectsOp(){return S.intersectsOp}verticalSlices(t,e){const n=Math.trunc(Math.ceil(t.size()/e)),i=new Array(e).fill(null),r=t.iterator();for(let s=0;s0){const t=i.poll(),r=t.getDistance();if(r>=e)break;t.isLeaves()?(e=r,n=t):t.expandToQueue(i,e)}return null===n?null:[n.getBoundable(0).getItem(),n.getBoundable(1).getItem()]}}else{if(2===arguments.length){const t=arguments[0],e=arguments[1];if(this.isEmpty()||t.isEmpty())return null;const n=new v(this.getRoot(),t.getRoot(),e);return this.nearestNeighbour(n)}if(3===arguments.length){const t=arguments[0],e=arguments[1],n=arguments[2],i=new s(t,e),r=new v(this.getRoot(),i,n);return this.nearestNeighbour(r)[0]}if(4===arguments.length){const t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3],r=new s(t,e),o=new v(this.getRoot(),r,n);return this.nearestNeighbourK(o,i)}}}isWithinDistance(){if(2===arguments.length){const t=arguments[0],e=arguments[1];let n=u["a"].POSITIVE_INFINITY;const i=new c;i.add(t);while(!i.isEmpty()){const t=i.poll(),r=t.getDistance();if(r>e)return!1;if(t.maximumDistance()<=e)return!0;if(t.isLeaves()){if(n=r,n<=e)return!0}else t.expandToQueue(i,n)}return!1}if(3===arguments.length){const t=arguments[0],e=arguments[1],n=arguments[2],i=new v(this.getRoot(),t.getRoot(),e);return this.isWithinDistance(i,n)}}createParentBoundablesFromVerticalSlices(t,e){f["a"].isTrue(t.length>0);const n=new d["a"];for(let i=0;i=0){const t=r.poll(),e=t.getDistance();if(e>=i)break;if(t.isLeaves())if(s.size()e&&(s.poll(),s.add(t));const r=s.peek();i=r.getDistance()}else t.expandToQueue(r,i)}return S.getItems(s)}}createNode(t){return new O(t)}get interfaces_(){return[h,r["a"]]}}class O extends p{constructor(){super(),O.constructor_.apply(this,arguments)}static constructor_(){const t=arguments[0];p.constructor_.call(this,t)}computeBounds(){let t=null;for(let e=this.getChildBoundables().iterator();e.hasNext();){const n=e.next();null===t?t=new M["a"](n.getBounds()):t.expandToInclude(n.getBounds())}return t}}S.STRtreeNode=O,S.xComparator=new class{get interfaces_(){return[b["a"]]}compare(t,e){return L.compareDoubles(S.centreX(t.getBounds()),S.centreX(e.getBounds()))}},S.yComparator=new class{get interfaces_(){return[b["a"]]}compare(t,e){return L.compareDoubles(S.centreY(t.getBounds()),S.centreY(e.getBounds()))}},S.intersectsOp=new class{get interfaces_(){return[IntersectsOp]}intersects(t,e){return t.intersects(e)}},S.DEFAULT_NODE_CAPACITY=10},c8da:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("c6a3");class r extends i["a"]{get(){}set(){}isEmpty(){}}},c8f3:function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(t){return"M"===t.charAt(0)},meridiem:function(t,e,n){return t<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return e})},c973:function(t,e,n){var i=n("f1f2");function r(t,e,n,r,s,o,a){try{var c=t[o](a),l=c.value}catch(t){return void n(t)}c.done?e(l):i.resolve(l).then(r,s)}function s(t){return function(){var e=this,n=arguments;return new i(function(i,s){var o=t.apply(e,n);function a(t){r(o,i,s,a,c,"next",t)}function c(t){r(o,i,s,a,c,"throw",t)}a(void 0)})}}t.exports=s},c9eb:function(t,e,n){"use strict";n.d(e,"a",function(){return i});class i{filter(t){}}},c9fd:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("c6a3"),r=n("062e"),s=n("46ef"),o=n("272a");class a extends o["a"]{constructor(t){super(),this.map=new Map,t instanceof i["a"]&&this.addAll(t)}contains(t){const e=t.hashCode?t.hashCode():t;return!!this.map.has(e)}add(t){const e=t.hashCode?t.hashCode():t;return!this.map.has(e)&&!!this.map.set(e,t)}addAll(t){for(const e of t)this.add(e);return!0}remove(){throw new s["a"]}size(){return this.map.size}isEmpty(){return 0===this.map.size}toArray(){return Array.from(this.map.values())}iterator(){return new c(this.map)}[Symbol.iterator](){return this.map}}class c{constructor(t){this.iterator=t.values();const{done:e,value:n}=this.iterator.next();this.done=e,this.value=n}next(){if(this.done)throw new r["a"];const t=this.value,{done:e,value:n}=this.iterator.next();return this.done=e,this.value=n,t}hasNext(){return!this.done}remove(){throw new s["a"]}}},ca34:function(t,e,n){(function(e){t.exports=e.EventSource}).call(this,n("c8ba"))},ca42:function(t,e,n){"use strict";function i(t){return Math.pow(t,3)}function r(t){return 1-i(1-t)}function s(t){return 3*t*t-2*t*t*t}function o(t){return t}n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r}),n.d(e,"c",function(){return s}),n.d(e,"d",function(){return o})},ca5a:function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},caca:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("ad3f"),r=n("7c01"),s=n("e35d");class o{constructor(){o.constructor_.apply(this,arguments)}static constructor_(){if(this._minx=null,this._maxx=null,this._miny=null,this._maxy=null,0===arguments.length)this.init();else if(1===arguments.length){if(arguments[0]instanceof i["a"]){const t=arguments[0];this.init(t.x,t.x,t.y,t.y)}else if(arguments[0]instanceof o){const t=arguments[0];this.init(t)}}else if(2===arguments.length){const t=arguments[0],e=arguments[1];this.init(t.x,e.x,t.y,e.y)}else if(4===arguments.length){const t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3];this.init(t,e,n,i)}}static intersects(){if(3===arguments.length){const t=arguments[0],e=arguments[1],n=arguments[2];return n.x>=(t.xe.x?t.x:e.x)&&n.y>=(t.ye.y?t.y:e.y)}if(4===arguments.length){const t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3];let r=Math.min(n.x,i.x),s=Math.max(n.x,i.x),o=Math.min(t.x,e.x),a=Math.max(t.x,e.x);return!(o>s)&&(!(as)&&!(athis._maxx&&(this._maxx=t._maxx),t._minythis._maxy&&(this._maxy=t._maxy))}}else if(2===arguments.length){const t=arguments[0],e=arguments[1];this.isNull()?(this._minx=t,this._maxx=t,this._miny=e,this._maxy=e):(tthis._maxx&&(this._maxx=t),ethis._maxy&&(this._maxy=e))}}compareTo(t){const e=t;return this.isNull()?e.isNull()?0:-1:e.isNull()?1:this._minxe._minx?1:this._minye._miny?1:this._maxxe._maxx?1:this._maxye._maxy?1:0}translate(t,e){if(this.isNull())return null;this.init(this.getMinX()+t,this.getMaxX()+t,this.getMinY()+e,this.getMaxY()+e)}copy(){return new o(this)}expandBy(){if(1===arguments.length){const t=arguments[0];this.expandBy(t,t)}else if(2===arguments.length){const t=arguments[0],e=arguments[1];if(this.isNull())return null;this._minx-=t,this._maxx+=t,this._miny-=e,this._maxy+=e,(this._minx>this._maxx||this._miny>this._maxy)&&this.setToNull()}}contains(){if(1===arguments.length){if(arguments[0]instanceof o){const t=arguments[0];return this.covers(t)}if(arguments[0]instanceof i["a"]){const t=arguments[0];return this.covers(t)}}else if(2===arguments.length){const t=arguments[0],e=arguments[1];return this.covers(t,e)}}hashCode(){let t=17;return t=37*t+i["a"].hashCode(this._minx),t=37*t+i["a"].hashCode(this._maxx),t=37*t+i["a"].hashCode(this._miny),t=37*t+i["a"].hashCode(this._maxy),t}equals(t){if(!(t instanceof o))return!1;const e=t;return this.isNull()?e.isNull():this._maxx===e.getMaxX()&&this._maxy===e.getMaxY()&&this._minx===e.getMinX()&&this._miny===e.getMinY()}intersection(t){if(this.isNull()||t.isNull()||!this.intersects(t))return new o;const e=this._minx>t._minx?this._minx:t._minx,n=this._miny>t._miny?this._miny:t._miny,i=this._maxx=this._minx&&t.getMaxX()<=this._maxx&&t.getMinY()>=this._miny&&t.getMaxY()<=this._maxy)}}else if(2===arguments.length){const t=arguments[0],e=arguments[1];return!this.isNull()&&(t>=this._minx&&t<=this._maxx&&e>=this._miny&&e<=this._maxy)}}intersects(){if(1===arguments.length){if(arguments[0]instanceof o){const t=arguments[0];return!this.isNull()&&!t.isNull()&&!(t._minx>this._maxx||t._maxxthis._maxy||t._maxythis._maxx)return!1;const i=t.x>e.x?t.x:e.x;if(ithis._maxy)return!1;const s=t.y>e.y?t.y:e.y;return!(sthis._maxx||tthis._maxy||ethis._maxx||t._maxxthis._maxy||t._maxye?t:e}centre(){return this.isNull()?null:new i["a"]((this.getMinX()+this.getMaxX())/2,(this.getMinY()+this.getMaxY())/2)}init(){if(0===arguments.length)this.setToNull();else if(1===arguments.length){if(arguments[0]instanceof i["a"]){const t=arguments[0];this.init(t.x,t.x,t.y,t.y)}else if(arguments[0]instanceof o){const t=arguments[0];this._minx=t._minx,this._maxx=t._maxx,this._miny=t._miny,this._maxy=t._maxy}}else if(2===arguments.length){const t=arguments[0],e=arguments[1];this.init(t.x,e.x,t.y,e.y)}else if(4===arguments.length){const t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3];tt._maxx&&(e=this._minx-t._maxx);let n=0;return this._maxyt._maxy&&(n=this._miny-t._maxy),0===e?n:0===n?e:Math.sqrt(e*e+n*n)}get interfaces_(){return[r["a"],s["a"]]}}},cadf:function(t,e,n){"use strict";var i=n("9c6c"),r=n("d53b"),s=n("84f2"),o=n("6821");t.exports=n("01f9")(Array,"Array",function(t,e){this._t=o(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),s.Arguments=s.Array,i("keys"),i("values"),i("entries")},cb24:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("ad3f"),r=n("fd89");class s{static isNorthern(t){return t===s.NE||t===s.NW}static isOpposite(t,e){if(t===e)return!1;const n=(t-e+4)%4;return 2===n}static commonHalfPlane(t,e){if(t===e)return t;const n=(t-e+4)%4;if(2===n)return-1;const i=te?t:e;return 0===i&&3===r?3:i}static isInHalfPlane(t,e){return e===s.SE?t===s.SE||t===s.SW:t===e||t===e+1}static quadrant(){if("number"===typeof arguments[0]&&"number"===typeof arguments[1]){const t=arguments[0],e=arguments[1];if(0===t&&0===e)throw new r["a"]("Cannot compute the quadrant for point ( "+t+", "+e+" )");return t>=0?e>=0?s.NE:s.SE:e>=0?s.NW:s.SW}if(arguments[0]instanceof i["a"]&&arguments[1]instanceof i["a"]){const t=arguments[0],e=arguments[1];if(e.x===t.x&&e.y===t.y)throw new r["a"]("Cannot compute the quadrant for two identical points "+t);return e.x>=t.x?e.y>=t.y?s.NE:s.SE:e.y>=t.y?s.NW:s.SW}}}s.NE=0,s.NW=1,s.SW=2,s.SE=3},cb7c:function(t,e,n){var i=n("d3f4");t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},cb8c:function(t,e,n){},cc15:function(t,e,n){},cc7d:function(t,e,n){"use strict";(function(e){var i=n("6945");t.exports=n("486c")(i),"_sockjs_onload"in e&&setTimeout(e._sockjs_onload,1)}).call(this,n("c8ba"))},ccb9:function(t,e,n){e.f=n("5168")},ccf4:function(t,e,n){"use strict";n.d(e,"a",function(){return i});class i{}},cd0e:function(t,e,n){"use strict";n.d(e,"a",function(){return i});class i{static isWhitespace(t){return t<=32&&t>=0||127===t}static toUpperCase(t){return t.toUpperCase()}}},cd1c:function(t,e,n){var i=n("e853");t.exports=function(t,e){return new(i(t))(e)}},cd4a:function(t,e,n){"use strict";var i=n("38de"),r=n("3894"),s=n("6f62");class o{create(){if(1===arguments.length){if(arguments[0]instanceof Array){arguments[0]}else if(Object(i["a"])(arguments[0],s["a"])){arguments[0]}}else if(2===arguments.length){arguments[0],arguments[1]}else if(3===arguments.length){const t=arguments[0],e=arguments[1];arguments[2];return this.create(t,e)}}}var a=n("e35d"),c=n("d7bb");class l{static instance(){return l.instanceObject}readResolve(){return l.instance()}create(){if(1===arguments.length){if(arguments[0]instanceof Array){const t=arguments[0];return new c["a"](t)}if(Object(i["a"])(arguments[0],s["a"])){const t=arguments[0];return new c["a"](t)}}else{if(2===arguments.length){let t=arguments[0],e=arguments[1];return e>3&&(e=3),e<2&&(e=2),new c["a"](t,e)}if(3===arguments.length){let t=arguments[0],e=arguments[1],n=arguments[2],i=e-n;return n>1&&(n=1),i>3&&(i=3),i<2&&(i=2),new c["a"](t,i+n,n)}}}get interfaces_(){return[o,a["a"]]}}l.instanceObject=new l;var u=n("76af"),h=n("eab5"),d=n("5ae1"),f=n("668c"),p=n("58e9"),_=n("138e"),m=n("ad3f"),g=n("fd89"),y=n("a02c"),v=n("78c4"),b=n("f69e"),M=n("c73a");n.d(e,"a",function(){return w});class w{constructor(){w.constructor_.apply(this,arguments)}static constructor_(){if(this._precisionModel=null,this._coordinateSequenceFactory=null,this._SRID=null,0===arguments.length)w.constructor_.call(this,new d["a"],0);else if(1===arguments.length){if(Object(i["a"])(arguments[0],o)){const t=arguments[0];w.constructor_.call(this,new d["a"],0,t)}else if(arguments[0]instanceof d["a"]){const t=arguments[0];w.constructor_.call(this,t,0,w.getDefaultCoordinateSequenceFactory())}}else if(2===arguments.length){const t=arguments[0],e=arguments[1];w.constructor_.call(this,t,e,w.getDefaultCoordinateSequenceFactory())}else if(3===arguments.length){const t=arguments[0],e=arguments[1],n=arguments[2];this._precisionModel=t,this._coordinateSequenceFactory=n,this._SRID=e}}static toMultiPolygonArray(t){const e=new Array(t.size()).fill(null);return t.toArray(e)}static toGeometryArray(t){if(null===t)return null;const e=new Array(t.size()).fill(null);return t.toArray(e)}static getDefaultCoordinateSequenceFactory(){return l.instance()}static toMultiLineStringArray(t){const e=new Array(t.size()).fill(null);return t.toArray(e)}static toLineStringArray(t){const e=new Array(t.size()).fill(null);return t.toArray(e)}static toMultiPointArray(t){const e=new Array(t.size()).fill(null);return t.toArray(e)}static toLinearRingArray(t){const e=new Array(t.size()).fill(null);return t.toArray(e)}static toPointArray(t){const e=new Array(t.size()).fill(null);return t.toArray(e)}static toPolygonArray(t){const e=new Array(t.size()).fill(null);return t.toArray(e)}static createPointFromInternalCoord(t,e){return e.getPrecisionModel().makePrecise(t),e.getFactory().createPoint(t)}createEmpty(t){switch(t){case-1:return this.createGeometryCollection();case 0:return this.createPoint();case 1:return this.createLineString();case 2:return this.createPolygon();default:throw new g["a"]("Invalid dimension: "+t)}}toGeometry(t){return t.isNull()?this.createPoint():t.getMinX()===t.getMaxX()&&t.getMinY()===t.getMaxY()?this.createPoint(new m["a"](t.getMinX(),t.getMinY())):t.getMinX()===t.getMaxX()||t.getMinY()===t.getMaxY()?this.createLineString([new m["a"](t.getMinX(),t.getMinY()),new m["a"](t.getMaxX(),t.getMaxY())]):this.createPolygon(this.createLinearRing([new m["a"](t.getMinX(),t.getMinY()),new m["a"](t.getMinX(),t.getMaxY()),new m["a"](t.getMaxX(),t.getMaxY()),new m["a"](t.getMaxX(),t.getMinY()),new m["a"](t.getMinX(),t.getMinY())]),null)}createLineString(){if(0===arguments.length)return this.createLineString(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof Array){const t=arguments[0];return this.createLineString(null!==t?this.getCoordinateSequenceFactory().create(t):null)}if(Object(i["a"])(arguments[0],s["a"])){const t=arguments[0];return new _["a"](t,this)}}}createMultiLineString(){if(0===arguments.length)return new p["a"](null,this);if(1===arguments.length){const t=arguments[0];return new p["a"](t,this)}}createPolygon(){if(0===arguments.length)return this.createPolygon(null,null);if(1===arguments.length){if(Object(i["a"])(arguments[0],s["a"])){const t=arguments[0];return this.createPolygon(this.createLinearRing(t))}if(arguments[0]instanceof Array){const t=arguments[0];return this.createPolygon(this.createLinearRing(t))}if(arguments[0]instanceof r["a"]){const t=arguments[0];return this.createPolygon(t,null)}}else if(2===arguments.length){const t=arguments[0],e=arguments[1];return new v["a"](t,e,this)}}getSRID(){return this._SRID}createGeometryCollection(){if(0===arguments.length)return new M["a"](null,this);if(1===arguments.length){const t=arguments[0];return new M["a"](t,this)}}getPrecisionModel(){return this._precisionModel}createLinearRing(){if(0===arguments.length)return this.createLinearRing(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof Array){const t=arguments[0];return this.createLinearRing(null!==t?this.getCoordinateSequenceFactory().create(t):null)}if(Object(i["a"])(arguments[0],s["a"])){const t=arguments[0];return new r["a"](t,this)}}}createMultiPolygon(){if(0===arguments.length)return new u["a"](null,this);if(1===arguments.length){const t=arguments[0];return new u["a"](t,this)}}createMultiPoint(){if(0===arguments.length)return new b["a"](null,this);if(1===arguments.length){if(arguments[0]instanceof Array){const t=arguments[0];return new b["a"](t,this)}if(Object(i["a"])(arguments[0],s["a"])){const t=arguments[0];if(null===t)return this.createMultiPoint(new Array(0).fill(null));const e=new Array(t.size()).fill(null);for(let n=0;n1;if(s){if(r instanceof v["a"])return this.createMultiPolygon(w.toPolygonArray(t));if(r instanceof _["a"])return this.createMultiLineString(w.toLineStringArray(t));if(r instanceof y["a"])return this.createMultiPoint(w.toPointArray(t));f["a"].shouldNeverReachHere("Unhandled geometry type: "+r.getGeometryType())}return r}createMultiPointFromCoords(t){return this.createMultiPoint(null!==t?this.getCoordinateSequenceFactory().create(t):null)}createPoint(){if(0===arguments.length)return this.createPoint(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof m["a"]){const t=arguments[0];return this.createPoint(null!==t?this.getCoordinateSequenceFactory().create([t]):null)}if(Object(i["a"])(arguments[0],s["a"])){const t=arguments[0];return new y["a"](t,this)}}}getCoordinateSequenceFactory(){return this._coordinateSequenceFactory}get interfaces_(){return[a["a"]]}}},cd78:function(t,e,n){var i=n("e4ae"),r=n("f772"),s=n("656e");t.exports=function(t,e){if(i(t),r(e)&&e.constructor===t)return e;var n=s.f(t),o=n.resolve;return o(e),n.promise}},cd7e:function(t,e,n){"use strict";n.d(e,"c",function(){return i}),n.d(e,"d",function(){return r}),n.d(e,"e",function(){return s}),n.d(e,"b",function(){return o}),n.d(e,"a",function(){return a}),n.d(e,"f",function(){return c});var i="ol-hidden",r="ol-selectable",s="ol-unselectable",o="ol-control",a="ol-collapsed",c=function(){var t,e={};return function(n){if(t||(t=document.createElement("div").style),!(n in e)){t.font=n;var i=t.fontFamily;if(t.font="",!i)return null;e[n]=i.split(/,\s?/)}return e[n]}}()},cd88:function(t,e,n){"use strict";var i=n("b18c"),r=n("5958"),s={type:Array,validator:function(t){return t.every(function(t){return"icon"in t})}};e["a"]={mixins:[r["a"]],props:{prefix:String,suffix:String,stackLabel:String,floatLabel:String,placeholder:String,error:Boolean,warning:Boolean,disable:Boolean,readonly:Boolean,clearable:Boolean,color:{type:String,default:"primary"},align:{default:"left"},dark:Boolean,before:s,after:s,inverted:Boolean,invertedLight:Boolean,hideUnderline:Boolean,clearValue:{},noParentField:Boolean},computed:{inputPlaceholder:function(){if(!this.floatLabel&&!this.stackLabel||this.labelIsAbove)return this.placeholder},isInverted:function(){return this.inverted||this.invertedLight},isInvertedLight:function(){return this.isInverted&&(this.invertedLight&&!this.hasError||this.inverted&&this.hasWarning)},isStandard:function(){return!this.isInverted},isHideUnderline:function(){return this.isStandard&&this.hideUnderline},labelIsAbove:function(){return this.focused||this.length||this.additionalLength||this.stackLabel},hasContent:function(){return this.length>0||this.additionalLength>0||this.placeholder||0===this.placeholder},editable:function(){return!this.disable&&!this.readonly},computedClearValue:function(){return void 0===this.clearValue?null:this.clearValue},isClearable:function(){return this.editable&&this.clearable&&this.computedClearValue!==this.model},hasError:function(){return!!(!this.noParentField&&this.field&&this.field.error||this.error)},hasWarning:function(){return!(this.hasError||!(!this.noParentField&&this.field&&this.field.warning||this.warning))},fakeInputValue:function(){return this.actualValue||0===this.actualValue?this.actualValue:this.placeholder||0===this.placeholder?this.placeholder:""},fakeInputClasses:function(){var t=this.actualValue||0===this.actualValue;return[this.alignClass,{invisible:(this.stackLabel||this.floatLabel)&&!this.labelIsAbove&&!t,"q-input-target-placeholder":!t&&this.inputPlaceholder}]}},methods:{clear:function(t){if(this.editable){t&&Object(i["g"])(t);var e=this.computedClearValue;this.__setModel&&this.__setModel(e,!0),this.$emit("clear",e)}}}}},ce10:function(t,e,n){var i=n("69a8"),r=n("6821"),s=n("c366")(!1),o=n("613b")("IE_PROTO");t.exports=function(t,e){var n,a=r(t),c=0,l=[];for(n in a)n!=o&&i(a,n)&&l.push(n);while(e.length>c)i(a,n=e[c++])&&(~s(l,n)||l.push(n));return l}},ce1c:function(t,e,n){"use strict";n("ac6a");var i=n("b18c"),r=n("0952"),s=n("b5b8");e["a"]={name:"QContextMenu",props:{disable:Boolean},data:function(){return{mobile:this.$q.platform.is.mobile}},methods:{hide:function(t){if(this.$refs.popup)return this.mobile&&this.target.classList.remove("non-selectable"),this.$refs.popup.hide(t)},show:function(t){var e=this;this.disable||(this.mobile?this.$refs.popup&&(this.event=t,this.$refs.popup.show(t)):t&&(Object(i["g"])(t),setTimeout(function(){e.$refs.popup&&(e.event=t,e.$refs.popup.show(t))},100)))},__desktopBodyHide:function(t){this.$el.contains(t.target)||this.hide(t)},__desktopOnShow:function(){document.body.addEventListener("contextmenu",this.__desktopBodyHide,!0),document.body.addEventListener("click",this.__desktopBodyHide,!0),this.$emit("show",this.event)},__desktopOnHide:function(t){document.body.removeEventListener("contextmenu",this.__desktopBodyHide,!0),document.body.removeEventListener("click",this.__desktopBodyHide,!0),this.$emit("hide",this.event,t)},__mobileTouchStartHandler:function(t){var e=this;this.__mobileCleanup(),t&&t.touches&&t.touches.length>1||(this.target.classList.add("non-selectable"),this.touchTimer=setTimeout(function(){t&&Object(i["g"])(t),e.__mobileCleanup(),setTimeout(function(){e.show(t)},10)},600))},__mobileCleanup:function(){this.target.classList.remove("non-selectable"),clearTimeout(this.touchTimer)}},render:function(t){var e=this;return this.mobile?t(r["a"],{ref:"popup",props:{minimized:!0},on:{show:function(){e.$emit("show",e.event)},hide:function(t){e.$emit("hide",e.event,t)}}},this.$slots.default):t(s["a"],{ref:"popup",props:{anchorClick:!1,touchPosition:!0},on:{show:this.__desktopOnShow,hide:this.__desktopOnHide}},this.$slots.default)},mounted:function(){var t=this;this.mobile?this.$nextTick(function(){t.target=t.$el.parentNode,t.target.addEventListener("touchstart",t.__mobileTouchStartHandler),["touchcancel","touchmove","touchend"].forEach(function(e){t.target.addEventListener(e,t.__mobileCleanup)})}):(this.target=this.$el.parentNode,this.target.addEventListener("contextmenu",this.show))},beforeDestroy:function(){var t=this;this.mobile?(this.target.removeEventListener("touchstart",this.__mobileTouchStartHandler),["touchcancel","touchmove","touchend"].forEach(function(e){t.target.removeEventListener(e,t.__mobileCleanup)})):this.target.removeEventListener("contextmenu",this.show)}}},ce2c:function(t,e,n){"use strict";var i=n("5c38"),r=n("e98d"),s=n("0999"),o=n("617d"),a=n("869f"),c=n("ddea"),l=n("ab35"),u=function(t){function e(e){var n=void 0!==e.rotateWithView&&e.rotateWithView;t.call(this,{opacity:1,rotateWithView:n,rotation:void 0!==e.rotation?e.rotation:0,scale:1}),this.checksums_=null,this.canvas_=null,this.hitDetectionCanvas_=null,this.fill_=void 0!==e.fill?e.fill:null,this.origin_=[0,0],this.points_=e.points,this.radius_=void 0!==e.radius?e.radius:e.radius1,this.radius2_=e.radius2,this.angle_=void 0!==e.angle?e.angle:0,this.stroke_=void 0!==e.stroke?e.stroke:null,this.anchor_=null,this.size_=null,this.imageSize_=null,this.hitDetectionImageSize_=null,this.atlasManager_=e.atlasManager,this.render_(this.atlasManager_)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){var t=new e({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),atlasManager:this.atlasManager_});return t.setOpacity(this.getOpacity()),t.setScale(this.getScale()),t},e.prototype.getAnchor=function(){return this.anchor_},e.prototype.getAngle=function(){return this.angle_},e.prototype.getFill=function(){return this.fill_},e.prototype.getHitDetectionImage=function(t){return this.hitDetectionCanvas_},e.prototype.getImage=function(t){return this.canvas_},e.prototype.getImageSize=function(){return this.imageSize_},e.prototype.getHitDetectionImageSize=function(){return this.hitDetectionImageSize_},e.prototype.getImageState=function(){return a["a"].LOADED},e.prototype.getOrigin=function(){return this.origin_},e.prototype.getPoints=function(){return this.points_},e.prototype.getRadius=function(){return this.radius_},e.prototype.getRadius2=function(){return this.radius2_},e.prototype.getSize=function(){return this.size_},e.prototype.getStroke=function(){return this.stroke_},e.prototype.listenImageChange=function(t,e){},e.prototype.load=function(){},e.prototype.unlistenImageChange=function(t,e){},e.prototype.render_=function(t){var e,n,i="",a="",l=0,u=null,h=0,d=0;this.stroke_&&(n=this.stroke_.getColor(),null===n&&(n=c["k"]),n=Object(r["a"])(n),d=this.stroke_.getWidth(),void 0===d&&(d=c["h"]),u=this.stroke_.getLineDash(),h=this.stroke_.getLineDashOffset(),o["a"]||(u=null,h=0),a=this.stroke_.getLineJoin(),void 0===a&&(a=c["g"]),i=this.stroke_.getLineCap(),void 0===i&&(i=c["d"]),l=this.stroke_.getMiterLimit(),void 0===l&&(l=c["i"]));var f=2*(this.radius_+d)+1,p={strokeStyle:n,strokeWidth:d,size:f,lineCap:i,lineDash:u,lineDashOffset:h,lineJoin:a,miterLimit:l};if(void 0===t){var _=Object(s["a"])(f,f);this.canvas_=_.canvas,f=this.canvas_.width,e=f,this.draw_(p,_,0,0),this.createHitDetectionCanvas_(p)}else{f=Math.round(f);var m,g=!this.fill_;g&&(m=this.drawHitDetectionCanvas_.bind(this,p));var y=this.getChecksum(),v=t.add(y,f,f,this.draw_.bind(this,p),m);this.canvas_=v.image,this.origin_=[v.offsetX,v.offsetY],e=v.image.width,g?(this.hitDetectionCanvas_=v.hitImage,this.hitDetectionImageSize_=[v.hitImage.width,v.hitImage.height]):(this.hitDetectionCanvas_=this.canvas_,this.hitDetectionImageSize_=[e,e])}this.anchor_=[f/2,f/2],this.size_=[f,f],this.imageSize_=[e,e]},e.prototype.draw_=function(t,e,n,i){var s,o,a;e.setTransform(1,0,0,1,0,0),e.translate(n,i),e.beginPath();var l=this.points_;if(l===1/0)e.arc(t.size/2,t.size/2,this.radius_,0,2*Math.PI,!0);else{var u=void 0!==this.radius2_?this.radius2_:this.radius_;for(u!==this.radius_&&(l*=2),s=0;s<=l;s++)o=2*s*Math.PI/l-Math.PI/2+this.angle_,a=s%2===0?this.radius_:u,e.lineTo(t.size/2+a*Math.cos(o),t.size/2+a*Math.sin(o))}if(this.fill_){var h=this.fill_.getColor();null===h&&(h=c["b"]),e.fillStyle=Object(r["a"])(h),e.fill()}this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineCap=t.lineCap,e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke()),e.closePath()},e.prototype.createHitDetectionCanvas_=function(t){if(this.hitDetectionImageSize_=[t.size,t.size],this.fill_)this.hitDetectionCanvas_=this.canvas_;else{var e=Object(s["a"])(t.size,t.size);this.hitDetectionCanvas_=e.canvas,this.drawHitDetectionCanvas_(t,e,0,0)}},e.prototype.drawHitDetectionCanvas_=function(t,e,n,r){e.setTransform(1,0,0,1,0,0),e.translate(n,r),e.beginPath();var s=this.points_;if(s===1/0)e.arc(t.size/2,t.size/2,this.radius_,0,2*Math.PI,!0);else{var o,a,l,u=void 0!==this.radius2_?this.radius2_:this.radius_;for(u!==this.radius_&&(s*=2),o=0;o<=s;o++)l=2*o*Math.PI/s-Math.PI/2+this.angle_,a=o%2===0?this.radius_:u,e.lineTo(t.size/2+a*Math.cos(l),t.size/2+a*Math.sin(l))}e.fillStyle=Object(i["b"])(c["b"]),e.fill(),this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.stroke()),e.closePath()},e.prototype.getChecksum=function(){var t=this.stroke_?this.stroke_.getChecksum():"-",e=this.fill_?this.fill_.getChecksum():"-",n=!this.checksums_||t!=this.checksums_[1]||e!=this.checksums_[2]||this.radius_!=this.checksums_[3]||this.radius2_!=this.checksums_[4]||this.angle_!=this.checksums_[5]||this.points_!=this.checksums_[6];if(n){var i="r"+t+e+(void 0!==this.radius_?this.radius_.toString():"-")+(void 0!==this.radius2_?this.radius2_.toString():"-")+(void 0!==this.angle_?this.angle_.toString():"-")+(void 0!==this.points_?this.points_.toString():"-");this.checksums_=[i,t,e,this.radius_,this.radius2_,this.angle_,this.points_]}return this.checksums_[0]},e}(l["a"]),h=u,d=function(t){function e(e){var n=e||{};t.call(this,{points:1/0,fill:n.fill,radius:n.radius,stroke:n.stroke,atlasManager:n.atlasManager})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){var t=new e({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),atlasManager:this.atlasManager_});return t.setOpacity(this.getOpacity()),t.setScale(this.getScale()),t},e.prototype.setRadius=function(t){this.radius_=t,this.render_(this.atlasManager_)},e}(h);e["a"]=d},ce67:function(t,e,n){"use strict";e["a"]={name:"QToolbarTitle",props:{shrink:Boolean},render:function(t){return t("div",{staticClass:"q-toolbar-title",class:this.shrink?"col-auto":null},[this.$slots.default,this.$slots.subtitle?t("div",{staticClass:"q-toolbar-subtitle"},this.$slots.subtitle):null])}}},ce7e:function(t,e,n){var i=n("63b6"),r=n("584a"),s=n("294c");t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],o={};o[t]=e(n),i(i.S+i.F*s(function(){n(1)}),"Object",o)}},cee4:function(t,e,n){"use strict";var i=n("c532"),r=n("1d2b"),s=n("0a06"),o=n("2444");function a(t){var e=new s(t),n=r(s.prototype.request,e);return i.extend(n,s.prototype,e),i.extend(n,e),n}var c=a(o);c.Axios=s,c.create=function(t){return a(i.merge(o,t))},c.Cancel=n("7a77"),c.CancelToken=n("8df4b"),c.isCancel=n("2e67"),c.all=function(t){return Promise.all(t)},c.spread=n("0df6"),t.exports=c,t.exports.default=c},cef7:function(t,e,n){"use strict";n.d(e,"b",function(){return r});var i=function(t){this.propagationStopped,this.type=t,this.target=null};function r(t){t.stopPropagation()}i.prototype.preventDefault=function(){this.propagationStopped=!0},i.prototype.stopPropagation=function(){this.propagationStopped=!0},e["a"]=i},cf09:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("7b52"),r=n("38de"),s=n("ad3f"),o=n("7c92"),a=n("6f62");class c{constructor(){c.constructor_.apply(this,arguments)}static constructor_(){this._p=null,this._crossingCount=0,this._isPointOnSegment=!1;const t=arguments[0];this._p=t}static locatePointInRing(){if(arguments[0]instanceof s["a"]&&Object(r["a"])(arguments[1],a["a"])){const t=arguments[0],e=arguments[1],n=new c(t),i=new s["a"],r=new s["a"];for(let s=1;si&&(n=e.x,i=t.x),this._p.x>=n&&this._p.x<=i&&(this._isPointOnSegment=!0),null}if(t.y>this._p.y&&e.y<=this._p.y||e.y>this._p.y&&t.y<=this._p.y){let n=o["a"].index(t,e,this._p);if(n===o["a"].COLLINEAR)return this._isPointOnSegment=!0,null;e.y=this.layout.width,largeScreenState:t,mobileOpened:!1}},watch:{belowBreakpoint:function(t){this.mobileOpened||(t?(this.overlay||(this.largeScreenState=this.showing),this.hide(!1)):this.overlay||this[this.largeScreenState?"show":"hide"](!1))},side:function(t,e){this.layout[e].space=!1,this.layout[e].offset=0},behavior:function(t){this.__updateLocal("belowBreakpoint","mobile"===t||"desktop"!==t&&this.breakpoint>=this.layout.width)},breakpoint:function(t){this.__updateLocal("belowBreakpoint","mobile"===this.behavior||"desktop"!==this.behavior&&t>=this.layout.width)},"layout.width":function(t){this.__updateLocal("belowBreakpoint","mobile"===this.behavior||"desktop"!==this.behavior&&this.breakpoint>=t)},"layout.scrollbarWidth":function(){this.applyPosition(this.showing?0:void 0)},offset:function(t){this.__update("offset",t)},onLayout:function(t){this.$emit("on-layout",t),this.__update("space",t)},$route:function(){this.noHideOnRouteChange||(this.mobileOpened||this.onScreenOverlay)&&this.hide()},rightSide:function(){this.applyPosition()},size:function(t){this.applyPosition(),this.__update("size",t)},"$q.i18n.rtl":function(){this.applyPosition()},mini:function(){this.value&&this.layout.__animate()}},computed:{rightSide:function(){return"right"===this.side},offset:function(){return!this.showing||this.mobileOpened||this.overlay?0:this.size},size:function(){return this.isMini?this.miniWidth:this.width},fixed:function(){return this.overlay||this.layout.view.indexOf(this.rightSide?"R":"L")>-1},onLayout:function(){return this.showing&&!this.mobileView&&!this.overlay},onScreenOverlay:function(){return this.showing&&!this.mobileView&&this.overlay},backdropClass:function(){return{"no-pointer-events":!this.showing||!this.mobileView}},mobileView:function(){return this.belowBreakpoint||this.mobileOpened},headerSlot:function(){return!this.overlay&&(this.rightSide?"r"===this.layout.rows.top[2]:"l"===this.layout.rows.top[0])},footerSlot:function(){return!this.overlay&&(this.rightSide?"r"===this.layout.rows.bottom[2]:"l"===this.layout.rows.bottom[0])},belowClass:function(){return{fixed:!0,"on-top":!0,"q-layout-drawer-delimiter":this.fixed&&this.showing,"q-layout-drawer-mobile":!0,"top-padding":!0}},aboveClass:function(){return{fixed:this.fixed||!this.onLayout,"q-layout-drawer-mini":this.isMini,"q-layout-drawer-normal":!this.isMini,"q-layout-drawer-delimiter":this.fixed&&this.showing,"top-padding":this.headerSlot}},aboveStyle:function(){var t={};return this.layout.header.space&&!this.headerSlot&&(this.fixed?t.top="".concat(this.layout.header.offset,"px"):this.layout.header.space&&(t.top="".concat(this.layout.header.size,"px"))),this.layout.footer.space&&!this.footerSlot&&(this.fixed?t.bottom="".concat(this.layout.footer.offset,"px"):this.layout.footer.space&&(t.bottom="".concat(this.layout.footer.size,"px"))),t},computedStyle:function(){return[this.contentStyle,{width:"".concat(this.size,"px")},this.mobileView?"":this.aboveStyle]},computedClass:function(){return["q-layout-drawer-".concat(this.side),this.layout.container?"overflow-auto":"scroll",this.contentClass,this.mobileView?this.belowClass:this.aboveClass]},stateDirection:function(){return(this.$q.i18n.rtl?-1:1)*(this.rightSide?1:-1)},isMini:function(){return this.mini&&!this.mobileView},onNativeEvents:function(){var t=this;if(!this.mobileView)return{"!click":function(e){t.$emit("click",e)},mouseover:function(e){t.$emit("mouseover",e)},mouseout:function(e){t.$emit("mouseout",e)}}}},methods:{applyPosition:function(t){var e=this;void 0===t?this.$nextTick(function(){t=e.showing?0:e.size,e.applyPosition(e.stateDirection*t)}):this.$refs.content&&(this.layout.container&&this.rightSide&&(this.mobileView||Math.abs(t)===this.size)&&(t+=this.stateDirection*this.layout.scrollbarWidth),this.$refs.content.style.transform="translateX(".concat(t,"px)"))},applyBackdrop:function(t){this.$refs.backdrop&&(this.$refs.backdrop.style.backgroundColor="rgba(0,0,0,".concat(.4*t,")"))},__setScrollable:function(t){this.layout.container||document.body.classList[t?"add":"remove"]("q-body-drawer-toggle")},__openByTouch:function(t){if(this.belowBreakpoint){var e=this.size,n=Object(r["a"])(t.distance.x,0,e);if(t.isFinal){var i=this.$refs.content,s=n>=Math.min(75,e);return i.classList.remove("no-transition"),void(s?this.show():(this.layout.__animate(),this.applyBackdrop(0),this.applyPosition(this.stateDirection*e),i.classList.remove("q-layout-drawer-delimiter")))}if(this.applyPosition((this.$q.i18n.rtl?!this.rightSide:this.rightSide)?Math.max(e-n,0):Math.min(0,n-e)),this.applyBackdrop(Object(r["a"])(n/e,0,1)),t.isFirst){var o=this.$refs.content;o.classList.add("no-transition"),o.classList.add("q-layout-drawer-delimiter")}}},__closeByTouch:function(t){if(this.mobileOpened){var e=this.size,n=t.direction===this.side,i=(this.$q.i18n.rtl?!n:n)?Object(r["a"])(t.distance.x,0,e):0;if(t.isFinal){var s=Math.abs(i)0&&void 0!==arguments[0])||arguments[0];e&&this.layout.__animate(),this.applyPosition(0);var n=this.layout.instances[this.rightSide?"left":"right"];n&&n.mobileOpened&&n.hide(),this.belowBreakpoint?(this.mobileOpened=!0,this.applyBackdrop(1),this.layout.container||(this.preventedScroll=!0,Object(o["a"])(!0))):this.__setScrollable(!0),clearTimeout(this.timer),this.timer=setTimeout(function(){t.showPromise&&(t.showPromise.then(function(){t.__setScrollable(!1)}),t.showPromiseResolve())},a)},__hide:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e&&this.layout.__animate(),this.mobileOpened&&(this.mobileOpened=!1),this.applyPosition(this.stateDirection*this.size),this.applyBackdrop(0),this.__cleanup(),clearTimeout(this.timer),this.timer=setTimeout(function(){t.hidePromise&&t.hidePromiseResolve()},a)},__cleanup:function(){this.preventedScroll&&(this.preventedScroll=!1,Object(o["a"])(!1)),this.__setScrollable(!1)},__update:function(t,e){this.layout[this.side][t]!==e&&(this.layout[this.side][t]=e)},__updateLocal:function(t,e){this[t]!==e&&(this[t]=e)}},created:function(){this.layout.instances[this.side]=this,this.__update("size",this.size),this.__update("space",this.onLayout),this.__update("offset",this.offset)},mounted:function(){this.applyPosition(this.showing?0:void 0)},beforeDestroy:function(){clearTimeout(this.timer),this.showing&&this.__cleanup(),this.layout.instances[this.side]===this&&(this.layout.instances[this.side]=null,this.__update("size",0),this.__update("offset",0),this.__update("space",!1))},render:function(t){var e=[this.mobileView&&!this.noSwipeOpen?t("div",{staticClass:"q-layout-drawer-opener fixed-".concat(this.side),directives:[{name:"touch-pan",modifiers:{horizontal:!0},value:this.__openByTouch}]}):null,t("div",{ref:"backdrop",staticClass:"fullscreen q-layout-backdrop q-layout-transition",class:this.backdropClass,on:{click:this.hide},directives:[{name:"touch-pan",modifiers:{horizontal:!0},value:this.__closeByTouch}]})];return t("div",{staticClass:"q-drawer-container"},e.concat([t("aside",{ref:"content",staticClass:"q-layout-drawer q-layout-transition",class:this.computedClass,style:this.computedStyle,attrs:this.$attrs,on:this.onNativeEvents,directives:this.mobileView&&!this.noSwipeClose?[{name:"touch-pan",modifiers:{horizontal:!0},value:this.__closeByTouch}]:null},this.isMini&&this.$slots.mini?[this.$slots.mini]:this.$slots.default)]))}}},cf1e:function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration @@ -292,7 +292,7 @@ var e={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta //! moment.js locale configuration var e=t.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(t){return"d'o"===t.toLowerCase()},meridiem:function(t,e,n){return t>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});function n(t,e,n,i){var r={s:["viensas secunds","'iensas secunds"],ss:[t+" secunds",t+" secunds"],m:["'n míut","'iens míut"],mm:[t+" míuts",t+" míuts"],h:["'n þora","'iensa þora"],hh:[t+" þoras",t+" þoras"],d:["'n ziua","'iensa ziua"],dd:[t+" ziuas",t+" ziuas"],M:["'n mes","'iens mes"],MM:[t+" mesen",t+" mesen"],y:["'n ar","'iens ar"],yy:[t+" ars",t+" ars"]};return i?r[n][0]:e?r[n][0]:r[n][1]}return e})},cf75:function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration -var e="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(t){var e=t;return e=-1!==t.indexOf("jaj")?e.slice(0,-3)+"leS":-1!==t.indexOf("jar")?e.slice(0,-3)+"waQ":-1!==t.indexOf("DIS")?e.slice(0,-3)+"nem":e+" pIq",e}function i(t){var e=t;return e=-1!==t.indexOf("jaj")?e.slice(0,-3)+"Hu’":-1!==t.indexOf("jar")?e.slice(0,-3)+"wen":-1!==t.indexOf("DIS")?e.slice(0,-3)+"ben":e+" ret",e}function r(t,e,n,i){var r=s(t);switch(n){case"ss":return r+" lup";case"mm":return r+" tup";case"hh":return r+" rep";case"dd":return r+" jaj";case"MM":return r+" jar";case"yy":return r+" DIS"}}function s(t){var n=Math.floor(t%1e3/100),i=Math.floor(t%100/10),r=t%10,s="";return n>0&&(s+=e[n]+"vatlh"),i>0&&(s+=(""!==s?" ":"")+e[i]+"maH"),r>0&&(s+=(""!==s?" ":"")+e[r]),""===s?"pagh":s}var o=t.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:n,past:i,s:"puS lup",ss:r,m:"wa’ tup",mm:r,h:"wa’ rep",hh:r,d:"wa’ jaj",dd:r,M:"wa’ jar",MM:r,y:"wa’ DIS",yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return o})},cfe6:function(t,e,n){"use strict";(function(e){e.crypto&&e.crypto.getRandomValues?t.exports.randomBytes=function(t){var n=new Uint8Array(t);return e.crypto.getRandomValues(n),n}:t.exports.randomBytes=function(t){for(var e=new Array(t),n=0;n4294967295||c(e)!==e)throw new a("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,l=!0;if("length"in t&&o){var u=o(t,"length");u&&!u.configurable&&(i=!1),u&&!u.writable&&(l=!1)}return(i||l||!n)&&(s?r(t,"length",e,!0,!0):r(t,"length",e)),t}},d043:function(t,e,n){},d0e9:function(t,e,n){"use strict";var i=n("2ef1"),r='© OpenStreetMap contributors.',s=function(t){function e(e){var n,i=e||{};n=void 0!==i.attributions?i.attributions:[r];var s=void 0!==i.crossOrigin?i.crossOrigin:"anonymous",o=void 0!==i.url?i.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png";t.call(this,{attributions:n,cacheSize:i.cacheSize,crossOrigin:s,opaque:void 0===i.opaque||i.opaque,maxZoom:void 0!==i.maxZoom?i.maxZoom:19,reprojectionErrorThreshold:i.reprojectionErrorThreshold,tileLoadFunction:i.tileLoadFunction,url:o,wrapX:i.wrapX,attributionsCollapsible:!1})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(i["a"]);e["a"]=s},d14b:function(t,e,n){},d233:function(t,e,n){"use strict";var i=n("b313"),r=Object.prototype.hasOwnProperty,s=Array.isArray,o=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),a=function(t){while(t.length>1){var e=t.pop(),n=e.obj[e.prop];if(s(n)){for(var i=[],r=0;r=d?a.slice(l,l+d):a,h=[],f=0;f=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||s===i.RFC1738&&(40===p||41===p)?h[h.length]=u.charAt(f):p<128?h[h.length]=o[p]:p<2048?h[h.length]=o[192|p>>6]+o[128|63&p]:p<55296||p>=57344?h[h.length]=o[224|p>>12]+o[128|p>>6&63]+o[128|63&p]:(f+=1,p=65536+((1023&p)<<10|1023&u.charCodeAt(f)),h[h.length]=o[240|p>>18]+o[128|p>>12&63]+o[128|p>>6&63]+o[128|63&p])}c+=h.join("")}return c},p=function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],i=0;i0&&(s+=e[n]+"vatlh"),i>0&&(s+=(""!==s?" ":"")+e[i]+"maH"),r>0&&(s+=(""!==s?" ":"")+e[r]),""===s?"pagh":s}var o=t.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:n,past:i,s:"puS lup",ss:r,m:"wa’ tup",mm:r,h:"wa’ rep",hh:r,d:"wa’ jaj",dd:r,M:"wa’ jar",MM:r,y:"wa’ DIS",yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return o})},cfe6:function(t,e,n){"use strict";(function(e){e.crypto&&e.crypto.getRandomValues?t.exports.randomBytes=function(t){var n=new Uint8Array(t);return e.crypto.getRandomValues(n),n}:t.exports.randomBytes=function(t){for(var e=new Array(t),n=0;n4294967295||c(e)!==e)throw new a("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,l=!0;if("length"in t&&o){var u=o(t,"length");u&&!u.configurable&&(i=!1),u&&!u.writable&&(l=!1)}return(i||l||!n)&&(s?r(t,"length",e,!0,!0):r(t,"length",e)),t}},d043:function(t,e,n){},d0e9:function(t,e,n){"use strict";var i=n("2ef1"),r='© OpenStreetMap contributors.',s=function(t){function e(e){var n,i=e||{};n=void 0!==i.attributions?i.attributions:[r];var s=void 0!==i.crossOrigin?i.crossOrigin:"anonymous",o=void 0!==i.url?i.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png";t.call(this,{attributions:n,cacheSize:i.cacheSize,crossOrigin:s,opaque:void 0===i.opaque||i.opaque,maxZoom:void 0!==i.maxZoom?i.maxZoom:19,reprojectionErrorThreshold:i.reprojectionErrorThreshold,tileLoadFunction:i.tileLoadFunction,url:o,wrapX:i.wrapX,attributionsCollapsible:!1})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(i["a"]);e["a"]=s},d14b:function(t,e,n){},d233:function(t,e,n){"use strict";var i=n("b313"),r=Object.prototype.hasOwnProperty,s=Array.isArray,o=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),a=function(t){while(t.length>1){var e=t.pop(),n=e.obj[e.prop];if(s(n)){for(var i=[],r=0;r=d?a.slice(l,l+d):a,h=[],f=0;f=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||s===i.RFC1738&&(40===p||41===p)?h[h.length]=u.charAt(f):p<128?h[h.length]=o[p]:p<2048?h[h.length]=o[192|p>>6]+o[128|63&p]:p<55296||p>=57344?h[h.length]=o[224|p>>12]+o[128|p>>6&63]+o[128|63&p]:(f+=1,p=65536+((1023&p)<<10|1023&u.charCodeAt(f)),h[h.length]=o[240|p>>18]+o[128|p>>12&63]+o[128|p>>6&63]+o[128|63&p])}c+=h.join("")}return c},p=function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],i=0;i=4||"ཉིན་གུང"===e&&t<5||"དགོང་དག"===e?t+12:t},meridiem:function(t,e,n){return t<4?"མཚན་མོ":t<10?"ཞོགས་ཀས":t<17?"ཉིན་གུང":t<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}});return i})},d2c8:function(t,e,n){var i=n("aae3"),r=n("be13");t.exports=function(t,e,n){if(i(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(t))}},d2d4:function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration @@ -310,9 +310,9 @@ var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n= //! moment.js locale configuration var e={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},i=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i],r=[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i],s=t.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".split("_")},monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},monthsParse:i,longMonthsParse:i,shortMonthsParse:r,monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(t){return t.replace(/[१२३४५६७८९०]/g,function(t){return n[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(t,e){return 12===t&&(t=0),"रात"===e?t<4?t:t+12:"सुबह"===e?t:"दोपहर"===e?t>=10?t:t+12:"शाम"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"रात":t<10?"सुबह":t<17?"दोपहर":t<20?"शाम":"रात"},week:{dow:0,doy:6}});return s})},dc73:function(t,e,n){},dc99:function(t,e,n){"use strict";t.exports=RangeError},dcbc:function(t,e,n){var i=n("2aba");t.exports=function(t,e,n){for(var r in e)i(t,r,e[r],n);return t}},dd1f:function(t,e,n){"use strict";var i=n("2828"),r=n("52b5"),s=n("b18c");e["a"]={name:"QRadio",mixins:[i["a"]],props:{val:{required:!0}},computed:{isTrue:function(){return this.value===this.val}},methods:{toggle:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.disable||this.readonly||(t&&Object(s["g"])(t),e&&this.$el.blur(),this.isTrue||this.__update(this.val))},__getContent:function(t){return[t(r["a"],{staticClass:"q-radio-unchecked cursor-pointer absolute-full",props:{name:this.uncheckedIcon||this.$q.icon.radio.unchecked["mat"]}}),t(r["a"],{staticClass:"q-radio-checked cursor-pointer absolute-full",props:{name:this.checkedIcon||this.$q.icon.radio.checked["mat"]}}),t("div",{ref:"ripple",staticClass:"q-radial-ripple"})]}},beforeCreate:function(){this.__kebabTag="q-radio"}}},ddaa:function(t,e,n){"use strict";var i=n("c2d3"),r=n("35a7"),s=n("5564"),o=n("e269"),a=n("5eee"),c=function(t){o["a"].call(this,t),this._listener=[],t&&!1===t.active?this.set("active",!1):this.set("active",!0)};Object(i["a"])(c,o["a"]),c.prototype.setActive=function(t){this.set("active",!0===t)},c.prototype.getActive=function(){return this.get("active")},function(){function t(t){this.get("active")&&t.context&&this.precompose(t)}function e(t){this.get("active")&&t.context&&this.postcompose(t)}function n(){if(this.renderSync)try{this.renderSync()}catch(t){}else this.changed()}function i(i){this.filters_||(this.filters_=[]),this.filters_.push(i),i.addToLayer&&i.addToLayer(this),i.precompose&&i._listener.push({listener:this.on(["precompose","prerender"],t.bind(i)),target:this}),i.postcompose&&i._listener.push({listener:this.on(["postcompose","postrender"],e.bind(i)),target:this}),i._listener.push({listener:i.on("propertychange",n.bind(this)),target:this}),n.call(this)}function o(t){var e;if(this.filters_||(this.filters_=[]),t){for(e=this.filters_.length-1;e>=0;e--)this.filters_[e]===t&&this.filters_.splice(e,1);for(e=t._listener.length-1;e>=0;e--)t._listener[e].target===this&&(t.removeFromLayer&&t.removeFromLayer(this),Object(r["unByKey"])(t._listener[e].listener),t._listener.splice(e,1));n.call(this)}else this.filters_.forEach(function(t){this.removeFilter(t)}.bind(this))}a["a"].prototype.addFilter=function(t){console.warn("[OL-EXT] addFilter deprecated on map."),i.call(this,t)},a["a"].prototype.removeFilter=function(t){o.call(this,t)},a["a"].prototype.getFilters=function(){return this.filters_||[]},s["a"].prototype.addFilter=function(t){i.call(this,t)},s["a"].prototype.removeFilter=function(t){o.call(this,t)},s["a"].prototype.getFilters=function(){return this.filters_||[]}}();var l=c,u=n("5c38"),h=function(t){if(t=t||{},l.call(this,t),t.feature)switch(t.feature.getGeometry().getType()){case"Polygon":case"MultiPolygon":this.feature_=t.feature;break;default:break}this.set("inner",t.inner),this.fillColor_=t.fill&&Object(u["b"])(t.fill.getColor())||"rgba(0,0,0,0.2)"};Object(i["a"])(h,l),h.prototype.drawFeaturePath_=function(t,e){var n,i=t.context,r=i.canvas,s=t.frameState.pixelRatio;if(t.frameState.coordinateToPixelTransform){var o=t.frameState.coordinateToPixelTransform;if(t.inversePixelTransform){var a=t.inversePixelTransform;n=function(t){return t=[t[0]*o[0]+t[1]*o[1]+o[4],t[0]*o[2]+t[1]*o[3]+o[5]],[t[0]*a[0]-t[1]*a[1]+a[4],-t[0]*a[2]+t[1]*a[3]+a[5]]}}else n=function(t){return[(t[0]*o[0]+t[1]*o[1]+o[4])*s,(t[0]*o[2]+t[1]*o[3]+o[5])*s]}}else o=t.frameState.coordinateToPixelMatrix,n=function(t){return[(t[0]*o[0]+t[1]*o[1]+o[12])*s,(t[0]*o[4]+t[1]*o[5]+o[13])*s]};var c=this.feature_.getGeometry().getCoordinates();function l(t){for(var e=0;em&&([_,m]=[m,_]);for(var g=_;g<=m;g++)l(g*h)}else l(0)},h.prototype.postcompose=function(t){if(this.feature_){var e=t.context;e.save(),this.drawFeaturePath_(t,!this.get("inner")),e.fillStyle=this.fillColor_,e.fill("evenodd"),e.restore()}};e["a"]=h},ddea:function(t,e,n){"use strict";n.d(e,"c",function(){return c}),n.d(e,"b",function(){return l}),n.d(e,"d",function(){return u}),n.d(e,"e",function(){return h}),n.d(e,"f",function(){return d}),n.d(e,"g",function(){return f}),n.d(e,"i",function(){return p}),n.d(e,"k",function(){return _}),n.d(e,"l",function(){return m}),n.d(e,"m",function(){return g}),n.d(e,"j",function(){return y}),n.d(e,"h",function(){return v}),n.d(e,"o",function(){return b}),n.d(e,"a",function(){return L}),n.d(e,"p",function(){return T}),n.d(e,"q",function(){return S}),n.d(e,"s",function(){return O}),n.d(e,"r",function(){return k}),n.d(e,"n",function(){return C});var i=n("cd7e"),r=n("0999"),s=n("38f3"),o=n("5116"),a=n("a896"),c="10px sans-serif",l=[0,0,0,1],u="round",h=[],d=0,f="round",p=10,_=[0,0,0,1],m="center",g="middle",y=[0,0,0,0],v=1,b=new o["a"],M={},w=null,x={},L=function(){var t,e,n=60,r=M,o="32px ",a=["monospace","serif"],c=a.length,l="wmytzilWMYTZIL@#/&?$%10";function u(t){for(var n=E(),i=100;i<=700;i+=300){for(var r=i+" ",s=!0,u=0;u=0;i--){var r=t[i];"."===r?t.splice(i,1):".."===r?(t.splice(i,1),n++):n&&(t.splice(i,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function i(t){"string"!==typeof t&&(t+="");var e,n=0,i=-1,r=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!r){n=e+1;break}}else-1===i&&(r=!1,i=e+1);return-1===i?"":t.slice(n,i)}function r(t,e){if(t.filter)return t.filter(e);for(var n=[],i=0;i=-1&&!i;s--){var o=s>=0?arguments[s]:t.cwd();if("string"!==typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(e=o+"/"+e,i="/"===o.charAt(0))}return e=n(r(e.split("/"),function(t){return!!t}),!i).join("/"),(i?"/":"")+e||"."},e.normalize=function(t){var i=e.isAbsolute(t),o="/"===s(t,-1);return t=n(r(t.split("/"),function(t){return!!t}),!i).join("/"),t||i||(t="."),t&&o&&(t+="/"),(i?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(r(t,function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},e.relative=function(t,n){function i(t){for(var e=0;e=0;n--)if(""!==t[n])break;return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var r=i(t.split("/")),s=i(n.split("/")),o=Math.min(r.length,s.length),a=o,c=0;c=1;--s)if(e=t.charCodeAt(s),47===e){if(!r){i=s;break}}else r=!1;return-1===i?n?"/":".":n&&1===i?"/":t.slice(0,i)},e.basename=function(t,e){var n=i(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,n=0,i=-1,r=!0,s=0,o=t.length-1;o>=0;--o){var a=t.charCodeAt(o);if(47!==a)-1===i&&(r=!1,i=o+1),46===a?-1===e?e=o:1!==s&&(s=1):-1!==e&&(s=-1);else if(!r){n=o+1;break}}return-1===e||-1===i||0===s||1===s&&e===i-1&&e===n+1?"":t.slice(e,i)};var s="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n("4362"))},e0b8:function(t,e,n){"use strict";var i=n("7726"),r=n("5ca1"),s=n("2aba"),o=n("dcbc"),a=n("67ab"),c=n("4a59"),l=n("f605"),u=n("d3f4"),h=n("79e5"),d=n("5cc5"),f=n("7f20"),p=n("5dbc");t.exports=function(t,e,n,_,m,g){var y=i[t],v=y,b=m?"set":"add",M=v&&v.prototype,w={},x=function(t){var e=M[t];s(M,t,"delete"==t?function(t){return!(g&&!u(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!u(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!u(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof v&&(g||M.forEach&&!h(function(){(new v).entries().next()}))){var L=new v,E=L[b](g?{}:-0,1)!=L,T=h(function(){L.has(1)}),S=d(function(t){new v(t)}),O=!g&&h(function(){var t=new v,e=5;while(e--)t[b](e,e);return!t.has(-0)});S||(v=e(function(e,n){l(e,v,t);var i=p(new y,e,v);return void 0!=n&&c(n,m,i[b],i),i}),v.prototype=M,M.constructor=v),(T||O)&&(x("delete"),x("has"),m&&x("get")),(O||E)&&x(b),g&&M.clear&&delete M.clear}else v=_.getConstructor(e,t,m,b),o(v.prototype,n),a.NEED=!0;return f(v,t),w[t]=v,r(r.G+r.W+r.F*(v!=y),w),g||_.setStrong(v,t,m),v}},e0c5:function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration -var e={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"},i=t.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(t){return t.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,function(t){return n[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(t,e){return 12===t&&(t=0),"રાત"===e?t<4?t:t+12:"સવાર"===e?t:"બપોર"===e?t>=10?t:t+12:"સાંજ"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"રાત":t<10?"સવાર":t<17?"બપોર":t<20?"સાંજ":"રાત"},week:{dow:0,doy:6}});return i})},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e1d3:function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; +var e={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"},i=t.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(t){return t.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,function(t){return n[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(t,e){return 12===t&&(t=0),"રાત"===e?t<4?t:t+12:"સવાર"===e?t:"બપોર"===e?t>=10?t:t+12:"સાંજ"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"રાત":t<10?"સવાર":t<17?"બપોર":t<20?"સાંજ":"રાત"},week:{dow:0,doy:6}});return i})},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e16f:function(t,e,n){"use strict";t.exports=Function.prototype.apply},e1d3:function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration -var e=t.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10,n=1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n},week:{dow:1,doy:4}});return e})},e269:function(t,e,n){"use strict";n.d(e,"b",function(){return h});var i=n("1300"),r=n("7b4f"),s=n("35a7"),o=n("cef7"),a=n("38f3"),c=function(t){function e(e,n,i){t.call(this,e),this.key=n,this.oldValue=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(o["a"]),l=function(t){function e(e){t.call(this),Object(i["c"])(this),this.values_={},void 0!==e&&this.setProperties(e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){var e;return this.values_.hasOwnProperty(t)&&(e=this.values_[t]),e},e.prototype.getKeys=function(){return Object.keys(this.values_)},e.prototype.getProperties=function(){return Object(a["a"])({},this.values_)},e.prototype.notify=function(t,e){var n;n=h(t),this.dispatchEvent(new c(n,t,e)),n=r["a"].PROPERTYCHANGE,this.dispatchEvent(new c(n,t,e))},e.prototype.set=function(t,e,n){if(n)this.values_[t]=e;else{var i=this.values_[t];this.values_[t]=e,i!==e&&this.notify(t,i)}},e.prototype.setProperties=function(t,e){for(var n in t)this.set(n,t[n],e)},e.prototype.unset=function(t,e){if(t in this.values_){var n=this.values_[t];delete this.values_[t],e||this.notify(t,n)}},e}(s["default"]),u={};function h(t){return u.hasOwnProperty(t)?u[t]:u[t]="change:"+t}e["a"]=l},e2b3:function(t,e,n){"use strict";var i=n("3fb5"),r=n("7577"),s=n("1548"),o=n("df09"),a=n("73aa");function c(t){if(!a.enabled&&!o.enabled)throw new Error("Transport created when disabled");r.call(this,t,"/xhr",s,o)}i(c,r),c.enabled=function(t){return!t.nullOrigin&&(!(!a.enabled||!t.sameOrigin)||o.enabled)},c.transportName="xhr-polling",c.roundTrips=2,t.exports=c},e300:function(t,e,n){"use strict";var i=n("835b"),r=n("183a"),s=n("e269"),o=n("cef7"),a={LENGTH:"length"},c=function(t){function e(e,n){t.call(this,e),this.element=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(o["a"]),l=function(t){function e(e,n){t.call(this);var i=n||{};if(this.unique_=!!i.unique,this.array_=e||[],this.unique_)for(var r=0,s=this.array_.length;r0)this.pop()},e.prototype.extend=function(t){for(var e=0,n=t.length;e-1}},duration:Number,noNodesLabel:String,noResultsLabel:String},computed:{hasRipple:function(){return!this.noRipple},classes:function(){return["text-".concat(this.color),{"q-tree-dark":this.dark}]},hasSelection:function(){return void 0!==this.selected},computedIcon:function(){return this.icon||this.$q.icon.tree.icon},computedControlColor:function(){return this.controlColor||this.color},contentClass:function(){return"text-".concat(this.textColor||(this.dark?"white":"black"))},meta:function(){var t=this,e={},n=function n(i,r){var s=i.tickStrategy||(r?r.tickStrategy:t.tickStrategy),o=i[t.nodeKey],a=i.children&&i.children.length>0,c=!a,l=!i.disabled&&t.hasSelection&&!1!==i.selectable,u=!i.disabled&&!1!==i.expandable,h="none"!==s,d="strict"===s,f="leaf-filtered"===s,p="leaf"===s||"leaf-filtered"===s,_=!i.disabled&&!1!==i.tickable;p&&_&&r&&!r.tickable&&(_=!1);var m=i.lazy;m&&t.lazy[o]&&(m=t.lazy[o]);var g={key:o,parent:r,isParent:a,isLeaf:c,lazy:m,disabled:i.disabled,link:l||u&&(a||!0===m),children:[],matchesFilter:!t.filter||t.filterMethod(i,t.filter),selected:o===t.selected&&l,selectable:l,expanded:!!a&&t.innerExpanded.includes(o),expandable:u,noTick:i.noTick||!d&&m&&"loaded"!==m,tickable:_,tickStrategy:s,hasTicking:h,strictTicking:d,leafFilteredTicking:f,leafTicking:p,ticked:d?t.innerTicked.includes(o):!!c&&t.innerTicked.includes(o)};if(e[o]=g,a&&(g.children=i.children.map(function(t){return n(t,g)}),t.filter&&(g.matchesFilter||(g.matchesFilter=g.children.some(function(t){return t.matchesFilter})),g.matchesFilter&&!g.noTick&&!g.disabled&&g.tickable&&f&&g.children.every(function(t){return!t.matchesFilter||t.noTick||!t.tickable})&&(g.tickable=!1)),g.matchesFilter&&(g.noTick||d||!g.children.every(function(t){return t.noTick})||(g.noTick=!0),p&&(g.ticked=!1,g.indeterminate=g.children.some(function(t){return t.indeterminate}),!g.indeterminate)))){var y=g.children.reduce(function(t,e){return e.ticked?t+1:t},0);y===g.children.length?g.ticked=!0:y>0&&(g.indeterminate=!0)}return g};return this.nodes.forEach(function(t){return n(t,null)}),e}},data:function(){return{lazy:{},innerTicked:this.ticked||[],innerExpanded:this.expanded||[]}},watch:{ticked:function(t){this.innerTicked=t},expanded:function(t){this.innerExpanded=t}},methods:{getNodeByKey:function(t){var e=this,n=[].reduce,i=function i(r,s){return r||!s?r:Array.isArray(s)?n.call(Object(s),i,r):s[e.nodeKey]===t?s:s.children?i(null,s.children):void 0};return i(null,this.nodes)},getTickedNodes:function(){var t=this;return this.innerTicked.map(function(e){return t.getNodeByKey(e)})},getExpandedNodes:function(){var t=this;return this.innerExpanded.map(function(e){return t.getNodeByKey(e)})},isExpanded:function(t){return!(!t||!this.meta[t])&&this.meta[t].expanded},collapseAll:function(){void 0!==this.expanded?this.$emit("update:expanded",[]):this.innerExpanded=[]},expandAll:function(){var t=this,e=this.innerExpanded,n=function n(i){i.children&&i.children.length>0&&!1!==i.expandable&&!0!==i.disabled&&(e.push(i[t.nodeKey]),i.children.forEach(n))};this.nodes.forEach(n),void 0!==this.expanded?this.$emit("update:expanded",e):this.innerExpanded=e},setExpanded:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.getNodeByKey(t),r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.meta[t];if(r.lazy&&"loaded"!==r.lazy){if("loading"===r.lazy)return;this.$set(this.lazy,t,"loading"),this.$emit("lazy-load",{node:i,key:t,done:function(e){n.lazy[t]="loaded",e&&(i.children=e),n.$nextTick(function(){var e=n.meta[t];e&&e.isParent&&n.__setExpanded(t,!0)})},fail:function(){n.$delete(n.lazy,t)}})}else r.isParent&&r.expandable&&this.__setExpanded(t,e)},__setExpanded:function(t,e){var n=this,i=this.innerExpanded,r=void 0!==this.expanded;if(r&&(i=i.slice()),e){if(this.accordion&&this.meta[t]){var s=[];this.meta[t].parent?this.meta[t].parent.children.forEach(function(e){e.key!==t&&e.expandable&&s.push(e.key)}):this.nodes.forEach(function(e){var i=e[n.nodeKey];i!==t&&s.push(i)}),s.length>0&&(i=i.filter(function(t){return!s.includes(t)}))}i=i.concat([t]).filter(function(t,e,n){return n.indexOf(t)===e})}else i=i.filter(function(e){return e!==t});r?this.$emit("update:expanded",i):this.innerExpanded=i},isTicked:function(t){return!(!t||!this.meta[t])&&this.meta[t].ticked},setTicked:function(t,e){var n=this.innerTicked,i=void 0!==this.ticked;i&&(n=n.slice()),n=e?n.concat(t).filter(function(t,e,n){return n.indexOf(t)===e}):n.filter(function(e){return!t.includes(e)}),i&&this.$emit("update:ticked",n)},__getSlotScope:function(t,e,n){var i=this,r={tree:this,node:t,key:n,color:this.color,dark:this.dark};return Object.defineProperty(r,"expanded",{get:function(){return e.expanded},set:function(t){t!==e.expanded&&i.setExpanded(n,t)}}),Object.defineProperty(r,"ticked",{get:function(){return e.ticked},set:function(t){t!==e.ticked&&i.setTicked([n],t)}}),r},__getChildren:function(t,e){var n=this;return(this.filter?e.filter(function(t){return n.meta[t[n.nodeKey]].matchesFilter}):e).map(function(e){return n.__getNode(t,e)})},__getNodeMedia:function(t,e){return e.icon?t(i["a"],{staticClass:"q-tree-icon q-mr-sm",props:{name:e.icon,color:e.iconColor}}):e.img||e.avatar?t("img",{staticClass:"q-tree-img q-mr-sm",class:{avatar:e.avatar},attrs:{src:e.img||e.avatar}}):void 0},__getNode:function(t,e){var n=this,a=e[this.nodeKey],c=this.meta[a],l=e.header&&this.$scopedSlots["header-".concat(e.header)]||this.$scopedSlots["default-header"],u=c.isParent?this.__getChildren(t,e.children):[],h=u.length>0||c.lazy&&"loaded"!==c.lazy,d=e.body&&this.$scopedSlots["body-".concat(e.body)]||this.$scopedSlots["default-body"],f=l||d?this.__getSlotScope(e,c,a):null;return d&&(d=t("div",{staticClass:"q-tree-node-body relative-position"},[t("div",{class:this.contentClass},[d(f)])])),t("div",{key:a,staticClass:"q-tree-node",class:{"q-tree-node-parent":h,"q-tree-node-child":!h}},[t("div",{staticClass:"q-tree-node-header relative-position row no-wrap items-center",class:{"q-tree-node-link":c.link,"q-tree-node-selected":c.selected,disabled:c.disabled},on:{click:function(){n.__onClick(e,c)}},directives:c.selectable?[{name:"ripple"}]:null},["loading"===c.lazy?t(o["a"],{staticClass:"q-tree-node-header-media q-mr-xs",props:{color:this.computedControlColor}}):h?t(i["a"],{staticClass:"q-tree-arrow q-mr-xs transition-generic",class:{"q-tree-arrow-rotate":c.expanded},props:{name:this.computedIcon},nativeOn:{click:function(t){n.__onExpandClick(e,c,t)}}}):null,t("span",{staticClass:"row no-wrap items-center",class:this.contentClass},[c.hasTicking&&!c.noTick?t(r["a"],{staticClass:"q-mr-xs",props:{value:c.indeterminate?null:c.ticked,color:this.computedControlColor,dark:this.dark,keepColor:!0,disable:!c.tickable},on:{input:function(t){n.__onTickedClick(e,c,t)}}}):null,l?l(f):[this.__getNodeMedia(t,e),t("span",e[this.labelKey])]])]),h?t(s["a"],{props:{duration:this.duration}},[t("div",{directives:[{name:"show",value:c.expanded}],staticClass:"q-tree-node-collapsible",class:"text-".concat(this.color)},[d,t("div",{staticClass:"q-tree-children",class:{disabled:c.disabled}},u)])]):d])},__onClick:function(t,e){this.hasSelection?e.selectable&&this.$emit("update:selected",e.key!==this.selected?e.key:null):this.__onExpandClick(t,e),"function"===typeof t.handler&&t.handler(t)},__onExpandClick:function(t,e,n){void 0!==n&&n.stopPropagation(),this.setExpanded(e.key,!e.expanded,t,e)},__onTickedClick:function(t,e,n){if(e.indeterminate&&n&&(n=!1),e.strictTicking)this.setTicked([e.key],n);else if(e.leafTicking){var i=[],r=function t(e){e.isParent?(n||e.noTick||!e.tickable||i.push(e.key),e.leafTicking&&e.children.forEach(t)):e.noTick||!e.tickable||e.leafFilteredTicking&&!e.matchesFilter||i.push(e.key)};r(e),this.setTicked(i,n)}}},render:function(t){var e=this.__getChildren(t,this.nodes);return t("div",{staticClass:"q-tree relative-position",class:this.classes},0===e.length?this.filter?this.noResultsLabel||this.$q.i18n.tree.noResults:this.noNodesLabel||this.$q.i18n.tree.noNodes:e)},created:function(){this.defaultExpandAll&&this.expandAll()}}},e514:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("7b52"),r=n("b08b"),s=n("508f");class o extends s["a"]{constructor(){super(),o.constructor_.apply(this,arguments)}static constructor_(){this._coord=null,this._edges=null;const t=arguments[0],e=arguments[1];this._coord=t,this._edges=e,this._label=new r["a"](0,i["a"].NONE)}isIncidentEdgeInResult(){for(let t=this.getEdges().getEdges().iterator();t.hasNext();){const e=t.next();if(e.getEdge().isInResult())return!0}return!1}isIsolated(){return 1===this._label.getGeometryCount()}getCoordinate(){return this._coord}computeMergedLocation(t,e){let n=i["a"].NONE;if(n=this._label.getLocation(e),!t.isNull(e)){const r=t.getLocation(e);n!==i["a"].BOUNDARY&&(n=r)}return n}setLabel(){if(2!==arguments.length||!Number.isInteger(arguments[1])||!Number.isInteger(arguments[0]))return super.setLabel.apply(this,arguments);{const t=arguments[0],e=arguments[1];null===this._label?this._label=new r["a"](t,e):this._label.setLocation(t,e)}}getEdges(){return this._edges}mergeLabel(){if(arguments[0]instanceof o){const t=arguments[0];this.mergeLabel(t._label)}else if(arguments[0]instanceof r["a"]){const t=arguments[0];for(let e=0;e<2;e++){const n=this.computeMergedLocation(t,e),r=this._label.getLocation(e);r===i["a"].NONE&&this._label.setLocation(e,n)}}}add(t){this._edges.insert(t),t.setNode(this)}setLabelBoundary(t){if(null===this._label)return null;let e=i["a"].NONE;null!==this._label&&(e=this._label.getLocation(t));let n=null;switch(e){case i["a"].BOUNDARY:n=i["a"].INTERIOR;break;case i["a"].INTERIOR:n=i["a"].BOUNDARY;break;default:n=i["a"].BOUNDARY;break}this._label.setLocation(t,n)}print(t){t.println("node "+this._coord+" lbl: "+this._label)}computeIM(t){}}},e53d:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e556:function(t,e,n){"use strict";var i=n("3fb5"),r=n("7577"),s=n("b185"),o=n("1548"),a=n("9d7d");function c(t){if(!a.enabled)throw new Error("Transport created when disabled");r.call(this,t,"/xhr",o,a)}i(c,r),c.enabled=s.enabled,c.transportName="xdr-polling",c.roundTrips=2,t.exports=c},e570:function(t,e,n){"use strict";n.d(e,"a",function(){return d});var i=n("ad3f"),r=n("1d1d"),s=n("7c01"),o=n("8a23"),a=n("e35d"),c=n("3d80"),l=n("6336"),u=n("7c92"),h=n("9ee3");class d{constructor(){d.constructor_.apply(this,arguments)}static constructor_(){if(this.p0=null,this.p1=null,0===arguments.length)d.constructor_.call(this,new i["a"],new i["a"]);else if(1===arguments.length){const t=arguments[0];d.constructor_.call(this,t.p0,t.p1)}else if(2===arguments.length){const t=arguments[0],e=arguments[1];this.p0=t,this.p1=e}else if(4===arguments.length){const t=arguments[0],e=arguments[1],n=arguments[2],r=arguments[3];d.constructor_.call(this,new i["a"](t,e),new i["a"](n,r))}}static midPoint(t,e){return new i["a"]((t.x+e.x)/2,(t.y+e.y)/2)}minX(){return Math.min(this.p0.x,this.p1.x)}orientationIndex(){if(arguments[0]instanceof d){const t=arguments[0],e=u["a"].index(this.p0,this.p1,t.p0),n=u["a"].index(this.p0,this.p1,t.p1);return e>=0&&n>=0?Math.max(e,n):e<=0&&n<=0?Math.max(e,n):0}if(arguments[0]instanceof i["a"]){const t=arguments[0];return u["a"].index(this.p0,this.p1,t)}}toGeometry(t){return t.createLineString([this.p0,this.p1])}isVertical(){return this.p0.x===this.p1.x}minY(){return Math.min(this.p0.y,this.p1.y)}midPoint(){return d.midPoint(this.p0,this.p1)}maxY(){return Math.max(this.p0.y,this.p1.y)}pointAlongOffset(t,e){const n=this.p0.x+t*(this.p1.x-this.p0.x),r=this.p0.y+t*(this.p1.y-this.p0.y),s=this.p1.x-this.p0.x,o=this.p1.y-this.p0.y,a=Math.sqrt(s*s+o*o);let l=0,u=0;if(0!==e){if(a<=0)throw new c["a"]("Cannot compute offset from zero-length line segment");l=e*s/a,u=e*o/a}const h=n-u,d=r+l,f=new i["a"](h,d);return f}setCoordinates(){if(1===arguments.length){const t=arguments[0];this.setCoordinates(t.p0,t.p1)}else if(2===arguments.length){const t=arguments[0],e=arguments[1];this.p0.x=t.x,this.p0.y=t.y,this.p1.x=e.x,this.p1.y=e.y}}segmentFraction(t){let e=this.projectionFactor(t);return e<0?e=0:(e>1||r["a"].isNaN(e))&&(e=1),e}toString(){return"LINESTRING( "+this.p0.x+" "+this.p0.y+", "+this.p1.x+" "+this.p1.y+")"}distance(){if(arguments[0]instanceof d){const t=arguments[0];return l["a"].segmentToSegment(this.p0,this.p1,t.p0,t.p1)}if(arguments[0]instanceof i["a"]){const t=arguments[0];return l["a"].pointToSegment(t,this.p0,this.p1)}}equals(t){if(!(t instanceof d))return!1;const e=t;return this.p0.equals(e.p0)&&this.p1.equals(e.p1)}intersection(t){const e=new o["a"];return e.computeIntersection(this.p0,this.p1,t.p0,t.p1),e.hasIntersection()?e.getIntersection(0):null}project(){if(arguments[0]instanceof i["a"]){const t=arguments[0];if(t.equals(this.p0)||t.equals(this.p1))return new i["a"](t);const e=this.projectionFactor(t),n=new i["a"];return n.x=this.p0.x+e*(this.p1.x-this.p0.x),n.y=this.p0.y+e*(this.p1.y-this.p0.y),n}if(arguments[0]instanceof d){const t=arguments[0],e=this.projectionFactor(t.p0),n=this.projectionFactor(t.p1);if(e>=1&&n>=1)return null;if(e<=0&&n<=0)return null;let i=this.project(t.p0);e<0&&(i=this.p0),e>1&&(i=this.p1);let r=this.project(t.p1);return n<0&&(r=this.p0),n>1&&(r=this.p1),new d(i,r)}}normalize(){this.p1.compareTo(this.p0)<0&&this.reverse()}angle(){return Math.atan2(this.p1.y-this.p0.y,this.p1.x-this.p0.x)}getCoordinate(t){return 0===t?this.p0:this.p1}distancePerpendicular(t){return l["a"].pointToLinePerpendicular(t,this.p0,this.p1)}closestPoint(t){const e=this.projectionFactor(t);if(e>0&&e<1)return this.project(t);const n=this.p0.distance(t),i=this.p1.distance(t);return n>32);let n=r["a"].doubleToLongBits(this.p1.x);n^=31*r["a"].doubleToLongBits(this.p1.y);const i=Math.trunc(n)^Math.trunc(n>>32);return e^i}get interfaces_(){return[s["a"],a["a"]]}}},e660:function(t,e,n){"use strict";e["a"]={inject:{field:{from:"__field",default:null}},props:{noParentField:Boolean},watch:{noParentField:function(t){this.field&&this.field[t?"__registerInput":"__unregisterInput"](this)}},beforeMount:function(){!this.noParentField&&this.field&&this.field.__registerInput(this)},beforeDestroy:function(){!this.noParentField&&this.field&&this.field.__unregisterInput(this)}}},e683:function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},e6f3:function(t,e,n){var i=n("07e3"),r=n("36c3"),s=n("5b4e")(!1),o=n("5559")("IE_PROTO");t.exports=function(t,e){var n,a=r(t),c=0,l=[];for(n in a)n!=o&&i(a,n)&&l.push(n);while(e.length>c)i(a,n=e[c++])&&(~s(l,n)||l.push(n));return l}},e7df:function(t,e,n){"use strict";var i=n("8778"),r=n("869f"),s=n("1e8d"),o=n("01d4"),a=n("0af5"),c=function(t){function e(e,n,i,s,o,a){t.call(this,e,n,i,r["a"].IDLE),this.src_=s,this.image_=new Image,null!==o&&(this.image_.crossOrigin=o),this.imageListenerKeys_=null,this.state=r["a"].IDLE,this.imageLoadFunction_=a}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getImage=function(){return this.image_},e.prototype.handleImageError_=function(){this.state=r["a"].ERROR,this.unlistenImage_(),this.changed()},e.prototype.handleImageLoad_=function(){void 0===this.resolution&&(this.resolution=Object(a["A"])(this.extent)/this.image_.height),this.state=r["a"].LOADED,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state!=r["a"].IDLE&&this.state!=r["a"].ERROR||(this.state=r["a"].LOADING,this.changed(),this.imageListenerKeys_=[Object(s["b"])(this.image_,o["a"].ERROR,this.handleImageError_,this),Object(s["b"])(this.image_,o["a"].LOAD,this.handleImageLoad_,this)],this.imageLoadFunction_(this,this.src_))},e.prototype.setImage=function(t){this.image_=t},e.prototype.unlistenImage_=function(){this.imageListenerKeys_.forEach(s["e"]),this.imageListenerKeys_=null},e}(i["a"]),l=c,u=n("0999"),h=n("256f"),d=n("1300"),f=n("a504"),p=n("9f5e"),_=n("cef7"),m=n("3c81"),g=n("b739"),y=function(t){function e(e,n,i,s,o,c){var l=e.getExtent(),u=n.getExtent(),h=u?Object(a["B"])(i,u):i,d=Object(a["x"])(h),p=Object(m["a"])(e,n,d,s),_=f["b"],y=new g["a"](e,n,h,l,p*_),v=y.calculateSourceExtent(),b=c(v,p,o),M=r["a"].LOADED;b&&(M=r["a"].IDLE);var w=b?b.getPixelRatio():1;t.call(this,i,s,w,M),this.targetProj_=n,this.maxSourceExtent_=l,this.triangulation_=y,this.targetResolution_=s,this.targetExtent_=i,this.sourceImage_=b,this.sourcePixelRatio_=w,this.canvas_=null,this.sourceListenerKey_=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){this.state==r["a"].LOADING&&this.unlistenSource_(),t.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.canvas_},e.prototype.getProjection=function(){return this.targetProj_},e.prototype.reproject_=function(){var t=this.sourceImage_.getState();if(t==r["a"].LOADED){var e=Object(a["E"])(this.targetExtent_)/this.targetResolution_,n=Object(a["A"])(this.targetExtent_)/this.targetResolution_;this.canvas_=Object(m["b"])(e,n,this.sourcePixelRatio_,this.sourceImage_.getResolution(),this.maxSourceExtent_,this.targetResolution_,this.targetExtent_,this.triangulation_,[{extent:this.sourceImage_.getExtent(),image:this.sourceImage_.getImage()}],0)}this.state=t,this.changed()},e.prototype.load=function(){if(this.state==r["a"].IDLE){this.state=r["a"].LOADING,this.changed();var t=this.sourceImage_.getState();t==r["a"].LOADED||t==r["a"].ERROR?this.reproject_():(this.sourceListenerKey_=Object(s["a"])(this.sourceImage_,o["a"].CHANGE,function(t){var e=this.sourceImage_.getState();e!=r["a"].LOADED&&e!=r["a"].ERROR||(this.unlistenSource_(),this.reproject_())},this),this.sourceImage_.load())}},e.prototype.unlistenSource_=function(){Object(s["e"])(this.sourceListenerKey_),this.sourceListenerKey_=null},e}(i["a"]),v=y,b=n("ff80"),M={IMAGELOADSTART:"imageloadstart",IMAGELOADEND:"imageloadend",IMAGELOADERROR:"imageloaderror"},w=function(t){function e(e,n){t.call(this,e),this.image=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(_["a"]),x=function(t){function e(e){t.call(this,{attributions:e.attributions,projection:e.projection,state:e.state}),this.resolutions_=void 0!==e.resolutions?e.resolutions:null,this.reprojectedImage_=null,this.reprojectedRevision_=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.findNearestResolution=function(t){if(this.resolutions_){var e=Object(p["f"])(this.resolutions_,t,0);t=this.resolutions_[e]}return t},e.prototype.getImage=function(t,e,n,i){var r=this.getProjection();if(f["a"]&&r&&i&&!Object(h["f"])(r,i)){if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&Object(h["f"])(this.reprojectedImage_.getProjection(),i)&&this.reprojectedImage_.getResolution()==e&&Object(a["p"])(this.reprojectedImage_.getExtent(),t))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new v(r,i,t,e,n,function(t,e,n){return this.getImageInternal(t,e,n,r)}.bind(this)),this.reprojectedRevision_=this.getRevision(),this.reprojectedImage_}return r&&(i=r),this.getImageInternal(t,e,n,i)},e.prototype.getImageInternal=function(t,e,n,i){return Object(d["b"])()},e.prototype.handleImageChange=function(t){var e=t.target;switch(e.getState()){case r["a"].LOADING:this.loading=!0,this.dispatchEvent(new w(M.IMAGELOADSTART,e));break;case r["a"].LOADED:this.loading=!1,this.dispatchEvent(new w(M.IMAGELOADEND,e));break;case r["a"].ERROR:this.loading=!1,this.dispatchEvent(new w(M.IMAGELOADERROR,e));break;default:}},e}(b["a"]);function L(t,e){t.getImage().src=e}var E=x,T=function(t){function e(e){var n=void 0!==e.crossOrigin?e.crossOrigin:null,i=void 0!==e.imageLoadFunction?e.imageLoadFunction:L;t.call(this,{attributions:e.attributions,projection:Object(h["g"])(e.projection)}),this.url_=e.url,this.imageExtent_=e.imageExtent,this.image_=new l(this.imageExtent_,void 0,1,this.url_,n,i),this.imageSize_=e.imageSize?e.imageSize:null,Object(s["a"])(this.image_,o["a"].CHANGE,this.handleImageChange,this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getImageExtent=function(){return this.imageExtent_},e.prototype.getImageInternal=function(t,e,n,i){return Object(a["F"])(t,this.image_.getExtent())?this.image_:null},e.prototype.getUrl=function(){return this.url_},e.prototype.handleImageChange=function(e){if(this.image_.getState()==r["a"].LOADED){var n,i,s=this.image_.getExtent(),o=this.image_.getImage();this.imageSize_?(n=this.imageSize_[0],i=this.imageSize_[1]):(n=o.width,i=o.height);var c=Object(a["A"])(s)/i,l=Math.ceil(Object(a["E"])(s)/c);if(l!=n){var h=Object(u["a"])(l,i),d=h.canvas;h.drawImage(o,0,0,n,i,0,0,d.width,d.height),this.image_.setImage(d)}}t.prototype.handleImageChange.call(this,e)},e}(E);e["a"]=T},e7fb:function(t,e,n){},e81d:function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; +var e=t.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10,n=1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n},week:{dow:1,doy:4}});return e})},e269:function(t,e,n){"use strict";n.d(e,"b",function(){return h});var i=n("1300"),r=n("7b4f"),s=n("35a7"),o=n("cef7"),a=n("38f3"),c=function(t){function e(e,n,i){t.call(this,e),this.key=n,this.oldValue=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(o["a"]),l=function(t){function e(e){t.call(this),Object(i["c"])(this),this.values_={},void 0!==e&&this.setProperties(e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){var e;return this.values_.hasOwnProperty(t)&&(e=this.values_[t]),e},e.prototype.getKeys=function(){return Object.keys(this.values_)},e.prototype.getProperties=function(){return Object(a["a"])({},this.values_)},e.prototype.notify=function(t,e){var n;n=h(t),this.dispatchEvent(new c(n,t,e)),n=r["a"].PROPERTYCHANGE,this.dispatchEvent(new c(n,t,e))},e.prototype.set=function(t,e,n){if(n)this.values_[t]=e;else{var i=this.values_[t];this.values_[t]=e,i!==e&&this.notify(t,i)}},e.prototype.setProperties=function(t,e){for(var n in t)this.set(n,t[n],e)},e.prototype.unset=function(t,e){if(t in this.values_){var n=this.values_[t];delete this.values_[t],e||this.notify(t,n)}},e}(s["default"]),u={};function h(t){return u.hasOwnProperty(t)?u[t]:u[t]="change:"+t}e["a"]=l},e2b3:function(t,e,n){"use strict";var i=n("3fb5"),r=n("7577"),s=n("1548"),o=n("df09"),a=n("73aa");function c(t){if(!a.enabled&&!o.enabled)throw new Error("Transport created when disabled");r.call(this,t,"/xhr",s,o)}i(c,r),c.enabled=function(t){return!t.nullOrigin&&(!(!a.enabled||!t.sameOrigin)||o.enabled)},c.transportName="xhr-polling",c.roundTrips=2,t.exports=c},e300:function(t,e,n){"use strict";var i=n("835b"),r=n("183a"),s=n("e269"),o=n("cef7"),a={LENGTH:"length"},c=function(t){function e(e,n){t.call(this,e),this.element=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(o["a"]),l=function(t){function e(e,n){t.call(this);var i=n||{};if(this.unique_=!!i.unique,this.array_=e||[],this.unique_)for(var r=0,s=this.array_.length;r0)this.pop()},e.prototype.extend=function(t){for(var e=0,n=t.length;e-1}},duration:Number,noNodesLabel:String,noResultsLabel:String},computed:{hasRipple:function(){return!this.noRipple},classes:function(){return["text-".concat(this.color),{"q-tree-dark":this.dark}]},hasSelection:function(){return void 0!==this.selected},computedIcon:function(){return this.icon||this.$q.icon.tree.icon},computedControlColor:function(){return this.controlColor||this.color},contentClass:function(){return"text-".concat(this.textColor||(this.dark?"white":"black"))},meta:function(){var t=this,e={},n=function n(i,r){var s=i.tickStrategy||(r?r.tickStrategy:t.tickStrategy),o=i[t.nodeKey],a=i.children&&i.children.length>0,c=!a,l=!i.disabled&&t.hasSelection&&!1!==i.selectable,u=!i.disabled&&!1!==i.expandable,h="none"!==s,d="strict"===s,f="leaf-filtered"===s,p="leaf"===s||"leaf-filtered"===s,_=!i.disabled&&!1!==i.tickable;p&&_&&r&&!r.tickable&&(_=!1);var m=i.lazy;m&&t.lazy[o]&&(m=t.lazy[o]);var g={key:o,parent:r,isParent:a,isLeaf:c,lazy:m,disabled:i.disabled,link:l||u&&(a||!0===m),children:[],matchesFilter:!t.filter||t.filterMethod(i,t.filter),selected:o===t.selected&&l,selectable:l,expanded:!!a&&t.innerExpanded.includes(o),expandable:u,noTick:i.noTick||!d&&m&&"loaded"!==m,tickable:_,tickStrategy:s,hasTicking:h,strictTicking:d,leafFilteredTicking:f,leafTicking:p,ticked:d?t.innerTicked.includes(o):!!c&&t.innerTicked.includes(o)};if(e[o]=g,a&&(g.children=i.children.map(function(t){return n(t,g)}),t.filter&&(g.matchesFilter||(g.matchesFilter=g.children.some(function(t){return t.matchesFilter})),g.matchesFilter&&!g.noTick&&!g.disabled&&g.tickable&&f&&g.children.every(function(t){return!t.matchesFilter||t.noTick||!t.tickable})&&(g.tickable=!1)),g.matchesFilter&&(g.noTick||d||!g.children.every(function(t){return t.noTick})||(g.noTick=!0),p&&(g.ticked=!1,g.indeterminate=g.children.some(function(t){return t.indeterminate}),!g.indeterminate)))){var y=g.children.reduce(function(t,e){return e.ticked?t+1:t},0);y===g.children.length?g.ticked=!0:y>0&&(g.indeterminate=!0)}return g};return this.nodes.forEach(function(t){return n(t,null)}),e}},data:function(){return{lazy:{},innerTicked:this.ticked||[],innerExpanded:this.expanded||[]}},watch:{ticked:function(t){this.innerTicked=t},expanded:function(t){this.innerExpanded=t}},methods:{getNodeByKey:function(t){var e=this,n=[].reduce,i=function i(r,s){return r||!s?r:Array.isArray(s)?n.call(Object(s),i,r):s[e.nodeKey]===t?s:s.children?i(null,s.children):void 0};return i(null,this.nodes)},getTickedNodes:function(){var t=this;return this.innerTicked.map(function(e){return t.getNodeByKey(e)})},getExpandedNodes:function(){var t=this;return this.innerExpanded.map(function(e){return t.getNodeByKey(e)})},isExpanded:function(t){return!(!t||!this.meta[t])&&this.meta[t].expanded},collapseAll:function(){void 0!==this.expanded?this.$emit("update:expanded",[]):this.innerExpanded=[]},expandAll:function(){var t=this,e=this.innerExpanded,n=function n(i){i.children&&i.children.length>0&&!1!==i.expandable&&!0!==i.disabled&&(e.push(i[t.nodeKey]),i.children.forEach(n))};this.nodes.forEach(n),void 0!==this.expanded?this.$emit("update:expanded",e):this.innerExpanded=e},setExpanded:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.getNodeByKey(t),r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.meta[t];if(r.lazy&&"loaded"!==r.lazy){if("loading"===r.lazy)return;this.$set(this.lazy,t,"loading"),this.$emit("lazy-load",{node:i,key:t,done:function(e){n.lazy[t]="loaded",e&&(i.children=e),n.$nextTick(function(){var e=n.meta[t];e&&e.isParent&&n.__setExpanded(t,!0)})},fail:function(){n.$delete(n.lazy,t)}})}else r.isParent&&r.expandable&&this.__setExpanded(t,e)},__setExpanded:function(t,e){var n=this,i=this.innerExpanded,r=void 0!==this.expanded;if(r&&(i=i.slice()),e){if(this.accordion&&this.meta[t]){var s=[];this.meta[t].parent?this.meta[t].parent.children.forEach(function(e){e.key!==t&&e.expandable&&s.push(e.key)}):this.nodes.forEach(function(e){var i=e[n.nodeKey];i!==t&&s.push(i)}),s.length>0&&(i=i.filter(function(t){return!s.includes(t)}))}i=i.concat([t]).filter(function(t,e,n){return n.indexOf(t)===e})}else i=i.filter(function(e){return e!==t});r?this.$emit("update:expanded",i):this.innerExpanded=i},isTicked:function(t){return!(!t||!this.meta[t])&&this.meta[t].ticked},setTicked:function(t,e){var n=this.innerTicked,i=void 0!==this.ticked;i&&(n=n.slice()),n=e?n.concat(t).filter(function(t,e,n){return n.indexOf(t)===e}):n.filter(function(e){return!t.includes(e)}),i&&this.$emit("update:ticked",n)},__getSlotScope:function(t,e,n){var i=this,r={tree:this,node:t,key:n,color:this.color,dark:this.dark};return Object.defineProperty(r,"expanded",{get:function(){return e.expanded},set:function(t){t!==e.expanded&&i.setExpanded(n,t)}}),Object.defineProperty(r,"ticked",{get:function(){return e.ticked},set:function(t){t!==e.ticked&&i.setTicked([n],t)}}),r},__getChildren:function(t,e){var n=this;return(this.filter?e.filter(function(t){return n.meta[t[n.nodeKey]].matchesFilter}):e).map(function(e){return n.__getNode(t,e)})},__getNodeMedia:function(t,e){return e.icon?t(i["a"],{staticClass:"q-tree-icon q-mr-sm",props:{name:e.icon,color:e.iconColor}}):e.img||e.avatar?t("img",{staticClass:"q-tree-img q-mr-sm",class:{avatar:e.avatar},attrs:{src:e.img||e.avatar}}):void 0},__getNode:function(t,e){var n=this,a=e[this.nodeKey],c=this.meta[a],l=e.header&&this.$scopedSlots["header-".concat(e.header)]||this.$scopedSlots["default-header"],u=c.isParent?this.__getChildren(t,e.children):[],h=u.length>0||c.lazy&&"loaded"!==c.lazy,d=e.body&&this.$scopedSlots["body-".concat(e.body)]||this.$scopedSlots["default-body"],f=l||d?this.__getSlotScope(e,c,a):null;return d&&(d=t("div",{staticClass:"q-tree-node-body relative-position"},[t("div",{class:this.contentClass},[d(f)])])),t("div",{key:a,staticClass:"q-tree-node",class:{"q-tree-node-parent":h,"q-tree-node-child":!h}},[t("div",{staticClass:"q-tree-node-header relative-position row no-wrap items-center",class:{"q-tree-node-link":c.link,"q-tree-node-selected":c.selected,disabled:c.disabled},on:{click:function(){n.__onClick(e,c)}},directives:c.selectable?[{name:"ripple"}]:null},["loading"===c.lazy?t(o["a"],{staticClass:"q-tree-node-header-media q-mr-xs",props:{color:this.computedControlColor}}):h?t(i["a"],{staticClass:"q-tree-arrow q-mr-xs transition-generic",class:{"q-tree-arrow-rotate":c.expanded},props:{name:this.computedIcon},nativeOn:{click:function(t){n.__onExpandClick(e,c,t)}}}):null,t("span",{staticClass:"row no-wrap items-center",class:this.contentClass},[c.hasTicking&&!c.noTick?t(r["a"],{staticClass:"q-mr-xs",props:{value:c.indeterminate?null:c.ticked,color:this.computedControlColor,dark:this.dark,keepColor:!0,disable:!c.tickable},on:{input:function(t){n.__onTickedClick(e,c,t)}}}):null,l?l(f):[this.__getNodeMedia(t,e),t("span",e[this.labelKey])]])]),h?t(s["a"],{props:{duration:this.duration}},[t("div",{directives:[{name:"show",value:c.expanded}],staticClass:"q-tree-node-collapsible",class:"text-".concat(this.color)},[d,t("div",{staticClass:"q-tree-children",class:{disabled:c.disabled}},u)])]):d])},__onClick:function(t,e){this.hasSelection?e.selectable&&this.$emit("update:selected",e.key!==this.selected?e.key:null):this.__onExpandClick(t,e),"function"===typeof t.handler&&t.handler(t)},__onExpandClick:function(t,e,n){void 0!==n&&n.stopPropagation(),this.setExpanded(e.key,!e.expanded,t,e)},__onTickedClick:function(t,e,n){if(e.indeterminate&&n&&(n=!1),e.strictTicking)this.setTicked([e.key],n);else if(e.leafTicking){var i=[],r=function t(e){e.isParent?(n||e.noTick||!e.tickable||i.push(e.key),e.leafTicking&&e.children.forEach(t)):e.noTick||!e.tickable||e.leafFilteredTicking&&!e.matchesFilter||i.push(e.key)};r(e),this.setTicked(i,n)}}},render:function(t){var e=this.__getChildren(t,this.nodes);return t("div",{staticClass:"q-tree relative-position",class:this.classes},0===e.length?this.filter?this.noResultsLabel||this.$q.i18n.tree.noResults:this.noNodesLabel||this.$q.i18n.tree.noNodes:e)},created:function(){this.defaultExpandAll&&this.expandAll()}}},e514:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("7b52"),r=n("b08b"),s=n("508f");class o extends s["a"]{constructor(){super(),o.constructor_.apply(this,arguments)}static constructor_(){this._coord=null,this._edges=null;const t=arguments[0],e=arguments[1];this._coord=t,this._edges=e,this._label=new r["a"](0,i["a"].NONE)}isIncidentEdgeInResult(){for(let t=this.getEdges().getEdges().iterator();t.hasNext();){const e=t.next();if(e.getEdge().isInResult())return!0}return!1}isIsolated(){return 1===this._label.getGeometryCount()}getCoordinate(){return this._coord}computeMergedLocation(t,e){let n=i["a"].NONE;if(n=this._label.getLocation(e),!t.isNull(e)){const r=t.getLocation(e);n!==i["a"].BOUNDARY&&(n=r)}return n}setLabel(){if(2!==arguments.length||!Number.isInteger(arguments[1])||!Number.isInteger(arguments[0]))return super.setLabel.apply(this,arguments);{const t=arguments[0],e=arguments[1];null===this._label?this._label=new r["a"](t,e):this._label.setLocation(t,e)}}getEdges(){return this._edges}mergeLabel(){if(arguments[0]instanceof o){const t=arguments[0];this.mergeLabel(t._label)}else if(arguments[0]instanceof r["a"]){const t=arguments[0];for(let e=0;e<2;e++){const n=this.computeMergedLocation(t,e),r=this._label.getLocation(e);r===i["a"].NONE&&this._label.setLocation(e,n)}}}add(t){this._edges.insert(t),t.setNode(this)}setLabelBoundary(t){if(null===this._label)return null;let e=i["a"].NONE;null!==this._label&&(e=this._label.getLocation(t));let n=null;switch(e){case i["a"].BOUNDARY:n=i["a"].INTERIOR;break;case i["a"].INTERIOR:n=i["a"].BOUNDARY;break;default:n=i["a"].BOUNDARY;break}this._label.setLocation(t,n)}print(t){t.println("node "+this._coord+" lbl: "+this._label)}computeIM(t){}}},e53d:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e556:function(t,e,n){"use strict";var i=n("3fb5"),r=n("7577"),s=n("b185"),o=n("1548"),a=n("9d7d");function c(t){if(!a.enabled)throw new Error("Transport created when disabled");r.call(this,t,"/xhr",o,a)}i(c,r),c.enabled=s.enabled,c.transportName="xdr-polling",c.roundTrips=2,t.exports=c},e570:function(t,e,n){"use strict";n.d(e,"a",function(){return d});var i=n("ad3f"),r=n("1d1d"),s=n("7c01"),o=n("8a23"),a=n("e35d"),c=n("3d80"),l=n("6336"),u=n("7c92"),h=n("9ee3");class d{constructor(){d.constructor_.apply(this,arguments)}static constructor_(){if(this.p0=null,this.p1=null,0===arguments.length)d.constructor_.call(this,new i["a"],new i["a"]);else if(1===arguments.length){const t=arguments[0];d.constructor_.call(this,t.p0,t.p1)}else if(2===arguments.length){const t=arguments[0],e=arguments[1];this.p0=t,this.p1=e}else if(4===arguments.length){const t=arguments[0],e=arguments[1],n=arguments[2],r=arguments[3];d.constructor_.call(this,new i["a"](t,e),new i["a"](n,r))}}static midPoint(t,e){return new i["a"]((t.x+e.x)/2,(t.y+e.y)/2)}minX(){return Math.min(this.p0.x,this.p1.x)}orientationIndex(){if(arguments[0]instanceof d){const t=arguments[0],e=u["a"].index(this.p0,this.p1,t.p0),n=u["a"].index(this.p0,this.p1,t.p1);return e>=0&&n>=0?Math.max(e,n):e<=0&&n<=0?Math.max(e,n):0}if(arguments[0]instanceof i["a"]){const t=arguments[0];return u["a"].index(this.p0,this.p1,t)}}toGeometry(t){return t.createLineString([this.p0,this.p1])}isVertical(){return this.p0.x===this.p1.x}minY(){return Math.min(this.p0.y,this.p1.y)}midPoint(){return d.midPoint(this.p0,this.p1)}maxY(){return Math.max(this.p0.y,this.p1.y)}pointAlongOffset(t,e){const n=this.p0.x+t*(this.p1.x-this.p0.x),r=this.p0.y+t*(this.p1.y-this.p0.y),s=this.p1.x-this.p0.x,o=this.p1.y-this.p0.y,a=Math.sqrt(s*s+o*o);let l=0,u=0;if(0!==e){if(a<=0)throw new c["a"]("Cannot compute offset from zero-length line segment");l=e*s/a,u=e*o/a}const h=n-u,d=r+l,f=new i["a"](h,d);return f}setCoordinates(){if(1===arguments.length){const t=arguments[0];this.setCoordinates(t.p0,t.p1)}else if(2===arguments.length){const t=arguments[0],e=arguments[1];this.p0.x=t.x,this.p0.y=t.y,this.p1.x=e.x,this.p1.y=e.y}}segmentFraction(t){let e=this.projectionFactor(t);return e<0?e=0:(e>1||r["a"].isNaN(e))&&(e=1),e}toString(){return"LINESTRING( "+this.p0.x+" "+this.p0.y+", "+this.p1.x+" "+this.p1.y+")"}distance(){if(arguments[0]instanceof d){const t=arguments[0];return l["a"].segmentToSegment(this.p0,this.p1,t.p0,t.p1)}if(arguments[0]instanceof i["a"]){const t=arguments[0];return l["a"].pointToSegment(t,this.p0,this.p1)}}equals(t){if(!(t instanceof d))return!1;const e=t;return this.p0.equals(e.p0)&&this.p1.equals(e.p1)}intersection(t){const e=new o["a"];return e.computeIntersection(this.p0,this.p1,t.p0,t.p1),e.hasIntersection()?e.getIntersection(0):null}project(){if(arguments[0]instanceof i["a"]){const t=arguments[0];if(t.equals(this.p0)||t.equals(this.p1))return new i["a"](t);const e=this.projectionFactor(t),n=new i["a"];return n.x=this.p0.x+e*(this.p1.x-this.p0.x),n.y=this.p0.y+e*(this.p1.y-this.p0.y),n}if(arguments[0]instanceof d){const t=arguments[0],e=this.projectionFactor(t.p0),n=this.projectionFactor(t.p1);if(e>=1&&n>=1)return null;if(e<=0&&n<=0)return null;let i=this.project(t.p0);e<0&&(i=this.p0),e>1&&(i=this.p1);let r=this.project(t.p1);return n<0&&(r=this.p0),n>1&&(r=this.p1),new d(i,r)}}normalize(){this.p1.compareTo(this.p0)<0&&this.reverse()}angle(){return Math.atan2(this.p1.y-this.p0.y,this.p1.x-this.p0.x)}getCoordinate(t){return 0===t?this.p0:this.p1}distancePerpendicular(t){return l["a"].pointToLinePerpendicular(t,this.p0,this.p1)}closestPoint(t){const e=this.projectionFactor(t);if(e>0&&e<1)return this.project(t);const n=this.p0.distance(t),i=this.p1.distance(t);return n>32);let n=r["a"].doubleToLongBits(this.p1.x);n^=31*r["a"].doubleToLongBits(this.p1.y);const i=Math.trunc(n)^Math.trunc(n>>32);return e^i}get interfaces_(){return[s["a"],a["a"]]}}},e660:function(t,e,n){"use strict";e["a"]={inject:{field:{from:"__field",default:null}},props:{noParentField:Boolean},watch:{noParentField:function(t){this.field&&this.field[t?"__registerInput":"__unregisterInput"](this)}},beforeMount:function(){!this.noParentField&&this.field&&this.field.__registerInput(this)},beforeDestroy:function(){!this.noParentField&&this.field&&this.field.__unregisterInput(this)}}},e683:function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},e6f3:function(t,e,n){var i=n("07e3"),r=n("36c3"),s=n("5b4e")(!1),o=n("5559")("IE_PROTO");t.exports=function(t,e){var n,a=r(t),c=0,l=[];for(n in a)n!=o&&i(a,n)&&l.push(n);while(e.length>c)i(a,n=e[c++])&&(~s(l,n)||l.push(n));return l}},e7df:function(t,e,n){"use strict";var i=n("8778"),r=n("869f"),s=n("1e8d"),o=n("01d4"),a=n("0af5"),c=function(t){function e(e,n,i,s,o,a){t.call(this,e,n,i,r["a"].IDLE),this.src_=s,this.image_=new Image,null!==o&&(this.image_.crossOrigin=o),this.imageListenerKeys_=null,this.state=r["a"].IDLE,this.imageLoadFunction_=a}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getImage=function(){return this.image_},e.prototype.handleImageError_=function(){this.state=r["a"].ERROR,this.unlistenImage_(),this.changed()},e.prototype.handleImageLoad_=function(){void 0===this.resolution&&(this.resolution=Object(a["A"])(this.extent)/this.image_.height),this.state=r["a"].LOADED,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state!=r["a"].IDLE&&this.state!=r["a"].ERROR||(this.state=r["a"].LOADING,this.changed(),this.imageListenerKeys_=[Object(s["b"])(this.image_,o["a"].ERROR,this.handleImageError_,this),Object(s["b"])(this.image_,o["a"].LOAD,this.handleImageLoad_,this)],this.imageLoadFunction_(this,this.src_))},e.prototype.setImage=function(t){this.image_=t},e.prototype.unlistenImage_=function(){this.imageListenerKeys_.forEach(s["e"]),this.imageListenerKeys_=null},e}(i["a"]),l=c,u=n("0999"),h=n("256f"),d=n("1300"),f=n("a504"),p=n("9f5e"),_=n("cef7"),m=n("3c81"),g=n("b739"),y=function(t){function e(e,n,i,s,o,c){var l=e.getExtent(),u=n.getExtent(),h=u?Object(a["B"])(i,u):i,d=Object(a["x"])(h),p=Object(m["a"])(e,n,d,s),_=f["b"],y=new g["a"](e,n,h,l,p*_),v=y.calculateSourceExtent(),b=c(v,p,o),M=r["a"].LOADED;b&&(M=r["a"].IDLE);var w=b?b.getPixelRatio():1;t.call(this,i,s,w,M),this.targetProj_=n,this.maxSourceExtent_=l,this.triangulation_=y,this.targetResolution_=s,this.targetExtent_=i,this.sourceImage_=b,this.sourcePixelRatio_=w,this.canvas_=null,this.sourceListenerKey_=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){this.state==r["a"].LOADING&&this.unlistenSource_(),t.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.canvas_},e.prototype.getProjection=function(){return this.targetProj_},e.prototype.reproject_=function(){var t=this.sourceImage_.getState();if(t==r["a"].LOADED){var e=Object(a["E"])(this.targetExtent_)/this.targetResolution_,n=Object(a["A"])(this.targetExtent_)/this.targetResolution_;this.canvas_=Object(m["b"])(e,n,this.sourcePixelRatio_,this.sourceImage_.getResolution(),this.maxSourceExtent_,this.targetResolution_,this.targetExtent_,this.triangulation_,[{extent:this.sourceImage_.getExtent(),image:this.sourceImage_.getImage()}],0)}this.state=t,this.changed()},e.prototype.load=function(){if(this.state==r["a"].IDLE){this.state=r["a"].LOADING,this.changed();var t=this.sourceImage_.getState();t==r["a"].LOADED||t==r["a"].ERROR?this.reproject_():(this.sourceListenerKey_=Object(s["a"])(this.sourceImage_,o["a"].CHANGE,function(t){var e=this.sourceImage_.getState();e!=r["a"].LOADED&&e!=r["a"].ERROR||(this.unlistenSource_(),this.reproject_())},this),this.sourceImage_.load())}},e.prototype.unlistenSource_=function(){Object(s["e"])(this.sourceListenerKey_),this.sourceListenerKey_=null},e}(i["a"]),v=y,b=n("ff80"),M={IMAGELOADSTART:"imageloadstart",IMAGELOADEND:"imageloadend",IMAGELOADERROR:"imageloaderror"},w=function(t){function e(e,n){t.call(this,e),this.image=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(_["a"]),x=function(t){function e(e){t.call(this,{attributions:e.attributions,projection:e.projection,state:e.state}),this.resolutions_=void 0!==e.resolutions?e.resolutions:null,this.reprojectedImage_=null,this.reprojectedRevision_=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.findNearestResolution=function(t){if(this.resolutions_){var e=Object(p["f"])(this.resolutions_,t,0);t=this.resolutions_[e]}return t},e.prototype.getImage=function(t,e,n,i){var r=this.getProjection();if(f["a"]&&r&&i&&!Object(h["f"])(r,i)){if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&Object(h["f"])(this.reprojectedImage_.getProjection(),i)&&this.reprojectedImage_.getResolution()==e&&Object(a["p"])(this.reprojectedImage_.getExtent(),t))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new v(r,i,t,e,n,function(t,e,n){return this.getImageInternal(t,e,n,r)}.bind(this)),this.reprojectedRevision_=this.getRevision(),this.reprojectedImage_}return r&&(i=r),this.getImageInternal(t,e,n,i)},e.prototype.getImageInternal=function(t,e,n,i){return Object(d["b"])()},e.prototype.handleImageChange=function(t){var e=t.target;switch(e.getState()){case r["a"].LOADING:this.loading=!0,this.dispatchEvent(new w(M.IMAGELOADSTART,e));break;case r["a"].LOADED:this.loading=!1,this.dispatchEvent(new w(M.IMAGELOADEND,e));break;case r["a"].ERROR:this.loading=!1,this.dispatchEvent(new w(M.IMAGELOADERROR,e));break;default:}},e}(b["a"]);function L(t,e){t.getImage().src=e}var E=x,T=function(t){function e(e){var n=void 0!==e.crossOrigin?e.crossOrigin:null,i=void 0!==e.imageLoadFunction?e.imageLoadFunction:L;t.call(this,{attributions:e.attributions,projection:Object(h["g"])(e.projection)}),this.url_=e.url,this.imageExtent_=e.imageExtent,this.image_=new l(this.imageExtent_,void 0,1,this.url_,n,i),this.imageSize_=e.imageSize?e.imageSize:null,Object(s["a"])(this.image_,o["a"].CHANGE,this.handleImageChange,this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getImageExtent=function(){return this.imageExtent_},e.prototype.getImageInternal=function(t,e,n,i){return Object(a["F"])(t,this.image_.getExtent())?this.image_:null},e.prototype.getUrl=function(){return this.url_},e.prototype.handleImageChange=function(e){if(this.image_.getState()==r["a"].LOADED){var n,i,s=this.image_.getExtent(),o=this.image_.getImage();this.imageSize_?(n=this.imageSize_[0],i=this.imageSize_[1]):(n=o.width,i=o.height);var c=Object(a["A"])(s)/i,l=Math.ceil(Object(a["E"])(s)/c);if(l!=n){var h=Object(u["a"])(l,i),d=h.canvas;h.drawImage(o,0,0,n,i,0,0,d.width,d.height),this.image_.setImage(d)}}t.prototype.handleImageChange.call(this,e)},e}(E);e["a"]=T},e7fb:function(t,e,n){},e81d:function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration var e={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"},i=t.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(t){return"ល្ងាច"===t},meridiem:function(t,e,n){return t<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(t){return t.replace(/[១២៣៤៥៦៧៨៩០]/g,function(t){return n[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},week:{dow:1,doy:4}});return i})},e834:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("5912"),r=n("062e"),s=n("c73a"),o=n("46ef");class a{constructor(){a.constructor_.apply(this,arguments)}static constructor_(){this._parent=null,this._atStart=null,this._max=null,this._index=null,this._subcollectionIterator=null;const t=arguments[0];this._parent=t,this._atStart=!0,this._index=0,this._max=t.getNumGeometries()}static isAtomic(t){return!(t instanceof s["a"])}next(){if(this._atStart)return this._atStart=!1,a.isAtomic(this._parent)&&this._index++,this._parent;if(null!==this._subcollectionIterator){if(this._subcollectionIterator.hasNext())return this._subcollectionIterator.next();this._subcollectionIterator=null}if(this._index>=this._max)throw new r["a"];const t=this._parent.getGeometryN(this._index++);return t instanceof s["a"]?(this._subcollectionIterator=new a(t),this._subcollectionIterator.next()):t}hasNext(){if(this._atStart)return!0;if(null!==this._subcollectionIterator){if(this._subcollectionIterator.hasNext())return!0;this._subcollectionIterator=null}return!(this._index>=this._max)}remove(){throw new o["a"](this.getClass().getName())}get interfaces_(){return[i["a"]]}}},e84f:function(t,e,n){"use strict";n("7f7f"),n("cadf"),n("456d"),n("ac6a"),n("7514"),n("6b54"),n("aef6"),n("f559"),n("6762"),n("2fdb"),n("c5f6"),n("7cdf"),n("f751");var i=n("a60d");function r(t,e){if(void 0===t||null===t)throw new TypeError("Cannot convert first argument to object");for(var n=Object(t),i=1;i=0?r=o:(r=i+o,r<0&&(r=0));while(rn.length)&&(e=n.length),e-=t.length;var i=n.indexOf(t,e);return-1!==i&&i===e}),i["c"]||("function"!==typeof Element.prototype.matches&&(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.webkitMatchesSelector||function(t){var e=this,n=(e.document||e.ownerDocument).querySelectorAll(t),i=0;while(n[i]&&n[i]!==e)++i;return Boolean(n[i])}),"function"!==typeof Element.prototype.closest&&(Element.prototype.closest=function(t){var e=this;while(e&&1===e.nodeType){if(e.matches(t))return e;e=e.parentNode}return null}),function(t){t.forEach(function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})})}([Element.prototype,CharacterData.prototype,DocumentType.prototype])),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null==this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),i=n.length>>>0,r=arguments[1],s=0;s6?{r:e>>24&255,g:e>>16&255,b:e>>8&255,a:Math.round((255&e)/2.55)}:{r:e>>16,g:e>>8&255,b:255&e}}var l=/^\s*rgb(a)?\s*\((\s*(\d+)\s*,\s*?){2}(\d+)\s*,?\s*([01]?\.?\d*?)?\s*\)\s*$/;function u(t){if("string"!==typeof t)throw new TypeError("Expected a string");var e=l.exec(t);if(e){var n={r:Math.max(255,parseInt(e[2],10)),g:Math.max(255,parseInt(e[3],10)),b:Math.max(255,parseInt(e[4],10))};return e[1]&&(n.a=Math.max(1,parseFloat(e[5]))),n}return c(t)}function h(t,e){if("string"!==typeof t)throw new TypeError("Expected a string as color");if("number"!==typeof e)throw new TypeError("Expected a numeric percent");var n=u(t),i=e<0?0:255,r=Math.abs(e)/100,s=n.r,o=n.g,a=n.b;return"#"+(16777216+65536*(Math.round((i-s)*r)+s)+256*(Math.round((i-o)*r)+o)+(Math.round((i-a)*r)+a)).toString(16).slice(1)}function d(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.body;if("string"!==typeof t)throw new TypeError("Expected a string as color");if("string"!==typeof e)throw new TypeError("Expected a string as value");if(!(n instanceof Element))throw new TypeError("Expected a DOM element");switch(n.style.setProperty("--q-color-".concat(t),e),t){case"negative":case"warning":n.style.setProperty("--q-color-".concat(t,"-l"),h(e,46));break;case"light":n.style.setProperty("--q-color-".concat(t,"-d"),h(e,-10))}}function f(t,e){var n=t.is,i=t.has,r=t.within,s=["mat",n.desktop?"desktop":"mobile",i.touch?"touch":"no-touch","platform-".concat(n.ios?"ios":"mat")];if(n.cordova&&(s.push("cordova"),n.ios&&(void 0===e.cordova||!1!==e.cordova.iosStatusBarPadding))){var o=window.devicePixelRatio||1,a=window.screen.width*o,c=window.screen.height*o;1125===a&&2436===c&&s.push("q-ios-statusbar-x"),1125===a&&2001===c||s.push("q-ios-statusbar-padding")}return r.iframe&&s.push("within-iframe"),n.electron&&s.push("electron"),s}function p(t,e){var n=f(t,e);t.is.ie&&11===t.is.versionNumber?n.forEach(function(t){return document.body.classList.add(t)}):document.body.classList.add.apply(document.body.classList,n),t.is.ios&&document.body.addEventListener("touchstart",function(){})}function _(t){for(var e in t)d(e,t[e])}var m={install:function(t,e,n){i["c"]?e.server.push(function(t,e){var i=f(t.platform,n),r=e.ssr.setBodyClasses;"function"===typeof r?r(i):e.ssr.Q_BODY_CLASSES=i.join(" ")}):(n.brand&&_(n.brand),p(t.platform,n))}},g={name:"material-icons",type:{positive:"check_circle",negative:"warning",info:"info",warning:"priority_high"},arrow:{up:"arrow_upward",right:"arrow_forward",down:"arrow_downward",left:"arrow_back"},chevron:{left:"chevron_left",right:"chevron_right"},pullToRefresh:{arrow:"arrow_downward",refresh:"refresh"},search:{icon:"search",clear:"cancel",clearInverted:"clear"},carousel:{left:"chevron_left",right:"chevron_right",quickNav:"lens",thumbnails:"view_carousel"},checkbox:{checked:{ios:"check_circle",mat:"check_box"},unchecked:{ios:"radio_button_unchecked",mat:"check_box_outline_blank"},indeterminate:{ios:"remove_circle_outline",mat:"indeterminate_check_box"}},chip:{close:"cancel"},chipsInput:{add:"send"},collapsible:{icon:"arrow_drop_down"},datetime:{arrowLeft:"chevron_left",arrowRight:"chevron_right"},editor:{bold:"format_bold",italic:"format_italic",strikethrough:"strikethrough_s",underline:"format_underlined",unorderedList:"format_list_bulleted",orderedList:"format_list_numbered",subscript:"vertical_align_bottom",superscript:"vertical_align_top",hyperlink:"link",toggleFullscreen:"fullscreen",quote:"format_quote",left:"format_align_left",center:"format_align_center",right:"format_align_right",justify:"format_align_justify",print:"print",outdent:"format_indent_decrease",indent:"format_indent_increase",removeFormat:"format_clear",formatting:"text_format",fontSize:"format_size",align:"format_align_left",hr:"remove",undo:"undo",redo:"redo",header:"format_size",code:"code",size:"format_size",font:"font_download"},fab:{icon:"add",activeIcon:"close"},input:{showPass:"visibility",hidePass:"visibility_off",showNumber:"keyboard",hideNumber:"keyboard_hide",clear:"cancel",clearInverted:"clear",dropdown:"arrow_drop_down"},pagination:{first:"first_page",prev:"keyboard_arrow_left",next:"keyboard_arrow_right",last:"last_page"},radio:{checked:{ios:"check",mat:"radio_button_checked"},unchecked:{ios:"",mat:"radio_button_unchecked"}},rating:{icon:"grade"},stepper:{done:"check",active:"edit",error:"warning"},tabs:{left:"chevron_left",right:"chevron_right"},table:{arrowUp:"arrow_upward",warning:"warning",prevPage:"chevron_left",nextPage:"chevron_right"},tree:{icon:"play_arrow"},uploader:{done:"done",clear:"cancel",clearInverted:"clear",add:"add",upload:"cloud_upload",expand:"keyboard_arrow_down",file:"insert_drive_file"}},y={__installed:!1,install:function(t,e,n){var r=this;this.set=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g;n.set=r.set,i["c"]||t.icon?t.icon=n:e.util.defineReactive(t,"icon",n),r.name=n.name,r.def=n},this.set(n)}},v={server:[],takeover:[]},b={version:s["a"],theme:"mat"},M=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.__installed){this.__installed=!0;var n=e.config||{};if(i["a"].install(b,v,t),m.install(b,v,n),o["a"].install(b,n),a["a"].install(b,v,t,e.i18n),y.install(b,t,e.iconSet),i["c"]?t.mixin({beforeCreate:function(){this.$q=this.$root.$options.$q}}):t.prototype.$q=b,e.components&&Object.keys(e.components).forEach(function(n){var i=e.components[n];void 0===i.name||void 0===i.render&&void 0===i.mixins||t.component(i.name,i)}),e.directives&&Object.keys(e.directives).forEach(function(n){var i=e.directives[n];void 0!==i.name&&void 0!==i.unbind&&t.directive(i.name,i)}),e.plugins){var r={$q:b,queues:v,Vue:t,cfg:n};Object.keys(e.plugins).forEach(function(t){var n=e.plugins[t];"function"===typeof n.install&&n!==i["a"]&&n.install(r)})}}},w={mounted:function(){var t=this;v.takeover.forEach(function(e){e(t.$q)})}},x=function(t){if(t.ssr){var e=Object.assign({},b);Object.assign(t.ssr,{Q_HEAD_TAGS:"",Q_BODY_ATTRS:"",Q_BODY_TAGS:""}),v.server.forEach(function(n){n(e,t)}),t.app.$q=e}else{var n=t.app.mixins||[];n.includes(w)||(t.app.mixins=n.concat(w))}},L="mat";e["a"]={version:s["a"],install:M,i18n:a["a"],icons:y,theme:L,ssrUpdate:x}},e853:function(t,e,n){var i=n("d3f4"),r=n("1169"),s=n("2b4c")("species");t.exports=function(t){var e;return r(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!r(e.prototype)||(e=void 0),i(e)&&(e=e[s],null===e&&(e=void 0))),void 0===e?Array:e}},e98d:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("5c38");function r(t){return Array.isArray(t)?Object(i["c"])(t):t}},e998:function(t,e,n){"use strict";var i=n("3fb5"),r=n("ada0").EventEmitter,s=function(){};function o(t,e){s(t),r.call(this),this.sendBuffer=[],this.sender=e,this.url=t}i(o,r),o.prototype.send=function(t){s("send",t),this.sendBuffer.push(t),this.sendStop||this.sendSchedule()},o.prototype.sendScheduleWait=function(){s("sendScheduleWait");var t,e=this;this.sendStop=function(){s("sendStop"),e.sendStop=null,clearTimeout(t)},t=setTimeout(function(){s("timeout"),e.sendStop=null,e.sendSchedule()},25)},o.prototype.sendSchedule=function(){s("sendSchedule",this.sendBuffer.length);var t=this;if(this.sendBuffer.length>0){var e="["+this.sendBuffer.join(",")+"]";this.sendStop=this.sender(this.url,e,function(e){t.sendStop=null,e?(s("error",e),t.emit("close",e.code||1006,"Sending error: "+e),t.close()):t.sendScheduleWait()}),this.sendBuffer=[]}},o.prototype._cleanup=function(){s("_cleanup"),this.removeAllListeners()},o.prototype.close=function(){s("close"),this._cleanup(),this.sendStop&&(this.sendStop(),this.sendStop=null)},t.exports=o},ea22:function(t,e,n){"use strict";n.d(e,"d",function(){return c}),n.d(e,"c",function(){return l}),n.d(e,"a",function(){return u}),n.d(e,"b",function(){return h});n("6762"),n("2fdb"),n("28a5");var i=n("b18c"),r=n("1528");function s(t,e){var n=t.getBoundingClientRect(),i=n.top,r=n.left,s=n.right,o=n.bottom,a={top:i,left:r,width:t.offsetWidth,height:t.offsetHeight};return e&&(a.top-=e[1],a.left-=e[0],o&&(o+=e[1]),s&&(s+=e[0]),a.width+=e[0],a.height+=e[1]),a.right=s||a.left+a.width,a.bottom=o||a.top+a.height,a.middle=a.left+(a.right-a.left)/2,a.center=a.top+(a.bottom-a.top)/2,a}function o(t){return{top:0,center:t.offsetHeight/2,bottom:t.offsetHeight,left:0,middle:t.offsetWidth/2,right:t.offsetWidth}}function a(t,e,n,i,s,o){var a=Object(r["c"])(),c=window,l=c.innerHeight,u=c.innerWidth;if(l-=a,u-=a,s.top<0||s.top+e.bottom>l)if("center"===n.vertical)s.top=t[n.vertical]>l/2?l-e.bottom:0,s.maxHeight=Math.min(e.bottom,l);else if(t[n.vertical]>l/2){var h=Math.min(l,"center"===i.vertical?t.center:i.vertical===n.vertical?t.bottom:t.top);s.maxHeight=Math.min(e.bottom,h),s.top=Math.max(0,h-s.maxHeight)}else s.top="center"===i.vertical?t.center:i.vertical===n.vertical?t.top:t.bottom,s.maxHeight=Math.min(e.bottom,l-s.top);if(s.left<0||s.left+e.right>u)if(s.maxWidth=Math.min(e.right,u),"middle"===n.horizontal)s.left=t[n.horizontal]>u/2?u-e.right:0;else if(o)s.left=s.left<0?0:u-e.right;else if(t[n.horizontal]>u/2){var d=Math.min(u,"middle"===i.horizontal?t.center:i.horizontal===n.horizontal?t.right:t.left);s.maxWidth=Math.min(e.right,d),s.left=Math.max(0,d-s.maxWidth)}else s.left="middle"===i.horizontal?t.center:i.horizontal===n.horizontal?t.left:t.right,s.maxWidth=Math.min(e.right,u-s.left);return s}function c(t){var e,n=t.el,r=t.animate,c=t.anchorEl,l=t.anchorOrigin,u=t.selfOrigin,h=t.maxHeight,d=t.event,f=t.anchorClick,p=t.touchPosition,_=t.offset,m=t.touchOffset,g=t.cover;if(n.style.maxHeight=h||"65vh",n.style.maxWidth="100vw",!d||f&&!p)if(m){var y=c.getBoundingClientRect(),v=y.top,b=y.left,M=v+m.top,w=b+m.left;e={top:M,left:w,width:1,height:1,right:w+1,center:M,middle:w,bottom:M+1}}else e=s(c,_);else{var x=Object(i["f"])(d),L=x.top,E=x.left;e={top:L,left:E,width:1,height:1,right:E+1,center:L,middle:E,bottom:L+1}}var T=o(n),S={top:e[l.vertical]-T[u.vertical],left:e[l.horizontal]-T[u.horizontal]};if(S=a(e,T,u,l,S,g),n.style.top=Math.max(0,S.top)+"px",n.style.left=Math.max(0,S.left)+"px",S.maxHeight&&(n.style.maxHeight="".concat(S.maxHeight,"px")),S.maxWidth&&(n.style.maxWidth="".concat(S.maxWidth,"px")),r){var O=S.top0)&&(r=e,i=s)}return i}}static extend(t,e,n){const i=t.create(n,e.getDimension()),r=e.size();if(a.copy(e,0,i,0,r),r>0)for(let s=r;s0)&&(e=i)}return e}static copyCoord(t,e,n,i){const r=Math.min(t.getDimension(),n.getDimension());for(let s=0;sn)r[n]=e[n++];return r},At=function(t,e,n){q(t,e,{get:function(){return this._d[n]}})},Nt=function(t){var e,n,i,r,s,o,a=w(t),c=arguments.length,u=c>1?arguments[1]:void 0,h=void 0!==u,d=S(a);if(void 0!=d&&!x(d)){for(o=d.call(a),i=[],e=0;!(s=o.next()).done;e++)i.push(s.value);a=i}for(h&&c>2&&(u=l(u,arguments[2],2)),e=0,n=_(a.length),r=It(this,n);n>e;e++)r[e]=h?u(a[e],e):a[e];return r},Yt=function(){var t=0,e=arguments.length,n=It(this,e);while(e>t)n[t]=arguments[t++];return n},Pt=!!U&&s(function(){gt.call(new U(1))}),jt=function(){return gt.apply(Pt?_t.call(Ct(this)):Ct(this),arguments)},Ft={copyWithin:function(t,e){return j.call(Ct(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return nt(Ct(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return P.apply(Ct(this),arguments)},filter:function(t){return Dt(this,tt(Ct(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return it(Ct(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return rt(Ct(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Q(Ct(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return ot(Ct(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return st(Ct(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ft.apply(Ct(this),arguments)},lastIndexOf:function(t){return ut.apply(Ct(this),arguments)},map:function(t){return Tt(Ct(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ht.apply(Ct(this),arguments)},reduceRight:function(t){return dt.apply(Ct(this),arguments)},reverse:function(){var t,e=this,n=Ct(e).length,i=Math.floor(n/2),r=0;while(r1?arguments[1]:void 0)},sort:function(t){return pt.call(Ct(this),t)},subarray:function(t,e){var n=Ct(this),i=n.length,r=g(t,i);return new(D(n,n[Mt]))(n.buffer,n.byteOffset+r*n.BYTES_PER_ELEMENT,_((void 0===e?i:g(e,i))-r))}},Ht=function(t,e){return Dt(this,_t.call(Ct(this),t,e))},qt=function(t){Ct(this);var e=kt(arguments[1],1),n=this.length,i=w(t),r=_(i.length),s=0;if(r+e>n)throw z(Et);while(s255?255:255&i),r.v[f](n*e+r.o,i,St)},k=function(t,e){q(t,e,{get:function(){return S(this,e)},set:function(t){return O(this,e,t)},enumerable:!0})};v?(p=n(function(t,n,i,r){u(t,p,l,"_d");var s,o,a,c,h=0,f=0;if(M(n)){if(!(n instanceof Z||(c=b(n))==W||c==$))return xt in n?Rt(p,n):Nt.call(p,n);s=n,f=kt(i,e);var g=n.byteLength;if(void 0===r){if(g%e)throw z(Et);if(o=g-f,o<0)throw z(Et)}else if(o=_(r)*e,o+f>g)throw z(Et);a=o/e}else a=m(n),o=a*e,s=new Z(o);d(t,"_d",{b:s,o:f,l:o,e:a,v:new J(s)});while(h-1:this.value===this.trueValue},isFalse:function(){return this.modelIsArray?-1===this.index:this.value===this.falseValue},index:function(){if(this.modelIsArray)return this.value.indexOf(this.val)},modelIsArray:function(){return Array.isArray(this.value)}},methods:{toggle:function(t){var e,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.disable||this.readonly||(t&&Object(i["g"])(t),n&&this.$el.blur(),this.modelIsArray?this.isTrue?(e=this.value.slice(),e.splice(this.index,1)):e=this.value.concat(this.val):e=this.isTrue?this.toggleIndeterminate?this.indeterminateValue:this.falseValue:this.isFalse?this.trueValue:this.falseValue,this.__update(e))}}}},ed0b:function(t,e,n){"use strict";var i=n("7726"),r=n("9e1e"),s=n("2d00"),o=n("0f88"),a=n("32e9"),c=n("dcbc"),l=n("79e5"),u=n("f605"),h=n("4588"),d=n("9def"),f=n("09fa"),p=n("9093").f,_=n("86cc").f,m=n("36bd"),g=n("7f20"),y="ArrayBuffer",v="DataView",b="prototype",M="Wrong length!",w="Wrong index!",x=i[y],L=i[v],E=i.Math,T=i.RangeError,S=i.Infinity,O=x,k=E.abs,C=E.pow,I=E.floor,D=E.log,R=E.LN2,A="buffer",N="byteLength",Y="byteOffset",P=r?"_b":A,j=r?"_l":N,F=r?"_o":Y;function H(t,e,n){var i,r,s,o=new Array(n),a=8*n-e-1,c=(1<>1,u=23===e?C(2,-24)-C(2,-77):0,h=0,d=t<0||0===t&&1/t<0?1:0;for(t=k(t),t!=t||t===S?(r=t!=t?1:0,i=c):(i=I(D(t)/R),t*(s=C(2,-i))<1&&(i--,s*=2),t+=i+l>=1?u/s:u*C(2,1-l),t*s>=2&&(i++,s/=2),i+l>=c?(r=0,i=c):i+l>=1?(r=(t*s-1)*C(2,e),i+=l):(r=t*C(2,l-1)*C(2,e),i=0));e>=8;o[h++]=255&r,r/=256,e-=8);for(i=i<0;o[h++]=255&i,i/=256,a-=8);return o[--h]|=128*d,o}function q(t,e,n){var i,r=8*n-e-1,s=(1<>1,a=r-7,c=n-1,l=t[c--],u=127&l;for(l>>=7;a>0;u=256*u+t[c],c--,a-=8);for(i=u&(1<<-a)-1,u>>=-a,a+=e;a>0;i=256*i+t[c],c--,a-=8);if(0===u)u=1-o;else{if(u===s)return i?NaN:l?-S:S;i+=C(2,e),u-=o}return(l?-1:1)*i*C(2,u-e)}function G(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function z(t){return[255&t]}function B(t){return[255&t,t>>8&255]}function U(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function W(t){return H(t,52,8)}function $(t){return H(t,23,4)}function V(t,e,n){_(t[b],e,{get:function(){return this[n]}})}function X(t,e,n,i){var r=+n,s=f(r);if(s+e>t[j])throw T(w);var o=t[P]._b,a=s+t[F],c=o.slice(a,a+e);return i?c:c.reverse()}function K(t,e,n,i,r,s){var o=+n,a=f(o);if(a+e>t[j])throw T(w);for(var c=t[P]._b,l=a+t[F],u=i(+r),h=0;htt;)(Z=Q[tt++])in x||a(x,Z,O[Z]);s||(J.constructor=x)}var et=new L(new x(2)),nt=L[b].setInt8;et.setInt8(0,2147483648),et.setInt8(1,2147483649),!et.getInt8(0)&&et.getInt8(1)||c(L[b],{setInt8:function(t,e){nt.call(this,t,e<<24>>24)},setUint8:function(t,e){nt.call(this,t,e<<24>>24)}},!0)}else x=function(t){u(this,x,y);var e=f(t);this._b=m.call(new Array(e),0),this[j]=e},L=function(t,e,n){u(this,L,v),u(t,x,v);var i=t[j],r=h(e);if(r<0||r>i)throw T("Wrong offset!");if(n=void 0===n?i-r:d(n),r+n>i)throw T(M);this[P]=t,this[F]=r,this[j]=n},r&&(V(x,N,"_l"),V(L,A,"_b"),V(L,N,"_l"),V(L,Y,"_o")),c(L[b],{getInt8:function(t){return X(this,1,t)[0]<<24>>24},getUint8:function(t){return X(this,1,t)[0]},getInt16:function(t){var e=X(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=X(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return G(X(this,4,t,arguments[1]))},getUint32:function(t){return G(X(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return q(X(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return q(X(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){K(this,1,t,z,e)},setUint8:function(t,e){K(this,1,t,z,e)},setInt16:function(t,e){K(this,2,t,B,e,arguments[2])},setUint16:function(t,e){K(this,2,t,B,e,arguments[2])},setInt32:function(t,e){K(this,4,t,U,e,arguments[2])},setUint32:function(t,e){K(this,4,t,U,e,arguments[2])},setFloat32:function(t,e){K(this,4,t,$,e,arguments[2])},setFloat64:function(t,e){K(this,8,t,W,e,arguments[2])}});g(x,y),g(L,v),a(L[b],o.VIEW,!0),e[y]=x,e[v]=L},ed33:function(t,e,n){n("014b"),t.exports=n("584a").Object.getOwnPropertySymbols},ed5b:function(t,e,n){},eda5:function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; +var e=t.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10,n=1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n},week:{dow:0,doy:6}});return e})},ec30:function(t,e,n){"use strict";if(n("9e1e")){var i=n("2d00"),r=n("7726"),s=n("79e5"),o=n("5ca1"),a=n("0f88"),c=n("ed0b"),l=n("9b43"),u=n("f605"),h=n("4630"),d=n("32e9"),f=n("dcbc"),p=n("4588"),_=n("9def"),m=n("09fa"),g=n("77f1"),y=n("6a99"),v=n("69a8"),b=n("23c6"),M=n("d3f4"),w=n("4bf8"),x=n("33a4"),L=n("2aeb"),E=n("38fd"),T=n("9093").f,S=n("27ee"),O=n("ca5a"),k=n("2b4c"),C=n("0a49"),I=n("c366"),D=n("ebd6"),R=n("cadf"),A=n("84f2"),N=n("5cc5"),Y=n("7a56"),P=n("36bd"),j=n("ba92"),F=n("86cc"),H=n("11e9"),G=F.f,q=H.f,z=r.RangeError,B=r.TypeError,U=r.Uint8Array,W="ArrayBuffer",$="Shared"+W,V="BYTES_PER_ELEMENT",X="prototype",K=Array[X],J=c.ArrayBuffer,Z=c.DataView,Q=C(0),tt=C(2),et=C(3),nt=C(4),it=C(5),rt=C(6),st=I(!0),ot=I(!1),at=R.values,ct=R.keys,lt=R.entries,ut=K.lastIndexOf,ht=K.reduce,dt=K.reduceRight,ft=K.join,pt=K.sort,_t=K.slice,mt=K.toString,gt=K.toLocaleString,yt=k("iterator"),vt=k("toStringTag"),bt=O("typed_constructor"),Mt=O("def_constructor"),wt=a.CONSTR,xt=a.TYPED,Lt=a.VIEW,Et="Wrong length!",Tt=C(1,function(t,e){return It(D(t,t[Mt]),e)}),St=s(function(){return 1===new U(new Uint16Array([1]).buffer)[0]}),Ot=!!U&&!!U[X].set&&s(function(){new U(1).set({})}),kt=function(t,e){var n=p(t);if(n<0||n%e)throw z("Wrong offset!");return n},Ct=function(t){if(M(t)&&xt in t)return t;throw B(t+" is not a typed array!")},It=function(t,e){if(!(M(t)&&bt in t))throw B("It is not a typed array constructor!");return new t(e)},Dt=function(t,e){return Rt(D(t,t[Mt]),e)},Rt=function(t,e){var n=0,i=e.length,r=It(t,i);while(i>n)r[n]=e[n++];return r},At=function(t,e,n){G(t,e,{get:function(){return this._d[n]}})},Nt=function(t){var e,n,i,r,s,o,a=w(t),c=arguments.length,u=c>1?arguments[1]:void 0,h=void 0!==u,d=S(a);if(void 0!=d&&!x(d)){for(o=d.call(a),i=[],e=0;!(s=o.next()).done;e++)i.push(s.value);a=i}for(h&&c>2&&(u=l(u,arguments[2],2)),e=0,n=_(a.length),r=It(this,n);n>e;e++)r[e]=h?u(a[e],e):a[e];return r},Yt=function(){var t=0,e=arguments.length,n=It(this,e);while(e>t)n[t]=arguments[t++];return n},Pt=!!U&&s(function(){gt.call(new U(1))}),jt=function(){return gt.apply(Pt?_t.call(Ct(this)):Ct(this),arguments)},Ft={copyWithin:function(t,e){return j.call(Ct(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return nt(Ct(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return P.apply(Ct(this),arguments)},filter:function(t){return Dt(this,tt(Ct(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return it(Ct(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return rt(Ct(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Q(Ct(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return ot(Ct(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return st(Ct(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ft.apply(Ct(this),arguments)},lastIndexOf:function(t){return ut.apply(Ct(this),arguments)},map:function(t){return Tt(Ct(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ht.apply(Ct(this),arguments)},reduceRight:function(t){return dt.apply(Ct(this),arguments)},reverse:function(){var t,e=this,n=Ct(e).length,i=Math.floor(n/2),r=0;while(r1?arguments[1]:void 0)},sort:function(t){return pt.call(Ct(this),t)},subarray:function(t,e){var n=Ct(this),i=n.length,r=g(t,i);return new(D(n,n[Mt]))(n.buffer,n.byteOffset+r*n.BYTES_PER_ELEMENT,_((void 0===e?i:g(e,i))-r))}},Ht=function(t,e){return Dt(this,_t.call(Ct(this),t,e))},Gt=function(t){Ct(this);var e=kt(arguments[1],1),n=this.length,i=w(t),r=_(i.length),s=0;if(r+e>n)throw z(Et);while(s255?255:255&i),r.v[f](n*e+r.o,i,St)},k=function(t,e){G(t,e,{get:function(){return S(this,e)},set:function(t){return O(this,e,t)},enumerable:!0})};v?(p=n(function(t,n,i,r){u(t,p,l,"_d");var s,o,a,c,h=0,f=0;if(M(n)){if(!(n instanceof J||(c=b(n))==W||c==$))return xt in n?Rt(p,n):Nt.call(p,n);s=n,f=kt(i,e);var g=n.byteLength;if(void 0===r){if(g%e)throw z(Et);if(o=g-f,o<0)throw z(Et)}else if(o=_(r)*e,o+f>g)throw z(Et);a=o/e}else a=m(n),o=a*e,s=new J(o);d(t,"_d",{b:s,o:f,l:o,e:a,v:new Z(s)});while(h-1:this.value===this.trueValue},isFalse:function(){return this.modelIsArray?-1===this.index:this.value===this.falseValue},index:function(){if(this.modelIsArray)return this.value.indexOf(this.val)},modelIsArray:function(){return Array.isArray(this.value)}},methods:{toggle:function(t){var e,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.disable||this.readonly||(t&&Object(i["g"])(t),n&&this.$el.blur(),this.modelIsArray?this.isTrue?(e=this.value.slice(),e.splice(this.index,1)):e=this.value.concat(this.val):e=this.isTrue?this.toggleIndeterminate?this.indeterminateValue:this.falseValue:this.isFalse?this.trueValue:this.falseValue,this.__update(e))}}}},ed0b:function(t,e,n){"use strict";var i=n("7726"),r=n("9e1e"),s=n("2d00"),o=n("0f88"),a=n("32e9"),c=n("dcbc"),l=n("79e5"),u=n("f605"),h=n("4588"),d=n("9def"),f=n("09fa"),p=n("9093").f,_=n("86cc").f,m=n("36bd"),g=n("7f20"),y="ArrayBuffer",v="DataView",b="prototype",M="Wrong length!",w="Wrong index!",x=i[y],L=i[v],E=i.Math,T=i.RangeError,S=i.Infinity,O=x,k=E.abs,C=E.pow,I=E.floor,D=E.log,R=E.LN2,A="buffer",N="byteLength",Y="byteOffset",P=r?"_b":A,j=r?"_l":N,F=r?"_o":Y;function H(t,e,n){var i,r,s,o=new Array(n),a=8*n-e-1,c=(1<>1,u=23===e?C(2,-24)-C(2,-77):0,h=0,d=t<0||0===t&&1/t<0?1:0;for(t=k(t),t!=t||t===S?(r=t!=t?1:0,i=c):(i=I(D(t)/R),t*(s=C(2,-i))<1&&(i--,s*=2),t+=i+l>=1?u/s:u*C(2,1-l),t*s>=2&&(i++,s/=2),i+l>=c?(r=0,i=c):i+l>=1?(r=(t*s-1)*C(2,e),i+=l):(r=t*C(2,l-1)*C(2,e),i=0));e>=8;o[h++]=255&r,r/=256,e-=8);for(i=i<0;o[h++]=255&i,i/=256,a-=8);return o[--h]|=128*d,o}function G(t,e,n){var i,r=8*n-e-1,s=(1<>1,a=r-7,c=n-1,l=t[c--],u=127&l;for(l>>=7;a>0;u=256*u+t[c],c--,a-=8);for(i=u&(1<<-a)-1,u>>=-a,a+=e;a>0;i=256*i+t[c],c--,a-=8);if(0===u)u=1-o;else{if(u===s)return i?NaN:l?-S:S;i+=C(2,e),u-=o}return(l?-1:1)*i*C(2,u-e)}function q(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function z(t){return[255&t]}function B(t){return[255&t,t>>8&255]}function U(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function W(t){return H(t,52,8)}function $(t){return H(t,23,4)}function V(t,e,n){_(t[b],e,{get:function(){return this[n]}})}function X(t,e,n,i){var r=+n,s=f(r);if(s+e>t[j])throw T(w);var o=t[P]._b,a=s+t[F],c=o.slice(a,a+e);return i?c:c.reverse()}function K(t,e,n,i,r,s){var o=+n,a=f(o);if(a+e>t[j])throw T(w);for(var c=t[P]._b,l=a+t[F],u=i(+r),h=0;htt;)(J=Q[tt++])in x||a(x,J,O[J]);s||(Z.constructor=x)}var et=new L(new x(2)),nt=L[b].setInt8;et.setInt8(0,2147483648),et.setInt8(1,2147483649),!et.getInt8(0)&&et.getInt8(1)||c(L[b],{setInt8:function(t,e){nt.call(this,t,e<<24>>24)},setUint8:function(t,e){nt.call(this,t,e<<24>>24)}},!0)}else x=function(t){u(this,x,y);var e=f(t);this._b=m.call(new Array(e),0),this[j]=e},L=function(t,e,n){u(this,L,v),u(t,x,v);var i=t[j],r=h(e);if(r<0||r>i)throw T("Wrong offset!");if(n=void 0===n?i-r:d(n),r+n>i)throw T(M);this[P]=t,this[F]=r,this[j]=n},r&&(V(x,N,"_l"),V(L,A,"_b"),V(L,N,"_l"),V(L,Y,"_o")),c(L[b],{getInt8:function(t){return X(this,1,t)[0]<<24>>24},getUint8:function(t){return X(this,1,t)[0]},getInt16:function(t){var e=X(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=X(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return q(X(this,4,t,arguments[1]))},getUint32:function(t){return q(X(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return G(X(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return G(X(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){K(this,1,t,z,e)},setUint8:function(t,e){K(this,1,t,z,e)},setInt16:function(t,e){K(this,2,t,B,e,arguments[2])},setUint16:function(t,e){K(this,2,t,B,e,arguments[2])},setInt32:function(t,e){K(this,4,t,U,e,arguments[2])},setUint32:function(t,e){K(this,4,t,U,e,arguments[2])},setFloat32:function(t,e){K(this,4,t,$,e,arguments[2])},setFloat64:function(t,e){K(this,8,t,W,e,arguments[2])}});g(x,y),g(L,v),a(L[b],o.VIEW,!0),e[y]=x,e[v]=L},ed33:function(t,e,n){n("014b"),t.exports=n("584a").Object.getOwnPropertySymbols},ed5b:function(t,e,n){},eda5:function(t,e,n){(function(t,e){e(n("c1df"))})(0,function(t){"use strict"; //! moment.js locale configuration var e=t.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(t){return t+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(t){return"ප.ව."===t||"පස් වරු"===t},meridiem:function(t,e,n){return t>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}});return e})},edde:function(t,e,n){"use strict";n.d(e,"a",function(){return i});class i{filter(t,e){}isGeometryChanged(){}isDone(){}}},ee1d:function(t,e,n){var i=n("5ca1");i(i.S,"Number",{isNaN:function(t){return t!=t}})},ef68:function(t,e,n){},ef8f:function(t,e,n){},f0e4:function(t,e,n){var i=n("895c");function r(t,e){if(null==t)return{};var n,r,s={},o=i(t);for(r=0;r=0||(s[n]=t[n]);return s}t.exports=r},f1f2:function(t,e,n){t.exports=n("696e")},f1f8:function(t,e,n){"use strict";(function(e){var i=n("c282"),r=n("930c"),s=n("26a0"),o=function(){};t.exports={WPrefix:"_jp",currentWindowId:null,polluteGlobalNamespace:function(){t.exports.WPrefix in e||(e[t.exports.WPrefix]={})},postMessage:function(n,i){e.parent!==e?e.parent.postMessage(r.stringify({windowId:t.exports.currentWindowId,type:n,data:i||""}),"*"):o("Cannot postMessage, no parent window.",n,i)},createIframe:function(t,n){var r,s,a=e.document.createElement("iframe"),c=function(){o("unattach"),clearTimeout(r);try{a.onload=null}catch(t){}a.onerror=null},l=function(){o("cleanup"),a&&(c(),setTimeout(function(){a&&a.parentNode.removeChild(a),a=null},0),i.unloadDel(s))},u=function(t){o("onerror",t),a&&(l(),n(t))},h=function(t,e){o("post",t,e),setTimeout(function(){try{a&&a.contentWindow&&a.contentWindow.postMessage(t,e)}catch(t){}},0)};return a.src=t,a.style.display="none",a.style.position="absolute",a.onerror=function(){u("onerror")},a.onload=function(){o("onload"),clearTimeout(r),r=setTimeout(function(){u("onload timeout")},2e3)},e.document.body.appendChild(a),r=setTimeout(function(){u("timeout")},15e3),s=i.unloadAdd(l),{post:h,cleanup:l,loaded:c}},createHtmlfile:function(n,r){var s,a,c,l=["Active"].concat("Object").join("X"),u=new e[l]("htmlfile"),h=function(){clearTimeout(s),c.onerror=null},d=function(){u&&(h(),i.unloadDel(a),c.parentNode.removeChild(c),c=u=null,CollectGarbage())},f=function(t){o("onerror",t),u&&(d(),r(t))},p=function(t,e){try{setTimeout(function(){c&&c.contentWindow&&c.contentWindow.postMessage(t,e)},0)}catch(t){}};u.open(),u.write('
\ No newline at end of file + document.write("
\ No newline at end of file diff --git a/products/cloud/src/main/resources/static/js/app.e0d7c37c.js b/products/cloud/src/main/resources/static/js/app.880fc447.js similarity index 52% rename from products/cloud/src/main/resources/static/js/app.e0d7c37c.js rename to products/cloud/src/main/resources/static/js/app.880fc447.js index bdfdae1c9..8620b649e 100644 --- a/products/cloud/src/main/resources/static/js/app.e0d7c37c.js +++ b/products/cloud/src/main/resources/static/js/app.880fc447.js @@ -1 +1 @@ -(function(e){function t(t){for(var s,r,i=t[0],l=t[1],c=t[2],d=0,p=[];de.token,selectedApp:e=>e.selectedApp},S={STORE_TOKEN:(e,t)=>{e.token=t},SET_SELECTED_APP:(e,t)=>{e.selectedApp=t}},I=(o("14d9"),o("bc78")),T=o("758b"),P=o("a925"),$={commons:{appName:"k.Engine"},menu:{home:"Home"},labels:{warning:"Warning",username:"Username",password:"Password",newPassword:"New password",newPasswordConfirmation:"New password confirmation",btnLogin:"Login",textLogin:"Already signed up?",btnRegister:"Register",linkLogin:"Login",textRegister:"New to k.LAB?",linkRegister:"Sign up",btnAccept:"Accept",btnCancel:"Cancel",btnGoogle:"Sign in with Google",btnSetPassword:"Set password",forgotPassword:"Forgot password?",btnResetPassword:"Reset password",rememberMe:"Remember me",selectAppTitle:"Available apps",kexplorerOption:"k.Explorer",logout:"Logout",noLayoutLabel:"No title",noLayoutDescription:"No description"},messages:{genericError:"There was an error, please try later",networkError:"Network error",fieldRequired:"Field required",passwordValidationError:"Password must be between 8 and 32 characters",passwordUnableToDo:"Unable to change user password",passwordChanged:"Password changed",passwordChangedError:"There was an error, password is not changed",passwordMailError:"There wan an error sending confirmation email, password is changed",passwordDoesNotMatch:"Password does not match the password verification field",changingPassword:"Changing password",userPswInvalid:"Bad Username or password",userAlreadyInUse:"Username or Email already in use!",invalidRedirect:"Redirect error, please contact support",failed:"Action failed",success:"Action was successful",loading:"Loading",acceptEULA:"I have read and accept the END USER LICENSE AGREEMENT (EULA) for individual non-profit use",mustAcceptEULA:"You must read and accept the EULA to download certificate",changePasswordTitle:"Change password",loggingOut:"Logging out",errorLoggingOut:"Error logging out, contact support"},contents:{registerContent:'\n

ARIES is an open system where all participants contribute and share knowledge for the common good. For this reason we ask that all accounts are traceable to real people and institutions. Please ensure that:

\n
    \n
  • Your username follows the firstname.lastname pattern, with your real first and last name. All the accounts created from this page are individual. If you need an institutional account (for example to install a public engine) please contact us as this use, while still free for non-profit institutions, is covered by a separate EULA.
  • \n
  • Your email address is traceable to an institution where you work or study and whose non-profit status is verifiable.
  • \n
\n

We actively monitor the registration database and we regularly delete or disable accounts that do not match the above conditions. In addition, attempts to make for-profit use of ARIES products with a non-profit licensing terms will result in permanent exclusion from the registration system and potential legal prosecution according to the\n EULA.

\n

By clicking the registration button you agree that the personal data you provide will be processed by ASOCIACIÓN BC3 BASQUE CENTRE FOR CLIMATE CHANGE-KLIMA ALDAKETA IKERGAI with the purpose of\n managing your registration request and your access to the tool. You may exercise your rights on data protection at ARCrights@BC3research.org.\n
Additional information in this respect is available in the EULA

\n ',forgetPasswordContent:'\n

Insert your email account information.

Please Contact Us if you require any assistance.

\n ',homeTitle:"Welcome",homeContent:"",kxplorerDescription:"The general k.LAB interface to freely explore the observation space by querying the knowledge base. To see example queries targeted to the user's profile, move to a location of interest and press the space bar."}},M={"en-us":$};s["a"].use(P["a"]);const x=new P["a"]({locale:"en-us",fallbackLocale:"en-us",messages:M});var D=({app:e})=>{e.i18n=x},z=o("8c4f"),U=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"au-layout",view:"hHh lpR fFf"}},[t("div",{staticClass:"au-container"},[t("transition",{attrs:{appear:"","appear-class":"custom-appear-class"}},[t("div",{staticClass:"au-fixed-center text-center au-container"},[t("div",{staticClass:"au-logo-container"},[t("klab-spinner",{staticClass:"au-logo",attrs:{"store-controlled":!0,ball:12,wrapperId:"au-layout",ballColor:e.COLORS.PRIMARY}}),t("klab-brand",{attrs:{customClasses:["au-app-name"]}})],1),t("div",{staticClass:"au-content"},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)])])],1)])},G=[],B=o("2573"),q=function(){var e=this,t=e._self._c;return t("div",{staticClass:"app-name",class:e.customClasses,domProps:{innerHTML:e._s(e.htmlAppName)}})},F=[],K={appName:"k.LAB Engine",appDescription:"k.LAB Engine",appColor:"#da1f26"},V={props:{customClasses:Array,default:()=>[]},data(){return{appName:K.appName,appColor:K.appColor}},computed:{htmlAppName(){return this.appName.replace(".",`.`)}}},W=V,H=(o("60e3"),Object(j["a"])(W,q,F,!1,null,null,null)),Q=H.exports,Y=o("7cca"),X={name:"Authorization",components:{KlabSpinner:B["a"],KlabBrand:Q},data(){return{COLORS:Y["b"]}},computed:{spinnerColor(){return this.$store.getters["view/spinnerColor"]}}},J=X,Z=(o("e50c"),o("eebe")),ee=o.n(Z),te=Object(j["a"])(J,U,G,!1,null,null,null),oe=te.exports;ee()(te,"components",{QInput:p["a"],QBtn:d["a"]});var se=function(){var e=this,t=e._self._c;return t("div",{staticClass:"full-width column content-center au-form-container"},[t("klab-loading",{attrs:{loading:e.loading,color:"k-controls"}}),t("q-dialog",{attrs:{persistent:""},model:{value:e.modalOpen,callback:function(t){e.modalOpen=t},expression:"modalOpen"}},[t("div",{staticClass:"lp-app-selector-container q-pa-md"},[t("div",{staticClass:"lp-app-selector-title"},[e._v(e._s(e.$t("labels.selectAppTitle")))]),t("q-list",{staticClass:"rounded-borders",attrs:{bordered:"",separator:""}},[t("q-item",{attrs:{clickable:""},on:{click:function(t){return e.goto()}}},[t("q-item-section",{attrs:{top:"",avatar:""}},[t("q-avatar",[t("img",{attrs:{src:"images/k.explorer-logo-with-circle_64.svg"}})])],1),t("q-item-section",[t("q-item-label",{staticClass:"lp-app-label"},[e._v("\n "+e._s(e.$t("labels.kexplorerOption"))+"\n ")]),t("q-item-label",{attrs:{caption:""}},[e._v("\n "+e._s(e.$t("contents.kxplorerDescription"))+"\n ")])],1)],1),e._l(e.publicApps,(function(o,s){return t("q-item",{key:s,attrs:{clickable:""},on:{click:function(t){return e.goto(o)}}},[t("q-item-section",{attrs:{avatar:"",top:""}},[t("q-avatar",[t("img",{attrs:{src:o.logoSrc}})])],1),t("q-item-section",[t("div",{staticClass:"lp-lang-description"},[t("q-item-label",{staticClass:"lp-app-label",domProps:{innerHTML:e._s(e.getLocalizedString(o,"label"))}}),o.description&&""!==o.description?t("q-item-label",{attrs:{caption:""},domProps:{innerHTML:e._s(e.getLocalizedString(o,"description"))}}):e._e()],1),o.localizations&&o.localizations.length>1?t("div",{staticClass:"kal-locales row reverse"},[t("q-select",{staticClass:"lp-lang-selector",attrs:{options:o.localeOptions,color:"k-controls","map-options":"","emit-value":"",borderless:""},nativeOn:{click:function(e){e.stopPropagation()}},model:{value:o.selectedLocale,callback:function(t){e.$set(o,"selectedLocale",t)},expression:"app.selectedLocale"}})],1):e._e()])],1)}))],2),t("div",{staticClass:"lp-need-logout",on:{click:e.doLogout}},[e._v(e._s(e.$t("labels.logout")))])],1)])],1)},ne=[],ae={methods:{fieldRequired(e){return!!e||this.$t("messages.fieldRequired")},emailValidation(e){return Te.email.test(e)||this.$t("messages.emailValidationError")},usernameValidation(e,t=Y["a"].USERNAME_MIN_LENGTH){return Te.username.test(e)?e.length>=t||this.$t("messages.usernameFormatLengthError"):this.$t("messages.usernameFormatValidationError")},passwordValidation(e,t=Y["a"].PSW_MIN_LENGTH,o=Y["a"].PSW_MAX_LENGTH){return e.length>=t&&e.length<=o||this.$t("messages.passwordValidationError")},phoneValidation(e,t=!1){return!(t||"undefined"!==typeof e&&null!==e&&""!==e)||(Te.phone.test(e)||this.$t("messages.phoneValidationError"))}}},re=function(){var e=this,t=e._self._c;return t("q-dialog",{attrs:{"no-esc-dismiss":"","no-backdrop-dismiss":""},model:{value:e.loading,callback:function(t){e.loading=t},expression:"loading"}},[t("div",{staticClass:"absolute-center k-loading"},[t("q-spinner",{attrs:{size:"4em",color:e.color}}),""!==e.computedMessage?t("div",[e._v(e._s(e.computedMessage))]):e._e()],1)])},ie=[],le={name:"KlabLoading",props:{message:{type:String,default:null},loading:{type:Boolean,required:!0},color:{type:String,default:"primary"}},data(){return{}},computed:{computedMessage(){return this.message||this.$t("messages.loading")}}},ce=le,de=(o("61e0"),o("0d59")),ue=Object(j["a"])(ce,re,ie,!1,null,null,null),pe=ue.exports;ee()(ue,"components",{QDialog:m["a"],QSpinner:de["a"]});var fe={name:"LoginForm",mixins:[ae],components:{KlabLoading:pe},data(){return{user:{username:""},username:"",loading:!1,checking:!1,rememberMe:!1,modalOpen:!1,redirectUrl:null,publicApps:[]}},computed:{...Object(k["c"])("auth",["token","selectedApp"])},methods:{...Object(k["b"])("auth",["setToken"]),getLocalizedString(e,t){if(e.selectedLocale){const o=e.localizations.find((t=>t.isoCode===e.selectedLocale));if(o)return"label"===t?o.localizedLabel:o.localizedDescription;if("description"===t)return this.$t("labels.noLayoutDescription");if(e.name)return e.name;this.$t("labels.noLayoutLabel")}return""},doLogin(){return new Promise(((e,t)=>{this.$store.dispatch("auth/login",{user:this.user,token:this.token}).then((async({redirect:t,publicApps:o})=>{let s;s=-1!==t.indexOf("?")?"&":"?";const n=`${s}${Y["a"].PARAM_TOKEN}=${this.token}`;if(null!==this.selectedApp)this.redirectUrl=`${t}${n}&app=${this.selectedApp}`,this.goto();else if(o&&o.length>0){const e=o.filter((e=>"WEB"===e.platform||"ANY"===e.platform));e.forEach((e=>{console.log("_______________________________________APP___________________________________________"),console.log(e),e.logo?e.logoSrc=`/modeler/${Y["f"].GET_IMAGE.url}/${e.projectId}/${e.logo}`:e.logoSrc=Y["a"].DEFAULT_LOGO,this.$set(e,"selectedLocale",e.localizations[0].isoCode),e.localeOptions=e.localizations.map((e=>({label:e.languageDescription,value:e.isoCode,icon:"mdi-earth",className:"kal-locale-options"}))),this.publicApps.push(e)})),await Promise.all(this.publicApps),this.modalOpen=!0,this.redirectUrl=`${t}${n}`}else this.redirectUrl=`${t}${n}`,this.goto();e()})).catch((e=>{403===e.status&&(this.removeCookie(),this.setToken(null)),t(e),this.loading=!1}))}))},goto(e=null){null!==e&&(this.redirectUrl=`${this.redirectUrl}&app=${e.name}.${e.selectedLocale?e.selectedLocale:""}`),window.location=this.redirectUrl},doLogout(){this.loading=!0,this.$store.dispatch("auth/logout").then((()=>{this.removeCookie(),this.$router.go()})).catch((e=>{this.$q.notify({message:this.$t("messages.errorLoggingOut"),type:"negative",icon:"mdi-alert-circle",timeout:2e3}),console.error(e),this.loading=!1}))}},mounted(){s["a"].$keycloak.loadUserProfile().then((e=>{this.user=e,this.doLogin().catch((()=>{console.info("Need login"),this.loading=!1}))}))}},ge=fe,me=(o("ab48"),o("1c1c")),he=o("66e5"),_e=o("4074"),be=o("cb32"),Ee=o("0170"),we=o("ddd8"),Ne=Object(j["a"])(ge,se,ne,!1,null,null,null),Oe=Ne.exports;ee()(Ne,"components",{QDialog:m["a"],QList:me["a"],QItem:he["a"],QItemSection:_e["a"],QAvatar:be["a"],QItemLabel:Ee["a"],QSelect:we["a"],QInput:p["a"]});const ke=[{path:"/",redirect:"login",component:oe,children:[{path:"/login",name:"login",component:Oe}]},{path:"/tests",component:()=>o.e(3).then(o.bind(null,"18aa"))}];ke.push({path:"*",component:()=>o.e(2).then(o.bind(null,"e51e"))});var Ae=ke;s["a"].use(z["a"]);const Re=new z["a"]({scrollBehavior:()=>({y:0}),routes:Ae,mode:"hash",base:"/modeler/"});var je=Re;o("c1df");const{hexToRgb:ve,getBrand:ye,rgbToHex:Ce}=I["a"],Le=/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/;function Se(e){if("string"!==typeof e)throw new TypeError("Expected a string");const t=Le.exec(e);if(t){const e={r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10)};return t[4]&&(e.a=parseFloat(t[4])),e}return ve(e)}function Ie(e){let t,o;return 0===e.indexOf("#")?(o=e,t=ve(e)):-1!==e.indexOf(",")?(t=Se(e),o=Ce(t)):(o=ye(e),t=ve(o)),{rgb:t,hex:o,color:e}}const Te={email:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,username:/^[a-zA-Z0-9_.-]*$/,phone:/^[+]*[(]?[0-9]{1,4}[)]?[-\s./0-9]*$/};async function Pe(e){if(e.response){const t={status:e.response.data.status||e.response.status,message:e.response.data.message||e.response.data||(""!==e.response.statusText?e.response.statusText:e.statusCode?e.statusCode:"Unknown"),axiosError:e};if(t.message instanceof Blob&&"application/json"===t.message.type){const e=await new Promise((e=>{const o=new FileReader;o.onload=function(){e(JSON.parse(this.result))},o.readAsText(t.message)}));return e}return t}return e.request?{status:e.request.status,message:e.message,axiosError:e}:{status:"UNKNOWN",message:e.message,axiosError:e}}async function $e(e,t,o=null){const{type:s,url:n,params:a={},needAuth:r=!1,owner:i="layout",session:l=null,authentication:c=null}=e;if("GET"!==s&&"POST"!==s&&"PUT"!==s&&"DELETE"!==s||null===n||""===n)throw new Error(`Bad axios call, check type and url: ${s} / ${n}`);Fe.dispatch("view/setSpinner",{...Y["e"].SPINNER_LOADING,owner:"layout"},{root:!0}).then((async()=>{const e="GET"===s?T["a"].get:"POST"===s?T["a"].post:"DELETE"===s?T["a"].delete:T["a"].put,d=null!==l?{headers:{Authorization:l}}:{},u=null!==c?{headers:{Authentication:c},withCredentials:!0}:{};let p;try{p=await e(`/modeler/${n}`,{...a,...d},u),p&&(t?t(p,(()=>{Fe.dispatch("view/setSpinner",{...Y["e"].SPINNER_STOPPED,owner:i},{root:!0})})):(console.warn("Doing nothing after axios call"),Fe.dispatch("view/setSpinner",{...Y["e"].SPINNER_STOPPED,owner:i},{root:!0})))}catch(f){console.log(f);const e=await Pe(f);if(Fe.dispatch("view/setSpinner",{...Y["e"].SPINNER_ERROR,owner:i,errorMessage:e.message,showNotifications:!1},{root:!0}),r&&401===e.status)return console.warn("We are logged out from backoffice"),Fe.dispatch("auth/logout",!0,{root:!0}),void je.push("/login");if(e.message&&-1!==e.message.toLowerCase().indexOf("network error")&&Fe.dispatch("view/setConnectionDown",!0),null===o)throw e;o(e)}}))}var Me={login:({commit:e},{user:t={username:null},token:o=null})=>new Promise(((s,n)=>{null!==t||null!==o?$e({type:Y["f"].LOG_IN.method,url:Y["f"].LOG_IN.url,params:{...t,token:o}},(({data:t},o)=>{t&&(t.authorization?e("STORE_TOKEN",t.authorization):console.warn("Unknown answer",t)),s(t),o()}),(e=>{n(e)})):n("Must exists user data or token")})),logout:({commit:e,getters:t})=>new Promise(((o,n)=>{const a={redirectUri:__ENV__.APP_BASE_URL};s["a"].$keycloak.logout(a).then((s=>{console.debug(s),$e({type:Y["f"].LOG_OUT.method,url:Y["f"].LOG_OUT.url,params:{token:t.token},authentication:t.token},(({status:t})=>{205===t?(e("STORE_TOKEN",null),o()):n(`Strange status: ${t}`)}),(e=>{e.response&&403===e.response.status&&n("Probably bad token"),n(`Error logging out: ${e}`)}))})).catch((e=>{console.error(e)}))})),setToken:({commit:e},t)=>{e("STORE_TOKEN",t)},setSelectedApp:({commit:e},t)=>{e("SET_SELECTED_APP",t)}},xe={namespaced:!0,state:C,getters:L,mutations:S,actions:Me},De={spinner:Y["e"].SPINNER_STOPPED,spinnerOwners:[],connectionDown:!1},ze={spinnerIsAnimated:e=>e.spinner.animated,spinner:e=>e.spinner,spinnerOwners:e=>e.spinnerOwners,spinnerColor:e=>"undefined"!==e.spinner&&null!==e.spinner?Ie(e.spinner.color):null,spinnerErrorMessage:e=>"undefined"!==e.spinner&&null!==e.spinner?e.spinner.errorMessage:null,isConnectionDown:e=>e.connectionDown},Ue={SET_SPINNER_ANIMATED:(e,t)=>{e.spinner.animated=t},SET_SPINNER_COLOR:(e,t)=>{e.spinner.color=t},SET_SPINNER:(e,{animated:t,color:o,errorMessage:s=null,showNotifications:n=!1})=>{e.spinner={animated:t,color:o,errorMessage:s,showNotifications:n}},ADD_TO_SPINNER_OWNERS:(e,t)=>{const o=e.spinnerOwners.indexOf(t);-1===o&&e.spinnerOwners.push(t)},REMOVE_FROM_SPINNER_OWNERS:(e,t)=>{const o=e.spinnerOwners.indexOf(t);-1!==o&&e.spinnerOwners.splice(o,1)},SET_CONNECTION_DOWN:(e,t)=>{e.connectionDown=t}},Ge={setSpinner:({commit:e,getters:t,dispatch:o},{animated:s,color:n,time:a=null,then:r=null,errorMessage:i=null,showNotifications:l=!1,owner:c})=>new Promise(((d,u)=>{c&&null!==c?(s?e("ADD_TO_SPINNER_OWNERS",c):(e("REMOVE_FROM_SPINNER_OWNERS",c),0!==t.spinnerOwners.length&&(s=!0,n!==Y["e"].SPINNER_ERROR.color&&({color:n}=Y["e"].SPINNER_LOADING))),e("SET_SPINNER",{animated:s,color:n,errorMessage:i,showNotifications:l}),null!==a&&null!==r&&setTimeout((()=>{o("setSpinner",{...r,owner:c})}),1e3*a),d()):u(new Error("No spinner owner!"))})),setConnectionDown:({commit:e},t)=>{e("SET_CONNECTION_DOWN",t)}},Be={namespaced:!0,state:De,getters:ze,mutations:Ue,actions:Ge};s["a"].use(k["a"]);const qe=new k["a"].Store({modules:{auth:xe,view:Be}});var Fe=qe,Ke=async function(){const e="function"===typeof Fe?await Fe({Vue:s["a"]}):Fe,t="function"===typeof je?await je({Vue:s["a"],store:e}):je;e.$router=t;const o={router:t,store:e,render:e=>e(y),el:"#q-app"};return{app:o,store:e,router:t}},Ve=({store:e})=>{w["a"].has(Y["a"].COOKIE_TOKEN)&&(e.state.auth.token=w["a"].get(Y["a"].COOKIE_TOKEN));let t=null;const o=window.location.href.split("?");if(2===o.length){const s=o[1].split("&");s.forEach((o=>{const s=o.split("=");if(2===s.length&&"app"===s[0]){const e=s[1].indexOf("#");-1!==e&&(s[1]=s[1].substring(0,e)),[,t]=s}2===s.length&&"token"===s[0]&&(e.state.auth.token=s[1])}))}e.state.auth.selectedApp=t},We=o("15a2");const He={url:Y["c"].URL,realm:Y["c"].REALM,clientId:Y["c"].CLIENT_ID,enableCors:!0},Qe=new We["a"](He),Ye={install(e){e.$keycloak=Qe}};Ye.install=e=>{e.$keycloak=Qe,Object.defineProperties(e.prototype,{$keycloak:{get(){return Qe}}})},s["a"].use(Ye);var Xe=Ye;s["a"].config.productionTip=!1,s["a"].use(Xe),s["a"].$keycloak.init({onLoad:"login-required",checkLoginIframe:!1}).then((e=>{e?(localStorage.setItem(Y["c"].TOKEN,s["a"].$keycloak.token),localStorage.setItem(Y["c"].REFRESH_TOKEN,s["a"].$keycloak.refreshToken),s["a"].prototype.$http.defaults.headers.common.Authorization=Y["c"].BEARER+s["a"].$keycloak.token,console.debug("Authenticated"),window.location=`${__ENV__.APP_BASE_URL}/#/login`):window.location.reload(),setInterval((()=>{s["a"].$keycloak.updateToken().then((e=>{e?(console.debug(`Token refreshed ${e}`),localStorage.setItem(Y["c"].TOKEN,s["a"].$keycloak.token),localStorage.setItem(Y["c"].REFRESH_TOKEN,s["a"].$keycloak.refreshToken),s["a"].prototype.$http.defaults.headers.common.Authorization=Y["c"].BEARER+s["a"].$keycloak.token):console.debug(`Token not refreshed, valid for ${Math.round(s["a"].$keycloak.tokenParsed.exp+s["a"].$keycloak.timeSkew-(new Date).getTime()/1e3)} seconds`)})).catch((()=>{console.error("Failed to refresh token")}))}),6e4)})).catch((e=>{console.error(e),console.debug("Authenticated Failed")}));const Je="/modeler/",Ze=/\/\//,et=e=>(Je+e).replace(Ze,"/");async function tt(){const{app:e,store:t,router:o}=await Ke();let n=!1;const a=e=>{n=!0;const t=Object(e)===e?et(o.resolve(e).route.fullPath):e;window.location.href=t},r=window.location.href.replace(window.location.origin,""),i=[D,Ve,T["b"],void 0];for(let c=0;!1===n&&c{t.prototype.$http=i,t.$keycloak.token&&(t.prototype.$http.defaults.headers.common.Authorization=a["c"].BEARER+t.$keycloak.token),null!==e.env.X_SERVER_HEADER&&(t.prototype.$http.defaults.headers.common={...t.prototype.$http.defaults.headers.common,"X-Server-Header":e.env.X_SERVER_HEADER})}}).call(this,o("4362"))},"7cca":function(e,t,o){"use strict";o.d(t,"b",(function(){return s})),o.d(t,"d",(function(){return n})),o.d(t,"e",(function(){return a})),o.d(t,"a",(function(){return r})),o.d(t,"f",(function(){return l})),o.d(t,"c",(function(){return c}));const s={MAIN_COLOR:"rgb(17, 170, 187)",MAIN_GREEN:"rgb(70,161,74)",MAIN_LIGHT_GREEN:"rgb(231,255,219)",MAIN_CYAN:"rgb(0,131,143)",MAIN_LIGHT_CYAN:"rgb(228,253,255)",MAIN_YELLOW:"rgb(255, 195, 0)",MAIN_RED:"rgb(255, 100, 100)",PRIMARY:"#da1f26",SECONDARY:"#26A69A",TERTIARY:"#555",NEUTRAL:"#E0E1E2",POSITIVE:"#19A019",NEGATIVE:"#DB2828",INFO:"#1E88CE",WARNING:"#F2C037",PRIMARY_NAME:"primary",SECONDARY_NAME:"secondary",TERTIARY_NAME:"tertiary",POSITIVE_NAME:"positive",NEGATIVE_NAME:"negative",INFO_NAME:"info",WARNING_NAME:"warning",COLOR_PRIMARY:"primary",COLOR_SECONDARY:"secondary",COLOR_TERTIARY:"tertiary",COLOR_POSITIVE:"positive",COLOR_NEGATIVE:"negative",COLOR_INFO:"info",COLOR_WARNING:"warning",COLOR_LIGHT:"light",COLOR_DARK:"dark",COLOR_FADED:"faded"},n={SPINNER_STOPPED_COLOR:s.MAIN_COLOR,SPINNER_LOADING_COLOR:s.MAIN_YELLOW,SPINNER_MC_RED:s.MAIN_RED,SPINNER_ERROR_COLOR:s.NEGATIVE_NAME,SPINNER_ELEPHANT_DEFAULT_COLOR:"#010102"},a={SPINNER_LOADING:{ballColor:n.SPINNER_LOADING_COLOR,color:n.SPINNER_LOADING_COLOR,animated:!0},SPINNER_STOPPED:{color:n.SPINNER_STOPPED_COLOR,animated:!1},SPINNER_ERROR:{color:n.SPINNER_ERROR_COLOR,animated:!1,time:2,then:{color:n.SPINNER_STOPPED_COLOR,animated:!1}},WHITE_SPACE_PERCENTAGE:.12},r={USERNAME_MIN_LENGTH:6,PSW_MIN_LENGTH:8,PSW_MAX_LENGTH:32,READY:0,WAITING:1,REFRESHING:2,IMAGE_NOT_FOUND_SRC:"image-off-outline.png",COOKIE_TOKEN:"klab_auth",PARAM_TOKEN:"token",PARAM_APP:"app",DEFAULT_LOGO:"images/k.explorer-logo-with-circle_64.svg"},i={WS_USERS:"api/v2/users",WS_GET_IMAGES:"engine/project/resource/get"},l={LOG_IN:{method:"POST",url:`${i.WS_USERS}/log-in?remote=true`},LOG_OUT:{method:"POST",url:`${i.WS_USERS}/log-out`},GET_IMAGE:{method:"GET",url:i.WS_GET_IMAGES}};const c={URL:__ENV__.KEYCLOAK_URL,REALM:"im",CLIENT_ID:"k.Engine",TOKEN:"vue-token",REFRESH_TOKEN:"vue-refresh-token",BEARER:"Bearer "}},"7e6d":function(e,t,o){},9803:function(e,t,o){},ab48:function(e,t,o){"use strict";o("3c7a")},e50c:function(e,t,o){"use strict";o("ea7e")},ea7e:function(e,t,o){},f439:function(e,t,o){}}); \ No newline at end of file +(function(e){function t(t){for(var s,r,i=t[0],l=t[1],c=t[2],d=0,p=[];de.token,selectedApp:e=>e.selectedApp},S={STORE_TOKEN:(e,t)=>{e.token=t},SET_SELECTED_APP:(e,t)=>{e.selectedApp=t}},I=(o("14d9"),o("bc78")),T=o("758b"),P=o("a925"),$={commons:{appName:"k.Engine"},menu:{home:"Home"},labels:{warning:"Warning",username:"Username",password:"Password",newPassword:"New password",newPasswordConfirmation:"New password confirmation",btnLogin:"Login",textLogin:"Already signed up?",btnRegister:"Register",linkLogin:"Login",textRegister:"New to k.LAB?",linkRegister:"Sign up",btnAccept:"Accept",btnCancel:"Cancel",btnGoogle:"Sign in with Google",btnSetPassword:"Set password",forgotPassword:"Forgot password?",btnResetPassword:"Reset password",rememberMe:"Remember me",selectAppTitle:"Available apps",kexplorerOption:"k.Explorer",logout:"Logout",noLayoutLabel:"No title",noLayoutDescription:"No description"},messages:{genericError:"There was an error, please try later",networkError:"Network error",fieldRequired:"Field required",passwordValidationError:"Password must be between 8 and 32 characters",passwordUnableToDo:"Unable to change user password",passwordChanged:"Password changed",passwordChangedError:"There was an error, password is not changed",passwordMailError:"There wan an error sending confirmation email, password is changed",passwordDoesNotMatch:"Password does not match the password verification field",changingPassword:"Changing password",userPswInvalid:"Bad Username or password",userAlreadyInUse:"Username or Email already in use!",invalidRedirect:"Redirect error, please contact support",failed:"Action failed",success:"Action was successful",loading:"Loading",acceptEULA:"I have read and accept the END USER LICENSE AGREEMENT (EULA) for individual non-profit use",mustAcceptEULA:"You must read and accept the EULA to download certificate",changePasswordTitle:"Change password",loggingOut:"Logging out",errorLoggingOut:"Error logging out, contact support"},contents:{registerContent:'\n

ARIES is an open system where all participants contribute and share knowledge for the common good. For this reason we ask that all accounts are traceable to real people and institutions. Please ensure that:

\n
    \n
  • Your username follows the firstname.lastname pattern, with your real first and last name. All the accounts created from this page are individual. If you need an institutional account (for example to install a public engine) please contact us as this use, while still free for non-profit institutions, is covered by a separate EULA.
  • \n
  • Your email address is traceable to an institution where you work or study and whose non-profit status is verifiable.
  • \n
\n

We actively monitor the registration database and we regularly delete or disable accounts that do not match the above conditions. In addition, attempts to make for-profit use of ARIES products with a non-profit licensing terms will result in permanent exclusion from the registration system and potential legal prosecution according to the\n EULA.

\n

By clicking the registration button you agree that the personal data you provide will be processed by ASOCIACIÓN BC3 BASQUE CENTRE FOR CLIMATE CHANGE-KLIMA ALDAKETA IKERGAI with the purpose of\n managing your registration request and your access to the tool. You may exercise your rights on data protection at ARCrights@BC3research.org.\n
Additional information in this respect is available in the EULA

\n ',forgetPasswordContent:'\n

Insert your email account information.

Please Contact Us if you require any assistance.

\n ',homeTitle:"Welcome",homeContent:"",kxplorerDescription:"The general k.LAB interface to freely explore the observation space by querying the knowledge base. To see example queries targeted to the user's profile, move to a location of interest and press the space bar."}},M={"en-us":$};s["a"].use(P["a"]);const x=new P["a"]({locale:"en-us",fallbackLocale:"en-us",messages:M});var D=({app:e})=>{e.i18n=x},z=o("8c4f"),U=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"au-layout",view:"hHh lpR fFf"}},[t("div",{staticClass:"au-container"},[t("transition",{attrs:{appear:"","appear-class":"custom-appear-class"}},[t("div",{staticClass:"au-fixed-center text-center au-container"},[t("div",{staticClass:"au-logo-container"},[t("klab-spinner",{staticClass:"au-logo",attrs:{"store-controlled":!0,ball:12,wrapperId:"au-layout",ballColor:e.COLORS.PRIMARY}}),t("klab-brand",{attrs:{customClasses:["au-app-name"]}})],1),t("div",{staticClass:"au-content"},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)])])],1)])},G=[],B=o("2573"),q=function(){var e=this,t=e._self._c;return t("div",{staticClass:"app-name",class:e.customClasses,domProps:{innerHTML:e._s(e.htmlAppName)}})},F=[],K={appName:"k.LAB Engine",appDescription:"k.LAB Engine",appColor:"#da1f26"},V={props:{customClasses:Array,default:()=>[]},data(){return{appName:K.appName,appColor:K.appColor}},computed:{htmlAppName(){return this.appName.replace(".",`.`)}}},W=V,H=(o("60e3"),Object(j["a"])(W,q,F,!1,null,null,null)),Q=H.exports,Y=o("7cca"),X={name:"Authorization",components:{KlabSpinner:B["a"],KlabBrand:Q},data(){return{COLORS:Y["b"]}},computed:{spinnerColor(){return this.$store.getters["view/spinnerColor"]}}},J=X,Z=(o("e50c"),o("eebe")),ee=o.n(Z),te=Object(j["a"])(J,U,G,!1,null,null,null),oe=te.exports;ee()(te,"components",{QInput:p["a"],QBtn:d["a"]});var se=function(){var e=this,t=e._self._c;return t("div",{staticClass:"full-width column content-center au-form-container"},[t("klab-loading",{attrs:{loading:e.loading,color:"k-controls"}}),t("q-dialog",{attrs:{persistent:""},model:{value:e.modalOpen,callback:function(t){e.modalOpen=t},expression:"modalOpen"}},[t("div",{staticClass:"lp-app-selector-container q-pa-md"},[t("div",{staticClass:"lp-app-selector-title"},[e._v(e._s(e.$t("labels.selectAppTitle")))]),t("q-list",{staticClass:"rounded-borders",attrs:{bordered:"",separator:""}},[t("q-item",{attrs:{clickable:""},on:{click:function(t){return e.goto()}}},[t("q-item-section",{attrs:{top:"",avatar:""}},[t("q-avatar",[t("img",{attrs:{src:"images/k.explorer-logo-with-circle_64.svg"}})])],1),t("q-item-section",[t("q-item-label",{staticClass:"lp-app-label"},[e._v("\n "+e._s(e.$t("labels.kexplorerOption"))+"\n ")]),t("q-item-label",{attrs:{caption:""}},[e._v("\n "+e._s(e.$t("contents.kxplorerDescription"))+"\n ")])],1)],1),e._l(e.publicApps,(function(o,s){return t("q-item",{key:s,attrs:{clickable:""},on:{click:function(t){return e.goto(o)}}},[t("q-item-section",{attrs:{avatar:"",top:""}},[t("q-avatar",[t("img",{attrs:{src:o.logoSrc}})])],1),t("q-item-section",[t("div",{staticClass:"lp-lang-description"},[t("q-item-label",{staticClass:"lp-app-label",domProps:{innerHTML:e._s(e.getLocalizedString(o,"label"))}}),o.description&&""!==o.description?t("q-item-label",{attrs:{caption:""},domProps:{innerHTML:e._s(e.getLocalizedString(o,"description"))}}):e._e()],1),o.localizations&&o.localizations.length>1?t("div",{staticClass:"kal-locales row reverse"},[t("q-select",{staticClass:"lp-lang-selector",attrs:{options:o.localeOptions,color:"k-controls","map-options":"","emit-value":"",borderless:""},nativeOn:{click:function(e){e.stopPropagation()}},model:{value:o.selectedLocale,callback:function(t){e.$set(o,"selectedLocale",t)},expression:"app.selectedLocale"}})],1):e._e()])],1)}))],2),t("div",{staticClass:"lp-need-logout",on:{click:e.doLogout}},[e._v(e._s(e.$t("labels.logout")))])],1)])],1)},ne=[],ae={methods:{fieldRequired(e){return!!e||this.$t("messages.fieldRequired")},emailValidation(e){return Te.email.test(e)||this.$t("messages.emailValidationError")},usernameValidation(e,t=Y["a"].USERNAME_MIN_LENGTH){return Te.username.test(e)?e.length>=t||this.$t("messages.usernameFormatLengthError"):this.$t("messages.usernameFormatValidationError")},passwordValidation(e,t=Y["a"].PSW_MIN_LENGTH,o=Y["a"].PSW_MAX_LENGTH){return e.length>=t&&e.length<=o||this.$t("messages.passwordValidationError")},phoneValidation(e,t=!1){return!(t||"undefined"!==typeof e&&null!==e&&""!==e)||(Te.phone.test(e)||this.$t("messages.phoneValidationError"))}}},re=function(){var e=this,t=e._self._c;return t("q-dialog",{attrs:{"no-esc-dismiss":"","no-backdrop-dismiss":""},model:{value:e.loading,callback:function(t){e.loading=t},expression:"loading"}},[t("div",{staticClass:"absolute-center k-loading"},[t("q-spinner",{attrs:{size:"4em",color:e.color}}),""!==e.computedMessage?t("div",[e._v(e._s(e.computedMessage))]):e._e()],1)])},ie=[],le={name:"KlabLoading",props:{message:{type:String,default:null},loading:{type:Boolean,required:!0},color:{type:String,default:"primary"}},data(){return{}},computed:{computedMessage(){return this.message||this.$t("messages.loading")}}},ce=le,de=(o("61e0"),o("0d59")),ue=Object(j["a"])(ce,re,ie,!1,null,null,null),pe=ue.exports;ee()(ue,"components",{QDialog:m["a"],QSpinner:de["a"]});var ge={name:"LoginForm",mixins:[ae],components:{KlabLoading:pe},data(){return{user:{username:""},username:"",loading:!1,checking:!1,rememberMe:!1,modalOpen:!1,redirectUrl:null,publicApps:[]}},computed:{...Object(k["c"])("auth",["token","selectedApp"])},methods:{...Object(k["b"])("auth",["setToken"]),getLocalizedString(e,t){if(e.selectedLocale){const o=e.localizations.find((t=>t.isoCode===e.selectedLocale));if(o)return"label"===t?o.localizedLabel:o.localizedDescription;if("description"===t)return this.$t("labels.noLayoutDescription");if(e.name)return e.name;this.$t("labels.noLayoutLabel")}return""},doLogin(){return new Promise(((e,t)=>{this.$store.dispatch("auth/login",{user:this.user,token:this.token}).then((async({redirect:t,publicApps:o})=>{let s;s=-1!==t.indexOf("?")?"&":"?";const n=`${s}${Y["a"].PARAM_TOKEN}=${this.token}`;if(null!==this.selectedApp)this.redirectUrl=`${t}${n}&app=${this.selectedApp}`,this.goto();else if(o&&o.length>0){const e=o.filter((e=>"WEB"===e.platform||"ANY"===e.platform));e.forEach((e=>{console.log("_______________________________________APP___________________________________________"),console.log(e),e.logo?e.logoSrc=`/modeler/${Y["f"].GET_IMAGE.url}/${e.projectId}/${e.logo}`:e.logoSrc=Y["a"].DEFAULT_LOGO,this.$set(e,"selectedLocale",e.localizations[0].isoCode),e.localeOptions=e.localizations.map((e=>({label:e.languageDescription,value:e.isoCode,icon:"mdi-earth",className:"kal-locale-options"}))),this.publicApps.push(e)})),await Promise.all(this.publicApps),this.modalOpen=!0,this.redirectUrl=`${t}${n}`}else this.redirectUrl=`${t}${n}`,this.goto();e()})).catch((e=>{403===e.status&&(this.removeCookie(),this.setToken(null)),t(e),this.loading=!1}))}))},goto(e=null){null!==e&&(this.redirectUrl=`${this.redirectUrl}&app=${e.name}.${e.selectedLocale?e.selectedLocale:""}`),window.location=this.redirectUrl},doLogout(){this.loading=!0,this.$store.dispatch("auth/logout").then((()=>{this.removeCookie(),this.$router.go()})).catch((e=>{this.$q.notify({message:this.$t("messages.errorLoggingOut"),type:"negative",icon:"mdi-alert-circle",timeout:2e3}),console.error(e),this.loading=!1}))}},mounted(){this.$store.getters["auth/token"]||setTimeout((()=>{s["a"].$keycloak.loadUserProfile().then((e=>{this.user=e,this.doLogin().catch((()=>{console.info("Need login"),this.loading=!1}))}))}),700)}},fe=ge,me=(o("e42d"),o("1c1c")),he=o("66e5"),_e=o("4074"),be=o("cb32"),Ee=o("0170"),we=o("ddd8"),Ne=Object(j["a"])(fe,se,ne,!1,null,null,null),Oe=Ne.exports;ee()(Ne,"components",{QDialog:m["a"],QList:me["a"],QItem:he["a"],QItemSection:_e["a"],QAvatar:be["a"],QItemLabel:Ee["a"],QSelect:we["a"],QInput:p["a"]});const ke=[{path:"/",redirect:"login",component:oe,children:[{path:"/login",name:"login",component:Oe}]},{path:"/tests",component:()=>o.e(3).then(o.bind(null,"18aa"))}];ke.push({path:"*",component:()=>o.e(2).then(o.bind(null,"e51e"))});var Ae=ke;s["a"].use(z["a"]);const Re=new z["a"]({scrollBehavior:()=>({y:0}),routes:Ae,mode:"hash",base:"/modeler/"});var je=Re;o("c1df");const{hexToRgb:ye,getBrand:ve,rgbToHex:Ce}=I["a"],Le=/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/;function Se(e){if("string"!==typeof e)throw new TypeError("Expected a string");const t=Le.exec(e);if(t){const e={r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10)};return t[4]&&(e.a=parseFloat(t[4])),e}return ye(e)}function Ie(e){let t,o;return 0===e.indexOf("#")?(o=e,t=ye(e)):-1!==e.indexOf(",")?(t=Se(e),o=Ce(t)):(o=ve(e),t=ye(o)),{rgb:t,hex:o,color:e}}const Te={email:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,username:/^[a-zA-Z0-9_.-]*$/,phone:/^[+]*[(]?[0-9]{1,4}[)]?[-\s./0-9]*$/};async function Pe(e){if(e.response){const t={status:e.response.data.status||e.response.status,message:e.response.data.message||e.response.data||(""!==e.response.statusText?e.response.statusText:e.statusCode?e.statusCode:"Unknown"),axiosError:e};if(t.message instanceof Blob&&"application/json"===t.message.type){const e=await new Promise((e=>{const o=new FileReader;o.onload=function(){e(JSON.parse(this.result))},o.readAsText(t.message)}));return e}return t}return e.request?{status:e.request.status,message:e.message,axiosError:e}:{status:"UNKNOWN",message:e.message,axiosError:e}}async function $e(e,t,o=null){const{type:s,url:n,params:a={},needAuth:r=!1,owner:i="layout",session:l=null,authentication:c=null}=e;if("GET"!==s&&"POST"!==s&&"PUT"!==s&&"DELETE"!==s||null===n||""===n)throw new Error(`Bad axios call, check type and url: ${s} / ${n}`);Fe.dispatch("view/setSpinner",{...Y["e"].SPINNER_LOADING,owner:"layout"},{root:!0}).then((async()=>{const e="GET"===s?T["a"].get:"POST"===s?T["a"].post:"DELETE"===s?T["a"].delete:T["a"].put,d=null!==l?{headers:{Authorization:l}}:{},u=null!==c?{headers:{Authentication:c},withCredentials:!0}:{};let p;try{p=await e(`/modeler/${n}`,{...a,...d},u),p&&(t?t(p,(()=>{Fe.dispatch("view/setSpinner",{...Y["e"].SPINNER_STOPPED,owner:i},{root:!0})})):(console.warn("Doing nothing after axios call"),Fe.dispatch("view/setSpinner",{...Y["e"].SPINNER_STOPPED,owner:i},{root:!0})))}catch(g){console.log(g);const e=await Pe(g);if(Fe.dispatch("view/setSpinner",{...Y["e"].SPINNER_ERROR,owner:i,errorMessage:e.message,showNotifications:!1},{root:!0}),r&&401===e.status)return console.warn("We are logged out from backoffice"),Fe.dispatch("auth/logout",!0,{root:!0}),void je.push("/login");if(e.message&&-1!==e.message.toLowerCase().indexOf("network error")&&Fe.dispatch("view/setConnectionDown",!0),null===o)throw e;o(e)}}))}var Me={login:({commit:e},{user:t={username:null},token:o=null})=>new Promise(((s,n)=>{null!==t||null!==o?$e({type:Y["f"].LOG_IN.method,url:Y["f"].LOG_IN.url,params:{...t,token:o}},(({data:t},o)=>{t&&(t.authorization?e("STORE_TOKEN",t.authorization):console.warn("Unknown answer",t)),s(t),o()}),(e=>{n(e)})):n("Must exists user data or token")})),logout:({commit:e,getters:t})=>new Promise(((o,n)=>{const a={redirectUri:__ENV__.APP_BASE_URL};s["a"].$keycloak.logout(a).then((s=>{console.debug(s),$e({type:Y["f"].LOG_OUT.method,url:Y["f"].LOG_OUT.url,params:{token:t.token},authentication:t.token},(({status:t})=>{205===t?(e("STORE_TOKEN",null),o()):n(`Strange status: ${t}`)}),(e=>{e.response&&403===e.response.status&&n("Probably bad token"),n(`Error logging out: ${e}`)}))})).catch((e=>{console.error(e)}))})),setToken:({commit:e},t)=>{e("STORE_TOKEN",t)},setSelectedApp:({commit:e},t)=>{e("SET_SELECTED_APP",t)}},xe={namespaced:!0,state:C,getters:L,mutations:S,actions:Me},De={spinner:Y["e"].SPINNER_STOPPED,spinnerOwners:[],connectionDown:!1},ze={spinnerIsAnimated:e=>e.spinner.animated,spinner:e=>e.spinner,spinnerOwners:e=>e.spinnerOwners,spinnerColor:e=>"undefined"!==e.spinner&&null!==e.spinner?Ie(e.spinner.color):null,spinnerErrorMessage:e=>"undefined"!==e.spinner&&null!==e.spinner?e.spinner.errorMessage:null,isConnectionDown:e=>e.connectionDown},Ue={SET_SPINNER_ANIMATED:(e,t)=>{e.spinner.animated=t},SET_SPINNER_COLOR:(e,t)=>{e.spinner.color=t},SET_SPINNER:(e,{animated:t,color:o,errorMessage:s=null,showNotifications:n=!1})=>{e.spinner={animated:t,color:o,errorMessage:s,showNotifications:n}},ADD_TO_SPINNER_OWNERS:(e,t)=>{const o=e.spinnerOwners.indexOf(t);-1===o&&e.spinnerOwners.push(t)},REMOVE_FROM_SPINNER_OWNERS:(e,t)=>{const o=e.spinnerOwners.indexOf(t);-1!==o&&e.spinnerOwners.splice(o,1)},SET_CONNECTION_DOWN:(e,t)=>{e.connectionDown=t}},Ge={setSpinner:({commit:e,getters:t,dispatch:o},{animated:s,color:n,time:a=null,then:r=null,errorMessage:i=null,showNotifications:l=!1,owner:c})=>new Promise(((d,u)=>{c&&null!==c?(s?e("ADD_TO_SPINNER_OWNERS",c):(e("REMOVE_FROM_SPINNER_OWNERS",c),0!==t.spinnerOwners.length&&(s=!0,n!==Y["e"].SPINNER_ERROR.color&&({color:n}=Y["e"].SPINNER_LOADING))),e("SET_SPINNER",{animated:s,color:n,errorMessage:i,showNotifications:l}),null!==a&&null!==r&&setTimeout((()=>{o("setSpinner",{...r,owner:c})}),1e3*a),d()):u(new Error("No spinner owner!"))})),setConnectionDown:({commit:e},t)=>{e("SET_CONNECTION_DOWN",t)}},Be={namespaced:!0,state:De,getters:ze,mutations:Ue,actions:Ge};s["a"].use(k["a"]);const qe=new k["a"].Store({modules:{auth:xe,view:Be}});var Fe=qe,Ke=async function(){const e="function"===typeof Fe?await Fe({Vue:s["a"]}):Fe,t="function"===typeof je?await je({Vue:s["a"],store:e}):je;e.$router=t;const o={router:t,store:e,render:e=>e(v),el:"#q-app"};return{app:o,store:e,router:t}},Ve=({store:e})=>{w["a"].has(Y["a"].COOKIE_TOKEN)&&(e.state.auth.token=w["a"].get(Y["a"].COOKIE_TOKEN));let t=null;const o=window.location.href.split("?");if(2===o.length){const s=o[1].split("&");s.forEach((o=>{const s=o.split("=");if(2===s.length&&"app"===s[0]){const e=s[1].indexOf("#");-1!==e&&(s[1]=s[1].substring(0,e)),[,t]=s}2===s.length&&"token"===s[0]&&(e.state.auth.token=s[1])}))}e.state.auth.selectedApp=t},We=o("15a2");const He={url:Y["c"].URL,realm:Y["c"].REALM,clientId:Y["c"].CLIENT_ID,enableCors:!0},Qe=new We["a"](He),Ye={install(e){e.$keycloak=Qe}};Ye.install=e=>{e.$keycloak=Qe,Object.defineProperties(e.prototype,{$keycloak:{get(){return Qe}}})},s["a"].use(Ye);var Xe=Ye;s["a"].config.productionTip=!1,s["a"].use(Xe),s["a"].$keycloak.init({onLoad:"login-required",checkLoginIframe:!1}).then((e=>{e?(localStorage.setItem(Y["c"].TOKEN,s["a"].$keycloak.token),localStorage.setItem(Y["c"].REFRESH_TOKEN,s["a"].$keycloak.refreshToken),s["a"].prototype.$http.defaults.headers.common.Authorization=Y["c"].BEARER+s["a"].$keycloak.token,Fe.commit("STORE_TOKEN",s["a"].$keycloak.token),console.debug("Authenticated"),window.location=`${__ENV__.APP_BASE_URL}/#/login`):window.location.reload(),setInterval((()=>{s["a"].$keycloak.updateToken().then((e=>{e?(console.debug(`Token refreshed ${e}`),localStorage.setItem(Y["c"].TOKEN,s["a"].$keycloak.token),localStorage.setItem(Y["c"].REFRESH_TOKEN,s["a"].$keycloak.refreshToken),s["a"].prototype.$http.defaults.headers.common.Authorization=Y["c"].BEARER+s["a"].$keycloak.token):console.debug(`Token not refreshed, valid for ${Math.round(s["a"].$keycloak.tokenParsed.exp+s["a"].$keycloak.timeSkew-(new Date).getTime()/1e3)} seconds`)})).catch((()=>{console.error("Failed to refresh token")}))}),6e4)})).catch((e=>{console.error(e),console.debug("Authenticated Failed")}));const Je="/modeler/",Ze=/\/\//,et=e=>(Je+e).replace(Ze,"/");async function tt(){const{app:e,store:t,router:o}=await Ke();let n=!1;const a=e=>{n=!0;const t=Object(e)===e?et(o.resolve(e).route.fullPath):e;window.location.href=t},r=window.location.href.replace(window.location.origin,""),i=[D,Ve,T["b"],void 0];for(let c=0;!1===n&&c{t.prototype.$http=i,t.$keycloak.token&&(t.prototype.$http.defaults.headers.common.Authorization=a["c"].BEARER+t.$keycloak.token),null!==e.env.X_SERVER_HEADER&&(t.prototype.$http.defaults.headers.common={...t.prototype.$http.defaults.headers.common,"X-Server-Header":e.env.X_SERVER_HEADER})}}).call(this,o("4362"))},"7cca":function(e,t,o){"use strict";o.d(t,"b",(function(){return s})),o.d(t,"d",(function(){return n})),o.d(t,"e",(function(){return a})),o.d(t,"a",(function(){return r})),o.d(t,"f",(function(){return l})),o.d(t,"c",(function(){return c}));const s={MAIN_COLOR:"rgb(17, 170, 187)",MAIN_GREEN:"rgb(70,161,74)",MAIN_LIGHT_GREEN:"rgb(231,255,219)",MAIN_CYAN:"rgb(0,131,143)",MAIN_LIGHT_CYAN:"rgb(228,253,255)",MAIN_YELLOW:"rgb(255, 195, 0)",MAIN_RED:"rgb(255, 100, 100)",PRIMARY:"#da1f26",SECONDARY:"#26A69A",TERTIARY:"#555",NEUTRAL:"#E0E1E2",POSITIVE:"#19A019",NEGATIVE:"#DB2828",INFO:"#1E88CE",WARNING:"#F2C037",PRIMARY_NAME:"primary",SECONDARY_NAME:"secondary",TERTIARY_NAME:"tertiary",POSITIVE_NAME:"positive",NEGATIVE_NAME:"negative",INFO_NAME:"info",WARNING_NAME:"warning",COLOR_PRIMARY:"primary",COLOR_SECONDARY:"secondary",COLOR_TERTIARY:"tertiary",COLOR_POSITIVE:"positive",COLOR_NEGATIVE:"negative",COLOR_INFO:"info",COLOR_WARNING:"warning",COLOR_LIGHT:"light",COLOR_DARK:"dark",COLOR_FADED:"faded"},n={SPINNER_STOPPED_COLOR:s.MAIN_COLOR,SPINNER_LOADING_COLOR:s.MAIN_YELLOW,SPINNER_MC_RED:s.MAIN_RED,SPINNER_ERROR_COLOR:s.NEGATIVE_NAME,SPINNER_ELEPHANT_DEFAULT_COLOR:"#010102"},a={SPINNER_LOADING:{ballColor:n.SPINNER_LOADING_COLOR,color:n.SPINNER_LOADING_COLOR,animated:!0},SPINNER_STOPPED:{color:n.SPINNER_STOPPED_COLOR,animated:!1},SPINNER_ERROR:{color:n.SPINNER_ERROR_COLOR,animated:!1,time:2,then:{color:n.SPINNER_STOPPED_COLOR,animated:!1}},WHITE_SPACE_PERCENTAGE:.12},r={USERNAME_MIN_LENGTH:6,PSW_MIN_LENGTH:8,PSW_MAX_LENGTH:32,READY:0,WAITING:1,REFRESHING:2,IMAGE_NOT_FOUND_SRC:"image-off-outline.png",COOKIE_TOKEN:"klab_auth",PARAM_TOKEN:"token",PARAM_APP:"app",DEFAULT_LOGO:"images/k.explorer-logo-with-circle_64.svg"},i={WS_USERS:"api/v2/users",WS_GET_IMAGES:"engine/project/resource/get"},l={LOG_IN:{method:"POST",url:`${i.WS_USERS}/log-in?remote=true`},LOG_OUT:{method:"POST",url:`${i.WS_USERS}/log-out`},GET_IMAGE:{method:"GET",url:i.WS_GET_IMAGES}};const c={URL:__ENV__.KEYCLOAK_URL,REALM:"im",CLIENT_ID:"k.Engine",TOKEN:"vue-token",REFRESH_TOKEN:"vue-refresh-token",BEARER:"Bearer "}},"7e6d":function(e,t,o){},9803:function(e,t,o){},"9ba0":function(e,t,o){},e42d:function(e,t,o){"use strict";o("9ba0")},e50c:function(e,t,o){"use strict";o("ea7e")},ea7e:function(e,t,o){},f439:function(e,t,o){}}); \ No newline at end of file