/*! For license information please see bundle.index.js.LICENSE.txt */ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",function(){function e(e,t){return d.require.toUrl(e,t)}function r(e,t){return d.require.toAbsMid(e,t)}function i(e,t,n){return s(e,t,n,0,i)}function o(e,o,s,a){var c;if((e=e.split("!").map((function(e){return"."===e.charAt(0)&&!o?e:r(e,o?{mid:o}:null)})).join("!"))in i.absMids&&n.m[i.absMids[e]])if(s){var u=t[i.absMids[e]];c=u&&u.l&&(a?u:u.exports)}else c=n(i.absMids[e]);if(!c)throw new Error("Module not found: "+e);return c}function s(e,t,n,r,i){var s={}.toString.call(e);if("[object String]"===s){var l=o(e,r,!(!1===n));if("object"==typeof l&&l.__DOJO_WEBPACK_DEFINE_PROMISE__)throw new Error("Module not found: "+e);return l}if("[object Object]"===s)throw new Error("Require config is not supported by WebPack");if("[object Array]"===s){var d=[],h=t,f=[];if(e.forEach((function(e){try{d.push(o(e,r))}catch(t){f.push({mid:e,error:t})}})),0===f.length)h&&(u(d)?Promise.all(a(d)).then(function(e){h.apply(this,c(e))}.bind(this)).catch((function(e){console.error(e)})):h.apply(this,d));else{var p=new Error("findModules");p.src="dojo-webpack-plugin",p.info=f,i.signal("error",p)}return i}throw new Error("Unsupported require call")}function a(e){var t=(Array.isArray(e)?e:[e]).map((function(e){return e&&"function"==typeof e.then&&!e.__DOJO_WEBPACK_DEFINE_PROMISE__?{__DOJO_WEBPACK_PROMISE_VALUE__:e}:e}));return Array.isArray(e)?t:t[0]}function c(e){var t=(Array.isArray(e)?e:[e]).map((function(e){return e&&e.__DOJO_WEBPACK_PROMISE_VALUE__||e}));return Array.isArray(e)?t:t[0]}function u(e){return(Array.isArray(e)?e:[e]).some((function(e){return"object"==typeof e&&e.__DOJO_WEBPACK_DEFINE_PROMISE__}))}i.toUrl=e,i.toAbsMid=r,i.absMids={},i.absMidsById=[],i.async=1;var l=this||window;if(function(e){for(var t in e)i.absMids[t]=e[t],i.absMidsById[e[t]]||(i.absMidsById[e[t]]=t)}({"dojo/_base/lang":0,"mw-log/Log":1,"dojo/_base/declare":2,"dojo/_base/kernel":3,"dojo/has":4,"dojo/sniff":5,"dojo/aspect":6,"dojo/dom":7,"dojo/on":8,"dojo/_base/array":9,"dojo/_base/Deferred":10,"dojo/_base/window":11,"mw-remote/RemoteEndPointsManager":12,"dojo/Deferred":13,"dojo/_base/config":14,"dojo/errors/CancelError":16,"dojo/promise/Promise":17,"mw-statemachine/statemachineimpl/Trigger":18,"dojo/dom-construct":19,"dojo/request/util":20,"dojo/io-query":21,"dojo/json":22,"lit/lit-element/lit-element.bundled":23,"mw-ddux/Sender":24,"dojo/global":25,"dojo/errors/create":26,"mw-remote/iframeproxy/IframeProxyClient":27,"dojo/dom-style":28,"dojo/request/watch":29,"dojo/errors/RequestError":30,"mw-remote/impl/Transaction":31,"mw-utils/Utils":32,"mw-remote/utils/SendMessageUtil":33,"cometd/cometd":35,"mw-messageservice/messageserviceimpl/instanceEnums":36,"mw-widget-api/WidgetBase":37,"mw-widget-api/defineWidget":38,"mw-widget-api/facade/html":39,"mw-log/impl/Modes":41,"mw-log/util/LogUtils":42,"mw-messageservice/MessageService":43,"dojo/Evented":44,"dojo/topic":45,"mw-remote/Remote":46,"dojo/_base/connect":47,"dojo/_base/sniff":48,"mw-deprecation-utils/deprecation":49,"dojo/_base/xhr":50,"dojo/request/xhr":51,"mw-html-utils/HtmlUtils":52,"mw-messageservice/messageserviceimpl/transportEnums":53,"mw-rating/Rating":54,"dojo/i18n":55,"mw-ddux/UsageLogger":57,"mw-ddux/DirectSender":58,"mw-log/impl/Levels":59,"mw-log/impl/Backlog":60,"mw-ddux/DirectSendFunction":61,"mw-ddux/MatlabSender":62,"mw-messageservice/messageserviceimpl/createMessageServiceDefaultInstance":63,"mw-messageservice/messageserviceimpl/MessageServiceBase":64,"mw-messageservice/messageserviceimpl/MessageServiceState":65,"mw-statemachine/StateMachine":66,"mw-statemachine/statemachineimpl/State":67,"mw-statemachine/statemachineimpl/EventTrigger":68,"mw-statemachine/statemachineimpl/MessageTrigger":69,"mw-statemachine/statemachineimpl/RemoteTrigger":70,"dojo/when":71,"dojo/_base/event":72,"dojo/dom-geometry":73,"dojo/mouse":74,"dojo/keys":75,"dojo/dom-attr":76,"dojo/dom-prop":77,"mw-remote/iframeproxy/CheckUrlService":78,"dojo/request/script":79,"dojo/errors/RequestTimeoutError":80,"mw-remote/impl/FaultManager":81,"mw-remote/impl/RequestManager":82,"mw-remote/EndPointsManager":83,"mw-remote/defaultMessageMapping":84,"mw-remote/impl/ResponseManager":85,"mw-remote/impl/AutoDetectedTransaction":86,"mw-remote/impl/JsonTransaction":87,"dojo/dom-form":88,"dojo/_base/json":89,"dojo/request/handlers":90,"mw-remote/UploadToWorker":91,"mw-html-utils/_parseHtml/sanitize":92,"mw-remote/ReplaceUploadIframe":93,"mw-remote/utils/RemoteUrlUtils":94,"mw-remote/serviceRegistryLookup!":95,"mw-remote/serviceRegistryLookup":96,"mw-statemachine/statemachineimpl/TimeoutTrigger":97,"mw-statemachine/statemachineimpl/Transition":98,"mw-messageservice/messageserviceimpl/isValidChannel":99,"mw-messageservice/messageserviceimpl/MessageServiceAsync":100,"cometd/AckExtension":101,"mw-messageservice/messageserviceimpl/messageServiceFactory":102,"mw-ddux/StubSender":103,"mw-widget-api/facade/LitElement":104,"lit/reactive-element/reactive-element":105,"lit/reactive-element/css-tag":106,"lit/reactive-element/custom-elements-es5-adapter":107,"lit/lit-html/lit-html":108,"mw-widget-api/facade/render":109,"mw-widget-api/facade/svg":110,"dojo/i18n!mw-rating/nls/main":111,"mw-rating/nls/main":112,"mw-rating-feedback/RatingFeedback":113,"dojo/i18n!mw-rating-feedback/nls/main":114,"mw-rating-feedback/nls/main":115,"mw-rating-feedback/impl/RatingFeedbackStep":116}),l.require=i,n.dj)throw new Error("__webpack_require__.dj name collision.");n.dj={r:i,c:function(t){if(i.absMidsById[t]&&(t=i.absMidsById[t]),!t)return i;var n=function(e,n,r){return s(e,n,r,t,i)};for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o]);return n.toUrl=function(n){return e(n,t?{mid:t}:null)},n.toAbsMid=function(e){return r(e,t?{mid:t}:null)},i.undef&&(n.undef=function(e){i.undef(e,t)}),n},m:function(e){var t={i:e.i},n=i.absMidsById[e.i];return n&&(t.id=n),Object.defineProperty(t,"exports",{get:function(){return e.exports},set:function(t){e.exports=t},enumerable:!0,configurable:!0}),t},h:function(e){var t=o("dojo/has",null,!1).normalize(e,(function(e){return e}));return t&&n(t)||void 0},d:function(e,t,n,r){function i(e){n&&(n.exports=r);var i=t.apply(null,e);return"function"==typeof n?n(i):void 0!==i?n.exports=i:i=n.exports,i}return u(e)?((o=Promise.all(e).then((function(e){return a(i(c(e)))}))).__DOJO_WEBPACK_DEFINE_PROMISE__=!0,o):i(e);var o},w:a,u:c};var d=Object.create(l,{document:{value:l.document},window:{value:d},global:{value:d}});l.dojoConfig=l.dojoConfig||{};var h=function(e,t){for(var n in t)e[n]=t[n];return e}(l.dojoConfig,{baseUrl:".",packages:[{name:"dojo",location:"target/debug/2P/derived/ui/dojo",lib:"."},{name:"dijit",location:"target/debug/2P/derived/ui/dijit",lib:"."},{name:"dojox",location:"target/debug/2P/derived/ui/dojox",lib:"."},{name:"mw-log",location:"target/debug/2P/derived/ui/mw-log",lib:"."},{name:"mw-utils",location:"target/debug/2P/derived/ui/mw-utils",lib:"."},{name:"mw-ddux",location:"target/debug/2P/derived/ui/mw-ddux",lib:"."},{name:"mw-progress-indicator",location:"target/debug/2P/derived/ui/mw-progress-indicator",lib:"."},{name:"mw-widget-api",location:"target/debug/2P/derived/ui/mw-widget-api",lib:"."},{name:"lit-element",location:"target/debug/2P/derived/ui/lit-element",lib:"."},{name:"lit-html",location:"target/debug/2P/derived/ui/lit-html",lib:"."},{name:"mw-statemachine",location:"target/debug/2P/derived/ui/mw-statemachine",lib:"."},{name:"mw-peermodel",location:"target/debug/2P/derived/ui/mw-peermodel",lib:"."},{name:"mw-deferred-utils",location:"target/debug/2P/derived/ui/mw-deferred-utils",lib:"."},{name:"mw-remote",location:"target/debug/2P/derived/ui/mw-remote",lib:"."},{name:"mw-messageservice",location:"target/debug/2P/derived/ui/mw-messageservice",lib:"."},{name:"mw-html-utils",location:"target/debug/2P/derived/ui/mw-html-utils",lib:"."},{name:"mw-browser-utils",location:"target/debug/2P/derived/ui/mw-browser-utils",lib:"."},{name:"mldo-embedded-client",location:"target/debug/2P/derived/ui/mldo-embedded-client",lib:"."},{name:"mw-utils",location:"target/debug/2P/derived/ui/mw-utils",trees:[[".",".",/(\/\.)|(~$)|(test|txt|BusyOverlay)/]],lib:"."}],deps:["bootstrap"],async:!1,has:{"config-deferredInstrumentation":!1},supportedLocales:["en-us"]});function r(e,t){var n=d.require.originalToAbsMid(e,t);if(n.indexOf("/")===n.length-1){var r=n.substring(0,n.length-1),i=d.require.packs[r];i&&i.realMain&&(n=r)}return n}function e(e,t){var n=d.require.originalToUrl(e,t),r=d.require.packs[e];if(r&&r.realMain){var i=n.split("?");/(^\/)|(\:)/.test(r.realMain)?i[0]=r.realMain:i[0]=i[0]+"/"+r.realMain,n=i.join("?")}return n}n(40).call(d,h,{hasCache:{webpack:1,"host-browser":1,dom:1,"dojo-loader":1,"dojo-has-api":1,"dojo-dom-ready-api":1,"dojo-sniff":1,"dojo-test-sniff":1,"config-deferredInstrumentation":1,"config-tlmSiblingOfDojo":1}},d,d),Object.keys(d.require.packs).forEach((function(e){var t=d.require.packs[e];(/(^\/)|(\:)/.test(t.main)||t.main.split("/").reduce((function(e,t){return e<0||"."===t?e:".."===t?--e:++e}),0)<=0)&&void 0===t.realMain&&(t.realMain=t.main,t.main="")})),d.require.originalToAbsMid=d.require.toAbsMid,d.require.originalToUrl=d.require.toUrl,d.require.toAbsMid=r,d.require.toUrl=e,["baseUrl","has","rawConfig","on","signal"].forEach((function(e){i[e]=d.require[e]}))}(),n(n.s=56)}([function(e,t,n){var r,i;r=[n(3),n(4),n(5)],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;i2)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-1?t:e.development}get threshold(){return this._threshold}set threshold(e){this._threshold=T._sanitizeLevel(e)}get showTimestamp(){return this._showTimestamp}set showTimestamp(e){this._showTimestamp=!!e}get globalThreshold(){return b}set globalThreshold(e){b=T._sanitizeLevel(e)}get mode(){return w}set mode(e){w=T._sanitizeMode(e)}_shouldLog(e){return b>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(),w),r.printToConsole("table",[e],w),r.execCallbacks(_,t)}}trace(){if(this._shouldLog(u)){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(),w),r.printToConsole("trace",[],w),r.execCallbacks(_,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(d)){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),w),r.execCallbacks(_,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};E.push(e),i.add(o),r.printToConsole(n,[e],w),r.execCallbacks(_,o)}}groupCollapsed(e){this._group(e,!0)}group(e){this._group(e,!1)}groupEnd(){if(this._shouldLog(f)){const e=E.pop(),t={namespace:this.name,type:"groupEnd",message:[e],time:new Date};i.add(t),r.printToConsole("groupEnd",[],w),r.execCallbacks(_,t)}}assert(e,t){if(this._shouldLog(m)&&!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,w),r.execCallbacks(_,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,w),r.execCallbacks(_,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",g,t)}error(e){const t=Array.prototype.slice.call(arguments);this._basicLogMethod("error",v,t)}addCallback(e,t){_[y]=e,t&&i.applyCallback(e);let n={};const r=y;return n.remove=()=>{delete _[r]},y++,n}createLogger(e){const t=new T(e);return t.name?t:x[e]}}return new T("DEFAULT")}),e,t),e.exports=i},function(e,t,n){var r,i;r=[n(3),n(4),n(0)],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 u(e,t){throw new Error("declare"+(t?" "+t:"")+": "+e)}function l(e,t,n,r){var i,s,a,l,d,h,f,p,g,m=this._inherited=this._inherited||{};if("string"==typeof e&&(i=e,e=t,t=n,n=r),"function"==typeof e)l=e,e=t,t=n;else try{l=e.callee}catch(e){if(!(e instanceof TypeError))throw e;u("strict mode inherited() requires the caller function to be passed before arguments",this.declaredClass)}if((i=i||l.nom)||u("can't deduce a name to call inherited()",this.declaredClass),n=r=0,a=(d=this.constructor._meta).bases,g=m.p,i!=c){if(m.c!==l&&(g=0,(d=(h=a[0])._meta).hidden[i]!==l)){(s=d.chains)&&"string"==typeof s[i]&&u("calling chained method with inherited: "+i,this.declaredClass);do{if(d=h._meta,f=h.prototype,d&&(f[i]===l&&f.hasOwnProperty(i)||d.hidden[i]===l))break}while(h=a[++g]);g=h?g:-1}if(h=a[++g])if(f=h.prototype,h._meta&&f.hasOwnProperty(i))n=f[i];else{p=o[i];do{if((n=(f=h.prototype)[i])&&(h._meta?f.hasOwnProperty(i):n!==p))break}while(h=a[++g])}n=h&&n||o[i]}else{if(m.c!==l&&(g=0,(d=a[0]._meta)&&d.ctor!==l)){for((s=d.chains)&&"manual"===s.constructor||u("calling chained constructor with inherited",this.declaredClass);(h=a[++g])&&(!(d=h._meta)||d.ctor!==l););g=h?g:-1}for(;(h=a[++g])&&!(n=(d=h._meta)?d.ctor:h););n=h&&n}if(m.c=n,m.p=g,n)return!0===t?n:n.apply(this,t||e)}function d(e,t,n){return"string"==typeof e?"function"==typeof t?this.__inherited(e,t,n,!0):this.__inherited(e,t,!0):"function"==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,r){var i=this.getInherited(e,t,n);if(i)return i.apply(this,r||n||t||e)}:l;function f(e){for(var t=this.constructor._meta.bases,n=0,r=t.length;n=0;--n)(c=r[n].prototype).hasOwnProperty("declaredClass")||(c.declaredClass="uniqName_"+a++),d=c.declaredClass,g.hasOwnProperty(d)||(g[d]={count:0,refs:[],cls:r[n]},++m),l=g[d],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),--m;1==(h=o.refs).length;){if(!(o=h[0])||--o.count){o=0;break}f.push(o.cls),--m}if(o)for(_=0,v=h.length;_=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)}}(A,T),C._meta={bases:A,hidden:w,chains:k,parents:R,ctor:w.constructor},C.superclass=r&&r.prototype,C.extend=g,C.createSubclass=m,C.prototype=E,E.constructor=C,E.getInherited=d,E.isInstanceOf=f,E.inherited=h,E.__inherited=l,e&&(E.declaredClass=e,n.setObject(e,C)),k)for(S in k)E[S]&&"string"==typeof k[S]&&S!=c&&((T=E[S]=v(S,A,"after"===k[S])).nom=S);return C}return e.safeMixin=b.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 u=n._extraNames,l=u.length;l;)(a=r[i=u[--l]])===o[i]&&i in o||i==c||("[object Function]"==s.call(a)&&(a.nom=i),e[i]=a);return e},e.declare=b,b}),e,t),e.exports=i},function(e,t,n){var r,i;r=[n(25),n(4),n(14),n.dj.c(e.i),n.dj.m(e)],i=n.dj.d(r,(function(e,t,n,r,i){var o,s,a,c={},u={},l={config:n,global:e,dijit:c,dojox:u},d={dojo:["dojo",l],dijit:["dijit",c],dojox:["dojox",u]},h=r.map&&r.map[i.id.match(/[^\/]+/)[0]];for(s in h)d[s]?d[s][0]=h[s]:d[s]=[h[s],{}];for(s in d)(a=d[s])[1]._scopeName=a[0],n.noGlobals||(e[a[0]]=a[1]);l.scopeMap=d,l.baseUrl=l.config.baseUrl=r.baseUrl,l.isAsync=!t("dojo-loader")||r.async,l.locale=n.locale;var f="$Rev:$".match(/[0-9a-f]{7,}/);if(l.version={major:1,minor:17,patch:1,flag:"",revision:f?f[0]:NaN,toString:function(){var e=l.version;return e.major+"."+e.minor+"."+e.patch+e.flag+" ("+e.revision+")"}},t.add("extend-dojo",1),t("csp-restrictions")||Function("d","d.eval = function(){return d.global.eval ? d.global.eval(arguments[0]) : eval(arguments[0]);}")(l),t("host-rhino")?l.exit=function(e){quit(e)}:l.exit=function(){},t("host-webworker")||t.add("dojo-guarantee-console",1),t("dojo-guarantee-console")){t.add("console-as-object",(function(){return Function.prototype.bind&&console&&"object"==typeof console.log})),"undefined"!=typeof console||(console={});var p,g=["assert","count","debug","dir","dirxml","error","group","groupEnd","info","profile","profileEnd","time","timeEnd","trace","warn","log"];for(o=0;p=g[o++];)console[p]?t("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(t.add("dojo-debug-messages",!!n.isDebug),l.deprecated=l.experimental=function(){},t("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)}),t.add("dojo-modulePaths",1),t("dojo-modulePaths")&&n.modulePaths){l.deprecated("dojo.modulePaths","use paths configuration");var m={};for(s in n.modulePaths)m[s.replace(/\./g,"/")]=n.modulePaths[s];r({paths:m})}return t.add("dojo-moduleUrl",1),t("dojo-moduleUrl")&&(l.moduleUrl=function(e,t){l.deprecated("dojo.moduleUrl()","use require.toUrl","2.0");var n=null;return e&&(n=r.toUrl(e.replace(/\./g,"/")+(t?"/"+t:"")+"/*.*").replace(/\/\*\.\*/,"")+(t?"":"/")),n}),l._hasResource={},l}),e,t),e.exports=i},function(e,t,n){var r,i;r=[n(25),n.dj.c(e.i),n.dj.m(e)],i=n.dj.d(r,(function(e,t,n){var r=t.has||function(){};if(!r("dojo-has-api")){var i="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location==location&&window.document==document,o=i&&document,s=o&&o.createElement("DiV"),a=n.config&&n.config()||{};(r=function(t){return"function"==typeof a[t]?a[t]=a[t](e,o,s):a[t]}).cache=a,r.add=function(e,t,n,i){return(void 0===a[e]||i)&&(a[e]=t),n&&r(e)},r.add("host-browser",i),r.add("host-node","object"==typeof process&&process.versions&&process.versions.node&&process.versions.v8),r.add("host-rhino","function"==typeof load&&("function"==typeof Packages||"object"==typeof Packages)),r.add("dom",i),r.add("dojo-dom-ready-api",1),r.add("dojo-sniff",1)}if(r("host-browser")){r.add("dom-addeventlistener",!!document.addEventListener),r.add("touch","ontouchstart"in document||"onpointerdown"in document&&navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints),r.add("touch-events","ontouchstart"in document),r.add("pointer-events","pointerEnabled"in window.navigator?window.navigator.pointerEnabled:"PointerEvent"in window),r.add("MSPointer",window.navigator.msPointerEnabled),r.add("touch-action",r("touch")&&r("pointer-events")),r.add("device-width",screen.availWidth||innerWidth);var c=document.createElement("form");r.add("dom-attributes-explicit",0==c.attributes.length),r.add("dom-attributes-specified-flag",c.attributes.length>0&&c.attributes.length<40)}return r.clearElement=function(e){return e.innerHTML="",e},r.normalize=function(e,t){var n=e.match(/[\?:]|[^:\?]*/g),i=0,o=function(e){var t=n[i++];return":"==t?0:"?"==n[i++]?!e&&r(t)?o():(o(!0),o(e)):t||0};return(e=o())&&t(e)},r.load=function(e,t,n){e?t([e],n):n()},r}),e,t),e.exports=i},function(e,t,n){var r,i;r=[n(4)],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,u=document.documentMode;u&&5!=u&&Math.floor(c)!=u&&(c=u),e.add("ie",c)}e.add("wii","undefined"!=typeof opera&&opera.wiiremote)}}return e}),e,t),e.exports=i},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-1&&(a=t.split(/\s*,\s*/)),a){for(var c,u=[],l=0;c=a[l++];)u.push(i.parse(e,c,n,r,o,s));return u.remove=function(){for(var e=0;e0)return a.lastIndexOf(i,o,s);var u,l=i&&i.length||0,d=e?l+r:n;for(void 0===s?u=e?n:l+r:s<0?(u=l+s)<0&&(u=n):u=s>=l?l+r:s,l&&"string"==typeof i&&(i=i.split(""));u!=d;u+=t)if(i[u]==o)return u;return-1}}t("csp-restrictions")||(r=function(e){return i[e]=new Function("item","index","array",e)});var a={every:o(!1),some:o(!0),indexOf:s(!0),lastIndexOf:s(!1),forEach:function(e,n,o){var s=0,a=e&&e.length||0;if(a&&"string"==typeof e&&(e=e.split("")),"string"==typeof n){if(t("csp-restrictions"))throw new TypeError("callback must be a function");n=i[n]||r(n)}if(o)for(;s=0},this.isCanceled=m.isCanceled=function(){return d},this.resolve=this.callback=function(e){this.fired=h=0,this.results=[e,null],v(e)},this.reject=this.errback=function(e){f=!0,this.fired=h=1,i("config-useDeferredInstrumentation")&&t.instrumentRejected&&t.instrumentRejected(e,!!g),v(e),this.results=[null,e]},this.progress=function(e){for(var t=g;t;){var n=t.progress;n&&n(e),t=t.next}},this.addCallbacks=function(e,t){return this.then(e,t,a),this},m.then=this.then=function(e,t,n){var r=n==a?this:new u(m.cancel),i={resolved:e,error:t,progress:n,deferred:r};return g?p=p.next=i:g=p=i,l&&_(),r.promise};var y=this;m.cancel=this.cancel=function(){if(!l){var t=e&&e(y);l||(t instanceof Error||(t=new r(t)),t.log=!1,y.reject(t))}d=!0},c(m)};return o.extend(u,{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}),u.when=e.when=s,u}),e,t),e.exports=i},function(e,t,n){var r,i;r=[n(3),n(0),n(5)],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,u,l=r.doc,d=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")&&(u=t.parentWindow)&&u.navigator&&(a=parseFloat(u.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",d,!0,!0),e.isIE=n.add("ie",h,!0,!0)}}};return n("extend-dojo")&&t.mixin(e,r),r}),e,t),e.exports=i},function(e,t,n){"use strict";var r,i;r=[n(83)],i=n.dj.d(r,(function(e){var t=null;return null===t&&(t=new e),t}),e,t),e.exports=i},function(e,t,n){var r,i;r=[n(4),n(0),n(16),n(17),n(15)],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&&d.instrumentRejected&&0===t.length&&d.instrumentRejected(r,!1,i,o);for(var s=0;s=0&&"zh"!==t)r.locale=t;else if("zh"!==(n=t.split("-")[0])){for(var i=0;i':"<"+f.join("><")+">",f.post=""}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=g("div",{innerHTML:"",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)})),v(t)}),e.toDom=function(e,t){var i=(t=t||r.doc)[d];i||(t[d]=i=++l+"",u[i]=t.createElement("div")),n("ie")<=8&&!t.__dojo_html5_tested&&t.body&&s(t);var o,h,f,p,g=(e+="").match(c),m=g?g[1].toLowerCase():"",v=u[i];if(g&&a[m])for(o=a[m],v.innerHTML=o.pre+e+o.post,h=o.length;h;--h)v=v.firstChild;else v.innerHTML=e;if(1==v.childNodes.length)return v.removeChild(v.firstChild);for(p=t.createDocumentFragment();f=v.firstChild;)p.appendChild(f);return p},e.place=function(t,n,r){if(n=i.byId(n),"string"==typeof t&&(t=/^\s*=200&&e<300||304===e||1223===e||!e}}),e,t),e.exports=i},function(e,t,n){var r,i;r=[n(0)],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,u=s.length;c{e._$AK(t,n)},_$AL:e=>e._$AL},Object.keys(t).forEach((function(n){"default"===n||e.hasOwnProperty(n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})})),Object.keys(n).forEach((function(t){"default"===t||e.hasOwnProperty(t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})})),Object.defineProperty(e,"i",{value:!0})}),e,t),e.exports=i},function(e,t,n){var r,i;r=[n(1)],i=n.dj.d(r,(function(e){"use strict";var t={};return t.default=class{start(e){}stop(){}sendEvent(t,n){e.warn("Sender.sendEvent not overridden")}},t.default}),e,t),e.exports=i},function(e,t,n){var r;void 0===(r=function(){return"undefined"!=typeof global&&"function"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this}.call(null,n,t,e))||(e.exports=r)},function(e,t,n){var r,i;r=[n(0)],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},function(e,t,n){"use strict";var r,i;r=[n(47),n(2),n(10),n(0),n(6),n(19),n(1),n(78)],i=n.dj.d(r,(function(e,t,n,r,i,o,s,a){var c=t([],{constructor:function(){this._messageId=0,this._loaded=!1,this._pendingQueue=[],this._transactions={},this._uploadTargetCallbacks={},this._checkUrl=null,this._loadTimeoutHandle=null,this._checkUrlTimeout=null,this._errorRate=0,this._inFlightTransactions={},this._webSocket=null},setRemotePageHost:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};e=this._combineUriPaths(e||"","/"),t=t||"",r=r||"",this.computeToken=n,this._withCredentials=this._withCredentials||!1,void 0!==i.withCredentials&&null!==i.withCredentials&&(this._withCredentials=!!i.withCredentials),e===this._host&&t===this._key&&r===this._proxyUrl||(this._errorLoading=!1,this._host=e,this._key=t,this._proxyUrl=r,this._cleanupFailureChecks(),this._loaded=!0,this._flushPending())},setLatency:function(e){this._latency=e},setErrorRate:function(e){this._errorRate=e},sendMessage:function(e,t,r){var i,o,s,a=this;this.computeToken&&((r=r||{}).headers=r.headers||{},r.headers.computeToken=this.computeToken);var c=r||{};return i=this._getNewMessageId(),o={action:"sendMessage",id:i,endpoint:t,options:c,message:e},s={deferred:new n((function(){o={action:"abort",id:i},a._postMessage(o)})),id:i},this._errorLoading?s.deferred.reject("Error loading: "+this._url):(this._transactions[i]=s,this._postMessage(o)),s.deferred},_postMessage:function(e){this._loaded?this._postMessageNow(e):this._pendingQueue.push(e)},_handleMessage:function(e){var t,n,r,i,o;if(!(t=e.data.action))throw new Error("Client unable to parse message, no action specified: "+JSON.stringify(e.data));switch(t){case"ready":this._cleanupFailureChecks(),this._loaded=!0,this._flushPending();break;case"sendMessageResponse":this._sendMessageResponse(e);break;case"uploadIframeMessage":n=e.data.id,r=e.data.message,this._uploadTargetCallbacks[n](r);break;case"websocketOpened":this.onWebsocketOpen();break;case"websocketClosed":i=e.data.message,this.onWebsocketClose(i);break;case"websocketMsg":o=e.data.message,this.onWebsocketMsg(o);break;case"websocketError":this.onWebsocketError();break;default:throw new Error("Unknown action: "+t+", data: "+JSON.stringify(e.data))}},_sendMessageResponse:function(e){var t,n,r=e.data.id,i=e.data.responseType,o=e.data.message;if(!r||!i)throw new Error("Invalid message: "+JSON.stringify(e.data));if(!(t=this._transactions[r]))throw new Error("Unknown transaction id: "+r+": "+JSON.stringify(e.data));if(delete this._transactions[r],!t.deferred.isCanceled()){if("success"===i){try{n=o&&JSON.parse(o)}catch(e){n=o}return n=""===n?{}:n,void t.deferred.resolve(n)}this.onError(o),t.deferred.reject(o)}},_cleanupFailureChecks:function(){this._checkUrlTimeout&&clearTimeout(this._checkUrlTimeout),this._loadTimeoutHandle&&clearTimeout(this._loadTimeoutHandle),this._checkUrl&&!this._checkUrl.isFulfilled()&&this._checkUrl.cancel("Timeout Occurred",!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: "+this._url+" at "+new Date);this._errorLoading=!0,this.onError(e)}},_handleXhrResponse:function(e,t){var n={action:"sendMessageResponse",id:e,responseType:"success",message:t};this._handleMessage({data:n})},_handleXhrFault:function(e,t){var n={action:"sendMessageResponse",id:e,responseType:"fault",message:t};this._handleMessage({data:n})},_sendXHRNow:function(e){var t,n,r,i,o,s,a,c=this,u=e.data.action;if(!u)throw new Error("Unable to parse message, no action specified: "+JSON.stringify(e.data));switch(u){case"sendMessage":if(t=e.data.id,n=e.data.endpoint,i=e.data.options,r=e.data.message,!(t&&n&&r))throw new Error("Invalid message to send: "+JSON.stringify(e.data));try{if(o=new XMLHttpRequest,this._inFlightTransactions[t]={xhr:o},s=!1,o.onreadystatechange=function(){var e;0===o.readyState?(s=!0,c.handleXhrFault(t,"XHR readyState 0")):4!==o.readyState||s||(s=!0,(e=o.status||0)>=200&&e<300||304===e?c._handleXhrResponse(t,o.responseText):c._handleXhrFault(t,o.responseText)),s&&o&&(o.onreadystatechange=c._noop,o=null,delete c._inFlightTransactions[t].xhr,delete c._inFlightTransactions[t])},o.open("POST",n,!0),o.withCredentials=this._withCredentials,o.setRequestHeader("Content-Type",i.contentType?i.contentType:"application/json"),o.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.headers)for(a in i.headers)Object.prototype.hasOwnProperty.call(i.headers,a)&&o.setRequestHeader(a,i.headers[a]);o.send(r)}catch(e){this.handleXhrFault(t,"Unable to send data: "+e.toString())}break;case"abort":t=e.data.id,this._inFlightTransactions[t]&&this._inFlightTransactions[t].xhr.abort();break;case"connectWebsocket":var l=e.data.url;this._webSocket=new WebSocket(l),this._webSocket.onopen=function(){c.onWebsocketOpen()},this._webSocket.onmessage=function(e){c.onWebsocketMsg(e)},this._webSocket.onclose=function(e){var t={code:e.code,reason:e.reason,wasClean:e.wasClean};c.onWebsocketClose(t)},this._webSocket.onerror=function(){c.onWebsocketError()};break;case"websocketSend":this._webSocket.send(e.data.data);break;case"closeWebsocket":this._webSocket.close();break;default:throw new Error("Unknown action: "+u)}},_postMessageNow:function(e){var t,n,r=this;function i(){if(r._errorRate>0&&Math.random()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 c.WebSocket=t([],{constructor:function(e){var t=this;this.proxyClient=c.WebSocket.proxyClient,this.proxyClient.computeToken&&e.indexOf("?")>=0&&(e=e+"&computeToken="+this.proxyClient.computeToken);var n={action:"connectWebsocket",url:e};this.proxyClient._postMessage(n),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),t.proxyClient.onError.apply(t.proxyClient,arguments)}),!0)},onopen:function(){},onmessage:function(){},onclose:function(){},onerror:function(){},send:function(e){var t={action:"websocketSend",data:e};this.proxyClient._postMessage(t)},close:function(){this.proxyClient._postMessage({action:"closeWebsocket"})}}),c}),e,t),e.exports=i},function(e,t,n){var r,i;r=[n(5),n(7),n(11)],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},u=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()&&u(r,t);return t}:function(e,t){return e.style.opacity=t},l={left:!0,top:!0},d=/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]=d.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?u(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},function(e,t,n){var r,i;r=[n(20),n(80),n(16),n(9),n(11),n.dj.h("dom-addeventlistener?:8")],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=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},function(e,t,n){var r,i;r=[n(49)],i=n.dj.d(r,(function(e){"use strict";var t={};return t.default={generateUuid:function(){return this._uuidFromTemplate("xxxxxxxx").toUpperCase()},generateUUIDv4:function(){return this._uuidFromTemplate("xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx")},_uuidFromTemplate:function(e){return e.replace(/[xy]/g,(function(e){const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},isImageData:function(e){return!!e&&("object"==typeof window&&window.ImageData&&e instanceof window.ImageData||Object.prototype.hasOwnProperty.call(e,"width")&&Object.prototype.hasOwnProperty.call(e,"height")&&Object.prototype.hasOwnProperty.call(e,"data"))},isArray:function(t){return e.deprecated({deprecated:{module:"mw-utils/Utils",method:"isArray"},geckNumber:1444368}),Array.isArray(t)},getArrayLength:function(e){let t=0;return!!Array.isArray(e)&&(e.forEach((function(e){e&&(t+=1)})),t)},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){let n=null;return t.some((function(t){return-1===e.indexOf(t)&&(n=t,!0)})),n},unionOfWordSets:function(e,t,n){e=this._stringToArray(e),t=this._stringToArray(t);const r=this.unionOfArrays(e,t);return n?r.join(" "):r},intersectionOfWordSets:function(e,t,n){e=this._stringToArray(e),t=this._stringToArray(t);const r=this.intersectionOfArrays(e,t);return n?r.join(" "):r},differenceOfWordSets:function(e,t,n){e=this._stringToArray(e),t=this._stringToArray(t);const 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);let n,r,i;const o=new Map,s=[];for(i=0;i{const r=++e;return t[r]=n,r},this.unregister=e=>{const n=t[e];return delete t[e],n},this.setTimeout=(e,t)=>window.setTimeout(e,t),this.clearTimeout=e=>{window.clearTimeout(e)}}function n(){const e={};self.onmessage=t=>{const n=t.data,r=e[n.id];switch(n.type){case"setTimeout":e[n.id]=self.setTimeout(()=>{delete e[n.id],self.postMessage({id:n.id})},n.delay);break;case"clearTimeout":delete e[n.id],r&&self.clearTimeout(r);break;default:throw"Unknown command "+n.type}}}const r={isString:e=>null!=e&&("string"==typeof e||e instanceof String)};function i(){let e=[],t={};this.getTransportTypes=()=>e.slice(0),this.findTransportTypes=(n,r,i)=>{const o=[];for(let s=0;s{for(let s=0;s{let o=!1;for(let t=0;t{for(let r=0;r{for(let r=0;r{e=[],t={}},this.reset=n=>{for(let r=0;r{e=n,t=r},this.unregistered=()=>{e=null,t=null},this._notifyTransportTimeout=function(e){const n=t._getTransportListeners("timeout");if(n)for(let t=0;t0)return t}catch(e){this._info("Exception during execution of transport listener",r,e)}}return 0},this._debug=function(){t._debug.apply(t,arguments)},this._info=function(){t._info.apply(t,arguments)},this._mixin=function(){return t._mixin.apply(t,arguments)},this.getConfiguration=()=>t.getConfiguration(),this.getAdvice=()=>t.getAdvice(),this.setTimeout=(e,n)=>t.setTimeout(e,n),this.clearTimeout=e=>{t.clearTimeout(e)},this.convertToJSON=function(e){const t=this.getConfiguration().maxSendBayeuxMessageSize;let n="[";for(let r=0;r0&&(n+=",");const i=e[r],o=JSON.stringify(i);if(o.length>t)throw"maxSendBayeuxMessageSize "+t+" exceeded";n+=o}return n+="]",n},this.convertToMessages=function(e){if(r.isString(e))try{return JSON.parse(e)}catch(t){throw this._debug("Could not convert to JSON the following string",'"'+e+'"'),t}if(Array.isArray(e))return e;if(null==e)return[];if(e instanceof Object)return[e];throw"Conversion Error "+e+", typeof "+typeof e},this.accept=(e,t,n)=>{throw"Abstract"},this.getType=()=>e,this.getURL=()=>n,this.setURL=e=>{n=e},this.send=(e,t)=>{throw"Abstract"},this.reset=function(t){this._debug("Transport",e,"reset",t?"initial":"retry")},this.abort=function(){this._debug("Transport",e,"aborted")},this.toString=function(){return this.getType()}}function s(){const e=new o,t=o.derive(e);let n=0,r=null,i=[],s=[];function a(e){for(;s.length>0;){const 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,n){const r=this._notifyTransportTimeout(e.messages);if(r>0)this._debug("Transport",this.getType(),"extended waiting for message replies of request",t.id,":",r,"ms"),t.timeout=this.setTimeout(()=>{c.call(this,e,t,n+r)},r);else{t.expired=!0;const r="Transport "+this.getType()+" expired waiting for message replies of request "+t.id+": "+n+" ms",i={reason:r},o=t.xhr;i.httpCode=this.xhrStatus(o),this.abortXHR(o),this._debug(r),this.complete(t,!1,t.metaConnect),e.onFailure(o,e.messages,i)}}function u(e,t){if(this.transportSend(e,t)&&(t.expired=!1,!e.sync)){let n=this.getConfiguration().maxNetworkDelay;!0===t.metaConnect&&(n+=this.getAdvice().timeout),this._debug("Transport",this.getType(),"started waiting for message replies of request",t.id,":",n,"ms"),t.timeout=this.setTimeout(()=>{c.call(this,e,t,n)},n)}}function l(e){const t=++n,r={id:t,metaConnect:!1,envelope:e};i.length=0&&i.splice(n,1),s.length>0){const n=s.shift(),r=n[0],i=n[1];this._debug("Transport dequeued request",i.id),t?(this.getConfiguration().autoBatch&&a.call(this,r),l.call(this,r),this._debug("Transport completed request",e.id,r)):this.setTimeout(()=>{this.complete(i,!1,i.metaConnect);const e={reason:"Previous request failed"},t=i.xhr;e.httpCode=this.xhrStatus(t),r.onFailure(t,r.messages,e)},0)}}function f(e){if(null!==r)throw"Concurrent /meta/connect requests not allowed, request id="+r.id+" not yet completed";const t=++n;this._debug("Transport",this.getType(),"/meta/connect send, request",t,"envelope",e);const i={id:t,metaConnect:!0,envelope:e};u.call(this,e,i),r=i}return t.complete=function(e,t,n){n?d.call(this,e):h.call(this,e,t)},t.transportSend=(e,t)=>{throw"Abstract"},t.transportSuccess=function(e,t,n){t.expired||(this.clearTimeout(t.timeout),this._debug("Transport",this.getType(),"cancelled waiting for message replies"),this.complete(t,!0,t.metaConnect),n&&n.length>0?e.onSuccess(n):e.onFailure(t.xhr,e.messages,{httpCode:204}))},t.transportFailure=function(e,t,n){t.expired||(this.clearTimeout(t.timeout),this._debug("Transport",this.getType(),"cancelled waiting for failed message replies"),this.complete(t,!1,t.metaConnect),e.onFailure(t.xhr,e.messages,n))},t.send=function(e,t){t?f.call(this,e):l.call(this,e)},t.abort=function(){e.abort();for(let e=0;e{e.reset(t),r=null,i=[],s=[]},t.abortXHR=function(e){if(e)try{const t=e.readyState;return e.abort(),t!==window.XMLHttpRequest.UNSENT}catch(e){this._debug(e)}return!1},t.xhrStatus=function(e){if(e)try{return e.status}catch(e){this._debug(e)}return-1},t}function a(){const e=new s,t=o.derive(e);let n=!0;return t.accept=(e,t,r)=>n||!t,t.newXMLHttpRequest=()=>new window.XMLHttpRequest,t.xhrSend=e=>{const n=t.newXMLHttpRequest();!function(e){try{e.context=t.context}catch(e){t._debug("Could not copy transport context into XHR",e)}}(n),n.withCredentials=!0,n.open("POST",e.url,!0!==e.sync);const r=e.headers;if(r)for(let e in r)r.hasOwnProperty(e)&&n.setRequestHeader(e,r[e]);return n.setRequestHeader("Content-Type","application/json;charset=UTF-8"),n.onload=()=>{200===n.status?e.onSuccess(n.responseText):e.onError(n.statusText)},n.onabort=n.onerror=()=>{e.onError(n.statusText)},n.send(e.body),n},t.transportSend=function(e,t){this._debug("Transport",this.getType(),"sending request",t.id,"envelope",e);try{let r=!0;return t.xhr=this.xhrSend({transport:this,url:e.url,sync:e.sync,headers:this.getConfiguration().requestHeaders,body:this.convertToJSON(e.messages),onSuccess:r=>{this._debug("Transport",this.getType(),"received response",r);let i=!1;try{const o=this.convertToMessages(r);0===o.length?(n=!1,this.transportFailure(e,t,{httpCode:204})):(i=!0,this.transportSuccess(e,t,o))}catch(r){if(this._debug(r),!i){n=!1;const i={exception:r};i.httpCode=this.xhrStatus(t.xhr),this.transportFailure(e,t,i)}}},onError:(i,o)=>{this._debug("Transport",this.getType(),"received error",i,o),n=!1;const s={reason:i,exception:o};s.httpCode=this.xhrStatus(t.xhr),r?this.setTimeout(()=>{this.transportFailure(e,t,s)},0):this.transportFailure(e,t,s)}}),r=!1,!0}catch(r){return this._debug("Transport",this.getType(),"exception:",r),n=!1,this.setTimeout(()=>{this.transportFailure(e,t,{exception:r})},0),!1}},t.reset=t=>{e.reset(t),n=!0},t}function c(){const e=new s,t=o.derive(e);let n=0;function r(e,t,n){return()=>{this.transportFailure(e,t,"error",n)}}return t.accept=(e,t,n)=>!0,t.jsonpSend=e=>{const t=document.getElementsByTagName("head")[0],r=document.createElement("script"),i="_cometd_jsonp_"+n++;window[i]=n=>{t.removeChild(r),delete window[i],e.onSuccess(n)};let o=e.url;o+=o.indexOf("?")<0?"?":"&",o+="jsonp="+i,o+="&message="+encodeURIComponent(e.body),r.src=o,r.async=!0!==e.sync,r.type="application/javascript",r.onerror=t=>{e.onError("jsonp "+t.type)},t.appendChild(r)},t.transportSend=function(e,t){let n=0,i=e.messages.length;const o=[];for(;i>0;){const s=JSON.stringify(e.messages.slice(n,n+i)),a=e.url.length+encodeURI(s).length,c=this.getConfiguration().maxURILength;if(a>c){if(1===i){const n="Bayeux message too big ("+a+" bytes, max is "+c+") for transport "+this.getType();return void this.setTimeout(r.call(this,e,t,n),0)}--i}else o.push(i),n+=i,i=e.messages.length-n}let s=e;if(o.length>1){let n=0,r=o[0];this._debug("Transport",this.getType(),"split",e.messages.length,"messages into",o.join(" + ")),s=this._mixin(!1,{},e),s.messages=e.messages.slice(n,r),s.onSuccess=e.onSuccess,s.onFailure=e.onFailure;for(let i=1;i{let n=!1;try{const r=this.convertToMessages(e);0===r.length?this.transportFailure(s,t,{httpCode:204}):(n=!0,this.transportSuccess(s,t,r))}catch(e){this._debug(e),n||this.transportFailure(s,t,{exception:e})}},onError:(n,r)=>{const i={reason:n,exception:r};e?this.setTimeout(()=>{this.transportFailure(s,t,i)},0):this.transportFailure(s,t,i)}}),e=!1,!0}catch(e){return this.setTimeout(()=>{this.transportFailure(s,t,{exception:e})},0),!1}},t}function u(){const e=new o,t=o.derive(e);let n,r=!0,i=!1,s=!0,a=null,c=null,u=!1,l=null;function d(e,t){e&&(this.webSocketClose(e,t.code,t.reason),this.onClose(e,t))}function h(e){return e===c||e===a}function f(e,t,n){const r=[];for(let e=0;e=0){n=!0,t.splice(o,1);const i=r[e][0],s=r[e][1];delete r[e],t.length>0&&(r[t.join(",")]=[i,s]);break}}}n&&this._debug("Transport",this.getType(),"removed envelope, envelopes",r)}function g(e){if(c)return;const t=n.getURL().replace(/^http/,"ws");this._debug("Transport",this.getType(),"connecting to URL",t);try{const r=n.getConfiguration().protocol;e.webSocket=r?new window.WebSocket(t,r):new window.WebSocket(t),c=e}catch(e){throw r=!1,this._debug("Exception while creating WebSocket object",e),e}s=!1!==n.getConfiguration().stickyReconnect;const o=n.getConfiguration().connectTimeout;o>0&&(e.connectTimer=this.setTimeout(()=>{n._debug("Transport",this.getType(),"timed out while connecting to URL",t,":",o,"ms"),d.call(this,e,{code:1e3,reason:"Connect Timeout"})},o));const u=t=>{t=t||{code:1e3},n._debug("WebSocket onclose",e,t,"connecting",c,"current",a),e.connectTimer&&this.clearTimeout(e.connectTimer),this.onClose(e,t)};e.webSocket.onopen=()=>{n._debug("WebSocket onopen",e),e.connectTimer&&this.clearTimeout(e.connectTimer),h(e)?(c=null,a=e,i=!0,this.onOpen(e)):(n._warn("Closing extra WebSocket connection",this,"active connection",a),d.call(this,e,{code:1e3,reason:"Extra Connection"}))},e.webSocket.onclose=u,e.webSocket.onerror=()=>{u({code:1e3,reason:"Error"})},e.webSocket.onmessage=t=>{n._debug("WebSocket onmessage",t,e),this.onMessage(e,t)},this._debug("Transport",this.getType(),"configured callbacks on",e)}function m(e,t,n){const r=this._notifyTransportTimeout([t]);r>0?(this._debug("Transport",this.getType(),"extended waiting for message replies:",r,"ms"),e.timeouts[t.id]=this.setTimeout(()=>{m.call(this,e,t,n+r)},r)):(this._debug("Transport",this.getType(),"expired waiting for message reply",t.id,":",n,"ms"),d.call(this,e,{code:1e3,reason:"Message Timeout"}))}function v(e,t,n){let r;try{r=this.convertToJSON(t.messages)}catch(n){this._debug("Transport",this.getType(),"exception:",n);const r=[];for(let e=0;e{this._notifyFailure(t.onFailure,e,t.messages,{exception:n})},0)}e.webSocket.send(r),this._debug("Transport",this.getType(),"sent",t,"/meta/connect =",n);let i=this.getConfiguration().maxNetworkDelay;n&&(i+=this.getAdvice().timeout,u=!0);const o=[];for(let n=0;n{m.call(this,e,r,i)},i))}this._debug("Transport",this.getType(),"started waiting for message replies",i,"ms, messageIds:",o,", timeouts:",e.timeouts)}function _(e,t,n){try{null===e?(e=c||{envelopes:{},timeouts:{}},f.call(this,e,t,n),g.call(this,e)):(f.call(this,e,t,n),v.call(this,e,t,n))}catch(t){this.setTimeout(()=>{d.call(this,e,{code:1e3,reason:"Exception",exception:t})},0)}}return t.reset=t=>{e.reset(t),r=!0,t&&(i=!1),s=!0,t&&(a=null),c=null,u=!1},t._notifySuccess=function(e,t){e.call(this,t)},t._notifyFailure=function(e,t,n,r){e.call(this,t,n,r)},t.onOpen=function(e){const t=e.envelopes;this._debug("Transport",this.getType(),"opened",e,"pending messages",t);for(let n in t)if(t.hasOwnProperty(n)){const r=t[n],i=r[0],o=r[1];l=i.onSuccess,v.call(this,e,i,o)}},t.onMessage=function(e,t){this._debug("Transport",this.getType(),"received websocket message",t,e);let n=!1;const r=this.convertToMessages(t.data),i=[];for(let t=0;t{e.registered(t,r),n=r},t.accept=function(e,t,i){return this._debug("Transport",this.getType(),"accept, supported:",r),r&&!!window.WebSocket&&!1!==n.websocketEnabled},t.send=function(e,t){this._debug("Transport",this.getType(),"sending",e,"/meta/connect =",t),_.call(this,a,e,t)},t.webSocketClose=function(e,t,n){try{e.webSocket&&e.webSocket.close(t,n)}catch(e){this._debug(e)}},t.abort=function(){e.abort(),d.call(this,a,{code:1e3,reason:"Abort"}),this.reset(!0)},t}o.derive=e=>{function t(){}return t.prototype=e,new t};const l=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z",".","-",":","+","=","^","!","/","*","?","&","<",">","(",")","[","]","{","}","@","%","$","#"],d=[0,68,0,84,83,82,72,0,75,76,70,65,0,63,62,69,0,1,2,3,4,5,6,7,8,9,64,0,73,66,74,71,81,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,77,0,78,67,0,0,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,79,0,80,0,0],h={encode:e=>{let t=null;if(e instanceof ArrayBuffer?t=e:e.buffer instanceof ArrayBuffer?t=e.buffer:Array.isArray(e)&&(t=new Uint8Array(e).buffer),null==t)throw"Cannot Z85 encode "+e;const n=t.byteLength,r=n%4,i=4-(0===r?4:r),o=new DataView(t);let s="",a=0;for(let e=0;e=n;if(a=256*a+(t?0:o.getUint8(e)),(e+1)%4==0){let e=52200625;for(let n=5;n>0;--n){if(!t||n>i){const t=Math.floor(a/e)%85;s+=l[t]}e/=85}a=0}}return s},decode:e=>{const t=e.length%5,n=5-(0===t?5:t);for(let t=0;t=1;)c="A"&&e<="Z"||e>="a"&&e<="z"}function B(e){return e>="0"&&e<="9"}function q(e){switch(e){case" ":case"!":case"#":case"$":case"(":case")":case"*":case"+":case"-":case".":case"/":case"@":case"_":case"{":case"~":case"}":case":":case"\\":case",":return!0;default:return!1}}function W(e){if(!H(e))return!1;if(e.length<2)return!1;if("/"!==e.charAt(0))return!1;for(let t=1;t0&&!(e>=Math.pow(10,t));)n+="0";return n+=e,n}function z(e,t){if(window.console){const n=window.console[e];if(K(n)){const e=new Date;[].splice.call(t,0,0,V(e.getHours(),2)+":"+V(e.getMinutes(),2)+":"+V(e.getSeconds(),2)+"."+V(e.getMilliseconds(),3)),n.apply(window.console,t)}}}function X(e){return new RegExp("(^https?://)?(((\\[[^\\]]+])|([^:/?#]+))(:(\\d+))?)?([^?#]*)(.*)?").exec(e)}function G(e){s._debug("Configuring cometd object with",e),H(e)&&(e={url:e}),e||(e={}),F=s._mixin(!1,F,e);const t=s.getURL();if(!t)throw"Missing required configuration parameter 'url' specifying the Bayeux server URL";const r=X(t),i=r[2],a=r[8],c=r[9];if(d=s._isCrossDomain(i),F.appendMessageTypeToURL)if(void 0!==c&&c.length>0)s._info("Appending message type to URI "+a+c+" is not supported, disabling 'appendMessageTypeToURL' configuration"),F.appendMessageTypeToURL=!1;else{const e=a.split("/");let t=e.length-1;a.match(/\/$/)&&(t-=1),e[t].indexOf(".")>=0&&(s._info("Appending message type to URI "+a+" is not supported, disabling 'appendMessageTypeToURL' configuration"),F.appendMessageTypeToURL=!1)}if(window.Worker&&window.Blob&&window.URL&&F.useWorkerScheduler){let e=n.toString();e=e.substring(e.indexOf("{")+1,e.lastIndexOf("}"));const t=new window.Blob([e],{type:"application/json"}),r=window.URL.createObjectURL(t),i=new window.Worker(r);o.setTimeout=(e,t)=>{const n=o.register(e);return i.postMessage({id:n,type:"setTimeout",delay:t}),n},o.clearTimeout=e=>{o.unregister(e),i.postMessage({id:e,type:"clearTimeout"})},i.onmessage=e=>{const t=e.data.id,n=o.unregister(t);n&&n()}}}function J(e){if(e){const t=w[e.channel];t&&t[e.id]&&(delete t[e.id],s._debug("Removed",e.listener?"listener":"subscription",e))}}function Q(e){e&&!e.listener&&J(e)}function Y(){for(let e in w)if(w.hasOwnProperty(e)){const t=w[e];if(t)for(let e in t)t.hasOwnProperty(e)&&Q(t[e])}}function Z(e){p!==e&&(s._debug("Status",p,"->",e),p=e)}function ee(){return"disconnecting"===p||"disconnected"===p}function te(){return""+ ++g}function ne(e,t,n,r,i){try{return t.call(e,r)}catch(e){const t=s.onExtensionException;if(K(t)){s._debug("Invoking extension exception handler",n,e);try{t.call(s,e,n,i,r)}catch(e){s._info("Exception during execution of extension exception handler",n,e)}}else s._info("Exception during execution of extension",n,e);return r}}function re(e){for(let t=C.length-1;t>=0&&null!=e;--t){const n=C[t],r=n.extension.outgoing;if(K(r)){const t=ne(n.extension,r,n.name,e,!0);e=void 0===t?e:t}}return e}function ie(e,t){const n=w[e];if(n)for(let e in n)if(n.hasOwnProperty(e)){const r=n[e];if(r)try{r.callback.call(r.scope,t)}catch(e){const n=s.onListenerException;if(K(n)){s._debug("Invoking listener exception handler",r,e);try{n.call(s,e,r,r.listener,t)}catch(e){s._info("Exception during execution of listener exception handler",r,e)}}else s._info("Exception during execution of listener",r,t,e)}}}function oe(e,t){ie(e,t);const n=e.split("/"),r=n.length-1;for(let e=r;e>0;--e){let i=n.slice(0,e).join("/")+"/*";e===r&&ie(i,t),i+="*",ie(i,t)}}function se(){null!==T&&s.clearTimeout(T),T=null}function ae(e,t){se();const n=k.interval+t;s._debug("Function scheduled in",n,"ms, interval =",k.interval,"backoff =",x,e),T=s.setTimeout(e,n)}function ce(e,t,n){for(let t=0;t{try{O.call(s,e)}catch(e){s._info("Exception during handling of messages",e)}},onFailure:(e,t,n)=>{try{const r=s.getTransport();n.connectionType=r?r.getType():"unknown",M.call(s,e,t,n)}catch(e){s._info("Exception during handling of failure",e)}}};s._debug("Send",i),f.send(i,t)}function ue(e){v>0||!0===y?_.push(e):ce([e],!1)}function le(){x=0}function de(){const e=_;_=[],e.length>0&&ce(e,!1)}function he(e){Z("connecting"),ae(()=>{!function(){if(!ee()){const e={id:te(),channel:"/meta/connect",connectionType:f.getType()};D||(e.advice={timeout:0}),Z("connecting"),s._debug("Connect sent",e),ce([e],!0,"connect"),Z("connected")}}()},e)}function fe(e){e&&(k=s._mixin(!1,{},F.advice,e),s._debug("New advice",k))}function pe(e){if(se(),e&&f&&f.abort(),d=!1,f=null,Z("disconnected"),m=null,v=0,le(),j=!1,D=!1,L=0,I=null,_.length>0){const e=_;_=[],M.call(s,void 0,e,{reason:"Disconnected"})}}function ge(e,t,n){const r=s.onTransportException;if(K(r)){s._debug("Invoking transport exception handler",e,t,n);try{r.call(s,n,e,t)}catch(e){s._info("Exception during execution of transport exception handler",e)}}}function me(e,t){K(e)&&(t=e,e=void 0),m=null,Y(),ee()&&h.reset(!0),fe({}),v=0,y=!0,S=e,A=t;const n=s.getURL(),r=h.findTransportTypes("1.0",d,n),i={id:te(),version:"1.0",minimumVersion:"1.0",channel:"/meta/handshake",supportedConnectionTypes:r,advice:{timeout:k.timeout,interval:k.interval}},o=s._mixin(!1,{},S,i);if(s._putCallback(o.id,t),!f&&(f=h.negotiateTransport(r,"1.0",d,n),!f)){const e="Could not find initial transport among: "+h.getTransportTypes();throw s._warn(e),e}s._debug("Initial transport is",f.getType()),Z("handshaking"),s._debug("Handshake sent",o),ce([o],!1,"handshake")}function ve(e,t){try{e.call(s,t)}catch(e){const n=s.onCallbackException;if(K(n)){s._debug("Invoking callback exception handler",e);try{n.call(s,e,t)}catch(e){s._info("Exception during execution of callback exception handler",e)}}else s._info("Exception during execution of message callback",e)}}function _e(e){const t=s._getCallback([e.id]);K(t)&&(delete P[e.id],ve(t,e))}function ye(e){const t=R[e.id];if(delete R[e.id],t){s._debug("Handling remote call response for",e,"with context",t);const n=t.timeout;n&&s.clearTimeout(n);const r=t.callback;if(K(r))return ve(r,e),!0}return!1}function be(e){s._debug("Transport failure handling",e),e.transport&&(f=e.transport),e.url&&f.setURL(e.url);const t=e.action,n=e.delay||0;switch(t){case"handshake":!function(e){Z("handshaking"),y=!0,ae(()=>{me(S,A)},e)}(n);break;case"retry":he(n);break;case"none":pe(!0);break;default:throw"Unknown action "+t}}function we(e,t){_e(e),oe("/meta/handshake",e),oe("/meta/unsuccessful",e),ee()&&(t.action="none"),s.onTransportFailure.call(s,e,t,be)}function Ee(e){we(e,{cause:"failure",action:"handshake",transport:null})}function xe(e){return"disconnected"===p||!(!I||I.id!==e.id)&&(I=null,!0)}function Te(e,t){oe("/meta/connect",e),oe("/meta/unsuccessful",e),ee()&&(t.action="none"),s.onTransportFailure.call(s,e,t,be)}function Ce(e){xe(e)?(D=!1,Te(e,{cause:"failure",action:"retry",transport:null})):s._debug("Mismatched /meta/connect failure",e)}function Se(e){pe(!0),_e(e),oe("/meta/disconnect",e),oe("/meta/unsuccessful",e)}function Ae(e){Se(e)}function ke(e){const t=w[e.subscription];if(t)for(let e in t)if(t.hasOwnProperty(e)){const n=t[e];n&&!n.listener&&(delete t[e],s._debug("Removed failed subscription",n))}_e(e),oe("/meta/subscribe",e),oe("/meta/unsuccessful",e)}function Pe(e){ke(e)}function Re(e){_e(e),oe("/meta/unsubscribe",e),oe("/meta/unsuccessful",e)}function Oe(e){Re(e)}function Me(e){ye(e)||(_e(e),oe("/meta/publish",e),oe("/meta/unsuccessful",e))}function je(e){Me(e)}function De(e){if(L=0,null==(e=function(e){for(let t=0;t",r.getType()),f=r),m=e.clientId,y=!1,de(),e.reestablish=j,j=!0,_e(e),oe("/meta/handshake",e),N=e["x-messages"]||0;const i=ee()?"none":k.reconnect||"retry";switch(i){case"retry":le(),0===N?he(0):s._debug("Processing",N,"handshake-delivered messages");break;case"none":pe(!0);break;default:throw"Unrecognized advice action "+i}}else we(e,{cause:"unsuccessful",action:k.reconnect||"handshake",transport:f})}(e);break;case"/meta/connect":!function(e){if(xe(e))if(D=e.successful,D){oe("/meta/connect",e);const t=ee()?"none":k.reconnect||"retry";switch(t){case"retry":le(),he(x);break;case"none":pe(!1);break;default:throw"Unrecognized advice action "+t}}else Te(e,{cause:"unsuccessful",action:k.reconnect||"retry",transport:f});else s._debug("Mismatched /meta/connect reply",e)}(e);break;case"/meta/disconnect":!function(e){e.successful?(pe(!1),_e(e),oe("/meta/disconnect",e)):Se(e)}(e);break;case"/meta/subscribe":!function(e){e.successful?(_e(e),oe("/meta/subscribe",e)):ke(e)}(e);break;case"/meta/unsubscribe":!function(e){e.successful?(_e(e),oe("/meta/unsubscribe",e)):Re(e)}(e);break;default:!function(e){void 0!==e.data?ye(e)||(oe(e.channel,e),N>0&&(--N,0===N&&(s._debug("Processed last handshake-delivered message"),he(0)))):void 0===e.successful?s._warn("Unknown Bayeux Message",e):e.successful?(_e(e),oe("/meta/publish",e)):Me(e)}(e)}}function Le(e){const t=w[e];if(t)for(let e in t)if(t.hasOwnProperty(e)&&t[e])return!0;return!1}function Ne(e,t){const n={scope:e,method:t};if(K(e))n.scope=void 0,n.method=e;else if(H(t)){if(!e)throw"Invalid scope "+e;if(n.method=e[t],!K(n.method))throw"Invalid callback "+t+" for scope "+e}else if(!K(t))throw"Invalid callback "+t;return n}function Ie(e,t,n,r){const i=Ne(t,n);s._debug("Adding",r?"listener":"subscription","on",e,"with scope",i.scope,"and callback",i.method);const o=++b,a={id:o,channel:e,scope:i.scope,callback:i.method,listener:r};let c=w[e];return c||(c={},w[e]=c),c[o]=a,s._debug("Added",r?"listener":"subscription",a),a}this._mixin=function(e,t,n){const r=t||{};for(let n=2;n!!(window.location&&window.location.host&&e)&&e!==window.location.host,this.send=ue,this._getCallback=e=>P[e],this._putCallback=function(e,t){const n=this._getCallback(e);return K(t)&&(P[e]=t),n},this.onTransportFailure=function(e,t,n){this._debug("Transport failure",t,"for",e);const r=this.getTransportRegistry(),i=this.getURL(),o=this._isCrossDomain(X(i)[2]),a=r.findTransportTypes("1.0",o,i);if("none"===t.action){if("/meta/handshake"===e.channel&&!t.transport){const t="Could not negotiate transport, client=["+a+"], server=["+e.supportedConnectionTypes+"]";this._warn(t),ge(f.getType(),null,{reason:t,connectionType:f.getType(),transport:f})}}else if(t.delay=this.getBackoffPeriod(),"/meta/handshake"===e.channel){if(!t.transport){const n=f?f.getType():null,s=r.negotiateTransport(a,"1.0",o,i);if(s){const r=s.getType();this._debug("Transport",n,"->",r),ge(n,r,e.failure),t.action="handshake",t.transport=s}else this._warn("Could not negotiate transport, client=["+a+"]"),ge(n,null,e.failure),t.action="none"}"none"!==t.action&&this.increaseBackoffPeriod()}else{const e=(new Date).getTime();if(0===L&&(L=e),"retry"===t.action){t.delay=this.increaseBackoffPeriod();const n=k.maxInterval;if(n>0){const r=k.timeout+k.interval+n;e-L+x>r&&(t.action="handshake")}}"handshake"===t.action&&(t.delay=0,r.reset(!1),this.resetBackoffPeriod())}n.call(s,t)},this.receive=De,O=e=>{s._debug("Received",e);for(let t=0;t{s._debug("handleFailure",e,t,n),n.transport=e;for(let e=0;e{h.clear()},this.getTransportTypes=()=>h.getTransportTypes(),this.findTransport=e=>h.find(e),this.getTransportRegistry=()=>h,this.configure=function(e){G.call(this,e)},this.init=function(e,t){this.configure(e),this.handshake(t)},this.handshake=(e,t)=>{if("disconnected"!==p)throw"Illegal state: handshaken";me(e,t)},this.disconnect=function(e,t){if(ee())return;K(e)&&(t=e,e=void 0);const n={id:te(),channel:"/meta/disconnect"},r=this._mixin(!1,{},e,n);s._putCallback(r.id,t),Z("disconnecting"),ce([r],!1,"disconnect")},this.startBatch=()=>{++v,s._debug("Starting batch, depth",v)},this.endBatch=()=>{!function(){if(--v,s._debug("Ending batch, depth",v),v<0)throw"Calls to startBatch() and endBatch() are not paired";0!==v||ee()||y||de()}()},this.batch=function(e,t){const n=Ne(e,t);this.startBatch();try{n.method.call(n.scope),this.endBatch()}catch(e){throw this._info("Exception during execution of batch",e),this.endBatch(),e}},this.addTransportListener=(e,t)=>{if("timeout"!==e)throw"Unsupported event "+e;let n=E[e];n||(E[e]=n=[]),n.push(t)},this.removeTransportListener=(e,t)=>{const n=E[e];if(n){const e=n.indexOf(t);if(e>=0)return n.splice(e,1),!0}return!1},this._getTransportListeners=e=>E[e],this.addListener=function(e,t,n){if(arguments.length<2)throw"Illegal arguments number: required 2, got "+arguments.length;if(!H(e))throw"Illegal argument type: channel must be a string";return Ie(e,t,n,!0)},this.removeListener=e=>{if(!e||!e.channel||!("id"in e))throw"Invalid argument: expected subscription, not "+e;J(e)},this.clearListeners=()=>{w={}},this.subscribe=function(e,t,n,r,i){if(arguments.length<2)throw"Illegal arguments number: required 2, got "+arguments.length;if(!W(e))throw"Illegal argument: invalid channel "+e;if(ee())throw"Illegal state: disconnected";K(t)&&(i=r,r=n,n=t,t=void 0),K(r)&&(i=r,r=void 0);const o=!Le(e),a=Ie(e,t,n,!1);if(o){const t={id:te(),channel:"/meta/subscribe",subscription:e},n=this._mixin(!1,{},r,t);s._putCallback(n.id,i),ue(n)}else K(i)&&s.setTimeout(()=>{ve(i,{id:te(),successful:!0,channel:"/meta/subscribe",subscription:e})},0);return a},this.unsubscribe=function(e,t,n){if(arguments.length<1)throw"Illegal arguments number: required 1, got "+arguments.length;if(ee())throw"Illegal state: disconnected";K(t)&&(n=t,t=void 0),this.removeListener(e);const r=e.channel;if(Le(r))K(n)&&s.setTimeout(()=>{ve(n,{id:te(),successful:!0,channel:"/meta/unsubscribe",subscription:r})},0);else{const e={id:te(),channel:"/meta/unsubscribe",subscription:r},i=this._mixin(!1,{},t,e);s._putCallback(i.id,n),ue(i)}},this.resubscribe=function(e,t){if(Q(e),e)return this.subscribe(e.channel,e.scope,e.callback,t)},this.clearSubscriptions=()=>{Y()},this.publish=function(e,t,n,r){if(arguments.length<1)throw"Illegal arguments number: required 1, got "+arguments.length;if(!W(e))throw"Illegal argument: invalid channel "+e;if(/^\/meta\//.test(e))throw"Illegal argument: cannot publish to meta channels";if(ee())throw"Illegal state: disconnected";K(t)?(r=t,t={},n=void 0):K(n)&&(r=n,n=void 0);const i={id:te(),channel:e,data:t},o=this._mixin(!1,{},n,i);s._putCallback(o.id,r),ue(o)},this.publishBinary=function(e,t,n,r,i,o){K(t)?(o=t,t=new ArrayBuffer(0),n=!0,r=void 0,i=void 0):K(n)?(o=n,n=!0,r=void 0,i=void 0):K(r)?(o=r,r=void 0,i=void 0):K(i)&&(o=i,i=void 0);const s={meta:r,data:t,last:n},a=this._mixin(!1,i,{ext:{binary:{}}});this.publish(e,s,a,o)},this.remoteCall=function(e,t,n,r,i){if(arguments.length<1)throw"Illegal arguments number: required 1, got "+arguments.length;if(!H(e))throw"Illegal argument type: target must be a string";if(ee())throw"Illegal state: disconnected";if(K(t)?(i=t,t={},n=F.maxNetworkDelay,r=void 0):K(n)?(i=n,n=F.maxNetworkDelay,r=void 0):K(r)&&(i=r,r=void 0),"number"!=typeof n)throw"Illegal argument type: timeout must be a number";e.match(/^\//)||(e="/"+e);const o="/service"+e;if(!W(o))throw"Illegal argument: invalid target "+e;const a={id:te(),channel:o,data:t},c=this._mixin(!1,{},r,a),u={callback:i};n>0&&(u.timeout=s.setTimeout(()=>{s._debug("Timing out remote call",c,"after",n,"ms"),Me({id:c.id,error:"406::timeout",successful:!1,failure:{message:c,reason:"Remote Call Timeout"}})},n),s._debug("Scheduled remote call timeout",c,"in",n,"ms")),R[c.id]=u,ue(c)},this.remoteCallBinary=function(e,t,n,r,i,o,s){K(t)?(s=t,t=new ArrayBuffer(0),n=!0,r=void 0,i=F.maxNetworkDelay,o=void 0):K(n)?(s=n,n=!0,r=void 0,i=F.maxNetworkDelay,o=void 0):K(r)?(s=r,r=void 0,i=F.maxNetworkDelay,o=void 0):K(i)?(s=i,i=F.maxNetworkDelay,o=void 0):K(o)&&(s=o,o=void 0);const a={meta:r,data:t,last:n},c=this._mixin(!1,o,{ext:{binary:{}}});this.remoteCall(e,a,i,c,s)},this.getStatus=()=>p,this.isDisconnected=ee,this.setBackoffIncrement=e=>{F.backoffIncrement=e},this.getBackoffIncrement=()=>F.backoffIncrement,this.getBackoffPeriod=()=>x,this.increaseBackoffPeriod=()=>(x{le()},this.setLogLevel=e=>{F.logLevel=e},this.registerExtension=function(e,t){if(arguments.length<2)throw"Illegal arguments number: required 2, got "+arguments.length;if(!H(e))throw"Illegal argument type: extension name must be a string";let n=!1;for(let t=0;t{for(let t=0;tl,this.getClientId=()=>m,this.getURL=()=>{if(f){let e=f.getURL();if(e)return e;if(e=F.urls[f.getType()],e)return e}return F.url},this.getTransport=()=>f,this.getConfiguration=function(){return this._mixin(!0,{},F)},this.getAdvice=function(){return this._mixin(!0,{},k)},this.setTimeout=(e,t)=>o.setTimeout(()=>{try{s._debug("Invoking timed function",e),e()}catch(t){s._debug("Exception invoking timed function",e,t)}},t),this.clearTimeout=e=>{o.clearTimeout(e)},window.WebSocket&&this.registerTransport("websocket",new u),this.registerTransport("long-polling",new a),this.registerTransport("callback-polling",new c)},Transport:o,RequestTransport:s,LongPollingTransport:a,CallbackPollingTransport:c,WebSocketTransport:u,Utils:r,Z85:h},e.default}),e,t),e.exports=i},function(e,t,n){var r,i;r=[],i=n.dj.d(r,(function(){"use strict";var e={default:{APP_SERVICE_HOST:{name:"APP_SERVICE_HOST",BASE_PREFIX:"/matlab",BASE_END_POINT:"messageservice/async/blue"},MATLAB_SERVICE_HOST:{name:"MATLAB_SERVICE_HOST",BASE_PREFIX:"/matlab",BASE_END_POINT:"messageservice/async"}}};return e.default}),e,t),e.exports=i},function(e,t,n){"use strict";var r,i;r=[n(104)],i=n.dj.d(r,(function(e){const t=function(){};return class extends e{createRenderRoot(){return window.ShadowRoot&&this._experimentalUseShadowDom?super.createRenderRoot():this}emit(e,t,n={}){let r=n.bubbles||!1,i=n.cancelable||!1,o=new CustomEvent(e,{detail:t||{},bubbles:r,cancelable:i});this.dispatchEvent(o)}on(e,n,r={}){this.addEventListener(e,n,r);let i=this.removeEventListener.bind(this,e,n,r);return{remove:function(){i(),i=t}}}}}),e,t),e.exports=i},function(e,t,n){"use strict";var r,i;r=[],i=n.dj.d(r,(function(){return function(e){if(!e.widgetClass)throw new Error("The widgetClass object must have a widget widgetClass property");if(!e.name)throw new Error("The widgetDefinition object must have a name property");if(e.name.length<3||"mw-"!==e.name.substring(0,3))throw new Error("The widgetDefinition object must have a nameproperty starting with 'mw-'");let t=e.widgetClass;if(t._observedAttributes){let e=t._observedAttributes.slice(0);Object.defineProperty(t,"observedAttributes",{enumerable:!1,get:function(){return e}})}return customElements.define(e.name,t),function e(n){if(this instanceof e)throw new Error("Do not use 'w = new Widget()' to create a widget instance. Just use 'w = Widget()'");let r=new t;for(let e in n)Object.prototype.hasOwnProperty.call(n,e)&&(r[e]=n[e]);return r}}}),e,t),e.exports=i},function(e,t,n){"use strict";var r,i;r=[n(23)],i=n.dj.d(r,(function(e){return e.html}),e,t),e.exports=i},function(e,t,n){e.exports=function(e,t,n,r){this.loaderVersion="1.17.1",function(e,t){var n=function(){return void 0!==h&&"function"!=typeof h?h:void 0!==r?this&&this.dojoConfig&&!r.dojoConfig?this:r:"undefined"!=typeof self?self:this}(),i=function(){},o={}.toString,s=function(e){return"[object Function]"==o.call(e)},a=function(e){return"[object String]"==o.call(e)},c=function(e,t){if(e)for(var n=0;n0&&(w=s(t[1])?e.replace(t[0],t[1]):t[1])})),w?F(w,0,n,r,i,o,a,l,d):(_=r[e])?d?I(_.pid,_.mid,_.pack,_.url):r[e]:(v=(m=L(e,a))?m[1]+e.substring(m[3]):f?("/"===p.location.slice(-1)?p.location.slice(0,-1):p.location)+"/"+g:e,/(^\/)|(\:)/.test(v)||(v=i+v),I(f,e,p,N(v+=".js")))},U=function(e,t,n){return F(e,t,S,P,d.baseUrl,k,C,x,void 0,n)},H=(d.toAbsMid=function(e,t){return U(e,t).mid},d.toUrl=function(e,t){var n=U(e+"/x",t),r=n.url;return H(0===n.pid?e:r.substring(0,r.length-5))},"function"==typeof e.fixupUrl?e.fixupUrl:function(e){return(e+="")+(R?(/\?/.test(e)?"&":"?")+R:"")});d.log=i,d.trace=i;var $=i;(u(u(d,t.loaderPatch),e.loaderPatch),E("error",(function(e){try{if(console.error(e),e instanceof Error){for(var t in e)console.log(t+":",e[t]);console.log(".")}}catch(e){}})),u(d,{uid:function(){return"_"+l++},cache:{},packs:S}),h.define)||(h.define=$,h.require=d)}.call(this,e,t)}},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},function(e,t,n){"use strict";var r,i;r=[n(41)],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},function(e,t,n){var r,i;r=[n(63),n(100),n(36),n(102),n(46)],i=n.dj.d(r,(function(e,t,n,r,i){"use strict";var o={};const s=e(new t(i,null,null,null,{instanceType:n.MATLAB_SERVICE_HOST.name})),a=new t(i,null,null,null,{instanceType:n.APP_SERVICE_HOST.name});let c;i.enableServerOnWorkerAsync=function(){},i.disableServerOnWorkerAsync=function(){};const u={};return u[n.APP_SERVICE_HOST.name]=()=>(c||(c=e(a),s.isStarted()&&c.start(),function(e,t){const n=t._startFunction||t.start,r=t.stop,i=e._startFunction||e.start,o=e.stop,s=function(){i.call(e,[]),n.call(t,[])},a=function(){r.call(t,[]),o.call(e,[])};t._startFunction?t._startFunction=s:t.start=s,e._startFunction?e._startFunction=s:e.start=s,t.stop=a,e.stop=a}(s,c)),c),u[n.MATLAB_SERVICE_HOST.name]=()=>s,s.create=function(e){return r(u,e)},o.default=s,o.default}),e,t),e.exports=i},function(e,t,n){var r,i;r=[n(6),n(8)],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},function(e,t,n){var r,i;r=[n(44)],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},function(e,t,n){"use strict";var r,i;r=[n(0),n(10),n(6),n(27),n(81),n(82),n(85),n(31),n(86),n(12),n(33),n(91),n(1),n(94),n(95)],i=n.dj.d(r,(function(e,t,n,r,i,o,s,a,c,u,l,d,h,f,p){var g;return(g={reset:function(){var m=[],v=new i,_=new s({faultManager:v}),y=new o({responseManager:_});g.faultManager=v,g.responseManager=_,g.requestManager=y,g._serviceRegistryLookup=p,g._uploadParameters={};var b=g.proxyClient=new r;g.createUploadIframeTarget=e.hitch(b,b.createUploadIframeTarget),g.cancelUpload=e.hitch(b,b.cancelUpload),u.setIframeProxyClientForEndPoint(u.getEndPointNames().ROUTER_LEAF_SECURE_ENDPOINT,b),u.setIframeProxyClientForEndPoint(u.getEndPointNames().ROUTER_LEAF_INSECURE_ENDPOINT,b),a.construct=function(e){return e=e||{},u.getRoutingHost(u.getEndPointNames().ROUTER_LEAF_INSECURE_ENDPOINT)||g.setEndpoint(),e.allowedMessages=m,e.sendMessage=g.sendMessage,e.computeSessionId=g.getComputeSessionId,new c(e)},g.registerEndpointLevelFaultHandler=e.hitch(v,v.registerEndpointLevelFaultHandler),g.sendMessage=e.hitch(y,y.sendMessage),g.sendPayload=l.sendPayload,g.registerDefaultMessageFactory=e.hitch(y,y.registerDefaultMessageFactory),g.deregisterDefaultMessageFactory=e.hitch(y,y.deregisterDefaultMessageFactory),g.registerResponseHandler=e.hitch(_,_.registerResponseHandler),g.deregisterResponseHandler=e.hitch(_,_.deregisterResponseHandler),g.registerFaultHandler=e.hitch(v,v.registerFaultHandler),g.deregisterFaultHandler=e.hitch(v,v.deregisterFaultHandler),g.registerTopLevelFaultHandler=e.hitch(v,v.registerTopLevelFaultHandler),g.deregisterTopLevelFaultHandler=e.hitch(v,v.deregisterTopLevelFaultHandler),g.setServiceEndPoint=function(e,t,n){u.setRoutingHostAndRoutingKey(e,t,n)},g.setServicePathSuffixForEndPoint=function(e,t){u.setPathSuffixForEndPoint(e,t)},g.ignoreTopLevelFault=g.registerTopLevelFaultHandler,g.setComputeToken=function(e){g._uploadParameters.computeToken=e.computeSessionId,y.computeToken=e},g.setWorkerEndpoint=function(e,t){g._uploadParameters.routingKey=t,u.setRoutingHostAndRoutingKey(u.getEndPointNames().WORKER_ENDPOINT,e,t)},g.setEndpoint=function(e){if(!e){var t=g._serviceRegistryLookup.getServiceRegistryEndpoint("primary");t?e=t:(h.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+"/"}u.setRoutingHostAndRoutingKey(u.getEndPointNames().ROUTER_LEAF_SECURE_ENDPOINT,e),u.setRoutingHostAndRoutingKey(u.getEndPointNames().ROUTER_LEAF_INSECURE_ENDPOINT,e),b.setRemotePageHost(e,void 0,void 0,void 0,{withCredentials:u.endPointsCollection[u.getEndPointNames().ROUTER_LEAF_SECURE_ENDPOINT].withCredentials})},g.setAllowedMessages=function(e){m=e},g.allowAllMessages=function(){m=[]},g.getEndPoint=function(){return u.getRoutingHost(u.getEndPointNames().ROUTER_LEAF_SECURE_ENDPOINT)},g.getComputeSessionId=function(){return y.computeToken?y.computeToken.computeSessionId:null},g.getWorkerRoutingHost=function(){var e=u.getRoutingHost(u.getEndPointNames().WORKER_ENDPOINT);if(e)return e;if(!(e=g._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},g.getWorkerRoutingKey=function(){return u.getRoutingKey(u.getEndPointNames().WORKER_ENDPOINT)},g.getDownloadUrlForFile=function(e){if(!e)throw new Error("Invalid input arguments provided!");var n=new t,r=new URL(g.getWorkerRoutingHost()+"download"+e);return l.sendPayload(JSON.stringify({messages:{CreateCsrfToken:[{}]}}),u.getEndPointNames().WORKER_ENDPOINT).then((function(e){e.messages.CreateCsrfTokenResponse.forEach((function(e){e.messageFaults&&e.messageFaults.length>0||(r.searchParams.set("csrfToken",e.csrfToken),n.resolve(r))}))})),n},g.upload=function(e,t){return(new d).upload(e,t,{endpoint:g.getWorkerRoutingHost(),uploadParams:g._uploadParameters})},g.createWorkerRoutingHostUrl=function(e){return f.createWorkerRoutingHostUrl(e,{host:g.getWorkerRoutingHost(),sessionId:g.getComputeSessionId(),routingKey:g.getWorkerRoutingKey()})},g.getServiceRegistryEndpoint=function(e){return g._serviceRegistryLookup.getServiceRegistryEndpoint(e)},g.enableServerOnWorkerAsync=function(){u.enableEndPoint(u.getEndPointNames().WORKER_ASYNC_ENDPOINT)},g.disableServerOnWorkerAsync=function(){u.disableEndPoint(u.getEndPointNames().WORKER_ASYNC_ENDPOINT)},g.isServerOnWorkerAsyncEnabled=function(){return u.isEndPointEnabled(u.getEndPointNames().WORKER_ASYNC_ENDPOINT)},g.enableServerOnWorker=function(){u.enableEndPoint(u.getEndPointNames().WORKER_ENDPOINT)},g.disableServerOnWorker=function(){u.disableEndPoint(u.getEndPointNames().WORKER_ENDPOINT)},g.isWorkerEndpointEnabled=function(){return u.isEndPointEnabled(u.getEndPointNames().WORKER_ENDPOINT)},g.setWorkerOnlyMessageTypes=function(e){u.setMessageTypesToEndPoint(u.getEndPointNames().WORKER_ENDPOINT,e)},n.after(b,"onError",(function(e){e&&v.handleNonTransactionFault(e)}),!0),g.createNewEndPoint=function(e,t,n,r,i){this.getEndPointByName(e)||u.setUpNewEndPoint(e,t,n,r,i)},g.getUrlForEndPoint=function(e){return u.getRemoteUrlForEndPoint(e)},g.getEndPointByName=function(e){return u.getEndPointNames()[e]}}}).reset(),g}),e,t),e.exports=i},function(e,t,n){var r,i;r=[n(3),n(8),n(45),n(6),n(72),n(74),n(48),n(0),n(75)],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=u;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 u,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},d=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")){u=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 u=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:u,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 u=o[a+1];s.push("string"==typeof u||"function"==typeof u?o[a++]:null,o[a++]);for(var l=o.length;a2&&!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 g.checkStatus(e.status)},e._getText=function(t){var n;return e.xhrGet({url:t,sync:!0,load:function(e){n=e}}),n},u.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:v,_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},function(e,t,n){var r,i;r=[n(30),n(29),n(90),n(20),n(4)],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-blob",(function(){return"undefined"!=typeof Blob})),i.add("native-arraybuffer",(function(){return"undefined"!=typeof ArrayBuffer})),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"))return!0}));var o,s,a,c,u={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)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 d(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,i){function o(e){n.handleResponse(r)}function s(t){var i=t.target,o=new e("Unable to load "+r.url+" status: "+i.status,r);n.handleResponse(r,o)}function a(e,t){r.transferType=e,t.lengthComputable?(r.loaded=t.loaded,r.total=t.total,n.progress(r)):3===r.xhr.readyState&&(r.loaded="loaded"in t?t.loaded:t.position,n.progress(r))}function c(e){return a("download",e)}function u(e){return a("upload",e)}return t.addEventListener("load",o,!1),t.addEventListener("error",s,!1),t.addEventListener("progress",c,!1),i&&t.upload&&t.upload.addEventListener("progress",u,!1),function(){t.removeEventListener("load",o,!1),t.removeEventListener("error",s,!1),t.removeEventListener("progress",c,!1),t.upload.removeEventListener("progress",u,!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,g){var m=i("native-formdata")&&p&&p.data&&p.data instanceof FormData,v=r.parseArgs(n,r.deepCreate(h,p),m);n=v.url;var _=!(p=v.options).data&&"POST"!==p.method&&"PUT"!==p.method;i("ie")<=10&&(n=n.split("#")[0]);var y,b=r.deferred(v,c,o,s,l,(function(){y&&y()})),w=v.xhr=f._create();if(!w)return b.cancel(new e("XHR was not created")),g?b:b.promise;v.getHeader=d,a&&(y=a(w,b,v,p.uploadProgress));var E=void 0===p.data?null:p.data,x=!p.sync,T=p.method;try{w.open(T,n,x,p.user||void 0,p.password||void 0),p.withCredentials&&(w.withCredentials=p.withCredentials),i("native-response-type")&&p.handleAs in u&&(w.responseType=u[p.handleAs]);var C=p.headers,S=!m&&!_&&"application/x-www-form-urlencoded";if(C)for(var A in C)"content-type"===A.toLowerCase()?S=C[A]:C[A]&&w.setRequestHeader(A,C[A]);S&&!1!==S&&w.setRequestHeader("Content-Type",S),C&&"X-Requested-With"in C||w.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.notify&&r.notify.emit("send",v,b.promise.cancel),w.send(E)}catch(e){b.reject(e)}return t(b),w=null,g?b:b.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},function(e,t,n){"use strict";var r,i;r=[n(21),n(92),n(49)],i=n.dj.d(r,(function(e,t,n){return{HYPERLINK_ESCAPE_REGEXP:/]*>[\s\S]*?<\/a>/g,HYPERLINK_WITH_PARENTHESIS_ESCAPE_REGEXP:/]*)>([\s\S]*?)<\/a>/g,STRONG_ESCAPE_REGEXP:/|<\/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,u=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=''+r+""};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"+r+""};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"),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...'}}),(e=e||"").replace(/\n/g,"
").replace(/ {2}/g,"  ")},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},function(e,t,n){var r,i;r=[],i=n.dj.d(r,(function(){"use strict";var e={default:{UNKNOWN:"unknown",LONG_POLLING:"long-polling",WEBSOCKET:"websocket"}};return e.default}),e,t),e.exports=i},function(e,t,n){var r,i;r=[n(37),n(38),n(109),n(39),n(110),n(111)],i=n.dj.d(r,(function(e,t,n,r,i,o){"use strict";const s=[o.star0,o.star1,o.star2,o.star3,o.star4,o.star5],a=o.rating,c=i` `;let u=0;function l(e){return e?"true":"false"}function d(e,t){if(!e.contains(t.relatedTarget))return!0}return t({name:"mw-rating",widgetClass:class extends e{static get properties(){return{value:{reflect:!0,type:Number},doesDisplayRating:{reflect:!0,type:Boolean},readOnly:{reflect:!0,type:Boolean},disabled:{reflect:!0,type:Boolean},minimumRating:{reflect:!0,type:Boolean},name:{reflect:!0,type:String},dataTestId:{reflect:!0,type:String,attribute:"data-test-id"}}}constructor(){super(),this._name=(u+=1,"mw_rating_"+u),this.value="",this._mouseHoveredOnRating=!1,this.readOnly=!1,this.disabled=!1,this.doesDisplayRating=!1,this.minimumRating=!1}get readonly(){return this.readOnly}set readonly(e){this.readOnly=e}get value(){return this._value}set value(e){let t=this._value;if(""===e||e<1)this._value="";else if(e>5)this._value=5;else{let t=parseInt(e);isNaN(t)&&(t=""),this._value=t}this.requestUpdate("value",t)}get _overrideRatingHover(){return this.__overrideRatingHover}set _overrideRatingHover(e){let t=this.__overrideRatingHover;this.__overrideRatingHover=e,this.requestUpdate("_overrideRatingHover",t)}get _noInput(){return this.readOnly||this.disabled}firstUpdated(){this._addSVGTemplate(),this.setAttribute("role","radiogroup")}updated(e){if(e.has("disabled")&&this.disabled){let e=document.activeElement;this.contains(e)&&e.blur()}e.has("value")&&(this._overrideRatingHover=!0,this.setAttribute("aria-valuenow",this.value)),e.has("disabled")&&this.setAttribute("aria-disabled",l(this.disabled)),e.has("readOnly")&&this.setAttribute("aria-readonly",l(this.readOnly)),this._wasCommit&&this._focusedValue!==this.value&&(this.emit("change",{oldValue:this._focusedValue,newValue:this.value},{bubbles:!0,cancelable:!1}),this._saveFocusedValue()),this._wasCommit=!1}_addSVGTemplate(){if(!document.getElementById("mw_rating_staricon")){let e=document.createElement("div");e.style.display="none",document.body.appendChild(e),n(c,e)}}_handleRadioButtonChange(e){let t=this.value;this.value=e.target.value,!this._noInput&&function(e){return"click"===e.type&&(0!==e.clientX||0!==e.clientY||0!==e.pageX||0!==e.pageY||0!==e.screenX||0!==e.screenY)}(e)?this._radioCommit():"change"!==e.type&&"input"!==e.type&&"input"!==e.type||this._eatInternalEvent(e),this.updateComplete.then(()=>{t!==this.value&&this.emit("input",{oldValue:t,newValue:this.value},{bubbles:!0,cancelable:!1})})}_saveFocusedValue(){this._focusedValue=this.value}_handleRadioContainerFocusIn(e){d(this,e)&&this._saveFocusedValue()}_handleRadioContainerFocusOut(e){d(this,e)&&this._radioCommit()}_radioCommit(){this._wasCommit=!0,this.requestUpdate()}_handleRatingHovered(e){this._overrideRatingHover=!1}_eatInternalEvent(e){e.stopPropagation()}_assignChildFocus(){let e=this.querySelector("input:checked");e&&e.focus()}_ratingButtonRenderer(e,t){let n=`${e.name}_${t}`,o=t,a=i``,c=this._noInput;0===t&&(a=r``,o="",this.minimumRating&&""!==this.value&&(c=!0));let u=o===this.value;u&&this.readOnly&&(c=!1);let l=this.disabled?"":"-1";return r``}_ratingValueRenderer(e){return e>0?r`(${e})`:null}focus(){this.disabled||this._assignChildFocus()}render(){let e=null,t="";this.doesDisplayRating&&(e=this._ratingValueRenderer(this.value)),(this._overrideRatingHover||this._noInput)&&(t="mwRatingHoverOverride"),this._name!==this.name&&this.name&&""!==this.name.trim()&&(this._name=this.name.trim());let n={name:this._name},i=[this._ratingButtonRenderer(n,0),this._ratingButtonRenderer(n,1),this._ratingButtonRenderer(n,2),this._ratingButtonRenderer(n,3),this._ratingButtonRenderer(n,4),this._ratingButtonRenderer(n,5)];return r`
${i}
${e}
`}}})}),e,t),e.exports=i},function(e,t,n){var r,i;r=[n(3),n.dj.c(e.i),n(4),n(9),n(14),n(0),n(50),n(22),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 u=e.i18n={},l=/(^.*(^|\/)nls)(\/|$)([^\/]*)\/?([^\/]*)/,d={},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 u=l.exec(t),h=u[1]+"/",f=u[5]||u[4],p=h+f,g=u[5]&&u[4],m=g||e.locale||"",v=p+"/"+m,_=g?[m]:function(e){var t=i.extraLocale||[];return(t=o.isArray(t)?t:[t]).push(e),t}(m),E=_.length,x=function(){--E||c(o.delegate(d[v]))},T=t.split("*"),C="preload"==T[1];if(n("dojo-preload-i18n-Api")){if(C&&(d[t]||(d[t]=1,y(T[2],a.parse(T[3]),1,s)),c(1)),C||b(t,s,c)&&!d[v])return}else if(C)return void c(1);r.forEach(_,(function(e){var t=p+"/"+e;n("dojo-preload-i18n-Api")&&w(t),d[t]?x():function(e,t,n,r,i,s){e([t],(function(a){var c=o.clone(a.root||a.ROOT),u=function(e,t,n,r){for(var i=[n+r],o=t.split("-"),s="",a=0;a=0){var p=n.replace(/\./g,"/")+"_"+f;return u(),function(e,t){m(e,a)||s?a([e],t):C([e],t,a)}(p,(function(n){for(var r in n){var i,s,p=n[r],g=r.match(/(.+)\/([^\/]+)$/);if(g&&(i=g[2],s=g[1]+"/",p._localized)){var m;if("ROOT"===f){var v=m=p._localized;delete p._localized,v.root=p,d[t.toAbsMid(r)]=v}else m=p._localized,d[h(s,i,f,t)]=p;if(f!==e){!function(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?(u(),a(f,(function(){for(var s=f.length-1;s>=0;s--)i=o.mixin(o.clone(i),arguments[s]),d[p[s]]=i;d[h(n,r,e,t)]=o.clone(i),l()}))):d[h(n,r,e,t)]=i}(s,i,p,m)}}}l()})),!0}return!1}))}a=a||t,f(),r.forEach(e.config.extraLocale,f)},b=function(e,t,n){return v&&_.push([e,t,n]),v},w=function(){};if(n("dojo-v1x-i18n-Api")){var E,x={},T={},C=function(e,t,n){var i=[];r.forEach(e,(function(e){var t=n.toUrl(e+".js");function r(n){E||(E=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;}"));var r=E(n,w,e,x);r===x?i.push(d[t]=x.result):(r instanceof Error&&(console.error("failed to evaluate i18n bundle; url="+t,r),r={}),i.push(d[t]=/nls\/[^\/]+\/[^\/]+$/.test(t)?r:{root:r,_v1x:1}))}if(d[t])i.push(d[t]);else{var o=n.syncLoadNls(e);if(o||(o=w(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(d[t]={})}});else try{n.getText(t,!0,r)}catch(e){i.push(d[t]={})}}})),t&&t.apply(null,i)};w=function(t){for(var n,r=t.split("/"),i=e.global[r[0]],o=1;i&&o=0&&(c=a.substring(a.indexOf(d)+d.length),c.indexOf("-G11N-")>=0&&(u=c,c=c.substring(0,c.indexOf("-G11N-")),l=u.substring(u.indexOf("-G11N-")+"-G11N-".length)),c=decodeURIComponent(c)),s.addEventListener("ratingstepchange",t=>{if(0===t.detail.step){const t=!0;e.start({applicationName:"DOC_FEEDBACK",applicationVersion:"1.0",sendDirect:t}),o=i.generateUuid()}e.logData({rating:t.detail.values.rating,comment:t.detail.values.comment,feedbackId:o,context:c,context2:l},{eventKey:"CUSTOMER_FEEDBACK"})})}),e,t),e.exports=i},function(e,t,n){var r,i;r=[n(58),n(62),n(103),n(1)],i=n.dj.d(r,(function(e,t,n,r){"use strict";var i={};let o,s,a,c,u;const l={},d=[],h=function(){return"undefined"!=typeof window},f={_isRunning:!1,allowProductScopeOverride:!1,start:function(r){this._isRunning||(this._isRunning=!0,h()&&(window.UsageLogger=this),s={product:(r=r||{}).product,scope:r.scope||r.appComponent},a={product:r.product,appComponent:r.appComponent||r.scope,eventKey:r.eventKey},c={product:r.product,appComponent:r.appComponent||r.scope,artifactType:r.artifactType,artifactId:r.artifactId},this.allowProductScopeOverride=r.allowProductScopeOverride,o=r.dontSend?new n:r.sendDirect?new e(r):new t(r))},stop:function(){this._isRunning&&(this._isRunning=!1,o.stop(),o=void 0)},isRunning:function(){return this._isRunning},setDefaults:function(e){s.product=e.product||s.product,s.scope=e.scope||e.appComponent||s.scope,a.product=e.product||a.product,a.appComponent=e.scope||e.appComponent||a.appComponent,a.eventKey=e.eventKey||a.eventKey,c.product=e.product||c.product,c.appComponent=e.scope||e.appComponent||c.appComponent,c.artifactType=e.artifactType||c.artifactType,c.artifactId=e.artifactId||c.artifactId},logData:function(e,t){if(!this._isRunning){const n=this._getRunningAncestor();if(n)return void n.logData(e,t);if(!h()||!window.UsageLogger)return void r.info("UsageLogger start must be called before logging data")}const n=this,i=function(){n._sendEvent("telemetry",n._composeTelemetryEvent(e,t))};d.length>0?i():setTimeout(i,0)},logUIEvent:function(e){if(!this._isRunning){const t=this._getRunningAncestor();if(t)return void t.logEvent(e);if(!h()||!window.UsageLogger)return void r.info("UsageLogger start must be called before logging data")}if(r.assert(e.eventType,"eventType must be defined"),e.elementType&&!e.elementId)return void r.warn("Can't log "+e.elementType+" "+e.eventType+" without elementId");e.product=e.product||s.product,e.scope=e.scope||s.scope;const t=this,n=function(){try{t._filterElementId(e),u&&"keypress"===e.eventType&&(e.selection=u),t._sendEvent("uiEvent",e)}catch(e){r.warn("Error while logging event: "+e.message)}t._uiEventInProgress=!1};"click"===e.eventType||d.length>0?n():(this._uiEventInProgress=!0,setTimeout(n,0))},logEvent:function(e){this.logUIEvent(e)},setSelectedContext:function(e){u=e},setPrefixesOfElementIdsToRedact:function(e,t,n){l[this._productAndScopeKey(t||s.product,n||s.scope)]=e},logComposition:function(e,t,n,i){if(!this._isRunning){const o=this._getRunningAncestor();if(o)return void o.logComposition(e,t,n,i);if(!h()||!window.UsageLogger)return void r.info("UsageLogger start must be called before logging data")}const o={product:(e=e||{}).product||c.product,appComponent:e.appComponent||c.appComponent,artifactType:e.artifactType||c.artifactType,artifactId:e.artifactId||c.artifactId,properties:t,componentCounts:n,componentProperties:i};r.assert(o.product,"product must be defined"),r.assert(o.appComponent,"appComponent must be defined"),r.assert(o.artifactType,"artifactType must be defined"),r.assert(o.artifactId,"artifactId must be defined");const s=this,a=function(){s._sendEvent("composition",o)};d.length>0?a():setTimeout(a,0)},addTap:function(e,t,n){const r={matchProperties:e,tapFunction:t,blockDefault:n};return d.push(r),{remove:function(){const e=d.indexOf(r);e>=0&&d.splice(e,1)}}},_composeTelemetryEvent:function(e,t){const n={product:(t=t||{}).product||a.product,appComponent:t.appComponent||a.appComponent,eventKey:t.eventKey||a.eventKey,data:e};return r.assert(n.eventKey,"eventKey must be defined"),n},_sendEvent:function(e,t){let n=!1;d.forEach((function(e){const r=Object.keys(e.matchProperties);let i=!0;for(let n=0;n0){const n=t.charAt(0);":"===n||"."===n?e.redactedHash=this.hashString(t):/\D/.test(t)||(e.redactedHash=t)}break}}},_productAndScopeKey:function(e,t){return e+":"+t},hashString:function(e){let t=0;for(let n=0;n=0&&(t=e.indexOf("dduxUrlOverride",t+1),t>0)){t=e.indexOf("=",t+1);let n=e.indexOf("&",t+1);return n<0&&(n=e.length),e.substring(t+1,n)}}static getPostUrlFromPropertiesAndHostname(e,t){if(e.endPointUrl)return e.endPointUrl;let n,r="https://udc-service",i=e.sendToDev;if(!1!==i){const o=t.indexOf("integ");o>=0?(i=!0,n=t.substring(o+5,o+6),"1"!==n&&"2"!==n&&"3"!==n&&(n=void 0)):i=!t.includes("mathworks."),i&&(n=e.endPointNumber||n||function(e){const t=[1,3,2];if(e&&6===e.length){return t[(2*(parseInt(e.substring(1,5))-2016)+("a"===e.charAt(5)?0:1))%3]}}(e.release)||1,r+="-integ"+n)}return r+=".mathworks.com/udc/service/v1/events",r}}return r.default=o,r.default}),e,t),e.exports=i},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},function(e,t,n){"use strict";var r,i;r=[n(42)],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(;s0&&(s.values={entry:e})}}var c;const u=JSON.stringify(s),l={sessionKey:o.sessionKey,eventKey:a,eventDate:(new Date).toISOString().slice(0,23),eventData:u};i.appComponent&&(l.applicationComponent=i.appComponent);const d={Event:[l]};fetch(o.postUrl,{method:"POST",headers:{"Content-Type":"application/json","x-mw-udc-client-version":"1.0","x-mw-udc-application-name":o.applicationName,"x-mw-udc-application-version":o.applicationVersion,"x-mw-authentication":o.applicationKey||r[o.applicationName]},body:JSON.stringify(d)}).then(t=>{t.ok||e.warn("DDUX post failed, code = "+t.status+" ("+t.statusText+")")}).catch(t=>{e.warn("DDUX post error "+t)})},t.default}),e,t),e.exports=i},function(e,t,n){var r,i;r=[n(43),n(24),n(32)],i=n.dj.d(r,(function(e,t,n){"use strict";var r={};return r.default=class extends t{constructor(t){super(),e.start(),this._channel="/UsageData/"+n.generateUuid(),this._responseChannel="/UsageResponse/"+n.generateUuid();const r={type:"start",product:t.product,scope:t.scope,channel:this._channel,responseChannel:this._responseChannel,url:"undefined"!=typeof window?window.location.href:"unknown URL",title:document.title};t.applicationName&&(r.applicationName=t.applicationName),t.applicationVersion&&(r.applicationVersion=t.applicationVersion),e.publish("/UsageSetup",r)}stop(){e.publish("/UsageSetup",{type:"stop",channel:this._channel,responseChannel:this._responseChannel})}sendEvent(t,n){n.messageType=t,e.publish(this._channel,n)}},r.default}),e,t),e.exports=i},function(e,t,n){var r,i;r=[n(0),n(6),n(8),n(64)],i=n.dj.d(r,(function(e,t,n,r){"use strict";var i={default:function(i){const o=new r,s={messageService:o,subscribe:e.hitch(o,"subscribe"),unsubscribe:e.hitch(o,"unsubscribe"),publish:e.hitch(o,"publish"),start:e.hitch(o,"start"),stop:e.hitch(o,"stop"),isRunning:e.hitch(o,"isStarted"),isStarted:e.hitch(o,"isStarted"),isConnected:e.hitch(o,"isConnected"),isFatallyDisconnected:e.hitch(o,"isFatallyDisconnected"),isDisconnected:e.hitch(o,"isDisconnected"),setLatency:e.hitch(o,"setLatency"),setErrorRate:e.hitch(o,"setErrorRate"),getTransport:e.hitch(o,"getTransport"),onConnected:function(){},onDisconnected:function(){},onReconnected:function(){},onFatallyDisconnected:function(){},onNotConnected:function(){},on:function(e,t){return n(this.messageService,e,t)},handleMessage:e.hitch(o,"handleMessage"),internalMotwDisableStart:function(){this._startFunction=this.start,this.start=function(){}},internalMotwEnableStart:function(){this._startFunction&&(this.start=this._startFunction,this._startFunction=null)}};return t.after(o,"onConnected",e.hitch(s,"onConnected"),!0),t.after(o,"onDisconnected",e.hitch(s,"onDisconnected"),!0),t.after(o,"onReconnected",e.hitch(s,"onReconnected"),!0),t.after(o,"onFatallyDisconnected",e.hitch(s,"onFatallyDisconnected"),!0),t.after(o,"onNotConnected",e.hitch(s,"onNotConnected"),!0),o.setDelegate(i),s}};return i.default}),e,t),e.exports=i},function(e,t,n){var r,i;r=[n(2),n(0),n(6),n(13),n(1),n(65),n(99),n(53)],i=n.dj.d(r,(function(e,t,n,r,i,o,s,a){"use strict";var c={};return c.default=e([o],{logSubscriptions:!1,constructor:function(){this.batching=!0,this.typeSerializers=[],this.typeDeserializers={},this.channelSubscriptions={},this._queuedOps=[],this._hasConnected=!1},setDelegate:function e(r){this.inherited("setDelegate",e,arguments),n.after(this._delegate,"onMessage",t.hitch(this,this.handleMessage),!0)},publish:function(e,t){if(!s(e))throw new Error("Illegal argument: invalid channel name "+e);if(this.isConnected()){const n=this._queuePublish(e,this.serialize(t));return this._deferProcessQueue(),n}return this._queuePublish(e,this.serialize(t))},subscribe:function(e,t,n){if(!s(e))throw new Error("Illegal argument: invalid channel name "+e);this.logSubscriptions&&i.info("MessageService subscribe: "+e,t,n);const r=this._queueSubscribe(e,t,n);return this._addHandler(this.channelSubscriptions,e,t,n),r.catch(()=>{r.isCanceled()||this._removeHandler(this.channelSubscriptions,e,t,n)}),this.isConnected()&&this._deferProcessQueue(),r},unsubscribe:function(e,t,n){if(!s(e))throw new Error("Illegal argument: invalid channel name "+e);this.logSubscriptions&&i.info("MessageService unsubscribe: "+e,t,n);if(this._removeHandler(this.channelSubscriptions,e,t,n)){if(this._removeQueuedMatchingSubscribe(e,t,n))return(new r).resolve();if(this.isConnected()){const 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():a.UNKNOWN},_enterDisconnected:function e(){this.inherited("_enterDisconnected",e,arguments),this._rejectQueue()},_enterConnecting:function e(){this.inherited("_enterConnecting",e,arguments),Object.keys(this.channelSubscriptions).forEach(e=>{this.channelSubscriptions[e].subscribed=!1})},_enterConnected:function e(){this._hasConnected=!0,this.inherited("_enterConnected",e,arguments),this._processQueue()},_enterDisconnecting:function e(){this._processQueue(),this.inherited("_enterDisconnecting",e,arguments)},_enterFatallyDisconnected:function e(){this.inherited("_enterFatallyDisconnected",e,arguments),this._rejectQueue()},_queuePublish:function(e,t){const n=new r;return this._queuedOps.push({type:"publish",channel:e,data:t,deferred:n}),n.promise},_queueSubscribe:function(e,t,n){const 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);const e=this._delegate&&this._delegate.delegateConnected();return this.isConnected()&&e&&r.deferred.resolve(),!0}},_queueUnsubscribe:function(e,t,n){const i=new r;return this._queuedOps.push({type:"unsubscribe",channel:e,handler:t,scope:n,deferred:i}),i.promise},_processQueue:function(){const e=this._delegate&&this._delegate.delegateConnected();if(!(this.isConnected()&&e)&&"disconnecting"!==this._currentState)return;this._delegate.doStartBatch();const 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()},_rejectQueue:function(){if(this._hasConnected){for(let e=0;e{this.channelSubscriptions[e].subscribed=!1}),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));const 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 Array.isArray(e)?this._serializeArray(e):null==e||"number"==typeof e||"boolean"==typeof e||t.isString(e)?e:this._serializeObject(e)},deserialize:function(e){return Array.isArray(e)?this._deserializeArray(e):"number"==typeof e||"boolean"==typeof e||t.isString(e)?e:this._deserializeObject(e)},_addHandler:function(e,t,n,r){if(r=r||this,"string"==typeof n&&"function"!=typeof r[n])return void i.warn("Not adding invalid handler: "+n);let o=e[t];o||(o=[],e[t]=o);const s={channel:t,handler:n,scope:r};o.push(s),o.sort((function(e){return e.exclusive?-1:0}))},_removeHandler:function(e,t,n,r){r=r||this;const i=e[t],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(Object.prototype.hasOwnProperty.call(e,t))for(r=e[t],o=0;o "+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._forceStop&&this._delegate.destructCometd(),this.onDisconnected()},_enterConnecting:function(){this._delegate.cleanup(),this._delegate.connect(this.channelSubscriptions).then(this._connectSuccess,this._connectFailure)},_reconnect:function(){},_connectSuccess:function(){},_connectFailure:function(){},_timeoutAction:function(){this.logStateChanges&&o.info("MessageService timeout:",arguments)},_enterConnected:function(){this._previouslyConnected&&o.info("Successfully connected."),this._previouslyConnected=!0,this.onConnected()},_enterFatallyDisconnected:function(){this.onFatallyDisconnected()},_enterDisconnecting:function(){this._delegate.disconnect().then(this._disconnectSuccess,this._disconnectFailure)},_disconnectSuccess:function(){},_disconnectFailure:function(){}}),s.default}),e,t),e.exports=i},function(e,t,n){var r,i;r=[n(2),n(67)],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},function(e,t,n){var r,i;r=[n(2),n(0),n(1),n(68),n(69),n(70),n(97),n(98)],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},function(e,t,n){var r,i;r=[n(2),n(0),n(6),n(1),n(18)],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},function(e,t,n){var r,i;r=[n(2),n(0),n(45),n(1),n(18)],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},function(e,t,n){var r,i;r=[n(2),n(0),n(1),n(46),n(18)],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},function(e,t,n){var r,i;r=[n(13),n(17)],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},function(e,t,n){var r,i;r=[n(3),n(8),n(4),n(73)],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},function(e,t,n){var r,i;r=[n(5),n(11),n(7),n(28)],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),u=o(e,i.paddingBottom);return{l:s,t:a,r:c,b:u,w:s+c,h:a+u}};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)}function u(e){var t,n={x:0,y:0,width:0,height:0,top:0,right:0,bottom:0,left:0};try{t=e.getBoundingClientRect()}catch(e){return n}return void 0===t.left?n:t}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,u=s.borderRightStyle!=o?i(e,s.borderRightWidth):0,l=s.borderBottomStyle!=o?i(e,s.borderBottomWidth):0;return{l:a,t:c,r:u,b:l,w:a+u,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),u=o(e,i.marginBottom);return{l:s,t:a,r:c,b:u,w:s+c,h:a+u}},i.getMarginBox=function(t,s){t=n.byId(t);var a,c=s||r.getComputedStyle(t),u=i.getMarginExtents(t,c),l=t.offsetLeft-u.l,d=t.offsetTop-u.t,h=t.parentNode,f=r.toPixelValue;if(e("mozilla")){var p=parseFloat(c.left),g=parseFloat(c.top);isNaN(p)||isNaN(g)?h&&h.style&&"visible"!=(a=r.getComputedStyle(h)).overflow&&(l+=a.borderLeftStyle!=o?f(t,a.borderLeftWidth):0,d+=a.borderTopStyle!=o?f(t,a.borderTopWidth):0):(l=p,d=g)}else(e("opera")||8==e("ie")&&!e("quirks"))&&h&&(l-=(a=r.getComputedStyle(h)).borderLeftStyle!=o?f(t,a.borderLeftWidth):0,d-=a.borderTopStyle!=o?f(t,a.borderTopWidth):0);return{l:l,t:d,w:t.offsetWidth+u.w,h:t.offsetHeight+u.h}},i.getContentBox=function(t,o){t=n.byId(t);var s,a=o||r.getComputedStyle(t),c=t.clientWidth,u=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")&&(u.l+=l.l,u.t+=l.t),{l:u.l,t:u.t,w:c-u.w-l.w,h:s-u.h-l.h}},i.setContentSize=function(e,t,r){e=n.byId(e);var o=t.w,a=t.h;if(c(e)){var u=i.getPadBorderExtents(e,r);o>=0&&(o+=u.w),a>=0&&(a+=u.h)}s(e,NaN,NaN,o,a)};var l={l:0,t:0,w:0,h:0};return i.setMarginBox=function(t,o,u){t=n.byId(t);var d=u||r.getComputedStyle(t),h=o.w,f=o.h,p=c(t)?l:i.getPadBorderExtents(t,d),g=i.getMarginExtents(t,d);if(e("webkit")&&a(t)){var m=t.style;h>=0&&!m.width&&(m.width="4px"),f>=0&&!m.height&&(m.height="4px")}h>=0&&(h=Math.max(h-p.w-g.w,0)),f>=0&&(f=Math.max(f-p.h-g.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){var r=(n=n||t.doc).parentWindow||n.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=u(r);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=u(e);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},function(e,t,n){var r,i;r=[n(3),n(8),n(4),n(7),n(11)],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},function(e,t,n){var r,i;r=[n(3),n(5)],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},function(e,t,n){var r,i;r=[t,n(5),n(0),n(7),n(28),n(77)],i=n.dj.d(r,(function(e,t,n,r,i,o){var s={innerHTML:1,textContent:1,className:1,htmlFor:t("ie")?1:0,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(),u=o.names[i]||t,l=s[u],d=e[u];if(l&&void 0!==d)return d;if("textContent"==u)return o.get(e,u);if("href"!=u&&("boolean"==typeof d||n.isFunction(d)))return d;var h=a[i]||t;return c(e,h)?e.getAttribute(h):null},e.set=function(t,c,u){if(t=r.byId(t),2==arguments.length){for(var l in c)e.set(t,l,c[l]);return t}var d=c.toLowerCase(),h=o.names[d]||c,f=s[h];return"style"==h&&"string"!=typeof u?(i.set(t,u),t):f||"boolean"==typeof u||n.isFunction(u)?o.set(t,c,u):(t.setAttribute(a[d]||c,u),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},function(e,t,n){var r,i;r=[t,n(3),n(5),n(0),n(7),n(28),n(19),n(47)],i=n.dj.d(r,(function(e,t,n,r,i,o,s,a){var c={},u=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,d,h){t=i.byId(t);var f=arguments.length;if(2==f&&"string"!=typeof d){for(var p in d)e.set(t,p,d[p]);return t}var g=d.toLowerCase(),m=e.names[g]||d;if("style"==m&&"string"!=typeof h)return o.set(t,h),t;if("innerHTML"==m)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[m]=h,t;if("textContent"==m&&!n("dom-textContent"))return s.empty(t),t.appendChild(t.ownerDocument.createTextNode(h)),t;if(r.isFunction(h)){var v=t[l];v||(v=u++,t[l]=v),c[v]||(c[v]={});var _=c[v][m];if(_)a.disconnect(_);else try{delete t[m]}catch(e){}return h?c[v][m]=a.connect(t,m,h):t[m]=null,t}return t[m]=h,t}}),e,t),e.exports=i},function(e,t,n){"use strict";var r,i;r=[n(7),n(8),n(79),n(1)],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},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__(29),__webpack_require__(20),__webpack_require__(3),__webpack_require__(9),__webpack_require__(0),__webpack_require__(8),__webpack_require__(7),__webpack_require__(19),__webpack_require__(4),__webpack_require__(11)],__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,r){var i=n||win.doc,o=i.createElement("script");r&&on.once(o,"error",r),o.type="text/javascript";try{o.src=t}catch(e){r&&r(o)}return o.id=e,o.async=!0,o.charset="utf-8",i.getElementsByTagName("head")[0].appendChild(o)}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,(function(e){if(!(e instanceof Error)){var n=new Error("Error loading "+(e.target?e.target.src:"script"));n.source=e,e=n}i.reject(e),script._remove(i.id,t.frameDoc,!0)}));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 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__},function(e,t,n){var r,i;r=[n(26),n(30)],i=n.dj.d(r,(function(e,t){return e("RequestTimeoutError",null,t,{dojoType:"timeout"})}),e,t),e.exports=i},function(e,t,n){"use strict";var r,i;r=[n(9),n(2),n(0)],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},function(e,t,n){"use strict";var r,i;r=[n(9),n(2),n(10),n(0),n(12),n(84),n(31)],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-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},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},function(e,t,n){"use strict";var r,i;r=[n(2),n(0),n(1),n(12)],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},function(e,t,n){"use strict";var r,i;r=[n(2),n(87),n(33)],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},function(e,t,n){"use strict";var r,i;r=[n(2),n(50),n(0),n(12),n(31)],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},function(e,t,n){var r,i;r=[n(0),n(7),n(21),n(22)],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;s0||(a={csrfToken:e.csrfToken,validForMs:e.validForMs})}));var i=r.uploadParams,o=i.computeToken,c=i.routingKey;s._initiateUpload(e,{uploadDestinationUrl:s._workerEndpoint+"upload",computeToken:o,routingkey:c,fileDestination:encodeURIComponent(n),csrfToken:encodeURIComponent(a.csrfToken)})})),this._uploadHandler}},_initiateUpload: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(){this._ReplaceUploadIframe=null},getHostName:function(e){return r.parseUrl(e).hostname},postMessageToUploadIframe:function(e){this._ReplaceUploadIframe&&this._ReplaceUploadIframe.handleMessage({data:e})}})}),e,t),e.exports=i},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;i1&&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},function(e,t,n){"use strict";var r,i;function o(e,t){for(var n=0;n=0?"&":"?")+"mre="+encodeURIComponent(o),u&&c&&(i+="&routingkey="+u+"&computeToken="+encodeURIComponent(c)),i):i}catch(t){e.error("Input URL is malformed")}return i},isAbsoluteUrl:function(e){return!!t.test(e)}}}),e,t),e.exports=i},function(e,t,n){var r,i;r=[n(96),n(34),n(15)],i=n.dj.d(r,(function(e,t){return t(e,"",n.dj.c(),!0)}),e,t),e.exports=i},function(e,t,n){"use strict";var r,i;r=[n(51),n(52)],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="A"&&e<="Z"||e>="a"&&e<="z"}function r(e){return e>="0"&&e<="9"}function i(e){switch(e){case" ":case"!":case"#":case"$":case"(":case")":case"*":case"+":case"-":case".":case"/":case"@":case"_":case"{":case"~":case"}":case":":case"\\":case",":return!0;default:return!1}}function o(t){if(!function(t){return e.Utils.isString(t)}(t))return!1;if(t.length<2)return!1;if("/"!==t.charAt(0))return!1;for(let e=1;e{this._deferredCleanup=!1,this.recentMessages=[]},this.routingHost=v.workerHostOverride||this.remote.getWorkerRoutingHost(),this.routingKey=this.remote.getWorkerRoutingKey(),this.computeToken=this.remote.getComputeSessionId();const h=this.remote.getEndPointByName("WORKER_ASYNC_ENDPOINT");this.withCredentials=!!h&&h.withCredentials;const f=this._setUpEndPoint();this.computeToken&&(f.computeToken=this.computeToken),this.cometdProperties.url=f.url,this.cometdProperties.requestHeaders={computeToken:f.computeToken},this.cometd=null,this._connectedAtLeastOnce=!1,this.logCometdLifecycle&&a.info("MessageServiceAsync will construct new cometd instance when connecting.")},onMessage:function(e){},onConnectionError:function(){},onConnectionFails:function(){},onConnectionSuccess:function(){},connect:function(e){this.routingHost=v.workerHostOverride||this.remote.getWorkerRoutingHost(),this.routingKey=this.remote.getWorkerRoutingKey(),this.computeToken=this.remote.getComputeSessionId();const t=this.remote.getEndPointByName("WORKER_ASYNC_ENDPOINT");this.withCredentials=!!t&&t.withCredentials;const r=this._setUpEndPoint();this.computeToken&&(r.computeToken=this.computeToken),this.cometdProperties.url=r.url,this.cometdProperties.requestHeaders={computeToken:r.computeToken},this.cometd||(this.cometd=this.constructCometD("messageService",this.workerProxyAsyncClient,{websocket:v.enableWebsocket},r,this.remote),this.registerTransports({websocket:v.enableWebsocket}),this.logCometdLifecycle&&a.info("MessageServiceAsync constructing new cometd instance."));const i=new n;let o=0;return this.cleanupListeners(),this._handshakeHandle=this.cometd.addListener("/meta/handshake",t=>{if(!0===t.successful){let t,n;o=0;const r=[];for(t in this.doStartBatch(),e)Object.prototype.hasOwnProperty.call(e,t)&&(n=e[t],r.push(this.doSubscribe(t)),n.subscribed=!0);this.doEndBatch(),Promise.all(r).then(e=>{this._connectedAtLeastOnce=!0,i.isFulfilled()?this.cometd&&this.onConnectionSuccess():i.resolve(e)},()=>{let t,n;const r=[];for(t in this.doStartBatch(),e)Object.prototype.hasOwnProperty.call(e,t)&&(n=e[t],r.push(this.doSubscribe(t)),n.subscribed=!0);this.doEndBatch(),Promise.all(r).then(e=>{this._connectedAtLeastOnce=!0,i.isFulfilled()?this.cometd&&this.onConnectionSuccess():i.resolve(e)},e=>{i.reject(e)})})}}),this._connectHandle=this.cometd.addListener("/meta/connect",e=>{!0===e.successful&&(o>0&&this.cometd&&this.onConnectionSuccess(),o=0)}),this._unsuccessHandle=this.cometd.addListener("/meta/unsuccessful",e=>{if(("/meta/handshake"===e.channel||"/meta/connect"===e.channel||e.advice&&"handshake"===e.advice.reconnect)&&o<30)o+=1,1===o&&this.onConnectionError();else if("/meta/disconnect"===e.channel)i&&!i.isFulfilled()&&i.reject(e);else if(o>=30){const t=this.doDisconnect();this._connectedAtLeastOnce||t.catch(()=>{a.info("MessageService never got connected to the server, and the attempt to disconnect also fails. Suppressing console error with this info log")}),i&&!i.isFulfilled()?i.reject(e):this.onConnectionFails()}}),this.cometd.init(this.cometdProperties),i.promise},registerTransports:function(e){const t=new r.LongPollingTransport;t.accept=()=>!0;const n=new r.WebSocketTransport;this.cometd.unregisterTransports(),e[o.WEBSOCKET]&&this.cometd.registerTransport(o.WEBSOCKET,n,0),this.cometd.registerTransport(o.LONG_POLLING,t,1)},disconnect:function(){this.logCometdLifecycle&&a.info("MessageServiceAsync disconnecting cometd due to disconnect call.",this.cometd.getClientId());const e=this._createOneShotMessagePromise("/meta/disconnect");return this.cometd.disconnect(),e},destructCometd:function(){this.cometd&&(this.cleanupListeners(),this.cometd=null,this.logCometdLifecycle&&a.info("MessageServiceAsync destroying cometd instance."))},cleanup:function(){this.cometd&&(this.logCometdLifecycle&&a.info("MessageServiceAsync disconnecting cometd due to cleanup call.",this.cometd,this.cometd&&this.cometd.getClientId()),this.cometd.disconnect())},cleanupListeners:function(){this._handshakeHandle&&this.cometd.removeListener(this._handshakeHandle),this._connectHandle&&this.cometd.removeListener(this._connectHandle),this._unsuccessHandle&&this.cometd.removeListener(this._unsuccessHandle)},delegateConnected:function(){return!!this.cometd&&(!this.cometd.isDisconnected()&&"handshaking"!==this.cometd.getStatus())},doPublish:function(e,t){const r=new n;return this.cometd.publish(this._getRequestChannel(e),t,{},(function(e){m(e,r)})),r.promise},doSubscribe:function(e){this.logCometdSubscriptions&&a.info("MessageServiceAsync subscribing cometd to channel: "+e);const t=this._createOneShotMessagePromise("/meta/subscribe");return this.subscriptions[e]=this.cometd.subscribe(this._getRequestChannel(e),this,this._handleCometResponse),t},doDisconnect:function(){this.logCometdSubscriptions&&a.info("MessageServiceAsync sending disconnect to cometd");const e=this._createOneShotMessagePromise("/meta/disconnect");return this.cometd.disconnect(!0),e},doUnsubscribe:function(e){if(this.subscriptions[e]){this.logCometdSubscriptions&&a.info("MessageServiceAsync unsubscribing cometd from channel: "+e);const t=this._createOneShotMessagePromise("/meta/unsubscribe");return this.cometd.unsubscribe(this.subscriptions[e]),delete this.subscriptions[e],t}return(new n).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():o.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){const t=new n;return this._addOneShotListener(e,(function(e){m(e,t)})),t.promise},_addOneShotListener:function(e,t){const n=this,r=this.cometd,i=this.cometd.addListener(e,(function(e){r.removeListener(i),t.apply(n,arguments)}))},_setUpEndPoint:function(){let e,t=!1;const n="MESSAGE_SERVICE_ASYNC_ENDPOINT";let r;return e=this.routingHost||"/","/"!==e.slice(-1)&&(e+="/"),e+=this.BASE_END_POINT,this.routingKey&&(e+="?routingkey="+this.routingKey),{remoteSupportsSendPayload:t,url:e,endPointName:n,endPointAllowsDirectXhr:r}},_getRequestChannel:function(e){return this.BASE_PREFIX+e},_stripBasePrefixAndConvertToJson:function(e){return{channel:e.channel.substring(this.BASE_PREFIX.length),data:e.data}}});return v.enableWebsocket=!1,v.workerHostOverride=!1,window.location.search.indexOf("websocket=on")>=0&&(v.enableWebsocket=!0),u.default=v,u.default}),e,t),e.exports=i},function(e,t,n){var r,i;r=[n(35)],i=n.dj.d(r,(function(e){"use strict";var t={};return t.default=e.AckExtension=function(){let e,t,n=!1;function r(t,n){e._debug(t,n)}this.registered=(t,n)=>{e=n,r("AckExtension: executing registration callback")},this.unregistered=()=>{r("AckExtension: executing unregistration callback"),e=null},this.incoming=e=>{const i=e.channel,o=e.ext;if("/meta/handshake"===i){if(o){const e=o.ack;if("object"==typeof e){n=!0===e.enabled;const r=e.batch;"number"==typeof r&&(t=r)}else n=!0===e}r("AckExtension: server supports acknowledgements",n)}else"/meta/connect"===i&&e.successful&&n&&o&&"number"==typeof o.ack&&(t=o.ack,r("AckExtension: server sent batch",t));return e},this.outgoing=i=>{const o=i.channel;return i.ext||(i.ext={}),"/meta/handshake"===o?(i.ext.ack=e&&!1!==e.ackEnabled,n=!1,t=0):"/meta/connect"===o&&n&&(i.ext.ack=t,r("AckExtension: client sending batch",t)),i}},t.default}),e,t),e.exports=i},function(e,t,n){var r,i;r=[n(36)],i=n.dj.d(r,(function(e){"use strict";var t={};const n=/AppServiceHost/i,r=(t,r)=>(e=>null!==e.serviceName.match(n))(r)?t[e.APP_SERVICE_HOST.name]():t[e.MATLAB_SERVICE_HOST.name]();return t.default=function(e,t){if(!t.serviceName)throw new Error("Must provide a serviceName");if(!t.serviceName.length||t.serviceName.length<5)throw new Error("serviceName must be longer than 4 characters");const n=r(e,t),i={};return["subscribe","unsubscribe","publish","isStarted","isConnected","isFatallyDisconnected","isDisconnected","setLatency","setErrorRate","getTransport","on","onConnected","onDisconnected"].forEach(e=>{i[e]=n[e].bind(n)}),i.messageService=n.messageService,i},t.default}),e,t),e.exports=i},function(e,t,n){var r,i;r=[n(1),n(24)],i=n.dj.d(r,(function(e,t){"use strict";var n={};return n.default=class extends t{constructor(e){super()}stop(){}sendEvent(t,n){e.info("StubSender dropping event")}},n.default}),e,t),e.exports=i},function(e,t,n){"use strict";var r,i;r=[n(23)],i=n.dj.d(r,(function(e){class t extends e.LitElement{}return t}),e,t),e.exports=i},function(e,t,n){var r,i;r=[t,n(106),n(107)],i=n.dj.d(r,(function(e,t,n){"use strict";var r;const i=window.reactiveElementPolyfillSupport,o={toAttribute(e,t){switch(t){case Boolean:e=e?"":null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch(e){n=null}}return n}},s=(e,t)=>t!==e&&(t==t||e==e),a={attribute:!0,type:String,converter:o,reflect:!1,hasChanged:s};class c extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(e){var t;null!==(t=this.l)&&void 0!==t||(this.l=[]),this.l.push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((t,n)=>{const r=this._$Eh(n,t);void 0!==r&&(this._$Eu.set(r,n),e.push(r))}),e}static createProperty(e,t=a){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const n="symbol"==typeof e?Symbol():"__"+e,r=this.getPropertyDescriptor(e,n,t);void 0!==r&&Object.defineProperty(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(r){const i=this[e];this[t]=r,this.requestUpdate(e,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||a}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),this.elementProperties=new Map(e.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const n of t)this.createProperty(n,e[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const n=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const e of r)n.unshift(t.getCompatibleStyle(e))}else void 0!==e&&n.push(t.getCompatibleStyle(e));return n}static _$Eh(e,t){const n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}o(){var e;this._$Ev=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Ep(),this.requestUpdate(),null===(e=this.constructor.l)||void 0===e||e.forEach(e=>e(this))}addController(e){var t,n;(null!==(t=this._$Em)&&void 0!==t?t:this._$Em=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(n=e.hostConnected)||void 0===n||n.call(e))}removeController(e){var t;null===(t=this._$Em)||void 0===t||t.splice(this._$Em.indexOf(e)>>>0,1)}_$Ep(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Et.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;const n=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return t.adoptStyles(n,this.constructor.elementStyles),n}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$Em)||void 0===e||e.forEach(e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)})}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$Em)||void 0===e||e.forEach(e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)})}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$Eg(e,t,n=a){var r,i;const s=this.constructor._$Eh(e,n);if(void 0!==s&&!0===n.reflect){const a=(null!==(i=null===(r=n.converter)||void 0===r?void 0:r.toAttribute)&&void 0!==i?i:o.toAttribute)(t,n.type);this._$Ei=e,null==a?this.removeAttribute(s):this.setAttribute(s,a),this._$Ei=null}}_$AK(e,t){var n,r,i;const s=this.constructor,a=s._$Eu.get(e);if(void 0!==a&&this._$Ei!==a){const e=s.getPropertyOptions(a),c=e.converter,u=null!==(i=null!==(r=null===(n=c)||void 0===n?void 0:n.fromAttribute)&&void 0!==r?r:"function"==typeof c?c:null)&&void 0!==i?i:o.fromAttribute;this._$Ei=a,this[a]=u(t,e.type),this._$Ei=null}}requestUpdate(e,t,n){let r=!0;void 0!==e&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||s)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$Ei!==e&&(void 0===this._$ES&&(this._$ES=new Map),this._$ES.set(e,n))):r=!1),!this.isUpdatePending&&r&&(this._$Ev=this._$ET())}_$ET(){return e=this,void 0,n=function*(){this.isUpdatePending=!0;try{yield this._$Ev}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&(yield e),!this.isUpdatePending},new((t=void 0)||(t=Promise))((function(r,i){function o(e){try{a(n.next(e))}catch(e){i(e)}}function s(e){try{a(n.throw(e))}catch(e){i(e)}}function a(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(o,s)}a((n=n.apply(e,[])).next())}));var e,t,n}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach((e,t)=>this[t]=e),this._$Et=void 0);let t=!1;const n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),null===(e=this._$Em)||void 0===e||e.forEach(e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)}),this.update(n)):this._$EC()}catch(e){throw t=!1,this._$EC(),e}t&&this._$AE(n)}willUpdate(e){}_$AE(e){var t;null===(t=this._$Em)||void 0===t||t.forEach(e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EC(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ev}shouldUpdate(e){return!0}update(e){void 0!==this._$ES&&(this._$ES.forEach((e,t)=>this._$Eg(t,this[t],e)),this._$ES=void 0),this._$EC()}updated(e){}firstUpdated(e){}}c.finalized=!0,c.elementProperties=new Map,c.elementStyles=[],c.shadowRootOptions={mode:"open"},null==i||i({ReactiveElement:c}),(null!==(r=globalThis.reactiveElementVersions)&&void 0!==r?r:globalThis.reactiveElementVersions=[]).push("1.0.1"),e.CSSResult=t.CSSResult,e.adoptStyles=t.adoptStyles,e.css=t.css,e.getCompatibleStyle=t.getCompatibleStyle,e.supportsAdoptingStyleSheets=t.supportsAdoptingStyleSheets,e.unsafeCSS=t.unsafeCSS,e.ReactiveElement=c,e.defaultConverter=o,e.notEqual=s,Object.defineProperty(e,"t",{value:!0})}),e,t),e.exports=i},function(e,t,n){var r,i;r=[t],i=n.dj.d(r,(function(e){"use strict";const t=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,n=Symbol(),r=new Map;class i{constructor(e,t){if(this._$cssResult$=!0,t!==n)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}get styleSheet(){let e=r.get(this.cssText);return t&&void 0===e&&(r.set(this.cssText,e=new CSSStyleSheet),e.replaceSync(this.cssText)),e}toString(){return this.cssText}}const o=e=>new i("string"==typeof e?e:e+"",n),s=t?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return o(t)})(e):e;e.CSSResult=i,e.adoptStyles=(e,n)=>{t?e.adoptedStyleSheets=n.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):n.forEach(t=>{const n=document.createElement("style"),r=window.litNonce;void 0!==r&&n.setAttribute("nonce",r),n.textContent=t.cssText,e.appendChild(n)})},e.css=(e,...t)=>{const r=1===e.length?e[0]:t.reduce((t,n,r)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+e[r+1],e[0]);return new i(r,n)},e.getCompatibleStyle=s,e.supportsAdoptingStyleSheets=t,e.unsafeCSS=o,Object.defineProperty(e,"t",{value:!0})}),e,t),e.exports=i},function(e,t,n){var r;void 0===(r=function(){"use strict";return function(){if(void 0===window.Reflect||void 0===window.customElements||window.customElements.polyfillWrapFlushCallback)return;const e=HTMLElement;window.HTMLElement=function(){return Reflect.construct(e,[],this.constructor)},HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}(),{}}.call(null,n,t,e))||(e.exports=r)},function(e,t,n){var r,i;r=[t],i=n.dj.d(r,(function(e){"use strict";var t;const n=globalThis.trustedTypes,r=n?n.createPolicy("lit-html",{createHTML:e=>e}):void 0,i="$lit$",o=`lit$${(Math.random()+"").slice(9)}$`,s="?"+o,a=`<${s}>`,c=document,u=(e="")=>c.createComment(e),l=e=>null===e||"object"!=typeof e&&"function"!=typeof e,d=Array.isArray,h=e=>{var t;return d(e)||"function"==typeof(null===(t=e)||void 0===t?void 0:t[Symbol.iterator])},f=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,p=/-->/g,g=/>/g,m=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,v=/'/g,_=/"/g,y=/^(?:script|style|textarea)$/i,b=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),w=b(1),E=b(2),x=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),C=new WeakMap,S=c.createTreeWalker(c,129,null,!1),A=(e,t)=>{const n=e.length-1,s=[];let c,u=2===t?"":"",l=f;for(let t=0;t"===d[0]?(l=null!=c?c:f,h=-1):void 0===d[1]?h=-2:(h=l.lastIndex-d[2].length,r=d[1],l=void 0===d[3]?m:'"'===d[3]?_:v):l===_||l===v?l=m:l===p||l===g?l=f:(l=m,c=void 0);const w=l===m&&e[t+1].startsWith("/>")?" ":"";u+=l===f?n+a:h>=0?(s.push(r),n.slice(0,h)+i+n.slice(h)+o+w):n+o+(-2===h?(s.push(void 0),t):w)}const d=u+(e[n]||"")+(2===t?"":"");return[void 0!==r?r.createHTML(d):d,s]};class k{constructor({strings:e,_$litType$:t},r){let a;this.parts=[];let c=0,l=0;const d=e.length-1,h=this.parts,[f,p]=A(e,t);if(this.el=k.createElement(f,r),S.currentNode=this.el.content,2===t){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(a=S.nextNode())&&h.length0){a.textContent=n?n.emptyScript:"";for(let n=0;n2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=T}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,n,r){const i=this.strings;let o=!1;if(void 0===i)e=P(this,e,t,0),o=!l(e)||e!==this._$AH&&e!==x,o&&(this._$AH=e);else{const r=e;let s,a;for(e=i[0],s=0;s{var r,i;const o=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:t;let s=o._$litPart$;if(void 0===s){const e=null!==(i=null==n?void 0:n.renderBefore)&&void 0!==i?i:null;o._$litPart$=s=new O(t.insertBefore(u(),e),e,void 0,null!=n?n:{})}return s._$AI(e),s},e.svg=E,Object.defineProperty(e,"i",{value:!0})}),e,t),e.exports=i},function(e,t,n){"use strict";var r,i;r=[n(23)],i=n.dj.d(r,(function(e){return(t,n,r={})=>{if(r.scopeName)throw new Error("scopeName should not be set in render options, use WidgetBase for scoped rendering");return e.render(t,n,r)}}),e,t),e.exports=i},function(e,t,n){"use strict";var r,i;r=[n(23)],i=n.dj.d(r,(function(e){return e.svg}),e,t),e.exports=i},function(e,t,n){var r,i;r=[n(55),n(34),n(112)],i=n.dj.d(r,(function(e,t){return t(e,"mw-rating/nls/main",n.dj.c(),!0)}),e,t),e.exports=i},function(e,t,n){e.exports={root:{star0:"Unrated",star1:"1 star",star2:"2 stars",star3:"3 stars",star4:"4 stars",star5:"5 stars",rating:"rating"}}},function(e,t,n){var r,i;r=[n(37),n(38),n(39),n(114),n(1),n(116),n(54)],i=n.dj.d(r,(function(e,t,n,r,i){"use strict";let o=0;function s(){return o+=1,"mw_rating_feedback_"+o}const a=[];a[0]=e=>{let t=s(),r=0===e.step;return n`
`},a[1]=e=>{let t=s(),i=1===e.step;return n`
${((e,t)=>n``)(e,i)}
`},a[2]=e=>{let t=2===e.step;return n` `};return t({name:"mw-rating-feedback",widgetClass:class extends e{static get properties(){return{step:{reflect:!0,type:Number},forwardLabel:{reflect:!0,type:String},forwardLabelAria:{reflect:!0,type:String},steps:{reflect:!1,type:Array},dataTestId:{reflect:!0,type:String,attribute:"data-test-id"}}}constructor(){super(),this.step=0,this.forwardLabel=r.forwardLabel,this.forwardLabelAria=r.forwardLabelAria,this._steps=[],this._currentValues={},this._updateValues(this._currentValues,{emit:!1})}connectedCallback(){this.steps=this._processDomSteps(this._getStepsFromDom()),super.connectedCallback()}_getStepsFromDom(){return Array.from(this.querySelectorAll("mw-rating-feedback-step"))}_getWidgetValues(){let e=Array.from(this.querySelectorAll(".mwRatingFeedback-Value")),t={};return e.forEach(e=>{if(e.name){let n=e.name;n.indexOf("__")>=0&&(n=n.split("__")[1]),t[n]=e.value}}),t}_parseFeedbackStep(e){let t=Math.floor(e.step);return isNaN(t)?(i.warn("Could not parse step value: "+e.step),null):t>=3?(i.warn("Max step number (2) exceeded: "+e.step),null):t<0?(i.warn("Negative step numbers are not allowed: "+e.step),null):(e.step=t,e)}_extractDomContentToDocFragment(e){let t=document.createRange();return t.selectNodeContents(e),t.extractContents()}_processDomSteps(e){let t=[this._steps[0]||document.createDocumentFragment(),this._steps[1]||document.createDocumentFragment(),this._steps[2]||document.createDocumentFragment()];return e.forEach(e=>{let n=this._parseFeedbackStep(e),r=this._extractDomContentToDocFragment(n);t[n.step]=r}),t}get step(){return this._step}set step(e){let t=this._step;this._step=Math.min(Math.max(e,0),2),this.requestUpdate("step",t)}get steps(){return[...this._steps]}set steps(e){let t=this._steps;3!==e.length&&i.warn("3 steps must be provided to the widget, number provided: "+e.length);for(let t=0;t<3;t+=1)e[t]&&(e[t]instanceof window.Node?this._steps[t]=e[t]:(i.warn(`Step ${t} is not a DOM node, ignoring`),this._steps[t]=document.createDocumentFragment()));this.requestUpdate("steps",t)}getValues(){return this._currentValues}_updateValues(e,t={emit:!0}){Object.assign(this._currentValues,e),this._currentValues.complete=!1,2===this.step&&(this._currentValues.complete=!0),t.emit&&(this.emit("ratingstepchange",{values:this._currentValues,step:this.step-1}),this._currentValues.complete&&this.emit("ratingcomplete",{values:this._currentValues}))}_handleKeyCommitsForRating(e){e.isComposing||229===e.keyCode||"Enter"===e.key&&e.currentTarget.value>0&&e.target.blur()}_handleNext(e){this._moveToNextStep()}_moveToNextStep(){let e=this._getWidgetValues();this.step+=1,this._updateValues(e)}updated(e){if(e.has("step")&&this.step!==e.get("step")){let e=this.querySelector(".mwRatingFeedback-Value");e&&e.focus()}}render(){let e=a.map(e=>e(this));return n`${e.reverse()}`}}})}),e,t),e.exports=i},function(e,t,n){var r,i;r=[n(55),n(34),n(115)],i=n.dj.d(r,(function(e,t){return t(e,"mw-rating-feedback/nls/main",n.dj.c(),!0)}),e,t),e.exports=i},function(e,t,n){e.exports={root:{forwardLabel:">",forwardLabelAria:"Next"}}},function(e,t,n){var r,i;r=[n(37),n(38),n(39)],i=n.dj.d(r,(function(e,t,n){"use strict";return t({name:"mw-rating-feedback-step",widgetClass:class extends e{static get properties(){return{step:{reflect:!0,type:Number}}}constructor(){super(),this.step=0}}})}),e,t),e.exports=i}]); //# sourceMappingURL=bundle.index.js.map