
    0h                        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              H/var/www/auris/envauris/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    " ""#>?=eY''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"FF3**+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ww||DNNH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#&39C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!   