PageSourceSearch

https://expert.crystalintelligence.com/9184.60d3444e62f2c0c1.js

js crystalintelligence.com collected 2026-10-03 19:14:15 UTC 8,839 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkexpert=self.webpackChunkexpert||[]).push([[9184],{57237(f,p,s){s.d(p,{o:()=>_});var i=s(15215),o=s(67857);let _=class{constructor(h){this.json=h,this.hasAdditional=!1}init(){this.hasAdditional=!!this.content||!!this.materials}};(0,i.Cg)([(0,o.JsonProp)()],_.prototype,"type",void 0),(0,i.Cg)([(0,o.JsonProp)()],_.prototype,"title",void 0),(0,i.Cg)([(0,o.JsonProp)()],_.prototype,"content",void 0),(0,i.Cg)([(0,o.JsonProp)()],_.prototype,"materials",void 0),(0,i.Cg)([(0,o.JsonProp)()],_.prototype,"link",void 0),(0,i.Cg)([(0,o.JsonProp)()],_.prototype,"source",void 0),(0,i.Cg)([(0,o.JsonProp)()],_.prototype,"flag",void 0),(0,i.Cg)([(0,o.JsonProp)({convert:()=>Date,rule:o.JsonRule.date})],_.prototype,"published_at",void 0),(0,i.Cg)([(0,o.JsonProp)({convert:()=>Date,rule:o.JsonRule.date})],_.prototype,"created",void 0),_=(0,i.Cg)([(0,o.JsonClass)()],_)},12288(f,p,s){function i(o){return null!=o?{params:{version:String(o)}}:void 0}s.d(p,{P:()=>i})},38416(f,p,s){s.d(p,{B:()=>_,O:()=>E});var i=s(15215),o=s(67857);function _(h){return"ellipsis"===h.role}let E=class{constructor(g){this.json=g}get cards(){return this.path_analysis?.cards??[]}get emptyReason(){return this.path_analysis?.empty_reason??null}};(0,i.Cg)([(0,o.JsonProp)()],E.prototype,"path_analysis",void 0),(0,i.Cg)([(0,o.JsonProp)({convert:()=>Date,rule:o.JsonRule.date})],E.prototype,"created_at",void 0),E=(0,i.Cg)([(0,o.JsonClass)()],E)},63928(f,p,s){s.d(p,{F:()=>_});var i=s(15215),o=s(67857);let _=class{constructor(h){this.json=h}};(0,i.Cg)([(0,o.JsonProp)()],_.prototype,"summary",void 0),(0,i.Cg)([(0,o.JsonProp)({convert:()=>Date,rule:o.JsonRule.date})],_.prototype,"created_at",void 0),_=(0,i.Cg)([(0,o.JsonClass)()],_)},82450(f,p,s){s.d(p,{p:()=>l});var i=s(10467),o=s(85802),_=s(91413),E=s(67857),h=s(57237),g=s(12288),n=s(38416),r=s(54843);let l=(()=>{class d{constructor(){this.http=(0,o.WQX)(_.Qq),this.config=(0,o.WQX)(E.AppConfig),this.urlBase=`${this.config.global_api_url}/monitor/ai-summary`}getExisting(a,e){var c=this;return(0,i.A)(function*(){try{const y=yield(0,r._)(c.http.get(c.url(a),(0,g.P)(e)));return y?.data?.path_analysis?new n.O(y.data):null}catch(y){if(c.isNotGeneratedYet(y))return null;throw y}})()}getSanctionRecords(a){var e=this;return(0,i.A)(function*(){const c=`${e.config.global_api_url}/entity/mention/${a}/list`;try{return((yield(0,r._)(e.http.get(c,{params:{order:"published_at",direction:"desc"}})))?.data??[]).map(P=>new h.o(P)).filter(P=>"sanctions"===P.type?.toLowerCase())}catch{return[]}})()}generate(a){var e=this;return(0,i.A)(function*(c,y=!1,P){const D=yield(0,r._)(e.http.post(e.url(c),{force:y},(0,g.P)(P)));return new n.O(D.data)}).apply(this,arguments)}url(a){return`${this.urlBase}/${a}/path-analysis`}isNotGeneratedYet(a){return a instanceof _.yz&&404===a.status&&1717!==a.error?.meta?.error_code}static{this.\u0275fac=function(e){return new(e||d)}}static{this.\u0275prov=o.jDH({token:d,factory:d.\u0275fac,providedIn:"root"})}}return d})()},69184(f,p,s){s.d(p,{z:()=>E});var i=s(85802),o=s(82450),_=s(37176);let E=(()=>{class h{constructor(){this.service=(0,i.WQX)(o.p),this.entries=new Map,this.epochs=new Map}static{this.MAX_CACHED_VERSIONS=50}state(n){return this.entry(n).asReadonly()}snapshot(n){return this.entry(n)()}open(n){const r=this.entry(n);"idle"===r().status&&this.load(n,r)}generate(n){const r=this.entry(n);"generating"===r().status||"loading-existing"===r().status||this.run(n,r)}reset(n){const r=_.y.versionKey(n);this.epochs.set(r,this.epoch(r)+1),this.entry(n).set({status:"absent",stale:!0})}retry(n){const r=this.entry(n);"generate"!==r().failedStage?this.load(n,r):this.generate(n)}run(n,r){const u=_.y.versionKey(n),v=this.epoch(u),l=r().stale;r.set({status:"generating",stale:l}),this.service.generate(n.id,!!l,n.monitor_tx_history_id).then(d=>{this.epoch(u)===v&&r.set({status:"loaded",response:d})}).catch(()=>{this.epoch(u)===v&&r.set({status:"error",failedStage:"generate",stale:l})})}load(n,r){const u=_.y.versionKey(n),v=this.epoch(u);r.set({status:"loading-existing"}),this.service.getExisting(n.id,n.monitor_tx_history_id).then(l=>{this.epoch(u)===v&&r.set(l?{status:"loaded",response:l}:{status:"absent"})}).catch(()=>{this.epoch(u)===v&&r.set({status:"error",failedStage:"load"})})}
1epoch(n){return this.epochs.get(n)??0}entry(n){const r=_.y.versionKey(n),u=this.entries.get(r);if(u)return this.entries.delete(r),this.entries.set(r,u),u;const v=(0,i.vPA)({status:"idle"});return this.entries.set(r,v),this.evictStaleEntries(),v}evictStaleEntries(){for(const[n,r]of this.entries){if(this.entries.size<=h.MAX_CACHED_VERSIONS)break;const{status:u,stale:v}=r();v||"loading-existing"===u||"generating"===u||(this.entries.delete(n),this.epochs.delete(n))}}static{this.\u0275fac=function(r){return new(r||h)}}static{this.\u0275prov=i.jDH({token:h,factory:h.\u0275fac,providedIn:"root"})}}return h})()},66090(f,p,s){s.d(p,{i:()=>r});var i=s(10467),o=s(85802),_=s(91413),E=s(67857),h=s(12288),g=s(63928),n=s(54843);let r=(()=>{class u{constructor(){this.http=(0,o.WQX)(_.Qq),this.config=(0,o.WQX)(E.AppConfig),this.urlBase=`${this.config.global_api_url}/monitor/ai-summary`}getExisting(l,d){var t=this;return(0,i.A)(function*(){const a=`${t.urlBase}/${l}`;try{const e=yield(0,n._)(t.http.get(a,(0,h.P)(d)));return e.data?new g.F(e.data):null}catch(e){if(e instanceof _.yz&&404===e.status)return null;throw e}})()}generate(l){var d=this;return(0,i.A)(function*(t,a=!1,e){const c=`${d.urlBase}/${t}`,y=yield(0,n._)(d.http.post(c,{force:a},(0,h.P)(e)));return new g.F(y.data)}).apply(this,arguments)}static{this.\u0275fac=function(d){return new(d||u)}}static{this.\u0275prov=o.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})()},37176(f,p,s){s.d(p,{$:()=>n,y:()=>v});var i=s(85802),o=s(59882),_=s(67857),E=s(68018),h=s(4001),g=s(66090);function n(l,d){if("ai-summary"===d)return"ai-summary";switch(l?.status){case"loading-existing":case"generating":case"regenerating":return"loading";case"loaded":return l.seen?"ai-summary":"success";case"error":return l.seen?"ai-summary":"error";default:return"ai-summary"}}const r=h.HumanReadable.monitor.aiSummary.successMessage,u=h.HumanReadable.monitor.aiSummary.errorMessage;let v=(()=>{class l{constructor(){this.service=(0,i.WQX)(g.i),this.message=(0,i.WQX)(_.MessageService),this.translate=(0,i.WQX)(E.c$),this.router=(0,i.WQX)(o.Ix),this.entries=new Map,this.currentKey=null}static{this.MAX_CACHED_VERSIONS=50}static versionKey(t){return null!=t.monitor_tx_history_id?`${t.id}:v${t.monitor_tx_history_id}`:`${t.id}:${t.updated_at?+t.updated_at:0}`}static isInFlight(t){return"loading-existing"===t||"generating"===t||"regenerating"===t}state(t){return this.entry(t).asReadonly()}snapshot(t){return this.entry(t)()}open(t){const a=l.versionKey(t);this.currentKey=a;const e=this.entry(t),c=e().status;"idle"===c||"error"===c?this.load(t,a,e):"loaded"===c&&!e().seen&&e.update(y=>({...y,seen:!0}))}leave(t){this.currentKey===l.versionKey(t)&&(this.currentKey=null)}retry(t){const a=l.versionKey(t);this.load(t,a,this.entry(t))}regenerate(t){const a=l.versionKey(t),e=this.entry(t),c=e().response;e.set({status:"regenerating",response:c}),this.service.generate(t.id,!0,t.monitor_tx_history_id).then(y=>{e.set({status:"loaded",response:y,seen:this.currentKey===a}),this.notifyIfAway(t,"loaded")}).catch(()=>{e.set({status:"loaded",response:c,error:"regenerate-failed",seen:!0}),this.message.error(this.translate.instant(u,{id:t.id}))})}load(t,a,e){e.set({status:"loading-existing"}),this.service.getExisting(t.id,t.monitor_tx_history_id).then(c=>c?(e.set({status:"loaded",response:c,seen:this.currentKey===a}),void this.notifyIfAway(t,"loaded")):(e.set({status:"generating"}),this.service.generate(t.id,!1,t.monitor_tx_history_id).then(y=>{e.set({status:"loaded",response:y,seen:this.currentKey===a}),this.notifyIfAway(t,"loaded")}))).catch(()=>{e.set({status:"error",error:"load-failed",seen:this.currentKey===a}),this.notifyIfAway(t,"error")})}notifyIfAway(t,a){if(this.currentKey===l.versionKey(t))return;const e=t.id,c={text:h.HumanReadable.buttons.go_to_transfer,action:()=>this.router.navigateByUrl(`/monitor/transfers?id=${e}`)};"loaded"===a?this.message.success(this.translate.instant(r,{id:e}),null,c):this.message.warning(this.translate.instant(u,{id:e}),null,c)}entry(t){const a=l.versionKey(t),e=this.entries.get(a);if(e)return this.entries.delete(a),this.entries.set(a,e),e;const c=(0,i.vPA)({status:"idle"});return this.entries.set(a,c),this.evictStaleEntries(),c}evictStaleEntries(){for(const[t,a]of this.entries){if(this.entries.size<=l.MAX_CACHED_VERSIONS)break;
1t===this.currentKey||l.isInFlight(a().status)||this.entries.delete(t)}}static{this.\u0275fac=function(a){return new(a||l)}}static{this.\u0275prov=i.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}}return l})()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.