
    "h                     B    d Z 	 eZd Zd Z e        y# e$ r eZY w xY w)a!  Disallowed deserialization of 'arrow.py_extension_type':
storage_type = {storage_type}
serialized = {serialized}
pickle disassembly:
{pickle_disassembly}

Reading of untrusted Parquet or Feather files with a PyExtensionType column
allows arbitrary code execution.
If you trust this file, you can enable reading the extension type by one of:

- upgrading to pyarrow >= 14.0.1, and call `pa.PyExtensionType.set_auto_load(True)`
- disable this error by running `import pyarrow_hotfix; pyarrow_hotfix.uninstall()`

We strongly recommend updating your Parquet/Feather files to use extension types
derived from `pyarrow.ExtensionType` instead, and register this type explicitly.
See https://arrow.apache.org/docs/dev/python/extending_types.html#defining-extension-types-user-defined-types
for more details.
c                  
   dd l } 	 dd l}t        |d      sy t	        |dd      ry  G d d|j
                        }t        |d      r?|j                  d       |j                   ||j                         d             d
|_        y t        |j                  d	      rG|j                  j                          | j                  |j                  j                         d
|_        y |j                  `d
|_        y # t        $ r Y y w xY w)N    ExtensionType_hotfix_installedFc                   "    e Zd Zd Zed        Zy)'install.<locals>.ForbiddenExtensionTypec                      y)N     )selfs    T/var/www/html/sandstorm/venv/lib/python3.12/site-packages/pyarrow_hotfix/__init__.py__arrow_ext_serialize__z?install.<locals>.ForbiddenExtensionType.__arrow_ext_serialize__/   s    r	   c                     dd l }dd l}|j                         }|j                  ||       t	        t
        j                  |||j                                     )Nr   )storage_type
serializedpickle_disassembly)iopickletoolsStringIOdisRuntimeError
_ERROR_MSGformatgetvalue)clsr   r   r   r   outs         r   __arrow_ext_deserialize__zAinstall.<locals>.ForbiddenExtensionType.__arrow_ext_deserialize__2   sP    ++-COOJ,!!!-)'*||~ "  r	   N)__name__
__module____qualname__r   classmethodr   r
   r	   r   ForbiddenExtensionTyper   .   s    	 
	 
	r	   r!   unregister_extension_typearrow.py_extension_type_unregister_py_extension_typeT)atexitpyarrow_import_errorhasattrgetattrr   r"   register_extension_typenulllibr$   
unregister_extension_types_initializerr   )r%   par!   s      r   installr0      s    
 2'r&.!1!1 $ r./
$$%>?
""#9"''):S$U 	V  B 
8	9
,,."&&>>?
  B FF/BU  s   C6 6	DDc                  .   dd l } 	 dd l}t        |d      sy t	        |dd      sy t        |d      r3|j                  d       |j                  j                          d|_        y t        |j                  d      rG|j                  j                          | j                  |j                  j                         d|_        y t        |j                  d      r)|j                  j                         |j                  _        d|_        y # t        $ r Y y w xY w)	Nr   r   r   Fr"   r#   _register_py_extension_type_ExtensionTypesInitializer)r%   r&   r'   r(   r)   r"   r,   r2   registerr$   r3   r.   r   )r%   r/   s     r   	uninstallr5   P   s    
 2'2*E2r./
$$%>?
**, !B 
6	7
**,<<=
 !B	 
5	6.0ff.O.O.Q+ B/  s   D 	DDN)r   ModuleNotFoundErrorr'   	NameErrorImportErrorr0   r5   r
   r	   r   <module>r9      s?   
& 'M
. b!< 	g   M s    