//>>built
require({cache:{"mill/dataBrowser/browserGridData":function(){define(["dojo/DeferredList","dojox/grid/EnhancedGrid","mill/mill","mill/enhancedGridData"],function(){mill.dataBrowser||(mill.dataBrowser={});dojo.declare("mill.dataBrowser.browserGridData",[mill.enhancedGridData],{grid:null,rttiManager:null,_lastSorted:null,fetch:function(c){var a=c.sort?dojo.toJson(c.sort):null;this._lastSorted!=a&&this.close();this._lastSorted=a;return this.inherited(arguments)},_handleParams:function(c,a,b){return{handler:this.rttiManager.handle,
content:{query:b}}},_queryParams:function(c,a){var b=this.grid.preDefinedConditions()||[];b.push({part:0,special:1});this.grid.view.boldProperty&&b.push({part:0,name:this.grid.view.boldProperty.Name});this.grid.classInfo.IsHierarhical&&(b.push({part:0,special:2}),b.push({part:0,special:3}),c?b.push({part:1,name:"Parent",value:this.getValue(c,"ID"),special:5}):b.push({part:1,special:6}));dojo.forEach(this.grid.columns,dojo.hitch(this,function(h){b.push({part:0,name:h.propertyInfo.Name,special:"TBlobDomain"==
h.domainInfo.handle?"boolean":null});if(h.Filter){var l=h.propertyInfo.Name,m=h.Filter;if("TClassDomain"==h.domainInfo.handle)l="soName"==h.domainInfo.showObjectInfoType.Name?l+"$N":l+"$D";else if("TEnumerationDomain"==h.domainInfo.handle){var r=[];mill.queryCursor({className:"TEnumerationItem",handler:this.rttiManager.handle,sync:!0,query:[{part:0,name:"ID"},{part:1,name:"Master",value:h.domainInfo.ID},{part:1,name:"1"==h.domainInfo.ShowNames?"Name":"Description",value:m}],fetched:function(n){r.push(mill.fieldValue(n,
"ID"))}});r.length?m=r.join(";"):l+="1"==h.domainInfo.ShowNames?"$N":"$D"}b.push({part:1,name:l,value:m})}"TClassDomain"==h.domainInfo.handle?"soName"==h.domainInfo.showObjectInfoType.Name?b.push({part:0,name:h.propertyInfo.Name+"$N"}):b.push({part:0,name:h.propertyInfo.Name+"$D"}):"TEnumerationDomain"==h.domainInfo.handle&&("1"==h.domainInfo.ShowNames?b.push({part:0,name:h.propertyInfo.Name+"$N"}):b.push({part:0,name:h.propertyInfo.Name+"$D"}))}));if(this.grid.conditions){var e=null;if(this.grid.parentView){e=
[];var f=this.grid.store,g=this.grid.parentView.selection.getSelected();dojo.isArray(g)&&(g=g[0]);dojo.mixin(e,{className:this.grid.parentView.classInfo.ID,current:f.getIdentity(g)});e.push({name:"Current",domain:this.rttiManager.getDomain(null,"TObject domain").ID,value:e.current});dojo.forEach(this.grid.parentView.columns,function(h){e.push({name:h.propertyInfo.Name,domain:h.domainInfo.ID,value:f.getValue(g,h.propertyInfo.Name)||""})})}b.push({part:1,name:this.grid.viewID,special:16,context:e})}a.sort&&
dojo.forEach(a.sort,function(h){h.attribute&&b.push({part:2,name:h.attribute,special:h.descending?7:null})});return{handler:this.rttiManager.handle,className:this.grid.classInfo.Name+("1"==this.grid.view.PreCompiled?"$C"+this.grid.viewID:""),query:b}},_performQuery:function(c){return mill.queryCursor(c)},_hasChildren:function(c){return this.grid.classInfo.IsHierarhical&&"1"==this.getValue(c,this.grid.hasChildrenFieldName)},close:function(c){this._handle&&mill.closeCursor({sync:!0,handler:this.rttiManager.handle,
content:{query:this._handle}});this.inherited(arguments)},onItemCreated:function(c,a){c.indent=c.parentItem?c.parentItem.indent+1:0}})})},"mill/imageList":function(){define(["mill/mill"],function(){var c=dojo.declare("mill.imageList",[dijit._WidgetBase],{url:"",definition:null,style:"display:none",width:null,height:null,backgroundImage:null,imageUrl:null,postMixInProperties:function(){this.inherited(arguments);var a=this.url.replace(/^\//,"");!this.definition&&a&&(this.definition=dojo.fromJson(dojo.cache("",
a)));this.width=this.definition[".width"];this.height=this.definition[".height"];this.imageUrl=this.definition[".filename"];-1==this.imageUrl.toString().indexOf("/")&&(a=this.url.split("/").slice(0,-1),a.push(this.imageUrl),this.imageUrl=a.join("/"))},positionX:function(a){return(this.definition.hasOwnProperty(a)?this.definition[a]||0:Number(a)||0)%this.definition[".perrow"]*this.definition[".width"]},positionY:function(a){a=this.definition.hasOwnProperty(a)?this.definition[a]||0:Number(a)||0;return Math.floor(a/
this.definition[".perrow"])*this.definition[".height"]},backgroundPosition:function(a,b,e){return b-this.positionX(a)+"px "+(e-this.positionY(a))+"px"}});dojo.mixin(mill,{_renderQueueTimerID:null,_renderQueue:null,_renderQueueLocked:!1,enqueueRender:function(a){a&&a._render&&a.id&&(this._renderQueue||(this._renderQueue={}),this._renderQueue[a.id]=dojo.hitch(a,a._render),this._renderQueueTimerID&&clearTimeout(this._renderQueueTimerID),this._renderQueueLocked||(this._renderQueueTimerID=setTimeout(dojo.hitch(this,
this._renderEnqueued),1)))},lockRender:function(){this._renderQueueLocked=!0;this._renderQueueTimerID&&clearTimeout(this._renderQueueTimerID);this._renderQueueTimerID=null},unlockRender:function(){this._renderQueueLocked=!1;this._renderQueue&&!this._renderQueueTimerID&&(this._renderQueueTimerID=setTimeout(dojo.hitch(this,this._renderEnqueued),1))},_renderEnqueued:function(){for(;this._renderQueue;){var a=dojo.clone(this._renderQueue);this._renderQueue=null;for(var b in a)a[b]()}this._renderQueueTimerID=
null}});return c})},"mill/jssupport/jsApplication/controls/treeSelect/TreeSelectWidget":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/dom-class dojo/dom-style dojo/when dojo/Deferred dojo/DeferredList dojo/text!mill/jssupport/jsApplication/controls/treeSelect/treeSelectWidget.html dojo/text!mill/jssupport/jsApplication/controls/treeSelect/treeSelectSection.html dojo/text!mill/jssupport/jsApplication/controls/treeSelect/treeSelectItem.html dijit/_WidgetBase dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dijit/_Container dijit/_CssStateMixin dijit/form/_FormWidget mill/jssupport/form/_FieldWidgetMixin mill/jssupport/form/_FieldMixin mill/jssupport/form/_RequiredFieldMixin mill/jssupport/_TranslationMixin mill/jssupport/base mill/mill".split(" "),
function(c,a,b,e,f,g,h,l,m,r,n,k,p,q,u,y,v,t,x,z,A,E,I){var H=c("office.form.TreeSelectItem",[k,p,y,u,t],{baseClass:"treeSelectItem",templateString:n,dataNode:null,textValue:null,searchAttr:null,singleSelect:null,isSelected:null,treeSelectWidget:null,tooltipAttr:null,tooltip:null,_dataNodeID:null,attributeMap:{textValue:{node:"textNode",type:"innerHTML"}},postMixInProperties:function(){this.inherited(arguments);this.textValue=this.get("textValue");this._dataNodeID=I.fieldValue(this.dataNode,"ID")},
_getTextValueAttr:function(){return I.fieldValue(this.dataNode,this.get("searchAttr"))},_getSearchAttrAttr:function(){return a.isObject(this.searchAttr)&&null!==this.searchAttr?I.fieldValue(this.dataNode,this.searchAttr[E.locale.toUpperCase()])?this.searchAttr[E.locale.toUpperCase()]:this.searchAttr.RU:a.isString(this.searchAttr)?this.searchAttr:"ID"},_getIsSelectedAttr:function(){return this.get("selected")},_setIsSelectedAttr:function(B){this.set("selected",B);var D=this.singleSelect||this.getParent()&&
!0===this.getParent().sectionSingleSelect;D=[D?"icon-set-radio-checked":"icon-set-checkbox-checked",D?"icon-set-radio-unchecked":"icon-set-checkbox-unchecked"];e.replace(this.controlNode,D[-1*this.selected+1],D[1*this.selected]);this.get("selected")&&this.deployTreeNode();!0!==B||this.validator()||this.set("disabled",!0)},_getTreeSelectWidgetAttr:function(){for(var B=this;(!B.isInstanceOf(office.form.TreeSelectWidget)||B.isInstanceOf(office.form.TreeSelectWidget)&&!B.isRoot)&&B.getParent();)B=B.getParent();
return B.isInstanceOf(office.form.TreeSelectWidget)?B:null},_getTooltipAttrAttr:function(){return a.isFunction(this.tooltipAttr)?this.tooltipAttr(this.dataNode):""},_tooltipNode:null,_setTooltipAttr:function(B){this._tooltipNode||(this._tooltipNode=new office.TranslatableNode,this.addChild(this._tooltipNode));this._tooltipNode.set("text",this.tooltip=a.isString(B)?B:"")},buildRendering:function(){this.inherited(arguments);this.set("disabled",!this.validator())},startup:function(){this.inherited(arguments);
this.set("tooltip",this.get("tooltipAttr"))},validator:function(){return!0},deployTreeNode:function(){for(var B=this;(!B.isInstanceOf(office.form.TreeSelectWidget)||B.isInstanceOf(office.form.TreeSelectWidget)&&!B.isRoot)&&B.getParent();)B.isInstanceOf(office.form.TreeSelectSection)&&B.get("folded")&&B.set("folded",!1),B=B.getParent()},toggleSelect:function(B){B=this.get("treeSelectWidget");if(!(B&&B.get("disabled")||this.get("disabled"))&&this.validator()){var D=!this.get("isSelected"),K=this.getParent(),
M=!0;if(this.singleSelect){for(B=this;!B.isInstanceOf(office.form.TreeSelectWidget)&&B.getParent();)B=B.getParent();B.isInstanceOf(office.form.TreeSelectWidget)&&(B.fetchChildren(B,office.form.TreeSelectItem,function(R){R.get("isSelected")&&!R.validator()&&(M=!1)}),M&&B.fetchChildren(B,office.form.TreeSelectItem,function(R){R.set("isSelected",!1)}))}else if(this.getParent()&&!0===this.getParent().sectionSingleSelect){for(B=this;!B.isInstanceOf(office.form.TreeSelectWidget)&&B.getParent();)B=B.getParent();
B.isInstanceOf(office.form.TreeSelectWidget)&&B.fetchChildren(B,office.form.TreeSelectItem,function(R){R.getParent()===K&&R!==this&&R.set("isSelected",!1)})}M&&(this.set("isSelected",D),this.get("treeSelectWidget").onChange(B.getSelectedItems()),K.validate())}},getWordVariant:function(B,D){var K=[2,0,1,1,1,2];(K=D[E.locale.toUpperCase()][4<B%100&&20>B%100?2:K[5>B%10?B%10:5]])||(K=D[E.locale.toUpperCase()][1]);return K}}),L=c("office.form.TreeSelectSection",[k,p,u],{baseClass:"treeSelectSection",templateString:r,
dataNode:null,isRoot:null,identity:null,descriptionTooltip:null,descriptionAttr:null,sectionSingleSelect:null,sectionRequired:null,folded:null,treeSelectWidget:null,textValue:null,attributeMap:{textValue:{node:"textNode",type:"innerHTML"}},postMixInProperties:function(){this.inherited(arguments);this.textValue=this.get("textValue")},_setIsRootAttr:function(B){(this.isRoot=B)&&e.add(this.domNode,"rootTreeSelectSection")},_getIdentityAttr:function(){return I.fieldValue(this.dataNode,this.identity)},
_getDescriptionAttrAttr:function(){if(a.isObject(this.descriptionAttr)&&null!==this.descriptionAttr)return I.fieldValue(this.dataNode,this.descriptionAttr[E.locale.toUpperCase()])?this.descriptionAttr[E.locale.toUpperCase()]:this.descriptionAttr.RU;if(a.isString(this.descriptionAttr))return this.descriptionAttr},_getFoldedAttr:function(){return e.contains(this.domNode,"treeSelectSectionFolded")},_setFoldedAttr:function(B){this.folded=B;B=["treeSelectSectionFolded",""];var D=["icon-set-plus","icon-set-minus"];
e.replace(this.domNode,B[-1*this.folded+1],B[1*this.folded]);e.replace(this.controlNode,D[-1*this.folded+1],D[1*this.folded])},_getTreeSelectWidgetAttr:function(){for(var B=this;(!B.isInstanceOf(office.form.TreeSelectWidget)||B.isInstanceOf(office.form.TreeSelectWidget)&&!B.isRoot)&&B.getParent();)B=B.getParent();return B.isInstanceOf(office.form.TreeSelectWidget)?B:null},_getTextValueAttr:function(){return(this.descriptionTooltip?E.getLocalization(this.descriptionTooltip)+": ":"")+I.fieldValue(this.dataNode,
this.get("descriptionAttr"))},validate:function(){if(!1===this.sectionRequired)return f.set(this.textNode,{color:"inherit"}),!0;var B=!1;b.forEach(this.getChildren(),function(D){D.get("isSelected")&&(B=!0)});f.set(this.textNode,{color:B?"inherit":"#d64646"});return B},toggleView:function(B){(B=this.get("treeSelectWidget"))&&B.get("disabled")||this.set("folded",!this.get("folded"))}});return mill.registerAlias("office.form.TreeSelectWidget",c("mill.jssupport.jsApplication.controls.treeSelect.TreeSelectWidget",
[v,q,u,y,t,A],{baseClass:"treeSelect",templateString:m,scrollOnFocus:!1,identity:null,isRoot:!0,required:null,searchAttr:null,store:null,storeFilter:null,sort:null,treeNodeAttr:null,singleSelect:null,itemValidator:null,tooltipAttr:null,extendedAttr:null,canFilter:null,_savedValue:null,onChange:new Function,_getValueAttr:function(){var B=[];this.fetchChildren(this,office.form.TreeSelectItem,a.hitch(this,function(D){D.get("isSelected")&&B.push(D.get("_dataNodeID"))}));return B.join(";")},_setValueAttr:function(B){B?
a.isArray(B)||(B=B.split(";")):B=[];var D=this.get("value"),K=this.getFormContentWidget();K&&K.dataChangingMode||this.fetchChildren(this,office.form.TreeSelectSection,a.hitch(this,function(M){M.set("folded",!0)}));this.fetchChildren(this,office.form.TreeSelectItem,a.hitch(this,function(M){M.set("isSelected",0<=b.indexOf(B,M.get("_dataNodeID")))}));D!==this.get("value")&&this.onChange(this.getSelectedItems())},_getSearchAttrAttr:function(){return a.isObject(this.searchAttr)&&null!==this.searchAttr?
this.searchAttr[E.locale.toUpperCase()]:a.isString(this.searchAttr)?this.searchAttr:"ID"},_getSortAttr:function(){return a.isArray(this.sort)?b.map(this.sort,function(B){return a.isString(B.attribute)?a.mixin({},B):a.mixin({},{attribute:B.attribute[E.locale.toUpperCase()],descending:B.descending})}):[{attribute:this.get("searchAttr"),descending:!1}]},_filterWidget:null,_setCanFilterAttr:function(B){(this.canFilter=B)?this._filterWidget=this._filterWidget||new office.form.TextBoxWidget({intermediateChanges:!0,
placeHolderIdentifier:"Office.Filter",style:{width:"100%",margin:"2em 0 1em 0"},onChange:a.hitch(this,this.filter)},this.filterNode.appendChild(document.createElement("div"))):this._filterWidget?!this._filterWidget.destroyRecursive()&&(this._filterWidget=null):null},filter:function(B){this.fetchChildren(this,office.form.TreeSelectSection,a.hitch(this,function(D){var K=0<B.length;D.set("folded",!0);this.fetchChildren(D,office.form.TreeSelectItem,a.hitch(this,function(M){if(M.get("selected")||(new RegExp(B,
"gi")).test(M.textValue))(M.get("selected")||3<=B.length)&&M.deployTreeNode(),K=!1}));K?e.add(D.domNode,"treeSelectSectionFiltered"):e.remove(D.domNode,"treeSelectSectionFiltered")}))},validate:function(){if(this.get("disabled"))return!0;var B=!!this.get("value")||!this.get("required");this.fetchChildren(this,office.form.TreeSelectSection,a.hitch(this,function(D){D.validate()||(B=!1)}));return B},translate:function(){this.inherited(arguments);var B=this.get("value")?this.get("value").split(";"):[];
g(this.update()).then(a.hitch(this,function(){this.set("value",B)}))},fetch:function(){var B=new h;a.isFunction(this.store.fetch)?this.store.fetch({query:{ID:"*"},queryOptions:{ignoreCase:!0},sort:this.get("sort"),onComplete:B.resolve}):B.resolve(this.store.data);return B.promise},fetchChildren:function(B,D,K){if(B.getChildren){B=B.getChildren();for(var M=0;M<B.length;M++)B[M].isInstanceOf(D)&&a.isFunction(K)&&K(B[M]),this.fetchChildren(B[M],D,K)}},getSelectedItems:function(){var B=[];this.fetchChildren(this,
office.form.TreeSelectItem,a.hitch(this,function(D){D.get("isSelected")&&B.push(D)}));return B},createTreeItem:function(B,D){var K=new h,M=[];if(null!==this.extendedAttr&&a.isObject(this.extendedAttr)&&(a.isFunction(this.extendedAttr.isExtended)?this.extendedAttr.isExtended(D):this.extendedAttr.isExtended)){var R=!1;this.fetchChildren(B,office.form.TreeSelectWidget,a.hitch(this,function(U){mill.fieldValue(U.dataNode,U.identity)===I.fieldValue(D,this.extendedAttr.identity)&&(R=!0)}));if(!R){var Q=
new office.form.TreeSelectWidget({identity:this.extendedAttr.identity,isRoot:!1,style:{margin:".5em 2em"},dataNode:D,store:this.extendedAttr.store(D),storeFilter:this.storeFilter,itemValidator:this.itemValidator,treeNodeAttr:this.extendedAttr.treeNodeAttr,searchAttr:this.extendedAttr.searchAttr,singleSelect:this.extendedAttr.singleSelect||null,tooltipAttr:this.tooltipAttr||null});B.addChild(Q);M.push(Q.update())}}else{var T=!1;this.fetchChildren(B,office.form.TreeSelectItem,a.hitch(this,function(U){U._dataNodeID===
I.fieldValue(D,"ID")&&(T=!0)}));Q={dataNode:D,searchAttr:this.searchAttr,singleSelect:this.singleSelect,tooltipAttr:this.tooltipAttr};a.isFunction(this.itemValidator)&&a.mixin(Q,{validator:this.itemValidator});T||B.addChild(new H(Q))}(new l(M)).then(K.resolve);return K.promise},clearTree:function(){b.forEach(this.getChildren(),function(B){B.destroyRecursive()});return!0},buildTree:function(B){var D=new h,K=[];this.clearTree()&&b.forEach(B,a.hitch(this,function(M){if(!a.isFunction(this.storeFilter)||
!0===this.storeFilter(M)){var R=this;if(a.isArray(this.treeNodeAttr))for(var Q=0;Q<this.treeNodeAttr.length;Q++){R=this;for(var T=0;T<=Q;){var U=b.filter(R.getChildren(),a.hitch(this,function(W){return W.get("identity")===I.fieldValue(M,this.treeNodeAttr[T].identity)}))[0];U||R.addChild(U=new L({dataNode:M,isRoot:0===Q,identity:this.treeNodeAttr[T].identity,descriptionTooltip:this.treeNodeAttr[T].descriptionTooltip||null,descriptionAttr:this.treeNodeAttr[T].descriptionAttr,sectionSingleSelect:this.treeNodeAttr[T].singleSelect?
this.treeNodeAttr[T].singleSelect:!1,sectionRequired:this.treeNodeAttr[T].required?this.treeNodeAttr[T].required:!1,folded:"boolean"===typeof this.treeNodeAttr[T].folded?this.treeNodeAttr[T].folded:0<Q}));R=U;T++}}K.push(this.createTreeItem(R,M))}}));(new l(K)).then(D.resolve);return D.promise},_updateHandler:null,update:function(){this._filterWidget&&this._filterWidget.set("value","");this._updateHandler||(this._updateHandler=[]);var B=this.get("value"),D=this._updateHandler.slice(),K=new h;this._updateHandler.push(K);
(new l(D)).then(a.hitch(this,function(){this.set("queryState",!0);this.fetch().then(a.hitch(this,function(M){this.buildTree(M).then(a.hitch(this,function(){this.set("value",B?B.split(";"):this._savedValue);this.set("queryState",!1);K.resolve()}))}))}));return K.promise},_savedStateValue:null,hideForValue:function(B){this._filterWidget&&this._filterWidget.set("value","");"string"===typeof B&&(B=B.split(";"));a.isArray(B)&&(this._savedValue=B);(B=this.getFormContentWidget())&&B._dataChangingMode&&(this._savedStateValue=
this.get("disabled"));this.set("value",this._savedValue);this.set("disabled",!0)},unhideForValue:function(){this._filterWidget&&this._filterWidget.set("value","");this.set("disabled",this._savedStateValue||!1)}}))})},"mill/jssupport/form/_TextFieldWidgetMixin":function(){define("dojo/_base/declare dojo/_base/lang dojo/dom-class dojo/dom-construct dojo/dom-style mill/jssupport/form/_FieldWidgetMixin mill/jssupport/_TranslationMixin".split(" "),function(c,a,b,e,f,g,h){return mill.registerAlias("office.form._TextFieldWidgetMixin",
c("mill.jssupport.form._TextFieldWidgetMixin",[g,h],{icon:null,placeHolderIdentifier:null,missingMessageIdentifier:null,invalidMessageIdentifier:null,_savedValue:null,_savedValueNode:null,_changed:null,_setIconAttr:function(l){b.add(this.domNode,"has-icon");var m=e.place(e.create("div",{className:"icon"}),this.domNode,"last");e.create("span",{className:this.icon=l},m)},_setMissingMessageIdentifierAttr:function(l){this.translatableAttributes.missingMessage=this.missingMessageIdentifier=l;this.translate()},
_setInvalidMessageIdentifierAttr:function(l){this.translatableAttributes.invalidMessage=this.invalidMessageIdentifier=l;this.translate()},_setPlaceHolderIdentifierAttr:function(l){this.translatableAttributes.placeHolder=this.placeHolderIdentifier=l;this.translate()},hideForValue:function(l){if(l=this.getFieldWidget())l.maxLengthNode&&f.set(l.maxLengthNode,{display:"none"}),l.containerNode&&f.set(l.containerNode,{display:"none"}),l._dataExampleWidget&&f.set(l._dataExampleWidget.domNode,{display:"none"})},
unhideForValue:function(){e.destroy(this._savedValueNode);var l=this.getFieldWidget();l&&(l.maxLengthNode&&f.set(l.maxLengthNode,{display:"block"}),l.containerNode&&f.set(l.containerNode,{display:"block"}),l._dataExampleWidget&&f.set(l._dataExampleWidget.domNode,{display:"block"}));f.set(this.domNode,{display:"inline-block"})}}))})},"mill/jssupport/jsApplication/controls/controlField/ControlField":function(){define("dojo/_base/declare dojo/dom-class dijit/_WidgetBase dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dijit/_Container mill/jssupport/jsApplication/controls/_WidgetTitleMixin mill/jssupport/TranslatableNode dojo/text!mill/jssupport/jsApplication/controls/controlField/controlField.html mill/jssupport/base".split(" "),
function(c,a,b,e,f,g,h,l,m,r){return mill.registerAlias("app.view.ControlField",c("mill.jssupport.jsApplication.controls.controlField.ControlField",[b,e,f,g,h],{baseClass:"officeFormField",templateString:m,required:null,hintText:null,fullWidth:null,titleCell:null,hintTextRefNode:null,hintTextWidget:null,_setHintTextAttr:function(){return function(n){var k=window.app.combinedTranslationIdent(n);null===r.getLocalization(k)&&(k=n);this.hintText=k;this.hintTextWidget&&this.hintTextWidget.set("text",this.hintText)}}(),
_setRequiredAttr:function(){return function(n){this.required=n;this.titleWidget.set("text",(this.required?"\x3cspan class\x3d'red'\x3e*\x3c/span\x3e\x26#160;":"")+this.title)}}(),_setFullWidthAttr:function(n){this.fullWidth=n;a[this.fullWidth?"add":"remove"](this.titleCell.domNode,"cellHidden")},startup:function(){this.inherited(arguments);this.hintTextWidget||(this.hintTextWidget=l({className:"dim small",text:this.hintText},this.hintTextRefNode))}}))})},"mill/jssupport/layout/layoutMenu/LayoutMenuTreeNode":function(){define(["dojo/_base/declare",
"dijit/_CssStateMixin","mill/jssupport/TranslatableNode"],function(c,a,b){return mill.registerAlias("office.layout.LayoutMenuTreeNode",c("mill.jssupport.layout.layoutMenu.LayoutMenuTreeNode",[b,a],{baseClass:"officeLayoutMenuTreeNode",selected:null}))})},"mill/jssupport/jsApplication/controlSet/ControlSet":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dijit/registry dijit/_WidgetBase dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dijit/_Container mill/jssupport/jsApplication/controls/fileEditor/FileEditor mill/jssupport/jsApplication/controls/editorControl/EditorControl mill/jssupport/jsApplication/controls/treeSelect/TreeSelectWidget mill/jssupport/jsApplication/controlSet/_ControlSetFullScreenModeMixin mill/jssupport/_TranslationMixin".split(" "),
function(c,a,b,e,f,g,h,l,m,r,n,k,p){return mill.registerAlias("app.view.ControlSet",c("mill.jssupport.jsApplication.controlSet.ControlSet",[f,g,h,l,k,p],{controlSetID:null,controlNames:null,controlWidgets:null,idPostfix:null,closeIconNode:null,postMixInProperties:function(){this.inherited(arguments);"string"===typeof this.controlNames&&(this.controlNames=this.controlNames.split(","));a.isFunction(this.id)&&(this.id=this.id());var q=this.id.match(/_\d+$/);this.idPostfix=q?q[0]:""},_getControlWidgetsAttr:function(){return function(){a.isArray(this.controlWidgets)||
(this.controlWidgets=b.map(this.controlNames,function(q){return e.byId(q+this.idPostfix)},this));return this.controlWidgets}}(),initControls:function(){},_onInit:function(){window.app.preventSelfInvoking(function(){this.onInit.apply(this,this.get("controlWidgets"))}.bind(this))},onInit:function(){},_onChange:function(q,u,y){window.app.preventSelfInvoking(function(){this.onChange.apply(this,[q,u,y].concat(this.get("controlWidgets")))}.bind(this))},onChange:function(){},_onValidate:function(){return window.app.preventSelfInvoking(function(){var q=
this.onValidate.apply(this,this.get("controlWidgets"));q&&b.forEach(window.app.getControlNestedControlSetGroup(this),function(u){b.forEach(window.app.getControlNestedControlSet(u),function(y){y.onValidate.apply(y,y.get("controlWidgets"))||(q=!1)})});return q}.bind(this))},onValidate:function(){},_onSaveData:function(){return window.app.preventSelfInvoking(function(){return this.onSaveData.apply(this,this.get("controlWidgets"))}.bind(this))},onSaveData:function(){},_onTranslate:function(){window.app.preventSelfInvoking(function(){this.onTranslate.apply(this,
this.get("controlWidgets"))}.bind(this))},onTranslate:function(){},startup:function(){this.inherited(arguments);var q=this.get("controlWidgets");this.initControls.apply(this,q);var u=this;b.forEach(q,function(y){if(y.isInstanceOf(r)||y.isInstanceOf(n))dojo.connect(y,"onChange",function(t){u._onChange(y,"undefined",t)});else{var v=["value","checked","text"];y.isInstanceOf(m)&&(v=["fileName"]);b.forEach(v,function(t){y.watch(t,function(x,z,A){u._onChange(y,z,A);("value"===t||"checked"===t||"fileName"===
t)&&(a.isFunction(y.isValid)&&y.isValid()||y.isInstanceOf(m))&&window.app.validateWidgets(y)})});y.watch("disabled",function(){var t=window.app.getControlField(y),x=y.get("required");return function(z,A,E){t&&t.set("required",E?!1:x);y.set("required",E?!1:x)}}())}});this.initWidget();this.fullScreenMode&&this.initFullScreenMode()},initWidget:function(){this._onInit();this._onChange(null,null,null);b.forEach(window.app.getControlNestedControlSetGroup(this),function(q){b.forEach(window.app.getControlNestedControlSet(q),
function(u){u.initWidget.bind(u)()})})},translate:function(){this.inherited(arguments);var q=this.get("controlWidgets");this._onTranslate();b.forEach(q,function(u){if(u.get("store")){var y=u.get("value");if(y){var v={};v[u.store.idProperty]=parseInt(y,10);(y=u.store.query(v)[0])&&(y.hasOwnProperty(u.searchAttr)?u.set("value",y[u.searchAttr]?u.get("value"):""):u.set("value",""))}}});b.forEach(window.app.getControlNestedControlSetGroup(this),function(u){if(!u.get("changeMode")){var y=[];b.forEach(u.getChildren(),
function(v){v.hasOwnProperty("savedValueNode")&&y.push(v);v.getChildren()&&v.getChildren().length&&b.forEach(v.getChildren(),function(t){t.hasOwnProperty("savedValueNode")&&y.push(t)})});window.app.hideForValue(y)}})},destroyRecursive:function(){var q=window.app.getControlParentControlSet(this);this.inherited(arguments);q&&q._onChange(null,null,null)}}))})},"mill/jssupport/layout/layoutContent/PersonInfoPane":function(){define("dojo/_base/declare dojo/_base/lang dojo/dom-class dojo/dom-style dojo/aspect dojo/window dojo/dom-geometry dojo/topic dijit/_WidgetBase dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dojo/text!mill/jssupport/layout/layoutContent/personInfoPane.html mill/jssupport/layout/LayoutContainer mill/mill mill/jssupport/base".split(" "),
function(c,a,b,e,f,g,h,l,m,r,n,k,p,q,u){return q.registerAlias("office.view.PersonInfoPane",c("mill.jssupport.layout.layoutContent.PersonInfoPane",[m,r,n],{baseClass:"officePersonInfoPane hide-on-all",templateString:k,layoutContainerWidget:null,isHidden:null,login:null,fullName:null,publicServicesPortalRegNumber:null,earlyInvRegNumber:null,personPhotoNode:null,loginNode:null,fullNameNode:null,publicServicesPortalRegNumberNode:null,earlyInvRegNumberNode:null,toggleRefNode:null,attributeMap:{login:{node:"loginNode",
type:"innerHTML"},fullName:{node:"fullNameNode",type:"innerHTML"},publicServicesPortalRegNumber:{node:"publicServicesPortalRegNumberNode",type:"innerHTML"},earlyInvRegNumber:{node:"earlyInvRegNumberNode",type:"innerHTML"}},_getLayoutContainerWidgetAttr:function(){if(this.layoutContainerWidget)return this.layoutContainerWidget;for(var y=this;y.domNode&&!y.isInstanceOf(p)&&y.getParent();)y=y.getParent();y.isInstanceOf(p)&&(this.layoutContainerWidget=y);return this.layoutContainerWidget},buildRendering:function(){this.inherited(arguments);
b.contains(document.body,"hse")&&b.remove(this.domNode,"hide-on-all")},postCreate:function(){this.inherited(arguments);f.after(g,"scrollIntoView",function(y){try{var v=h.position(y).y;if(200>=v&&this.get("layoutContainerWidget")){var t=q.fieldValue(this.get("layoutContainerWidget"),"contentPane");t&&t.domNode&&t.domNode.scrollBy(0,v-200)}}catch(x){q.fieldValue(window,"console").error(x)}}.bind(this),!0);l.subscribe("app.onLogon",function(){this.init(this)}.bind(this))},init:function(){var y=window.app.handlerDataByIdent("primaryControlSetData")[0],
v=q.fieldValue(y,"PersonalData"),t=q.fieldValue(y,"MagAbiturSt");y=q.fieldValue(y,"TMagEarlyInvitee")||q.fieldValue(y,"MagEarlyInviteeFirstStageStatus");this.set("login",q.session.userName);this.set("fullName",q.fieldValue(v,"FullName")+"\x26#160;"+q.formatDate(q.fieldValue(v,"BirthDate")));this.set("publicServicesPortalRegNumber",q.fieldValue(t,"SSPVOIdent")||u.getLocalization("MagAbitur.NoPublicServicesPortalRegNumber"));this.set("earlyInvRegNumber",q.fieldValue(y,"RegNumber")||u.getLocalization("MagAbitur.NotRegistered"));
q.fieldValue(v,"Photo")&&(v="/"+window.app.handler+q.fieldValue(v,"PhotoReference").replace("getblob","getblob.jpg").split('"').join("'"),e.set(this.personPhotoNode,{width:"75px",backgroundImage:'url("'+v+'")'}))},toggle:function(){this.isHidden=!this.isHidden;b[this.isHidden?"add":"remove"](this.domNode,"IsHidden");this.toggleRefNode.innerHTML=this.isHidden?"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c":"\u0421\u043a\u0440\u044b\u0442\u044c"}}))})},"mill/instantMessages":function(){define("dojo/io/iframe dijit/dijit dijit/Dialog dijit/_Widget dijit/_Container dijit/_Contained dijit/_Templated dijit/layout/_LayoutWidget dijit/layout/_ContentPaneResizeMixin dijit/layout/BorderContainer dijit/layout/ContentPane mill/mill mill/ToolBar mill/beep".split(" "),
function(){mill.instantMessages=mill.instantMessages||{};dojo.mixin(mill.instantMessages,{getAttachmentBody:function(c,a,b){var e=document.createElement("form");if(dojo.isIE){e.insertAdjacentHTML("afterBegin","\x3cinput type\x3d'hidden' name\x3d'id'/\x3e");e.insertAdjacentHTML("afterBegin","\x3cinput type\x3d'hidden' name\x3d'filename'/\x3e");var f=e.childNodes[0];var g=e.childNodes[1]}else g=e.appendChild(document.createElement("input")),g.type="hidden",g.name="id",f=e.appendChild(document.createElement("input")),
f.type="hidden",f.name="filename";e.method="POST";e.action=mill.getRequestUrl(c,"instantMessages.getAttachmentBody");e.target="_blank";g.value=a;f.value=b;document.body.appendChild(e);e.submit();document.body.removeChild(e)}});dojo.declare("mill._InstantMessagesMixin",null,{_root:"",_handler:"",_imageList:"",_actionsImageList:"",constructor:function(){dojo.subscribe("instantMessages/getRoot/Result",this,function(c){this._root=c});dojo.publish("instantMessages/getRoot");this._handler=this._root.handler;
this._imageList=this._root._imageList;this._actionsImageList=this._root._actionsImageList},queryGetXML:function(c){dojo.xhrGet(dojo.mixin({headers:{"Disable-Basic-Auth":"yes"},handleAs:"xml",preventCache:!0},c))},queryPostXML:function(c){dojo.xhrPost(dojo.mixin({headers:{"Disable-Basic-Auth":"yes"},handleAs:"xml",preventCache:!0},c))},_destroyChildren:function(){var c=this.chat||this.contactsGrid;c&&dojo.forEach(c.getChildren(),function(a){a.destroyRecursive()})}});dojo.declare("mill._InstantMessagesContactsMixin",
[mill._InstantMessagesMixin,dijit.layout._LayoutWidget,dijit.layout._ContentPaneResizeMixin,dijit._Templated],{widgetsInTemplate:!0,_parentPaneWidget:"",_getSelectedContacts:function(c){return dojo.map(dojo.filter(this.contactsGrid.getChildren(),function(a){return a.attr("isSelected")}),function(a){return mill.fieldValue(a.dataNode,c||"ID")}).join(";")}});dojo.declare("mill._InstantMessagesContactRow",[mill._InstantMessagesMixin,dijit.layout._LayoutWidget,dijit._Templated],{templateString:dojo.cache("mill",
"instantMessagesContactRow.html",'\x3cdiv dojoattachevent\x3d"onclick: _selectRow, onmousedown: _onMouseDown" title\x3d"${_title}" unselectable\x3d"on"\x3e\x3cspan\x3e${_dataNodeDescription}\x3c/span\x3e\x3c/div\x3e'),dataNode:"",isSelected:!1,_dataNodeDescription:"",_gridWidget:"",_title:"",postMixInProperties:function(){this.inherited(arguments);this.baseClass="icsPending"==mill.fieldValue(this.dataNode,"BackContactStatus$N")?"pendingContactRow":"contactRow";this.title=dojo.i18n.getLocalization("mill",
"resources").imMultipleSelectTooltip;this._dataNodeDescription=mill.fieldValue(this.dataNode,"Description")},_setIsSelectedAttr:function(c){(this.isSelected=c)?dojo.addClass(this.domNode,dojo.hasClass(this.domNode,"contactRow")?"selectedContact":"selectedPendingContact"):dojo.removeClass(this.domNode,["selectedContact","selectedPendingContact"])},resize:function(c){dojo.marginBox(this.domNode,{w:c||dojo.contentBox(this.getParent().domNode).w})},_selectRow:function(c){!this._gridWidget&&(this._gridWidget=
this.getParent());if(c.ctrlKey&&!c.shiftKey)this.attr("isSelected",!this.isSelected),this._gridWidget.attr("_lastSelectedContact",this);else if(c.ctrlKey&&c.shiftKey){if(!this._gridWidget.attr("_lastSelectedContact"))return;var a=!1,b=!1;dojo.forEach(this._gridWidget.getChildren(),dojo.hitch(this,function(e){!e.attr("isSelected")&&e.attr("isSelected",a&&!b);e!=this&&e!=this._gridWidget.attr("_lastSelectedContact")||e.attr("isSelected",a?b?!1:b=!0:a=!0)}))}else dojo.forEach(this._gridWidget.getChildren(),
dojo.hitch(this,function(e){this!=e&&e.attr("isSelected",!1)})),this.attr("isSelected",!0),this._gridWidget.attr("_lastSelectedContact",this);"mill._InstantMessagesContacts"==this._gridWidget.getParent().declaredClass&&this._root._dialogLayout._conversation.selectMessages(this._gridWidget.getParent()._getSelectedContacts("User"))},_onMouseDown:function(c){c.preventDefault()}});dojo.declare("mill._InstantMessagesContactsGrid",[dijit._Widget,dijit._Contained,dijit._Container],{baseClass:"contactsGrid",
_lastSelectedContact:"",render:function(){var c=dojo.contentBox(this.domNode).w;dojo.forEach(this.getChildren(),function(a){a.resize(c)});dojo.forEach(this.getChildren(),function(a){a.attr("isSelected")&&dijit.scrollIntoView(a.domNode)})}});dojo.declare("mill._InstantMessagesSearchUsers",[mill._InstantMessagesContactsMixin],{templateString:dojo.cache("mill","instantMessagesSearchUsers.html",'\x3cdiv\x3e\x3cdiv class\x3d"searchPattern" dojoattachpoint\x3d"searchPatternNode"\x3e\x3cspan\x3e${_imSearch}\x3c/span\x3e : \x3cinput dojoattachevent\x3d"onChange: _searchUsers" dojoattachpoint\x3d"searchPattern" dojotype\x3d"dijit.form.ValidationTextBox" intermediateChanges\x3d"true"\x3e\x3c/input\x3e\x3c/div\x3e\x3cdiv dojoattachpoint\x3d"containerNode"\x3e\x3cdiv dojoattachpoint\x3d"toolbar" dojotype\x3d"mill.ToolBarContainer" imageList\x3d"${_imageList}"\x3e\x3cdiv color\x3d"blue" dojotype\x3d"mill.ToolBarPane"\x3e\x3cdiv dojoattachevent\x3d"onClick: _addContact" dojotype\x3d"mill.ToolBarButton" imageindex\x3d"85" label\x3d"${_imAddContact}"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"clear"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"searchUsersGrid" dojoattachpoint\x3d"contactsGrid" dojotype\x3d"mill._InstantMessagesContactsGrid"\x3e\x3c/div\x3e\x3c/div\x3e'),
_imSearch:"",_imAddContact:"",postMixInProperties:function(){this.inherited(arguments);this._imSearch=dojo.i18n.getLocalization("mill","resources").imSearch;this._imAddContact=dojo.i18n.getLocalization("mill","resources").imAddContact},resize:function(){this.inherited(arguments);!this._parentPaneWidget&&(this._parentPaneWidget=this.getParent());!this._parentPaneWidget.attr("minSize")&&this._parentPaneWidget.attr("minSize",dojo.marginBox(this._parentPaneWidget.domNode).w);dojo.marginBox(this.contactsGrid.domNode,
{h:dojo.contentBox(this._parentPaneWidget.domNode).h-dojo.marginBox(this.searchPatternNode).h-dojo.marginBox(this.toolbar.domNode).h,w:dojo.contentBox(this._parentPaneWidget.domNode).w});this.contactsGrid.render()},_searchUsers:function(){this.queryGetXML({url:"../"+this._handler+"/instantMessages.searchUsers.xml",content:{value:this.searchPattern.attr("value")||"*"},load:dojo.hitch(this,function(c){this._destroyChildren();dojo.forEach(c.childNodes[0].childNodes,dojo.hitch(this,function(a){this.contactsGrid.addChild(new mill._InstantMessagesContactRow({dataNode:a}))}));
return c}),error:dojo.hitch(this,function(c){this._destroyChildren();return c})})},_addContact:function(){this.queryGetXML({url:"../"+this._handler+"/instantMessages.addContact.xml",content:{users:this._getSelectedContacts()},load:dojo.hitch(this,function(c){this._root._dialogLayout._searchUsersWidget._searchUsers();this._root._dialogLayout._contactsPaneLayout._selectContacts();return c})})}});dojo.declare("mill._InstantMessagesContacts",[mill._InstantMessagesContactsMixin],{templateString:dojo.cache("mill",
"instantMessagesContacts.html",'\x3cdiv\x3e\x3cdiv dojoattachpoint\x3d"containerNode"\x3e\x3cdiv dojoattachpoint\x3d"toolbar" dojotype\x3d"mill.ToolBarContainer" imageList\x3d"${_imageList}"\x3e\x3cdiv color\x3d"green" dojotype\x3d"mill.ToolBarPane"\x3e\x3cdiv dojoattachevent\x3d"onClick: _toggleUserSearchPaneView" dojotype\x3d"mill.ToolBarButton" imageindex\x3d"89" label\x3d"${_imAddNewContacts}"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv color\x3d"blue" dojotype\x3d"mill.ToolBarPane"\x3e\x3cdiv dojoattachevent\x3d"onClick: _revokeAuthorization" dojotype\x3d"mill.ToolBarButton" imageindex\x3d"94" label\x3d"${_imRevokeAuthorization}"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv color\x3d"red" dojotype\x3d"mill.ToolBarPane"\x3e\x3cdiv dojoattachevent\x3d"onClick: _togglePendingAuthorization" dojotype\x3d"mill.ToolBarButton" imageindex\x3d"93" label\x3d"${_imPendingAuthorization}"\x3e\x3c/div\x3e\x3cdiv dojoattachevent\x3d"onClick: _toggleBlocked" dojotype\x3d"mill.ToolBarButton" imageindex\x3d"88" label\x3d"${_imBlocked}"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"clear"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv dojoattachpoint\x3d"contactsGrid" dojotype\x3d"mill._InstantMessagesContactsGrid"\x3e\x3c/div\x3e\x3c/div\x3e'),
_imAddNewContacts:"",_imRevokeAuthorization:"",_imPendingAuthorization:"",_imBlocked:"",postMixInProperties:function(){this.inherited(arguments);this._imAddNewContacts=dojo.i18n.getLocalization("mill","resources").imAddNewContacts;this._imRevokeAuthorization=dojo.i18n.getLocalization("mill","resources").imRevokeAuthorization;this._imPendingAuthorization=dojo.i18n.getLocalization("mill","resources").imPendingAuthorization;this._imBlocked=dojo.i18n.getLocalization("mill","resources").imBlocked},resize:function(){this.inherited(arguments);
!this._parentPaneWidget&&(this._parentPaneWidget=this.getParent());dojo.marginBox(this.contactsGrid.domNode,{h:dojo.contentBox(this._parentPaneWidget.domNode).h-dojo.marginBox(this.toolbar.domNode).h,w:dojo.contentBox(this._parentPaneWidget.domNode).w});this.contactsGrid.render()},_revokeAuthorization:function(){this.queryGetXML({url:"../"+this._handler+"/instantMessages.changeContactStatus.xml",content:{contacts:this._getSelectedContacts(),status:"icsPending"},load:dojo.hitch(this,function(c){this._root._dialogLayout._contactsPaneLayout._selectContacts();
return c})})},_toggleUserSearchPaneView:function(){dojo.toggleClass(this._root._dialogLayout._searchUsersPane.domNode,"hiddenPane");dojo.toggleClass(this._root._dialogLayout._searchUsersPane._splitterWidget.domNode,"hiddenPane");this._root._dialogLayout._searchUsersPane.resize();this._root._dialogLayout._searchUsersPane.getParent().resize();this._root._dialog.resize()},_togglePendingAuthorization:function(){dojo.toggleClass(this._root._dialogLayout._contactsPaneLayout._pendingContactsPane.domNode,
"hiddenPane");dojo.toggleClass(this._root._dialogLayout._contactsPaneLayout._pendingContactsPane._splitterWidget.domNode,"hiddenPane");this._root._dialogLayout._contactsPaneLayout.resize()},_toggleBlocked:function(){dojo.toggleClass(this._root._dialogLayout._contactsPaneLayout._refusedContactsPane.domNode,"hiddenPane");dojo.toggleClass(this._root._dialogLayout._contactsPaneLayout._refusedContactsPane._splitterWidget.domNode,"hiddenPane");this._root._dialogLayout._contactsPaneLayout.resize()}});dojo.declare("mill._InstantMessagesPendingContacts",
[mill._InstantMessagesContactsMixin],{templateString:dojo.cache("mill","instantMessagesPendingContacts.html",'\x3cdiv\x3e\x3cdiv dojoattachpoint\x3d"containerNode"\x3e\x3cdiv dojoattachpoint\x3d"toolbar" dojotype\x3d"mill.ToolBarContainer" imageList\x3d"${_imageList}"\x3e\x3cdiv color\x3d"blue" dojotype\x3d"mill.ToolBarPane"\x3e\x3cdiv dojoattachevent\x3d"onClick: _authorizeContact" dojotype\x3d"mill.ToolBarButton" imageindex\x3d"86" label\x3d"${_imAuthorizeContact}"\x3e\x3c/div\x3e\x3cdiv dojoattachevent\x3d"onClick: _blockContact" dojotype\x3d"mill.ToolBarButton" imageindex\x3d"88" label\x3d"${_imBlockContact}"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"clear"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv dojoattachpoint\x3d"contactsGrid" dojotype\x3d"mill._InstantMessagesContactsGrid"\x3e\x3c/div\x3e\x3c/div\x3e'),
_imAuthorizeContact:"",_imBlockContact:"",postMixInProperties:function(){this.inherited(arguments);this._imAuthorizeContact=dojo.i18n.getLocalization("mill","resources").imAuthorizeContact;this._imBlockContact=dojo.i18n.getLocalization("mill","resources").imBlockContact},resize:function(){this.inherited(arguments);!this._parentPaneWidget&&(this._parentPaneWidget=this.getParent());dojo.marginBox(this.contactsGrid.domNode,{h:dojo.contentBox(this._parentPaneWidget.domNode).h-dojo.marginBox(this.toolbar.domNode).h,
w:dojo.contentBox(this._parentPaneWidget.domNode).w});this.contactsGrid.render()},_authorizeContact:function(){this.queryGetXML({url:"../"+this._handler+"/instantMessages.changeContactStatus.xml",content:{contacts:this._getSelectedContacts(),status:"icsApproved"},load:dojo.hitch(this,function(c){this._root._dialogLayout._contactsPaneLayout._selectContacts();return c})})},_blockContact:function(){this.queryGetXML({url:"../"+this._handler+"/instantMessages.changeContactStatus.xml",content:{contacts:this._getSelectedContacts(),
status:"icsRefused"},load:dojo.hitch(this,function(c){this._root._dialogLayout._contactsPaneLayout._selectContacts();return c})})}});dojo.declare("mill._InstantMessagesRefusedContacts",[mill._InstantMessagesContactsMixin],{templateString:dojo.cache("mill","instantMessagesRefusedContacts.html",'\x3cdiv\x3e\x3cdiv dojoattachpoint\x3d"containerNode"\x3e\x3cdiv dojoattachpoint\x3d"toolbar" dojotype\x3d"mill.ToolBarContainer" imageList\x3d"${_imageList}"\x3e\x3cdiv color\x3d"blue" dojotype\x3d"mill.ToolBarPane"\x3e\x3cdiv dojoattachevent\x3d"onClick: _unblockContact" dojotype\x3d"mill.ToolBarButton" imageindex\x3d"93" label\x3d"${_imUnblock}"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"clear"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv dojoattachpoint\x3d"contactsGrid" dojotype\x3d"mill._InstantMessagesContactsGrid"\x3e\x3c/div\x3e\x3c/div\x3e'),
_imUnblock:"",postMixInProperties:function(){this.inherited(arguments);this._imUnblock=dojo.i18n.getLocalization("mill","resources").imUnblock},resize:function(){this.inherited(arguments);!this._parentPaneWidget&&(this._parentPaneWidget=this.getParent());dojo.marginBox(this.contactsGrid.domNode,{h:dojo.contentBox(this._parentPaneWidget.domNode).h-dojo.marginBox(this.toolbar.domNode).h,w:dojo.contentBox(this._parentPaneWidget.domNode).w});this.contactsGrid.render()},_unblockContact:function(){this.queryGetXML({url:"../"+
this._handler+"/instantMessages.changeContactStatus.xml",content:{contacts:this._getSelectedContacts(),status:"icsPending"},load:dojo.hitch(this,function(c){this._root._dialogLayout._contactsPaneLayout._selectContacts();return c})})}});dojo.declare("mill._InstantMessagesConversationMessage",[mill._InstantMessagesMixin,dijit._Widget,dijit._Templated],{templateString:dojo.cache("mill","instantMessagesConversationMessage.html",'\x3cdiv\x3e\x3cdiv class\x3d"messageNode"\x3e\x3cdiv\x3e\x3cu\x3e\x3cspan\x3e${_userName}\x3c/span\x3e\x3c/u\x3e\x3c/div\x3e\x3cspan class\x3d"messageText"\x3e\x3cspan\x3e${_messageText}\x3c/span\x3e\x3c/span\x3e\x3cdiv dojoattachpoint\x3d"attachment"\x3e\x3c/div\x3e\x3cdiv class\x3d"messageTime"\x3e\x3cspan\x3e${_time}\x3c/span\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e'),
dataNode:"",multipleUsers:!1,attachmentNode:"",_imForUserMessage:"",_isOwner:"",_messageText:"",_time:"",_userName:"",postMixInProperties:function(){this.inherited(arguments);this._imForUserMessage=dojo.i18n.getLocalization("mill","resources").imForUserMessage;this._isOwner=mill.fieldValue(this.dataNode,"Owner")==this._root._currentUserID;this.multipleUsers&&(this._userName=(this._isOwner?this._imForUserMessage+" "+mill.fieldValue(this.dataNode,"User$D"):mill.fieldValue(this.dataNode,"Owner$D"))+
":");this._messageText=mill.fieldValue(this.dataNode,"Message");var c=mill.parseDate(mill.fieldValue(this.dataNode,"DeliveryTime"));0==dojo.date.compare(c,new Date,"date")?this._time=dojo.date.locale.format(c,{selector:"time",timePattern:"\u0421\u0435\u0433\u043e\u0434\u043d\u044f, HH:mm:ss"}):this._time=mill.formatDateTime(c)},_setAttachmentNodeAttr:function(c){this.attachmentNode=c;switch(mill.fieldValue(this.dataNode,"AttachmentType$N")){case "imaHyperLink":dojo.create("a",{innerHTML:mill.fieldValue(this.attachmentNode,
"HyperLink"),href:mill.fieldValue(this.attachmentNode,"HyperLink"),target:"_blank"},this.attachment);break;case "imaImage":c=dojo.create("a",{style:{display:"block"},href:"javascript:mill.instantMessages.getAttachmentBody('"+this._handler+"', '"+mill.fieldValue(this.attachmentNode,"ID")+"', '"+mill.fieldValue(this.attachmentNode,"HyperLink")+"')"},this.attachment.appendChild(document.createElement("div")));c=dojo.create("div",{className:"messageImage"},c);dojo.style(c,{backgroundImage:"url('"+mill.getRequestUrl(this._handler,
"instantMessages.getAttachmentBody")+"?id\x3d"+mill.fieldValue(this.attachmentNode,"ID")+"')"});9>dojo.isIE&&dojo.style(c,{backgroundImage:"none",width:"70px",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src\x3d'"+mill.getRequestUrl(this._handler,"instantMessages.getAttachmentBody")+"?id\x3d"+mill.fieldValue(this.attachmentNode,"ID")+"', sizingMethod\x3d'scale')"});dojo.create("a",{innerHTML:mill.fieldValue(this.attachmentNode,"HyperLink"),href:"javascript:mill.instantMessages.getAttachmentBody('"+
this._handler+"', '"+mill.fieldValue(this.attachmentNode,"ID")+"', '"+mill.fieldValue(this.attachmentNode,"HyperLink")+"')"},this.attachment);break;case "imaFile":dojo.create("a",{innerHTML:mill.fieldValue(this.attachmentNode,"HyperLink"),href:"javascript:mill.instantMessages.getAttachmentBody('"+this._handler+"', '"+mill.fieldValue(this.attachmentNode,"ID")+"', '"+mill.fieldValue(this.attachmentNode,"HyperLink")+"')"},this.attachment)}},buildRendering:function(){this.inherited(arguments);dojo.addClass(this.domNode,
this._isOwner?"chatMessageR":"chatMessageL")}});dojo.declare("mill._InstantMessagesConversationMessagesContainer",[dijit._Widget,dijit._Container,dijit._Templated],{templateString:dojo.cache("mill","instantMessagesConversationMessagesContainer.html",'\x3cdiv\x3e\x3cdiv class\x3d"chatContainer" dojoattachpoint\x3d"containerNode"\x3e\x3c/div\x3e\x3cspan class\x3d"chatContainerFix"\x3e\x3c/span\x3e\x3c/div\x3e')});dojo.declare("mill._InstantMessagesConversation",[mill._InstantMessagesMixin,dijit._Widget,
dijit._Contained,dijit._Templated],{baseClass:"instantMessagesConversation",templateString:dojo.cache("mill","instantMessagesConversation.html",'\x3cdiv\x3e\x3cdiv dojoattachpoint\x3d"chat" dojotype\x3d"mill._InstantMessagesConversationMessagesContainer"\x3e\x3c/div\x3e\x3cform action\x3d"${_action}" dojoattachpoint\x3d"form" enctype\x3d"multipart/form-data" method\x3d"post"\x3e\x3ctextarea class\x3d"sendMessageText" dojoattachevent\x3d"onKeyDown: _onKeyDown, onChange: _onChange, onFocus:_onFocus, onBlur: _onBlur" dojoattachpoint\x3d"editor" dojotype\x3d"dijit.form.SimpleTextarea" intermediatechanges\x3d"true" name\x3d"message"\x3e\x3c/textarea\x3e\x3cdiv class\x3d"controlsWrapper" dojoattachpoint\x3d"controls"\x3e\x3cdiv dojoattachevent\x3d"onClick: _sendMessage" dojotype\x3d"dijit.form.Button" title\x3d"${_imSendMessageTooltip}"\x3e ${_imSend} \x3c/div\x3e\x3cdiv class\x3d"icons"\x3e\x3cspan dojoattachpoint\x3d"attachmentText"\x3e\x3c/span\x3e\x3cspan dojoattachevent\x3d"onclick: _clear" dojoattachpoint\x3d"clearNode" style\x3d"display:none;cursor:pointer"\x3e \x26#160;\x26#215;\x26#160; \x3c/span\x3e\x3cdiv dojoattachevent\x3d"onClick: _attachFile" dojoattachpoint\x3d"attachFileIcon" dojotype\x3d"mill.icon" imageIndex\x3d"278"\x3e\x3c/div\x3e\x3cdiv dojoattachevent\x3d"onClick: _attachLink" dojoattachpoint\x3d"attachLinkIcon" dojotype\x3d"mill.icon" imageIndex\x3d"305"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv style\x3d"display:none"\x3e\x3cinput dojoattachevent\x3d"onchange: _fileAttached" dojoattachpoint\x3d"fileInput" name\x3d"file" type\x3d"file"\x3e\x3c/input\x3e\x3cinput dojoattachpoint\x3d"usersInput" name\x3d"users" type\x3d"text"\x3e\x3c/input\x3e\x3cinput dojoattachpoint\x3d"hyperlinkInput" name\x3d"hyperlink" type\x3d"text"\x3e\x3c/input\x3e\x3c/div\x3e\x3c/div\x3e\x3c/form\x3e\x3c/div\x3e'),
widgetsInTemplate:!0,_hyperlink:"",_imSend:"",_imSendMessageTooltip:"",_action:"",postMixInProperties:function(){this.inherited(arguments);this._imSend=dojo.i18n.getLocalization("mill","resources").imSend;this._imSendMessageTooltip=dojo.i18n.getLocalization("mill","resources").imSendMessageTooltip;this._action=mill.getRequestUrl(this._handler,"instantMessages.sendMessage.xml")},postCreate:function(){this.inherited(arguments);this.attachFileIcon.attr("imageList",this._actionsImageList);this.attachLinkIcon.attr("imageList",
this._actionsImageList);dojo.addClass(this.attachFileIcon.domNode,"dijitInline");dojo.addClass(this.attachLinkIcon.domNode,"dijitInline")},resize:function(){this.inherited(arguments);this.renderChat();dojo.marginBox(this.editor.domNode,{w:dojo.contentBox(this.getParent().domNode).w})},renderChat:function(){var c=dojo.contentBox(this.getParent().domNode).h-dojo.marginBox(this.editor.domNode).h-dojo.marginBox(this.controls).h;0<c&&(dojo.style(this.chat.domNode,{lineHeight:c+"px"}),dojo.style(this.chat.containerNode,
{maxHeight:c+"px"}),7>=dojo.isIE&&dojo.style(this.chat.containerNode,{height:this.chat.containerNode.scrollHeight>c?c+"px":"auto"}),(c=this.chat.getChildren()[this.chat.getChildren().length-1])&&dijit.scrollIntoView(c.domNode))},selectMessages:function(c){this.inherited(arguments);this._root._icon.attr("imageIndex","386");this._root._icon.startup();this.queryGetXML({url:"../"+this._handler+"/instantMessages.selectMessages.xml",content:{users:c},load:dojo.hitch(this,function(a){this._destroyChildren();
for(var b=[],e=a.childNodes[0].childNodes.length-1;0<=e;e--){var f=a.childNodes[0].childNodes[e];"imaNone"!=mill.fieldValue(f,"AttachmentType$N")&&b.push(mill.fieldValue(f,"ID"));this.chat.addChild(new mill._InstantMessagesConversationMessage({dataNode:f,multipleUsers:1<c.split(";").length}))}this.queryGetXML({url:"../"+this._handler+"/instantMessages.getAttachmentData.xml",content:{id:b.join(";")},load:dojo.hitch(this,function(g){for(var h=this.chat.getChildren(),l=g.childNodes[0].childNodes.length-
1;0<=l;l--){var m=dojo.filter(h,function(r){return mill.fieldValue(r.dataNode,"ID")==mill.fieldValue(g.childNodes[0].childNodes[l],"ID")});m[0]&&m[0].attr("attachmentNode",g.childNodes[0].childNodes[l])}this.renderChat();return g})});return a}),error:dojo.hitch(this,function(a){this._destroyChildren();return a})})},_sendMessage:function(){this.editor.attr("value").replace(/\s/g,"")&&(this.usersInput.value=this._root._dialogLayout._contactsPaneLayout._contacts._getSelectedContacts("User"),this.hyperlinkInput.value=
this._hyperlink,dojo.io.iframe.send({method:"POST",form:this.form,handleAs:"xml",handle:dojo.hitch(this,function(c,a){this.usersInput.value="";this.hyperlinkInput.value="";this.editor.attr("value","");this._clear();"error"==c.documentElement.nodeName?mill.alertError(c.documentElement):this.editor.attr("value","")&&this.selectMessages(this._root._dialogLayout._contactsPaneLayout._contacts._getSelectedContacts("User"));return c})}))},_attachFile:function(){this.fileInput.click()},_attachLink:function(){var c=
prompt(dojo.i18n.getLocalization("mill","resources").imLink,this.attr("_hyperlink"));null!==c&&(this.attachmentText.innerHTML=c?"\x3ca target\x3d'_blank' href\x3d'"+c+"'\x3e"+c+"\x3c/a\x3e":"",this.attr("_hyperlink",c),this.fileInput.value="",dojo.style(this.clearNode,{display:c?"inline":"none"}))},_fileAttached:function(){var c=this.fileInput.value.replace("C:\\fakepath\\","");this.attachmentText.innerHTML=c?c:"";this.attr("_hyperlink","");dojo.style(this.clearNode,{display:c?"inline":"none"})},
_clear:function(){this.attachmentText.innerHTML="";this.attr("_hyperlink","");this.fileInput.value="";dojo.style(this.clearNode,{display:"none"})},_onKeyDown:function(c){c.keyCode==dojo.keys.ENTER&&c.ctrlKey&&(c.preventDefault(),this._sendMessage())},_onChange:function(){dojo.style(this.editor.domNode,{backgroundColor:this.editor.attr("value").replace(/\s/g,"")?"#fff":"#a0ffa0"})},_onFocus:function(){this._root._dialog.resize()},_onBlur:function(){this._root._dialog.resize()}});dojo.declare("mill._InstantMessagesActionsToolbar",
[mill._InstantMessagesMixin,dijit._Widget,dijit.layout._ContentPaneResizeMixin,dijit._Templated],{baseClass:"actionsToolbar",templateString:dojo.cache("mill","instantMessagesActionsToolbar.html",'\x3cdiv\x3e\x3cdiv dojoattachpoint\x3d"containerNode"\x3e\x3cdiv dojoattachpoint\x3d"toolbar" dojotype\x3d"mill.ToolBarContainer" imageList\x3d"${_imageList}"\x3e\x3cdiv color\x3d"blue" dojotype\x3d"mill.ToolBarPane" style\x3d"margin:0;"\x3e\x3cdiv dojoattachevent\x3d"onClick: _queryData" dojotype\x3d"mill.ToolBarButton" imageindex\x3d"52" label\x3d"${_imRefresh}"\x3e\x3c/div\x3e\x3cdiv dojoattachevent\x3d"onClick: _queryContactsData" dojotype\x3d"mill.ToolBarButton" imageindex\x3d"52" label\x3d"${_imRefreshContacts}"\x3e\x3c/div\x3e\x3cdiv dojoattachevent\x3d"onClick: _queryMessagesData" dojotype\x3d"mill.ToolBarButton" imageindex\x3d"52" label\x3d"${_imRefreshMessages}"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv color\x3d"blue" dojotype\x3d"mill.ToolBarPane"\x3e\x3cdiv dojoattachevent\x3d"onClick: _hideDialog" dojotype\x3d"mill.ToolBarButton" imageindex\x3d"48" label\x3d"${_imClose}"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"clear"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e'),
widgetsInTemplate:!0,_imRefresh:"",_imRefreshContacts:"",_imRefreshMessages:"",_imClose:"",postMixInProperties:function(){this.inherited(arguments);this._imRefresh=dojo.i18n.getLocalization("mill","resources").imRefresh;this._imRefreshContacts=dojo.i18n.getLocalization("mill","resources").imRefreshContacts;this._imRefreshMessages=dojo.i18n.getLocalization("mill","resources").imRefreshMessages;this._imClose=dojo.i18n.getLocalization("mill","resources").imClose},_queryData:function(){this._root.queryData()},
_queryContactsData:function(){this._root.queryData("contacts")},_queryMessagesData:function(){this._root.queryData("messages")},_hideDialog:function(){this._root._dialog.hide()}});dojo.declare("mill._InstantMessagesDialogPane",[dijit.layout.ContentPane,dijit._Contained],{headerTitle:"",_headerTitleNode:"",parseOnLoad:!1,_setHeaderTitleAttr:function(c){this.headerTitle=c;this._headerTitleNode.innerHTML=this.headerTitle},buildRendering:function(){this.inherited(arguments);dojo.addClass(this.domNode,
"instantMessagesDialogPane")},postCreate:function(){this.inherited(arguments);this.headerTitle&&(this._headerTitleNode=dojo.create("div",{className:"dialogPaneHeader",innerHTML:this.headerTitle},this.domNode))},resize:function(){this.inherited(arguments);this._headerTitleNode&&dojo.marginBox(this._headerTitleNode,{w:dojo.marginBox(this.domNode).w});this._headerTitleNode&&dojo.style(this.domNode,{paddingTop:dojo.marginBox(this._headerTitleNode).h+3+"px"})}});dojo.declare("mill._InstantMessagesContactsPaneLayout",
[mill._InstantMessagesMixin,dijit.layout.BorderContainer],{style:"",_contacts:"",_pendingContacts:"",_pendingContactsPane:"",_refusedContacts:"",_refusedContactsPane:"",postMixInProperties:function(){this.inherited(arguments);this.style=dojo.delegate(dijit.layout.BorderContainer.prototype.style,{width:parseInt(.315*dojo.window.getBox().w)+"px"})},buildRendering:function(){this.inherited(arguments);this._contacts=new mill._InstantMessagesContacts;this.addChild(new mill._InstantMessagesDialogPane({region:"center",
headerTitle:dojo.i18n.getLocalization("mill","resources").imContacts,content:this._contacts}));this._pendingContacts=new mill._InstantMessagesPendingContacts;this._pendingContactsPane=new mill._InstantMessagesDialogPane({layoutPriority:"1",region:"bottom",splitter:"true",headerTitle:dojo.i18n.getLocalization("mill","resources").imPendingContacts,content:this._pendingContacts});this.addChild(this._pendingContactsPane);this._refusedContacts=new mill._InstantMessagesRefusedContacts;this._refusedContactsPane=
new mill._InstantMessagesDialogPane({layoutPriority:"0",region:"bottom",splitter:"true",headerTitle:dojo.i18n.getLocalization("mill","resources").imBlockedContacts,content:this._refusedContacts});this.addChild(this._refusedContactsPane)},startup:function(){this.inherited(arguments);dojo.addClass(this._pendingContactsPane.domNode,"hiddenPane");dojo.addClass(this._pendingContactsPane._splitterWidget.domNode,"hiddenPane");dojo.addClass(this._refusedContactsPane.domNode,"hiddenPane");dojo.addClass(this._refusedContactsPane._splitterWidget.domNode,
"hiddenPane")},_selectContacts:function(){this.queryGetXML({url:"../"+this._handler+"/instantMessages.selectContacts.xml",load:dojo.hitch(this,function(c){this._root._dialogLayout._conversation._destroyChildren();this._contacts._destroyChildren();this._pendingContacts._destroyChildren();this._refusedContacts._destroyChildren();0==dojo.filter(c.childNodes[0].childNodes,function(a){return"icsApproved"==mill.fieldValue(a,"Status$N")}).length&&dojo.hasClass(this._root._dialogLayout._searchUsersPane.domNode,
"hiddenPane")&&this._contacts._toggleUserSearchPaneView();0<dojo.filter(c.childNodes[0].childNodes,function(a){return"icsPending"==mill.fieldValue(a,"Status$N")}).length&&dojo.hasClass(this._pendingContactsPane.domNode,"hiddenPane")&&this._contacts._togglePendingAuthorization();dojo.forEach(c.childNodes[0].childNodes,dojo.hitch(this,function(a){switch(mill.fieldValue(a,"Status$N")){case "icsApproved":var b=new mill._InstantMessagesContactRow({dataNode:a});this._contacts.contactsGrid.addChild(b);mill.fieldValue(a,
"ID")==c.childNodes[0].getAttribute("lastUsed")&&(b._selectRow({}),dijit.scrollIntoView(b.domNode));break;case "icsPending":this._pendingContacts.contactsGrid.addChild(new mill._InstantMessagesContactRow({dataNode:a}));break;case "icsRefused":this._refusedContacts.contactsGrid.addChild(new mill._InstantMessagesContactRow({dataNode:a}))}}));return c}),error:dojo.hitch(this,function(c){this._root._dialogLayout._conversation._destroyChildren();this._contacts._destroyChildren();this._pendingContacts._destroyChildren();
this._refusedContacts._destroyChildren();return c})})}});dojo.declare("mill._InstantMessagesDialogLayout",[dijit.layout.BorderContainer],{_actionsToolbarPane:"",_searchUsersWidget:"",_searchUsersPane:"",_contactsPaneLayout:"",_conversation:"",style:{width:parseInt(.8*dojo.window.getBox().w)+"px",height:parseInt(.8*dojo.window.getBox().h)+"px"},buildRendering:function(){this.inherited(arguments);this._actionsToolbarPane=new mill._InstantMessagesDialogPane({region:"top",headerTitle:"\x26#160;",content:new mill._InstantMessagesActionsToolbar});
dojo.addClass(this._actionsToolbarPane.domNode,"actionsToolbarPane");this.addChild(this._actionsToolbarPane);this._searchUsersWidget=new mill._InstantMessagesSearchUsers;this._searchUsersPane=new mill._InstantMessagesDialogPane({region:"left",splitter:"true",headerTitle:dojo.i18n.getLocalization("mill","resources").imContactsSearch,content:this._searchUsersWidget});this.addChild(this._searchUsersPane);this._contactsPaneLayout=new mill._InstantMessagesContactsPaneLayout;this._contactsPaneLayout.startup();
var c=new mill._InstantMessagesDialogPane({region:"left",splitter:"true",content:this._contactsPaneLayout});dojo.addClass(c.domNode,"instantMessagesDialogContainerPane");this.addChild(c);this._conversation=new mill._InstantMessagesConversation;this.addChild(new mill._InstantMessagesDialogPane({region:"center",headerTitle:dojo.i18n.getLocalization("mill","resources").imMessages,content:this._conversation}))},resize:function(){this.inherited(arguments);dojo.style(this.domNode,{width:parseInt(.8*dojo.window.getBox().w)+
"px",height:parseInt(.8*dojo.window.getBox().h)+"px"})},startup:function(){this.inherited(arguments);dojo.addClass(this._searchUsersPane.domNode,"hiddenPane");dojo.addClass(this._searchUsersPane._splitterWidget.domNode,"hiddenPane")}});dojo.declare("mill.InstantMessages",[dijit._Widget,dijit._Templated],{templateString:"\x3cdiv title\x3d'${_imMessages}' dojoattachevent\x3d'onclick: showDialog'\x3e\x3c/div\x3e",baseClass:"instantMessages",handler:"",pollTimeout:6E4,_timestamp:"",_currentUserID:"",
_imMessages:"",_pollTimer:"",_imageList:"",_actionsImageList:"",_dialogLayout:"",_dialog:"",_icon:"",postMixInProperties:function(){this.inherited(arguments);dojo.subscribe("instantMessages/getRoot",this,function(){dojo.publish("instantMessages/getRoot/Result",[this])});this._imMessages=dojo.i18n.getLocalization("mill","resources").imMessages;this._imageList=(new mill.imageList({url:dojo.moduleUrl("mill","theme/SmallIcons.js")})).id;this._actionsImageList=new mill.imageList({url:dojo.moduleUrl("mill",
"theme/Actions.js")})},buildRendering:function(){this.inherited(arguments);this._icon=new mill.icon({imageList:this._actionsImageList,imageIndex:"386"},this.domNode.appendChild(document.createElement("div")));this._icon.startup();this._dialogLayout=new mill._InstantMessagesDialogLayout;this._dialogLayout.startup();this._dialog=new dijit.Dialog({parseOnLoad:!1,title:this._imMessages,content:this._dialogLayout,style:{visibility:"hidden"}});dojo.addClass(this._dialog.domNode,"instantMessagesDialog");
this._dialog.startup();dojo.place(this.domNode,window.document.body)},startup:function(){this.inherited(arguments);6==dojo.isIE&&dojo.connect(window,"resize",dojo.hitch(this,function(){this._dialog.resize()}));this.queryData();this._pollTimer&&clearInterval(this._pollTimer);this.attr("_pollTimer",setInterval(dojo.hitch(this,function(){this.poll()}),this.pollTimeout));setTimeout(dojo.hitch(this,function(){this.poll()}),0)},destroyRecursive:function(){clearInterval(this._pollTimer);this._dialog.destroyRecursive();
this.inherited(arguments)},_getCurrentUserInfo:function(){dojo.xhrGet({headers:{"Disable-Basic-Auth":"yes"},handleAs:"xml",preventCache:!0,url:"../"+this.handler+"/instantMessages.currentUserInfo.xml",load:dojo.hitch(this,function(c){this._currentUserID=mill.fieldValue(c.childNodes[0].childNodes[0],"ID");this._dialogLayout._actionsToolbarPane.attr("headerTitle",mill.fieldValue(c.childNodes[0].childNodes[0],"Description"));return c}),error:dojo.hitch(this,function(c){this._currentUserID="";this._dialogLayout._actionsToolbarPane.attr("headerTitle",
"\x26#160;");return c})})},showDialog:function(){this._dialog.show().always(dojo.hitch(this,function(){this._dialogLayout._layoutChildren();this._dialogLayout.resize();this._dialogLayout.layout();this._dialog._size();this._dialog._position();dojo.style(this._dialog.domNode,{visibility:"visible"})}));this._icon.attr("imageIndex","386");this._icon.startup()},queryData:function(c){switch(c){case "contacts":this._dialogLayout._contactsPaneLayout._selectContacts();break;case "messages":this._dialogLayout._conversation.selectMessages(this._dialogLayout._contactsPaneLayout._contacts._getSelectedContacts("User"));
break;default:this._getCurrentUserInfo(),this._dialogLayout._searchUsersWidget._searchUsers(),this._dialogLayout._contactsPaneLayout._selectContacts()}},poll:function(){dojo.xhrGet({headers:{"Disable-Basic-Auth":"yes"},handleAs:"xml",preventCache:!0,url:"../"+this.handler+"/instantMessages.checkEvents.xml",content:{timestamp:this._timestamp},load:dojo.hitch(this,function(c){this._timestamp=c.childNodes[0].getAttribute("timestamp");0<c.childNodes[0].childNodes[0].childNodes.length&&this._dialogLayout._contactsPaneLayout._selectContacts();
var a=this._dialog.open;dojo.forEach(c.childNodes[0].childNodes[1].childNodes,dojo.hitch(this,function(b){var e=dojo.filter(this._dialogLayout._contactsPaneLayout._contacts.contactsGrid.getChildren(),dojo.hitch(this,function(f){return(!f.attr("isSelected")||!this._dialog.attr("open"))&&mill.fieldValue(f.dataNode,"User")==mill.fieldValue(b,"Owner")}));!a&&e[0]&&(new mill.InstantMessagesNotification({contactRow:e[0]})).startup();dojo.filter(this._dialogLayout._contactsPaneLayout._contacts.contactsGrid.getChildren(),
dojo.hitch(this,function(f){return f.attr("isSelected")&&mill.fieldValue(f.dataNode,"User")==mill.fieldValue(b,"Owner")}))[0]&&this._dialogLayout._conversation.selectMessages(this._dialogLayout._contactsPaneLayout._contacts._getSelectedContacts("User"));e[0]&&(this._icon.attr("imageIndex","387"),this._icon.startup())}));return c})})}});dojo.declare("mill.InstantMessagesNotification",[mill._InstantMessagesMixin,dijit._Widget,dijit._Templated],{baseClass:"instantMessagesNotification",templateString:dojo.cache("mill",
"instantMessagesNotification.html",'\x3cdiv dojoattachevent\x3d"onclick: _onClick"\x3e\x3cdiv\x3e\x3cb\x3e\x3cspan\x3e${_imNewMessageReceived}\x3c/span\x3e\x3c/b\x3e\x3c/div\x3e\x3cdiv\x3e ${_userName} \x3c/div\x3e\x3c/div\x3e'),contactRow:"",_imNewMessageReceived:"",_userName:"",constructor:function(){dojo.forEach(dojo.query(".instantMessagesNotification"),function(c){dijit.byNode(c).destroyRecursive()})},postMixInProperties:function(){this.inherited(arguments);this._userName=this.contactRow._dataNodeDescription;
this._imNewMessageReceived=dojo.i18n.getLocalization("mill","resources").imNewMessageReceived},buildRendering:function(){this.inherited(arguments);dojo.place(this.domNode,window.document.body)},startup:function(){this.inherited(arguments);mill.beep.instantMessage();setTimeout(dojo.hitch(this,this.destroyRecursive),3E4)},_onClick:function(){this._root.showDialog();!this.contactRow.attr("isSelected")&&this.contactRow._selectRow({});this.destroyRecursive()}})})},"mill/jssupport/layout/LayoutContainer":function(){define("dojo/_base/declare dijit/_WidgetBase dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dojo/text!mill/jssupport/layout/layoutContainer.html dijit/layout/BorderContainer dijit/layout/ContentPane mill/jssupport/TranslatableNode".split(" "),
function(c,a,b,e,f){return mill.registerAlias("office.layout.LayoutContainer",c("mill.jssupport.layout.LayoutContainer",[a,b,e],{baseClass:"officeLayout",templateString:f,socialNetwork:""}))})},"mill/jssupport/layout/_LayoutMixin":function(){define(["dojo/_base/declare","dojo/dom-class"],function(c,a){return mill.registerAlias("office.layout._LayoutMixin",c("mill.jssupport.layout._LayoutMixin",null,{hideOnDesktop:null,hideOnPad:null,hideOnMobile:null,underline:null,underlineToLeft:null,_setHideOnDesktopAttr:function(b){(this.hideOnDesktop=
!0===b||"true"===b||"1"===b)?a.add(this.domNode,"hide-on-desktop"):a.remove(this.domNode,"hide-on-desktop")},_setHideOnPadAttr:function(b){(this.hideOnPad=!0===b||"true"===b||"1"===b)?a.add(this.domNode,"hide-on-pad"):a.remove(this.domNode,"hide-on-pad")},_setHideOnMobileAttr:function(b){(this.hideOnMobile=!0===b||"true"===b||"1"===b)?a.add(this.domNode,"hide-on-mobile"):a.remove(this.domNode,"hide-on-mobile")},_setUnderlineAttr:function(b){(this.underline=!0===b||"true"===b||"1"===b)?a.add(this.domNode,
"layout-underline"):a.remove(this.domNode,"layout-underline")},_setUnderlineToLeftAttr:function(b){(this.underlineToLeft=!0===b||"true"===b||"1"===b)?a.add(this.domNode,"layout-underline-to-left"):a.remove(this.domNode,"layout-underline-to-left")}}))})},"mill/jssupport/form/_RequiredFieldMixin":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/_base/array"],function(c,a,b){return mill.registerAlias("office.form._RequiredWidgetMixin",c("mill.jssupport.form._RequiredWidgetMixin",null,
{required:null,_requiredSymbol:"\x3cspan class\x3d'red'\x3e*\x3c/span\x3e",_setRequiredAttr:function(e){this.controlNode.set("required",this.required=e);e=this.get("text");if(a.isObject(e)){var f=b.filter(e.RU.split(";"),function(g){return g!==this._requiredSymbol},this);this.required&&f.push(this._requiredSymbol);e.RU=f.join(";");f=b.filter(e.EN.split(";"),function(g){return g!==this._requiredSymbol},this);this.required&&f.push(this._requiredSymbol);e.EN=f.join(";");!this.required&&this.controlNode&&
this.controlNode.validate();this.set("text",e)}else e&&(f=b.filter(e.split(";"),function(g){return g!==this._requiredSymbol},this),this.required?f.push(this._requiredSymbol):this.controlNode&&this.controlNode.validate(),this.set("text",f.join(";")))}}))})},"mill/jssupport/form/CheckBoxField":function(){define("dojo/_base/declare dojo/query dojo/dom-class dojo/dom-construct dojo/dom-style dijit/_WidgetBase dijit/form/CheckBox dojo/text!mill/jssupport/form/checkBoxField.html dojo/text!mill/jssupport/form/checkBoxDblClnField.html mill/jssupport/form/_FieldMixin mill/jssupport/form/_RequiredFieldMixin".split(" "),
function(c,a,b,e,f,g,h,l,m,r,n){c("office.form.CheckBoxWidget",[h],{required:null,_savedValue:null,_changed:null,_savedLabelFor:null,validate:function(){return!this.get("required")||this.get("required")&&this.get("checked")},hideForValue:function(k){if(k||"boolean"===typeof k)k=!0===k||"1"===k,null!==this._savedValue&&(this._changed=k!==this._savedValue),this._savedValue=k;this.set("checked",this._savedValue);e.destroy(this._savedValueNode);this._savedValueNode=e.create("span",{className:"dim bold "+
(this._savedValue?"icon-set-checkbox-checked":"icon-set-checkbox-unchecked"),style:"padding-right: 6px"},this.domNode.parentNode,"first");f.set(this.domNode,{display:"none"});if(k=a("label",this.domNode.parentNode)[0])this._savedLabelFor=k.getAttribute("for"),k.removeAttribute("for");this._changed&&k&&b.add(k,["blue","italic"])},unhideForValue:function(){e.destroy(this._savedValueNode);f.set(this.domNode,{display:"inline-block"});var k=a("label",this.domNode.parentNode)[0];k&&k.setAttribute("for",
this._savedLabelFor)}});return mill.registerAlias("office.form.CheckBoxField",c("mill.jssupport.form.CheckBoxField",[g,r,n],{doubleColumn:!0,type:"checkbox",disabled:null,observer:null,postMixInProperties:function(){this.inherited(arguments);this.doubleColumn||(this.hideTextColumn=!0);this.templateString=this.doubleColumn?m:l},_setDisabledAttr:function(k){this.controlNode.set("disabled",this.disabled=k)}}))})},"mill/managementConsole":function(){define("mill/mill mill/imageList mill/icon dijit/layout/BorderContainer dijit/layout/ContentPane dijit/layout/_ContentPaneResizeMixin".split(" "),
function(){dojo.declare("mill._managementConsoleBarMixin",null,{imageList:null,imageIndex:"",widgetsInTemplate:!0,showButton:!0,colorLetter:"b",managementConsoleRootBarImageList:function(){var c=mill["managementConsoleRootBarImageList"+this.colorLetter];if(!c){c=new mill.imageList({definition:{".filename":dojo.moduleUrl("mill","managementConsole"+this.colorLetter+".png"),".width":28,".height":48,".perrow":1}});var a={};a["managementConsoleRootBarImageList"+this.colorLetter]=c;dojo.mixin(mill,a)}return c},
startup:function(){this.inherited(arguments);this.render()},contentClick:function(){}});dojo.declare("mill.managementConsoleRootBar",[dijit._Widget,dijit._Templated,mill._managementConsoleBarMixin],{templateString:dojo.cache("mill","managementConsoleRootBar.html",'\x3cdiv class\x3d"managementConsoleRootBar"\x3e\x3cdiv class\x3d"managementConsoleRootBarBackground managementConsoleRootBarBackgroundLeft" dojoAttachPoint\x3d"backgroundLeftNode" dojoType\x3d"mill.icon" imageIndex\x3d"0"\x3e\x3c/div\x3e\x3cdiv class\x3d"managementConsoleRootBarBackground managementConsoleRootBarBackgroundCenter" dojoAttachPoint\x3d"backgroundCenterNode"\x3e\x3c/div\x3e\x3cdiv class\x3d"managementConsoleRootBarBackground managementConsoleRootBarBackgroundRight" dojoAttachPoint\x3d"backgroundRightNode" dojoType\x3d"mill.icon" imageIndex\x3d"2"\x3e\x3c/div\x3e\x3cdiv class\x3d"managementConsoleRootBarButton" dojoAttachEvent\x3d"onClick: contentClick" dojoAttachPoint\x3d"buttonNode" dojoType\x3d"mill.icon"\x3e\x3c/div\x3e\x3cdiv class\x3d"managementConsoleRootBarIcon" dojoAttachEvent\x3d"onClick: contentClick" dojoAttachPoint\x3d"icon" dojoType\x3d"mill.icon"\x3e\x3c/div\x3e\x3cdiv class\x3d"managementConsoleRootBarContainer" dojoAttachEvent\x3d"onclick: contentClick" dojoAttachPoint\x3d"containerNode"\x3e\x3c/div\x3e\x3c/div\x3e'),
_expandedButtonIndex:4,_collapsedButtonIndex:3,render:function(){mill.enqueueRender(this)},_render:function(){this.imageList&&(this.icon.domNode.style.top=Math.floor((48-this.imageList.height)/2)+"px",this.icon.imageList=this.imageList,this.icon.imageIndex=this.imageIndex,this.icon.render());this.backgroundLeftNode.imageList=this.managementConsoleRootBarImageList();this.backgroundLeftNode.render();this.backgroundRightNode.imageList=this.managementConsoleRootBarImageList();this.backgroundRightNode.render();
this.showButton&&(this.buttonNode.imageList=this.managementConsoleRootBarImageList(),this.buttonNode.render());var c=this.domNode.offsetWidth-28-28+1;this.backgroundCenterNode.style.width=(0<c?c:0)+"px";this.backgroundCenterNode.style.backgroundImage="url("+this.managementConsoleRootBarImageList().imageUrl+")";c=this.domNode.offsetWidth-8-28-28-8-this.icon.domNode.offsetWidth;this.containerNode.style.width=(0<c?c:0)+"px";this.containerNode.style.top=Math.floor((48-this.containerNode.offsetHeight)/
2)+"px"}});dojo.declare("mill.managementConsoleBar",[dijit._Widget,dijit._Templated,mill._managementConsoleBarMixin],{templateString:dojo.cache("mill","managementConsoleBar.html",'\x3cdiv class\x3d"managementConsoleBar"\x3e\x3cdiv class\x3d"managementConsoleBarButton" dojoAttachEvent\x3d"onClick: contentClick" dojoAttachPoint\x3d"buttonNode" dojoType\x3d"mill.icon"\x3e\x3c/div\x3e\x3cdiv class\x3d"managementConsoleBarIcon" dojoAttachEvent\x3d"onClick: contentClick" dojoAttachPoint\x3d"icon" dojoType\x3d"mill.icon"\x3e\x3c/div\x3e\x3cdiv class\x3d"managementConsoleBarContainer" dojoAttachEvent\x3d"onclick: contentClick" dojoAttachPoint\x3d"containerNode"\x3e\x3c/div\x3e\x3c/div\x3e'),
_expandedButtonIndex:6,_collapsedButtonIndex:5,render:function(){mill.enqueueRender(this)},_render:function(){this.imageList&&(this.icon.domNode.style.top=Math.floor((48-this.imageList.height)/2)+"px",this.icon.imageList=this.imageList,this.icon.imageIndex=this.imageIndex,this.icon.render());this.showButton&&(this.buttonNode.imageList=this.managementConsoleRootBarImageList(),this.buttonNode.render());var c=this.domNode.offsetWidth-8-28-28-28-8-this.icon.domNode.offsetWidth;0<c&&(this.containerNode.style.width=
c+"px");this.containerNode.style.top=Math.floor((48-this.containerNode.offsetHeight)/2)+"px"}});dojo.declare("mill.managementConsole",[dijit.layout.ContentPane],{imageList:null,colorLetter:"b",items:null,constructor:function(){this.inherited(arguments);this.items=[]},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onscroll","render")},render:function(){mill.enqueueRender(this)},_render:function(){dojo.forEach(this.items,function(c){c.render()});6>=dojo.isIE||(this.domNode.style.backgroundImage=
"url("+dojo.moduleUrl("mill","managementConsoleBackground.png")+")",this.domNode.style.backgroundRepeat="repeat-x",this.domNode.style.backgroundSize="contain",this.domNode.style.backgroundColor="#FEFEFD");dojo.style(this.domNode,{"-webkit-overflow-scrolling":"touch"})},resize:function(){this.inherited(arguments);this.render()}});dojo.declare("mill.managementConsoleItem",[dijit._Widget],{imageList:null,imageIndex:"",barNode:null,bar:null,parent:null,console:null,level:0,expanded:!0,showButton:!0,colorLetter:"",
attributeMap:dojo.delegate(dijit._WidgetBase,{expanded:""}),_setExpandedAttr:function(c){this.showButton&&(this.expanded=c,this.domNode.style.display=this.expanded?"":"none",this.bar&&this.bar.buttonNode.set("imageIndex",this.expanded?this.bar._expandedButtonIndex:this.bar._collapsedButtonIndex),this.console&&this.console.render())},toggle:function(){this._setExpandedAttr(!this.expanded)},startup:function(){this.inherited(arguments);this.parent=dijit.byNode(this.domNode.parentNode);for(var c=this.parent.domNode,
a=dijit.byNode(c);a&&c&&!a.isInstanceOf(mill.managementConsole);)a=(c=c.parentNode)?dijit.byNode(c):null,this.level++;this.console=a;this.console.items.push(this);this.colorLetter=this.colorLetter||this.console.colorLetter;this.barNode=document.createElement("div");this.parent.domNode.insertBefore(this.barNode,this.domNode);c=!1;for(a=this.domNode.childNodes.length-1;0<=a;a--){var b=this.domNode.childNodes[a],e=1==b.nodeType?dijit.byNode(b):null;e&&e.isInstanceOf(mill.managementConsoleItem)?c=!0:
this.barNode.insertBefore(b,this.barNode.firstChild)}c||this.parent.isInstanceOf(mill.managementConsole)||this.imageIndex?(this.bar=new (this.parent.isInstanceOf(mill.managementConsole)?mill.managementConsoleRootBar:mill.managementConsoleBar)({imageIndex:this.imageIndex,imageList:this.imageList||this.console.imageList,showButton:this.showButton,colorLetter:this.colorLetter},this.barNode),this.bar.domNode.style.marginLeft=24*this.level+"px",this.bar.render(),c?this.bar.contentClick=dojo.hitch(this,
this.toggle):(this.bar.buttonNode.set("visible",!1),dojo.addClass(this.bar.containerNode,"managementConsoleContent")),this.barNode=this.bar.domNode):(dojo.addClass(this.barNode,"managementConsoleContent"),this.barNode.style.marginLeft=24+24*this.level+"px");this._setExpandedAttr(this.expanded)},render:function(){this.bar&&this.bar.render()}})})},"mill/jssupport/base":function(){define("dojo/_base/lang dojo/_base/array dojo/io-query dojo/query dojo/dom-attr dojo/topic dojo/cookie dojo/hash dojo/router dojo/Deferred dojo/DeferredList dojo/i18n!mill/nls/resources mill/jssupport/base mill/jssupport/session mill/jssupport/gdpr mill/jssupport/StoreData mill/mill".split(" "),
function(c,a,b,e,f,g,h,l,m,r,n,k,p,q,u,y,v){window.base||(window.base={});return window.base=c.mixin(window.base,{locale:dojo.locale.toLowerCase().match(/^ru/)?"RU":"EN",anonymousHandler:null,mainHandler:null,accessCategory:null,admissionYear:null,checkGDPR:u,deferredActionQuery:!1,maxDocCopySize:null,fileMaxSizeOptionName:null,optionsNameArray:null,optionsValue:null,rtti:null,queryString:null,regDepartment:null,timeLineName:null,registrationPDConfirmText:null,registrationPDAddConfirmText:null,registrationAccuracyConfirmText:null,
registrationRequestTimePoint:null,registerHandler:null,registrationRequestClass:null,countryPhoneCodeData:null,_localizationCache:null,_getLocalizationErrorsCache:null,_internetResourcesCache:null,_preventLoadData:!1,logError:function(t){v.fieldValue(v.fieldValue(window,"console"),"error").call(null,t)},getLocalization:function(t,x){var z=b.queryToObject(document.location.search.substring(1)),A=this._getLocalizationErrorsCache||(this._getLocalizationErrorsCache={}),E=this._localizationCache||(this._localizationCache=
{}),I=(x||this.locale).toUpperCase(),H=null,L=!1;if(!t)return"";Object.prototype.hasOwnProperty.call(E,I)&&(E=E[I],Object.prototype.hasOwnProperty.call(E,t)&&(H=E[t]||""));null===H&&t.match(/[A-Za-z]/)&&!A[t]&&/\w+\.\w+/gi.test(t)&&!/\.Example$/.test(t)&&"\x3cspan class\x3d'red'\x3e*\x3c/span\x3e"!==t&&(A[t]=!0,this.logError(k.unableToGetTranslationForIdentifier+" "+t));Object.prototype.hasOwnProperty.call(z,"show_resource_idents")&&(L="true"===z.show_resource_idents||"1"===z.show_resource_idents);
return L?null!==H?t+": "+H:"":H},processInternetResources:function(t){function x(I,H){I&&(f.set(H,"href",I),f.get(H,"target")||f.set(H,"target",I.match(/^http/)||I.match(/^www/)?"_blank":"_self"));f.remove(H,"ir")}for(var z in this._internetResourcesCache)if(Object.prototype.hasOwnProperty.call(this._internetResourcesCache,z)){var A=this._internetResourcesCache[z]||"",E=e("a[ir\x3d'"+z+"']",t||null);a.forEach(E,x.bind(this,A))}},getInternetResource:function(t){return this._internetResourcesCache&&
c.isObject(this._internetResourcesCache)&&Object.prototype.hasOwnProperty.call(this._internetResourcesCache,t)?this._internetResourcesCache[t]||"":""},registerMenuItem:function(t){c.mixin(t,{layoutItem:null,mobileItem:null});t.preventMenuItem||g.publish("office.layout.LayoutMenu.registerItem",t);g.publish("office.layout.MobileMenu.registerItem",t);return t},logout:function(){(this.session||v.session).logout(!0).then(function(){document.location=""})},domainStore:function(t,x,z,A,E,I,H,L,B){x=[{part:0,
name:"ID"},{part:1,name:x,special:"4",context:z||null}].concat(L||[]);if(c.isObject(A)&&null!==A)for(z=0;z<A.length;z++)x.push({part:0,name:A[z]});else c.isString(A)?x.push({part:0,name:A}):x.push({part:0,name:"Description"},{part:0,name:"EngDescription"});if(c.isObject(E)&&null!==E)for(A=0;A<E.length;A++)x.push({part:2,name:E[A]});else c.isString(E)&&x.push({part:2,name:E});if(c.isObject(I)&&null!==I)for(A=0;A<I.length;A++)x.push({part:3,name:I[A]});else c.isString(I)&&x.push({part:3,name:I});return new vuz.storeData({handler:B||
this.mainHandler,className:t,request:x,doTranslate:"boolean"===typeof H?H:!1,clientFiltering:!E})},enumerationStore:function(t,x,z){c.isArray(t)&&(t=t.join(";"));t=[{part:0,name:"ID"},{part:0,name:"Name"},{part:0,name:"Description"},{part:1,name:"Master$N",value:t},{part:2,name:"Position"}];c.isArray(z)&&(t=t.concat(z));return new vuz.storeData({className:"TEnumerationItem",handler:this.mainHandler,clientFiltering:"boolean"===typeof x?x:!1,request:t})},downloadBlob:function(t,x,z,A,E){require(["mill/mill"],
c.hitch(this,function(I){I.downloadBlob({handler:this.mainHandler||(window.app?window.app.handler:""),className:t,propName:x,ID:z,fileName:A||null,extension:E||null})}))},getMaxDocCopySize:function(){var t=new r;require(["dojo/request","mill/mill"],c.hitch(this,function(x,z){this.fileMaxSizeOptionName||(this.maxDocCopySize=10);this.maxDocCopySize?t.resolve(this.maxDocCopySize):x(z.getRequestUrl(this.mainHandler,"execute.xml"),{headers:{"Disable-Basic-Auth":"yes"},method:"POST",handleAs:"xml",sync:!1,
preventCache:!0,data:z.buildQueryParams({className:"TModerationRequest",methodName:"GetOptionIntValue",params:{OptionName:this.fileMaxSizeOptionName}})}).then(function(A){z.parseErrorMessage(A)&&t.reject(A);t.resolve(this.maxDocCopySize=z.fieldValue(A.documentElement.childNodes[0],"Result"))}.bind(this),t.reject)}));return t.promise},getOptionsValue:function(){var t=new r,x=[];if(!c.isArray(this.optionsNameArray)||null!==this.optionsValue)return t.resolve(),t.promise;require(["dojo/request","mill/mill"],
function(z,A){var E=c.hitch(this,function(I){var H=new r;z(A.getRequestUrl(this.mainHandler,"execute.xml"),{headers:{"Disable-Basic-Auth":"yes"},method:"POST",handleAs:"xml",sync:!1,preventCache:!0,data:A.buildQueryParams({className:"TModerationRequest",methodName:"GetOptionStrValue",params:{OptionName:I}})}).then(function(L){A.parseErrorMessage(L)&&H.reject(L);this.optionsValue||(this.optionsValue={});this.optionsValue[I]=A.fieldValue(L.documentElement.childNodes[0],"Result");H.resolve()}.bind(this),
H.reject);return H.promise});a.forEach(this.optionsNameArray,function(I){x.push(E(I))},this);(new n(x)).then(t.resolve,t.reject)}.bind(this));return t.promise},getStartupRoute:function(){return""},_loadData:function(){var t=new r;require("dojo/_base/fx dojo/fx dojo/when dojo/dom-style dojo/cookie dijit/registry mill/mill mill/jssupport/session".split(" "),c.hitch(this,function(x,z,A,E,I,H,L){this.session.hasRemoteUser()&&this.session.checkRemoteUserAccessCategory(this.accessCategory)&&!this._preventLoadData&&
(this._preventLoadData=!0,L.batch({handler:this.mainHandler,language:this.locale,queries:this._batchQuery()}).then(c.hitch(this,function(B){try{this._loadTCommonStudent(B.documentElement.childNodes[0],B.documentElement.childNodes[1]);this._loadTPresonalDataRequest(B.documentElement.childNodes[2]);var D=this.loadData(B);A(D,function(){var K=H.byId("external"),M=H.byId("internal"),R=H.byId("mobileMenu");z.chain([x.fadeOut({node:K.domNode,onEnd:function(){K.destroyRecursive();R&&R.set("state","internal-state");
var Q=this.getStartupRoute()||l(),T="startup";a.forEach(m._routes,function(U){U.route.test(Q)&&1<U.callbackQueue.length&&(T=Q)});setTimeout(function(){m.go(T)},500)}.bind(this)}),x.fadeIn({node:M.domNode,delay:1E3,onBegin:function(){E.set(M.domNode,{display:"block"});g.publish("vuz.onLoad")},onEnd:t.resolve})]).play()}.bind(this))}catch(K){window.base.session.logout(!0),window.base._preventLoadData=!1,t.reject(K)}}),function(B){this.session.logout(!0);this._preventLoadData=!1;t.reject(B)}.bind(this)))}));
return t.promise},translate:function(t){var x=new r;if(!t||this._localizationCache[t.toUpperCase()])return this.locale=(t||this.locale).toUpperCase(),this.checkGDPR(),require(["dojo/cookie"],function(){(this.session||v.session).hasRemoteUser()?(this.session||v.session).setValue("RemoteUserLocale",this.locale,!0).then(function(){v.setPropValue({headers:{"Disable-Basic-Auth":"yes"},handler:this.mainHandler||(window.application?window.app.handler:""),className:"TRemoteUser",propName:"Locale",ID:v.session.getRemoteUserID(),
value:this.locale,sync:!1});this.updateDocumentTitle();g.publish("office._TranslationMixin.translate");x.resolve()}.bind(this),x.reject):(g.publish("office._TranslationMixin.translate"),x.resolve())}.bind(this)),x.promise},escapeSpaces:function(t){return"string"===typeof t?t.replace(/^\s\s*/,"").replace(/\s\s*$/,""):t},secondNameToLowerCase:function(t){var x="";t=t.trim().replace(/(^\s+|\s+$)|\s\s+/g," ");for(var z=null,A=0;A<t.length;A++)x=z?x+(" "!==z&&"-"!==z?t.charAt(A).toLowerCase():t.charAt(A)):
x+t.charAt(A).toUpperCase(),z=t.charAt(A);["\u043a\u044b\u0437\u044b","\u043e\u0433\u043b\u044b"].forEach(function(E){x=x.replace(new RegExp("\\s"+E,"gi")," "+E.toLowerCase());x=x.replace(new RegExp("-"+E,"gi"),"-"+E.toLowerCase())});return x}})})},"mill/jssupport/layout/LayoutOverlay":function(){define(["dojo/_base/declare","dojo/dom-style","dijit/_WidgetBase","dijit/_TemplatedMixin"],function(c,a,b,e){return mill.registerAlias("office.layout.LayoutOverlay",c("mill.jssupport.layout.LayoutOverlay",
[b,e],{baseClass:"officeLayoutOverlay",templateString:"\x3cdiv data-dojo-attach-event\x3d'onclick: onClick'\x3e\x3cdiv",opacity:.7,onClick:new Function,show:function(){a.set(this.domNode,{visibility:"visible",opacity:this.opacity})},hide:function(){a.set(this.domNode,{visibility:"hidden",opacity:"0"})},toggleView:function(){"visible"===a.get(this.domNode).visibility?this.hide():this.show()}}))})},"mill/dataBrowser/rtti":function(){define(["dojo/DeferredList","mill/mill"],function(){mill.dataBrowser||
(mill.dataBrowser={});dojo.declare("mill.dataBrowser.rtti",null,{handle:null,constructor:function(c){dojo.mixin(this,c)},data:null,byHandle:function(c){var a=dojo.filter(this.data,function(b){return b.handle==c});return a.length?a[0].data:null},get:function(c,a,b){if(a=dojo.filter(this.byHandle(c)||[],this.comparer(a,b))[0])a.handle=c;return a},getAll:function(c,a,b){a=dojo.filter(this.byHandle(c)||[],this.comparer(a,b));dojo.forEach(a,function(e){e.handle=c});return a},getDomain:function(c,a){return this.get("TBlobDomain",
c,a)||this.get("TBooleanDomain",c,a)||this.get("TClassDomain",c,a)||this.get("TDateDomain",c,a)||this.get("TDateTimeDomain",c,a)||this.get("TEnumerationDomain",c,a)||this.get("TFloatDomain",c,a)||this.get("TIntegerDomain",c,a)||this.get("TInt64Domain",c,a)||this.get("TStringDomain",c,a)||this.get("TFileNameDomain",c,a)||this.get("TFolderNameDomain",c,a)||this.get("TTimeDomain",c,a)||this.get("TExternalDataDomain",c,a)},getRoutine:function(c){return this.get("TRoutine",c,null)||this.get("TExcelTemplate",
c,null)||this.get("TMethod",c,null)||this.get("TCursor",c,null)||this.get("TOleObjectMethod",c,null)||this.get("TPDFTemplate",c,null)||this.get("TWordTemplate",c,null)||this.get("TXSLTTemplate",c,null)||this.get("TSpreadsheetTemplate",c,null)||this.get("TWordprocessingTemplate",c,null)},listParameters:function(c){var a=this.byHandle("TParameter"),b=this.getRoutine(c);c=this.byHandle(b.handle);for(var e=[],f=this.get("TClass",b.Master);f;)e=e.concat(dojo.filter(c,function(l){return l.Master==f.ID&&
l.Name==b.Name})),f=this.get("TClass",f.Parent);for(var g=[],h=e.length-1;0<=h;h--)dojo.forEach(dojo.filter(a,function(l){return l.Master==e[h].ID}),function(l){for(var m=!1,r=0;r<g.length;r++)l.Name==g[r].Name&&(g[r]=l,m=!0);m||g.push(l)});return g},comparer:function(c,a){return c?function(b){return b.ID==c}:function(b){return b.Name==a}},load:function(){return dojo.xhrGet({handleAs:"json",sync:!1,url:"/"+this.handle+"/rtti.js",load:dojo.hitch(this,function(c){this.data=c;strings=[];for(var a=this.data.length-
1;0<=a;a--)dojo.isArray(this.data[a])&&(strings=strings.concat(this.data.splice(a,1)[0]));dojo.forEach(this.data,function(b){var e=b.strings,f=b.map||null;f?dojo.forEach(b.data,function(g){dojo.forEach(f,function(h,l){var m=g[l];g[h]=m?e?strings[m]:m:null})}):e&&dojo.forEach(b.data,function(g){for(var h in g){var l=g[h];g[h]=l?strings[l]:null}})});return c})})},domainStore:function(c,a){if("TClassDomain"==c.handle){var b=this.get("TClass",c.ClassOfDomain),e=[{part:0,name:"ID"}];c.FilterCondition&&
e.push({part:1,name:c.ID,special:"4",context:a||null});var f="soName"==this.get("TEnumerationItem",c.ShowObjectInfoType).Name?"Name":"Description";e.push({part:0,name:f});e.push({part:2,name:f});return new mill.data({className:b.Name,handler:this.handle,clientFiltering:!0,request:e})}return null}})})},"mill/jssupport/layout/carouselView/CarouselViewSlideBreadcrumbs":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/dom-class dojo/dom-construct dojo/dom-style dojo/query dojo/on dijit/registry dijit/_WidgetBase dijit/_Container dijit/_TemplatedMixin dijit/_CssStateMixin dojo/text!mill/jssupport/layout/carouselView/carouselViewSlideBreadcrumbs.html dojo/text!mill/jssupport/layout/carouselView/carouselViewSlideBreadcrumbsItem.html mill/jssupport/base mill/jssupport/jsApplication/controlSet/ControlSet mill/mill".split(" "),
function(c,a,b,e,f,g,h,l,m,r,n,k,p,q,u,y,v,t){var x=c("office.layout.CarouselViewSlideBreadcrumbsItem",[r,k,p],{baseClass:"officeCarouselViewSlideBreadcrumbsItem",templateString:u,controlSetGroup:null,selected:null,isFilled:null,index:null,title:null,message:null,disabled:null,titleNode:null,messageNode:null,attributeMap:{title:{node:"titleNode",type:"innerHTML"},message:{node:"messageNode",type:"innerHTML"}},postMixInProperties:function(){this.inherited(arguments);this.message=this.title="";window.hasOwnProperty("app")&&
(this.title=y.getLocalization("Office.Step")+" "+String(this.index)+". "+(window.app.getTranslation(this.controlSetGroup.titleIdent)||this.controlSetGroup.description));this.controlSetGroup.isRequired&&(this.title+="\x26#160;\x3cspan class\x3d'red'\x3e*\x3c/span\x3e",this.state=this.controlSetGroup.isRequired?"Required":null)},startup:function(){this.inherited(arguments);this.init()},init:function(){this.controlSetGroup.set("breadcrumbs",this.getParent());this.controlSetGroup.set("breadcrumbItem",
this);this.initControlSetGroupVisibility();this.initState()},initControlSetGroupVisibility:function(){var z=m.byId("main");z&&z.hasOwnProperty("contentPane")&&z.contentPane.domNode.scrollTo(0,0);e[this.selected?"remove":"add"](this.controlSetGroup.domNode,"hide-on-all")},initState:function(){var z=this.controlSetGroup,A=this.controlSetGroup.getIsAvail(),E=!A,I;null!==A&&a.isObject(A)&&(E=!t.fieldValue(A,"value"),A=t.fieldValue(A,"tooltips"),a.isArray(A)&&(I="\x3cdiv\x3e"+window.app.getTranslation("SubsetDisabledReasons")+
":\x3c/div\x3e\x3cul\x3e"+b.map(A,function(H){return"\x3cli\x3e"+H+"\x3c/li\x3e"})+"\x3c/ul\x3e"));this.set("disabled",E);E&&I?this.set("message",I):E||(this.set("message",""),this.isFilled=e.contains(z.domNode,"notChangeMode"),E=null,z.hasOwnProperty("contentFormWrapper")&&(E=e.contains(z.contentFormWrapper,"officeFormContentFormWrapperInvalid")||!!h(".officeFormContentFormWrapperInvalid",z.contentFormWrapper).length),e[!0===E?"add":"remove"](this.domNode,"officeCarouselViewSlideBreadcrumbsItemIsInvalid"),
e[!E&&this.isFilled?"add":"remove"](this.domNode,"officeCarouselViewSlideBreadcrumbsItemIsFilled"))},onClick:function(){this.getParent().selectBreadcrumb(this)}});return t.registerAlias("office.layout.CarouselViewSlideBreadcrumbs",c("mill.jssupport.layout.carouselView.CarouselViewSlideBreadcrumbs",[r,n,k],{baseClass:"officeCarouselViewSlideBreadcrumbs",templateString:q,refSlideContent:null,initialInitialized:null,_getControlSetGroupsAttr:function(){return function(){if(window.hasOwnProperty("app")){for(var z=
this.refSlideContent;z&&z.getChildren()&&!z.isInstanceOf(v);)z=z.getChildren()[0];return z&&a.isObject(z)&&a.isFunction(z.getChildren)?z.getChildren():[]}}}(),init:function(){if(!this.initialInitialized){this.initialInitialized=!0;var z=this.get("controlSetGroups");z.length&&(b.forEach(z,function(A,E){this.addChild(new x({controlSetGroup:A,selected:0===E,index:E+1}))},this),z=f.create("div",{innerHTML:"\u0428\u0430\u0433\u0438",className:"officeBreadcrumbsMobileIcon"},this.domNode),l(z,"click",function(){g.set(this.domNode,
{left:"0"})}.bind(this)),z=f.create("div",{innerHTML:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c",className:"officeBreadcrumbsMobileCloseIcon"},this.domNode),l(z,"click",function(){g.set(this.domNode,{left:"100%"})}.bind(this)))}},initItemsState:function(){b.forEach(this.getChildren(),function(z){z.initState()})},selectBreadcrumb:function(z){z&&!z.disabled&&(b.forEach(this.getChildren(),function(A){A!==z&&A.get("selected")&&(A.set("selected",!1),A.initControlSetGroupVisibility())}),z.set("selected",
!0),z.initControlSetGroupVisibility(),g.set(this.domNode,{left:"100%"}))},nextItem:function(){var z=b.filter(this.getChildren(),function(I){return I.get("selected")})[0],A=t.fieldValue(z,"index"),E=null;b.forEach(this.getChildren(),function(I){var H=I.controlSetGroup.getIsAvail(),L=!!H;null!==H&&a.isObject(H)&&(L=!!t.fieldValue(H,"value"));null===E&&I.get("index")>A&&!I.isFilled&&L&&(E=I)});E||b.forEach(this.getChildren(),function(I){null===E&&!I.isFilled&&I.controlSetGroup.getIsAvail()&&(E=I)});
E&&this.selectBreadcrumb(E)}}))})},"mill/jssupport/form/FilteringSelectField":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/Deferred dojo/dom-style dojo/dom-construct dojo/dom-class dijit/form/FilteringSelect dojo/text!mill/jssupport/form/filteringSelectField.html mill/jssupport/form/TextField mill/jssupport/form/_TextFieldWidgetMixin mill/jssupport/base".split(" "),function(c,a,b,e,f,g,h,l,m,r,n){c("office.form.FilteringSelectWidget",[h,r],{required:!1,searchAttrObject:null,preventFetchPropertiesModify:null,
onHideForValue:new Function,postMixInProperties:function(){this.inherited(arguments);this.searchAttrObject=this.searchAttrObject||{RU:"Description",EN:"EngDescription"}},_setSearchAttrObjectAttr:function(k){this.searchAttrObject=k;this._updateSearchAttr()},_getSearchAttr:function(){return a.isObject(this.searchAttrObject)?this.searchAttrObject[n.locale.toUpperCase()]||"Description":a.isString(this.searchAttrObject)?this.searchAttrObject:"Description"},_updateSearchAttr:function(){this.set("searchAttr",
this._getSearchAttr());this.preventFetchPropertiesModify||this.set("fetchProperties",{sort:[{attribute:this._getSearchAttr(),descending:!1}]})},updateItem:function(k){var p=new b;if(k=k||this.value){var q=this.store.query({ID:k});a.isArray(q)&&!q.length&&(q=this.store.query({ID:parseInt(k)}));a.isArray(q)?(this.set("item",q[0]||null),p.resolve()):q.then(a.hitch(this,function(u){this.set("item",u[0]||null);this.get("displayedValue")||this.set("item",null);p.resolve()}),p.reject)}else p.resolve();return p.promise},
translate:function(){this.inherited(arguments);this._updateSearchAttr();this.updateItem()},_createSavedValueNode:function(){f.destroy(this._savedValueNode);this._savedValueNode=f.create("span",{innerHTML:this._savedValue?this.get("displayedValue"):"",className:"dim bold"},this.domNode.parentNode,"first");this._changed&&g.add(this._savedValueNode,["blue","italic"]);var k=this.getFieldWidget();k&&e.set(k.containerNode,{display:"none"});this.onHideForValue(this._savedValueNode)},hideForValue:function(k){var p=
new b;if(k||"string"===typeof k)this._savedValue&&(this._changed=k!==this._savedValue),this._savedValue=k;this&&a.isObject(this)&&this.domNode&&(e.set(this.domNode,{display:"none"}),this._updateSearchAttr(),this.updateItem(this._savedValue).then(a.hitch(this,function(){this._createSavedValueNode();p.resolve()})));return p.promise}});return mill.registerAlias("office.form.FilteringSelectField",c("mill.jssupport.form.FilteringSelectField",[m],{templateString:l,store:null,searchAttrObject:null,_setStoreAttr:function(k){this.controlNode.set("store",
this.store=k)},_setSearchAttrObjectAttr:function(k){this.controlNode.set("searchAttrObject",this.searchAttrObject=k)}}))})},"mill/infoBox":function(){define(["mill/mill"],function(){dojo.declare("mill.infoBox",[dijit.layout.ContentPane,dijit._Templated],{templateString:dojo.cache("mill","infoBox.html",'\x3cdiv\x3e\x3ctable cellpadding\x3d"0" cellspacing\x3d"0" height\x3d"100%" style\x3d"border:6px solid white" width\x3d"100%"\x3e\x3ctr height\x3d"20px"\x3e\x3ctd class\x3d"infoBox infoBoxTopLeft" width\x3d"10px"\x3e \x26#160; \x3c/td\x3e\x3ctd class\x3d"infoBox infoBoxTop"\x3e \x26#160; \x3c/td\x3e\x3ctd class\x3d"infoBox infoBoxTopRight" width\x3d"10px"\x3e \x26#160; \x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd class\x3d"infoBoxH infoBoxLeft"\x3e \x26#160; \x3c/td\x3e\x3ctd class\x3d"infoBoxCenter" valign\x3d"top"\x3e\x3cdiv dojoAttachPoint\x3d"containerNode"\x3e\x3c/div\x3e\x3c/td\x3e\x3ctd class\x3d"infoBoxH infoBoxRight"\x3e \x26#160; \x3c/td\x3e\x3c/tr\x3e\x3ctr height\x3d"20px"\x3e\x3ctd class\x3d"infoBox infoBoxBottomLeft"\x3e \x26#160; \x3c/td\x3e\x3ctd class\x3d"infoBox infoBoxBottom"\x3e \x26#160; \x3c/td\x3e\x3ctd class\x3d"infoBox infoBoxBottomRight"\x3e \x26#160; \x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e')})})},
"mill/gridColumnsFilter":function(){define("dijit/form/ComboBox dijit/form/CheckBox dojox/grid/EnhancedGrid dojox/grid/enhanced/_Plugin dojox/grid/enhanced/_PluginManager mill/mill".split(" "),function(){dojo.declare("dojox.grid.enhanced.plugins.millColumnsFilter",[dojox.grid.enhanced._Plugin],{name:"millColumnsFilter",visible:!0,_filterBarRows:null,_tables:null,_afterRowConnects:null,_widgets:null,searchAttr:"Description",labelAttr:"Description",init:function(){this.inherited(arguments);dojo.mixin(this,
this.options);this._widgets=[];this._filterBarRows=[];this._tables=[];this._afterRowConnects=[];var c=this,a=this._oldCreateView=dojo.hitch(this.grid,this.grid.createView);this.grid.createView=function(b,e){for(;c._filterBarRows.length<=e;)c._filterBarRows.push(null);for(;c._tables.length<=e;)c._tables.push(null);for(;c._afterRowConnects.length<=e;)c._afterRowConnects.push(null);c._cleanUp(e);var f=a.apply(c.grid,arguments);c._afterRowConnects[e]=dojo.connect(f,"onAfterRow",c,"_afterRow");return f};
dojo.mixin(this.grid,{showFilterBar:dojo.hitch(this,this.show),hideFilterBar:dojo.hitch(this,this.hide),getFilterBarVisible:dojo.hitch(this,function(){return this.visible})})},show:function(){this.visible=!0;this._render()},hide:function(){this.visible=!1;this._cleanUp()},_afterRow:function(c,a,b){if(-1==c&&a.length&&a[0].length){var e=a[0][0].view.index;dojo.query("table",b).forEach(dojo.hitch(this,function(f,g){this._cleanUpBar(e);this._tables[e]=f;this.visible&&this._render()}))}},_cleanUpEvent:function(c){this._tables[c]=
null;this._afterRowConnects[c]&&(dojo.disconnect(this._afterRowConnects[c]),this._afterRowConnects[c]=null)},_cleanUpBar:function(c){this._filterBarRows[c]&&(this._filterBarRows[c].parentNode&&this._filterBarRows[c].parentNode.removeChild(this._filterBarRows[c]),this._filterBarRows[c]=null,this._widgets&&dojo.forEach(this._widgets,dojo.hitch(this,function(a,b){a&&a.viewIdx==c&&(a.store&&a.store.close(),a.destroyRecursive());this._widgets[b]=null})))},_cleanUp:function(c){this._cleanUpEvent(c);this._cleanUpBar(c)},
_render:function(){for(var c=0;c<this._filterBarRows.length;c++)this._cleanUpBar(c),this._tables[c]&&(this._filterBarRows[c]=this._tables[c].insertRow(-1),this._filterBarRows[c].height="25",this._filterBarRows[c].style.height="25px",dojo.forEach(this._tables[c].rows[0].cells,dojo.hitch(this,function(a){var b=this._filterBarRows[c].insertCell(-1);b.className=a.className;b.style.display=a.style.display;b.style.padding="2px 5px 2px 0px"})),cells=this.grid.views.views[c]?this.grid.views.views[c].structure.cells[0]:
[],dojo.forEach(cells,dojo.hitch(this,function(a,b){if(a.field&&!a.hidden){var e=this._filterBarRows[c].cells[b];if(e){var f=document.createElement("input");e.appendChild(f);e=this.grid.onGetFilterStore(a);this._createComboBox(a,a.filterValue||a.filter,e,f,b)}}})))},_createComboBox:function(c,a,b,e,f){this._widgets.push(new dojox.grid.enhanced.millColumnsFilterCombobox({style:"width:100%",searchAttr:this.searchAttr,labelAttr:this.labelAttr,autoComplete:!1,grid:this.grid,column:c,value:a,store:b,viewIdx:f},
e))},destroy:function(){for(var c=0;c<this._filterBarRows.length;c++)this._cleanUp(c);this.grid.createView=this._oldCreateView;this.inherited(arguments)}});dojo.declare("dojox.grid.enhanced.millColumnsFilterCombobox",dijit.form.ComboBox,{grid:null,column:null,viewIdx:null,dropDownClass:"dojox.grid.enhanced.millColumnsFilterDropDown",_selected:null,_freeze:!1,_selectOption:function(c){var a=this.attr("value"),b=this.attr("label"),e=this.attr("item");this._selected=[];this.dropDown&&dojo.forEach(this.dropDown._checkboxes,
dojo.hitch(this,function(l){l.attr("checked")&&this._selected.push(l.item)}));this.inherited(arguments);var f=this.attr("item");if(f.onSelect){var g=f.onSelect;dojo.isArray(g)&&(g=g[0]);if(g(this)){this._freeze=!0;this.value=a;this.label=b;this.item=e;dijit.form.ValidationTextBox.prototype._setValueAttr.call(this,this.value,!0,this.label);return}}f&&-1==dojo.indexOf(this._selected,f)&&(this._selected=[f]);var h=[];dojo.forEach(this._selected,dojo.hitch(this,function(l){this.store.getIdentity(l)&&
h.push(this.store.getLabel(l))}));this.attr("value",h.join(";"))},onChange:function(){if(this._freeze)this._freeze=!1;else{var c=[];this._selected&&dojo.forEach(this._selected,dojo.hitch(this,function(b){c.push(this.store.getIdentity(b))}));var a=c.length?c.join(";"):this.attr("value");this.column.filter=a;this.column.filterValue=this.attr("value");this.grid.onFilterChanged(this.column,a,this.store,this._selected)}},_startSearchFromInput:function(){}});dojo.declare("dojox.grid.enhanced.millColumnsFilterDropDown",
dijit.form._ComboBoxMenu,{_onMouseUp:function(c){if("option"==c.target.getAttribute("role"))return this.inherited(arguments)},_checkboxes:null,_comboBox:null,postMixInProperties:function(){this.inherited(arguments);var c=this.id;c=c.substring(0,c.length-6);this._comboBox=dijit.byId(c)},_createOption:function(c,a){var b=this.inherited(arguments),e=(this._comboBox.attr("value")||"").split(";"),f=this._comboBox.store.getLabel(c);node=document.createElement("input");b.insertBefore(node,b.firstChild);
e=new dojox.grid.enhanced.millColumnsFilterCheckBox({item:c,dropDown:this,_comboBox:this._comboBox,checked:-1!=dojo.indexOf(e,f)},node);this._checkboxes||(this._checkboxes=[]);dojo.mixin(c,{dropDown:this});this._checkboxes.push(e);return b}});dojo.declare("dojox.grid.enhanced.millColumnsFilterCheckBox",dijit.form.CheckBox,{item:null,dropDown:null,_comboBox:null});dojo.extend(dojox.grid.EnhancedGrid,{onFilterChanged:function(c,a,b,e){},onGetFilterStore:function(c){}});dojo.extend(dojox.grid.cells.Cell,
{filter:null,filterValue:null})})},"mill/jssupport/layout/AwaitingOverlay":function(){define("dojo/_base/declare dojo/Deferred dojo/when dijit/_WidgetBase dijit/_TemplatedMixin mill/jssupport/base".split(" "),function(c,a,b,e,f,g){return c("mill.jssupport.layout.AwaitingOverlay",[e,f],{baseClass:"awaitingOverlay awaitingOverlayHidden",templateString:"\x3cdiv\x3e\x3cdiv class\x3d'awaitingOverlayInner'\x3e\x3cdiv class\x3d'awaitingOverlaySpinner'\x3e\x3c/div\x3e\x3cdiv class\x3d'awaitingOverlayText' data-dojo-attach-point\x3d'textNode'\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e",
handlers:null,textNode:null,postCreate:function(){this.inherited(arguments);this.handlers=[]},registerHandler:function(h){this.textNode.innerHTML=g.getLocalization("Office.AwaitingOverlayText");h||(h=new a);this.handlers.push(h);this.domNode.classList.remove("awaitingOverlayHidden");b(h,this.handlerResolved.bind(this,h),this.handlerResolved.bind(this,h));return h},handlerResolved:function(h){h=this.handlers.indexOf(h);0<=h&&this.handlers.splice(h,1);this.isStillAwaiting()||this.domNode.classList.add("awaitingOverlayHidden")},
isStillAwaiting:function(){return 0<this.handlers.filter(function(h){return!h.isResolved()}).length}})})},"mill/jssupport/form/_FieldMixin":function(){define("dojo/_base/declare dojo/_base/lang dojo/dom-construct dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin mill/jssupport/base".split(" "),function(c,a,b,e,f,g){return mill.registerAlias("office.form._FieldMixin",c("mill.jssupport.form._FieldMixin",[e,f],{baseClass:"officeFormField",name:null,text:"",maxLength:null,textPiece:null,controlPiece:null,
hideTextColumn:null,doProcessIR:null,dataExample:null,_dataExampleWidget:null,postMixInProperties:function(){this.inherited(arguments);0<this.maxLength&&(this.observer=this.observer?this.observer+", setCharactersRemaining":"setCharactersRemaining");this.hideTextColumn=null===this.hideTextColumn?!this.text:"true"===this.hideTextColumn||!0===this.hideTextColumn||"1"===this.hideTextColumn;this.textPiece=this.textPiece||5;this.controlPiece=this.hideTextColumn?"12":12-parseInt(this.textPiece)},_setNameAttr:function(h){this.controlNode.set("name",
this.name=h)},_setTextAttr:function(h){this.translatableNode.set("text",this.text=h)},_setMaxLengthAttr:function(h){this.controlNode.set("maxLength",this.maxLength=h);this.charactersRemainingWidget=new office.TranslatableNode({display:"inline",text:"Office.CharactersRemaining;: ;"+this.maxLength},b.create("div",{},this.maxLengthNode),"first")},_setHideTextColumnAttr:function(h){this.hideTextColumn=h;this.textColumnNode.set("hideOnDesktop",this.hideTextColumn);this.textColumnNode.set("hideOnPad",this.hideTextColumn);
this.textColumnNode.set("hideOnMobile",this.hideTextColumn)},_setDataExampleAttr:function(h){this.containerNode&&h&&"string"===typeof h&&(this._dataExampleWidget=new office.TranslatableNode({text:h,className:"small dim"},b.create("div",null,this.containerNode,"after")))},getFormContentWidget:function(){for(var h=this;!h.isInstanceOf(office.form._FormContent)&&h.getParent();)h=h.getParent();return h.isInstanceOf(office.form._FormContent)?h:null},getUnionFieldWidget:function(){for(var h=this;!h.isInstanceOf(office.form.UnionField)&&
h.getParent();)h=h.getParent();return h.isInstanceOf(office.form.UnionField)?h:null},_setDoProcessIRAttr:function(h){this.translatableNode&&a.isFunction(this.translatableNode.set)&&(this.translatableNode.set("doProcessIR",this.doProcessIR=h),this.translatableNode.domNode&&g.processInternetResources(this.translatableNode.domNode))}}))})},"mill/jssupport/form/FileAttachmentField":function(){define(["dojo/_base/declare","dijit/_WidgetBase","dojo/text!mill/jssupport/form/fileAttachmentField.html","mill/jssupport/form/_FieldMixin",
"mill/jssupport/form/_RequiredFieldMixin"],function(c,a,b,e,f){return mill.registerAlias("office.form.FileAttachmentField",c("mill.jssupport.form.FileAttachmentField",[a,e,f],{templateString:b,label:"Office.SelectFile",anotherFileLabel:"Office.SelectAnotherFile",attachmentType:null,doubleName:null,specialName:null,extension:null,accept:null,maxSize:null,_setLabelAttr:function(g){this.controlNode.set("labelIdentifier",this.label=g)},_setAnotherFileLabelAttr:function(g){this.controlNode.set("anotherFileLabel",
this.anotherFileLabel=g)},_setAttachmentTypeAttr:function(g){this.controlNode.set("attachmentType",this.attachmentType=g)},_setDoubleNameAttr:function(g){"string"===typeof g&&this.controlNode.set("doubleName",this.doubleName=g)},_setSpecialNameAttr:function(g){this.controlNode.set("specialName",this.specialName=g)},_setExtensionAttr:function(g){this.controlNode.set("extension",this.extension=g)},_setAcceptAttr:function(g){this.controlNode.set("accept",this.accept=g)},_setMaxSizeAttr:function(g){this.controlNode.set("maxSize",
this.maxSize=g)}}))})},"mill/jssupport/TranslatableNode":function(){define("dojo/_base/declare dojo/_base/lang dojo/dom-style dojo/dom-construct dijit/_WidgetBase dijit/_TemplatedMixin mill/jssupport/base mill/jssupport/_TranslationMixin mill/jssupport/layout/_LayoutMixin".split(" "),function(c,a,b,e,f,g,h,l,m){return mill.registerAlias("office.TranslatableNode",c("mill.jssupport.TranslatableNode",[f,g,l,m],{baseClass:"translatableNode",templateString:"\x3cdiv style\x3d'display: none'\x3e\x3cspan data-dojo-attach-point\x3d'textNode' data-dojo-attach-event\x3d'onclick: onClick'\x3e\x3c/span\x3e\x3c/div\x3e",
text:null,icon:null,display:"block",onClick:new Function,attributeMap:{textValue:{node:"textNode",type:"innerHTML"}},textValue:null,doProcessIR:null,_setTextAttr:function(r){if(null===r||void 0===r)r="";this.text=a.isFunction(r)?r.call():r;this.translate()},_setIconAttr:function(r){e.place(e.create("span",{className:this.icon=r}),this.domNode,"first")},_lastTranslated:null,translate:function(){this.inherited(arguments);var r=h.locale.toUpperCase(),n=dojo.toJson({text:this.text,locale:r});if(this._lastTranslated!==
n)if(this._lastTranslated=n,this.text){r=a.isObject(this.text)?(this.text[r]||"").split(";"):this.text.split(";");n="";for(var k=0;k<r.length;k++){var p=h.getLocalization(r[k]);null===p&&(p=r[k]);n+=p;this.domNode.setAttribute("untranslatedText",r[k])}this.set("textValue",n);b.set(this.domNode,{display:r&&n&&"\x26#160;"!==n?this.display:"none"});this.doProcessIR&&h.processInternetResources(this.domNode)}else this.set("textValue",""),b.set(this.domNode,{display:"none"})}}))})},"mill/jssupport/layout/layoutContent/RestorePasswordForm":function(){define("dojo/_base/declare dojo/_base/lang dojo/text!mill/jssupport/layout/layoutContent/restorePasswordForm.html mill/jssupport/form/_FormContent mill/jssupport/base mill/mill".split(" "),
function(c,a,b,e,f,g){return mill.registerAlias("office.RestorePasswordForm",c("mill.jssupport.layout.layoutContent.RestorePasswordForm",[e],{content:b,formTitle:"Office.RestorePassword",hideSubmitTextColumn:"false",postForm:function(){this.inherited(arguments);this.postRequest({url:g.getRequestUrl(f.registerHandler||(window.application?window.app.registerHandler:""),"RestorePasswordRequest.xml"),data:a.mixin(this.gatherFormValues(),{refertext:mill.getReferText(),accesscategory:f.accessCategory||
(window.application?window.app.accessCategory:"")})}).then(a.hitch(this,function(h){this.createSuccessMessage("Office.RestorePasswordRequestSuccess",a.hitch(this,function(){this.toggleFormView()}),null,null,!1);this.toggleFormView();this.resetForm()}))}}))})},"mill/jssupport/layout/layoutMenu/LayoutMenu":function(){define("dojo/_base/declare dojo/_base/lang dojo/dom-construct dojo/topic dijit/_WidgetBase dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin mill/jssupport/layout/layoutMenu/_LayoutMenuMixin mill/jssupport/layout/layoutMenu/LayoutMenuItem".split(" "),
function(c,a,b,e,f,g,h,l,m){return mill.registerAlias("office.layout.LayoutMenu",c("mill.jssupport.layout.layoutMenu.LayoutMenu",[f,g,h,l],{baseClass:"officeLayoutMenu",templateString:"\x3cdiv\x3e  \x3cdiv data-dojo-type\x3d'office.TranslatableNode' data-dojo-props\x3d'text: \"${officeTitle}\"' class\x3d'larger margin-top-1em'\x3e\x3c/div\x3e  \x3cdiv data-dojo-attach-point\x3d'menuContent'\x3e\x3c/div\x3e  \x3cdiv data-dojo-attach-point\x3d'containerNode'\x3e\x3c/div\x3e\x3c/div\x3e",officeTitle:"",
useLogo:null,buildRendering:function(){this.inherited(arguments);if(this.useLogo){var r=b.create("div",{className:"menu-logo",style:{display:"none"}},this.domNode,"first");b.create("div",{className:"logo"},r);b.create("div",{className:"cabinetTitle",innerHTML:"\u041b\u0438\u0447\u043d\u044b\u0439 \u043a\u0430\u0431\u0438\u043d\u0435\u0442\x3cbr/\x3e\u0430\u0431\u0438\u0442\u0443\u0440\u0438\u0435\u043d\u0442\u0430 \u043c\u0430\u0433\u0438\u0441\u0442\u0440\u0430\u0442\u0443\u0440\u044b"},r)}},postCreate:function(){this.inherited(arguments);
this.own(e.subscribe("office.layout.LayoutMenu.registerItem",a.hitch(this,this.registerItem)))},registerItem:function(r){if(!r.region||this.region===r.region){var n=this.inherited(arguments);n=b.create("li",{className:"officeLayoutMenuElem"},n).appendChild(document.createElement("div"));a.mixin(r,{layoutItem:new m(a.mixin(a.clone(r),{}),n)})}}}))})},"mill/jssupport/jsApplication/controls/radioButton/RadioButton":function(){define("dojo/_base/declare dijit/form/_FormWidget dijit/_Container dojo/text!mill/jssupport/jsApplication/controls/radioButton/radioButton.html mill/jssupport/jsApplication/controls/_CustomControlMixin mill/jssupport/jsApplication/controls/radioButton/RadioButtonElement".split(" "),
function(c,a,b,e,f,g){return mill.registerAlias("app.view.RadioButton",c("mill.jssupport.jsApplication.controls.radioButton.RadioButton",[a,b,f],{baseClass:"appRadioButton",templateString:e,store:null,item:null,searchAttr:null,fetchProperties:null,displayedValue:null,_getValueAttr:function(){var h=this.get("item");return h?h.value:null},_setValueAttr:function(h){var l=this.getChildren().filter(function(m){return String(m.value)===String(h)},this)[0];l&&l.set("checked",!0)},_getDisplayedValueAttr:function(){var h=
this.get("item");return h?h.description:null},_getItemAttr:function(){return this.store?this.getChildren().filter(function(h){return h.get("checked")})[0]:null},_onChange:function(h){this.inherited(arguments);this.onChange(h)},init:function(){function h(l,m,r,n,k){l(new g({name:m,value:k[r],description:k[n]}))}this.destroyDescendants();this.store&&this.store.query(null,this.fetchProperties).forEach(h.bind(null,this.addChild.bind(this),this.id,this.store.idProperty,this.searchAttr))},onChange:function(){}}))})},
"mill/jssupport/Announcement":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/fx dojo/dom-class dojo/dom-style dojo/Deferred dijit/_CssStateMixin dojo/text!mill/jssupport/announcement.html mill/jssupport/TranslatableNode".split(" "),function(c,a,b,e,f,g,h,l,m){return mill.registerAlias("office.Announcement",c("mill.jssupport.Announcement",[m,h],{baseClass:"officeAnnouncement",templateString:l,color:"blue",icon:"info",textAlign:"text-align-justify",hideIconTitle:"Office.Close",readOnly:null,
onHide:null,collapsedHeight:"4.5em",expanded:!1,attributeMap:a.delegate(m.prototype.attributeMap,{title:"hideIcon"}),title:null,_setTextAttr:function(){this._started&&this.bodyNode&&(this.bodyNode.style.transition="none",f.set(this.bodyNode,{maxHeight:this.collapsedHeight}),this.bodyNode.offsetHeight,this.bodyNode.style.transition="");this.inherited(arguments);this.text||this.set("icon","");this._started&&this._checkCollapsible()},_setColorAttr:function(r){this.color&&e.remove(this.domNode,this.color);
this.color=a.isFunction(r)?r.call():r;e.add(this.domNode,this.color)},_setIconAttr:function(r){e.remove(this.glyphicon,"icon-set-blocked icon-set-warning icon-set-bullhorn icon-set-confused icon-set-sad icon-set-smile icon-set-info".split(" "));this.icon="";if(r)switch(this.icon=a.isFunction(r)?r.call():r,this.icon){case "info":e.add(this.glyphicon,"icon-set-info");break;case "smile":e.add(this.glyphicon,"icon-set-smile");break;case "sad":e.add(this.glyphicon,"icon-set-sad");break;case "confused":e.add(this.glyphicon,
"icon-set-confused");break;case "bullhorn":e.add(this.glyphicon,"icon-set-bullhorn");break;case "warning":e.add(this.glyphicon,"icon-set-warning");break;case "blocked":e.add(this.glyphicon,"icon-set-blocked")}},_setTextAlignAttr:function(r){e.add(this.domNode,this.textAlign=r)},_setHideIconTitleAttr:function(r){this.translatableAttributes.title=this.hideIconTitle=r;this.translate()},startup:function(){this.inherited(arguments);this._checkCollapsible()},_checkCollapsible:function(){if(this.bodyNode&&
this.domNode&&this.domNode.parentNode){this._collapsibleRetry&&(clearTimeout(this._collapsibleRetry),this._collapsibleRetry=null);var r=this.expanded,n=this;setTimeout(function(){if(n.bodyNode)if(0===n.bodyNode.scrollHeight)n._collapsibleRetry||(n._collapsibleRetry=setTimeout(function(){n._collapsibleRetry=null;n._checkCollapsible()},200));else{var k=n.bodyNode.style.transition;n.bodyNode.style.transition="none";f.set(n.bodyNode,{maxHeight:n.collapsedHeight});n.bodyNode.offsetHeight;n.bodyNode.style.transition=
k;n.bodyNode.scrollHeight>n.bodyNode.clientHeight+2?(e.add(n.domNode,"officeAnnouncement-collapsible"),r&&n._applyExpandedState(!0)):(e.remove(n.domNode,"officeAnnouncement-collapsible"),e.remove(n.domNode,"officeAnnouncement-expanded"),n.expanded=!1,f.set(n.bodyNode,{maxHeight:"none"}))}},0)}},_toggleExpand:function(){this.expanded=!this.expanded;this._applyExpandedState(!1)},_applyExpandedState:function(r){var n=this;this.expanded?(e.add(this.domNode,"officeAnnouncement-expanded"),f.set(this.bodyNode,
{maxHeight:this.bodyNode.scrollHeight+"px"}),r?f.set(this.bodyNode,{maxHeight:"none"}):setTimeout(function(){n.expanded&&f.set(n.bodyNode,{maxHeight:"none"})},440)):(e.remove(this.domNode,"officeAnnouncement-expanded"),f.set(this.bodyNode,{maxHeight:this.bodyNode.scrollHeight+"px"}),this.bodyNode.offsetHeight,f.set(this.bodyNode,{maxHeight:this.collapsedHeight}))},_hide:function(){this.hide()},hide:function(){var r=new g;this.domNode?b.animateProperty({node:this.domNode,rate:10,properties:{opacity:{start:"1",
end:"0"}},onEnd:a.hitch(this,function(){this.onHide&&this.onHide();this.destroyRecursive();r.resolve()})}).play():r.resolve();return r.promise}}))})},"mill/queryBuilder/application":function(){define("dojo/data/ItemFileReadStore dojo/data/ItemFileWriteStore dijit/layout/BorderContainer dijit/layout/ContentPane dijit/layout/TabContainer dijit/form/ComboBox dijit/tree/TreeStoreModel dijit/Tree dojox/grid/DataGrid dojox/grid/EnhancedGrid dojox/grid/enhanced/_PluginManager dojox/grid/enhanced/plugins/IndirectSelection mill/mill mill/icon mill/animatedMill mill/ribbon mill/imageList mill/managementConsole mill/infoBox mill/queryBuilder mill/queryBuilder/provider mill/queryBuilder/treeModel mill/queryBuilder/dataStore mill/queryBuilder/gridColumnsFilter mill/queryBuilder/queryDocument mill/queryBuilder/parametersView".split(" "),
function(){dojo.declare("mill.queryBuilder.application",[dijit.layout.BorderContainer],{gutters:!1,design:"sidebar",startup:function(){dojo.place(dojo.cache("mill","queryBuilder/application.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" splitter\x3d"true" style\x3d"margin:0;padding:0;width:25%"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"width:100%;height:100%;margin:0;overflow:hidden"\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"top" style\x3d"margin:0;padding:0;border:1px solid #40407F;background-color:#ECE9D8"\x3e\x3cdiv dojoAttachPoint\x3d"toolbar" dojoType\x3d"dijit.Toolbar" style\x3d"display:none"\x3e\x3cdiv dojoType\x3d"dijit.form.Button" iconClass\x3d"COptionsImageIndex" label\x3d"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b" onClick\x3d"this.application.options()" showLabel\x3d"false"\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.form.Button" iconClass\x3d"CRefreshImageIndex" label\x3d"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c" onClick\x3d"this.application.refresh()" showLabel\x3d"false"\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.form.Button" iconClass\x3d"CExcelImageIndex" label\x3d"\u041f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0432 Excel" onClick\x3d"this.application.copyToExcel(null)" showLabel\x3d"false"\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.form.Button" iconClass\x3d"CGroupColumnImageIndex" label\x3d"\u0413\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0439 \u043a\u043e\u043b\u043e\u043d\u043a\u0435" onClick\x3d"this.application.groupBy()" showLabel\x3d"false"\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.form.Button" iconClass\x3d"CUngroupColumnImageIndex" label\x3d"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0438" onClick\x3d"this.application.clearGroups()" showLabel\x3d"false"\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.form.Button" iconClass\x3d"CClearFiltersImageIndex" label\x3d"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0432\u0441\u0435 \u0444\u0438\u043b\u044c\u0442\u0440\u044b" onClick\x3d"this.application.clearFilters()" showLabel\x3d"false"\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.form.Button" iconClass\x3d"CCalcCountImageIndex" label\x3d"\u0420\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432" onClick\x3d"this.application.aggregate(8)" showLabel\x3d"false"\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.form.Button" iconClass\x3d"CCalcSummImageIndex" label\x3d"\u0420\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0441\u0443\u043c\u043c\u0443" onClick\x3d"this.application.aggregate(9)" showLabel\x3d"false"\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.form.Button" iconClass\x3d"CCalcMinImageIndex" label\x3d"\u0420\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043c\u0438\u043d\u0438\u043c\u0443\u043c" onClick\x3d"this.application.aggregate(10)" showLabel\x3d"false"\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.form.Button" iconClass\x3d"CCalcMaxImageIndex" label\x3d"\u0420\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c" onClick\x3d"this.application.aggregate(11)" showLabel\x3d"false"\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.form.Button" iconClass\x3d"CCalcAverageImageIndex" label\x3d"\u0420\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435" onClick\x3d"this.application.aggregate(12)" showLabel\x3d"false"\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.form.Button" iconClass\x3d"CClearAggregatesImageIndex" label\x3d"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0432\u0441\u0435 \u0430\u0433\u0440\u0435\u0433\u0430\u0442\u044b" onClick\x3d"this.application.clearArrregates()" showLabel\x3d"false"\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.form.Button" iconClass\x3d"CFixColumnImageIndex" label\x3d"\u0417\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u0443\u044e \u043a\u043e\u043b\u043e\u043d\u043a\u0443" onClick\x3d"this.application.fix()" showLabel\x3d"false"\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.form.Button" iconClass\x3d"CUnfixImageIndex" label\x3d"\u0421\u043d\u044f\u0442\u044c \u0444\u0438\u043a\u0441\u0430\u0446\u0438\u044e \u043a\u043e\u043b\u043e\u043d\u043e\u043a" onClick\x3d"this.application.unfix()" showLabel\x3d"false"\x3e\x3c/div\x3e\x3c/div\x3e\x3cul dojoAttachPoint\x3d"gridMenu" dojoType\x3d"dijit.Menu" style\x3d"display:none"\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"this.application.refresh()"\x3e \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \x3c/li\x3e\x3cli dojoAttachPoint\x3d"ExcelMenuItem" dojoType\x3d"dijit.MenuItem" onClick\x3d"this.application.copyToExcel(null)"\x3e \u041f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0432 Excel \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"this.application.groupBy()"\x3e \u0413\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0439 \u043a\u043e\u043b\u043e\u043d\u043a\u0435 \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"this.application.clearGroups()"\x3e \u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0438 \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"this.application.aggregate(8)"\x3e \u0420\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"this.application.aggregate(9)"\x3e \u0420\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0441\u0443\u043c\u043c\u0443 \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"this.application.aggregate(10)"\x3e \u0420\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"this.application.aggregate(11)"\x3e \u0420\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043c\u0438\u043d\u0438\u043c\u0443\u043c \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"this.application.aggregate(12)"\x3e \u0420\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"this.application.clearArrregates()"\x3e \u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0432\u0441\u0435 \u0430\u0433\u0440\u0435\u0433\u0430\u0442\u044b \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"this.application.fix()"\x3e \u0417\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u0443\u044e \u043a\u043e\u043b\u043e\u043d\u043a\u0443 \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"this.application.unfix()"\x3e \u0421\u043d\u044f\u0442\u044c \u0444\u0438\u043a\u0441\u0430\u0446\u0438\u044e \u043a\u043e\u043b\u043e\u043d\u043e\u043a \x3c/li\x3e\x3c/ul\x3e\x3ctable cellspacing\x3d"8px" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"50px"\x3e \u041a\u043e\u0440\u0435\u043d\u044c: \x3c/td\x3e\x3ctd\x3e\x3cinput autoComplete\x3d"false" dojoAttachPoint\x3d"rootComboBox" dojoType\x3d"dijit.form.ComboBox" intermediatechanges\x3d"true" searchAttr\x3d"Caption" style\x3d"width:100%;color:red;font-weight:800" value\x3d"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0437\u0434\u0435\u0441\u044c \u043a\u043e\u0440\u043d\u0435\u0432\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:0;padding:0;border:1px solid #40407F"\x3e\x3cul dojoAttachPoint\x3d"treeMenu" dojoType\x3d"dijit.Menu" style\x3d"display:none"\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"this.application.renameTreeNode()" style\x3d"font-weight:bold"\x3e \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"this.application.newAggregate()"\x3e \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0430\u0433\u0440\u0435\u0433\u0430\u0442 \u0437\u0434\u0435\u0441\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"this.application.newExpression()"\x3e \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0437\u0434\u0435\u0441\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"this.application.newCondition()"\x3e \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0437\u0434\u0435\u0441\u044c... \x3c/li\x3e\x3c/ul\x3e\x3cdiv autoExpand\x3d"false" dndController\x3d"mill.SafeDndSelector" dojoAttachPoint\x3d"tree" dojoType\x3d"dijit.Tree" getIconClass\x3d"mill.queryBuilder.application.getTreeIconClass" getLabelClass\x3d"mill.queryBuilder.application.getTreeLabelClass" model\x3d"mill.queryBuilder.application.emptyModel()" persist\x3d"false" showRoot\x3d"false" style\x3d"overflow:auto"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"gridContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center" style\x3d"overflow:hidden;width:100%;height:100%;margin:0;padding:0;border:1px solid #40407F;background-color:#ECE9D8"\x3e\x3cdiv dojoAttachPoint\x3d"toolBarPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"top" style\x3d"padding:0"\x3e\x3cdiv dojoType\x3d"mill.animatedMill" style\x3d"width:100%"\x3e\x3c/div\x3e\x3cdiv button\x3d"false" color\x3d"red" dojoType\x3d"mill.ribbon" style\x3d"width:100%"\x3e\x3cdiv style\x3d"left:-120px;position:absolute;width:500px"\x3e \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043a\u043e\u0440\u043d\u0435\u0432\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0434\u043b\u044f \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv dojoAttachPoint\x3d"gridPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"padding:0;overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e'),
this.containerNode,"only");for(var c=this.containerNode.childNodes[0],a=c.childNodes,b=0;b<a.length;b++)this.containerNode.insertBefore(a[b],c);var e={};dojo.forEach(dojo.parser.parse({rootNode:this.containerNode,template:!0}),dojo.hitch(this,function(f){var g=f.dojoAttachPoint;g&&(e[g]=f);f.application=this}));dojo.mixin(this,e);this.inherited(arguments);this.rootComboBox.attr("store",mill.queryBuilder.provider.tablesStore(function(f){return f.RootAvailable}));this.rootComboBox.onChange=dojo.hitch(this,
this._rootChanged);this.tree._createTreeNode=function(f){return new mill.queryBuilder.treeNode(f)};this.treeMenu.bindDomNode(this.tree.domNode)},_rootTableItem:null,_rootChanged:function(){var c=this.rootComboBox.item;if(c){if(this._rootTableItem){if(this.rootComboBox.store.getValue(this._rootTableItem,"ID")==this.rootComboBox.store.getValue(c,"ID"))return;if(!confirm("\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u0442 \u043a \u043f\u043e\u0442\u0435\u0440\u0435 \u0432\u0441\u0435\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430. \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c?")){c=
this._rootTableItem;this._rootTableItem=null;this.rootComboBox.attr("item",c);this._rootTableItem=c;return}}this._rootTableItem=c;dojo.style(this.rootComboBox.domNode,{color:"",fontWeight:""});this._rootTableID=this.rootComboBox.store.getValue(c,"ID");this.tree.attr("showRoot",!0);this.tree._itemNodesMap={};this.tree.selectedItems=null;this.tree.selectedItem=null;if(this.tree.dndController&&!dojo.isString(this.tree.dndController)){var a=this.tree.dndController.declaredClass;this.tree.dndController.destroy();
this.tree.tree.dndController=a}this.tree.rootNode&&(this.tree.rootNode.destroyRecursive(),this.tree.rootNode=null);this.tree.model=new mill.queryBuilder.treeModel({rootTableID:this.rootComboBox.store.getValue(c,"ID")});this.tree.postMixInProperties();this.tree.postCreate();dojo.hitch(this,function(b){this.tree._expandNode(b);dojo.map(dojo.filter(b.getChildren()||[],function(e){return e.item.AutoExpand||e.item.root}),dojo.hitch(this,arguments.callee))})(this.tree.rootNode);this.queryChanged()}else this._rootTableItem&&
!confirm("\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u0442 \u043a \u043f\u043e\u0442\u0435\u0440\u0435 \u0432\u0441\u0435\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430. \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c?")||dojo.style(this.rootComboBox.domNode,
{color:"red",fontWeight:800})},grid:null,actualStructure:function(c,a){var b=[];c&&this.grid.structure&&dojo.forEach(this.grid.structure,function(e){b=e.cells?b.concat(e.cells):b.concat(e)});a&&this.grid.views.views.length&&dojo.forEach(this.grid.views.views,function(e){b=b.concat(e.structure.cells[0])});return b},formatCell:function(c,a,b){if(c&&(a=b.grid.getItem(a)))return a.isFooter?c:(b=b.grid.store.getValue(a,"COLOR"))?'\x3cspan style\x3d"color:'+b+'"\x3e'+c+"\x3c/span\x3e":c},_buildQueryStructure:function(){checked=
{};dojo.hitch(this,function(f){f.IsField&&f.Checked&&(checked["F"+f.id]=f);var g=dojo.hitch(this,arguments.callee);this.tree.model.getChildren(f,dojo.hitch(this,function(h){dojo.forEach(h,g)}))})(this.tree.rootNode.item);var c=dojo.map(dojo.filter(this.actualStructure(!1,!0),function(f){var g=!!checked["F"+f.nodeID];g&&delete checked["F"+f.nodeID];return g}),dojo.hitch(this,function(f){return{name:f.name,width:f.width,field:f.field,styles:"text-align:left;",nodeID:f.nodeID,fieldInfo:f.fieldInfo,filter:f.filter,
filterValue:f.filterValue,group:f.group,aggregate:f.aggregate,fixed:f.fixed,formatter:this.formatCell}})),a;for(a in checked)c.push({name:checked[a].Caption,width:"200px",field:"F"+checked[a].id,styles:"text-align:left;",nodeID:checked[a].id,fieldInfo:checked[a],formatter:this.formatCell,group:!1,aggregate:null,fixed:!1});var b=[],e=[];dojo.forEach(c,function(f){(f.fixed?b:e).push(f)});return b.length?[{cells:b,noscroll:!0},{cells:e}]:[e]},_filters:function(){var c={};dojo.forEach(this.actualStructure(!0,
!1),function(a){a.filter&&(c[a.field]=a.filter)});return c},_sorts:function(){var c={};dojo.forEach(this.grid.getSortProps(),function(a){c[a.attribute]=a.descending?"desc":"asc"});return c},_groups:function(){var c=[];dojo.forEach(this.actualStructure(!0,!1),function(a){a.group&&c.push(a.field)});return c},_aggregates:function(){var c={};dojo.forEach(this.actualStructure(!0,!1),function(a){a.aggregate&&(c[a.field]=a.aggregate)});return c},_buildQueryStore:function(){var c=this;return new mill.queryBuilder.dataStore({rootItem:this.tree.rootNode.item,
filters:this._filters(),sorts:this._sorts(),groups:this._groups(),_eofReached:function(a,b){if(a&&c.hasFooter()){var e={index:this._fetched.length,parentItem:a,store:this,isFooter:!0,node:document.createElement("row")},f=this._fetched.length;this._fetched.push(e);var g=dojo.clone(c._filters());dojo.forEach(c._groups(),dojo.hitch(this,function(h){g[h]=this.getValue(a,h)||"!*"}));mill.queryBuilder.provider.gridDataArgs({sync:!1,content:{query:mill.queryBuilder.queryDocument.buildAggregateDocument(c.tree.rootNode.item,
g,c._aggregates())},load:dojo.hitch(this,function(h){var l=h.documentElement.childNodes[0];dojo.forEach(c.actualStructure(!0,!1),function(m){m.aggregate&&e.node.appendChild(document.createElement(m.field)).appendChild(document.createTextNode(c._formatAggregate(m.aggregate,null,mill.fieldValue(l,m.field))))});c.grid.updateRow(f);return h})})}}})},_oldCreateView:null,_afterRowConnect:null,_afterRow:function(c,a,b){var e=this.grid.getItem(c);if(e)if(e.isGroup){var f=[];dojo.forEach(this.actualStructure(!0,
!1),dojo.hitch(this,function(g){g.group&&f.push(g.name+'\x3d"'+(this.grid.store.getValue(e,g.field)||"(\u041f\u0443\u0441\u0442\u043e)")+'"')}));dojo.place('\x3cdiv class\x3d"dojoxGridGroupRow"\x3e'+f.join(", ")+"\x3c/div\x3e",b,"only")}else e.isFooter&&dojo.style(b,{backgroundColor:"#FFFFC0",fontWeight:"800",fontSize:"110%",color:"#171B29"})},_viewCreated:function(c){var a=this;if(!c._heightAdopted){var b=c.adaptHeight;dojo.mixin(c,{_heightAdopted:!0,_footerNode:null,adaptHeight:function(e){b.apply(this,
arguments);this.renderFooter();if(this._footerNode){var f=this.domNode.style.height&&parseInt(this.domNode.style.height.replace(/px/,""),10)||this.domNode.clientHeight,g=this._footerNode.style.height&&parseInt(this._footerNode.style.height.replace(/px/,""),10)||this._footerNode.clientHeight;dojox.grid.util.setStyleHeightPx(this.scrollboxNode,f-g)}},renderFooter:function(){a.hasFooter()&&0==this.index?(this._footerNode||(this._footerNode=document.createElement("div"),mill.queryBuilder.provider.gridDataArgs({sync:!1,
content:{query:mill.queryBuilder.queryDocument.buildAggregateDocument(a.tree.rootNode.item,a._filters(),a._aggregates())},load:dojo.hitch(this,function(e){var f=e.documentElement.childNodes[0],g=[];dojo.forEach(a.actualStructure(!0,!1),function(h){h.aggregate&&g.push(a._formatAggregate(h.aggregate,h.name,mill.fieldValue(f,h.field)))});dojo.place("\x3cspan\x3e"+g.join(", ")+"\x3c/span\x3e",this._footerNode,"only");this.domNode&&this.domNode.appendChild(this._footerNode);return e})}),dojo.addClass(this._footerNode,
"dojoxGridFooterRow")),this.domNode&&this.domNode.appendChild(this._footerNode)):(this._footerNode&&this._footerNode.parentNode&&this._footerNode.parentNode.removeChild(this._footerNode),this._footerNode=null)}})}},hasFooter:function(){var c=!1;dojo.forEach(this.actualStructure(!0,!0),function(a){a.aggregate&&(c=!0)});return c},queryChanged:function(){if(!this.grid){dojo.query("*",this.toolBarPane.containerNode).orphan();this.toolBarPane.containerNode.appendChild(this.toolbar.domNode);this.toolbar.domNode.style.display=
"";this.gridContainer.layout();this.grid=new dojox.grid.EnhancedGrid({escapeHTMLInData:!1,headerMenu:this.gridMenu,plugins:{queryBuilderColumnsFilter:{visible:!0}},onHeaderClick:dojo.hitch(this,function(g){for(g=g.target;g;){if(dojo.hasClass(g,"dojoxGridSortNode")){this.queryChanged();break}g=g.parentNode}}),onGetFilterStore:dojo.hitch(this,function(g){return new mill.dataUnion({stores:[new dojo.data.ItemFileReadStore({data:{identifier:"ID",label:"Description",items:[{ID:"",Description:"(\u0412\u0441\u0435)"},
{ID:"!*",Description:"(\u041f\u0443\u0441\u0442\u043e)"},{ID:"*",Description:"(\u041d\u0435 \u043f\u0443\u0441\u0442\u043e)"},{ID:"{4BB217AC-309F-427A-83B3-D1ACD6C47A02}",Description:"(\u041f\u043e\u0434\u043e\u0431\u0435\u043d)",onSelect:function(h){(new dijit.Dialog({content:dojo.cache("mill","queryBuilder/patternDialog.html",'\x3cdiv\x3e \u0417\u0430\u0434\u0430\u0439\u0442\u0435 \u0448\u0430\u0431\u043b\u043e\u043d \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u043e\u0431\u0438\u044f: \x3cinput dojoAttachPoint\x3d"patternEdit" dojotype\x3d"dijit.form.ValidationTextBox" required\x3d"true" trim\x3d"true"\x3e\x3c/input\x3e\x3cbr/\x3e\x3cbr/\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"dijit.byNode(this.domNode.parentNode.parentNode.parentNode).apply()"\x3e\x3cb\x3eOK\x3c/b\x3e\x3c/button\x3e\x3c/div\x3e'),
title:"\u041f\u043e\u0434\u043e\u0431\u0438\u0435",apply:function(){dojo.forEach(this._contentSetter.parseResults,function(l){"patternEdit"==l.dojoAttachPoint&&h.attr("value",l.attr("value"))});this.hide()}})).show();return!0}},{ID:"{E2451DDA-305A-490C-AD62-28BB610F438F}",Description:"(\u041d\u0435 \u043f\u043e\u0434\u043e\u0431\u0435\u043d)",onSelect:function(h){(new dijit.Dialog({content:dojo.cache("mill","queryBuilder/patternDialog.html",'\x3cdiv\x3e \u0417\u0430\u0434\u0430\u0439\u0442\u0435 \u0448\u0430\u0431\u043b\u043e\u043d \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u043e\u0431\u0438\u044f: \x3cinput dojoAttachPoint\x3d"patternEdit" dojotype\x3d"dijit.form.ValidationTextBox" required\x3d"true" trim\x3d"true"\x3e\x3c/input\x3e\x3cbr/\x3e\x3cbr/\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"dijit.byNode(this.domNode.parentNode.parentNode.parentNode).apply()"\x3e\x3cb\x3eOK\x3c/b\x3e\x3c/button\x3e\x3c/div\x3e'),
title:"\u041e\u0442\u0440\u0438\u0446\u0430\u043d\u0438\u0435 \u043f\u043e\u0434\u043e\u0431\u0438\u044f",apply:function(){dojo.forEach(this._contentSetter.parseResults,function(l){"patternEdit"==l.dojoAttachPoint&&h.attr("value","!"+l.attr("value"))});this.hide()}})).show();return!0}},{ID:"{761CADC5-4E42-4D0B-A18E-7713B6A8AEBE}",Description:"(\u0421\u043e\u0434\u0435\u0440\u0436\u0438\u0442)",onSelect:function(h){(new dijit.Dialog({content:dojo.cache("mill","queryBuilder/patternDialog.html",'\x3cdiv\x3e \u0417\u0430\u0434\u0430\u0439\u0442\u0435 \u0448\u0430\u0431\u043b\u043e\u043d \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u043e\u0431\u0438\u044f: \x3cinput dojoAttachPoint\x3d"patternEdit" dojotype\x3d"dijit.form.ValidationTextBox" required\x3d"true" trim\x3d"true"\x3e\x3c/input\x3e\x3cbr/\x3e\x3cbr/\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"dijit.byNode(this.domNode.parentNode.parentNode.parentNode).apply()"\x3e\x3cb\x3eOK\x3c/b\x3e\x3c/button\x3e\x3c/div\x3e'),
title:"\u0421\u043e\u0434\u0435\u0440\u0436\u0438\u0442",apply:function(){dojo.forEach(this._contentSetter.parseResults,function(l){"patternEdit"==l.dojoAttachPoint&&h.attr("value","*"+l.attr("value")+"*")});this.hide()}})).show();return!0}},{ID:"{B38F8E17-F5D8-439F-AEF6-482C0157D2CE}",Description:"(\u041d\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442)",onSelect:function(h){(new dijit.Dialog({content:dojo.cache("mill","queryBuilder/patternDialog.html",'\x3cdiv\x3e \u0417\u0430\u0434\u0430\u0439\u0442\u0435 \u0448\u0430\u0431\u043b\u043e\u043d \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u043e\u0431\u0438\u044f: \x3cinput dojoAttachPoint\x3d"patternEdit" dojotype\x3d"dijit.form.ValidationTextBox" required\x3d"true" trim\x3d"true"\x3e\x3c/input\x3e\x3cbr/\x3e\x3cbr/\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"dijit.byNode(this.domNode.parentNode.parentNode.parentNode).apply()"\x3e\x3cb\x3eOK\x3c/b\x3e\x3c/button\x3e\x3c/div\x3e'),
title:"\u041d\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442",apply:function(){dojo.forEach(this._contentSetter.parseResults,function(l){"patternEdit"==l.dojoAttachPoint&&h.attr("value","!*"+l.attr("value")+"*")});this.hide()}})).show();return!0}},{ID:"{3ED89E24-39F0-47F3-90FC-4AC53A164005}",Description:"(\u0423\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u044f\u0435\u0442 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e\u043c\u0443 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044e)",
onSelect:function(h){(new dijit.Dialog({content:dojo.cache("mill","queryBuilder/patternDialog.html",'\x3cdiv\x3e \u0417\u0430\u0434\u0430\u0439\u0442\u0435 \u0448\u0430\u0431\u043b\u043e\u043d \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u043e\u0431\u0438\u044f: \x3cinput dojoAttachPoint\x3d"patternEdit" dojotype\x3d"dijit.form.ValidationTextBox" required\x3d"true" trim\x3d"true"\x3e\x3c/input\x3e\x3cbr/\x3e\x3cbr/\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"dijit.byNode(this.domNode.parentNode.parentNode.parentNode).apply()"\x3e\x3cb\x3eOK\x3c/b\x3e\x3c/button\x3e\x3c/div\x3e'),
title:"\u0420\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435",apply:function(){dojo.forEach(this._contentSetter.parseResults,function(l){"patternEdit"==l.dojoAttachPoint&&h.attr("value","/"+l.attr("value")+"/")});this.hide()}})).show();return!0}}]}}),new mill.queryBuilder.dataStore({sync:!0,document:mill.queryBuilder.queryDocument.buildFilterDatasetDocument(this.tree.rootNode.item,g.fieldInfo,g.field)})]})}),onFilterChanged:dojo.hitch(this,
function(g,h,l,m){this.queryChanged()})});this.gridPane.containerNode.appendChild(this.grid.domNode);this.grid.startup();var c=[];dojo.forEach(mill.queryBuilder.provider.templates(),dojo.hitch(this,function(g){c.push(new dijit.MenuItem({label:g.Name+" (\u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 Microsoft Excel)",onClick:dojo.hitch(this,function(){this.copyToExcel(g.Name)})}));c.push(new dijit.MenuItem({label:g.Name+" (\u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 PDF)",onClick:dojo.hitch(this,
function(){this.copyToExcel(g.Name,".pdf")})}));c.push(new dijit.MenuItem({label:g.Name+" (\u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 HTML)",onClick:dojo.hitch(this,function(){this.copyToExcel(g.Name,".html")})}))}));if(c.length){this.gridMenu.removeChild(this.ExcelMenuItem);var a=new dijit.Menu({});a.addChild(this.ExcelMenuItem);dojo.forEach(c,function(g){a.addChild(g)});this.gridMenu.addChild(new dijit.PopupMenuItem({label:this.ExcelMenuItem.label,popup:a}),0)}var b=this._oldCreateView=dojo.hitch(this.grid,
this.grid.createView),e=this;this.grid.createView=function(){var g=b.apply(e.grid,arguments);e._viewCreated(g);e._afterRowConnect=dojo.connect(g,"onAfterRow",e,"_afterRow");return g}}var f=this._buildQueryStructure();this.grid.setStructure(f);this.actualStructure(!0,!1).length&&this.grid.setStore(this._buildQueryStore());this.gridMenu.bindDomNode(this.grid.viewsNode)},_formatAggregate:function(c,a,b){a=a?' \u043f\u043e \u0441\u0442\u043e\u0431\u043b\u0446\u0443 "'+a+'"':"";if(8==c)return"\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e: "+
(b||0);if(9==c)return"\u0421\u0443\u043c\u043c\u0430"+a+": "+(b||0);if(10==c)return"\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435"+a+": "+(b||0);if(11==c)return"\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435"+a+": "+(b||0);if(12==c)return"\u0421\u0440\u0435\u0434\u043d\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435"+a+": "+(b||0)},refresh:function(){this.grid.store&&
this.grid.store.close();this.grid.setStore(this._buildQueryStore());this.gridMenu.bindDomNode(this.grid.viewsNode)},copyToExcel:function(c,a){this.grid.store&&(titles=[],titles.push("\x3ctitles\x3e"),dojo.forEach(this.actualStructure(!0,!1),function(b){titles.push('\x3cfield name\x3d"'+b.field+'"\x3e'+b.name+"\x3c/field\x3e")}),titles.push("\x3c/titles\x3e"),mill.queryBuilder.provider.downloadExcel(this.grid.store.document,titles.join(""),c,a))},clearFilters:function(){dojo.forEach(this.actualStructure(!0,
!0),function(c){c.filter=null;c.filterValue=null});this.refresh()},options:function(){(new mill.queryBuilder.parametersView({items:mill.queryBuilder.provider.options(),perform:dojo.hitch(this,function(c){dojo.forEach(c.items,function(a){a.Value=a.control.attr("value")});this.refresh()})})).show()},groupBy:function(){this.grid.focus.cell&&(this.grid.focus.cell.group=!0,this.queryChanged())},clearGroups:function(){dojo.forEach(this.actualStructure(!0,!0),function(c){c.group=!1});this.refresh()},aggregate:function(c){this.grid.focus.cell&&
(this.grid.focus.cell.aggregate=c,this.queryChanged())},clearArrregates:function(){dojo.forEach(this.actualStructure(!0,!0),function(c){c.aggregate=null});this.refresh()},fix:function(){this.grid.focus.cell&&(this.grid.focus.cell.fixed=!0,this.queryChanged())},unfix:function(){dojo.forEach(this.actualStructure(!0,!0),function(c){c.fixed=!1});this.queryChanged()}});dojo.mixin(mill.queryBuilder.application,{emptyModel:function(){return new dijit.tree.TreeStoreModel({store:new dojo.data.ItemFileWriteStore({data:{label:"root",
items:[{root:!0}]}}),query:{root:!0}})},getTreeLabelClass:function(c,a){return null},getTreeIconClass:function(c,a){if(c.IsTable)return"CTableSmallImageIndex";if(c.IsCategory)return"CCategorySmallImageIndex";if(c.IsPreCondition)return c.Checked?"CPreDefinedConditionCheckedSmallImageIndex":"CPreDefinedConditionSmallImageIndex";if(c.IsField)return c.IsExpandableField?c.PartialChecked?"CQueryFieldGrayedSmallImageIndex":"CQueryFieldSmallImageIndex":c.Checked?"CQueryFieldCheckedSmallImageIndex":"CQueryFieldSmallImageIndex"}});
dojo.declare("mill.queryBuilder.treeNode",dijit._TreeNode,{_checkPartialChecked:function(c){c.IsField&&c.children&&(c.PartialChecked=!1,dojo.forEach(c.children,function(a){a.Checked||a.PartialChecked?c.PartialChecked=!0:a.IsCategory&&dojo.forEach(a.children,arguments.callee)}))},_doClick:function(c){if(this.item.CanCheck)if(this.item.IsPreCondition&&this.item.Parameters.length)(new mill.queryBuilder.parametersView({items:this.item.Parameters,perform:dojo.hitch(this,function(b){dojo.forEach(b.items,
function(e){e.Value=e.control.attr("value")});this.item.Checked=!this.item.Checked;for(b=this;b;)this._checkPartialChecked(b.item),this.tree.model.onChange(b.item),b=b.getParent();this.tree.application.queryChanged()})})).show();else{this.item.Checked=!this.item.Checked;for(c=this;c;)this._checkPartialChecked(c.item),this.tree.model.onChange(c.item),c=c.getParent();this.tree.application.queryChanged()}else if(this.item.IsField&&this.item.IsExpandableField&&this.item.children){c=!1;for(var a=0;a<this.item.children.length;a++)this.item.children[a].Checked&&
(this.item.children[a].Checked=!1,this.tree.model.onChange(this.item.children[a]),c=!0);if(!c)for(a=0;a<this.item.children.length;a++)this.item.children[a].IsField&&this.item.children[a].CanCheck&&this.item.children[a].DisplayMode==mill.queryBuilder.provider.dmAlways&&(this.item.children[a].Checked=!0,this.tree.model.onChange(this.item.children[a]),c=!0);this.tree.model.onChange(this.item);c&&this.tree.application.queryChanged()}},_clickConnection:null,buildRendering:function(){this.inherited(arguments);
this._clickConnection=dojo.connect(this.iconNode,"onclick",this,this._doClick)},destroy:function(){this._clickConnection&&dojo.disconnect(this._clickConnection);this.inherited(arguments)}});dojo.declare("mill.SafeDndSelector",[dijit.tree._dndSelector],{_changeState:function(){this.node&&this.inherited(arguments)}});dojo.extend(dojox.grid.cells.Cell,{group:!1,aggregate:null,fixed:!1})})},"mill/jssupport/jsApplication/BaseApplication":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/dom-construct dojo/parser dijit/_WidgetBase ./_ApplicationBase mill/jssupport/_TranslationMixin mill/jssupport/base mill/jssupport/app mill/jssupport/session mill/mill".split(" "),
function(c,a,b,e,f,g,h,l,m,r,n,k){window.xwz=!0;return k.registerAlias("app.BaseApplication",c("mill.jssupport.jsApplication.BaseApplication",[g,h,l],{postCreate:function(){this.inherited(arguments);r.anonymousHandler=this.anonymousHandler;r.handler=this.handler;r.anonymousDataByIdent=this.anonymousDataByIdent.bind(this);r.combinedTranslationIdent=this.combinedTranslationIdent.bind(this)},initTranslations:function(){m._localizationCache={};b.forEach(this.anonymousDataByIdent("translations"),function(p){m._localizationCache[k.fieldValue(p,
"Language$N")]||(m._localizationCache[k.fieldValue(p,"Language$N").toUpperCase()]={});m._localizationCache[k.fieldValue(p,"Language$N").toUpperCase()][k.fieldValue(p,"Owner")]=k.fieldValue(p,"Translation")});k.local&&(k.local.resources=m._localizationCache[m.locale])},initInternetResources:function(){m._internetResourcesCache={};b.forEach(this.anonymousDataByIdent("internetResources"),function(p){m._internetResourcesCache[k.fieldValue(p,"Name")]=k.fieldValue(p,"Url")})},populatePageTitle:function(){var p=
r.getTranslation(this.pageTitle||"CabinetTitle");p&&(window.document.title=p)},translate:function(){this.inherited(arguments);this.populatePageTitle()},startup:function(){this.inherited(arguments);this.queryApplicationData(function(p){a.mixin(this,p[0].data[0]);a.mixin(r,p[0].data[0])}.bind(this));this.queryAnonymousData();this.initTranslations();this.populatePageTitle();f.parse();this.initInternetResources();m.processInternetResources();e.destroy("loading");a.isFunction(m.checkGDPR)&&m.checkGDPR()}}))})},
"mill/jssupport/form/_FormContentUtils":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/Deferred dojo/date dojo/when dojo/DeferredList dojo/query dojo/dom-style dijit/registry mill/jssupport/form/SelectListField mill/jssupport/base".split(" "),function(c,a,b,e,f,g,h,l,m,r,n,k){return mill.registerAlias("office.form._FormContentUtils",c("mill.jssupport.form._FormContentUtils",null,{getCarouselViewSlide:function(){for(var p=this;!p.isInstanceOf(office.layout._CarouselViewSlide)&&
p.getParent();)p=p.getParent();return p.isInstanceOf(office.layout._CarouselViewSlide)?p:null},getMenuItemTitle:function(){var p=this.getCarouselViewSlide();return p?p._layoutMenuItemWidget?p._layoutMenuItemWidget.get("text"):"":""},setWidgetHasDataValue:function(p,q){var u=new e,y=this.getFormWidget(p);if(y)return q||y.isInstanceOf(office.form.SelectListWidget)?(y.isInstanceOf(dijit.form.CheckBox)&&(q="1"===q),a.isObject(q)?(y.set("_savedValue",q)&&y.translate(),u.resolve()):y.isInstanceOf(office.form.FilteringSelectWidget)?
y.updateItem(q).then(u.resolve):(y.set("value",q),u.resolve())):u.resolve(),u.promise;u.resolve()},_setWidgetChainHasDataValueHandler:null,setWidgetChainHasDataValue:function(p){this._preventClearWidgetChildren=!0;var q=new e;this._setWidgetChainHasDataValueHandler||(this._setWidgetChainHasDataValueHandler=[]);var u=a.hitch(this,function(v){var t=this._setWidgetChainHasDataValueHandler.slice(),x=new e;this._setWidgetChainHasDataValueHandler.push(x);(new h(t)).then(a.hitch(this,function(){g(this.setWidgetHasDataValue(v,
p[v]),x.resolve)}))}),y;for(y in p)u(y);(new h(this._setWidgetChainHasDataValueHandler)).then(a.hitch(this,function(){this._preventClearWidgetChildren=!1;q.resolve()}));return q.promise},setAttachmentWidgetHasDataValue:function(p,q,u){if(u){var y=[u.className,u.propName,u.ID];u.fileName&&u.extension&&y.push(u.fileName,u.extension);y=y.join("','");q="\x3ca href\x3d\"javascript:base.downloadBlob('"+y+"')\""+(q?"":"style\x3d'text-decoration:none'")+"\x3e"+(q||"\x3cspan class\x3d'icon-set-attachment'\x3e\x3c/span\x3e")+
"\x3c/a\x3e"}q&&this.formWidgets[p]&&this.formWidgets[p].widget&&a.isFunction(this.formWidgets[p].widget._onComplete)&&this.formWidgets[p].widget._onComplete({name:q},!0)},setDependentWidgetsChainHasDataValue:function(p,q,u){var y=new e;require(["mill/mill"],a.hitch(this,function(v){var t=a.hitch(this,function(x){var z=v.fieldValue(q,p[x]);(z=z||(u&&a.isArray(u)?v.fieldValue(q,u[x]):""))&&e.when(this.formWidgets[p[x]].widget.updateItem(z),a.hitch(this,function(){x<p.length-1?t(x+1):y.resolve()}))});
t(0)}));return y.promise},_setCountry:function(p,q,u){var y=new e;"\u0420\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u0430\u044f \u0424\u0435\u0434\u0435\u0440\u0430\u0446\u0438\u044f"===p||"1"===p?this.formWidgets[u].widget.store.query({Description:"\u0420\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u0430\u044f \u0424\u0435\u0434\u0435\u0440\u0430\u0446\u0438\u044f"}).then(a.hitch(this,function(v){this.formWidgets[u].widget.set("item",v[0]);y.resolve()}),y.reject):this.formWidgets[u].widget.updateItem(q).then(y.resolve,
y.reject);return y.promise},_setRegion:function(p,q){var u=new e;this.formWidgets[p].widget.updateItem(q).then(u.resolve,u.reject);return u.promise},setCountryAndRegion:function(p,q,u,y){var v=new e;this.getFormWidget(u)&&this.getFormWidget(y)?this._setCountry(p,q,u,y).then(a.hitch(this,function(){this._setRegion(y,q).then(v.resolve,v.reject)}),v.reject):v.resolve();return v.promise},setMultipleAttachmentWidgetHasDataValue:function(p,q){var u=this[p];u&&u.setHasDataValue(q)},hideMultipleAttachmentWidgetHasDataValue:function(p,
q,u,y,v){(p=this[p])&&p.setHasDataValue(q,u,y,v);p.hideForValue()},getUploadedAttachmentFileName:function(p){return this.formWidgets[p].widget._uploadedFile?this.formWidgets[p].widget._uploadedFile.name:""},getField:function(p,q){var u=this.getFormWidget(p);if(u){for(;!u.isInstanceOf(office.form._FieldMixin)&&u.getParent();)u=u.getParent();u.isInstanceOf(office.form._FieldMixin)||(u=null);u&&a.isFunction(q)&&q.call(this,u);return u}return null},getMultipleAttachments:function(){return b.map(l(".officeMultipleAttachmentField",
this.containerNode),function(p){return r.byNode(p)})},hideDependentWidgetsChainHasDataValue:function(p,q,u){var y=new e;this.setDependentWidgetsChainHasDataValue(p,q,u).then(a.hitch(this,function(){for(var v={},t=0;t<p.length;t++)v[p[t]]=this.formWidgets[p[t]].widget.value;this.hideForValue(v,{hideMultiples:!1});y.resolve()}));return y.promise},hideCountryAndRegion:function(p,q,u,y){var v=new e;this.getFormWidget(u)&&this.getFormWidget(y)?this._setCountry(p,q,u).then(a.hitch(this,function(){this.formWidgets[u].widget.hideForValue(this.formWidgets[u].widget.value);
this._setRegion(y,q).then(a.hitch(this,function(){e.when(this.updateDependentWidget(y),a.hitch(this,function(){this.formWidgets[y].widget.hideForValue(this.formWidgets[y].widget.value).then(v.resolve)}))}))})):v.resolve();return v.promise},hideMultipleAttachments:function(){b.forEach(this.getMultipleAttachments(),function(p){p.hideForValue()})},unhideMultipleAttachments:function(){b.forEach(this.getMultipleAttachments(),function(p){p.unhideForValue()})},updateDependentWidget:function(p,q){var u=new e,
y=this.formWidgets[p].widget.get("item");if(y){var v=a.isFunction(this.formWidgets[p].widget.store.getValue)?this.formWidgets[p].widget.store.getValue(y,"ID"):y.ID;this.formWidgets[p].widget.set("item",null)}var t=a.hitch(this,function(z){1===z.length?(this.formWidgets[p].widget.set("item",z[0]),u.resolve()):v?a.isFunction(this.formWidgets[p].widget.store.fetchItemByIdentity)?this.formWidgets[p].widget.store.fetchItemByIdentity({identity:v,onItem:a.hitch(this,function(A){this.formWidgets[p].widget.set("item",
A)})}).then(u.resolve):(this.formWidgets[p].widget.store.query({ID:v})[0]&&this.formWidgets[p].widget.set("item",y),u.resolve()):u.resolve();this.formWidgets[p].widget.set("disabled","boolean"===typeof q?q:1===z.length)}),x=this.formWidgets[p].widget.store.query({ID:"*"});a.isArray(x)?t(x):x.then(t);return u.promise},setCharactersRemaining:function(p,q,u){(q=u.getFieldWidget())&&q.charactersRemainingWidget&&q.charactersRemainingWidget.set("text","Office.CharactersRemaining;: ;"+(u.maxLength-mill.normalizeLineBreaks(p).length))},
dateFormat:/^(((0[1-9]|[12]\d|3[01])\.(0[13578]|1[02])\.((19|[2-9]\d)\d{2}))|((0[1-9]|[12]\d|30)\.(0[13456789]|1[012])\.((19|[2-9]\d)\d{2}))|((0[1-9]|1\d|2[0-8])\.02\.((19|[2-9]\d)\d{2}))|(29\.02\.((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))))$/,dateInFuture:function(p){return 0<f.compare(mill.parseDate(p),mill.serverDate(k.mainHandler))},dateValidator:function(){var p=this.dateFormat;return function(q){return!this.required&&!q||p.test(q)}},timeFormat:/^\d\d:\d\d$/,
timeValidator:function(){var p=this.timeFormat;return function(q){return!this.required&&!q||p.test(q)}},emailValidator:function(p,q,u){var y=q=null,v="";"acSchoolOlymp"===k.accessCategory||"acStudOlymp"===k.accessCategory?(q=p.match(eval(k.getLocalization("Office.OlympMailRegExp","RU"))),y=!b.filter(k.getLocalization("Office.OlympInvalidMailDomains","RU").split(";"),function(t){var x=!p.match(new RegExp(t,"ig"));x||(v=k.getLocalization("Office.OlympInvalidMailDomainMessage").replace(/%domainName%/,
t));return!x}).length):(q=p.match(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,1000}))$/),y=!p.match(RegExp("\\@yahoo\\.","ig")));if(u||this.emailField)u?u.set("invalidMessageIdentifier",q&&!y?v||"Office.YahooConflict":"Office.DefaultInvalidMessage"):this.emailField&&this.emailField.set("invalidMessage",q&&!y?v||"Office.YahooConflict":"Office.DefaultInvalidMessage");return q&&y},emailConfirmValidator:function(p){return!!p&&
p===this.emailField.controlNode.get("value")},countryStore:function(){return k.domainStore("TCountry","TCountry (Descr) non required (no sections)",null,["Name","Description","EngDescription"])},regionStore:function(p){return k.domainStore("TCountry","TRFRegion of Country domain",[{domain:"TObject domain",name:"Country",value:a.hitch(this,function(){return this.formWidgets[p].widget.value||"1"})}])},notAnnulledCountryStore:function(){return k.domainStore("TCountry","TCountry (Descr) non required (no sections) (not annulled)",
null,["Name","Description","EngDescription"])},notAnnulledRegionStore:function(p){return k.domainStore("TCountry","TRFRegion of Country domain (not annulled)",[{domain:"TObject domain",name:"Country",value:a.hitch(this,function(){return this.formWidgets[p].widget.value||"1"})}])},cityTypeStore:function(){return k.enumerationStore("TCityType",!0)},campusStore:function(){return k.domainStore("TRegDepartment","TRegDepartment for postgraduate abit",[{domain:"TObject domain",name:"AdmYear",value:k.admissionYear}])}}))})},
"mill/dataBrowser/process":function(){define("dojo/i18n mill/mill mill/imageList mill/icon mill/ribbon mill/dataBrowser".split(" "),function(){window.mill||(mill={});mill.dataBrowser||(mill.dataBrowser={});mill.dataBrowser.process||(mill.dataBrowser.process={});dojo.mixin(mill.dataBrowser.process,{_dialog:null,_position:null,processStart:function(c,a){this._dialog&&this._dialog.hide();this._position=0;var b;this._dialog=new dijit.Dialog({content:dojo.i18n.substitute(mill.dataBrowser.cache.processDialog,
dojo.i18n.getLocalization("mill","resources")),title:dojo.i18n.getLocalization("mill","resources").SystemIsBusy,closable:!1,onHide:dojo.hitch(this,function(){clearInterval(b);setTimeout(dojo.hitch(this,function(){this._dialog.destroyRecursive();this._dialog=null}),1)}),onShow:dojo.hitch(this,function(){var e=dojo.query("*[widgetId]",this._dialog.containerNode);e.forEach(function(m,r){e[r]=dijit.byId(m.getAttribute("widgetId"))});var f=e[0],g=e[1];this._dialog.containerNode.style.padding="0";var h=
[];h.push("\x3cdiv\x3e");h.push(dojo.i18n.getLocalization("mill","resources").PleaseWait);h.push("\x3c/div\x3e");h.push('\x3cdiv class\x3d"animatedMillContentProgressSubtitle"\x3e');h.push(c);h.push("\x3c/div\x3e");dojo.addClass(f.containerNode,"animatedMillContentProgress");dojo.place(h.join(""),f.containerNode,"only");g.attr("percents",0);dojo.place("\x3cdiv\x3e"+dojo.i18n.getLocalization("mill","resources").EstimatedTime+": "+dojo.i18n.getLocalization("mill","resources").LessThen10+"\x3c/div\x3e",
g.containerNode,"only");0<a?(g.attr("button",!0),g.attr("label","0%")):g.attr("button",!1);var l=(new Date).valueOf();b=setInterval(dojo.hitch(this,function(){var m=Math.round(((new Date).valueOf()-l)/1E3),r="";r=function(n,k){for(;n.toString().length<k;)n="0"+n.toString();return n};r=10>=m?dojo.i18n.getLocalization("mill","resources").LessThen10:60>=m?m+" "+dojo.i18n.getLocalization("mill","resources").seconds+".":3600>=m?r(Math.floor(m/60),2)+":"+r(m%60,2)+".":Math.floor(m/3600)+":"+r(Math.floor(m%
3600/60),2)+":"+r(m%60,2)+".";r=dojo.i18n.getLocalization("mill","resources").EstimatedTime+": "+r;dojo.place("\x3cdiv\x3e"+r+"\x3c/div\x3e",g.containerNode,"only");0<a&&(m=Math.round(100*this._position/a),g.attr("label",m+"%"),g.attr("percents",m))}),1E3)})});this._dialog.show()},processStep:function(){this._position++},processStop:function(){this._dialog&&this._dialog.hide()}})})},"mill/jssupport/form/_FieldWidgetMixin":function(){define(["dojo/_base/declare","dojo/dom-class"],function(c,a){return mill.registerAlias("office.form._FieldWidgetMixin",
c("mill.jssupport.form._FieldWidgetMixin",null,{queryState:null,_setQueryStateAttr:function(b){this.queryState=b;b=[this.baseClass+"Progress",""];a.replace(this.domNode,b[-1*this.queryState+1],b[1*this.queryState])},forceDisable:function(b){this.set("disabled",b);var e=this.getFormContentWidget();e&&this.name&&!0===e._disabledStateBoolean&&(e._disabledState||(e._disabledState={}),e._disabledState[this.name]=!b)},getFieldWidget:function(){for(var b=this;!b.isInstanceOf(office.form._FieldMixin)&&b.getParent();)b=
b.getParent();return b.isInstanceOf(office.form._FieldMixin)?b:null},_formContentWidget:null,getFormContentWidget:function(){if(this._formContentWidget)return this._formContentWidget;var b=this.getFieldWidget();return b?this._formContentWidget=b.getFormContentWidget():null}}))})},"mill/jssupport/jsApplication/controls/editorControl/EditorControl":function(){define(["dojo/_base/declare","dojo/dom-style","dijit/_editor/plugins/LinkDialog","dijit/_editor/plugins/AlwaysShowToolbar","dijit/Editor"],function(c,
a,b,e,f){return mill.registerAlias("app.view.EditorControl",c("mill.jssupport.jsApplication.controls.editorControl.EditorControl",f,{height:"",plugins:"bold italic underline strikethrough | insertOrderedList insertUnorderedList".split(" "),extraPlugins:["dijit/_editor/plugins/AlwaysShowToolbar","createLink","unlink"],fullWidth:null,_setFullWidthAttr:function(g){this.fullWidth=g;(g=window.app.getControlField(this))&&g.set("fullWidth",this.fullWidth)},startup:function(){this.inherited(arguments);this.iframe.style.minHeight=
"80px";setTimeout(function(){var g=this.iframe.contentWindow.document.getElementById("dijitEditorBody");g&&(g.style.minHeight="80px")}.bind(this),0)}}))})},"mill/urlEnshortener":function(){define("dojo/_base/lang dojo/i18n dijit/_Widget dijit/form/Button dijit/form/ValidationTextBox mill/mill".split(" "),function(c){window.mill||(mill={});mill.urlEnshortener||(mill.urlEnshortener={});dojo.mixin(mill.urlEnshortener,{registerUrl:function(a,b,e,f){b={Url:e,Handler:b||""};if(dojo.isObject(f)){e=1;for(var g in f)1==
e||2==e||3==e?(b["ParamName"+e]=g,b["ParamValue"+e]=f[g],e++):-1==b.Url.indexOf("?")?b.Url=b.Url+"?"+g+"\x3d"+f[g]:b.Url=b.Url+"\x26"+g+"\x3d"+f[g]}var h="";dojo.xhrPost({url:mill.getRequestUrl(a,"registerUrl"),handleAs:"text",sync:!0,preventCache:!0,headers:{"Disable-Basic-Auth":"yes"},content:b,load:dojo.hitch(this,function(l){return h=l})});return h}});return mill.urlEnshortener})},"mill/jssupport/StoreData":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/data/util/filter dojo/data/util/sorter dojo/Deferred dojo/when mill/mill mill/jssupport/base".split(" "),
function(c,a,b,e,f,g,h,l,m){return l.registerAlias("vuz.storeData",c("mill.jssupport.StoreData",[l.data],{doTranslate:null,useQuerySoring:!1,_load:function(){if(("TEnumerationItem"===this.className||!0===this.doTranslate)&&"undefined"!==typeof m.locale){var r=m.locale.toUpperCase();this.language!==r&&(this.language=r,this._data=null)}return this.inherited(arguments)},getLabel:function(r){return this.getValue(r,"Description")||this.getValue(r,"EngDescription")||this.getValue(r,"Name")||this.getValue(r,
"ID")},getIdentity:function(r){return this.getValue(r,"ID")||this.getValue(r,"Name")||this.getValue(r,"EngDescription")||this.getValue(r,"Description")}}))})},"mill/dataBrowser/parametersView":function(){define("dojo/DeferredList dijit/TitlePane dijit/form/ValidationTextBox dijit/form/CheckBox dijit/form/SimpleTextarea dijit/form/Textarea dijit/form/DateTextBox mill/mill mill/dataBrowser/blobAttachment".split(" "),function(){mill.dataBrowser||(mill.dataBrowser={});dojo.declare("mill.dataBrowser.parametersView",
[],{grid:null,item:null,identity:null,rttiManager:null,routine:null,routineInfo:null,parameters:null,dialog:null,fileExtension:null,buttonsPaneContent:dojo.cache("mill","dataBrowser/buttonsPane.html",'\x3cdiv align\x3d"right"\x3e\x3cspan dojoType\x3d"dijit.form.Button" onClick\x3d"dijit.byNode(this.domNode.parentNode.parentNode.parentNode.parentNode.parentNode)._perform()"\x3e\x3cb\x3eOK\x3c/b\x3e\x3c/span\x3e\x3cspan dojoType\x3d"dijit.form.Button" onClick\x3d"dijit.byNode(this.domNode.parentNode.parentNode.parentNode.parentNode.parentNode).hide()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/span\x3e\x3c/div\x3e'),
constructor:function(c){c&&dojo.mixin(this,c);this.routineInfo=this.rttiManager.getRoutine(this.routine);this.parameters=dojo.clone(this.rttiManager.listParameters(this.routine));dojo.forEach(this.parameters,dojo.hitch(this,function(a){a.domain=this.rttiManager.getDomain(a.Domain);"TBlobDomain"!=a.domain.handle||a.domain.blobSubtype||(a.domain.blobSubtype=this.rttiManager.get("TEnumerationItem",a.domain.BlobSubtype,null))}));!this.identity&&this.item&&(c=dojo.isArray(this.item)?this.item[0]:this.item)&&
(this.identity=c.store.getIdentity(c))},show:function(){var c=this.rttiManager,a="1"==this.routineInfo.UseTabs?new dijit.layout.TabContainer({region:"center"}):new dijit.layout.BorderContainer({design:"sidebar",region:"center"}),b=[],e=function(n,k){var p=null;dojo.forEach(b,function(u){u.caption==n&&(p=u)});p||(p={caption:n,groups:[]},b.push(p));var q=null;dojo.forEach(p.groups,function(u){u.caption==k&&(q=u)});q||(q={caption:k,parameters:[]},p.groups.push(q));return q};dojo.forEach(this.parameters,
function(n){e(n.Tab,n.Group).parameters.push(n)});var f=!1;dojo.forEach(b,function(n,k){var p=!1,q=new dijit.layout.ContentPane({splitter:!0,style:"overflow: auto",title:n.caption});dojo.forEach(n.groups,function(u){var y=!1,v=new dijit.TitlePane({toggleable:!1,title:u.caption,style:"margin-bottom:8px;"},q.containerNode.appendChild(document.createElement("div")));u.caption||(dojo.style(v.titleBarNode,{display:"none"}),dojo.style(v.hideNode,{borderTop:"1px solid #B5BCC7"}));dojo.style(v.containerNode,
{padding:"2px"});var t=document.createElement("table");t.width="100%";dojo.forEach(u.parameters,function(x){var z=t.insertRow(-1);if("TBooleanDomain"==x.domain.handle){var A=z.insertCell(-1);A.appendChild(document.createTextNode(x.Description+":"));A=z.insertCell(-1);x.control=new dijit.form.CheckBox({onChange:function(E){this.domNode.parentNode.removeChild(this.domNode.nextSibling);this.domNode.parentNode.appendChild(document.createTextNode(E?x.domain.TrueValue:x.domain.FalseValue))}},A.appendChild(document.createElement("span")));
A.appendChild(document.createTextNode(x.domain.FalseValue))}else"TEnumerationDomain"==x.domain.handle?(A=z.insertCell(-1),A.appendChild(document.createTextNode(x.Description+":")),A=z.insertCell(-1),x.control=new dijit.form.ValidationTextBox({style:"width:100%",onChange:function(E){(E=c.get("TEnumerationItem",E))&&this.attr("value","1"==x.domain.ShowNames?E.Name:E.Description)}},A.appendChild(document.createElement("span")))):"TStringDomain"==x.domain.handle&&128<x.domain.Length?(A=z.insertCell(-1),
A.colSpan=2,A.appendChild(document.createTextNode(x.Description+":")),A.appendChild(document.createElement("br")),x.control=new dijit.form.SimpleTextarea({style:"width:100%",rows:5},A.appendChild(document.createElement("span")))):"TDateDomain"==x.domain.handle?(A=z.insertCell(-1),A.appendChild(document.createTextNode(x.Description+":")),A=z.insertCell(-1),x.control=new dijit.form.DateTextBox({style:"width:100%",required:"1"==x.domain.Required},A.appendChild(document.createElement("span")))):"TBlobDomain"==
x.domain.handle?"btNamedFile"==x.domain.blobSubtype.Name||"btXHTML"==x.domain.blobSubtype.Name||"btImage"==x.domain.blobSubtype.Name||"btText"==x.domain.blobSubtype.Name||"btHTML"==x.domain.blobSubtype.Name?(A=z.insertCell(-1),A.appendChild(document.createTextNode(x.Description+":")),A=z.insertCell(-1),x.control=new mill.dataBrowser.parametersViewDownloadableBlob({handle:c.handle,rttiManager:c,domain:x.Domain,style:"width:100%"},A.appendChild(document.createElement("span")))):(A=z.insertCell(-1),
A.appendChild(document.createTextNode(x.Description+":")),A=z.insertCell(-1),x.control=new dijit.form.ValidationTextBox({required:"1"==x.domain.Required,style:"width:100%"},A.appendChild(document.createElement("span")))):(A=z.insertCell(-1),A.appendChild(document.createTextNode(x.Description+":")),A=z.insertCell(-1),x.control=new dijit.form.ValidationTextBox({required:"1"==x.domain.Required,style:"width:100%"},A.appendChild(document.createElement("span"))));"scPrivate"==c.get("TEnumerationItem",x.Scope,
null).Name?z.style.display="none":f=p=y=!0});y?v.attr("content",t):v.domNode.parentNode.removeChild(v.domNode)});p&&a.addChild(q)});if("1"!=this.routineInfo.UseTabs){var g=a.getChildren();dojo.forEach(g,function(n,k){k?n.attr("region","right"):n.attr("region","center");n.domNode.style.width=100/g.length+"%"})}var h=[];dojo.forEach(this.parameters,dojo.hitch(this,function(n){!this._initParameter(n)&&n.InitializationMember&&(n.initializationMember=c.get("TProperty",n.InitializationMember)||c.get("TMethod",
n.InitializationMember),n.initializationMember&&("TProperty"==n.initializationMember.handle?("TClassDomain"==n.domain.handle&&h.push({part:0,name:n.initializationMember.Name+("soName"==c.get("TEnumerationItem",n.domain.ShowObjectInfoType,null).Name?"$N":"$D")}),h.push({part:0,name:n.initializationMember.Name})):mill.executeMethod({handler:c.handle,sync:!1,className:c.get("TClass",n.initializationMember.Master).Name,methodName:n.initializationMember.Name,params:{ID:this.identity},load:function(k){k=
mill.decodeDataNode(k.documentElement.childNodes[0].childNodes[0]);"TBooleanDomain"==n.domain.handle?n.control.attr("checked","1"==k):"TDateDomain"==n.domain.handle?n.control.attr("value",mill.parseDate(k)):n.control.attr("value",k)}})))}));h.length&&(h.push({part:1,name:"ID",value:this.identity}),mill.queryCursor({handler:c.handle,className:c.get("TClass",this.routineInfo.Master).Name,sync:!0,query:h,fetched:dojo.hitch(this,function(n){dojo.forEach(this.parameters,function(k){k.initializationMember&&
"TProperty"==k.initializationMember.handle&&("TClassDomain"==k.domain.handle?(k.control.attr("value",mill.fieldValue(n,k.initializationMember.Name+("soName"==c.get("TEnumerationItem",k.domain.ShowObjectInfoType,null).Name?"-N":"-D"))),k.initValue=mill.fieldValue(n,k.initializationMember.Name)):"TBooleanDomain"==k.domain.handle?k.control.attr("checked","1"==mill.fieldValue(n,k.initializationMember.Name)):"TDateDomain"==k.domain.handle?k.control.attr("value",mill.parseDate(mill.fieldValue(n,k.initializationMember.Name))):
k.control.attr("value",mill.fieldValue(n,k.initializationMember.Name)))})})}));if(f){var l=new dijit.Dialog({title:this.routineInfo.Description}),m=new dijit.layout.BorderContainer({design:"headline",style:"width:100%;height:100%"}),r=new dijit.layout.ContentPane({region:"bottom",splitter:!1,style:"padding:0;border:0 none",content:this.buttonsPaneContent});m.addChild(a);m.addChild(r);r=dojo.coords(dojo.body());dojo.style(l.containerNode,{width:.9*r.w+"px",height:.95*r.h+"px",padding:0});l.containerNode.appendChild(m.domNode);
dojo.mixin(l,{_perform:dojo.hitch(this,function(){this._perform()&&l.hide()})});this.dialog=l;this._dialogCreated();l.startup();l.show().always(function(){var n=1E6;dojo.forEach(a.getChildren(),function(k){var p=k.containerNode.childNodes;p=dojo.coords(dijit.byNode(p[p.length-1]).hideNode);k=dojo.coords(k.containerNode).h-(p.t+p.h);n>k-18&&(n=k-18)});0<n&&(l.containerNode.style.height=dojo.coords(l.containerNode).h-n+"px",l._size(),l._position(),m.layout())})}else this._perform()},validate:function(){var c=
!0;dojo.forEach(this.parameters,dojo.hitch(this,function(a){c&&a.control&&a.control.validate&&((c=a.control.validate())||dijit.focus(a.control.focusNode))}));return c},_perform:function(c){if(!this.validate()||this.routineInfo.Confirmation&&!confirm(this.routineInfo.Confirmation))return!1;dojo.forEach(dojo.isArray(this.item)&&"1"!=this.routineInfo.IsClassMethod?dojo.map(this.item,dojo.hitch(this,function(a){return a.store.getIdentity(a)})):[this.identity],dojo.hitch(this,function(a){var b={handler:this.rttiManager.handle,
sync:!1,className:this.rttiManager.get("TClass",this.routineInfo.Master).Name,params:{},load:dojo.hitch(this,function(){!c&&this.grid&&(this.grid.parentView?this.grid.parentView.refresh():this.grid.refresh())})};"1"!=this.routineInfo.IsClassMethod&&dojo.mixin(b.params,{ID:a});dojo.forEach(this.parameters,dojo.hitch(this,function(e){if(!e.useLess){var f=null;if("TBooleanDomain"==e.domain.handle)f=e.control.attr("checked")?1:0;else if("TDateDomain"==e.domain.handle)f=mill.formatDate(e.control.attr("value"));
else if("TEnumerationDomain"==e.domain.handle){var g=e.control.attr("value");f=(f=dojo.filter(this.rttiManager.byHandle("TEnumerationItem"),function(h){return(h.Master==e.domain.ID||h.Master==e.domain.BasedOnDomain)&&g==("1"==e.domain.ShowNames?h.Name:h.Description)})[0])?f.ID:null}else f=e.initValue||e.control.attr("value");b.params[e.Name]=f}}));"TMethod"==this.routineInfo.handle?(dojo.mixin(b,{methodName:this.routineInfo.Name}),mill.executeMethod(b)):"TOleObjectMethod"==this.routineInfo.handle?
(dojo.mixin(b,{methodName:this.routineInfo.Name}),mill.executeOleMethod(b)):"TExcelTemplate"==this.routineInfo.handle?(dojo.mixin(b,{extension:this.fileExtension,fileName:this.routineInfo.Description+(this.fileExtension||".xls"),templateName:this.routineInfo.Name}),mill.executeExcelTemplate(b)):"TWordTemplate"==this.routineInfo.handle&&(dojo.mixin(b,{fileName:this.routineInfo.Description+".doc",templateName:this.routineInfo.Name}),mill.executeWordTemplate(b))}));return!0},_dialogCreated:function(){},
_initParameter:function(c){return!1}});dojo.declare("mill.dataBrowser.parametersViewDownloadableBlob",[dijit._Widget,dijit._Templated],{templateString:'\x3ca target\x3d"blank"\x3e(\u041d\u0435\u0442)\x3c/a\x3e',attributeMap:dojo.delegate(dijit._WidgetBase,{propertyName:"",className:"",value:"",hasData:""}),propertyName:null,className:null,value:null,hasData:!1,handle:null,domain:null,rttiManager:null,_render:function(){if(this.hasData){var c=this.rttiManager.getDomain(this.domain);"btXHTML"==c.blobSubtype.Name||
"btText"==c.blobSubtype.Name||"btHTML"==c.blobSubtype.Name?(this.domNode.target="",this.domNode.href="javascript:mill.dataBrowser.parametersViewDownloadableBlob.__showXHTMLBlob('"+handle+"','"+this.className+"','"+this.propertyName+"','"+this.value+"')"):"btImage"==c.blobSubtype.Name?(this.domNode.target="",new mill.dataBrowser.blobAttachment({hrefConstructor:["javascript:mill.dataBrowser.parametersViewDownloadableBlob.__showImageBlob('",[handle,this.className,this.propertyName,this.value,c.Extension||
".bmp"],"')"],parametersView:!0},this.domNode)):(this.domNode.target="_blank",this.domNode.href="/"+this.handle+"/getblob?query\x3d"+mill._itemsToQuery({className:this.className,propName:this.propertyName,domain:this.domain,ID:this.value}));this.domNode.innerHTML="(\u0414\u0430\u043d\u043d\u044b\u0435)"}else this.domNode.href="",this.domNode.innerHTML="(\u041d\u0435\u0442)"},_setPropertyNameAttr:function(c){this.propertyName=c;this._render()},_setClassNameAttr:function(c){this.className=c;this._render()},
_setValueAttr:function(c){this.value=c;this._render()},_setHasDataAttr:function(c){this.hasData=c;this._render()}});dojo.mixin(mill.dataBrowser.parametersViewDownloadableBlob,{__showXHTMLBlob:function(c,a,b,e){(new dijit.Dialog({content:dojo.i18n.substitute(dojo.cache("mill","showReferenceDialog.html",'\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"padding:10px;overflow:hidden"\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" extractContent\x3d"true" region\x3d"center" style\x3d"margin:0;padding:0;overflow:auto"\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"bottom" style\x3d"margin:0;padding:0;padding-top:10px"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"dijit.byNode(this.domNode.parentNode.parentNode.parentNode.parentNode).hide()"\x3e\x3cb\x3e ${close} \x3c/b\x3e\x3c/button\x3e\x3c/div\x3e\x3c/div\x3e'),
dojo.i18n.getLocalization("mill","resources")),draggable:!1,parseOnLoad:!0,title:"\u0414\u0430\u043d\u043d\u044b\u0435",style:"width:90%;height:90%",onShow:function(){this.containerNode.children[0].style.height=dojo.contentBox(this.domNode).h-dojo.marginBox(this.titleBar).h-20+"px";dojo.query('[region\x3d"center"]',this.domNode).forEach(function(f){f=dijit.byNode(f);onload&&(f.onLoad=dojo.hitch(f,onload));f.attr("href","/"+c+"/getblob?query\x3d"+mill._itemsToQuery({className:a,propName:b,ID:e}))})},
onHide:function(){setTimeout(dojo.hitch(this,this.destroyRecursive),1)}})).show()},__showImageBlob:function(c,a,b,e,f,g){"newTab"==g?mill.downloadBlob({handler:c,className:a,propName:b,ID:e,extension:f}):"download"==g?mill.downloadBlob({handler:c,className:a,propName:b,ID:e,extension:f,fileName:"\u0421\u043a\u0430\u043d_\u0441\u043f\u0440\u0430\u0432\u043a\u0438"+f}):(new dijit.Dialog({content:dojo.i18n.substitute(dojo.cache("mill","showImageDialog.html",'\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"padding:0px;padding-top:0;overflow:hidden"\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"top" style\x3d"height:30px;padding:0px"\x3e\x3cdiv dojoType\x3d"dijit.Toolbar"\x3e\x3cdiv dojoType\x3d"dijit.form.Button" iconClass\x3d"dijitEditorIcon dijitEditorIconFullScreen" onClick\x3d"mill.inscribeImage(dojo.query(\'img\', this.domNode.parentNode.parentNode.parentNode.parentNode.parentNode)[0])" showLabel\x3d"false"\x3e 100% \x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"padding:10px"\x3e\x3cdiv style\x3d"margin:0;overflow:auto;width:100%;height:100%"\x3e\x3cimg/\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"bottom" style\x3d"margin:0;padding:10px"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"dijit.byNode(this.domNode.parentNode.parentNode.parentNode.parentNode).hide()"\x3e\x3cb\x3e ${close} \x3c/b\x3e\x3c/button\x3e\x3c/div\x3e\x3c/div\x3e'),
dojo.i18n.getLocalization("mill","resources")),draggable:!1,parseOnLoad:!0,title:"\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435",style:"width:90%;height:90%",onShow:function(){this.containerNode.children[0].style.height=dojo.contentBox(this.domNode).h-dojo.marginBox(this.titleBar).h-20+"px";dojo.query('[region\x3d"center"]',this.domNode).forEach(function(h){var l=dijit.byNode(h);onload&&(l.onLoad=dojo.hitch(l,onload));dojo.query("*",h)[0].src="/"+c+"/getblob"+f+"?query\x3d"+mill._itemsToQuery({className:a,
propName:b,ID:e})})},onHide:function(){setTimeout(dojo.hitch(this,this.destroyRecursive),1)}})).show()}})})},"mill/jssupport/form/_FormContent":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/fx dojo/topic dojo/dom-style dojo/dom-class dojo/dom-construct dojo/window dojo/when dojo/Deferred dojo/DeferredList dojo/request dijit/_Widget dijit/_Container dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dojox/form/manager/_Mixin dojox/form/manager/_NodeMixin dojox/form/manager/_FormMixin dojox/form/manager/_ValueMixin dojox/form/manager/_EnableMixin dojox/form/manager/_DisplayMixin dojox/form/manager/_ClassMixin dojo/text!mill/jssupport/form/_formContent.html dojo/i18n!mill/nls/resources mill/jssupport/form/_FormContentUtils mill/jssupport/form/_FormContentSup mill/jssupport/Announcement mill/jssupport/_TranslationMixin mill/jssupport/TranslatableNode mill/jssupport/base mill/jssupport/session mill/mill".split(" "),
function(c,a,b,e,f,g,h,l,m,r,n,k,p,q,u,y,v,t,x,z,A,E,I,H,L,B,D,K,M,R,Q,T,U,W){var ca=c("FormContainer",[q,y,v],{});return mill.registerAlias("office.form._FormContent",c("mill.jssupport.form._FormContent",[q,y,v,u,t,x,z,A,E,I,H,D,K,R],{baseClass:"officeFormContent",templateString:L,style:{position:"relative"},submitButtonType:"button",submitApplicationLabel:"Office.SubmitApplication",submittingApplicationLabel:"Office.SubmittingApplication",retrySubmitApplicationLabel:"Office.RetrySubmitApplication",
executeMethodName:"Create",dataChangingMode:!0,_dataChangingMode:null,executeClassName:null,submitButtonLabel:null,content:null,statusClassName:null,timePointIdent:null,formTitle:null,scrollSpyTitle:null,hideSubmitTextColumn:null,canChangeData:null,_announcementWidget:null,_layoutScrollSpyItem:null,_idx:null,_preventClearWidgetChildren:!1,_preventInspectFormWidgets:!1,postRequestAwaitHandler:null,onSelect:null,messageNode:null,postMixInProperties:function(){this.inherited(arguments);this.submitButtonLabel=
this.submitApplicationLabel},_setSubmitButtonLabelAttr:function(J){this.submitButton.set("label",this.submitButtonLabel=J)},_setContentAttr:function(J){(new ca({templateString:this.content=J,attachScope:this})).placeAt(this.containerNode)},_setFormTitleAttr:function(J){this.formTitleNode.set("text",this.formTitle=J)},_setHideSubmitTextColumnAttr:function(J){this.submitButton.set("hideTextColumn",this.hideSubmitTextColumn=J)},_setCanChangeDataAttr:function(J){(this.canChangeData=J)?(this.set("submitButtonLabel",
"Office.ChangeData"),g.set(this.button2.domNode,{display:"none"})):(this.set("submitButtonLabel",this.submitApplicationLabel),g.set(this.button2.domNode,{display:"inline-block"}))},_setDataChangingModeAttr:function(J){(this._dataChangingMode=this.dataChangingMode=J)?h.remove(this.domNode,"hideForValue"):this.dataChangingMode||h.add(this.domNode,"hideForValue")},startup:function(){this.inherited(arguments);"button"===this.submitButtonType&&this.submitButton.controlNode.set("onClick",a.hitch(this,this.submitForm));
f.subscribe("office.form._FormContent/checkTimePoint",a.hitch(this,function(){this.timePointIdent&&T.regDepartment[this.statusClassName]&&p(W.getRequestUrl(T.mainHandler,"execute.xml"),{headers:{"Disable-Basic-Auth":"yes"},method:"POST",handleAs:"xml",sync:!1,preventCache:!0,data:W.buildQueryParams({className:"TTimeLine",methodName:"WhenReg",params:{TimeLineName:T.timeLineName,TimePointIdents:this.timePointIdent,RegDepartment:T.regDepartment[this.statusClassName]}})}).then(a.hitch(this,function(J){W.parseErrorMessage(J)&&
(this.createErrorMessage(W.parseErrorMessage(J)),this.submitButton.set("disabled",!0));"1"===W.fieldValue(J.childNodes[0].childNodes[0],"Result")&&(this.hideForValue(),this.submitButton.set("disabled",!0))}),a.hitch(this,function(J){this.createErrorMessage(J.message);this.submitButton.set("disabled",!0)}))}));this.own(f.subscribe("office.form._FormContent/preventModerationRequest",a.hitch(this,function(){this.preventModerationRequest&&(this._dataChangingMode&&this.hideForValue(),this.hideActions({preventModerationRequest:!1,
notPrimary:!0,hideForNode:!0,hideForNodeText:"* ;Office.PreventModerationRequestInfo"}))})))},_disabledState:null,_disabledStateBoolean:!1,toggleDisabledState:function(){var J=null;if(this._disabledState){J={};for(var P in this._disabledState)this._disabledState.hasOwnProperty(P)&&this.formWidgets[P]&&this.formWidgets[P].widget&&this.formWidgets[P].widget.focusNode&&(J[P]=this._disabledState[P])}this._disabledState=this.disable(J);this._disabledStateBoolean=!this._disabledStateBoolean},_isAttachment:function(J){return J.isInstanceOf(office.form.Attachment)||
J.isInstanceOf(mill.uploader)},resetAttachment:function(){this.inspectFormWidgets(function(J,P){!window.xwz&&this._isAttachment(P)&&P.reset()},null,null)},resetForm:function(){this.inspectFormWidgets(function(J,P,w){!window.xwz&&this._isAttachment(P)||this.formWidgetValue(J,w)},null,null);this.resetAttachment()},postForm:function(){this._announcementWidget=null},submitForm:function(){if(this._dataChangingMode){if(!this.validate())return!1;var J={state:0,formContent:this,isValid:!0,result:[]};f.publish("office.form.MultipleAttachment/byState",
J);0<J.result.length?m.scrollIntoView(J.result[0].domNode):(this.submitButton.set("disabled",!0),this.set("submitButtonLabel",this.submittingApplicationLabel),g.set(this.button2.domNode,{display:"none"}),this.toggleDisabledState(),this._announcementWidget?this._announcementWidget.hide().then(a.hitch(this,this.postForm)):this.postForm())}else this.unhideForValue()},postRequest:function(J){var P=new n;if(!window.FormData)return this.createErrorMessage(B.oldBrowser),P.reject(Error(B.oldBrowser)),P.promise;
p(J.url,{headers:{"Disable-Basic-Auth":"yes"},method:"POST",handleAs:"xml",sync:!1,preventCache:!0,data:J.data}).then(function(w){var C=function(){this.submitButton.set("disabled",!1);this.set("submitButtonLabel",this.submitApplicationLabel);this.toggleDisabledState()}.bind(this);if(W.parseErrorMessage(w))C.bind(this)(),this.set("submitButtonLabel",this.retrySubmitApplicationLabel),this.createErrorMessage(W.parseErrorMessage(w)),this.resetAttachment(),P.reject(w);else{var F=this.postRequestAwaitHandler;
a.isFunction(F)&&(F=F.call(this,w));r(F,function(){C.bind(this)();P.resolve(w)},function(G){C.bind(this)();this.set("submitButtonLabel",this.retrySubmitApplicationLabel);this.createErrorMessage(W.parseErrorMessage(G));this.resetAttachment();P.reject(G)}.bind(this))}}.bind(this),a.hitch(this,function(w){this.submitButton.set("disabled",!1);this.set("submitButtonLabel",this.retrySubmitApplicationLabel);this.toggleDisabledState();w.response.status!==J.skipErrorStatus&&this.createErrorMessage(w.message+
(403===w.response.status?";Office.Error403":0===w.response.status?";Office.Error0":""));this.resetAttachment();P.reject(w)}));return P.promise},queryArgs:function(){return{}},processWebAnalytics:function(){if("TForeignAbitStatusRequest"===this.executeClassName&&"Finalize"===this.executeMethodName&&window.ym&&window.webAnalyticsConfig.WebAnalyticsYandexID)if("acForeignAbiturient"===T.accessCategory)try{ym(window.webAnalyticsConfig.WebAnalyticsYandexID,"reachGoal","ADM_APPLY_BA")}catch(J){}else if("acForeignMagAbiturient"===
T.accessCategory)try{ym(window.webAnalyticsConfig.WebAnalyticsYandexID,"reachGoal","ADM_APPLY_MA")}catch(J){}},createTModerationRequest:function(){var J=new n;if(this.executeClassName&&this.executeMethodName){var P={className:this.executeClassName,methodName:this.executeMethodName,params:[]},w={};this._preventInspectFormWidgets||this.inspectFormWidgets(function(F,G){if(!this._isAttachment(G)){var O=this.formWidgetValue(F);"boolean"===typeof O&&(O=!0===O?"1":"0");w[F]=O}},null,null);a.mixin(w,{IPAddress:(U||
mill.session).ipAddress,RemoteUser:(U||mill.session).getRemoteUserID(),ReferText:mill.getReferText()});var C=this.queryArgs();a.isArray(C)?a.isArray(C)&&b.forEach(C,function(F,G){var O=a.mixin({},w);a.mixin(O,C[G]);P.params.push(a.mixin({},O))}):(a.mixin(w,C),P.params.push(a.mixin({},w)));this.inspectFormWidgets(function(F,G){if(office.form.FileUploader&&G.isInstanceOf(office.form.FileUploader))for(var O=b.filter(G.getChildren(),function(S){return S.validateFile()}),N=0;N<O.length;)P.params[N]||P.params.push(a.mixin({},
w)),a.mixin(P.params[N],O[N].queryArgs()),N++},null,null);P=W.buildQueryParams(P,!1);this.processWebAnalytics();this.postRequest({url:W.getRequestUrl(T.mainHandler,"execute.xml"),data:P}).then(a.hitch(this,function(F){var G=W.fieldValue(F.childNodes[0].childNodes[0],"Result"),O={};this.inspectFormWidgets(function(N,S){O[N]=this._isAttachment(S)?{hasData:0<S._uploadState,className:this.executeClassName,propName:N,ID:W.fieldValue(F.childNodes[0].childNodes[0],"Result"),fileName:0<S._uploadState&&S._uploadedFile?
S._uploadedFile.name:null,extension:0<S._uploadState&&S._uploadedFile?"."+S._uploadedFile.name.split(".").pop():null}:this.formWidgetValue(N)},null,null);J.resolve({ID:G,values:O})}),a.hitch(this,function(F){g.set(this.button2.domNode,{display:"inline-block"});J.reject(F)}));return J.promise}J.reject()},executeModerationRequest:function(){this.createTModerationRequest().then(a.hitch(this,function(J){this.callbackFunction?this.callbackFunction(J.values,J):(this.hideForValue(J.values),this.hideActions({hideForNode:!0}))}),
console.error)},_hideNode:null,hideActions:function(J){if(!J||!J.notPrimary||"none"!==g.get(this.submitButton.domNode).display)if(g.set(this.submitButton.domNode,{display:"none"}),(J?"boolean"===typeof J.preventModerationRequest?J.preventModerationRequest:this.preventModerationRequest:this.preventModerationRequest)&&f.publish("office.form._FormContent/preventModerationRequest"),J&&J.hideForNode){var P=this.submitButton.domNode.parentNode;this._hideNode||(this._hideNode=new Q({text:J.hideForNodeText||
"* ;Office.RequestOnModeration",className:"small dim text-align-justify margin-1em-0"},P.appendChild(document.createElement("div"))))}else J&&J.clearNode&&this._hideNode&&(this._hideNode.destroyRecursive(),this._hideNode=null)},_createMessage:function(J){this._announcementWidget=new M(J,l.create("div",{},this.messageNode));m.scrollIntoView(this._announcementWidget.domNode);return this._announcementWidget},createSuccessMessage:function(J,P,w,C,F){this._createMessage({text:J,onHide:P||null,icon:w||
"smile",color:C||"blue",readOnly:5===arguments.length?F:!0})},createErrorMessage:function(J,P,w){return this._createMessage({text:J,icon:P||"confused",color:"red",textAlign:"text-align-left",readOnly:3===arguments.length?w:!0})},_hideForValueHandler:null,__hideForValue:new Function,hideForValue:function(J,P){this._preventClearWidgetChildren=!0;var w=new n;J=J||{};this.inspectFormWidgets(a.hitch(this,function(C,F,G){if(!J&&!this._isAttachment(F)||J)try{if(F.hideForValue){this._hideForValueHandler||
(this._hideForValueHandler=[]);var O=this._hideForValueHandler.slice(),N=new n;this._hideForValueHandler.push(N);(new k(O)).then(a.hitch(this,function(){r(F.hideForValue(J[C]),N.resolve)}))}}catch(S){}}),null,null);P&&!0!==P.hideMultiples||this.hideMultipleAttachments();this.set("dataChangingMode",!1);this.set("canChangeData",!0);(new k(this._hideForValueHandler||[])).then(a.hitch(this,function(){r(this.__hideForValue(J,P),a.hitch(this,function(){this._preventClearWidgetChildren=!1;w.resolve()}))}));
return w.promise},unhideForValue:function(){this.set("dataChangingMode",!0);this.inspectFormWidgets(function(J,P,w){P.unhideForValue&&P.unhideForValue()},null,null);this.unhideMultipleAttachments();this.set("canChangeData",!1)},translate:function(){this.inherited(arguments);!this._dataChangingMode&&this.hideForValue(null,{hideMultiples:!1})},_formViewState:1,toggleFormView:function(J,P){this._formViewState=J||-1*this._formViewState;g.set(this[P||"formNode"],{display:0>this._formViewState?"none":"block"})},
getFormWidget:function(J,P){var w=this.formWidgets[J]?this.formWidgets[J].widget:null;w&&a.isFunction(P)&&P.call(this,w);return w},setWidgetAttr:function(J,P,w){var C=null;a.isArray(J)?b.forEach(J,a.hitch(this,function(F){(C=this.getFormWidget(F))&&C.set(P,w)})):(C=this.getFormWidget(J))&&C.set(P,w)},getWidgetAttr:function(J,P){var w=this.getFormWidget(J);return w?w.get(P):""},getStoreFieldValue:function(J,P){var w=this.getFormWidget(J);if(!w)return"";var C=w.item;return C?w.store.getValue(C,P):""},
setStoreFieldValue:function(J,P,w){var C=this.getFormWidget(J);if(C){var F=new n;J={};J[P]=w;C.store.query(J).then(a.hitch(this,function(G){C.set("item",G[0]);F.resolve()}));return F.promise}}}))})},"mill/queryBuilder/queryDocument":function(){define(["mill/mill","mill/queryBuilder/provider"],function(){window.mill||(mill={});mill.queryBuilder||(mill.queryBuilder={});mill.queryBuilder.queryDocument||(mill.queryBuilder.queryDocument={});dojo.mixin(mill.queryBuilder.queryDocument,{_buildItem:function(c){var a=
[];for(id in c)a.push(""+id+"\x3d"+mill.enquoteForAttribute(c[id]));return"\x3citem "+a.join(" ")+"/\x3e"},_buildFields:function(c,a,b,e,f,g){var h=[];dojo.forEach(c.children,dojo.hitch(this,function(l){if(l.IsCategory)dojo.forEach(l.children,dojo.hitch(this,arguments.callee));else if(l.IsField){var m=!0,r=!0;if(b)dojo.isArray(b)?(m=0<=dojo.indexOf(b,"F"+l.id),r=!1):m="F"+l.id==b;else{m=l.Checked;for(var n in g)m=!1}e["F"+l.id]&&h.push(this._buildItem({part:1,name:"F"+l.id,value:e["F"+l.id],subQuery:'"'+
a+'"."'+l.Name+'"'}));g["F"+l.id]?h.push(this._buildItem({part:0,name:"F"+l.id,subQuery:'"'+a+'"."'+l.Name+'"',special:g["F"+l.id]})):m?(h.push(this._buildItem({part:0,name:r&&b?"Description":"F"+l.id,subQuery:'"'+a+'"."'+l.Name+'"'})),f["F"+l.id]&&h.push(this._buildItem({part:2,name:"F"+l.id,special:"asc"==f["F"+l.id]?null:f["F"+l.id],subQuery:'"'+a+'"."'+l.Name+'"'})),r&&b&&(h.push(this._buildItem({part:3,name:"F"+l.id,subQuery:'"'+a+'"."'+l.Name+'"'})),h.push(this._buildItem({part:1,name:"F"+l.id,
value:"*",subQuery:'"'+a+'"."'+l.Name+'"'})))):l.PartialChecked&&(m="T"+l.id,r=mill.queryBuilder.provider.tables(mill.queryBuilder.provider.types()[l.TypeInfoID].TableID),h.push(this._buildItem({part:6,name:"T"+l.id,subQuery:'"'+a+'"."'+l.Name+'"',joinKey:r.fields[r.PrimaryKeyID].Name,value:r.Name})),h=h.concat(this._buildFields(l,m,b,e,f,g)))}}));return h},_buildPreConditions:function(c){var a=[];dojo.forEach(c.children,dojo.hitch(this,function(b){if(b.IsCategory)dojo.forEach(b.children,dojo.hitch(this,
arguments.callee));else if(b.IsPreCondition&&b.Checked){var e=[];dojo.forEach(b.Parameters,function(f){e.push("\x3cparameter\x3e"+f.Value+"\x3c/parameter\x3e")});a.push("\x3cprecondition ID\x3d"+mill.enquoteForAttribute(b.ID)+"\x3e"+e.join("")+"\x3c/precondition\x3e")}}));return a.join("")},_buildTable:function(c,a,b,e,f,g){var h=[];if(!b&&!g){h.push(this._buildItem({part:0,special:1}));var l=mill.queryBuilder.provider.fields(c.ID),m;for(m in l){var r=l[m];c.PrimaryKeyID!=r.ID&&r.DisplayMode==mill.queryBuilder.provider.dmNever&&
h.push(this._buildItem({part:0,name:r.ID,subQuery:'"'+a+'"."'+r.Name+'"'}))}}!b&&c.HasPersistentClause&&h.push(this._buildItem({part:1,special:4,value:mill.queryBuilder.provider.persistentClause(c.ID,a)}));return h.concat(this._buildFields(c,a,b,e,f,g||{}))},_options:function(){var c=[];dojo.forEach(mill.queryBuilder.provider.options(),function(a){c.push("\x3coption ID\x3d"+mill.enquoteForAttribute(a.ID)+"\x3e"+a.Value+"\x3c/option\x3e")});return c.join("")},buildFilterDatasetDocument:function(c,
a,b){a=[];a.push("ID\x3d"+mill.enquoteForAttribute(c.ID));a.push("entityName\x3d"+mill.enquoteForAttribute(c.Name));a.push("mainEntityAlias\x3d"+mill.enquoteForAttribute("MAIN"));return"\x3cQuery "+a.join(" ")+"\x3e"+this._buildTable(c,"MAIN",b,{},{},null).join("")+this._buildPreConditions(c)+this._options()+"\x3c/Query\x3e"},buildGroupDocument:function(c,a,b){var e=[];e.push("ID\x3d"+mill.enquoteForAttribute(c.ID));e.push("entityName\x3d"+mill.enquoteForAttribute(c.Name));e.push("mainEntityAlias\x3d"+
mill.enquoteForAttribute("MAIN"));a=this._buildTable(c,"MAIN",b,a||{},{},null);a.push(this._buildItem({part:0,special:15}));return"\x3cQuery "+e.join(" ")+"\x3e"+a.join("")+this._buildPreConditions(c)+this._options()+"\x3c/Query\x3e"},buildAggregateDocument:function(c,a,b){var e=[];e.push("ID\x3d"+mill.enquoteForAttribute(c.ID));e.push("entityName\x3d"+mill.enquoteForAttribute(c.Name));e.push("mainEntityAlias\x3d"+mill.enquoteForAttribute("MAIN"));a=this._buildTable(c,"MAIN",null,a||{},{},b);return"\x3cQuery "+
e.join(" ")+"\x3e"+a.join("")+this._buildPreConditions(c)+this._options()+"\x3c/Query\x3e"},buildDocument:function(c,a,b){var e=[];e.push("ID\x3d"+mill.enquoteForAttribute(c.ID));e.push("entityName\x3d"+mill.enquoteForAttribute(c.Name));e.push("mainEntityAlias\x3d"+mill.enquoteForAttribute("MAIN"));e.push("subQueryAlias\x3d"+mill.enquoteForAttribute("SUB"));c.PrimaryKeyID&&e.push("keyFieldName\x3d"+mill.enquoteForAttribute(mill.queryBuilder.provider.fields(c.ID)[c.PrimaryKeyID].Name));c.UplinkID&&
(e.push("parentFieldName\x3d"+mill.enquoteForAttribute(mill.queryBuilder.provider.fields(c.ID)[c.UplinkID].Name)),e.push("hasChildrenFieldName\x3d"+mill.enquoteForAttribute("HASCHILDREN$")));return"\x3cQuery "+e.join(" ")+"\x3e"+this._buildTable(c,"MAIN",null,a||{},b||{},null).join("")+this._buildPreConditions(c)+this._options()+"\x3c/Query\x3e"}})})},"mill/jssupport/jsApplication/controls/dateTextBoxControl/DateTextBoxControl":function(){define(["dojo/_base/declare","dijit/form/DateTextBox","mill/jssupport/jsApplication/controls/_CustomControlMixin"],
function(c,a,b){return mill.registerAlias("app.view.DateTextBox",c("mill.jssupport.jsApplication.controls.dateTextBoxControl.DateTextBoxControl",[a,b],{_setValueAttr:function(e,f,g){void 0!==e&&"string"==typeof e&&(e=mill.parseDate(e));this.inherited(arguments,[e,f,g])},getStringValue:function(){return mill.formatDate(this.get("value"))}}))})},"mill/jssupport/_TranslationMixin":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/topic","mill/jssupport/base"],function(c,a,b,e){return mill.registerAlias("office._TranslationMixin",
c("mill.jssupport._TranslationMixin",null,{translatableAttributes:null,postMixInProperties:function(){this.inherited(arguments);this.translatableAttributes=this.translatableAttributes||{}},postCreate:function(){this.inherited(arguments);this.own(b.subscribe("office._TranslationMixin.translate",a.hitch(this,this.translate)))},translate:function(){for(var f in this.translatableAttributes){for(var g=this.translatableAttributes[f].split(";"),h="",l=0;l<g.length;l++)h+=e.getLocalization(g[l])||g[l];this.set(f,
h)}}}))})},"mill/jssupport/jsApplication/controls/fileEditor/FileEditor":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/dom-class dijit/form/_FormWidget dijit/_WidgetsInTemplateMixin mill/mill mill/uploader dojo/i18n!mill/nls/resources dojo/text!mill/jssupport/jsApplication/controls/fileEditor/fileEditor.html mill/jssupport/base".split(" "),function(c,a,b,e,f,g,h,l,m,r,n){return h.registerAlias("app.view.FileEditor",c("mill.jssupport.jsApplication.controls.fileEditor.FileEditor",
[f,g],{baseClass:"fileEditor",templateString:r,maxSize:10,accept:"image/jpeg,application/pdf",extension:null,fileRemovable:null,uploader:null,file:null,fileName:null,fileReference:null,fileReferenceAnonymous:null,fileEditorContainer:null,binNode:null,attachmentNode:null,uploaderContainerNode:null,labelWidget:null,filePropertiesTextWidget:null,progressTextWidget:null,_setIdAttr:"domNode",_setDisabledAttr:"uploader",_setAcceptAttr:"uploader",_getFileAttr:function(){return function(){return this.uploader.fileInput.files[0]||
null}}(),_setFileReferenceAttr:function(){return function(k){this.fileReference=k;this.attachmentNode.setAttribute("href",this._getURI());this._initState()}}(),_getURI:function(){var k=this.fileReferenceAnonymous?window.app.anonymousHandler||(n?n.anonymousHandler:""):window.app.handler||(n?n.mainHandler:"");return encodeURI(this.fileReference?"/"+k+this.fileReference:"")},_hasFileReference:function(){return!!this.get("value")},_prepareUpload:function(){return function(){window.app.setControlValue(this,
!0,"disabled");e.add(this.fileEditorContainer,"fileEditorHidden")}}(),_setFilePropertiesText:function(k){this.filePropertiesTextWidget.set("text",k||"")},_setProgressText:function(k){this.progressTextWidget.set("text",m[k]||k||"")},_initState:function(){var k=this.get("file");this.labelWidget.set("text",k||this._hasFileReference()?"Office.SelectAnotherFile":"Office.SelectFile");e[k||this.fileRemovable&&this._hasFileReference()?"remove":"add"](this.binNode,"fileEditorHidden");e[this._hasFileReference()?
"remove":"add"](this.attachmentNode,"fileEditorHidden")},_getSize:function(){return h.formatSize(this.get("file").size)},onChange:function(){var k=this.get("file");this.set("fileName",k?k.name:null);this._initState();this._setFilePropertiesText(k?k.name+" ["+this._getSize().size+" "+this._getSize().unit+"]":"");this._setProgressText(null)},onUpload:function(){window.app.setControlValue(this,!1,"disabled");e.add(this.uploaderContainerNode,"fileEditorHidden")},validate:function(){var k=this.get("file"),
p=!this.required||this.disabled||this.required&&(!!k||this._hasFileReference());p?("Office.FileRequired"===this.filePropertiesTextWidget.get("text")&&this._setFilePropertiesText(""),!this.disabled&&k&&(k.size/1024/1024>this.maxSize?(this._setFilePropertiesText("Office.FileMaxSize1; ;"+this.maxSize.toString()+"; ;Office.FileMaxSize2"),p=!1):this.extension&&(k=k.name.toLowerCase().split(".").pop(),0>b.indexOf(this.extension.replace(/\s/gim,"").split(","),k)&&(this._setFilePropertiesText("\x3cspan class\x3d'red'\x3e;Office.FileExtensionError; ;"+
this.extension+"\x3c/span\x3e"),p=!1)))):this._hasBeenBlurred&&this._setFilePropertiesText("Office.FileRequired");return p},reset:function(){return function(k){null!==k&&a.isObject(k)&&this.disabled||(e.remove(this.fileEditorContainer,"fileEditorHidden"),e.remove(this.uploaderContainerNode,"fileEditorHidden"),this.uploader.fileInput.value=null,this.fileRemovable&&this.set("value",null),this.onChange())}}()}))})},"mill/jssupport/jsApplication/controlSet/_ControlSetFullScreenModeMixin":function(){define(["dojo/_base/declare",
"dojo/on"],function(c,a){return c("mill.jssupport.jsApplication.controlSet._ControlSetFullScreenModeMixin",null,{fullScreenMode:null,overlay:null,offFullScreenMode:function(){if(this.fullScreenMode&&this.overlay){this.placeAt(this.overlay,"before");this.overlay.remove();this.overlay=this.fullScreenMode=null;var b=app.getControlNestedControlSetGroup(this)[0];b&&(b.set("contentHidden",!0),b.titleCollapseButton.innerHTML="\x26#9998;",b.set("toggleContentView",function(){this.initFullScreenMode()}.bind(this)),
b.finalizeButtonWidget.set("labelIdent",window.app.combinedTranslationIdent(b.finalizeButtonIdent)||"Office.SubmitApplication"),window.app.setControlValue([b.finalizeButtonWidget],!1,"disabled"))}},initFullScreenMode:function(){if(!this.overlay){this.fullScreenMode=!0;this.overlay=function(e){var f=document.createElement("div");f.classList.add("controlSetOverlay");e.parentNode.insertBefore(f,e);return f}(this.domNode);var b=function(e){var f=document.createElement("div");f.classList.add("controlSetWrapper");
e.appendChild(f);return e.childNodes[e.childNodes.length-1]}(function(e){var f=document.createElement("div");f.classList.add("controlSetWrapperOuter");e.appendChild(f);return f}(this.overlay));this.placeAt(b,"last");(function(e,f,g,h){a(e,"click",h);a(f,"click",g)})(this.overlay,b,this.preventDefaultEvt.bind(this),this.offFullScreenMode.bind(this));if(b=app.getControlNestedControlSetGroup(this)[0])b.set("contentHidden",!1),b.titleCollapseButton.innerHTML=""}},preventDefaultEvt:function(b){b&&(b.preventDefault&&
b.preventDefault(),b.stopPropagation&&b.stopPropagation(),b.cancelBubble=!0)},destroyRecursive:function(){var b=this.overlay;this.inherited(arguments);b&&b.remove()}})})},"mill/dataBrowser":function(){define("mill/mill mill/dataBrowser/browserGrid mill/dataBrowser/browserGridData mill/dataBrowser/loginDialog mill/dataBrowser/parametersView mill/dataBrowser/rtti mill/imageList mill/icon mill/managementConsole mill/animatedMill mill/ribbon".split(" "),function(){window.mill||(mill={});mill.dataBrowser||
dojo.mixin(mill,{dataBrowser:{}});dojo.mixin(mill.dataBrowser,{cache:{processDialog:dojo.cache("mill","dataBrowser/processDialog.html",'\x3cdiv style\x3d"width:480px;height:200px"\x3e\x3cdiv dojoType\x3d"mill.animatedMill" style\x3d"width:100%"\x3e\x3c/div\x3e\x3cdiv button\x3d"false" color\x3d"blue" dojoType\x3d"mill.ribbon"\x3e\x3c/div\x3e\x3c/div\x3e')},startup:function(){dojo.parser.parse({rootNode:document.body,template:!0})}})})},"mill/jssupport/gdpr":function(){define(["dojo/cookie","dojo/dom-construct",
"dojo/on"],function(c,a,b){function e(l){l.GDPRNode&&(a.destroy(l.GDPRNode),l.GDPRNode=null)}function f(l){dojo.forEach(h,function(m){for(var r=m.value||(Math.random()*Math.pow(10,6)).toFixed(),n={path:"/",expires:m.expires||7300},k=window.location.hostname.split(".");2<k.length;)k.shift();2===k.length&&k[1].match(/^[a-z]{2,4}$/)&&dojo.mixin(n,{domain:k.join(".")});c(m.name,r,n)});e(l)}function g(l,m){var r=a.create("div",{style:{position:"fixed",bottom:"0",left:"0",width:"100%",zIndex:"1001",backgroundColor:"#fcf8e3"}},
window.document.body,"last"),n=a.create("div",{style:{display:"table",margin:"10px auto",maxWidth:"1120px",textAlign:"center"}},r);a.create("div",{style:{display:"table-cell"},innerHTML:m||l.getLocalization("Office.GDPRText")},n);n=a.create("a",{"data-testid":"gdpr-close",style:{cursor:"pointer"},innerHTML:"\x26#215;"},a.create("div",{style:{display:"table-cell",width:"3em",verticalAlign:"middle",fontSize:"2em"}},n));b(n,"click",f.bind(null,l));return l.GDPRNode=r}var h=[{name:"C4958FB1-D61F-4D64-9037-A3A28E7B3757",
value:null,expires:null},{name:"gdpr_confirm",value:1,expires:365}];return function(l){var m=window.base||{};Object.prototype.hasOwnProperty.call(m,"GDPRNode")||(m.GDPRNode=null);if(m.locale&&m.getLocalization){e(m);var r=!1;dojo.forEach(h,function(n){c(n.name)&&(r=!0)});r||m.GDPRNode||g(m,l)}else mill.fieldValue(mill.fieldValue(window,"console"),"error").call(null,"Something wrong with function base.gdpr.checkGDPR")}})},"mill/jssupport/layout/layoutContent/ReportToModeratorForm":function(){define("dojo/_base/declare dojo/_base/lang dojo/text!mill/jssupport/layout/layoutContent/reportToModeratorForm.html mill/jssupport/form/_FormContent mill/jssupport/form/FilteringSelectField mill/jssupport/Announcement mill/jssupport/base mill/mill".split(" "),
function(c,a,b,e,f,g,h,l){return l.registerAlias("office.ReportToModeratorForm",c("mill.jssupport.layout.layoutContent.ReportToModeratorForm",e,{content:b,formTitle:"Office.ReportToModerator",submitApplicationLabel:"Office.SendAMessage",hideSubmitTextColumn:"false",messageCampusWidget:null,messageCategoryWidget:null,startup:function(){this.inherited(arguments);var m=this.formWidgets;m.hasOwnProperty("email")&&m.hasOwnProperty("emailConfirm")&&(m.email.widget.set("validator",a.hitch(this,this.emailValidator)),
m.emailConfirm.widget.set("validator",a.hitch(this,this.emailConfirmValidator)));if(window.app&&"acMagAbiturient"===window.app.accessCategory){if(m=this.getField("subject")){m.set("required",!0);this.addChild(g({text:"MagAbitur.ModeratorMessageAnnouncement",icon:"info",color:"blue",readOnly:!0}),"first");var r=new f({text:"MagAbitur.ModeratorMessageCampus;:",name:"campus",required:!0}),n=r.controlNode;this.messageCampusWidget=n;n.set("searchAttrObject",{RU:"Description",EN:"EngDescription"});n.set("store",
h.domainStore("TRegDepartment","TRegDepartment with AdmModeratorPosition required domain",null,["Description","EngDescription"],null,null,null,null,window.app.anonymousHandler));n.set("onChange",function(q){var u=this.getFormWidget("questioncategory");u&&(u.set("value",""),u.set("disabled",!q))}.bind(this));r.placeAt(m,"before");this.registerWidget(n);r=new f({text:"MagAbitur.ModeratorMessageCategory;:",name:"questioncategory",required:!0});this.messageCategoryWidget=n=r.controlNode;n.set("searchAttrObject",
{RU:"Description",EN:"EngDescription"});n.set("store",h.domainStore("TAbitMessageCategory","Magister abiturient message category (required)",[{domain:"TObject domain",name:"ARegDepartment",value:function(){return this.getWidgetAttr("campus","value")}.bind(this)}],["Description","EngDescription"],null,null,null,null,window.app.anonymousHandler));r.placeAt(m,"before");this.registerWidget(n);n.set("disabled",!0)}}else if("acForeignAbiturient"===h.accessCategory||"acForeignMagAbiturient"===h.accessCategory){if(m=
this.getField("phone"))r=new f({text:"ForeignAbit.ModeratorMessageCategory;:",name:"questioncategory",required:!0}),this.messageCategoryWidget=r.controlNode,this.registerWidget(this.messageCategoryWidget),this.messageCategoryWidget.set("searchAttrObject",{RU:"Description",EN:"EngDescription"}),this.messageCategoryWidget.set("store",h.domainStore("TFAMessageCategory","acForeignAbiturient"===h.accessCategory?"TFAMessageCategory ForBachAbiturient required domain":"TFAMessageCategory ForMagAbiturient required domain",
null,["Description","EngDescription"],null,null,null,null,h.anonymousHandler)),r.placeAt(m,"after");(m=this.getField("subject"))&&m.set("required",!0)}else if("acSchoolOlymp"===h.accessCategory||"acStudOlymp"===h.accessCategory){var k=this.getField("phone"),p=this.getField("subject");m=[{part:0,name:"ID"},{part:0,name:"Theme"},{part:1,name:"IsActual",value:"1"}];"acSchoolOlymp"===h.accessCategory?m.push({part:1,name:"ForSchoolOlymp",value:"1"}):"acStudOlymp"===h.accessCategory&&m.push({part:1,name:"ForStudOlymp",
value:"1"});l.queryCursorJson({handler:window.anonymousHandler,headers:{"Disable-Basic-Auth":"yes"},sync:!1,className:"TOlympMessageCategory",query:m,load:function(q){q=window.app.createStore({data:q.data.sort(function(v,t){var x=l.fieldValue(v,"Theme").toUpperCase(),z=l.fieldValue(t,"Theme").toUpperCase();return x<z?-1:x>z?1:0}).map(function(v,t){v.Position=t;return v}).concat([{ID:0,Position:q.data.length,Theme:"\u0414\u0440\u0443\u0433\u043e\u0435"}])});if(k){var u=new f({text:"acSchoolOlymp"===
h.accessCategory?"SchlOlymp.ModeratorMessageCategory;:":"StudOlymp.ModeratorMessageCategory;:",name:"questioncategory",required:!0}),y=function(v){if(p&&v){var t=v.get("item");t=!t||0!==t.ID;p.set("disabled",t);p.set("required",!t);p.controlNode.set("value","");return y.bind(null,v)}};this.messageCategoryWidget=u.controlNode;this.messageCategoryWidget.set("onChange",y.call(null,this.messageCategoryWidget));this.messageCategoryWidget.set("searchAttrObject","Theme");this.messageCategoryWidget.set("fetchProperties",
{sort:[{attribute:"Position",descending:!1}]});this.messageCategoryWidget.set("store",q);this.registerWidget(this.messageCategoryWidget);u.placeAt(k,"after")}}.bind(this)})}},postForm:function(){this.inherited(arguments);var m={};this.inspectFormWidgets(function(n,k){this._isAttachment(k)||(m[n]=this.formWidgetValue(n))},null,null);var r="";this.messageCategoryWidget&&(r=window.app&&"acMagAbiturient"===window.app.accessCategory?this.messageCategoryWidget.get("value"):"acSchoolOlymp"===h.accessCategory||
"acStudOlymp"===h.accessCategory?this.messageCategoryWidget.validate()&&"0"!==String(l.fieldValue(this.messageCategoryWidget.get("item"),"ID"))?this.messageCategoryWidget.get("displayedValue"):this.getFormWidget("subject").get("value"):this.messageCategoryWidget.validate()?this.messageCategoryWidget.get("displayedValue"):"");this.postRequest({url:l.getRequestUrl(h.registerHandler||(window.app?window.app.registerHandler:""),"ModeratorMessage.xml"),data:a.mixin(m,{refertext:l.getReferText(),accesscategory:h.accessCategory||
(window.app?window.app.accessCategory:""),communicationlanguage:h.locale.toUpperCase(),questioncategory:r,regdepartment:this.messageCampusWidget?this.messageCampusWidget.get("value"):""})}).then(a.hitch(this,function(){this.createSuccessMessage("Office.ReportToModeratorRequestSuccess",function(){this.toggleFormView()}.bind(this),null,null,!1);this.toggleFormView();this.resetForm()}))}}))})},"mill/beep":function(){define(["mill/mill"],function(){window.mill||(mill={});mill.beep||(mill.beep={});dojo.mixin(mill.beep,
{playSound:function(c){var a=dojo.query("audio#milljs_beep");a.length||(dojo.place('\x3caudio id\x3d"milljs_beep"\x3e\x3csource src\x3d"'+dojo.moduleUrl("mill",c+".ogg")+'" type\x3d"audio/ogg; codecs\x3dvorbis"\x3e\x3csource src\x3d"'+dojo.moduleUrl("mill",c+".mp3")+'" type\x3d"audio/mpeg"\x3e\x3c/audio\x3e',dojo.body(),"last"),a=dojo.query("audio#milljs_beep"));try{a[0].play()}catch(b){}},play:function(){mill.beep.playSound("beep")},instantMessage:function(){mill.beep.playSound("InstantMessage")}})})},
"mill/jssupport/layout/layoutMenu/MobileMenu":function(){define("dojo/_base/declare dojo/_base/lang dojo/topic dojo/dom-class dojo/dom-construct dijit/_WidgetBase dijit/_TemplatedMixin dojo/text!mill/jssupport/layout/layoutMenu/mobileMenu.html mill/jssupport/layout/layoutMenu/_LayoutMenuMixin mill/jssupport/layout/layoutMenu/LayoutMenuItem mill/jssupport/layout/_LayoutMixin mill/jssupport/layout/LayoutOverlay".split(" "),function(c,a,b,e,f,g,h,l,m,r,n,k){return mill.registerAlias("office.layout.MobileMenu",
c("mill.jssupport.layout.layoutMenu.MobileMenu",[g,h,m,n],{baseClass:"officeLayoutMobileMenu",templateString:l,state:"external-state",_layoutOverlayWidget:null,postMixInProperties:function(){this.inherited(arguments);this._layoutOverlayWidget=new k({onClick:a.hitch(this,this.toggleView)},document.body.appendChild(document.createElement("div")))},_setStateAttr:function(p){e.remove(this.domNode,["external-state","internal-state"]);e.add(this.domNode,this.state=p)},postCreate:function(){this.inherited(arguments);
this.own(b.subscribe("office.layout.MobileMenu.registerItem",a.hitch(this,this.registerItem)))},toggleView:function(){e.toggle(this.domNode,"officeLayoutMobileMenuActive");this._layoutOverlayWidget.toggleView()},registerItem:function(p){var q=this.inherited(arguments);q=f.create("li",{className:"officeLayoutMenuElem"},q).appendChild(document.createElement("div"));a.mixin(p,{mobileItem:new r(a.mixin(a.clone(p),{onClick:a.hitch(this,this.toggleView)}),q)})}}))})},"mill/enhancedGridData":function(){define(["dojo/DeferredList",
"dojox/grid/EnhancedGrid","mill/mill"],function(){dojo.declare("mill.enhancedGridData",null,{_id:null,_fetched:null,_handle:null,_parentItem:null,_callbacks:null,maxRecords:1E4,sync:!1,keyFieldName:"ID",labelFieldName:"Description",constructor:function(c){this._id=mill.enhancedGridData._lastID++;this._fetched=[];c&&dojo.mixin(this,c)},getValue:function(c,a,b){return c?c[a]||mill.fieldValue(c.node,a)||b:b},_hasChildren:function(c){return!1},_loaded:function(){return this._callbacks?!this._callbacks.length&&
!this._handle:!1},_nextPortion:function(c,a,b,e){if(e&&this._fetched.length>b)return this._parentItem=c,this._handle=e,this.fetch(a),this._callbacks.length&&this._callbacks.pop()(),!1;this._handle=this._parentItem=null;var f=e?this._handleParams(c,a,e):this._queryParams(c,a);dojo.mixin(f,{_nodes:[],_handle:[],sync:this.sync,load:dojo.hitch(this,function(g){if("error"==g.documentElement.nodeName){this._parentItem=this._handle=null;this._callbacks=[];g=a.scope?a.scope:dojo.global;var h=Error(this.declaredClass+
": error occured.");a.onError&&a.onError.call(g,h);return h}(h="1"==g.documentElement.getAttribute("eof")?null:g.documentElement.getAttribute("handle"))?f._handle.push(h):f._handle=[];h=g.documentElement.childNodes;for(var l=0;l!=h.length;l++)f._nodes.push(h.item(l));return g})});this._callbacks.unshift(dojo.hitch(this,this._loadNodes,f._nodes,c,a,b,f._handle));this._performQuery(f).addCallback(dojo.hitch(this,function(){for(;this._callbacks.length&&!this._callbacks.shift()(););}));return!0},_loadNodes:function(c,
a,b,e,f){for(var g=0;g<c.length;g++){var h={index:this._fetched.length,parentItem:a,store:this,node:c[g]};this.onItemCreated(h,b);this._fetched.push(h);if(this._hasChildren(h))return c=c.slice(g+1),this._nextPortion(h,b,e,null),c.length&&this._callbacks.unshift(this._callbacks.shift(),dojo.hitch(this,this._loadNodes,c,a,b,e,f)),!0}if(f.length)return this._nextPortion(a,b,e,f[0]),!0;this._eofReached(a,b);return!1},fetch:function(c){var a=c.scope?c.scope:dojo.global,b=c.start||0,e=c.count&&Infinity!==
c.count?b+c.count:this.maxRecords;0>b&&(e+=b,b=0);if(this._fetched.length<=e&&!this._loaded())this._callbacks=this._callbacks||[],this._callbacks.push(dojo.hitch(this,this.fetch,c)),this._nextPortion(this._parentItem,c,e,this._handle);else{c.onBegin&&c.onBegin.call(a,this._fetched.length+(this._loaded()?0:1),c);this.onBegin(this._fetched.length,c);for(var f=b;f<this._fetched.length&&f<e;f++)c.onItem&&c.onItem.call(a,this._fetched[f],c),this.onItem(this._fetched[f],c);f=[];c.onItem||(f=this._fetched.slice(b,
e));c.onComplete&&c.onComplete.call(a,f,c);this.onComplete(f,c)}return c},getIdentity:function(c){return this.getValue(c,this.keyFieldName)},getIdentityAttributes:function(c){return[this.keyFieldName]},getLabel:function(c){return this.getValue(c,this.labelFieldName)},getFeatures:function(){return{"dojo.data.api.Read":!0,"dojo.data.api.Identity":!0}},isItem:function(c){return c.store&&c.store._id==this._id},close:function(c){this._fetched=[];this._parentItem=this._handle=null},onBegin:function(c,a){},
onItem:function(c,a){},onComplete:function(c,a){},onItemCreated:function(c,a){},_handleParams:function(c,a,b){},_queryParams:function(c,a){},_performQuery:function(c){},_eofReached:function(c,a){}});dojo.mixin(mill.enhancedGridData,{_lastID:0})})},"mill/jssupport/jsApplication/_ApplicationBase":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/_base/array","mill/jssupport/session"],function(c,a,b,e){return mill.registerAlias("app._ApplicationBase",c("mill.jssupport.jsApplication._ApplicationBase",
null,{appID:null,applicationName:null,pageTitle:null,sync:null,anonymousHandler:null,handler:null,anonymousData:null,handlerData:null,controlSets:null,translationPrefix:null,addTranslationPrefix:null,_dataByIdent:function(){var f=null,g=null;return function(h,l,m){f||(f=this.getUniqBatchItems(this.anonymousBatchItems()));"anonymousHandler"!==h&&!g&&a.isFunction(this.handlerBatchItems)&&(g=this.getUniqBatchItems(this.handlerBatchItems()));var r=null;b.forEach("anonymousHandler"===h?f:g||[],function(n,
k){n.queryIdent!==l||a.isFunction(m)&&!m.call(null,n)||(null!==r&&mill.fieldValue(mill.fieldValue(window,"console"),"error").call(null,'queryIdent "'+l+'" duplication error found.'),r=k)});h=this["anonymousHandler"===h?"anonymousData":"handlerData"];return"number"!==typeof r||!h||a.isArray(h)&&!h.length?[]:h[r].data}}(),anonymousDataByIdent:function(f){return this._dataByIdent("anonymousHandler",f,null)},combinedTranslationIdent:function(f){return f&&this.translationPrefix?this.translationPrefix+
"."+f:f},queryApplicationData:function(f){mill.batchJson({handler:this.anonymousHandler,sync:!0,fetchAll:!0,queries:[{className:"TJSApplication",methodName:"Load",params:{ApplicationName:this.applicationName}}],load:f})},translationPattern:function(){var f=["Office.GDPRText"];this.translationPrefix&&f.push(this.translationPrefix+".*");this.addTranslationPrefix&&(a.isString(this.addTranslationPrefix)?f.push(this.addTranslationPrefix):a.isArray(this.addTranslationPrefix)&&(f=f.concat(this.addTranslationPrefix)));
return f},anonymousBatchItems:function(){return[{queryIdent:"translations",className:"TLanguageTranslation",query:[{part:0,name:"Owner"},{part:0,name:"Translation"},{part:0,name:"Language$N"},{part:1,name:"Owner",value:this.translationPattern().join(";")}]},{queryIdent:"internetResources",className:"TInternetResource",query:[{part:0,name:"Name"},{part:0,name:"Url"},{part:2,name:"Name"}]},{queryIdent:"layoutActions",className:"TJSApplication",methodName:"BuildLayoutActions",params:{ID:this.appID,RemoteUser:null}}]},
queryAnonymousData:function(){mill.batchJson({handler:this.anonymousHandler,sync:!0,fetchAll:!0,queries:this.getUniqBatchItems(this.anonymousBatchItems()),load:function(f){this.anonymousData=Array.prototype.slice.call(f)}.bind(this)})},handlerBatchItems:function(){return[]},queryHandlerData:function(){return mill.batchJson({handler:this.handler,headers:{"Disable-Basic-Auth":"yes"},sync:"boolean"===typeof this.sync?this.sync:!1,queries:this.getUniqBatchItems(this.handlerBatchItems()),load:function(f){this.handlerData=
Array.prototype.slice.call(f)}.bind(this)})},getUniqBatchItems:function(f){return f.reduce(function(g,h){return g.filter(function(l){return l.queryIdent===h.queryIdent}).length?g:g.concat([h])},[])},getRemoteUser:function(){return e.getRemoteUserID()}}))})},"mill/jssupport/jsApplication/controls/_WidgetTitleMixin":function(){define(["dojo/_base/declare","dijit/Tooltip","mill/jssupport/base"],function(c,a,b){return mill.registerAlias("app.view._WidgetTitleMixin",c("mill.jssupport.jsApplication.controls._WidgetTitleMixin",
null,{title:null,description:null,titleIdent:null,titleWidget:null,tooltipWidget:null,postMixInProperties:function(){this.inherited(arguments);this.title=this.getTitle()},_setTitleAttr:function(){return function(e){this.title=e;this.titleWidget.set("text",this.title);this.tooltipWidget&&this.tooltipWidget.set("label",this.titleWidget.textValue)}}(),getTitle:function(){var e=this.description||"";if(this.titleIdent){var f=window.app.combinedTranslationIdent(this.titleIdent);f&&b.getLocalization(f)?
e=f:b.getLocalization(this.titleIdent)&&(e=this.titleIdent)}return e},startup:function(){this.inherited(arguments);this.titleWidget&&this.titleWidget.id&&(this.tooltipWidget=new a({connectId:[this.titleWidget.id],label:this.titleWidget.textValue,position:["above","below","after","before"]}))}}))})},"mill/jssupport/session":function(){define(["dojo/_base/lang","dojo/_base/array","dojo/cookie","mill/mill"],function(c,a,b,e){e.session=c.mixin(e.session,{_remoteUserAccessCategory:null,_remoteUserID:null,
_remoteUserPersonID:null,_remoteUserLocale:null,_sessionValue:function(f){return Object.prototype.hasOwnProperty.call(this.values,f)?this.values[f]:""},getRemoteUserAccessCategory:function(){this._remoteUserAccessCategory||e.fieldValue(e.fieldValue(window,"console"),"error").call(null,"session.getRemoteUserAccessCategory: access category info not initialized.");return this._remoteUserAccessCategory},getRemoteUserID:function(){this._remoteUserID||e.fieldValue(e.fieldValue(window,"console"),"error").call(null,
"session.getRemoteUserID: remote user not initialized.");return this._remoteUserID},getRemoteUserPersonID:function(){this._remoteUserPersonID||e.fieldValue(e.fieldValue(window,"console"),"error").call(null,"session.getRemoteUserPersonID: remote user person not initialized.");return this._remoteUserPersonID},getRemoteUserLocale:function(){this._remoteUserLocale||e.fieldValue(e.fieldValue(window,"console"),"error").call(null,"session.getRemoteUserLocale: remote user locale not initialized.");return this._remoteUserLocale},
hasRemoteUser:function(){return b.isSupported()&&Object.prototype.hasOwnProperty.call(this.values,"RemoteUserCategory")&&Object.prototype.hasOwnProperty.call(this.values,"RemoteUserID")&&Object.prototype.hasOwnProperty.call(this.values,"RemoteUserPersonID")},checkRemoteUserAccessCategory:function(f,g){var h=this._sessionValue("RemoteUserCategory").toString().split(";");h=a.indexOf(h,f);if(0>h)return g||(this._remoteUserLocale=this._remoteUserPersonID=this._remoteUserID=this._remoteUserAccessCategory=
null),!1;if(!g){this._remoteUserAccessCategory=f;var l=this._sessionValue("RemoteUserID").toString().split(";");this._remoteUserID=l.length<h?l.shift()||null:l[h];l=this._sessionValue("RemoteUserPersonID").toString().split(";");this._remoteUserPersonID=l.length<h?l.shift()||null:l[h];l=this._sessionValue("RemoteUserLocale").toString().split(";");this._remoteUserLocale=l.length<h?l.shift()||null:l[h]}this.getRemoteUserAccessCategory()&&c.isFunction(window.initWebAnalyticsDataLayer)&&window.initWebAnalyticsDataLayer();
return!!this.getRemoteUserAccessCategory()}});return e.session})},"mill/jssupport/layout/layoutContent/LogoHeader":function(){define("dojo/_base/declare dojo/dom-class dojo/ready dijit/_WidgetBase dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dojo/text!mill/jssupport/layout/layoutContent/logoHeader.html mill/jssupport/base mill/jssupport/_TranslationMixin".split(" "),function(c,a,b,e,f,g,h,l,m){return mill.registerAlias("office.LogoHeader",c("mill.jssupport.layout.layoutContent.LogoHeader",
[e,f,g,m],{baseClass:"officeLogoHeader",templateString:h,image:null,startup:function(){this.inherited(arguments);this.translate()},translate:function(){this.inherited(arguments);this.image&&(a.remove(this.image,["logo-img-ru","logo-img-en"]),a.add(this.image,"logo-img-"+l.locale.toLowerCase()))}}))})},"mill/jssupport/layout/GridLayout":function(){define(["dojo/_base/declare","dijit/_WidgetBase","dijit/_TemplatedMixin","mill/jssupport/layout/_LayoutMixin"],function(c,a,b,e){return mill.registerAlias("office.layout.GridLayout",
c("mill.jssupport.layout.GridLayout",[a,b,e],{baseClass:"grid grid-pad gridLayout",templateString:"\x3cdiv\x3e\x3cdiv data-dojo-attach-point\x3d'containerNode'\x3e\x3c/div\x3e\x3cdiv style\x3d'clear:both'\x3e\x3c/div\x3e\x3c/div\x3e"}))})},"mill/jssupport/jsApplication/controls/radioButton/RadioButtonElement":function(){define("dojo/_base/declare dijit/_WidgetBase dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dijit/form/RadioButton dojo/text!mill/jssupport/jsApplication/controls/radioButton/radioButtonElement.html".split(" "),
function(c,a,b,e,f,g){return mill.registerAlias("app.view.RadioButtonElement",c("mill.jssupport.jsApplication.controls.radioButton.RadioButtonElement",[a,b,e],{baseClass:"appRadioButtonElement",templateString:g,description:null,checked:null,controlNode:null,_setNameAttr:"controlNode",_setValueAttr:"controlNode",_setCheckedAttr:"controlNode",_getCheckedAttr:function(){return this.controlNode.get("checked")},_onChange:function(){this.inherited(arguments);if(this.domNode)if(!0===this.get("checked")){this.domNode.classList.add("appRadioButtonElementChecked");
var h=this.get("value");0<=h&&this.domNode.classList.add(0<h?"appRadioButtonElementPosChecked":"appRadioButtonElementNegChecked");this.getParent()._onChange(this)}else this.domNode.classList.remove("appRadioButtonElementChecked")},buildRendering:function(){this.inherited(arguments);var h=document.createElement("label");h.setAttribute("for",this.controlNode.id);h.innerHTML=this.description;this.domNode.appendChild(h)}}))})},"mill/queryBuilder/gridColumnsFilter":function(){define("dijit/form/ComboBox dojox/grid/enhanced/_Plugin dojox/grid/EnhancedGrid mill/mill mill/queryBuilder/provider mill/gridColumnsFilter".split(" "),
function(){dojo.declare("dojox.grid.enhanced.plugins.queryBuilderColumnsFilter",dojox.grid.enhanced.plugins.millColumnsFilter,{name:"queryBuilderColumnsFilter"});dojox.grid.EnhancedGrid.registerPlugin(dojox.grid.enhanced.plugins.queryBuilderColumnsFilter)})},"mill/ToolBar":function(){define("mill/mill mill/imageList mill/icon dijit/_Widget dijit/layout/_LayoutWidget dijit/layout/_ContentPaneResizeMixin dijit/_Container dijit/_Templated dojo/fx".split(" "),function(){dojo.declare("mill.ToolBarContainer",
[dijit._Widget,dijit.layout._LayoutWidget,dijit.layout._ContentPaneResizeMixin,dijit._Templated],{baseClass:"toolBarContainer",imageList:"",templateString:dojo.cache("mill","toolBarContainer.html",'\x3cdiv\x3e\x3cdiv dojoattachpoint\x3d"containerNode"\x3e\x3c/div\x3e\x3cdiv class\x3d"clear"\x3e\x3c/div\x3e\x3c/div\x3e'),resize:function(){this.inherited(arguments);var c=dojo.contentBox(this.domNode).w,a=parseInt(c/this.getChildren().length);dojo.forEach(this.getChildren(),dojo.hitch(this,function(g){var h=
g.attr("_fullWidth");g.attr("currentWidth",h>a?a:h);c-=g.attr("currentWidth")}));var b=dojo.filter(this.getChildren(),function(g){return g.attr("_collapsed")});for(a=parseInt(c/b.length);0<b.length&&0<c&&0<a;){for(var e in b){var f=b[e].attr("_fullWidth")-b[e].attr("currentWidth");f=f>a?a:f;b[e].attr("currentWidth",b[e].attr("currentWidth")+f);c-=f}b=dojo.filter(this.getChildren(),function(g){return g.attr("_collapsed")});a=parseInt(c/b.length)}dojo.forEach(this.getChildren(),function(g){dojo.marginBox(g.domNode,
{w:g.attr("currentWidth")-.2});dojo.marginBox(g.containerWrapper,{w:dojo.contentBox(g.domNode).w});dojo.style(g.containerNode,{left:0});g._setScrollVisibility()});dojo.style(this.domNode,{height:dojo.marginBox(this.getChildren()[0].domNode).h+"px"})},startup:function(){this.inherited(arguments);6==dojo.isIE&&dojo.connect(window,"resize",dojo.hitch(this,function(){this.resize()}))}});dojo.declare("mill.ToolBarPane",[dijit._Widget,dijit._Container,dijit._Contained,dijit._Templated],{templateString:dojo.cache("mill",
"toolBarPane.html",'\x3cdiv dojoattachevent\x3d"onmousedown: _onMouseDown" unselectable\x3d"on"\x3e\x3cdiv class\x3d"containerWrapper" dojoattachpoint\x3d"containerWrapper"\x3e\x3cdiv class\x3d"pane-container" dojoattachpoint\x3d"containerNode"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"scrollButton scrollButtonLeft" dojoattachevent\x3d"onclick: _scrollLeft" dojoattachpoint\x3d"scrollLeftButton"\x3e\x3c/div\x3e\x3cdiv class\x3d"scrollButton scrollButtonRight" dojoattachevent\x3d"onclick: _scrollRight" dojoattachpoint\x3d"scrollRightButton"\x3e\x3c/div\x3e\x3c/div\x3e'),
baseClass:"toolBarPane",color:"",currentWidth:"",_fullWidth:"",_collapsed:!1,_setCurrentWidthAttr:function(c){this.currentWidth=c;this.attr("_collapsed",this._fullWidth>this.currentWidth)},buildRendering:function(){this.inherited(arguments);switch(this.color){case "blue":dojo.addClass(this.domNode,"toolBarPaneBlue");dojo.addClass(this.scrollLeftButton,"scrollButtonBlueLeft");dojo.addClass(this.scrollRightButton,"scrollButtonBlueRight");break;case "red":dojo.addClass(this.domNode,"toolBarPaneRed");
dojo.addClass(this.scrollLeftButton,"scrollButtonRedLeft");dojo.addClass(this.scrollRightButton,"scrollButtonRedRight");break;case "green":dojo.addClass(this.domNode,"toolBarPaneGreen");dojo.addClass(this.scrollLeftButton,"scrollButtonGreenLeft");dojo.addClass(this.scrollRightButton,"scrollButtonGreenRight");break;default:dojo.addClass(this.domNode,"toolBarPaneGrey"),dojo.addClass(this.scrollLeftButton,"scrollButtonGreyLeft"),dojo.addClass(this.scrollRightButton,"scrollButtonGreyRight")}},resize:function(){this.inherited(arguments);
!this._fullWidth&&0<dojo.contentBox(this.domNode).w&&(this._fullWidth=dojo.marginBox(this.domNode).w)},_setScrollVisibility:function(){dojo.style(this.scrollLeftButton,{display:0==parseInt(dojo.style(this.containerNode).left)?"none":"block"});dojo.style(this.scrollRightButton,{display:parseInt(dojo.style(this.containerNode).left)==-(this._fullWidth-dojo.marginBox(this.domNode).w+24)?"none":"block"});this._fullWidth&&this._collapsed&&dojo.style(this.containerWrapper,{marginLeft:"16px"})&&dojo.style(this.containerWrapper,
{marginRight:"16px"});!this._collapsed&&dojo.style(this.scrollLeftButton,{display:"none"})&&dojo.style(this.scrollRightButton,{display:"none"})&&dojo.style(this.containerWrapper,{marginLeft:"4px"})&&dojo.style(this.containerWrapper,{marginRight:"4px"})},_scrollLeft:function(){dojo.fx.slideTo({node:this.containerNode,top:0,left:0<parseInt(dojo.style(this.containerNode).left)+60?0:parseInt(dojo.style(this.containerNode).left)+60,onBegin:dojo.hitch(this,function(){dojo.addClass(this.scrollLeftButton,
"scrollButtonLeftClick")}),onEnd:dojo.hitch(this,function(){dojo.removeClass(this.scrollLeftButton,"scrollButtonLeftClick");this._setScrollVisibility()})}).play()},_scrollRight:function(){var c=-(this._fullWidth-dojo.marginBox(this.domNode).w+24);dojo.fx.slideTo({node:this.containerNode,top:0,left:parseInt(dojo.style(this.containerNode).left)-60<c?c:parseInt(dojo.style(this.containerNode).left)-60,onBegin:dojo.hitch(this,function(){dojo.addClass(this.scrollRightButton,"scrollButtonRightClick")}),
onEnd:dojo.hitch(this,function(){dojo.removeClass(this.scrollRightButton,"scrollButtonRightClick");this._setScrollVisibility()})}).play()},_onMouseDown:function(c){c.preventDefault()}});dojo.declare("mill.ToolBarButton",[dijit._Widget,dijit._Contained,dijit._Templated],{baseClass:"toolBarButton",templateString:dojo.cache("mill","ToolBarButton.html",'\x3cdiv dojoAttachEvent\x3d"onclick: onClick, onmouseover: _onMouseOver, onmouseout: _onMouseOut"\x3e\x3cdiv class\x3d"iconWrapper"\x3e\x3cdiv dojoattachpoint\x3d"icon" dojotype\x3d"mill.icon" imageIndex\x3d"${imageIndex}"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv dojoattachpoint\x3d"labelNode"\x3e ${label} \x3c/div\x3e\x3c/div\x3e'),
widgetsInTemplate:!0,label:"",imageIndex:"",onClick:new Function,_setLabelAttr:{node:"labelNode",type:"innerHTML"},postMixInProperties:function(){this.inherited(arguments);for(var c=[],a=0;a<this.label.length;a++)this.label.substr(a,1).match(/\s/)&&c.push(a);var b=this.label.length;for(a in c)this.label.length/2-c[a]<b&&(b=c[a]);0<c.length&&12<this.label.length&&(this.label=this.label.substr(0,b)+"\x3cbr/\x3e"+this.label.substr(parseInt(b)+1))},buildRendering:function(){this.inherited(arguments);
dojo.style(this.labelNode,{lineHeight:this.label.match(/<br\/>/g)?1.2:2.4})},postCreate:function(){this.inherited(arguments);var c=this.getParent().getParent().imageList;c&&dijit.byId(c)&&this.imageIndex&&this.icon.attr("imageList",dijit.byId(c))},_onMouseOver:function(){dojo.addClass(this.domNode,"toolBarButtonHover")},_onMouseOut:function(){dojo.removeClass(this.domNode,"toolBarButtonHover")}})})},"mill/jssupport/form/PhoneWidget":function(){define("dojo/_base/declare dojo/_base/array dojo/store/Memory dojo/dom-construct dojo/dom-style dojo/on dijit/form/_FormWidget dijit/_WidgetsInTemplateMixin mill/jssupport/_TranslationMixin dojo/text!mill/jssupport/form/phoneWidget.html mill/jssupport/base".split(" "),
function(c,a,b,e,f,g,h,l,m,r,n){return mill.registerAlias("office.form.PhoneWidget",c("mill.jssupport.form.PhoneWidget",[h,l,m],{templateString:r,store:null,_savedValue:null,_savedValueNode:null,countryCodeWidget:null,phoneNumberWidget:null,_setStoreAttr:function(){return function(k){this.store=k;this.countryCodeWidget.set("store",this.store)}}(),_getValueAttr:function(){var k=[];this.countryCodeWidget.validate()&&k.push(this.countryCodeWidget.get("displayedValue"));this.phoneNumberWidget.get("value")&&
k.push(this.phoneNumberWidget.get("value"));return k.join(" ")},_setValueAttr:function(k){k=(k||"").split(";");this.value=k[k.length-1].replace(/^\s/,"");this.countryCodeWidget.set("value",this.value.split(/\s/)[0]);this.phoneNumberWidget.set("value",this.value)},_setDisabledAttr:function(k){this.disabled=k;this.countryCodeWidget&&this.countryCodeWidget.set("disabled",k);this.phoneNumberWidget&&this.phoneNumberWidget.set("disabled",k)},_setRequiredAttr:function(k){this.required=k;this.countryCodeWidget.set("required",
this.required);this.phoneNumberWidget.set("required",this.required)},_getLabelIdent:function(){return"RU"===n.locale.toUpperCase()?"PhoneCodeDesc":"PhoneCodeEngDesc"},_setFetchProperties:function(){this.countryCodeWidget.set("fetchProperties",{sort:[{attribute:"RU"===n.locale.toUpperCase()?"Name":"EngDescription",descending:!1}]})},_onChangeHandler:function(){var k=this.countryCodeWidget.get("item")?this.countryCodeWidget.get("displayedValue"):"",p=this.phoneNumberWidget.get("value");if(k)this.phoneNumberWidget.set("value",
p.replace(k,""));else if(k=p.match(/\+\d+\s/))k=k[0].replace(/\s/,""),(k=this.countryCodeWidget.store.query({PhoneCode:k})[0])&&this.countryCodeWidget.set("item",k);this.phoneNumberWidget.set("required",this.required||this.countryCodeWidget.get("value"));this.countryCodeWidget.set("required",this.required||this.phoneNumberWidget.get("value"))},_connectOnChangeHandler:function(){a.forEach([this.countryCodeWidget,this.phoneNumberWidget],function(k){k.watch("value",function(p,q,u){this._onChangeHandler(u)}.bind(this))},
this)},startup:function(){this.inherited(arguments);n.countryPhoneCodeData&&this.countryCodeWidget.set("store",new b({data:n.countryPhoneCodeData}));this._setFetchProperties();this._connectOnChangeHandler();this.countryCodeWidget.set("labelAttr",this._getLabelIdent());this.countryCodeWidget.set("searchAttr","PhoneCode");g(this.phoneNumberWidget.textbox,"input",function(){var k=this.phoneNumberWidget.get("value"),p=k.replace(/[^0-9]/g,"");p!==k&&this.phoneNumberWidget.set("value",p)}.bind(this))},
translate:function(){this.inherited(arguments);this.countryCodeWidget.set("labelAttr",this._getLabelIdent());this._setFetchProperties()},validate:function(){var k=!0;dojo.forEach([this.countryCodeWidget,this.phoneNumberWidget],function(p){p._hasBeenBlurred=!0;p.disabled||!p.validate||p.validate()||(k=!1)});return this.countryCodeWidget.get("value")&&!this.phoneNumberWidget.get("value")?(this.phoneNumberWidget.focus(),!1):!this.countryCodeWidget.get("value")&&this.phoneNumberWidget.get("value")?(this.countryCodeWidget.focus(),
!1):k},hideForValue:function(k){f.set(this.domNode,{display:"none"});"string"===typeof k&&(this._savedValue=k);e.destroy(this._savedValueNode);this._savedValueNode=e.create("span",{innerHTML:k||this._savedValue||"",className:"dim bold"},this.domNode.parentNode,"first")},unhideForValue:function(){this.phoneNumberWidget.set("value",this._savedValue||"");e.destroy(this._savedValueNode);this._savedValueNode=null;f.set(this.domNode,{display:"block"})}}))})},"mill/jssupport/form/Attachment":function(){define("dojo/_base/declare dojo/_base/lang dojo/query dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/dom-style dijit/form/_FormWidget dijit/_WidgetsInTemplateMixin dojo/text!mill/jssupport/form/attachment.html mill/jssupport/base mill/mill".split(" "),
function(c,a,b,e,f,g,h,l,m,r,n,k){return mill.registerAlias("office.form.Attachment",c("mill.jssupport.form.Attachment",[l,m],{baseClass:"officeAttachment",templateString:r,labelIdentifier:null,label:null,anotherFileLabel:null,required:null,readOnly:null,tabIndex:"-1",attachmentType:"blob",extension:"bmp|jpeg|png|tif|pdf",accept:null,extensionText:"",maxSize:15,_uploadedFile:null,_fileName:"",_uploadState:0,validateState:0,_savedValue:null,_savedValueNode:null,_setLabelIdentifierAttr:function(p){this.set("label",
this.labelIdentifier=p)},_setRequiredAttr:function(p){this._required=p},_setLabelAttr:function(p){this.translatableNode.set("text",this.value=p)},_setExtensionAttr:function(p){this.extension=new RegExp(p,"i");this.extensionText=p.split("|").join(", ")},_setAcceptAttr:function(p){e.set(this.inputNode,"accept",this.accept=p)},_setMaxSizeAttr:function(p){this.maxSize=1048576*p},_setValidateStateAttr:function(p){0<(this.validateState=p)&&this.set("label",this.anotherFileLabel)},_getSize:function(){return mill.formatSize(this.inputNode.files[0].size)},
_setProgressNodeColor:function(p){f.remove(this.progressNode.domNode,["blue","green","red"]);f.add(this.progressNode.domNode,p||"blue")},validate:function(){var p=0<=this._uploadState&&(!this._required||this._required&&0<this._uploadState||0<this.validateState);this._set("state",p?"":"Error");return p},onChange:function(p){this.inputNode.files.length&&(0>this._uploadState?this.inputNode.value="":this.inputNode.files[0].type.match(this.extension)||"application/vnd.ms-excel"===this.inputNode.files[0].type&&
"xls".match(this.extension)?this.inputNode.files[0].size>this.maxSize?(this.fileErrorNode.set("text","\x3cb\x3e"+this.inputNode.files[0].name+"\x3c/b\x3e: ;Office.MaxSizeError; "+this.maxSize/1024/1024+" Mb"),this.inputNode.value=""):(this.set("readOnly",!0),this._set("state",""),p=this._getSize(),this._fileName="\x3cb\x3e"+this.inputNode.files[0].name+(0<this.inputNode.files[0].size?" ["+p.size+" "+p.unit+"]":"")+"\x3c/b\x3e",this.set("label","Office.UploadingData"),this._setProgressNodeColor(),
this.fileErrorNode.set("text",""),this.upload()):(this.fileErrorNode.set("text","\x3cb\x3e"+this.inputNode.files[0].name+"\x3c/b\x3e: ;Office.ExtensionError; "+this.extensionText),this.inputNode.value=""))},onProgress:function(p){"progress"===p.type&&1>p.decimal?this.progressNode.set("text",[this._fileName," ",p.percent].join(";")):"progress"===p.type&&1===p.decimal&&this.progressNode.set("text",[this._fileName," ;Office.AlmostUploaded"].join(";"))},onUpload:new Function,_onComplete:function(p,q){this._uploadState=
1;this._uploadedFile=p||a.mixin({},this.inputNode.files[0]);this._fileName=q?p?"\x3cb\x3e"+p.name+"\x3c/b\x3e":"":this._fileName||(p?"\x3cb\x3e"+p.name+"\x3c/b\x3e":"");this.inputNode.value="";this.set("label",this.anotherFileLabel);this.progressNode.set("text",[this._fileName," ;Office.Uploaded"].join(";"));this._setProgressNodeColor("green");this._set("state","");this.set("readOnly",!1)},onComplete:function(p,q){this._onComplete(p,q);this.onUpload()},onError:function(){var p=this._fileName;this.reset();
this.progressNode.set("text",["Office.UploadError; ",p].join(";"));this._setProgressNodeColor("red")},reset:function(){this._fileName=null;this._uploadState=0;this._uploadedFile=null;this.inputNode.value="";this.set("label",this.labelIdentifier);this.progressNode.set("text","");this.fileErrorNode.set("text","");this._setProgressNodeColor();this._set("state","");this.set("readOnly",!1)},doubleName:"",specialName:"",upload:function(){this._uploadState=-1;var p=new FormData;this.doubleName&&p.append(this.doubleName,
this.inputNode.files[0]);p.append(this.specialName||this.name,this.inputNode.files[0]);this.createXhr().send(p)},_xhrProgress:function(p){p.lengthComputable&&this.onProgress({type:p.type,percent:"load"===p.type?"100%":Math.ceil(p.loaded/p.total*100)+"%",decimal:"load"===p.type?1:p.loaded/p.total})},createXhr:function(){var p=new XMLHttpRequest;p.upload.addEventListener("progress",a.hitch(this,"_xhrProgress"),!1);p.addEventListener("load",a.hitch(this,"_xhrProgress"),!1);p.addEventListener("error",
a.hitch(this,"onError"),!1);p.onreadystatechange=a.hitch(this,function(){if(4===p.readyState)this.onComplete()});p.open("POST",k.getRequestUrl(".system","session.xml"));return p},hideForValue:function(p){p&&p.hasData&&(this._savedValue=p);g.destroy(this._savedValueNode);if(this._savedValue&&a.isObject(this._savedValue)){var q=[this._savedValue.className,this._savedValue.propName,this._savedValue.ID];this._savedValue.fileName&&this._savedValue.extension&&q.push(this._savedValue.fileName,this._savedValue.extension);
q=q.join("','");p="image"===this.attachmentType?"":this._savedValue.fileName||"\x3cspan class\x3d'icon-set-attachment'\x3e\x3c/span\x3e";this._savedValueNode=g.create("span",null,this.domNode.parentNode);q=g.create("a",{innerHTML:p,href:"javascript:base.downloadBlob('"+q+"')"},this._savedValueNode);"\x3cspan class\x3d'icon-set-attachment'\x3e\x3c/span\x3e"===p&&(new office.TranslatableNode({className:"green",text:" ;Office.Uploaded",display:"inline"})).placeAt(this._savedValueNode,"last");b(".icon-set-attachment",
q).length&&h.set(q,{textDecoration:"none"});"image"===this.attachmentType&&(this._savedValueNode=g.create("img",{src:"/"+n.mainHandler+"/getblob.jpg?query\x3d"+k._itemsToQuery({className:this._savedValue.className,propName:this._savedValue.propName,ID:this._savedValue.ID}).split('"').join("'"),width:"100%"},this._savedValueNode))}h.set(this.domNode,{display:"none"})},unhideForValue:function(){g.destroy(this._savedValueNode);h.set(this.domNode,{display:"inline-block"})}}))})},"mill/jssupport/app":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/Deferred dojo/when dojo/io-query dojo/string dojo/dom-construct dojo/dom-class dojo/dom-style dojo/store/Memory dojo/sniff dijit/form/_FormWidget dijit/form/CheckBox dijit/form/SimpleTextarea dijit/form/ValidationTextBox dijit/form/FilteringSelect dijit/form/NumberTextBox dijit/registry dijit/Editor dijit/Tooltip mill/jssupport/jsApplication/controlSet/ControlSet mill/jssupport/jsApplication/controlSet/ControlSetContainer mill/jssupport/jsApplication/controlSet/ControlSetGroup mill/jssupport/jsApplication/controls/controlField/ControlField mill/jssupport/jsApplication/controls/fileEditor/FileEditor mill/jssupport/jsApplication/controls/radioButton/RadioButton mill/jssupport/jsApplication/controls/dateTextBoxControl/DateTextBoxControl mill/jssupport/jsApplication/controls/editorControl/EditorControl mill/jssupport/jsApplication/controls/buttonControl/ButtonControl mill/jssupport/jsApplication/controls/textFieldCounter/TextFieldCounter mill/jssupport/jsApplication/controls/treeSelect/TreeSelectWidget mill/jssupport/form/PhoneWidget mill/jssupport/TranslatableNode mill/jssupport/Announcement mill/jssupport/base mill/mill mill/jssupport/layout/LayoutContainer mill/jssupport/layout/GridLayout mill/jssupport/layout/GridLayoutColumn mill/jssupport/layout/layoutContent/ExternalContent mill/jssupport/layout/layoutContent/InternalContent mill/jssupport/layout/layoutContent/LogoHeader mill/jssupport/layout/layoutContent/RemoteUserPane mill/jssupport/layout/layoutContent/AuthorizationForm mill/jssupport/layout/layoutContent/ReportToModeratorForm mill/jssupport/layout/layoutContent/PersonInfoPane mill/jssupport/layout/layoutContent/RestorePasswordForm mill/jssupport/layout/layoutContent/ReportToModeratorInternalForm mill/jssupport/layout/carouselView/CarouselView mill/jssupport/layout/layoutMenu/LayoutMenu mill/jssupport/layout/layoutMenu/MobileMenu mill/jssupport/form/TextField mill/jssupport/form/TextAreaField mill/jssupport/form/FilteringSelectField mill/jssupport/form/CheckBoxField mill/jssupport/form/FileAttachmentField mill/jssupport/form/Attachment".split(" "),
function(c,a,b,e,f,g,h,l,m,r,n,k,p,q,u,y,v,t,x,z,A,E,I,H,L,B,D,K,M,R,Q,T,U,W,ca,J,P){window.app||(window.app={});a.extend(W,{fullWidth:null,_setFullWidthAttr:function(w){this.fullWidth=w;(w=window.app.getControlField(this))&&w.set("fullWidth",this.fullWidth)}});a.extend(q,{fullWidth:null,_setFullWidthAttr:function(w){this.fullWidth=w;(w=window.app.getControlField(this))&&w.set("fullWidth",this.fullWidth);w.titleWidget.placeAt(w.containerNode)}});a.extend(y,{fullWidth:null,_setFullWidthAttr:function(w){this.fullWidth=
w;(w=window.app.getControlField(this))&&w.set("fullWidth",this.fullWidth)}});a.extend(u,{fullWidth:null,_setFullWidthAttr:function(w){this.fullWidth=w;(w=window.app.getControlField(this))&&w.set("fullWidth",this.fullWidth)}});a.extend(T,{fullWidth:null,_setFullWidthAttr:function(w){this.fullWidth=w;(w=window.app.getControlField(this))&&w.set("fullWidth",this.fullWidth)}});a.extend(dijit._MasterTooltip,{orientTimer:null,prevCoords:null,checkPosition:function(w){if(this.aroundNode){if(w!==this.aroundNode&&
(this.prevCoords=null),this.prevCoords||(this.prevCoords=dojo.coords(this.aroundNode,!0)),w=dojo.coords(this.aroundNode,!0),w.y!==this.prevCoords.y||w.x!==this.prevCoords.x)this.prevCoords=null,this.orientTimer&&clearInterval(this.orientTimer),this.hide(this.aroundNode)}else this.prevCoords=null,this.orientTimer&&clearInterval(this.orientTimer)},_onShow:function(){k("ie")&&(this.domNode.style.filter="");this.prevCoords=null;this.orientTimer&&clearInterval(this.orientTimer);this.checkPosition(this.aroundNode);
this.orientTimer=setInterval(function(){this.checkPosition(this.aroundNode)}.bind(this),100)},_onHide:function(){this.domNode.style.cssText="";this.containerNode.innerHTML="";this._onDeck&&(this.show.apply(this,this._onDeck),this._onDeck=null);this.prevCoords=null;this.orientTimer&&clearInterval(this.orientTimer)}});return window.app=a.mixin(window.app,{queryString:g.queryToObject(document.location.search.substring(1)),appID:null,handler:null,registerHandler:null,registrationClass:null,accessCategory:null,
controlSets:null,translationPrefix:null,_preventSelfInvoking:!1,_parentWidgetByClass:function(){return function(w,C){for(var F=w.getParent();!F.isInstanceOf(C)&&F.getParent();)F=F.getParent();return F.isInstanceOf(C)?F:null}}(),_nestedWidgetByClass:function(){return function(w,C){return b.filter(w.getChildren(),function(F){return F&&F.isInstanceOf&&F.isInstanceOf(C)})}}(),anonymousDataByIdent:function(){},handlerDataByIdent:function(){},signin:function(){},getLayoutActionTitleIdent:function(){},queryEngine:function(w){return function(C,
F){function G(N){N=b.filter(N,C);w.filter&&(N=b.filter(N,w.filter));var S=F&&F.sort;S&&N.sort("function"===typeof S?S:function(X,Y){for(var Z,da=0;Z=S[da];da+=1){var aa=X[Z.attribute],ba=Y[Z.attribute];aa=null!==aa?aa.valueOf():aa;ba=null!==ba?ba.valueOf():ba;if(aa!==ba)return Z.descending===(null===aa||aa>ba)?-1:1}return 0});if(F&&(F.start||F.count)){var V=N.length;N=N.slice(F.start||0,(F.start||0)+(F.count||Infinity));N.total=V}return N}if("object"===typeof C||"undefined"===typeof C){var O=C;C=
function(N){for(var S in O)if(O.hasOwnProperty(S)){var V=O[S];if(V&&V.test&&N[S]){if(!V.test(N[S],N))return!1}else if(V!==N[S])return!1}return!0}}else if("string"===typeof C){if(!this[C])throw Error("No filter function "+C+" was found in store");C=this[C]}else if("function"!==typeof C)throw Error("Can not query with a "+typeof C);G.matches=C;return G}},createStore:function(w){var C=w.data||[];if(w.hasOwnProperty("propTypes")){var F=w.propTypes;a.isArray(F)||(F=[F]);b.forEach(C,function(G){b.forEach(F,
function(O){if(G.hasOwnProperty(O.property))switch(O.as){case "number":G[O.property]=parseInt(G[O.property],10);break;case "string":G[O.property]=G[O.property].toString()}})})}return new n(c(null,{data:C,idProperty:w.idProperty||"ID",queryEngine:this.queryEngine(w)})())},isDeferred:function(w){return null!==w&&a.isObject(w)&&w.hasOwnProperty("promise")&&a.isFunction(w.then)},multipleWidgetById:function(){return function(w){return x.toArray().filter(function(C){return(new RegExp("^"+w+"_\\d+$")).test(C.id)})}}(),
getControl:function(w,C){var F="string"===typeof Array.prototype.slice.call(arguments)[1]?Array.prototype.slice.call(arguments)[1]:"";a.isArray(w)||(w=[w]);var G=b.map(w,function(N){N=x.byId(N)||x.byId(N+F);void 0===N&&window.undefined;return N}),O=0<b.filter(G,function(N){return void 0===N}).length;F&&(C=Array.prototype.slice.call(arguments)[2]);if(!O&&a.isFunction(C))return C.apply(this,G)},getControlWidget:function(){return this.getControl.apply(this,Array.prototype.slice.call(arguments).concat([function(w){return w}]))||
null},getControlWidgets:function(w){if(!w)return[];a.isArray(w)||(w=[w]);return w.map(function(C,F){return C(F,function(G){return G})}.bind(null,this.getControl.bind(this))).filter(function(C){return!!C})},getControlField:function(){return function(w,C){"string"===typeof w&&(w=this.getControl(w,function(F){return F}));return this._parentWidgetByClass(w,C||L)}}(),getControlParentControlSet:function(){return function(w){return this._parentWidgetByClass(w,E)}}(),getControlParentControlSetGroup:function(w){return this._parentWidgetByClass(w,
H)},getControlRootControlSet:function(w){for(w=this.getControlParentControlSetGroup(w);w&&this.getControlParentControlSetGroup(w);)w=this.getControlParentControlSetGroup(w);return w},getControlNestedControlSet:function(w){return this._nestedWidgetByClass(w,E)},getControlNestedControlSetGroup:function(w,C){C?a.isArray(C)||(C=[C]):C=[];return b.filter(this._nestedWidgetByClass(w,H),function(F){return 0>b.indexOf(C,F)})},getControlContentHeader:function(){return function(w){w=this.getControlField(w);
if(!w)return null;for(w=w.domNode.previousSibling;w&&!m.contains(w,"officeFormContentHeader");)w=w.previousSibling;return m.contains(w,"officeFormContentHeader")?w:null}}(),setControlValue:function(){return function(w,C,F){if(a.isArray(w))b.forEach(w,function(N){this.setControlValue(N,C,F)},this);else if("string"===typeof w&&(w=this.getControl(w,function(N){return N})),void 0===C&&(C=w.isInstanceOf(dijit.form.CheckBox)?!1:""),P._isInternalDateObject(C)&&(C=P.formatDate(C)),w&&w.isInstanceOf(dijit.form.DateTextBox)&&
""===C&&(C=null),null!==w&&a.isObject(w))if(void 0!==F&&"string"===typeof F)w.set(F,C);else if(w.isInstanceOf(U)||w.isInstanceOf(T)||w.isInstanceOf(D)||null===w.store||!a.isObject(w.store))w.isInstanceOf(q)?w.set("checked",!!C):w.isInstanceOf(z)?w.onLoadDeferred.then(function(){null===C&&(C="");try{w.set("value",C)}catch(N){window.undefined}}):w.set("value",C);else{var G={};G[w.store.idProperty]=C;var O=w.store.query(G)[0];O||(G[w.store.idProperty]=parseInt(C,10),O=w.store.query(G)[0]);w.set("item",
O||"")}}}(),setBundleValue:function(){return function(w,C){a.isArray(w)||(w=[w]);b.forEach(w,function(F){if(a.isObject(F)){var G=null,O=null;if(a.isFunction(F.isInstanceOf)&&F.isInstanceOf(p))G=P.fieldValue(C,F.id),"[object Date]"===Object.prototype.toString.call(G)&&(G=C[F.id]),F.isInstanceOf(B)?(O={},O[F.id]={value:P.fieldValue(C,F.id+"Reference"),property:"fileReference"},this.setControlValue(F,G),this.setBundleValue(O)):(P._isInternalDateObject(G)&&(G=P.formatDate(G)),this.setControlValue(F,G,
null));else for(var N in F)if(F.hasOwnProperty(N)){var S=F[N];null!==S&&a.isObject(S)&&S.hasOwnProperty("value")?(G=S.value,S.hasOwnProperty("property")&&(O=S.property)):G=S;(S=x.byId(N))?this.setControlValue(S,G,O):window.undefined}}},this)}}(),validateWidgets:function(w,C){"boolean"!==typeof C&&(C=!1);a.isArray(w)||(w=[w]);var F=!1,G=!1,O=[];b.forEach(w,function(X){if(X){X._hasBeenBlurred=C;var Y=!a.isFunction(X.validate)||X.validate();X.isInstanceOf(q)&&!0===X.get("required")&&(Y=X.get("checked"));
Y||O.push(X.id);if(Y||X._hasBeenBlurred){var Z=this.getControlField(X);Z&&(r.set(Z.domNode,{border:Y?"none":"solid #d64646 1px"}),m[Y?"remove":"add"](Z.domNode,"isInvalid"))}Y||F||(C&&(dijit.scrollIntoView(X.containerNode||X.domNode),X.focus()),F=!0)}else G||(window.undefined,G=!0)},this);0<O.length&&window.undefined;var N=w[0];if(N&&(!F||C)&&(N=this.getControlParentControlSetGroup(N))&&N.hasOwnProperty("contentFormWrapper")){m[F?"add":"remove"](N.contentFormWrapper,"officeFormContentFormWrapperInvalid");
var S=app.getControlRootControlSet(N),V=null;if(S&&(V=app.getControlParentControlSetGroup(S))&&V.hasOwnProperty("contentFormWrapper"))m[F?"add":"remove"](V.contentFormWrapper,"officeFormContentFormWrapperInvalid");N.breadcrumbs&&N.breadcrumbs.initItemsState();S&&S.breadcrumbs&&S.breadcrumbs.initItemsState()}return!F},hideForValue:function(w,C,F){a.isArray(w)||(w=[w]);b.forEach(w,function(G){if(G.isInstanceOf(T))G.set("disabled",!0);else{var O=null,N=null;if(G.isInstanceOf(z))N=new e,G.onLoadDeferred.then(function(){O=
G.get("value");N.resolve()});else if(G.isInstanceOf(p))O=G.get("displayedValue")||G.get("value");else return;f(N,function(){G.isInstanceOf(dijit.form.CheckBox)&&(O=G.get("checked"));var S=G.domNode.parentNode;r.set(G.domNode,{display:"none"});var V=this.getControlField(G);V&&V.hintTextWidget&&V.hintTextWidget.domNode&&r.set(V.hintTextWidget.domNode,{display:"none"});S=l.create("span",null,S,"first");G.isInstanceOf(B)?(a.isArray(C)&&(V=b.filter(C,function(X){return("string"===typeof X.widget?this.getControl(X.widget,
function(Y){return Y}):X.widget)===G},this)[0],null!==V&&a.isObject(V)&&(G.set("value",V.value),G.set("fileReference",V.fileReference),a.mixin(G,{savedValue:V.value}))),G._hasFileReference()&&(V=G._getURI(),V=l.create("a",{href:V,target:"_blank",style:{textDecoration:"none"}},S),l.create("span",{className:"icon-set-attachment"},V),!1!==F&&W({className:"green padding-0-05em",display:"inline-block",text:"Office.Uploaded"},l.create("span",null,S)))):("string"===typeof O&&O?S.innerHTML=O:!O&&"acMagAbiturient"===
P.session.getRemoteUserAccessCategory()&&(G.isInstanceOf(y)||G.isInstanceOf(v)||G.isInstanceOf(t)||G.isInstanceOf(U))?S.innerHTML=J.getLocalization("Office.NoFieldData")?J.getLocalization("Office.NoFieldData"):"":"boolean"===typeof O&&(V=l.create("span",{innerHTML:"\x26nbsp;"},S),r.set(V,{display:"inline-block",width:"1.25em",margin:"0 .25em",backgroundImage:"url('"+dojo.moduleUrl("mill",O?"jssupport/theme/checkbox-checked.svg":"jssupport/theme/checkbox-unchecked.svg")+"')",backgroundPosition:"50%",
backgroundSize:"1.25em",backgroundRepeat:"no-repeat"})),a.mixin(G,{savedValue:"boolean"===typeof O?G.get("checked"):G.get("value")}));G.hasOwnProperty("savedValueNode")&&G.savedValueNode&&(l.destroy(G.savedValueNode),G.savedValueNode=null);a.mixin(G,{savedValueNode:S});G.hasOwnProperty("charactersRemainingWidget")&&null!==G.charactersRemainingWidget&&a.isObject(G.charactersRemainingWidget)&&G.charactersRemainingWidget.domNode&&r.set(G.charactersRemainingWidget.domNode,{display:"none"})}.bind(this))}},
this)},unhideForValue:function(w){a.isArray(w)||(w=[w]);b.forEach(w,function(C){if(C.isInstanceOf(T))C.set("disabled",!1);else if(C.isInstanceOf(p)){C.hasOwnProperty("savedValueNode")&&C.savedValueNode&&(l.destroy(C.savedValueNode),C.savedValueNode=null);r.set(C.domNode,{display:C.isInstanceOf(B)||C.isInstanceOf(q)?"inline-block":"block"});var F=this.getControlField(C);F&&F.hintTextWidget&&F.hintTextWidget.domNode&&r.set(F.hintTextWidget.domNode,{display:"block"});C.isInstanceOf(B)&&C.reset();C.hasOwnProperty("charactersRemainingWidget")&&
null!==C.charactersRemainingWidget&&a.isObject(C.charactersRemainingWidget)&&C.charactersRemainingWidget.domNode&&r.set(C.charactersRemainingWidget.domNode,{display:"block"})}},this)},hideControlForNode:function(){return function(w,C){if(w)if("string"===typeof w&&(w=this.getControl(w,function(G){return G})),a.isObject(w)&&null!==w){var F=this.getControlField(w);F&&(w=F);if(w&&w.hasOwnProperty("domNode"))m[!0===!!C?"add":"remove"](w.domNode,"hide-on-all")}else if(void 0!==w)m[!0===!!C?"add":"remove"](w,
"hide-on-all")}}(),cancelChange:function(){return function(w){a.isArray(w)||(w=[w]);b.forEach(w,function(C){if(C.isInstanceOf(p)){var F="";C.hasOwnProperty("savedValue")&&(F=C.savedValue);this.setControlValue(C,F)}},this);this.hideForValue(w)}}(),preventSelfInvoking:function(w){if(a.isFunction(w)){if("acForeignStudent"===window.app.accessCategory)return w.call();if(!1===window.app._preventSelfInvoking){window.app._preventSelfInvoking=!0;try{return w.call()}catch(C){window.undefined}finally{window.app._preventSelfInvoking=
!1}}}},uniqArrayValues:function(){return function(w,C){var F=[],G=[];b.forEach(w,function(O){var N=C(O);N&&0>F.indexOf(N)&&(F.push(N),G.push(O))});return G}}(),initEditorControl:function(){return function(w,C,F){w&&a.isObject(w)&&(w.set("_getValueAttr",function(){var G=w.getValue(!0);return this.clearTextValue(G)}.bind(this)),C.set("onClick",function(){w.onChange()}),w.set("onKeyDown",function(){w.onDisplayChanged();this.disabledSaveButton(C,!1,F);C.get("saveIntervalId")||C.set("saveIntervalId",setInterval(function(){C.onClick.call()},
5E3))}.bind(this)))}}(),disabledSaveButton:function(w,C,F){w&&a.isObject(w)&&"boolean"===typeof C&&(this.setControlValue(w,C,"disabled"),this.setControlValue(w,this.getTranslation(C?"ButtonLabelDataSaved":F),"label"),C&&w.get("saveIntervalId")&&(clearInterval(w.get("saveIntervalId")),w.set("saveIntervalId",null)))},getItemFromDataById:function(){return function(w,C,F){if(null!==w&&a.isObject(w))return w.hasOwnProperty(F)?b.filter(w[F],function(G){return String(G.ID)===String(C)})[0]:null}}(),controlOnChangeScriptHandler:function(w,
C,F,G){try{if(a.isObject(G)&&null!==G?(G.hasOwnProperty("controlNames")||(G.controlNames=[]),0<=b.indexOf(G.controlNames,C)?window.undefined:G.controlNames.push(C)):G={},!G.changedControl){var O=this.getControl(C,function(N){return N});null!==O&&w===O&&(F.apply(this,[O]),G.changedControl=O)}}catch(N){window.undefined}},clearTextValue:function(w){function C(V){V&&8===V.nodeType?l.destroy(V):V&&V.childNodes&&dojo.forEach(V.childNodes,function(X){C(X)})}var F=document.createElement("div");F.innerHTML=
w;C(F);w=dojo.query("*",F);for(var G=w.length-1;0<=G;--G){var O=w[G];0>dojo.indexOf("B I U STRIKE STRONG BR UL OL LI P DIV SPAN A".split(" "),O.nodeName)&&(dojo.forEach(O.childNodes,function(V){V&&O.parentNode.insertBefore(V,O)}),O.parentNode.removeChild(O));for(var N=O.attributes,S=N.length-1;0<=S;--S)"target"!==N[S].name&&"href"!==N[S].name&&O.removeAttributeNode(N[S])}return F.innerHTML},combinedTranslationIdent:function(){},getTranslation:function(w){return J.getLocalization(this.combinedTranslationIdent(w))}})})},
"mill/jssupport/layout/layoutContent/RemoteUserPane":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/query dojo/topic dojo/aspect dojo/window dojo/dom-construct dojo/dom-style dojo/dom-class dojo/dom-geometry dojo/router dijit/registry dijit/_WidgetBase dijit/_TemplatedMixin dojo/text!mill/jssupport/layout/layoutContent/remoteUserPane.html mill/jssupport/_TranslationMixin mill/jssupport/base mill/jssupport/session mill/mill".split(" "),function(c,a,b,e,f,g,h,l,m,r,n,k,
p,q,u,y,v,t,x,z){return mill.registerAlias("office.RemoteUserPane",c("mill.jssupport.layout.layoutContent.RemoteUserPane",[q,u,v],{baseClass:"officeRemoteUserPane",templateString:y,data:null,pencilTitle:null,logoutTitle:null,layoutContainerWidget:null,_regNumber:"",_loginName:"",_fullName:"",_birthDate:"",translatableAttributes:{pencilTitle:"Office.PersonalData",logoutTitle:"Office.SignOut"},attributeMap:{pencilTitle:{node:"pencilAction",type:"attribute",attribute:"title"},logoutTitle:{node:"logoutAction",
type:"attribute",attribute:"title"},_regNumber:{node:"regNumberNode",type:"innerHTML"},_loginName:{node:"loginNameNode",type:"innerHTML"},_fullName:{node:"fullNameNode",type:"innerHTML"},_birthDate:{node:"birthDateNode",type:"innerHTML"}},_getLayoutContainerWidgetAttr:function(){if(this.layoutContainerWidget)return this.layoutContainerWidget;for(var A=this;!A.isInstanceOf(office.layout.LayoutContainer)&&A.getParent();)A=A.getParent();A.isInstanceOf(office.layout.LayoutContainer)&&(this.layoutContainerWidget=
A);return this.layoutContainerWidget},_setDataAttr:function(A){this.data=A;("acSchoolOlymp"===t.accessCategory||"acStudOlymp"===t.accessCategory)&&(A=mill.fieldValue(t.presets,"RegNumber"))&&this.set("_regNumber",t.getLocalization("Office.RemoteUserPaneRegNumber")+":\x26#160;"+A);this.set("_loginName",(mill.session||t.session).userName);this.set("_birthDate",this.data.BirthDate);this.data.Photo&&m.set(this.remoteUserPhoto,{width:"75px",backgroundImage:'url("'+this.data.Photo+'")'});this.translate();
if(!window.hasOwnProperty("app")||!window.app.hasOwnProperty("authHandlers"))if("acMagCommissionMember"===t.accessCategory||"acForeignStudent"===x.getRemoteUserAccessCategory()||"acForeignPrepStudent"===x.getRemoteUserAccessCategory())m.set(this.pencilAction,{display:"none"}),"acForeignStudent"===x.getRemoteUserAccessCategory()&&new office.TranslatableNode({text:"Office.SignOut",display:"inline",onClick:t.logout},this.logoutTextNode);l.destroy(this.loadingNode);m.set(this.remoteUserPaneContentCover,
{display:"table"})},startup:function(){this.inherited(arguments);if(window.hasOwnProperty("app")&&window.app.hasOwnProperty("authHandlers"))r.remove(this.pencilAction,"icon-set-pencil2");else if("acForeignAbiturient"===t.accessCategory||"acForeignMagAbiturient"===t.accessCategory||"acForeignStudent"===window.app.accessCategory)r.remove(this.pencilAction,"icon-set-pencil2"),"acForeignStudent"!==window.app.accessCategory&&new office.TranslatableNode({text:"Office.PersonalData",display:"inline",onClick:this.action.bind(this)},
l.create("span",null,this.pencilAction));this.own(f.subscribe("vuz.onLoad",a.hitch(this,this.loadData)));g.after(h,"scrollIntoView",a.hitch(this,function(A){try{var E=n.position(A).y,I=h.getBox();70>=E&&this.get("layoutContainerWidget")?this.get("layoutContainerWidget").contentPane.domNode.scrollBy(0,E-72):50>I.h-n.position(A).h-E&&this.get("layoutContainerWidget").contentPane.domNode.scrollBy(0,50)}catch(H){}}),!0)},translate:function(){this.inherited(arguments);this.data&&this.set("_fullName",this.data[("en"===
t.locale.toLowerCase()?"Eng":"")+"FullName"]||this.data.FullName)},action:function(A){A.target&&(r.contains(A.target,"icon-set-exit")?t.logout():k.go("personaldata"))},loadData:function(){var A=[{part:0,name:"ID"},{part:0,name:"FullName"},{part:0,name:"EngFullName"},{part:0,name:"Photo"},{part:1,name:"ID",value:x.getRemoteUserPersonID()}];"acMagCommissionMember"!==t.accessCategory&&A.push({part:0,name:"BirthDate"});z.queryCursor({handler:t.mainHandler,className:"acMagCommissionMember"===t.accessCategory?
"TPerson":"TCommonStudent",headers:{"Disable-Basic-Auth":"yes"},query:A}).then(a.hitch(this,function(E){if(E=E.childNodes[0].childNodes[0]){var I=z.fieldValue(E,"Photo")?"/"+t.mainHandler+"/getblob.jpg?query\x3d"+z._itemsToQuery({className:"TCommonStudent",propName:"Photo",ID:z.fieldValue(E,"ID")}).split('"').join("'"):null;this.set("data",{FullName:z.fieldValue(E,"FullName"),EngFullName:z.fieldValue(E,"EngFullName").replace(/^\s\s*/,"").replace(/\s\s*$/,""),BirthDate:z.fieldValue(E,"BirthDate"),
Photo:I});this.isAdmissionAbiturient()&&m.set(this.remoteUserPhoto,{cursor:"pointer"})}}),a.hitch(this,function(E){this.loadingNode.innerHTML=E.message}))},isAdmissionAbiturient:function(){return/^ac(Bach|Mag)Abiturient$/.test(t.accessCategory)},changePhoto:function(){if(this.isAdmissionAbiturient()){var A=e(".officeFormContent");b.forEach(A,function(E){var I=p.byNode(E);I&&I.isInstanceOf(office.BachAbit.BachPhotoInfoForm)&&(E=0,"startup"!==k._currentPath&&(k.go("startup"),E=500),setTimeout(function(){h.scrollIntoView(I.domNode)},
E))})}}}))})},"mill/olap/cubeView":function(){define(["dijit/layout/BorderContainer","dijit/form/ToggleButton","dijit/form/Select","mill/mill"],function(){window.mill||(mill={});mill.olap||dojo.mixin(mill,{olap:{}});dojo.declare("mill.olap.cubeView",[dijit.layout.BorderContainer],{rttiManager:null,cubeName:null,cubeID:null,gutters:!1,design:"headline",style:"width:100%;height:100%;margin:0;overflow:hidden",headerPane:null,gridPane:null,_startedUp:!1,_rendering:!1,cubeDescription:null,valuesClassName:null,
horizontalDimension:null,verticalDimension:null,calculation:null,dimensionValues:null,measures:null,dimensionNames:null,measureNames:null,measureDescriptions:null,allDimensionValues:null,startup:function(c){if(!this._startedUp)if(this.dimensionValues={},this.allDimensionValues=[],this.measures={},this.dimensionNames={},this.measureNames={},this.measureDescriptions={},mill.queryCursor({headers:{"Disable-Basic-Auth":"yes"},handler:this.rttiManager.handle,fetchAll:!0,className:"TCube",sync:!0,query:[{part:0,
name:"ID"},{part:0,name:"Name"},{part:0,name:"Description"},{part:0,name:"ValuesClass$N"},{part:0,name:"IsAccessible"},{part:1,name:this.cubeID?"ID":"Name",value:this.cubeID||this.cubeName}],load:dojo.hitch(this,function(f){(f=f.documentElement.childNodes[0])&&"1"==mill.fieldValue(f,"IsAccessible")&&(this.cubeID=mill.fieldValue(f,"ID"),this.cubeName=mill.fieldValue(f,"Name"),this.cubeDescription=mill.fieldValue(f,"Description"),this.valuesClassName=mill.fieldValue(f,"ValuesClass-N"))})}),this.cubeID&&
this.cubeName){var a=[],b=[],e=[];(new dojo.DeferredList([mill.queryCursor({headers:{"Disable-Basic-Auth":"yes"},handler:this.rttiManager.handle,fetchAll:!0,className:"TCubeDimension",sync:!1,query:[{part:0,name:"ID"},{part:0,name:"Description"},{part:0,name:"PropertyName"},{part:2,name:"Description"},{part:1,name:"Master",value:this.cubeID}],fetched:function(f){a.push(f)}}),mill.queryCursor({headers:{"Disable-Basic-Auth":"yes"},handler:this.rttiManager.handle,fetchAll:!0,className:"TCubeDimensionValue",
sync:!1,query:[{part:0,name:"ID"},{part:0,name:"Description"},{part:0,name:"Master"},{part:0,name:"Parent"},{part:2,name:"Position"},{part:1,name:"Cube",value:this.cubeID}],fetched:dojo.hitch(this,function(f){this.allDimensionValues.push(f)})}),mill.queryCursor({headers:{"Disable-Basic-Auth":"yes"},handler:this.rttiManager.handle,fetchAll:!0,className:"TCubeMeasure",sync:!1,query:[{part:0,name:"ID"},{part:0,name:"Description"},{part:0,name:"PropertyName"},{part:2,name:"Description"},{part:1,name:"Master",
value:this.cubeID}],fetched:function(f){b.push(f)}}),mill.queryCursor({headers:{"Disable-Basic-Auth":"yes"},handler:this.rttiManager.handle,fetchAll:!0,className:"TCubeCalculation",sync:!1,query:[{part:0,name:"ID"},{part:0,name:"Description"},{part:2,name:"Completed",special:"desc"},{part:1,name:"Completed",value:"*"},{part:1,name:"Master",value:this.cubeID}],fetched:function(f){e.push(f)}})])).addCallback(dojo.hitch(this,function(){var f=[];f.push("\x3ch1\x3e"+this.cubeDescription+"\x3c/h1\x3e");
f.push("\x3ctable\x3e");f.push('\x3ctr style\x3d"display:'+(1>=e.length?"none":"")+'" \x3e');f.push("\x3ctd\x3e");f.push(dojo.i18n.getLocalization("mill","resources").forStatus+"\x26#160;\x26#160;\x26#160;");f.push("\x3c/td\x3e");f.push("\x3ctd\x3e");f.push("\x3cdiv");f.push(' data-dojo-type\x3d"dijit.form.Select"');f.push(' data-dojo-props\x3d\'style:"width:100%", onChange: function(){dijit.byId("'+this.id+"\")._calculationChanged(this.value)}'");f.push("\x3e");dojo.forEach(e,dojo.hitch(this,function(g){this.calculation||
(this.calculation=mill.fieldValue(g,"ID"));f.push('\x3cspan data-dojo-value\x3d"'+mill.fieldValue(g,"ID")+'"\x3e\x3cb style\x3d"color: #3E62A2"\x3e'+mill.fieldValue(g,"Description")+"\x3c/b\x3e\x3c/span\x3e")}));f.push("\x3c/div\x3e");f.push("\x3c/td\x3e");f.push("\x3c/tr\x3e");dojo.forEach(a,dojo.hitch(this,function(g){this.horizontalDimension?this.verticalDimension||(this.verticalDimension=mill.fieldValue(g,"ID")):this.horizontalDimension=mill.fieldValue(g,"ID");this.dimensionNames[mill.fieldValue(g,
"ID")]=mill.fieldValue(g,"PropertyName");f.push("\x3ctr\x3e");f.push("\x3ctd\x3e");f.push(mill.fieldValue(g,"Description")+":\x26#160;\x26#160;\x26#160;");f.push("\x3c/td\x3e");f.push("\x3ctd\x3e");f.push("\x3cdiv");f.push(' data-dojo-type\x3d"dijit.form.Select"');f.push(' data-dojo-props\x3d\'style:"width:100%", id:"'+this.id+"_dimensionSelect_"+mill.fieldValue(g,"ID")+'", onChange: function(){dijit.byId("'+this.id+'")._dimensionValueChanged("'+mill.fieldValue(g,"ID")+"\", this.value)}'");f.push("\x3e");
f.push("\x3c/div\x3e");f.push("\x3c/td\x3e");f.push("\x3ctd\x3e");f.push('\x3cbutton dojoType\x3d"dijit.form.ToggleButton"');f.push(" label\x3d\"\x3cdiv style\x3d'width:12px;height:12px;background-image:url("+dojo.moduleUrl("mill","olap/verticalDimension.png")+");overflow:hidden'\x3e\x26#160;\x3c/div\x3e\"");f.push("  onClick\x3d\"dijit.byId('"+this.id+"')._toVerticalDimension('"+mill.fieldValue(g,"ID")+"')\"");f.push('  checked\x3d"'+(this.verticalDimension==mill.fieldValue(g,"ID")?"true":"false")+
'"');f.push(' id\x3d"'+this.id+"_toVerticalButton_"+mill.fieldValue(g,"ID")+'"');f.push("/\x3e");f.push('\x3cbutton dojoType\x3d"dijit.form.ToggleButton"');f.push(" label\x3d\"\x3cdiv style\x3d'width:12px;height:12px;background-image:url("+dojo.moduleUrl("mill","olap/horizontalDimension.png")+");overflow:hidden'\x3e\x26#160;\x3c/div\x3e\"");f.push("  onClick\x3d\"dijit.byId('"+this.id+"')._toHorizontalDimension('"+mill.fieldValue(g,"ID")+"')\"");f.push('  checked\x3d"'+(this.horizontalDimension==
mill.fieldValue(g,"ID")?"true":"false")+'"');f.push(' id\x3d"'+this.id+"_toHorizontalButton_"+mill.fieldValue(g,"ID")+'"');f.push("/\x3e");f.push("\x3c/td\x3e");f.push("\x3c/tr\x3e")}));f.push('\x3ctr style\x3d"display:'+(1>=b.length?"none":"")+'"\x3e');f.push("\x3ctd\x3e");f.push(dojo.i18n.getLocalization("mill","resources").rates+"\x26#160;\x26#160;\x26#160;");f.push("\x3c/td\x3e");f.push("\x3ctd\x3e");dojo.forEach(b,dojo.hitch(this,function(g){this.measures[mill.fieldValue(g,"ID")]=!0;this.measureNames[mill.fieldValue(g,
"ID")]=mill.fieldValue(g,"PropertyName");this.measureDescriptions[mill.fieldValue(g,"ID")]=mill.fieldValue(g,"Description");f.push('\x3cinput dojoType\x3d"dijit.form.CheckBox"');f.push("  onClick\x3d\"dijit.byId('"+this.id+"')._measureChanged('"+mill.fieldValue(g,"ID")+"', this.attr('checked'))\"");f.push(' id\x3d"'+this.id+"_measureCheckBox_"+mill.fieldValue(g,"ID")+'"');f.push('checked\x3d"true"');f.push("/\x3e");f.push("\x26#160;");f.push('\x3cb style\x3d"color:#3E62A2"\x3e');f.push(mill.fieldValue(g,
"Description"));f.push("\x3c/b\x3e");f.push("\x26#160;")}));f.push("\x3c/td\x3e");f.push("\x3c/tr\x3e");f.push("\x3c/table\x3e");f.push('\x3cdiv style\x3d"margin-top:10px;"\x3e');f.push('\x3cdiv dojoType\x3d"dijit.form.Button"');f.push('showLabel\x3d"false"');f.push("onClick\x3d\"dijit.byId('"+this.id+"')._toExcel('.xls')\"");f.push('iconClass\x3d"CExcelImageIndex"\x3e');f.push("\x3c/div\x3e");f.push('\x3cdiv dojoType\x3d"dijit.form.Button"');f.push('showLabel\x3d"false"');f.push("onClick\x3d\"dijit.byId('"+
this.id+"')._toExcel('.pdf')\"");f.push('iconClass\x3d"CPDFImageIndex"\x3e');f.push("\x3c/div\x3e");f.push('\x3cdiv dojoType\x3d"dijit.form.Button"');f.push('showLabel\x3d"false"');f.push("onClick\x3d\"dijit.byId('"+this.id+"')._toExcel('.html')\"");f.push('iconClass\x3d"CHTMLDocumentImageIndex"\x3e');f.push("\x3c/div\x3e");f.push("\x3c/div\x3e");this.headerPane=new dijit.layout.ContentPane({region:"top"});this.addChild(this.headerPane);this.gridPane=new dijit.layout.ContentPane({region:"center",
style:"overflow:scroll"});this.addChild(this.gridPane);dojo.place(f.join(""),this.headerPane.containerNode,"only");dojo.parser.parse(this.headerPane.containerNode);this._startedUp=!0;this._checkDimensionValues(this.calculation);this._render();c&&c()}))}else alert(dojo.i18n.getLocalization("mill","resources").youHaveNotAccess)},_checkDimensionValues:function(c){if(c){var a={};mill.queryCursor({headers:{"Disable-Basic-Auth":"yes"},handler:this.rttiManager.handle,fetchAll:!0,className:"TCubeDimensionValue",
sync:!0,query:[{part:0,name:"ID"},{part:1,name:"Cube",value:this.cubeID},{part:0,name:"HasValues",value:"TCubeDimensionValue.HasValues",special:"22",context:[{name:"Calculation",domain:"TCubeCal\u0441ulation required domain",value:c}]}],fetched:function(b){"0"==mill.fieldValue(b,"HasValues")&&(a[mill.fieldValue(b,"ID")]=!0)},load:dojo.hitch(this,function(b){for(var e in this.dimensionNames){var f=dijit.byId(this.id+"_dimensionSelect_"+e),g=[{label:'\x3cb style\x3d"color: #3E62A2"\x3e(\u0412\u0441\u0435)\x3c/b\x3e',
value:""}],h=this;(function(l,m,r){var n=arguments.callee;dojo.forEach(h.allDimensionValues,function(k){mill.fieldValue(k,"Master")!=l||mill.fieldValue(k,"Parent")!=m||a[mill.fieldValue(k,"ID")]||(g.push({value:mill.fieldValue(k,"ID"),label:'\x3cb style\x3d"margin-left:'+10*r+'px"\x3e'+mill.fieldValue(k,"Description")+"\x3c/b\x3e"}),n(l,mill.fieldValue(k,"ID"),r+1))})})(e,"",0);f.attr("options",g);f.attr("value","")}return b})})}},_calculationChanged:function(c){this.calculation=c;this._checkDimensionValues(c);
this._render()},_dimensionValueChanged:function(c,a){this.dimensionValues[c]=a;this._render()},_toVerticalDimension:function(c){this.horizontalDimension==c&&(this.horizontalDimension=this.verticalDimension);this.dimensionValues[c]=null;this.verticalDimension=c;this._render()},_toHorizontalDimension:function(c){this.verticalDimension==c&&(this.verticalDimension=this.horizontalDimension);this.dimensionValues[c]=null;this.horizontalDimension=c;this._render()},_measureChanged:function(c,a){this.measures[c]=
!!a;this._render()},_formatToggleButton:function(c){dojo.query(".dijitButtonNode",c.domNode).style({backgroundImage:c.checked?"url()":"",backgroundColor:c.checked?"#FFFFFF":""})},_renderControls:function(){for(var c in this.dimensionNames){var a=dijit.byId(this.id+"_toVerticalButton_"+c);a.attr("checked",c==this.verticalDimension);this._formatToggleButton(a);a=dijit.byId(this.id+"_toHorizontalButton_"+c);a.attr("checked",c==this.horizontalDimension);this._formatToggleButton(a);a=dijit.byId(this.id+
"_dimensionSelect_"+c);c==this.verticalDimension||c==this.horizontalDimension?(a.attr("disabled",!0),a.attr("value","")):a.attr("disabled",!1)}c=0;for(var b in this.measures)this.measures[b]&&c++;for(b in this.measures)a=dijit.byId(this.id+"_measureCheckBox_"+b),a.attr("disabled",1>=c&&a.attr("checked"))},_render:function(){if(!this._rendering){this._rendering=!0;this._renderControls();var c=[{part:0,name:"Hierarchical"},{part:0,name:"Status$N"},{part:1,name:"Calculation",value:this.calculation}],
a;for(a in this.dimensionNames)a==this.verticalDimension||a==this.horizontalDimension?c.push({part:0,name:this.dimensionNames[a]}):c.push({part:1,name:this.dimensionNames[a],value:this.dimensionValues[a]||"!*"});for(var b in this.measures)this.measures[b]&&c.push({part:0,name:this.measureNames[b]});var e=[];mill.queryCursor({headers:{"Disable-Basic-Auth":"yes"},handler:this.rttiManager.handle,fetchAll:!0,className:this.valuesClassName,sync:!1,query:c,fetched:function(f){e.push(f)},load:dojo.hitch(this,
function(f){var g=dojo.place(this._buildDimensionTable(this.horizontalDimension,this.verticalDimension),this.gridPane.containerNode,"only"),h=0,l;for(l in this.measures)this.measures[l]&&h++;f=dojo.clone(this.dimensionNames);delete f[this.horizontalDimension];delete f[this.verticalDimension];for(var m in this.dimensionValues)this.dimensionValues[m]&&delete f[m];var r=0;for(m in f)r++;dojo.forEach(e,dojo.hitch(this,function(n){var k=mill.fieldValue(n,this.dimensionNames[this.horizontalDimension]),
p=mill.fieldValue(n,this.dimensionNames[this.verticalDimension]),q=p?dojo.query("TR#"+this.id+"_"+p,g)[0]:g.rows[g.rows.length-1];q.style.display="";var u=k?dojo.query("TD#"+this.id+"_"+k,g.rows[0])[0]:g.rows[0].cells[g.rows[0].cells.length-1];dojo.forEach(g.rows,function(x){x.cells[u.cellIndex].style.display=""});q=q.cells[u.cellIndex];var y=[],v=["olapValue"];"1"==mill.fieldValue(n,"Hierarchical")&&v.push("olapHierarchical");k&&p||v.push("olapDimensionSummaryValue");y.push('\x3cdiv class\x3d"'+
v.join(" ")+'"\x3e');r&&y.push("\x3ca href\x3d\"javascript:dijit.byId('"+this.id+"')._details("+(k?"'"+k+"'":"null")+","+(p?"'"+p+"'":"null")+')"\x3e');if(1>=h)for(var t in this.measures)this.measures[t]&&(y.push('\x3cspan style\x3d"color:black"\x3e'+this.formatValue(mill.fieldValue(n,this.measureNames[t]),k,p)+"\x3c/span\x3e"),v=(v=n.getElementsByTagName(this.measureNames[t])[0])?v.getAttribute("type"):"","int"==v||"dbl"==v)&&(q.align="right");else{for(t in this.measures)this.measures[t]&&(y.push("\x3cdiv\x3e"),
y.push('\x3cspan class\x3d"olapMeasureTitle"\x3e'+this.measureDescriptions[t]+':\x26#160;\x3c/span\x3e\x3cspan style\x3d"color:black"\x3e'+this.formatValue(mill.fieldValue(n,this.measureNames[t]),k,p)+"\x3c/span\x3e"),y.push("\x3c/div\x3e"));q.align="right"}r&&y.push("\x3c/a\x3e");y.push("\x3c/div\x3e");dojo.place(y.join(""),q,"only")}));this._rendering=!1})})}},_buildDimensionTable:function(c,a){var b=[];b.push('\x3ctable cellspacing\x3d"0" cellpadding\x3d"0"\x3e');var e=[],f=[];dojo.forEach(dijit.byId(this.id+
"_dimensionSelect_"+c).options,dojo.hitch(this,function(g){g.value&&e.push({id:g.value,label:g.label})}));dojo.forEach(dijit.byId(this.id+"_dimensionSelect_"+a).options,dojo.hitch(this,function(g){g.value&&f.push({id:g.value,label:g.label})}));b.push("\x3ctr\x3e");b.push("\x3ctd\x3e");b.push("\x3c/td\x3e");dojo.forEach(e,dojo.hitch(this,function(g){b.push('\x3ctd class\x3d"olapDimensionHeaderCell" style\x3d"display:none" align\x3d"center" valign\x3d"center" id\x3d"'+this.id+"_"+g.id+'"\x3e');b.push('\x3cdiv class\x3d"olapDimensionHeader"\x3e');
b.push(g.label);b.push("\x3c/div\x3e");b.push("\x3c/td\x3e")}));b.push('\x3ctd  class\x3d"olapDimensionHeaderCell" align\x3d"center" valign\x3d"center" \x3e');b.push('\x3cb class\x3d"olapDimensionSummaryHeader"\x3e'+dojo.i18n.getLocalization("mill","resources").total+"\x3c/b\x3e");b.push("\x3c/td\x3e");b.push("\x3c/tr\x3e");dojo.forEach(f,dojo.hitch(this,function(g){b.push('\x3ctr  style\x3d"display:none"  id\x3d"'+this.id+"_"+g.id+'"\x3e');b.push('\x3ctd class\x3d"olapDimensionHeaderCell"\x3e');
b.push('\x3cdiv class\x3d"olapDimensionHeader"\x3e');b.push(g.label);b.push("\x3c/div\x3e");b.push("\x3c/td\x3e");dojo.forEach(e,dojo.hitch(this,function(h){b.push('\x3ctd  class\x3d"olapValueCell" style\x3d"display:none" \x3e');b.push("\x26#160;");b.push("\x3c/td\x3e")}));b.push('\x3ctd class\x3d"olapDimensionSummaryCell"\x3e');b.push("\x26#160;");b.push("\x3c/td\x3e");b.push("\x3c/tr\x3e")}));b.push("\x3ctr\x3e");b.push('\x3ctd class\x3d"olapDimensionHeaderCell"\x3e');b.push('\x3cb class\x3d"olapDimensionSummaryHeader"\x3e'+
dojo.i18n.getLocalization("mill","resources").total+"\x3c/b\x3e");b.push("\x3c/td\x3e");dojo.forEach(e,dojo.hitch(this,function(g){b.push('\x3ctd  class\x3d"olapDimensionSummaryCell" style\x3d"display:none" \x3e');b.push("\x26#160;");b.push("\x3c/td\x3e")}));b.push('\x3ctd class\x3d"olapDimensionSummaryCell"\x3e');b.push("\x26#160;");b.push("\x3c/td\x3e");b.push("\x3c/tr\x3e");b.push("\x3c/table\x3e");return b.join("")},_toExcel:function(c){var a=[],b=[],e;for(e in this.dimensionNames)e!=this.verticalDimension&&
e!=this.horizontalDimension&&b.push(e+"\x3d"+(this.dimensionValues[e]||"!*"));for(var f in this.measures)this.measures[f]&&a.push(f);mill.executeExcelTemplate({handler:this.rttiManager.handle,className:"TCube",templateName:"Values",fileName:this.cubeDescription+c,extension:c,params:{ID:this.cubeID,Calculation:this.calculation,HorizontalDimension:this.horizontalDimension,VerticalDimension:this.verticalDimension,MeasuresList:a.join(";"),Filters:b.join(";")}})},_details:function(c,a){var b=dojo.clone(this.dimensionNames);
delete b[this.horizontalDimension];delete b[this.verticalDimension];for(var e in this.dimensionValues)this.dimensionValues[e]&&delete b[e];if(c)for(e in b){this.dimensionValues[this.horizontalDimension]=c;var f=dijit.byId(this.id+"_dimensionSelect_"+this.horizontalDimension);this._rendering=!0;f.attr("value",c);this._rendering=!1;this.horizontalDimension=e;delete b[e];break}if(a)for(e in b){this.dimensionValues[this.verticalDimension]=a;f=dijit.byId(this.id+"_dimensionSelect_"+this.verticalDimension);
this._rendering=!0;f.attr("value",a);this._rendering=!1;this.verticalDimension=e;delete b[e];break}this._render()},formatValue:function(c,a,b){return c||"\x3ci\x3e"+dojo.i18n.getLocalization("mill","resources").defaultNoValue+"\x3c/i\x3e"}})})},"mill/jssupport/form/_FormContentSup":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/topic dojo/Deferred dojo/DeferredList dojo/when dijit/_CssStateMixin mill/jssupport/base mill/mill".split(" "),function(c,a,b,e,f,g,h,l,m,r){return mill.registerAlias("office.form._FormContentSup",
c("mill.jssupport.form._FormContentSup",[l],{buildFormMap:null,_formQuery:null,_batchDone:null,_deferredActionQuery:null,_deferredActionHandler:null,onBatchDone:function(){var n=new f;n.resolve();return n.promise},_batch:function(){var n=new f;this._deferredActionHandler||(this._deferredActionHandler=new f);m.deferredActionQuery&&this._deferredActionQuery||this._deferredActionHandler.isResolved()||this._deferredActionHandler.resolve();if(this._batchDone)return n.resolve(),n.promise;this.set("readOnly",
!0);var k=a.hitch(this,function(){if(!this.formQuery().length)return this.set("readOnly",!1),n.resolve(),n.promise;this._formQuery=this.formQuery();r.batch({handler:m.mainHandler,language:m.locale,queries:this._formQuery}).then(function(p){this.buildForm();var q=p.documentElement.childNodes,u=function(v){v++;this._formQuery.length>v?y(v):a.isFunction(this.onBatchDone)?this.onBatchDone().then(function(){this._batchDone=!0;this.set("readOnly",!1);n.resolve()}.bind(this)):(this._batchDone=!0,this.set("readOnly",
!1),n.resolve())}.bind(this),y=a.hitch(this,function(v){this._formQuery[v]&&this._formQuery[v].load?h(this._formQuery[v].load(q[v]?q[v].childNodes:[]),a.hitch(this,function(){u(v)})):u(v)});0<q.length&&y(0)}.bind(this),a.hitch(this,function(p){this.loadingNode.innerHTML=p.message;n.reject(p)}))});(new g([m.getMaxDocCopySize(),m.getOptionsValue(),this._deferredActionHandler])).then(function(){m.rtti?m.rtti.load().then(k):k()});return n.promise},getVisibleListParameters:function(){var n=m.rtti.get("TClass",
null,this.executeClassName);n=n?m.rtti.getRoutine(null,this.executeMethodName,n.ID):null;return b.filter(n?m.rtti.listParameters(n.ID):[],function(k){return"scPublic"===m.rtti.get("TEnumerationItem",k.Scope).Name})},buildForm:function(){m.rtti&&b.forEach(this.getVisibleListParameters(),a.hitch(this,function(n){var k=this.buildFormMap&&this.buildFormMap[n.Name]?this.buildFormMap[n.Name]:null,p=k&&k.storeDomain?m.rtti.getDomain(null,k.storeDomain):m.rtti.getDomain(n.Domain),q={name:n.Name,text:n.Description+
("TBooleanDomain"!==p.handle?";:":""),required:p.Required};k&&k.placeHolder&&a.mixin(q,{placeHolder:k.placeHolder});if(!(this.buildFormMap&&a.isArray(this.buildFormMap.skipParameter)&&0<=b.indexOf(this.buildFormMap.skipParameter,n.Name))){var u=this,y=k?k.storeQuery||null:null,v,t,x=k&&k.Group?k.Group:n.Group;x&&(x=this.getField(x))&&x.addChild&&(u=x);try{switch(p.handle){case "TClassDomain":var z=k&&k.widgetConstructor?k.widgetConstructor:office.form.FilteringSelectField;(t=(v=new z(q)).controlNode)&&
this.registerWidget(t)&&u.addChild(v);var A=k?k.domainContext||null:null,E=k&&k.storeBatchRequest&&k.storeBatchRequest.length?k.storeBatchRequest:null,I=k&&"boolean"===typeof k.storeDoTranslate?k.storeDoTranslate:null,H=k&&"boolean"===typeof k.clientFiltering?k.clientFiltering:null;k&&k.searchAttrObject&&this.setWidgetAttr(n.Name,"searchAttrObject",k.searchAttrObject);z=null;k&&k.jsonStore&&(z=a.isFunction(k.jsonStore)?k.jsonStore.call():k.jsonStore);var L=null;k&&k.fetchProperties&&(L=k.fetchProperties);
this.setWidgetAttr(n.Name,"store",z?z:m.rtti.domainStore(p,A,y,E,I,H));null!==L&&this.setWidgetAttr(n.Name,"fetchProperties",L);break;case "TEnumerationDomain":(t=(v=new office.form.FilteringSelectField(q)).controlNode)&&this.registerWidget(t)&&u.addChild(v);this.setWidgetAttr(n.Name,"searchAttrObject","Description");this.setWidgetAttr(n.Name,"store",m.rtti.domainStore(p,null,y));break;case "TStringDomain":z=k&&k.widgetConstructor?k.widgetConstructor:office.form.TextField;z===office.form.TextField&&
a.mixin(q,{maxLength:p.Length});v=new z(q);if(t=v.controlNode||v)this.registerWidget(t),u.addChild(v);k&&k.validator&&(L=k.validator,t.set("validator",L()));break;case "TIntegerDomain":z=k&&k.widgetConstructor?k.widgetConstructor:office.form.TextField;z===office.form.TextField&&a.mixin(q,{regExp:"^\\d+$",invalidMessage:"Office.ItegerInvalidMessage"});(t=(v=new z(q)).controlNode)&&this.registerWidget(t)&&u.addChild(v);break;case "TInt64Domain":z=k&&k.widgetConstructor?k.widgetConstructor:office.form.TextField;
z===office.form.TextField&&a.mixin(q,{regExp:"^\\d+$",invalidMessage:"Office.ItegerInvalidMessage"});(t=(v=new z(q)).controlNode)&&this.registerWidget(t)&&u.addChild(v);break;case "TDateDomain":z=k&&k.widgetConstructor?k.widgetConstructor:office.form.TextField;a.mixin(q,{invalidMessage:k&&k.invalidMessage?k.invalidMessage:"Office.InvalidDate"})&&(t=(v=new z(q)).controlNode)&&this.registerWidget(t)&&u.addChild(v);z===office.form.CalendarField&&k&&k.store&&t.set("store",k.store);k&&k.validator?(L=k.validator,
t.set("validator",L())):this.setWidgetAttr(n.Name,"validator",this.dateValidator());break;case "TTimeDomain":z=k&&k.widgetConstructor?k.widgetConstructor:office.form.TextField;a.mixin(q,{invalidMessage:k&&k.invalidMessage?k.invalidMessage:"Office.InvalidTime"})&&(t=(v=new z(q)).controlNode)&&this.registerWidget(t)&&u.addChild(v);k&&k.validator?(L=k.validator,t.set("validator",L())):this.setWidgetAttr(n.Name,"validator",this.timeValidator());break;case "TBlobDomain":z=k&&k.widgetConstructor?k.widgetConstructor:
office.form.FileAttachmentField;z===office.form.FileUploaderField&&a.mixin(q,{name:n.Name+"Uploader",fileInputName:n.Name});k&&k.attachmentType&&a.mixin(q,{attachmentType:k.attachmentType});k&&k.fileExtension&&a.mixin(q,{extension:k.fileExtension});k&&k.fileAccept&&a.mixin(q,{accept:k.fileAccept});k&&k.maxSize&&a.mixin(q,{maxSize:k.maxSize});(t=(v=new z(q)).controlNode)&&this.registerWidget(t)&&u.addChild(v);break;case "TExternalDataDomain":z=k&&k.widgetConstructor?k.widgetConstructor:office.form.UploaderField;
k&&k.autoUpload&&a.mixin(q,{autoUpload:k.autoUpload});(t=(v=new z(q)).controlNode)&&this.registerWidget(t)&&u.addChild(v);break;case "TBooleanDomain":z=k&&k.widgetConstructor?k.widgetConstructor:n.Group&&n.Group===n.Name?office.form.ToggleContainer:office.form.CheckBoxField,z===office.form.ToggleContainer&&n.Tab&&a.mixin(q,{header:n.Tab}),a.mixin(q,{doubleColumn:k&&"boolean"===typeof k.doubleColumn?k.doubleColumn:!1})&&(t=(v=new z(q)).controlNode)&&this.registerWidget(t)&&u.addChild(v),z===office.form.FilteringSelectField&&
(k&&k.searchAttrObject&&this.setWidgetAttr(n.Name,"searchAttrObject",k.searchAttrObject),y=null,k&&k.jsonStore&&(y=a.isFunction(k.jsonStore)?k.jsonStore.call():k.jsonStore),this.setWidgetAttr(n.Name,"store",y))}t&&k&&(k.onChange&&t.set("onChange",k.onChange),a.isFunction(k.startup)&&k.startup())}catch(B){}0<=b.indexOf(["TStringDomain","TIntegerDomain","TDateDomain"],p.handle)&&v&&q&&q.text&&(n=q.text.split(";")[0]+".Example",k=m.queryString,(m.getLocalization(n)||k&&"true"===k.show_resource_idents)&&
v.set("dataExample",q.text.split(";")[0]+".Example"));t&&u!==this&&u.addWidget(t)}}))},formQuery:function(){return[]},scrollSpyNextStep:function(n,k,p){this._layoutScrollSpyItem&&(this._layoutScrollSpyItem.set("preCompleted",!0),n&&k&&(this._layoutScrollSpyItem.set("completed",!0),(n=n._layoutScrollSpyItem)&&k.then(a.hitch(n,function(){this.set("preCompleted",!0);p&&this.onClick()}))))}}))})},"mill/MillTooltipDialog":function(){define(["dijit/TooltipDialog"],function(){dojo.declare("mill.MillTooltipDialog",
[dijit.TooltipDialog],{postCreate:function(){this.inherited(arguments);this.own(dojo.subscribe("mill.MillTooltipDialog._statusChanged",this,function(){this._statusChanged&&"function"===typeof this._statusChanged&&this._statusChanged()}),dojo.subscribe("mill.MillTooltipDialog.sendCheckBoxClick",this,function(){this.sendCheckBoxClick&&"function"===typeof this.sendCheckBoxClick&&this.sendCheckBoxClick()}),dojo.subscribe("mill.MillTooltipDialog._postAdminInfo",this,function(){this._postAdminInfo&&"function"===
typeof this._postAdminInfo&&this._postAdminInfo()}),dojo.subscribe("mill.MillTooltipDialog._dismiss",this,function(){this._dismiss&&"function"===typeof this._dismiss&&this._dismiss()}),dojo.subscribe("mill.MillTooltipDialog._fix",this,function(){this._fix&&"function"===typeof this._fix&&this._fix()}),dojo.subscribe("mill.MillTooltipDialog.closeClick",this,function(){this.closeClick&&"function"===typeof this.closeClick&&this.closeClick()}))}})})},"mill/sizeableDialog":function(){define(["dijit/_Widget",
"dijit/_Templated","dijit/Dialog","dojox/layout/ResizeHandle"],function(){dojo.declare("mill.sizeableDialog",[dijit.Dialog],{sizeable:"xy",userSize:null,_sizeDifferences:null,_startupResize:function(){var c=dojo._getMarginSize(this.domNode),a=dojo._getMarginSize(this.containerNode);this._sizeDifferences={dh:c.h-a.h,dw:c.w-a.w};this.userSize&&(dojo.style(this.domNode,this.userSize),this._onResize(),this._position());this._resizeHandle||(a=document.createElement("div"),this.domNode.appendChild(a),this._resizeHandle=
new dojox.layout.ResizeHandle({targetId:this.id,resizeAxis:this.sizeable,activeResize:!0,intermediateChanges:!1,minHeight:c.h,minWidth:c.w,onResize:dojo.hitch(this,function(){setTimeout(dojo.hitch(this,function(){this._onResize()}),1)})},a),this._resizeHandle.startup())},postCreate:function(){this.inherited(arguments);this.domNode.style.top="-1800px";this.containerNode.style.padding="0"},_resizeHandle:null,_onResize:function(){this.userSize={height:this.domNode.style.height,width:this.domNode.style.width};
var c=dojo._getMarginSize(this.domNode);dojo.style(this.containerNode,{height:c.h-this._sizeDifferences.dh+"px",width:c.w-this._sizeDifferences.dw+"px"});c=[];for(var a=0;a<this.containerNode.childNodes.length;a++){var b=this.containerNode.childNodes[a];b.style&&(dojo.style(b,{height:this.containerNode.style.height,width:this.containerNode.style.width}),(b=dijit.byNode(b))&&b.layout&&c.push(b))}c.length&&dojo.forEach(c,function(e){e.resize()})},_lastGoodMarginBox:null,_size:function(){if(this.sizeable){this._checkIfSingleChild();
this._singleChild?(this._singleChildOriginalStyle&&(this._singleChild.domNode.style.cssText=this._singleChildOriginalStyle),delete this._singleChildOriginalStyle):dojo.style(this.containerNode,{width:"auto",height:"auto"});var c=dojo._getContentBox(this.domNode),a=dojo.window.getBox(),b=dojo._getContentBox((this._singleChild?this._singleChild.domNode:null)||this.containerNode);a.w=a.w-(c.w-b.w)-3;a.h=a.h-(c.h-b.h)-3;1*c.w>=a.w||1*c.h>=a.h?(this._lastGoodMarginBox||(this._lastGoodMarginBox={width:c.w+
"px",height:c.h+"px"}),b=Math.min(1*c.w,Math.floor(a.w)),c=Math.min(1*c.h,Math.floor(a.h)),this._singleChild&&this._singleChild.resize?(this._singleChildOriginalStyle=this._singleChild.domNode.style.cssText,this._singleChild.resize({w:b/1,h:c/1}),dojo.style(this.containerNode,{width:"auto",height:"auto"}),dojo.style(this.domNode,{width:"auto",height:"auto"})):dojo.style(this.containerNode,{width:b/1+"px",height:c/1+"px"})):(this._lastGoodMarginBox&&(dojo.style(this.domNode,this._lastGoodMarginBox),
this._lastGoodMarginBox=null),this._singleChild&&this._singleChild.resize&&this._singleChild.resize())}},_position:function(){if(!dojo.hasClass(dojo.body(),"dojoMove")){var c=!1,a=this.domNode,b=dojo.window.getBox(),e=this._relativePosition,f=e?null:dojo.marginBox(a),g=Math.floor(b.l+(e?e.x:(b.w-1*f.w)/2));e=Math.floor(b.t+(e?e.y:(b.h-1*f.h)/2));if(0>g||0>e||this._lastGoodMarginBox){this._lastGoodMarginBox&&(dojo.style(this.domNode,this._lastGoodMarginBox),this._lastGoodMarginBox=null);this._size();
if(e=this._relativePosition)0>e.x&&(e.x=0),0>e.y&&(e.y=0),e.w>b.w&&(e.w=b.w,c=!0),e.h>b.h&&(e.h=b.h,c=!0),this._relativePosition=e;f=e?null:dojo.marginBox(a);c&&dojo.style(a,{width:(e?e.w:f.w)+"px",height:(e?e.h:f.h)+"px"});g=Math.floor(b.l+(e?e.x:(b.w-1*f.w)/2));e=Math.floor(b.t+(e?e.y:(b.h-1*f.h)/2))}dojo.style(a,{left:g/1+"px",top:e/1+"px"});c||dojo.style(a,{width:"auto",height:"auto"})}},show:function(){var c=new dojo.DeferredList([this.inherited(arguments)]);this.sizeable&&this._startupResize();
return c}})})},"mill/ribbon":function(){define(["dijit/dijit","dijit/_Widget"],function(){dojo.declare("mill.ribbon",[dijit._Widget,dijit._Templated],{templateString:dojo.cache("mill","ribbon.html",'\x3cdiv class\x3d"ribbon"\x3e\x3cdiv class\x3d"ribbonBackround ribbonBackroundGreen" dojoAttachPoint\x3d"backgroundNode"\x3e\x3c/div\x3e\x3cdiv class\x3d"ribbonButton ribbonButtonGreen" dojoAttachPoint\x3d"buttonNode"\x3e\x3cdiv align\x3d"center" class\x3d"ribbonLabel" dojoAttachPoint\x3d"labelNode"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"ribbonPercentage" dojoAttachPoint\x3d"percentageNode"\x3e\x3c/div\x3e\x3cdiv class\x3d"ribbonContent" dojoAttachPoint\x3d"containerNode"\x3e\x3c/div\x3e\x3c/div\x3e'),
color:"green",label:"",button:!0,percents:null,attributeMap:dojo.delegate(dijit._WidgetBase,{color:"",label:"",button:"",percents:0}),_setColorAttr:function(c){this.color=c;this.render()},_setLabelAttr:function(c){this.label=c;this.render()},_setButtonAttr:function(c){this.button=c;this.render()},_setPercentsAttr:function(c){this.percents=c;this.render()},startup:function(){this.inherited(arguments);this.render()},render:function(){this.buttonNode.style.display=this.button?"":"none";dojo.removeClass(this.backgroundNode,
"ribbonBackroundGreen");dojo.removeClass(this.backgroundNode,"ribbonBackroundRed");dojo.removeClass(this.backgroundNode,"ribbonBackroundBlue");dojo.removeClass(this.backgroundNode,"ribbonBackroundAqua");dojo.addClass(this.backgroundNode,"red"==this.color?"ribbonBackroundRed":"blue"==this.color?"ribbonBackroundBlue":"green"==this.color?"ribbonBackroundGreen":"ribbonBackroundAqua");dojo.removeClass(this.buttonNode,"ribbonButtonGreen");dojo.removeClass(this.buttonNode,"ribbonButtonRed");dojo.removeClass(this.buttonNode,
"ribbonButtonBlue");dojo.removeClass(this.buttonNode,"ribbonButtonAqua");dojo.addClass(this.buttonNode,"red"==this.color?"ribbonButtonRed":"blue"==this.color?"ribbonButtonBlue":"green"==this.color?"ribbonButtonGreen":"ribbonButtonAqua");if(this.percents){var c=dojo.marginBox(this.domNode);this.percentageNode.style.width=(100-this.percents)*(c.w-120)/100+"px"}else this.percentageNode.style.width="0";this.labelNode.innerHTML=this.label}})})},"mill/jssupport/layout/layoutContent/AuthorizationForm":function(){define("dojo/_base/declare dojo/_base/lang dojo/dom-construct dojo/dom-class dojo/dom-style dojo/Deferred dojo/cookie dojo/text!mill/jssupport/layout/layoutContent/authorizationForm.html mill/jssupport/TranslatableNode mill/jssupport/form/_FormContent mill/jssupport/form/TextField mill/jssupport/form/CheckBoxField mill/jssupport/form/ButtonField mill/jssupport/base mill/jssupport/session mill/mill".split(" "),
function(c,a,b,e,f,g,h,l,m,r,n,k,p,q,u,y){return mill.registerAlias("office.AuthorizationForm",c("mill.jssupport.layout.layoutContent.AuthorizationForm",[r],{baseClass:"officeAuthorizationForm",submitButtonType:"submit",submitApplicationLabel:"Office.SignIn",submittingApplicationLabel:"Office.SigningIn",retrySubmitApplicationLabel:"Office.SignIn",content:l,formTitle:"Office.SignIn",_authStatusFacade:null,_statusTextWidget:null,buildRendering:function(){this.inherited(arguments);var v=b.create("div",
{className:"officeFormField"},this.messageNode,"after"),t=b.create("div",{className:"officeAuthorizationStatus"},v),x=b.create("span",{className:"officeAuthorizationStatus-icon"},t),z=(new m({className:"officeAuthorizationStatus-text"})).placeAt(t);this._statusTextWidget=z;var A=!1;this._announcementWidget=this._authStatusFacade=v={domNode:t,set:function(E,I){if("text"===E)z.set("text",I||"");else if("color"===E){var H=I&&e.contains(t,I);e.remove(t,["blue","red","green"]);I&&(H&&t.offsetWidth,e.add(t,
I))}else"icon"===E&&(e.remove(x,"icon-set-blocked icon-set-warning icon-set-bullhorn icon-set-confused icon-set-sad icon-set-smile icon-set-info".split(" ")),I&&e.add(x,"icon-set-"+I))},show:function(){A=!0;f.set(t,"opacity","1")},hide:function(){var E=new g;if(!A)return E.resolve(),E.promise;A=!1;f.set(t,"opacity","0");setTimeout(function(){E.resolve()},350);return E.promise}}},startup:function(){this.inherited(arguments);this._statusTextWidget&&this._statusTextWidget.startup();if(window.hasOwnProperty("application")&&
"acForeignStudent"===window.app.accessCategory){var v=new k({name:"PersonalDataConsent",text:"",doubleColumn:!1,required:!0});this.addChild(v);this.registerWidget(v.controlNode);var t=(new m({text:window.app.combinedTranslationIdent("PersonalDataAgreementShort"),display:"inline",onClick:function(){t.set("text",t.get("text")===window.app.combinedTranslationIdent("PersonalDataAgreementShort")?window.app.combinedTranslationIdent("PersonalDataAgreementShort")+";\x3cbr/\x3e;"+window.app.combinedTranslationIdent("PersonalDataAgreementLong"):
window.app.combinedTranslationIdent("PersonalDataAgreementShort"))}})).placeAt(v.controlNode,"after");this.addChild(new k({name:"PDConfirm",text:window.app.combinedTranslationIdent("PDConfirmShort"),doubleColumn:!1,required:!0}))}},getFormValue:function(){return a.mixin(this.gatherFormValues(),{language:"",jsversion:(dojo.version?dojo.version.toString():"")||"",RoistatCategoryName:q.accessCategory||(window.app?window.app.accessCategory:""),RoistatCounter:h("roistat_visit")})},createSuccessMessage:function(v,
t,x,z,A){if(t=this._authStatusFacade)t.set("color",z||"blue"),t.set("icon",x||"smile"),t.set("text",v||""),t.show()},createErrorMessage:function(v,t,x){x=this._authStatusFacade;if(!x)return x;x.set("color","red");x.set("icon",t||"sad");x.set("text",v||"");x.show();return x},submitForm:function(){if(window.xwz)window.app.signin(this.getFormValue(),this);else return this.inherited(arguments)},postForm:function(){this.inherited(arguments);this._announcementWidget=this._authStatusFacade;if(window.ym&&
window.webAnalyticsConfig.WebAnalyticsYandexID)if("acForeignAbiturient"===q.accessCategory)try{ym(window.webAnalyticsConfig.WebAnalyticsYandexID,"reachGoal","ADM_LOGIN_BA")}catch(v){}else if("acForeignMagAbiturient"===q.accessCategory)try{ym(window.webAnalyticsConfig.WebAnalyticsYandexID,"reachGoal","ADM_LOGIN_MA")}catch(v){}u.logout(!0).then(a.hitch(this,function(){this.postRequest({skipErrorStatus:403,url:y.getRequestUrl(q.mainHandler,"sysinfo.xml"),data:this.getFormValue()}).then(a.hitch(this,
function(v){u.load(null,null,null,!0).then(a.hitch(this,function(t){u.hasRemoteUser()?u.checkRemoteUserAccessCategory(q.accessCategory)?(this.submitButton.destroyRecursive(),this.toggleDisabledState(),this.createSuccessMessage("Office.LoadingData",null,null,"blue",!0),t=a.hitch(this,function(){q._loadData().then(function(){},a.hitch(this,function(x){this._announcementWidget.hide().then(a.hitch(this,function(){this.createErrorMessage(x.message)}));throw Error(x);}))}),u.getRemoteUserLocale()&&q.locale!==
u.getRemoteUserLocale()?q.translate(u.getRemoteUserLocale()).then(a.hitch(this,t)):t()):this.createErrorMessage("Office.IncorrectLoginOrPassword","sad"):this.createErrorMessage("Office.IncorrectLoginOrPassword","sad")}),a.hitch(this,function(t){this.createErrorMessage(t.message)}))}),a.hitch(this,function(v){u.load(null,null,null,!0).then(a.hitch(this,function(){403===v.response.status&&this.createErrorMessage("Office.IncorrectLoginOrPassword","sad")}),a.hitch(this,function(t){this.createErrorMessage(t.message)}))}))}))}}))})},
"mill/icon":function(){define(["dijit/_Templated","mill/mill","mill/imageList"],function(){return dojo.declare("mill.icon",[dijit._Widget,dijit._Templated,dijit._CssStateMixin],{templateString:"\x3cdiv\x3e\x26#160;\x3c/div\x3e",imageList:null,imageIndex:"",visible:!0,rotation:null,baseClass:"millIcon",attributeMap:dojo.delegate(dijit._WidgetBase,{imageIndex:"",imageList:"",visible:"",rotation:""}),_setImageIndexAttr:function(c){this.imageIndex=c;this._started&&this.render()},_setImageListAttr:function(c){this.imageList=
c;this._started&&this.render()},_setVisibleAttr:function(c){this.visible=c;this._started&&this.render()},_setRotationAttr:function(c){this.rotation=c;this._started&&this.render()},_vmlShape:null,_vmlFill:null,render:function(){mill.enqueueRender(this)},_render:function(){if(this.imageList){this.domNode&&dojo.style(this.domNode,{width:this.imageList.width+"px",height:this.imageList.height+"px"});var c={padding:0,backgroundAttachment:"scroll"};if(9>=dojo.isIE){var a=dojo.coords(this.domNode);this.domNode.runtimeStyle.cssText=
"";this._vmlShape||(this._vmlShape=document.createElement("v:shape"));this._vmlFill||(this._vmlFill=document.createElement("v:fill"));var b=Number(this.imageList.width)+1,e=Number(this.imageList.height)+1,f=this.domNode.offsetLeft,g=this.domNode.offsetTop,h=1==f+this.domNode.clientLeft?1:0;f=a.l-this.imageList.positionX(this.imageIndex)-f;a=a.t-this.imageList.positionY(this.imageIndex)-g;0===f%2&&f++;0===a%2&&a++;var l=0,m=0;if(this.rotation){l=-parseInt(this.rotation)*Math.PI/180;g=Math.cos(l);var r=
Math.sin(l);l=b*g+e*Math.abs(r)-b+3;m=b*Math.abs(r)+e*g-e+3;this._vmlShape.style.filter="progid:DXImageTransform.Microsoft.Matrix(M11\x3d"+g+",M12\x3d"+-r+",M21\x3d"+r+",M22\x3d"+g+",SizingMethod\x3d'auto expand')"}this._vmlShape.stroked=!1;this._vmlShape.fillcolor="none";this._vmlShape.coordsize=b+","+e;this._vmlShape.coordorigin="1,1";this._vmlShape.path="m0,0l"+b+",0l"+b+","+e+"l0,"+e+" xe";this._vmlShape.style.width=b+"px";this._vmlShape.style.height=e+"px";this._vmlShape.className=this.domNode.className;
this._vmlShape.style.left=this.domNode.style.left;this._vmlShape.style.top=this.domNode.style.top;this._vmlShape.style.right=this.domNode.style.right;this._vmlShape.style.bottom=this.domNode.style.bottom;this._vmlShape.style.clip="rect(1px "+(b+h+l)+"px "+(e+m)+"px "+(1+h)+"px)";this._vmlFill.position=f/b+","+a/e;this._vmlFill.type="tile";this._vmlFill.src=this.imageList.imageUrl;this._vmlFill.on=!0;this._vmlFill.color="none";this._vmlShape.appendChild(this._vmlFill);this.domNode.parentNode.insertBefore(this._vmlShape,
this.domNode);dojo.mixin(c,{behavior:"none",backgroundColor:"transparent"});dojo.connect(this._vmlShape,"onmouseenter",dojo.hitch(this,function(){dojo.addClass(this._vmlShape,this.baseClass+"Hover")}));dojo.connect(this._vmlShape,"onmouseleave",dojo.hitch(this,function(){dojo.removeClass(this._vmlShape,this.baseClass+"Hover")}));dojo.connect(this._vmlShape,"onclick",dojo.hitch(this,function(){this.domNode.fireEvent("onclick")}))}else if(dojo.mixin(c,{backgroundImage:"url("+this.imageList.imageUrl+
")",backgroundColor:"transparent",backgroundPosition:this.imageList.backgroundPosition(this.imageIndex,0,0)}),this.rotation){b=[];for(a=this.domNode;a.style;)"none"==a.style.display&&(b.push(a),a.style.display=""),a=a.parentNode;a=dojo.coords(this.domNode);dojo.forEach(b,function(n){n.style.display="none"});l=-parseInt(this.rotation)*Math.PI*2/360;g=Math.cos(l);r=Math.sin(l);b=this.imageList.width;e=this.imageList.height;l=b*g+e*Math.abs(r)-b;m=b*Math.abs(r)+e*g-e;dojo.mixin(c,{left:a.l+l/2+"px",
top:a.t+m/2+"px",position:"absolute",transform:"rotate("+-this.rotation+"deg)","-webkit-transform":"rotate("+-this.rotation+"deg)"})}this.domNode&&dojo.style(this.domNode,c)}this._vmlShape?(this._vmlShape.style.display=this.visible?"":"none",this.domNode.style.display="none"):this.domNode&&(this.domNode.style.display=this.visible?"":"none")},startup:function(){this.inherited(arguments);this.render()}})})},"mill/queryBuilder/dataStore":function(){define(["dojo/data/util/filter","mill/mill","mill/enhancedGridData",
"mill/queryBuilder/provider"],function(){dojo.declare("mill.queryBuilder.dataStore",[mill.enhancedGridData],{document:null,rootItem:null,filters:null,sorts:null,groups:null,groupData:null,_handleParams:function(c,a,b){return{content:{handle:b}}},_query:function(c,a){if(c&&c.isGroup){var b=dojo.clone(this.filters);dojo.forEach(this.groups,dojo.hitch(this,function(e){b[e]=this.getValue(c,e)||"!*"}));return mill.queryBuilder.queryDocument.buildDocument(this.rootItem,b,this.sorts)}return this.groups&&
this.groups.length?mill.queryBuilder.queryDocument.buildGroupDocument(this.rootItem,this.filters,this.groups):this.document},_queryParams:function(c,a){return{content:{query:this._query(c,a)}}},_performQuery:function(c){return mill.queryBuilder.provider.gridDataArgs(c)},fetch:function(c){this.document||(this.document=mill.queryBuilder.queryDocument.buildDocument(this.rootItem,this.filters,this.sorts));return this.inherited(arguments)},close:function(c){this._handle&&mill.queryBuilder.provider.closeGridData(this._handle);
this.inherited(arguments)},onItemCreated:function(c,a){this.groups&&this.groups.length&&!c.parentItem&&(c.isGroup=!0)},_hasChildren:function(c){return!!c.isGroup}})})},"mill/queryBuilder/provider":function(){define(["dojo/data/ItemFileReadStore","mill/mill"],function(){window.mill||(mill={});mill.queryBuilder||(mill.queryBuilder={});mill.queryBuilder.provider||(mill.queryBuilder.provider={});dojo.mixin(mill.queryBuilder.provider,{dtString:0,dtInteger:1,dtInt64:2,dtFloat:3,dtDate:4,dtTime:5,dtDateTime:6,
dtBoolean:7,dtEnumeration:8,dtReference:9,dtBlob:10,dmAlways:0,dmNever:1,dmOnDemand:2,handle:"",_tables:null,_options:null,options:function(){this._options||(this._options=[],dojo.xhrPost({url:mill.getRequestUrl(this.handle,"options.xml"),handleAs:"xml",sync:!0,preventCache:!0,load:dojo.hitch(this,function(c){dojo.forEach(c.documentElement.childNodes,dojo.hitch(this,function(a){this._options.push({ID:mill.fieldValue(a,"ID"),Caption:mill.fieldValue(a,"Caption"),Name:mill.fieldValue(a,"Name"),TypeInfoID:mill.fieldValue(a,
"TypeInfo"),Group:mill.fieldValue(a,"Group"),Tab:mill.fieldValue(a,"Tab"),Value:mill.fieldValue(a,"Value")})}));return c})}));return this._options},_templates:null,templates:function(){this._templates||(this._templates=[],dojo.xhrPost({url:mill.getRequestUrl(this.handle,"templates.xml"),handleAs:"xml",sync:!0,preventCache:!0,load:dojo.hitch(this,function(c){dojo.forEach(c.documentElement.childNodes,dojo.hitch(this,function(a){this._templates.push({Name:mill.fieldValue(a,"Name")})}));return c})}));
return this._templates},tables:function(c){this._tables||(this._tables={},dojo.xhrPost({url:mill.getRequestUrl(this.handle,"tables.xml"),handleAs:"xml",sync:!0,preventCache:!0,load:dojo.hitch(this,function(a){dojo.forEach(a.documentElement.childNodes,dojo.hitch(this,function(b){this._tables[mill.fieldValue(b,"ID")]={ID:mill.fieldValue(b,"ID"),Caption:mill.fieldValue(b,"Caption"),Name:mill.fieldValue(b,"Name"),RootAvailable:"1"==mill.fieldValue(b,"RootAvailable"),PrimaryKeyID:mill.fieldValue(b,"PrimaryKeyID"),
UplinkID:mill.fieldValue(b,"UplinkID"),HasPersistentClause:"1"==mill.fieldValue(b,"HasPersistentClause")}}));return a})}));return c?this._tables[c]:this._tables},_types:null,types:function(){this._types||(this._types={},dojo.xhrPost({url:mill.getRequestUrl(this.handle,"types.xml"),handleAs:"xml",sync:!0,preventCache:!0,load:dojo.hitch(this,function(c){dojo.forEach(c.documentElement.childNodes,dojo.hitch(this,function(a){var b={ID:mill.fieldValue(a,"ID"),Name:mill.fieldValue(a,"Name"),Caption:mill.fieldValue(a,
"Caption"),SimpleType:parseInt(mill.fieldValue(a,"SimpleType")),Required:"1"==mill.fieldValue(a,"Required")};switch(b.SimpleType){case this.dtString:dojo.mixin(b,{Length:parseInt(mill.fieldValue(a,"Length"))});break;case this.dtReference:dojo.mixin(b,{TableID:mill.fieldValue(a,"TargetTableID")})}this._types[mill.fieldValue(a,"ID")]=b}));return c})}));return this._types},tablesStore:function(c){var a=this.tables(),b={identifier:"ID",label:"Caption",items:[]},e;for(e in a)c?c(a[e])&&b.items.push(dojo.clone(a[e])):
b.items.push(dojo.clone(a[e]));b.items.sort(this._compareCaptions);return new dojo.data.ItemFileReadStore({data:b})},fields:function(c){var a=this.tables(c);if(a)return a.fields&&a.preConditions||(a.fields={},a.preConditions=[],dojo.xhrPost({url:mill.getRequestUrl(this.handle,"fields.xml"),handleAs:"xml",sync:!0,preventCache:!0,content:{table:c},load:dojo.hitch(this,function(b){dojo.forEach(b.documentElement.childNodes,dojo.hitch(this,function(e){if("field"==e.nodeName)a.fields[mill.fieldValue(e,
"ID")]={ID:mill.fieldValue(e,"ID"),Name:mill.fieldValue(e,"Name"),Caption:mill.fieldValue(e,"Caption"),TypeInfoID:mill.fieldValue(e,"TypeInfo"),DisplayMode:mill.fieldValue(e,"DisplayMode"),Category:mill.fieldValue(e,"Category")};else if("preCondition"==e.nodeName){var f=e.getElementsByTagName("parameter"),g={ID:mill.fieldValue(e,"ID"),Caption:mill.fieldValue(e,"Caption"),Category:mill.fieldValue(e,"Category"),Parameters:[]};dojo.forEach(f,function(h){g.Parameters.push({ID:mill.fieldValue(h,"ID"),
Caption:mill.fieldValue(h,"Caption"),Name:mill.fieldValue(h,"Name"),TypeInfoID:mill.fieldValue(h,"TypeInfo"),Group:mill.fieldValue(h,"Group"),Tab:mill.fieldValue(h,"Tab"),Value:mill.fieldValue(h,"Value")})});a.preConditions.push(g)}}));return b})})),a.fields},_compareCaptions:function(c,a){return c.Caption>a.Caption?1:c.Caption<a.Caption?-1:0},gridData:function(c,a){return this.gridDataArgs({sync:!1,content:a?{handle:a}:{query:c}})},gridDataArgs:function(c){dojo.mixin(c,{url:mill.getRequestUrl(this.handle,
"gridData.xml"),preventCache:!0,handleAs:"xml"});return dojo.xhrPost(c)},closeGridData:function(c){return dojo.xhrPost({url:mill.getRequestUrl(this.handle,"closeGridData.xml"),handleAs:"xml",sync:!1,preventCache:!0,content:{handle:c}})},downloadExcel:function(c,a,b,e){var f=document.createElement("form");if(dojo.isIE){f.insertAdjacentHTML("afterBegin","\x3cinput type\x3d'hidden' name\x3d'query'/\x3e");var g=f.childNodes[0]}else g=f.appendChild(document.createElement("input")),g.type="hidden",g.name=
"query";if(dojo.isIE){f.insertAdjacentHTML("afterBegin","\x3cinput type\x3d'hidden' name\x3d'titles'/\x3e");var h=f.childNodes[0]}else h=f.appendChild(document.createElement("input")),h.type="hidden",h.name="titles";if(dojo.isIE){f.insertAdjacentHTML("afterBegin","\x3cinput type\x3d'hidden' name\x3d'template'/\x3e");var l=f.childNodes[0]}else l=f.appendChild(document.createElement("input")),l.type="hidden",l.name="template";f.method="POST";f.action=mill.getRequestUrl(this.handle,"excelWorkBook"+(e||
".xls"));f.target="_blank";g.value=c;h.value=a;l.value=b;document.body.appendChild(f);f.submit();document.body.removeChild(f)},persistentClause:function(c,a){var b,e=this._tables[c];e&&(e.PersistentClauses?b=e.PersistentClauses[a]:e.PersistentClauses={});b||dojo.xhrPost({url:mill.getRequestUrl(this.handle,"persistentClause.xml"),handleAs:"xml",sync:!0,preventCache:!0,content:{table:c,alias:a},load:function(f){b=mill.decodeDataNode(f.documentElement);e&&(e.PersistentClauses[a]=b);return f}});return b}})})},
"mill/jssupport/layout/carouselView/LayoutScrollSpy":function(){define("dojo/_base/declare dojo/_base/lang dojo/dom-style dojo/dom-class dojo/window dijit/_WidgetBase dijit/_Container dijit/_TemplatedMixin dojo/text!mill/jssupport/layout/carouselView/_layoutScrollSpyItem.html mill/jssupport/layout/_LayoutMixin mill/jssupport/_TranslationMixin mill/jssupport/base".split(" "),function(c,a,b,e,f,g,h,l,m,r,n,k){c("offce.layout._LayoutScrollSpyItem",[g,l,n],{baseClass:"officeScrollSpyItem",templateString:m,
textIdentifier:null,text:null,textTitle:null,preCompleted:null,completed:null,formContentWidget:null,idx:null,attributeMap:{text:{node:"textNode",type:"innerHTML"},textTitle:{node:"textNode",type:"attribute",attribute:"title"}},postMixInProperties:function(){this.inherited(arguments);this.translatableAttributes={textTitle:this.textIdentifier}},_setPreCompletedAttr:function(p){if(this.preCompleted=p)b.set(this.domNode,{cursor:"pointer"}),b.set(this.itemContainer,{opacity:"1",fontSize:"1.0833em"})},
_setCompletedAttr:function(p){if(this.completed=p)b.set(this.domNode,{cursor:"pointer"}),b.set(this.itemContainer,{opacity:"1",color:"#d4ffd4",fontSize:"1em"})},startup:function(){this.inherited(arguments);this.translate()},translate:function(){this.inherited(arguments);var p=("RU"===k.locale.toUpperCase()?"\u0428\u0430\u0433 ":"Step ")+(this.idx+1).toString();this.set("text",p)},onClick:function(){if(this.completed||this.preCompleted){for(var p=this.formContentWidget;!p.isInstanceOf(office.layout._CarouselViewSlide)&&
p.getParent();)p=p.getParent();p.isInstanceOf(office.layout._CarouselViewSlide)&&p.get("selected")&&f.scrollIntoView(this.formContentWidget.domNode)}}});return mill.registerAlias("offce.layout.LayoutScrollSpy",c("mill.jssupport.layout.carouselView.LayoutScrollSpy",[g,h,l,r],{baseClass:"officeScrollSpy",templateString:"\x3cdiv\x3e\x3cdiv data-dojo-attach-point\x3d'containerNode' class\x3d'officeScrollSpyContainer'\x3e\x3c/div\x3e\x3c/div\x3e",hideOnMobile:!0,fullWidth:null,_setFullWidthAttr:function(p){(this.fullWidth=
p)&&e.add(this.domNode,"officeScrollSpyFullWidth")}}))})},"mill/jssupport/jsApplication/controls/textFieldCounter/TextFieldCounter":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/dom-construct dojo/on dijit/_Widget dijit/_TemplatedMixin dijit/form/ValidationTextBox mill/jssupport/TranslatableNode mill/mill".split(" "),function(c,a,b,e,f,g,h,l,m,r){return r.registerAlias("app.view.TextFieldCounter",c("mill.jssupport.jsApplication.controls.textFieldCounter.TextFieldCounter",
[g,h],{templateString:"\x3cdiv\x3e\x3c/div\x3e",baseClass:"dim small",startup:function(){this.inherited(arguments);this.registerCounter()},registerCounter:function(){var n=window.app.getControlField(this);if(n)if(n=b.filter(n.getChildren(),function(u){return u&&u.isInstanceOf&&u.isInstanceOf(l)}),n.length){1<n.length&&window.undefined;var k=n[0],p=k.maxLength;if(p){a.mixin(k,{charactersRemainingWidget:this});n=e.create("div",null,this.domNode);m({text:"Office.CharactersRemaining;:",display:"inline"},
e.create("span",null,n));e.create("span",{innerHTML:"\x26#160;"},n);var q=e.create("span",{innerHTML:p},n);f(k,"change",function(){q.innerHTML=p-r.normalizeLineBreaks(k.get("value")).length}.bind(this))}}else window.undefined}}))})},"mill/jssupport/layout/carouselView/CarouselView":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/query dojo/topic dojo/Deferred dojo/dom-style dojo/dom-construct dojo/html dojo/router dijit/registry dijit/_WidgetBase dijit/_Container dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dijit/_CssStateMixin dojo/text!mill/jssupport/layout/carouselView/carouselView.html mill/jssupport/layout/layoutMenu/LayoutMenuTreeNode mill/jssupport/layout/carouselView/LayoutScrollSpy mill/jssupport/layout/carouselView/CarouselViewSlideBreadcrumbs mill/jssupport/base".split(" "),
function(c,a,b,e,f,g,h,l,m,r,n,k,p,q,u,y,v,t,x,z,A){var E=c("office.layout._CarouselViewSlideContent",[k,p,q,u],{}),I=c("office.layout._CarouselViewSlide",[k,p,y],{baseClass:"officeCarouselViewSlide",content:null,anchor:null,selected:null,doScrollSpy:null,scrollSpyFullWidth:null,breadcrumbs:null,_carouselWidget:null,_layoutMenuItemWidget:null,_layoutMobileMenuItemWidget:null,_layoutScrollSpyWidget:null,_breadcrumbsWidget:null,_setContentAttr:function(H){H=(new E({templateString:"\x3cdiv\x3e"+(this.content=
H)+"\x3c/div\x3e",attachScope:this})).placeAt(this.domNode);this.breadcrumbs&&(this._breadcrumbsWidget=new z({refSlideContent:H}),this._breadcrumbsWidget.placeAt(this._carouselWidget.domNode,"before"))},_setDoScrollSpyAttr:function(H){var L=this._carouselWidget.getParent();L&&H&&(this.doScrollSpy=H,this._layoutScrollSpyWidget=new x({fullWidth:this.scrollSpyFullWidth},l.create("div",{},L.containerNode||L.domNode)),this._layoutScrollSpyWidget.startup())},postCreate:function(){this.inherited(arguments);
var H=r.register(this.anchor.replace(/^#/,""),function(L){});this.own(H.register(a.hitch(this,this.selectSlide)))},startup:function(){this.inherited(arguments);if(this._layoutScrollSpyWidget){for(var H=this;!H.isInstanceOf(office.form._FormWrapper)&&H.getChildren()&&H.getChildren()[0];)H=H.getChildren()[0];if(H.isInstanceOf(office.form._FormWrapper))for(var L=0;L<H.forms.length;L++){var B=new offce.layout._LayoutScrollSpyItem({formContentWidget:H.forms[L].widget,textIdentifier:H.forms[L].widget.scrollSpyTitle||
H.forms[L].widget.formTitle,idx:this._layoutScrollSpyWidget.getChildren().length});B.startup();this._layoutScrollSpyWidget.addChild(B);H.forms[L].widget.set("_layoutScrollSpyItem",B)}}},selectSlide:function(){for(var H=0;H<this._carouselWidget._createdSlides.length;H++){var L=this._carouselWidget._createdSlides[H],B=L._layoutMenuItemWidget,D=null,K=L===this;window.xwz&&K!==L.get("selected")&&(D=K);L.set("selected",K);L.setFocusable(K);h.set(L.domNode,{display:K?"inline-block":"none"});var M=n.byId("main");
M&&M.hasOwnProperty("contentPane")&&(M=M.contentPane.domNode)&&(M.scrollTop=0);L._layoutScrollSpyWidget&&h.set(L._layoutScrollSpyWidget.domNode,{display:K?"block":"none"});L._breadcrumbsWidget&&(h.set(L._breadcrumbsWidget.domNode,{display:K?"inline-block":"none"}),K&&L._breadcrumbsWidget.init());if(B){for(B.set("selected",L.get("selected"));!B.isInstanceOf(t)&&B.getParent();)B=B.getParent();B.isInstanceOf(t)&&(K=!!b.filter(e("li.officeLayoutMenuElem",B.domNode),function(R){return!!e(".officeLayoutMenuItem.officeLayoutMenuItemSelected",
R).length}).length,B.set("selected",K))}"boolean"===typeof D&&f.publish("office.layout._CarouselViewSlide/changedState",{slide:L,newValue:D})}a.hitch(this,function(){if(!window.xwz){for(var R=this;!R.isInstanceOf(office.form._FormWrapper)&&R.getChildren()&&R.getChildren()[0];)R=R.getChildren()[0];R.isInstanceOf(office.form._FormWrapper)&&(a.hitch(R.forms[0].widget,function(){this._deferredActionHandler||(this._deferredActionHandler=new g);this._deferredActionHandler.isResolved()||this._deferredActionHandler.resolve()})(),
R.onSelect())}})()},setFocusable:function(H){e("[widgetid]",this.domNode).forEach(function(L){(L=n.byNode(L))&&L.focusNode&&L.focusNode.setAttribute("tabIndex",!H||!window.xwz&&L.isInstanceOf(office.form.Attachment)?"-1":"0")});e("a",this.domNode).forEach(function(L){L.setAttribute("tabIndex","-1")})}});return mill.registerAlias("office.layout.CarouselView",c("mill.jssupport.layout.carouselView.CarouselView",[k,q],{baseClass:"officeCarouselView",templateString:v,region:null,_createdSlides:null,postMixInProperties:function(){this.inherited(arguments);
this._createdSlides=this._createdSlides||[]},postCreate:function(){this.inherited(arguments);this.own(f.subscribe("office.layout.CarouselView.registerItem",a.hitch(this,this.registerItem)))},registerItem:function(H){if(this.region===H.region){var L={};H.hasOwnProperty("preventMenuItem")?!0!==H.preventMenuItem&&(L=A.registerMenuItem(H)):L=A.registerMenuItem(H);L={content:H.node,anchor:H.anchor,_carouselWidget:this,_layoutMenuItemWidget:L.layoutItem||null,_layoutMobileMenuItemWidget:L.mobileItem||null};
H.doScrollSpy&&a.mixin(L,{doScrollSpy:H.doScrollSpy});H.scrollSpyFullWidth&&a.mixin(L,{scrollSpyFullWidth:H.scrollSpyFullWidth});H.breadcrumbs&&(L.breadcrumbs=H.breadcrumbs);H=new I(L,this.slides.appendChild(document.createElement("div")));H.startup();this._createdSlides.push(H)}}}))})},"mill/jssupport/layout/layoutContent/ReportToModeratorInternalForm":function(){define("dojo/_base/declare dojo/_base/lang dojo/text!mill/jssupport/layout/layoutContent/reportToModeratorInternalForm.html mill/jssupport/form/_FormContent mill/jssupport/form/FilteringSelectField mill/jssupport/Announcement mill/mill mill/jssupport/base mill/jssupport/session".split(" "),
function(c,a,b,e,f,g,h,l,m){return mill.registerAlias("office.ReportToModeratorInternalForm",c("mill.jssupport.layout.layoutContent.ReportToModeratorInternalForm",[e],{content:b,formTitle:"Office.ReportToModerator",submitApplicationLabel:"Office.SendAMessage",hideSubmitTextColumn:"false",messageCampusWidget:null,messageCategoryWidget:null,startup:function(){this.inherited(arguments);if(window.app&&"acMagAbiturient"===window.app.accessCategory){var r=this.getField("Subject");if(r){r.set("required",
!0);this.addChild(g({text:"MagAbitur.ModeratorMessageAnnouncement",icon:"info",color:"blue",readOnly:!0}),"first");var n=new f({text:"MagAbitur.ModeratorMessageCampus;:",name:"Campus",required:!0}),k=n.controlNode;this.messageCampusWidget=k;k.set("searchAttrObject",{RU:"Description",EN:"EngDescription"});k.set("store",l.domainStore("TRegDepartment","TRegDepartment with AdmModeratorPosition required domain",null,["Description","EngDescription"],null,null,null,null,window.app.anonymousHandler));k.set("onChange",
function(q){var u=this.getFormWidget("QuestionCategory");u&&(u.set("value",""),u.set("disabled",!q))}.bind(this));n.placeAt(r,"before");this.registerWidget(k);n=new f({text:"MagAbitur.ModeratorMessageCategory;:",name:"QuestionCategory",required:!0});this.messageCategoryWidget=k=n.controlNode;k.set("searchAttrObject",{RU:"Description",EN:"EngDescription"});k.set("store",l.domainStore("TAbitMessageCategory","Magister abiturient message category (required)",[{domain:"TObject domain",name:"ARegDepartment",
value:function(){return this.getWidgetAttr("Campus","value")}.bind(this)}],["Description","EngDescription"],null,null,null,null,window.app.anonymousHandler));n.placeAt(r,"before");this.registerWidget(k);k.set("disabled",!0)}}else if("acForeignAbiturient"===l.accessCategory||"acForeignMagAbiturient"===l.accessCategory){if(r=this.getField("Subject"))r.set("required",!0),n=new f({text:"ForeignAbit.ModeratorMessageCategory;:",name:"QuestionCategory",required:!0}),this.messageCategoryWidget=n.controlNode,
this.registerWidget(this.messageCategoryWidget),this.messageCategoryWidget.set("searchAttrObject",{RU:"Description",EN:"EngDescription"}),this.messageCategoryWidget.set("store",l.domainStore("TFAMessageCategory","acForeignAbiturient"===l.accessCategory?"TFAMessageCategory ForBachAbiturient required domain":"TFAMessageCategory ForMagAbiturient required domain",null,["Description","EngDescription"],null,null,null,null,l.anonymousHandler)),n.placeAt(r,"before")}else if("acSchoolOlymp"===l.accessCategory||
"acStudOlymp"===l.accessCategory){var p=this.getField("Subject");r=[{part:0,name:"ID"},{part:0,name:"Theme"},{part:1,name:"IsActual",value:"1"}];"acSchoolOlymp"===l.accessCategory?r.push({part:1,name:"ForSchoolOlymp",value:"1"}):"acStudOlymp"===l.accessCategory&&r.push({part:1,name:"ForStudOlymp",value:"1"});mill.queryCursorJson({handler:window.anonymousHandler,headers:{"Disable-Basic-Auth":"yes"},sync:!1,className:"TOlympMessageCategory",query:r,load:function(q){q=window.app.createStore({data:q.data.sort(function(v,
t){var x=mill.fieldValue(v,"Theme").toUpperCase(),z=mill.fieldValue(t,"Theme").toUpperCase();return x<z?-1:x>z?1:0}).map(function(v,t){v.Position=t;return v}).concat([{ID:0,Position:q.data.length,Theme:"\u0414\u0440\u0443\u0433\u043e\u0435"}])});if(p){var u=new f({text:"acSchoolOlymp"===l.accessCategory?"SchlOlymp.ModeratorMessageCategory;:":"StudOlymp.ModeratorMessageCategory;:",name:"questioncategory",required:!0}),y=function(v){if(p&&v){var t=v.get("item");t=!t||0!==t.ID;p.set("disabled",t);p.set("required",
!t);p.controlNode.set("value","");return y.bind(null,v)}};this.messageCategoryWidget=u.controlNode;this.messageCategoryWidget.set("onChange",y.call(null,this.messageCategoryWidget));this.messageCategoryWidget.set("searchAttrObject","Theme");this.messageCategoryWidget.set("fetchProperties",{sort:[{attribute:"Position",descending:!1}]});this.messageCategoryWidget.set("store",q);this.registerWidget(this.messageCategoryWidget);u.placeAt(p,"before")}}.bind(this)})}},postForm:function(){this.inherited(arguments);
var r={className:"TModeratorMessage",methodName:"Create",params:{IPAddress:(m||mill.session).ipAddress,RemoteUser:(m||mill.session).getRemoteUserID(),ReferText:mill.getReferText(),CommunicationLanguage:l.locale.toUpperCase()}};this.inspectFormWidgets(function(k,p){this._isAttachment(p)?0<p._uploadState&&p._uploadedFile&&(r.params.DataFileName=p._uploadedFile.name):r.params[k]=this.formWidgetValue(k)},null,null);r.params.QuestionCategory="";this.messageCategoryWidget&&(r.params.QuestionCategory=window.app&&
"acMagAbiturient"===window.app.accessCategory?this.messageCategoryWidget.get("value"):"acSchoolOlymp"===l.accessCategory||"acStudOlymp"===l.accessCategory?this.messageCategoryWidget.validate()&&"0"!==String(mill.fieldValue(this.messageCategoryWidget.get("item"),"ID"))?this.messageCategoryWidget.get("displayedValue"):this.getFormWidget("Subject").get("value"):this.messageCategoryWidget.validate()?this.messageCategoryWidget.get("displayedValue"):"");r.params.RegDepartment=this.messageCampusWidget?this.messageCampusWidget.get("value"):
"";var n=h.buildQueryParams(r);this.postRequest({url:h.getRequestUrl(l.mainHandler||window.app.handler,"execute.xml"),data:n}).then(a.hitch(this,function(){this.createSuccessMessage("Office.ReportToModeratorRequestSuccess",a.hitch(this,function(){this.toggleFormView()}),null,null,!1);this.toggleFormView();this.resetForm()}))}}))})},"mill/queryBuilder/treeModel":function(){define(["mill/queryBuilder/provider","mill/mill"],function(){window.mill||(mill={});mill.queryBuilder||(mill.queryBuilder={});
mill.queryBuilder.provider||(mill.queryBuilder.provider={});dojo.declare("mill.queryBuilder.treeModel",null,{rootTableID:null,_items:null,_root:null,_rootTable:null,constructor:function(c){dojo.mixin(this,c);this._items=[]},getRoot:function(c,a){this._root||(this._rootTable=mill.queryBuilder.provider.tables(this.rootTableID),this._root={ID:this._rootTable.ID,Caption:this._rootTable.Caption,Name:this._rootTable.Name,IsTable:!0,AutoExpand:!0,IsRoot:!0,PrimaryKeyID:this._rootTable.PrimaryKeyID,UplinkID:this._rootTable.UplinkID,
HasPersistentClause:this._rootTable.HasPersistentClause,id:this._items.length},this._items.push(this._root));this._root&&c(this._root)},mayHaveChildren:function(c){return c.IsCategory||c.IsTable||c.IsExpandableField},_fetchTableChildren:function(c,a){var b=[],e=mill.queryBuilder.provider.tables(c),f=mill.queryBuilder.provider.fields(c);e=e.preConditions;mill.queryBuilder.provider.types();var g=[],h;for(h in f)f[h].Category&&f[h].DisplayMode!=mill.queryBuilder.provider.dmNever&&-1==dojo.indexOf(g,
f[h].Category)&&g.push(f[h].Category);a||dojo.forEach(e,function(l){l.Category&&-1==dojo.indexOf(g,l.Category)&&g.push(l.Category)});g.length&&(g=dojo.map(g,function(l){return{Caption:l}}),g.sort(mill.queryBuilder.provider._compareCaptions),dojo.forEach(g,dojo.hitch(this,function(l){l={Caption:l.Caption,IsCategory:!0,TableID:c,FieldsOnly:a,id:this._items.length};this._items.push(l);b.push(l)})));return b.concat(this._fetchCategory(c,null,a))},_fetchCategory:function(c,a,b){var e=[],f=mill.queryBuilder.provider.tables(c);
c=mill.queryBuilder.provider.fields(c);f=f.preConditions;var g=mill.queryBuilder.provider.types(),h;for(h in c)if((c[h].Category||"")==(a||"")&&c[h].DisplayMode!=mill.queryBuilder.provider.dmNever){var l={ID:h,Caption:c[h].Caption,Name:c[h].Name,CanCheck:g[c[h].TypeInfoID].SimpleType!=mill.queryBuilder.provider.dtReference,TypeInfoID:c[h].TypeInfoID,DisplayMode:c[h].DisplayMode,IsExpandableField:g[c[h].TypeInfoID].SimpleType==mill.queryBuilder.provider.dtReference,IsField:!0,id:this._items.length};
if(l.IsExpandableField){var m=mill.queryBuilder.provider.fields(g[c[h].TypeInfoID].TableID),r;for(r in m)m[r].DisplayMode==mill.queryBuilder.provider.dmAlways&&(l.AutoExpand=!0)}this._items.push(l);e.push(l)}b||dojo.forEach(f,dojo.hitch(this,function(n){(n.Category||"")==(a||"")&&(n={IsPreCondition:!0,ID:n.ID,CanCheck:!0,Caption:n.Caption,Parameters:dojo.clone(n.Parameters),id:this._items.length},this._items.push(n),e.push(n))}));return e},getChildren:function(c,a,b){c.children||(this.mayHaveChildren(c)?
(c.children=c.IsTable?this._fetchTableChildren(c.ID,!1):c.IsCategory?this._fetchCategory(c.TableID,c.Caption,c.FieldsOnly):c.IsField?this._fetchTableChildren(mill.queryBuilder.provider.types()[c.TypeInfoID].TableID,!0):[],dojo.forEach(c.children,dojo.hitch(this,function(e){dojo.mixin(e,{parent:c,model:this})}))):c.children=[]);a&&a(c.children)},isItem:function(c){return!0},getIdentity:function(c){return c.id},getLabel:function(c){return c.Caption}})})},"mill/i18n":function(){define("dojo/_base/lang dojo/i18n dijit/_Widget dijit/form/Button dijit/form/ValidationTextBox mill/mill".split(" "),
function(c){window.mill||(mill={});window.mill.i18n||(mill.i18n={});dojo.mixin(mill.i18n,{substitute:function(a,b){if(b)for(var e in b){var f=new RegExp("\\$\\{"+e+"\\}","gi");a=a.replace(f,b[e]);f=new RegExp("\\#\\{"+e+"\\}","gi");a=a.replace(f,b[e])}return a},makeBundle:function(a,b,e,f){var g={};f&&(g[f]={},dojo.forEach(e,function(l){g[f][mill.fieldValue(l,"Identifier")]=mill.fieldValue(l,"Original")}));dojo.forEach(e,function(l){var m=mill.fieldValue(l,"Language$N").toLowerCase();g[m]=g[m]||{};
g[m][mill.fieldValue(l,"Identifier")]=mill.fieldValue(l,"Translation")});e={};for(var h in g)dojo.i18n.cache["/"+a+"/nls/"+h+"/"+b+".js"]=g[h],dojo.i18n.cache[a+"/nls/"+b+"/"+h]=dojo.delegate(g[h],{$locale:h}),e[h]=!0,"en"==h&&(e.root=g[h]);dojo.i18n.cache["/"+a+"/nls/"+b+".js"]=e}});dojo.declare("mill.i18n._Mixin",null,{translationMap:[],bundles:[],_untranslated:null,_untranslateMapItem:function(a,b){var e;dojo.isFunction(a.getUntranslated)?e=a.getUntranslated.call():dojo.isString(a.getUntranslated)?
e=dojo.getObject(a.getUntranslated,!1,this):dojo.isArray(a.getUntranslated)&&(e=dojo.map(a.getUntranslated,dojo.hitch(this,function(f){return this.translateMapItem(f)})));e&&(this._untranslated[b]=e)},_translate:function(a,b){var e=a;dojo.forEach((this.bundles||[]).concat(mill.i18n._Mixin.bundles),function(f){e=dojo.i18n.substitute(e,dojo.i18n.getLocalization(f.module,f.bundle,b))});return e},_translateMapItem:function(a,b,e){b=dojo.isArray(b)?dojo.map(b,dojo.hitch(this,function(f){return this._translate(f,
e)})):this._translate(b,e);dojo.isFunction(a.setTranslated)?a.setTranslated.call(b):dojo.isString(a.setTranslated)&&dojo.setObject(a.setTranslated,b,this)},postCreate:function(){this.inherited(arguments);this._untranslated=this._untranslated||[];dojo.forEach(this.translationMap,dojo.hitch(this,this._untranslateMapItem));dojo.subscribe("localeChanged",dojo.hitch(this,this._localeChanged))},startup:function(){this.inherited(arguments);this._localeChanged(dojo.locale)},_localeChanged:function(a){dojo.forEach(this.translationMap,
dojo.hitch(this,function(b,e){this._untranslated[e]&&this._translateMapItem(b,this._untranslated[e],a)}));this.localeChanged()},localeChanged:function(){}});dojo.mixin(mill.i18n._Mixin,{bundles:[{module:"mill",bundle:"resources"}]});dojo.declare("mill.i18n.Static",[dijit._Widget,mill.i18n._Mixin],{translationMap:[{getUntranslated:"srcNodeRef.innerHTML",setTranslated:"domNode.innerHTML"}]});dojo.declare("mill.i18n.Button",[dijit.form.Button,mill.i18n._Mixin],{translationMap:[{getUntranslated:"containerNode.innerHTML",
setTranslated:"containerNode.innerHTML"}]});dojo.declare("mill.i18n.ValidationTextBox",[dijit.form.ValidationTextBox,mill.i18n._Mixin],{translationMap:[{getUntranslated:"invalidMessage",setTranslated:"invalidMessage"},{getUntranslated:"promptMessage",setTranslated:"promptMessage"},{getUntranslated:"missingMessage",setTranslated:"missingMessage"}]});dojo.declare("mill.i18n.MenuItem",[dijit.MenuItem,mill.i18n._Mixin],{translationMap:[{getUntranslated:"containerNode.innerHTML",setTranslated:"containerNode.innerHTML"}]});
return mill.i18n})},"mill/patches":function(){define("dijit/Dialog dijit/Menu dijit/form/TextBox dijit/form/DateTextBox dijit/form/TimeTextBox dijit/form/Button dijit/form/ComboBox dijit/form/FilteringSelect dijit/form/Select dijit/layout/ScrollingTabController dijit/_editor/range dijit/_editor/plugins/FontChoice dojox/grid/DataGrid dojox/grid/EnhancedGrid dojox/grid/Selection dojox/grid/_Grid dojox/grid/_Builder dojox/grid/cells/dijit".split(" "),function(){window.mill||(mill={});dojo.mixin(mill,
{_patch:function(){dojo.isIE&&(dojo.getComputedStyle=function(q){return q?1==q.nodeType?q.currentStyle:{}:{}});if(13<=dojo.isFF){var c=dojox.grid._View.prototype.doscroll;dojo.extend(dojox.grid._View,{_nativeScroll:!1,doscroll:function(q){this._nativeScroll=!0;c.apply(this,arguments);this._nativeScroll=!1},setScrollTop:function(q){this.lastTop=q;this._nativeScroll||(this.scrollboxNode.scrollTop=q);return this.scrollboxNode.scrollTop}})}if(9==dojo.isIE){var a=function(q,u){try{return q.filters.item("DXImageTransform.Microsoft.Alpha")}catch(y){return u?
{}:null}};dojo.mixin(dojo,{_getOpacity:function(q){try{return a(q).Opacity/100}catch(u){return 1}},_setOpacity:function(q,u){var y=100*u,v=1==u;q.style.zoom=v?"":1;if(a(q))a(q,1).Opacity=y;else{if(v)return u;q.style.filter+=" progid:DXImageTransform.Microsoft.Alpha(Opacity\x3d"+y+")"}a(q,1).Enabled=!v;"tr"==q.nodeName.toLowerCase()&&d.query("\x3e td",q).forEach(function(t){d._setOpacity(t,u)});return u}})}var b=dijit._place;dojo.mixin(dijit,{_place:function(q,u,y,v){var t=q.style;t.height="auto";
t.overflowY="";u=b(q,u,y,v);y=dojo.window.getBox();v=t.display;var x=t.visibility;t.visibility="hidden";t.display="";q=dojo.marginBox(q);t.display=v;t.visibility=x;q.t+q.h>y.h&&(u.y=y.h-q.h,q.t=u.y,t.top=u.y+"px");if(0>q.t||q.h>=y.h)u.y=0,t.top=0,t.overflowY="scroll",t.overflowX="hidden",t.height=y.h+"px";return u},getSelectionRange:function(q){var u=0,y=0,v;if("number"==typeof q.selectionStart&&"number"==typeof q.selectionEnd)u=q.selectionStart,y=q.selectionEnd;else if((v=document.selection.createRange())&&
v.parentElement()==q){var t=q.value.length;var x=q.value.replace(/\r\n/g,"\n");y=q.createTextRange();y.moveToBookmark(v.getBookmark());q=q.createTextRange();q.collapse(!1);-1<y.compareEndPoints("StartToEnd",q)?u=y=t:(u=-y.moveStart("character",-t),u+=x.slice(0,u).split("\n").length-1,-1<y.compareEndPoints("EndToEnd",q)?y=t:(y=-y.moveEnd("character",-t),y+=x.slice(0,y).split("\n").length-1))}return{start:u,end:y}}});dojo.mixin(dojo.window,{getBox:function(){var q="BackCompat"==dojo.doc.compatMode?
dojo.body():dojo.doc.documentElement,u=dojo._docScroll();return{w:q.clientWidth>window.innerWidth?window.innerWidth:q.clientWidth,h:q.clientHeight>window.innerHeight?window.innerHeight:q.clientHeight,l:u.x,t:u.y}}});dojo.extend(dijit._DialogBase,{layout:function(){"none"!=this.domNode.style.display&&(dijit._underlay&&dijit._underlay.layout(),this._size(),this._position())}});dojo.isIE||dojo.mixin(dojo._event_listener,{remove:function(q,u,y){if(q&&(u=this._normalizeEventName(u),dojo.isIE||"mouseenter"!=
u&&"mouseleave"!=u||(u="mouseenter"==u?"mouseover":"mouseout"),q.removeEventListener))try{q.removeEventListener(u,y,!1)}catch(v){}}});if(window.hasOwnProperty&&window.hasOwnProperty("scrollX")){var e=dojo.window.getBox;dojo.mixin(dojo.window,{getBox:function(){var q=e();q.w-=window.scrollX;q.h-=window.scrollY;return q}})}dojo.extend(dojox.grid.DataGrid,{_clearData:function(){this.selection.clear();this.updateRowCount(0);this._by_idty={};this._by_idx=[];this._pages=[];this._bop=this._eop=-1;this._isLoading=
this._isLoaded=!1}});dojo.extend(dojox.grid.Selection,{onChanged:function(){for(var q in this.selected){var u=this.grid.getRowNode(q);u&&this.grid.styleRowNode(q,u)}}});dojo.extend(dojox.grid.DataSelection,{getSelected:function(){for(var q=[],u=this.getFirstSelected(),y=0;y<this.getSelectedCount();y++)q.push(u),u=this.getNextSelected(u);return q},getNextSelected:function(q){q=this.grid.getItemIndex(q);q=dojox.grid.Selection.prototype.getNextSelected.call(this,q);if(-1==q)return null;var u=this.grid.getItem(q);
u||(this.grid._fetch(q,!1),u=this.grid.getItem(q));return this.grid.getItem(q)}});if(10<=dojo.isIE){dojo._getIeDispatcher=function(){return new Function("return "+dojo._scopeName+"._ieDispatcher(arguments, this)")};dojo._ieDispatcher=function(q,u){var y=Array.prototype,v=dojo._ie_listener.handlers,t=q.callee,x=t[dojo._ieListenersName];t=(t=v[t.target])&&t.apply(u,q);x=[].concat(x);for(var z in x){var A=v[x[z]];z in y||!A||(t=A.apply(u,q))}return t};var f=dijit.form.TextBox.prototype.postCreate;dojo.extend(dijit.form.TextBox,
{postCreate:function(){f.apply(this,arguments);this.connect(this.textbox,"oninput","_onInput")}});dojo.extend(dijit.form._DateTimeTextBox,{intermediateChanges:!0});var g=dijit.Menu.prototype.bindDomNode;dojo.extend(dijit.Menu,{bindDomNode:function(){var q=this,u=g.apply(q,arguments);dojo.forEach(this._bindings,function(y){y&&y.connects&&dojo.forEach(y.connects,function(v){v&&v.length&&"oncontextmenu"==v[1]&&dojo.connect(v[0],v[1],q,function(t){q._scheduleOpen(t.target,v[0],{x:t.pageX,y:t.pageY});
return!1})})});return u}});var h=dojox.grid._HeaderBuilder.prototype.overLeftResizeArea,l=dojox.grid._HeaderBuilder.prototype.overRightResizeArea;dojox.grid._HeaderBuilder=dojo.extend(dojox.grid._HeaderBuilder,{overLeftResizeArea:function(q){var u=h.apply(this,arguments);u&&dojo.hasClass(q.target,"dijitCheckBox")&&(u=!1);return u},overRightResizeArea:function(q){var u=l.apply(this,arguments);u&&dojo.hasClass(q.target,"dijitCheckBox")&&(u=!1);return u}})}if(dojo.isMozilla){var m=dojox.grid._HeaderBuilder.prototype.getCellX;
dojox.grid._HeaderBuilder=dojo.extend(dojox.grid._HeaderBuilder,{getCellX:function(q){var u={},y;for(y in q)u[y]=q[y];u.layerX=q.offsetX||q.layerX;u.layerY=q.offsetY||q.layerY;return m.call(this,u)}})}if(dijit.layout.ScrollingTabController){var r=dijit.layout.ScrollingTabController.prototype.onAddChild;dojo.extend(dijit.layout.ScrollingTabController,{onAddChild:function(q,u){var y=dojo.style(this.containerNode,"width");r.apply(this,arguments);dojo.style(this.containerNode,"width",(y||5E4)+200+"px")}})}var n=
{_onDropDownMouseUp:function(q){q&&this._docHandler&&this.disconnect(this._docHandler);this._opened&&this.dropDown.focus&&!1!==this.dropDown.autoFocus&&setTimeout(dojo.hitch(this.dropDown,"focus"),1)}};dijit._HasDropDown&&dojo.extend(dijit._HasDropDown,n);dijit.form&&(dijit.form.DropDownButton&&dojo.extend(dijit.form.DropDownButton,n),dijit.form.ComboBoxMixin&&dojo.extend(dijit.form.ComboBoxMixin,n),dijit.form.ComboBox&&dojo.extend(dijit.form.ComboBox,n),dijit.form.FilteringSelect&&dojo.extend(dijit.form.FilteringSelect,
n),dijit.form.Select&&dojo.extend(dijit.form.Select,n),dijit.form._DateTimeTextBox&&dojo.extend(dijit.form._DateTimeTextBox,n));dijit.layout&&dijit.layout._ScrollingTabControllerMenuButton&&dojo.extend(dijit.layout._ScrollingTabControllerMenuButton,n);if(dijit.layout.TabContainer){var k=dijit.layout.TabContainer.prototype.layout;dojo.extend(dijit.layout.TabContainer,{_lastLayoutChildren:null,layout:function(){var q=k.apply(this,arguments);if("left"==this.tablist.layoutAlign){var u=this.getChildren().length;
u==this._lastLayoutChildren&&this.tablist.domNode.style.width||(this.tablist.domNode.style.width=dojo.position(this.tablistSpacer).x-1+"px");this._lastLayoutChildren=u}return q}})}if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){var p=dijit.form.ComboBox.prototype._onInput;dojo.extend(dijit.form.ComboBox,{_onInput:function(q){p.apply(this,arguments);this._startSearch(this.textbox.value)}})}}})})},"mill/jssupport/form/ButtonField":function(){define("dojo/_base/declare dijit/_WidgetBase dijit/form/Button dojo/text!mill/jssupport/form/buttonField.html mill/jssupport/_TranslationMixin mill/jssupport/form/_FieldMixin".split(" "),
function(c,a,b,e,f,g){c("office.form.ButtonWidget",[b,f],{labelIdentifier:null,_setLabelIdentifierAttr:function(h){this.translatableAttributes.label=h;this.translate()}});return mill.registerAlias("office.form.ButtonField",c("mill.jssupport.form.ButtonField",[a,g],{templateString:e,type:"button",label:null,disabled:null,_setLabelAttr:function(h){this.controlNode.set("labelIdentifier",this.label=h)},_setDisabledAttr:function(h){this.controlNode.set("disabled",this.disabled=h)}}))})},"mill/jssupport/layout/layoutContent/InternalContent":function(){define("dojo/_base/declare dojo/dom dojo/dom-class dojo/text!mill/jssupport/layout/layoutContent/internalContent.html mill/jssupport/layout/layoutContent/_LayoutContent mill/jssupport/layout/layoutContent/PersonInfoPane".split(" "),
function(c,a,b,e,f,g){return mill.registerAlias("office.layout.InternalContent",c("mill.jssupport.layout.layoutContent.InternalContent",[f],{templateString:e,officeTitle:"",postCreate:function(){var h=a.byId("internalPersonInfoPane");h&&b.contains(document.body,"hse")&&new g({},h.appendChild(document.createElement("div")))}}))})},"mill/jssupport/jsApplication/controlSet/ControlSetContainer":function(){define("dojo/_base/declare dojo/_base/lang dijit/_WidgetBase dijit/_Container mill/jssupport/jsApplication/controlSet/ControlSet mill/jssupport/base".split(" "),
function(c,a,b,e,f,g){return mill.registerAlias("app.view.ControlSetContainer",c("mill.jssupport.jsApplication.controlSet.ControlSetContainer",[b,e],{dataSource:null,init:function(){if(!this.dataSource)return window.undefined,null;var h=window.app.handlerDataByIdent(this.dataSource)[0];h||(h=window.app.anonymousDataByIdent(this.dataSource)[0]);if(!h)return g.logError('Sources of "'+this.dataSource+'" is null.'),null;h=a.mixin({},h);if(h.error)return window.alert(h.error),null;h=f(a.mixin(h,{attachScope:this}));
this.addChild(h);return h}}))})},"mill/olap":function(){define(["mill/mill","mill/dataBrowser/rtti","mill/olap/cubeView"],function(){window.mill||(mill={});mill.olap||dojo.mixin(mill,{olap:{}})})},"mill/jssupport/form/SelectListField":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/dom-construct dojo/dom-class dojo/dom-style dojo/Deferred dijit/_WidgetBase dijit/_TemplatedMixin dijit/_Container dijit/_CssStateMixin dijit/form/_FormWidget dojo/text!mill/jssupport/form/selectListField.html dojo/text!mill/jssupport/form/_selectListItem.html mill/jssupport/form/_FieldMixin mill/jssupport/form/_RequiredFieldMixin mill/mill".split(" "),
function(c,a,b,e,f,g,h,l,m,r,n,k,p,q,u,y,v){var t=c("office.form._SelectListItem",[l,r,m,n],{baseClass:"SelectListItem",templateString:q,selected:!1,innerDijit:null,data:null,dataNodeID:null,postMixInProperties:function(){this.inherited(arguments);this.dataNodeID=v.fieldValue(this.data,"ID")},_setDataAttr:function(x){this.data=x;this.addChild(new this.innerDijit({data:this.data,attachScope:this}))},toggleItem:function(){this.get("disabled")||(this.set("selected",!this.get("selected")),this.getParent()&&
a.isFunction(this.getParent().onChange)&&this.getParent().onChange.call(this.getParent()))}});c("office.form.SelectListWidget",[k,r],{baseClass:"SelectList",templateString:"\x3cdiv\x3e\x3cinput type\x3d'hidden' data-dojo-attach-point\x3d'inputNode, focusNode'/\x3e\x3cdiv data-dojo-attach-point\x3d'containerNode'\x3e\x3c/div\x3e\x3c/div\x3e",scrollOnFocus:!1,onChange:new Function,data:null,orientation:null,itemHeight:null,required:null,value:null,_savedValue:"",_setDataAttr:function(x){this.data=x;
b.forEach(this.getChildren(),function(A){A.destroyRecursive()});this._savedValue="";this.value=null;for(x=0;x<this.data.dataNodes.length;x++){var z=new t({innerDijit:this.data.innerDijit,data:this.data.dataNodes[x]});this.addChild(z);"tile"===this.orientation&&g.set(z.domNode,{height:this.itemHeight})}e.create("div",{style:"clear:both"},this.containerNode)},_setOrientationAttr:function(x){this.orientation=x;"tile"===this.orientation&&f.add(this.domNode,"SelectListTile")},_setDisabledAttr:function(x){this.disabled=
x;b.forEach(this.getChildren(),a.hitch(this,function(z){z.set("disabled",this.disabled)}))},_setRequiredAttr:function(x){(this.required=x)?f.add(this.domNode,"SelectListRequired"):f.remove(this.domNode,"SelectListRequired")},_getValueAttr:function(){var x=b.filter(this.getChildren(),function(z){return z.get("selected")});return b.map(x,function(z){return z.dataNodeID}).join(";")},_setValueAttr:function(x){var z=(this.value=x)?this.value.split(";"):[];b.forEach(this.getChildren(),a.hitch(this,function(A){var E=
b.indexOf(z,A.dataNodeID);A.get("selected")!==0<=E&&A.set("selected",0<=E)}));a.isFunction(this.onChange)&&this.onChange.call(this)},queryData:function(x){var z=new h;v.queryCursor(x).then(z.resolve,z.reject);return z.promise},validate:function(){var x=!this.get("required");if(!x){var z=!0;b.forEach(this.getChildren(),function(A){A.get("selected")||(z=!1)});x=z}return x},hideForValue:function(x){if(x||"string"===typeof x)this._savedValue=x;this.set("value",this._savedValue);this.set("disabled",!0)},
unhideForValue:function(){this.set("disabled",!1)}});return mill.registerAlias("office.form.SelectListField",c("mill.jssupport.form.SelectListField",[l,u,y],{templateString:p,orientation:null,itemHeight:null,postMixInProperties:function(){this.inherited(arguments);"tile"===this.orientation&&(this.controlPiece=this.textPiece="12")},_setOrientationAttr:function(x){this.controlNode.set("orientation",this.orientation=x)},_setItemHeightAttr:function(x){this.controlNode.set("itemHeight",this.itemHeight=
x)},buildRendering:function(){this.inherited(arguments);"tile"===this.orientation&&f.add(this.domNode,"officeSelectListTileFormField")}}))})},"mill/dataBrowser/loginDialog":function(){define(["dijit/Dialog","dijit/form/Select","dijit/form/Button"],function(){dojo.declare("mill.dataBrowser.loginDialog",[dijit.Dialog],{_savePassCheck:"",_autoLoginCheck:"",content:dojo.cache("mill","dataBrowser/loginDialog.html",'\x3cdiv\x3e\x3cdiv dojoAttachPoint\x3d"animatedMill" dojoType\x3d"mill.animatedMill" style\x3d"width:100%"\x3e\x3c/div\x3e\x3cdiv\x3e\x3cimg src\x3d"/.system/license.png" width\x3d"100%"/\x3e\x3c/div\x3e\x3cdiv style\x3d"background-image:url(ExtensionLogin.bmp); background-repeat:repeat-x; width:100%; height:216px; background-size:100% 100%"\x3e\x3cdiv style\x3d"padding:12px;padding-bottom:0px"\x3e\x3ctable cellSpacing\x3d"20" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd\x3e\x3cspan style\x3d"font-family: Tahoma,inherit;font-size: 12;font-weight: bold;"\x3e \u0411\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445: \x3c/span\x3e\x3c/td\x3e\x3ctd\x3e\x3cselect dojoAttachPoint\x3d"datasourceSelect" dojotype\x3d"dijit.form.Select" style\x3d"width:100%"/\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cspan style\x3d"font-family: Tahoma,inherit;font-size: 12;font-weight: bold;"\x3e \u041b\u043e\u0433\u0438\u043d: \x3c/span\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"loginTextBox" dojoType\x3d"dijit.form.ValidationTextBox" required\x3d"true" style\x3d"width:100%"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cspan style\x3d"font-family: Tahoma,inherit;font-size: 12;font-weight: bold;"\x3e \u041f\u0430\u0440\u043e\u043b\u044c: \x3c/span\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"passTextBox" dojoType\x3d"dijit.form.ValidationTextBox" required\x3d"true" style\x3d"width:100%" type\x3d"password"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv style\x3d"padding-left:34px"\x3e\x3ctable width\x3d"100%"\x3e\x3ctr\x3e\x3ctd\x3e\x3cdiv\x3e\x3cinput dojoType\x3d"dijit.form.CheckBox" onClick\x3d"dijit.byNode(this.domNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode)._savePassClick(this)"\x3e\x3c/input\x3e\x3cspan\x3e\u0417\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c\x3c/span\x3e\x3c/div\x3e\x3cdiv style\x3d"height:5px;overflow:hidden"\x3e \x26#160; \x3c/div\x3e\x3cdiv\x3e\x3cinput dojoType\x3d"dijit.form.CheckBox" onClick\x3d"dijit.byNode(this.domNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode)._autoLoginClick(this)"\x3e\x3c/input\x3e\x3cspan\x3e\u0421\u043e\u0435\u0434\u0438\u043d\u044f\u0442\u044c\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\x3c/span\x3e\x3c/div\x3e\x3c/td\x3e\x3ctd align\x3d"right" dojoAttachPoint\x3d"buttonExcel" style\x3d"padding-right:30px; padding-bottom:4px"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"dijit.byNode(this.domNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode)._loginButtonClick()" style\x3d"Border:0px; padding:0px"\x3e\x3cdiv style\x3d"width:55px;height:17px;font-family:\u200bTahoma,\u200bArial,\u200bclean,\u200bsans-serif;font-size:11px"\x3e OK \x3c/div\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"dijit.byNode(this.domNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode)._cancelButtonClick()" style\x3d"Border:0px; padding:0px"\x3e\x3cdiv style\x3d"width:55px;height:17px;font-family:\u200bTahoma,\u200bArial,\u200bclean,\u200bsans-serif;font-size:11px"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/div\x3e\x3c/button\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e'),
parseOnLoad:!1,style:"width:484px;height:419px;border-radius:15px;border-top:0px",classID:null,applicationTitle:null,applicationSubtitle:null,show:function(){var c=this.inherited(arguments);this.titleBar.style.display="none";this.containerNode.style.padding="0";var a=[];a.push("\x3cdiv\x3e");a.push(this.applicationTitle);a.push("\x3c/div\x3e");a.push('\x3cdiv style\x3d"margin-top:28px;font-weight:normal;font-size:14pt"\x3e');a.push(this.applicationSubtitle);a.push("\x3c/div\x3e");dojo.place(a.join(""),
this.animatedMill.containerNode,"only");return c},postCreate:function(){this.inherited(arguments);var c={};dojo.forEach(dojo.parser.parse({rootNode:this.containerNode,template:!0}),function(a){a&&a.dojoAttachPoint&&(c[a.dojoAttachPoint]=a)});dojo.mixin(this,c);dojo.xhrGet({handleAs:"xml",sync:!0,headers:{"Disable-Basic-Auth":"yes"},preventCache:!0,url:"/.system/contents.xml",load:dojo.hitch(this,function(a){for(var b=0;b<a.documentElement.childNodes.length;b++){var e=a.documentElement.childNodes[b];
e.getAttribute("class").toString()==this.classID.toString()&&"1"!=(e.getAttribute("disabled")||0).toString()&&this.datasourceSelect.addOption({value:e.getAttribute("ID"),label:e.getAttribute("description")})}return a})})},_cancelButtonClick:function(){},_loginButtonClick:function(){dojo.xhrGet({handleAs:"xml",sync:!0,headers:{"Disable-Basic-Auth":"yes"},content:{login:this.loginTextBox.attr("value"),password:this.passTextBox.attr("value"),jsversion:(dojo.version?dojo.version.toString():"")||""},preventCache:!0,
url:"/"+this.datasourceSelect.attr("value")+"/sysinfo.xml",load:dojo.hitch(this,function(c,a){this.onConnect(this.datasourceSelect.attr("value"));return c}),error:dojo.hitch(this,function(c,a){a.xhr.status="403";alert("\u041d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u043b\u043e\u0433\u0438\u043d/\u043f\u0430\u0440\u043e\u043b\u044c.");return c})})},_savePassClick:function(c){c.checked?this._savePassCheck=!0:this._savePassCheck=!1},_autoLoginClick:function(c){c.checked?this._autoLoginCheck=!0:this._autoLoginCheck=
!1},onConnect:function(c,a,b){}})})},"mill/jssupport/jsApplication/controlSet/ControlSetGroup":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/dom-construct dojo/dom-style dojo/dom-class dojo/on dojo/aspect dojo/when dojo/Deferred dojo/DeferredList dijit/registry dijit/_WidgetBase dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dijit/_Container dijit/form/CheckBox mill/jssupport/jsApplication/controls/_WidgetTitleMixin mill/jssupport/jsApplication/controls/controlField/ControlField mill/jssupport/jsApplication/controls/buttonControl/ButtonControl mill/jssupport/jsApplication/controls/fileEditor/FileEditor mill/jssupport/jsApplication/controlSet/ControlSet mill/jssupport/TranslatableNode mill/mill mill/jssupport/base dojo/text!mill/jssupport/jsApplication/controlSet/controlSetGroup.html".split(" "),
function(c,a,b,e,f,g,h,l,m,r,n,k,p,q,u,y,v,t,x,z,A,E,I,H,L,B){return H.registerAlias("app.view.ControlSetGroup",c("mill.jssupport.jsApplication.controlSet.ControlSetGroup",[p,q,u,y,t],{baseClass:"officeFormContent",templateString:B,contentHeaderNode:null,changeMode:!0,controlWidgets:null,dataSource:null,preventButtonCreate:null,saveButtonIdent:null,createFinalizeButton:null,finalizeButtonIdent:null,successMessageIdent:null,finalizeButtonFieldWidget:null,finalizeButtonWidget:null,titleCollapseButton:null,
idPostfix:null,data:null,controlSetName:null,controlSetWidget:null,saveButton:null,cancelButton:null,canRemove:null,onRemove:null,contentHidden:null,breadcrumbs:null,breadcrumbItem:null,isRequired:null,postMixInProperties:function(){this.inherited(arguments);this.data=window.app.handlerDataByIdent(this.dataSource,function(K){return K.params.ControlSetName===this.controlSetName}.bind(this))[0]||null;this.data||(this.data=window.app.anonymousDataByIdent(this.dataSource)[0]||null);this.data||L.logError('ControlSetGroup: data is null for "'+
this.dataSource+'".');var D=this.id.match(/_\d+$/);this.idPostfix=D?D[0]:"";this.data&&(this.isRequired=this.data.isRequired)},_setChangeModeAttr:function(){return function(D){this.changeMode=D;g[this.changeMode?"remove":"add"](this.domNode,"notChangeMode");b.forEach(window.app.getControlNestedControlSet(this),function(K){b.forEach(window.app.getControlNestedControlSetGroup(K),function(M){M.set("changeMode",this.changeMode)},this)},this);this.finalizeButtonFieldWidget&&f.set(this.finalizeButtonFieldWidget.domNode,
{display:"none"});(D=this.get("controlSetWidget"))&&D._onChange(null,null,null)}}(),_setContentHiddenAttr:function(){return function(D){this.contentHidden=D;this.titleCollapseButton.innerHTML=this.contentHidden?"\x26#43;":"\x26#150;";g[this.contentHidden?"add":"remove"](this.contentFormWrapper,"officeFormContentFormWrapperHidden")}}(),_getControlSetWidgetAttr:function(){return function(){if(!this.controlSetWidget){for(var D=this;!D.isInstanceOf(E)&&D.getParent();)D=D.getParent();this.controlSetWidget=
D.isInstanceOf(E)?D:null}return this.controlSetWidget}}(),startup:function(){this.inherited(arguments);if(this.data&&this.data.controlNames){var D=this.data.controlNames.split(",");this.controlWidgets=b.map(D,function(R){return k.byId(R+this.idPostfix)},this)}this.preventButtonCreate?this.createFinalizeButton&&this.initFinalizeButton():this.initActions();var K=this.get("controlSetWidget");if(!0===K.canRemove){D=e.create("div",{className:"table-cell changeModeOnly officeFormContentHeaderActionButton"},
this.contentHeaderNode);var M=e.create("a",{innerHTML:"\x26#215;",className:"white",style:{cursor:"pointer"}},D);h(M,"click",function(){this.changeMode&&(a.isFunction(K.onRemove)?K.onRemove.call(K,null):K.destroyRecursive())}.bind(this));K.closeIconNode=D}},switchChangeMode:function(){this.cancelButton&&(this.cancelButton.destroyRecursive(),this.cancelButton=null);this.saveButton&&this.saveButton.set("labelIdent","Office.ChangeData");this.set("changeMode",!1);this.breadcrumbs&&this.breadcrumbs.initItemsState()},
hideWidgetsForValue:function(D,K,M){void 0===M||a.isArray(M)||(M=[M]);var R=this.get("controlWidgets");a.isArray(M)&&(R=b.filter(R,function(Q){return 0>b.indexOf(M,Q)}));D||(D=b.map(b.filter(R,function(Q){return Q.isInstanceOf(A)&&Q.get("value")&&Q.get("fileReference")}),function(Q){return{widget:Q,value:Q.get("value"),fileReference:Q.get("fileReference")}}));window.app.hideForValue(R,D,K);this.switchChangeMode()},hideWidgetsAndSaveButtonForValue:function(){return function(D){this.hideWidgetsForValue();
this.saveButton&&("none"!==window.app.getControlField(this.saveButton).domNode.style.display&&this.addInfoMessage({text:window.app.combinedTranslationIdent(D||"DataChangeRequestSent")}),dojo.style(window.app.getControlField(this.saveButton).domNode,{display:"none"}))}}(),addInfoMessage:function(D){var K=x();D=I(D);K.addChild(D);D.set("fullWidth",!0);this.addChild(K)},onValidate:function(){var D=!!this.data&&this.data.onValidate.apply(this,this.controlWidgets);if(D)for(var K=window.app.getControlNestedControlSet(this),
M=0;M<K.length;M+=1)for(var R=window.app.getControlNestedControlSetGroup(K[M]),Q=0;Q<R.length;Q+=1)if(!R[Q].onValidate())return D=!1;return D},onSaveData:function(){if(!this.data)return!1;var D=new r,K=[],M=function(Q){b.forEach(Q,function(T){T=window.app.getControlNestedControlSetGroup(T);K=K.concat(T);b.forEach(T,function(U){M(window.app.getControlNestedControlSet(U))})})};M(window.app.getControlNestedControlSet(this));var R=function(){var Q=K.splice(0,1)[0];if(Q)m(Q.data.onSaveData.apply(Q,Q.controlWidgets),
function(U){"boolean"!==typeof U||U?"boolean"!==typeof U&&(H.parseErrorMessage(U)||U[0].hasOwnProperty("requiredFieldName"))?H.parseErrorMessage(U)?D.resolve(U):D.resolve(a.mixin(U[0],{idPostfix:Q.idPostfix})):R():D.resolve(U)});else{var T=this.data.onSaveData.apply(this,this.controlWidgets);void 0===T?(window.undefined,D.resolve(!1)):"boolean"===typeof T?D.resolve(T):window.app.isDeferred(T)&&T.then(function(U){H.parseErrorMessage(U)?D.resolve(U):D.resolve(U[0])})}}.bind(this);R();return D},onChangeMode:function(){this.data&&
(this.data.onChangeMode.apply(this,this.controlWidgets),b.forEach(window.app.getControlNestedControlSet(this),function(D){b.forEach(window.app.getControlNestedControlSetGroup(D),function(K){K.onChangeMode()})}),this.breadcrumbs&&this.breadcrumbs.initItemsState())},onCancelChange:function(){if(this.data){this.data.onCancelChange.apply(this,this.controlWidgets);b.forEach(window.app.getControlNestedControlSet(this),function(M){b.forEach(window.app.getControlNestedControlSetGroup(M),function(R){R.onCancelChange()})});
var D=null,K=null;this.hasOwnProperty("contentFormWrapper")&&(g.remove(this.contentFormWrapper,"officeFormContentFormWrapperInvalid"),(D=app.getControlParentControlSet(this))&&(K=app.getControlParentControlSetGroup(D))&&K.hasOwnProperty("contentFormWrapper")&&g.remove(K.contentFormWrapper,"officeFormContentFormWrapperInvalid"));this.breadcrumbs&&this.breadcrumbs.initItemsState();K&&K.breadcrumbs&&K.breadcrumbs.initItemsState()}},getIsAvail:function(){return this.data?this.data.getIsAvail.apply(this,
this.controlWidgets):!0},initActions:function(){var D=this,K=x();this.saveButton=z({labelIdent:window.app.combinedTranslationIdent(D.saveButtonIdent)||"Office.Save",onClick:function(){if(D.changeMode){if(D.onValidate()){this.set("labelIdent","Office.SubmittingApplication");window.app.setControlValue([this,D.cancelButton],!0,"disabled");var M=new r;setTimeout(function(){var R=function(){this.set("labelIdent","Office.RetrySubmitApplication");window.app.setControlValue([this,D.cancelButton],!1,"disabled")}.bind(this);
D.onSaveData().then(function(Q){if("boolean"===typeof Q)Q?(D.switchChangeMode(),D.breadcrumbs&&D.breadcrumbs.nextItem()):R(),M.resolve(Q);else{var T=!!H.parseErrorMessage(Q)||Q.hasOwnProperty("requiredFieldName");if(Q.hasOwnProperty("requiredFieldName")){window.undefined;var U=k.byId(Q.requiredFieldName+(Q.idPostfix||""));if(!U)window.undefined;else if(a.isFunction(U.reset)){U.isInstanceOf(A)&&U.set("value","");if(Q=window.app.getControlField(U))if(window.app.hideControlForNode(U,!1),window.app.setControlValue(U,
!1,"disabled"),Q.set("required",!0),U.set("required",!0),U.isInstanceOf(v)&&Q.containerNode&&(Q=Q.containerNode.childNodes)&&Q[1]){var W=k.byNode(Q[1]);W&&a.isObject(W)&&a.isFunction(W.isInstanceOf)&&W.isInstanceOf(I)&&(g.add(W.domNode,"red"),l.after(U,"onChange",function(){U.get("checked")&&g.remove(W.domNode,"red")}))}U.reset()}}T?(D.onValidate(),R()):(D.switchChangeMode(),D.breadcrumbs&&D.breadcrumbs.nextItem());M.resolve(!T)}}.bind(this))}.bind(this),100);return M}}else this.set("labelIdent",
window.app.combinedTranslationIdent(D.saveButtonIdent)||"Office.Save"),D.cancelButton=z({labelIdent:"Office.Cancel",onClick:function(){this.destroyRecursive();D.cancelButton=null;D.saveButton.set("labelIdent","Office.ChangeData");D.set("changeMode",!1);D.onCancelChange()}}),K.addChild(D.cancelButton),D.set("changeMode",!0),D.onChangeMode()}});K.addChild(D.saveButton);this.addChild(K)},initFinalizeButton:function(){var D=this.get("controlSetWidget"),K=!0===D.get("fullScreenMode")||"1"===String(D.get("fullScreenMode"));
this.finalizeButtonFieldWidget=x();var M=z({labelIdent:window.app.combinedTranslationIdent(this.finalizeButtonIdent)||"Office.SubmitApplication",onClick:function(){if(D._onValidate()){var R=function(){K?D.offFullScreenMode():(this.set("changeMode",!1),this.addInfoMessage({text:window.app.combinedTranslationIdent(this.successMessageIdent)}))}.bind(this),Q=function(){M.set("labelIdent","Office.RetrySubmitApplication");window.app.setControlValue([M],!1,"disabled")};M.set("labelIdent","Office.SubmittingApplication");
window.app.setControlValue([M],!0,"disabled");setTimeout(function(){var T=D._onSaveData();void 0===T?window.undefined:window.app.isDeferred(T)?T.then(R,Q):T?R():Q()}.bind(this),100)}}.bind(this)});this.finalizeButtonFieldWidget.addChild(M);this.finalizeButtonWidget=M;this.addChild(this.finalizeButtonFieldWidget);"acForeignPrepStudent"===window.app.accessCategory&&l.after(D,"onChange",function(){D._onValidate()})},toggleContentView:function(){return function(){this.set("contentHidden",!this.get("contentHidden"))}}()}))})},
"mill/jssupport/layout/layoutContent/ExternalContent":function(){define(["dojo/_base/declare","dojo/query","dojo/dom-construct","dojo/text!mill/jssupport/layout/layoutContent/externalContent.html","mill/jssupport/layout/layoutContent/_LayoutContent"],function(c,a,b,e,f){return mill.registerAlias("office.layout.ExternalContent",c("mill.jssupport.layout.layoutContent.ExternalContent",[f],{baseClass:"externalContent",templateString:e,loginAnnouncementNode:null,startup:function(){this.inherited(arguments);
a("[data-login-announcement]",this.containerNode).forEach(function(g){b.place(g,this.loginAnnouncementNode)},this)}}))})},"mill/jssupport/layout/layoutMenu/LayoutMenuItem":function(){define("dojo/_base/declare dojo/_base/lang dojo/dom-class dijit/_CssStateMixin dojo/text!./layoutMenuItem.html mill/jssupport/TranslatableNode mill/jssupport/base".split(" "),function(c,a,b,e,f,g,h){return mill.registerAlias("office.layout.LayoutMenuItem",c("mill.jssupport.layout.layoutMenu.LayoutMenuItem",[g,e],{baseClass:"officeLayoutMenuItem",
templateString:f,display:"flex",anchor:null,ir:null,href:null,target:null,region:null,selected:null,onTranslate:null,attributeMap:a.delegate(g.prototype.attributeMap,{href:"anchorNode",target:"anchorNode"}),postMixInProperties:function(){this.inherited(arguments);this.doProcessIR=!!this.ir},_setAnchorAttr:function(l){this.set("href",this.anchor=l);this.set("target",l.match(/^javascript|^#/i)?"_self":"_blank")},_setRegionAttr:function(l){b.add(this.domNode,this.region=l)},translate:function(){this.inherited(arguments);
this.onTranslate&&this.onTranslate();this.ir&&this.set("anchor",h.getInternetResource(a.isObject(this.ir)?this.ir[h.locale]:this.ir))}}))})},"mill/jssupport/layout/layoutMenu/_LayoutMenuMixin":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/dom-construct","mill/jssupport/layout/layoutMenu/LayoutMenuTreeNode","mill/jssupport/TranslatableNode"],function(c,a,b,e,f){return mill.registerAlias("office.layout._LayoutMenuMixin",c("mill.jssupport.layout.layoutMenu._LayoutMenuMixin",null,{region:null,
menuContent:null,_sections:null,_treeNodes:null,postMixInProperties:function(){this.inherited(arguments);this._sections=this._sections||{};this._treeNodes=this._treeNodes||{}},buildRendering:function(){this.inherited(arguments);this._sections.translation=b.create("ul",{className:"officeLayoutMenuSection"},this.menuContent);this._sections.actions=b.create("ul",{className:"officeLayoutMenuSection"},this.menuContent);this._sections["default"]=b.create("ul",{className:"officeLayoutMenuSection"},this.menuContent)},
registerItem:function(g){if(g.section&&!this._sections[g.section]&&(this._sections[g.section]=b.create("ul",{className:"officeLayoutMenuSection"},this.menuContent),g.sectionName)){var h=b.create("li",{className:"officeLayoutMenuElem"},this._sections[g.section]).appendChild(document.createElement("div"));f({text:g.sectionName,className:"officeLayoutMenuItem bold",style:{color:"#7f7f7f"},display:"flex"},h)}h=this._sections[g.section]||this._sections["default"];a.isObject(g.treeNode)&&null!==g.treeNode&&
(this._treeNodes.hasOwnProperty(g.treeNode.ident)?h=this._treeNodes[g.treeNode.ident]:(h=e({text:g.treeNode.text},b.create("div",null,h)).domNode,this._treeNodes[g.treeNode.ident]=h));return h}}))})},"mill/jssupport/form/TextField":function(){define("dojo/_base/declare dojo/dom-construct dojo/dom-style dojo/dom-class dijit/_WidgetBase dijit/form/ValidationTextBox dojo/text!mill/jssupport/form/validationTextBox.html dojo/text!mill/jssupport/form/textField.html mill/jssupport/form/_TextFieldWidgetMixin mill/jssupport/form/_FieldMixin mill/jssupport/form/_RequiredFieldMixin mill/jssupport/base".split(" "),
function(c,a,b,e,f,g,h,l,m,r,n,k){c("office.form.TextBoxWidget",[g,m],{templateString:h,intermediateChanges:!0,trim:!0,_hasProtectedValue:null,translate:function(){this.inherited(arguments);this._savedValue instanceof Object&&this._savedValue[k.locale]&&(this.set("value",this._savedValue[k.locale]),this._savedValueNode&&this.hideForValue())},hideForValue:function(p,q){this.inherited(arguments);q&&(this._hasProtectedValue=!0,this._savedValue=p);if(p||"string"===typeof p)this._savedValueNode&&(this._changed=
this._savedValue instanceof Object?p!==this._savedValue.RU&&p!==this._savedValue.EN:p!==this._savedValue),!this._hasProtectedValue&&(this._savedValue=p);var u=this._savedValue instanceof Object?this._savedValue[k.locale]||this._savedValue.RU:this._savedValue;this.set("value",u);a.destroy(this._savedValueNode);this._savedValueNode=a.create("span",{innerHTML:u,className:"dim bold"},this.domNode.parentNode,"first");b.set(this.domNode,{display:"none"});this._changed&&e.add(this._savedValueNode,["blue",
"italic"])}});return mill.registerAlias("office.form.TextField",c("mill.jssupport.form.TextField",[f,r,n],{templateString:l,type:"text",disabled:null,placeHolder:null,regExp:null,uppercase:null,lowercase:null,observer:null,icon:null,charactersRemainingWidget:null,missingMessage:"Office.DefaultMissingMessage",invalidMessage:"Office.DefaultInvalidMessage",postMixInProperties:function(){this.inherited(arguments);this.placeHolder=this.placeHolder||(this.text?this.text.replace(/:$/,""):null)},_setDisabledAttr:function(p){this.controlNode.set("disabled",
this.disabled=p)},_setRegExpAttr:function(p){this.controlNode.set("regExp",this.regexp=p)},_setUppercaseAttr:function(p){this.controlNode.set("uppercase",this.uppercase=p)},_setLowercaseAttr:function(p){this.controlNode.set("lowercase",this.lowercase=p)},_setIconAttr:function(p){this.controlNode.set("icon",this.icon=p)},_setMissingMessageAttr:function(p){this.controlNode.set("missingMessageIdentifier",this.missingMessage=p)},_setInvalidMessageAttr:function(p){this.controlNode.set("invalidMessageIdentifier",
this.invalidMessage=p)},_setPlaceHolderAttr:function(p){this.controlNode.set("placeHolderIdentifier",this.placeHolder=p)}}))})},"mill/browserValidator":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/connect dojo/dom-construct dojo/dom-style dojo/sniff dojo/i18n!./nls/resources dijit/_WidgetBase dijit/_TemplatedMixin dijit/_Container".split(" "),function(c,a,b,e,f,g,h,l,m,r){var n=c("mill._browserValidatorPadBrowser",[l,m],{templateString:"\x3cdiv style\x3d'display:inline-block;*display:inline;zoom:1'\x3e  \x3ca style\x3d'display:inline-block;*display:inline;zoom:1' href\x3d'${href}' target\x3d'_blank'\x3e    \x3cdiv style\x3d'display:inline-block;*display:inline;zoom:1;width:48px;height:48px;background-image:url(${imgSrc});*background:none;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src\x3d\"${imgSrc}\");cursor:pointer' title\x3d'${title}'\x3e\x3c/div\x3e  \x3c/a\x3e\x3c/div\x3e",
browser:null,imgSrc:null,href:"",title:"",postMixInProperties:function(){this.inherited(arguments);switch(this.browser){case "chrome":this.imgSrc+="chrome.png";this.href="http://google.com/chrome";this.title="Google Chrome";break;case "ff":this.imgSrc+="firefox.png";this.href="http://mozilla.org";this.title="Mozilla Firefox";break;case "opera":this.imgSrc+="opera.png";this.href="http://opera.com";this.title="Opera";break;case "ie":this.imgSrc+="edge.png",this.href="https://www.microsoft.com/download/internet-explorer-11-for-windows-7-details.aspx",
this.title="Internet Explorer 11"}}}),k=c("mill._browserValidatorPad",[l,m,r],{templateString:"\x3cdiv\x3e\x3cdiv data-dojo-attach-point\x3d'textValueNode'\x3e\x3c/div\x3e\x3cdiv style\x3d'margin: 10px 0' data-dojo-attach-point\x3d'containerNode'\x3e\x3c/div\x3e\x3c/div\x3e",style:{padding:"10px",textAlign:"center",backgroundColor:"f9f7ba",zIndex:"10001"},invalidBrowser:null,offerBrowsers:null,imgSrc:null,textValue:null,attributeMap:{textValue:{node:"textValueNode",type:"innerHTML"}},postMixInProperties:function(){this.inherited(arguments);
a.mixin(this.style,{position:this.invalidBrowser?"relative":"absolute",font:"bold "+(this.invalidBrowser?"14":"10")+"px Tahoma, Verdana, sans-serif"});this.invalidBrowser||a.mixin(this.style,{bottom:"20px",right:"25px",width:"300px",border:"solid 2px #b8b69a"});this.textValue=(this.invalidBrowser?h.invalidBrowser:h.oldBrowser)||""},buildRendering:function(){this.inherited(arguments);var p;this.invalidBrowser?f.set(document.body,{backgroundColor:this.style.backgroundColor}):p=b.connect(e.create("div",
{innerHTML:"\x26#215;",style:{fontSize:"14px",cursor:"pointer",position:"absolute",top:"1px",right:"5px"}},this.domNode),"onclick",a.hitch(this,function(){b.disconnect(p);this.destroyRecursive()}))},startup:function(){this.inherited(arguments);for(var p in this.offerBrowsers)!0===this.offerBrowsers[p]&&this.addChild(new n({browser:p,imgSrc:this.imgSrc}))}});return c("mill.browserValidator",l,{imgSrc:"/support/",autoValidate:!0,validBrowserVersion:null,postCreate:function(){this.autoValidate&&this.validate()},
valid:function(){return 0<=this.validate()},validate:function(){var p=window.navigator.userAgent,q=-1!==p.indexOf("Windows NT 6.1"),u=-1!==p.indexOf("Windows NT 6.2");p=-1!==p.indexOf("Edge");var y=8>g("ie");if(null!==this.validBrowserVersion&&a.isObject(this.validBrowserVersion))for(var v in this.validBrowserVersion)g(v)&&g(v)<this.validBrowserVersion[v]&&(y=!0);if(!y&&(537<=g("webkit")||49<=g("chrome")||52<=g("ff")||!g("ie")&&g("trident")||p||g("mac")&&g("safari")))return 1;(new k({invalidBrowser:y,
offerBrowsers:{chrome:g("ie")?8<=g("ie"):!0,ff:!0,opera:!0,ie:q||u?8<=g("ie"):!1},imgSrc:this.imgSrc},e.create("div",{},document.body,y?"only":"last"))).startup();return y?-1:0}})})},"mill/jssupport/layout/GridLayoutColumn":function(){define(["dojo/_base/declare","dojo/dom-class","dijit/_WidgetBase","dijit/_TemplatedMixin","mill/jssupport/layout/_LayoutMixin"],function(c,a,b,e,f){return mill.registerAlias("office.layout.GridLayoutColumn",c("mill.jssupport.layout.GridLayoutColumn",[b,e,f],{baseClass:"gridLayoutColumn",
templateString:"\x3cdiv data-dojo-attach-point\x3d'containerNode'\x3e\x3c/div\x3e",piece:null,padPiece:null,mobilePiece:null,postMixInProperties:function(){this.inherited(arguments);this.piece=this.piece||12;this.padPiece=this.padPiece||this.piece;this.mobilePiece=this.mobilePiece||12},_setPieceAttr:function(g){this.piece=parseInt(g)||12;a.add(this.domNode,"col-"+this.piece+"-12")},_setPadPieceAttr:function(g){this.padPiece=parseInt(g)||12;a.add(this.domNode,"pad-col-"+this.padPiece+"-12")},_setMobilePieceAttr:function(g){this.mobilePiece=
parseInt(g)||12;a.add(this.domNode,"mobile-col-"+this.mobilePiece+"-12")}}))})},"mill/jssupport/layout/layoutContent/RegistrationForm":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/dom-style dojo/dom-construct dojo/on dojo/cookie dojo/store/Memory dojo/text!mill/jssupport/layout/layoutContent/registrationForm.html dojo/text!mill/jssupport/layout/layoutContent/registrationPhoneCodeForm.html mill/jssupport/form/_FormContent mill/jssupport/base mill/mill".split(" "),function(c,
a,b,e,f,g,h,l,m,r,n,k,p){if("acForeignAbiturient"===k.accessCategory||"acForeignMagAbiturient"===k.accessCategory||window.app)m=r;return mill.registerAlias("office.RegistrationForm",c("mill.jssupport.layout.layoutContent.RegistrationForm",[n],{content:m,formTitle:"Office.SignUp",hideSubmitTextColumn:"false",birthDateOptionValue:null,startup:function(){this.inherited(arguments);this.formWidgets.sex.widget.set("store",new l({data:[{id:"0",ID:"0",Description:"\u0416\u0435\u043d\u0441\u043a\u0438\u0439",
EngDescription:"Female"},{id:"1",ID:"1",Description:"\u041c\u0443\u0436\u0441\u043a\u043e\u0439",EngDescription:"Male"}]}));this.formWidgets.birthdate.widget.set("validator",function(x){x=!!this.formWidgets.birthdate.widget.get("value")&&this.dateValidator()(x);this.formWidgets.birthdate.widget.set("invalidMessageIdentifier","Office.InvalidDate");if(x&&("acSchoolOlymp"===k.accessCategory||"acStudOlymp"===k.accessCategory)){var z=function(E){E=Date.now()-E.getTime();return Math.abs((new Date(E)).getUTCFullYear()-
1970)};this.birthDateOptionValue||mill.executeMethodJson({handler:k.anonymousHandler,headers:{"Disable-Basic-Auth":"yes"},sync:!0,className:"TRegistrationRequest",methodName:"GetOlympBirthDateOptionValue",load:function(E){this.birthDateOptionValue=E[0]}.bind(this)});var A=this.formWidgets.birthdate.widget.get("value");A&&(z=z(mill.parseDate(A)),A=!0,"acSchoolOlymp"===k.accessCategory?(A&&mill.fieldValue(this.birthDateOptionValue,"SchoolOlympMinAge")&&(A=z>=mill.fieldValue(this.birthDateOptionValue,
"SchoolOlympMinAge")),A&&mill.fieldValue(this.birthDateOptionValue,"SchoolOlympMaxAge")&&(A=z<=mill.fieldValue(this.birthDateOptionValue,"SchoolOlympMaxAge"))):"acStudOlymp"===k.accessCategory&&(A&&mill.fieldValue(this.birthDateOptionValue,"StudOlympMinAge")&&(A=z>=mill.fieldValue(this.birthDateOptionValue,"StudOlympMinAge")),A&&mill.fieldValue(this.birthDateOptionValue,"StudOlympMaxAge")&&(A=z<=mill.fieldValue(this.birthDateOptionValue,"StudOlympMaxAge"))),A||(this.formWidgets.birthdate.widget.set("invalidMessageIdentifier",
"Office.InvalidAge"),x=!1))}return x}.bind(this));this.formWidgets.email.widget.set("validator",a.hitch(this,this.emailValidator));this.formWidgets.emailConfirm.widget.set("validator",a.hitch(this,this.emailConfirmValidator));g(this.getFormWidget("emailConfirm"),"paste",function(x){x.preventDefault()});var q=RegExp("^[\u0430-\u044f\u0410-\u042f\u0451\u0401\\s-]+$");b.forEach(["lastname","firstname","middlename"],a.hitch(this,function(x){var z=this.getFormWidget(x);"acSchoolOlymp"!==k.accessCategory&&
"acStudOlymp"!==k.accessCategory||z.set("validator",function(A){return!A&&!z.get("required")||q.test(A)});this.getFormWidget(x).set("intermediateChanges",!1);g(this.getFormWidget(x),"change",a.hitch(this,function(A){if(A===A.toUpperCase()&&mill.letterChar.test(A)){for(var E="",I=0;I<A.length;I++)E=0===I?A[I].toUpperCase():mill.letterChar.test(A[I])&&!mill.letterChar.test(A[I-1])?E+A[I].toUpperCase():E+(mill.letterChar.test(A[I])?A[I].toLowerCase():A[I]);this.getFormWidget(x).set("value",E)}}))}));
k.registrationPDConfirmText&&this.personalDataConfirmWidget.set("text",k.registrationPDConfirmText+(this.personalDataConfirmWidget.get("required")?";*":""));if(k.registrationPDAddConfirmText){var u=new office.form.CheckBoxField({name:"confirmX",text:k.registrationPDAddConfirmText,doubleColumn:!1,required:!0},this.registrationPDAddConfirmNode);this.registerWidget(u.controlNode)}k.registrationAccuracyConfirmText&&this.informationAccuracyConfirmWidget.set("text",k.registrationAccuracyConfirmText+(this.informationAccuracyConfirmWidget.get("required")?
";*":""));if(k.registrationRequestTimePoint){u="boolean"===typeof k.registrationRequestTimePoint.startTimePoint?k.registrationRequestTimePoint.startTimePoint:!0;var y="boolean"===typeof k.registrationRequestTimePoint.endTimePoint?k.registrationRequestTimePoint.endTimePoint:!1;if(!u||y)this.hideActions(),this.toggleFormView(),this.createErrorMessage(u?"Office.RegistrationFinished":"Office.RegistrationNotStarted","blocked")}u=null;"acMagAbiturient"===k.accessCategory?u="MagAbit.":"acBachAbiturient"===
k.accessCategory?u="BachAbit.":"acForeignAbiturient"===k.accessCategory?u="ForeignAbit.":"acForeignMagAbiturient"===k.accessCategory?u="ForeignAbit.":"acLyceumAbit"===k.accessCategory?u="LyceumAbit.":"acForeignPrepStudent"===app.accessCategory?u="ForeignPrepStud.":"acBachAbiturient"===app.accessCategory?u="BachAbitur.":"acMagAbiturient"===app.accessCategory&&(u="MagAbitur.");u&&(new office.TranslatableNode({text:u+"Reg.LastNameTooltip"},this.lastNameTooltip),new office.TranslatableNode({text:u+"Reg.FirstNameTooltip"},
this.firstNameTooltip),new office.TranslatableNode({text:u+"Reg.MiddleNameTooltip"},this.middleNameTooltip),new office.TranslatableNode({text:u+"Reg.BirthDateNameTooltip"},this.birthDateNameTooltip),new office.TranslatableNode({text:u+"Reg.Email1NameTooltip"},this.email1NameTooltip),new office.TranslatableNode({text:u+"Reg.Email2NameTooltip"},this.email2NameTooltip));if("acForeignAbiturient"===k.accessCategory||"acForeignMagAbiturient"===k.accessCategory||"acLyceumAbit"===k.accessCategory||"acBachAbiturient"===
k.accessCategory||"acNostrificant"===k.accessCategory||window.app&&("acForeignPrepStudent"===window.app.accessCategory||"acBachAbiturient"===window.app.accessCategory||"acMagAbiturient"===window.app.accessCategory)){("acForeignAbiturient"===k.accessCategory||"acForeignMagAbiturient"===k.accessCategory||window.app&&"acForeignPrepStudent"===window.app.accessCategory)&&this.getField("middlename").set("required",!1);u=this.getField("confirm1").translatableNode;y=u.domNode.parentNode;var v=y.parentNode;
f.place(u.domNode,v,"last");dojo.destroy(y);e.set(u.domNode,{color:"#005fb6",borderBottom:"dashed 1px #005fb6",cursor:"pointer"});var t=new office.TranslatableNode({doProcessIR:!0,style:a.delegate(office.TranslatableNode.prototype.style,{margin:"5px 0"})},f.create("div",{},v));"acForeignAbiturient"!==k.accessCategory&&"acForeignMagAbiturient"!==k.accessCategory||u.set("onClick",function(){t.set("text",t.get("text")?"":"ForeignAbit.PDConfirmExtended")});"acLyceumAbit"===k.accessCategory&&u.set("onClick",
function(){t.set("text",t.get("text")?"":"LyceumAbit.PDConfirmExtended")});"acBachAbiturient"!==k.accessCategory&&"acBachAbiturient"!==window.app.accessCategory||u.set("onClick",function(){t.set("text",t.get("text")?"":"BachAbitur.PDConfirmExtended")});"acMagAbiturient"!==k.accessCategory&&"acMagAbiturient"!==window.app.accessCategory||u.set("onClick",function(){t.set("text",t.get("text")?"":"MagAbitur.PDConfirmExtended")});"acNostrificant"===k.accessCategory&&u.set("onClick",function(){t.set("text",
t.get("text")?"":"Nostr.PDConfirmExtended")});!window.app||"acForeignPrepStudent"!==window.app.accessCategory&&"acBachAbiturient"!==window.app.accessCategory&&"acMagAbiturient"!==window.app.accessCategory||(u.set("onClick",function(){t.set("text",t.get("text")?"":window.app.combinedTranslationIdent("RegistrationPDConfirmExtended"))}),this.getFormWidget("phone").set("store",app.createStore({data:window.app.anonymousDataByIdent("countries")})),this.getFormWidget("secondphone").set("store",app.createStore({data:window.app.anonymousDataByIdent("countries")})),
this.getFormWidget("homephone").set("store",app.createStore({data:window.app.anonymousDataByIdent("countries")})));if("acForeignAbiturient"===k.accessCategory||"acForeignMagAbiturient"===k.accessCategory)(u=this.getField("confirm1"))?(b.forEach(["phone","secondphone","homephone"],function(x){if(x=this.getField(x))x.set("required",!1),window.app.hideControlForNode(x,!0)},this),y=new office.form.PhoneField({text:"Office.MobileNumber;:",name:"mobile",required:!0}),v=y.controlNode,v.set("store",app.createStore({data:window.app.anonymousDataByIdent("countries")})),
this.registerWidget(v),y.placeAt(u.domNode,"before")):window.undefined}},getContactMessengerValues:function(){return{}},postForm:function(){this.inherited(arguments);var q=this.gatherFormValues(null);q.lastname=k.secondNameToLowerCase(q.lastname.charAt(0).toUpperCase()+q.lastname.slice(1));q.firstname=k.secondNameToLowerCase(q.firstname.charAt(0).toUpperCase()+q.firstname.slice(1));var u=this.getWidgetAttr("middlename","value")||"-";u=k.secondNameToLowerCase(u.charAt(0).toUpperCase()+u.slice(1));
this.postRequest({url:p.getRequestUrl(k.registerHandler||(window.app?app.registerHandler:""),"RegistrationRequest.xml"),data:a.mixin(q,this.getContactMessengerValues(),{className:k.registrationRequestClass||(window.app?app.registrationClass:""),refertext:mill.getReferText(),accesscategory:k.accessCategory||(window.app?app.accessCategory:""),locale:k.locale,middlename:u,roistatcounter:h("roistat_visit")})}).then(a.hitch(this,function(y){a.isFunction(window.initWebAnalyticsDataLayer)&&window.initWebAnalyticsDataLayer();
this.createSuccessMessage("Office.SignUpRequestSuccess",a.hitch(this,function(){this.toggleFormView()}),null,null,!1);this.toggleFormView();this.resetForm()}))}}))})},"mill/jssupport/form/TextAreaField":function(){define("dojo/_base/declare dojo/dom-construct dojo/dom-style dojo/dom-class dijit/_WidgetBase dijit/form/SimpleTextarea dojo/text!mill/jssupport/form/textAreaField.html mill/jssupport/form/_FieldMixin mill/jssupport/form/_TextFieldWidgetMixin mill/jssupport/form/_RequiredFieldMixin mill/jssupport/base".split(" "),
function(c,a,b,e,f,g,h,l,m,r,n){c("office.form.SimpleTextAreaWidget",[g,m],{intermediateChanges:!0,trim:!0,required:null,validate:function(){return!this.get("required")||this.get("required")&&!!this.get("value")},hideForValue:function(k){this.inherited(arguments);if(k||"string"===typeof k)this._savedValueNode&&(this._changed=this._savedValue instanceof Object?k!==this._savedValue.RU&&k!==this._savedValue.EN:k!==this._savedValue),this._savedValue=k;var p=this._savedValue instanceof Object?this._savedValue[n.locale]||
this._savedValue.RU:this._savedValue;this.set("value",p);a.destroy(this._savedValueNode);this._savedValueNode=a.create("span",{innerHTML:p,className:"dim bold"},this.domNode.parentNode);b.set(this.domNode,{display:"none"});this._changed&&e.add(this._savedValueNode,["blue","italic"])}});return mill.registerAlias("office.form.TextAreaField",c("mill.jssupport.form.TextAreaField",[f,l,r],{templateString:h,observer:null,startup:function(){this.inherited(arguments);this.controlNode.set("value",null)}}))})},
"mill/jssupport/jsApplication/controls/buttonControl/ButtonControl":function(){define(["dojo/_base/declare","dojo/dom-class","dijit/form/Button","mill/jssupport/_TranslationMixin","mill/jssupport/base"],function(c,a,b,e,f){return mill.registerAlias("app.view.ButtonControl",c("mill.jssupport.jsApplication.controls.buttonControl.ButtonControl",[b,e],{description:null,labelIdent:null,fullWidth:null,buttonColor:null,postMixInProperties:function(){this.inherited(arguments);this.label=this.getLabel()},
_setLabelIdentAttr:function(){return function(g){this.labelIdent=g;this.set("label",this.getLabel())}}(),_setFullWidthAttr:function(g){this.fullWidth=g;(g=window.app.getControlField(this))&&g.set("fullWidth",this.fullWidth)},_setButtonColorAttr:function(g){this.buttonColor=g;a["red"===this.buttonColor?"add":"remove"](this.domNode,"dijitButtonRed")},getLabel:function(){var g=this.description||"";if(this.labelIdent)if(f.getLocalization(this.labelIdent))g=f.getLocalization(this.labelIdent);else{var h=
window.app.combinedTranslationIdent(this.labelIdent);f.getLocalization(h)&&(g=f.getLocalization(h))}return g},translate:function(){this.inherited(arguments);this.set("label",this.getLabel())}}))})},"mill/dataBrowser/browserGrid":function(){define("dojo/DeferredList dijit/Menu dojox/grid/EnhancedGrid dojox/grid/enhanced/_Plugin dojox/grid/enhanced/_PluginManager dojox/grid/enhanced/plugins/IndirectSelection mill/mill mill/dataBrowser/browserGridData mill/dataBrowser/parametersView mill/dataBrowser/blobAttachment mill/gridColumnsFilter".split(" "),
function(){mill.dataBrowser||(mill.dataBrowser={});dojo.declare("mill.dataBrowser.browserGrid",[dojox.grid.EnhancedGrid,dijit._Contained],{rttiManager:null,viewName:null,viewID:null,view:null,classInfo:null,columns:null,conditions:null,actions:null,parentView:null,escapeHTMLInData:!1,keyFieldName:"ID",hasChildrenFieldName:"HasChildren",parametersDialogClass:"mill.dataBrowser.parametersView",childViews:null,plugins:{dataBrowserColumnsFilter:{visible:!0},indirectSelection:{headerSelector:!0}},constructor:function(){this.inherited(arguments);
this.childViews=[]},preDefinedConditions:function(){return[]},formatCell:function(c,a,b){a=b.grid.getItem(a);if("TBlobDomain"==b.columnInfo.domainInfo.handle)if("1"==b.grid.store.getValue(a,b.columnInfo.Name))if(b.columnInfo.domainInfo.blobSubtype||(b.columnInfo.domainInfo.blobSubtype=b.grid.rttiManager.get("TEnumerationItem",b.columnInfo.domainInfo.BlobSubtype,null)),"btNamedFile"==b.columnInfo.domainInfo.blobSubtype.Name)c='\x3ca target\x3d"_blank" href\x3d\'/'+b.grid.rttiManager.handle+"/getblob?query\x3d"+
mill._itemsToQuery({className:b.grid.classInfo.Name,propName:b.columnInfo.propertyInfo.Name,ID:b.grid.store.getValue(a,"ID")})+"'\x3e(\u0414\u0430\u043d\u043d\u044b\u0435)\x3c/a\x3e";else return new mill.dataBrowser.blobAttachment({hrefConstructor:["javascript:mill.dataBrowser.browserGrid.__showGridBlob('",[b.grid.id,b.grid.store.getValue(a,"ID"),b.columnInfo.ID],"')"]});else c="(\u041d\u0435\u0442)";if(c)return style=["font-size:110%"],a.indent&&style.push("padding-left:"+10*a.indent+"px"),b.grid.view.boldProperty&&
"1"==b.grid.store.getValue(a,b.grid.view.boldProperty.Name)&&style.push("font-weight:800"),"TBooleanDomain"==b.columnInfo.domainInfo.handle&&("1"==c?c=b.columnInfo.domainInfo.TrueValue:"0"==c&&(c=b.columnInfo.domainInfo.FalseValue)),'\x3cspan style\x3d"'+style.join(";")+'"\x3e'+c+"\x3c/span\x3e"},_performAction:function(c){var a=this.selection.getSelected();if(c.routine)if(("1"==c.routine.SingleObject||"1"==c.routine.IsClassMethod)&&dojo.isArray(a)&&(a=a[0]),"TRoutine"==c.routine.handle)if("Refresh"==
c.routine.Name)this.refresh();else throw Error("Routine named "+c.routine.Name+" not handled yet.");else(new dojo.getObject(this.parametersDialogClass))({grid:this,rttiManager:this.rttiManager,routine:c.Routine,item:a}).show()},_buildMenu:function(c){var a=null;dojo.forEach(this.actions,dojo.hitch(this,function(b){if(b.Parent==c){a||(a=new dijit.Menu({}));var e=new dijit.MenuItem({label:b.Description,popup:this._buildMenu(b.ID),onClick:dojo.hitch(this,this._performAction,b)});b.menuItem=e;a.addChild(e);
"1"==b.Separated&&a.addChild(new dijit.MenuSeparator)}}));return a},startup:function(){this.inherited(arguments);var c=this;this.view=this.rttiManager.get("TView",this.viewID,this.viewName);this.viewName=this.view.Name;this.viewID=this.view.ID;this.view.BoldProperty&&(this.view.boldProperty=this.rttiManager.get("TProperty",this.view.BoldProperty,null));this.columns=dojo.filter(this.rttiManager.byHandle("TViewColumn"),function(h){return h.Master==c.viewID});this.classInfo=this.rttiManager.get("TClass",
this.view.ShownClass,null);this.conditions=dojo.filter(this.rttiManager.byHandle("TViewCondition"),function(h){return h.Master==c.viewID});this.conditions.length||(this.conditions=null);this.actions=[];this.actions=this.actions.concat(dojo.filter(this.rttiManager.byHandle("TAction"),function(h){return h.Master==c.viewID}));this.actions=this.actions.concat(dojo.filter(this.rttiManager.byHandle("TRoutineAction"),function(h){return h.Master==c.viewID}));this.actions.sort(function(h,l){return h.Position-
l.Position});dojo.forEach(this.actions,dojo.hitch(this,function(h){h.Routine&&(h.handle="TRoutineAction",h.routine=this.rttiManager.getRoutine(h.Routine))}));(this.menu=this._buildMenu(null))&&this.menu.bindDomNode(this.viewsNode);var a=[],b=0,e=null;dojo.forEach(this.columns,dojo.hitch(this,function(h){h.propertyInfo=this.rttiManager.get("TProperty",h.Property,null);h.domainInfo=this.rttiManager.getDomain(h.propertyInfo.Domain,null);h.sortDirection=this.rttiManager.get("TEnumerationItem",h.SortDirection,
null);h.Width&&(b++,e=a.length);var l=h.propertyInfo.Name;"TClassDomain"==h.domainInfo.handle?(h.domainInfo.showObjectInfoType=this.rttiManager.get("TEnumerationItem",h.domainInfo.ShowObjectInfoType,null),l="soName"==h.domainInfo.showObjectInfoType.Name?h.propertyInfo.Name+"$N":h.propertyInfo.Name+"$D"):"TEnumerationDomain"==h.domainInfo.handle&&(l="1"==h.domainInfo.ShowNames?h.propertyInfo.Name+"$N":h.propertyInfo.Name+"$D");this.sortInfo||("sdAscending"==h.sortDirection.Name?this.sortInfo=+(a.length+
1):"sdDescending"==h.sortDirection.Name&&(this.sortInfo=-(a.length+1)));a.push({hidden:!h.Width,name:h.Description,width:h.Width+"px",field:l,styles:"text-align:left;",headerStyles:"font-weight:800;font-size:120%;",filter:h.Filter,formatter:this.formatCell,columnInfo:h})}));1==b&&(a[e].width="100%",a[e].headerStyles="display:none;",this.indirectSelection=!1);var f=[],g=[];dojo.forEach(a,function(h){("1"==h.columnInfo.Fixed?f:g).push(h)});a=f.length?[{cells:f,noscroll:!0},{cells:g}]:[g];this.setStructure(a);
this.parentView?this.parentView.childViews.push(this):this.setStore(this._createStore())},_createStore:function(){var c=new mill.dataBrowser.browserGridData({_id:this.id,grid:this,rttiManager:this.rttiManager});dojo.mixin(c,{_gridOnStoreCompleteConnection:this.connect(c,"onComplete","onStoreComplete")});return c},_checkActions:function(){var c=this.selection.getSelected();dojo.isArray(c)&&(c=c[0]);dojo.forEach(this.actions,function(a){a.routine&&"0"==a.routine.IsClassMethod&&a.menuItem.attr("disabled",
!c)})},_selectOnComplete:!1,refresh:function(){var c=this.store;!this.parentView||this.parentView.selection.getSelected()[0]?(this.setStore(this._createStore()),this._selectOnComplete=!0):this.setStore(null);c&&(c._gridOnStoreCompleteConnection&&(this.disconnect(c._gridOnStoreCompleteConnection),c._gridOnStoreCompleteConnection=null),c.close())},_refreshChildViews:function(){dojo.forEach(this.childViews,function(c){c.refresh()})},onSelected:function(c){this.inherited(arguments);this._refreshChildViews();
this._checkActions()},onStoreComplete:function(c){c.length&&!this.selection.getSelectedCount()&&(this.selection.select(0),this.updateRow(0),this.onSelected(0));this._selectOnComplete?(this._selectOnComplete=!1,this.onSelected()):(this._resize(),this._checkActions())},onGetFilterStore:function(c){var a=null,b=null;a=[];a.push({ID:"",Description:"(\u0412\u0441\u0435)"});"1"!=c.columnInfo.domainInfo.Required&&(a.push({ID:"!*",Description:"(\u041f\u0443\u0441\u0442\u043e)"}),a.push({ID:"*",Description:"(\u041d\u0435 \u043f\u0443\u0441\u0442\u043e)"}));
var e=this.preDefinedConditions();context=[];if(this.parentView&&this.store){var f=this.store,g=this.parentView.selection.getSelected();dojo.isArray(g)&&(g=g[0]);dojo.mixin(context,{className:this.parentView.classInfo.ID,current:f.getIdentity(g)});context.push({name:"Current",domain:this.rttiManager.getDomain(null,"TObject domain").ID,value:context.current});dojo.forEach(this.parentView.columns,function(h){context.push({name:h.propertyInfo.Name,domain:h.domainInfo.ID,value:f.getValue(g,h.propertyInfo.Name)||
""})});e.push({part:1,name:this.viewID,special:16,context:context})}"TStringDomain"==c.columnInfo.domainInfo.handle?b=mill.data({className:this.classInfo.Name,handler:this.rttiManager.handle,clientFiltering:!0,request:e.concat([{part:0,name:"Description",value:'"'+c.columnInfo.propertyInfo.Name+'"'},{part:1,name:c.columnInfo.propertyInfo.Name,value:"*"},{part:3,name:c.columnInfo.propertyInfo.Name}])}):"TEnumerationDomain"==c.columnInfo.domainInfo.handle?b=mill.data({className:"TEnumerationItem",handler:this.rttiManager.handle,
clientFiltering:!0,request:[{part:0,name:"Description"},{part:1,name:"Master",value:c.columnInfo.domainInfo.ID},{part:2,name:"Position"}]}):"TClassDomain"==c.columnInfo.domainInfo.handle&&(b="soName"==c.columnInfo.domainInfo.showObjectInfoType.Name?"$N":"$D",c=e.concat([{part:1,name:c.columnInfo.propertyInfo.Name,value:"*"},{part:0,name:"Description",value:'"'+c.columnInfo.propertyInfo.Name+b+'"'},{part:3,name:c.columnInfo.propertyInfo.Name+b}]),b=mill.data({className:this.classInfo.Name,handler:this.rttiManager.handle,
clientFiltering:!0,request:c}));a=new dojo.data.ItemFileReadStore({data:{identifier:"ID",label:"Description",items:a}});return b?mill.dataUnion({stores:[a,b]}):a},onFilterChanged:function(c,a,b,e){c.columnInfo.Filter=c.filter;this.refresh()}});dojo.mixin(mill.dataBrowser.browserGrid,{__showGridBlob:function(c,a,b,e){var f=dijit.byId(c);if(f){var g=f.rttiManager.get("TViewColumn",b);if(g)if(g.domainInfo.blobSubtype||(g.domainInfo.blobSubtype=f.rttiManager.get("TEnumerationItem",g.domainInfo.BlobSubtype,
null)),"btXHTML"==g.domainInfo.blobSubtype.Name||"btHTML"==g.domainInfo.blobSubtype.Name)(new dijit.Dialog({content:dojo.i18n.substitute(dojo.cache("mill","showReferenceDialog.html",'\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"padding:10px;overflow:hidden"\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" extractContent\x3d"true" region\x3d"center" style\x3d"margin:0;padding:0;overflow:auto"\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"bottom" style\x3d"margin:0;padding:0;padding-top:10px"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"dijit.byNode(this.domNode.parentNode.parentNode.parentNode.parentNode).hide()"\x3e\x3cb\x3e ${close} \x3c/b\x3e\x3c/button\x3e\x3c/div\x3e\x3c/div\x3e'),
dojo.i18n.getLocalization("mill","resources")),draggable:!1,parseOnLoad:!0,title:g.Description,style:"width:90%;height:90%",onShow:function(){this.containerNode.children[0].style.height=dojo.contentBox(this.domNode).h-dojo.marginBox(this.titleBar).h-20+"px";dojo.query('[region\x3d"center"]',this.domNode).forEach(function(l){l=dijit.byNode(l);onload&&(l.onLoad=dojo.hitch(l,onload));l.attr("href","/"+f.rttiManager.handle+"/getblob?query\x3d"+mill._itemsToQuery({className:f.classInfo.Name,propName:g.propertyInfo.Name,
ID:a}))})},onHide:function(){setTimeout(dojo.hitch(this,this.destroyRecursive),1)}})).show();else if("btImage"==g.domainInfo.blobSubtype.Name){var h=g.domainInfo.Extension||".bmp";"newTab"==e?mill.downloadBlob({handler:handle,className:f.classInfo.Name,propName:g.propertyInfo.Name,ID:a,extension:h}):"download"==e?mill.downloadBlob({handler:handle,className:f.classInfo.Name,propName:g.propertyInfo.Name,ID:a,extension:h,fileName:"\u0421\u043a\u0430\u043d_\u0441\u043f\u0440\u0430\u0432\u043a\u0438"+
h}):(new dijit.Dialog({content:dojo.i18n.substitute(dojo.cache("mill","showImageDialog.html",'\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"padding:0px;padding-top:0;overflow:hidden"\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"top" style\x3d"height:30px;padding:0px"\x3e\x3cdiv dojoType\x3d"dijit.Toolbar"\x3e\x3cdiv dojoType\x3d"dijit.form.Button" iconClass\x3d"dijitEditorIcon dijitEditorIconFullScreen" onClick\x3d"mill.inscribeImage(dojo.query(\'img\', this.domNode.parentNode.parentNode.parentNode.parentNode.parentNode)[0])" showLabel\x3d"false"\x3e 100% \x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"padding:10px"\x3e\x3cdiv style\x3d"margin:0;overflow:auto;width:100%;height:100%"\x3e\x3cimg/\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"bottom" style\x3d"margin:0;padding:10px"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"dijit.byNode(this.domNode.parentNode.parentNode.parentNode.parentNode).hide()"\x3e\x3cb\x3e ${close} \x3c/b\x3e\x3c/button\x3e\x3c/div\x3e\x3c/div\x3e'),
dojo.i18n.getLocalization("mill","resources")),draggable:!1,parseOnLoad:!0,title:g.Description,style:"width:90%;height:90%",onShow:function(){this.containerNode.children[0].style.height=dojo.contentBox(this.domNode).h-dojo.marginBox(this.titleBar).h-20+"px";dojo.query('[region\x3d"center"]',this.domNode).forEach(function(l){var m=dijit.byNode(l);onload&&(m.onLoad=dojo.hitch(m,onload));dojo.query("*",l)[0].src="/"+f.rttiManager.handle+"/getblob"+h+"?query\x3d"+mill._itemsToQuery({className:f.classInfo.Name,
propName:g.propertyInfo.Name,ID:a})})},onHide:function(){setTimeout(dojo.hitch(this,this.destroyRecursive),1)}})).show()}}}});dojo.declare("dojox.grid.enhanced.plugins.dataBrowserColumnsFilter",dojox.grid.enhanced.plugins.millColumnsFilter,{name:"dataBrowserColumnsFilter"});dojox.grid.EnhancedGrid.registerPlugin(dojox.grid.enhanced.plugins.dataBrowserColumnsFilter)})},"mill/dataBrowser/blobAttachment":function(){define(["mill/imageList","mill/icon"],function(){window.mill||(mill={});mill.dataBrowser||
(mill.dataBrowser={});mill.dataBrowser.blobAttachmentMixin||(mill.dataBrowser.blobAttachmentMixin={});dojo.mixin(mill.dataBrowser.blobAttachmentMixin,{_imageList:"",imageList:function(){return this._imageList=this._imageList||new mill.imageList({url:dojo.moduleUrl("mill","theme/Buttons.js")})}});dojo.declare("mill.dataBrowser.blobAttachment",[dijit._Widget,dijit._Templated],{templateString:"\x3cdiv\x3e\x3ctable style\x3d'width:100%'\x3e\x3ctr\x3e\x3ctd\x3e\x3cspan style\x3d'font-style:italic'\x3e(\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435)\x3c/span\x3e\x3c/td\x3e\x3ctd style\x3d'white-space:nowrap;text-align:right' dojoattachpoint\x3d'iconsNode'\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e",
style:{padding:"3px"},_windowHref:"",_newTabHref:"",_downloadHref:"",hrefConstructor:"",parametersView:!1,postMixInProperties:function(){this.inherited(arguments);this._windowHref=this.hrefConstructor[0]+this.hrefConstructor[1].join("','")+this.hrefConstructor[2];this._newTabHref=this.hrefConstructor[0]+this.hrefConstructor[1].join("','")+"','newTab"+this.hrefConstructor[2];this._downloadHref=this.hrefConstructor[0]+this.hrefConstructor[1].join("','")+"','download"+this.hrefConstructor[2];this.parametersView&&
(this.style=dojo.delegate(mill.dataBrowser.blobAttachment.prototype.style,{margin:"2px 0",background:"#efefef",border:"solid 1px #d3d3d3","border-radius":"2px"}))},buildRendering:function(){this.inherited(arguments);var c={padding:"0 2px",margin:"0 1px",border:"solid 1px #5767a3","border-radius":"2px",background:"abb8e3",background:"-webkit-gradient(linear, left top, left bottom, from(#dfe5fe), to(#abb8e3))",background:"-moz-linear-gradient(top, #dfe5fe, #abb8e3)",background:"linear-gradient(to bottom, #dfe5fe, #abb8e3)",
filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr\x3d'#dfe5fe', endColorstr\x3d'#abb8e3', GradientType\x3d0)"};(new mill.icon({baseClass:mill.icon.prototype.baseClass+" dijitInline",imageList:mill.dataBrowser.blobAttachmentMixin.imageList(),imageIndex:"COpenButtonIndex"},dojo.create("a",{title:"\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435",href:this._windowHref,style:dojo.isFF?dojo.delegate(c,{padding:"0 1px 0 2px"}):
c},this.iconsNode).appendChild(document.createElement("span")))).startup();(new mill.icon({baseClass:mill.icon.prototype.baseClass+" dijitInline",imageList:mill.dataBrowser.blobAttachmentMixin.imageList(),imageIndex:"CLoadButtonIndex"},dojo.create("a",{title:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0432 \u043d\u043e\u0432\u043e\u0439 \u0432\u043a\u043b\u0430\u0434\u043a\u0435",href:this._newTabHref,style:c},this.iconsNode).appendChild(document.createElement("span")))).startup();
(new mill.icon({baseClass:mill.icon.prototype.baseClass+" dijitInline",imageList:mill.dataBrowser.blobAttachmentMixin.imageList(),imageIndex:"CSaveButtonIndex"},dojo.create("a",{title:"\u0421\u043a\u0430\u0447\u0430\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435",href:this._downloadHref,style:c},this.iconsNode).appendChild(document.createElement("span")))).startup()}})})},"mill/queryBuilder/parametersView":function(){define("dojo/DeferredList dijit/TitlePane dijit/form/ValidationTextBox dijit/form/CheckBox dijit/form/SimpleTextarea dijit/form/Textarea mill/mill".split(" "),
function(){window.mill||(mill={});mill.queryBuilder||(mill.queryBuilder={});dojo.declare("mill.queryBuilder.parametersView",[],{items:null,dialog:null,useTabs:!1,title:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438",buttonsPaneContent:dojo.cache("mill","dataBrowser/buttonsPane.html",'\x3cdiv align\x3d"right"\x3e\x3cspan dojoType\x3d"dijit.form.Button" onClick\x3d"dijit.byNode(this.domNode.parentNode.parentNode.parentNode.parentNode.parentNode)._perform()"\x3e\x3cb\x3eOK\x3c/b\x3e\x3c/span\x3e\x3cspan dojoType\x3d"dijit.form.Button" onClick\x3d"dijit.byNode(this.domNode.parentNode.parentNode.parentNode.parentNode.parentNode).hide()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/span\x3e\x3c/div\x3e'),
constructor:function(c){c&&dojo.mixin(this,c)},show:function(){var c=this.useTabs?new dijit.layout.TabContainer({region:"center"}):new dijit.layout.BorderContainer({design:"sidebar",region:"center"}),a=[],b=function(m,r){var n=null;dojo.forEach(a,function(p){p.caption==m&&(n=p)});n||(n={caption:m,groups:[]},a.push(n));var k=null;dojo.forEach(n.groups,function(p){p.caption==r&&(k=p)});k||(k={caption:r,items:[]},n.groups.push(k));return k};dojo.forEach(this.items,function(m){b(m.Tab,m.Group).items.push(m)});
var e=!1;dojo.forEach(a,function(m,r){var n=!1,k=new dijit.layout.ContentPane({splitter:!0,style:"overflow: auto",title:m.caption});dojo.forEach(m.groups,function(p){var q=!1,u=new dijit.TitlePane({toggleable:!1,title:p.caption,style:"margin-bottom:8px;"},k.containerNode.appendChild(document.createElement("div")));p.caption||(dojo.style(u.titleBarNode,{display:"none"}),dojo.style(u.hideNode,{borderTop:"1px solid #B5BCC7"}));dojo.style(u.containerNode,{padding:"2px"});var y=document.createElement("table");
y.width="100%";dojo.forEach(p.items,function(v){var t=y.insertRow(-1);t.insertCell(-1).appendChild(document.createTextNode(v.Caption+":"));t=t.insertCell(-1);v.control=new dijit.form.ValidationTextBox({style:"width:100%",value:v.Value},t.appendChild(document.createElement("span")));e=n=q=!0});q?u.attr("content",y):u.domNode.parentNode.removeChild(u.domNode)});n&&c.addChild(k)});if(!this.useTabs){var f=c.getChildren();dojo.forEach(f,function(m,r){r?m.attr("region","right"):m.attr("region","center");
m.domNode.style.width=100/f.length+"%"})}if(e){var g=new dijit.Dialog({title:this.title}),h=new dijit.layout.BorderContainer({design:"headline",style:"width:100%;height:100%"}),l=new dijit.layout.ContentPane({region:"bottom",splitter:!1,style:"padding:0;border:0 none",content:this.buttonsPaneContent});h.addChild(c);h.addChild(l);l=dojo.coords(dojo.body());dojo.style(g.containerNode,{width:.7*l.w+"px",height:.7*l.h+"px",padding:0});g.containerNode.appendChild(h.domNode);dojo.mixin(g,{_perform:dojo.hitch(this,
function(){g.hide();this.perform(this)})});this.dialog=g;g.startup();g.show().always(function(){var m=1E6;dojo.forEach(c.getChildren(),function(r){var n=r.containerNode.childNodes;n=dojo.coords(dijit.byNode(n[n.length-1]).hideNode);r=dojo.coords(r.containerNode).h-(n.t+n.h);m>r-18&&(m=r-18)});0<m&&(g.containerNode.style.height=dojo.coords(g.containerNode).h-m+"px",g._size(),g._position(),h.layout())})}else this.perform(this)},perform:function(){}})})},"mill/queryBuilder":function(){define(["mill/mill",
"mill/queryBuilder/provider"],function(){window.mill||(mill={});mill.queryBuilder||(mill.queryBuilder={})})},"mill/jssupport/jsApplication/controls/_CustomControlMixin":function(){define(["dojo/_base/declare","mill/jssupport/app"],function(c,a){return mill.registerAlias("app.view._ControlMixin",c("mill.jssupport.jsApplication.controls._CustomControlMixin",null,{fullWidth:null,_setFullWidthAttr:function(b){this.fullWidth=b;(b=window.app.getControlField(this,null))&&b.set("fullWidth",this.fullWidth)},
focus:function(){}}))})},"mill/uploader":function(){define("dojo/Deferred dojo/DeferredList dijit/form/_FormWidget dijit/TooltipDialog dijit/popup mill/mill dojo/i18n!./nls/resources dojo/text!./uploader.html".split(" "),function(c,a,b,e,f,g,h,l){return dojo.declare("mill.uploader",[b],{templateString:l,scrollOnFocus:!1,multiple:null,accept:"",blockSize:null,sockets:null,preventProgressText:null,toolTipTimeout:null,onUpload:new Function,onCancel:new Function,onChange:new Function,popupNode:null,_setNameAttr:"fileInput",
_defaultBlockSize:262144,_defaultSockets:4,_defaultToolTipTimeout:0,_popupWidget:null,_closeToolTipTimeout:null,_bytesToSend:null,_bytesSent:null,_cancelled:!1,_iconClickConnection:null,postMixInProperties:function(){this.inherited(arguments);this._popupWidget=new dijit.TooltipDialog;this._popupWidget.startup()},_setMultipleAttr:function(m){(this.multiple=m)?dojo.setAttr(this.fileInput,"multiple","true"):dojo.removeAttr(this.fileInput,"multiple")},_setAcceptAttr:function(m){dojo.setAttr(this.fileInput,
"accept",m)},_getBlockSizeAttr:function(){return parseInt(this.blockSize)||this._defaultBlockSize},_setBlockSizeAttr:function(m){this.blockSize=parseInt(m)||this._defaultBlockSize},_getSocketsAttr:function(){return parseInt(this.sockets)||this._defaultSockets},_setSocketsAttr:function(m){this.sockets=parseInt(m)||this._defaultSockets},_getToolTipTimeoutAttr:function(){return parseInt(this.toolTipTimeout)||this._defaultToolTipTimeout},_setToolTipTimeoutAttr:function(m){this.toolTipTimeout=parseInt(m)||
this._defaultToolTipTimeout},buildRendering:function(){this.inherited(arguments);var m=dojo.create("span",{className:"dijitDialogCloseIcon",style:{visibility:"hidden"}},this.domNode);setTimeout(function(){dojo.destroy(m)},100)},_getParameterName:function(m){return this.attr("name")+(0<m?"."+m:"")},_createProgressCloseIcon:function(){var m=dojo.create("div",{title:h.upCancelUploading,style:{display:"inline-block",verticalAlign:"top",padding:"0 10px"}});dojo.create("span",{className:"dijitDialogCloseIcon"},
m);this._iconClickConnection&&dojo.disconnect(this._iconClickConnection);this._iconClickConnection=dojo.connect(m,"onmousedown",dojo.hitch(this,this._onCancelButton));return m},_setProgressText:function(m,r){if(!this.preventProgressText){var n=h[m]||m;if(this._popupWidget&&n){var k=dojo.create("div");dojo.create("div",{innerHTML:n,style:{display:"inline-block",padding:"3px 0"}},k);r&&dojo.place(this._createProgressCloseIcon(),k,"last");this._popupWidget.set("content",k);this._closeToolTipTimeout&&
clearTimeout(this._closeToolTipTimeout);this._closeToolTipTimeout=null;dijit.popup.open({popup:this._popupWidget,around:this.popupNode||this.fileInput,orient:["after-centered","before-centered","above","below"]})}}},_closePopup:function(){this._closeToolTipTimeout&&clearTimeout(this._closeToolTipTimeout);this._closeToolTipTimeout=null;this._iconClickConnection&&dojo.disconnect(this._iconClickConnection);dijit.popup.close(this._popupWidget)},_clearSession:function(){for(var m=new c,r={},n=0;n<this.fileInput.files.length+
1;n++)r[this._getParameterName(n)]="";dojo.xhrGet({url:"/.system/session.xml",method:"GET",handleAs:"xml",sync:!1,headers:{"Disable-Basic-Auth":"yes"},content:r}).then(m.resolve,m.reject);return m},_prepareUpload:function(){this._setProgressText("upUploadingAwaiting");this._bytesSent=this._bytesToSend=0;this._cancelled=!1;var m=new c;this._clearSession().then(m.resolve,m.reject);return m.promise},_onUpload:function(){this.attr("toolTipTimeout")?(this._setProgressText("upUploaded"),this._closeToolTipTimeout=
setTimeout(dojo.hitch(this,function(){this._closeToolTipTimeout=null;dijit.popup.close(this._popupWidget)}),this.attr("toolTipTimeout"))):this._closePopup();this.onUpload()},_onCancel:function(){this._closePopup();this.onCancel()},_onInputFocus:function(){this._closePopup()},_onCancelButton:function(){this._cancelled=!0},_onChange:function(){this.onChange()},getSelectedFiles:function(){return dojo.map(this.fileInput.files,function(m){return{fileName:m.name,fileSize:m.size}})},_sendBlock:function(m,
r){r=r||new dojo.Deferred;dojo.xhrPost({url:mill.getRequestUrl(".system","session.xml"),method:"POST",handleAs:"xml",sync:!1,headers:{"Disable-Basic-Auth":"yes","Content-Type":"application/x-overlay","Content-Disposition":'attachment; name\x3d"'+this._getParameterName(m.idx)+'"; fileName\x3d"'+m.fileName+'"',"Content-Range":"bytes "+m.rangeStart+"-"+m.rangeEnd+"/"+m.fileSize},postData:m.block,load:dojo.hitch(this,function(n){if(mill.parseErrorMessage(n))this._sendBlock(m,r);else{this._bytesSent+=
m.blockSize;var k=this._bytesSent/this._bytesToSend*100;100<k&&(k=99);this._setProgressText(h.upUploading+" "+k.toFixed()+"%",!0);m.block=null;r.resolve()}return n}),error:dojo.hitch(this,function(n){this._sendBlock(m,r);return n})});return r},showOpenDialog:function(){this.fileInput.click()},upload:function(){var m=new dojo.Deferred;if(!this.fileInput.value)return this._clearSession().then(m.resolve),m;var r=this.focusNode.disabled;r||(this.focusNode.disabled=!0);var n=this.get("sockets")||this._defaultSockets;
this._prepareUpload().then(dojo.hitch(this,function(){var k=[];dojo.forEach(this.fileInput.files,dojo.hitch(this,function(u,y){for(var v=this.get("blockSize")||this._defaultBlockSize,t=encodeURI(u.name),x=u.size,z=x,A=0;0<z;){v>z&&(v=z);this._bytesToSend+=v;var E=u.slice(A,A+v);k.push({idx:y,fileName:t,fileSize:x,rangeStart:A,rangeEnd:A+v,blockSize:v,block:E});A+=v;z-=v}}));if(!k.length)return m.resolve(),m;n>k.length&&(n=k.length);for(var p=dojo.hitch(this,function(){if(this._cancelled)r||(this.focusNode.disabled=
!1),this._onCancel(),m.isRejected()||m.reject();else{var u=k.shift();u?this._sendBlock(u,null).then(p):--n||(r||(this.focusNode.disabled=!1),this._onUpload(),m.resolve())}}),q=0;q<n;q++)p()}),function(k){alert(k.message)});return m}})})},"mill/animatedMill":function(){define(["mill/mill"],function(){window.mill||(mill={});dojo.declare("mill.animatedMill",[dijit._Widget,dijit._Templated],{templateString:dojo.cache("mill","animatedMill.html",'\x3cdiv class\x3d"animatedMill" xmlns:v\x3d"urn:schemas-microsoft-com:vml"\x3e\x3cdiv class\x3d"animatedMillDial" dojoAttachPoint\x3d"dialNode" style\x3d"display:none"\x3e\x3ccanvas dojoAttachPoint\x3d"canvasNode" height\x3d"156" style\x3d"position:absolute;left:8px;top:-8;width:192px;height:156px" width\x3d"192"\x3e\x3c/canvas\x3e\x3ccanvas dojoAttachPoint\x3d"traceCanvasNode" height\x3d"156" style\x3d"position:absolute;left:8px;top:-8;width:192px;height:156px" width\x3d"192"\x3e\x3c/canvas\x3e\x3cv:image coordsize\x3d"21600,21600" dojoAttachPoint\x3d"vmlNode" style\x3d"left: 0px; width: 192px; position: absolute; top: 0px; height: 156px"\x3e\x3c/v:image\x3e\x3cv:image coordsize\x3d"21600,21600" dojoAttachPoint\x3d"vmlTraceNode" style\x3d"display:none; left: 0px; width: 192px; position: absolute; top: 0px; height: 156px"\x3e\x3c/v:image\x3e\x3c/div\x3e\x3cdiv class\x3d"animatedMillContent" dojoAttachPoint\x3d"containerNode"\x3e\x3c/div\x3e\x3c/div\x3e'),
attributeMap:dojo.delegate(dijit._WidgetBase,{active:""}),active:!0,_setActiveAttr:function(c){(this.active=c)&&!this._tickInterval&&(this._tickInterval=setInterval(dojo.hitch(this,this._tick),30));!this.active&&this._tickInterval&&clearInterval(this._tickInterval)},_Angle:0,_Increment:.1,_image:null,_traceImage:null,_context:null,_traceContext:null,_canvasCoords:null,prepareCanvas:function(){this._context=this.canvasNode.getContext("2d");this._traceContext=this.traceCanvasNode.getContext("2d");this._image=
new Image;this._image.onload=dojo.hitch(this,function(){this.dialNode.style.display=""});this._image.src=dojo.moduleUrl("mill","animatedMillWings.png");this._traceImage=new Image;this._traceImage.src=dojo.moduleUrl("mill","animatedMillTrace.png")},rotateVML:function(){var c=Math.sin(this._Angle),a=Math.cos(this._Angle),b=this._canvasCoords.w/2-85,e=this._canvasCoords.h/2-74;dojo.style(this.vmlNode,{rotation:Math.round(180*this._Angle/Math.PI)+"deg",left:b*a-e*c-10+"px",top:b*c+e*a-7+"px"});9==dojo.isIE&&
dojo.style(this.vmlTraceNode,{rotation:Math.round(180*this._Angle/Math.PI)+"deg",left:b*a-e*c-10+"px",top:b*c+e*a-7+"px",filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity\x3d"+100*(.1+c/2)+")"});this.dialNode.style.display=""},prepareVML:function(){this.vmlNode.src=dojo.moduleUrl("mill","animatedMillWings.png");9<=dojo.isIE&&(this.vmlTraceNode.src=dojo.moduleUrl("mill","animatedMillTrace.png"),this.vmlTraceNode.style.display="")},rotateCanvas:function(){var c=Math.sin(this._Angle),a=Math.cos(this._Angle);
dojo.forEach([{c:this._context,i:this._image},{c:this._traceContext,i:this._traceImage}],dojo.hitch(this,function(b){b.c.clearRect(2*-this._canvasCoords.w,2*-this._canvasCoords.h,4*this._canvasCoords.w,4*this._canvasCoords.h);b.c.rotate(this._Increment);b.c.drawImage(b.i,85*a+74*c-85,-85*c+74*a-74,this._canvasCoords.w,this._canvasCoords.h)}));this.traceCanvasNode.style.opacity=.1+c/2},_tickInterval:null,_tick:function(){this._Angle+=this._Increment;this._Angle>2*Math.PI&&(this._Angle-=2*Math.PI);
this.canvasNode?this.rotateCanvas():this.vmlNode&&this.rotateVML()},startup:function(){this.inherited(arguments);this._canvasCoords={h:156,w:192};this.canvasNode?(this.prepareCanvas(),this.rotateCanvas()):this.vmlNode&&(this.prepareVML(),this.rotateVML());this.active&&(this._tickInterval=setInterval(dojo.hitch(this,this._tick),45))}})})},"mill/editorLinks":function(){define(["dojo/_base/declare","dojo/_base/lang","dijit/_editor/_Plugin","dijit/form/Button","mill/mill"],function(c,a,b,e,f){var g=c("dijit._editor.plugins.editorLinks",
b,{_initButton:function(){var h=this.editor;this.button=new e({label:dojo.i18n.getLocalization("mill","resources").recognizeLinks,ownerDocument:h.ownerDocument,dir:h.dir,lang:h.lang,showLabel:!1,iconClass:this.iconClassPrefix+" CSearchForLinksSmallImageIndex",tabIndex:"-1",onClick:a.hitch(this,"_parseLinks")})},setEditor:function(h){this.editor=h;this._initButton()},updateState:function(){this.button.set("disabled",this.get("disabled"))},_parseLinks:function(){var h=this.editor.get("value"),l=f.parseUrls(h);
h!=l&&(this.editor.beginEditing(),this.editor.set("value",l),this.editor.endEditing());this.editor.focus()}});b.registry.editorLinks=b.registry.editorlinks=function(h){return new g({})};return g})},"mill/jssupport/layout/layoutContent/_LayoutContent":function(){define(["dojo/_base/declare","dijit/_WidgetBase","dijit/_TemplatedMixin","dijit/_WidgetsInTemplateMixin"],function(c,a,b,e){return mill.registerAlias("office.layout._LayoutContent",c("mill.jssupport.layout.layoutContent._LayoutContent",[a,
b,e],{baseClass:"layoutContent"}))})},"mill/jssupport/jsApplication/PersonalCabinetApp":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/fx dojo/fx dojo/topic dojo/dom-construct dojo/dom-style dojo/hash dojo/router dojo/when dijit/registry mill/jssupport/jsApplication/CabinetApp mill/jssupport/base mill/jssupport/app mill/jssupport/session mill/jssupport/TranslatableNode mill/jssupport/Announcement mill/jssupport/layout/LayoutContainer mill/jssupport/layout/GridLayout mill/jssupport/layout/GridLayoutColumn mill/jssupport/layout/layoutMenu/MobileMenu mill/jssupport/layout/layoutMenu/LayoutMenu mill/jssupport/layout/carouselView/CarouselView mill/jssupport/layout/layoutContent/ExternalContent mill/jssupport/layout/layoutContent/InternalContent mill/jssupport/layout/layoutContent/AuthorizationForm mill/jssupport/layout/layoutContent/RegistrationForm mill/jssupport/layout/layoutContent/RemoteUserPane mill/jssupport/layout/layoutContent/PersonInfoPane".split(" "),
function(c,a,b,e,f,g,h,l,m,r,n,k,p,q,u,y){return mill.registerAlias("app.PersonalCabinetApp",c("mill.jssupport.jsApplication.PersonalCabinetApp",p,{autoSignIn:!0,authFormConstructorName:"office.AuthorizationForm",externalRoutes:null,uriRoute:null,anonymousBatchItems:function(){var v=this.inherited(arguments);this.controlSets.forEach(function(t){v.push({queryIdent:t.preLoadIdent,className:"TJSControlSet",methodName:"PreLoad",params:{Name:t.controlSetName}});"larExternal"===t.layoutActionRegion&&v.push({queryIdent:t.loadDataIdent,
className:"TJSControlSet",methodName:"Load",params:{Name:t.controlSetName,CabinetLocale:q.locale.toUpperCase()}})});return v},handlerBatchItems:function(){var v=this.inherited(arguments);v=v.concat([{queryIdent:"internalLayoutActions",className:"TJSApplication",methodName:"BuildLayoutActions",params:{ID:this.appID,RemoteUser:function(){return y.getRemoteUserID()}}}]);this.controlSets.filter(function(t){return!t.layoutActionRegion||"larInternal"===t.layoutActionRegion}).forEach(function(t){v.push({queryIdent:t.loadDataIdent?
t.loadDataIdent:t.controlSetName+"Load",className:"TJSControlSet",methodName:"Load",params:{Name:t.controlSetName,CabinetLocale:q.locale.toUpperCase()}})});return v},layoutActions:function(){var v=[];this.authFormConstructorName&&v.push({node:"\x3cdiv id\x3d'authorizationForm' data-dojo-type\x3d'"+this.authFormConstructorName+"'\x3e\x3c/div\x3e",anchor:"#signin",text:"Office.SignIn",region:"external"});var t=u.anonymousDataByIdent("layoutActions")[0];t&&Object.prototype.hasOwnProperty.call(t,"LayoutActions")&&
(b.forEach(t.LayoutActions,function(x){if(Object.prototype.hasOwnProperty.call(x,"text")){var z=x.text;q.getLocalization(z)||(x.text=u.combinedTranslationIdent(z))}}),v=v.concat(t.LayoutActions));return v},initCarouselView:function(v){for(var t=0;t<v.length;t+=1)v[t].anchor&&/^#/.test(v[t].anchor)?g.publish("office.layout.CarouselView.registerItem",v[t]):q.registerMenuItem(v[t])},initLayout:function(){this.initCarouselView(this.layoutActions())},initRouter:function(){this.externalRoutes=a.clone(r._routes);
this.uriRoute=m();var v=r._routes.reduce(function(t,x,z){z.route.test(t)&&(x=t);return x}.bind(null,this.uriRoute),"signin");r.startup();r.go(v)},getInternalInitialRoute:function(){function v(z,A){return z.reduce(function(E,I,H){H.route.test(E)&&(I=E);return I}.bind(null,A),"")}var t=this.externalRoutes.map(function(z){return String(z.route)}),x=a.clone(r._routes).filter(function(z){return 0>t.indexOf(String(z.route))});return v(x,this.uriRoute)||v(x,mill.session.values.savedRoute)},onAppInit:function(){var v=
k.byId("main"),t=k.byId("external"),x=k.byId("mobileMenu");v=[v.domNode];x&&v.push(x.domNode);this.initControlSets("larExternal");h.destroy("loading");l.set(t.domNode,{display:"block"});v=b.map(v,function(z){return e.fadeIn(c(null,{node:z})())});f.chain(v).play();this.autoSignIn&&this.signin(null,k.byId("authorizationForm"))},initControlSets:function(v){v?a.isArray(this.controlSets)&&this.controlSets.filter(function(t){return t.layoutActionRegion===v}).forEach(function(t){(t=k.byId(t.containerId))&&
t.init()}):q.logError('initControlSets: argument "layoutActionRegion" is required.')},startup:function(){this.inherited(arguments);this.initLayout();this.initRouter();this.onAppInit()},logon:function(){var v=this.inherited(arguments);n(v,function(){var t=u.handlerDataByIdent("internalLayoutActions")[0];t&&Object.prototype.hasOwnProperty.call(t,"LayoutActions")&&(b.forEach(t.LayoutActions,function(A){if(Object.prototype.hasOwnProperty.call(A,"text")){var E=A.text;q.getLocalization(E)||(A.text=u.combinedTranslationIdent(E))}}),
this.initCarouselView(t.LayoutActions));var x=k.byId("external"),z=k.byId("internal");g.subscribe("/dojo/hashchange",function(A){var E=r._routes.reduce(function(I,H){H.route.test(A)&&(I=A);return I},"");E&&mill.session.setValue("savedRoute",E)});e.fadeOut(c(null,{node:x.domNode,onEnd:a.hitch(this,function(){x.destroyRecursive();l.set(z.domNode,{display:"block"});var A=r._routes.reduce(function(E,I,H){H.route.test(E)&&(I=E);return I}.bind(null,this.getInternalInitialRoute()),"startup");r.go(A);(A=
k.byId("mobileMenu"))&&A.set("state","internal-state")})})()).play();this.initControlSets("larInternal");g.publish("app.onLogon",null)}.bind(this));return v}}))})},"mill/jssupport/jsApplication/CabinetApp":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/dom-style dojo/when mill/jssupport/jsApplication/BaseApplication mill/jssupport/base mill/jssupport/app mill/jssupport/session mill/mill".split(" "),function(c,a,b,e,f,g,h,l,m,r){return r.registerAlias("app.CabinetApp",
c("mill.jssupport.jsApplication.CabinetApp",g,{registerHandler:null,registrationClass:null,accessCategory:null,postCreate:function(){this.inherited(arguments);l.registerHandler=this.registerHandler;l.handlerDataByIdent=this.handlerDataByIdent.bind(this);l.getLayoutActionTitleIdent=this.getLayoutActionTitleIdent.bind(this);l.signin=this.signin.bind(this)},getLayoutActionTitleIdent:function(n){var k="";n=this.anonymousDataByIdent(n)[0];if(!n)return k;Object.prototype.hasOwnProperty.call(n,"description")&&
(k=n.description);return Object.prototype.hasOwnProperty.call(n,"translationIdent")?(n=this.combinedTranslationIdent(n.translationIdent),h.getLocalization(n)?n:k):k},translationPattern:function(){return this.inherited(arguments).concat(["Office.*","IntCabinet.*"])},handlerBatchItems:function(){var n=this.inherited(arguments);null===this.controlSets&&h.logError("Property 'ControlSets' of the application is null.");b.forEach(this.controlSets||[],function(k){var p=this.anonymousDataByIdent(k.preLoadIdent)[0];
p?Object.prototype.hasOwnProperty.call(p,"subsetNames")&&(n=n.concat(b.map(p.subsetNames.split(","),function(q){return{queryIdent:q+"Load",className:"TJSControlSubset",methodName:"Load",params:{ControlSetName:k.controlSetName,Name:q}}}))):h.logError('queryIdent "'+k.preLoadIdent+'" not found by anonymousDataByIdent function. ')},this);return n},handlerDataByIdent:function(n,k){return this._dataByIdent(null,n,k)},logon:function(){return this.queryHandlerData()},disabledSignInForm:function(n,k){n&&
function(){this.getFormWidget("password").focus();this.setWidgetAttr("login","disabled",k);this.setWidgetAttr("password","disabled",k);this.submitButton.set("disabled",k);var p=this.progressNode.domNode||this.progressNode;!0===k?(this.set("submitButtonLabel",this.submittingApplicationLabel),e.set(this.submitButton.domNode,{display:"none"}),e.set(p,{display:"block"})):(this.set("submitButtonLabel",this.submitApplicationLabel),e.set(p,{display:"none"}),e.set(this.submitButton.domNode,{display:"table"}))}.call(n)},
createErrorMessage:function(n,k,p){n&&n._announcementWidget&&(n=n._announcementWidget,n.set("text",k),n.set("icon",p),n.set("color","red"),e.set(n.domNode,{opacity:1}))},createSuccessMessage:function(n,k,p){n&&n._announcementWidget&&(n=n._announcementWidget,n.set("text",k),n.set("icon","smile"),n.set("color",p),e.set(n.domNode,{opacity:1}))},createInfoMessage:function(n,k){if(n&&n._announcementWidget){var p=n._announcementWidget;p.set("text",k);p.set("icon","info");p.set("color","blue");e.set(p.domNode,
{opacity:1})}},signin:function(n,k){null!==n&&a.isObject(n)?(this.disabledSignInForm(k,!0),f(m.logout(!this.sync),function(){f(m.load(n.login,n.password,this.handler,!this.sync,{RoistatCategoryName:n.RoistatCategoryName,RoistatCounter:n.RoistatCounter}),function(){m.sysInfo?m.hasRemoteUser()&&m.checkRemoteUserAccessCategory(this.accessCategory)?(k&&this.createSuccessMessage(k,"Office.LoadingData","blue"),this.logon()):k&&(this.disabledSignInForm(k,!1),this.createErrorMessage(k,"Office.IncorrectLoginOrPassword",
"sad")):k&&(this.disabledSignInForm(k,!1),this.createErrorMessage(k,"Office.IncorrectLoginOrPassword","sad"))}.bind(this))}.bind(this))):m.hasRemoteUser()&&m.checkRemoteUserAccessCategory(this.accessCategory)&&(k&&(a.isObject(r.session.values)&&Object.prototype.hasOwnProperty.call(r.session.values,"UserName")&&(k.setWidgetAttr("login","value",r.session.values.UserName),k.setWidgetAttr("password","value",r.session.values.UserName)),this.disabledSignInForm(k,!0),this.createSuccessMessage(k,"Office.LoadingData",
"blue")),this.logon())}}))})},"url:mill/jssupport/layout/layoutContent/reportToModeratorForm.html":"\x3cdiv\x3e\x3cdiv data-dojo-type\x3d\"office.form.TextField\" data-dojo-props\x3d\"text: 'Office.FullName;:', required: true, name: 'fullname'\"\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d\"office.form.TextField\" data-dojo-props\x3d\"text: 'Office.Email;:', required: true, lowercase: true, name: 'email'\" data-dojo-attach-point\x3d\"emailField\"\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d\"office.form.TextField\" data-dojo-props\x3d\"text: 'Office.EmailConfirm;:', required: true, lowercase: true, invalidMessage: 'Office.InvalidEmailConfirm', name: 'emailConfirm'\"\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d\"office.form.TextField\" data-dojo-props\x3d\"text: 'Office.ContactPhone;:', name: 'phone'\"\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d\"office.form.TextField\" data-dojo-props\x3d\"text: 'Office.MessageSubject;:', name: 'subject', maxLength: 128\"\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d\"office.form.TextAreaField\" data-dojo-props\x3d\"text: 'Office.MessageBody;:', required: true, name: 'body'\"\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d\"office.form.FileAttachmentField\" data-dojo-props\x3d\"text: 'Office.AttachFile;:', accept: 'image/bmp,image/jpeg,image/png,image/tiff,application/pdf', name: 'datafile'\"\x3e\x3c/div\x3e\x3c/div\x3e",
"url:mill/jssupport/layout/layoutContent/authorizationForm.html":'\x3cdiv\x3e\x3cdiv data-dojo-type\x3d"office.form.TextField" data-testid\x3d"login-username" data-dojo-props\x3d"name: \'login\', placeHolder: \'Office.Login\', required: true, uppercase: true, icon: \'icon-set-user\'"\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.form.TextField" data-testid\x3d"login-password" data-dojo-props\x3d"type: \'password\', name: \'password\', placeHolder: \'Office.Password\', required: true, icon: \'icon-set-lock\'"\x3e\x3c/div\x3e\x3cdiv class\x3d"officeFormField"\x3e\x3cdiv class\x3d"officeAuthorizationSpinner" data-dojo-attach-point\x3d"progressNode" style\x3d"display:none"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e',
"url:mill/jssupport/layout/layoutContent/registrationForm.html":'\x3cdiv\x3e\x3cdiv data-dojo-type\x3d"office.form.TextField" data-dojo-props\x3d"text: \'Office.LastName;:\', required: true, name: \'lastname\'"\x3e\x3cdiv data-dojo-attach-point\x3d"lastNameTooltip"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.form.TextField" data-dojo-props\x3d"text: \'Office.FirstName;:\', required: true, name: \'firstname\'"\x3e\x3cdiv data-dojo-attach-point\x3d"firstNameTooltip"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.form.TextField" data-dojo-props\x3d"text: \'Office.MiddleName;:\', required: true, name: \'middlename\'"\x3e\x3cdiv data-dojo-attach-point\x3d"middleNameTooltip"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.form.TextField" data-dojo-props\x3d"text: \'Office.BirthDate;:\', required: true, name: \'birthdate\', invalidMessage: \'Office.InvalidDate\'"\x3e\x3cdiv data-dojo-attach-point\x3d"birthDateNameTooltip"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.form.FilteringSelectField" data-dojo-props\x3d"icon: \'icon-set-man-woman\', text: \'Office.Gender;:\', required: true, name: \'sex\'"\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.form.TextField" data-dojo-props\x3d"text: \'Office.Email;:\', required: true, name: \'email\', lowercase: true" data-dojo-attach-point\x3d"emailField"\x3e\x3cdiv data-dojo-attach-point\x3d"email1NameTooltip"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.form.TextField" data-dojo-props\x3d"text: \'Office.EmailConfirm;:\', required: true, name: \'emailConfirm\', lowercase: true, invalidMessage: \'Office.InvalidEmailConfirm\'"\x3e\x3cdiv data-dojo-attach-point\x3d"email2NameTooltip"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.form.TextField" data-dojo-props\x3d"text: \'Office.ContactPhone;:\', required: true, name: \'phone\'"\x3e\x3cdiv data-dojo-type\x3d"office.TranslatableNode" data-dojo-props\x3d"text: \'Office.RequirePhoneCode\'"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.form.TextField" data-dojo-props\x3d"text: \'Office.SecondeContactPhone;:\', name: \'secondphone\'"\x3e\x3cdiv data-dojo-type\x3d"office.TranslatableNode" data-dojo-props\x3d"text: \'Office.RequirePhoneCode\'"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.form.TextField" data-dojo-props\x3d"text: \'Office.HomePhone;:\', name: \'homephone\'"\x3e\x3cdiv data-dojo-type\x3d"office.TranslatableNode" data-dojo-props\x3d"text: \'Office.RequirePhoneCode\'"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.form.CheckBoxField" data-dojo-attach-point\x3d"personalDataConfirmWidget" data-dojo-props\x3d"text: \'Office.PersonalDataConfirm\', doubleColumn: false, required: true, name: \'confirm1\'"\x3e\x3c/div\x3e\x3cdiv data-dojo-attach-point\x3d"registrationPDAddConfirmNode"\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.form.CheckBoxField" data-dojo-attach-point\x3d"informationAccuracyConfirmWidget" data-dojo-props\x3d"text: \'Office.InformationAccuracyConfirm\', doubleColumn: false, required: true, name: \'confirm2\'"\x3e\x3c/div\x3e\x3c/div\x3e',
"url:mill/jssupport/layout/layoutContent/personInfoPane.html":'\x3cdiv\x3e\x3cdiv class\x3d"menu-logo"\x3e\x3cdiv class\x3d"logo"\x3e\x3c/div\x3e\x3cdiv class\x3d"cabinetTitle"\x3e\u041b\u0438\u0447\u043d\u044b\u0439 \u043a\u0430\u0431\u0438\u043d\u0435\u0442\x3cbr/\x3e\u0430\u0431\u0438\u0442\u0443\u0440\u0438\u0435\u043d\u0442\u0430 \u043c\u0430\u0433\u0438\u0441\u0442\u0440\u0430\u0442\u0443\u0440\u044b\x3c/div\x3e\x3cdiv class\x3d"officePersonInfoPaneContent"\x3e\x3cdiv class\x3d"table"\x3e\x3cdiv class\x3d"table-row"\x3e\x3cdiv class\x3d"officePersonInfoPanePhoto table-cell vertical-align-middle" data-dojo-attach-point\x3d"personPhotoNode"\x3e\x3c/div\x3e\x3cdiv class\x3d"table-cell vertical-align-middle padding-0-05em bold"\x3e\x3cdiv data-dojo-attach-point\x3d"loginNode" class\x3d"officePersonInfoPaneLogin"\x3e\x3c/div\x3e\x3cdiv data-dojo-attach-point\x3d"fullNameNode" class\x3d"officePersonInfoPaneFullName"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"table-row"\x3e\x3cdiv class\x3d"table-cell"\x3e\x3c/div\x3e\x3cdiv class\x3d"table-cell vertical-align-middle padding-0-05em"\x3e\x3cdiv class\x3d"small margin-05em-0"\x3e\x3cdiv\x3e\x3cdiv data-dojo-type\x3d"office.TranslatableNode" data-dojo-props\x3d"text: \'MagAbitur.PublicServicesPortalRegNumber\', display: \'inline\'"\x3e\x3c/div\x3e\x3cspan\x3e: \x3c/span\x3e\x3cspan class\x3d"bold" data-dojo-attach-point\x3d"publicServicesPortalRegNumberNode"\x3e\x3c/span\x3e\x3c/div\x3e\x3cdiv\x3e\x3cdiv data-dojo-type\x3d"office.TranslatableNode" data-dojo-props\x3d"text: \'MagAbitur.EarlyInvRegNumber\', display: \'inline\'"\x3e\x3c/div\x3e\x3cspan\x3e: \x3c/span\x3e\x3cspan class\x3d"bold" data-dojo-attach-point\x3d"earlyInvRegNumberNode"\x3e\x3c/span\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"toggleButton"\x3e\x3ca href\x3d"javascript:" data-dojo-attach-point\x3d"toggleRefNode" data-dojo-attach-event\x3d"onClick: toggle"\x3e\u0421\u043a\u0440\u044b\u0442\u044c\x3c/a\x3e\x3c/div\x3e\x3c/div\x3e',
"url:mill/jssupport/layout/layoutContent/registrationPhoneCodeForm.html":'\x3cdiv\x3e\x3cdiv data-dojo-type\x3d"office.form.TextField" data-dojo-props\x3d"text: \'Office.LastName;:\', required: true, name: \'lastname\'"\x3e\x3cdiv data-dojo-attach-point\x3d"lastNameTooltip"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.form.TextField" data-dojo-props\x3d"text: \'Office.FirstName;:\', required: true, name: \'firstname\'"\x3e\x3cdiv data-dojo-attach-point\x3d"firstNameTooltip"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.form.TextField" data-dojo-props\x3d"text: \'Office.MiddleName;:\', required: true, name: \'middlename\'"\x3e\x3cdiv data-dojo-attach-point\x3d"middleNameTooltip"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.form.TextField" data-dojo-props\x3d"text: \'Office.BirthDate;:\', required: true, name: \'birthdate\', invalidMessage: \'Office.InvalidDate\'"\x3e\x3cdiv data-dojo-attach-point\x3d"birthDateNameTooltip"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.form.FilteringSelectField" data-dojo-props\x3d"icon: \'icon-set-man-woman\', text: \'Office.Gender;:\', required: true, name: \'sex\'"\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.form.TextField" data-dojo-props\x3d"text: \'Office.Email;:\', required: true, name: \'email\', lowercase: true" data-dojo-attach-point\x3d"emailField"\x3e\x3cdiv data-dojo-attach-point\x3d"email1NameTooltip"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.form.TextField" data-dojo-props\x3d"text: \'Office.EmailConfirm;:\', required: true, name: \'emailConfirm\', lowercase: true, invalidMessage: \'Office.InvalidEmailConfirm\'"\x3e\x3cdiv data-dojo-attach-point\x3d"email2NameTooltip"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.form.PhoneField" data-dojo-props\x3d"text: \'Office.ContactPhone;:\', required: true, name: \'phone\'"\x3e\x3cdiv data-dojo-type\x3d"office.TranslatableNode" data-dojo-props\x3d"text: \'Office.RequirePhoneCode\'"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.form.PhoneField" data-dojo-props\x3d"text: \'Office.SecondeContactPhone;:\', name: \'secondphone\'"\x3e\x3cdiv data-dojo-type\x3d"office.TranslatableNode" data-dojo-props\x3d"text: \'Office.RequirePhoneCode\'"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.form.PhoneField" data-dojo-props\x3d"text: \'Office.HomePhone;:\', name: \'homephone\'"\x3e\x3cdiv data-dojo-type\x3d"office.TranslatableNode" data-dojo-props\x3d"text: \'Office.RequirePhoneCode\'"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.form.CheckBoxField" data-dojo-attach-point\x3d"personalDataConfirmWidget" data-dojo-props\x3d"text: \'Office.PersonalDataConfirm\', doubleColumn: false, required: true, name: \'confirm1\'"\x3e\x3c/div\x3e\x3cdiv data-dojo-attach-point\x3d"registrationPDAddConfirmNode"\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.form.CheckBoxField" data-dojo-attach-point\x3d"informationAccuracyConfirmWidget" data-dojo-props\x3d"text: \'Office.InformationAccuracyConfirm\', doubleColumn: false, required: true, name: \'confirm2\'"\x3e\x3c/div\x3e\x3c/div\x3e',
"url:mill/jssupport/announcement.html":'\x3cdiv\x3e\x3cdiv class\x3d"officeAnnouncement-row" data-dojo-attach-point\x3d"rowNode"\x3e\x3cdiv class\x3d"icon-cell" data-dojo-attach-point\x3d"iconCell"\x3e\x3cdiv class\x3d"icon-cell-inner"\x3e\x3cspan data-dojo-attach-point\x3d"glyphicon"\x3e\x3c/span\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"text-cell" data-dojo-attach-point\x3d"textCellNode"\x3e\x3cdiv class\x3d"officeAnnouncement-body" data-dojo-attach-point\x3d"bodyNode"\x3e\x3cspan data-dojo-attach-point\x3d"textNode"\x3e\x3c/span\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv data-dojo-attach-point\x3d"hideIcon" data-dojo-attach-event\x3d"onclick: _hide" class\x3d"hide-icon"\x3e\x26#215; \x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"officeAnnouncement-toggle" data-dojo-attach-point\x3d"toggleNode" data-dojo-attach-event\x3d"onclick: _toggleExpand"\x3e\x3cspan class\x3d"toggle-chevron" data-dojo-attach-point\x3d"toggleChevron"\x3e\x3c/span\x3e\x3c/div\x3e\x3c/div\x3e',
"url:mill/jssupport/layout/layoutMenu/mobileMenu.html":'\x3cdiv\x3e\x3cdiv data-dojo-attach-point\x3d"menuContent" class\x3d"menuContent"\x3e\x3c/div\x3e\x3cdiv data-dojo-attach-event\x3d"onclick: toggleView" class\x3d"icon"\x3e\x3cspan\x3e\x3c/span\x3e\x3c/div\x3e\x3c/div\x3e',"url:mill/jssupport/jsApplication/controls/treeSelect/treeSelectSection.html":'\x3cdiv\x3e\x3cdiv data-dojo-attach-event\x3d"onClick: toggleView" class\x3d"treeSelectSectionTable"\x3e\x3cdiv class\x3d"treeSelectSectionCell"\x3e\x3cspan data-dojo-attach-point\x3d"controlNode" class\x3d"icon-set-plus"\x3e\x3c/span\x3e\x3c/div\x3e\x3cdiv class\x3d"treeSelectSectionCell"\x3e\x3ca href\x3d"javascript:" style\x3d"text-decoration:none"\x3e\x3cspan data-dojo-attach-point\x3d"textNode"\x3e\x3c/span\x3e\x3c/a\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv data-dojo-attach-point\x3d"containerNode"\x3e\x3c/div\x3e\x3c/div\x3e',
"url:mill/jssupport/layout/layoutContent/externalContent.html":'\x3cdiv\x3e\x3cdiv data-dojo-type\x3d"office.layout.GridLayoutColumn" data-dojo-props\x3d"piece: 7, mobilePiece: 12"\x3e\x3cdiv data-dojo-attach-point\x3d"loginAnnouncementNode"\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.layout.CarouselView" data-dojo-props\x3d"region: \'external\'"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.layout.GridLayoutColumn" data-dojo-props\x3d"piece: 5, hideOnMobile: true"\x3e\x3cdiv data-dojo-type\x3d"office.layout.LayoutMenu" data-dojo-props\x3d"region: \'external\'"\x3e\x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"margin-1em-0"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv style\x3d"clear:both"\x3e\x3c/div\x3e\x3c/div\x3e',
"url:mill/jssupport/layout/carouselView/carouselViewSlideBreadcrumbsItem.html":'\x3cdiv\x3e\x3cdiv class\x3d"officeCarouselViewSlideBreadcrumbsItemContainer"\x3e\x3cdiv class\x3d"officeCarouselViewSlideBreadcrumbsItemContainerCell"\x3e\x3ci class\x3d"icon-set-circle-down"\x3e\x3c/i\x3e\x3c/div\x3e\x3cdiv class\x3d"officeCarouselViewSlideBreadcrumbsItemContainerCell"\x3e\x3cdiv\x3e\x3ca href\x3d"javascript:" data-dojo-attach-event\x3d"onClick: onClick" data-dojo-attach-point\x3d"titleNode"\x3e\x3c/a\x3e\x3c/div\x3e\x3cdiv class\x3d"officeCarouselViewSlideBreadcrumbsItemTooltip" data-dojo-attach-point\x3d"messageNode"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e',
"url:mill/jssupport/jsApplication/controls/treeSelect/treeSelectWidget.html":'\x3cdiv\x3e\x3cinput type\x3d"hidden" data-dojo-attach-point\x3d"inputNode, focusNode"/\x3e\x3cdiv class\x3d"loading"\x3e\x3cspan\x3e.\x3c/span\x3e\x3cspan\x3e.\x3c/span\x3e\x3cspan\x3e.\x3c/span\x3e\x3c/div\x3e\x3cdiv data-dojo-attach-point\x3d"filterNode" class\x3d"filterWrapper"\x3e\x3c/div\x3e\x3cdiv data-dojo-attach-point\x3d"containerNode"\x3e\x3c/div\x3e\x3c/div\x3e',"url:mill/jssupport/jsApplication/controls/radioButton/radioButtonElement.html":'\x3cdiv\x3e\x3cdiv data-dojo-type\x3d"dijit.form.RadioButton" data-dojo-attach-point\x3d"controlNode" data-dojo-attach-event\x3d"onChange: _onChange"\x3e\x3c/div\x3e\x3c/div\x3e',
"url:mill/jssupport/form/_selectListItem.html":'\x3cdiv onmousedown\x3d"return false"\x3e\x3cdiv class\x3d"Content-cell" data-dojo-attach-event\x3d"onClick: toggleItem"\x3e\x3cdiv class\x3d"Content-inner-cell Content-inner-left-cell"\x3e\x3cspan class\x3d"icon-set-radio-unchecked"\x3e\x3c/span\x3e\x3cspan class\x3d"icon-set-radio-checked"\x3e\x3c/span\x3e\x3c/div\x3e\x3cdiv class\x3d"Content-inner-cell Content-inner-right-cell" data-dojo-attach-point\x3d"containerNode"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e',
"url:mill/jssupport/layout/layoutMenu/layoutMenuItem.html":'\x3cdiv\x3e\x3ca data-dojo-attach-point\x3d"anchorNode"\x3e\x3cspan data-dojo-attach-point\x3d"textNode" data-dojo-attach-event\x3d"onClick: onClick"\x3e\x3c/span\x3e\x3c/a\x3e\x3c/div\x3e',"url:mill/jssupport/form/selectListField.html":'\x3cdiv\x3e\x3cdiv data-dojo-type\x3d"office.layout.GridLayoutColumn" data-dojo-props\x3d"piece: \'${textPiece}\'" data-dojo-attach-point\x3d"textColumnNode" class\x3d"cell"\x3e\x3cdiv data-dojo-type\x3d"office.TranslatableNode" data-dojo-props\x3d"display: \'inline\'" data-dojo-attach-point\x3d"translatableNode"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.layout.GridLayoutColumn" data-dojo-props\x3d"piece: \'${controlPiece}\'" class\x3d"cell"\x3e\x3cdiv data-dojo-type\x3d"office.form.SelectListWidget" data-dojo-attach-point\x3d"controlNode" class\x3d"controlNode"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e',
"url:mill/jssupport/form/buttonField.html":'\x3cdiv\x3e\x3cdiv data-dojo-type\x3d"office.layout.GridLayoutColumn" data-dojo-props\x3d"piece: \'${textPiece}\'" data-dojo-attach-point\x3d"textColumnNode" class\x3d"cell"\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.layout.GridLayoutColumn" data-dojo-props\x3d"piece: \'${controlPiece}\'" class\x3d"cell"\x3e\x3cdiv data-dojo-type\x3d"office.form.ButtonWidget" data-dojo-props\x3d"type: \'${type}\'" data-dojo-attach-point\x3d"controlNode" class\x3d"controlNode buttonControlNode"\x3e\x3c/div\x3e\x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"dijitInline"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e',
"url:mill/jssupport/layout/carouselView/carouselView.html":'\x3cdiv\x3e\x3cdiv class\x3d"officeCarouselViewViewport"\x3e\x3cdiv data-dojo-attach-point\x3d"slides" class\x3d"officeCarouselViewSlidesContainer"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e',"url:mill/jssupport/layout/carouselView/carouselViewSlideBreadcrumbs.html":'\x3cdiv\x3e\x3cdiv class\x3d"officeCarouselViewSlideBreadcrumbsContent" data-dojo-attach-point\x3d"containerNode"\x3e\x3c/div\x3e\x3c/div\x3e',"url:mill/jssupport/layout/layoutContent/reportToModeratorInternalForm.html":"\x3cdiv\x3e\x3cdiv data-dojo-type\x3d\"office.form.TextField\" data-dojo-props\x3d\"text: 'Office.MessageSubject;:', name: 'Subject', maxLength: 128\"\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d\"office.form.TextAreaField\" data-dojo-props\x3d\"text: 'Office.MessageBody;:', required: true, name: 'TextMessage'\"\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d\"office.form.FileAttachmentField\" data-dojo-props\x3d\"text: 'Office.AttachFile;:', doubleName: 'BinaryData', accept: 'image/bmp,image/jpeg,image/png,image/tiff,application/pdf', name: 'DataFile'\"\x3e\x3c/div\x3e\x3c/div\x3e",
"url:mill/jssupport/layout/layoutContent/internalContent.html":'\x3cdiv\x3e\x3cdiv id\x3d"internalRemoteUserPane" data-dojo-type\x3d"office.RemoteUserPane"\x3e\x3c/div\x3e\x3cdiv id\x3d"internalPersonInfoPane"\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.layout.GridLayoutColumn" data-dojo-props\x3d"piece: 3, padPiece: 4, hideOnMobile: true" class\x3d"officeInternalLeftSidebar"\x3e\x3cdiv id\x3d"internalMenu" data-dojo-type\x3d"office.layout.LayoutMenu" data-dojo-props\x3d"region: \'internal\', officeTitle: \'${officeTitle}\'"\x3e\x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"margin-1em-0"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.layout.GridLayoutColumn" data-dojo-props\x3d"piece: 9, padPiece: 8, mobilePiece: 12"\x3e\x3cdiv data-dojo-type\x3d"office.layout.CarouselView" data-dojo-props\x3d"region: \'internal\'"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e',
"url:mill/jssupport/layout/layoutContent/restorePasswordForm.html":"\x3cdiv\x3e\x3cdiv data-dojo-type\x3d\"office.form.TextField\" data-dojo-props\x3d\"text: 'Office.LoginOrEmail;:', required: true, name: 'loginoremail'\"\x3e\x3c/div\x3e\x3c/div\x3e","url:mill/jssupport/form/attachment.html":'\x3cdiv\x3e\x3ca href\x3d"javascript:"\x3e\x3cdiv data-dojo-type\x3d"office.TranslatableNode" data-dojo-props\x3d"display: \'inline\'" data-dojo-attach-point\x3d"translatableNode" class\x3d"officeAttachmentTextNode blue"\x3e\x3c/div\x3e\x3cdiv class\x3d"officeAttachmentInputContainer"\x3e\x3cinput type\x3d"file" name\x3d"${name}" data-dojo-attach-point\x3d"inputNode, focusNode" data-dojo-attach-event\x3d"onchange: onChange"/\x3e\x3c/div\x3e\x3c/a\x3e\x3cdiv data-dojo-type\x3d"office.TranslatableNode" data-dojo-attach-point\x3d"progressNode" class\x3d"margin-5px-0 blue small"\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.TranslatableNode" data-dojo-attach-point\x3d"fileErrorNode" class\x3d"margin-5px-0 red small"\x3e\x3c/div\x3e\x3c/div\x3e',
"url:mill/jssupport/form/checkBoxDblClnField.html":'\x3cdiv\x3e\x3cdiv data-dojo-type\x3d"office.layout.GridLayoutColumn" data-dojo-props\x3d"piece: \'${textPiece}\'" data-dojo-attach-point\x3d"textColumnNode" class\x3d"cell"\x3e\x3clabel for\x3d"${id}_cb"\x3e\x3cdiv data-dojo-type\x3d"office.TranslatableNode" data-dojo-props\x3d"display: \'inline\'" data-dojo-attach-point\x3d"translatableNode"\x3e\x3c/div\x3e\x3c/label\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.layout.GridLayoutColumn" data-dojo-props\x3d"piece: \'${controlPiece}\'" class\x3d"cell"\x3e\x3cdiv data-dojo-type\x3d"office.form.CheckBoxWidget" data-dojo-props\x3d"type: \'${type}\'" data-dojo-attach-point\x3d"controlNode" data-dojo-observer\x3d"${observer}" id\x3d"${id}_cb" class\x3d"controlNode checkBoxControlNode"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e',
"url:mill/jssupport/jsApplication/controls/treeSelect/treeSelectItem.html":'\x3cdiv\x3e\x3cdiv data-dojo-attach-event\x3d"onClick: toggleSelect" class\x3d"treeSelectItemTable"\x3e\x3cdiv class\x3d"treeSelectItemCell"\x3e\x3cspan data-dojo-attach-point\x3d"controlNode" class\x3d"icon-set-checkbox-unchecked"\x3e\x3c/span\x3e\x3c/div\x3e\x3cdiv class\x3d"treeSelectItemCell"\x3e\x3cspan data-dojo-attach-point\x3d"textNode"\x3e\x3c/span\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"item-containerNode dim small"\x3e\x3c/div\x3e\x3c/div\x3e',
"url:mill/jssupport/form/textAreaField.html":'\x3cdiv\x3e\x3cdiv data-dojo-type\x3d"office.layout.GridLayoutColumn" data-dojo-props\x3d"piece: \'${textPiece}\'" data-dojo-attach-point\x3d"textColumnNode" class\x3d"cell"\x3e\x3cdiv data-dojo-type\x3d"office.TranslatableNode" data-dojo-props\x3d"display: \'inline\'" data-dojo-attach-point\x3d"translatableNode"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.layout.GridLayoutColumn" data-dojo-props\x3d"piece: \'${controlPiece}\'" class\x3d"cell"\x3e\x3cdiv data-dojo-type\x3d"office.form.SimpleTextAreaWidget" data-dojo-attach-point\x3d"controlNode" data-dojo-observer\x3d"${observer}" class\x3d"controlNode"\x3e\x3c/div\x3e\x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"dim small"\x3e\x3c/div\x3e\x3cdiv data-dojo-attach-point\x3d"maxLengthNode" class\x3d"dim small"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e',
"url:mill/jssupport/form/phoneWidget.html":'\x3cdiv\x3e\x3cinput type\x3d"hidden" data-dojo-attach-point\x3d"focusNode"/\x3e\x3cdiv style\x3d"display:inline-flex;width:100%"\x3e\x3cdiv data-dojo-type\x3d"dijit.form.FilteringSelect" data-dojo-props\x3d"intermediateChanges: true, required: false" data-dojo-attach-point\x3d"countryCodeWidget" style\x3d"width:7em"\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"dijit.form.ValidationTextBox" data-dojo-props\x3d"intermediateChanges: true, required: false" data-dojo-attach-point\x3d"phoneNumberWidget" style\x3d"width:100%;margin-left:.5em"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e',
"url:mill/jssupport/jsApplication/controls/fileEditor/fileEditor.html":'\x3cdiv\x3e\x3cdiv class\x3d"fileEditorContainer" data-dojo-attach-point\x3d"fileEditorContainer"\x3e\x3cspan class\x3d"fileEditorAction fileEditorHidden icon-set-bin" data-dojo-attach-point\x3d"binNode" data-dojo-attach-event\x3d"onClick: reset"\x3e\x3c/span\x3e\x3ca target\x3d"_blank" class\x3d"fileEditorAction fileEditorIcon fileEditorHidden" data-dojo-attach-point\x3d"attachmentNode"\x3e\x3cspan class\x3d"icon-set-attachment"\x3e\x3c/span\x3e\x3c/a\x3e\x3cdiv class\x3d"fileEditorUploaderContainer" data-dojo-attach-point\x3d"uploaderContainerNode"\x3e\x3cdiv class\x3d"fileEditorUploaderLabel" data-dojo-type\x3d"office.TranslatableNode" data-dojo-props\x3d"display: \'inline\', text: \'Office.SelectFile\'" data-dojo-attach-point\x3d"labelWidget"\x3e\x3c/div\x3e\x3cdiv class\x3d"fileEditorUploader" data-dojo-type\x3d"mill.uploader" data-dojo-props\x3d"preventProgressText: true" data-dojo-attach-event\x3d"onChange: onChange, onUpload: onUpload, _prepareUpload: _prepareUpload, _setProgressText: _setProgressText" data-dojo-attach-point\x3d"focusNode, uploader"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"fileEditorConsoleItem small bold" data-testid\x3d"file-properties-text" data-dojo-type\x3d"office.TranslatableNode" data-dojo-attach-point\x3d"filePropertiesTextWidget"\x3e\x3c/div\x3e\x3cdiv class\x3d"fileEditorConsoleItem dim" data-dojo-type\x3d"office.TranslatableNode" data-dojo-attach-point\x3d"progressTextWidget"\x3e\x3c/div\x3e\x3c/div\x3e',
"url:mill/jssupport/form/textField.html":'\x3cdiv\x3e\x3cdiv data-dojo-type\x3d"office.layout.GridLayoutColumn" data-dojo-props\x3d"piece: \'${textPiece}\'" data-dojo-attach-point\x3d"textColumnNode" class\x3d"cell"\x3e\x3cdiv data-dojo-type\x3d"office.TranslatableNode" data-dojo-props\x3d"display: \'inline\'" data-dojo-attach-point\x3d"translatableNode"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.layout.GridLayoutColumn" data-dojo-props\x3d"piece: \'${controlPiece}\'" class\x3d"cell"\x3e\x3cdiv data-dojo-type\x3d"office.form.TextBoxWidget" data-dojo-props\x3d"type: \'${type}\'" data-dojo-attach-point\x3d"controlNode" data-dojo-observer\x3d"${observer}" class\x3d"controlNode"\x3e\x3c/div\x3e\x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"dim small"\x3e\x3c/div\x3e\x3cdiv data-dojo-attach-point\x3d"maxLengthNode" class\x3d"dim small"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e',
"url:mill/jssupport/form/_formContent.html":'\x3cdiv\x3e\x3cdiv class\x3d"officeFormContentHeader"\x3e\x3cdiv data-dojo-type\x3d"office.TranslatableNode" data-dojo-attach-point\x3d"formTitleNode" class\x3d"bold white"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"officeFormContentFormWrapper"\x3e\x3cdiv data-dojo-attach-point\x3d"messageNode"\x3e\x3c/div\x3e\x3cform data-dojo-attach-event\x3d"onSubmit: submitForm" data-dojo-attach-point\x3d"formNode" class\x3d"officeFormContentForm" method\x3d"GET" action\x3d"javascript:"\x3e\x3cdiv data-dojo-attach-point\x3d"containerNode"\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.form.ButtonField" data-testid\x3d"form-submit" data-dojo-props\x3d"type: \'${submitButtonType}\'" data-dojo-attach-point\x3d"submitButton"\x3e\x3cdiv data-dojo-type\x3d"office.form.ButtonWidget" data-dojo-props\x3d"labelIdentifier: \'Office.Cancel\'" data-dojo-attach-point\x3d"button2" data-dojo-attach-event\x3d"onClick: hideForValue" style\x3d"display: none"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/form\x3e\x3cdiv class\x3d"officeFormContentLoading"\x3e\x3cdiv data-dojo-attach-point\x3d"loadingNode" class\x3d"loading"\x3e\x3cspan\x3e.\x3c/span\x3e\x3cspan\x3e.\x3c/span\x3e\x3cspan\x3e.\x3c/span\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e',
"url:mill/jssupport/layout/layoutContainer.html":'\x3cdiv\x3e\x3cdiv data-dojo-type\x3d"dijit.layout.LayoutContainer" data-dojo-props\x3d"gutters: false" class\x3d"officeLayoutContainer"\x3e\x3cdiv data-dojo-type\x3d"dijit.layout.ContentPane" data-dojo-props\x3d"region: \'center\'" style\x3d"overflow-x:hidden;overflow-y: scroll" data-dojo-attach-point\x3d"contentPane"\x3e\x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"officeLayoutContent"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"officeLayoutFooter"\x3e\x3cdiv data-dojo-type\x3d"office.TranslatableNode" data-dojo-props\x3d"text: \'${socialNetwork}\', display: \'table-cell\'" class\x3d"vertical-align-middle white"\x3e\x3c/div\x3e\x3cdiv class\x3d"table-cell vertical-align-middle text-align-right dim small"\x3e\x3cspan class\x3d"hide-on-pad hide-on-mobile padding-0-3em"\x3e\x3cspan class\x3d"padding-0-1em"\x3eMobile Friendly Website\x3c/span\x3e\x3cspan class\x3d"large"\x3e\x3cspan class\x3d"padding-right-5px icon-set-display"\x3e\x3c/span\x3e\x3cspan class\x3d"padding-right-3px icon-set-tablet"\x3e\x3c/span\x3e\x3cspan class\x3d"padding-right-5px icon-set-mobile"\x3e\x3c/span\x3e\x3c/span\x3e\x3c/span\x3e\x3ca ir\x3d"VuzTechmill"\x3e\x3cspan data-dojo-type\x3d"office.TranslatableNode" data-dojo-props\x3d"text: \'Office.DesignBy\', display: \'inline\'"\x3e\x3c/span\x3e\x3c/a\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e',
"url:mill/uploader.html":'\x3cspan\x3e\x3cinput data-dojo-attach-event\x3d"onfocus: _onInputFocus, onchange: _onChange" data-dojo-attach-point\x3d"fileInput, focusNode" type\x3d"file"\x3e\x3c/input\x3e\x3c/span\x3e',"url:mill/jssupport/jsApplication/controls/controlField/controlField.html":'\x3cdiv\x3e\x3cdiv class\x3d"cell" data-dojo-type\x3d"office.layout.GridLayoutColumn" data-dojo-props\x3d"piece: \'5\'" data-dojo-attach-point\x3d"titleCell"\x3e\x3cdiv data-dojo-type\x3d"office.TranslatableNode" data-dojo-attach-point\x3d"titleWidget" data-dojo-props\x3d"display: \'inline\'"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"cell" data-dojo-type\x3d"office.layout.GridLayoutColumn" data-dojo-props\x3d"piece: \'7\'"\x3e\x3cdiv data-dojo-attach-point\x3d"containerNode"\x3e\x3c/div\x3e\x3cdiv data-dojo-attach-point\x3d"hintTextRefNode"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e',
"url:mill/jssupport/form/filteringSelectField.html":'\x3cdiv\x3e\x3cdiv data-dojo-type\x3d"office.layout.GridLayoutColumn" data-dojo-props\x3d"piece: \'${textPiece}\'" data-dojo-attach-point\x3d"textColumnNode" class\x3d"cell"\x3e\x3cdiv data-dojo-type\x3d"office.TranslatableNode" data-dojo-props\x3d"display: \'inline\'" data-dojo-attach-point\x3d"translatableNode"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.layout.GridLayoutColumn" data-dojo-props\x3d"piece: \'${controlPiece}\'" class\x3d"cell"\x3e\x3cdiv data-dojo-type\x3d"office.form.FilteringSelectWidget" data-dojo-props\x3d"type: \'${type}\'" data-dojo-attach-point\x3d"controlNode" data-dojo-observer\x3d"${observer}" class\x3d"controlNode"\x3e\x3c/div\x3e\x3cdiv data-dojo-attach-point\x3d"unhideContainerNode" class\x3d"dim small"\x3e\x3c/div\x3e\x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"dim small"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e',
"url:mill/jssupport/jsApplication/controls/radioButton/radioButton.html":'\x3cdiv\x3e\x3cinput type\x3d"hidden" data-dojo-attach-point\x3d"inputNode, focusNode"/\x3e\x3cdiv data-dojo-attach-point\x3d"containerNode"\x3e\x3c/div\x3e\x3c/div\x3e',"url:mill/jssupport/form/validationTextBox.html":'\x3cdiv class\x3d"dijit dijitReset dijitInline dijitLeft" id\x3d"widget_${id}" role\x3d"presentation"\x3e\x3cdiv class\x3d"dijitReset dijitInputField dijitInputContainer"\x3e\x3cinput class\x3d"dijitReset dijitInputInner" data-dojo-attach-point\x3d\'textbox,focusNode\' autocomplete\x3d"off" name\x3d"${name}" type\x3d\'${type}\'/\x3e\x3c/div\x3e\x3c/div\x3e',
"url:mill/jssupport/form/checkBoxField.html":'\x3cdiv\x3e\x3cdiv data-dojo-type\x3d"office.layout.GridLayoutColumn" data-dojo-props\x3d"piece: \'${textPiece}\'" data-dojo-attach-point\x3d"textColumnNode" class\x3d"cell"\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.layout.GridLayoutColumn" data-dojo-props\x3d"piece: \'${controlPiece}\'" class\x3d"cell"\x3e\x3cdiv data-dojo-type\x3d"office.form.CheckBoxWidget" data-dojo-props\x3d"type: \'${type}\'" data-dojo-attach-point\x3d"controlNode" data-dojo-observer\x3d"${observer}" id\x3d"${id}_cb" class\x3d"controlNode checkBoxControlNode"\x3e\x3c/div\x3e\x3clabel for\x3d"${id}_cb"\x3e\x3cdiv data-dojo-type\x3d"office.TranslatableNode" data-dojo-props\x3d"display: \'inline\'" data-dojo-attach-point\x3d"translatableNode"\x3e\x3c/div\x3e\x3c/label\x3e\x3c/div\x3e\x3c/div\x3e',
"url:mill/jssupport/layout/layoutContent/remoteUserPane.html":'\x3cdiv\x3e\x3cdiv data-dojo-attach-point\x3d"loadingNode" class\x3d"loading"\x3e\x3cspan\x3e.\x3c/span\x3e\x3cspan\x3e.\x3c/span\x3e\x3cspan\x3e.\x3c/span\x3e\x3c/div\x3e\x3cdiv data-dojo-attach-point\x3d"remoteUserPaneContentCover" class\x3d"officeRemoteUserPaneContentCover"\x3e\x3cdiv data-dojo-attach-point\x3d"remoteUserPhoto" data-dojo-attach-event\x3d"onClick: changePhoto" class\x3d"officeRemoteUserPhoto"\x3e\x3c/div\x3e\x3cdiv class\x3d"officeRemoteUserInfo"\x3e\x3cdiv data-dojo-attach-point\x3d"regNumberNode"\x3e\x3c/div\x3e\x3cdiv data-dojo-attach-point\x3d"loginNameNode" class\x3d"bold"\x3e\x3c/div\x3e\x3cdiv data-dojo-attach-point\x3d"fullNameNode"\x3e\x3c/div\x3e\x3cdiv data-dojo-attach-point\x3d"birthDateNode"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"officeRemoteUserActions"\x3e\x3cspan data-dojo-attach-point\x3d"pencilAction" data-dojo-attach-event\x3d"onclick: action" class\x3d"icon-set-pencil2"\x3e\x3c/span\x3e\x3cspan data-dojo-attach-point\x3d"logoutAction" data-dojo-attach-event\x3d"onclick: action" class\x3d"icon-set-exit"\x3e\x3c/span\x3e\x3cspan data-dojo-attach-point\x3d"logoutTextNode"\x3e\x3c/span\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e',
"url:mill/jssupport/form/fileAttachmentField.html":'\x3cdiv\x3e\x3cdiv data-dojo-type\x3d"office.layout.GridLayoutColumn" data-dojo-props\x3d"piece: \'${textPiece}\'" data-dojo-attach-point\x3d"textColumnNode" class\x3d"cell"\x3e\x3cdiv data-dojo-type\x3d"office.TranslatableNode" data-dojo-props\x3d"display: \'inline\'" data-dojo-attach-point\x3d"translatableNode"\x3e\x3c/div\x3e\x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"text-align-right"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.layout.GridLayoutColumn" data-dojo-props\x3d"piece: \'${controlPiece}\'" class\x3d"cell"\x3e\x3cdiv data-dojo-type\x3d"office.form.Attachment" data-dojo-props\x3d"name: \'${name}\'" data-dojo-attach-point\x3d"controlNode" class\x3d"controlNode attachmentControlNode"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e',
"url:mill/jssupport/jsApplication/controlSet/controlSetGroup.html":'\x3cdiv\x3e\x3cdiv class\x3d"officeFormContentHeader"\x3e\x3cdiv class\x3d"table" style\x3d"width:100%" data-dojo-attach-point\x3d"contentHeaderNode"\x3e\x3cdiv class\x3d"table-cell vertical-align-middle bold white" data-dojo-type\x3d"office.TranslatableNode" data-dojo-props\x3d"display: \'table-cell\'" data-dojo-attach-point\x3d"titleWidget"\x3e\x3c/div\x3e\x3cdiv class\x3d"officeFormContentHeaderActionButton table-cell" data-dojo-attach-point\x3d"titleCollapseButton" data-dojo-attach-event\x3d"onClick: toggleContentView"\x3e\x26#150; \x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"officeFormContentFormWrapper" data-dojo-attach-point\x3d"contentFormWrapper"\x3e\x3cdiv class\x3d"officeFormContentForm" data-dojo-attach-point\x3d"containerNode"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e',
"url:mill/jssupport/layout/carouselView/_layoutScrollSpyItem.html":'\x3cdiv data-dojo-attach-event\x3d"onclick: onClick" onmousedown\x3d"return false"\x3e\x3cdiv data-dojo-attach-point\x3d"itemContainer" class\x3d"officeScrollSpyItemRow"\x3e\x3cdiv class\x3d"officeScrollSpyItemCell"\x3e\x3cspan data-dojo-attach-point\x3d"textNode"\x3e\x3c/span\x3e\x3c/div\x3e\x3cdiv class\x3d"officeScrollSpyItemCell"\x3e\x3cspan class\x3d"icon-set-ctrl2"\x3e\x3c/span\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e',"url:mill/jssupport/layout/layoutContent/logoHeader.html":'\x3cdiv\x3e\x3cdiv data-dojo-attach-point\x3d"image" class\x3d"dijitInline logo-img"\x3e\x3c/div\x3e\x3cdiv class\x3d"dijitInline logo-text"\x3e\x3cdiv data-dojo-type\x3d"office.TranslatableNode" data-dojo-props\x3d"text: \'Office.VuzLogoTitle\'" class\x3d"title"\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.TranslatableNode" data-dojo-props\x3d"text: \'Office.VuzLogoSubtitle\'" class\x3d"subtitle"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e',
"*now":function(c){c(['dojo/i18n!*preload*mill/nls/mill*["en-us","ru-ru","es-es","en","ru","es","ROOT"]'])}}});
define("mill/mill","dojo/_base/lang dojo/cookie dojo/date/locale dojo/io/iframe dojo/data/util/filter dojo/data/util/sorter dojo/data/ItemFileReadStore dojo/i18n dojo/parser dojo/Deferred dijit/dijit dijit/_Templated dijit/layout/BorderContainer dijit/layout/TabContainer dijit/form/Form dijit/ProgressBar dijit/form/Textarea dijit/Editor dojox/editor/plugins/PasteFromWord dojox/editor/plugins/StatusBar dijit/Dialog dojox/grid/DataGrid dojox/grid/EnhancedGrid mill/i18n mill/patches mill/browserValidator mill/uploader".split(" "),function(c){dojo.extend(dijit._Widget,
{millData:""});dojo.extend(dijit.form.TextBox,{trim:!0});dojo.extend(dojo.Deferred,{nodesToJson:function(){var a=new dojo.Deferred,b=this.ioArgs.args.query.reduce(function(e,f){0===f.part&&(e[f.name]="");return e},{});this.then(function(e){e=Array.from(e.documentElement.childNodes).map(function(f){return Array.from(f.childNodes).reduce(function(g,h){g[h.tagName.replace(/[-]/,"$")]=mill.decodeDataNode(h);return g},dojo.clone(b))});a.resolve(e)},a.reject);return a}});window.mill||(mill={});dojo.mixin(mill,
{letterChar:RegExp("[A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376-\u0377\u037a-\u037d\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u0523\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0621-\u064a\u066e-\u066f\u0671-\u06d3\u06d5\u06e5-\u06e6\u06ee-\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4-\u07f5\u07fa\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0972\u097b-\u097f\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc-\u09dd\u09df-\u09e1\u09f0-\u09f1\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0-\u0ae1\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3d\u0b5c-\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c33\u0c35-\u0c39\u0c3d\u0c58-\u0c59\u0c60-\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0-\u0ce1\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d28\u0d2a-\u0d39\u0d3d\u0d60-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32-\u0e33\u0e40-\u0e46\u0e81-\u0e82\u0e84\u0e87-\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa-\u0eab\u0ead-\u0eb0\u0eb2-\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edd\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8b\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065-\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10d0-\u10fa\u10fc\u1100-\u1159\u115f-\u11a2\u11a8-\u11f9\u1200-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166f-\u1676\u1681-\u169a\u16a0-\u16ea\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u1900-\u191c\u1950-\u196d\u1970-\u1974\u1980-\u19a9\u19c1-\u19c7\u1a00-\u1a16\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae-\u1baf\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u2094\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183-\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2c6f\u2c71-\u2c7d\u2c80-\u2ce4\u2d00-\u2d25\u2d30-\u2d65\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005-\u3006\u3031-\u3035\u303b-\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31b7\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fc3\ua000-\ua48c\ua500-\ua60c\ua610-\ua61f\ua62a-\ua62b\ua640-\ua65f\ua662-\ua66e\ua67f-\ua697\ua717-\ua71f\ua722-\ua788\ua78b-\ua78c\ua7fb-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua90a-\ua925\ua930-\ua946\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uac00-\ud7a3\uf900-\ufa2d\ufa30-\ufa6a\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|[\ud840-\ud868][\udc00-\udfff]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\ude80-\ude9c\udea0-\uded0\udf00-\udf1e\udf30-\udf40\udf42-\udf49\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf]|\ud801[\udc00-\udc9d]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f\udd00-\udd15\udd20-\udd39\ude00\ude10-\ude13\ude15-\ude17\ude19-\ude33]|\ud808[\udc00-\udf6e]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud869[\udc00-\uded6]|\ud87e[\udc00-\ude1d]"),
quot:String.fromCharCode(34),lt:String.fromCharCode(60),gt:String.fromCharCode(62),amp:String.fromCharCode(38),slash:String.fromCharCode(47),backSlash:String.fromCharCode(92),doPatch:!0,urlPrefix:"../",parseUrls:function(a,b){var e=/((\w*?)((:\/\/)|www|\w\.{1}\w{2,2000})(:?(?!\.\s|\s|\."|"\.<|<).)+)(?![^<>]*>|[^"]*?<\/a)/mig,f=document.createElement("div");f.innerHTML=a;return function(g,h){if(1==g.nodeType){if("A"==g.nodeName.toUpperCase()&&g.href)return g.target="_blank",g.outerHTML;if(g.firstChild||
h){var l=[],m=g.firstChild;h||(l.push("\x3c"+g.nodeName),dojo.forEach(g.attributes,function(k){l.push(" "+k.nodeName+"\x3d"+mill.quot+k.nodeValue.split(mill.quot).join("\x26quot;")+mill.quot)}),l.push("\x3e"));for(;m;)l.push(arguments.callee(m,!1)),m=m.nextSibling;h||l.push("\x3c/"+g.nodeName+"\x3e");return l.join("")}return g.outerHTML}if(3==g.nodeType){l=[];m=g.textContent;do{e.lastIndex=0;var r=e.exec(m);if(r){l.push(m.substr(0,r.index));for(var n=m.substr(r.index,r[0].length);n.match(/[,.)]$/);)n=
n.slice(0,-1);n.match(/:\/\/|\w\//)?l.push(b?b(n):'\x3ca href\x3d"'+n+'" target\x3d"_blank"\x3e'+n+"\x3c/a\x3e"):l.push(n);m=m.substr(r.index+n.length)}else l.push(m)}while(r);return l.join("")}return""}(f,!0)},enquote:function(a){if(null==a||"undefined"==typeof a||"number"==typeof a&&isNaN(a))return"";if(mill.isDate(a))return dojo.date.locale.format(a,{selector:"date",datePattern:"yyyy-MM-dd HH:mm:ss"});a=a.toString();a=a.replace(new RegExp("(["+this.amp+"])","g"),"\x26amp;");a=a.replace(new RegExp("(["+
this.backSlash+this.quot+"])","g"),"\x26quot;");a=a.replace(new RegExp("(["+this.lt+"])","g"),"\x26lt;");a=a.replace(new RegExp("(["+this.gt+"])","g"),"\x26gt;");for(var b=1;32>b;b++)a=a.replace(new RegExp("(["+String.fromCharCode(b)+"])","g"),"\x26#"+b+";");return a},enquoteFileName:function(a){a=a.toString();return a=a.replace(RegExp("([#+*/?])","g"),"$")},_isInternalDateObject:function(a){return null!==a&&dojo.isObject(a)&&a.hasOwnProperty("year")&&a.hasOwnProperty("month")&&a.hasOwnProperty("day")},
isDate:function(a){return a&&"[object Date]"===Object.prototype.toString.call(a)&&!isNaN(a)},parseDate:function(a){if(dojo.isObject(a))return mill._isInternalDateObject(a)?new Date(a.year,a.month,a.day,a.hour||0,a.minute||0,a.second||0,a.millisecond||0):a;if(/^new Date/.test(a))return a=a.split("(")[1].split(")")[0],a=a.split(","),new Date(a[0],a[1],a[2],a[3],a[4],a[5],a[6]);a&&(a=a.replace(/\s/,", "));return a?dojo.date.locale.parse(a,{timePattern:"HH:mm:ss",datePattern:"dd.MM.yyyy"})||dojo.date.locale.parse(a,
{timePattern:"HH:mm",datePattern:"dd.MM.yyyy"})||dojo.date.locale.parse(a,{selector:"date",datePattern:"dd.MM.yyyy"}):null},formatDate:function(a,b){if(!a)return"";if(dojo.isString(a)||mill._isInternalDateObject(a))a=mill.parseDate(a);return a?dojo.date.locale.format(a,{selector:"date",datePattern:void 0!==b?b:"dd.MM.yyyy"}):""},formatDateTime:function(a){if(!a)return"";if(dojo.isString(a)||mill._isInternalDateObject(a))a=mill.parseDate(a);return a?dojo.date.locale.format(a,{selector:"date",datePattern:"EEEE, d MMMM yyyy \u0433."+
(a.getHours()+a.getMinutes()+a.getSeconds()?" HH:mm:ss":"")}):""},formatTime:function(a){if(!a)return"";a=a.toString();a=a.replace(",",".");var b=Math.floor(24*parseFloat(a));a=1440*(parseFloat(a)-b/24);"60"===a.toFixed(0)&&(b+=1,a=0);for(b=b.toFixed(0);2>b.length;)b="0"+b;for(a=a.toFixed(0);2>a.length;)a="0"+a;return b+":"+a},enquoteForAttribute:function(a){return this.quot+this.enquote(a)+this.quot},lineBreaksToParagraphs:function(a){return"\x3cp\x3e"+a.toString().replace(/(\n)/g,"\x3c/p\x3e\x3cp\x3e")+
"\x3c/p\x3e"},lineBreaksToSpaces:function(a){return a.toString().replace(/(\n)/g," ")},normalizeLineBreaks:function(a){return dojo.map((a||"").split("\n").join("\r\n").split("\r"),function(b,e){return e&&"\n"!=b.charAt(0)?"\n"+b:b}).join("\r")},extractNodeText:function(a){var b=[];(function(e){"STYLE"!=e.nodeName&&"SCRIPT"!=e.nodeName&&"BASE"!=e.nodeName&&"META"!=e.nodeName&&(1==e.nodeType?dojo.forEach(e.childNodes,arguments.callee):8!=e.nodeType&&b.push(!dojo.isIE||10<=dojo.isIE?e.textContent:e.data))})(a);
return b.join(" ")},fieldValue:function(a,b){if(!a||!b)return"";var e=Array.prototype.slice.call(arguments).splice(1,arguments.length-1),f=e.splice(0,1)[0].replace(/[$]/,"-");if(a.nodeType)return f=a.getElementsByTagName(f),0<f.length?2<arguments.length?mill.fieldValue.apply(mill,[mill.decodeDataNode(f[0])].concat(e)):mill.decodeDataNode(f[0]):"";var g="";void 0!==a[f]?g=a[f]:void 0!==a[f.replace(/[-]/,"$")]&&(g=a[f.replace(/[-]/,"$")]);null===g&&(g="");return this._isInternalDateObject(g)?this.parseDate(g):
2<arguments.length?mill.fieldValue.apply(mill,[g].concat(e)):g},encodeString:function(a){return a?a.toString():""},encodeData:function(a){return a?a.toString():""},extractFileName:function(a,b){var e=a.toString().lastIndexOf("\\");e=-1!=e?a.toString().substr(e+1):a.toString();if(b&&e.length>b){var f=e.split(".");f[0]=f[0].substr(0,f[0].length-e.length+b);e=f.join(".")}return e},getRequestUrl:function(a,b){return mill.urlPrefix+a+("/"==b.charAt(0)?"":"/")+b},includeFileNameIntoBlobReference:function(a,
b){var e=/ filename=["'].*['"]/g,f=' filename\x3d"'+mill.enquoteFileName(b)+'"';return a.match(e)?a.replace(e,f):a.replace(/\/>/,f+"/\x3e")},sendFile:function(a,b,e){if(b.value){var f=document.createElement("form");f.method="POST";f.action=this.getRequestUrl(".system","session.xml");f.encoding="multipart/form-data";var g=b.parentNode,h=b.name;b.name=a;f.appendChild(b);document.body.appendChild(f);dojo.io.iframe.send({method:"POST",form:f,handleAs:"html",handle:function(l,m){document.body.removeChild(f);
g.appendChild(b);b.name=h;e&&e()}})}else e&&e()},sendFiles:function(a,b,e){for(var f=0;f<a.length;f++)if(a[f].widget){a[f].widget.attr("name",a[f].name);a[f].widget.upload().then(function(){a.splice(f,1);mill.sendFiles(a,b)},e);return}if(a.length){var g=[],h=[],l=[];dojo.forEach(a,function(r){-1==dojo.indexOf(h,r.control)?(g.push(r),h.push(r.control)):l.push(r)});var m=l.length?dojo.hitch(this,function(){this.sendFiles(l,b)}):b;this._sendFiles(g,m,e)}else b&&b()},_sendFiles:function(a,b,e){if(a.length){var f=
document.createElement("form");f.method="POST";f.action=this.getRequestUrl(".system","session.xml");f.encoding="multipart/form-data";dojo.forEach(a,function(g){var h=g.control.parentNode,l=g.control.name;g.control.name=g.name;f.appendChild(g.control);dojo.mixin(g,{parent:h,oldname:l})});document.body.appendChild(f);dojo.io.iframe.send({method:"POST",form:f,handleAs:"html",handle:function(g,h){document.body.removeChild(f);dojo.forEach(a,function(l){l.parent.appendChild(l.control);l.control.name=l.oldname});
b&&b()}})}else b&&b()},decodeString:function(a){return a?a.toString():""},decodeDataNode:function(a){var b="";a.childNodes&&0<a.childNodes.length?b="#cdata-section"==a.childNodes.item(0).nodeName?this.decodeString(a.childNodes.item(0).nodeValue):a.childNodes.item(0).nodeValue:a.nodeValue&&(b=a.nodeValue);return b},_clonesHandler:null,placeMillData:function(a,b,e){var f=a.nodeName;if("row"==f.toLowerCase()||"data"==f.toLowerCase()||"rows"==f.toLowerCase())f=f.toLowerCase();b=(b?b+"-":"")+f;var g=!1;
dojo.query("[millData\x3d'"+b+"']",e).forEach(dojo.hitch(this,function(h){g=!0;if("row"==a.nodeName){if(a.nextSibling){var l=dojo.clone(h);l.removeAttribute("millData",0)}else l=h;l.dataElement=a;for(var m=a.firstChild;m;)1==m.nodeType&&this.placeMillData(m,"",l),m=m.nextSibling;h.parentNode.insertBefore(l,h);if(dojo.hasAttr(l,"onClone")){var r=l.getAttribute("onClone");this._clonesHandler||(this._clonesHandler=[]);this._clonesHandler[r]||(this._clonesHandler[r]=function(){eval(r)});this._clonesHandler[r].call(l)}}else if(l=
this.decodeDataNode(a))if(h.hasAttribute&&h.hasAttribute("dojoType"))h.setAttribute("value",l);else if(h.getAttribute&&h.getAttribute("dojoType"))h.setAttribute("value",l);else if(h.hasAttribute&&h.hasAttribute("html"))h.innerHTML=l;else if(h.getAttribute&&h.getAttribute("html"))if(dojo.isIE){var n=document.createElement(h.nodeName);n.insertAdjacentHTML("afterBegin",l);dojo.forEach(h.attributes,function(k){n.setAttribute(k.nodeName,k.nodeValue)});h.parentNode.replaceChild(n,h)}else h.innerHTML=l;
else"INPUT"==h.nodeName?h.value=l:h.appendChild(document.createTextNode(l))}));if(!g)for(f=a.firstChild;f;)1==f.nodeType&&this.placeMillData(f,b,e),f=f.nextSibling},parseErrorMessage:function(a){if(a.documentElement){if((a=a.documentElement||a)&&"error"==a.nodeName){var b=a.getElementsByTagName("message");return 0<b.length?b[0].childNodes[0].nodeValue:a.childNodes[0].nodeValue}return""}return a.error?a.error.message:""},alertError:function(a){(a=this.parseErrorMessage(a))&&alert(a);return!!a},findMillDataDijit:function(a,
b){var e=null;dojo.query("*[widgetId]",b).forEach(function(f){f=dijit.byId(f.getAttribute("widgetId"));f.millData==a&&(e=f)});e||dojo.query("[millData\x3d'"+a+"']",b).forEach(function(f){e=f});return e},_itemsToQuery:function(a){var b="";dojo.forEach(a.query,function(f){if(f){var g="part\x3d"+mill.enquoteForAttribute(f.part.toString());if(f.name){var h=dojo.isFunction(f.name)?f.name.call():f.name.toString();g=g+" name\x3d"+mill.enquoteForAttribute(h)}f.value&&(h=f.value,h=dojo.isFunction(h)?h.call():
h.toString(),g=g+" value\x3d"+mill.enquoteForAttribute(h));f.special&&(g=g+" special\x3d"+mill.enquoteForAttribute(f.special.toString()));if(f.context){g="\x3citem "+g+"\x3e\x3croot";h="";f.context.className&&(h=h+" class\x3d"+mill.enquoteForAttribute(f.context.className));f.context.current&&(h=h+" current\x3d"+mill.enquoteForAttribute(f.context.current));g=g+h+"\x3e";var l="";dojo.forEach(f.context,function(m){var r=m.value;r=dojo.isFunction(r)?r.call():r.toString();l=l+"\x3c"+m.name+(m.domain?" domain\x3d"+
mill.enquoteForAttribute(m.domain.toString()):"")+"\x3e"+mill.enquote(r)+"\x3c/"+m.name+"\x3e"});g=g+l+"\x3c/root\x3e\x3c/item\x3e"}else g="\x3citem "+g+"/\x3e";b+=g}});var e="";a.className&&(e=e+" class\x3d"+mill.enquoteForAttribute(a.className));a.propName&&(e=e+" propname\x3d"+mill.enquoteForAttribute(a.propName));if(a.id||a.ID)e=e+" ID\x3d"+mill.enquoteForAttribute(a.id||a.ID);a.domain&&(e=e+" domain\x3d"+mill.enquoteForAttribute(a.domain));if(a.filename||a.fileName)e=e+" filename\x3d"+mill.enquoteForAttribute(mill.enquoteFileName(a.filename||
a.fileName));a.queryID&&(e=e+" queryid\x3d"+mill.enquoteForAttribute(a.queryID));a.fetchAll&&(e=e+" fetchall\x3d"+mill.enquoteForAttribute("1"));a.width&&(e=e+" width\x3d"+mill.enquoteForAttribute(a.width));a.height&&(e=e+" height\x3d"+mill.enquoteForAttribute(a.height));a.disposition&&(e=e+" disposition\x3d"+mill.enquoteForAttribute(a.disposition));if(e||b)b="\x3cquery "+e+(b?"\x3e"+b+"\x3c/query\x3e":"/\x3e");return b},closeCursor:function(a){a.handleAs="xml";a.url=this.getRequestUrl(a.handler,
"closecursor.xml");a.preventCache=!0;a.content||(a.content={});a.content.query=mill._itemsToQuery(a)||a.content.query;var b=a.load,e=!1;a.load=function(g){if("error"==g.documentElement.nodeName)return a.skipError||mill.alertError(g),g;dojo.isIE||g.normalize();e=!0;b&&b(g);return g};var f=a.error;a.error=function(g){f&&f(g)};return a.sync?(dojo.xhrGet(a),e):dojo.xhrGet(a)},batch:function(a){a.handleAs="xml";a.url=this.getRequestUrl(a.handler,"batch.xml");a.preventCache=!0;var b="\x3croot\x3e",e=[];
dojo.forEach(a.queries,function(m){m.methodName?(m=mill.buildQueryParams(m,!0),e=e.concat(m.filesUsed||[]),b+=m.query):(m.fetchAll=!0,b+=mill._itemsToQuery(m))});a.content||(a.content={});a.content.query=b+"\x3c/root\x3e";a.language&&(a.content.language=a.language);var f=a.load,g=!1,h=null;a.load=function(m){var r=mill.parseErrorMessage(m);if(r)return a.skipError||mill.alertError(m),h&&h.reject(Error(r)),m;dojo.isIE||m.normalize();g=!0;if(m.documentElement&&a.fetched){r=m.documentElement.childNodes;
for(var n=0;n!=r.length;n++)for(var k=r.item(n).childNodes,p=0;p!=k.length;p++)a.fetched(k.item(p))}f&&f(m);return m};var l=a.error;a.error=function(m){l?l(m):h?h.reject(m):a.skipError||alert(dojo.i18n.getLocalization("mill","resources").cannotRecieveData);return m};if(e.length)a.sync=!1,g=!0,this.sendFiles(e,function(){dojo.xhrPost(a).then(h?h.resolve:null)},l);else return a.sync?(dojo.isSafari&&(a.headers||(a.headers={}),dojo.mixin(a.headers,{"Sync-Short-Timeout":"yes"})),dojo.xhrPost(a),g):h=dojo.xhrPost(a)},
batchJson:function(a){a.handleAs="json";a.url=this.getRequestUrl(a.handler,"batch.js");a.preventCache=!0;var b="\x3croot\x3e",e=[];dojo.forEach(a.queries,function(m){m.methodName?(m=mill.buildQueryParams(m,!0),e=e.concat(m.filesUsed||[]),b+=m.query):(m.fetchAll=!0,b+=mill._itemsToQuery(m))});a.content||(a.content={});a.content.query=b+"\x3c/root\x3e";a.language&&(a.content.language=a.language);var f=a.load,g=!1,h=null;a.load=function(m){var r=mill.parseErrorMessage(m);if(r)return a.skipError||mill.alertError(m),
h&&h.reject(Error(r)),m;g=!0;dojo.isArray(m)&&a.fetched&&dojo.forEach(m,function(n){dojo.isArray(n.data)&&dojo.forEach(n.data,a.fetched)});f&&f(m);return m};var l=a.error;a.error=function(m){l?l(m):h?h.reject(m):a.skipError||alert(dojo.i18n.getLocalization("mill","resources").cannotRecieveData);return m};if(e.length)a.sync=!1,g=!0,this.sendFiles(e,function(){dojo.xhrPost(a).then(h?h.resolve:null)},l);else return a.sync?(dojo.isSafari&&(a.headers||(a.headers={}),dojo.mixin(a.headers,{"Sync-Short-Timeout":"yes"})),
dojo.xhrPost(a),g):h=dojo.xhrPost(a)},_timebiascache:null,_timebias:function(a){mill._timebiascache||(mill._timebiascache={});var b=mill._timebiascache[a];if(!b){var e=new Date;dojo.xhrGet({handleAs:"xml",url:mill.getRequestUrl(a,"timebias.xml"),preventCache:!0,sync:!0,content:{query:'\x3ctimebias D\x3d"'+e.getDate()+'" H\x3d"'+e.getHours()+'" M\x3d"'+(e.getMonth()+1)+'" Mi\x3d"'+e.getMinutes()+'" Ms\x3d"'+e.getMilliseconds()+'" S\x3d"'+e.getSeconds()+'" Y\x3d"'+e.getFullYear()+'"/\x3e'},load:function(f){if("error"==
f.documentElement.nodeName)return mill.alertError(f),f;dojo.isIE||f.normalize();f.documentElement&&(b=parseFloat(mill.fieldValue(f.documentElement.childNodes[0],"Bias").split(",").join(".")));return f}});mill._timebiascache[a]=b}return b||0},serverDate:function(a,b){b&&mill._timebiascache&&(mill._timebiascache[a]=null);return new Date((new Date).valueOf()+Math.round(864E5*mill._timebias(a)))},queryCursorJson:function(a){a.handleAs="json";a.url=this.getRequestUrl(a.handler,"cursor.js");a.preventCache=
!0;a.content||(a.content={});a.content.query=mill._itemsToQuery(a)||a.content.query;a.language&&(a.content.language=a.language);var b=a.load,e=!1,f=null;a.load=function(h){var l=mill.parseErrorMessage(h);if(l)return a.skipError||mill.alertError(h),f&&f.reject(Error(l)),h;e=!0;h.data&&a.fetched&&dojo.forEach(h.data,a.fetched);b&&b(h);return h};var g=a.error;a.error=function(h){g?g(h):f?f.reject(h):a.skipError||alert(dojo.i18n.getLocalization("mill","resources").cannotRecieveData);return h};return a.sync?
(dojo.isSafari&&(a.headers||(a.headers={}),dojo.mixin(a.headers,{"Sync-Short-Timeout":"yes"})),dojo.xhrPost(a),e):f=dojo.xhrPost(a)},queryCursor:function(a){a.handleAs="xml";a.url=this.getRequestUrl(a.handler,"cursor.xml");a.preventCache=!0;a.content||(a.content={});a.content.query=mill._itemsToQuery(a)||a.content.query;a.language&&(a.content.language=a.language);var b=a.load,e=!1,f=null;a.load=function(h){var l=mill.parseErrorMessage(h);if(l)return a.skipError||mill.alertError(h),f&&f.reject(Error(l)),
h;dojo.isIE||h.normalize();e=!0;if(h.documentElement&&a.fetched){l=h.documentElement.childNodes;for(var m=0;m!=l.length;m++)a.fetched(l.item(m))}b&&b(h);return h};var g=a.error;a.error=function(h){g?g(h):f?f.reject(h):a.skipError||alert(dojo.i18n.getLocalization("mill","resources").cannotRecieveData);return h};return a.sync?(dojo.isSafari&&(a.headers||(a.headers={}),dojo.mixin(a.headers,{"Sync-Short-Timeout":"yes"})),dojo.xhrPost(a),e):f=dojo.xhrPost(a)},buildQueryParams:function(a,b){dojo.isArray(a.params)||
(a.params=Array(a.params));var e={query:"",filesUsed:[]};dojo.forEach(a.params,dojo.hitch(this,function(g){var h="",l;for(l in g){var m=g[l];dojo.isFunction(m)&&(m=m.call(),g[l]=m);mill.isDate(m)&&(m=mill.formatDate(m));if(b&&dojo.isObject(m)&&!mill.isDate(m)&&null!=m){if(m.isInstanceOf&&m.isInstanceOf(mill.uploader))e.filesUsed.push({name:l,widget:m});else{var r=dijit.getEnclosingWidget(m);r&&r.isInstanceOf&&r.isInstanceOf(mill.uploader)?e.filesUsed.push({name:l,widget:r}):e.filesUsed.push({name:l,
control:m})}delete g[l]}else h=h+"\x3c"+l+"\x3e"+mill.enquote(m)+"\x3c/"+l+"\x3e"}e.query=e.query+"\x3crow\x3e"+h+"\x3c/row\x3e"}));var f=" eof\x3d"+mill.enquoteForAttribute(1);a.className&&(f=f+" class\x3d"+mill.enquoteForAttribute(a.className));a.templateName&&(f=f+" template\x3d"+mill.enquoteForAttribute(a.templateName));a.methodName&&(f=f+" method\x3d"+mill.enquoteForAttribute(a.methodName));if(a.filename||a.fileName)f=f+" filename\x3d"+mill.enquoteForAttribute(mill.enquoteFileName(a.filename||
a.fileName));a.format&&(f=f+" format\x3d"+mill.enquoteForAttribute(a.format));e.query="\x3cexecute"+f+"\x3e"+e.query+"\x3c/execute\x3e";return e},executeMethod:function(a){a.handleAs="xml";a.sync="boolean"===typeof a.sync?a.sync:!0;var b=a.sync?null:new dojo.Deferred;a.url=this.getRequestUrl(a.handler,"execute.xml");a.preventCache=!0;var e=this.buildQueryParams(a,!0);a.content||(a.content={});a.content.query=e.query;a.language&&(a.content.language=a.language);var f=!1,g=a.load;a.load=function(l){a.response=
l;if("error"==l.documentElement.nodeName)return a.skipError||mill.alertError(l),g&&g(l),l;dojo.isIE||l.normalize();f=!0;g&&g(l);return l};var h=a.error;a.error=function(l){h?h(l):alert(dojo.i18n.getLocalization("mill","resources").cannotRecieveData);return l};e.filesUsed.length?(a.sync=!1,b=new dojo.Deferred,f=!0,this.sendFiles(e.filesUsed,function(){dojo.xhrPost(a).then(b?b.resolve:null,b?b.reject:null)},h)):(a.sync&&dojo.isSafari&&(a.headers||(a.headers={}),dojo.mixin(a.headers,{"Sync-Short-Timeout":"yes"})),
dojo.xhrPost(a).then(b?b.resolve:null,b?b.reject:null));return b?b:f},executeMethodJson:function(a){a.handleAs="json";a.sync="boolean"===typeof a.sync?a.sync:!0;var b=a.sync?null:new dojo.Deferred;a.url=this.getRequestUrl(a.handler,"execute.js");a.preventCache=!0;var e=this.buildQueryParams(a,!0);a.content||(a.content={});a.content.query=e.query;a.language&&(a.content.language=a.language);var f=!1,g=a.load;a.load=function(l){a.response=l;if(mill.parseErrorMessage(l))return a.skipError||mill.alertError(l),
g&&g(l),l;f=!0;g&&g(l);return l};var h=a.error;a.error=function(l){h?h(l):alert(dojo.i18n.getLocalization("mill","resources").cannotRecieveData);return l};e.filesUsed.length?(a.sync=!1,b=new dojo.Deferred,f=!0,this.sendFiles(e.filesUsed,function(){dojo.xhrPost(a).then(b?b.resolve:null,b?b.reject:null)},h)):(a.sync&&dojo.isSafari&&(a.headers||(a.headers={}),dojo.mixin(a.headers,{"Sync-Short-Timeout":"yes"})),dojo.xhrPost(a).then(b?b.resolve:null,b?b.reject:null));return b?b:f},executeOleMethod:function(a){a.handleAs=
"xml";a.sync=!0;a.url=this.getRequestUrl(a.handler,"executeoleobjectmethod.xml");a.preventCache=!0;var b=this.buildQueryParams(a,!0);a.content||(a.content={});a.content.query=b.query;a.language&&(a.content.language=a.language);var e=!1,f=a.load;a.load=function(h){a.response=h;if("error"==h.documentElement.nodeName)return a.skipError||mill.alertError(h),a.exception&&a.exception(h.documentElement),h;dojo.isIE||h.normalize();e=!0;f&&f(h);return h};var g=a.error;a.error=function(h){g?g(h):alert(dojo.i18n.getLocalization("mill",
"resources").cannotRecieveData);return h};b.filesUsed.length?(a.sync=!1,e=!0,this.sendFiles(b.filesUsed,function(){dojo.xhrPost(a)})):(a.sync&&dojo.isSafari&&(a.headers||(a.headers={}),dojo.mixin(a.headers,{"Sync-Short-Timeout":"yes"})),dojo.xhrPost(a));return e},executeTemplate:function(a,b,e){var f=document.createElement("form");if(dojo.isIE){f.insertAdjacentHTML("afterBegin","\x3cinput type\x3d'hidden' name\x3d'query'/\x3e");var g=f.childNodes[0];if(a.language){f.insertAdjacentHTML("afterBegin",
"\x3cinput type\x3d'hidden' name\x3d'language'/\x3e");var h=f.childNodes[0]}}else g=f.appendChild(document.createElement("input")),g.type="hidden",g.name="query",a.language&&(h=f.appendChild(document.createElement("input")),h.type="hidden",h.name="language");f.method="POST";f.action=this.getRequestUrl(a.handler,e);f.target="_blank";g.value=b.query;a.language&&h&&(h.value=a.language);document.body.appendChild(f);f.submit();document.body.removeChild(f)},executeWordTemplate:function(a){this.executeTemplate(a,
this.buildQueryParams(a,!1),"wordreport"+(a.extension||".doc"))},executeExcelTemplate:function(a){this.executeTemplate(a,this.buildQueryParams(a,!1),"excelreport"+(a.extension||".xls"))},executePDFTemplate:function(a){this.executeTemplate(a,this.buildQueryParams(a,!1),"pdfreport"+(a.extension||".pdf"))},executeXSLTTemplate:function(a){a.handleAs=".txt"==a.extension?"text":"xml";a.sync=!0;a.url=this.getRequestUrl(a.handler,"xsltreport"+(a.extension||".xml"));a.preventCache=!0;var b=this.buildQueryParams(a,
!0);a.content||(a.content={});a.content.query=b.query;a.language&&(a.content.language=a.language);var e=!1,f=a.load;a.load=function(h){a.response=h;if("error"==h.documentElement.nodeName)return a.skipError||mill.alertError(h),a.exception&&a.exception(h.documentElement),h;dojo.isIE||h.normalize();e=!0;f&&f(h);return h};var g=a.error;a.error=function(h){g?g(h):alert(dojo.i18n.getLocalization("mill","resources").cannotRecieveData);return h};b.filesUsed.length?(a.sync=!1,e=!0,this.sendFiles(b.filesUsed,
function(){dojo.xhrPost(a)})):(a.sync&&dojo.isSafari&&(a.headers||(a.headers={}),dojo.mixin(a.headers,{"Sync-Short-Timeout":"yes"})),dojo.xhrPost(a));return e},setPropValue:function(a){a.handleAs="xml";a.url=this.getRequestUrl(a.handler,"setpropvalue.xml");a.preventCache=!0;var b;dojo.isObject(a.value)&&null!=a.value?mill.sendFile(a.propName,a.value):b=this.enquote(a.value);a.content||(a.content={});a.content.query="\x3cquery ID\x3d"+mill.enquoteForAttribute(a.id||a.ID)+" propname\x3d"+mill.enquoteForAttribute(a.propName)+
" class\x3d"+mill.enquoteForAttribute(a.className)+(dojo.isObject(a.value)?" hasblobdata\x3d"+mill.enquoteForAttribute(1):"")+"\x3e"+b+"\x3c/query\x3e";var e=a.load,f=!1,g=null;a.load=function(l){var m=mill.parseErrorMessage(l);if(m)return a.skipError||mill.alertError(l),g&&g.reject(Error(m)),l;f=!0;dojo.isIE||l.normalize();e&&e(l);return l};var h=a.error;a.error=function(l){h?h(l):g?g.reject(l):a.skipError||alert(dojo.i18n.getLocalization("mill","resources").cannotRecieveData);return l};return a.sync?
(a.sync&&dojo.isSafari&&(a.headers||(a.headers={}),dojo.mixin(a.headers,{"Sync-Short-Timeout":"yes"})),dojo.xhrPost(a),f):g=dojo.xhrPost(a)},downloadBlob:function(a){var b=document.createElement("form");if(dojo.isIE){b.insertAdjacentHTML("afterBegin","\x3cinput type\x3d'hidden' name\x3d'query'/\x3e");var e=b.childNodes[0]}else e=b.appendChild(document.createElement("input")),e.type="hidden",e.name="query";b.method="POST";b.action=this.getRequestUrl(a.handler,"getblob"+(a.extension||""));b.target=
"_blank";e.value=mill._itemsToQuery(a);document.body.appendChild(b);b.submit();document.body.removeChild(b)},_downloadRoutine:function(a,b){var e=this.buildQueryParams(a,!0),f=function(){var g=document.createElement("form");if(dojo.isIE){g.insertAdjacentHTML("afterBegin","\x3cinput type\x3d'hidden' name\x3d'query'/\x3e");var h=g.childNodes[0]}else h=g.appendChild(document.createElement("input")),h.type="hidden",h.name="query";g.method="POST";g.action=this.getRequestUrl(a.handler,b);g.target="_blank";
h.value=e.query;a.filename&&(dojo.isIE?(g.insertAdjacentHTML("afterBegin","\x3cinput type\x3d'hidden' name\x3d'filename'/\x3e"),h=g.childNodes[0]):(h=g.appendChild(document.createElement("input")),h.type="hidden",h.name="filename"),h.value=a.filename);document.body.appendChild(g);g.submit();document.body.removeChild(g)};e.filesUsed.length?(a.sync=!1,result=!0,this.sendFiles(e.filesUsed,dojo.hitch(this,function(){f.call(this)}))):f.call(this)},downloadOleMethod:function(a){mill._downloadRoutine(a,
"executeoleobjectmethod")},downloadMethod:function(a){mill._downloadRoutine(a,"execute")},getUrlParams:function(){var a=window.location.search.slice(1);if(a){var b={};a=a.split("#")[0];a=a.split("\x26");for(var e=0;e<a.length;e++){var f=a[e].split("\x3d"),g=decodeURIComponent(f[0]);f="undefined"===typeof f[1]?null:decodeURIComponent(f[1]);g=g.toLowerCase();"string"===typeof f&&(f=f.toLowerCase());if(g.match(/\[(\d+)?\]$/)){var h=g.replace(/\[(\d+)?\]/,"");b[h]||(b[h]=[]);g.match(/\[\d+\]$/)?(g=/\[(\d+)\]/.exec(g)[1],
b[h][g]=f):b[h].push(f)}else b[g]?(b[g]&&"string"===typeof b[g]&&(b[g]=[b[g]]),b[g].push(f)):b[g]=f}return b}return mill.session.values?dojo.clone(mill.session.values):{}},_localizationCache:null,getLocalization:function(a,b,e){this._localizationCache||(this._localizationCache={});var f=this._localizationCache[a]||{},g=f[e||"default"];g||(g={},f[e||"default"]=g);b=dojo.isArray(b)?b:b.toString().split(";");var h=dojo.filter(b,function(l){return!g[l]});h.length&&mill.queryCursor({headers:{"Disable-Basic-Auth":"yes"},
handler:a,fetchAll:!0,className:"TLanguageTranslation",sync:!0,query:[{part:0,name:"Owner"},{part:0,name:"Translation"},{part:1,name:"Language$N",value:e,special:"caseInsensitive"},{part:1,name:"Owner",value:h.join(";")}],fetched:function(l){g[mill.fieldValue(l,"Owner")]=mill.fieldValue(l,"Translation")}});this._localizationCache[a]=f;return 1==b.length?g[b[0]]:dojo.clone(g)},session:{values:{},id:null,ipAddress:"0.0.0.0",userName:null,sysInfo:null,__deferred:null,__load:function(a){if(!dojo.cookie.isSupported())return mill.session.__deferred?
__deferred.reject(Error(dojo.i18n.getLocalization("mill","resources").cookiesNotSupported)):alert(dojo.i18n.getLocalization("mill","resources").cookiesNotSupported),mill.session.__deferred=null,a;mill.session.values={};mill.session.id=a.documentElement.getAttribute("ID")||"";mill.session.ipAddress=a.documentElement.getAttribute("RemoteAddress")||mill.session.ipAddress;mill.session.userName=a.documentElement.getAttribute("UserName")||"";for(var b=a.documentElement.getElementsByTagName("*"),e=0;e!=
b.length;e++)mill.session.values[b[e].nodeName]=b[e].childNodes.length?b[e].childNodes.item(0).nodeValue:null;b=a.documentElement.attributes;for(e=0;e!=b.length;e++)mill.session.values[b[e].nodeName]=b[e].nodeValue;dojo.mixin(mill.session.values,mill.getUrlParams());mill.session.__deferred=null;return a},__checkVersion:function(a){dojo.isIE||a.normalize();if(dojo.version.flag){var b=function(f){return parseInt(f)},e=dojo.map((a.documentElement.getAttribute("Version")||"").split("."),b);b=dojo.map([dojo.version.major,
dojo.version.minor,dojo.version.patch,dojo.version.flag.slice(1)],b);4==e.length&&4==b.length&&(e[0]>b[0]||e[0]==b[0]&&e[1]>b[1]||e[0]==b[0]&&e[1]==b[1]&&e[2]>b[2]||e[0]==b[0]&&e[1]==b[1]&&e[2]==b[2]&&e[3]>b[3])&&window.location.reload(!0)}return mill.session.__load(a)},__error:function(a){var b=dojo.cookie.isSupported()?dojo.i18n.getLocalization("mill","resources").cannotRecieveData:dojo.i18n.getLocalization("mill","resources").cookiesNotSupported;mill.session.__deferred?__deferred.reject(Error(b)):
alert(b);mill.session.__deferred=null;return a},setValue:function(a,b,e){var f={};f[a]=b||"";a={url:mill.getRequestUrl(".system","session.xml"),handleAs:"xml",sync:!e,preventCache:!0,content:f,load:mill.session.__load,error:mill.session.__error};return mill.session.__deferred=dojo.xhrPost(a)},load:function(a,b,e,f,g){var h={language:"",jsversion:(dojo.version?dojo.version.toString():"")||""};a&&(h.login=a);b&&(h.password=b);dojo.isObject(g)&&null!==g&&dojo.mixin(h,g);g=null;e&&(g={url:mill.getRequestUrl(e,
"sysinfo.xml"),handleAs:"xml",sync:!f,preventCache:!0,headers:{"Disable-Basic-Auth":"yes"},content:h,load:dojo.hitch(this,function(m){dojo.isIE||m.normalize();return this.sysInfo=m})},a&&b&&g.sync?(dojo.isSafari&&(g.headers||(g.headers={}),dojo.mixin(g.headers,{"Sync-Short-Timeout":"yes"})),g=dojo.xhrPost(g)):g=dojo.xhrGet(g));var l=new dojo.Deferred;dojo.when(g,function(){var m={url:mill.getRequestUrl(".system","session.xml"),handleAs:"xml",sync:!f,preventCache:!0,load:function(r){mill.session.__checkVersion(r);
l.resolve(r)},error:function(r){mill.session.__error(r);l.resolve(r)}};!f&&dojo.isSafari&&(m.headers||(m.headers={}),dojo.mixin(m.headers,{"Sync-Short-Timeout":"yes"}));a&&b&&!e?(m.content=h,mill.session.__deferred=dojo.xhrPost(m)):mill.session.__deferred=dojo.xhrGet(m)},function(m){l.resolve(m)});return l},logout:function(a){this.values={};this.id=null;var b={url:mill.getRequestUrl(".system","logout.xml"),handleAs:"xml",sync:!a,preventCache:!0};!a&&dojo.isSafari&&(b.headers||(b.headers={}),dojo.mixin(b.headers,
{"Sync-Short-Timeout":"yes"}));return dojo.xhrGet(b)}},formatDefaultBoolean:function(a){return a?"0"!=a?a?dojo.i18n.getLocalization("mill","resources").defaultYesValue:dojo.i18n.getLocalization("mill","resources").defaultNoValue:dojo.i18n.getLocalization("mill","resources").defaultNoValue:""},localizedResources:null,processExternals:function(a){mill.local&&!mill.local.localizedResources&&(mill.local.localizedResources=mill.getLocalization(mill.local.anonymousHandler,mill.local.resources||[],mill.local.locale));
var b={onBegin:function(){},onEnd:function(){}};dojo.mixin(b,a);b.onBegin();do{var e=document.getElementsByTagName("external");if(a=!!e.length){var f=document.createElement("span");e=e[0];e.parentNode.replaceChild(f,e);dojo.html.set(f,dojo.i18n.substitute(dojo.cache("",e.getAttribute("src")),mill.local?mill.local.localizedResources:null),{extractContent:!0});dojo.config.parseOnLoad&&require("dojo/parser",function(){dojo.parser.parse(f)})}}while(a);b.onEnd()},inscribeImage:function(a){var b=!!a.style.width||
!!a.style.height,e={width:"",height:""};dojo.style(a,e);if(!b){b=dojo._getMarginSize(a.parentNode);var f=dojo._getMarginSize(a);b.h/f.h<b.w/f.w?e.height="100%":e.width="100%";dojo.style(a,e)}},__profilerData:[],__profilerCounter:0,__profilerLevel:0,__profilerEnter:function(a,b,e){for(var f=this.__profilerCounter++,g=this.__profilerLevel++,h="",l=0;l<g;l++)h=h+String.fromCharCode(160)+String.fromCharCode(160);l=new Date;window.console.log(h+"-\x3e"+l.getHours()+":"+l.getMinutes()+":"+l.getSeconds()+
"."+l.getMilliseconds(),a,{"this":b,arguments:e},{id:f});this.__profilerData[f]={start:l,level:g,name:a};return f},__profilerLeave:function(a){var b=this.__profilerData[a];if(b){for(var e="",f=0;f<b.level;f++)e=e+String.fromCharCode(160)+String.fromCharCode(160);f=new Date;window.console.log(e+"\x3c-"+f.getHours()+":"+f.getMinutes()+":"+f.getSeconds()+"."+f.getMilliseconds(),b.name,(f.valueOf()-b.start.valueOf())/1E3+"sec",{id:a});delete this.__profilerData[a];this.__profilerLevel--}},__profilerWrap:function(a,
b){if(dojo.isFunction(a))return-1!==a.toString().indexOf("__profile")?a:function(){var f=mill.__profilerEnter(b,this,arguments),g=a.apply(this,arguments);mill.__profilerLeave(f);return g};if(dojo.isObject(a))for(var e in a)a[e]=mill.__profilerWrap(a[e],b+"-\x3e"+e);return a},__getReferText:function(){return location.protocol+"//"+location.host+window.location.pathname},getReferText:function(){return this.__getReferText()},capitalizeFirstLetter:function(a){return a.charAt(0).toUpperCase()+a.slice(1)},
registerAlias:function(a,b){c.setObject(a,b);return b},formatSize:function(a,b){var e=Number(a),f=b||2;if(!e||0>e)return{size:"",unit:""};for(var g=[dojo.i18n.getLocalization("mill","resources").FormatSizeBytes,"KB","MB","GB","TB"],h=0;1024<=e&&h<g.length-1;)e=(e/1024).toFixed(f),0===e-Math.floor(e)&&(e=Math.floor(e)),h+=1;return{size:e,unit:g[h]}},formatSizeStr:function(){var a=this.formatSize.apply(this,arguments);return a.size&&a.unit?a.size+String.fromCharCode(160)+a.unit:dojo.i18n.getLocalization("mill",
"resources").FormatSizeNoData}});dojo.isEdge=0<=navigator.userAgent.indexOf("Edge");dojo.isTrident=0<=navigator.userAgent.indexOf("Trident");dojo.declare("mill.data",null,{handler:"",className:"",query:null,clientFiltering:!1,language:"",_query:null,_data:null,_batchData:null,_queryStr:"",_lastQueryOptions:null,request:null,batchRequest:null,useQuerySoring:!0,_queryHandler:null,_load:function(){var a=new dojo.Deferred,b=this.request;this._query&&(b=b.concat(this._query));var e=mill._itemsToQuery({className:this.className,
query:b});this._queryStr!==e&&(this._data=null);if(this._data)return a.resolve(),a.promise;if(this._queryHandler&&this._queryStr===e)return dojo.when(this._queryHandler,dojo.hitch(this,function(){a.resolve();this._queryHandler=null})),a.promise;this._queryStr=e;this._queryHandler=this.batchRequest&&this.batchRequest.length?mill.batch({handler:this.handler,language:this.language,sync:!1,queries:[dojo.mixin({},{className:this.className,query:b})].concat(this.batchRequest)}).then(dojo.hitch(this,function(f){f=
f.documentElement.childNodes;this._data=f[0];this._batchData=Array.prototype.slice.call(f).slice(1);a.resolve();this._queryHandler=null}),a.reject):mill.queryCursor({handler:this.handler,className:this.className,query:b,language:this.language,sync:!1,fetchAll:!0}).then(dojo.hitch(this,function(f){this._data=f.documentElement;a.resolve();this._queryHandler=null}),a.reject);return a.promise},constructor:function(a){a&&dojo.mixin(this,a);this._lastQueryOptions={}},getValue:function(a,b,e){if((a=a.getElementsByTagName(b.replace(/[$]/,
"-")))&&a[0])return mill.decodeDataNode(a[0])},getValues:function(a,b){throw Error("Unimplemented API: dojo.data.api.Read.getAttributes");},hasAttribute:function(a,b){throw Error("Unimplemented API: dojo.data.api.Read.hasAttribute");},containsValue:function(a,b,e){throw Error("Unimplemented API: dojo.data.api.Read.containsValue");},isItem:function(a){return!!a.nodeType},isItemLoaded:function(a){return!0},loadItem:function(a){if(!this.isItemLoaded(a.item))throw Error("Unimplemented API: dojo.data.api.Read.loadItem");
},fetch:function(a){this._query=[];a.queryOptions||(a.queryOptions={});a.queryOptions.ignoreCase||dojo.mixin(a.queryOptions,{ignoreCase:!0});this.useQuerySoring&&a.sort&&dojo.forEach(a.sort,dojo.hitch(this,function(h){this._query.push({part:2,name:h.attribute,special:h.descending?"desc":""})}));var b={},e;for(e in a.query)if(this.clientFiltering)b[e]=dojo.data.util.filter.patternToRegExp(a.query[e]?a.query[e]:"?",a.queryOptions.ignoreCase);else{var f=a.query[e];f.match(/\*$/g)||(f="'"+f+"'");this._query.push({part:1,
name:e,value:f})}var g=new dojo.Deferred;this._load().then(dojo.hitch(this,function(){dojo.mixin(a,{store:this,abort:new Function});for(var h=(this._data?this._data.childNodes:[])||[],l,m=[],r=0;r!==h.length;r++){var n=!0;l=h.item(r);for(var k in b){var p=this.getValue(l,k,"")||"";n=n&&!!p&&p.match(b[k]);if(!n)break}n&&m.push(l)}a.sort&&this.clientFiltering&&m.sort(dojo.data.util.sorter.createSortFunction(a.sort,this));h=a.start||0;r=a.count&&Infinity!==a.count?h+a.count:m.length;0>h&&(r+=h,h=0);
a.onBegin&&a.onBegin.call(a.scope||a,m.length,a);if(a.onItem)for(l=h;l<m.length&&l<r;l++)a.onItem.call(a.scope||a,m[l],a);a.onComplete&&(l=null,a.onItem||(l=m.slice(h,r)),a.onComplete.call(a.scope||a,l,a));g.resolve(a)}),g.reject);return dojo.mixin(a,g.promise)},getFeatures:function(){return{"dojo.data.api.Read":!0,"dojo.data.api.Identity":!0}},close:function(a){this._batchData=this._data=null},getLabel:function(a){return this.getValue(a,"Description")||this.getValue(a,"Name")||this.getValue(a,"ID")},
getIdentity:function(a){return this.getValue(a,"ID")||this.getValue(a,"Name")||this.getValue(a,"Description")},getLabelAttributes:function(a){throw Error("Unimplemented API: dojo.data.api.Read.getLabelAttributes");},fetchItemByIdentity:function(a){return this.fetch({query:{ID:a.identity},queryOptions:{ignoreCase:!0},onItem:a.onItem})}});(function(){var a=arguments.callee;dojo.xhrGet({handleAs:"xml",sync:!0,preventCache:!0,url:mill.getRequestUrl(".system","session.xml"),load:function(b){var e=parseInt(b.documentElement.getAttribute("TimeLeft"));
void 0===e||isNaN(e)||60<e&&setTimeout(a,1E3*(e-60));return mill.session.id?b:mill.session.__checkVersion(b)},error:function(b,e){if("404"==e.xhr.status){if("/"==mill.urlPrefix)return b;mill.urlPrefix=64<mill.urlPrefix.length?"/":mill.urlPrefix+"../";a()}return b}})})();dojo.addOnLoad(function(){mill.doPatch&&mill._patch()});dojo.declare("mill.dataUnion",null,{stores:null,maxRecords:1E4,constructor:function(a){a&&dojo.mixin(this,a);this.stores=this.stores||[]},getValue:function(a,b,e){for(var f=0;f<
this.stores.length;f++)if(this.stores[f].isItem(a))return this.stores[f].getValue(a,b,e);return e},getValues:function(a,b){throw Error("Unimplemented API: dojo.data.api.Read.getAttributes");},hasAttribute:function(a,b){throw Error("Unimplemented API: dojo.data.api.Read.hasAttribute");},containsValue:function(a,b,e){throw Error("Unimplemented API: dojo.data.api.Read.containsValue");},isItem:function(a){throw Error("Unimplemented API: dojo.data.api.Read.isItem");},isItemLoaded:function(a){return!0},
loadItem:function(a){if(!this.isItemLoaded(a.item))throw Error("Unimplemented API: dojo.data.api.Read.loadItem");},fetch:function(a){var b=a.scope?a.scope:dojo.global,e=a.start||0,f=a.count&&Infinity!==a.count?e+a.count:this.maxRecords;0>e&&(f+=e,e=0);var g=0,h=[],l=this.stores;dojo.forEach(l,function(m,r){m.fetch(dojo.mixin(dojo.clone(a),{onBegin:function(){0==r&&a.onBegin&&a.onBegin.call(b,this.maxRecords,a)},onItem:function(n){g>=e&&g<=f&&(a.onItem&&a.onItem.call(b,n,a),h.push(n));g++},onComplete:function(){(h.length>=
f||r==l.length-1)&&a.onComplete&&a.onComplete.call(b,h,a)}}))});return a},getFeatures:function(){return{"dojo.data.api.Read":!0,"dojo.data.api.Identity":!0}},close:function(a){},getLabel:function(a){for(var b=0;b<this.stores.length;b++)if(this.stores[b].isItem(a))return this.stores[b].getLabel(a)},getIdentity:function(a){for(var b=0;b<this.stores.length;b++)if(this.stores[b].isItem(a))return this.stores[b].getIdentity(a)},getLabelAttributes:function(a){throw Error("Unimplemented API: dojo.data.api.Read.getLabelAttributes");
}});dojo.mixin(dojo.i18n,mill.i18n);dojo.mixin(dojo.i18n,{substituteNodes:function(a,b){if(1==a.nodeType){if(dijit.byNode(a)&&(dijit.byNode(a).attr("placeHolder")&&dijit.byNode(a).attr("placeHolder",dojo.i18n.substitute(dijit.byNode(a).attr("placeHolder"),b)),dijit.byNode(a).attr("missingMessage")&&dijit.byNode(a).attr("missingMessage",dojo.i18n.substitute(dijit.byNode(a).attr("missingMessage"),b)),dijit.byNode(a).attr("invalidMessage")&&dijit.byNode(a).attr("invalidMessage",dojo.i18n.substitute(dijit.byNode(a).attr("invalidMessage"),
b)),dijit.byNode(a).attr("promptMessage")&&dijit.byNode(a).attr("promptMessage",dojo.i18n.substitute(dijit.byNode(a).attr("promptMessage"),b)),dijit.byNode(a).options))for(var e=0;e<dijit.byNode(a).options.length;e++)dijit.byNode(a).options[e].label=dojo.i18n.substitute(dijit.byNode(a).options[e].label,b)}else if(2==a.nodeType)a.value!=dojo.i18n.substitute(a.value,b)&&(a.value=dojo.i18n.substitute(a.value,b));else if(3==a.nodeType)if(a.textContent&&a.textContent!=dojo.i18n.substitute(a.textContent,
b)&&1==a.parentNode.nodeType)if(e=dojo.i18n.substitute(a.textContent,b),e.toString().match(/.*<.*>.*/g)){var f=document.createElement("span");dojo.html.set(f,e);a.parentNode.replaceChild(f,a)}else a.textContent=e;else a.nodeValue&&a.nodeValue!=dojo.i18n.substitute(a.nodeValue,b)&&1==a.parentNode.nodeType&&(e=dojo.i18n.substitute(a.nodeValue,b),e.toString().match(/.*<.*>.*/g)?(f=document.createElement("span"),dojo.html.set(f,e),a.parentNode.replaceChild(f,a)):a.nodeValue=e);if(a.childNodes)for(f=a.childNodes,
e=0;e<f.length;e++)dojo.i18n.substituteNodes(f[e],b);if(a.attributes)for(f=a.attributes,e=0;e<f.length;e++)dojo.i18n.substituteNodes(f[e],b)}});return mill});
// SIG // Begin signature block
// SIG // MIIn2AYJKoZIhvcNAQcCoIInyTCCJ8UCAQExCzAJBgUr
// SIG // DgMCGgUAMGcGCisGAQQBgjcCAQSgWTBXMDIGCisGAQQB
// SIG // gjcCAR4wJAIBAQQQEODJBs441BGiowAQS9NQkAIBAAIB
// SIG // AAIBAAIBAAIBADAhMAkGBSsOAwIaBQAEFJsECp+BrW1R
// SIG // aqHbdGTF0T6qjVgcoIIhATCCBY0wggR1oAMCAQICEA6b
// SIG // GI750C3n79tQ4ghAGFowDQYJKoZIhvcNAQEMBQAwZTEL
// SIG // MAkGA1UEBhMCVVMxFTATBgNVBAoTDERpZ2lDZXJ0IElu
// SIG // YzEZMBcGA1UECxMQd3d3LmRpZ2ljZXJ0LmNvbTEkMCIG
// SIG // A1UEAxMbRGlnaUNlcnQgQXNzdXJlZCBJRCBSb290IENB
// SIG // MB4XDTIyMDgwMTAwMDAwMFoXDTMxMTEwOTIzNTk1OVow
// SIG // YjELMAkGA1UEBhMCVVMxFTATBgNVBAoTDERpZ2lDZXJ0
// SIG // IEluYzEZMBcGA1UECxMQd3d3LmRpZ2ljZXJ0LmNvbTEh
// SIG // MB8GA1UEAxMYRGlnaUNlcnQgVHJ1c3RlZCBSb290IEc0
// SIG // MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA
// SIG // v+aQc2jeu+RdSjwwIjBpM+zCpyUuySE98orYWcLhKac9
// SIG // WKt2ms2uexuEDcQwH/MbpDgW61bGl20dq7J58soR0uRf
// SIG // 1gU8Ug9SH8aeFaV+vp+pVxZZVXKvaJNwwrK6dZlqczKU
// SIG // 0RBEEC7fgvMHhOZ0O21x4i0MG+4g1ckgHWMpLc7sXk7I
// SIG // k/ghYZs06wXGXuxbGrzryc/NrDRAX7F6Zu53yEioZldX
// SIG // n1RYjgwrt0+nMNlW7sp7XeOtyU9e5TXnMcvak17cjo+A
// SIG // 2raRmECQecN4x7axxLVqGDgDEI3Y1DekLgV9iPWCPhCR
// SIG // cKtVgkEy19sEcypukQF8IUzUvK4bA3VdeGbZOjFEmjNA
// SIG // vwjXWkmkwuapoGfdpCe8oU85tRFYF/ckXEaPZPfBaYh2
// SIG // mHY9WV1CdoeJl2l6SPDgohIbZpp0yt5LHucOY67m1O+S
// SIG // kjqePdwA5EUlibaaRBkrfsCUtNJhbesz2cXfSwQAzH0c
// SIG // lcOP9yGyshG3u3/y1YxwLEFgqrFjGESVGnZifvaAsPvo
// SIG // ZKYz0YkH4b235kOkGLimdwHhD5QMIR2yVCkliWzlDlJR
// SIG // R3S+Jqy2QXXeeqxfjT/JvNNBERJb5RBQ6zHFynIWIgnf
// SIG // fEx1P2PsIV/EIFFrb7GrhotPwtZFX50g/KEexcCPorF+
// SIG // CiaZ9eRpL5gdLfXZqbId5RsCAwEAAaOCATowggE2MA8G
// SIG // A1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFOzX44LScV1k
// SIG // TN8uZz/nupiuHA9PMB8GA1UdIwQYMBaAFEXroq/0ksuC
// SIG // MS1Ri6enIZ3zbcgPMA4GA1UdDwEB/wQEAwIBhjB5Bggr
// SIG // BgEFBQcBAQRtMGswJAYIKwYBBQUHMAGGGGh0dHA6Ly9v
// SIG // Y3NwLmRpZ2ljZXJ0LmNvbTBDBggrBgEFBQcwAoY3aHR0
// SIG // cDovL2NhY2VydHMuZGlnaWNlcnQuY29tL0RpZ2lDZXJ0
// SIG // QXNzdXJlZElEUm9vdENBLmNydDBFBgNVHR8EPjA8MDqg
// SIG // OKA2hjRodHRwOi8vY3JsMy5kaWdpY2VydC5jb20vRGln
// SIG // aUNlcnRBc3N1cmVkSURSb290Q0EuY3JsMBEGA1UdIAQK
// SIG // MAgwBgYEVR0gADANBgkqhkiG9w0BAQwFAAOCAQEAcKC/
// SIG // Q1xV5zhfoKN0Gz22Ftf3v1cHvZqsoYcs7IVeqRq7IviH
// SIG // GmlUIu2kiHdtvRoU9BNKei8ttzjv9P+Aufih9/Jy3iS8
// SIG // UgPITtAq3votVs/59PesMHqai7Je1M/RQ0SbQyHrlnKh
// SIG // SLSZy51PpwYDE3cnRNTnf+hZqPC/Lwum6fI0POz3A8eH
// SIG // qNJMQBk1RmppVLC4oVaO7KTVPeix3P0c2PR3WlxUjG/v
// SIG // oVA9/HYJaISfb8rbII01YBwCA8sgsKxYoA5AY8WYIsGy
// SIG // WfVVa88nq2x2zm8jLfR+cWojayL/ErhULSd+2DrZ8LaH
// SIG // lv1b0VysGMNNn3O3AamfV6peKOK5lDCCBrQwggScoAMC
// SIG // AQICEA3HrFcF/yGZLkBDIgw6SYYwDQYJKoZIhvcNAQEL
// SIG // BQAwYjELMAkGA1UEBhMCVVMxFTATBgNVBAoTDERpZ2lD
// SIG // ZXJ0IEluYzEZMBcGA1UECxMQd3d3LmRpZ2ljZXJ0LmNv
// SIG // bTEhMB8GA1UEAxMYRGlnaUNlcnQgVHJ1c3RlZCBSb290
// SIG // IEc0MB4XDTI1MDUwNzAwMDAwMFoXDTM4MDExNDIzNTk1
// SIG // OVowaTELMAkGA1UEBhMCVVMxFzAVBgNVBAoTDkRpZ2lD
// SIG // ZXJ0LCBJbmMuMUEwPwYDVQQDEzhEaWdpQ2VydCBUcnVz
// SIG // dGVkIEc0IFRpbWVTdGFtcGluZyBSU0E0MDk2IFNIQTI1
// SIG // NiAyMDI1IENBMTCCAiIwDQYJKoZIhvcNAQEBBQADggIP
// SIG // ADCCAgoCggIBALR4MdMKmEFyvjxGwBysddujRmh0tFEX
// SIG // nU2tjQ2UtZmWgyxU7UNqEY81FzJsQqr5G7A6c+Gh/qm8
// SIG // Xi4aPCOo2N8S9SLrC6Kbltqn7SWCWgzbNfiR+2fkHUil
// SIG // jNOqnIVD/gG3SYDEAd4dg2dDGpeZGKe+42DFUF0mR/vt
// SIG // La4+gKPsYfwEu7EEbkC9+0F2w4QJLVSTEG8yAR2CQWIM
// SIG // 1iI5PHg62IVwxKSpO0XaF9DPfNBKS7Zazch8NF5vp7ea
// SIG // Z2CVNxpqumzTCNSOxm+SAWSuIr21Qomb+zzQWKhxKTVV
// SIG // gtmUPAW35xUUFREmDrMxSNlr/NsJyUXzdtFUUt4aS4CE
// SIG // eIY8y9IaaGBpPNXKFifinT7zL2gdFpBP9qh8SdLnEut/
// SIG // GcalNeJQ55IuwnKCgs+nrpuQNfVmUB5KlCX3ZA4x5HHK
// SIG // S+rqBvKWxdCyQEEGcbLe1b8Aw4wJkhU1JrPsFfxW1gao
// SIG // u30yZ46t4Y9F20HHfIY4/6vHespYMQmUiote8ladjS/n
// SIG // J0+k6MvqzfpzPDOy5y6gqztiT96Fv/9bH7mQyogxG9QE
// SIG // PHrPV6/7umw052AkyiLA6tQbZl1KhBtTasySkuJDpsZG
// SIG // Kdlsjg4u70EwgWbVRSX1Wd4+zoFpp4Ra+MlKM2baoD6x
// SIG // 0VR4RjSpWM8o5a6D8bpfm4CLKczsG7ZrIGNTAgMBAAGj
// SIG // ggFdMIIBWTASBgNVHRMBAf8ECDAGAQH/AgEAMB0GA1Ud
// SIG // DgQWBBTvb1NK6eQGfHrK4pBW9i/USezLTjAfBgNVHSME
// SIG // GDAWgBTs1+OC0nFdZEzfLmc/57qYrhwPTzAOBgNVHQ8B
// SIG // Af8EBAMCAYYwEwYDVR0lBAwwCgYIKwYBBQUHAwgwdwYI
// SIG // KwYBBQUHAQEEazBpMCQGCCsGAQUFBzABhhhodHRwOi8v
// SIG // b2NzcC5kaWdpY2VydC5jb20wQQYIKwYBBQUHMAKGNWh0
// SIG // dHA6Ly9jYWNlcnRzLmRpZ2ljZXJ0LmNvbS9EaWdpQ2Vy
// SIG // dFRydXN0ZWRSb290RzQuY3J0MEMGA1UdHwQ8MDowOKA2
// SIG // oDSGMmh0dHA6Ly9jcmwzLmRpZ2ljZXJ0LmNvbS9EaWdp
// SIG // Q2VydFRydXN0ZWRSb290RzQuY3JsMCAGA1UdIAQZMBcw
// SIG // CAYGZ4EMAQQCMAsGCWCGSAGG/WwHATANBgkqhkiG9w0B
// SIG // AQsFAAOCAgEAF877FoAc/gc9EXZxML2+C8i1NKZ/zdCH
// SIG // xYgaMH9Pw5tcBnPw6O6FTGNpoV2V4wzSUGvI9NAzaoQk
// SIG // 97frPBtIj+ZLzdp+yXdhOP4hCFATuNT+ReOPK0mCefSG
// SIG // +tXqGpYZ3essBS3q8nL2UwM+NMvEuBd/2vmdYxDCvwzJ
// SIG // v2sRUoKEfJ+nN57mQfQXwcAEGCvRR2qKtntujB71WPYA
// SIG // gwPyWLKu6RnaID/B0ba2H3LUiwDRAXx1Neq9ydOal95C
// SIG // HfmTnM4I+ZI2rVQfjXQA1WSjjf4J2a7jLzWGNqNX+DF0
// SIG // SQzHU0pTi4dBwp9nEC8EAqoxW6q17r0z0noDjs6+BFo+
// SIG // z7bKSBwZXTRNivYuve3L2oiKNqetRHdqfMTCW/NmKLJ9
// SIG // M+MtucVGyOxiDf06VXxyKkOirv6o02OoXN4bFzK0vlNM
// SIG // svhlqgF2puE6FndlENSmE+9JGYxOGLS/D284NHNboDGc
// SIG // mWXfwXRy4kbu4QFhOm0xJuF2EZAOk5eCkhSxZON3rGlH
// SIG // qhpB/8MluDezooIs8CVnrpHMiD2wL40mm53+/j7tFaxY
// SIG // KIqL0Q4ssd8xHZnIn/7GELH3IdvG2XlM9q7WP/UwgOkw
// SIG // /HQtyRN62JK4S1C8uw3PdBunvAZapsiI5YKdvlarEvf8
// SIG // EA+8hcpSM9LHJmyrxaFtoza2zNaQ9k+5t1wwgga/MIIE
// SIG // p6ADAgECAhEAgU5CF6Epf+1azNQX+JGtdTANBgkqhkiG
// SIG // 9w0BAQsFADBTMQswCQYDVQQGEwJCRTEZMBcGA1UEChMQ
// SIG // R2xvYmFsU2lnbiBudi1zYTEpMCcGA1UEAxMgR2xvYmFs
// SIG // U2lnbiBDb2RlIFNpZ25pbmcgUm9vdCBSNDUwHhcNMjQw
// SIG // NjE5MDMyNTExWhcNMzgwNzI4MDAwMDAwWjBZMQswCQYD
// SIG // VQQGEwJCRTEZMBcGA1UEChMQR2xvYmFsU2lnbiBudi1z
// SIG // YTEvMC0GA1UEAxMmR2xvYmFsU2lnbiBHQ0MgUjQ1IENv
// SIG // ZGVTaWduaW5nIENBIDIwMjAwggIiMA0GCSqGSIb3DQEB
// SIG // AQUAA4ICDwAwggIKAoICAQDWQk3540/GI/RsHYGmMPdI
// SIG // Pc/Q5Y3lICKWB0Q1XQbPDx1wYOYmVPpTI2ACqF8CAveO
// SIG // yW49qXgFvY71TxkkmXzPERabH3tr0qN7aGV3q9ixLD/T
// SIG // cgYyXFusUGcsJU1WBjb8wWJMfX2GFpWaXVS6UNCwf6JE
// SIG // GenWbmw+E8KfEdRfNFtRaDFjCvhb0N66WV8xr4loOEA+
// SIG // COhTZ05jtiGO792NhUFVnhy8N9yVoMRxpx8bpUluCiBZ
// SIG // fomjWBWXACVp397CalBlTlP7a6GfGB6KDl9UXr3gW8/y
// SIG // DATS3gihECb3svN6LsKOlsE/zqXa9FkojDdloTGWC46k
// SIG // dncVSYRmgiXnQwp3UrGZUUL/obLdnNLcGNnBhqlAHUGX
// SIG // Yoa8qP+ix2MXBv1mejaUASCJeB+Q9HupUk5qT1QGKoCv
// SIG // nsdQQvplCuMB9LFurA6o44EZqDjIngMohqR0p0eVfnJa
// SIG // KnsVahzEaeawvkAZmcvSfVVOIpwQ4KFbw7MueovE3vFL
// SIG // H4woeTBFf2wTtj0s/y1KiirsKA8tytScmIpKbVo2LC/f
// SIG // usviQUoIdxiIrTVhlBLzpHLr7jaep1EnkTz3ohrM/Ifl
// SIG // l+FRh2npIsyDwLcPRWwH4UNP1IxKzs9jsbWkEHr5DQwo
// SIG // sGs0/iFoJ2/s+PomhFt1Qs2JJnlZnWurY3FikCUNCCDx
// SIG // /wIDAQABo4IBhjCCAYIwDgYDVR0PAQH/BAQDAgGGMBMG
// SIG // A1UdJQQMMAoGCCsGAQUFBwMDMBIGA1UdEwEB/wQIMAYB
// SIG // Af8CAQAwHQYDVR0OBBYEFNqzjcAkkKNrd9MMoFndIWdk
// SIG // dgt4MB8GA1UdIwQYMBaAFB8Av0aACvx4ObeltEPZVlC7
// SIG // zpY7MIGTBggrBgEFBQcBAQSBhjCBgzA5BggrBgEFBQcw
// SIG // AYYtaHR0cDovL29jc3AuZ2xvYmFsc2lnbi5jb20vY29k
// SIG // ZXNpZ25pbmdyb290cjQ1MEYGCCsGAQUFBzAChjpodHRw
// SIG // Oi8vc2VjdXJlLmdsb2JhbHNpZ24uY29tL2NhY2VydC9j
// SIG // b2Rlc2lnbmluZ3Jvb3RyNDUuY3J0MEEGA1UdHwQ6MDgw
// SIG // NqA0oDKGMGh0dHA6Ly9jcmwuZ2xvYmFsc2lnbi5jb20v
// SIG // Y29kZXNpZ25pbmdyb290cjQ1LmNybDAuBgNVHSAEJzAl
// SIG // MAgGBmeBDAEEATALBgkrBgEEAaAyATIwDAYKKwYBBAGg
// SIG // MgoEAjANBgkqhkiG9w0BAQsFAAOCAgEAMhDkvBelgxBA
// SIG // ndOp/SfPRXKpxR9LM1lvLDIxeXGE1jZn1at0/NTyBjpu
// SIG // tdbL8UKDlr193pUsGu1q40EcpsiJMcJZbIm8KiMDWVBH
// SIG // Sf1vUw4qKMxIVO/zIxhbkjZOvKNj1MP7AA+A0SDCyuWW
// SIG // uvCaW6qkJXoZ2/rbe1NP+baj2WPVdV8BpSjbthgpFGV5
// SIG // nNu064iYFFNQYDEMZrNR427JKSZk8BTRc3jEhI0+FKWS
// SIG // Wat5QUbqNM+BdkY6kXgZc77+BvXXwYQ5oHBMCjUAXtgq
// SIG // MCQfMne24Xzfs0ZB4fptjePjC58vQNmlOg1kyb6M0RrJ
// SIG // ZSA64gD6TnohN0FwmZ1QH5l7dZB0c01FpU5Yf912apBY
// SIG // iWaTZKP+VPdNquvlIO5114iyHQw8vKGSoFbkR/xnD+p4
// SIG // Kd+Po8fZ4zF4pwsplGscJ10hJ4fio+/IQJAuXBcoJdMB
// SIG // RBergNp8lKhbI/wgnpuRoZD/sw3lckQsRxXz1JFyJvny
// SIG // BeMBZ/dptd4Ftv4okIx/oSk7tyzaZCJplsT001cNKoXG
// SIG // u2horIvxUktkbqq4t+xNFBz6qBQ4zuwl6+Ri3TX5uHsH
// SIG // XRtDZwIIaz2/JSODgZZzB+7+WFo8N9qg21/SnDpGkpzE
// SIG // JhwJMNol5A4dkHPUHodOaYSBkc1lfuc1+oOAatM0HUan
// SIG // eAimeDIlZnowggbtMIIE1aADAgECAhAKgO8YS43xBYLR
// SIG // xHanlXRoMA0GCSqGSIb3DQEBCwUAMGkxCzAJBgNVBAYT
// SIG // AlVTMRcwFQYDVQQKEw5EaWdpQ2VydCwgSW5jLjFBMD8G
// SIG // A1UEAxM4RGlnaUNlcnQgVHJ1c3RlZCBHNCBUaW1lU3Rh
// SIG // bXBpbmcgUlNBNDA5NiBTSEEyNTYgMjAyNSBDQTEwHhcN
// SIG // MjUwNjA0MDAwMDAwWhcNMzYwOTAzMjM1OTU5WjBjMQsw
// SIG // CQYDVQQGEwJVUzEXMBUGA1UEChMORGlnaUNlcnQsIElu
// SIG // Yy4xOzA5BgNVBAMTMkRpZ2lDZXJ0IFNIQTI1NiBSU0E0
// SIG // MDk2IFRpbWVzdGFtcCBSZXNwb25kZXIgMjAyNSAxMIIC
// SIG // IjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA0Eas
// SIG // LRLGntDqrmBWsytXum9R/4ZwCgHfyjfMGUIwYzKomd8U
// SIG // 1nH7C8Dr0cVMF3BsfAFI54um8+dnxk36+jx0Tb+k+87H
// SIG // 9WPxNyFPJIDZHhAqlUPt281mHrBbZHqRK71Em3/hCGC5
// SIG // KyyneqiZ7syvFXJ9A72wzHpkBaMUNg7MOLxI6E9RaUue
// SIG // HTQKWXymOtRwJXcrcTTPPT2V1D/+cFllESviH8YjoPFv
// SIG // ZSjKs3SKO1QNUdFd2adw44wDcKgH+JRJE5Qg0NP3yiSy
// SIG // i5MxgU6cehGHr7zou1znOM8odbkqoK+lJ25LCHBSai25
// SIG // CFyD23DZgPfDrJJJK77epTwMP6eKA0kWa3osAe8fcpK4
// SIG // 0uhktzUd/Yk0xUvhDU6lvJukx7jphx40DQt82yepyekl
// SIG // 4i0r8OEps/FNO4ahfvAk12hE5FVs9HVVWcO5J4dVmVzi
// SIG // x4A77p3awLbr89A90/nWGjXMGn7FQhmSlIUDy9Z2hSgc
// SIG // taepZTd0ILIUbWuhKuAeNIeWrzHKYueMJtItnj2Q+aTy
// SIG // LLKLM0MheP/9w6CtjuuVHJOVoIJ/DtpJRE7Ce7vMRHoR
// SIG // on4CWIvuiNN1Lk9Y+xZ66lazs2kKFSTnnkrT3pXWETTJ
// SIG // khd76CIDBbTRofOsNyEhzZtCGmnQigpFHti58CSmvEyJ
// SIG // cAlDVcKacJ+A9/z7eacCAwEAAaOCAZUwggGRMAwGA1Ud
// SIG // EwEB/wQCMAAwHQYDVR0OBBYEFOQ7/PIx7f391/ORcWMZ
// SIG // UEPPYYzoMB8GA1UdIwQYMBaAFO9vU0rp5AZ8esrikFb2
// SIG // L9RJ7MtOMA4GA1UdDwEB/wQEAwIHgDAWBgNVHSUBAf8E
// SIG // DDAKBggrBgEFBQcDCDCBlQYIKwYBBQUHAQEEgYgwgYUw
// SIG // JAYIKwYBBQUHMAGGGGh0dHA6Ly9vY3NwLmRpZ2ljZXJ0
// SIG // LmNvbTBdBggrBgEFBQcwAoZRaHR0cDovL2NhY2VydHMu
// SIG // ZGlnaWNlcnQuY29tL0RpZ2lDZXJ0VHJ1c3RlZEc0VGlt
// SIG // ZVN0YW1waW5nUlNBNDA5NlNIQTI1NjIwMjVDQTEuY3J0
// SIG // MF8GA1UdHwRYMFYwVKBSoFCGTmh0dHA6Ly9jcmwzLmRp
// SIG // Z2ljZXJ0LmNvbS9EaWdpQ2VydFRydXN0ZWRHNFRpbWVT
// SIG // dGFtcGluZ1JTQTQwOTZTSEEyNTYyMDI1Q0ExLmNybDAg
// SIG // BgNVHSAEGTAXMAgGBmeBDAEEAjALBglghkgBhv1sBwEw
// SIG // DQYJKoZIhvcNAQELBQADggIBAGUqrfEcJwS5rmBB7NEI
// SIG // RJ5jQHIh+OT2Ik/bNYulCrVvhREafBYF0RkP2AGr181o
// SIG // 2YWPoSHz9iZEN/FPsLSTwVQWo2H62yGBvg7ouCODwrx6
// SIG // ULj6hYKqdT8wv2UV+Kbz/3ImZlJ7YXwBD9R0oU62Ptgx
// SIG // Oao872bOySCILdBghQ/ZLcdC8cbUUO75ZSpbh1oipOhc
// SIG // UT8lD8QAGB9lctZTTOJM3pHfKBAEcxQFoHlt2s9sXoxF
// SIG // izTeHihsQyfFg5fxUFEp7W42fNBVN4ueLaceRf9Cq9ec
// SIG // 1v5iQMWTFQa0xNqItH3CPFTG7aEQJmmrJTV3Qhtfparz
// SIG // +BW60OiMEgV5GWoBy4RVPRwqxv7Mk0Sy4QHs7v9y69NB
// SIG // qycz0BZwhB9WOfOu/CIJnzkQTwtSSpGGhLdjnQ4eBpjt
// SIG // P+XB3pQCtv4E5UCSDag6+iX8MmB10nfldPF9SVD7weCC
// SIG // 3yXZi/uuhqdwkgVxuiMFzGVFwYbQsiGnoa9F5AaAyBjF
// SIG // BtXVLcKtapnMG3VH3EmAp/jsJ3FVF3+d1SVDTmjFjLbN
// SIG // FZUWMXuZyvgLfgyPehwJVxwC+UpX2MSey2ueIu9THFVk
// SIG // T+um1vshETaWyQo8gmBto/m3acaP9QsuLj3FNwFlTxq2
// SIG // 5+T4QwX9xa6ILs84ZPvmpovq90K8eWyG2N01c4IhSOxq
// SIG // t81nMIIHADCCBOigAwIBAgIMFPHZ2Zi5UkBqr23/MA0G
// SIG // CSqGSIb3DQEBCwUAMFkxCzAJBgNVBAYTAkJFMRkwFwYD
// SIG // VQQKExBHbG9iYWxTaWduIG52LXNhMS8wLQYDVQQDEyZH
// SIG // bG9iYWxTaWduIEdDQyBSNDUgQ29kZVNpZ25pbmcgQ0Eg
// SIG // MjAyMDAeFw0yNDA1MDgxMzAyMDdaFw0yNzA4MDUxMzAy
// SIG // MDdaMG4xCzAJBgNVBAYTAlJVMRYwFAYDVQQIEw1Nb3Nj
// SIG // b3cgT2JsYXN0MQ8wDQYDVQQHEwZLaGlta2kxGjAYBgNV
// SIG // BAoTEVRFQ0hOT0xPR0lBRSBNSUxMMRowGAYDVQQDExFU
// SIG // RUNITk9MT0dJQUUgTUlMTDCCAiIwDQYJKoZIhvcNAQEB
// SIG // BQADggIPADCCAgoCggIBAMTRdq/ocQ+wNVWIsw48n264
// SIG // pIT6f8KxXtEF0g1CxrTYF2NimLIK7Zv0salquXnsOdPC
// SIG // DwxJsSzGwCiI3nHYYjVg/Q5UQ73waG0jsnPmZssyYNFl
// SIG // brFJuuVIsf3cVSzsnedwNr3bDpfIEF0sXzL0Ji1nwoSJ
// SIG // fWycEmNPIc+6ANZTCViPwPYn8XAvdHRJDPcwADhlD8HY
// SIG // rjnuV/R6jliWXe5TRSItGQKqA0Djv+d266VoXBWm7FTf
// SIG // VkCSOr7HbOiol7Qi6GKOz4h4knYh9wKWf7QHAEivq2Ob
// SIG // JuSL8GDndBPlKRiC/jtVBFJrBL7sz+lzKIm0TWSKLDlN
// SIG // gZsjOJZkoLSTBC8GI9N17kocmpx4cO4SA1Sd2DHrlgdW
// SIG // 1QDxpwB6BHti8T9Pi/sjBrpQ5h1Sn3hQ3Y2cNLfK3TqU
// SIG // IvzDPoTV6/NMRbCI8881UZZLHnjroG/mamERJ2rTE0cc
// SIG // EUVajgea+ODHqogd389u4md0ZPNXGzqfaptzJmvBUTwp
// SIG // Ox7XhFaiKT9XrdObhVr9k0CCwWH65QbZxPFEFEEi8Wj9
// SIG // T3i5BXjJSad1R9hkb64m8mB9r2jvIHlTJMwMLrPFqd2j
// SIG // IBbgZb5fw1HSj6GZQQK92ZuzzexpQ3a6VL6Fi34wtDeB
// SIG // ggHDy4drdG3CR+tbLu/lGeMl1C6l2uPep1vOc7tGYOIt
// SIG // AgMBAAGjggGxMIIBrTAOBgNVHQ8BAf8EBAMCB4AwgZsG
// SIG // CCsGAQUFBwEBBIGOMIGLMEoGCCsGAQUFBzAChj5odHRw
// SIG // Oi8vc2VjdXJlLmdsb2JhbHNpZ24uY29tL2NhY2VydC9n
// SIG // c2djY3I0NWNvZGVzaWduY2EyMDIwLmNydDA9BggrBgEF
// SIG // BQcwAYYxaHR0cDovL29jc3AuZ2xvYmFsc2lnbi5jb20v
// SIG // Z3NnY2NyNDVjb2Rlc2lnbmNhMjAyMDBWBgNVHSAETzBN
// SIG // MEEGCSsGAQQBoDIBMjA0MDIGCCsGAQUFBwIBFiZodHRw
// SIG // czovL3d3dy5nbG9iYWxzaWduLmNvbS9yZXBvc2l0b3J5
// SIG // LzAIBgZngQwBBAEwCQYDVR0TBAIwADBFBgNVHR8EPjA8
// SIG // MDqgOKA2hjRodHRwOi8vY3JsLmdsb2JhbHNpZ24uY29t
// SIG // L2dzZ2NjcjQ1Y29kZXNpZ25jYTIwMjAuY3JsMBMGA1Ud
// SIG // JQQMMAoGCCsGAQUFBwMDMB8GA1UdIwQYMBaAFNqzjcAk
// SIG // kKNrd9MMoFndIWdkdgt4MB0GA1UdDgQWBBToMms2YkG6
// SIG // 3TzCnwI/BzYwiRB4NTANBgkqhkiG9w0BAQsFAAOCAgEA
// SIG // nLeHG08y6cgrnh9G1/PJse7mpbEZ2o+B6NDHqYKKcIA+
// SIG // ekdf9CnRDzaBvscwh53ZS06qqPugDhInUQeUjWzJvMGO
// SIG // wmtlp0WC/J1SVLc70NlAQXOoFR9c+1tFBRn07eIZONW6
// SIG // kx79TAdXdS/EWbU5UUrNSCLZQ+15/fcGLWW36+uEmCXA
// SIG // O5odyDdPhv6ckxgMWbMgUyqxUC+4CIaubl5BCd3pUfAO
// SIG // DdfPteb+/oWQIJkCCrVYndO0SOiLSFDNCC/wkxa0TnAU
// SIG // lv7mzhytYYhpv8npk+8QKUXbHDzHL1M8H1B2FOiEJ7y5
// SIG // +41VOR0VRon4f0XWa4mceZ5IpztNl3s6yKQMu7617OTW
// SIG // /BWyHUdGxr1GwfVHGhVS9lb8TDiHNNWEVdtzDYHsB6We
// SIG // aSFxmKk8vLaRmbL54y1d9hIypfSdSLcXwFse9kTF7N1R
// SIG // oKl8XioJLbWqhPypVT8OdAOPwfpL+v3ITXOhy5mxnCEQ
// SIG // F1355KWukMMk3GFLDYTZx8CaPcaq6gwxJl3YibZr6d9E
// SIG // /KHV1P4f9rqzjqOCe0TV51dY5jKRzRh55mu3f6aIDI6L
// SIG // B4lZCeSLyt+BJ/JgpOX5oclHaB3F4jkhj4rIvGzIGBeE
// SIG // EkqndlaI8e9Thmix7+gfKpVcedIlA3lN0ewibUQ7dqUE
// SIG // hRkwPV2bmtgF2DaRUJx7+3QxggZDMIIGPwIBATBpMFkx
// SIG // CzAJBgNVBAYTAkJFMRkwFwYDVQQKExBHbG9iYWxTaWdu
// SIG // IG52LXNhMS8wLQYDVQQDEyZHbG9iYWxTaWduIEdDQyBS
// SIG // NDUgQ29kZVNpZ25pbmcgQ0EgMjAyMAIMFPHZ2Zi5UkBq
// SIG // r23/MAkGBSsOAwIaBQCggYYwGQYJKoZIhvcNAQkDMQwG
// SIG // CisGAQQBgjcCAQQwHAYKKwYBBAGCNwIBCzEOMAwGCisG
// SIG // AQQBgjcCARUwIwYJKoZIhvcNAQkEMRYEFAsez5vlWBeA
// SIG // HvCGa9rngk/71V/lMCYGCisGAQQBgjcCAQwxGDAWoRSA
// SIG // Emh0dHA6Ly90ZWNobWlsbC5ydTANBgkqhkiG9w0BAQEF
// SIG // AASCAgA53qlXH4W+uJuUbyawr9ZzlhwtuQfZ8qlC0fCm
// SIG // wS7dSpuFBpUYW/83YKUaAD5LM43jGYxhB6iI5qiwPq8t
// SIG // bt+8WdsAxZNc5fkL5JvCs/jDSbTtQ14J/8j1Bdp2EF3D
// SIG // hvnk8o8rN6/5AtK83YOuTeFDm6Gn9Ss7JBbgZ9aw4I89
// SIG // B6BLz3UTyh3furXxEdZQJRYPZuYUc6FQx1yHMSfR0OzO
// SIG // xYl4SIyJx5C66dEuYAvkDSCD6400L/VtFaDxKHVv23Di
// SIG // 9SqVZNdOx8Ak9uyOAhpjBeeJ/NxZcy+nPyWdF83M+oKA
// SIG // S3a/2ZhXevs3Ne1aJE3eB0fbUzTGujkgprmSIERuyCGt
// SIG // axTsH/IbKzX+jPumn/q3IbhMUXnI16nSgBVEzb5o7pas
// SIG // 6FakhNthd6CVhFn4tEqHLVAKm9HVENcqoeUx+b4+Jnqr
// SIG // XYQMM7Ig4qocpcIUH1r/4e6h4uNcZU3uXQx9F3ifraZO
// SIG // /jgMll/XN0nlbzbt9ftDrQcIU618HqjyCMxAQ64iB9HW
// SIG // pxJbpXxBl08vg9BxPMd8nZbDW8D4GkkeERizxgLMcFs5
// SIG // +xP2iEJjUB5JybFr38VFRV8n3Rzs29Ssuq7j3ZjfJOf7
// SIG // qSnyhjFjaJZsj06y6oTN+fiSSHH+xxr8Q/cXz12i2LEo
// SIG // MaFq62l6D0g5NsWjh7+lD0LYRfNfWqGCAyYwggMiBgkq
// SIG // hkiG9w0BCQYxggMTMIIDDwIBATB9MGkxCzAJBgNVBAYT
// SIG // AlVTMRcwFQYDVQQKEw5EaWdpQ2VydCwgSW5jLjFBMD8G
// SIG // A1UEAxM4RGlnaUNlcnQgVHJ1c3RlZCBHNCBUaW1lU3Rh
// SIG // bXBpbmcgUlNBNDA5NiBTSEEyNTYgMjAyNSBDQTECEAqA
// SIG // 7xhLjfEFgtHEdqeVdGgwDQYJYIZIAWUDBAIBBQCgaTAY
// SIG // BgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3
// SIG // DQEJBTEPFw0yNjA3MjUyMjEyMTJaMC8GCSqGSIb3DQEJ
// SIG // BDEiBCAPpKlFoXbWVlJrKc/5fyMFBUbOH5bxVidNfPTe
// SIG // SJueDzANBgkqhkiG9w0BAQEFAASCAgBEzbfBfYMuC5OJ
// SIG // cZ/YPqYLzVv5F/+7Q9H9h7YGxFe+DydXRAefYXD/WlCY
// SIG // GpwzfiNh+5U/fogQoAgVIQ57O24Wra1OLZza1lLFblCe
// SIG // n5uOq+YrvOo9BmOzx0NWDBPKrgRjFCN1xhHdR/1oVXxF
// SIG // hq/3/IcEAyyyBBYmgcQellzgt3/UkPNbznHLIogopbDt
// SIG // qx7XBOYh8hN0HQ6ucb6rGg20oKtg09Vh0HuRV4Z/yx4Z
// SIG // /zgRsvS6riWBXQibVEt5DIQdWBfdBKKxkRlutkArtzyr
// SIG // ee5lXvHnCxJYGl/J9LPrb4wjwKIIl1FrIg9SZl2wButx
// SIG // tGgJS6Z3O3ent9Awsj90kDYiFqXIC6P1rwrS8ipXDN/A
// SIG // 12gw5uPocLl5pXhDg7OM0GtU1iY9c5A9D8ZL1zPMDKuT
// SIG // /saESr20/NDTUBI9JAdtiQhBmmfY6SSVTMVSRvG7d/5j
// SIG // AohcDvK6rKmyHC6rpydTKXXT0oc/Axbx6bdsTj80Qk1w
// SIG // EEy3+BhuHhAw+1jXwh5kDfgrLAy0ZDxVivjU8wrx6yFv
// SIG // W8T8Oy7Uf+irSvhu6HtTQkU2vGEMjvoTAjnt60i7B7lt
// SIG // Iyftg4njynmSam9Rmq32ifNOPJf6Xw5LHzIyLoIRRfFM
// SIG // zwJ2kJvoxOKrphVutv7P9L1nT3CZ6f33nqaOa8nVj68/
// SIG // SICum3rMcQ==
// SIG // End signature block
