@rcsb/rcsb-saguaro-app 3.2.1-interfaces → 3.2.1-interfaces.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  [Semantic Versioning](https://semver.org/)
4
4
 
5
+ ## [3.3.0] - 2021-11-29
6
+ ### Annotations configuration improvements
7
+ - Removed interface `CollectAnnotationsInterface` attribute `addTargetInTitle`
8
+ - Added `titleSuffix` and `trackTitle` attributes to `CollectAnnotationsInterface`
9
+ - These new attributes are defined as async functions (ann: AnnotationFeatures, d: Feature) => Promise<string|undefined> to provide or modify track titles based on the features content
10
+ - New `RcsbFvInterface` module
11
+ - Interface `InstanceSequenceConfig` provides a new attribute `module` to choose between the `RcsbFvInstance` or RcsbFvInterface` modules
12
+ - New classes to collect and translate instance/interface ids relationships from data api
13
+ - `RcsbQueryInterfaceInstances`, `InterfaceInstanceCollector` and `InterfaceInstanceTranslate`
14
+
5
15
  ## [3.2.1] - 2021-11-10
6
16
  ### Minor configuration
7
17
  - Dropdown title configuration is exposed in `InstanceSequenceConfig` attribute `dropdownTitle`
package/build/dist/app.js CHANGED
@@ -62,7 +62,7 @@ object-assign
62
62
  object-assign
63
63
  (c) Sindre Sorhus
64
64
  @license MIT
65
- */var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function c(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,o,s=c(t),l=1;l<arguments.length;l++){for(var u in n=Object(arguments[l]))i.call(n,u)&&(s[u]=n[u]);if(r){o=r(n);for(var h=0;h<o.length;h++)a.call(n,o[h])&&(s[o[h]]=n[o[h]])}}return s}},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function c(t){try{s(r.next(t))}catch(t){a(t)}}function o(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,o)}s((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.SequenceCollector=void 0;const i=n(4),a=n(11),c=n(6),o=n(91),s=n(10),l=n(14),u=n(21);e.SequenceCollector=class{constructor(){this.targets=new Array,this.requestStatus="pending",this.dynamicDisplay=!1,this.helper=new o.SequenceCollectorHelper,this.rcsbFvQuery=new s.RcsbClient,this.targetsSubject=new l.Subject,this.alignmentResponseSubject=new l.Subject,this.tagObservedRegions=(t,e)=>[Object.assign(Object.assign({},t),{unModelled:!1})]}collect(t,e,n,i){var a;return r(this,void 0,void 0,(function*(){"function"==typeof i&&(this.tagObservedRegions=i),this.alignmentResponse=yield this.requestAlignment(t),null!=this.alignmentResponse.query_sequence&&0!=this.alignmentResponse.query_sequence.length||(console.warn(this.alignmentResponse),console.log("Sequence not found in alignments from "+t.from+" to "+t.to+" queryId "+t.queryId)),this.sequenceLength=null===(a=this.alignmentResponse.query_sequence)||void 0===a?void 0:a.length;const r=this.alignmentResponse.query_sequence,c=this.alignmentResponse.target_alignment,o=e?c.filter(t=>e.includes(t.target_id)):c;"function"==typeof n&&o&&(yield n(o.map(t=>t.target_id)));const s={targetAlignmentList:o,queryId:t.queryId,querySequence:r,filterByTargetContains:t.filterByTargetContains,to:t.to,from:t.from,excludeAlignmentLinks:t.excludeAlignmentLinks,fitTitleWidth:t.fitTitleWidth},l=this.buildAlignments(s);return this.complete(),{sequence:r?[this.buildSequenceTrack(t,r)]:null,alignment:l}}))}getTargets(){return r(this,void 0,void 0,(function*(){return new Promise((t,e)=>{"complete"===this.requestStatus?t(this.targets):u.ObservableHelper.oneTimeSubscription(t,this.targetsSubject)})}))}getAlignmentResponse(){return r(this,void 0,void 0,(function*(){return new Promise((t,e)=>{"complete"===this.requestStatus?t(this.alignmentResponse):u.ObservableHelper.oneTimeSubscription(t,this.alignmentResponseSubject)})}))}getSequenceLength(){return this.sequenceLength}setPolymerEntityInstanceTranslator(t){this.helper.setPolymerEntityInstanceTranslator(t),this.polymerEntityInstanceTranslator=t}setExternalTrackBuilder(t){this.externalTrackBuilder=t}complete(){this.requestStatus="complete",this.targetsSubject.next(this.targets)}buildAlignments(t){const{alignments:e,targets:n}=this.helper.buildAlignments(t,this.dynamicDisplay,this.tagObservedRegions);return this.targets=n,console.log("Alignment Processing Complete"),e}buildSequenceTrack(t,e){let n=t.from.replace("_"," ")+" "+c.TagDelimiter.sequenceTitle,r=this.helper.buildSequenceRowTitle(t);const o={trackId:"mainSequenceTrack_"+t.queryId,displayType:"sequence",trackColor:"#F9F9F9",displayColor:"#000000",rowTitle:r,rowPrefix:n,nonEmptyDisplay:!0,trackData:this.helper.buildSequenceData({sequenceData:[],sequence:e,begin:1,oriBegin:null,queryId:t.queryId,targetId:null,from:t.from,to:null},!0)};return t.from===i.SequenceReference.PdbEntity||t.from===i.SequenceReference.PdbInstance?o.titleFlagColor=a.RcsbAnnotationConstants.provenanceColorCode.rcsbPdb:o.titleFlagColor=a.RcsbAnnotationConstants.provenanceColorCode.external,o}collectGenomeRegions(){}requestAlignment(t){return r(this,void 0,void 0,(function*(){return this.requestStatus="pending",t.dynamicDisplay&&(this.dynamicDisplay=!0),yield this.rcsbFvQuery.requestAlignment({queryId:t.queryId,from:t.from,to:t.to})}))}}},function(t){t.exports=JSON.parse('{"provenance_color_code":{"external":"#DB9128","rcsb_pdb":"#5e94c3"},"merge":[{"merged_types":["UNOBSERVED_RESIDUE_XYZ","UNOBSERVED_ATOM_XYZ"],"type":"UNOBSERVED","title":"UNMODELED","display":"block"},{"merged_types":["TOPOLOGICAL_DOMAIN","TRANSMEMBRANE_REGION","INTRAMEMBRANE_REGION"],"type":"MEMBRANE_TOPOLOGY","title":"MEMBRANE TOPOLOGY","display":"block"},{"merged_types":["INITIATOR_METHIONINE","CHAIN","SIGNAL_PEPTIDE"],"type":"MOLECULE_PROCESSING","title":"MOLECULE PROCESSING","display":"block"},{"merged_types":["HELIX_P","SHEET"],"type":"SECONDARY_STRUCTURE","title":"SECONDARY STRUCTURE","display":"block"},{"merged_types":["SCOP_2_FAMILY","SCOP_2_SUPERFAMILY","SCOP_2_B_SUPERFAMILY","SCOP"],"type":"ALL_SCOP","title":"SCOP","display":"block"}],"external_data_order":["PFAM","CATH","ALL_SCOP","SCOP","SCOP_2_B_SUPERFAMILY","SCOP2_FAMILY","SCOP2_SUPERFAMILY","ECOD","IMGT_ANTIBODY_DESCRIPTION","IMGT_ANTIBODY_DOMAIN_NAME","IMGT_ANTIBODY_GENE_ALLELE_NAME","IMGT_ANTIBODY_ORGANISM_NAME","IMGT_ANTIBODY_PROTEIN_NAME","IMGT_ANTIBODY_RECEPTOR_DESCRIPTION","IMGT_ANTIBODY_RECEPTOR_TYPE","SABDAB_ANTIBODY_ANTIGEN_NAME","SABDAB_ANTIBODY_NAME","SABDAB_ANTIBODY_TARGET","SABDAB_ANTIBODY_HEAVY_CHAIN_SUBCLASS","SABDAB_ANTIBODY_LIGHT_CHAIN_SUBCLASS","SABDAB_ANTIBODY_LIGHT_CHAIN_TYPE","MOLECULE_PROCESSING","MEMBRANE_TOPOLOGY","MEMBRANE_SEGMENT","CHAIN","INITIATOR_METHIONINE","SEQUENCE_VARIANT","GLYCOSYLATION_SITE","LIPID_MOIETY_BINDING_REGION","CROSS_LINK","DISULFIDE_BOND","METAL_ION_BINDING_SITE","NUCLEOTIDE_PHOSPHATE_BINDING_REGION","DNA_BINDING_REGION","ACTIVE_SITE","MODIFIED_RESIDUE","MUTAGENESIS_SITE","SEQUENCE_CONFLICT","SITE","SHORT_SEQUENCE_MOTIF","ZINC_FINGER_REGION","PROPEPTIDE","TRANSMEMBRANE_REGION","INTRAMEMBRANE_REGION","TOPOLOGICAL_DOMAIN","COILED_COIL_REGION","REPEAT","DOMAIN","REGION_OF_INTEREST","COMPOSITIONALLY_BIASED_REGION","SPLICE_VARIANT","NON_TERMINAL_RESIDUE","TURN","SIGNAL_PEPTIDE","CARD_MODEL","CALCIUM_BINDING_REGION","PEPTIDE"],"instance_order":["SECONDARY_STRUCTURE","HELIX_P","SHEET","BINDING_SITE","UNOBSERVED","UNOBSERVED_RESIDUE_XYZ","UNOBSERVED_ATOM_XYZ","ZERO_OCCUPANCY_RESIDUE_XYZ","ZERO_OCCUPANCY_ATOM_XYZ","RAMACHANDRAN_OUTLIER","ANGLE_OUTLIER","BOND_OUTLIER","ROTAMER_OUTLIER","RSRZ_OUTLIER","RSCC_OUTLIER","RSRCC_OUTLIER","MOGUL_ANGLE_OUTLIER","MOGUL_BOND_OUTLIER","STEREO_OUTLIER","CIS_PEPTIDE","DISULFIDE_BRIDGE","COVALENT_BOND","METAL_COORDINATION","HYDROGEN_BOND"],"entity_order":["ARTIFACT","MUTATION","MODIFIED_MONOMER","HYDROPATHY","DISORDER","DISORDER_BINDING"],"config":[{"type":"CARD_MODEL","color":"#4d901b","display":"block","title":"CARD"},{"type":"ECOD","color":"#42d0b1","display":"block","title":"ECOD"},{"type":"IMGT_ANTIBODY_DOMAIN_NAME","color":"#3c0d7f","display":"block","title":"ANTIBODY DOMAIN"},{"type":"SABDAB_ANTIBODY_HEAVY_CHAIN_SUBCLASS","color":"#4c9f0d","display":"block","title":"ANTIBODY HEAVY CHAIN","ignore":true},{"type":"SABDAB_ANTIBODY_LIGHT_CHAIN_SUBCLASS","color":"#4c9f0d","display":"block","title":"ANTIBODY HEAVY CHAIN","ignore":true},{"type":"SABDAB_ANTIBODY_LIGHT_CHAIN_TYPE","color":"#4c9f0d","display":"block","title":"ANTIBODY HEAVY CHAIN","ignore":true},{"type":"IMGT_ANTIBODY_DESCRIPTION","color":"#bf5c0d","display":"block","title":"ANTIBODY DESCRIPTION","ignore":true},{"type":"IMGT_ANTIBODY_GENE_ALLELE_NAME","color":"#bf5c0d","display":"block","title":"ANTIBODY GENE NAME","ignore":true},{"type":"IMGT_ANTIBODY_ORGANISM_NAME","color":"#bf5c0d","display":"block","title":"ANTIBODY ORGANISM NAME","ignore":true},{"type":"IMGT_ANTIBODY_PROTEIN_NAME","color":"#bf5c0d","display":"block","title":"ANTIBODY PROTEIN NAME","ignore":true},{"type":"IMGT_ANTIBODY_RECEPTOR_DESCRIPTION","color":"#bf5c0d","display":"block","title":"ANTIBODY RECEPTOR DESCRIPTION","ignore":true},{"type":"IMGT_ANTIBODY_RECEPTOR_TYPE","color":"#bf5c0d","display":"block","title":"ANTIBODY RECEPTOR TYPE","ignore":true},{"type":"SABDAB_ANTIBODY_ANTIGEN_NAME","color":"#bf5c0d","display":"block","title":"ANTIBODY ANTIGEN NAME","ignore":true},{"type":"SABDAB_ANTIBODY_NAME","color":"#bf5c0d","display":"block","title":"ANTIBODY NAME","ignore":true},{"type":"SABDAB_ANTIBODY_TARGET","color":"#bf5c0d","display":"block","title":"ANTIBODY TARGET","ignore":true},{"type":"HOMOLOGY MODELLING","color":"#2fcc5d","display":"block","title":"HOMOLOGY MODELS"},{"type":"DISORDER_BINDING","display":"area","color":{"thresholds":[0.5],"colors":["#8484FF","#FF8484"]},"height":45,"title":"DISORDERED BINDING","domain":[0,1]},{"type":"HYDROPATHY","display":"area","color":{"thresholds":[0],"colors":["#8484FF","#FF8484"]},"height":45,"title":"HYDROPATHY"},{"type":"DISORDER","display":"area","color":{"thresholds":[0.5],"colors":["#8484FF","#FF8484"]},"height":45,"title":"DISORDER","domain":[0,1]},{"type":"SEQUENCE_VARIANT","display":"composite","color":"#ff6666","title":"GENOME VARIANT"},{"type":"ZINC_FINGER_REGION","display":"block","color":"#66ff66","title":"ZINC FINGER"},{"type":"NUCLEOTIDE_PHOSPHATE_BINDING_REGION","display":"block","color":"#ffcc00","title":"NUCLEOTIDE BINDING"},{"type":"DNA_BINDING_REGION","display":"block","color":"#ff5c9f","title":"DNA BINDING"},{"type":"ACTIVE_SITE","display":"pin","color":"#ff88cc","title":"ACTIVE SITE"},{"type":"COMPOSITIONALLY_BIASED_REGION","display":"block","color":"#D58874","title":"COMPOSITIONAL BIAS"},{"type":"BINDING_SITE","display":"pin","color":"#984657","title":"BINDING SITE","key":"name","addToType":["feature_id"]},{"type":"MUTAGENESIS_SITE","display":"composite","color":"#b82a80","title":"MUTAGENESIS"},{"type":"SEQUENCE_CONFLICT","display":"composite","color":"#e80368","title":"CONFLICT"},{"type":"METAL_ION_BINDING_SITE","display":"pin","color":"#41a754","title":"METAL BINDING"},{"type":"CROSS_LINK","display":"pin","color":"#0a39af","title":"CROSS-LINK"},{"type":"INITIATOR_METHIONINE","display":"pin","color":"#e2916d","title":"INITIATOR METHIONINE"},{"type":"MODIFIED_RESIDUE","display":"pin","color":"#44b8fd","title":"MODIFIED RESIDUE"},{"type":"TURN","display":"block","color":"#155870","title":"TURN"},{"type":"CHAIN","display":"block","color":"#ad9c5e","title":"CHAIN"},{"type":"DOMAIN","display":"block","color":"#715e76","title":"DOMAIN"},{"type":"SITE","display":"composite","color":"#b5748d","title":"SITE"},{"type":"SHORT_SEQUENCE_MOTIF","display":"block","color":"#6a508e","title":"LINEAR MOTIF"},{"type":"SPLICE_VARIANT","display":"block","color":"#f03634","title":"SEQUENCE SPLICING"},{"type":"LIPID_MOIETY_BINDING_REGION","display":"pin","color":"#06cb7a","title":"LIPIDATION"},{"type":"REGION_OF_INTEREST","display":"block","color":"#6797be","title":"REGION"},{"type":"PROPEPTIDE","display":"block","color":"#94d687","title":"PROPEPTIDE"},{"type":"UNOBSERVED_RESIDUE_XYZ","display":"block","color":"#cccccc","title":"UNMODELED RESIDUE"},{"type":"ANGLE_OUTLIER","display":"area","color":"#aa33aa","height":45,"title":"ANGLE OUTLIER","transformToNumerical":true},{"type":"ROTAMER_OUTLIER","display":"pin","color":"#33aaaa","title":"ROTAMER OUTLIER"},{"type":"RAMACHANDRAN_OUTLIER","display":"pin","color":"#cc3333","title":"RAMACHANDRAN OUTLIER"},{"type":"RSRCC_OUTLIER","display":"pin","color":"#cc33cc","title":"RSRCC OUTLIER"},{"type":"BOND_OUTLIER","display":"area","color":"#33aa33","height":45,"title":"BOND OUTLIER","transformToNumerical":true},{"type":"MOGUL_BOND_OUTLIER","display":"area","color":"#fcd303","height":45,"title":"MOGUL-BOND OUTLIER","transformToNumerical":true},{"type":"MOGUL_ANGLE_OUTLIER","display":"area","color":"#d303fc","height":45,"title":"MOGUL-ANGLE OUTLIER","transformToNumerical":true},{"type":"MUTATION","display":"pin","color":"#ebae56","title":"MUTATION"},{"type":"mutation","display":"pin","color":"#ebae56","title":"MUTATION"},{"type":"HELIX_P","display":"block","color":"#e43372","title":"HELIX"},{"type":"SHEET","display":"block","color":"#f1d23b","title":"BETA STRAND"},{"type":"CATH","display":"block","color":"#e4ad56","title":"CATH"},{"type":"SCOP","display":"block","color":"#455d5a","title":"SCOP"},{"type":"SCOP_2_FAMILY","display":"block","color":"#455d5a","title":"SCOP FAMILY"},{"type":"SCOP_2_B_SUPERFAMILY","display":"block","color":"#455d5a","title":"SCOP SUPERFAMILY"},{"type":"SCOP_2_SUPERFAMILY","display":"block","color":"#455d5a","title":"SCOP SUPERFAMILY"},{"type":"PFAM","display":"block","color":"#ECACA6","title":"PFAM"},{"type":"RSRZ_OUTLIER","display":"pin","color":"#3333aa","title":"RSRZ OUTLIER"},{"type":"RSCC_OUTLIER","display":"pin","color":"#63339a","title":"RSCC OUTLIER"},{"type":"UNOBSERVED_ATOM_XYZ","display":"block","color":"#b2997f","title":"UNMODELED ATOM"},{"type":"ZERO_OCCUPANCY_ATOM_XYZ","display":"composite","color":"#aca86a","title":"ZERO OCCUPANCY ATOM"},{"type":"CIS_PEPTIDE","display":"bond","color":"#761e47","title":"CIS-PEPTIDE"},{"type":"HYDROGEN_BOND","display":"bond","color":"#76Ae47","title":"HYDROGEN BOND","ignore":true},{"type":"ARTIFACT","display":"block","color":"#4c3f0f","title":"ARTIFACT"},{"type":"ARTIFACT","display":"block","color":"#4c3f0f","title":"ARTIFACT"},{"type":"TOPOLOGICAL_DOMAIN","display":"block","color":"#853faf","title":"TOPOLOGICAL DOMAIN"},{"type":"INTRAMEMBRANE_REGION","display":"block","color":"#c58f0f","title":"INTRAMEMBRANE REGION"},{"type":"TRANSMEMBRANE_REGION","display":"block","color":"#8fc50f","title":"TRANSMEMBRANE REGION"},{"type":"REPEAT","display":"block","color":"#2ea37b","title":"REPEAT"},{"type":"SIGNAL_PEPTIDE","display":"block","color":"#2ea3bb","title":"SIGNAL PEPTIDE"},{"type":"COILED_COIL_REGION","display":"block","color":"#a2ac85","title":"COILED COIL REGION"},{"type":"DISULFIDE_BRIDGE","display":"bond","color":"#6a534a","title":"DISULFIDE BRIDGE"},{"type":"GLYCOSYLATION_SITE","display":"pin","color":"#6af34a","title":"GLYCOSYLATION"},{"type":"NON_TERMINAL_RESIDUE","display":"pin","color":"#6af3fa","title":"NON-TERMINAL RESIDUE"},{"type":"MODIFIED_MONOMER","display":"composite","color":"#458756","title":"MODIFIED MONOMER"},{"type":"MODIFIED_MONOMER","display":"composite","color":"#458756","title":"MODIFIED MONOMER"},{"type":"ZERO_OCCUPANCY_RESIDUE_XYZ","display":"composite","color":"#fca86a","title":"ZERO OCCUPANCY RESIDUE"},{"type":"METAL_COORDINATION","display":"bond","color":"#aaaada","title":"METAL COORDINATION"},{"type":"COVALENT_BOND","display":"bond","color":"#aadaaa","title":"COVALENT BOND"},{"type":"MEMBRANE_SEGMENT","display":"block","color":"#8fc50f","title":"MEMBRANE SEGMENT","displayCooccurrence":true},{"type":"CALCIUM_BINDING_REGION","display":"block","color":"#c58f0f","title":"CALCIUM BINDING"},{"type":"PEPTIDE","display":"block","color":"#cf53df","title":"PEPTIDE"},{"type":"STEREO_OUTLIER","display":"pin","color":"#cfdf53","title":"STEREO OUTLIER"}]}')},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function c(t){try{s(r.next(t))}catch(t){a(t)}}function o(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,o)}s((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.AnnotationCollector=void 0;const i=n(38),a=n(92),c=n(10),o=n(93),s=n(14),l=n(21),u=n(94);e.AnnotationCollector=class{constructor(t){this.annotationsConfigData=new Array,this.rcsbFvQuery=new c.RcsbClient,this.requestStatus="pending",this.rawFeaturesSubject=new s.Subject,this.annotationsConfigDataSubject=new s.Subject,this.annotationFeaturesSubject=new s.Subject,this.rcsbAnnotationConfig=new i.RcsbAnnotationConfig(t),this.annotationTrackManager=new u.AnnotationTrackManager(this.rcsbAnnotationConfig)}collect(t){return r(this,void 0,void 0,(function*(){if(this.requestStatus="pending",this.annotationFeatures=yield this.requestAnnotations(t),!0===t.collectSwissModel){const e=yield a.SwissModelQueryAnnotations.request(t.queryId);this.annotationFeatures=this.annotationFeatures.concat(e)}return yield this.processRcsbPdbAnnotations(Object.assign({externalAnnotationTrackBuilder:this.externalTrackBuilder},t)),this.rawFeatures=[].concat.apply([],this.annotationFeatures.map(t=>t.features)),this.complete(),this.annotationsConfigData}))}setPolymerEntityInstanceTranslator(t){this.annotationTrackManager.setPolymerEntityInstanceTranslator(t),this.polymerEntityInstanceTranslator=t}setExternalTrackBuilder(t){this.externalTrackBuilder=t}getFeatures(){return r(this,void 0,void 0,(function*(){return new Promise((t,e)=>{"complete"===this.requestStatus?t(this.rawFeatures):l.ObservableHelper.oneTimeSubscription(t,this.rawFeaturesSubject)})}))}getAnnotationConfigData(){return r(this,void 0,void 0,(function*(){return new Promise((t,e)=>{"complete"===this.requestStatus?t(this.annotationsConfigData):l.ObservableHelper.oneTimeSubscription(t,this.annotationsConfigDataSubject)})}))}getAnnotationFeatures(){return r(this,void 0,void 0,(function*(){return new Promise((t,e)=>{"complete"===this.requestStatus?t(this.annotationFeatures):l.ObservableHelper.oneTimeSubscription(t,this.annotationFeaturesSubject)})}))}processRcsbPdbAnnotations(t){return r(this,void 0,void 0,(function*(){yield this.annotationTrackManager.processRcsbPdbAnnotations(this.annotationFeatures,t),this.rcsbAnnotationConfig.sortAndIncludeNewTypes(),[this.rcsbAnnotationConfig.instanceOrder(),this.rcsbAnnotationConfig.entityOrder(),this.rcsbAnnotationConfig.uniprotOrder(),Array.from(this.annotationTrackManager.getAnnotationTracks().keys()).filter(t=>!this.rcsbAnnotationConfig.allTypes().has(t))].forEach(t=>{t.forEach(t=>{this.annotationTrackManager.getAnnotationTracks().has(t)&&this.annotationTrackManager.getAnnotationTracks().get(t).size()>0&&this.annotationsConfigData.push(o.AnnotationCollectorHelper.buildAnnotationTrack(this.annotationTrackManager.getAnnotationTracks().get(t),t,this.rcsbAnnotationConfig.getConfig(t),this.rcsbAnnotationConfig.getProvenanceList(t)))})})}))}requestAnnotations(t){return r(this,void 0,void 0,(function*(){return yield this.rcsbFvQuery.requestRcsbPdbAnnotations({queryId:t.queryId,reference:t.reference,sources:t.sources,filters:t.filters,range:t.range})}))}complete(){this.requestStatus="complete",this.annotationsConfigDataSubject.next(this.annotationsConfigData),this.annotationFeaturesSubject.next(this.annotationFeatures),this.rawFeaturesSubject.next(this.rawFeatures)}}},function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.RcsbAnnotationConfig=void 0;const c=a(n(36));class o{constructor(t){var e,n,r,i;this.annotationMap=new Map,this.externalAnnotationsOrder=new Array,this.instanceAnnotationsOrder=new Array,this.entityAnnotationsOrder=new Array,this.mergedTypes=new Map,this.addedTypes=new Map,this.annotationConfigMap=null!=t?t:c,this.annotationConfigMap.config.forEach(t=>{t.provenanceList=new Set,this.annotationMap.set(t.type,t)}),this.externalAnnotationsOrder=null!==(e=this.annotationConfigMap.external_data_order)&&void 0!==e?e:[],this.instanceAnnotationsOrder=null!==(n=this.annotationConfigMap.instance_order)&&void 0!==n?n:[],this.entityAnnotationsOrder=null!==(r=this.annotationConfigMap.entity_order)&&void 0!==r?r:[],null===(i=this.annotationConfigMap.merge)||void 0===i||i.forEach(t=>{t.merged_types.forEach(e=>{this.mergedTypes.set(e,t)})})}getConfig(t){return this.annotationMap.has(t)?this.annotationMap.get(t):null}allTypes(){const t=this.externalAnnotationsOrder.concat(this.instanceAnnotationsOrder).concat(this.entityAnnotationsOrder);return new Set(t)}uniprotOrder(){return this.externalAnnotationsOrder}instanceOrder(){return this.instanceAnnotationsOrder}entityOrder(){return this.entityAnnotationsOrder}buildAndAddType(t,e,n){const r=t.type,i=t;let a="";if(this.annotationMap.has(r)&&this.annotationMap.get(r).addToType instanceof Array&&this.annotationMap.get(r).addToType.forEach(t=>{null!=i[t]&&(a+="."+i[t])}),this.annotationMap.has(r)&&null!=this.annotationMap.get(r).key&&i[this.annotationMap.get(r).key]){let t=r;if(t=t+":"+i[this.annotationMap.get(r).key]+":"+a,null!=n&&(t+="."+n),!this.annotationMap.has(t)){const n=null!=i[this.annotationMap.get(r).key]?i[this.annotationMap.get(r).key]:"";this.annotationMap.set(t,Object.assign(Object.assign({},this.annotationMap.get(r)),{type:t,color:"string"==typeof this.annotationMap.get(r).color?o.randomRgba(n):Object.assign(Object.assign({},this.annotationMap.get(r).color),{colors:o.randomRgba(n)}),prefix:null!=e?e:this.annotationMap.get(r).title,title:n,provenanceList:new Set}))}return this.addNewType(t,r),t}if(null!=n){let t=r;return t=t+":"+a+"."+n,this.annotationMap.has(t)||this.annotationMap.set(t,Object.assign(Object.assign({},this.annotationMap.get(r)),{type:t,title:n,prefix:null!=e?e:this.annotationMap.get(r).title,provenanceList:new Set})),this.addNewType(t,r,n),t}return null!=e?(this.annotationMap.set(r,Object.assign(Object.assign({},this.annotationMap.get(r)),{title:e})),this.addNewType(r,r)):this.addNewType(r,r),r}addNewType(t,e,n){if(this.mergedTypes.has(e)){const r=n?this.mergedTypes.get(e).type+"."+n:this.mergedTypes.get(e).type;t!=e&&this.mergedTypes.set(t,{merged_types:this.mergedTypes.get(e).merged_types,display:this.mergedTypes.get(e).display,type:r,title:this.mergedTypes.get(e).title}),this.annotationMap.set(r,{type:r,display:this.mergedTypes.get(e).display,color:null,title:t!=e?this.annotationMap.get(t).title:this.mergedTypes.get(e).title,prefix:t!=e?this.mergedTypes.get(e).title:void 0,provenanceList:new Set}),this.checkAndIncludeNewType(r,e)}else this.addedTypes.has(e)||this.addedTypes.set(e,new Array),this.addedTypes.get(e).push(t)}sortAndIncludeNewTypes(){this.cleanAddedTypes(),Array.from(this.addedTypes.keys()).sort((t,e)=>t.localeCompare(e)).forEach(t=>{this.addedTypes.get(t).sort((t,e)=>t.localeCompare(e)).forEach(e=>{this.checkAndIncludeNewType(e,t)})})}checkAndIncludeNewType(t,e){e!==t&&(this.instanceAnnotationsOrder.includes(e)&&!this.instanceAnnotationsOrder.includes(t)?this.instanceAnnotationsOrder.push(t):this.entityAnnotationsOrder.includes(e)&&!this.entityAnnotationsOrder.includes(t)?this.entityAnnotationsOrder.push(t):this.externalAnnotationsOrder.includes(e)&&!this.externalAnnotationsOrder.includes(t)&&this.externalAnnotationsOrder.push(t))}cleanAddedTypes(){this.addedTypes.forEach((t,e)=>{t.forEach(t=>{[this.instanceAnnotationsOrder,this.entityAnnotationsOrder,this.externalAnnotationsOrder].forEach(e=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)})})})}isMergedType(t){return this.mergedTypes.has(t)}getMergedType(t){return this.mergedTypes.has(t)?this.mergedTypes.get(t).type:null}annotationMergedPreference(t,e,n){return!!this.mergedTypes.has(t)&&this.mergedTypes.get(t).merged_types.indexOf(e.type)<this.mergedTypes.get(t).merged_types.indexOf(n.type)}static randomRgba(t){if("string"==typeof t){let e=0;for(let n=0;n<t.length;n++)e=t.charCodeAt(n)+((e<<5)-e);const n=[0,0,0];for(let t=0;t<3;t++)n[t]=e>>8*t&255;return`rgb(${n[0]}, ${n[1]}, ${n[2]})`}var e=Math.round,n=Math.random;return"rgb("+e(255*n())+","+e(255*n())+","+e(255*n())+")"}addProvenance(t,e){this.annotationMap.has(t)&&this.annotationMap.get(t).provenanceList.add(e)}addMultipleProvenance(t,e){e.forEach(e=>{this.addProvenance(t,e)})}getProvenanceList(t){return this.annotationMap.has(t)?Array.from(this.annotationMap.get(t).provenanceList):null}isTransformedToNumerical(t){return!0===this.annotationMap.get(t).transformToNumerical}}e.RcsbAnnotationConfig=o},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function c(t){try{s(r.next(t))}catch(t){a(t)}}function o(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,o)}s((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.RcsbFvUniprotBuilder=void 0;const i=n(102),a=n(6),c=n(103),o=n(104),s=n(9),l=n(12);class u{static buildUniprotMultipleEntitySequenceFv(t,e,n){return r(this,void 0,void 0,(function*(){const i="ALL";return new Promise((c,o)=>r(this,void 0,void 0,(function*(){const o=yield u.buildUniprotFv(t,n,{boardConfig:{rowTitleWidth:210}});c(o);const h=yield o.getTargets();s.RcsbFvCoreBuilder.buildSelectButton(t,e,[i].concat(h.sort((t,e)=>t.localeCompare(e))).map(c=>({label:c===i?c+" ("+h.length+")":c,onChange:()=>r(this,void 0,void 0,(function*(){if(c===i)s.RcsbFvCoreBuilder.clearAdditionalSelectButton(t,e),yield u.buildUniprotFv(t,n);else{const i=c.split(a.TagDelimiter.entity)[0],o=(yield l.rcsbFvCtxManager.getEntityToInstance(i)).getData().filter(t=>t.entityId===c.split(a.TagDelimiter.entity)[1]);yield u.buildUniprotEntityInstanceFv(t,n,o[0].entryId+a.TagDelimiter.entity+o[0].entityId,o[0].entryId+a.TagDelimiter.instance+o[0].asymId),s.RcsbFvCoreBuilder.addSelectButton(t,e,o.map(e=>({name:e.taxIds.length>0?e.names+" - "+e.taxIds.join(", "):e.names,label:(e.authId===e.asymId?e.authId:`${e.asymId} [auth ${e.authId}]`)+" - "+e.names,shortLabel:e.authId===e.asymId?e.authId:`${e.asymId} [auth ${e.authId}]`,onChange:()=>r(this,void 0,void 0,(function*(){yield u.buildUniprotEntityInstanceFv(t,n,e.entryId+a.TagDelimiter.entity+e.entityId,e.entryId+a.TagDelimiter.instance+e.asymId)}))})),{addTitle:!0})}}))})))})))}))}static buildUniprotFv(t,e,n){return r(this,void 0,void 0,(function*(){return new Promise((r,i)=>{try{s.RcsbFvCoreBuilder.createFv({elementId:t,fvModuleI:o.RcsbFvUniprot,config:{upAcc:e,additionalConfig:Object.assign({rcsbContext:{upAcc:e}},n),resolve:r}})}catch(t){i(t)}})}))}static buildUniprotEntityFv(t,e,n,c){return r(this,void 0,void 0,(function*(){return new Promise((o,l)=>r(this,void 0,void 0,(function*(){try{const r=n.split(a.TagDelimiter.entity)[0];s.RcsbFvCoreBuilder.getPolymerEntityInstanceMapAndBuildFv(t,r,i.RcsbFvUniprotEntity,{upAcc:e,entityId:n,additionalConfig:Object.assign({rcsbContext:{entryId:n.split(a.TagDelimiter.entity)[0],entityId:n.split(a.TagDelimiter.entity)[1],upAcc:e}},c),resolve:o})}catch(t){l(t)}})))}))}static buildUniprotEntityInstanceFv(t,e,n,i,o){return r(this,void 0,void 0,(function*(){return new Promise((l,u)=>r(this,void 0,void 0,(function*(){try{const r=n.split(a.TagDelimiter.entity)[0];yield s.RcsbFvCoreBuilder.getPolymerEntityInstanceMapAndBuildFv(t,r,c.RcsbFvUniprotInstance,{upAcc:e,entityId:n,instanceId:i,additionalConfig:Object.assign({rcsbContext:{entryId:n.split(a.TagDelimiter.entity)[0],entityId:n.split(a.TagDelimiter.entity)[1],asymId:i,upAcc:e}},o),resolve:l})}catch(t){u(t)}})))}))}}e.RcsbFvUniprotBuilder=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Operator=void 0;e.Operator=class{static uniqueValues(t){return Array.from(new Set(t))}static arrayChunk(t,e){const n=new Array;for(let r=0;r<t.length;r+=e)n.push(t.slice(r,r+e));return n}}},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function c(t){try{s(r.next(t))}catch(t){a(t)}}function o(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,o)}s((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.RcsbFvInstanceBuilder=void 0;const i=n(110),a=n(6),c=n(9),o=n(12),s=n(111);class l{static buildMultipleInstanceSequenceFv(t,e,n,i,a,o){return r(this,void 0,void 0,(function*(){c.RcsbFvCoreBuilder.buildSelectButton(t,e,i.map(e=>({label:e,shortLabel:e,onChange:()=>{l.buildInstanceSequenceFv(t,n,e,Object.assign(Object.assign({},a),{displayAuthId:!0}),o)}})),{addTitle:!0,dropdownTitle:"PDB"});const r=i[0];return yield l.buildInstanceSequenceFv(t,n,r,Object.assign(Object.assign({},a),{displayAuthId:!0}),o)}))}static buildInstanceSequenceFv(t,e,n,i,a){return r(this,void 0,void 0,(function*(){const r=(yield o.rcsbFvCtxManager.getEntityToInstance(n)).getData();return 0==r.length?void c.RcsbFvCoreBuilder.showMessage(t,"No sequence features are available"):l.buildSelectorInstanceFv(r,t,e,n,i,a)}))}static buildSelectorInstanceFv(t,e,n,i,a,o){var s;return r(this,void 0,void 0,(function*(){const i=t.filter(t=>null==a.filterInstances||a.filterInstances.has(t.asymId)),u=new Map;i.forEach(t=>{u.has(t.entityId)||u.set(t.entityId,new Array);const n=t.asymId===t.authId?t.asymId:`${t.asymId} [auth ${t.authId}]`;u.get(t.entityId).push({name:t.names+" - "+t.taxIds.join(", "),label:n,groupLabel:`ENTITY ${t.entityId} - ${t.names}`,shortLabel:!0===a.displayAuthId?t.authId:n,optId:t.authId,onChange:()=>r(this,void 0,void 0,(function*(){yield l.buildInstanceFv(e,t.rcsbId,o,t,a.module),"function"==typeof a.onChangeCallback&&a.onChangeCallback({pdbId:t.entryId,authId:t.authId,asymId:t.asymId})}))})});let h=0;if(null!=a.defaultValue){const t=i.findIndex(t=>t.authId===a.defaultValue);t>=0?h=t:a.defaultValue=void 0}c.RcsbFvCoreBuilder.buildSelectButton(e,n,Array.from(u.values()).map(t=>({label:t[0].groupLabel,options:t})),{addTitle:!0,defaultValue:a.defaultValue,dropdownTitle:null!==(s=a.dropdownTitle)&&void 0!==s?s:"INSTANCE",width:!0===a.displayAuthId?70:void 0,optionProps:a.selectButtonOptionProps});const d=yield l.buildInstanceFv(e,i[h].rcsbId,o,i[h],a.module);return"function"==typeof a.onChangeCallback&&a.onChangeCallback({pdbId:i[h].entryId,authId:i[h].authId,asymId:i[h].asymId}),d}))}static buildInstanceFv(t,e,n,o,l){return r(this,void 0,void 0,(function*(){return new Promise((r,u)=>{try{const u=e.split(a.TagDelimiter.instance)[0],h=e.split(a.TagDelimiter.instance)[1];c.RcsbFvCoreBuilder.getPolymerEntityInstanceMapAndBuildFv(t,u,"interface"===l?s.RcsbFvInterface:i.RcsbFvInstance,{instanceId:e,additionalConfig:Object.assign(Object.assign({},n),{rcsbContext:{authId:o.authId,entryId:u,asymId:h}}),resolve:r})}catch(t){u(t)}})}))}}e.RcsbFvInstanceBuilder=l},function(t,e,n){"use strict";(function(t,r){var i,a=n(43);i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:r;var c=Object(a.a)(i);e.a=c}).call(this,n(53),n(54)(t))},function(t,e,n){"use strict";function r(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}n.d(e,"a",(function(){return r}))},function(t,e,n){t.exports=n(55).Observable},function(t,e,n){"use strict";t.exports=function(t,e){e||(e={}),"function"==typeof e&&(e={cmp:e});var n,r="boolean"==typeof e.cycles&&e.cycles,i=e.cmp&&(n=e.cmp,function(t){return function(e,r){var i={key:e,value:t[e]},a={key:r,value:t[r]};return n(i,a)}}),a=[];return function t(e){if(e&&e.toJSON&&"function"==typeof e.toJSON&&(e=e.toJSON()),void 0!==e){if("number"==typeof e)return isFinite(e)?""+e:"null";if("object"!=typeof e)return JSON.stringify(e);var n,c;if(Array.isArray(e)){for(c="[",n=0;n<e.length;n++)n&&(c+=","),c+=t(e[n])||"null";return c+"]"}if(null===e)return"null";if(-1!==a.indexOf(e)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var o=a.push(e)-1,s=Object.keys(e).sort(i&&i(e));for(c="",n=0;n<s.length;n++){var l=s[n],u=t(e[l]);u&&(c&&(c+=","),c+=JSON.stringify(l)+":"+u)}return a.splice(o,1),"{"+c+"}"}}(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.print=function(t){return(0,r.visit)(t,{leave:a})};var r=n(5),i=n(60);var a={Name:function(t){return t.value},Variable:function(t){return"$"+t.name},Document:function(t){return o(t.definitions,"\n\n")+"\n"},OperationDefinition:function(t){var e=t.operation,n=t.name,r=l("(",o(t.variableDefinitions,", "),")"),i=o(t.directives," "),a=t.selectionSet;return n||i||r||"query"!==e?o([e,o([n,r]),i,a]," "):a},VariableDefinition:function(t){var e=t.variable,n=t.type,r=t.defaultValue,i=t.directives;return e+": "+n+l(" = ",r)+l(" ",o(i," "))},SelectionSet:function(t){return s(t.selections)},Field:function(t){var e=t.alias,n=t.name,r=t.arguments,i=t.directives,a=t.selectionSet,c=l("",e,": ")+n,s=c+l("(",o(r,", "),")");return s.length>80&&(s=c+l("(\n",u(o(r,"\n")),"\n)")),o([s,o(i," "),a]," ")},Argument:function(t){return t.name+": "+t.value},FragmentSpread:function(t){return"..."+t.name+l(" ",o(t.directives," "))},InlineFragment:function(t){var e=t.typeCondition,n=t.directives,r=t.selectionSet;return o(["...",l("on ",e),o(n," "),r]," ")},FragmentDefinition:function(t){var e=t.name,n=t.typeCondition,r=t.variableDefinitions,i=t.directives,a=t.selectionSet;return("fragment ".concat(e).concat(l("(",o(r,", "),")")," ")+"on ".concat(n," ").concat(l("",o(i," ")," "))+a)},IntValue:function(t){return t.value},FloatValue:function(t){return t.value},StringValue:function(t,e){var n=t.value;return t.block?(0,i.printBlockString)(n,"description"===e?"":" "):JSON.stringify(n)},BooleanValue:function(t){return t.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(t){return t.value},ListValue:function(t){return"["+o(t.values,", ")+"]"},ObjectValue:function(t){return"{"+o(t.fields,", ")+"}"},ObjectField:function(t){return t.name+": "+t.value},Directive:function(t){return"@"+t.name+l("(",o(t.arguments,", "),")")},NamedType:function(t){return t.name},ListType:function(t){return"["+t.type+"]"},NonNullType:function(t){return t.type+"!"},SchemaDefinition:c((function(t){var e=t.directives,n=t.operationTypes;return o(["schema",o(e," "),s(n)]," ")})),OperationTypeDefinition:function(t){return t.operation+": "+t.type},ScalarTypeDefinition:c((function(t){return o(["scalar",t.name,o(t.directives," ")]," ")})),ObjectTypeDefinition:c((function(t){var e=t.name,n=t.interfaces,r=t.directives,i=t.fields;return o(["type",e,l("implements ",o(n," & ")),o(r," "),s(i)]," ")})),FieldDefinition:c((function(t){var e=t.name,n=t.arguments,r=t.type,i=t.directives;return e+(d(n)?l("(\n",u(o(n,"\n")),"\n)"):l("(",o(n,", "),")"))+": "+r+l(" ",o(i," "))})),InputValueDefinition:c((function(t){var e=t.name,n=t.type,r=t.defaultValue,i=t.directives;return o([e+": "+n,l("= ",r),o(i," ")]," ")})),InterfaceTypeDefinition:c((function(t){var e=t.name,n=t.interfaces,r=t.directives,i=t.fields;return o(["interface",e,l("implements ",o(n," & ")),o(r," "),s(i)]," ")})),UnionTypeDefinition:c((function(t){var e=t.name,n=t.directives,r=t.types;return o(["union",e,o(n," "),r&&0!==r.length?"= "+o(r," | "):""]," ")})),EnumTypeDefinition:c((function(t){var e=t.name,n=t.directives,r=t.values;return o(["enum",e,o(n," "),s(r)]," ")})),EnumValueDefinition:c((function(t){return o([t.name,o(t.directives," ")]," ")})),InputObjectTypeDefinition:c((function(t){var e=t.name,n=t.directives,r=t.fields;return o(["input",e,o(n," "),s(r)]," ")})),DirectiveDefinition:c((function(t){var e=t.name,n=t.arguments,r=t.repeatable,i=t.locations;return"directive @"+e+(d(n)?l("(\n",u(o(n,"\n")),"\n)"):l("(",o(n,", "),")"))+(r?" repeatable":"")+" on "+o(i," | ")})),SchemaExtension:function(t){var e=t.directives,n=t.operationTypes;return o(["extend schema",o(e," "),s(n)]," ")},ScalarTypeExtension:function(t){return o(["extend scalar",t.name,o(t.directives," ")]," ")},ObjectTypeExtension:function(t){var e=t.name,n=t.interfaces,r=t.directives,i=t.fields;return o(["extend type",e,l("implements ",o(n," & ")),o(r," "),s(i)]," ")},InterfaceTypeExtension:function(t){var e=t.name,n=t.interfaces,r=t.directives,i=t.fields;return o(["extend interface",e,l("implements ",o(n," & ")),o(r," "),s(i)]," ")},UnionTypeExtension:function(t){var e=t.name,n=t.directives,r=t.types;return o(["extend union",e,o(n," "),r&&0!==r.length?"= "+o(r," | "):""]," ")},EnumTypeExtension:function(t){var e=t.name,n=t.directives,r=t.values;return o(["extend enum",e,o(n," "),s(r)]," ")},InputObjectTypeExtension:function(t){var e=t.name,n=t.directives,r=t.fields;return o(["extend input",e,o(n," "),s(r)]," ")}};function c(t){return function(e){return o([e.description,t(e)],"\n")}}function o(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(e=null==t?void 0:t.filter((function(t){return t})).join(n))&&void 0!==e?e:""}function s(t){return l("{\n",u(o(t,"\n")),"\n}")}function l(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=e&&""!==e?t+e+n:""}function u(t){return l(" ",t.replace(/\n/g,"\n "))}function h(t){return-1!==t.indexOf("\n")}function d(t){return null!=t&&t.some(h)}},function(t,e){t.exports=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(50);Object.defineProperty(e,"buildEntryChromosome",{enumerable:!0,get:function(){return r.buildEntryChromosome}}),Object.defineProperty(e,"buildFullChromosome",{enumerable:!0,get:function(){return r.buildFullChromosome}}),Object.defineProperty(e,"buildEntityChromosome",{enumerable:!0,get:function(){return r.buildEntityChromosome}}),Object.defineProperty(e,"buildChromosome",{enumerable:!0,get:function(){return r.buildChromosome}}),Object.defineProperty(e,"buildEntityFv",{enumerable:!0,get:function(){return r.buildEntityFv}}),Object.defineProperty(e,"buildEntitySummaryFv",{enumerable:!0,get:function(){return r.buildEntitySummaryFv}}),Object.defineProperty(e,"buildSingleEntitySummaryFv",{enumerable:!0,get:function(){return r.buildSingleEntitySummaryFv}}),Object.defineProperty(e,"buildInstanceFv",{enumerable:!0,get:function(){return r.buildInstanceFv}}),Object.defineProperty(e,"buildInstanceSequenceFv",{enumerable:!0,get:function(){return r.buildInstanceSequenceFv}}),Object.defineProperty(e,"buildMultipleInstanceSequenceFv",{enumerable:!0,get:function(){return r.buildMultipleInstanceSequenceFv}}),Object.defineProperty(e,"buildAssemblySequenceFv",{enumerable:!0,get:function(){return r.buildAssemblySequenceFv}}),Object.defineProperty(e,"buildPairwiseAlignment",{enumerable:!0,get:function(){return r.buildPairwiseAlignment}}),Object.defineProperty(e,"buildPfv",{enumerable:!0,get:function(){return r.buildPfv}}),Object.defineProperty(e,"buildMultipleAlignmentSequenceFv",{enumerable:!0,get:function(){return r.buildMultipleAlignmentSequenceFv}}),Object.defineProperty(e,"buildUniprotEntityFv",{enumerable:!0,get:function(){return r.buildUniprotEntityFv}}),Object.defineProperty(e,"buildUniprotEntityInstanceFv",{enumerable:!0,get:function(){return r.buildUniprotEntityInstanceFv}}),Object.defineProperty(e,"buildUniprotFv",{enumerable:!0,get:function(){return r.buildUniprotFv}}),Object.defineProperty(e,"unmount",{enumerable:!0,get:function(){return r.unmount}})},,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.buildChromosome=e.buildEntityChromosome=e.buildEntryChromosome=e.buildFullChromosome=e.buildPairwiseAlignment=e.buildPfv=e.buildUniprotEntityInstanceFv=e.buildUniprotEntityFv=e.buildInstanceFv=e.buildEntityFv=e.buildUniprotFv=e.buildAssemblySequenceFv=e.buildMultipleInstanceSequenceFv=e.buildInstanceSequenceFv=e.buildSingleEntitySummaryFv=e.buildEntitySummaryFv=e.buildMultipleAlignmentSequenceFv=e.unmount=void 0;const r=n(9),i=n(89),a=n(99),c=n(39),o=n(108),s=n(41),l=n(113),u=n(115);e.unmount=function(t){r.RcsbFvCoreBuilder.unmount(t)},e.buildMultipleAlignmentSequenceFv=function(t,e,n){return c.RcsbFvUniprotBuilder.buildUniprotMultipleEntitySequenceFv(t,e,n)},e.buildEntitySummaryFv=function(t,e,n){return o.RcsbFvEntityBuilder.buildEntitySummaryFv(t,e,n)},e.buildSingleEntitySummaryFv=function(t,e){return o.RcsbFvEntityBuilder.buildSingleEntitySummaryFv(t,e)},e.buildInstanceSequenceFv=function(t,e,n,r,i){return s.RcsbFvInstanceBuilder.buildInstanceSequenceFv(t,e,n,r,i)},e.buildMultipleInstanceSequenceFv=function(t,e,n,r,i,a){return s.RcsbFvInstanceBuilder.buildMultipleInstanceSequenceFv(t,e,n,r,i,a)},e.buildAssemblySequenceFv=function(t,e,n,r,i,a){return u.RcsbFvAssemblyBuilder.buildAssemblySequenceFv(t,e,n,r,i,a)},e.buildUniprotFv=function(t,e,n){return c.RcsbFvUniprotBuilder.buildUniprotFv(t,e,n)},e.buildEntityFv=function(t,e,n){return o.RcsbFvEntityBuilder.buildEntityFv(t,e,n)},e.buildInstanceFv=function(t,e,n){return s.RcsbFvInstanceBuilder.buildInstanceFv(t,e,n)},e.buildUniprotEntityFv=function(t,e,n,r){return c.RcsbFvUniprotBuilder.buildUniprotEntityFv(t,e,n,r)},e.buildUniprotEntityInstanceFv=function(t,e,n,r,i){return c.RcsbFvUniprotBuilder.buildUniprotEntityInstanceFv(t,e,n,r,i)},e.buildPfv=function(t,e){return l.RcsbFvProteinSequenceBuilder.buildPfv(t,e)},e.buildPairwiseAlignment=function(t,e,n){return a.RcsbFvPairwiseAligmentBuilder.buildPairwiseAlignment(t,e,n)},e.buildFullChromosome=function(t,e){return i.RcsbFvChromosomeBuilder.buildFullChromosome(t,e)},e.buildEntryChromosome=function(t,e,n,r){return i.RcsbFvChromosomeBuilder.buildEntryChromosome(t,e,n,r)},e.buildEntityChromosome=function(t,e,n){return i.RcsbFvChromosomeBuilder.buildEntityChromosome(t,e,n)},e.buildChromosome=function(t,e,n,r){return i.RcsbFvChromosomeBuilder.buildChromosome(t,n,r)}},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function c(t){try{s(r.next(t))}catch(t){a(t)}}function o(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,o)}s((r=r.apply(t,e||[])).next())}))},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.RcsbQueryAnnotations=void 0;const a=i(n(52)),c=n(13);e.RcsbQueryAnnotations=class{constructor(){this.client=new c.GraphQLRequest("borrego")}request(t){return r(this,void 0,void 0,(function*(){try{return(yield this.client.request({queryId:t.queryId,reference:t.reference,sources:t.sources,filters:t.filters,range:t.range},a.default)).annotations}catch(t){throw console.error(t),t}}))}}},function(t,e,n){"use strict";n.r(e),e.default="query QueryAnnotations($queryId: String!, $reference: SequenceReference, $sources:[Source], $range:[Int], $filters: [FilterInput]){\n annotations(\n queryId:$queryId\n reference:$reference\n sources:$sources\n range:$range\n filters:$filters\n ){\n source\n target_id\n features {\n type\n provenance_source\n description\n feature_id\n name\n feature_positions {\n beg_seq_id\n end_seq_id\n beg_ori_id\n end_ori_id\n range_id\n open_begin\n open_end\n value\n values\n }\n }\n }\n}"},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}Object.defineProperty(e,"__esModule",{value:!0}),e.Observable=void 0;var c=function(){return"function"==typeof Symbol},o=function(t){return c()&&Boolean(Symbol[t])},s=function(t){return o(t)?Symbol[t]:"@@"+t};c()&&!o("observable")&&(Symbol.observable=Symbol("observable"));var l=s("iterator"),u=s("observable"),h=s("species");function d(t,e){var n=t[e];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function f(t){var e=t.constructor;return void 0!==e&&null===(e=e[h])&&(e=void 0),void 0!==e?e:x}function v(t){return t instanceof x}function p(t){p.log?p.log(t):setTimeout((function(){throw t}))}function g(t){Promise.resolve().then((function(){try{t()}catch(t){p(t)}}))}function m(t){var e=t._cleanup;if(void 0!==e&&(t._cleanup=void 0,e))try{if("function"==typeof e)e();else{var n=d(e,"unsubscribe");n&&n.call(e)}}catch(t){p(t)}}function y(t){t._observer=void 0,t._queue=void 0,t._state="closed"}function b(t,e,n){t._state="running";var r=t._observer;try{var i=d(r,e);switch(e){case"next":i&&i.call(r,n);break;case"error":if(y(t),!i)throw n;i.call(r,n);break;case"complete":y(t),i&&i.call(r)}}catch(t){p(t)}"closed"===t._state?m(t):"running"===t._state&&(t._state="ready")}function w(t,e,n){if("closed"!==t._state){if("buffering"!==t._state)return"ready"!==t._state?(t._state="buffering",t._queue=[{type:e,value:n}],void g((function(){return function(t){var e=t._queue;if(e){t._queue=void 0,t._state="ready";for(var n=0;n<e.length&&(b(t,e[n].type,e[n].value),"closed"!==t._state);++n);}}(t)}))):void b(t,e,n);t._queue.push({type:e,value:n})}}var z=function(){function t(e,n){r(this,t),this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var i=new C(this);try{this._cleanup=n.call(void 0,i)}catch(t){i.error(t)}"initializing"===this._state&&(this._state="ready")}return a(t,[{key:"unsubscribe",value:function(){"closed"!==this._state&&(y(this),m(this))}},{key:"closed",get:function(){return"closed"===this._state}}]),t}(),C=function(){function t(e){r(this,t),this._subscription=e}return a(t,[{key:"next",value:function(t){w(this._subscription,"next",t)}},{key:"error",value:function(t){w(this._subscription,"error",t)}},{key:"complete",value:function(){w(this._subscription,"complete")}},{key:"closed",get:function(){return"closed"===this._subscription._state}}]),t}(),x=function(){function t(e){if(r(this,t),!(this instanceof t))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof e)throw new TypeError("Observable initializer must be a function");this._subscriber=e}return a(t,[{key:"subscribe",value:function(t){return"object"==typeof t&&null!==t||(t={next:t,error:arguments[1],complete:arguments[2]}),new z(t,this._subscriber)}},{key:"forEach",value:function(t){var e=this;return new Promise((function(n,r){if("function"==typeof t)var i=e.subscribe({next:function(e){try{t(e,a)}catch(t){r(t),i.unsubscribe()}},error:r,complete:n});else r(new TypeError(t+" is not a function"));function a(){i.unsubscribe(),n()}}))}},{key:"map",value:function(t){var e=this;if("function"!=typeof t)throw new TypeError(t+" is not a function");return new(f(this))((function(n){return e.subscribe({next:function(e){try{e=t(e)}catch(t){return n.error(t)}n.next(e)},error:function(t){n.error(t)},complete:function(){n.complete()}})}))}},{key:"filter",value:function(t){var e=this;if("function"!=typeof t)throw new TypeError(t+" is not a function");return new(f(this))((function(n){return e.subscribe({next:function(e){try{if(!t(e))return}catch(t){return n.error(t)}n.next(e)},error:function(t){n.error(t)},complete:function(){n.complete()}})}))}},{key:"reduce",value:function(t){var e=this;if("function"!=typeof t)throw new TypeError(t+" is not a function");var n=f(this),r=arguments.length>1,i=!1,a=arguments[1],c=a;return new n((function(n){return e.subscribe({next:function(e){var a=!i;if(i=!0,!a||r)try{c=t(c,e)}catch(t){return n.error(t)}else c=e},error:function(t){n.error(t)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(c),n.complete()}})}))}},{key:"concat",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=f(this);return new i((function(e){var r,a=0;return function t(c){r=c.subscribe({next:function(t){e.next(t)},error:function(t){e.error(t)},complete:function(){a===n.length?(r=void 0,e.complete()):t(i.from(n[a++]))}})}(t),function(){r&&(r.unsubscribe(),r=void 0)}}))}},{key:"flatMap",value:function(t){var e=this;if("function"!=typeof t)throw new TypeError(t+" is not a function");var n=f(this);return new n((function(r){var i=[],a=e.subscribe({next:function(e){if(t)try{e=t(e)}catch(t){return r.error(t)}var a=n.from(e).subscribe({next:function(t){r.next(t)},error:function(t){r.error(t)},complete:function(){var t=i.indexOf(a);t>=0&&i.splice(t,1),c()}});i.push(a)},error:function(t){r.error(t)},complete:function(){c()}});function c(){a.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(t){return t.unsubscribe()})),a.unsubscribe()}}))}},{key:u,value:function(){return this}}],[{key:"from",value:function(e){var n="function"==typeof this?this:t;if(null==e)throw new TypeError(e+" is not an object");var r=d(e,u);if(r){var i=r.call(e);if(Object(i)!==i)throw new TypeError(i+" is not an object");return v(i)&&i.constructor===n?i:new n((function(t){return i.subscribe(t)}))}if(o("iterator")&&(r=d(e,l)))return new n((function(t){g((function(){if(!t.closed){var n=!0,i=!1,a=void 0;try{for(var c,o=r.call(e)[Symbol.iterator]();!(n=(c=o.next()).done);n=!0){var s=c.value;if(t.next(s),t.closed)return}}catch(t){i=!0,a=t}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}t.complete()}}))}));if(Array.isArray(e))return new n((function(t){g((function(){if(!t.closed){for(var n=0;n<e.length;++n)if(t.next(e[n]),t.closed)return;t.complete()}}))}));throw new TypeError(e+" is not observable")}},{key:"of",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i="function"==typeof this?this:t;return new i((function(t){g((function(){if(!t.closed){for(var e=0;e<n.length;++e)if(t.next(n[e]),t.closed)return;t.complete()}}))}))}},{key:h,get:function(){return this}}]),t}();e.Observable=x,c()&&Object.defineProperty(x,Symbol("extensions"),{value:{symbol:u,hostReportError:p},configurable:!0})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return c(t,[])};var r,i=(r=n(30))&&r.__esModule?r:{default:r};function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){switch(a(t)){case"string":return JSON.stringify(t);case"function":return t.name?"[function ".concat(t.name,"]"):"[function]";case"object":return null===t?"null":function(t,e){if(-1!==e.indexOf(t))return"[Circular]";var n=[].concat(e,[t]),r=function(t){var e=t[String(i.default)];if("function"==typeof e)return e;if("function"==typeof t.inspect)return t.inspect}(t);if(void 0!==r){var a=r.call(t);if(a!==t)return"string"==typeof a?a:c(a,n)}else if(Array.isArray(t))return function(t,e){if(0===t.length)return"[]";if(e.length>2)return"[Array]";for(var n=Math.min(10,t.length),r=t.length-n,i=[],a=0;a<n;++a)i.push(c(t[a],e));1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items"));return"["+i.join(", ")+"]"}(t,n);return function(t,e){var n=Object.keys(t);if(0===n.length)return"{}";if(e.length>2)return"["+function(t){var e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if("Object"===e&&"function"==typeof t.constructor){var n=t.constructor.name;if("string"==typeof n&&""!==n)return n}return e}(t)+"]";return"{ "+n.map((function(n){return n+": "+c(t[n],e)})).join(", ")+" }"}(t,n)}(t,e);default:return String(t)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isNode=function(t){return null!=t&&"string"==typeof t.kind},e.Token=e.Location=void 0;var r,i=(r=n(58))&&r.__esModule?r:{default:r};var a=function(){function t(t,e,n){this.start=t.start,this.end=e.end,this.startToken=t,this.endToken=e,this.source=n}return t.prototype.toJSON=function(){return{start:this.start,end:this.end}},t}();e.Location=a,(0,i.default)(a);var c=function(){function t(t,e,n,r,i,a,c){this.kind=t,this.start=e,this.end=n,this.line=r,this.column=i,this.value=c,this.prev=a,this.next=null}return t.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},t}();e.Token=c,(0,i.default)(c)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.prototype.toJSON;"function"==typeof e||(0,r.default)(0),t.prototype.inspect=e,i.default&&(t.prototype[i.default]=e)};var r=a(n(59)),i=a(n(30));function a(t){return t&&t.__esModule?t:{default:t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(!Boolean(t))throw new Error(null!=e?e:"Unexpected invariant triggered.")}},function(t,e,n){"use strict";function r(t){for(var e=0;e<t.length;++e)if(" "!==t[e]&&"\t"!==t[e])return!1;return!0}function i(t){for(var e,n=!0,r=!0,i=0,a=null,c=0;c<t.length;++c)switch(t.charCodeAt(c)){case 13:10===t.charCodeAt(c+1)&&++c;case 10:n=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!n&&(null===a||i<a)&&(a=i),r=!1}return null!==(e=a)&&void 0!==e?e:0}Object.defineProperty(e,"__esModule",{value:!0}),e.dedentBlockStringValue=function(t){var e=t.split(/\r\n|[\n\r]/g),n=i(t);if(0!==n)for(var a=1;a<e.length;a++)e[a]=e[a].slice(n);var c=0;for(;c<e.length&&r(e[c]);)++c;var o=e.length;for(;o>c&&r(e[o-1]);)--o;return e.slice(c,o).join("\n")},e.getBlockStringIndentation=i,e.printBlockString=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===t.indexOf("\n"),i=" "===t[0]||"\t"===t[0],a='"'===t[t.length-1],c="\\"===t[t.length-1],o=!r||a||c||n,s="";!o||r&&i||(s+="\n"+e);s+=e?t.replace(/\n/g,"\n"+e):t,o&&(s+="\n");return'"""'+s.replace(/"""/g,'\\"""')+'"""'}},function(t){t.exports=JSON.parse('{"schema":"https://1d-coordinates-groups.rcsb.org/graphql","documents":"src/RcsbGraphQL/Queries/Borrego/*.graphql","interfaceOutputFile":"src/RcsbGraphQL/Types/Borrego/GqlTypes.ts"}')},function(t){t.exports=JSON.parse('{"schema":"http://data-interfaces-dev.rcsb.org/graphql","documents":"src/RcsbGraphQL/Queries/Yosemite/*.graphql","interfaceOutputFile":"src/RcsbGraphQL/Types/Yosemite/GqlTypes.ts","pluginFile":[{"pluginFile":"src/RcsbGraphQL/Plugins/fullpath_schema_keys.js","outputFile":"src/RcsbGraphQL/Types/Yosemite/CorePaths.ts"},{"pluginFile":"src/RcsbGraphQL/Plugins/enumerate_schema_keys.js","outputFile":"src/RcsbGraphQL/Types/Yosemite/CoreConstants.ts"}]}')},function(t,e,n){"use strict";n.r(e),e.default="query QueryAlignment($queryId: String!, $from: SequenceReference, $to:SequenceReference, $range:[Int]){\n alignment(\n queryId:$queryId\n from:$from\n to:$to\n range:$range\n ){\n query_sequence\n target_alignment {\n target_id\n orientation\n target_sequence\n coverage {\n query_coverage\n query_length\n target_coverage\n target_length\n }\n aligned_regions {\n query_begin\n query_end\n target_begin\n target_end\n exon_shift\n }\n }\n\n }\n}"},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function c(t){try{s(r.next(t))}catch(t){a(t)}}function o(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,o)}s((r=r.apply(t,e||[])).next())}))},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.RcsbQueryEntryInstances=void 0;const a=i(n(65)),c=n(13);e.RcsbQueryEntryInstances=class{constructor(){this.client=new c.GraphQLRequest("yosemite")}request(t){return r(this,void 0,void 0,(function*(){try{return(yield this.client.request({entry_id:t.entry_id},a.default)).entry}catch(t){throw console.error(t),t}}))}}},function(t,e,n){"use strict";n.r(e),e.default="query QueryEntryInstance($entry_id: String!){\n entry(\n entry_id:$entry_id\n ){\n polymer_entities {\n polymer_entity_instances{\n rcsb_id\n polymer_entity{\n rcsb_polymer_entity{\n pdbx_description\n }\n entity_poly{\n rcsb_entity_polymer_type\n }\n rcsb_entity_source_organism {\n ncbi_scientific_name\n }\n }\n rcsb_polymer_entity_instance_container_identifiers{\n asym_id\n auth_asym_id\n entry_id\n entity_id\n auth_to_entity_poly_seq_mapping\n }\n }\n }\n assemblies {\n rcsb_assembly_container_identifiers {\n assembly_id\n }\n pdbx_struct_assembly_gen{\n asym_id_list\n }\n\n }\n }\n}"},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function c(t){try{s(r.next(t))}catch(t){a(t)}}function o(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,o)}s((r=r.apply(t,e||[])).next())}))},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.RcsbQueryMultipleEntityInstances=void 0;const a=i(n(67)),c=n(13);e.RcsbQueryMultipleEntityInstances=class{constructor(){this.client=new c.GraphQLRequest("yosemite")}request(t){return r(this,void 0,void 0,(function*(){try{return(yield this.client.request({entity_ids:t.entity_ids},a.default)).polymer_entities}catch(t){throw console.error(t),t}}))}}},function(t,e,n){"use strict";n.r(e),e.default="query QueryMultipleEntityInstances($entity_ids: [String!]!){\n polymer_entities(\n entity_ids:$entity_ids\n ){\n polymer_entity_instances{\n rcsb_id\n polymer_entity{\n rcsb_polymer_entity{\n pdbx_description\n }\n entity_poly{\n rcsb_entity_polymer_type\n }\n rcsb_entity_source_organism {\n ncbi_scientific_name\n }\n }\n rcsb_polymer_entity_instance_container_identifiers{\n asym_id\n auth_asym_id\n entry_id\n entity_id\n auth_to_entity_poly_seq_mapping\n }\n }\n }\n}"},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function c(t){try{s(r.next(t))}catch(t){a(t)}}function o(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,o)}s((r=r.apply(t,e||[])).next())}))},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.RcsbQueryMultipleEntriesProperties=void 0;const a=i(n(69)),c=n(13);e.RcsbQueryMultipleEntriesProperties=class{constructor(){this.client=new c.GraphQLRequest("yosemite")}request(t){return r(this,void 0,void 0,(function*(){try{return(yield this.client.request({entry_ids:t.entry_ids},a.default)).entries}catch(t){throw console.error(t),t}}))}}},function(t,e,n){"use strict";n.r(e),e.default="query multiple_entries_properties($entry_ids: [String!]!){\n entries(entry_ids:$entry_ids){\n rcsb_id\n rcsb_entry_info{\n experimental_method\n resolution_combined\n }\n }\n}"},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function c(t){try{s(r.next(t))}catch(t){a(t)}}function o(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,o)}s((r=r.apply(t,e||[])).next())}))},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.RcsbQueryInterfaceInstances=void 0;const a=n(13),c=i(n(71));e.RcsbQueryInterfaceInstances=class{constructor(){this.client=new a.GraphQLRequest("yosemite")}request(t){return r(this,void 0,void 0,(function*(){try{return(yield this.client.request(t,c.default)).interfaces}catch(t){throw console.error(t),t}}))}}},function(t,e,n){"use strict";n.r(e),e.default="query QueryInterfaceInstance($interface_ids: [String!]!){\n interfaces(\n interface_ids:$interface_ids\n ){\n rcsb_interface_container_identifiers{\n rcsb_id\n interface_id\n assembly_id\n entry_id\n }\n rcsb_interface_partner{\n interface_partner_identifier{\n asym_id\n }\n }\n }\n}"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EntryAssemblyTranslate=void 0;e.EntryAssemblyTranslate=class{constructor(t){this.rawData=t}getData(){return this.rawData}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PolymerEntityChromosomeTranslate=void 0;e.PolymerEntityChromosomeTranslate=class{constructor(t){this.rawData=t}getData(){return this.rawData}}},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function c(t){try{s(r.next(t))}catch(t){a(t)}}function o(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,o)}s((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.PolymerEntityChromosomeCollector=void 0;const i=n(4),a=n(10);e.PolymerEntityChromosomeCollector=class{constructor(){this.rcsbFvQuery=new a.RcsbClient}collect(t){return r(this,void 0,void 0,(function*(){const e=new Map;return(yield Promise.all(t.map(t=>this.entityChromosomes(t)))).forEach((n,r)=>{var i;null===(i=n.target_alignment)||void 0===i||i.forEach(n=>{n.aligned_regions.length>0&&(e.has(t[r])||e.set(t[r],new Array),e.get(t[r]).push(n.target_id))})}),e}))}entityChromosomes(t){return r(this,void 0,void 0,(function*(){const e={from:i.SequenceReference.PdbEntity,to:i.SequenceReference.NcbiGenome,queryId:t};return yield this.rcsbFvQuery.requestAlignment(e)}))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InterfaceInstanceTranslate=void 0;e.InterfaceInstanceTranslate=class{constructor(t){this.instances=new Map,this.rawData=t,t.forEach(t=>{this.instances.set(t.rcsbId,t.asymIds)})}getInstances(t){return this.instances.get(t)}}},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function c(t){try{s(r.next(t))}catch(t){a(t)}}function o(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,o)}s((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.InterfaceInstanceCollector=void 0;const i=n(10);e.InterfaceInstanceCollector=class{constructor(){this.rcsbFvQuery=new i.RcsbClient}collect(t){return r(this,void 0,void 0,(function*(){try{return(yield this.rcsbFvQuery.requestInterfaceInstances(t)).map(t=>{return{rcsbId:(e=t).rcsb_interface_container_identifiers.rcsb_id,assemblyId:e.rcsb_interface_container_identifiers.assembly_id,interfaceId:e.rcsb_interface_container_identifiers.interface_id,asymIds:[e.rcsb_interface_partner[0].interface_partner_identifier.asym_id,e.rcsb_interface_partner[1].interface_partner_identifier.asym_id]};var e})}catch(t){throw console.log(t),t}}))}}},function(t,e,n){"use strict";
65
+ */var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function c(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,o,s=c(t),l=1;l<arguments.length;l++){for(var u in n=Object(arguments[l]))i.call(n,u)&&(s[u]=n[u]);if(r){o=r(n);for(var h=0;h<o.length;h++)a.call(n,o[h])&&(s[o[h]]=n[o[h]])}}return s}},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function c(t){try{s(r.next(t))}catch(t){a(t)}}function o(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,o)}s((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.SequenceCollector=void 0;const i=n(4),a=n(11),c=n(6),o=n(91),s=n(10),l=n(14),u=n(21);e.SequenceCollector=class{constructor(){this.targets=new Array,this.requestStatus="pending",this.dynamicDisplay=!1,this.helper=new o.SequenceCollectorHelper,this.rcsbFvQuery=new s.RcsbClient,this.targetsSubject=new l.Subject,this.alignmentResponseSubject=new l.Subject,this.tagObservedRegions=(t,e)=>[Object.assign(Object.assign({},t),{unModelled:!1})]}collect(t,e,n,i){var a;return r(this,void 0,void 0,(function*(){"function"==typeof i&&(this.tagObservedRegions=i),this.alignmentResponse=yield this.requestAlignment(t),null!=this.alignmentResponse.query_sequence&&0!=this.alignmentResponse.query_sequence.length||(console.warn(this.alignmentResponse),console.log("Sequence not found in alignments from "+t.from+" to "+t.to+" queryId "+t.queryId)),this.sequenceLength=null===(a=this.alignmentResponse.query_sequence)||void 0===a?void 0:a.length;const r=this.alignmentResponse.query_sequence,c=this.alignmentResponse.target_alignment,o=e?c.filter(t=>e.includes(t.target_id)):c;"function"==typeof n&&o&&(yield n(o.map(t=>t.target_id)));const s={targetAlignmentList:o,queryId:t.queryId,querySequence:r,filterByTargetContains:t.filterByTargetContains,to:t.to,from:t.from,excludeAlignmentLinks:t.excludeAlignmentLinks,fitTitleWidth:t.fitTitleWidth},l=this.buildAlignments(s);return this.complete(),{sequence:r?[this.buildSequenceTrack(t,r)]:null,alignment:l}}))}getTargets(){return r(this,void 0,void 0,(function*(){return new Promise((t,e)=>{"complete"===this.requestStatus?t(this.targets):u.ObservableHelper.oneTimeSubscription(t,this.targetsSubject)})}))}getAlignmentResponse(){return r(this,void 0,void 0,(function*(){return new Promise((t,e)=>{"complete"===this.requestStatus?t(this.alignmentResponse):u.ObservableHelper.oneTimeSubscription(t,this.alignmentResponseSubject)})}))}getSequenceLength(){return this.sequenceLength}setPolymerEntityInstanceTranslator(t){this.helper.setPolymerEntityInstanceTranslator(t),this.polymerEntityInstanceTranslator=t}setExternalTrackBuilder(t){this.externalTrackBuilder=t}complete(){this.requestStatus="complete",this.targetsSubject.next(this.targets)}buildAlignments(t){const{alignments:e,targets:n}=this.helper.buildAlignments(t,this.dynamicDisplay,this.tagObservedRegions);return this.targets=n,console.log("Alignment Processing Complete"),e}buildSequenceTrack(t,e){let n=t.from.replace("_"," ")+" "+c.TagDelimiter.sequenceTitle,r=this.helper.buildSequenceRowTitle(t);const o={trackId:"mainSequenceTrack_"+t.queryId,displayType:"sequence",trackColor:"#F9F9F9",displayColor:"#000000",rowTitle:r,rowPrefix:n,nonEmptyDisplay:!0,trackData:this.helper.buildSequenceData({sequenceData:[],sequence:e,begin:1,oriBegin:null,queryId:t.queryId,targetId:null,from:t.from,to:null},!0)};return t.from===i.SequenceReference.PdbEntity||t.from===i.SequenceReference.PdbInstance?o.titleFlagColor=a.RcsbAnnotationConstants.provenanceColorCode.rcsbPdb:o.titleFlagColor=a.RcsbAnnotationConstants.provenanceColorCode.external,o}collectGenomeRegions(){}requestAlignment(t){return r(this,void 0,void 0,(function*(){return this.requestStatus="pending",t.dynamicDisplay&&(this.dynamicDisplay=!0),yield this.rcsbFvQuery.requestAlignment({queryId:t.queryId,from:t.from,to:t.to})}))}}},function(t){t.exports=JSON.parse('{"provenance_color_code":{"external":"#DB9128","rcsb_pdb":"#5e94c3"},"merge":[{"merged_types":["UNOBSERVED_RESIDUE_XYZ","UNOBSERVED_ATOM_XYZ"],"type":"UNOBSERVED","title":"UNMODELED","display":"block"},{"merged_types":["TOPOLOGICAL_DOMAIN","TRANSMEMBRANE_REGION","INTRAMEMBRANE_REGION"],"type":"MEMBRANE_TOPOLOGY","title":"MEMBRANE TOPOLOGY","display":"block"},{"merged_types":["INITIATOR_METHIONINE","CHAIN","SIGNAL_PEPTIDE"],"type":"MOLECULE_PROCESSING","title":"MOLECULE PROCESSING","display":"block"},{"merged_types":["HELIX_P","SHEET"],"type":"SECONDARY_STRUCTURE","title":"SECONDARY STRUCTURE","display":"block"},{"merged_types":["SCOP_2_FAMILY","SCOP_2_SUPERFAMILY","SCOP_2_B_SUPERFAMILY","SCOP"],"type":"ALL_SCOP","title":"SCOP","display":"block"}],"external_data_order":["PFAM","CATH","ALL_SCOP","SCOP","SCOP_2_B_SUPERFAMILY","SCOP2_FAMILY","SCOP2_SUPERFAMILY","ECOD","IMGT_ANTIBODY_DESCRIPTION","IMGT_ANTIBODY_DOMAIN_NAME","IMGT_ANTIBODY_GENE_ALLELE_NAME","IMGT_ANTIBODY_ORGANISM_NAME","IMGT_ANTIBODY_PROTEIN_NAME","IMGT_ANTIBODY_RECEPTOR_DESCRIPTION","IMGT_ANTIBODY_RECEPTOR_TYPE","SABDAB_ANTIBODY_ANTIGEN_NAME","SABDAB_ANTIBODY_NAME","SABDAB_ANTIBODY_TARGET","SABDAB_ANTIBODY_HEAVY_CHAIN_SUBCLASS","SABDAB_ANTIBODY_LIGHT_CHAIN_SUBCLASS","SABDAB_ANTIBODY_LIGHT_CHAIN_TYPE","MOLECULE_PROCESSING","MEMBRANE_TOPOLOGY","MEMBRANE_SEGMENT","CHAIN","INITIATOR_METHIONINE","SEQUENCE_VARIANT","GLYCOSYLATION_SITE","LIPID_MOIETY_BINDING_REGION","CROSS_LINK","DISULFIDE_BOND","METAL_ION_BINDING_SITE","NUCLEOTIDE_PHOSPHATE_BINDING_REGION","DNA_BINDING_REGION","ACTIVE_SITE","MODIFIED_RESIDUE","MUTAGENESIS_SITE","SEQUENCE_CONFLICT","SITE","SHORT_SEQUENCE_MOTIF","ZINC_FINGER_REGION","PROPEPTIDE","TRANSMEMBRANE_REGION","INTRAMEMBRANE_REGION","TOPOLOGICAL_DOMAIN","COILED_COIL_REGION","REPEAT","DOMAIN","REGION_OF_INTEREST","COMPOSITIONALLY_BIASED_REGION","SPLICE_VARIANT","NON_TERMINAL_RESIDUE","TURN","SIGNAL_PEPTIDE","CARD_MODEL","CALCIUM_BINDING_REGION","PEPTIDE"],"instance_order":["SECONDARY_STRUCTURE","HELIX_P","SHEET","UNOBSERVED","UNOBSERVED_RESIDUE_XYZ","UNOBSERVED_ATOM_XYZ","ZERO_OCCUPANCY_RESIDUE_XYZ","ZERO_OCCUPANCY_ATOM_XYZ","RAMACHANDRAN_OUTLIER","ANGLE_OUTLIER","BOND_OUTLIER","ROTAMER_OUTLIER","RSRZ_OUTLIER","RSCC_OUTLIER","RSRCC_OUTLIER","MOGUL_ANGLE_OUTLIER","MOGUL_BOND_OUTLIER","STEREO_OUTLIER","CIS_PEPTIDE","BINDING_SITE","DISULFIDE_BRIDGE","COVALENT_BOND","METAL_COORDINATION","HYDROGEN_BOND"],"entity_order":["ARTIFACT","MUTATION","MODIFIED_MONOMER","HYDROPATHY","DISORDER","DISORDER_BINDING"],"config":[{"type":"CARD_MODEL","color":"#4d901b","display":"block","title":"CARD"},{"type":"ECOD","color":"#42d0b1","display":"block","title":"ECOD"},{"type":"IMGT_ANTIBODY_DOMAIN_NAME","color":"#3c0d7f","display":"block","title":"ANTIBODY DOMAIN"},{"type":"SABDAB_ANTIBODY_HEAVY_CHAIN_SUBCLASS","color":"#4c9f0d","display":"block","title":"ANTIBODY HEAVY CHAIN","ignore":true},{"type":"SABDAB_ANTIBODY_LIGHT_CHAIN_SUBCLASS","color":"#4c9f0d","display":"block","title":"ANTIBODY HEAVY CHAIN","ignore":true},{"type":"SABDAB_ANTIBODY_LIGHT_CHAIN_TYPE","color":"#4c9f0d","display":"block","title":"ANTIBODY HEAVY CHAIN","ignore":true},{"type":"IMGT_ANTIBODY_DESCRIPTION","color":"#bf5c0d","display":"block","title":"ANTIBODY DESCRIPTION","ignore":true},{"type":"IMGT_ANTIBODY_GENE_ALLELE_NAME","color":"#bf5c0d","display":"block","title":"ANTIBODY GENE NAME","ignore":true},{"type":"IMGT_ANTIBODY_ORGANISM_NAME","color":"#bf5c0d","display":"block","title":"ANTIBODY ORGANISM NAME","ignore":true},{"type":"IMGT_ANTIBODY_PROTEIN_NAME","color":"#bf5c0d","display":"block","title":"ANTIBODY PROTEIN NAME","ignore":true},{"type":"IMGT_ANTIBODY_RECEPTOR_DESCRIPTION","color":"#bf5c0d","display":"block","title":"ANTIBODY RECEPTOR DESCRIPTION","ignore":true},{"type":"IMGT_ANTIBODY_RECEPTOR_TYPE","color":"#bf5c0d","display":"block","title":"ANTIBODY RECEPTOR TYPE","ignore":true},{"type":"SABDAB_ANTIBODY_ANTIGEN_NAME","color":"#bf5c0d","display":"block","title":"ANTIBODY ANTIGEN NAME","ignore":true},{"type":"SABDAB_ANTIBODY_NAME","color":"#bf5c0d","display":"block","title":"ANTIBODY NAME","ignore":true},{"type":"SABDAB_ANTIBODY_TARGET","color":"#bf5c0d","display":"block","title":"ANTIBODY TARGET","ignore":true},{"type":"HOMOLOGY MODELLING","color":"#2fcc5d","display":"block","title":"HOMOLOGY MODELS"},{"type":"DISORDER_BINDING","display":"area","color":{"thresholds":[0.5],"colors":["#8484FF","#FF8484"]},"height":45,"title":"DISORDERED BINDING","domain":[0,1]},{"type":"HYDROPATHY","display":"area","color":{"thresholds":[0],"colors":["#8484FF","#FF8484"]},"height":45,"title":"HYDROPATHY"},{"type":"DISORDER","display":"area","color":{"thresholds":[0.5],"colors":["#8484FF","#FF8484"]},"height":45,"title":"DISORDER","domain":[0,1]},{"type":"SEQUENCE_VARIANT","display":"composite","color":"#ff6666","title":"GENOME VARIANT"},{"type":"ZINC_FINGER_REGION","display":"block","color":"#66ff66","title":"ZINC FINGER"},{"type":"NUCLEOTIDE_PHOSPHATE_BINDING_REGION","display":"block","color":"#ffcc00","title":"NUCLEOTIDE BINDING"},{"type":"DNA_BINDING_REGION","display":"block","color":"#ff5c9f","title":"DNA BINDING"},{"type":"ACTIVE_SITE","display":"pin","color":"#ff88cc","title":"ACTIVE SITE"},{"type":"COMPOSITIONALLY_BIASED_REGION","display":"block","color":"#D58874","title":"COMPOSITIONAL BIAS"},{"type":"BINDING_SITE","display":"pin","color":"#984657","title":"BINDING SITE","key":"name","addToType":["feature_id"]},{"type":"MUTAGENESIS_SITE","display":"composite","color":"#b82a80","title":"MUTAGENESIS"},{"type":"SEQUENCE_CONFLICT","display":"composite","color":"#e80368","title":"CONFLICT"},{"type":"METAL_ION_BINDING_SITE","display":"pin","color":"#41a754","title":"METAL BINDING"},{"type":"CROSS_LINK","display":"pin","color":"#0a39af","title":"CROSS-LINK"},{"type":"INITIATOR_METHIONINE","display":"pin","color":"#e2916d","title":"INITIATOR METHIONINE"},{"type":"MODIFIED_RESIDUE","display":"pin","color":"#44b8fd","title":"MODIFIED RESIDUE"},{"type":"TURN","display":"block","color":"#155870","title":"TURN"},{"type":"CHAIN","display":"block","color":"#ad9c5e","title":"CHAIN"},{"type":"DOMAIN","display":"block","color":"#715e76","title":"DOMAIN"},{"type":"SITE","display":"composite","color":"#b5748d","title":"SITE"},{"type":"SHORT_SEQUENCE_MOTIF","display":"block","color":"#6a508e","title":"LINEAR MOTIF"},{"type":"SPLICE_VARIANT","display":"block","color":"#f03634","title":"SEQUENCE SPLICING"},{"type":"LIPID_MOIETY_BINDING_REGION","display":"pin","color":"#06cb7a","title":"LIPIDATION"},{"type":"REGION_OF_INTEREST","display":"block","color":"#6797be","title":"REGION"},{"type":"PROPEPTIDE","display":"block","color":"#94d687","title":"PROPEPTIDE"},{"type":"UNOBSERVED_RESIDUE_XYZ","display":"block","color":"#cccccc","title":"UNMODELED RESIDUE"},{"type":"ANGLE_OUTLIER","display":"area","color":"#aa33aa","height":45,"title":"ANGLE OUTLIER","transformToNumerical":true},{"type":"ROTAMER_OUTLIER","display":"pin","color":"#33aaaa","title":"ROTAMER OUTLIER"},{"type":"RAMACHANDRAN_OUTLIER","display":"pin","color":"#cc3333","title":"RAMACHANDRAN OUTLIER"},{"type":"RSRCC_OUTLIER","display":"pin","color":"#cc33cc","title":"RSRCC OUTLIER"},{"type":"BOND_OUTLIER","display":"area","color":"#33aa33","height":45,"title":"BOND OUTLIER","transformToNumerical":true},{"type":"MOGUL_BOND_OUTLIER","display":"area","color":"#fcd303","height":45,"title":"MOGUL-BOND OUTLIER","transformToNumerical":true},{"type":"MOGUL_ANGLE_OUTLIER","display":"area","color":"#d303fc","height":45,"title":"MOGUL-ANGLE OUTLIER","transformToNumerical":true},{"type":"MUTATION","display":"pin","color":"#ebae56","title":"MUTATION"},{"type":"mutation","display":"pin","color":"#ebae56","title":"MUTATION"},{"type":"HELIX_P","display":"block","color":"#e43372","title":"HELIX"},{"type":"SHEET","display":"block","color":"#f1d23b","title":"BETA STRAND"},{"type":"CATH","display":"block","color":"#e4ad56","title":"CATH"},{"type":"SCOP","display":"block","color":"#455d5a","title":"SCOP"},{"type":"SCOP_2_FAMILY","display":"block","color":"#455d5a","title":"SCOP FAMILY"},{"type":"SCOP_2_B_SUPERFAMILY","display":"block","color":"#455d5a","title":"SCOP SUPERFAMILY"},{"type":"SCOP_2_SUPERFAMILY","display":"block","color":"#455d5a","title":"SCOP SUPERFAMILY"},{"type":"PFAM","display":"block","color":"#ECACA6","title":"PFAM"},{"type":"RSRZ_OUTLIER","display":"pin","color":"#3333aa","title":"RSRZ OUTLIER"},{"type":"RSCC_OUTLIER","display":"pin","color":"#63339a","title":"RSCC OUTLIER"},{"type":"UNOBSERVED_ATOM_XYZ","display":"block","color":"#b2997f","title":"UNMODELED ATOM"},{"type":"ZERO_OCCUPANCY_ATOM_XYZ","display":"composite","color":"#aca86a","title":"ZERO OCCUPANCY ATOM"},{"type":"CIS_PEPTIDE","display":"bond","color":"#761e47","title":"CIS-PEPTIDE"},{"type":"HYDROGEN_BOND","display":"bond","color":"#76Ae47","title":"HYDROGEN BOND","ignore":true},{"type":"ARTIFACT","display":"block","color":"#4c3f0f","title":"ARTIFACT"},{"type":"ARTIFACT","display":"block","color":"#4c3f0f","title":"ARTIFACT"},{"type":"TOPOLOGICAL_DOMAIN","display":"block","color":"#853faf","title":"TOPOLOGICAL DOMAIN"},{"type":"INTRAMEMBRANE_REGION","display":"block","color":"#c58f0f","title":"INTRAMEMBRANE REGION"},{"type":"TRANSMEMBRANE_REGION","display":"block","color":"#8fc50f","title":"TRANSMEMBRANE REGION"},{"type":"REPEAT","display":"block","color":"#2ea37b","title":"REPEAT"},{"type":"SIGNAL_PEPTIDE","display":"block","color":"#2ea3bb","title":"SIGNAL PEPTIDE"},{"type":"COILED_COIL_REGION","display":"block","color":"#a2ac85","title":"COILED COIL REGION"},{"type":"DISULFIDE_BRIDGE","display":"bond","color":"#6a534a","title":"DISULFIDE BRIDGE"},{"type":"GLYCOSYLATION_SITE","display":"pin","color":"#6af34a","title":"GLYCOSYLATION"},{"type":"NON_TERMINAL_RESIDUE","display":"pin","color":"#6af3fa","title":"NON-TERMINAL RESIDUE"},{"type":"MODIFIED_MONOMER","display":"composite","color":"#458756","title":"MODIFIED MONOMER"},{"type":"MODIFIED_MONOMER","display":"composite","color":"#458756","title":"MODIFIED MONOMER"},{"type":"ZERO_OCCUPANCY_RESIDUE_XYZ","display":"composite","color":"#fca86a","title":"ZERO OCCUPANCY RESIDUE"},{"type":"METAL_COORDINATION","display":"bond","color":"#aaaada","title":"METAL COORDINATION"},{"type":"COVALENT_BOND","display":"bond","color":"#aadaaa","title":"COVALENT BOND"},{"type":"MEMBRANE_SEGMENT","display":"block","color":"#8fc50f","title":"MEMBRANE SEGMENT","displayCooccurrence":true},{"type":"CALCIUM_BINDING_REGION","display":"block","color":"#c58f0f","title":"CALCIUM BINDING"},{"type":"PEPTIDE","display":"block","color":"#cf53df","title":"PEPTIDE"},{"type":"STEREO_OUTLIER","display":"pin","color":"#cfdf53","title":"STEREO OUTLIER"}]}')},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function c(t){try{s(r.next(t))}catch(t){a(t)}}function o(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,o)}s((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.AnnotationCollector=void 0;const i=n(38),a=n(92),c=n(10),o=n(93),s=n(14),l=n(21),u=n(94);e.AnnotationCollector=class{constructor(t){this.annotationsConfigData=new Array,this.rcsbFvQuery=new c.RcsbClient,this.requestStatus="pending",this.rawFeaturesSubject=new s.Subject,this.annotationsConfigDataSubject=new s.Subject,this.annotationFeaturesSubject=new s.Subject,this.rcsbAnnotationConfig=new i.RcsbAnnotationConfig(t),this.annotationTrackManager=new u.AnnotationTrackManager(this.rcsbAnnotationConfig)}collect(t){return r(this,void 0,void 0,(function*(){if(this.requestStatus="pending",this.annotationFeatures=yield this.requestAnnotations(t),!0===t.collectSwissModel){const e=yield a.SwissModelQueryAnnotations.request(t.queryId);this.annotationFeatures=this.annotationFeatures.concat(e)}return yield this.processRcsbPdbAnnotations(Object.assign({externalAnnotationTrackBuilder:this.externalTrackBuilder},t)),this.rawFeatures=[].concat.apply([],this.annotationFeatures.map(t=>t.features)),this.complete(),this.annotationsConfigData}))}setPolymerEntityInstanceTranslator(t){this.annotationTrackManager.setPolymerEntityInstanceTranslator(t),this.polymerEntityInstanceTranslator=t}setExternalTrackBuilder(t){this.externalTrackBuilder=t}getFeatures(){return r(this,void 0,void 0,(function*(){return new Promise((t,e)=>{"complete"===this.requestStatus?t(this.rawFeatures):l.ObservableHelper.oneTimeSubscription(t,this.rawFeaturesSubject)})}))}getAnnotationConfigData(){return r(this,void 0,void 0,(function*(){return new Promise((t,e)=>{"complete"===this.requestStatus?t(this.annotationsConfigData):l.ObservableHelper.oneTimeSubscription(t,this.annotationsConfigDataSubject)})}))}getAnnotationFeatures(){return r(this,void 0,void 0,(function*(){return new Promise((t,e)=>{"complete"===this.requestStatus?t(this.annotationFeatures):l.ObservableHelper.oneTimeSubscription(t,this.annotationFeaturesSubject)})}))}processRcsbPdbAnnotations(t){return r(this,void 0,void 0,(function*(){yield this.annotationTrackManager.processRcsbPdbAnnotations(this.annotationFeatures,t),this.rcsbAnnotationConfig.sortAndIncludeNewTypes(),[this.rcsbAnnotationConfig.instanceOrder(),this.rcsbAnnotationConfig.entityOrder(),this.rcsbAnnotationConfig.uniprotOrder(),Array.from(this.annotationTrackManager.getAnnotationTracks().keys()).filter(t=>!this.rcsbAnnotationConfig.allTypes().has(t))].forEach(t=>{t.forEach(t=>{this.annotationTrackManager.getAnnotationTracks().has(t)&&this.annotationTrackManager.getAnnotationTracks().get(t).size()>0&&this.annotationsConfigData.push(o.AnnotationCollectorHelper.buildAnnotationTrack(this.annotationTrackManager.getAnnotationTracks().get(t),t,this.rcsbAnnotationConfig.getConfig(t),this.rcsbAnnotationConfig.getProvenanceList(t)))})})}))}requestAnnotations(t){return r(this,void 0,void 0,(function*(){return yield this.rcsbFvQuery.requestRcsbPdbAnnotations({queryId:t.queryId,reference:t.reference,sources:t.sources,filters:t.filters,range:t.range})}))}complete(){this.requestStatus="complete",this.annotationsConfigDataSubject.next(this.annotationsConfigData),this.annotationFeaturesSubject.next(this.annotationFeatures),this.rawFeaturesSubject.next(this.rawFeatures)}}},function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.RcsbAnnotationConfig=void 0;const c=a(n(36));class o{constructor(t){var e,n,r,i;this.annotationMap=new Map,this.externalAnnotationsOrder=new Array,this.instanceAnnotationsOrder=new Array,this.entityAnnotationsOrder=new Array,this.mergedTypes=new Map,this.addedTypes=new Map,this.annotationConfigMap=null!=t?t:c,this.annotationConfigMap.config.forEach(t=>{t.provenanceList=new Set,this.annotationMap.set(t.type,t)}),this.externalAnnotationsOrder=null!==(e=this.annotationConfigMap.external_data_order)&&void 0!==e?e:[],this.instanceAnnotationsOrder=null!==(n=this.annotationConfigMap.instance_order)&&void 0!==n?n:[],this.entityAnnotationsOrder=null!==(r=this.annotationConfigMap.entity_order)&&void 0!==r?r:[],null===(i=this.annotationConfigMap.merge)||void 0===i||i.forEach(t=>{t.merged_types.forEach(e=>{this.mergedTypes.set(e,t)})})}getConfig(t){return this.annotationMap.has(t)?this.annotationMap.get(t):null}allTypes(){const t=this.externalAnnotationsOrder.concat(this.instanceAnnotationsOrder).concat(this.entityAnnotationsOrder);return new Set(t)}uniprotOrder(){return this.externalAnnotationsOrder}instanceOrder(){return this.instanceAnnotationsOrder}entityOrder(){return this.entityAnnotationsOrder}buildAndAddType(t,e,n){const r=t.type,i=t;let a="";if(this.annotationMap.has(r)&&this.annotationMap.get(r).addToType instanceof Array&&this.annotationMap.get(r).addToType.forEach(t=>{null!=i[t]&&(a+="."+i[t])}),this.annotationMap.has(r)&&null!=this.annotationMap.get(r).key&&i[this.annotationMap.get(r).key]){let t=r;if(t=t+":"+i[this.annotationMap.get(r).key]+":"+a,null!=n&&(t+="."+n),!this.annotationMap.has(t)){const n=null!=i[this.annotationMap.get(r).key]?i[this.annotationMap.get(r).key]:"";this.annotationMap.set(t,Object.assign(Object.assign({},this.annotationMap.get(r)),{type:t,color:"string"==typeof this.annotationMap.get(r).color?o.randomRgba(n):Object.assign(Object.assign({},this.annotationMap.get(r).color),{colors:o.randomRgba(n)}),prefix:null!=e?e:this.annotationMap.get(r).title,title:n,provenanceList:new Set}))}return this.addNewType(t,r),t}if(null!=n){let t=r;return t=t+":"+a+"."+n,this.annotationMap.has(t)||this.annotationMap.set(t,Object.assign(Object.assign({},this.annotationMap.get(r)),{type:t,title:n,prefix:null!=e?e:this.annotationMap.get(r).title,provenanceList:new Set})),this.addNewType(t,r,n),t}return null!=e?(this.annotationMap.set(r,Object.assign(Object.assign({},this.annotationMap.get(r)),{title:e})),this.addNewType(r,r)):this.addNewType(r,r),r}addNewType(t,e,n){if(this.mergedTypes.has(e)){const r=n?this.mergedTypes.get(e).type+"."+n:this.mergedTypes.get(e).type;t!=e&&this.mergedTypes.set(t,{merged_types:this.mergedTypes.get(e).merged_types,display:this.mergedTypes.get(e).display,type:r,title:this.mergedTypes.get(e).title}),this.annotationMap.set(r,{type:r,display:this.mergedTypes.get(e).display,color:null,title:t!=e?this.annotationMap.get(t).title:this.mergedTypes.get(e).title,prefix:t!=e?this.mergedTypes.get(e).title:void 0,provenanceList:new Set}),this.checkAndIncludeNewType(r,e)}else this.addedTypes.has(e)||this.addedTypes.set(e,new Array),this.addedTypes.get(e).push(t)}sortAndIncludeNewTypes(){Array.from(this.addedTypes.keys()).sort((t,e)=>t.localeCompare(e)).forEach(t=>{this.addedTypes.get(t).sort((t,e)=>t.localeCompare(e)).forEach(e=>{this.checkAndIncludeNewType(e,t)})})}checkAndIncludeNewType(t,e){e!==t&&(this.instanceAnnotationsOrder.includes(e)&&!this.instanceAnnotationsOrder.includes(t)?s(this.instanceAnnotationsOrder,t,e):this.entityAnnotationsOrder.includes(e)&&!this.entityAnnotationsOrder.includes(t)?s(this.entityAnnotationsOrder,t,e):this.externalAnnotationsOrder.includes(e)&&!this.externalAnnotationsOrder.includes(t)&&s(this.externalAnnotationsOrder,t,e))}cleanAddedTypes(){this.addedTypes.forEach((t,e)=>{t.forEach(t=>{[this.instanceAnnotationsOrder,this.entityAnnotationsOrder,this.externalAnnotationsOrder].forEach(e=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)})})})}isMergedType(t){return this.mergedTypes.has(t)}getMergedType(t){return this.mergedTypes.has(t)?this.mergedTypes.get(t).type:null}annotationMergedPreference(t,e,n){return!!this.mergedTypes.has(t)&&this.mergedTypes.get(t).merged_types.indexOf(e.type)<this.mergedTypes.get(t).merged_types.indexOf(n.type)}static randomRgba(t){if("string"==typeof t){let e=0;for(let n=0;n<t.length;n++)e=t.charCodeAt(n)+((e<<5)-e);const n=[0,0,0];for(let t=0;t<3;t++)n[t]=e>>8*t&255;return`rgb(${n[0]}, ${n[1]}, ${n[2]})`}var e=Math.round,n=Math.random;return"rgb("+e(255*n())+","+e(255*n())+","+e(255*n())+")"}addProvenance(t,e){this.annotationMap.has(t)&&this.annotationMap.get(t).provenanceList.add(e)}addMultipleProvenance(t,e){e.forEach(e=>{this.addProvenance(t,e)})}getProvenanceList(t){return this.annotationMap.has(t)?Array.from(this.annotationMap.get(t).provenanceList):null}isTransformedToNumerical(t){return!0===this.annotationMap.get(t).transformToNumerical}}function s(t,e,n){const r=t.indexOf(n);t.splice(r+1,0,e)}e.RcsbAnnotationConfig=o},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function c(t){try{s(r.next(t))}catch(t){a(t)}}function o(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,o)}s((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.RcsbFvUniprotBuilder=void 0;const i=n(102),a=n(6),c=n(103),o=n(104),s=n(9),l=n(12);class u{static buildUniprotMultipleEntitySequenceFv(t,e,n){return r(this,void 0,void 0,(function*(){const i="ALL";return new Promise((c,o)=>r(this,void 0,void 0,(function*(){const o=yield u.buildUniprotFv(t,n,{boardConfig:{rowTitleWidth:210}});c(o);const h=yield o.getTargets();s.RcsbFvCoreBuilder.buildSelectButton(t,e,[i].concat(h.sort((t,e)=>t.localeCompare(e))).map(c=>({label:c===i?c+" ("+h.length+")":c,onChange:()=>r(this,void 0,void 0,(function*(){if(c===i)s.RcsbFvCoreBuilder.clearAdditionalSelectButton(t,e),yield u.buildUniprotFv(t,n);else{const i=c.split(a.TagDelimiter.entity)[0],o=(yield l.rcsbFvCtxManager.getEntityToInstance(i)).getData().filter(t=>t.entityId===c.split(a.TagDelimiter.entity)[1]);yield u.buildUniprotEntityInstanceFv(t,n,o[0].entryId+a.TagDelimiter.entity+o[0].entityId,o[0].entryId+a.TagDelimiter.instance+o[0].asymId),s.RcsbFvCoreBuilder.addSelectButton(t,e,o.map(e=>({name:e.taxIds.length>0?e.names+" - "+e.taxIds.join(", "):e.names,label:(e.authId===e.asymId?e.authId:`${e.asymId} [auth ${e.authId}]`)+" - "+e.names,shortLabel:e.authId===e.asymId?e.authId:`${e.asymId} [auth ${e.authId}]`,onChange:()=>r(this,void 0,void 0,(function*(){yield u.buildUniprotEntityInstanceFv(t,n,e.entryId+a.TagDelimiter.entity+e.entityId,e.entryId+a.TagDelimiter.instance+e.asymId)}))})),{addTitle:!0})}}))})))})))}))}static buildUniprotFv(t,e,n){return r(this,void 0,void 0,(function*(){return new Promise((r,i)=>{try{s.RcsbFvCoreBuilder.createFv({elementId:t,fvModuleI:o.RcsbFvUniprot,config:{upAcc:e,additionalConfig:Object.assign({rcsbContext:{upAcc:e}},n),resolve:r}})}catch(t){i(t)}})}))}static buildUniprotEntityFv(t,e,n,c){return r(this,void 0,void 0,(function*(){return new Promise((o,l)=>r(this,void 0,void 0,(function*(){try{const r=n.split(a.TagDelimiter.entity)[0];s.RcsbFvCoreBuilder.getPolymerEntityInstanceMapAndBuildFv(t,r,i.RcsbFvUniprotEntity,{upAcc:e,entityId:n,additionalConfig:Object.assign({rcsbContext:{entryId:n.split(a.TagDelimiter.entity)[0],entityId:n.split(a.TagDelimiter.entity)[1],upAcc:e}},c),resolve:o})}catch(t){l(t)}})))}))}static buildUniprotEntityInstanceFv(t,e,n,i,o){return r(this,void 0,void 0,(function*(){return new Promise((l,u)=>r(this,void 0,void 0,(function*(){try{const r=n.split(a.TagDelimiter.entity)[0];yield s.RcsbFvCoreBuilder.getPolymerEntityInstanceMapAndBuildFv(t,r,c.RcsbFvUniprotInstance,{upAcc:e,entityId:n,instanceId:i,additionalConfig:Object.assign({rcsbContext:{entryId:n.split(a.TagDelimiter.entity)[0],entityId:n.split(a.TagDelimiter.entity)[1],asymId:i,upAcc:e}},o),resolve:l})}catch(t){u(t)}})))}))}}e.RcsbFvUniprotBuilder=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Operator=void 0;e.Operator=class{static uniqueValues(t){return Array.from(new Set(t))}static arrayChunk(t,e){const n=new Array;for(let r=0;r<t.length;r+=e)n.push(t.slice(r,r+e));return n}}},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function c(t){try{s(r.next(t))}catch(t){a(t)}}function o(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,o)}s((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.RcsbFvInstanceBuilder=void 0;const i=n(110),a=n(6),c=n(9),o=n(12),s=n(111);class l{static buildMultipleInstanceSequenceFv(t,e,n,i,a,o){return r(this,void 0,void 0,(function*(){c.RcsbFvCoreBuilder.buildSelectButton(t,e,i.map(e=>({label:e,shortLabel:e,onChange:()=>{l.buildInstanceSequenceFv(t,n,e,Object.assign(Object.assign({},a),{displayAuthId:!0}),o)}})),{addTitle:!0,dropdownTitle:"PDB"});const r=i[0];return yield l.buildInstanceSequenceFv(t,n,r,Object.assign(Object.assign({},a),{displayAuthId:!0}),o)}))}static buildInstanceSequenceFv(t,e,n,i,a){return r(this,void 0,void 0,(function*(){const r=(yield o.rcsbFvCtxManager.getEntityToInstance(n)).getData();return 0==r.length?void c.RcsbFvCoreBuilder.showMessage(t,"No sequence features are available"):l.buildSelectorInstanceFv(r,t,e,n,i,a)}))}static buildSelectorInstanceFv(t,e,n,i,a,o){var s;return r(this,void 0,void 0,(function*(){const i=t.filter(t=>null==a.filterInstances||a.filterInstances.has(t.asymId)),u=new Map;i.forEach(t=>{u.has(t.entityId)||u.set(t.entityId,new Array);const n=t.asymId===t.authId?t.asymId:`${t.asymId} [auth ${t.authId}]`;u.get(t.entityId).push({name:t.names+" - "+t.taxIds.join(", "),label:n,groupLabel:`ENTITY ${t.entityId} - ${t.names}`,shortLabel:!0===a.displayAuthId?t.authId:n,optId:t.authId,onChange:()=>r(this,void 0,void 0,(function*(){yield l.buildInstanceFv(e,t.rcsbId,o,t,a.module),"function"==typeof a.onChangeCallback&&a.onChangeCallback({pdbId:t.entryId,authId:t.authId,asymId:t.asymId})}))})});let h=0;if(null!=a.defaultValue){const t=i.findIndex(t=>t.authId===a.defaultValue);t>=0?h=t:a.defaultValue=void 0}c.RcsbFvCoreBuilder.buildSelectButton(e,n,Array.from(u.values()).map(t=>({label:t[0].groupLabel,options:t})),{addTitle:!0,defaultValue:a.defaultValue,dropdownTitle:null!==(s=a.dropdownTitle)&&void 0!==s?s:"INSTANCE",width:!0===a.displayAuthId?70:void 0,optionProps:a.selectButtonOptionProps});const d=yield l.buildInstanceFv(e,i[h].rcsbId,o,i[h],a.module);return"function"==typeof a.onChangeCallback&&a.onChangeCallback({pdbId:i[h].entryId,authId:i[h].authId,asymId:i[h].asymId}),d}))}static buildInstanceFv(t,e,n,o,l){return r(this,void 0,void 0,(function*(){return new Promise((r,u)=>{try{const u=e.split(a.TagDelimiter.instance)[0],h=e.split(a.TagDelimiter.instance)[1];c.RcsbFvCoreBuilder.getPolymerEntityInstanceMapAndBuildFv(t,u,"interface"===l?s.RcsbFvInterface:i.RcsbFvInstance,{instanceId:e,additionalConfig:Object.assign(Object.assign({},n),{rcsbContext:{authId:o.authId,entryId:u,asymId:h}}),resolve:r})}catch(t){u(t)}})}))}}e.RcsbFvInstanceBuilder=l},function(t,e,n){"use strict";(function(t,r){var i,a=n(43);i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:r;var c=Object(a.a)(i);e.a=c}).call(this,n(53),n(54)(t))},function(t,e,n){"use strict";function r(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}n.d(e,"a",(function(){return r}))},function(t,e,n){t.exports=n(55).Observable},function(t,e,n){"use strict";t.exports=function(t,e){e||(e={}),"function"==typeof e&&(e={cmp:e});var n,r="boolean"==typeof e.cycles&&e.cycles,i=e.cmp&&(n=e.cmp,function(t){return function(e,r){var i={key:e,value:t[e]},a={key:r,value:t[r]};return n(i,a)}}),a=[];return function t(e){if(e&&e.toJSON&&"function"==typeof e.toJSON&&(e=e.toJSON()),void 0!==e){if("number"==typeof e)return isFinite(e)?""+e:"null";if("object"!=typeof e)return JSON.stringify(e);var n,c;if(Array.isArray(e)){for(c="[",n=0;n<e.length;n++)n&&(c+=","),c+=t(e[n])||"null";return c+"]"}if(null===e)return"null";if(-1!==a.indexOf(e)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var o=a.push(e)-1,s=Object.keys(e).sort(i&&i(e));for(c="",n=0;n<s.length;n++){var l=s[n],u=t(e[l]);u&&(c&&(c+=","),c+=JSON.stringify(l)+":"+u)}return a.splice(o,1),"{"+c+"}"}}(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.print=function(t){return(0,r.visit)(t,{leave:a})};var r=n(5),i=n(60);var a={Name:function(t){return t.value},Variable:function(t){return"$"+t.name},Document:function(t){return o(t.definitions,"\n\n")+"\n"},OperationDefinition:function(t){var e=t.operation,n=t.name,r=l("(",o(t.variableDefinitions,", "),")"),i=o(t.directives," "),a=t.selectionSet;return n||i||r||"query"!==e?o([e,o([n,r]),i,a]," "):a},VariableDefinition:function(t){var e=t.variable,n=t.type,r=t.defaultValue,i=t.directives;return e+": "+n+l(" = ",r)+l(" ",o(i," "))},SelectionSet:function(t){return s(t.selections)},Field:function(t){var e=t.alias,n=t.name,r=t.arguments,i=t.directives,a=t.selectionSet,c=l("",e,": ")+n,s=c+l("(",o(r,", "),")");return s.length>80&&(s=c+l("(\n",u(o(r,"\n")),"\n)")),o([s,o(i," "),a]," ")},Argument:function(t){return t.name+": "+t.value},FragmentSpread:function(t){return"..."+t.name+l(" ",o(t.directives," "))},InlineFragment:function(t){var e=t.typeCondition,n=t.directives,r=t.selectionSet;return o(["...",l("on ",e),o(n," "),r]," ")},FragmentDefinition:function(t){var e=t.name,n=t.typeCondition,r=t.variableDefinitions,i=t.directives,a=t.selectionSet;return("fragment ".concat(e).concat(l("(",o(r,", "),")")," ")+"on ".concat(n," ").concat(l("",o(i," ")," "))+a)},IntValue:function(t){return t.value},FloatValue:function(t){return t.value},StringValue:function(t,e){var n=t.value;return t.block?(0,i.printBlockString)(n,"description"===e?"":" "):JSON.stringify(n)},BooleanValue:function(t){return t.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(t){return t.value},ListValue:function(t){return"["+o(t.values,", ")+"]"},ObjectValue:function(t){return"{"+o(t.fields,", ")+"}"},ObjectField:function(t){return t.name+": "+t.value},Directive:function(t){return"@"+t.name+l("(",o(t.arguments,", "),")")},NamedType:function(t){return t.name},ListType:function(t){return"["+t.type+"]"},NonNullType:function(t){return t.type+"!"},SchemaDefinition:c((function(t){var e=t.directives,n=t.operationTypes;return o(["schema",o(e," "),s(n)]," ")})),OperationTypeDefinition:function(t){return t.operation+": "+t.type},ScalarTypeDefinition:c((function(t){return o(["scalar",t.name,o(t.directives," ")]," ")})),ObjectTypeDefinition:c((function(t){var e=t.name,n=t.interfaces,r=t.directives,i=t.fields;return o(["type",e,l("implements ",o(n," & ")),o(r," "),s(i)]," ")})),FieldDefinition:c((function(t){var e=t.name,n=t.arguments,r=t.type,i=t.directives;return e+(d(n)?l("(\n",u(o(n,"\n")),"\n)"):l("(",o(n,", "),")"))+": "+r+l(" ",o(i," "))})),InputValueDefinition:c((function(t){var e=t.name,n=t.type,r=t.defaultValue,i=t.directives;return o([e+": "+n,l("= ",r),o(i," ")]," ")})),InterfaceTypeDefinition:c((function(t){var e=t.name,n=t.interfaces,r=t.directives,i=t.fields;return o(["interface",e,l("implements ",o(n," & ")),o(r," "),s(i)]," ")})),UnionTypeDefinition:c((function(t){var e=t.name,n=t.directives,r=t.types;return o(["union",e,o(n," "),r&&0!==r.length?"= "+o(r," | "):""]," ")})),EnumTypeDefinition:c((function(t){var e=t.name,n=t.directives,r=t.values;return o(["enum",e,o(n," "),s(r)]," ")})),EnumValueDefinition:c((function(t){return o([t.name,o(t.directives," ")]," ")})),InputObjectTypeDefinition:c((function(t){var e=t.name,n=t.directives,r=t.fields;return o(["input",e,o(n," "),s(r)]," ")})),DirectiveDefinition:c((function(t){var e=t.name,n=t.arguments,r=t.repeatable,i=t.locations;return"directive @"+e+(d(n)?l("(\n",u(o(n,"\n")),"\n)"):l("(",o(n,", "),")"))+(r?" repeatable":"")+" on "+o(i," | ")})),SchemaExtension:function(t){var e=t.directives,n=t.operationTypes;return o(["extend schema",o(e," "),s(n)]," ")},ScalarTypeExtension:function(t){return o(["extend scalar",t.name,o(t.directives," ")]," ")},ObjectTypeExtension:function(t){var e=t.name,n=t.interfaces,r=t.directives,i=t.fields;return o(["extend type",e,l("implements ",o(n," & ")),o(r," "),s(i)]," ")},InterfaceTypeExtension:function(t){var e=t.name,n=t.interfaces,r=t.directives,i=t.fields;return o(["extend interface",e,l("implements ",o(n," & ")),o(r," "),s(i)]," ")},UnionTypeExtension:function(t){var e=t.name,n=t.directives,r=t.types;return o(["extend union",e,o(n," "),r&&0!==r.length?"= "+o(r," | "):""]," ")},EnumTypeExtension:function(t){var e=t.name,n=t.directives,r=t.values;return o(["extend enum",e,o(n," "),s(r)]," ")},InputObjectTypeExtension:function(t){var e=t.name,n=t.directives,r=t.fields;return o(["extend input",e,o(n," "),s(r)]," ")}};function c(t){return function(e){return o([e.description,t(e)],"\n")}}function o(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(e=null==t?void 0:t.filter((function(t){return t})).join(n))&&void 0!==e?e:""}function s(t){return l("{\n",u(o(t,"\n")),"\n}")}function l(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=e&&""!==e?t+e+n:""}function u(t){return l(" ",t.replace(/\n/g,"\n "))}function h(t){return-1!==t.indexOf("\n")}function d(t){return null!=t&&t.some(h)}},function(t,e){t.exports=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(50);Object.defineProperty(e,"buildEntryChromosome",{enumerable:!0,get:function(){return r.buildEntryChromosome}}),Object.defineProperty(e,"buildFullChromosome",{enumerable:!0,get:function(){return r.buildFullChromosome}}),Object.defineProperty(e,"buildEntityChromosome",{enumerable:!0,get:function(){return r.buildEntityChromosome}}),Object.defineProperty(e,"buildChromosome",{enumerable:!0,get:function(){return r.buildChromosome}}),Object.defineProperty(e,"buildEntityFv",{enumerable:!0,get:function(){return r.buildEntityFv}}),Object.defineProperty(e,"buildEntitySummaryFv",{enumerable:!0,get:function(){return r.buildEntitySummaryFv}}),Object.defineProperty(e,"buildSingleEntitySummaryFv",{enumerable:!0,get:function(){return r.buildSingleEntitySummaryFv}}),Object.defineProperty(e,"buildInstanceFv",{enumerable:!0,get:function(){return r.buildInstanceFv}}),Object.defineProperty(e,"buildInstanceSequenceFv",{enumerable:!0,get:function(){return r.buildInstanceSequenceFv}}),Object.defineProperty(e,"buildMultipleInstanceSequenceFv",{enumerable:!0,get:function(){return r.buildMultipleInstanceSequenceFv}}),Object.defineProperty(e,"buildAssemblySequenceFv",{enumerable:!0,get:function(){return r.buildAssemblySequenceFv}}),Object.defineProperty(e,"buildPairwiseAlignment",{enumerable:!0,get:function(){return r.buildPairwiseAlignment}}),Object.defineProperty(e,"buildPfv",{enumerable:!0,get:function(){return r.buildPfv}}),Object.defineProperty(e,"buildMultipleAlignmentSequenceFv",{enumerable:!0,get:function(){return r.buildMultipleAlignmentSequenceFv}}),Object.defineProperty(e,"buildUniprotEntityFv",{enumerable:!0,get:function(){return r.buildUniprotEntityFv}}),Object.defineProperty(e,"buildUniprotEntityInstanceFv",{enumerable:!0,get:function(){return r.buildUniprotEntityInstanceFv}}),Object.defineProperty(e,"buildUniprotFv",{enumerable:!0,get:function(){return r.buildUniprotFv}}),Object.defineProperty(e,"unmount",{enumerable:!0,get:function(){return r.unmount}})},,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.buildChromosome=e.buildEntityChromosome=e.buildEntryChromosome=e.buildFullChromosome=e.buildPairwiseAlignment=e.buildPfv=e.buildUniprotEntityInstanceFv=e.buildUniprotEntityFv=e.buildInstanceFv=e.buildEntityFv=e.buildUniprotFv=e.buildAssemblySequenceFv=e.buildMultipleInstanceSequenceFv=e.buildInstanceSequenceFv=e.buildSingleEntitySummaryFv=e.buildEntitySummaryFv=e.buildMultipleAlignmentSequenceFv=e.unmount=void 0;const r=n(9),i=n(89),a=n(99),c=n(39),o=n(108),s=n(41),l=n(113),u=n(115);e.unmount=function(t){r.RcsbFvCoreBuilder.unmount(t)},e.buildMultipleAlignmentSequenceFv=function(t,e,n){return c.RcsbFvUniprotBuilder.buildUniprotMultipleEntitySequenceFv(t,e,n)},e.buildEntitySummaryFv=function(t,e,n){return o.RcsbFvEntityBuilder.buildEntitySummaryFv(t,e,n)},e.buildSingleEntitySummaryFv=function(t,e){return o.RcsbFvEntityBuilder.buildSingleEntitySummaryFv(t,e)},e.buildInstanceSequenceFv=function(t,e,n,r,i){return s.RcsbFvInstanceBuilder.buildInstanceSequenceFv(t,e,n,r,i)},e.buildMultipleInstanceSequenceFv=function(t,e,n,r,i,a){return s.RcsbFvInstanceBuilder.buildMultipleInstanceSequenceFv(t,e,n,r,i,a)},e.buildAssemblySequenceFv=function(t,e,n,r,i,a){return u.RcsbFvAssemblyBuilder.buildAssemblySequenceFv(t,e,n,r,i,a)},e.buildUniprotFv=function(t,e,n){return c.RcsbFvUniprotBuilder.buildUniprotFv(t,e,n)},e.buildEntityFv=function(t,e,n){return o.RcsbFvEntityBuilder.buildEntityFv(t,e,n)},e.buildInstanceFv=function(t,e,n){return s.RcsbFvInstanceBuilder.buildInstanceFv(t,e,n)},e.buildUniprotEntityFv=function(t,e,n,r){return c.RcsbFvUniprotBuilder.buildUniprotEntityFv(t,e,n,r)},e.buildUniprotEntityInstanceFv=function(t,e,n,r,i){return c.RcsbFvUniprotBuilder.buildUniprotEntityInstanceFv(t,e,n,r,i)},e.buildPfv=function(t,e){return l.RcsbFvProteinSequenceBuilder.buildPfv(t,e)},e.buildPairwiseAlignment=function(t,e,n){return a.RcsbFvPairwiseAligmentBuilder.buildPairwiseAlignment(t,e,n)},e.buildFullChromosome=function(t,e){return i.RcsbFvChromosomeBuilder.buildFullChromosome(t,e)},e.buildEntryChromosome=function(t,e,n,r){return i.RcsbFvChromosomeBuilder.buildEntryChromosome(t,e,n,r)},e.buildEntityChromosome=function(t,e,n){return i.RcsbFvChromosomeBuilder.buildEntityChromosome(t,e,n)},e.buildChromosome=function(t,e,n,r){return i.RcsbFvChromosomeBuilder.buildChromosome(t,n,r)}},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function c(t){try{s(r.next(t))}catch(t){a(t)}}function o(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,o)}s((r=r.apply(t,e||[])).next())}))},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.RcsbQueryAnnotations=void 0;const a=i(n(52)),c=n(13);e.RcsbQueryAnnotations=class{constructor(){this.client=new c.GraphQLRequest("borrego")}request(t){return r(this,void 0,void 0,(function*(){try{return(yield this.client.request({queryId:t.queryId,reference:t.reference,sources:t.sources,filters:t.filters,range:t.range},a.default)).annotations}catch(t){throw console.error(t),t}}))}}},function(t,e,n){"use strict";n.r(e),e.default="query QueryAnnotations($queryId: String!, $reference: SequenceReference, $sources:[Source], $range:[Int], $filters: [FilterInput]){\n annotations(\n queryId:$queryId\n reference:$reference\n sources:$sources\n range:$range\n filters:$filters\n ){\n source\n target_id\n features {\n type\n provenance_source\n description\n feature_id\n name\n feature_positions {\n beg_seq_id\n end_seq_id\n beg_ori_id\n end_ori_id\n range_id\n open_begin\n open_end\n value\n values\n }\n }\n }\n}"},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}Object.defineProperty(e,"__esModule",{value:!0}),e.Observable=void 0;var c=function(){return"function"==typeof Symbol},o=function(t){return c()&&Boolean(Symbol[t])},s=function(t){return o(t)?Symbol[t]:"@@"+t};c()&&!o("observable")&&(Symbol.observable=Symbol("observable"));var l=s("iterator"),u=s("observable"),h=s("species");function d(t,e){var n=t[e];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function f(t){var e=t.constructor;return void 0!==e&&null===(e=e[h])&&(e=void 0),void 0!==e?e:x}function v(t){return t instanceof x}function p(t){p.log?p.log(t):setTimeout((function(){throw t}))}function g(t){Promise.resolve().then((function(){try{t()}catch(t){p(t)}}))}function m(t){var e=t._cleanup;if(void 0!==e&&(t._cleanup=void 0,e))try{if("function"==typeof e)e();else{var n=d(e,"unsubscribe");n&&n.call(e)}}catch(t){p(t)}}function y(t){t._observer=void 0,t._queue=void 0,t._state="closed"}function b(t,e,n){t._state="running";var r=t._observer;try{var i=d(r,e);switch(e){case"next":i&&i.call(r,n);break;case"error":if(y(t),!i)throw n;i.call(r,n);break;case"complete":y(t),i&&i.call(r)}}catch(t){p(t)}"closed"===t._state?m(t):"running"===t._state&&(t._state="ready")}function w(t,e,n){if("closed"!==t._state){if("buffering"!==t._state)return"ready"!==t._state?(t._state="buffering",t._queue=[{type:e,value:n}],void g((function(){return function(t){var e=t._queue;if(e){t._queue=void 0,t._state="ready";for(var n=0;n<e.length&&(b(t,e[n].type,e[n].value),"closed"!==t._state);++n);}}(t)}))):void b(t,e,n);t._queue.push({type:e,value:n})}}var z=function(){function t(e,n){r(this,t),this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var i=new C(this);try{this._cleanup=n.call(void 0,i)}catch(t){i.error(t)}"initializing"===this._state&&(this._state="ready")}return a(t,[{key:"unsubscribe",value:function(){"closed"!==this._state&&(y(this),m(this))}},{key:"closed",get:function(){return"closed"===this._state}}]),t}(),C=function(){function t(e){r(this,t),this._subscription=e}return a(t,[{key:"next",value:function(t){w(this._subscription,"next",t)}},{key:"error",value:function(t){w(this._subscription,"error",t)}},{key:"complete",value:function(){w(this._subscription,"complete")}},{key:"closed",get:function(){return"closed"===this._subscription._state}}]),t}(),x=function(){function t(e){if(r(this,t),!(this instanceof t))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof e)throw new TypeError("Observable initializer must be a function");this._subscriber=e}return a(t,[{key:"subscribe",value:function(t){return"object"==typeof t&&null!==t||(t={next:t,error:arguments[1],complete:arguments[2]}),new z(t,this._subscriber)}},{key:"forEach",value:function(t){var e=this;return new Promise((function(n,r){if("function"==typeof t)var i=e.subscribe({next:function(e){try{t(e,a)}catch(t){r(t),i.unsubscribe()}},error:r,complete:n});else r(new TypeError(t+" is not a function"));function a(){i.unsubscribe(),n()}}))}},{key:"map",value:function(t){var e=this;if("function"!=typeof t)throw new TypeError(t+" is not a function");return new(f(this))((function(n){return e.subscribe({next:function(e){try{e=t(e)}catch(t){return n.error(t)}n.next(e)},error:function(t){n.error(t)},complete:function(){n.complete()}})}))}},{key:"filter",value:function(t){var e=this;if("function"!=typeof t)throw new TypeError(t+" is not a function");return new(f(this))((function(n){return e.subscribe({next:function(e){try{if(!t(e))return}catch(t){return n.error(t)}n.next(e)},error:function(t){n.error(t)},complete:function(){n.complete()}})}))}},{key:"reduce",value:function(t){var e=this;if("function"!=typeof t)throw new TypeError(t+" is not a function");var n=f(this),r=arguments.length>1,i=!1,a=arguments[1],c=a;return new n((function(n){return e.subscribe({next:function(e){var a=!i;if(i=!0,!a||r)try{c=t(c,e)}catch(t){return n.error(t)}else c=e},error:function(t){n.error(t)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(c),n.complete()}})}))}},{key:"concat",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=f(this);return new i((function(e){var r,a=0;return function t(c){r=c.subscribe({next:function(t){e.next(t)},error:function(t){e.error(t)},complete:function(){a===n.length?(r=void 0,e.complete()):t(i.from(n[a++]))}})}(t),function(){r&&(r.unsubscribe(),r=void 0)}}))}},{key:"flatMap",value:function(t){var e=this;if("function"!=typeof t)throw new TypeError(t+" is not a function");var n=f(this);return new n((function(r){var i=[],a=e.subscribe({next:function(e){if(t)try{e=t(e)}catch(t){return r.error(t)}var a=n.from(e).subscribe({next:function(t){r.next(t)},error:function(t){r.error(t)},complete:function(){var t=i.indexOf(a);t>=0&&i.splice(t,1),c()}});i.push(a)},error:function(t){r.error(t)},complete:function(){c()}});function c(){a.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(t){return t.unsubscribe()})),a.unsubscribe()}}))}},{key:u,value:function(){return this}}],[{key:"from",value:function(e){var n="function"==typeof this?this:t;if(null==e)throw new TypeError(e+" is not an object");var r=d(e,u);if(r){var i=r.call(e);if(Object(i)!==i)throw new TypeError(i+" is not an object");return v(i)&&i.constructor===n?i:new n((function(t){return i.subscribe(t)}))}if(o("iterator")&&(r=d(e,l)))return new n((function(t){g((function(){if(!t.closed){var n=!0,i=!1,a=void 0;try{for(var c,o=r.call(e)[Symbol.iterator]();!(n=(c=o.next()).done);n=!0){var s=c.value;if(t.next(s),t.closed)return}}catch(t){i=!0,a=t}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}t.complete()}}))}));if(Array.isArray(e))return new n((function(t){g((function(){if(!t.closed){for(var n=0;n<e.length;++n)if(t.next(e[n]),t.closed)return;t.complete()}}))}));throw new TypeError(e+" is not observable")}},{key:"of",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i="function"==typeof this?this:t;return new i((function(t){g((function(){if(!t.closed){for(var e=0;e<n.length;++e)if(t.next(n[e]),t.closed)return;t.complete()}}))}))}},{key:h,get:function(){return this}}]),t}();e.Observable=x,c()&&Object.defineProperty(x,Symbol("extensions"),{value:{symbol:u,hostReportError:p},configurable:!0})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return c(t,[])};var r,i=(r=n(30))&&r.__esModule?r:{default:r};function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){switch(a(t)){case"string":return JSON.stringify(t);case"function":return t.name?"[function ".concat(t.name,"]"):"[function]";case"object":return null===t?"null":function(t,e){if(-1!==e.indexOf(t))return"[Circular]";var n=[].concat(e,[t]),r=function(t){var e=t[String(i.default)];if("function"==typeof e)return e;if("function"==typeof t.inspect)return t.inspect}(t);if(void 0!==r){var a=r.call(t);if(a!==t)return"string"==typeof a?a:c(a,n)}else if(Array.isArray(t))return function(t,e){if(0===t.length)return"[]";if(e.length>2)return"[Array]";for(var n=Math.min(10,t.length),r=t.length-n,i=[],a=0;a<n;++a)i.push(c(t[a],e));1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items"));return"["+i.join(", ")+"]"}(t,n);return function(t,e){var n=Object.keys(t);if(0===n.length)return"{}";if(e.length>2)return"["+function(t){var e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if("Object"===e&&"function"==typeof t.constructor){var n=t.constructor.name;if("string"==typeof n&&""!==n)return n}return e}(t)+"]";return"{ "+n.map((function(n){return n+": "+c(t[n],e)})).join(", ")+" }"}(t,n)}(t,e);default:return String(t)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isNode=function(t){return null!=t&&"string"==typeof t.kind},e.Token=e.Location=void 0;var r,i=(r=n(58))&&r.__esModule?r:{default:r};var a=function(){function t(t,e,n){this.start=t.start,this.end=e.end,this.startToken=t,this.endToken=e,this.source=n}return t.prototype.toJSON=function(){return{start:this.start,end:this.end}},t}();e.Location=a,(0,i.default)(a);var c=function(){function t(t,e,n,r,i,a,c){this.kind=t,this.start=e,this.end=n,this.line=r,this.column=i,this.value=c,this.prev=a,this.next=null}return t.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},t}();e.Token=c,(0,i.default)(c)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.prototype.toJSON;"function"==typeof e||(0,r.default)(0),t.prototype.inspect=e,i.default&&(t.prototype[i.default]=e)};var r=a(n(59)),i=a(n(30));function a(t){return t&&t.__esModule?t:{default:t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(!Boolean(t))throw new Error(null!=e?e:"Unexpected invariant triggered.")}},function(t,e,n){"use strict";function r(t){for(var e=0;e<t.length;++e)if(" "!==t[e]&&"\t"!==t[e])return!1;return!0}function i(t){for(var e,n=!0,r=!0,i=0,a=null,c=0;c<t.length;++c)switch(t.charCodeAt(c)){case 13:10===t.charCodeAt(c+1)&&++c;case 10:n=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!n&&(null===a||i<a)&&(a=i),r=!1}return null!==(e=a)&&void 0!==e?e:0}Object.defineProperty(e,"__esModule",{value:!0}),e.dedentBlockStringValue=function(t){var e=t.split(/\r\n|[\n\r]/g),n=i(t);if(0!==n)for(var a=1;a<e.length;a++)e[a]=e[a].slice(n);var c=0;for(;c<e.length&&r(e[c]);)++c;var o=e.length;for(;o>c&&r(e[o-1]);)--o;return e.slice(c,o).join("\n")},e.getBlockStringIndentation=i,e.printBlockString=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===t.indexOf("\n"),i=" "===t[0]||"\t"===t[0],a='"'===t[t.length-1],c="\\"===t[t.length-1],o=!r||a||c||n,s="";!o||r&&i||(s+="\n"+e);s+=e?t.replace(/\n/g,"\n"+e):t,o&&(s+="\n");return'"""'+s.replace(/"""/g,'\\"""')+'"""'}},function(t){t.exports=JSON.parse('{"schema":"https://1d-coordinates-groups.rcsb.org/graphql","documents":"src/RcsbGraphQL/Queries/Borrego/*.graphql","interfaceOutputFile":"src/RcsbGraphQL/Types/Borrego/GqlTypes.ts"}')},function(t){t.exports=JSON.parse('{"schema":"http://data-interfaces-dev.rcsb.org/graphql","documents":"src/RcsbGraphQL/Queries/Yosemite/*.graphql","interfaceOutputFile":"src/RcsbGraphQL/Types/Yosemite/GqlTypes.ts","pluginFile":[{"pluginFile":"src/RcsbGraphQL/Plugins/fullpath_schema_keys.js","outputFile":"src/RcsbGraphQL/Types/Yosemite/CorePaths.ts"},{"pluginFile":"src/RcsbGraphQL/Plugins/enumerate_schema_keys.js","outputFile":"src/RcsbGraphQL/Types/Yosemite/CoreConstants.ts"}]}')},function(t,e,n){"use strict";n.r(e),e.default="query QueryAlignment($queryId: String!, $from: SequenceReference, $to:SequenceReference, $range:[Int]){\n alignment(\n queryId:$queryId\n from:$from\n to:$to\n range:$range\n ){\n query_sequence\n target_alignment {\n target_id\n orientation\n target_sequence\n coverage {\n query_coverage\n query_length\n target_coverage\n target_length\n }\n aligned_regions {\n query_begin\n query_end\n target_begin\n target_end\n exon_shift\n }\n }\n\n }\n}"},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function c(t){try{s(r.next(t))}catch(t){a(t)}}function o(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,o)}s((r=r.apply(t,e||[])).next())}))},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.RcsbQueryEntryInstances=void 0;const a=i(n(65)),c=n(13);e.RcsbQueryEntryInstances=class{constructor(){this.client=new c.GraphQLRequest("yosemite")}request(t){return r(this,void 0,void 0,(function*(){try{return(yield this.client.request({entry_id:t.entry_id},a.default)).entry}catch(t){throw console.error(t),t}}))}}},function(t,e,n){"use strict";n.r(e),e.default="query QueryEntryInstance($entry_id: String!){\n entry(\n entry_id:$entry_id\n ){\n polymer_entities {\n polymer_entity_instances{\n rcsb_id\n polymer_entity{\n rcsb_polymer_entity{\n pdbx_description\n }\n entity_poly{\n rcsb_entity_polymer_type\n }\n rcsb_entity_source_organism {\n ncbi_scientific_name\n }\n }\n rcsb_polymer_entity_instance_container_identifiers{\n asym_id\n auth_asym_id\n entry_id\n entity_id\n auth_to_entity_poly_seq_mapping\n }\n }\n }\n assemblies {\n rcsb_assembly_container_identifiers {\n assembly_id\n }\n pdbx_struct_assembly_gen{\n asym_id_list\n }\n\n }\n }\n}"},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function c(t){try{s(r.next(t))}catch(t){a(t)}}function o(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,o)}s((r=r.apply(t,e||[])).next())}))},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.RcsbQueryMultipleEntityInstances=void 0;const a=i(n(67)),c=n(13);e.RcsbQueryMultipleEntityInstances=class{constructor(){this.client=new c.GraphQLRequest("yosemite")}request(t){return r(this,void 0,void 0,(function*(){try{return(yield this.client.request({entity_ids:t.entity_ids},a.default)).polymer_entities}catch(t){throw console.error(t),t}}))}}},function(t,e,n){"use strict";n.r(e),e.default="query QueryMultipleEntityInstances($entity_ids: [String!]!){\n polymer_entities(\n entity_ids:$entity_ids\n ){\n polymer_entity_instances{\n rcsb_id\n polymer_entity{\n rcsb_polymer_entity{\n pdbx_description\n }\n entity_poly{\n rcsb_entity_polymer_type\n }\n rcsb_entity_source_organism {\n ncbi_scientific_name\n }\n }\n rcsb_polymer_entity_instance_container_identifiers{\n asym_id\n auth_asym_id\n entry_id\n entity_id\n auth_to_entity_poly_seq_mapping\n }\n }\n }\n}"},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function c(t){try{s(r.next(t))}catch(t){a(t)}}function o(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,o)}s((r=r.apply(t,e||[])).next())}))},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.RcsbQueryMultipleEntriesProperties=void 0;const a=i(n(69)),c=n(13);e.RcsbQueryMultipleEntriesProperties=class{constructor(){this.client=new c.GraphQLRequest("yosemite")}request(t){return r(this,void 0,void 0,(function*(){try{return(yield this.client.request({entry_ids:t.entry_ids},a.default)).entries}catch(t){throw console.error(t),t}}))}}},function(t,e,n){"use strict";n.r(e),e.default="query multiple_entries_properties($entry_ids: [String!]!){\n entries(entry_ids:$entry_ids){\n rcsb_id\n rcsb_entry_info{\n experimental_method\n resolution_combined\n }\n }\n}"},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function c(t){try{s(r.next(t))}catch(t){a(t)}}function o(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,o)}s((r=r.apply(t,e||[])).next())}))},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.RcsbQueryInterfaceInstances=void 0;const a=n(13),c=i(n(71));e.RcsbQueryInterfaceInstances=class{constructor(){this.client=new a.GraphQLRequest("yosemite")}request(t){return r(this,void 0,void 0,(function*(){try{return(yield this.client.request(t,c.default)).interfaces}catch(t){throw console.error(t),t}}))}}},function(t,e,n){"use strict";n.r(e),e.default="query QueryInterfaceInstance($interface_ids: [String!]!){\n interfaces(\n interface_ids:$interface_ids\n ){\n rcsb_interface_container_identifiers{\n rcsb_id\n interface_id\n assembly_id\n entry_id\n }\n rcsb_interface_partner{\n interface_partner_identifier{\n asym_id\n }\n }\n }\n}"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EntryAssemblyTranslate=void 0;e.EntryAssemblyTranslate=class{constructor(t){this.rawData=t}getData(){return this.rawData}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PolymerEntityChromosomeTranslate=void 0;e.PolymerEntityChromosomeTranslate=class{constructor(t){this.rawData=t}getData(){return this.rawData}}},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function c(t){try{s(r.next(t))}catch(t){a(t)}}function o(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,o)}s((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.PolymerEntityChromosomeCollector=void 0;const i=n(4),a=n(10);e.PolymerEntityChromosomeCollector=class{constructor(){this.rcsbFvQuery=new a.RcsbClient}collect(t){return r(this,void 0,void 0,(function*(){const e=new Map;return(yield Promise.all(t.map(t=>this.entityChromosomes(t)))).forEach((n,r)=>{var i;null===(i=n.target_alignment)||void 0===i||i.forEach(n=>{n.aligned_regions.length>0&&(e.has(t[r])||e.set(t[r],new Array),e.get(t[r]).push(n.target_id))})}),e}))}entityChromosomes(t){return r(this,void 0,void 0,(function*(){const e={from:i.SequenceReference.PdbEntity,to:i.SequenceReference.NcbiGenome,queryId:t};return yield this.rcsbFvQuery.requestAlignment(e)}))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InterfaceInstanceTranslate=void 0;e.InterfaceInstanceTranslate=class{constructor(t){this.instances=new Map,this.rawData=t,t.forEach(t=>{this.instances.set(t.rcsbId,t.asymIds)})}getInstances(t){return this.instances.get(t)}}},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function c(t){try{s(r.next(t))}catch(t){a(t)}}function o(t){try{s(r.throw(t))}catch(t){a(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,o)}s((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.InterfaceInstanceCollector=void 0;const i=n(10);e.InterfaceInstanceCollector=class{constructor(){this.rcsbFvQuery=new i.RcsbClient}collect(t){return r(this,void 0,void 0,(function*(){try{return(yield this.rcsbFvQuery.requestInterfaceInstances(t)).map(t=>{return{rcsbId:(e=t).rcsb_interface_container_identifiers.rcsb_id,assemblyId:e.rcsb_interface_container_identifiers.assembly_id,interfaceId:e.rcsb_interface_container_identifiers.interface_id,asymIds:[e.rcsb_interface_partner[0].interface_partner_identifier.asym_id,e.rcsb_interface_partner[1].interface_partner_identifier.asym_id]};var e})}catch(t){throw console.log(t),t}}))}}},function(t,e,n){"use strict";
66
66
  /** @license React v17.0.1
67
67
  * react.production.min.js
68
68
  *