!/**
 * Highstock JS v13.0.0 (2026-06-11)
 * @module highcharts/modules/full-screen
 * @requires highcharts
 *
 * Advanced Highcharts Stock tools
 *
 * (c) 2010-2026 Highsoft AS
 * Author: Torstein Hønsi
 *
 * A commercial license may be required depending on use,
 * see www.highcharts.com/license
 */function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(e._Highcharts,e._Highcharts.AST):"function"==typeof define&&define.amd?define("highcharts/modules/full-screen",["highcharts/highcharts"],function(e){return t(e,e.AST)}):"object"==typeof exports?exports["highcharts/modules/full-screen"]=t(e._Highcharts,e._Highcharts.AST):e.Highcharts=t(e.Highcharts,e.Highcharts.AST)}("u"<typeof window?this:window,function(e,t){return function(){"use strict";var n={660:function(e){e.exports=t},944:function(t){t.exports=e}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e](i,i.exports,o),i.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var i={};o.d(i,{default:function(){return d}});var s=o(944),u=o.n(s),l=o(660),c=o.n(l),h=u().composed;function p(){this.fullscreen=new a(this)}var a=function(){function e(e){this.chart=e,this.isOpen=!1;var t=e.renderTo;!this.browserProps&&("function"==typeof t.requestFullscreen?this.browserProps={fullscreenChange:"fullscreenchange",requestFullscreen:"requestFullscreen",exitFullscreen:"exitFullscreen"}:t.mozRequestFullScreen?this.browserProps={fullscreenChange:"mozfullscreenchange",requestFullscreen:"mozRequestFullScreen",exitFullscreen:"mozCancelFullScreen"}:t.webkitRequestFullScreen?this.browserProps={fullscreenChange:"webkitfullscreenchange",requestFullscreen:"webkitRequestFullScreen",exitFullscreen:"webkitExitFullscreen"}:t.msRequestFullscreen&&(this.browserProps={fullscreenChange:"MSFullscreenChange",requestFullscreen:"msRequestFullscreen",exitFullscreen:"msExitFullscreen"}))}return e.compose=function(e){(0,s.pushUnique)(h,"Fullscreen")&&(0,s.addEvent)(e,"beforeRender",p)},e.prototype.close=function(){var e=this,t=e.chart,n=t.options.chart;(0,s.fireEvent)(t,"fullscreenClose",void 0,function(){e.isOpen&&e.browserProps&&t.container.ownerDocument instanceof Document&&t.container.ownerDocument[e.browserProps.exitFullscreen](),e.unbindFullscreenEvent&&(e.unbindFullscreenEvent=e.unbindFullscreenEvent()),t.setSize(e.origWidth,e.origHeight,!1),e.origWidth=void 0,e.origHeight=void 0,n.width=e.origWidthOption,n.height=e.origHeightOption,e.origWidthOption=void 0,e.origHeightOption=void 0,e.isOpen=!1,e.setButtonText()})},e.prototype.open=function(){var e=this,t=e.chart,n=t.options.chart;(0,s.fireEvent)(t,"fullscreenOpen",void 0,function(){if(n&&(e.origWidthOption=n.width,e.origHeightOption=n.height),e.origWidth=t.chartWidth,e.origHeight=t.chartHeight,e.browserProps){var r=(0,s.addEvent)(t.container.ownerDocument,e.browserProps.fullscreenChange,function(){e.isOpen?(e.isOpen=!1,e.close()):(t.setSize(null,null,!1),e.isOpen=!0,e.setButtonText())}),o=(0,s.addEvent)(t,"destroy",r);e.unbindFullscreenEvent=function(){r(),o()};var i=t.renderTo[e.browserProps.requestFullscreen]();i&&i.catch(function(){alert("Full screen is not supported inside a frame.")})}})},e.prototype.setButtonText=function(){var e,t,n=this.chart,r=null==(e=n.exporting)?void 0:e.divElements,o=n.options.exporting,i=o&&o.buttons&&o.buttons.contextButton.menuItems,s=n.options.lang;if((null==o?void 0:o.menuItemDefinitions)&&(null==s?void 0:s.exitFullscreen)&&s.viewFullscreen&&i&&r){var u=r[i.indexOf("viewFullscreen")];u&&c().setElementHTML(u,this.isOpen?s.exitFullscreen:(null==(t=o.menuItemDefinitions.viewFullscreen)?void 0:t.text)||s.viewFullscreen)}},e.prototype.toggle=function(){this.isOpen?this.close():this.open()},e}(),f=u();f.Fullscreen=f.Fullscreen||a,f.Fullscreen.compose(f.Chart);var d=u();return i.default}()});