mirror of
https://github.com/status-im/pluto.git
synced 2026-09-02 05:21:17 +00:00
1 line
18 KiB
JSON
1 line
18 KiB
JSON
["^ ","~:rename-macros",["^ "],"~:renames",["^ "],"~:externs",["^ ","~$Error",["^ "]],"~:use-macros",["^ ","~$console","~$re-frame.loggers","~$empty-queue","~$re-frame.interop","~$debug-enabled?","^8"],"~:excludes",["~#set",[]],"~:name","~$re-frame.interceptor","~:imports",null,"~:requires",["^ ","^6","^6","^8","^8","~$trace","~$re-frame.trace","^A","^A","~$set","~$clojure.set","^C","^C"],"~:cljs.spec/speced-vars",[],"~:uses",["^ ","^5","^6","^7","^8","^9","^8"],"~:defs",["^ ","~$invoke-interceptors",["^ ","~:protocol-inline",null,"~:meta",["^ ","~:file","/home/julien/.cljs/.aot_cache/1.10.439/FE4359D/re_frame/interceptor.cljc","~:line",72,"~:column",8,"~:end-line",72,"~:end-column",27,"~:private",true,"~:arglists",["~#list",["~$quote",["^Q",[["~$context","~$direction"]]]]],"~:doc","Loop over all interceptors, calling `direction` function on each,\n threading the value of `context` through every call.\n\n `direction` is one of `:before` or `:after`.\n\n Each iteration, the next interceptor to process is obtained from\n context's `:queue`. After they are processed, interceptors are popped\n from `:queue` and added to `:stack`.\n\n After sufficient iteration, `:queue` will be empty, and `:stack` will\n contain all interceptors processed.\n\n Returns updated `context`. Ie. the `context` which has been threaded\n through all interceptor functions.\n\n Generally speaking, an interceptor's `:before` function will (if present)\n add to a `context's` `:coeffects`, while it's `:after` function\n will modify the `context`'s `:effects`. Very approximately.\n\n But because all interceptor functions are given `context`, and can\n return a modified version of it, the way is clear for an interceptor\n to introspect the stack or queue, or even modify the queue\n (add new interceptors via `enqueue`?). This is a very fluid arrangement."],"^O",true,"^<","~$re-frame.interceptor/invoke-interceptors","^J","/home/julien/.cljs/.aot_cache/1.10.439/FE4359D/re_frame/interceptor.cljc","^N",27,"~:method-params",["^Q",[["^S","^T"]]],"~:protocol-impl",null,"~:arglists-meta",["^Q",[null,null]],"^L",1,"~:variadic?",false,"^K",72,"^M",72,"~:max-fixed-arity",2,"~:fn-var",true,"^P",["^Q",["^R",["^Q",[["^S","^T"]]]]],"^U","Loop over all interceptors, calling `direction` function on each,\n threading the value of `context` through every call.\n\n `direction` is one of `:before` or `:after`.\n\n Each iteration, the next interceptor to process is obtained from\n context's `:queue`. After they are processed, interceptors are popped\n from `:queue` and added to `:stack`.\n\n After sufficient iteration, `:queue` will be empty, and `:stack` will\n contain all interceptors processed.\n\n Returns updated `context`. Ie. the `context` which has been threaded\n through all interceptor functions.\n\n Generally speaking, an interceptor's `:before` function will (if present)\n add to a `context's` `:coeffects`, while it's `:after` function\n will modify the `context`'s `:effects`. Very approximately.\n\n But because all interceptor functions are given `context`, and can\n return a modified version of it, the way is clear for an interceptor\n to introspect the stack or queue, or even modify the queue\n (add new interceptors via `enqueue`?). This is a very fluid arrangement."],"~$assoc-coeffect",["^ ","^H",null,"^I",["^ ","^J","/home/julien/.cljs/.aot_cache/1.10.439/FE4359D/re_frame/interceptor.cljc","^K",54,"^L",7,"^M",54,"^N",21,"^P",["^Q",["^R",["^Q",[["^S","~$key","~$value"]]]]]],"^<","~$re-frame.interceptor/assoc-coeffect","^J","/home/julien/.cljs/.aot_cache/1.10.439/FE4359D/re_frame/interceptor.cljc","^N",21,"^W",["^Q",[["^S","^12","^13"]]],"^X",null,"^Y",["^Q",[null,null]],"^L",1,"^Z",false,"^K",54,"~:ret-tag","~$any","^M",54,"^[",3,"^10",true,"^P",["^Q",["^R",["^Q",[["^S","^12","^13"]]]]]],"~$update-coeffect",["^ ","^H",null,"^I",["^ ","^J","/home/julien/.cljs/.aot_cache/1.10.439/FE4359D/re_frame/interceptor.cljc","^K",58,"^L",7,"^M",58,"^N",22,"^P",["^Q",["^R",["^Q",[["^S","^12","~$f","~$&","~$args"]]]]],"~:top-fn",["^ ","^Z",true,"^[",3,"^W",[["^Q",["^S","^12","~$f","^18"]]],"^P",["^Q",[["^S","^12","~$f","~$&","^18"]]],"^Y",["^Q",[null]]]],"^<","~$re-frame.interceptor/update-coeffect","^J","/home/julien/.cljs/.aot_cache/1.10.439/FE4359D/re_frame/interceptor.cljc","^N",22,"^19",["^ ","^Z",true,"^[",3,"^W",[["^Q",["^S","^12","~$f","^18"]]],"^P",["^Q",[["^S","^12","~$f","~$&","^18"]]],"^Y",["^Q",[null]]],"^W",[["^Q",["^S","^12","~$f","^18"]]],"^X",null,"^Y",["^Q",[null]],"^L",1,"^Z",true,"^K",58,"^15","^16","^M",58,"^[",3,"^10",true,"^P",["^Q",[["^S","^12","~$f","~$&","^18"]]]],"~$invoke-interceptor-fn",["^ ","^H",null,"^I",["^ ","^J","/home/julien/.cljs/.aot_cache/1.10.439/FE4359D/re_frame/interceptor.cljc","^K",65,"^L",8,"^M",65,"^N",29,"^O",true,"^P",["^Q",["^R",["^Q",[["^S","~$interceptor","^T"]]]]]],"^O",true,"^<","~$re-frame.interceptor/invoke-interceptor-fn","^J","/home/julien/.cljs/.aot_cache/1.10.439/FE4359D/re_frame/interceptor.cljc","^N",29,"^W",["^Q",[["^S","^1<","^T"]]],"^X",null,"^Y",["^Q",[null,null]],"^L",1,"^Z",false,"^K",65,"^15",["^;",[null,"^16"]],"^M",65,"^[",3,"^10",true,"^P",["^Q",["^R",["^Q",[["^S","^1<","^T"]]]]]],"~$get-effect",["^ ","^H",null,"^I",["^ ","^J","/home/julien/.cljs/.aot_cache/1.10.439/FE4359D/re_frame/interceptor.cljc","^K",31,"^L",7,"^M",31,"^N",17,"^P",["^Q",["^R",["^Q",[["^S"],["^S","^12"],["^S","^12","~$not-found"]]]]],"^19",["^ ","^Z",false,"^[",3,"^W",["^Q",[["^S"],["^S","^12"],["^S","^12","^1?"]]],"^P",["^Q",[["^S"],["^S","^12"],["^S","^12","^1?"]]],"^Y",["^Q",[null,null,null]]]],"^<","~$re-frame.interceptor/get-effect","^J","/home/julien/.cljs/.aot_cache/1.10.439/FE4359D/re_frame/interceptor.cljc","^N",17,"^19",["^ ","^Z",false,"^[",3,"^W",["^Q",[["^S"],["^S","^12"],["^S","^12","^1?"]]],"^P",["^Q",[["^S"],["^S","^12"],["^S","^12","^1?"]]],"^Y",["^Q",[null,null,null]]],"^W",["^Q",[["^S"],["^S","^12"],["^S","^12","^1?"]]],"^X",null,"^Y",["^Q",[null,null,null]],"^L",1,"^Z",false,"^K",31,"^M",31,"^[",3,"^10",true,"^P",["^Q",[["^S"],["^S","^12"],["^S","^12","^1?"]]]],"~$->interceptor",["^ ","^H",null,"^I",["^ ","^J","/home/julien/.cljs/.aot_cache/1.10.439/FE4359D/re_frame/interceptor.cljc","^K",17,"^L",7,"^M",17,"^N",20,"^P",["^Q",["^R",["^Q",[["~$&",["^ ","~:as","~$m","~:keys",["~$id","~$before","~$after"]]]]]]],"^U","Create an interceptor from named arguments","^19",["^ ","^Z",true,"^[",0,"^W",[["^Q",[["^ ","^1B","~$m","^1C",["^1D","^1E","^1F"]]]]],"^P",["^Q",[["~$&",["^ ","^1B","~$m","^1C",["^1D","^1E","^1F"]]]]],"^Y",["^Q",[null]]]],"^<","~$re-frame.interceptor/->interceptor","^J","/home/julien/.cljs/.aot_cache/1.10.439/FE4359D/re_frame/interceptor.cljc","^N",20,"^19",["^ ","^Z",true,"^[",0,"^W",[["^Q",[["^ ","^1B","~$m","^1C",["^1D","^1E","^1F"]]]]],"^P",["^Q",[["~$&",["^ ","^1B","~$m","^1C",["^1D","^1E","^1F"]]]]],"^Y",["^Q",[null]]],"^W",[["^Q",[["^ ","^1B","~$m","^1C",["^1D","^1E","^1F"]]]]],"^X",null,"^Y",["^Q",[null]],"^L",1,"^Z",true,"^K",17,"^15","^16","^M",17,"^[",0,"^10",true,"^P",["^Q",[["~$&",["^ ","^1B","~$m","^1C",["^1D","^1E","^1F"]]]]],"^U","Create an interceptor from named arguments"],"~$get-coeffect",["^ ","^H",null,"^I",["^ ","^J","/home/julien/.cljs/.aot_cache/1.10.439/FE4359D/re_frame/interceptor.cljc","^K",46,"^L",7,"^M",46,"^N",19,"^P",["^Q",["^R",["^Q",[["^S"],["^S","^12"],["^S","^12","^1?"]]]]],"^19",["^ ","^Z",false,"^[",3,"^W",["^Q",[["^S"],["^S","^12"],["^S","^12","^1?"]]],"^P",["^Q",[["^S"],["^S","^12"],["^S","^12","^1?"]]],"^Y",["^Q",[null,null,null]]]],"^<","~$re-frame.interceptor/get-coeffect","^J","/home/julien/.cljs/.aot_cache/1.10.439/FE4359D/re_frame/interceptor.cljc","^N",19,"^19",["^ ","^Z",false,"^[",3,"^W",["^Q",[["^S"],["^S","^12"],["^S","^12","^1?"]]],"^P",["^Q",[["^S"],["^S","^12"],["^S","^12","^1?"]]],"^Y",["^Q",[null,null,null]]],"^W",["^Q",[["^S"],["^S","^12"],["^S","^12","^1?"]]],"^X",null,"^Y",["^Q",[null,null,null]],"^L",1,"^Z",false,"^K",46,"^M",46,"^[",3,"^10",true,"^P",["^Q",[["^S"],["^S","^12"],["^S","^12","^1?"]]]],"~$execute",["^ ","^H",null,"^I",["^ ","^J","/home/julien/.cljs/.aot_cache/1.10.439/FE4359D/re_frame/interceptor.cljc","^K",146,"^L",7,"^M",146,"^N",14,"^P",["^Q",["^R",["^Q",[["~$event-v","~$interceptors"]]]]],"^U","Executes the given chain (coll) of interceptors.\n\n Each interceptor has this form:\n {:before (fn [context] ...) ;; returns possibly modified context\n :after (fn [context] ...)} ;; `identity` would be a noop\n\n Walks the queue of iterceptors from beginning to end, calling the\n `:before` fn on each, then reverse direction and walk backwards,\n calling the `:after` fn on each.\n\n The last interceptor in the chain presumably wraps an event\n handler fn. So the overall goal of the process is to \"handle\n the given event\".\n\n Thread a `context` through all calls. `context` has this form:\n\n {:coeffects {:event [:a-query-id :some-param]\n :db <original contents of app-db>}\n :effects {:db <new value for app-db>\n :dispatch [:an-event-id :param1]}\n :queue <a collection of further interceptors>\n :stack <a collection of interceptors already walked>}\n\n `context` has `:coeffects` and `:effects` which, if this was a web\n server, would be somewhat anologous to `request` and `response`\n respectively.\n\n `coeffects` will contain data like `event` and the initial\n state of `db` - the inputs required by the event handler\n (sitting presumably on the end of the chain), while handler-returned\n side effects are put into `:effects` including, but not limited to,\n new values for `db`.\n\n The first few interceptors in a chain will likely have `:before`\n functions which \"prime\" the `context` by adding the event, and\n the current state of app-db into `:coeffects`. But interceptors can\n add whatever they want to `:coeffects` - perhaps the event handler needs\n some information from localstore, or a random number, or access to\n a DataScript connection.\n\n Equally, some interceptors in the chain will have `:after` fn\n which can process the side effects accumulated into `:effects`\n including but, not limited to, updates to app-db.\n\n Through both stages (before and after), `context` contains a `:queue`\n of interceptors yet to be processed, and a `:stack` of interceptors\n already done. In advanced cases, these values can be modified by the\n functions through which the context is threaded."],"^<","~$re-frame.interceptor/execute","^J","/home/julien/.cljs/.aot_cache/1.10.439/FE4359D/re_frame/interceptor.cljc","^N",14,"^W",["^Q",[["^1K","^1L"]]],"^X",null,"^Y",["^Q",[null,null]],"^L",1,"^Z",false,"^K",146,"^15","^16","^M",146,"^[",2,"^10",true,"^P",["^Q",["^R",["^Q",[["^1K","^1L"]]]]],"^U","Executes the given chain (coll) of interceptors.\n\n Each interceptor has this form:\n {:before (fn [context] ...) ;; returns possibly modified context\n :after (fn [context] ...)} ;; `identity` would be a noop\n\n Walks the queue of iterceptors from beginning to end, calling the\n `:before` fn on each, then reverse direction and walk backwards,\n calling the `:after` fn on each.\n\n The last interceptor in the chain presumably wraps an event\n handler fn. So the overall goal of the process is to \"handle\n the given event\".\n\n Thread a `context` through all calls. `context` has this form:\n\n {:coeffects {:event [:a-query-id :some-param]\n :db <original contents of app-db>}\n :effects {:db <new value for app-db>\n :dispatch [:an-event-id :param1]}\n :queue <a collection of further interceptors>\n :stack <a collection of interceptors already walked>}\n\n `context` has `:coeffects` and `:effects` which, if this was a web\n server, would be somewhat anologous to `request` and `response`\n respectively.\n\n `coeffects` will contain data like `event` and the initial\n state of `db` - the inputs required by the event handler\n (sitting presumably on the end of the chain), while handler-returned\n side effects are put into `:effects` including, but not limited to,\n new values for `db`.\n\n The first few interceptors in a chain will likely have `:before`\n functions which \"prime\" the `context` by adding the event, and\n the current state of app-db into `:coeffects`. But interceptors can\n add whatever they want to `:coeffects` - perhaps the event handler needs\n some information from localstore, or a random number, or access to\n a DataScript connection.\n\n Equally, some interceptors in the chain will have `:after` fn\n which can process the side effects accumulated into `:effects`\n including but, not limited to, updates to app-db.\n\n Through both stages (before and after), `context` contains a `:queue`\n of interceptors yet to be processed, and a `:stack` of interceptors\n already done. In advanced cases, these values can be modified by the\n functions through which the context is threaded."],"~$assoc-effect",["^ ","^H",null,"^I",["^ ","^J","/home/julien/.cljs/.aot_cache/1.10.439/FE4359D/re_frame/interceptor.cljc","^K",40,"^L",7,"^M",40,"^N",19,"^P",["^Q",["^R",["^Q",[["^S","^12","^13"]]]]]],"^<","~$re-frame.interceptor/assoc-effect","^J","/home/julien/.cljs/.aot_cache/1.10.439/FE4359D/re_frame/interceptor.cljc","^N",19,"^W",["^Q",[["^S","^12","^13"]]],"^X",null,"^Y",["^Q",[null,null]],"^L",1,"^Z",false,"^K",40,"^15","^16","^M",40,"^[",3,"^10",true,"^P",["^Q",["^R",["^Q",[["^S","^12","^13"]]]]]],"~$enqueue",["^ ","^H",null,"^I",["^ ","^J","/home/julien/.cljs/.aot_cache/1.10.439/FE4359D/re_frame/interceptor.cljc","^K",109,"^L",7,"^M",109,"^N",14,"^P",["^Q",["^R",["^Q",[["^S","^1L"]]]]],"^U","Add a collection of `interceptors` to the end of `context's` execution `:queue`.\n Returns the updated `context`.\n\n In an advanced case, this function could allow an interceptor to add new\n interceptors to the `:queue` of a context."],"^<","~$re-frame.interceptor/enqueue","^J","/home/julien/.cljs/.aot_cache/1.10.439/FE4359D/re_frame/interceptor.cljc","^N",14,"^W",["^Q",[["^S","^1L"]]],"^X",null,"^Y",["^Q",[null,null]],"^L",1,"^Z",false,"^K",109,"^15","^16","^M",109,"^[",2,"^10",true,"^P",["^Q",["^R",["^Q",[["^S","^1L"]]]]],"^U","Add a collection of `interceptors` to the end of `context's` execution `:queue`.\n Returns the updated `context`.\n\n In an advanced case, this function could allow an interceptor to add new\n interceptors to the `:queue` of a context."],"~$mandatory-interceptor-keys",["^ ","^<","~$re-frame.interceptor/mandatory-interceptor-keys","^J","/home/julien/.cljs/.aot_cache/1.10.439/FE4359D/re_frame/interceptor.cljc","^K",9,"^L",1,"^M",9,"^N",32,"^I",["^ ","^J","/home/julien/.cljs/.aot_cache/1.10.439/FE4359D/re_frame/interceptor.cljc","^K",9,"^L",6,"^M",9,"^N",32],"~:tag","~$cljs.core/ISet"],"~$interceptor?",["^ ","^H",null,"^I",["^ ","^J","/home/julien/.cljs/.aot_cache/1.10.439/FE4359D/re_frame/interceptor.cljc","^K",11,"^L",7,"^M",11,"^N",19,"^P",["^Q",["^R",["^Q",[["~$m"]]]]]],"^<","~$re-frame.interceptor/interceptor?","^J","/home/julien/.cljs/.aot_cache/1.10.439/FE4359D/re_frame/interceptor.cljc","^N",19,"^W",["^Q",[["~$m"]]],"^X",null,"^Y",["^Q",[null,null]],"^L",1,"^Z",false,"^K",11,"^15","~$boolean","^M",11,"^[",1,"^10",true,"^P",["^Q",["^R",["^Q",[["~$m"]]]]]],"~$change-direction",["^ ","^H",null,"^I",["^ ","^J","/home/julien/.cljs/.aot_cache/1.10.439/FE4359D/re_frame/interceptor.cljc","^K",132,"^L",8,"^M",132,"^N",24,"^O",true,"^P",["^Q",["^R",["^Q",[["^S"]]]]],"^U","Called on completion of `:before` processing, this function prepares/modifies\n `context` for the backwards sweep of processing in which an interceptor\n chain's `:after` fns are called.\n\n At this point in processing, the `:queue` is empty and `:stack` holds all\n the previously run interceptors. So this function enables the backwards walk\n by priming `:queue` with what's currently in `:stack`"],"^O",true,"^<","~$re-frame.interceptor/change-direction","^J","/home/julien/.cljs/.aot_cache/1.10.439/FE4359D/re_frame/interceptor.cljc","^N",24,"^W",["^Q",[["^S"]]],"^X",null,"^Y",["^Q",[null,null]],"^L",1,"^Z",false,"^K",132,"^15","^16","^M",132,"^[",1,"^10",true,"^P",["^Q",["^R",["^Q",[["^S"]]]]],"^U","Called on completion of `:before` processing, this function prepares/modifies\n `context` for the backwards sweep of processing in which an interceptor\n chain's `:after` fns are called.\n\n At this point in processing, the `:queue` is empty and `:stack` holds all\n the previously run interceptors. So this function enables the backwards walk\n by priming `:queue` with what's currently in `:stack`"],"^S",["^ ","^H",null,"^I",["^ ","^J","/home/julien/.cljs/.aot_cache/1.10.439/FE4359D/re_frame/interceptor.cljc","^K",121,"^L",8,"^M",121,"^N",15,"^O",true,"^P",["^Q",["^R",["^Q",[["~$event","^1L"],["^1[","^1L","~$db"]]]]],"^U","Create a fresh context","^19",["^ ","^Z",false,"^[",3,"^W",["^Q",[["^1[","^1L"],["^1[","^1L","^20"]]],"^P",["^Q",[["^1[","^1L"],["^1[","^1L","^20"]]],"^Y",["^Q",[null,null]]]],"^O",true,"^<","~$re-frame.interceptor/context","^J","/home/julien/.cljs/.aot_cache/1.10.439/FE4359D/re_frame/interceptor.cljc","^N",15,"^19",["^ ","^Z",false,"^[",3,"^W",["^Q",[["^1[","^1L"],["^1[","^1L","^20"]]],"^P",["^Q",[["^1[","^1L"],["^1[","^1L","^20"]]],"^Y",["^Q",[null,null]]],"^W",["^Q",[["^1[","^1L"],["^1[","^1L","^20"]]],"^X",null,"^Y",["^Q",[null,null]],"^L",1,"^Z",false,"^K",121,"^M",121,"^[",3,"^10",true,"^P",["^Q",[["^1[","^1L"],["^1[","^1L","^20"]]],"^U","Create a fresh context"]],"~:cljs.spec/registry-ref",[],"~:require-macros",["^ ","^@","^A","^A","^A"],"~:cljs.analyzer/constants",["^ ","~:seen",["^;",["~:unnamed","~:tags","~:db","~:queue","~:event","~:after","~:id","~:effects","~:stack","~:error","~:coeffects","~:interceptors","~:before"]],"~:order",["^2;","^2<","^2B","^2?","^26","^2=","^2@","^29","^2>","^2:","^28","^27","^2A"]],"^U",null] |