define("local_treestudyplan/report-viewer-components",["exports","./simpleline","core/str","./string-helper","core/ajax","core/notification","./svgarc","./debugger","core/config"],(function(_exports,_simpleline,_str,_stringHelper,_ajax,_notification,_svgarc,_debugger,_config){function_interopRequireDefault(obj){returnobj&&obj.__esModule?obj:{default:obj}}function_createForOfIteratorHelper(o,allowArrayLike){varit="undefined"!=typeofSymbol&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=function(o,minLen){if(!o)return;if("string"==typeofo)return_arrayLikeToArray(o,minLen);varn=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)returnArray.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return_arrayLikeToArray(o,minLen)}(o))||allowArrayLike&&o&&"number"==typeofo.length){it&&(o=it);vari=0,F=function(){};return{s:F,n:function(){returni>=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function(_e){throw_e},f:F}}thrownewTypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}varerr,normalCompletion=!0,didErr=!1;return{s:function(){it=it.call(o)},n:function(){varstep=it.next();returnnormalCompletion=step.done,step},e:function(_e2){didErr=!0,err=_e2},f:function(){try{normalCompletion||null==it.return||it.return()}finally{if(didErr)throwerr}}}}function_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(vari=0,arr2=newArray(len);i<len;i++)arr2[i]=arr[i];returnarr2}Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void0,_notification=_interopRequireDefault(_notification),_debugger=_interopRequireDefault(_debugger),_config=_interopRequireDefault(_config);varπ=Math.PI,_default2={install:function(Vue){new_debugger.default("treestudyplan-viewer").enable();varlastCaller=null;functionscrollCurrentIntoView(handle){varelCurrentHeader=document.querySelector(".r-studyplan-scrollable").querySelector(".s-studyline-header-period.current");!elCurrentHeader||handle&&handle==lastCaller||(lastCaller=handle,elCurrentHeader.scrollIntoView({behavior:"smooth",block:"start",inline:"center"}))}varstrings=(0,_stringHelper.load_strings)({invalid:{error:"error"},grading:{ungraded:"ungraded",graded:"graded",allgraded:"allgraded",unsubmitted:"unsubmitted",nogrades:"nogrades",unknown:"unknown"},completion:{completed:"completion_completed",incomplete:"completion_incomplete",completed_pass:"completion_passed",completed_fail:"completion_failed",ungraded:"ungraded",aggregation_all:"aggregation_all",aggregation_any:"aggregation_any",aggregation_overall_all:"aggregation_overall_all",aggregation_overall_any:"aggregation_overall_any",completion_not_configured:"completion_not_configured",configure_completion:"configure_completion",view_completion_report:"view_completion_report"},badge:{share_badge:"share_badge",dateissued:"dateissued",dateexpire:"dateexpire",badgeinfo:"badgeinfo",badgeissuedstats:"badgeissuedstats"},course:{completion_incomplete:"completion_incomplete",completion_failed:"completion_failed",completion_pending:"completion_pending",completion_progress:"completion_progress",completion_completed:"completion_completed",completion_good:"completion_good",completion_excellent:"completion_excellent",view_feedback:"view_feedback",coursetiming_past:"coursetiming_past",coursetiming_present:"coursetiming_present",coursetiming_future:"coursetiming_future",required_goal:"required_goal"},teachercourse:{select_conditions:"select_conditions",select_grades:"select_grades",coursetiming_past:"coursetiming_past",coursetiming_present:"coursetiming_present",coursetiming_future:"coursetiming_future",grade_include:"grade_include",grade_require:"grade_require",required_goal:"required_goal"}});functionisVisible(elem){return!!(elem.offsetWidth||elem.offsetHeight||elem.getClientRects().length)}varItemEventBus=newVue;Vue.component("r-progress-circle",{props:{value:{type:Number},max:{type:Number