/*
	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.uuid._base"]],defineResource:function(_4,_5,_6){if(!_4._hasResource["dojox.uuid._base"]){_4._hasResource["dojox.uuid._base"]=true;_4.provide("dojox.uuid._base");_6.uuid.NIL_UUID="00000000-0000-0000-0000-000000000000";_6.uuid.version={UNKNOWN:0,TIME_BASED:1,DCE_SECURITY:2,NAME_BASED_MD5:3,RANDOM:4,NAME_BASED_SHA1:5};_6.uuid.variant={NCS:"0",DCE:"10",MICROSOFT:"110",UNKNOWN:"111"};_6.uuid.assert=function(_7,_8){if(!_7){if(!_8){_8="An assert statement failed.\n"+"The method dojox.uuid.assert() was called with a 'false' value.\n";}throw new Error(_8);}};_6.uuid.generateNilUuid=function(){return _6.uuid.NIL_UUID;};_6.uuid.isValid=function(_9){_9=_9.toString();var _a=(_4.isString(_9)&&(_9.length==36)&&(_9==_9.toLowerCase()));if(_a){var _b=_9.split("-");_a=((_b.length==5)&&(_b[0].length==8)&&(_b[1].length==4)&&(_b[2].length==4)&&(_b[3].length==4)&&(_b[4].length==12));var _c=16;for(var i in _b){var _d=_b[i];var _e=parseInt(_d,_c);_a=_a&&isFinite(_e);}}return _a;};_6.uuid.getVariant=function(_f){if(!_6.uuid._ourVariantLookupTable){var _10=_6.uuid.variant;var _11=[];_11[0]=_10.NCS;_11[1]=_10.NCS;_11[2]=_10.NCS;_11[3]=_10.NCS;_11[4]=_10.NCS;_11[5]=_10.NCS;_11[6]=_10.NCS;_11[7]=_10.NCS;_11[8]=_10.DCE;_11[9]=_10.DCE;_11[10]=_10.DCE;_11[11]=_10.DCE;_11[12]=_10.MICROSOFT;_11[13]=_10.MICROSOFT;_11[14]=_10.UNKNOWN;_11[15]=_10.UNKNOWN;_6.uuid._ourVariantLookupTable=_11;}_f=_f.toString();var _12=_f.charAt(19);var _13=16;var _14=parseInt(_12,_13);_6.uuid.assert((_14>=0)&&(_14<=16));return _6.uuid._ourVariantLookupTable[_14];};_6.uuid.getVersion=function(_15){var _16="dojox.uuid.getVersion() was not passed a DCE Variant UUID.";_6.uuid.assert(_6.uuid.getVariant(_15)==_6.uuid.variant.DCE,_16);_15=_15.toString();var _17=_15.charAt(14);var _18=16;var _19=parseInt(_17,_18);return _19;};_6.uuid.getNode=function(_1a){var _1b="dojox.uuid.getNode() was not passed a TIME_BASED UUID.";_6.uuid.assert(_6.uuid.getVersion(_1a)==_6.uuid.version.TIME_BASED,_1b);_1a=_1a.toString();var _1c=_1a.split("-");var _1d=_1c[4];return _1d;};_6.uuid.getTimestamp=function(_1e,_1f){var _20="dojox.uuid.getTimestamp() was not passed a TIME_BASED UUID.";_6.uuid.assert(_6.uuid.getVersion(_1e)==_6.uuid.version.TIME_BASED,_20);_1e=_1e.toString();if(!_1f){_1f=null;}switch(_1f){case "string":case String:return _6.uuid.getTimestamp(_1e,Date).toUTCString();break;case "hex":var _21=_1e.split("-");var _22=_21[0];var _23=_21[1];var _24=_21[2];_24=_24.slice(1);var _25=_24+_23+_22;_6.uuid.assert(_25.length==15);return _25;break;case null:case "date":case Date:var _26=3394248;var _27=16;var _28=_1e.split("-");var _29=parseInt(_28[0],_27);var _2a=parseInt(_28[1],_27);var _2b=parseInt(_28[2],_27);var _2c=_2b&4095;_2c<<=16;_2c+=_2a;_2c*=4294967296;_2c+=_29;var _2d=_2c/10000;var _2e=60*60;var _2f=_26;var _30=_2f*_2e;var _31=_30*1000;var _32=_2d-_31;var _33=new Date(_32);return _33;break;default:_6.uuid.assert(false,"dojox.uuid.getTimestamp was not passed a valid returnType: "+_1f);break;}};}}};});