/*
	Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/


window[esri._dojoScopeName||"dojo"]._xdResourceLoaded(function(_1,_2,_3){return {depends:[["provide","dojox.validate.regexp"],["require","dojo.regexp"]],defineResource:function(_4,_5,_6){if(!_4._hasResource["dojox.validate.regexp"]){_4._hasResource["dojox.validate.regexp"]=true;_4.provide("dojox.validate.regexp");_4.require("dojo.regexp");_4.mixin(_6.validate.regexp,{ipAddress:function(_7){_7=(typeof _7=="object")?_7:{};if(typeof _7.allowDottedDecimal!="boolean"){_7.allowDottedDecimal=true;}if(typeof _7.allowDottedHex!="boolean"){_7.allowDottedHex=true;}if(typeof _7.allowDottedOctal!="boolean"){_7.allowDottedOctal=true;}if(typeof _7.allowDecimal!="boolean"){_7.allowDecimal=true;}if(typeof _7.allowHex!="boolean"){_7.allowHex=true;}if(typeof _7.allowIPv6!="boolean"){_7.allowIPv6=true;}if(typeof _7.allowHybrid!="boolean"){_7.allowHybrid=true;}var _8="((\\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])";var _9="(0[xX]0*[\\da-fA-F]?[\\da-fA-F]\\.){3}0[xX]0*[\\da-fA-F]?[\\da-fA-F]";var _a="(0+[0-3][0-7][0-7]\\.){3}0+[0-3][0-7][0-7]";var _b="(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])";var _c="0[xX]0*[\\da-fA-F]{1,8}";var _d="([\\da-fA-F]{1,4}\\:){7}[\\da-fA-F]{1,4}";var _e="([\\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])";var a=[];if(_7.allowDottedDecimal){a.push(_8);}if(_7.allowDottedHex){a.push(_9);}if(_7.allowDottedOctal){a.push(_a);}if(_7.allowDecimal){a.push(_b);}if(_7.allowHex){a.push(_c);}if(_7.allowIPv6){a.push(_d);}if(_7.allowHybrid){a.push(_e);}var _f="";if(a.length>0){_f="("+a.join("|")+")";}return _f;},host:function(_10){_10=(typeof _10=="object")?_10:{};if(typeof _10.allowIP!="boolean"){_10.allowIP=true;}if(typeof _10.allowLocal!="boolean"){_10.allowLocal=false;}if(typeof _10.allowPort!="boolean"){_10.allowPort=true;}if(typeof _10.allowNamed!="boolean"){_10.allowNamed=false;}var _11="(?:[\\da-zA-Z](?:[-\\da-zA-Z]{0,61}[\\da-zA-Z])?)";var _12="(?:[a-zA-Z](?:[-\\da-zA-Z]{0,6}[\\da-zA-Z])?)";var _13=_10.allowPort?"(\\:\\d+)?":"";var _14="((?:"+_11+"\\.)+"+_12+"\\.?)";if(_10.allowIP){_14+="|"+_6.validate.regexp.ipAddress(_10);}if(_10.allowLocal){_14+="|localhost";}if(_10.allowNamed){_14+="|^[^-][a-zA-Z0-9_-]*";}return "("+_14+")"+_13;},url:function(_15){_15=(typeof _15=="object")?_15:{};if(!("scheme" in _15)){_15.scheme=[true,false];}var _16=_4.regexp.buildGroupRE(_15.scheme,function(q){if(q){return "(https?|ftps?)\\://";}return "";});var _17="(/(?:[^?#\\s/]+/)*(?:[^?#\\s/]+(?:\\?[^?#\\s/]*)?(?:#[A-Za-z][\\w.:-]*)?)?)?";return _16+_6.validate.regexp.host(_15)+_17;},emailAddress:function(_18){_18=(typeof _18=="object")?_18:{};if(typeof _18.allowCruft!="boolean"){_18.allowCruft=false;}_18.allowPort=false;var _19="([!#-'*+\\-\\/-9=?A-Z^-~]+[.])*[!#-'*+\\-\\/-9=?A-Z^-~]+";var _1a=_19+"@"+_6.validate.regexp.host(_18);if(_18.allowCruft){_1a="<?(mailto\\:)?"+_1a+">?";}return _1a;},emailAddressList:function(_1b){_1b=(typeof _1b=="object")?_1b:{};if(typeof _1b.listSeparator!="string"){_1b.listSeparator="\\s;,";}var _1c=_6.validate.regexp.emailAddress(_1b);var _1d="("+_1c+"\\s*["+_1b.listSeparator+"]\\s*)*"+_1c+"\\s*["+_1b.listSeparator+"]?\\s*";return _1d;},numberFormat:function(_1e){_1e=(typeof _1e=="object")?_1e:{};if(typeof _1e.format=="undefined"){_1e.format="###-###-####";}var _1f=function(_20){return _4.regexp.escapeString(_20,"?").replace(/\?/g,"\\d?").replace(/#/g,"\\d");};return _4.regexp.buildGroupRE(_1e.format,_1f);}});_6.validate.regexp.ca={postalCode:function(){return "([A-Z][0-9][A-Z] [0-9][A-Z][0-9])";},province:function(){return "(AB|BC|MB|NB|NL|NS|NT|NU|ON|PE|QC|SK|YT)";}};_6.validate.regexp.us={state:function(_21){_21=(typeof _21=="object")?_21:{};if(typeof _21.allowTerritories!="boolean"){_21.allowTerritories=true;}if(typeof _21.allowMilitary!="boolean"){_21.allowMilitary=true;}var _22="AL|AK|AZ|AR|CA|CO|CT|DE|DC|FL|GA|HI|ID|IL|IN|IA|KS|KY|LA|ME|MD|MA|MI|MN|MS|MO|MT|"+"NE|NV|NH|NJ|NM|NY|NC|ND|OH|OK|OR|PA|RI|SC|SD|TN|TX|UT|VT|VA|WA|WV|WI|WY";var _23="AS|FM|GU|MH|MP|PW|PR|VI";var _24="AA|AE|AP";if(_21.allowTerritories){_22+="|"+_23;}if(_21.allowMilitary){_22+="|"+_24;}return "("+_22+")";}};}}};});