+
    ¿Ìjâ  ã                   óŽ   € R t . ROt^ RIt^RIHt ^RIHt ^RIHt  ! R	 R4      t	 ! R
 R4      t
 ! R R4      t ! R R4      tR# )zr
Miscellaneous ID structures used in MSG files that don't fit into any of the
other ID structure classifications.
ÚFolderIDÚGlobalObjectIDÚ	MessageIDÚServerIDN)Ú	constants)ÚBytesReader)ÚfiletimeToDatetimec                   ó¢   a € ] tR t^t o Rt^tV 3R lR ltV 3R lR ltV 3R lR lt]	V 3R lR	 l4       t
]	V 3R
 lR l4       tV 3R ltRtV tR# )r   z2
A Folder ID structure specified in [MS-OXCDATA].
c                ó    <€ V ^8„  d   QhRS[ /# ©é   Údata©Úbytes)ÚformatÚ__classdict__s   "€Úx/home/l0st/web/w4ttz.lol/public_html/toolz/MsgDoxxer/venv/lib/python3.14/site-packages/extract_msg/structures/misc_id.pyÚ__annotate__ÚFolderID.__annotate__   ó   ø€ ÷ Zñ Z™Uñ Zó    c                ó  € Wn         \        P                  P                  P	                  VR ,          4      ^ ,          V n        \        P                  P                  P	                  VR,          R,           4      ^ ,          V n        R# ©:Nr   N:r   é   Ns     N)Ú_FolderID__rawDatar   ÚstÚ
ST_LE_UI16ÚunpackÚ_FolderID__replicaIDÚ
ST_LE_UI64Ú_FolderID__globalCounter©Úselfr   s   &&r   Ú__init__ÚFolderID.__init__   óY   € ØŒÜ$Ÿ<™<×2Ñ2×9Ñ9¸$¸r½(ÓCÀAÕFˆÔä(Ÿ|™|×6Ñ6×=Ñ=¸dÀ3½iÈ+Õ>UÓVÐWXÕYˆÖr   c                ó    <€ V ^8„  d   QhRS[ /# ©r   Úreturnr   )r   r   s   "€r   r   r   #   ó   ø€ ÷ ñ ™5ñ r   c                ó"   € V P                  4       # ©N©ÚtoBytes©r"   s   &r   Ú	__bytes__ÚFolderID.__bytes__#   ó   € Ø�|‰|‹~Ðr   c                ó    <€ V ^8„  d   QhRS[ /# r'   r   )r   r   s   "€r   r   r   &   ó   ø€ ÷ ñ ™ñ r   c                ó   € V P                   # r+   )r   r.   s   &r   r-   ÚFolderID.toBytes&   ó   € Ø�~‰~Ðr   c                ó    <€ V ^8„  d   QhRS[ /# r'   ©Úint)r   r   s   "€r   r   r   *   ó   ø€ ÷ $ñ $™sñ $r   c                ó   € V P                   # ©zE
An unsigned integer identifying the folder within its Store object.
)r    r.   s   &r   ÚglobalCounterÚFolderID.globalCounter)   ó   € ð
 ×#Ñ#Ð#r   c                ó    <€ V ^8„  d   QhRS[ /# r'   r8   )r   r   s   "€r   r   r   1   ó   ø€ ÷  ñ  ™3ñ  r   c                ó   € V P                   # ©z1
An unsigned integer identifying a Store object.
)r   r.   s   &r   Ú	replicaIDÚFolderID.replicaID0   ó   € ð
 ×ÑÐr   c                ó&   <€ V ^8„  d   Qh/ S[ ;R&   # ©r   Ú__SIZE__r8   )r   r   s   "€r   r   r      s   ø‡ ‚ ñ
 Ñò r   ©Ú__globalCounterÚ	__rawDataÚ__replicaIDN)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__rI   r#   r/   r-   Úpropertyr=   rD   Ú__annotate_func__Ú__static_attributes__Ú__classdictcell__©r   s   @r   r   r      s`   ø‡ € ñð €H÷Zð Z÷ð ÷ð ð ÷$ó ð$ð ÷ ó ð ÷7 ƒ r   c                   ó  a € ] tR t^9t o RtV 3R lR ltV 3R lR ltV 3R lR lt]V 3R lR	 l4       t	]V 3R
 lR l4       t
]V 3R lR l4       t]V 3R lR l4       t]V 3R lR l4       t]V 3R lR l4       tRtV tR# )r   z:
A GlobalObjectID structure, as specified in [MS-OXOCAL].
c                ó    <€ V ^8„  d   QhRS[ /# r   r   )r   r   s   "€r   r   ÚGlobalObjectID.__annotate__>   s   ø€ ÷ (ñ (™Uñ (r   c                óT  € Wn         \        V4      pR pRpVP                  W44      V n        VP	                  ^4      V n        VP	                  ^4      V n        \        P                  P                  P                  V P
                  V P                  ,           4      ^ ,          V n        VP                  4       V n        VP                  4       V n        \        VP!                  4       4      V n        VP%                  ^R4       VP'                  4       pVP	                  V4      V n        R# )s      ‚ à tÅ·‚àz>Byte Array ID did not match for GlobalObjectID (got {actual}).zReserved was not set to null.N)Ú_GlobalObjectID__rawDatar   Ú
assertReadÚ_GlobalObjectID__byteArrayIDÚreadÚ_GlobalObjectID__yhÚ_GlobalObjectID__ylr   r   Ú
ST_BE_UI16r   Ú_GlobalObjectID__yearÚreadUnsignedByteÚ_GlobalObjectID__monthÚ_GlobalObjectID__dayr   ÚreadUnsignedLongÚ_GlobalObjectID__creationTimeÚ
assertNullÚreadUnsignedIntÚ_GlobalObjectID__data)r"   r   ÚreaderÚexpectedBytesÚerrorMsgÚsizes   &&    r   r#   ÚGlobalObjectID.__init__>   sß   € ØŒÜ˜TÓ"ˆØ[ˆØSˆØ#×.Ñ.¨}ÓGˆÔØ—K‘K “NˆŒ	Ø—K‘K “NˆŒ	Ü—l‘l×-Ñ-×4Ñ4°T·Y±YÀÇÁÕ5JÓKÈAÕNˆŒØ×.Ñ.Ó0ˆŒØ×,Ñ,Ó.ˆŒ
Ü0°×1HÑ1HÓ1JÓKˆÔØ×Ñ˜!Ð<Ô=Ø×%Ñ%Ó'ˆØ—k‘k $Ó'ˆŽr   c                ó    <€ V ^8„  d   QhRS[ /# r'   r   )r   r   s   "€r   r   rZ   N   r)   r   c                ó"   € V P                  4       # r+   r,   r.   s   &r   r/   ÚGlobalObjectID.__bytes__N   r1   r   c                ó    <€ V ^8„  d   QhRS[ /# r'   r   )r   r   s   "€r   r   rZ   Q   r3   r   c                ó   € V P                   # r+   )r\   r.   s   &r   r-   ÚGlobalObjectID.toBytesQ   r6   r   c                ó    <€ V ^8„  d   QhRS[ /# r'   r   )r   r   s   "€r   r   rZ   U   s   ø€ ÷ "ñ "™Uñ "r   c                ó   € V P                   # )zM
An array of 16 bytes identifying the bytes this BLOB as a Global Object
ID.
)r^   r.   s   &r   ÚbyteArrayIDÚGlobalObjectID.byteArrayIDT   s   € ð ×!Ñ!Ð!r   c                ó4   <€ V ^8„  d   QhRS[ P                   /# r'   )Údatetime)r   r   s   "€r   r   rZ   ]   s   ø€ ÷ #ñ #™h×/Ñ/ñ #r   c                ó   € V P                   # )z=
The date and time when this Global Object ID was generated.
)rh   r.   s   &r   ÚcreationTimeÚGlobalObjectID.creationTime\   s   € ð
 ×"Ñ"Ð"r   c                ó    <€ V ^8„  d   QhRS[ /# r'   r   )r   r   s   "€r   r   rZ   d   s   ø€ ÷ ñ ‘eñ r   c                ó   € V P                   # )zu
An array of bytes that ensures the uniqueness of the Global Object ID
amoung all Calendar objects in all mailboxes.
)rk   r.   s   &r   r   ÚGlobalObjectID.datac   ó   € ð �{‰{Ðr   c                ó    <€ V ^8„  d   QhRS[ /# r'   r8   )r   r   s   "€r   r   rZ   l   s   ø€ ÷ ñ ‘Sñ r   c                ó   € V P                   # )zs
The day from the PidLidExceptionReplaceTime property if the object
represents an exception. Otherwise, this is 0.
)rf   r.   s   &r   ÚdayÚGlobalObjectID.dayk   s   € ð �z‰zÐr   c                ó    <€ V ^8„  d   QhRS[ /# r'   r8   )r   r   s   "€r   r   rZ   t   s   ø€ ÷ ñ ‘sñ r   c                ó   € V P                   # )zu
The month from the PidLidExceptionReplaceTime property if the object
represents an exception. Otherwise, this is 0.
)re   r.   s   &r   ÚmonthÚGlobalObjectID.months   s   € ð �|‰|Ðr   c                ó    <€ V ^8„  d   QhRS[ /# r'   r8   )r   r   s   "€r   r   rZ   |   s   ø€ ÷ ñ ‘cñ r   c                ó   € V P                   # )zt
The year from the PidLidExceptionReplaceTime property if the object
represents an exception. Otherwise, this is 0.
)rc   r.   s   &r   ÚyearÚGlobalObjectID.year{   rƒ   r   )	Ú__byteArrayIDÚ__creationTimeÚ__dataÚ__dayÚ__monthrL   Ú__yearÚ__yhÚ__ylN)rN   rO   rP   rQ   rR   r#   r/   r-   rS   ry   r~   r   r†   rŠ   rŽ   rU   rV   rW   s   @r   r   r   9   s    ø‡ € ñ÷(ð (÷ ð ÷ð ð ÷"ó ð"ð ÷#ó ð#ð ÷ó ðð ÷ó ðð ÷ó ðð ÷ó ör   c                   ó¾   a € ] tR t^…t o Rt^tV 3R lR ltV 3R lR ltV 3R lR lt]	V 3R lR	 l4       t
]	V 3R
 lR l4       t]	V 3R lR l4       tV 3R ltRtV tR# )r   z5
A Message ID structure, as defined in [MS-OXCDATA].
c                ó    <€ V ^8„  d   QhRS[ /# r   r   )r   r   s   "€r   r   ÚMessageID.__annotate__Œ   r   r   c                ó  € Wn         \        P                  P                  P	                  VR ,          4      ^ ,          V n        \        P                  P                  P	                  VR,          R,           4      ^ ,          V n        R# r   )Ú_MessageID__rawDatar   r   r   r   Ú_MessageID__replicaIDr   Ú_MessageID__globalCounterr!   s   &&r   r#   ÚMessageID.__init__Œ   r%   r   c                ó    <€ V ^8„  d   QhRS[ /# r'   r   )r   r   s   "€r   r   rš   ’   r)   r   c                ó"   € V P                  4       # r+   r,   r.   s   &r   r/   ÚMessageID.__bytes__’   r1   r   c                ó    <€ V ^8„  d   QhRS[ /# r'   r   )r   r   s   "€r   r   rš   •   r3   r   c                ó   € V P                   # r+   )rœ   r.   s   &r   r-   ÚMessageID.toBytes•   r6   r   c                ó    <€ V ^8„  d   QhRS[ /# r'   r8   )r   r   s   "€r   r   rš   ™   r:   r   c                ó   € V P                   # r<   )rž   r.   s   &r   r=   ÚMessageID.globalCounter˜   r?   r   c                ó    <€ V ^8„  d   QhRS[ /# r'   )Úbool)r   r   s   "€r   r   rš       s   ø€ ÷ Cñ C™$ñ Cr   c                óN   € V P                   ^ 8H  ;'       d    V P                  ^ 8H  # )z6
Tells if the object pointed to is actually a folder.
)rž   r�   r.   s   &r   ÚisFolderÚMessageID.isFolderŸ   s(   € ð
 ×#Ñ# qÑ(×BÐB¨T×-=Ñ-=ÀÑ-BÐBr   c                ó    <€ V ^8„  d   QhRS[ /# r'   r8   )r   r   s   "€r   r   rš   §   rA   r   c                ó   € V P                   # rC   )r�   r.   s   &r   rD   ÚMessageID.replicaID¦   rF   r   c                ó&   <€ V ^8„  d   Qh/ S[ ;R&   # rH   r8   )r   r   s   "€r   r   rš   …   s   ø‡ ‚ ñ
 Ñò r   rJ   N)rN   rO   rP   rQ   rR   rI   r#   r/   r-   rS   r=   r¬   rD   rT   rU   rV   rW   s   @r   r   r   …   sw   ø‡ € ñð €H÷Zð Z÷ð ÷ð ð ÷$ó ð$ð ÷Có ðCð ÷ ó ð ÷E ƒ r   c                   ó®   a € ] tR t^¯t o RtV 3R lR ltV 3R lR ltV 3R lR lt]V 3R lR	 l4       t	]V 3R
 lR l4       t
]V 3R lR l4       tRtV tR# )r   z$
Class representing a PtypServerId.
c                ó    <€ V ^8„  d   QhRS[ /# r   r   )r   r   s   "€r   r   ÚServerID.__annotate__³   s   ø€ ÷ Iñ I™Uñ Ir   c                ó  € V^ ,          ^8w  d   \        R4      hWn        \        VR,          4      V n        \	        VR,          4      V n        \        P                  P                  P                  VR,          4      ^ ,          V n
        R# )zf
:param data: The data to use to create the ServerID.

:raises TypeError: The data is not a ServerID.
zNot a standard ServerID.:é   é	   N:r·   é   N:r¸   é   NN)Ú	TypeErrorÚ_ServerID__rawDatar   Ú_ServerID__folderIDr   Ú_ServerID__messageIDr   r   Ú
ST_LE_UI32r   Ú_ServerID__instancer!   s   &&r   r#   ÚServerID.__init__³   sf   € ð ��7�aŒ<ÜÐ6Ó7Ð7ØŒÜ" 4¨¥9Ó-ˆŒÜ$ T¨$¥ZÓ0ˆÔÜ#Ÿ,™,×1Ñ1×8Ñ8¸¸e½ÓEÀaÕHˆŽr   c                ó    <€ V ^8„  d   QhRS[ /# r'   r   )r   r   s   "€r   r   r´   Â   r)   r   c                ó"   € V P                  4       # r+   r,   r.   s   &r   r/   ÚServerID.__bytes__Â   r1   r   c                ó    <€ V ^8„  d   QhRS[ /# r'   r   )r   r   s   "€r   r   r´   Å   r3   r   c                ó   € V P                   # r+   )r»   r.   s   &r   r-   ÚServerID.toBytesÅ   r6   r   c                ó    <€ V ^8„  d   QhRS[ /# r'   )r   )r   r   s   "€r   r   r´   É   s   ø€ ÷ ñ ™(ñ r   c                ó   € V P                   # )z$
The folder the message will be in.
)r¼   r.   s   &r   ÚfolderIDÚServerID.folderIDÈ   s   € ð
 �‰Ðr   c                ó    <€ V ^8„  d   QhRS[ /# r'   r8   )r   r   s   "€r   r   r´   Ð   s   ø€ ÷ ñ ™#ñ r   c                ó   € V P                   # )zx
Instance number that is only used in multivalue properties for searching
for a specific ServerID. Will otherwise be 0.
)r¿   r.   s   &r   ÚinstanceÚServerID.instanceÏ   s   € ð �‰Ðr   c                ó    <€ V ^8„  d   QhRS[ /# r'   )r   )r   r   s   "€r   r   r´   Ø   s   ø€ ÷  ñ  ™9ñ  r   c                ó   € V P                   # )z¤
A MessageID identifying a message in a folder identified by the folderID
instance of this object. If the object pointed to is a folder, both
properties will be 0.
)r½   r.   s   &r   Ú	messageIDÚServerID.messageID×   s   € ð ×ÑÐr   )Ú
__folderIDÚ
__instanceÚ__messageIDrL   N)rN   rO   rP   rQ   rR   r#   r/   r-   rS   rÉ   rÍ   rÑ   rU   rV   rW   s   @r   r   r   ¯   sf   ø‡ € ñ÷Ið I÷ð ÷ð ð ÷ó ðð ÷ó ðð ÷ ó ö r   )r   r   r   r   )rR   Ú__all__r|   Ú r   Ú_helpersr   Úutilsr   r   r   r   r   © r   r   Ú<module>rÛ      sL   ðñò€ó å Ý !Ý &÷ ñ  ÷FHñ H÷X& ñ & ÷T/ ó / r   