Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
§ Ìß]j¿?ãó—dZddlmZddlmZddlmZmZmZm Z m Z m Z m Z e d¦«Z de _dZGd„de¦«Zed ¦«ZGd „d e¦«ZGd „d e¦«ZGd„de¦«Ze¦«jZdS)a+Signals and events. A small implementation of signals, inspired by a snippet of Django signal API client code seen in a blog post. Signals are first-class objects and each manages its own receivers and message emission. The :func:`signal` function provides singleton behavior for named signals. é)Úwarn)ÚWeakValueDictionary)Ú WeakTypesÚcontextmanagerÚ defaultdictÚhashable_identityÚ lazy_propertyÚ referenceÚsymbolÚANYzToken for "any sender".có¼—eZdZdZeZed„¦«Zed„¦«Zdd„Zedfd„Z dd „Z e efd „¦«Z efd „Z d „Zd „Zd„Zefd„Zd„Zd„Zd„Zd„Zd„ZdS)ÚSignalzA notification emitter.có"—td¬¦«S)zßEmitted after each :meth:`connect`. The signal sender is the signal instance, and the :meth:`connect` arguments are passed through: *receiver*, *sender*, and *weak*. .. versionadded:: 1.2 z"Emitted after a receiver connects.©Údoc©r©Úselfs úC/opt/imunify360/venv/lib64/python3.11/site-packages/blinker/base.pyÚreceiver_connectedzSignal.receiver_connected%s€õÐ>Ð?Ñ?Ô?Ð?ócó"—td¬¦«S)a Emitted after :meth:`disconnect`. The sender is the signal instance, and the :meth:`disconnect` arguments are passed through: *receiver* and *sender*. Note, this signal is emitted **only** when :meth:`disconnect` is called explicitly. The disconnect signal can not be emitted by an automatic disconnect (due to a weakly referenced receiver or sender going out of scope), as the receiver and/or sender instances are no longer available for use at the time this signal would be emitted. An alternative approach is available by subscribing to :attr:`receiver_connected` and setting up a custom weakref cleanup callback on weak receivers and senders. .. versionadded:: 1.2 z%Emitted after a receiver disconnects.rrrs rÚreceiver_disconnectedzSignal.receiver_disconnected1s€õ,ÐAÐBÑBÔBÐBrNcó˜—|r||_i|_tt¦«|_tt¦«|_i|_dS)zt :param doc: optional. If provided, will be assigned to the signal's __doc__ attribute. N)Ú__doc__Ú receiversrÚsetÚ _by_receiverÚ _by_senderÚ _weak_senders)rrs rÚ__init__zSignal.__init__IsI€ð ð ØˆDŒLðˆŒÝ'­Ñ,Ô,ˆÔÝ%¥cÑ*Ô*ˆŒØˆÔÐÐrTcóZ—t|¦«}|rt||j¦«}||_n|}|turt }nt|¦«}|j ||¦«|j|  |¦«|j |  |¦«~|turS||j vrJ t||j ¦«}||_ |j  ||¦«~n#t$rYnwxYwd|jvrH|jjr< |j ||||¬¦«n#| ||¦«‚xYwt jrE|t ur< t  ||||¬¦«n#| ||¦«‚xYw|S)aaConnect *receiver* to signal events sent by *sender*. :param receiver: A callable. Will be invoked by :meth:`send` with `sender=` as a single positional argument and any \*\*kwargs that were provided to a call to :meth:`send`. :param sender: Any object or :obj:`ANY`, defaults to ``ANY``. Restricts notifications delivered to *receiver* to only those :meth:`send` emissions sent by *sender*. If ``ANY``, the receiver will always be notified. A *receiver* may be connected to multiple *sender* values on the same Signal through multiple calls to :meth:`connect`. :param weak: If true, the Signal will hold a weakref to *receiver* and automatically disconnect when *receiver* goes out of scope or is garbage collected. Defaults to True. r)ÚreceiverÚsenderÚweak)Ú receiver_argÚ sender_argÚweak_arg)rr Ú_cleanup_receiverÚ receiver_idr ÚANY_IDrÚ setdefaultrÚaddrr Ú_cleanup_senderÚ sender_idÚ TypeErrorÚ__dict__rÚsendÚ disconnect)rr#r$r%r*Ú receiver_refr/Ú sender_refs rÚconnectzSignal.connect\s€õ&(¨Ñ1Ô1ˆ Ø ð $Ý$ X¨tÔ/EÑFÔFˆLØ'2ˆLÔ $Ð $à#ˆLØ •Sˆ=ˆ=݈IˆIå)¨&Ñ1Ô1ˆIà Œ×!Ò! +¨|Ñ<Ô<Ð<Ø Œ˜ Ô"×&Ò& {Ñ3Ô3Ð3Ø Ô˜+Ô&×*Ò*¨9Ñ5Ô5Ð5Ø à �Ð Ð  °$Ô2DÐ!DÐ!Dð Ý& v¨tÔ/CÑDÔD� Ø'0� Ô$ðÔ"×-Ò-¨i¸ÑDÔDÐDØ�Jøõ ð ð ð Ø�ð øøøð ! D¤MÐ 1Ð 1Ø Ô #Ô -ð 2ð ØÔ'×,Ò,¨TØ6>Ø4:Ø26ð-ñ8ô8ð8ð8øð Ø—’ ¨&Ñ1Ô1Ð1ØøøøÝ Ô 'ð ¨DÕ8JÐ,JÐ,Jð Ý"×'Ò'¨Ø5=Ø39Ø15ð(ñ7ô7ð7ð7øð Ø—’ ¨&Ñ1Ô1Ð1ØøøøØˆs*ÃC9Ã9 DÄDÄD>Ä>EÅ0FÆF(Fc󇇇—ˆˆˆfd„}|S)aKConnect the decorated function as a receiver for *sender*. :param sender: Any object or :obj:`ANY`. The decorated function will only receive :meth:`send` emissions sent by *sender*. If ``ANY``, the receiver will always be notified. A function may be decorated multiple times with differing *sender* values. :param weak: If true, the Signal will hold a weakref to the decorated function and automatically disconnect when *receiver* goes out of scope or is garbage collected. Unlike :meth:`connect`, this defaults to False. The decorated function will be invoked by :meth:`send` with `sender=` as a single positional argument and any \*\*kwargs that were provided to the call to :meth:`send`. .. versionadded:: 1.1 có6•—‰ |‰‰¦«|S©N)r6)Úfnrr$r%s €€€rÚ decoratorz%Signal.connect_via..decoratorµsø€Ø �LŠL˜˜V TÑ *Ô *Ð *؈Ir©)rr$r%r;s``` rÚ connect_viazSignal.connect_via s0øøø€ð* ð ð ð ð ð ð ðÐrc#ó¤K—| ||d¬¦« dV—| |¦«dS#| |¦«‚xYw)aExecute a block with the signal temporarily connected to *receiver*. :param receiver: a receiver callable :param sender: optional, a sender to filter on This is a context manager for use in the ``with`` statement. It can be useful in unit tests. *receiver* is connected to the signal for the duration of the ``with`` block, and will be disconnected automatically when exiting the block: .. testsetup:: from __future__ import with_statement from blinker import Signal on_ready = Signal() receiver = lambda sender: None .. testcode:: with on_ready.connected_to(receiver): # do stuff on_ready.send(123) .. versionadded:: 1.1 F)r$r%N)r6r3©rr#r$s rÚ connected_tozSignal.connected_toºsfèè€ð8 � Š �X f°5ˆ Ñ9Ô9Ð9ð &؈JˆJˆJð �OŠO˜HÑ %Ô %Ð %Ð %Ð %øð  Ø �OŠO˜HÑ %Ô %Ð %Ø øøøs œ7·AcóX—tdt¦«| ||¦«S)agAn alias for :meth:`connected_to`. :param receiver: a receiver callable :param sender: optional, a sender to filter on .. versionadded:: 0.9 .. versionchanged:: 1.1 Renamed to :meth:`connected_to`. ``temporarily_connected_to`` was deprecated in 1.2 and will be removed in a subsequent version. zAtemporarily_connected_to is deprecated; use connected_to instead.)rÚDeprecationWarningr@r?s rÚtemporarily_connected_tozSignal.temporarily_connected_toßs6€õ ð)å ñ !ô !ð !ð× Ò  ¨6Ñ2Ô2Ð2rcóü‡‡—t‰¦«dkrdŠn:t‰¦«dkrtdt‰¦«z¦«‚‰dŠ|jsgSˆˆfd„| ‰¦«D¦«S)a˜Emit this signal on behalf of *sender*, passing on \*\*kwargs. Returns a list of 2-tuples, pairing receivers with their return value. The ordering of receiver notification is undefined. :param \*sender: Any object or ``None``. If omitted, synonymous with ``None``. Only accepts one positional argument. :param \*\*kwargs: Data to be sent to receivers. rNéz5send() accepts only one positional argument, %s givencó&•—g|] }||‰fi‰¤Žf‘ŒSr<r<)Ú.0r#Úkwargsr$s €€rú zSignal.send.. sFø€ð@ð@ð@Ø ð˜x˜x¨Ð9Ð9°&Ð9Ð9Ð:ð@ð@ð@r)Úlenr0rÚ receivers_for)rr$rHs ``rr2z Signal.sendñs´øø€õ ˆv‰;Œ;˜!Ò Ð ØˆFˆFÝ �‰[Œ[˜1Š_ˆ_Ýð'Ý),¨V©¬ñ5ñ6ô6ð 6ð˜A”YˆFØŒ~ð @؈Ið@ð@ð@ð@ð@Ø$(×$6Ò$6°vÑ$>Ô$>ð@ñ@ô@ð @rcó~—|jsdS|jtrdS|turdSt |¦«|jvS)zôTrue if there is probably a receiver for *sender*. Performs an optimistic check only. Does not guarantee that all weakly referenced receivers are still alive. See :meth:`receivers_for` for a stronger search. FT)rrr+r r)rr$s rÚhas_receivers_forzSignal.has_receivers_for sJ€ðŒ~ð Ø�5Ø Œ?�6Ô "ð Ø�4Ø •Sˆ=ˆ=Ø�5Ý  Ñ(Ô(¨D¬OÐ;Ð;rc#ó K—|jrÂt|¦«}||jvr!|jt|j|z}n$|jt ¦«}|D]d}|j |¦«}|€Œt |t¦«r*|¦«}|€| |t¦«Œ\|}|V—ŒcdSdS)z2Iterate all live receivers listening for *sender*.N) rrrr+ÚcopyÚgetÚ isinstancerÚ _disconnect)rr$r/Úidsr*r#Ústrongs rrKzSignal.receivers_forsïèè€ð Œ>ð Ý)¨&Ñ1Ô1ˆIؘDœOÐ+Ð+Ø”¥vÔ.Ø” yÔ1ñ2��ð”o¥fÔ-×2Ò2Ñ4Ô4�Ø"ð ð � Øœ>×-Ò-¨kÑ:Ô:�ØÐ#ØÝ˜h­ Ñ2Ô2ð&Ø%˜X™ZœZ�FØ�~Ø×(Ò(¨µfÑ=Ô=Ð=Ø Ø%�HØ����ð# ð ð ð rcóü—|turt}nt|¦«}t|¦«}| ||¦«d|jvr+|jjr!|j |||¬¦«dSdSdS)aDisconnect *receiver* from this signal's events. :param receiver: a previously :meth:`connected` callable :param sender: a specific sender to disconnect from, or :obj:`ANY` to disconnect from all senders. Defaults to ``ANY``. r)r#r$N)r r+rrRr1rrr2)rr#r$r/r*s rr3zSignal.disconnect3sŸ€ð •Sˆ=ˆ=݈IˆIå)¨&Ñ1Ô1ˆIÝ'¨Ñ1Ô1ˆ Ø ×Ò˜ iÑ0Ô0Ð0à # t¤}Ð 4Ð 4Ø Ô &Ô 0ð 5à Ô &× +Ò +¨DØ5=Ø39ð ,ñ ;ô ;ð ;ð ;ð ;ð 5Ð 4Ð 4Ð 4rcón—|tkri|j |d¦«r1|j ¦«D]}| |¦«Œ|j |d¦«dS|j| |¦«|j| |¦«dS)NF)r+rÚpoprÚvaluesÚdiscardr)rr*r/Úbuckets rrRzSignal._disconnectIsµ€Ø �Ò Ð ØÔ ×$Ò$ [°%Ñ8Ô8ð 0Ø"œo×4Ò4Ñ6Ô6ð0ð0�FØ—N’N ;Ñ/Ô/Ð/Ð/Ø ŒN× Ò ˜{¨DÑ 1Ô 1Ð 1Ð 1Ð 1à ŒO˜IÔ &× .Ò .¨{Ñ ;Ô ;Ð ;Ø Ô ˜kÔ *× 2Ò 2°9Ñ =Ô =Ð =Ð =Ð =rcóF—| |jt¦«dS)z'Disconnect a receiver from all senders.N)rRr*r+)rr4s rr)zSignal._cleanup_receiverSs!€à ×Ò˜Ô1µ6Ñ:Ô:Ð:Ð:Ð:rcóà—|j}|tksJ‚|j |d¦«|j |d¦«D]"}|j| |¦«Œ#dS)z'Disconnect all receivers from a sender.Nr<)r/r+r rWrrrY)rr5r/r*s rr.zSignal._cleanup_senderWs~€àÔ(ˆ Ø�FÒ"Ð"Ð"Ð"Ø Ô×Ò˜y¨$Ñ/Ô/Ð/Øœ?×.Ò.¨y¸"Ñ=Ô=ð >ð >ˆKØ Ô ˜kÔ *× 2Ò 2°9Ñ =Ô =Ð =Ð =ð >ð >rcó¦—|j|jfD]A}t| ¦«¦«D]\}}|s| |d¦«ŒŒBdS)anPrune unused sender/receiver bookeeping. Not threadsafe. Connecting & disconnecting leave behind a small amount of bookeeping for the receiver and sender values. Typical workloads using Blinker, for example in most web apps, Flask, CLI scripts, etc., are not adversely affected by this bookkeeping. With a long-running Python process performing dynamic signal routing with high volume- e.g. connecting to function closures, "senders" are all unique object instances, and doing all of this over and over- you may see memory usage will grow due to extraneous bookeeping. (An empty set() for each stale sender/receiver pair.) This method will prune that bookeeping away, with the caveat that such pruning is not threadsafe. The risk is that cleanup of a fully disconnected receiver/sender pair occurs while another thread is connecting that same pair. If you are in the highly dynamic, unique receiver/sender situation that has lead you to this method, that failure mode is perhaps not a big deal for you. N)rrÚlistÚitemsrW)rÚmappingÚ_idrZs rÚ_cleanup_bookkeepingzSignal._cleanup_bookkeeping_sl€ð*œ¨Ô):Ð;ð +ð +ˆGÝ# G§M¢M¡O¤OÑ4Ô4ð +ð +‘ ��VØð+Ø—K’K  TÑ*Ô*Ð*øð +ð +ð +rcóΗ|j ¦«|j ¦«|j ¦«|j ¦«dS)z4Throw away all signal state. Useful for unit tests.N)r Úclearrrrrs rÚ _clear_statezSignal._clear_stateysZ€à Ô× Ò Ñ"Ô"Ð"Ø Œ×ÒÑÔÐØ Œ×ÒÑÔÐØ Ô×ÒÑ!Ô!Ð!Ð!Ð!rr9)F)Ú__name__Ú __module__Ú __qualname__rr r rrr!r6r=rr@rCr2rMrKr3rRr)r.rbrer<rrrrst€€€€€Ø!Ð!ð €Càð @ð @ñ„]ð @ððCðCñ„]ðCð. ð ð ð ð&(+°ðBðBðBðBðHðððð4Ø,/ð"&ð"&ð"&ñ„^ð"&ðH9<ð3ð3ð3ð3ð$@ð@ð@ð8<ð<ð<ð ððð,+.ð;ð;ð;ð;ð,>ð>ð>ð;ð;ð;ð>ð>ð>ð+ð+ð+ð4"ð"ð"ð"ð"rra Sent by a :class:`Signal` after a receiver connects. :argument: the Signal that was connected to :keyword receiver_arg: the connected receiver :keyword sender_arg: the sender to connect to :keyword weak_arg: true if the connection to receiver_arg is a weak reference .. deprecated:: 1.2 As of 1.2, individual signals have their own private :attr:`~Signal.receiver_connected` and :attr:`~Signal.receiver_disconnected` signals with a slightly simplified call signature. This global signal is planned to be removed in 1.6. có —eZdZdZdd„Zd„ZdS)Ú NamedSignalz%A named generic notification emitter.NcóJ—t ||¦«||_dSr9)rr!Úname©rrlrs rr!zNamedSignal.__init__–s#€Ý�Š˜˜cÑ"Ô"Ð"ðˆŒ ˆ ˆ rcó`—t |¦«}|dd…›d|j›d�S)Néÿÿÿÿz; ú>)rÚ__repr__rl)rÚbases rrqzNamedSignal.__repr__œs0€Ý�Š˜tÑ$Ô$ˆØ   " œI˜I˜I t¤y y yÐ1Ð1rr9)rfrgrhrr!rqr<rrrjrj“s=€€€€€Ø/Ð/ððððð 2ð2ð2ð2ð2rrjcó—eZdZdZdd„ZdS)Ú Namespacez%A mapping of signal names to signals.Ncó|— ||S#t$r'| |t||¦«¦«cYSwxYw©z—Return the :class:`NamedSignal` *name*, creating it if required. Repeated calls to this function will return the same signal object. ©ÚKeyErrorr,rjrms rÚsignalzNamespace.signal¤óU€ð  Aؘ”:Ð øÝð Að Að AØ—?’? 4­°T¸3Ñ)?Ô)?Ñ@Ô@Ð @Ð @Ð @ð Aøøøó ‚ Š.;º;r9©rfrgrhrryr<rrrtrt¡s4€€€€€Ø/Ð/ð Að Að Að Að Að Arrtcó—eZdZdZdd„ZdS)Ú WeakNamespacea-A weak mapping of signal names to signals. Automatically cleans up unused Signals when the last reference goes out of scope. This namespace implementation exists for a measure of legacy compatibility with Blinker <= 1.2, and may be dropped in the future. .. versionadded:: 1.3 Ncó|— ||S#t$r'| |t||¦«¦«cYSwxYwrvrwrms rryzWeakNamespace.signal»rzr{r9r|r<rrr~r~°s8€€€€€ððð Að Að Að Að Að Arr~N)rÚwarningsrÚweakrefrÚblinker._utilitiesrrrrr r r r r+ÚobjectrrrjÚdictrtr~ryr<rrúr…s™ððððÐÐÐÐÐØ'Ð'Ð'Ð'Ð'Ð'ððððððððððððððððððð €fˆU�m„m€Ø'€„ Ø €ð`"ð`"ð`"ð`"ð`"ˆVñ`"ô`"ð`"ðF �VðñôÐð$ 2ð 2ð 2ð 2ð 2�&ñ 2ô 2ð 2ð Að Að Að Að A�ñ Aô Að AðAðAðAðAðAÐ'ñAôAðAð. ˆ‰ŒÔ €€€r