Ë
    :vžj%
  ã                   ó  — d dl Z d dlZd dlZd dlmZ ej
                  j                  ej
                  j                  ej
                  j                  e	«      «      «      Z
i Zdedefd„Zdedefd„Zdedefd„Zdedefd„Zdedefd	„Zy)
é    N)ÚBytesIOÚnameÚreturnc                 óæ   — ddl m} ddlm}  |t        j
                  j                  t        d| «      «      } |t        j                  |j                  | «      j                  d«      «      |¬«      S )zÍ
    Load a schema and evaluate the referenced files.

    Parameters
    ------------
    name : str
      Filename of schema.

    Returns
    ----------
    schema
      Loaded and resolved schema.
    é   )ÚFilePathResolver)ÚresolveÚschemaúutf-8)Úresolver)Ú	resolversr   Úschemasr	   ÚosÚpathÚjoinÚ_pwdÚjsonÚloadsÚgetÚdecode)r   r   r	   r   s       úk/workspace/moltex-experiments/.pixi/envs/default/lib/python3.12/site-packages/trimesh/resources/__init__.pyÚ
get_schemar      sQ   € õ -Ý!ñ  ¤§¡§¡¬T°8¸TÓ BÓC€Há”4—:‘:˜hŸl™l¨4Ó0×7Ñ7¸Ó@ÓAÈHÔUÐUó    c                 ó²   — t        | «      }| j                  d«      rt        j                  |«      }n|j	                  d«      }t        j                  |«      S )a  
    Get a resource from the `trimesh/resources` folder as a decoded string.

    Parameters
    -------------
    name : str
      File path relative to `trimesh/resources/{name}`

    Returns
    -------------
    resource
      File data decoded from JSON.
    z.gzipr   )Ú	get_bytesÚendswithÚgzipÚ
decompressr   r   r   )r   Úraws     r   Úget_jsonr    #   sC   € ô �D‹/€CØ‡}�}�WÔÜ�o‰o˜cÓ"‰à�j‰j˜Ó!ˆÜ�:‰:�c‹?Ðr   c                 ó6   — t        | «      j                  d«      S )zõ
    Get a resource from the `trimesh/resources` folder as a decoded string.

    Parameters
    -------------
    name
      File path relative to `trimesh/resources`

    Returns
    -------------
    resource
      File data as a string.
    r   )r   r   ©r   s    r   Ú
get_stringr#   9   s   € ô �T‹?×!Ñ! 'Ó*Ð*r   c                 ó  — t         j                  | d«      }|�|S t        t        j                  j
                  t        g| j                  d«      ¢­Ž d«      5 }|j                  «       }ddd«       t         | <   |S # 1 sw Y   ŒxY w)zñ
    Get a resource from the `trimesh/resources` folder as binary data.

    Parameters
    -------------
    name
      File path relative to `trimesh/resources`

    Returns
    -------------
    resource
      File data as raw bytes.
    NÚ/Úrb)	Ú_cacher   Úopenr   r   r   r   ÚsplitÚread)r   ÚcachedÚfÚresources       r   r   r   J   sp   € ô �Z‰Z˜˜dÓ#€FØÐØˆô
 
Œb�g‰g�l‰lœ4Ð2 $§*¡*¨S£/Ò2°DÔ	9¸QØ—6‘6“8ˆ÷ 
:ð „Fˆ4�LØ€O÷	 
:Ð	9ús   ÁA<Á<Bc                 ó*   — t        t        | «      «      S )a  
    Get a resource from the `trimesh/resources` folder as a binary stream.

    Parameters
    -------------
    name : str
      File path relative to `trimesh/resources`

    Returns
    -------------
    resource
      File data as a binary stream.
    )r   r   r"   s    r   Ú
get_streamr/   f   s   € ô ”9˜T“?Ó#Ð#r   )r   r   r   Úior   r   Ú
expanduserÚabspathÚdirnameÚ__file__r   r'   ÚstrÚdictr   r    r#   Úbytesr   r/   © r   r   Ú<module>r9      s¨   ðÛ Û Û 	Ý ð 
‡w�w×Ñ˜"Ÿ'™'Ÿ/™/¨"¯'©'¯/©/¸(Ó*CÓDÓE€à	€ðV�Sð V˜Tó Vð.�3ð ˜4ó ð,+�Sð +˜Só +ð"�Cð ˜Eó ð8$�Sð $˜Wô $r   