Qfs$ ddlZddlZddlmZmZdZej dvrdxZZnddlZejZ e dk(Ze dk(ZdZ dZ erd Z d Z gd \Z ZZZeZeZeeGd d ZGddZdZdZdZdZdZdZdZdZdZdZ dZ!dZ" ddl#Z#e$e#ddZ%e$e#ddZ&e#jNZ(dZ*dZ+d Z,d!Z-ereegZ.n4ej d"k(reee gZ.nej d#k(rgZ.n ere gZ.neeee egZ.ej^d$k(re+ge.zZ0nej^d%k(re,ge.zZ0ne.Z0da1d&Z2da3d1d'Z4d(Z5d)Z6d*Z7d+Z8ed,Z9ed-Z:ed.Z;ed/Z)win32darwin emscriptenwasiFAIXLinux:.T)zreserved for NCS compatibilityzspecified in RFC 4122z$reserved for Microsoft compatibilityzreserved for future definitionceZdZdZdZdZy)SafeUUIDrN)__name__ __module__ __qualname__safeunsafeunknown+/opt/alt/python312/lib64/python3.12/uuid.pyrrNs D FGrrcpeZdZ dZ d ej ddZdZdZdZ dZ d Z d Z d Z d Zd ZdZdZdZedZedZedZedZedZedZedZedZedZedZedZedZedZ edZ!edZ"y)!UUID)intis_safe __weakref__N)rc> |||||gjddk7r td|h|jddjdd}|jdjdd}t |dk7r t d t |d }|9t |d k7r t d |d dd |dd d z|ddd z|ddz}|.t |d k7r t dt j|}|t |dk7r t d|\}} } } } } d|cxkrdkst dt dd| cxkrdkst dt dd| cxkrdkst dt dd| cxkrdkst dt dd| cxkrdkst dt dd| cxkrdkst dt d| dz| z}|dz| d zz| d!zz|d"zz| z}|%d|cxkrd#d$zkst d%t d%|9d#|cxkrdkst d&t d&|d'z}|d(z}|d)z}||d*zz}tj|d+|tj|d,|y)-NzGone of the hex, bytes, bytes_le, fields, or int arguments must be givenzurn:zuuid:z{}- z$badly formed hexadecimal UUID stringz bytes_le is not a 16-char stringrzbytes is not a 16-char stringzfields is not a 6-tuplerlz*field 1 out of range (need a 32-bit value)iz*field 2 out of range (need a 16-bit value)z*field 3 out of range (need a 16-bit value)z*field 4 out of range (need an 8-bit value)z*field 5 out of range (need an 8-bit value)z*field 6 out of range (need a 48-bit value)`P@0z*int is out of range (need a 128-bit value)zillegal version numberl lLrr) count TypeErrorreplacestriplen ValueErrorint_ from_bytesobject __setattr__)selfhexbytesbytes_lefieldsrversionrtime_lowtime_midtime_hi_versionclock_seq_hi_variant clock_seq_lownode clock_seqs r__init__z UUID.__init__sH : &# . 4 4T :a ?=> > ?++fb)11'2>C))D/))#r2C3x2~ !GHHsB-C  8}" !CDDcg2g&#c"*)==c#bj)*,4QRL9E  5zR !@AA//%(C  6{a !:;;:@ 8Xx !=$(5( !MNN) !MNN(5( !MNN) !MNN/%/ !MNN0 !MNN,3t3 !MNN4 !MNN ,, !MNN- !MNN$u$ !MNN% !MNN-2mCINx2~6#r)+.72o?AEFC ?$af$ !MNN% !MNN  $1$ !9::% !9:: ? "C < C ? "C 7b= C4,4G4rcd|ji}|jtjk7r|jj|d<|SNrr)rrrrvalue)r=ds r __getstate__zUUID.__getstate__s< DHH  <<8++ + <<--AiLrctj|d|dtj|dd|vrt|dytjyrL)r;r<rr)r=states r __setstate__zUUID.__setstate__sQ4e 54'50$E)$45 H6>6F6F Hrc`t|tr|j|jk(StSN isinstancerrNotImplementedr=others r__eq__z UUID.__eq__% eT "88uyy( (rc`t|tr|j|jkStSrTrUrXs r__lt__z UUID.__lt__% eT "88eii' 'rc`t|tr|j|jkDStSrTrUrXs r__gt__z UUID.__gt__r^rc`t|tr|j|jkStSrTrUrXs r__le__z UUID.__le__r[rc`t|tr|j|jk\StSrTrUrXs r__ge__z UUID.__ge__r[rc,t|jSrT)hashrr=s r__hash__z UUID.__hash__ sDHH~rc|jSrTrrgs r__int__z UUID.__int__s xxrcL|jjdt|dS)N()) __class__rstrrgs r__repr__z UUID.__repr__s>>22CI>>rctd)NzUUID objects are immutable)r4)r=namerMs rr<zUUID.__setattr__s455rc ^d|jz}|ddd|ddd|ddd|ddd|dd S)N%032xr'r! r#rj)r=r>s r__str__z UUID.__str__sE  GS2YBr C2JBCB Brc8|jjdS)Nr#)rto_bytesrgs rr?z UUID.bytessxx  $$rcZ|j}|ddd|dddz|dddz|ddzS)Nr$rr%r&r'r?)r=r?s rr@z UUID.bytes_le!sK cg2gs3rz!22U3s2:5FFab  rc|j|j|j|j|j|j fSrT)rCrDrErFrGrHrgs rrAz UUID.fields's: t}}d.B.B))4+=+=tyyJ Jrc |jdz S)Nr+rjrgs rrCz UUID.time_low,sxx2~rc&|jdz dzS)Nr,rjrgs rrDz UUID.time_mid0B&((rc&|jdz dzS)Nr-rrjrgs rrEzUUID.time_hi_version4rrc&|jdz dzS)N8rjrgs rrFzUUID.clock_seq_hi_variant8B$&&rc&|jdz dzS)Nr.rrjrgs rrGzUUID.clock_seq_low<rrc`|jdzdz|jdzz|jzS)Nr.r")rErDrCrgs rtimez UUID.time@s7&&/B6"$&(, 6 7rc@|jdzdz|jzS)N?r')rFrGrgs rrIzUUID.clock_seqEs(++d2q8""# $rc |jdzS)Nlrjrgs rrHz UUID.nodeJsxx.((rc d|jzS)Nrurjrgs rr>zUUID.hexNs!!rcdt|zS)Nz urn:uuid:)rprgs rurnzUUID.urnRsSY&&rc|jdzstS|jdzstS|jdzstStS)Nr1ll)r RESERVED_NCSRFC_4122RESERVED_MICROSOFTRESERVED_FUTURErgs rvariantz UUID.variantVs=xx<( \*O\*% %" "rc`|jtk(rt|jdz dzSy)Nr2)rrrrgs rrBz UUID.versionas- <<8 #B#-. . $r)NNNNNN)#rrr __slots__rrrJrOrRrZr]r`rbrdrhrkrqr<rxpropertyr?r@rArCrDrErFrGrrIrHr>rrrBrrrrrUs1f2ICG)-T5"*"2"2T5lH    ?6B %% JJ))))''''77$$))""''##//rrcNddl}ddl}ddl}ddl} |jj d|j j|j}|jddg|j||jj|}|yt|j}d|d<|dk7r|g|}n|f}|j||j|j| } | sy| j!\} } |j#| S#t$|j&f$rYywxYw) NrPATHz/sbinz /usr/sbin)pathCLC_ALL)r )stdoutstderrenv)ioosshutil subprocessenvirongetdefpathsplitpathsepextendwhichjoindictPopenPIPEDEVNULL communicateBytesIOOSErrorSubprocessError) commandargsrrrr path_dirs executablerprocrrs r_get_command_stdoutrhs%%JJNN62::6<z_parse_mac..s"9541D &Q&&5s#%rc3@K|]}|jddyw)r0N)rjustrs rrz_parse_mac..s@%$$**Q-%sc38K|]}t|dk(yw)rNrrs rrz_parse_mac..s4ed3t9>esr#)rrr7_MAC_OMITS_LEADING_ZEROESallrrr8)rpartshexstrs r _parse_macrs JJz "E 5zQ 9599 @%@@4e44 %62 s< B BBc| t||}|y|jjj} |j |}d}|D]H}|jj} ||} t| } | 5t| r| cS|G| }J|S#t $rYywxYw#t $rYgwxYwrT) rreadlinerrindexr8rrr) rrheadingrr column_indexrrrrrs r_find_mac_under_headingrs !$ /F ~ '')//1H~~g. O ##% &D ;   J  "!O '    s#B 5B/ B,+B,/ B;:B;cB d}dD]}td||d}|s|cSy)N)shwaddrsethersaddress:slladdr)r z-az-avifconfigc |dzSNr/rrs rz#_ifconfig_getnode..s1Q3rr)rrrs r_ifconfig_getnoders1?. s!A#rrrs r _ip_getnoder s"9 v  NC  rcl ddl}ddl}t|dsy |j|j }t dd|j|gd}|r|St dd|j|gd}|r|St dd|jd|zgd}|r|Sy#t $rYywxYw) Nr gethostbynamearpz-ancy)Nrrrs rrz_arp_getnode..sQSrc |dzSrrrs rrz_arp_getnode..!s QRSTQTrz(%s)c |dzS)Nrrrs rrz_arp_getnode..'sacr)rsockethasattrr gethostnamerrfsencode)rrip_addrrs r _arp_getnoders: 6? +&&v'9'9';< !  G0D/E| TC   !  G0D/E} UC   !  FW.0srrrrr_lanscan_getnoder-s> !)UWI{ KKrc tdddS)Nnetstatz-iansAddress)rrrr_netstat_getnoder2s> "9fj AArc tSrT_windll_getnoderrr_ipconfig_getnoder 7;  rc tSrTrrrr_netbios_getnoder <r rgenerate_time_safe UuidCreatecyrTrrrr_load_system_functionsrOsHrcX tr#t\}}t|jSy)Nr|)_generate_time_saferrH) uuid_time_s r _unix_getnoderSs*L*, 1)$)))rcR tr t}t|jSy)N)r@) _UuidCreaterrH) uuid_bytess rrrYs%O ] Z(---rc4 ddl}|jddzS)Nrr.l)random getrandbits)rs r_random_getnoder_s    b !W --rrrposixntc ttSttgzD]*} |atdtcxkr dks"tcS,y#Y2xYw)Nrr*)_node_GETTERSr)getters rgetnoder#sZ  o.. HE  A$:'$:L%; /  s A  Ac t0||cxur)nn&t\}} t|}t ||Sddl}|j }|dzdz}t|tkr tdz}|a|ddl}|jd}|dz} |dz d z} |d z d z} |d z} |d z dz} | t}t | | | | | |fdS#t$rtj}YwxYw)N)r?rrdl@'Hw r/lr"rr.rrr'r)rArB) rrr8rrrtime_ns_last_timestamprrr#)rHrIrsafely_generatedrr nanoseconds timestamprrCrDrErGrFs ruuid1r,s&<&49+D&9&;# # '/0G)W55,,.Ks"%77I"yO'C#a' O&&r* :%HR6)H B&0O$M%Nd2 |y (O,mTCLM OO/ '&&G 's CC"!C"c t|tr t|d}ddlm}||j|zdj }t |dddS) Nutf-8r)md5F)usedforsecurityr#r$r?rB)rVrpr?hashlibr/digestr) namespacersr/r3s ruuid3r5sXK$T7# $ fh  fSbk1 --rcD ttjddS)Nr#rr1)rrurandomrrruuid4r8s! bjjna 00rc t|tr t|d}ddlm}||j|zj }t |dddS)Nr.r)sha1r#r%r1)rVrpr?r2r:r3r)r4rsr:rfs ruuid5r;sMM$T7#  $& ' . . 0D d3Bi ++rch ttttd}d}tt t td}ddl}|jd}|jdd|jd d |jd d d|jddd|j}||j}|j}|j}|j|vrJ|r|s|j!d|jd||vr||n t#|}t%|||yt%|y)N)r,r5r8r;)r5r;)z@dnsz@urlz@oidz@x500rz2Generates a uuid using the selected uuid function.) descriptionz-uz--uuidr8zLThe function to use to generate the uuid. By default uuid4 function is used.)choicesdefaulthelpz-nz --namespacezThe namespace is a UUID, or '@ns' where 'ns' is a well-known predefined UUID addressed by namespace name. Such as @dns, @url, @oid, and @x500. Only required for uuid3/uuid5 functions.)r@z-Nz--namezVThe name used as part of generating the uuid. Only required for uuid3/uuid5 functions.zIncorrect number of arguments. zO requires a namespace and a name. Run 'python -m uuid -h' for more information.)r,r5r8r; NAMESPACE_DNS NAMESPACE_URL NAMESPACE_OIDNAMESPACE_X500argparseArgumentParser add_argumentkeys parse_argsuuidr4rserrorrprint) uuid_funcsuuid_namespace_funcs namespacesrEparserr uuid_funcr4rss rmainrRsP. J . J  $ $H%JF h 0A7=> mCD  hCD    D499%II 99D yy(( LL199+@@  .7*-DJy)$y/  i 4() ikrz$6ba7b810-9dad-11d1-80b4-00c04fd430c8z$6ba7b811-9dad-11d1-80b4-00c04fd430c8z$6ba7b812-9dad-11d1-80b4-00c04fd430c8z$6ba7b814-9dad-11d1-80b4-00c04fd430c8__main__)NN)>rsysenumrr __author__platform_AIX_LINUXsystem_platform_systemrrrrrrrr9r?bytes_rrrrrrrrrrrrr r _uuidgetattrrrhas_uuid_generate_time_safe_has_uuid_generate_time_safe ImportErrorrrrr _OS_GETTERSrsr!r r#r(r,r5r8r;rRrArBrCrDrrrrrcsj,\ #+ <<<<D6&x(5(D7*F  !J $?N; h*O  d P/P/f\! #F8!L8L B   (!%)=tD%t4K#(#D#D I* . .,  12K\\X$l4DEK\\WK #$K$k<#%57K77g,HWW_ ;.HH O,$OL .1,.f;< ;< ;< <= zFa( EK#' (s!$E?? FF