§
    �Ÿj­	  ã                  óì   — d Z ddlmZ g d¢ZddlZddlmZmZ ddlm	Z	m
Z
mZmZmZmZmZmZmZmZmZmZ ddlmZ ddlmZ dd	lmZ dd
lmZ dd
lmZ ddlmZ ddlmZ  dd	lmZ! dd
lmZ" dd
lmZ# d„ Z$dS )z(The main API for the v3 notebook format.é    )Úannotations)ÚNotebookNodeÚnew_code_cellÚnew_text_cellÚnew_notebookÚ
new_outputÚnew_worksheetÚnew_metadataÚ
new_authorÚnew_heading_cellÚnbformatÚnbformat_minorÚnbformat_schemaÚ
reads_jsonÚwrites_jsonÚ	read_jsonÚ
write_jsonÚto_notebook_jsonÚreads_pyÚ	writes_pyÚread_pyÚwrite_pyÚto_notebook_pyÚ	downgradeÚupgradeÚparse_filenameNé   )r   r   )r   r   r   r   r   r   r   r
   r   r   r   r	   )Úreads)Úto_notebook)Úwritesc                ó‚   — t           j                             | ¦  «        \  }}|dv rd}n|dk    rd}n	| }| dz   } d}| ||fS )a÷  Parse a notebook filename.

    This function takes a notebook filename and returns the notebook
    format (json/py) and the notebook name. This logic can be
    summarized as follows:

    * notebook.ipynb -> (notebook.ipynb, notebook, json)
    * notebook.json  -> (notebook.json, notebook, json)
    * notebook.py    -> (notebook.py, notebook, py)
    * notebook       -> (notebook.ipynb, notebook, json)

    Parameters
    ----------
    fname : unicode
        The notebook filename. The filename can use a specific filename
        extension (.ipynb, .json, .py) or none, in which case .ipynb will
        be assumed.

    Returns
    -------
    (fname, name, format) : (unicode, unicode, unicode)
        The filename, notebook name and format.
    )ú.ipynbz.jsonÚjsonz.pyÚpyr"   )ÚosÚpathÚsplitext)ÚfnameÚbasenameÚextÚformat_s       úa/var/www/finuniver-perm.ru/html/student/venv/lib/python3.11/site-packages/nbformat/v3/__init__.pyr   r   @   sa   € õ0 ”G×$Ò$ UÑ+Ô+�M€HˆcØ
Ð!Ð!Ð!ØˆˆØ	�ŠˆØˆˆàˆØ˜Ñ ˆØˆØ�(˜GÐ#Ð#ó    )%Ú__doc__Ú
__future__r   Ú__all__r%   Úconvertr   r   Únbbaser   r   r   r   r   r   r   r
   r   r   r   r	   Únbjsonr   r   r   r   r   r    r   r   Únbpyr   r   r   r   r   r   © r-   r,   ú<module>r6      s®  ðØ .Ð .ð #Ð "Ð "Ð "Ð "Ð "ðð ð €ð8 
€	€	€	à 'Ð 'Ð 'Ð 'Ð 'Ð 'Ð 'Ð 'ðð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð 'Ð &Ð &Ð &Ð &Ð &Ø 'Ð 'Ð 'Ð 'Ð 'Ð 'Ø 3Ð 3Ð 3Ð 3Ð 3Ð 3Ø (Ð (Ð (Ð (Ð (Ð (Ø )Ð )Ð )Ð )Ð )Ð )Ø "Ð "Ð "Ð "Ð "Ð "Ø #Ð #Ð #Ð #Ð #Ð #Ø /Ð /Ð /Ð /Ð /Ð /Ø $Ð $Ð $Ð $Ð $Ð $Ø %Ð %Ð %Ð %Ð %Ð %ð!$ð !$ð !$ð !$ð !$r-   