(function(_){function M(e){for(var t=e[0],r=e[1],o,a,i=0,u=[];i2)return o._hitchArgs.apply(y,arguments);if(i||(i=a,a=null),o.isString(i)){if(a=a||y.global,!a[i])throw['lang.hitch: scope["',i,'"] is null (scope="',a,'")'].join("");return function(){return a[i].apply(a,arguments||[])}}return a?function(){return i.apply(a,arguments||[])}:i},delegate:function(){function a(){}return function(i,u){a.prototype=i;var s=new a;return a.prototype=null,u&&o._mixin(s,u),s}}(),_toArray:m("ie")?function(){function a(i,u,s){for(var c=s||[],f=u||0;f=0;--V)J=$[V].prototype,J.hasOwnProperty("declaredClass")||(J.declaredClass="uniqName_"+r++),X=J.declaredClass,W.hasOwnProperty(X)||(W[X]={count:0,refs:[],cls:$[V]},++j),Y=W[X],Q&&Q!==Y&&(Y.refs.push(Q),++Q.count),Q=Y;++Q.count,O[0].refs.push(Q)}for(;O.length;){for(Q=O.pop(),L.push(Q.cls),--j;Z=Q.refs,Z.length==1;){if(Q=Z[0],!Q||--Q.count){Q=0;break}L.push(Q.cls),--j}if(Q)for(H=0,K=Z.length;H=0;--K)j=B[K],H=j._meta,j=H?H.ctor:j,j&&j.apply(this,$?$[K]:L);j=this.postscript,j&&j.apply(this,O)}}function w(B,P){return function(){var L=arguments,O=L,W=L[0],j;if(!(this instanceof L.callee))return S(L);P&&(W&&(j=W.preamble,j&&(O=j.apply(this,O)||O)),j=this.preamble,j&&j.apply(this,O)),B&&B.apply(this,L),j=this.postscript,j&&j.apply(this,L)}}function x(B){return function(){var P=arguments,L=0,O,W;if(!(this instanceof P.callee))return S(P);for(;O=B[L];++L)if(W=O._meta,O=W?W.ctor:O,O){O.apply(this,P);break}O=this.postscript,O&&O.apply(this,P)}}function R(B,P,L){return function(){var O,W,j,K=0,H=1;for(L&&(K=P.length-1,H=-1);O=P[K];K+=H)W=O._meta,j=(W?W.hidden:O.prototype)[B],j&&j.apply(this,arguments)}}function T(B){t.prototype=B.prototype;var P=new t;return t.prototype=null,P}function S(B){var P=B.callee,L=T(P);return P.apply(L,B),L}function I(B,P,L){typeof B!="string"&&(L=P,P=B,B=""),L=L||{};var O,W,j,K,H,V,$,G=1,Q=P;if(e.call(P)=="[object Array]"?(V=i(P,B),j=V[0],G=V.length-j,P=V[G]):(V=[0],P?e.call(P)=="[object Function]"?(j=P._meta,V=V.concat(j?j.bases:P)):a("base class is not a callable constructor.",B):P!==null&&a("unknown base class. Did you use dojo.require to pull it in?",B)),P)for(W=G-1;O=T(P),!!W;--W)j=V[W],(j._meta?v:d)(O,j.prototype),m("csp-restrictions")?K=function(){}:K=new Function,K.superclass=P,K.prototype=O,P=O.constructor=K;else O={};for(I.safeMixin(O,L),j=L.constructor,j!==n.constructor&&(j.nom=o,O.constructor=j),W=G-1;W;--W)j=V[W]._meta,j&&j.chains&&($=d($||{},j.chains));if(O["-chains-"]&&($=d($||{},O["-chains-"])),P&&P.prototype&&P.prototype["-chains-"]&&($=d($||{},P.prototype["-chains-"])),j=!$||!$.hasOwnProperty(o),V[0]=K=$&&$.constructor==="manual"?x(V):V.length==1?w(L.constructor,j):F(V,j),K._meta={bases:V,hidden:L,chains:$,parents:Q,ctor:L.constructor},K.superclass=P&&P.prototype,K.extend=E,K.createSubclass=D,K.prototype=O,O.constructor=K,O.getInherited=s,O.isInstanceOf=p,O.inherited=f,O.__inherited=u,B&&(O.declaredClass=B,h.setObject(B,K)),$)for(H in $)O[H]&&typeof $[H]=="string"&&H!=o&&(j=O[H]=R(H,V,$[H]==="after"),j.nom=H);return K}return y.safeMixin=I.safeMixin=g,y.declare=I,I},_,M),_.exports=C},function(_,M,l){"use strict";/** @license React v16.11.0 * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */(function(A,C){_.exports=C()})(this,function(){function A(ie){for(var ge="https://reactjs.org/docs/error-decoder.html?invariant="+ie,Ae=1;Aeme.length&&me.push(ie)}function o(ie,ge,Ae,we){var Ne=typeof ie;(Ne==="undefined"||Ne==="boolean")&&(ie=null);var He=!1;if(ie===null)He=!0;else switch(Ne){case"string":case"number":He=!0;break;case"object":switch(ie.$$typeof){case T:case S:He=!0}}if(He)return Ae(we,ie,ge===""?"."+i(ie,0):ge),1;if(He=0,ge=ge===""?".":ge+":",Array.isArray(ie))for(var tt=0;ttE(tt,Ae))it!==void 0&&0>E(it,tt)?(ie[we]=it,ie[Xe]=Ae,we=Xe):(ie[we]=tt,ie[He]=Ae,we=He);else if(it!==void 0&&0>E(it,Ae))ie[we]=it,ie[Xe]=Ae,we=Xe;else break e}}return ge}return null}function E(ie,ge){var Ae=ie.sortIndex-ge.sortIndex;return Ae!==0?Ae:ie.id-ge.id}function D(ie){for(var ge=v(kt);ge!==null;){if(ge.callback===null)g(kt);else if(ge.startTime<=ie)g(kt),ge.sortIndex=ge.expirationTime,p(Bt,ge);else break;ge=v(kt)}}function F(ie){if(le=!1,D(ie),!Vt)if(v(Bt)!==null)Vt=!0,Se(w);else{var ge=v(kt);ge!==null&&Be(F,ge.startTime-ie)}}function w(ie,ge){Vt=!1,le&&(le=!1,ke()),Ut=!0;var Ae=At;try{for(D(ge),st=v(Bt);st!==null&&(!(st.expirationTime>ge)||ie&&!Ge());){var we=st.callback;if(we!==null){st.callback=null,At=st.priorityLevel;var Ne=we(st.expirationTime<=ge);ge=ve(),typeof Ne=="function"?st.callback=Ne:st===v(Bt)&&g(Bt),D(ge)}else g(Bt);st=v(Bt)}if(st!==null)var He=!0;else{var tt=v(kt);tt!==null&&Be(F,tt.startTime-ge),He=!1}return He}finally{st=null,At=Ae,Ut=!1}}function x(ie){switch(ie){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var R=typeof Symbol=="function"&&Symbol.for,T=R?Symbol.for("react.element"):60103,S=R?Symbol.for("react.portal"):60106,I=R?Symbol.for("react.fragment"):60107,B=R?Symbol.for("react.strict_mode"):60108,P=R?Symbol.for("react.profiler"):60114,L=R?Symbol.for("react.provider"):60109,O=R?Symbol.for("react.context"):60110,W=R?Symbol.for("react.forward_ref"):60112,j=R?Symbol.for("react.suspense"):60113;R&&Symbol.for("react.suspense_list");var K=R?Symbol.for("react.memo"):60115,H=R?Symbol.for("react.lazy"):60116;R&&Symbol.for("react.fundamental"),R&&Symbol.for("react.responder"),R&&Symbol.for("react.scope");var V=typeof Symbol=="function"&&Symbol.iterator,$=Object.getOwnPropertySymbols,G=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable,J=function(){try{if(!Object.assign)return!1;var ie=new String("abc");if(ie[5]="de",Object.getOwnPropertyNames(ie)[0]==="5")return!1;var ge={};for(ie=0;10>ie;ie++)ge["_"+String.fromCharCode(ie)]=ie;if(Object.getOwnPropertyNames(ge).map(function(we){return ge[we]}).join("")!=="0123456789")return!1;var Ae={};return"abcdefghijklmnopqrst".split("").forEach(function(we){Ae[we]=we}),Object.keys(Object.assign({},Ae)).join("")==="abcdefghijklmnopqrst"}catch(we){return!1}}()?Object.assign:function(ie,ge){if(ie==null)throw new TypeError("Object.assign cannot be called with null or undefined");for(var Ae=Object(ie),we,Ne=1;Ne=bt},R=function(){},se=function(ie){0>ie||125we?(ie.sortIndex=Ne,p(kt,ie),v(Bt)===null&&ie===v(kt)&&(le?ke():le=!0,Be(F,Ne-we))):(ie.sortIndex=Ae,p(Bt,ie),Vt||Ut||(Vt=!0,Se(w))),ie},unstable_cancelCallback:function(ie){ie.callback=null},unstable_wrapCallback:function(ie){var ge=At;return function(){var Ae=At;At=ge;try{return ie.apply(this,arguments)}finally{At=Ae}}},unstable_getCurrentPriorityLevel:function(){return At},unstable_shouldYield:function(){var ie=ve();D(ie);var ge=v(Bt);return ge!==st&&st!==null&&ge!==null&&ge.callback!==null&&ge.startTime<=ie&&ge.expirationTime-1&&(O=S.split(/\s*,\s*/)),O){for(var W=[],j=0,K;K=O[j++];)W.push(n.parse(T,K,I,B,P,L));return W.remove=function(){for(var H=0;H0},d=function(i,u){if(!h(i))throw new Error("Invalid start value set");if(!h(u)&&(i!==0||u!==-1))throw new Error("Invalid end value set");var s={};return Object.defineProperty(s,"start",{value:i,enumerable:!0}),Object.defineProperty(s,"end",{value:u,enumerable:!0}),Object.defineProperty(s,"count",{value:u-i+1,enumerable:!0}),s},n=function(i,u){return u.start<=i.end&&u.end>=i.start},e=function(i,u,s,c){return new r(s,c,i,u)},t=function(i,u,s,c){return new r(i,u,s,c)},r=function(){function a(i,u,s,c){m(this,a),Object.defineProperties(this,{rows:{value:d(i,u),enumerable:!0},columns:{value:d(s,c),enumerable:!0}})}return y(a,[{key:"setEntireColumns",value:function(u,s){return s===void 0&&(s=u),new a(0,1/0,u,s)}},{key:"setEntireRows",value:function(u,s){return s===void 0&&(s=u),new a(u,s,0,1/0)}},{key:"setColumns",value:function(u,s){return new a(this.rows.start,this.rows.end,u,s)}},{key:"setRows",value:function(u,s){return new a(u,s,this.columns.start,this.columns.end)}},{key:"column",get:function(){return this.columns.start===this.columns.end&&this.rows.start===0&&this.rows.end===1/0?this.columns.start:null}},{key:"row",get:function(){return this.rows.start===this.rows.end&&this.columns.start===0&&this.columns.end===1/0?this.rows.start:null}}]),a}();Object.defineProperty(r.prototype,"row",{enumerable:!0}),Object.defineProperty(r.prototype,"column",{enumerable:!0});var o=function(){function a(){m(this,a)}return y(a,null,[{key:"range",value:function(){return new r(0,-1,0,-1)}},{key:"doesRangeListIntersect",value:function(u,s){for(var c=0;c=s.columns.start&&u.rows.start<=s.rows.end&&u.rows.end>=s.rows.start}},{key:"isRangeEqual",value:function(u,s){return u===s||u.columns.start===s.columns.start&&u.columns.end===s.columns.end&&u.rows.start===s.rows.start&&u.rows.end===s.rows.end}},{key:"isRangeInside",value:function(u,s){return u===s||u.columns.start<=s.columns.start&&u.columns.end>=s.columns.end&&u.rows.start<=s.rows.start&&u.rows.end>=s.rows.end}},{key:"isRowRange",value:function(u){return u.columns.start===0&&u.columns.end===1/0}},{key:"isColumnRange",value:function(u){return u.rows.start===0&&u.rows.end===1/0}},{key:"groupRangeListByRow",value:function(u){return a._groupRangeList(u,"rows")}},{key:"groupRangeListByColumn",value:function(u){return a._groupRangeList(u,"columns")}},{key:"removeRowsFromRangeList",value:function(u,s){return a._removeIntervalFromRank("rows",u,s,t)}},{key:"removeColumnsFromRangeList",value:function(u,s){return a._removeIntervalFromRank("columns",u,s,e)}},{key:"removeRangeFromRangeList",value:function(u,s){for(var c=[],f=0;f0;f+=1){var p=s[f];c=a.removeRangeFromRangeList(c,p)}return c.length===0}},{key:"_removeIntersection",value:function(u,s){var c=[{rank:"columns",secondaryRank:"rows",makeRange:e},{rank:"rows",secondaryRank:"columns",makeRange:t}],f=u,p=[];return a.doesRangeIntersect(u,s)?c.forEach(function(v){var g=v.rank,E=v.secondaryRank,D=v.makeRange,F=f[g],w=s[g],x=[f[E].start,f[E].end];F.start=c.start||(E[u].start>=c.start?v.push(f.apply(void 0,[c.end+1,w].concat(x))):E[u].end<=c.end?v.push(f.apply(void 0,[F,c.start-1].concat(x))):(v.push(f.apply(void 0,[F,c.start-1].concat(x))),v.push(f.apply(void 0,[c.end+1,w].concat(x))))):v.push(E)}return v}},{key:"_groupRangeList",value:function(u,s){var c=[],f={};return u.forEach(function(p){var v=a._hashRankFromRange(p,s),g=f[v];g>=0?c[g].push(p):(g=c.length,f[v]=g,c[g]=[p])}),c}},{key:"_hashRankFromRange",value:function(u,s){var c=u[s].start,f=u[s].end,p=u[s].count;return p===0?-1:f*f+f+c}}]),a}();return o},_,M),_.exports=C},function(_,M,l){var A,C;A=[l(103),l.dj.c(_.i),l.dj.m(_)],C=l.dj.d(A,function(y,m,h){var d=m.has||function(){};if(!d("dojo-has-api")){var n=typeof window!="undefined"&&typeof location!="undefined"&&typeof document!="undefined"&&window.location==location&&window.document==document,e=n&&document,t=e&&e.createElement("DiV"),r=h.config&&h.config()||{};d=function(a){return typeof r[a]=="function"?r[a]=r[a](y,e,t):r[a]},d.cache=r,d.add=function(a,i,u,s){return(typeof r[a]=="undefined"||s)&&(r[a]=i),u&&d(a)},d.add("host-browser",n),d.add("host-node",typeof process=="object"&&process.versions&&process.versions.node&&process.versions.v8),d.add("host-rhino",typeof load=="function"&&(typeof Packages=="function"||typeof Packages=="object")),d.add("dom",n),d.add("dojo-dom-ready-api",1),d.add("dojo-sniff",1)}if(d("host-browser")){d.add("dom-addeventlistener",!!document.addEventListener),d.add("touch","ontouchstart"in document||"onpointerdown"in document&&navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints),d.add("touch-events","ontouchstart"in document),d.add("pointer-events","pointerEnabled"in window.navigator?window.navigator.pointerEnabled:"PointerEvent"in window),d.add("MSPointer",window.navigator.msPointerEnabled),d.add("touch-action",d("touch")&&d("pointer-events")),d.add("device-width",screen.availWidth||innerWidth);var o=document.createElement("form");d.add("dom-attributes-explicit",o.attributes.length==0),d.add("dom-attributes-specified-flag",o.attributes.length>0&&o.attributes.length<40)}return d.clearElement=function(a){return a.innerHTML="",a},d.normalize=function(a,i){var u=a.match(/[\?:]|[^:\?]*/g),s=0,c=function(f){var p=u[s++];return p==":"?0:u[s++]=="?"?!f&&d(p)?c():(c(!0),c(f)):p||0};return a=c(),a&&i(a)},d.load=function(a,i,u){a?i([a],u):u()},d},_,M),_.exports=C},function(_,M,l){var A,C;A=[l(6),l(8),l(0)],C=l.dj.d(A,function(y,m,h){var d={},n,e;m("csp-restrictions")||(e=function(a){return d[a]=new Function("item","index","array",a)});function t(a){var i=!a;return function(u,s,c){var f=0,p=u&&u.length||0,v;if(p&&typeof u=="string"&&(u=u.split("")),typeof s=="string"){if(m("csp-restrictions"))throw new TypeError("callback must be a function");s=d[s]||e(s)}if(c){for(;f0)return o.lastIndexOf(c,f,p);var g=c&&c.length||0,E=a?g+s:u,D;for(p===n?D=a?u:g+s:p<0?(D=g+p,D<0&&(D=u)):D=p>=g?g+s:p,g&&typeof c=="string"&&(c=c.split(""));D!=E;D+=i)if(c[D]==f)return D;return-1}}var o={every:t(!1),some:t(!0),indexOf:r(!0),lastIndexOf:r(!1),forEach:function(a,i,u){var s=0,c=a&&a.length||0;if(c&&typeof a=="string"&&(a=a.split("")),typeof i=="string"){if(m("csp-restrictions"))throw new TypeError("callback must be a function");i=d[i]||e(i)}if(u)for(;s':"<"+s.join("><")+">",s.post=""}var c;h("ie")<=8&&(c=function(F){F.__dojo_html5_tested="yes";var w=v("div",{innerHTML:"",style:{visibility:"hidden"}},F.body);w.childNodes.length!==1&&"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(x){F.createElement(x)}),D(w)});function f(F,w){var x=w.parentNode;x&&x.insertBefore(F,w)}function p(F,w){var x=w.parentNode;x&&(x.lastChild==w?x.appendChild(F):x.insertBefore(F,w.nextSibling))}y.toDom=function(w,x){x=x||d.doc;var R=x[i];R||(x[i]=R=++a+"",o[R]=x.createElement("div")),h("ie")<=8&&!x.__dojo_html5_tested&&x.body&&c(x),w+="";var T=w.match(r),S=T?T[1].toLowerCase():"",I=o[R],B,P,L,O;if(T&&t[S])for(B=t[S],I.innerHTML=B.pre+w+B.post,P=B.length;P;--P)I=I.firstChild;else I.innerHTML=w;if(I.childNodes.length==1)return I.removeChild(I.firstChild);for(O=x.createDocumentFragment();L=I.firstChild;)O.appendChild(L);return O},y.place=function(w,x,R){if(x=n.byId(x),typeof w=="string"&&(w=/^\s*=0},add:function(i,u){i=h.byId(i),u=r(u);var s=i[d],c;s=s?" "+s+" ":" ",c=s.length;for(var f=0,p=u.length,v;f-1?v:y.development}get threshold(){return this._threshold}set threshold(v){this._threshold=f._sanitizeLevel(v)}get showTimestamp(){return this._showTimestamp}set showTimestamp(v){this._showTimestamp=!!v}get globalThreshold(){return i}set globalThreshold(v){i=f._sanitizeLevel(v)}get mode(){return u}set mode(v){u=f._sanitizeMode(v)}_shouldLog(v){return i>v&&this._threshold>v}_nameAndTime(){let v=[];return this.name!==n&&v.push(this.name),this._showTimestamp&&v.push(d.currentTimeString()),v}table(v){if(this._shouldLog(r.table)){const g={namespace:this.name,type:"table",message:[v],time:new Date};t.add(g),d.printToConsole("log",this._nameAndTime(),u),d.printToConsole("table",[v],u),d.execCallbacks(o,g)}}trace(){if(this._shouldLog(r.trace)){const v={namespace:this.name,type:"trace",message:null,time:new Date};let E=new Error().stack.split(` `);for(E[0]==="Error"&&E.shift();E[0].includes("Log.js")||E[0].includes("logger.trace")||E[0]==="trace";)E.shift();E=E.join(` `),v.message=[E],t.add(v),d.printToConsole("log",this._nameAndTime(),u),d.printToConsole("trace",[],u),d.execCallbacks(o,v)}}time(v){this._shouldLog(r.time)&&(this._timers[v]==null?this._timers[v]=new Date().getTime():this.warn('timer "'+v+'" already exists.'))}timeEnd(v){if(this._shouldLog(r.timeEnd)){const g={namespace:this.name,type:"timeEnd",message:null,time:new Date};if(this._timers[v]!=null){const E=new Date().getTime()-this._timers[v];g.message=[v+": "+E+"ms - timer ended"],t.add(g),d.printToConsole("log",this._nameAndTime().concat(g.message),u),d.execCallbacks(o,g),this._timers[v]=null}else this.warn('timer "'+v+`" doesn't exist.`)}}_group(v,g){if(this._shouldLog(r.group)){const E=g?"groupCollapsed":"group",D={namespace:this.name,type:E,message:[v],time:new Date};s.push(v),t.add(D),d.printToConsole(E,[v],u),d.execCallbacks(o,D)}}groupCollapsed(v){this._group(v,!0)}group(v){this._group(v,!1)}groupEnd(){if(this._shouldLog(r.groupEnd)){const v=s.pop(),g={namespace:this.name,type:"groupEnd",message:[v],time:new Date};t.add(g),d.printToConsole("groupEnd",[],u),d.execCallbacks(o,g)}}assert(v,g){if(this._shouldLog(r.assert)&&!v){const E={namespace:this.name,type:"assert",message:["Assertion failed:",g],time:new Date};t.add(E),E.message.shift();let D=[!1].concat(this._nameAndTime().concat(E.message));d.printToConsole("assert",D,u),d.execCallbacks(o,E)}}_basicLogMethod(v,g,E){if(this._shouldLog(g)){const D={namespace:this.name,type:v,message:E,time:new Date};E=this._nameAndTime().concat(E),t.add(D),d.printToConsole(v,E,u),d.execCallbacks(o,D)}}debug(v){const g=Array.prototype.slice.call(arguments);this._basicLogMethod("debug",r.debug,g)}log(v){const g=Array.prototype.slice.call(arguments);this._basicLogMethod("log",r.log,g)}dir(v){const g=Array.prototype.slice.call(arguments);this._basicLogMethod("dir",r.dir,g)}info(v){const g=Array.prototype.slice.call(arguments);this._basicLogMethod("info",r.info,g)}warn(v){const g=Array.prototype.slice.call(arguments);this._basicLogMethod("warn",r.warn,g)}error(v){const g=Array.prototype.slice.call(arguments);this._basicLogMethod("error",r.error,g)}addCallback(v,g){o[a]=v,g&&t.applyCallback(v);let E={};const D=a;return E.remove=()=>{delete o[D]},a++,E}createLogger(v){const g=new f(v);return g.name?g:c[v]}}return new f(n)},_,M),_.exports=C},function(_,M,l){var A,C;A=[l(18),l(12),l(21)],C=l.dj.d(A,function(y,m,h){var d,n={};y("webkit")?d=function(f){var p;if(f.nodeType==1){var v=f.ownerDocument.defaultView;p=v.getComputedStyle(f,null),!p&&f.style&&(f.style.display="",p=v.getComputedStyle(f,null))}return p||{}}:y("ie")&&(y("ie")<9||y("quirks"))?d=function(f){return f.nodeType==1&&f.currentStyle?f.currentStyle:{}}:d=function(f){if(f.nodeType===1){var p=f.ownerDocument.defaultView,v=p.opener?p:h.global.window;return v.getComputedStyle(f,null)||{}}return{}},n.getComputedStyle=d;var e;y("ie")?e=function(f,p){if(!p)return 0;if(p=="medium")return 4;if(p.slice&&p.slice(-2)=="px")return parseFloat(p);var v=f.style,g=f.runtimeStyle,E=f.currentStyle,D=v.left,F=g.left;g.left=E.left;try{v.left=p,p=v.pixelLeft}catch(w){p=0}return v.left=D,g.left=F,p}:e=function(f,p){return parseFloat(p)||0},n.toPixelValue=e;var t="DXImageTransform.Microsoft.Alpha",r=function(f,p){try{return f.filters.item(t)}catch(v){return p?{}:null}},o=y("ie")<9||y("ie")<10&&y("quirks")?function(f){try{return r(f).Opacity/100}catch(p){return 1}}:function(f){return d(f).opacity},a=y("ie")<9||y("ie")<10&&y("quirks")?function(f,p){p===""&&(p=1);var v=p*100,g=p===1;if(g?(f.style.zoom="",r(f)&&(f.style.filter=f.style.filter.replace(new RegExp("\\s*progid:"+t+"\\([^\\)]+?\\)","i"),""))):(f.style.zoom=1,r(f)?r(f,1).Opacity=v:f.style.filter+=" progid:"+t+"(Opacity="+v+")",r(f,1).Enabled=!0),f.tagName.toLowerCase()=="tr")for(var E=f.firstChild;E;E=E.nextSibling)E.tagName.toLowerCase()=="td"&&a(E,p);return p}:function(f,p){return f.style.opacity=p},i={left:!0,top:!0},u=/margin|padding|width|height|max|min|offset/;function s(f,p,v){if(p=p.toLowerCase(),v=="auto"){if(p=="height")return f.offsetHeight;if(p=="width")return f.offsetWidth}if(p=="fontweight")switch(v){case 700:return"bold";case 400:default:return"normal"}return p in i||(i[p]=u.test(p)),i[p]?e(f,v):v}var c={cssFloat:1,styleFloat:1,float:1};return n.get=function(p,v){var g=m.byId(p),E=arguments.length,D=v=="opacity";if(E==2&&D)return o(g);v=c[v]?"cssFloat"in g.style?"cssFloat":"styleFloat":v;var F=n.getComputedStyle(g);return E==1?F:s(g,v,F[v]||g.style[v])},n.set=function(p,v,g){var E=m.byId(p),D=arguments.length,F=v=="opacity";if(v=c[v]?"cssFloat"in E.style?"cssFloat":"styleFloat":v,D==3)return F?a(E,g):E.style[v]=g;for(var w in v)n.set(p,w,v[w]);return n.getComputedStyle(E)},n},_,M),_.exports=C},function(_,M,l){var A,C,y=function(){function h(d,n){for(var e=0;e1&&arguments[1]!==void 0?arguments[1]:{},r=this._events[e],o=Object.getOwnPropertyNames(t),a={};o.forEach(function(u){a[u]=t[u]});var i=function(s){s&&s.forEach(function(c){c(a)})};i(r)}}]),d}();return h},_,M),_.exports=C},function(_,M,l){var A,C;function y(m,h){if(!(m instanceof h))throw new TypeError("Cannot call a class as a function")}A=[l(60),l(1)],C=l.dj.d(A,function(m,h){var d=h([m],{}),n=function e(){y(this,e);var t=new d;this.emit=t.emit.bind(t),this.on=t.on.bind(t)};return n},_,M),_.exports=C},function(_,M,l){var A,C;A=[],C=l.dj.d(A,function(){"use strict";var y;function m(t,r,o,a){var i=t[r],u=r=="around",s;if(u){var c=o(function(){return i.advice(this,arguments)});s={remove:function(){c&&(c=t=o=null)},advice:function(f,p){return c?c.apply(f,p):i.advice(f,p)}}}else s={remove:function(){if(s.advice){var f=s.previous,p=s.next;!p&&!f?delete t[r]:(f?f.next=p:t[r]=p,p&&(p.previous=f)),t=o=s.advice=null}},id:t.nextId++,advice:o,receiveArguments:a};if(i&&!u)if(r=="after"){for(;i.next&&(i=i.next););i.next=s,s.previous=i}else r=="before"&&(t[r]=s,s.next=i,i.previous=s);else t[r]=s;return s}function h(t){return function(r,o,a,i){var u=r[o],s;(!u||u.target!=r)&&(r[o]=s=function(){for(var f=s.nextId,p=arguments,v=s.before;v;)v.advice&&(p=v.advice.apply(this,p)||p),v=v.next;if(s.around)var g=s.around.advice(this,p);for(var E=s.after;E&&E.id=0),y.add("wp",parseFloat(h.split("Windows Phone")[1])||void 0),y.add("msapp",parseFloat(h.split("MSAppHost/")[1])||void 0),y.add("khtml",d.indexOf("Konqueror")>=0?n:void 0),y.add("edge",parseFloat(h.split("Edge/")[1])||void 0),y.add("opr",parseFloat(h.split("OPR/")[1])||void 0),y.add("webkit",!y("wp")&&!y("edge")&&parseFloat(h.split("WebKit/")[1])||void 0),y.add("chrome",!y("edge")&&!y("opr")&&parseFloat(h.split("Chrome/")[1])||void 0),y.add("android",!y("wp")&&parseFloat(h.split("Android ")[1])||void 0),y.add("safari",d.indexOf("Safari")>=0&&!y("wp")&&!y("chrome")&&!y("android")&&!y("edge")&&!y("opr")?parseFloat(d.split("Version/")[1]):void 0),y.add("mac",d.indexOf("Macintosh")>=0),y.add("quirks",document.compatMode=="BackCompat"),!y("wp")&&h.match(/(iPhone|iPod|iPad)/)){var e=RegExp.$1.replace(/P/,"p"),t=h.match(/OS ([\d_]+)/)?RegExp.$1:"1",r=parseFloat(t.replace(/_/,".").replace(/_/g,""));y.add(e,r),y.add("ios",r)}if(y.add("bb",(h.indexOf("BlackBerry")>=0||h.indexOf("BB10")>=0)&&parseFloat(h.split("Version/")[1])||void 0),y.add("trident",parseFloat(d.split("Trident/")[1])||void 0),y.add("svg",typeof SVGAngle!="undefined"),!y("webkit")){if(h.indexOf("Opera")>=0&&y.add("opera",n>=9.8&&parseFloat(h.split("Version/")[1])||n),h.indexOf("Gecko")>=0&&!y("wp")&&!y("khtml")&&!y("trident")&&!y("edge")&&y.add("mozilla",n),y("mozilla")&&y.add("ff",parseFloat(h.split("Firefox/")[1]||h.split("Minefield/")[1])||void 0),document.all&&!y("opera")){var o=parseFloat(d.split("MSIE ")[1])||void 0,a=document.documentMode;a&&a!=5&&Math.floor(o)!=a&&(o=a),y.add("ie",o)}y.add("wii",typeof opera!="undefined"&&opera.wiiremote)}}return y},_,M),_.exports=C},function(_,M,l){var A,C,y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},m=function(){function n(e,t){for(var r=0;r=r.length?r.apply(null,a):function(){var i=[];return Array.prototype.push.apply(i,a),Array.prototype.push.apply(i,arguments),o.apply(null,i)}}}},{key:"find",value:function(r,o){for(var a=0;a0)return r[0].map(function(o,a){return r.map(function(i){return i[a]})})}},{key:"values",value:function(r){var o=[];for(var a in r)r.hasOwnProperty(a)&&o.push(r[a]);return o}},{key:"range",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return[].concat(h(Array(r).keys())).map(function(a){return a+o})}},{key:"rangeArray",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(r>=0&&o>=0){var a=o-r+1;return e.range(a,r)}}},{key:"arrayMerge",value:function(r,o){return[].concat(h(r),h(o))}},{key:"toPromise",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new Promise(function(o,a){return setTimeout(o,r)})}},{key:"convertSyncFunctionToPromise",value:function(r){var o=arguments;return new Promise(function(a,i){try{var u=r?r.apply(null,o):void 0;return a(u)}catch(s){return i(s)}})}},{key:"deepEqual",value:function(r,o){var a=Object.keys(r),i=Object.keys(o);if(a.length!==i.length)return!1;var u=!0,s=!1,c=void 0;try{for(var f=a[Symbol.iterator](),p;!(u=(p=f.next()).done);u=!0){var v=p.value,g=r[v],E=o[v],D=e.isObject(g)&&e.isObject(E);if(D&&!e.deepEqual(g,E)||!D&&g!==E)return!1}}catch(F){s=!0,c=F}finally{try{!u&&f.return&&f.return()}finally{if(s)throw c}}return!0}},{key:"isObject",value:function(r){return r!=null&&(typeof r=="undefined"?"undefined":y(r))==="object"}},{key:"classNameArrayEqual",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=r.length;if(a!==o.length)return!1;for(var i=a-1;i>=0;i--)if(r[i]!==o[i])return!1;return!0}},{key:"isPromise",value:function(r){return!!r&&typeof r.then=="function"}},{key:"asyncWrapper",value:function(r,o){var a=new Promise(function(i,u){if(!r)i(!0);else{var s=r(o);typeof s=="boolean"?i(s):s.then(function(c){return i(c)})}});return a}},{key:"alt",get:function(){return e.curry(function(r,o,a){return r(a)||o(a)})}}]),e}();return n},_,M),_.exports=C},function(_,M,l){var A,C;A=[l(8),l(0),l(104),l(105),l(53)],C=l.dj.d(A,function(y,m,h,d,n){"use strict";var e=0,t=1,r=2,o="This deferred has already been fulfilled.",a=Object.freeze||function(){},i=function(p,v,g,E,D){y("config-deferredInstrumentation")&&v===r&&f.instrumentRejected&&p.length===0&&f.instrumentRejected(g,!1,E,D);for(var F=0;F=0&&(g.width=f+v),p>=0&&(g.height=p+v)}function r(u){return u.tagName.toLowerCase()=="button"||u.tagName.toLowerCase()=="input"&&(u.getAttribute("type")||"").toLowerCase()=="button"}function o(u){return n.boxModel=="border-box"||u.tagName.toLowerCase()=="table"||r(u)}function a(u){var s={x:0,y:0,width:0,height:0,top:0,right:0,bottom:0,left:0},c;try{c=u.getBoundingClientRect()}catch(f){return s}return typeof c.left=="undefined"?s:c}n.setContentSize=function(s,c,f){s=h.byId(s);var p=c.w,v=c.h;if(o(s)){var g=n.getPadBorderExtents(s,f);p>=0&&(p+=g.w),v>=0&&(v+=g.h)}t(s,NaN,NaN,p,v)};var i={l:0,t:0,w:0,h:0};return n.setMarginBox=function(s,c,f){s=h.byId(s);var p=f||d.getComputedStyle(s),v=c.w,g=c.h,E=o(s)?i:n.getPadBorderExtents(s,p),D=n.getMarginExtents(s,p);if(y("webkit")&&r(s)){var F=s.style;v>=0&&!F.width&&(F.width="4px"),g>=0&&!F.height&&(F.height="4px")}v>=0&&(v=Math.max(v-E.w-D.w,0)),g>=0&&(g=Math.max(g-E.h-D.h,0)),t(s,c.l,c.t,v,g)},n.isBodyLtr=function(s){return s=s||m.doc,(m.body(s).dir||s.documentElement.dir||"ltr").toLowerCase()=="ltr"},n.docScroll=function(s){s=s||m.doc;var c=s.parentWindow||s.defaultView;return"pageXOffset"in c?{x:c.pageXOffset,y:c.pageYOffset}:(c=y("quirks")?m.body(s):s.documentElement)&&{x:n.fixIeBiDiScrollLeft(c.scrollLeft||0,s),y:c.scrollTop||0}},n.getIeDocumentElementOffset=function(u){return{x:0,y:0}},n.fixIeBiDiScrollLeft=function(s,c){c=c||m.doc;var f=y("ie");if(f&&!n.isBodyLtr(c)){var p=y("quirks"),v=p?m.body(c):c.documentElement,g=m.global;return f==6&&!p&&g.frameElement&&v.scrollHeight>v.clientHeight&&(s+=v.clientLeft),f<8||p?s+v.clientWidth-v.scrollWidth:-s}return s},n.position=function(u,s){u=h.byId(u);var c=m.body(u.ownerDocument),f=a(u);if(f={x:f.left,y:f.top,w:f.right-f.left,h:f.bottom-f.top},y("ie")<9&&(f.x-=y("quirks")?c.clientLeft+c.offsetLeft:0,f.y-=y("quirks")?c.clientTop+c.offsetTop:0),s){var p=n.docScroll(u.ownerDocument);f.x+=p.x,f.y+=p.y}return f},n.getMarginSize=function(s,c){s=h.byId(s);var f=n.getMarginExtents(s,c||d.getComputedStyle(s)),p=a(s);return{w:p.right-p.left+f.w,h:p.bottom-p.top+f.h}},n.normalizeEvent=function(u){if("layerX"in u||(u.layerX=u.offsetX,u.layerY=u.offsetY),!("pageX"in u)){var s=u.target,c=s&&s.ownerDocument||document,f=y("quirks")?c.body:c.documentElement;u.pageX=u.clientX+n.fixIeBiDiScrollLeft(f.scrollLeft||0,c),u.pageY=u.clientY+(f.scrollTop||0)}},n},_,M),_.exports=C},function(_,M,l){var A,C,y=function(){function h(d,n){for(var e=0;e=o.columns.start&&i<=o.columns.end&&a>=o.rows.start&&a<=o.rows.end},t=function(){function r(){m(this,r)}return y(r,null,[{key:"getFocusedCell",value:function(a){var i={},u=void 0;if(a&&a.rangeList&&a.rangeList[0]&&(u=a.rangeList[0]),u&&u.rows&&u.columns){var s=u.rows.start,c=u.columns.start,f=[s,c].join(",");i[f]="mw-table-cell-focused"}return i}},{key:"getContentFor",value:function(a,i,u){for(var s=a.rangeList||[],c=0;c0&&arguments[0]!==void 0?arguments[0]:{},i=arguments[1],u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h.dimensions.COL_WIDTH,s=arguments[3],c={},f=a.width,p=a.unit,v=a.fillContainerWidth;switch(isNaN(f)&&(f=u,p="px"),p===""&&(p="px"),p){case"percent":case"%":i?c={maxWidth:"none",minWidth:u,width:Math.min(100,Math.abs(f))+"%"}:c={minWidth:u,maxWidth:u};break;case"px":s&&(u=h.dimensions.COLLAPSE_COLUMN_ABSOLUTE_MIN),Number.isInteger(f)||(f=u),f=Math.max(u,f),v?c={maxWidth:"none",minWidth:f,width:v}:c={maxWidth:f,minWidth:f};break;default:break}return c}},{key:"computeTableHeight",value:function(a,i){var u=Math.max(a*i,1)||1;return u+"px"}},{key:"renderUpdate",value:function(a,i){i=i||a.viewPortList[0].getBufferedViewPort(),a.viewBuffer={size:null,rangeList:[i]}}},{key:"getState",value:function(a,i){return i.getStateByKey(a)}},{key:"getViewAndDataRange",value:function(a,i,u){var s=n.range().setRows(a,a).setColumns(i,i),c=r.viewRangeToDataRange(s,u);return{viewRange:s,dataRange:c}}},{key:"viewRangeToDataRange",value:function(a,i){var u=i.viewRangeListToDataRangeList([a]);if(u.length>1)throw new Error("Single viewRange cell mapped to multiple ranges");return u[0]}},{key:"isFocusedRange",value:function(a,i){var u=r.getState(d.protected.FOCUSED,i)||!1,s=u.rangeList,c=s===void 0?[{}]:s;return n.isRangeEqual(c[0],a)}},{key:"getValidationInfo",value:function(a){return{isValid:a.success,validationMessage:a.message,type:"ERROR"}}},{key:"setOriginalValuePromise",value:function(a,i){var u=i.getData([a]).then(function(s){return s[0][a.rows.start][a.columns.start]});return u}},{key:"getViewIndex",value:function(a){var i=a&&a.rangeList[0],u=i&&i.columns.start,s=i&&i.rows.start;return{viewRange:i,viewColIndex:u,viewRowIndex:s}}},{key:"getColumnConfig",value:function(a,i){var u=a.getColumnHeaders()[Number(i)]||{dataIndex:i};return u}},{key:"isReadOnly",value:function(a){return a&&a.readonly===!0||!1}},{key:"isInteractive",value:function(a){return a&&a.interactiveRenderer===!0||!1}},{key:"isColumnHeaderHidden",value:function(a){var i=a.getStateByKey(d.HIDE_COLUMN_HEADER);return i?i.value:!1}}]),r}();return t},_,M),_.exports=C},function(_,M,l){var A,C;A=[l(103),l(8),l.dj.c(_.i)],C=l.dj.d(A,function(y,m,h){var d={};if(m("dojo-config-api")){var n=h.rawConfig,e;for(e in n)d[e]=n[e]}else{var t=function(o,a,i){for(e in o)e!="has"&&m.add(a+e,o[e],0,i)};d=m("dojo-loader")?h.rawConfig:y.dojoConfig||y.djConfig||{},t(d,"config",1),t(d.has,"",1)}if(d.updateLocale=function(o,a){var i,u,s="en-us";if(o.indexOf(a)>=0&&a!=="zh"){d.locale=a;return}if(i=a.split("-")[0],i==="zh"){d.locale=s.toLocaleLowerCase();return}for(var c=0;c=0?D:-1,T=F>=0?F:-1,S=p.isWhiteSpace;S===void 0&&(S=u.isWhiteSpace(c.target,c.clientX,c.clientY));var I={type:E,isWhiteSpace:S,isEditable:x},B={left:v,top:g,row:R,col:T,target:I,colEnd:w};return f(d.internal.TABLE_RIGHT_CLICK,B)}},{key:"isElementOverflow",value:function(c){return c.scrollWidth>c.offsetWidth}},{key:"getTreeCellTargetNode",value:function(c){return c.firstElementChild.firstChild}},{key:"getTreetableIconLabelRendererTargetNode",value:function(c,f){return c&&c.querySelector(".mw-data-label-renderer")?c.querySelector(".mw-data-label-renderer"):f}},{key:"getTableRendererTargetNode",value:function(c){return c.firstElementChild}},{key:"isHeaderCell",value:function(c){return c===n.COLUMN_HEADER||c===n.TOPLEFT_HEADER}},{key:"isIconLabelCheckboxBoxRenderer",value:function(c){return c instanceof t||c instanceof e}},{key:"getTargetNode",value:function(c,f,p,v){return c==="treeCell"&&(f=this.getTreeCellTargetNode(f)),this.isHeaderCell(c)&&Object.keys(v).length!==0&&(f=p.firstChild),this.isIconLabelCheckboxBoxRenderer(v)&&(f=this.getTableRendererTargetNode(p)),this.isHeaderCell(c)&&this.isIconLabelCheckboxBoxRenderer(v)&&(f=p),v instanceof r&&(f=this.getTreetableIconLabelRendererTargetNode(p,f)),f}},{key:"getCellInfo",value:function(c){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"mw-table-cell",p=void 0,v=c.path||c.composedPath&&c.composedPath();if(v&&v.length>0){var g=!0,E=!1,D=void 0;try{for(var F=v[Symbol.iterator](),w;!(g=(w=F.next()).done);g=!0){var x=w.value;if(x&&x.classList&&x.classList.contains(f)){p=i(x);break}else if(x&&x.classList&&x.classList.contains("mw-table-component"))break}}catch(T){E=!0,D=T}finally{try{!g&&F.return&&F.return()}finally{if(E)throw D}}}else for(var R=document.elementFromPoint(c.clientX,c.clientY);R&&!R.classList.contains("mw-table-component")&&R!==document.body;){if(R.classList.contains(f)){p=i(R);break}R=R.parentNode}return p}},{key:"_isPointInsideRect",value:function(c,f,p){return c>=p.left&&f>=p.top&&c<=p.right&&f<=p.bottom}},{key:"setFocusCache",value:function(c){c(d.protected.CELL_DOM_FOCUS_CACHE)}},{key:"_isNodeTypeText",value:function(c){if(c){if(c.nodeType===3)return!0;if(c.nodeType===1&&c.innerText)return!0}else return!1;return!1}},{key:"_isPointInTextNode",value:function(c,f,p){if(!this._isNodeTypeText(p))return!1;var v=document.createRange();v.selectNodeContents(p);var g=v.getBoundingClientRect();return!!this._isPointInsideRect(c,f,g)}},{key:"_isClassInClassList",value:function(c,f){if(c&&typeof c=="string"){for(var p=0;p0)return s}return[]}},{key:"removeNodeSelectionState",value:function(a,i){var u=void 0,s=a.getStateByKey("selected");if(s&&(u=s.rangeList[0]),u&&u.length){var c=u.filter(function(f){return f.id!==i.id});a.setState("selected",!0,[c])}}},{key:"removeNodeFocusState",value:function(a,i){var u=a.getStateByKey("focused");u&&u.value&&(u=u.value,i.id===u.id&&a.deleteState("focused"))}},{key:"isArrayMatching",value:function(a,i){if(Array.isArray(a)&&Array.isArray(i)){var u=Object.assign([],a),s=Object.assign([],i);if(u.sort(function(f,p){return f-p}),s.sort(function(f,p){return f-p}),u.length!==s.length)return!1;for(var c=0;c0?new Set(a).size!==a.length:!1}},{key:"isArrayEmpty",value:function(a){return!!(a&&Array.isArray(a)&&a.length<=0)}},{key:"getUsersPlaform",value:function(){var a=navigator.userAgent.toLowerCase();if(n(e.exposed.MAC))return e.exposed.MAC;if(a.includes(e.exposed.WINDOWS))return e.exposed.WINDOWS;if(a.includes(e.exposed.LINUX))return e.exposed.LINUX}},{key:"getKeyByValue",value:function(a,i){if(a&&i){for(var u in a)if(a.hasOwnProperty(u)&&a[u]===i)return u}return!1}},{key:"shallowEqual",value:function(a,i){var u=Object.keys(a),s=Object.keys(i);if(u.length!==s.length)return!1;var c=!0,f=!1,p=void 0;try{for(var v=u[Symbol.iterator](),g;!(c=(g=v.next()).done);c=!0){var E=g.value,D=this.isObject(a[E])&&this.isObject(i[E]);if(!D&&a[E]!==i[E])return!1}}catch(F){f=!0,p=F}finally{try{!c&&v.return&&v.return()}finally{if(f)throw p}}return!0}},{key:"isObject",value:function(a){return a!=null&&(typeof a=="undefined"?"undefined":y(a))==="object"}},{key:"throttle",value:function(a,i){var u=void 0,s=void 0,c=void 0;return function(){var f=this,p=arguments;u?(clearTimeout(s),s=setTimeout(function(){Date.now()-c>=i&&(a.apply(f,p),c=Date.now())},Math.max(i-(Date.now()-c),0))):(a.apply(f,p),c=Date.now(),u=!0)}}}]),r}();return t},_,M),_.exports=C},function(_,M,l){var A,C,y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},m=function(){function d(n,e){for(var t=0;t0&&u.rangeList[0]){var p=u.rangeList[0],v=p.rows.start,g=p.columns.start,E=[v,g].join(",");if(u.value?(f=u.value,E=[f,g].join(",")):v<=i.rangeList[0].rows.end&&v>=i.rangeList[0].rows.start&&(f=i.rowMetaData[0](v).value.id,E=[f,g].join(","),o._updateActiveStateWhenFocusCellPageIntoView(f,u.rangeList,s)),v<=i.rangeList[0].rows.end&&v>=i.rangeList[0].rows.start){var D=i.rowMetaData[0](v).value.groupRow;o.isGroupedRow(D)&&(E=f)}c[E]="mw-table-cell-focused"}return[f,c]}},{key:"_areRangeListsEqual",value:function(i,u){if(!i&&!u&&i===u)return!0;if(!i||!u||i.length!==u.length)return!1;for(var s=0;s0?new Set(i).size!==i.length:!1}},{key:"isArrayEmpty",value:function(i){return!!(i&&Array.isArray(i)&&i.length<=0)}},{key:"isArrayMatching",value:function(i,u){if(Array.isArray(i)&&Array.isArray(u)){var s=Object.assign([],i),c=Object.assign([],u);if(s.sort(function(p,v){return p-v}),c.sort(function(p,v){return p-v}),s.length!==c.length)return!1;for(var f=0;f=f&&w<=p&&x>=g&&x<=v}},{key:"isDragTargetDisclosureIcon",value:function(i,u){var s=i.querySelector(".disclosureIcon");return s?o._isMouseOnTopOfTarget(s,i,u):!1}},{key:"isTargetOnScrollBar",value:function(i,u){return i.clientWidth<=u.xOffset||i.clientHeight<=u.yOffset}},{key:"isDragTargetCheckboxTree",value:function(i,u){var s=i.querySelector(".mw-checkbox-tree");return s?o._isMouseOnTopOfTarget(s,i,u):!1}},{key:"isNextSiblingItsChild",value:function(i){var u=i.level,s=i.nextSibling;return s.level===u+1}}]),o}();return r},_,M),_.exports=C},function(_,M,l){"use strict";var A,C;A=[l(17)],C=l.dj.d(A,function(y){return function(){var m={emit:function(d){}};return{subscribe:function(d){var n=y.after(m,"emit",d,!0);return{unsubscribe:function(){n.remove()}}},emit:function(d){m.emit(d)}}}},_,M),_.exports=C},function(_,M,l){var A,C;A=[M,l(18),l(0),l(12),l(14),l(326)],C=l.dj.d(A,function(y,m,h,d,n,e){var t={innerHTML:1,textContent:1,className:1,htmlFor:m("ie")?1:0,value:1},r={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"};function o(a,i){var u=a.getAttributeNode&&a.getAttributeNode(i);return!!u&&u.specified}y.has=function(i,u){var s=u.toLowerCase();return!!t[e.names[s]||u]||o(d.byId(i),r[s]||u)},y.get=function(i,u){i=d.byId(i);var s=u.toLowerCase(),c=e.names[s]||u,f=t[c],p=i[c];if(f&&typeof p!="undefined")return p;if(c=="textContent")return e.get(i,c);if(c!="href"&&(typeof p=="boolean"||h.isFunction(p)))return p;var v=r[s]||u;return o(i,v)?i.getAttribute(v):null},y.set=function(i,u,s){if(i=d.byId(i),arguments.length==2){for(var c in u)y.set(i,c,u[c]);return i}var f=u.toLowerCase(),p=e.names[f]||u,v=t[p];return p=="style"&&typeof s!="string"?(n.set(i,s),i):v||typeof s=="boolean"||h.isFunction(s)?e.set(i,u,s):(i.setAttribute(r[f]||u,s),i)},y.remove=function(i,u){d.byId(i).removeAttribute(r[u.toLowerCase()]||u)},y.getNodeProp=function(i,u){i=d.byId(i);var s=u.toLowerCase(),c=e.names[s]||u;if(c in i&&c!="href")return i[c];var f=r[s]||u;return o(i,f)?i.getAttribute(f):null}},_,M),_.exports=C},function(_,M,l){var A,C;A=[l(9),l(21),l(44)],C=l.dj.d(A,function(y,m,h){var d={},n={},e={length:0,add:function(t){if(n[t.id])throw new Error("Tried to register widget with id=="+t.id+" but that id is already registered");n[t.id]=t,this.length++},remove:function(t){n[t]&&(delete n[t],this.length--)},byId:function(t){return typeof t=="string"?n[t]:t},byNode:function(t){return n[t.getAttribute("widgetId")]},toArray:function(){var t=[];for(var r in n)t.push(n[r]);return t},getUniqueId:function(t){var r;do r=t+"_"+(t in d?++d[t]:d[t]=0);while(n[r]);return h._scopeName=="dijit"?r:h._scopeName+"_"+r},findWidgets:function(t,r){var o=[];function a(i){for(var u=i.firstChild;u;u=u.nextSibling)if(u.nodeType==1){var s=u.getAttribute("widgetId");if(s){var c=n[s];c&&o.push(c)}else u!==r&&a(u)}}return a(t),o},_destroyAll:function(){h._curFocus=null,h._prevFocus=null,h._activeStack=[],y.forEach(e.findWidgets(m.body()),function(t){t._destroyed||(t.destroyRecursive?t.destroyRecursive():t.destroy&&t.destroy())})},getEnclosingWidget:function(t){for(;t;){var r=t.nodeType==1&&t.getAttribute("widgetId");if(r)return n[r];t=t.parentNode}return null},_hash:n};return h.registry=e,e},_,M),_.exports=C},function(_,M,l){var A,C;A=[l(6),l(8),l(12),l(4),l(9),l(0),l(330),l(331)],C=l.dj.d(A,function(y,m,h,d,n,e,t,r){"use strict";m.add("array-extensible",function(){return e.delegate([],{length:1}).length==1&&!m("bug-for-in-skips-shadowed")});var o=Array.prototype,a=o.slice,i=o.concat,u=n.forEach,s=function(R,T,S){var I=new(S||this._NodeListCtor||D)(R);return T?I._stash(T):I},c=function(R,T,S){return T=[0].concat(a.call(T,0)),S=S||y.global,function(I){return T[0]=I,R.apply(S,T)}},f=function(R,T){return function(){return this.forEach(c(R,arguments,T)),this}},p=function(R,T){return function(){return this.map(c(R,arguments,T))}},v=function(R,T){return function(){return this.filter(c(R,arguments,T))}},g=function(R,T,S){return function(){var I=arguments,B=c(R,I,S);return T.call(S||y.global,I)?this.map(B):(this.forEach(B),this)}},E=function(R){var T=this instanceof D&&m("array-extensible");typeof R=="number"&&(R=Array(R));var S=R&&"length"in R?R:arguments;if(T||!S.sort){for(var I=T?this:[],B=I.length=S.length,P=0;P0},S.filter=R.filter||function(B,P,L){return S(P,L).filter(function(O){return n.indexOf(B,O)>-1})},typeof R!="function"){var I=R.search;R=function(B,P){return I(P||document,B)}}return S}var x=w(r,E);return y.query=w(r,function(R){return E(R)}),x.load=function(R,T,S){t.load(R,T,function(I){S(w(I,E))})},y._filterQueryResult=x._filterResult=function(R,T,S){return new E(x.filter(R,T,S))},y.NodeList=x.NodeList=E,x},_,M),_.exports=C},function(_,M,l){"use strict";var A,C;A=[l(554),l(41)],C=l.dj.d(A,function(y,m){const h=document.createElement("span"),d=document.createElement("span");return d.classList.add("hl"),{text2html:e,html2text:t,highlightText:r,updateData:a,expandToLine:o,expandAll:i,getUnitData:u,getLineData:s,getHDLLineData:c,createUnit:f,markChar:p,mvm:y.getMVM(),start:v};function e(g){return h.innerText=g,h.innerHTML}function t(g){return h.innerHTML=g,h.innerText}function r(g,E){if(!E)return e(g);const D=g.match(E);if(!D)return e(g);const F=g.split(E),w=e(F[0]);return D.reduce(function(R,T,S){d.innerText=T;const I=d.outerHTML,B=e(F[S+1]);return R+I+B},w)}function o(g,E){const D=g[E-1];D&&D.up&&(D.up.forEach(function(F){g[F-1].expand=!0}),a(g))}function a(g){g.forEach(function(E){E.up?E.show=E.up.every(function(D){return g[D-1].expand}):E.show=!0})}function i(g){const E=window.cr;E.data.files.data.forEach(function(D){const F=D.codeList;F.forEach(function(w){w.expand=g}),a(F)}),E.refresh()}function u(g,E){const D=E.id,F=g.records.get(D);if(F)return{file:F.file,line:F.line,col:F.col,code:F.token,sids:F.sid?[...F.sid]:[]}}function s(g,E){const D=g.currentFile,F=g.files.get(D).codeList[E-1],w=F.rawCode,x=[...F.sid];return{file:D,line:E,code:w,sids:x}}function c(g,E){const D=g.currentFile,w=g.files.get(D).codeList[E-1],x=w.rawCode,R=[];return w.id===E&&w.isTraceable&&R.push(w.sid),{file:D,line:E,code:x,sids:R}}function f(g){const E=document.createElement("span");return E.classList.add("typedef"),typeof g=="string"?(E.setAttribute("type","string"),E.textContent=g):(E.setAttribute("type",g.type),E.textContent=g.text,E.onclick=function(D){if(D.stopPropagation(),g.sid)m.publish({action:"blk2mdl",sids:[g.sid]});else{const F=g.file,w=g.line;window.cr.show(F,w,!0)}}),E}function p(g){const E=g.childNodes;for(let D=0,F=E.length;D"+R[S]+"";x.innerHTML=T,g.replaceChild(x,w)}}}function v(){m.publish({action:"start"})}},_,M),_.exports=C},function(_,M,l){"use strict";var A,C;A=[l(47)],C=l.dj.d(A,function(y){const m=window.location.search.substr(1),h=y.queryToObject(m);return h.channel="/report",h.uid=Date.now()+"-"+Math.random(),h.hasOwnProperty("features")?h.features=JSON.parse(h.features):h.features={},h.model||(h.model=h.top),h.hasOwnProperty("readonly")?h.readonly=JSON.parse(h.readonly):h.readonly=!1,window.config=h,h},_,M),_.exports=C},function(_,M,l){var A,C;A=[l.dj.c(_.i),l(9),l(17),l(26),l(85),l(1),l(12),l(34),l(11),l(10),l(24),l(14),l(8),l(6),l(0),l(4),l(73),l(196),l(27),l(21),l(328),l.dj.h("dojo-bidi?329"),l(35)],C=l.dj.d(A,function(y,m,h,d,n,e,t,r,o,a,i,u,s,c,f,p,v,g,E,D,F,w,x){s.add("dijit-legacy-requires",!c.isAsync),s.add("dojo-bidi",!1),s("dijit-legacy-requires")&&v(0,function(){var P=["dijit/_base/manager"];y(P)});var R={};function T(P){var L={};for(var O in P)L[O.toLowerCase()]=!0;return L}function S(P){return function(L){r[L?"set":"remove"](this.domNode,P,L),this._set(P,L)}}function I(P,L){return P===L||P!==P&&L!==L}var B=e("dijit._WidgetBase",[g,F],{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:S("lang"),dir:"",_setDirAttr:S("dir"),class:"",_setClassAttr:{node:"domNode",type:"class"},_setTypeAttr:null,style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,ownerDocument:null,_setOwnerDocumentAttr:function(P){this._set("ownerDocument",P)},attributeMap:{},_blankGif:d.blankGif||y.toUrl("dojo/resources/blank.gif"),textDir:"",_introspect:function(){var P=this.constructor;if(!P._setterAttrs){var L=P.prototype,O=P._setterAttrs=[],W=P._onMap={};for(var j in L.attributeMap)O.push(j);for(j in L)/^on/.test(j)&&(W[j.substring(2).toLowerCase()]=j),/^_set[A-Z](.*)Attr$/.test(j)&&(j=j.charAt(4).toLowerCase()+j.substr(5,j.length-9),(!L.attributeMap||!(j in L.attributeMap))&&O.push(j))}},postscript:function(P,L){this.create(P,L)},create:function(P,L){this._introspect(),this.srcNodeRef=t.byId(L),this._connects=[],this._supportingWidgets=[],this.srcNodeRef&&this.srcNodeRef.id&&typeof this.srcNodeRef.id=="string"&&(this.id=this.srcNodeRef.id),P&&(this.params=P,f.mixin(this,P)),this.postMixInProperties(),this.id||(this.id=x.getUniqueId(this.declaredClass.replace(/\./g,"_")),this.params&&delete this.params.id),this.ownerDocument=this.ownerDocument||(this.srcNodeRef?this.srcNodeRef.ownerDocument:document),this.ownerDocumentBody=D.body(this.ownerDocument),x.add(this),this.buildRendering();var O;if(this.domNode){this._applyAttributes();var W=this.srcNodeRef;W&&W.parentNode&&this.domNode!==W&&(W.parentNode.replaceChild(this.domNode,W),O=!0),this.domNode.setAttribute("widgetId",this.id)}this.postCreate(),O&&delete this.srcNodeRef,this._created=!0},_applyAttributes:function(){var P={};for(var L in this.params||{})P[L]=this._get(L);m.forEach(this.constructor._setterAttrs,function(O){if(!(O in P)){var W=this._get(O);W&&this.set(O,W)}},this);for(L in P)this.set(L,P[L])},postMixInProperties:function(){},buildRendering:function(){if(this.domNode||(this.domNode=this.srcNodeRef||this.ownerDocument.createElement("div")),this.baseClass){var P=this.baseClass.split(" ");this.isLeftToRight()||(P=P.concat(m.map(P,function(L){return L+"Rtl"}))),o.add(this.domNode,P)}},postCreate:function(){},startup:function(){this._started||(this._started=!0,m.forEach(this.getChildren(),function(P){!P._started&&!P._destroyed&&f.isFunction(P.startup)&&(P.startup(),P._started=!0)}))},destroyRecursive:function(P){this._beingDestroyed=!0,this.destroyDescendants(P),this.destroy(P)},destroy:function(P){this._beingDestroyed=!0,this.uninitialize();function L(O){O.destroyRecursive?O.destroyRecursive(P):O.destroy&&O.destroy(P)}m.forEach(this._connects,f.hitch(this,"disconnect")),m.forEach(this._supportingWidgets,L),this.domNode&&m.forEach(x.findWidgets(this.domNode,this.containerNode),L),this.destroyRendering(P),x.remove(this.id),this._destroyed=!0},destroyRendering:function(P){this.bgIframe&&(this.bgIframe.destroy(P),delete this.bgIframe),this.domNode&&(P?r.remove(this.domNode,"widgetId"):a.destroy(this.domNode),delete this.domNode),this.srcNodeRef&&(P||a.destroy(this.srcNodeRef),delete this.srcNodeRef)},destroyDescendants:function(P){m.forEach(this.getChildren(),function(L){L.destroyRecursive&&L.destroyRecursive(P)})},uninitialize:function(){return!1},_setStyleAttr:function(P){var L=this.domNode;f.isObject(P)?u.set(L,P):L.style.cssText?L.style.cssText+="; "+P:L.style.cssText=P,this._set("style",P)},_attrToDom:function(P,L,O){O=arguments.length>=3?O:this.attributeMap[P],m.forEach(f.isArray(O)?O:[O],function(W){var j=this[W.node||W||"domNode"],K=W.type||"attribute";switch(K){case"attribute":f.isFunction(L)&&(L=f.hitch(this,L));var H=W.attribute?W.attribute:/^on[A-Z][a-zA-Z]*$/.test(P)?P.toLowerCase():P;j.tagName?r.set(j,H,L):j.set(H,L);break;case"innerText":j.innerHTML="",j.appendChild(this.ownerDocument.createTextNode(L));break;case"textContent":j.textContent=L;break;case"innerHTML":j.innerHTML=L;break;case"class":o.replace(j,L,this[P]);break;case"toggleClass":o.toggle(j,W.className||P,L);break}},this)},get:function(P){var L=this._getAttrNames(P);return this[L.g]?this[L.g]():this._get(P)},set:function(P,L){if(typeof P=="object"){for(var O in P)this.set(O,P[O]);return this}var W=this._getAttrNames(P),j=this[W.s];if(f.isFunction(j))var K=j.apply(this,Array.prototype.slice.call(arguments,1));else{var H=this.focusNode&&!f.isFunction(this.focusNode)?"focusNode":"domNode",V=this[H]&&this[H].tagName,$=V&&(R[V]||(R[V]=T(this[H]))),G=P in this.attributeMap?this.attributeMap[P]:W.s in this?this[W.s]:$&&W.l in $&&typeof L!="function"||/^aria-|^data-|^role$/.test(P)?H:null;G!=null&&this._attrToDom(P,L,G),this._set(P,L)}return K||this},_attrPairNames:{},_getAttrNames:function(P){var L=this._attrPairNames;if(L[P])return L[P];var O=P.replace(/^[a-z]|-[a-zA-Z]/g,function(W){return W.charAt(W.length-1).toUpperCase()});return L[P]={n:P+"Node",s:"_set"+O+"Attr",g:"_get"+O+"Attr",l:O.toLowerCase()}},_set:function(P,L){var O=this[P];this[P]=L,this._created&&!I(O,L)&&(this._watchCallbacks&&this._watchCallbacks(P,O,L),this.emit("attrmodified-"+P,{detail:{prevValue:O,newValue:L}}))},_get:function(P){return this[P]},emit:function(P,L,O){L=L||{},L.bubbles===void 0&&(L.bubbles=!0),L.cancelable===void 0&&(L.cancelable=!0),L.detail||(L.detail={}),L.detail.widget=this;var W,j=this["on"+P];return j&&(W=j.apply(this,O||[L])),this._started&&!this._beingDestroyed&&p.emit(this.domNode,P.toLowerCase(),L),W},on:function(P,L){var O=this._onMap(P);return O?h.after(this,O,L,!0):this.own(p(this.domNode,P,L))[0]},_onMap:function(P){var L=this.constructor,O=L._onMap;if(!O){O=L._onMap={};for(var W in L.prototype)/^on/.test(W)&&(O[W.replace(/^on/,"").toLowerCase()]=W)}return O[typeof P=="string"&&P.toLowerCase()]},toString:function(){return"[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]"},getChildren:function(){return this.containerNode?x.findWidgets(this.containerNode):[]},getParent:function(){return x.getEnclosingWidget(this.domNode.parentNode)},connect:function(P,L,O){return this.own(n.connect(P,L,this,O))[0]},disconnect:function(P){P.remove()},subscribe:function(P,L){return this.own(E.subscribe(P,f.hitch(this,L)))[0]},unsubscribe:function(P){P.remove()},isLeftToRight:function(){return this.dir?this.dir.toLowerCase()=="ltr":i.isBodyLtr(this.ownerDocument)},isFocusable:function(){return this.focus&&u.get(this.domNode,"display")!="none"},placeAt:function(P,L){var O=!P.tagName&&x.byId(P);if(O&&O.addChild&&(!L||typeof L=="number"))O.addChild(this,L);else{var W=O&&"domNode"in O?O.containerNode&&!/after|before|replace/.test(L||"")?O.containerNode:O.domNode:t.byId(P,this.ownerDocument);a.place(this.domNode,W,L),!this._started&&(this.getParent()||{})._started&&this.startup()}return this},defer:function(P,L){var O=setTimeout(f.hitch(this,function(){!O||(O=null,this._destroyed||f.hitch(this,P)())}),L||0);return{remove:function(){return O&&(clearTimeout(O),O=null),null}}}});return s("dojo-bidi")&&B.extend(w),B},_,M),_.exports=C},function(_,M,l){var A,C;A=[l(6),l(20),l(105),l(104),l(8),l(0),l(61)],C=l.dj.d(A,function(y,m,h,d,n,e,t){var r=function(){},o=Object.freeze||function(){},a=y.Deferred=function(i){var u,s,c,f,p,v,g,E=this.promise=new h;function D(x){if(s)throw new Error("This deferred has already been resolved");u=x,s=!0,F()}function F(){for(var x;!x&&g;){var R=g;g=g.next,(x=R.progress==r)&&(s=!1);var T=p?R.error:R.resolved;if(n("config-useDeferredInstrumentation")&&p&&m.instrumentRejected&&m.instrumentRejected(u,!!T),T)try{var S=T(u);if(S&&typeof S.then=="function"){S.then(e.hitch(R.deferred,"resolve"),e.hitch(R.deferred,"reject"),e.hitch(R.deferred,"progress"));continue}var I=x&&S===void 0;x&&!I&&(p=S instanceof Error),R.deferred[I&&p?"reject":"resolve"](I?u:S)}catch(B){R.deferred.reject(B)}else p?R.deferred.reject(u):R.deferred.resolve(u)}}this.isResolved=E.isResolved=function(){return f==0},this.isRejected=E.isRejected=function(){return f==1},this.isFulfilled=E.isFulfilled=function(){return f>=0},this.isCanceled=E.isCanceled=function(){return c},this.resolve=this.callback=function(x){this.fired=f=0,this.results=[x,null],D(x)},this.reject=this.errback=function(x){p=!0,this.fired=f=1,n("config-useDeferredInstrumentation")&&m.instrumentRejected&&m.instrumentRejected(x,!!g),D(x),this.results=[null,x]},this.progress=function(x){for(var R=g;R;){var T=R.progress;T&&T(x),R=R.next}},this.addCallbacks=function(x,R){return this.then(x,R,r),this},E.then=this.then=function(x,R,T){var S=T==r?this:new a(E.cancel),I={resolved:x,error:R,progress:T,deferred:S};return g?v=v.next=I:g=v=I,s&&F(),S.promise};var w=this;E.cancel=this.cancel=function(){if(!s){var x=i&&i(w);s||(x instanceof Error||(x=new d(x)),x.log=!1,w.reject(x))}c=!0},o(E)};return e.extend(a,{addCallback:function(i){return this.addCallbacks(e.hitch.apply(y,arguments))},addErrback:function(i){return this.addCallbacks(null,e.hitch.apply(y,arguments))},addBoth:function(i){var u=e.hitch.apply(y,arguments);return this.addCallbacks(u,u)},fired:-1}),a.when=y.when=t,a},_,M),_.exports=C},function(_,M,l){"use strict";var A,C;A=[l(93),l(38),l(27)],C=l.dj.d(A,function(y,m,h){const d={};let n;return y.start(),y.subscribe(m.channel,function(o){const a=o.data;if(a.uid&&a.uid!==m.uid||a.cid&&a.cid!==m.cid||a.cid===void 0&&a.mdl!==m.model)return;a.mdl!==m.model&&(window.cr.history.save(),m.model=a.mdl,m.build=a.mdl);const i=d[a.action];i&&i(a.data)}),{publish:t,subscribe:r};function e(){if(n===void 0||n===!1)h.subscribe("/webviewStatus",function(o){return o===!0&&(n=!0),o});else return!0}function t(o){e()===!0?h.publish("/codeviewToWebview",o):(o.top=m.top,o.model=m.model,o.build=m.build,o.uid=m.uid,o.cid=m.cid,y.publish(m.channel,o))}function r(o,a){d[o]=a}},_,M),_.exports=C},function(_,M,l){var A,C;A=[],C=l.dj.d(A,function(){var y=Object.freeze({SOURCE_SELECTOR:"mw-table-dnd-source",TARGET_SELECTOR_TABLE_BODY:".mw-table-cell",TARGET_SELECTOR_TABLE_HEADER:".mw-table-header-column",TARGET_SELECTOR_TABLE_ROW:".mw-table-row",ROW_VALID_HOVER:"mw-table-dnd-valid-hover",ROW_INVALID_HOVER:"mw-table-dnd-invalid-hover",CONTAINER:"mw-scrolling-div",INSERTION_LINE_CLASS:"mw-table-insertion-line",WHITESPACE:"WHITESPACE",AUTO_EXPAND_TIME:1e3,MARGIN_LEFT_FOR_ROOT:18,ROW_REGIONS:{ROWS:"5 auto 5",CONTAINER:"0 auto 0",INSERT_AS_ROW:"50% 50%"},COLUMN_REGIONS:"50% 50%",dataType:{JSON:"json",TEXT:"text"},targetLifeCycle:{ENTER:"enter",HOVER:"hover",LEAVE:"leave"},modes:["columns","rowSelection"],REORDER:{INSERT_ABOVE:0,INSERT_BELOW:2,INSERT_AS_CHILD:1,ROWS:"reorderRows",VALID_LINE:"mw-table-horizontal-line",INVALID_LINE:"mw-table-horizontal-line-invalid"},REPARENT:{ROWS:"reparentRows"},DROP_TARGET:{TABLE_CELL:"tableCell",CONTAINER:"scrollComponent",INSERTION_LINE:"insertionLine"},TABLE_DEFAULT_TYPE:"mw-table-default-type",TABLE_SOURCE_COLUMN:"TABLE_COLUMN",TREETABLE_SOURCE_COLUMN:"TREETABLE_COLUMN",TABLE_SOURCE_ROW:"TABLE_ROW",TREETABLE_DEFAULT_TYPE:"mw-treetable-default-type",getDragSourceType:m});return y;function m(h,d){if(h===y.modes[0]&&d===y.TABLE_DEFAULT_TYPE)return y.TABLE_SOURCE_COLUMN;if(h===y.modes[0]&&d===y.TREETABLE_DEFAULT_TYPE)return y.TREETABLE_SOURCE_COLUMN}},_,M),_.exports=C},function(_,M,l){var A,C;A=[l(103),l(8)],C=l.dj.d(A,function(y,m){var h=document,d={loaded:1,complete:1},n=typeof h.readyState!="string",e=!!d[h.readyState],t=[],r;function o(p){t.push(p),e&&a()}o.load=function(p,v,g){o(g)},o._Q=t,o._onQEmpty=function(){},n&&(h.readyState="loading");function a(){if(!r){for(r=!0;t.length;)try{t.shift()(h)}catch(p){console.error(p,"in domReady callback",p.stack)}r=!1,o._onQEmpty()}}if(!e){var i=[],u=function(p){p=p||y.event,!(e||p.type=="readystatechange"&&!d[h.readyState])&&(n&&(h.readyState="complete"),e=1,a())},s=function(p,v){p.addEventListener(v,u,!1),t.push(function(){p.removeEventListener(v,u,!1)})};if(!m("dom-addeventlistener")){s=function(p,v){v="on"+v,p.attachEvent(v,u),t.push(function(){p.detachEvent(v,u)})};var c=h.createElement("div");try{c.doScroll&&y.frameElement===null&&i.push(function(){try{return c.doScroll("left"),1}catch(p){}})}catch(p){}}if(s(h,"DOMContentLoaded"),s(y,"load"),"onreadystatechange"in h?s(h,"readystatechange"):n||i.push(function(){return d[h.readyState]}),i.length){var f=function(){if(!e){for(var p=i.length;p--;)if(i[p]()){u("poller");return}setTimeout(f,30)}};f()}}return o},_,M),_.exports=C},function(_,M,l){var A,C;A=[l(6)],C=l.dj.d(A,function(y){return y.dijit},_,M),_.exports=C},function(_,M,l){var A,C;A=[l(0),l(18),l(21),l(12),l(24),l(14),l(10)],C=l.dj.d(A,function(y,m,h,d,n,e,t){m.add("rtl-adjust-position-for-verticalScrollBar",function(o,a){var i=h.body(a),u=t.create("div",{style:{overflow:"scroll",overflowX:"visible",direction:"rtl",visibility:"hidden",position:"absolute",left:"0",top:"0",width:"64px",height:"64px"}},i,"last"),s=t.create("div",{style:{overflow:"hidden",direction:"ltr"}},u,"last"),c=n.position(s).x!=0;return u.removeChild(s),i.removeChild(u),c}),m.add("position-fixed-support",function(o,a){var i=h.body(a),u=t.create("span",{style:{visibility:"hidden",position:"fixed",left:"1px",top:"1px"}},i,"last"),s=t.create("span",{style:{position:"fixed",left:"0",top:"0"}},u,"last"),c=n.position(s).x!=n.position(u).x;return u.removeChild(s),i.removeChild(u),c});var r={getBox:function(o){o=o||h.doc;var a=o.compatMode=="BackCompat"?h.body(o):o.documentElement,i=n.docScroll(o),u,s;if(m("touch")){var c=r.get(o);u=c.innerWidth||a.clientWidth,s=c.innerHeight||a.clientHeight}else u=a.clientWidth,s=a.clientHeight;return{l:i.x,t:i.y,w:u,h:s}},get:function(o){if(m("ie")&&r!==document.parentWindow){o.parentWindow.execScript("document._parentWindow = window;","Javascript");var a=o._parentWindow;return o._parentWindow=null,a}return o.parentWindow||o.defaultView},scrollIntoView:function(o,a){try{o=d.byId(o);var i=o.ownerDocument||h.doc,u=h.body(i),s=i.documentElement||u.parentNode,c=m("ie")||m("trident"),f=m("webkit");if(o==u||o==s)return;if(!(m("mozilla")||c||f||m("opera")||m("trident")||m("edge"))&&"scrollIntoView"in o){o.scrollIntoView(!1);return}var p=i.compatMode=="BackCompat",v=Math.min(u.clientWidth||s.clientWidth,s.clientWidth||u.clientWidth),g=Math.min(u.clientHeight||s.clientHeight,s.clientHeight||u.clientHeight),E=f||p?u:s,D=a||n.position(o),F=o.parentNode,w=function($){return c<=6||c==7&&p?!1:m("position-fixed-support")&&e.get($,"position").toLowerCase()=="fixed"},x=this,R=function($,G,Q){$.tagName=="BODY"||$.tagName=="HTML"?x.get($.ownerDocument).scrollBy(G,Q):(G&&($.scrollLeft+=G),Q&&($.scrollTop+=Q))};if(w(o))return;for(;F;){F==u&&(F=E);var T=n.position(F),S=w(F),I=e.getComputedStyle(F).direction.toLowerCase()=="rtl";if(F==E)T.w=v,T.h=g,E==s&&(c||m("trident"))&&I&&(T.x+=E.offsetWidth-T.w),T.x=0,T.y=0;else{var B=n.getPadBorderExtents(F);T.w-=B.w,T.h-=B.h,T.x+=B.l,T.y+=B.t;var P=F.clientWidth,L=T.w-P;P>0&&L>0&&(I&&m("rtl-adjust-position-for-verticalScrollBar")&&(T.x+=L),T.w=P),P=F.clientHeight,L=T.h-P,P>0&&L>0&&(T.h=P)}S&&(T.y<0&&(T.h+=T.y,T.y=0),T.x<0&&(T.w+=T.x,T.x=0),T.y+T.h>g&&(T.h=g-T.y),T.x+T.w>v&&(T.w=v-T.x));var O=D.x-T.x,W=D.y-T.y,j=O+D.w-T.w,K=W+D.h-T.h,H,V;j*O>0&&(!!F.scrollLeft||F==E||F.scrollWidth>F.offsetHeight)&&(H=Math[O<0?"max":"min"](O,j),I&&(c==8&&!p||m("trident")>=5)&&(H=-H),V=F.scrollLeft,R(F,H,0),H=F.scrollLeft-V,D.x-=H),K*W>0&&(!!F.scrollTop||F==E||F.scrollHeight>F.offsetHeight)&&(H=Math.ceil(Math[W<0?"max":"min"](W,K)),V=F.scrollTop,R(F,0,H),H=F.scrollTop-V,D.y-=H),F=F!=E&&!S&&F.parentNode}}catch($){console.error("scrollIntoView: "+$),o.scrollIntoView(!1)}}};return m("extend-dojo")&&y.setObject("dojo.window",r),r},_,M),_.exports=C},function(_,M,l){var A,C;A=[l(336),l(1),l(10),l(0),l(4),l(18),l(56),l(341)],C=l.dj.d(A,function(y,m,h,d,n,e,t,r){var o=m("dijit._TemplatedMixin",r,{templateString:null,templatePath:null,_skipNodeCache:!1,searchContainerNode:!0,_stringRepl:function(a){var i=this.declaredClass,u=this;return t.substitute(a,this,function(s,c){if(c.charAt(0)=="!"&&(s=d.getObject(c.substr(1),!1,u)),typeof s=="undefined")throw new Error(i+" template:"+c);return s==null?"":c.charAt(0)=="!"?s:this._escapeValue(""+s)},this)},_escapeValue:function(a){return a.replace(/["'<>&]/g,function(i){return{"&":"&","<":"<",">":">",'"':""","'":"'"}[i]})},buildRendering:function(){if(!this._rendered){this.templateString||(this.templateString=y(this.templatePath,{sanitize:!0}));var a=o.getCachedTemplate(this.templateString,this._skipNodeCache,this.ownerDocument),i;if(d.isString(a)){if(i=h.toDom(this._stringRepl(a),this.ownerDocument),i.nodeType!=1)throw new Error("Invalid template: "+a)}else i=a.cloneNode(!0);this.domNode=i}this.inherited(arguments),this._rendered||this._fillContent(this.srcNodeRef),this._rendered=!0},_fillContent:function(a){var i=this.containerNode;if(a&&i)for(;a.hasChildNodes();)i.appendChild(a.firstChild)}});return o._templateCache={},o.getCachedTemplate=function(a,i,u){var s=o._templateCache,c=a,f=s[c];if(f){try{if(!f.ownerDocument||f.ownerDocument==(u||document))return f}catch(v){}h.destroy(f)}if(a=t.trim(a),i||a.match(/\$\{([^\}]+)\}/g))return s[c]=a;var p=h.toDom(a,u);if(p.nodeType!=1)throw new Error("Invalid template: "+a);return s[c]=p},e("ie")&&n(window,"unload",function(){var a=o._templateCache;for(var i in a){var u=a[i];typeof u=="object"&&h.destroy(u),delete a[i]}}),o},_,M),_.exports=C},function(_,M,l){var A,C;A=[l(0)],C=l.dj.d(A,function(y){var m={};return{objectToQuery:function(d){var n=encodeURIComponent,e=[];for(var t in d){var r=d[t];if(r!=m[t]){var o=n(t)+"=";if(y.isArray(r))for(var a=0,i=r.length;a'"\/]/g,d={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},n={};return m.setObject("dojo.string",n),n.escape=function(e){return e?e.replace(h,function(t){return d[t]}):""},n.codePointAt=String.prototype.codePointAt?function(e,t){return String.prototype.codePointAt.call(e,t)}:function(e,t){if(e==null)throw new TypeError("codePointAt called on null or undefined");var r,o,a,i;if(e=String(e),r=e.length,i=t?Number(t):0,i!=i&&(i=0),!(i<0||i>=r))return o=e.charCodeAt(i),o>=55296&&o<=56319&&r>i+1&&(a=e.charCodeAt(i+1),a>=56320&&a<=57343)?(o-55296)*1024+a-56320+65536:o},n.fromCodePoint=String.fromCodePoint||function(){var e=[],t=0,r="",o,a;for(a=0,len=arguments.length;a!==len;++a){if(o=+arguments[a],!(o<1114111&&o>>>0===o))throw RangeError("Invalid code point: "+o);o<=65535?t=e.push(o):(o-=65536,t=e.push((o>>10)+55296,o%1024+56320)),t>=16383&&(r+=String.fromCharCode.apply(null,e),e.length=0)}return r+String.fromCharCode.apply(null,e)},n.rep=function(e,t){if(t<=0||!e)return"";for(var r=[];t&1&&r.push(e),!!(t>>=1);)e+=e;return r.join("")},n.pad=function(e,t,r,o){r||(r="0");var a=String(e),i=n.rep(r,Math.ceil((t-a.length)/r.length));return o?a+i:i+a},n.substitute=function(e,t,r,o){return o=o||y.global,r=r?m.hitch(o,r):function(a){return a},e.replace(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,function(a,i,u){if(i=="")return"$";var s=m.getObject(i,!1,t);u&&(s=m.getObject(u,!1,o).call(o,s,i));var c=r(s,i);if(typeof c=="undefined")throw new Error('string.substitute could not find key "'+i+'" in template');return c.toString()})},n.trim=String.prototype.trim?m.trim:function(e){e=e.replace(/^\s+/,"");for(var t=e.length-1;t>=0;t--)if(/\S/.test(e.charAt(t))){e=e.substring(0,t+1);break}return e},n},_,M),_.exports=C},function(_,M,l){"use strict";var A,C;A=[l(714),l(295),l(296),l(297)],C=l.dj.d(A,function(y,m,h){var d=m.isPrimary,n=m.getXY,e=h.calculateProperties,t={pointerdown:y.DOWN,pointermove:y.MOVE,pointerup:y.UP,pointercancel:y.CANCEL,touchstart:y.DOWN,touchmove:y.MOVE,touchend:y.UP,touchcancel:y.CANCEL,mousedown:y.DOWN,mousemove:y.MOVE,mouseup:y.UP,"":y.CANCEL},r=function(i){var u=null;return i&&i.srcEvent&&(u=t[i.srcEvent.type]),u},o=function(i){var u=i?i.target:null;return u||(i.touches&&i.touches[0]?u=i.touches[0].target:i.changedTouches&&i.changedTouches[0]&&(u=i.changedTouches[0].target)),u};return{createFromPointers:function(i,u,s){u._softTimestamp=Date.now()+(u.detail?u.detail:0);var c=i.slice();return{type:"inputData",pointers:c,properties:e(c,u),changedPointers:[u],srcEvent:u,target:o(u),srcNode:s}},createTimeout:function(){return{type:"inputData",isTimeout:!0}},isSinglePrimary:function(i){return i.pointers&&i.pointers.length===1&&d(i.pointers[0])},isDown:function(i){return r(i)===y.DOWN},isMove:function(i){return r(i)===y.MOVE},isUp:function(i){return r(i)===y.UP},isCancel:function(i){return r(i)===y.CANCEL},isTimeout:function(i){return!!i.isTimeout},isWheel:function(i){var u=i.srcEvent;return u&&u.type==="wheel"},getInputType:r,getCenterPoint:function(i){var u={x:NaN,y:NaN};return i&&i.properties&&(u=i.properties.center),u},getPointerLocations:function(i){return i.pointers.map(n)},getTimestamp:function(i){return i&&i.srcEvent?i.srcEvent._softTimestamp:NaN}}},_,M),_.exports=C},function(_,M,l){"use strict";var A,C;A=[],C=l.dj.d(A,function(){return{setActionData:function(m){return m.actionData={type:m.type,srcEvent:m.inputData.srcEvent,pointers:m.inputData.pointers,properties:m.internalData.positionTracker.getActionProperties()},m},trackInitial:function(m){var h=m.inputData,d=m.internalData.positionTracker;return d.setInitial(h),m},trackFinal:function(m){var h=m.inputData,d=m.internalData.positionTracker;return d.setFinal(h),m},trackUpdate:function(m){var h=m.inputData,d=m.internalData.positionTracker;return d.setUpdated(h),m},resetTracker:function(m){var h=m.internalData.positionTracker;return h.reset(),m}}},_,M),_.exports=C},function(_,M,l){"use strict";var A,C,y=function(){function h(d,n){for(var e=0;e1?n?n(d):d:new y().resolve(d);return n||e||t?d.then(n,e,t):d}},_,M),_.exports=C},function(_,M,l){var A,C;A=[l(6),l.dj.c(_.i),l(8),l(9),l(26),l(0),l(109),l(88),l.dj.m(_)],C=l.dj.d(A,function(y,m,h,d,n,e,t,r,o){h.add("dojo-preload-i18n-Api",1),h.add("dojo-v1x-i18n-Api",1);var a=y.i18n={},i=/(^.*(^|\/)nls)(\/|$)([^\/]*)\/?([^\/]*)/,u=function(O,W,j,K){for(var H=[j+K],V=W.split("-"),$="",G=0;G=0){var Z=O.replace(/\./g,"/")+"_"+X;return $(),H(Z,function(q){for(var ee in q){var re=q[ee],he=ee.match(/(.+)\/([^\/]+)$/),me,se;if(!!he&&(me=he[2],se=he[1]+"/",!!re._localized)){var te;if(X==="ROOT"){var oe=te=re._localized;delete re._localized,oe.root=re,s[m.toAbsMid(ee)]=oe}else te=re._localized,s[Q(se,me,X,m)]=re;if(X!==Y){var ue=function(ve,Se,Be,ke){var Ge=[],rt=[];V(Y,function(ut){ke[ut]&&(Ge.push(m.toAbsMid(ve+ut+"/"+Se)),rt.push(Q(ve,Se,ut,m)))}),Ge.length?($(),K(Ge,function(){for(var ut=Ge.length-1;ut>=0;ut--)Be=e.mixin(e.clone(Be),arguments[ut]),s[rt[ut]]=Be;s[Q(ve,Se,Y,m)]=e.clone(Be),G()})):s[Q(ve,Se,Y,m)]=Be};ue(se,me,re,te)}}}G()}),!0}return!1})}J(),d.forEach(y.config.extraLocale,J)},T=function(O,W,j){return w&&x.push([O,W,j]),w},S=function(){};if(h("dojo-v1x-i18n-Api")){var I={},B={},P,L=function(O,W,j){var K=[];d.forEach(O,function(H){var V=j.toUrl(H+".js");function $(Q){P||(P=new Function("__bundle","__checkForLegacyModules","__mid","__amdValue","var define = function(mid, factory){define.called = 1; __amdValue.result = factory || mid;}, 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 J=P(Q,S,H,I);J===I?K.push(s[V]=I.result):(J instanceof Error&&(console.error("failed to evaluate i18n bundle; url="+V,J),J={}),K.push(s[V]=/nls\/[^\/]+\/[^\/]+$/.test(V)?J:{root:J,_v1x:1}))}if(s[V])K.push(s[V]);else{var G=j.syncLoadNls(H);if(G||(G=S(H.replace(/nls\/([^\/]*)\/([^\/]*)$/,"nls/$2/$1"))),G)K.push(G);else if(t)t.get({url:V,sync:!0,load:$,error:function(){K.push(s[V]={})}});else try{j.getText(V,!0,$)}catch(Q){K.push(s[V]={})}}}),W&&W.apply(null,K)};S=function(O){for(var W,j=O.split("/"),K=y.global[j[0]],H=1;K&&Hu?1:0},r=function(i,u){var s=t(i.rows.start,u.rows.start);return s===0?t(i.rows.end,u.rows.end):s},o=function(){function a(){m(this,a)}return y(a,null,[{key:"fitRangeToBounds",value:function(u,s,c){var f={rows:{},columns:{}};return c.rows.start>u||c.columns.start>s||c.rows.end<0||c.columns.end<0?null:(f.rows.start=Math.max(Math.min(c.rows.start,u),0),f.columns.start=Math.max(Math.min(c.columns.start,s),0),f.rows.end=c.rows.end===1/0?1/0:Math.max(Math.min(c.rows.end,u),f.rows.start),f.columns.end=c.columns.end===1/0?1/0:Math.max(Math.min(c.columns.end,s),f.columns.start),h.range().setRows(f.rows.start,f.rows.end).setColumns(f.columns.start,f.columns.end))}},{key:"getActiveCell",value:function(u){var s=u.getStateByKey(n.protected.ACTIVE_CELL);return s?s.rangeList[0]:[]}},{key:"getValidStartPoint",value:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return u<0?0:u}},{key:"isCellInRanges",value:function(u,s,c){if(!Array.isArray(u)||u.length===0)return!1;var f=h.range().setRows(s,s).setColumns(c,c);return h.isRangeInsideRangeList(f,u)}},{key:"isRangeVisible",value:function(u,s){return!s||!u?!1:h.isRangeInside(s,u)}},{key:"isIdInSelections",value:function(u,s){return u in s}},{key:"getSelectionCountByRanges",value:function(u){var s=void 0,c=function(v,g){return g?h.isRowRange(g)?(s=d.rangeType.ROW,v+g.rows.count):h.isColumnRange(g)?(s=d.rangeType.COLUMN,v+g.columns.count):(s=d.rangeType.CELL,v+g.rows.count*g.columns.count):v},f=u.reduce(c,0);return{count:f,type:s}}},{key:"getSelectionCountByIDs",value:function(u){var s="rows",c=Object.keys(u).length;return{count:c,type:s}}},{key:"areSelectionRangesDifferent",value:function(u,s){var c=!0;return s.length===u.length&&(s.sort(r),u.sort(r),c=u.reduce(function(f,p,v){return f||!h.isRangeEqual(p,s[v])},!1)),c}},{key:"areSelectionIdsDifferent",value:function(u,s){return!e.deepEqual(u,s)}},{key:"isDataTransferValid",value:function(u){if(!u)return!1;var s=u.types;if(!Array.isArray(s)||s.length===0)return!1;var c=s[0];if(!c)return!1;var f=u.getData(c);return!!f}},{key:"getDataTransferString",value:function(u){if(!u)return"dataTransfer is null";var s=u.types;if(!s||s.length===0||!s[0])return"dataTransfer has no mime types";for(var c="",f=0;f0){f=Number(E);break}}return f}}]),a}();return o},_,M),_.exports=C},function(_,M,l){"use strict";var A,C;A=[l(98),l(671),l(287),l(672),l(673)],C=l.dj.d(A,function(y,m,h,d,n){return{StatusEnum:y,TypeMetaDataEnum:m,MIME_TYPES:h,ACTIONS:d,EventsEnum:n}},_,M),_.exports=C},function(_,M,l){"use strict";var A,C;A=[l(80),l(676),l(183),l(69),l(13)],C=l.dj.d(A,function(y,m,h,d,n){class e{constructor(){y.isDataTransferConstructor()?this._dataTransfer=new window.DataTransfer:this._dataTransfer=new m}getData(...r){return this._dataTransfer.getData(...r)}setData(r,o){return o=String(o),this._dataTransfer.setData(r,o)}get types(){return this._dataTransfer.types}get files(){return this._dataTransfer.files}get items(){return this._dataTransfer.items}static createInstance(r){return r}static isDataTransferValid(r){return y.isDataTransferValid(r)}static getDataTransferString(r){return y.getDataTransferString(r)}static convertBase64ToBlob(r,o){return h.convert(r,o)}setUrls(r){if(!Array.isArray(r)){n.warn("DataTransfer setUrls accepts array format");return}this._urlList=r;let o="";r.length>0&&(o=r.reduce((a,i)=>"".concat(a,`\r `).concat(i))),this.setData(d.MIME_TYPES.TEXT_URI_LIST,o)}getUrls(){let r=this.getData(d.MIME_TYPES.TEXT_URI_LIST),o=[];return r?(r.includes(`\r `)?o=r.split(`\r `):r.includes(` `)?o=r.split(` `):o=[r],o.filter(a=>a.trim().charAt("0")!=="#")):o}setAction(r){r=r.toLowerCase(),Object.values(d.ACTIONS.DataTransfer).includes(r)||n.warn("Pass move or copy actions to dataTransfer.setAction"),this.setData(d.MIME_TYPES.ACTION,r)}getAction(){return this.getData(d.MIME_TYPES.ACTION)||d.ACTIONS.DataTransfer.UNINITIALIZED}static printDataTransfer(r,o){n.debug("From ",o),n.debug("All types",r.types);for(let a=0;a2&&arguments[2]!==void 0?arguments[2]:0;if(r===o)return!0;if(a=a+1,(typeof r=="undefined"?"undefined":y(r))!=="object"||(typeof o=="undefined"?"undefined":y(o))!=="object"||r===null||o===null)return!1;var i=Object.keys(r),u=Object.keys(o);if(i.length!==u.length)return!1;var s=!0,c=!1,f=void 0;try{for(var p=i[Symbol.iterator](),v;!(s=(v=p.next()).done);s=!0){var g=v.value;if(!u.includes(g)||(typeof r[g]=="function"||typeof o[g]=="function")&&r[g].toString()!==o[g].toString()||a>=5||!e.isDeepEqual(r[g],o[g],a))return!1}}catch(E){c=!0,f=E}finally{try{!s&&p.return&&p.return()}finally{if(c)throw f}}return!0}}]),e}();return n},_,M),_.exports=C},function(_,M,l){var A,C;A=[l(6),l(17),l(12),l(11),l(0),l(4),l(8),l(54),l(43),l(21)],C=l.dj.d(A,function(y,m,h,d,n,e,t,r,o,a){var i=t("ios")<5,u=t("pointer-events")||t("MSPointer"),s=function(){var L={};for(var O in{down:1,move:1,up:1,cancel:1,over:1,out:1})L[O]=t("MSPointer")?"MSPointer"+O.charAt(0).toUpperCase()+O.slice(1):"pointer"+O;return L}(),c=t("touch-events"),f,p,v=!1,g,E,D,F,w,x,R;function T(L,O,W){return u&&W?function(j,K){return e(j,W,K)}:c?function(j,K){var H=e(j,O,function($){K.call(this,$),R=new Date().getTime()}),V=e(j,L,function($){(!R||new Date().getTime()>R+1e3)&&K.call(this,$)});return{remove:function(){H.remove(),V.remove()}}}:function(j,K){return e(j,L,K)}}function S(L){do if(L.dojoClick!==void 0)return L;while(L=L.parentNode)}function I(L,O,W){if(!r.isRight(L)){var j=S(L.target);if(p=!L.target.disabled&&j&&j.dojoClick,p&&(v=p=="useTarget",g=v?j:L.target,v&&L.preventDefault(),E=L.changedTouches?L.changedTouches[0].pageX-a.global.pageXOffset:L.clientX,D=L.changedTouches?L.changedTouches[0].pageY-a.global.pageYOffset:L.clientY,F=(typeof p=="object"?p.x:typeof p=="number"?p:0)||4,w=(typeof p=="object"?p.y:typeof p=="number"?p:0)||4,!f)){f=!0;var K=function($){v?p=h.isDescendant(a.doc.elementFromPoint($.changedTouches?$.changedTouches[0].pageX-a.global.pageXOffset:$.clientX,$.changedTouches?$.changedTouches[0].pageY-a.global.pageYOffset:$.clientY),g):p=p&&($.changedTouches?$.changedTouches[0].target:$.target)==g&&Math.abs(($.changedTouches?$.changedTouches[0].pageX-a.global.pageXOffset:$.clientX)-E)<=F&&Math.abs(($.changedTouches?$.changedTouches[0].pageY-a.global.pageYOffset:$.clientY)-D)<=w};a.doc.addEventListener(O,function(V){r.isRight(V)||(K(V),v&&V.preventDefault())},!0),a.doc.addEventListener(W,function(V){if(!r.isRight(V)&&(K(V),p)){x=new Date().getTime();var $=v?g:V.target;$.tagName==="LABEL"&&($=h.byId($.getAttribute("for"))||$);var G=V.changedTouches?V.changedTouches[0]:V,Q=function(q){var ee=document.createEvent("MouseEvents");return ee._dojo_click=!0,ee.initMouseEvent(q,!0,!0,V.view,V.detail,G.screenX,G.screenY,G.clientX,G.clientY,V.ctrlKey,V.altKey,V.shiftKey,V.metaKey,0,null),ee},J=Q("mousedown"),Y=Q("mouseup"),X=Q("click");setTimeout(function(){e.emit($,"mousedown",J),e.emit($,"mouseup",Y),e.emit($,"click",X),x=new Date().getTime()},0)}},!0);var H=function($){a.doc.addEventListener($,function(G){var Q=G.target;p&&!G._dojo_click&&new Date().getTime()<=x+1e3&&!(Q.tagName=="INPUT"&&d.contains(Q,"dijitOffScreen"))&&(G.stopPropagation(),G.stopImmediatePropagation&&G.stopImmediatePropagation(),$=="click"&&(Q.tagName!="INPUT"||Q.type=="radio"&&(d.contains(Q,"dijitCheckBoxInput")||d.contains(Q,"mblRadioButton"))||Q.type=="checkbox"&&(d.contains(Q,"dijitCheckBoxInput")||d.contains(Q,"mblCheckBox")))&&Q.tagName!="TEXTAREA"&&Q.tagName!="AUDIO"&&Q.tagName!="VIDEO"&&G.preventDefault())},!0)};H("click"),H("mousedown"),H("mouseup")}}}var B;t("touch")&&o(u?function(){a.doc.addEventListener(s.down,function(L){I(L,s.move,s.up)},!0)}:function(){B=a.body(),a.doc.addEventListener("touchstart",function(O){R=new Date().getTime();var W=B;B=O.target,e.emit(W,"dojotouchout",{relatedTarget:B,bubbles:!0}),e.emit(B,"dojotouchover",{relatedTarget:W,bubbles:!0}),I(O,"touchmove","touchend")},!0);function L(O){var W=n.delegate(O,{bubbles:!0});return t("ios")>=6&&(W.touches=O.touches,W.altKey=O.altKey,W.changedTouches=O.changedTouches,W.ctrlKey=O.ctrlKey,W.metaKey=O.metaKey,W.shiftKey=O.shiftKey,W.targetTouches=O.targetTouches),W}e(a.doc,"touchmove",function(O){R=new Date().getTime();var W=a.doc.elementFromPoint(O.pageX-(i?0:a.global.pageXOffset),O.pageY-(i?0:a.global.pageYOffset));W&&(B!==W&&(e.emit(B,"dojotouchout",{relatedTarget:W,bubbles:!0}),e.emit(W,"dojotouchover",{relatedTarget:B,bubbles:!0}),B=W),e.emit(W,"dojotouchmove",L(O))||O.preventDefault())}),e(a.doc,"touchend",function(O){R=new Date().getTime();var W=a.doc.elementFromPoint(O.pageX-(i?0:a.global.pageXOffset),O.pageY-(i?0:a.global.pageYOffset))||a.body();e.emit(W,"dojotouchend",L(O))})});var P={press:T("mousedown","touchstart",s.down),move:T("mousemove","dojotouchmove",s.move),release:T("mouseup","dojotouchend",s.up),cancel:T(r.leave,"touchcancel",u?s.cancel:null),over:T("mouseover","dojotouchover",s.over),out:T("mouseout","dojotouchout",s.out),enter:r._eventHandler(T("mouseover","dojotouchover",s.over)),leave:r._eventHandler(T("mouseout","dojotouchout",s.out))};return t("extend-dojo")&&(y.touch=P),P},_,M),_.exports=C},function(_,M,l){var A,C;A=[l(6),l(8),l.dj.c(_.i),l(43),l(0)],C=l.dj.d(A,function(y,m,h,d,n){var e=0,t=[],r=0,o=function(){e=1,y._postLoad=y.config.afterOnLoad=!0,a()},a=function(){if(!r){for(r=1;e&&(!d||d._Q.length==0)&&(h.idle?h.idle():!0)&&t.length;){var s=t.shift();try{s()}catch(c){if(c.info=c.message,h.signal)h.signal("error",c);else throw c}}r=0}};h.on&&h.on("idle",a),d&&(d._onQEmpty=a);var i=y.ready=y.addOnLoad=function(s,c,f){var p=n._toArray(arguments);typeof s!="number"?(f=c,c=s,s=1e3):p.shift(),f=f?n.hitch.apply(y,p):function(){c()},f.priority=s;for(var v=0;v=t[v].priority;v++);t.splice(v,0,f),a()};if(m.add("dojo-config-addOnLoad",1),m("dojo-config-addOnLoad")){var u=y.config.addOnLoad;u&&i[n.isArray(u)?"apply":"call"](y,u)}return m("dojo-sync-loader")&&y.config.parseOnLoad&&!y.isAsync&&i(99,function(){y.parser||(y.deprecated("Add explicit require(['dojo/parser']);","","2.0"),Promise.resolve().then(function(){l(145)}).catch(l.oe))}),d?d(o):o(),i},_,M),_.exports=C},function(_,M,l){var A,C,y=function(){function d(n,e){var t=[],r=!0,o=!1,a=void 0;try{for(var i=n[Symbol.iterator](),u;!(r=(u=i.next()).done)&&(t.push(u.value),!(e&&t.length===e));r=!0);}catch(s){o=!0,a=s}finally{try{!r&&i.return&&i.return()}finally{if(o)throw a}}return t}return function(n,e){if(Array.isArray(n))return n;if(Symbol.iterator in Object(n))return d(n,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=function(){function d(n,e){for(var t=0;t=i.rows.start&&s<=i.rows.end}},{key:"getRangeListForRange",value:function(o,a,i){var u=Math.max(a,o.dataSize.rows.start),s=Math.min(i,o.dataSize.rows.end);return[d.range().setRows(u,s).setColumns(0,0)]}},{key:"dynamicScrollTopCalculator",value:function(o,a){var i=this,u=function(c){c.top=a.viewPort.size.top,c.left=a.viewPort.size.left,i.calculateAndUpdateLogicalViewPort(a,c);var f=a.viewPort.size.height,p=a.getStateByKey("maxScrollHeight");p=p?p.value:a.dataSize.rows.count*n.nodeHeight;var v=f=E)return v;if(i.allRowInView(a.dataSize,a.viewBuffer)){for(var D=a.getStateByKey("bufferDataRendererd").value,F=o,w=0,x=0;D[x].index!==F&&Fw?w:T,w}var S=v=0;)v=f[D].height+v,D--;return v=v>p?v-p:0,v}for(var F=a.viewPort.size.top,w=0,x=f[w].index,R=w+(o-x),T=0,S=0,I=void 0;p>S&&R>=0;)T=f[R].height,S=T+S,I=f[R].index,R--;var B=S-p;B=B>0?B:0;var P=B>-1?I:0,L=T,O=n.nodeHeight/L*B;return F=P*n.nodeHeight+O,F};return u}},{key:"ArrayOfBufferNodeHeight",value:function(o){var a=[],i=o.getStateByKey("bufferDataRendererd");if(!i){for(var u=o.viewBuffer.rangeList[0],s=o.viewBuffer.rangeList[0].rows.end,c=o.dataSize.rows.end,f=c0)for(var p=0;p=s}},{key:"_calcMaxHeight",value:function(o,a){for(var i=0,u=void 0,s=void 0,c=o.length-1;c>=0&&(u=o[c].index,s=o[c].height,i+=s,!(i>a));c-=1);u=Math.max(u,0);var f=(i-a)/s,p=u,v=Math.floor(n.nodeHeight*(f+p));return[v+a,v]}},{key:"computeTranslateY",value:function(o){var a=o.viewBuffer.rangeList,i=Math.max(a[0].rows.start,0),u=o.viewPort.size.top,s=Math.floor(u/n.nodeHeight),c=s-i,f=this.ArrayOfBufferNodeHeight(o);if(f.length===0||this.allRowInView(o.dataSize,o.viewBuffer))return 0;for(var p=f.find(function(x){return x.index===s}),v=p?p.height:n.nodeHeight,g=0,E=0;Ec?c:u,t.updateLogicalViewPort(o,u,i,a)}},{key:"updateLogicalViewPort",value:function(o,a,i,u){var s=o.viewPort,c=0,f=0;if(u&&(s.size=u),typeof a=="number"&&a>=0){var p=o.dataSize.rows.end-(s.rangeList[0].rows.count-1),v=a>p?p:a;c=Math.max(v,o.dataSize.rows.start)}typeof i=="number"&&i>0?f=Math.max(0,c+i-1):f=Math.max(0,c+s.rangeList[0].rows.count-1);var g=s.rangeList;g[0]=g[0].setRows(c,f).setColumns(0,0),s.rangeList=g,o.viewPort=s}},{key:"getViewPortCount",value:function(o){for(var a=o.getStateByKey("bufferDataRendererd").value,i=o.viewPort.size.height,u=o.viewPort.size.top,s=this.getFirstVisibleRow(u,o),c=s.index,f=0,p=0,v=void 0,g=0;g=c&&(p+=v),!(p>i));g++);var E=p-i;if(E>0){var D=f-(c-1)-Math.round(E/v);return D}return f+1}},{key:"getPreviousViewPortCount",value:function(o,a){var i=o.getStateByKey("bufferDataRendererd");i=i&&i.value;var u=o.viewPort.size.height,s=0,c=0,f=!1,p=void 0,v=0;for(v=i.length-1;v>=0;v--)if(s=i[v].index,p=i[v].height,s<=a&&(c+=p),c>=u){f=!0;break}if(f){var g=a-(s-1),E=c-u;return g=g-Math.round(E/p),g}var D=u-c,F=Math.round(D/p),w=a+1-(s-F);return w}},{key:"getNextViewPortCount",value:function(o,a){var i=o.getStateByKey("bufferDataRendererd");i=i&&i.value;var u=o.viewPort.size.height,s=0,c=0,f=!1,p=void 0,v=0;for(v=0;v=a&&(c+=p),c>=u){f=!0;break}if(f){var g=s-a+1,E=c-u;return g=g-Math.round(E/p),g}var D=u-c,F=Math.round(D/p),w=s+F+1-a;return w}},{key:"getIndexForScrollTop",value:function(o,a){for(var i=0,u=0,s=0;su&&(f+=c);if(f>=i)break}return{physicalTotal:f,rowIndex:s,rowHeight:c}}},{key:"getFirstVisibleRow",value:function(o,a){var i=void 0;if(this.allRowInView(a.dataSize,a.viewBuffer)){var u=a.getStateByKey("bufferDataRendererd").value,s=t.getIndexForScrollTop(o,u),c=s.rowIndex,f=s.rowHeight,p=s.diff;return i=p%f!==0,{index:c+Math.round(p/f),isPartialVisible:i}}var v=Math.round(o/n.nodeHeight);return i=o%n.nodeHeight!==0,{index:v,isPartialVisible:i}}},{key:"getLastVisibleRow",value:function(o,a){var i=a.getStateByKey("bufferDataRendererd").value,u=a.viewPort.size.height,s=void 0;if(t.allRowInView(a.dataSize,a.viewBuffer)){var c=o+u,f=t.getIndexForScrollTop(c,i),p=f.rowIndex,v=f.rowHeight,g=f.diff,E=1-Math.round(g/v);return s=g%v!==0,{index:p-E,isPartialVisible:s}}else{var D=t.getPhysicalHeightTillLastRow(o,i,u),F=D.physicalTotal,w=D.rowIndex,x=D.rowHeight,R=Math.max(F-u,0);return s=R%x!==0,{index:w-Math.round(R/x),isPartialVisible:s}}}},{key:"updateDataBuffer",value:function(o,a){if(!(!a&&t.isViewPortRangeInDataBuffer(o))){var i=o.getStateByKey("lookAheadNodeBuffer").value,u=Math.max(o.dataSize.rows.start,o.viewPort.rangeList[0].rows.start-i),s=o.viewPort.rangeList[0].rows.end+i;o.viewBuffer={size:null,rangeList:[d.range().setRows(u,s).setColumns(0,0)]}}}},{key:"isTreeNodeCompletelyInsideViewPort",value:function(o,a){var i=t.getFirstVisibleRow(a.viewPort.size.top,a),u=i.index,s=i.isPartialVisible,c=t.getLastVisibleRow(a.viewPort.size.top,a),f=c.index,p=c.isPartialVisible;return o===u?!s:o===f?!p:o>u&&o ]/;y([],m=function(a,n){"use strict";h=n||h;var e=/(?:\s*([-+ ,<>]))?\s*(\.|!\.?|#)?([-\w\u00A0-\uFFFF%$|]+)?(?:\[([^\]=]+)=?['"]?([^\]'"]*)['"]?\])?/g,t,r,o=!1,a=a||document,i=typeof a.createElement=="object";function u(c,f){c.appendChild(a.createTextNode(f))}function s(c){var f,p,v,g,E,D=arguments,F=D[0];function w(){E&&g&&E!=g&&(g==c&&(f||(f=h.test(R)&&a.createDocumentFragment()))?f:g).insertBefore(E,v||null)}for(var x=0;x'),E=o&&~(r=j.indexOf("|"))?a.createElementNS(o[j.slice(0,r)],j.slice(r+1)):a.createElement(j)}if(P)if(L=="$"&&(L=D[++x]),P=="#")E.id=L;else{var H=E.className,V=H&&(" "+H+" ").replace(" "+L+" "," ");if(P==".")E.className=H?(V+L).substring(1):L;else if(R=="!"){var $;i?s("div",E,"<").innerHTML="":($=E.parentNode)&&$.removeChild(E)}else V=V.substring(1,V.length-1),V!=H&&(E.className=V)}if(O)if(W=="$"&&(W=D[++x]),O=="style")E.style.cssText=W;else{var G=O.charAt(0)=="!"?(O=O.substring(1))&&"removeAttribute":"setAttribute";W=W===""?O:W,o&&~(r=O.indexOf("|"))?E[G+"NS"](o[O.slice(0,r)],O.slice(r+1),W):E[G](O,W)}return""});if(S)throw new SyntaxError("Unexpected char "+S+" in "+R);w(),g=F=E||g}}return c&&f&&c.appendChild(f),F}return s.addNamespace=function(c,f){a.createElementNS?(o||(o={}))[c]=f:a.namespaces.add(c,f)},s.defaultTag="div",s.forDocument=m,s})})(function(y,m,h){h=h||m,A=[],C=l.dj.d(A,function(){return h()},_,M),_.exports=C})},function(_,M,l){var A,C;A=[],C=l.dj.d(A,function(){"use strict";var y=Object.freeze({MOUSE_LEFT_BUTTON:0,MOUSE_MIDDLE_BUTTON:1,MOUSE_RIGHT_BUTTON:2});return y},_,M),_.exports=C},function(_,M,l){var A,C,y=function(){function d(n,e){var t=[],r=!0,o=!1,a=void 0;try{for(var i=n[Symbol.iterator](),u;!(r=(u=i.next()).done)&&(t.push(u.value),!(e&&t.length===e));r=!0);}catch(s){o=!0,a=s}finally{try{!r&&i.return&&i.return()}finally{if(o)throw a}}return t}return function(n,e){if(Array.isArray(n))return n;if(Symbol.iterator in Object(n))return d(n,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=function(){function d(n,e){for(var t=0;t0},f=function(D){return D.dataIndex>=0},p=function(D){return D.width.unit==="px"||D.width.unit==="%"&&!D.parentId||D.width.unit===""||!D.width.value&&!D.width.unit},v=function(){function E(){h(this,E)}return m(E,null,[{key:"getLevelsOfHeaders",value:function(){return i()}},{key:"parseViewModelWithConfig",value:function(F){var w=F.columnModel,x=w===void 0?{}:w,R=F.viewModel,T=R===void 0?{}:R,S=F.attributes,I=S===void 0?{}:S,B=d.alt(E.initializeConfiguredHeaders,function(){return{columns:[]}},{columnConfig:x.columnConfig}),P=B.spanning,L=B.columns,O=L||[],W=E.validateColPct(O),j=y(W,2),K=j[0],H=j[1],V=E.initialColumnHeaderConfig(x.columnHeaderConfig);return g(O,H,K),T.setColumnHeaderConfig(V),T.setColumnHeaders(O),T.setSpanningHeaders(P),E.setAttributes(T,I),T}},{key:"initialColumnHeaderConfig",value:function(F){return Object.assign({},a,F)}},{key:"enoughColumnsToPage",value:function(F){return F>=e.buffers.UNPAGED_COL_LIMIT}},{key:"notEnoughColumnsToPage",value:function(F){return!E.enoughColumnsToPage(F)}},{key:"parseHeaderConfig",value:function(F,w){var x=F.label,R=x===void 0?null:x,T=F.dataIndex,S=T===void 0?-1:T,I=F.width,B=I===void 0?{}:I,P=F.renderer,L=P===void 0?null:P,O=F.editor,W=O===void 0?null:O,j=F.interactiveRenderer,K=j===void 0?null:j,H=F.sortType,V=H===void 0?"":H,$=F.sortFirst,G=$===void 0?void 0:$,Q=F.hidden,J=Q===void 0?!1:Q,Y=F.hideable,X=Y===void 0?!0:Y,Z=F.readonly,q=Z===void 0?!1:Z,ee=F.columnId,re=ee===void 0?null:ee,he=F.headerMenu,me=he===void 0?!1:he,se=F.headerRenderer,te=se===void 0?null:se,oe=F.headerEditor,ue=oe===void 0?null:oe,ce=F.parentId,ve=ce===void 0?void 0:ce,Se=F.colStartIndex,Be=Se===void 0?-1:Se,ke=F.colEndIndex,Ge=ke===void 0?-1:ke,rt=F.reorder,ut=rt===void 0?!0:rt,ht=F.columnHeaderIndex,dt=ht===void 0?-1:ht,Tt=F.resizable,Ot=Tt===void 0?void 0:Tt;K&&(W=null,L=null);var Ct={label:R,dataIndex:S,width:B,renderer:L,editor:W,interactiveRenderer:K,sortType:V,sortFirst:G,hidden:J,hideable:X,readonly:q,columnId:re!==null?re.toString():w.toString(),headerMenu:me,headerRenderer:te,headerEditor:ue,colStartIndex:Be,colEndIndex:Ge,parentId:ve,reorder:ut,columnHeaderIndex:dt,resizable:Ot};return n.fromType(f,Ct).filter(p).orElse(null)}},{key:"initializeConfiguredHeaders",value:function(F){var w=F.columnConfig,x=w===void 0?[]:w,R=u({children:x}),T=s(R.spanningConfig),S=n.fromType(c,R.columns).chain(function(I){return I.map(E.parseHeaderConfig)}).chain(function(I){return I.filter(function(B){return B})});return{spanning:T,columns:S.orElse(null)}}},{key:"validateColPct",value:function(F){var w=0,x=0,R=-1;F.forEach(function(S,I){if(S.width&&E.validateGeoVal(S.width,"%")){var B=Math.abs(S.width.value);w+=B,B>x&&(R=I,x=B)}});var T=100-w;return T<1&&(R=-1),[T,R]}},{key:"getTbodyHeaderClass",value:function(F){return F?"mw-tbody-all-columns":"mw-tbody-paged-columns"}},{key:"getTableHeaderClass",value:function(F){return F?"":"mw-table-paged-columns"}},{key:"getPercentColumnPageWidth",value:function(F){var w=F.headers,x=w===void 0?[]:w,R=F.allColumnsRendered,T=R===void 0?!1:R;function S(I){if(I.width)return I.width.unit==="%"}return T&&d.find(x,S)?"100%":null}},{key:"validateGeoVal",value:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},w=F.value,x=F.unit,R=arguments[1];return!isNaN(parseFloat(w))&&w!==1/0&&(!R||x===R)}},{key:"validateForNaturalNumber",value:function(F){var w=function(){return!(F!==void 0&&(typeof F!="number"||!Number.isInteger(F)||F<=0))}();if(!w)throw new Error("Error: Invalid numberOfGutters option, numberOfGutters should be a natural number")}},{key:"setAttributes",value:function(F,w){function x(K,H){H=Math.max(e.dimensions.ABSOLUTE_MIN,H),E.validateGeoVal({value:H})&&F.setState(K,H)}function R(K,H){r.hasOwnProperty(H)&&F.setState(K,H)}function T(K,H){F.setState(K,H)}function S(K,H){F.setState(K,H)}function I(K,H){F.setState(K,H)}function B(K,H){E.validateForNaturalNumber(H),F.setState(K,H)}for(var P=function(H){switch(H){case"minColWidth":return x.bind(this,t.COL_WIDTH);case"minRowHeight":return x.bind(this,t.ROW_HEIGHT);case"gridStyle":return R.bind(this,t.protected.GRID_STYLE);case"groupedColumns":return I.bind(this,t.protected.GROUPED_COLUMN_HEADERS);case"numberOfGutters":return B.bind(this,"numberOfGutters");case"useEditorRendererDataFields":return T.bind(this,t.protected.USE_DATA_FIELDS);case"resizeSelection":return S.bind(this,t.protected.RESIZE_SELECTION);default:return function(V){return V}}},L=Object.keys(w),O=L.length,W=void 0,j=0;j1&&arguments[1]!==void 0?arguments[1]:-1,F=arguments[2];return D>-1&&(E[D].width.value+=F),E}},_,M),_.exports=C},function(_,M,l){"use strict";var A,C;A=[l(182),l(184),l(183),l(286),l(69)],C=l.dj.d(A,function(y,m,h,d,n){let{MIME_TYPES:e,TypeMetaDataEnum:t}=n;const r={setEventClipboardData(o,a){let i={[e.KIND_FILE]:u=>{let s=u.getAsFile();o.add(s)},[e.KIND_STRING]:u=>{o.add(a.getData(u.type),u.type)}};for(let u=0;uy.checkImageType(a.type))},getMimeMetaData(o,a,i){return i?t.useNavigatorClipboard:a&&m.isCopyEvent(a)&&m.isEventRunningNow(a)?t.FROM_COPY_EVENT:r.hasOnlyTextMimeType(o)?t.ONLY_TEXT:r.hasImageMimeType(o)?t.CONTAINS_IMAGE:t.OTHERS},isDataTransferConstructor(){try{new window.DataTransfer}catch(o){return!1}return!0},isDataTransferValid(o){if(!o)return!1;let a=o.types;return!(!a||(!Array.isArray(a)||a.length===0)&&o.items&&o.items.length===0)},getDataTransferString(o){if(!o)return"dataTransfer is null";let a=o.types;if(!a||a.length===0||!a[0])return"dataTransfer has no mime types";let i="";for(let u=0;uy.checkImageType(u.type)?r.readBase64FromImage(u.getAsFile(),u.type):Promise.resolve(null),[e.KIND_STRING]:u=>{let s=o.getData(u.type);return u.type===e.TEXT_URI_LIST?a[e.TEXT_URI_LIST](u):Promise.resolve({flavor:u.type,content:s})},[e.TEXT_URI_LIST]:u=>Promise.resolve({flavor:u.type,content:o.getUrls(),mode:o.getAction()})},i=[];for(let u=0;u({contents:u.filter(c=>!!c)}))},convertServerFormatToDataTransfer(o,a){let i=o.contents||[],u=Object.keys(i),s={[e.IMAGE]:(c,f)=>{if(typeof f!="object")return;let p;if(f.__value__&&(p=f.__value__),f instanceof Image&&(p=f.src),!p)return;let v=p.split(",");if(v.length<2)return;let g=v[1],E=h.convert(g),D=d.convert(c);a.items.add(new File([E],D,{type:"image/png"}))},[e.TEXT_URI_LIST]:(c,f)=>{a.setUrls(f)}};return u.forEach(c=>{let f=i[c];if(y.checkImageType(c)){s[e.IMAGE](c,f);return}if(s[c]){s[c](c,f);return}a.items.add(f,c)}),a},compareStringData(o,a){let i=Array.from(o.types),u=Array.from(a.types);if(i.length!==u.length||!i.every(s=>u.includes(s)))return!1;if(o.files.length===0&&a.files.length===0)return i.every(s=>o.getData(s)===a.getData(s))},compare(o,a){const i=r.compareStringData(o,a);return typeof i=="boolean"?Promise.resolve(i):r.compareFiles(o.files,a.files)},compareFiles(o,a){const i=[];for(let u=0;uu.every(s=>s))},_compareFile(o,a){return o.size!==a.size?Promise.resolve(!1):Promise.all([r._readFileAsDataURL(o),r._readFileAsDataURL(a)]).then(i=>{let u=i[0],s=i[1];return u===s})},_readFileAsDataURL(o){return new Promise(a=>{const i=new FileReader;i.onload=function(){a(i.result)},i.readAsDataURL(o)})}};return r},_,M),_.exports=C},function(_,M,l){var A,C;A=[],C=l.dj.d(A,function(){var y=Object.freeze({HEADER_LABEL:"mw-header-label",HEADER_INDEX:"mw-header-index",ROW_HEADER_LABEL:"mw-row-header-label",RESIZE_AFFORDANCE:"mw-table-resize-affordance",RESIZE_SELECTION_AFFORDANCE:"mw-table-resize-selection",RESIZE_AFFORDANCE_PLACEHOLDER:"mwTableHeaderAffordancePlaceholder"});return y},_,M),_.exports=C},function(_,M,l){"use strict";var A,C;A=[],C=l.dj.d(A,function(){return{INACTIVE:"inactive",POSSIBLE:"possible",WAITING:"waiting",BEGAN:"began",PROGRESS:"progress",RECOGNIZED:"recognized",CANCELLED:"cancelled",DISABLED:"disabled"}},_,M),_.exports=C},function(_,M,l){"use strict";var A,C;A=[l(190)],C=l.dj.d(A,function(y){var m=y.DIRECTION_UP,h=y.DIRECTION_RIGHT,d=y.DIRECTION_DOWN,n=y.DIRECTION_LEFT,e=y.DIRECTION_NONE,t=function(v){return v.x},r=function(v){return v.y},o=function(v){return{max:{x:Math.max.apply(null,v.map(t)),y:Math.max.apply(null,v.map(r))},min:{x:Math.min.apply(null,v.map(t)),y:Math.min.apply(null,v.map(r))}}},a=function(v,g){return{x:g.x-v.x,y:g.y-v.y}},i=function(v,g){return u(a(v,g))},u=function(v){var g=Math.pow(v.x,2),E=Math.pow(v.y,2);return Math.sqrt(g+E)},s=function(v,g){var E=Math.atan2(v.y-g.y,v.x-g.x);return E*(180/Math.PI)},c=function(v,g){return{x:(v.x+g.x)/2,y:(v.y+g.y)/2}},f=function(v,g){var E=e,D=g.x-v.x,F=g.y-v.y;return(D!==0||F!==0)&&(Math.abs(D)>Math.abs(F)?E=D<0?n:h:E=F<0?m:d),E};return{arePointsWithinRadius:function(v,g,E){var D=void 0,F=void 0,w=void 0;return!v||!g?!1:(D=v.x-g.x,F=v.y-g.y,w=Math.sqrt(D*D+F*F),w1?v-1:0),E=1;E2&&arguments[2]!==void 0?arguments[2]:!1,E=["."+r.INSERTION_LINE_CLASS,"."+r.CONTAINER],D={allowGlobal:g,dropTarget:r.TARGET_SELECTOR_TABLE_ROW,rowRegions:v,lifecycle:p},F=E.map(function(w){return{allowGlobal:g,dropTarget:w,lifecycle:p}});return F.concat(D)}},{key:"debounceCheckForDragOut",value:function(p,v,g){return function(){p.currentDndLifeCycle=v,p.checktimer&&clearTimeout(p.checktimer),p.checktimer=setTimeout(function(){return c.removeInsertionLineOnLastTarget(p,g)},a)}}},{key:"removeInsertionLineOnLastTarget",value:function(p,v){p.currentDndLifeCycle===r.targetLifeCycle.LEAVE&&c.removeInsertionLine(v)}},{key:"clearDnDContext",value:function(p,v){return document.removeEventListener("mouseup",p._mouseupFn),p._mouseupFn=null,v(e.internal.DRAG_END),p.destroy()}},{key:"setAvatar",value:function(p,v,g,E){var D=c.getAvatarNode(p,v,g,E),F=D.avatarNode,w=D.count;g.setAvatar(F,w)}},{key:"getAvatarNode",value:function(p,v,g,E){var D=void 0,F=s(v);if(E){var w=E({dataTransferItem:g});w&&w.node&&(D=w.node)}return D=D||document.createTextNode(p.textContent),{avatarNode:D,count:F}}},{key:"startAction",value:function(p,v){v(e.internal.DRAG_STARTED,p)}},{key:"endAction",value:function(p){c.removeInsertionLine(p),p(e.internal.DRAG_END)}}]),c}();return i;function u(c,f,p,v){var g=p.allowGlobal,E=g===void 0?!1:g,D=p.lifecycle;return i.sourceLifecycleDecorator(D,c,v),c.createDragSource({dragSource:f,allowGlobal:E,lifecycle:D}),c}function s(c){var f=c.dndSourceDataToDropOutside,p=c.internalRowDndSourceData,v=c.columnDnDSourceData,g=1;return v?g=v.count:(f&&(g=f.count),p&&(g=p.count)),g}},_,M),_.exports=C},function(_,M,l){var A,C;A=[l(6),l(4),l(27),l(17),l(327),l(54),l(86),l(0),l(55)],C=l.dj.d(A,function(y,m,h,d,n,e,t,r){t.add("events-keypress-typed",function(){var v={charCode:0};try{v=document.createEvent("KeyboardEvent"),(v.initKeyboardEvent||v.initKeyEvent).call(v,"keypress",!0,!0,null,!1,!1,!1,!1,9,3)}catch(g){}return v.charCode==0&&!t("opera")});function o(v,g,E,D,F){if(D=r.hitch(E,D),!v||!(v.addEventListener||v.attachEvent))return d.after(v||y.global,g,D,!0);if(typeof g=="string"&&g.substring(0,2)=="on"&&(g=g.substring(2)),v||(v=y.global),!F)switch(g){case"keypress":g=c;break;case"mouseenter":g=e.enter;break;case"mouseleave":g=e.leave;break}return m(v,g,D,F)}var a={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},i=t("mac")?"metaKey":"ctrlKey",u=function(v,g){var E=r.mixin({},v,g);return s(E),E.preventDefault=function(){v.preventDefault()},E.stopPropagation=function(){v.stopPropagation()},E};function s(v){v.keyChar=v.charCode?String.fromCharCode(v.charCode):"",v.charOrCode=v.keyChar||v.keyCode}var c;if(t("events-keypress-typed")){var f=function(v,g){try{return v.keyCode=g}catch(E){return 0}};c=function(v,g){var E=m(v,"keydown",function(F){var w=F.keyCode,x=w!=13&&w!=32&&(w!=27||!t("ie"))&&(w<48||w>90)&&(w<96||w>111)&&(w<186||w>192)&&(w<219||w>222)&&w!=229;if(x||F.ctrlKey){var R=x?0:w;if(F.ctrlKey){if(w==3||w==13)return g.call(F.currentTarget,F);R>95&&R<106?R-=48:!F.shiftKey&&R>=65&&R<=90?R+=32:R=a[R]||R}var T=u(F,{type:"keypress",faux:!0,charCode:R});g.call(F.currentTarget,T),t("ie")&&f(F,T.keyCode)}}),D=m(v,"keypress",function(F){var w=F.charCode;return w=w>=32?w:0,F=u(F,{charCode:w,faux:!0}),g.call(this,F)});return{remove:function(){E.remove(),D.remove()}}}}else t("opera")?c=function(v,g){return m(v,"keypress",function(E){var D=E.which;return D==3&&(D=99),D=D<32&&!E.shiftKey?0:D,E.ctrlKey&&!E.shiftKey&&D>=65&&D<=90&&(D+=32),g.call(this,u(E,{charCode:D}))})}:c=function(v,g){return m(v,"keypress",function(E){return s(E),g.call(this,E)})};var p={_keypress:c,connect:function(v,g,E,D,F){var w=arguments,x=[],R=0;x.push(typeof w[0]=="string"?null:w[R++],w[R++]);var T=w[R+1];x.push(typeof T=="string"||typeof T=="function"?w[R++]:null,w[R++]);for(var S=w.length;R=2||typeof v=="object"?this.set.apply(this,arguments):this.get(v)},getDescendants:function(){return e.deprecated(this.declaredClass+"::getDescendants() is deprecated. Use getChildren() instead.","","2.0"),this.containerNode?r("[widgetId]",this.containerNode).map(a.byNode):[]},_onShow:function(){this.onShow()},onShow:function(){},onHide:function(){},onClose:function(){return!0}});return n("dijit-legacy-requires")&&o(0,function(){var v=["dijit/_base"];require(v)}),p},_,M),_.exports=C},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(8)],__WEBPACK_AMD_DEFINE_RESULT__=__webpack_require__.dj.d(__WEBPACK_AMD_DEFINE_ARRAY__,function(has){"use strict";var hasJSON=typeof JSON!="undefined";if(has.add("json-parse",hasJSON),has.add("json-stringify",hasJSON&&JSON.stringify({a:0},function(_,M){return M||1})=='{"a":1}'),has("json-stringify"))return JSON;var escapeString=function(_){return('"'+_.replace(/(["\\])/g,"\\$1")+'"').replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")};return{parse:has("json-parse")?JSON.parse:function(str,strict){if(strict&&!/^([\s\[\{]*(?:"(?:\\.|[^"])*"|-?\d[\d\.]*(?:[Ee][+-]?\d+)?|null|true|false|)[\s\]\}]*(?:,|:|$))+$/.test(str))throw new SyntaxError("Invalid characters in JSON");return eval("("+str+")")},stringify:function(_,M,l){var A;typeof M=="string"&&(l=M,M=null);function C(y,m,h){M&&(y=M(h,y));var d,n=typeof y;if(n=="number")return isFinite(y)?y+"":"null";if(n=="boolean")return y+"";if(y===null)return"null";if(typeof y=="string")return escapeString(y);if(n=="function"||n=="undefined")return A;if(typeof y.toJSON=="function")return C(y.toJSON(h),m,h);if(y instanceof Date)return'"{FullYear}-{Month+}-{Date}T{Hours}:{Minutes}:{Seconds}Z"'.replace(/\{(\w+)(\+)?\}/g,function(c,f,p){var v=y["getUTC"+f]()+(p?1:0);return v<10?"0"+v:v});if(y.valueOf()!==y)return C(y.valueOf(),m,h);var e=l?m+l:"",t=l?" ":"",r=l?` `:"";if(y instanceof Array){var o=y.length,a=[];for(h=0;h0){var i=r(y.range(),0,1/0);i=t(i,e[0],e[0]);for(var u=0;u(o||(o=y(r),t.isStarted()&&o.start(),e(t,o)),o),a[h.MATLAB_SERVICE_HOST.name]=()=>t,t.create=function(i){return d(a,i)},t},_,M),_.exports=C},function(_,M,l){"use strict";var A,C;A=[l(1),l(169),l(13),l(571),l(67)],C=l.dj.d(A,function(y,m,h,d,n){const e=function(){let t,r;return{promise:new Promise(function(a,i){t=a,r=i}),resolve:t,reject:r}};return y(null,{constructor:function(t,r){h.assert(t!==void 0,"connectionData must be defined"),h.assert(r!==void 0,"channelPostfix must be defined"),this._subscriptionPromises=[],this._subscribeArgs=[],this._requestPromiseMap={},this._connectionData=t,this._connectionData.onChannelPrefix().then(function(o){this._channelPrefix=o+"/"+r,this._requestChannel=this._channelPrefix+"/request"}.bind(this),function(o){}),this._subscribeImpl("response","_handleResponse",this).catch(function(o){}),this._cancelPendingSubscriptions=!1},subscribe:function(t,r,o){const a=function(i){Promise.resolve(i).then(function(u){o?o[r](u):r(u)})};return this._subscribeImpl(t,a)},makeRequest:function(t,r,o){const a=n.generateUuid(),i=function(){a in this._requestPromiseMap&&delete this._requestPromiseMap[a]}.bind(this),u=e();let s=u.promise.then(function(c){return i(),c},function(c){throw i(),c});if(this._requestPromiseMap[a]={resolve:u.resolve,reject:u.reject},t.requestID=a,this._connectionData.queueRequest(this._subscriptionPromises,function(){this._connectionData.getMessageService().publish(this._requestChannel,t).catch(function(c){u.reject(new m(d.inCOMM_ERROR,c))})}.bind(this),function(c){u.reject(c)}),r!==void 0){const c=setTimeout(this._handleTimeout.bind(this,a,o),r);s=s.finally(function(){clearTimeout(c)})}return s},destroy:function(t){if(t===void 0&&(t=!0),t)for(const r in this._requestPromiseMap)this._requestPromiseMap[r].reject("mvm is being destroyed");for(this._cancelPendingSubscriptions=!0;this._subscribeArgs.length>0;){const r=this._subscribeArgs.shift();this._connectionData.getMessageService().unsubscribe(...r).then(function(){},function(a){})}},_subscribeImpl:function(t,r,o){const a=e();return this._subscriptionPromises.push(a.promise),this._connectionData.onChannelPrefix().then(async function(){if(this._cancelPendingSubscriptions){a.resolve();return}let i;o?i=[this._channelPrefix+"/"+t,r,o]:i=[this._channelPrefix+"/"+t,r],this._subscribeArgs.push(i);try{await this._connectionData.getMessageService().subscribe(...i),a.resolve()}catch(u){a.reject(u)}}.bind(this),function(i){a.reject(i)}),a.promise},_handleTimeout:function(t,r){if(t in this._requestPromiseMap){const o=this._requestPromiseMap[t];delete this._requestPromiseMap[t],o.reject("Canceled because of timeout")}r!==void 0&&r(t,!0)},_handleResponse:function(t){const r=t.data;if(r.requestID in this._requestPromiseMap)if(r.error===void 0)this._requestPromiseMap[r.requestID].resolve(r);else{const o=new m(r.error.status,r.error.msg,r.error.id,r.error.functionName,r.error.frames,r.error.causes);this._requestPromiseMap[r.requestID].reject(o)}}})},_,M),_.exports=C},function(_,M,l){var A,C;A=[],C=l.dj.d(A,function(){return Object.freeze({SHOW:"show",IDLE:"idle",WAITING:"waiting",CURRENT_ACTIVE_ELEMENT:"activeElement",CLOSED_EXTERNALLY:"closedExternally",FOCUS_WITHIN:"focusWithin"})},_,M),_.exports=C},function(_,M,l){var A,C,y=function(){function h(d,n){for(var e=0;e(y.stopPropagation(),y.preventDefault(),!1)},_,M),_.exports=C},function(_,M,l){"use strict";var A,C;A=[l(817),l(314),l(37),l(313)],C=l.dj.d(A,function(y,m,h,d){return{comment:{style:"comment"},blockBegin:[],blockEnd:[],parse:function(n){const e=this,t=new y,r=e.setup(t),o=t.splitLines(n),a=t.startState(r);return o.map(function(u,s){const c=e.parseLineForTokens(u,r,a),f=c.map(function(g){return g.token}).join(""),p=c.filter(function(g){return g.style!==e.comment.style}).map(function(g){return g.token}).join(""),v=Boolean(p.trim());return{id:s+1,rawCode:f,tokens:c,cutoff:p.length,isCodeLine:v}})},parseLineForTokens:function(n,e,t){const r=this,o=new m(n);!o.streing&&e.blankLine&&e.blankLine(t);let a=[];for(;!o.eol();){const i=e.token(o,t),u=new d(o.current(),i),s=r.slHook(u,e,t);a=a.concat(s),o.start=o.pos}return a},createNodes:function(n){return n.map(e=>{const t=document.createElement("span"),r=e.token,o=e.style;o&&o.trim().split(" ").forEach(i=>t.classList.add(i));for(let a=0;as!==o.id),o.spaces=o.up.map(s=>{const c=n[s-1],f=c.tokens;let p=f[0];for(;p&&!p.token.trim();)p=p.next;let v=f[f.length-1];for(;v&&!v.token.trim();)v=v.prev;if(p.scope===v.scope)return c.indentSpace;{let g=p.prev;for(;g&&g.scope>v.scope;)g=g.prev;return g?n[g.line-1].indentSpace:c.indentSpace}})}},assignLineScope:function(n,e,t,r,o){for(let a=0;a{const e=n.token,t=/&#\w+;/g;n.token=e.replace(t,h.html2text)},detectPattern:(n,e,t,r)=>{const o=n.token,a=o.match(e);if(a===null)return[n];const i=a[0];let u=a.index,s=u+i.length;u+=r,s-=r;const c=o.slice(0,u),f=o.slice(u,s),p=o.slice(s),v={token:c,style:n.style},g={token:f,style:n.style,type:t},E={token:p,style:n.style};return[v,g,E].filter(function(F){return F.token})}}},_,M),_.exports=C},function(_,M,l){var A;A=function(){return typeof global!="undefined"&&typeof global!="function"?global:typeof window!="undefined"?window:typeof self!="undefined"?self:this}.call(null,l,M,_),A!==void 0&&(_.exports=A)},function(_,M,l){var A,C;A=[l(137)],C=l.dj.d(A,function(y){return y("CancelError",null,null,{dojoType:"cancel",log:!1})},_,M),_.exports=C},function(_,M,l){var A,C;A=[l(0)],C=l.dj.d(A,function(y){"use strict";function m(){throw new TypeError("abstract")}return y.extend(function(){},{then:function(h,d,n){m()},cancel:function(h,d){m()},isResolved:function(){m()},isRejected:function(){m()},isFulfilled:function(){m()},isCanceled:function(){m()},finally:function(h){return this.then(function(d){var n=h();return n&&typeof n.then=="function"?n.then(function(){return d}):d},function(d){var n=h();if(n&&typeof n.then=="function")return n.then(function(){throw d});throw d})},always:function(h){return this.then(h,h)},catch:function(h){return this.then(null,h)},otherwise:function(h){return this.then(null,h)},trace:function(){return this},traceRejected:function(){return this},toString:function(){return"[object Promise]"}})},_,M),_.exports=C},function(_,M,l){var A,C;A=[l(9),l(12),l(34),l(14),l(0),l(18),l(44)],C=l.dj.d(A,function(y,m,h,d,n,e,t){var r,o={_isElementShown:function(a){var i=d.get(a);return i.visibility!="hidden"&&i.visibility!="collapsed"&&i.display!="none"&&h.get(a,"type")!="hidden"},hasDefaultTabStop:function(a){switch(a.nodeName.toLowerCase()){case"a":return h.has(a,"href");case"area":case"button":case"input":case"object":case"select":case"textarea":return!0;case"iframe":var i;try{var u=a.contentDocument;if("designMode"in u&&u.designMode=="on")return!0;i=u.body}catch(s){try{i=a.contentWindow.document.body}catch(c){return!1}}return i&&(i.contentEditable=="true"||i.firstChild&&i.firstChild.contentEditable=="true");default:return a.contentEditable=="true"}},effectiveTabIndex:function(a){return h.get(a,"disabled")?r:h.has(a,"tabIndex")?+h.get(a,"tabIndex"):o.hasDefaultTabStop(a)?0:r},isTabNavigable:function(a){return o.effectiveTabIndex(a)>=0},isFocusable:function(a){return o.effectiveTabIndex(a)>=-1},_getTabNavigable:function(a){var i,u,s,c,f,p,v={};function g(x){return x&&x.tagName.toLowerCase()=="input"&&x.type&&x.type.toLowerCase()=="radio"&&x.name&&x.name.toLowerCase()}var E=o._isElementShown,D=o.effectiveTabIndex,F=function(x){for(var R=x.firstChild;R;R=R.nextSibling)if(!(R.nodeType!=1||e("ie")<=9&&R.scopeName!=="HTML"||!E(R))){var T=D(R);if(T>=0){T==0?(i||(i=R),u=R):T>0&&((!s||T=p)&&(p=T,f=R));var S=g(R);h.get(R,"checked")&&S&&(v[S]=R)}R.nodeName.toUpperCase()!="SELECT"&&F(R)}};E(a)&&F(a);function w(x){return v[g(x)]||x}return{first:w(i),last:w(u),lowest:w(s),highest:w(f)}},getFirstInTabbingOrder:function(a,i){var u=o._getTabNavigable(m.byId(a,i));return u.lowest?u.lowest:u.first},getLastInTabbingOrder:function(a,i){var u=o._getTabNavigable(m.byId(a,i));return u.last?u.last:u.highest}};return e("extend-dojo")&&n.mixin(t,o),o},_,M),_.exports=C},function(_,M,l){var A,C;A=[M,l(141),l(104),l(20),l(47),l(9),l(0),l(105),l(8)],C=l.dj.d(A,function(y,m,h,d,n,e,t,r,o){function a(g){return o("native-arraybuffer")&&g instanceof ArrayBuffer}function i(g){return o("native-blob")&&g instanceof Blob}function u(g){return typeof Element!="undefined"?g instanceof Element:g.nodeType===1}function s(g){return o("native-formdata")&&g instanceof FormData}function c(g){return g&&typeof g=="object"&&!s(g)&&!u(g)&&!i(g)&&!a(g)}y.deepCopy=function(g,E){for(var D in E){var F=g[D],w=E[D];D!=="__proto__"&&F!==w&&(c(w)?Object.prototype.toString.call(w)==="[object Date]"?g[D]=new Date(w):t.isArray(w)?g[D]=y.deepCopyArray(w):F&&typeof F=="object"?y.deepCopy(F,w):g[D]=y.deepCopy({},w):g[D]=w)}return g},y.deepCopyArray=function(g){for(var E=[],D=0,F=g.length;D=200&&g<300||g===304||g===1223||!g}},_,M),_.exports=C},function(_,M,l){var A,C;A=[l(60),l(4),l(43),l(18),l(45)],C=l.dj.d(A,function(y,m,h,d,n){var e=new y,t;return h(function(){var r=n.getBox();if(e._rlh=m(window,"resize",function(){var a=n.getBox();r.h==a.h&&r.w==a.w||(r=a,e.emit("resize"))}),d("ie")==8){var o=screen.deviceXDPI;setInterval(function(){screen.deviceXDPI!=o&&(o=screen.deviceXDPI,e.emit("resize"))},500)}d("ios")&&(m(document,"focusin",function(a){t=a.target}),m(document,"focusout",function(a){t=null}))}),e.getEffectiveBox=function(r){var o=n.getBox(r),a=t&&t.tagName&&t.tagName.toLowerCase();if(d("ios")&&t&&!t.readOnly&&(a=="textarea"||a=="input"&&/^(color|email|number|password|search|tel|text|url)$/.test(t.type))){o.h*=orientation==0||orientation==180?.66:.4;var i=t.getBoundingClientRect();o.h=Math.max(o.h,i.top+i.height)}return o},e},_,M),_.exports=C},function(_,M,l){var A,C;A=[l(6),l(86),l.dj.c(_.i),l(47),l(12),l(351),l(40),l(26),l(352),l(0),l(9),l(4),l(17),l(142),l(140),l(107)],C=l.dj.d(A,function(y,m,h,d,n,e,t,r,o,a,i,u,s,c,f,p){y._xhrObj=f._create;var v=y.config;y.objectToQuery=d.objectToQuery,y.queryToObject=d.queryToObject,y.fieldToObject=e.fieldToObject,y.formToObject=e.toObject,y.formToQuery=e.toQuery,y.formToJson=e.toJson,y._blockAsync=!1;var g=y._contentHandlers=y.contentHandlers={text:function(R){return R.responseText},json:function(R){return o.fromJson(R.responseText||null)},"json-comment-filtered":function(R){r.useCommentedJson||console.warn(`Consider using the standard mimetype:application/json. json-commenting can introduce security issues. To decrease the chances of hijacking, use the standard the 'json' handler and prefix your json with: {}&& Use djConfig.useCommentedJson=true to turn off this message.`);var T=R.responseText,S=T.indexOf("/*"),I=T.lastIndexOf("*/");if(S==-1||I==-1)throw new Error("JSON was not comment filtered");return o.fromJson(T.substring(S+2,I))},javascript:function(R){return y.eval(R.responseText)},xml:function(R){var T=R.responseXML;if(T&&m("dom-qsa2.1")&&!T.querySelectorAll&&m("dom-parser")&&(T=new DOMParser().parseFromString(R.responseText,"application/xml")),m("ie")&&(!T||!T.documentElement)){var S=function(B){return"MSXML"+B+".DOMDocument"},I=["Microsoft.XMLDOM",S(6),S(4),S(3),S(2)];i.some(I,function(B){try{var P=new ActiveXObject(B);P.async=!1,P.loadXML(R.responseText),T=P}catch(L){return!1}return!0})}return T},"json-comment-optional":function(R){return R.responseText&&/^[^{\[]*\/\*/.test(R.responseText)?g["json-comment-filtered"](R):g.json(R)}};y._ioSetArgs=function(R,T,S,I){var B={args:R,url:R.url},P=null;if(R.form){var L=n.byId(R.form),O=L.getAttributeNode("action");B.url=B.url||(O?O.value:y.doc?y.doc.URL:null),P=e.toObject(L)}var W={};P&&a.mixin(W,P),R.content&&a.mixin(W,R.content),R.preventCache&&(W["dojo.preventCache"]=new Date().valueOf()),B.query=d.objectToQuery(W),B.handleAs=R.handleAs||"text";var j=new t(function($){$.canceled=!0,T&&T($);var G=$.ioArgs.error;return G||(G=new Error("request cancelled"),G.dojoType="cancel",$.ioArgs.error=G),G});j.addCallback(S);var K=R.load;K&&a.isFunction(K)&&j.addCallback(function($){return K.call(R,$,B)});var H=R.error;H&&a.isFunction(H)&&j.addErrback(function($){return H.call(R,$,B)});var V=R.handle;return V&&a.isFunction(V)&&j.addBoth(function($){return V.call(R,$,B)}),j.addErrback(function($){return I($,j)}),v.ioPublish&&y.publish&&B.args.ioPublish!==!1&&(j.addCallbacks(function($){return y.publish("/dojo/io/load",[j,$]),$},function($){return y.publish("/dojo/io/error",[j,$]),$}),j.addBoth(function($){return y.publish("/dojo/io/done",[j,$]),$})),j.ioArgs=B,j};var E=function(R){var T=g[R.ioArgs.handleAs](R.ioArgs.xhr);return T===void 0?null:T},D=function(R,T){return T.ioArgs.args.failOk||console.error(R),R},F=function(R){w<=0&&(w=0,v.ioPublish&&y.publish&&(!R||R&&R.ioArgs.args.ioPublish!==!1)&&y.publish("/dojo/io/stop"))},w=0;s.after(c,"_onAction",function(){w-=1}),s.after(c,"_onInFlight",F),y._ioCancelAll=c.cancelAll,y._ioNotifyStart=function(R){v.ioPublish&&y.publish&&R.ioArgs.args.ioPublish!==!1&&(w||y.publish("/dojo/io/start"),w+=1,y.publish("/dojo/io/send",[R]))},y._ioWatch=function(R,T,S,I){var B=R.ioArgs.options=R.ioArgs.args;a.mixin(R,{response:R.ioArgs,isValid:function(P){return T(R)},isReady:function(P){return S(R)},handleResponse:function(P){return I(R)}}),c(R),F(R)};var x="application/x-www-form-urlencoded";return y._ioAddQueryToUrl=function(R){R.query.length&&(R.url+=(R.url.indexOf("?")==-1?"?":"&")+R.query,R.query=null)},y.xhr=function(R,T,S){var I,B=y._ioSetArgs(T,function(O){I&&I.cancel()},E,D),P=B.ioArgs;"postData"in T?P.query=T.postData:"putData"in T?P.query=T.putData:"rawBody"in T?P.query=T.rawBody:(arguments.length>2&&!S||"POST|PUT".indexOf(R.toUpperCase())===-1)&&y._ioAddQueryToUrl(P);var L={method:R,handleAs:"text",timeout:T.timeout,withCredentials:T.withCredentials,ioArgs:P};typeof T.headers!="undefined"&&(L.headers=T.headers),typeof T.contentType!="undefined"&&(L.headers||(L.headers={}),L.headers["Content-Type"]=T.contentType),typeof P.query!="undefined"&&(L.data=P.query),typeof T.sync!="undefined"&&(L.sync=T.sync),y._ioNotifyStart(B);try{I=f(P.url,L,!0)}catch(O){return B.cancel(),B}return B.ioArgs.xhr=I.response.xhr,I.then(function(){B.resolve(B)}).otherwise(function(O){P.error=O,O.response&&(O.status=O.response.status,O.responseText=O.response.text,O.xhr=O.response.xhr),B.reject(O)}),B},y.xhrGet=function(R){return y.xhr("GET",R)},y.rawXhrPost=y.xhrPost=function(R){return y.xhr("POST",R,!0)},y.rawXhrPut=y.xhrPut=function(R){return y.xhr("PUT",R,!0)},y.xhrDelete=function(R){return y.xhr("DELETE",R)},y._isDocumentOk=function(R){return p.checkStatus(R.status)},y._getText=function(R){var T;return y.xhrGet({url:R,sync:!0,load:function(S){T=S}}),T},a.mixin(y.xhr,{_xhrObj:y._xhrObj,fieldToObject:e.fieldToObject,formToObject:e.toObject,objectToQuery:d.objectToQuery,formToQuery:e.toQuery,formToJson:e.toJson,queryToObject:d.queryToObject,contentHandlers:g,_ioSetArgs:y._ioSetArgs,_ioCancelAll:y._ioCancelAll,_ioNotifyStart:y._ioNotifyStart,_ioWatch:y._ioWatch,_ioAddQueryToUrl:y._ioAddQueryToUrl,_isDocumentOk:y._isDocumentOk,_getText:y._getText,get:y.xhrGet,post:y.xhrPost,put:y.xhrPut,del:y.xhrDelete}),y.xhr},_,M),_.exports=C},function(_,M,l){var A,C;A=[],C=l.dj.d(A,function(){var y=Object.freeze({nodeHeight:22,lookAheadNodeBuffer:10});return y},_,M),_.exports=C},function(_,M,l){"use strict";var A,C;A=[],C=l.dj.d(A,function(){var y=Object.freeze({TEXT_PLAIN:"text/plain",FILES:"Files"});return{dndDefaultTypeEnum:"__mw__dnd__native__default__type",getTypes:function(){return{TEXT:y.TEXT_PLAIN,FILES:y.FILES}},getNativeDataTypes:function(h,d){return d?this.getNativeDataTypesGlobal(h):this.getNativeDataTypesLocal(h)},getNativeDataTypesLocal:function(h){var d=this;return Array.from(h.types).filter(function(n){return(n===y.TEXT_PLAIN||n===y.FILES)&&n!==d.dndDefaultTypeEnum})},getNativeDataTypesGlobal:function(h){var d=this,n=Array.from(h.types);return n.filter(function(e){return e!==d.dndDefaultTypeEnum})},getNativeTextData:function(h){return h.getData("text/plain")},setNativeTextData:function(h,d){h.setData("text/plain",d)},getNativeFileData:function(h){return{items:h.items,files:h.files}},setNativeDataByType:function(h,d,n){h.setData(d,n)},getNativeDataByType:function(h,d){return h.getData(d)},hasFileContent:function(h){for(var d=h.items,n=0;ne&&(r=!1,e=t)),n=n.parentNode;return r?"auto":e}static isPlacementValid(n){return["top","left","bottom","right","auto"].includes(n)}static isTriggerValid(n){return n==="click"||n==="hover"}static isSectionValid(n,e){let t=document.createElement("div");if(t.setAttribute("slot",e),n)switch(typeof n){case"string":return!!n;default:return n.hasChildNodes()||n.textContent||!n.isEqualNode(t)}return!1}static getOppositePlacement(n){return{left:["right","right-start","right-end"],right:["left","left-start","left-end"],bottom:["top","top-start","top-end"],top:["bottom","bottom-start","bottom-end"]}[n]}static getPlacementVariations(n){return[`${n}-start`,`${n}-end`]}static getAltPlacement(n){return{left:["bottom","bottom-start","bottom-end","top","top-start","top-end"],right:["bottom","bottom-start","bottom-end","top","top-start","top-end"],bottom:["right","right-start","right-end","left","left-start","left-end"],top:["right","right-start","right-end","left","left-start","left-end"]}[n]}static getPopperModifiers(n){let e,t=["right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end","top","top-start","top-end"];return n==="auto"?e=t:e=h.getPlacementVariations(n).concat(h.getOppositePlacement(n)).concat(h.getAltPlacement(n)),[{name:"offset",options:{offset:[0,5]}},{name:"preventOverflow",options:{altAxis:!0,padding:20,rootBoundary:"viewport"}},{name:"flip",options:{fallbackPlacements:e,allowedAutoPlacements:t,rootBoundary:"viewport",flipVariations:"true"}},{name:"arrow",options:{padding:5}}]}}return h},_,M),_.exports=C},function(_,M,l){var A,C,y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m};A=[l(121)],C=l.dj.d(A,function(m){"use strict";var h=function(){var n=function(a){var i={};if(a!==null&&(typeof a=="undefined"?"undefined":y(a))==="object"&&!Array.isArray(a)){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(i[u]=a[u]);return i}return a},e=function(a,i){return!!(i&&i.value&&(typeof a=="undefined"?"undefined":y(a))==="object"&&(m.EDITOR in a||m.RENDERER in a))},t=function(a,i,u){var s=a;return e(a,u)&&(i in a||(a[i]=""),s=a[i]),s},r=function(a,i,u,s){var c=i;return e(a,s)?(c=n(a),c[u]=i,{oldValue:a,valueToSave:c}):{oldValue:a,valueToSave:c}};return{getDisplayValue:t,shallowCopy:n,getValueToSave:r}};return h},_,M),_.exports=C},function(_,M,l){var A,C;A=[],C=l.dj.d(A,function(){var y=Object.freeze({EDITOR:"editorValue",RENDERER:"rendererValue"});return y},_,M),_.exports=C},function(_,M,l){var A,C,y=function(){function h(d,n){for(var e=0;e2&&arguments[2]!==void 0?arguments[2]:{},a=o.colEndIndex,i=o.colStartIndex,u=a?a-i:0;return t>r?r:r-u}},{key:"getColRangeIndicesForView",value:function(t,r,o,a){if(!r)return{startIndex:t,endIndex:t};var i=t,u=o,s=r.colEndIndex,c=r.colStartIndex,f=s-c||0;return u=u||t+f,o-t0&&arguments[0]!==void 0?arguments[0]:{},r=t.colEndIndex,o=t.colStartIndex;return r&&r-o>0||!1}},{key:"getGroupCellAttribute",value:function(t,r){var o=t.parentId,a=t.colIndex,i=t.startCol,u=t.endCol,s=t.headerIndex;if(!!o){if(a===i)return"group-"+o+"-start";if(a===u)return"group-"+o+"-end";var c=r[s-1],f=r[s+1];return c&&c.parentId!==o?"group-"+o+"-start":f&&f.parentId!==o?"group-"+o+"-end":"group-"+o}}},{key:"cellInsideGroup",value:function(t){if(!(typeof t!="string"||t.length<=0)){var r=t.split("-");return Array.isArray(r)&&r.length===2?"middle":r[2]}}},{key:"headerInsideGroup",value:function(t,r){var o=t.getAttribute("data-col-index");if(!!o){var a=r&&r.column===1;return a?"end":"start"}}},{key:"columnDropValidation",value:function(t,r,o,a,i,u,s,c){t=Number(t);var f=r.targetIndex,p=r.rightTargetIndex,v=r.rightTargetIndex||r.targetIndex,g=(p||f)-t;if(v===c||tc||t>c&&v=0){var E=n.getColRangeIndicesForView(t,o),D=E.endIndex;if(g>0&&f<=D||(p||f)-D===1)return!1}return a?d(r,a):!0}}]),n}();return h;function d(n,e){var t=n.rightTargetIndex;return!!(e==="start"&&!t||e==="end"&&t)}},_,M),_.exports=C},function(_,M,l){var A,C,y=function(){function h(d,n){for(var e=0;ea.clientWidth;return i}},{key:"getRowMetaDataFn",value:function(){return this._viewModel.getStateByKey(d.protected.ROW_METADATA).value}},{key:"getCurrentRowMetaData",value:function(a){var i={};if(a===null)return i.path=[],i;var u=this.getRowMetaDataFn();return u[0](a)._dataMetaData.metaData}},{key:"getNodeValue",value:function(a){var i=this.getRowMetaDataFn();return i[0](a).value}},{key:"getNodeInfo",value:function(a,i){if(a&&i===h.TREETABLE_ROW){var u=parseInt(a.getAttribute("data-row"));return this.getNodeValue(u)}return{id:null}}},{key:"isInternalDrag",value:function(){var a=this._viewModel.getStateByKey(d.dragInProgress).value,i=a?a.dragItem:null;return!!(i&&i.getDataByType(this._defaultType))}},{key:"getDropTarget",value:function(a){var i=void 0,u=void 0;return a&&a.length>1?(i=a[a.length-2],u={proxyNode:{id:i},type:h.TREETABLE_ROW}):u={proxyNode:{id:null},type:h.TREETABLE},u}},{key:"getOptions",value:function(a,i){var u={};return a===n.REORDER.INSERT_BELOW?u.place="after":a===n.REORDER.INSERT_ABOVE?u.place="before":u.place=i.type==="TREETABLE"?"last":"first",u.node={id:i.proxyNode.id},u}},{key:"handleDataMove",value:function(a,i,u,s){var c=this.getOptions(u,i),f=i;return s&&(f=this.getDropTarget(s)),this.moveData(a,f,c)}},{key:"putData",value:function(a){var i=a.proxyNodes,u=a.currentNodeInfo,s=u.path,c=u.nextSibling,f=u.target,p=u.insertionPosition;switch(p){case n.REORDER.INSERT_AS_CHILD:return this.handleDataMove(i,f,p);case n.REORDER.INSERT_ABOVE:return this.handleDataMove(i,f,p,s);case n.REORDER.INSERT_BELOW:if(e.isNextSiblingItsChild(u)){var v=c.rowNode,g=this.getNodeInfo(v.firstElementChild,f.type),E=this.getCurrentRowMetaData(v.firstElementChild.getAttribute("data-row")).path||[];return f={proxyNode:{id:g.id},type:f.type},this.handleDataMove(i,f,n.REORDER.INSERT_ABOVE,E)}return this.handleDataMove(i,f,p,s)}}},{key:"_isNodeInDragList",value:function(a,i){var u=a.some(function(s){return s===i.id});return u}},{key:"_finishDataUpdate",value:function(a){var i=a.resolve,u=a.movedNodeIds,s=a.failedReasons,c=a.target,f=[],p={type:c.type};c.proxyNode.id!==null&&(p.proxyNode=c.proxyNode),c=p,s.forEach(function(g){var E=e.createProxyNodesWithIds(g.ids);f.push({source:{proxyNodes:E,type:h.TREETABLE_ROW},target:c,error:g.error})});var v=void 0;u.length!==0&&(v={source:{proxyNodes:e.createProxyNodesWithIds(u),type:h.TREETABLE_ROW},target:c}),i({dropSuccessInfo:v,dropFailInfo:f})}},{key:"_saveNodeInfo",value:function(a,i){var u=a.movedNodeIds,s=a.failedReasons,c=a.nodeId,f=a.isSuccess;if(f)u.push(c);else{var p=s.find(function(v){return v.error.reason===i.reason});p||(p={ids:[],error:{reason:i.reason,message:i.message}},s.push(p)),p.ids.push(c)}}},{key:"moveData",value:function(a,i,u){var s=this,c=[],f=[],p=[],v=[],g=e.getIdsFromProxyNodes(a);return new Promise(function(E,D){g.forEach(function(F){var w=s._dataStore.getParentNode({id:F}).then(function(x){var R=x?x.node:{id:null},T=R!==null&&s._isNodeInDragList(g,R);if(!T){var S=s._dataStore.move({id:F},{id:i.proxyNode.id},u).then(s._saveNodeInfo.bind(s,{nodeId:F,isSuccess:!0,movedNodeIds:p,failedReasons:v}),s._saveNodeInfo.bind(s,{nodeId:F,isSuccess:!1,movedNodeIds:p,failedReasons:v}));f.push(S)}});c.push(w)}),Promise.all(c).then(function(){Promise.all(f).then(function(){s._finishDataUpdate({resolve:E,movedNodeIds:p,failedReasons:v,target:i})})})})}}]),r}();return new t},_,M),_.exports=C},function(_,M,l){"use strict";var A,C;A=[l(80)],C=l.dj.d(A,function(y){"use strict";let m={argumentsLimit:(d,n,e)=>"Expected : ".concat(d," expects ").concat(e," arguments, but ").concat(n.length," arguments were passed"),dataTransfer:()=>"Expected: clipboard.write API should have dataTransfer with at least a mime-type set",emptyDataTransfer:()=>"Expected: clipboard.write API should have dataTransfer with DataTransfer object",clipboardConfig:d=>"Expected: clipboard.".concat(d," expects object")};return{validateArguments(d,n,e){if(d.length0){p.length=v;for(var g=c;g<=f;g++){var E=s[0](g);if(E&&E.value&&E.value.label!==void 0){var D=E.value.label||"";p[g-c]={label:D,rowIndex:g}}}}return p}},{key:"getHeaderPaddingSize",value:function(){return r}},{key:"getRowHeaderMaxWidth",value:function(){return n.dimensions.MAX_ROW_HEADER_WIDTH}},{key:"getSelectedRows",value:function(s,c,f){for(var p=Math.max(s.rows.start,c.rows.start),v=Math.min(s.rows.end,c.rows.end),g=p;g<=v;g+=1)f.mapping[g]=d.selection.SELECTED}},{key:"getSelectionMap",value:function(s){for(var c=s.metadata,f=c===void 0?{selections:[]}:c,p=s.viewBuffer,v=f.selections,g={count:0,mapping:[]},E=0;E=p.rows.start&&i.getSelectedRows(v[E],p,g);return function(D){return g.mapping[D]||0}}}]),i}();return a},_,M),_.exports=C},function(_,M,l){var A,C;A=[l(5),l(3),l(28),l(30),l(2)],C=l.dj.d(A,function(y,m,h,d,n){"use strict";var e=function(r){var o=function(c,f,p){r(y.protected.NODE_NOTIFY,{publisherFn:function(){return{node:c,id:f,content:p}},publisherId:m.protected.publisher.CELL_ENTER,noRender:!0})},a=function(c,f,p){if(d.isElementOverflow(c))return o(c,f,p)},i=function(c,f){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=arguments[4];c=d.getTargetNode(f,c,g,v);var E=v.showTooltip||d.isElementOverflow(c);if(g=g||c,E){if(v.getTooltip){var D=v.getTooltip(p);D&&D.text&&(p=D.text)}return o(g,f,p)}};return n.useEffect(function(){return function(){return u()}},[]),{setTooltip:o,setTooltipWhenOverflow:a,handleMouseOverWithRenderer:i};function u(){r(y.protected.NODE_NOTIFY,{publisherFn:function(){return!0},publisherId:m.publisher.TOOLTIP_DISMISS,noRender:!0})}};return e},_,M),_.exports=C},function(_,M,l){"use strict";var A,C;A=[],C=l.dj.d(A,function(){return{isWithinTimeout:function(m,h,d){return Math.abs(m-h)2&&arguments[2]!==void 0?arguments[2]:"tableCellClick",p=Number(c.rowIndex),v=Number(c.colIndex);s.button===t.MOUSE_LEFT_BUTTON&&this.props.eventCallback&&this.props.eventCallback(f,{row:p,column:v,meta:s.metaKey,ctrlKey:s.ctrlKey,shiftKey:s.shiftKey,altKey:s.altKey})}},{key:"_handleEditCanceled",value:function(){!this._content||(this._handleLeaveEdit(),this.props.eventCallback&&this.props.eventCallback("leaveColEditMode",{}))}},{key:"_handleLeaveEdit",value:function(){if(this.renderNode){var s=this.renderNode.contains(document.activeElement)||document.activeElement===this._previousActiveElement;this._dismount(),s&&this._previousActiveElement.focus()}}},{key:"_dismount",value:function(){this._listeners.forEach(function(s){s.remove()}),this._listeners=[],this._content.destroy(),this._content=void 0}},{key:"_mountContent",value:function(){var s=this,c=this.renderNode,f=this.props,p=f.headerEditor,v=f.name,g=f.colEditState,E=this.state.headerRenderer,D=void 0,F=[];if(g){c.removeAttribute("data-title");try{D=new p(v,{}),this._content=D,this._previousActiveElement=document.activeElement}catch(w){return E}return F.push(D.on("editComplete",function(w){s._handleEditComplete(w.newValue)})),F.push(D.on("editCanceled",this._handleEditCanceled.bind(this))),this._listeners=F,D}else return E}},{key:"_focusMe",value:function(s){this.renderNode.setAttribute("data-edit",this.props.colEditState||!1),this.props.colEditState&&(this._previousActiveElement=document.activeElement,s.setFocus())}},{key:"componentWillUnmount",value:function(){this.props.colEditState&&this.props.focusClass&&this._handleEditCanceled()}},{key:"componentDidMount",value:function(){var s=this.props,c=s.name,f=s.displayColumnIndexOnly;if(!f){var p=this._mountContent();this.renderNode.appendChild(p.getDomNode(c)),this._focusMe(p)}}},{key:"componentDidUpdate",value:function(s){var c=this.props.name===s.name;if((s.colEditState!==this.props.colEditState||!this.props.colEditState&&!c)&&!this.props.displayColumnIndexOnly){var f=this.props.name,p=this._mountContent(),v=!1;this.renderNode&&(v=this.renderNode.contains(document.activeElement)||document.activeElement===this._previousActiveElement),r.replaceFirstNode(this.renderNode,p.getDomNode(f),this.renderNode.firstChild),v&&this._previousActiveElement&&this._previousActiveElement.focus(),this._focusMe(p)}}},{key:"cellType",get:function(){return"EditableColumnHeader"}},{key:"baseStyle",get:function(){return"mw-table-cell"}}]),i}(e);return o},_,M),_.exports=C},function(_,M,l){"use strict";var A,C;A=[l(314),l(195),l(102),l(37)],C=l.dj.d(A,function(y,m,h,d){return{__proto__:h,name:"C/C++",blockBegin:{style:null,token:"{"},blockEnd:{style:null,token:"}"},comment:{style:"comment"},setup:function(e){m(e);const t={name:"text/x-c++src"};return e.getMode({},t)},createNodes:function(e){return e.map(t=>{const r=document.createElement("span"),o=t.token,a=t.style;r.setAttribute("scope",t.scope),t.def&&r.setAttribute("def",t.def),t.type&&r.setAttribute("type",t.type),t.define&&r.setAttribute("defid",t.define.id),r.classList.add("cpp"),a===null?(o==="{"||o==="}")&&r.classList.add("br"):r.classList.add(a);const i=t.id;r.setAttribute("id",i),r.setAttribute("name",i),a==="variable"||a==="def"||a==="operator"||a==="number"?r.classList.add("tk"):a==="variable-3"||a==="keyword"||a==="atom"?(r.classList.add("tk"),r.classList.add("kw")):a==="comment"&&(r.classList.add("ct"),t.type==="blk"?r.classList.add("blk"):t.type==="req"?(r.classList.add("req"),r.setAttribute("req_id",t.req_id),r.setAttribute("blockpath",t.blockpath)):t.type==="libblk"&&r.classList.add("libblk")),r.setAttribute("cstyle",a);for(let u=0;u1||(o=h.detectLibBlockPath(e),o.length>1)||(o=h.detectRequirementID(e),o.length>1))return o}return e},createTokenScope:function(e){const t=u=>{const s=u.token,c=s.length;for(let f=0;f")return;return c},r=(u,s,c)=>{let f;for(let p=0;p"?r(a,i,1):i.token===">>"&&r(a,i,2);else if(i.style==="invalid_operator"){const u=t(i);u&&r(a,i,u)}i=i.next}},detectRequirementID:function(e){const t=/\d+\.\s+\w+.+/;return this.detectPattern(e,t,"req",0)},detectBlockPath:function(e){const t=/'<.+>.*?'/;return this.detectPattern(e,t,"blk",1)},detectLibBlockPath:function(e){const t=/\('.+:\d+'\)/;return this.detectPattern(e,t,"libblk",2)}};function n(e,t,r){const o=/#\s*\w+\s/,a=e.token;if(a.slice(0,8)==="#include")return[e];const i=a.match(o);if(i===null)return[e];const u=i[0],c=i.index+u.length,f={style:"meta",token:u},p=a.slice(c),v=new y(p),g=[f];for(;!v.eol();){const E=t.token(v,r),D={token:v.current(),style:E,meta:!0};g.push(D),v.start=v.pos}return g}},_,M),_.exports=C},function(_,M,l){_.exports=function(A,C,y,m){this.loaderVersion="1.17.1",function(h,d){var n=function(){return typeof g!="undefined"&&typeof g!="function"?g:typeof m!="undefined"?this&&this.dojoConfig&&!m.dojoConfig?this:m:typeof self!="undefined"?self:this}(),e=function(){},t=function(ye){for(var Pe in ye)return 0;return 1},r={}.toString,o=function(ye){return r.call(ye)=="[object Function]"},a=function(ye){return r.call(ye)=="[object String]"},i=function(ye){return r.call(ye)=="[object Array]"},u=function(ye,Pe){if(ye)for(var We=0;Wevn&&(Cn=o(Mt[1])?ye.replace(Mt[0],Mt[1]):Mt[1])}),Cn?Gt(Cn,0,We,Ue,gt,mt,Wt,yt,St):(Zt=Ue[ye],Zt?St?fn(Zt.pid,Zt.mid,Zt.pack,Zt.url):Ue[ye]:(Rt=it(ye,Wt),Rt?Jt=Rt[1]+ye.substring(Rt[3]):Kt?Jt=(Ft.location.slice(-1)==="/"?Ft.location.slice(0,-1):Ft.location)+"/"+hn:Jt=ye,/(^\/)|(\:)/.test(Jt)||(Jt=gt+Jt),Jt+=".js",fn(Kt,ye,Ft,Nt(Jt))))},ln=function(ye,Pe,We){return Gt(ye,Pe,ce,Be,v.baseUrl,Se,ue,te,void 0,We)};if(!1)var Gn,Nr,ri;var ii=v.toAbsMid=function(ye,Pe){return ln(ye,Pe).mid},xr=v.toUrl=function(ye,Pe){var We=ln(ye+"/x",Pe),Ue=We.url;return pe(We.pid===0?ye:Ue.substring(0,Ue.length-5))};if(!1)var oi,Ln,ai,hr,kn,ui,Xn,Wn,bn,vr,si,Br,li,Vi,ci,di;var pe=typeof h.fixupUrl=="function"?h.fixupUrl:function(ye){return ye+="",ye+(ke?(/\?/.test(ye)?"&":"?")+ke:"")};if(!1)var fe,Ee,Re,Ie,je,Ke,Le,ze;var Ze=0,$e=e,ft=e;if(!1)var pt,S,Bt,_t,Qe;if(v.log=e,0)var Je;else v.trace=e;if(!1)var lt;else var lt=e;if(s(s(v,d.loaderPatch),h.loaderPatch),se(he,function(ye){try{if(console.error(ye),ye instanceof Error){for(var Pe in ye)console.log(Pe+":",ye[Pe]);console.log(".")}}catch(We){}}),s(v,{uid:p,cache:Ge,packs:ce}),!g.define){if(g.define=lt,g.require=v,!1)var qe,Dt;if(!1)var Et,wt}}.call(this,A,C)}},function(_,M,l){var A,C;A=[l(0)],C=l.dj.d(A,function(y){return function(m,h,d,n){d=d||Error;var e=function(t){if(d===Error){Error.captureStackTrace&&Error.captureStackTrace(this,e);var r=Error.call(this,t),o;for(o in r)r.hasOwnProperty(o)&&(this[o]=r[o]);this.message=t,this.stack=r.stack}else d.apply(this,arguments);h&&h.apply(this,arguments)};return e.prototype=y.delegate(d.prototype,n),e.prototype.name=m,e.prototype.constructor=e,e}},_,M),_.exports=C},function(_,M,l){var A,C;A=[l(55),l(54),l(4),l(72)],C=l.dj.d(A,function(y,m,h,d){function n(r){if((r.keyCode===y.ENTER||r.keyCode===y.SPACE)&&!/input|button|textarea/i.test(r.target.nodeName)){for(var o=r.target;o;o=o.parentNode)if(o.dojoClick)return!0}}var e;h(document,"keydown",function(r){n(r)?(e=r.target,r.preventDefault()):e=null}),h(document,"keyup",function(r){n(r)&&r.target==e&&(e=null,h.emit(r.target,"click",{cancelable:!0,bubbles:!0,ctrlKey:r.ctrlKey,shiftKey:r.shiftKey,metaKey:r.metaKey,altKey:r.altKey,_origType:r.type}))});var t=function(r,o){return r.dojoClick=!0,h(r,"click",o)};return t.click=t,t.press=function(r,o){var a=h(r,d.press,function(u){u.type=="mousedown"&&!m.isLeft(u)||o(u)}),i=h(r,"keydown",function(u){(u.keyCode===y.ENTER||u.keyCode===y.SPACE)&&o(u)});return{remove:function(){a.remove(),i.remove()}}},t.release=function(r,o){var a=h(r,d.release,function(u){u.type=="mouseup"&&!m.isLeft(u)||o(u)}),i=h(r,"keyup",function(u){(u.keyCode===y.ENTER||u.keyCode===y.SPACE)&&o(u)});return{remove:function(){a.remove(),i.remove()}}},t.move=d.move,t},_,M),_.exports=C},function(_,M,l){var A,C;A=[l(17),l(1),l(12),l(34),l(11),l(10),l(60),l(0),l(4),l(43),l(18),l(196),l(21),l(45),l(106),l(35),l(44)],C=l.dj.d(A,function(y,m,h,d,n,e,t,r,o,a,i,u,s,c,f,p,v){var g,E,D=m([u,t],{curNode:null,activeStack:[],constructor:function(){var x=r.hitch(this,function(R){h.isDescendant(this.curNode,R)&&this.set("curNode",null),h.isDescendant(this.prevNode,R)&&this.set("prevNode",null)});y.before(e,"empty",x),y.before(e,"destroy",x)},registerIframe:function(x){return this.registerWin(x.contentWindow,x)},registerWin:function(x,R){var T=this,S=x.document&&x.document.body;if(S){var I=i("pointer-events")?"pointerdown":i("MSPointer")?"MSPointerDown":i("touch-events")?"mousedown, touchstart":"mousedown",B=o(x.document,I,function(O){O&&O.target&&O.target.parentNode==null||T._onTouchNode(R||O.target,"mouse")}),P=o(S,"focusin",function(O){if(!!O.target.tagName){var W=O.target.tagName.toLowerCase();W=="#document"||W=="body"||(f.isFocusable(O.target)?T._onFocusNode(R||O.target):T._onTouchNode(R||O.target))}}),L=o(S,"focusout",function(O){T._onBlurNode(R||O.target)});return{remove:function(){B.remove(),P.remove(),L.remove(),B=P=L=null,S=null}}}},_onBlurNode:function(x){var R=new Date().getTime();R=0&&T[P]!=x[P];P--)B=p.byId(T[P]),B&&(B._hasBeenBlurred=!0,B.set("focused",!1),B._focusManager==this&&B._onBlur(R),this.emit("widget-blur",B,R));for(P++;P<=I;P++)B=p.byId(x[P]),B&&(B.set("focused",!0),B._focusManager==this&&B._onFocus(R),this.emit("widget-focus",B,R))}},focus:function(x){if(x)try{x.focus()}catch(R){}}}),F=new D;a(function(){var x=F.registerWin(c.get(document));i("ie")&&o(window,"unload",function(){x&&(x.remove(),x=null)})}),v.focus=function(x){F.focus(x)};for(var w in F)/^_/.test(w)||(v.focus[w]=typeof F[w]=="function"?r.hitch(F,w):F[w]);return F.watch(function(x,R,T){v.focus[x]=T}),F},_,M),_.exports=C},function(_,M,l){var A,C;A=[l(141),l(142),l(340),l(107),l(8)],C=l.dj.d(A,function(y,m,h,d,n){n.add("native-xhr",function(){return typeof XMLHttpRequest!="undefined"}),n.add("dojo-force-activex-xhr",function(){return n("activex")&&window.location.protocol==="file:"}),n.add("native-xhr2",function(){if(!(!n("native-xhr")||n("dojo-force-activex-xhr"))){var p=new XMLHttpRequest;return typeof p.addEventListener!="undefined"&&(typeof opera=="undefined"||typeof p.upload!="undefined")}}),n.add("native-formdata",function(){return typeof FormData!="undefined"}),n.add("native-blob",function(){return typeof Blob!="undefined"}),n.add("native-arraybuffer",function(){return typeof ArrayBuffer!="undefined"}),n.add("native-response-type",function(){return n("native-xhr")&&typeof new XMLHttpRequest().responseType!="undefined"}),n.add("native-xhr2-blob",function(){if(!!n("native-response-type"))return!0});var e={blob:n("native-xhr2-blob")?"blob":"arraybuffer",document:"document",arraybuffer:"arraybuffer"};function t(p,v){var g=p.xhr;p.status=p.xhr.status;try{p.text=g.responseText}catch(D){}p.options.handleAs==="xml"&&(p.data=g.responseXML);var E;if(v)this.reject(v);else{try{h(p)}catch(D){E=D}d.checkStatus(g.status)?E?this.reject(E):this.resolve(p):E?(v=new y("Unable to load "+p.url+" status: "+g.status+" and an error in handleAs: transformation of response",p),this.reject(v)):(v=new y("Unable to load "+p.url+" status: "+g.status,p),this.reject(v))}}var r,o,a,i;n("native-xhr2")?(r=function(p){return!this.isFulfilled()},i=function(p,v){v.xhr.abort()},a=function(p,v,g,E){function D(T){v.handleResponse(g)}function F(T){var S=T.target,I=new y("Unable to load "+g.url+" status: "+S.status,g);v.handleResponse(g,I)}function w(T,S){g.transferType=T,S.lengthComputable?(g.loaded=S.loaded,g.total=S.total,v.progress(g)):g.xhr.readyState===3&&(g.loaded="loaded"in S?S.loaded:S.position,v.progress(g))}function x(T){return w("download",T)}function R(T){return w("upload",T)}return p.addEventListener("load",D,!1),p.addEventListener("error",F,!1),p.addEventListener("progress",x,!1),E&&p.upload&&p.upload.addEventListener("progress",R,!1),function(){p.removeEventListener("load",D,!1),p.removeEventListener("error",F,!1),p.removeEventListener("progress",x,!1),p.upload.removeEventListener("progress",R,!1),p=null}}):(r=function(p){return p.xhr.readyState},o=function(p){return p.xhr.readyState===4},i=function(p,v){var g=v.xhr,E=typeof g.abort;(E==="function"||E==="object"||E==="unknown")&&g.abort()});function u(p){return this.xhr.getResponseHeader(p)}var s,c={data:null,query:null,sync:!1,method:"GET"};function f(p,v,g){var E=n("native-formdata")&&v&&v.data&&v.data instanceof FormData,D=d.parseArgs(p,d.deepCreate(c,v),E);p=D.url,v=D.options;var F=!v.data&&v.method!=="POST"&&v.method!=="PUT";n("ie")<=10&&(p=p.split("#")[0]);var w,x=function(){w&&w()},R=d.deferred(D,i,r,o,t,x),T=D.xhr=f._create();if(!T)return R.cancel(new y("XHR was not created")),g?R:R.promise;D.getHeader=u,a&&(w=a(T,R,D,v.uploadProgress));var S=typeof v.data=="undefined"?null:v.data,I=!v.sync,B=v.method;try{T.open(B,p,I,v.user||s,v.password||s),v.withCredentials&&(T.withCredentials=v.withCredentials),n("native-response-type")&&v.handleAs in e&&(T.responseType=e[v.handleAs]);var P=v.headers,L=E||F?!1:"application/x-www-form-urlencoded";if(P)for(var O in P)O.toLowerCase()==="content-type"?L=P[O]:P[O]&&T.setRequestHeader(O,P[O]);L&&L!==!1&&T.setRequestHeader("Content-Type",L),(!P||!("X-Requested-With"in P))&&T.setRequestHeader("X-Requested-With","XMLHttpRequest"),d.notify&&d.notify.emit("send",D,R.promise.cancel),T.send(S)}catch(W){R.reject(W)}return m(R),T=null,g?R:R.promise}if(f._create=function(){throw new Error("XMLHTTP not available")},n("native-xhr")&&!n("dojo-force-activex-xhr"))f._create=function(){return new XMLHttpRequest};else if(n("activex"))try{new ActiveXObject("Msxml2.XMLHTTP"),f._create=function(){return new ActiveXObject("Msxml2.XMLHTTP")}}catch(p){try{new ActiveXObject("Microsoft.XMLHTTP"),f._create=function(){return new ActiveXObject("Microsoft.XMLHTTP")}}catch(v){}}return d.addCommonMethods(f),f},_,M),_.exports=C},function(_,M,l){var A,C;A=[l(137)],C=l.dj.d(A,function(y){return y("RequestError",function(m,h){this.response=h})},_,M),_.exports=C},function(_,M,l){var A,C;A=[l(107),l(339),l(104),l(9),l(21),l.dj.h("dom-addeventlistener?:4")],C=l.dj.d(A,function(y,m,h,d,n,e){var t=null,r=[];function o(){for(var i=+new Date,u=0,s;u]+>|]*>[\s\S]*?<\/title>)/ig,"")},_emptyNode:e.empty,_setNodeContent:function(a,i){if(e.empty(a),i)if(typeof i=="number"&&(i=i.toString()),typeof i=="string"&&(i=e.toDom(i,a.ownerDocument)),!i.nodeType&&m.isArrayLike(i))for(var u=i.length,s=0;s]*>\s*([\s\S]+)\s*<\/body>/im);i&&(a=i[1])}return this.empty(),this.content=a,this.node},onEnd:function(){return this.parseContent&&this._parse(),this.node},tearDown:function(){delete this.parseResults,delete this.parseDeferred,delete this.node,delete this.content},onContentError:function(a){return"Error occurred setting content: "+a},onExecError:function(a){return"Error occurred executing scripts: "+a},_mixin:function(a){var i={},u;for(u in a)u in i||(this[u]=a[u])},_parse:function(){var a=this.node;try{var i={};h.forEach(["dir","lang","textDir"],function(s){this[s]&&(i[s]=this[s])},this);var u=this;this.parseDeferred=t.parse({rootNode:a,noStart:!this.startup,inherited:i,scope:this.parserScope}).then(function(s){return u.parseResults=s},function(s){u._onError("Content",s,"Error parsing in _ContentSetter#"+u.id)})}catch(s){this._onError("Content",s,"Error parsing in _ContentSetter#"+this.id)}},_onError:function(a,i,u){var s=this["on"+a+"Error"].call(this,i);u?console.error(u,i):s&&o._setNodeContent(this.node,s,!0)}}),set:function(a,i,u){if(i==null&&(console.warn("dojo.html.set: no cont argument provided, using empty string"),i=""),typeof i=="number"&&(i=i.toString()),u){var s=new o._ContentSetter(m.mixin(u,{content:i,node:a}));return s.set()}else return o._setNodeContent(a,i,!0)}};return m.setObject("dojo.html",o),o},_,M),_.exports=C},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,require;__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__.dj.c(module.i),__webpack_require__(6),__webpack_require__(0),__webpack_require__(9),__webpack_require__(26),__webpack_require__(12),__webpack_require__(21),__webpack_require__(345),__webpack_require__(17),__webpack_require__(89),__webpack_require__(346),__webpack_require__(20),__webpack_require__(8),__webpack_require__(347),__webpack_require__(36),__webpack_require__(4),__webpack_require__(73)],__WEBPACK_AMD_DEFINE_RESULT__=__webpack_require__.dj.d(__WEBPACK_AMD_DEFINE_ARRAY__,function(require,dojo,dlang,darray,config,dom,dwindow,_Url,aspect,all,dates,Deferred,has,json5,query,don,ready){new Date("X");var myEval;has("csp-restrictions")?myEval=json5.parse:myEval=function(text){return eval("("+text+")")};var extendCnt=0;aspect.after(dlang,"extend",function(){extendCnt++},!0);function getNameMap(_){var M=_._nameCaseMap,l=_.prototype;if(!M||M._extendCnt.*$/,"");d=darray.map(e.split(/\s+/),function(V){var $=V.toLowerCase();return{name:V,value:M.nodeName=="LI"&&V=="value"||$=="enctype"?M.getAttribute($):M.getAttributeNode($).value}})}var t=A.scope||dojo._scopeName,r="data-"+t+"-",o={};t!=="dojo"&&(o[r+"props"]="data-dojo-props",o[r+"type"]="data-dojo-type",o[r+"mixins"]="data-dojo-mixins",o[t+"type"]="dojotype",o[r+"id"]="data-dojo-id");for(var a=0,i,u=[],s,c;i=d[a++];){var f=i.name,p=f.toLowerCase(),v=i.value;switch(o[p]||p){case"data-dojo-type":case"dojotype":case"data-dojo-mixins":break;case"data-dojo-props":c=v;break;case"data-dojo-id":case"jsid":s=v;break;case"data-dojo-attach-point":case"dojoattachpoint":h.dojoAttachPoint=v;break;case"data-dojo-attach-event":case"dojoattachevent":h.dojoAttachEvent=v;break;case"class":h.class=M.className;break;case"style":h.style=M.style&&M.style.cssText;break;default:if(!(f in m)){var g=getNameMap(_);f=g[p]||f}if(f in m)switch(typeof m[f]){case"string":h[f]=v;break;case"number":h[f]=v.length?Number(v):NaN;break;case"boolean":h[f]=v.toLowerCase()!="false";break;case"function":v===""||v.search(/[^\w\.]+/i)!=-1?h[f]=new Function(v):h[f]=dlang.getObject(v,!1)||new Function(v),u.push(f);break;default:var E=m[f];try{h[f]=E&&"length"in E?v?v.split(/\s*,\s*/):[]:E instanceof Date?v==""?new Date(""):v=="now"?new Date:dates.fromISOString(v):E instanceof _Url?dojo.baseUrl+v:myEval(v)}catch(V){console.error(V)}}else h[f]=v}}for(var D=0;D script[type^='dojo/']",M));var w=[],x=[],R=[],T=[];if(C)for(a=0;a{a._$AK(i,u)},_$AL:a=>a._$AL},Object.keys(m).forEach(function(a){a==="default"||y.hasOwnProperty(a)||Object.defineProperty(y,a,{enumerable:!0,get:function(){return m[a]}})}),Object.keys(h).forEach(function(a){a==="default"||y.hasOwnProperty(a)||Object.defineProperty(y,a,{enumerable:!0,get:function(){return h[a]}})}),Object.defineProperty(y,"i",{value:!0})},_,M),_.exports=C},function(_,M,l){"use strict";var A,C,y=function(){function h(d,n){for(var e=0;e1?(T--,g.set(R,T)):(g.delete(R),p.emit(o.dragLeave,{type:o.dragLeave,xCoord:c.pageX,yCoord:c.pageY,dropEffect:c.dataTransfer.dropEffect,dropTarget:x,target:R,getNativeDataByType:e.createNativeDataByType(c),getNativeDataTypes:function(){return d.getNativeDataTypes(c.dataTransfer,x.allowGlobal)},nativeTypes:i.TYPES,getDropOperation:function(){return e.getDropOperationFromDropEffect(c.dataTransfer.dropEffect)}}))}}},{key:"_handleDrop",value:function(s){var c=s.event,f=s.domNode,p=s.on,v=s.getDropTargets,g=s.dragEnterLeaveCounterMap,E=s.isDragStartedInContext,D=s.getDropStatus,F=s.getDragOperations,w=e.validateDrag({getDropTargets:v,event:c,isDragStartedInContext:E,contextDOM:f});if(!!w){c.preventDefault();var x=w.matchedDragElement,R=w.matchedParentDOM;c.dataTransfer.dropEffect=e.getDropEffect(c,D,F),g.delete(R),p.emit(o.drop,{type:o.drop,xCoord:c.pageX,yCoord:c.pageY,dropEffect:c.dataTransfer.dropEffect,dropTarget:x,target:R,getNativeDataByType:e.createNativeDataByType(c),getNativeDataTypes:function(){return d.getNativeDataTypes(c.dataTransfer,x.allowGlobal)},nativeTypes:i.TYPES,getDropOperation:function(){return e.getDropOperationFromDropEffect(c.dataTransfer.dropEffect)}})}}},{key:"_handleDragOver",value:function(s){var c=new r(s);c.handleDragOver()}},{key:"_handleDragStart",value:function(s){var c=s.event,f=s.on,p=s.getDragSources,v=s.handleDragEndListener,g=p(),E=e.matchDragSourceFromEvent(c,g);if(!!E){var D=E.matchedDragElement,F=E.matchedParentDOM;c.dataTransfer.setData(d.dndDefaultTypeEnum,""),v.attachDragEndEvent(F,f,g),f.emit(o.dragStart,{type:o.dragStart,dragSource:D,target:F,xCoord:c.pageX,yCoord:c.pageY,setNativeDataByType:function(x,R){switch(x){case i.TYPES.TEXT:{d.setNativeTextData(c.dataTransfer,R);break}default:D.allowGlobal&&d.setNativeDataByType(c.dataTransfer,x,R);break}},getNativeDataTypes:function(){return d.getNativeDataTypes(c.dataTransfer,D.allowGlobal)},getNativeDataByType:e.createNativeDataByType(c),setValidDragItem:function(x){x?c.dataTransfer.effectAllowed="all":(c.dataTransfer.effectAllowed="none",c.preventDefault())},canSetNativeAvatar:!!c.dataTransfer.setDragImage,setEmptyNativeAvatar:function(){var x=document.createElement("div");x.classList.add("mw-dnd-empty-avatar"),x.appendChild(document.createTextNode("\xA0")),document.body.appendChild(x),c.dataTransfer.setDragImage(x,0,0),setTimeout(function(){document.body.removeChild(x)},0)},nativeTypes:i.TYPES,getDropOperation:function(){return e.getDropOperationFromDropEffect(c.dataTransfer.dropEffect)}}),e.stopPropagationforDojoDnDParent(c)}}},{key:"_handleDragEnd",value:function(s){var c=s.event,f=s.on,p=s.getDragSources,v=s.handleDragEndListener,g=p(),E=e.matchDragSourceFromEvent(c,g);if(!!E){var D=E.matchedDragElement,F=E.matchedParentDOM;D&&(v.removeDragEndEvent(),f.emit(o.dragEnd,{type:o.dragEnd,dragSource:D,xCoord:c.pageX,yCoord:c.pageY,target:F,getNativeDataByType:e.createNativeDataByType(c),nativeTypes:i.TYPES,getNativeDataTypes:function(){return d.getNativeDataTypes(c.dataTransfer,D.allowGlobal)},getDropOperation:function(){return e.getDropOperationFromDropEffect(c.dataTransfer.dropEffect)}}))}}},{key:"handleDynamicDragSources",value:function(){this._getDragSources().length>0&&this._getDragSources().forEach(this.setDraggableAttribute,this)}},{key:"setDraggableAttribute",value:function(s){switch(s.type){case"SELECTOR":this._setDraggableAttribute(s.selector);break;case"DOM":s.domNode.setAttribute("draggable",!0),this._setDraggableAttrChildren(s.domNode);break;default:break}}},{key:"removeDraggableAttribute",value:function(s){switch(s.type){case"SELECTOR":this._removeDraggableAttribute(s.selector);break;case"DOM":s.domNode.removeAttribute("draggable"),this._removeDraggableAttrChildren(s.domNode);break;default:break}}},{key:"_setDraggableAttributeToNodeList",value:function(s){for(var c=0;c
`,n=function(){y(e,null,[{key:"StatusEnum",get:function(){return{VALID:"VALID",INVALID:"INVALID"}}}]);function e(t,r,o,a){m(this,e),this._singleSelect=!1,this._validate(t,a),this._avatarContainer=this._decorateAvatar(t,a),this._updatePosition(r,o),document.body.appendChild(this._avatarContainer)}return y(e,[{key:"_validate",value:function(r,o){if(r instanceof Node){if(o&&isNaN(o))throw new Error("Expected: count should be of type Number");return!0}else throw new Error("Expected: avatar should be of type Node")}},{key:"_decorateAvatar",value:function(r,o){var a=document.createElement("div");a.classList.add("mw-dnd-avatar"),h.showsNotAllowedPointerOnInvalidDnD&&a.classList.add("mw-dnd-pointer-not-allowed-support"),a.setAttribute("data-test-id","avatarElement");var i=new DOMParser().parseFromString(d,"text/html");return a.appendChild(i.querySelector(".mw-dnd-avatar-container-1")),!o||o<=1?(a.classList.add("mw-dnd-single-select","mw-dnd-invalid-target"),this._singleSelect=!0):(a.classList.add("mw-dnd-multi-select","mw-dnd-invalid-target"),a.setAttribute("data-multi-select-count",o),this._singleSelect=!1),a.querySelector(".mw-dnd-avatar-child-content").appendChild(r),a}},{key:"enterValidDropTarget",value:function(){this._avatarContainer.classList.remove("mw-dnd-invalid-target"),this._avatarContainer.classList.add("mw-dnd-valid-target")}},{key:"leaveValidDropTarget",value:function(){this._avatarContainer.classList.remove("mw-dnd-valid-target"),this._avatarContainer.classList.add("mw-dnd-invalid-target")}},{key:"updatePosition",value:function(r,o){window.requestAnimationFrame(function(){this._updatePosition(r,o)}.bind(this))}},{key:"_updatePosition",value:function(r,o){var a=void 0;this._singleSelect?a=15:a=25,this._avatarContainer.style.transform="translate("+(r+a)+"px, "+(o-5)+"px)"}},{key:"remove",value:function(){document.body.removeChild(this._avatarContainer)}},{key:"avatarContainer",get:function(){return this._avatarContainer}}]),e}();return n},_,M),_.exports=C},function(_,M,l){"use strict";var A,C,y=function(){function h(d,n){for(var e=0;eoe;break;case h.type.GREATER_THAN_EQUAL_TO:ce=te>=oe;break;case h.type.LESS_THAN:ce=te2&&arguments[2]!==void 0?arguments[2]:!1;return oe.length===0&&ue?!1:K(te,oe,!0)},W=function(te,oe){return K(te,oe,!1)},j=function(te,oe){var ue=!1;return oe.and?ue=W(te,oe.and):oe.or&&(ue=O(te,oe.or)),oe.exclude&&(ue=L(te,oe,ue)),ue},K=function(te,oe,ue){for(var ce=!0,ve=0;ve4&&arguments[4]!==void 0?arguments[4]:{};s=this._combineUriPaths(s||"","/"),c=c||"",p=p||"",this.computeToken=f,this._withCredentials=this._withCredentials||!1,typeof g.withCredentials=="undefined"||g.withCredentials===null||(this._withCredentials=!!g.withCredentials),!(s===this._host&&c===this._key&&p===this._proxyUrl)&&(this._loaded=!1,this._errorLoading=!1,this._host=s,this._key=c,this._proxyUrl=p,window.MW_USE_IFRAME_OUT_OF_MODEL?(this._version=null,this._setVersion(a)):(this._version=a,this._iframeProxyReplace=new o({parent:{postMessage:function(D){v._handleMessage({data:D})}},withCredentials:this._withCredentials})))},_setVersion:function(s){if((!s||s===a)&&(s=this.LATEST_VERSION),!(this._loaded||s===this._version)){this._version=s;var c=this._calculateUrls(this._host,this._key,s,this._proxyUrl);this._createIframe(c)}},_calculateUrls:function(s,c,f,p){var v=this.REMOTE_PROXY+f+"/iframeProxyRelease.html",g=this.REMOTE_PROXY+f+"/CheckJsFile.js";return p&&(v=p),v=this._combineUriPaths(s,v).split("?")[0],v+=c?"?routingkey="+c:"",g=this._combineUriPaths(s,g),c?g+="?routingkey="+c:g+="?time="+new Date().getTime(),{fastFailUrl:g,iFrameUrl:v}},_createIframe:function(s){var c=s.fastFailUrl,f=this;this._url=s.iFrameUrl,this.remoteIframe&&e.destroy(this.remoteIframe),this.remoteIframe=e.create("iframe",{id:this.iframeId,src:this._url,width:0,height:0,style:"visibility: hidden; display: none;"}),document.body.appendChild(this.remoteIframe),this._checkUrl=null,this._checkUrlTimeout=setTimeout(function(){f._checkUrl=new r(c).then(function(){f._checkUrl=null},function(p){f._checkUrl=null,!(p.dojoType==="cancel"||p.name==="CancelError")&&f._handleLoadTimeoutHitch()})},this.IFRAME_TIMEOUT*.15),this._loadTimeoutHandle=setTimeout(function(){f._handleLoadTimeoutHitch()},this.IFRAME_TIMEOUT),this._messageConnection||(this._messageConnection=y.connect(window,"message",this,this._handleMessage))},_handleLoadTimeoutHitch:function(){if(this._cleanupFailureChecks(),!this._loaded)if(this._version==="1.0")this._handleLoadTimeout();else{var s=(parseFloat(this._version)-.1).toFixed(1).toString();t.info("Unable to load proxy version "+this._version+", trying "+s+"."),this._setVersion(s)}},createUploadIframeTarget:function(s,c,f){this._uploadTargetCallbacks[s]=d.hitch(f||this,c),this._postMessage("createUploadIframe;"+s)},cancelUpload:function(s){this._postMessage("cancelUpload;"+s)},getUploadIframeProxyUrlPath:function(){return this.REMOTE_PROXY+this._version+"/uploadIframeProxy.html"},sendMessage:function(s,c,f){var p=this,v,g,E;this.computeToken&&(f=f||{},f.headers=f.headers||{},f.headers.computeToken=this.computeToken),v=this._getNewMessageId(),g="sendMessage;"+v+";"+c+";",g+=f?JSON.stringify(f,null,0):"{}",g+=";"+s;function D(){p._version==="1.0"?t.warn("Cancelling is not supported by the 1.0 remote proxy."):p._postMessage("abort;"+v)}return E={deferred:new h(D),id:v},this._errorLoading?E.deferred.reject("The iFrame did not load properly: "+this._url):(this._transactions[v]=E,this._postMessage(g)),E.deferred},setLatency:function(s){this._latency=s},setErrorRate:function(s){this._errorRate=s},_postMessage:function(s){this._loaded?this._postMessageNow(s):this._pendingQueue.push(s)},_handleMessage:function(s){var c,f,p,v,g,E,D,F,w,x=!0;if(window.MW_USE_IFRAME_OUT_OF_MODEL&&(x=s.source===this.remoteIframe.contentWindow),x){if(f=s.data.indexOf(";"),p=s.data.substring(0,f),!p)throw new Error("Client unable to parse message, no action specified: "+s.data);switch(p){case"ready":this._cleanupFailureChecks(),this._loaded=!0,this._flushPending();break;case"sendMessageResponse":this._sendMessageResponse(s,f);break;case"uploadIframeMessage":c=s.data.indexOf(";",f+1),v=s.data.substring(f+1,c),g=s.data.substring(c+1,s.data.length),this._uploadTargetCallbacks[v](g);break;case"websocketOpened":this.onWebsocketOpen();break;case"websocketClosed":E=s.data.substring(f+1,s.data.length),D=JSON.parse(E),this.onWebsocketClose(D);break;case"websocketMsg":F=s.data.substring(f+1,s.data.length),w=JSON.parse(F),this.onWebsocketMsg(w);break;case"websocketError":this.onWebsocketError();break;default:throw new Error("Unknown action: "+p+", data: "+s.data)}}},_sendMessageResponse:function(s,c){var f,p,v=s.data.indexOf(";",c+1),g=s.data.indexOf(";",v+1),E=s.data.substring(c+1,v),D=s.data.substring(v+1,g),F=s.data.substring(g+1,s.data.length);if(!E||!D)throw new Error("Invalid message from remote iframe: "+s.data);if(f=this._transactions[E],!f)throw new Error("Unknown transaction id: "+E+", from remote iframe: "+s.data);if(delete this._transactions[E],!f.deferred.isCanceled()){if(D==="success"){try{p=F&&JSON.parse(F)}catch(w){p=F}p=p===""?{}:p,f.deferred.resolve(p);return}this.onError(F),f.deferred.reject(F)}},_cleanupFailureChecks:function(){this._checkUrlTimeout&&clearTimeout(this._checkUrlTimeout),this._loadTimeoutHandle&&clearTimeout(this._loadTimeoutHandle),this._checkUrl&&!this._checkUrl.isFulfilled()&&this._checkUrl.cancel("Timeout Occurred or iFrame Was Loaded before CheckUrl",!1),this._checkUrlTimeout=null,this._loadTimeoutHandle=null,this._checkUrl=null},_handleLoadTimeout:function(){var s,c,f;if(!this._loaded){s={code:"IframeLoadTimeout",description:"Iframe proxy loading failed due to an HTTP error",message:""},f=this._transactions,this._transactions={},this._pendingQueue=[];for(c in f)f.hasOwnProperty(c)&&f[c].deferred.reject("Timeout while loading the iFrame "+this._url+" at "+new Date);this._errorLoading=!0,this.onError(s)}},_postMessageNow:function(s){var c=this,f,p;function v(){if(c._errorRate>0&&Math.random()0&&(p[0]==="/"&&f.lastIndexOf("/")===f.length-1?p=p.substring(1):p[0]!=="/"&&f.lastIndexOf("/")!==f.length-1&&(f+="/")),f+p)});return c}});return i.WebSocket=m([],{constructor:function(s){var c=this;this.proxyClient=i.WebSocket.proxyClient,this.proxyClient.computeToken&&s.indexOf("?")>=0&&(s=s+"&computeToken="+this.proxyClient.computeToken),this.proxyClient._postMessage("connectWebsocket;"+s),n.after(this.proxyClient,"onWebsocketOpen",function(){c.onopen.apply(c,arguments)},!0),n.after(this.proxyClient,"onWebsocketMsg",function(){c.onmessage.apply(c,arguments)},!0),n.after(this.proxyClient,"onWebsocketClose",function(){c.onclose.apply(c,arguments)},!0),n.after(this.proxyClient,"onWebsocketError",function(){c.onerror.apply(c,arguments),c.proxyClient.onError.apply(c.proxyClient,arguments)},!0)},onopen:function(){},onmessage:function(){},onclose:function(){},onerror:function(){},send:function(s){this.proxyClient._postMessage("websocketSend;"+s)},close:function(){this.proxyClient._postMessage("closeWebsocket;")}}),i},_,M),_.exports=C},function(_,M,l){"use strict";var A,C;A=[l(1),l(40),l(0),l(66),l(67)],C=l.dj.d(A,function(y,m,h,d,n){return y([],{constructor:function(t){t=t||{},this.requestMessages=t.requestMessages||{},this.responseMessages=t.responseMessages||{},this.context=t.context,this.computeToken=t.computeToken,this.uuidClassifierMap=t.uuidClassifierMap||{},this.endPointName=t.endPointName||null,this.allowedMessages=t.allowedMessages||[],this.ignoreMessageTypes=t.ignoreMessageTypes||[],this.sendMessage=t.sendMessage},addRequestMessage:function(t,r,o){if(!!r){var a=d.isEndpointMessageContainerBased(this.endPointName);this.requestMessages[t]||(this.requestMessages[t]=[]),h.isArray(r)?r.forEach(function(i){this.addRequestMessage(t,i,o)},this):a?(r.uuid=r.uuid||this._generateUuid(),o&&(this.uuidClassifierMap[r.uuid]=o),this.requestMessages[t].push(r)):this.requestMessages[t]=r,this.requestMessages=this._filterMessages(this.requestMessages)}},_filterMessages:function(t){var r={};return this.getRequestMessageTypes().forEach(function(o){(this.allowedMessages.length===0||this.allowedMessages.indexOf(o)>=0)&&(r[o]=t[o])},this),r},getResponseMessageTypes:function(){var t,r=[];for(t in this.responseMessages)this.responseMessages.hasOwnProperty(t)&&r.push(t);return r},getRequestMessageTypes:function(){var t,r=[];for(t in this.requestMessages)this.requestMessages.hasOwnProperty(t)&&r.push(t);return r},getMessageClassifier:function(t){return t&&t.uuid&&this.uuidClassifierMap.hasOwnProperty(t.uuid)?this.uuidClassifierMap[t.uuid]:""},send:function(){this._removeEmptyMessages(),this._isEmpty(this.requestMessages)?(this.deferred=new m,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(t,r){if(this.getRequestMessageTypes().indexOf(t)>-1)if(r){var o;for(o in this.uuidClassifierMap)this.uuidClassifierMap.hasOwnProperty(o)&&r&&this.uuidClassifierMap[o]===r&&this.ignoreMessageTypes.push(t+":"+r)}else this.ignoreMessageTypes.push(t)},_removeEmptyMessages:function(){if(!this._isEmpty(this.requestMessages)){var t;for(t in this.requestMessages)this.requestMessages.hasOwnProperty(t)&&h.isArray(this.requestMessages[t])&&n.getArrayLength(this.requestMessages[t])===0&&delete this.requestMessages[t]}},_isEmpty:function(t){var r;for(r in t)if(t.hasOwnProperty(r))return!1;return!0},_generateUuid:function(){return n.generateUuid()}})},_,M),_.exports=C},function(_,M,l){"use strict";var A,C;A=[l(66),l(109),l(40)],C=l.dj.d(A,function(y,m,h){var d=function(t,r,o){var a=y.getIframeProxyClientForEndPoint(r);return a.sendMessage(t,y.getRemoteUrlForEndPoint(r),o)},n=function(t,r,o){var a=o&&o.headers?o.headers:null;return m.post({url:y.getRemoteUrlForEndPoint(r),contentType:"application/json",handleAs:"json",headers:a,postData:t})};return{sendPayload:function(t,r,o){var a=y.getEndPointAllowsDirectXhr(r),i=new h;return a.then(function(u){var s;u.status===y.DirectXhrConstants.ENABLED?s=n(t,r,o):s=d(t,r,o),s.then(function(c){i.resolve(c)})}),i}}},_,M),_.exports=C},function(_,M,l){var A,C;A=[],C=l.dj.d(A,function(){"use strict";return Object.freeze({XSMALL:"xsmall",SMALL:"small",MEDIUM:"medium",LARGE:"large",XLARGE:"xlarge"})},_,M),_.exports=C},function(_,M,l){var A,C;A=[],C=l.dj.d(A,function(){"use strict";return Object.freeze({SPINNER:"spinner"})},_,M),_.exports=C},function(_,M,l){var A,C;A=[l(1),l(533),l(534)],C=l.dj.d(A,function(y,m,h){var d=null;return y("dojo.store.Memory",d,{constructor:function(n){for(var e in n)this[e]=n[e];this.setData(this.data||[])},data:null,idProperty:"id",index:null,queryEngine:h,get:function(n){return this.data[this.index[n]]},getIdentity:function(n){return n[this.idProperty]},put:function(n,e){var t=this.data,r=this.index,o=this.idProperty,a=n[o]=e&&"id"in e?e.id:o in n?n[o]:Math.random(),i=t.length,u,s,c=a in r?"update":"add";if(c==="update"){if(e&&e.overwrite===!1)throw new Error("Object already exists");s=r[a],i=s}return e&&"before"in e?e.before==null?(u=t.length,c==="update"&&--u):(u=r[this.getIdentity(e.before)],s=0&&Number.isInteger(this.commandWindowColSize))e.commandWindowColSize=this.commandWindowColSize;else return n.error="Invalid commandWindowColSize",n;if(this.commandWindowRowSize!==void 0)if((typeof this.commandWindowRowSize=="number"||this.commandWindowRowSize instanceof Number)&&this.commandWindowRowSize>=0&&Number.isInteger(this.commandWindowRowSize))e.commandWindowRowSize=this.commandWindowRowSize;else return n.error="Invalid commandWindowRowSize",n;return n.runOptions=e,n}})},_,M),_.exports=C},function(_,M,l){var A,C;A=[],C=l.dj.d(A,function(){return Object.freeze({ENTER:13,SPACE:32,TAB:9,SHIFT:16,ESCAPE:27})},_,M),_.exports=C},function(_,M,l){var A,C;A=[],C=l.dj.d(A,function(){return Object.freeze({HOVER:"hover",FOCUS:"focus",CLICK:"click",CLOSE_DELAY:300})},_,M),_.exports=C},function(_,M,l){"use strict";var A,C;A=[l(9),l(10),l(11),l(14),l(4),l(35),l(41),l(271),l(50),l(258),l(594),l(598),l(599),l(274)],C=l.dj.d(A,function(y,m,h,d,n,e,t,r,o,a,i,u,s){const c=new i({id:"AnnotationDialog",position:["left"]}),f={data:{},setup:v,init:E,render:D,refresh:w,highlighted:null};let p=null;return t.subscribe("updateAnnotation",K),t.subscribe("highlightAnnotation",H),f;function v(G,Q){G.annotator=f,p=G,n(Q.domNode,n.selector(".anno-cell","mouseover"),P),n(Q.domNode,n.selector(".anno-cell","click"),L),Q.on("dgrid-refresh-complete",$),Q.on("dgrid-select",g)}function g(G){const Q=G.grid;R(Q.selection),setTimeout(function(){T(Q)},1)}function E(G){const Q=G.annotation;f.data=I(Q,G)}function D(G,Q){const J=p.data.currentFile,Y=f.data[J];Y&&Y.filter(function(q,ee){const[re,he]=q.lines;return re<=G&&G<=he}).map(function(q){return x(q,G)}).forEach(function(q){Q.appendChild(q)})}function F(){const Q=p.code.grid.domNode.querySelectorAll(".anno-cell");y.forEach(Q,function(J){J.remove()})}function w(){F();const Q=p.code.grid.domNode.querySelectorAll(".code-row");y.forEach(Q,function(J){const Y=J.querySelector(".tail"),X=parseInt(Y.getAttribute("line"));D(X,Y)})}function x(G,Q){const J=G.col,Y=m.create("div",{class:"anno-cell"});Y.setAttribute("index",G.id);const X=J*10+2;return d.set(Y,"right",X+"px"),G.lines[0]===Q&&h.add(Y,"st"),G.lines[1]===Q&&h.add(Y,"ed"),G.pending&&h.add(Y,"new"),Y.setAttribute("flag",G.flag),Y.anno=G,Y}function R(G){const Q=p.data.currentFile;let Y=Object.keys(G).map(function(Z){return parseInt(Z)}).reduce(function(Z,q){const ee=Z[Z.length-1];if(!ee)Z.push({file:Q,lines:[q,q],flag:"normal",pending:!0});else{const re=ee.lines[1];q-re>1?Z.push({file:Q,lines:[q,q],flag:"normal",pending:!0}):ee.lines[1]=q}return Z},[]);const X=f.data[Q];Y=Y.filter(Z=>{const[q,ee]=Z.lines;return X.every(re=>re.lines[0]!==q||re.lines[1]!==ee)}),Y.forEach(Z=>{const[q,ee]=Z.lines,re=[];for(let me=q;me<=ee;me++)X.forEach(se=>{se.lines[0]<=me&&se.lines[1]>=me&&(re[se.col]=!0)});let he=0;for(const me=re.length;heW(J.id),1):t.publish({action:"Annotation",userData:{anno:J,action:"select"}})}function O(G){const Q=m.create("div",{class:"annotation-editor"}),J=p.data.currentFile,Y="AddReview";let X=e.byId(Y);if(X)X.placeAt(Q),X.anno={file:J,lines:G};else{const Z=new s({id:"AddReview",text:o.getString("SimulinkCoderApp:report:AddToReview"),icon:"add_24",anno:{file:J,lines:G}});Z.placeAt(Q),Z.startup(),Z.on("click",function(){const{file:q,lines:ee}=Z.anno,re=f.pending.find(se=>se.file===q&&se.id===ee);re.pending=!1,re.flag="normal",f.data[re.file].push(re);const me=[].concat.apply([],Object.values(f.data));t.publish({action:"Annotation",userData:{action:"add",last:re,all:me}}),j(),p.code.indicator.refresh()})}return Q}function W(G){const Q=document.querySelector('.anno-cell[index="'+G+'"]');h.add(Q,"open"),c.set("content",O(G)),u.open({popup:c,around:Q,orient:["before-centered"]})}function j(){u.close(c),f.refresh()}function K(G){p.data.annotation=G.map(V),f.data=I(p.data.annotation,p.data),p.refresh()}function H(G){const Q=V(G);p.data.files.get(Q.file)&&(f.highlighted=Q.lines,p.show(Q.file,Q.lines[0]))}function V(G){const Q=G.split(":"),J=Q[0],Y=Q[1].split("-"),X=parseInt(Y[0]),Z=Y.length>1?parseInt(Y[1]):X,q=[X,Z],ee=`${X}-${Z}`;return{file:J,lines:q,id:ee,flag:"normal",pending:!1}}function $(G){const Q=f.highlighted;Q&&setTimeout(()=>{const J=G.grid;J.clearSelection(),J.select(Q[0],Q[1]),f.highlighted=null},10)}},_,M),_.exports=C},function(_,M,l){var A,C;A=[l(1)],C=l.dj.d(A,function(y){return y(null,{text:"",postCreate:function(){this.inherited(arguments),this.domNode.classList.add("mwTextMixin"),this.set("text",this.get("text"))},_setTextAttr:function(m){if(typeof m!="string")throw new Error("'text' property expects a literal string!");this._updateTextInDOM(m),this._set("text",m)},_updateTextInDOM:function(m){this._placeTextInNode(m),this._getTextForDOM(m).length===0?this.domNode.classList.add("mwNoText"):this.domNode.classList.remove("mwNoText")},_placeTextInNode:function(m,h){for(h===void 0&&(h=this.textNode);h.firstChild;)h.removeChild(h.firstChild);var d=this._getTextForDOM(m,h);if(d.length>0){var n=document.createElement("span");n.classList.add("mwTextLine"),n.textContent=d,h.appendChild(n),h.classList.remove("mwEmptyNode")}else h.classList.add("mwEmptyNode")},_getTextForDOM:function(m){return m}})},_,M),_.exports=C},function(_,M,l){var A,C;A=[l(0),l(1)],C=l.dj.d(A,function(y,m){return m(null,{width:"auto",height:"auto",_allowedValues:["auto","100%"],postCreate:function(){this.inherited(arguments),this.domNode.classList.add("mwSizeMixin"),this.on("updatelayout",y.hitch(this,this._updateLayout))},startup:function(){this.inherited(arguments),this._updateLayout()},_updateLayout:function(){this._setWidthAttr(this.get("width")),this._setHeightAttr(this.get("height"))},_setWidthAttr:function(h){this._setSize("width",h)},_setHeightAttr:function(h){this._setSize("height",h)},_validateSizeInput:function(h){if(!(typeof h=="string"&&this._allowedValues.indexOf(h)>=0||typeof h=="number"&&h>0))throw new Error(" Property should either be 'auto' or a positive integer")},_setSize:function(h,d){if(this._validateSizeInput(d),this._set(h,d),!!this._started){var n="";this._allowedValues.indexOf(d)>=0?n=d:n=this._getAdjustedSize(h,d,this.domNode),this.domNode.style[h]=n}},_getAdjustedSize:function(h,d,n){return d+"px"}})},_,M),_.exports=C},function(_,M,l){"use strict";var A,C,y=Object.defineProperty,m=Object.defineProperties,h=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,e=Object.prototype.propertyIsEnumerable,t=(a,i,u)=>i in a?y(a,i,{enumerable:!0,configurable:!0,writable:!0,value:u}):a[i]=u,r=(a,i)=>{for(var u in i||(i={}))n.call(i,u)&&t(a,u,i[u]);if(d)for(var u of d(i))e.call(i,u)&&t(a,u,i[u]);return a},o=(a,i)=>m(a,h(i));A=[l(10),l(11),l(14),l(38),l(618),l(235),l(49),l(119)],C=l.dj.d(A,function(a,i,u,s,c,f,p,v){return{init:S,render:I,refresh:B};function g(P){const L=window.cr,O=a.create("div",{class:"cov-content"});let W=document.getElementById("justificationTable"),j=document.getElementById("justificationTitle");return j&&j.remove(),W&&W.remove(),L.data.features.showJustificationLinks&&P.justifyLink&&P.justifyLink.length>0?(W=document.createElement("TABLE"),W.setAttribute("id","justificationTable"),P.justifyLink.map((K,H)=>{const V=document.createElement("TR");V.setAttribute("id",H),V.setAttribute("class","justification-row"),W.appendChild(V);const $=document.createElement("TD");$.setAttribute("class","justification-cell");const G=document.createTextNode(K[0]);$.appendChild(G),V.appendChild($);const Q=document.createElement("TD");Q.setAttribute("class","justification-cell status");let J="",Y="";K[2]?(J=document.createElement("a"),Y=document.createTextNode(K[1]),J.appendChild(Y),J.href=`matlab: ${K[2]}`):J=document.createTextNode(K[1]),Q.appendChild(J),V.appendChild(Q)}),j=document.createElement("div"),j.appendChild(document.createTextNode(P.tooltip)),j.setAttribute("id","justificationTitle"),O.appendChild(j),O.appendChild(W)):(j=document.createElement("div"),j.appendChild(document.createTextNode(P.tooltip)),j.setAttribute("id","justificationTitle"),O.appendChild(j)),O}function E(P){this.getDomNode=function(L){const O=document.createElement("div");return O.setAttribute("style","text-overflow: ellipsis; white-space: nowrap; overflow: hidden;"),O.textContent=L,O},this.getTooltip=function(){return{text:P}},this.showTooltip=function(){return!0}}function D(){this.getDomNode=function(P){const L=document.createElement("div");return L.setAttribute("style","text-overflow: ellipsis; white-space: nowrap; overflow: hidden;"),L.textContent=P.data,L},this.getTooltip=function(P){return{text:P.tooltip}},this.showTooltip=function(){return!0}}function F(P,L,O,W){const j=Object.keys(P),K=j.map((Q,J)=>o(r({label:O[Q],dataIndex:J,columnId:O[Q],renderer:new D},W[Q]&&{headerRenderer:new E(W[Q])}),{width:{value:100/j.length,unit:"%"}})),H={features:[c.FEATURE.ColumnResize],columnModel:{columnConfig:K}},V=[j.map(Q=>({data:P[Q],tooltip:L[Q]}))],$=f.create(V,Object.assign({},{type:p.TABLE}));return new c($,H)}function w(P){this.getDomNode=function(L){const O=document.createElement("div");return O.setAttribute("style","text-overflow: ellipsis; white-space: nowrap; overflow: hidden;"),O.textContent=L,O},this.getTooltip=function(){return{text:P}},this.showTooltip=function(){return!0}}function x(){this.getDomNode=function(P){const L=document.createElement("div");if(L.setAttribute("style","text-overflow: ellipsis; white-space: nowrap; overflow: hidden;"),P.cmd){const O=document.createElement("a");O.href=`matlab:${P.cmd}`,O.text=P.data,L.appendChild(O)}else L.textContent=P.data;return L},this.getTooltip=function(P){return{text:P.tooltip}},this.showTooltip=function(){return!0}}function R(){this.getDomNode=function(P){const L=document.createElement("div");if(P[0].data){const O=document.createElement("a");O.href=`matlab:${P[0].data}`,O.title=P[0].tooltip,O.style="margin-right: 10px;";const W=document.createElement("img");W.src="/toolbox/coder/profile/resources/membrane_16.png",O.append(W),L.appendChild(O)}if(P[1].data){const O=document.createElement("a");O.href=`matlab:${P[1].data}`,O.title=P[1].tooltip,O.style="margin-right: 10px;";const W=document.createElement("img");W.src="/toolbox/coder/profile/resources/SimulationDataInspector_16.png",O.append(W),L.appendChild(O)}if(P[2].data){const O=document.createElement("a");O.href=`matlab:${P[2].data}`,O.title=P[2].tooltip,O.style="margin-right: 10px;";const W=document.createElement("img");W.src="/toolbox/coder/profile/resources/histogram_16.png",O.append(W),L.appendChild(O)}return L}}function T(P,L,O,W){const j={features:[c.FEATURE.ColumnResize],columnModel:{columnConfig:[{label:O.Name,dataIndex:0,columnId:"Name",renderer:new x,width:{value:30,unit:"%"}},o(r({label:O.MaxExecution,dataIndex:1,columnId:"MaxExecution",renderer:new x},W.MaxExecution&&{headerRenderer:new w(W.MaxExecution)}),{width:{value:10,unit:"%"}}),o(r({label:O.AverageExecution,dataIndex:2,columnId:"AverageExecution"},W.AverageExecution&&{headerRenderer:new w(W.AverageExecution)}),{width:{value:10,unit:"%"}}),o(r({label:O.MaxSelf,dataIndex:3,columnId:"MaxSelf",renderer:new x},W.MaxSelf&&{headerRenderer:new w(W.MaxSelf)}),{width:{value:10,unit:"%"}}),o(r({label:O.AverageSelf,dataIndex:4,columnId:"AverageSelf"},W.AverageSelf&&{headerRenderer:new w(W.AverageSelf)}),{width:{value:10,unit:"%"}}),{label:O.Calls,dataIndex:5,columnId:"Calls",width:{value:10,unit:"%"}},{label:"Statistics",dataIndex:6,columnId:"Statistics",renderer:new R,width:{value:20,unit:"%"}}]}},K=P.map(($,G)=>[{data:$.Name,tooltip:L[G].Name,cmd:$.NameCmd},{data:$.MaxExecution,tooltip:L[G].MaxExecution},$.AverageExecution,{data:$.MaxSelf,tooltip:L[G].MaxSelf},$.AverageSelf,$.Calls,[{data:$.MembCmd,tooltip:L[G].MembCmd},{data:$.SDICmd,tooltip:L[G].SDICmd},{data:$.HistCmd,tooltip:L[G].HistCmd}]]),H=f.create(K,Object.assign({},{type:p.TABLE}));return new c(H,j)}function S(P){P.coverage&&P.coverage.forEach(function(L){const O=L.id;L.files.forEach(function(j){const K=j.file;let H=j.probes;Array.isArray(H)||(H=[H],j.probes=H);const V=P.files.get(K);if(V){V.cov||(V.cov={}),V.cov[O]=j;const $=V.codeList;H.forEach(function(G){G.status1==="T"?G.level=1:G.status1==="E"?G.level=2:G.status1==="J"?G.level=3:G.status2?G.status2==="J"?G.level=3:G.level=4:G.level=5;const Q=parseInt(G.line),J=$[Q-1];J.cov||(J.cov={},J.cov[O]=[],J.cov[O].level=0);const Y=J.cov[O];Array.isArray(Y)?(Y.push(G),Y.level0?(i.add(P,"condition"),G=P.querySelectorAll("c")[V-1],$=H.str1+H.str2,$=$.replace(/=>/g,""),$=$.replace(/ /g,"")):(G=j,$=H.str1+" "+H.str2),i.add(G,"cov-loc");const Q=G.querySelectorAll(".cov-text").length,J=a.create("div",r({class:"cov-text",innerHTML:$},!O.data.features.coverageTooltip&&{title:H.tooltip}),G),Y=100+Q*60;u.set(J,"top",Y+"%"),J.setAttribute("covLevel",H.level),O.data.features.coverageTooltip&&(J.onmouseover=function(X){X.preventDefault(),X.stopPropagation();const Z=document.getElementById("ToolTip"),q=g(H);if(!!q){if(Z.referenceNode!==J){const{observer:ee}=v.observeElementInDom(Z.referenceNode);Z._referenceObserver=ee,Z.referenceNode=J,Z.open||setTimeout(()=>{Z.show()},500)}Z.content=q}})}))}function B(){const P=window.cr;if(P.config.covOn?i.add(P.domNode,"show-coverage"):i.remove(P.domNode,"show-coverage"),!P.data.coverage)return;const L=P.data.currentFile,O=P.data.files.get(L),W=P.footer.querySelector("#Information");if(W){const j=O.cov&&O.cov[P.config.covType],K=P.data.profiling,H=j&&j.summary,V=j&&j.summaryData;if(j&&(V||H)){let $=document.getElementById("CoverageSummary");if($)for(;$.firstChild;)$.removeChild($.firstChild);else $=document.createElement("div"),$.setAttribute("id","CoverageSummary"),W.appendChild($);if(P.data.features.useMWTable&&V&&Object.keys(V).length>0){const Q=document.createElement("h4");Q.textContent=V.title;const J=F(V.percentage,V.percentageTooltip,V.columnHeader,V.columnHeaderTooltip);$.appendChild(Q),$.appendChild(J.domNode),J.startup()}else $.innerHTML+=H;j.probes.some(function(Q){return!(Q.col>0)})&&i.add(P.domNode,"has-line-coverage")}if(K&&K.TaskSummaryData&&K.TaskSummaryTooltips&&K.TaskSummaryColHeaders&&K.TaskSummaryColTooltips&&P.data.features.showTaskSummary){let $=document.getElementById("TaskSummary");if($)for(;$.firstChild;)$.removeChild($.firstChild);else $=document.createElement("div"),$.setAttribute("id","TaskSummary"),W.appendChild($);const G=document.createElement("h6");G.textContent="Task Profiling Summary";const Q=JSON.parse(K.TaskSummaryData),J=JSON.parse(K.TaskSummaryTooltips),Y=JSON.parse(K.TaskSummaryColHeaders)[0],X=JSON.parse(K.TaskSummaryColTooltips)[0],Z=T(Q,J,Y,X);$.appendChild(G),$.appendChild(Z.domNode),Z.startup()}W.innerHTML&&(u.set(W,"display","block"),i.add(P.domNode,"has-coverage"))}else W.innerHTML="",i.remove(P.domNode,"has-coverage"),u.set(W,"display","none")}},_,M),_.exports=C},function(_,M,l){var A,C;A=[],C=l.dj.d(A,function(){"use strict";var y=Object.freeze({ROW_LINES:"ROW_LINES",LIGHT_WEIGHT:"LIGHT_WEIGHT",STANDARD:"STANDARD"}),m=Object.freeze({ROW_LINES:"mw-table-gridstyle-rowlines",LIGHT_WEIGHT:"mw-table-gridstyle-lightweight",COLUMN_LINES:"mw-table-gridstyle-columnlines",STANDARD:"",public_enum:y});return m},_,M),_.exports=C},function(_,M,l){var A,C;A=[],C=l.dj.d(A,function(){var y=Object.freeze({COL_WIDTH:82,ROW_HEIGHT:22,TOOLTIP_MIN_WIDTH:300}),m=Object.freeze({TREE_COLUMN_INDEX:0,TREE_NODE_INDENTATION:18,dimensions:y,KEY_HANDLER_NAME:"keyHandlerName",KEY_CODE:"keyCode",KEY_HANDLER:"keyHandler",PLATFORMS:"platforms",MODIFIER_KEY_LIST:"modifierKeyList",ALT_KEY:"altKey",CTRL_KEY:"ctrlKey",META:"meta",SHIFT_KEY:"shiftKey"});return m},_,M),_.exports=C},function(_,M,l){var A,C,y=function(){function h(d,n){for(var e=0;e=f.next}},{key:"isNextItem",value:function(c,f){return c.next>f.prev&&c.next<=f.next}},{key:"isPreviousItem",value:function(c,f){return c.prev>f.prev&&c.prev<=f.next}},{key:"getRowPosition",value:function(c,f,p,v){var g=f[p]||{},E=t.map(g,[["top","prev"],["bottom","next"]]),D=t.map(c,[["top","prev"],["bottom","next"]]);return this.isNextItem(D,E)?this.getScrollBottomPosition(v,p,f):this.isPreviousItem(D,E)?this.getScrollTopPosition(p,f):this.isInRange(D,E)?null:this.getScrollTopPosition(p,f)}},{key:"getColPosition",value:function(c,f,p,v){var g=v[c]||{},E=t.map(g,[["left","prev"],["right","next"]]),D=t.map(f,[["left","prev"],["right","next"]]);return this.isNextItem(D,E)?this.getScrollRightPosition(p,c,v):this.isPreviousItem(D,E)?this.getScrollLeftPosition(c,v):this.isInRange(D,E)?null:this.getScrollLeftPosition(c,v)}}]),u}();return i},_,M),_.exports=C},function(_,M,l){var A,C,y=function(){function h(d,n){for(var e=0;e{let o=n.getData(r);if(h.checkImageType(r)){let a=y.convert(o,r);e[r]=a}}),new ClipboardItem(e)},checkImageType:function(n){return!!new RegExp("^image{1}/","i").exec(n)},clipboardItemsToDataTransfer:function(n,e){let t=[];for(let r of n)t.push(h.clipboardItemToDataTransfer(r,e));return Promise.all(t).then(()=>Promise.resolve(e))},clipboardItemToDataTransfer:function(n,e){return h.clipboardItemToPromises(n).then(t=>h.clipboardItemPromisesToBlob(t)).then(t=>h.blobsToDataTransfer(t,e))},clipboardItemToPromises:function(n){return new Promise(e=>{let t=[];for(const r of n.types)t.push(n.getType(r));e(t)})},clipboardItemPromisesToBlob:function(n){return Promise.allSettled(n).then(e=>e.filter(t=>t.status==="fulfilled"))},blobsToDataTransfer:function(n,e){let t=[],r=[];for(let o of n){let a=o.value.type;r.push(a),h.checkImageType(a)?e.items.add(new File([o.value],m.convert(a),{type:a})):t.push(h.blobToText(o.value))}return Promise.all(t).then(o=>(o.forEach((a,i)=>{e.items.add(a,r[i])}),e))},blobToText:function(n){return new Promise(e=>{let t=new FileReader;t.onload=function(r){e(r.target.result)},t.readAsText(n)})},blobToBase64:function(n){return new Promise(e=>{let t=new FileReader;t.onload=function(r){e(r.target.result)},t.readAsDataURL(n)})}};return h},_,M),_.exports=C},function(_,M,l){"use strict";var A,C;A=[],C=l.dj.d(A,function(){const y=8;function m(e){return atob(e)}function h(e,t){return Math.min(e+y,t)}function d(e,t){for(let r=0,o=0;r{let e=this._events[h].indexOf(d);this._events[h].splice(e,1),n.remove=()=>null},n}emit(h,d={}){let n=this._events[h],e=Object.getOwnPropertyNames(d),t={};e.forEach(o=>{t[o]=d[o]}),(o=>{o&&o.forEach(a=>{a(t)})})(n)}hasListeners(h){return this._events[h]?this._events[h].length>0:!1}}return y},_,M),_.exports=C},function(_,M,l){"use strict";var A,C;A=[l(70),l(80),l(287)],C=l.dj.d(A,function(y,m,h){class d{constructor(){this._cacheDataTransfer=new y}set(e){e&&(this._cacheDataTransfer=e)}clear(){this._cacheDataTransfer=new y}static clone(e){let t=new y;if(e.types.forEach(function(r){r!==h.FILES&&t.setData(r,e.getData(r))}),!e.items)return t;for(let r=0;ru.type),o=Array.from(t.items).map(u=>u.type);return!r.every(u=>o.includes(u))||e.files.length>0&&t.files.length>0?!1:r.every(u=>{let s=e.getData(u),c=t.getData(u);return u===h.TEXT_HTML?this._validateHTML(s,c):e.getData(u)===t.getData(u)})}_validateHTML(e,t){const r=new DOMParser;let o=r.parseFromString(t,h.TEXT_HTML).body,a=this._getChildNodes(o),i=r.parseFromString(e,h.TEXT_HTML).body,u=this._getChildNodes(i);return a.length!==u.length?!1:a.every((c,f)=>{let p=u[f];return p.tagName!==c.tagName?!1:c.childNodes.length>0?!0:p.textContent===c.textContent})}_getChildNodes(e){let t=[];e instanceof window.Text&&e.textContent.trim()===""||t.push(e);for(let r=0;r<(e.childNodes&&e.childNodes.length);r++){let o=e.childNodes[r];t=t.concat(this._getChildNodes(o))}return t}mix(e){let t=new y,r=this.get(),o=new Map;for(let a=0;am?(y.apply(null,arguments),d=Date.now(),window.clearTimeout(e),h=!1):h||t(a)}return o.cancel=r,o}},_,M),_.exports=C},function(_,M,l){var A,C,y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m=function(){function e(t,r){for(var o=0;o1&&arguments[1]!==void 0?arguments[1]:a.COLUMN_HEADER,G=this.props,Q=G.colIndex,J=G.name,Y=G.id,X=g.getTargetNode(a.COLUMN_HEADER,H.target,this.renderNode,this.state.headerRenderer);if(!this.state.dragInProgress&&this.state.headerRenderer.getTooltip&&(this.state.headerRenderer.showTooltip||g.isElementOverflow(X))){var Z=$===a.COLUMN_HEADER?Q:Y;this.props.eventCallback(e.protected.NODE_NOTIFY,{publisherFn:function(){return{node:H.target,id:$+Z,content:V.state.headerRenderer.getTooltip(J).text,className:"mw-table-header-column"}},publisherId:t.protected.publisher.CELL_ENTER,noRender:!0})}}},{key:"_handleContextmenu",value:function(H){var V=this.props,$=V.eventCallback,G=V.rowIndex,Q=V.colIndex,J=V.colIndexEnd,Y={type:a.COLUMN_HEADER,rowIndex:G,colIndex:Q,colEnd:J};return g.eventCallbackForContextMenu(H,$,Y)}},{key:"_handleDoubleClick",value:function(){}},{key:"_handleMouseDown",value:function(H){if(!g.isSyntheticRightClick(H)){var V=this.props,$=V.colIndex,G=V.headerMeta,Q=V.colIndexEnd,J=V.range,Y=J===void 0?{}:J;if(!($<0)&&!x(H.target)){var X=D.isGroupColumn(G),Z=D.getColRangeIndicesForView($,G,Q,Y.start);this.props.eventCallback(e.protected.COL_HEADER_CLICK,{column:Z.startIndex,columnEnd:Z.endIndex,groupedSelection:X,meta:H.metaKey,ctrlKey:H.ctrlKey,shiftKey:H.shiftKey,altKey:H.altKey})}}}},{key:"handleDragState",value:function(H){this.setState({dragInProgress:H}),this.props.eventCallback(e.internal.DRAG_STARTED,{columnDragStarted:H})}},{key:"_isWidthCollapsed",value:function(H,V){var $=H.styleData,G=H.collapseColumn,Q=H.logicalColWidth;if(!G)return!1;var J=$&&$.minWidth?$.minWidth:Q,Y=V||J;return Y99999?p.toExponential(2):p.toFixed(0);c.setAttribute("num",v);const g=u.NumCalls.toString();f.setAttribute("calls",g)}function e(){const t=window.cr;t.config.cpOn?m.add(t.domNode,"show-profiling"):m.remove(t.domNode,"show-profiling");const r=t.data.currentFile;t.data.files.get(r).profiling?m.add(t.domNode,"has-profiling"):m.remove(t.domNode,"has-profiling")}},_,M),_.exports=C},function(_,M,l){var A,C;A=[],C=l.dj.d(A,function(){"use strict";function y(t,r,o,a,i,u){this.indented=t,this.column=r,this.type=o,this.info=a,this.align=i,this.prev=u}function m(t,r,o,a){var i=t.indented;return t.context&&t.context.type=="statement"&&o!="statement"&&(i=t.context.indented),t.context=new y(i,r,o,a,null,t.context)}function h(t){var r=t.context.type;return(r==")"||r=="]"||r=="}")&&(t.indented=t.context.indented),t.context=t.context.prev}function d(t,r,o){if(r.prevToken=="variable"||r.prevToken=="variable-3"||/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(t.string.slice(0,o))||r.typeAtEndOfLine&&t.column()==t.indentation())return!0}function n(t){for(;;){if(!t||t.type=="top")return!0;if(t.type=="}"&&t.prev.info!="namespace")return!1;t=t.prev}}var e=function(r){r.defineMode("clike",function(w,x){var R=w.indentUnit,T=x.statementIndentUnit||R,S=x.dontAlignCalls,I=x.keywords||{},B=x.types||{},P=x.builtin||{},L=x.blockKeywords||{},O=x.defKeywords||{},W=x.atoms||{},j=x.hooks||{},K=x.multiLineStrings,H=x.indentStatements!==!1,V=x.indentSwitch!==!1,$=x.namespaceSeparator,G=x.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,Q=x.numberStart||/[\d\.]/,J=x.numberTokenizer||te,Y=x.isOperatorChar||/[+\-*&%=<>!?|\/\^~]/,X=x.validOperators||/^(?:=|\+=|-=|\*=|\/=|%=|&=|\|=|\^=|<<=|>>=|\+\+|--|\+|-|\*+|\/|%|~|&+|\||\^|<<|>>|!+|\|\||==|!=|<|>|<=|>=|->|\?|:)$/,Z=x.isIdentifierChar||/[\w\$_\xa1-\uffff]/,q,ee;function re(ue,ce){var ve=ue.next();if(j[ve]){var Se=j[ve](ue,ce);if(Se!==!1)return Se}if(ve=='"'||ve=="'")return ce.tokenize=he(ve),ce.tokenize(ue,ce);if(G.test(ve))return q=ve,null;if(Q.test(ve))return ue.backUp(1),J(ue,ce);if(ve=="/"){if(ue.eat("*"))return ce.tokenize=me,me(ue,ce);if(ue.eat("/"))return ue.skipToEnd(),"comment"}if(Y.test(ve))return ue.backUp(1),se(ue,ce);if(ue.eatWhile(Z),$)for(;ue.match($);)ue.eatWhile(Z);var Be=ue.current();return a(I,Be)?(a(L,Be)&&(q="newstatement"),a(O,Be)&&(ee=!0),"keyword"):a(B,Be)?"variable-3":a(P,Be)?(a(L,Be)&&(q="newstatement"),"builtin"):a(W,Be)?"atom":Z.test(ve)?"variable":(ue.backUp(Be.length-1),"invalid_character")}function he(ue){return function(ce,ve){for(var Se=!1,Be,ke=!1;(Be=ce.next())!=null;){if(Be==ue&&!Se){ke=!0;break}Se=!Se&&Be=="\\"}return(ke||!(Se||K))&&(ve.tokenize=null),ue=='"'?"string":"string-2"}}function me(ue,ce){for(var ve=!1,Se;Se=ue.next();){if(Se=="/"&&ve){ce.tokenize=null;break}ve=Se=="*"}return"comment"}function se(ue,ce){for(var ve="";!ue.match(/^\/[\/*]/,!1)&&ue.match(Y,!1);)ve+=ue.next();return X.test(ve)?"operator":"invalid_operator"}function te(ue,ce){var ve=ue.next();if(ve==="0")if(ue.eat(/x/i)){var Se=ue.match(/^(?:(?:(?:(?:[0-9a-f]+\.?[0-9a-f]*)|(?:[0-9a-f]*\.?[0-9a-f]+))p[+\-]?[0-9]+[fl]?)|(?:[0-9a-f]+(?:u|l|ll)?))/i);if(!Se)return"incomplete_hex_number"}else if(ue.eat(/b/i)){var Be=ue.match(/^[01]+(?:u|l|ll)?/i);if(!Be)return"incomplete_bin_number"}else ue.backUp(1),ue.match(/^(?:(?:(?:(?:[0-9]+\.?[0-9]*)|(?:[0-9]*\.?[0-9]+))(?:e[+\-]?[0-9]+)?[fl]?)|(?:[0-7]*(?:u|l|ll)?))/i);else ue.backUp(1),ue.match(/^(?:(?:(?:(?:[0-9]+\.?[0-9]*)|(?:[0-9]*\.?[0-9]+))(?:e[+\-]?[0-9]+)?[fl]?)|(?:[1-9][0-9]*(?:u|l|ll)?))/i);var ke=ue.peek();return ke&&/\w|\./i.test(ke)?(ue.match(/^(?:\w|\.)*/),"invalid_number"):"number"}function oe(ue,ce){x.typeFirstDefinitions&&ue.eol()&&n(ce.context)&&(ce.typeAtEndOfLine=d(ue,ce,ue.pos))}return{startState:function(ue){return{tokenize:null,context:new y((ue||0)-R,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(ue,ce){var ve=ce.context;if(ue.sol()&&(ve.align==null&&(ve.align=!1),ce.indented=ue.indentation(),ce.startOfLine=!0),ue.eatSpace())return oe(ue,ce),null;q=ee=null;var Se=(ce.tokenize||re)(ue,ce);if(Se=="comment"||Se=="meta")return Se;if(ve.align==null&&(ve.align=!0),q==":"&&(ce.currentSwitchIndentAmount=ce.indented+R),q==";"&&(ce.currentSwitchIndentAmount=ce.indented),q==";"||q==":"||q==","&&ue.match(/^\s*(?:\/\/.*)?$/,!1))for(;ce.context.type=="statement";)h(ce);else if(q=="{")m(ce,ue.column(),"}");else if(q=="[")m(ce,ue.column(),"]");else if(q=="(")m(ce,ue.column(),")");else if(q=="}"){for(;ve.type=="statement";)ve=h(ce);for(ve.type=="}"&&(ve=h(ce));ve.type=="statement";)ve=h(ce)}else q==ve.type?h(ce):H&&((ve.type=="}"||ve.type=="top")&&q!=";"||ve.type=="statement"&&q=="newstatement")&&m(ce,ue.column(),"statement",ue.current());if(Se=="variable"&&(ce.prevToken=="def"||x.typeFirstDefinitions&&d(ue,ce,ue.start)&&n(ce.context)&&ue.match(/^\s*\(/,!1))&&(Se="def"),j.token){var Be=j.token(ue,ce,Se);Be!==void 0&&(Se=Be)}return Se=="def"&&x.styleDefs===!1&&(Se="variable"),ce.startOfLine=!1,ce.prevToken=ee?"def":Se||q,oe(ue,ce),Se},indent:function(ue,ce){if(ue.tokenize!=re&&ue.tokenize!=null||ue.typeAtEndOfLine)return r.Pass;var ve=ue.context,Se=ce&&ce.charAt(0);if(ve.type=="statement"&&Se=="}"&&(ve=ve.prev),x.dontIndentStatements)for(;ve.type=="statement"&&x.dontIndentStatements.test(ve.info);)ve=ve.prev;if(j.indent){var Be=j.indent(ue,ve,ce);if(typeof Be=="number")return Be}var ke=Se==ve.type,Ge=ve.prev&&ve.prev.info=="switch";if(x.allmanIndentation&&/[{(]/.test(Se)){for(;ve.type!="top"&&ve.type!="}";)ve=ve.prev;return ve.indented}return ve.type=="statement"?ve.indented+(Se=="{"?0:T):ve.align&&(!S||ve.type!=")")?ve.column+(ke?0:1):ve.type==")"&&!ke?ve.indented+T:/^(?:case|default)\b/.test(ce)&&Ge?ve.prev.indented+R:Ge&&Se!=="}"?ue.currentSwitchIndentAmount:ve.indented+(ke?0:R)},electricInput:V?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}});function o(w){for(var x={},R=w.split(" "),T=0;T>=|\+\+|--|\+|-|>*\*+>*|\/|%|~|>*&+>*|\||\^|<<|>>|!+|\|\||==|!=|<|>|<=|>=|<=>|->\**|\?|:)$/}),D("text/x-java",{name:"clike",keywords:o("abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface"),types:o("byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:o("catch class do else finally for if switch try while"),defKeywords:o("class interface package enum @interface"),typeFirstDefinitions:!0,atoms:o("true false null"),numberTokenizer:function(w,x){var R=w.next();if(R==="0")if(w.eat(/x/i)){var T=w.match(/^(?:(?:(?:(?:[0-9a-f_]+\.?[0-9a-f_]*)|(?:[0-9a-f_]*\.?[0-9a-f_]+))p[+\-]?[0-9_]+[fd]?)|(?:[0-9a-f_]+l?))/i);if(!T)return"incomplete_hex_number"}else if(w.eat(/b/i)){var S=w.match(/^[01_]+l?/i);if(!S)return"incomplete_bin_number"}else w.backUp(1),w.match(/^(?:(?:(?:(?:[0-9_]+\.?[0-9_]*)|(?:[0-9_]*\.?[0-9_]+))(?:e[+\-]?[0-9_]+)?[fd]?)|(?:[0-7_]*l?))/i);else w.backUp(1),w.match(/^(?:(?:(?:(?:[0-9_]+\.?[0-9_]*)|(?:[0-9_]*\.?[0-9_]+))(?:e[+\-]?[0-9_]+)?[fd]?)|(?:[1-9_][0-9_]*l?))/i);var I=w.peek();return I&&/\w|\./i.test(I)?(w.match(/^(?:\w|\.)*/),"invalid_number"):"number"},hooks:{"@":function(w){return w.match("interface",!1)?!1:(w.eatWhile(/[\w\$_]/),"meta")}},modeProps:{fold:["brace","import"]},validOperators:/^(?:=|>|<|!+|~|<*\?>*|:|->|==|>=|<=|!=|&&|\|\||\+\+|--|\+|-|\*|\/|&|\||\^|%|<<|>>|>>>|\+=|-=|\*=|\/=|&=|\|=|\^=|%=|<<=|>>=|>>>=)$/}),D("text/x-csharp",{name:"clike",keywords:o("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in interface internal is lock namespace new operator out override params private protected public readonly ref return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),types:o("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),blockKeywords:o("catch class do else finally for foreach if struct switch try while"),defKeywords:o("class interface namespace struct var"),typeFirstDefinitions:!0,atoms:o("true false null"),hooks:{"@":function(w,x){return w.eat('"')?(x.tokenize=g,g(w,x)):(w.eatWhile(/[\w\$_]/),"meta")}}})};return e},_,M),_.exports=C},function(_,M,l){var A,C;A=[l(1),l(0),l(9),l(61)],C=l.dj.d(A,function(y,m,h,d){return y("dojo.Stateful",null,{_attrPairNames:{},_getAttrNames:function(n){var e=this._attrPairNames;return e[n]?e[n]:e[n]={s:"_"+n+"Setter",g:"_"+n+"Getter"}},postscript:function(n){n&&this.set(n)},_get:function(n,e){return typeof this[e.g]=="function"?this[e.g]():this[n]},get:function(n){return this._get(n,this._getAttrNames(n))},set:function(n,e){if(typeof n=="object"){for(var t in n)n.hasOwnProperty(t)&&t!="_watchCallbacks"&&this.set(t,n[t]);return this}var r=this._getAttrNames(n),o=this._get(n,r),a=this[r.s],i;if(typeof a=="function"?i=a.apply(this,Array.prototype.slice.call(arguments,1)):this[n]=e,this._watchCallbacks){var u=this;d(i,function(){u._watchCallbacks(n,o,e)})}return this},_changeAttrValue:function(n,e){var t=this.get(n);return this[n]=e,this._watchCallbacks&&this._watchCallbacks(n,t,e),this},watch:function(n,e){var t=this._watchCallbacks;if(!t){var r=this;t=this._watchCallbacks=function(i,u,s,c){var f=function(p){if(p){p=p.slice();for(var v=0,g=p.length;v-1&&o.splice(i,1)},a}})},_,M),_.exports=C},function(_,M,l){var A,C;A=[l(139),l(39),l(1),l(0)],C=l.dj.d(A,function(y,m,h,d){return d.extend(m,{focused:!1,onFocus:function(){},onBlur:function(){},_onFocus:function(){this.onFocus()},_onBlur:function(){this.onBlur()}}),h("dijit._FocusMixin",null,{_focusManager:y})},_,M),_.exports=C},function(_,M,l){var A,C;A=[l(9),l(1),l(10),l(6)],C=l.dj.d(A,function(y,m,h,d){return m("dijit._Container",null,{buildRendering:function(){this.inherited(arguments),this.containerNode||(this.containerNode=this.domNode)},addChild:function(n,e){var t=this.containerNode;if(e>0){for(t=t.firstChild;e>0;)t.nodeType==1&&e--,t=t.nextSibling;t?e="before":(t=this.containerNode,e="last")}h.place(n.domNode,t,e),this._started&&!n._started&&n.startup()},removeChild:function(n){if(typeof n=="number"&&(n=this.getChildren()[n]),n){var e=n.domNode;e&&e.parentNode&&e.parentNode.removeChild(e)}},hasChildren:function(){return this.getChildren().length>0},_getSiblingOfChild:function(n,e){var t=this.getChildren(),r=y.indexOf(t,n);return t[r+e]},getIndexOfChild:function(n){return y.indexOf(this.getChildren(),n)}})},_,M),_.exports=C},function(_,M,l){var A,C;A=[l(1),l(35)],C=l.dj.d(A,function(y,m){return y("dijit._Contained",null,{_getSibling:function(h){var d=this.getParent();return d&&d._getSiblingOfChild&&d._getSiblingOfChild(this,h=="previous"?-1:1)||null},getPreviousSibling:function(){return this._getSibling("previous")},getNextSibling:function(){return this._getSibling("next")},getIndexInParent:function(){var h=this.getParent();return!h||!h.getIndexOfChild?-1:h.getIndexOfChild(this)}})},_,M),_.exports=C},function(_,M,l){var A,C;A=[l(6),l(0),l(87),l(198),l(344),l(56),l(144),l(9),l(1),l(40),l(12),l(34),l(10),l(109),l(62),l(61),l(353)],C=l.dj.d(A,function(y,m,h,d,n,e,t,r,o,a,i,u,s,c,f,p){return o("dijit.layout.ContentPane",[h,d,n],{href:"",content:"",extractContent:!1,parseOnLoad:!0,parserScope:y._scopeName,preventCache:!1,preload:!1,refreshOnShow:!1,loadingMessage:"${loadingState}",errorMessage:"${errorState}",isLoaded:!1,baseClass:"dijitContentPane",ioArgs:{},onLoadDeferred:null,_setTitleAttr:null,stopParser:!0,template:!1,markupFactory:function(v,g,E){var D=new E(v,g);return!D.href&&D._contentSetter&&D._contentSetter.parseDeferred&&!D._contentSetter.parseDeferred.isFulfilled()?D._contentSetter.parseDeferred.then(function(){return D}):D},create:function(v,g){if((!v||!v.template)&&g&&!("href"in v)&&!("content"in v)){g=i.byId(g);for(var E=g.ownerDocument.createDocumentFragment();g.firstChild;)E.appendChild(g.firstChild);v=m.delegate(v,{content:E})}this.inherited(arguments,[v,g])},postMixInProperties:function(){this.inherited(arguments);var v=f.getLocalization("dijit","loading",this.lang);this.loadingMessage=e.substitute(this.loadingMessage,v),this.errorMessage=e.substitute(this.errorMessage,v)},buildRendering:function(){this.inherited(arguments),this.containerNode||(this.containerNode=this.domNode),this.domNode.removeAttribute("title")},startup:function(){this.inherited(arguments),this._contentSetter&&r.forEach(this._contentSetter.parseResults,function(v){!v._started&&!v._destroyed&&m.isFunction(v.startup)&&(v.startup(),v._started=!0)},this)},_startChildren:function(){r.forEach(this.getChildren(),function(v){!v._started&&!v._destroyed&&m.isFunction(v.startup)&&(v.startup(),v._started=!0)}),this._contentSetter&&r.forEach(this._contentSetter.parseResults,function(v){!v._started&&!v._destroyed&&m.isFunction(v.startup)&&(v.startup(),v._started=!0)},this)},setHref:function(v){return y.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use set('href', ...) instead.","","2.0"),this.set("href",v)},_setHrefAttr:function(v){return this.cancel(),this.onLoadDeferred=new a(m.hitch(this,"cancel")),this.onLoadDeferred.then(m.hitch(this,"onLoad")),this._set("href",v),this.preload||this._created&&this._isShown()?this._load():this._hrefChanged=!0,this.onLoadDeferred},setContent:function(v){y.deprecated("dijit.layout.ContentPane.setContent() is deprecated. Use set('content', ...) instead.","","2.0"),this.set("content",v)},_setContentAttr:function(v){return this._set("href",""),this.cancel(),this.onLoadDeferred=new a(m.hitch(this,"cancel")),this._created&&this.onLoadDeferred.then(m.hitch(this,"onLoad")),this._setContent(v||""),this._isDownloaded=!1,this.onLoadDeferred},_getContentAttr:function(){return this.containerNode.innerHTML},cancel:function(){this._xhrDfd&&this._xhrDfd.fired==-1&&this._xhrDfd.cancel(),delete this._xhrDfd,this.onLoadDeferred=null},destroy:function(){this.cancel(),this.inherited(arguments)},destroyRecursive:function(v){this._beingDestroyed||this.inherited(arguments)},_onShow:function(){if(this.inherited(arguments),this.href&&!this._xhrDfd&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow))return this.refresh()},refresh:function(){return this.cancel(),this.onLoadDeferred=new a(m.hitch(this,"cancel")),this.onLoadDeferred.then(m.hitch(this,"onLoad")),this._load(),this.onLoadDeferred},_load:function(){this._setContent(this.onDownloadStart(),!0);var v=this,g={preventCache:this.preventCache||this.refreshOnShow,url:this.href,handleAs:"text"};m.isObject(this.ioArgs)&&m.mixin(g,this.ioArgs);var E=this._xhrDfd=(this.ioMethod||c.get)(g),D;E.then(function(F){D=F;try{return v._isDownloaded=!0,v._setContent(F,!1)}catch(w){v._onError("Content",w)}},function(F){return E.canceled||v._onError("Download",F),delete v._xhrDfd,F}).then(function(){return v.onDownloadEnd(),delete v._xhrDfd,D}),delete this._hrefChanged},_onLoadHandler:function(v){this._set("isLoaded",!0);try{this.onLoadDeferred.resolve(v)}catch(g){console.error("Error "+(this.widgetId||this.id)+" running custom onLoad code: "+g.message)}},_onUnloadHandler:function(){this._set("isLoaded",!1);try{this.onUnload()}catch(v){console.error("Error "+this.widgetId+" running custom onUnload code: "+v.message)}},destroyDescendants:function(v){this.isLoaded&&this._onUnloadHandler();var g=this._contentSetter;r.forEach(this.getChildren(),function(E){E.destroyRecursive?E.destroyRecursive(v):E.destroy&&E.destroy(v),E._destroyed=!0}),g&&(r.forEach(g.parseResults,function(E){E._destroyed||(E.destroyRecursive?E.destroyRecursive(v):E.destroy&&E.destroy(v),E._destroyed=!0)}),delete g.parseResults),v||s.empty(this.containerNode),delete this._singleChild},_setContent:function(v,g){v=this.preprocessContent(v),this.destroyDescendants();var E=this._contentSetter;E&&E instanceof t._ContentSetter||(E=this._contentSetter=new t._ContentSetter({node:this.containerNode,_onError:m.hitch(this,this._onError),onContentError:m.hitch(this,function(x){var R=this.onContentError(x);try{this.containerNode.innerHTML=R}catch(T){console.error("Fatal "+this.id+" could not change content due to "+T.message,T)}})}));var D=m.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:!v.domNode&&this.parseOnLoad,parserScope:this.parserScope,startup:!1,dir:this.dir,lang:this.lang,textDir:this.textDir},this._contentSetterParams||{}),F=E.set(m.isObject(v)&&v.domNode?v.domNode:v,D),w=this;return p(F&&F.then?F:E.parseDeferred,function(){delete w._contentSetterParams,g||(w._started&&(w._startChildren(),w._scheduleLayout()),w._onLoadHandler(v))})},preprocessContent:function(v){return v},_onError:function(v,g,E){this.onLoadDeferred.reject(g);var D=this["on"+v+"Error"].call(this,g);E?console.error(E,g):D&&this._setContent(D,!0)},onLoad:function(){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage},onContentError:function(){},onDownloadError:function(){return this.errorMessage},onDownloadEnd:function(){}})},_,M),_.exports=C},function(_,M,l){var A,C;A=[l(27),l(4)],C=l.dj.d(A,function(y,m){return function(){return m.pausable(window,"message",function(d){!d.data.message||(d.data.message==="postHistory"?y.publish("/postHistory",d.data):d.data.message==="jumpToCode"?y.publish("/jumpToCode",d.data):d.data.message==="legacyMCall"?y.publish("/legacyMCall",d.data):d.data.message==="loadHistoryState"?y.publish("/loadHistoryState",d.data):d.data.message==="traceToWebview"?y.publish("/traceToWebview",d.data):d.data.message==="showCodeView"?y.publish("/showCodeView",d.data):d.data.message==="jumpToReport"?y.publish("/jumpToReport",d.data):d.data.message==="gotoReportPage"?y.publish("/gotoReportPage",d.data):(d.data.message==="currentModelChanged"||d.data.message==="reportPageLoaded")&&y.publish("/"+d.data.message,d.data))})}},_,M),_.exports=C},function(_,M,l){var A,C;A=[l(12),l(10),l(47),l(4),l(27),l(203)],C=l.dj.d(A,function(y,m,h,d,n,e){let t=null,r=null,o=null,a=null,i=null,u=null,s=null,c=null;const f="protectedMdl";return function(P,L,O){return s=P,i=window.modelInfo.model,u=O,t=L,w(),a.startup(),a.expandAll(),n.subscribe("/currentModelChanged",function(W){E(W.model)}),{getReportPathFromModel:v,getProtectedTreeNodes:x,addProtMdlClass:R,updateModelHierarchy:I,updateReport:B}};function p(P){a.setSelection([{id:P}])}function v(P){for(let L=0;LCurrent model: "+P+" ▼"}function F(P){c.innerHTML=D(P)}function w(){let P=null;r=m.create("div",{id:"modelSelector",class:"dropDown"}),c=O();const L=W();m.place(c,r),s&&m.place(L,s),t&&m.place(r,t);function O(){const H=m.create("span",{id:"modelSelectorButton",innerHTML:D(i)});return d(H,"click",function(){const V=x();R(V),o.classList.toggle("show");const $=H.innerHTML;$.includes("\u25BC")?H.innerHTML=$.replace("\u25BC","\u25B2"):H.innerHTML=$.replace("\u25B2","\u25BC")}),H}function W(){return o=m.create("div",{id:"dropDownDiv",class:"dropDownContent"}),j(),m.place(a.domNode,o),d(o,"click",function(){I();const H=c.innerHTML;c.innerHTML=H.replace("\u25B2","\u25BC"),o.classList.toggle("show")}),o}function j(){K(),a=new e(P),a.on("selectionChanged",function(H){const V=v(H.nodeIds[0]);V!==null&&window.fetch(V).then(function($){if($.status===404){const G=g(H.nodeIds[0]);T(G)}else{const G=H.nodeIds[0];B(V,G)}},function(){const $=H.nodeIds[0];B(V,$)}),I()})}function K(){if(P=[],!window.modelHierarchy){const H={};H.id=window.modelInfo.model,H.label=window.modelInfo.model,P.push(H),window.treeData=P;return}for(let H=0;H=0&&V===H&&!K.includes(f)&&P.push(L[W])}return P}function R(P){for(let L=0;L1&&arguments[1]!==void 0?arguments[1]:{};h(this,P),this._eventListeners=[],this._controllers=[],this._plugins=[],this._eventsMap={},this._createModels(L);var W=E.getPluginsBasedOnDSConfiguration(this._dataStore)||[],j=O.plugins||[],K=[].concat(m(j),m(W));K=K.length>0?K:void 0;var H=this._getConfiguredPlugins(K,O);this._setViewModel(this._myViewModel,O),this._domNode=document.createElement("div"),this._domNode.className="mw-tree treeContainer",this._domNode.setAttribute("data-test-id",O.dataTestId),this._configureFeatureSpecificViewAndController(O,H),this._createAndConfigureControllers(O),this._createAndConfigurePlugins(H,O),this._configureExposedVariableApis()}return y(P,[{key:"_configureFeatureSpecificViewAndController",value:function(O,W){if(O.editor&&O.editor.type){this._treeView=new t(this._myViewModel,this._domNode,O,W);var j=new r(this._treeView,this._myViewModel,this._dataStore);this._proxyControllerEvents(j,j.emits),this._controllers.push(j)}else this._treeView=new e(this._myViewModel,this._domNode,O,W);var K=new o(this._treeView,this._myViewModel,this._dataStore),H=new a(this._treeView,this._myViewModel,this._dataStore);this._controllers.push(H);var V=K.emits;this._proxyControllerEvents(K,V),this._controllers.push(K),this._facadeListeners(this._controllers),this._mixinFacade(this._controllers)}},{key:"_warnUsersAboutIncompatiblePlugins",value:function(O){var W=E.COMPATIBLE,j="",K="[";O.forEach(function(H){j+=H.name+" "}),K+=j.trim()+"] are incompatible/not supported, however [",W.forEach(function(H){var V="",$=!1;H.forEach(function(G){O.indexOf(G)&&($=!0),V+=G.name+" "}),$&&(K+=V.trim()+"] ")}),K+="are supported.",console.warn(K)}},{key:"_discardIncompatiblePlugins",value:function(O){var W=this,j=E.INCOMPATIBLE,K=[];return j.forEach(function(H){var V=0;H.forEach(function($){var G=O.indexOf($);G>-1&&(V>0&&K.push(G),V++)}),K.length>0&&W._warnUsersAboutIncompatiblePlugins(H)}),K.forEach(function(H){return O.splice(H,1)}),O}},{key:"_getConfiguredPlugins",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[E.AVAILABLE.SingleNodeSelection],W=arguments[1],j=[];O.forEach(function(H){Array.isArray(H)?Array.prototype.push.apply(j,H):j.push(H)});var K=[];return K=j.reduce(function(H,V){return H.indexOf(V)===-1&&H.push(V),H},[]),this._discardIncompatiblePlugins(K)}},{key:"_setViewModel",value:function(O,W){var j=W.lookAheadNodeBuffer,K=W.nodeHeightInPx;O.setState("lookAheadNodeBuffer",j||x.lookAheadNodeBuffer),O.setState("nodeHeightInPx",K||x.nodeHeight),this._viewStateOptions={lookAheadNodeBuffer:j,nodeHeightInPx:K}}},{key:"_createModels",value:function(O){Array.isArray(O)?this._dataStore=c.create(O,Object.assign({},{type:R.TREE})):this._dataStore=O;var W=new f(this._dataStore);this._myViewModel=new p(W)}},{key:"_createAndConfigureControllers",value:function(O){var W=new i(this._treeView,this._myViewModel,this._dataStore),j=new I(this._treeView,this._myViewModel,this._dataStore);if(O.actions){var K=new u(this._treeView,this._myViewModel,this._dataStore,O);this.executeAction=K.executeAction;var H=K.emits;this._proxyControllerEvents(K,H),this._controllers.push(K)}if(!this._dataStore.isCheckboxTree&&!O.editor){var V=new s(this._treeView,this._myViewModel,this._dataStore),$=V.emits;this._proxyControllerEvents(V,$),this._controllers.push(V)}var G=j.emits;this._proxyControllerEvents(j,G),this._controllers.push(W),this._controllers.push(j)}},{key:"_proxyControllerEvents",value:function(O,W){var j=this;W.forEach(function(K){j._eventsMap[K]=O})}},{key:"_makeMap",value:function(){var O={_map:{},get:function(j){return this._map[j]},set:function(j,K){this._map[j]=K}};return typeof Map=="undefined"?O:new Map}},{key:"_createAndConfigurePlugins",value:function(){var O=this,W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[E.AVAILABLE.SingleNodeSelection],j=arguments[1],K=this._makeMap(),H=void 0;W.forEach(function(V){var $=V.adaptor;K.get($.toString())||(H=new $(O._myViewModel,O._treeView,O._dataStore,j),K.set($.toString(),H));var G=new V(K.get($.toString()));O._plugins.push(G)}),this._facadeListeners(this._plugins),this._mixinFacade(this._plugins)}},{key:"_mixinFacade",value:function(O){var W=this;O.forEach(function(j){var K=j.exposedAPI();Object.keys(K).forEach(function(H){if(H==="exposedVariables"){var V=K.exposedVariables;Object.keys(V).forEach(function($){Object.defineProperty(W,$,{set:V[$].setter,get:V[$].getter})})}W[H]=K[H]})})}},{key:"_configureExposedVariableApis",value:function(){var O=this,W=this._exposedVariables();Object.keys(W).forEach(function(j){Object.defineProperty(O,j,{set:W[j].setter,get:W[j].getter})})}},{key:"_facadeListeners",value:function(O){var W=this;O.forEach(function(j){j.emits.forEach(function(K){return W._eventsMap[K]=j})})}},{key:"_constructTreeView",value:function(){this._treeView.initialize()}},{key:"resize",value:function(O,W){if(this._treeView){var j=this._viewStateOptions.nodeHeightInPx;this._myViewModel.setState("nodeHeightInPx",j||x.nodeHeight),this._treeView.resize(O,W)}}},{key:"_setDisabled",value:function(O){this._isDisabled!==O&&typeof O=="boolean"&&this._treeView.setDisableState(O)}},{key:"_isDisabled",value:function(){return this._treeView.getDisableState()}},{key:"_exposedVariables",value:function(){var O=this;return{disable:{setter:function(j){O._setDisabled(j)},getter:function(){return O._isDisabled()}}}}},{key:"startup",value:function(){var O=this._domNode.clientHeight;O===0&&console.warn("Please set Tree's container height to 100% or value greater than 0. If the container height is unset, Tree will display 10 TreeNodes only."),this._constructTreeView()}},{key:"on",value:function(O,W){if(this._eventsMap[O]){var j=d(this._eventsMap[O],O,W);return this._eventListeners.push(j),j}else throw new Error("Tree Configuration does not seem to support the event that you want to configure. Please check configuration.")}},{key:"expand",value:function(O,W){if(Array.isArray(O)&&O.length)this._dataStore.expand(O);else throw new Error("Expected: non empty treeNodearray. Usage: tree.expand([{id: 'node1'}])")}},{key:"expandAll",value:function(){this._dataStore.expandAll()}},{key:"collapse",value:function(O,W){if(Array.isArray(O)&&O.length)this._dataStore.collapse(O);else throw new Error("Expected: non empty treeNodearray. Usage: tree.collapse([{id: 'node1'}])")}},{key:"collapseAll",value:function(){this._dataStore.collapseAll()}},{key:"scrollTo",value:function(O){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{maintainPositionIfInView:!0};if(O===w.FIRST_NODE)this._treeView.scrollToIndex(this._myViewModel.dataSize.rows.start);else if(O===w.LAST_NODE)this._treeView.scrollToIndex(this._myViewModel.dataSize.rows.end);else if(O&&O.id){var j={treeNode:O,options:W};this._treeView.scrollTo(j)}else throw new Error("Expected: Tree.FIRST_NODE, Tree.LAST_NODE or treeNode object with id property. Usage: scrollTo({id: 'node1'})")}},{key:"destroy",value:function(){this._eventListeners.forEach(function(W){return W.remove()}),this._controllers.forEach(function(W){W.destroy&&W.destroy()}),this._plugins.forEach(function(W){return W.destroy()});var O=this._domNode.parentNode;this._treeView.destroy(),O&&O.removeChild(this._domNode)}},{key:"domNode",get:function(){return this._domNode}}],[{key:"PLUGINS",get:function(){return E.AVAILABLE}},{key:"EDITORS",get:function(){return g}},{key:"ACTIONS",get:function(){return F.ACTIONS}},{key:"FIRST_NODE",get:function(){return w.FIRST_NODE}},{key:"LAST_NODE",get:function(){return w.LAST_NODE}},{key:"DND_ENUM",get:function(){return D.MODE}},{key:"KEYS",get:function(){return T}},{key:"PLATFORMS",get:function(){return S.exposed}}]),P}();return B},_,M),_.exports=C},function(_,M,l){var A,C,y=function(){function h(d,n){for(var e=0;e2&&arguments[2]!==void 0?arguments[2]:{},P=arguments[3];m(this,R),this._viewModel=T,this._viewEventHandler=new n,this._rootDom=S,this._listeners=[],B.designTimeEventsConfig?(this._EVENTS_CONFIG=u.TREE_EVENTS,this._EDIT_EVENTS_CONFIG=u.EDIT_TREE_EVENTS,this._isTargetEditable=this._isDesignTimeEventsTargetEditable,this._designTimeReadOnly=this._isNodeReadOnly):(this._EVENTS_CONFIG=i.TREE_EVENTS,this._EDIT_EVENTS_CONFIG=i.EDIT_TREE_EVENTS,this._isTargetEditable=this._isDefaultEventsTargetEditable);var L={disclosureNode:{},treeNode:{},tree:{},interactive_renderer:{}};L.disclosureNode._disclosureMouseDownHandler=function(O){return I._handleDisclosureNodeLeftMouseDownEvent(O,function(W){return I._handleDisclosureMouseDown(W)})},L.treeNode._nodeMouseDownHandler=function(O){return I._handleMouseDownEvents(O,function(W,j){return I._handleNodeMouseDown(W,j)})},L.treeNode._nodeClickHandler=function(O){return I._handleNodeClick(O)},L.treeNode._nodeDblClickHandler=function(O){return I._handleNodeDoubleClick(O)},L.treeNode._nodeHoverHandler=function(O){return I._handleHoverToggle(O)},L.tree._keyDownHandler=function(O){return I._handleKeyDown(O)},L.tree._keyUpHandler=function(O){return I._handleKeyUp(O)},L.tree._scrollHandler=function(O){return I._handleScroll(O)},L.tree._focusHandler=function(O){return I._handleFocus(O)},L.tree._containerMountHandler=function(O){return I._handleContainerMount(O)},L.tree._containerUpdateHandler=function(){return I._handleContainerUpdate()},L.tree._blurHandler=function(O){return I._handleBlur(O)},L.tree._contextMenuHandler=function(O){return I._handleContextMenu(O)},L.tree._setTreeNodeHeightHandler=function(O){return I.setTreeNodeHeightAndHandleViewPortUpdate(O)},L.tree._setTreebufferDataHandler=function(O){return I.setTreeBufferData(O)},L.tree._setTreeWidthProperty=function(O){return I.setTreeWidthProperty(O)},L.interactive_renderer=function(O,W){return I._handleInteractiveRendererEvent(O,W)},this.handlers=L,this._handlePluginEvents(P),this.treeBuilder=this.createTreeBuilder(B,P),this._throttledHandleKeyNavigation=a.throttle(this._handleKeyNavigation,w)}return y(R,[{key:"_isDesignTimeEventsTargetEditable",value:function(S){return!(S.target.attributes["data-editor"]||this._isNodeReadOnly(S))}},{key:"_isDefaultEventsTargetEditable",value:function(S){return S.target.attributes["data-region"]&&!this._isNodeReadOnly(S)}},{key:"_handlePluginEvents",value:function(){var S=this,I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],B=s.getEventListenersForPlugins(I);B.forEach(function(P){S.handlers[P.nameSpace]=S.handlers[P.nameSpace]?S.handlers[P.nameSpace]:{},S.handlers[P.nameSpace][P.handlerName]=function(L){var O={eventToEmit:P.eventName,eventProperties:L,eventCallback:function(){P.eventHandler(this._viewModel,L),P.shouldRender&&this.render()}.bind(S)};S._viewEventHandler.handleEvent(O)}})}},{key:"_handleContextMenu",value:function(S){var I=!1,B=!S.buttons&&!S.button;navigator.userAgent.indexOf("Edge")>-1&&(I=!0);var P=B||I&&S.shiftKey;P?this._handleScrollForFocusedNode():this._handleRightClick(S)}},{key:"createTreeBuilder",value:function(S,I){return new c(this._viewModel,this.handlers,S,I)}},{key:"_handleFocus",value:function(S){this._viewModel.setState("ContainerFocused",!0),this._viewModel.deleteState("NodeHover"),this.render()}},{key:"_handleContainerMount",value:function(S){this._viewModel.setState("treeContainerNode",S.treeContainerNode);var I={treeContainerNode:S.treeContainerNode,mwTreeNode:S.mwTreeNode},B={eventToEmit:"containerMount",eventProperties:I,eventCallback:function(){}};this._viewEventHandler.handleEvent(B)}},{key:"_handleContainerUpdate",value:function(S){var I=this._viewModel.getStateByKey("treeContainerNode");I=I?I.value:null,I&&(this._viewModel.viewPort.size.width=I.clientWidth);var B={eventToEmit:"containerUpdate",eventProperties:null,eventCallback:function(){}};this._viewEventHandler.handleEvent(B)}},{key:"_handleBlur",value:function(S){this._viewModel.deleteState("ContainerFocused"),this.render()}},{key:"_handleHoverToggle",value:function(S){this._viewModel.setState("NodeHover",S),this.render()}},{key:"_hasVerticalScrollBar",value:function(S){var I=S.scrollHeight,B=S.clientHeight;return I>B}},{key:"_hasHorizontalScrollBar",value:function(S){var I=S.scrollWidth,B=S.clientWidth;return I>B}},{key:"_handleScroll",value:function(S){var I={clientHeight:S.currentTarget.clientHeight,scrollTop:S.currentTarget.scrollTop,scrollLeft:S.currentTarget.scrollLeft,clientWidth:S.currentTarget.clientWidth,scrollWidth:S.currentTarget.scrollWidth,scrollHeight:S.currentTarget.scrollHeight};this._hasVerticalScrollBar(S.currentTarget)&&!v.isTruncated()&&this.setTreeWidthProperty(I.scrollWidth),this._hasHorizontalScrollBar(S.currentTarget)&&!v.isTruncated()&&(this._viewModel.viewPort.size.height=I.clientHeight);var B=this._viewModel.getStateByKey("shouldScrollOnKeyPressed");if(B&&B.value){var P={eventToEmit:"treeScrollOnKeyPressed",eventProperties:I,eventCallback:function(){}};this._viewEventHandler.handleEvent(P)}var L=this._viewModel.viewPort.size.height!==I.clientHeight||Math.round(this._viewModel.viewPort.size.top)!==Math.round(I.scrollTop),O=this._viewModel.viewPort.size.width!==I.clientWidth||Math.round(this._viewModel.viewPort.size.left)!==Math.round(I.scrollLeft);if(L||O){var W={eventToEmit:"treeScroll",eventProperties:I,eventCallback:function(){o.updateDataBuffer(this._viewModel),this.render()}.bind(this)};this._viewEventHandler.handleEvent(W)}}},{key:"_handleRightClick",value:function(S){for(var I=S.target,B=I.tagName,P=I;!I.classList.contains("treeNode");)if(I=I.parentNode,B=I.tagName,B==="BODY"){P=null;break}var L={},O=void 0,W={};if(P){var j=I.attributes["data-row-index"].nodeValue;O=this._data(parseInt(j))(0).value,W=this._metadata(j).value,L={type:"TREENODE",nodeId:O.id}}else L={type:"TREE"};var K={top:S.pageY,left:S.pageX,node:O,metadata:W,emitTarget:L},H=!W.noMouseInteraction&&this._EVENTS_CONFIG.contextMenuClick;if(H){var V={eventToEmit:H,eventProperties:K,eventCallback:function(){this.render()}.bind(this)};this._viewEventHandler.handleEvent(V)}}},{key:"isFocusedNodeInTheView",value:function(){var S=this._rootDom.querySelector(".treeNode.focused"),I=this._rootDom.querySelector(".focused").getBoundingClientRect();if(S){var B=S.getBoundingClientRect();return!(B.top>I.bottom||B.bottom1&&arguments[1]!==void 0?arguments[1]:function(){},B={treeNodeScroll:S};this._emitProgrammaticScrollEvt(B,I)}},{key:"scrollToPosition",value:function(S){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){},B={position:S};this._emitProgrammaticScrollEvt(B,I)}},{key:"getScrollComponentDimensions",value:function(){var S=this._rootDom.childNodes[0].scrollHeight,I=this._rootDom.childNodes[0].scrollWidth,B=this._rootDom.childNodes[0].scrollTop,P=this._rootDom.childNodes[0].scrollLeft,L=this._rootDom.childNodes[0].clientWidth,O=this._rootDom.childNodes[0].clientHeight;return{scrollHeight:S,scrollWidth:I,scrollTop:B,scrollLeft:P,clientWidth:L,clientHeight:O}}},{key:"executeAction",value:function(S){switch(S){case"DELETE":this._handleDelete();break;default:break}}},{key:"_emitProgrammaticScrollEvt",value:function(S){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){};this.viewModelUpdateInProgress=!0;var B={eventToEmit:"treeProgrammaticScroll",eventProperties:S,eventCallback:function(){this.viewModelUpdateInProgress=!1,o.isViewPortRangeInDataBuffer(this._viewModel)?this.render():o.updateDataBuffer(this._viewModel),I()}.bind(this)};this._viewEventHandler.handleEvent(B)}},{key:"scrollToIndex",value:function(S){var I={nodeIndex:S};this._emitProgrammaticScrollEvt(I)}},{key:"render",value:function(S){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:F;if(S&&(this._data=S,this._metadata=I),!this.viewModelUpdateInProgress){var B=this.treeBuilder.buildTree(this._data,this._metadata);d.render(B,this._rootDom)}}},{key:"destroy",value:function(){p.handleRemoveTimers(),this._listeners.forEach(function(S){S.remove()}),d.unmountComponentAtNode(this._rootDom)}}]),R}();return x},_,M),_.exports=C},function(_,M,l){"use strict";/** @license React v16.11.0 * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */(function(A,C){_.exports=C(l(2))})(this,function(A){function C(b){for(var N="https://reactjs.org/docs/error-decoder.html?invariant="+b,k=1;kN}return!1}function F(b,N,k,U,z,ne){this.acceptsBooleans=N===2||N===3||N===4,this.attributeName=U,this.attributeNamespace=z,this.mustUseProperty=k,this.propertyName=b,this.type=N,this.sanitizeURL=ne}function w(b){switch(typeof b){case"boolean":case"number":case"object":case"string":case"undefined":return b;default:return""}}function x(b,N,k,U){var z=Xt.hasOwnProperty(N)?Xt[N]:null,ne=z!==null?z.type===0:U?!1:!(!(2=N.length))throw Error(C(93));N=N[0]}k=N}k==null&&(k="")}b._wrapperState={initialValue:w(k)}}function Q(b,N){var k=w(N.value),U=w(N.defaultValue);k!=null&&(k=""+k,k!==b.value&&(b.value=k),N.defaultValue==null&&b.defaultValue!==k&&(b.defaultValue=k)),U!=null&&(b.defaultValue=""+U)}function J(b,N){N=b.textContent,N===b._wrapperState.initialValue&&N!==""&&N!==null&&(b.value=N)}function Y(b){switch(b){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function X(b,N){return b==null||b==="http://www.w3.org/1999/xhtml"?Y(N):b==="http://www.w3.org/2000/svg"&&N==="foreignObject"?"http://www.w3.org/1999/xhtml":b}function Z(b,N){var k={};return k[b.toLowerCase()]=N.toLowerCase(),k["Webkit"+b]="webkit"+N,k["Moz"+b]="moz"+N,k}function q(b){if(Ta[b])return Ta[b];if(!zr[b])return b;var N=zr[b],k;for(k in N)if(N.hasOwnProperty(k)&&k in ps)return Ta[b]=N[k];return b}function ee(b){var N=b,k=b;if(b.alternate)for(;N.return;)N=N.return;else{b=N;do N=b,(N.effectTag&1026)!==0&&(k=N.return),b=N.return;while(b)}return N.tag===3?k:null}function re(b){if(b.tag===13){var N=b.memoizedState;if(N===null&&(b=b.alternate,b!==null&&(N=b.memoizedState)),N!==null)return N.dehydrated}return null}function he(b){if(ee(b)!==b)throw Error(C(188))}function me(b){var N=b.alternate;if(!N){if(N=ee(b),N===null)throw Error(C(188));return N!==b?null:b}for(var k=b,U=N;;){var z=k.return;if(z===null)break;var ne=z.alternate;if(ne===null){if(U=z.return,U!==null){k=U;continue}break}if(z.child===ne.child){for(ne=z.child;ne;){if(ne===k)return he(z),b;if(ne===U)return he(z),N;ne=ne.sibling}throw Error(C(188))}if(k.return!==U.return)k=z,U=ne;else{for(var ae=!1,de=z.child;de;){if(de===k){ae=!0,k=z,U=ne;break}if(de===U){ae=!0,U=z,k=ne;break}de=de.sibling}if(!ae){for(de=ne.child;de;){if(de===k){ae=!0,k=ne,U=z;break}if(de===U){ae=!0,U=ne,k=z;break}de=de.sibling}if(!ae)throw Error(C(189))}}if(k.alternate!==U)throw Error(C(190))}if(k.tag!==3)throw Error(C(188));return k.stateNode.current===k?b:N}function se(b){if(b=me(b),!b)return null;for(var N=b;;){if(N.tag===5||N.tag===6)return N;if(N.child)N.child.return=N,N=N.child;else{if(N===b)break;for(;!N.sibling;){if(!N.return||N.return===b)return null;N=N.return}N.sibling.return=N.return,N=N.sibling}}return null}function te(b){var N=tt(b);Fa.forEach(function(k){Xe(k,b,N)}),Ll.forEach(function(k){Xe(k,b,N)})}function oe(b,N,k,U){return{blockedOn:b,topLevelType:N,eventSystemFlags:k|32,nativeEvent:U}}function ue(b,N){switch(b){case"focus":case"blur":nr=null;break;case"dragenter":case"dragleave":rr=null;break;case"mouseover":case"mouseout":ir=null;break;case"pointerover":case"pointerout":Ci.delete(N.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ai.delete(N.pointerId)}}function ce(b,N,k,U,z){return b===null||b.nativeEvent!==z?(b=oe(N,k,U,z),N!==null&&(N=Wn(N),N!==null&&el(N)),b):(b.eventSystemFlags|=U,b)}function ve(b,N,k,U){switch(N){case"focus":return nr=ce(nr,b,N,k,U),!0;case"dragenter":return rr=ce(rr,b,N,k,U),!0;case"mouseover":return ir=ce(ir,b,N,k,U),!0;case"pointerover":var z=U.pointerId;return Ci.set(z,ce(Ci.get(z)||null,b,N,k,U)),!0;case"gotpointercapture":return z=U.pointerId,Ai.set(z,ce(Ai.get(z)||null,b,N,k,U)),!0}return!1}function Se(b){var N=Xn(b.target);if(N!==null){var k=ee(N);if(k!==null){if(N=k.tag,N===13){if(N=re(k),N!==null){b.blockedOn=N,Da(b.priority,function(){Rc(k)});return}}else if(N===3&&k.stateNode.hydrate){b.blockedOn=k.tag===3?k.stateNode.containerInfo:null;return}}}b.blockedOn=null}function Be(b){if(b.blockedOn!==null)return!1;var N=Ne(b.topLevelType,b.eventSystemFlags,b.nativeEvent);if(N!==null){var k=Wn(N);return k!==null&&el(k),b.blockedOn=N,!1}return!0}function ke(b,N,k){Be(b)&&k.delete(N)}function Ge(){for(wa=!1;0this.eventPool.length&&this.eventPool.push(b)}function sn(b){b.eventPool=[],b.getPooled=Bt,b.release=kt}function st(b){var N=b.keyCode;return"charCode"in b?(b=b.charCode,b===0&&N===13&&(b=13)):b=N,b===10&&(b=13),32<=b||b===13?b:0}function At(b){var N=this.nativeEvent;return N.getModifierState?N.getModifierState(b):(b=Ul[b])?!!N[b]:!1}function Ut(b){return At}function Vt(b){var N=b.targetInst,k=N;do{if(!k){b.ancestors.push(k);break}var U=k;if(U.tag===3)U=U.stateNode.containerInfo;else{for(;U.return;)U=U.return;U=U.tag!==3?null:U.stateNode.containerInfo}if(!U)break;N=k.tag,N!==5&&N!==6||b.ancestors.push(k),k=Xn(U)}while(k);for(k=0;k=N)return{node:k,offset:N-b};b=U}e:{for(;k;){if(k.nextSibling){k=k.nextSibling;break e}k=k.parentNode}k=void 0}k=ri(k)}}function xr(b,N){return b&&N?b===N?!0:b&&b.nodeType===3?!1:N&&N.nodeType===3?xr(b,N.parentNode):"contains"in b?b.contains(N):b.compareDocumentPosition?!!(b.compareDocumentPosition(N)&16):!1:!1}function oi(){for(var b=window,N=Nr();N instanceof b.HTMLIFrameElement;){try{var k=typeof N.contentWindow.location.href=="string"}catch(U){k=!1}if(k)b=N.contentWindow;else break;N=Nr(b.document)}return N}function Ln(b){var N=b&&b.nodeName&&b.nodeName.toLowerCase();return N&&(N==="input"&&(b.type==="text"||b.type==="search"||b.type==="tel"||b.type==="url"||b.type==="password")||N==="textarea"||b.contentEditable==="true")}function ai(b,N){switch(b){case"button":case"input":case"select":case"textarea":return!!N.autoFocus}return!1}function hr(b,N){return b==="textarea"||b==="option"||b==="noscript"||typeof N.children=="string"||typeof N.children=="number"||typeof N.dangerouslySetInnerHTML=="object"&&N.dangerouslySetInnerHTML!==null&&N.dangerouslySetInnerHTML.__html!=null}function kn(b){for(;b!=null;b=b.nextSibling){var N=b.nodeType;if(N===1||N===3)break}return b}function ui(b){b=b.previousSibling;for(var N=0;b;){if(b.nodeType===Sr){var k=b.data;if(k===xs||k===Ma||k===Ba){if(N===0)return b;N--}else k===Bs&&N++}b=b.previousSibling}return null}function Xn(b){var N=b[or];if(N)return N;for(var k=b.parentNode;k;){if(N=k[Wa]||k[or]){if(k=N.alternate,N.child!==null||k!==null&&k.child!==null)for(b=ui(b);b!==null;){if(k=b[or])return k;b=ui(b)}return N}b=k,k=b.parentNode}return null}function Wn(b){return b=b[or]||b[Wa],!b||b.tag!==5&&b.tag!==6&&b.tag!==13&&b.tag!==3?null:b}function bn(b){if(b.tag===5||b.tag===6)return b.stateNode;throw Error(C(33))}function vr(b){return b[vo]||null}function si(){if(po)return po;var b,N=ja,k=N.length,U,z="value"in ar?ar.value:ar.textContent,ne=z.length;for(b=0;bXr||(b.current=za[Xr],za[Xr]=null,Xr--)}function Je(b,N,k){Xr++,za[Xr]=b.current,b.current=N}function lt(b,N){var k=b.type.contextTypes;if(!k)return ur;var U=b.stateNode;if(U&&U.__reactInternalMemoizedUnmaskedChildContext===N)return U.__reactInternalMemoizedMaskedChildContext;var z={},ne;for(ne in k)z[ne]=N[ne];return U&&(b=b.stateNode,b.__reactInternalMemoizedUnmaskedChildContext=N,b.__reactInternalMemoizedMaskedChildContext=z),z}function qe(b){return b=b.childContextTypes,b!=null}function Dt(b){Qe(An,b),Qe(cn,b)}function Et(b){Qe(An,b),Qe(cn,b)}function wt(b,N,k){if(cn.current!==ur)throw Error(C(168));Je(cn,N,b),Je(An,k,b)}function ye(b,N,k){var U=b.stateNode;if(b=N.childContextTypes,typeof U.getChildContext!="function")return k;U=U.getChildContext();for(var z in U)if(!(z in b))throw Error(C(108,u(N)||"Unknown",z));return an({},k,{},U)}function Pe(b){var N=b.stateNode;return N=N&&N.__reactInternalMemoizedMergedChildContext||ur,wr=cn.current,Je(cn,N,b),Je(An,An.current,b),!0}function We(b,N,k){var U=b.stateNode;if(!U)throw Error(C(169));k?(N=ye(b,N,wr),U.__reactInternalMemoizedMergedChildContext=N,Qe(An,b),Qe(cn,b),Je(cn,N,b)):Qe(An,b),Je(An,k,b)}function Ue(){switch(pc()){case go:return 99;case Hs:return 98;case Ks:return 97;case Us:return 96;case Vs:return 95;default:throw Error(C(332))}}function gt(b){switch(b){case 99:return go;case 98:return Hs;case 97:return Ks;case 96:return Us;case 95:return Vs;default:throw Error(C(332))}}function mt(b,N){return b=gt(b),vc(b,N)}function Wt(b,N,k){return b=gt(b),Ya(b,N,k)}function yt(b){return Un===null?(Un=[b],mo=Ya(go,Ht)):Un.push(b),$s}function St(){if(mo!==null){var b=mo;mo=null,Ws(b)}Ht()}function Ht(){if(!Ga&&Un!==null){Ga=!0;var b=0;try{var N=Un;mt(99,function(){for(;b=N&&(Mn=!0),b.firstContext=null)}function en(b,N){if(yo!==b&&N!==!1&&N!==0)if((typeof N!="number"||N===1073741823)&&(yo=b,N=1073741823),N={context:b,observedBits:N,next:null},Qr===null){if(Eo===null)throw Error(C(308));Qr=N,Eo.dependencies={expirationTime:0,firstContext:N,responders:null}}else Qr=Qr.next=N;return b._currentValue}function vn(b){return{baseState:b,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Cn(b){return{baseState:b.baseState,firstUpdate:b.firstUpdate,lastUpdate:b.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Mt(b,N){return{expirationTime:b,suspenseConfig:N,tag:Ys,payload:null,callback:null,next:null,nextEffect:null}}function $t(b,N){b.lastUpdate===null?b.firstUpdate=b.lastUpdate=N:(b.lastUpdate.next=N,b.lastUpdate=N)}function pn(b,N){var k=b.alternate;if(k===null){var U=b.updateQueue,z=null;U===null&&(U=b.updateQueue=vn(b.memoizedState))}else U=b.updateQueue,z=k.updateQueue,U===null?z===null?(U=b.updateQueue=vn(b.memoizedState),z=k.updateQueue=vn(k.memoizedState)):U=b.updateQueue=Cn(z):z===null&&(z=k.updateQueue=Cn(U));z===null||U===z?$t(U,N):U.lastUpdate===null||z.lastUpdate===null?($t(U,N),$t(z,N)):($t(U,N),z.lastUpdate=N)}function Mr(b,N){var k=b.updateQueue;k=k===null?b.updateQueue=vn(b.memoizedState):jn(b,k),k.lastCapturedUpdate===null?k.firstCapturedUpdate=k.lastCapturedUpdate=N:(k.lastCapturedUpdate.next=N,k.lastCapturedUpdate=N)}function jn(b,N){var k=b.alternate;return k!==null&&N===k.updateQueue&&(N=b.updateQueue=Cn(N)),N}function Pr(b,N,k,U,z,ne){switch(k.tag){case 1:return b=k.payload,typeof b=="function"?b.call(ne,U,z):b;case 3:b.effectTag=b.effectTag&-4097|64;case Ys:if(b=k.payload,z=typeof b=="function"?b.call(ne,U,z):b,z==null)break;return an({},U,z);case _o:sr=!0}return U}function Qn(b,N,k,U,z){sr=!1,N=jn(b,N);for(var ne=N.baseState,ae=null,de=0,Ce=N.firstUpdate,Te=ne;Ce!==null;){var Oe=Ce.expirationTime;Oevt?(xt=et,et=null):xt=et.sibling;var ct=at(be,et,Fe[vt],xe);if(ct===null){et===null&&(et=xt);break}b&&et&&ct.alternate===null&&N(be,et),_e=ne(ct,_e,vt),Ve===null?Me=ct:Ve.sibling=ct,Ve=ct,et=xt}if(vt===Fe.length)return k(be,et),Me;if(et===null){for(;vtvt?(xt=et,et=null):xt=et.sibling;var Rn=at(be,et,ct.value,xe);if(Rn===null){et===null&&(et=xt);break}b&&et&&Rn.alternate===null&&N(be,et),_e=ne(Rn,_e,vt),Ve===null?Me=Rn:Ve.sibling=Rn,Ve=Rn,et=xt}if(ct.done)return k(be,et),Me;if(et===null){for(;!ct.done;vt++,ct=Fe.next())ct=It(be,ct.value,xe),ct!==null&&(_e=ne(ct,_e,vt),Ve===null?Me=ct:Ve.sibling=ct,Ve=ct);return Me}for(et=U(be,et);!ct.done;vt++,ct=Fe.next())ct=rn(et,be,vt,ct.value,xe),ct!==null&&(b&&ct.alternate!==null&&et.delete(ct.key===null?vt:ct.key),_e=ne(ct,_e,vt),Ve===null?Me=ct:Ve.sibling=ct,Ve=ct);return b&&et.forEach(function(Oo){return N(be,Oo)}),Me}return function(be,_e,Fe,xe){var Me=typeof Fe=="object"&&Fe!==null&&Fe.type===er&&Fe.key===null;Me&&(Fe=Fe.props.children);var Ve=typeof Fe=="object"&&Fe!==null;if(Ve)switch(Fe.$$typeof){case ao:e:{for(Ve=Fe.key,Me=_e;Me!==null;){if(Me.key===Ve)if(Me.tag===7?Fe.type===er:Me.elementType===Fe.type){k(be,Me.sibling),_e=z(Me,Fe.type===er?Fe.props.children:Fe.props,xe),_e.ref=Jn(be,Me,Fe),_e.return=be,be=_e;break e}else{k(be,Me);break}else N(be,Me);Me=Me.sibling}Fe.type===er?(_e=qn(Fe.props.children,be.mode,xe,Fe.key),_e.return=be,be=_e):(xe=qi(Fe.type,Fe.key,Fe.props,null,be.mode,xe),xe.ref=Jn(be,_e,Fe),xe.return=be,be=xe)}return ae(be);case Ur:e:{for(Me=Fe.key;_e!==null;){if(_e.key===Me)if(_e.tag===4&&_e.stateNode.containerInfo===Fe.containerInfo&&_e.stateNode.implementation===Fe.implementation){k(be,_e.sibling),_e=z(_e,Fe.children||[],xe),_e.return=be,be=_e;break e}else{k(be,_e);break}else N(be,_e);_e=_e.sibling}_e=oa(Fe,be.mode,xe),_e.return=be,be=_e}return ae(be)}if(typeof Fe=="string"||typeof Fe=="number")return Fe=""+Fe,_e!==null&&_e.tag===6?(k(be,_e.sibling),_e=z(_e,Fe,xe),_e.return=be,be=_e):(k(be,_e),_e=ia(Fe,be.mode,xe),_e.return=be,be=_e),ae(be);if(Ao(Fe))return ti(be,_e,Fe,xe);if(a(Fe))return Yn(be,_e,Fe,xe);if(Ve&&mr(be,Fe),typeof Fe=="undefined"&&!Me)switch(be.tag){case 1:case 0:throw be=be.type,Error(C(152,be.displayName||be.name||"Component"))}return k(be,_e)}}function Er(b){if(b===Bi)throw Error(C(174));return b}function ko(b,N){Je(Pi,N,b),Je(Mi,b,b),Je(Nn,Bi,b);var k=N.nodeType;switch(k){case 9:case 11:N=(N=N.documentElement)?N.namespaceURI:X(null,"");break;default:k=k===Sr?N.parentNode:N,N=k.namespaceURI||null,k=k.tagName,N=X(N,k)}Qe(Nn,b),Je(Nn,N,b)}function Lr(b){Qe(Nn,b),Qe(Mi,b),Qe(Pi,b)}function au(b){Er(Pi.current);var N=Er(Nn.current),k=X(N,b.type);N!==k&&(Je(Mi,b,b),Je(Nn,k,b))}function Wo(b){Mi.current===b&&(Qe(Nn,b),Qe(Mi,b))}function Yi(b){for(var N=b;N!==null;){if(N.tag===13){var k=N.memoizedState;if(k!==null&&(k=k.dehydrated,k===null||k.data===Ba||k.data===Ma))return N}else if(N.tag===19&&N.memoizedProps.revealOrder!==void 0){if((N.effectTag&64)!==0)return N}else if(N.child!==null){N.child.return=N,N=N.child;continue}if(N===b)break;for(;N.sibling===null;){if(N.return===null||N.return===b)return null;N=N.return}N.sibling.return=N.return,N=N.sibling}return null}function uu(b,N){return{responder:b,props:N}}function gn(){throw Error(C(321))}function jo(b,N){if(N===null)return!1;for(var k=0;kei&&(ei=Oe,Zi(ei))):(Vu(Oe,Ce.suspenseConfig),ne=Ce.eagerReducer===b?Ce.eagerState:b(ne,Ce.action)),ae=Ce,Ce=Ce.next}while(Ce!==null&&Ce!==U);Te||(de=ae,z=ne),Tr(ne,N.memoizedState)||(Mn=!0),N.memoizedState=ne,N.baseUpdate=de,N.baseState=z,k.lastRenderedState=ne}return[N.memoizedState,k.dispatch]}function Ko(b){var N=kr();return typeof b=="function"&&(b=b()),N.memoizedState=N.baseState=b,b=N.queue={last:null,dispatch:null,lastRenderedReducer:lu,lastRenderedState:b},b=b.dispatch=mu.bind(null,lr,b),[N.memoizedState,b]}function Uo(b){return cu(lu,b)}function Vo(b,N,k,U){return b={tag:b,create:N,destroy:k,deps:U,next:null},Bn===null?(Bn={lastEffect:null},Bn.lastEffect=b.next=b):(N=Bn.lastEffect,N===null?Bn.lastEffect=b.next=b:(k=N.next,N.next=b,b.next=k,Bn.lastEffect=b)),b}function $o(b,N,k,U){var z=kr();Li|=b,z.memoizedState=Vo(N,k,void 0,U===void 0?null:U)}function zo(b,N,k,U){var z=vi();U=U===void 0?null:U;var ne=void 0;if(nn!==null){var ae=nn.memoizedState;if(ne=ae.destroy,U!==null&&jo(U,ae.deps)){Vo(0,k,ne,U);return}}Li|=b,z.memoizedState=Vo(N,k,ne,U)}function du(b,N){return $o(516,192,b,N)}function fu(b,N){return zo(516,192,b,N)}function hu(b,N){if(typeof N=="function")return b=b(),N(b),function(){N(null)};if(N!=null)return b=b(),N.current=b,function(){N.current=null}}function vu(b,N){}function pu(b,N){return kr().memoizedState=[b,N===void 0?null:N],b}function gu(b,N){var k=vi();N=N===void 0?null:N;var U=k.memoizedState;return U!==null&&N!==null&&jo(N,U[1])?U[0]:(k.memoizedState=[b,N],b)}function mu(b,N,k){if(!(25>Wi))throw Error(C(301));var U=b.alternate;if(b===lr||U!==null&&U===lr)if(ki=!0,b={expirationTime:Oi,suspenseConfig:null,action:k,eagerReducer:null,eagerState:null,next:null},Vn===null&&(Vn=new Map),k=Vn.get(N),k===void 0)Vn.set(N,b);else{for(N=k;N.next!==null;)N=N.next;N.next=b}else{var z=Sn(),ne=xi.suspense;z=yr(z,b,ne),ne={expirationTime:z,suspenseConfig:ne,action:k,eagerReducer:null,eagerState:null,next:null};var ae=N.last;if(ae===null)ne.next=ne;else{var de=ae.next;de!==null&&(ne.next=de),ae.next=ne}if(N.last=ne,b.expirationTime===0&&(U===null||U.expirationTime===0)&&(U=N.lastRenderedReducer,U!==null))try{var Ce=N.lastRenderedState,Te=U(Ce,k);if(ne.eagerReducer=U,ne.eagerState=Te,Tr(Te,Ce))return}catch(Oe){}finally{}fr(b,z)}}function Eu(b,N){var k=On(5,null,null,0);k.elementType="DELETED",k.type="DELETED",k.stateNode=N,k.return=b,k.effectTag=8,b.lastEffect!==null?(b.lastEffect.nextEffect=k,b.lastEffect=k):b.firstEffect=b.lastEffect=k}function yu(b,N){switch(b.tag){case 5:var k=b.type;return N=N.nodeType!==1||k.toLowerCase()!==N.nodeName.toLowerCase()?null:N,N!==null?(b.stateNode=N,!0):!1;case 6:return N=b.pendingProps===""||N.nodeType!==3?null:N,N!==null?(b.stateNode=N,!0):!1;case 13:return!1;default:return!1}}function Yo(b){if(Fr){var N=cr;if(N){var k=N;if(!yu(b,N)){if(N=kn(k.nextSibling),!N||!yu(b,N)){b.effectTag=b.effectTag&-1025|2,Fr=!1,$n=b;return}Eu($n,k)}$n=b,cr=kn(N.firstChild)}else b.effectTag=b.effectTag&-1025|2,Fr=!1,$n=b}}function _u(b){for(b=b.return;b!==null&&b.tag!==5&&b.tag!==3&&b.tag!==13;)b=b.return;$n=b}function Gi(b){if(b!==$n)return!1;if(!Fr)return _u(b),Fr=!0,!1;var N=b.type;if(b.tag!==5||N!=="head"&&N!=="body"&&!hr(N,b.memoizedProps))for(N=cr;N;)Eu(b,N),N=kn(N.nextSibling);if(_u(b),b.tag===13){if(b=b.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error(C(317));e:{for(b=b.nextSibling,N=0;b;){if(b.nodeType===Sr){var k=b.data;if(k===Bs){if(N===0){cr=kn(b.nextSibling);break e}N--}else k!==xs&&k!==Ma&&k!==Ba||N++}b=b.nextSibling}cr=null}}else cr=$n?kn(b.stateNode.nextSibling):null;return!0}function Go(){cr=$n=null,Fr=!1}function mn(b,N,k,U){N.child=b===null?Qa(N,null,k,U):Jr(N,b.child,k,U)}function Cu(b,N,k,U,z){k=k.render;var ne=N.ref;return qt(N,z),U=Ho(b,N,k,U,ne,z),b!==null&&!Mn?(N.updateQueue=b.updateQueue,N.effectTag&=-517,b.expirationTime<=z&&(b.expirationTime=0),Hn(b,N,z)):(N.effectTag|=1,mn(b,N,U,z),N.child)}function Au(b,N,k,U,z,ne){if(b===null){var ae=k.type;return typeof ae=="function"&&!ra(ae)&&ae.defaultProps===void 0&&k.compare===null&&k.defaultProps===void 0?(N.tag=15,N.type=ae,Du(b,N,ae,U,z,ne)):(b=qi(k.type,null,U,null,N.mode,ne),b.ref=N.ref,b.return=N,N.child=b)}return ae=b.child,zb?N:b)}function En(b){if(b.lastExpiredTime!==0)b.callbackExpirationTime=1073741823,b.callbackPriority=99,b.callbackNode=yt(ta.bind(null,b));else{var N=Ji(b),k=b.callbackNode;if(N===0)k!==null&&(b.callbackNode=null,b.callbackExpirationTime=0,b.callbackPriority=90);else{var U=Sn();if(N===1073741823?U=99:N===1||N===2?U=95:(U=10*(1073741821-N)-10*(1073741821-U),U=0>=U?99:250>=U?98:5250>=U?97:95),k!==null){var z=b.callbackPriority;if(b.callbackExpirationTime===N&&z>=U)return;k!==$s&&Ws(k)}b.callbackExpirationTime=N,b.callbackPriority=U,N=N===1073741823?yt(ta.bind(null,b)):Wt(U,Wu.bind(null,b),{timeout:10*(1073741821-N)-wn()}),b.callbackNode=N}}}function Wu(b,N){if(Po=0,N)return N=Sn(),aa(b,N),En(b),null;var k=Ji(b);if(k!==0){if(N=b.callbackNode,(nt&(Fn|Pn))!==zt)throw Error(C(327));if(jr(),b===_n&&k===un||_r(b,k),ot!==null){var U=nt;nt|=Fn;var z=Uu(b);do try{hl();break}catch(de){Ku(b,de)}while(1);if(hn(),nt=U,So.current=z,Yt===To)throw N=Ro,_r(b,k),Dr(b,k),En(b),N;if(ot===null)switch(z=b.finishedWork=b.current.alternate,b.finishedExpirationTime=k,U=Yt,_n=null,U){case Rr:case To:throw Error(C(345));case Zs:aa(b,2=k){b.lastPingedTime=k,_r(b,k);break}}if(ne=Ji(b),ne!==0&&ne!==k)break;if(U!==0&&U!==k){b.lastPingedTime=U;break}b.timeoutHandle=La(Zn.bind(null,b),z);break}Zn(b);break;case Fo:if(Dr(b,k),U=b.lastSuspendedTime,k===U&&(b.nextKnownPendingLevel=na(z)),No&&(z=b.lastPingedTime,z===0||z>=k)){b.lastPingedTime=k,_r(b,k);break}if(z=Ji(b),z!==0&&z!==k)break;if(U!==0&&U!==k){b.lastPingedTime=U;break}if(ji!==1073741823?U=10*(1073741821-ji)-wn():zn===1073741823?U=0:(U=10*(1073741821-zn)-5e3,z=wn(),k=10*(1073741821-k)-z,U=z-U,0>U&&(U=0),U=(120>U?120:480>U?480:1080>U?1080:1920>U?1920:3e3>U?3e3:4320>U?4320:1960*Tc(U/1960))-U,k=U?U=0:(z=ae.busyDelayMs|0,ne=wn()-(10*(1073741821-ne)-(ae.timeoutMs|0||5e3)),U=ne<=z?0:z+U-ne),10 component higher in the tree to provide a loading indicator or placeholder to display.`+s(z))}Yt!==qa&&(Yt=Zs),ne=Zo(ne,z),Ce=U;do{switch(Ce.tag){case 3:ae=ne,Ce.effectTag|=4096,Ce.expirationTime=N;var _e=Lu(Ce,ae,N);Mr(Ce,_e);break e;case 1:ae=ne;var Fe=Ce.type,xe=Ce.stateNode;if((Ce.effectTag&64)===0&&(typeof Fe.getDerivedStateFromError=="function"||xe!==null&&typeof xe.componentDidCatch=="function"&&(dr===null||!dr.has(xe)))){Ce.effectTag|=4096,Ce.expirationTime=N;var Me=ku(Ce,ae,N);Mr(Ce,Me);break e}}Ce=Ce.return}while(Ce!==null)}ot=zu(ot)}catch(Ve){N=Ve;continue}break}while(1)}function Uu(b){return b=So.current,So.current=bo,b===null?bo:b}function Vu(b,N){bHi&&(Hi=b)}function fl(){for(;ot!==null;)ot=$u(ot)}function hl(){for(;ot!==null&&!gc();)ot=$u(ot)}function $u(b){var N=wc(b.alternate,b,un);return b.memoizedProps=b.pendingProps,N===null&&(N=zu(b)),Js.current=null,N}function zu(b){ot=b;do{var N=ot.alternate;if(b=ot.return,(ot.effectTag&2048)===0){e:{var k=N;N=ot;var U=un,z=N.pendingProps;switch(N.tag){case 2:break;case 16:break;case 15:case 0:break;case 1:qe(N.type)&&Dt(N);break;case 3:Lr(N),Et(N),z=N.stateNode,z.pendingContext&&(z.context=z.pendingContext,z.pendingContext=null),(k===null||k.child===null)&&Gi(N)&&Wr(N),Qs(N);break;case 5:Wo(N);var ne=Er(Pi.current);if(U=N.type,k!==null&&N.stateNode!=null)Ac(k,N,U,z,ne),k.ref!==N.ref&&(N.effectTag|=128);else if(z){var ae=Er(Nn.current);if(Gi(N)){z=N,k=z.stateNode;var de=z.type;switch(ae=z.memoizedProps,k[or]=z,k[vo]=ae,U=void 0,de){case"iframe":case"object":case"embed":le("load",k);break;case"video":case"audio":for(var Ce=0;Ce<_i.length;Ce++)le(_i[Ce],k);break;case"source":le("error",k);break;case"img":case"image":case"link":le("error",k),le("load",k);break;case"form":le("reset",k),le("submit",k);break;case"details":le("toggle",k);break;case"input":P(k,ae),le("invalid",k),ln(ne,"onChange");break;case"select":k._wrapperState={wasMultiple:!!ae.multiple},le("invalid",k),ln(ne,"onChange");break;case"textarea":G(k,ae),le("invalid",k),ln(ne,"onChange")}fn(de,ae),Ce=null;for(U in ae)if(ae.hasOwnProperty(U)){var Te=ae[U];U==="children"?typeof Te=="string"?k.textContent!==Te&&(Ce=["children",Te]):typeof Te=="number"&&k.textContent!==""+Te&&(Ce=["children",""+Te]):Kr.hasOwnProperty(U)&&Te!=null&&ln(ne,U)}switch(de){case"input":S(k),W(k,ae,!0);break;case"textarea":S(k),J(k,ae);break;case"select":case"option":break;default:typeof ae.onClick=="function"&&(k.onclick=Gn)}ne=Ce,z.updateQueue=ne,z=ne!==null,z&&Wr(N)}else{de=N,k=ne.nodeType===9?ne:ne.ownerDocument,ae==="http://www.w3.org/1999/xhtml"&&(ae=Y(U)),ae==="http://www.w3.org/1999/xhtml"?U==="script"?(k=k.createElement("div"),k.innerHTML="