text: // All material copyright ESRI, All Rights Reserved, unless otherwise specified.
  // See http://@sbaseurl@/jsapi/jsapi/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details.
  
  //>>built
  require({cache:{"widgets/Splash/setting/ColorPickerEditor":function(){define("dojo/_base/declare dojo/_base/lang dojo/_base/Color dojo/on dojo/query dojo/_base/html dijit/_WidgetBase dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dojo/text!./ColorPickerEditor.html dijit/form/HorizontalSlider jimu/dijit/ColorPickerPopup dijit/form/NumberSpinner".split(" "),function(h,q,r,m,p,b,a,c,d,e,f,l){return h([a,c,d],{_defaultColor:"#485566",templateString:e,nls:null,postCreate:function(){this.colorPicker=
  new l({color:this._defaultColor},this.colorPicker);this.colorPicker.startup();this.slider=new f({name:"slider",value:0,minimum:0,maximum:100,discreteValues:101,intermediateChanges:!0,showButtons:!1,style:"width:140px;display: inline-block;"},this.sliderBar);this.slider.startup();this.inherited(arguments)},startup:function(){this.own(m(this.slider,"change",q.hitch(this,function(a){!1===this._isSameVal()&&this.spinner.setValue(a)})));this.own(m(this.spinner,"change",q.hitch(this,function(a){!1===this._isSameVal()&&
  this.slider.setValue(a)})));this._stylePolyfill();this.inherited(arguments)},_isSameVal:function(){return this.slider.getValue()===this.spinner.getValue()},getValues:function(){var a=null,b=null;(b=this.colorPicker.getColor())&&b.toHex&&(a=b.toHex());b=this.spinner.getValue()/100;return{color:a,transparency:b}},setValues:function(a){if("object"===typeof a||"string"===typeof a)this.colorPicker.setColor(new r(a.color)),a.transparency="undefined"===typeof a.transparency?0:100*a.transparency,this.slider.setValue(a.transparency),
  this.spinner.setValue(a.transparency)},_stylePolyfill:function(){var a=p(".dijitSliderLeftBumper",this.domNode)[0];a&&a.parentNode&&b.setStyle(a.parentNode,"background-color","#24b5cc")}})})},"jimu/dijit/ColorPickerPopup":function(){define("dojo/_base/declare dijit/_WidgetBase dijit/_TemplatedMixin dojo/_base/lang dojo/_base/html dojo/on dojo/_base/Color dijit/TooltipDialog dijit/popup jimu/dijit/ColorPalette jimu/utils".split(" "),function(h,q,r,m,p,b,a,c,d,e,f){return h([q,r],{baseClass:"jimu-color-pickerPopup",
  declaredClass:"jimu.dijit.ColorPickerPopup",templateString:'\x3cdiv class\x3d"jimu-color-picker"\x3e\x3c/div\x3e',_isTooltipDialogOpened:!1,color:null,showLabel:!1,_ENABLE:!0,recordUID:"",postCreate:function(){this.inherited(arguments);this._createTooltipDialog(this.domNode);this._hideTooltipDialog()},destroy:function(){d.close(this.tooltipDialog);this.picker.destroy();this.tooltipDialog.destroy();this.inherited(arguments)},enable:function(){this._ENABLE=!0;p.removeClass(this.domNode,"disable")},
  disable:function(){this._ENABLE=!1;p.addClass(this.domNode,"disable")},isPartOfPopup:function(a){var b=this.tooltipDialog.domNode,b=a===b||p.isDescendant(a,b),c=null;this.picker&&this.picker.getPickerTooltipDialog&&(c=this.picker.getPickerTooltipDialog().domNode);a=a===c||p.isDescendant(a,c);return b||a},hideTooltipDialog:function(){this._hideTooltipDialog()},_showTooltipDialog:function(){d.open({parent:this.getParent(),popup:this.tooltipDialog,around:this.domNode});this._isTooltipDialogOpened=!0},
  _hideTooltipDialog:function(){d.close(this.tooltipDialog);this._isTooltipDialogOpened=!1},_createTooltipDialog:function(){var d=p.create("div");this.tooltipDialog=new c({content:d});p.addClass(this.tooltipDialog.domNode,"jimu-color-picker-popup-dialog");var f=new e({appearance:{showTransparent:!1,showColorPalette:!0,showCoustom:!0,showCoustomRecord:!0},recordUID:this.recordUID,onChange:m.hitch(this,function(b){b&&(b=new a(b),this.setColor(b),this.onChange(b))})});f.placeAt(d);f.startup();this.own(b(f,
  "jimuColorPicker-popupClose",m.hitch(this,function(){this._hideTooltipDialog()})));this.own(b(this.domNode,"click",m.hitch(this,function(a){a.stopPropagation();a.preventDefault();this._isTooltipDialogOpened?this._hideTooltipDialog():!1!==this._ENABLE&&this._showTooltipDialog()})));this.own(b(document,"click",m.hitch(this,function(a){this.isPartOfPopup(a.srcElement||a.target)||this._hideTooltipDialog()})));this.picker=f},setColor:function(b){if(b instanceof a){null===this.color&&!0===this.showLabel&&
  this._changeLabel(b);var c=b.toHex();this.color=b;p.setStyle(this.domNode,"backgroundColor",c);this.picker&&(this.picker.refreshRecords(),this.picker.setColor(c,!1,!0));this.showLabel&&this._changeLabel(this.color)}},getColor:function(){return this.color},_changeLabel:function(a){p.empty(this.domNode);p.create("span",{innerHTML:a.toHex(),className:"color-label",style:{color:f.invertColor(a.toHex())}},this.domNode)},onChange:function(a){a&&this.showLabel&&this._changeLabel(a)},changeColor:function(){this.picker&&
  this.picker.changeColor();this.showLabel&&this._changeLabel(this.color)},setTitle:function(a){this.domNode.title=a},getTooltipDialog:function(){return this.tooltipDialog||null},isJimuColorPickerTooltipDialogOpened:function(){return this.picker.isJimuColorPickerTooltipDialogOpened()}})})},"widgets/Splash/setting/BackgroundSelector":function(){define("dojo/_base/declare dojo/_base/lang dojo/on dojo/_base/html ./ColorPickerEditor jimu/dijit/ImageChooser dijit/_WidgetBase dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dojo/text!./BackgroundSelector.html jimu/dijit/RadioBtn".split(" "),
  function(h,q,r,m,p,b,a,c,d,e){return h([a,c,d],{templateString:e,nls:null,_defaultColor:"#485566",_defaultTransparency:0,_defaultFillType:"fill",_imageMaxSize:1024,postCreate:function(){this.backgroundColorPicker=new p({nls:this.nls},this.backgroundColorPickerEditor);this.backgroundColorPicker.startup();this.imageChooser=new b({cropImage:!1,showSelfImg:!0,format:[b.GIF,b.JPEG,b.PNG],goldenWidth:160,goldenHeight:90,maxSize:this._imageMaxSize,label:this.nls.chooseFile},this.imageChooser);this.inherited(arguments)},
  startup:function(){this._initBgEvent();this._selectItem(this._defaultFillType);this.sizeType=this._defaultFillType;this.inherited(arguments)},_initBgEvent:function(){this.own(r(this.colorFillBtn,"click",q.hitch(this,function(){this._clickColorFillBtn()})));this.own(r(this.imageFillBtn,"click",q.hitch(this,function(){this._clickImageFillBtnBtn()})));this.own(r(this.imageChooser,"imageChange",q.hitch(this,function(a,b){this._showFillsType();b&&this._setFileName(b.fileName)})));this.own(r(this.fill,
  "click",q.hitch(this,function(){this.sizeType="fill"})));this.own(r(this.fit,"click",q.hitch(this,function(){this.sizeType="fit"})));this.own(r(this.stretch,"click",q.hitch(this,function(){this.sizeType="stretch"})));this.own(r(this.center,"click",q.hitch(this,function(){this.sizeType="center"})));this.own(r(this.tile,"click",q.hitch(this,function(){this.sizeType="tile"})))},getValues:function(){var a={};a.mode=this.mode;a.image=this.imageChooser.imageData;a.type=this.sizeType;a.fileName=encodeURIComponent(this.fileName.innerHTML);
  var b=this.backgroundColorPicker.getValues();a.color=b.color;a.transparency=b.transparency;return a},_setColorPicker:function(a){var b=this._defaultColor,c=this._defaultTransparency;a&&(b=a.color,c=a.transparency);this.backgroundColorPicker.setValues({color:b,transparency:c})},setValues:function(a){"undefined"!==typeof a.splash&&"undefined"!==typeof a.splash.background&&(a=a.splash.background,this._setColorPicker(a),a.image&&(this.imageChooser.setDefaultSelfSrc(a.image),this._showFillsType()),a.fileName&&
  (this.fileName.innerHTML=decodeURIComponent(a.fileName)),a.type&&(this._selectItem(a.type),this.sizeType=a.type),"image"===a.mode?(this._selectItem("imageFillBtn"),this._clickImageFillBtnBtn()):(this._selectItem("colorFillBtn"),this._clickColorFillBtn()))},_selectItem:function(a){(a=this[a])&&a.check&&a.check(!0)},_clickColorFillBtn:function(){m.addClass(this.colorFillOptions,"hide");m.addClass(this.imageFillOptions,"hide");m.removeClass(this.colorFillOptions,"hide");this.mode="color"},_clickImageFillBtnBtn:function(){m.addClass(this.colorFillOptions,
  "hide");m.addClass(this.imageFillOptions,"hide");m.removeClass(this.imageFillOptions,"hide");this.mode="image"},_hideFillsType:function(){m.addClass(this.fillsType,"hide")},_showFillsType:function(){m.removeClass(this.fillsType,"hide")},_setFileName:function(a){this.fileName.innerHTML=a}})})},"widgets/Splash/setting/SizeSelector":function(){define("dojo/_base/declare dojo/_base/lang dojo/on dojo/_base/html dijit/_WidgetBase dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dojo/text!./SizeSelector.html dijit/form/NumberSpinner jimu/dijit/CheckBox".split(" "),
  function(h,q,r,m,p,b,a,c){return h([p,b,a],{templateString:c,nls:null,_size:null,_isCustom:!1,postCreate:function(){this.inherited(arguments);this._initSize()},startup:function(){this.inherited(arguments)},_initSize:function(){this.own(r(this.percent25,"click",q.hitch(this,function(){this._cleanSelected();m.addClass(this.percent25,"selected")})));this.own(r(this.percent50,"click",q.hitch(this,function(){this._cleanSelected();m.addClass(this.percent50,"selected")})));this.own(r(this.percent75,"click",
  q.hitch(this,function(){this._cleanSelected();m.addClass(this.percent75,"selected")})));this.own(r(this.percent100,"click",q.hitch(this,function(){this._cleanSelected();m.addClass(this.percent100,"selected")})));this.own(r(this.custom,"click",q.hitch(this,function(){this._cleanSelected();m.addClass(this.custom,"selected");this._setCustomSizeDisplay()})))},_setCustomSizeDisplay:function(){m.hasClass(this.custom,"selected")?m.setStyle(this.wh,"display","block"):m.setStyle(this.wh,"display","none")},
  _cleanSelected:function(){m.removeClass(this.percent25,"selected");m.removeClass(this.percent50,"selected");m.removeClass(this.percent75,"selected");m.removeClass(this.percent100,"selected");m.removeClass(this.custom,"selected");this._setCustomSizeDisplay()},getValue:function(){var a={mode:"percent"};m.hasClass(this.percent25,"selected")?a.percent="25%":m.hasClass(this.percent50,"selected")?a.percent="50%":m.hasClass(this.percent75,"selected")?a.percent="75%":m.hasClass(this.percent100,"selected")?
  a.percent="100%":m.hasClass(this.custom,"selected")&&(a.mode="wh");a.wh={};a.wh.w=this.width.getValue();a.wh.h=this.height.getValue();return a},setValue:function(a){this._cleanSelected();"object"===typeof a&&("undefined"!==typeof a.wh&&(this.width.setValue(a.wh.w),this.height.setValue(a.wh.h)),"wh"===a.mode&&m.addClass(this.custom,"selected"),"percent"===a.mode&&"undefined"!==typeof a.percent&&("25%"===a.percent?m.addClass(this.percent25,"selected"):"50%"===a.percent?m.addClass(this.percent50,"selected"):
  "75%"===a.percent?m.addClass(this.percent75,"selected"):m.addClass(this.percent100,"selected")));this._setCustomSizeDisplay()}})})},"widgets/Splash/setting/AlignSelector":function(){define("dojo/_base/declare dojo/_base/lang dojo/on dojo/_base/html dijit/_WidgetBase dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dojo/text!./AlignSelector.html dijit/form/NumberSpinner jimu/dijit/CheckBox".split(" "),function(h,q,r,m,p,b,a,c){return h([p,b,a],{templateString:c,nls:null,postCreate:function(){this.inherited(arguments);
  this._initAlign()},startup:function(){this.inherited(arguments)},_initAlign:function(){this.own(r(this.top,"click",q.hitch(this,function(){this._cleanSelected();m.addClass(this.top,"selected")})));this.own(r(this.middle,"click",q.hitch(this,function(){this._cleanSelected();m.addClass(this.middle,"selected")})))},_cleanSelected:function(){m.removeClass(this.top,"selected");m.removeClass(this.middle,"selected")},getValue:function(){var a;m.hasClass(this.top,"selected")?a="top":m.hasClass(this.middle,
  "selected")&&(a="middle");return a},setValue:function(a){this._cleanSelected();"string"===typeof a&&("top"===a?m.addClass(this.top,"selected"):"middle"===a&&m.addClass(this.middle,"selected"))}})})},"dijit/Editor":function(){define("require dojo/_base/array dojo/_base/declare dojo/Deferred dojo/i18n dojo/dom-attr dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/keys dojo/_base/lang dojo/sniff dojo/string dojo/topic ./_Container ./Toolbar ./ToolbarSeparator ./layout/_LayoutWidget ./form/ToggleButton ./_editor/_Plugin ./_editor/plugins/EnterKeyHandling ./_editor/html ./_editor/range ./_editor/RichText ./main dojo/i18n!./_editor/nls/commands".split(" "),
  function(h,q,r,m,p,b,a,c,d,e,f,l,t,v,n,g,k,A,B,x,C,w,E,H,G){function y(a){return new x({command:a.name})}function u(a){return new x({buttonClass:B,command:a.name})}r=r("dijit.Editor",H,{plugins:null,extraPlugins:null,constructor:function(){f.isArray(this.plugins)||(this.plugins=["undo","redo","|","cut","copy","paste","|","bold","italic","underline","strikethrough","|","insertOrderedList","insertUnorderedList","indent","outdent","|","justifyLeft","justifyRight","justifyCenter","justifyFull",C]);this._plugins=
  [];this._editInterval=1E3*this.editActionInterval;if(l("ie")||l("trident")||l("edge"))this.events.push("onBeforeDeactivate"),this.events.push("onBeforeActivate")},postMixInProperties:function(){this.setValueDeferred=new m;this.inherited(arguments)},postCreate:function(){this.inherited(arguments);this._steps=this._steps.slice(0);this._undoedSteps=this._undoedSteps.slice(0);f.isArray(this.extraPlugins)&&(this.plugins=this.plugins.concat(this.extraPlugins));this.commands=p.getLocalization("dijit._editor",
  "commands",this.lang);l("webkit")&&d.set(this.domNode,"KhtmlUserSelect","none")},startup:function(){this.inherited(arguments);this.toolbar||(this.toolbar=new g({ownerDocument:this.ownerDocument,dir:this.dir,lang:this.lang,"aria-label":this.id}),this.header.appendChild(this.toolbar.domNode));q.forEach(this.plugins,this.addPlugin,this);this.setValueDeferred.resolve(!0);a.add(this.iframe.parentNode,"dijitEditorIFrameContainer");a.add(this.iframe,"dijitEditorIFrame");b.set(this.iframe,"allowTransparency",
  !0);this.toolbar.startup();this.onNormalizedDisplayChanged()},destroy:function(){q.forEach(this._plugins,function(a){a&&a.destroy&&a.destroy()});this._plugins=[];this.toolbar.destroyRecursive();delete this.toolbar;this.inherited(arguments)},addPlugin:function(a,b){var c=f.isString(a)?{name:a}:f.isFunction(a)?{ctor:a}:a;if(!c.setEditor){var z={args:c,plugin:null,editor:this};c.name&&(x.registry[c.name]?z.plugin=x.registry[c.name](c):v.publish(G._scopeName+".Editor.getPlugin",z));if(!z.plugin)try{var F=
  c.ctor||f.getObject(c.name)||h(c.name);F&&(z.plugin=new F(c))}catch(K){throw Error(this.id+": cannot find plugin ["+c.name+"]");}if(!z.plugin)throw Error(this.id+": cannot find plugin ["+c.name+"]");a=z.plugin}1<arguments.length?this._plugins[b]=a:this._plugins.push(a);a.setEditor(this);f.isFunction(a.setToolbar)&&a.setToolbar(this.toolbar)},resize:function(a){a&&A.prototype.resize.apply(this,arguments)},layout:function(){var a=this._contentBox.h-(this.getHeaderHeight()+this.getFooterHeight()+c.getPadBorderExtents(this.iframe.parentNode).h+
  c.getMarginExtents(this.iframe.parentNode).h);this.editingArea.style.height=a+"px";this.iframe&&(this.iframe.style.height="100%");this._layoutMode=!0},_onIEMouseDown:function(a){var b,c=this.document.body,z=c.clientWidth,F=c.clientHeight,e=c.clientLeft,d=c.offsetWidth,k=c.offsetHeight,l=c.offsetLeft;/^rtl$/i.test(c.dir||"")?z<d&&a.x>z&&a.x<d&&(b=!0):a.x<e&&a.x>l&&(b=!0);b||F<k&&a.y>F&&a.y<k&&(b=!0);b||(delete this._cursorToStart,delete this._savedSelection,"BODY"==a.target.tagName&&this.defer("placeCursorAtEnd"),
  this.inherited(arguments))},onBeforeActivate:function(){this._restoreSelection()},onBeforeDeactivate:function(a){this.customUndo&&this.endEditing(!0);"BODY"!=a.target.tagName&&this._saveSelection()},customUndo:!0,editActionInterval:3,beginEditing:function(a){this._inEditing||(this._inEditing=!0,this._beginEditing(a));0<this.editActionInterval&&(this._editTimer&&this._editTimer.remove(),this._editTimer=this.defer("endEditing",this._editInterval))},_steps:[],_undoedSteps:[],execCommand:function(a){if(!this.customUndo||
  "undo"!=a&&"redo"!=a){this.customUndo&&(this.endEditing(),this._beginEditing());var b=this.inherited(arguments);this.customUndo&&this._endEditing();return b}return this[a]()},_pasteImpl:function(){return this._clipboardCommand("paste")},_cutImpl:function(){return this._clipboardCommand("cut")},_copyImpl:function(){return this._clipboardCommand("copy")},_clipboardCommand:function(a){var b;try{if(b=this.document.execCommand(a,!1,null),l("webkit")&&!b)throw{};}catch(D){b=t.substitute,alert(b(this.commands.systemShortcut,
  [this.commands[a],b(this.commands[l("mac")?"appleKey":"ctrlKey"],[{cut:"X",copy:"C",paste:"V"}[a]])])),b=!1}return b},queryCommandEnabled:function(a){return!this.customUndo||"undo"!=a&&"redo"!=a?this.inherited(arguments):"undo"==a?1<this._steps.length:0<this._undoedSteps.length},_moveToBookmark:function(a){var b=a.mark,c=a.mark;a=a.isCollapsed;var z,F,e;c&&(9>l("ie")||9===l("ie")&&l("quirks")?f.isArray(c)?(b=[],q.forEach(c,function(a){b.push(E.getNode(a,this.editNode))},this),this.selection.moveToBookmark({mark:b,
  isCollapsed:a})):c.startContainer&&c.endContainer&&(e=E.getSelection(this.window))&&e.removeAllRanges&&(e.removeAllRanges(),a=E.create(this.window),z=E.getNode(c.startContainer,this.editNode),F=E.getNode(c.endContainer,this.editNode),z&&F&&(a.setStart(z,c.startOffset),a.setEnd(F,c.endOffset),e.addRange(a))):(e=E.getSelection(this.window))&&e.removeAllRanges&&(e.removeAllRanges(),a=E.create(this.window),z=E.getNode(c.startContainer,this.editNode),F=E.getNode(c.endContainer,this.editNode),z&&F&&(a.setStart(z,
  c.startOffset),a.setEnd(F,c.endOffset),e.addRange(a))))},_changeToStep:function(a,b){this.setValue(b.text);var c=b.bookmark;c&&this._moveToBookmark(c)},undo:function(){var a=!1;if(!this._undoRedoActive){this._undoRedoActive=!0;this.endEditing(!0);var b=this._steps.pop();b&&0<this._steps.length&&(this.focus(),this._changeToStep(b,this._steps[this._steps.length-1]),this._undoedSteps.push(b),this.onDisplayChanged(),delete this._undoRedoActive,a=!0);delete this._undoRedoActive}return a},redo:function(){var a=
  !1;if(!this._undoRedoActive){this._undoRedoActive=!0;this.endEditing(!0);var b=this._undoedSteps.pop();b&&0<this._steps.length&&(this.focus(),this._changeToStep(this._steps[this._steps.length-1],b),this._steps.push(b),this.onDisplayChanged(),a=!0);delete this._undoRedoActive}return a},endEditing:function(a){this._editTimer&&(this._editTimer=this._editTimer.remove());this._inEditing&&(this._endEditing(a),this._inEditing=!1)},_getBookmark:function(){var a=this.selection.getBookmark(),b=[];if(a&&a.mark){var c=
  a.mark;if(9>l("ie")||9===l("ie")&&l("quirks")){var z=E.getSelection(this.window);if(f.isArray(c))q.forEach(a.mark,function(a){b.push(E.getIndex(a,this.editNode).o)},this),a.mark=b;else if(z){var F;z.rangeCount&&(F=z.getRangeAt(0));a.mark=F?F.cloneRange():this.selection.getBookmark()}}try{a.mark&&a.mark.startContainer&&(b=E.getIndex(a.mark.startContainer,this.editNode).o,a.mark={startContainer:b,startOffset:a.mark.startOffset,endContainer:a.mark.endContainer===a.mark.startContainer?b:E.getIndex(a.mark.endContainer,
  this.editNode).o,endOffset:a.mark.endOffset})}catch(K){a.mark=null}}return a},_beginEditing:function(){0===this._steps.length&&this._steps.push({text:w.getChildrenHtml(this.editNode),bookmark:this._getBookmark()})},_endEditing:function(){var a=w.getChildrenHtml(this.editNode);this._undoedSteps=[];this._steps.push({text:a,bookmark:this._getBookmark()})},onKeyDown:function(a){l("ie")||this.iframe||a.keyCode!=e.TAB||this.tabIndent||this._saveSelection();if(this.customUndo){var b=a.keyCode;if(a.ctrlKey&&
  !a.shiftKey&&!a.altKey){if(90==b||122==b){a.stopPropagation();a.preventDefault();this.undo();return}if(89==b||121==b){a.stopPropagation();a.preventDefault();this.redo();return}}this.inherited(arguments);switch(b){case e.ENTER:case e.BACKSPACE:case e.DELETE:this.beginEditing();break;case 88:case 86:if(a.ctrlKey&&!a.altKey&&!a.metaKey){this.endEditing();88==a.keyCode?this.beginEditing("cut"):this.beginEditing("paste");this.defer("endEditing",1);break}default:if(!a.ctrlKey&&!a.altKey&&!a.metaKey&&(a.keyCode<
  e.F1||a.keyCode>e.F15)){this.beginEditing();break}case e.ALT:this.endEditing();break;case e.UP_ARROW:case e.DOWN_ARROW:case e.LEFT_ARROW:case e.RIGHT_ARROW:case e.HOME:case e.END:case e.PAGE_UP:case e.PAGE_DOWN:this.endEditing(!0);case e.CTRL:case e.SHIFT:case e.TAB:}}else this.inherited(arguments)},_onBlur:function(){this.inherited(arguments);this.endEditing(!0)},_saveSelection:function(){try{this._savedSelection=this._getBookmark()}catch(I){}},_restoreSelection:function(){this._savedSelection&&
  (delete this._cursorToStart,this.selection.isCollapsed()&&this._moveToBookmark(this._savedSelection),delete this._savedSelection)},onClick:function(){this.endEditing(!0);this.inherited(arguments)},replaceValue:function(a){this.customUndo?this.isClosed?this.setValue(a):(this.beginEditing(),a||(a="\x26#160;"),this.setValue(a),this.endEditing()):this.inherited(arguments)},_setDisabledAttr:function(a){this.setValueDeferred.then(f.hitch(this,function(){!this.disabled&&a||!this._buttonEnabledPlugins&&a?
  q.forEach(this._plugins,function(a){a.set("disabled",!0)}):this.disabled&&!a&&q.forEach(this._plugins,function(a){a.set("disabled",!1)})}));this.inherited(arguments)},_setStateClass:function(){try{this.inherited(arguments),this.document&&this.document.body&&d.set(this.document.body,"color",d.get(this.iframe,"color"))}catch(I){}}});f.mixin(x.registry,{undo:y,redo:y,cut:y,copy:y,paste:y,insertOrderedList:y,insertUnorderedList:y,indent:y,outdent:y,justifyCenter:y,justifyFull:y,justifyLeft:y,justifyRight:y,
  "delete":y,selectAll:y,removeFormat:y,unlink:y,insertHorizontalRule:y,bold:u,italic:u,underline:u,strikethrough:u,subscript:u,superscript:u,"|":function(){return new x({setEditor:function(a){this.editor=a;this.button=new k({ownerDocument:a.ownerDocument})}})}});return r})},"dijit/Toolbar":function(){define("require dojo/_base/declare dojo/has dojo/keys dojo/ready ./_Widget ./_KeyNavContainer ./_TemplatedMixin".split(" "),function(h,q,r,m,p,b,a,c){r("dijit-legacy-requires")&&p(0,function(){h(["dijit/ToolbarSeparator"])});
  return q("dijit.Toolbar",[b,c,a],{templateString:'\x3cdiv class\x3d"dijit" role\x3d"toolbar" tabIndex\x3d"${tabIndex}" data-dojo-attach-point\x3d"containerNode"\x3e\x3c/div\x3e',baseClass:"dijitToolbar",_onLeftArrow:function(){this.focusPrev()},_onRightArrow:function(){this.focusNext()}})})},"dijit/ToolbarSeparator":function(){define(["dojo/_base/declare","dojo/dom","./_Widget","./_TemplatedMixin"],function(h,q,r,m){return h("dijit.ToolbarSeparator",[r,m],{templateString:'\x3cdiv class\x3d"dijitToolbarSeparator dijitInline" role\x3d"presentation"\x3e\x3c/div\x3e',
  buildRendering:function(){this.inherited(arguments);q.setSelectable(this.domNode,!1)},isFocusable:function(){return!1}})})},"dijit/_editor/_Plugin":function(){define(["dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","../Destroyable","../form/Button"],function(h,q,r,m,p){q=q("dijit._editor._Plugin",m,{constructor:function(b){this.params=b||{};r.mixin(this,this.params);this._attrPairNames={}},editor:null,iconClassPrefix:"dijitEditorIcon",button:null,command:"",useDefaultCommand:!0,buttonClass:p,
  disabled:!1,getLabel:function(b){return this.editor.commands[b]},_initButton:function(){if(this.command.length){var b=this.getLabel(this.command),a=this.editor,c=this.iconClassPrefix+" "+this.iconClassPrefix+this.command.charAt(0).toUpperCase()+this.command.substr(1);this.button||(b=r.mixin({label:b,ownerDocument:a.ownerDocument,dir:a.dir,lang:a.lang,showLabel:!1,iconClass:c,dropDown:this.dropDown,tabIndex:"-1"},this.params||{}),delete b.name,this.button=new this.buttonClass(b))}this.get("disabled")&&
  this.button&&this.button.set("disabled",this.get("disabled"))},destroy:function(){this.dropDown&&this.dropDown.destroyRecursive();this.inherited(arguments)},connect:function(b,a,c){this.own(h.connect(b,a,this,c))},updateState:function(){var b=this.editor,a=this.command,c,d;if(b&&b.isLoaded&&a.length){var e=this.get("disabled");if(this.button)try{d=!e&&b.queryCommandEnabled(a),this.enabled!==d&&(this.enabled=d,this.button.set("disabled",!d)),d&&"boolean"==typeof this.button.checked&&(c=b.queryCommandState(a),
  this.checked!==c&&(this.checked=c,this.button.set("checked",b.queryCommandState(a))))}catch(f){console.log(f)}}},setEditor:function(b){this.editor=b;this._initButton();this.button&&this.useDefaultCommand&&(this.editor.queryCommandAvailable(this.command)?this.own(this.button.on("click",r.hitch(this.editor,"execCommand",this.command,this.commandArg))):this.button.domNode.style.display="none");this.own(this.editor.on("NormalizedDisplayChanged",r.hitch(this,"updateState")))},setToolbar:function(b){this.button&&
  b.addChild(this.button)},set:function(b,a){if("object"===typeof b){for(var c in b)this.set(c,b[c]);return this}c=this._getAttrNames(b);if(this[c.s])var d=this[c.s].apply(this,Array.prototype.slice.call(arguments,1));else this._set(b,a);return d||this},get:function(b){var a=this._getAttrNames(b);return this[a.g]?this[a.g]():this[b]},_setDisabledAttr:function(b){this._set("disabled",b);this.updateState()},_getAttrNames:function(b){var a=this._attrPairNames;if(a[b])return a[b];var c=b.charAt(0).toUpperCase()+
  b.substr(1);return a[b]={s:"_set"+c+"Attr",g:"_get"+c+"Attr"}},_set:function(b,a){this[b]=a}});q.registry={};return q})},"dijit/_editor/plugins/EnterKeyHandling":function(){define("dojo/_base/declare dojo/dom-construct dojo/keys dojo/_base/lang dojo/on dojo/sniff dojo/_base/window dojo/window ../_Plugin ../RichText ../range".split(" "),function(h,q,r,m,p,b,a,c,d,e,f){return h("dijit._editor.plugins.EnterKeyHandling",d,{blockNodeForEnter:"BR",constructor:function(a){a&&("blockNodeForEnter"in a&&(a.blockNodeForEnter=
  a.blockNodeForEnter.toUpperCase()),m.mixin(this,a))},setEditor:function(a){if(this.editor!==a)if(this.editor=a,"BR"==this.blockNodeForEnter)this.editor.customUndo=!0,a.onLoadDeferred.then(m.hitch(this,function(c){this.own(p(a.document,"keydown",m.hitch(this,function(a){if(a.keyCode==r.ENTER){var b=m.mixin({},a);b.shiftKey=!0;this.handleEnterKey(b)||(a.stopPropagation(),a.preventDefault())}})));9<=b("ie")&&10>=b("ie")&&this.own(p(a.document,"paste",m.hitch(this,function(a){setTimeout(m.hitch(this,
  function(){var a=this.editor.document.selection.createRange();a.move("character",-1);a.select();a.move("character",1);a.select()}),0)})));return c}));else if(this.blockNodeForEnter){var c=m.hitch(this,"handleEnterKey");a.addKeyHandler(13,0,0,c);a.addKeyHandler(13,0,1,c);this.own(this.editor.on("KeyPressed",m.hitch(this,"onKeyPressed")))}},onKeyPressed:function(){if(this._checkListLater){if(this.editor.selection.isCollapsed()){var a=this.editor.selection.getAncestorElement("LI");if(a){b("mozilla")&&
  "LI"==a.parentNode.parentNode.nodeName&&(a=a.parentNode.parentNode);var c=a.firstChild;!c||1!=c.nodeType||"UL"!=c.nodeName&&"OL"!=c.nodeName||(a.insertBefore(c.ownerDocument.createTextNode("\u00a0"),c),c=f.create(this.editor.window),c.setStart(a.firstChild,0),a=f.getSelection(this.editor.window,!0),a.removeAllRanges(),a.addRange(c))}else e.prototype.execCommand.call(this.editor,"formatblock",this.blockNodeForEnter),(a=this.editor.selection.getAncestorElement(this.blockNodeForEnter))?(a.innerHTML=
  this.bogusHtmlContent,9>=b("ie")&&(a=this.editor.document.selection.createRange(),a.move("character",-1),a.select())):console.error("onKeyPressed: Cannot find the new block node")}this._checkListLater=!1}this._pressedEnterInBlock&&(this._pressedEnterInBlock.previousSibling&&this.removeTrailingBr(this._pressedEnterInBlock.previousSibling),delete this._pressedEnterInBlock)},bogusHtmlContent:"\x26#160;",blockNodes:/^(?:P|H1|H2|H3|H4|H5|H6|LI)$/,handleEnterKey:function(a){var d,h,n,g,k=this.editor.document,
  l,m,x;if(a.shiftKey){a=this.editor.selection.getParentElement();if(g=f.getAncestor(a,this.blockNodes)){if("LI"==g.tagName)return!0;a=f.getSelection(this.editor.window);d=a.getRangeAt(0);d.collapsed||(d.deleteContents(),a=f.getSelection(this.editor.window),d=a.getRangeAt(0));if(f.atBeginningOfContainer(g,d.startContainer,d.startOffset))l=k.createElement("br"),d=f.create(this.editor.window),g.insertBefore(l,g.firstChild),d.setStartAfter(l),a.removeAllRanges(),a.addRange(d);else if(f.atEndOfContainer(g,
  d.startContainer,d.startOffset))d=f.create(this.editor.window),l=k.createElement("br"),g.appendChild(l),g.appendChild(k.createTextNode("\u00a0")),d.setStart(g.lastChild,0),a.removeAllRanges(),a.addRange(d);else return(m=d.startContainer)&&3==m.nodeType?(x=m.nodeValue,h=k.createTextNode(x.substring(0,d.startOffset)),n=k.createTextNode(x.substring(d.startOffset)),g=k.createElement("br"),""==n.nodeValue&&b("webkit")&&(n=k.createTextNode("\u00a0")),q.place(h,m,"after"),q.place(g,h,"after"),q.place(n,
  g,"after"),q.destroy(m),d=f.create(this.editor.window),d.setStart(n,0),a.removeAllRanges(),a.addRange(d),!1):!0}else a=f.getSelection(this.editor.window),a.rangeCount?(d=a.getRangeAt(0))&&d.startContainer&&(d.collapsed||(d.deleteContents(),a=f.getSelection(this.editor.window),d=a.getRangeAt(0)),(m=d.startContainer)&&3==m.nodeType?(g=d.startOffset,m.length<g&&(n=this._adjustNodeAndOffset(m,g),m=n.node,g=n.offset),x=m.nodeValue,h=k.createTextNode(x.substring(0,g)),n=k.createTextNode(x.substring(g)),
  g=k.createElement("br"),n.length||(n=k.createTextNode("\u00a0")),h.length?q.place(h,m,"after"):h=m,q.place(g,h,"after"),q.place(n,g,"after"),q.destroy(m)):(0<=d.startOffset&&(l=m.childNodes[d.startOffset]),g=k.createElement("br"),n=k.createTextNode("\u00a0"),l?(q.place(g,l,"before"),q.place(n,g,"after")):(m.appendChild(g),m.appendChild(n))),d=f.create(this.editor.window),d.setStart(n,0),d.setEnd(n,n.length),a.removeAllRanges(),a.addRange(d),this.editor.selection.collapse(!0)):e.prototype.execCommand.call(this.editor,
  "inserthtml","\x3cbr\x3e");return!1}var C=!0;a=f.getSelection(this.editor.window);d=a.getRangeAt(0);d.collapsed||(d.deleteContents(),a=f.getSelection(this.editor.window),d=a.getRangeAt(0));l=f.getBlockAncestor(d.endContainer,null,this.editor.editNode);var w=l.blockNode;if(this._checkListLater=w&&("LI"==w.nodeName||"LI"==w.parentNode.nodeName))return b("mozilla")&&(this._pressedEnterInBlock=w),/^(\s|&nbsp;|&#160;|\xA0|<span\b[^>]*\bclass=['"]Apple-style-span['"][^>]*>(\s|&nbsp;|&#160;|\xA0)<\/span>)?(<br>)?$/.test(w.innerHTML)&&
  (w.innerHTML="",b("webkit")&&(d=f.create(this.editor.window),d.setStart(w,0),a.removeAllRanges(),a.addRange(d)),this._checkListLater=!1),!0;if(!l.blockNode||l.blockNode===this.editor.editNode){try{e.prototype.execCommand.call(this.editor,"formatblock",this.blockNodeForEnter)}catch(E){}l={blockNode:this.editor.selection.getAncestorElement(this.blockNodeForEnter),blockContainer:this.editor.editNode};if(l.blockNode){if(l.blockNode!=this.editor.editNode&&!(l.blockNode.textContent||l.blockNode.innerHTML).replace(/^\s+|\s+$/g,
  "").length)return this.removeTrailingBr(l.blockNode),!1}else l.blockNode=this.editor.editNode;a=f.getSelection(this.editor.window);d=a.getRangeAt(0)}w=k.createElement(this.blockNodeForEnter);w.innerHTML=this.bogusHtmlContent;this.removeTrailingBr(l.blockNode);n=d.endOffset;C=d.endContainer;C.length<n&&(n=this._adjustNodeAndOffset(C,n),C=n.node,n=n.offset);if(f.atEndOfContainer(l.blockNode,C,n))l.blockNode===l.blockContainer?l.blockNode.appendChild(w):q.place(w,l.blockNode,"after"),C=!1,d=f.create(this.editor.window),
  d.setStart(w,0),a.removeAllRanges(),a.addRange(d),this.editor.height&&c.scrollIntoView(w);else if(f.atBeginningOfContainer(l.blockNode,d.startContainer,d.startOffset))q.place(w,l.blockNode,l.blockNode===l.blockContainer?"first":"before"),w.nextSibling&&this.editor.height&&(d=f.create(this.editor.window),d.setStart(w.nextSibling,0),a.removeAllRanges(),a.addRange(d),c.scrollIntoView(w.nextSibling)),C=!1;else{l.blockNode===l.blockContainer?l.blockNode.appendChild(w):q.place(w,l.blockNode,"after");C=
  !1;l.blockNode.style&&w.style&&l.blockNode.style.cssText&&(w.style.cssText=l.blockNode.style.cssText);if((m=d.startContainer)&&3==m.nodeType){n=d.endOffset;m.length<n&&(n=this._adjustNodeAndOffset(m,n),m=n.node,n=n.offset);x=m.nodeValue;h=k.createTextNode(x.substring(0,n));n=k.createTextNode(x.substring(n,x.length));q.place(h,m,"before");q.place(n,m,"after");q.destroy(m);for(d=h.parentNode;d!==l.blockNode;){x=k.createElement(d.tagName);d.style&&x.style&&d.style.cssText&&(x.style.cssText=d.style.cssText);
  "FONT"===d.tagName&&(d.color&&(x.color=d.color),d.face&&(x.face=d.face),d.size&&(x.size=d.size));for(;n;)m=n.nextSibling,x.appendChild(n),n=m;q.place(x,d,"after");h=d;n=x;d=d.parentNode}if(1==n.nodeType||3==n.nodeType&&n.nodeValue)w.innerHTML="";for(h=n;n;)m=n.nextSibling,w.appendChild(n),n=m}d=f.create(this.editor.window);k=h;if("BR"!==this.blockNodeForEnter){for(;k;)g=k,k=m=k.firstChild;g&&g.parentNode?(w=g.parentNode,d.setStart(w,0),a.removeAllRanges(),a.addRange(d),this.editor.height&&c.scrollIntoView(w),
  b("mozilla")&&(this._pressedEnterInBlock=l.blockNode)):C=!0}else d.setStart(w,0),a.removeAllRanges(),a.addRange(d),this.editor.height&&c.scrollIntoView(w),b("mozilla")&&(this._pressedEnterInBlock=l.blockNode)}return C},_adjustNodeAndOffset:function(a,b){for(;a.length<b&&a.nextSibling&&3==a.nextSibling.nodeType;)b-=a.length,a=a.nextSibling;return{node:a,offset:b}},removeTrailingBr:function(a){if(a=/P|DIV|LI/i.test(a.tagName)?a:this.editor.selection.getParentOfType(a,["P","DIV","LI"]))a.lastChild&&
  (1<a.childNodes.length&&3==a.lastChild.nodeType&&/^[\s\xAD]*$/.test(a.lastChild.nodeValue)||"BR"==a.lastChild.tagName)&&q.destroy(a.lastChild),a.childNodes.length||(a.innerHTML=this.bogusHtmlContent)}})})},"dijit/_editor/RichText":function(){define("dojo/_base/array dojo/_base/config dojo/_base/declare dojo/_base/Deferred dojo/dom dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/_base/kernel dojo/keys dojo/_base/lang dojo/on dojo/query dojo/domReady dojo/sniff dojo/string dojo/topic dojo/_base/unload dojo/_base/url dojo/window ../_Widget ../_CssStateMixin ../selection ./range ./html ../focus ../main".split(" "),
  function(h,q,r,m,p,b,a,c,d,e,f,l,t,v,n,g,k,A,B,x,C,w,E,H,G,y,u,I,J){var D=r("dijit._editor.RichText",[E,H],{constructor:function(a){this.contentPreFilters=[];this.contentPostFilters=[];this.contentDomPreFilters=[];this.contentDomPostFilters=[];this.editingAreaStyleSheets=[];this.events=[].concat(this.events);this._keyHandlers={};a&&t.isString(a.value)&&(this.value=a.value);this.onLoadDeferred=new m},baseClass:"dijitEditor",inheritWidth:!1,focusOnLoad:!1,name:"",styleSheets:"",height:"300px",minHeight:"1em",
  isClosed:!0,isLoaded:!1,_SEPARATOR:"@@**%%__RICHTEXTBOUNDRY__%%**@@",_NAME_CONTENT_SEP:"@@**%%:%%**@@",onLoadDeferred:null,isTabIndent:!1,disableSpellCheck:!1,postCreate:function(){"textarea"===this.domNode.tagName.toLowerCase()&&console.warn("RichText should not be used with the TEXTAREA tag.  See dijit._editor.RichText docs.");this.contentPreFilters=[t.trim,t.hitch(this,"_preFixUrlAttributes")].concat(this.contentPreFilters);k("mozilla")&&(this.contentPreFilters=[this._normalizeFontStyle].concat(this.contentPreFilters),
  this.contentPostFilters=[this._removeMozBogus].concat(this.contentPostFilters));k("webkit")&&(this.contentPreFilters=[this._removeWebkitBogus].concat(this.contentPreFilters),this.contentPostFilters=[this._removeWebkitBogus].concat(this.contentPostFilters));if(k("ie")||k("trident"))this.contentPostFilters=[this._normalizeFontStyle].concat(this.contentPostFilters),this.contentDomPostFilters=[t.hitch(this,"_stripBreakerNodes")].concat(this.contentDomPostFilters);this.contentDomPostFilters=[t.hitch(this,
  "_stripTrailingEmptyNodes")].concat(this.contentDomPostFilters);this.inherited(arguments);B.publish(J._scopeName+"._editor.RichText::init",this)},startup:function(){this.inherited(arguments);this.open();this.setupDefaultShortcuts()},setupDefaultShortcuts:function(){var a=t.hitch(this,function(a,b){return function(){return!this.execCommand(a,b)}}),b={b:a("bold"),i:a("italic"),u:a("underline"),a:a("selectall"),s:function(){this.save(!0)},m:function(){this.isTabIndent=!this.isTabIndent},1:a("formatblock",
  "h1"),2:a("formatblock","h2"),3:a("formatblock","h3"),4:a("formatblock","h4"),"\\":a("insertunorderedlist")};k("ie")||(b.Z=a("redo"));for(var c in b)this.addKeyHandler(c,!0,!1,b[c])},events:["onKeyDown","onKeyUp"],captureEvents:[],_editorCommandsLocalized:!1,_localizeEditorCommands:function(){if(D._editorCommandsLocalized)this._local2NativeFormatNames=D._local2NativeFormatNames,this._native2LocalFormatNames=D._native2LocalFormatNames;else{D._editorCommandsLocalized=!0;D._local2NativeFormatNames={};
  D._native2LocalFormatNames={};this._local2NativeFormatNames=D._local2NativeFormatNames;this._native2LocalFormatNames=D._native2LocalFormatNames;for(var a="div p pre h1 h2 h3 h4 h5 h6 ol ul address".split(" "),b="",d,e=0;d=a[e++];)b="l"!==d.charAt(1)?b+("\x3c"+d+"\x3e\x3cspan\x3econtent\x3c/span\x3e\x3c/"+d+"\x3e\x3cbr/\x3e"):b+("\x3c"+d+"\x3e\x3cli\x3econtent\x3c/li\x3e\x3c/"+d+"\x3e\x3cbr/\x3e");var k=c.create("div",{style:{position:"absolute",top:"0px",zIndex:10,opacity:.01},innerHTML:b});this.ownerDocumentBody.appendChild(k);
  a=t.hitch(this,function(){for(var a=k.firstChild;a;)try{this.selection.selectElement(a.firstChild);var b=a.tagName.toLowerCase();this._local2NativeFormatNames[b]=document.queryCommandValue("formatblock");this._native2LocalFormatNames[this._local2NativeFormatNames[b]]=b;a=a.nextSibling.nextSibling}catch(N){}c.destroy(k)});this.defer(a)}},open:function(z){if(!this.onLoadDeferred||0<=this.onLoadDeferred.fired)this.onLoadDeferred=new m;this.isClosed||this.close();B.publish(J._scopeName+"._editor.RichText::open",
  this);1===arguments.length&&z.nodeName&&(this.domNode=z);var d=this.domNode,g;if(t.isString(this.value))g=this.value,d.innerHTML="";else if(d.nodeName&&"textarea"==d.nodeName.toLowerCase()){var n=this.textarea=d;this.name=n.name;g=n.value;d=this.domNode=this.ownerDocument.createElement("div");d.setAttribute("widgetId",this.id);n.removeAttribute("widgetId");d.cssText=n.cssText;d.className+=" "+n.className;c.place(d,n,"before");var f=t.hitch(this,function(){e.set(n,{display:"block",position:"absolute",
  top:"-1000px"});if(k("ie")){var a=n.style;this.__overflow=a.overflow;a.overflow="hidden"}});k("ie")?this.defer(f,10):f();if(n.form){var h=n.value;this.reset=function(){this.getValue()!==h&&this.replaceValue(h)};v(n.form,"submit",t.hitch(this,function(){b.set(n,"disabled",this.disabled);n.value=this.getValue()}))}}else g=u.getChildrenHtml(d),d.innerHTML="";this.value=g;d.nodeName&&"LI"===d.nodeName&&(d.innerHTML=" \x3cbr\x3e");this.header=d.ownerDocument.createElement("div");d.appendChild(this.header);
  this.editingArea=d.ownerDocument.createElement("div");d.appendChild(this.editingArea);this.footer=d.ownerDocument.createElement("div");d.appendChild(this.footer);this.name||(this.name=this.id+"_AUTOGEN");if(""!==this.name&&(!q.useXDomain||q.allowXdRichTextSave)){if((g=p.byId(J._scopeName+"._editor.RichText.value"))&&""!==g.value)for(var f=g.value.split(this._SEPARATOR),l=0,w;w=f[l++];)if(w=w.split(this._NAME_CONTENT_SEP),w[0]===this.name){this.value=w[1];f=f.splice(l,1);g.value=f.join(this._SEPARATOR);
  break}D._globalSaveHandler||(D._globalSaveHandler={},x.addOnUnload(function(){for(var a in D._globalSaveHandler){var b=D._globalSaveHandler[a];t.isFunction(b)&&b()}}));D._globalSaveHandler[this.id]=t.hitch(this,"_saveContent")}this.isClosed=!1;g=this.editorObject=this.iframe=this.ownerDocument.createElement("iframe");g.id=this.id+"_iframe";g.style.border="none";g.style.width="100%";this._layoutMode?g.style.height="100%":7<=k("ie")?(this.height&&(g.style.height=this.height),this.minHeight&&(g.style.minHeight=
  this.minHeight)):g.style.height=this.height?this.height:this.minHeight;g.frameBorder=0;g._loadFunc=t.hitch(this,function(a){this.window=a;this.document=a.document;this.selection=new G.SelectionManager(a);k("ie")&&this._localizeEditorCommands();this.onLoad(this.get("value"))});f=this._getIframeDocTxt().replace(/\\/g,"\\\\").replace(/'/g,"\\'");f=11>k("ie")?'javascript:document.open();try{parent.window;}catch(e){document.domain\x3d"'+document.domain+"\";}document.write('"+f+"');document.close()":"javascript: '"+
  f+"'";this.editingArea.appendChild(g);g.src=f;"LI"===d.nodeName&&(d.lastChild.style.marginTop="-1.2em");a.add(this.domNode,this.baseClass)},_local2NativeFormatNames:{},_native2LocalFormatNames:{},_getIframeDocTxt:function(){var a=e.getComputedStyle(this.domNode),b;if(this["aria-label"])b=this["aria-label"];else{var c=n('label[for\x3d"'+this.id+'"]',this.ownerDocument)[0]||p.byId(this["aria-labelledby"],this.ownerDocument);c&&(b=c.textContent||c.innerHTML||"")}var c="\x3cdiv id\x3d'dijitEditorBody' role\x3d'textbox' aria-multiline\x3d'true' "+
  (b?" aria-label\x3d'"+A.escape(b)+"'":"")+"\x3e\x3c/div\x3e",d=[a.fontWeight,a.fontSize,a.fontFamily].join(" "),g=a.lineHeight,g=0<=g.indexOf("px")?parseFloat(g)/parseFloat(a.fontSize):0<=g.indexOf("em")?parseFloat(g):"normal",u="",h=this;this.style.replace(/(^|;)\s*(line-|font-?)[^;]+/ig,function(a){a=a.replace(/^;/ig,"")+";";var b=a.split(":")[0];if(b){var b=t.trim(b),b=b.toLowerCase(),c,d="";for(c=0;c<b.length;c++){var z=b.charAt(c);switch(z){case "-":c++,z=b.charAt(c).toUpperCase();default:d+=
  z}}e.set(h.domNode,d,"")}u+=a+";"});this.iframe.setAttribute("title",b);return["\x3c!DOCTYPE html\x3e","\x3chtml lang\x3d'"+(this.lang||f.locale.replace(/-.*/,""))+"'"+(this.isLeftToRight()?"":" dir\x3d'rtl'")+"\x3e\n","\x3chead\x3e\n\x3cmeta http-equiv\x3d'Content-Type' content\x3d'text/html'\x3e\n",b?"\x3ctitle\x3e"+A.escape(b)+"\x3c/title\x3e":"","\x3cstyle\x3e\n\tbody,html {\n\t\tbackground:transparent;\n\t\tpadding: 1px 0 0 0;\n\t\tmargin: -1px 0 0 0;\n\t}\n\tbody,html,#dijitEditorBody { outline: none; }html { height: 100%; width: 100%; overflow: hidden; }\n",
  this.height?"\tbody,#dijitEditorBody { height: 100%; width: 100%; overflow: auto; }\n":"\tbody,#dijitEditorBody { min-height: "+this.minHeight+"; width: 100%; overflow-x: auto; overflow-y: hidden; }\n","\tbody{\n\t\ttop:0px;\n\t\tleft:0px;\n\t\tright:0px;\n\t\tfont:",d,";\n",this.height||k("opera")?"":"\t\tposition: fixed;\n","\t\tline-height:",g,";\n\t}\n\tp{ margin: 1em 0; }\n\tli \x3e ul:-moz-first-node, li \x3e ol:-moz-first-node{ padding-top: 1.2em; }\n",k("ie")||k("trident")||k("edge")?"":"\tli{ min-height:1.2em; }\n",
  "\x3c/style\x3e\n",this._applyEditingAreaStyleSheets(),"\n\x3c/head\x3e\n\x3cbody role\x3d'application'",b?" aria-label\x3d'"+A.escape(b)+"'":"","onload\x3d'try{frameElement \x26\x26 frameElement._loadFunc(window,document)}catch(e){document.domain\x3d\""+document.domain+"\";frameElement._loadFunc(window,document)}' ","style\x3d'"+u+"'\x3e",c,"\x3c/body\x3e\n\x3c/html\x3e"].join("")},_applyEditingAreaStyleSheets:function(){var a=[];this.styleSheets&&(a=this.styleSheets.split(";"),this.styleSheets=
  "");a=a.concat(this.editingAreaStyleSheets);this.editingAreaStyleSheets=[];for(var b="",c=0,d,e=w.get(this.ownerDocument);d=a[c++];)d=(new C(e.location,d)).toString(),this.editingAreaStyleSheets.push(d),b+='\x3clink rel\x3d"stylesheet" type\x3d"text/css" href\x3d"'+d+'"/\x3e';return b},addStyleSheet:function(a){var b=a.toString(),c=w.get(this.ownerDocument);if("."===b.charAt(0)||"/"!==b.charAt(0)&&!a.host)b=(new C(c.location,b)).toString();-1<h.indexOf(this.editingAreaStyleSheets,b)||(this.editingAreaStyleSheets.push(b),
  this.onLoadDeferred.then(t.hitch(this,function(){if(this.document.createStyleSheet)this.document.createStyleSheet(b);else{var a=this.document.getElementsByTagName("head")[0],c=this.document.createElement("link");c.rel="stylesheet";c.type="text/css";c.href=b;a.appendChild(c)}})))},removeStyleSheet:function(a){var b=a.toString(),c=w.get(this.ownerDocument);if("."===b.charAt(0)||"/"!==b.charAt(0)&&!a.host)b=(new C(c.location,b)).toString();a=h.indexOf(this.editingAreaStyleSheets,b);-1!==a&&(delete this.editingAreaStyleSheets[a],
  n('link[href\x3d"'+b+'"]',this.window.document).orphan())},disabled:!1,_mozSettingProps:{styleWithCSS:!1},_setDisabledAttr:function(a){a=!!a;this._set("disabled",a);if(this.isLoaded){var b=k("ie")&&(this.isLoaded||!this.focusOnLoad);b&&(this.editNode.unselectable="on");this.editNode.contentEditable=!a;this.editNode.tabIndex=a?"-1":this.tabIndex;b&&this.defer(function(){this.editNode&&(this.editNode.unselectable="off")});if(k("mozilla")&&!a&&this._mozSettingProps){a=this._mozSettingProps;for(var c in a)if(a.hasOwnProperty(c))try{this.document.execCommand(c,
  !1,a[c])}catch(L){}}this._disabledOK=!0}},onLoad:function(a){this.window.__registeredWindow||(this.window.__registeredWindow=!0,this._iframeRegHandle=I.registerIframe(this.iframe));this.editNode=this.document.body.firstChild;var b=this;this.beforeIframeNode=c.place("\x3cdiv tabIndex\x3d-1\x3e\x3c/div\x3e",this.iframe,"before");this.afterIframeNode=c.place("\x3cdiv tabIndex\x3d-1\x3e\x3c/div\x3e",this.iframe,"after");this.iframe.onfocus=this.document.onfocus=function(){b.editNode.focus()};this.focusNode=
  this.editNode;var d=this.events.concat(this.captureEvents),z=this.iframe?this.document:this.editNode;this.own.apply(this,h.map(d,function(a){var b=a.toLowerCase().replace(/^on/,"");return v(z,b,t.hitch(this,a))},this));this.own(v(z,"mouseup",t.hitch(this,"onClick")));k("ie")&&(this.own(v(this.document,"mousedown",t.hitch(this,"_onIEMouseDown"))),this.editNode.style.zoom=1);k("webkit")&&(this._webkitListener=this.own(v(this.document,"mouseup",t.hitch(this,"onDisplayChanged")))[0],this.own(v(this.document,
  "mousedown",t.hitch(this,function(a){a=a.target;!a||a!==this.document.body&&a!==this.document||this.defer("placeCursorAtEnd")}))));if(k("ie"))try{this.document.execCommand("RespectVisibilityInDesign",!0,null)}catch(M){}this.isLoaded=!0;this.set("disabled",this.disabled);d=t.hitch(this,function(){this.setValue(a);this.onLoadDeferred&&!this.onLoadDeferred.isFulfilled()&&this.onLoadDeferred.resolve(!0);this.onDisplayChanged();this.focusOnLoad&&g(t.hitch(this,"defer","focus",this.updateInterval));this.value=
  this.getValue(!0)});this.setValueDeferred?this.setValueDeferred.then(d):d()},onKeyDown:function(a){if(a.keyCode===l.SHIFT||a.keyCode===l.ALT||a.keyCode===l.META||a.keyCode===l.CTRL)return!0;a.keyCode===l.TAB&&this.isTabIndent&&(a.stopPropagation(),a.preventDefault(),this.queryCommandEnabled(a.shiftKey?"outdent":"indent")&&this.execCommand(a.shiftKey?"outdent":"indent"));if(a.keyCode==l.TAB&&!this.isTabIndent&&!a.ctrlKey&&!a.altKey)return a.shiftKey?this.beforeIframeNode.focus():this.afterIframeNode.focus(),
  !0;9>k("ie")&&a.keyCode===l.BACKSPACE&&"Control"===this.document.selection.type&&(a.stopPropagation(),a.preventDefault(),this.execCommand("delete"));k("ff")&&(a.keyCode===l.PAGE_UP||a.keyCode===l.PAGE_DOWN)&&this.editNode.clientHeight>=this.editNode.scrollHeight&&a.preventDefault();var b=this._keyHandlers[a.keyCode],c=arguments;b&&!a.altKey&&h.some(b,function(b){if(!(b.shift^a.shiftKey||b.ctrl^(a.ctrlKey||a.metaKey)))return b.handler.apply(this,c)||a.preventDefault(),!0},this);this.defer("onKeyPressed",
  1);return!0},onKeyUp:function(){},setDisabled:function(a){f.deprecated("dijit.Editor::setDisabled is deprecated",'use dijit.Editor::attr("disabled",boolean) instead',2);this.set("disabled",a)},_setValueAttr:function(a){this.setValue(a)},_setDisableSpellCheckAttr:function(a){this.document?b.set(this.document.body,"spellcheck",!a):this.onLoadDeferred.then(t.hitch(this,function(){b.set(this.document.body,"spellcheck",!a)}));this._set("disableSpellCheck",a)},addKeyHandler:function(a,b,c,d){"string"==
  typeof a&&(a=a.toUpperCase().charCodeAt(0));t.isArray(this._keyHandlers[a])||(this._keyHandlers[a]=[]);this._keyHandlers[a].push({shift:c||!1,ctrl:b||!1,handler:d})},onKeyPressed:function(){this.onDisplayChanged()},onClick:function(a){this.onDisplayChanged(a)},_onIEMouseDown:function(){this.focused||this.disabled||this.focus()},_onBlur:function(a){(k("ie")||k("trident"))&&this.defer(function(){I.curNode||this.ownerDocumentBody.focus()});this.inherited(arguments);var b=this.getValue(!0);if(b!==this.value)this.onChange(b);
  this._set("value",b)},_onFocus:function(a){this.disabled||(this._disabledOK||this.set("disabled",!1),this.inherited(arguments))},blur:function(){!k("ie")&&this.window.document.documentElement&&this.window.document.documentElement.focus?this.window.document.documentElement.focus():this.ownerDocumentBody.focus&&this.ownerDocumentBody.focus()},focus:function(){this.isLoaded?9>k("ie")?this.iframe.fireEvent("onfocus",document.createEventObject()):this.editNode.focus():this.focusOnLoad=!0},updateInterval:200,
  _updateTimer:null,onDisplayChanged:function(){this._updateTimer&&this._updateTimer.remove();this._updateTimer=this.defer("onNormalizedDisplayChanged",this.updateInterval)},onNormalizedDisplayChanged:function(){delete this._updateTimer},onChange:function(){},_normalizeCommand:function(a,b){var c=a.toLowerCase();"formatblock"===c?k("safari")&&void 0===b&&(c="heading"):"hilitecolor"!==c||k("mozilla")||(c="backcolor");return c},_qcaCache:{},queryCommandAvailable:function(a){var b=this._qcaCache[a];return void 0!==
  b?b:this._qcaCache[a]=this._queryCommandAvailable(a)},_queryCommandAvailable:function(a){switch(a.toLowerCase()){case "bold":case "italic":case "underline":case "subscript":case "superscript":case "fontname":case "fontsize":case "forecolor":case "hilitecolor":case "justifycenter":case "justifyfull":case "justifyleft":case "justifyright":case "delete":case "selectall":case "toggledir":case "createlink":case "unlink":case "removeformat":case "inserthorizontalrule":case "insertimage":case "insertorderedlist":case "insertunorderedlist":case "indent":case "outdent":case "formatblock":case "inserthtml":case "undo":case "redo":case "strikethrough":case "tabindent":case "cut":case "copy":case "paste":return!0;
  case "blockdirltr":case "blockdirrtl":case "dirltr":case "dirrtl":case "inlinedirltr":case "inlinedirrtl":return k("ie")||k("trident")||k("edge");case "inserttable":case "insertcell":case "insertcol":case "insertrow":case "deletecells":case "deletecols":case "deleterows":case "mergecells":case "splitcell":return!k("webkit");default:return!1}},execCommand:function(a,b){var c;this.focused&&this.focus();a=this._normalizeCommand(a,b);if(void 0!==b){if("heading"===a)throw Error("unimplemented");"formatblock"===
  a&&(k("ie")||k("trident"))&&(b="\x3c"+b+"\x3e")}var d="_"+a+"Impl";if(this[d])c=this[d](b);else if((b=1<arguments.length?b:null)||"createlink"!==a)c=this.document.execCommand(a,!1,b);this.onDisplayChanged();return c},queryCommandEnabled:function(a){if(this.disabled||!this._disabledOK)return!1;a=this._normalizeCommand(a);var b="_"+a+"EnabledImpl";return this[b]?this[b](a):this._browserQueryCommandEnabled(a)},queryCommandState:function(a){if(this.disabled||!this._disabledOK)return!1;a=this._normalizeCommand(a);
  try{return this.document.queryCommandState(a)}catch(F){return!1}},queryCommandValue:function(a){if(this.disabled||!this._disabledOK)return!1;a=this._normalizeCommand(a);if(k("ie")&&"formatblock"===a)a=this._native2LocalFormatNames[this.document.queryCommandValue(a)];else if(k("mozilla")&&"hilitecolor"===a){var b;try{b=this.document.queryCommandValue("styleWithCSS")}catch(K){b=!1}this.document.execCommand("styleWithCSS",!1,!0);a=this.document.queryCommandValue(a);this.document.execCommand("styleWithCSS",
  !1,b)}else a=this.document.queryCommandValue(a);return a},_sCall:function(a,b){return this.selection[a].apply(this.selection,b)},placeCursorAtStart:function(){this.focus();var a=!1;if(k("mozilla"))for(var b=this.editNode.firstChild;b;){if(3===b.nodeType){if(0<b.nodeValue.replace(/^\s+|\s+$/g,"").length){a=!0;this.selection.selectElement(b);break}}else if(1===b.nodeType){var a=!0,c=b.tagName?b.tagName.toLowerCase():"";/br|input|img|base|meta|area|basefont|hr|link/.test(c)?this.selection.selectElement(b):
  this.selection.selectElementChildren(b);break}b=b.nextSibling}else a=!0,this.selection.selectElementChildren(this.editNode);a&&this.selection.collapse(!0)},placeCursorAtEnd:function(){this.focus();var a=!1;if(k("mozilla"))for(var b=this.editNode.lastChild;b;){if(3===b.nodeType){if(0<b.nodeValue.replace(/^\s+|\s+$/g,"").length){a=!0;this.selection.selectElement(b);break}}else if(1===b.nodeType){a=!0;this.selection.selectElement(b.lastChild||b);break}b=b.previousSibling}else a=!0,this.selection.selectElementChildren(this.editNode);
  a&&this.selection.collapse(!1)},getValue:function(a){return!this.textarea||!this.isClosed&&this.isLoaded?this.isLoaded?this._postFilterContent(null,a):this.value:this.textarea.value},_getValueAttr:function(){return this.getValue(!0)},setValue:function(a){if(this.isLoaded){if(!this.textarea||!this.isClosed&&this.isLoaded){a=this._preFilterContent(a);var b=this.isClosed?this.domNode:this.editNode;b.innerHTML=a;this._preDomFilterContent(b)}else this.textarea.value=a;this.onDisplayChanged();this._set("value",
  this.getValue(!0))}else this.onLoadDeferred.then(t.hitch(this,function(){this.setValue(a)}))},replaceValue:function(a){this.isClosed?this.setValue(a):this.window&&this.window.getSelection&&!k("mozilla")?this.setValue(a):this.window&&this.window.getSelection?(a=this._preFilterContent(a),this.execCommand("selectall"),this.execCommand("inserthtml",a),this._preDomFilterContent(this.editNode)):this.document&&this.document.selection&&this.setValue(a);this._set("value",this.getValue(!0))},_preFilterContent:function(a){var b=
  a;h.forEach(this.contentPreFilters,function(a){a&&(b=a(b))});return b},_preDomFilterContent:function(a){a=a||this.editNode;h.forEach(this.contentDomPreFilters,function(b){b&&t.isFunction(b)&&b(a)},this)},_postFilterContent:function(a,b){var c;t.isString(a)?c=a:(a=a||this.editNode,this.contentDomPostFilters.length&&(b&&(a=t.clone(a)),h.forEach(this.contentDomPostFilters,function(b){a=b(a)})),c=u.getChildrenHtml(a));t.trim(c.replace(/^\xA0\xA0*/,"").replace(/\xA0\xA0*$/,"")).length||(c="");h.forEach(this.contentPostFilters,
  function(a){c=a(c)});return c},_saveContent:function(){var a=p.byId(J._scopeName+"._editor.RichText.value");a&&(a.value&&(a.value+=this._SEPARATOR),a.value+=this.name+this._NAME_CONTENT_SEP+this.getValue(!0))},escapeXml:function(a,b){a=a.replace(/&/gm,"\x26amp;").replace(/</gm,"\x26lt;").replace(/>/gm,"\x26gt;").replace(/"/gm,"\x26quot;");b||(a=a.replace(/'/gm,"\x26#39;"));return a},getNodeHtml:function(a){f.deprecated("dijit.Editor::getNodeHtml is deprecated","use dijit/_editor/html::getNodeHtml instead",
  2);return u.getNodeHtml(a)},getNodeChildrenHtml:function(a){f.deprecated("dijit.Editor::getNodeChildrenHtml is deprecated","use dijit/_editor/html::getChildrenHtml instead",2);return u.getChildrenHtml(a)},close:function(b){if(!this.isClosed){arguments.length||(b=!0);b&&this._set("value",this.getValue(!0));this.interval&&clearInterval(this.interval);this._webkitListener&&(this._webkitListener.remove(),delete this._webkitListener);k("ie")&&(this.iframe.onfocus=null);this.iframe._loadFunc=null;this._iframeRegHandle&&
  (this._iframeRegHandle.remove(),delete this._iframeRegHandle);if(this.textarea){var d=this.textarea.style;d.position="";d.left=d.top="";k("ie")&&(d.overflow=this.__overflow,this.__overflow=null);this.textarea.value=this.value;c.destroy(this.domNode);this.domNode=this.textarea}else this.domNode.innerHTML=this.value;delete this.iframe;a.remove(this.domNode,this.baseClass);this.isClosed=!0;this.isLoaded=!1;delete this.editNode;delete this.focusNode;this.window&&this.window._frameElement&&(this.window._frameElement=
  null);this.editorObject=this.editingArea=this.document=this.window=null}},destroy:function(){this.isClosed||this.close(!1);this._updateTimer&&this._updateTimer.remove();this.inherited(arguments);D._globalSaveHandler&&delete D._globalSaveHandler[this.id]},_removeMozBogus:function(a){return a.replace(/\stype="_moz"/gi,"").replace(/\s_moz_dirty=""/gi,"").replace(/_moz_resizing="(true|false)"/gi,"")},_removeWebkitBogus:function(a){a=a.replace(/\sclass="webkit-block-placeholder"/gi,"");a=a.replace(/\sclass="apple-style-span"/gi,
  "");return a=a.replace(/<meta charset=\"utf-8\" \/>/gi,"")},_normalizeFontStyle:function(a){return a.replace(/<(\/)?strong([ \>])/gi,"\x3c$1b$2").replace(/<(\/)?em([ \>])/gi,"\x3c$1i$2")},_preFixUrlAttributes:function(a){return a.replace(/(?:(<a(?=\s).*?\shref=)("|')(.*?)\2)|(?:(<a\s.*?href=)([^"'][^ >]+))/gi,"$1$4$2$3$5$2 _djrealurl\x3d$2$3$5$2").replace(/(?:(<img(?=\s).*?\ssrc=)("|')(.*?)\2)|(?:(<img\s.*?src=)([^"'][^ >]+))/gi,"$1$4$2$3$5$2 _djrealurl\x3d$2$3$5$2")},_browserQueryCommandEnabled:function(a){if(!a)return!1;
  if(k("ie")||k("trident")||k("edge"))return this.focused&&!this.disabled;var b=9>k("ie")?this.document.selection.createRange():this.document;try{return b.queryCommandEnabled(a)}catch(K){return!1}},_createlinkEnabledImpl:function(){var a=!0;return a=k("opera")?this.window.getSelection().isCollapsed?!0:this.document.queryCommandEnabled("createlink"):this._browserQueryCommandEnabled("createlink")},_unlinkEnabledImpl:function(){var a=!0;return a=k("mozilla")||k("webkit")||k("ie")||k("trident")||k("edge")?
  this.selection.hasAncestorElement("a"):this._browserQueryCommandEnabled("unlink")},_inserttableEnabledImpl:function(){var a=!0;return a=k("mozilla")||k("webkit")?!0:this._browserQueryCommandEnabled("inserttable")},_cutEnabledImpl:function(){var a=!0;k("webkit")?((a=this.window.getSelection())&&(a=a.toString()),a=!!a):a=this._browserQueryCommandEnabled("cut");return a},_copyEnabledImpl:function(){var a=!0;k("webkit")?((a=this.window.getSelection())&&(a=a.toString()),a=!!a):a=this._browserQueryCommandEnabled("copy");
  return a},_pasteEnabledImpl:function(){var a=!0;return k("webkit")?!0:a=this._browserQueryCommandEnabled("paste")},_inserthorizontalruleImpl:function(a){return k("ie")?this._inserthtmlImpl("\x3chr\x3e"):this.document.execCommand("inserthorizontalrule",!1,a)},_unlinkImpl:function(a){return this.queryCommandEnabled("unlink")&&(k("mozilla")||k("webkit"))?(a=this.selection.getAncestorElement("a"),this.selection.selectElement(a),this.document.execCommand("unlink",!1,null)):this.document.execCommand("unlink",
  !1,a)},_hilitecolorImpl:function(a){var b;this._handleTextColorOrProperties("hilitecolor",a)||(k("mozilla")?(this.document.execCommand("styleWithCSS",!1,!0),console.log("Executing color command."),b=this.document.execCommand("hilitecolor",!1,a),this.document.execCommand("styleWithCSS",!1,!1)):b=this.document.execCommand("hilitecolor",!1,a));return b},_backcolorImpl:function(a){k("ie")&&(a=a?a:null);var b=this._handleTextColorOrProperties("backcolor",a);b||(b=this.document.execCommand("backcolor",
  !1,a));return b},_forecolorImpl:function(a){k("ie")&&(a=a?a:null);var b=!1;(b=this._handleTextColorOrProperties("forecolor",a))||(b=this.document.execCommand("forecolor",!1,a));return b},_inserthtmlImpl:function(a){a=this._preFilterContent(a);var b=!0;if(9>k("ie")){var d=this.document.selection.createRange();if("CONTROL"===this.document.selection.type.toUpperCase()){for(var e=d.item(0);d.length;)d.remove(d.item(0));e.outerHTML=a}else d.pasteHTML(a);d.select()}else if(8>k("trident")){var g=y.getSelection(this.window);
  if(g&&g.rangeCount&&g.getRangeAt){d=g.getRangeAt(0);d.deleteContents();var u=c.create("div");u.innerHTML=a;for(var n,e=this.document.createDocumentFragment();a=u.firstChild;)n=e.appendChild(a);d.insertNode(e);n&&(d=d.cloneRange(),d.setStartAfter(n),d.collapse(!1),g.removeAllRanges(),g.addRange(d))}}else k("mozilla")&&!a.length?this.selection.remove():b=this.document.execCommand("inserthtml",!1,a);return b},_boldImpl:function(a){var b=!1;if(k("ie")||k("trident"))this._adaptIESelection(),b=this._adaptIEFormatAreaAndExec("bold");
  b||(b=this.document.execCommand("bold",!1,a));return b},_italicImpl:function(a){var b=!1;if(k("ie")||k("trident"))this._adaptIESelection(),b=this._adaptIEFormatAreaAndExec("italic");b||(b=this.document.execCommand("italic",!1,a));return b},_underlineImpl:function(a){var b=!1;if(k("ie")||k("trident"))this._adaptIESelection(),b=this._adaptIEFormatAreaAndExec("underline");b||(b=this.document.execCommand("underline",!1,a));return b},_strikethroughImpl:function(a){var b=!1;if(k("ie")||k("trident"))this._adaptIESelection(),
  b=this._adaptIEFormatAreaAndExec("strikethrough");b||(b=this.document.execCommand("strikethrough",!1,a));return b},_superscriptImpl:function(a){var b=!1;if(k("ie")||k("trident"))this._adaptIESelection(),b=this._adaptIEFormatAreaAndExec("superscript");b||(b=this.document.execCommand("superscript",!1,a));return b},_subscriptImpl:function(a){var b=!1;if(k("ie")||k("trident"))this._adaptIESelection(),b=this._adaptIEFormatAreaAndExec("subscript");b||(b=this.document.execCommand("subscript",!1,a));return b},
  _fontnameImpl:function(a){var b;if(k("ie")||k("trident"))b=this._handleTextColorOrProperties("fontname",a);b||(b=this.document.execCommand("fontname",!1,a));return b},_fontsizeImpl:function(a){var b;if(k("ie")||k("trident"))b=this._handleTextColorOrProperties("fontsize",a);b||(b=this.document.execCommand("fontsize",!1,a));return b},_insertorderedlistImpl:function(a){var b=!1;if(k("ie")||k("trident")||k("edge"))b=this._adaptIEList("insertorderedlist",a);b||(b=this.document.execCommand("insertorderedlist",
  !1,a));return b},_insertunorderedlistImpl:function(a){var b=!1;if(k("ie")||k("trident")||k("edge"))b=this._adaptIEList("insertunorderedlist",a);b||(b=this.document.execCommand("insertunorderedlist",!1,a));return b},getHeaderHeight:function(){return this._getNodeChildrenHeight(this.header)},getFooterHeight:function(){return this._getNodeChildrenHeight(this.footer)},_getNodeChildrenHeight:function(a){var b=0;if(a&&a.childNodes){var c;for(c=0;c<a.childNodes.length;c++)var e=d.position(a.childNodes[c]),
  b=b+e.h}return b},_isNodeEmpty:function(a,b){return 1===a.nodeType?0<a.childNodes.length?this._isNodeEmpty(a.childNodes[0],b):!0:3===a.nodeType?""===a.nodeValue.substring(b):!1},_removeStartingRangeFromRange:function(a,b){if(a.nextSibling)b.setStart(a.nextSibling,0);else{for(var c=a.parentNode;c&&null==c.nextSibling;)c=c.parentNode;c&&b.setStart(c.nextSibling,0)}return b},_adaptIESelection:function(){var a=y.getSelection(this.window);if(a&&a.rangeCount&&!a.isCollapsed){for(var b=a.getRangeAt(0),c=
  b.startContainer,d=b.startOffset;3===c.nodeType&&d>=c.length&&c.nextSibling;)d-=c.length,c=c.nextSibling;for(var e=null;this._isNodeEmpty(c,d)&&c!==e;)e=c,b=this._removeStartingRangeFromRange(c,b),c=b.startContainer,d=0;a.removeAllRanges();a.addRange(b)}},_adaptIEFormatAreaAndExec:function(a){var b=y.getSelection(this.window),d=this.document,e,g,k,u,n,f,l;if(a&&b&&b.isCollapsed){if(this.queryCommandValue(a)){a=this._tagNamesForCommand(a);k=b.getRangeAt(0);u=k.startContainer;3===u.nodeType&&(g=k.endOffset,
  u.length<g&&(g=this._adjustNodeAndOffset(e,g),u=g.node,g=g.offset));for(;u&&u!==this.editNode;){e=u.tagName?u.tagName.toLowerCase():"";if(-1<h.indexOf(a,e)){l=u;break}u=u.parentNode}if(l&&(e=k.startContainer,a=d.createElement(l.tagName),c.place(a,l,"after"),e&&3===e.nodeType)){g=k.endOffset;e.length<g&&(g=this._adjustNodeAndOffset(e,g),e=g.node,g=g.offset);u=e.nodeValue;k=d.createTextNode(u.substring(0,g));var w=u.substring(g,u.length);w&&(n=d.createTextNode(w));c.place(k,e,"before");n&&(f=d.createElement("span"),
  f.className="ieFormatBreakerSpan",c.place(f,e,"after"),c.place(n,f,"after"),n=f);c.destroy(e);g=k.parentNode;for(e=[];g!==l;){u=g.tagName;k={tagName:u};e.push(k);u=d.createElement(u);g.style&&u.style&&g.style.cssText&&(u.style.cssText=g.style.cssText,k.cssText=g.style.cssText);"FONT"===g.tagName&&(g.color&&(u.color=g.color,k.color=g.color),g.face&&(u.face=g.face,k.face=g.face),g.size&&(u.size=g.size,k.size=g.size));g.className&&(u.className=g.className,k.className=g.className);if(n)for(;n;)k=n.nextSibling,
  u.appendChild(n),n=k;u.tagName==g.tagName?(f=d.createElement("span"),f.className="ieFormatBreakerSpan",c.place(f,g,"after"),c.place(u,f,"after")):c.place(u,g,"after");k=g;n=u;g=g.parentNode}if(n){if(1===n.nodeType||3===n.nodeType&&n.nodeValue)a.innerHTML="";for(;n;)k=n.nextSibling,a.appendChild(n),n=k}if(e.length){k=e.pop();n=d.createElement(k.tagName);k.cssText&&n.style&&(n.style.cssText=k.cssText);k.className&&(n.className=k.className);"FONT"===k.tagName&&(k.color&&(n.color=k.color),k.face&&(n.face=
  k.face),k.size&&(n.size=k.size));for(c.place(n,a,"before");e.length;)k=e.pop(),l=d.createElement(k.tagName),k.cssText&&l.style&&(l.style.cssText=k.cssText),k.className&&(l.className=k.className),"FONT"===k.tagName&&(k.color&&(l.color=k.color),k.face&&(l.face=k.face),k.size&&(l.size=k.size)),n.appendChild(l),n=l;l=d.createTextNode(".");f.appendChild(l);n.appendChild(l)}else f=d.createElement("span"),f.className="ieFormatBreakerSpan",l=d.createTextNode("."),f.appendChild(l),c.place(f,a,"before");n=
  y.create(this.window);n.setStart(l,0);n.setEnd(l,l.length);b.removeAllRanges();b.addRange(n);this.selection.collapse(!1);l.parentNode.innerHTML="";a.firstChild||c.destroy(a);return!0}return!1}k=b.getRangeAt(0);if((e=k.startContainer)&&3===e.nodeType)return g=k.startOffset,e.length<g&&(g=this._adjustNodeAndOffset(e,g),e=g.node,g=g.offset),u=e.nodeValue,k=d.createTextNode(u.substring(0,g)),w=u.substring(g),""!==w&&(n=d.createTextNode(u.substring(g))),f=d.createElement("span"),l=d.createTextNode("."),
  f.appendChild(l),k.length?c.place(k,e,"after"):k=e,c.place(f,k,"after"),n&&c.place(n,f,"after"),c.destroy(e),n=y.create(this.window),n.setStart(l,0),n.setEnd(l,l.length),b.removeAllRanges(),b.addRange(n),d.execCommand(a),c.place(f.firstChild,f,"before"),c.destroy(f),n.setStart(l,0),n.setEnd(l,l.length),b.removeAllRanges(),b.addRange(n),this.selection.collapse(!1),l.parentNode.innerHTML="",!0}else return!1},_adaptIEList:function(a){var b=y.getSelection(this.window);if(b.isCollapsed&&b.rangeCount&&
  !this.queryCommandValue(a)){var d=b.getRangeAt(0),e=d.startContainer;if(e&&3==e.nodeType&&!d.startOffset)return d="ul","insertorderedlist"===a&&(d="ol"),a=this.document.createElement(d),d=c.create("li",null,a),c.place(a,e,"before"),d.appendChild(e),c.create("br",null,a,"after"),a=y.create(this.window),a.setStart(e,0),a.setEnd(e,e.length),b.removeAllRanges(),b.addRange(a),this.selection.collapse(!0),!0}return!1},_handleTextColorOrProperties:function(a,b){var d=y.getSelection(this.window),g=this.document,
  n,u,f,l,h;b=b||null;if(a&&d&&d.isCollapsed&&d.rangeCount&&(u=d.getRangeAt(0),(n=u.startContainer)&&3===n.nodeType)){h=u.startOffset;n.length<h&&(u=this._adjustNodeAndOffset(n,h),n=u.node,h=u.offset);f=n.nodeValue;u=g.createTextNode(f.substring(0,h));""!==f.substring(h)&&(l=g.createTextNode(f.substring(h)));f=g.createElement("span");h=g.createTextNode(".");f.appendChild(h);g=g.createElement("span");f.appendChild(g);u.length?c.place(u,n,"after"):u=n;c.place(f,u,"after");l&&c.place(l,f,"after");c.destroy(n);
  n=y.create(this.window);n.setStart(h,0);n.setEnd(h,h.length);d.removeAllRanges();d.addRange(n);if(k("webkit")){d="color";if("hilitecolor"===a||"backcolor"===a)d="backgroundColor";e.set(f,d,b);this.selection.remove();c.destroy(g);f.innerHTML="\x26#160;";this.selection.selectElement(f);this.focus()}else this.execCommand(a,b),c.place(f.firstChild,f,"before"),c.destroy(f),n.setStart(h,0),n.setEnd(h,h.length),d.removeAllRanges(),d.addRange(n),this.selection.collapse(!1),h.parentNode.removeChild(h);return!0}return!1},
  _adjustNodeAndOffset:function(a,b){for(;a.length<b&&a.nextSibling&&3===a.nextSibling.nodeType;)b-=a.length,a=a.nextSibling;return{node:a,offset:b}},_tagNamesForCommand:function(a){return"bold"===a?["b","strong"]:"italic"===a?["i","em"]:"strikethrough"===a?["s","strike"]:"superscript"===a?["sup"]:"subscript"===a?["sub"]:"underline"===a?["u"]:[]},_stripBreakerNodes:function(a){if(this.isLoaded)return n(".ieFormatBreakerSpan",a).forEach(function(a){for(;a.firstChild;)c.place(a.firstChild,a,"before");
  c.destroy(a)}),a},_stripTrailingEmptyNodes:function(a){function b(a){return/^(p|div|br)$/i.test(a.nodeName)&&0==a.children.length&&/^[\s\xA0]*$/.test(a.textContent||a.innerText||"")||3===a.nodeType&&/^[\s\xA0]*$/.test(a.nodeValue)}for(;a.lastChild&&b(a.lastChild);)c.destroy(a.lastChild);return a},_setTextDirAttr:function(a){this._set("textDir",a);this.onLoadDeferred.then(t.hitch(this,function(){this.editNode.dir=a}))}});return D})},"dijit/_editor/range":function(){define(["dojo/_base/array","dojo/_base/declare",
  "dojo/_base/lang"],function(h,q,r){var m={getIndex:function(a,b){for(var c=[],e=[],f=a,l,h;a!=b;){var m=0;for(l=a.parentNode;h=l.childNodes[m++];)if(h===a){--m;break}c.unshift(m);e.unshift(m-l.childNodes.length);a=l}if(0<c.length&&3==f.nodeType){for(h=f.previousSibling;h&&3==h.nodeType;)c[c.length-1]--,h=h.previousSibling;for(h=f.nextSibling;h&&3==h.nodeType;)e[e.length-1]++,h=h.nextSibling}return{o:c,r:e}},getNode:function(a,b){if(!r.isArray(a)||0==a.length)return b;var c=b;h.every(a,function(a){if(0<=
  a&&a<c.childNodes.length)c=c.childNodes[a];else return c=null,!1;return!0});return c},getCommonAncestor:function(a,b,d){d=d||a.ownerDocument.body;var c=function(a){for(var b=[];a;)if(b.unshift(a),a!==d)a=a.parentNode;else break;return b};a=c(a);b=c(b);for(var c=Math.min(a.length,b.length),f=a[0],l=1;l<c;l++)if(a[l]===b[l])f=a[l];else break;return f},getAncestor:function(a,b,d){for(d=d||a.ownerDocument.body;a&&a!==d;){var c=a.nodeName.toUpperCase();if(b.test(c))return a;a=a.parentNode}return null},
  BlockTagNames:/^(?:P|DIV|H1|H2|H3|H4|H5|H6|ADDRESS|PRE|OL|UL|LI|DT|DE)$/,getBlockAncestor:function(a,b,d){d=d||a.ownerDocument.body;b=b||m.BlockTagNames;for(var c=null,f;a&&a!==d;){var l=a.nodeName.toUpperCase();!c&&b.test(l)&&(c=a);!f&&/^(?:BODY|TD|TH|CAPTION)$/.test(l)&&(f=a);a=a.parentNode}return{blockNode:c,blockContainer:f||a.ownerDocument.body}},atBeginningOfContainer:function(a,b,d){var c=!1,f=0==d;f||3!=b.nodeType||/^[\s\xA0]+$/.test(b.nodeValue.substr(0,d))&&(f=!0);if(f)for(c=!0;b&&b!==a;){if(b.previousSibling){c=
  !1;break}b=b.parentNode}return c},atEndOfContainer:function(a,b,d){var c=!1,f=d==(b.length||b.childNodes.length);f||3!=b.nodeType||/^[\s\xA0]+$/.test(b.nodeValue.substr(d))&&(f=!0);if(f)for(c=!0;b&&b!==a;){if(b.nextSibling){c=!1;break}b=b.parentNode}return c},adjacentNoneTextNode:function(a,b){for(var c=a,e=0-a.length||0,f=b?"nextSibling":"previousSibling";c&&3==c.nodeType;)e+=c.length,c=c[f];return[c,e]},create:function(a){a=a||window;return a.getSelection?a.document.createRange():new b},getSelection:function(a,
  b){if(a.getSelection)return a.getSelection();var c=new p.selection(a);b||c._getCurrentSelection();return c}};if(!window.getSelection)var p=m.ie={cachedSelection:{},selection:function(a){this._ranges=[];this.addRange=function(a,b){this._ranges.push(a);b||a._select();this.rangeCount=this._ranges.length};this.removeAllRanges=function(){this._ranges=[];this.rangeCount=0};this.getRangeAt=function(a){return this._ranges[a]};this._getCurrentSelection=function(){this.removeAllRanges();var c;c=a.document.selection.createRange();
  c="CONTROL"==a.document.selection.type.toUpperCase()?new b(p.decomposeControlRange(c)):new b(p.decomposeTextRange(c));this.addRange(c,!0),this.isCollapsed=c.collapsed}},decomposeControlRange:function(a){var b=a.item(0),d=a.item(a.length-1);a=b.parentNode;var e=d.parentNode,b=m.getIndex(b,a).o[0],d=m.getIndex(d,e).o[0]+1;return[a,b,e,d]},getEndPoint:function(a,b){var c=a.duplicate();c.collapse(!b);var e="EndTo"+(b?"End":"Start"),f=c.parentElement(),l,q,p;0<f.childNodes.length?h.every(f.childNodes,
  function(b,d){var g;if(3!=b.nodeType)if(c.moveToElementText(b),0<c.compareEndPoints(e,a))if(p&&3==p.nodeType)l=p,g=!0;else return l=f,q=d,!1;else{if(d==f.childNodes.length-1)return l=f,q=f.childNodes.length,!1}else d==f.childNodes.length-1&&(l=b,g=!0);if(g&&l){l=(g=m.adjacentNoneTextNode(l)[0])?g.nextSibling:f.firstChild;var k=m.adjacentNoneTextNode(l);g=k[0];k=k[1];g?(c.moveToElementText(g),c.collapse(!1)):c.moveToElementText(f);c.setEndPoint(e,a);q=c.text.length-k;return!1}p=b;return!0}):(l=f,q=
  0);if(!b&&1==l.nodeType&&q==l.childNodes.length){var n=l.nextSibling;n&&3==n.nodeType&&(l=n,q=0)}return[l,q]},setEndPoint:function(a,b,d){a=a.duplicate();var c;if(3!=b.nodeType)if(0<d){if(c=b.childNodes[d-1])if(3==c.nodeType)b=c,d=c.length;else if(c.nextSibling&&3==c.nextSibling.nodeType)b=c.nextSibling,d=0;else{a.moveToElementText(c.nextSibling?c:b);var f=c.parentNode;c=f.insertBefore(c.ownerDocument.createTextNode(" "),c.nextSibling);a.collapse(!1);f.removeChild(c)}}else a.moveToElementText(b),
  a.collapse(!0);3==b.nodeType&&(c=m.adjacentNoneTextNode(b),f=c[0],c=c[1],f?(a.moveToElementText(f),a.collapse(!1),"inherit"!=f.contentEditable&&c++):(a.moveToElementText(b.parentNode),a.collapse(!0),a.move("character",1),a.move("character",-1)),d+=c,0<d&&a.move("character",d)!=d&&console.error("Error when moving!"));return a},decomposeTextRange:function(a){var b=p.getEndPoint(a),d=b[0],e=b[1],f=b[0],b=b[1];a.htmlText.length&&(a.htmlText==a.text?b=e+a.text.length:(b=p.getEndPoint(a,!0),f=b[0],b=b[1]));
  return[d,e,f,b]},setRange:function(a,b,d,e,f,l){b=p.setEndPoint(a,b,d);a.setEndPoint("StartToStart",b);if(!l)var c=p.setEndPoint(a,e,f);a.setEndPoint("EndToEnd",c||b);return a}},b=m.W3CRange=q(null,{constructor:function(){0<arguments.length?(this.setStart(arguments[0][0],arguments[0][1]),this.setEnd(arguments[0][2],arguments[0][3])):(this.startContainer=this.commonAncestorContainer=null,this.startOffset=0,this.endContainer=null,this.endOffset=0,this.collapsed=!0)},_updateInternal:function(){this.commonAncestorContainer=
  this.startContainer!==this.endContainer?m.getCommonAncestor(this.startContainer,this.endContainer):this.startContainer;this.collapsed=this.startContainer===this.endContainer&&this.startOffset==this.endOffset},setStart:function(a,b){b=parseInt(b);if(this.startContainer!==a||this.startOffset!=b)delete this._cachedBookmark,this.startContainer=a,this.startOffset=b,this.endContainer?this._updateInternal():this.setEnd(a,b)},setEnd:function(a,b){b=parseInt(b);if(this.endContainer!==a||this.endOffset!=b)delete this._cachedBookmark,
  this.endContainer=a,this.endOffset=b,this.startContainer?this._updateInternal():this.setStart(a,b)},setStartAfter:function(a,b){this._setPoint("setStart",a,b,1)},setStartBefore:function(a,b){this._setPoint("setStart",a,b,0)},setEndAfter:function(a,b){this._setPoint("setEnd",a,b,1)},setEndBefore:function(a,b){this._setPoint("setEnd",a,b,0)},_setPoint:function(a,b,d,e){d=m.getIndex(b,b.parentNode).o;this[a](b.parentNode,d.pop()+e)},_getIERange:function(){var a=(this._body||this.endContainer.ownerDocument.body).createTextRange();
  p.setRange(a,this.startContainer,this.startOffset,this.endContainer,this.endOffset,this.collapsed);return a},getBookmark:function(){this._getIERange();return this._cachedBookmark},_select:function(){this._getIERange().select()},deleteContents:function(){var a=this.startContainer,b=this._getIERange();3!==a.nodeType||this.startOffset||this.setStartBefore(a);b.pasteHTML("");this.endContainer=this.startContainer;this.endOffset=this.startOffset;this.collapsed=!0},cloneRange:function(){var a=new b([this.startContainer,
  this.startOffset,this.endContainer,this.endOffset]);a._body=this._body;return a},detach:function(){this.startContainer=this.commonAncestorContainer=this._body=null;this.startOffset=0;this.endContainer=null;this.endOffset=0;this.collapsed=!0}});r.setObject("dijit.range",m);return m})},"dijit/_editor/html":function(){define(["dojo/_base/array","dojo/_base/lang","dojo/sniff"],function(h,q,r){var m={};q.setObject("dijit._editor.html",m);var p=m.escapeXml=function(b,a){b=b.replace(/&/gm,"\x26amp;").replace(/</gm,
  "\x26lt;").replace(/>/gm,"\x26gt;").replace(/"/gm,"\x26quot;");a||(b=b.replace(/'/gm,"\x26#39;"));return b};m.getNodeHtml=function(b){var a=[];m.getNodeHtmlHelper(b,a);return a.join("")};m.getNodeHtmlHelper=function(b,a){switch(b.nodeType){case 1:var c=b.nodeName.toLowerCase();if(!c||"/"==c.charAt(0))return"";a.push("\x3c",c);var d=[],e={},f;if(r("dom-attributes-explicit")||r("dom-attributes-specified-flag"))for(var l=0;f=b.attributes[l++];){var q=f.name;"_dj"===q.substr(0,3)||r("dom-attributes-specified-flag")&&
  !f.specified||q in e||(f=f.value,("src"==q||"href"==q)&&b.getAttribute("_djrealurl")&&(f=b.getAttribute("_djrealurl")),8===r("ie")&&"style"===q&&(f=f.replace("HEIGHT:","height:").replace("WIDTH:","width:")),d.push([q,f]),e[q]=f)}else{var v=(/^input$|^img$/i.test(b.nodeName)?b:b.cloneNode(!1)).outerHTML,e=v.match(/[\w-]+=("[^"]*"|'[^']*'|\S*)/gi),v=v.substr(0,v.indexOf("\x3e"));h.forEach(e,function(a){if(a){var g=a.indexOf("\x3d");if(0<g&&(a=a.substring(0,g),"_dj"!=a.substr(0,3)))if("src"!=a&&"href"!=
  a||!b.getAttribute("_djrealurl")){var k;switch(a){case "style":k=b.style.cssText.toLowerCase();break;case "class":k=b.className;break;case "width":if("img"===c){(g=/width=(\S+)/i.exec(v))&&(k=g[1]);break}case "height":if("img"===c){(g=/height=(\S+)/i.exec(v))&&(k=g[1]);break}default:k=b.getAttribute(a)}null!=k&&d.push([a,k.toString()])}else d.push([a,b.getAttribute("_djrealurl")])}},this)}d.sort(function(a,b){return a[0]<b[0]?-1:a[0]==b[0]?0:1});for(e=0;f=d[e++];)a.push(" ",f[0],'\x3d"',"string"===
  typeof f[1]?p(f[1],!0):f[1],'"');switch(c){case "br":case "hr":case "img":case "input":case "base":case "meta":case "area":case "basefont":a.push(" /\x3e");break;case "script":a.push("\x3e",b.innerHTML,"\x3c/",c,"\x3e");break;default:a.push("\x3e"),b.hasChildNodes()&&m.getChildrenHtmlHelper(b,a),a.push("\x3c/",c,"\x3e")}break;case 4:case 3:a.push(p(b.nodeValue,!0));break;case 8:a.push("\x3c!--",p(b.nodeValue,!0),"--\x3e");break;default:a.push("\x3c!-- Element not recognized - Type: ",b.nodeType," Name: ",
  b.nodeName,"--\x3e")}};m.getChildrenHtml=function(b){var a=[];m.getChildrenHtmlHelper(b,a);return a.join("")};m.getChildrenHtmlHelper=function(b,a){if(b)for(var c=b.childNodes||b,d=!r("ie")||c!==b,e,f=0;e=c[f++];)d&&e.parentNode!=b||m.getNodeHtmlHelper(e,a)};return m})},"dijit/_editor/plugins/LinkDialog":function(){define("require dojo/_base/declare dojo/dom-attr dojo/keys dojo/_base/lang dojo/on dojo/sniff dojo/query dojo/string ../_Plugin ../../form/DropDownButton ../range".split(" "),function(h,
  q,r,m,p,b,a,c,d,e,f,l){var t=q("dijit._editor.plugins.LinkDialog",e,{buttonClass:f,useDefaultCommand:!1,urlRegExp:"((https?|ftps?|file)\\://|./|../|/|)(/[a-zA-Z]{1,1}:/|)(((?:(?:[\\da-zA-Z](?:[-\\da-zA-Z]{0,61}[\\da-zA-Z])?)\\.)*(?:[a-zA-Z](?:[-\\da-zA-Z]{0,80}[\\da-zA-Z])?)\\.?)|(((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])|(0[xX]0*[\\da-fA-F]?[\\da-fA-F]\\.){3}0[xX]0*[\\da-fA-F]?[\\da-fA-F]|(0+[0-3][0-7][0-7]\\.){3}0+[0-3][0-7][0-7]|(0|[1-9]\\d{0,8}|[1-3]\\d{9}|4[01]\\d{8}|42[0-8]\\d{7}|429[0-3]\\d{6}|4294[0-8]\\d{5}|42949[0-5]\\d{4}|429496[0-6]\\d{3}|4294967[01]\\d{2}|42949672[0-8]\\d|429496729[0-5])|0[xX]0*[\\da-fA-F]{1,8}|([\\da-fA-F]{1,4}\\:){7}[\\da-fA-F]{1,4}|([\\da-fA-F]{1,4}\\:){6}((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])))(\\:\\d+)?(/(?:[^?#\\s/]+/)*(?:[^?#\\s/]{0,}(?:\\?[^?#\\s/]*)?(?:#.*)?)?)?",
  emailRegExp:"\x3c?(mailto\\:)([!#-'*+\\-\\/-9\x3d?A-Z^-~]+[.])*[!#-'*+\\-\\/-9\x3d?A-Z^-~]+@((?:(?:[\\da-zA-Z](?:[-\\da-zA-Z]{0,61}[\\da-zA-Z])?)\\.)+(?:[a-zA-Z](?:[-\\da-zA-Z]{0,6}[\\da-zA-Z])?)\\.?)|localhost|^[^-][a-zA-Z0-9_-]*\x3e?",htmlTemplate:'\x3ca href\x3d"${urlInput}" _djrealurl\x3d"${urlInput}" target\x3d"${targetSelect}"\x3e${textInput}\x3c/a\x3e',tag:"a",_hostRxp:/^((([^\[:]+):)?([^@]+)@)?(\[([^\]]+)\]|([^\[:]*))(:([0-9]+))?$/,_userAtRxp:/^([!#-'*+\-\/-9=?A-Z^-~]+[.])*[!#-'*+\-\/-9=?A-Z^-~]+@/i,
  linkDialogTemplate:"\x3ctable role\x3d'presentation'\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_urlInput'\x3e${url}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput data-dojo-type\x3d'dijit.form.ValidationTextBox' required\x3d'true' id\x3d'${id}_urlInput' name\x3d'urlInput' data-dojo-props\x3d'intermediateChanges:true'/\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_textInput'\x3e${text}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput data-dojo-type\x3d'dijit.form.ValidationTextBox' required\x3d'true' id\x3d'${id}_textInput' name\x3d'textInput' data-dojo-props\x3d'intermediateChanges:true'/\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_targetSelect'\x3e${target}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cselect id\x3d'${id}_targetSelect' name\x3d'targetSelect' data-dojo-type\x3d'dijit.form.Select'\x3e\x3coption selected\x3d'selected' value\x3d'_self'\x3e${currentWindow}\x3c/option\x3e\x3coption value\x3d'_blank'\x3e${newWindow}\x3c/option\x3e\x3coption value\x3d'_top'\x3e${topWindow}\x3c/option\x3e\x3coption value\x3d'_parent'\x3e${parentWindow}\x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d'2'\x3e\x3cbutton data-dojo-type\x3d'dijit.form.Button' type\x3d'submit' id\x3d'${id}_setButton'\x3e${set}\x3c/button\x3e\x3cbutton data-dojo-type\x3d'dijit.form.Button' type\x3d'button' id\x3d'${id}_cancelButton'\x3e${buttonCancel}\x3c/button\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e",
  _initButton:function(){this.inherited(arguments);this.button.loadDropDown=p.hitch(this,"_loadDropDown");this._connectTagEvents()},_loadDropDown:function(a){h("dojo/i18n ../../TooltipDialog ../../registry ../../form/Button ../../form/Select ../../form/ValidationTextBox dojo/i18n!../../nls/common dojo/i18n!../nls/LinkDialog".split(" "),p.hitch(this,function(c,k,e){var g=this;this.tag="insertImage"==this.command?"img":"a";c=p.delegate(c.getLocalization("dijit","common",this.lang),c.getLocalization("dijit._editor",
  "LinkDialog",this.lang));var n=this.dropDown=this.button.dropDown=new k({title:c[this.command+"Title"],ownerDocument:this.editor.ownerDocument,dir:this.editor.dir,execute:p.hitch(this,"setValue"),onOpen:function(){g._onOpenDialog();k.prototype.onOpen.apply(this,arguments)},onCancel:function(){setTimeout(p.hitch(g,"_onCloseDialog"),0)}});c.urlRegExp=this.urlRegExp;c.id=e.getUniqueId(this.editor.id);this._uniqueId=c.id;this._setContent(n.title+"\x3cdiv style\x3d'border-bottom: 1px black solid;padding-bottom:2pt;margin-bottom:4pt'\x3e\x3c/div\x3e"+
  d.substitute(this.linkDialogTemplate,c));n.startup();this._urlInput=e.byId(this._uniqueId+"_urlInput");this._textInput=e.byId(this._uniqueId+"_textInput");this._setButton=e.byId(this._uniqueId+"_setButton");this.own(e.byId(this._uniqueId+"_cancelButton").on("click",p.hitch(this.dropDown,"onCancel")));this._urlInput&&this.own(this._urlInput.on("change",p.hitch(this,"_checkAndFixInput")));this._textInput&&this.own(this._textInput.on("change",p.hitch(this,"_checkAndFixInput")));this._urlRegExp=new RegExp("^"+
  this.urlRegExp+"$","i");this._emailRegExp=new RegExp("^"+this.emailRegExp+"$","i");this._urlInput.isValid=p.hitch(this,function(){var a=this._urlInput.get("value");return this._urlRegExp.test(a)||this._emailRegExp.test(a)});this.own(b(n.domNode,"keydown",p.hitch(this,p.hitch(this,function(a){!a||a.keyCode!=m.ENTER||a.shiftKey||a.metaKey||a.ctrlKey||a.altKey||this._setButton.get("disabled")||(n.onExecute(),n.execute(n.get("value")))}))));a()}))},_checkAndFixInput:function(){var a=this,b=this._urlInput.get("value");
  this._delayedCheck&&(clearTimeout(this._delayedCheck),this._delayedCheck=null);this._delayedCheck=setTimeout(function(){var c=b,d=!1,g=!1;c&&1<c.length&&(c=p.trim(c),0!==c.indexOf("mailto:")&&(0<c.indexOf("/")?-1===c.indexOf("://")&&"/"!==c.charAt(0)&&c.indexOf("./")&&0!==c.indexOf("../")&&a._hostRxp.test(c)&&(d=!0):a._userAtRxp.test(c)&&(g=!0)));d&&a._urlInput.set("value","http://"+c);g&&a._urlInput.set("value","mailto:"+c);a._setButton.set("disabled",!a._isValid())},250)},_connectTagEvents:function(){this.editor.onLoadDeferred.then(p.hitch(this,
  function(){this.own(b(this.editor.editNode,"dblclick",p.hitch(this,"_onDblClick")))}))},_isValid:function(){return this._urlInput.isValid()&&this._textInput.isValid()},_setContent:function(a){this.dropDown.set({parserScope:"dojo",content:a})},_checkValues:function(a){a&&a.urlInput&&(a.urlInput=a.urlInput.replace(/"/g,"\x26quot;"));return a},setValue:function(b){this._onCloseDialog();if(9>a("ie")){var g=l.getSelection(this.editor.window).getRangeAt(0).endContainer;3===g.nodeType&&(g=g.parentNode);
  g&&g.nodeName&&g.nodeName.toLowerCase()!==this.tag&&(g=this.editor.selection.getSelectedElement(this.tag));g&&g.nodeName&&g.nodeName.toLowerCase()===this.tag&&this.editor.queryCommandEnabled("unlink")&&(this.editor.selection.selectElementChildren(g),this.editor.execCommand("unlink"))}b=this._checkValues(b);this.editor.execCommand("inserthtml",d.substitute(this.htmlTemplate,b));c("a",this.editor.document).forEach(function(a){a.innerHTML||r.has(a,"name")||a.parentNode.removeChild(a)},this)},_onCloseDialog:function(){this.editor.focused&&
  this.editor.focus()},_getCurrentValues:function(a){var b,c,d;a&&a.tagName.toLowerCase()===this.tag?(b=a.getAttribute("_djrealurl")||a.getAttribute("href"),d=a.getAttribute("target")||"_self",c=a.textContent||a.innerText,this.editor.selection.selectElement(a,!0)):c=this.editor.selection.getSelectedText();return{urlInput:b||"",textInput:c||"",targetSelect:d||""}},_onOpenDialog:function(){var b,c;if(a("ie")){if(c=l.getSelection(this.editor.window),c.rangeCount){var d=c.getRangeAt(0);b=d.endContainer;
  3===b.nodeType&&(b=b.parentNode);b&&b.nodeName&&b.nodeName.toLowerCase()!==this.tag&&(b=this.editor.selection.getSelectedElement(this.tag));if(!b||b.nodeName&&b.nodeName.toLowerCase()!==this.tag)(c=this.editor.selection.getAncestorElement(this.tag))&&c.nodeName&&c.nodeName.toLowerCase()==this.tag?(b=c,this.editor.selection.selectElement(b)):d.startContainer===d.endContainer&&(c=d.startContainer.firstChild)&&c.nodeName&&c.nodeName.toLowerCase()==this.tag&&(b=c,this.editor.selection.selectElement(b))}}else b=
  this.editor.selection.getAncestorElement(this.tag);this.dropDown.reset();this._setButton.set("disabled",!0);this.dropDown.set("value",this._getCurrentValues(b))},_onDblClick:function(a){if(a&&a.target&&(a=a.target,(a.tagName?a.tagName.toLowerCase():"")===this.tag&&r.get(a,"href"))){var b=this.editor;this.editor.selection.selectElement(a);b.onDisplayChanged();b._updateTimer&&(b._updateTimer.remove(),delete b._updateTimer);b.onNormalizedDisplayChanged();var c=this.button;setTimeout(function(){c.set("disabled",
  !1);c.loadAndOpenDropDown().then(function(){c.dropDown.focus&&c.dropDown.focus()})},10)}}}),v=q("dijit._editor.plugins.ImgLinkDialog",[t],{linkDialogTemplate:"\x3ctable role\x3d'presentation'\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_urlInput'\x3e${url}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoType\x3d'dijit.form.ValidationTextBox' regExp\x3d'${urlRegExp}' required\x3d'true' id\x3d'${id}_urlInput' name\x3d'urlInput' data-dojo-props\x3d'intermediateChanges:true'/\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_textInput'\x3e${text}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput data-dojo-type\x3d'dijit.form.ValidationTextBox' required\x3d'false' id\x3d'${id}_textInput' name\x3d'textInput' data-dojo-props\x3d'intermediateChanges:true'/\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3c/td\x3e\x3ctd\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d'2'\x3e\x3cbutton data-dojo-type\x3d'dijit.form.Button' type\x3d'submit' id\x3d'${id}_setButton'\x3e${set}\x3c/button\x3e\x3cbutton data-dojo-type\x3d'dijit.form.Button' type\x3d'button' id\x3d'${id}_cancelButton'\x3e${buttonCancel}\x3c/button\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e",
  htmlTemplate:'\x3cimg src\x3d"${urlInput}" _djrealurl\x3d"${urlInput}" alt\x3d"${textInput}" /\x3e',tag:"img",_getCurrentValues:function(a){var b,c;a&&a.tagName.toLowerCase()===this.tag?(b=a.getAttribute("_djrealurl")||a.getAttribute("src"),c=a.getAttribute("alt"),this.editor.selection.selectElement(a,!0)):c=this.editor.selection.getSelectedText();return{urlInput:b||"",textInput:c||""}},_isValid:function(){return this._urlInput.isValid()},_connectTagEvents:function(){this.inherited(arguments);this.editor.onLoadDeferred.then(p.hitch(this,
  function(){this.own(b(this.editor.editNode,"mousedown",p.hitch(this,"_selectTag")))}))},_selectTag:function(a){a&&a.target&&(a=a.target,(a.tagName?a.tagName.toLowerCase():"")===this.tag&&this.editor.selection.selectElement(a))},_checkValues:function(a){a&&a.urlInput&&(a.urlInput=a.urlInput.replace(/"/g,"\x26quot;"));a&&a.textInput&&(a.textInput=a.textInput.replace(/"/g,"\x26quot;"));return a},_onDblClick:function(a){if(a&&a.target&&(a=a.target,(a.tagName?a.tagName.toLowerCase():"")===this.tag&&r.get(a,
  "src"))){var b=this.editor;this.editor.selection.selectElement(a);b.onDisplayChanged();b._updateTimer&&(b._updateTimer.remove(),delete b._updateTimer);b.onNormalizedDisplayChanged();var c=this.button;setTimeout(function(){c.set("disabled",!1);c.loadAndOpenDropDown().then(function(){c.dropDown.focus&&c.dropDown.focus()})},10)}}});e.registry.createLink=function(){return new t({command:"createLink"})};e.registry.insertImage=function(){return new v({command:"insertImage"})};t.ImgLinkDialog=v;return t})},
  "dijit/_editor/plugins/ViewSource":function(){define("dojo/_base/array dojo/aspect dojo/_base/declare dojo/dom-attr dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/i18n dojo/keys dojo/_base/lang dojo/on dojo/sniff dojo/window ../../focus ../_Plugin ../../form/ToggleButton ../.. ../../registry dojo/i18n!../nls/commands".split(" "),function(h,q,r,m,p,b,a,c,d,e,f,l,t,v,n,g,k,A){var B=r("dijit._editor.plugins.ViewSource",n,{stripScripts:!0,stripComments:!0,stripIFrames:!0,readOnly:!1,_fsPlugin:null,
  toggle:function(){l("webkit")&&(this._vsFocused=!0);this.button.set("checked",!this.button.get("checked"))},_initButton:function(){var a=c.getLocalization("dijit._editor","commands"),b=this.editor;this.button=new g({label:a.viewSource,ownerDocument:b.ownerDocument,dir:b.dir,lang:b.lang,showLabel:!1,iconClass:this.iconClassPrefix+" "+this.iconClassPrefix+"ViewSource",tabIndex:"-1",onChange:e.hitch(this,"_showSource")});this.button.set("readOnly",!1)},setEditor:function(a){this.editor=a;this._initButton();
  this.editor.addKeyHandler(d.F12,!0,!0,e.hitch(this,function(a){this.button.focus();this.toggle();a.stopPropagation();a.preventDefault();setTimeout(e.hitch(this,function(){this.editor.focused&&this.editor.focus()}),100)}))},_showSource:function(b){var c=this.editor,d=c._plugins,g;this._sourceShown=b;var k=this;try{this.sourceArea||this._createSourceView();if(b)c._sourceQueryCommandEnabled=c.queryCommandEnabled,c.queryCommandEnabled=function(a){return"viewsource"===a.toLowerCase()},this.editor.onDisplayChanged(),
  g=c.get("value"),g=this._filter(g),c.set("value",g),h.forEach(d,function(a){!a||a instanceof B||!a.isInstanceOf(n)||a.set("disabled",!0)}),this._fsPlugin&&(this._fsPlugin._getAltViewNode=function(){return k.sourceArea}),this.sourceArea.value=g,this.sourceArea.style.height=c.iframe.style.height,this.sourceArea.style.width=c.iframe.style.width,c.iframe.parentNode.style.position="relative",a.set(c.iframe,{position:"absolute",top:0,visibility:"hidden"}),a.set(this.sourceArea,{display:"block"}),this._resizeHandle=
  f(window,"resize",e.hitch(this,function(){var a=t.getBox(c.ownerDocument);"_prevW"in this&&"_prevH"in this&&a.w===this._prevW&&a.h===this._prevH||(this._prevW=a.w,this._prevH=a.h,this._resizer&&(clearTimeout(this._resizer),delete this._resizer),this._resizer=setTimeout(e.hitch(this,function(){delete this._resizer;this._resize()}),10))})),setTimeout(e.hitch(this,this._resize),100),this.editor.onNormalizedDisplayChanged(),this.editor.__oldGetValue=this.editor.getValue,this.editor.getValue=e.hitch(this,
  function(){var a=this.sourceArea.value;return a=this._filter(a)}),this._setListener=q.after(this.editor,"setValue",e.hitch(this,function(a){a=this._filter(a||"");this.sourceArea.value=a}),!0);else{if(!c._sourceQueryCommandEnabled)return;this._setListener.remove();delete this._setListener;this._resizeHandle.remove();delete this._resizeHandle;this.editor.__oldGetValue&&(this.editor.getValue=this.editor.__oldGetValue,delete this.editor.__oldGetValue);c.queryCommandEnabled=c._sourceQueryCommandEnabled;
  this._readOnly||(g=this.sourceArea.value,g=this._filter(g),c.beginEditing(),c.set("value",g),c.endEditing());h.forEach(d,function(a){a&&a.isInstanceOf(n)&&a.set("disabled",!1)});a.set(this.sourceArea,"display","none");a.set(c.iframe,{position:"relative",visibility:"visible"});delete c._sourceQueryCommandEnabled;this.editor.onDisplayChanged()}setTimeout(e.hitch(this,function(){var a=c.domNode.parentNode;a&&(a=A.getEnclosingWidget(a))&&a.resize&&a.resize();c.resize()}),300)}catch(G){console.log(G)}},
  updateState:function(){this.button.set("disabled",this.get("disabled"))},_resize:function(){var a=this.editor,c=a.getHeaderHeight(),d=a.getFooterHeight(),e=b.position(a.domNode),g=b.getPadBorderExtents(a.iframe.parentNode),k=b.getMarginExtents(a.iframe.parentNode),f=b.getPadBorderExtents(a.domNode),u=e.w-f.w,e=e.h-(c+f.h+d);this._fsPlugin&&this._fsPlugin.isFullscreen&&(a=t.getBox(a.ownerDocument),u=a.w-f.w,e=a.h-(c+f.h+d));b.setMarginBox(this.sourceArea,{w:Math.round(u-(g.w+k.w)),h:Math.round(e-(g.h+
  k.h))})},_createSourceView:function(){var b=this.editor,c=b._plugins;this.sourceArea=p.create("textarea");this.readOnly&&(m.set(this.sourceArea,"readOnly",!0),this._readOnly=!0);a.set(this.sourceArea,{padding:"0px",margin:"0px",borderWidth:"0px",borderStyle:"none"});m.set(this.sourceArea,"aria-label",this.editor.id);p.place(this.sourceArea,b.iframe,"before");l("ie")&&b.iframe.parentNode.lastChild!==b.iframe&&a.set(b.iframe.parentNode.lastChild,{width:"0px",height:"0px",padding:"0px",margin:"0px",
  borderWidth:"0px",borderStyle:"none"});b._viewsource_oldFocus=b.focus;var g=this;b.focus=function(){if(g._sourceShown)g.setSourceAreaCaret();else try{this._vsFocused?(delete this._vsFocused,v.focus(b.editNode)):b._viewsource_oldFocus()}catch(G){console.log("ViewSource focus code error: "+G)}};var h,n;for(h=0;h<c.length;h++)if((n=c[h])&&("dijit._editor.plugins.FullScreen"===n.declaredClass||n.declaredClass===k._scopeName+"._editor.plugins.FullScreen")){this._fsPlugin=n;break}this._fsPlugin&&(this._fsPlugin._viewsource_getAltViewNode=
  this._fsPlugin._getAltViewNode,this._fsPlugin._getAltViewNode=function(){return g._sourceShown?g.sourceArea:this._viewsource_getAltViewNode()});this.own(f(this.sourceArea,"keydown",e.hitch(this,function(a){this._sourceShown&&a.keyCode==d.F12&&a.ctrlKey&&a.shiftKey&&(this.button.focus(),this.button.set("checked",!1),setTimeout(e.hitch(this,function(){b.focus()}),100),a.stopPropagation(),a.preventDefault())})))},_stripScripts:function(a){a&&(a=a.replace(/<\s*script[^>]*>((.|\s)*?)<\\?\/\s*script\s*>/ig,
  ""),a=a.replace(/<\s*script\b([^<>]|\s)*>?/ig,""),a=a.replace(/<[^>]*=(\s|)*[("|')]javascript:[^$1][(\s|.)]*[$1][^>]*>/ig,""));return a},_stripComments:function(a){a&&(a=a.replace(/\x3c!--(.|\s){1,}?--\x3e/g,""));return a},_stripIFrames:function(a){a&&(a=a.replace(/<\s*iframe[^>]*>((.|\s)*?)<\\?\/\s*iframe\s*>/ig,""));return a},_filter:function(a){a&&(this.stripScripts&&(a=this._stripScripts(a)),this.stripComments&&(a=this._stripComments(a)),this.stripIFrames&&(a=this._stripIFrames(a)));return a},
  setSourceAreaCaret:function(){var a=this.sourceArea;v.focus(a);this._sourceShown&&!this.readOnly&&(a.setSelectionRange?a.setSelectionRange(0,0):this.sourceArea.createTextRange&&(a=a.createTextRange(),a.collapse(!0),a.moveStart("character",-99999),a.moveStart("character",0),a.moveEnd("character",0),a.select()))},destroy:function(){this._resizer&&(clearTimeout(this._resizer),delete this._resizer);this._resizeHandle&&(this._resizeHandle.remove(),delete this._resizeHandle);this._setListener&&(this._setListener.remove(),
  delete this._setListener);this.inherited(arguments)}});n.registry.viewSource=n.registry.viewsource=function(a){return new B({readOnly:"readOnly"in a?a.readOnly:!1,stripComments:"stripComments"in a?a.stripComments:!0,stripScripts:"stripScripts"in a?a.stripScripts:!0,stripIFrames:"stripIFrames"in a?a.stripIFrames:!0})};return B})},"dijit/_editor/plugins/FontChoice":function(){define("require dojo/_base/array dojo/_base/declare dojo/dom-construct dojo/i18n dojo/_base/lang dojo/store/Memory ../../registry ../../_Widget ../../_TemplatedMixin ../../_WidgetsInTemplateMixin ../../form/FilteringSelect ../_Plugin ../range dojo/i18n!../nls/FontChoice".split(" "),
  function(h,q,r,m,p,b,a,c,d,e,f,l,t,v){h=r("dijit._editor.plugins._FontDropDown",[d,e,f],{label:"",plainText:!1,templateString:"\x3cspan style\x3d'white-space: nowrap' class\x3d'dijit dijitReset dijitInline'\x3e\x3clabel class\x3d'dijitLeft dijitInline' for\x3d'${selectId}'\x3e${label}\x3c/label\x3e\x3cinput data-dojo-type\x3d'../../form/FilteringSelect' required\x3d'false' data-dojo-props\x3d'labelType:\"html\", labelAttr:\"label\", searchAttr:\"name\"' class\x3d'${comboClass}' tabIndex\x3d'-1' id\x3d'${selectId}' data-dojo-attach-point\x3d'select' value\x3d''/\x3e\x3c/span\x3e",
  contextRequire:h,postMixInProperties:function(){this.inherited(arguments);this.strings=p.getLocalization("dijit._editor","FontChoice");this.label=this.strings[this.command];this.id=c.getUniqueId(this.declaredClass.replace(/\./g,"_"));this.selectId=this.id+"_select";this.inherited(arguments)},postCreate:function(){this.select.set("store",new a({idProperty:"value",data:q.map(this.values,function(a){var b=this.strings[a]||a;return{label:this.getLabel(a,b),name:b,value:a}},this)}));this.select.set("value",
  "",!1);this.disabled=this.select.get("disabled")},_setValueAttr:function(a,b){b=!1!==b;this.select.set("value",0>q.indexOf(this.values,a)?"":a,b);b||(this.select._lastValueReported=null)},_getValueAttr:function(){return this.select.get("value")},focus:function(){this.select.focus()},_setDisabledAttr:function(a){this._set("disabled",a);this.select.set("disabled",a)}});var n=r("dijit._editor.plugins._FontNameDropDown",h,{generic:!1,command:"fontName",comboClass:"dijitFontNameCombo",postMixInProperties:function(){this.values||
  (this.values=this.generic?["serif","sans-serif","monospace","cursive","fantasy"]:["Arial","Times New Roman","Comic Sans MS","Courier New"]);this.inherited(arguments)},getLabel:function(a,b){return this.plainText?b:"\x3cdiv style\x3d'font-family: "+a+"'\x3e"+b+"\x3c/div\x3e"},_setValueAttr:function(a,b){this.generic&&(a={Arial:"sans-serif",Helvetica:"sans-serif",Myriad:"sans-serif",Times:"serif","Times New Roman":"serif","Comic Sans MS":"cursive","Apple Chancery":"cursive",Courier:"monospace","Courier New":"monospace",
  Papyrus:"fantasy","Estrangelo Edessa":"cursive",Gabriola:"fantasy"}[a]||a);this.inherited(arguments,[a,!1!==b])}}),g=r("dijit._editor.plugins._FontSizeDropDown",h,{command:"fontSize",comboClass:"dijitFontSizeCombo",values:[1,2,3,4,5,6,7],getLabel:function(a,b){return this.plainText?b:"\x3cfont size\x3d"+a+"'\x3e"+b+"\x3c/font\x3e"},_setValueAttr:function(a,b){b=!1!==b;a.indexOf&&-1!=a.indexOf("px")&&(a={10:1,13:2,16:3,18:4,24:5,32:6,48:7}[parseInt(a,10)]||a);this.inherited(arguments,[a,b])}}),k=r("dijit._editor.plugins._FormatBlockDropDown",
  h,{command:"formatBlock",comboClass:"dijitFormatBlockCombo",values:"noFormat p h1 h2 h3 pre".split(" "),postCreate:function(){this.inherited(arguments);this.set("value","noFormat",!1)},getLabel:function(a,b){return this.plainText||"noFormat"==a?b:"\x3c"+a+"\x3e"+b+"\x3c/"+a+"\x3e"},_execCommand:function(a,c,d){if("noFormat"===d){var e;if((c=v.getSelection(a.window))&&0<c.rangeCount){d=c.getRangeAt(0);var g;if(d){c=d.startContainer;for(e=d.endContainer;c&&c!==a.editNode&&c!==a.document.body&&1!==c.nodeType;)c=
  c.parentNode;for(;e&&e!==a.editNode&&e!==a.document.body&&1!==e.nodeType;)e=e.parentNode;var k=b.hitch(this,function(b,c){if(b.childNodes&&b.childNodes.length){var d;for(d=0;d<b.childNodes.length;d++){var e=b.childNodes[d];if(1==e.nodeType&&a.selection.inSelection(e)){var g=e.tagName?e.tagName.toLowerCase():"";-1!==q.indexOf(this.values,g)&&c.push(e);k(e,c)}}}});d=b.hitch(this,function(b){if(b&&b.length){for(a.beginEditing();b.length;)this._removeFormat(a,b.pop());a.endEditing()}});var f=[];if(c==
  e){var h;for(e=c;e&&e!==a.editNode&&e!==a.document.body;){if(1==e.nodeType&&(g=e.tagName?e.tagName.toLowerCase():"",-1!==q.indexOf(this.values,g))){h=e;break}e=e.parentNode}k(c,f);h&&(f=[h].concat(f))}else for(e=c;a.selection.inSelection(e);)1==e.nodeType&&(g=e.tagName?e.tagName.toLowerCase():"",-1!==q.indexOf(this.values,g)&&f.push(e),k(e,f)),e=e.nextSibling;d(f);a.onDisplayChanged()}}}else a.execCommand(c,d)},_removeFormat:function(a,b){if(a.customUndo){for(;b.firstChild;)m.place(b.firstChild,b,
  "before");b.parentNode.removeChild(b)}else{a.selection.selectElementChildren(b);var c=a.selection.getSelectedHtml();a.selection.selectElement(b);a.execCommand("inserthtml",c||"")}}}),A=r("dijit._editor.plugins.FontChoice",t,{useDefaultCommand:!1,_initButton:function(){var a={fontName:n,fontSize:g,formatBlock:k}[this.command],c=this.params;this.params.custom&&(c.values=this.params.custom);var d=this.editor;this.button=new a(b.delegate({dir:d.dir,lang:d.lang},c));this.own(this.button.select.on("change",
  b.hitch(this,function(a){this.editor.focused&&this.editor.focus();"fontName"==this.command&&-1!=a.indexOf(" ")&&(a="'"+a+"'");this.button._execCommand?this.button._execCommand(this.editor,this.command,a):this.editor.execCommand(this.command,a)})))},updateState:function(){var a=this.editor,c=this.command;if(a&&a.isLoaded&&c.length&&this.button){var d=this.get("disabled");this.button.set("disabled",d);if(!d){var e;try{e=a.queryCommandValue(c)||""}catch(H){e=""}(d=b.isString(e)&&(e.match(/'([^']*)'/)||
  e.match(/"([^"]*)"/)))&&(e=d[1]);if("formatBlock"===c)if(e&&"p"!=e)0>q.indexOf(this.button.values,e)&&(e="noFormat");else{e=null;var g;(c=v.getSelection(this.editor.window))&&0<c.rangeCount&&(c=c.getRangeAt(0))&&(g=c.endContainer);for(;g&&g!==a.editNode&&g!==a.document;){if((c=g.tagName?g.tagName.toLowerCase():"")&&-1<q.indexOf(this.button.values,c)){e=c;break}g=g.parentNode}e||(e="noFormat")}e!==this.button.get("value")&&this.button.set("value",e,!1)}}}});q.forEach(["fontName","fontSize","formatBlock"],
  function(a){t.registry[a]=function(b){return new A({command:a,plainText:b.plainText})}});A._FontDropDown=h;A._FontNameDropDown=n;A._FontSizeDropDown=g;A._FormatBlockDropDown=k;return A})},"dojox/editor/plugins/Preview":function(){define("dojo dijit dojox dijit/_editor/_Plugin dijit/form/Button dojo/_base/connect dojo/_base/declare dojo/i18n dojo/i18n!dojox/editor/plugins/nls/Preview".split(" "),function(h,q,r,m){var p=h.declare("dojox.editor.plugins.Preview",m,{useDefaultCommand:!1,styles:"",stylesheets:null,
  iconClassPrefix:"dijitAdditionalEditorIcon",_initButton:function(){this._nlsResources=h.i18n.getLocalization("dojox.editor.plugins","Preview");this.button=new q.form.Button({label:this._nlsResources.preview,showLabel:!1,iconClass:this.iconClassPrefix+" "+this.iconClassPrefix+"Preview",tabIndex:"-1",onClick:h.hitch(this,"_preview")})},setEditor:function(b){this.editor=b;this._initButton()},updateState:function(){this.button.set("disabled",this.get("disabled"))},_preview:function(){try{var b=this.editor.get("value"),
  a="\t\t\x3cmeta http-equiv\x3d'Content-Type' content\x3d'text/html; charset\x3dUTF-8'\x3e\n",c;if(this.stylesheets)for(c=0;c<this.stylesheets.length;c++)a+="\t\t\x3clink rel\x3d'stylesheet' type\x3d'text/css' href\x3d'"+this.stylesheets[c]+"'\x3e\n";this.styles&&(a+="\t\t\x3cstyle\x3e"+this.styles+"\x3c/style\x3e\n");var b="\x3chtml\x3e\n\t\x3chead\x3e\n"+a+"\t\x3c/head\x3e\n\t\x3cbody\x3e\n"+b+"\n\t\x3c/body\x3e\n\x3c/html\x3e",d=window.open("javascript: ''",this._nlsResources.preview,"status\x3d1,menubar\x3d0,location\x3d0,toolbar\x3d0");
  d.document.open();d.document.write(b);d.document.close()}catch(e){console.warn(e)}}});h.subscribe(q._scopeName+".Editor.getPlugin",null,function(b){b.plugin||"preview"!==b.args.name.toLowerCase()||(b.plugin=new p({styles:"styles"in b.args?b.args.styles:"",stylesheets:"stylesheets"in b.args?b.args.stylesheets:null}))});return p})},"dijit/_editor/plugins/TextColor":function(){define("require dojo/colors dojo/_base/declare dojo/_base/lang ../_Plugin ../../form/DropDownButton".split(" "),function(h,q,
  r,m,p,b){var a=r("dijit._editor.plugins.TextColor",p,{buttonClass:b,colorPicker:"dijit/ColorPalette",useDefaultCommand:!1,_initButton:function(){this.command=this.name;this.inherited(arguments);var a=this;this.button.loadDropDown=function(b){function c(c){a.button.dropDown=new c({dir:a.editor.dir,ownerDocument:a.editor.ownerDocument,value:a.value,onChange:function(b){a.editor.execCommand(a.command,b)},onExecute:function(){a.editor.execCommand(a.command,this.get("value"))}});b()}"string"==typeof a.colorPicker?
  h([a.colorPicker],c):c(a.colorPicker)}},updateState:function(){var a=this.editor,b=this.command;if(a&&a.isLoaded&&b.length){if(this.button){var e=this.get("disabled");this.button.set("disabled",e);if(e)return;var f;try{f=a.queryCommandValue(b)||""}catch(l){f=""}}""==f&&(f="#000000");"transparent"==f&&(f="#ffffff");"string"==typeof f?-1<f.indexOf("rgb")&&(f=q.fromRgb(f).toHex()):(f=((f&255)<<16|f&65280|(f&16711680)>>>16).toString(16),f="#000000".slice(0,7-f.length)+f);this.value=f;(a=this.button.dropDown)&&
  a.get&&f!==a.get("value")&&a.set("value",f,!1)}}});p.registry.foreColor=function(b){return new a(b)};p.registry.hiliteColor=function(b){return new a(b)};return a})},"dojox/editor/plugins/ToolbarLineBreak":function(){define("dojo dijit dojox dijit/_Widget dijit/_TemplatedMixin dijit/_editor/_Plugin dojo/_base/declare".split(" "),function(h,q,r,m,p,b,a){var c=a("dojox.editor.plugins.ToolbarLineBreak",[m,p],{templateString:"\x3cspan class\x3d'dijit dijitReset'\x3e\x3cbr\x3e\x3c/span\x3e",postCreate:function(){h.setSelectable(this.domNode,
  !1)},isFocusable:function(){return!1}});h.subscribe(q._scopeName+".Editor.getPlugin",null,function(a){if(!a.plugin){var d=a.args.name.toLowerCase();if("||"===d||"toolbarlinebreak"===d)a.plugin=new b({button:new c,setEditor:function(a){this.editor=a}})}});return c})},"dojox/editor/plugins/FindReplace":function(){define("dojo dijit dojox dijit/_base/manager dijit/_base/popup dijit/_Widget dijit/_TemplatedMixin dijit/_KeyNavContainer dijit/_WidgetsInTemplateMixin dijit/TooltipDialog dijit/Toolbar dijit/form/CheckBox dijit/form/_TextBoxMixin dijit/form/TextBox dijit/_editor/_Plugin dijit/form/Button dijit/form/DropDownButton dijit/form/ToggleButton ./ToolbarLineBreak dojo/_base/connect dojo/_base/declare dojo/i18n dojo/string dojo/i18n!dojox/editor/plugins/nls/FindReplace".split(" "),
  function(h,q,r,m,p,b,a,c,d,e,f,l,t,v,n){h.experimental("dojox.editor.plugins.FindReplace");var g=h.declare("dojox.editor.plugins._FindReplaceCloseBox",[b,a,d],{btnId:"",widget:null,widgetsInTemplate:!0,templateString:"\x3cspan style\x3d'float: right' class\x3d'dijitInline' tabindex\x3d'-1'\x3e\x3cbutton class\x3d'dijit dijitReset dijitInline' id\x3d'${btnId}' dojoAttachPoint\x3d'button' dojoType\x3d'dijit.form.Button' tabindex\x3d'-1' iconClass\x3d'dijitEditorIconsFindReplaceClose' showLabel\x3d'false'\x3eX\x3c/button\x3e\x3c/span\x3e",
  postMixInProperties:function(){this.id=q.getUniqueId(this.declaredClass.replace(/\./g,"_"));this.btnId=this.id+"_close";this.inherited(arguments)},startup:function(){this.connect(this.button,"onClick","onClick")},onClick:function(){}}),k=h.declare("dojox.editor.plugins._FindReplaceTextBox",[b,a,d],{textId:"",label:"",toolTip:"",widget:null,widgetsInTemplate:!0,templateString:"\x3cspan style\x3d'white-space: nowrap' class\x3d'dijit dijitReset dijitInline dijitEditorFindReplaceTextBox' title\x3d'${tooltip}' tabindex\x3d'-1'\x3e\x3clabel class\x3d'dijitLeft dijitInline' for\x3d'${textId}' tabindex\x3d'-1'\x3e${label}\x3c/label\x3e\x3cinput dojoType\x3d'dijit.form.TextBox' intermediateChanges\x3d'true' class\x3d'focusTextBox' tabIndex\x3d'0' id\x3d'${textId}' dojoAttachPoint\x3d'textBox, focusNode' value\x3d'' dojoAttachEvent\x3d'onKeyPress: _onKeyPress'/\x3e\x3c/span\x3e",
  postMixInProperties:function(){this.id=q.getUniqueId(this.declaredClass.replace(/\./g,"_"));this.textId=this.id+"_text";this.inherited(arguments)},postCreate:function(){this.textBox.set("value","");this.disabled=this.textBox.get("disabled");this.connect(this.textBox,"onChange","onChange");h.attr(this.textBox.textbox,"formnovalidate","true")},_setValueAttr:function(a){this.value=a;this.textBox.set("value",a)},focus:function(){this.textBox.focus()},_setDisabledAttr:function(a){this.disabled=a;this.textBox.set("disabled",
  a)},onChange:function(a){this.value=a},_onKeyPress:function(a){var b=0,c=0;!a.target||a.ctrlKey||a.altKey||a.shiftKey||(a.keyCode==h.keys.LEFT_ARROW?(b=a.target.selectionStart,c=a.target.selectionEnd,b<c&&(q.selectInputText(a.target,b,b),h.stopEvent(a))):a.keyCode==h.keys.RIGHT_ARROW&&(b=a.target.selectionStart,c=a.target.selectionEnd,b<c&&(q.selectInputText(a.target,c,c),h.stopEvent(a))))}}),A=h.declare("dojox.editor.plugins._FindReplaceCheckBox",[b,a,d],{checkId:"",label:"",tooltip:"",widget:null,
  widgetsInTemplate:!0,templateString:"\x3cspan style\x3d'white-space: nowrap' tabindex\x3d'-1' class\x3d'dijit dijitReset dijitInline dijitEditorFindReplaceCheckBox' title\x3d'${tooltip}' \x3e\x3cinput dojoType\x3d'dijit.form.CheckBox' tabIndex\x3d'0' id\x3d'${checkId}' dojoAttachPoint\x3d'checkBox, focusNode' value\x3d''/\x3e\x3clabel tabindex\x3d'-1' class\x3d'dijitLeft dijitInline' for\x3d'${checkId}'\x3e${label}\x3c/label\x3e\x3c/span\x3e",postMixInProperties:function(){this.id=q.getUniqueId(this.declaredClass.replace(/\./g,
  "_"));this.checkId=this.id+"_check";this.inherited(arguments)},postCreate:function(){this.checkBox.set("checked",!1);this.disabled=this.checkBox.get("disabled");this.checkBox.isFocusable=function(){return!1}},_setValueAttr:function(a){this.checkBox.set("value",a)},_getValueAttr:function(){return this.checkBox.get("value")},focus:function(){this.checkBox.focus()},_setDisabledAttr:function(a){this.disabled=a;this.checkBox.set("disabled",a)}}),B=h.declare("dojox.editor.plugins._FindReplaceToolbar",f,
  {postCreate:function(){this.connectKeyNavHandlers([],[]);this.connect(this.containerNode,"onclick","_onToolbarEvent");this.connect(this.containerNode,"onkeydown","_onToolbarEvent");h.addClass(this.domNode,"dijitToolbar")},addChild:function(a,b){q._KeyNavContainer.superclass.addChild.apply(this,arguments)},_onToolbarEvent:function(a){a.stopPropagation()}}),x=h.declare("dojox.editor.plugins.FindReplace",[n],{buttonClass:q.form.ToggleButton,iconClassPrefix:"dijitEditorIconsFindReplace",editor:null,button:null,
  _frToolbar:null,_closeBox:null,_findField:null,_replaceField:null,_findButton:null,_replaceButton:null,_replaceAllButton:null,_caseSensitive:null,_backwards:null,_promDialog:null,_promDialogTimeout:null,_strings:null,_bookmark:null,_initButton:function(){this._strings=h.i18n.getLocalization("dojox.editor.plugins","FindReplace");this.button=new q.form.ToggleButton({label:this._strings.findReplace,showLabel:!1,iconClass:this.iconClassPrefix+" dijitEditorIconFindString",tabIndex:"-1",onChange:h.hitch(this,
  "_toggleFindReplace")});h.isOpera&&this.button.set("disabled",!0);this.connect(this.button,"set",h.hitch(this,function(a,b){"disabled"===a&&this._toggleFindReplace(!b&&this._displayed,!0,!0)}))},setEditor:function(a){this.editor=a;this._initButton()},toggle:function(){this.button.set("checked",!this.button.get("checked"))},_toggleFindReplace:function(a,b,c){var d=h.marginBox(this.editor.domNode);a&&!h.isOpera?(h.style(this._frToolbar.domNode,"display","block"),this._populateFindField(),b||(this._displayed=
  !0)):(h.style(this._frToolbar.domNode,"display","none"),b||(this._displayed=!1),c||this.editor.focus());this.editor.resize({h:d.h})},_populateFindField:function(){var a=this.editor._sCall("getSelectedText",[null]);this._findField&&this._findField.textBox&&(a&&this._findField.textBox.set("value",a),this._findField.textBox.focus(),q.selectInputText(this._findField.textBox.focusNode))},setToolbar:function(a){this.inherited(arguments);if(!h.isOpera){var b=this._frToolbar=new B;h.style(b.domNode,"display",
  "none");h.place(b.domNode,a.domNode,"after");b.startup();this._closeBox=new g;b.addChild(this._closeBox);this._findField=new k({label:this._strings.findLabel,tooltip:this._strings.findTooltip});b.addChild(this._findField);this._replaceField=new k({label:this._strings.replaceLabel,tooltip:this._strings.replaceTooltip});b.addChild(this._replaceField);b.addChild(new r.editor.plugins.ToolbarLineBreak);this._findButton=new q.form.Button({label:this._strings.findButton,showLabel:!0,iconClass:this.iconClassPrefix+
  " dijitEditorIconFind"});this._findButton.titleNode.title=this._strings.findButtonTooltip;b.addChild(this._findButton);this._replaceButton=new q.form.Button({label:this._strings.replaceButton,showLabel:!0,iconClass:this.iconClassPrefix+" dijitEditorIconReplace"});this._replaceButton.titleNode.title=this._strings.replaceButtonTooltip;b.addChild(this._replaceButton);this._replaceAllButton=new q.form.Button({label:this._strings.replaceAllButton,showLabel:!0,iconClass:this.iconClassPrefix+" dijitEditorIconReplaceAll"});
  this._replaceAllButton.titleNode.title=this._strings.replaceAllButtonTooltip;b.addChild(this._replaceAllButton);this._caseSensitive=new A({label:this._strings.matchCase,tooltip:this._strings.matchCaseTooltip});b.addChild(this._caseSensitive);this._backwards=new A({label:this._strings.backwards,tooltip:this._strings.backwardsTooltip});b.addChild(this._backwards);this._findButton.set("disabled",!0);this._replaceButton.set("disabled",!0);this._replaceAllButton.set("disabled",!0);this.connect(this._findField,
  "onChange","_checkButtons");this.connect(this._findField,"onKeyDown","_onFindKeyDown");this.connect(this._replaceField,"onKeyDown","_onReplaceKeyDown");this.connect(this._findButton,"onClick","_find");this.connect(this._replaceButton,"onClick","_replace");this.connect(this._replaceAllButton,"onClick","_replaceAll");this.connect(this._closeBox,"onClick","toggle");this._promDialog=new q.TooltipDialog;this._promDialog.startup();this._promDialog.set("content","")}},_checkButtons:function(){this._findField.get("value")?
  (this._findButton.set("disabled",!1),this._replaceButton.set("disabled",!1),this._replaceAllButton.set("disabled",!1)):(this._findButton.set("disabled",!0),this._replaceButton.set("disabled",!0),this._replaceAllButton.set("disabled",!0))},_onFindKeyDown:function(a){a.keyCode==h.keys.ENTER&&(this._find(),h.stopEvent(a))},_onReplaceKeyDown:function(a){a.keyCode==h.keys.ENTER&&(this._replace()||this._replace(),h.stopEvent(a))},_find:function(a){var b=this._findField.get("value")||"";if(b){var c=this._caseSensitive.get("value"),
  d=this._backwards.get("value"),b=this._findText(b,c,d);!b&&a&&(this._promDialog.set("content",h.string.substitute(this._strings.eofDialogText,{0:this._strings.eofDialogTextFind})),q.popup.open({popup:this._promDialog,around:this._findButton.domNode}),this._promDialogTimeout=setTimeout(h.hitch(this,function(){clearTimeout(this._promDialogTimeout);this._promDialogTimeout=null;q.popup.close(this._promDialog)}),3E3),setTimeout(h.hitch(this,function(){this.editor.focus()}),0));return b}return!1},_replace:function(a){var b=
  !1,c=this.editor;c.focus();var d=this._findField.get("value")||"",e=this._replaceField.get("value")||"";if(d){var g=this._caseSensitive.get("value"),k=this._backwards.get("value"),f=c._sCall("getSelectedText",[null]);h.isMoz&&(d=h.trim(d),f=h.trim(f));d=this._filterRegexp(d,!g);f&&d.test(f)&&(c.execCommand("inserthtml",e),b=!0,k&&(this._findText(e,g,k),c._sCall("collapse",[!0])));!this._find(!1)&&a&&(this._promDialog.set("content",h.string.substitute(this._strings.eofDialogText,{0:this._strings.eofDialogTextReplace})),
  q.popup.open({popup:this._promDialog,around:this._replaceButton.domNode}),this._promDialogTimeout=setTimeout(h.hitch(this,function(){clearTimeout(this._promDialogTimeout);this._promDialogTimeout=null;q.popup.close(this._promDialog)}),3E3),setTimeout(h.hitch(this,function(){this.editor.focus()}),0));return b}return null},_replaceAll:function(a){var b=0;this._backwards.get("value")?this.editor.placeCursorAtEnd():this.editor.placeCursorAtStart();this._replace(!1)&&b++;var c=h.hitch(this,function(){this._replace(!1)?
  (b++,setTimeout(c,10)):a&&(this._promDialog.set("content",h.string.substitute(this._strings.replaceDialogText,{0:""+b})),q.popup.open({popup:this._promDialog,around:this._replaceAllButton.domNode}),this._promDialogTimeout=setTimeout(h.hitch(this,function(){clearTimeout(this._promDialogTimeout);this._promDialogTimeout=null;q.popup.close(this._promDialog)}),3E3),setTimeout(h.hitch(this,function(){this._findField.focus();this._findField.textBox.focusNode.select()}),0))});c()},_findText:function(a,b,
  c){var d=this.editor,e=d.window,g=!1;if(a)if(e.find)g=e.find(a,b,c,!1,!1,!1,!1);else{var k=d.document;if(k.selection||e.getSelection)if(this.editor.focus(),d=k.body.createTextRange(),g=d.duplicate(),e.getSelection().getRangeAt(0),(k=k.selection?k.selection.createRange():null)?c?d.setEndPoint("EndToStart",k):d.setEndPoint("StartToEnd",k):this._bookmark&&(e=e.getSelection().toString(),d.moveToBookmark(this._bookmark),d.text!=e?(d=g.duplicate(),this._bookmark=null):(c?g.setEndPoint("EndToStart",d):g.setEndPoint("StartToEnd",
  d),d=g.duplicate())),b=b?4:0,c&&(b|=1),g=d.findText(a,d.text.length,b))d.select(),this._bookmark=d.getBookmark()}return g},_filterRegexp:function(a,b){for(var c="",d=null,e=0;e<a.length;e++)switch(d=a.charAt(e),d){case "\\":c+=d;e++;c+=a.charAt(e);break;case "$":case "^":case "/":case "+":case ".":case "|":case "(":case ")":case "{":case "}":case "[":case "]":c+="\\";default:c+=d}c="^"+c+"$";return b?new RegExp(c,"mi"):new RegExp(c,"m")},updateState:function(){this.button.set("disabled",this.get("disabled"))},
  destroy:function(){this.inherited(arguments);this._promDialogTimeout&&(clearTimeout(this._promDialogTimeout),this._promDialogTimeout=null,q.popup.close(this._promDialog));this._frToolbar&&(this._frToolbar.destroyRecursive(),this._frToolbar=null);this._promDialog&&(this._promDialog.destroyRecursive(),this._promDialog=null)}});x._FindReplaceCloseBox=g;x._FindReplaceTextBox=k;x._FindReplaceCheckBox=A;x._FindReplaceToolbar=B;h.subscribe(q._scopeName+".Editor.getPlugin",null,function(a){a.plugin||"findreplace"!==
  a.args.name.toLowerCase()||(a.plugin=new x({}))});return x})},"dojox/editor/plugins/PasteFromWord":function(){define("dojo dijit dojox dijit/_editor/_Plugin dijit/_base/manager dijit/_editor/RichText dijit/form/Button dijit/Dialog dojox/html/format dojo/_base/connect dojo/_base/declare dojo/i18n dojo/string dojo/i18n!dojox/editor/plugins/nls/PasteFromWord dojo/i18n!dijit/nls/common dojo/i18n!dijit/_editor/nls/commands".split(" "),function(h,q,r,m){var p=h.declare("dojox.editor.plugins.PasteFromWord",
  m,{iconClassPrefix:"dijitAdditionalEditorIcon",width:"400px",height:"300px",_template:"\x3cdiv class\x3d'dijitPasteFromWordEmbeddedRTE'\x3e\x3cdiv style\x3d'width: ${width}; padding-top: 5px; padding-bottom: 5px;'\x3e${instructions}\x3c/div\x3e\x3cdiv id\x3d'${uId}_rte' style\x3d'width: ${width}; height: ${height}'\x3e\x3c/div\x3e\x3ctable style\x3d'width: ${width}' tabindex\x3d'-1'\x3e\x3ctbody\x3e\x3ctr\x3e\x3ctd align\x3d'center'\x3e\x3cbutton type\x3d'button' dojoType\x3d'dijit.form.Button' id\x3d'${uId}_paste'\x3e${paste}\x3c/button\x3e\x26nbsp;\x3cbutton type\x3d'button' dojoType\x3d'dijit.form.Button' id\x3d'${uId}_cancel'\x3e${buttonCancel}\x3c/button\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/tbody\x3e\x3c/table\x3e\x3c/div\x3e",
  _filters:[{regexp:/(<meta\s*[^>]*\s*>)|(<\s*link\s* href="file:[^>]*\s*>)|(<\/?\s*\w+:[^>]*\s*>)/gi,handler:""},{regexp:/(?:<style([^>]*)>([\s\S]*?)<\/style>|<link\s+(?=[^>]*rel=['"]?stylesheet)([^>]*?href=(['"])([^>]*?)\4[^>\/]*)\/?>)/gi,handler:""},{regexp:/(class="Mso[^"]*")|(\x3c!--(.|\s){1,}?--\x3e)/gi,handler:""},{regexp:/(<p[^>]*>\s*(\&nbsp;|\u00A0)*\s*<\/p[^>]*>)|(<p[^>]*>\s*<font[^>]*>\s*(\&nbsp;|\u00A0)*\s*<\/\s*font\s*>\s<\/p[^>]*>)/ig,handler:""},{regexp:/(style="[^"]*mso-[^;][^"]*")|(style="margin:\s*[^;"]*;")/gi,
  handler:""},{regexp:/(<\s*script[^>]*>((.|\s)*?)<\\?\/\s*script\s*>)|(<\s*script\b([^<>]|\s)*>?)|(<[^>]*=(\s|)*[("|')]javascript:[^$1][(\s|.)]*[$1][^>]*>)/ig,handler:""},{regexp:/<(\/?)o\:p[^>]*>/gi,handler:""}],_initButton:function(){this._filters=this._filters.slice(0);var b=h.i18n.getLocalization("dojox.editor.plugins","PasteFromWord");h.mixin(b,h.i18n.getLocalization("dijit","common"));h.mixin(b,h.i18n.getLocalization("dijit._editor","commands"));this.button=new q.form.Button({label:b.pasteFromWord,
  showLabel:!1,iconClass:this.iconClassPrefix+" "+this.iconClassPrefix+"PasteFromWord",tabIndex:"-1",onClick:h.hitch(this,"_openDialog")});this._uId=q.getUniqueId(this.editor.id);b.uId=this._uId;b.width=this.width||"400px";b.height=this.height||"300px";this._dialog=(new q.Dialog({title:b.pasteFromWord})).placeAt(h.body());this._dialog.set("content",h.string.substitute(this._template,b));h.style(h.byId(this._uId+"_rte"),"opacity",.001);this.connect(q.byId(this._uId+"_paste"),"onClick","_paste");this.connect(q.byId(this._uId+
  "_cancel"),"onClick","_cancel");this.connect(this._dialog,"onHide","_clearDialog")},updateState:function(){this.button.set("disabled",this.get("disabled"))},setEditor:function(b){this.editor=b;this._initButton()},_openDialog:function(){this._dialog.show();this._rte||setTimeout(h.hitch(this,function(){this._rte=new q._editor.RichText({height:this.height||"300px"},this._uId+"_rte");this._rte.startup();this._rte.onLoadDeferred.addCallback(h.hitch(this,function(){h.animateProperty({node:this._rte.domNode,
  properties:{opacity:{start:.001,end:1}}}).play()}))}),100)},_paste:function(){var b=r.html.format.prettyPrint(this._rte.get("value"));this._dialog.hide();var a;for(a=0;a<this._filters.length;a++)var c=this._filters[a],b=b.replace(c.regexp,c.handler);b=r.html.format.prettyPrint(b);this.editor.focus();this.editor.execCommand("inserthtml",b)},_cancel:function(){this._dialog.hide()},_clearDialog:function(){this._rte.set("value","")},destroy:function(){this._rte&&this._rte.destroy();this._dialog&&this._dialog.destroyRecursive();
  delete this._dialog;delete this._rte;this.inherited(arguments)}});h.subscribe(q._scopeName+".Editor.getPlugin",null,function(b){b.plugin||"pastefromword"!==b.args.name.toLowerCase()||(b.plugin=new p({width:"width"in b.args?b.args.width:"400px",height:"height"in b.args?b.args.width:"300px"}))});return p})},"dojox/html/format":function(){define(["dojo/_base/kernel","./entities","dojo/_base/array","dojo/_base/window","dojo/_base/sniff"],function(h,q,r,m,p){var b=h.getObject("dojox.html.format",!0);b.prettyPrint=
  function(a,b,d,e,f){var c=[],t=0,v=[],n="\t",g="",k=[],A,B=/[=]([^"']+?)(\s|>)/g,x=/style=("[^"]*"|'[^']*'|\S*)/gi,C=/[\w-]+=("[^"]*"|'[^']*'|\S*)/gi;if(b&&0<b&&10>b)for(n="",A=0;A<b;A++)n+=" ";b=m.doc.createElement("div");b.innerHTML=a;var w=q.encode,E=q.decode,H=b.ownerDocument.createElement("div"),G=function(a){a=a.cloneNode(!1);H.appendChild(a);a=H.innerHTML;H.innerHTML="";return a},y=function(){var a;for(a=0;a<t;a++)c.push(n)},u=function(){c.push("\n")},I=function(a){var b,c;a=a.split("\n");
  for(b=0;b<a.length;b++)a[b]=h.trim(a[b]);a=a.join(" ");a=h.trim(a);if(""!==a){var e=[];if(d&&0<d){var g="";for(b=0;b<t;b++)g+=n;b=g.length;g=d;for(d>b&&(g-=b);a;)if(a.length>d){for(b=g;0<b&&" "!==a.charAt(b);b--);if(!b)for(b=g;b<a.length&&" "!==a.charAt(b);b++);var k=a.substring(0,b),k=h.trim(k);a=h.trim(a.substring(b==a.length?a.length:b+1,a.length));if(k){c="";for(b=0;b<t;b++)c+=n;k=c+k+"\n"}e.push(k)}else{c="";for(b=0;b<t;b++)c+=n;a=c+a+"\n";e.push(a);a=null}return e.join("")}c="";for(b=0;b<t;b++)c+=
  n;return c+a+"\n"}return""},J=function(a){if(a){var b=a;b&&(b=b.replace(/&quot;/gi,'"'),b=b.replace(/&gt;/gi,"\x3e"),b=b.replace(/&lt;/gi,"\x3c"),b=b.replace(/&amp;/gi,"\x26"));var c,d;a=0;for(var e=b.split("\n"),g=[],b=0;b<e.length;b++){var k=e[b],f=-1<k.indexOf("\n");if(k=h.trim(k)){f=a;for(c=0;c<k.length;c++)d=k.charAt(c),"{"===d?a++:"}"===d&&(a--,f=a);d="";for(c=0;c<t+f;c++)d+=n;g.push(d+k+"\n")}else f&&0===b&&g.push("\n")}a=g.join("")}return a},D=function(a){var b=a.nodeName.toLowerCase(),d=
  h.trim(G(a));a=d.substring(0,d.indexOf("\x3e")+1);a=a.replace(B,'\x3d"$1"$2');a=a.replace(x,function(a){var b=a.substring(0,6);a=a.substring(6,a.length);var c=a.charAt(0);a=h.trim(a.substring(1,a.length-1));a=a.split(";");var d=[];r.forEach(a,function(a){if(a=h.trim(a))a=a.substring(0,a.indexOf(":")).toLowerCase()+a.substring(a.indexOf(":"),a.length),d.push(a)});d=d.sort();a=d.join("; ");var e=h.trim(a);return e&&";"!==e?b+c+(a+";")+c:""});var e=[];a=a.replace(C,function(a){e.push(h.trim(a));return""});
  e=e.sort();a="\x3c"+b;e.length&&(a+=" "+e.join(" "));-1!=d.indexOf("\x3c/")?(v.push(b),a+="\x3e"):(a=f?a+" /\x3e":a+"\x3e",v.push(!1));a:switch(b){case "a":case "b":case "strong":case "s":case "strike":case "i":case "u":case "em":case "sup":case "sub":case "span":case "font":case "big":case "cite":case "q":case "small":b=!0;break a;default:b=!1}k.push(b);g&&!b&&(c.push(I(g)),g="");b?g+=a:(y(),c.push(a),u(),t++)},z=function(a){var b=a.childNodes;if(b){var d;for(d=0;d<b.length;d++){var f=b[d];if(1===
  f.nodeType){var l=h.trim(f.tagName.toLowerCase());p("ie")&&f.parentNode!=a||l&&"/"===l.charAt(0)||(D(f),"script"===l?c.push(J(f.innerHTML)):"pre"===l?(f=f.innerHTML,p("mozilla")&&(f=f.replace("\x3cbr\x3e","\n"),f=f.replace("\x3cpre\x3e",""),f=f.replace("\x3c/pre\x3e","")),"\n"!==f.charAt(f.length-1)&&(f+="\n"),c.push(f)):z(f),f=k.pop(),g&&!f&&(c.push(I(g)),g=""),(l=v.pop())?(l="\x3c/"+l+"\x3e",f?g+=l:(t--,y(),c.push(l),u())):t--)}else 3===f.nodeType||4===f.nodeType?g+=w(f.nodeValue,e):8===f.nodeType&&
  (f=E(f.nodeValue,e),y(),c.push("\x3c!--"),u(),t++,c.push(I(f)),t--,y(),c.push("--\x3e"),u())}}};z(b);g&&(c.push(I(g)),g="");return c.join("")};return b})},"dojox/editor/plugins/InsertAnchor":function(){define("dojo dijit dojox dijit/_editor/_Plugin dijit/_base/manager dijit/_editor/range dijit/_Templated dijit/TooltipDialog dijit/form/ValidationTextBox dijit/form/Select dijit/form/Button dijit/form/DropDownButton dojo/_base/declare dojo/i18n dojo/string dojo/NodeList-dom dojox/editor/plugins/ToolbarLineBreak dojo/i18n!dojox/editor/plugins/nls/InsertAnchor dojo/i18n!dijit/nls/common".split(" "),
  function(h,q,r,m){var p=h.declare("dojox.editor.plugins.InsertAnchor",m,{htmlTemplate:'\x3ca name\x3d"${anchorInput}" class\x3d"dijitEditorPluginInsertAnchorStyle"\x3e${textInput}\x3c/a\x3e',iconClassPrefix:"dijitAdditionalEditorIcon",_template:"\x3ctable role\x3d'presentation'\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_anchorInput'\x3e${anchor}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoType\x3d'dijit.form.ValidationTextBox' required\x3d'true' id\x3d'${id}_anchorInput' name\x3d'anchorInput' intermediateChanges\x3d'true'\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_textInput'\x3e${text}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoType\x3d'dijit.form.ValidationTextBox' required\x3d'true' id\x3d'${id}_textInput' name\x3d'textInput' intermediateChanges\x3d'true'\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d'2'\x3e\x3cbutton dojoType\x3d'dijit.form.Button' type\x3d'submit' id\x3d'${id}_setButton'\x3e${set}\x3c/button\x3e\x3cbutton dojoType\x3d'dijit.form.Button' type\x3d'button' id\x3d'${id}_cancelButton'\x3e${cancel}\x3c/button\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e",
  _initButton:function(){var b=this,a=h.i18n.getLocalization("dojox.editor.plugins","InsertAnchor",this.lang),c=this.dropDown=new q.TooltipDialog({title:a.title,execute:h.hitch(this,"setValue"),onOpen:function(){b._onOpenDialog();q.TooltipDialog.prototype.onOpen.apply(this,arguments)},onCancel:function(){setTimeout(h.hitch(b,"_onCloseDialog"),0)}});this.button=new q.form.DropDownButton({label:a.insertAnchor,showLabel:!1,iconClass:this.iconClassPrefix+" "+this.iconClassPrefix+"InsertAnchor",tabIndex:"-1",
  dropDown:this.dropDown});a.id=q.getUniqueId(this.editor.id);this._uniqueId=a.id;this.dropDown.set("content",c.title+"\x3cdiv style\x3d'border-bottom: 1px black solid;padding-bottom:2pt;margin-bottom:4pt'\x3e\x3c/div\x3e"+h.string.substitute(this._template,a));c.startup();this._anchorInput=q.byId(this._uniqueId+"_anchorInput");this._textInput=q.byId(this._uniqueId+"_textInput");this._setButton=q.byId(this._uniqueId+"_setButton");this.connect(q.byId(this._uniqueId+"_cancelButton"),"onClick",function(){this.dropDown.onCancel()});
  this._anchorInput&&this.connect(this._anchorInput,"onChange","_checkInput");this._textInput&&this.connect(this._anchorInput,"onChange","_checkInput");this.editor.contentDomPreFilters.push(h.hitch(this,this._preDomFilter));this.editor.contentDomPostFilters.push(h.hitch(this,this._postDomFilter));this._setup()},updateState:function(){this.button.set("disabled",this.get("disabled"))},setEditor:function(b){this.editor=b;this._initButton()},_checkInput:function(){var b=!0;this._anchorInput.isValid()&&
  (b=!1);this._setButton.set("disabled",b)},_setup:function(){this.editor.onLoadDeferred.addCallback(h.hitch(this,function(){this.connect(this.editor.editNode,"ondblclick",this._onDblClick);setTimeout(h.hitch(this,function(){this._applyStyles()}),100)}))},getAnchorStyle:function(){var b=h.moduleUrl(r._scopeName,"editor/plugins/resources").toString();if(!b.match(/^https?:\/\//i)&&!b.match(/^file:\/\//i)){var a;a="/"===b.charAt(0)?h.doc.location.protocol+"//"+h.doc.location.host:this._calcBaseUrl(h.global.location.href);
  "/"!==a[a.length-1]&&"/"!==b.charAt(0)&&(a+="/");b=a+b}return"@media screen {\n\t.dijitEditorPluginInsertAnchorStyle {\n\t\tbackground-image: url({MODURL}/images/anchor.gif);\n\t\tbackground-repeat: no-repeat;\n\t\tbackground-position: top left;\n\t\tborder-width: 1px;\n\t\tborder-style: dashed;\n\t\tborder-color: #D0D0D0;\n\t\tpadding-left: 20px;\n\t}\n}\n".replace(/\{MODURL\}/gi,b)},_applyStyles:function(){if(!this._styled)try{this._styled=!0;var b=this.editor.document,a=this.getAnchorStyle();if(h.isIE)b.createStyleSheet("").cssText=
  a;else{var c=b.createElement("style");c.appendChild(b.createTextNode(a));b.getElementsByTagName("head")[0].appendChild(c)}}catch(d){}},_calcBaseUrl:function(b){var a=null;null!==b&&(a=b.indexOf("?"),-1!=a&&(b=b.substring(0,a)),a=b.lastIndexOf("/"),a=0<a&&a<b.length?b.substring(0,a):b);return a},_checkValues:function(b){b&&(b.anchorInput&&(b.anchorInput=b.anchorInput.replace(/"/g,"\x26quot;")),b.textInput||(b.textInput="\x26nbsp;"));return b},setValue:function(b){this._onCloseDialog();if(!this.editor.window.getSelection){var a=
  q.range.getSelection(this.editor.window).getRangeAt(0).endContainer;3===a.nodeType&&(a=a.parentNode);a&&a.nodeName&&"a"!==a.nodeName.toLowerCase()&&(a=this.editor._sCall("getSelectedElement",["a"]));a&&a.nodeName&&"a"===a.nodeName.toLowerCase()&&this.editor.queryCommandEnabled("unlink")&&(this.editor._sCall("selectElementChildren",[a]),this.editor.execCommand("unlink"))}b=this._checkValues(b);this.editor.execCommand("inserthtml",h.string.substitute(this.htmlTemplate,b))},_onCloseDialog:function(){this.editor.focus()},
  _getCurrentValues:function(b){var a,c;b&&"a"===b.tagName.toLowerCase()&&h.attr(b,"name")?(a=h.attr(b,"name"),c=b.textContent||b.innerText,this.editor._sCall("selectElement",[b,!0])):c=this.editor._sCall("getSelectedText");return{anchorInput:a||"",textInput:c||""}},_onOpenDialog:function(){var b;this.editor.window.getSelection?b=this.editor._sCall("getAncestorElement",["a"]):(b=q.range.getSelection(this.editor.window).getRangeAt(0).endContainer,3===b.nodeType&&(b=b.parentNode),b&&b.nodeName&&"a"!==
  b.nodeName.toLowerCase()&&(b=this.editor._sCall("getSelectedElement",["a"])));this.dropDown.reset();this._setButton.set("disabled",!0);this.dropDown.set("value",this._getCurrentValues(b))},_onDblClick:function(b){b&&b.target&&(b=b.target,"a"===(b.tagName?b.tagName.toLowerCase():"")&&h.attr(b,"name")&&(this.editor.onDisplayChanged(),this.editor._sCall("selectElement",[b]),setTimeout(h.hitch(this,function(){this.button.set("disabled",!1);this.button.openDropDown();this.button.dropDown.focus&&this.button.dropDown.focus()}),
  10)))},_preDomFilter:function(b){h.query("a[name]:not([href])",this.editor.editNode).addClass("dijitEditorPluginInsertAnchorStyle")},_postDomFilter:function(b){b&&h.query("a[name]:not([href])",b).removeClass("dijitEditorPluginInsertAnchorStyle");return b}});h.subscribe(q._scopeName+".Editor.getPlugin",null,function(b){if(!b.plugin){var a=b.args.name;a&&(a=a.toLowerCase());"insertanchor"===a&&(b.plugin=new p)}});return p})},"dojox/editor/plugins/Blockquote":function(){define("dojo dijit dojox dijit/_editor/_Plugin dijit/form/ToggleButton dojo/_base/connect dojo/_base/declare dojo/i18n dojo/i18n!dojox/editor/plugins/nls/Blockquote".split(" "),
  function(h,q,r,m){var p=h.declare("dojox.editor.plugins.Blockquote",m,{iconClassPrefix:"dijitAdditionalEditorIcon",_initButton:function(){this._nlsResources=h.i18n.getLocalization("dojox.editor.plugins","Blockquote");this.button=new q.form.ToggleButton({label:this._nlsResources.blockquote,showLabel:!1,iconClass:this.iconClassPrefix+" "+this.iconClassPrefix+"Blockquote",tabIndex:"-1",onClick:h.hitch(this,"_toggleQuote")})},setEditor:function(b){this.editor=b;this._initButton();this.connect(this.editor,
  "onNormalizedDisplayChanged","updateState");b.customUndo=!0},_toggleQuote:function(b){try{var a=this.editor;a.focus();var c=this.button.get("checked"),d=q.range.getSelection(a.window),e,f,l,m;d&&0<d.rangeCount&&(e=d.getRangeAt(0));if(e){a.beginEditing();if(c){var p,n;if(e.startContainer===e.endContainer){if(this._isRootInline(e.startContainer)){for(l=e.startContainer;l&&l.parentNode!==a.editNode;)l=l.parentNode;for(;l&&l.previousSibling&&(this._isTextElement(l)||1===l.nodeType&&this._isInlineFormat(this._getTagName(l)));)l=
  l.previousSibling;l&&1===l.nodeType&&!this._isInlineFormat(this._getTagName(l))&&(l=l.nextSibling);if(l)for(p=a.document.createElement("blockquote"),h.place(p,l,"after"),p.appendChild(l),m=p.nextSibling;m&&(this._isTextElement(m)||1===m.nodeType&&this._isInlineFormat(this._getTagName(m)));)p.appendChild(m),m=p.nextSibling}else{for(var g=e.startContainer;(this._isTextElement(g)||this._isInlineFormat(this._getTagName(g))||"li"===this._getTagName(g))&&g!==a.editNode&&g!==a.document.body;)g=g.parentNode;
  g!==a.editNode&&g!==g.ownerDocument.documentElement&&(p=a.document.createElement("blockquote"),h.place(p,g,"after"),p.appendChild(g))}p&&(a._sCall("selectElementChildren",[p]),a._sCall("collapse",[!0]))}else{var k;l=e.startContainer;for(m=e.endContainer;l&&this._isTextElement(l)&&l.parentNode!==a.editNode;)l=l.parentNode;for(k=l;k.nextSibling&&a._sCall("inSelection",[k]);)k=k.nextSibling;m=k;if(m===a.editNode||m===a.document.body){p=a.document.createElement("blockquote");h.place(p,l,"after");n=this._getTagName(l);
  if(this._isTextElement(l)||this._isInlineFormat(n))for(a=l;a&&(this._isTextElement(a)||1===a.nodeType&&this._isInlineFormat(this._getTagName(a)));)p.appendChild(a),a=p.nextSibling;else p.appendChild(l);return}m=m.nextSibling;for(k=l;k&&k!==m;){if(1===k.nodeType){if(n=this._getTagName(k),"br"!==n){if(!window.getSelection&&"p"===n&&this._isEmpty(k)){k=k.nextSibling;continue}this._isInlineFormat(n)?p||(p=a.document.createElement("blockquote"),h.place(p,k,"after")):(p&&this._isEmpty(p)&&p.parentNode.removeChild(p),
  p=a.document.createElement("blockquote"),h.place(p,k,"after"));p.appendChild(k);k=p}}else this._isTextElement(k)&&(p||(p=a.document.createElement("blockquote"),h.place(p,k,"after")),p.appendChild(k),k=p);k=k.nextSibling}p&&(this._isEmpty(p)?p.parentNode.removeChild(p):(a._sCall("selectElementChildren",[p]),a._sCall("collapse",[!0])),p=null)}}else if(p=!1,e.startContainer===e.endContainer){for(f=e.endContainer;f&&f!==a.editNode&&f!==a.document.body;){if("blockquote"===(f.tagName?f.tagName.toLowerCase():
  "")){p=!0;break}f=f.parentNode}if(p){for(var r;f.firstChild;)r=f.firstChild,h.place(r,f,"before");f.parentNode.removeChild(f);r&&(a._sCall("selectElementChildren",[r]),a._sCall("collapse",[!0]))}}else{l=e.startContainer;for(m=e.endContainer;l&&this._isTextElement(l)&&l.parentNode!==a.editNode;)l=l.parentNode;for(e=[];l&&l.nextSibling&&a._sCall("inSelection",[l]);)l.parentNode&&"blockquote"===this._getTagName(l.parentNode)&&(l=l.parentNode),e.push(l),l=l.nextSibling;for(var B=this._findBlockQuotes(e);B.length;){var x=
  B.pop();if(x.parentNode){for(;x.firstChild;)h.place(x.firstChild,x,"before");x.parentNode.removeChild(x)}}}a.endEditing()}a.onNormalizedDisplayChanged()}catch(C){}},updateState:function(){var b=this.editor,a=this.get("disabled");if(b&&b.isLoaded&&this.button&&(this.button.set("disabled",a),!a)){var c,a=!1,d=q.range.getSelection(b.window);d&&0<d.rangeCount&&(d=d.getRangeAt(0))&&(c=d.endContainer);for(;c&&c!==b.editNode&&c!==b.document;){if("blockquote"===(c.tagName?c.tagName.toLowerCase():"")){a=!0;
  break}c=c.parentNode}this.button.set("checked",a)}},_findBlockQuotes:function(b){var a=[];if(b){var c;for(c=0;c<b.length;c++){var d=b[c];1===d.nodeType&&("blockquote"===this._getTagName(d)&&a.push(d),d.childNodes&&0<d.childNodes.length&&(a=a.concat(this._findBlockQuotes(d.childNodes))))}}return a},_getTagName:function(b){var a="";b&&1===b.nodeType&&(a=b.tagName?b.tagName.toLowerCase():"");return a},_isRootInline:function(b){var a=this.editor;if(this._isTextElement(b)&&b.parentNode===a.editNode||1===
  b.nodeType&&this._isInlineFormat(b)&&b.parentNode===a.editNode)return!0;if(this._isTextElement(b)&&this._isInlineFormat(this._getTagName(b.parentNode))){for(b=b.parentNode;b&&b!==a.editNode&&this._isInlineFormat(this._getTagName(b));)b=b.parentNode;if(b===a.editNode)return!0}return!1},_isTextElement:function(b){return b&&3===b.nodeType||4===b.nodeType?!0:!1},_isEmpty:function(b){if(b.childNodes){var a=!0,c;for(c=0;c<b.childNodes.length;c++){var d=b.childNodes[c];if(1===d.nodeType){if("p"!==this._getTagName(d)||
  h.trim(d.innerHTML)){a=!1;break}}else if(this._isTextElement(d)){if((d=h.trim(d.nodeValue))&&"\x26nbsp;"!==d&&"\u00a0"!==d){a=!1;break}}else{a=!1;break}}return a}return!0},_isInlineFormat:function(b){switch(b){case "a":case "b":case "strong":case "s":case "strike":case "i":case "u":case "em":case "sup":case "sub":case "span":case "font":case "big":case "cite":case "q":case "img":case "small":return!0;default:return!1}}});h.subscribe(q._scopeName+".Editor.getPlugin",null,function(b){b.plugin||"blockquote"!==
  b.args.name.toLowerCase()||(b.plugin=new p({}))});return p})},"dojox/editor/plugins/UploadImage":function(){define("dojo dijit dojox dijit/_editor/_Plugin dojo/_base/connect dojo/_base/declare dojox/form/FileUploader dijit/_editor/_Plugin".split(" "),function(h,q,r,m){h.experimental("dojox.editor.plugins.UploadImage");var p=h.declare("dojox.editor.plugins.UploadImage",m,{tempImageUrl:"",iconClassPrefix:"editorIcon",useDefaultCommand:!1,uploadUrl:"",button:null,label:"Upload",setToolbar:function(b){this.button.destroy();
  this.createFileInput();b.addChild(this.button)},_initButton:function(){this.command="uploadImage";this.editor.commands[this.command]="Upload Image";this.inherited("_initButton",arguments);delete this.command},updateState:function(){this.button.set("disabled",this.get("disabled"))},createFileInput:function(){var b=h.create("span",{innerHTML:"."},document.body);h.style(b,{width:"40px",height:"20px",paddingLeft:"8px",paddingRight:"8px"});this.button=new r.form.FileUploader({isDebug:!0,uploadUrl:this.uploadUrl,
  uploadOnChange:!0,selectMultipleFiles:!1,baseClass:"dojoxEditorUploadNorm",hoverClass:"dojoxEditorUploadHover",activeClass:"dojoxEditorUploadActive",disabledClass:"dojoxEditorUploadDisabled"},b);this.connect(this.button,"onChange","insertTempImage");this.connect(this.button,"onComplete","onComplete")},onComplete:function(b,a,c){b=b[0];a=h.byId(this.currentImageId,this.editor.document);c=this.downloadPath?this.downloadPath+b.name:b.file;a.src=c;h.attr(a,"_djrealurl",c);b.width&&(a.width=b.width,a.height=
  b.height)},insertTempImage:function(){this.currentImageId="img_"+(new Date).getTime();this.editor.execCommand("inserthtml",'\x3cimg id\x3d"'+this.currentImageId+'" src\x3d"'+this.tempImageUrl+'" width\x3d"32" height\x3d"32"/\x3e')}});h.subscribe(q._scopeName+".Editor.getPlugin",null,function(b){if(!b.plugin)switch(b.args.name){case "uploadImage":b.plugin=new p({url:b.args.url})}});return p})},"dojox/form/FileUploader":function(){define("dojo/_base/kernel dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/connect dojo/_base/window dojo/_base/sniff dojo/query dojo/dom dojo/dom-style dojo/dom-geometry dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/dom-form dojo/_base/config dijit/_base/manager dojo/io/iframe dojo/_base/Color dojo/_base/unload dijit/_Widget dijit/_TemplatedMixin dijit/_Contained dojox/embed/Flash dojox/embed/flashVars dojox/html/styles".split(" "),
  function(h,q,r,m,p,b,a,c,d,e,f,l,t,v,n,g,k,A,B,x,C,w,E,H,G,y){h.deprecated("dojox.form.FileUploader","Use dojox.form.Uploader","2.0");return q("dojox.form.FileUploader",[C,w,E],{swfPath:g.uploaderPath||require.toUrl("dojox/form/resources/fileuploader.swf"),templateString:'\x3cdiv\x3e\x3cdiv dojoAttachPoint\x3d"progNode"\x3e\x3cdiv dojoAttachPoint\x3d"progTextNode"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv dojoAttachPoint\x3d"insideNode" class\x3d"uploaderInsideNode"\x3e\x3c/div\x3e\x3c/div\x3e',uploadUrl:"",
  isDebug:!1,devMode:!1,baseClass:"dojoxUploaderNorm",hoverClass:"dojoxUploaderHover",activeClass:"dojoxUploaderActive",disabledClass:"dojoxUploaderDisabled",force:"",uploaderType:"",flashObject:null,flashMovie:null,insideNode:null,deferredUploading:1,fileListId:"",uploadOnChange:!1,selectMultipleFiles:!0,htmlFieldName:"uploadedfile",flashFieldName:"flashUploadFiles",fileMask:null,minFlashVersion:9,tabIndex:-1,showProgress:!1,progressMessage:"Loading",progressBackgroundUrl:require.toUrl("dijit/themes/tundra/images/buttonActive.png"),
  progressBackgroundColor:"#ededed",progressWidgetId:"",skipServerCheck:!1,serverTimeout:5E3,log:function(){this.isDebug&&console.log(Array.prototype.slice.call(arguments).join(" "))},constructor:function(){this._subs=[]},postMixInProperties:function(){this.fileList=[];this._cons=[];this.fileMask=this.fileMask||[];this.fileInputs=[];this.fileCount=0;this._disabled=this.flashReady=!1;this.force=this.force.toLowerCase();this.uploaderType=(H.available>=this.minFlashVersion||"flash"==this.force)&&"html"!=
  this.force?"flash":"html";this.deferredUploading=!0===this.deferredUploading?1:this.deferredUploading;this._refNode=this.srcNodeRef;this.getButtonStyle()},startup:function(){},postCreate:function(){this.inherited(arguments);this.setButtonStyle();var a;"flash"==this.uploaderType?a="createFlashUploader":(this.uploaderType="html",a="createHtmlUploader");this[a]();this.fileListId&&this.connect(d.byId(this.fileListId),"click",function(a){a=a.target.parentNode.parentNode.parentNode;a.id&&-1<a.id.indexOf("file_")&&
  this.removeFile(a.id.split("file_")[1])});x.addOnUnload(this,this.destroy)},getHiddenNode:function(a){if(!a)return null;var b=null;for(a=a.parentNode;a&&"body"!=a.tagName.toLowerCase();){if("none"==e.get(a,"display")){b=a;break}a=a.parentNode}return b},getButtonStyle:function(){var a=this.srcNodeRef;(this._hiddenNode=this.getHiddenNode(a))&&e.set(this._hiddenNode,"display","block");if(!a&&this.button&&this.button.domNode){var b=!0,a=this.button.domNode.className+" dijitButtonNode",d=this.getText(c(".dijitButtonText",
  this.button.domNode)[0]);this.srcNodeRef=a=v.place('\x3cbutton id\x3d"'+this.button.id+'" class\x3d"'+a+'"\x3e'+d+"\x3c/button\x3e",this.button.domNode,"after");this.button.destroy();this.baseClass="dijitButton";this.hoverClass="dijitButtonHover";this.pressClass="dijitButtonActive";this.disabledClass="dijitButtonDisabled"}else!this.srcNodeRef&&this.button&&(a=this.button);l.get(a,"class")&&(this.baseClass+=" "+l.get(a,"class"));l.set(a,"class",this.baseClass);this.norm=this.getStyle(a);this.width=
  this.norm.w;this.height=this.norm.h;"flash"==this.uploaderType?(this.over=this.getTempNodeStyle(a,this.baseClass+" "+this.hoverClass,b),this.down=this.getTempNodeStyle(a,this.baseClass+" "+this.activeClass,b),this.dsbl=this.getTempNodeStyle(a,this.baseClass+" "+this.disabledClass,b),this.fhtml={cn:this.getText(a),nr:this.norm,ov:this.over,dn:this.down,ds:this.dsbl}):(this.fhtml={cn:this.getText(a),nr:this.norm},"middle"==this.norm.va&&(this.norm.lh=this.norm.h));this.devMode&&(this.log("classes - base:",
  this.baseClass," hover:",this.hoverClass,"active:",this.activeClass),this.log("fhtml:",this.fhtml),this.log("norm:",this.norm),this.log("over:",this.over),this.log("down:",this.down))},setButtonStyle:function(){e.set(this.domNode,{width:this.fhtml.nr.w+"px",height:this.fhtml.nr.h+"px",padding:"0px",lineHeight:"normal",position:"relative"});"html"==this.uploaderType&&"middle"==this.norm.va&&e.set(this.domNode,"lineHeight",this.norm.lh+"px");this.showProgress?(this.progTextNode.innerHTML=this.progressMessage,
  e.set(this.progTextNode,{width:this.fhtml.nr.w+"px",height:this.fhtml.nr.h+0+"px",padding:"0px",margin:"0px",left:"0px",lineHeight:this.fhtml.nr.h+0+"px",position:"absolute"}),e.set(this.progNode,{width:this.fhtml.nr.w+"px",height:this.fhtml.nr.h+0+"px",padding:"0px",margin:"0px",left:"0px",position:"absolute",display:"none",backgroundImage:"url("+this.progressBackgroundUrl+")",backgroundPosition:"bottom",backgroundRepeat:"repeat-x",backgroundColor:this.progressBackgroundColor})):v.destroy(this.progNode);
  e.set(this.insideNode,{position:"absolute",top:"0px",left:"0px",display:""});t.add(this.domNode,this.srcNodeRef.className);-1<this.fhtml.nr.d.indexOf("inline")&&t.add(this.domNode,"dijitInline");try{this.insideNode.innerHTML=this.fhtml.cn}catch(I){if("flash"==this.uploaderType){this.insideNode=this.insideNode.parentNode.removeChild(this.insideNode);b.body().appendChild(this.insideNode);this.insideNode.innerHTML=this.fhtml.cn;var a=p.connect(this,"onReady",this,function(){p.disconnect(a);this.insideNode=
  this.insideNode.parentNode.removeChild(this.insideNode);this.domNode.appendChild(this.insideNode)})}else this.insideNode.appendChild(document.createTextNode(this.fhtml.cn))}this._hiddenNode&&e.set(this._hiddenNode,"display","none")},onChange:function(a){},onProgress:function(a){},onComplete:function(a){},onCancel:function(){},onError:function(a){},onReady:function(a){},onLoad:function(a){},submit:function(a){a=a?n.toObject(a):null;this.upload(a);return!1},upload:function(a){if(!this.fileList.length)return!1;
  if(!this.uploadUrl)return console.warn("uploadUrl not provided. Aborting."),!1;this.showProgress||this.set("disabled",!0);if(this.progressWidgetId){var b=k.byId(this.progressWidgetId).domNode;"none"==e.get(b,"display")&&(this.restoreProgDisplay="none",e.set(b,"display","block"));"hidden"==e.get(b,"visibility")&&(this.restoreProgDisplay="hidden",e.set(b,"visibility","visible"))}a&&!a.target&&(this.postData=a);this.log("upload type:",this.uploaderType," - postData:",this.postData);for(a=0;a<this.fileList.length;a++)b=
  this.fileList[a],b.bytesLoaded=0,b.bytesTotal=b.size||1E5,b.percent=0;"flash"==this.uploaderType?this.uploadFlash():this.uploadHTML();return!1},removeFile:function(a,b){var c;for(c=0;c<this.fileList.length;c++)if(this.fileList[c].name==a){b||this.fileList.splice(c,1);break}"flash"==this.uploaderType?this.flashMovie.removeFile(a):b||(v.destroy(this.fileInputs[c]),this.fileInputs.splice(c,1),this._renumberInputs());this.fileListId&&v.destroy("file_"+a)},destroy:function(){"flash"!=this.uploaderType||
  this.flashMovie?(m.forEach(this._subs,p.unsubscribe,dojo),m.forEach(this._cons,p.disconnect,dojo),this.scrollConnect&&p.disconnect(this.scrollConnect),"flash"==this.uploaderType?(this.flashObject.destroy(),delete this.flashObject):(v.destroy(this._fileInput),v.destroy(this._formNode)),this.inherited(arguments)):this._cons.push(p.connect(this,"onLoad",this,"destroy"))},_displayProgress:function(a){!0===a?("flash"==this.uploaderType?e.set(this.insideNode,"top","-2500px"):e.set(this.insideNode,"display",
  "none"),e.set(this.progNode,"display","")):!1===a?(e.set(this.insideNode,{display:"",top:"0"}),e.set(this.progNode,"display","none")):e.set(this.progNode,"width",a*this.fhtml.nr.w+"px")},_animateProgress:function(){this._displayProgress(!0);var a=!1,b=p.connect(this,"_complete",function(){p.disconnect(b);a=!0}),c=0,d=setInterval(r.hitch(this,function(){c+=5;c>this.fhtml.nr.w&&(c=0,a=!0);this._displayProgress(c/this.fhtml.nr.w);a&&(clearInterval(d),setTimeout(r.hitch(this,function(){this._displayProgress(!1)}),
  500))}),50)},_error:function(a){"string"==typeof a&&(a=Error(a));this.onError(a)},_addToFileList:function(){if(this.fileListId){var a="";m.forEach(this.fileList,function(b){a+='\x3ctable id\x3d"file_'+b.name+'" class\x3d"fileToUpload"\x3e\x3ctr\x3e\x3ctd class\x3d"fileToUploadClose"\x3e\x3c/td\x3e\x3ctd class\x3d"fileToUploadName"\x3e'+b.name+'\x3c/td\x3e\x3ctd class\x3d"fileToUploadSize"\x3e'+(b.size?Math.ceil(.001*b.size)+"kb":"")+"\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e"},this);d.byId(this.fileListId).innerHTML=
  a}},_change:function(b){a("ie")&&m.forEach(b,function(a){a.name=a.name.split("\\")[a.name.split("\\").length-1]});this.selectMultipleFiles?this.fileList=this.fileList.concat(b):(this.fileList[0]&&this.removeFile(this.fileList[0].name,!0),this.fileList=b);this._addToFileList();this.onChange(b);this.uploadOnChange?("html"==this.uploaderType&&this._buildFileInput(),this.upload()):"html"==this.uploaderType&&this.selectMultipleFiles&&(this._buildFileInput(),this._connectInput())},_complete:function(a){a=
  r.isArray(a)?a:[a];m.forEach(a,function(a){a.ERROR&&this._error(a.ERROR)},this);m.forEach(this.fileList,function(a){a.bytesLoaded=1;a.bytesTotal=1;a.percent=100;this._progress(a)},this);m.forEach(this.fileList,function(a){this.removeFile(a.name,!0)},this);this.onComplete(a);this.fileList=[];this._resetHTML();this.set("disabled",!1);this.restoreProgDisplay&&setTimeout(r.hitch(this,function(){e.set(k.byId(this.progressWidgetId).domNode,"none"==this.restoreProgDisplay?"display":"visibility",this.restoreProgDisplay)}),
  500)},_progress:function(a){for(var b=0,c=0,d=0;d<this.fileList.length;d++){var e=this.fileList[d];e.name==a.name&&(e.bytesLoaded=a.bytesLoaded,e.bytesTotal=a.bytesTotal,e.percent=Math.ceil(e.bytesLoaded/e.bytesTotal*100),this.log(e.name,"percent:",e.percent));c+=Math.ceil(.001*e.bytesLoaded);b+=Math.ceil(.001*e.bytesTotal)}a=Math.ceil(c/b*100);this.progressWidgetId&&k.byId(this.progressWidgetId).update({progress:a+"%"});this.showProgress&&this._displayProgress(.01*a);this.onProgress(this.fileList)},
  _getDisabledAttr:function(){return this._disabled},_setDisabledAttr:function(a){if(this._disabled!=a){if("flash"==this.uploaderType){if(!this.flashReady){var b=p.connect(this,"onLoad",this,function(){p.disconnect(b);this._setDisabledAttr(a)});return}this._disabled=a;this.flashMovie.doDisable(a)}else this._disabled=a,e.set(this._fileInput,"display",this._disabled?"none":"");t.toggle(this.domNode,this.disabledClass,a)}},_onFlashBlur:function(){this.flashMovie.blur();if(!this.nextFocusObject&&this.tabIndex)for(var a=
  c("[tabIndex]"),b=0;b<a.length;b++)if(a[b].tabIndex>=Number(this.tabIndex)+1){this.nextFocusObject=a[b];break}this.nextFocusObject.focus()},_disconnect:function(){m.forEach(this._cons,p.disconnect,dojo)},uploadHTML:function(){this.selectMultipleFiles&&v.destroy(this._fileInput);this._setHtmlPostData();this.showProgress&&this._animateProgress();A.send({url:this.uploadUrl.toString(),form:this._formNode,handleAs:"json",error:r.hitch(this,function(a){this._error("HTML Upload Error:"+a.message)}),load:r.hitch(this,
  function(a,b,c){this._complete(a)})})},createHtmlUploader:function(){this._buildForm();this._setFormStyle();this._buildFileInput();this._connectInput();this._styleContent();e.set(this.insideNode,"visibility","visible");this.onReady()},_connectInput:function(){this._disconnect();this._cons.push(p.connect(this._fileInput,"mouseover",this,function(a){t.add(this.domNode,this.hoverClass);this.onMouseOver(a)}));this._cons.push(p.connect(this._fileInput,"mouseout",this,function(a){setTimeout(r.hitch(this,
  function(){t.remove(this.domNode,this.activeClass);t.remove(this.domNode,this.hoverClass);this.onMouseOut(a);this._checkHtmlCancel("off")}),0)}));this._cons.push(p.connect(this._fileInput,"mousedown",this,function(a){t.add(this.domNode,this.activeClass);t.remove(this.domNode,this.hoverClass);this.onMouseDown(a)}));this._cons.push(p.connect(this._fileInput,"mouseup",this,function(a){t.remove(this.domNode,this.activeClass);this.onMouseUp(a);this.onClick(a);this._checkHtmlCancel("up")}));this._cons.push(p.connect(this._fileInput,
  "change",this,function(){this._checkHtmlCancel("change");var a=this._fileInput.value;a?this._change([{name:a,type:"",size:0}]):this._change([])}));0<=this.tabIndex&&l.set(this.domNode,"tabIndex",this.tabIndex)},_checkHtmlCancel:function(a){"change"==a&&(this.dialogIsOpen=!1);"up"==a&&(this.dialogIsOpen=!0);if("off"==a){if(this.dialogIsOpen)this.onCancel();this.dialogIsOpen=!1}},_styleContent:function(){var a=this.fhtml.nr;e.set(this.insideNode,{width:a.w+"px",height:"middle"==a.va?a.h+"px":"auto",
  textAlign:a.ta,paddingTop:a.p[0]+"px",paddingRight:a.p[1]+"px",paddingBottom:a.p[2]+"px",paddingLeft:a.p[3]+"px"});try{e.set(this.insideNode,"lineHeight","inherit")}catch(I){}},_resetHTML:function(){"html"==this.uploaderType&&this._formNode&&(this.fileInputs=[],c("*",this._formNode).forEach(function(a){v.destroy(a)}),this.fileCount=0,this._buildFileInput(),this._connectInput())},_buildForm:function(){this._formNode||(9>a("ie")||a("ie")&&a("quirks")?(this._formNode=document.createElement('\x3cform enctype\x3d"multipart/form-data" method\x3d"post"\x3e'),
  this._formNode.encoding="multipart/form-data",this._formNode.id=k.getUniqueId("FileUploaderForm"),this.domNode.appendChild(this._formNode)):this._formNode=v.create("form",{enctype:"multipart/form-data",method:"post",id:k.getUniqueId("FileUploaderForm")},this.domNode))},_buildFileInput:function(){this._fileInput&&(this._disconnect(),this._fileInput.id+=this.fileCount,e.set(this._fileInput,"display","none"));this._fileInput=document.createElement("input");this.fileInputs.push(this._fileInput);var a=
  this.htmlFieldName;this.selectMultipleFiles&&(a+=this.fileCount,this.fileCount++);l.set(this._fileInput,{id:this.id,name:a,type:"file"});t.add(this._fileInput,"dijitFileInputReal");this._formNode.appendChild(this._fileInput);a=f.getMarginBox(this._fileInput);e.set(this._fileInput,{position:"relative",left:this.fhtml.nr.w-a.w+"px",opacity:0})},_renumberInputs:function(){if(this.selectMultipleFiles){var a;this.fileCount=0;m.forEach(this.fileInputs,function(b){a=this.htmlFieldName+this.fileCount;this.fileCount++;
  l.set(b,"name",a)},this)}},_setFormStyle:function(){y.insertCssRule("#"+this._formNode.id+" input","font-size:"+Math.max(2,Math.max(Math.ceil(this.fhtml.nr.w/60),Math.ceil(this.fhtml.nr.h/15)))+"em");e.set(this.domNode,{overflow:"hidden",position:"relative"});e.set(this.insideNode,"position","absolute")},_setHtmlPostData:function(){if(this.postData)for(var a in this.postData)v.create("input",{type:"hidden",name:a,value:this.postData[a]},this._formNode)},uploadFlash:function(){try{if(this.showProgress){this._displayProgress(!0);
  var a=p.connect(this,"_complete",this,function(){p.disconnect(a);this._displayProgress(!1)})}var b={},c;for(c in this.postData)b[c]=this.postData[c];this.flashMovie.doUpload(b)}catch(D){this._error("FileUploader - Sorry, the SWF failed to initialize."+D)}},createFlashUploader:function(){if(this.uploadUrl=this.uploadUrl.toString())if(0>this.uploadUrl.toLowerCase().indexOf("http")&&0!=this.uploadUrl.indexOf("/")){var a=window.location.href.split("/");a.pop();a=a.join("/")+"/";this.uploadUrl=a+this.uploadUrl;
  this.log("SWF Fixed - Relative loc:",a," abs loc:",this.uploadUrl)}else this.log("SWF URL unmodified:",this.uploadUrl);else console.warn("Warning: no uploadUrl provided.");a={expressInstall:!0,path:this.swfPath.uri||this.swfPath,width:this.fhtml.nr.w,height:this.fhtml.nr.h,allowScriptAccess:"always",allowNetworking:"all",vars:{uploadDataFieldName:this.flashFieldName,uploadUrl:this.uploadUrl,uploadOnSelect:this.uploadOnChange,deferredUploading:this.deferredUploading||0,selectMultipleFiles:this.selectMultipleFiles,
  id:this.id,isDebug:this.isDebug,devMode:this.devMode,flashButton:G.serialize("fh",this.fhtml),fileMask:G.serialize("fm",this.fileMask),noReturnCheck:this.skipServerCheck,serverTimeout:this.serverTimeout},params:{scale:"noscale",wmode:"opaque",allowScriptAccess:"always",allowNetworking:"all"}};this.flashObject=new H(a,this.insideNode);this.flashObject.onError=r.hitch(function(a){this._error("Flash Error: "+a)});this.flashObject.onReady=r.hitch(this,function(){e.set(this.insideNode,"visibility","visible");
  this.log("FileUploader flash object ready");this.onReady(this)});this.flashObject.onLoad=r.hitch(this,function(a){this.flashMovie=a;this.flashReady=!0;this.onLoad(this)});this._connectFlash()},_connectFlash:function(){this._doSub("/filesSelected","_change");this._doSub("/filesUploaded","_complete");this._doSub("/filesProgress","_progress");this._doSub("/filesError","_error");this._doSub("/filesCanceled","onCancel");this._doSub("/stageBlur","_onFlashBlur");this._doSub("/up","onMouseUp");this._doSub("/down",
  "onMouseDown");this._doSub("/over","onMouseOver");this._doSub("/out","onMouseOut");this.connect(this.domNode,"focus",function(){this.flashMovie.focus();this.flashMovie.doFocus()});0<=this.tabIndex&&l.set(this.domNode,"tabIndex",this.tabIndex)},_doSub:function(a,b){this._subs.push(p.subscribe(this.id+a,this,b))},urlencode:function(a){return a&&"none"!=a?a.replace(/:/g,"||").replace(/\./g,"^^").replace("url(","").replace(")","").replace(/'/g,"").replace(/"/g,""):!1},isButton:function(a){a=a.tagName.toLowerCase();
  return"button"==a||"input"==a},getTextStyle:function(a){var b={};b.ff=e.get(a,"fontFamily");if(b.ff){b.ff=b.ff.replace(", ",",");b.ff=b.ff.replace(/\"|\'/g,"");b.ff="sans-serif"==b.ff?"Arial":b.ff;b.fw=e.get(a,"fontWeight");b.fi=e.get(a,"fontStyle");b.fs=parseInt(e.get(a,"fontSize"),10);if(-1<e.get(a,"fontSize").indexOf("%"))for(var c=a;c.tagName;){if(-1==e.get(c,"fontSize").indexOf("%")){b.fs=parseInt(e.get(c,"fontSize"),10);break}"body"==c.tagName.toLowerCase()&&(b.fs=.16*parseInt(e.get(c,"fontSize"),
  10));c=c.parentNode}b.fc=(new B(e.get(a,"color"))).toHex();b.fc=parseInt(b.fc.substring(1,Infinity),16)}b.lh=e.get(a,"lineHeight");b.ta=e.get(a,"textAlign");b.ta="start"!=b.ta&&b.ta?b.ta:"left";b.va=this.isButton(a)?"middle":b.lh==b.h?"middle":e.get(a,"verticalAlign");return b},getText:function(a){a=r.trim(a.innerHTML);-1<a.indexOf("\x3c")&&(a=escape(a));return a},getStyle:function(a){var b={},c=f.getContentBox(a),d=f.getPadExtents(a);b.p=[d.t,d.w-d.l,d.h-d.t,d.l];b.w=c.w+d.w;b.h=c.h+d.h;b.d=e.get(a,
  "display");c=new B(e.get(a,"backgroundColor"));b.bc=0==c.a?"#ffffff":c.toHex();b.bc=parseInt(b.bc.substring(1,Infinity),16);if(c=this.urlencode(e.get(a,"backgroundImage")))b.bi={url:c,rp:e.get(a,"backgroundRepeat"),pos:escape(e.get(a,"backgroundPosition"))},b.bi.pos||(c=e.get(a,"backgroundPositionX"),d=e.get(a,"backgroundPositionY"),b.bi.pos=escape(("left"==c?"0%":"right"==c?"100%":c)+" "+("top"==d?"0%":"bottom"==d?"100%":d)));return r.mixin(b,this.getTextStyle(a))},getTempNodeStyle:function(a,b,
  c){if(c){c=v.place("\x3c"+a.tagName+"\x3e\x3cspan\x3e"+a.innerHTML+"\x3c/span\x3e\x3c/"+a.tagName+"\x3e",a.parentNode);var d=c.firstChild;t.add(d,a.className);t.add(c,b);a=this.getStyle(d)}else c=v.place("\x3c"+a.tagName+"\x3e"+a.innerHTML+"\x3c/"+a.tagName+"\x3e",a.parentNode),t.add(c,a.className),t.add(c,b),c.id=a.id,a=this.getStyle(c);v.destroy(c);return a}})})},"dojo/io/iframe":function(){define("../_base/config ../_base/json ../_base/kernel ../_base/lang ../_base/xhr ../sniff ../_base/window ../dom ../dom-construct ../query require ../aspect ../request/iframe".split(" "),
  function(h,q,r,m,p,b,a,c,d,e,f,l,t){r.deprecated("dojo/io/iframe","Use dojo/request/iframe.","2.0");b=t._iframeName;b=b.substring(0,b.lastIndexOf("_"));var v=m.delegate(t,{create:function(){return v._frame=t.create.apply(t,arguments)},get:null,post:null,send:function(a){var b,d=p._ioSetArgs(a,function(a){b&&b.cancel()},function(a){var c=null;a=a.ioArgs;try{var d=a.handleAs;"xml"===d||"html"===d?c=b.response.data:(c=b.response.text,"json"===d?c=q.fromJson(c):"javascript"===d&&(c=r.eval(c)))}catch(G){c=
  G}return c},function(a,b){b.ioArgs._hasError=!0;return a}),e=d.ioArgs,f="GET",m=c.byId(a.form);a.method&&"POST"===a.method.toUpperCase()&&m&&(f="POST");a={method:f,handleAs:"json"===a.handleAs||"javascript"===a.handleAs?"text":a.handleAs,form:a.form,query:m?null:a.content,data:m?a.content:null,timeout:a.timeout,ioArgs:e};a.method&&(a.method=a.method.toUpperCase());if(h.ioPublish&&r.publish&&!1!==e.args.ioPublish)var n=l.after(t,"_notifyStart",function(a){a.options.ioArgs===e&&(n.remove(),p._ioNotifyStart(d))},
  !0);b=t(e.url,a,!0);e._callNext=b._callNext;b.then(function(){d.resolve(d)}).otherwise(function(a){d.ioArgs.error=a;d.reject(a)});return d},_iframeOnload:a.global[b+"_onload"]});m.setObject("dojo.io.iframe",v);return v})},"dojox/embed/Flash":function(){define("dojo/_base/lang dojo/_base/unload dojo/_base/array dojo/query dojo/has dojo/dom dojo/on dojo/window dojo/string".split(" "),function(h,q,r,m,p,b,a,c,d){function e(a){a=h.delegate(v,a);if(!("path"in a))return console.error("dojox.embed.Flash(ctor):: no path reference to a Flash movie was provided."),
  null;"id"in a||(a.id="dojox-embed-flash-"+t++);return a}var f,l,t=0,v={expressInstall:!1,width:320,height:240,swLiveConnect:"true",allowScriptAccess:"sameDomain",allowNetworking:"all",style:null,redirect:null};p("ie")?(f=function(a){a=e(a);if(!a)return null;var b,c=a.path;if(a.vars){var g=[];for(b in a.vars)g.push(encodeURIComponent(b)+"\x3d"+encodeURIComponent(a.vars[b]));a.params.FlashVars=g.join("\x26");delete a.vars}c='\x3cobject id\x3d"'+d.escape(String(a.id))+'" classid\x3d"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width\x3d"'+
  d.escape(String(a.width))+'" height\x3d"'+d.escape(String(a.height))+'"'+(a.style?' style\x3d"'+d.escape(String(a.style))+'"':"")+'\x3e\x3cparam name\x3d"movie" value\x3d"'+d.escape(String(c))+'" /\x3e';if(a.params)for(b in a.params)c+='\x3cparam name\x3d"'+d.escape(b)+'" value\x3d"'+d.escape(String(a.params[b]))+'" /\x3e';return{id:a.id,markup:c+"\x3c/object\x3e"}},l=function(){for(var a=10,b=null;!b&&7<a;)try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+a--)}catch(A){}return b?(a=b.GetVariable("$version").split(" ")[1].split(","),
  {major:null!=a[0]?parseInt(a[0]):0,minor:null!=a[1]?parseInt(a[1]):0,rev:null!=a[2]?parseInt(a[2]):0}):{major:0,minor:0,rev:0}}(),q.addOnWindowUnload(function(){console.warn("***************UNLOAD");var a=function(){};m("object").reverse().style("display","none").forEach(function(b){for(var c in b)if("FlashVars"!=c&&"function"==typeof b[c])try{b[c]=a}catch(B){}})})):(f=function(a){a=e(a);if(!a)return null;var b,c=a.path;if(a.vars){var f=[];for(b in a.vars)f.push(encodeURIComponent(b)+"\x3d"+encodeURIComponent(a.vars[b]));
  a.params.flashVars=f.join("\x26");delete a.vars}c='\x3cembed type\x3d"application/x-shockwave-flash" src\x3d"'+d.escape(String(c))+'" id\x3d"'+d.escape(String(a.id))+'" width\x3d"'+d.escape(String(a.width))+'" height\x3d"'+d.escape(String(a.height))+'"'+(a.style?' style\x3d"'+d.escape(String(a.style))+'" ':"")+'pluginspage\x3d"'+window.location.protocol+'//www.adobe.com/go/getflashplayer" ';if(a.params)for(b in a.params)c+=" "+d.escape(b)+'\x3d"'+d.escape(String(a.params[b]))+'"';return{id:a.id,markup:c+
  " /\x3e"}},l=function(){var a=navigator.plugins["Shockwave Flash"];return a&&a.description?(a=a.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."),{major:null!=a[0]?parseInt(a[0]):0,minor:null!=a[1]?parseInt(a[1]):0,rev:null!=a[2]?parseInt(a[2]):0}):{major:0,minor:0,rev:0}}());var n=function(a,c){if(-1<location.href.toLowerCase().indexOf("file://"))throw Error("dojox.embed.Flash can't be run directly from a file. To instatiate the required SWF correctly it must be run from a server, like localHost.");
  this.available=l.major;this.minimumVersion=a.minimumVersion||9;this.domNode=this.movie=this.id=null;c&&(c=b.byId(c));setTimeout(h.hitch(this,function(){if(a.expressInstall||this.available&&this.available>=this.minimumVersion)if(a&&c)this.init(a,c);else this.onError("embed.Flash was not provided with the proper arguments.");else if(this.available)this.onError("Flash version detected: "+this.available+" is out of date. Minimum required: "+this.minimumVersion);else this.onError("Flash is not installed.")}),
  100)};h.extend(n,{onReady:function(a){},onLoad:function(a){},onError:function(a){},_onload:function(){clearInterval(this._poller);delete this._poller;delete this._pollCount;delete this._pollMax;this.onLoad(this.movie)},init:function(a,c){this.destroy();c=b.byId(c||this.domNode);if(!c)throw Error("dojox.embed.Flash: no domNode reference has been passed.");var d=0;this._poller=null;this._pollCount=0;this._pollMax=15;this.pollTime=100;n.initialized&&(this.id=n.place(a,c),this.domNode=c,setTimeout(h.hitch(this,
  function(){this.movie=this.byId(this.id,a.doc);this.onReady(this.movie);this._poller=setInterval(h.hitch(this,function(){try{d=this.movie.PercentLoaded()}catch(B){console.warn("this.movie.PercentLoaded() failed",B,this.movie)}if(100==d)this._onload();else if(0==d&&this._pollCount++>this._pollMax)throw clearInterval(this._poller),Error("Building SWF failed.");}),this.pollTime)}),1))},_destroy:function(){try{this.domNode.removeChild(this.movie)}catch(g){}this.id=this.movie=this.domNode=null},destroy:function(){if(this.movie){var b=
  h.delegate({id:!0,movie:!0,domNode:!0,onReady:!0,onLoad:!0}),c;for(c in this)b[c]||delete this[c];this._poller?a(this,"Load",this,"_destroy"):this._destroy()}},byId:function(a,b){b=b||document;return b.embeds[a]?b.embeds[a]:b[a]?b[a]:window[a]?window[a]:document[a]?document[a]:null}});h.mixin(n,{minSupported:8,available:l.major,supported:l.major>=l.required,minimumRequired:l.required,version:l,initialized:!1,onInitialize:function(){n.initialized=!0},__ie_markup__:function(a){return f(a)},proxy:function(a,
  b){r.forEach(b instanceof Array?b:[b],function(a){this[a]=h.hitch(this,function(){return function(){return eval(this.movie.CallFunction('\x3cinvoke name\x3d"'+a+'" returntype\x3d"javascript"\x3e\x3carguments\x3e'+r.map(arguments,function(a){return __flash__toXML(a)}).join("")+"\x3c/arguments\x3e\x3c/invoke\x3e"))}.apply(this,arguments||[])})},a)}});n.place=function(a,d){var e=f(a);d=b.byId(d);d||(d=c.doc.createElement("div"),d.id=e.id+"-container",c.body().appendChild(d));return e?(d.innerHTML=e.markup,
  e.id):null};n.onInitialize();h.setObject("dojox.embed.Flash",n);return n})},"dojox/embed/flashVars":function(){define(["dojo"],function(h){h.deprecated("dojox.embed.flashVars","Will be removed in 2.0","2.0");var q={serialize:function(q,m){var p=function(a){"string"==typeof a&&(a=a.replace(/;/g,"_sc_"),a=a.replace(/\./g,"_pr_"),a=a.replace(/\:/g,"_cl_"));return a},b=dojox.embed.flashVars.serialize,a="";if(h.isArray(m)){for(var c=0;c<m.length;c++)a+=b(q+"."+c,p(m[c]))+";";return a.replace(/;{2,}/g,
  ";")}if(h.isObject(m)){for(c in m)a+=b(q+"."+c,p(m[c]))+";";return a.replace(/;{2,}/g,";")}return q+":"+m}};h.setObject("dojox.embed.flashVars",q);return q})},"dojox/html/styles":function(){define(["dojo/_base/lang","dojo/_base/array","dojo/_base/window","dojo/_base/sniff"],function(h,q,r,m){var p=h.getObject("dojox.html",!0),b={},a={},c=[];p.insertCssRule=function(a,b,c){c=p.getDynamicStyleSheet(c);var d=a+" {"+b+"}";console.log("insertRule:",d);m("ie")?(c.cssText+=d,console.log("ss.cssText:",c.cssText)):
  c.sheet?c.sheet.insertRule(d,c._indicies.length):c.appendChild(r.doc.createTextNode(d));c._indicies.push(a+" "+b);return a};p.removeCssRule=function(a,c,f){var d,e=-1,h,n;for(h in b)if(!f||f===h){d=b[h];for(n=0;n<d._indicies.length;n++)if(a+" "+c===d._indicies[n]){e=n;break}if(-1<e)break}if(!d)return console.warn("No dynamic style sheet has been created from which to remove a rule."),!1;if(-1===e)return console.warn("The css rule was not found and could not be removed."),!1;d._indicies.splice(e,1);
  m("ie")?d.removeRule(e):d.sheet&&d.sheet.deleteRule(e);return!0};p.modifyCssRule=function(a,b,c){};p.getStyleSheet=function(a){if(b[a||"default"])return b[a||"default"];if(!a)return!1;var c=p.getStyleSheets();if(c[a])return p.getStyleSheets()[a];for(var d in c)if(c[d].href&&-1<c[d].href.indexOf(a))return c[d];return!1};p.getDynamicStyleSheet=function(a){a||(a="default");b[a]||(r.doc.createStyleSheet?(b[a]=r.doc.createStyleSheet(),9>m("ie")&&(b[a].title=a)):(b[a]=r.doc.createElement("style"),b[a].setAttribute("type",
  "text/css"),r.doc.getElementsByTagName("head")[0].appendChild(b[a]),console.log(a," ss created: ",b[a].sheet)),b[a]._indicies=[]);return b[a]};p.enableStyleSheet=function(a){if(a=p.getStyleSheet(a))a.sheet?a.sheet.disabled=!1:a.disabled=!1};p.disableStyleSheet=function(a){if(a=p.getStyleSheet(a))a.sheet?a.sheet.disabled=!0:a.disabled=!0};p.activeStyleSheet=function(a){var b=p.getToggledStyleSheets(),c;if(1===arguments.length)q.forEach(b,function(b){b.disabled=b.title===a?!1:!0});else for(c=0;c<b.length;c++)if(!1===
  b[c].disabled)return b[c];return!0};p.getPreferredStyleSheet=function(){};p.getToggledStyleSheets=function(){var a;if(!c.length){var b=p.getStyleSheets();for(a in b)b[a].title&&c.push(b[a])}return c};p.getStyleSheets=function(){if(a.collected)return a;q.forEach(r.doc.styleSheets,function(b){var c=b.sheet?b.sheet:b;b=c.title||c.href;if(m("ie"))-1===c.cssText.indexOf("#default#VML")&&(c.href?a[b]=c:c.imports.length?q.forEach(c.imports,function(b){a[b.title||b.href]=b}):a[b]=c);else{a[b]=c;a[b].id=c.ownerNode.id;
  b=[];try{b=c[c.cssRules?"cssRules":"rules"]}catch(f){console.warn("Reading css rules from stylesheet "+c.href+" is forbidden due to same-origin policy. See http://www.w3.org/TR/CSP/#cascading-style-sheet-css-parsing",c)}q.forEach(b,function(b){b.href&&(a[b.href]=b.styleSheet,a[b.href].id=c.ownerNode.id)})}});a.collected=!0;return a};return p})},"jimu/dijit/EditorChooseImage":function(){define("dojo dijit dijit/_editor/_Plugin jimu/dijit/ImageChooser dojo/_base/html dojo/_base/lang dojo/sniff dojo/i18n dojo/_base/connect dojo/_base/declare".split(" "),
  function(h,q,r,m,p,b,a,c){h.experimental("dojox.editor.plugins.ChooseImage");var d=h.declare("dojox.editor.plugins.ChooseImage",r,{iconClassPrefix:"editorIcon",useDefaultCommand:!1,_initButton:function(){this.createFileInput();this.command="chooseImage";var a=c.getLocalization("dijit._editor","commands");this.button=new q.form.Button({label:a.insertImage,showLabel:!1,iconClass:this.iconClassPrefix+" "+this.iconClassPrefix+"UploadImage",tabIndex:"-1",onClick:b.hitch(this,this._chooseImage)});this.button.set("readOnly",
  !1);this.editor.commands[this.command]="Upload Image";this.inherited("_initButton",arguments);delete this.command},updateState:function(){var a=this.get("disabled");this.button.set("disabled",this.get("disabled"));!0===a?(p.addClass(this.button,"dijitButtonDisabled"),this.imageChooser.disableChooseImage()):(p.removeClass(this.button,"dijitButtonDisabled"),this.imageChooser.enableChooseImage())},createFileInput:function(){var a=h.create("span",{innerHTML:"."},document.body);this.imageChooser=new m({showSelfImg:!1,
  cropImage:!1,format:[m.GIF,m.JPEG,m.PNG]},a);this.connect(this.imageChooser,"onImageChange","insertTempImage")},_chooseImage:function(){var b=this.imageChooser.mask;if(a("safari")){var c=document.createEvent("MouseEvents");c.initEvent("click",!0,!0);b.dispatchEvent(c)}else b.click()},onComplete:function(a){a=a[0];var b=h.byId(this.currentImageId,this.editor.document),c;c=this.downloadPath?this.downloadPath+a.name:a.file;b.src=c;h.attr(b,"_djrealurl",c);a.width&&(b.width=a.width,b.height=a.height)},
  insertTempImage:function(a){this.currentImageId="img_"+(new Date).getTime();this.editor.execCommand("inserthtml",'\x3cimg id\x3d"'+this.currentImageId+'" src\x3d"'+a+'" /\x3e')},destroy:function(){this.imageChooser&&this.imageChooser.destroy();this.inherited(arguments)}});h.subscribe(q._scopeName+".Editor.getPlugin",null,function(a){if(!a.plugin)switch(a.args.name){case "chooseImage":a.plugin=new d({url:a.args.url})}});r.registry.chooseImage=function(a){return new d(a)};return d})},"jimu/dijit/EditorTextColor":function(){define("require dojo dijit dojo/_base/declare dijit/_editor/_Plugin dijit/form/DropDownButton".split(" "),
  function(h,q,r,m,p,b){q.experimental("dijit.editor.plugins.EditorTextColor");var a=m("dijit.editor.plugins.EditorTextColor",p,{buttonClass:b,colorPicker:"jimu/dijit/ColorPalette",useDefaultCommand:!1,_initButton:function(){this.command="editorTextColor";this.hackCommand="foreColor";this.inherited(arguments);var a="",b=!1;this.params.custom&&(this.params.custom.recordUID&&(a=this.params.custom.recordUID),this.params.custom.forceAttr&&(b=this.params.custom.forceAttr));var e=this;this.button.set("iconClass",
  this.iconClassPrefix+" "+this.iconClassPrefix+"ForeColor");this.button.set("title",this.getLabel(this.hackCommand));this.button.loadDropDown=function(c){function d(d){e.button.dropDown=new d({dir:e.editor.dir,ownerDocument:e.editor.ownerDocument,value:e.value,appearance:{showTransparent:!1,showColorPalette:!0,showCoustom:!0,showCoustomRecord:!0},recordUID:a,onChange:function(a){e.editor.execCommand("useCSS",b);e.editor.execCommand("styleWithCSS",!b);e.editor.execCommand(e.hackCommand,a)}});c()}"string"===
  typeof e.colorPicker?h([e.colorPicker],d):d(e.colorPicker)}},updateState:function(){var a=this.editor,b=this.hackCommand;if(a&&a.isLoaded&&b.length){var e;if(this.button){var f=this.get("disabled");this.button.set("disabled",f);if(f)return;try{e=a.queryCommandValue(b)||""}catch(l){e=""}}""===e?e="#000000":"transparent"===e&&(e="rgba(0, 0, 0, 0)");this.value=e;(a=this.button.dropDown)&&a.getColor&&e!==a.getColor()&&(a.refreshRecords(),a.setColor(e))}}});q.subscribe(r._scopeName+".Editor.getPlugin",
  null,function(b){if(!b.plugin)switch(b.args.name){case "editorTextColor":b.plugin=new a}});return a})},"jimu/dijit/EditorBackgroundColor":function(){define("require dojo dijit dojo/_base/declare dijit/_editor/_Plugin dijit/form/DropDownButton".split(" "),function(h,q,r,m,p,b){q.experimental("dijit.editor.plugins.EditorBackgroundColor");var a=m("dijit.editor.plugins.EditorBackgroundColor",p,{buttonClass:b,colorPicker:"jimu/dijit/ColorPalette",useDefaultCommand:!1,_initButton:function(){this.command=
  "editorBackgroundColor";this.hackCommand="hiliteColor";this.inherited(arguments);var a="";this.params.custom&&this.params.custom.recordUID&&(a=this.params.custom.recordUID);var b=this;this.button.set("iconClass",this.iconClassPrefix+" "+this.iconClassPrefix+"HiliteColor");this.button.set("title",this.getLabel(this.hackCommand));this.button.loadDropDown=function(c){function d(d){b.button.dropDown=new d({dir:b.editor.dir,ownerDocument:b.editor.ownerDocument,value:b.value,appearance:{showTransparent:!0,
  showColorPalette:!0,showCoustom:!0,showCoustomRecord:!0},recordUID:a,onChange:function(a){b.editor.execCommand("useCSS",!1);b.editor.execCommand("styleWithCSS",!0);b.editor.execCommand(b.hackCommand,a)},onExecute:function(){b.editor.execCommand(b.hackCommand,this.get("value"))}});c()}"string"===typeof b.colorPicker?h([b.colorPicker],d):d(b.colorPicker)}},updateState:function(){var a=this.editor,b=this.hackCommand;if(a&&a.isLoaded&&b.length){var e;if(this.button){var f=this.get("disabled");this.button.set("disabled",
  f);if(f)return;try{e=a.queryCommandValue(b)||""}catch(l){e=""}}""===e?e="#000000":"transparent"===e&&(e="rgba(0, 0, 0, 0)");this.value=e;(a=this.button.dropDown)&&a.getColor&&e!==a.getColor()&&(a.refreshRecords(),a.setColor(e))}}});q.subscribe(r._scopeName+".Editor.getPlugin",null,function(b){if(!b.plugin)switch(b.args.name){case "editorBackgroundColor":b.plugin=new a}});return a})},"widgets/Splash/setting/_build-generate_module":function(){define(["dojo/text!./Setting.html","dojo/text!./css/style.css",
  "dojo/i18n!./nls/strings"],function(){})},"url:widgets/Splash/setting/ColorPickerEditor.html":'\x3cdiv class\x3d"colorPickerEditor"\x3e\r\n  \x3cdiv class\x3d"colorPicker" data-dojo-attach-point\x3d"colorPicker"\x3e\x3c/div\x3e\r\n  \x3cspan class\x3d"trans"\x3e${nls.transparency}\x3c/span\x3e\r\n  \x3cdiv class\x3d"sliderbar" data-dojo-attach-point\x3d"sliderBar"\x3e\x3c/div\x3e\r\n  \x3cinput type\x3d"text" data-dojo-type\x3d"dijit/form/NumberSpinner" value\x3d"0"\r\n         data-dojo-attach-point\x3d"spinner" data-dojo-props\x3d"smallDelta:10,intermediateChanges:true,constraints: {min:0,max:100}"\x3e\r\n  \x3cspan \x3e%\x3c/span\x3e\r\n\x3c/div\x3e\r\n\r\n',
  "url:widgets/Splash/setting/BackgroundSelector.html":'\x3cdiv\x3e\r\n  \x3cdiv class\x3d"titles"\x3e${nls.background}\x3c/div\x3e\r\n\r\n  \x3cdiv class\x3d"unit-item"\x3e\r\n    \x3cdiv data-dojo-type\x3d"jimu/dijit/RadioBtn" data-dojo-attach-point\x3d"colorFillBtn" data-dojo-props\x3d"group:\'background\'"\x3e\x3c/div\x3e\r\n    \x3clabel class\x3d""\x3e${nls.colorFill}\x3c/label\x3e\r\n  \x3c/div\x3e\r\n  \x3cdiv class\x3d"hide indent" data-dojo-attach-point\x3d"colorFillOptions"\x3e\r\n    \x3cdiv class\x3d"colorPicker" data-dojo-attach-point\x3d"backgroundColorPickerEditor"\x3e\x3c/div\x3e\r\n  \x3c/div\x3e\r\n\r\n  \x3cdiv class\x3d"unit-item"\x3e\r\n    \x3cdiv data-dojo-type\x3d"jimu/dijit/RadioBtn" data-dojo-attach-point\x3d"imageFillBtn" data-dojo-props\x3d"group:\'background\'"\x3e\x3c/div\x3e\r\n    \x3clabel class\x3d""\x3e${nls.imageFill}\x3c/label\x3e\r\n  \x3c/div\x3e\r\n  \x3cdiv class\x3d"hide indent" data-dojo-attach-point\x3d"imageFillOptions"\x3e\r\n    \x3cdiv class\x3d"clearFix"\x3e\r\n      \x3cdiv class\x3d"jimu-float-leading"\x3e\r\n        \x3cdiv class\x3d"image-chooser-base" data-dojo-attach-point\x3d"imageChooser"\x3e\x3c/div\x3e\r\n      \x3c/div\x3e\r\n      \x3cdiv class\x3d"file-name jimu-float-leading" data-dojo-attach-point\x3d"fileName"\x3e${nls.noFileChosen}\x3c/div\x3e\r\n    \x3c/div\x3e\r\n\r\n    \x3cdiv class\x3d"hide clearFix types" data-dojo-attach-point\x3d"fillsType"\x3e\r\n      \x3cdiv class\x3d"unit-item fillstype jimu-float-leading" data-dojo-attach-point\x3d"sizeFill"\x3e\r\n        \x3cdiv data-dojo-type\x3d"jimu/dijit/RadioBtn" data-dojo-attach-point\x3d"fill" data-dojo-props\x3d"group:\'fillStyle\'"\x3e\x3c/div\x3e\r\n        \x3clabel class\x3d""\x3e${nls.sizeFill}\x3c/label\x3e\r\n      \x3c/div\x3e\r\n      \x3cdiv class\x3d"unit-item fillstype jimu-float-leading hide" data-dojo-attach-point\x3d"sizeFit"\x3e\r\n        \x3cdiv data-dojo-type\x3d"jimu/dijit/RadioBtn" data-dojo-attach-point\x3d"fit" data-dojo-props\x3d"group:\'fillStyle\'"\x3e\x3c/div\x3e\r\n        \x3clabel class\x3d""\x3e${nls.sizeFit}\x3c/label\x3e\r\n      \x3c/div\x3e\r\n      \x3cdiv class\x3d"unit-item fillstype jimu-float-leading" data-dojo-attach-point\x3d"sizeStretch"\x3e\r\n        \x3cdiv data-dojo-type\x3d"jimu/dijit/RadioBtn" data-dojo-attach-point\x3d"stretch" data-dojo-props\x3d"group:\'fillStyle\'"\x3e\x3c/div\x3e\r\n        \x3clabel class\x3d""\x3e${nls.sizeStretch}\x3c/label\x3e\r\n      \x3c/div\x3e\r\n      \x3cdiv class\x3d"unit-item fillstype jimu-float-leading hide" data-dojo-attach-point\x3d"sizeCenter"\x3e\r\n        \x3cdiv data-dojo-type\x3d"jimu/dijit/RadioBtn" data-dojo-attach-point\x3d"center" data-dojo-props\x3d"group:\'fillStyle\'"\x3e\x3c/div\x3e\r\n        \x3clabel class\x3d""\x3e${nls.sizeCenter}\x3c/label\x3e\r\n      \x3c/div\x3e\r\n      \x3cdiv class\x3d"unit-item fillstype jimu-float-leading" data-dojo-attach-point\x3d"sizeTile"\x3e\r\n        \x3cdiv data-dojo-type\x3d"jimu/dijit/RadioBtn" data-dojo-attach-point\x3d"tile" data-dojo-props\x3d"group:\'fillStyle\'"\x3e\x3c/div\x3e\r\n        \x3clabel class\x3d""\x3e${nls.sizeTile}\x3c/label\x3e\r\n      \x3c/div\x3e\r\n    \x3c/div\x3e\r\n  \x3c/div\x3e\r\n\x3c/div\x3e',
  "url:widgets/Splash/setting/SizeSelector.html":'\x3cdiv class\x3d"size-selector clearFix"\x3e\r\n  \x3cdiv class\x3d"titles"\x3e${nls.size}\x3c/div\x3e\r\n  \x3cdiv class\x3d"sizes jimu-float-leading"\x3e\r\n    \x3cdiv class\x3d"size-box-container"\x3e\r\n      \x3cdiv class\x3d"size-box percent25" data-dojo-attach-point\x3d"percent25"\x3e\x3c/div\x3e\r\n      25%\r\n    \x3c/div\x3e\r\n    \x3cdiv class\x3d"size-box-container"\x3e\r\n      \x3cdiv class\x3d"size-box percent50" data-dojo-attach-point\x3d"percent50"\x3e\x3c/div\x3e\r\n      50%\r\n    \x3c/div\x3e\r\n    \x3cdiv class\x3d"size-box-container"\x3e\r\n      \x3cdiv class\x3d"size-box percent75" data-dojo-attach-point\x3d"percent75"\x3e\x3c/div\x3e\r\n      75%\r\n    \x3c/div\x3e\r\n    \x3cdiv class\x3d"size-box-container"\x3e\r\n      \x3cdiv class\x3d"size-box percent100" data-dojo-attach-point\x3d"percent100"\x3e\x3c/div\x3e\r\n      100%\r\n    \x3c/div\x3e\r\n    \x3cdiv class\x3d"size-box-container"\x3e\r\n      \x3cdiv class\x3d"size-box custom" data-dojo-attach-point\x3d"custom"\x3e\x3c/div\x3e\r\n      ${nls.custom}\r\n    \x3c/div\x3e\r\n  \x3c/div\x3e\r\n  \x3cdiv data-dojo-attach-point\x3d"wh" class\x3d"wh jimu-float-leading hide"\x3e\r\n    \x3cdiv class\x3d"wh-item"\x3e\r\n      \x3cdiv class\x3d"lable"\x3e${nls.width}\x3c/div\x3e\r\n      \x3cdiv class\x3d"inputs"\x3e\r\n        \x3cinput type\x3d"text" class\x3d"text-box" data-dojo-type\x3d"dijit/form/NumberTextBox" data-dojo-attach-point\x3d"width"\x3e\r\n        \x3cspan class\x3d"unit"\x3epx\x3c/span\x3e\r\n      \x3c/div\x3e\r\n    \x3c/div\x3e\r\n    \x3cdiv class\x3d"wh-item"\x3e\r\n      \x3cdiv class\x3d"lable"\x3e${nls.height}\x3c/div\x3e\r\n      \x3cdiv class\x3d"inputs"\x3e\r\n        \x3cinput type\x3d"text" class\x3d"text-box" data-dojo-type\x3d"dijit/form/NumberTextBox" data-dojo-attach-point\x3d"height"\x3e\r\n        \x3cspan class\x3d"unit"\x3epx\x3c/span\x3e\r\n      \x3c/div\x3e\r\n    \x3c/div\x3e\r\n  \x3c/div\x3e\r\n\x3c/div\x3e\r\n\r\n',
  "url:widgets/Splash/setting/AlignSelector.html":'\x3cdiv class\x3d"align-selector clearFix"\x3e\r\n  \x3cdiv class\x3d"titles"\x3e${nls.contentAlign}\x3c/div\x3e\r\n  \x3cdiv class\x3d"aligns jimu-float-leading"\x3e\r\n    \x3cdiv class\x3d"align-box-container"\x3e\r\n      \x3cdiv class\x3d"align-box top" data-dojo-attach-point\x3d"top" title\x3d"${nls.alignTop}"\x3e\x3c/div\x3e${nls.alignTop}\r\n    \x3c/div\x3e\r\n    \x3cdiv class\x3d"align-box-container"\x3e\r\n      \x3cdiv class\x3d"align-box middle" data-dojo-attach-point\x3d"middle" title\x3d"${nls.alignMiddle}"\x3e\x3c/div\x3e${nls.alignMiddle}\r\n    \x3c/div\x3e\r\n  \x3c/div\x3e\r\n\x3c/div\x3e',
  "url:widgets/Splash/setting/Setting.html":'\x3cdiv style\x3d"width:100%;height: 100%;"\x3e\r\n  \x3cdiv class\x3d"instruction" data-dojo-attach-point\x3d"instructionNode"\x3e\r\n    \x3cspan class\x3d"instruction-inner"\x3e${nls.instruction}\x3c/span\x3e\r\n  \x3c/div\x3e\r\n  \x3c!-- tabs --\x3e\r\n  \x3cdiv class\x3d"tabs" data-dojo-attach-point\x3d"tabsContainer"\x3e\r\n    \x3cdiv class\x3d"content-tab" data-dojo-attach-point\x3d"contentTab"\x3e\r\n      \x3cdiv class\x3d"tab-description"\x3e${nls.contentDescription}\x3c/div\x3e\r\n      \x3cdiv class\x3d"editor-container" data-dojo-attach-point\x3d"editorContainer"\x3e\r\n        \x3cdiv data-dojo-attach-point\x3d"editor"\x3e\x3c/div\x3e\r\n      \x3c/div\x3e\r\n    \x3c/div\x3e\r\n\r\n    \x3cdiv class\x3d"appearance-tab" data-dojo-attach-point\x3d"appearanceTab"\x3e\r\n      \x3cdiv class\x3d"tab-description"\x3e${nls.appearanceDescription}\x3c/div\x3e\r\n      \x3cdiv\x3e\r\n        \x3cdiv data-dojo-attach-point\x3d"sizeSelector"\x3e\x3c/div\x3e\r\n      \x3c/div\x3e\r\n      \x3cdiv\x3e\r\n        \x3cdiv data-dojo-attach-point\x3d"alignSelector"\x3e\x3c/div\x3e\r\n      \x3c/div\x3e\r\n      \x3cdiv\x3e\r\n        \x3cdiv data-dojo-attach-point\x3d"backgroundSelector"\x3e\x3c/div\x3e\r\n      \x3c/div\x3e\r\n      \x3cdiv\x3e\r\n        \x3cdiv class\x3d"titles"\x3e${nls.buttonColor}\x3c/div\x3e\r\n        \x3cdiv class\x3d"colorPicker" data-dojo-attach-point\x3d"buttonColorPickerEditor"\x3e\x3c/div\x3e\r\n      \x3c/div\x3e\r\n      \x3cdiv\x3e\r\n        \x3cdiv class\x3d"titles"\x3e${nls.buttonText}\x3c/div\x3e\r\n        \x3cinput class\x3d"jimu-input buttonText" type\x3d"text" value\x3d"${nls.ok}" data-dojo-attach-point\x3d"buttonText" data-dojo-attach-event\x3d"blur:_onButtonTextBlur"\x3e\r\n      \x3c/div\x3e\r\n      \x3cdiv\x3e\r\n        \x3cdiv class\x3d"titles"\x3e${nls.confirmLabelColor}\x3c/div\x3e\r\n        \x3cdiv class\x3d"colorPicker" data-dojo-attach-point\x3d"confirmColorPickerEditor"\x3e\x3c/div\x3e\r\n      \x3c/div\x3e\r\n    \x3c/div\x3e\r\n\r\n    \x3cdiv class\x3d"options-tab" data-dojo-attach-point\x3d"optionsTab"\x3e\r\n      \x3cdiv class\x3d"tab-description"\x3e${nls.optionsDescription}\x3c/div\x3e\r\n      \x3cdiv class\x3d"splash-footer" data-dojo-attach-point\x3d"splashFooterNode"\x3e\r\n        \x3cdiv class\x3d"require-list"\x3e\r\n          \x3cdiv class\x3d"require-item" data-dojo-attach-point\x3d"noRequireConfirmSplash"\x3e\r\n            \x3cdiv data-dojo-type\x3d"jimu/dijit/RadioBtn" data-dojo-props\x3d"group:\'requireItem\'"\x3e\x3c/div\x3e\r\n            \x3clabel class\x3d"jimu-leading-margin025"\x3e${nls.noRequireConfirm}\x3c/label\x3e\r\n          \x3c/div\x3e\r\n          \x3cdiv data-dojo-attach-point\x3d"showOption"\x3e\x3c/div\x3e\r\n          \x3cdiv class\x3d"require-item" data-dojo-attach-point\x3d"requireConfirmSplash"\x3e\r\n            \x3cdiv data-dojo-type\x3d"jimu/dijit/RadioBtn" data-dojo-props\x3d"group:\'requireItem\'"\x3e\x3c/div\x3e\r\n            \x3clabel class\x3d"jimu-leading-margin025"\x3e${nls.requireConfirm}\x3c/label\x3e\r\n          \x3c/div\x3e\r\n          \x3cdiv class\x3d"confirm-container" data-dojo-attach-point\x3d"confirmContainer"\x3e\r\n            \x3cdiv class\x3d"confirm-text"\x3e\r\n              \x3cspan class\x3d"spinner-label jimu-ellipsis" title\x3d"${nls.confirmLabel}"\x3e${nls.confirmLabel}\x3c/span\x3e\r\n              \x3cinput class\x3d"jimu-input jimu-float-trailing" type\x3d"text" value\x3d"${nls.defaultConfirmText}" data-dojo-attach-point\x3d"confirmText" data-dojo-attach-event\x3d"blur:_onConfirmTextBlur"\x3e\r\n            \x3c/div\x3e\r\n            \x3cdiv data-dojo-attach-point\x3d"confirmOption"\x3e\x3c/div\x3e\r\n          \x3c/div\x3e\r\n        \x3c/div\x3e\r\n      \x3c/div\x3e\r\n    \x3c/div\x3e\r\n  \x3c/div\x3e\r\n\x3c/div\x3e',
  "url:widgets/Splash/setting/css/style.css":'.jimu-widget-splash-setting{margin:0; padding:0; font-size:14px; position: absolute; overflow-y: hidden; top: 0; bottom: 0; left: 0; right: 0; letter-spacing: 0.38px;}.jimu-widget-splash-setting .instruction {margin-bottom: 10px;}.jimu-widget-splash-setting .tabs {font-family: "Avenir Light"; color: #000000; height: 100%;}.jimu-widget-splash-setting .tabs .tab-description {margin: 10px 0;}.jimu-widget-splash-setting .tabs .jimu-radio-checked .jimu-radio-inner {width: 6px; height: 6px; margin: 4px; border-radius: 50%; background-color: #24B5CC;}.jimu-widget-splash-setting .tabs .jimu-radio{border: 1px solid #ccc; vertical-align: top;}.jimu-widget-splash-setting .jimu-tab\x3e.control\x3e.tab{background-color: #fff; border-top: 0; border-left: 0; border-right: 0; border-bottom: 1px solid #dedede; color:#898989; font-family: "Avenir Medium"; font-size: 14px;}.jimu-widget-splash-setting .jimu-tab\x3e.control\x3e.tab.jimu-state-selected {border-bottom: 3px solid #24b5cc; font-family: "Avenir Heavy"; color: #000000;}.jimu-widget-splash-setting .tabs .titles {font-weight: bold; font-family: "Avenir Medium"; font-size: 14px; margin: 20px 0 10px 0;}.jimu-widget-splash-setting .tabs .hide{display: none;}.jimu-widget-splash-setting .tabs .indent{margin-left: 20px; margin-top: 10px;}.jimu-widget-splash-setting .tabs .unit-item{margin: 15px 5px 5px 5px; line-height: 18px; height: 18px; vertical-align: middle;}.jimu-widget-splash-setting .tabs .clearFix {*overflow: hidden; *zoom: 1;}.jimu-widget-splash-setting .tabs .clearFix:after {display: table; content: ""; width: 0; clear: both;}.jimu-widget-splash-setting .tabs .view{height: 100%; overflow-y: auto;}.jimu-widget-splash-setting .tabs .jimu-tab\x3e.jimu-viewstack{padding-bottom: 30px;}.jimu-widget-splash-setting .tabs .colorPickerEditor {}.jimu-widget-splash-setting .tabs .colorPickerEditor .jimu-color-picker{display: inline-block; width: 30px; height: 30px;}.jimu-widget-splash-setting .tabs .colorPickerEditor .dijitSpinner.dijitNumberTextBox.dijitValidationTextBox{width:66px; height:30px;}.jimu-widget-splash-setting .dijitSliderImageHandleH{top: -7px;}.jimu-widget-splash-setting .dijitSliderImageHandle.dijitSliderImageHandleH{background-image: url("../../images/sliderball.png"); background-position: 0 0;}.jimu-widget-splash-setting .tabs .dijitSliderThumbHover{background-image: url("../../images/sliderball_hover.png"); background-position: 0 0;}.jimu-widget-splash-setting .dijitSlider .dijitSliderProgressBarH,.jimu-widget-splash-setting .dijitSlider .dijitSliderLeftBumper{border-color: #24b5cc; background-color: #24b5cc; background-image: -webkit-linear-gradient(top, #24b5cc 0px, #24b5cc 1px, rgba(255, 255, 255, 0) 2px); background-image: -o-linear-gradient(top, #24b5cc 0px, #24b5cc 1px, rgba(255, 255, 255, 0) 2px); background-image: linear-gradient(top, #24b5cc 0px, #24b5cc 1px, rgba(255, 255, 255, 0) 2px);}.jimu-widget-splash-setting .dijitSlider .dijitSliderRemainingBarH,.jimu-widget-splash-setting .dijitSlider .dijitSliderRightBumper{border-color: #d7d7d7; background-color: #d7d7d7;}.jimu-widget-splash-setting .tabs .colorPickerEditor .trans{font-family: "Avenir Light"; font-size: 12px; padding: 0 10px 0 20px; letter-spacing: 0.33px;}.jimu-widget-splash-setting .tabs .sliderbar {width: 80px;}.jimu-widget-splash-setting .content-tab{}.jimu-widget-splash-setting .content-tab .editor-container{}.jimu-widget-splash-setting .content-tab .editor-container .dijitEditorIFrameContainer textarea {resize: none;}.jimu-widget-splash-setting .appearance-tab{overflow-y: auto; height: 490px;}.jimu-widget-splash-setting .appearance-tab .size-selector .size-box-container{display: inline-block; text-align: center; margin: 0 10px 0 0; width: 80px; -o-text-overflow: ellipsis; text-overflow: ellipsis; overflow: hidden; white-space: nowrap;}.jimu-widget-splash-setting .appearance-tab .size-selector .size-box{width:80px; height:60px; background: no-repeat; margin-bottom: 5px;}.jimu-widget-splash-setting .appearance-tab .size-selector .percent25{background: url("../../images/percent25.svg") center center no-repeat;;}.jimu-widget-splash-setting .appearance-tab .size-selector .percent25.selected{background: url("../../images/percent25_selected.svg") center center no-repeat;;}.jimu-widget-splash-setting .appearance-tab .size-selector .percent50{background: url("../../images/percent50.svg") center center no-repeat;;}.jimu-widget-splash-setting .appearance-tab .size-selector .percent50.selected{background: url("../../images/percent50_selected.svg") center center no-repeat;;}.jimu-widget-splash-setting .appearance-tab .size-selector .percent75{background: url("../../images/percent75.svg") center center no-repeat;;}.jimu-widget-splash-setting .appearance-tab .size-selector .percent75.selected{background: url("../../images/percent75_selected.svg") center center no-repeat;;}.jimu-widget-splash-setting .appearance-tab .size-selector .percent100{background: url("../../images/percent100.svg") center center no-repeat;;}.jimu-widget-splash-setting .appearance-tab .size-selector .percent100.selected{background: url("../../images/percent100_selected.svg") center center no-repeat;;}.jimu-widget-splash-setting .appearance-tab .size-selector .custom{background: url("../../images/custom.svg") center center no-repeat;;}.jimu-widget-splash-setting .appearance-tab .size-selector .custom.selected{background: url("../../images/custom_selected.svg") center center no-repeat;;}.jimu-widget-splash-setting .appearance-tab .size-selector .custom-label{vertical-align: top; line-height: 20px;}.jimu-rtl .jimu-widget-splash-setting .appearance-tab .sizes\x3e:first-child{margin-right: 0;}.jimu-widget-splash-setting .appearance-tab .size-selector .wh{margin: 0 14px;}.jimu-widget-splash-setting .appearance-tab .size-selector .wh .wh-item{display: inline-block; margin-right: 10px;}.jimu-widget-splash-setting .appearance-tab .size-selector .wh .wh-item .lable{font-family: "Avenir Medium"; font-size: 12px; color: #353535; margin:0 0 5px 0; width: 96px; -o-text-overflow: ellipsis; text-overflow: ellipsis; overflow: hidden; white-space: nowrap;}.jimu-widget-splash-setting .appearance-tab .size-selector .wh .inputs{width:96px; border: 1px solid #d9dde0;}.jimu-widget-splash-setting .appearance-tab .size-selector .wh .inputs .text-box{width: 70px; border: none;}.jimu-widget-splash-setting .appearance-tab .size-selector .wh .inputs .unit{color: #898989; letter-spacing: 0;}.jimu-widget-splash-setting .appearance-tab .align-selector .align-box-container{display: inline-block; text-align: center; margin: 0 10px; width:50px; -o-text-overflow: ellipsis; text-overflow: ellipsis; overflow: hidden; white-space: nowrap;}.jimu-widget-splash-setting .appearance-tab .align-selector .align-box{width:40px; height:36px; background: no-repeat; margin: 0 5px 5px 5px;}.jimu-widget-splash-setting .appearance-tab .align-selector .top{background: url("../../images/top.svg") center center no-repeat; border: none;}.jimu-widget-splash-setting .appearance-tab .align-selector .top.selected{background: url("../../images/top_selected.svg") center center no-repeat; border: 1px #24B5CC solid;}.jimu-widget-splash-setting .appearance-tab .align-selector .middle{background: url("../../images/middle.svg") center center no-repeat; border: none;}.jimu-widget-splash-setting .appearance-tab .align-selector .middle.selected{background: url("../../images/middle_selected.svg") center center no-repeat; border: 1px #24B5CC solid;}.jimu-widget-splash-setting .appearance-tab .jimu-image-chooser{height:30px; width:124px; background: #24B5CC; border: 1px solid #24B5CC;}.jimu-widget-splash-setting .appearance-tab .file-name{font-size: 12px; line-height: 33px; height: 33px; color: #000000; margin: 0 20px 0 20px;}.jimu-widget-splash-setting .appearance-tab .types\x3e:first-child{margin-left: 0;}.jimu-rtl .jimu-widget-splash-setting .appearance-tab .types\x3e:first-child{margin-right: 0;}.jimu-widget-splash-setting .appearance-tab .fillstype{margin: 10px 20px 0 20px;}.jimu-widget-splash-setting .appearance-tab .buttonText{width: 290px; margin-bottom: 10px;}.jimu-widget-splash-setting .instruction span{color: #596679;}.jimu-widget-splash-setting .editor-container{position: absolute; top: 34px; bottom: 165px; left: 0; right: 0; border: 1px solid #d2dae2; background-color: #fafafc;}.jimu-widget-splash-setting .editor-container .dijitEditorIFrameContainer{position: relative; width: 100%; overflow: hidden;}.jimu-widget-splash-setting .editor-container .dijitEditorIFrameContainer {padding-top: 0;}.jimu-widget-splash-setting .editor-container .uploaderInsideNode embed {display: none;}.jimu-widget-splash-setting .splash-footer{color: #596679; height: 155px; margin-top: 20px;}.jimu-widget-splash-setting .splash-footer .require-continue{position: absolute; top: 0;}.jimu-widget-splash-setting .splash-footer .require-item{margin-bottom: 10px;}.jimu-widget-splash-setting .splash-footer .option-text{display: none; margin: 10px 0 15px 23px;}.jimu-widget-splash-setting .splash-footer .confirm-container{display: none; margin-left: 20px; margin-bottom: 10px;}.jimu-widget-splash-setting .splash-footer .confirm-text,.jimu-widget-splash-setting .splash-footer .confirm-option{width: 100%; margin-top: 10px;}.jimu-widget-splash-setting .splash-footer .spinner-label{line-height: 30px; margin-right: 10px; display: inline-block;}.jimu-widget-splash-setting .splash-footer .set-background,.jimu-widget-splash-setting .splash-footer .set-background *{vertical-align: middle;}.jimu-widget-splash-setting .splash-footer input{width: 755px; color: #7989a0;}.jimu-widget-splash-setting .dojoxEditorUploadNorm.dijitButtonDisabled {background: #ccc url(../../css/images/uploadImageIcon_disabled.gif) no-repeat 2px 2px;}',
  "*now":function(h){h(['dojo/i18n!*preload*widgets/Splash/setting/nls/Setting*["ar","bs","cs","da","de","en","el","es","et","fi","fr","he","hi","hr","id","it","ja","ko","lt","lv","nb","nl","pl","pt-br","pt-pt","ro","ru","sr","sv","th","tr","zh-cn","vi","zh-hk","zh-tw","ROOT"]'])},"*noref":1}});
  define("dojo/_base/declare dojo/_base/lang dojo/_base/html dojo/on dojo/aspect dojo/cookie dojo/sniff dojo/query ./ColorPickerEditor ./BackgroundSelector ./SizeSelector ./AlignSelector dijit/registry dijit/_WidgetsInTemplateMixin dijit/Editor jimu/utils jimu/BaseWidgetSetting jimu/dijit/CheckBox jimu/dijit/TabContainer jimu/dijit/LoadingShelter dojo/Deferred dojo/NodeList-manipulate jimu/dijit/RadioBtn dijit/_editor/plugins/LinkDialog dijit/_editor/plugins/ViewSource dijit/_editor/plugins/FontChoice dojox/editor/plugins/Preview dijit/_editor/plugins/TextColor dojox/editor/plugins/ToolbarLineBreak dijit/ToolbarSeparator dojox/editor/plugins/FindReplace dojox/editor/plugins/PasteFromWord dojox/editor/plugins/InsertAnchor dojox/editor/plugins/Blockquote dojox/editor/plugins/UploadImage jimu/dijit/EditorChooseImage jimu/dijit/EditorTextColor jimu/dijit/EditorBackgroundColor".split(" "),function(h,
  q,r,m,p,b,a,c,d,e,f,l,t,v,n,g,k,A,B,x,C){return h([k,v],{baseClass:"jimu-widget-splash-setting",_defaultSize:{mode:"wh",wh:{w:600,h:264}},_defaultColor:"#485566",_defaultConfirmColor:"#ffffff",_defaultTransparency:0,postMixInProperties:function(){this.nls=q.mixin(this.nls,window.jimuNls.common)},postCreate:function(){this.shelter=new x({hidden:!0});this.shelter.placeAt(this.domNode);this.shelter.startup();this.tab=new B({tabs:[{title:this.nls.content,content:this.contentTab},{title:this.nls.appearance,
  content:this.appearanceTab},{title:this.nls.options,content:this.optionsTab}],selected:this.nls.content});this.tab.placeAt(this.tabsContainer);this.tab.startup();this.own(m(this.tab,"tabChanged",q.hitch(this,function(a){a===this.nls.content&&this.resize()})));this.inherited(arguments)},initContentTab:function(){var a=document.getElementsByTagName("head")[0],b=window.apiUrl+"dojox/editor/plugins/resources/css/TextColor.css";c('link[href\x3d"'+b+'"]',a)[0]||g.loadStyleLink("editor_plugins_resources_TextColor",
  b);b=window.apiUrl+"dojox/editor/plugins/resources/editorPlugins.css";c('link[href\x3d"'+b+'"]',a)[0]||g.loadStyleLink("editor_plugins_resources_editorPlugins",b);b=window.apiUrl+"dojox/editor/plugins/resources/css/PasteFromWord.css";c('link[href\x3d"'+b+'"]',a)[0]||g.loadStyleLink("editor_plugins_resources_PasteFromWord",b);this.initEditor()},initAppearanceTab:function(){this.sizeSelector=new f({nls:this.nls},this.sizeSelector);this.backgroundSelector=new e({nls:this.nls},this.backgroundSelector);
  this.backgroundSelector.startup();this.alignSelector=new l({nls:this.nls},this.alignSelector);this.alignSelector.startup();this.buttonColorPicker=new d({nls:this.nls},this.buttonColorPickerEditor);this.buttonColorPicker.startup();this.confirmColorPicker=new d({nls:this.nls},this.confirmColorPickerEditor);this.confirmColorPicker.startup()},initOptionsTab:function(){this.own(m(this.requireConfirmSplash,"click",q.hitch(this,function(){this.set("requireConfirm",!0)})));this.own(m(this.noRequireConfirmSplash,
  "click",q.hitch(this,function(){this.set("requireConfirm",!1)})));this.own(this.watch("requireConfirm",q.hitch(this,this._changeRequireConfirm)));this.own(p.before(this,"getConfig",q.hitch(this,this._beforeGetConfig)));this.showOption=new A({label:this.nls.optionText,checked:!1},this.showOption);this.showOption.startup();r.addClass(this.showOption.domNode,"option-text");this.confirmOption=new A({label:this.nls.confirmOption,checked:!1},this.confirmOption);this.confirmOption.startup();r.addClass(this.confirmOption.domNode,
  "confirm-option")},startup:function(){this.inherited(arguments);this.shelter.show();this.config.splash||(this.config.splash={});this.initContentTab();this.initAppearanceTab();this.initOptionsTab();this.setConfig(this.config);this.resize()},initEditor:function(){this.editor=new n({plugins:["bold","italic","underline",g.getEditorTextColor("splash"),g.getEditorBackgroundColor("splash"),"|","justifyLeft","justifyCenter","justifyRight","justifyFull","|","insertOrderedList","insertUnorderedList","indent",
  "outdent"],extraPlugins:["|","createLink","unlink","pastefromword","|","undo","redo","|","chooseImage","|","viewsource","toolbarlinebreak",{name:"dijit._editor.plugins.FontChoice",command:"fontName",custom:"Arial;Comic Sans MS;Courier New;Garamond;Tahoma;Times New Roman;Verdana".split(";")},"fontSize","formatBlock"],style:"font-family:Verdana;"},this.editor);r.setStyle(this.editor.domNode,{width:"100%",height:"100%"});this.editor.startup();var b=r.getMarginBox(this.instructionNode),c=r.getMarginBox(this.splashFooterNode);
  r.setStyle(this.editorContainer,{top:b.h+8+"px",bottom:c.h+10+10+"px"});8!==a("ie")?this.editor.resize({w:"100%",h:"100%"}):(b=r.getMarginBox(this.editorContainer),this.editor.resize({w:b.w,h:b.h}))},setConfig:function(a){this.config=a;this._setWidthForOldVersion().then(q.hitch(this,function(){this.editor.set("value",a.splash.splashContent||this.nls.defaultContent);this.set("requireConfirm",a.splash.requireConfirm);this.showOption.setValue(a.splash.showOption);this.confirmOption.setValue(a.splash.confirmEverytime);
  r.setAttr(this.confirmText,"value",g.stripHTML(a.splash.confirm.text||this.nls.defaultConfirmText));this.confirmColorPicker.setValues({color:a.splash.confirm.color||this._defaultConfirmColor,transparency:a.splash.confirm.transparency||this._defaultTransparency});this.sizeSelector.setValue(a.splash.size||this._defaultSize);"undefined"!==typeof a.splash.image&&this.imageChooser.setDefaultSelfSrc(a.splash.image);this.alignSelector.setValue(a.splash.contentVertical);this.backgroundSelector.setValues(a);
  this.buttonColorPicker.setValues({color:a.splash.button.color||this._defaultColor,transparency:a.splash.button.transparency||this._defaultTransparency});r.setAttr(this.buttonText,"value",g.stripHTML(a.splash.button.text||this.nls.ok));this.shelter.hide();this.resize();setTimeout(q.hitch(this,function(){this.resize()}),200)}))},_beforeGetConfig:function(){var a=this._getCookieKey();b(a,!0,{expires:1E3,path:"/"})},_getCookieKey:function(){return"isfirst_"+encodeURIComponent(g.getAppIdFromUrl())},getConfig:function(){this.config.splash.splashContent=
  this._getEditorValue();this.config.splash.size=this.sizeSelector.getValue();this.config.splash.requireConfirm=this.get("requireConfirm");this.config.splash.showOption=this.showOption.getValue();this.config.splash.confirmEverytime=this.confirmOption.getValue();this.get("requireConfirm")?this.config.splash.confirm.text=g.stripHTML(this.confirmText.value||""):this.config.splash.confirm.text="";var a=this.confirmColorPicker.getValues();a&&(this.config.splash.confirm.color=a.color,this.config.splash.confirm.transparency=
  a.transparency);this.config.splash.background=this.backgroundSelector.getValues();this.config.splash.button={};if(a=this.buttonColorPicker.getValues())this.config.splash.button.color=a.color,this.config.splash.button.transparency=a.transparency;this.config.splash.button.text=g.stripHTML(this.buttonText.value||"");this.config.splash.contentVertical=this.alignSelector.getValue();return this.config},_changeRequireConfirm:function(){var a=null;this.get("requireConfirm")?(a=this.requireConfirmSplash,r.setStyle(this.confirmContainer,
  "display","block"),r.setStyle(this.showOption.domNode,"display","none")):(a=this.noRequireConfirmSplash,r.setStyle(this.showOption.domNode,"display","block"),r.setStyle(this.confirmContainer,"display","none"));t.byNode(c(".jimu-radio",a)[0]).check(!0)},destroy:function(){var a=document.getElementsByTagName("head")[0];c('link[id^\x3d"editor_plugins_resources"]',a).remove();this.inherited(arguments)},_onConfirmTextBlur:function(){this.confirmText.value=g.stripHTML(this.confirmText.value||"")},_onButtonTextBlur:function(){this.buttonText.value=
  g.stripHTML(this.buttonText.value||"")},_getEditorValue:function(){var a=this.editor.get("value");""===a&&(a="\x3cp\x3e\x3c/p\x3e");return a},_setWidthForOldVersion:function(){var a=new C,b=this.config.splash.size;if(!0===("wh"===b.mode&&"undefined"!==typeof b.wh&&null===b.wh.h))return g.getEditorContentHeight(this.config.splash.splashContent,this.domNode,{contentWidth:560,contentMarginTop:20,footerHeight:98}).then(q.hitch(this,function(a){return b.wh.h=a}));a.resolve();return a},_selectItem:function(a){(a=
  this[a])&&a.check&&a.check(!0)},resize:function(){var a=r.getContentBox(this.editorContainer),b=c(".dijitEditorIFrameContainer",this.editorContainer)[0],d;this.editor&&this.editor.header&&(d=r.getContentBox(this.editor.header));b&&a&&d&&r.setStyle(b,"height",a.h-d.h-4+"px")}})});