ó
    |ñ:i½  ã                  ó¸   • S SK Jr  S SKrS SKrS SKJr  SSKJr  SSK	J
r
  SSKJr  SSKJr  SS	KJr  SS
KJr  \R&                  (       a  SSKJr   " S S\5      rg)é    )ÚannotationsN)Ú	timedeltaé   )ÚAppGroup)Úcurrent_app)Úsend_from_directory)Ú	Blueprint)ÚBlueprintSetupState)Ú	_sentinel)ÚResponsec                  óœ   ^ • \ rS rSrSSSSSSS\4                     SU 4S jjjrS	S jrS
S jr S       SS jjrSr	U =r
$ )r	   é   Nc                óŠ   >• [         TU ]  UUUUUUUUU	U
5
        [        5       U l        U R                  U R                  l        g )N)ÚsuperÚ__init__r   ÚcliÚname)Úselfr   Úimport_nameÚstatic_folderÚstatic_url_pathÚtemplate_folderÚ
url_prefixÚ	subdomainÚurl_defaultsÚ	root_pathÚ	cli_groupÚ	__class__s              €ÚS/srv/projetos/modelo_ml_acdoc/venv/lib/python3.13/site-packages/flask/blueprints.pyr   ÚBlueprint.__init__   sL   ø€ ô 	‰ÑØØØØØØØØØØô	
ô" “:ˆŒð Ÿ	™	ˆ�‰�ó    c                ó�   • [         R                  S   nUc  g[        U[        5      (       a  [	        UR                  5       5      $ U$ )a  Used by :func:`send_file` to determine the ``max_age`` cache
value for a given file path if it wasn't passed.

By default, this returns :data:`SEND_FILE_MAX_AGE_DEFAULT` from
the configuration of :data:`~flask.current_app`. This defaults
to ``None``, which tells the browser to use conditional requests
instead of a timed cache, which is usually preferable.

Note this is a duplicate of the same method in the Flask
class.

.. versionchanged:: 2.0
    The default configuration is ``None`` instead of 12 hours.

.. versionadded:: 0.9
ÚSEND_FILE_MAX_AGE_DEFAULTN)r   ÚconfigÚ
isinstancer   ÚintÚtotal_seconds)r   ÚfilenameÚvalues      r   Úget_send_file_max_ageÚBlueprint.get_send_file_max_age7   sC   € ô" ×"Ñ"Ð#>Ñ?ˆà‰=Øä�eœY×'Ñ'Ü�u×*Ñ*Ó,Ó-Ð-àˆr!   c                ó¶   • U R                   (       d  [        S5      eU R                  U5      n[        [        R
                  " [        U R                  5      XS9$ )a	  The view function used to serve files from
:attr:`static_folder`. A route is automatically registered for
this view at :attr:`static_url_path` if :attr:`static_folder` is
set.

Note this is a duplicate of the same method in the Flask
class.

.. versionadded:: 0.5

z2'static_folder' must be set to serve static_files.)Úmax_age)Úhas_static_folderÚRuntimeErrorr*   r   ÚtÚcastÚstrr   )r   r(   r-   s      r   Úsend_static_fileÚBlueprint.send_static_fileR   sN   € ð ×%×%ÜÐSÓTÐTð ×,Ñ,¨XÓ6ˆÜ"Ü�FŠF”3˜×*Ñ*Ó+¨Xñ
ð 	
r!   c                ó®   • US;  a  [        S5      e[        R                  R                  U R                  U5      nUS:X  a  [        XB5      $ [        XBUS9$ )a  Open a resource file relative to :attr:`root_path` for reading. The
blueprint-relative equivalent of the app's :meth:`~.Flask.open_resource`
method.

:param resource: Path to the resource relative to :attr:`root_path`.
:param mode: Open the file in this mode. Only reading is supported,
    valid values are ``"r"`` (or ``"rt"``) and ``"rb"``.
:param encoding: Open the file with this encoding when opening in text
    mode. This is ignored when opening in binary mode.

.. versionchanged:: 3.1
    Added the ``encoding`` parameter.
>   ÚrÚrbÚrtz)Resources can only be opened for reading.r7   )Úencoding)Ú
ValueErrorÚosÚpathÚjoinr   Úopen)r   ÚresourceÚmoder9   r<   s        r   Úopen_resourceÚBlueprint.open_resourceh   sP   € ð  Ð(Ó(ÜÐHÓIÐIä�w‰w�|‰|˜DŸN™N¨HÓ5ˆà�4‹<Ü˜Ó#Ð#ä�D¨Ñ2Ð2r!   )r   )r   r2   r   r2   r   ústr | os.PathLike[str] | Noner   ú
str | Noner   rC   r   rD   r   rD   r   zdict[str, t.Any] | Noner   rD   r   rD   ÚreturnÚNone)r(   rD   rE   z
int | None)r(   r2   rE   r   )r7   zutf-8)r?   r2   r@   r2   r9   rD   rE   zt.IO[t.AnyStr])Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r   r   r*   r3   rA   Ú__static_attributes__Ú__classcell__)r   s   @r   r	   r	      sÏ   ø† ð
 8<Ø&*Ø9=Ø!%Ø $Ø04Ø $Ø )ð""àð""ð ð""ð 5ð	""ð
 $ð""ð 7ð""ð ð""ð ð""ð .ð""ð ð""ð ð""ð 
÷""ð ""ôHô6
ð. GNð3Øð3Ø#&ð3Ø9Cð3à	÷3ó 3r!   r	   )Ú
__future__r   r;   Útypingr0   Údatetimer   r   r   Úglobalsr   Úhelpersr   Úsansio.blueprintsr	   ÚSansioBlueprintr
   Úsansio.scaffoldr   ÚTYPE_CHECKINGÚwrappersr   © r!   r   Ú<module>rX      s;   ðÝ "ã 	Û Ý å Ý  Ý (Ý ;Ý IÝ &à‡?‡?Ý"ôn3�õ n3r!   