{"version":3,"file":"router.js","sources":["router.js"],"names":["define","_","$","Backbone","ApiQuery","Dependon","ApiFeedback","ApiRequest","ApiTargets","ApiAccessMixin","ApiQueryUpdater","Router","extend","initialize","options","this","queryUpdater","execute","callback","args","argsToPass","filter","a","undefined","isFunction","apply","activate","beehive","setBeeHive","hasPubSub","Error","routerNavigate","route","getPubSub","publish","NAVIGATE","routes","/","","classic-form(/)","paper-form(/)","index/(:query)","search/(:query)(/)(:widgetName)","search(/)(?:query)","execute-query/(:query)","feedback/(:subview)","abs/*path","user/orcid*(:subView)","user/account(/)(:subView)","user/account/verify/(:subView)/(:token)","user/settings(/)(:subView)(/)","user/libraries(/)(:id)(/)(:subView)(/)(:subData)(/)","user/home(/)","orcid-instructions(/)","public-libraries/(:id)(/)","*invalidRoute","index","query","classicForm","arguments","length","load","paperForm","feedbackPage","subview","bibcode","replace","encodeURIComponent","URLSearchParams","get","e","href","concat","search","widgetName","q","page","console","error","BIG_FIRE","code","CODES","CANNOT_ROUTE","reason","ALERT","msg","type","modal","executeQuery","queryId","view","path","navigateString","parts","split","id","match","subPage","pop","join","toUpperCase","slice","routeToVerifyPage","subView","token","orcidPage","orcidInstructions","authenticationPage","contains","settingsPage","librariesPage","subData","publicLibraryPage","publicView","homePage","noPageFound","_extractParameters","fragment","map","exec","param","test","decodeURIComponent","prototype","BeeHive"],"mappings":"AAAAA,OAAO,CAAC,aAAc,SAAU,WAAY,0BAA2B,qBAAsB,6BAA8B,4BAA6B,4BAA6B,uBAAwB,mCAAoC,SAAUC,EAAGC,EAAGC,EAAUC,EAAUC,EAAUC,EAAaC,EAAYC,EAAYC,EAAgBC,GAC9UC,EAASR,EAASQ,OAAOC,OAAO,CAClCC,WAAY,SAAoBC,GAE9BC,KAAKC,aAAe,IAAIN,EAAgB,QAAQ,CAClD,EACAO,QAAS,SAAiBC,EAAUC,GAE9BC,EAAaD,EAAKE,OAAO,SAAUC,GACrC,OAAaC,KAAAA,IAAND,CACT,CAAC,EACGrB,EAAE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