Sindbad~EG File Manager
�
'ٜg � �� � d dl mZ d dlZd dlZd dlZd dlZd dlmZ d dlm Z d dlm
Z
d dlmZ d dlmZ dd l
mZ dd
�Z ej de� dd�Z eg ed
� �d�d��� j) � Z ede� Z ededz � Z ededz � Z ededz � Zdd�Zdd�Zdej8 j: vr%ej8 j: j= d� d d�Zd!d�Z y)"� )�annotationsN)�quote)�unquote)� urlencode)�urlsplit)�
urlunsplit� )�iter_multi_itemsc �z � t | j | j | j d�� }|| j fS )zRUsed in :func:`uri_to_iri` after unquoting to re-quote any
invalid bytes.
� ��safe)r �object�start�end)�e�outs �8/usr/local/lib/python3.12/site-packages/werkzeug/urls.py�_codec_error_url_quoter s1 � � �������1�5�5�)��
3�C�����:�� �werkzeug.url_quotec � �� dj d� t |� D � � }t j d|� d�t j � �d�fd�}d| � �|_ |S )z�Create a function that unquotes all percent encoded characters except those
given. This allows working with unquoted characters if possible while not changing
the meaning of a given part of a URL.
�|c 3 �6 K � | ] }t |� d ��� � y�w)�02XN)�ord)�.0�cs r � <genexpr>z%_make_unquote_part.<locals>.<genexpr>"