aboutsummaryrefslogtreecommitdiffstats
path: root/tests/MATLAB-Dateien/index-matlabonlineserver_data/bundle_003.js
blob: 7c4e7ff80d05a3be7b256f2b9ab087f0abe47784 (plain)
1
2
/*! For license information please see bundle.mwBundle.simulink_file_preview_plugin.js.LICENSE.txt */
(function(){(this||window).webpackJsonp.registerAbsMids({"7c1cede0fa96821f1d00933e343d2e2af30a4286":"7c1cede0fa96821f1d00933e343d2e2af30a4286","8e5d24b71f86716e7cc6d86d776c7dbfc35f9bdf":"8e5d24b71f86716e7cc6d86d776c7dbfc35f9bdf","dojo/Deferred":"dojo/Deferred","dojo/Evented":"dojo/Evented","dojo/_base/Deferred":"dojo/_base/Deferred","dojo/_base/array":"dojo/_base/array","dojo/_base/config":"dojo/_base/config","dojo/_base/connect":"dojo/_base/connect","dojo/_base/declare":"dojo/_base/declare","dojo/_base/event":"dojo/_base/event","dojo/_base/json":"dojo/_base/json","dojo/_base/kernel":"dojo/_base/kernel","dojo/_base/lang":"dojo/_base/lang","dojo/_base/sniff":"dojo/_base/sniff","dojo/_base/window":"dojo/_base/window","dojo/_base/xhr":"dojo/_base/xhr","dojo/aspect":"dojo/aspect","dojo/dom":"dojo/dom","dojo/dom-attr":"dojo/dom-attr","dojo/dom-construct":"dojo/dom-construct","dojo/dom-form":"dojo/dom-form","dojo/dom-geometry":"dojo/dom-geometry","dojo/dom-prop":"dojo/dom-prop","dojo/dom-style":"dojo/dom-style","dojo/errors/CancelError":"dojo/errors/CancelError","dojo/errors/RequestError":"dojo/errors/RequestError","dojo/errors/RequestTimeoutError":"dojo/errors/RequestTimeoutError","dojo/errors/create":"dojo/errors/create","dojo/has":"dojo/has","dojo/i18n":"dojo/i18n","dojo/i18n!simulink_file_preview_plugin/l10n/resources/sltemplate/nls/Preview":"dojo/i18n!simulink_file_preview_plugin/l10n/resources/sltemplate/nls/Preview","dojo/io-query":"dojo/io-query","dojo/json":"dojo/json","dojo/keys":"dojo/keys","dojo/mouse":"dojo/mouse","dojo/on":"dojo/on","dojo/promise/Promise":"dojo/promise/Promise","dojo/promise/all":"dojo/promise/all","dojo/request/handlers":"dojo/request/handlers","dojo/request/script":"dojo/request/script","dojo/request/util":"dojo/request/util","dojo/request/watch":"dojo/request/watch","dojo/request/xhr":"dojo/request/xhr","dojo/sniff":"dojo/sniff","dojo/topic":"dojo/topic","dojo/when":"dojo/when","dojox/cometd/AckExtension":"dojox/cometd/AckExtension","dojox/cometd/cometd":"dojox/cometd/cometd","mw-deprecation-utils/deprecation":"mw-deprecation-utils/deprecation","mw-html-utils/HtmlUtils":"mw-html-utils/HtmlUtils","mw-html-utils/_parseHtml/sanitize":"mw-html-utils/_parseHtml/sanitize","mw-log/Log":"mw-log/Log","mw-log/impl/Backlog":"mw-log/impl/Backlog","mw-log/impl/Levels":"mw-log/impl/Levels","mw-log/impl/Modes":"mw-log/impl/Modes","mw-log/util/LogUtils":"mw-log/util/LogUtils","mw-messageservice/MessageService":"mw-messageservice/MessageService","mw-messageservice/messageserviceimpl/MessageServiceAsync":"mw-messageservice/messageserviceimpl/MessageServiceAsync","mw-messageservice/messageserviceimpl/MessageServiceBase":"mw-messageservice/messageserviceimpl/MessageServiceBase","mw-messageservice/messageserviceimpl/MessageServiceReqResp":"mw-messageservice/messageserviceimpl/MessageServiceReqResp","mw-messageservice/messageserviceimpl/MessageServiceState":"mw-messageservice/messageserviceimpl/MessageServiceState","mw-messageservice/messageserviceimpl/transportEnums":"mw-messageservice/messageserviceimpl/transportEnums","mw-remote/EndPointsManager":"mw-remote/EndPointsManager","mw-remote/Remote":"mw-remote/Remote","mw-remote/RemoteEndPointsManager":"mw-remote/RemoteEndPointsManager","mw-remote/ReplaceUploadIframe":"mw-remote/ReplaceUploadIframe","mw-remote/UploadToWorker":"mw-remote/UploadToWorker","mw-remote/defaultMessageMapping":"mw-remote/defaultMessageMapping","mw-remote/iframeproxy/CheckUrlService":"mw-remote/iframeproxy/CheckUrlService","mw-remote/iframeproxy/IframeProxyClient":"mw-remote/iframeproxy/IframeProxyClient","mw-remote/iframeproxy/IframeProxyReplace":"mw-remote/iframeproxy/IframeProxyReplace","mw-remote/impl/AutoDetectedTransaction":"mw-remote/impl/AutoDetectedTransaction","mw-remote/impl/FaultManager":"mw-remote/impl/FaultManager","mw-remote/impl/JsonTransaction":"mw-remote/impl/JsonTransaction","mw-remote/impl/RequestManager":"mw-remote/impl/RequestManager","mw-remote/impl/ResponseManager":"mw-remote/impl/ResponseManager","mw-remote/impl/Transaction":"mw-remote/impl/Transaction","mw-remote/serviceRegistryLookup":"mw-remote/serviceRegistryLookup","mw-remote/serviceRegistryLookup!":"mw-remote/serviceRegistryLookup!","mw-remote/utils/RemoteUrlUtils":"mw-remote/utils/RemoteUrlUtils","mw-remote/utils/SendMessageUtil":"mw-remote/utils/SendMessageUtil","mw-statemachine/StateMachine":"mw-statemachine/StateMachine","mw-statemachine/statemachineimpl/EventTrigger":"mw-statemachine/statemachineimpl/EventTrigger","mw-statemachine/statemachineimpl/MessageTrigger":"mw-statemachine/statemachineimpl/MessageTrigger","mw-statemachine/statemachineimpl/RemoteTrigger":"mw-statemachine/statemachineimpl/RemoteTrigger","mw-statemachine/statemachineimpl/State":"mw-statemachine/statemachineimpl/State","mw-statemachine/statemachineimpl/TimeoutTrigger":"mw-statemachine/statemachineimpl/TimeoutTrigger","mw-statemachine/statemachineimpl/Transition":"mw-statemachine/statemachineimpl/Transition","mw-statemachine/statemachineimpl/Trigger":"mw-statemachine/statemachineimpl/Trigger","mw-utils/Utils":"mw-utils/Utils","mw-utils/deprecation":"mw-utils/deprecation","simulink_file_preview_plugin/_impl/SimulinkFilePreviewPlugin":"simulink_file_preview_plugin/_impl/SimulinkFilePreviewPlugin","simulink_file_preview_plugin/index":"simulink_file_preview_plugin/index","simulink_file_preview_plugin/l10n/resources/sltemplate/nls/Preview":"simulink_file_preview_plugin/l10n/resources/sltemplate/nls/Preview","simulink_file_preview_plugin/l10n/resources/sltemplate/nls/ja-jp/Preview":"simulink_file_preview_plugin/l10n/resources/sltemplate/nls/ja-jp/Preview","simulink_file_preview_plugin/l10n/resources/sltemplate/nls/ko-kr/Preview":"simulink_file_preview_plugin/l10n/resources/sltemplate/nls/ko-kr/Preview","simulink_file_preview_plugin/l10n/resources/sltemplate/nls/zh-cn/Preview":"simulink_file_preview_plugin/l10n/resources/sltemplate/nls/zh-cn/Preview"},{MW_BUNDLE_CHUNK_ID:"mwBundle.simulink_file_preview_plugin"})})(),(window.webpackJsonp=window.webpackJsonp||[]).push([["mwBundle.simulink_file_preview_plugin"],{0:function(e,t,n){e.exports=n},"7c1cede0fa96821f1d00933e343d2e2af30a4286":function(e,t,n){var r,i;r=[],i=n.dj.d(r,(function(){return function(e,t,n,r){var i,o,s;if(e.load(t,n,(function(e){o=e,s=!0,i&&i(e)}),{isBuild:!0}),s)return o;if(!r)throw new Error(t+" unavailable");return(o=new Promise((function(e){i=e}))).__DOJO_WEBPACK_DEFINE_PROMISE__=!0,o}}),e,t),e.exports=i},"8e5d24b71f86716e7cc6d86d776c7dbfc35f9bdf":function(e,t){e.exports=void 0},"dojo/Deferred":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/has"]),n(n.dj.r.absMids["dojo/_base/lang"]),n(n.dj.r.absMids["dojo/errors/CancelError"]),n(n.dj.r.absMids["dojo/promise/Promise"]),n(n.dj.r.absMids["8e5d24b71f86716e7cc6d86d776c7dbfc35f9bdf"])],i=n.dj.d(r,(function(e,t,n,r,i){"use strict";var o="This deferred has already been fulfilled.",s=Object.freeze||function(){},a=function(t,n,r,i,o){e("config-deferredInstrumentation")&&2===n&&u.instrumentRejected&&0===t.length&&u.instrumentRejected(r,!1,i,o);for(var s=0;s<t.length;s++)c(t[s],n,r,i)},c=function(t,n,r,i){var o=t[n],s=t.deferred;if(o)try{var a=o(r);if(0===n)void 0!==a&&l(s,n,a);else{if(a&&"function"==typeof a.then)return t.cancel=a.cancel,void a.then(d(s,1),d(s,2),d(s,0));l(s,1,a)}}catch(e){l(s,2,e)}else l(s,n,r);e("config-deferredInstrumentation")&&2===n&&u.instrumentRejected&&u.instrumentRejected(r,!!o,i,s.promise)},d=function(e,t){return function(n){l(e,t,n)}},l=function(e,t,n){if(!e.isCanceled())switch(t){case 0:e.progress(n);break;case 1:e.resolve(n);break;case 2:e.reject(n)}},u=function(t){var i,d,l,h=this.promise=new r,f=this,p=!1,m=[];e("config-deferredInstrumentation")&&Error.captureStackTrace&&(Error.captureStackTrace(f,u),Error.captureStackTrace(h,u)),this.isResolved=h.isResolved=function(){return 1===i},this.isRejected=h.isRejected=function(){return 2===i},this.isFulfilled=h.isFulfilled=function(){return!!i},this.isCanceled=h.isCanceled=function(){return p},this.progress=function(e,t){if(i){if(!0===t)throw new Error(o);return h}return a(m,0,e,null,f),h},this.resolve=function(e,t){if(i){if(!0===t)throw new Error(o);return h}return a(m,i=1,d=e,null,f),m=null,h};var g=this.reject=function(t,n){if(i){if(!0===n)throw new Error(o);return h}return e("config-deferredInstrumentation")&&Error.captureStackTrace&&Error.captureStackTrace(l={},g),a(m,i=2,d=t,l,f),m=null,h};this.then=h.then=function(e,t,n){var r=[n,e,t];return r.cancel=h.cancel,r.deferred=new u((function(e){return r.cancel&&r.cancel(e)})),i&&!m?c(r,i,d,l):m.push(r),r.deferred.promise},this.cancel=h.cancel=function(e,r){if(i){if(!0===r)throw new Error(o)}else{if(t){var s=t(e);e=void 0===s?e:s}if(p=!0,!i)return void 0===e&&(e=new n),g(e),e;if(2===i&&d===e)return e}},s(h)};return u.prototype.toString=function(){return"[object Deferred]"},i&&i(u),u}),e,t),e.exports=i},"dojo/Evented":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/aspect"]),n(n.dj.r.absMids["dojo/on"])],i=n.dj.d(r,(function(e,t){"use strict";var n=e.after;function r(){}return r.prototype={on:function(e,r){return t.parse(this,e,r,(function(e,t){return n(e,"on"+t,r,!0)}))},emit:function(e,n){var r=[this];return r.push.apply(r,arguments),t.emit.apply(t,r)}},r}),e,t),e.exports=i},"dojo/_base/Deferred":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/_base/kernel"]),n(n.dj.r.absMids["dojo/Deferred"]),n(n.dj.r.absMids["dojo/promise/Promise"]),n(n.dj.r.absMids["dojo/errors/CancelError"]),n(n.dj.r.absMids["dojo/has"]),n(n.dj.r.absMids["dojo/_base/lang"]),n(n.dj.r.absMids["dojo/when"])],i=n.dj.d(r,(function(e,t,n,r,i,o,s){var a=function(){},c=Object.freeze||function(){},d=e.Deferred=function(e){var s,l,u,h,f,p,m,g=this.promise=new n;function b(e){if(l)throw new Error("This deferred has already been resolved");s=e,l=!0,v()}function v(){for(var e;!e&&m;){var n=m;m=m.next,(e=n.progress==a)&&(l=!1);var r=f?n.error:n.resolved;if(i("config-useDeferredInstrumentation")&&f&&t.instrumentRejected&&t.instrumentRejected(s,!!r),r)try{var c=r(s);if(c&&"function"==typeof c.then){c.then(o.hitch(n.deferred,"resolve"),o.hitch(n.deferred,"reject"),o.hitch(n.deferred,"progress"));continue}var d=e&&void 0===c;e&&!d&&(f=c instanceof Error),n.deferred[d&&f?"reject":"resolve"](d?s:c)}catch(e){n.deferred.reject(e)}else f?n.deferred.reject(s):n.deferred.resolve(s)}}this.isResolved=g.isResolved=function(){return 0==h},this.isRejected=g.isRejected=function(){return 1==h},this.isFulfilled=g.isFulfilled=function(){return h>=0},this.isCanceled=g.isCanceled=function(){return u},this.resolve=this.callback=function(e){this.fired=h=0,this.results=[e,null],b(e)},this.reject=this.errback=function(e){f=!0,this.fired=h=1,i("config-useDeferredInstrumentation")&&t.instrumentRejected&&t.instrumentRejected(e,!!m),b(e),this.results=[null,e]},this.progress=function(e){for(var t=m;t;){var n=t.progress;n&&n(e),t=t.next}},this.addCallbacks=function(e,t){return this.then(e,t,a),this},g.then=this.then=function(e,t,n){var r=n==a?this:new d(g.cancel),i={resolved:e,error:t,progress:n,deferred:r};return m?p=p.next=i:m=p=i,l&&v(),r.promise};var _=this;g.cancel=this.cancel=function(){if(!l){var t=e&&e(_);l||(t instanceof Error||(t=new r(t)),t.log=!1,_.reject(t))}u=!0},c(g)};return o.extend(d,{addCallback:function(t){return this.addCallbacks(o.hitch.apply(e,arguments))},addErrback:function(t){return this.addCallbacks(null,o.hitch.apply(e,arguments))},addBoth:function(t){var n=o.hitch.apply(e,arguments);return this.addCallbacks(n,n)},fired:-1}),d.when=e.when=s,d}),e,t),e.exports=i},"dojo/_base/array":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/_base/kernel"]),n(n.dj.r.absMids["dojo/has"]),n(n.dj.r.absMids["dojo/_base/lang"])],i=n.dj.d(r,(function(e,t,n){var r={};function i(e){return r[e]=new Function("item","index","array",e)}function o(e){var t=!e;return function(n,o,s){var a,c=0,d=n&&n.length||0;if(d&&"string"==typeof n&&(n=n.split("")),"string"==typeof o&&(o=r[o]||i(o)),s){for(;c<d;++c)if(a=!o.call(s,n[c],c,n),e^a)return!a}else for(;c<d;++c)if(a=!o(n[c],c,n),e^a)return!a;return t}}function s(e){var t=1,n=0,r=0;return e||(t=n=r=-1),function(i,o,s,c){if(c&&t>0)return a.lastIndexOf(i,o,s);var d,l=i&&i.length||0,u=e?l+r:n;for(void 0===s?d=e?n:l+r:s<0?(d=l+s)<0&&(d=n):d=s>=l?l+r:s,l&&"string"==typeof i&&(i=i.split(""));d!=u;d+=t)if(i[d]==o)return d;return-1}}var a={every:o(!1),some:o(!0),indexOf:s(!0),lastIndexOf:s(!1),forEach:function(e,t,n){var o=0,s=e&&e.length||0;if(s&&"string"==typeof e&&(e=e.split("")),"string"==typeof t&&(t=r[t]||i(t)),n)for(;o<s;++o)t.call(n,e[o],o,e);else for(;o<s;++o)t(e[o],o,e)},map:function(e,t,n,o){var s=0,a=e&&e.length||0,c=new(o||Array)(a);if(a&&"string"==typeof e&&(e=e.split("")),"string"==typeof t&&(t=r[t]||i(t)),n)for(;s<a;++s)c[s]=t.call(n,e[s],s,e);else for(;s<a;++s)c[s]=t(e[s],s,e);return c},filter:function(e,t,n){var o,s=0,a=e&&e.length||0,c=[];if(a&&"string"==typeof e&&(e=e.split("")),"string"==typeof t&&(t=r[t]||i(t)),n)for(;s<a;++s)o=e[s],t.call(n,o,s,e)&&c.push(o);else for(;s<a;++s)t(o=e[s],s,e)&&c.push(o);return c},clearCache:function(){r={}}};return t("extend-dojo")&&n.mixin(e,a),a}),e,t),e.exports=i},"dojo/_base/config":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/has"]),n.dj.c(e.i)],i=n.dj.d(r,(function(e,t){var n,r={};if(e("dojo-config-api")){var i,o=t.rawConfig;for(i in o)r[i]=o[i]}else{var s=function(t,n,r){for(i in t)"has"!=i&&e.add(n+i,t[i],0,r)},a=function(){return this}();s(r=e("dojo-loader")?t.rawConfig:a.dojoConfig||a.djConfig||{},"config",1),s(r.has,"",1)}(r.updateLocale=function(e,t){var n;if(e.indexOf(t)>=0&&"zh"!==t)r.locale=t;else if("zh"!==(n=t.split("-")[0])){for(var i=0;i<e.length;i+=1)if(n===e[i].split("-")[0]){r.locale=e[i];break}r.locale||(r.locale="en-us".toLowerCase())}else r.locale="en-us".toLocaleLowerCase()},r.locale||"undefined"==typeof navigator)||(n=r._testLanguageOverride||navigator.language||navigator.userLanguage)&&(n=n.toLowerCase(),r.supportedLocales&&r.updateLocale(r.supportedLocales,n));return r.locale||(r.locale="en-us"),r}),e,t),e.exports=i},"dojo/_base/connect":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/_base/kernel"]),n(n.dj.r.absMids["dojo/on"]),n(n.dj.r.absMids["dojo/topic"]),n(n.dj.r.absMids["dojo/aspect"]),n(n.dj.r.absMids["dojo/_base/event"]),n(n.dj.r.absMids["dojo/mouse"]),n(n.dj.r.absMids["dojo/_base/sniff"]),n(n.dj.r.absMids["dojo/_base/lang"]),n(n.dj.r.absMids["dojo/keys"])],i=n.dj.d(r,(function(e,t,n,r,i,o,s,a){function c(n,i,s,c,l){if(c=a.hitch(s,c),!n||!n.addEventListener&&!n.attachEvent)return r.after(n||e.global,i,c,!0);if("string"==typeof i&&"on"==i.substring(0,2)&&(i=i.substring(2)),n||(n=e.global),!l)switch(i){case"keypress":i=d;break;case"mouseenter":i=o.enter;break;case"mouseleave":i=o.leave}return t(n,i,c,l)}s.add("events-keypress-typed",(function(){var e={charCode:0};try{((e=document.createEvent("KeyboardEvent")).initKeyboardEvent||e.initKeyEvent).call(e,"keypress",!0,!0,null,!1,!1,!1,!1,9,3)}catch(e){}return 0==e.charCode&&!s("opera")}));var d,l={106:42,111:47,186:59,187:43,188:44,189:45,190:46,191:47,192:96,219:91,220:92,221:93,222:39,229:113},u=s("mac")?"metaKey":"ctrlKey",h=function(e,t){var n=a.mixin({},e,t);return f(n),n.preventDefault=function(){e.preventDefault()},n.stopPropagation=function(){e.stopPropagation()},n};function f(e){e.keyChar=e.charCode?String.fromCharCode(e.charCode):"",e.charOrCode=e.keyChar||e.keyCode}if(s("events-keypress-typed")){d=function(e,n){var r=t(e,"keydown",(function(e){var t=e.keyCode,r=13!=t&&32!=t&&(27!=t||!s("ie"))&&(t<48||t>90)&&(t<96||t>111)&&(t<186||t>192)&&(t<219||t>222)&&229!=t;if(r||e.ctrlKey){var i=r?0:t;if(e.ctrlKey){if(3==t||13==t)return n.call(e.currentTarget,e);i>95&&i<106?i-=48:!e.shiftKey&&i>=65&&i<=90?i+=32:i=l[i]||i}var o=h(e,{type:"keypress",faux:!0,charCode:i});n.call(e.currentTarget,o),s("ie")&&function(e,t){try{e.keyCode=t}catch(e){return 0}}(e,o.keyCode)}})),i=t(e,"keypress",(function(e){var t=e.charCode;return e=h(e,{charCode:t=t>=32?t:0,faux:!0}),n.call(this,e)}));return{remove:function(){r.remove(),i.remove()}}}}else d=s("opera")?function(e,n){return t(e,"keypress",(function(e){var t=e.which;return 3==t&&(t=99),t=t<32&&!e.shiftKey?0:t,e.ctrlKey&&!e.shiftKey&&t>=65&&t<=90&&(t+=32),n.call(this,h(e,{charCode:t}))}))}:function(e,n){return t(e,"keypress",(function(e){return f(e),n.call(this,e)}))};var p={_keypress:d,connect:function(e,t,n,r,i){var o=arguments,s=[],a=0;s.push("string"==typeof o[0]?null:o[a++],o[a++]);var d=o[a+1];s.push("string"==typeof d||"function"==typeof d?o[a++]:null,o[a++]);for(var l=o.length;a<l;a++)s.push(o[a]);return c.apply(this,s)},disconnect:function(e){e&&e.remove()},subscribe:function(e,t,r){return n.subscribe(e,a.hitch(t,r))},publish:function(e,t){return n.publish.apply(n,[e].concat(t))},connectPublisher:function(e,t,n){var r=function(){p.publish(e,arguments)};return n?p.connect(t,n,r):p.connect(t,r)},isCopyKey:function(e){return e[u]}};return p.unsubscribe=p.disconnect,s("extend-dojo")&&a.mixin(e,p),p}),e,t),e.exports=i},"dojo/_base/declare":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/_base/kernel"]),n(n.dj.r.absMids["dojo/has"]),n(n.dj.r.absMids["dojo/_base/lang"])],i=n.dj.d(r,(function(e,t,n){var r,i=n.mixin,o=Object.prototype,s=o.toString,a=0,c="constructor";function d(e,t){throw new Error("declare"+(t?" "+t:"")+": "+e)}function l(e,t,n){var r,i,s,a,l,u,h,f,p,m=this._inherited=this._inherited||{};if("string"==typeof e&&(r=e,e=t,t=n),n=0,a=e.callee,(r=r||a.nom)||d("can't deduce a name to call inherited()",this.declaredClass),s=(l=this.constructor._meta).bases,p=m.p,r!=c){if(m.c!==a&&(p=0,(l=(u=s[0])._meta).hidden[r]!==a)){(i=l.chains)&&"string"==typeof i[r]&&d("calling chained method with inherited: "+r,this.declaredClass);do{if(l=u._meta,h=u.prototype,l&&(h[r]===a&&h.hasOwnProperty(r)||l.hidden[r]===a))break}while(u=s[++p]);p=u?p:-1}if(u=s[++p])if(h=u.prototype,u._meta&&h.hasOwnProperty(r))n=h[r];else{f=o[r];do{if((n=(h=u.prototype)[r])&&(u._meta?h.hasOwnProperty(r):n!==f))break}while(u=s[++p])}n=u&&n||o[r]}else{if(m.c!==a&&(p=0,(l=s[0]._meta)&&l.ctor!==a)){for((i=l.chains)&&"manual"===i.constructor||d("calling chained constructor with inherited",this.declaredClass);(u=s[++p])&&(!(l=u._meta)||l.ctor!==a););p=u?p:-1}for(;(u=s[++p])&&!(n=(l=u._meta)?l.ctor:u););n=u&&n}if(m.c=n,m.p=p,n)return!0===t?n:n.apply(this,t||e)}function u(e,t){return"string"==typeof e?this.__inherited(e,t,!0):this.__inherited(e,!0)}r=t("csp-restrictions")?function(){}:new Function;var h=e.config.isDebug?function(e,t,n){var r=this.getInherited(e,t);if(r)return r.apply(this,n||t||e)}:l;function f(e){for(var t=this.constructor._meta.bases,n=0,r=t.length;n<r;++n)if(t[n]===e)return!0;return this instanceof e}function p(e,r){for(var i in r)i!=c&&r.hasOwnProperty(i)&&(e[i]=r[i]);if(t("bug-for-in-skips-shadowed"))for(var o=n._extraNames,s=o.length;s;)(i=o[--s])!=c&&r.hasOwnProperty(i)&&(e[i]=r[i])}function m(e){return y.safeMixin(this.prototype,e),this}function g(e,t){return e instanceof Array||"function"==typeof e||(t=e,e=void 0),t=t||{},y([this].concat(e=e||[]),t)}function b(e,t,n){return function(){var r,i,o,s=0,a=1;for(n&&(s=t.length-1,a=-1);r=t[s];s+=a)(o=((i=r._meta)?i.hidden:r.prototype)[e])&&o.apply(this,arguments)}}function v(e){r.prototype=e.prototype;var t=new r;return r.prototype=null,t}function _(e){var t=e.callee,n=v(t);return t.apply(n,e),n}function y(e,t,r){"string"!=typeof e&&(r=t,t=e,e=""),r=r||{};var j,w,M,E,T,S,k,x=1,C=t;if("[object Array]"==s.call(t)?(M=(S=function(e,t){for(var n,r,i,o,c,l,u,h,f=[],p=[{cls:0,refs:[]}],m={},g=1,b=e.length,v=0;v<b;++v){for((i=e[v])?"[object Function]"!=s.call(i)&&d("mixin #"+v+" is not a callable constructor.",t):d("mixin #"+v+" is unknown. Did you use dojo.require to pull it in?",t),o=0,n=(r=i._meta?i._meta.bases:[i]).length-1;n>=0;--n)(c=r[n].prototype).hasOwnProperty("declaredClass")||(c.declaredClass="uniqName_"+a++),u=c.declaredClass,m.hasOwnProperty(u)||(m[u]={count:0,refs:[],cls:r[n]},++g),l=m[u],o&&o!==l&&(l.refs.push(o),++o.count),o=l;++o.count,p[0].refs.push(o)}for(;p.length;){for(o=p.pop(),f.push(o.cls),--g;1==(h=o.refs).length;){if(!(o=h[0])||--o.count){o=0;break}f.push(o.cls),--g}if(o)for(v=0,b=h.length;v<b;++v)--(o=h[v]).count||p.push(o)}return g&&d("can't build consistent linearization",t),i=e[0],f[0]=i?i._meta&&i===f[f.length-i._meta.bases.length]?i._meta.bases.length:1:0,f}(t,e))[0],t=S[x=S.length-M]):(S=[0],t?"[object Function]"==s.call(t)?(M=t._meta,S=S.concat(M?M.bases:t)):d("base class is not a callable constructor.",e):null!==t&&d("unknown base class. Did you use dojo.require to pull it in?",e)),t)for(w=x-1;j=v(t),w;--w)((M=S[w])._meta?p:i)(j,M.prototype),(E=new Function).superclass=t,E.prototype=j,t=j.constructor=E;else j={};for(y.safeMixin(j,r),(M=r.constructor)!==o.constructor&&(M.nom=c,j.constructor=M),w=x-1;w;--w)(M=S[w]._meta)&&M.chains&&(k=i(k||{},M.chains));if(j["-chains-"]&&(k=i(k||{},j["-chains-"])),M=!k||!k.hasOwnProperty(c),S[0]=E=k&&"manual"===k.constructor?function(e){return function(){var t,n,r=arguments,i=0;if(!(this instanceof r.callee))return _(r);for(;t=e[i];++i)if(t=(n=t._meta)?n.ctor:t){t.apply(this,r);break}(t=this.postscript)&&t.apply(this,r)}}(S):1==S.length?function(e,t){return function(){var n,r=arguments,i=r,o=r[0];if(!(this instanceof r.callee))return _(r);t&&(o&&(n=o.preamble)&&(i=n.apply(this,i)||i),(n=this.preamble)&&n.apply(this,i)),e&&e.apply(this,r),(n=this.postscript)&&n.apply(this,r)}}(r.constructor,M):function(e,t){return function(){var n,r,i,o,s=arguments,a=s,c=s[0],d=e.length;if(!(this instanceof s.callee))return _(s);if(t&&(c&&c.preamble||this.preamble))for((o=new Array(e.length))[0]=s,r=0;(c=s[0])&&(n=c.preamble)&&(s=n.apply(this,s)||s),(n=(n=e[r].prototype).hasOwnProperty("preamble")&&n.preamble)&&(s=n.apply(this,s)||s),++r!=d;)o[r]=s;for(r=d-1;r>=0;--r)(n=(i=(n=e[r])._meta)?i.ctor:n)&&n.apply(this,o?o[r]:s);(n=this.postscript)&&n.apply(this,a)}}(S,M),E._meta={bases:S,hidden:r,chains:k,parents:C,ctor:r.constructor},E.superclass=t&&t.prototype,E.extend=m,E.createSubclass=g,E.prototype=j,j.constructor=E,j.getInherited=u,j.isInstanceOf=f,j.inherited=h,j.__inherited=l,e&&(j.declaredClass=e,n.setObject(e,E)),k)for(T in k)j[T]&&"string"==typeof k[T]&&T!=c&&((M=j[T]=b(T,S,"after"===k[T])).nom=T);return E}return e.safeMixin=y.safeMixin=function(e,r){var i,a;for(i in r)(a=r[i])===o[i]&&i in o||i==c||("[object Function]"==s.call(a)&&(a.nom=i),e[i]=a);if(t("bug-for-in-skips-shadowed")&&r)for(var d=n._extraNames,l=d.length;l;)(a=r[i=d[--l]])===o[i]&&i in o||i==c||("[object Function]"==s.call(a)&&(a.nom=i),e[i]=a);return e},e.declare=y,y}),e,t),e.exports=i},"dojo/_base/event":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/_base/kernel"]),n(n.dj.r.absMids["dojo/on"]),n(n.dj.r.absMids["dojo/has"]),n(n.dj.r.absMids["dojo/dom-geometry"])],i=n.dj.d(r,(function(e,t,n,r){if(t._fixEvent){var i=t._fixEvent;t._fixEvent=function(e,t){return(e=i(e,t))&&r.normalizeEvent(e),e}}var o={fix:function(e,n){return t._fixEvent?t._fixEvent(e,n):e},stop:function(e){n("dom-addeventlistener")||e&&e.preventDefault?(e.preventDefault(),e.stopPropagation()):((e=e||window.event).cancelBubble=!0,t._preventDefault.call(e))}};return n("extend-dojo")&&(e.fixEvent=o.fix,e.stopEvent=o.stop),o}),e,t),e.exports=i},"dojo/_base/json":function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(__webpack_require__.dj.r.absMids["dojo/_base/kernel"]),__webpack_require__(__webpack_require__.dj.r.absMids["dojo/json"])],__WEBPACK_AMD_DEFINE_RESULT__=__webpack_require__.dj.d(__WEBPACK_AMD_DEFINE_ARRAY__,(function(dojo,json){return dojo.fromJson=function(js){return eval("("+js+")")},dojo._escapeString=json.stringify,dojo.toJsonIndentStr="\t",dojo.toJson=function(e,t){return json.stringify(e,(function(e,t){if(t){var n=t.__json__||t.json;if("function"==typeof n)return n.call(t)}return t}),t&&dojo.toJsonIndentStr)},dojo}),module,exports),module.exports=__WEBPACK_AMD_DEFINE_RESULT__},"dojo/_base/kernel":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/has"]),n(n.dj.r.absMids["dojo/_base/config"]),n.dj.c(e.i),n.dj.m(e)],i=n.dj.d(r,(function(e,t,n,r){var i,o,s,a=function(){return this}(),c={},d={},l={config:t,global:a,dijit:c,dojox:d},u={dojo:["dojo",l],dijit:["dijit",c],dojox:["dojox",d]},h=n.map&&n.map[r.id.match(/[^\/]+/)[0]];for(o in h)u[o]?u[o][0]=h[o]:u[o]=[h[o],{}];for(o in u)(s=u[o])[1]._scopeName=s[0],t.noGlobals||(a[s[0]]=s[1]);l.scopeMap=u,l.baseUrl=l.config.baseUrl=n.baseUrl,l.isAsync=!e("dojo-loader")||n.async,l.locale=t.locale;var f="$Rev: 91fa0cb $".match(/[0-9a-f]{7,}/);if(l.version={major:1,minor:11,patch:2,flag:"",revision:f?f[0]:NaN,toString:function(){var e=l.version;return e.major+"."+e.minor+"."+e.patch+e.flag+" ("+e.revision+")"}},e.add("extend-dojo",1),e("csp-restrictions")||Function("d","d.eval = function(){return d.global.eval ? d.global.eval(arguments[0]) : eval(arguments[0]);}")(l),e("host-rhino")?l.exit=function(e){quit(e)}:l.exit=function(){},e("host-webworker")||e.add("dojo-guarantee-console",1),e("dojo-guarantee-console")){e.add("console-as-object",(function(){return Function.prototype.bind&&console&&"object"==typeof console.log})),"undefined"!=typeof console||(console={});var p,m=["assert","count","debug","dir","dirxml","error","group","groupEnd","info","profile","profileEnd","time","timeEnd","trace","warn","log"];for(i=0;p=m[i++];)console[p]?e("console-as-object")&&(console[p]=Function.prototype.bind.call(console[p],console)):function(){var e=p+"";console[e]="log"in console?function(){var t=Array.prototype.slice.call(arguments);t.unshift(e+":"),console.log(t.join(" "))}:function(){},console[e]._fake=!0}()}if(e.add("dojo-debug-messages",!!t.isDebug),l.deprecated=l.experimental=function(){},e("dojo-debug-messages")&&(l.deprecated=function(e,t,n){var r="DEPRECATED: "+e;t&&(r+=" "+t),n&&(r+=" -- will be removed in version: "+n),console.warn(r)},l.experimental=function(e,t){var n="EXPERIMENTAL: "+e+" -- APIs subject to change without notice.";t&&(n+=" "+t),console.warn(n)}),e.add("dojo-modulePaths",1),e("dojo-modulePaths")&&t.modulePaths){l.deprecated("dojo.modulePaths","use paths configuration");var g={};for(o in t.modulePaths)g[o.replace(/\./g,"/")]=t.modulePaths[o];n({paths:g})}return e.add("dojo-moduleUrl",1),e("dojo-moduleUrl")&&(l.moduleUrl=function(e,t){l.deprecated("dojo.moduleUrl()","use require.toUrl","2.0");var r=null;return e&&(r=n.toUrl(e.replace(/\./g,"/")+(t?"/"+t:"")+"/*.*").replace(/\/\*\.\*/,"")+(t?"":"/")),r}),l._hasResource={},l}),e,t),e.exports=i},"dojo/_base/lang":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/_base/kernel"]),n(n.dj.r.absMids["dojo/has"]),n(n.dj.r.absMids["dojo/sniff"])],i=n.dj.d(r,(function(e,t){t.add("bug-for-in-skips-shadowed",(function(){for(var e in{toString:1})return 0;return 1}));var n=t("bug-for-in-skips-shadowed")?"hasOwnProperty.valueOf.isPrototypeOf.propertyIsEnumerable.toLocaleString.toString.constructor".split("."):[],r=n.length,i=function(t,n,r){r||(r=t[0]&&e.scopeMap[t[0]]?e.scopeMap[t.shift()][1]:e.global);try{for(var i=0;i<t.length;i++){var o=t[i];if(!(o in r)){if(!n)return;r[o]={}}r=r[o]}return r}catch(e){}},o=Object.prototype.toString,s=function(e,t,n){return(n||[]).concat(Array.prototype.slice.call(e,t||0))},a=/\{([^\}]+)\}/g,c={_extraNames:n,_mixin:function(e,i,o){var s,a,c,d={};for(s in i)a=i[s],s in e&&(e[s]===a||s in d&&d[s]===a)||(e[s]=o?o(a):a);if(t("bug-for-in-skips-shadowed")&&i)for(c=0;c<r;++c)a=i[s=n[c]],s in e&&(e[s]===a||s in d&&d[s]===a)||(e[s]=o?o(a):a);return e},mixin:function(e,t){e||(e={});for(var n=1,r=arguments.length;n<r;n++)c._mixin(e,arguments[n]);return e},setObject:function(e,t,n){var r=e.split("."),o=r.pop(),s=i(r,!0,n);return s&&o?s[o]=t:void 0},getObject:function(e,t,n){return e?i(e.split("."),t,n):n},exists:function(e,t){return void 0!==c.getObject(e,!1,t)},isString:function(e){return"string"==typeof e||e instanceof String},isArray:Array.isArray||function(e){return"[object Array]"==o.call(e)},isFunction:function(e){return"[object Function]"===o.call(e)},isObject:function(e){return void 0!==e&&(null===e||"object"==typeof e||c.isArray(e)||c.isFunction(e))},isArrayLike:function(e){return!!e&&!c.isString(e)&&!c.isFunction(e)&&!(e.tagName&&"form"==e.tagName.toLowerCase())&&(c.isArray(e)||isFinite(e.length))},isAlien:function(e){return e&&!c.isFunction(e)&&/\{\s*\[native code\]\s*\}/.test(String(e))},extend:function(e,t){for(var n=1,r=arguments.length;n<r;n++)c._mixin(e.prototype,arguments[n]);return e},_hitchArgs:function(t,n){var r=c._toArray(arguments,2),i=c.isString(n);return function(){var o=c._toArray(arguments),s=i?(t||e.global)[n]:n;return s&&s.apply(t||this,r.concat(o))}},hitch:function(t,n){if(arguments.length>2)return c._hitchArgs.apply(e,arguments);if(n||(n=t,t=null),c.isString(n)){if(!(t=t||e.global)[n])throw['lang.hitch: scope["',n,'"] is null (scope="',t,'")'].join("");return function(){return t[n].apply(t,arguments||[])}}return t?function(){return n.apply(t,arguments||[])}:n},delegate:function(){function e(){}return function(t,n){e.prototype=t;var r=new e;return e.prototype=null,n&&c._mixin(r,n),r}}(),_toArray:t("ie")?function(){function e(e,t,n){for(var r=n||[],i=t||0;i<e.length;i++)r.push(e[i]);return r}return function(t){return(t.item?e:s).apply(this,arguments)}}():s,partial:function(t){var n=[null];return c.hitch.apply(e,n.concat(c._toArray(arguments)))},clone:function(e){if(!e||"object"!=typeof e||c.isFunction(e))return e;if(e.nodeType&&"cloneNode"in e)return e.cloneNode(!0);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);var t,n,r;if(c.isArray(e))for(t=[],n=0,r=e.length;n<r;++n)n in e&&(t[n]=c.clone(e[n]));else t=e.constructor?new e.constructor:{};return c._mixin(t,e,c.clone)},trim:String.prototype.trim?function(e){return e.trim()}:function(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},replace:function(e,t,n){return e.replace(n||a,c.isFunction(t)?t:function(e,n){return c.getObject(n,!1,t)})}};return t("extend-dojo")&&c.mixin(e,c),c}),e,t),e.exports=i},"dojo/_base/sniff":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/_base/kernel"]),n(n.dj.r.absMids["dojo/_base/lang"]),n(n.dj.r.absMids["dojo/sniff"])],i=n.dj.d(r,(function(e,t,n){return n("host-browser")?(e._name="browser",t.mixin(e,{isBrowser:!0,isFF:n("ff"),isIE:n("ie"),isKhtml:n("khtml"),isWebKit:n("webkit"),isMozilla:n("mozilla"),isMoz:n("mozilla"),isOpera:n("opera"),isSafari:n("safari"),isChrome:n("chrome"),isMac:n("mac"),isIos:n("ios"),isAndroid:n("android"),isWii:n("wii"),isQuirks:n("quirks"),isAir:n("air")}),n):n}),e,t),e.exports=i},"dojo/_base/window":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/_base/kernel"]),n(n.dj.r.absMids["dojo/_base/lang"]),n(n.dj.r.absMids["dojo/sniff"])],i=n.dj.d(r,(function(e,t,n){var r={global:e.global,doc:e.global.document||null,body:function(t){return(t=t||e.doc).body||t.getElementsByTagName("body")[0]},setContext:function(t,n){e.global=r.global=t,e.doc=r.doc=n},withGlobal:function(t,n,i,o){var s=e.global;try{return e.global=r.global=t,r.withDoc.call(null,t.document,n,i,o)}finally{e.global=r.global=s}},withDoc:function(t,i,o,s){var a,c,d,l=r.doc,u=n("quirks"),h=n("ie");try{return e.doc=r.doc=t,e.isQuirks=n.add("quirks","BackCompat"==e.doc.compatMode,!0,!0),n("ie")&&(d=t.parentWindow)&&d.navigator&&(a=parseFloat(d.navigator.appVersion.split("MSIE ")[1])||void 0,(c=t.documentMode)&&5!=c&&Math.floor(a)!=c&&(a=c),e.isIE=n.add("ie",a,!0,!0)),o&&"string"==typeof i&&(i=o[i]),i.apply(o,s||[])}finally{e.doc=r.doc=l,e.isQuirks=n.add("quirks",u,!0,!0),e.isIE=n.add("ie",h,!0,!0)}}};return n("extend-dojo")&&t.mixin(e,r),r}),e,t),e.exports=i},"dojo/_base/xhr":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/_base/kernel"]),n(n.dj.r.absMids["dojo/_base/sniff"]),n.dj.c(e.i),n(n.dj.r.absMids["dojo/io-query"]),n(n.dj.r.absMids["dojo/dom"]),n(n.dj.r.absMids["dojo/dom-form"]),n(n.dj.r.absMids["dojo/_base/Deferred"]),n(n.dj.r.absMids["dojo/_base/config"]),n(n.dj.r.absMids["dojo/_base/json"]),n(n.dj.r.absMids["dojo/_base/lang"]),n(n.dj.r.absMids["dojo/_base/array"]),n(n.dj.r.absMids["dojo/on"]),n(n.dj.r.absMids["dojo/aspect"]),n(n.dj.r.absMids["dojo/request/watch"]),n(n.dj.r.absMids["dojo/request/xhr"]),n(n.dj.r.absMids["dojo/request/util"])],i=n.dj.d(r,(function(e,t,n,r,i,o,s,a,c,d,l,u,h,f,p,m){e._xhrObj=p._create;var g=e.config;e.objectToQuery=r.objectToQuery,e.queryToObject=r.queryToObject,e.fieldToObject=o.fieldToObject,e.formToObject=o.toObject,e.formToQuery=o.toQuery,e.formToJson=o.toJson,e._blockAsync=!1;var b=e._contentHandlers=e.contentHandlers={text:function(e){return e.responseText},json:function(e){return c.fromJson(e.responseText||null)},"json-comment-filtered":function(e){a.useCommentedJson||console.warn("Consider using the standard mimetype:application/json. json-commenting can introduce security issues. To decrease the chances of hijacking, use the standard the 'json' handler and prefix your json with: {}&&\nUse djConfig.useCommentedJson=true to turn off this message.");var t=e.responseText,n=t.indexOf("/*"),r=t.lastIndexOf("*/");if(-1==n||-1==r)throw new Error("JSON was not comment filtered");return c.fromJson(t.substring(n+2,r))},javascript:function(t){return e.eval(t.responseText)},xml:function(e){var n=e.responseXML;if(n&&t("dom-qsa2.1")&&!n.querySelectorAll&&t("dom-parser")&&(n=(new DOMParser).parseFromString(e.responseText,"application/xml")),t("ie")&&(!n||!n.documentElement)){var r=function(e){return"MSXML"+e+".DOMDocument"},i=["Microsoft.XMLDOM",r(6),r(4),r(3),r(2)];l.some(i,(function(t){try{var r=new ActiveXObject(t);r.async=!1,r.loadXML(e.responseText),n=r}catch(e){return!1}return!0}))}return n},"json-comment-optional":function(e){return e.responseText&&/^[^{\[]*\/\*/.test(e.responseText)?b["json-comment-filtered"](e):b.json(e)}};e._ioSetArgs=function(t,n,a,c){var l={args:t,url:t.url},u=null;if(t.form){var h=i.byId(t.form),f=h.getAttributeNode("action");l.url=l.url||(f?f.value:e.doc?e.doc.URL:null),u=o.toObject(h)}var p=[{}];u&&p.push(u),t.content&&p.push(t.content),t.preventCache&&p.push({"dojo.preventCache":(new Date).valueOf()}),l.query=r.objectToQuery(d.mixin.apply(null,p)),l.handleAs=t.handleAs||"text";var m=new s((function(e){e.canceled=!0,n&&n(e);var t=e.ioArgs.error;return t||((t=new Error("request cancelled")).dojoType="cancel",e.ioArgs.error=t),t}));m.addCallback(a);var b=t.load;b&&d.isFunction(b)&&m.addCallback((function(e){return b.call(t,e,l)}));var v=t.error;v&&d.isFunction(v)&&m.addErrback((function(e){return v.call(t,e,l)}));var _=t.handle;return _&&d.isFunction(_)&&m.addBoth((function(e){return _.call(t,e,l)})),m.addErrback((function(e){return c(e,m)})),g.ioPublish&&e.publish&&!1!==l.args.ioPublish&&(m.addCallbacks((function(t){return e.publish("/dojo/io/load",[m,t]),t}),(function(t){return e.publish("/dojo/io/error",[m,t]),t})),m.addBoth((function(t){return e.publish("/dojo/io/done",[m,t]),t}))),m.ioArgs=l,m};var v=function(e){var t=b[e.ioArgs.handleAs](e.ioArgs.xhr);return void 0===t?null:t},_=function(e,t){return t.ioArgs.args.failOk||console.error(e),e},y=function(t){j<=0&&(j=0,g.ioPublish&&e.publish&&(!t||t&&!1!==t.ioArgs.args.ioPublish)&&e.publish("/dojo/io/stop"))},j=0;h.after(f,"_onAction",(function(){j-=1})),h.after(f,"_onInFlight",y),e._ioCancelAll=f.cancelAll,e._ioNotifyStart=function(t){g.ioPublish&&e.publish&&!1!==t.ioArgs.args.ioPublish&&(j||e.publish("/dojo/io/start"),j+=1,e.publish("/dojo/io/send",[t]))},e._ioWatch=function(e,t,n,r){e.ioArgs.options=e.ioArgs.args;d.mixin(e,{response:e.ioArgs,isValid:function(n){return t(e)},isReady:function(t){return n(e)},handleResponse:function(t){return r(e)}}),f(e),y(e)};return e._ioAddQueryToUrl=function(e){e.query.length&&(e.url+=(-1==e.url.indexOf("?")?"?":"&")+e.query,e.query=null)},e.xhr=function(t,n,r){var i,o=e._ioSetArgs(n,(function(e){i&&i.cancel()}),v,_),s=o.ioArgs;"postData"in n?s.query=n.postData:"putData"in n?s.query=n.putData:"rawBody"in n?s.query=n.rawBody:(arguments.length>2&&!r||-1==="POST|PUT".indexOf(t.toUpperCase()))&&e._ioAddQueryToUrl(s);var a={method:t,handleAs:"text",timeout:n.timeout,withCredentials:n.withCredentials,ioArgs:s};void 0!==n.headers&&(a.headers=n.headers),void 0!==n.contentType&&(a.headers||(a.headers={}),a.headers["Content-Type"]=n.contentType),void 0!==s.query&&(a.data=s.query),void 0!==n.sync&&(a.sync=n.sync),e._ioNotifyStart(o);try{i=p(s.url,a,!0)}catch(e){return o.cancel(),o}return o.ioArgs.xhr=i.response.xhr,i.then((function(){o.resolve(o)})).otherwise((function(e){s.error=e,e.response&&(e.status=e.response.status,e.responseText=e.response.text,e.xhr=e.response.xhr),o.reject(e)})),o},e.xhrGet=function(t){return e.xhr("GET",t)},e.rawXhrPost=e.xhrPost=function(t){return e.xhr("POST",t,!0)},e.rawXhrPut=e.xhrPut=function(t){return e.xhr("PUT",t,!0)},e.xhrDelete=function(t){return e.xhr("DELETE",t)},e._isDocumentOk=function(e){return m.checkStatus(e.status)},e._getText=function(t){var n;return e.xhrGet({url:t,sync:!0,load:function(e){n=e}}),n},d.mixin(e.xhr,{_xhrObj:e._xhrObj,fieldToObject:o.fieldToObject,formToObject:o.toObject,objectToQuery:r.objectToQuery,formToQuery:o.toQuery,formToJson:o.toJson,queryToObject:r.queryToObject,contentHandlers:b,_ioSetArgs:e._ioSetArgs,_ioCancelAll:e._ioCancelAll,_ioNotifyStart:e._ioNotifyStart,_ioWatch:e._ioWatch,_ioAddQueryToUrl:e._ioAddQueryToUrl,_isDocumentOk:e._isDocumentOk,_getText:e._getText,get:e.xhrGet,post:e.xhrPost,put:e.xhrPut,del:e.xhrDelete}),e.xhr}),e,t),e.exports=i},"dojo/aspect":function(e,t,n){var r,i;r=[],i=n.dj.d(r,(function(){"use strict";function e(e){return function(t,n,r,i){var o,s=t[n];s&&s.target==t||(t[n]=o=function(){for(var e=o.nextId,t=arguments,n=o.before;n;)n.advice&&(t=n.advice.apply(this,t)||t),n=n.next;if(o.around)var r=o.around.advice(this,t);for(var i=o.after;i&&i.id<e;){if(i.advice)if(i.receiveArguments){var s=i.advice.apply(this,t);r=void 0===s?r:s}else r=i.advice.call(this,r,t);i=i.next}return r},s&&(o.around={advice:function(e,t){return s.apply(e,t)}}),o.target=t,o.nextId=o.nextId||0);var a=function(e,t,n,r){var i,o=e[t],s="around"==t;if(s){var a=n((function(){return o.advice(this,arguments)}));i={remove:function(){a&&(a=e=n=null)},advice:function(e,t){return a?a.apply(e,t):o.advice(e,t)}}}else i={remove:function(){if(i.advice){var r=i.previous,o=i.next;o||r?(r?r.next=o:e[t]=o,o&&(o.previous=r)):delete e[t],e=n=i.advice=null}},id:e.nextId++,advice:n,receiveArguments:r};if(o&&!s)if("after"==t){for(;o.next&&(o=o.next););o.next=i,i.previous=o}else"before"==t&&(e[t]=i,i.next=o,o.previous=i);else e[t]=i;return i}(o||s,e,r,i);return r=null,a}}var t=e("after");return{before:e("before"),around:e("around"),after:t}}),e,t),e.exports=i},"dojo/dom":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/sniff"]),n(n.dj.r.absMids["dojo/_base/window"])],i=n.dj.d(r,(function(e,t){if(e("ie")<=7)try{document.execCommand("BackgroundImageCache",!1,!0)}catch(e){}var n={};e("ie")?n.byId=function(e,n){if("string"!=typeof e)return e;var r=n||t.doc,i=e&&r.getElementById(e);if(i&&(i.attributes.id.value==e||i.id==e))return i;var o=r.all[e];o&&!o.nodeName||(o=[o]);for(var s=0;i=o[s++];)if(i.attributes&&i.attributes.id&&i.attributes.id.value==e||i.id==e)return i}:n.byId=function(e,n){return("string"==typeof e?(n||t.doc).getElementById(e):e)||null},n.isDescendant=function(e,t){try{for(e=n.byId(e),t=n.byId(t);e;){if(e==t)return!0;e=e.parentNode}}catch(e){}return!1},e.add("css-user-select",(function(e,t,n){if(!n)return!1;var r=n.style,i=["Khtml","O","Moz","Webkit"],o=i.length,s="userSelect";do{if(void 0!==r[s])return s}while(o--&&(s=i[o]+"UserSelect"));return!1}));var r=e("css-user-select");return n.setSelectable=r?function(e,t){n.byId(e).style[r]=t?"":"none"}:function(e,t){var r=(e=n.byId(e)).getElementsByTagName("*"),i=r.length;if(t)for(e.removeAttribute("unselectable");i--;)r[i].removeAttribute("unselectable");else for(e.setAttribute("unselectable","on");i--;)r[i].setAttribute("unselectable","on")},n}),e,t),e.exports=i},"dojo/dom-attr":function(e,t,n){var r,i;r=[t,n(n.dj.r.absMids["dojo/sniff"]),n(n.dj.r.absMids["dojo/_base/lang"]),n(n.dj.r.absMids["dojo/dom"]),n(n.dj.r.absMids["dojo/dom-style"]),n(n.dj.r.absMids["dojo/dom-prop"])],i=n.dj.d(r,(function(e,t,n,r,i,o){var s={innerHTML:1,textContent:1,className:1,htmlFor:t("ie"),value:1},a={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"};function c(e,t){var n=e.getAttributeNode&&e.getAttributeNode(t);return!!n&&n.specified}e.has=function(e,t){var n=t.toLowerCase();return s[o.names[n]||t]||c(r.byId(e),a[n]||t)},e.get=function(e,t){e=r.byId(e);var i=t.toLowerCase(),d=o.names[i]||t,l=s[d],u=e[d];if(l&&void 0!==u)return u;if("textContent"==d)return o.get(e,d);if("href"!=d&&("boolean"==typeof u||n.isFunction(u)))return u;var h=a[i]||t;return c(e,h)?e.getAttribute(h):null},e.set=function(t,c,d){if(t=r.byId(t),2==arguments.length){for(var l in c)e.set(t,l,c[l]);return t}var u=c.toLowerCase(),h=o.names[u]||c,f=s[h];return"style"==h&&"string"!=typeof d?(i.set(t,d),t):f||"boolean"==typeof d||n.isFunction(d)?o.set(t,c,d):(t.setAttribute(a[u]||c,d),t)},e.remove=function(e,t){r.byId(e).removeAttribute(a[t.toLowerCase()]||t)},e.getNodeProp=function(e,t){e=r.byId(e);var n=t.toLowerCase(),i=o.names[n]||t;if(i in e&&"href"!=i)return e[i];var s=a[n]||t;return c(e,s)?e.getAttribute(s):null}}),e,t),e.exports=i},"dojo/dom-construct":function(e,t,n){var r,i;r=[t,n(n.dj.r.absMids["dojo/_base/kernel"]),n(n.dj.r.absMids["dojo/sniff"]),n(n.dj.r.absMids["dojo/_base/window"]),n(n.dj.r.absMids["dojo/dom"]),n(n.dj.r.absMids["dojo/dom-attr"])],i=n.dj.d(r,(function(e,t,n,r,i,o){var s,a={option:["select"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","thead","tr"],legend:["fieldset"],caption:["table"],colgroup:["table"],col:["table","colgroup"],li:["ul"]},c=/<\s*([\w\:]+)/,d={},l=0,u="__"+t._scopeName+"ToDomId";for(var h in a)if(a.hasOwnProperty(h)){var f=a[h];f.pre="option"==h?'<select multiple="multiple">':"<"+f.join("><")+">",f.post="</"+f.reverse().join("></")+">"}function p(e,t){var n=t.parentNode;n&&n.insertBefore(e,t)}n("ie")<=8&&(s=function(e){e.__dojo_html5_tested="yes";var t=m("div",{innerHTML:"<nav>a</nav>",style:{visibility:"hidden"}},e.body);1!==t.childNodes.length&&"abbr article aside audio canvas details figcaption figure footer header hgroup mark meter nav output progress section summary time video".replace(/\b\w+\b/g,(function(t){e.createElement(t)})),b(t)}),e.toDom=function(e,t){var i=(t=t||r.doc)[u];i||(t[u]=i=++l+"",d[i]=t.createElement("div")),n("ie")<=8&&!t.__dojo_html5_tested&&t.body&&s(t);var o,h,f,p,m=(e+="").match(c),g=m?m[1].toLowerCase():"",b=d[i];if(m&&a[g])for(o=a[g],b.innerHTML=o.pre+e+o.post,h=o.length;h;--h)b=b.firstChild;else b.innerHTML=e;if(1==b.childNodes.length)return b.removeChild(b.firstChild);for(p=t.createDocumentFragment();f=b.firstChild;)p.appendChild(f);return p},e.place=function(t,n,r){if(n=i.byId(n),"string"==typeof t&&(t=/^\s*</.test(t)?e.toDom(t,n.ownerDocument):i.byId(t)),"number"==typeof r){var o=n.childNodes;!o.length||o.length<=r?n.appendChild(t):p(t,o[r<0?0:r])}else switch(r){case"before":p(t,n);break;case"after":!function(e,t){var n=t.parentNode;n&&(n.lastChild==t?n.appendChild(e):n.insertBefore(e,t.nextSibling))}(t,n);break;case"replace":n.parentNode.replaceChild(t,n);break;case"only":e.empty(n),n.appendChild(t);break;case"first":if(n.firstChild){p(t,n.firstChild);break}default:n.appendChild(t)}return t};var m=e.create=function(t,n,s,a){var c=r.doc;return s&&(c=(s=i.byId(s)).ownerDocument),"string"==typeof t&&(t=c.createElement(t)),n&&o.set(t,n),s&&e.place(t,s,a),t};function g(e){if("innerHTML"in e)try{return void(e.innerHTML="")}catch(e){}for(var t;t=e.lastChild;)e.removeChild(t)}e.empty=function(e){g(i.byId(e))};var b=e.destroy=function(e){(e=i.byId(e))&&function(e,t){e.firstChild&&g(e),t&&(n("ie")&&t.canHaveChildren&&"removeNode"in e?e.removeNode(!1):t.removeChild(e))}(e,e.parentNode)}}),e,t),e.exports=i},"dojo/dom-form":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/_base/lang"]),n(n.dj.r.absMids["dojo/dom"]),n(n.dj.r.absMids["dojo/io-query"]),n(n.dj.r.absMids["dojo/json"])],i=n.dj.d(r,(function(e,t,n,r){function i(t,n,r){if(null!==r){var i=t[n];"string"==typeof i?t[n]=[i,r]:e.isArray(i)?i.push(r):t[n]=r}}var o={fieldToObject:function(e){var n=null;if(e=t.byId(e)){var r=e.name,i=(e.type||"").toLowerCase();if(r&&i&&!e.disabled)if("radio"==i||"checkbox"==i)e.checked&&(n=e.value);else if(e.multiple){n=[];for(var o=[e.firstChild];o.length;)for(var s=o.pop();s;s=s.nextSibling){if(1!=s.nodeType||"option"!=s.tagName.toLowerCase()){s.nextSibling&&o.push(s.nextSibling),s.firstChild&&o.push(s.firstChild);break}s.selected&&n.push(s.value)}}else n=e.value}return n},toObject:function(e){for(var n={},r=t.byId(e).elements,s=0,a=r.length;s<a;++s){var c=r[s],d=c.name,l=(c.type||"").toLowerCase();d&&l&&"file|submit|image|reset|button".indexOf(l)<0&&!c.disabled&&(i(n,d,o.fieldToObject(c)),"image"==l&&(n[d+".x"]=n[d+".y"]=n[d].x=n[d].y=0))}return n},toQuery:function(e){return n.objectToQuery(o.toObject(e))},toJson:function(e,t){return r.stringify(o.toObject(e),null,t?4:0)}};return o}),e,t),e.exports=i},"dojo/dom-geometry":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/sniff"]),n(n.dj.r.absMids["dojo/_base/window"]),n(n.dj.r.absMids["dojo/dom"]),n(n.dj.r.absMids["dojo/dom-style"])],i=n.dj.d(r,(function(e,t,n,r){var i={boxModel:"content-box"};e("ie")&&(i.boxModel="BackCompat"==document.compatMode?"border-box":"content-box"),i.getPadExtents=function(e,t){e=n.byId(e);var i=t||r.getComputedStyle(e),o=r.toPixelValue,s=o(e,i.paddingLeft),a=o(e,i.paddingTop),c=o(e,i.paddingRight),d=o(e,i.paddingBottom);return{l:s,t:a,r:c,b:d,w:s+c,h:a+d}};var o="none";function s(e,t,n,r,i,o){o=o||"px";var s=e.style;isNaN(t)||(s.left=t+o),isNaN(n)||(s.top=n+o),r>=0&&(s.width=r+o),i>=0&&(s.height=i+o)}function a(e){return"button"==e.tagName.toLowerCase()||"input"==e.tagName.toLowerCase()&&"button"==(e.getAttribute("type")||"").toLowerCase()}function c(e){return"border-box"==i.boxModel||"table"==e.tagName.toLowerCase()||a(e)}i.getBorderExtents=function(e,t){e=n.byId(e);var i=r.toPixelValue,s=t||r.getComputedStyle(e),a=s.borderLeftStyle!=o?i(e,s.borderLeftWidth):0,c=s.borderTopStyle!=o?i(e,s.borderTopWidth):0,d=s.borderRightStyle!=o?i(e,s.borderRightWidth):0,l=s.borderBottomStyle!=o?i(e,s.borderBottomWidth):0;return{l:a,t:c,r:d,b:l,w:a+d,h:c+l}},i.getPadBorderExtents=function(e,t){e=n.byId(e);var o=t||r.getComputedStyle(e),s=i.getPadExtents(e,o),a=i.getBorderExtents(e,o);return{l:s.l+a.l,t:s.t+a.t,r:s.r+a.r,b:s.b+a.b,w:s.w+a.w,h:s.h+a.h}},i.getMarginExtents=function(e,t){e=n.byId(e);var i=t||r.getComputedStyle(e),o=r.toPixelValue,s=o(e,i.marginLeft),a=o(e,i.marginTop),c=o(e,i.marginRight),d=o(e,i.marginBottom);return{l:s,t:a,r:c,b:d,w:s+c,h:a+d}},i.getMarginBox=function(t,s){t=n.byId(t);var a,c=s||r.getComputedStyle(t),d=i.getMarginExtents(t,c),l=t.offsetLeft-d.l,u=t.offsetTop-d.t,h=t.parentNode,f=r.toPixelValue;if(e("mozilla")){var p=parseFloat(c.left),m=parseFloat(c.top);isNaN(p)||isNaN(m)?h&&h.style&&"visible"!=(a=r.getComputedStyle(h)).overflow&&(l+=a.borderLeftStyle!=o?f(t,a.borderLeftWidth):0,u+=a.borderTopStyle!=o?f(t,a.borderTopWidth):0):(l=p,u=m)}else(e("opera")||8==e("ie")&&!e("quirks"))&&h&&(l-=(a=r.getComputedStyle(h)).borderLeftStyle!=o?f(t,a.borderLeftWidth):0,u-=a.borderTopStyle!=o?f(t,a.borderTopWidth):0);return{l:l,t:u,w:t.offsetWidth+d.w,h:t.offsetHeight+d.h}},i.getContentBox=function(t,o){t=n.byId(t);var s,a=o||r.getComputedStyle(t),c=t.clientWidth,d=i.getPadExtents(t,a),l=i.getBorderExtents(t,a);return c?(s=t.clientHeight,l.w=l.h=0):(c=t.offsetWidth,s=t.offsetHeight),e("opera")&&(d.l+=l.l,d.t+=l.t),{l:d.l,t:d.t,w:c-d.w-l.w,h:s-d.h-l.h}},i.setContentSize=function(e,t,r){e=n.byId(e);var o=t.w,a=t.h;if(c(e)){var d=i.getPadBorderExtents(e,r);o>=0&&(o+=d.w),a>=0&&(a+=d.h)}s(e,NaN,NaN,o,a)};var d={l:0,t:0,w:0,h:0};return i.setMarginBox=function(t,o,l){t=n.byId(t);var u=l||r.getComputedStyle(t),h=o.w,f=o.h,p=c(t)?d:i.getPadBorderExtents(t,u),m=i.getMarginExtents(t,u);if(e("webkit")&&a(t)){var g=t.style;h>=0&&!g.width&&(g.width="4px"),f>=0&&!g.height&&(g.height="4px")}h>=0&&(h=Math.max(h-p.w-m.w,0)),f>=0&&(f=Math.max(f-p.h-m.h,0)),s(t,o.l,o.t,h,f)},i.isBodyLtr=function(e){return e=e||t.doc,"ltr"==(t.body(e).dir||e.documentElement.dir||"ltr").toLowerCase()},i.docScroll=function(n){n=n||t.doc;var r=t.doc.parentWindow||t.doc.defaultView;return"pageXOffset"in r?{x:r.pageXOffset,y:r.pageYOffset}:(r=e("quirks")?t.body(n):n.documentElement)&&{x:i.fixIeBiDiScrollLeft(r.scrollLeft||0,n),y:r.scrollTop||0}},i.getIeDocumentElementOffset=function(e){return{x:0,y:0}},i.fixIeBiDiScrollLeft=function(n,r){r=r||t.doc;var o=e("ie");if(o&&!i.isBodyLtr(r)){var s=e("quirks"),a=s?t.body(r):r.documentElement,c=t.global;return 6==o&&!s&&c.frameElement&&a.scrollHeight>a.clientHeight&&(n+=a.clientLeft),o<8||s?n+a.clientWidth-a.scrollWidth:-n}return n},i.position=function(r,o){r=n.byId(r);var s=t.body(r.ownerDocument),a=r.getBoundingClientRect();if(a={x:a.left,y:a.top,w:a.right-a.left,h:a.bottom-a.top},e("ie")<9&&(a.x-=e("quirks")?s.clientLeft+s.offsetLeft:0,a.y-=e("quirks")?s.clientTop+s.offsetTop:0),o){var c=i.docScroll(r.ownerDocument);a.x+=c.x,a.y+=c.y}return a},i.getMarginSize=function(e,t){e=n.byId(e);var o=i.getMarginExtents(e,t||r.getComputedStyle(e)),s=e.getBoundingClientRect();return{w:s.right-s.left+o.w,h:s.bottom-s.top+o.h}},i.normalizeEvent=function(t){if("layerX"in t||(t.layerX=t.offsetX,t.layerY=t.offsetY),!("pageX"in t)){var n=t.target,r=n&&n.ownerDocument||document,o=e("quirks")?r.body:r.documentElement;t.pageX=t.clientX+i.fixIeBiDiScrollLeft(o.scrollLeft||0,r),t.pageY=t.clientY+(o.scrollTop||0)}},i}),e,t),e.exports=i},"dojo/dom-prop":function(e,t,n){var r,i;r=[t,n(n.dj.r.absMids["dojo/_base/kernel"]),n(n.dj.r.absMids["dojo/sniff"]),n(n.dj.r.absMids["dojo/_base/lang"]),n(n.dj.r.absMids["dojo/dom"]),n(n.dj.r.absMids["dojo/dom-style"]),n(n.dj.r.absMids["dojo/dom-construct"]),n(n.dj.r.absMids["dojo/_base/connect"])],i=n.dj.d(r,(function(e,t,n,r,i,o,s,a){var c={},d=1,l=t._scopeName+"attrid";n.add("dom-textContent",(function(e,t,n){return"textContent"in n})),e.names={class:"className",for:"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",textcontent:"textContent",valuetype:"valueType"},e.get=function(t,r){t=i.byId(t);var o=r.toLowerCase(),s=e.names[o]||r;return"textContent"!=s||n("dom-textContent")?t[s]:function e(t){for(var n,r="",i=t.childNodes,o=0;n=i[o];o++)8!=n.nodeType&&(1==n.nodeType?r+=e(n):r+=n.nodeValue);return r}(t)},e.set=function(t,u,h){t=i.byId(t);var f=arguments.length;if(2==f&&"string"!=typeof u){for(var p in u)e.set(t,p,u[p]);return t}var m=u.toLowerCase(),g=e.names[m]||u;if("style"==g&&"string"!=typeof h)return o.set(t,h),t;if("innerHTML"==g)return n("ie")&&t.tagName.toLowerCase()in{col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1}?(s.empty(t),t.appendChild(s.toDom(h,t.ownerDocument))):t[g]=h,t;if("textContent"==g&&!n("dom-textContent"))return s.empty(t),t.appendChild(t.ownerDocument.createTextNode(h)),t;if(r.isFunction(h)){var b=t[l];b||(b=d++,t[l]=b),c[b]||(c[b]={});var v=c[b][g];if(v)a.disconnect(v);else try{delete t[g]}catch(e){}return h?c[b][g]=a.connect(t,g,h):t[g]=null,t}return t[g]=h,t}}),e,t),e.exports=i},"dojo/dom-style":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/sniff"]),n(n.dj.r.absMids["dojo/dom"]),n(n.dj.r.absMids["dojo/_base/window"])],i=n.dj.d(r,(function(e,t,n){var r,i,o={};r=e("webkit")?function(e){var t;if(1==e.nodeType){var n=e.ownerDocument.defaultView;!(t=n.getComputedStyle(e,null))&&e.style&&(e.style.display="",t=n.getComputedStyle(e,null))}return t||{}}:e("ie")&&(e("ie")<9||e("quirks"))?function(e){return 1==e.nodeType&&e.currentStyle?e.currentStyle:{}}:function(e){if(1===e.nodeType){var t=e.ownerDocument.defaultView;return(t.opener?t:n.global.window).getComputedStyle(e,null)||{}}return{}},o.getComputedStyle=r,i=e("ie")?function(e,t){if(!t)return 0;if("medium"==t)return 4;if(t.slice&&"px"==t.slice(-2))return parseFloat(t);var n=e.style,r=e.runtimeStyle,i=e.currentStyle,o=n.left,s=r.left;r.left=i.left;try{n.left=t,t=n.pixelLeft}catch(e){t=0}return n.left=o,r.left=s,t}:function(e,t){return parseFloat(t)||0},o.toPixelValue=i;var s="DXImageTransform.Microsoft.Alpha",a=function(e,t){try{return e.filters.item(s)}catch(e){return t?{}:null}},c=e("ie")<9||e("ie")<10&&e("quirks")?function(e){try{return a(e).Opacity/100}catch(e){return 1}}:function(e){return r(e).opacity},d=e("ie")<9||e("ie")<10&&e("quirks")?function(e,t){""===t&&(t=1);var n=100*t;if(1===t?(e.style.zoom="",a(e)&&(e.style.filter=e.style.filter.replace(new RegExp("\\s*progid:"+s+"\\([^\\)]+?\\)","i"),""))):(e.style.zoom=1,a(e)?a(e,1).Opacity=n:e.style.filter+=" progid:"+s+"(Opacity="+n+")",a(e,1).Enabled=!0),"tr"==e.tagName.toLowerCase())for(var r=e.firstChild;r;r=r.nextSibling)"td"==r.tagName.toLowerCase()&&d(r,t);return t}:function(e,t){return e.style.opacity=t},l={left:!0,top:!0},u=/margin|padding|width|height|max|min|offset/;function h(e,t,n){if(t=t.toLowerCase(),"auto"==n){if("height"==t)return e.offsetHeight;if("width"==t)return e.offsetWidth}if("fontweight"==t)switch(n){case 700:return"bold";case 400:default:return"normal"}return t in l||(l[t]=u.test(t)),l[t]?i(e,n):n}var f={cssFloat:1,styleFloat:1,float:1};return o.get=function(e,n){var r=t.byId(e),i=arguments.length,s="opacity"==n;if(2==i&&s)return c(r);n=f[n]?"cssFloat"in r.style?"cssFloat":"styleFloat":n;var a=o.getComputedStyle(r);return 1==i?a:h(r,n,a[n]||r.style[n])},o.set=function(e,n,r){var i=t.byId(e),s=arguments.length,a="opacity"==n;if(n=f[n]?"cssFloat"in i.style?"cssFloat":"styleFloat":n,3==s)return a?d(i,r):i.style[n]=r;for(var c in n)o.set(e,c,n[c]);return o.getComputedStyle(i)},o}),e,t),e.exports=i},"dojo/errors/CancelError":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/errors/create"])],i=n.dj.d(r,(function(e){return e("CancelError",null,null,{dojoType:"cancel"})}),e,t),e.exports=i},"dojo/errors/RequestError":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/errors/create"])],i=n.dj.d(r,(function(e){return e("RequestError",(function(e,t){this.response=t}))}),e,t),e.exports=i},"dojo/errors/RequestTimeoutError":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/errors/create"]),n(n.dj.r.absMids["dojo/errors/RequestError"])],i=n.dj.d(r,(function(e,t){return e("RequestTimeoutError",null,t,{dojoType:"timeout"})}),e,t),e.exports=i},"dojo/errors/create":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/_base/lang"])],i=n.dj.d(r,(function(e){return function(t,n,r,i){r=r||Error;var o=function(e){if(r===Error){Error.captureStackTrace&&Error.captureStackTrace(this,o);var t,i=Error.call(this,e);for(t in i)i.hasOwnProperty(t)&&(this[t]=i[t]);this.message=e,this.stack=i.stack}else r.apply(this,arguments);n&&n.apply(this,arguments)};return o.prototype=e.delegate(r.prototype,i),o.prototype.name=t,o.prototype.constructor=o,o}}),e,t),e.exports=i},"dojo/has":function(e,t,n){var r,i;r=[n.dj.c(e.i),n.dj.m(e)],i=n.dj.d(r,(function(e,t){var n=e.has||function(){};if(!n("dojo-has-api")){var r="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location==location&&window.document==document,i=function(){return this}(),o=r&&document,s=o&&o.createElement("DiV"),a=t.config&&t.config()||{};(n=function(e){return"function"==typeof a[e]?a[e]=a[e](i,o,s):a[e]}).cache=a,n.add=function(e,t,r,i){return(void 0===a[e]||i)&&(a[e]=t),r&&n(e)},n.add("host-browser",r),n.add("host-node","object"==typeof process&&process.versions&&process.versions.node&&process.versions.v8),n.add("host-rhino","function"==typeof load&&("function"==typeof Packages||"object"==typeof Packages)),n.add("dom",r),n.add("dojo-dom-ready-api",1),n.add("dojo-sniff",1)}if(n("host-browser")){n.add("dom-addeventlistener",!!document.addEventListener),n.add("touch","ontouchstart"in document||"onpointerdown"in document&&navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints),n.add("touch-events","ontouchstart"in document),n.add("pointer-events","pointerEnabled"in window.navigator?window.navigator.pointerEnabled:"PointerEvent"in window),n.add("MSPointer",window.navigator.msPointerEnabled),n.add("device-width",screen.availWidth||innerWidth);var c=document.createElement("form");n.add("dom-attributes-explicit",0==c.attributes.length),n.add("dom-attributes-specified-flag",c.attributes.length>0&&c.attributes.length<40)}return n.clearElement=function(e){return e.innerHTML="",e},n.normalize=function(e,t){var r=e.match(/[\?:]|[^:\?]*/g),i=0,o=function(e){var t=r[i++];return":"==t?0:"?"==r[i++]?!e&&n(t)?o():(o(!0),o(e)):t||0};return(e=o())&&t(e)},n.load=function(e,t,n){e?t([e],n):n()},n}),e,t),e.exports=i},"dojo/i18n":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/_base/kernel"]),n.dj.c(e.i),n(n.dj.r.absMids["dojo/has"]),n(n.dj.r.absMids["dojo/_base/array"]),n(n.dj.r.absMids["dojo/_base/config"]),n(n.dj.r.absMids["dojo/_base/lang"]),n(n.dj.r.absMids["dojo/_base/xhr"]),n(n.dj.r.absMids["dojo/json"]),n.dj.m(e)],i=n.dj.d(r,(function(e,t,n,r,i,o,s,a,c){n.add("dojo-preload-i18n-Api",1),n.add("dojo-v1x-i18n-Api",1);var d=e.i18n={},l=/(^.*(^|\/)nls)(\/|$)([^\/]*)\/?([^\/]*)/,u={},h=function(t,n,r){return r=r?r.toLowerCase():e.locale,t=t.replace(/\./g,"/"),n=n.replace(/\./g,"/"),/root/i.test(r)?t+"/nls/"+n:t+"/nls/"+r+"/"+n},f=e.getL10nName=function(e,t,n){return c.id+"!"+h(e,t,n)},p=function(t,s,c){var d=l.exec(t),h=d[1]+"/",f=d[5]||d[4],p=h+f,m=d[5]&&d[4],g=m||e.locale||"",b=p+"/"+g,v=m?[g]:function(e){var t=i.extraLocale||[];return(t=o.isArray(t)?t:[t]).push(e),t}(g),w=v.length,M=function(){--w||c(o.delegate(u[b]))};if(n("dojo-preload-i18n-Api")){var E=t.split("*"),T="preload"==E[1];if(T&&(u[t]||(u[t]=1,_(E[2],a.parse(E[3]),1,s)),c(1)),T||y(t,s,c)&&!u[b])return}r.forEach(v,(function(e){var t=p+"/"+e;n("dojo-preload-i18n-Api")&&j(t),u[t]?M():function(e,t,n,r,i,s){e([t],(function(a){var c=o.clone(a.root||a.ROOT),d=function(e,t,n,r){for(var i=[n+r],o=t.split("-"),s="",a=0;a<o.length;a++)s+=(s?"-":"")+o[a],e&&!e[s]||(i.push(n+s+"/"+r),i.specificity=s);return i}(!a._v1x&&a,i,n,r);e(d,(function(){for(var e=1;e<d.length;e++)c=o.mixin(o.clone(c),arguments[e]);var n=t+"/"+i;u[n]=c,c.$locale=d.specificity,s()}))}))}(s,p,h,f,e,M)}))};if(n("dojo-preload-i18n-Api")||n("dojo-v1x-i18n-Api"))var m=d.normalizeLocale=function(t){var n=t?t.toLowerCase():e.locale;return"root"==n?"ROOT":n},g=function(e,r){return!n("dojo-sync-loader")||!n("dojo-v1x-i18n-Api")||r.isXdUrl(t.toUrl(e+".js"))},b=0,v=[],_=d._preloadLocalizations=function(n,i,s,a){function c(e,t){for(var n=e.split("-");n.length;){if(t(n.join("-")))return;n.pop()}t("ROOT")}function d(){b++}function l(){for(--b;!b&&v.length;)p.apply(null,v.shift())}function h(e,t,n,r){return r.toAbsMid(e+t+"/"+n)}function f(e){c(e=m(e),(function(f){if(r.indexOf(i,f)>=0){var p=n.replace(/\./g,"/")+"_"+f;return d(),function(e,t){g(e,a)||s?a([e],t):E([e],t,a)}(p,(function(n){for(var r in n){var i,s,p=n[r],m=r.match(/(.+)\/([^\/]+)$/);if(m&&(i=m[2],s=m[1]+"/",p._localized)){var g;if("ROOT"===f){var b=g=p._localized;delete p._localized,b.root=p,u[t.toAbsMid(r)]=b}else g=p._localized,u[h(s,i,f,t)]=p;if(f!==e){function v(n,r,i,s){var f=[],p=[];c(e,(function(e){s[e]&&(f.push(t.toAbsMid(n+e+"/"+r)),p.push(h(n,r,e,t)))})),f.length?(d(),a(f,(function(){for(var s=f.length-1;s>=0;s--)i=o.mixin(o.clone(i),arguments[s]),u[p[s]]=i;u[h(n,r,e,t)]=o.clone(i),l()}))):u[h(n,r,e,t)]=i}v(s,i,p,g)}}}l()})),!0}return!1}))}a=a||t,f(),r.forEach(e.config.extraLocale,f)},y=function(e,t,n){return b&&v.push([e,t,n]),b},j=function(){};if(n("dojo-v1x-i18n-Api")){var w={},M=new Function("__bundle","__checkForLegacyModules","__mid","__amdValue","var define = function(mid, factory){define.called = 1; __amdValue.result = factory || mid;},\t   require = function(){define.called = 1;};try{define.called = 0;eval(__bundle);if(define.called==1)return __amdValue;if((__checkForLegacyModules = __checkForLegacyModules(__mid)))return __checkForLegacyModules;}catch(e){}try{return eval('('+__bundle+')');}catch(e){return e;}"),E=function(e,t,n){var i=[];r.forEach(e,(function(e){var t=n.toUrl(e+".js");function r(n){var r=M(n,j,e,w);r===w?i.push(u[t]=w.result):(r instanceof Error&&(console.error("failed to evaluate i18n bundle; url="+t,r),r={}),i.push(u[t]=/nls\/[^\/]+\/[^\/]+$/.test(t)?r:{root:r,_v1x:1}))}if(u[t])i.push(u[t]);else{var o=n.syncLoadNls(e);if(o||(o=j(e.replace(/nls\/([^\/]*)\/([^\/]*)$/,"nls/$2/$1"))),o)i.push(o);else if(s)s.get({url:t,sync:!0,load:r,error:function(){i.push(u[t]={})}});else try{n.getText(t,!0,r)}catch(e){i.push(u[t]={})}}})),t&&t.apply(null,i)};j=function(t){for(var n,r=t.split("/"),i=e.global[r[0]],o=1;i&&o<r.length-1;i=i[r[o++]]);return i&&((n=i[r[o]])||(n=i[r[o].replace(/-/g,"_")]),n&&(u[t]=n)),n},d.getLocalization=function(e,n,r){var i,o=h(e,n,r);return p(o,g(o,t)?t:function(e,n){E(e,n,t)},(function(e){i=e})),i}}return o.mixin(d,{dynamic:!0,normalize:function(e,t){return/^\./.test(e)?t(e):e},load:p,cache:u,getL10nName:f})}),e,t),e.exports=i},"dojo/i18n!simulink_file_preview_plugin/l10n/resources/sltemplate/nls/Preview":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/i18n"]),n("mwBundle.simulink_file_preview_plugin|7c1cede0fa96821f1d00933e343d2e2af30a4286"),n(n.dj.r.absMids["simulink_file_preview_plugin/l10n/resources/sltemplate/nls/ja-jp/Preview"]),n(n.dj.r.absMids["simulink_file_preview_plugin/l10n/resources/sltemplate/nls/ko-kr/Preview"]),n(n.dj.r.absMids["simulink_file_preview_plugin/l10n/resources/sltemplate/nls/zh-cn/Preview"]),n(n.dj.r.absMids["simulink_file_preview_plugin/l10n/resources/sltemplate/nls/Preview"])],i=n.dj.d(r,(function(e,t){return t(e,"simulink_file_preview_plugin/l10n/resources/sltemplate/nls/Preview",n.dj.c(),!0)}),e,t),e.exports=i},"dojo/io-query":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/_base/lang"])],i=n.dj.d(r,(function(e){var t={};return{objectToQuery:function(n){var r=encodeURIComponent,i=[];for(var o in n){var s=n[o];if(s!=t[o]){var a=r(o)+"=";if(e.isArray(s))for(var c=0,d=s.length;c<d;++c)i.push(a+r(s[c]));else i.push(a+r(s))}}return i.join("&")},queryToObject:function(t){for(var n,r,i,o=decodeURIComponent,s=t.split("&"),a={},c=0,d=s.length;c<d;++c)if((i=s[c]).length){var l=i.indexOf("=");l<0?(n=o(i),r=""):(n=o(i.slice(0,l)),r=o(i.slice(l+1))),"string"==typeof a[n]&&(a[n]=[a[n]]),e.isArray(a[n])?a[n].push(r):a[n]=r}return a}}}),e,t),e.exports=i},"dojo/json":function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(__webpack_require__.dj.r.absMids["dojo/has"])],__WEBPACK_AMD_DEFINE_RESULT__=__webpack_require__.dj.d(__WEBPACK_AMD_DEFINE_ARRAY__,(function(has){"use strict";var hasJSON="undefined"!=typeof JSON;if(has.add("json-parse",hasJSON),has.add("json-stringify",hasJSON&&'{"a":1}'==JSON.stringify({a:0},(function(e,t){return t||1}))),has("json-stringify"))return JSON;var escapeString=function(e){return('"'+e.replace(/(["\\])/g,"\\$1")+'"').replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")};return{parse:has("json-parse")?JSON.parse:function(str,strict){if(strict&&!/^([\s\[\{]*(?:"(?:\\.|[^"])*"|-?\d[\d\.]*(?:[Ee][+-]?\d+)?|null|true|false|)[\s\]\}]*(?:,|:|$))+$/.test(str))throw new SyntaxError("Invalid characters in JSON");return eval("("+str+")")},stringify:function(e,t,n){return"string"==typeof t&&(n=t,t=null),function e(r,i,o){t&&(r=t(o,r));var s,a=typeof r;if("number"==a)return isFinite(r)?r+"":"null";if("boolean"==a)return r+"";if(null===r)return"null";if("string"==typeof r)return escapeString(r);if("function"!=a&&"undefined"!=a){if("function"==typeof r.toJSON)return e(r.toJSON(o),i,o);if(r instanceof Date)return'"{FullYear}-{Month+}-{Date}T{Hours}:{Minutes}:{Seconds}Z"'.replace(/\{(\w+)(\+)?\}/g,(function(e,t,n){var i=r["getUTC"+t]()+(n?1:0);return i<10?"0"+i:i}));if(r.valueOf()!==r)return e(r.valueOf(),i,o);var c=n?i+n:"",d=n?" ":"",l=n?"\n":"";if(r instanceof Array){var u=r.length,h=[];for(o=0;o<u;o++){"string"!=typeof(s=e(r[o],c,o))&&(s="null"),h.push(l+c+s)}return"["+h.join(",")+l+i+"]"}var f=[];for(o in r){var p;if(r.hasOwnProperty(o)){if("number"==typeof o)p='"'+o+'"';else{if("string"!=typeof o)continue;p=escapeString(o)}if("string"!=typeof(s=e(r[o],c,o)))continue;f.push(l+c+p+":"+d+s)}}return"{"+f.join(",")+l+i+"}"}}(e,"","")}}}),module,exports),module.exports=__WEBPACK_AMD_DEFINE_RESULT__},"dojo/keys":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/_base/kernel"]),n(n.dj.r.absMids["dojo/sniff"])],i=n.dj.d(r,(function(e,t){return e.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:t("webkit")?91:224,PAUSE:19,CAPS_LOCK:20,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,INSERT:45,DELETE:46,HELP:47,LEFT_WINDOW:91,RIGHT_WINDOW:92,SELECT:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,NUMPAD_MULTIPLY:106,NUMPAD_PLUS:107,NUMPAD_ENTER:108,NUMPAD_MINUS:109,NUMPAD_PERIOD:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,NUM_LOCK:144,SCROLL_LOCK:145,UP_DPAD:175,DOWN_DPAD:176,LEFT_DPAD:177,RIGHT_DPAD:178,copyKey:t("mac")&&!t("air")?t("safari")?91:224:17}}),e,t),e.exports=i},"dojo/mouse":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/_base/kernel"]),n(n.dj.r.absMids["dojo/on"]),n(n.dj.r.absMids["dojo/has"]),n(n.dj.r.absMids["dojo/dom"]),n(n.dj.r.absMids["dojo/_base/window"])],i=n.dj.d(r,(function(e,t,n,r,i){var o,s;function a(e,n){var i=function(i,o){return t(i,e,(function(e){return n?n(e,o):r.isDescendant(e.relatedTarget,i)?void 0:o.call(this,e)}))};return i.bubble=function(t){return a(e,(function(e,n){var r=t(e.target),i=e.relatedTarget;if(r&&r!=(i&&1==i.nodeType&&t(i)))return n.call(r,e)}))},i}return n.add("dom-quirks",i.doc&&"BackCompat"==i.doc.compatMode),n.add("events-mouseenter",i.doc&&"onmouseenter"in i.doc.createElement("div")),n.add("events-mousewheel",i.doc&&"onmousewheel"in i.doc),o=n("dom-quirks")&&n("ie")||!n("dom-addeventlistener")?{LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(e,t){return e.button&t},isLeft:function(e){return 1&e.button},isMiddle:function(e){return 4&e.button},isRight:function(e){return 2&e.button}}:{LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(e,t){return e.button==t},isLeft:function(e){return 0==e.button},isMiddle:function(e){return 1==e.button},isRight:function(e){return 2==e.button}},e.mouseButtons=o,s=n("events-mousewheel")?"mousewheel":function(e,n){return t(e,"DOMMouseScroll",(function(e){e.wheelDelta=-e.detail,n.call(this,e)}))},{_eventHandler:a,enter:a("mouseover"),leave:a("mouseout"),wheel:s,isLeft:o.isLeft,isMiddle:o.isMiddle,isRight:o.isRight}}),e,t),e.exports=i},"dojo/on":function(e,t,n){var r,i;r=[n.dj.h("dom-addeventlistener?:dojo/aspect"),n(n.dj.r.absMids["dojo/_base/kernel"]),n(n.dj.r.absMids["dojo/sniff"])],i=n.dj.d(r,(function(e,t,n){"use strict";if(n("dom")){var r=window.ScriptEngineMajorVersion;n.add("jscript",r&&r()+ScriptEngineMinorVersion()/10),n.add("event-orientationchange",n("touch")&&!n("android")),n.add("event-stopimmediatepropagation",window.Event&&!!window.Event.prototype&&!!window.Event.prototype.stopImmediatePropagation),n.add("event-focusin",(function(e,t,n){return"onfocusin"in n})),n("touch")&&n.add("touch-can-modify-event-delegate",(function(){var e=function(){};e.prototype=document.createEvent("MouseEvents");try{var t=new e;return t.target=null,null===t.target}catch(e){return!1}}))}var i=function(e,t,n,r){return"function"!=typeof e.on||"function"==typeof t||e.nodeType?i.parse(e,t,n,s,r,this):e.on(t,n)};i.pausable=function(e,t,n,r){var o,s=i(e,t,(function(){if(!o)return n.apply(this,arguments)}),r);return s.pause=function(){o=!0},s.resume=function(){o=!1},s},i.once=function(e,t,n,r){var o=i(e,t,(function(){return o.remove(),n.apply(this,arguments)}));return o},i.parse=function(e,t,n,r,o,s){var a;if(t.call)return t.call(s,e,n);if(t instanceof Array?a=t:t.indexOf(",")>-1&&(a=t.split(/\s*,\s*/)),a){for(var c,d=[],l=0;c=a[l++];)d.push(i.parse(e,c,n,r,o,s));return d.remove=function(){for(var e=0;e<d.length;e++)d[e].remove()},d}return r(e,t,n,o,s)};var o=/^touch/;function s(e,t,r,s,a){var c=t.match(/(.*):(.*)/);if(c)return t=c[2],c=c[1],i.selector(c,t).call(a,e,r);if(n("touch")&&(o.test(t)&&(r=w(r)),n("event-orientationchange")||"orientationchange"!=t||(t="resize",e=window,r=w(r))),f&&(r=f(r)),e.addEventListener){var d=t in u,l=d?u[t]:t;return e.addEventListener(l,r,d),{remove:function(){e.removeEventListener(l,r,d)}}}if(t="on"+t,g&&e.attachEvent)return g(e,t,r);throw new Error("Target must be an event emitter")}function a(){this.cancelable=!1,this.defaultPrevented=!0}function c(){this.bubbles=!1}i.matches=function(e,n,r,i,o){for(o=o&&"function"==typeof o.matches?o:t.query,i=!1!==i,1!=e.nodeType&&(e=e.parentNode);!o.matches(e,n,r);)if(e==r||!1===i||!(e=e.parentNode)||1!=e.nodeType)return!1;return e},i.selector=function(e,t,n){return function(r,o){var s="function"==typeof e?{matches:e}:this,a=t.bubble;function c(t){return i.matches(t,e,r,n,s)}return a?i(r,a(c),o):i(r,t,(function(e){var t=c(e.target);if(t)return e.selectorTarget=t,o.call(t,e)}))}};var d=[].slice,l=i.emit=function(e,t,n){var r=d.call(arguments,2),i="on"+t;if("parentNode"in e){var o=r[0]={};for(var s in n)o[s]=n[s];o.preventDefault=a,o.stopPropagation=c,o.target=e,o.type=t,n=o}do{e[i]&&e[i].apply(e,r)}while(n&&n.bubbles&&(e=e.parentNode));return n&&n.cancelable&&n},u=n("event-focusin")?{}:{focusin:"focus",focusout:"blur"};if(!n("event-stopimmediatepropagation"))var h=function(){this.immediatelyStopped=!0,this.modified=!0},f=function(e){return function(t){if(!t.immediatelyStopped)return t.stopImmediatePropagation=h,e.apply(this,arguments)}};if(n("dom-addeventlistener"))i.emit=function(e,t,n){if(e.dispatchEvent&&document.createEvent){var r=e.ownerDocument||document,o=r.createEvent("HTMLEvents");for(var s in o.initEvent(t,!!n.bubbles,!!n.cancelable),n)s in o||(o[s]=n[s]);return e.dispatchEvent(o)&&o}return l.apply(i,arguments)};else{i._fixEvent=function(e,t){e||(e=(t&&(t.ownerDocument||t.document||t).parentWindow||window).event);if(!e)return e;try{p&&e.type==p.type&&e.srcElement==p.target&&(e=p)}catch(e){}if(!e.target)switch(e.target=e.srcElement,e.currentTarget=t||e.srcElement,"mouseover"==e.type&&(e.relatedTarget=e.fromElement),"mouseout"==e.type&&(e.relatedTarget=e.toElement),e.stopPropagation||(e.stopPropagation=v,e.preventDefault=_),e.type){case"keypress":var n="charCode"in e?e.charCode:e.keyCode;10==n?(n=0,e.keyCode=13):13==n||27==n?n=0:3==n&&(n=99),e.charCode=n,b(e)}return e};var p,m=function(e){this.handle=e};m.prototype.remove=function(){delete _dojoIEListeners_[this.handle]};var g=function(t,r,o){if(o=function(e){return function(t){t=i._fixEvent(t,this);var n=e.call(this,t);return t.modified&&(p||setTimeout((function(){p=null})),p=t),n}}(o),((t.ownerDocument?t.ownerDocument.parentWindow:t.parentWindow||t.window||window)!=top||n("jscript")<5.8)&&!n("config-_allow_leaks")){"undefined"==typeof _dojoIEListeners_&&(_dojoIEListeners_=[]);var s,a=t[r];if(!a||!a.listeners){var c=a;(a=Function("event","var callee = arguments.callee; for(var i = 0; i<callee.listeners.length; i++){var listener = _dojoIEListeners_[callee.listeners[i]]; if(listener){listener.call(this,event);}}")).listeners=[],t[r]=a,a.global=this,c&&a.listeners.push(_dojoIEListeners_.push(c)-1)}return a.listeners.push(s=a.global._dojoIEListeners_.push(o)-1),new m(s)}return e.after(t,r,o,!0)},b=function(e){e.keyChar=e.charCode?String.fromCharCode(e.charCode):"",e.charOrCode=e.keyChar||e.keyCode},v=function(){this.cancelBubble=!0},_=i._preventDefault=function(){if(this.bubbledKeyCode=this.keyCode,this.ctrlKey)try{this.keyCode=0}catch(e){}this.defaultPrevented=!0,this.returnValue=!1,this.modified=!0}}if(n("touch"))var y=function(){},j=window.orientation,w=function(e){return function(t){var r=t.corrected;if(!r){var i=t.type;try{delete t.type}catch(e){}if(t.type){if(n("touch-can-modify-event-delegate"))y.prototype=t,r=new y;else for(var o in r={},t)r[o]=t[o];r.preventDefault=function(){t.preventDefault()},r.stopPropagation=function(){t.stopPropagation()}}else(r=t).type=i;if(t.corrected=r,"resize"==i)return j==window.orientation?null:(j=window.orientation,r.type="orientationchange",e.call(this,r));"rotation"in r||(r.rotation=0,r.scale=1);var s=r.changedTouches[0];for(var a in s)delete r[a],r[a]=s[a]}return e.call(this,r)}};return i}),e,t),e.exports=i},"dojo/promise/Promise":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/_base/lang"])],i=n.dj.d(r,(function(e){"use strict";function t(){throw new TypeError("abstract")}return e.extend((function(){}),{then:function(e,n,r){t()},cancel:function(e,n){t()},isResolved:function(){t()},isRejected:function(){t()},isFulfilled:function(){t()},isCanceled:function(){t()},always:function(e){return this.then(e,e)},otherwise:function(e){return this.then(null,e)},trace:function(){return this},traceRejected:function(){return this},toString:function(){return"[object Promise]"}})}),e,t),e.exports=i},"dojo/promise/all":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/_base/array"]),n(n.dj.r.absMids["dojo/Deferred"]),n(n.dj.r.absMids["dojo/when"])],i=n.dj.d(r,(function(e,t,n){"use strict";var r=e.some;return function(e){var i,o,s;e instanceof Array?o=e:e&&"object"==typeof e&&(i=e);var a=[];if(i){for(var c in o=[],i)Object.hasOwnProperty.call(i,c)&&(a.push(c),o.push(i[c]));s={}}else o&&(s=[]);if(!o||!o.length)return(new t).resolve(s);var d=new t;d.promise.always((function(){s=a=null}));var l=o.length;return r(o,(function(e,t){return i||a.push(t),n(e,(function(e){d.isFulfilled()||(s[a[t]]=e,0==--l&&d.resolve(s))}),d.reject),d.isFulfilled()})),d.promise}}),e,t),e.exports=i},"dojo/request/handlers":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/json"]),n(n.dj.r.absMids["dojo/_base/kernel"]),n(n.dj.r.absMids["dojo/_base/array"]),n(n.dj.r.absMids["dojo/has"]),n(n.dj.r.absMids["8e5d24b71f86716e7cc6d86d776c7dbfc35f9bdf"])],i=n.dj.d(r,(function(e,t,n,r){var i;if(r.add("activex","undefined"!=typeof ActiveXObject),r.add("dom-parser",(function(e){return"DOMParser"in e})),r("activex")){var o,s=["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.4.0","MSXML2.DOMDocument.3.0","MSXML.DOMDocument"];i=function(e){var t=e.data,i=e.text;function a(e){try{var n=new ActiveXObject(e);n.async=!1,n.loadXML(i),t=n,o=e}catch(e){return!1}return!0}return t&&r("dom-qsa2.1")&&!t.querySelectorAll&&r("dom-parser")&&(t=(new DOMParser).parseFromString(i,"application/xml")),t&&t.documentElement||o&&a(o)||n.some(s,a),t}}var a=function(e){return r("native-xhr2-blob")||"blob"!==e.options.handleAs||"undefined"==typeof Blob?e.xhr.response:new Blob([e.xhr.response],{type:e.xhr.getResponseHeader("Content-Type")})},c={javascript:function(e){return t.eval(e.text||"")},json:function(t){return e.parse(t.text||null)},xml:i,blob:a,arraybuffer:a,document:a};function d(e){var t=c[e.options.handleAs];return e.data=t?t(e):e.data||e.text,e}return d.register=function(e,t){c[e]=t},d}),e,t),e.exports=i},"dojo/request/script":function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__.dj.m(module),__webpack_require__(__webpack_require__.dj.r.absMids["dojo/request/watch"]),__webpack_require__(__webpack_require__.dj.r.absMids["dojo/request/util"]),__webpack_require__(__webpack_require__.dj.r.absMids["dojo/_base/kernel"]),__webpack_require__(__webpack_require__.dj.r.absMids["dojo/_base/array"]),__webpack_require__(__webpack_require__.dj.r.absMids["dojo/_base/lang"]),__webpack_require__(__webpack_require__.dj.r.absMids["dojo/on"]),__webpack_require__(__webpack_require__.dj.r.absMids["dojo/dom"]),__webpack_require__(__webpack_require__.dj.r.absMids["dojo/dom-construct"]),__webpack_require__(__webpack_require__.dj.r.absMids["dojo/has"]),__webpack_require__(__webpack_require__.dj.r.absMids["dojo/_base/window"])],__WEBPACK_AMD_DEFINE_RESULT__=__webpack_require__.dj.d(__WEBPACK_AMD_DEFINE_ARRAY__,(function(module,watch,util,kernel,array,lang,on,dom,domConstruct,has,win){has.add("script-readystatechange",(function(e,t){return void 0!==t.createElement("script").onreadystatechange&&(void 0===e.opera||"[object Opera]"!==e.opera.toString())}));var mid=module.id.replace(/[\/\.\-]/g,"_"),counter=0,loadEvent=has("script-readystatechange")?"readystatechange":"load",readyRegExp=/complete|loaded/,callbacks=kernel.global[mid+"_callbacks"]={},deadScripts=[];function attach(e,t,n){var r=n||win.doc,i=r.createElement("script");return i.type="text/javascript",i.src=t,i.id=e,i.async=!0,i.charset="utf-8",r.getElementsByTagName("head")[0].appendChild(i)}function remove(e,t,n){domConstruct.destroy(dom.byId(e,t)),callbacks[e]&&(n?callbacks[e]=function(){delete callbacks[e]}:delete callbacks[e])}function _addDeadScript(e){var t=e.response.options,n=t.ioArgs?t.ioArgs.frameDoc:t.frameDoc;deadScripts.push({id:e.id,frameDoc:n}),t.ioArgs&&(t.ioArgs.frameDoc=null),t.frameDoc=null}function canceler(e,t){e.canDelete&&script._remove(e.id,t.options.frameDoc,!0)}function isValid(e){return deadScripts&&deadScripts.length&&(array.forEach(deadScripts,(function(e){script._remove(e.id,e.frameDoc),e.frameDoc=null})),deadScripts=[]),!e.options.jsonp||!e.data}function isReadyScript(e){return!!this.scriptLoaded}function isReadyCheckString(response){var checkString=response.options.checkString;return checkString&&eval("typeof("+checkString+') !== "undefined"')}function handleResponse(e,t){this.canDelete&&_addDeadScript(this),t?this.reject(t):this.resolve(e)}function script(e,t,n){var r=util.parseArgs(e,util.deepCopy({},t));e=r.url,t=r.options;var i=util.deferred(r,canceler,isValid,t.jsonp?null:t.checkString?isReadyCheckString:isReadyScript,handleResponse);(lang.mixin(i,{id:mid+counter++,canDelete:!1}),t.jsonp)&&(new RegExp("[?&]"+t.jsonp+"=").test(e)||(e+=(~e.indexOf("?")?"&":"?")+t.jsonp+"="+(t.frameDoc?"parent.":"")+mid+"_callbacks."+i.id),i.canDelete=!0,callbacks[i.id]=function(e){r.data=e,i.handleResponse(r)});if(util.notify&&util.notify.emit("send",r,i.promise.cancel),!t.canAttach||t.canAttach(i)){var o=script._attach(i.id,e,t.frameDoc);if(!t.jsonp&&!t.checkString)var s=on(o,loadEvent,(function(e){("load"===e.type||readyRegExp.test(o.readyState))&&(s.remove(),i.scriptLoaded=e)}))}return on.once(o,"error",(function(e){i.reject(e),script._remove(i.id,t.frameDoc,!0)})),watch(i),n?i:i.promise}return script.get=script,script._attach=attach,script._remove=remove,script._callbacksProperty=mid+"_callbacks",script}),module,exports),module.exports=__WEBPACK_AMD_DEFINE_RESULT__},"dojo/request/util":function(e,t,n){var r,i;r=[t,n(n.dj.r.absMids["dojo/errors/RequestError"]),n(n.dj.r.absMids["dojo/errors/CancelError"]),n(n.dj.r.absMids["dojo/Deferred"]),n(n.dj.r.absMids["dojo/io-query"]),n(n.dj.r.absMids["dojo/_base/array"]),n(n.dj.r.absMids["dojo/_base/lang"]),n(n.dj.r.absMids["dojo/promise/Promise"])],i=n.dj.d(r,(function(e,t,n,r,i,o,s,a){e.deepCopy=function(t,n){for(var r in n){var i=t[r],o=n[r];i!==o&&(i&&"object"==typeof i&&o&&"object"==typeof o?e.deepCopy(i,o):t[r]=o)}return t},e.deepCreate=function(t,n){n=n||{};var r,i,o=s.delegate(t);for(r in t)(i=t[r])&&"object"==typeof i&&(o[r]=e.deepCreate(i,n[r]));return e.deepCopy(o,n)};var c=Object.freeze||function(e){return e};function d(e){return c(e)}function l(e){return void 0!==e.data?e.data:e.text}e.deferred=function(i,o,u,h,f,p){var m=new r((function(e){return o&&o(m,i),e&&(e instanceof t||e instanceof n)?e:new n("Request canceled",i)}));m.response=i,m.isValid=u,m.isReady=h,m.handleResponse=f;var g=m.then(d).otherwise((function(e){throw e.response=i,e}));e.notify&&g.then(s.hitch(e.notify,"emit","load"),s.hitch(e.notify,"emit","error"));var b=g.then(l),v=new a;for(var _ in b)b.hasOwnProperty(_)&&(v[_]=b[_]);return v.response=g,c(v),p&&m.then((function(e){p.call(m,e)}),(function(e){p.call(m,i,e)})),m.promise=v,m.then=v.then,m},e.addCommonMethods=function(e,t){o.forEach(t||["GET","POST","PUT","DELETE"],(function(t){e[("DELETE"===t?"DEL":t).toLowerCase()]=function(n,r){return(r=s.delegate(r||{})).method=t,e(n,r)}}))},e.parseArgs=function(e,t,n){var r=t.data,o=t.query;return r&&!n&&("object"!=typeof r||r instanceof ArrayBuffer||r instanceof Blob||(t.data=i.objectToQuery(r))),o?("object"==typeof o&&(o=i.objectToQuery(o)),t.preventCache&&(o+=(o?"&":"")+"request.preventCache="+ +new Date)):t.preventCache&&(o="request.preventCache="+ +new Date),e&&o&&(e+=(~e.indexOf("?")?"&":"?")+o),{url:e,options:t,getHeader:function(e){return null}}},e.checkStatus=function(e){return(e=e||0)>=200&&e<300||304===e||1223===e||!e}}),e,t),e.exports=i},"dojo/request/watch":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/request/util"]),n(n.dj.r.absMids["dojo/errors/RequestTimeoutError"]),n(n.dj.r.absMids["dojo/errors/CancelError"]),n(n.dj.r.absMids["dojo/_base/array"]),n(n.dj.r.absMids["dojo/_base/window"]),n.dj.h("dom-addeventlistener?:dojo/on")],i=n.dj.d(r,(function(e,t,n,r,i,o){var s=null,a=[];function c(){for(var e,n=+new Date,r=0;r<a.length&&(e=a[r]);r++){var i=e.response,o=i.options;e.isCanceled&&e.isCanceled()||e.isValid&&!e.isValid(i)?(a.splice(r--,1),d._onAction&&d._onAction()):e.isReady&&e.isReady(i)?(a.splice(r--,1),e.handleResponse(i),d._onAction&&d._onAction()):e.startTime&&e.startTime+(o.timeout||0)<n&&(a.splice(r--,1),e.cancel(new t("Timeout exceeded",i)),d._onAction&&d._onAction())}d._onInFlight&&d._onInFlight(e),a.length||(clearInterval(s),s=null)}function d(e){e.response.options.timeout&&(e.startTime=+new Date),e.isFulfilled()||(a.push(e),s||(s=setInterval(c,50)),e.response.options.sync&&c())}return d.cancelAll=function(){try{r.forEach(a,(function(e){try{e.cancel(new n("All requests canceled."))}catch(e){}}))}catch(e){}},i&&o&&i.doc.attachEvent&&o(i.global,"unload",(function(){d.cancelAll()})),d}),e,t),e.exports=i},"dojo/request/xhr":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/errors/RequestError"]),n(n.dj.r.absMids["dojo/request/watch"]),n(n.dj.r.absMids["dojo/request/handlers"]),n(n.dj.r.absMids["dojo/request/util"]),n(n.dj.r.absMids["dojo/has"])],i=n.dj.d(r,(function(e,t,n,r,i){i.add("native-xhr",(function(){return"undefined"!=typeof XMLHttpRequest})),i.add("dojo-force-activex-xhr",(function(){return i("activex")&&"file:"===window.location.protocol})),i.add("native-xhr2",(function(){if(i("native-xhr")&&!i("dojo-force-activex-xhr")){var e=new XMLHttpRequest;return void 0!==e.addEventListener&&("undefined"==typeof opera||void 0!==e.upload)}})),i.add("native-formdata",(function(){return"undefined"!=typeof FormData})),i.add("native-response-type",(function(){return i("native-xhr")&&void 0!==(new XMLHttpRequest).responseType})),i.add("native-xhr2-blob",(function(){if(i("native-response-type")){var e=new XMLHttpRequest;e.open("GET","/",!0),e.responseType="blob";var t=e.responseType;return e.abort(),"blob"===t}}));var o,s,a,c,d={blob:i("native-xhr2-blob")?"blob":"arraybuffer",document:"document",arraybuffer:"arraybuffer"};function l(t,i){var o,s=t.xhr;t.status=t.xhr.status;try{t.text=s.responseText}catch(e){}if("xml"===t.options.handleAs&&(t.data=s.responseXML),!i)try{n(t)}catch(e){i=e}if(i)this.reject(i);else{try{n(t)}catch(e){o=e}r.checkStatus(s.status)?o?this.reject(o):this.resolve(t):o?(i=new e("Unable to load "+t.url+" status: "+s.status+" and an error in handleAs: transformation of response",t),this.reject(i)):(i=new e("Unable to load "+t.url+" status: "+s.status,t),this.reject(i))}}function u(e){return this.xhr.getResponseHeader(e)}i("native-xhr2")?(o=function(e){return!this.isFulfilled()},c=function(e,t){t.xhr.abort()},a=function(t,n,r){function i(e){n.handleResponse(r)}function o(t){var i=t.target,o=new e("Unable to load "+r.url+" status: "+i.status,r);n.handleResponse(r,o)}function s(e){e.lengthComputable?(r.loaded=e.loaded,r.total=e.total,n.progress(r)):3===r.xhr.readyState&&(r.loaded="loaded"in e?e.loaded:e.position,n.progress(r))}return t.addEventListener("load",i,!1),t.addEventListener("error",o,!1),t.addEventListener("progress",s,!1),function(){t.removeEventListener("load",i,!1),t.removeEventListener("error",o,!1),t.removeEventListener("progress",s,!1),t=null}}):(o=function(e){return e.xhr.readyState},s=function(e){return 4===e.xhr.readyState},c=function(e,t){var n=t.xhr,r=typeof n.abort;"function"!==r&&"object"!==r&&"unknown"!==r||n.abort()});var h={data:null,query:null,sync:!1,method:"GET"};function f(n,p,m){var g=i("native-formdata")&&p&&p.data&&p.data instanceof FormData,b=r.parseArgs(n,r.deepCreate(h,p),g);n=b.url,p=b.options;var v,_=r.deferred(b,c,o,s,l,(function(){v&&v()})),y=b.xhr=f._create();if(!y)return _.cancel(new e("XHR was not created")),m?_:_.promise;b.getHeader=u,a&&(v=a(y,_,b));var j=p.data,w=!p.sync,M=p.method;try{y.open(M,n,w,p.user||void 0,p.password||void 0),p.withCredentials&&(y.withCredentials=p.withCredentials),i("native-response-type")&&p.handleAs in d&&(y.responseType=d[p.handleAs]);var E=p.headers,T=!g&&"application/x-www-form-urlencoded";if(E)for(var S in E)"content-type"===S.toLowerCase()?T=E[S]:E[S]&&y.setRequestHeader(S,E[S]);T&&!1!==T&&y.setRequestHeader("Content-Type",T),E&&"X-Requested-With"in E||y.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.notify&&r.notify.emit("send",b,_.promise.cancel),y.send(j)}catch(e){_.reject(e)}return t(_),y=null,m?_:_.promise}if(f._create=function(){throw new Error("XMLHTTP not available")},i("native-xhr")&&!i("dojo-force-activex-xhr"))f._create=function(){return new XMLHttpRequest};else if(i("activex"))try{new ActiveXObject("Msxml2.XMLHTTP"),f._create=function(){return new ActiveXObject("Msxml2.XMLHTTP")}}catch(e){try{new ActiveXObject("Microsoft.XMLHTTP"),f._create=function(){return new ActiveXObject("Microsoft.XMLHTTP")}}catch(e){}}return r.addCommonMethods(f),f}),e,t),e.exports=i},"dojo/sniff":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/has"])],i=n.dj.d(r,(function(e){if(e("host-browser")){var t=navigator,n=t.userAgent,r=t.appVersion,i=parseFloat(r);if(e.add("air",n.indexOf("AdobeAIR")>=0),e.add("wp",parseFloat(n.split("Windows Phone")[1])||void 0),e.add("msapp",parseFloat(n.split("MSAppHost/")[1])||void 0),e.add("khtml",r.indexOf("Konqueror")>=0?i:void 0),e.add("edge",parseFloat(n.split("Edge/")[1])||void 0),e.add("opr",parseFloat(n.split("OPR/")[1])||void 0),e.add("webkit",!e("wp")&&!e("edge")&&parseFloat(n.split("WebKit/")[1])||void 0),e.add("chrome",!e("edge")&&!e("opr")&&parseFloat(n.split("Chrome/")[1])||void 0),e.add("android",!e("wp")&&parseFloat(n.split("Android ")[1])||void 0),e.add("safari",!(r.indexOf("Safari")>=0)||e("wp")||e("chrome")||e("android")||e("edge")||e("opr")?void 0:parseFloat(r.split("Version/")[1])),e.add("mac",r.indexOf("Macintosh")>=0),e.add("quirks","BackCompat"==document.compatMode),!e("wp")&&n.match(/(iPhone|iPod|iPad)/)){var o=RegExp.$1.replace(/P/,"p"),s=n.match(/OS ([\d_]+)/)?RegExp.$1:"1",a=parseFloat(s.replace(/_/,".").replace(/_/g,""));e.add(o,a),e.add("ios",a)}if(e.add("bb",(n.indexOf("BlackBerry")>=0||n.indexOf("BB10")>=0)&&parseFloat(n.split("Version/")[1])||void 0),e.add("trident",parseFloat(r.split("Trident/")[1])||void 0),e.add("svg","undefined"!=typeof SVGAngle),!e("webkit")){if(n.indexOf("Opera")>=0&&e.add("opera",i>=9.8&&parseFloat(n.split("Version/")[1])||i),!(n.indexOf("Gecko")>=0)||e("wp")||e("khtml")||e("trident")||e("edge")||e.add("mozilla",i),e("mozilla")&&e.add("ff",parseFloat(n.split("Firefox/")[1]||n.split("Minefield/")[1])||void 0),document.all&&!e("opera")){var c=parseFloat(r.split("MSIE ")[1])||void 0,d=document.documentMode;d&&5!=d&&Math.floor(c)!=d&&(c=d),e.add("ie",c)}e.add("wii","undefined"!=typeof opera&&opera.wiiremote)}}return e}),e,t),e.exports=i},"dojo/topic":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/Evented"])],i=n.dj.d(r,(function(e){var t=new e;return{publish:function(e,n){return t.emit.apply(t,arguments)},subscribe:function(e,n){return t.on.apply(t,arguments)}}}),e,t),e.exports=i},"dojo/when":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/Deferred"]),n(n.dj.r.absMids["dojo/promise/Promise"])],i=n.dj.d(r,(function(e,t){"use strict";return function(n,r,i,o){var s=n&&"function"==typeof n.then,a=s&&n instanceof t;if(!s)return arguments.length>1?r?r(n):n:(new e).resolve(n);if(!a){var c=new e(n.cancel);n.then(c.resolve,c.reject,c.progress),n=c.promise}return r||i||o?n.then(r,i,o):n}}),e,t),e.exports=i},"dojox/cometd/AckExtension":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojox/cometd/cometd"])],i=n.dj.d(r,(function(e){return e.AckExtension=function(){var e,t=!1,n=-1;function r(t,n){e._debug(t,n)}this.registered=function(t,n){e=n,r("AckExtension: executing registration callback")},this.unregistered=function(){r("AckExtension: executing unregistration callback"),e=null},this.incoming=function(e){var i=e.channel;if("/meta/handshake"==i)r("AckExtension: server supports acks",t=e.ext&&e.ext.ack);else if(t&&"/meta/connect"==i&&e.successful){var o=e.ext;o&&"number"==typeof o.ack&&r("AckExtension: server sent ack id",n=o.ack)}return e},this.outgoing=function(i){var o=i.channel;return"/meta/handshake"==o?(i.ext||(i.ext={}),i.ext.ack=e&&!1!==e.ackEnabled,n=-1):t&&"/meta/connect"==o&&(i.ext||(i.ext={}),i.ext.ack=n,r("AckExtension: client sending ack id",n)),i}}}),e,t),e.exports=i},"dojox/cometd/cometd":function(e,t,n){var r;void 0===(r=function(){this.org=this.org||{};var e=this.org;return e.cometd={},e.cometd.JSON={},e.cometd.JSON.toJSON=e.cometd.JSON.fromJSON=function(e){throw"Abstract"},e.cometd.Utils={},e.cometd.Utils.isString=function(e){return null!=e&&("string"==typeof e||e instanceof String)},e.cometd.Utils.isArray=function(e){return null!=e&&e instanceof Array},e.cometd.Utils.inArray=function(e,t){for(var n=0;n<t.length;++n)if(e===t[n])return n;return-1},e.cometd.Utils.setTimeout=function(e,t,n){return window.setTimeout((function(){try{t()}catch(n){e._debug("Exception invoking timed function",t,n)}}),n)},e.cometd.Utils.clearTimeout=function(e){window.clearTimeout(e)},e.cometd.TransportRegistry=function(){var e=[],t={};this.getTransportTypes=function(){return e.slice(0)},this.findTransportTypes=function(n,r,i){for(var o=[],s=0;s<e.length;++s){var a=e[s];!0===t[a].accept(n,r,i)&&o.push(a)}return o},this.negotiateTransport=function(n,r,i,o){for(var s=0;s<e.length;++s)for(var a=e[s],c=0;c<n.length;++c)if(a===n[c]){var d=t[a];if(!0===d.accept(r,i,o))return d}return null},this.add=function(n,r,i){for(var o=!1,s=0;s<e.length;++s)if(e[s]===n){o=!0;break}return o||("number"!=typeof i?e.push(n):e.splice(i,0,n),t[n]=r),!o},this.find=function(n){for(var r=0;r<e.length;++r)if(e[r]===n)return t[n];return null},this.remove=function(n){for(var r=0;r<e.length;++r)if(e[r]===n){e.splice(r,1);var i=t[n];return delete t[n],i}return null},this.clear=function(){e=[],t={}},this.reset=function(){for(var n=0;n<e.length;++n)t[e[n]].reset()}},e.cometd.Transport=function(){var t,n;this.registered=function(e,r){t=e,n=r},this.unregistered=function(){t=null,n=null},this._debug=function(){n._debug.apply(n,arguments)},this._mixin=function(){return n._mixin.apply(n,arguments)},this.getConfiguration=function(){return n.getConfiguration()},this.getAdvice=function(){return n.getAdvice()},this.setTimeout=function(t,r){return e.cometd.Utils.setTimeout(n,t,r)},this.clearTimeout=function(t){e.cometd.Utils.clearTimeout(t)},this.convertToMessages=function(t){if(e.cometd.Utils.isString(t))try{return e.cometd.JSON.fromJSON(t)}catch(e){throw this._debug("Could not convert to JSON the following string",'"'+t+'"'),e}if(e.cometd.Utils.isArray(t))return t;if(null==t)return[];if(t instanceof Object)return[t];throw"Conversion Error "+t+", typeof "+typeof t},this.accept=function(e,t,n){throw"Abstract"},this.getType=function(){return t},this.send=function(e,t){throw"Abstract"},this.reset=function(){this._debug("Transport",t,"reset")},this.abort=function(){this._debug("Transport",t,"aborted")},this.toString=function(){return this.getType()}},e.cometd.Transport.derive=function(e){function t(){}return t.prototype=e,new t},e.cometd.RequestTransport=function(){var t=new e.cometd.Transport,n=e.cometd.Transport.derive(t),r=0,i=null,o=[],s=[];function a(e){for(;s.length>0;){var t=s[0],n=t[0],r=t[1];if(n.url!==e.url||n.sync!==e.sync)break;s.shift(),e.messages=e.messages.concat(n.messages),this._debug("Coalesced",n.messages.length,"messages from request",r.id)}}function c(e,t){if(this.transportSend(e,t),t.expired=!1,!e.sync){var n=this.getConfiguration().maxNetworkDelay,r=n;!0===t.metaConnect&&(r+=this.getAdvice().timeout),this._debug("Transport",this.getType(),"waiting at most",r,"ms for the response, maxNetworkDelay",n);var i=this;t.timeout=this.setTimeout((function(){t.expired=!0,t.xhr&&t.xhr.abort();var n="Request "+t.id+" of transport "+i.getType()+" exceeded "+r+" ms max network delay";i._debug(n),i.complete(t,!1,t.metaConnect),e.onFailure(t.xhr,e.messages,"timeout",n)}),r)}}function d(e){var t=++r,n={id:t,metaConnect:!1};o.length<this.getConfiguration().maxConnections-1?(o.push(n),c.call(this,e,n)):(this._debug("Transport",this.getType(),"queueing request",t,"envelope",e),s.push([e,n]))}function l(e){var t=e.id;if(this._debug("Transport",this.getType(),"metaConnect complete, request",t),null!==i&&i.id!==t)throw"Longpoll request mismatch, completing request "+t;i=null}function u(t,n){var r=e.cometd.Utils.inArray(t,o);if(r>=0&&o.splice(r,1),s.length>0){var i=s.shift(),c=i[0],l=i[1];if(this._debug("Transport dequeued request",l.id),n)this.getConfiguration().autoBatch&&a.call(this,c),d.call(this,c),this._debug("Transport completed request",t.id,c);else{var u=this;this.setTimeout((function(){u.complete(l,!1,l.metaConnect),c.onFailure(l.xhr,c.messages,"error","Previous request failed")}),0)}}}function h(e){if(null!==i)throw"Concurrent metaConnect requests not allowed, request id="+i.id+" not yet completed";var t=++r;this._debug("Transport",this.getType(),"metaConnect send, request",t,"envelope",e);var n={id:t,metaConnect:!0};c.call(this,e,n),i=n}return n.complete=function(e,t,n){n?l.call(this,e):u.call(this,e,t)},n.transportSend=function(e,t){throw"Abstract"},n.transportSuccess=function(e,t,n){t.expired||(this.clearTimeout(t.timeout),this.complete(t,!0,t.metaConnect),n&&n.length>0?e.onSuccess(n):e.onFailure(t.xhr,e.messages,"Empty HTTP response"))},n.transportFailure=function(e,t,n,r){t.expired||(this.clearTimeout(t.timeout),this.complete(t,!1,t.metaConnect),e.onFailure(t.xhr,e.messages,n,r))},n.send=function(e,t){t?h.call(this,e):d.call(this,e)},n.abort=function(){t.abort();for(var e=0;e<o.length;++e){var n=o[e];this._debug("Aborting request",n),n.xhr&&n.xhr.abort()}i&&(this._debug("Aborting metaConnect request",i),i.xhr&&i.xhr.abort()),this.reset()},n.reset=function(){t.reset(),i=null,o=[],s=[]},n},e.cometd.LongPollingTransport=function(){var t=new e.cometd.RequestTransport,n=e.cometd.Transport.derive(t),r=!0;return n.accept=function(e,t,n){return r||!t},n.xhrSend=function(e){throw"Abstract"},n.transportSend=function(t,n){this._debug("Transport",this.getType(),"sending request",n.id,"envelope",t);var i=this;try{var o=!0;n.xhr=this.xhrSend({transport:this,url:t.url,sync:t.sync,headers:this.getConfiguration().requestHeaders,body:e.cometd.JSON.toJSON(t.messages),onSuccess:function(e){i._debug("Transport",i.getType(),"received response",e);var o=!1;try{var s=i.convertToMessages(e);0===s.length?(r=!1,i.transportFailure(t,n,"no response",null)):(o=!0,i.transportSuccess(t,n,s))}catch(e){i._debug(e),o||(r=!1,i.transportFailure(t,n,"bad response",e))}},onError:function(e,s){r=!1,o?i.setTimeout((function(){i.transportFailure(t,n,e,s)}),0):i.transportFailure(t,n,e,s)}}),o=!1}catch(e){r=!1,this.setTimeout((function(){i.transportFailure(t,n,"error",e)}),0)}},n.reset=function(){t.reset(),r=!0},n},e.cometd.CallbackPollingTransport=function(){var t=new e.cometd.RequestTransport,n=e.cometd.Transport.derive(t);return n.accept=function(e,t,n){return!0},n.jsonpSend=function(e){throw"Abstract"},n.transportSend=function(t,n){for(var r=this,i=0,o=t.messages.length,s=[];o>0;){var a=e.cometd.JSON.toJSON(t.messages.slice(i,i+o)),c=t.url.length+encodeURI(a).length;if(c>2e3){if(1===o){var d="Bayeux message too big ("+c+" bytes, max is 2000) for transport "+this.getType();return void this.setTimeout((function(){r.transportFailure(t,n,"error",d)}),0)}--o}else s.push(o),i+=o,o=t.messages.length-i}var l=t;if(s.length>1){var u=0,h=s[0];this._debug("Transport",this.getType(),"split",t.messages.length,"messages into",s.join(" + ")),(l=this._mixin(!1,{},t)).messages=t.messages.slice(u,h),l.onSuccess=t.onSuccess,l.onFailure=t.onFailure;for(var f=1;f<s.length;++f){var p=this._mixin(!1,{},t);u=h,h+=s[f],p.messages=t.messages.slice(u,h),p.onSuccess=t.onSuccess,p.onFailure=t.onFailure,this.send(p,n.metaConnect)}}this._debug("Transport",this.getType(),"sending request",n.id,"envelope",l);try{var m=!0;this.jsonpSend({transport:this,url:l.url,sync:l.sync,headers:this.getConfiguration().requestHeaders,body:e.cometd.JSON.toJSON(l.messages),onSuccess:function(e){var t=!1;try{var i=r.convertToMessages(e);0===i.length?r.transportFailure(l,n,"no response"):(t=!0,r.transportSuccess(l,n,i))}catch(e){r._debug(e),t||r.transportFailure(l,n,"bad response",e)}},onError:function(e,t){m?r.setTimeout((function(){r.transportFailure(l,n,e,t)}),0):r.transportFailure(l,n,e,t)}}),m=!1}catch(e){this.setTimeout((function(){r.transportFailure(l,n,"error",e)}),0)}},n},e.cometd.WebSocketTransport=function(){var t,n,r=new e.cometd.Transport,i=e.cometd.Transport.derive(r),o=!0,s=!1,a={},c={},d=null,l=!1,u=!1;function h(){var n=t.getURL().replace(/^http/,"ws");this._debug("Transport",this.getType(),"connecting to URL",n);var r=this,i=null,o=t.getConfiguration().connectTimeout;o>0&&(i=this.setTimeout((function(){i=null,l||(r._debug("Transport",r.getType(),"timed out while connecting to URL",n,":",o,"ms"),r.onClose(1002,"Connect Timeout"))}),o));var s=new e.cometd.WebSocket(n),a=function(e){var t=e?e.code:1e3,n=e?e.reason:void 0;r._debug("WebSocket closed",t,"/",n,s),i&&(r.clearTimeout(i),i=null),s===d?r.onClose(t,n):r._debug("Ignoring close event, WebSocket",d)};s.onopen=function(){r._debug("WebSocket opened",s),i&&(r.clearTimeout(i),i=null),s===d?r.onOpen():r._debug("Ignoring open event, WebSocket",d)},s.onclose=a,s.onerror=function(){a({code:1002})},s.onmessage=function(e){r._debug("WebSocket message",e,s),s===d?r.onMessage(e):r._debug("Ignoring message event, WebSocket",d)},d=s,this._debug("Transport",this.getType(),"configured callbacks on",s)}function f(t,n){var r=e.cometd.JSON.toJSON(t.messages);d.send(r),this._debug("Transport",this.getType(),"sent",t,"metaConnect =",n);var i=this.getConfiguration().maxNetworkDelay,o=i;n&&(o+=this.getAdvice().timeout,u=!0);for(var s=[],a=0;a<t.messages.length;++a){var l=t.messages[a];if(l.id){s.push(l.id);var h=d;c[l.id]=this.setTimeout((function(){h&&h.close(1e3,"Timeout")}),o)}}this._debug("Transport",this.getType(),"waiting at most",o,"ms for messages",s,"maxNetworkDelay",i,", timeouts:",c)}function p(e,t){try{null===d?h.call(this):l&&f.call(this,e,t)}catch(t){var n=d;this.setTimeout((function(){e.onFailure(n,e.messages,"error",t)}),0)}}return i.onOpen=function(){for(var e in this._debug("Transport",this.getType(),"opened",d),l=!0,s=!0,this._debug("Sending pending messages",a),a){var t=a[e],r=t[0],i=t[1];n=r.onSuccess,f.call(this,r,i)}},i.onMessage=function(t){this._debug("Transport",this.getType(),"received websocket message",t,d);for(var r=!1,i=this.convertToMessages(t.data),o=[],s=0;s<i.length;++s){var l=i[s];if((/^\/meta\//.test(l.channel)||void 0===l.data)&&l.id){o.push(l.id);var h=c[l.id];h&&(this.clearTimeout(h),delete c[l.id],this._debug("Transport",this.getType(),"removed timeout for message",l.id,", timeouts",c))}"/meta/connect"===l.channel&&(u=!1),"/meta/disconnect"!==l.channel||u||(r=!0)}for(var f=!1,p=0;p<o.length;++p){var m=o[p];for(var g in a){var b=g.split(","),v=e.cometd.Utils.inArray(m,b);if(v>=0){f=!0,b.splice(v,1);var _=a[g][0],y=a[g][1];delete a[g],b.length>0&&(a[b.join(",")]=[_,y]);break}}}f&&this._debug("Transport",this.getType(),"removed envelope, envelopes",a),n.call(this,i),r&&d.close(1e3,"Disconnect")},i.onClose=function(e,t){for(var n in this._debug("Transport",this.getType(),"closed",e,t,d),o=s,c)this.clearTimeout(c[n]);for(var r in c={},a){var i=a[r][0];a[r][1]&&(u=!1),i.onFailure(d,i.messages,"closed "+e+"/"+t)}a={},null!==d&&l&&d.close(1e3,"Close"),l=!1,d=null},i.registered=function(e,n){r.registered(e,n),t=n},i.accept=function(n,r,i){return o&&!!e.cometd.WebSocket&&!1!==t.websocketEnabled},i.send=function(e,t){this._debug("Transport",this.getType(),"sending",e,"metaConnect =",t);for(var n=[],r=0;r<e.messages.length;++r){var i=e.messages[r];i.id&&n.push(i.id)}a[n.join(",")]=[e,t],this._debug("Transport",this.getType(),"stored envelope, envelopes",a),p.call(this,e,t)},i.abort=function(){if(r.abort(),null!==d)try{d.close(1001)}catch(e){this._debug(e)}this.reset()},i.reset=function(){r.reset(),null!==d&&l&&d.close(1e3,"Reset"),o=!0,s=!1,c={},a={},d=null,l=!1,n=null},i},e.cometd.Cometd=function(t){var n,r,i,o,s=this,a=t||"default",c=!1,d=new e.cometd.TransportRegistry,l="disconnected",u=0,h=null,f=0,p=[],m=!1,g={},b=0,v=null,_=[],y={},j={},w=!1,M=!1,E={connectTimeout:0,maxConnections:2,backoffIncrement:1e3,maxBackoff:6e4,logLevel:"info",reverseIncomingExtensions:!0,maxNetworkDelay:1e4,requestHeaders:{},appendMessageTypeToURL:!0,autoBatch:!1,advice:{timeout:6e4,interval:0,reconnect:"retry"}};function T(t){return e.cometd.Utils.isString(t)}function S(e){return null!=e&&"function"==typeof e}function k(e,t){if(window.console){var n=window.console[e];S(n)&&n.apply(window.console,t)}}function x(e){if(s._debug("Configuring cometd object with",e),T(e)&&(e={url:e}),e||(e={}),!(E=s._mixin(!1,E,e)).url)throw"Missing required configuration parameter 'url' specifying the Bayeux server URL";var t=/(^https?:\/\/)?(((\[[^\]]+\])|([^:\/\?#]+))(:(\d+))?)?([^\?#]*)(.*)?/.exec(E.url),n=t[2],r=t[8],i=t[9];if(c=s._isCrossDomain(n),E.appendMessageTypeToURL)if(void 0!==i&&i.length>0)s._info("Appending message type to URI "+r+i+" is not supported, disabling 'appendMessageTypeToURL' configuration"),E.appendMessageTypeToURL=!1;else{var o=r.split("/"),a=o.length-1;r.match(/\/$/)&&(a-=1),o[a].indexOf(".")>=0&&(s._info("Appending message type to URI "+r+" is not supported, disabling 'appendMessageTypeToURL' configuration"),E.appendMessageTypeToURL=!1)}}function C(){for(var e in g)for(var t=g[e],n=t.length-1;n>=0;--n){var r=t[n];r&&!r.listener&&(t.splice(n,1),s._debug("Removed subscription",r,"for channel",e))}}function P(e){l!==e&&(s._debug("Status",l,"->",e),l=e)}function R(){return"disconnecting"===l||"disconnected"===l}function A(e,t,n,r,i){try{return t.call(e,r)}catch(e){s._debug("Exception during execution of extension",n,e);var o=s.onExtensionException;if(S(o)){s._debug("Invoking extension exception callback",n,e);try{o.call(s,e,n,i,r)}catch(e){s._info("Exception during execution of exception callback in extension",n,e)}}return r}}function O(e){for(var t=0;t<_.length&&null!=e;++t){var n=_[t],r=n.extension.outgoing;if(S(r)){var i=A(n.extension,r,n.name,e,!0);e=void 0===i?e:i}}return e}function D(e,t){var n=g[e];if(n&&n.length>0)for(var r=n.length-1;r>=0;--r){var i=n[r];try{i.callback.call(i.scope,t)}catch(e){s._debug("Exception during notification",i,t,e);var o=s.onListenerException;if(S(o)){s._debug("Invoking listener exception callback",i,e);try{o.call(s,e,i.handle,i.listener,t)}catch(e){s._info("Exception during execution of listener callback",i,e)}}}}}function L(e,t){D(e,t);for(var n=e.split("/"),r=n.length-1,i=r;i>0;--i){var o=n.slice(0,i).join("/")+"/*";i===r&&D(o,t),D(o+="*",t)}}function I(){null!==v&&e.cometd.Utils.clearTimeout(v),v=null}function F(t){I();var n=y.interval+b;s._debug("Function scheduled in",n,"ms, interval =",y.interval,"backoff =",b,t),v=e.cometd.Utils.setTimeout(s,t,n)}function N(e,t,r,a){for(var c=0;c<t.length;++c){var d=t[c];d.id=""+ ++u,h&&(d.clientId=h);var l=void 0;S(d._callback)&&(l=d._callback,delete d._callback),null!=(d=O(d))?(t[c]=d,l&&(j[d.id]=l)):t.splice(c--,1)}if(0!==t.length){var f=E.url;E.appendMessageTypeToURL&&(f.match(/\/$/)||(f+="/"),a&&(f+=a));var p={url:f,sync:e,messages:t,onSuccess:function(e){try{i.call(s,e)}catch(e){s._debug("Exception during handling of messages",e)}},onFailure:function(e,t,n,r){try{o.call(s,e,t,n,r)}catch(e){s._debug("Exception during handling of failure",e)}}};s._debug("Send",p),n.send(p,r)}}function U(e){f>0||!0===m?p.push(e):N(!1,[e],!1)}function H(){b=0}function q(){b<E.maxBackoff&&(b+=E.backoffIncrement)}function W(){var e=p;p=[],e.length>0&&N(!1,e,!1)}function B(){P("connecting"),F((function(){!function(){if(!R()){var e={channel:"/meta/connect",connectionType:n.getType()};M||(e.advice={timeout:0}),P("connecting"),s._debug("Connect sent",e),N(!1,[e],!0,"connect"),P("connected")}}()}))}function X(e){e&&(y=s._mixin(!1,{},E.advice,e),s._debug("New advice",y))}function K(e){I(),e&&n.abort(),h=null,P("disconnected"),f=0,H(),p.length>0&&(o.call(s,void 0,p,"error","Disconnected"),p=[])}function z(e){h=null,C(),R()?(d.reset(),X(E.advice)):X(s._mixin(!1,y,{reconnect:"retry"})),f=0,m=!0,r=e;var t=d.findTransportTypes("1.0",c,E.url),i={version:"1.0",minimumVersion:"0.9",channel:"/meta/handshake",supportedConnectionTypes:t,advice:{timeout:y.timeout,interval:y.interval}},o=s._mixin(!1,{},r,i);n=d.negotiateTransport(t,"1.0",c,E.url),s._debug("Initial transport is",n.getType()),P("handshaking"),s._debug("Handshake sent",o),N(!1,[o],!1,"handshake")}function V(){P("handshaking"),m=!0,F((function(){z(r)}))}function J(e){L("/meta/handshake",e),L("/meta/unsuccessful",e),!R()&&"none"!==y.reconnect?(q(),V()):K(!1)}function G(e,t){J({successful:!1,failure:!0,channel:"/meta/handshake",request:t,xhr:e,advice:{reconnect:"retry",interval:b}})}function $(e){L("/meta/connect",e),L("/meta/unsuccessful",e);var t=R()?"none":y.reconnect;switch(t){case"retry":B(),q();break;case"handshake":d.reset(),H(),V();break;case"none":K(!1);break;default:throw"Unrecognized advice action"+t}}function Q(e,t){M=!1,$({successful:!1,failure:!0,channel:"/meta/connect",request:t,xhr:e,advice:{reconnect:"retry",interval:b}})}function Y(e){K(!0),L("/meta/disconnect",e),L("/meta/unsuccessful",e)}function Z(e,t){Y({successful:!1,failure:!0,channel:"/meta/disconnect",request:t,xhr:e,advice:{reconnect:"none",interval:0}})}function ee(e){L("/meta/subscribe",e),L("/meta/unsuccessful",e)}function te(e,t){ee({successful:!1,failure:!0,channel:"/meta/subscribe",request:t,xhr:e,advice:{reconnect:"none",interval:0}})}function ne(e){L("/meta/unsubscribe",e),L("/meta/unsuccessful",e)}function re(e,t){ne({successful:!1,failure:!0,channel:"/meta/unsubscribe",request:t,xhr:e,advice:{reconnect:"none",interval:0}})}function ie(e){var t=j[e.id];S(t)&&(delete j[e.id],t.call(s,e))}function oe(e){ie(e),L("/meta/publish",e),L("/meta/unsuccessful",e)}function se(e,t){oe({successful:!1,failure:!0,channel:t.channel,request:t,xhr:e,advice:{reconnect:"none",interval:0}})}function ae(e){if(null!=(e=function(e){for(var t=0;t<_.length&&null!=e;++t){var n=E.reverseIncomingExtensions?_.length-1-t:t,r=_[n],i=r.extension.incoming;if(S(i)){var o=A(r.extension,i,r.name,e,!1);e=void 0===o?e:o}}return e}(e)))switch(X(e.advice),e.channel){case"/meta/handshake":!function(e){if(e.successful){h=e.clientId;var t=d.negotiateTransport(e.supportedConnectionTypes,e.version,c,E.url);if(null===t)throw"Could not negotiate transport with server; client "+d.findTransportTypes(e.version,c,E.url)+", server "+e.supportedConnectionTypes;n!==t&&(s._debug("Transport",n,"->",t),n=t),m=!1,W(),e.reestablish=w,w=!0,L("/meta/handshake",e);var r=R()?"none":y.reconnect;switch(r){case"retry":H(),B();break;case"none":K(!1);break;default:throw"Unrecognized advice action "+r}}else J(e)}(e);break;case"/meta/connect":!function(e){if(M=e.successful){L("/meta/connect",e);var t=R()?"none":y.reconnect;switch(t){case"retry":H(),B();break;case"none":K(!1);break;default:throw"Unrecognized advice action "+t}}else $(e)}(e);break;case"/meta/disconnect":!function(e){e.successful?(K(!1),L("/meta/disconnect",e)):Y(e)}(e);break;case"/meta/subscribe":!function(e){e.successful?L("/meta/subscribe",e):ee(e)}(e);break;case"/meta/unsubscribe":!function(e){e.successful?L("/meta/unsubscribe",e):ne(e)}(e);break;default:!function(e){void 0===e.successful?void 0!==e.data&&null!==e.data?L(e.channel,e):s._debug("Unknown message",e):e.successful?(ie(e),L("/meta/publish",e)):oe(e)}(e)}}function ce(e){var t=g[e];if(t)for(var n=0;n<t.length;++n)if(t[n])return!0;return!1}function de(e,t){var n={scope:e,method:t};if(S(e))n.scope=void 0,n.method=e;else if(T(t)){if(!e)throw"Invalid scope "+e;if(n.method=e[t],!S(n.method))throw"Invalid callback "+t+" for scope "+e}else if(!S(t))throw"Invalid callback "+t;return n}function le(e,t,n,r){var i=de(t,n);s._debug("Adding listener on",e,"with scope",i.scope,"and callback",i.method);var o={channel:e,scope:i.scope,callback:i.method,listener:r},a=g[e];a||((a=[]).subscriptionCounter=0,g[e]=a),a.push(o);var c=a.subscriptionCounter;return a.subscriptionCounter=a.subscriptionCounter+1,o.id=c,o.handle=[e,c],s._debug("Added listener",o,"for channel",e,"having id =",c),o.handle}this._mixin=function(e,t,n){for(var r=t||{},i=2;i<arguments.length;++i){var o=arguments[i];if(null!=o)for(var s in o){var a=o[s],c=r[s];if(a!==t&&void 0!==a)if(e&&"object"==typeof a&&null!==a)if(a instanceof Array)r[s]=this._mixin(e,c instanceof Array?c:[],a);else{var d="object"!=typeof c||c instanceof Array?{}:c;r[s]=this._mixin(e,d,a)}else r[s]=a}}return r},this._warn=function(){k("warn",arguments)},this._info=function(){"warn"!==E.logLevel&&k("info",arguments)},this._debug=function(){"debug"===E.logLevel&&k("debug",arguments)},this._isCrossDomain=function(e){return e&&e!==window.location.host},this.send=U,this.receive=ae,i=function(e){s._debug("Received",e);for(var t=0;t<e.length;++t){ae(e[t])}},o=function(e,t,n,r){s._debug("handleFailure",e,t,n,r);for(var i=0;i<t.length;++i){var o=t[i];switch(o.channel){case"/meta/handshake":G(e,o);break;case"/meta/connect":Q(e,o);break;case"/meta/disconnect":Z(e,o);break;case"/meta/subscribe":te(e,o);break;case"/meta/unsubscribe":re(e,o);break;default:se(e,o)}}},this.registerTransport=function(e,t,n){var r=d.add(e,t,n);return r&&(this._debug("Registered transport",e),S(t.registered)&&t.registered(e,this)),r},this.getTransportTypes=function(){return d.getTransportTypes()},this.unregisterTransport=function(e){var t=d.remove(e);return null!==t&&(this._debug("Unregistered transport",e),S(t.unregistered)&&t.unregistered()),t},this.unregisterTransports=function(){d.clear()},this.findTransport=function(e){return d.find(e)},this.configure=function(e){x.call(this,e)},this.init=function(e,t){this.configure(e),this.handshake(t)},this.handshake=function(e){P("disconnected"),w=!1,z(e)},this.disconnect=function(e,t){if(!R()){void 0===t&&"boolean"!=typeof e&&(t=e,e=!1);var n=this._mixin(!1,{},t,{channel:"/meta/disconnect"});P("disconnecting"),N(!0===e,[n],!1,"disconnect")}},this.startBatch=function(){++f},this.endBatch=function(){!function(){if(--f<0)throw"Calls to startBatch() and endBatch() are not paired";0!==f||R()||m||W()}()},this.batch=function(e,t){var n=de(e,t);this.startBatch();try{n.method.call(n.scope),this.endBatch()}catch(e){throw this._debug("Exception during execution of batch",e),this.endBatch(),e}},this.addListener=function(e,t,n){if(arguments.length<2)throw"Illegal arguments number: required 2, got "+arguments.length;if(!T(e))throw"Illegal argument type: channel must be a string";return le(e,t,n,!0)},this.removeListener=function(t){if(!e.cometd.Utils.isArray(t))throw"Invalid argument: expected subscription, not "+t;!function(e){var t,n=g[e[0]];n.length>0&&-1!==(t=function(e,t){for(var n=0;n<e.length;){if(e[n].id===t)return n;n+=1}return-1}(n,e[1]))&&(n.splice(t,1),s._debug("Removed listener",e))}(t)},this.clearListeners=function(){g={}},this.subscribe=function(e,t,n,r){if(arguments.length<2)throw"Illegal arguments number: required 2, got "+arguments.length;if(!T(e))throw"Illegal argument type: channel must be a string";if(R())throw"Illegal state: already disconnected";S(t)&&(r=n,n=t,t=void 0);var i=!ce(e),o=le(e,t,n,!1);if(i){var s={channel:"/meta/subscribe",subscription:e},a=this._mixin(!1,{},r,s);U(a)}return o},this.unsubscribe=function(e,t){if(arguments.length<1)throw"Illegal arguments number: required 1, got "+arguments.length;if(R())throw"Illegal state: already disconnected";this.removeListener(e);var n=e[0];if(!ce(n)){var r={channel:"/meta/unsubscribe",subscription:n},i=this._mixin(!1,{},t,r);U(i)}},this.clearSubscriptions=function(){C()},this.publish=function(e,t,n,r){if(arguments.length<1)throw"Illegal arguments number: required 1, got "+arguments.length;if(!T(e))throw"Illegal argument type: channel must be a string";if(R())throw"Illegal state: already disconnected";S(t)?(r=t,t=n={}):S(n)&&(r=n,n={});var i={channel:e,data:t,_callback:r},o=this._mixin(!1,{},n,i);U(o)},this.getStatus=function(){return l},this.isDisconnected=R,this.setBackoffIncrement=function(e){E.backoffIncrement=e},this.getBackoffIncrement=function(){return E.backoffIncrement},this.getBackoffPeriod=function(){return b},this.setLogLevel=function(e){E.logLevel=e},this.registerExtension=function(e,t){if(arguments.length<2)throw"Illegal arguments number: required 2, got "+arguments.length;if(!T(e))throw"Illegal argument type: extension name must be a string";for(var n=!1,r=0;r<_.length;++r){var i=_[r];if(i.name===e){n=!0;break}}return n?(this._info("Could not register extension with name",e,"since another extension with the same name already exists"),!1):(_.push({name:e,extension:t}),this._debug("Registered extension",e),S(t.registered)&&t.registered(e,this),!0)},this.unregisterExtension=function(e){if(!T(e))throw"Illegal argument type: extension name must be a string";for(var t=!1,n=0;n<_.length;++n){var r=_[n];if(r.name===e){_.splice(n,1),t=!0,this._debug("Unregistered extension",e);var i=r.extension;S(i.unregistered)&&i.unregistered();break}}return t},this.getExtension=function(e){for(var t=0;t<_.length;++t){var n=_[t];if(n.name===e)return n.extension}return null},this.getName=function(){return a},this.getClientId=function(){return h},this.getURL=function(){return E.url},this.getTransport=function(){return n},this.getConfiguration=function(){return this._mixin(!0,{},E)},this.getAdvice=function(){return this._mixin(!0,{},y)},e.cometd.WebSocket=window.WebSocket,e.cometd.WebSocket||(e.cometd.WebSocket=window.MozWebSocket)},e.cometd}.call(null,n,t,e))||(e.exports=r)},"mw-deprecation-utils/deprecation":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/_base/config"]),n(n.dj.r.absMids["mw-log/Log"])],i=n.dj.d(r,(function(e,t){var n={deprecated:function(n){var r,i;(!!e.isDebug||!!window.showDeprecationsAsErrors)&&this._isConfigValid(n)&&(i=window.showDeprecationsAsErrors||n.deprecationLevel===this.ERROR?this.ERROR:this.WARN,r="DEPRECATED: ",n.deprecated&&(r+=n.deprecated.module,n.deprecated.method&&(r+="."+n.deprecated.method+"()"),r+="."),n.replacement&&(r+=" Use "+n.replacement.module,n.replacement.method&&(r+="."+n.replacement.method+"()"),r+=" instead."),n.removalVersion&&(r+=" Will be removed in version: "+n.removalVersion+"."),n.geckNumber&&(r+=" Please use g"+n.geckNumber+" to track latest information regarding this deprecation"),n.additionalInformation&&(r+=" "+n.additionalInformation),t[i](r))},_isConfigValid:function(e){var n=!!e.deprecated&&"object"==typeof e.deprecated&&e.deprecated.hasOwnProperty("module");return e.replacement&&(n=n&&"object"==typeof e.replacement&&e.replacement.hasOwnProperty("module")),e.geckNumber&&(n=n&&"number"==typeof e.geckNumber),n||t.error("Supplied deprecationConfig properties are not valid. Please refer to http://inside.mathworks.com/wiki/Web_Widgets_Deprecation_API for right API"),n}};return Object.defineProperties(n,{WARN:{value:"warn",enumerable:!0},ERROR:{value:"error",enumerable:!0}}),n}),e,t),e.exports=i},"mw-html-utils/HtmlUtils":function(e,t,n){"use strict";var r,i;r=[n(n.dj.r.absMids["dojo/io-query"]),n(n.dj.r.absMids["mw-html-utils/_parseHtml/sanitize"]),n(n.dj.r.absMids["mw-deprecation-utils/deprecation"])],i=n.dj.d(r,(function(e,t,n){return{HYPERLINK_ESCAPE_REGEXP:/<a\s+href\s*=\s*"[^"]*"[^>]*>[\s\S]*?<\/a>/g,HYPERLINK_WITH_PARENTHESIS_ESCAPE_REGEXP:/<a\s+href\s*=\s*"([^"]*)"([^>]*)>([\s\S]*?)<\/a>/g,STRONG_ESCAPE_REGEXP:/<strong>|<\/strong>/g,BOLD_LINK_ATTRIBUTE_REGEX:/\bstyle\s*=\s*"[^"]*\bfont-weight\s*:\s*bold\b[^"]*"/,parseQueryString:function(){var e=window.location.search.substr(1,window.location.search.length);return this._parseQueryString(e)},_parseQueryString:function(t){return e.queryToObject(t)},parseUrl:function(e){var t=document.createElement("a");t.display="none",t.href=e||window.location.href,t.href=t.href;var n={protocol:t.protocol,hostname:t.hostname,port:t.port,pathname:t.pathname,search:t.search,hash:t.hash};return"https:"!==n.protocol&&"http:"!==n.protocol||0===n.pathname.indexOf("/")||(n.pathname="/"+n.pathname),"https:"===n.protocol&&"443"===n.port&&0!==e.indexOf("https://"+n.hostname+":443")&&(n.port=""),n},escapeHtml:function(e){var t=document.createElement("div");return t.textContent=e,t.innerHTML},escapeLinksAndHtml:function(e,t){n.deprecated({deprecated:{module:"mw-html-utils/HtmlUtils",method:"escapeLinksAndHtml"},replacement:{module:"mw-html-utils/HtmlUtils",method:"treatHtmlLikeCommandWindow"}});var r="",i=e.split(this.HYPERLINK_ESCAPE_REGEXP),o=e.match(this.HYPERLINK_ESCAPE_REGEXP),s="",a=this,c=0,d=function(e,t,n,r){var i=a.parseUrl(t).protocol;"http:"!==i&&"https:"!==i&&"matlab:"!==i&&(t="#"),t=a.escapeHtml(t),r=a._strongNotEscaped(r,!0),s='<a href="'+t+'">'+r+"</a>"};if(t)r=this.escapeHtml(e),r=this.escapeWhitespace(r);else if(""!==i[0]&&(r=this._strongNotEscaped(i[0],!0)),null!==o&&0!==o.length)for(c=0;c<o.length;c+=1)o[c].replace(this.HYPERLINK_WITH_PARENTHESIS_ESCAPE_REGEXP,d),""!==i[c+1]&&(i[c+1]=this._strongNotEscaped(i[c+1],!0)),r+=s+i[c+1];return r},treatHtmlLikeCommandWindow:function(e,t,n){if("string"!=typeof e)return"";var r="",i=e.split(this.HYPERLINK_ESCAPE_REGEXP),o=e.match(this.HYPERLINK_ESCAPE_REGEXP),s="",a=this,c=0;n=n||{};var d=function(e,t,n,r){var i=a.parseUrl(t).protocol,o="";"http:"!==i&&"https:"!==i&&"matlab:"!==i&&(t="#"),t=a.escapeHtml(t),r=a._strongNotEscaped(r,!1),a.BOLD_LINK_ATTRIBUTE_REGEX.test(n)&&(o=' style="font-weight:bold"'),s='<a href="'+t+'"'+o+">"+r+"</a>"};if(t)r=this.escapeHtml(e);else if(""!==i[0]&&(r=this._strongNotEscaped(i[0],!1)),null!==o&&0!==o.length)for(c=0;c<o.length;c+=1)o[c].replace(this.HYPERLINK_WITH_PARENTHESIS_ESCAPE_REGEXP,d),""!==i[c+1]&&(i[c+1]=this._strongNotEscaped(i[c+1],!1)),r+=s+i[c+1];return n.addPreTagToPreserveWhiteSpace&&(r='<span style="white-space: pre">'+r+"</span>"),r},_strongNotEscaped:function(e,t){var n="",r=e.match(this.STRONG_ESCAPE_REGEXP),i=e.split(this.STRONG_ESCAPE_REGEXP),o=function(e){return e};t&&(o=this.escapeWhitespace);var s=0;if(null!==r&&0!==r.length)for(n=o(this.escapeHtml(i[0])),s=0;s<r.length;s+=1)n+=r[s]+o(this.escapeHtml(i[s+1]));else n=o(this.escapeHtml(e));return n},escapeWhitespace:function(e){return n.deprecated({deprecated:{module:"mw-html-utils/HtmlUtils",method:"escapeWhitespace"},replacement:{module:"Plain HTML",method:'Set class as white-space: pre or use <span style="white-space: pre">...</span>'}}),(e=e||"").replace(/\n/g,"<br>").replace(/ {2}/g,"&nbsp;&nbsp;")},handleAnchors:function(e,t){if(t.target.href){t.preventDefault(),t.stopPropagation();var n=t.target.href;if(-1!==n.indexOf("matlab:")){if("matlab:"===n.substring(0,7)){var r=t.target.href.substring(7);e(window.unescape(r))}}else window.open(t.target.href)}},isElementOverflown:function(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth},sanitizeHtmlFromJava:t.sanitizeHtmlFromJava}}),e,t),e.exports=i},"mw-html-utils/_parseHtml/sanitize":function(e,t,n){"use strict";var r,i;r=[],i=n.dj.d(r,(function(){var e,t,n,r=["backgroundColor","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","color","fontFamily","fontSize","fontStyle","fontWeight","height","lineHeight","margin","marginBottom","marginLeft","marginRight","marginTop","maxHeight","maxWidth","minHeight","minWidth","overflow","overflowWrap","overflowX","overflowY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","textAlign","textAnchor","textDecoration","textIndent","textOverflow","textShadow","textTransform","width"];return{sanitizeHtmlFromJava:(e={A:["target","href","title"],ABBR:["title"],ADDRESS:[],AREA:["shape","coords","href","alt"],ARTICLE:[],ASIDE:[],AUDIO:["autoplay","controls","loop","preload","src"],B:[],BDI:["dir"],BDO:["dir"],BIG:[],BLOCKQUOTE:["cite"],BR:[],CAPTION:[],CENTER:[],CITE:[],CODE:[],COL:["align","valign","span","width"],COLGROUP:["align","valign","span","width"],DD:[],DEL:["datetime"],DETAILS:["open"],DIV:[],DL:[],DT:[],EM:[],FONT:["color","size","face"],FOOTER:[],H1:[],H2:[],H3:[],H4:[],H5:[],H6:[],HEADER:[],HR:[],I:[],IMG:["src","alt","title","width","height"],INS:["datetime"],LI:[],MARK:[],NAV:[],OL:[],P:[],PRE:[],S:[],SECTION:[],SMALL:[],SPAN:[],SUB:[],SUP:[],STRONG:[],TABLE:["width","border","align","valign"],TBODY:["align","valign"],TD:["width","rowspan","colspan","align","valign"],TFOOT:["align","valign"],TH:["width","rowspan","colspan","align","valign"],THEAD:["align","valign"],TR:["rowspan","align","valign"],TT:[],U:[],UL:[],VIDEO:["autoplay","controls","loop","preload","src","height","width"]},t={href:{"http:":!0,"https:":!0,"mailto:":!0,"matlab:":!0,relative:{"#":!0,"/":!0}},src:{"http:":!0,"https:":!0,"mailto:":!0,relative:{"#":!0,"/":!0}}},n=!0,function(i){var o=function(e,t){var n=String.prototype.trim.call(t),r=n.indexOf(":");return r<0&&e.relative[n.charAt(0)]||e[n.substring(0,r)+":"]?n:"#"},s=function(i){var s=void 0;return i.nodeType===window.Node.ELEMENT_NODE?e[i.tagName]?(s=document.createElement(i.tagName),function(e,n){for(var r=[],i=0;i<e.length;i+=1){var s=e[i];if(n.hasAttribute(s)){var a=n.getAttribute(s),c="";c=t[s]?o(t[s],a):a,r.push({key:s,value:c})}}return r}(e[i.tagName],i).forEach((function(e){s.setAttribute(e.key,e.value)})),n&&function(e,t){var n=t.getAttribute("style");if(e.style&&null!==n&&""!==n)for(var i=0;i<r.length;i+=1){var o=r[i],s=t.style[o];void 0!==e.style[o]&&(e.style[o]=s)}}(s,i)):s=document.createDocumentFragment():s=i.nodeType===window.Node.TEXT_NODE?document.createTextNode(i.textContent):document.createDocumentFragment(),s},a=(new DOMParser).parseFromString(i,"text/html");return a.body?function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=document.createDocumentFragment();if(n>150||!t)return r;for(var i=t.firstChild;i;i=i.nextSibling){var o=s(i);i.nodeType===window.Node.ELEMENT_NODE&&o.appendChild(e(i,n+1)),r.appendChild(o)}return r}(a.body):document.createDocumentFragment()})}}),e,t),e.exports=i},"mw-log/Log":function(e,t,n){"use strict";var r,i;r=[n(n.dj.r.absMids["mw-log/impl/Modes"]),n(n.dj.r.absMids["mw-log/impl/Levels"]),n(n.dj.r.absMids["mw-log/impl/Backlog"]),n(n.dj.r.absMids["mw-log/util/LogUtils"])],i=n.dj.d(r,(function(e,t,n,r){const i=n.create(100),o=4,s=3,a=3,c=3,d=3,l=3,u=3,h=3,f=3,p=2,m=1,g=0,b=0;let v={},_=0,y=t.DEBUG,j=e.DEVELOPMENT,w=[],M={};class E{constructor(n){null==M[n]?(r.makeReadOnlyProperty(this,"name",n),M[this.name]=this,this._timers={},this._threshold=t.DEBUG,this._showTimestamp=!0,r.makeReadOnlyProperty(this,"modes",e),r.makeReadOnlyProperty(this,"levels",t)):M.DEFAULT.error("a logger with the name '"+n+"' already exists - change the name to prevent interference")}static _sanitizeLevel(e){return"number"==typeof e?e:t.DEBUG}static _sanitizeMode(t){return r.objectValues(e).indexOf(t)>-1?t:e.development}get threshold(){return this._threshold}set threshold(e){this._threshold=E._sanitizeLevel(e)}get showTimestamp(){return this._showTimestamp}set showTimestamp(e){this._showTimestamp=!!e}get globalThreshold(){return y}set globalThreshold(e){y=E._sanitizeLevel(e)}get mode(){return j}set mode(e){j=E._sanitizeMode(e)}_shouldLog(e){return y>e&&this._threshold>e}_nameAndTime(){let e=[];return"DEFAULT"!==this.name&&e.push(this.name),this._showTimestamp&&e.push(r.currentTimeString()),e}table(e){if(this._shouldLog(c)){const t={namespace:this.name,type:"table",message:[e],time:new Date};i.add(t),r.printToConsole("log",this._nameAndTime(),j),r.printToConsole("table",[e],j),r.execCallbacks(v,t)}}trace(){if(this._shouldLog(d)){const e={namespace:this.name,type:"trace",message:null,time:new Date};let t=(new Error).stack.split("\n");for("Error"===t[0]&&t.shift();t[0].includes("Log.js")||t[0].includes("logger.trace")||"trace"===t[0];)t.shift();t=t.join("\n"),e.message=[t],i.add(e),r.printToConsole("log",this._nameAndTime(),j),r.printToConsole("trace",[],j),r.execCallbacks(v,e)}}time(e){this._shouldLog(l)&&(null==this._timers[e]?this._timers[e]=(new Date).getTime():this.warn('timer "'+e+'" already exists.'))}timeEnd(e){if(this._shouldLog(u)){const t={namespace:this.name,type:"timeEnd",message:null,time:new Date};if(null!=this._timers[e]){const n=(new Date).getTime()-this._timers[e];t.message=[e+": "+n+"ms - timer ended"],i.add(t),r.printToConsole("log",this._nameAndTime().concat(t.message),j),r.execCallbacks(v,t),this._timers[e]=null}else this.warn('timer "'+e+"\" doesn't exist.")}}_group(e,t){if(this._shouldLog(h)){const n=t?"groupCollapsed":"group",o={namespace:this.name,type:n,message:[e],time:new Date};w.push(e),i.add(o),r.printToConsole(n,[e],j),r.execCallbacks(v,o)}}groupCollapsed(e){this._group(e,!0)}group(e){this._group(e,!1)}groupEnd(){if(this._shouldLog(f)){const e=w.pop(),t={namespace:this.name,type:"groupEnd",message:[e],time:new Date};i.add(t),r.printToConsole("groupEnd",[],j),r.execCallbacks(v,t)}}assert(e,t){if(this._shouldLog(g)&&!e){const e={namespace:this.name,type:"assert",message:["Assertion failed:",t],time:new Date};i.add(e),e.message.shift();let n=[!1].concat(this._nameAndTime().concat(e.message));r.printToConsole("assert",n,j),r.execCallbacks(v,e)}}_basicLogMethod(e,t,n){if(this._shouldLog(t)){const t={namespace:this.name,type:e,message:n,time:new Date};n=this._nameAndTime().concat(n),i.add(t),r.printToConsole(e,n,j),r.execCallbacks(v,t)}}debug(e){const t=Array.prototype.slice.call(arguments);this._basicLogMethod("debug",o,t)}log(e){const t=Array.prototype.slice.call(arguments);this._basicLogMethod("log",s,t)}dir(e){const t=Array.prototype.slice.call(arguments);this._basicLogMethod("dir",a,t)}info(e){const t=Array.prototype.slice.call(arguments);this._basicLogMethod("info",p,t)}warn(e){const t=Array.prototype.slice.call(arguments);this._basicLogMethod("warn",m,t)}error(e){const t=Array.prototype.slice.call(arguments);this._basicLogMethod("error",b,t)}addCallback(e,t){v[_]=e,t&&i.applyCallback(e);let n={};const r=_;return n.remove=()=>{delete v[r]},_++,n}createLogger(e){const t=new E(e);return t.name?t:M[e]}}return new E("DEFAULT")}),e,t),e.exports=i},"mw-log/impl/Backlog":function(e,t,n){"use strict";var r,i;r=[n(n.dj.r.absMids["mw-log/util/LogUtils"])],i=n.dj.d(r,(function(e){let t={create:function(t){let n={},r=[];e.makeReadOnlyProperty(n,"size",t);let i=0;return n.add=function(e){r[i]=e,i=(i+1)%n.size},n.applyCallback=function(e){let o=i+1;void 0===r[o]&&(o=0);let s=0,a=o;for(;s<n.size&&void 0!==r[a];)e(r[a]),a=(a+1)%t,s++},n}};return t}),e,t),e.exports=i},"mw-log/impl/Levels":function(e,t,n){"use strict";var r,i;r=[],i=n.dj.d(r,(function(){const e={DEBUG:5,LOG:4,TABLE:4,TIME:4,DIR:4,INFO:3,WARN:2,ASSERT:1,ERROR:1};return Object.freeze(e),e}),e,t),e.exports=i},"mw-log/impl/Modes":function(e,t,n){"use strict";var r,i;r=[],i=n.dj.d(r,(function(){const e={DEVELOPMENT:"DEVELOPMENT",PRODUCTION:"PRODUCTION"};return Object.freeze(e),e}),e,t),e.exports=i},"mw-log/util/LogUtils":function(e,t,n){"use strict";var r,i;r=[n(n.dj.r.absMids["mw-log/impl/Modes"])],i=n.dj.d(r,(function(e){const t={objectValues:function(e){let t=[];for(let n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t},makeReadOnlyProperty:function(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1})},execCallbacks:function(e,n){const r=t.objectValues(e);for(let e in r)r[e](n)},currentTimeString:function(){const e=new Date;return e.toLocaleTimeString("en-US",{hour12:!1,hour:"numeric",minute:"numeric",second:"numeric"})+"."+e.getTime()%1e3},printToConsole:function(t,n,r){r===e.PRODUCTION&&"error"!==t||console[t].apply(console,n)}};return t}),e,t),e.exports=i},"mw-messageservice/MessageService":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/_base/lang"]),n(n.dj.r.absMids["dojo/aspect"]),n(n.dj.r.absMids["dojo/on"]),n(n.dj.r.absMids["mw-messageservice/messageserviceimpl/MessageServiceAsync"]),n(n.dj.r.absMids["mw-messageservice/messageserviceimpl/MessageServiceBase"]),n(n.dj.r.absMids["mw-messageservice/messageserviceimpl/MessageServiceReqResp"]),n(n.dj.r.absMids["mw-remote/Remote"])],i=n.dj.d(r,(function(e,t,n,r,i,o,s){let a=new i,c={messageService:a,subscribe:e.hitch(a,"subscribe"),unsubscribe:e.hitch(a,"unsubscribe"),publish:e.hitch(a,"publish"),start:e.hitch(a,"start"),stop:e.hitch(a,"stop"),isRunning:e.hitch(a,"isStarted"),isStarted:e.hitch(a,"isStarted"),isConnected:e.hitch(a,"isConnected"),isFatallyDisconnected:e.hitch(a,"isFatallyDisconnected"),isDisconnected:e.hitch(a,"isDisconnected"),setLatency:e.hitch(a,"setLatency"),setErrorRate:e.hitch(a,"setErrorRate"),getTransport:e.hitch(a,"getTransport"),onConnected:function(){},onDisconnected:function(){},onReconnected:function(){},onFatallyDisconnected:function(){},onNotConnected:function(){},on:function(e,t){return n(this.messageService,e,t)},handleMessage:e.hitch(a,"handleMessage"),internalMotwDisableStart:function(){this._startFunction=this.start,this.start=function(){}},internalMotwEnableStart:function(){this._startFunction&&(this.start=this._startFunction,this._startFunction=null)}};t.after(a,"onConnected",e.hitch(c,"onConnected"),!0),t.after(a,"onDisconnected",e.hitch(c,"onDisconnected"),!0),t.after(a,"onReconnected",e.hitch(c,"onReconnected"),!0),t.after(a,"onFatallyDisconnected",e.hitch(c,"onFatallyDisconnected"),!0),t.after(a,"onNotConnected",e.hitch(c,"onNotConnected"),!0);let d=s.enableServerOnWorkerAsync;s.enableServerOnWorkerAsync=function(){d(),a.setDelegate(new r(s))};let l=s.disableServerOnWorkerAsync;return s.disableServerOnWorkerAsync=function(){l(),a.setDelegate(new o(s,a))},s.isServerOnWorkerAsyncEnabled()?s.enableServerOnWorkerAsync():s.disableServerOnWorkerAsync(),c}),e,t),e.exports=i},"mw-messageservice/messageserviceimpl/MessageServiceAsync":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/_base/declare"]),n(n.dj.r.absMids["dojo/_base/config"]),n(n.dj.r.absMids["dojo/aspect"]),n(n.dj.r.absMids["dojo/json"]),n(n.dj.r.absMids["dojo/Deferred"]),n(n.dj.r.absMids["dojox/cometd/cometd"]),n(n.dj.r.absMids["dojox/cometd/AckExtension"]),n(n.dj.r.absMids["mw-messageservice/messageserviceimpl/transportEnums"]),n(n.dj.r.absMids["mw-log/Log"]),n(n.dj.r.absMids["mw-remote/iframeproxy/IframeProxyClient"])],i=n.dj.d(r,(function(e,t,n,r,i,o,s,a,c,d){let l,u=o.Utils.setTimeout;o.JSON.toJSON=r.stringify,o.JSON.fromJSON=r.parse;let h=0,f=0,p={};setInterval((function(){h+=200,Object.keys(p).forEach((function(e){let t=p[e];t.execTime<=h&&(t.func(),delete p[e])}))}),200);let m=function(e,t,n,r,i){let c=new o.LongPollingTransport,l=o.Transport.derive(c);l.xhrSend=function(e){let n;return r.remoteSupportsSendPayload?(e.headers=e.headers||{},e.headers.computeToken=r.computeToken,n=i.sendPayload(e.body,r.endPointName,{headers:e.headers})):n=t.sendMessage(e.body,r.url,{headers:e.headers}),n.then(e.onSuccess,(function(t){e.onError(t,t)})),{abort:function(){n.cancel()}}};let m=new o.Cometd(e);return o.Utils.setTimeout=function(e,t,n){return 0===n?u(e,t,n):(f+=1,p[f]={func:function(){try{t()}catch(e){m._debug("Exception invoking timed function",t,e)}},execTime:h+n},f)},o.Utils.clearTimeout=function(e){delete p[e]},r.remoteSupportsSendPayload?r.endPointAllowsDirectXhr.then((function(e){"ENABLED"!==e.status&&(o.WebSocket=d.WebSocket,d.WebSocket.proxyClient=t)})):(o.WebSocket=d.WebSocket,d.WebSocket.proxyClient=t),m.registerExtension("ack",new s),n[a.WEBSOCKET]&&m.registerTransport(a.WEBSOCKET,new o.WebSocketTransport,0),m.registerTransport(a.LONG_POLLING,l,1),m};const g=function(e,t){e.successful?t.resolve(e):(c.warn("Message failed: ",e),t.reject(e))};return l=e([],{BASE_PREFIX:"/matlab",BASE_END_POINT:"messageservice/async",logCometdLifecycle:!1,logCometdSubscriptions:!1,constructor:function(e,r,i,o){this.remote=e,this.constructCometD=r||m,this.cometdProperties=o||{connectTimeout:5e3,maxBackoff:1e4,logLevel:"info",maxNetworkDelay:2e4,appendMessageTypeToURL:!1,autoBatch:!0},this._webSocket={try:!0,connectedAtLeastOnce:!1};let s=["maxNetworkDelay","connectTimeout","logLevel"],a=t.cometdProperties;if(a)for(let e=0;e<s.length;e+=1){let t=s[e];void 0!==a[t]&&(this.cometdProperties[t]=a[t])}this.workerProxyAsyncClient=i||new d("remoteWorkerAsyncProducer");let l=this;n.after(this.workerProxyAsyncClient,"onError",(function(e){l.cometd&&(l.logCometdLifecycle&&c.info("MessageServiceAsync disconnecting cometd due to IFrame error."),l.cometd.disconnect()),l.onConnectionError(e)}),!0),this.subscriptions={},this.recentMessages=[],this._deferredCleanupFunction=function(){l._deferredCleanup=!1,l.recentMessages=[]}},onMessage:function(e){},onConnectionError:function(){},connect:function(){this.routingHost=l.workerHostOverride||this.remote.getWorkerRoutingHost(),this.routingKey=this.remote.getWorkerRoutingKey(),this.computeToken=this.remote.getComputeSessionId();let e=this._setUpEndPoint();this.computeToken&&(e.computeToken=this.computeToken),e.remoteSupportsSendPayload||this.workerProxyAsyncClient.setRemotePageHost(this.routingHost,this.routingKey,this.computeToken);let t={};l.enableWebsocket&&this._webSocket.try?t.websocket=!0:(t.websocket=!1,this._webSocket.try=!1);let n=this.constructCometD("messageService",this.workerProxyAsyncClient,t,e,this.remote);this.cometd=n,this.logCometdLifecycle&&c.info("MessageServiceAsync constructing new cometd instance.");let r=this._createOneShotMessagePromise("/meta/handshake");this._createListenerForUnknownClient();let o=this,s=new i;return r.then((function(e){o.logCometdLifecycle&&c.info("MessageServiceAsync cometd handshake successful.",e,n.getClientId(),n),n.isDisconnected()?(c.error("MessageServiceAsync cometd handshake successful but still disconnected!"),n.disconnect(),s.reject(e)):(n.getTransport().getType()===a.WEBSOCKET&&(o._webSocket.connectedAtLeastOnce=!0),s.resolve(e))}),(function(e){if(o.logCometdLifecycle&&c.info("MessageServiceAsync disconnecting cometd due to handshake failure.",e,n.getClientId(),n),n.disconnect(),e.request&&e.request.supportedConnectionTypes){let t=e.request.supportedConnectionTypes;if(t.length>1){t[0]!==a.WEBSOCKET||o._webSocket.connectedAtLeastOnce||(o._webSocket.try=!1)}}s.reject(e)})),this.cometdProperties.url=e.url,n.init(this.cometdProperties),s.promise},disconnect:function(){this.logCometdLifecycle&&c.info("MessageServiceAsync disconnecting cometd due to disconnect call.",this.cometd.getClientId());let e=this._createOneShotMessagePromise("/meta/disconnect");return this.cometd.disconnect(),e},cleanup:function(){this.cometd&&(this.logCometdLifecycle&&c.info("MessageServiceAsync disconnecting cometd due to cleanup call.",this.cometd,this.cometd&&this.cometd.getClientId()),this.cometd.disconnect(),this.cometd=null)},delegateConnected:function(){return!!this.cometd&&!this.cometd.isDisconnected()},doPublish:function(e,t){let n=new i;return this.cometd.publish(this._getRequestChannel(e),t,{},(function(e){g(e,n)})),n.promise},doSubscribe:function(e){this.logCometdSubscriptions&&c.info("MessageServiceAsync subscribing cometd to channel: "+e);let t=this._createOneShotMessagePromise("/meta/subscribe");return this.subscriptions[e]=this.cometd.subscribe(this._getRequestChannel(e),this,this._handleCometResponse),t},doUnsubscribe:function(e){if(this.subscriptions[e]){this.logCometdSubscriptions&&c.info("MessageServiceAsync unsubscribing cometd from channel: "+e);let t=this._createOneShotMessagePromise("/meta/unsubscribe");return this.cometd.unsubscribe(this.subscriptions[e]),delete this.subscriptions[e],t}return(new i).resolve({successful:!0})},doStartBatch:function(){this.cometd.startBatch()},doEndBatch:function(){this.cometd.endBatch()},doSetLatency:function(e){this.workerProxyAsyncClient.setLatency(e)},doSetErrorRate:function(e){this.workerProxyAsyncClient.setErrorRate(e)},getTransport:function(){return this.cometd&&!this.cometd.isDisconnected()?this.cometd.getTransport().getType():a.UNKNOWN},_handleCometResponse:function(e){this._shouldHandleMessage(e)&&this.onMessage(this._stripBasePrefixAndConvertToJson(e))},_shouldHandleMessage:function(e){return!e.id&&(this.recentMessages.indexOf(e)<0&&(this.recentMessages.push(e),this._deferRecentMessagesCleanup(),!0))},_deferRecentMessagesCleanup:function(){this._deferredCleanup||(this._deferredCleanup=setTimeout(this._deferredCleanupFunction,0))},_createOneShotMessagePromise:function(e){let t=new i;return this._addOneShotListener(e,(function(e){g(e,t)})),t.promise},_addOneShotListener:function(e,t){let n,r=this,i=this.cometd;n=this.cometd.addListener(e,(function(e){i.removeListener(n),t.apply(r,arguments)}))},_createListenerForUnknownClient:function(){let e=this.cometd,t=this;e.addListener("/meta/connect",(function(n){!n.successful&&n.advice&&"handshake"===n.advice.reconnect&&(e.disconnect(),t.onConnectionError(n.error))}))},_setUpEndPoint:function(){let e,t,n=!1,r="MESSAGE_SERVICE_ASYNC_ENDPOINT";return e=this.routingHost+this.BASE_END_POINT,this.routingKey&&(e+="?routingkey="+this.routingKey),{remoteSupportsSendPayload:n,url:e,endPointName:r,endPointAllowsDirectXhr:t}},_getRequestChannel:function(e){return this.BASE_PREFIX+e},_stripBasePrefixAndConvertToJson:function(e){return{channel:e.channel.substring(this.BASE_PREFIX.length),data:e.data}}}),l.enableWebsocket=!1,l.workerHostOverride=!1,window.location.search.indexOf("websocket=on")>=0&&(l.enableWebsocket=!0),l}),e,t),e.exports=i},"mw-messageservice/messageserviceimpl/MessageServiceBase":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/_base/declare"]),n(n.dj.r.absMids["dojo/_base/lang"]),n(n.dj.r.absMids["dojo/aspect"]),n(n.dj.r.absMids["dojo/Deferred"]),n(n.dj.r.absMids["mw-log/Log"]),n(n.dj.r.absMids["mw-messageservice/messageserviceimpl/MessageServiceState"]),n(n.dj.r.absMids["mw-messageservice/messageserviceimpl/transportEnums"])],i=n.dj.d(r,(function(e,t,n,r,i,o,s){return e([o],{logSubscriptions:!1,constructor:function(){this.batching=!0,this.typeSerializers=[],this.typeDeserializers={},this.channelSubscriptions={}},setDelegate:function(e){this.inherited("setDelegate",arguments),n.after(this._delegate,"onMessage",t.hitch(this,this.handleMessage),!0)},publish:function(e,t){if(this.isConnected()||"resubscribing"===this._currentState){let n=this._queuePublish(e,this.serialize(t));return this._deferProcessQueue(),n}return this._queuePublish(e,this.serialize(t))},subscribe:function(e,t,n){if(this.logSubscriptions&&i.info("MessageService subscribe: "+e,t,n),this._addHandler(this.channelSubscriptions,e,t,n),this.isConnected()||"resubscribing"===this._currentState){let r=this._queueSubscribe(e,t,n);return this._deferProcessQueue(),r}return this._queueSubscribe(e,t,n)},unsubscribe:function(e,t,n){if(this.logSubscriptions&&i.info("MessageService unsubscribe: "+e,t,n),this._removeHandler(this.channelSubscriptions,e,t,n)){if(this._removeQueuedMatchingSubscribe(e,t,n))return(new r).resolve();if(this.isConnected()||"resubscribing"===this._currentState){let r=this._queueUnsubscribe(e,t,n);return this._deferProcessQueue(),r}return(new r).resolve()}return i.error("Not subscribed to channel: "+e+", can't unsubscribe."),(new r).reject("Not subscribed to channel: "+e+", can't unsubscribe.")},flush:function(){if(!this.isConnected())throw new Error("Can only manually flush the queue when connected.");this._processQueue()},setLatency:function(e){this._delegate&&this._delegate.doSetLatency&&this._delegate.doSetLatency(e)},setErrorRate:function(e){this._delegate&&this._delegate.doSetErrorRate&&this._delegate.doSetErrorRate(e)},getTransport:function(){return this._delegate&&this._delegate.getTransport?this._delegate.getTransport():s.UNKNOWN},_enterDisconnected:function(){this.inherited("_enterDisconnected",arguments),this._queuedOps=[]},_enterConnecting:function(){this.inherited("_enterConnecting",arguments),Object.keys(this.channelSubscriptions).forEach((function(e){e.subscribed=!1}))},_enterConnected:function(){this.inherited("_enterConnected",arguments),this._processQueue()},_enterDisconnecting:function(){this._processQueue(),this.inherited("_enterDisconnecting",arguments)},_queuePublish:function(e,t){let n=new r;return this._queuedOps.push({type:"publish",channel:e,data:t,deferred:n}),n.promise},_queueSubscribe:function(e,t,n){let i=new r;return this._queuedOps.push({type:"subscribe",channel:e,handler:t,scope:n,deferred:i}),i.promise},_removeQueuedMatchingSubscribe:function(e,t,n){let r;for(let i=this._queuedOps.length-1;i>=0;i-=1)if(r=this._queuedOps[i],"subscribe"===r.type&&r.channel===e&&r.handler===t&&r.scope===n){this._queuedOps.splice(i,1);let e=this._delegate&&this._delegate.delegateConnected();return this.isConnected()&&e&&r.deferred.resolve(),!0}},_queueUnsubscribe:function(e,t,n){let i=new r;return this._queuedOps.push({type:"unsubscribe",channel:e,handler:t,scope:n,deferred:i}),i.promise},_processQueue:function(){let e=this._delegate&&this._delegate.delegateConnected();if(!(this.isConnected()&&e)&&"disconnecting"!==this._currentState)return;this._delegate.doStartBatch();let t=this._queuedOps;this._queuedOps=[],t.forEach((function(e){let t;"publish"===e.type?t=this._delegate.doPublish(e.channel,e.data):"subscribe"===e.type?t=this._doSubscribe(e.channel,e.handler,e.scope):"unsubscribe"===e.type&&(t=this._doUnsubscribe(e.channel,e.handler,e.scope)),t.then(e.deferred.resolve,e.deferred.reject)}),this),this._delegate.doEndBatch()},_deferProcessQueue:function(){if(this.batching&&!this._deferredTimeout){let e=this;this._deferredTimeout=setTimeout((function(){e._deferredTimeout=!1,e._processQueue()}),0)}else this.batching||this._processQueue()},_doSubscribe:function(e){if(this.channelSubscriptions[e].subscribed)return(new r).resolve();{let t=this._delegate.doSubscribe(e);return this.channelSubscriptions[e].subscribed=!0,t}},_doUnsubscribe:function(e){return this.channelSubscriptions[e]?(new r).resolve():this._delegate.doUnsubscribe(e)},handleMessage:function(e){let t;if(e&&e.channel){e.data&&(e.data=this.deserialize(e.data));let n=e.channel.split("/");for(t=1;t<=n.length;t+=1)this._callHandlers(this.channelSubscriptions,n.slice(0,t).concat("**").join("/"),e);this._callHandlers(this.channelSubscriptions,n.slice(0,n.length-1).concat("*").join("/"),e),this._callHandlers(this.channelSubscriptions,n.concat("*").join("/"),e),this._callHandlers(this.channelSubscriptions,e.channel,e)}},registerMessageHandler:function(e,t,n){i.error("registerMessageHandler is not supported any more.")},deregisterMessageHandler:function(e,t,n){i.error("deregisterMessageHandler is not supported any more.")},registerTypeSerializer:function(e,t,n){this.typeSerializers.push({typeMatcher:e,type:t,serializer:n})},registerTypeDeserializer:function(e,t){this.typeDeserializers[e]=t},serialize:function(e){return t.isArray(e)?this._serializeArray(e):e instanceof Number||e instanceof Boolean||t.isString(e)?e:this._serializeObject(e)},deserialize:function(e){return t.isArray(e)?this._deserializeArray(e):e instanceof Number||e instanceof Boolean||t.isString(e)?e:this._deserializeObject(e)},_addHandler:function(e,t,n,r){let o,s;r=r||this,"string"!=typeof n||"function"==typeof r[n]?(o=e[t],o||(o=[],e[t]=o),s={channel:t,handler:n,scope:r},o.push(s),o.sort((function(e){return e.exclusive?-1:0}))):i.warn("Not adding invalid handler: "+n)},_removeHandler:function(e,t,n,r){let i;r=r||this,i=e[t];let o=this._getHandlerIndex(i,{handler:n,scope:r});return o>=0&&i.splice(o,1),i&&0!==i.length||delete e[t],o>=0},_callHandlers:function(e,t,n){let r,o;if(e.hasOwnProperty(t))for(r=e[t],o=0;o<r.length;o+=1)try{"string"==typeof r[o].handler?r[o].scope[r[o].handler].call(r[o].scope,n):r[o].handler.call(r[o].scope,n)}catch(e){let r=2;i.error("Error while executing message handler on channel: "+t+", message: "+JSON.stringify(n,null,r)+", error: ",e)}},_getHandlerIndex:function(e,t){if(!e)return-1;let n;for(n=0;n<e.length;n+=1)if(t.handler===e[n].handler&&t.scope===e[n].scope)return n;return-1},_serializeObject:function(e){let t,n;for(n=0;n<this.typeSerializers.length;n+=1){let t=this.typeSerializers[n];if(t.typeMatcher(e))return{__type__:t.type,__value__:t.serializer.call(this,e)}}if(e instanceof window.Image)return e;for(t in e)e.hasOwnProperty(t)&&(e[t]=this.serialize(e[t]));return e},_serializeArray:function(e){let t,n=e.length;for(t=0;t<n;t+=1)e[t]=this.serialize(e[t]);return e},_deserializeObject:function(e){let t;if(null==e)return null;if(e.hasOwnProperty("__type__")&&e.hasOwnProperty("__value__"))try{return this.typeDeserializers[e.__type__].call(this,e.__value__)}catch(t){i.error("Error while trying to deserialize: ",e,"Error: ",t)}for(t in e)e.hasOwnProperty(t)&&null!==e[t]&&void 0!==e[t]&&(e[t]=this.deserialize(e[t]));return e},_deserializeArray:function(e){let t,n=e.length;for(t=0;t<n;t+=1)e[t]=this.deserialize(e[t]);return e}})}),e,t),e.exports=i},"mw-messageservice/messageserviceimpl/MessageServiceReqResp":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/_base/declare"]),n(n.dj.r.absMids["dojo/Deferred"]),n(n.dj.r.absMids["mw-log/Log"])],i=n.dj.d(r,(function(e,t,n){return e([],{pollDelay:50,constructor:function(e,t){this.remote=e,this.messageService=t,this.pending=0,e.registerDefaultMessageFactory("OpaqueMessage",(function(){return this.pending+=1,{opaqueMessageDOs:[]}}),this),e.registerResponseHandler("OpaqueMessageResponse",(function(e){this.pending-=1,e.forEach((function(e){try{e.opaqueMessageDOs&&e.opaqueMessageDOs.forEach(t.handleMessage,t)}catch(e){n.error("Error while handling message: "+e)}})),this.poll()}),this)},onMessage:function(e){},onConnectionError:function(){},connect:function(){return this.enabled=!0,this.poll(),(new t).resolve()},disconnect:function(){return this.enabled=!1,this.timeout&&(clearTimeout(this.timeout),this.timeout=null),(new t).resolve()},cleanup:function(){},poll:function(){if(this.enabled&&0===this.pending){let e=this;this.timeout=setTimeout((function(){e.pending+=1,e.remote.sendMessage({OpaqueMessage:{opaqueMessageDOs:[]}}),e.timeout=null}),this.pollDelay)}},doPublish:function(e,t){clearTimeout(this.timeout),this.timeout=null,this.pending+=1,this.remote.sendMessage({OpaqueMessage:{opaqueMessageDOs:[{channel:e,data:t}]}})},doSubscribe:function(e){},doUnsubscribe:function(e){},doStartBatch:function(){},doEndBatch:function(){}})}),e,t),e.exports=i},"mw-messageservice/messageserviceimpl/MessageServiceState":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/_base/declare"]),n(n.dj.r.absMids["dojo/Evented"]),n(n.dj.r.absMids["dojo/_base/lang"]),n(n.dj.r.absMids["dojo/aspect"]),n(n.dj.r.absMids["dojo/Deferred"]),n(n.dj.r.absMids["dojo/promise/all"]),n(n.dj.r.absMids["mw-statemachine/StateMachine"]),n(n.dj.r.absMids["mw-log/Log"])],i=n.dj.d(r,(function(e,t,n,r,i,o,s,a){return e([t],{_MAX_RETRIES:30,logStateChanges:!1,constructor:function(){this._stateOptions={context:this,name:"WraDataService",namespace:"MOTW.wra",defaultSubstate:"disconnected",substates:{disconnected:{transitions:{onEnterState:this._enterDisconnected,start:"connecting"}},connecting:{transitions:{onEnterState:this._enterConnecting,_connectSuccess:"resubscribing",_connectFailure:"reconnecting",stop:"disconnected"}},reconnecting:{transitions:{onEnterState:this._enterReconnecting,_connectSuccess:"resubscribing",_connectFailure:[this._retryFailure,"retryDelay"],stop:"disconnected"}},retryDelay:{transitions:{"timeout 2":"reconnecting",_reconnect:"reconnecting",stop:"disconnected"}},resubscribing:{transitions:{onEnterState:this._enterResubscribing,_resubscribeSuccess:"connected",_resubscribeFailure:"reconnecting",stop:"disconnecting"}},connected:{transitions:{onEnterState:this._enterConnected,_reconnect:"reconnecting",stop:"disconnecting"}},disconnecting:{transitions:{onEnterState:this._enterDisconnecting,_disconnectSuccess:"disconnected",_disconnectFailure:"disconnected","timeout 2":"disconnected"}},fatallyDisconnected:{transitions:{onEnterState:this._enterFatallyDisconnected,stop:"disconnected"}}}}},setDelegate:function(e){if(this._delegate!==e){this._delegate=e;let t=this;r.after(e,"onConnectionError",(function(){a.warn("MessageService received connection error, reconnecting"),t._reconnect()}),!0),this._states=new s(this._stateOptions),r.after(this._states,"onEnterState",n.hitch(this,this._enterState),!0),this._states.start()}},onConnected:function(){this.emit("connected")},onNewlyConnected:function(){},onDisconnected:function(){this.emit("disconnected")},onReconnected:function(){this.emit("reconnected")},onFatallyDisconnected:function(){this.emit("fatallyDisconnected")},onNotConnected:function(){this.emit("notConnected")},isStarted:function(){return"disconnecting"!==this._currentState&&"disconnected"!==this._currentState},isConnected:function(){return"connected"===this._currentState},isFatallyDisconnected:function(){return"fatallyDisconnected"===this._currentState},isDisconnected:function(){return"disconnected"===this._currentState},start:function(){},stop:function(){},_enterState:function(e){let t=this._currentState;this._currentState=e,this.logStateChanges&&a.info("MessageService state change: "+t+" -> "+e),"connected"===t&&this.onNotConnected(),"connected"===e&&this._previouslyConnected?this.onReconnected():"connected"!==e||this._previouslyConnected||this.onNewlyConnected()},_enterDisconnected:function(){this._previouslyConnected=!1,this._delegate.cleanup(),this.onDisconnected()},_enterConnecting:function(){this._retryCount=0,this._delegate.connect().then(this._connectSuccess,this._connectFailure)},_enterReconnecting:function(){this._retryCount+=1,a.info("Reconnecting message service. Attempt "+this._retryCount,arguments),this._delegate.cleanup(),this._delegate.connect().then(this._connectSuccess,this._connectFailure)},_reconnect:function(){},_connectSuccess:function(){},_connectFailure:function(){},_timeoutAction:function(){this.logStateChanges&&a.info("MessageService timeout:",arguments)},_retryFailure:function(){let e;return this._retryCount>=this._MAX_RETRIES&&(a.error("Message service fatally disconnected."),e="fatallyDisconnected"),e},_enterResubscribing:function(){let e,t,n=[];for(e in this._delegate.doStartBatch(),this.channelSubscriptions)this.channelSubscriptions.hasOwnProperty(e)&&(t=this.channelSubscriptions[e],n.push(this._delegate.doSubscribe(e)),t.subscribed=!0);this._delegate.doEndBatch(),o(n).then(this._resubscribeSuccess,this._resubscribeFailure)},_resubscribeSuccess:function(){},_resubscribeFailure:function(){},_enterConnected:function(){this._delegate.delegateConnected()?(this._retryCount=0,this._previouslyConnected&&a.info("Successfully connected."),this._previouslyConnected=!0,this.onConnected()):this._reconnect()},_enterFatallyDisconnected:function(){this.onFatallyDisconnected()},_enterDisconnecting:function(){this._delegate.disconnect().then(this._disconnectSuccess,this._disconnectFailure)},_disconnectSuccess:function(){},_disconnectFailure:function(){}})}),e,t),e.exports=i},"mw-messageservice/messageserviceimpl/transportEnums":function(e,t,n){var r,i;r=[],i=n.dj.d(r,(function(){return{UNKNOWN:"unknown",LONG_POLLING:"long-polling",WEBSOCKET:"websocket"}}),e,t),e.exports=i},"mw-remote/EndPointsManager":function(e,t,n){"use strict";var r,i;r=[n(n.dj.r.absMids["dojo/_base/declare"]),n(n.dj.r.absMids["dojo/_base/array"]),n(n.dj.r.absMids["dojo/_base/Deferred"]),n(n.dj.r.absMids["dojo/_base/lang"]),n(n.dj.r.absMids["mw-remote/iframeproxy/IframeProxyClient"])],i=n.dj.d(r,(function(e,t,n,r,i){return e([],{constructor:function(){this.DirectXhrConstants={ENABLED:"ENABLED",DISABLED:"DISABLED",UNRESOLVED:"UNRESOLVED"},this._setDirectXhrCommunicationState(!1),this._directXhrChecks={},this._initializeEndPointsCollection()},_initializeEndPointsCollection:function(){this.endPointsCollection={ROUTER_LEAF_INSECURE_ENDPOINT:{routingHost:"",routingKey:"",iframeProxy:null,enabled:!0,iframeProxyUrl:"",pathSuffix:"messageservice/json",messages:["RouterLogin","CreateAccount","CurrentUser","Login","UpdateAccount","ServiceRegistry","ClientType","AuthorizationDetails","AcquireMatlab"],iframeProxyName:"remoteProducer",acceptsMessageContainerMessages:!0,directXhr:this.DirectXhrConstants.UNRESOLVED},ROUTER_LEAF_SECURE_ENDPOINT:{routingHost:"",routingKey:"",iframeProxy:null,enabled:!0,iframeProxyUrl:"",pathSuffix:"messageservice/json/secure",messages:[],iframeProxyName:"remoteProducer",acceptsMessageContainerMessages:!0,directXhr:this.DirectXhrConstants.UNRESOLVED},WORKER_ENDPOINT:{routingHost:"",routingKey:"",iframeProxy:null,enabled:!1,iframeProxyUrl:"",pathSuffix:"messageservice/json/secure",messages:[],iframeProxyName:"remoteWorkerProducer",acceptsMessageContainerMessages:!0,directXhr:this.DirectXhrConstants.UNRESOLVED},WORKER_ASYNC_ENDPOINT:{routingHost:"",routingKey:"",iframeProxy:null,enabled:!0,iframeProxyUrl:"",pathSuffix:"messageservice/async",messages:[],iframeProxyName:"remoteWorkerAsyncProducer",acceptsMessageContainerMessages:!0,directXhr:this.DirectXhrConstants.UNRESOLVED},USAGE_DATA_ROUTER_ENDPOINT:{routingHost:"",routingKey:"",iframeProxy:null,enabled:!0,iframeProxyUrl:"",pathSuffix:"udc/service/v1/events",messages:["UsageDataEventCollection"],iframeProxyName:"remoteUDCProducer",acceptsMessageContainerMessages:!1,directXhr:this.DirectXhrConstants.UNRESOLVED},HELP_DATA_ROUTER_ENDPOINT:{routingHost:"",routingKey:"",iframeProxy:null,enabled:!0,iframeProxyUrl:"",pathSuffix:"",messages:["HelpDataEventCollection"],iframeProxyName:"doc_center",acceptsMessageContainerMessages:!1,directXhr:this.DirectXhrConstants.UNRESOLVED}}},_setDirectXhrCommunicationState:function(e){this._useDirectXhrForCommunication=e},reset:function(){this._initializeEndPointsCollection(),this._directXhrChecks={}},setUpNewEndPoint:function(e,t,n,r,i){this.endPointsCollection[e]={routingHost:"",routingKey:"",pathSuffix:n,enabled:t,messages:[],iframeProxy:null,iframeProxyName:r,acceptsMessageContainerMessages:i,directXhr:this.DirectXhrConstants.UNRESOLVED}},getPathSuffixForEndPoint:function(e){return this.endPointsCollection[e].pathSuffix},setPathSuffixForEndPoint:function(e,t){this.endPointsCollection[e].pathSuffix=t},getEndPointNames:function(){var e,t={};for(e in this.endPointsCollection)this.endPointsCollection.hasOwnProperty(e)&&(t[e]=e);return t},setRoutingHostAndRoutingKey:function(e,t,n){t&&t.lastIndexOf("/")!==t.length-1&&(t+="/"),this.endPointsCollection[e].routingHost=t,n&&(this.endPointsCollection[e].routingKey=n),this._checkIfEndpointAllowsDirectXhr(e,!0).then(r.hitch(this,this._processEndPointAllowsXhrResponse,e,t))},_processEndPointAllowsXhrResponse:function(e,t,n){this._setEndpointAllowsDirectXhr(n),n.status!==this.DirectXhrConstants.ENABLED&&t&&this._setIframeRoutingHostAndRoutingkey(e)},_setEndpointAllowsDirectXhr:function(e){this.endPointsCollection[e.endPointName]&&e.status in this.DirectXhrConstants&&(this.endPointsCollection[e.endPointName].directXhr=e.status)},_setIframeRoutingHostAndRoutingkey:function(e){var t=this.getIframeProxyClientForEndPoint(e);t&&t.setRemotePageHost(this.endPointsCollection[e].routingHost,this.endPointsCollection[e].routingKey,null,this.endPointsCollection[e].iframeProxyUrl)},getEndPointAllowsDirectXhr:function(e){return this._checkIfEndpointAllowsDirectXhr(e,!1)},_checkIfEndpointAllowsDirectXhr:function(e,t){if(this._directXhrChecks[e]&&!t)return this._directXhrChecks[e];var r=new n;this._directXhrChecks[e]=r;var i,o=this.getDirectXhrAllowed(e),s=this.DirectXhrConstants,a={endPointName:e,status:s.UNRESOLVED};if("function"==typeof URL)try{i=new URL(this.getRoutingHost(e))}catch(e){return a.status=s.DISABLED,r.resolve(a),r.promise}else(i=document.createElement("a")).href=this.getRoutingHost(e);if(this._useDirectXhrForCommunication)if(i.origin===window.location.origin)a.status=s.ENABLED,r.resolve(a);else if(o===s.UNRESOLVED){var c=new XMLHttpRequest,d=this.getRemoteUrlForEndPoint(e);c.open("OPTIONS",d),c.send(),c.onload=function(){200===c.status?(a.status=s.ENABLED,r.resolve(a)):(a.status=s.DISABLED,r.resolve(a))},c.onerror=function(){a.status=s.DISABLED,r.resolve(a)}}else a.status=o,r.resolve(a);else a.status=s.DISABLED,r.resolve(a);return r.promise},getRoutingHost:function(e){return this.endPointsCollection[e].routingHost},getRoutingKey:function(e){return this.endPointsCollection[e].routingKey},getMessageTypesMappedToEndPoint:function(e){return this.endPointsCollection[e].messages},isEndPointEnabled:function(e){return this.endPointsCollection[e].enabled},setMessageTypesToEndPoint:function(e,t){this.endPointsCollection[e].messages=t},enableEndPoint:function(e){this.endPointsCollection[e].enabled=!0},getDirectXhrAllowed:function(e){return this.endPointsCollection[e].directXhr},disableEndPoint:function(e){this.endPointsCollection[e].enabled=!1},getEndPointForMessageType:function(e){var n,r=null;for(n in this.endPointsCollection)if(this.endPointsCollection.hasOwnProperty(n)&&(r=t.lastIndexOf(this.endPointsCollection[n].messages,e)>-1?n:r)){if(this.isEndPointEnabled(r))break;r=null}return r||this.getEndPointNames().ROUTER_LEAF_SECURE_ENDPOINT},getRemoteUrlForEndPoint:function(e){var t=this.endPointsCollection[e].routingHost+this.endPointsCollection[e].pathSuffix;return this.endPointsCollection[e].routingKey&&(t=t+"?routingkey="+this.endPointsCollection[e].routingKey),t},setIframeProxyClientForEndPoint:function(e,t){this.endPointsCollection[e].iframeProxy=t},getIframeProxyClientForEndPoint:function(e){var t=this.endPointsCollection[e].iframeProxy;return t||(t=new i(this.endPointsCollection[e].iframeProxyName),this.endPointsCollection[e].iframeProxy=t),t},isEndpointMessageContainerBased:function(e){return!e||!this.endPointsCollection[e]||this.endPointsCollection[e].acceptsMessageContainerMessages},addMessagesTypesToEndPoint:function(e,t){this.endPointsCollection[e]&&-1===this.endPointsCollection[e].messages.indexOf(t)&&this.endPointsCollection[e].messages.push(t)},removeMessageTypesFromEndPoint:function(e,t){if(this.endPointsCollection[e]){var n=this.endPointsCollection[e].messages.indexOf(t);n>-1&&this.endPointsCollection[e].messages.splice(n,1)}}})}),e,t),e.exports=i},"mw-remote/Remote":function(e,t,n){"use strict";var r,i;r=[n(n.dj.r.absMids["dojo/_base/lang"]),n(n.dj.r.absMids["dojo/aspect"]),n(n.dj.r.absMids["mw-remote/iframeproxy/IframeProxyClient"]),n(n.dj.r.absMids["mw-remote/impl/FaultManager"]),n(n.dj.r.absMids["mw-remote/impl/RequestManager"]),n(n.dj.r.absMids["mw-remote/impl/ResponseManager"]),n(n.dj.r.absMids["mw-remote/impl/Transaction"]),n(n.dj.r.absMids["mw-remote/impl/AutoDetectedTransaction"]),n(n.dj.r.absMids["mw-remote/RemoteEndPointsManager"]),n(n.dj.r.absMids["mw-remote/utils/SendMessageUtil"]),n(n.dj.r.absMids["mw-remote/UploadToWorker"]),n(n.dj.r.absMids["mw-log/Log"]),n(n.dj.r.absMids["mw-remote/utils/RemoteUrlUtils"]),n(n.dj.r.absMids["mw-remote/serviceRegistryLookup!"])],i=n.dj.d(r,(function(e,t,n,r,i,o,s,a,c,d,l,u,h,f){var p;return(p={reset:function(){var m=[],g=new r,b=new o({faultManager:g}),v=new i({responseManager:b});p.faultManager=g,p.responseManager=b,p.requestManager=v,p._serviceRegistryLookup=f,p._uploadIframeProxyUrlParameters=["?computeToken=","","&routingkey=",""];var _=p.proxyClient=new n;p.createUploadIframeTarget=e.hitch(_,_.createUploadIframeTarget),p.cancelUpload=e.hitch(_,_.cancelUpload),c.setIframeProxyClientForEndPoint(c.getEndPointNames().ROUTER_LEAF_SECURE_ENDPOINT,_),c.setIframeProxyClientForEndPoint(c.getEndPointNames().ROUTER_LEAF_INSECURE_ENDPOINT,_),s.construct=function(e){return e=e||{},c.getRoutingHost(c.getEndPointNames().ROUTER_LEAF_INSECURE_ENDPOINT)||p.setEndpoint(),e.allowedMessages=m,e.sendMessage=p.sendMessage,e.computeSessionId=p.getComputeSessionId,new a(e)},p.registerEndpointLevelFaultHandler=e.hitch(g,g.registerEndpointLevelFaultHandler),p.sendMessage=e.hitch(v,v.sendMessage),p.sendPayload=d.sendPayload,p.registerDefaultMessageFactory=e.hitch(v,v.registerDefaultMessageFactory),p.deregisterDefaultMessageFactory=e.hitch(v,v.deregisterDefaultMessageFactory),p.registerResponseHandler=e.hitch(b,b.registerResponseHandler),p.deregisterResponseHandler=e.hitch(b,b.deregisterResponseHandler),p.registerFaultHandler=e.hitch(g,g.registerFaultHandler),p.deregisterFaultHandler=e.hitch(g,g.deregisterFaultHandler),p.registerTopLevelFaultHandler=e.hitch(g,g.registerTopLevelFaultHandler),p.deregisterTopLevelFaultHandler=e.hitch(g,g.deregisterTopLevelFaultHandler),p.setServiceEndPoint=function(e,t,n){c.setRoutingHostAndRoutingKey(e,t,n)},p.setDirectXhrCommunicationState=function(e){c._setDirectXhrCommunicationState(e)},p.setServicePathSuffixForEndPoint=function(e,t){c.setPathSuffixForEndPoint(e,t)},p.ignoreTopLevelFault=p.registerTopLevelFaultHandler,p.setComputeToken=function(e){p._uploadIframeProxyUrlParameters[1]=e.computeSessionId,v.computeToken=e},p.setWorkerEndpoint=function(e,t){p._uploadIframeProxyUrlParameters[3]=t,c.setRoutingHostAndRoutingKey(c.getEndPointNames().WORKER_ENDPOINT,e,t)},p.setEndpoint=function(e){if(!e){var t=p._serviceRegistryLookup.getServiceRegistryEndpoint("primary");t?e=t:(u.info("ServiceRegistryLookup is empty, falling back to localhost"),e="/")}if(!e||"/"===e){var n=(document.getElementsByTagName("base")[0]||{}).href;if(void 0!==n){var r=document.createElement("a");r.display="none",r.href=n,e=r.protocol+"//"+r.hostname+(r.port?":"+r.port:"")+"/"}else e=window.location.protocol+"//"+window.location.host+"/"}c.setRoutingHostAndRoutingKey(c.getEndPointNames().ROUTER_LEAF_SECURE_ENDPOINT,e),c.setRoutingHostAndRoutingKey(c.getEndPointNames().ROUTER_LEAF_INSECURE_ENDPOINT,e),_.setRemotePageHost(e)},p.setAllowedMessages=function(e){m=e},p.allowAllMessages=function(){m=[]},p.getEndPoint=function(){return c.getRoutingHost(c.getEndPointNames().ROUTER_LEAF_SECURE_ENDPOINT)},p.getUploadIframeProxyUrl=function(){var e=p.getWorkerRoutingHost();return"/"===e.slice(-1)&&(e=e.slice(0,-1)),e+_.getUploadIframeProxyUrlPath()+p._uploadIframeProxyUrlParameters.join("")},p.getComputeSessionId=function(){return v.computeToken?v.computeToken.computeSessionId:null},p.getWorkerRoutingHost=function(){var e=c.getRoutingHost(c.getEndPointNames().WORKER_ENDPOINT);if(e)return e;if(!(e=p._serviceRegistryLookup.getServiceRegistryEndpoint("primary"))||"/"===e){var t=(document.getElementsByTagName("base")[0]||{}).href;if(void 0!==t){var n=document.createElement("a");n.display="none",n.href=t,e=n.protocol+"//"+n.hostname+(n.port?":"+n.port:"")+"/"}else e=window.location.protocol+"//"+window.location.host+"/"}return e},p.getWorkerRoutingKey=function(){return c.getRoutingKey(c.getEndPointNames().WORKER_ENDPOINT)},p.upload=function(e,t){return(new l).upload(e,t,{endpoint:p.getWorkerRoutingHost(),uploadIframeProxyUrl:p.getUploadIframeProxyUrl()})},p.createWorkerRoutingHostUrl=function(e){return h.createWorkerRoutingHostUrl(e,{host:p.getWorkerRoutingHost(),sessionId:p.getComputeSessionId(),routingKey:p.getWorkerRoutingKey()})},p.getServiceRegistryEndpoint=function(e){return p._serviceRegistryLookup.getServiceRegistryEndpoint(e)},p.enableServerOnWorkerAsync=function(){c.enableEndPoint(c.getEndPointNames().WORKER_ASYNC_ENDPOINT)},p.disableServerOnWorkerAsync=function(){c.disableEndPoint(c.getEndPointNames().WORKER_ASYNC_ENDPOINT)},p.isServerOnWorkerAsyncEnabled=function(){return c.isEndPointEnabled(c.getEndPointNames().WORKER_ASYNC_ENDPOINT)},p.enableServerOnWorker=function(){c.enableEndPoint(c.getEndPointNames().WORKER_ENDPOINT)},p.disableServerOnWorker=function(){c.disableEndPoint(c.getEndPointNames().WORKER_ENDPOINT)},p.isWorkerEndpointEnabled=function(){return c.isEndPointEnabled(c.getEndPointNames().WORKER_ENDPOINT)},p.setWorkerOnlyMessageTypes=function(e){c.setMessageTypesToEndPoint(c.getEndPointNames().WORKER_ENDPOINT,e)},t.after(_,"onError",(function(e){e&&g.handleNonTransactionFault(e)}),!0),p.createNewEndPoint=function(e,t,n,r,i){this.getEndPointByName(e)||c.setUpNewEndPoint(e,t,n,r,i)},p.getUrlForEndPoint=function(e){return c.getRemoteUrlForEndPoint(e)},p.getEndPointByName=function(e){return c.getEndPointNames()[e]},p.getEndPointAllowsDirectXhr=function(e){return c.getEndPointAllowsDirectXhr(e)}}}).reset(),p}),e,t),e.exports=i},"mw-remote/RemoteEndPointsManager":function(e,t,n){"use strict";var r,i;r=[n(n.dj.r.absMids["mw-remote/EndPointsManager"])],i=n.dj.d(r,(function(e){var t=null;return null===t&&(t=new e),t}),e,t),e.exports=i},"mw-remote/ReplaceUploadIframe":function(e,t,n){"use strict";var r,i;function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}r=[],i=n.dj.d(r,(function(){return function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._xhr=null,this._uploadDestinationUrl=t.uploadDestinationUrl,this._computeToken=t.computeToken,this._routingkey=t.routingkey,this._fileDestination=t.fileDestination,this._csrfToken=t.csrfToken,this._postMessage=function(e){t.postMessage(e)}}var t,n,r;return t=e,(n=[{key:"_postMessageToParent",value:function(e){this._postMessage({data:e})}},{key:"_createFormDataFromFileList",value:function(e){for(var t=new window.FormData,n=0;n<e.length;n++){var r=e[n];t.append("uploadFileName",r,r.name)}return t}},{key:"_createAndSendXhr",value:function(e){var t=this;this._xhr=new XMLHttpRequest,this._xhr.upload.onprogress=function(e){t._postMessageToParent({type:"updateProgress",loaded:e.loaded,total:e.total})},this._xhr.onload=function(){t._postMessageToParent({type:"uploadFinished",status:t._xhr.status,response:t._xhr.response})},this._xhr.onerror=function(){t._postMessageToParent({type:"uploadError",status:t._xhr.status,response:t._xhr.response})},this._xhr.open("POST","".concat(this._uploadDestinationUrl,"?dest=").concat(this._fileDestination,"&computeToken=").concat(this._computeToken,"&routingKey=").concat(this._routingkey,"&csrfToken=").concat(this._csrfToken),!0),this._xhr.send(e)}},{key:"handleMessage",value:function(e){if(e.data instanceof FileList){var t=this._createFormDataFromFileList(e.data);this._createAndSendXhr(t)}else"cancelUpload"===e.data&&(this._xhr&&this._xhr.abort(),this._postMessageToParent({type:"uploadCanceled"}))}}])&&o(t.prototype,n),r&&o(t,r),e}()}),e,t),e.exports=i},"mw-remote/UploadToWorker":function(e,t,n){"use strict";var r,i;r=[n(n.dj.r.absMids["dojo/_base/declare"]),n(n.dj.r.absMids["dojo/Deferred"]),n(n.dj.r.absMids["dojo/dom-construct"]),n(n.dj.r.absMids["mw-html-utils/HtmlUtils"]),n(n.dj.r.absMids["mw-remote/RemoteEndPointsManager"]),n(n.dj.r.absMids["mw-remote/utils/SendMessageUtil"]),n(n.dj.r.absMids["mw-remote/ReplaceUploadIframe"])],i=n.dj.d(r,(function(e,t,n,r,i,o,s){return e([],{constructor:function(){},upload:function(e,n,r){var s=this;if(this._uploadHandler=new t((function(){s.postMessageToUploadIframe("cancelUpload"),s._unloadIframe()})),this._workerEndpoint=r.endpoint,e instanceof FileList){var a={csrfToken:void 0,validForMs:void 0};return o.sendPayload(JSON.stringify({messages:{CreateCsrfToken:[{}]}}),i.getEndPointNames().WORKER_ENDPOINT).then((function(t){if(t.messages.CreateCsrfTokenResponse.forEach((function(e){e.messageFaults&&e.messageFaults.length>0||(a={csrfToken:e.csrfToken,validForMs:e.validForMs})})),window.MW_USE_IFRAME_OUT_OF_MODEL){var i=encodeURI(r.uploadIframeProxyUrl)+"&uploadDestinationUrl="+s._workerEndpoint+"upload?dest="+encodeURIComponent(n)+"&csrfToken="+encodeURIComponent(a.csrfToken);s._createUploadIframe(e,i)}else{var o=new URL(r.uploadIframeProxyUrl).searchParams,c=o.get("computeToken"),d=o.get("routingkey");s._createUploadIframeNew(e,{uploadDestinationUrl:s._workerEndpoint+"upload",computeToken:c,routingkey:d,fileDestination:encodeURIComponent(n),csrfToken:encodeURIComponent(a.csrfToken)})}})),this._uploadHandler}},_createUploadIframe:function(e,t){var r=this;this._eventCallBack=function(t){if(r.getHostName(t.origin)===r.getHostName(r._workerEndpoint))switch(t.data.type){case"iframeIsReady":r.postMessageToUploadIframe(e);break;case"updateProgress":r._uploadHandler.progress({loaded:t.data.loaded,total:t.data.total});break;case"uploadFinished":r._uploadHandler.resolve({status:t.data.status,response:t.data.response}),r._unloadIframe();break;case"uploadError":r._uploadHandler.reject({status:t.data.status,response:t.data.response})}},this._uploadIframe=n.create("iframe",{id:"uploadIframe",src:t,width:0,height:0,style:"visibility: hidden; display: none;"}),document.body.appendChild(this._uploadIframe),window.addEventListener("message",this._eventCallBack,!1)},_createUploadIframeNew:function(e,t){var n=this;this._eventCallBack=function(e){switch(e.data.type){case"updateProgress":n._uploadHandler.progress({loaded:e.data.loaded,total:e.data.total});break;case"uploadFinished":n._uploadHandler.resolve({status:e.data.status,response:e.data.response}),n._unloadIframe();break;case"uploadError":n._uploadHandler.reject({status:e.data.status,response:e.data.response})}},t.postMessage=this._eventCallBack,this._ReplaceUploadIframe=new s(t),this.postMessageToUploadIframe(e)},_unloadIframe:function(){window.MW_USE_IFRAME_OUT_OF_MODEL?this._uploadIframe&&(window.removeEventListener("message",this._eventCallBack,!1),this._uploadIframe.parentNode.removeChild(this._uploadIframe),n.destroy(this._uploadIframe),this._uploadIframe=void 0):this._ReplaceUploadIframe=null},getHostName:function(e){return r.parseUrl(e).hostname},postMessageToUploadIframe:function(e){window.MW_USE_IFRAME_OUT_OF_MODEL?this._uploadIframe.contentWindow.postMessage(e,this._workerEndpoint):this._ReplaceUploadIframe&&this._ReplaceUploadIframe.handleMessage({data:e})}})}),e,t),e.exports=i},"mw-remote/defaultMessageMapping":function(e,t,n){"use strict";var r,i;r=[],i=n.dj.d(r,(function(){return{Eval:["CurrentFolder","ListFolder"],"Eval:Ping":[],"Eval:RunFile":["UpdateFile","CurrentFolder","ListFolder"],"Eval:MlsPublishPre":["UpdateFile"],"FEval:liveEvalInstrumentCode":[],Interrupt:[],"FEval:GetFigures":["CurrentFolder","ListFolder"],"FEval:CloseFigure":["FEval:GetFigures"],"FEval:SelectFigure":["FEval:GetFigures"],"FEval:ResetAxes":["FEval:GetFigures"],"FEval:ResizeFigure":["FEval:GetFigures"],"FEval:AxesInteraction2D":["FEval:GetFigures"],"FEval:AxesInteraction3D":["FEval:GetFigures"],CurrentUser:["ServiceRegistry"],RouterLogin:["ServiceRegistry"],CurrentFolder:["ListFolder"],MoveFile:["CurrentFolder"],Variable:[],CloseFile:["SaveSession"],UpdateFile:["SaveSession"],SaveSession:["UpdateFile"],SaveSessionState:["UpdateFile"],Logout:["CloseFile"],UpdateShare:["ListFolder"],AcquireMatlab:["ServiceRegistry"]}}),e,t),e.exports=i},"mw-remote/iframeproxy/CheckUrlService":function(e,t,n){"use strict";var r,i;r=[n(n.dj.r.absMids["dojo/dom"]),n(n.dj.r.absMids["dojo/on"]),n(n.dj.r.absMids["dojo/request/script"]),n(n.dj.r.absMids["mw-log/Log"])],i=n.dj.d(r,(function(e,t,n,r){return function(i){var o,s,a,c;if(!i)throw new Error("Expected a valid url in urlToEmptyJsFile");return(o={}).framedoc=null,"error",s=n.get(i,o,!0),a=e.byId(s.id,o.frameDoc),c=t(a,"error",(function(e){r.info("CheckUrlService detected an error accessing url: "+i),s.handleResponse(null,e),c.remove()})),s.promise}}),e,t),e.exports=i},"mw-remote/iframeproxy/IframeProxyClient":function(e,t,n){"use strict";var r,i;r=[n(n.dj.r.absMids["dojo/_base/connect"]),n(n.dj.r.absMids["dojo/_base/declare"]),n(n.dj.r.absMids["dojo/_base/Deferred"]),n(n.dj.r.absMids["dojo/_base/lang"]),n(n.dj.r.absMids["dojo/aspect"]),n(n.dj.r.absMids["dojo/dom-construct"]),n(n.dj.r.absMids["mw-log/Log"]),n(n.dj.r.absMids["mw-remote/iframeproxy/CheckUrlService"]),n(n.dj.r.absMids["mw-remote/iframeproxy/IframeProxyReplace"])],i=n.dj.d(r,(function(e,t,n,r,i,o,s,a,c){var d=t([],{IFRAME_TIMEOUT:2e4,LATEST_VERSION:"1.6",REMOTE_PROXY:"/remote/proxy/",constructor:function(e){this.iframeId=e||"remoteProducer",this._version=null,this._messageId=0,this._loaded=!1,this._pendingQueue=[],this._transactions={},this._uploadTargetCallbacks={},this._checkUrl=null,this._loadTimeoutHandle=null,this._checkUrlTimeout=null,this._errorRate=0},setRemotePageHost:function(e,t,n,r){var i=this;e=this._combineUriPaths(e||"","/"),t=t||"",r=r||"",this.computeToken=n,e===this._host&&t===this._key&&r===this._proxyUrl||(this._loaded=!1,this._errorLoading=!1,this._host=e,this._key=t,this._proxyUrl=r,window.MW_USE_IFRAME_OUT_OF_MODEL?(this._version=null,this._setVersion("use_latest")):(this._version="use_latest",this._iframeProxyReplace=new c({parent:{postMessage:function(e){i._handleMessage({data:e})}}})))},_setVersion:function(e){if(e&&"use_latest"!==e||(e=this.LATEST_VERSION),!this._loaded&&e!==this._version){this._version=e;var t=this._calculateUrls(this._host,this._key,e,this._proxyUrl);this._createIframe(t)}},_calculateUrls:function(e,t,n,r){var i=this.REMOTE_PROXY+n+"/iframeProxyRelease.html",o=this.REMOTE_PROXY+n+"/CheckJsFile.js";return r&&(i=r),i=this._combineUriPaths(e,i).split("?")[0],i+=t?"?routingkey="+t:"",o=this._combineUriPaths(e,o),{fastFailUrl:o+=t?"?routingkey="+t:"?time="+(new Date).getTime(),iFrameUrl:i}},_createIframe:function(t){var n=t.fastFailUrl,r=this;this._url=t.iFrameUrl,this.remoteIframe&&o.destroy(this.remoteIframe),this.remoteIframe=o.create("iframe",{id:this.iframeId,src:this._url,width:0,height:0,style:"visibility: hidden; display: none;"}),document.body.appendChild(this.remoteIframe),this._checkUrl=null,this._checkUrlTimeout=setTimeout((function(){r._checkUrl=new a(n).then((function(){r._checkUrl=null}),(function(e){r._checkUrl=null,"cancel"!==e.dojoType&&"CancelError"!==e.name&&r._handleLoadTimeoutHitch()}))}),.15*this.IFRAME_TIMEOUT),this._loadTimeoutHandle=setTimeout((function(){r._handleLoadTimeoutHitch()}),this.IFRAME_TIMEOUT),this._messageConnection||(this._messageConnection=e.connect(window,"message",this,this._handleMessage))},_handleLoadTimeoutHitch:function(){if(this._cleanupFailureChecks(),!this._loaded)if("1.0"===this._version)this._handleLoadTimeout();else{var e=(parseFloat(this._version)-.1).toFixed(1).toString();s.info("Unable to load proxy version "+this._version+", trying "+e+"."),this._setVersion(e)}},createUploadIframeTarget:function(e,t,n){this._uploadTargetCallbacks[e]=r.hitch(n||this,t),this._postMessage("createUploadIframe;"+e)},cancelUpload:function(e){this._postMessage("cancelUpload;"+e)},getUploadIframeProxyUrlPath:function(){return this.REMOTE_PROXY+this._version+"/uploadIframeProxy.html"},sendMessage:function(e,t,r){var i,o,a,c=this;return this.computeToken&&((r=r||{}).headers=r.headers||{},r.headers.computeToken=this.computeToken),o="sendMessage;"+(i=this._getNewMessageId())+";"+t+";",o+=r?JSON.stringify(r,null,0):"{}",o+=";"+e,a={deferred:new n((function(){"1.0"===c._version?s.warn("Cancelling is not supported by the 1.0 remote proxy."):c._postMessage("abort;"+i)})),id:i},this._errorLoading?a.deferred.reject("The iFrame did not load properly: "+this._url):(this._transactions[i]=a,this._postMessage(o)),a.deferred},setLatency:function(e){this._latency=e},setErrorRate:function(e){this._errorRate=e},_postMessage:function(e){this._loaded?this._postMessageNow(e):this._pendingQueue.push(e)},_handleMessage:function(e){var t,n,r,i,o,s,a,c,d,l=!0;if(window.MW_USE_IFRAME_OUT_OF_MODEL&&(l=e.source===this.remoteIframe.contentWindow),l){if(n=e.data.indexOf(";"),!(r=e.data.substring(0,n)))throw new Error("Client unable to parse message, no action specified: "+e.data);switch(r){case"ready":this._cleanupFailureChecks(),this._loaded=!0,this._flushPending();break;case"sendMessageResponse":this._sendMessageResponse(e,n);break;case"uploadIframeMessage":t=e.data.indexOf(";",n+1),i=e.data.substring(n+1,t),o=e.data.substring(t+1,e.data.length),this._uploadTargetCallbacks[i](o);break;case"websocketOpened":this.onWebsocketOpen();break;case"websocketClosed":s=e.data.substring(n+1,e.data.length),a=JSON.parse(s),this.onWebsocketClose(a);break;case"websocketMsg":c=e.data.substring(n+1,e.data.length),d=JSON.parse(c),this.onWebsocketMsg(d);break;case"websocketError":this.onWebsocketError();break;default:throw new Error("Unknown action: "+r+", data: "+e.data)}}},_sendMessageResponse:function(e,t){var n,r,i=e.data.indexOf(";",t+1),o=e.data.indexOf(";",i+1),s=e.data.substring(t+1,i),a=e.data.substring(i+1,o),c=e.data.substring(o+1,e.data.length);if(!s||!a)throw new Error("Invalid message from remote iframe: "+e.data);if(!(n=this._transactions[s]))throw new Error("Unknown transaction id: "+s+", from remote iframe: "+e.data);if(delete this._transactions[s],!n.deferred.isCanceled()){if("success"===a){try{r=c&&JSON.parse(c)}catch(e){r=c}return r=""===r?{}:r,void n.deferred.resolve(r)}this.onError(c),n.deferred.reject(c)}},_cleanupFailureChecks:function(){this._checkUrlTimeout&&clearTimeout(this._checkUrlTimeout),this._loadTimeoutHandle&&clearTimeout(this._loadTimeoutHandle),this._checkUrl&&!this._checkUrl.isFulfilled()&&this._checkUrl.cancel("Timeout Occurred or iFrame Was Loaded before CheckUrl",!1),this._checkUrlTimeout=null,this._loadTimeoutHandle=null,this._checkUrl=null},_handleLoadTimeout:function(){var e,t,n;if(!this._loaded){for(t in e={code:"IframeLoadTimeout",description:"Iframe proxy loading failed due to an HTTP error",message:""},n=this._transactions,this._transactions={},this._pendingQueue=[],n)n.hasOwnProperty(t)&&n[t].deferred.reject("Timeout while loading the iFrame "+this._url+" at "+new Date);this._errorLoading=!0,this.onError(e)}},_postMessageNow:function(e){var t,n,r=this;function i(){if(r._errorRate>0&&Math.random()<r._errorRate&&0===e.indexOf("sendMessage;")){if(t=e.split(";",2)[1],n=r._transactions[t]){delete r._transactions[t],s.error("Generating simulated error. Request was: ",e);var i="403 Forbidden;403";r.onError(i),n.deferred.reject(i)}}else window.MW_USE_IFRAME_OUT_OF_MODEL?r.remoteIframe.contentWindow.postMessage(e,r._url):r._iframeProxyReplace.handleMessage({data:e})}this._latency?setTimeout(i,this._latency):i()},_flushPending:function(){this._pendingQueue.forEach(this._postMessageNow,this),this._pendingQueue=[]},_getNewMessageId:function(){return this._messageId+=1,this._messageId.toString()},onError:function(){},onWebsocketOpen:function(){},onWebsocketMsg:function(){},onWebsocketClose:function(){},onWebsocketError:function(){},_combineUriPaths:function(){var e=Array.prototype.slice.call(arguments),t=e.reduce((function(e,t){return 0===e.length?t:(t.length>0&&("/"===t[0]&&e.lastIndexOf("/")===e.length-1?t=t.substring(1):"/"!==t[0]&&e.lastIndexOf("/")!==e.length-1&&(e+="/")),e+t)}));return t}});return d.WebSocket=t([],{constructor:function(e){var t=this;this.proxyClient=d.WebSocket.proxyClient,this.proxyClient.computeToken&&e.indexOf("?")>=0&&(e=e+"&computeToken="+this.proxyClient.computeToken),this.proxyClient._postMessage("connectWebsocket;"+e),i.after(this.proxyClient,"onWebsocketOpen",(function(){t.onopen.apply(t,arguments)}),!0),i.after(this.proxyClient,"onWebsocketMsg",(function(){t.onmessage.apply(t,arguments)}),!0),i.after(this.proxyClient,"onWebsocketClose",(function(){t.onclose.apply(t,arguments)}),!0),i.after(this.proxyClient,"onWebsocketError",(function(){t.onerror.apply(t,arguments)}),!0)},onopen:function(){},onmessage:function(){},onclose:function(){},onerror:function(){},send:function(e){this.proxyClient._postMessage("websocketSend;"+e)},close:function(){this.proxyClient._postMessage("closeWebsocket;")}}),d}),e,t),e.exports=i},"mw-remote/iframeproxy/IframeProxyReplace":function(e,t,n){"use strict";var r,i;function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}r=[],i=n.dj.d(r,(function(){return function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._childIframes=[],this._inFlightTransactions={},this._noop=function(){},this._webSocket=null,this._parent=t.parent,this.postMessage("ready","")}var t,n,r;return t=e,(n=[{key:"postMessage",value:function(e,t){this._parent.postMessage(e+";"+t||"","*")}},{key:"handleXhrResponse",value:function(e,t){var n=e+";success;"+t;this.postMessage("sendMessageResponse",n)}},{key:"handleXhrFault",value:function(e,t,n){var r=e+";fault;"+t+";"+n;this.postMessage("sendMessageResponse",r)}},{key:"handleMessage",value:function(e){var t,n,r,i,o,s,a,c,d,l,u,h=this,f=e.data.indexOf(";"),p=e.data.substring(0,f);if(!p)throw new Error("Unable to parse message, no action specified: "+e.data);switch(p){case"sendMessage":if(t=e.data.indexOf(";",f+1),n=e.data.indexOf(";",t+1),a=e.data.indexOf(";",n+1),r=e.data.substring(f+1,t),i=e.data.substring(t+1,n),c=JSON.parse(e.data.substring(n+1,a)),o=e.data.substring(a+1,e.data.length),!(r&&i&&o))throw new Error("Invalid message to send: "+e.data);try{if(d=new XMLHttpRequest,this._inFlightTransactions[r]={xhr:d},l=!1,d.onreadystatechange=function(){var e;0===d.readyState?(l=!0,h.handleXhrFault(r,"XHR readyState 0")):4!==d.readyState||l||(l=!0,(e=d.status||0)>=200&&e<300||304===e?h.handleXhrResponse(r,d.responseText):h.handleXhrFault(r,d.responseText,e)),l&&d&&(d.onreadystatechange=h._noop,d=null,delete h._inFlightTransactions[r].xhr,delete h._inFlightTransactions[r])},d.open("POST",i,!0),d.setRequestHeader("Content-Type",c.contentType?c.contentType:"application/json"),d.setRequestHeader("X-Requested-With","XMLHttpRequest"),c.headers)for(u in c.headers)c.headers.hasOwnProperty(u)&&d.setRequestHeader(u,c.headers[u]);d.send(o)}catch(e){this.handleXhrFault(r,"Unable to send data: "+e.toString())}break;case"createUploadIframe":r=e.data.substring(f+1,e.data.length),document.getElementById(r)||((s=document.createElement("iframe")).id=r,s.name=r,s.src="about:blank",s.width=0,s.height=0,s.style="visibility: hidden; display: none;",this._childIframes.push(s),document.body.appendChild(s));break;case"cancelUpload":r=e.data.substring(f+1,e.data.length);var m=document.getElementById(r);m&&(-1!==navigator.appVersion.indexOf("MSIE")?m.contentWindow.document.execCommand("Stop"):m.contentWindow.stop());break;case"abort":r=e.data.substring(f+1,e.data.length),this._inFlightTransactions[r]&&this._inFlightTransactions[r].xhr.abort();break;case"connectWebsocket":var g=e.data.substring(f+1,e.data.length);this._webSocket=new WebSocket(g),this._webSocket.onopen=function(){h._parent.postMessage("websocketOpened;","*")},this._webSocket.onmessage=function(e){var t={data:e.data},n=JSON.stringify(t);h._parent.postMessage("websocketMsg;"+n,"*")},this._webSocket.onclose=function(e){var t={code:e.code,reason:e.reason,wasClean:e.wasClean},n=JSON.stringify(t);h._parent.postMessage("websocketClosed;"+n,"*")},this._webSocket.onerror=function(){h._parent.postMessage("websocketError;","*")};break;case"websocketSend":var b=e.data.substring(f+1,e.data.length);this._webSocket.send(b);break;case"closeWebsocket":this._webSocket.close();break;default:throw new Error("Unknown action: "+p)}}}])&&o(t.prototype,n),r&&o(t,r),e}()}),e,t),e.exports=i},"mw-remote/impl/AutoDetectedTransaction":function(e,t,n){"use strict";var r,i;r=[n(n.dj.r.absMids["dojo/_base/declare"]),n(n.dj.r.absMids["mw-remote/impl/JsonTransaction"]),n(n.dj.r.absMids["mw-remote/utils/SendMessageUtil"])],i=n.dj.d(r,(function(e,t,n){return e([t],{_doSend:function(e){return n.sendPayload(e,this.endPointName)}})}),e,t),e.exports=i},"mw-remote/impl/FaultManager":function(e,t,n){"use strict";var r,i;r=[n(n.dj.r.absMids["dojo/_base/array"]),n(n.dj.r.absMids["dojo/_base/declare"]),n(n.dj.r.absMids["dojo/_base/lang"])],i=n.dj.d(r,(function(e,t,n){return t([],{constructor:function(e){e=e||{},this.faultHandlers=e.faultHandlers||{},this.topLevelHandlers=e.topLevelHandlers||[],this.endPointLevelHandlers=e.endPointLevelHandlers||{}},registerFaultHandler:function(e,t,r){r&&(t=n.hitch(r,t)),this.faultHandlers[e]=t},deregisterFaultHandler:function(e){delete this.faultHandlers[e]},registerTopLevelFaultHandler:function(e,t,r){var i;if(r&&(t=n.hitch(r,t)),n.isString(e)){if("*"===e)return i={matcher:e,handler:t},this.defaultTopLevelHandler=t,i;e=this._constructMatcherFromQuery(e)}return i={matcher:e,handler:t},this.topLevelHandlers.push(i),i},registerEndpointLevelFaultHandler:function(e,t,r,i){var o;return i&&(r=n.hitch(i,r)),n.isString(t)&&(t=this._constructMatcherFromQuery(t)),o={matcher:t,handler:r},this.endPointLevelHandlers[e]||(this.endPointLevelHandlers[e]=[]),this.endPointLevelHandlers[e].push(o),o},deregisterTopLevelFaultHandler:function(e){var t=this.topLevelHandlers.indexOf(e);t>-1?this.topLevelHandlers.splice(t,1):"*"===e.matcher&&delete this.defaultTopLevelHandler},_constructMatcherFromQuery:function(t){var r=t.split("||"),i=[];return r.forEach((function(e){e=(e=(e=n.trim(e)).replace(/([.])/g,"\\$1")).replace(/\*/g,".*"),i.push(new RegExp("^"+e+"$"))})),function(t){return e.some(i,(function(e){return e.test(t.faultCode||t.code||"")}))}},handleFault:function(e){var t,r=function(t,n){var r,i=e.getMessageClassifier(n);i&&(r=[t,i].join(":"),this.faultHandlers[r]&&this.faultHandlers[r](e.fault,e.context))};for(t in e.requestMessages)if(e.requestMessages.hasOwnProperty(t)){this.faultHandlers[t]&&this.faultHandlers[t](e.fault,e.context);var i=e.requestMessages[t];Array.isArray(i)&&i.forEach(n.hitch(this,r,t))}this.faultHandlers["*"]&&this.faultHandlers["*"](e.fault,e.context),this.endPointLevelHandlers[e.endPointName]?this._handleEndpointLevelFault(e):this._handleTopLevelFault(e)},_handleEndpointLevelFault:function(t){var n=!1,r=e.filter(this.endPointLevelHandlers[t.endPointName],(function(e){return e.matcher.call(this,t.fault,t.context)}),this);return r.length>0&&r[0].handler&&(n=!0,r[0].handler.call(this,t.fault,t.context,t)),n},_handleTopLevelFault:function(t){var n=e.filter(this.topLevelHandlers,(function(e){return e.matcher.call(this,t.fault,t.context)}),this),r=n.length>0?n[0].handler:this.defaultTopLevelHandler;r&&r.call(this,t.fault,t.context,t)},handleNonTransactionFault:function(t){var n=e.filter(this.topLevelHandlers,(function(e){return e.matcher.call(this,t)}),this),r=n.length>0?n[0].handler:this.defaultTopLevelHandler;r&&r.call(this,t)}})}),e,t),e.exports=i},"mw-remote/impl/JsonTransaction":function(e,t,n){"use strict";var r,i;r=[n(n.dj.r.absMids["dojo/_base/declare"]),n(n.dj.r.absMids["dojo/_base/xhr"]),n(n.dj.r.absMids["dojo/_base/lang"]),n(n.dj.r.absMids["mw-remote/RemoteEndPointsManager"]),n(n.dj.r.absMids["mw-remote/impl/Transaction"])],i=n.dj.d(r,(function(e,t,n,r,i){return e(i,{constructor:function(e){e=e||{},this.uuid=e.uuid||this._generateUuid()},_getRequest:function(e){var t=r.isEndpointMessageContainerBased(this.endPointName),n=null;t?(n={uuid:this.uuid,messages:e},this.computeToken&&(n.computeToken=this.computeToken)):Object.keys(e).forEach((function(t){n=e[t]}));return this._sanitizeForJson(n),JSON.stringify(n,null,0)},_sanitizeForJson:function(e){var t;if(n.isArray(e))e.forEach(this._sanitizeForJson,this);else if(n.isObject(e))for(t in e)e.hasOwnProperty(t)&&(void 0===e[t]?delete e[t]:(n.isObject(e[t])||n.isArray(e[t]))&&this._sanitizeForJson(e[t]))},_doSend:function(e){return t.post({url:this._getEndpoint(),contentType:"application/json",handleAs:"json",postData:e})},_processResponse:function(e){this.stopTime=(new Date).getTime(),e?(e.fault&&(this.fault=e.fault),e.messages?this.responseMessages=e.messages:this.responseMessages=e):this.fault={faultCode:"Connection.Fault",message:"Unable to communicate with server, no response."}},_processFault:function(e){this.stopTime=(new Date).getTime(),this.fault={faultCode:"Connection.Fault",message:e}}})}),e,t),e.exports=i},"mw-remote/impl/RequestManager":function(e,t,n){"use strict";var r,i;r=[n(n.dj.r.absMids["dojo/_base/array"]),n(n.dj.r.absMids["dojo/_base/declare"]),n(n.dj.r.absMids["dojo/_base/Deferred"]),n(n.dj.r.absMids["dojo/_base/lang"]),n(n.dj.r.absMids["mw-remote/RemoteEndPointsManager"]),n(n.dj.r.absMids["mw-remote/defaultMessageMapping"]),n(n.dj.r.absMids["mw-remote/impl/Transaction"])],i=n.dj.d(r,(function(e,t,n,r,i,o,s){return t([],{defaultMapping:o,constructor:function(e){e=e||{},this.defaultFactories=e.defaultFactories||{},this.mockHandlers=e.mockHandlers||{},this.mapping=e.mapping||this.defaultMapping,this.responseManager=e.responseManager},registerDefaultMessageFactory:function(e,t,n){n&&(t=r.hitch(n,t)),this.defaultFactories[e]=t},deregisterDefaultMessageFactory:function(e){delete this.defaultFactories[e]},registerMockResponseGenerator:function(e,t,i){var o=this;t=r.hitch(i||this,t),this.mockHandlers[e]=function(e,r){var i,a=s.construct(r);(i=t(e,a))||(i=new n).callback(),i.addCallback((function(){o.responseManager._processResult(a)}))}},deregisterMockResponseGenerator:function(e){delete this.mockHandlers[e]},sendMessage:function(e,t,n){var r,i,o,s={},a={};for(t=t||{},this._createAndFillTransactions(e,t,n,s,a),r=Object.keys(s),i=0;i<r.length;i+=1)o=r[i],this._callMocks(a[o]),s[o].send(),this.responseManager.handleTransaction(s[o])},_getTransaction:function(e,t){return s.construct({context:t,computeToken:this.computeToken,endPointName:e})},_getMockTransaction:function(e,t,n){return s.construct({context:t,computeToken:this.computeToken,endPointName:e,uuid:n})},_createAndFillTransactions:function(e,t,n,r,o){var s,a,c,d,l=function(e){var n,s,a,c,d,l,u;if(d=i.getEndPointForMessageType(e),l=r[d],u=o[d],l||(l=this._getTransaction(d,t),u=this._getMockTransaction(d,t,l.uuid),r[d]=l,o[d]=u),this.defaultFactories[e]){if(!(n=this.defaultFactories[e](l.context)))return;a=(s=e.split(":"))[0],c=s.slice(1,s.length).join(":"),this.mockHandlers[e]||l.addRequestMessage(a,n,c),u.addRequestMessage(a,n,c)}};for(s in e)if(e.hasOwnProperty(s)){var u=i.getEndPointForMessageType(s);c=o[u],d=r[u],r[u]||(d=this._getTransaction(u,t),c=this._getMockTransaction(u,t,d.uuid),r[u]=d,o[u]=c),a=[s,n].join(":"),this.mockHandlers[s]||this.mockHandlers[a]||d.addRequestMessage(s,e[s],n),c.addRequestMessage(s,e[s],n),this.mapping[a]?this.mapping[a].forEach(l,this):this.mapping[s]&&this.mapping[s].forEach(l,this)}},_callMocks:function(e){var t,n,i=e.context;delete e.context;var o=function(e,n){var r,i=t.getMessageClassifier(n);i&&(r=[e,i].join(":"),this.mockHandlers[r]&&this.mockHandlers[r]([n],t))};for(n in e.requestMessages)e.requestMessages.hasOwnProperty(n)&&((t=r.mixin({},e)).context=i,this.mockHandlers.hasOwnProperty(n)&&this.mockHandlers[n](t.requestMessages[n],t),Array.isArray(t.requestMessages[n])?t.requestMessages[n].forEach(r.hitch(this,o,n)):o(n,t.requestMessages[n]));this.mockHandlers["*"]&&this.mockHandlers["*"](n,t.requestMessages[n],t)}})}),e,t),e.exports=i},"mw-remote/impl/ResponseManager":function(e,t,n){"use strict";var r,i;r=[n(n.dj.r.absMids["dojo/_base/declare"]),n(n.dj.r.absMids["dojo/_base/lang"]),n(n.dj.r.absMids["mw-log/Log"]),n(n.dj.r.absMids["mw-remote/RemoteEndPointsManager"])],i=n.dj.d(r,(function(e,t,n,r){return e([],{constructor:function(e){e=e||{},this.responseHandlers=e.responseHandlers||{},this.faultManager=e.faultManager,this.transactions=e.transactions||[]},registerResponseHandler:function(e,n,r){r&&(n=t.hitch(r,n)),this.responseHandlers[e]=n},deregisterResponseHandler:function(e){delete this.responseHandlers[e]},handleTransaction:function(e){this.transactions.push(e),e.deferred.addCallback(t.hitch(this,this._processAll,e)),e.deferred.addCallback(t.hitch(this,this._processResult,e)),e.deferred.addErrback(t.hitch(this,this._processAll,e)),e.deferred.addErrback(t.hitch(this,this._processFault,e))},_processAll:function(e){var t;(t=this.transactions.indexOf(e))>=0&&this.transactions.splice(t,1)},_processResult:function(e){e.getResponseMessageTypes().forEach((function(t){var r=e.responseMessages[t],i=[];try{Array.isArray(r)&&(r.forEach((function(n){var r,o=e.getMessageClassifier(n);if(o){r=[t,o].join(":");var s=this,a=!1;e.getRequestMessageTypes().forEach((function(t){var i=e.requestMessages[t];Array.isArray(i)?i.forEach((function(t){s.responseHandlers[r]&&t.uuid===n.uuid&&(s.responseHandlers[r]([n],e.context),a=!0)})):s.responseHandlers[r]&&i.uuid===n.uuid&&(s.responseHandlers[r]([n],e.context),a=!0)})),a||i.push(n)}else i.push(n)}),this),i.length>0&&this.responseHandlers[t]&&this.responseHandlers[t](i,e.context),this.responseHandlers["*"]&&this.responseHandlers["*"](t,e.responseMessages[t],e.context))}catch(e){n.error("Remote: Fault occurred while processing response.\nMessage: "+e.message+"\nType: "+t+"\nResponse: "+JSON.stringify(r,null,2))}}),this),this._processUdcResponses(e),e.fault&&this.faultManager.handleFault(e)},_processUdcResponses:function(e){if(!r.isEndpointMessageContainerBased(e.endPointName)){var t=Object.keys(e.requestMessages)[0];this.responseHandlers[t]&&this.responseHandlers[t](e.responseMessages)}},_processFault:function(e){this.faultManager.handleFault(e)}})}),e,t),e.exports=i},"mw-remote/impl/Transaction":function(e,t,n){"use strict";var r,i;r=[n(n.dj.r.absMids["dojo/_base/declare"]),n(n.dj.r.absMids["dojo/_base/Deferred"]),n(n.dj.r.absMids["dojo/_base/lang"]),n(n.dj.r.absMids["mw-remote/RemoteEndPointsManager"]),n(n.dj.r.absMids["mw-utils/Utils"])],i=n.dj.d(r,(function(e,t,n,r,i){return e([],{constructor:function(e){e=e||{},this.requestMessages=e.requestMessages||{},this.responseMessages=e.responseMessages||{},this.context=e.context,this.computeToken=e.computeToken,this.uuidClassifierMap=e.uuidClassifierMap||{},this.endPointName=e.endPointName||null,this.allowedMessages=e.allowedMessages||[],this.ignoreMessageTypes=e.ignoreMessageTypes||[],this.sendMessage=e.sendMessage},addRequestMessage:function(e,t,i){if(t){var o=r.isEndpointMessageContainerBased(this.endPointName);this.requestMessages[e]||(this.requestMessages[e]=[]),n.isArray(t)?t.forEach((function(t){this.addRequestMessage(e,t,i)}),this):o?(t.uuid=t.uuid||this._generateUuid(),i&&(this.uuidClassifierMap[t.uuid]=i),this.requestMessages[e].push(t)):this.requestMessages[e]=t,this.requestMessages=this._filterMessages(this.requestMessages)}},_filterMessages:function(e){var t={};return this.getRequestMessageTypes().forEach((function(n){(0===this.allowedMessages.length||this.allowedMessages.indexOf(n)>=0)&&(t[n]=e[n])}),this),t},getResponseMessageTypes:function(){var e,t=[];for(e in this.responseMessages)this.responseMessages.hasOwnProperty(e)&&t.push(e);return t},getRequestMessageTypes:function(){var e,t=[];for(e in this.requestMessages)this.requestMessages.hasOwnProperty(e)&&t.push(e);return t},getMessageClassifier:function(e){return e&&e.uuid&&this.uuidClassifierMap.hasOwnProperty(e.uuid)?this.uuidClassifierMap[e.uuid]:""},send:function(){this._removeEmptyMessages(),this._isEmpty(this.requestMessages)?(this.deferred=new t,this.deferred.callback()):(this.startTime=(new Date).getTime(),this.deferred=this._doSend(this._getRequest(this.requestMessages)),this.deferred.addCallback(this,this._processResponse),this.deferred.addErrback(this,this._processFault))},addIgnoreMessageType:function(e,t){var n;if(this.getRequestMessageTypes().indexOf(e)>-1)if(t)for(n in this.uuidClassifierMap)this.uuidClassifierMap.hasOwnProperty(n)&&t&&this.uuidClassifierMap[n]===t&&this.ignoreMessageTypes.push(e+":"+t);else this.ignoreMessageTypes.push(e)},_removeEmptyMessages:function(){var e;if(!this._isEmpty(this.requestMessages))for(e in this.requestMessages)this.requestMessages.hasOwnProperty(e)&&n.isArray(this.requestMessages[e])&&0===i.getArrayLength(this.requestMessages[e])&&delete this.requestMessages[e]},_isEmpty:function(e){var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0},_generateUuid:function(){return i.generateUuid()}})}),e,t),e.exports=i},"mw-remote/serviceRegistryLookup":function(e,t,n){"use strict";var r,i;r=[n(n.dj.r.absMids["dojo/request/xhr"]),n(n.dj.r.absMids["mw-html-utils/HtmlUtils"])],i=n.dj.d(r,(function(e,t){var n=!1,r={_serviceData:{},getServiceRegistryEndpoint:function(e){var t,n;if(r._serviceData.serviceregistry)for(t=r._serviceData.serviceregistry.length,n=0;n<t;n+=1)if(r._serviceData.serviceregistry[n].name===e)return r._serviceData.serviceregistry[n].endpoint;return""}},i=function(e){var n=t.parseQueryString().mre;if(n){var r=new URL(n,window.location.href);if(o(r)){n=r.href;var i=e.serviceregistry;i=Array.isArray(i)?i:[];var s=!1;i.forEach((function(e){e.name&&"primary"===e.name&&(e.endpoint=n,s=!0)})),s||(i.push({name:"primary",endpoint:n}),e.serviceregistry=i)}}return e},o=function(e){return!(e.origin!==window.location.origin&&!s(e))},s=function(e){var t=e.origin;e.port&&(t=e.origin.replace(":"+e.port,""));var n=[".mathworks.com",".mathworks.cn"];for(var r in n){var i=n[r];if(t.endsWith(i))return!0}return!1},a={_doXhr:function(t,n){return e(t,{handleAs:"json",failOk:!0,method:"GET",timeout:15e3,sync:n})},_reset:function(){n=!1,r._serviceData={}},load:function(e,t,o){if(n)o(r);else{var s=!t.async;a._doXhr("/serviceregistrylookup/1/service",s).then((function(e){e instanceof Object||(e={}),r._serviceData=i(e),n=!0,o(r)}),(function(){r._serviceData=i({}),n=!0,o(r)}))}}};return a}),e,t),e.exports=i},"mw-remote/serviceRegistryLookup!":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["mw-remote/serviceRegistryLookup"]),n("mwBundle.simulink_file_preview_plugin|7c1cede0fa96821f1d00933e343d2e2af30a4286"),n(n.dj.r.absMids["8e5d24b71f86716e7cc6d86d776c7dbfc35f9bdf"])],i=n.dj.d(r,(function(e,t){return t(e,"",n.dj.c(),!0)}),e,t),e.exports=i},"mw-remote/utils/RemoteUrlUtils":function(e,t,n){"use strict";var r,i;r=[n(n.dj.r.absMids["mw-log/Log"])],i=n.dj.d(r,(function(e){var t=new RegExp("^(?:[a-z]+:)?//","i"),n=["localhost","127.0.0.1","[::1]"];return{createWorkerRoutingHostUrl:function(t,r){var i=t,o="",s="",a=r.host,c=r.sessionId,d=r.routingKey;try{if(o=new URL(a),this.isAbsoluteUrl(t)){if((s=new URL(t)).origin&&n.includes(s.hostname)){var l=s.pathname;i=new URL(l,o).href,i+=s.search}}else i=t&&t.startsWith("/")?o+t.substr(1,t.length):o+t;return i+=(i.indexOf("?")>=0?"&":"?")+"mre="+o,d&&c&&(i+="&routingkey="+d+"&computeToken="+c),i}catch(t){e.error("Input URL is malformed")}return i},isAbsoluteUrl:function(e){return!!t.test(e)}}}),e,t),e.exports=i},"mw-remote/utils/SendMessageUtil":function(e,t,n){"use strict";var r,i;r=[n(n.dj.r.absMids["mw-remote/RemoteEndPointsManager"]),n(n.dj.r.absMids["dojo/_base/xhr"]),n(n.dj.r.absMids["dojo/_base/Deferred"])],i=n.dj.d(r,(function(e,t,n){return{sendPayload:function(r,i,o){var s=e.getEndPointAllowsDirectXhr(i),a=new n;return s.then((function(n){(n.status===e.DirectXhrConstants.ENABLED?function(n,r,i){var o=i&&i.headers?i.headers:null;return t.post({url:e.getRemoteUrlForEndPoint(r),contentType:"application/json",handleAs:"json",headers:o,postData:n})}(r,i,o):function(t,n,r){return e.getIframeProxyClientForEndPoint(n).sendMessage(t,e.getRemoteUrlForEndPoint(n),r)}(r,i,o)).then((function(e){a.resolve(e)}))})),a}}}),e,t),e.exports=i},"mw-statemachine/StateMachine":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/_base/declare"]),n(n.dj.r.absMids["mw-statemachine/statemachineimpl/State"])],i=n.dj.d(r,(function(e,t){return e([],{constructor:function(e){e.stateMachine=this,this.state=new t(e)},start:function(){this.state.enter()},stop:function(){this.state.exit()},_changeState:function(e,t){this.state.enter(e,t)},onEnterState:function(e){},onExitState:function(e){}})}),e,t),e.exports=i},"mw-statemachine/statemachineimpl/EventTrigger":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/_base/declare"]),n(n.dj.r.absMids["dojo/_base/lang"]),n(n.dj.r.absMids["dojo/aspect"]),n(n.dj.r.absMids["mw-log/Log"]),n(n.dj.r.absMids["mw-statemachine/statemachineimpl/Trigger"])],i=n.dj.d(r,(function(e,t,n,r,i){return e(i,{constructor:function(){this.connection={}},enable:function(){t.isFunction(this.context[this.name])&&(this.cachedFunction=this.context[this.name]),this.connection=n.after(this.context,this.name,t.hitch(null,this.triggerHandler,this.name),!0)},disable:function(){this.connection.remove(),this.cachedFunction&&(this.context[this.name]=this.cachedFunction)}})}),e,t),e.exports=i},"mw-statemachine/statemachineimpl/MessageTrigger":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/_base/declare"]),n(n.dj.r.absMids["dojo/_base/lang"]),n(n.dj.r.absMids["dojo/topic"]),n(n.dj.r.absMids["mw-log/Log"]),n(n.dj.r.absMids["mw-statemachine/statemachineimpl/Trigger"])],i=n.dj.d(r,(function(e,t,n,r,i){return e(i,{constructor:function(){var e=this.name.split(" ");(e.length<2||"subscribe"!==e[0])&&r.error("Invalid trigger name for a MessageTrigger. Could not parse out the message name."),this.messageId=e[1]||"",this.subscrition={}},enable:function(){this.subscription=n.subscribe(this.messageId,t.hitch(null,this.triggerHandler,this.name))},disable:function(){this.subscription.remove()}})}),e,t),e.exports=i},"mw-statemachine/statemachineimpl/RemoteTrigger":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/_base/declare"]),n(n.dj.r.absMids["dojo/_base/lang"]),n(n.dj.r.absMids["mw-log/Log"]),n(n.dj.r.absMids["mw-remote/Remote"]),n(n.dj.r.absMids["mw-statemachine/statemachineimpl/Trigger"])],i=n.dj.d(r,(function(e,t,n,r,i){return e(i,{constructor:function(){var e=this.name.split(" ");(e.length<2||"response"!==e[0]&&"fault"!==e[0])&&n.error("Invalid trigger name for a RemoteTrigger. Could not parse out the type of handler."),r.registerResponseHandler&&r.registerFaultHandler||n.error("The remote package is not available, this type of trigger will not work."),this.messageId=e[1]||"",this.handlerType=e[0]},enable:function(){"response"===this.handlerType?r.registerResponseHandler(this.messageId,t.hitch(null,this.triggerHandler,this.name)):r.registerFaultHandler(this.messageId,t.hitch(null,this.triggerHandler,this.name))},disable:function(){"response"===this.handlerType?r.deregisterResponseHandler(this.messageId):r.deregisterFaultHandler(this.messageId)}})}),e,t),e.exports=i},"mw-statemachine/statemachineimpl/State":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/_base/declare"]),n(n.dj.r.absMids["dojo/_base/lang"]),n(n.dj.r.absMids["mw-log/Log"]),n(n.dj.r.absMids["mw-statemachine/statemachineimpl/EventTrigger"]),n(n.dj.r.absMids["mw-statemachine/statemachineimpl/MessageTrigger"]),n(n.dj.r.absMids["mw-statemachine/statemachineimpl/RemoteTrigger"]),n(n.dj.r.absMids["mw-statemachine/statemachineimpl/TimeoutTrigger"]),n(n.dj.r.absMids["mw-statemachine/statemachineimpl/Transition"])],i=n.dj.d(r,(function(e,t,n,r,i,o,s,a){var c;return c=e([],{constructor:function(e){this.stateMachine=e.stateMachine||{_changeState:function(){},onEnterState:function(){},onExitState:function(){}},this.namespace=e.namespace||"",this.name=e.name||this.getDefaultName(),this.context=e.context||{},this.data=e.data||{},this.composition=e.composition||"XOR",this.defaultSubstate=e.defaultSubstate||"",this.constructSubstates(e.substates),this.constructTriggersAndTransitions(e.transitions),this.active=e.active||!1},getDefaultName:function(){var e;return this.namespace.length>0?e=this.namespace.split(".").pop():n.warn("State: state name is not specified."),e||""},constructSubstates:function(e){var t,r,i={};for(t in e)e.hasOwnProperty(t)&&((r=e[t]).name&&r.name!==t&&n.error("State: error constructing substate: "+t+", the specified names don't match: "+r.name),r.name=t,r.namespace=r.namespace||[this.namespace,this.name].join("."),r.stateMachine=r.stateMachine||this.stateMachine,r.context=r.context||this.context,i[r.name]=new c(r));this.substates=i},constructTriggersAndTransitions:function(e){var t,n,r={},i=[];for(t in e)e.hasOwnProperty(t)&&((n=this.constructTrigger(t))&&i.push(n),r[t]=this.constructTransition(t,e[t]));this.transitions=r,this.triggers=i},constructTrigger:function(e){var n,a,c;return 2===(n=e.split(" ")).length?"subscribe"===n[0]?c=i:"response"===n[0]||"fault"===n[0]?c=o:"timeout"===n[0]&&(c=s):"onEnterState"===e&&"onExitState"===e||(c=r),c&&(a=new c({name:e,context:this.context,triggerHandler:t.hitch(this,this.handleTrigger)})),a},constructTransition:function(e,n){var r,i;return(t.isFunction(n)||t.isString(n)||t.isArray(n))&&("onEnterState"===e||"onExitState"===e?(r=n,(n={}).action=r,n.target=""):(i=n,(n={}).target=i)),n.state=this,new a(n)},enter:function(e,t){this.active||(this.active=!0,this.enableTriggers(),this.stateMachine.onEnterState(this.name),this.handleTrigger.apply(this,["onEnterState"].concat(t))),e?this.changeSubstates(e,t):this.changeToDefaultSubstate(t)},exit:function(){var e=this.activeSubstates();this.active=!1,this.disableTriggers(),e.forEach((function(e){e.exit()})),this.handleTrigger("onExitState"),this.stateMachine.onExitState(this.name)},enableTriggers:function(){this.triggers.forEach((function(e){e.enable()}))},disableTriggers:function(){this.triggers.forEach((function(e){e.disable()}))},handleTrigger:function(e){var n,r;this.transitions[e]&&(r=Array.prototype.slice.call(arguments,1,arguments.length),(n=this.transitions[e].handleTrigger(e,r))&&(t.isString(n)||(r=n.args,n=n.target),this.stateMachine._changeState(n,r)))},changeSubstates:function(e,t){var n=this.activeSubstates();this.substates[e]&&(n.length>=0&&n[0].name!==e&&n.forEach((function(e){e.exit()})),this.substates[e].enter(void 0,t))},changeToDefaultSubstate:function(e){0===this.activeSubstates().length&&this.substates[this.defaultSubstate]&&this.substates[this.defaultSubstate].enter(void 0,e)},activeSubstates:function(){var e,t=[];for(e in this.substates)this.substates.hasOwnProperty(e)&&this.substates[e].active&&t.push(this.substates[e]);return t}})}),e,t),e.exports=i},"mw-statemachine/statemachineimpl/TimeoutTrigger":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/_base/declare"]),n(n.dj.r.absMids["dojo/_base/lang"]),n(n.dj.r.absMids["mw-log/Log"]),n(n.dj.r.absMids["mw-statemachine/statemachineimpl/Trigger"])],i=n.dj.d(r,(function(e,t,n,r){return e(r,{constructor:function(){var e=this.name.split(" ");(e.length<2||"timeout"!==e[0])&&n.error("Invalid trigger name for a TimeoutTrigger. Could not parse out the type of handler."),this.timeoutInSeconds=parseFloat(e[1]),this.handlerType=e[0]},enable:function(){this.disable(),this.timeoutHandle=setTimeout(t.hitch(null,this.triggerHandler,this.name),1e3*this.timeoutInSeconds)},disable:function(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=null)}})}),e,t),e.exports=i},"mw-statemachine/statemachineimpl/Transition":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/_base/declare"]),n(n.dj.r.absMids["dojo/_base/lang"]),n(n.dj.r.absMids["mw-log/Log"])],i=n.dj.d(r,(function(e,t,n){return e([],{constructor:function(t){this.state={},this.target="",this.condition=null,this.action=null,e.safeMixin(this,t)},handleTrigger:function(e,t){var n="";return this.checkCondition(e,t)&&(this.runAction(e,t),n=this.getTarget(e,this.target,t)),n},checkCondition:function(e,n){return!this.condition||t.hitch(this.state.context,this.condition).apply(null,[e,this.state.data].concat(n))},runAction:function(e,n){this.action&&t.hitch(this.state.context,this.action).apply(null,[e,this.state.data].concat(n))},getTarget:function(e,r,i){var o,s,a;if(t.isString(r))s=r;else if(t.isFunction(r))s=t.hitch(this.state.context,r).apply(null,[e,this.state.data].concat(i));else if(t.isArray(r))for(o=0;o<r.length;o+=1){if(s=this.getTarget(e,r[o],i),t.isString(s)){s={target:s},t.mixin(s,a);break}if(s&&s.target){t.mixin(s,a);break}a=s||{}}else n.warn("Transition: improper target: ",r);return s}})}),e,t),e.exports=i},"mw-statemachine/statemachineimpl/Trigger":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/_base/declare"])],i=n.dj.d(r,(function(e){return e([],{constructor:function(t){this.name="",this.context={},this.triggerHandler=t.triggerHandler||function(){},e.safeMixin(this,t)},enable:function(){},disable:function(){}})}),e,t),e.exports=i},"mw-utils/Utils":function(e,t,n){"use strict";var r,i;r=[n(n.dj.r.absMids["dojo/_base/lang"]),n(n.dj.r.absMids["dojo/_base/window"]),n(n.dj.r.absMids["mw-utils/deprecation"])],i=n.dj.d(r,(function(e,t,n){return{generateUuid:function(){return"xxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})).toUpperCase()},isImageData:function(e){return!!e&&(t.global.ImageData&&e instanceof t.global.ImageData||e.hasOwnProperty("width")&&e.hasOwnProperty("height")&&e.hasOwnProperty("data"))},isArray:function(e){return n.deprecated({deprecated:{module:"MW/utils/Utils",method:"isArray"},geckNumber:1444368}),Array.isArray(e)},getArrayLength:function(t){var n=0;return!!e.isArray(t)&&(t.forEach((function(e){e&&(n+=1)})),n)},isWhitespace:function(e){return/^\s+$/.test(e)},removeSurroundingNewLines:function(e){for(;"\n"===e.charAt(0);)e=e.substring(1);for(;"\n"===e.charAt(e.length-1);)e=e.substring(0,e.length-1);return e},getFirstUniqueElement:function(e,t){var n=null;return t.some((function(t){if(-1===e.indexOf(t))return n=t,!0})),n},unionOfWordSets:function(e,t,n){e=this._stringToArray(e),t=this._stringToArray(t);var r=this.unionOfArrays(e,t);return n?r.join(" "):r},intersectionOfWordSets:function(e,t,n){e=this._stringToArray(e),t=this._stringToArray(t);var r=this.intersectionOfArrays(e,t);return n?r.join(" "):r},differenceOfWordSets:function(e,t,n){e=this._stringToArray(e),t=this._stringToArray(t);var r=this.unique(this.differenceOfArrays(e,t));return n?r.join(" "):r},unionOfArrays:function(e,t){return this.unique(e.concat(t))},intersectionOfArrays:function(e,t){return this.nonunique(e.concat(t))},differenceOfArrays:function(e,t){if(void 0===window.Map)return this._legacyDifferenceOfArrays(e,t);var n,r,i=new Map,o=[];for(r=0;r<t.length;r++)i.set(t[r],null);for(r=0;r<e.length;r++)n=e[r],i.has(n)||o.push(n);return o},_legacyDifferenceOfArrays:function(e,t){return this.unique(e.filter((function(e){return-1===t.indexOf(e)})))},unique:function(e){return e.filter((function(t,n){return e.indexOf(t)===n}))},nonunique:function(e){return this.unique(e.filter((function(t,n){return e.indexOf(t)!==n})))},arrayEquals:function(e,t,n){if(e===t)return!0;if(e.length!==t.length)return!1;n||(n=function(e,t){return e===t});for(var r=0,i=e.length;r<i;r++)if(!n(e[r],t[r]))return!1;return!0},removeEmptyElements:function(e){return e.filter((function(e){return!(""===e||null==e)}))},_stringToArray:function(e){return this._isString(e)?this.removeEmptyElements(e.split(" ")):e},_isString:function(e){return"string"==typeof e||e instanceof String}}}),e,t),e.exports=i},"mw-utils/deprecation":function(e,t,n){"use strict";var r,i,o="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};r=[n(n.dj.r.absMids["dojo/_base/config"]),n(n.dj.r.absMids["mw-log/Log"])],i=n.dj.d(r,(function(e,t){var n={deprecated:function(n){var r,i;(!!e.isDebug||!!window.showDeprecationsAsErrors)&&this._isConfigValid(n)&&(i=window.showDeprecationsAsErrors||n.deprecationLevel===this.ERROR?this.ERROR:this.WARN,r="DEPRECATED: ",n.deprecated&&(r+=n.deprecated.module,n.deprecated.method&&(r+="."+n.deprecated.method+"()"),r+="."),n.replacement&&(r+=" Use "+n.replacement.module,n.replacement.method&&(r+="."+n.replacement.method+"()"),r+=" instead."),n.removalVersion&&(r+=" Will be removed in version: "+n.removalVersion+"."),n.geckNumber&&(r+=" Please use g"+n.geckNumber+" to track latest information regarding this deprecation"),n.additionalInformation&&(r+=" "+n.additionalInformation),t[i](r))},_isConfigValid:function(e){var n=!!e.deprecated&&"object"===o(e.deprecated)&&e.deprecated.hasOwnProperty("module");return e.replacement&&(n=n&&"object"===o(e.replacement)&&e.replacement.hasOwnProperty("module")),e.geckNumber&&(n=n&&"number"==typeof e.geckNumber),n||t.error("Supplied deprecationConfig properties are not valid. Please refer to http://inside.mathworks.com/wiki/Web_Widgets_Deprecation_API for right API"),n}};return Object.defineProperties(n,{WARN:{value:"warn",enumerable:!0},ERROR:{value:"error",enumerable:!0}}),n}),e,t),e.exports=i},"simulink_file_preview_plugin/_impl/SimulinkFilePreviewPlugin":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/_base/declare"]),n(n.dj.r.absMids["dojo/_base/lang"]),n(n.dj.r.absMids["dojo/on"]),n(n.dj.r.absMids["dojo/Deferred"]),n(n.dj.r.absMids["dojo/when"]),n.dj.c(e.i),n(n.dj.r.absMids["mw-utils/Utils"]),n(n.dj.r.absMids["mw-messageservice/MessageService"]),n(n.dj.r.absMids["dojo/i18n!simulink_file_preview_plugin/l10n/resources/sltemplate/nls/Preview"])],i=n.dj.d(r,(function(e,t,n,r,i,o,s,a,c){var d={};return e([],{constructor:function(e){a.subscribe("/slfilepreview/FileInfo",t.hitch(this,"_setFileInfo"))},getTitle:function(){return{getTitleFcn:this._getTitleImpl.bind(this),overridePriority:2}},_getTitleImpl:function(e){return this._getFileInfo(e).then(e=>{var t="";return"Model"===e.blockDiagramType?t+=c.SimulinkModel:"Library"===e.blockDiagramType?t+=c.SimulinkLibrary:"Subsystem"===e.blockDiagramType?t+=c.SimulinkSubsystem:"Template"===e.blockDiagramType?t+=c.SimulinkTemplate:"cache"===e.blockDiagramType?t+=c.SimulinkCache:"ProtectedModel"===e.blockDiagramType?t+=c.SimulinkProtectedModel:t+="Unknown Simulink file type:",t+" "+e.blockDiagramName})},getUpperRightMetadata:function(){},getPrimaryMetadata:function(){},getSecondaryMetadata:function(){return{getSecondaryMetadataFcn:this._getSecondaryMetadataImpl.bind(this),overridePriority:2}},_getSecondaryMetadataImpl:function(e){var t=this._getFileInfo(e),n=this._getFileInfo(e),r=this._getFileInfo(e);return[i(t,(function(e){return"modelVersion"in e&&0!==e.modelVersion.length?c.ModelVersion+" "+e.modelVersion:""})),i(n,(function(e){return"releaseName"in e&&0!==e.releaseName.length?c.SimulinkRelease+" "+e.releaseName:""})),i(r,(function(e){return"lastModifiedBy"in e&&0!==e.lastModifiedBy.length?c.LastModifiedBy+" "+e.lastModifiedBy:""}))]},getRichContent:function(){return{getRichContentFcn:this._getRichContentImpl.bind(this),overridePriority:3}},_getRichContentImpl:function(e){const t=this._getFileInfo(e),n=document.createElement("img");return i(t,(function(e){"thumbnailData"in e&&0!==e.thumbnailData.length?n.src="data:image/png;base64,"+e.thumbnailData:n.src=""})),{richContent:n,isWidget:!1}},_setFileInfo:function(e){let t=e.data.entries[0].content,n=t.fullFilePath;const r=d[n];r&&(r.info=t,d[n]=r,r.promise.resolve(t))},_getFileInfo:function(e){const t=e.path;if(d[t]){const n=d[t];if(n.modifiedUtc===e.modifiedUtc)return n.promise}a.publish("/slfilepreview/FileInfoRequest",e.path);const n=new r;return d[t]={modifiedUtc:e.modifiedUtc,promise:n,info:""},n},getRichContentLabel:function(){return{getRichContentLabelFcn:this._getRichContentLabelImpl.bind(this),overridePriority:3}},_getRichContentLabelImpl:function(e){const t=this._getFileInfo(e);return[i(t,(function(e){return"description"in e&&0!==e.description.length?e.description:c.NoDescriptionAvailable}))]}})}),e,t),e.exports=i},"simulink_file_preview_plugin/index":function(e,t,n){var r,i;r=[n(n.dj.r.absMids["dojo/_base/declare"]),n(n.dj.r.absMids["dojo/Deferred"]),n(n.dj.r.absMids["simulink_file_preview_plugin/_impl/SimulinkFilePreviewPlugin"])],i=n.dj.d(r,(function(e,t,n){return{initialize:function(r){var i=new t,o=e([n])();return i.resolve({exports:{simulinkFilePreviewPlugin:o}}),i.promise}}}),e,t),e.exports=i},"simulink_file_preview_plugin/l10n/resources/sltemplate/nls/Preview":function(e,t,n){e.exports={root:{CodeGenerationSupport:"Code Generation Support: ${0}",InvalidFile:"No information available",LastModifiedBy:"Last modified by:",ModelVersion:"Model version:",NoDescriptionAvailable:"(no description available)",NoInformationAvailable:"No information available",Platform:"Created on Platform: ${0}",Publisher:"Signed by: ${0}",ReadOnlyViewSupport:"Read-Only View Support: ${0}",SimulationSupport:"Simulation Support: ${0}",SimulinkCache:"Simulink cache:",SimulinkCacheIncompatible:"This Simulink Cache file was created in ${0} and is not supported in this release.",SimulinkCacheSupported:"This Simulink Cache contains derived files for use with this release and platform. To see all supported configurations, double-click this file.",SimulinkCacheUnsupported:"This Simulink Cache does not contain derived files for use with this release and platform. To see all supported configurations, double-click this file.",SimulinkLibrary:"Simulink Library:",SimulinkModel:"Simulink Model:",SimulinkProtectedModel:"Simulink Protected Model:",SimulinkRelease:"Saved in Simulink release:",SimulinkSubsystem:"Simulink Subsystem:",SimulinkTemplate:"Simulink Template:",SupportOFF:"OFF",SupportON:"ON",SupportONWithPassword:"ON with Password Protection",Target:"Target: ${0}",Verified:"Verified"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},"simulink_file_preview_plugin/l10n/resources/sltemplate/nls/ja-jp/Preview":function(e,t,n){e.exports={CodeGenerationSupport:"コード生成のサポート: ${0}",InvalidFile:"利用可能な情報はありません",LastModifiedBy:"最終編集者:",ModelVersion:"モデル バージョン:",NoDescriptionAvailable:"(利用可能な説明はありません)",NoInformationAvailable:"利用可能な情報はありません",Platform:"次のプラットフォームで作成: ${0}",Publisher:"署名者: ${0}",ReadOnlyViewSupport:"読み取り専用ビューのサポート: ${0}",SimulationSupport:"シミュレーションのサポート: ${0}",SimulinkCache:"Simulink キャッシュ:",SimulinkCacheIncompatible:"この Simulink キャッシュ ファイルは ${0} で作成されており、このリリースではサポートされていません。",SimulinkCacheSupported:"この Simulink キャッシュには、このリリースおよびプラットフォームで使用する派生ファイルが含まれています。すべてのサポートされている構成を確認するには、このファイルをダブルクリックしてください。",SimulinkCacheUnsupported:"この Simulink キャッシュには、このリリースおよびプラットフォームで使用する派生ファイルが含まれていません。すべてのサポートされている構成を確認するには、このファイルをダブルクリックしてください。",SimulinkLibrary:"Simulink ライブラリ:",SimulinkModel:"Simulink モデル:",SimulinkProtectedModel:"Simulink の保護されたモデル:",SimulinkRelease:"次の Simulink リリースで保存:",SimulinkSubsystem:"Simulink サブシステム:",SimulinkTemplate:"Simulink テンプレート:",SupportOFF:"オフ",SupportON:"オン",SupportONWithPassword:"パスワード保護でオン",Target:"ターゲット: ${0}",Verified:"検証済み"}},"simulink_file_preview_plugin/l10n/resources/sltemplate/nls/ko-kr/Preview":function(e,t,n){e.exports={CodeGenerationSupport:"코드 생성 지원: ${0}",InvalidFile:"사용 가능한 정보 없음",LastModifiedBy:"마지막으로 수정한 사람:",ModelVersion:"모델 버전:",NoDescriptionAvailable:"(설명 없음)",NoInformationAvailable:"사용 가능한 정보 없음",Platform:"다음 플랫폼에서 생성됨: ${0}",Publisher:"서명자: ${0}",ReadOnlyViewSupport:"읽기 전용 보기 지원: ${0}",SimulationSupport:"시뮬레이션 지원: ${0}",SimulinkCache:"Simulink 캐시:",SimulinkCacheIncompatible:"이 Simulink 캐시 파일은 ${0}에서 생성되었으며 이 릴리스에서 지원되지 않습니다.",SimulinkCacheSupported:"이 Simulink 캐시에는 이 릴리스와 플랫폼에서 사용하기 위한 파생 파일이 포함되어 있습니다. 지원되는 모든 구성을 보려면 이 파일을 더블 클릭하십시오.",SimulinkCacheUnsupported:"이 Simulink 캐시에는 이 릴리스와 플랫폼에서 사용하기 위한 파생 파일이 포함되어 있지 않습니다. 지원되는 모든 구성을 보려면 이 파일을 더블 클릭하십시오.",SimulinkLibrary:"Simulink 라이브러리:",SimulinkModel:"Simulink 모델:",SimulinkProtectedModel:"Simulink 보호 모델:",SimulinkRelease:"다음 Simulink 릴리스에서 저장됨:",SimulinkSubsystem:"Simulink 서브시스템:",SimulinkTemplate:"Simulink 템플릿:",SupportOFF:"끄기",SupportON:"켜기",SupportONWithPassword:"비밀번호 보호를 사용하여 켜기",Target:"타깃: ${0}",Verified:"확인됨"}},"simulink_file_preview_plugin/l10n/resources/sltemplate/nls/zh-cn/Preview":function(e,t,n){e.exports={CodeGenerationSupport:"代码生成支持: ${0}",InvalidFile:"无可用信息",LastModifiedBy:"上次修改者:",ModelVersion:"模型版本:",NoDescriptionAvailable:"(无可用说明)",NoInformationAvailable:"无可用信息",Platform:"在平台上的创建时间: ${0}",Publisher:"签名者: ${0}",ReadOnlyViewSupport:"只读视图支持: ${0}",SimulationSupport:"仿真支持: ${0}",SimulinkCache:"Simulink 缓存:",SimulinkCacheIncompatible:"此 Simulink 缓存文件是在 ${0} 中创建的,在此版本中不受支持。",SimulinkCacheSupported:"此 Simulink 缓存包含用于此版本和平台的派生文件。要查看所有支持的配置,请双击此文件。",SimulinkCacheUnsupported:"此 Simulink 缓存不包含用于此版本和平台的派生文件。要查看所有支持的配置,请双击此文件。",SimulinkLibrary:"Simulink 库:",SimulinkModel:"Simulink 模型:",SimulinkProtectedModel:"Simulink 受保护模型:",SimulinkRelease:"保存所用 Simulink 版本:",SimulinkSubsystem:"Simulink 子系统:",SimulinkTemplate:"Simulink 模板:",SupportOFF:"关闭",SupportON:"打开",SupportONWithPassword:"打开并启用密码保护",Target:"目标: ${0}",Verified:"已验证"}}},[[0,"runtime~mwBundle.simulink_file_preview_plugin"]]]);