diff --git a/404.html b/404.html index 24cde499..3363a2cf 100644 --- a/404.html +++ b/404.html @@ -35,6 +35,6 @@ - + \ No newline at end of file diff --git a/982.5f2b0369cca5f87e.js b/982.5f2b0369cca5f87e.js deleted file mode 100644 index 5eb58b48..00000000 --- a/982.5f2b0369cca5f87e.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{"use strict";var me={443:(k,c,y)=>{y.d(c,{F:()=>V});var t=y(7580),e=y(8333),r=y(1043);const V={[t.U.WhisperOfDurance]:{id:t.U.WhisperOfDurance,name:"Whisper of Durance",description:"Slow that you apply to targets lasts longer. For those abilities that linger, their duration will also increase.",type:e.O.Stasis,bonus:[{stat:r.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:3469412969},[t.U.WhisperOfChains]:{id:t.U.WhisperOfChains,name:"Whisper of Chains",description:"While you are near frozen targets or a friendly Stasis crystal, you take reduced damage from targets.",type:e.O.Stasis,bonus:[{stat:r.WB.Recovery,value:10}],cost:1,requiredArmorAffinity:0,hash:537774540},[t.U.WhisperOfConduction]:{id:t.U.WhisperOfConduction,name:"Whisper of Conduction",description:"Nearby Stasis shards track to your position.",type:e.O.Stasis,bonus:[{stat:r.WB.Intellect,value:10},{stat:r.WB.Resilience,value:10}],cost:1,requiredArmorAffinity:0,hash:2483898429},[t.U.WhisperOfBonds]:{id:t.U.WhisperOfBonds,name:"Whisper of Bonds",description:"Defeating frozen targets generates an Orb of Power.",type:e.O.Stasis,bonus:[{stat:r.WB.Intellect,value:-10}],cost:1,requiredArmorAffinity:0,hash:3469412974},[t.U.WhisperOfHunger]:{id:t.U.WhisperOfHunger,name:"Whisper of Hunger",description:"Increases the melee energy gained from picking up Stasis shards.",type:e.O.Stasis,bonus:[{stat:r.WB.Strength,value:-20}],cost:1,requiredArmorAffinity:0,hash:2483898431},[t.U.WhisperOfFractures]:{id:t.U.WhisperOfFractures,name:"Whisper of Fractures",description:"Your melee energy recharges faster when you are near two or more targets.",type:e.O.Stasis,bonus:[{stat:r.WB.Discipline,value:-10}],cost:1,requiredArmorAffinity:0,hash:537774542},[t.U.WhisperOfImpetus]:{id:t.U.WhisperOfImpetus,name:"Whisper of Impetus",description:"Damaging targets with a Stasis melee reloads your stowed weapons and grants you a temporary boost to weapon ready speed.",type:e.O.Stasis,bonus:[{stat:r.WB.Resilience,value:10}],cost:1,requiredArmorAffinity:0,hash:537774543},[t.U.WhisperOfTorment]:{id:t.U.WhisperOfTorment,name:"Whisper of Torment",description:"You gain grenade energy each time you take damage from targets. Having Frost Armor increases the amount of energy gained.",type:e.O.Stasis,bonus:[{stat:r.WB.Discipline,value:-10}],cost:1,requiredArmorAffinity:0,hash:537774541},[t.U.EchoOfExpulsion]:{id:t.U.EchoOfExpulsion,name:"Echo of Expulsion",description:"Void ability final blows cause targets to explode.",type:e.O.Void,bonus:[{stat:r.WB.Intellect,value:10}],cost:1,requiredArmorAffinity:0,hash:2272984665},[t.U.EchoOfProvision]:{id:t.U.EchoOfProvision,name:"Echo of Provision",description:"Damaging targets with grenades grants melee energy.",type:e.O.Void,bonus:[{stat:r.WB.Strength,value:-10}],cost:1,requiredArmorAffinity:0,hash:2272984664},[t.U.EchoOfPersistence]:{id:t.U.EchoOfPersistence,name:"Echo of Persistence",description:"Void buffs applied to you (Invisibility, Overshield, and Devour) have increased duration.",type:e.O.Void,bonus:[{stat:r.AR.ClassAbilityRegenerationStat,value:-10}],cost:1,requiredArmorAffinity:0,hash:2272984671},[t.U.EchoOfLeeching]:{id:t.U.EchoOfLeeching,name:"Echo of Leeching",description:"Melee final blows start health regeneration for you and nearby allies.",type:e.O.Void,bonus:[{stat:r.WB.Resilience,value:10}],cost:1,requiredArmorAffinity:0,hash:2272984670},[t.U.EchoOfDomineering]:{id:t.U.EchoOfDomineering,name:"Echo of Domineering",description:"After suppressing a target, you gain greatly increased mobility for a short duration, and your equipped weapon is reloaded from reserves.\n\nDefeating suppressed targets creates a Void Breach.",type:e.O.Void,bonus:[{stat:r.WB.Discipline,value:10}],cost:1,requiredArmorAffinity:0,hash:2272984657},[t.U.EchoOfDilation]:{id:t.U.EchoOfDilation,name:"Echo of Dilation",description:"While crouched, you sneak faster and gain enhanced radar resolution.",type:e.O.Void,bonus:[{stat:r.WB.Mobility,value:10},{stat:r.WB.Intellect,value:10}],cost:1,requiredArmorAffinity:0,hash:2272984656},[t.U.EchoOfUndermining]:{id:t.U.EchoOfUndermining,name:"Echo of Undermining",description:"Your Void grenades weaken targets.",type:e.O.Void,bonus:[{stat:r.WB.Discipline,value:-20}],cost:1,requiredArmorAffinity:0,hash:2272984668},[t.U.EchoOfInstability]:{id:t.U.EchoOfInstability,name:"Echo of Instability",description:"Defeating targets with grenades grants Volatile Rounds to your Void weapons.",type:e.O.Void,bonus:[{stat:r.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:2661180600},[t.U.EchoOfHarvest]:{id:t.U.EchoOfHarvest,name:"Echo of Harvest",description:"Defeating weakened targets creates an Orb of Power and a Void Breach.",type:e.O.Void,bonus:[{stat:r.WB.Intellect,value:-10}],cost:1,requiredArmorAffinity:0,hash:2661180601},[t.U.EchoOfObscurity]:{id:t.U.EchoOfObscurity,name:"Echo of Obscurity",description:"Finisher final blows grant Invisibility.",type:e.O.Void,bonus:[{stat:r.WB.Recovery,value:10}],cost:1,requiredArmorAffinity:0,hash:2661180602},[t.U.EchoOfStarvation]:{id:t.U.EchoOfStarvation,name:"Echo of Starvation",description:"Picking up a Void Breach or an Orb of Power grants Devour.",type:e.O.Void,bonus:[{stat:r.WB.Recovery,value:-10}],cost:1,requiredArmorAffinity:0,hash:2661180603},[t.U.EchoOfVigilance]:{id:t.U.EchoOfVigilance,name:"Echo of Vigilance",description:"Defeating a target while your shields are depleted grants you a temporary Void overshield.",type:e.O.Void,bonus:[{stat:r.WB.Recovery,value:-10}],cost:1,requiredArmorAffinity:0,hash:3854948621},[t.U.EmberOfBenelovence]:{id:t.U.EmberOfBenelovence,name:"Ember of Benevolence",description:"Applying restoration, cure, or radiant to allies grants increased grenade, melee, and class ability regeneration for a short duration.",type:e.O.Solar,bonus:[{stat:r.WB.Discipline,value:-10}],cost:1,requiredArmorAffinity:0,hash:362132292},[t.U.EmberOfBeams]:{id:t.U.EmberOfBeams,name:"Ember of Beams",description:"Your Solar Super projectiles have stronger target acquisition.",type:e.O.Solar,bonus:[{stat:r.WB.Intellect,value:10}],cost:1,requiredArmorAffinity:0,hash:362132295},[t.U.EmberOfEmpyrean]:{id:t.U.EmberOfEmpyrean,name:"Ember of Empyrean",description:"Solar weapon or ability final blows extend the duration of restoration and radiant effects applied to you.",type:e.O.Solar,bonus:[{stat:r.WB.Resilience,value:-10}],cost:1,requiredArmorAffinity:0,hash:362132294},[t.U.EmberOfCombustion]:{id:t.U.EmberOfCombustion,name:"Ember of Combustion",description:"Final blows with a Solar Super causes targets to ignite and creates a Firesprite.",type:e.O.Solar,bonus:[{stat:r.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:362132289},[t.U.EmberOfChar]:{id:t.U.EmberOfChar,name:"Ember of Char",description:"Your Solar ignitions spread scorch to affected targets.",type:e.O.Solar,bonus:[{stat:r.WB.Discipline,value:10}],cost:1,requiredArmorAffinity:0,hash:362132291},[t.U.EmberOfTempering]:{id:t.U.EmberOfTempering,name:"Ember of Tempering",description:"Solar weapon final blows grant you and your allies increased recovery for a short duration. Stacks 3 times.\n\nWhile Ember of Tempering is active, your weapons have increased airborne effectiveness, and your Solar weapon final blows create a Firesprite.",type:e.O.Solar,bonus:[{stat:r.WB.Recovery,value:-10}],cost:1,requiredArmorAffinity:0,hash:362132290},[t.U.EmberOfEruption]:{id:t.U.EmberOfEruption,name:"Ember of Eruption",description:"Your Solar ignitions have increased area of effect.",type:e.O.Solar,bonus:[{stat:r.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:1051276348},[t.U.EmberOfWonder]:{id:t.U.EmberOfWonder,name:"Ember of Wonder",description:"Rapidly defeating multiple targets with Solar ignitions generates an Orb of Power.",type:e.O.Solar,bonus:[{stat:r.WB.Resilience,value:10}],cost:1,requiredArmorAffinity:0,hash:1051276350},[t.U.EmberOfSearing]:{id:t.U.EmberOfSearing,name:"Ember of Searing",description:"Defeating scorched targets grants melee energy and creates a Firesprite.",type:e.O.Solar,bonus:[{stat:r.WB.Recovery,value:10}],cost:1,requiredArmorAffinity:0,hash:1051276351},[t.U.EmberOfTorches]:{id:t.U.EmberOfTorches,name:"Ember of Torches",description:"Powered melee attacks against combatants make you and nearby allies radiant.",type:e.O.Solar,bonus:[{stat:r.WB.Discipline,value:-10}],cost:1,requiredArmorAffinity:0,hash:362132288},[t.U.EmberOfMercy]:{id:t.U.EmberOfMercy,name:"Ember of Mercy",description:"When you revive an ally, you and other nearby allies gain restoration.\n\nPicking up a Firesprite grants restoration.",type:e.O.Solar,bonus:[{stat:r.WB.Resilience,value:10}],cost:1,requiredArmorAffinity:0,hash:4180586737},[t.U.SparkOfBrilliance]:{id:t.U.SparkOfBrilliance,name:"Spark of Brilliance",description:"Defeating a blinded target with precision damage creates a blinding explosion.",type:e.O.Arc,bonus:[{stat:r.WB.Intellect,value:10}],cost:1,requiredArmorAffinity:0,hash:3277705905},[t.U.SparkOfFeedback]:{id:t.U.SparkOfFeedback,name:"Spark of Feedback",description:"Taking melee damage briefly increases your outgoing melee damage.",type:e.O.Arc,bonus:[{stat:r.WB.Resilience,value:10}],cost:1,requiredArmorAffinity:0,hash:3277705907},[t.U.SparkOfDischarge]:{id:t.U.SparkOfDischarge,name:"Spark of Discharge",description:"Arc weapon final blows have a chance to create an Ionic Trace.",type:e.O.Arc,bonus:[{stat:r.WB.Strength,value:-10}],cost:1,requiredArmorAffinity:0,hash:1727069362},[t.U.SparkOfFocus]:{id:t.U.SparkOfFocus,name:"Spark of Focus",description:"After sprinting for a short time, your class ability regeneration is increased.",type:e.O.Arc,bonus:[{stat:r.AR.ClassAbilityRegenerationStat,value:-10}],cost:1,requiredArmorAffinity:0,hash:1727069360},[t.U.SparkOfVolts]:{id:t.U.SparkOfVolts,name:"Spark of Volts",description:"Finishers make you amplified.",type:e.O.Arc,bonus:[{stat:r.WB.Recovery,value:10}],cost:1,requiredArmorAffinity:0,hash:3277705904},[t.U.SparkOfResistance]:{id:t.U.SparkOfResistance,name:"Spark of Resistance",description:"While surrounded by combatants, you are more resistant to incoming damage.",type:e.O.Arc,bonus:[{stat:r.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:1727069366},[t.U.SparkOfShock]:{id:t.U.SparkOfShock,name:"Spark of Shock",description:"Your Arc grenades jolt targets.",type:e.O.Arc,bonus:[{stat:r.WB.Discipline,value:-10}],cost:1,requiredArmorAffinity:0,hash:1727069364},[t.U.ThreadOfFury]:{id:t.U.ThreadOfFury,name:"Thread of Fury",description:"Damaging targets with a Tangle grants melee energy.",type:e.O.Strand,bonus:[{stat:r.WB.Strength,value:-10}],cost:1,requiredArmorAffinity:0,hash:4208512219},[t.U.ThreadOfAscent]:{id:t.U.ThreadOfAscent,name:"Thread of Ascent",description:"Activating your grenade ability reloads your equipped weapon and grants bonus airborne effectiveness and handling for a short duration.",type:e.O.Strand,bonus:[{stat:r.WB.Mobility,value:10}],cost:1,requiredArmorAffinity:0,hash:4208512216},[t.U.ThreadOfFinality]:{id:t.U.ThreadOfFinality,name:"Thread of Finality",description:"Finisher final blows create Threadlings.",type:e.O.Strand,bonus:[{stat:r.WB.Recovery,value:10}],cost:1,requiredArmorAffinity:0,hash:4208512217},[t.U.ThreadOfWarding]:{id:t.U.ThreadOfWarding,name:"Thread of Warding",description:"Picking up an Orb of Power grants Woven Mail.",type:e.O.Strand,bonus:[{stat:r.WB.Resilience,value:-10}],cost:1,requiredArmorAffinity:0,hash:4208512222},[t.U.ThreadOfTransmutation]:{id:t.U.ThreadOfTransmutation,name:"Thread of Transmutation",description:"While you have Woven Mail, weapon final blows create a Tangle.",type:e.O.Strand,bonus:[{stat:r.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:4208512221},[t.U.ThreadOfEvolution]:{id:t.U.ThreadOfEvolution,name:"Thread of Evolution",description:"Threadlings travel farther and deal additional damage.",type:e.O.Strand,bonus:[{stat:r.WB.Intellect,value:10}],cost:1,requiredArmorAffinity:0,hash:4208512211},[t.U.ThreadOfBinding]:{id:t.U.ThreadOfBinding,name:"Thread of Binding",description:"Super final blows emit a suspending burst from the target.",type:e.O.Strand,bonus:[{stat:r.WB.Resilience,value:10}],cost:1,requiredArmorAffinity:0,hash:3192552688},[t.U.ThreadOfGeneration]:{id:t.U.ThreadOfGeneration,name:"Thread of Generation",description:"Dealing damage generates grenade energy.",type:e.O.Strand,bonus:[{stat:r.WB.Discipline,value:-10}],cost:1,requiredArmorAffinity:0,hash:3192552691},[t.U.ThreadOfPropagation]:{id:t.U.ThreadOfPropagation,name:"Thread of Propagation",description:"Powered melee final blows grant your Strand weapons Unraveling Rounds.",type:e.O.Strand,bonus:[{stat:r.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:4208512210},[t.U.FacetOfAwakening]:{id:t.U.FacetOfAwakening,name:"Facet of Awakening",description:"Rapid elemental final blows and Super final blows generate an elemental pickup of the matching damage type.",type:e.O.Prismatic,bonus:[{stat:r.WB.Resilience,value:10}],cost:1,requiredArmorAffinity:0,hash:124726505},[t.U.FacetOfCourage]:{id:t.U.FacetOfCourage,name:"Facet of Courage",description:"Your Light abilities deal increased damage to targets afflicted with Darkness debuffs.",type:e.O.Prismatic,bonus:[{stat:r.WB.Discipline,value:10}],cost:1,requiredArmorAffinity:0,hash:2626922124},[t.U.FacetOfDawn]:{id:t.U.FacetOfDawn,name:"Facet of Dawn",description:"Powered melee hits against targets make you Radiant. Powered melee final blows make both you and nearby allies Radiant.",type:e.O.Prismatic,bonus:[{stat:r.WB.Strength,value:-10}],cost:1,requiredArmorAffinity:0,hash:2626922126},[t.U.FacetOfDefiance]:{id:t.U.FacetOfDefiance,name:"Facet of Defiance",description:"Finishers create a detonation that either jolts, scorches, slows, severs, or makes targets volatile based on the damage type of your equipped Super.",type:e.O.Prismatic,bonus:[{stat:r.WB.Recovery,value:10}],cost:1,requiredArmorAffinity:0,hash:74393640},[t.U.FacetOfDevotion]:{id:t.U.FacetOfDevotion,name:"Facet of Devotion",description:"Defeating targets afflicted with a Darkness debuff grants bonus Light Transcendence energy.",type:e.O.Prismatic,bonus:[{stat:r.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:2626922125},[t.U.FacetOfDominance]:{id:t.U.FacetOfDominance,name:"Facet of Dominance",description:"Your Void grenades weaken targets, and your Arc grenades jolt targets.",type:e.O.Prismatic,bonus:[{stat:r.WB.Discipline,value:-10}],cost:1,requiredArmorAffinity:0,hash:124726504},[t.U.FacetOfGrace]:{id:t.U.FacetOfGrace,name:"Facet of Grace",description:"Defeating targets with Kinetic weapons grants you bonus Transcendence energy. Defeating targets with your Super grants you and nearby allies bonus Transcendence energy.",type:e.O.Prismatic,bonus:[{stat:r.WB.Resilience,value:-10}],cost:1,requiredArmorAffinity:0,hash:2626922121},[t.U.FacetOfHonor]:{id:t.U.FacetOfHonor,name:"Facet of Honor",description:"Collecting an elemental pickup or destroying a Tangle grants Transcendence energy of the same type.",type:e.O.Prismatic,bonus:[{stat:r.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:124726501},[t.U.FacetOfJustice]:{id:t.U.FacetOfJustice,name:"Facet of Justice",description:"While Transcendent, your ability final blows explode.",type:e.O.Prismatic,bonus:[{stat:r.WB.Intellect,value:10}],cost:1,requiredArmorAffinity:0,hash:2626922115},[t.U.FacetOfProtection]:{id:t.U.FacetOfProtection,name:"Facet of Protection",description:"While surrounded by enemies, you are more resistant to incoming damage.",type:e.O.Prismatic,bonus:[{stat:r.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:2626922120},[t.U.FacetOfPurpose]:{id:t.U.FacetOfPurpose,name:"Facet of Purpose",description:"Picking up an Orb of Power grants either Amplified, Restoration, Frost Armor, Woven Mail, or Overshield, based on the damage type of your equipped super.",type:e.O.Prismatic,bonus:[{stat:r.WB.Recovery,value:-10}],cost:1,requiredArmorAffinity:0,hash:124726498},[t.U.FacetOfRuin]:{id:t.U.FacetOfRuin,name:"Facet of Ruin",description:"Increases the size and damage of the burst when you shatter a Stasis crystal or frozen target and increases the area of effect of Solar ignitions.",type:e.O.Prismatic,bonus:[{stat:r.WB.Mobility,value:10}],cost:1,requiredArmorAffinity:0,hash:124726499},[t.U.FacetOfSacrifice]:{id:t.U.FacetOfSacrifice,name:"Facet of Sacrifice",description:"While you have a Light buff, ability final blows grant bonus Darkness Transcendence energy.",type:e.O.Prismatic,bonus:[{stat:r.WB.Discipline,value:10}],cost:1,requiredArmorAffinity:0,hash:124726502}}},3244:(k,c,y)=>{y.d(c,{dM:()=>r});const r=-2},6471:(k,c,y)=>{y.d(c,{y:()=>t});var t=(()=>{return(e=t||(t={}))[e.ArmorSlotNone=0]="ArmorSlotNone",e[e.ArmorSlotHelmet=1]="ArmorSlotHelmet",e[e.ArmorSlotGauntlet=2]="ArmorSlotGauntlet",e[e.ArmorSlotChest=3]="ArmorSlotChest",e[e.ArmorSlotLegs=4]="ArmorSlotLegs",e[e.ArmorSlotClass=5]="ArmorSlotClass",t;var e})()},1043:(k,c,y)=>{y.d(c,{AR:()=>D,K9:()=>r,Pn:()=>i,WB:()=>e});var t=(()=>{return(a=t||(t={}))[a.NONE=0]="NONE",a[a.MINOR_MOBILITY=1]="MINOR_MOBILITY",a[a.MAJOR_MOBILITY=2]="MAJOR_MOBILITY",a[a.ARTIFICE_MOBILITY=3]="ARTIFICE_MOBILITY",a[a.MINOR_RESILIENCE=4]="MINOR_RESILIENCE",a[a.MAJOR_RESILIENCE=5]="MAJOR_RESILIENCE",a[a.ARTIFICE_RESILIENCE=6]="ARTIFICE_RESILIENCE",a[a.MINOR_RECOVERY=7]="MINOR_RECOVERY",a[a.MAJOR_RECOVERY=8]="MAJOR_RECOVERY",a[a.ARTIFICE_RECOVERY=9]="ARTIFICE_RECOVERY",a[a.MINOR_DISCIPLINE=10]="MINOR_DISCIPLINE",a[a.MAJOR_DISCIPLINE=11]="MAJOR_DISCIPLINE",a[a.ARTIFICE_DISCIPLINE=12]="ARTIFICE_DISCIPLINE",a[a.MINOR_INTELLECT=13]="MINOR_INTELLECT",a[a.MAJOR_INTELLECT=14]="MAJOR_INTELLECT",a[a.ARTIFICE_INTELLECT=15]="ARTIFICE_INTELLECT",a[a.MINOR_STRENGTH=16]="MINOR_STRENGTH",a[a.MAJOR_STRENGTH=17]="MAJOR_STRENGTH",a[a.ARTIFICE_STRENGTH=18]="ARTIFICE_STRENGTH",t;var a})(),e=(()=>{return(a=e||(e={}))[a.Mobility=0]="Mobility",a[a.Resilience=1]="Resilience",a[a.Recovery=2]="Recovery",a[a.Discipline=3]="Discipline",a[a.Intellect=4]="Intellect",a[a.Strength=5]="Strength",e;var a})();const r={[t.NONE]:[e.Strength,0,0,0],[t.MINOR_MOBILITY]:[e.Mobility,5,1,1703647492],[t.MAJOR_MOBILITY]:[e.Mobility,10,3,4183296050],[t.ARTIFICE_MOBILITY]:[e.Mobility,3,0,2322202118],[t.MINOR_RESILIENCE]:[e.Resilience,5,2,2532323436],[t.MAJOR_RESILIENCE]:[e.Resilience,10,4,1180408010],[t.ARTIFICE_RESILIENCE]:[e.Resilience,3,0,199176566],[t.MINOR_RECOVERY]:[e.Recovery,5,2,1237786518],[t.MAJOR_RECOVERY]:[e.Recovery,10,4,4204488676],[t.ARTIFICE_RECOVERY]:[e.Recovery,3,0,539459624],[t.MINOR_DISCIPLINE]:[e.Discipline,5,1,4021790309],[t.MAJOR_DISCIPLINE]:[e.Discipline,10,3,1435557120],[t.ARTIFICE_DISCIPLINE]:[e.Discipline,3,0,617569843],[t.MINOR_INTELLECT]:[e.Intellect,5,2,350061697],[t.MAJOR_INTELLECT]:[e.Intellect,10,4,2724608735],[t.ARTIFICE_INTELLECT]:[e.Intellect,3,0,3160845295],[t.MINOR_STRENGTH]:[e.Strength,5,1,2639422088],[t.MAJOR_STRENGTH]:[e.Strength,10,3,4287799666],[t.ARTIFICE_STRENGTH]:[e.Strength,3,0,2507624050]};var D=(()=>{return(a=D||(D={}))[a.ClassAbilityRegenerationStat=10]="ClassAbilityRegenerationStat",D;var a})(),i=(()=>{return(a=i||(i={}))[a.None=0]="None",a[a.SlotCrotasEnd=2]="SlotCrotasEnd",a[a.SlotRootOfNightmares=3]="SlotRootOfNightmares",a[a.SlotKingsFall=4]="SlotKingsFall",a[a.SlotVowOfTheDisciple=5]="SlotVowOfTheDisciple",a[a.SlotVaultOfGlass=6]="SlotVaultOfGlass",a[a.SlotDeepStoneCrypt=7]="SlotDeepStoneCrypt",a[a.SlotGardenOfSalvation=8]="SlotGardenOfSalvation",a[a.SlotLastWish=9]="SlotLastWish",a[a.SlotArtifice=10]="SlotArtifice",a[a.PerkIronBanner=11]="PerkIronBanner",a[a.SlotNightmare=12]="SlotNightmare",a[a.GuardianGamesClassItem=18]="GuardianGamesClassItem",a[a.PerkEchoesOfGlory=20]="PerkEchoesOfGlory",a[a.SlotSalvationsEdge=21]="SlotSalvationsEdge",a[a.COUNT=22]="COUNT",i;var a})()},1650:(k,c,y)=>{y.d(c,{w:()=>t});var t=(()=>{return(e=t||(t={}))[e.None=0]="None",e[e.ReduceUsedModSockets=1]="ReduceUsedModSockets",e[e.ReduceUsedModPoints=2]="ReduceUsedModPoints",t;var e})()},7580:(k,c,y)=>{y.d(c,{U:()=>t});var t=(()=>{return(e=t||(t={}))[e.WhisperOfDurance=1e3]="WhisperOfDurance",e[e.WhisperOfChains=1001]="WhisperOfChains",e[e.WhisperOfConduction=1002]="WhisperOfConduction",e[e.WhisperOfBonds=1101]="WhisperOfBonds",e[e.WhisperOfHunger=1102]="WhisperOfHunger",e[e.WhisperOfFractures=1103]="WhisperOfFractures",e[e.WhisperOfTorment=1104]="WhisperOfTorment",e[e.EchoOfExpulsion=1200]="EchoOfExpulsion",e[e.EchoOfProvision=1201]="EchoOfProvision",e[e.EchoOfPersistence=1202]="EchoOfPersistence",e[e.EchoOfLeeching=1203]="EchoOfLeeching",e[e.EchoOfDomineering=1204]="EchoOfDomineering",e[e.EchoOfDilation=1205]="EchoOfDilation",e[e.EchoOfUndermining=1206]="EchoOfUndermining",e[e.EchoOfInstability=1207]="EchoOfInstability",e[e.EchoOfHarvest=1208]="EchoOfHarvest",e[e.EchoOfObscurity=1209]="EchoOfObscurity",e[e.EchoOfStarvation=1210]="EchoOfStarvation",e[e.EchoOfVigilance=1211]="EchoOfVigilance",e[e.EmberOfBenelovence=1300]="EmberOfBenelovence",e[e.EmberOfBeams=1301]="EmberOfBeams",e[e.EmberOfEmpyrean=1302]="EmberOfEmpyrean",e[e.EmberOfCombustion=1303]="EmberOfCombustion",e[e.EmberOfChar=1304]="EmberOfChar",e[e.EmberOfTempering=1305]="EmberOfTempering",e[e.EmberOfEruption=1306]="EmberOfEruption",e[e.EmberOfWonder=1307]="EmberOfWonder",e[e.EmberOfSearing=1308]="EmberOfSearing",e[e.EmberOfTorches=1309]="EmberOfTorches",e[e.EmberOfMercy=1310]="EmberOfMercy",e[e.SparkOfBrilliance=1400]="SparkOfBrilliance",e[e.SparkOfFeedback=1401]="SparkOfFeedback",e[e.SparkOfDischarge=1402]="SparkOfDischarge",e[e.SparkOfFocus=1403]="SparkOfFocus",e[e.SparkOfVolts=1404]="SparkOfVolts",e[e.SparkOfResistance=1405]="SparkOfResistance",e[e.SparkOfShock=1406]="SparkOfShock",e[e.ThreadOfFury=1600]="ThreadOfFury",e[e.ThreadOfAscent=1601]="ThreadOfAscent",e[e.ThreadOfFinality=1602]="ThreadOfFinality",e[e.ThreadOfWarding=1603]="ThreadOfWarding",e[e.ThreadOfTransmutation=1604]="ThreadOfTransmutation",e[e.ThreadOfEvolution=1605]="ThreadOfEvolution",e[e.ThreadOfBinding=1606]="ThreadOfBinding",e[e.ThreadOfGeneration=1607]="ThreadOfGeneration",e[e.ThreadOfPropagation=1608]="ThreadOfPropagation",e[e.WhisperOfImpetus=537774543]="WhisperOfImpetus",e[e.FacetOfAwakening=1700]="FacetOfAwakening",e[e.FacetOfCourage=1701]="FacetOfCourage",e[e.FacetOfDawn=1702]="FacetOfDawn",e[e.FacetOfDefiance=1703]="FacetOfDefiance",e[e.FacetOfDevotion=1704]="FacetOfDevotion",e[e.FacetOfDominance=1705]="FacetOfDominance",e[e.FacetOfGrace=1706]="FacetOfGrace",e[e.FacetOfHonor=1707]="FacetOfHonor",e[e.FacetOfJustice=1708]="FacetOfJustice",e[e.FacetOfProtection=1709]="FacetOfProtection",e[e.FacetOfPurpose=1710]="FacetOfPurpose",e[e.FacetOfRuin=1711]="FacetOfRuin",e[e.FacetOfSacrifice=1712]="FacetOfSacrifice",t;var e})()},8333:(k,c,y)=>{y.d(c,{O:()=>t});var t=(()=>{return(e=t||(t={}))[e.CombatStyleMod=0]="CombatStyleMod",e[e.Stasis=1]="Stasis",e[e.Void=2]="Void",e[e.Solar=3]="Solar",e[e.Arc=4]="Arc",e[e.Strand=5]="Strand",e[e.Prismatic=6]="Prismatic",e[e.RetrofitMods=7]="RetrofitMods",t;var e})()},2340:(k,c,y)=>{y.d(c,{N:()=>t});const t={version:"2.6.2",revision:"de34c96",production:!0,beta:!1,canary:!1,apiKey:"9415df8eff46408aa9c0d51e4d69b94f",clientId:"37252",client_secret:"KnVcJPWr7C5y0loOfBoKSyQ-vWXR0JICrgb1aJLsLgg",offlineMode:!1,featureFlags:{enableModslotLimitation:!0,enableZeroWaste:!0,enableGuardianGamesFeatures:!1}}},5861:(k,c,y)=>{function t(r,V,M,D,i,j,J){try{var K=r[j](J),H=K.value}catch(ee){return void M(ee)}K.done?V(H):Promise.resolve(H).then(D,i)}function e(r){return function(){var V=this,M=arguments;return new Promise(function(D,i){var j=r.apply(V,M);function J(H){t(j,D,i,J,K,"next",H)}function K(H){t(j,D,i,J,K,"throw",H)}J(void 0)})}}y.d(c,{Z:()=>e})}},ie={};function N(k){var c=ie[k];if(void 0!==c)return c.exports;var y=ie[k]={exports:{}};return me[k](y,y.exports,N),y.exports}N.d=(k,c)=>{for(var y in c)N.o(c,y)&&!N.o(k,y)&&Object.defineProperty(k,y,{enumerable:!0,get:c[y]})},N.o=(k,c)=>Object.prototype.hasOwnProperty.call(k,c),(()=>{var k=N(5861),c=N(6471),y=N(3244),t=N(443),e=N(1043),r=N(2340);const V={1:[[2,1,0,11],[2,3,0,21],[2,1,1,21],[2,1,2,31]],2:[[4,0,0,12],[4,2,0,22],[4,0,1,22],[4,4,0,32],[4,0,2,32]],3:[[1,0,0,3],[1,2,0,13],[1,0,1,13],[1,4,0,23],[1,2,1,23],[1,0,2,23],[1,2,2,33]],4:[[3,1,0,14],[3,3,0,24],[3,1,1,24],[3,1,2,34]],5:[[0,1,0,5],[5,0,0,15],[0,3,0,15],[0,1,1,15],[5,2,0,25],[5,0,1,25],[0,3,1,25],[0,1,2,25],[5,4,0,35],[5,0,2,35],[0,3,2,35]],6:[[2,0,0,6],[2,2,0,16],[2,0,1,16],[2,4,0,26],[2,2,1,26],[2,0,2,26],[2,2,2,36],[2,0,3,36],[2,2,3,46]],7:[[4,1,0,17],[4,3,0,27],[4,1,1,27],[4,5,0,37],[4,1,2,37],[4,1,3,47]],8:[[1,1,0,8],[1,3,0,18],[1,1,1,18],[1,5,0,28],[1,3,1,28],[1,1,2,28],[1,3,2,38],[1,1,3,38]],9:[[3,0,0,9],[3,2,0,19],[3,0,1,19],[3,4,0,29],[3,2,1,29],[3,0,2,29],[3,2,2,39],[3,0,3,39],[3,2,3,49]],10:[[0,2,0,10],[0,0,1,10],[5,1,0,20],[0,4,0,20],[0,2,1,20],[0,0,2,20],[5,3,0,30],[5,1,1,30],[0,4,1,30],[0,2,2,30],[0,0,3,30],[5,5,0,40],[5,1,2,40],[0,2,3,40],[5,1,3,50]],11:[[2,1,0,11],[2,3,0,21],[2,1,1,21],[2,5,0,31],[2,3,1,31],[2,1,2,31],[2,3,2,41],[2,1,3,41]],12:[[4,0,0,12],[4,2,0,22],[4,0,1,22],[4,4,0,32],[4,2,1,32],[4,0,2,32],[4,2,2,42],[4,0,3,42],[4,2,3,52]],13:[[1,2,0,13],[1,0,1,13],[1,4,0,23],[1,2,1,23],[1,0,2,23],[1,4,1,33],[1,2,2,33],[1,0,3,33],[1,2,3,43]],14:[[3,1,0,14],[3,3,0,24],[3,1,1,24],[3,5,0,34],[3,3,1,34],[3,1,2,34],[3,3,2,44],[3,1,3,44]],15:[[5,0,0,15],[0,3,0,15],[0,1,1,15],[5,2,0,25],[0,5,0,25],[5,0,1,25],[0,3,1,25],[0,1,2,25],[5,4,0,35],[5,2,1,35],[5,0,2,35],[0,3,2,35],[0,1,3,35],[5,2,2,45],[5,0,3,45],[5,2,3,55]],16:[[2,2,0,16],[2,0,1,16],[2,4,0,26],[2,2,1,26],[2,0,2,26],[2,4,1,36],[2,2,2,36],[2,0,3,36],[2,2,3,46],[2,0,4,46]],17:[[4,1,0,17],[4,3,0,27],[4,1,1,27],[4,5,0,37],[4,3,1,37],[4,1,2,37],[4,3,2,47],[4,1,3,47],[4,1,4,57]],18:[[1,3,0,18],[1,1,1,18],[1,5,0,28],[1,3,1,28],[1,1,2,28],[1,3,2,38],[1,1,3,38],[1,1,4,48]],19:[[3,2,0,19],[3,0,1,19],[3,4,0,29],[3,2,1,29],[3,0,2,29],[3,4,1,39],[3,2,2,39],[3,0,3,39],[3,2,3,49],[3,0,4,49]],20:[[5,1,0,20],[0,4,0,20],[0,2,1,20],[0,0,2,20],[5,3,0,30],[5,1,1,30],[0,4,1,30],[0,2,2,30],[0,0,3,30],[5,5,0,40],[5,3,1,40],[5,1,2,40],[0,2,3,40],[0,0,4,40],[5,3,2,50],[5,1,3,50],[5,1,4,60]],21:[[2,3,0,21],[2,1,1,21],[2,5,0,31],[2,3,1,31],[2,1,2,31],[2,3,2,41],[2,1,3,41],[2,1,4,51]],22:[[4,2,0,22],[4,0,1,22],[4,4,0,32],[4,2,1,32],[4,0,2,32],[4,4,1,42],[4,2,2,42],[4,0,3,42],[4,2,3,52],[4,0,4,52]],23:[[1,4,0,23],[1,2,1,23],[1,0,2,23],[1,4,1,33],[1,2,2,33],[1,0,3,33],[1,2,3,43],[1,0,4,43]],24:[[3,3,0,24],[3,1,1,24],[3,5,0,34],[3,3,1,34],[3,1,2,34],[3,3,2,44],[3,1,3,44],[3,1,4,54]],25:[[5,2,0,25],[0,5,0,25],[5,0,1,25],[0,3,1,25],[0,1,2,25],[5,4,0,35],[5,2,1,35],[5,0,2,35],[0,3,2,35],[0,1,3,35],[5,4,1,45],[5,2,2,45],[5,0,3,45],[0,1,4,45],[5,2,3,55],[5,0,4,55]],26:[[2,4,0,26],[2,2,1,26],[2,0,2,26],[2,4,1,36],[2,2,2,36],[2,0,3,36],[2,2,3,46],[2,0,4,46],[2,0,5,56]],27:[[4,3,0,27],[4,1,1,27],[4,5,0,37],[4,3,1,37],[4,1,2,37],[4,3,2,47],[4,1,3,47],[4,1,4,57]],28:[[1,5,0,28],[1,3,1,28],[1,1,2,28],[1,3,2,38],[1,1,3,38],[1,1,4,48]],29:[[3,4,0,29],[3,2,1,29],[3,0,2,29],[3,4,1,39],[3,2,2,39],[3,0,3,39],[3,2,3,49],[3,0,4,49],[3,0,5,59]],30:[[5,3,0,30],[5,1,1,30],[0,4,1,30],[0,2,2,30],[0,0,3,30],[5,5,0,40],[5,3,1,40],[5,1,2,40],[0,2,3,40],[0,0,4,40],[5,3,2,50],[5,1,3,50],[0,0,5,50],[5,1,4,60]],31:[[2,5,0,31],[2,3,1,31],[2,1,2,31],[2,3,2,41],[2,1,3,41],[2,1,4,51]],32:[[4,4,0,32],[4,2,1,32],[4,0,2,32],[4,4,1,42],[4,2,2,42],[4,0,3,42],[4,2,3,52],[4,0,4,52],[4,0,5,62]],33:[[1,4,1,33],[1,2,2,33],[1,0,3,33],[1,2,3,43],[1,0,4,43],[1,0,5,53]],34:[[3,5,0,34],[3,3,1,34],[3,1,2,34],[3,3,2,44],[3,1,3,44],[3,1,4,54]],35:[[5,4,0,35],[5,2,1,35],[5,0,2,35],[0,3,2,35],[0,1,3,35],[5,4,1,45],[5,2,2,45],[5,0,3,45],[0,1,4,45],[5,2,3,55],[5,0,4,55],[5,0,5,65]],36:[[2,4,1,36],[2,2,2,36],[2,0,3,36],[2,2,3,46],[2,0,4,46],[2,0,5,56]],37:[[4,5,0,37],[4,3,1,37],[4,1,2,37],[4,3,2,47],[4,1,3,47],[4,1,4,57]],38:[[1,3,2,38],[1,1,3,38],[1,1,4,48]],39:[[3,4,1,39],[3,2,2,39],[3,0,3,39],[3,2,3,49],[3,0,4,49],[3,0,5,59]],40:[[5,5,0,40],[5,3,1,40],[5,1,2,40],[0,2,3,40],[0,0,4,40],[5,3,2,50],[5,1,3,50],[0,0,5,50],[5,1,4,60]],41:[[2,3,2,41],[2,1,3,41],[2,1,4,51]],42:[[4,4,1,42],[4,2,2,42],[4,0,3,42],[4,2,3,52],[4,0,4,52],[4,0,5,62]],43:[[1,2,3,43],[1,0,4,43],[1,0,5,53]],44:[[3,3,2,44],[3,1,3,44],[3,1,4,54]],45:[[5,4,1,45],[5,2,2,45],[5,0,3,45],[0,1,4,45],[5,2,3,55],[5,0,4,55],[5,0,5,65]],46:[[2,2,3,46],[2,0,4,46],[2,0,5,56]],47:[[4,3,2,47],[4,1,3,47],[4,1,4,57]],48:[[1,1,4,48]],49:[[3,2,3,49],[3,0,4,49],[3,0,5,59]],50:[[5,3,2,50],[5,1,3,50],[0,0,5,50],[5,1,4,60]],51:[[2,1,4,51]],52:[[4,2,3,52],[4,0,4,52],[4,0,5,62]],53:[[1,0,5,53]],54:[[3,1,4,54]],55:[[5,2,3,55],[5,0,4,55],[5,0,5,65]],56:[[2,0,5,56]],57:[[4,1,4,57]],58:[],59:[[3,0,5,59]],60:[[5,1,4,60]],61:[],62:[[4,0,5,62]],63:[],64:[],65:[[5,0,5,65]]},M={1:[[1,0,0,3],[0,1,0,5],[0,0,1,10]],2:[[1,0,0,3],[0,1,0,5],[0,0,1,10]],3:[[1,0,0,3],[0,1,0,5],[0,0,1,10]],4:[[0,1,0,5],[2,0,0,6],[0,0,1,10]],5:[[0,1,0,5],[2,0,0,6],[0,0,1,10]],6:[[2,0,0,6],[1,1,0,8],[0,2,0,10],[0,0,1,10]],7:[[1,1,0,8],[3,0,0,9],[0,2,0,10],[0,0,1,10]],8:[[1,1,0,8],[3,0,0,9],[0,2,0,10],[0,0,1,10]],9:[[3,0,0,9],[0,2,0,10],[0,0,1,10],[2,1,0,11]],10:[[0,2,0,10],[0,0,1,10],[2,1,0,11],[4,0,0,12]],11:[[2,1,0,11],[4,0,0,12],[1,2,0,13],[1,0,1,13],[0,3,0,15],[0,1,1,15],[0,0,2,20]],12:[[4,0,0,12],[1,2,0,13],[1,0,1,13],[3,1,0,14],[0,3,0,15],[0,1,1,15],[0,0,2,20]],13:[[1,2,0,13],[1,0,1,13],[3,1,0,14],[5,0,0,15],[0,3,0,15],[0,1,1,15],[0,0,2,20]],14:[[3,1,0,14],[5,0,0,15],[0,3,0,15],[0,1,1,15],[2,2,0,16],[2,0,1,16],[0,0,2,20]],15:[[5,0,0,15],[0,3,0,15],[0,1,1,15],[2,2,0,16],[2,0,1,16],[4,1,0,17],[0,0,2,20]],16:[[2,2,0,16],[2,0,1,16],[4,1,0,17],[1,3,0,18],[1,1,1,18],[0,4,0,20],[0,2,1,20],[0,0,2,20]],17:[[4,1,0,17],[1,3,0,18],[1,1,1,18],[3,2,0,19],[3,0,1,19],[0,4,0,20],[0,2,1,20],[0,0,2,20]],18:[[1,1,1,18],[1,3,0,18],[3,2,0,19],[3,0,1,19],[5,1,0,20],[0,4,0,20],[0,2,1,20],[0,0,2,20]],19:[[3,2,0,19],[3,0,1,19],[5,1,0,20],[0,4,0,20],[0,2,1,20],[0,0,2,20],[2,3,0,21],[2,1,1,21]],20:[[5,1,0,20],[0,4,0,20],[0,2,1,20],[0,0,2,20],[2,3,0,21],[2,1,1,21],[4,2,0,22],[4,0,1,22]],21:[[2,3,0,21],[2,1,1,21],[4,2,0,22],[4,0,1,22],[1,4,0,23],[1,2,1,23],[1,0,2,23],[0,5,0,25],[0,3,1,25],[0,1,2,25],[0,0,3,30]],22:[[4,2,0,22],[4,0,1,22],[1,4,0,23],[1,2,1,23],[1,0,2,23],[3,3,0,24],[3,1,1,24],[0,5,0,25],[0,3,1,25],[0,1,2,25],[0,0,3,30]],23:[[1,4,0,23],[1,2,1,23],[1,0,2,23],[3,3,0,24],[3,1,1,24],[5,2,0,25],[0,5,0,25],[5,0,1,25],[0,3,1,25],[0,1,2,25],[0,0,3,30]],24:[[3,3,0,24],[3,1,1,24],[5,2,0,25],[0,5,0,25],[5,0,1,25],[0,3,1,25],[0,1,2,25],[2,4,0,26],[2,2,1,26],[2,0,2,26],[0,0,3,30]],25:[[5,2,0,25],[0,5,0,25],[5,0,1,25],[0,3,1,25],[0,1,2,25],[2,4,0,26],[2,2,1,26],[2,0,2,26],[4,3,0,27],[4,1,1,27],[0,0,3,30]],26:[[2,4,0,26],[2,2,1,26],[2,0,2,26],[4,3,0,27],[4,1,1,27],[1,5,0,28],[1,3,1,28],[1,1,2,28],[0,4,1,30],[0,2,2,30],[0,0,3,30]],27:[[4,3,0,27],[4,1,1,27],[1,5,0,28],[1,3,1,28],[1,1,2,28],[3,4,0,29],[3,2,1,29],[3,0,2,29],[0,4,1,30],[0,2,2,30],[0,0,3,30]],28:[[1,5,0,28],[1,3,1,28],[1,1,2,28],[3,4,0,29],[3,2,1,29],[3,0,2,29],[5,3,0,30],[5,1,1,30],[0,4,1,30],[0,2,2,30],[0,0,3,30]],29:[[3,4,0,29],[3,2,1,29],[3,0,2,29],[5,3,0,30],[5,1,1,30],[0,4,1,30],[0,2,2,30],[0,0,3,30],[2,5,0,31],[2,3,1,31],[2,1,2,31]],30:[[5,3,0,30],[5,1,1,30],[0,4,1,30],[0,2,2,30],[0,0,3,30],[2,5,0,31],[2,3,1,31],[2,1,2,31],[4,4,0,32],[4,2,1,32],[4,0,2,32]],31:[[2,5,0,31],[2,3,1,31],[2,1,2,31],[4,4,0,32],[4,2,1,32],[4,0,2,32],[1,4,1,33],[1,2,2,33],[1,0,3,33],[0,3,2,35],[0,1,3,35],[0,0,4,40]],32:[[4,4,0,32],[4,2,1,32],[4,0,2,32],[1,4,1,33],[1,2,2,33],[1,0,3,33],[3,5,0,34],[3,3,1,34],[3,1,2,34],[0,3,2,35],[0,1,3,35],[0,0,4,40]],33:[[1,4,1,33],[1,2,2,33],[1,0,3,33],[3,5,0,34],[3,3,1,34],[3,1,2,34],[5,4,0,35],[5,2,1,35],[5,0,2,35],[0,3,2,35],[0,1,3,35],[0,0,4,40]],34:[[3,5,0,34],[3,3,1,34],[3,1,2,34],[5,4,0,35],[5,2,1,35],[5,0,2,35],[0,3,2,35],[0,1,3,35],[2,4,1,36],[2,2,2,36],[2,0,3,36],[0,0,4,40]],35:[[5,4,0,35],[5,2,1,35],[5,0,2,35],[0,3,2,35],[0,1,3,35],[2,4,1,36],[2,2,2,36],[2,0,3,36],[4,5,0,37],[4,3,1,37],[4,1,2,37],[0,0,4,40]],36:[[2,4,1,36],[2,2,2,36],[2,0,3,36],[4,5,0,37],[4,3,1,37],[4,1,2,37],[1,3,2,38],[1,1,3,38],[0,2,3,40],[0,0,4,40]],37:[[4,5,0,37],[4,3,1,37],[4,1,2,37],[1,3,2,38],[1,1,3,38],[3,4,1,39],[3,2,2,39],[3,0,3,39],[0,2,3,40],[0,0,4,40]],38:[[1,3,2,38],[1,1,3,38],[3,4,1,39],[3,2,2,39],[3,0,3,39],[5,5,0,40],[5,3,1,40],[5,1,2,40],[0,2,3,40],[0,0,4,40]],39:[[3,4,1,39],[3,2,2,39],[3,0,3,39],[5,5,0,40],[5,3,1,40],[5,1,2,40],[0,2,3,40],[0,0,4,40],[2,3,2,41],[2,1,3,41]],40:[[5,5,0,40],[5,3,1,40],[5,1,2,40],[0,2,3,40],[0,0,4,40],[2,3,2,41],[2,1,3,41],[4,4,1,42],[4,2,2,42],[4,0,3,42]],41:[[2,3,2,41],[2,1,3,41],[4,4,1,42],[4,2,2,42],[4,0,3,42],[1,2,3,43],[1,0,4,43],[0,1,4,45],[0,0,5,50]],42:[[4,4,1,42],[4,2,2,42],[4,0,3,42],[1,2,3,43],[1,0,4,43],[3,3,2,44],[3,1,3,44],[0,1,4,45],[0,0,5,50]],43:[[1,2,3,43],[1,0,4,43],[3,3,2,44],[3,1,3,44],[5,4,1,45],[5,2,2,45],[5,0,3,45],[0,1,4,45],[0,0,5,50]],44:[[3,3,2,44],[3,1,3,44],[5,4,1,45],[5,2,2,45],[5,0,3,45],[0,1,4,45],[2,2,3,46],[2,0,4,46],[0,0,5,50]],45:[[5,4,1,45],[5,2,2,45],[5,0,3,45],[0,1,4,45],[2,2,3,46],[2,0,4,46],[4,3,2,47],[4,1,3,47],[0,0,5,50]],46:[[2,2,3,46],[2,0,4,46],[4,3,2,47],[4,1,3,47],[1,1,4,48],[0,0,5,50]],47:[[4,3,2,47],[4,1,3,47],[1,1,4,48],[3,2,3,49],[3,0,4,49],[0,0,5,50]],48:[[1,1,4,48],[3,2,3,49],[3,0,4,49],[5,3,2,50],[5,1,3,50],[0,0,5,50]],49:[[3,2,3,49],[3,0,4,49],[5,3,2,50],[5,1,3,50],[0,0,5,50],[2,1,4,51]],50:[[5,3,2,50],[5,1,3,50],[0,0,5,50],[2,1,4,51],[4,2,3,52],[4,0,4,52]],51:[[2,1,4,51],[4,2,3,52],[4,0,4,52],[1,0,5,53]],52:[[4,2,3,52],[4,0,4,52],[1,0,5,53],[3,1,4,54]],53:[[1,0,5,53],[3,1,4,54],[5,2,3,55],[5,0,4,55]],54:[[3,1,4,54],[5,2,3,55],[5,0,4,55],[2,0,5,56]],55:[[5,2,3,55],[5,0,4,55],[2,0,5,56],[4,1,4,57]],56:[[2,0,5,56],[4,1,4,57]],57:[[4,1,4,57],[3,0,5,59]],58:[[3,0,5,59],[5,1,4,60]],59:[[3,0,5,59],[5,1,4,60]],60:[[5,1,4,60],[4,0,5,62]],61:[[4,0,5,62]],62:[[4,0,5,62]],63:[[5,0,5,65]],64:[[5,0,5,65]],65:[[5,0,5,65]]};var D=N(1650);function j(n){return Object.prototype.hasOwnProperty.call(n,"armor")&&Object.prototype.hasOwnProperty.call(n,"usedArtifice")&&Object.prototype.hasOwnProperty.call(n,"usedMods")&&Object.prototype.hasOwnProperty.call(n,"statsWithMods")&&Object.prototype.hasOwnProperty.call(n,"classItemPerk")}function J(n,s,h,u,S,w,O){var m=n.selectedExotics[0]||0;let d=s.slice();if((!u.isExotic||!n.assumeEveryExoticIsArtifice)&&(m<=0||u.hash!=m)&&n.armorPerks[c.y.ArmorSlotHelmet].fixed&&n.armorPerks[c.y.ArmorSlotHelmet].value!=e.Pn.None&&n.armorPerks[c.y.ArmorSlotHelmet].value!=u.perk)return{valid:!1};if((!S.isExotic||!n.assumeEveryExoticIsArtifice)&&(m<=0||S.hash!=m)&&n.armorPerks[c.y.ArmorSlotGauntlet].fixed&&n.armorPerks[c.y.ArmorSlotGauntlet].value!=e.Pn.None&&n.armorPerks[c.y.ArmorSlotGauntlet].value!=S.perk)return{valid:!1};if((!w.isExotic||!n.assumeEveryExoticIsArtifice)&&(m<=0||w.hash!=m)&&n.armorPerks[c.y.ArmorSlotChest].fixed&&n.armorPerks[c.y.ArmorSlotChest].value!=e.Pn.None&&n.armorPerks[c.y.ArmorSlotChest].value!=w.perk)return{valid:!1};if((!O.isExotic||!n.assumeEveryExoticIsArtifice)&&(m<=0||O.hash!=m)&&n.armorPerks[c.y.ArmorSlotLegs].fixed&&n.armorPerks[c.y.ArmorSlotLegs].value!=e.Pn.None&&n.armorPerks[c.y.ArmorSlotLegs].value!=O.perk)return{valid:!1};if(n.armorPerks[c.y.ArmorSlotClass].fixed&&n.armorPerks[c.y.ArmorSlotClass].value!=e.Pn.None&&!h.has(n.armorPerks[c.y.ArmorSlotClass].value))return{valid:!1};d[u.perk]--,d[S.perk]--,d[w.perk]--,d[O.perk]--,m>0&&(u.hash==m?d[n.armorPerks[u.slot].value]--:S.hash==m?d[n.armorPerks[S.slot].value]--:w.hash==m?d[n.armorPerks[w.slot].value]--:O.hash==m&&d[n.armorPerks[O.slot].value]--);let U=0;for(let v=1;vs.minimumStatTiers[o].value||!s.allowExactStats&&f[o]/10>=s.minimumStatTiers[o].value+1))return null;let F=C.filter(o=>(!o.isExotic||!s.ignoreExistingExoticArtificeSlots)&&o.perk==e.Pn.SlotArtifice||s.assumeEveryLegendaryIsArtifice&&!o.isExotic||s.assumeEveryExoticIsArtifice&&o.isExotic).length;U&&(F+=1);const _=[Math.max(0,10*s.minimumStatTiers[0].value-f[0]),Math.max(0,10*s.minimumStatTiers[1].value-f[1]),Math.max(0,10*s.minimumStatTiers[2].value-f[2]),Math.max(0,10*s.minimumStatTiers[3].value-f[3]),Math.max(0,10*s.minimumStatTiers[4].value-f[4]),Math.max(0,10*s.minimumStatTiers[5].value-f[5])];if(s.onlyShowResultsWithNoWastedStats)for(let o=0;o<6;o++){const E=10-f[o]%10;_[o]=Math.max(_[o],E<10?E:0)}const L=[0,0,0,0,0,0];if(s.tryLimitWastedStats)for(let o=0;o<6;o++)0==_[o]&&!s.minimumStatTiers[o].fixed&&f[o]<100&&f[o]%10>0&&(L[o]=10-f[o]%10);const x=L.reduce((o,E)=>o+E,0),G=_[0]+_[1]+_[2]+_[3]+_[4]+_[5];if(G>50+3*F)return null;let P;if(P=0==G&&0==x?[]:te(s,_,L,F,m,s.modOptimizationStrategy),null==P)return null;const l=[Math.max(0,100-f[0]),Math.max(0,100-f[1]),Math.max(0,100-f[2]),Math.max(0,100-f[3]),Math.max(0,100-f[4]),Math.max(0,100-f[5])];let p=[],g=[];for(let o=0;o<4;o++)for(let E=o+1;E<5;E++)for(let T=E+1;T<6;T++){let I=_.slice();if(I[o]=l[o],I[E]=l[E],I[T]=l[T],I[0]+I[1]+I[2]+I[3]+I[4]+I[5]<=65){p.push([o,E,T]);for(let Y=T+1;Y<6;Y++){let q=I.slice();q[Y]=l[Y],q[0]+q[1]+q[2]+q[3]+q[4]+q[5]<=65&&g.push([o,E,T,Y])}}}if(p.length>0){for(let o of p){const E=_.slice();for(let I of o)E[I]=l[I];null!=te(s,E,[0,0,0,0,0,0],F,m,D.w.None)&&n.statCombo3x100.add((1<=s.minimumStatTiers[o].value&&T>n.maximumPossibleTiers[o]/10&&!(f[o]>=10*T);T--){const I=10-f[o]%10;if(_[o]=Math.max(I<10?I:0,10*T-f[o]),null!=te(s,_,[0,0,0,0,0,0],F,m,D.w.None)){n.maximumPossibleTiers[o]=10*T;break}}_[o]=E}if(d)return[];const W=P.filter(o=>o%3==0),A=P.filter(o=>o%3!=0);for(let o of P)f[Math.floor((o-1)/3)]+=e.K9[o][1];const B=function de(n){return(n[e.WB.Mobility]>100?n[e.WB.Mobility]-100:n[e.WB.Mobility]%10)+(n[e.WB.Resilience]>100?n[e.WB.Resilience]-100:n[e.WB.Resilience]%10)+(n[e.WB.Recovery]>100?n[e.WB.Recovery]-100:n[e.WB.Recovery]%10)+(n[e.WB.Discipline]>100?n[e.WB.Discipline]-100:n[e.WB.Discipline]%10)+(n[e.WB.Intellect]>100?n[e.WB.Intellect]-100:n[e.WB.Intellect]%10)+(n[e.WB.Strength]>100?n[e.WB.Strength]-100:n[e.WB.Strength]%10)}(f);return s.onlyShowResultsWithNoWastedStats&&B>0?null:function i(n,s,h,u,S,w,O,m){return{armor:[n.id,s.id,h.id,u.id],usedArtifice:S,usedMods:w,classItemPerk:e.Pn.None,statsWithMods:O,statsWithoutMods:m}}(h,u,S,w,W,A,f,Z)}function te(n,s,h,u,S,w=D.w.None){const O=s[0]+s[1]+s[2]+s[3]+s[4]+s[5];if(O>65)return null;const m=n.onlyShowResultsWithNoWastedStats?V:M,d=[m[s[0]]||[[0,0,0,0]],m[s[1]]||[[0,0,0,0]],m[s[2]]||[[0,0,0,0]],m[s[3]]||[[0,0,0,0]],m[s[4]]||[[0,0,0,0]],m[s[5]]||[[0,0,0,0]]];if(n.allowExactStats)for(let l=0;l<6;l++)n.minimumStatTiers[l].fixed&&s[l]>0&&(d[l]=V[s[l]]||[[0,0,0,0]],d[l]=d[l].filter(p=>p[3]-s[l]<10));for(let l=0;l0){const p=m[h[l]].filter(g=>0==g[2]&&g[3]%10>0&&(h[l]+g[3])%10g+W[1]+W[2]:w==D.w.ReduceUsedModPoints?(p,g,W)=>p+F[W]*g[1]+_[W]*g[2]:(p,g)=>p+g[3],0)}function x(l,p=!1){const g=l.reduce((A,B,o)=>[A[0]+B[0],A[1]+B[1],A[2]+B[2],A[3]+B[3]-s[o]],[0,0,0,0]);if(L(l)>C||g[0]>u||g[1]+g[2]>v||g[3]<0)return!1;if(!p||5==f)return!0;let W=[];for(let A=0;Av)return!1;l.sort((g,W)=>W-g);for(let g=0;g0&&w!=D.w.None;e:for(let l of d[0])if(x([l]))for(let p of d[1])if(x([l,p]))for(let g of d[2])if(x([l,p,g])&&!(G&&L([l,p,g])>=C))for(let W of d[3])if(x([l,p,g,W])&&!(G&&L([l,p,g,W])>=C))for(let A of d[4])if(x([l,p,g,W,A])&&!(G&&L([l,p,g,W,A])>=C))t:for(let B of d[5]){let o=[l,p,g,W,A,B];if(!x(o,!0))continue;for(let T=0;T<6;T++)if(h[T]>0&&0==o[T][3]&&null!=R)continue t;let E=L(o);if(Eb.slot==c.y.ArmorSlotHelmet).filter(b=>!u.useFotlArmor||[199733460,2545426109,3224066584].indexOf(b.hash)>-1),d=w.filter(b=>b.slot==c.y.ArmorSlotGauntlet),U=w.filter(b=>b.slot==c.y.ArmorSlotChest),R=w.filter(b=>b.slot==c.y.ArmorSlotLegs);if(h.count>1){var C=[[m,m.length],[d,d.length],[U,U.length],[R,R.length]].sort((b,X)=>X[1]-b[1])[0][0],v=Math.round(C.length/h.count),f=v*h.current,Z=f+v;h.current==h.count-1&&(Z=C.length),C.splice(Z),C.splice(0,f)}let F=w.filter(b=>b.slot==c.y.ArmorSlotClass),_=F.filter(b=>b.isExotic).length,L=F.length-_,x=new Set(F.filter(b=>!b.isExotic).map(b=>b.perk)),G=new Set(F.filter(b=>b.isExotic).map(b=>b.perk));L>0&&(u.assumeEveryLegendaryIsArtifice||u.assumeClassItemIsArtifice)&&x.add(e.Pn.SlotArtifice),_>0&&u.assumeEveryExoticIsArtifice&&G.add(e.Pn.SlotArtifice),console.debug("items",JSON.stringify({helmets:m.length,gauntlets:d.length,chests:U.length,legs:R.length,availableClassItemTypes:x}));const P={maximumPossibleTiers:[0,0,0,0,0,0],statCombo3x100:new Set,statCombo4x100:new Set},l=function K(n){const s=[0,0,0,0,0,0];for(const u of n.enabledMods)for(const S of t.F[u].bonus)s[S.stat==e.AR.ClassAbilityRegenerationStat?[1,0,2][n.characterClass]:S.stat]+=S.value;return s}(u),p=function H(n){let s=[];for(let h=0;hh>0).sort((h,u)=>u-h)}(u),W=S.length<=1,A=x.has(e.Pn.SlotArtifice),B=G.has(e.Pn.SlotArtifice),o=u.selectedExotics.indexOf(y.dM)>-1,E=F.sort((b,X)=>b.masterworked?-1:1).find(b=>b.isExotic)||null,T=!!E&&u.selectedExotics.indexOf(E.hash)>-1;console.log("hasArtificeClassItem",A);let I=[],$=0,Y=0,q=0,ne=!1,z=function le(n,s,h,u){let S=0;const w=n.filter(f=>f.isExotic).length,O=n.length-w,m=s.filter(f=>f.isExotic).length,d=s.length-m,U=h.filter(f=>f.isExotic).length,R=h.length-U,C=u.filter(f=>f.isExotic).length,v=u.length-C;return S+=w*d*R*v,S+=O*m*R*v,S+=O*d*U*v,S+=O*d*R*C,S+=O*d*R*v,S}(m,d,U,R),ae=0,fe=0;console.log("estimatedCalculations",z);let pe=z>=1e6?125:75;console.time(`tm #${h.current}`);for(let[b,X,se,re]of function*ce(n,s,h,u,S,w){for(let O of n)for(let m of s)if(!(S&&O.isExotic&&m.isExotic))for(let d of h)if(!S||!O.isExotic&&!m.isExotic||!d.isExotic)for(let U of u)S&&(O.isExotic||m.isExotic||d.isExotic)&&U.isExotic||w&&!(O.isExotic||m.isExotic||d.isExotic||U.isExotic)||(yield[O,m,d,U])}(m,d,U,R,W,o)){ae++;const oe=J(u,p,x,b,X,se,re);if(!oe.valid)continue;const ge=!oe.requiredClassItemType||oe.requiredClassItemType==e.Pn.SlotArtifice,ue=b.isExotic||X.isExotic||se.isExotic||re.isExotic,Q=he(P,u,b,X,se,re,l,g,ne,(A||!ue&&B&&!u.ignoreExistingExoticArtificeSlots)&&ge,T);null!=Q&&(q++,j(Q)&&(Q.classItemPerk=oe.requiredClassItemType||(A?e.Pn.SlotArtifice:e.Pn.None),!ue&&E&&T&&Q.armor.push(E.id),I.push(Q),$++,Y++,ne=ne||u.limitParsedResults&&Y>=3e4/h.count||Y>=1e6/h.count)),q%5e3==0&&fe+pe=5e3&&(postMessage({runtime:P,results:I,done:!1,checkedCalculations:ae,estimatedCalculations:z}),I=[],$=0)}console.timeEnd(`tm #${h.current}`),console.timeEnd(`total #${h.current}`),postMessage({runtime:P,results:I,done:!0,checkedCalculations:ae,estimatedCalculations:z,stats:{permutationCount:q,itemCount:w.length-F.length,totalTime:Date.now()-O}})});return function(s){return n.apply(this,arguments)}}())})()})(); \ No newline at end of file diff --git a/982.f0fd7edb63d23e43.js b/982.f0fd7edb63d23e43.js new file mode 100644 index 00000000..63c0f057 --- /dev/null +++ b/982.f0fd7edb63d23e43.js @@ -0,0 +1 @@ +(()=>{"use strict";var he={443:(k,c,O)=>{O.d(c,{F:()=>V});var t=O(7580),e=O(8333),a=O(1043);const V={[t.U.WhisperOfDurance]:{id:t.U.WhisperOfDurance,name:"Whisper of Durance",description:"Slow that you apply to targets lasts longer. For those abilities that linger, their duration will also increase.",type:e.O.Stasis,bonus:[{stat:a.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:3469412969},[t.U.WhisperOfChains]:{id:t.U.WhisperOfChains,name:"Whisper of Chains",description:"While you are near frozen targets or a friendly Stasis crystal, you take reduced damage from targets.",type:e.O.Stasis,bonus:[{stat:a.WB.Recovery,value:10}],cost:1,requiredArmorAffinity:0,hash:537774540},[t.U.WhisperOfConduction]:{id:t.U.WhisperOfConduction,name:"Whisper of Conduction",description:"Nearby Stasis shards track to your position.",type:e.O.Stasis,bonus:[{stat:a.WB.Intellect,value:10},{stat:a.WB.Resilience,value:10}],cost:1,requiredArmorAffinity:0,hash:2483898429},[t.U.WhisperOfBonds]:{id:t.U.WhisperOfBonds,name:"Whisper of Bonds",description:"Defeating frozen targets generates an Orb of Power.",type:e.O.Stasis,bonus:[{stat:a.WB.Intellect,value:-10}],cost:1,requiredArmorAffinity:0,hash:3469412974},[t.U.WhisperOfHunger]:{id:t.U.WhisperOfHunger,name:"Whisper of Hunger",description:"Increases the melee energy gained from picking up Stasis shards.",type:e.O.Stasis,bonus:[{stat:a.WB.Strength,value:-20}],cost:1,requiredArmorAffinity:0,hash:2483898431},[t.U.WhisperOfFractures]:{id:t.U.WhisperOfFractures,name:"Whisper of Fractures",description:"Your melee energy recharges faster when you are near two or more targets.",type:e.O.Stasis,bonus:[{stat:a.WB.Discipline,value:-10}],cost:1,requiredArmorAffinity:0,hash:537774542},[t.U.WhisperOfImpetus]:{id:t.U.WhisperOfImpetus,name:"Whisper of Impetus",description:"Damaging targets with a Stasis melee reloads your stowed weapons and grants you a temporary boost to weapon ready speed.",type:e.O.Stasis,bonus:[{stat:a.WB.Resilience,value:10}],cost:1,requiredArmorAffinity:0,hash:537774543},[t.U.WhisperOfTorment]:{id:t.U.WhisperOfTorment,name:"Whisper of Torment",description:"You gain grenade energy each time you take damage from targets. Having Frost Armor increases the amount of energy gained.",type:e.O.Stasis,bonus:[{stat:a.WB.Discipline,value:-10}],cost:1,requiredArmorAffinity:0,hash:537774541},[t.U.EchoOfExpulsion]:{id:t.U.EchoOfExpulsion,name:"Echo of Expulsion",description:"Void ability final blows cause targets to explode.",type:e.O.Void,bonus:[{stat:a.WB.Intellect,value:10}],cost:1,requiredArmorAffinity:0,hash:2272984665},[t.U.EchoOfProvision]:{id:t.U.EchoOfProvision,name:"Echo of Provision",description:"Damaging targets with grenades grants melee energy.",type:e.O.Void,bonus:[{stat:a.WB.Strength,value:-10}],cost:1,requiredArmorAffinity:0,hash:2272984664},[t.U.EchoOfPersistence]:{id:t.U.EchoOfPersistence,name:"Echo of Persistence",description:"Void buffs applied to you (Invisibility, Overshield, and Devour) have increased duration.",type:e.O.Void,bonus:[{stat:a.AR.ClassAbilityRegenerationStat,value:-10}],cost:1,requiredArmorAffinity:0,hash:2272984671},[t.U.EchoOfLeeching]:{id:t.U.EchoOfLeeching,name:"Echo of Leeching",description:"Melee final blows start health regeneration for you and nearby allies.",type:e.O.Void,bonus:[{stat:a.WB.Resilience,value:10}],cost:1,requiredArmorAffinity:0,hash:2272984670},[t.U.EchoOfDomineering]:{id:t.U.EchoOfDomineering,name:"Echo of Domineering",description:"After suppressing a target, you gain greatly increased mobility for a short duration, and your equipped weapon is reloaded from reserves.\n\nDefeating suppressed targets creates a Void Breach.",type:e.O.Void,bonus:[{stat:a.WB.Discipline,value:10}],cost:1,requiredArmorAffinity:0,hash:2272984657},[t.U.EchoOfDilation]:{id:t.U.EchoOfDilation,name:"Echo of Dilation",description:"While crouched, you sneak faster and gain enhanced radar resolution.",type:e.O.Void,bonus:[{stat:a.WB.Mobility,value:10},{stat:a.WB.Intellect,value:10}],cost:1,requiredArmorAffinity:0,hash:2272984656},[t.U.EchoOfUndermining]:{id:t.U.EchoOfUndermining,name:"Echo of Undermining",description:"Your Void grenades weaken targets.",type:e.O.Void,bonus:[{stat:a.WB.Discipline,value:-20}],cost:1,requiredArmorAffinity:0,hash:2272984668},[t.U.EchoOfInstability]:{id:t.U.EchoOfInstability,name:"Echo of Instability",description:"Defeating targets with grenades grants Volatile Rounds to your Void weapons.",type:e.O.Void,bonus:[{stat:a.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:2661180600},[t.U.EchoOfHarvest]:{id:t.U.EchoOfHarvest,name:"Echo of Harvest",description:"Defeating weakened targets creates an Orb of Power and a Void Breach.",type:e.O.Void,bonus:[{stat:a.WB.Intellect,value:-10}],cost:1,requiredArmorAffinity:0,hash:2661180601},[t.U.EchoOfObscurity]:{id:t.U.EchoOfObscurity,name:"Echo of Obscurity",description:"Finisher final blows grant Invisibility.",type:e.O.Void,bonus:[{stat:a.WB.Recovery,value:10}],cost:1,requiredArmorAffinity:0,hash:2661180602},[t.U.EchoOfStarvation]:{id:t.U.EchoOfStarvation,name:"Echo of Starvation",description:"Picking up a Void Breach or an Orb of Power grants Devour.",type:e.O.Void,bonus:[{stat:a.WB.Recovery,value:-10}],cost:1,requiredArmorAffinity:0,hash:2661180603},[t.U.EchoOfVigilance]:{id:t.U.EchoOfVigilance,name:"Echo of Vigilance",description:"Defeating a target while your shields are depleted grants you a temporary Void overshield.",type:e.O.Void,bonus:[{stat:a.WB.Recovery,value:-10}],cost:1,requiredArmorAffinity:0,hash:3854948621},[t.U.EmberOfBenelovence]:{id:t.U.EmberOfBenelovence,name:"Ember of Benevolence",description:"Applying restoration, cure, or radiant to allies grants increased grenade, melee, and class ability regeneration for a short duration.",type:e.O.Solar,bonus:[{stat:a.WB.Discipline,value:-10}],cost:1,requiredArmorAffinity:0,hash:362132292},[t.U.EmberOfBeams]:{id:t.U.EmberOfBeams,name:"Ember of Beams",description:"Your Solar Super projectiles have stronger target acquisition.",type:e.O.Solar,bonus:[{stat:a.WB.Intellect,value:10}],cost:1,requiredArmorAffinity:0,hash:362132295},[t.U.EmberOfEmpyrean]:{id:t.U.EmberOfEmpyrean,name:"Ember of Empyrean",description:"Solar weapon or ability final blows extend the duration of restoration and radiant effects applied to you.",type:e.O.Solar,bonus:[{stat:a.WB.Resilience,value:-10}],cost:1,requiredArmorAffinity:0,hash:362132294},[t.U.EmberOfCombustion]:{id:t.U.EmberOfCombustion,name:"Ember of Combustion",description:"Final blows with a Solar Super causes targets to ignite and creates a Firesprite.",type:e.O.Solar,bonus:[{stat:a.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:362132289},[t.U.EmberOfChar]:{id:t.U.EmberOfChar,name:"Ember of Char",description:"Your Solar ignitions spread scorch to affected targets.",type:e.O.Solar,bonus:[{stat:a.WB.Discipline,value:10}],cost:1,requiredArmorAffinity:0,hash:362132291},[t.U.EmberOfTempering]:{id:t.U.EmberOfTempering,name:"Ember of Tempering",description:"Solar weapon final blows grant you and your allies increased recovery for a short duration. Stacks 3 times.\n\nWhile Ember of Tempering is active, your weapons have increased airborne effectiveness, and your Solar weapon final blows create a Firesprite.",type:e.O.Solar,bonus:[{stat:a.WB.Recovery,value:-10}],cost:1,requiredArmorAffinity:0,hash:362132290},[t.U.EmberOfEruption]:{id:t.U.EmberOfEruption,name:"Ember of Eruption",description:"Your Solar ignitions have increased area of effect.",type:e.O.Solar,bonus:[{stat:a.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:1051276348},[t.U.EmberOfWonder]:{id:t.U.EmberOfWonder,name:"Ember of Wonder",description:"Rapidly defeating multiple targets with Solar ignitions generates an Orb of Power.",type:e.O.Solar,bonus:[{stat:a.WB.Resilience,value:10}],cost:1,requiredArmorAffinity:0,hash:1051276350},[t.U.EmberOfSearing]:{id:t.U.EmberOfSearing,name:"Ember of Searing",description:"Defeating scorched targets grants melee energy and creates a Firesprite.",type:e.O.Solar,bonus:[{stat:a.WB.Recovery,value:10}],cost:1,requiredArmorAffinity:0,hash:1051276351},[t.U.EmberOfTorches]:{id:t.U.EmberOfTorches,name:"Ember of Torches",description:"Powered melee attacks against combatants make you and nearby allies radiant.",type:e.O.Solar,bonus:[{stat:a.WB.Discipline,value:-10}],cost:1,requiredArmorAffinity:0,hash:362132288},[t.U.EmberOfMercy]:{id:t.U.EmberOfMercy,name:"Ember of Mercy",description:"When you revive an ally, you and other nearby allies gain restoration.\n\nPicking up a Firesprite grants restoration.",type:e.O.Solar,bonus:[{stat:a.WB.Resilience,value:10}],cost:1,requiredArmorAffinity:0,hash:4180586737},[t.U.SparkOfBrilliance]:{id:t.U.SparkOfBrilliance,name:"Spark of Brilliance",description:"Defeating a blinded target with precision damage creates a blinding explosion.",type:e.O.Arc,bonus:[{stat:a.WB.Intellect,value:10}],cost:1,requiredArmorAffinity:0,hash:3277705905},[t.U.SparkOfFeedback]:{id:t.U.SparkOfFeedback,name:"Spark of Feedback",description:"Taking melee damage briefly increases your outgoing melee damage.",type:e.O.Arc,bonus:[{stat:a.WB.Resilience,value:10}],cost:1,requiredArmorAffinity:0,hash:3277705907},[t.U.SparkOfDischarge]:{id:t.U.SparkOfDischarge,name:"Spark of Discharge",description:"Arc weapon final blows have a chance to create an Ionic Trace.",type:e.O.Arc,bonus:[{stat:a.WB.Strength,value:-10}],cost:1,requiredArmorAffinity:0,hash:1727069362},[t.U.SparkOfFocus]:{id:t.U.SparkOfFocus,name:"Spark of Focus",description:"After sprinting for a short time, your class ability regeneration is increased.",type:e.O.Arc,bonus:[{stat:a.AR.ClassAbilityRegenerationStat,value:-10}],cost:1,requiredArmorAffinity:0,hash:1727069360},[t.U.SparkOfVolts]:{id:t.U.SparkOfVolts,name:"Spark of Volts",description:"Finishers make you amplified.",type:e.O.Arc,bonus:[{stat:a.WB.Recovery,value:10}],cost:1,requiredArmorAffinity:0,hash:3277705904},[t.U.SparkOfResistance]:{id:t.U.SparkOfResistance,name:"Spark of Resistance",description:"While surrounded by combatants, you are more resistant to incoming damage.",type:e.O.Arc,bonus:[{stat:a.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:1727069366},[t.U.SparkOfShock]:{id:t.U.SparkOfShock,name:"Spark of Shock",description:"Your Arc grenades jolt targets.",type:e.O.Arc,bonus:[{stat:a.WB.Discipline,value:-10}],cost:1,requiredArmorAffinity:0,hash:1727069364},[t.U.ThreadOfFury]:{id:t.U.ThreadOfFury,name:"Thread of Fury",description:"Damaging targets with a Tangle grants melee energy.",type:e.O.Strand,bonus:[{stat:a.WB.Strength,value:-10}],cost:1,requiredArmorAffinity:0,hash:4208512219},[t.U.ThreadOfAscent]:{id:t.U.ThreadOfAscent,name:"Thread of Ascent",description:"Activating your grenade ability reloads your equipped weapon and grants bonus airborne effectiveness and handling for a short duration.",type:e.O.Strand,bonus:[{stat:a.WB.Mobility,value:10}],cost:1,requiredArmorAffinity:0,hash:4208512216},[t.U.ThreadOfFinality]:{id:t.U.ThreadOfFinality,name:"Thread of Finality",description:"Finisher final blows create Threadlings.",type:e.O.Strand,bonus:[{stat:a.WB.Recovery,value:10}],cost:1,requiredArmorAffinity:0,hash:4208512217},[t.U.ThreadOfWarding]:{id:t.U.ThreadOfWarding,name:"Thread of Warding",description:"Picking up an Orb of Power grants Woven Mail.",type:e.O.Strand,bonus:[{stat:a.WB.Resilience,value:-10}],cost:1,requiredArmorAffinity:0,hash:4208512222},[t.U.ThreadOfTransmutation]:{id:t.U.ThreadOfTransmutation,name:"Thread of Transmutation",description:"While you have Woven Mail, weapon final blows create a Tangle.",type:e.O.Strand,bonus:[{stat:a.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:4208512221},[t.U.ThreadOfEvolution]:{id:t.U.ThreadOfEvolution,name:"Thread of Evolution",description:"Threadlings travel farther and deal additional damage.",type:e.O.Strand,bonus:[{stat:a.WB.Intellect,value:10}],cost:1,requiredArmorAffinity:0,hash:4208512211},[t.U.ThreadOfBinding]:{id:t.U.ThreadOfBinding,name:"Thread of Binding",description:"Super final blows emit a suspending burst from the target.",type:e.O.Strand,bonus:[{stat:a.WB.Resilience,value:10}],cost:1,requiredArmorAffinity:0,hash:3192552688},[t.U.ThreadOfGeneration]:{id:t.U.ThreadOfGeneration,name:"Thread of Generation",description:"Dealing damage generates grenade energy.",type:e.O.Strand,bonus:[{stat:a.WB.Discipline,value:-10}],cost:1,requiredArmorAffinity:0,hash:3192552691},[t.U.ThreadOfPropagation]:{id:t.U.ThreadOfPropagation,name:"Thread of Propagation",description:"Powered melee final blows grant your Strand weapons Unraveling Rounds.",type:e.O.Strand,bonus:[{stat:a.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:4208512210},[t.U.FacetOfAwakening]:{id:t.U.FacetOfAwakening,name:"Facet of Awakening",description:"Rapid elemental final blows and Super final blows generate an elemental pickup of the matching damage type.",type:e.O.Prismatic,bonus:[{stat:a.WB.Resilience,value:10}],cost:1,requiredArmorAffinity:0,hash:124726505},[t.U.FacetOfCourage]:{id:t.U.FacetOfCourage,name:"Facet of Courage",description:"Your Light abilities deal increased damage to targets afflicted with Darkness debuffs.",type:e.O.Prismatic,bonus:[{stat:a.WB.Discipline,value:10}],cost:1,requiredArmorAffinity:0,hash:2626922124},[t.U.FacetOfDawn]:{id:t.U.FacetOfDawn,name:"Facet of Dawn",description:"Powered melee hits against targets make you Radiant. Powered melee final blows make both you and nearby allies Radiant.",type:e.O.Prismatic,bonus:[{stat:a.WB.Strength,value:-10}],cost:1,requiredArmorAffinity:0,hash:2626922126},[t.U.FacetOfDefiance]:{id:t.U.FacetOfDefiance,name:"Facet of Defiance",description:"Finishers create a detonation that either jolts, scorches, slows, severs, or makes targets volatile based on the damage type of your equipped Super.",type:e.O.Prismatic,bonus:[{stat:a.WB.Recovery,value:10}],cost:1,requiredArmorAffinity:0,hash:74393640},[t.U.FacetOfDevotion]:{id:t.U.FacetOfDevotion,name:"Facet of Devotion",description:"Defeating targets afflicted with a Darkness debuff grants bonus Light Transcendence energy.",type:e.O.Prismatic,bonus:[{stat:a.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:2626922125},[t.U.FacetOfDominance]:{id:t.U.FacetOfDominance,name:"Facet of Dominance",description:"Your Void grenades weaken targets, and your Arc grenades jolt targets.",type:e.O.Prismatic,bonus:[{stat:a.WB.Discipline,value:-10}],cost:1,requiredArmorAffinity:0,hash:124726504},[t.U.FacetOfGrace]:{id:t.U.FacetOfGrace,name:"Facet of Grace",description:"Defeating targets with Kinetic weapons grants you bonus Transcendence energy. Defeating targets with your Super grants you and nearby allies bonus Transcendence energy.",type:e.O.Prismatic,bonus:[{stat:a.WB.Resilience,value:-10}],cost:1,requiredArmorAffinity:0,hash:2626922121},[t.U.FacetOfHonor]:{id:t.U.FacetOfHonor,name:"Facet of Honor",description:"Collecting an elemental pickup or destroying a Tangle grants Transcendence energy of the same type.",type:e.O.Prismatic,bonus:[{stat:a.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:124726501},[t.U.FacetOfJustice]:{id:t.U.FacetOfJustice,name:"Facet of Justice",description:"While Transcendent, your ability final blows explode.",type:e.O.Prismatic,bonus:[{stat:a.WB.Intellect,value:10}],cost:1,requiredArmorAffinity:0,hash:2626922115},[t.U.FacetOfProtection]:{id:t.U.FacetOfProtection,name:"Facet of Protection",description:"While surrounded by enemies, you are more resistant to incoming damage.",type:e.O.Prismatic,bonus:[{stat:a.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:2626922120},[t.U.FacetOfPurpose]:{id:t.U.FacetOfPurpose,name:"Facet of Purpose",description:"Picking up an Orb of Power grants either Amplified, Restoration, Frost Armor, Woven Mail, or Overshield, based on the damage type of your equipped super.",type:e.O.Prismatic,bonus:[{stat:a.WB.Recovery,value:-10}],cost:1,requiredArmorAffinity:0,hash:124726498},[t.U.FacetOfRuin]:{id:t.U.FacetOfRuin,name:"Facet of Ruin",description:"Increases the size and damage of the burst when you shatter a Stasis crystal or frozen target and increases the area of effect of Solar ignitions.",type:e.O.Prismatic,bonus:[{stat:a.WB.Mobility,value:10}],cost:1,requiredArmorAffinity:0,hash:124726499},[t.U.FacetOfSacrifice]:{id:t.U.FacetOfSacrifice,name:"Facet of Sacrifice",description:"While you have a Light buff, ability final blows grant bonus Darkness Transcendence energy.",type:e.O.Prismatic,bonus:[{stat:a.WB.Discipline,value:10}],cost:1,requiredArmorAffinity:0,hash:124726502}}},3244:(k,c,O)=>{O.d(c,{dM:()=>a});const a=-2},6471:(k,c,O)=>{O.d(c,{y:()=>t});var t=(()=>{return(e=t||(t={}))[e.ArmorSlotNone=0]="ArmorSlotNone",e[e.ArmorSlotHelmet=1]="ArmorSlotHelmet",e[e.ArmorSlotGauntlet=2]="ArmorSlotGauntlet",e[e.ArmorSlotChest=3]="ArmorSlotChest",e[e.ArmorSlotLegs=4]="ArmorSlotLegs",e[e.ArmorSlotClass=5]="ArmorSlotClass",t;var e})()},1043:(k,c,O)=>{O.d(c,{AR:()=>L,K9:()=>V,Pn:()=>i,WB:()=>a}),O(8333);var e=(()=>{return(r=e||(e={}))[r.NONE=0]="NONE",r[r.MINOR_MOBILITY=1]="MINOR_MOBILITY",r[r.MAJOR_MOBILITY=2]="MAJOR_MOBILITY",r[r.ARTIFICE_MOBILITY=3]="ARTIFICE_MOBILITY",r[r.MINOR_RESILIENCE=4]="MINOR_RESILIENCE",r[r.MAJOR_RESILIENCE=5]="MAJOR_RESILIENCE",r[r.ARTIFICE_RESILIENCE=6]="ARTIFICE_RESILIENCE",r[r.MINOR_RECOVERY=7]="MINOR_RECOVERY",r[r.MAJOR_RECOVERY=8]="MAJOR_RECOVERY",r[r.ARTIFICE_RECOVERY=9]="ARTIFICE_RECOVERY",r[r.MINOR_DISCIPLINE=10]="MINOR_DISCIPLINE",r[r.MAJOR_DISCIPLINE=11]="MAJOR_DISCIPLINE",r[r.ARTIFICE_DISCIPLINE=12]="ARTIFICE_DISCIPLINE",r[r.MINOR_INTELLECT=13]="MINOR_INTELLECT",r[r.MAJOR_INTELLECT=14]="MAJOR_INTELLECT",r[r.ARTIFICE_INTELLECT=15]="ARTIFICE_INTELLECT",r[r.MINOR_STRENGTH=16]="MINOR_STRENGTH",r[r.MAJOR_STRENGTH=17]="MAJOR_STRENGTH",r[r.ARTIFICE_STRENGTH=18]="ARTIFICE_STRENGTH",e;var r})(),a=(()=>{return(r=a||(a={}))[r.Mobility=0]="Mobility",r[r.Resilience=1]="Resilience",r[r.Recovery=2]="Recovery",r[r.Discipline=3]="Discipline",r[r.Intellect=4]="Intellect",r[r.Strength=5]="Strength",a;var r})();const V={[e.NONE]:[a.Strength,0,0,0],[e.MINOR_MOBILITY]:[a.Mobility,5,1,1703647492],[e.MAJOR_MOBILITY]:[a.Mobility,10,3,4183296050],[e.ARTIFICE_MOBILITY]:[a.Mobility,3,0,2322202118],[e.MINOR_RESILIENCE]:[a.Resilience,5,2,2532323436],[e.MAJOR_RESILIENCE]:[a.Resilience,10,4,1180408010],[e.ARTIFICE_RESILIENCE]:[a.Resilience,3,0,199176566],[e.MINOR_RECOVERY]:[a.Recovery,5,2,1237786518],[e.MAJOR_RECOVERY]:[a.Recovery,10,4,4204488676],[e.ARTIFICE_RECOVERY]:[a.Recovery,3,0,539459624],[e.MINOR_DISCIPLINE]:[a.Discipline,5,1,4021790309],[e.MAJOR_DISCIPLINE]:[a.Discipline,10,3,1435557120],[e.ARTIFICE_DISCIPLINE]:[a.Discipline,3,0,617569843],[e.MINOR_INTELLECT]:[a.Intellect,5,2,350061697],[e.MAJOR_INTELLECT]:[a.Intellect,10,4,2724608735],[e.ARTIFICE_INTELLECT]:[a.Intellect,3,0,3160845295],[e.MINOR_STRENGTH]:[a.Strength,5,1,2639422088],[e.MAJOR_STRENGTH]:[a.Strength,10,3,4287799666],[e.ARTIFICE_STRENGTH]:[a.Strength,3,0,2507624050]};var L=(()=>{return(r=L||(L={}))[r.ClassAbilityRegenerationStat=10]="ClassAbilityRegenerationStat",L;var r})(),i=(()=>{return(r=i||(i={}))[r.None=0]="None",r[r.SlotCrotasEnd=2]="SlotCrotasEnd",r[r.SlotRootOfNightmares=3]="SlotRootOfNightmares",r[r.SlotKingsFall=4]="SlotKingsFall",r[r.SlotVowOfTheDisciple=5]="SlotVowOfTheDisciple",r[r.SlotVaultOfGlass=6]="SlotVaultOfGlass",r[r.SlotDeepStoneCrypt=7]="SlotDeepStoneCrypt",r[r.SlotGardenOfSalvation=8]="SlotGardenOfSalvation",r[r.SlotLastWish=9]="SlotLastWish",r[r.SlotArtifice=10]="SlotArtifice",r[r.PerkIronBanner=11]="PerkIronBanner",r[r.SlotNightmare=12]="SlotNightmare",r[r.GuardianGamesClassItem=18]="GuardianGamesClassItem",r[r.PerkEchoesOfGlory=20]="PerkEchoesOfGlory",r[r.SlotSalvationsEdge=21]="SlotSalvationsEdge",r[r.COUNT=22]="COUNT",i;var r})()},1650:(k,c,O)=>{O.d(c,{w:()=>t});var t=(()=>{return(e=t||(t={}))[e.None=0]="None",e[e.ReduceUsedModSockets=1]="ReduceUsedModSockets",e[e.ReduceUsedModPoints=2]="ReduceUsedModPoints",t;var e})()},7580:(k,c,O)=>{O.d(c,{U:()=>t});var t=(()=>{return(e=t||(t={}))[e.WhisperOfDurance=1e3]="WhisperOfDurance",e[e.WhisperOfChains=1001]="WhisperOfChains",e[e.WhisperOfConduction=1002]="WhisperOfConduction",e[e.WhisperOfBonds=1101]="WhisperOfBonds",e[e.WhisperOfHunger=1102]="WhisperOfHunger",e[e.WhisperOfFractures=1103]="WhisperOfFractures",e[e.WhisperOfTorment=1104]="WhisperOfTorment",e[e.EchoOfExpulsion=1200]="EchoOfExpulsion",e[e.EchoOfProvision=1201]="EchoOfProvision",e[e.EchoOfPersistence=1202]="EchoOfPersistence",e[e.EchoOfLeeching=1203]="EchoOfLeeching",e[e.EchoOfDomineering=1204]="EchoOfDomineering",e[e.EchoOfDilation=1205]="EchoOfDilation",e[e.EchoOfUndermining=1206]="EchoOfUndermining",e[e.EchoOfInstability=1207]="EchoOfInstability",e[e.EchoOfHarvest=1208]="EchoOfHarvest",e[e.EchoOfObscurity=1209]="EchoOfObscurity",e[e.EchoOfStarvation=1210]="EchoOfStarvation",e[e.EchoOfVigilance=1211]="EchoOfVigilance",e[e.EmberOfBenelovence=1300]="EmberOfBenelovence",e[e.EmberOfBeams=1301]="EmberOfBeams",e[e.EmberOfEmpyrean=1302]="EmberOfEmpyrean",e[e.EmberOfCombustion=1303]="EmberOfCombustion",e[e.EmberOfChar=1304]="EmberOfChar",e[e.EmberOfTempering=1305]="EmberOfTempering",e[e.EmberOfEruption=1306]="EmberOfEruption",e[e.EmberOfWonder=1307]="EmberOfWonder",e[e.EmberOfSearing=1308]="EmberOfSearing",e[e.EmberOfTorches=1309]="EmberOfTorches",e[e.EmberOfMercy=1310]="EmberOfMercy",e[e.SparkOfBrilliance=1400]="SparkOfBrilliance",e[e.SparkOfFeedback=1401]="SparkOfFeedback",e[e.SparkOfDischarge=1402]="SparkOfDischarge",e[e.SparkOfFocus=1403]="SparkOfFocus",e[e.SparkOfVolts=1404]="SparkOfVolts",e[e.SparkOfResistance=1405]="SparkOfResistance",e[e.SparkOfShock=1406]="SparkOfShock",e[e.ThreadOfFury=1600]="ThreadOfFury",e[e.ThreadOfAscent=1601]="ThreadOfAscent",e[e.ThreadOfFinality=1602]="ThreadOfFinality",e[e.ThreadOfWarding=1603]="ThreadOfWarding",e[e.ThreadOfTransmutation=1604]="ThreadOfTransmutation",e[e.ThreadOfEvolution=1605]="ThreadOfEvolution",e[e.ThreadOfBinding=1606]="ThreadOfBinding",e[e.ThreadOfGeneration=1607]="ThreadOfGeneration",e[e.ThreadOfPropagation=1608]="ThreadOfPropagation",e[e.WhisperOfImpetus=537774543]="WhisperOfImpetus",e[e.FacetOfAwakening=1700]="FacetOfAwakening",e[e.FacetOfCourage=1701]="FacetOfCourage",e[e.FacetOfDawn=1702]="FacetOfDawn",e[e.FacetOfDefiance=1703]="FacetOfDefiance",e[e.FacetOfDevotion=1704]="FacetOfDevotion",e[e.FacetOfDominance=1705]="FacetOfDominance",e[e.FacetOfGrace=1706]="FacetOfGrace",e[e.FacetOfHonor=1707]="FacetOfHonor",e[e.FacetOfJustice=1708]="FacetOfJustice",e[e.FacetOfProtection=1709]="FacetOfProtection",e[e.FacetOfPurpose=1710]="FacetOfPurpose",e[e.FacetOfRuin=1711]="FacetOfRuin",e[e.FacetOfSacrifice=1712]="FacetOfSacrifice",t;var e})()},8333:(k,c,O)=>{O.d(c,{O:()=>t});var t=(()=>{return(e=t||(t={}))[e.CombatStyleMod=0]="CombatStyleMod",e[e.Stasis=1]="Stasis",e[e.Void=2]="Void",e[e.Solar=3]="Solar",e[e.Arc=4]="Arc",e[e.Strand=5]="Strand",e[e.Prismatic=6]="Prismatic",t;var e})()},2340:(k,c,O)=>{O.d(c,{N:()=>t});const t={version:"2.6.2",revision:"176899c",production:!0,beta:!1,canary:!1,apiKey:"9415df8eff46408aa9c0d51e4d69b94f",clientId:"37252",client_secret:"KnVcJPWr7C5y0loOfBoKSyQ-vWXR0JICrgb1aJLsLgg",offlineMode:!1,featureFlags:{enableModslotLimitation:!0,enableZeroWaste:!0,enableGuardianGamesFeatures:!1}}},5861:(k,c,O)=>{function t(a,V,M,B,j,L,i){try{var K=a[L](i),Y=K.value}catch(ee){return void M(ee)}K.done?V(Y):Promise.resolve(Y).then(B,j)}function e(a){return function(){var V=this,M=arguments;return new Promise(function(B,j){var L=a.apply(V,M);function i(Y){t(L,B,j,i,K,"next",Y)}function K(Y){t(L,B,j,i,K,"throw",Y)}i(void 0)})}}O.d(c,{Z:()=>e})}},ie={};function N(k){var c=ie[k];if(void 0!==c)return c.exports;var O=ie[k]={exports:{}};return he[k](O,O.exports,N),O.exports}N.d=(k,c)=>{for(var O in c)N.o(c,O)&&!N.o(k,O)&&Object.defineProperty(k,O,{enumerable:!0,get:c[O]})},N.o=(k,c)=>Object.prototype.hasOwnProperty.call(k,c),(()=>{var k=N(5861),c=N(6471),O=N(3244),t=N(443),e=N(1043),a=N(2340);const V={1:[[2,1,0,11],[2,3,0,21],[2,1,1,21],[2,1,2,31]],2:[[4,0,0,12],[4,2,0,22],[4,0,1,22],[4,4,0,32],[4,0,2,32]],3:[[1,0,0,3],[1,2,0,13],[1,0,1,13],[1,4,0,23],[1,2,1,23],[1,0,2,23],[1,2,2,33]],4:[[3,1,0,14],[3,3,0,24],[3,1,1,24],[3,1,2,34]],5:[[0,1,0,5],[5,0,0,15],[0,3,0,15],[0,1,1,15],[5,2,0,25],[5,0,1,25],[0,3,1,25],[0,1,2,25],[5,4,0,35],[5,0,2,35],[0,3,2,35]],6:[[2,0,0,6],[2,2,0,16],[2,0,1,16],[2,4,0,26],[2,2,1,26],[2,0,2,26],[2,2,2,36],[2,0,3,36],[2,2,3,46]],7:[[4,1,0,17],[4,3,0,27],[4,1,1,27],[4,5,0,37],[4,1,2,37],[4,1,3,47]],8:[[1,1,0,8],[1,3,0,18],[1,1,1,18],[1,5,0,28],[1,3,1,28],[1,1,2,28],[1,3,2,38],[1,1,3,38]],9:[[3,0,0,9],[3,2,0,19],[3,0,1,19],[3,4,0,29],[3,2,1,29],[3,0,2,29],[3,2,2,39],[3,0,3,39],[3,2,3,49]],10:[[0,2,0,10],[0,0,1,10],[5,1,0,20],[0,4,0,20],[0,2,1,20],[0,0,2,20],[5,3,0,30],[5,1,1,30],[0,4,1,30],[0,2,2,30],[0,0,3,30],[5,5,0,40],[5,1,2,40],[0,2,3,40],[5,1,3,50]],11:[[2,1,0,11],[2,3,0,21],[2,1,1,21],[2,5,0,31],[2,3,1,31],[2,1,2,31],[2,3,2,41],[2,1,3,41]],12:[[4,0,0,12],[4,2,0,22],[4,0,1,22],[4,4,0,32],[4,2,1,32],[4,0,2,32],[4,2,2,42],[4,0,3,42],[4,2,3,52]],13:[[1,2,0,13],[1,0,1,13],[1,4,0,23],[1,2,1,23],[1,0,2,23],[1,4,1,33],[1,2,2,33],[1,0,3,33],[1,2,3,43]],14:[[3,1,0,14],[3,3,0,24],[3,1,1,24],[3,5,0,34],[3,3,1,34],[3,1,2,34],[3,3,2,44],[3,1,3,44]],15:[[5,0,0,15],[0,3,0,15],[0,1,1,15],[5,2,0,25],[0,5,0,25],[5,0,1,25],[0,3,1,25],[0,1,2,25],[5,4,0,35],[5,2,1,35],[5,0,2,35],[0,3,2,35],[0,1,3,35],[5,2,2,45],[5,0,3,45],[5,2,3,55]],16:[[2,2,0,16],[2,0,1,16],[2,4,0,26],[2,2,1,26],[2,0,2,26],[2,4,1,36],[2,2,2,36],[2,0,3,36],[2,2,3,46],[2,0,4,46]],17:[[4,1,0,17],[4,3,0,27],[4,1,1,27],[4,5,0,37],[4,3,1,37],[4,1,2,37],[4,3,2,47],[4,1,3,47],[4,1,4,57]],18:[[1,3,0,18],[1,1,1,18],[1,5,0,28],[1,3,1,28],[1,1,2,28],[1,3,2,38],[1,1,3,38],[1,1,4,48]],19:[[3,2,0,19],[3,0,1,19],[3,4,0,29],[3,2,1,29],[3,0,2,29],[3,4,1,39],[3,2,2,39],[3,0,3,39],[3,2,3,49],[3,0,4,49]],20:[[5,1,0,20],[0,4,0,20],[0,2,1,20],[0,0,2,20],[5,3,0,30],[5,1,1,30],[0,4,1,30],[0,2,2,30],[0,0,3,30],[5,5,0,40],[5,3,1,40],[5,1,2,40],[0,2,3,40],[0,0,4,40],[5,3,2,50],[5,1,3,50],[5,1,4,60]],21:[[2,3,0,21],[2,1,1,21],[2,5,0,31],[2,3,1,31],[2,1,2,31],[2,3,2,41],[2,1,3,41],[2,1,4,51]],22:[[4,2,0,22],[4,0,1,22],[4,4,0,32],[4,2,1,32],[4,0,2,32],[4,4,1,42],[4,2,2,42],[4,0,3,42],[4,2,3,52],[4,0,4,52]],23:[[1,4,0,23],[1,2,1,23],[1,0,2,23],[1,4,1,33],[1,2,2,33],[1,0,3,33],[1,2,3,43],[1,0,4,43]],24:[[3,3,0,24],[3,1,1,24],[3,5,0,34],[3,3,1,34],[3,1,2,34],[3,3,2,44],[3,1,3,44],[3,1,4,54]],25:[[5,2,0,25],[0,5,0,25],[5,0,1,25],[0,3,1,25],[0,1,2,25],[5,4,0,35],[5,2,1,35],[5,0,2,35],[0,3,2,35],[0,1,3,35],[5,4,1,45],[5,2,2,45],[5,0,3,45],[0,1,4,45],[5,2,3,55],[5,0,4,55]],26:[[2,4,0,26],[2,2,1,26],[2,0,2,26],[2,4,1,36],[2,2,2,36],[2,0,3,36],[2,2,3,46],[2,0,4,46],[2,0,5,56]],27:[[4,3,0,27],[4,1,1,27],[4,5,0,37],[4,3,1,37],[4,1,2,37],[4,3,2,47],[4,1,3,47],[4,1,4,57]],28:[[1,5,0,28],[1,3,1,28],[1,1,2,28],[1,3,2,38],[1,1,3,38],[1,1,4,48]],29:[[3,4,0,29],[3,2,1,29],[3,0,2,29],[3,4,1,39],[3,2,2,39],[3,0,3,39],[3,2,3,49],[3,0,4,49],[3,0,5,59]],30:[[5,3,0,30],[5,1,1,30],[0,4,1,30],[0,2,2,30],[0,0,3,30],[5,5,0,40],[5,3,1,40],[5,1,2,40],[0,2,3,40],[0,0,4,40],[5,3,2,50],[5,1,3,50],[0,0,5,50],[5,1,4,60]],31:[[2,5,0,31],[2,3,1,31],[2,1,2,31],[2,3,2,41],[2,1,3,41],[2,1,4,51]],32:[[4,4,0,32],[4,2,1,32],[4,0,2,32],[4,4,1,42],[4,2,2,42],[4,0,3,42],[4,2,3,52],[4,0,4,52],[4,0,5,62]],33:[[1,4,1,33],[1,2,2,33],[1,0,3,33],[1,2,3,43],[1,0,4,43],[1,0,5,53]],34:[[3,5,0,34],[3,3,1,34],[3,1,2,34],[3,3,2,44],[3,1,3,44],[3,1,4,54]],35:[[5,4,0,35],[5,2,1,35],[5,0,2,35],[0,3,2,35],[0,1,3,35],[5,4,1,45],[5,2,2,45],[5,0,3,45],[0,1,4,45],[5,2,3,55],[5,0,4,55],[5,0,5,65]],36:[[2,4,1,36],[2,2,2,36],[2,0,3,36],[2,2,3,46],[2,0,4,46],[2,0,5,56]],37:[[4,5,0,37],[4,3,1,37],[4,1,2,37],[4,3,2,47],[4,1,3,47],[4,1,4,57]],38:[[1,3,2,38],[1,1,3,38],[1,1,4,48]],39:[[3,4,1,39],[3,2,2,39],[3,0,3,39],[3,2,3,49],[3,0,4,49],[3,0,5,59]],40:[[5,5,0,40],[5,3,1,40],[5,1,2,40],[0,2,3,40],[0,0,4,40],[5,3,2,50],[5,1,3,50],[0,0,5,50],[5,1,4,60]],41:[[2,3,2,41],[2,1,3,41],[2,1,4,51]],42:[[4,4,1,42],[4,2,2,42],[4,0,3,42],[4,2,3,52],[4,0,4,52],[4,0,5,62]],43:[[1,2,3,43],[1,0,4,43],[1,0,5,53]],44:[[3,3,2,44],[3,1,3,44],[3,1,4,54]],45:[[5,4,1,45],[5,2,2,45],[5,0,3,45],[0,1,4,45],[5,2,3,55],[5,0,4,55],[5,0,5,65]],46:[[2,2,3,46],[2,0,4,46],[2,0,5,56]],47:[[4,3,2,47],[4,1,3,47],[4,1,4,57]],48:[[1,1,4,48]],49:[[3,2,3,49],[3,0,4,49],[3,0,5,59]],50:[[5,3,2,50],[5,1,3,50],[0,0,5,50],[5,1,4,60]],51:[[2,1,4,51]],52:[[4,2,3,52],[4,0,4,52],[4,0,5,62]],53:[[1,0,5,53]],54:[[3,1,4,54]],55:[[5,2,3,55],[5,0,4,55],[5,0,5,65]],56:[[2,0,5,56]],57:[[4,1,4,57]],58:[],59:[[3,0,5,59]],60:[[5,1,4,60]],61:[],62:[[4,0,5,62]],63:[],64:[],65:[[5,0,5,65]]},M={1:[[1,0,0,3],[0,1,0,5],[0,0,1,10]],2:[[1,0,0,3],[0,1,0,5],[0,0,1,10]],3:[[1,0,0,3],[0,1,0,5],[0,0,1,10]],4:[[0,1,0,5],[2,0,0,6],[0,0,1,10]],5:[[0,1,0,5],[2,0,0,6],[0,0,1,10]],6:[[2,0,0,6],[1,1,0,8],[0,2,0,10],[0,0,1,10]],7:[[1,1,0,8],[3,0,0,9],[0,2,0,10],[0,0,1,10]],8:[[1,1,0,8],[3,0,0,9],[0,2,0,10],[0,0,1,10]],9:[[3,0,0,9],[0,2,0,10],[0,0,1,10],[2,1,0,11]],10:[[0,2,0,10],[0,0,1,10],[2,1,0,11],[4,0,0,12]],11:[[2,1,0,11],[4,0,0,12],[1,2,0,13],[1,0,1,13],[0,3,0,15],[0,1,1,15],[0,0,2,20]],12:[[4,0,0,12],[1,2,0,13],[1,0,1,13],[3,1,0,14],[0,3,0,15],[0,1,1,15],[0,0,2,20]],13:[[1,2,0,13],[1,0,1,13],[3,1,0,14],[5,0,0,15],[0,3,0,15],[0,1,1,15],[0,0,2,20]],14:[[3,1,0,14],[5,0,0,15],[0,3,0,15],[0,1,1,15],[2,2,0,16],[2,0,1,16],[0,0,2,20]],15:[[5,0,0,15],[0,3,0,15],[0,1,1,15],[2,2,0,16],[2,0,1,16],[4,1,0,17],[0,0,2,20]],16:[[2,2,0,16],[2,0,1,16],[4,1,0,17],[1,3,0,18],[1,1,1,18],[0,4,0,20],[0,2,1,20],[0,0,2,20]],17:[[4,1,0,17],[1,3,0,18],[1,1,1,18],[3,2,0,19],[3,0,1,19],[0,4,0,20],[0,2,1,20],[0,0,2,20]],18:[[1,1,1,18],[1,3,0,18],[3,2,0,19],[3,0,1,19],[5,1,0,20],[0,4,0,20],[0,2,1,20],[0,0,2,20]],19:[[3,2,0,19],[3,0,1,19],[5,1,0,20],[0,4,0,20],[0,2,1,20],[0,0,2,20],[2,3,0,21],[2,1,1,21]],20:[[5,1,0,20],[0,4,0,20],[0,2,1,20],[0,0,2,20],[2,3,0,21],[2,1,1,21],[4,2,0,22],[4,0,1,22]],21:[[2,3,0,21],[2,1,1,21],[4,2,0,22],[4,0,1,22],[1,4,0,23],[1,2,1,23],[1,0,2,23],[0,5,0,25],[0,3,1,25],[0,1,2,25],[0,0,3,30]],22:[[4,2,0,22],[4,0,1,22],[1,4,0,23],[1,2,1,23],[1,0,2,23],[3,3,0,24],[3,1,1,24],[0,5,0,25],[0,3,1,25],[0,1,2,25],[0,0,3,30]],23:[[1,4,0,23],[1,2,1,23],[1,0,2,23],[3,3,0,24],[3,1,1,24],[5,2,0,25],[0,5,0,25],[5,0,1,25],[0,3,1,25],[0,1,2,25],[0,0,3,30]],24:[[3,3,0,24],[3,1,1,24],[5,2,0,25],[0,5,0,25],[5,0,1,25],[0,3,1,25],[0,1,2,25],[2,4,0,26],[2,2,1,26],[2,0,2,26],[0,0,3,30]],25:[[5,2,0,25],[0,5,0,25],[5,0,1,25],[0,3,1,25],[0,1,2,25],[2,4,0,26],[2,2,1,26],[2,0,2,26],[4,3,0,27],[4,1,1,27],[0,0,3,30]],26:[[2,4,0,26],[2,2,1,26],[2,0,2,26],[4,3,0,27],[4,1,1,27],[1,5,0,28],[1,3,1,28],[1,1,2,28],[0,4,1,30],[0,2,2,30],[0,0,3,30]],27:[[4,3,0,27],[4,1,1,27],[1,5,0,28],[1,3,1,28],[1,1,2,28],[3,4,0,29],[3,2,1,29],[3,0,2,29],[0,4,1,30],[0,2,2,30],[0,0,3,30]],28:[[1,5,0,28],[1,3,1,28],[1,1,2,28],[3,4,0,29],[3,2,1,29],[3,0,2,29],[5,3,0,30],[5,1,1,30],[0,4,1,30],[0,2,2,30],[0,0,3,30]],29:[[3,4,0,29],[3,2,1,29],[3,0,2,29],[5,3,0,30],[5,1,1,30],[0,4,1,30],[0,2,2,30],[0,0,3,30],[2,5,0,31],[2,3,1,31],[2,1,2,31]],30:[[5,3,0,30],[5,1,1,30],[0,4,1,30],[0,2,2,30],[0,0,3,30],[2,5,0,31],[2,3,1,31],[2,1,2,31],[4,4,0,32],[4,2,1,32],[4,0,2,32]],31:[[2,5,0,31],[2,3,1,31],[2,1,2,31],[4,4,0,32],[4,2,1,32],[4,0,2,32],[1,4,1,33],[1,2,2,33],[1,0,3,33],[0,3,2,35],[0,1,3,35],[0,0,4,40]],32:[[4,4,0,32],[4,2,1,32],[4,0,2,32],[1,4,1,33],[1,2,2,33],[1,0,3,33],[3,5,0,34],[3,3,1,34],[3,1,2,34],[0,3,2,35],[0,1,3,35],[0,0,4,40]],33:[[1,4,1,33],[1,2,2,33],[1,0,3,33],[3,5,0,34],[3,3,1,34],[3,1,2,34],[5,4,0,35],[5,2,1,35],[5,0,2,35],[0,3,2,35],[0,1,3,35],[0,0,4,40]],34:[[3,5,0,34],[3,3,1,34],[3,1,2,34],[5,4,0,35],[5,2,1,35],[5,0,2,35],[0,3,2,35],[0,1,3,35],[2,4,1,36],[2,2,2,36],[2,0,3,36],[0,0,4,40]],35:[[5,4,0,35],[5,2,1,35],[5,0,2,35],[0,3,2,35],[0,1,3,35],[2,4,1,36],[2,2,2,36],[2,0,3,36],[4,5,0,37],[4,3,1,37],[4,1,2,37],[0,0,4,40]],36:[[2,4,1,36],[2,2,2,36],[2,0,3,36],[4,5,0,37],[4,3,1,37],[4,1,2,37],[1,3,2,38],[1,1,3,38],[0,2,3,40],[0,0,4,40]],37:[[4,5,0,37],[4,3,1,37],[4,1,2,37],[1,3,2,38],[1,1,3,38],[3,4,1,39],[3,2,2,39],[3,0,3,39],[0,2,3,40],[0,0,4,40]],38:[[1,3,2,38],[1,1,3,38],[3,4,1,39],[3,2,2,39],[3,0,3,39],[5,5,0,40],[5,3,1,40],[5,1,2,40],[0,2,3,40],[0,0,4,40]],39:[[3,4,1,39],[3,2,2,39],[3,0,3,39],[5,5,0,40],[5,3,1,40],[5,1,2,40],[0,2,3,40],[0,0,4,40],[2,3,2,41],[2,1,3,41]],40:[[5,5,0,40],[5,3,1,40],[5,1,2,40],[0,2,3,40],[0,0,4,40],[2,3,2,41],[2,1,3,41],[4,4,1,42],[4,2,2,42],[4,0,3,42]],41:[[2,3,2,41],[2,1,3,41],[4,4,1,42],[4,2,2,42],[4,0,3,42],[1,2,3,43],[1,0,4,43],[0,1,4,45],[0,0,5,50]],42:[[4,4,1,42],[4,2,2,42],[4,0,3,42],[1,2,3,43],[1,0,4,43],[3,3,2,44],[3,1,3,44],[0,1,4,45],[0,0,5,50]],43:[[1,2,3,43],[1,0,4,43],[3,3,2,44],[3,1,3,44],[5,4,1,45],[5,2,2,45],[5,0,3,45],[0,1,4,45],[0,0,5,50]],44:[[3,3,2,44],[3,1,3,44],[5,4,1,45],[5,2,2,45],[5,0,3,45],[0,1,4,45],[2,2,3,46],[2,0,4,46],[0,0,5,50]],45:[[5,4,1,45],[5,2,2,45],[5,0,3,45],[0,1,4,45],[2,2,3,46],[2,0,4,46],[4,3,2,47],[4,1,3,47],[0,0,5,50]],46:[[2,2,3,46],[2,0,4,46],[4,3,2,47],[4,1,3,47],[1,1,4,48],[0,0,5,50]],47:[[4,3,2,47],[4,1,3,47],[1,1,4,48],[3,2,3,49],[3,0,4,49],[0,0,5,50]],48:[[1,1,4,48],[3,2,3,49],[3,0,4,49],[5,3,2,50],[5,1,3,50],[0,0,5,50]],49:[[3,2,3,49],[3,0,4,49],[5,3,2,50],[5,1,3,50],[0,0,5,50],[2,1,4,51]],50:[[5,3,2,50],[5,1,3,50],[0,0,5,50],[2,1,4,51],[4,2,3,52],[4,0,4,52]],51:[[2,1,4,51],[4,2,3,52],[4,0,4,52],[1,0,5,53]],52:[[4,2,3,52],[4,0,4,52],[1,0,5,53],[3,1,4,54]],53:[[1,0,5,53],[3,1,4,54],[5,2,3,55],[5,0,4,55]],54:[[3,1,4,54],[5,2,3,55],[5,0,4,55],[2,0,5,56]],55:[[5,2,3,55],[5,0,4,55],[2,0,5,56],[4,1,4,57]],56:[[2,0,5,56],[4,1,4,57]],57:[[4,1,4,57],[3,0,5,59]],58:[[3,0,5,59],[5,1,4,60]],59:[[3,0,5,59],[5,1,4,60]],60:[[5,1,4,60],[4,0,5,62]],61:[[4,0,5,62]],62:[[4,0,5,62]],63:[[5,0,5,65]],64:[[5,0,5,65]],65:[[5,0,5,65]]};var B=N(1650);function L(n){return Object.prototype.hasOwnProperty.call(n,"armor")&&Object.prototype.hasOwnProperty.call(n,"usedArtifice")&&Object.prototype.hasOwnProperty.call(n,"usedMods")&&Object.prototype.hasOwnProperty.call(n,"statsWithMods")&&Object.prototype.hasOwnProperty.call(n,"classItemPerk")}function i(n,s,h,u,S,R,y){var m=n.selectedExotics[0]||0;let d=s.slice();if((!u.isExotic||!n.assumeEveryExoticIsArtifice)&&(m<=0||u.hash!=m)&&n.armorPerks[c.y.ArmorSlotHelmet].fixed&&n.armorPerks[c.y.ArmorSlotHelmet].value!=e.Pn.None&&n.armorPerks[c.y.ArmorSlotHelmet].value!=u.perk)return{valid:!1};if((!S.isExotic||!n.assumeEveryExoticIsArtifice)&&(m<=0||S.hash!=m)&&n.armorPerks[c.y.ArmorSlotGauntlet].fixed&&n.armorPerks[c.y.ArmorSlotGauntlet].value!=e.Pn.None&&n.armorPerks[c.y.ArmorSlotGauntlet].value!=S.perk)return{valid:!1};if((!R.isExotic||!n.assumeEveryExoticIsArtifice)&&(m<=0||R.hash!=m)&&n.armorPerks[c.y.ArmorSlotChest].fixed&&n.armorPerks[c.y.ArmorSlotChest].value!=e.Pn.None&&n.armorPerks[c.y.ArmorSlotChest].value!=R.perk)return{valid:!1};if((!y.isExotic||!n.assumeEveryExoticIsArtifice)&&(m<=0||y.hash!=m)&&n.armorPerks[c.y.ArmorSlotLegs].fixed&&n.armorPerks[c.y.ArmorSlotLegs].value!=e.Pn.None&&n.armorPerks[c.y.ArmorSlotLegs].value!=y.perk)return{valid:!1};if(n.armorPerks[c.y.ArmorSlotClass].fixed&&n.armorPerks[c.y.ArmorSlotClass].value!=e.Pn.None&&!h.has(n.armorPerks[c.y.ArmorSlotClass].value))return{valid:!1};d[u.perk]--,d[S.perk]--,d[R.perk]--,d[y.perk]--,m>0&&(u.hash==m?d[n.armorPerks[u.slot].value]--:S.hash==m?d[n.armorPerks[S.slot].value]--:R.hash==m?d[n.armorPerks[R.slot].value]--:y.hash==m&&d[n.armorPerks[y.slot].value]--);let U=0;for(let v=1;vs.minimumStatTiers[o].value||!s.allowExactStats&&f[o]/10>=s.minimumStatTiers[o].value+1))return null;let P=C.filter(o=>(!o.isExotic||!s.ignoreExistingExoticArtificeSlots)&&o.perk==e.Pn.SlotArtifice||s.assumeEveryLegendaryIsArtifice&&!o.isExotic||s.assumeEveryExoticIsArtifice&&o.isExotic).length;U&&(P+=1);const _=[Math.max(0,10*s.minimumStatTiers[0].value-f[0]),Math.max(0,10*s.minimumStatTiers[1].value-f[1]),Math.max(0,10*s.minimumStatTiers[2].value-f[2]),Math.max(0,10*s.minimumStatTiers[3].value-f[3]),Math.max(0,10*s.minimumStatTiers[4].value-f[4]),Math.max(0,10*s.minimumStatTiers[5].value-f[5])];if(s.onlyShowResultsWithNoWastedStats)for(let o=0;o<6;o++){const E=10-f[o]%10;_[o]=Math.max(_[o],E<10?E:0)}const q=[0,0,0,0,0,0];if(s.tryLimitWastedStats)for(let o=0;o<6;o++)0==_[o]&&!s.minimumStatTiers[o].fixed&&f[o]<100&&f[o]%10>0&&(q[o]=10-f[o]%10);const x=q.reduce((o,E)=>o+E,0),H=_[0]+_[1]+_[2]+_[3]+_[4]+_[5];if(H>50+3*P)return null;let F;if(F=0==H&&0==x?[]:te(s,_,q,P,m,s.modOptimizationStrategy),null==F)return null;const l=[Math.max(0,100-f[0]),Math.max(0,100-f[1]),Math.max(0,100-f[2]),Math.max(0,100-f[3]),Math.max(0,100-f[4]),Math.max(0,100-f[5])];let p=[],g=[];for(let o=0;o<4;o++)for(let E=o+1;E<5;E++)for(let T=E+1;T<6;T++){let I=_.slice();if(I[o]=l[o],I[E]=l[E],I[T]=l[T],I[0]+I[1]+I[2]+I[3]+I[4]+I[5]<=65){p.push([o,E,T]);for(let J=T+1;J<6;J++){let G=I.slice();G[J]=l[J],G[0]+G[1]+G[2]+G[3]+G[4]+G[5]<=65&&g.push([o,E,T,J])}}}if(p.length>0){for(let o of p){const E=_.slice();for(let I of o)E[I]=l[I];null!=te(s,E,[0,0,0,0,0,0],P,m,B.w.None)&&n.statCombo3x100.add((1<=s.minimumStatTiers[o].value&&T>n.maximumPossibleTiers[o]/10&&!(f[o]>=10*T);T--){const I=10-f[o]%10;if(_[o]=Math.max(I<10?I:0,10*T-f[o]),null!=te(s,_,[0,0,0,0,0,0],P,m,B.w.None)){n.maximumPossibleTiers[o]=10*T;break}}_[o]=E}if(d)return[];const W=F.filter(o=>o%3==0),A=F.filter(o=>o%3!=0);for(let o of F)f[Math.floor((o-1)/3)]+=e.K9[o][1];const D=function de(n){return(n[e.WB.Mobility]>100?n[e.WB.Mobility]-100:n[e.WB.Mobility]%10)+(n[e.WB.Resilience]>100?n[e.WB.Resilience]-100:n[e.WB.Resilience]%10)+(n[e.WB.Recovery]>100?n[e.WB.Recovery]-100:n[e.WB.Recovery]%10)+(n[e.WB.Discipline]>100?n[e.WB.Discipline]-100:n[e.WB.Discipline]%10)+(n[e.WB.Intellect]>100?n[e.WB.Intellect]-100:n[e.WB.Intellect]%10)+(n[e.WB.Strength]>100?n[e.WB.Strength]-100:n[e.WB.Strength]%10)}(f);return s.onlyShowResultsWithNoWastedStats&&D>0?null:function j(n,s,h,u,S,R,y,m){return{armor:[n.id,s.id,h.id,u.id],usedArtifice:S,usedMods:R,classItemPerk:e.Pn.None,statsWithMods:y,statsWithoutMods:m}}(h,u,S,R,W,A,f,Z)}function te(n,s,h,u,S,R=B.w.None){const y=s[0]+s[1]+s[2]+s[3]+s[4]+s[5];if(y>65)return null;const m=n.onlyShowResultsWithNoWastedStats?V:M,d=[m[s[0]]||[[0,0,0,0]],m[s[1]]||[[0,0,0,0]],m[s[2]]||[[0,0,0,0]],m[s[3]]||[[0,0,0,0]],m[s[4]]||[[0,0,0,0]],m[s[5]]||[[0,0,0,0]]];if(n.allowExactStats)for(let l=0;l<6;l++)n.minimumStatTiers[l].fixed&&s[l]>0&&(d[l]=V[s[l]]||[[0,0,0,0]],d[l]=d[l].filter(p=>p[3]-s[l]<10));for(let l=0;l0){const p=m[h[l]].filter(g=>0==g[2]&&g[3]%10>0&&(h[l]+g[3])%10g+W[1]+W[2]:R==B.w.ReduceUsedModPoints?(p,g,W)=>p+P[W]*g[1]+_[W]*g[2]:(p,g)=>p+g[3],0)}function x(l,p=!1){const g=l.reduce((A,D,o)=>[A[0]+D[0],A[1]+D[1],A[2]+D[2],A[3]+D[3]-s[o]],[0,0,0,0]);if(q(l)>C||g[0]>u||g[1]+g[2]>v||g[3]<0)return!1;if(!p||5==f)return!0;let W=[];for(let A=0;Av)return!1;l.sort((g,W)=>W-g);for(let g=0;g0&&R!=B.w.None;e:for(let l of d[0])if(x([l]))for(let p of d[1])if(x([l,p]))for(let g of d[2])if(x([l,p,g])&&!(H&&q([l,p,g])>=C))for(let W of d[3])if(x([l,p,g,W])&&!(H&&q([l,p,g,W])>=C))for(let A of d[4])if(x([l,p,g,W,A])&&!(H&&q([l,p,g,W,A])>=C))t:for(let D of d[5]){let o=[l,p,g,W,A,D];if(!x(o,!0))continue;for(let T=0;T<6;T++)if(h[T]>0&&0==o[T][3]&&null!=w)continue t;let E=q(o);if(Eb.slot==c.y.ArmorSlotHelmet).filter(b=>!u.useFotlArmor||[199733460,2545426109,3224066584].indexOf(b.hash)>-1),d=R.filter(b=>b.slot==c.y.ArmorSlotGauntlet),U=R.filter(b=>b.slot==c.y.ArmorSlotChest),w=R.filter(b=>b.slot==c.y.ArmorSlotLegs);if(h.count>1){var C=[[m,m.length],[d,d.length],[U,U.length],[w,w.length]].sort((b,X)=>X[1]-b[1])[0][0],v=Math.round(C.length/h.count),f=v*h.current,Z=f+v;h.current==h.count-1&&(Z=C.length),C.splice(Z),C.splice(0,f)}let P=R.filter(b=>b.slot==c.y.ArmorSlotClass),_=P.filter(b=>b.isExotic).length,q=P.length-_,x=new Set(P.filter(b=>!b.isExotic).map(b=>b.perk)),H=new Set(P.filter(b=>b.isExotic).map(b=>b.perk));q>0&&(u.assumeEveryLegendaryIsArtifice||u.assumeClassItemIsArtifice)&&x.add(e.Pn.SlotArtifice),_>0&&u.assumeEveryExoticIsArtifice&&H.add(e.Pn.SlotArtifice),console.debug("items",JSON.stringify({helmets:m.length,gauntlets:d.length,chests:U.length,legs:w.length,availableClassItemTypes:x}));const F={maximumPossibleTiers:[0,0,0,0,0,0],statCombo3x100:new Set,statCombo4x100:new Set},l=function K(n){const s=[0,0,0,0,0,0];for(const u of n.enabledMods)for(const S of t.F[u].bonus)s[S.stat==e.AR.ClassAbilityRegenerationStat?[1,0,2][n.characterClass]:S.stat]+=S.value;return s}(u),p=function Y(n){let s=[];for(let h=0;hh>0).sort((h,u)=>u-h)}(u),W=S.length<=1,A=x.has(e.Pn.SlotArtifice),D=H.has(e.Pn.SlotArtifice),o=u.selectedExotics.indexOf(O.dM)>-1,E=P.sort((b,X)=>b.masterworked?-1:1).find(b=>b.isExotic)||null,T=!!E&&u.selectedExotics.indexOf(E.hash)>-1;console.log("hasArtificeClassItem",A);let I=[],$=0,J=0,G=0,ne=!1,z=function le(n,s,h,u){let S=0;const R=n.filter(f=>f.isExotic).length,y=n.length-R,m=s.filter(f=>f.isExotic).length,d=s.length-m,U=h.filter(f=>f.isExotic).length,w=h.length-U,C=u.filter(f=>f.isExotic).length,v=u.length-C;return S+=R*d*w*v,S+=y*m*w*v,S+=y*d*U*v,S+=y*d*w*C,S+=y*d*w*v,S}(m,d,U,w),ae=0,ue=0;console.log("estimatedCalculations",z);let pe=z>=1e6?125:75;console.time(`tm #${h.current}`);for(let[b,X,oe,se]of function*ce(n,s,h,u,S,R){for(let y of n)for(let m of s)if(!(S&&y.isExotic&&m.isExotic))for(let d of h)if(!S||!y.isExotic&&!m.isExotic||!d.isExotic)for(let U of u)S&&(y.isExotic||m.isExotic||d.isExotic)&&U.isExotic||R&&!(y.isExotic||m.isExotic||d.isExotic||U.isExotic)||(yield[y,m,d,U])}(m,d,U,w,W,o)){ae++;const re=i(u,p,x,b,X,oe,se);if(!re.valid)continue;const ge=!re.requiredClassItemType||re.requiredClassItemType==e.Pn.SlotArtifice,me=b.isExotic||X.isExotic||oe.isExotic||se.isExotic,Q=r(F,u,b,X,oe,se,l,g,ne,(A||!me&&D&&!u.ignoreExistingExoticArtificeSlots)&&ge,T);null!=Q&&(G++,L(Q)&&(Q.classItemPerk=re.requiredClassItemType||(A?e.Pn.SlotArtifice:e.Pn.None),!me&&E&&T&&Q.armor.push(E.id),I.push(Q),$++,J++,ne=ne||u.limitParsedResults&&J>=3e4/h.count||J>=1e6/h.count)),G%5e3==0&&ue+pe=5e3&&(postMessage({runtime:F,results:I,done:!1,checkedCalculations:ae,estimatedCalculations:z}),I=[],$=0)}console.timeEnd(`tm #${h.current}`),console.timeEnd(`total #${h.current}`),postMessage({runtime:F,results:I,done:!0,checkedCalculations:ae,estimatedCalculations:z,stats:{permutationCount:G,itemCount:R.length-P.length,totalTime:Date.now()-y}})});return function(s){return n.apply(this,arguments)}}())})()})(); \ No newline at end of file diff --git a/index.html b/index.html index 24cde499..3363a2cf 100644 --- a/index.html +++ b/index.html @@ -35,6 +35,6 @@ - + \ No newline at end of file diff --git a/main.6e580fa392fffa29.js b/main.6e580fa392fffa29.js new file mode 100644 index 00000000..bb2911cd --- /dev/null +++ b/main.6e580fa392fffa29.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkD2ArmorPicker=self.webpackChunkD2ArmorPicker||[]).push([[179],{443:(ht,at,_)=>{_.d(at,{F:()=>I});var u=_(7580),t=_(8333),g=_(1043);const I={[u.U.WhisperOfDurance]:{id:u.U.WhisperOfDurance,name:"Whisper of Durance",description:"Slow that you apply to targets lasts longer. For those abilities that linger, their duration will also increase.",type:t.O.Stasis,bonus:[{stat:g.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:3469412969},[u.U.WhisperOfChains]:{id:u.U.WhisperOfChains,name:"Whisper of Chains",description:"While you are near frozen targets or a friendly Stasis crystal, you take reduced damage from targets.",type:t.O.Stasis,bonus:[{stat:g.WB.Recovery,value:10}],cost:1,requiredArmorAffinity:0,hash:537774540},[u.U.WhisperOfConduction]:{id:u.U.WhisperOfConduction,name:"Whisper of Conduction",description:"Nearby Stasis shards track to your position.",type:t.O.Stasis,bonus:[{stat:g.WB.Intellect,value:10},{stat:g.WB.Resilience,value:10}],cost:1,requiredArmorAffinity:0,hash:2483898429},[u.U.WhisperOfBonds]:{id:u.U.WhisperOfBonds,name:"Whisper of Bonds",description:"Defeating frozen targets generates an Orb of Power.",type:t.O.Stasis,bonus:[{stat:g.WB.Intellect,value:-10}],cost:1,requiredArmorAffinity:0,hash:3469412974},[u.U.WhisperOfHunger]:{id:u.U.WhisperOfHunger,name:"Whisper of Hunger",description:"Increases the melee energy gained from picking up Stasis shards.",type:t.O.Stasis,bonus:[{stat:g.WB.Strength,value:-20}],cost:1,requiredArmorAffinity:0,hash:2483898431},[u.U.WhisperOfFractures]:{id:u.U.WhisperOfFractures,name:"Whisper of Fractures",description:"Your melee energy recharges faster when you are near two or more targets.",type:t.O.Stasis,bonus:[{stat:g.WB.Discipline,value:-10}],cost:1,requiredArmorAffinity:0,hash:537774542},[u.U.WhisperOfImpetus]:{id:u.U.WhisperOfImpetus,name:"Whisper of Impetus",description:"Damaging targets with a Stasis melee reloads your stowed weapons and grants you a temporary boost to weapon ready speed.",type:t.O.Stasis,bonus:[{stat:g.WB.Resilience,value:10}],cost:1,requiredArmorAffinity:0,hash:537774543},[u.U.WhisperOfTorment]:{id:u.U.WhisperOfTorment,name:"Whisper of Torment",description:"You gain grenade energy each time you take damage from targets. Having Frost Armor increases the amount of energy gained.",type:t.O.Stasis,bonus:[{stat:g.WB.Discipline,value:-10}],cost:1,requiredArmorAffinity:0,hash:537774541},[u.U.EchoOfExpulsion]:{id:u.U.EchoOfExpulsion,name:"Echo of Expulsion",description:"Void ability final blows cause targets to explode.",type:t.O.Void,bonus:[{stat:g.WB.Intellect,value:10}],cost:1,requiredArmorAffinity:0,hash:2272984665},[u.U.EchoOfProvision]:{id:u.U.EchoOfProvision,name:"Echo of Provision",description:"Damaging targets with grenades grants melee energy.",type:t.O.Void,bonus:[{stat:g.WB.Strength,value:-10}],cost:1,requiredArmorAffinity:0,hash:2272984664},[u.U.EchoOfPersistence]:{id:u.U.EchoOfPersistence,name:"Echo of Persistence",description:"Void buffs applied to you (Invisibility, Overshield, and Devour) have increased duration.",type:t.O.Void,bonus:[{stat:g.AR.ClassAbilityRegenerationStat,value:-10}],cost:1,requiredArmorAffinity:0,hash:2272984671},[u.U.EchoOfLeeching]:{id:u.U.EchoOfLeeching,name:"Echo of Leeching",description:"Melee final blows start health regeneration for you and nearby allies.",type:t.O.Void,bonus:[{stat:g.WB.Resilience,value:10}],cost:1,requiredArmorAffinity:0,hash:2272984670},[u.U.EchoOfDomineering]:{id:u.U.EchoOfDomineering,name:"Echo of Domineering",description:"After suppressing a target, you gain greatly increased mobility for a short duration, and your equipped weapon is reloaded from reserves.\n\nDefeating suppressed targets creates a Void Breach.",type:t.O.Void,bonus:[{stat:g.WB.Discipline,value:10}],cost:1,requiredArmorAffinity:0,hash:2272984657},[u.U.EchoOfDilation]:{id:u.U.EchoOfDilation,name:"Echo of Dilation",description:"While crouched, you sneak faster and gain enhanced radar resolution.",type:t.O.Void,bonus:[{stat:g.WB.Mobility,value:10},{stat:g.WB.Intellect,value:10}],cost:1,requiredArmorAffinity:0,hash:2272984656},[u.U.EchoOfUndermining]:{id:u.U.EchoOfUndermining,name:"Echo of Undermining",description:"Your Void grenades weaken targets.",type:t.O.Void,bonus:[{stat:g.WB.Discipline,value:-20}],cost:1,requiredArmorAffinity:0,hash:2272984668},[u.U.EchoOfInstability]:{id:u.U.EchoOfInstability,name:"Echo of Instability",description:"Defeating targets with grenades grants Volatile Rounds to your Void weapons.",type:t.O.Void,bonus:[{stat:g.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:2661180600},[u.U.EchoOfHarvest]:{id:u.U.EchoOfHarvest,name:"Echo of Harvest",description:"Defeating weakened targets creates an Orb of Power and a Void Breach.",type:t.O.Void,bonus:[{stat:g.WB.Intellect,value:-10}],cost:1,requiredArmorAffinity:0,hash:2661180601},[u.U.EchoOfObscurity]:{id:u.U.EchoOfObscurity,name:"Echo of Obscurity",description:"Finisher final blows grant Invisibility.",type:t.O.Void,bonus:[{stat:g.WB.Recovery,value:10}],cost:1,requiredArmorAffinity:0,hash:2661180602},[u.U.EchoOfStarvation]:{id:u.U.EchoOfStarvation,name:"Echo of Starvation",description:"Picking up a Void Breach or an Orb of Power grants Devour.",type:t.O.Void,bonus:[{stat:g.WB.Recovery,value:-10}],cost:1,requiredArmorAffinity:0,hash:2661180603},[u.U.EchoOfVigilance]:{id:u.U.EchoOfVigilance,name:"Echo of Vigilance",description:"Defeating a target while your shields are depleted grants you a temporary Void overshield.",type:t.O.Void,bonus:[{stat:g.WB.Recovery,value:-10}],cost:1,requiredArmorAffinity:0,hash:3854948621},[u.U.EmberOfBenelovence]:{id:u.U.EmberOfBenelovence,name:"Ember of Benevolence",description:"Applying restoration, cure, or radiant to allies grants increased grenade, melee, and class ability regeneration for a short duration.",type:t.O.Solar,bonus:[{stat:g.WB.Discipline,value:-10}],cost:1,requiredArmorAffinity:0,hash:362132292},[u.U.EmberOfBeams]:{id:u.U.EmberOfBeams,name:"Ember of Beams",description:"Your Solar Super projectiles have stronger target acquisition.",type:t.O.Solar,bonus:[{stat:g.WB.Intellect,value:10}],cost:1,requiredArmorAffinity:0,hash:362132295},[u.U.EmberOfEmpyrean]:{id:u.U.EmberOfEmpyrean,name:"Ember of Empyrean",description:"Solar weapon or ability final blows extend the duration of restoration and radiant effects applied to you.",type:t.O.Solar,bonus:[{stat:g.WB.Resilience,value:-10}],cost:1,requiredArmorAffinity:0,hash:362132294},[u.U.EmberOfCombustion]:{id:u.U.EmberOfCombustion,name:"Ember of Combustion",description:"Final blows with a Solar Super causes targets to ignite and creates a Firesprite.",type:t.O.Solar,bonus:[{stat:g.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:362132289},[u.U.EmberOfChar]:{id:u.U.EmberOfChar,name:"Ember of Char",description:"Your Solar ignitions spread scorch to affected targets.",type:t.O.Solar,bonus:[{stat:g.WB.Discipline,value:10}],cost:1,requiredArmorAffinity:0,hash:362132291},[u.U.EmberOfTempering]:{id:u.U.EmberOfTempering,name:"Ember of Tempering",description:"Solar weapon final blows grant you and your allies increased recovery for a short duration. Stacks 3 times.\n\nWhile Ember of Tempering is active, your weapons have increased airborne effectiveness, and your Solar weapon final blows create a Firesprite.",type:t.O.Solar,bonus:[{stat:g.WB.Recovery,value:-10}],cost:1,requiredArmorAffinity:0,hash:362132290},[u.U.EmberOfEruption]:{id:u.U.EmberOfEruption,name:"Ember of Eruption",description:"Your Solar ignitions have increased area of effect.",type:t.O.Solar,bonus:[{stat:g.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:1051276348},[u.U.EmberOfWonder]:{id:u.U.EmberOfWonder,name:"Ember of Wonder",description:"Rapidly defeating multiple targets with Solar ignitions generates an Orb of Power.",type:t.O.Solar,bonus:[{stat:g.WB.Resilience,value:10}],cost:1,requiredArmorAffinity:0,hash:1051276350},[u.U.EmberOfSearing]:{id:u.U.EmberOfSearing,name:"Ember of Searing",description:"Defeating scorched targets grants melee energy and creates a Firesprite.",type:t.O.Solar,bonus:[{stat:g.WB.Recovery,value:10}],cost:1,requiredArmorAffinity:0,hash:1051276351},[u.U.EmberOfTorches]:{id:u.U.EmberOfTorches,name:"Ember of Torches",description:"Powered melee attacks against combatants make you and nearby allies radiant.",type:t.O.Solar,bonus:[{stat:g.WB.Discipline,value:-10}],cost:1,requiredArmorAffinity:0,hash:362132288},[u.U.EmberOfMercy]:{id:u.U.EmberOfMercy,name:"Ember of Mercy",description:"When you revive an ally, you and other nearby allies gain restoration.\n\nPicking up a Firesprite grants restoration.",type:t.O.Solar,bonus:[{stat:g.WB.Resilience,value:10}],cost:1,requiredArmorAffinity:0,hash:4180586737},[u.U.SparkOfBrilliance]:{id:u.U.SparkOfBrilliance,name:"Spark of Brilliance",description:"Defeating a blinded target with precision damage creates a blinding explosion.",type:t.O.Arc,bonus:[{stat:g.WB.Intellect,value:10}],cost:1,requiredArmorAffinity:0,hash:3277705905},[u.U.SparkOfFeedback]:{id:u.U.SparkOfFeedback,name:"Spark of Feedback",description:"Taking melee damage briefly increases your outgoing melee damage.",type:t.O.Arc,bonus:[{stat:g.WB.Resilience,value:10}],cost:1,requiredArmorAffinity:0,hash:3277705907},[u.U.SparkOfDischarge]:{id:u.U.SparkOfDischarge,name:"Spark of Discharge",description:"Arc weapon final blows have a chance to create an Ionic Trace.",type:t.O.Arc,bonus:[{stat:g.WB.Strength,value:-10}],cost:1,requiredArmorAffinity:0,hash:1727069362},[u.U.SparkOfFocus]:{id:u.U.SparkOfFocus,name:"Spark of Focus",description:"After sprinting for a short time, your class ability regeneration is increased.",type:t.O.Arc,bonus:[{stat:g.AR.ClassAbilityRegenerationStat,value:-10}],cost:1,requiredArmorAffinity:0,hash:1727069360},[u.U.SparkOfVolts]:{id:u.U.SparkOfVolts,name:"Spark of Volts",description:"Finishers make you amplified.",type:t.O.Arc,bonus:[{stat:g.WB.Recovery,value:10}],cost:1,requiredArmorAffinity:0,hash:3277705904},[u.U.SparkOfResistance]:{id:u.U.SparkOfResistance,name:"Spark of Resistance",description:"While surrounded by combatants, you are more resistant to incoming damage.",type:t.O.Arc,bonus:[{stat:g.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:1727069366},[u.U.SparkOfShock]:{id:u.U.SparkOfShock,name:"Spark of Shock",description:"Your Arc grenades jolt targets.",type:t.O.Arc,bonus:[{stat:g.WB.Discipline,value:-10}],cost:1,requiredArmorAffinity:0,hash:1727069364},[u.U.ThreadOfFury]:{id:u.U.ThreadOfFury,name:"Thread of Fury",description:"Damaging targets with a Tangle grants melee energy.",type:t.O.Strand,bonus:[{stat:g.WB.Strength,value:-10}],cost:1,requiredArmorAffinity:0,hash:4208512219},[u.U.ThreadOfAscent]:{id:u.U.ThreadOfAscent,name:"Thread of Ascent",description:"Activating your grenade ability reloads your equipped weapon and grants bonus airborne effectiveness and handling for a short duration.",type:t.O.Strand,bonus:[{stat:g.WB.Mobility,value:10}],cost:1,requiredArmorAffinity:0,hash:4208512216},[u.U.ThreadOfFinality]:{id:u.U.ThreadOfFinality,name:"Thread of Finality",description:"Finisher final blows create Threadlings.",type:t.O.Strand,bonus:[{stat:g.WB.Recovery,value:10}],cost:1,requiredArmorAffinity:0,hash:4208512217},[u.U.ThreadOfWarding]:{id:u.U.ThreadOfWarding,name:"Thread of Warding",description:"Picking up an Orb of Power grants Woven Mail.",type:t.O.Strand,bonus:[{stat:g.WB.Resilience,value:-10}],cost:1,requiredArmorAffinity:0,hash:4208512222},[u.U.ThreadOfTransmutation]:{id:u.U.ThreadOfTransmutation,name:"Thread of Transmutation",description:"While you have Woven Mail, weapon final blows create a Tangle.",type:t.O.Strand,bonus:[{stat:g.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:4208512221},[u.U.ThreadOfEvolution]:{id:u.U.ThreadOfEvolution,name:"Thread of Evolution",description:"Threadlings travel farther and deal additional damage.",type:t.O.Strand,bonus:[{stat:g.WB.Intellect,value:10}],cost:1,requiredArmorAffinity:0,hash:4208512211},[u.U.ThreadOfBinding]:{id:u.U.ThreadOfBinding,name:"Thread of Binding",description:"Super final blows emit a suspending burst from the target.",type:t.O.Strand,bonus:[{stat:g.WB.Resilience,value:10}],cost:1,requiredArmorAffinity:0,hash:3192552688},[u.U.ThreadOfGeneration]:{id:u.U.ThreadOfGeneration,name:"Thread of Generation",description:"Dealing damage generates grenade energy.",type:t.O.Strand,bonus:[{stat:g.WB.Discipline,value:-10}],cost:1,requiredArmorAffinity:0,hash:3192552691},[u.U.ThreadOfPropagation]:{id:u.U.ThreadOfPropagation,name:"Thread of Propagation",description:"Powered melee final blows grant your Strand weapons Unraveling Rounds.",type:t.O.Strand,bonus:[{stat:g.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:4208512210},[u.U.FacetOfAwakening]:{id:u.U.FacetOfAwakening,name:"Facet of Awakening",description:"Rapid elemental final blows and Super final blows generate an elemental pickup of the matching damage type.",type:t.O.Prismatic,bonus:[{stat:g.WB.Resilience,value:10}],cost:1,requiredArmorAffinity:0,hash:124726505},[u.U.FacetOfCourage]:{id:u.U.FacetOfCourage,name:"Facet of Courage",description:"Your Light abilities deal increased damage to targets afflicted with Darkness debuffs.",type:t.O.Prismatic,bonus:[{stat:g.WB.Discipline,value:10}],cost:1,requiredArmorAffinity:0,hash:2626922124},[u.U.FacetOfDawn]:{id:u.U.FacetOfDawn,name:"Facet of Dawn",description:"Powered melee hits against targets make you Radiant. Powered melee final blows make both you and nearby allies Radiant.",type:t.O.Prismatic,bonus:[{stat:g.WB.Strength,value:-10}],cost:1,requiredArmorAffinity:0,hash:2626922126},[u.U.FacetOfDefiance]:{id:u.U.FacetOfDefiance,name:"Facet of Defiance",description:"Finishers create a detonation that either jolts, scorches, slows, severs, or makes targets volatile based on the damage type of your equipped Super.",type:t.O.Prismatic,bonus:[{stat:g.WB.Recovery,value:10}],cost:1,requiredArmorAffinity:0,hash:74393640},[u.U.FacetOfDevotion]:{id:u.U.FacetOfDevotion,name:"Facet of Devotion",description:"Defeating targets afflicted with a Darkness debuff grants bonus Light Transcendence energy.",type:t.O.Prismatic,bonus:[{stat:g.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:2626922125},[u.U.FacetOfDominance]:{id:u.U.FacetOfDominance,name:"Facet of Dominance",description:"Your Void grenades weaken targets, and your Arc grenades jolt targets.",type:t.O.Prismatic,bonus:[{stat:g.WB.Discipline,value:-10}],cost:1,requiredArmorAffinity:0,hash:124726504},[u.U.FacetOfGrace]:{id:u.U.FacetOfGrace,name:"Facet of Grace",description:"Defeating targets with Kinetic weapons grants you bonus Transcendence energy. Defeating targets with your Super grants you and nearby allies bonus Transcendence energy.",type:t.O.Prismatic,bonus:[{stat:g.WB.Resilience,value:-10}],cost:1,requiredArmorAffinity:0,hash:2626922121},[u.U.FacetOfHonor]:{id:u.U.FacetOfHonor,name:"Facet of Honor",description:"Collecting an elemental pickup or destroying a Tangle grants Transcendence energy of the same type.",type:t.O.Prismatic,bonus:[{stat:g.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:124726501},[u.U.FacetOfJustice]:{id:u.U.FacetOfJustice,name:"Facet of Justice",description:"While Transcendent, your ability final blows explode.",type:t.O.Prismatic,bonus:[{stat:g.WB.Intellect,value:10}],cost:1,requiredArmorAffinity:0,hash:2626922115},[u.U.FacetOfProtection]:{id:u.U.FacetOfProtection,name:"Facet of Protection",description:"While surrounded by enemies, you are more resistant to incoming damage.",type:t.O.Prismatic,bonus:[{stat:g.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:2626922120},[u.U.FacetOfPurpose]:{id:u.U.FacetOfPurpose,name:"Facet of Purpose",description:"Picking up an Orb of Power grants either Amplified, Restoration, Frost Armor, Woven Mail, or Overshield, based on the damage type of your equipped super.",type:t.O.Prismatic,bonus:[{stat:g.WB.Recovery,value:-10}],cost:1,requiredArmorAffinity:0,hash:124726498},[u.U.FacetOfRuin]:{id:u.U.FacetOfRuin,name:"Facet of Ruin",description:"Increases the size and damage of the burst when you shatter a Stasis crystal or frozen target and increases the area of effect of Solar ignitions.",type:t.O.Prismatic,bonus:[{stat:g.WB.Mobility,value:10}],cost:1,requiredArmorAffinity:0,hash:124726499},[u.U.FacetOfSacrifice]:{id:u.U.FacetOfSacrifice,name:"Facet of Sacrifice",description:"While you have a Light buff, ability final blows grant bonus Darkness Transcendence energy.",type:t.O.Prismatic,bonus:[{stat:g.WB.Discipline,value:10}],cost:1,requiredArmorAffinity:0,hash:124726502}}},3244:(ht,at,_)=>{_.d(at,{Io:()=>t,Qj:()=>u,dM:()=>g});const u=5,t=-1,g=-2},4682:(ht,at,_)=>{_.d(at,{v:()=>t});var u=_(6438);class t extends u.ZP{constructor(){super("d2armorpicker-v2"),this.version(25).stores({manifestArmor:"id++, hash, isExotic",inventoryArmor:"id++, itemInstanceId, isExotic, hash, name, masterworked, clazz, slot, source",manifestCollectibles:"id++, hash",vendorNames:"id++, vendorId"})}}},6471:(ht,at,_)=>{_.d(at,{y:()=>u});var u=(()=>{return(t=u||(u={}))[t.ArmorSlotNone=0]="ArmorSlotNone",t[t.ArmorSlotHelmet=1]="ArmorSlotHelmet",t[t.ArmorSlotGauntlet=2]="ArmorSlotGauntlet",t[t.ArmorSlotChest=3]="ArmorSlotChest",t[t.ArmorSlotLegs=4]="ArmorSlotLegs",t[t.ArmorSlotClass=5]="ArmorSlotClass",u;var t})()},1043:(ht,at,_)=>{_.d(at,{AR:()=>y,Bd:()=>Nt,DH:()=>gt,ED:()=>Et,ID:()=>Rt,K9:()=>I,Mi:()=>M,Pn:()=>b,WB:()=>g,X9:()=>vt,cM:()=>Mt,iV:()=>t,kw:()=>wt,lp:()=>ot});var u=_(8333),t=(()=>{return(x=t||(t={}))[x.NONE=0]="NONE",x[x.MINOR_MOBILITY=1]="MINOR_MOBILITY",x[x.MAJOR_MOBILITY=2]="MAJOR_MOBILITY",x[x.ARTIFICE_MOBILITY=3]="ARTIFICE_MOBILITY",x[x.MINOR_RESILIENCE=4]="MINOR_RESILIENCE",x[x.MAJOR_RESILIENCE=5]="MAJOR_RESILIENCE",x[x.ARTIFICE_RESILIENCE=6]="ARTIFICE_RESILIENCE",x[x.MINOR_RECOVERY=7]="MINOR_RECOVERY",x[x.MAJOR_RECOVERY=8]="MAJOR_RECOVERY",x[x.ARTIFICE_RECOVERY=9]="ARTIFICE_RECOVERY",x[x.MINOR_DISCIPLINE=10]="MINOR_DISCIPLINE",x[x.MAJOR_DISCIPLINE=11]="MAJOR_DISCIPLINE",x[x.ARTIFICE_DISCIPLINE=12]="ARTIFICE_DISCIPLINE",x[x.MINOR_INTELLECT=13]="MINOR_INTELLECT",x[x.MAJOR_INTELLECT=14]="MAJOR_INTELLECT",x[x.ARTIFICE_INTELLECT=15]="ARTIFICE_INTELLECT",x[x.MINOR_STRENGTH=16]="MINOR_STRENGTH",x[x.MAJOR_STRENGTH=17]="MAJOR_STRENGTH",x[x.ARTIFICE_STRENGTH=18]="ARTIFICE_STRENGTH",t;var x})(),g=(()=>{return(x=g||(g={}))[x.Mobility=0]="Mobility",x[x.Resilience=1]="Resilience",x[x.Recovery=2]="Recovery",x[x.Discipline=3]="Discipline",x[x.Intellect=4]="Intellect",x[x.Strength=5]="Strength",g;var x})();const I={[t.NONE]:[g.Strength,0,0,0],[t.MINOR_MOBILITY]:[g.Mobility,5,1,1703647492],[t.MAJOR_MOBILITY]:[g.Mobility,10,3,4183296050],[t.ARTIFICE_MOBILITY]:[g.Mobility,3,0,2322202118],[t.MINOR_RESILIENCE]:[g.Resilience,5,2,2532323436],[t.MAJOR_RESILIENCE]:[g.Resilience,10,4,1180408010],[t.ARTIFICE_RESILIENCE]:[g.Resilience,3,0,199176566],[t.MINOR_RECOVERY]:[g.Recovery,5,2,1237786518],[t.MAJOR_RECOVERY]:[g.Recovery,10,4,4204488676],[t.ARTIFICE_RECOVERY]:[g.Recovery,3,0,539459624],[t.MINOR_DISCIPLINE]:[g.Discipline,5,1,4021790309],[t.MAJOR_DISCIPLINE]:[g.Discipline,10,3,1435557120],[t.ARTIFICE_DISCIPLINE]:[g.Discipline,3,0,617569843],[t.MINOR_INTELLECT]:[g.Intellect,5,2,350061697],[t.MAJOR_INTELLECT]:[g.Intellect,10,4,2724608735],[t.ARTIFICE_INTELLECT]:[g.Intellect,3,0,3160845295],[t.MINOR_STRENGTH]:[g.Strength,5,1,2639422088],[t.MAJOR_STRENGTH]:[g.Strength,10,3,4287799666],[t.ARTIFICE_STRENGTH]:[g.Strength,3,0,2507624050]},M={[g.Mobility]:"Mobility",[g.Resilience]:"Resilience",[g.Recovery]:"Recovery",[g.Discipline]:"Discipline",[g.Intellect]:"Intellect",[g.Strength]:"Strength"},wt={[g.Mobility]:2996146975,[g.Resilience]:392767087,[g.Recovery]:1943323491,[g.Discipline]:1735777505,[g.Intellect]:144602215,[g.Strength]:4244567218},ot={[g.Mobility]:"https://www.bungie.net/common/destiny2_content/icons/e26e0e93a9daf4fdd21bf64eb9246340.png",[g.Resilience]:"https://www.bungie.net/common/destiny2_content/icons/202ecc1c6febeb6b97dafc856e863140.png",[g.Recovery]:"https://www.bungie.net/common/destiny2_content/icons/128eee4ee7fc127851ab32eac6ca91cf.png",[g.Discipline]:"https://www.bungie.net/common/destiny2_content/icons/79be2d4adef6a19203f7385e5c63b45b.png",[g.Intellect]:"https://www.bungie.net/common/destiny2_content/icons/d1c154469670e9a592c9d4cbdcae5764.png",[g.Strength]:"https://www.bungie.net/common/destiny2_content/icons/ea5af04ccd6a3470a44fd7bb0f66e2f7.png"};var y=(()=>{return(x=y||(y={}))[x.ClassAbilityRegenerationStat=10]="ClassAbilityRegenerationStat",y;var x})(),b=(()=>{return(x=b||(b={}))[x.None=0]="None",x[x.SlotCrotasEnd=2]="SlotCrotasEnd",x[x.SlotRootOfNightmares=3]="SlotRootOfNightmares",x[x.SlotKingsFall=4]="SlotKingsFall",x[x.SlotVowOfTheDisciple=5]="SlotVowOfTheDisciple",x[x.SlotVaultOfGlass=6]="SlotVaultOfGlass",x[x.SlotDeepStoneCrypt=7]="SlotDeepStoneCrypt",x[x.SlotGardenOfSalvation=8]="SlotGardenOfSalvation",x[x.SlotLastWish=9]="SlotLastWish",x[x.SlotArtifice=10]="SlotArtifice",x[x.PerkIronBanner=11]="PerkIronBanner",x[x.SlotNightmare=12]="SlotNightmare",x[x.GuardianGamesClassItem=18]="GuardianGamesClassItem",x[x.PerkEchoesOfGlory=20]="PerkEchoesOfGlory",x[x.SlotSalvationsEdge=21]="SlotSalvationsEdge",x[x.COUNT=22]="COUNT",b;var x})();const Et={1760565003:b.PerkEchoesOfGlory},Mt={[b.None]:"None",[b.SlotCrotasEnd]:"Crota's End Modslot",[b.SlotRootOfNightmares]:"Root of Nightmares Modslot",[b.SlotKingsFall]:"King's Fall Modslot",[b.SlotVowOfTheDisciple]:"Vow of the Disciple Modslot",[b.SlotVaultOfGlass]:"Vault of Glass Modslot",[b.SlotDeepStoneCrypt]:"Deep Stone Crypt Modslot",[b.SlotGardenOfSalvation]:"Garden of Salvation Modslot",[b.SlotLastWish]:"Last Wish Modslot",[b.SlotArtifice]:"Artifice Modslot",[b.PerkIronBanner]:"Iron Banner Perk",[b.SlotNightmare]:"Nightmare Hunt Modslot",[b.GuardianGamesClassItem]:"Guardian Games",[b.PerkEchoesOfGlory]:"Echoes of Glory Perk",[b.SlotSalvationsEdge]:"Salvation's Edge Modslot",[b.COUNT]:""},vt={[b.None]:"https://www.bungie.net/img/misc/missing_icon_d2.png",[b.SlotCrotasEnd]:"https://www.bungie.net/common/destiny2_content/icons/7ddce334fe8391848f408227439c1d7a.png",[b.SlotRootOfNightmares]:"https://www.bungie.net/common/destiny2_content/icons/f2b6ec58e14244e4972705897667c246.png",[b.SlotKingsFall]:"https://www.bungie.net/common/destiny2_content/icons/0e515c7cf25a2f2350b788e6f5b7f8eb.png",[b.SlotVowOfTheDisciple]:"https://www.bungie.net/common/destiny2_content/icons/b84b6ea72dd05de7123aa2ae87ba0d6a.png",[b.SlotVaultOfGlass]:"https://www.bungie.net/common/destiny2_content/icons/7c9a2d95113de19c5acdbed57775abf4.png",[b.SlotDeepStoneCrypt]:"https://www.bungie.net/common/destiny2_content/icons/d6452d010cfe72a51a9089ec68ab223c.png",[b.SlotGardenOfSalvation]:"https://www.bungie.net/common/destiny2_content/icons/53d6e3505cd03d4026b3dbbd9ccc19b6.jpg",[b.SlotLastWish]:"https://www.bungie.net/common/destiny2_content/icons/76f0c1520fa384ceb27bd2469225dd8a.png",[b.SlotArtifice]:"https://www.bungie.net/common/destiny2_content/icons/46eec78bb7864641bbd7ba1fd4f9f248.png",[b.PerkIronBanner]:"https://bungie.net/common/destiny2_content/icons/DestinyActivityModeDefinition_fe57052d7cf971f7502daa75a2ca2437.png",[b.SlotNightmare]:"https://www.bungie.net/common/destiny2_content/icons/53d6e3505cd03d4026b3dbbd9ccc19b6.jpg",[b.GuardianGamesClassItem]:"https://www.bungie.net/common/destiny2_content/icons/DestinyEventCardDefinition_ce6c2cf855dce694bcc89803b6bc44b7.png",[b.SlotSalvationsEdge]:"https://www.bungie.net/common/destiny2_content/icons/f4a1f99b49ecf412726d71ea9ee15540.png",[b.PerkEchoesOfGlory]:"https://www.bungie.net/common/destiny2_content/icons/c67322c917e16f3b8a4cb962e3f11166.png",[b.COUNT]:""},gt={[b.SlotCrotasEnd]:717667840,[b.SlotRootOfNightmares]:4144354978,[b.SlotKingsFall]:1728096240,[b.SlotVowOfTheDisciple]:2447143568,[b.SlotVaultOfGlass]:3738398030,[b.SlotDeepStoneCrypt]:4055462131,[b.SlotGardenOfSalvation]:706611068,[b.SlotLastWish]:1679876242,[b.SlotArtifice]:3727270518,[b.PerkIronBanner]:2472875850,[b.SlotNightmare]:1180997867,[b.SlotSalvationsEdge]:4059283783,[b.PerkEchoesOfGlory]:2352831367},Rt={[b.SlotCrotasEnd]:"modslot:crotasend",[b.SlotRootOfNightmares]:"modslot:rootofnightmares",[b.SlotKingsFall]:"modslot:kingsfall",[b.SlotVowOfTheDisciple]:"modslot:vowofthedisciple",[b.SlotVaultOfGlass]:"modslot:vaultofglass",[b.SlotDeepStoneCrypt]:"modslot:deepstonecrypt",[b.SlotGardenOfSalvation]:"modslot:gardenofsalvation",[b.SlotLastWish]:"modslot:lastwish",[b.SlotArtifice]:'perkname:"artifice armor"',[b.PerkIronBanner]:'perkname:"iron lord\'s pride"',[b.SlotNightmare]:"modslot:nightmare",[b.GuardianGamesClassItem]:"(hash:537041732 or hash:366019830 or hash:1013401891)",[b.PerkEchoesOfGlory]:'exactperk:"echoes of glory"',[b.SlotSalvationsEdge]:"(source:salvationsedge is:armor)"},Nt={1:{[u.O.Stasis]:873720784,[u.O.Void]:2453351420,[u.O.Solar]:2240888816,[u.O.Arc]:2328211300,[u.O.Strand]:3785442599,[u.O.Prismatic]:4282591831},0:{[u.O.Stasis]:613647804,[u.O.Void]:2842471112,[u.O.Solar]:2550323932,[u.O.Arc]:2932390016,[u.O.Strand]:242419885,[u.O.Prismatic]:1616346845},2:{[u.O.Stasis]:3291545503,[u.O.Void]:2849050827,[u.O.Solar]:3941205951,[u.O.Arc]:3168997075,[u.O.Strand]:4204413574,[u.O.Prismatic]:3893112950}}},1650:(ht,at,_)=>{_.d(at,{w:()=>u});var u=(()=>{return(t=u||(u={}))[t.None=0]="None",t[t.ReduceUsedModSockets=1]="ReduceUsedModSockets",t[t.ReduceUsedModPoints=2]="ReduceUsedModPoints",u;var t})()},7580:(ht,at,_)=>{_.d(at,{U:()=>u});var u=(()=>{return(t=u||(u={}))[t.WhisperOfDurance=1e3]="WhisperOfDurance",t[t.WhisperOfChains=1001]="WhisperOfChains",t[t.WhisperOfConduction=1002]="WhisperOfConduction",t[t.WhisperOfBonds=1101]="WhisperOfBonds",t[t.WhisperOfHunger=1102]="WhisperOfHunger",t[t.WhisperOfFractures=1103]="WhisperOfFractures",t[t.WhisperOfTorment=1104]="WhisperOfTorment",t[t.EchoOfExpulsion=1200]="EchoOfExpulsion",t[t.EchoOfProvision=1201]="EchoOfProvision",t[t.EchoOfPersistence=1202]="EchoOfPersistence",t[t.EchoOfLeeching=1203]="EchoOfLeeching",t[t.EchoOfDomineering=1204]="EchoOfDomineering",t[t.EchoOfDilation=1205]="EchoOfDilation",t[t.EchoOfUndermining=1206]="EchoOfUndermining",t[t.EchoOfInstability=1207]="EchoOfInstability",t[t.EchoOfHarvest=1208]="EchoOfHarvest",t[t.EchoOfObscurity=1209]="EchoOfObscurity",t[t.EchoOfStarvation=1210]="EchoOfStarvation",t[t.EchoOfVigilance=1211]="EchoOfVigilance",t[t.EmberOfBenelovence=1300]="EmberOfBenelovence",t[t.EmberOfBeams=1301]="EmberOfBeams",t[t.EmberOfEmpyrean=1302]="EmberOfEmpyrean",t[t.EmberOfCombustion=1303]="EmberOfCombustion",t[t.EmberOfChar=1304]="EmberOfChar",t[t.EmberOfTempering=1305]="EmberOfTempering",t[t.EmberOfEruption=1306]="EmberOfEruption",t[t.EmberOfWonder=1307]="EmberOfWonder",t[t.EmberOfSearing=1308]="EmberOfSearing",t[t.EmberOfTorches=1309]="EmberOfTorches",t[t.EmberOfMercy=1310]="EmberOfMercy",t[t.SparkOfBrilliance=1400]="SparkOfBrilliance",t[t.SparkOfFeedback=1401]="SparkOfFeedback",t[t.SparkOfDischarge=1402]="SparkOfDischarge",t[t.SparkOfFocus=1403]="SparkOfFocus",t[t.SparkOfVolts=1404]="SparkOfVolts",t[t.SparkOfResistance=1405]="SparkOfResistance",t[t.SparkOfShock=1406]="SparkOfShock",t[t.ThreadOfFury=1600]="ThreadOfFury",t[t.ThreadOfAscent=1601]="ThreadOfAscent",t[t.ThreadOfFinality=1602]="ThreadOfFinality",t[t.ThreadOfWarding=1603]="ThreadOfWarding",t[t.ThreadOfTransmutation=1604]="ThreadOfTransmutation",t[t.ThreadOfEvolution=1605]="ThreadOfEvolution",t[t.ThreadOfBinding=1606]="ThreadOfBinding",t[t.ThreadOfGeneration=1607]="ThreadOfGeneration",t[t.ThreadOfPropagation=1608]="ThreadOfPropagation",t[t.WhisperOfImpetus=537774543]="WhisperOfImpetus",t[t.FacetOfAwakening=1700]="FacetOfAwakening",t[t.FacetOfCourage=1701]="FacetOfCourage",t[t.FacetOfDawn=1702]="FacetOfDawn",t[t.FacetOfDefiance=1703]="FacetOfDefiance",t[t.FacetOfDevotion=1704]="FacetOfDevotion",t[t.FacetOfDominance=1705]="FacetOfDominance",t[t.FacetOfGrace=1706]="FacetOfGrace",t[t.FacetOfHonor=1707]="FacetOfHonor",t[t.FacetOfJustice=1708]="FacetOfJustice",t[t.FacetOfProtection=1709]="FacetOfProtection",t[t.FacetOfPurpose=1710]="FacetOfPurpose",t[t.FacetOfRuin=1711]="FacetOfRuin",t[t.FacetOfSacrifice=1712]="FacetOfSacrifice",u;var t})()},8333:(ht,at,_)=>{_.d(at,{O:()=>u});var u=(()=>{return(t=u||(u={}))[t.CombatStyleMod=0]="CombatStyleMod",t[t.Stasis=1]="Stasis",t[t.Void=2]="Void",t[t.Solar=3]="Solar",t[t.Arc=4]="Arc",t[t.Strand=5]="Strand",t[t.Prismatic=6]="Prismatic",u;var t})()},4661:(ht,at,_)=>{_.d(at,{V:()=>R});var u=_(4859),t=_(9549),g=_(4385),I=_(3238),M=_(7314),wt=_(4144),ot=_(455),y=_(2143),b=_(3546),Et=_(266),Mt=_(3162),vt=_(7392),gt=_(6308),Rt=_(8739),Nt=_(3683),x=_(3217),_t=_(811),st=_(6338),Y=_(7084),ct=_(5412),Ht=_(7009),Lt=_(1572),f=_(3848),C=_(7331),U=_(3267),E=_(4006),F=_(9814),J=_(4650);let R=(()=>{class c{}return c.\u0275fac=function(T){return new(T||c)},c.\u0275mod=J.oAB({type:c}),c.\u0275inj=J.cJS({imports:[u.ot,t.lN,g.LD,I.Ng,M.KP,wt.c,ot.rP,y.p0,b.QW,Et.AV,Mt.Cv,vt.Ps,gt.JX,Rt.TU,Nt.g0,x.Tx,_t.vV,st.ie,Y.To,ct.Is,Ht.ZX,Lt.Cq,f.Nh,C.Hi,U.SJ,E.UX,E.u5,F.o9,F.o9,E.UX,E.u5,u.ot,t.lN,g.LD,I.Ng,M.KP,wt.c,ot.rP,y.p0,b.QW,Et.AV,Mt.Cv,vt.Ps,gt.JX,Rt.TU,Nt.g0,x.Tx,_t.vV,st.ie,Y.To,ct.Is,Ht.ZX,Lt.Cq,f.Nh,C.Hi,U.SJ]}),c})()},6982:(ht,at,_)=>{_.d(at,{jG:()=>Ht,_1:()=>Lt});var u=_(5861),t=_(6471),g=_(3244),I=_(443),M=_(1043),wt=_(2340);const ot={1:[[2,1,0,11],[2,3,0,21],[2,1,1,21],[2,1,2,31]],2:[[4,0,0,12],[4,2,0,22],[4,0,1,22],[4,4,0,32],[4,0,2,32]],3:[[1,0,0,3],[1,2,0,13],[1,0,1,13],[1,4,0,23],[1,2,1,23],[1,0,2,23],[1,2,2,33]],4:[[3,1,0,14],[3,3,0,24],[3,1,1,24],[3,1,2,34]],5:[[0,1,0,5],[5,0,0,15],[0,3,0,15],[0,1,1,15],[5,2,0,25],[5,0,1,25],[0,3,1,25],[0,1,2,25],[5,4,0,35],[5,0,2,35],[0,3,2,35]],6:[[2,0,0,6],[2,2,0,16],[2,0,1,16],[2,4,0,26],[2,2,1,26],[2,0,2,26],[2,2,2,36],[2,0,3,36],[2,2,3,46]],7:[[4,1,0,17],[4,3,0,27],[4,1,1,27],[4,5,0,37],[4,1,2,37],[4,1,3,47]],8:[[1,1,0,8],[1,3,0,18],[1,1,1,18],[1,5,0,28],[1,3,1,28],[1,1,2,28],[1,3,2,38],[1,1,3,38]],9:[[3,0,0,9],[3,2,0,19],[3,0,1,19],[3,4,0,29],[3,2,1,29],[3,0,2,29],[3,2,2,39],[3,0,3,39],[3,2,3,49]],10:[[0,2,0,10],[0,0,1,10],[5,1,0,20],[0,4,0,20],[0,2,1,20],[0,0,2,20],[5,3,0,30],[5,1,1,30],[0,4,1,30],[0,2,2,30],[0,0,3,30],[5,5,0,40],[5,1,2,40],[0,2,3,40],[5,1,3,50]],11:[[2,1,0,11],[2,3,0,21],[2,1,1,21],[2,5,0,31],[2,3,1,31],[2,1,2,31],[2,3,2,41],[2,1,3,41]],12:[[4,0,0,12],[4,2,0,22],[4,0,1,22],[4,4,0,32],[4,2,1,32],[4,0,2,32],[4,2,2,42],[4,0,3,42],[4,2,3,52]],13:[[1,2,0,13],[1,0,1,13],[1,4,0,23],[1,2,1,23],[1,0,2,23],[1,4,1,33],[1,2,2,33],[1,0,3,33],[1,2,3,43]],14:[[3,1,0,14],[3,3,0,24],[3,1,1,24],[3,5,0,34],[3,3,1,34],[3,1,2,34],[3,3,2,44],[3,1,3,44]],15:[[5,0,0,15],[0,3,0,15],[0,1,1,15],[5,2,0,25],[0,5,0,25],[5,0,1,25],[0,3,1,25],[0,1,2,25],[5,4,0,35],[5,2,1,35],[5,0,2,35],[0,3,2,35],[0,1,3,35],[5,2,2,45],[5,0,3,45],[5,2,3,55]],16:[[2,2,0,16],[2,0,1,16],[2,4,0,26],[2,2,1,26],[2,0,2,26],[2,4,1,36],[2,2,2,36],[2,0,3,36],[2,2,3,46],[2,0,4,46]],17:[[4,1,0,17],[4,3,0,27],[4,1,1,27],[4,5,0,37],[4,3,1,37],[4,1,2,37],[4,3,2,47],[4,1,3,47],[4,1,4,57]],18:[[1,3,0,18],[1,1,1,18],[1,5,0,28],[1,3,1,28],[1,1,2,28],[1,3,2,38],[1,1,3,38],[1,1,4,48]],19:[[3,2,0,19],[3,0,1,19],[3,4,0,29],[3,2,1,29],[3,0,2,29],[3,4,1,39],[3,2,2,39],[3,0,3,39],[3,2,3,49],[3,0,4,49]],20:[[5,1,0,20],[0,4,0,20],[0,2,1,20],[0,0,2,20],[5,3,0,30],[5,1,1,30],[0,4,1,30],[0,2,2,30],[0,0,3,30],[5,5,0,40],[5,3,1,40],[5,1,2,40],[0,2,3,40],[0,0,4,40],[5,3,2,50],[5,1,3,50],[5,1,4,60]],21:[[2,3,0,21],[2,1,1,21],[2,5,0,31],[2,3,1,31],[2,1,2,31],[2,3,2,41],[2,1,3,41],[2,1,4,51]],22:[[4,2,0,22],[4,0,1,22],[4,4,0,32],[4,2,1,32],[4,0,2,32],[4,4,1,42],[4,2,2,42],[4,0,3,42],[4,2,3,52],[4,0,4,52]],23:[[1,4,0,23],[1,2,1,23],[1,0,2,23],[1,4,1,33],[1,2,2,33],[1,0,3,33],[1,2,3,43],[1,0,4,43]],24:[[3,3,0,24],[3,1,1,24],[3,5,0,34],[3,3,1,34],[3,1,2,34],[3,3,2,44],[3,1,3,44],[3,1,4,54]],25:[[5,2,0,25],[0,5,0,25],[5,0,1,25],[0,3,1,25],[0,1,2,25],[5,4,0,35],[5,2,1,35],[5,0,2,35],[0,3,2,35],[0,1,3,35],[5,4,1,45],[5,2,2,45],[5,0,3,45],[0,1,4,45],[5,2,3,55],[5,0,4,55]],26:[[2,4,0,26],[2,2,1,26],[2,0,2,26],[2,4,1,36],[2,2,2,36],[2,0,3,36],[2,2,3,46],[2,0,4,46],[2,0,5,56]],27:[[4,3,0,27],[4,1,1,27],[4,5,0,37],[4,3,1,37],[4,1,2,37],[4,3,2,47],[4,1,3,47],[4,1,4,57]],28:[[1,5,0,28],[1,3,1,28],[1,1,2,28],[1,3,2,38],[1,1,3,38],[1,1,4,48]],29:[[3,4,0,29],[3,2,1,29],[3,0,2,29],[3,4,1,39],[3,2,2,39],[3,0,3,39],[3,2,3,49],[3,0,4,49],[3,0,5,59]],30:[[5,3,0,30],[5,1,1,30],[0,4,1,30],[0,2,2,30],[0,0,3,30],[5,5,0,40],[5,3,1,40],[5,1,2,40],[0,2,3,40],[0,0,4,40],[5,3,2,50],[5,1,3,50],[0,0,5,50],[5,1,4,60]],31:[[2,5,0,31],[2,3,1,31],[2,1,2,31],[2,3,2,41],[2,1,3,41],[2,1,4,51]],32:[[4,4,0,32],[4,2,1,32],[4,0,2,32],[4,4,1,42],[4,2,2,42],[4,0,3,42],[4,2,3,52],[4,0,4,52],[4,0,5,62]],33:[[1,4,1,33],[1,2,2,33],[1,0,3,33],[1,2,3,43],[1,0,4,43],[1,0,5,53]],34:[[3,5,0,34],[3,3,1,34],[3,1,2,34],[3,3,2,44],[3,1,3,44],[3,1,4,54]],35:[[5,4,0,35],[5,2,1,35],[5,0,2,35],[0,3,2,35],[0,1,3,35],[5,4,1,45],[5,2,2,45],[5,0,3,45],[0,1,4,45],[5,2,3,55],[5,0,4,55],[5,0,5,65]],36:[[2,4,1,36],[2,2,2,36],[2,0,3,36],[2,2,3,46],[2,0,4,46],[2,0,5,56]],37:[[4,5,0,37],[4,3,1,37],[4,1,2,37],[4,3,2,47],[4,1,3,47],[4,1,4,57]],38:[[1,3,2,38],[1,1,3,38],[1,1,4,48]],39:[[3,4,1,39],[3,2,2,39],[3,0,3,39],[3,2,3,49],[3,0,4,49],[3,0,5,59]],40:[[5,5,0,40],[5,3,1,40],[5,1,2,40],[0,2,3,40],[0,0,4,40],[5,3,2,50],[5,1,3,50],[0,0,5,50],[5,1,4,60]],41:[[2,3,2,41],[2,1,3,41],[2,1,4,51]],42:[[4,4,1,42],[4,2,2,42],[4,0,3,42],[4,2,3,52],[4,0,4,52],[4,0,5,62]],43:[[1,2,3,43],[1,0,4,43],[1,0,5,53]],44:[[3,3,2,44],[3,1,3,44],[3,1,4,54]],45:[[5,4,1,45],[5,2,2,45],[5,0,3,45],[0,1,4,45],[5,2,3,55],[5,0,4,55],[5,0,5,65]],46:[[2,2,3,46],[2,0,4,46],[2,0,5,56]],47:[[4,3,2,47],[4,1,3,47],[4,1,4,57]],48:[[1,1,4,48]],49:[[3,2,3,49],[3,0,4,49],[3,0,5,59]],50:[[5,3,2,50],[5,1,3,50],[0,0,5,50],[5,1,4,60]],51:[[2,1,4,51]],52:[[4,2,3,52],[4,0,4,52],[4,0,5,62]],53:[[1,0,5,53]],54:[[3,1,4,54]],55:[[5,2,3,55],[5,0,4,55],[5,0,5,65]],56:[[2,0,5,56]],57:[[4,1,4,57]],58:[],59:[[3,0,5,59]],60:[[5,1,4,60]],61:[],62:[[4,0,5,62]],63:[],64:[],65:[[5,0,5,65]]},y={1:[[1,0,0,3],[0,1,0,5],[0,0,1,10]],2:[[1,0,0,3],[0,1,0,5],[0,0,1,10]],3:[[1,0,0,3],[0,1,0,5],[0,0,1,10]],4:[[0,1,0,5],[2,0,0,6],[0,0,1,10]],5:[[0,1,0,5],[2,0,0,6],[0,0,1,10]],6:[[2,0,0,6],[1,1,0,8],[0,2,0,10],[0,0,1,10]],7:[[1,1,0,8],[3,0,0,9],[0,2,0,10],[0,0,1,10]],8:[[1,1,0,8],[3,0,0,9],[0,2,0,10],[0,0,1,10]],9:[[3,0,0,9],[0,2,0,10],[0,0,1,10],[2,1,0,11]],10:[[0,2,0,10],[0,0,1,10],[2,1,0,11],[4,0,0,12]],11:[[2,1,0,11],[4,0,0,12],[1,2,0,13],[1,0,1,13],[0,3,0,15],[0,1,1,15],[0,0,2,20]],12:[[4,0,0,12],[1,2,0,13],[1,0,1,13],[3,1,0,14],[0,3,0,15],[0,1,1,15],[0,0,2,20]],13:[[1,2,0,13],[1,0,1,13],[3,1,0,14],[5,0,0,15],[0,3,0,15],[0,1,1,15],[0,0,2,20]],14:[[3,1,0,14],[5,0,0,15],[0,3,0,15],[0,1,1,15],[2,2,0,16],[2,0,1,16],[0,0,2,20]],15:[[5,0,0,15],[0,3,0,15],[0,1,1,15],[2,2,0,16],[2,0,1,16],[4,1,0,17],[0,0,2,20]],16:[[2,2,0,16],[2,0,1,16],[4,1,0,17],[1,3,0,18],[1,1,1,18],[0,4,0,20],[0,2,1,20],[0,0,2,20]],17:[[4,1,0,17],[1,3,0,18],[1,1,1,18],[3,2,0,19],[3,0,1,19],[0,4,0,20],[0,2,1,20],[0,0,2,20]],18:[[1,1,1,18],[1,3,0,18],[3,2,0,19],[3,0,1,19],[5,1,0,20],[0,4,0,20],[0,2,1,20],[0,0,2,20]],19:[[3,2,0,19],[3,0,1,19],[5,1,0,20],[0,4,0,20],[0,2,1,20],[0,0,2,20],[2,3,0,21],[2,1,1,21]],20:[[5,1,0,20],[0,4,0,20],[0,2,1,20],[0,0,2,20],[2,3,0,21],[2,1,1,21],[4,2,0,22],[4,0,1,22]],21:[[2,3,0,21],[2,1,1,21],[4,2,0,22],[4,0,1,22],[1,4,0,23],[1,2,1,23],[1,0,2,23],[0,5,0,25],[0,3,1,25],[0,1,2,25],[0,0,3,30]],22:[[4,2,0,22],[4,0,1,22],[1,4,0,23],[1,2,1,23],[1,0,2,23],[3,3,0,24],[3,1,1,24],[0,5,0,25],[0,3,1,25],[0,1,2,25],[0,0,3,30]],23:[[1,4,0,23],[1,2,1,23],[1,0,2,23],[3,3,0,24],[3,1,1,24],[5,2,0,25],[0,5,0,25],[5,0,1,25],[0,3,1,25],[0,1,2,25],[0,0,3,30]],24:[[3,3,0,24],[3,1,1,24],[5,2,0,25],[0,5,0,25],[5,0,1,25],[0,3,1,25],[0,1,2,25],[2,4,0,26],[2,2,1,26],[2,0,2,26],[0,0,3,30]],25:[[5,2,0,25],[0,5,0,25],[5,0,1,25],[0,3,1,25],[0,1,2,25],[2,4,0,26],[2,2,1,26],[2,0,2,26],[4,3,0,27],[4,1,1,27],[0,0,3,30]],26:[[2,4,0,26],[2,2,1,26],[2,0,2,26],[4,3,0,27],[4,1,1,27],[1,5,0,28],[1,3,1,28],[1,1,2,28],[0,4,1,30],[0,2,2,30],[0,0,3,30]],27:[[4,3,0,27],[4,1,1,27],[1,5,0,28],[1,3,1,28],[1,1,2,28],[3,4,0,29],[3,2,1,29],[3,0,2,29],[0,4,1,30],[0,2,2,30],[0,0,3,30]],28:[[1,5,0,28],[1,3,1,28],[1,1,2,28],[3,4,0,29],[3,2,1,29],[3,0,2,29],[5,3,0,30],[5,1,1,30],[0,4,1,30],[0,2,2,30],[0,0,3,30]],29:[[3,4,0,29],[3,2,1,29],[3,0,2,29],[5,3,0,30],[5,1,1,30],[0,4,1,30],[0,2,2,30],[0,0,3,30],[2,5,0,31],[2,3,1,31],[2,1,2,31]],30:[[5,3,0,30],[5,1,1,30],[0,4,1,30],[0,2,2,30],[0,0,3,30],[2,5,0,31],[2,3,1,31],[2,1,2,31],[4,4,0,32],[4,2,1,32],[4,0,2,32]],31:[[2,5,0,31],[2,3,1,31],[2,1,2,31],[4,4,0,32],[4,2,1,32],[4,0,2,32],[1,4,1,33],[1,2,2,33],[1,0,3,33],[0,3,2,35],[0,1,3,35],[0,0,4,40]],32:[[4,4,0,32],[4,2,1,32],[4,0,2,32],[1,4,1,33],[1,2,2,33],[1,0,3,33],[3,5,0,34],[3,3,1,34],[3,1,2,34],[0,3,2,35],[0,1,3,35],[0,0,4,40]],33:[[1,4,1,33],[1,2,2,33],[1,0,3,33],[3,5,0,34],[3,3,1,34],[3,1,2,34],[5,4,0,35],[5,2,1,35],[5,0,2,35],[0,3,2,35],[0,1,3,35],[0,0,4,40]],34:[[3,5,0,34],[3,3,1,34],[3,1,2,34],[5,4,0,35],[5,2,1,35],[5,0,2,35],[0,3,2,35],[0,1,3,35],[2,4,1,36],[2,2,2,36],[2,0,3,36],[0,0,4,40]],35:[[5,4,0,35],[5,2,1,35],[5,0,2,35],[0,3,2,35],[0,1,3,35],[2,4,1,36],[2,2,2,36],[2,0,3,36],[4,5,0,37],[4,3,1,37],[4,1,2,37],[0,0,4,40]],36:[[2,4,1,36],[2,2,2,36],[2,0,3,36],[4,5,0,37],[4,3,1,37],[4,1,2,37],[1,3,2,38],[1,1,3,38],[0,2,3,40],[0,0,4,40]],37:[[4,5,0,37],[4,3,1,37],[4,1,2,37],[1,3,2,38],[1,1,3,38],[3,4,1,39],[3,2,2,39],[3,0,3,39],[0,2,3,40],[0,0,4,40]],38:[[1,3,2,38],[1,1,3,38],[3,4,1,39],[3,2,2,39],[3,0,3,39],[5,5,0,40],[5,3,1,40],[5,1,2,40],[0,2,3,40],[0,0,4,40]],39:[[3,4,1,39],[3,2,2,39],[3,0,3,39],[5,5,0,40],[5,3,1,40],[5,1,2,40],[0,2,3,40],[0,0,4,40],[2,3,2,41],[2,1,3,41]],40:[[5,5,0,40],[5,3,1,40],[5,1,2,40],[0,2,3,40],[0,0,4,40],[2,3,2,41],[2,1,3,41],[4,4,1,42],[4,2,2,42],[4,0,3,42]],41:[[2,3,2,41],[2,1,3,41],[4,4,1,42],[4,2,2,42],[4,0,3,42],[1,2,3,43],[1,0,4,43],[0,1,4,45],[0,0,5,50]],42:[[4,4,1,42],[4,2,2,42],[4,0,3,42],[1,2,3,43],[1,0,4,43],[3,3,2,44],[3,1,3,44],[0,1,4,45],[0,0,5,50]],43:[[1,2,3,43],[1,0,4,43],[3,3,2,44],[3,1,3,44],[5,4,1,45],[5,2,2,45],[5,0,3,45],[0,1,4,45],[0,0,5,50]],44:[[3,3,2,44],[3,1,3,44],[5,4,1,45],[5,2,2,45],[5,0,3,45],[0,1,4,45],[2,2,3,46],[2,0,4,46],[0,0,5,50]],45:[[5,4,1,45],[5,2,2,45],[5,0,3,45],[0,1,4,45],[2,2,3,46],[2,0,4,46],[4,3,2,47],[4,1,3,47],[0,0,5,50]],46:[[2,2,3,46],[2,0,4,46],[4,3,2,47],[4,1,3,47],[1,1,4,48],[0,0,5,50]],47:[[4,3,2,47],[4,1,3,47],[1,1,4,48],[3,2,3,49],[3,0,4,49],[0,0,5,50]],48:[[1,1,4,48],[3,2,3,49],[3,0,4,49],[5,3,2,50],[5,1,3,50],[0,0,5,50]],49:[[3,2,3,49],[3,0,4,49],[5,3,2,50],[5,1,3,50],[0,0,5,50],[2,1,4,51]],50:[[5,3,2,50],[5,1,3,50],[0,0,5,50],[2,1,4,51],[4,2,3,52],[4,0,4,52]],51:[[2,1,4,51],[4,2,3,52],[4,0,4,52],[1,0,5,53]],52:[[4,2,3,52],[4,0,4,52],[1,0,5,53],[3,1,4,54]],53:[[1,0,5,53],[3,1,4,54],[5,2,3,55],[5,0,4,55]],54:[[3,1,4,54],[5,2,3,55],[5,0,4,55],[2,0,5,56]],55:[[5,2,3,55],[5,0,4,55],[2,0,5,56],[4,1,4,57]],56:[[2,0,5,56],[4,1,4,57]],57:[[4,1,4,57],[3,0,5,59]],58:[[3,0,5,59],[5,1,4,60]],59:[[3,0,5,59],[5,1,4,60]],60:[[5,1,4,60],[4,0,5,62]],61:[[4,0,5,62]],62:[[4,0,5,62]],63:[[5,0,5,65]],64:[[5,0,5,65]],65:[[5,0,5,65]]};var b=_(1650);function Mt(f){return Object.prototype.hasOwnProperty.call(f,"armor")&&Object.prototype.hasOwnProperty.call(f,"usedArtifice")&&Object.prototype.hasOwnProperty.call(f,"usedMods")&&Object.prototype.hasOwnProperty.call(f,"statsWithMods")&&Object.prototype.hasOwnProperty.call(f,"classItemPerk")}function vt(f,C,U,E,F,J,R){var c=f.selectedExotics[0]||0;let D=C.slice();if((!E.isExotic||!f.assumeEveryExoticIsArtifice)&&(c<=0||E.hash!=c)&&f.armorPerks[t.y.ArmorSlotHelmet].fixed&&f.armorPerks[t.y.ArmorSlotHelmet].value!=M.Pn.None&&f.armorPerks[t.y.ArmorSlotHelmet].value!=E.perk)return{valid:!1};if((!F.isExotic||!f.assumeEveryExoticIsArtifice)&&(c<=0||F.hash!=c)&&f.armorPerks[t.y.ArmorSlotGauntlet].fixed&&f.armorPerks[t.y.ArmorSlotGauntlet].value!=M.Pn.None&&f.armorPerks[t.y.ArmorSlotGauntlet].value!=F.perk)return{valid:!1};if((!J.isExotic||!f.assumeEveryExoticIsArtifice)&&(c<=0||J.hash!=c)&&f.armorPerks[t.y.ArmorSlotChest].fixed&&f.armorPerks[t.y.ArmorSlotChest].value!=M.Pn.None&&f.armorPerks[t.y.ArmorSlotChest].value!=J.perk)return{valid:!1};if((!R.isExotic||!f.assumeEveryExoticIsArtifice)&&(c<=0||R.hash!=c)&&f.armorPerks[t.y.ArmorSlotLegs].fixed&&f.armorPerks[t.y.ArmorSlotLegs].value!=M.Pn.None&&f.armorPerks[t.y.ArmorSlotLegs].value!=R.perk)return{valid:!1};if(f.armorPerks[t.y.ArmorSlotClass].fixed&&f.armorPerks[t.y.ArmorSlotClass].value!=M.Pn.None&&!U.has(f.armorPerks[t.y.ArmorSlotClass].value))return{valid:!1};D[E.perk]--,D[F.perk]--,D[J.perk]--,D[R.perk]--,c>0&&(E.hash==c?D[f.armorPerks[E.slot].value]--:F.hash==c?D[f.armorPerks[F.slot].value]--:J.hash==c?D[f.armorPerks[J.slot].value]--:R.hash==c&&D[f.armorPerks[R.slot].value]--);let T=0;for(let H=1;HC.minimumStatTiers[h].value||!C.allowExactStats&&Z[h]/10>=C.minimumStatTiers[h].value+1))return null;let ut=K.filter(h=>(!h.isExotic||!C.ignoreExistingExoticArtificeSlots)&&h.perk==M.Pn.SlotArtifice||C.assumeEveryLegendaryIsArtifice&&!h.isExotic||C.assumeEveryExoticIsArtifice&&h.isExotic).length;T&&(ut+=1);const it=[Math.max(0,10*C.minimumStatTiers[0].value-Z[0]),Math.max(0,10*C.minimumStatTiers[1].value-Z[1]),Math.max(0,10*C.minimumStatTiers[2].value-Z[2]),Math.max(0,10*C.minimumStatTiers[3].value-Z[3]),Math.max(0,10*C.minimumStatTiers[4].value-Z[4]),Math.max(0,10*C.minimumStatTiers[5].value-Z[5])];if(C.onlyShowResultsWithNoWastedStats)for(let h=0;h<6;h++){const L=10-Z[h]%10;it[h]=Math.max(it[h],L<10?L:0)}const Zt=[0,0,0,0,0,0];if(C.tryLimitWastedStats)for(let h=0;h<6;h++)0==it[h]&&!C.minimumStatTiers[h].fixed&&Z[h]<100&&Z[h]%10>0&&(Zt[h]=10-Z[h]%10);const xt=Zt.reduce((h,L)=>h+L,0),It=it[0]+it[1]+it[2]+it[3]+it[4]+it[5];if(It>50+3*ut)return null;let ft;if(ft=0==It&&0==xt?[]:ct(C,it,Zt,ut,c,C.modOptimizationStrategy),null==ft)return null;const w=[Math.max(0,100-Z[0]),Math.max(0,100-Z[1]),Math.max(0,100-Z[2]),Math.max(0,100-Z[3]),Math.max(0,100-Z[4]),Math.max(0,100-Z[5])];let P=[],N=[];for(let h=0;h<4;h++)for(let L=h+1;L<5;L++)for(let z=L+1;z<6;z++){let j=it.slice();if(j[h]=w[h],j[L]=w[L],j[z]=w[z],j[0]+j[1]+j[2]+j[3]+j[4]+j[5]<=65){P.push([h,L,z]);for(let Ot=z+1;Ot<6;Ot++){let bt=j.slice();bt[Ot]=w[Ot],bt[0]+bt[1]+bt[2]+bt[3]+bt[4]+bt[5]<=65&&N.push([h,L,z,Ot])}}}if(P.length>0){for(let h of P){const L=it.slice();for(let j of h)L[j]=w[j];null!=ct(C,L,[0,0,0,0,0,0],ut,c,b.w.None)&&f.statCombo3x100.add((1<=C.minimumStatTiers[h].value&&z>f.maximumPossibleTiers[h]/10&&!(Z[h]>=10*z);z--){const j=10-Z[h]%10;if(it[h]=Math.max(j<10?j:0,10*z-Z[h]),null!=ct(C,it,[0,0,0,0,0,0],ut,c,b.w.None)){f.maximumPossibleTiers[h]=10*z;break}}it[h]=L}if(D)return[];const et=ft.filter(h=>h%3==0),rt=ft.filter(h=>h%3!=0);for(let h of ft)Z[Math.floor((h-1)/3)]+=M.K9[h][1];const X=Lt(Z);return C.onlyShowResultsWithNoWastedStats&&X>0?null:function Et(f,C,U,E,F,J,R,c){return{armor:[f.id,C.id,U.id,E.id],usedArtifice:F,usedMods:J,classItemPerk:M.Pn.None,statsWithMods:R,statsWithoutMods:c}}(U,E,F,J,et,rt,Z,B)}function ct(f,C,U,E,F,J=b.w.None){const R=C[0]+C[1]+C[2]+C[3]+C[4]+C[5];if(R>65)return null;const c=f.onlyShowResultsWithNoWastedStats?ot:y,D=[c[C[0]]||[[0,0,0,0]],c[C[1]]||[[0,0,0,0]],c[C[2]]||[[0,0,0,0]],c[C[3]]||[[0,0,0,0]],c[C[4]]||[[0,0,0,0]],c[C[5]]||[[0,0,0,0]]];if(f.allowExactStats)for(let w=0;w<6;w++)f.minimumStatTiers[w].fixed&&C[w]>0&&(D[w]=ot[C[w]]||[[0,0,0,0]],D[w]=D[w].filter(P=>P[3]-C[w]<10));for(let w=0;w0){const P=c[U[w]].filter(N=>0==N[2]&&N[3]%10>0&&(U[w]+N[3])%10N+et[1]+et[2]:J==b.w.ReduceUsedModPoints?(P,N,et)=>P+ut[et]*N[1]+it[et]*N[2]:(P,N)=>P+N[3],0)}function xt(w,P=!1){const N=w.reduce((rt,X,h)=>[rt[0]+X[0],rt[1]+X[1],rt[2]+X[2],rt[3]+X[3]-C[h]],[0,0,0,0]);if(Zt(w)>K||N[0]>E||N[1]+N[2]>H||N[3]<0)return!1;if(!P||5==Z)return!0;let et=[];for(let rt=0;rtH)return!1;w.sort((N,et)=>et-N);for(let N=0;N0&&J!=b.w.None;t:for(let w of D[0])if(xt([w]))for(let P of D[1])if(xt([w,P]))for(let N of D[2])if(xt([w,P,N])&&!(It&&Zt([w,P,N])>=K))for(let et of D[3])if(xt([w,P,N,et])&&!(It&&Zt([w,P,N,et])>=K))for(let rt of D[4])if(xt([w,P,N,et,rt])&&!(It&&Zt([w,P,N,et,rt])>=K))e:for(let X of D[5]){let h=[w,P,N,et,rt,X];if(!xt(h,!0))continue;for(let z=0;z<6;z++)if(U[z]>0&&0==h[z][3]&&null!=k)continue e;let L=Zt(h);if(L100?f[M.WB.Mobility]-100:f[M.WB.Mobility]%10)+(f[M.WB.Resilience]>100?f[M.WB.Resilience]-100:f[M.WB.Resilience]%10)+(f[M.WB.Recovery]>100?f[M.WB.Recovery]-100:f[M.WB.Recovery]%10)+(f[M.WB.Discipline]>100?f[M.WB.Discipline]-100:f[M.WB.Discipline]%10)+(f[M.WB.Intellect]>100?f[M.WB.Intellect]-100:f[M.WB.Intellect]%10)+(f[M.WB.Strength]>100?f[M.WB.Strength]-100:f[M.WB.Strength]%10)}addEventListener("message",function(){var f=(0,u.Z)(function*({data:C}){const U=C.threadSplit,E=C.config;let F=C.selectedExotics,J=C.items;if(null==U||null==E||null==J)return;const R=Date.now();console.debug("START RESULTS BUILDER 2"),console.time(`total #${U.current}`),E.onlyShowResultsWithNoWastedStats=wt.N.featureFlags.enableZeroWaste&&E.onlyShowResultsWithNoWastedStats,wt.N.featureFlags.enableModslotLimitation||(E.maximumModSlots[t.y.ArmorSlotHelmet].value=5,E.maximumModSlots[t.y.ArmorSlotGauntlet].value=5,E.maximumModSlots[t.y.ArmorSlotChest].value=5,E.maximumModSlots[t.y.ArmorSlotLegs].value=5,E.maximumModSlots[t.y.ArmorSlotClass].value=5),console.log("Using config",C.config);let c=J.filter(W=>W.slot==t.y.ArmorSlotHelmet).filter(W=>!E.useFotlArmor||[199733460,2545426109,3224066584].indexOf(W.hash)>-1),D=J.filter(W=>W.slot==t.y.ArmorSlotGauntlet),T=J.filter(W=>W.slot==t.y.ArmorSlotChest),k=J.filter(W=>W.slot==t.y.ArmorSlotLegs);if(U.count>1){var K=[[c,c.length],[D,D.length],[T,T.length],[k,k.length]].sort((W,Ft)=>Ft[1]-W[1])[0][0],H=Math.round(K.length/U.count),Z=H*U.current,B=Z+H;U.current==U.count-1&&(B=K.length),K.splice(B),K.splice(0,Z)}let ut=J.filter(W=>W.slot==t.y.ArmorSlotClass),it=ut.filter(W=>W.isExotic).length,Zt=ut.length-it,xt=new Set(ut.filter(W=>!W.isExotic).map(W=>W.perk)),It=new Set(ut.filter(W=>W.isExotic).map(W=>W.perk));Zt>0&&(E.assumeEveryLegendaryIsArtifice||E.assumeClassItemIsArtifice)&&xt.add(M.Pn.SlotArtifice),it>0&&E.assumeEveryExoticIsArtifice&&It.add(M.Pn.SlotArtifice),console.debug("items",JSON.stringify({helmets:c.length,gauntlets:D.length,chests:T.length,legs:k.length,availableClassItemTypes:xt}));const ft={maximumPossibleTiers:[0,0,0,0,0,0],statCombo3x100:new Set,statCombo4x100:new Set},w=function gt(f){const C=[0,0,0,0,0,0];for(const E of f.enabledMods)for(const F of I.F[E].bonus)C[F.stat==M.AR.ClassAbilityRegenerationStat?[1,0,2][f.characterClass]:F.stat]+=F.value;return C}(E),P=function Rt(f){let C=[];for(let U=0;UU>0).sort((U,E)=>E-U)}(E),et=F.length<=1,rt=xt.has(M.Pn.SlotArtifice),X=It.has(M.Pn.SlotArtifice),h=E.selectedExotics.indexOf(g.dM)>-1,L=ut.sort((W,Ft)=>W.masterworked?-1:1).find(W=>W.isExotic)||null,z=!!L&&E.selectedExotics.indexOf(L.hash)>-1;console.log("hasArtificeClassItem",rt);let j=[],Ut=0,Ot=0,bt=0,qt=!1,Yt=function _t(f,C,U,E){let F=0;const J=f.filter(Z=>Z.isExotic).length,R=f.length-J,c=C.filter(Z=>Z.isExotic).length,D=C.length-c,T=U.filter(Z=>Z.isExotic).length,k=U.length-T,K=E.filter(Z=>Z.isExotic).length,H=E.length-K;return F+=J*D*k*H,F+=R*c*k*H,F+=R*D*T*H,F+=R*D*k*K,F+=R*D*k*H,F}(c,D,T,k),Wt=0,Tt=0;console.log("estimatedCalculations",Yt);let ie=Yt>=1e6?125:75;console.time(`tm #${U.current}`);for(let[W,Ft,Xt,jt]of function*x(f,C,U,E,F,J){for(let R of f)for(let c of C)if(!(F&&R.isExotic&&c.isExotic))for(let D of U)if(!F||!R.isExotic&&!c.isExotic||!D.isExotic)for(let T of E)F&&(R.isExotic||c.isExotic||D.isExotic)&&T.isExotic||J&&!(R.isExotic||c.isExotic||D.isExotic||T.isExotic)||(yield[R,c,D,T])}(c,D,T,k,et,h)){Wt++;const Bt=vt(E,P,xt,W,Ft,Xt,jt);if(!Bt.valid)continue;const me=!Bt.requiredClassItemType||Bt.requiredClassItemType==M.Pn.SlotArtifice,mt=W.isExotic||Ft.isExotic||Xt.isExotic||jt.isExotic,Vt=Y(ft,E,W,Ft,Xt,jt,w,N,qt,(rt||!mt&&X&&!E.ignoreExistingExoticArtificeSlots)&&me,z);null!=Vt&&(bt++,Mt(Vt)&&(Vt.classItemPerk=Bt.requiredClassItemType||(rt?M.Pn.SlotArtifice:M.Pn.None),!mt&&L&&z&&Vt.armor.push(L.id),j.push(Vt),Ut++,Ot++,qt=qt||E.limitParsedResults&&Ot>=3e4/U.count||Ot>=1e6/U.count)),bt%5e3==0&&Tt+ie=5e3&&(postMessage({runtime:ft,results:j,done:!1,checkedCalculations:Wt,estimatedCalculations:Yt}),j=[],Ut=0)}console.timeEnd(`tm #${U.current}`),console.timeEnd(`total #${U.current}`),postMessage({runtime:ft,results:j,done:!0,checkedCalculations:Wt,estimatedCalculations:Yt,stats:{permutationCount:bt,itemCount:J.length-ut.length,totalTime:Date.now()-R}})});return function(C){return f.apply(this,arguments)}}())},2340:(ht,at,_)=>{_.d(at,{N:()=>u});const u={version:"2.6.2",revision:"176899c",production:!0,beta:!1,canary:!1,apiKey:"9415df8eff46408aa9c0d51e4d69b94f",clientId:"37252",client_secret:"KnVcJPWr7C5y0loOfBoKSyQ-vWXR0JICrgb1aJLsLgg",offlineMode:!1,featureFlags:{enableModslotLimitation:!0,enableZeroWaste:!0,enableGuardianGamesFeatures:!1}}},1379:(ht,at,_)=>{var u=_(1481),t=_(4650),g=_(2340),I=_(6895),M=_(5829),wt=_(3683),ot=_(6630),y=_(5861),b=_(6831),Et=_(529),Mt=_(591);let vt=(()=>{class n{constructor(){this.__status={calculatingResults:!1,calculatingPermutations:!1,updatingResultsTable:!1,updatingInventory:!1,updatingManifest:!1,updatingVendors:!1,apiError:!1,authError:!1},this._status=new Mt.X(this.__status),this.status=this._status.asObservable()}getStatus(){return this.__status}modifyStatus(e){e(this.__status),console.log("modifyStatus",this.__status),this._status.next(this.__status)}setApiError(){this.__status.apiError||this.modifyStatus(e=>{e.apiError=!0})}clearApiError(){!this.__status.apiError||this.modifyStatus(e=>{e.apiError=!1})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),gt=(()=>{class n{constructor(e,o,a){this.http=e,this.router=o,this.status=a,this._logoutEvent=new b.t(1),this.logoutEvent=this._logoutEvent.asObservable()}get refreshTokenExpired(){return this.refreshTokenExpiringAt (this.lastRefresh + timing)":Date.now()>e.lastRefresh+18e5}),!(e.refreshToken&&Date.now()e.lastRefresh+18e5)||(yield e.generateTokens(!0))})()}getCurrentMembershipData(){var e=this;return(0,y.Z)(function*(){const o=JSON.parse(localStorage.getItem("auth-membershipInfo")||"null");if(null==o){const a=e.getCurrentMembershipData();return localStorage.setItem("auth-membershipInfo",JSON.stringify(a)),a}return o})()}generateTokens(e=!1){var o=this;return(0,y.Z)(function*(){console.info("Generate auth tokens","refresh based on refresh_token:",e);const a=g.N.clientId,s=g.N.client_secret;let p=`grant_type=authorization_code&code=${o.authCode}&client_id=${a}&client_secret=${s}`;return e&&(p=`grant_type=refresh_token&refresh_token=${o.refreshToken}&client_id=${a}&client_secret=${s}`),yield o.http.post("https://www.bungie.net/Platform/App/OAuth/Token/",p,{headers:{"Content-Type":"application/x-www-form-urlencoded","X-API-Key":g.N.apiKey}}).toPromise().then(A=>(console.log("generateTokens",A),o.accessToken=A.access_token,o.refreshToken=A.refresh_token,o.refreshTokenExpiringAt=Date.now()+1e3*A.refresh_expires_in-1e4,o.lastRefresh=Date.now(),o.status.modifyStatus(m=>m.authError=!1),!0)).catch(function(){var A=(0,y.Z)(function*(m){return console.log({err:m}),o.status.modifyStatus(S=>S.authError=!0),!1});return function(m){return A.apply(this,arguments)}}())})()}isAuthenticated(){return!!this.accessToken}get authCode(){return localStorage.getItem("code")}set authCode(e){e?(console.info("Setting new auth code"),localStorage.setItem("code",""+e)):(console.info("Clearing auth code"),localStorage.removeItem("code"))}get accessToken(){return localStorage.getItem("accessToken")}set accessToken(e){e?(console.info("Setting new access token"),localStorage.setItem("accessToken",""+e)):(console.info("Clearing access token"),localStorage.removeItem("accessToken"))}get refreshToken(){return localStorage.getItem("refreshToken")}set refreshToken(e){e?(console.info("Setting new refresh token"),localStorage.setItem("refreshToken",""+e)):(console.info("Clearing refresh token"),localStorage.removeItem("refreshToken"))}get refreshTokenExpiringAt(){let e=localStorage.getItem("refreshTokenExpiringAt")||"0";return e?Number.parseInt(e):0}set refreshTokenExpiringAt(e){e?(console.info("Setting new refresh token"),localStorage.setItem("refreshTokenExpiringAt",""+e)):(console.info("Clearing refresh token"),localStorage.removeItem("refreshTokenExpiringAt"))}get lastRefresh(){let e=localStorage.getItem("lastRefresh")||"0";return e?Number.parseInt(e):0}set lastRefresh(e){e?localStorage.setItem("lastRefresh",e.toString()):localStorage.removeItem("lastRefresh")}clearManifestInfo(){localStorage.removeItem("LastArmorUpdate"),localStorage.removeItem("LastManifestUpdate")}clearLoginInfo(){this.lastRefresh=null,this.refreshTokenExpiringAt=null,this.authCode=null,this.accessToken=null,this.refreshToken=null}logout(){var e=this;return(0,y.Z)(function*(){if(g.N.offlineMode)console.debug("Offline mode, skipping logout");else try{e._logoutEvent.next(null),e.clearManifestInfo(),e.clearLoginInfo()}finally{yield e.router.navigate(["login"])}})()}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Et.eN),t.LFG(ot.F0),t.LFG(vt))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Rt=(()=>{class n{constructor(e,o,a){this.activatedRoute=e,this.router=o,this.loginService=a}ngOnInit(){var e=this;this.activatedRoute.queryParams.subscribe(function(){var o=(0,y.Z)(function*(a){let s=a.code;window.location.search.indexOf("?code=")>-1&&(s=window.location.search.substr(6)),console.info({code:s}),s&&(e.loginService.authCode=s,console.info("Generate tokens with the new code"),yield e.loginService.generateTokens(),console.info("Now navigate to /"),yield e.router.navigate(["/"]))});return function(a){return o.apply(this,arguments)}}())}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(ot.gz),t.Y36(ot.F0),t.Y36(gt))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-handle-bungie-login"]],decls:0,vars:0,template:function(e,o){}}),n})();function Nt(n,i){1&n&&(t.TgZ(0,"mat-toolbar",5),t._UZ(1,"span",2),t._uU(2," You are using the "),t.TgZ(3,"b"),t._uU(4,"\xa0unstable\xa0"),t.qZA(),t._uU(5," canary build. Some features may be unfinished or vanish. Please report any issues you encounter. "),t._UZ(6,"span",2),t.qZA())}let x=(()=>{class n{constructor(){this.title="D2ArmorPicker",this.is_beta=g.N.beta,this.is_canary=g.N.canary,console.log("PRODUCTION?",g.N.production)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-root"]],decls:9,vars:1,consts:[["class","canary-warning","color","primary",4,"ngIf"],["color","accent",1,"bungie-day",2,"display","none"],[1,"header-spacer"],["fxHide.xs","","src","../assets/bungie-game2give-2024.jpg",1,"donordrive"],["href","https://bungiefoundation.donordrive.com/participant/25284","target","_blank","title","Support the Bungie Foundation!"],["color","primary",1,"canary-warning"]],template:function(e,o){1&e&&(t.YNc(0,Nt,7,0,"mat-toolbar",0),t.TgZ(1,"mat-toolbar",1),t._UZ(2,"span",2)(3,"img",3),t.TgZ(4,"a",4),t._uU(5," Please support us at the Bungie Game2Give 2024 \u2764 "),t.qZA(),t._UZ(6,"span",2),t.qZA(),t._UZ(7,"app-handle-bungie-login")(8,"router-outlet")),2&e&&t.Q6J("ngIf",o.is_canary)},dependencies:[I.O5,M.b8,wt.Ye,ot.lC,Rt],styles:[".bungie-day[_ngcontent-%COMP%], .canary-warning[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content;position:relative;max-width:100vw;word-break:break-all}.canary-warning[_ngcontent-%COMP%]{font-size:11pt}.bungie-day[_ngcontent-%COMP%] img.donordrive[_ngcontent-%COMP%]{height:30px;margin-left:2px;margin-right:2px}.bungie-day[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .bungie-day[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{color:#fff}.header-spacer[_ngcontent-%COMP%]{flex:1 1 auto}"]}),n})();var _t=_(1576),st=_(4859),Y=_(3546),ct=_(7084);let Ht=(()=>{class n{constructor(){}startLogin(){window.location.href=`https://www.bungie.net/en/OAuth/Authorize?client_id=${g.N.clientId}&response_type=code&reauth=true`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-login"]],decls:76,vars:0,consts:[["mat-card-avatar","",1,"example-header-image"],["href","https://ko-fi.com/mijago","target","_blank"],["href","https://github.com/Mijago/D2ArmorPicker","target","_blank"],["color","primary","mat-raised-button","",3,"click"],[1,"mat-elevation-z11"],["src","assets/info/statselection.png",1,"image-example"],["src","assets/resultOverviewWithFlex.png",1,"image-example"],["src","assets/info/whattodonow.png",1,"image-example"],["src","assets/info/armorClustering.png",1,"image-example"],["fxLayoutGap","10px","fxLayout","row",1,"armor-image-container"],["src","assets/info/cluster-example/img.png"],["src","assets/info/cluster-example/img_1.png"],["src","assets/info/cluster-example/img_2.png"]],template:function(e,o){1&e&&(t.TgZ(0,"mat-card")(1,"mat-card-header"),t._UZ(2,"div",0),t.TgZ(3,"mat-card-title"),t._uU(4,"Destiny 2 Armor Picker"),t.qZA(),t.TgZ(5,"mat-card-subtitle"),t._uU(6,"A simple armor min-max tool by Mijago."),t.qZA()(),t.TgZ(7,"mat-card-content")(8,"p"),t._uU(9," This tool allows you to select the optimal armor from your inventory and vault to satisfy your stat needs. It also tells you which stat mods you have to use! "),t._UZ(10,"br")(11,"br"),t._uU(12," You have to log in to enable this tool to grab your armor from the API."),t._UZ(13,"br"),t._uU(14," If you like my tools and want to support me, head to "),t.TgZ(15,"a",1),t._uU(16,"ko-fi.com"),t.qZA(),t._uU(17," and buy me a coffee! \u2764 "),t._UZ(18,"br"),t._uU(19," If you found a bug or have a feature request, please open an issue "),t.TgZ(20,"a",2),t._uU(21,"in the Github Repository"),t.qZA(),t._uU(22,"! "),t.qZA(),t.TgZ(23,"p"),t._uU(24," D2ArmorPicker uses the Bungie.net api and it's OAuth authorization. You log in on an official Bungie.net page and D2ArmorPicker receives a temporary login token from Bungie. That means it does not receive your credentials. "),t.qZA()(),t.TgZ(25,"mat-card-actions")(26,"button",3),t.NdJ("click",function(){return o.startLogin()}),t._uU(27,"Login"),t.qZA()()(),t.TgZ(28,"mat-card")(29,"mat-card-title"),t._uU(30," Examples "),t.qZA(),t.TgZ(31,"mat-card-subtitle"),t._uU(32,"Some examples to show what D2ArmorPicker can do."),t.qZA(),t.TgZ(33,"mat-card-content")(34,"mat-accordion")(35,"mat-expansion-panel",4)(36,"mat-expansion-panel-header")(37,"mat-panel-title"),t._uU(38," Stat Selection "),t.qZA(),t.TgZ(39,"mat-panel-description"),t._uU(40," The heart of this tool. "),t.qZA()(),t.TgZ(41,"p"),t._uU(42," First, you are able to select the stats you want. The tool will automatically parse all your armor (including your vault and your postmaster), and then show you which stat selections are even possible with your current gear. The tool also shows you all possible loadouts with three or four stats at 100! "),t._UZ(43,"img",5)(44,"br")(45,"br"),t._uU(46," There are also additional settings. You can add stasis fragments and negative and positive stat mods to your builds. Also, you can select 0-waste builds (so only flat numbers). D2ArmorPicker will also add stat mods to reduce wasted stats wherever possible! "),t.qZA()(),t.TgZ(47,"mat-expansion-panel",4)(48,"mat-expansion-panel-header")(49,"mat-panel-title"),t._uU(50," Result Display "),t.qZA(),t.TgZ(51,"mat-panel-description"),t._uU(52," What you will get from this tool. "),t.qZA()(),t.TgZ(53,"p"),t._uU(54," D2ArmorPicker will show you a table with many results. You can sort and filter it, and then you click on one row to see which items are needed for your desired stats. "),t._UZ(55,"img",6)(56,"br")(57,"br"),t._uU(58," The page will also give you a detailed description of what you have to do in order to get to your desired build. The following screenshot shows one of the more detailed descriptions: "),t._UZ(59,"img",7),t.qZA()(),t.TgZ(60,"mat-expansion-panel",4)(61,"mat-expansion-panel-header")(62,"mat-panel-title"),t._uU(63," Armor Clustering "),t.qZA(),t.TgZ(64,"mat-panel-description"),t._uU(65," For the time when your vault is overflowing. "),t.qZA()(),t.TgZ(66,"div"),t._uU(67," Since version 2.0.14, D2ArmorPicker has an armor clustering feature. This means that it takes all your armor and groups it in 25 groups, where all items in one group has very similar stats. This can help you to clear out your vault, especially from duplicated armor rolls. "),t._UZ(68,"img",8)(69,"br")(70,"br"),t._uU(71," Take Cluster 1, for example. I copy the DIM-Query, enter it into DIM and see the following results: "),t.TgZ(72,"div",9),t._UZ(73,"img",10)(74,"img",11)(75,"img",12),t.qZA()()()()()())},dependencies:[_t.xw,_t.SQ,st.lW,Y.a8,Y.dk,Y.dn,Y.n5,Y.$j,Y.hq,Y.kc,ct.pp,ct.ib,ct.yz,ct.yK,ct.u4],styles:["mat-card[_ngcontent-%COMP%]{max-width:600px;margin-bottom:4px;margin-left:auto;margin-right:auto}button[_ngcontent-%COMP%]{position:absolute;right:10px;bottom:10px}a[_ngcontent-%COMP%]{color:#99afe3}a[_ngcontent-%COMP%]:visited{color:#7294dc}.example-header-image[_ngcontent-%COMP%]{background-image:url(superGreatLogo.5307f2494314b5e1.png);background-size:cover}.image-example[_ngcontent-%COMP%]{max-width:100%}.armor-image-container[_ngcontent-%COMP%]{overflow:auto}.armor-image-container[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{max-height:300px}"]}),n})();var Lt=_(8746);let f=(()=>{class n{constructor(e,o){this.auth=e,this.router=o}canActivate(e,o){return!!this.auth.isAuthenticated()||(this.router.navigate(["login"]),!1)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(gt),t.LFG(ot.F0))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),C=(()=>{class n{constructor(e,o){this.auth=e,this.router=o}canActivate(e,o){return!this.auth.isAuthenticated()||(this.router.navigate(["/"]),!1)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(gt),t.LFG(ot.F0))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var U=_(2289),E=_(4850),F=_(5154),J=_(13),R=_(8929),c=_(1043),D=_(3244),T=_(6471),k=_(8333),K=_(1650);function H(n){return{[c.WB.Mobility]:{fixed:!1,value:n},[c.WB.Resilience]:{fixed:!1,value:n},[c.WB.Recovery]:{fixed:!1,value:n},[c.WB.Discipline]:{fixed:!1,value:n},[c.WB.Intellect]:{fixed:!1,value:n},[c.WB.Strength]:{fixed:!1,value:n}}}class Z{constructor(){this.characterClass=0,this.addConstent1Resilience=!1,this.assumeClassItemIsArtifice=!1,this.assumeEveryLegendaryIsArtifice=!1,this.assumeEveryExoticIsArtifice=!1,this.disabledItems=[],this.minimumStatTiers={[c.WB.Mobility]:{fixed:!1,value:0},[c.WB.Resilience]:{fixed:!1,value:0},[c.WB.Recovery]:{fixed:!1,value:0},[c.WB.Discipline]:{fixed:!1,value:0},[c.WB.Intellect]:{fixed:!1,value:0},[c.WB.Strength]:{fixed:!1,value:0}},this.maximumStatMods=5,this.allowExactStats=!1,this.maximumModSlots={[T.y.ArmorSlotHelmet]:{fixed:!1,value:5},[T.y.ArmorSlotGauntlet]:{fixed:!1,value:5},[T.y.ArmorSlotChest]:{fixed:!1,value:5},[T.y.ArmorSlotLegs]:{fixed:!1,value:5},[T.y.ArmorSlotClass]:{fixed:!1,value:5},[T.y.ArmorSlotNone]:{fixed:!1,value:5}},this.putArtificeMods=!0,this.useFotlArmor=!0,this.allowBlueArmorPieces=!0,this.ignoreSunsetArmor=!1,this.includeVendorRolls=!1,this.includeCollectionRolls=!1,this.assumeLegendariesMasterworked=!0,this.assumeExoticsMasterworked=!0,this.assumeClassItemMasterworked=!0,this.onlyUseMasterworkedExotics=!1,this.onlyUseMasterworkedLegendaries=!1,this.modOptimizationStrategy=K.w.None,this.limitParsedResults=!0,this.tryLimitWastedStats=!1,this.onlyShowResultsWithNoWastedStats=!1,this.showWastedStatsColumn=!1,this.showPotentialTierColumn=!1,this.selectedModElement=k.O.Stasis,this.enabledMods=[],this.selectedExotics=[],this.ignoreExistingExoticArtificeSlots=!1,this.armorPerks={[T.y.ArmorSlotHelmet]:{fixed:!0,value:c.Pn.None},[T.y.ArmorSlotGauntlet]:{fixed:!0,value:c.Pn.None},[T.y.ArmorSlotChest]:{fixed:!0,value:c.Pn.None},[T.y.ArmorSlotLegs]:{fixed:!0,value:c.Pn.None},[T.y.ArmorSlotClass]:{fixed:!0,value:c.Pn.None},[T.y.ArmorSlotNone]:{fixed:!0,value:c.Pn.None}}}static buildEmptyConfiguration(){return{ignoreExistingExoticArtificeSlots:!1,allowExactStats:!1,enabledMods:[],disabledItems:[],addConstent1Resilience:!1,assumeEveryLegendaryIsArtifice:!1,assumeEveryExoticIsArtifice:!1,assumeClassItemIsArtifice:!1,putArtificeMods:!0,useFotlArmor:!1,maximumStatMods:D.Qj,onlyUseMasterworkedExotics:!1,onlyUseMasterworkedLegendaries:!1,ignoreSunsetArmor:!1,includeCollectionRolls:!1,includeVendorRolls:!1,allowBlueArmorPieces:!0,assumeLegendariesMasterworked:!0,assumeExoticsMasterworked:!0,assumeClassItemMasterworked:!0,limitParsedResults:!0,modOptimizationStrategy:K.w.None,tryLimitWastedStats:!1,onlyShowResultsWithNoWastedStats:!1,showWastedStatsColumn:!1,showPotentialTierColumn:!1,characterClass:0,selectedModElement:k.O.Stasis,selectedExotics:[],maximumModSlots:{[T.y.ArmorSlotHelmet]:{fixed:!1,value:5},[T.y.ArmorSlotGauntlet]:{fixed:!1,value:5},[T.y.ArmorSlotChest]:{fixed:!1,value:5},[T.y.ArmorSlotLegs]:{fixed:!1,value:5},[T.y.ArmorSlotClass]:{fixed:!1,value:5},[T.y.ArmorSlotNone]:{fixed:!1,value:5}},armorPerks:{[T.y.ArmorSlotHelmet]:{fixed:!0,value:c.Pn.None},[T.y.ArmorSlotGauntlet]:{fixed:!0,value:c.Pn.None},[T.y.ArmorSlotChest]:{fixed:!0,value:c.Pn.None},[T.y.ArmorSlotLegs]:{fixed:!0,value:c.Pn.None},[T.y.ArmorSlotClass]:{fixed:!0,value:c.Pn.None},[T.y.ArmorSlotNone]:{fixed:!0,value:c.Pn.None}},minimumStatTiers:H(0)}}}var B=(()=>{return(n=B||(B={}))[n.Inventory=0]="Inventory",n[n.Collections=1]="Collections",n[n.Vendor=2]="Vendor",B;var n})();function ut(n,i,e){if(!n)throw new Error("Missing manifest item");const o=Object.assign({id:-1,itemInstanceId:i,mayBeBugged:!1,masterworked:!1,energyLevel:0,mobility:0,resilience:0,recovery:0,discipline:0,intellect:0,strength:0,source:e,created_at:Date.now(),updated_at:Date.now()},n);return o.id=void 0,(2545426109==n.hash||199733460==n.hash||3224066584==n.hash)&&(o.slot=T.y.ArmorSlotHelmet),o}function it(n,i){n.mobility=i[2996146975],n.resilience=i[392767087],n.recovery=i[1943323491],n.discipline=i[1735777505],n.intellect=i[144602215],n.strength=i[4244567218]}function xt(n){return n.mobility+n.resilience+n.recovery+n.discipline+n.intellect+n.strength}var It=_(6982),ft=_(4682);let w=(()=>{class n extends ft.v{constructor(e){var o;super(),o=this,this.auth=e,this.version(this.verno).upgrade(function(){var a=(0,y.Z)(function*(s){o.auth.clearManifestInfo()});return function(s){return a.apply(this,arguments)}}()),this.auth.logoutEvent.subscribe(function(){var a=(0,y.Z)(function*(s){yield o.clearDatabase()});return function(s){return a.apply(this,arguments)}}())}initialize(){this.open(),this.auth.clearManifestInfo()}writeManifestArmor(e,o){var a=this;return(0,y.Z)(function*(){yield a.manifestArmor.clear(),yield a.manifestArmor.bulkPut(e),localStorage.setItem("LastManifestUpdate",Date.now().toString()),localStorage.setItem("last-manifest-db-name",a.manifestArmor.db.name),localStorage.setItem("last-manifest-revision",g.N.revision),localStorage.setItem("last-manifest-version",o)})()}clearDatabase(){var e=this;return(0,y.Z)(function*(){localStorage.removeItem("LastManifestUpdate"),localStorage.removeItem("LastArmorUpdate"),localStorage.removeItem("last-manifest-revision"),localStorage.removeItem("last-manifest-db-name"),yield e.inventoryArmor.clear()})()}resetDatabase(e=!0){var o=this;return(0,y.Z)(function*(){localStorage.removeItem("LastManifestUpdate"),localStorage.removeItem("last-manifest-revision"),localStorage.removeItem("last-manifest-db-name"),localStorage.removeItem("vendor-next-refresh-time"),localStorage.removeItem("LastArmorUpdate"),localStorage.removeItem("last-armor-db-name"),yield o.delete(),e&&o.initialize()})()}lastManifestUpdate(){const e=localStorage.getItem("LastManifestUpdate"),o=localStorage.getItem("last-manifest-version"),a=localStorage.getItem("last-manifest-revision"),s=localStorage.getItem("last-manifest-db-name");return e&&a&&s&&o&&localStorage.getItem("last-manifest-revision")===g.N.revision&&s===this.inventoryArmor.db.name?{updatedAt:parseInt(e),version:o}:void 0}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(gt))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var P=_(9598),N=_(443);const et={outputEncoding:"Base64"},rt={inputEncoding:"Base64",outputEncoding:"String"};let X=(()=>{class n{constructor(){this.__configuration=this.loadCurrentConfiguration(),this._configuration=new Mt.X(this.__configuration),this.configuration=this._configuration.asObservable(),this._storedConfigurations=new Mt.X(this.listSavedConfigurations()),this.storedConfigurations=this._storedConfigurations.asObservable()}get readonlyConfigurationSnapshot(){return Object.assign(this.__configuration,{})}modifyConfiguration(e){e(this.__configuration),this.saveCurrentConfiguration(this.__configuration)}saveConfiguration(e,o){let a=this.listSavedConfigurations(),s=this.listSavedConfigurations().map((d,p)=>[d,p]).filter(d=>d[0].name==e)[0];s&&a.splice(s[1],1),a.push({configuration:o,name:e,version:g.N.version}),a=a.sort((d,p)=>d.namep.name?1:0);const r=P.compress(JSON.stringify(a),et);localStorage.setItem("storedConfigurations",r),this._storedConfigurations.next(a)}doesSavedConfigurationExist(e){return this.listSavedConfigurations().filter(o=>o.name==e).length>0}loadSavedConfiguration(e){let o=this.listSavedConfigurations().filter(a=>a.name==e)[0];return!!o&&(this.saveCurrentConfiguration(o.configuration),!0)}checkAndFixOldSavedConfigurations(e){if(e.configuration=Object.assign(Z.buildEmptyConfiguration(),e.configuration),e.configuration.hasOwnProperty("minimumStatTier")){let o=e.configuration.minimumStatTier;e.configuration.minimumStatTiers[c.WB.Mobility].value=o[c.WB.Mobility],e.configuration.minimumStatTiers[c.WB.Resilience].value=o[c.WB.Resilience],e.configuration.minimumStatTiers[c.WB.Recovery].value=o[c.WB.Recovery],e.configuration.minimumStatTiers[c.WB.Discipline].value=o[c.WB.Discipline],e.configuration.minimumStatTiers[c.WB.Intellect].value=o[c.WB.Intellect],e.configuration.minimumStatTiers[c.WB.Strength].value=o[c.WB.Strength],delete e.configuration.minimumStatTier}if(e.configuration.hasOwnProperty("selectedExoticHash")&&(e.configuration.selectedExotics=[e.configuration.selectedExoticHash],delete e.configuration.selectedExoticHash),e.configuration.hasOwnProperty("maximumStatMods")){for(let a=e.configuration.maximumStatMods;a<5;a++)e.configuration.maximumModSlots[1+a].value=0;delete e.configuration.maximumStatMods}e.configuration.enabledMods=e.configuration.enabledMods.filter(o=>!!N.F[o]),e.configuration.limitParsedResults=!0,e.configuration.addConstent1Resilience=!1}listSavedConfigurations(){let e;try{e=localStorage.getItem("storedConfigurations")||"[]","["!=e.substr(0,1)&&(e=P.decompress(e,rt))}catch{e=[]}let o=JSON.parse(e)||[];return o=o.sort((a,s)=>a.names.name?1:0),o.forEach(a=>this.checkAndFixOldSavedConfigurations(a)),o}deleteStoredConfiguration(e){let o=this.listSavedConfigurations(),a=this.listSavedConfigurations().map((s,r)=>[s,r]).filter(s=>s[0].name==e)[0];a&&o.splice(a[1],1),localStorage.setItem("storedConfigurations",P.compress(JSON.stringify(o),et)),this._storedConfigurations.next(o)}saveCurrentConfigurationToName(e){this.saveConfiguration(e,this.__configuration)}saveCurrentConfiguration(e){console.debug("write configuration",e),this.__configuration=Object.assign(Z.buildEmptyConfiguration(),e),this.__configuration.enabledMods=[].concat(this.__configuration.enabledMods),this.__configuration.minimumStatTiers=Object.assign({},this.__configuration.minimumStatTiers);const o=P.compress(JSON.stringify(this.__configuration),et);localStorage.setItem("currentConfig",o),this._configuration.next(Object.assign({},this.__configuration))}loadCurrentConfiguration(){let e;try{e=localStorage.getItem("currentConfig")||"{}","{"!=e.substr(0,1)&&(e=P.decompress(e,rt))}catch{e={}}var o={name:"dummy",version:"1",configuration:JSON.parse(e)};return this.checkAndFixOldSavedConfigurations(o),o.configuration}getCurrentConfigBase64Compressed(){let e=localStorage.getItem("currentConfig")||"{}";return"{"==e.substr(0,1)&&(e=P.compress(e,{outputEncoding:"Base64"})),e}getAllStoredConfigurationsBase64Compressed(){let e=localStorage.getItem("storedConfigurations")||"[]";return"["==e.substr(0,1)&&(e=P.compress(e,{outputEncoding:"Base64"})),e}getStoredConfigurationBase64Compressed(e){let o=this.listSavedConfigurations().filter(a=>a.name==e)[0];return o?P.compress(JSON.stringify(o),{outputEncoding:"Base64"}):""}resetCurrentConfiguration(){this.saveCurrentConfiguration(Z.buildEmptyConfiguration())}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var h=_(8012),L=_(1016);let z=(()=>{class n{constructor(e,o,a){this.authService=e,this.http=o,this.status=a}$httpWithoutKey(e){var o=this;return(0,y.Z)(function*(){return o.http.get(e.url,{params:e.params}).toPromise()})()}$httpPost(e){var o=this;return(0,y.Z)(function*(){return o.http.post(e.url,e.body,{params:e.params,headers:{"X-API-Key":g.N.apiKey,Authorization:"Bearer "+o.authService.accessToken}}).toPromise().catch(function(){var a=(0,y.Z)(function*(s){console.error(s)});return function(s){return a.apply(this,arguments)}}())})()}$http(e,o=!0){var a=this;return(0,y.Z)(function*(){return a.http.get(e.url,{params:e.params,headers:{"X-API-Key":g.N.apiKey,Authorization:"Bearer "+a.authService.accessToken}}).toPromise().then(s=>(a.status.clearApiError(),s)).catch(function(){var s=(0,y.Z)(function*(r){console.error(r),g.N.offlineMode?console.debug("Offline mode, ignoring API error"):("SystemDisabled"==r.error?.ErrorStatus&&o&&(console.info("System is disabled. Revoking auth, must re-login"),a.status.setApiError()),"Internal Server Error"!=r.ErrorStatus&&console.info("API-Error"))});return function(r){return s.apply(this,arguments)}}())})()}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(gt),t.LFG(Et.eN),t.LFG(vt))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var j=_(9891);let Ut=(()=>{class n{constructor(e,o,a){this.http=e,this.status=o,this.auth=a,this.auth.logoutEvent.subscribe(s=>this.clearCachedData())}clearCachedData(){localStorage.removeItem("auth-membershipInfo"),localStorage.removeItem("auth-membershipInfo-date")}getMembershipDataForCurrentUser(){var e=this;return(0,y.Z)(function*(){var o=JSON.parse(localStorage.getItem("auth-membershipInfo")||"null"),a=JSON.parse(localStorage.getItem("auth-membershipInfo-date")||"0");if(o&&Date.now()-a<864e5)return console.log("getMembershipDataForCurrentUser -> loading cached! "),o;console.info("BungieApiService","getMembershipDataForCurrentUser");let r=(yield(0,j.Rm)(p=>e.http.$http(p)))?.Response.destinyMemberships;console.info("Memberships:",r),r=r.filter(p=>0==p.crossSaveOverride||p.crossSaveOverride==p.membershipType),console.info("Filtered Memberships:",r);let d=null;if(1==r?.length)d=r?.[0];else{let p=0,A=0;for(let m in r){const S=r?.[m],q=yield(0,h.Ai)($=>e.http.$http($),{components:[100],membershipType:S.membershipType,destinyMembershipId:S.membershipId});if(q&&q.Response?.profile.data?.dateLastPlayed){let $=Date.parse(q.Response?.profile.data?.dateLastPlayed);$>A&&(A=$,p=m)}}console.info("getMembershipDataForCurrentUser","Selected membership data for the last logged in membership."),d=r?.[p]}return localStorage.setItem("auth-membershipInfo",JSON.stringify(d)),localStorage.setItem("auth-membershipInfo-date",JSON.stringify(Date.now())),d})()}getCharacters(){var e=this;return(0,y.Z)(function*(){let o=yield e.getMembershipDataForCurrentUser();if(!o)return e.status.setApiError(),[];const a=yield(0,h.Ai)(s=>e.http.$http(s),{components:[200],membershipType:o.membershipType,destinyMembershipId:o.membershipId});return a?.Response.characters.data&&e.status.clearApiError(),Object.values(a?.Response.characters.data||{}).map(s=>({characterId:s.characterId,clazz:s.classType,emblemUrl:s.emblemBackgroundPath,lastPlayed:Date.parse(s.dateLastPlayed)}))||[]})()}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(z),t.LFG(vt),t.LFG(gt))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Ot(n,i,e,o){const a={2996146975:0,392767087:0,1943323491:0,1735777505:0,144602215:0,4244567218:0};for(let r of i)r.statTypeHash in a&&(a[r.statTypeHash]+=r.value);if(n.slot!=T.y.ArmorSlotClass){const r=[e[6],e[7],e[8],e[9]];n.statPlugHashes=r;var s=r.map(d=>o[d||""]).filter(d=>null!=d);for(let d of s)for(let p of d.investmentStats)p.statTypeHash in a&&(a[p.statTypeHash]+=p.value)}it(n,a)}let bt=(()=>{class n{constructor(e,o,a,s,r){var d=this;this.status=e,this.http=o,this.db=a,this.config=s,this.membership=r,this.config_assumeEveryLegendaryIsArtifice=!1,this.config.configuration.subscribe(function(){var p=(0,y.Z)(function*(A){d.config_assumeEveryLegendaryIsArtifice=A.assumeEveryLegendaryIsArtifice});return function(A){return p.apply(this,arguments)}}())}transferItem(e,o,a=!1){var s=this;return(0,y.Z)(function*(){let r=yield s.membership.getMembershipDataForCurrentUser();if(!r)return s.status.setApiError(),!1;s.status.clearApiError();let d=yield(0,h.rV)(A=>s.http.$http(A),{membershipType:r.membershipType,destinyMembershipId:r.membershipId,itemInstanceId:e,components:[307]}),p=!1;if(!d)return!1;if(d.Response.characterId!=o){2!=d.Response.item.data?.location&&(yield s.moveItemToVault(d.Response.item.data?.itemInstanceId||""),d=yield(0,h.rV)(m=>s.http.$http(m),{membershipType:r.membershipType,destinyMembershipId:r.membershipId,itemInstanceId:e,components:[307]}));const A={characterId:o,membershipType:3,itemId:d?.Response.item.data?.itemInstanceId||"",itemReferenceHash:d?.Response.item.data?.itemHash||0,stackSize:1,transferToVault:!1};p=!!(yield(0,h.ux)(m=>s.http.$httpPost(m),A))}if(a){let A={characterId:o,membershipType:3,stackSize:1,itemId:d?.Response.item.data?.itemInstanceId||"",itemReferenceHash:d?.Response.item.data?.itemHash||0};p=!!(yield(0,h.DH)(m=>s.http.$httpPost(m),A))}return p})()}moveItemToVault(e){var o=this;return(0,y.Z)(function*(){console.info("moveItemToVault",e);let a=yield o.membership.getMembershipDataForCurrentUser();if(!a)return void o.status.setApiError();o.status.clearApiError();const s=yield(0,h.rV)(d=>o.http.$http(d),{membershipType:a.membershipType,destinyMembershipId:a.membershipId,itemInstanceId:e,components:[307]}),r={characterId:s?.Response.characterId||"",membershipType:3,itemId:s?.Response.item.data?.itemInstanceId||"",itemReferenceHash:s?.Response.item.data?.itemHash||0,stackSize:1,transferToVault:!0};yield(0,h.ux)(d=>o.http.$httpPost(d),r)})()}getUnlockedExoticArmor(e){var o=this;return(0,y.Z)(function*(){const a=(yield o.db.manifestCollectibles.toArray()).reduce((r,d)=>(r[d.hash]=d.itemHash,r),{}),s=Object.values(e).flatMap(r=>Object.entries(r.collectibles??{})).filter(([r,{state:d}])=>0==(1&d)&&a[parseInt(r)]).map(([r,d])=>a[parseInt(r)]);return new Set(s)})()}updateArmorItems(e=!1){var o=this;return(0,y.Z)(function*(){if(g.N.offlineMode)return void console.info("BungieApiService","updateArmorItems","offline mode, skipping");if(!e&&localStorage.getItem("LastArmorUpdate")&&localStorage.getItem("last-armor-db-name")==o.db.inventoryArmor.db.name&&Date.now()-Number.parseInt(localStorage.getItem("LastArmorUpdate")||"0")<18e5)return;let a=yield o.membership.getMembershipDataForCurrentUser();if(!a)return void o.status.setApiError();o.status.clearApiError(),console.info("BungieApiService","getProfile");let s=yield(0,h.Ai)(v=>o.http.$http(v),{components:[205,201,103,102,304,300,302,305,308,800],membershipType:a.membershipType,destinyMembershipId:a.membershipId});const r=yield o.getUnlockedExoticArmor(s.Response.characterCollectibles.data??{});let d=s.Response.profileInventory.data?.items||[];for(let v in s.Response.characterEquipment.data)d=d.concat(s.Response.characterEquipment.data[v].items);for(let v in s.Response.characterInventories.data)d=d.concat(s.Response.characterInventories.data[v].items);var p=d.filter(v=>[3853748946,4257549984,4257549985,3467984096].indexOf(v.itemHash)>-1).reduce((v,dt)=>(dt.itemHash.toString()in v||(v[dt.itemHash]=0),v[dt.itemHash]+=dt.quantity,v),{});let A=s.Response.profileCurrencies.data?.items.filter(v=>3159615086==v.itemHash)||[];p[3159615086]=A.length>0?A[0].quantity:0,localStorage.setItem("stored-materials",JSON.stringify(p));const m=new Set(d.map(v=>v.itemHash));r.forEach(v=>m.add(v));let S=yield o.db.manifestArmor.toArray();const q=S.filter(v=>m.has(v.hash)),$=S.filter(v=>19==v.itemType);let tt=Object.fromEntries(q.map(v=>[v.hash,v])),lt=Object.fromEntries($.map(v=>[v.hash,v])),O=d.filter(v=>!!v.itemInstanceId).filter(v=>3284755031!==v.bucketHash).filter(v=>!!((s.Response.itemComponents.stats.data||{})[v.itemInstanceId||""]?.stats||{})[392767087]).filter(v=>!!((s.Response.itemComponents.instances.data||{})[v.itemInstanceId||""]||{}).energy).map(v=>{let nt=(s.Response.itemComponents.instances.data||{})[v.itemInstanceId||""]||{};if(!tt[v.itemHash])return console.warn("Missing manifest item for item hash",v.itemHash),null;let Q=ut(tt[v.itemHash],v.itemInstanceId||"",B.Inventory);Q.masterworked=!!nt.energy&&10==nt.energy.energyCapacity,Q.energyLevel=nt.energy?nt.energy.energyCapacity:0;const ce=(s.Response.itemComponents.sockets.data||{})[v.itemInstanceId]?.sockets.map($t=>$t.plugHash)??[];return Ot(Q,tt[v.itemHash]?.investmentStats??[],ce,lt),Q.perk==c.Pn.SlotArtifice?(((s.Response.itemComponents.perks.data||{})[v.itemInstanceId||""]||{}).perks||[]).filter(xe=>229248542==xe.perkHash).length>0||(Q.perk=c.Pn.None):Q.isExotic&&ce.filter(oe=>720825311==oe).length>0&&(Q.perk=c.Pn.SlotArtifice),Q}).filter(Boolean);const V=Array.from(r).map(v=>{const dt=tt[v];if(!dt)return console.error("Couldn't find manifest item for exotic",v),null;const nt=ut(dt,`c${dt.hash}`,B.Collections);return Ot(nt,dt.investmentStats,dt.socketEntries.map(Q=>Q.singleInitialItemHash),lt),nt}).filter(Boolean);return O=O.concat(V),O=O.filter(v=>!v.statPlugHashes||null!=v.statPlugHashes[0]),yield o.updateDatabaseItems(O),localStorage.setItem("LastArmorUpdate",Date.now().toString()),localStorage.setItem("last-armor-db-name",o.db.inventoryArmor.db.name),o.status.clearApiError(),O})()}updateDatabaseItems(e){var o=this;return(0,y.Z)(function*(){yield o.db.inventoryArmor.filter(r=>r.source==B.Inventory).delete();const s=(yield o.db.inventoryArmor.toArray()).filter(r=>null==r.source||null==r.source).map(r=>r.id);yield o.db.inventoryArmor.bulkDelete(s),yield o.db.inventoryArmor.bulkAdd(e)})()}getArmorPerk(e){if(g.N.featureFlags.enableGuardianGamesFeatures&&(1013401891===e.hash||366019830===e.hash||537041732==e.hash))return c.Pn.GuardianGamesClassItem;const o=e.sockets?.socketEntries??[];if(o.find(a=>1402==a.reusablePlugSetHash)||o.find(a=>1403==a.reusablePlugSetHash))return c.Pn.SlotArtifice;for(const a of o){let s=a.singleInitialItemHash;if(!s)continue;s=c.ED[s]||s;const r=Object.entries(c.DH).find(d=>d[1]==s);if(r)return parseInt(r[0])}return c.Pn.None}updateVendorNames(e){var o=this;return(0,y.Z)(function*(){const s=Object.values(e.DestinyVendorDefinition).map(r=>({vendorId:r.hash,vendorName:r.displayProperties.name}));yield o.db.vendorNames.clear(),yield o.db.vendorNames.bulkAdd(s)})()}updateAbilities(e){return(0,y.Z)(function*(){const o=Object.values(e.DestinyInventoryItemDefinition).filter(a=>a.plug?.plugCategoryIdentifier?.match(/\.(supers|grenades|class_abilities|melee|aspects|fragments)$/));localStorage.setItem("allAbilities",JSON.stringify(o))})()}updateExoticCollectibles(e){var o=this;return(0,y.Z)(function*(){const a=Object.entries(e.DestinyCollectibleDefinition).filter(([s,r])=>{const d=e.DestinyInventoryItemDefinition[r.itemHash];return"Exotic"==d?.inventory?.tierTypeName&&2==d?.itemType}).map(([s,r])=>({hash:parseInt(s),itemHash:r.itemHash}));console.log("Storing",a.length,"exotic armor hashes"),yield o.db.manifestCollectibles.clear(),yield o.db.manifestCollectibles.bulkPut(a)})()}updateManifest(e=!1){var o=this;return(0,y.Z)(function*(){if(g.N.offlineMode)return void console.info("BungieApiService","updateManifest","offline mode, skipping");const a=o.db.lastManifestUpdate();let s=null;if(a&&!e){if(Date.now()-a.updatedAt>9e5&&(s=yield(0,h.KN)(m=>o.http.$httpWithoutKey(m)),a.version==s.Response.version))return void console.debug("bungieApiService - updateManifest","Abort updateManifest due to fitting ManifestVersion");if(Date.now()-a.updatedAt<864e5)return void console.debug("bungieApiService - updateManifest","Abort updateManifest due to fitting Date")}null==s&&(s=yield(0,h.KN)(A=>o.http.$httpWithoutKey(A)));const r=s.Response.version,d=yield(0,L.xG)(A=>o.http.$httpWithoutKey(A),{destinyManifest:s.Response,tableNames:["DestinyInventoryItemDefinition","DestinyCollectibleDefinition","DestinyVendorDefinition"],language:"en"});console.log("manifestTables.DestinyInventoryItemDefinition",d.DestinyInventoryItemDefinition),yield o.updateExoticCollectibles(d),yield o.updateVendorNames(d),yield o.updateAbilities(d);let p=Object.entries(d.DestinyInventoryItemDefinition).filter(([A,m])=>19==m.itemType||2==m.itemType||3448274439==m.inventory?.bucketTypeHash||3551918588==m.inventory?.bucketTypeHash||14239492==m.inventory?.bucketTypeHash||20886954==m.inventory?.bucketTypeHash||1585787867==m.inventory?.bucketTypeHash&&6==m.inventory.tierType).map(([A,m])=>{let S=T.y.ArmorSlotNone;(m.itemCategoryHashes?.indexOf(45)||-1)>-1&&(S=T.y.ArmorSlotHelmet),(m.itemCategoryHashes?.indexOf(46)||-1)>-1&&(S=T.y.ArmorSlotGauntlet),(m.itemCategoryHashes?.indexOf(47)||-1)>-1&&(S=T.y.ArmorSlotChest),(m.itemCategoryHashes?.indexOf(48)||-1)>-1&&(S=T.y.ArmorSlotLegs),(m.itemCategoryHashes?.indexOf(49)||-1)>-1&&(S=T.y.ArmorSlotClass);const q=(m.sockets?.socketEntries.filter(V=>2512726577==V.socketTypeHash||1108765570==V.socketTypeHash||959256494==V.socketTypeHash||2512726577==V.socketTypeHash||3219375296==V.socketTypeHash||968742181==V.socketTypeHash)||[]).length>0,$="Exotic"==m.inventory?.tierTypeName?1:0;let tt=null;$&&(tt=(m.sockets?.socketEntries.filter(v=>965959289==v.socketTypeHash).map(v=>v.singleInitialItemHash)||[])[0]);var lt=[1862490585,1862490584,1862490584,1862490583,2471437758],O=m.quality?.versions.filter(V=>lt.includes(V.powerCapHash)).length==m.quality?.versions.length;return{hash:m.hash,icon:m.displayProperties.icon,watermarkIcon:(m.quality?.displayVersionWatermarkIcons||[null])[0],name:m.displayProperties.name,description:m.displayProperties.description,clazz:m.classType,armor2:q,slot:S,isExotic:$,isSunset:O,rarity:m.inventory?.tierType,exoticPerkHash:tt,itemType:m.itemType,itemSubType:m.itemSubType,investmentStats:m.investmentStats,perk:o.getArmorPerk(m),socketEntries:m.sockets?.socketEntries??[]}});return yield o.db.writeManifestArmor(p,r),d})()}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(vt),t.LFG(z),t.LFG(w),t.LFG(X),t.LFG(Ut))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const qt="vendor-next-refresh-time",Yt=[{vendorHash:"3751514131",parentHash:"2190858386"}];let Wt=(()=>{class n{constructor(e,o,a,s){this.membership=e,this.http=o,this.db=a,this.auth=s,this.auth.logoutEvent.subscribe(r=>this.clearCachedData())}clearCachedData(){localStorage.removeItem(qt),this.db.inventoryArmor.where({source:B.Vendor}).delete()}getVendorArmorItemsForCharacter(e,o,a){var s=this;return(0,y.Z)(function*(){const r=yield(0,h.dH)(tt=>s.http.$http(tt,!1),{components:[400,402],characterId:a,membershipType:o.membershipType,destinyMembershipId:o.membershipId,filter:0}),d=Object.entries(r.Response.vendors.data),p=new Map(d),m=d.filter(([tt,lt])=>lt.enabled).filter(([tt,lt])=>{const O=Yt.find(V=>V.vendorHash==tt)?.parentHash;return null==O||(console.debug(`${tt} has parent ${O} with value ${p.get(O)?.enabled}`),p.get(O)?.enabled??!1)}).filter(([tt,lt])=>void 0!==Object.entries(r.Response.sales.data?.[tt]?.saleItems??{}).find(([O,V])=>1==e[V.itemHash]?.armor2)).map(([tt,lt])=>({vendorHash:tt,refreshDate:new Date(lt.nextRefreshDate).getTime()})),S=[],q=Math.min(...m.map(tt=>tt.refreshDate)),$=m.map(tt=>{let lt=tt.vendorHash;return(0,h.wZ)(O=>s.http.$http(O,!1),{components:[304],characterId:a,membershipType:o.membershipType,destinyMembershipId:o.membershipId,vendorHash:parseInt(lt)}).then(O=>{const V=r.Response.sales.data?.[lt]?.saleItems??{},v=O.Response.itemComponents.stats.data??{};for(const[dt,nt]of Object.entries(V)){const Q=e[nt.itemHash],he=v[parseInt(dt)];if(128==(128&nt.augments)||!Q||!he)return;const ce=Object.values(he.stats).reduce((oe,{statHash:Ue,value:xe})=>(oe[Ue]=xe,oe),{}),$t=ut(Q,`v${lt}-${nt.itemHash}`,B.Vendor);it($t,ce),S.push($t)}},O=>{console.error(`Failed to get vendor: ${O}`)})});return yield Promise.all($),console.log(`Collected ${S.length} vendor armor items for character ${a}`),{items:S,nextRefreshDate:q}})()}isVendorCacheValid(){const e=localStorage.getItem(qt);if(!e)return!1;const o=new Date(e);return!!isFinite(o.getTime())&&(console.log("VENDOR C",{nextVendorRefresh:o,finite:isFinite(o.getTime()),ok:o>new Date,now:new Date}),o>new Date)}writeVendorCache(e,o){var a=this;return(0,y.Z)(function*(){console.log(`Writing new vendor cache (${e.length} items), valid until ${o.toISOString()}`),yield a.db.inventoryArmor.where({source:B.Vendor}).delete(),yield a.db.inventoryArmor.bulkPut(e),localStorage.setItem(qt,o.toISOString())})()}updateVendorArmorItemsCache(){var e=this;return(0,y.Z)(function*(){if(e.isVendorCacheValid())return console.log("Using vendor items cache"),!1;const o=yield e.membership.getMembershipDataForCurrentUser(),a=yield e.membership.getCharacters(),s=(yield e.db.manifestArmor.toArray()).filter(r=>2==r.itemType).reduce((r,d)=>(r[d.hash]=d,r),{});try{const r=yield Promise.all(a.map(({characterId:A})=>e.getVendorArmorItemsForCharacter(s,o,A))),d=r.flatMap(({items:A})=>A),p=Math.max(Math.min(...r.map(({nextRefreshDate:A})=>A)),Date.now()+6e5);return e.writeVendorCache(d,new Date(p)),!0}catch(r){console.error("Failed to update vendor armor items cache",r);const d=new Date;return d.setMinutes(d.getMinutes()+5),e.writeVendorCache([],new Date(d)),!1}})()}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Ut),t.LFG(z),t.LFG(w),t.LFG(gt))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Tt=(()=>{class n{constructor(e,o,a,s,r,d,p){var A=this;this.db=e,this.config=o,this.status=a,this.api=s,this.auth=r,this.router=d,this.vendors=p,this.allArmorResults=[],this.currentClass=3,this._calculationProgress=new R.xQ,this.calculationProgress=this._calculationProgress.asObservable(),this._config=Z.buildEmptyConfiguration(),this.results=[],this.totalPermutationCount=0,this.resultMaximumTiers=[],this.resultStatCombo3x100=new Set,this.resultStatCombo4x100=new Set,this.selectedExotics=[],this.itemz=[],this.items=[],this.endResults=[],this.refreshing=!1,this._inventory=new b.t(1),this.inventory=this._inventory.asObservable(),this._manifest=new b.t(1),this.manifest=this._manifest.asObservable(),this._armorResults=new Mt.X({results:this.allArmorResults}),this.armorResults=this._armorResults.asObservable(),this.workers=[];let m=!1;d.events.pipe((0,J.b)(5)).subscribe(function(){var S=(0,y.Z)(function*(q){A.auth.refreshTokenExpired||(yield A.auth.autoRegenerateTokens()),r.isAuthenticated()&&q instanceof ot.m2&&(A.killWorkers(),A.clearResults(),console.debug("Trigger refreshAll due to router.events"),yield A.refreshAll(!m),m=!0)});return function(q){return S.apply(this,arguments)}}()),this.config.configuration.pipe((0,J.b)(500)).subscribe(function(){var S=(0,y.Z)(function*(q){A.auth.refreshTokenExpired||(yield A.auth.autoRegenerateTokens()),r.isAuthenticated()&&(A._config=q,console.debug("Trigger refreshAll due to config change"),yield A.refreshAll(!m),m=!0)});return function(q){return S.apply(this,arguments)}}())}clearResults(){this.allArmorResults=[],this._armorResults.next({results:this.allArmorResults,totalResults:0,totalTime:0,itemCount:0,maximumPossibleTiers:[0,0,0,0,0,0],statCombo3x100:[],statCombo4x100:[]})}shouldCalculateResults(){return"/"==this.router.url}refreshAll(e=!1,o=!1){var a=this;return(0,y.Z)(function*(){if(!a.refreshing){console.debug("Execute refreshAll");try{a.refreshing=!0;let s=!1;try{let r=yield a.updateManifest(o);s=yield a.updateInventoryItems(r||e),a.updateVendorsAsync()}catch(r){console.error(r)}yield a.triggerArmorUpdateAndUpdateResults(s)}finally{a.refreshing=!1}}})()}triggerArmorUpdateAndUpdateResults(e=!1,o=!0){var a=this;return(0,y.Z)(function*(){e&&a._inventory.next(null),a.shouldCalculateResults()&&(yield a.updateResults())})()}updateVendorsAsync(){this.status.getStatus().updatingVendors||this.vendors.isVendorCacheValid()||(this.status.modifyStatus(e=>e.updatingVendors=!0),this.vendors.updateVendorArmorItemsCache().then(e=>{!e||this.triggerArmorUpdateAndUpdateResults(e,this._config.includeVendorRolls)}).finally(()=>{this.status.modifyStatus(e=>e.updatingVendors=!1)}))}killWorkers(){console.log("killing workers"),this.workers.forEach(e=>{e.terminate()}),this.workers=[]}estimateCombinationsToBeChecked(e,o,a,s){let r=0;const d=e.filter(lt=>lt.isExotic).length,p=e.length-d,A=o.filter(lt=>lt.isExotic).length,m=o.length-A,S=a.filter(lt=>lt.isExotic).length,q=a.length-S,$=s.filter(lt=>lt.isExotic).length,tt=s.length-$;return r+=d*m*q*tt,r+=p*A*q*tt,r+=p*m*S*tt,r+=p*m*q*$,r+=p*m*q*tt,r}updateResults(e=3){var o=this;return(0,y.Z)(function*(){o.clearResults(),o.killWorkers();try{console.time("updateResults with WebWorker"),o.status.modifyStatus(m=>m.calculatingResults=!0);let a=0;o.results=[],o.totalPermutationCount=0,o.resultMaximumTiers=[],o.resultStatCombo3x100=new Set,o.resultStatCombo4x100=new Set;const s=Date.now();let r=o._config;o.selectedExotics=yield Promise.all(r.selectedExotics.filter(m=>m!=D.Io).map(function(){var m=(0,y.Z)(function*(S){return yield o.db.manifestArmor.where("hash").equals(S).first()});return function(S){return m.apply(this,arguments)}}())),o.selectedExotics=o.selectedExotics.filter(m=>!!m),o.itemz=yield o.db.inventoryArmor.where("clazz").equals(r.characterClass).distinct().toArray(),o.itemz=o.itemz.filter(m=>m.slot!=T.y.ArmorSlotNone).filter(m=>-1==r.disabledItems.indexOf(m.itemInstanceId)).filter(m=>{switch(m.source){case B.Collections:return r.includeCollectionRolls;case B.Vendor:return r.includeVendorRolls;default:return!0}}).filter(m=>-1==r.selectedExotics.indexOf(D.Io)||!m.isExotic).filter(m=>1!=o.selectedExotics.length||m.isExotic&&o.selectedExotics[0].hash==m.hash||!m.isExotic&&o.selectedExotics[0].slot!=m.slot).filter(m=>!r.onlyUseMasterworkedExotics||!(6==m.rarity&&!m.masterworked)).filter(m=>!r.onlyUseMasterworkedLegendaries||!(5==m.rarity&&!m.masterworked)).filter(m=>r.allowBlueArmorPieces||6==m.rarity||5==m.rarity).filter(m=>!r.ignoreSunsetArmor||!m.isSunset).filter(m=>m.isExotic||!r.armorPerks[m.slot].fixed||r.armorPerks[m.slot].value==c.Pn.None||r.armorPerks[m.slot].value==m.perk),o.itemz=o.itemz.filter(m=>m.source===B.Inventory||void 0===o.itemz.find(q=>q.source===B.Inventory&&function Zt(n,i){return n.slot===i.slot&&n.hash===i.hash&&n.mobility===i.mobility&&n.resilience===i.resilience&&n.recovery===i.recovery&&n.discipline===i.discipline&&n.intellect===i.intellect&&n.strength===i.strength}(m,q))),o.items=o.itemz.map(m=>({id:m.id,hash:m.hash,slot:m.slot,clazz:m.clazz,perk:m.perk,isExotic:!!m.isExotic,rarity:m.rarity,isSunset:m.isSunset,masterworked:m.masterworked,mobility:m.mobility,resilience:m.resilience,recovery:m.recovery,discipline:m.discipline,intellect:m.intellect,strength:m.strength,source:m.source})),e=o.estimateRequiredThreads(),console.log("nthreads for calculation",e);const d=[...Array(e).keys()].map(()=>0),p=[...Array(e).keys()].map(()=>0);let A=0;o.items=o.items.sort((m,S)=>xt(S)-xt(m)),o._calculationProgress.next(0);for(let m=0;mO+V,0),lt=p.reduce((O,V)=>O+V,0);if(p[0]>0&&p[1]>0&&p[2]>0){const O=lt/tt*100;O>A+.25&&(A=O,o._calculationProgress.next(O))}if(null!=$.runtime){if(o.results.push(...$.results),1==$.done){a++,o.totalPermutationCount+=$.stats.permutationCount,o.resultMaximumTiers.push($.runtime.maximumPossibleTiers);for(let O of $.runtime.statCombo3x100)o.resultStatCombo3x100.add(O);for(let O of $.runtime.statCombo4x100)o.resultStatCombo4x100.add(O)}if(1==$.done&&a==e){o.status.modifyStatus(O=>O.calculatingResults=!1),o._calculationProgress.next(0),o.endResults=[];for(let O of o.results){let V=O.armor.map(nt=>o.itemz.find(Q=>Q.id==nt)),v=V.find(nt=>nt.isExotic),dt={exotic:null==v?[]:[{icon:v?.icon,watermark:v?.watermarkIcon,name:v?.name,hash:v?.hash}],artifice:O.usedArtifice,modCount:O.usedMods.length,modCost:O.usedMods.reduce((nt,Q)=>nt+c.K9[Q][2],0),mods:O.usedMods,stats:O.statsWithMods,statsNoMods:O.statsWithoutMods,tiers:(0,It.jG)(O.statsWithMods),waste:(0,It._1)(O.statsWithMods),items:V.reduce((nt,Q)=>(nt[Q.slot-1].push({energyLevel:Q.energyLevel,hash:Q.hash,itemInstanceId:Q.itemInstanceId,name:Q.name,exotic:!!Q.isExotic,masterworked:Q.masterworked,mayBeBugged:Q.mayBeBugged,slot:Q.slot,perk:Q.perk,transferState:0,stats:[Q.mobility,Q.resilience,Q.recovery,Q.discipline,Q.intellect,Q.strength],source:Q.source}),nt),[[],[],[],[],[]]),classItem:O.classItemPerk,usesCollectionRoll:V.some(nt=>nt.source===B.Collections),usesVendorRoll:V.some(nt=>nt.source===B.Vendor)};o.endResults.push(dt)}o._armorResults.next({results:o.endResults,totalResults:o.totalPermutationCount,itemCount:$.stats.itemCount,totalTime:Date.now()-s,maximumPossibleTiers:o.resultMaximumTiers.reduce((O,V)=>{for(let v=0;v<6;v++)O[v]Math.floor(Math.min(100,O)/10)),statCombo3x100:Array.from(o.resultStatCombo3x100).map(O=>{let V=[];for(let v=0;v<6;v++)(O&1<0&&V.push(v);return V})||[],statCombo4x100:Array.from(o.resultStatCombo4x100).map(O=>{let V=[];for(let v=0;v<6;v++)(O&1<0&&V.push(v);return V},[])||[]}),console.timeEnd("updateResults with WebWorker"),o.workers[m].terminate()}else 1==$.done&&a!=e&&o.workers[m].terminate()}});return function(q){return S.apply(this,arguments)}}(),o.workers[m].onerror=S=>{o.workers[m].terminate()},o.workers[m].postMessage({currentClass:o.currentClass,config:o._config,threadSplit:{count:e,current:m},items:o.items,selectedExotics:o.selectedExotics})}finally{}})()}estimateRequiredThreads(){const e=this.items.filter(q=>q.slot==T.y.ArmorSlotHelmet),o=this.items.filter(q=>q.slot==T.y.ArmorSlotGauntlet),a=this.items.filter(q=>q.slot==T.y.ArmorSlotChest),s=this.items.filter(q=>q.slot==T.y.ArmorSlotLegs),r=this.estimateCombinationsToBeChecked(e,o,a,s),d=Math.max(e.length,o.length,a.length,s.length);let p=1;this._config.tryLimitWastedStats&&this._config.modOptimizationStrategy!=K.w.None&&(p=.7);let m=25e4*p;return Math.max(3,Math.min(Math.max(1,Math.ceil(r/(5e4*p))),Math.ceil(r/m),Math.floor(.75*(navigator.hardwareConcurrency||2)),20,d))}getItemCountForClass(e,o){var a=this;return(0,y.Z)(function*(){let s=yield a.db.inventoryArmor.where("clazz").equals(e).toArray();return o&&(s=s.filter(r=>r.slot==o)),s=s.filter(r=>r.source==B.Inventory),s.length})()}getExoticsForClass(e,o){var a=this;return(0,y.Z)(function*(){let s=yield a.db.inventoryArmor.where("isExotic").equals(1).toArray();s=s.filter(d=>d.clazz==e&&d.armor2&&(!o||d.slot==o));let r=yield a.db.manifestArmor.where("isExotic").equals(1).toArray();return r=r.filter(d=>d.clazz==e&&d.armor2&&(!o||d.slot==o)),r.map(d=>{const p=s.filter(A=>A.hash==d.hash);return{item:d,inCollection:void 0!==p.find(A=>A.source===B.Collections),inInventory:void 0!==p.find(A=>A.source===B.Inventory),inVendor:void 0!==p.find(A=>A.source===B.Vendor)}})})()}updateManifest(e=!1){var o=this;return(0,y.Z)(function*(){if(o.status.getStatus().updatingManifest)return console.error("Already updating the manifest - abort"),!1;o.status.modifyStatus(s=>s.updatingManifest=!0);let a=yield o.api.updateManifest(e).finally(()=>{o.status.modifyStatus(s=>s.updatingManifest=!1)});return a&&o._manifest.next(null),!!a})()}updateInventoryItems(e=!1,o=0){return(0,y.Z)(function*(){return!1})()}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(w),t.LFG(X),t.LFG(vt),t.LFG(bt),t.LFG(gt),t.LFG(ot.F0),t.LFG(Wt))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const ie="https://Database-Clarity.github.io/Character-Stats",Ft=`${ie}/versions/1.9/CharacterStatInfo-NI.json`,Xt=`${ie}/update.json`,jt="clarity-character-stats-version",Bt="clarity-character-stats";let me=(()=>{class n{constructor(e,o){this.http=e,this.inv=o,this._characterStats=new Mt.X(null),this.characterStats=this._characterStats.asObservable(),this.inv.manifest.subscribe(a=>this.load())}load(){var e=this;return(0,y.Z)(function*(){try{yield e.loadCharacterStats()}catch(o){console.warn("Error loading Clarity data",o)}})()}fetchUpdateData(){var e=this;return(0,y.Z)(function*(){return e.http.get(Xt).toPromise()})()}loadCharacterStats(){var e=this;return(0,y.Z)(function*(){const o=localStorage.getItem(Bt);o&&e._characterStats.next(JSON.parse(o));const a=yield e.fetchUpdateData(),s=parseInt(localStorage.getItem(jt)||"0");a&&a.lastUpdate>s&&("1.9"!==a.schemaVersion?console.warn("Unsupported live character stats schema version",a.schemaVersion):a&&void 0!==a.lastUpdate&&(yield e.fetchLiveCharacterStats().then(r=>{localStorage.setItem(Bt,JSON.stringify(r)),localStorage.setItem(jt,a.lastUpdate.toString()),e._characterStats.next(r)})))})()}fetchLiveCharacterStats(){var e=this;return(0,y.Z)(function*(){return e.http.get(Ft).toPromise()})()}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Et.eN),t.LFG(Tt))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var mt=(()=>{return(n=mt||(mt={}))[n.Speed=1]="Speed",n[n.Percentage=2]="Percentage",n[n.Time=3]="Time",n[n.TimeMMSS=4]="TimeMMSS",n[n.PercentagePerSecond=5]="PercentagePerSecond",mt;var n})();let ae=(()=>{class n{constructor(e){this.clarity=e,this.allStatEntries={},this.overrides=[],this.clarity.characterStats.subscribe(o=>{o&&this.updateCharacterStats(o)})}loadCharacterStats(){this.clarity.load()}updateCharacterStats(e){const o=(JSON.parse(window.localStorage.getItem("allAbilities"))||[]).reduce((a,s)=>(a.set(s.hash,s),a),new Map);this.overrides=Object.values(e).map(a=>a.Overrides).flat(),this.allStatEntries={Mobility:this.generateEntries(e.Mobility,o,[{key:"WalkSpeed",name:"Walk Speed",valueType:mt.Speed},{key:"StrafeSpeed",name:"Strafe Speed",valueType:mt.Speed},{key:"CrouchSpeed",name:"Crouch Speed",valueType:mt.Speed}]),Resilience:this.generateEntries(e.Resilience,o,[{key:"ShieldHP",name:"Shield HP"},{key:"PvEDamageResistance",name:"PvE Damage Resistance",valueType:mt.Percentage},{key:"FlinchResistance",name:"Flinch Resistance",valueType:mt.Percentage}]),Recovery:this.generateEntries(e.Recovery,o,[{key:"TotalRegenTime",name:"Total Regen Time",valueType:mt.Time},{key:"HealthRegenDelay",name:"Health Regen Delay",valueType:mt.Time},{key:"HealthRegenSpeed",name:"Health Regen Speed",valueType:mt.PercentagePerSecond},{key:"ShieldRegenDelay",name:"Shield Regen Delay",valueType:mt.Time},{key:"ShieldRegenSpeed",name:"Shield Regen Speed",valueType:mt.PercentagePerSecond}]),Discipline:this.generateEntries(e.Discipline,o),Intellect:this.generateEntries(e.Intellect,o),Strength:this.generateEntries(e.Strength,o)}}get(e,o,a,s=[]){const r=this.allStatEntries[e]??[],d=this.overrides.filter(p=>s.includes(p.Hash));return r.filter(p=>!(void 0!==o&&void 0!==p.characterClass&&p.characterClass!==o||void 0!==a&&void 0!==p.element&&p.element!==a)).map(p=>d.reduce((A,m)=>function De(n,i){if(!n.hash||!i.Requirements.includes(n.hash))return n;const e={...n,overrideIcons:[...n.overrideIcons??[],i.Hash]};if(i.CooldownOverride)return{...e,values:i.CooldownOverride};if(i.Scalar){const o=i.Requirements.indexOf(n.hash),a=i.Scalar[o];return{...e,values:e.values.map(s=>s*a)}}return console.log("Unhandled override",i),n}(A,m),p))}generateEntries(e,o,a=[]){const s=a.map(({key:d,...p})=>({values:e[d].Array,...p}));return("Abilities"in e?e.Abilities:"SuperAbilities"in e?e.SuperAbilities:[]).forEach(d=>{const p=o.get(d.Hash);if(!p)return;const{characterClass:A,element:m}=function Vt(n){let i,e;const o=n.plug?.plugCategoryIdentifier?.split(".");if(3!==o?.length)return{characterClass:i,element:e};const[a,s,r]=o;return"warlock"===a?i=2:"hunter"===a?i=1:"titan"===a&&(i=0),"arc"===s?e=k.O.Arc:"solar"===s?e=k.O.Solar:"void"===s?e=k.O.Void:"stasis"===s?e=k.O.Stasis:"strand"===s?e=k.O.Strand:"prism"===s&&(e=k.O.Prismatic),{characterClass:i,element:e}}(p);s.push({hash:p.hash,name:p.displayProperties.name,icon:p.displayProperties.icon,values:d.Cooldowns,valueType:mt.TimeMMSS,characterClass:A,element:m})}),s}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(me))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var l=(()=>{return(n=l||(l={}))[n.ADD=0]="ADD",n[n.REMOVE=1]="REMOVE",n[n.MODIFIED=2]="MODIFIED",l;var n})();const ye=[{version:"2.6.2",date:"July 7, 2024",entries:[{type:l.ADD,text:"Added option to ignore existing exotic artifice slots. This is useful for the exotic class item.",issues:[]},{type:l.MODIFIED,text:"Prismatic fragments are now correctly added to the DIM export.",issues:[]},{type:l.MODIFIED,text:"The 'Ignored Items' section is now filtered by the selected class, grouped into armor slots and ordered by item type.",issues:[]},{type:l.MODIFIED,text:"Minor change for the vendor API handling. Thanks nznaza!",issues:[]},{type:l.MODIFIED,text:"Minor change for the manifest API handling.",issues:[]},{type:l.MODIFIED,text:"Mostly minor bugfixes and code improvements.",issues:[]}]},{version:"2.6.1",date:"June 17, 2024",entries:[{type:l.ADD,text:"Add exotic class items.",issues:[]},{type:l.ADD,text:"Added Salvation's Edge Raid modslot and the Echoes of Glory perk.",issues:[]},{type:l.MODIFIED,text:"Changed the way minor mods are displayed. Minor mods are now 25% smaller.",issues:[]},{type:l.MODIFIED,text:"Corrected the description of Facet of Grace.",issues:[]},{type:l.MODIFIED,text:"Added Whisper of Torment, as it now has a -10 in Discipline.",issues:[]},{type:l.REMOVE,text:"Removed old armor modslots (and perks) that no longer exist or function.",issues:[]}]},{version:"2.6.0",date:"June 4, 2024",entries:[{type:l.ADD,text:"Added prismatic fragments.",issues:[]},{type:l.ADD,text:"Added a progressbar that shows the progress of the calculation process.",issues:[]},{type:l.ADD,text:"Added an advanced setting to replace the stat selection boxes with text fields. While it does not look quite nice (as of now), it will allow you to select any value you want. Go get your 6x69 builds done (but don't forget, D2AP still does not add fragments by itself ....YET?!? BUT VERY SOON!)!",issues:[]},{type:l.ADD,text:"Added an 'Assume every exotic has an artifice slot' setting in preparation for the changes in the upcoming expansion. Real artifice exotics should work out-of-the-box at the first day of the expansion, BUT it may happen that I need to update some internal structures. Have fun exploring your options, though!",issues:[]},{type:l.ADD,text:"Added an 'Assume every legendary class item is an artifice armor' setting to allow finer control over the artifice armor assumption.",issues:[]},{type:l.MODIFIED,text:"You will no longer be logged out when the API is offline. The app will use the last known data until the API is back online.",issues:[]},{type:l.MODIFIED,text:"Reworked how calculation workers are spawned, thus improving performance. Thanks to nznaza.",issues:[]},{type:l.MODIFIED,text:"Improved Mod optimisation, leading in drastically reduced runtime when paired with 'Add mods to reduce waste'.",issues:[]},{type:l.MODIFIED,text:"Improved 'Reduce Waste' optimisation. Smarter, better, faster, stronger.",issues:[]},{type:l.MODIFIED,text:"Changing the configuration during a running calculation now restarts the calculation process. Outdated results are a thing of the past!",issues:[]},{type:l.MODIFIED,text:"The amount of workers is now variable and depends on the workload at hand. This should help the insane armor hoarders to reduce the calculation time.",issues:[]},{type:l.MODIFIED,text:"Prepared the vendor API for upcoming Bungie API changes. Thanks to nznaza.",issues:[]},{type:l.MODIFIED,text:"Added 'Exotic Cipher' to the resource overview and removed legendary shards.",issues:[]},{type:l.MODIFIED,text:"Modified the inventory update procedure to be more efficient. This may result in a few hiccups in the first stage - if you encounter any issues, please let me know!",issues:[]},{type:l.MODIFIED,text:"Vendor data is now updated asynchronously. This means that the page will load faster, but the vendor data may be outdated for a few seconds.",issues:[]},{type:l.MODIFIED,text:"The progress notifications are now color-coded and on the right. If there are multiple notifications, then they are stacked.",issues:[]},{type:l.MODIFIED,text:"The display of the used mods is now color-coded to make it easier to distinguish between the different mod types in a single glance.",issues:[]},{type:l.MODIFIED,text:"Locked locks are now red. Mainly because adisypher wouldn't stop asking.",issues:[]},{type:l.MODIFIED,text:"Minor bugfixes and performance optimisation.",issues:[]}]},{version:"2.5.4",date:"April 10, 2024",entries:[{type:l.MODIFIED,text:"Fixed a minor issue where the vendor api may be disabled and block the entire page.",issues:[]}]},{version:"2.5.3",date:"April 5, 2024",entries:[{type:l.MODIFIED,text:"Adapted the logic to parse the new Clarity data format. Thanks to ciar\xe1n!",issues:[]}]},{version:"2.5.2",date:"November 29, 2023",entries:[{type:l.ADD,text:"Split the 'Assume all items are masterworked' switch into 'legendary' and 'exotic' switches. Thanks to Mojo!",issues:[]},{type:l.ADD,text:"Added the 'Ascendant Protector' Perk. Thanks to Mojo!",issues:[]},{type:l.MODIFIED,text:"Fixed artifice mods, again. Thanks to Mojo!",issues:[]},{type:l.MODIFIED,text:"Fixed 'Ghost Items' from the vendor import. Thanks to ciar\xe1n!",issues:[]},{type:l.MODIFIED,text:"Updated the values and descriptions for Subclass Fragments. Thanks to ciar\xe1n!",issues:[]},{type:l.MODIFIED,text:"Artifice Mods are now correctly added to the DIM export. Thanks to nznaza!",issues:[]}]},{version:"2.5.1",date:"October 29, 2023",entries:[{type:l.ADD,text:"Added the 'Exhumed Excess' Perk. The modslot limitations are now ordered. Thanks to Mojo!",issues:[]},{type:l.MODIFIED,text:"Added a solution for the stat distances 63, 64 and 65. You probably won't ever see it, as this is 'five artifice and five major mods'.",issues:[]},{type:l.MODIFIED,text:"'Fix wasted points' is now ignored for stats that are locked.",issues:[]}]},{version:"2.5.0",date:"October 14, 2023",entries:[{type:l.ADD,text:"The stat cooldowns and values are now automatically updated from the Clarity database. Thanks to ciar\xe1n!",issues:[]},{type:l.ADD,text:"The new modslots/perks are now available in the dropdown.",issues:[]},{type:l.MODIFIED,text:"The stat cooldowns now show icons. Thanks to ciar\xe1n!",issues:[]},{type:l.MODIFIED,text:"The fragments now show their icons. Thanks to ciar\xe1n!",issues:[]},{type:l.MODIFIED,text:"Minor internal updates for DIM references. Thanks to bhollis!",issues:[]},{type:l.MODIFIED,text:"Improved the wasted stats selection, again!",issues:[]}]},{version:"2.4.2",date:"July 11, 2023",entries:[{type:l.ADD,text:"Added the ability to use collection roll armor. This is disabled by default. Thanks to ciar\xe1n!",issues:[]},{type:l.ADD,text:"Added the ability to use vendor armor, including Xur. This is disabled by default. Thanks to ciar\xe1n!",issues:[]},{type:l.ADD,text:"Added the ability to select the optimisation strategy. You can now choose between 'Reduce waste', 'Reduce used mods' and 'Reduce used modslots'. The default is 'Reduce waste'.",issues:[]},{type:l.ADD,text:"Re-added the reduce wasted stats feature. It is now disabled by default. It is a bit slower and not really necessary for most people.",issues:[]},{type:l.MODIFIED,text:"Zero Waste is no longer dependent on the 'Reduce wasted stats' setting. In fact, it practically overwrites it.",issues:[]},{type:l.REMOVE,text:"Removed the 'Extra optimisation steps' setting. It is now always enabled.",issues:[]}]},{version:"2.4.0",date:"May 23, 2023",entries:[{type:l.MODIFIED,text:"Rewrote the internal algorithm. It makes stuff faster and gives better results.",issues:[]},{type:l.ADD,text:"Added a 'Perform further optimisation' setting. This will give you better results, but it will take a bit longer.",issues:[]},{type:l.ADD,text:"Added Icons to the Stat Selection to make it easier to see which row is which perk.",issues:[]},{type:l.ADD,text:"Added button to download results as JSON.",issues:[]},{type:l.ADD,text:"Added Sonar Amplifier perk.",issues:[]},{type:l.MODIFIED,text:"Enabled Modslot limitation.",issues:[]},{type:l.MODIFIED,text:"Enabled the 3x100 and 4x100 buttons.",issues:[]},{type:l.MODIFIED,text:"Enabled Zero-Waste mode.",issues:[]},{type:l.MODIFIED,text:"Temporarily disabled 'Reduce Wasted Stats'. It will be back soon.",issues:[]}]},{version:"2.3.2",date:"May 7, 2023",entries:[{type:l.ADD,text:"Feature: Added 'Guardian Games' class item type to the dropdown. ",issues:[]},{type:l.MODIFIED,text:"Reformatted every file in the codebase and improved the code workflow. You should not really see this on your end, but it will allow everyone to easily contribute to this open source project!",issues:[]}]},{version:"2.3.1",date:"April 2, 2023",entries:[{type:l.ADD,text:"Feature: Added the possibility to only show builds that contain an exotic.",issues:[]},{type:l.ADD,text:"Added 'Root of Nightmares' modslot filter.",issues:[]},{type:l.ADD,text:"Added 'Queen's Favor' seasonal perk filter.",issues:[]},{type:l.ADD,text:"Added text indicating that only fragments that affect stats are shown.",issues:[]},{type:l.MODIFIED,text:"Fixed deprecated mods being sent when opening the loadout in DIM. Also adds artifice mods now.",issues:[]},{type:l.MODIFIED,text:"Fixed an issue where the tool did not put artifice mods on the class item if you forced the class item to be artifice.....",issues:[]},{type:l.MODIFIED,text:"Fixed an issue where the default selection was the titan class, even if you had no titan characters.",issues:[]}]},{version:"2.3.0",date:"March 14, 2023",entries:[{type:l.ADD,text:"Automatically adds artifice mods to your armor. This replaces minor and major mods where possible.",issues:[]},{type:l.ADD,text:"Added the amount of used artifice mods to the result table overview (next to the mods). They are not calculated into the 'mod cost' column.",issues:[]},{type:l.ADD,text:"Added new fragments, including Strand.",issues:[]},{type:l.MODIFIED,text:"Adapted modslot cost of Resilience and Recovery mods.",issues:[]},{type:l.MODIFIED,text:"Introduced more modules for asynchronous loading. This is more a speed improvement than a feature.",issues:[]},{type:l.MODIFIED,text:"Reduced the maximum limit of reported results from 50,000 to 30,000. Note that D2AP still calculates every result, it just does not report them. This is a major speedup, and you usually should not even realize the change.",issues:[]},{type:l.MODIFIED,text:"Increased the visual contrast of major mods in the results table. This means it is now easier to distinguish major from minor mods.",issues:[]},{type:l.REMOVE,text:"Removed the elemental affinity completely.",issues:[]},{type:l.REMOVE,text:"DISABLED the 'Zero Waste' feature. It will be re-enabled in the future.",issues:[]},{type:l.REMOVE,text:"DISABLED the 'Modslot Limitation' feature. It will be re-enabled in the future.",issues:[]}]},{version:"2.2.16",date:"December 7, 2022",entries:[{type:l.ADD,text:"Added Ember of Torches (with -10 Discipline).",issues:[]},{type:l.ADD,text:"Added Retrofit mods (mobility and resilience).",issues:[]},{type:l.ADD,text:"Added armor perk 'Seraph Sensor Array' to the dropdown.",issues:[]},{type:l.ADD,text:"Added a Game2Give message. Let's support the little lights together!",issues:[]},{type:l.MODIFIED,text:"Fixed artifice modslot.",issues:[]},{type:l.MODIFIED,text:"Membership data is cached longer to make things faster and to ease the Bungie API.",issues:[]}]},{version:"2.2.15",date:"October 18, 2022",entries:[{type:l.ADD,text:"Added FOTL masks.",issues:[]}]},{version:"2.2.13",date:"September 23, 2022",entries:[{type:l.ADD,text:"Added an advanced setting to replace the 'Tiers' column with a 'Max Tiers' column. This is adds the amount of open modslots to the column, but ignores mod limitations at the moment. A T32 build without mods will now show T37.",issues:[]}]},{version:"2.2.12",date:"September 11, 2022",entries:[{type:l.MODIFIED,text:"Changed the layout to force the settings (left) and results (right) to be next to each other. This means that the page is more mobile approachable. This is also the first step to a more flexible layout.",issues:[]}]},{version:"2.2.11",date:"September 10, 2022",entries:[{type:l.ADD,text:"Added a display for your owned upgrade materials in the character overview.",issues:[]},{type:l.ADD,text:"Added a notification to warn you when you create a modslot limitation that yields no results. Note that this will not (yet) show invalid combinations over all armor, just for the given slot you selected it in.",issues:[]},{type:l.MODIFIED,text:"Reduced size of exotic icons so that the left side will not grow on Titan class.",issues:[]},{type:l.MODIFIED,text:"The 'Performance Optimisation' settings will now always re-enable after a reload to prevent your browser being stuck in a crash-loop. (This is for you, iOS Safari users)",issues:[]},{type:l.MODIFIED,text:"Changed wording of the 'Performance Optimisation' setting to prevent people from using it incorrectly.",issues:[]}]},{version:"2.2.10",date:"September 2, 2022",entries:[{type:l.MODIFIED,text:"Updated Artifice Modslot Hash after the most recent hotfix.",issues:[]}]},{version:"2.2.9",date:"September 1, 2022",entries:[{type:l.MODIFIED,text:"Tooltips do now not obstruct the clicks of stats. This fixes the iOS stat selection issue.",issues:[]}]},{version:"2.2.8c",date:"August 24, 2022",entries:[{type:l.MODIFIED,text:"The manifest is now (again) automatically updated on version changes. This fixes your artifice problems at the beginning of a new season.",issues:[]},{type:l.MODIFIED,text:"Added subclass hashes for Arc. This means that it now transfers to DIM.",issues:[]}]},{version:"2.2.8b",date:"August 24, 2022",entries:[{type:l.MODIFIED,text:"Fixed Artifice modslots. You might need to wait a bit, alternatively delete the database (Account section) or re-log.",issues:[]}]},{version:"2.2.8a",date:"August 23, 2022",entries:[{type:l.MODIFIED,text:"Updated grenade and melee cooldowns for arc.",issues:[]}]},{version:"2.2.8",date:"August 23, 2022",entries:[{type:l.ADD,text:"Added Arc 3.0 fragments.",issues:[]},{type:l.MODIFIED,text:"Fixed tooltip issues on iOS devices.",issues:[]},{type:l.MODIFIED,text:"Fixed an infinite loading issue.",issues:[]}]},{version:"2.2.7",date:"June 25, 2022",entries:[{type:l.ADD,text:"Added a link to my Discord bot Crayon.",issues:[]},{type:l.MODIFIED,text:"Fixed an issue where a large number of stored configurations would drastically slow down the app.",issues:[]}]},{version:"2.2.6",date:"June 8, 2022",entries:[{type:l.MODIFIED,text:"Fixed an issue where the elemental selection would not give the correct results under very specific conditions.",issues:[]}]},{version:"2.2.5",date:"June 7, 2022",entries:[{type:l.ADD,text:"Added all of the new ability cooldowns.",issues:[]},{type:l.MODIFIED,text:"Completely reworked the ability cooldown tooltips. They now show the difference to the currently selected tier.",issues:[]}]},{version:"2.2.4",date:"June 3, 2022",entries:[{type:l.MODIFIED,text:"Fixed the export to DIM. Thanks to bhollis for the fix!",issues:[]},{type:l.MODIFIED,text:"The manifest now automatically updates when Bungie updated it too, except just after a fixed timespan.",issues:[]}]},{version:"2.2.3",date:"May 24, 2022",entries:[{type:l.ADD,text:"Added Solar 3.0",issues:[]},{type:l.MODIFIED,text:"Adapted artifice armor to the new Season.",issues:[]}]},{version:"2.2.2",date:"Mar 9, 2022",entries:[{type:l.ADD,text:"See what mods do by hovering over their name.",issues:["D2AP-41"]},{type:l.ADD,text:"Added Vow of the Disciple armor.",issues:["D2AP-35"]},{type:l.ADD,text:"Added 'Uniformed Officer' armor.",issues:["D2AP-35"]},{type:l.MODIFIED,text:"Fixed Scatter grenades being Tier 3 (were T4 before).",issues:["D2AP-39"]},{type:l.MODIFIED,text:"Changed the color of the login button.",issues:["D2AP-37"]},{type:l.MODIFIED,text:"When a selected character class does not exist, the tool will now select the first available class as default."}]},{version:"2.2.1",date:"Feb 22, 2022",entries:[{type:l.ADD,text:"Added a switch to select between Stasis and Void 3.0 fragments. Stasis is enabled per default to ensure backwards compatibility of saved configurations.",issues:["D2AP-10"]},{type:l.ADD,text:"Added a debug section to the (new) account settings page. The account settings page does not do much yet, I just wanted to deploy the debug functions.",issues:["D2AP-23"]},{type:l.MODIFIED,text:"Modified super cooldowns for Witch Queen."},{type:l.MODIFIED,text:"Added a minor text to the exotic overview that explains that exotics not in the inventory are shown in grayscale. You can also no longer select those.",issues:["D2AP-17"]},{type:l.MODIFIED,text:"Minor changes in how the database behaves on logout. It now deletes the inventory when you log out, but still keeps the manifest.",issues:["D2AP-27"]},{type:l.MODIFIED,text:"Users are now logged out when the Bungie.Net API is down.",issues:["D2AP-34"]},{type:l.MODIFIED,text:"Fixed Charge Harvester and Echo of Persistence incorrectly reducing Discipline instead of recovery when used on a Warlock."}]},{version:"2.2.0",date:"Feb 09, 2022",entries:[{type:l.ADD,text:"Added the ability to select armor perks and 5th slots. Just like the elements you can optionally enforce it to be on a certain slot. Useful if you want to build Iron Banner armor or utilize artifice modslots."},{type:l.ADD,text:"Added the ability to limit the available points on each armor item for stat mods. This allows you to limit the kind of stat mods that are usable. You can now say 'do not use major intellect mods'."},{type:l.ADD,text:"Added the ability to lock stat tiers. Previously you could only set 'Use Tier 3 or higher', now you can optionally set 'Enforce Tier 3'. This is useful for example if you want to enforce T3 mobility on a Titan."},{type:l.ADD,text:"Added a summary of important configuration choices to the result header to improve readability."},{type:l.ADD,text:"Added a button to open the DIM Loadout Builder with the current settings."},{type:l.ADD,text:"Added an option that forces the correct element on non-masterworked armor pieces. This is per default enabled."},{type:l.ADD,text:"Added cooldowns for class abilities (Dodge, Barricade, Rift)."},{type:l.ADD,text:"Added visual indicators for minor and major mods in the overview table. The whole visualization is also more compact now."},{type:l.ADD,text:"Added visual cursor indicator to every clickable input, e.g. in the exotic, element and perk/mod selection."},{type:l.ADD,text:"Added a (very basic) item tooltip."},{type:l.ADD,text:"Show the required material cost for each item. Note that this ignores your class item."},{type:l.ADD,text:"Added a stat summary table to the stat detail view. This allows you to easily share a stat distribution with others."},{type:l.ADD,text:"Added 'Clear this section' button to each configuration section."},{type:l.ADD,text:"Added support for your class items. You won't see a lot of this, except when you use the slot and element limitation in specific ways."},{type:l.ADD,text:"Detailed information is now in expandable containers to improve readability."},{type:l.ADD,text:"Show the seasonal icon for every item too."},{type:l.ADD,text:"Added info text to the table headers."},{type:l.ADD,text:"The character selection now shows the existing characters - and their emblems too!"},{type:l.ADD,text:"Added Discord and another Ko-Fi link. You can find them in the character selection."},{type:l.ADD,text:"Added a changelog popup right at the start of the page. It only appears when a new update occured. You can always trigger it by clicking the current version number."},{type:l.ADD,text:"Now utilizes three webworkers instead of one. The process is simple, but generally speeds up the results by a huge margin."},{type:l.ADD,text:"Added an Armor Investigation tab for data scientists."},{type:l.ADD,text:"Added a sidenav for smaller devices and reworked the top menubar."},{type:l.ADD,text:"The detailed result table now shows the perk of an selected item, if it has one. This also applies to class items, if necessary."},{type:l.ADD,text:"Hovering over exotics in the exotic selection now displays their perk description."},{type:l.ADD,text:"Added an advanced setting to disable white, green and blue armor."},{type:l.ADD,text:"Added an advanced setting to ignore sunset armor."},{type:l.MODIFIED,text:"Changed the word 'Permutation' to 'Combination' wherever it has been used."},{type:l.MODIFIED,text:"Clicking on a setting that is already set does not re-trigger the calculation now. For example, selecting T3 recovery when it is already at T3 now does nothing."},{type:l.MODIFIED,text:"The default for all stats is now tier 0 instead of tier 1, to make it consistent with the clear buttons."},{type:l.MODIFIED,text:"The default setting for 'ignore non masterworked elements' is now 'off'."},{type:l.MODIFIED,text:"The 'time required' number now measures the time from before the webworkers are spawned until all webworkers are done. Previously it only monitored the time required INSIDE the webworker, so it may show slower times."},{type:l.MODIFIED,text:"Fixed the width of the 'Exotic' header in the results table. This means that it is now farther away from the 'Mobility' column."},{type:l.MODIFIED,text:"Completely reworked the elemental affinity selection. Per default it is now not fixed to a certain armor slot, but using a toggle button you can simply do so again."},{type:l.MODIFIED,text:"The results header now screams at you in bright red letters when no results are found."},{type:l.MODIFIED,text:"The alternating rows of the results details table have now a lighter color to make it easier to read."},{type:l.MODIFIED,text:"Fixed ability cooldowns for melee and grenade at tier 7 and tier 8."},{type:l.MODIFIED,text:"Cooldowns now are shown in MM:SS instead of plain seconds."},{type:l.MODIFIED,text:"Completely rewrote the core logic of D2ArmorPicker for the changes mentioned above."},{type:l.MODIFIED,text:"Exotics you do not have in your vault or inventory are now greyed out."},{type:l.MODIFIED,text:"Fixed an issue where exotics were not shown at your first login."},{type:l.MODIFIED,text:"Changed the color of important buttons so that they are easier to read."},{type:l.MODIFIED,text:"The icons of items in the results are now loaded asynchronous from their hashes. This saves a lot of memory, as I do not have to send two icon URLs for each item - for each result. I will further improve this in a later version."},{type:l.MODIFIED,text:"Maximum table output is now limited to 50 results (instead of 200). It still defaults to 20.}"},{type:l.MODIFIED,text:"Completely reworked the visuals of the changelog. It is now more pleasing to the eye."}]},{version:"2.1.4",date:"Dec 29, 2021",entries:[{type:l.MODIFIED,text:"Item stats are now built from their plugs and InvestmentStats (in case of some exotics). This fixes potentially invalid item stats when you use mods like Powerful Friends or Protective Light. A big thanks to u/deangaudet for reminding me that the API also reports the plugs of an item."},{type:l.MODIFIED,text:"Only save necessary item types of the manifest (namely mods and armor). Also, save twhe investmentStats now."},{type:l.MODIFIED,text:"Sped up the item update step."}]},{version:"2.1.3",date:"Dec 16, 2021",entries:[{type:l.MODIFIED,text:"Added new stat cooldowns"}]},{version:"2.1.2",date:"Dec 1, 2021",entries:[{type:l.MODIFIED,text:"The changelog is now in a scrollable box."},{type:l.MODIFIED,text:"Changed buymeacoffee to a ko-fi link. This way we can keep the PayPal support!"}]},{version:"2.1.1",date:"Nov 3, 2021",entries:[{type:l.REMOVE,text:"Removed the HALLOWEEN SPECIAL feature. Maybe something like this will return some day?"},{type:l.ADD,text:"Added tooltip to the item icons in the detailed overview to show the name of the item."},{type:l.MODIFIED,text:"Fixed an issue where the list of exotics did not load at the first login."},{type:l.MODIFIED,text:"Saved configurations now contain the current software version for future reference."},{type:l.MODIFIED,text:"Minor code quality improvements"}]},{version:"2.1.0 (major)",date:"Oct 29, 2021",entries:[{type:l.REMOVE,text:"Completely removed V1 of the tool. If you had any problems with V2, you had over three months to report them."},{type:l.ADD,text:"The stat selection now displays which stat tiers are added by stat mods (PF/RL) or stasis fragments in the configuration."},{type:l.ADD,text:"You can now export (and import) individual configurations as well as all stored configurations at once."},{type:l.ADD,text:"Added a navigation bar to the title bar. On smaller screens it is replaced by two buttons in the character selection."},{type:l.ADD,text:"Added more details to the last step of the 'What to do now?' section. It now lists the fragments and mods you selected."},{type:l.MODIFIED,text:"Optimized code and reduced overall page size."}]},{version:"2.0.16",date:"Oct 26, 2021",entries:[{type:l.MODIFIED,text:"Completely rewrote the core logic in order to fix the memory issues. The tool will now no longer crash when you have many armor items, but it's slightly slower than the previous approach. I tested it with 600 items - it works and does not crash, but takes up to a minute. Make sure to never get that much armor and to lock an exotic right away."},{type:l.MODIFIED,text:"The rewrite also fixed the issue where the tool did not work in Safari, or more generally, on Mac and iPhone."},{type:l.MODIFIED,text:"The rewrite also fixed an issue where items could not be found when an result update was triggered while the inventory was updated."}]},{version:"2.0.15",date:"Oct 24, 2021",entries:[{type:l.MODIFIED,text:"Updated the visual display of the cluster page. It displays the stats in a better way now."},{type:l.MODIFIED,text:"Fixed an issue with login, where you were automatically logged in again and could not switch accounts."}]},{version:"2.0.14",date:"Oct 21, 2021",entries:[{type:l.MODIFIED,text:"Updated URLs to the mobility, resilience and recovery images, as Bungie decided to change their URLs in today's hotfix."}]},{version:"2.0.13",date:"Oct 20, 2021",entries:[{type:l.ADD,text:"Added a chart to the armor clustering page, showing each clusters average stats."},{type:l.MODIFIED,text:"Stats over 100 are now seen as wasted."}]},{version:"2.0.12",date:"Oct 18, 2021",entries:[{type:l.ADD,text:"Added an experimental armor clustering feature."}]},{version:"2.0.11",date:"Oct 13, 2021",entries:[{type:l.ADD,text:"HALLOWEEN SPECIAL! Added (temporary) filter for halloween masks! This will be removed after the event."},{type:l.MODIFIED,text:"Fix: Clear the results if you switch character and no possible permutations can be found."}]},{version:"2.0.10",date:"Oct 10, 2021",entries:[{type:l.ADD,text:"Added 'Equip Items' button to the detailed item overview."}]},{version:"2.0.9",date:"Oct 6, 2021",entries:[{type:l.ADD,text:"Added a detailed description of the steps required to build a selected result."},{type:l.ADD,text:"Added a button to disable all four armor pieces at once."},{type:l.MODIFIED,text:"Fixed an issue where the permutations were not updated after 'Ignore armor elemental affinities on masterworked armor' was changed."}]},{version:"2.0.8",date:"Oct 5, 2021",entries:[{type:l.ADD,text:"Added this changelog to the help page."},{type:l.ADD,text:"Added 'Move to Inventory' button (beta)."},{type:l.ADD,text:"Split up 'Assume items are masterworked' into three settings: Class Items, Legendaries, Exotics"},{type:l.MODIFIED,text:"'Try to optimize wasted stats' is now active per default."},{type:l.MODIFIED,text:"Introduced an item buffer in the results component to further reduce memory usage."}]}];let Ce=(()=>{class n{constructor(e){this.changelog=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(se))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-changelog-dialog"]],decls:9,vars:2,consts:[["mat-dialog-title","",1,"title"],[1,"mat-typography"],["align","end"],["cdkFocusInitial","","color","primary","mat-raised-button","",3,"mat-dialog-close"]],template:function(e,o){1&e&&(t.TgZ(0,"h2",0),t._uU(1),t.qZA(),t.TgZ(2,"mat-dialog-content",1)(3,"div"),t._uU(4," Hi! There has been a new version of D2ArmorPicker! The following list shows all the relevant changes. Note that you can always look at the changelogs in the Help tab. "),t.qZA(),t._UZ(5,"app-changelog-list"),t.qZA(),t.TgZ(6,"mat-dialog-actions",2)(7,"button",3),t._uU(8,"Thanks, I saw it!"),t.qZA()()),2&e&&(t.xp6(1),t.hij("D2ArmorPicker Changelog for Version ",o.changelog.changelogData[0].version,""),t.xp6(6),t.Q6J("mat-dialog-close",!0))},styles:[".title[_ngcontent-%COMP%]{text-decoration:underline;-webkit-text-decoration-color:#0059ff;text-decoration-color:#0059ff}"]}),n})();var kt=_(5412);let se=(()=>{class n{constructor(e){this.dialog=e}setChangelogSeenFlag(){return localStorage.setItem("last-changelog-version",this.changelogData[0].version)}get lastViewedChangelog(){return localStorage.getItem("last-changelog-version")}get mustShowChangelog(){return this.changelogData[0].version!==this.lastViewedChangelog}get changelogData(){return ye}openChangelogDialog(){this.dialog.open(Ce).afterClosed().subscribe(o=>{this.setChangelogSeenFlag()})}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(kt.uw))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var pt=_(266),Pe=_(3162),St=_(7392),Gt=_(6338),Te=_(3848),Re=_(3267);let zt=(()=>{class n{constructor(e,o){this.templateRef=e,this.vcRef=o,this.context={$implicit:null,ngVar:null},this.hasView=!1}set ngVar(e){this.context.$implicit=this.context.ngVar=e,this.hasView||(this.vcRef.createEmbeddedView(this.templateRef,this.context),this.hasView=!0)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.Rgc),t.Y36(t.s_b))},n.\u0275dir=t.lG2({type:n,selectors:[["","ngVar",""]],inputs:{ngVar:"ngVar"}}),n})(),Ne=(()=>{class n{constructor(e){this.changelog=e}ngAfterViewInit(){this.changelog.mustShowChangelog&&this.changelog.openChangelogDialog()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(se))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-changelog-dialog-controller"]],decls:0,vars:0,template:function(e,o){},encapsulation:2}),n})();function qe(n,i){1&n&&(t.TgZ(0,"mat-toolbar",31),t._UZ(1,"span",20),t._uU(2," The API is unavailable. The app will work with the data it has available right now. "),t._UZ(3,"span",20),t.qZA())}function Fe(n,i){1&n&&(t.TgZ(0,"mat-toolbar",31),t._UZ(1,"span",20),t._uU(2," There was an error with the authentication. The API may be down, or your session timed out. "),t._UZ(3,"span",20),t.qZA())}function Je(n,i){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,Fe,4,0,"mat-toolbar",1),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e.authError)}}function Le(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"a",32),t.NdJ("click",function(){t.CHM(e),t.oxw();const a=t.MAs(5);return t.KtG(a.toggle())}),t._uU(1),t.qZA()}if(2&n){const e=i.$implicit,o=i.index,a=t.oxw(2);t.ekj("active",a.activeLinkIndex===o),t.Q6J("routerLink",e.link),t.xp6(1),t.hij(" ",e.name," ")}}function Ye(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",33),t.NdJ("click",function(){t.CHM(e),t.oxw();const a=t.MAs(5);return t.KtG(a.toggle())}),t.TgZ(1,"mat-icon",5),t._uU(2,"menu"),t.qZA()()}}function Be(n,i){if(1&n&&(t.TgZ(0,"a",34),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=i.index,a=t.oxw(2);t.Q6J("active",a.activeLinkIndex===o)("routerLink",e.link),t.xp6(1),t.hij(" ",e.name," ")}}function Ve(n,i){1&n&&t._UZ(0,"mat-progress-bar",36)}function Qe(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Ve,1,0,"mat-progress-bar",35),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e.updatingResultsTable||e.calculatingResults||e.calculatingPermutations||e.updatingInventory||e.updatingVendors||e.updatingManifest)}}function He(n,i){1&n&&(t.TgZ(0,"mat-card",43),t._uU(1," Updating vendor information inventory in the background. "),t.qZA())}function We(n,i){1&n&&(t.TgZ(0,"mat-card",44),t._uU(1," Please wait:"),t._UZ(2,"br"),t._uU(3," Updating the cached manifest."),t.qZA())}function je(n,i){1&n&&(t.TgZ(0,"mat-card",45),t._uU(1," Please wait:"),t._UZ(2,"br"),t._uU(3," Updating the cached inventory."),t.qZA())}function Ge(n,i){if(1&n&&(t.TgZ(0,"mat-card",46),t._uU(1," Please wait:"),t._UZ(2,"br"),t._uU(3," Calculating possible results. "),t._UZ(4,"mat-progress-bar",47),t.qZA()),2&n){const e=t.oxw(3);t.xp6(4),t.Q6J("value",e.computationProgress)}}function ze(n,i){1&n&&(t.TgZ(0,"mat-card",48),t._uU(1," Please wait:"),t._UZ(2,"br"),t._uU(3,"Updating the result display table."),t.qZA())}function Ke(n,i){if(1&n&&(t.TgZ(0,"div",37),t.YNc(1,He,2,0,"mat-card",38),t.YNc(2,We,4,0,"mat-card",39),t.YNc(3,je,4,0,"mat-card",40),t.YNc(4,Ge,5,1,"mat-card",41),t.YNc(5,ze,4,0,"mat-card",42),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e.updatingVendors),t.xp6(1),t.Q6J("ngIf",e.updatingManifest),t.xp6(1),t.Q6J("ngIf",e.updatingInventory),t.xp6(1),t.Q6J("ngIf",e.calculatingResults),t.xp6(1),t.Q6J("ngIf",e.updatingResultsTable)}}function $e(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div"),t.YNc(1,qe,4,0,"mat-toolbar",1),t.YNc(2,Je,2,1,"div",0),t.ALo(3,"async"),t.TgZ(4,"mat-sidenav",2,3),t.ALo(6,"async"),t.TgZ(7,"mat-toolbar")(8,"button",4),t.NdJ("click",function(){t.CHM(e);const a=t.MAs(5);return t.KtG(a.toggle())}),t.TgZ(9,"mat-icon",5),t._uU(10,"menu"),t.qZA(),t._uU(11," Close Menu "),t.qZA()(),t._UZ(12,"hr"),t.TgZ(13,"mat-nav-list"),t.YNc(14,Le,2,4,"a",6),t._UZ(15,"hr"),t.TgZ(16,"a",7)(17,"a",8)(18,"mat-icon",9),t._uU(19,"attach_money"),t.qZA(),t._uU(20," Buy me a coffee! "),t.qZA()(),t.TgZ(21,"a",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.changelog.openChangelogDialog())}),t.TgZ(22,"a",11),t._uU(23," Open changelog "),t.qZA()(),t._UZ(24,"hr"),t.qZA()(),t.TgZ(25,"mat-toolbar",12),t.YNc(26,Ye,3,0,"button",13),t.ALo(27,"async"),t.TgZ(28,"span"),t._uU(29,"D2ArmorPicker "),t.TgZ(30,"small"),t._uU(31," by Mijago"),t.qZA(),t.TgZ(32,"a",14),t._UZ(33,"img",15),t.qZA(),t.TgZ(34,"a",16),t._UZ(35,"img",17),t.qZA(),t.TgZ(36,"a",18),t._UZ(37,"img",19),t.qZA()(),t._UZ(38,"span",20),t.TgZ(39,"div",21)(40,"nav",22),t.YNc(41,Be,2,3,"a",23),t.qZA()(),t._UZ(42,"span",20),t.TgZ(43,"div",24)(44,"span",25)(45,"a",26),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.changelog.openChangelogDialog())}),t._uU(46),t.qZA()(),t.TgZ(47,"a",27)(48,"mat-icon",9),t._uU(49,"attach_money"),t.qZA(),t._uU(50," Buy me a coffee! "),t.qZA(),t.TgZ(51,"button",28),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.refreshAll(!0))}),t.TgZ(52,"mat-icon"),t._uU(53,"refresh"),t.qZA()(),t.TgZ(54,"button",29),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.logout())}),t.TgZ(55,"mat-icon"),t._uU(56,"logout"),t.qZA()()()(),t._UZ(57,"router-outlet"),t.YNc(58,Qe,2,1,"span",0),t.ALo(59,"async"),t.YNc(60,Ke,6,5,"div",30),t.ALo(61,"async"),t._UZ(62,"app-changelog-dialog-controller"),t.qZA()}if(2&n){const e=i.ngVar,o=t.oxw();t.xp6(1),t.Q6J("ngIf",e.apiError),t.xp6(1),t.Q6J("ngVar",t.lcZ(3,10,o.status.status)),t.xp6(2),t.Q6J("opened",!1),t.uIk("role",t.lcZ(6,12,o.isHandset$)?"dialog":"navigation"),t.xp6(10),t.Q6J("ngForOf",o.navLinks),t.xp6(12),t.Q6J("ngIf",t.lcZ(27,14,o.isHandset$)),t.xp6(15),t.Q6J("ngForOf",o.navLinks),t.xp6(5),t.hij("v",o.version,"\xa0"),t.xp6(12),t.Q6J("ngVar",t.lcZ(59,16,o.status.status)),t.xp6(2),t.Q6J("ngVar",t.lcZ(61,18,o.status.status))}}let Xe=(()=>{class n{constructor(e,o,a,s,r,d,p){this.status=e,this.breakpointObserver=o,this.inv=a,this.auth=s,this.router=r,this.characterStats=d,this.changelog=p,this.version=g.N.version,this.activeLinkIndex=0,this.computationProgress=0,this.navLinks=[{link:"/",name:"Home"},{link:"/cluster",name:"Clustering"},{link:"/help",name:"Help"},{link:"/investigate",name:"Armor Investigation"},{link:"/account",name:"Account"}],this.isHandset$=this.breakpointObserver.observe([U.u3.Handset,U.u3.Small,U.u3.XSmall]).pipe((0,E.U)(A=>A.matches),(0,F.d)())}ngOnInit(){this.activeLinkIndex=this.navLinks.indexOf(this.navLinks.find(e=>e.link===this.router.url)),this.router.events.subscribe(e=>{e instanceof ot.m2&&(this.activeLinkIndex=this.navLinks.indexOf(this.navLinks.find(o=>o.link===this.router.url)))}),this.characterStats.loadCharacterStats(),this.inv.calculationProgress.subscribe(e=>{this.computationProgress=e})}refreshAll(e){var o=this;return(0,y.Z)(function*(){console.debug("Trigger refreshAll due to button press"),yield o.inv.refreshAll(e)})()}logout(){this.auth.logout()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(vt),t.Y36(U.Yg),t.Y36(Tt),t.Y36(gt),t.Y36(ot.F0),t.Y36(ae),t.Y36(se))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-app-v2-core"]],decls:2,vars:3,consts:[[4,"ngVar"],["color","warn","class","bar-api-warn",4,"ngIf"],["fixedInViewport","","mode","over",1,"sidenav",3,"opened"],["drawer",""],["aria-label","Toggle sidenav","mat-stroked-button","","type","button",3,"click"],["aria-label","Side nav toggle icon"],["mat-list-item","",3,"active","routerLink","click",4,"ngFor","ngForOf"],["href","https://ko-fi.com/mijago","mat-list-item",""],["color","primary","mat-raised-button","","matTooltip","You like my work? This leads you to ko-fi.com, where you can easily support me!","target","_blank"],["inline",""],["mat-list-item","",3,"click"],["mat-raised-button",""],["id","header","role","heading"],["aria-label","Toggle sidenav","mat-icon-button","","type","button",3,"click",4,"ngIf"],["href","https://twitter.com/MijagoCoding/","matTooltip","Birb App","target","_blank"],["alt","Me on twitter","src","assets/logo-twitter.png",1,"logo-twitter"],["href","https://ko-fi.com/mijago","matTooltip","If you like my work, you can always buy me a coffee!","target","_blank"],["alt","Ko-Fi","src","assets/logo-kofi.png",1,"logo-twitter"],["href","http://discord.d2armorpicker.com/","matTooltip","Visit me at the development & support discord.","target","_blank"],["alt","Discord","src","assets/logo-discord.png",1,"logo-twitter"],[1,"header-spacer"],["fxHide.lt-md","true","fxShow","true"],["id","navbar","mat-tab-nav-bar",""],["mat-tab-link","",3,"active","routerLink",4,"ngFor","ngForOf"],["id","buttonContainer"],["fxShow","false","fxShow.gt-md","true","matTooltip","Click to show the changelog dialog.",1,"changelogText"],[3,"click"],["color","accent","fxHide.lt-md","true","fxShow","true","href","https://ko-fi.com/mijago","mat-stroked-button","","matTooltip","You like my work? This leads you to ko-fi.com, where you can easily support me!","target","_blank"],["aria-label","Refresh","mat-icon-button","","matTooltip","Reload all items from the API.",1,"example-icon",3,"click"],["aria-label","Logout","color","warn","mat-icon-button","","matTooltip","Logout",1,"example-icon",3,"click"],["class","info-container",4,"ngVar"],["color","warn",1,"bar-api-warn"],["mat-list-item","",3,"routerLink","click"],["aria-label","Toggle sidenav","mat-icon-button","","type","button",3,"click"],["mat-tab-link","",3,"active","routerLink"],["id","loading","mode","indeterminate",4,"ngIf"],["id","loading","mode","indeterminate"],[1,"info-container"],["class","info info-updating-vendor",4,"ngIf"],["class","info info-updating-manifest",4,"ngIf"],["class","info info-updating-inventory",4,"ngIf"],["class","info info-calculating-results",4,"ngIf"],["class","info info-updating-results",4,"ngIf"],[1,"info","info-updating-vendor"],[1,"info","info-updating-manifest"],[1,"info","info-updating-inventory"],[1,"info","info-calculating-results"],[3,"value"],[1,"info","info-updating-results"]],template:function(e,o){1&e&&(t.YNc(0,$e,63,20,"div",0),t.ALo(1,"async")),2&e&&t.Q6J("ngVar",t.lcZ(1,1,o.status.status))},dependencies:[I.sg,I.O5,M.b8,st.lW,st.zs,Y.a8,pt.gM,Pe.pW,St.Hw,wt.Ye,Gt.Hk,Gt.Tg,Te.BU,Te.Nj,Re.JX,ot.lC,ot.yS,zt,Ne,I.Ov],styles:[".loading[_ngcontent-%COMP%]{cursor:progress}.info-container[_ngcontent-%COMP%]{z-index:1000;position:fixed;top:37px;right:0;display:flex;flex-direction:column;justify-content:center;align-items:center;flex-wrap:wrap;padding:10px;overflow:auto;pointer-events:none}@media (min-width: 1650px){.info-container[_ngcontent-%COMP%]{left:1380px;right:auto}}.info[_ngcontent-%COMP%]{width:200px;margin-bottom:5px;border:antiquewhite 1px solid}.info.info-updating-manifest[_ngcontent-%COMP%]{border-color:#f09c4e}.info.info-updating-inventory[_ngcontent-%COMP%]{border-color:#f0ad4e}.info.info-updating-vendor[_ngcontent-%COMP%]{border-color:#f0e54e}.info.info-calculating-permutations[_ngcontent-%COMP%]{border-color:#5cb85c}.info.info-calculating-results[_ngcontent-%COMP%]{border-color:#89b85c}.info.info-updating-results[_ngcontent-%COMP%]{border-color:#5cb85c}.sidenav-container[_ngcontent-%COMP%]{position:fixed;top:0;left:0;height:100%;z-index:20}.sidenav[_ngcontent-%COMP%]{width:200px;position:fixed;top:0;left:0;height:100%;z-index:20}.sidenav[_ngcontent-%COMP%] .mat-toolbar[_ngcontent-%COMP%]{background:inherit}.sidenav[_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{background-color:#ffffff12;color:#b8c4dc}.mat-toolbar.mat-primary[_ngcontent-%COMP%]{position:sticky;top:0;z-index:1}#header[_ngcontent-%COMP%]{position:relative;height:42px;margin-bottom:5px}.header-spacer[_ngcontent-%COMP%]{flex:1 1 auto}.changelogText[_ngcontent-%COMP%]{cursor:pointer}#loading[_ngcontent-%COMP%]{position:fixed;top:0;width:100%;z-index:1000}.d2ap-router-link[_ngcontent-%COMP%]{cursor:pointer}[_nghost-%COMP%] .mat-tab-link{min-width:75px;opacity:1}.bar-api-warn[_ngcontent-%COMP%]{background-color:#f0894e;position:relative;height:20px;margin-bottom:2px;font-size:16px}"]}),n})();var G=_(2143),ve=_(8739),de=_(6308),yt=_(7340),Ct=_(7625);function tn(n,i){1&n&&(t.ynx(0),t._uU(1," Click on a row to expand it and to see the list of the items required for this build."),t._UZ(2,"br"),t.BQk())}function en(n,i){1&n&&(t.ynx(0),t.TgZ(1,"div",59),t._UZ(2,"img",60),t._uU(3,"\xa0 "),t.qZA(),t.TgZ(4,"span",61)(5,"b"),t._uU(6,"No combinations found."),t.qZA()(),t._uU(7," You should loosen your settings a bit. "),t.BQk())}function nn(n,i){if(1&n&&(t.TgZ(0,"mat-icon",62,63),t.ALo(2,"number"),t._uU(3,"report_problem "),t.qZA()),2&n){const e=t.oxw();t.MGl("matTooltip","Note: To speed up the whole process, only ",t.lcZ(2,1,e.parsedResults)," results are listed in this table.\n If you need more entries, disable the limitation in the advanced settings.")}}function on(n,i){if(1&n&&(t.TgZ(0,"mat-icon",62,63),t.ALo(2,"number"),t._uU(3,"report_problem "),t.qZA()),2&n){const e=t.oxw();t.MGl("matTooltip","Note: To prevent Out-Of-Memory crashes, only ",t.lcZ(2,1,e.parsedResults)," results are listed in this table.\n You should narrow down your settings a bit.")}}function an(n,i){1&n&&(t.TgZ(0,"mat-chip",64,63),t._uU(2,"No Exotic "),t.qZA())}function sn(n,i){1&n&&(t.TgZ(0,"mat-chip",65,63),t._uU(2,"Exotic "),t.qZA())}function rn(n,i){1&n&&(t.TgZ(0,"mat-chip",66,63),t._uU(2," Multiple Exotics "),t.qZA())}function ln(n,i){1&n&&(t.TgZ(0,"mat-chip",67,63),t._uU(2,"No stat mods "),t.qZA())}function cn(n,i){1&n&&(t.TgZ(0,"mat-chip",68,63),t._uU(2,"Reduce wasted stats "),t.qZA())}function mn(n,i){1&n&&(t.TgZ(0,"mat-chip",69,63),t._uU(2,"Stat Mod Limitation "),t.qZA())}function dn(n,i){1&n&&(t.TgZ(0,"mat-chip",70,63),t._uU(2," Armor Perk or Slot "),t.qZA())}function un(n,i){1&n&&(t.TgZ(0,"mat-chip",71,63),t._uU(2,"Zero Waste "),t.qZA())}function pn(n,i){1&n&&(t.TgZ(0,"mat-chip",72,63)(2,"mat-icon",73),t._uU(3,"report_problem"),t.qZA(),t._uU(4," \xa0Assume legendaries are artifice\xa0 "),t.TgZ(5,"mat-icon",73),t._uU(6,"report_problem"),t.qZA()())}function gn(n,i){1&n&&(t.TgZ(0,"mat-chip",74,63)(2,"mat-icon",73),t._uU(3,"report_problem"),t.qZA(),t._uU(4," \xa0Assume exotics are artifice\xa0 "),t.TgZ(5,"mat-icon",73),t._uU(6,"report_problem"),t.qZA()())}function _n(n,i){1&n&&(t.TgZ(0,"mat-chip",75,63)(2,"mat-icon",73),t._uU(3,"report_problem"),t.qZA(),t._uU(4," \xa0Ignoring existing artifice slots on exotic items\xa0 "),t.TgZ(5,"mat-icon",73),t._uU(6,"report_problem"),t.qZA()())}function fn(n,i){1&n&&(t.TgZ(0,"mat-chip",76,63),t._uU(2," Masterworked Exotics Only "),t.qZA())}function hn(n,i){1&n&&(t.TgZ(0,"mat-chip",77,63),t._uU(2," Masterworked Legendaries Only "),t.qZA())}function xn(n,i){1&n&&(t.TgZ(0,"mat-chip",78,63),t._uU(2," Masterwork Assumption "),t.qZA())}function yn(n,i){1&n&&(t.TgZ(0,"mat-chip",79,63),t._uU(2," Include Collection Rolls "),t.qZA())}function Cn(n,i){1&n&&(t.TgZ(0,"mat-chip",80,63),t._uU(2," Include Vendor Items "),t.qZA())}function Tn(n,i){1&n&&(t.TgZ(0,"th",81),t._uU(1,"Mobility "),t.qZA())}function vn(n,i){if(1&n&&(t.TgZ(0,"td",82),t._uU(1),t._UZ(2,"img",83),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.xp6(1),t.hij("",e.stats[o.ArmorStat.Mobility]," ")}}function bn(n,i){1&n&&(t.TgZ(0,"th",84),t._uU(1," Resilience "),t.qZA())}function An(n,i){if(1&n&&(t.TgZ(0,"td",82),t._uU(1),t._UZ(2,"img",85),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.xp6(1),t.hij("",e.stats[o.ArmorStat.Resilience]," ")}}function wn(n,i){1&n&&(t.TgZ(0,"th",86),t._uU(1," Recovery "),t.qZA())}function Zn(n,i){if(1&n&&(t.TgZ(0,"td",82),t._uU(1),t._UZ(2,"img",87),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.xp6(1),t.hij("",e.stats[o.ArmorStat.Recovery]," ")}}function In(n,i){1&n&&(t.TgZ(0,"th",88),t._uU(1," Discipline "),t.qZA())}function Sn(n,i){if(1&n&&(t.TgZ(0,"td",82),t._uU(1),t._UZ(2,"img",89),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.xp6(1),t.hij("",e.stats[o.ArmorStat.Discipline]," ")}}function Mn(n,i){1&n&&(t.TgZ(0,"th",90),t._uU(1," Intellect "),t.qZA())}function On(n,i){if(1&n&&(t.TgZ(0,"td",82),t._uU(1),t._UZ(2,"img",91),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.xp6(1),t.hij("",e.stats[o.ArmorStat.Intellect]," ")}}function kn(n,i){1&n&&(t.TgZ(0,"th",92),t._uU(1,"Strength "),t.qZA())}function En(n,i){if(1&n&&(t.TgZ(0,"td",82),t._uU(1),t._UZ(2,"img",93),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.xp6(1),t.hij("",e.stats[o.ArmorStat.Strength]," ")}}function Un(n,i){1&n&&(t.TgZ(0,"th",94),t._uU(1," Used Mods "),t.qZA())}function Dn(n,i){if(1&n&&(t.TgZ(0,"td",95),t._UZ(1,"app-table-mod-display",96),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("mods",e.mods)("artifice",e.artifice)}}function Pn(n,i){1&n&&(t.TgZ(0,"th",97),t._uU(1," Exotic"),t.qZA())}function Rn(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"img",100,63)(3,"img",101),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.s9C("matTooltip",e.name),t.MGl("src","https://bungie.net/",e.icon,"",t.LSH),t.xp6(2),t.MGl("src","https://bungie.net/",e.watermark,"",t.LSH)}}function Nn(n,i){1&n&&t._UZ(0,"img",102)}function qn(n,i){if(1&n&&(t.TgZ(0,"td",95),t.YNc(1,Rn,4,3,"ng-container",98),t.YNc(2,Nn,1,0,"img",99),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngForOf",e.exotic),t.xp6(1),t.Q6J("ngIf",0===e.exotic.length)}}function Fn(n,i){1&n&&(t.TgZ(0,"th",97),t._uU(1,"Sources"),t.qZA())}function Jn(n,i){1&n&&t._UZ(0,"img",106)}function Ln(n,i){1&n&&t._UZ(0,"img",107)}function Yn(n,i){if(1&n&&(t.TgZ(0,"td",95)(1,"span",103),t.YNc(2,Jn,1,0,"img",104),t.YNc(3,Ln,1,0,"img",105),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Q6J("ngIf",!!e.usesCollectionRoll),t.xp6(1),t.Q6J("ngIf",!!e.usesVendorRoll)}}function Bn(n,i){1&n&&t._UZ(0,"th",97)}function Vn(n,i){1&n&&(t.TgZ(0,"mat-icon",111),t._uU(1," expand_more "),t.qZA())}function Qn(n,i){1&n&&(t.TgZ(0,"mat-icon",112),t._uU(1," expand_less "),t.qZA())}function Hn(n,i){1&n&&(t.TgZ(0,"mat-icon",113,63),t._uU(2," report_problem "),t.qZA())}function Wn(n,i){if(1&n&&(t.TgZ(0,"td",95),t.YNc(1,Vn,2,0,"mat-icon",108),t.YNc(2,Qn,2,0,"mat-icon",109),t.YNc(3,Hn,3,0,"mat-icon",110),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.xp6(1),t.Q6J("ngIf",o.expandedElement!==e),t.xp6(1),t.Q6J("ngIf",o.expandedElement===e),t.xp6(1),t.Q6J("ngIf",o.checkIfAnyItemsMayBeInvalid(e))}}function jn(n,i){1&n&&(t.TgZ(0,"th",114),t._uU(1,"Tiers "),t.qZA())}function Gn(n,i){if(1&n&&(t.TgZ(0,"td",95),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",e.tiers," ")}}function zn(n,i){1&n&&(t.TgZ(0,"th",115),t._uU(1,"Max Tiers "),t.qZA())}function Kn(n,i){if(1&n&&(t.TgZ(0,"td",95),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",e.tiers+(5-e.modCount)," ")}}function $n(n,i){1&n&&(t.TgZ(0,"th",116),t._uU(1,"Wasted "),t.qZA())}function Xn(n,i){if(1&n&&(t.TgZ(0,"td",95),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",e.waste," ")}}function to(n,i){if(1&n&&(t.TgZ(0,"td",95)(1,"div",117),t._UZ(2,"app-expanded-result-content",118),t.qZA()()),2&n){const e=i.$implicit,o=t.oxw();t.uIk("colspan",o.shownColumns.length),t.xp6(1),t.Q6J("@detailExpand",e===o.expandedElement?"expanded":"collapsed"),t.xp6(1),t.Q6J("element",e)}}function eo(n,i){1&n&&t._UZ(0,"tr",119)}function no(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"tr",120),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.expandedElement=r.expandedElement===s?null:s)}),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw();t.ekj("example-expanded-row",o.expandedElement===e)}}function oo(n,i){1&n&&t._UZ(0,"tr",121)}function io(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-card-actions"),t._UZ(1,"span",122),t.TgZ(2,"button",123),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.saveBuilds())}),t._uU(3,"Download results as JSON"),t.qZA()()}}const ao=function(){return["expandedDetail"]},so=function(){return[10,20,50]};var Qt=(()=>{return(n=Qt||(Qt={}))[n.TRANSFER_NONE=0]="TRANSFER_NONE",n[n.WAITING_FOR_TRANSFER=1]="WAITING_FOR_TRANSFER",n[n.TRANSFERRING=2]="TRANSFERRING",n[n.TRANSFERRED=3]="TRANSFERRED",n[n.ERROR_DURING_TRANSFER=4]="ERROR_DURING_TRANSFER",Qt;var n})();let be=(()=>{class n{constructor(e,o,a){this.inventory=e,this.config=o,this.status=a,this.ArmorStat=c.WB,this.StatModifier=c.iV,this._results=[],this._config_assumeLegendariesMasterworked=!1,this._config_assumeExoticsMasterworked=!1,this._config_assumeClassItemMasterworked=!1,this._config_maximumStatMods=5,this._config_selectedExotics=[],this._config_tryLimitWastedStats=!1,this._config_onlyUseMasterworkedExotics=!1,this._config_onlyUseMasterworkedLegendaries=!1,this._config_includeCollectionRolls=!1,this._config_includeVendorRolls=!1,this._config_onlyShowResultsWithNoWastedStats=!1,this._config_assumeEveryLegendaryIsArtifice=!1,this._config_assumeEveryExoticIsArtifice=!1,this._config_ignoreExistingExoticArtificeSlots=!1,this._config_modslotLimitation=[],this._config_armorPerkLimitation=[],this.tableDataSource=new G.by,this.paginator=null,this.sort=null,this.expandedElement=null,this.shownColumns=["exotic","mobility","resilience","recovery","discipline","intellect","strength","tiers","mods","dropdown"],this.selectedClass=3,this.totalTime=0,this.itemCount=0,this.totalResults=0,this.parsedResults=0,this.ngUnsubscribe=new R.xQ}ngOnInit(){var e=this;this.config.configuration.pipe((0,Ct.R)(this.ngUnsubscribe)).subscribe(o=>{this.selectedClass=o.characterClass,this._config_assumeLegendariesMasterworked=o.assumeLegendariesMasterworked,this._config_assumeExoticsMasterworked=o.assumeExoticsMasterworked,this._config_assumeClassItemMasterworked=o.assumeClassItemMasterworked,this._config_tryLimitWastedStats=o.tryLimitWastedStats,this._config_maximumStatMods=o.maximumStatMods,this._config_onlyUseMasterworkedExotics=o.onlyUseMasterworkedExotics,this._config_onlyUseMasterworkedLegendaries=o.onlyUseMasterworkedLegendaries,this._config_includeCollectionRolls=o.includeCollectionRolls,this._config_includeVendorRolls=o.includeVendorRolls,this._config_onlyShowResultsWithNoWastedStats=o.onlyShowResultsWithNoWastedStats,this._config_assumeEveryLegendaryIsArtifice=o.assumeEveryLegendaryIsArtifice,this._config_assumeEveryExoticIsArtifice=o.assumeEveryExoticIsArtifice,this._config_ignoreExistingExoticArtificeSlots=o.ignoreExistingExoticArtificeSlots,this._config_selectedExotics=o.selectedExotics,this._config_armorPerkLimitation=Object.entries(o.armorPerks).filter(s=>s[1].value!=c.Pn.None).map(s=>s[1]),this._config_modslotLimitation=Object.entries(o.maximumModSlots).filter(s=>s[1].value<5).map(s=>s[1]);let a=["exotic","mobility","resilience","recovery","discipline","intellect","strength",o.showPotentialTierColumn?"potential_tiers":"tiers","mods"];o.showWastedStatsColumn&&a.push("waste"),(o.includeVendorRolls||o.includeCollectionRolls)&&a.push("source"),a.push("dropdown"),this.shownColumns=a}),this.inventory.armorResults.pipe((0,Ct.R)(this.ngUnsubscribe)).subscribe(function(){var o=(0,y.Z)(function*(a){e._results=a.results,e.itemCount=a.itemCount,e.totalTime=a.totalTime,e.totalResults=a.totalResults,e.parsedResults=e._results.length,e.status.modifyStatus(s=>s.updatingResultsTable=!0),yield e.updateData(),e.status.modifyStatus(s=>s.updatingResultsTable=!1)});return function(a){return o.apply(this,arguments)}}()),this.tableDataSource.paginator=this.paginator,this.tableDataSource.sort=this.sort,this.tableDataSource.sortingDataAccessor=(o,a)=>{switch(a){case"Mobility":return o.stats[c.WB.Mobility];case"Resilience":return o.stats[c.WB.Resilience];case"Recovery":return o.stats[c.WB.Recovery];case"Discipline":return o.stats[c.WB.Discipline];case"Intellect":return o.stats[c.WB.Intellect];case"Strength":return o.stats[c.WB.Strength];case"Tiers":return o.tiers;case"Max Tiers":return 10*(o.tiers+(5-o.modCount));case"Waste":return o.waste;case"Mods":return 100*o.modCount+o.modCost}return 0}}updateData(){var e=this;return(0,y.Z)(function*(){console.time("Update Table Data"),e.tableDataSource.paginator=e.paginator,e.tableDataSource.sort=e.sort,e.tableDataSource.data=e._results,console.timeEnd("Update Table Data")})()}checkIfAnyItemsMayBeInvalid(e){return(e?.items.filter(o=>o.filter(a=>a.mayBeBugged).length>0).length||0)>0}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}saveBuilds(){let e={configCompressed:this.config.getCurrentConfigBase64Compressed(),config:this.config.readonlyConfigurationSnapshot,results:this._results.map(r=>{let d=Object.assign({},r);return d.items=d.items.map(p=>({hash:p[0].hash,instance:p[0].itemInstanceId})),delete d.exotic,d})};document.createElement("a").download="builds.json";const a=window.URL.createObjectURL(new Blob([JSON.stringify(e,null,2)])),s=document.createElement("a");s.href=a,s.setAttribute("download","d2ap_results.json"),document.body.appendChild(s),s.click()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Tt),t.Y36(X),t.Y36(vt))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-results"]],viewQuery:function(e,o){if(1&e&&(t.Gf(ve.NW,5),t.Gf(de.YE,5)),2&e){let a;t.iGM(a=t.CRH())&&(o.paginator=a.first),t.iGM(a=t.CRH())&&(o.sort=a.first)}},decls:98,vars:37,consts:[["id","card-results"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","5px",1,"config-summary-box"],["appearance","outline","fxFlex","",1,"info-box"],["matInput","","readonly","",3,"value"],["class","report-problem-icon","matSuffix","",3,"matTooltip",4,"ngIf"],["appearance","outline","disabled","",1,"config-summary-box"],["matInput","","readonly","","value","\xa0",1,"hidden-input"],["aria-label","Configuration Summary"],["disableRipple","","matTooltip","This setting enforces that all exotics are ignored.",4,"ngIf"],["disableRipple","","matTooltip","This setting enforces that only one specific exotic is used.",4,"ngIf"],["disableRipple","","matTooltip","The tool will try to fulfill your settings for all the selected exotics. If you select exotics in different slots then it will search for legendary items to allow hotswapping with the same stats.",4,"ngIf"],["disableRipple","","matTooltip","You enforced that no stat mods are used.",4,"ngIf"],["disableRipple","","matTooltip","The tool will add minor stat mods to reduce wasted stats.",4,"ngIf"],["disableRipple","","matTooltip","This setting limits available stat mod types, like major Intellect or Recovery.",4,"ngIf"],["disableRipple","","matTooltip","This setting enforces an specific armor perk or modslot for a specific armor slot.",4,"ngIf"],["disableRipple","","matTooltip","This setting means that only builds with no wasted stats are shown.","selected","",4,"ngIf"],["disableRipple","","matTooltip","EVERY legendary is assumed to be artifice.","selected","","color","warn",4,"ngIf"],["disableRipple","","matTooltip","EVERY exotic is assumed to be artifice.","selected","","color","warn",4,"ngIf"],["disableRipple","","matTooltip","Ignoring existing artifice slots on exotic items.","selected","","color","warn",4,"ngIf"],["disableRipple","","matTooltip","This setting means that only exotic armor pieces that are already masterworked are used.","selected","",4,"ngIf"],["disableRipple","","matTooltip","This setting means that only legendary armor pieces are already masterworked are used.","selected","",4,"ngIf"],["disableRipple","","matTooltip","Some masterwork assumptions are in place. This means that you may have to masterwork items. Look at your advanced settings to see which ones are activated.",4,"ngIf"],["disableRipple","","matTooltip","Collection Exotic rolls will be included in the search.",4,"ngIf"],["disableRipple","","matTooltip","Currently available Vendor items will be included in the search.",4,"ngIf"],[1,"hint-text"],["aria-hidden","false","inline",""],["mat-table","","matSort","","matSortActive","Mods","matSortDirection","asc","multiTemplateDataRows","",1,"result-table",3,"dataSource"],["matColumnDef","mobility"],["mat-header-cell","","mat-sort-header","Mobility","matTooltip","The mobility of this armor combination.",4,"matHeaderCellDef"],["class","statColumn","mat-cell","",4,"matCellDef"],["matColumnDef","resilience"],["mat-header-cell","","mat-sort-header","Resilience","matTooltip","The resilience of this armor combination.",4,"matHeaderCellDef"],["matColumnDef","recovery"],["mat-header-cell","","mat-sort-header","Recovery","matTooltip","The recovery of this armor combination.",4,"matHeaderCellDef"],["matColumnDef","discipline"],["mat-header-cell","","mat-sort-header","Discipline","matTooltip","The discipline of this armor combination.",4,"matHeaderCellDef"],["matColumnDef","intellect"],["mat-header-cell","","mat-sort-header","Intellect","matTooltip","The intellect of this armor combination.",4,"matHeaderCellDef"],["matColumnDef","strength"],["mat-header-cell","","mat-sort-header","Strength","matTooltip","The strength of this armor combination.",4,"matHeaderCellDef"],["matColumnDef","mods"],["mat-header-cell","","mat-sort-header","Mods","matTooltip","The amount of mods required for each combination. Sorting after this takes the mod cost into account.",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","exotic"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","source"],["matColumnDef","dropdown"],["matColumnDef","tiers"],["mat-header-cell","","mat-sort-header","Tiers","matTooltip","The amount of Tiers in this build. A tier is each successful 10-step of any stat.",4,"matHeaderCellDef"],["matColumnDef","potential_tiers"],["mat-header-cell","","mat-sort-header","Max Tiers","matTooltip","The potential reachable stat tiers with all N stat mods used. As of now, this does NOT take mod filters into consideration.",4,"matHeaderCellDef"],["matColumnDef","waste"],["mat-header-cell","","mat-sort-header","Waste","matTooltip","How many points are wasted. Any stat not ending in 0 adds to this value.",4,"matHeaderCellDef"],["matColumnDef","expandedDetail"],["mat-header-row","",4,"matHeaderRowDef"],["class","example-element-row","mat-row","",3,"example-expanded-row","click",4,"matRowDef","matRowDefColumns"],["class","example-detail-row","mat-row","",4,"matRowDef","matRowDefColumns"],["aria-label","Select page of periodic elements","pageSize","20","showFirstLastButtons","",3,"pageSizeOptions"],[1,"no-found-sadcat-container"],["src","assets/status/emoji/sadcat.png",1,"no-found-sadcat"],[1,"warning-none-found"],["matSuffix","",1,"report-problem-icon",3,"matTooltip"],["tooltip","matTooltip"],["disableRipple","","matTooltip","This setting enforces that all exotics are ignored."],["disableRipple","","matTooltip","This setting enforces that only one specific exotic is used."],["disableRipple","","matTooltip","The tool will try to fulfill your settings for all the selected exotics. If you select exotics in different slots then it will search for legendary items to allow hotswapping with the same stats."],["disableRipple","","matTooltip","You enforced that no stat mods are used."],["disableRipple","","matTooltip","The tool will add minor stat mods to reduce wasted stats."],["disableRipple","","matTooltip","This setting limits available stat mod types, like major Intellect or Recovery."],["disableRipple","","matTooltip","This setting enforces an specific armor perk or modslot for a specific armor slot."],["disableRipple","","matTooltip","This setting means that only builds with no wasted stats are shown.","selected",""],["disableRipple","","matTooltip","EVERY legendary is assumed to be artifice.","selected","","color","warn"],["inline","",2,"height","100%"],["disableRipple","","matTooltip","EVERY exotic is assumed to be artifice.","selected","","color","warn"],["disableRipple","","matTooltip","Ignoring existing artifice slots on exotic items.","selected","","color","warn"],["disableRipple","","matTooltip","This setting means that only exotic armor pieces that are already masterworked are used.","selected",""],["disableRipple","","matTooltip","This setting means that only legendary armor pieces are already masterworked are used.","selected",""],["disableRipple","","matTooltip","Some masterwork assumptions are in place. This means that you may have to masterwork items. Look at your advanced settings to see which ones are activated."],["disableRipple","","matTooltip","Collection Exotic rolls will be included in the search."],["disableRipple","","matTooltip","Currently available Vendor items will be included in the search."],["mat-header-cell","","mat-sort-header","Mobility","matTooltip","The mobility of this armor combination."],["mat-cell","",1,"statColumn"],["alt","Mobility","src","https://www.bungie.net/common/destiny2_content/icons/e26e0e93a9daf4fdd21bf64eb9246340.png",1,"statIcon"],["mat-header-cell","","mat-sort-header","Resilience","matTooltip","The resilience of this armor combination."],["alt","Resilience","src","https://www.bungie.net/common/destiny2_content/icons/202ecc1c6febeb6b97dafc856e863140.png",1,"statIcon"],["mat-header-cell","","mat-sort-header","Recovery","matTooltip","The recovery of this armor combination."],["alt","Recovery","src","https://www.bungie.net/common/destiny2_content/icons/128eee4ee7fc127851ab32eac6ca91cf.png",1,"statIcon"],["mat-header-cell","","mat-sort-header","Discipline","matTooltip","The discipline of this armor combination."],["alt","Discipline","src","https://www.bungie.net/common/destiny2_content/icons/79be2d4adef6a19203f7385e5c63b45b.png",1,"statIcon"],["mat-header-cell","","mat-sort-header","Intellect","matTooltip","The intellect of this armor combination."],["alt","Intellect","src","https://www.bungie.net/common/destiny2_content/icons/d1c154469670e9a592c9d4cbdcae5764.png",1,"statIcon"],["mat-header-cell","","mat-sort-header","Strength","matTooltip","The strength of this armor combination."],["alt","Strength","src","https://www.bungie.net/common/destiny2_content/icons/ea5af04ccd6a3470a44fd7bb0f66e2f7.png",1,"statIcon"],["mat-header-cell","","mat-sort-header","Mods","matTooltip","The amount of mods required for each combination. Sorting after this takes the mod cost into account."],["mat-cell",""],[1,"modPreview",3,"mods","artifice"],["mat-header-cell",""],[4,"ngFor","ngForOf"],["class","itemIcon","src","https://www.bungie.net/common/destiny2_content/icons/b4d05ef69d0c3227a7d4f7f35bbc2848.png",4,"ngIf"],[1,"itemIcon",3,"matTooltip","src"],[1,"itemIconWatermark",3,"src"],["src","https://www.bungie.net/common/destiny2_content/icons/b4d05ef69d0c3227a7d4f7f35bbc2848.png",1,"itemIcon"],[1,"source-column"],["matTooltip","This build uses a collection exotic. You have to collect it before you can use it.","class","collectionIcon","src","https://www.bungie.net/common/destiny2_content/icons/1d01287dd47af97fef16fa6acbac23ba.png",4,"ngIf"],["matTooltip","This build uses a vendor item. You have to collect it before you can use it.","class","vendorIcon","src","https://www.bungie.net/common/destiny2_content/icons/8ef4b5bd32277dba9aee7c368404ad5d.jpg",4,"ngIf"],["matTooltip","This build uses a collection exotic. You have to collect it before you can use it.","src","https://www.bungie.net/common/destiny2_content/icons/1d01287dd47af97fef16fa6acbac23ba.png",1,"collectionIcon"],["matTooltip","This build uses a vendor item. You have to collect it before you can use it.","src","https://www.bungie.net/common/destiny2_content/icons/8ef4b5bd32277dba9aee7c368404ad5d.jpg",1,"vendorIcon"],["matTooltip","Click to show details for this build.",4,"ngIf"],["matTooltip","Click to hide details for this build.",4,"ngIf"],["aria-hidden","false","aria-label","Error","class","report-problem-icon","inline","","matTooltip","The stats of this build may be incorrect. Make sure that you remove every positive or negative stat modifier from the marked items.",4,"ngIf"],["matTooltip","Click to show details for this build."],["matTooltip","Click to hide details for this build."],["aria-hidden","false","aria-label","Error","inline","","matTooltip","The stats of this build may be incorrect. Make sure that you remove every positive or negative stat modifier from the marked items.",1,"report-problem-icon"],["mat-header-cell","","mat-sort-header","Tiers","matTooltip","The amount of Tiers in this build. A tier is each successful 10-step of any stat."],["mat-header-cell","","mat-sort-header","Max Tiers","matTooltip","The potential reachable stat tiers with all N stat mods used. As of now, this does NOT take mod filters into consideration."],["mat-header-cell","","mat-sort-header","Waste","matTooltip","How many points are wasted. Any stat not ending in 0 adds to this value."],[1,"example-element-detail"],[3,"element"],["mat-header-row",""],["mat-row","",1,"example-element-row",3,"click"],["mat-row","",1,"example-detail-row"],[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"mat-card",0)(1,"mat-card-title"),t._uU(2,"Results"),t.qZA(),t.TgZ(3,"mat-card-subtitle"),t.YNc(4,tn,3,0,"ng-container",1),t.YNc(5,en,8,0,"ng-container",1),t.qZA(),t.TgZ(6,"mat-card-content")(7,"div")(8,"div",2)(9,"mat-form-field",3)(10,"mat-label"),t._uU(11,"Items Used"),t.qZA(),t._UZ(12,"input",4),t.ALo(13,"number"),t.qZA(),t.TgZ(14,"mat-form-field",3)(15,"mat-label"),t._uU(16,"Combinations generated"),t.qZA(),t._UZ(17,"input",4),t.ALo(18,"number"),t.YNc(19,nn,4,3,"mat-icon",5),t.YNc(20,on,4,3,"mat-icon",5),t.qZA(),t.TgZ(21,"mat-form-field",3)(22,"mat-label"),t._uU(23,"Time required"),t.qZA(),t._UZ(24,"input",4),t.ALo(25,"number"),t.qZA()(),t.TgZ(26,"mat-form-field",6)(27,"mat-label"),t._uU(28,"Summary of important configuration choices"),t.qZA(),t._UZ(29,"input",7),t.TgZ(30,"mat-chip-list",8),t.YNc(31,an,3,0,"mat-chip",9),t.YNc(32,sn,3,0,"mat-chip",10),t.YNc(33,rn,3,0,"mat-chip",11),t.YNc(34,ln,3,0,"mat-chip",12),t.YNc(35,cn,3,0,"mat-chip",13),t.YNc(36,mn,3,0,"mat-chip",14),t.YNc(37,dn,3,0,"mat-chip",15),t.YNc(38,un,3,0,"mat-chip",16),t.YNc(39,pn,7,0,"mat-chip",17),t.YNc(40,gn,7,0,"mat-chip",18),t.YNc(41,_n,7,0,"mat-chip",19),t.YNc(42,fn,3,0,"mat-chip",20),t.YNc(43,hn,3,0,"mat-chip",21),t.YNc(44,xn,3,0,"mat-chip",22),t.YNc(45,yn,3,0,"mat-chip",23),t.YNc(46,Cn,3,0,"mat-chip",24),t.qZA()(),t.TgZ(47,"div",25)(48,"mat-icon",26),t._uU(49,"info"),t.qZA(),t._uU(50," Note that you can change the sort column and order of the table by clicking on the headers. "),t.qZA(),t.TgZ(51,"table",27),t.ynx(52,28),t.YNc(53,Tn,2,0,"th",29),t.YNc(54,vn,3,1,"td",30),t.BQk(),t.ynx(55,31),t.YNc(56,bn,2,0,"th",32),t.YNc(57,An,3,1,"td",30),t.BQk(),t.ynx(58,33),t.YNc(59,wn,2,0,"th",34),t.YNc(60,Zn,3,1,"td",30),t.BQk(),t.ynx(61,35),t.YNc(62,In,2,0,"th",36),t.YNc(63,Sn,3,1,"td",30),t.BQk(),t.ynx(64,37),t.YNc(65,Mn,2,0,"th",38),t.YNc(66,On,3,1,"td",30),t.BQk(),t.ynx(67,39),t.YNc(68,kn,2,0,"th",40),t.YNc(69,En,3,1,"td",30),t.BQk(),t.ynx(70,41),t.YNc(71,Un,2,0,"th",42),t.YNc(72,Dn,2,2,"td",43),t.BQk(),t.ynx(73,44),t.YNc(74,Pn,2,0,"th",45),t.YNc(75,qn,3,2,"td",43),t.BQk(),t.ynx(76,46),t.YNc(77,Fn,2,0,"th",45),t.YNc(78,Yn,4,2,"td",43),t.BQk(),t.ynx(79,47),t.YNc(80,Bn,1,0,"th",45),t.YNc(81,Wn,4,3,"td",43),t.BQk(),t.ynx(82,48),t.YNc(83,jn,2,0,"th",49),t.YNc(84,Gn,2,1,"td",43),t.BQk(),t.ynx(85,50),t.YNc(86,zn,2,0,"th",51),t.YNc(87,Kn,2,1,"td",43),t.BQk(),t.ynx(88,52),t.YNc(89,$n,2,0,"th",53),t.YNc(90,Xn,2,1,"td",43),t.BQk(),t.ynx(91,54),t.YNc(92,to,3,3,"td",43),t.BQk(),t.YNc(93,eo,1,0,"tr",55),t.YNc(94,no,1,2,"tr",56),t.YNc(95,oo,1,0,"tr",57),t.qZA(),t._UZ(96,"mat-paginator",58),t.qZA()(),t.YNc(97,io,4,0,"mat-card-actions",1),t.qZA()),2&e&&(t.xp6(4),t.Q6J("ngIf",o.totalResults>0),t.xp6(1),t.Q6J("ngIf",0===o.totalResults),t.xp6(7),t.s9C("value",t.lcZ(13,29,o.itemCount)),t.xp6(5),t.s9C("value",t.lcZ(18,31,o.totalResults)),t.xp6(2),t.Q6J("ngIf",o.parsedResults!==o.totalResults&&5e4===o.parsedResults),t.xp6(1),t.Q6J("ngIf",o.parsedResults!==o.totalResults&&1e6===o.parsedResults),t.xp6(4),t.MGl("value","",t.lcZ(25,33,o.totalTime),"ms"),t.xp6(7),t.Q6J("ngIf",o._config_selectedExotics.indexOf(-1)>-1),t.xp6(1),t.Q6J("ngIf",1===o._config_selectedExotics.length&&-1===o._config_selectedExotics.indexOf(-1)),t.xp6(1),t.Q6J("ngIf",o._config_selectedExotics.length>1&&-1===o._config_selectedExotics.indexOf(-1)),t.xp6(1),t.Q6J("ngIf",0===o._config_maximumStatMods),t.xp6(1),t.Q6J("ngIf",o._config_tryLimitWastedStats),t.xp6(1),t.Q6J("ngIf",o._config_modslotLimitation.length>0),t.xp6(1),t.Q6J("ngIf",o._config_armorPerkLimitation.length>0),t.xp6(1),t.Q6J("ngIf",o._config_onlyShowResultsWithNoWastedStats),t.xp6(1),t.Q6J("ngIf",o._config_assumeEveryLegendaryIsArtifice),t.xp6(1),t.Q6J("ngIf",o._config_assumeEveryExoticIsArtifice),t.xp6(1),t.Q6J("ngIf",o._config_ignoreExistingExoticArtificeSlots),t.xp6(1),t.Q6J("ngIf",o._config_onlyUseMasterworkedExotics),t.xp6(1),t.Q6J("ngIf",o._config_onlyUseMasterworkedLegendaries),t.xp6(1),t.Q6J("ngIf",!o._config_onlyUseMasterworkedExotics&&!o._config_onlyUseMasterworkedLegendaries&&(o._config_assumeLegendariesMasterworked||o._config_assumeExoticsMasterworked||o._config_assumeClassItemMasterworked)),t.xp6(1),t.Q6J("ngIf",o._config_includeCollectionRolls),t.xp6(1),t.Q6J("ngIf",o._config_includeVendorRolls),t.xp6(5),t.Q6J("dataSource",o.tableDataSource),t.xp6(42),t.Q6J("matHeaderRowDef",o.shownColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.shownColumns),t.xp6(1),t.Q6J("matRowDefColumns",t.DdM(35,ao)),t.xp6(1),t.Q6J("pageSizeOptions",t.DdM(36,so)),t.xp6(1),t.Q6J("ngIf",o.totalResults>0))},styles:["#card-results[_ngcontent-%COMP%]{display:inline-block;vertical-align:top;white-space:normal;width:-moz-fit-content;width:fit-content;margin-left:3px}.statColumn[_ngcontent-%COMP%]{position:relative}.statIcon[_ngcontent-%COMP%]{position:absolute;height:22px;margin-left:2px;top:11px}.itemIcon[_ngcontent-%COMP%]{width:32px;height:32px;margin-right:3px}.itemIconWatermark[_ngcontent-%COMP%]{width:32px;height:32px;margin-right:3px;margin-left:-35px;pointer-events:none}.source-column[_ngcontent-%COMP%]{float:left}.source-column[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:nth-of-type(2){margin-top:5px;margin-bottom:-3px}.collectionIcon[_ngcontent-%COMP%], .vendorIcon[_ngcontent-%COMP%]{width:32px;margin-left:3px;display:block}tr.example-element-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom-width:0}tr.example-detail-row[_ngcontent-%COMP%]{height:0!important}.example-element-detail[_ngcontent-%COMP%]{overflow:hidden;display:flex}.report-problem-icon[_ngcontent-%COMP%]{color:#f08080}.hint-text[_ngcontent-%COMP%]{font-size:small;color:#d5d5d5}[_nghost-%COMP%] .info-box .mat-form-field-wrapper{padding-bottom:5px!important;cursor:default}.hidden-input[_ngcontent-%COMP%]{display:none}.config-summary-box[_ngcontent-%COMP%]{width:100%}.result-table[_ngcontent-%COMP%] tr.example-element-row[_ngcontent-%COMP%]{cursor:pointer}.mat-row[_ngcontent-%COMP%]:nth-child(4n+3){background-color:#7474741a}.warning-none-found[_ngcontent-%COMP%]{color:red}.no-found-sadcat-container[_ngcontent-%COMP%]{width:20px;position:relative;display:inline-block}.no-found-sadcat[_ngcontent-%COMP%]{position:absolute;width:18px;top:-1px}.cdk-column-exotic[_ngcontent-%COMP%]{min-width:45px}.cdk-column-waste[_ngcontent-%COMP%]{padding-left:5px}"],data:{animation:[(0,yt.X$)("detailExpand",[(0,yt.SB)("collapsed, void",(0,yt.oB)({height:"0px"})),(0,yt.SB)("expanded",(0,yt.oB)({height:"*"})),(0,yt.eR)("expanded <=> collapsed",(0,yt.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)")),(0,yt.eR)("expanded <=> void",(0,yt.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),n})();const ro={2:{shards:1,glimmer:500,core:0,prism:0,ascshard:0},3:{shards:1,glimmer:500,core:0,prism:0,ascshard:0},4:{shards:2,glimmer:500,core:0,prism:0,ascshard:0},5:{shards:2,glimmer:1e3,core:0,prism:0,ascshard:0},6:{shards:3,glimmer:1e3,core:1,prism:0,ascshard:0},7:{shards:3,glimmer:2500,core:2,prism:0,ascshard:0},8:{shards:4,glimmer:3e3,core:0,prism:1,ascshard:0},9:{shards:4,glimmer:3e3,core:0,prism:2,ascshard:0},10:{shards:5,glimmer:4e3,core:0,prism:0,ascshard:1}},lo={2:{shards:1,glimmer:500,core:0,prism:0,ascshard:0},3:{shards:2,glimmer:1e3,core:0,prism:0,ascshard:0},4:{shards:2,glimmer:1e3,core:0,prism:0,ascshard:0},5:{shards:3,glimmer:2500,core:0,prism:0,ascshard:0},6:{shards:3,glimmer:3e3,core:2,prism:0,ascshard:0},7:{shards:4,glimmer:3e3,core:3,prism:0,ascshard:0},8:{shards:4,glimmer:4e3,core:0,prism:2,ascshard:0},9:{shards:5,glimmer:4e3,core:0,prism:3,ascshard:0},10:{shards:6,glimmer:5e3,core:0,prism:0,ascshard:3}};var ue=_(7009),co=_(1572),te=_(4425),re=_(4080);const mo={[B.Inventory]:"Inventory",[B.Collections]:"Collections",[B.Vendor]:"Vendor"};let uo=(()=>{class n{constructor(e){this.database=e}transform(e){var o=this;return(0,y.Z)(function*(){return(yield o.database.vendorNames.where("vendorId").equals(e).first())?.vendorName??"Unknown Vendor"})()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(w,16))},n.\u0275pipe=t.Yjl({name:"getVendorName",type:n,pure:!0}),n})(),po=(()=>{class n{constructor(){}transform(e){if(!e||!e.startsWith("v"))return-1;const o=parseInt(e.substring(1).split("-")[0]);return isNaN(o)?-1:o}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"getVendorIdFromItemId",type:n,pure:!0}),n})();function go(n,i){if(1&n&&(t.TgZ(0,"tr")(1,"td"),t._uU(2,"Vendor"),t.qZA(),t.TgZ(3,"td",2),t._uU(4),t.ALo(5,"async"),t.ALo(6,"getVendorName"),t.ALo(7,"getVendorIdFromItemId"),t.qZA()()),2&n){const e=t.oxw();t.xp6(4),t.Oqu(t.lcZ(5,1,t.lcZ(6,3,t.lcZ(7,5,e.itemTooltip.itemInstanceId))))}}function _o(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e)}}function fo(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e+2)}}function ho(n,i){if(1&n&&(t.TgZ(0,"div",8),t._uU(1,"\xa0"),t.qZA()),2&n){const e=t.oxw(2);t.Udp("width",e.getWidth(2))}}function xo(n,i){if(1&n&&(t.TgZ(0,"tr")(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td"),t.YNc(4,_o,2,1,"span",3),t.YNc(5,fo,2,1,"span",3),t.qZA(),t.TgZ(6,"td")(7,"div",5)(8,"div",6),t._uU(9,"\xa0"),t.qZA(),t.YNc(10,ho,2,2,"div",7),t.qZA()()()),2&n){const e=i.$implicit,o=i.index,a=t.oxw();t.xp6(2),t.Oqu(a.getArmorStatName(o)),t.xp6(2),t.Q6J("ngIf",!(null!=a.itemTooltip&&a.itemTooltip.masterworked)),t.xp6(1),t.Q6J("ngIf",null==a.itemTooltip?null:a.itemTooltip.masterworked),t.xp6(3),t.Udp("width",a.getWidth(e)),t.xp6(2),t.Q6J("ngIf",null==a.itemTooltip?null:a.itemTooltip.masterworked)}}let yo=(()=>{class n{constructor(){}getSourceText(){return this.itemTooltip?mo[this.itemTooltip.source]:""}getArmorStatName(e){return c.Mi[e]}getWidth(e){return Math.min(100,e/32*100)+"%"}getTotalStats(){return this.itemTooltip?.stats.reduce((e,o)=>e+o,0)||0}get isVendorItem(){return this.itemTooltip?.source===B.Vendor}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-armor-tooltip-component"]],inputs:{itemTooltip:"itemTooltip"},decls:21,vars:5,consts:[[1,"tooltip-container"],["colspan","3"],["colspan","2"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"stat-display"],[1,"stat-display-bar"],["class","stat-display-bar masterwork",3,"width",4,"ngIf"],[1,"stat-display-bar","masterwork"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"div",0)(2,"table")(3,"tr")(4,"td",1),t._uU(5),t.qZA()(),t.TgZ(6,"tr")(7,"td"),t._uU(8,"Source"),t.qZA(),t.TgZ(9,"td",2),t._uU(10),t.qZA()(),t.YNc(11,go,8,7,"tr",3),t.TgZ(12,"tr")(13,"td"),t._uU(14,"Current stats:"),t.qZA()(),t.YNc(15,xo,11,6,"tr",4),t.TgZ(16,"tr")(17,"td"),t._uU(18,"Total base stats:"),t.qZA(),t.TgZ(19,"td"),t._uU(20),t.qZA()()()()()),2&e&&(t.xp6(5),t.Oqu(null==o.itemTooltip?null:o.itemTooltip.name),t.xp6(5),t.Oqu(o.getSourceText()),t.xp6(1),t.Q6J("ngIf",o.isVendorItem&&o.itemTooltip),t.xp6(4),t.Q6J("ngForOf",null==o.itemTooltip?null:o.itemTooltip.stats),t.xp6(5),t.hij(" ",o.getTotalStats()," "))},dependencies:[I.sg,I.O5,I.Ov,po,uo],styles:[".tooltip-container[_ngcontent-%COMP%]{border:1px solid gray;padding:1px 5px 4px;background:linear-gradient(#484848 0px,#2c2c2c 100%)}.stat-display[_ngcontent-%COMP%]{width:70px;height:20px;background-color:#2c2c2c}.stat-display-bar[_ngcontent-%COMP%]{height:100%;background-color:#a1a1a1;float:left}.masterwork[_ngcontent-%COMP%]{background-color:#eedb9e}"]}),n})();var Jt=_(8184);let Co=(()=>{class n{constructor(e,o,a){this._overlay=e,this._overlayPositionBuilder=o,this._elementRef=a,this.showToolTip=!0}ngOnInit(){if(!this.showToolTip)return;const e=this._overlayPositionBuilder.flexibleConnectedTo(this._elementRef).withPositions([{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top",offsetY:5},{originX:"center",originY:"top",overlayX:"center",overlayY:"bottom",offsetY:-5}]);this._overlayRef=this._overlay.create({positionStrategy:e}),this._overlayRef.addPanelClass("overlay-no-pointer-event")}show(){this._overlayRef&&!this._overlayRef.hasAttached()&&(this._overlayRef.attach(new re.C5(yo)).instance.itemTooltip=this.itemTooltip)}hide(){this.closeToolTip()}ngOnDestroy(){this.closeToolTip()}closeToolTip(){this._overlayRef&&this._overlayRef.detach()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Jt.aV),t.Y36(Jt.wJ),t.Y36(t.SBq))},n.\u0275dir=t.lG2({type:n,selectors:[["","itemTooltip",""]],hostBindings:function(e,o){1&e&&t.NdJ("mouseenter",function(){return o.show()})("mouseleave",function(){return o.hide()})},inputs:{showToolTip:"showToolTip",itemTooltip:"itemTooltip",contentTemplate:"contentTemplate"}}),n})(),pe=(()=>{class n{constructor(e){this.db=e,this.itemLookup=new Map}getItemCached(e){var o=this;return(0,y.Z)(function*(){if(o.itemLookup.has(e))return o.itemLookup.get(e)||void 0;const a=yield o.db.manifestArmor.where("hash").equals(e).first();return o.itemLookup.set(e,a),a})()}getExoticPerkDescription(e){var o=this;return(0,y.Z)(function*(){return e.exoticPerkHash?(yield o.getItemCached(e.exoticPerkHash))??null:null})()}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(w))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function To(n,i){if(1&n&&t._UZ(0,"img",6,7),2&n){const e=t.oxw(2);t.MGl("src","https://bungie.net/",e.item.icon,"",t.LSH),t.s9C("matTooltip",e.item.name)}}function vo(n,i){if(1&n&&t._UZ(0,"img",8),2&n){const e=t.oxw(2);t.MGl("src","https://bungie.net/",e.item.watermarkIcon,"",t.LSH)}}function bo(n,i){if(1&n&&t._UZ(0,"div",9),2&n){const e=t.oxw(2);t.ekj("vendor-item",e.isFromVendor)("collection-item",e.isFromCollection)}}function Ao(n,i){1&n&&t._UZ(0,"div",10)}function wo(n,i){if(1&n&&(t.TgZ(0,"div",1),t.YNc(1,To,2,2,"img",2),t.YNc(2,vo,1,1,"img",3),t.YNc(3,bo,1,4,"div",4),t.YNc(4,Ao,1,0,"div",5),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.item.icon),t.xp6(1),t.Q6J("ngIf",e.item.watermarkIcon),t.xp6(1),t.Q6J("ngIf",e.isFromVendor||e.isFromCollection),t.xp6(1),t.Q6J("ngIf",e.masterworked)}}let ge=(()=>{class n{constructor(e){this.iconService=e,this.itemHash=0,this.masterworked=!1,this.source=B.Inventory,this.isFromVendor=!1,this.isFromCollection=!1,this.item=void 0}ngAfterViewInit(){var e=this;return(0,y.Z)(function*(){e.item=yield e.iconService.getItemCached(e.itemHash),e.isFromVendor=e.source===B.Vendor,e.isFromCollection=e.source===B.Collections})()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(pe))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-item-icon"]],inputs:{itemHash:"itemHash",masterworked:"masterworked",source:"source"},decls:1,vars:1,consts:[["class","item-icon-container",4,"ngIf"],[1,"item-icon-container"],["class","item-icon",3,"src","matTooltip",4,"ngIf"],["class","item-icon-overlay",3,"src",4,"ngIf"],["class","item-source-overlay",3,"vendor-item","collection-item",4,"ngIf"],["class","item-icon-masterwork-overlay",4,"ngIf"],[1,"item-icon",3,"src","matTooltip"],["tooltip","matTooltip"],[1,"item-icon-overlay",3,"src"],[1,"item-source-overlay"],[1,"item-icon-masterwork-overlay"]],template:function(e,o){1&e&&t.YNc(0,wo,5,4,"div",0),2&e&&t.Q6J("ngIf",o.item)},dependencies:[I.O5,pt.gM],styles:["[_nghost-%COMP%]{height:22px;width:22px;display:block}.item-icon-masterwork-overlay[_ngcontent-%COMP%]{pointer-events:none;box-sizing:border-box;top:-1px;left:-1px;border-width:0;height:24px;width:24px;position:absolute;background-repeat:no-repeat;background-position:center;background-size:22px 22px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAJgklEQVR4AWI8t87oBYCd8rBuGAZi6N1JUQbIrJkiY6bM4EoE1EHvqb+WHsPvG5AJU522JQ/znpY03GzJ3YTovcvcVFcO5WbU8eH/OZ8R91B241c6wEzowJUUZnqlXMiZufrJSs1XUjNBUb6OcvUFF8190fzkGxS2J0ChGPQZDnYAQObJWHbNlCvZIXKxqvHN8KBp22SubByb9EKFGM2hzgyNa47vUzvKvnUToHPOINMFHG6Oo6hb6lhmMump4wROtxSMee8yjC6YI9jOnBYcGn5TZnTdBMB7d0+HB52AeKEb5QL2hQKx8RLk5IkE6eymz9CJFPJIQKxdWZKO5M1u+gw9kPvVJUjqyAt5Z98OMBAI4igO9x97koAAnSY6YHSaAB2nAiyswTbMq+/HAiHv0+4k3Ww1pOvnOvYews1Ow2rGnldEAAAIAAABACAAAAQAgAAAEAAAAgAgPwACAEAAAKiyAfJ7AXALEgAAAuAU5BMgAADki9j/BQCAlkN459OlNu6v0/V43vsAocOvq9kh1n/LX35h+B6EU9DI8fuVh/D48WMRWv742Qgtf/xshBY+fm1cMQgtefwdI5ffA/a9+frC68ox9M3enehIkvJAAC5D9vs/8F+Z/HugkfXJrOfec6QSJBi6O8IO2znX1zdZro39if/K0B8ftp2Hxxfa/vcu6DO8P5x/AaDrvwj4/uDPJDtjP09+ntDze9L+i4DRSEqwtgoQZ9rL3r9Ye/51L+Pw9tF6YuHFPJ/uWBDk2eXZvfb8YyMAwHvg673Z7AvmSF4POeSHmtDnb0xAD3qzN5gLfHsHIOvhktBJ4vOXJqABvJcZnqs5z54R7FF5ODaRiOkIGcXX+OZG7PqJnh6Ev3uOI52Z7tdRUCbdB6AFXHCDcZ3kkf2fGwEN+HGe+3xcE5yBB3umIvk5JnVIggDtnx/1u27XD5CajhBt8tqj9gMahDSan+7C629sxx6DiGmTcxOF304AwOud/SuABnTsZtNABWfaygUynjR3Ld+/GokZp4TO/JsJsEON1uN7OTEPaO9nVFHhHXizTdcN8Fl6BlER5gHk6lghYV8Tgd31DeCPL2icmhISYGsS9P7R9AErAT9JwlWCnuyFsmRuEQurKcBuqyBB72WkXtfmTCD7Au4a4/H7yYAl0N9VY0eERBqRr+Ov51yqCkTEYuuqjL4A+D4p1nvazLzOncHLt1dByhIwqpsHDzcShpIEkM4HZ5+zDEtoRLoKAgrwvwF41/WuAeg+z/1hDzk6VyGPkYW8aLfwarEwr0RJCDr/LUm4+42N8WX6z76Am3R9RoIkGGDvRN7i677TupIhqVZI7vmzPnr+1xLgwT6Bek6QtOE89rMmAGk6d8PhaG9ghSOgeLaAW1FFmYz9viLitcgBCFAgQ2dJ6dcEyLvcKxMuH2za3wW7AeOpqh/k6raz9l49XOIlQozX6pNwNCDnfde6Ckfb2SdeSejLUCXp+L3SPyAlj9FghVVHWV2etlVQ482MNfBHzwe4igSAj7T+4VnmtfdvwBJ5dxoXay/6hrc5gqrnyQCzX5H3fHYVhNd35eOrIWD4zDjZG2ntSmt8CpKTzCAnSEmp6Y7TDthyE9vbjhz7OOYAODg3THqfwEmMIJ29f1TaDwkX+8ckTCf8JAl6EjBviFo70m7v0vtTdD72EqzNgjwIgCJBr+aMRoTzbQMxzBlHIoY5JFCrA9xIZedIZLzZiwScpe1ij/vLyDu8b9p5IH2/V/4hfg+SGIUHr7oSAVhIwgbwIALpgYgLcvokvLU9gfsmgv+37117brJ90PrlHKAtWY24OWLO5/WORGWYAyJeQy8fjceHoOYz5gkTLeAPgL7YU57mHzRBQwA2Cff+5L3s1e9kn8Cuy1hAf9D/EN5YYySVKyQo4tyNSog6XucApWOZeA+Vz6UMNaXotLEiCZsgY4M9KVc/9lmBffwNHSonyQp1H/kpknDEiFeM/U2UybWRmcuEe5IcSPgAqOuQB2b3OiKBMrLumzy33dzy86HG84Z0KCtp/wL4kc7NfFdEDIucK9em8eskRl3q4bUAYc6YXalZJue6/LwkoClD9cYsP5G8d5pkT/U+Cfdd5gpI4jn2EL87eEQiID5tboPq9e+rBLvOA47D/doGj6+lKJpiQC+88WDP33h8JMADL36naIUYJYocsO+NGLOIAJJEjJnWhx7fyM0obAXLta7hmjxfp3dB5IF3AvRJwL3tzG3cjKJ8PkncBPgBocPyNXYEHAkI/md8CFA+eu8/jMiOVc1lpQRBEq38rKTNN/khkJHJXtjE8TW8T50fJO6RxvXaOSBer1j594Rjf5HfNyMSCCFoR43HBtKsirSFSCXILrh/G1p0vRdVSX4vdJvEkZYK+EVu4W0qtluCYtvGHq89MQImAApsLUHniBC0cbjXuclXcvR+o2Dq9ThXzhl3AtCcoabnHPBRdL1vCEwR30hQRAw985hwAZR1IyVcJ3o8p97HqSnE0xz1zpszAfgvSKm634e5tf9HVfaOGNcTJwLiUye2BJrnSk5OEiVZ3unv/7o/zvLT/sGshRy8i4hdyVtvk6mlaNoz4f6/dGvJkRqKgVXuDyuWLLkSZ+CiXIQVZ2CF0h0XbblkRU+hESIjq+yqZ2emJtKbZNK54vlfUBRAgl1A0BUuiyAvmdo/ff/x7QsZF5PsYY2uKw20EKA1NLpuzaNnBmddSCIZqrxIz2ydiEpprucWzrk8WzrZAGQQ5LyL4hJCqhCQ+zOVLFP5Cslzrc88KeGk0LWam1mSprc196WeH8mY/QZcngWxZ3/Y9fhsiiRjcpCzdKjhHSTHqDnCdatee/wFzF40+ph85GP9Ht7969BGjXlj0nBjbkoZJBPAbv+WB2sqWitvZXLrkrGprgluPsf5HvBr+/l1CpD4+8F/4NdnIreI64MMgFf0PUrhDRE3FjLuYLy4y9184Z1eY73w6rr7e2bNu4gvBE9fim7ftEOZkJ5I7TfkY1M+oHyiMF/R9YbcNzW3QfuLk/leIzXWLM/cgcp19FzCemU6cIz/MB9890UWjBGadM7N9QMtlCqqJiFwOjUhdaDQXQCdEwNOpzhYwMpBDrfcFpEXIsjiGJw+9jqidHo7O3+3QVO7+QpIf7ji9cbst7ogrVf8UXTDBslUgkxCCSilwjFdSAkBkSo1EcjSIBXWWvsN9SxF5ebWH3woEIS629sLNhsPabYekYTY/VR0znB/jBdcErKAavL8+A1ICXvgoqroDgAAAABJRU5ErkJggg==)}.item-icon-container[_ngcontent-%COMP%]{position:relative;transition:opacity .2s,transform .2s;width:100%;--icon-size: 22px}.item-icon-overlay[_ngcontent-%COMP%], .item-icon[_ngcontent-%COMP%]{position:absolute;left:0;top:0;width:100%;pointer-events:none}.item-source-overlay[_ngcontent-%COMP%]{position:absolute;left:0;top:0;width:0;pointer-events:none;border-top:calc(var(--icon-size) / 2) solid transparent;border-right:calc(var(--icon-size) / 2) solid transparent}.item-source-overlay.vendor-item[_ngcontent-%COMP%]{border-top-color:#00f}.item-source-overlay.collection-item[_ngcontent-%COMP%]{border-top-color:#90ee90}"]}),n})();function Zo(n,i){if(1&n&&t._UZ(0,"img",5),2&n){const e=t.oxw(2);t.s9C("src",e.url,t.LSH)}}function Io(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"img",2,3),t.YNc(3,Zo,1,1,"img",4),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.s9C("matTooltip",e.name),t.xp6(2),t.Q6J("ngIf",e.customIconMods.indexOf(e.perk)>-1)}}function So(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"img",6,3),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.s9C("matTooltip",e.name),t.s9C("src",e.url,t.LSH)}}let _e=(()=>{class n{constructor(){this.ArmorPerkOrSlot=c.Pn,this.customIconMods=[c.Pn.SlotCrotasEnd,c.Pn.SlotRootOfNightmares,c.Pn.SlotKingsFall,c.Pn.SlotVowOfTheDisciple,c.Pn.SlotArtifice],this.perk=c.Pn.None}get name(){return c.cM[this.perk]}get url(){return c.X9[this.perk]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-armor-perk-icon"]],inputs:{perk:"perk"},decls:3,vars:2,consts:[[1,"overlay-icon-container"],[4,"ngIf"],["src","https://www.bungie.net/common/destiny2_content/icons/b4d05ef69d0c3227a7d4f7f35bbc2848.png",1,"element-icon",3,"matTooltip"],["tooltip","matTooltip"],["class","overlay-icon",3,"src",4,"ngIf"],[1,"overlay-icon",3,"src"],[1,"element-icon",3,"matTooltip","src"]],template:function(e,o){1&e&&(t.TgZ(0,"span",0),t.YNc(1,Io,4,2,"ng-container",1),t.YNc(2,So,3,2,"ng-container",1),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",o.customIconMods.indexOf(o.perk)>-1),t.xp6(1),t.Q6J("ngIf",-1===o.customIconMods.indexOf(o.perk)))},dependencies:[I.O5,pt.gM],styles:[".element-icon[_ngcontent-%COMP%]{height:100%;width:100%}.element-icon.disabled[_ngcontent-%COMP%]{opacity:.5;cursor:default;pointer-events:none}.overlay-icon-container[_ngcontent-%COMP%]{position:relative}.overlay-icon-container[_ngcontent-%COMP%] .overlay-icon[_ngcontent-%COMP%]{width:66%;position:absolute;left:17%;top:17%;pointer-events:none}[_nghost-%COMP%]{display:inline-flex;height:30px;width:30px}"]}),n})(),Ae=(()=>{class n{transform(e,o=null){return e.filter(a=>null==o||a==o).length}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"count",type:n,pure:!0}),n})();function Mo(n,i){1&n&&(t.TgZ(0,"mat-toolbar",24),t._uU(1," Warning: The stats of one or more items used for this build may be invalid."),t._UZ(2,"br"),t._uU(3," Please remove all negative/positive stat modifiers from the marked items. "),t.qZA())}function Oo(n,i){if(1&n&&(t.TgZ(0,"u",34,35),t._uU(2),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(2),t.Oqu(e.name)}}function ko(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.name)}}function Eo(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"td",36)(2,"span",37),t._uU(3),t.qZA()(),t.TgZ(4,"td",36)(5,"span",37),t._uU(6),t.qZA()(),t.TgZ(7,"td",36)(8,"span",37),t._uU(9),t.qZA()(),t.TgZ(10,"td",36)(11,"span",37),t._uU(12),t.qZA()(),t.TgZ(13,"td",36)(14,"span",37),t._uU(15),t.qZA()(),t.TgZ(16,"td",36)(17,"span",37),t._uU(18),t.qZA()(),t.BQk()),2&n){const e=i.ngVar,o=t.oxw().$implicit,a=t.oxw(2);t.xp6(2),t.ekj("text-mw",o.masterworked),t.xp6(1),t.Oqu(o.stats[a.ArmorStat.Mobility]+e),t.xp6(2),t.ekj("text-mw",o.masterworked),t.xp6(1),t.Oqu(o.stats[a.ArmorStat.Resilience]+e),t.xp6(2),t.ekj("text-mw",o.masterworked),t.xp6(1),t.Oqu(o.stats[a.ArmorStat.Recovery]+e),t.xp6(2),t.ekj("text-mw",o.masterworked),t.xp6(1),t.Oqu(o.stats[a.ArmorStat.Discipline]+e),t.xp6(2),t.ekj("text-mw",o.masterworked),t.xp6(1),t.Oqu(o.stats[a.ArmorStat.Intellect]+e),t.xp6(2),t.ekj("text-mw",o.masterworked),t.xp6(1),t.Oqu(o.stats[a.ArmorStat.Strength]+e)}}function Uo(n,i){1&n&&(t.TgZ(0,"td",27),t._UZ(1,"mat-progress-spinner",38),t.qZA())}function Do(n,i){1&n&&(t.TgZ(0,"td")(1,"mat-icon",39,35),t._uU(3," check_circle_outline "),t.qZA()())}function Po(n,i){1&n&&(t.TgZ(0,"td")(1,"mat-icon",40,35),t._uU(3," error_outline "),t.qZA()())}function Ro(n,i){1&n&&(t.TgZ(0,"td")(1,"mat-icon",41,35),t._uU(3," report_problem "),t.qZA()())}function No(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"tr")(1,"td"),t.YNc(2,Oo,3,1,"u",26),t.YNc(3,ko,2,1,"span",3),t.qZA(),t.YNc(4,Eo,19,18,"ng-container",8),t.TgZ(5,"td",27)(6,"div",28),t._UZ(7,"app-item-icon",29),t.qZA()(),t.TgZ(8,"td",27)(9,"div",30),t._UZ(10,"app-armor-perk-icon",31),t.qZA()(),t.TgZ(11,"td",27)(12,"button",32),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw(2);return t.KtG(r.disableItem(s.itemInstanceId))}),t.TgZ(13,"mat-icon"),t._uU(14,"block"),t.qZA()()(),t.YNc(15,Uo,2,0,"td",33),t.YNc(16,Do,4,0,"td",3),t.YNc(17,Po,4,0,"td",3),t.YNc(18,Ro,4,0,"td",3),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw().$implicit,a=t.oxw();t.ekj("highlight-row",o[0].slot%2==0),t.xp6(2),t.Q6J("ngIf",e.masterworked),t.xp6(1),t.Q6J("ngIf",!e.masterworked),t.xp6(1),t.Q6J("ngVar",e.masterworked||!e.exotic&&a.config_assumeLegendariesMasterworked||e.exotic&&a.config_assumeExoticsMasterworked?2:0),t.xp6(2),t.Q6J("itemTooltip",e),t.xp6(1),t.Q6J("itemHash",e.hash)("masterworked",e.masterworked)("source",e.source),t.xp6(3),t.Q6J("perk",e.perk||0),t.xp6(5),t.Q6J("ngIf",1===e.transferState||2===e.transferState),t.xp6(1),t.Q6J("ngIf",3===e.transferState),t.xp6(1),t.Q6J("ngIf",4===e.transferState),t.xp6(1),t.Q6J("ngIf",e.mayBeBugged)}}function qo(n,i){if(1&n&&(t.ynx(0),t.YNc(1,No,19,14,"tr",25),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngForOf",e)}}function Fo(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"tr")(1,"td",42,35),t._uU(3,"Any Class Item"),t.qZA(),t.TgZ(4,"td",43),t._uU(5),t.qZA(),t.TgZ(6,"td",43),t._uU(7),t.qZA(),t.TgZ(8,"td",43),t._uU(9),t.qZA(),t.TgZ(10,"td",43),t._uU(11),t.qZA(),t.TgZ(12,"td",43),t._uU(13),t.qZA(),t.TgZ(14,"td",43),t._uU(15),t.qZA(),t._UZ(16,"td"),t.TgZ(17,"td")(18,"div",30),t._UZ(19,"app-armor-perk-icon",31),t.qZA()(),t.TgZ(20,"td")(21,"button",44),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.disableAllItems())}),t.TgZ(22,"mat-icon"),t._uU(23,"block"),t.qZA()()()()}if(2&n){const e=t.oxw();t.xp6(5),t.Oqu(2),t.xp6(2),t.Oqu(2),t.xp6(2),t.Oqu(2),t.xp6(2),t.Oqu(2),t.xp6(2),t.Oqu(2),t.xp6(2),t.Oqu(2),t.xp6(4),t.Q6J("perk",(null==e.element||null==e.element.classItem?null:e.element.classItem.perk)||0)}}function Jo(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"tr")(1,"td"),t._uU(2,"Any Class Item"),t.qZA(),t.TgZ(3,"td",45),t._uU(4,"You chose to use non-masterworked class items."),t.qZA(),t._UZ(5,"td")(6,"td"),t.TgZ(7,"td")(8,"button",44),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.disableAllItems())}),t.TgZ(9,"mat-icon"),t._uU(10,"block"),t.qZA()()()()}}function Lo(n,i){if(1&n&&(t.TgZ(0,"td"),t._uU(1),t._UZ(2,"img",47),t.qZA()),2&n){const e=t.oxw().ngVar,o=t.oxw();t.xp6(1),t.hij(" ",e[o.ArmorStat.Mobility]," ")}}function Yo(n,i){if(1&n&&(t.TgZ(0,"td"),t._uU(1),t._UZ(2,"img",48),t.qZA()),2&n){const e=t.oxw().ngVar,o=t.oxw();t.xp6(1),t.hij(" ",e[o.ArmorStat.Resilience]," ")}}function Bo(n,i){if(1&n&&(t.TgZ(0,"td"),t._uU(1),t._UZ(2,"img",49),t.qZA()),2&n){const e=t.oxw().ngVar,o=t.oxw();t.xp6(1),t.hij(" ",e[o.ArmorStat.Recovery]," ")}}function Vo(n,i){if(1&n&&(t.TgZ(0,"td"),t._uU(1),t._UZ(2,"img",50),t.qZA()),2&n){const e=t.oxw().ngVar,o=t.oxw();t.xp6(1),t.hij(" ",e[o.ArmorStat.Discipline]," ")}}function Qo(n,i){if(1&n&&(t.TgZ(0,"td"),t._uU(1),t._UZ(2,"img",51),t.qZA()),2&n){const e=t.oxw().ngVar,o=t.oxw();t.xp6(1),t.hij(" ",e[o.ArmorStat.Intellect]," ")}}function Ho(n,i){if(1&n&&(t.TgZ(0,"td"),t._uU(1),t._UZ(2,"img",52),t.qZA()),2&n){const e=t.oxw().ngVar,o=t.oxw();t.xp6(1),t.hij(" ",e[o.ArmorStat.Strength]," ")}}function Wo(n,i){if(1&n&&(t.TgZ(0,"tr",46)(1,"td"),t._uU(2,"Total (armor)"),t.qZA(),t.YNc(3,Lo,3,1,"td",3),t.YNc(4,Yo,3,1,"td",3),t.YNc(5,Bo,3,1,"td",3),t.YNc(6,Vo,3,1,"td",3),t.YNc(7,Qo,3,1,"td",3),t.YNc(8,Ho,3,1,"td",3),t.qZA()),2&n){const e=i.ngVar;t.xp6(3),t.Q6J("ngIf",!!e),t.xp6(1),t.Q6J("ngIf",!!e),t.xp6(1),t.Q6J("ngIf",!!e),t.xp6(1),t.Q6J("ngIf",!!e),t.xp6(1),t.Q6J("ngIf",!!e),t.xp6(1),t.Q6J("ngIf",!!e)}}function jo(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"+"),t.qZA())}function Go(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,jo,2,0,"span",3),t._uU(2),t.qZA()),2&n){const e=t.oxw();t.Tol(e.configValues[e.ArmorStat.Mobility]>0?"positive":"negative"),t.xp6(1),t.Q6J("ngIf",e.configValues[e.ArmorStat.Mobility]>0),t.xp6(1),t.hij("",e.configValues[e.ArmorStat.Mobility]," ")}}function zo(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"+"),t.qZA())}function Ko(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,zo,2,0,"span",3),t._uU(2),t.qZA()),2&n){const e=t.oxw();t.Tol(e.configValues[e.ArmorStat.Resilience]>0?"positive":"negative"),t.xp6(1),t.Q6J("ngIf",e.configValues[e.ArmorStat.Resilience]>0),t.xp6(1),t.hij("",e.configValues[e.ArmorStat.Resilience]," ")}}function $o(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"+"),t.qZA())}function Xo(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,$o,2,0,"span",3),t._uU(2),t.qZA()),2&n){const e=t.oxw();t.Tol(e.configValues[e.ArmorStat.Recovery]>0?"positive":"negative"),t.xp6(1),t.Q6J("ngIf",e.configValues[e.ArmorStat.Recovery]>0),t.xp6(1),t.hij("",e.configValues[e.ArmorStat.Recovery]," ")}}function ti(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"+"),t.qZA())}function ei(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,ti,2,0,"span",3),t._uU(2),t.qZA()),2&n){const e=t.oxw();t.Tol(e.configValues[e.ArmorStat.Discipline]>0?"positive":"negative"),t.xp6(1),t.Q6J("ngIf",e.configValues[e.ArmorStat.Discipline]>0),t.xp6(1),t.hij("",e.configValues[e.ArmorStat.Discipline]," ")}}function ni(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"+"),t.qZA())}function oi(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,ni,2,0,"span",3),t._uU(2),t.qZA()),2&n){const e=t.oxw();t.Tol(e.configValues[e.ArmorStat.Intellect]>0?"positive":"negative"),t.xp6(1),t.Q6J("ngIf",e.configValues[e.ArmorStat.Intellect]>0),t.xp6(1),t.hij("",e.configValues[e.ArmorStat.Intellect]," ")}}function ii(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"+"),t.qZA())}function ai(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,ii,2,0,"span",3),t._uU(2),t.qZA()),2&n){const e=t.oxw();t.Tol(e.configValues[e.ArmorStat.Strength]>0?"positive":"negative"),t.xp6(1),t.Q6J("ngIf",e.configValues[e.ArmorStat.Strength]>0),t.xp6(1),t.hij("",e.configValues[e.ArmorStat.Strength]," ")}}function si(n,i){if(1&n&&(t.TgZ(0,"span",55),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("",e,"\xd75")}}function ri(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,si,2,1,"span",54),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function li(n,i){if(1&n&&(t.TgZ(0,"span",55),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("",e,"\xd75")}}function ci(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,li,2,1,"span",54),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function mi(n,i){if(1&n&&(t.TgZ(0,"span",55),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("",e,"\xd75")}}function di(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,mi,2,1,"span",54),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function ui(n,i){if(1&n&&(t.TgZ(0,"span",55),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("",e,"\xd75")}}function pi(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,ui,2,1,"span",54),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function gi(n,i){if(1&n&&(t.TgZ(0,"span",55),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("",e,"\xd75")}}function _i(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,gi,2,1,"span",54),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function fi(n,i){if(1&n&&(t.TgZ(0,"span",55),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("",e,"\xd75")}}function hi(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,fi,2,1,"span",54),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function xi(n,i){if(1&n&&(t.TgZ(0,"tr",53)(1,"td"),t._uU(2,"Minor Mods"),t.qZA(),t.YNc(3,ri,2,1,"td",8),t.ALo(4,"count"),t.YNc(5,ci,2,1,"td",8),t.ALo(6,"count"),t.YNc(7,di,2,1,"td",8),t.ALo(8,"count"),t.YNc(9,pi,2,1,"td",8),t.ALo(10,"count"),t.YNc(11,_i,2,1,"td",8),t.ALo(12,"count"),t.YNc(13,hi,2,1,"td",8),t.ALo(14,"count"),t.qZA()),2&n){const e=i.ngVar,o=t.oxw();t.xp6(3),t.Q6J("ngVar",t.xi3(4,6,e,o.StatModifier.MINOR_MOBILITY)),t.xp6(2),t.Q6J("ngVar",t.xi3(6,9,e,o.StatModifier.MINOR_RESILIENCE)),t.xp6(2),t.Q6J("ngVar",t.xi3(8,12,e,o.StatModifier.MINOR_RECOVERY)),t.xp6(2),t.Q6J("ngVar",t.xi3(10,15,e,o.StatModifier.MINOR_DISCIPLINE)),t.xp6(2),t.Q6J("ngVar",t.xi3(12,18,e,o.StatModifier.MINOR_INTELLECT)),t.xp6(2),t.Q6J("ngVar",t.xi3(14,21,e,o.StatModifier.MINOR_STRENGTH))}}function yi(n,i){if(1&n&&(t.TgZ(0,"span",55),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("",e,"\xd710")}}function Ci(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,yi,2,1,"span",54),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function Ti(n,i){if(1&n&&(t.TgZ(0,"span",55),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("",e,"\xd710")}}function vi(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,Ti,2,1,"span",54),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function bi(n,i){if(1&n&&(t.TgZ(0,"span",55),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("",e,"\xd710")}}function Ai(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,bi,2,1,"span",54),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function wi(n,i){if(1&n&&(t.TgZ(0,"span",55),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("",e,"\xd710")}}function Zi(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,wi,2,1,"span",54),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function Ii(n,i){if(1&n&&(t.TgZ(0,"span",55),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("",e,"\xd710")}}function Si(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,Ii,2,1,"span",54),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function Mi(n,i){if(1&n&&(t.TgZ(0,"span",55),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("",e,"\xd710")}}function Oi(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,Mi,2,1,"span",54),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function ki(n,i){if(1&n&&(t.TgZ(0,"tr")(1,"td"),t._uU(2,"Major Mods"),t.qZA(),t.YNc(3,Ci,2,1,"td",8),t.ALo(4,"count"),t.YNc(5,vi,2,1,"td",8),t.ALo(6,"count"),t.YNc(7,Ai,2,1,"td",8),t.ALo(8,"count"),t.YNc(9,Zi,2,1,"td",8),t.ALo(10,"count"),t.YNc(11,Si,2,1,"td",8),t.ALo(12,"count"),t.YNc(13,Oi,2,1,"td",8),t.ALo(14,"count"),t.qZA()),2&n){const e=i.ngVar,o=t.oxw();t.xp6(3),t.Q6J("ngVar",t.xi3(4,6,e,o.StatModifier.MAJOR_MOBILITY)),t.xp6(2),t.Q6J("ngVar",t.xi3(6,9,e,o.StatModifier.MAJOR_RESILIENCE)),t.xp6(2),t.Q6J("ngVar",t.xi3(8,12,e,o.StatModifier.MAJOR_RECOVERY)),t.xp6(2),t.Q6J("ngVar",t.xi3(10,15,e,o.StatModifier.MAJOR_DISCIPLINE)),t.xp6(2),t.Q6J("ngVar",t.xi3(12,18,e,o.StatModifier.MAJOR_INTELLECT)),t.xp6(2),t.Q6J("ngVar",t.xi3(14,21,e,o.StatModifier.MAJOR_STRENGTH))}}function Ei(n,i){if(1&n&&(t.TgZ(0,"span",55),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("",e,"\xd73")}}function Ui(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,Ei,2,1,"span",54),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function Di(n,i){if(1&n&&(t.TgZ(0,"span",55),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("",e,"\xd73")}}function Pi(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,Di,2,1,"span",54),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function Ri(n,i){if(1&n&&(t.TgZ(0,"span",55),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("",e,"\xd73")}}function Ni(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,Ri,2,1,"span",54),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function qi(n,i){if(1&n&&(t.TgZ(0,"span",55),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("",e,"\xd73")}}function Fi(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,qi,2,1,"span",54),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function Ji(n,i){if(1&n&&(t.TgZ(0,"span",55),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("",e,"\xd73")}}function Li(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,Ji,2,1,"span",54),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function Yi(n,i){if(1&n&&(t.TgZ(0,"span",55),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("",e,"\xd73")}}function Bi(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,Yi,2,1,"span",54),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function Vi(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"tr")(2,"td"),t._uU(3,"Artifice Mods"),t.qZA(),t.YNc(4,Ui,2,1,"td",8),t.ALo(5,"count"),t.YNc(6,Pi,2,1,"td",8),t.ALo(7,"count"),t.YNc(8,Ni,2,1,"td",8),t.ALo(9,"count"),t.YNc(10,Fi,2,1,"td",8),t.ALo(11,"count"),t.YNc(12,Li,2,1,"td",8),t.ALo(13,"count"),t.YNc(14,Bi,2,1,"td",8),t.ALo(15,"count"),t.qZA(),t.BQk()),2&n){const e=i.ngVar,o=t.oxw();t.xp6(4),t.Q6J("ngVar",t.xi3(5,6,e,o.StatModifier.ARTIFICE_MOBILITY)),t.xp6(2),t.Q6J("ngVar",t.xi3(7,9,e,o.StatModifier.ARTIFICE_RESILIENCE)),t.xp6(2),t.Q6J("ngVar",t.xi3(9,12,e,o.StatModifier.ARTIFICE_RECOVERY)),t.xp6(2),t.Q6J("ngVar",t.xi3(11,15,e,o.StatModifier.ARTIFICE_DISCIPLINE)),t.xp6(2),t.Q6J("ngVar",t.xi3(13,18,e,o.StatModifier.ARTIFICE_INTELLECT)),t.xp6(2),t.Q6J("ngVar",t.xi3(15,21,e,o.StatModifier.ARTIFICE_STRENGTH))}}function Qi(n,i){if(1&n&&(t.TgZ(0,"tr",56)(1,"td"),t._uU(2,"Total"),t.qZA(),t.TgZ(3,"td"),t._uU(4),t._UZ(5,"img",47),t.qZA(),t.TgZ(6,"td"),t._uU(7),t._UZ(8,"img",48),t.qZA(),t.TgZ(9,"td"),t._uU(10),t._UZ(11,"img",49),t.qZA(),t.TgZ(12,"td"),t._uU(13),t._UZ(14,"img",50),t.qZA(),t.TgZ(15,"td"),t._uU(16),t._UZ(17,"img",51),t.qZA(),t.TgZ(18,"td"),t._uU(19),t._UZ(20,"img",52),t.qZA()()),2&n){const e=i.ngVar,o=t.oxw();t.xp6(4),t.hij(" ",e[o.ArmorStat.Mobility]," "),t.xp6(3),t.hij(" ",e[o.ArmorStat.Resilience]," "),t.xp6(3),t.hij(" ",e[o.ArmorStat.Recovery]," "),t.xp6(3),t.hij(" ",e[o.ArmorStat.Discipline]," "),t.xp6(3),t.hij(" ",e[o.ArmorStat.Intellect]," "),t.xp6(3),t.hij(" ",e[o.ArmorStat.Strength]," ")}}function Hi(n,i){if(1&n&&(t.TgZ(0,"span",63),t._UZ(1,"img",64),t._uU(2),t.ALo(3,"number"),t.qZA()),2&n){const e=t.oxw(2).ngVar;t.xp6(2),t.hij(" ",t.lcZ(3,1,e.glimmer)," ")}}function Wi(n,i){if(1&n&&(t.TgZ(0,"span",65),t._UZ(1,"img",66),t._uU(2),t.qZA()),2&n){const e=t.oxw(2).ngVar;t.xp6(2),t.hij(" ",e.core," ")}}function ji(n,i){if(1&n&&(t.TgZ(0,"span",67),t._UZ(1,"img",68),t._uU(2),t.qZA()),2&n){const e=t.oxw(2).ngVar;t.xp6(2),t.hij(" ",e.prism," ")}}function Gi(n,i){if(1&n&&(t.TgZ(0,"span",69),t._UZ(1,"img",70),t._uU(2),t.qZA()),2&n){const e=t.oxw(2).ngVar;t.xp6(2),t.hij(" ",e.ascshard," ")}}function zi(n,i){if(1&n&&(t.TgZ(0,"div",58),t._uU(1," Total material cost: "),t.YNc(2,Hi,4,3,"span",59),t.YNc(3,Wi,3,1,"span",60),t.YNc(4,ji,3,1,"span",61),t.YNc(5,Gi,3,1,"span",62),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(2),t.Q6J("ngIf",e.glimmer>0),t.xp6(1),t.Q6J("ngIf",e.core>0),t.xp6(1),t.Q6J("ngIf",e.prism>0),t.xp6(1),t.Q6J("ngIf",e.ascshard>0)}}function Ki(n,i){if(1&n&&(t.ynx(0),t.YNc(1,zi,6,4,"div",57),t.BQk()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e.total>0)}}function $i(n,i){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"button",71),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.openSnackBar("Copied the DIM search query to your clipboard."))}),t._uU(2," Copy DIM query to clipboard "),t.qZA(),t.BQk()}if(2&n){const e=i.ngVar;t.xp6(1),t.Q6J("cdkCopyToClipboard",e)}}function Xi(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1," and use a masterworked class item"),t.qZA())}function ta(n,i){if(1&n&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",e.name," ")}}function ea(n,i){if(1&n&&(t.TgZ(0,"li"),t._uU(1," Masterwork these items: "),t.TgZ(2,"ul"),t.YNc(3,ta,2,1,"li",2),t.qZA()()),2&n){const e=t.oxw().ngVar;t.xp6(3),t.Q6J("ngForOf",e)}}function na(n,i){if(1&n&&(t.ynx(0),t.YNc(1,ea,4,1,"li",3),t.BQk()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e.length>0)}}function oa(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3).ngVar;t.xp6(1),t.hij("",e," minor")}}function ia(n,i){1&n&&(t.ynx(0),t._uU(1," and"),t.BQk())}function aa(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2).ngVar;t.xp6(1),t.hij(" ",e," major ")}}function sa(n,i){1&n&&(t.ynx(0),t._uU(1,"s"),t.BQk())}function ra(n,i){if(1&n&&(t.TgZ(0,"li",55),t.YNc(1,oa,2,1,"span",3),t.YNc(2,ia,2,0,"ng-container",3),t.YNc(3,aa,2,1,"span",3),t._uU(4," Mobility Mod"),t.YNc(5,sa,2,0,"ng-container",3),t.qZA()),2&n){const e=t.oxw().ngVar,o=t.oxw().ngVar;t.xp6(1),t.Q6J("ngIf",o>0),t.xp6(1),t.Q6J("ngIf",o>0&&e>0),t.xp6(1),t.Q6J("ngIf",e>0),t.xp6(2),t.Q6J("ngIf",o+e>1)}}function la(n,i){if(1&n&&(t.ynx(0),t.YNc(1,ra,6,4,"li",54),t.BQk()),2&n){const e=i.ngVar,o=t.oxw().ngVar;t.xp6(1),t.Q6J("ngIf",o+e>0)}}function ca(n,i){if(1&n&&(t.ynx(0),t.YNc(1,la,2,1,"ng-container",8),t.ALo(2,"count"),t.BQk()),2&n){const e=t.oxw().ngVar,o=t.oxw(2);t.xp6(1),t.Q6J("ngVar",t.xi3(2,1,e,o.StatModifier.MAJOR_MOBILITY))}}function ma(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3).ngVar;t.xp6(1),t.hij("",e," minor")}}function da(n,i){1&n&&(t.ynx(0),t._uU(1," and"),t.BQk())}function ua(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2).ngVar;t.xp6(1),t.hij(" ",e," major ")}}function pa(n,i){1&n&&(t.ynx(0),t._uU(1,"s"),t.BQk())}function ga(n,i){if(1&n&&(t.TgZ(0,"li",55),t.YNc(1,ma,2,1,"span",3),t.YNc(2,da,2,0,"ng-container",3),t.YNc(3,ua,2,1,"span",3),t._uU(4," Resilience Mod"),t.YNc(5,pa,2,0,"ng-container",3),t.qZA()),2&n){const e=t.oxw().ngVar,o=t.oxw().ngVar;t.xp6(1),t.Q6J("ngIf",o>0),t.xp6(1),t.Q6J("ngIf",o>0&&e>0),t.xp6(1),t.Q6J("ngIf",e>0),t.xp6(2),t.Q6J("ngIf",o+e>1)}}function _a(n,i){if(1&n&&(t.ynx(0),t.YNc(1,ga,6,4,"li",54),t.BQk()),2&n){const e=i.ngVar,o=t.oxw().ngVar;t.xp6(1),t.Q6J("ngIf",o+e>0)}}function fa(n,i){if(1&n&&(t.ynx(0),t.YNc(1,_a,2,1,"ng-container",8),t.ALo(2,"count"),t.BQk()),2&n){const e=t.oxw().ngVar,o=t.oxw(2);t.xp6(1),t.Q6J("ngVar",t.xi3(2,1,e,o.StatModifier.MAJOR_RESILIENCE))}}function ha(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3).ngVar;t.xp6(1),t.hij("",e," minor")}}function xa(n,i){1&n&&(t.ynx(0),t._uU(1," and"),t.BQk())}function ya(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2).ngVar;t.xp6(1),t.hij(" ",e," major ")}}function Ca(n,i){1&n&&(t.ynx(0),t._uU(1,"s"),t.BQk())}function Ta(n,i){if(1&n&&(t.TgZ(0,"li",55),t.YNc(1,ha,2,1,"span",3),t.YNc(2,xa,2,0,"ng-container",3),t.YNc(3,ya,2,1,"span",3),t._uU(4," Recovery Mod"),t.YNc(5,Ca,2,0,"ng-container",3),t.qZA()),2&n){const e=t.oxw().ngVar,o=t.oxw().ngVar;t.xp6(1),t.Q6J("ngIf",o>0),t.xp6(1),t.Q6J("ngIf",o>0&&e>0),t.xp6(1),t.Q6J("ngIf",e>0),t.xp6(2),t.Q6J("ngIf",o+e>1)}}function va(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Ta,6,4,"li",54),t.BQk()),2&n){const e=i.ngVar,o=t.oxw().ngVar;t.xp6(1),t.Q6J("ngIf",o+e>0)}}function ba(n,i){if(1&n&&(t.ynx(0),t.YNc(1,va,2,1,"ng-container",8),t.ALo(2,"count"),t.BQk()),2&n){const e=t.oxw().ngVar,o=t.oxw(2);t.xp6(1),t.Q6J("ngVar",t.xi3(2,1,e,o.StatModifier.MAJOR_RECOVERY))}}function Aa(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3).ngVar;t.xp6(1),t.hij("",e," minor")}}function wa(n,i){1&n&&(t.ynx(0),t._uU(1," and"),t.BQk())}function Za(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2).ngVar;t.xp6(1),t.hij(" ",e," major ")}}function Ia(n,i){1&n&&(t.ynx(0),t._uU(1,"s"),t.BQk())}function Sa(n,i){if(1&n&&(t.TgZ(0,"li",55),t.YNc(1,Aa,2,1,"span",3),t.YNc(2,wa,2,0,"ng-container",3),t.YNc(3,Za,2,1,"span",3),t._uU(4," Discipline Mod"),t.YNc(5,Ia,2,0,"ng-container",3),t.qZA()),2&n){const e=t.oxw().ngVar,o=t.oxw().ngVar;t.xp6(1),t.Q6J("ngIf",o>0),t.xp6(1),t.Q6J("ngIf",o>0&&e>0),t.xp6(1),t.Q6J("ngIf",e>0),t.xp6(2),t.Q6J("ngIf",o+e>1)}}function Ma(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Sa,6,4,"li",54),t.BQk()),2&n){const e=i.ngVar,o=t.oxw().ngVar;t.xp6(1),t.Q6J("ngIf",o+e>0)}}function Oa(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Ma,2,1,"ng-container",8),t.ALo(2,"count"),t.BQk()),2&n){const e=t.oxw().ngVar,o=t.oxw(2);t.xp6(1),t.Q6J("ngVar",t.xi3(2,1,e,o.StatModifier.MAJOR_DISCIPLINE))}}function ka(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3).ngVar;t.xp6(1),t.hij("",e," minor")}}function Ea(n,i){1&n&&(t.ynx(0),t._uU(1," and"),t.BQk())}function Ua(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2).ngVar;t.xp6(1),t.hij(" ",e," major ")}}function Da(n,i){1&n&&(t.ynx(0),t._uU(1,"s"),t.BQk())}function Pa(n,i){if(1&n&&(t.TgZ(0,"li",55),t.YNc(1,ka,2,1,"span",3),t.YNc(2,Ea,2,0,"ng-container",3),t.YNc(3,Ua,2,1,"span",3),t._uU(4," Intellect Mod"),t.YNc(5,Da,2,0,"ng-container",3),t.qZA()),2&n){const e=t.oxw().ngVar,o=t.oxw().ngVar;t.xp6(1),t.Q6J("ngIf",o>0),t.xp6(1),t.Q6J("ngIf",o>0&&e>0),t.xp6(1),t.Q6J("ngIf",e>0),t.xp6(2),t.Q6J("ngIf",o+e>1)}}function Ra(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Pa,6,4,"li",54),t.BQk()),2&n){const e=i.ngVar,o=t.oxw().ngVar;t.xp6(1),t.Q6J("ngIf",o+e>0)}}function Na(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Ra,2,1,"ng-container",8),t.ALo(2,"count"),t.BQk()),2&n){const e=t.oxw().ngVar,o=t.oxw(2);t.xp6(1),t.Q6J("ngVar",t.xi3(2,1,e,o.StatModifier.MAJOR_INTELLECT))}}function qa(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3).ngVar;t.xp6(1),t.hij("",e," minor")}}function Fa(n,i){1&n&&(t.ynx(0),t._uU(1," and"),t.BQk())}function Ja(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2).ngVar;t.xp6(1),t.hij(" ",e," major ")}}function La(n,i){1&n&&(t.ynx(0),t._uU(1,"s"),t.BQk())}function Ya(n,i){if(1&n&&(t.TgZ(0,"li",55),t.YNc(1,qa,2,1,"span",3),t.YNc(2,Fa,2,0,"ng-container",3),t.YNc(3,Ja,2,1,"span",3),t._uU(4," Strength Mod"),t.YNc(5,La,2,0,"ng-container",3),t.qZA()),2&n){const e=t.oxw().ngVar,o=t.oxw().ngVar;t.xp6(1),t.Q6J("ngIf",o>0),t.xp6(1),t.Q6J("ngIf",o>0&&e>0),t.xp6(1),t.Q6J("ngIf",e>0),t.xp6(2),t.Q6J("ngIf",o+e>1)}}function Ba(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Ya,6,4,"li",54),t.BQk()),2&n){const e=i.ngVar,o=t.oxw().ngVar;t.xp6(1),t.Q6J("ngIf",o+e>0)}}function Va(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Ba,2,1,"ng-container",8),t.ALo(2,"count"),t.BQk()),2&n){const e=t.oxw().ngVar,o=t.oxw(2);t.xp6(1),t.Q6J("ngVar",t.xi3(2,1,e,o.StatModifier.MAJOR_STRENGTH))}}function Qa(n,i){if(1&n&&(t.TgZ(0,"ul"),t.YNc(1,ca,3,4,"ng-container",8),t.ALo(2,"count"),t.YNc(3,fa,3,4,"ng-container",8),t.ALo(4,"count"),t.YNc(5,ba,3,4,"ng-container",8),t.ALo(6,"count"),t.YNc(7,Oa,3,4,"ng-container",8),t.ALo(8,"count"),t.YNc(9,Na,3,4,"ng-container",8),t.ALo(10,"count"),t.YNc(11,Va,3,4,"ng-container",8),t.ALo(12,"count"),t.qZA()),2&n){const e=i.ngVar,o=t.oxw(2);t.xp6(1),t.Q6J("ngVar",t.xi3(2,6,e,o.StatModifier.MINOR_MOBILITY)),t.xp6(2),t.Q6J("ngVar",t.xi3(4,9,e,o.StatModifier.MINOR_RESILIENCE)),t.xp6(2),t.Q6J("ngVar",t.xi3(6,12,e,o.StatModifier.MINOR_RECOVERY)),t.xp6(2),t.Q6J("ngVar",t.xi3(8,15,e,o.StatModifier.MINOR_DISCIPLINE)),t.xp6(2),t.Q6J("ngVar",t.xi3(10,18,e,o.StatModifier.MINOR_INTELLECT)),t.xp6(2),t.Q6J("ngVar",t.xi3(12,21,e,o.StatModifier.MINOR_STRENGTH))}}function Ha(n,i){if(1&n&&(t.TgZ(0,"li"),t._uU(1,"Equip the following stat mods: "),t.YNc(2,Qa,13,24,"ul",8),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngVar",null==e.element?null:e.element.mods)}}function Wa(n,i){if(1&n&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij(" Equip the mod ",e.name," ")}}function ja(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Wa,2,1,"li",3),t.BQk()),2&n){const e=i.ngVar,o=t.oxw(3);t.xp6(1),t.Q6J("ngIf",e.type===o.ModifierType.CombatStyleMod)}}function Ga(n,i){if(1&n&&(t.ynx(0),t.YNc(1,ja,2,1,"ng-container",8),t.BQk()),2&n){const e=i.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngVar",o.ModInformation[e])}}function za(n,i){if(1&n&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij(" Equip the stasis fragment ",e.name," ")}}function Ka(n,i){if(1&n&&(t.ynx(0),t.YNc(1,za,2,1,"li",3),t.BQk()),2&n){const e=i.ngVar,o=t.oxw(3);t.xp6(1),t.Q6J("ngIf",e.type===o.ModifierType.Stasis)}}function $a(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Ka,2,1,"ng-container",8),t.BQk()),2&n){const e=i.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngVar",o.ModInformation[e])}}function Xa(n,i){if(1&n&&(t.TgZ(0,"li"),t._uU(1," Equip any mods and fragments that you enabled in the configuration: "),t.TgZ(2,"ul"),t.YNc(3,Ga,2,1,"ng-container",2),t.YNc(4,$a,2,1,"ng-container",2),t.qZA()()),2&n){const e=t.oxw();t.xp6(3),t.Q6J("ngForOf",e.config_enabledMods),t.xp6(1),t.Q6J("ngForOf",e.config_enabledMods)}}function ts(n,i){if(1&n&&t._UZ(0,"div",75),2&n){const e=t.oxw().$implicit;t.Tol(e)}}function es(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,ts,1,2,"div",74),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngIf",!!e)}}function ns(n,i){if(1&n&&(t.TgZ(0,"tr")(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td"),t._UZ(4,"img",72),t.qZA(),t.YNc(5,es,2,1,"td",2),t.TgZ(6,"td",73),t._uU(7),t.qZA()()),2&n){const e=i.$implicit,o=t.oxw();t.xp6(2),t.Oqu(o.ArmorStatNames[e]),t.xp6(2),t.s9C("alt",o.ArmorStatNames[e]),t.s9C("src",o.ArmorStatIconUrls[e],t.LSH),t.xp6(1),t.Q6J("ngForOf",o.getColumnForStat(e)),t.xp6(2),t.Oqu(o.getTiersForStat(e))}}function os(n,i){if(1&n&&(t.TgZ(0,"tr")(1,"td"),t._uU(2,"Exotic:"),t.qZA(),t.TgZ(3,"td",76),t._uU(4),t.qZA(),t.TgZ(5,"td",77)(6,"div",78),t._UZ(7,"img",79)(8,"img",80),t.qZA()()()),2&n){const e=t.oxw().ngVar;t.xp6(4),t.Oqu(e[0].name),t.xp6(3),t.MGl("src","https://bungie.net/",e[0].icon,"",t.LSH),t.xp6(1),t.MGl("src","https://bungie.net/",e[0].watermark,"",t.LSH)}}function is(n,i){if(1&n&&(t.ynx(0),t.YNc(1,os,9,3,"tr",3),t.BQk()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e[0])}}let as=(()=>{class n{constructor(e,o,a,s){this.config=e,this._snackBar=o,this.bungieApi=a,this.membership=s,this.showGenericClassItemRow=!1,this.armorStatIds=[0,1,2,3,4,5],this.ModifierType=k.O,this.ModInformation=N.F,this.ArmorStatNames=c.Mi,this.ArmorStatIconUrls=c.lp,this.ArmorStat=c.WB,this.StatModifier=c.iV,this.config_characterClass=0,this.config_assumeLegendariesMasterworked=!1,this.config_assumeExoticsMasterworked=!1,this.config_assumeClassItemMasterworked=!1,this.config_enabledMods=[],this.DIMUrl="",this.configValues=[0,0,0,0,0,0],this.element=null,this.ngUnsubscribe=new R.xQ}buildItemIdString(e){if(!e)return"";let o=e.items.flat().filter(r=>r.slot!=T.y.ArmorSlotClass).map(r=>`id:'${r.itemInstanceId}'`).join(" or "),a=["is:classitem"],s=e.items.flat().filter(r=>r.slot==T.y.ArmorSlotClass).map(r=>`exactname:'${r.name}'`).join(" or ");return s.length>0&&(a=[s]),e.classItem.perk!=c.Pn.None&&e.classItem.perk!=c.Pn.COUNT&&a.push(c.ID[e.classItem.perk||0]),a.length>1&&(o+=` or (${a.join(" ")})`),o}openSnackBar(e){this._snackBar.open(e,"",{duration:2500,politeness:"polite"})}ngOnInit(){this.showGenericClassItemRow=(this.element?.items.filter(e=>e.length>0).length||0)<=4,this.config.configuration.pipe((0,Ct.R)(this.ngUnsubscribe)).subscribe(e=>{this.config_characterClass=e.characterClass,this.config_assumeLegendariesMasterworked=e.assumeLegendariesMasterworked,this.config_assumeExoticsMasterworked=e.assumeExoticsMasterworked,this.config_assumeClassItemMasterworked=e.assumeClassItemMasterworked,this.config_enabledMods=e.enabledMods,this.configValues=e.enabledMods.reduce((o,a)=>o.concat(N.F[a].bonus),[]).reduce((o,a)=>(a.stat==c.AR.ClassAbilityRegenerationStat?o[[1,0,2][e.characterClass]]+=a.value:o[a.stat]+=a.value,o),[0,0,0,0,0,0]),this.DIMUrl=this.generateDIMLink(e)})}disableAllItems(){this.config.modifyConfiguration(e=>{for(let o of this.element?.items.flat())e.disabledItems.push(o.itemInstanceId)})}disableItem(e){this.config.modifyConfiguration(o=>{o.disabledItems.push(e)})}get mayAnyItemBeBugged(){return(this.element?.items.flat().filter(e=>e.mayBeBugged).length||0)>0}getCharacterId(){var e=this;return(0,y.Z)(function*(){let o=yield e.membership.getCharacters();return o=o.filter(a=>a.clazz==e.config_characterClass),0==o.length?(e.openSnackBar("Error: Could not find a character to move the items to."),null):o[0].characterId})()}moveItems(e=!1){var o=this;return(0,y.Z)(function*(){for(let d of(o.element?.items||[]).flat())d.transferState=Qt.WAITING_FOR_TRANSFER;let a=yield o.getCharacterId();if(!a)return;let s=!0,r=(o.element?.items||[]).flat().sort(d=>d.exotic?1:-1);for(let d of r){d.transferState=Qt.TRANSFERRING;let p=yield o.bungieApi.transferItem(d.itemInstanceId,a,e);d.transferState=p?Qt.TRANSFERRED:Qt.ERROR_DURING_TRANSFER,p||(s=!1)}o.openSnackBar(s?"Success! Moved all the items.":"Some of the items could not be moved. Make sure that there is enough space in the specific slot. This tool will not move items out of your inventory.")})()}getItemsThatMustBeMasterworked(){return this.element?.items.flat().filter(e=>!(e.masterworked||e.exotic&&!this.config_assumeExoticsMasterworked||!e.exotic&&!this.config_assumeLegendariesMasterworked))}calculateRequiredMasterworkCost(){let e={shards:0,glimmer:0,core:0,prism:0,ascshard:0,total:0},o=this.element?.items.flat()||[];o=o.filter(a=>a.energyLevel<10&&(a.exotic&&this.config_assumeExoticsMasterworked||!a.exotic&&this.config_assumeLegendariesMasterworked));for(let a of o){let s=a.exotic?lo:ro;for(let r=a.energyLevel;r<10;r++)for(let d in s[r+1])e[d]+=s[r+1][d],e.total++}return e}generateDIMLink(e){const o=[],a=[];for(let m of this.config_enabledMods){const S=N.F[m];S.type===k.O.CombatStyleMod?o.push(S.hash):a.push(S.hash)}if(this.element){for(let m of this.element?.mods||[])o.push(c.K9[m][3]);for(let m of this.element?.artifice||[])o.push(c.K9[m][3])}var s={statConstraints:[],mods:o,assumeArmorMasterwork:e.assumeLegendariesMasterworked?e.assumeExoticsMasterworked?3:2:1};for(let m of this.armorStatIds)s.statConstraints.push({statHash:c.kw[m],minTier:e.minimumStatTiers[m].value,maxTier:e.minimumStatTiers[m].fixed?e.minimumStatTiers[m].value:10});if(1==e.selectedExotics.length)s.exoticArmorHash=e.selectedExotics[0];else{var r=this.element?.exotic;if(r&&1==r.length){var d=r[0].hash;d&&(s.exoticArmorHash=parseInt(d,10))}}const p={id:"d2ap",name:"D2ArmorPicker Loadout",classType:e.characterClass,parameters:s,equipped:(this.element?.items||[]).filter(m=>m.length>0).map(([m])=>({id:m.itemInstanceId,hash:m.hash})),unequipped:[],clearSpace:!1};if(a.length){const m=a.reduce((S,q,$)=>(S[$+7]=q,S),{});if(3!=e.characterClass&&e.selectedModElement!=k.O.CombatStyleMod){const q=c.Bd[e.characterClass][e.selectedModElement];q&&p.equipped.push({id:"12345",hash:q,socketOverrides:m})}}return"https://app.destinyitemmanager.com/loadouts?loadout="+encodeURIComponent(JSON.stringify(p))}goToDIM(){window.open(this.DIMUrl,"blank")}getTiersForStat(e){return Math.floor((this.element?.stats[e]||0)/10)}getColumnForStat(e){var o=Math.floor(this.configValues[e]/10);let a=[],s=0,r=Math.ceil((5*(this.element?.mods.filter(p=>p==1+2*e)||[]).length+10*(this.element?.mods.filter(p=>p==2+2*e)||[]).length)/10);var d=this.getTiersForStat(e)-o-r;for(let p=0;p10?" over100":""));for(let p=0;p10?" over100":""));for(let p=0;p10?" over100":""));for(;s++<10;)a.push("");return a}getRequiredMasterworkBonus(){return 2*(this.element?.items.filter(e=>!e[0].masterworked&&!e[0].exotic&&this.config_assumeLegendariesMasterworked||e[0].exotic&&this.config_assumeExoticsMasterworked)||[]).length}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(X),t.Y36(ue.ux),t.Y36(bt),t.Y36(Ut))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-expanded-result-content"]],inputs:{element:"element"},decls:124,vars:26,consts:[["class","invalid-item-box mat-elevation-z4","color","warn",4,"ngIf"],[1,"specificStatTable"],[4,"ngFor","ngForOf"],[4,"ngIf"],["class","result-total-gear result-total highlight-row",4,"ngVar"],[1,"result-config"],[3,"class",4,"ngIf"],["class","highlight-row",4,"ngVar"],[4,"ngVar"],["class","result-total-all result-total highlight-row",4,"ngVar"],[1,"buttonContainer"],["color","primary","mat-raised-button","","matTooltip","Use this button to open this build as a DIM Loadout.",3,"click"],["mat-stroked-button","","matTooltip","Click this button to move Items to your inventory. Make sure that you have enough space in your inventory. This tool will not move any items out of your inventory.",3,"click"],["mat-stroked-button","","matTooltip","Click this button to equip the Items. Make sure that you have enough space in your inventory. This tool will not move any items out of your inventory.",3,"click"],[1,"mat-elevation-z6"],[1,"stat-preview"],["colspan","2"],[1,"tier-column"],[1,"legend"],[1,"energy-bar","normal"],["colspan","3"],[1,"energy-bar","mod"],["colspan","4"],[1,"energy-bar","config"],["color","warn",1,"invalid-item-box","mat-elevation-z4"],[3,"highlight-row",4,"ngFor","ngForOf"],["class","item-name-mw","matTooltip","This item is already masterworked.",4,"ngIf"],[1,"icon-column"],[1,"item-icon-container",3,"itemTooltip"],[1,"item-icon",3,"itemHash","masterworked","source"],[2,"position","relative","width","25px"],[3,"perk"],["mat-icon-button","","matTooltip","Disable this item from the results. It will not be used to generate results anymore, but you can always undo this.",1,"item-info-menu-btn",3,"click"],["class","icon-column",4,"ngIf"],["matTooltip","This item is already masterworked.",1,"item-name-mw"],["tooltip","matTooltip"],[1,"item-stat-container"],[1,"item-stat-value"],["color","primary","diameter","22","mode","indeterminate",1,"item-loading-spinner"],["aria-hidden","false","aria-label","Success","inline","","matTooltip","Item successfully moved to inventory.",1,"item-moved-icon"],["aria-hidden","false","aria-label","Error","inline","","matTooltip","This item could not be moved. Make sure that there is enough space on your character. This tool will not move items out of your inventory.",1,"report-problem-icon"],["aria-hidden","false","aria-label","Error","inline","","matTooltip","The stats of this item may be incorrect. Make sure that you remove every positive or negative stat modifier from this item.",1,"report-problem-icon"],["matTooltip","Class item should be masterworked.",1,"item-name-mw"],[1,"text-mw"],["mat-icon-button","","matTooltip","Disable all four items above from the results. They will not be used to generate results anymore, but you can always undo this.",1,"item-info-menu-btn","report-problem-icon",3,"click"],["colspan","6",1,"text-centered"],[1,"result-total-gear","result-total","highlight-row"],["alt","Mobility","src","https://www.bungie.net/common/destiny2_content/icons/e26e0e93a9daf4fdd21bf64eb9246340.png",1,"statIcon"],["alt","Resilience","src","https://www.bungie.net/common/destiny2_content/icons/202ecc1c6febeb6b97dafc856e863140.png",1,"statIcon"],["alt","Recovery","src","https://www.bungie.net/common/destiny2_content/icons/128eee4ee7fc127851ab32eac6ca91cf.png",1,"statIcon"],["alt","Discipline","src","https://www.bungie.net/common/destiny2_content/icons/79be2d4adef6a19203f7385e5c63b45b.png",1,"statIcon"],["alt","Intellect","src","https://www.bungie.net/common/destiny2_content/icons/d1c154469670e9a592c9d4cbdcae5764.png",1,"statIcon"],["alt","Strength","src","https://www.bungie.net/common/destiny2_content/icons/ea5af04ccd6a3470a44fd7bb0f66e2f7.png",1,"statIcon"],[1,"highlight-row"],["class","positive",4,"ngIf"],[1,"positive"],[1,"result-total-all","result-total","highlight-row"],["style","margin-top: 10px",4,"ngIf"],[2,"margin-top","10px"],["class","currency-icon-container","matTooltip","Glimmer",4,"ngIf"],["class","currency-icon-container","matTooltip","Enhancement Cores",4,"ngIf"],["class","currency-icon-container","matTooltip","Enhancement Prism",4,"ngIf"],["class","currency-icon-container","matTooltip","Ascendant Shard",4,"ngIf"],["matTooltip","Glimmer",1,"currency-icon-container"],["alt","Glimmer","src","https://www.bungie.net/common/destiny2_content/icons/88993eaeedad32f42072df6f77f47311.png",1,"currency-icon"],["matTooltip","Enhancement Cores",1,"currency-icon-container"],["alt","Enhancement Cores","src","https://www.bungie.net/common/destiny2_content/icons/0a4eb695ed55b4e720ddc401460cc0f9.jpg",1,"currency-icon"],["matTooltip","Enhancement Prism",1,"currency-icon-container"],["alt","Enhancement Prism","src","https://www.bungie.net/common/destiny2_content/icons/dea2a35badf7466d4c2c2697ce6e8d87.jpg",1,"currency-icon"],["matTooltip","Ascendant Shard",1,"currency-icon-container"],["alt","Ascendant Shard","src","https://www.bungie.net/common/destiny2_content/icons/0271d214fc3ec91b3def799a4b286b46.jpg",1,"currency-icon"],["color","primary","mat-raised-button","","matTooltip","Use this button to copy a DIM search query to your clip board. It allows you to search the given items in DIM.",3,"cdkCopyToClipboard","click"],[2,"height","18px",3,"alt","src"],[1,"sum-tiers"],["class","energy-bar",3,"class",4,"ngIf"],[1,"energy-bar"],["colspan","10"],["colspan","1"],[1,"item-icon-container"],[1,"item-icon",3,"src"],[1,"item-icon-overlay",3,"src"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.YNc(1,Mo,4,0,"mat-toolbar",0),t._uU(2," This table shows you the expected stats of any item: "),t.TgZ(3,"table",1)(4,"thead")(5,"tr")(6,"th"),t._uU(7,"Name"),t.qZA(),t.TgZ(8,"th"),t._uU(9,"Mobility"),t.qZA(),t.TgZ(10,"th"),t._uU(11,"Resilience"),t.qZA(),t.TgZ(12,"th"),t._uU(13,"Recovery"),t.qZA(),t.TgZ(14,"th"),t._uU(15,"Discipline"),t.qZA(),t.TgZ(16,"th"),t._uU(17,"Intellect"),t.qZA(),t.TgZ(18,"th"),t._uU(19,"Strength"),t.qZA(),t._UZ(20,"th")(21,"th"),t.qZA()(),t.YNc(22,qo,2,1,"ng-container",2),t.YNc(23,Fo,24,7,"tr",3),t.YNc(24,Jo,11,0,"tr",3),t.YNc(25,Wo,9,6,"tr",4),t.TgZ(26,"tr",5)(27,"td"),t._uU(28,"Configuration"),t.qZA(),t.TgZ(29,"td"),t.YNc(30,Go,3,4,"span",6),t.qZA(),t.TgZ(31,"td"),t.YNc(32,Ko,3,4,"span",6),t.qZA(),t.TgZ(33,"td"),t.YNc(34,Xo,3,4,"span",6),t.qZA(),t.TgZ(35,"td"),t.YNc(36,ei,3,4,"span",6),t.qZA(),t.TgZ(37,"td"),t.YNc(38,oi,3,4,"span",6),t.qZA(),t.TgZ(39,"td"),t.YNc(40,ai,3,4,"span",6),t.qZA()(),t.YNc(41,xi,15,24,"tr",7),t.YNc(42,ki,15,24,"tr",8),t.YNc(43,Vi,16,24,"ng-container",8),t.YNc(44,Qi,21,6,"tr",9),t.qZA()(),t.YNc(45,Ki,2,1,"ng-container",8),t.TgZ(46,"div",10),t.YNc(47,$i,3,1,"ng-container",8),t.TgZ(48,"button",11),t.NdJ("click",function(){return o.goToDIM()}),t._uU(49," Open Loadout in DIM "),t.qZA(),t._UZ(50,"br"),t.TgZ(51,"small"),t._uU(52,"The following two buttons may not work for some at the moment:"),t.qZA(),t._UZ(53,"br"),t.TgZ(54,"button",12),t.NdJ("click",function(){return o.moveItems()}),t._uU(55," Move items to inventory (beta) "),t.qZA(),t.TgZ(56,"button",13),t.NdJ("click",function(){return o.moveItems(!0)}),t._uU(57," Equip Items (beta) "),t.qZA()(),t.TgZ(58,"mat-accordion")(59,"mat-expansion-panel",14)(60,"mat-expansion-panel-header")(61,"mat-panel-title"),t._uU(62," What to do now? "),t.qZA(),t.TgZ(63,"mat-panel-description"),t._uU(64," Detailed Instructions of to get your loadout ready. "),t.qZA()(),t.TgZ(65,"div")(66,"ol")(67,"li"),t._uU(68," Move all related items into your inventory "),t.YNc(69,Xi,2,0,"span",3),t._uU(70,". "),t.qZA(),t.YNc(71,na,2,1,"ng-container",8),t.YNc(72,Ha,3,1,"li",3),t.ALo(73,"count"),t.YNc(74,Xa,5,2,"li",3),t.qZA()()(),t.TgZ(75,"mat-expansion-panel",14)(76,"mat-expansion-panel-header")(77,"mat-panel-title"),t._uU(78," Stat overview "),t.qZA(),t.TgZ(79,"mat-panel-description"),t._uU(80," Shows a summary of all the stats and where they come from. "),t.qZA()(),t.TgZ(81,"table",15)(82,"tr")(83,"td",16),t._uU(84,"Stat"),t.qZA(),t.TgZ(85,"td",17),t._uU(86,"1"),t.qZA(),t.TgZ(87,"td",17),t._uU(88,"2"),t.qZA(),t.TgZ(89,"td",17),t._uU(90,"3"),t.qZA(),t.TgZ(91,"td",17),t._uU(92,"4"),t.qZA(),t.TgZ(93,"td",17),t._uU(94,"5"),t.qZA(),t.TgZ(95,"td",17),t._uU(96,"6"),t.qZA(),t.TgZ(97,"td",17),t._uU(98,"7"),t.qZA(),t.TgZ(99,"td",17),t._uU(100,"8"),t.qZA(),t.TgZ(101,"td",17),t._uU(102,"9"),t.qZA(),t.TgZ(103,"td",17),t._uU(104,"10"),t.qZA(),t.TgZ(105,"td"),t._uU(106,"Tiers"),t.qZA()(),t.YNc(107,ns,8,5,"tr",2),t.TgZ(108,"tr",18)(109,"td",16),t._uU(110,"Armor"),t.qZA(),t.TgZ(111,"td"),t._UZ(112,"div",19),t.qZA(),t.TgZ(113,"td",20),t._uU(114,"Stat Mod"),t.qZA(),t.TgZ(115,"td"),t._UZ(116,"div",21),t.qZA(),t.TgZ(117,"td",22),t._uU(118,"Fragments & Mods"),t.qZA(),t.TgZ(119,"td"),t._UZ(120,"div",23),t.qZA()(),t.YNc(121,is,2,1,"ng-container",8),t.qZA()()(),t._UZ(122,"br")(123,"br")),2&e&&(t.xp6(1),t.Q6J("ngIf",o.mayAnyItemBeBugged),t.xp6(21),t.Q6J("ngForOf",null==o.element?null:o.element.items),t.xp6(1),t.Q6J("ngIf",o.showGenericClassItemRow&&o.config_assumeClassItemMasterworked),t.xp6(1),t.Q6J("ngIf",o.showGenericClassItemRow&&!o.config_assumeClassItemMasterworked),t.xp6(1),t.Q6J("ngVar",null==o.element?null:o.element.statsNoMods),t.xp6(5),t.Q6J("ngIf",0!==o.configValues[o.ArmorStat.Mobility]),t.xp6(2),t.Q6J("ngIf",0!==o.configValues[o.ArmorStat.Resilience]),t.xp6(2),t.Q6J("ngIf",0!==o.configValues[o.ArmorStat.Recovery]),t.xp6(2),t.Q6J("ngIf",0!==o.configValues[o.ArmorStat.Discipline]),t.xp6(2),t.Q6J("ngIf",0!==o.configValues[o.ArmorStat.Intellect]),t.xp6(2),t.Q6J("ngIf",0!==o.configValues[o.ArmorStat.Strength]),t.xp6(1),t.Q6J("ngVar",null==o.element?null:o.element.mods),t.xp6(1),t.Q6J("ngVar",null==o.element?null:o.element.mods),t.xp6(1),t.Q6J("ngVar",null==o.element?null:o.element.artifice),t.xp6(1),t.Q6J("ngVar",null==o.element?null:o.element.stats),t.xp6(1),t.Q6J("ngVar",o.calculateRequiredMasterworkCost()),t.xp6(2),t.Q6J("ngVar",o.buildItemIdString(o.element)),t.xp6(22),t.Q6J("ngIf",o.config_assumeClassItemMasterworked),t.xp6(2),t.Q6J("ngVar",o.getItemsThatMustBeMasterworked()),t.xp6(1),t.Q6J("ngIf",(null==o.element?null:o.element.mods).length>0&&t.xi3(73,23,null==o.element?null:o.element.mods,o.StatModifier.NONE)<5),t.xp6(2),t.Q6J("ngIf",o.config_enabledMods.length>0),t.xp6(33),t.Q6J("ngForOf",o.armorStatIds),t.xp6(14),t.Q6J("ngVar",null==o.element?null:o.element.exotic))},dependencies:[I.sg,I.O5,st.lW,pt.gM,St.Hw,wt.Ye,ct.pp,ct.ib,ct.yz,ct.yK,ct.u4,co.Ou,te.i3,zt,Co,ge,_e,I.JJ,Ae],styles:[".element-icon[_ngcontent-%COMP%]{width:22px}.element-icon-mini[_ngcontent-%COMP%]{height:12px}.item-loading-spinner[_ngcontent-%COMP%]{width:22px;height:22px;margin-bottom:6px}.item-icon[_ngcontent-%COMP%]{width:22px}.item-icon-overlay[_ngcontent-%COMP%]{width:22px;margin-left:-22px}.item-icon-container[_ngcontent-%COMP%]{position:relative;contain:layout paint style;box-sizing:border-box;width:var(--item-size);transition:opacity .2s,transform .2s;margin-top:-4px}.item-icon-masterwork-overlay[_ngcontent-%COMP%]{pointer-events:none;box-sizing:border-box;top:-1px;left:-1px;border-width:0;height:24px;width:24px;position:absolute;background-repeat:no-repeat;background-position:center;background-size:22px 22px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAJgklEQVR4AWI8t87oBYCd8rBuGAZi6N1JUQbIrJkiY6bM4EoE1EHvqb+WHsPvG5AJU522JQ/znpY03GzJ3YTovcvcVFcO5WbU8eH/OZ8R91B241c6wEzowJUUZnqlXMiZufrJSs1XUjNBUb6OcvUFF8190fzkGxS2J0ChGPQZDnYAQObJWHbNlCvZIXKxqvHN8KBp22SubByb9EKFGM2hzgyNa47vUzvKvnUToHPOINMFHG6Oo6hb6lhmMump4wROtxSMee8yjC6YI9jOnBYcGn5TZnTdBMB7d0+HB52AeKEb5QL2hQKx8RLk5IkE6eymz9CJFPJIQKxdWZKO5M1u+gw9kPvVJUjqyAt5Z98OMBAI4igO9x97koAAnSY6YHSaAB2nAiyswTbMq+/HAiHv0+4k3Ww1pOvnOvYews1Ow2rGnldEAAAIAAABACAAAAQAgAAAEAAAAgAgPwACAEAAAKiyAfJ7AXALEgAAAuAU5BMgAADki9j/BQCAlkN459OlNu6v0/V43vsAocOvq9kh1n/LX35h+B6EU9DI8fuVh/D48WMRWv742Qgtf/xshBY+fm1cMQgtefwdI5ffA/a9+frC68ox9M3enehIkvJAAC5D9vs/8F+Z/HugkfXJrOfec6QSJBi6O8IO2znX1zdZro39if/K0B8ftp2Hxxfa/vcu6DO8P5x/AaDrvwj4/uDPJDtjP09+ntDze9L+i4DRSEqwtgoQZ9rL3r9Ye/51L+Pw9tF6YuHFPJ/uWBDk2eXZvfb8YyMAwHvg673Z7AvmSF4POeSHmtDnb0xAD3qzN5gLfHsHIOvhktBJ4vOXJqABvJcZnqs5z54R7FF5ODaRiOkIGcXX+OZG7PqJnh6Ev3uOI52Z7tdRUCbdB6AFXHCDcZ3kkf2fGwEN+HGe+3xcE5yBB3umIvk5JnVIggDtnx/1u27XD5CajhBt8tqj9gMahDSan+7C629sxx6DiGmTcxOF304AwOud/SuABnTsZtNABWfaygUynjR3Ld+/GokZp4TO/JsJsEON1uN7OTEPaO9nVFHhHXizTdcN8Fl6BlER5gHk6lghYV8Tgd31DeCPL2icmhISYGsS9P7R9AErAT9JwlWCnuyFsmRuEQurKcBuqyBB72WkXtfmTCD7Au4a4/H7yYAl0N9VY0eERBqRr+Ov51yqCkTEYuuqjL4A+D4p1nvazLzOncHLt1dByhIwqpsHDzcShpIEkM4HZ5+zDEtoRLoKAgrwvwF41/WuAeg+z/1hDzk6VyGPkYW8aLfwarEwr0RJCDr/LUm4+42N8WX6z76Am3R9RoIkGGDvRN7i677TupIhqVZI7vmzPnr+1xLgwT6Bek6QtOE89rMmAGk6d8PhaG9ghSOgeLaAW1FFmYz9viLitcgBCFAgQ2dJ6dcEyLvcKxMuH2za3wW7AeOpqh/k6raz9l49XOIlQozX6pNwNCDnfde6Ckfb2SdeSejLUCXp+L3SPyAlj9FghVVHWV2etlVQ482MNfBHzwe4igSAj7T+4VnmtfdvwBJ5dxoXay/6hrc5gqrnyQCzX5H3fHYVhNd35eOrIWD4zDjZG2ntSmt8CpKTzCAnSEmp6Y7TDthyE9vbjhz7OOYAODg3THqfwEmMIJ29f1TaDwkX+8ckTCf8JAl6EjBviFo70m7v0vtTdD72EqzNgjwIgCJBr+aMRoTzbQMxzBlHIoY5JFCrA9xIZedIZLzZiwScpe1ij/vLyDu8b9p5IH2/V/4hfg+SGIUHr7oSAVhIwgbwIALpgYgLcvokvLU9gfsmgv+37117brJ90PrlHKAtWY24OWLO5/WORGWYAyJeQy8fjceHoOYz5gkTLeAPgL7YU57mHzRBQwA2Cff+5L3s1e9kn8Cuy1hAf9D/EN5YYySVKyQo4tyNSog6XucApWOZeA+Vz6UMNaXotLEiCZsgY4M9KVc/9lmBffwNHSonyQp1H/kpknDEiFeM/U2UybWRmcuEe5IcSPgAqOuQB2b3OiKBMrLumzy33dzy86HG84Z0KCtp/wL4kc7NfFdEDIucK9em8eskRl3q4bUAYc6YXalZJue6/LwkoClD9cYsP5G8d5pkT/U+Cfdd5gpI4jn2EL87eEQiID5tboPq9e+rBLvOA47D/doGj6+lKJpiQC+88WDP33h8JMADL36naIUYJYocsO+NGLOIAJJEjJnWhx7fyM0obAXLta7hmjxfp3dB5IF3AvRJwL3tzG3cjKJ8PkncBPgBocPyNXYEHAkI/md8CFA+eu8/jMiOVc1lpQRBEq38rKTNN/khkJHJXtjE8TW8T50fJO6RxvXaOSBer1j594Rjf5HfNyMSCCFoR43HBtKsirSFSCXILrh/G1p0vRdVSX4vdJvEkZYK+EVu4W0qtluCYtvGHq89MQImAApsLUHniBC0cbjXuclXcvR+o2Dq9ThXzhl3AtCcoabnHPBRdL1vCEwR30hQRAw985hwAZR1IyVcJ3o8p97HqSnE0xz1zpszAfgvSKm634e5tf9HVfaOGNcTJwLiUye2BJrnSk5OEiVZ3unv/7o/zvLT/sGshRy8i4hdyVtvk6mlaNoz4f6/dGvJkRqKgVXuDyuWLLkSZ+CiXIQVZ2CF0h0XbblkRU+hESIjq+yqZ2emJtKbZNK54vlfUBRAgl1A0BUuiyAvmdo/ff/x7QsZF5PsYY2uKw20EKA1NLpuzaNnBmddSCIZqrxIz2ydiEpprucWzrk8WzrZAGQQ5LyL4hJCqhCQ+zOVLFP5Cslzrc88KeGk0LWam1mSprc196WeH8mY/QZcngWxZ3/Y9fhsiiRjcpCzdKjhHSTHqDnCdatee/wFzF40+ph85GP9Ht7969BGjXlj0nBjbkoZJBPAbv+WB2sqWitvZXLrkrGprgluPsf5HvBr+/l1CpD4+8F/4NdnIreI64MMgFf0PUrhDRE3FjLuYLy4y9184Z1eY73w6rr7e2bNu4gvBE9fim7ftEOZkJ5I7TfkY1M+oHyiMF/R9YbcNzW3QfuLk/leIzXWLM/cgcp19FzCemU6cIz/MB9890UWjBGadM7N9QMtlCqqJiFwOjUhdaDQXQCdEwNOpzhYwMpBDrfcFpEXIsjiGJw+9jqidHo7O3+3QVO7+QpIf7ji9cbst7ogrVf8UXTDBslUgkxCCSilwjFdSAkBkSo1EcjSIBXWWvsN9SxF5ebWH3woEIS629sLNhsPabYekYTY/VR0znB/jBdcErKAavL8+A1ICXvgoqroDgAAAABJRU5ErkJggg==)}.negative[_ngcontent-%COMP%]{color:#f08080}.positive[_ngcontent-%COMP%]{color:#6495ed}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{text-align:right}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:not(:last-child) td[_ngcontent-%COMP%]{border-bottom:rgba(240,248,255,.08) solid .5px}.result-total-gear[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom:aliceblue solid 1px!important}.result-total-all[_ngcontent-%COMP%] > td[_ngcontent-%COMP%], .result-total-gear[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{border-top:aliceblue double}.buttonContainer[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:10px}.buttonContainer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(:last-of-type){margin-right:6px;margin-bottom:3px}.result-total[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{position:relative;padding-right:14px}.statIcon[_ngcontent-%COMP%]{position:absolute;height:14px;margin-left:2px;top:3px}.item-info-menu-btn[_ngcontent-%COMP%]{height:22px!important;width:22px!important;line-height:22px!important;top:-4px;left:-4px}.item-info-menu-btn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:22px}.item-moved-icon[_ngcontent-%COMP%]{color:#7fffd4}.report-problem-icon[_ngcontent-%COMP%]{color:#f08080}.invalid-item-box[_ngcontent-%COMP%]{text-align:center;margin-right:auto;margin-left:auto;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content;font-size:15px;line-height:20px}.text-centered[_ngcontent-%COMP%]{text-align:center!important}.specificStatTable[_ngcontent-%COMP%]{border-collapse:separate;border-spacing:0 0}.highlight-row[_ngcontent-%COMP%]{background-color:#6e6e6e21}tr.legend[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-top:3px}.tier-column[_ngcontent-%COMP%]{min-width:27px}.energy-bar[_ngcontent-%COMP%]{width:25px;height:10px;border:white solid 2px;position:relative}.energy-bar.normal[_ngcontent-%COMP%]{background-color:#fff}.energy-bar.mod[_ngcontent-%COMP%]{background-color:gray;border:white ridge 2px}.energy-bar.config[_ngcontent-%COMP%]{background-color:#a3b1c2;border:white ridge 2px}.energy-bar.over100[_ngcontent-%COMP%]{border-color:#ff5e5e;width:10px}.item-stat-container[_ngcontent-%COMP%]{position:relative}.item-stat-bonus[_ngcontent-%COMP%]{position:absolute;right:20px;font-size:x-small}.item-name-mw[_ngcontent-%COMP%]{text-decoration:underline;-webkit-text-decoration-color:#ffbc00;text-decoration-color:#ffbc00}.text-mw[_ngcontent-%COMP%], .item-stat-bonus[_ngcontent-%COMP%]{color:#ffd86a}app-armor-perk-icon[_ngcontent-%COMP%]{width:23px;height:23px;position:absolute;top:-14px;left:0}td.sum-tiers[_ngcontent-%COMP%]{text-align:center!important;border-left:#6e6e6e solid 1px}.currency-icon[_ngcontent-%COMP%]{width:16px;position:absolute;left:0}.currency-icon-container[_ngcontent-%COMP%]{position:relative;padding-left:19px;padding-right:10px}.icon-column[_ngcontent-%COMP%]{padding-left:4px}"]}),n})();var we=_(3238),ss=_(8729);function rs(n,i){1&n&&(t.TgZ(0,"mat-icon",6),t._uU(1,"add_circle_outline "),t.qZA())}function ls(n,i){1&n&&(t.TgZ(0,"mat-icon",7),t._uU(1,"remove_circle_outline "),t.qZA())}function cs(n,i){1&n&&(t.TgZ(0,"mat-icon",8),t._uU(1,"change_history "),t.qZA())}function ms(n,i){if(1&n&&(t.TgZ(0,"mat-list-item"),t.YNc(1,rs,2,0,"mat-icon",2),t.YNc(2,ls,2,0,"mat-icon",3),t.YNc(3,cs,2,0,"mat-icon",4),t.TgZ(4,"div",5)(5,"p"),t._uU(6),t.qZA()()()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngIf",0===e.type),t.xp6(1),t.Q6J("ngIf",1===e.type),t.xp6(1),t.Q6J("ngIf",2===e.type),t.xp6(3),t.Oqu(e.text)}}function ds(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"div",1),t._uU(2),t.qZA(),t.YNc(3,ms,7,4,"mat-list-item",0),t.TgZ(4,"mat-list-item"),t._UZ(5,"br")(6,"mat-divider"),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(2),t.AsE("",e.version,", released on ",e.date,""),t.xp6(1),t.Q6J("ngForOf",e.entries)}}let Ze=(()=>{class n{constructor(e){this.changelog=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(se))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-changelog-list"]],decls:2,vars:1,consts:[[4,"ngFor","ngForOf"],["mat-subheader","",1,"title"],["mat-list-icon","","matTooltip","A new function has been added.",4,"ngIf"],["mat-list-icon","","matTooltip","A function has been removed.",4,"ngIf"],["mat-list-icon","","matTooltip","Something has been modified.",4,"ngIf"],["mat-line","",1,"e"],["mat-list-icon","","matTooltip","A new function has been added."],["mat-list-icon","","matTooltip","A function has been removed."],["mat-list-icon","","matTooltip","Something has been modified."]],template:function(e,o){1&e&&(t.TgZ(0,"mat-list"),t.YNc(1,ds,7,3,"ng-container",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngForOf",o.changelog.changelogData))},dependencies:[I.sg,I.O5,pt.gM,St.Hw,Gt.i$,Gt.Tg,we.X2,Gt.Nh,Gt.gs,ss.d],styles:["[_nghost-%COMP%] .mat-line{word-wrap:break-word!important;white-space:pre-wrap!important}[_nghost-%COMP%] .mat-list .mat-list-item{height:initial!important}.title[_ngcontent-%COMP%]{text-decoration:underline;font-size:20px}.e[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]:first-child{padding-top:12px}"]}),n})();function us(n,i){if(1&n&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(e)}}let ps=(()=>{class n{constructor(){this.knownIssues=["When you click buttons on the page too fast are able to select an invalid state with no results. Just undo your changed settings. And be patient - the calculation is an expensive task.","Sometimes duplicate results are given. This happens when the inventory got updated twice (Race Condition). Only reported once, and not really a problem."],this.changelog=ye}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-help-page"]],decls:116,vars:1,consts:[["id","help-container"],["color","primary","fxShow","false","fxShow.lt-md","true","mat-raised-button","","routerLink","/",1,"returnbutton"],["href","https://twitter.com/MijagoCoding/","target","_blank","matTooltip","Birb App"],["alt","Me on twitter","src","assets/logo-twitter.png",1,"logo-twitter"],["href","https://ko-fi.com/mijago","target","_blank","matTooltip","If you like my work, you can always buy me a coffee!"],["alt","Ko-Fi","src","assets/logo-kofi.png",1,"logo-twitter"],["href","http://discord.d2armorpicker.com/","target","_blank","matTooltip","Visit me at the development & support discord."],["alt","Discord","src","assets/logo-discord.png",1,"logo-twitter"],["href","https://github.com/Mijago/D2-Gear-Calculator","target","_blank"],["href","https://mijago.github.io/D2GearCalculator/","target","_blank"],["href","https://twitter.com/MijagoCoding/","target","_blank"],["href","https://ko-fi.com/mijago","target","_blank"],[1,"preview-image-container"],["alt","Preview of the results table","src","assets/armor-images/preview_result_details.png",1,"preview-image"],["fxLayout","row","id","armor-image-container"],["src","assets/armor-images/kabrs_battlecage.png"],["src","assets/armor-images/lightkin_gauntlets.png"],["src","assets/armor-images/phobos_warden_helm.png"],["src","assets/armor-images/wild_hunt_vest.png"],[4,"ngFor","ngForOf"],[1,"changelog-table-container"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"a",1),t._uU(2," Return to D2ArmorPicker "),t.qZA(),t.TgZ(3,"mat-card")(4,"mat-card-title")(5,"span"),t._uU(6,"About D2ArmorPicker "),t.TgZ(7,"small"),t._uU(8," by Mijago"),t.qZA(),t.TgZ(9,"a",2),t._UZ(10,"img",3),t.qZA(),t.TgZ(11,"a",4),t._UZ(12,"img",5),t.qZA(),t.TgZ(13,"a",6),t._UZ(14,"img",7),t.qZA()()(),t.TgZ(15,"mat-card-content"),t._uU(16," D2ArmorPicker (or short D2AP) is a small web-app to quickly find armor that fits your desired stat requirements. It uses the armor in your vault, inventory and postmaster, calculates every possible variation and shows only those that fulfill the given requirements. "),t._UZ(17,"br")(18,"br"),t._uU(19," As I raided a lot and I mainly play meme builds, I wanted to be able to switch exotics and have decent stats without being a burden on my team. That's why I developed the "),t.TgZ(20,"a",8),t._uU(21,"first version of this tool"),t.qZA(),t._uU(22," in Python. After a few days I started to translate this tool "),t.TgZ(23,"a",9),t._uU(24,"into a webpage"),t.qZA(),t._uU(25,". My friends liked it, but it didn't have API access. Thus I created the first version of D2ArmorPicker, and after people started using and liking it, I started to completely rewrite it - that's Version\xa02! "),t._UZ(26,"br")(27,"br"),t._uU(28," I keep updating and improving this tool, but beware that it takes a bit, as I work on it on my spare time. Feel free to follow me on Twitter "),t.TgZ(29,"a",10),t._UZ(30,"img",3),t.qZA(),t._uU(31,", I occasionally post updates there. If you like my tools and want to support me, head to "),t.TgZ(32,"a",11),t._uU(33,"ko-fi.com"),t.qZA(),t._uU(34," and buy me a coffee! \u2764 "),t.qZA()(),t.TgZ(35,"mat-card")(36,"mat-card-title"),t._uU(37," How do I use D2ArmorPicker? "),t.qZA(),t.TgZ(38,"mat-card-content"),t._uU(39," Follow these few steps: "),t.TgZ(40,"ol")(41,"li"),t._uU(42,"Login. You already did this!"),t.qZA(),t.TgZ(43,"li"),t._uU(44," [Optional] Pick an exotic you want to use. The tool will only display results for this exotic. You can always undo this. "),t.qZA(),t.TgZ(45,"li"),t._uU(46," [Optional] Select additional mods/fragments that give a bonus (or penalty). These are important if you want certain stat combinations even if you have penalties on your gear. "),t.qZA(),t.TgZ(47,"li"),t._uU(48," Select the stat distribution you seek. This is the heart of D2ArmorPicker. You just click 100 recovery and it will display you builds that have 100 recovery. "),t.TgZ(49,"i"),t._uU(50,"Note that it automatically adds stat mods if necessary."),t.qZA()(),t.TgZ(51,"li"),t._uU(52," Now look to the result table. On a normal desktop it should be on the right, on smaller devices it might move below the configuration. The table lists multiple results and you can sort it by your requirements."),t._UZ(53,"br"),t.TgZ(54,"b"),t._uU(55,"Click"),t.qZA(),t._uU(56," on an entry to open look the detailed view: "),t.TgZ(57,"div",12),t._UZ(58,"img",13),t.qZA(),t._uU(59," The example above shows a build that utilizes Dunemarchers and a zero-waste-build. To achieve it, I have to move all the items in my inventory and equip them. After this, I "),t.TgZ(60,"i"),t._uU(61,"masterwork"),t.qZA(),t._uU(62," them and "),t.TgZ(63,"i"),t._uU(64,"add the mods"),t.qZA(),t._uU(65," as the table displays them: "),t.TgZ(66,"ul")(67,"li")(68,"b"),t._uU(69,"Discipline:"),t.qZA(),t._uU(70," One major mod, one minor mod;"),t.qZA(),t.TgZ(71,"li")(72,"b"),t._uU(73,"Intellect:"),t.qZA(),t._uU(74," One major mod, one minor mod;"),t.qZA(),t.TgZ(75,"li")(76,"b"),t._uU(77,"Strength:"),t.qZA(),t._uU(78," One major mod;"),t.qZA(),t.TgZ(79,"li"),t._uU(80,"I also add Powerful Friends and Radiant Light, as I chose them in the configuration."),t.qZA()()()()()(),t.TgZ(81,"mat-card")(82,"mat-card-title"),t._uU(83," Where can I grind high stat armor? "),t.qZA(),t.TgZ(84,"mat-card-content"),t._uU(85," There are many spots that give you mediocre armor, but for the really good builds you need the correct armor. Here I provide a list of high-stat armor sources. It may not be complete, but a good starting point. "),t.TgZ(86,"i"),t._uU(87,"Last updated February 8, 2022."),t.qZA(),t.TgZ(88,"ul")(89,"li"),t._uU(90," Farm legendary Dares!"),t.qZA(),t.TgZ(91,"li"),t._uU(92," Clear Pit of Heresy Dungeon, the boss drop guarantees two stats to be 16 (or higher)."),t.qZA(),t.TgZ(93,"li"),t._uU(94," Farm a bunch of Spoils, go into Master Vault of Glass and buy armor at the final chest."),t.qZA(),t.TgZ(95,"li"),t._uU(96," The list will be extended sometime in Witch Queen!"),t.qZA()(),t._uU(97," Some good armor rolls may look like these: "),t.TgZ(98,"div",14),t._UZ(99,"img",15)(100,"img",16)(101,"img",17)(102,"img",18),t.qZA()()(),t.TgZ(103,"mat-card")(104,"mat-card-title"),t._uU(105,"Known Issues"),t.qZA(),t.TgZ(106,"mat-card-content")(107,"ul"),t.YNc(108,us,2,1,"li",19),t.qZA()()(),t.TgZ(109,"mat-card")(110,"mat-card-title"),t._uU(111,"Changelog"),t.qZA(),t.TgZ(112,"mat-card-content",20),t._UZ(113,"app-changelog-list"),t.qZA()(),t.TgZ(114,"a",1),t._uU(115," Return to D2ArmorPicker "),t.qZA()()),2&e&&(t.xp6(108),t.Q6J("ngForOf",o.knownIssues))},dependencies:[I.sg,_t.xw,M.b8,st.zs,Y.a8,Y.dn,Y.n5,pt.gM,ot.yS,Ze],styles:["#help-container[_ngcontent-%COMP%]{max-width:800px;margin-left:auto;margin-right:auto}.changelog-table-container[_ngcontent-%COMP%]{max-height:700px;overflow-y:scroll}mat-card[_ngcontent-%COMP%]{margin-bottom:8px}#armor-image-container[_ngcontent-%COMP%]{overflow:auto}#armor-image-container[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]:not(:last-of-type){margin-right:20px}#armor-image-container[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{max-height:300px}.preview-image-container[_ngcontent-%COMP%]{max-width:600px}.preview-image[_ngcontent-%COMP%]{max-width:100%}.returnbutton[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:15px;width:100%}.changelog-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-of-type{min-width:80px}.changelog-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:nth-of-type(2){min-width:40px}.changelog-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-top:#6e6e6e solid 1px}a[_ngcontent-%COMP%]{color:#99afe3}a[_ngcontent-%COMP%]:visited{color:#7294dc}"]}),n})();var At=_(4006),ee=_(455),Kt=_(3217),Dt=_(811),Pt=_(9549),ne=_(4144);function fs(n,i){if(1&n&&(t.TgZ(0,"th",5),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("\u2206 Tier ",e.differenceTier,"")}}function hs(n,i){if(1&n&&t._UZ(0,"img",9),2&n){const e=t.oxw(3).$implicit;t.MGl("src","https://www.bungie.net/",e.icon,"",t.LSH)}}function xs(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=i.ngVar,o=t.oxw(6).$implicit,a=t.oxw();t.ekj("good",a.differenceTiera.tier),t.xp6(1),t.AsE(" ",e>0?"+":"","",a.formatEntry(o,e)," ")}}function ys(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,xs,2,6,"span",10),t.qZA()),2&n){const e=t.oxw(2).ngVar,o=t.oxw().ngVar;t.xp6(1),t.Q6J("ngVar",-(e-o))}}function Cs(n,i){if(1&n&&(t.TgZ(0,"td")(1,"span"),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=t.oxw().ngVar,o=t.oxw(5);t.xp6(1),t.ekj("good",o.differenceTiero.tier),t.xp6(1),t.AsE(" (",e>0?"+":"","",t.xi3(3,6,100*e,"1.0-0"),"%) ")}}function Ts(n,i){if(1&n&&(t.ynx(0),t.YNc(1,ys,2,1,"td",6),t.YNc(2,Cs,4,9,"td",6),t.BQk()),2&n){const e=t.oxw(5);t.xp6(1),t.Q6J("ngIf",e.differenceTier!==e.tier),t.xp6(1),t.Q6J("ngIf",e.differenceTier!==e.tier)}}function vs(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Ts,3,2,"ng-container",7),t.BQk()),2&n){const e=i.ngVar,o=t.oxw().ngVar,a=t.oxw(3);t.xp6(1),t.Q6J("ngVar",a.getPercentageDifference(o,e))}}function bs(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"app-item-icon",11),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("itemHash",e)}}function As(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"td"),t.YNc(2,hs,1,1,"img",8),t._uU(3),t.qZA(),t.TgZ(4,"td"),t._uU(5),t.qZA(),t.YNc(6,vs,2,1,"ng-container",7),t.TgZ(7,"td"),t.YNc(8,bs,2,1,"ng-container",4),t._uU(9),t.qZA(),t.BQk()),2&n){const e=i.ngVar,o=t.oxw(2).$implicit,a=t.oxw();t.xp6(2),t.Q6J("ngIf",o.icon),t.xp6(1),t.hij(" ",o.name," "),t.xp6(2),t.Oqu(a.formatEntry(o,e)),t.xp6(1),t.Q6J("ngVar",a.valueFunction(o,a.differenceTier)),t.xp6(2),t.Q6J("ngForOf",o.overrideIcons),t.xp6(1),t.hij(" ",o.description," ")}}function ws(n,i){if(1&n&&(t.TgZ(0,"tr"),t.YNc(1,As,10,6,"ng-container",7),t.qZA()),2&n){const e=t.oxw().$implicit,o=t.oxw();t.xp6(1),t.Q6J("ngVar",o.valueFunction(e,o.tier))}}function Zs(n,i){if(1&n&&(t.ynx(0),t.YNc(1,ws,2,1,"tr",6),t.BQk()),2&n){const e=i.$implicit,o=t.oxw();t.xp6(1),t.Q6J("ngIf",null==e.description||!!e.description[o.characterClass])}}let Os=(()=>{class n{constructor(e,o){this.config=e,this.characterStats=o,this.ArmorStatNames=c.Mi,this.tier=0,this.differenceTier=0,this.stat=c.WB.Mobility,this.entries=[]}get characterClass(){return this.config.readonlyConfigurationSnapshot.characterClass}ngOnInit(){this.entries=this.characterStats.get(c.Mi[this.stat],this.config.readonlyConfigurationSnapshot.characterClass,this.config.readonlyConfigurationSnapshot.selectedModElement,this.config.readonlyConfigurationSnapshot.selectedExotics)}formatEntry(e,o){return o=parseFloat(o.toFixed(2)),e.valueType===mt.Speed?(n=>(Math.round(100*n)/100).toFixed(2)+"m/s")(o):e.valueType===mt.Percentage?`${o}%`:e.valueType===mt.PercentagePerSecond?`${o}%/s`:e.valueType===mt.TimeMMSS?function Ss(n){var i=function gs(n){n=Math.abs(n);var i=Math.floor(n/60),e=Math.floor(n-60*i);return`${i}:${e<10?"0":""}${e}`}(n);return n<0&&(i="- "+i),i}(o):e.valueType===mt.Time?function Ms(n){var i=function _s(n){n=Math.abs(n);var i=Math.floor(10*n%10),e=Math.floor(n/60),o=Math.floor(n-60*e);let a=`${o}s`;return i>0&&(a=`${o}.${i}s`),e>0&&(a=`${e}m ${a}`),a}(n);return n<0&&(i="- "+i),i}(o):o}valueFunction(e,o){return e.values[o]}getPercentageDifference(e,o){return(e-o)/Math.max(1,o)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(X),t.Y36(ae))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-stat-cooldown-tooltip"]],inputs:{tier:"tier",differenceTier:"differenceTier",stat:"stat"},decls:13,vars:5,consts:[[1,"tooltip-container"],["colspan","3",1,"exotic-name"],[2,"min-width","50px"],["style","min-width: 50px","colspan","2",4,"ngIf"],[4,"ngFor","ngForOf"],["colspan","2",2,"min-width","50px"],[4,"ngIf"],[4,"ngVar"],[3,"src",4,"ngIf"],[3,"src"],[3,"good","bad",4,"ngVar"],[3,"itemHash"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"div",0)(2,"table")(3,"tr")(4,"td",1),t._uU(5),t.qZA()(),t.TgZ(6,"tr")(7,"th",2),t._uU(8,"Stat"),t.qZA(),t.TgZ(9,"th",2),t._uU(10),t.qZA(),t.YNc(11,fs,2,1,"th",3),t.qZA(),t.YNc(12,Zs,2,1,"ng-container",4),t.qZA()()()),2&e&&(t.xp6(5),t.AsE("",o.ArmorStatNames[o.stat]," at Tier ",o.tier,""),t.xp6(5),t.hij("Tier ",o.tier,""),t.xp6(1),t.Q6J("ngIf",o.differenceTier!==o.tier),t.xp6(1),t.Q6J("ngForOf",o.entries))},dependencies:[I.sg,I.O5,zt,ge,I.JJ],styles:["[_nghost-%COMP%]{max-width:420px}.tooltip-container[_ngcontent-%COMP%]{border:1px solid gray;padding:1px 5px 4px;background:linear-gradient(#484848 0px,#2c2c2c 100%)}.exotic-name[_ngcontent-%COMP%]{color:#eedb9e}.good[_ngcontent-%COMP%]{color:#58b458}.bad[_ngcontent-%COMP%]{color:#ff6b6b}table[_ngcontent-%COMP%]{border-collapse:separate;border-spacing:7px 3px}th[_ngcontent-%COMP%]{white-space:nowrap}img[_ngcontent-%COMP%]{width:24px;height:24px;float:left;margin-right:3px}tr[_ngcontent-%COMP%]{line-height:24px}"]}),n})(),ks=(()=>{class n{constructor(e,o,a){this._overlay=e,this._overlayPositionBuilder=o,this._elementRef=a,this.showToolTip=!0,this.tooltipTier=0,this.tooltipStat=c.WB.Mobility,this.tooltipDifferenceTier=0}ngOnInit(){if(!this.showToolTip)return;const e=this._overlayPositionBuilder.flexibleConnectedTo(this._elementRef).withPositions([{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top",offsetY:5},{originX:"center",originY:"top",overlayX:"center",overlayY:"bottom",offsetY:-5}]);this._overlayRef=this._overlay.create({positionStrategy:e}),this._overlayRef.addPanelClass("overlay-no-pointer-event")}show(){if(this._overlayRef&&!this._overlayRef.hasAttached()){const e=this._overlayRef.attach(new re.C5(Os));e.instance.tier=this.tooltipTier,e.instance.differenceTier=this.tooltipDifferenceTier,e.instance.stat=this.tooltipStat}}hide(){this.closeToolTip()}ngOnDestroy(){this.closeToolTip()}closeToolTip(){this._overlayRef&&this._overlayRef.detach()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Jt.aV),t.Y36(Jt.wJ),t.Y36(t.SBq))},n.\u0275dir=t.lG2({type:n,selectors:[["","statCooldownTooltip",""]],hostBindings:function(e,o){1&e&&t.NdJ("mouseenter",function(){return o.show()})("mouseleave",function(){return o.hide()})},inputs:{showToolTip:"showToolTip",tooltipTier:"tooltipTier",tooltipStat:"tooltipStat",tooltipDifferenceTier:"tooltipDifferenceTier",contentTemplate:"contentTemplate"}}),n})();function Es(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-button-toggle",5),t.NdJ("click",function(){const s=t.CHM(e).index,r=t.oxw(2);return t.KtG(r.setValue(s))}),t.TgZ(1,"div",6),t._uU(2),t.qZA()()}if(2&n){const e=i.index,o=t.oxw(2);t.ekj("isFromMod",o.isAddedByConfigMods(e))("mat-button-toggle-checked",o.selectedTier>=e)("not-checked",o.selectedTier{class n{constructor(){this.TierRange=new Array(11),this.allowExactStats=!1,this.stat=c.WB.Mobility,this.statsByMods=0,this.maximumAvailableTier=10,this.selectedTier=0,this.locked=!1,this.selectedTierChange=new t.vpe,this.lockedChange=new t.vpe}setValue(e){e<=this.maximumAvailableTier&&(this.selectedTier=e,this.selectedTierChange.emit(e))}setValueMob(e){let o=parseInt(e.target.value);o=Math.min(Math.max(o,0),100),this.setValue(o/10)}isAddedByConfigMods(e){return e>0&&(this.selectedTier-e>=0&&this.selectedTier-e{class n{constructor(){this.ArmorStatNames=c.Mi,this.ArmorStatIconUrls=c.lp,this.stat=c.WB.Mobility}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-stat-icon"]],inputs:{stat:"stat"},decls:2,vars:2,consts:[[1,"statContainerWrapper"],[1,"dialogStatIcon",3,"src","alt"]],template:function(e,o){1&e&&(t.TgZ(0,"span",0),t._UZ(1,"img",1),t.qZA()),2&e&&(t.xp6(1),t.Q6J("src",o.ArmorStatIconUrls[o.stat],t.LSH)("alt",o.ArmorStatNames[o.stat]))},styles:[".dialogStatIcon[_ngcontent-%COMP%]{position:relative;width:25px;margin-right:3px;top:4px}"]}),n})();function qs(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"tr")(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td"),t._UZ(4,"app-stat-icon",15),t.qZA(),t.TgZ(5,"td")(6,"app-stat-tier-selection",16),t.NdJ("selectedTierChange",function(a){const r=t.CHM(e).$implicit,d=t.oxw();return t.KtG(d.setSelectedTier(r.value,a))})("lockedChange",function(a){const r=t.CHM(e).$implicit,d=t.oxw();return t.KtG(d.setLockState(r.value,a))}),t.qZA()()()}if(2&n){const e=i.$implicit,o=t.oxw();t.xp6(2),t.hij(" ",e.name," "),t.xp6(2),t.Q6J("stat",e.value),t.xp6(2),t.Q6J("stat",e.value)("allowExactStats",o.config_allowExactStats)("statsByMods",o.statsByMods[e.value])("maximumAvailableTier",o.maximumPossibleTiers[e.value])("selectedTier",o.minimumStatTiers[e.value].value)("locked",o.minimumStatTiers[e.value].fixed)}}function Fs(n,i){1&n&&t._UZ(0,"app-stat-icon",19),2&n&&t.Q6J("stat",i.$implicit)}function Js(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.useStatPreset(s))}),t.YNc(1,Fs,1,1,"app-stat-icon",18),t.qZA()}if(2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngForOf",e)}}function Ls(n,i){1&n&&t._UZ(0,"app-stat-icon",19),2&n&&t.Q6J("stat",i.$implicit)}function Ys(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.useStatPreset(s))}),t.YNc(1,Ls,1,1,"app-stat-icon",18),t.qZA()}if(2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngForOf",e)}}function Ie(n){let i=0;for(let e of n)i+=Math.pow(10,6-e);return i}let Bs=(()=>{class n{constructor(e,o){this.config=e,this.inventory=o,this.minimumStatTiers=H(1),this.maximumPossibleTiers=[10,10,10,10,10,10],this.statsByMods=[0,0,0,0,0,0],this._statCombo4x100=[],this._statCombo3x100=[],this.config_zero_waste=!1,this.config_mod_strategy=K.w.None,this.config_reduce_waste=!1,this.config_allowExactStats=!1,this.ngUnsubscribe=new R.xQ,this.stats=Object.keys(c.WB).filter(a=>!isNaN(Number(a))).map(a=>({name:c.WB[a],value:+a}))}ngOnInit(){this.config.configuration.pipe((0,Ct.R)(this.ngUnsubscribe)).subscribe(e=>{const o=[0,0,0,0,0,0];for(let a of e.enabledMods)for(let s of N.F[a].bonus)o[s.stat]+=s.value/10;this.statsByMods=o,this.minimumStatTiers=e.minimumStatTiers,this.config_zero_waste=e.onlyShowResultsWithNoWastedStats,this.config_mod_strategy=e.modOptimizationStrategy,this.config_reduce_waste=e.tryLimitWastedStats,this.config_allowExactStats=e.allowExactStats}),this.inventory.armorResults.pipe((0,Ct.R)(this.ngUnsubscribe)).subscribe(e=>{const o=e.maximumPossibleTiers||[10,10,10,10,10,10];console.log("d.maximumPossibleTiers",o),o.filter(a=>0==a).length<6&&(this.maximumPossibleTiers=o),this._statCombo3x100=(e.statCombo3x100||[]).sort((a,s)=>Ie(s)-Ie(a)),this._statCombo4x100=e.statCombo4x100||[]})}setSelectedTier(e,o){this.config.modifyConfiguration(a=>{a.minimumStatTiers[e].value=o})}clearStatSelection(){this.config.modifyConfiguration(e=>{for(let o=0;o<6;o++)e.minimumStatTiers[o]={fixed:!1,value:0}})}useStatPreset(e){0!=e.filter(o=>10!=this.config.readonlyConfigurationSnapshot.minimumStatTiers[o].value).length&&this.config.modifyConfiguration(o=>{for(let a of e)o.minimumStatTiers[a].value=10})}setLockState(e,o){this.config.modifyConfiguration(a=>{a.minimumStatTiers[e].fixed=o})}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}setModOptimizationStrategy(){this.config.modifyConfiguration(e=>{e.modOptimizationStrategy=this.config_mod_strategy})}toggleReduceWaste(){this.config.modifyConfiguration(e=>{e.tryLimitWastedStats=!this.config_reduce_waste})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(X),t.Y36(Tt))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-desired-stat-selection"]],decls:43,vars:12,consts:[[4,"ngFor","ngForOf"],["id","tierSelectButtonContainer"],[1,"tierSelectButton"],["mat-stroked-button","","color","warn","id","clearStatButton",3,"click"],["mat-stroked-button","","aria-label","Select builds with three stats at tier 10.",1,"selectStatDistributionButton",3,"matMenuTriggerFor","disabled"],["menu",""],["menu1","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-stroked-button","","aria-label","Select builds with four stats at tier 10.",3,"matMenuTriggerFor","disabled"],["menu2","matMenu"],[3,"ngModel","ngModelChange","change"],["matTooltip","Fast. Will result in good and fast results. Some better results *may* be skipped.",3,"value"],["matTooltip","Slower. Reduces the amount of used mods. This means that it will try to give you 4 mods instead of 5 whenever possible.",3,"value"],["matTooltip","Slower. Reduces the total cost of mods. This will result in less Intellect mods, for example.",3,"value"],["color","primary",3,"checked","change"],[3,"stat"],[3,"stat","allowExactStats","statsByMods","maximumAvailableTier","selectedTier","locked","selectedTierChange","lockedChange"],["mat-menu-item","",3,"click"],["class","dialogStatIcon",3,"stat",4,"ngFor","ngForOf"],[1,"dialogStatIcon",3,"stat"]],template:function(e,o){if(1&e&&(t.TgZ(0,"table"),t.YNc(1,qs,7,8,"tr",0),t.qZA(),t.TgZ(2,"span",1)(3,"span",2)(4,"button",3),t.NdJ("click",function(){return o.clearStatSelection()}),t._uU(5,"Clear"),t.qZA()(),t.TgZ(6,"span",2)(7,"button",4)(8,"mat-icon"),t._uU(9,"expand_more"),t.qZA(),t._uU(10," Select 3x T10 Builds "),t.qZA(),t.TgZ(11,"mat-menu",5,6),t.YNc(13,Js,2,1,"button",7),t.qZA()(),t.TgZ(14,"span",2)(15,"button",8)(16,"mat-icon"),t._uU(17,"expand_more"),t.qZA(),t._uU(18," Select 4x T10 Builds "),t.qZA(),t.TgZ(19,"mat-menu",null,9),t.YNc(21,Ys,2,1,"button",7),t.qZA()()(),t._UZ(22,"br")(23,"br"),t.TgZ(24,"div")(25,"div")(26,"b"),t._uU(27,"Mod optimization strategy:"),t.qZA()(),t.TgZ(28,"div"),t._uU(29,"You can choose if the algorithm should keep an eye on amount or the cost of mods."),t.qZA(),t.TgZ(30,"div"),t._uU(31,"These settings are extremely expensive when paired with the reduced waste feature."),t.qZA(),t.TgZ(32,"mat-button-toggle-group",10),t.NdJ("ngModelChange",function(s){return o.config_mod_strategy=s})("change",function(){return o.setModOptimizationStrategy()}),t.TgZ(33,"mat-button-toggle",11),t._uU(34,"No extra logic (fast)"),t.qZA(),t.TgZ(35,"mat-button-toggle",12),t._uU(36,"Fewer mods, high cost (slow)"),t.qZA(),t.TgZ(37,"mat-button-toggle",13),t._uU(38,"Many mods, low cost (slow)"),t.qZA()()(),t._UZ(39,"br"),t.TgZ(40,"div")(41,"mat-slide-toggle",14),t.NdJ("change",function(){return o.toggleReduceWaste()}),t._uU(42," Add mods to reduce wasted stats (slower) "),t.qZA()()),2&e){const a=t.MAs(12),s=t.MAs(20);t.xp6(1),t.Q6J("ngForOf",o.stats),t.xp6(6),t.Q6J("matMenuTriggerFor",a)("disabled",0===o._statCombo3x100.length),t.xp6(6),t.Q6J("ngForOf",o._statCombo3x100),t.xp6(2),t.Q6J("matMenuTriggerFor",s)("disabled",0===o._statCombo4x100.length),t.xp6(6),t.Q6J("ngForOf",o._statCombo4x100),t.xp6(11),t.Q6J("ngModel",o.config_mod_strategy),t.xp6(1),t.Q6J("value",0),t.xp6(2),t.Q6J("value",1),t.xp6(2),t.Q6J("value",2),t.xp6(4),t.Q6J("checked",o.config_reduce_waste)}},dependencies:[I.sg,At.JJ,At.On,st.lW,ee.Rr,pt.gM,St.Hw,Kt.VK,Kt.OP,Kt.p6,Dt.A9,Dt.Yi,Ns,fe],styles:["#tierSelectButtonContainer[_ngcontent-%COMP%] > .tierSelectButton[_ngcontent-%COMP%]:not(:last-child){margin-right:5px}.dialogStatIcon[_ngcontent-%COMP%]{height:35px}.warn[_ngcontent-%COMP%]{background-color:#8b0000;padding-left:15px;padding-right:15px}"]}),n})();function Vs(n,i){if(1&n&&(t.TgZ(0,"div",4,5),t._UZ(2,"img",6),t.TgZ(3,"span",7),t._uU(4),t.qZA()()),2&n){const e=t.oxw().ngVar,o=t.oxw();t.xp6(2),t.Q6J("src",o.artificeUrl,t.LSH),t.xp6(2),t.hij("\xd7",e,"")}}function Qs(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Vs,5,2,"div",3),t.BQk()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function Hs(n,i){if(1&n&&(t.TgZ(0,"div",9,5),t._UZ(2,"img",10),t.TgZ(3,"span",11),t._uU(4),t.qZA()()),2&n){const e=t.oxw().ngVar,o=t.oxw().$implicit,a=t.oxw().$implicit,s=t.oxw();t.Q6J("matTooltip",s.getStatName(a)),t.xp6(2),t.Gre("modIcon modIcon_",s.getStatName(a),""),t.ekj("minor",1===o),t.Q6J("src",s.ModUrl[o+3*a],t.LSH),t.xp6(1),t.ekj("minor",1===o),t.xp6(1),t.hij("\xd7",e,"")}}function Ws(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Hs,5,10,"div",8),t.BQk()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function js(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Ws,2,1,"ng-container",1),t.ALo(2,"count"),t.BQk()),2&n){const e=i.$implicit,o=t.oxw().$implicit,a=t.oxw();t.xp6(1),t.Q6J("ngVar",t.xi3(2,1,a.mods,e+3*o))}}function Gs(n,i){if(1&n&&(t.ynx(0),t.YNc(1,js,3,4,"ng-container",2),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.modTypeIndex)}}const Se={[c.iV.MINOR_MOBILITY]:"https://www.bungie.net/common/destiny2_content/icons/a5d9a778feddb2a9036588490a4818b0.png",[c.iV.MAJOR_MOBILITY]:"https://www.bungie.net/common/destiny2_content/icons/db4b34c79c834d3cf36b592c688ed22d.png",[c.iV.ARTIFICE_MOBILITY]:"https://www.bungie.net/common/destiny2_content/icons/a5d9a778feddb2a9036588490a4818b0.png",[c.iV.MINOR_RESILIENCE]:"https://www.bungie.net/common/destiny2_content/icons/1b4eec255df03ae088db1eb251654316.png",[c.iV.MAJOR_RESILIENCE]:"https://www.bungie.net/common/destiny2_content/icons/db6c438e9ff1a21b03a1f0488560e6a3.png",[c.iV.ARTIFICE_RESILIENCE]:"https://www.bungie.net/common/destiny2_content/icons/1b4eec255df03ae088db1eb251654316.png",[c.iV.MINOR_RECOVERY]:"https://www.bungie.net/common/destiny2_content/icons/51d46295defdf93d77a62e3e895df5cd.png",[c.iV.MAJOR_RECOVERY]:"https://www.bungie.net/common/destiny2_content/icons/f42cc43389f147d25f0ee2946f1ff1bd.png",[c.iV.ARTIFICE_RECOVERY]:"https://www.bungie.net/common/destiny2_content/icons/51d46295defdf93d77a62e3e895df5cd.png",[c.iV.MINOR_DISCIPLINE]:"https://www.bungie.net/common/destiny2_content/icons/9ba335d570610d1ae9cffa071d5bcb8e.png",[c.iV.MAJOR_DISCIPLINE]:"https://www.bungie.net/common/destiny2_content/icons/e54f6af6a4577e4d66396e5285bb73c0.png",[c.iV.ARTIFICE_DISCIPLINE]:"https://www.bungie.net/common/destiny2_content/icons/9ba335d570610d1ae9cffa071d5bcb8e.png",[c.iV.MINOR_INTELLECT]:"https://www.bungie.net/common/destiny2_content/icons/a8808e7528b16474f8c9c65b4e53b52b.png",[c.iV.MAJOR_INTELLECT]:"https://www.bungie.net/common/destiny2_content/icons/2399dff2dc6952ea65c2b8c594d00658.png",[c.iV.ARTIFICE_INTELLECT]:"https://www.bungie.net/common/destiny2_content/icons/a8808e7528b16474f8c9c65b4e53b52b.png",[c.iV.MINOR_STRENGTH]:"https://www.bungie.net/common/destiny2_content/icons/6b45221fccade87ee39f3a03efc6e9b9.png",[c.iV.MAJOR_STRENGTH]:"https://www.bungie.net/common/destiny2_content/icons/66714f030b79a1517c657f1378216cca.png",[c.iV.ARTIFICE_STRENGTH]:"https://www.bungie.net/common/destiny2_content/icons/6b45221fccade87ee39f3a03efc6e9b9.png"};let zs=(()=>{class n{constructor(){this.artificeUrl=c.X9[c.Pn.SlotArtifice],this.modIndex=[0,1,2,3,4,5],this.modTypeIndex=[1,2],this.ModUrl=Se,this.mods=[],this.artifice=[]}getStatName(e){return c.Mi[e]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-table-mod-display"]],inputs:{mods:"mods",artifice:"artifice"},decls:4,vars:4,consts:[[1,"row-mod"],[4,"ngVar"],[4,"ngFor","ngForOf"],["class","container","matTooltip","Artifice",4,"ngIf"],["matTooltip","Artifice",1,"container"],["tooltip","matTooltip"],[1,"artificeIcon","artifice",3,"src"],[1,"modText","artifice"],["class","container",3,"matTooltip",4,"ngIf"],[1,"container",3,"matTooltip"],[3,"src"],[1,"modText"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t.YNc(1,Qs,2,1,"ng-container",1),t.ALo(2,"count"),t.YNc(3,Gs,2,1,"ng-container",2),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngVar",t.lcZ(2,2,o.artifice)),t.xp6(2),t.Q6J("ngForOf",o.modIndex))},dependencies:[I.sg,I.O5,pt.gM,zt,Ae],styles:[".container[_ngcontent-%COMP%]{display:inline-block;width:32px;height:30px;position:relative}.modIcon[_ngcontent-%COMP%]{position:absolute;top:-12px;left:-12px;width:50px;height:50px;filter:contrast(2.3);border:#00000000 solid 2px;-webkit-mask-image:url(modmask.f03dde91561a62d6.svg);mask-image:image(url(modmask.f03dde91561a62d6.svg),black)}.modIcon_Mobility[_ngcontent-%COMP%]{filter:contrast(2.3) sepia(100%) hue-rotate(0deg) brightness(100%) saturate(320%)}.modIcon_Resilience[_ngcontent-%COMP%]{filter:contrast(2.3) sepia(100%) hue-rotate(60deg) brightness(100%) saturate(320%)}.modIcon_Recovery[_ngcontent-%COMP%]{filter:contrast(2.3) sepia(100%) hue-rotate(120deg) brightness(100%) saturate(320%)}.modIcon_Discipline[_ngcontent-%COMP%]{filter:contrast(2.3) sepia(100%) hue-rotate(180deg) brightness(100%) saturate(320%)}.modIcon_Intellect[_ngcontent-%COMP%]{filter:contrast(2.3) sepia(100%) hue-rotate(240deg) brightness(100%) saturate(320%)}.modIcon_Strength[_ngcontent-%COMP%]{filter:contrast(2.3) sepia(100%) hue-rotate(300deg) brightness(100%) saturate(320%)}.modIcon.minor[_ngcontent-%COMP%]{opacity:.8;scale:.75}.artificeIcon[_ngcontent-%COMP%]{height:28px;width:28px;filter:saturate(40) hue-rotate(40deg)}.selected[_ngcontent-%COMP%]{border:red solid 2px}[_nghost-%COMP%]{position:relative}.modText[_ngcontent-%COMP%]{position:absolute;text-shadow:0 0 6px #000000;font-size:smaller;color:#f5f5f5;bottom:-6px;right:-1px}"]}),n})();function Ks(n,i){if(1&n&&(t.TgZ(0,"div")(1,"div",22),t._UZ(2,"img",23)(3,"img",24),t.O4$(),t.TgZ(4,"svg",25)(5,"text",26),t._uU(6,"3"),t.qZA()(),t.TgZ(7,"svg",27)(8,"text",26),t._uU(9,"1"),t.qZA()(),t.kcU(),t._UZ(10,"div",28),t.qZA(),t.TgZ(11,"div",22),t._UZ(12,"img",23)(13,"img",24),t.O4$(),t.TgZ(14,"svg",25)(15,"text",26),t._uU(16,"4"),t.qZA()(),t.TgZ(17,"svg",27)(18,"text",26),t._uU(19,"2"),t.qZA()(),t.kcU(),t._UZ(20,"div",28),t.qZA(),t.TgZ(21,"div",22),t._UZ(22,"img",23)(23,"img",24),t.O4$(),t.TgZ(24,"svg",25)(25,"text",26),t._uU(26,"3"),t.qZA()(),t.TgZ(27,"svg",27)(28,"text",26),t._uU(29,"1"),t.qZA()(),t.kcU(),t._UZ(30,"div",28),t.qZA(),t.TgZ(31,"div",22),t._UZ(32,"img",23)(33,"img",24),t.O4$(),t.TgZ(34,"svg",25)(35,"text",26),t._uU(36,"3"),t.qZA()(),t.TgZ(37,"svg",27)(38,"text",26),t._uU(39,"1"),t.qZA()(),t.kcU(),t._UZ(40,"div",28),t.qZA(),t.TgZ(41,"div",22),t._UZ(42,"img",23)(43,"img",24),t.O4$(),t.TgZ(44,"svg",25)(45,"text",26),t._uU(46,"4"),t.qZA()(),t.TgZ(47,"svg",27)(48,"text",26),t._uU(49,"2"),t.qZA()(),t.kcU(),t._UZ(50,"div",28),t.qZA(),t.TgZ(51,"div",22),t._UZ(52,"img",23)(53,"img",24),t.O4$(),t.TgZ(54,"svg",25)(55,"text",26),t._uU(56,"4"),t.qZA()(),t.TgZ(57,"svg",27)(58,"text",26),t._uU(59,"2"),t.qZA()(),t.kcU(),t._UZ(60,"div",28),t.qZA()()),2&n){const e=i.ngVar,o=t.oxw();t.xp6(1),t.ekj("major",e>=3)("minor",e>=1&&e<3),t.xp6(1),t.Q6J("src",o.ModUrls[o.StatModifier.MAJOR_MOBILITY],t.LSH),t.xp6(1),t.Q6J("src",o.ModUrls[o.StatModifier.MINOR_MOBILITY],t.LSH),t.xp6(8),t.ekj("major",e>=4)("minor",e>=2&&e<4),t.xp6(1),t.Q6J("src",o.ModUrls[o.StatModifier.MAJOR_RESILIENCE],t.LSH),t.xp6(1),t.Q6J("src",o.ModUrls[o.StatModifier.MINOR_RESILIENCE],t.LSH),t.xp6(8),t.ekj("major",e>=3)("minor",e>=1&&e<3),t.xp6(1),t.Q6J("src",o.ModUrls[o.StatModifier.MAJOR_DISCIPLINE],t.LSH),t.xp6(1),t.Q6J("src",o.ModUrls[o.StatModifier.MINOR_DISCIPLINE],t.LSH),t.xp6(8),t.ekj("major",e>=3)("minor",e>=1&&e<3),t.xp6(1),t.Q6J("src",o.ModUrls[o.StatModifier.MAJOR_STRENGTH],t.LSH),t.xp6(1),t.Q6J("src",o.ModUrls[o.StatModifier.MINOR_STRENGTH],t.LSH),t.xp6(8),t.ekj("major",e>=4)("minor",e>=2&&e<4),t.xp6(1),t.Q6J("src",o.ModUrls[o.StatModifier.MAJOR_RECOVERY],t.LSH),t.xp6(1),t.Q6J("src",o.ModUrls[o.StatModifier.MINOR_RECOVERY],t.LSH),t.xp6(8),t.ekj("major",e>=4)("minor",e>=2&&e<4),t.xp6(1),t.Q6J("src",o.ModUrls[o.StatModifier.MAJOR_INTELLECT],t.LSH),t.xp6(1),t.Q6J("src",o.ModUrls[o.StatModifier.MINOR_INTELLECT],t.LSH)}}function $s(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-button-toggle",29),t.NdJ("click",function(){const s=t.CHM(e).index,r=t.oxw();return t.KtG(r.setValue(s))}),t._uU(1),t.qZA()}if(2&n){const e=i.index,o=t.oxw();t.Gre("select-button ",o.selection>=e?"mat-button-toggle-checked":"",""),t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function Xs(n,i){1&n&&(t.TgZ(0,"mat-icon"),t._uU(1,"lock_open"),t.qZA())}function tr(n,i){1&n&&(t.TgZ(0,"mat-icon"),t._uU(1,"lock"),t.qZA())}function er(n,i){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"button",30),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.setArmorPerk(s))}),t._UZ(2,"app-armor-perk-icon",31),t.TgZ(3,"span",32),t._uU(4),t.qZA()(),t.BQk()}if(2&n){const e=i.$implicit,o=t.oxw();t.xp6(1),t.ekj("selected-menu",e===o.armorPerk),t.xp6(1),t.Q6J("perk",e),t.xp6(2),t.Oqu(o.ArmorPerkOrSlotNames[e])}}function nr(n,i){if(1&n&&t._UZ(0,"img",33,34),2&n){const e=t.oxw();t.MGl("matTooltip","If you enable the lock on the settings on the right they will be forced to exist on a ",e.slotName,".")}}function or(n,i){if(1&n&&t._UZ(0,"img",35,34),2&n){const e=t.oxw();t.MGl("matTooltip","If you enable the lock on the settings on the right they will be forced to exist on a ",e.slotName,".")}}function ir(n,i){if(1&n&&t._UZ(0,"img",36,34),2&n){const e=t.oxw();t.MGl("matTooltip","If you enable the lock on the settings on the right they will be forced to exist on a ",e.slotName,".")}}function ar(n,i){if(1&n&&t._UZ(0,"img",37,34),2&n){const e=t.oxw();t.MGl("matTooltip","If you enable the lock on the settings on the right they will be forced to exist on a ",e.slotName,".")}}function sr(n,i){if(1&n&&t._UZ(0,"img",38,34),2&n){const e=t.oxw();t.MGl("matTooltip","If you enable the lock on the settings on the right they will be forced to exist on a ",e.slotName,".")}}let rr=(()=>{class n{constructor(e,o,a,s){this.config=e,this.inventory=o,this.iconService=a,this.db=s,this.featureDisabled=!g.N.featureFlags.enableModslotLimitation,this.ModUrls=Se,this.StatModifier=c.iV,this.ArmorSlot=T.y,this.ArmorPerkOrSlotNames=c.cM,this.ArmorPerkOrSlot=c.Pn,this.ModRange=new Array(D.Qj+1),this.selection=D.Qj,this.slot=T.y.ArmorSlotHelmet,this.possible=new t.vpe,this.fixedExoticInThisSlot=!1,this.isPossible=!0,this.configSelectedClass=0,this.configAssumeLegendaryIsArtifice=!1,this.configSelectedExoticSum=0,this.configSelectedExotic=[],this.configAssumeClassItemIsArtifice=!1,this.configAssumeExoticIsArtifice=!1,this.armorPerk=c.Pn.None,this.armorPerkLock=!1,this.maximumModSlots=5,this.hoveredSlot=-1,this.disabled=!1,this.availableArmorPerks=[c.Pn.None,c.Pn.SlotSalvationsEdge,c.Pn.SlotCrotasEnd,c.Pn.SlotRootOfNightmares,c.Pn.SlotKingsFall,c.Pn.SlotVowOfTheDisciple,c.Pn.SlotVaultOfGlass,c.Pn.SlotDeepStoneCrypt,c.Pn.SlotGardenOfSalvation,c.Pn.SlotLastWish,c.Pn.SlotArtifice,c.Pn.PerkEchoesOfGlory,c.Pn.PerkIronBanner,c.Pn.SlotNightmare],this.ngUnsubscribe=new R.xQ}runPossibilityCheck(){var e=this;return(0,y.Z)(function*(){if(e.configAssumeLegendaryIsArtifice||e.slot==T.y.ArmorSlotClass&&e.configAssumeClassItemIsArtifice)e.isPossible=!0;else{let a=0;e.armorPerkLock&&e.armorPerk!=c.Pn.None?e.fixedExoticInThisSlot?e.armorPerk==c.Pn.SlotArtifice&&e.configAssumeExoticIsArtifice?a+=1:e.configSelectedExotic.forEach(function(){var s=(0,y.Z)(function*(r){var d=yield e.db.inventoryArmor.where("clazz").equals(e.configSelectedClass).and(p=>p.perk==e.armorPerk).and(p=>p.hash==r).and(p=>1==p.isExotic).count();a+=d,e.isPossible=a>0,e.possible.next(e.isPossible)});return function(r){return s.apply(this,arguments)}}()):(a+=(yield e.db.inventoryArmor.where("clazz").equals(e.configSelectedClass).and(s=>0==e.configSelectedExoticSum||0==s.isExotic).and(s=>s.slot==e.slot).and(s=>s.perk==e.armorPerk).count()),e.isPossible=a>0):e.isPossible=!0}e.possible.next(e.isPossible)})()}get slotName(){switch(this.slot){case T.y.ArmorSlotHelmet:return"Helmet";case T.y.ArmorSlotGauntlet:return"Gauntlet";case T.y.ArmorSlotChest:return"Chest";case T.y.ArmorSlotLegs:return"Leg";case T.y.ArmorSlotClass:return"Class Item";default:return""}}ngOnInit(){var e=this;this.config.configuration.pipe((0,Ct.R)(this.ngUnsubscribe)).subscribe(function(){var o=(0,y.Z)(function*(a){const s=a.selectedExotics.reduce((d,p)=>d+p,0);var r=e.configSelectedClass!=a.characterClass||e.configAssumeLegendaryIsArtifice!=a.assumeEveryLegendaryIsArtifice||e.configAssumeExoticIsArtifice!=a.assumeEveryExoticIsArtifice||e.configAssumeClassItemIsArtifice!=a.assumeClassItemIsArtifice||e.selection!=a.maximumModSlots[e.slot].value||e.armorPerk!=a.armorPerks[e.slot].value||e.armorPerkLock!=a.armorPerks[e.slot].fixed||e.configSelectedExoticSum!=s||e.maximumModSlots!=a.maximumModSlots[e.slot].value;e.configAssumeLegendaryIsArtifice=a.assumeEveryLegendaryIsArtifice,e.configAssumeExoticIsArtifice=a.assumeEveryExoticIsArtifice,e.configAssumeClassItemIsArtifice=a.assumeClassItemIsArtifice,e.configSelectedClass=a.characterClass,e.selection=a.maximumModSlots[e.slot].value,e.armorPerk=a.armorPerks[e.slot].value,e.armorPerkLock=a.armorPerks[e.slot].fixed,e.maximumModSlots=a.maximumModSlots[e.slot].value,e.configSelectedExoticSum=s,e.configSelectedExotic=a.selectedExotics,e.fixedExoticInThisSlot=(yield e.inventory.getExoticsForClass(a.characterClass)).filter(d=>a.selectedExotics.indexOf(d.item.hash)>-1).map(d=>d.item.slot).indexOf(e.slot)>-1,r&&(yield e.runPossibilityCheck())});return function(a){return o.apply(this,arguments)}}())}ngAfterViewInit(){g.N.featureFlags.enableGuardianGamesFeatures&&this.slot===T.y.ArmorSlotClass&&this.availableArmorPerks.splice(1,0,c.Pn.GuardianGamesClassItem)}toggleArmorPerkLock(){this.config.modifyConfiguration(e=>{e.armorPerks[this.slot].fixed=!e.armorPerks[this.slot].fixed})}setArmorPerk(e){this.armorPerk!=e&&this.config.modifyConfiguration(o=>{o.armorPerks[this.slot].value=e})}setValue(e){this.featureDisabled||this.maximumModSlots!=e&&(this.maximumModSlots=e,this.config.modifyConfiguration(o=>o.maximumModSlots[this.slot].value=e))}getStatIconUrl(e){var o=this;return(0,y.Z)(function*(){return(yield o.iconService.getItemCached(e))?.icon})()}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(X),t.Y36(Tt),t.Y36(pe),t.Y36(w))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-slot-limitation-selection"]],inputs:{slot:"slot"},outputs:{possible:"possible"},decls:35,vars:58,consts:[[1,"container"],[1,"energy"],[1,"energy-container",3,"mouseout"],[1,"energy-bar","blocked",3,"click","mouseover"],[1,"energy-bar",3,"click","mouseover"],[4,"ngVar"],["appearance","standard","name","fontStyle",2,"display","none"],[3,"value","class","click",4,"ngFor","ngForOf"],[1,"selector-slots"],["value","bold",3,"matMenuTriggerFor"],[3,"perk"],["disabled","",3,"disabled","matTooltip","click"],[4,"ngIf"],[1,"modslot-select-scroll-menu"],["dropdownArmorModslot","matMenu"],[4,"ngFor","ngForOf"],[1,"slot-icon-container"],["class","slot-icon","src","data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 51 51'%3e%3cpath d='M24.77 7.03c-8.15.38-14.42 7.41-14.42 15.57v16.06c0 .23.13.44.34.53l10.33 4.68c.78.35 1.66-.22 1.66-1.07V31.9c0-.39-.19-.75-.52-.97l-5.39-3.64c-.87-.52-1.43-1.5-1.34-2.61.13-1.46 1.46-2.52 2.93-2.52h4.36c.65 0 1.17.53 1.17 1.17v6.71s0 .61 1.61.61 1.61-.61 1.61-.61v-6.71c0-.65.52-1.17 1.17-1.17h4.36c1.47 0 2.8 1.06 2.93 2.52.1 1.11-.47 2.09-1.34 2.61l-5.39 3.64c-.32.22-.52.58-.52.97v10.91c0 .85.88 1.42 1.66 1.07l10.33-4.68c.21-.1.34-.3.34-.53v-16.5c.01-8.61-7.18-15.55-15.88-15.14z'/%3e%3c/svg%3e",3,"matTooltip",4,"ngIf"],["class","slot-icon","src","data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 51 51'%3e%3cpath d='M40.1 30.03c.39-.47.59-1.11.42-1.8-.18-.76-.81-1.39-1.58-1.55-.81-.17-1.54.14-2.01.68 0 0-.03.04-.05.07l-.12.15c-.47.61-1.95 2.37-3.29 2.45-1.62.1 2.51-16.14 2.51-16.14h-.01c.04-.15.07-.31.07-.48 0-.98-.79-1.77-1.77-1.77-.81 0-1.49.55-1.69 1.29h-.01s-.01.03-.01.05l-.03.15c-.24 1.21-1.68 8.2-2.81 8.89-1.24.75-1.22-13.23-1.22-13.23 0-.98-.79-1.77-1.77-1.77s-1.77.79-1.77 1.77c0 0-.35 12.85-1.73 12.73-1.37-.12-2.47-10.67-2.47-10.67 0-.98-.79-1.77-1.77-1.77s-1.77.79-1.77 1.77c0 .15.02.28.06.42.27 2.06 1.36 11.12-.06 11.12-1.6 0-3.68-6.35-3.68-6.35a1.62 1.62 0 0 0-3.14.56c0 .09.01.17.03.25l-.03.01s.02.07.07.19c.02.09.05.17.09.25.99 2.71 6.28 17.46 7.26 26.23.03.25.24.44.49.44H30.5a.5.5 0 0 0 .5-.45c.1-1.04.52-3.68 2.09-5.54 1.8-2.14 6.06-6.89 6.86-7.79.02-.02.03-.04.05-.06.07-.06.11-.1.1-.1z'/%3e%3c/svg%3e",3,"matTooltip",4,"ngIf"],["class","slot-icon","src","data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 51 51'%3e%3cpath d='M42.49 13.55c-1.06-1.51-4.05-5.05-9.52-6.49a.635.635 0 0 0-.78.5c-.35 2.04-1.78 8.08-6.69 8.08s-6.34-6.04-6.69-8.08a.635.635 0 0 0-.78-.5c-5.47 1.44-8.46 4.98-9.52 6.49-.24.34-.09.8.3.94 2.01.7 7.34 2.94 7.34 7.01 0 4.24-4.47 6.89-5.87 7.61-.25.13-.38.4-.33.67 1.44 7.62 7.55 13.09 8.67 14.04.11.1.25.15.4.15h12.94c.15 0 .29-.05.4-.15 1.12-.95 7.23-6.42 8.67-14.04a.624.624 0 0 0-.33-.67c-1.4-.72-5.87-3.37-5.87-7.61 0-4.08 5.33-6.32 7.34-7.01.41-.14.56-.61.32-.94z'/%3e%3c/svg%3e",3,"matTooltip",4,"ngIf"],["class","slot-icon","src","data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 51 51'%3e%3cpath d='M13 7.6h13.96c1.73 0 2.99 1.64 2.54 3.32l-5.44 20.46c-.07.28.03.57.28.72.99.62 4.64 2.57 8.15 5.78.12.11 2.92-.03 3.09-.01 2.31.2 3.97-.08 5.05 4.7.09.42-.21.82-.64.82H11.82c-.34 0-.63-.26-.66-.61-.15-1.82-.4-7.23 1.74-9.32a.62.62 0 0 0 .2-.6c-.39-1.74-2.09-9.83-2.74-22.48-.07-1.5 1.12-2.78 2.64-2.78z'/%3e%3c/svg%3e",3,"matTooltip",4,"ngIf"],["class","slot-icon","src","data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 51 51'%3e%3cpath d='M43.12 7.12c-4.13 2.33-17.62 1.9-17.62 1.9s-13.49.43-17.62-1.9c-.37-.21-.85-.03-.94.39-.36 1.49-.87 4.42.09 5.86.09.13.22.21.38.25 1.23.3 7.36 1.65 18.09 1.65s16.86-1.35 18.09-1.65c.15-.04.29-.12.38-.25.96-1.44.45-4.37.1-5.86-.1-.42-.58-.6-.95-.39zM9.27 28.34s0 2.34 2.27 2.34 2.27-2.34 2.27-2.34V15.73c-1.93-.22-3.45-.45-4.55-.65v13.26zM16.3 34.8s0 2.34 2.27 2.34 2.27-2.34 2.27-2.34V16.24c-1.66-.06-3.18-.16-4.55-.27V34.8zM37.18 28.34s0 2.34 2.27 2.34 2.27-2.34 2.27-2.34V15.08c-1.09.2-2.61.44-4.55.65v12.61zM30.15 34.8s0 2.34 2.27 2.34 2.27-2.34 2.27-2.34V15.97c-1.36.11-2.88.21-4.55.27V34.8zM23.23 16.31v25.31s0 2.34 2.27 2.34 2.27-2.34 2.27-2.34V16.31c-.74.01-1.49.02-2.27.02-.78.01-1.54 0-2.27-.02z'/%3e%3c/svg%3e",3,"matTooltip",4,"ngIf"],[1,"mod-info"],[1,"mod-icon","mod-major",3,"src"],[1,"mod-icon","mod-minor",3,"src"],["viewBox","0 0 100 100",1,"mod-number","mod-major"],["font-size","25px","text-anchor","end","x","87","y","30"],["viewBox","0 0 100 100",1,"mod-number","mod-minor"],[1,"overlay"],[3,"value","click"],["mat-menu-item","",3,"click"],[1,"menuArmorIcon",3,"perk"],[1,"menuArmorText"],["src","data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 51 51'%3e%3cpath d='M24.77 7.03c-8.15.38-14.42 7.41-14.42 15.57v16.06c0 .23.13.44.34.53l10.33 4.68c.78.35 1.66-.22 1.66-1.07V31.9c0-.39-.19-.75-.52-.97l-5.39-3.64c-.87-.52-1.43-1.5-1.34-2.61.13-1.46 1.46-2.52 2.93-2.52h4.36c.65 0 1.17.53 1.17 1.17v6.71s0 .61 1.61.61 1.61-.61 1.61-.61v-6.71c0-.65.52-1.17 1.17-1.17h4.36c1.47 0 2.8 1.06 2.93 2.52.1 1.11-.47 2.09-1.34 2.61l-5.39 3.64c-.32.22-.52.58-.52.97v10.91c0 .85.88 1.42 1.66 1.07l10.33-4.68c.21-.1.34-.3.34-.53v-16.5c.01-8.61-7.18-15.55-15.88-15.14z'/%3e%3c/svg%3e",1,"slot-icon",3,"matTooltip"],["tooltip","matTooltip"],["src","data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 51 51'%3e%3cpath d='M40.1 30.03c.39-.47.59-1.11.42-1.8-.18-.76-.81-1.39-1.58-1.55-.81-.17-1.54.14-2.01.68 0 0-.03.04-.05.07l-.12.15c-.47.61-1.95 2.37-3.29 2.45-1.62.1 2.51-16.14 2.51-16.14h-.01c.04-.15.07-.31.07-.48 0-.98-.79-1.77-1.77-1.77-.81 0-1.49.55-1.69 1.29h-.01s-.01.03-.01.05l-.03.15c-.24 1.21-1.68 8.2-2.81 8.89-1.24.75-1.22-13.23-1.22-13.23 0-.98-.79-1.77-1.77-1.77s-1.77.79-1.77 1.77c0 0-.35 12.85-1.73 12.73-1.37-.12-2.47-10.67-2.47-10.67 0-.98-.79-1.77-1.77-1.77s-1.77.79-1.77 1.77c0 .15.02.28.06.42.27 2.06 1.36 11.12-.06 11.12-1.6 0-3.68-6.35-3.68-6.35a1.62 1.62 0 0 0-3.14.56c0 .09.01.17.03.25l-.03.01s.02.07.07.19c.02.09.05.17.09.25.99 2.71 6.28 17.46 7.26 26.23.03.25.24.44.49.44H30.5a.5.5 0 0 0 .5-.45c.1-1.04.52-3.68 2.09-5.54 1.8-2.14 6.06-6.89 6.86-7.79.02-.02.03-.04.05-.06.07-.06.11-.1.1-.1z'/%3e%3c/svg%3e",1,"slot-icon",3,"matTooltip"],["src","data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 51 51'%3e%3cpath d='M42.49 13.55c-1.06-1.51-4.05-5.05-9.52-6.49a.635.635 0 0 0-.78.5c-.35 2.04-1.78 8.08-6.69 8.08s-6.34-6.04-6.69-8.08a.635.635 0 0 0-.78-.5c-5.47 1.44-8.46 4.98-9.52 6.49-.24.34-.09.8.3.94 2.01.7 7.34 2.94 7.34 7.01 0 4.24-4.47 6.89-5.87 7.61-.25.13-.38.4-.33.67 1.44 7.62 7.55 13.09 8.67 14.04.11.1.25.15.4.15h12.94c.15 0 .29-.05.4-.15 1.12-.95 7.23-6.42 8.67-14.04a.624.624 0 0 0-.33-.67c-1.4-.72-5.87-3.37-5.87-7.61 0-4.08 5.33-6.32 7.34-7.01.41-.14.56-.61.32-.94z'/%3e%3c/svg%3e",1,"slot-icon",3,"matTooltip"],["src","data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 51 51'%3e%3cpath d='M13 7.6h13.96c1.73 0 2.99 1.64 2.54 3.32l-5.44 20.46c-.07.28.03.57.28.72.99.62 4.64 2.57 8.15 5.78.12.11 2.92-.03 3.09-.01 2.31.2 3.97-.08 5.05 4.7.09.42-.21.82-.64.82H11.82c-.34 0-.63-.26-.66-.61-.15-1.82-.4-7.23 1.74-9.32a.62.62 0 0 0 .2-.6c-.39-1.74-2.09-9.83-2.74-22.48-.07-1.5 1.12-2.78 2.64-2.78z'/%3e%3c/svg%3e",1,"slot-icon",3,"matTooltip"],["src","data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 51 51'%3e%3cpath d='M43.12 7.12c-4.13 2.33-17.62 1.9-17.62 1.9s-13.49.43-17.62-1.9c-.37-.21-.85-.03-.94.39-.36 1.49-.87 4.42.09 5.86.09.13.22.21.38.25 1.23.3 7.36 1.65 18.09 1.65s16.86-1.35 18.09-1.65c.15-.04.29-.12.38-.25.96-1.44.45-4.37.1-5.86-.1-.42-.58-.6-.95-.39zM9.27 28.34s0 2.34 2.27 2.34 2.27-2.34 2.27-2.34V15.73c-1.93-.22-3.45-.45-4.55-.65v13.26zM16.3 34.8s0 2.34 2.27 2.34 2.27-2.34 2.27-2.34V16.24c-1.66-.06-3.18-.16-4.55-.27V34.8zM37.18 28.34s0 2.34 2.27 2.34 2.27-2.34 2.27-2.34V15.08c-1.09.2-2.61.44-4.55.65v12.61zM30.15 34.8s0 2.34 2.27 2.34 2.27-2.34 2.27-2.34V15.97c-1.36.11-2.88.21-4.55.27V34.8zM23.23 16.31v25.31s0 2.34 2.27 2.34 2.27-2.34 2.27-2.34V16.31c-.74.01-1.49.02-2.27.02-.78.01-1.54 0-2.27-.02z'/%3e%3c/svg%3e",1,"slot-icon",3,"matTooltip"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2),t.NdJ("mouseout",function(){return o.hoveredSlot=-1}),t.TgZ(3,"div",3),t.NdJ("click",function(){return o.setValue(5)})("mouseover",function(){return o.hoveredSlot=0}),t.qZA(),t.TgZ(4,"div",3),t.NdJ("click",function(){return o.setValue(5)})("mouseover",function(){return o.hoveredSlot=0}),t.qZA(),t.TgZ(5,"div",3),t.NdJ("click",function(){return o.setValue(5)})("mouseover",function(){return o.hoveredSlot=0}),t.qZA(),t.TgZ(6,"div",3),t.NdJ("click",function(){return o.setValue(5)})("mouseover",function(){return o.hoveredSlot=0}),t.qZA(),t.TgZ(7,"div",3),t.NdJ("click",function(){return o.setValue(5)})("mouseover",function(){return o.hoveredSlot=0}),t.qZA(),t.TgZ(8,"div",4),t.NdJ("click",function(){return o.setValue(4)})("mouseover",function(){return o.hoveredSlot=1}),t.qZA(),t.TgZ(9,"div",4),t.NdJ("click",function(){return o.setValue(3)})("mouseover",function(){return o.hoveredSlot=2}),t.qZA(),t.TgZ(10,"div",4),t.NdJ("click",function(){return o.setValue(2)})("mouseover",function(){return o.hoveredSlot=3}),t.qZA(),t.TgZ(11,"div",4),t.NdJ("click",function(){return o.setValue(1)})("mouseover",function(){return o.hoveredSlot=4}),t.qZA(),t.TgZ(12,"div",4),t.NdJ("click",function(){return o.setValue(0)})("mouseover",function(){return o.hoveredSlot=5}),t.qZA()(),t._UZ(13,"br"),t.YNc(14,Ks,61,36,"div",5),t.qZA(),t.TgZ(15,"mat-button-toggle-group",6),t.YNc(16,$s,2,5,"mat-button-toggle",7),t.qZA(),t.TgZ(17,"div",8)(18,"mat-button-toggle-group")(19,"mat-button-toggle",9),t._UZ(20,"app-armor-perk-icon",10),t.TgZ(21,"mat-icon"),t._uU(22,"arrow_drop_down"),t.qZA()(),t.TgZ(23,"mat-button-toggle",11),t.NdJ("click",function(s){return o.toggleArmorPerkLock(),s.stopPropagation()}),t.YNc(24,Xs,2,0,"mat-icon",12),t.YNc(25,tr,2,0,"mat-icon",12),t.qZA()(),t.TgZ(26,"mat-menu",13,14),t.YNc(28,er,5,4,"ng-container",15),t.qZA()(),t.TgZ(29,"span",16),t.YNc(30,nr,2,1,"img",17),t.YNc(31,or,2,1,"img",18),t.YNc(32,ir,2,1,"img",19),t.YNc(33,ar,2,1,"img",20),t.YNc(34,sr,2,1,"img",21),t.qZA()()),2&e){const a=t.MAs(27);t.ekj("disabled",o.disabled),t.xp6(8),t.ekj("active",5-o.maximumModSlots>=1)("hovered-higher",o.hoveredSlot>-1&&o.hoveredSlot<1)("hovered",o.hoveredSlot>=1)("blocked",o.featureDisabled),t.xp6(1),t.ekj("active",5-o.maximumModSlots>=2)("hovered-higher",o.hoveredSlot>-1&&o.hoveredSlot<2)("hovered",o.hoveredSlot>=2)("blocked",o.featureDisabled),t.xp6(1),t.ekj("active",5-o.maximumModSlots>=3)("hovered-higher",o.hoveredSlot>-1&&o.hoveredSlot<3)("hovered",o.hoveredSlot>=3)("blocked",o.featureDisabled),t.xp6(1),t.ekj("active",5-o.maximumModSlots>=4)("hovered-higher",o.hoveredSlot>-1&&o.hoveredSlot<4)("hovered",o.hoveredSlot>=4)("blocked",o.featureDisabled),t.xp6(1),t.ekj("active",5-o.maximumModSlots==5)("hovered-higher",o.hoveredSlot>-1&&o.hoveredSlot<5)("hovered",5===o.hoveredSlot)("blocked",o.featureDisabled),t.xp6(2),t.Q6J("ngVar",o.hoveredSlot>-1?5-o.hoveredSlot:o.maximumModSlots),t.xp6(2),t.Q6J("ngForOf",o.ModRange),t.xp6(2),t.ekj("impossible",!o.isPossible),t.xp6(1),t.Q6J("matMenuTriggerFor",a),t.xp6(1),t.Q6J("perk",o.armorPerk),t.xp6(3),t.MGl("matTooltip","Force the selected perk or slot to be on a ",o.slotName,"."),t.Q6J("disabled",o.disabled),t.xp6(1),t.Q6J("ngIf",!o.armorPerkLock),t.xp6(1),t.Q6J("ngIf",o.armorPerkLock),t.xp6(3),t.Q6J("ngForOf",o.availableArmorPerks),t.xp6(2),t.Q6J("ngIf",o.slot===o.ArmorSlot.ArmorSlotHelmet),t.xp6(1),t.Q6J("ngIf",o.slot===o.ArmorSlot.ArmorSlotGauntlet),t.xp6(1),t.Q6J("ngIf",o.slot===o.ArmorSlot.ArmorSlotChest),t.xp6(1),t.Q6J("ngIf",o.slot===o.ArmorSlot.ArmorSlotLegs),t.xp6(1),t.Q6J("ngIf",o.slot===o.ArmorSlot.ArmorSlotClass)}},dependencies:[I.sg,I.O5,pt.gM,St.Hw,Kt.VK,Kt.OP,Kt.p6,Dt.A9,Dt.Yi,zt,_e],styles:[".slot-icon-container[_ngcontent-%COMP%]{float:right;position:relative}.slot-icon-container[_ngcontent-%COMP%] .slot-icon[_ngcontent-%COMP%]{height:30px;position:absolute;left:-30px;filter:invert(1) drop-shadow(1px 1px 3px rgba(0,0,0,.25))!important}.container[_ngcontent-%COMP%]{height:60px}.select-button[_ngcontent-%COMP%]{min-width:40px}.selector-element[_ngcontent-%COMP%]{position:relative;float:right;width:90px;height:70px;top:-21px}.selector-element[_ngcontent-%COMP%] .lock[_ngcontent-%COMP%]{position:absolute;bottom:2px;left:60px}.selector-element[_ngcontent-%COMP%] .element-list[_ngcontent-%COMP%]{float:left;width:70px;padding-left:5px}.selector-element[_ngcontent-%COMP%] .element-list[_ngcontent-%COMP%] .element-icon[_ngcontent-%COMP%]{border:rgba(0,0,0,0) solid 2px;height:26px;width:26px;margin-right:1px;margin-bottom:1px;margin-top:1px;cursor:pointer;filter:grayscale(.4)}.selector-element[_ngcontent-%COMP%] .element-list[_ngcontent-%COMP%] .element-icon[_ngcontent-%COMP%]:hover{filter:grayscale(.2)}.selector-element[_ngcontent-%COMP%] .element-list[_ngcontent-%COMP%] .element-icon.selected[_ngcontent-%COMP%]{filter:grayscale(0)}[_nghost-%COMP%] .selector-slots .mat-button-toggle{background-color:inherit}.modslot-selection[_ngcontent-%COMP%]{width:180px}.selector-slots[_ngcontent-%COMP%]{position:relative;float:right;top:-10px}.selector-slots[_ngcontent-%COMP%] .lock[_ngcontent-%COMP%]{position:absolute;bottom:2px;left:140px}.selector-slots[_ngcontent-%COMP%] .element-list[_ngcontent-%COMP%]{float:left;height:70px;width:175px;padding-left:5px}.selector-slots[_ngcontent-%COMP%] .element-list[_ngcontent-%COMP%] .element-icon[_ngcontent-%COMP%]{height:30px;width:30px;border:rgba(0,0,0,0) solid 2px;margin-right:1px;margin-top:-2px;cursor:pointer}.selector-slots[_ngcontent-%COMP%] .element-list[_ngcontent-%COMP%] .element-icon.disabled[_ngcontent-%COMP%]{opacity:.5;cursor:default;border:rgba(0,0,0,0) solid 2px!important}.impossible[_ngcontent-%COMP%]{background-color:#ff00004d;cursor:help}.left_line[_ngcontent-%COMP%]{pointer-events:none;height:15px;width:100%;border-left:1px solid white;border-bottom:1px solid white;position:absolute;bottom:0px;left:0}.overlay-icon-container[_ngcontent-%COMP%]{position:relative}.overlay-icon-container[_ngcontent-%COMP%] .overlay-icon[_ngcontent-%COMP%]{width:20px;position:absolute;left:7px;bottom:11px;pointer-events:none}.element-icon[_ngcontent-%COMP%]:hover{border:cornflowerblue solid 2px!important}.selected[_ngcontent-%COMP%], .selected[_ngcontent-%COMP%]:hover{background-color:#89b2ff3d;border:#0059ff solid 2px!important}.energy-container[_ngcontent-%COMP%] .energy-bar[_ngcontent-%COMP%]{float:left;margin-right:3px;width:20px;height:10px;border:white solid 2px;cursor:pointer}.energy-container[_ngcontent-%COMP%] .energy-bar.none[_ngcontent-%COMP%]{border:indianred solid 2px}.energy-container[_ngcontent-%COMP%] .energy-bar[_ngcontent-%COMP%]:hover, .energy-container[_ngcontent-%COMP%] .hovered[_ngcontent-%COMP%]{background-color:#6e6e6e}.energy-container[_ngcontent-%COMP%] .hovered-higher[_ngcontent-%COMP%]{background-color:#0000!important}.energy-container[_ngcontent-%COMP%] .energy-bar.active[_ngcontent-%COMP%]{background-color:#fff}.energy-container[_ngcontent-%COMP%] .energy-bar.blocked[_ngcontent-%COMP%]{border:#606060 solid 2px;background-color:#6e6e6e}.mod-info[_ngcontent-%COMP%]{position:relative;float:left;height:40px;width:40px;margin-right:5px}.mod-info[_ngcontent-%COMP%] .mod-number[_ngcontent-%COMP%]{position:absolute;top:1px;bottom:1px;right:1px;left:1px;pointer-events:none;fill:#e0e0e0}.mod-info[_ngcontent-%COMP%] .mod-minor[_ngcontent-%COMP%]{display:none}.mod-info[_ngcontent-%COMP%] .overlay[_ngcontent-%COMP%]{position:absolute;top:0px;width:100%;height:100%;background:linear-gradient(to top left,rgba(0,0,0,0) 0%,rgba(0,0,0,0) calc(50% - .8px),rgb(0,0,0) 50%,rgba(0,0,0,0) calc(50% + .8px),rgba(0,0,0,0) 100%),linear-gradient(to top right,rgba(0,0,0,0) 0%,rgba(0,0,0,0) calc(50% - .8px),rgb(0,0,0) 50%,rgba(0,0,0,0) calc(50% + .8px),rgba(0,0,0,0) 100%)}.mod-info[_ngcontent-%COMP%] .mod-icon[_ngcontent-%COMP%]{width:40px;height:40px}.mod-info[_ngcontent-%COMP%] .mod-minor[_ngcontent-%COMP%]{border:rgba(0,0,0,0) solid 3px;width:34px;height:34px}.mod-info.major[_ngcontent-%COMP%] .overlay[_ngcontent-%COMP%], .mod-info.minor[_ngcontent-%COMP%] .overlay[_ngcontent-%COMP%]{display:none}.mod-info.minor[_ngcontent-%COMP%] .mod-minor[_ngcontent-%COMP%]{display:block}.mod-info.minor[_ngcontent-%COMP%] .mod-major[_ngcontent-%COMP%]{display:none}.menuArmorIcon[_ngcontent-%COMP%]{position:absolute;top:8px}.menuArmorText[_ngcontent-%COMP%]{padding-left:35px}.selected-menu[_ngcontent-%COMP%]{background-color:#89b2ff3d}.selected-menu[_ngcontent-%COMP%]:hover{background-color:#89b2ff4d} .modslot-select-scroll-menu{overflow-y:auto;max-height:250px!important}"]}),n})(),lr=(()=>{class n{constructor(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-slot-limitation-title"]],decls:5,vars:0,consts:[[1,"energy"],[1,"selector-slots"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"div",0),t._uU(2," Energy "),t.qZA(),t.TgZ(3,"span",1),t._uU(4," Modslots "),t.qZA()())},styles:[".energy[_ngcontent-%COMP%]{border-bottom:#a1a1a1 1px solid;margin-bottom:6px}.selector-element[_ngcontent-%COMP%]{position:relative;float:right;width:90px;top:-26px}.selector-slots[_ngcontent-%COMP%]{position:relative;float:right;width:155px;top:-26px;text-align:center}"]}),n})();function cr(n,i){1&n&&(t.TgZ(0,"mat-toolbar",13),t._uU(1," Some of your chosen limitations contain no armor pieces and will yield no results.\n"),t.qZA())}function mr(n,i){1&n&&(t.TgZ(0,"mat-toolbar",13),t._uU(1," The mod cost limitation is currently disabled. Modslot filtering still works.\n"),t.qZA())}let dr=(()=>{class n{constructor(e){this.config=e,this.ArmorSlot=T.y,this.ArmorPerkOrSlot=c.Pn,this.possibilityList=[!0,!0,!0,!0,!0],this.allPossible=!0,this.disabledSlotLimitation=!g.N.featureFlags.enableModslotLimitation}updatePossibility(e,o){this.possibilityList[e]=o,this.allPossible=5==this.possibilityList.filter(a=>!!a).length}clear(){this.config.modifyConfiguration(e=>{for(let o=0;o<5;o++)e.armorPerks[o+1]={fixed:!0,value:0},e.maximumModSlots[o+1]={fixed:!0,value:5}})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(X))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-desired-mod-selection"]],decls:129,vars:16,consts:[["color","warn","class","mat-elevation-z4 impossible-container",4,"ngIf"],[1,"container"],[3,"slot","possible"],["id","clear-container"],["color","warn","mat-stroked-button","",3,"click"],[1,"minispace"],[1,"mat-elevation-z6"],["aria-hidden","false","inline",""],["id","explanation-description"],[1,"text-highlight"],[1,"example-usecase"],[1,"modslot-legend"],[3,"perk"],["color","warn",1,"mat-elevation-z4","impossible-container"]],template:function(e,o){1&e&&(t.YNc(0,cr,2,0,"mat-toolbar",0),t.TgZ(1,"div",1),t._UZ(2,"app-slot-limitation-title"),t.TgZ(3,"app-slot-limitation-selection",2),t.NdJ("possible",function(s){return o.updatePossibility(0,s)}),t.qZA(),t._UZ(4,"br"),t.TgZ(5,"app-slot-limitation-selection",2),t.NdJ("possible",function(s){return o.updatePossibility(1,s)}),t.qZA(),t._UZ(6,"br"),t.TgZ(7,"app-slot-limitation-selection",2),t.NdJ("possible",function(s){return o.updatePossibility(2,s)}),t.qZA(),t._UZ(8,"br"),t.TgZ(9,"app-slot-limitation-selection",2),t.NdJ("possible",function(s){return o.updatePossibility(3,s)}),t.qZA(),t._UZ(10,"br"),t.TgZ(11,"app-slot-limitation-selection",2),t.NdJ("possible",function(s){return o.updatePossibility(4,s)}),t.qZA()(),t.TgZ(12,"div",3)(13,"button",4),t.NdJ("click",function(){return o.clear()}),t._uU(14,"Clear the whole selection"),t.qZA()(),t._UZ(15,"div",5),t.YNc(16,mr,2,0,"mat-toolbar",0),t._UZ(17,"div",5),t.TgZ(18,"mat-accordion")(19,"mat-expansion-panel",6)(20,"mat-expansion-panel-header")(21,"mat-panel-title")(22,"mat-icon",7),t._uU(23,"info"),t.qZA(),t._uU(24," Explanation "),t.qZA(),t.TgZ(25,"mat-panel-description"),t._uU(26," Detailed instructions for this section. "),t.qZA()(),t.TgZ(27,"div",8),t._uU(28," This section allows you to further finetune the results to your requirements."),t._UZ(29,"br")(30,"div",5),t.TgZ(31,"u"),t._uU(32,"Limitation of available stat mod types"),t.qZA(),t._UZ(33,"br"),t._uU(34," First off, you are able to "),t.TgZ(35,"span",9),t._uU(36,"select the kind and amount of stat mods"),t.qZA(),t._uU(37," you want. By filling the bars you "),t.TgZ(38,"span",9),t._uU(39,"specify how many modslots are already occupied"),t.qZA(),t._uU(40," and thus the tool knows how much space it is able to use for your builds. Hover over the bars, it will show you which mods are available after you changed your selection. "),t._UZ(41,"div",5),t.TgZ(42,"div",10),t._uU(43,' Example Use Case: "On one item I can only use up to four recovery mods, no major intellect mod. One item can not hold any mods". In this scenario you would set one slot to 10 used slots, and the rest to 6. '),t.qZA(),t._UZ(44,"br"),t.TgZ(45,"u"),t._uU(46,"Filter for Elemental Affinity and Armor Perk/Slot"),t.qZA(),t._UZ(47,"br"),t._uU(48," This allows you to super-finetune your elemental and armor-perk requirements. You can change the settings for "),t.TgZ(49,"span",9),t._uU(50,"each armor slot"),t.qZA(),t._uU(51,". There are two modes per armor slot: "),t.TgZ(52,"span",9),t._uU(53,"Locked"),t.qZA(),t._uU(54," and "),t.TgZ(55,"span",9),t._uU(56,"Unlocked"),t.qZA(),t._uU(57,". Per default each entry is in the "),t.TgZ(58,"span",9),t._uU(59,"Locked"),t.qZA(),t._uU(60," mode. "),t._UZ(61,"div",5),t.TgZ(62,"span",9),t._uU(63,"Locked"),t.qZA(),t._uU(64," means that "),t.TgZ(65,"span",9),t._uU(66,"this armor slot must have"),t.qZA(),t._uU(67," the selected element or perk. "),t._UZ(68,"div",5),t.TgZ(69,"span",9),t._uU(70,"Unlocked"),t.qZA(),t._uU(71," means that the perk must exist, but "),t.TgZ(72,"span",9),t._uU(73,"the exact armor slot is irrelevant"),t.qZA(),t._uU(74,". That means that the tool can decide where it puts the desired element or perk. "),t._UZ(75,"div",5),t.TgZ(76,"div",10),t._uU(77,' Example Use Case: "The Class Item and Gauntlet '),t.TgZ(78,"span",9),t._uU(79,"must be stasis"),t.qZA(),t._uU(80,'. Oh, and I need two solar and one arc modslots, but the position does not matter". In this scenario, Class Item and Gauntlet would be '),t.TgZ(81,"span",9),t._uU(82,"Locked"),t.qZA(),t._uU(83," and the rest would be "),t.TgZ(84,"span",9),t._uU(85,"Unlocked"),t.qZA(),t._uU(86,". "),t.qZA(),t._UZ(87,"br"),t._uU(88," Legend: "),t.TgZ(89,"table",11)(90,"tr")(91,"td"),t._UZ(92,"app-armor-perk-icon",12),t.qZA(),t.TgZ(93,"td"),t._uU(94,"Vault of Glass"),t.qZA(),t.TgZ(95,"td"),t._UZ(96,"app-armor-perk-icon",12),t.qZA(),t.TgZ(97,"td"),t._uU(98,"Deep Stone Crypt"),t.qZA(),t.TgZ(99,"td"),t._UZ(100,"app-armor-perk-icon",12),t.qZA(),t.TgZ(101,"td"),t._uU(102,"Garden of Salvation"),t.qZA()(),t.TgZ(103,"tr")(104,"td"),t._UZ(105,"app-armor-perk-icon",12),t.qZA(),t.TgZ(106,"td"),t._uU(107,"Last Wish"),t.qZA(),t.TgZ(108,"td"),t._UZ(109,"app-armor-perk-icon",12),t.qZA(),t.TgZ(110,"td"),t._uU(111,"Vow of the Disciple"),t.qZA(),t.TgZ(112,"td"),t._UZ(113,"app-armor-perk-icon",12),t.qZA(),t.TgZ(114,"td"),t._uU(115,"Nightmare Modslot"),t.qZA()(),t.TgZ(116,"tr")(117,"td"),t._UZ(118,"app-armor-perk-icon",12),t.qZA(),t.TgZ(119,"td"),t._uU(120,"Artifice Modslot"),t.qZA(),t.TgZ(121,"td"),t._UZ(122,"app-armor-perk-icon",12),t.qZA(),t.TgZ(123,"td"),t._uU(124,"Iron Banner Perk"),t.qZA(),t.TgZ(125,"td"),t._UZ(126,"app-armor-perk-icon",12),t.qZA(),t.TgZ(127,"td"),t._uU(128,"Echoes of Glory Perk"),t.qZA()()()()()()),2&e&&(t.Q6J("ngIf",!o.allPossible),t.xp6(3),t.Q6J("slot",o.ArmorSlot.ArmorSlotHelmet),t.xp6(2),t.Q6J("slot",o.ArmorSlot.ArmorSlotGauntlet),t.xp6(2),t.Q6J("slot",o.ArmorSlot.ArmorSlotChest),t.xp6(2),t.Q6J("slot",o.ArmorSlot.ArmorSlotLegs),t.xp6(2),t.Q6J("slot",o.ArmorSlot.ArmorSlotClass),t.xp6(5),t.Q6J("ngIf",o.disabledSlotLimitation),t.xp6(76),t.Q6J("perk",o.ArmorPerkOrSlot.SlotVaultOfGlass),t.xp6(4),t.Q6J("perk",o.ArmorPerkOrSlot.SlotDeepStoneCrypt),t.xp6(4),t.Q6J("perk",o.ArmorPerkOrSlot.SlotGardenOfSalvation),t.xp6(5),t.Q6J("perk",o.ArmorPerkOrSlot.SlotLastWish),t.xp6(4),t.Q6J("perk",o.ArmorPerkOrSlot.SlotVowOfTheDisciple),t.xp6(4),t.Q6J("perk",o.ArmorPerkOrSlot.SlotNightmare),t.xp6(5),t.Q6J("perk",o.ArmorPerkOrSlot.SlotArtifice),t.xp6(4),t.Q6J("perk",o.ArmorPerkOrSlot.PerkIronBanner),t.xp6(4),t.Q6J("perk",o.ArmorPerkOrSlot.PerkEchoesOfGlory))},dependencies:[I.O5,st.lW,St.Hw,wt.Ye,ct.pp,ct.ib,ct.yz,ct.yK,ct.u4,rr,_e,lr],styles:[".container[_ngcontent-%COMP%]{margin-bottom:10px}.impossible-container[_ngcontent-%COMP%]{text-align:center;margin-right:auto;margin-left:auto;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content;font-size:15px;line-height:20px;margin-bottom:10px}.element-icon[_ngcontent-%COMP%]{height:30px;width:30px}.element-icon.disabled[_ngcontent-%COMP%]{opacity:.5;cursor:default;pointer-events:none}.overlay-icon-container[_ngcontent-%COMP%]{position:relative}.overlay-icon-container[_ngcontent-%COMP%] .overlay-icon[_ngcontent-%COMP%]{width:20px;position:absolute;left:5px;bottom:9px;pointer-events:none}.modslot-legend[_ngcontent-%COMP%]{border-collapse:separate;border-spacing:0 0;width:100%}.modslot-legend[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:0}#explanation-description[_ngcontent-%COMP%]{width:520px}.minispace[_ngcontent-%COMP%]{height:7px}.text-highlight[_ngcontent-%COMP%]{color:#cddcef}.example-usecase[_ngcontent-%COMP%]{font-size:small;line-height:normal}"]}),n})();function ur(n,i){if(1&n&&t._UZ(0,"img",6),2&n){const e=t.oxw();t.s9C("alt",e.exoticPerk.name),t.MGl("src","https://bungie.net/",e.exoticPerk.icon,"",t.LSH)}}function pr(n,i){1&n&&(t.TgZ(0,"tr")(1,"td"),t._uU(2,"Loading exotic perk.."),t.qZA()())}function gr(n,i){1&n&&(t.TgZ(0,"tr")(1,"td"),t._uU(2,"No (fixed) exotic perk available."),t.qZA()())}function _r(n,i){if(1&n&&(t.TgZ(0,"tr")(1,"td")(2,"span"),t._uU(3),t.qZA()()()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(e.exoticPerk.name)}}function fr(n,i){if(1&n&&(t.TgZ(0,"tr")(1,"td",7),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.hij(" ",e.exoticPerk.description," ")}}function hr(n,i){1&n&&(t.ynx(0),t._uU(1," and "),t.BQk())}function xr(n,i){if(1&n&&(t.ynx(0),t._uU(1," in your collection "),t.YNc(2,hr,2,0,"ng-container",4),t.BQk()),2&n){const e=t.oxw(2);t.xp6(2),t.Q6J("ngIf",e.vendor)}}function yr(n,i){1&n&&(t.ynx(0),t._uU(1,"available at a vendor"),t.BQk())}function Cr(n,i){if(1&n&&(t.TgZ(0,"tr",8)(1,"td",7),t._uU(2," This exotic is not in your inventory but it is "),t.YNc(3,xr,3,1,"ng-container",4),t.YNc(4,yr,2,0,"ng-container",4),t._uU(5,". You can still generate a loadout with this exotic, but you will have to grab it by yourself. "),t.qZA()()),2&n){const e=t.oxw();t.xp6(3),t.Q6J("ngIf",e.collection),t.xp6(1),t.Q6J("ngIf",e.vendor)}}let Tr=(()=>{class n{constructor(e,o){this.inv=e,this.iconService=o,this.vendor=!1,this.collection=!1,this.exoticPerkNotThere=!1}ngOnInit(){var e=this;return(0,y.Z)(function*(){e.exoticPerk=yield e.iconService.getItemCached(e.armor?.exoticPerkHash??0),e.exoticPerkNotThere=null==e.exoticPerk})()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Tt),t.Y36(pe))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-exotic-perk-tooltip"]],inputs:{armor:"armor",vendor:"vendor",collection:"collection"},decls:13,vars:7,consts:[[1,"tooltip-container"],["rowspan","2",1,"perk-icon-col"],["class","perk-icon",3,"alt","src",4,"ngIf"],[1,"exotic-name"],[4,"ngIf"],["class","collection-roll-info",4,"ngIf"],[1,"perk-icon",3,"alt","src"],["colspan","2"],[1,"collection-roll-info"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"div",0)(2,"table")(3,"tr")(4,"td",1),t.YNc(5,ur,1,2,"img",2),t.qZA(),t.TgZ(6,"td",3),t._uU(7),t.qZA()(),t.YNc(8,pr,3,0,"tr",4),t.YNc(9,gr,3,0,"tr",4),t.YNc(10,_r,4,1,"tr",4),t.YNc(11,fr,3,1,"tr",4),t.YNc(12,Cr,6,2,"tr",5),t.qZA()()()),2&e&&(t.xp6(5),t.Q6J("ngIf",o.exoticPerk),t.xp6(2),t.Oqu(null==o.armor?null:o.armor.name),t.xp6(1),t.Q6J("ngIf",!o.exoticPerk&&!o.exoticPerkNotThere),t.xp6(1),t.Q6J("ngIf",!o.exoticPerk&&o.exoticPerkNotThere),t.xp6(1),t.Q6J("ngIf",o.exoticPerk),t.xp6(1),t.Q6J("ngIf",o.exoticPerk),t.xp6(1),t.Q6J("ngIf",o.collection||o.vendor))},dependencies:[I.O5],styles:["[_nghost-%COMP%]{width:350px}.tooltip-container[_ngcontent-%COMP%]{border:1px solid gray;padding:1px 5px 4px;background:linear-gradient(#484848 0px,#2c2c2c 100%)}.perk-icon[_ngcontent-%COMP%]{width:50px;height:50px}.perk-icon-col[_ngcontent-%COMP%]{width:55px}.exotic-name[_ngcontent-%COMP%]{color:#eedb9e}.collection-roll-info[_ngcontent-%COMP%]{color:#5cc3ec;font-size:12px;margin-top:5px}"]}),n})(),vr=(()=>{class n{constructor(e,o,a){this._overlay=e,this._overlayPositionBuilder=o,this._elementRef=a,this.showToolTip=!0,this.exoticTooltipInVendor=!1,this.exoticTooltipInCollection=!1}ngOnInit(){if(!this.showToolTip)return;const e=this._overlayPositionBuilder.flexibleConnectedTo(this._elementRef).withPositions([{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top",offsetY:5},{originX:"center",originY:"top",overlayX:"center",overlayY:"bottom",offsetY:-5}]);this._overlayRef=this._overlay.create({positionStrategy:e}),this._overlayRef.addPanelClass("overlay-no-pointer-event")}show(){if(this._overlayRef&&!this._overlayRef.hasAttached()){const e=this._overlayRef.attach(new re.C5(Tr));e.instance.collection=this.exoticTooltipInCollection,e.instance.vendor=this.exoticTooltipInVendor,e.instance.armor=this.exoticTooltip}}hide(){this.closeToolTip()}ngOnDestroy(){this.closeToolTip()}closeToolTip(){this._overlayRef&&this._overlayRef.detach()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Jt.aV),t.Y36(Jt.wJ),t.Y36(t.SBq))},n.\u0275dir=t.lG2({type:n,selectors:[["","exoticTooltip",""]],hostBindings:function(e,o){1&e&&t.NdJ("mouseenter",function(){return o.show()})("mouseleave",function(){return o.hide()})},inputs:{showToolTip:"showToolTip",exoticTooltip:"exoticTooltip",exoticTooltipInVendor:"exoticTooltipInVendor",exoticTooltipInCollection:"exoticTooltipInCollection",contentTemplate:"contentTemplate"}}),n})();function br(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"img",7,8),t.NdJ("click",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(s.selectExotic(-2,a))}),t.qZA()}if(2&n){const e=t.oxw(2);t.Gre("exoticIcon ",e.selectedExotics.indexOf(-2)>-1?"selected":"","")}}function Ar(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"img",9,8),t.NdJ("click",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(s.selectExotic(-1,a))}),t.qZA()}if(2&n){const e=t.oxw(2);t.Gre("exoticIcon ",e.selectedExotics.indexOf(-1)>-1?"selected":"","")}}function wr(n,i){if(1&n&&t._UZ(0,"img",14),2&n){const e=t.oxw().$implicit;t.MGl("src","https://www.bungie.net/",e.item.watermarkIcon,"",t.LSH)}}function Zr(n,i){if(1&n&&t._UZ(0,"div",15),2&n){const e=t.oxw().$implicit,o=t.oxw(2);t.ekj("vendor-item",o.includeVendorRolls&&e.inVendor)("collection-item",o.includeCollectionRolls&&e.inCollection)}}function Ir(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"span",10)(1,"img",11),t.NdJ("click",function(a){const r=t.CHM(e).$implicit,d=t.oxw(2);return t.KtG((r.inInventory||d.includeCollectionRolls&&r.inCollection)&&d.selectExotic(r.item.hash,a))}),t.qZA(),t.YNc(2,wr,1,1,"img",12),t.YNc(3,Zr,1,4,"div",13),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw(2);t.xp6(1),t.Gre("exoticIcon ",o.selectedExotics.indexOf(e.item.hash)>-1?"selected":"",""),t.ekj("vendor-item",!e.inInventory&&o.includeVendorRolls&&e.inVendor)("collection-item",!e.inInventory&&o.includeCollectionRolls&&e.inCollection)("disabled",!(e.inInventory||o.includeCollectionRolls&&e.inCollection||o.includeVendorRolls&&e.inVendor)),t.MGl("src","https://www.bungie.net/",e.item.icon,"",t.LSH),t.Q6J("exoticTooltip",e.item)("exoticTooltipInVendor",!e.inInventory&&o.includeVendorRolls&&e.inVendor)("exoticTooltipInCollection",!e.inInventory&&o.includeCollectionRolls&&e.inCollection),t.xp6(1),t.Q6J("ngIf",e.item.watermarkIcon),t.xp6(1),t.Q6J("ngIf",!e.inInventory)}}function Sr(n,i){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,br,2,3,"img",4),t.YNc(2,Ar,2,3,"img",5),t.YNc(3,Ir,4,15,"span",6),t.qZA()),2&n){const e=i.$implicit,o=i.index;t.Q6J("@listAnimation",e.length),t.xp6(1),t.Q6J("ngIf",0===o),t.xp6(1),t.Q6J("ngIf",0===o),t.xp6(1),t.Q6J("ngForOf",e)}}function Mr(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.refreshAll())}),t._uU(1," Manually refresh manifest and inventory "),t.qZA()}}const Or=(0,yt.X$)("listAnimation",[(0,yt.eR)("* <=> *",[(0,yt.IO)(":enter",[(0,yt.oB)({opacity:0}),(0,yt.EY)("30ms",(0,yt.jt)("350ms ease-out",(0,yt.oB)({opacity:1})))],{optional:!0})])]);let kr=(()=>{class n{constructor(e,o){this.inventory=e,this.config=o,this.selectedExotics=[],this.includeCollectionRolls=!1,this.includeVendorRolls=!1,this.ignoreSunsetArmor=!1,this.ignoreExistingExoticArtificeSlots=!1,this.allowBlueArmorPieces=!1,this.currentClass=0,this.exotics=[],this.ngUnsubscribe=new R.xQ}ngOnInit(){var e=this;this.config.configuration.pipe((0,Ct.R)(this.ngUnsubscribe)).subscribe(function(){var o=(0,y.Z)(function*(a){(a.characterClass!=e.currentClass||0==e.exotics.length)&&(e.currentClass=a.characterClass,yield e.updateExoticsForClass()),e.includeCollectionRolls=a.includeCollectionRolls,e.includeVendorRolls=a.includeVendorRolls,e.selectedExotics=a.selectedExotics,e.ignoreSunsetArmor=a.ignoreSunsetArmor,e.allowBlueArmorPieces=a.allowBlueArmorPieces,e.ignoreExistingExoticArtificeSlots=a.ignoreExistingExoticArtificeSlots});return function(a){return o.apply(this,arguments)}}()),this.inventory.manifest.pipe((0,J.b)(10),(0,Ct.R)(this.ngUnsubscribe)).subscribe((0,y.Z)(function*(){yield e.updateExoticsForClass()})),this.inventory.inventory.pipe((0,J.b)(10),(0,Ct.R)(this.ngUnsubscribe)).subscribe((0,y.Z)(function*(){yield e.updateExoticsForClass()}))}updateExoticsForClass(){var e=this;return(0,y.Z)(function*(){const o=yield e.inventory.getExoticsForClass(e.currentClass);function a(s){var r={};return s.filter(function(d){var p=d.item.hash;return!r.hasOwnProperty(p)&&(r[p]=!0)})}e.exotics=[a(o.filter(s=>s.item.slot==T.y.ArmorSlotHelmet)),a(o.filter(s=>s.item.slot==T.y.ArmorSlotGauntlet)),a(o.filter(s=>s.item.slot==T.y.ArmorSlotChest)),a(o.filter(s=>s.item.slot==T.y.ArmorSlotLegs)),a(o.filter(s=>s.item.slot==T.y.ArmorSlotClass))]})()}setAllowCollectionRolls(e){this.config.modifyConfiguration(o=>{o.includeCollectionRolls=e})}setAllowVendorItems(e){this.config.modifyConfiguration(o=>{o.includeVendorRolls=e})}setAllowBlueArmorPieces(e){this.config.modifyConfiguration(o=>{o.allowBlueArmorPieces=e})}setIgnoreSunsetArmor(e){this.config.modifyConfiguration(o=>{o.ignoreSunsetArmor=e})}setIgnoreExistingExoticArtificeSlots(e){this.config.modifyConfiguration(o=>{o.ignoreExistingExoticArtificeSlots=e})}selectExotic(e,o){const a=this.selectedExotics.indexOf(e);a>-1?this.selectedExotics.splice(a,1):e==D.Io?this.selectedExotics=[D.Io]:(0==this.selectedExotics.length||!o.shiftKey)&&(this.selectedExotics=[e]),this.config.modifyConfiguration(s=>{s.selectedExotics=this.selectedExotics})}refreshAll(){var e=this;return(0,y.Z)(function*(){yield e.inventory.refreshAll(!0,!0)})()}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Tt),t.Y36(X))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-desired-exotic-selection"]],decls:24,vars:7,consts:[[4,"ngFor","ngForOf"],["mat-raised-button","","color","warn",3,"click",4,"ngIf"],["color","primary",3,"checked","change"],["color","warn",3,"checked","change"],["src","https://www.bungie.net/common/destiny2_content/icons/763634b78eb22168ac707500588b7333.jpg","matTooltip","Force to use ANY exotic (that is NOT a class item)",3,"class","click",4,"ngIf"],["src","https://www.bungie.net/common/destiny2_content/icons/b4d05ef69d0c3227a7d4f7f35bbc2848.png","matTooltip","Force to use NO exotic at all",3,"class","click",4,"ngIf"],["class","container",4,"ngFor","ngForOf"],["src","https://www.bungie.net/common/destiny2_content/icons/763634b78eb22168ac707500588b7333.jpg","matTooltip","Force to use ANY exotic (that is NOT a class item)",3,"click"],["tooltip","matTooltip"],["src","https://www.bungie.net/common/destiny2_content/icons/b4d05ef69d0c3227a7d4f7f35bbc2848.png","matTooltip","Force to use NO exotic at all",3,"click"],[1,"container"],[3,"src","exoticTooltip","exoticTooltipInVendor","exoticTooltipInCollection","click"],["class","watermarkIcon",3,"src",4,"ngIf"],["class","item-source-overlay",3,"vendor-item","collection-item",4,"ngIf"],[1,"watermarkIcon",3,"src"],[1,"item-source-overlay"],["mat-raised-button","","color","warn",3,"click"]],template:function(e,o){1&e&&(t.YNc(0,Sr,4,4,"div",0),t.TgZ(1,"div"),t.YNc(2,Mr,2,0,"button",1),t.qZA(),t.TgZ(3,"div")(4,"mat-slide-toggle",2),t.NdJ("change",function(s){return o.setAllowCollectionRolls(s.checked)}),t._uU(5," Include "),t.TgZ(6,"u"),t._uU(7,"exotic"),t.qZA(),t._uU(8," collection rolls "),t.qZA()(),t.TgZ(9,"div")(10,"mat-slide-toggle",2),t.NdJ("change",function(s){return o.setAllowVendorItems(s.checked)}),t._uU(11," Include "),t.TgZ(12,"u"),t._uU(13,"legendary and exotic"),t.qZA(),t._uU(14," vendor armor (slower) "),t.qZA()(),t.TgZ(15,"div")(16,"mat-slide-toggle",2),t.NdJ("change",function(s){return o.setAllowBlueArmorPieces(s.checked)}),t._uU(17," Include white, blue and green items "),t.qZA()(),t.TgZ(18,"div")(19,"mat-slide-toggle",2),t.NdJ("change",function(s){return o.setIgnoreSunsetArmor(!s.checked)}),t._uU(20," Include sunset armor "),t.qZA()(),t.TgZ(21,"div")(22,"mat-slide-toggle",3),t.NdJ("change",function(s){return o.setIgnoreExistingExoticArtificeSlots(s.checked)}),t._uU(23," Ignore existing artifice slots on exotics (useful for the exotic class item) "),t.qZA()()),2&e&&(t.Q6J("ngForOf",o.exotics),t.xp6(2),t.Q6J("ngIf",0===o.exotics.length||0===o.exotics[0].length),t.xp6(2),t.Q6J("checked",o.includeCollectionRolls),t.xp6(6),t.Q6J("checked",o.includeVendorRolls),t.xp6(6),t.Q6J("checked",o.allowBlueArmorPieces),t.xp6(3),t.Q6J("checked",!o.ignoreSunsetArmor),t.xp6(3),t.Q6J("checked",o.ignoreExistingExoticArtificeSlots))},dependencies:[I.sg,I.O5,st.lW,ee.Rr,pt.gM,vr],styles:[".container[_ngcontent-%COMP%]{display:inline-block;position:relative;--icon-size: 36px}.exoticIcon[_ngcontent-%COMP%]{width:36px;height:36px;margin-right:3px;border:rgba(0,0,0,0) solid 2px;cursor:pointer}.watermarkIcon[_ngcontent-%COMP%]{width:36px;height:36px;margin-left:-41px;margin-top:2px;position:absolute;pointer-events:none}.exoticIcon[_ngcontent-%COMP%]:hover{border:cornflowerblue solid 2px}.selected[_ngcontent-%COMP%], .selected[_ngcontent-%COMP%]:hover{border:#0059ff solid 2px}[_nghost-%COMP%]{position:relative}.exoticText[_ngcontent-%COMP%]{position:absolute;text-shadow:0 0 6px #000000;background:rgba(33,33,33,.51);color:#f5f5f5;bottom:4px;right:5px}.disabled[_ngcontent-%COMP%]{filter:grayscale(1) contrast(.6)}.disabled[_ngcontent-%COMP%]:hover{cursor:default}.item-source-overlay[_ngcontent-%COMP%]{margin:2px}.item-source-overlay[_ngcontent-%COMP%]{position:absolute;left:0;top:0;width:0;pointer-events:none;border-top:calc(var(--icon-size) / 2) solid transparent;border-right:calc(var(--icon-size) / 2) solid transparent}.item-source-overlay.vendor-item[_ngcontent-%COMP%]{border-top-color:#00f}.item-source-overlay.collection-item[_ngcontent-%COMP%]{border-top-color:#90ee90}"],data:{animation:[Or]}}),n})(),Er=(()=>{class n{constructor(e,o,a){var s=this;this.auth=e,this.membership=o,this.inventory=a,this.characters=[],this.loadCachedData(),this.auth.logoutEvent.subscribe(r=>this.clearCachedData()),this.inventory.inventory.subscribe((0,y.Z)(function*(){yield s.updateCharacterData()}))}clearCachedData(){this.characters=[],localStorage.removeItem("cachedCharacters")}loadCachedData(){let e=localStorage.getItem("cachedCharacters")||"[]";this.characters=JSON.parse(e)}updateCharacterData(){var e=this;return(0,y.Z)(function*(){e.characters=yield e.membership.getCharacters(),localStorage.setItem("cachedCharacters",JSON.stringify(e.characters))})()}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(gt),t.LFG(Ut),t.LFG(Tt))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Ur(n,i){1&n&&(t.TgZ(0,"div",11),t._uU(1," Loading characters.. "),t.qZA())}function Dr(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"Titan"),t.qZA())}function Pr(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"Hunter"),t.qZA())}function Rr(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"Warlock"),t.qZA())}function Nr(n,i){if(1&n&&(t.TgZ(0,"div"),t._UZ(1,"img",14),t.TgZ(2,"span",15),t._uU(3),t.qZA()()),2&n){const e=t.oxw().$implicit,o=t.oxw();t.xp6(3),t.hij("\xd7",o.itemCounts[e.clazz],"")}}function qr(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",12),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.selectClass(s.clazz))}),t.TgZ(1,"div",13),t.YNc(2,Dr,2,0,"span",3),t.YNc(3,Pr,2,0,"span",3),t.YNc(4,Rr,2,0,"span",3),t.qZA(),t.YNc(5,Nr,4,1,"div",3),t.qZA()}if(2&n){const e=i.$implicit,o=i.index,a=t.oxw();t.Udp("background-image","url(https://bungie.net/"+e.emblemUrl+")"),t.ekj("selected",a.selectedClass===e.clazz),t.xp6(2),t.Q6J("ngIf",0===e.clazz),t.xp6(1),t.Q6J("ngIf",1===e.clazz),t.xp6(1),t.Q6J("ngIf",2===e.clazz),t.xp6(1),t.Q6J("ngIf",!!a.itemCounts[o])}}function Fr(n,i){if(1&n&&(t.TgZ(0,"div")(1,"span",16),t._UZ(2,"img",17),t._uU(3),t.ALo(4,"number"),t.qZA(),t.TgZ(5,"span",16),t._UZ(6,"img",18),t._uU(7),t.ALo(8,"number"),t.qZA(),t.TgZ(9,"span",16),t._UZ(10,"img",19),t._uU(11),t.ALo(12,"number"),t.qZA(),t.TgZ(13,"span",16),t._UZ(14,"img",20),t._uU(15),t.ALo(16,"number"),t.qZA(),t.TgZ(17,"span",16),t._UZ(18,"img",21),t._uU(19),t.ALo(20,"number"),t.qZA()()),2&n){const e=t.oxw();t.xp6(1),t.MGl("matTooltip","Exotic Cipher: ",e.storedMaterials[3467984096],""),t.xp6(2),t.hij(" ",t.xi3(4,10,e.storedMaterials[3467984096],"1.0-0")," "),t.xp6(2),t.MGl("matTooltip","Ascendant Shards: ",e.storedMaterials[4257549985],""),t.xp6(2),t.hij(" ",t.xi3(8,13,e.storedMaterials[4257549985],"1.0-0")," "),t.xp6(2),t.MGl("matTooltip","Enhancement Prisms: ",e.storedMaterials[4257549984],""),t.xp6(2),t.hij(" ",t.xi3(12,16,e.storedMaterials[4257549984],"1.0-0")," "),t.xp6(2),t.MGl("matTooltip","Enhancement Cores: ",e.storedMaterials[3853748946],""),t.xp6(2),t.hij(" ",t.xi3(16,19,e.storedMaterials[3853748946],"1.0-0")," "),t.xp6(2),t.MGl("matTooltip","Glimmer: ",e.storedMaterials[3159615086],""),t.xp6(2),t.hij(" ",t.xi3(20,22,e.storedMaterials[3159615086],"1.0-0")," ")}}let Jr=(()=>{class n{constructor(e,o,a){this.config=e,this.userdata=o,this.inv=a,this.itemCounts=[null,null,null],this.selectedClass=-1,this.storedMaterials=null,this.ngUnsubscribe=new R.xQ}ngOnInit(){var e=this;this.config.configuration.pipe((0,Ct.R)(this.ngUnsubscribe)).subscribe(o=>{this.selectedClass=o.characterClass;const a=-1!=this.userdata.characters.findIndex(s=>s.clazz==o.characterClass);this.userdata.characters.length>0&&!a&&this.config.modifyConfiguration(s=>{s.characterClass=this.userdata.characters[0].clazz,s.selectedExotics=[]})}),this.inv.inventory.pipe((0,Ct.R)(this.ngUnsubscribe)).subscribe(function(){var o=(0,y.Z)(function*(a){yield e.loadStoredMaterials(),yield e.updateItemCount()});return function(a){return o.apply(this,arguments)}}())}selectClass(e){this.config.readonlyConfigurationSnapshot.characterClass!=e&&this.config.modifyConfiguration(o=>{o.characterClass=e,o.selectedExotics=[]})}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}updateItemCount(){var e=this;return(0,y.Z)(function*(){for(let o=0;o<3;o++)e.itemCounts[o]=yield e.inv.getItemCountForClass(o)})()}loadStoredMaterials(){var e=this;return(0,y.Z)(function*(){var o=JSON.parse(localStorage.getItem("stored-materials")||"{}");"3853748946"in o||(o[3853748946]=0),"4257549984"in o||(o[4257549984]=0),"4257549985"in o||(o[4257549985]=0),"3159615086"in o||(o[3159615086]=0),"3467984096"in o||(o[3467984096]=0),e.storedMaterials=o})()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(X),t.Y36(Er),t.Y36(Tt))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-desired-class-selection"]],decls:22,vars:3,consts:[[1,"character-container"],["class","character-entry",4,"ngIf"],["class","character-entry","style","float: left",3,"selected","background-image","click",4,"ngFor","ngForOf"],[4,"ngIf"],["color","primary","fxShow","false","fxShow.lt-md","true","mat-flat-button","","routerLink","/help",2,"margin-left","15px"],["inline",""],["color","accent","href","https://ko-fi.com/mijago","matTooltip","You like my work? This leads you to ko-fi.com, where you can easily support me!","target","_blank"],["color","accent","href","http://discord.d2armorpicker.com","target","_blank"],[1,"crayon_logo_container"],["alt","","src","https://cdn.discordapp.com/emojis/917423317139480586.webp?size=96&quality=lossless",1,"crayon_logo"],["href","https://mijago.github.io/Crayon","target","_blank"],[1,"character-entry"],[1,"character-entry",2,"float","left",3,"click"],[1,"class-text"],["matTooltip","Amount of armor pieces for this class.","src","data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 51 51'%3e%3cpath d='M24.77 7.03c-8.15.38-14.42 7.41-14.42 15.57v16.06c0 .23.13.44.34.53l10.33 4.68c.78.35 1.66-.22 1.66-1.07V31.9c0-.39-.19-.75-.52-.97l-5.39-3.64c-.87-.52-1.43-1.5-1.34-2.61.13-1.46 1.46-2.52 2.93-2.52h4.36c.65 0 1.17.53 1.17 1.17v6.71s0 .61 1.61.61 1.61-.61 1.61-.61v-6.71c0-.65.52-1.17 1.17-1.17h4.36c1.47 0 2.8 1.06 2.93 2.52.1 1.11-.47 2.09-1.34 2.61l-5.39 3.64c-.32.22-.52.58-.52.97v10.91c0 .85.88 1.42 1.66 1.07l10.33-4.68c.21-.1.34-.3.34-.53v-16.5c.01-8.61-7.18-15.55-15.88-15.14z'/%3e%3c/svg%3e",1,"head-icon"],["matTooltip","Amount of armor pieces for this class.",1,"armor-text"],[1,"material-listing",3,"matTooltip"],["src","https://www.bungie.net/common/destiny2_content/icons/9970631fe1052642c268132dfc30e16b.jpg","alt","Exotic Cipher"],["src","https://www.bungie.net/common/destiny2_content/icons/0271d214fc3ec91b3def799a4b286b46.jpg","alt","Ascendant Shard"],["src","https://www.bungie.net/common/destiny2_content/icons/dea2a35badf7466d4c2c2697ce6e8d87.jpg","alt","Enhancement Prism"],["src","https://www.bungie.net/common/destiny2_content/icons/0a4eb695ed55b4e720ddc401460cc0f9.jpg","alt","Enhancement Core"],["src","https://www.bungie.net/common/destiny2_content/icons/88993eaeedad32f42072df6f77f47311.png","alt","Glimmer"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t.YNc(1,Ur,2,0,"div",1),t.YNc(2,qr,6,8,"div",2),t.qZA(),t.YNc(3,Fr,21,25,"div",3),t.TgZ(4,"a",4)(5,"mat-icon",5),t._uU(6,"help"),t.qZA(),t._uU(7," Help and Information about D2ArmorPicker\n"),t.qZA(),t.TgZ(8,"div"),t._uU(9," If you like my work, you can "),t.TgZ(10,"a",6),t._uU(11," support me here."),t.qZA(),t._uU(12," You can also "),t.TgZ(13,"a",7),t._uU(14," join my dev Discord! "),t.qZA(),t.TgZ(15,"div"),t._uU(16," Also check out my Discord-Bot "),t.TgZ(17,"div",8),t._UZ(18,"img",9),t.qZA(),t.TgZ(19,"a",10),t._uU(20,"Crayon"),t.qZA(),t._uU(21,", for all your item information needs! "),t.qZA()()),2&e&&(t.xp6(1),t.Q6J("ngIf",0===o.userdata.characters.length),t.xp6(1),t.Q6J("ngForOf",o.userdata.characters),t.xp6(1),t.Q6J("ngIf",null!==o.storedMaterials))},dependencies:[I.sg,I.O5,M.b8,st.zs,pt.gM,St.Hw,ot.yS,I.JJ],styles:[".discord-btn[_ngcontent-%COMP%]{margin-left:15px}.material-listing[_ngcontent-%COMP%]{position:relative;padding-left:22px;padding-right:10px}.material-listing[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:20px;position:absolute;top:-2px;left:0}.crayon_logo_container[_ngcontent-%COMP%]{position:relative;width:22px;display:inline-block;margin-right:3px}.crayon_logo_container[_ngcontent-%COMP%] .crayon_logo[_ngcontent-%COMP%]{position:absolute;width:22px;top:-14px} .mat-option-text{color:#fff}.character-container[_ngcontent-%COMP%]{height:50px}.character-entry[_ngcontent-%COMP%]{color:#fff;background-size:cover;background-position:left center;background-repeat:no-repeat;width:180px;height:36px;position:relative;margin-right:7px;margin-bottom:7px;border:rgba(255,255,255,0) solid 2px;opacity:.75;cursor:pointer}.character-entry[_ngcontent-%COMP%]:hover{border:rgba(255,255,255,.41) solid 2px;opacity:.98}.character-entry.selected[_ngcontent-%COMP%]{cursor:default;opacity:1;border:white solid 2px}.class-text[_ngcontent-%COMP%]{position:absolute;left:35px;top:8px;font-size:x-large;text-shadow:0 0 6px #000000}.head-icon[_ngcontent-%COMP%]{height:25px;top:6px;right:30px;position:absolute;filter:invert(1) drop-shadow(1px 1px 3px rgba(0,0,0,.25))!important}.armor-text[_ngcontent-%COMP%]{position:absolute;right:4px;top:9px;text-shadow:0 0 6px #000000;font-size:small}a[_ngcontent-%COMP%]{color:#99afe3}a[_ngcontent-%COMP%]:visited{color:#7294dc}"]}),n})();var Lr=_(7580);let Yr=(()=>{class n{constructor(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-mod-description-tooltip"]],inputs:{mod:"mod"},decls:9,vars:2,consts:[[1,"tooltip-container"],[1,"exotic-name"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"div",0)(2,"table")(3,"tr")(4,"td",1),t._uU(5),t.qZA()(),t.TgZ(6,"tr")(7,"td"),t._uU(8),t.qZA()()()()()),2&e&&(t.xp6(5),t.Oqu(null==o.mod?null:o.mod.name),t.xp6(3),t.Oqu(null==o.mod?null:o.mod.description))},styles:["[_nghost-%COMP%]{width:350px}.tooltip-container[_ngcontent-%COMP%]{border:1px solid gray;padding:1px 5px 4px;background:linear-gradient(#484848 0px,#2c2c2c 100%)}.exotic-name[_ngcontent-%COMP%]{color:#eedb9e}"]}),n})(),Br=(()=>{class n{constructor(e,o,a){this._overlay=e,this._overlayPositionBuilder=o,this._elementRef=a}ngOnInit(){const e=this._overlayPositionBuilder.flexibleConnectedTo(this._elementRef).withPositions([{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top",offsetY:5},{originX:"center",originY:"top",overlayX:"center",overlayY:"bottom",offsetY:-5}]);this._overlayRef=this._overlay.create({positionStrategy:e}),this._overlayRef.addPanelClass("overlay-no-pointer-event")}show(){this._overlayRef&&!this._overlayRef.hasAttached()&&(this._overlayRef.attach(new re.C5(Yr)).instance.mod=this.mod)}hide(){this.closeToolTip()}ngOnDestroy(){this.closeToolTip()}closeToolTip(){this._overlayRef&&this._overlayRef.detach()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Jt.aV),t.Y36(Jt.wJ),t.Y36(t.SBq))},n.\u0275dir=t.lG2({type:n,selectors:[["","modTooltip",""]],hostBindings:function(e,o){1&e&&t.NdJ("mouseenter",function(){return o.show()})("mouseleave",function(){return o.hide()})},inputs:{mod:["modTooltip","mod"]}}),n})();function Vr(n,i){if(1&n){const e=t.EpF();t.ynx(0),t._UZ(1,"br"),t.TgZ(2,"mat-button-toggle-group",4)(3,"mat-button-toggle",5),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.setElement(a.ModifierType.Arc))}),t._uU(4," Arc "),t.qZA(),t.TgZ(5,"mat-button-toggle",5),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.setElement(a.ModifierType.Solar))}),t._uU(6," Solar "),t.qZA(),t.TgZ(7,"mat-button-toggle",5),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.setElement(a.ModifierType.Void))}),t._uU(8," Void "),t.qZA(),t.TgZ(9,"mat-button-toggle",5),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.setElement(a.ModifierType.Stasis))}),t._uU(10," Stasis "),t.qZA(),t.TgZ(11,"mat-button-toggle",5),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.setElement(a.ModifierType.Strand))}),t._uU(12," Strand "),t.qZA(),t.TgZ(13,"mat-button-toggle",5),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.setElement(a.ModifierType.Prismatic))}),t._uU(14," Prismatic "),t.qZA()(),t.BQk()}if(2&n){const e=t.oxw(2);t.xp6(2),t.Q6J("value",e.selectedElement),t.xp6(1),t.Q6J("value",e.ModifierType.Arc),t.xp6(2),t.Q6J("value",e.ModifierType.Solar),t.xp6(2),t.Q6J("value",e.ModifierType.Void),t.xp6(2),t.Q6J("value",e.ModifierType.Stasis),t.xp6(2),t.Q6J("value",e.ModifierType.Strand),t.xp6(2),t.Q6J("value",e.ModifierType.Prismatic)}}function Qr(n,i){if(1&n&&(t.TgZ(0,"h3",8),t._uU(1),t.qZA()),2&n){const e=t.oxw(2).$implicit;t.xp6(1),t.Oqu(e.name)}}function Hr(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"There are no fragments configured yet. Please be patient."),t.qZA())}function Wr(n,i){1&n&&(t.TgZ(0,"th",22),t._uU(1,"Name"),t.qZA())}function jr(n,i){if(1&n&&(t.TgZ(0,"td",23)(1,"mat-slide-toggle",24),t._UZ(2,"app-item-icon",25),t._uU(3),t.qZA()()),2&n){const e=i.$implicit,o=t.oxw(4);t.Q6J("modTooltip",e),t.xp6(1),t.Q6J("checked",o.selectedMods.indexOf(e.id)>-1),t.xp6(1),t.Q6J("itemHash",e.hash),t.xp6(1),t.hij(" ",e.name," ")}}function Gr(n,i){1&n&&(t.TgZ(0,"th",22),t._UZ(1,"app-stat-icon",26),t.qZA()),2&n&&(t.xp6(1),t.Q6J("stat",0))}function zr(n,i){if(1&n&&(t.TgZ(0,"span",31),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("+",e,"")}}function Kr(n,i){if(1&n&&(t.TgZ(0,"span",32),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.Oqu(e)}}function $r(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,zr,2,1,"span",29),t.YNc(2,Kr,2,1,"span",30),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0),t.xp6(1),t.Q6J("ngIf",e<0)}}function Xr(n,i){if(1&n&&(t.TgZ(0,"td",27),t.YNc(1,$r,3,2,"span",28),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(4);t.xp6(1),t.Q6J("ngVar",o.getModifierTextForValue(e.bonus,0))}}function tl(n,i){1&n&&(t.TgZ(0,"th",22),t._UZ(1,"app-stat-icon",26),t.qZA()),2&n&&(t.xp6(1),t.Q6J("stat",1))}function el(n,i){if(1&n&&(t.TgZ(0,"span",31),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("+",e,"")}}function nl(n,i){if(1&n&&(t.TgZ(0,"span",32),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.Oqu(e)}}function ol(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,el,2,1,"span",29),t.YNc(2,nl,2,1,"span",30),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0),t.xp6(1),t.Q6J("ngIf",e<0)}}function il(n,i){if(1&n&&(t.TgZ(0,"td",27),t.YNc(1,ol,3,2,"span",28),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(4);t.xp6(1),t.Q6J("ngVar",o.getModifierTextForValue(e.bonus,1))}}function al(n,i){1&n&&(t.TgZ(0,"th",22),t._UZ(1,"app-stat-icon",26),t.qZA()),2&n&&(t.xp6(1),t.Q6J("stat",2))}function sl(n,i){if(1&n&&(t.TgZ(0,"span",31),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("+",e,"")}}function rl(n,i){if(1&n&&(t.TgZ(0,"span",32),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.Oqu(e)}}function ll(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,sl,2,1,"span",29),t.YNc(2,rl,2,1,"span",30),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0),t.xp6(1),t.Q6J("ngIf",e<0)}}function cl(n,i){if(1&n&&(t.TgZ(0,"td",27),t.YNc(1,ll,3,2,"span",28),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(4);t.xp6(1),t.Q6J("ngVar",o.getModifierTextForValue(e.bonus,2))}}function ml(n,i){1&n&&(t.TgZ(0,"th",22),t._UZ(1,"app-stat-icon",26),t.qZA()),2&n&&(t.xp6(1),t.Q6J("stat",3))}function dl(n,i){if(1&n&&(t.TgZ(0,"span",31),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("+",e,"")}}function ul(n,i){if(1&n&&(t.TgZ(0,"span",32),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.Oqu(e)}}function pl(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,dl,2,1,"span",29),t.YNc(2,ul,2,1,"span",30),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0),t.xp6(1),t.Q6J("ngIf",e<0)}}function gl(n,i){if(1&n&&(t.TgZ(0,"td",27),t.YNc(1,pl,3,2,"span",28),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(4);t.xp6(1),t.Q6J("ngVar",o.getModifierTextForValue(e.bonus,3))}}function _l(n,i){1&n&&(t.TgZ(0,"th",22),t._UZ(1,"app-stat-icon",26),t.qZA()),2&n&&(t.xp6(1),t.Q6J("stat",4))}function fl(n,i){if(1&n&&(t.TgZ(0,"span",31),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("+",e,"")}}function hl(n,i){if(1&n&&(t.TgZ(0,"span",32),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.Oqu(e)}}function xl(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,fl,2,1,"span",29),t.YNc(2,hl,2,1,"span",30),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0),t.xp6(1),t.Q6J("ngIf",e<0)}}function yl(n,i){if(1&n&&(t.TgZ(0,"td",27),t.YNc(1,xl,3,2,"span",28),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(4);t.xp6(1),t.Q6J("ngVar",o.getModifierTextForValue(e.bonus,4))}}function Cl(n,i){1&n&&(t.TgZ(0,"th",22),t._UZ(1,"app-stat-icon",26),t.qZA()),2&n&&(t.xp6(1),t.Q6J("stat",5))}function Tl(n,i){if(1&n&&(t.TgZ(0,"span",31),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("+",e,"")}}function vl(n,i){if(1&n&&(t.TgZ(0,"span",32),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.Oqu(e)}}function bl(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Tl,2,1,"span",29),t.YNc(2,vl,2,1,"span",30),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0),t.xp6(1),t.Q6J("ngIf",e<0)}}function Al(n,i){if(1&n&&(t.TgZ(0,"td",27),t.YNc(1,bl,3,2,"span",28),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(4);t.xp6(1),t.Q6J("ngVar",o.getModifierTextForValue(e.bonus,5))}}function wl(n,i){1&n&&t._UZ(0,"tr",33)}function Zl(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"tr",34),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw(4);return t.KtG(r.handleRowClick(s))}),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw(4);t.ekj("selected",o.selectedMods.indexOf(e.id)>-1)}}function Il(n,i){if(1&n&&(t.TgZ(0,"table",9),t.ynx(1,10),t.YNc(2,Wr,2,0,"th",11),t.YNc(3,jr,4,4,"td",12),t.BQk(),t.ynx(4,13),t.YNc(5,Gr,2,1,"th",11),t.YNc(6,Xr,2,1,"td",14),t.BQk(),t.ynx(7,15),t.YNc(8,tl,2,1,"th",11),t.YNc(9,il,2,1,"td",14),t.BQk(),t.ynx(10,16),t.YNc(11,al,2,1,"th",11),t.YNc(12,cl,2,1,"td",14),t.BQk(),t.ynx(13,17),t.YNc(14,ml,2,1,"th",11),t.YNc(15,gl,2,1,"td",14),t.BQk(),t.ynx(16,18),t.YNc(17,_l,2,1,"th",11),t.YNc(18,yl,2,1,"td",14),t.BQk(),t.ynx(19,19),t.YNc(20,Cl,2,1,"th",11),t.YNc(21,Al,2,1,"td",14),t.BQk(),t.YNc(22,wl,1,0,"tr",20),t.YNc(23,Zl,1,2,"tr",21),t.qZA()),2&n){const e=t.oxw(2).$implicit,o=t.oxw();t.Q6J("dataSource",e.data),t.xp6(22),t.Q6J("matHeaderRowDef",o.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns)}}function Sl(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Qr,2,1,"h3",6),t.YNc(2,Hr,2,0,"span",3),t.YNc(3,Il,24,3,"table",7),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf",!e.group),t.xp6(1),t.Q6J("ngIf",0===e.data.length),t.xp6(1),t.Q6J("ngIf",e.data.length>0)}}function Ml(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Vr,15,7,"ng-container",3),t.YNc(2,Sl,4,3,"ng-container",3),t.qZA()),2&n){const e=i.$implicit,o=i.index,a=t.oxw();t.xp6(1),t.Q6J("ngIf",0===o),t.xp6(1),t.Q6J("ngIf",!e.group||e.type===a.selectedElement)}}let Ol=(()=>{class n{constructor(e){this.config=e,this.ModifierType=k.O,this.ModOrAbility=Lr.U,this.displayedColumns=["name","mobility","resilience","recovery","discipline","intellect","strength"],this.selectedClass=3,this.selectedMods=[],this.selectedElement=k.O.Solar,this.ngUnsubscribe=new R.xQ;const o=Object.values(N.F).sort((a,s)=>a.name.toLowerCase()s.name.toLowerCase()?1:0);this.data=[{name:"Stasis Fragments",data:o.filter(a=>a.type==k.O.Stasis),group:!0,type:k.O.Stasis},{name:"Void Fragments",data:o.filter(a=>a.type==k.O.Void),group:!0,type:k.O.Void},{name:"Solar Fragments",data:o.filter(a=>a.type==k.O.Solar),group:!0,type:k.O.Solar},{name:"Arc Fragments",data:o.filter(a=>a.type==k.O.Arc),group:!0,type:k.O.Arc},{name:"Strand Fragments",data:o.filter(a=>a.type==k.O.Strand),group:!0,type:k.O.Strand},{name:"Prismatic Fragments",data:o.filter(a=>a.type==k.O.Prismatic),group:!0,type:k.O.Prismatic}],this.dataSource=o}ngOnInit(){this.config.configuration.pipe((0,Ct.R)(this.ngUnsubscribe)).subscribe(e=>{this.selectedMods=e.enabledMods,this.selectedClass=e.characterClass,this.selectedElement=e.selectedModElement})}getModifierTextForValue(e,o){return e.filter(a=>a.stat==o||a.stat==c.AR.ClassAbilityRegenerationStat&&(0==this.selectedClass&&o==c.WB.Resilience||1==this.selectedClass&&o==c.WB.Mobility||2==this.selectedClass&&o==c.WB.Recovery)).reduce((a,s)=>a+s.value,0)}handleRowClick(e){this.config.modifyConfiguration(o=>{const a=o.enabledMods.indexOf(e.id);a>-1?o.enabledMods.splice(a,1):o.enabledMods.push(e.id)})}clear(){this.config.modifyConfiguration(e=>{e.enabledMods=[]})}setElement(e){this.selectedElement!=e&&this.config.modifyConfiguration(o=>{const a=o.enabledMods.filter(s=>N.F[s].type!=k.O.CombatStyleMod&&N.F[s].type!=e);o.selectedModElement=e;for(let s of a){const r=o.enabledMods.indexOf(s);o.enabledMods.splice(r,1)}})}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(X))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-desired-mods-selection"]],features:[t._Bn([{provide:ee.HT,useValue:{disableToggleValue:!1,disableDragValue:!0}}])],decls:4,vars:1,consts:[[4,"ngFor","ngForOf"],["id","clear-container"],["color","warn","mat-stroked-button","",3,"click"],[4,"ngIf"],[3,"value"],[3,"value","click"],["class","stat-part-title",4,"ngIf"],["mat-table","",3,"dataSource",4,"ngIf"],[1,"stat-part-title"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",3,"modTooltip",4,"matCellDef"],["matColumnDef","mobility"],["mat-cell","",4,"matCellDef"],["matColumnDef","resilience"],["matColumnDef","recovery"],["matColumnDef","discipline"],["matColumnDef","intellect"],["matColumnDef","strength"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"selected","click",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",3,"modTooltip"],["color","primary","disabled","",2,"cursor","pointer !important",3,"checked"],[3,"itemHash"],[3,"stat"],["mat-cell",""],[4,"ngVar"],["class","stat-positive",4,"ngIf"],["class","stat-negative",4,"ngIf"],[1,"stat-positive"],[1,"stat-negative"],["mat-header-row",""],["mat-row","",3,"click"]],template:function(e,o){1&e&&(t.YNc(0,Ml,3,2,"span",0),t.TgZ(1,"div",1)(2,"button",2),t.NdJ("click",function(){return o.clear()}),t._uU(3,"Clear the whole selection"),t.qZA()()),2&e&&t.Q6J("ngForOf",o.data)},dependencies:[I.sg,I.O5,st.lW,ee.Rr,G.BZ,G.fO,G.as,G.w1,G.Dz,G.nj,G.ge,G.ev,G.XQ,G.Gk,Dt.A9,Dt.Yi,fe,zt,ge,Br],styles:[".mat-slide-toggle.mat-disabled[_ngcontent-%COMP%]{opacity:1}.stat-part-title[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:5px}.modTable[_ngcontent-%COMP%]{width:100%}.mat-header-row[_ngcontent-%COMP%], .mat-row[_ngcontent-%COMP%]{height:30px}.mat-column-mobility[_ngcontent-%COMP%], .mat-column-resilience[_ngcontent-%COMP%], .mat-column-recovery[_ngcontent-%COMP%], .mat-column-discipline[_ngcontent-%COMP%], .mat-column-intellect[_ngcontent-%COMP%], .mat-column-strength[_ngcontent-%COMP%], .mat-column-cost[_ngcontent-%COMP%]{min-width:40px;text-align:center}.mat-row[_ngcontent-%COMP%]:hover{background-color:#494949}.mat-column-mobility[_ngcontent-%COMP%], .mat-column-recovery[_ngcontent-%COMP%], .mat-column-intellect[_ngcontent-%COMP%]{background-color:#464646}.mat-column-name[_ngcontent-%COMP%]{padding-right:4px;border-right:1px solid currentColor;min-width:150px}.mat-column-name[_ngcontent-%COMP%] app-item-icon[_ngcontent-%COMP%]{float:left;margin-right:5px}.mat-row[_ngcontent-%COMP%]{cursor:pointer}th.mat-header-cell[_ngcontent-%COMP%]:last-of-type, td.mat-cell[_ngcontent-%COMP%]:last-of-type, td.mat-footer-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0}.mat-cell[_ngcontent-%COMP%]:last-of-type, .mat-header-cell[_ngcontent-%COMP%]:last-of-type, .mat-footer-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0}.stat-negative[_ngcontent-%COMP%], .stat-positive[_ngcontent-%COMP%]{margin-right:3px}.stat-negative[_ngcontent-%COMP%]{color:#f08080}.stat-positive[_ngcontent-%COMP%]{color:#b6cbfc}.stat-display[_ngcontent-%COMP%]{width:60px;float:left;align-content:end;text-align:right}.mat-row[_ngcontent-%COMP%]:hover, .mat-row[_ngcontent-%COMP%]:hover .mat-cell[_ngcontent-%COMP%]{background-color:#494949}.mat-row.selected[_ngcontent-%COMP%]:hover, .mat-row.selected[_ngcontent-%COMP%]:hover .mat-cell[_ngcontent-%COMP%]{background-color:#89b2ff30}.selected[_ngcontent-%COMP%], .selected[_ngcontent-%COMP%] .mat-column-mobility[_ngcontent-%COMP%], .selected[_ngcontent-%COMP%] .mat-column-recovery[_ngcontent-%COMP%], .selected[_ngcontent-%COMP%] .mat-column-intellect[_ngcontent-%COMP%]{background-color:#89b2ff1c}.mat-column-name[_ngcontent-%COMP%]{min-width:190px}.element-icon[_ngcontent-%COMP%]{width:22px}#clear-container[_ngcontent-%COMP%]{padding-top:10px}#retrofit-table[_ngcontent-%COMP%] .rft-icon-container[_ngcontent-%COMP%]{width:22px;display:inline-block}#retrofit-table[_ngcontent-%COMP%] .rft-icon-container[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{position:relative}#retrofit-table[_ngcontent-%COMP%] .rft-icon-container[_ngcontent-%COMP%] app-stat-icon[_ngcontent-%COMP%]{position:absolute;top:-22px;left:-10px}"]}),n})();function kl(n,i){if(1&n&&(t.TgZ(0,"mat-icon",8,9),t._uU(2," help "),t.qZA()),2&n){const e=t.oxw().$implicit;t.s9C("matTooltip",e.help)}}function El(n,i){1&n&&(t.TgZ(0,"mat-icon",10,9),t._uU(2," report_problem "),t.qZA())}function Ul(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",4)(1,"mat-slide-toggle",5),t.NdJ("change",function(a){const r=t.CHM(e).$implicit;return t.KtG(r.cp(a.checked))}),t._uU(2),t.qZA(),t.YNc(3,kl,3,1,"mat-icon",6),t.YNc(4,El,3,0,"mat-icon",7),t.qZA()}if(2&n){const e=i.$implicit;t.xp6(1),t.Q6J("disabled",e.disabled)("checked",e.value),t.xp6(1),t.hij(" ",e.name," "),t.xp6(1),t.Q6J("ngIf",e.help),t.xp6(1),t.Q6J("ngIf",e.impactsResultCount)}}function Dl(n,i){if(1&n&&(t.TgZ(0,"div")(1,"span",1),t._uU(2),t.qZA(),t.YNc(3,Ul,5,5,"div",2),t._UZ(4,"div",3),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.xp6(2),t.Oqu(e),t.xp6(1),t.Q6J("ngForOf",o.fields2[e])}}let Pl=(()=>{class n{constructor(e){this.config=e,this.fields2={},this.fieldKeys=[],this.ngUnsubscribe=new R.xQ}ngOnInit(){this.config.configuration.pipe((0,Ct.R)(this.ngUnsubscribe)).subscribe(e=>{this.fields2={Events:[{name:"Enforce the usage of a Festival of the Lost Mask.",cp:o=>this.config.modifyConfiguration(a=>a.useFotlArmor=o),value:e.useFotlArmor,disabled:!1,impactsResultCount:!0,help:"Only use a FotL masks. You will not get results if you do not own the mask."}],Masterwork:[{name:"Assume all legendary items are masterworked",cp:o=>this.config.modifyConfiguration(a=>a.assumeLegendariesMasterworked=o),value:e.assumeLegendariesMasterworked,disabled:!1,impactsResultCount:!1,help:void 0},{name:"Assume all legendary class items are masterworked",cp:o=>this.config.modifyConfiguration(a=>a.assumeClassItemMasterworked=o),value:e.assumeClassItemMasterworked,disabled:!1,impactsResultCount:!1,help:"If this setting is enabled, a plain +2 is added to every stat. This means that your Class Item must be masterworked. Ignored if you select an exotic class item."},{name:"Assume all exotic items are masterworked",cp:o=>this.config.modifyConfiguration(a=>a.assumeExoticsMasterworked=o),value:e.assumeExoticsMasterworked,disabled:!1,impactsResultCount:!1,help:"If this setting is enabled, the tool will treat non-masterworked exotic armor as if it were masterworked-."},{name:"Only use already masterworked exotic items",cp:o=>this.config.modifyConfiguration(a=>a.onlyUseMasterworkedExotics=o),value:e.onlyUseMasterworkedExotics,disabled:!1,impactsResultCount:!0,help:void 0},{name:"Only use already masterworked legendary items",cp:o=>this.config.modifyConfiguration(a=>a.onlyUseMasterworkedLegendaries=o),value:e.onlyUseMasterworkedLegendaries,disabled:!1,impactsResultCount:!0,help:void 0}],"Artifice Slots":[{name:"Assume every legendary class item is an artifice armor.",cp:o=>this.config.modifyConfiguration(a=>a.assumeClassItemIsArtifice=o),value:e.assumeClassItemIsArtifice||e.assumeEveryLegendaryIsArtifice,disabled:e.assumeEveryLegendaryIsArtifice,impactsResultCount:!0,help:"This is for debugging purposes. No support if you enable this."},{name:"Assume every legendary is an artifice armor.",cp:o=>this.config.modifyConfiguration(a=>a.assumeEveryLegendaryIsArtifice=o),value:e.assumeEveryLegendaryIsArtifice,disabled:!1,impactsResultCount:!0,help:"This is for debugging purposes. No support if you enable this."},{name:"Assume every exotic has an artifice slot.",cp:o=>this.config.modifyConfiguration(a=>a.assumeEveryExoticIsArtifice=o),value:e.assumeEveryExoticIsArtifice,disabled:!1,impactsResultCount:!0,help:"Preparation for the upcoming Artifice Mod Slot for exotics."}],"Performance Optimization":[{name:"Use security features to prevent app crashes (resets on reload).",cp:o=>this.config.modifyConfiguration(a=>a.limitParsedResults=o),value:e.limitParsedResults,disabled:!1,impactsResultCount:!0,help:"Only parse the first 30,000 results. Deactivating this may crash your browser. The results will still be limited to 1,000,000 entries. Note that you will not miss any significant results by leaving this enabled."}],"Extra Columns":[{name:"Show maximum reachable tiers in the Tiers-Column instead of real Tiers.",cp:o=>this.config.modifyConfiguration(a=>a.showPotentialTierColumn=o),value:e.showPotentialTierColumn,disabled:!1,impactsResultCount:!1,help:"Shows an additional column in the table that shows how many tiers this build would have, if all stat mods were used. This is important when builds do not use all 5 stat mods."},{name:"Show the wasted stats in an extra column.",cp:o=>this.config.modifyConfiguration(a=>a.showWastedStatsColumn=o),value:e.showWastedStatsColumn,disabled:!1,impactsResultCount:!1,help:"Shows an additional column in the table that shows how many stats are wasted in a build."}],"Wasted Stats":[{name:"Try to optimize wasted stats (slower)",cp:o=>this.config.modifyConfiguration(a=>a.tryLimitWastedStats=o),value:e.tryLimitWastedStats,disabled:!1,impactsResultCount:!1,help:"The tool will try to add minor stat mods to minimize wasted stats. This only works for combinations that fulfill your desired stat combination with enough mods so at least one mod slot is still open."},{name:"Only show builds with no wasted stats",cp:o=>this.config.modifyConfiguration(a=>a.onlyShowResultsWithNoWastedStats=o),value:g.N.featureFlags.enableZeroWaste&&e.onlyShowResultsWithNoWastedStats,disabled:!g.N.featureFlags.enableZeroWaste,impactsResultCount:!0,help:"Only show builds with zero wasted stats - this means, its highly likely that you won't get any results."}],"Data-Science":[{name:"Add a constant +1 resilience to the results with non-exotic chests (resets on reload).",cp:o=>this.config.modifyConfiguration(a=>a.addConstent1Resilience=o),value:e.addConstent1Resilience,disabled:!1,impactsResultCount:!1,help:"You usually do not want to use this."},{name:"Replace the tier selection with text fields for exact stat values.",cp:o=>this.config.modifyConfiguration(a=>{if(a.allowExactStats=o,!o)for(let s of Object.values(a.minimumStatTiers))s.value=Math.floor(s.value)}),value:e.allowExactStats,disabled:!1,impactsResultCount:!0,help:"This is a beta feature. Usability and quality may vary a lot."}]},this.fieldKeys=Object.keys(this.fields2)})}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(X))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-advanced-settings"]],decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[1,"category-header"],["class","adv-settings",4,"ngFor","ngForOf"],[1,"category-spacer"],[1,"adv-settings"],["color","primary",3,"disabled","checked","change"],["inline","","aria-hidden","false","aria-label","Help",3,"matTooltip",4,"ngIf"],["inline","","aria-hidden","false","aria-label","Help","class","report-problem-icon","matTooltip","This setting might impact the amount of results. It may happen that you won't get any results if you change this setting. In this case, simply switch it back to its default state.",4,"ngIf"],["inline","","aria-hidden","false","aria-label","Help",3,"matTooltip"],["tooltip","matTooltip"],["inline","","aria-hidden","false","aria-label","Help","matTooltip","This setting might impact the amount of results. It may happen that you won't get any results if you change this setting. In this case, simply switch it back to its default state.",1,"report-problem-icon"]],template:function(e,o){1&e&&t.YNc(0,Dl,5,2,"div",0),2&e&&t.Q6J("ngForOf",o.fieldKeys)},dependencies:[I.sg,I.O5,ee.Rr,pt.gM,St.Hw],styles:[".category-spacer[_ngcontent-%COMP%]{height:3px}.category-header[_ngcontent-%COMP%]{font-style:italic}.adv-settings[_ngcontent-%COMP%]{margin-left:20px}.report-problem-icon[_ngcontent-%COMP%]{color:#f08080}"]}),n})(),le=(()=>{class n{constructor(e,o){this.dialogRef=e,this.data=o}onNoClick(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(kt.so),t.Y36(kt.WI))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-confirm-dialog"]],decls:10,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1,"Confirm"),t.qZA(),t.TgZ(2,"div",1)(3,"p"),t._uU(4),t.qZA()(),t.TgZ(5,"div",2)(6,"button",3),t.NdJ("click",function(){return o.onNoClick()}),t._uU(7,"No Thanks"),t.qZA(),t.TgZ(8,"button",4),t._uU(9,"Ok"),t.qZA()()),2&e&&(t.xp6(4),t.Oqu(o.data.description),t.xp6(4),t.Q6J("mat-dialog-close",!0))},dependencies:[st.lW,kt.ZT,kt.uh,kt.xY,kt.H8]}),n})();var Rl=_(4385);function Nl(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"Titan"),t.qZA())}function ql(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"Hunter"),t.qZA())}function Fl(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"Warlock"),t.qZA())}function Jl(n,i){if(1&n&&(t.TgZ(0,"mat-option",30)(1,"span"),t._uU(2,"("),t.YNc(3,Nl,2,0,"span",26),t.YNc(4,ql,2,0,"span",26),t.YNc(5,Fl,2,0,"span",26),t._uU(6,") "),t.qZA(),t.TgZ(7,"span"),t._uU(8),t.qZA()()),2&n){const e=i.$implicit;t.Q6J("value",e.name),t.xp6(3),t.Q6J("ngIf",0===e.configuration.characterClass),t.xp6(1),t.Q6J("ngIf",1===e.configuration.characterClass),t.xp6(1),t.Q6J("ngIf",2===e.configuration.characterClass),t.xp6(3),t.hij(" ",e.name,"")}}function Ll(n,i){1&n&&(t.TgZ(0,"th",31),t._uU(1,"Name"),t.qZA())}function Yl(n,i){if(1&n&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij("",e.name," ")}}function Bl(n,i){1&n&&(t.TgZ(0,"th",31),t._uU(1," Class "),t.qZA())}function Vl(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"Titan"),t.qZA())}function Ql(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"Hunter"),t.qZA())}function Hl(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"Warlock"),t.qZA())}function Wl(n,i){if(1&n&&(t.TgZ(0,"td",32),t.YNc(1,Vl,2,0,"span",26),t.YNc(2,Ql,2,0,"span",26),t.YNc(3,Hl,2,0,"span",26),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngIf",0===e.configuration.characterClass),t.xp6(1),t.Q6J("ngIf",1===e.configuration.characterClass),t.xp6(1),t.Q6J("ngIf",2===e.configuration.characterClass)}}function jl(n,i){1&n&&(t.TgZ(0,"th",31),t._UZ(1,"app-stat-icon",33),t.qZA()),2&n&&(t.xp6(1),t.Q6J("stat",0))}function Gl(n,i){if(1&n&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",10*e.configuration.minimumStatTiers[0].value," ")}}function zl(n,i){1&n&&(t.TgZ(0,"th",31),t._UZ(1,"app-stat-icon",33),t.qZA()),2&n&&(t.xp6(1),t.Q6J("stat",1))}function Kl(n,i){if(1&n&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",10*e.configuration.minimumStatTiers[1].value," ")}}function $l(n,i){1&n&&(t.TgZ(0,"th",31),t._UZ(1,"app-stat-icon",33),t.qZA()),2&n&&(t.xp6(1),t.Q6J("stat",2))}function Xl(n,i){if(1&n&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",10*e.configuration.minimumStatTiers[2].value," ")}}function tc(n,i){1&n&&(t.TgZ(0,"th",31),t._UZ(1,"app-stat-icon",33),t.qZA()),2&n&&(t.xp6(1),t.Q6J("stat",3))}function ec(n,i){if(1&n&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",10*e.configuration.minimumStatTiers[3].value," ")}}function nc(n,i){1&n&&(t.TgZ(0,"th",31),t._UZ(1,"app-stat-icon",33),t.qZA()),2&n&&(t.xp6(1),t.Q6J("stat",4))}function oc(n,i){if(1&n&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",10*e.configuration.minimumStatTiers[4].value," ")}}function ic(n,i){1&n&&(t.TgZ(0,"th",31),t._UZ(1,"app-stat-icon",33),t.qZA()),2&n&&(t.xp6(1),t.Q6J("stat",5))}function ac(n,i){if(1&n&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",10*e.configuration.minimumStatTiers[5].value," ")}}function sc(n,i){1&n&&t._UZ(0,"th",31)}function rc(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",32)(1,"button",34),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.delete(s.name))}),t.TgZ(2,"mat-icon"),t._uU(3,"delete_forever"),t.qZA()(),t.TgZ(4,"button",35),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.load(s.name))}),t.TgZ(5,"mat-icon"),t._uU(6,"check_circle_outline"),t.qZA()(),t.TgZ(7,"button",36),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.copySingleSettingToClipboard(s))}),t.TgZ(8,"mat-icon"),t._uU(9,"get_app"),t.qZA()()()}}function lc(n,i){1&n&&t._UZ(0,"tr",37)}function cc(n,i){1&n&&t._UZ(0,"tr",38)}function mc(n,i){if(1&n){const e=t.EpF();t.ynx(0),t._UZ(1,"br"),t.TgZ(2,"button",39),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.copyAllSettingsToClipboard())}),t._uU(3," Copy all saved configurations to the clipboard "),t.qZA(),t.BQk()}}let dc=(()=>{class n{constructor(e,o,a,s,r){this.config=e,this.formBuilder=o,this.dialog=a,this._snackBar=s,this.clipboard=r,this.selectedEntry="",this.storedConfigs=[],this.displayedColumns=["name","class","mobility","resilience","recovery","discipline","intellect","strength","delete"],this.ngUnsubscribe=new R.xQ,this.settingsNameForm=this.formBuilder.group({name:[null]}),this.importTextForm=this.formBuilder.group({content:[null]})}ngOnInit(){this.config.storedConfigurations.pipe((0,Ct.R)(this.ngUnsubscribe)).subscribe(e=>this.storedConfigs=e)}submit(){const e=this.settingsNameForm.get("name")?.value;!e||(this.config.doesSavedConfigurationExist(e)?this.dialog.open(le,{width:"300px",data:{description:"Do you want to overwrite this configuration?"}}).afterClosed().subscribe(a=>{a&&(this.config.saveCurrentConfigurationToName(e),this.settingsNameForm.reset(),this.selectedEntry=e)}):(this.config.saveCurrentConfigurationToName(e),this.settingsNameForm.reset(),this.selectedEntry=e))}delete(e){this.dialog.open(le,{width:"300px",data:{description:"Do you want to delete this configuration?"}}).afterClosed().subscribe(a=>{a&&this.config.deleteStoredConfiguration(e)})}clearEverything(){this.dialog.open(le,{width:"300px",data:{description:"Do you want to clear all settings?"}}).afterClosed().subscribe(o=>{o&&this.config.resetCurrentConfiguration()})}load(e){this.dialog.open(le,{width:"300px",data:{description:"Do you want to load this preset?"}}).afterClosed().subscribe(a=>{a&&this.config.loadSavedConfiguration(e)})}runImport(){const e=this.importTextForm.get("content")?.value;if(!e)return this.openSnackBar("Invalid input.");try{const o=P.decompress(e,{inputEncoding:"Base64"}),a="["==o.substr(0,1);let s=JSON.parse(o);a||(s=[s]),console.log("Incoming json:",s);for(let r of s)this.config.checkAndFixOldSavedConfigurations(r),r.hasOwnProperty("name")?a?this.config.saveConfiguration(r.name,r.configuration):this.config.saveCurrentConfiguration(r.configuration):this.config.saveCurrentConfiguration(r);this.openSnackBar("Successfully loaded this configuration"),this.importTextForm.get("content")?.reset()}catch(o){this.openSnackBar("Invalid input."),console.error(o)}}copySingleSettingToClipboard(e){this.clipboard.copy(this.config.getStoredConfigurationBase64Compressed(e.name)),this.openSnackBar("Copied the configuration to your clipboard. You can share it with your friends.")}copyAllSettingsToClipboard(){this.clipboard.copy(this.config.getAllStoredConfigurationsBase64Compressed()),this.openSnackBar("Exported all configurations to the clipboard. You can then save and share them.")}openSnackBar(e){this._snackBar.open(e,"",{duration:2500,politeness:"polite"})}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(X),t.Y36(At.QS),t.Y36(kt.uw),t.Y36(ue.ux),t.Y36(te.TU))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-load-and-save-settings"]],decls:78,vars:13,consts:[[3,"formGroup","submit"],["id","settings"],["appearance","outline"],["formControlName","name","matInput","","maxlength","30","minlength","4","placeholder","Awesome Discipline Build 4"],["color","primary","mat-raised-button","","type","submit",3,"disabled"],["color","warn","mat-raised-button","","matTooltip","Clears the ENTIRE configuration and uses the default settings. Use with caution.",3,"click"],["color","primary","mat-raised-button","","matTooltip","Copy your current configuration into your clipboard. You will be able to share it with others and import it later.",3,"cdkCopyToClipboard","click"],[2,"display","none"],[3,"value","disabled","valueChange"],[3,"value",4,"ngFor","ngForOf"],["color","primary","mat-raised-button","","matTooltip","Load the currently selected configuration.",3,"disabled","click"],["color","warn","mat-stroked-button","","matTooltip","Delete the currently selected configuration. Can not be undone.",3,"disabled","click"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","class"],["matColumnDef","mobility"],["matColumnDef","resilience"],["matColumnDef","recovery"],["matColumnDef","discipline"],["matColumnDef","intellect"],["matColumnDef","strength"],["matColumnDef","delete"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[4,"ngIf"],[3,"formGroup"],["formControlName","content","matInput",""],["color","primary","mat-raised-button","","matTooltip","Import the given configuration",3,"click"],[3,"value"],["mat-header-cell",""],["mat-cell",""],[3,"stat"],["color","warn","mat-icon-button","","matTooltip","Delete this configuration permanently.",3,"click"],["color","primary","mat-icon-button","","matTooltip","Load this configuration. Your current settings will be overwritten.",3,"click"],["color","primary","mat-icon-button","","matTooltip","Copy this configuration into your clipboard. You will be able to share it with others and import it later.",3,"click"],["mat-header-row",""],["mat-row",""],["color","primary","mat-raised-button","","matTooltip","Export all configurations to the clipboard. You can then save and share them.",3,"click"]],template:function(e,o){if(1&e&&(t.TgZ(0,"form",0),t.NdJ("submit",function(){return o.submit()}),t.TgZ(1,"table",1)(2,"tr")(3,"td")(4,"mat-form-field",2)(5,"mat-label"),t._uU(6,"Name to save the configuration"),t.qZA(),t._UZ(7,"input",3),t.qZA()(),t.TgZ(8,"td")(9,"button",4),t._uU(10," Save current "),t.qZA()(),t.TgZ(11,"td")(12,"button",5),t.NdJ("click",function(){return o.clearEverything()}),t._uU(13,"Clear everything "),t.qZA()(),t.TgZ(14,"td")(15,"button",6),t.NdJ("click",function(){return o.openSnackBar("Copied the configuration to your clipboard. You can share it with your friends.")}),t._uU(16," Copy Current "),t.qZA()()(),t.TgZ(17,"tr",7)(18,"td")(19,"mat-form-field",2)(20,"mat-label"),t._uU(21,"Load saved configuration"),t.qZA(),t.TgZ(22,"mat-select",8),t.NdJ("valueChange",function(s){return o.selectedEntry=s}),t.YNc(23,Jl,9,5,"mat-option",9),t.qZA()()(),t.TgZ(24,"td")(25,"button",10),t.NdJ("click",function(){return o.load(o.selectedEntry)}),t._uU(26,"Load "),t.qZA()(),t.TgZ(27,"td")(28,"button",11),t.NdJ("click",function(){return o.delete(o.selectedEntry)}),t._uU(29,"Delete "),t.qZA()()()()(),t._UZ(30,"br"),t.TgZ(31,"table",12),t.ynx(32,13),t.YNc(33,Ll,2,0,"th",14),t.YNc(34,Yl,2,1,"td",15),t.BQk(),t.ynx(35,16),t.YNc(36,Bl,2,0,"th",14),t.YNc(37,Wl,4,3,"td",15),t.BQk(),t.ynx(38,17),t.YNc(39,jl,2,1,"th",14),t.YNc(40,Gl,2,1,"td",15),t.BQk(),t.ynx(41,18),t.YNc(42,zl,2,1,"th",14),t.YNc(43,Kl,2,1,"td",15),t.BQk(),t.ynx(44,19),t.YNc(45,$l,2,1,"th",14),t.YNc(46,Xl,2,1,"td",15),t.BQk(),t.ynx(47,20),t.YNc(48,tc,2,1,"th",14),t.YNc(49,ec,2,1,"td",15),t.BQk(),t.ynx(50,21),t.YNc(51,nc,2,1,"th",14),t.YNc(52,oc,2,1,"td",15),t.BQk(),t.ynx(53,22),t.YNc(54,ic,2,1,"th",14),t.YNc(55,ac,2,1,"td",15),t.BQk(),t.ynx(56,23),t.YNc(57,sc,1,0,"th",14),t.YNc(58,rc,10,0,"td",15),t.BQk(),t.YNc(59,lc,1,0,"tr",24),t.YNc(60,cc,1,0,"tr",25),t.qZA(),t.YNc(61,mc,4,0,"ng-container",26),t._UZ(62,"br"),t.TgZ(63,"div"),t._UZ(64,"hr"),t.TgZ(65,"h2"),t._uU(66,"Import a previously exported configuration"),t.qZA(),t.TgZ(67,"form",27)(68,"table")(69,"tr")(70,"td")(71,"mat-form-field",2)(72,"mat-label"),t._uU(73,"Copied configuration"),t.qZA(),t._UZ(74,"input",28),t.qZA()(),t.TgZ(75,"td")(76,"button",29),t.NdJ("click",function(){return o.runImport()}),t._uU(77," Start the import "),t.qZA()()()()()()),2&e){let a;t.Q6J("formGroup",o.settingsNameForm),t.xp6(9),t.Q6J("disabled",!(null!=(a=o.settingsNameForm.get("name"))&&a.value)||(null==(a=o.settingsNameForm.get("name"))?null:a.value.length)<4||(null==(a=o.settingsNameForm.get("name"))?null:a.value.length)>30),t.xp6(6),t.Q6J("cdkCopyToClipboard",o.config.getCurrentConfigBase64Compressed()),t.xp6(7),t.Q6J("value",o.selectedEntry)("disabled",0===o.storedConfigs.length),t.xp6(1),t.Q6J("ngForOf",o.storedConfigs),t.xp6(2),t.Q6J("disabled",!o.selectedEntry||0===o.storedConfigs.length),t.xp6(3),t.Q6J("disabled",!o.selectedEntry||0===o.storedConfigs.length),t.xp6(3),t.Q6J("dataSource",o.storedConfigs),t.xp6(28),t.Q6J("matHeaderRowDef",o.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("ngIf",o.storedConfigs.length>0),t.xp6(6),t.Q6J("formGroup",o.importTextForm)}},dependencies:[I.sg,I.O5,At._Y,At.Fj,At.JJ,At.JL,At.wO,At.nD,At.sg,At.u,st.lW,Pt.KE,Pt.hX,Rl.gD,we.ey,ne.Nt,G.BZ,G.fO,G.as,G.w1,G.Dz,G.nj,G.ge,G.ev,G.XQ,G.Gk,pt.gM,St.Hw,te.i3,fe],styles:[".modTable[_ngcontent-%COMP%]{width:100%}.mat-header-row[_ngcontent-%COMP%], .mat-row[_ngcontent-%COMP%]{height:30px}.mat-column-class[_ngcontent-%COMP%]{min-width:55px;padding-right:2px;padding-left:2px;text-align:center;border-right:1px solid currentColor}.mat-column-mobility[_ngcontent-%COMP%], .mat-column-resilience[_ngcontent-%COMP%], .mat-column-recovery[_ngcontent-%COMP%], .mat-column-discipline[_ngcontent-%COMP%], .mat-column-intellect[_ngcontent-%COMP%], .mat-column-strength[_ngcontent-%COMP%]{min-width:40px;text-align:center}.mat-row[_ngcontent-%COMP%]:hover{background-color:#494949}.mat-column-mobility[_ngcontent-%COMP%], .mat-column-recovery[_ngcontent-%COMP%], .mat-column-intellect[_ngcontent-%COMP%]{background-color:#464646}.mat-column-name[_ngcontent-%COMP%]{padding-right:4px;border-right:1px solid currentColor;min-width:150px}th.mat-header-cell[_ngcontent-%COMP%]:last-of-type, td.mat-cell[_ngcontent-%COMP%]:last-of-type, td.mat-footer-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0}.mat-cell[_ngcontent-%COMP%]:last-of-type, .mat-header-cell[_ngcontent-%COMP%]:last-of-type, .mat-footer-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0}.stat-negative[_ngcontent-%COMP%], .stat-positive[_ngcontent-%COMP%]{margin-right:3px}.stat-negative[_ngcontent-%COMP%]{color:#f08080}.stat-positive[_ngcontent-%COMP%]{color:#6495ed}.stat-display[_ngcontent-%COMP%]{width:60px;float:left;align-content:end;text-align:right}.mat-row[_ngcontent-%COMP%]:hover, .mat-row[_ngcontent-%COMP%]:hover .mat-cell[_ngcontent-%COMP%]{background-color:#494949}.mat-row.selected[_ngcontent-%COMP%]:hover, .mat-row.selected[_ngcontent-%COMP%]:hover .mat-cell[_ngcontent-%COMP%]{background-color:#89b2ff30}.selected[_ngcontent-%COMP%], .selected[_ngcontent-%COMP%] .mat-column-mobility[_ngcontent-%COMP%], .selected[_ngcontent-%COMP%] .mat-column-recovery[_ngcontent-%COMP%], .selected[_ngcontent-%COMP%] .mat-column-intellect[_ngcontent-%COMP%]{background-color:#89b2ff1c}.mat-column-load[_ngcontent-%COMP%], .mat-column-delete[_ngcontent-%COMP%]{padding-left:3px;padding-right:3px}[_nghost-%COMP%] .mat-form-field-wrapper{margin:0!important;padding:0}"]}),n})();function uc(n,i){1&n&&(t.TgZ(0,"div"),t._uU(1,"Helmets"),t.qZA())}function pc(n,i){1&n&&(t.TgZ(0,"div"),t._uU(1,"Gauntlets"),t.qZA())}function gc(n,i){1&n&&(t.TgZ(0,"div"),t._uU(1,"Chest Pieces"),t.qZA())}function _c(n,i){1&n&&(t.TgZ(0,"div"),t._uU(1,"Legs"),t.qZA())}function fc(n,i){1&n&&(t.TgZ(0,"div"),t._uU(1,"Class Items"),t.qZA())}function hc(n,i){1&n&&t._UZ(0,"br")}function xc(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"span",5)(1,"img",6),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw(3);return t.KtG(r.enableItem(s.itemInstanceId))}),t.qZA(),t.YNc(2,hc,1,0,"br",3),t.qZA()}if(2&n){const e=i.$implicit,o=i.index,a=t.oxw(3);t.xp6(1),t.MGl("src","https://bungie.net/",e.icon,"",t.LSH),t.Q6J("matTooltip",a.generateTooltip(e)),t.xp6(1),t.Q6J("ngIf",(o+1)%10==0)}}function yc(n,i){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,uc,2,0,"div",3),t.YNc(2,pc,2,0,"div",3),t.YNc(3,gc,2,0,"div",3),t.YNc(4,_c,2,0,"div",3),t.YNc(5,fc,2,0,"div",3),t.YNc(6,xc,3,3,"span",4),t.qZA()),2&n){const e=i.$implicit,o=i.index;t.xp6(1),t.Q6J("ngIf",1===o&&e.length>0),t.xp6(1),t.Q6J("ngIf",2===o&&e.length>0),t.xp6(1),t.Q6J("ngIf",3===o&&e.length>0),t.xp6(1),t.Q6J("ngIf",4===o&&e.length>0),t.xp6(1),t.Q6J("ngIf",5===o&&e.length>0),t.xp6(1),t.Q6J("ngForOf",e)}}function Cc(n,i){if(1&n&&(t.TgZ(0,"div",1),t.YNc(1,yc,7,6,"div",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.disabledItems)}}let Tc=(()=>{class n{constructor(e,o){this.config=e,this.db=o,this.disabledItems=[],this.characterClass=null,this.ngUnsubscribe=new R.xQ}enableItem(e){this.config.modifyConfiguration(o=>{o.disabledItems.splice(o.disabledItems.indexOf(e),1)})}generateTooltip(e){return"Click this icon to activate this item again.\r\n"+e.name+" "+(e.mobility+(e.masterworked?2:0))+"/"+(e.resilience+(e.masterworked?2:0))+"/"+(e.recovery+(e.masterworked?2:0))+"/"+(e.discipline+(e.masterworked?2:0))+"/"+(e.intellect+(e.masterworked?2:0))+"/"+(e.strength+(e.masterworked?2:0))}ngOnInit(){var e=this;this.config.configuration.pipe((0,Ct.R)(this.ngUnsubscribe)).subscribe(function(){var o=(0,y.Z)(function*(a){e.characterClass=null;const s=[[],[],[],[],[],[]];let r=[];for(let d of a.disabledItems){let p=yield e.db.inventoryArmor.where("itemInstanceId").equals(d).first();p&&r.push(p)}for(let d of r)s[d.slot].push(d);e.characterClass=a.characterClass;for(let d of s)d.sort((p,A)=>p.hash-A.hash);e.disabledItems=s});return function(a){return o.apply(this,arguments)}}())}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(X),t.Y36(w))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-ignored-items-list"]],decls:1,vars:1,consts:[["class","item-icon-container",4,"ngIf"],[1,"item-icon-container"],[4,"ngFor","ngForOf"],[4,"ngIf"],["class","item-sub",4,"ngFor","ngForOf"],[1,"item-sub"],["matTooltipClass","allow-cr",1,"item-icon",3,"src","matTooltip","click"]],template:function(e,o){1&e&&t.YNc(0,Cc,2,1,"div",0),2&e&&t.Q6J("ngIf",null!==o.characterClass)},dependencies:[I.sg,I.O5,pt.gM],styles:[".item-icon[_ngcontent-%COMP%]{width:40px}.item-icon[_ngcontent-%COMP%]:hover{filter:brightness(.8) hue-rotate(350deg) saturate(3) blur(2px) contrast(.6);cursor:not-allowed}.item-sub[_ngcontent-%COMP%]{margin-right:3px}.item-icon-container[_ngcontent-%COMP%]{position:relative;contain:layout paint style;box-sizing:border-box;width:var(--item-size);transition:opacity .2s,transform .2s}"]}),n})(),vc=(()=>{class n{constructor(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-settings"]],decls:71,vars:0,consts:[["id","card-config"],["id","content-char-selection"],["inline","","aria-hidden","false","aria-label","Help","matTooltip","Cooldowns and Stats provided by Clarity."],["tooltip","matTooltip"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"mat-card")(2,"mat-card-title"),t._uU(3,"Character Selection"),t.qZA(),t.TgZ(4,"mat-card-content",1),t._UZ(5,"app-desired-class-selection"),t.qZA()(),t.TgZ(6,"mat-card")(7,"mat-card-title"),t._uU(8,"Select the stats you want to achieve"),t.qZA(),t.TgZ(9,"mat-card-subtitle"),t._uU(10,"The heart of this tool. Select the stats you want! "),t.TgZ(11,"mat-icon",2,3),t._uU(13," info "),t.qZA()(),t.TgZ(14,"mat-card-content"),t._UZ(15,"app-desired-stat-selection"),t.qZA()(),t.TgZ(16,"mat-card")(17,"mat-card-title"),t._uU(18,"Armor Selection"),t.qZA(),t.TgZ(19,"mat-card-subtitle"),t._uU(20," This section allows you to limit the armor pieces that are used in the buildcrafting process."),t._UZ(21,"br"),t._uU(22," If you want, limit all results to one exotic. "),t._UZ(23,"br"),t._uU(24," Exotics you do not have in the inventory or vault are grayed out. "),t.qZA(),t.TgZ(25,"mat-card-content"),t._UZ(26,"app-desired-exotic-selection"),t.qZA()(),t.TgZ(27,"mat-card")(28,"mat-card-title"),t._uU(29,"Armor limitation"),t.qZA(),t.TgZ(30,"mat-card-subtitle"),t._uU(31," This section allows you to further specify what kind of armor and mods you want. "),t.qZA(),t.TgZ(32,"mat-card-content"),t._UZ(33,"app-desired-mod-selection"),t.qZA()(),t.TgZ(34,"mat-card")(35,"mat-card-title"),t._uU(36,"Stat-Boost Selection"),t.qZA(),t.TgZ(37,"mat-card-subtitle"),t._uU(38,"Select Mods and Skills that affect your overall stats."),t._UZ(39,"br"),t._uU(40," Please note that D2AP also allows theoretical, but impossible input."),t._UZ(41,"br"),t.TgZ(42,"b"),t._uU(43,"Only fragments that affect stats are shown."),t.qZA()(),t.TgZ(44,"mat-card-content"),t._UZ(45,"app-desired-mods-selection"),t.qZA()(),t.TgZ(46,"mat-card")(47,"mat-card-title"),t._uU(48,"Advanced Settings"),t.qZA(),t.TgZ(49,"mat-card-subtitle"),t._uU(50,"More settings! Use them to fine-tune your buildcrafting process."),t.qZA(),t.TgZ(51,"mat-card-content"),t._UZ(52,"app-advanced-settings"),t.qZA()(),t.TgZ(53,"mat-card")(54,"mat-card-title"),t._uU(55,"Disabled Armor Pieces"),t.qZA(),t.TgZ(56,"mat-card-subtitle"),t._uU(57," These armor pieces are disabled. Click them to enable them again."),t._UZ(58,"br"),t._uU(59," They won't show up in any results."),t._UZ(60,"br"),t._uU(61," You can disable items in the detailed result overview. "),t.qZA(),t.TgZ(62,"mat-card-content"),t._UZ(63,"app-ignored-items-list"),t.qZA()(),t.TgZ(64,"mat-card")(65,"mat-card-title"),t._uU(66,"Configuration Management"),t.qZA(),t.TgZ(67,"mat-card-subtitle"),t._uU(68,"Save and load your buildcrafting settings for another day!"),t.qZA(),t.TgZ(69,"mat-card-content"),t._UZ(70,"app-load-and-save-settings"),t.qZA()()())},dependencies:[Y.a8,Y.dn,Y.n5,Y.$j,pt.gM,St.Hw,Bs,dr,kr,Jr,Ol,Pl,dc,Tc],styles:["#card-config[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;display:inline-block;vertical-align:top;white-space:normal;margin-bottom:20px;margin-left:3px;margin-right:3px}#card-config[_ngcontent-%COMP%] > mat-card[_ngcontent-%COMP%]{margin-bottom:4px}#content-char-selection[_ngcontent-%COMP%]{margin-bottom:0}"]}),n})(),bc=(()=>{class n{constructor(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-armor-picker-page"]],decls:3,vars:0,consts:[["id","container"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"app-settings")(2,"app-results"),t.qZA())},dependencies:[vc,be],styles:["#container[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;margin-right:3px;white-space:nowrap}"]}),n})();const Me=function(){return["","Mobility","Resilience","Recovery","Discipline","Intellect","Strength"]};function Ac(n,i){if(1&n&&(t.TgZ(0,"tr",27)(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td",22)(4,"div",28),t._UZ(5,"div",29),t.TgZ(6,"span",30),t._uU(7),t.ALo(8,"number"),t.qZA()()()()),2&n){const e=t.oxw().index,o=t.oxw(2).index,a=t.oxw();t.Q6J("matTooltip",t.DdM(9,Me)[e]),t.xp6(2),t.hij(" ",t.DdM(10,Me)[e]," "),t.xp6(3),t.Jzz("width:",a.clusterInformation[o].mean[e]/32*100,"%"),t.xp6(2),t.hij(" ",t.xi3(8,6,a.clusterInformation[o].mean[e],"1.0-0")," ")}}function wc(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Ac,9,11,"tr",26),t.BQk()),2&n){const e=i.index;t.xp6(1),t.Q6J("ngIf",e>0)}}function Zc(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-card",21)(1,"mat-card-title"),t._uU(2),t.qZA(),t.TgZ(3,"mat-card-subtitle"),t._uU(4),t.qZA(),t.TgZ(5,"mat-card-content")(6,"div")(7,"table",22),t.YNc(8,wc,2,1,"ng-container",18),t.qZA()(),t.TgZ(9,"mat-form-field",23)(10,"mat-label"),t._uU(11,"DIM Search Query"),t.qZA(),t._UZ(12,"input",24),t.qZA(),t.TgZ(13,"button",25),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.openSnackBar("Copied the DIM search query to your clipboard."))}),t._uU(14," Copy DIM query to clipboard "),t.qZA()()()}if(2&n){const e=t.oxw(),o=e.index,a=e.$implicit,s=t.oxw();t.xp6(2),t.hij(" Cluster ",o+1," "),t.xp6(2),t.AsE(" Contains ",a.length," item",a.length>1?"s":""," "),t.xp6(4),t.Q6J("ngForOf",s.clusterInformation[o].mean),t.xp6(4),t.Q6J("value",s.getDIMStringForCluster(a)),t.xp6(1),t.Q6J("cdkCopyToClipboard",s.getDIMStringForCluster(a))}}function Ic(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Zc,15,6,"mat-card",20),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngIf",e.length>0)}}var Oe=[{id:0,size:214,centroids:[5.242990654205609,3.4392523364485994,23.074766355140188,4.52336448598131,17.99532710280374,8.074766355140188],std:[3.262185500658884,3.137958193527344,2.0745611905196912,3.223158380401712,2.6478649185881147,3.356022774004607,3.3823650213485315],mean:[62.350467289719624,5.242990654205608,3.439252336448598,23.074766355140188,4.5233644859813085,17.99532710280374,8.074766355140186]},{id:1,size:264,centroids:[13.613636363636365,3.060606060606063,14.431818181818182,6.731060606060606,12.575757575757574,10.575757575757576],std:[4.915624932359143,2.735897756946947,1.897597343200423,3.036390647550984,3.2253188618447473,3.0097969617389406,3.1372197425220545],mean:[60.98863636363637,13.613636363636363,3.0606060606060606,14.431818181818182,6.731060606060606,12.575757575757576,10.575757575757576]},{id:2,size:220,centroids:[5.209090909090909,15.586363636363636,10.936363636363636,13.281818181818181,13.604545454545452,3.8818181818181836],std:[3.3631090204013643,2.931782865076046,2.9200605883727038,3.289049973803757,2.6349662061268395,2.6591750828428204,2.395703224398619],mean:[62.5,5.209090909090909,15.586363636363636,10.936363636363636,13.281818181818181,13.604545454545455,3.881818181818182]},{id:3,size:230,centroids:[8.6,15.330434782608698,6.943478260869563,6.408695652173913,5.578260869565216,18.26086956521739],std:[4.27370926113142,3.855014315301441,3.2487061290912984,3.5081098914433078,3.559587955581114,3.1761194803539676,3.596667444705349],mean:[61.12173913043478,8.6,15.330434782608696,6.943478260869565,6.408695652173913,5.578260869565217,18.26086956521739]},{id:4,size:261,centroids:[11.74712643678161,5.655172413793104,13.873563218390803,11.022988505747126,16.57088122605364,3.0038314176245224],std:[3.5878146263573103,2.8197860971981994,2.9890605143791737,2.9825309245974925,2.7497287061744258,2.8324620286123516,1.8428616632651005],mean:[61.87356321839081,11.74712643678161,5.655172413793103,13.873563218390805,11.022988505747126,16.57088122605364,3.003831417624521]},{id:5,size:249,centroids:[6.598393574297189,7.2289156626506035,7.674698795180722,6.831325301204822,5.995983935742974,7.425702811244981],std:[12.188382924990831,3.7780346472852226,3.7855581933977014,3.9659084518463055,3.2508780840166134,2.4288222155150856,3.23718036285365],mean:[41.75502008032129,6.598393574297189,7.228915662650603,7.674698795180723,6.831325301204819,5.995983935742972,7.42570281124498]},{id:6,size:241,centroids:[4.580912863070541,10.62655601659751,15.72199170124481,20.186721991701248,5.7634854771784205,4.8672199170124495],std:[4.0360666526825675,2.5776864620318327,2.726712032141287,2.7236414380869185,3.4135743182998106,3.164594939982558,2.8952195061747896],mean:[61.74688796680498,4.580912863070539,10.62655601659751,15.721991701244812,20.186721991701244,5.763485477178423,4.867219917012448]},{id:7,size:352,centroids:[4.96875,10.849431818181818,15.676136363636362,5.085227272727275,13.079545454545453,12.113636363636365],std:[3.864447558701623,2.876694966732471,2.825917840642513,2.8500410080793133,2.604753041986593,2.753797030174534,3.084495990290069],mean:[61.77272727272727,4.96875,10.849431818181818,15.676136363636363,5.0852272727272725,13.079545454545455,12.113636363636363]},{id:8,size:219,centroids:[21.401826484018265,4.529680365296804,4.954337899543379,14.022831050228312,7.168949771689496,6.8036529680365305],std:[7.654498360234386,3.856746305047457,3.0774088630224354,3.486239910130717,4.509361233853425,3.691515724130434,3.433882092856456],mean:[58.881278538812786,21.401826484018265,4.529680365296803,4.954337899543379,14.02283105022831,7.168949771689498,6.80365296803653]},{id:9,size:183,centroids:[4.448087431693989,22.114754098360656,4.868852459016392,7.459016393442623,11.240437158469945,9.765027322404372],std:[7.900837110469869,3.265921971202623,3.896032191192026,3.424902708986657,3.3556927380910535,3.7206143627650876,3.9564220813839577],mean:[59.89617486338798,4.448087431693989,22.114754098360656,4.868852459016393,7.459016393442623,11.240437158469945,9.765027322404372]},{id:10,size:197,centroids:[13.563451776649746,10.761421319796954,6.527918781725887,20.654822335025383,4.934010152284262,5.18274111675127],std:[4.239153654030002,3.3077343290831713,2.8924486501981233,2.9338771160608355,3.5098461495889413,3.192898794854312,2.920215710334156],mean:[61.6243654822335,13.563451776649746,10.761421319796954,6.527918781725888,20.65482233502538,4.934010152284264,5.182741116751269]},{id:11,size:176,centroids:[8.255681818181818,16.181818181818183,7.11931818181818,4.619318181818182,21.0625,5.505681818181819],std:[3.349621998445128,3.4620343467651815,3.3296776490755446,2.945693532873097,2.7583580190103967,3.126214049887545,3.078027492852078],mean:[62.74431818181818,8.255681818181818,16.181818181818183,7.119318181818182,4.619318181818182,21.0625,5.505681818181818]},{id:12,size:194,centroids:[3.5670103092783503,14.773195876288659,13.036082474226804,13.185567010309278,4.979381443298967,12.144329896907218],std:[3.89886364980042,2.255251632823776,2.5893570716174388,3.248552824613239,3.1004926799108317,2.8845824993776903,2.8864151735009584],mean:[61.68556701030928,3.5670103092783507,14.77319587628866,13.036082474226804,13.185567010309278,4.979381443298969,12.144329896907216]},{id:13,size:302,centroids:[5.311258278145695,4.4701986754966905,21.897350993377486,10.688741721854305,6.834437086092715,12.605960264900663],std:[5.1142628152416245,2.9920946350614983,2.6882491851253567,3.071581172564087,2.99431450280505,3.116626644660552,2.58548804104293],mean:[61.80794701986755,5.311258278145695,4.470198675496689,21.897350993377483,10.688741721854305,6.8344370860927155,12.605960264900663]},{id:14,size:364,centroids:[12.263736263736265,11.32967032967033,5.936813186813188,8.524725274725274,12.07142857142857,7.782967032967034],std:[6.666392881793753,2.8942239993391565,2.947866371540881,3.041289192757803,3.0876888182534996,2.4540644069260296,2.6803305558675676],mean:[57.90934065934066,12.263736263736265,11.32967032967033,5.936813186813187,8.524725274725276,12.071428571428571,7.782967032967033]},{id:15,size:219,centroids:[6.981735159817351,5.9908675799086755,18.127853881278536,4.97716894977169,5.182648401826483,20.89041095890411],std:[4.3335830659244685,3.5503759593138464,3.5270785628911785,4.123339305032141,2.7998081886699646,3.283747903424203,2.8311584355558064],mean:[62.15068493150685,6.981735159817352,5.9908675799086755,18.12785388127854,4.9771689497716896,5.1826484018264845,20.89041095890411]},{id:16,size:147,centroids:[6.285714285714285,20.836734693877553,4.8639455782312915,17.510204081632654,5.897959183673469,7.394557823129253],std:[3.358145469360083,3.4877476344546254,3.2245649941865486,3.0557367019327,4.0937094190209065,3.1136788219952605,3.842013283457479],mean:[62.7891156462585,6.285714285714286,20.836734693877553,4.863945578231292,17.510204081632654,5.8979591836734695,7.394557823129252]},{id:17,size:202,centroids:[18.425742574257423,6.871287128712871,6.678217821782177,5.06930693069307,20.40594059405941,5.876237623762377],std:[3.0226636827682554,3.292828132097339,3.518715749263091,3.4627255810748356,3.075363266145594,3.5804283293104753,3.315804113390658],mean:[63.32673267326733,18.425742574257427,6.871287128712871,6.678217821782178,5.069306930693069,20.405940594059405,5.876237623762377]},{id:18,size:286,centroids:[11.22027972027972,7.073426573426573,12.65034965034965,12.594405594405593,4.209790209790211,13.220279720279722],std:[4.720510224882134,2.8685361372318168,2.6005789112305338,3.052197922484291,2.451602446915686,2.7244266014541174,2.7638787756329526],mean:[60.96853146853147,11.22027972027972,7.073426573426573,12.65034965034965,12.594405594405595,4.20979020979021,13.22027972027972]},{id:19,size:197,centroids:[6.263959390862944,8.568527918781726,16.80710659898477,4.000000000000003,22.593908629441625,4.883248730964468],std:[2.7333118141791917,3.3626657547151964,3.4540163497542435,2.646397291854302,2.565469285152567,3.018237668617547,2.8287109641017594],mean:[63.11675126903553,6.2639593908629445,8.568527918781726,16.80710659898477,4,22.593908629441625,4.883248730964467]},{id:20,size:279,centroids:[18.025089605734767,6.150537634408602,6.161290322580646,5.767025089605736,7.999999999999998,15.602150537634408],std:[6.590788110639117,3.6436721401086296,3.165505073725202,3.13700467469825,2.7769973891540207,3.4672154149710614,4.017425492621824],mean:[59.70609318996416,18.025089605734767,6.150537634408602,6.161290322580645,5.767025089605735,8,15.602150537634408]},{id:21,size:78,centroids:[15.96153846153846,16.85897435897436,16.807692307692307,3552713678800501e-30,5329070518200751e-30,-5329070518200751e-30],std:[2.095815090231219,7.438828122504502,7.482836393563639,8.12413063050432,0,0,0],mean:[49.62820512820513,15.961538461538462,16.858974358974358,16.807692307692307,0,0,0]},{id:22,size:137,centroids:[4.525547445255475,3.583941605839417,23.532846715328468,19.948905109489054,4.3576642335766405,6.248175182481752],std:[2.9351806639916567,2.7575572416084317,2.2707939003224227,2.908029186302962,3.3306093063017315,2.6644092885703916,3.4848010785869454],mean:[62.197080291970806,4.525547445255475,3.5839416058394162,23.532846715328468,19.94890510948905,4.357664233576642,6.248175182481752]},{id:23,size:194,centroids:[13.242268041237114,3.5103092783505163,14.675257731958762,19.55154639175258,6.139175257731957,5.092783505154641],std:[3.810494814771566,2.886105181640385,2.0818477512276696,2.6197152448917316,3.409818599464837,3.0311357231629183,2.9733966349516936],mean:[62.21134020618557,13.242268041237113,3.5103092783505154,14.675257731958762,19.551546391752577,6.139175257731959,5.092783505154639]},{id:24,size:239,centroids:[5.569037656903766,5.401673640167365,20.92468619246862,13.09205020920502,13.497907949790793,4.096234309623432],std:[3.8502204432228733,3.071015816571908,3.081143061480697,2.79904271710946,2.169280265760518,2.62802363192924,2.3450167178621983],mean:[62.58158995815899,5.569037656903766,5.401673640167364,20.92468619246862,13.092050209205022,13.497907949790795,4.096234309623431]}];let Sc=(()=>{class n{constructor(e,o,a){this.db=e,this._snackBar=o,this.inventory=a,this.clusterInformation=Oe,this.items=[],this.clusters=[],this.exoticFilter=0,this.masterworkFilter=0,this.classFilter=-1,this.clusterInformation=Oe.sort((s,r)=>r.mean[3]-s.mean[3])}ngAfterViewInit(){var e=this;return(0,y.Z)(function*(){e.inventory.inventory.pipe((0,J.b)(200)).subscribe((0,y.Z)(function*(){yield e.Update(),e.openSnackBar("Clusters were updated.")}))})()}Update(){var e=this;return(0,y.Z)(function*(){var o=(yield e.db.inventoryArmor.toArray()).filter(r=>r.source===B.Inventory),a=[];for(let r=0;r`id:'${o.itemInstanceId}'`).join(" or ")}vectorDistance(e,o){return Math.sqrt(e.reduce((a,s,r)=>a+Math.pow(s-o[r],2),0))}getClusterid(e){var o=Number.MAX_VALUE,a=-1;for(let r=0;r=3?3:0),"")}}const ke=function(){return["Mobility","Resilience","Recovery","Discipline","Intellect","Strength"]};function kc(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"tr",16)(2,"td"),t._uU(3),t.qZA(),t.TgZ(4,"td"),t._uU(5),t.ALo(6,"number"),t.qZA(),t.TgZ(7,"td",17)(8,"div",18),t.YNc(9,Oc,1,6,"div",19),t.qZA()()(),t.BQk()),2&n){const e=i.$implicit,o=i.index,a=t.oxw().$implicit;t.xp6(1),t.Q6J("matTooltip",t.DdM(7,ke)[o]),t.xp6(2),t.hij(" ",t.DdM(8,ke)[o]," "),t.xp6(2),t.Oqu(t.xi3(6,4,a.totalStats[o],"1.0-0")),t.xp6(4),t.Q6J("ngForOf",e)}}function Ec(n,i){if(1&n&&(t.TgZ(0,"tr")(1,"td")(2,"a",20),t._UZ(3,"img",15),t.qZA(),t._uU(4),t.qZA(),t.TgZ(5,"td",21),t._uU(6),t.qZA(),t.TgZ(7,"td"),t._uU(8),t.qZA()()),2&n){const e=i.$implicit,o=t.oxw(3);t.xp6(2),t.MGl("href","https://data.destinysets.com/i/InventoryItem:",e,"",t.LSH),t.xp6(2),t.hij(" ",e,""),t.xp6(2),t.Oqu(o.getPlugSum(e)),t.xp6(2),t.Oqu(o.getPlugString(e))}}const Uc=function(n,i,e,o,a,s){return[n,i,e,o,a,s]};function Dc(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"mat-card",12)(2,"mat-card-title"),t._uU(3),t.qZA(),t.TgZ(4,"mat-card-content")(5,"table")(6,"tr")(7,"td",13),t._uU(8,"Hash:"),t.qZA(),t.TgZ(9,"td")(10,"a",14),t._UZ(11,"img",15),t.qZA(),t._uU(12),t.qZA()(),t.TgZ(13,"tr")(14,"td",13),t._uU(15,"ItemInstanceId:"),t.qZA(),t.TgZ(16,"td"),t._uU(17),t.qZA()(),t.TgZ(18,"tr")(19,"td",13),t._uU(20,"Sunset?"),t.qZA(),t.TgZ(21,"td"),t._uU(22),t.qZA()(),t.TgZ(23,"tr")(24,"td"),t._uU(25,"Total"),t.qZA(),t.TgZ(26,"td"),t._uU(27),t.qZA()(),t.YNc(28,kc,10,9,"ng-container",10),t.qZA()(),t.TgZ(29,"mat-card-content"),t._uU(30," Plugs: "),t.TgZ(31,"table")(32,"tr")(33,"td"),t._uU(34,"Plug"),t.qZA(),t.TgZ(35,"td"),t._uU(36,"Total"),t.qZA(),t.TgZ(37,"td"),t._uU(38,"Values"),t.qZA()(),t.YNc(39,Ec,9,4,"tr",10),t.qZA()()(),t.BQk()),2&n){const e=i.$implicit;t.xp6(3),t.hij(" ",e.name," "),t.xp6(7),t.MGl("href","https://data.destinysets.com/i/InventoryItem:",e.hash,"",t.LSH),t.xp6(2),t.hij(" ",e.hash,""),t.xp6(5),t.Oqu(e.itemInstanceId),t.xp6(5),t.Oqu(e.isSunset),t.xp6(5),t.Oqu(e.totalSum),t.xp6(1),t.Q6J("ngForOf",t.HTZ(8,Uc,e.mobility,e.resilience,e.recovery,e.discipline,e.intellect,e.strength)),t.xp6(11),t.Q6J("ngForOf",e.statPlugHashes)}}function Pc(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"mat-toolbar"),t._uU(2),t.qZA(),t._UZ(3,"br"),t.TgZ(4,"div",11),t.YNc(5,Dc,40,15,"ng-container",10),t.qZA(),t.BQk()),2&n){const e=i.$implicit,o=t.oxw();t.xp6(2),t.hij(" ",o.getCategoryName(e.key)," "),t.xp6(3),t.Q6J("ngForOf",e.value)}}let Rc=(()=>{class n{constructor(e,o){this.inventory=e,this.db=o,this.minMobility=0,this.minResilience=0,this.minRecovery=0,this.minDiscipline=0,this.minIntellect=0,this.minStrength=0,this.anyPlugWithN=0,this.anyPlugBelowN=17,this.allPlugsWithN=0,this.allPlugsBelowN=17,this.armorName="",this.armorHash="",this.armorId="",this.armorItemsPerSlot=new Map,this.plugData={},this.ngUnsubscribe=new R.xQ}ngOnInit(){var e=this;this.inventory.inventory.pipe((0,J.b)(10),(0,Ct.R)(this.ngUnsubscribe)).subscribe((0,y.Z)(function*(){e.updateItems()}))}getPlugString(e){var o=this.plugData[e];let a=[0,0,0,0,0,0];for(let s of o.investmentStats)switch(s.statTypeHash){case 2996146975:a[0]+=s.value;break;case 392767087:a[1]+=s.value;break;case 1943323491:a[2]+=s.value;break;case 1735777505:a[3]+=s.value;break;case 144602215:a[4]+=s.value;break;case 4244567218:a[5]+=s.value}return"["+a.join(" ")+"]"}updateItems(){var e=this;return(0,y.Z)(function*(){const a=(yield e.db.manifestArmor.toArray()).filter(d=>19==d.itemType);let s=Object.fromEntries(a.map(d=>[d.hash,d]));e.plugData=s;let r=(yield e.db.inventoryArmor.toArray()).filter(d=>d.source===B.Inventory).sort((d,p)=>(""+d.name).localeCompare(p.name)).map(d=>{var p={name:d.name,hash:d.hash,isSunset:d.isSunset,itemInstanceId:d.itemInstanceId,statPlugHashes:d.statPlugHashes,mobility:[],resilience:[],recovery:[],discipline:[],intellect:[],strength:[],totalStats:[0,0,0,0,0,0],totalSum:0,slot:d.slot};if(d.statPlugHashes)for(let m of d.statPlugHashes){var A=s[m];for(let S of A.investmentStats)switch(S.statTypeHash){case 2996146975:p.mobility.push(S.value),p.totalStats[0]+=S.value;break;case 392767087:p.resilience.push(S.value),p.totalStats[1]+=S.value;break;case 1943323491:p.recovery.push(S.value),p.totalStats[2]+=S.value;break;case 1735777505:p.discipline.push(S.value),p.totalStats[3]+=S.value;break;case 144602215:p.intellect.push(S.value),p.totalStats[4]+=S.value;break;case 4244567218:p.strength.push(S.value),p.totalStats[5]+=S.value}}if(d.investmentStats)for(let m of d.investmentStats)switch(m.statTypeHash){case 2996146975:p.mobility.push(m.value),p.totalStats[0]+=m.value;break;case 392767087:p.resilience.push(m.value),p.totalStats[1]+=m.value;break;case 1943323491:p.recovery.push(m.value),p.totalStats[2]+=m.value;break;case 1735777505:p.discipline.push(m.value),p.totalStats[3]+=m.value;break;case 144602215:p.intellect.push(m.value),p.totalStats[4]+=m.value;break;case 4244567218:p.strength.push(m.value),p.totalStats[5]+=m.value}for(let m of p.totalStats)p.totalSum+=m;return p});r=e.filterItems(r),e.armorItemsPerSlot=r.reduce((d,p)=>{const A=p.slot?p.slot:10;return d.has(A)||d.set(A,[]),d.get(A)?.push(p),d},new Map)})()}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}getCategoryName(e){switch(e){case 1:return"Helmets";case 2:return"Gauntlets";case 3:return"Chest Pieces";case 4:return"Legs";case 5:return"Class Items"}return"Unknown Category"}getPlugSum(e){var o=this.plugData[e],a=0;for(let s of o.investmentStats)switch(s.statTypeHash){case 2996146975:case 392767087:case 1943323491:case 1735777505:case 144602215:case 4244567218:a+=s.value}return a}clear(){this.armorName="",this.armorHash="",this.armorId="",this.minMobility=0,this.minResilience=0,this.minRecovery=0,this.minDiscipline=0,this.minIntellect=0,this.minStrength=0,this.anyPlugWithN=0,this.anyPlugBelowN=17}filterItems(e){return this.armorName&&(e=e.filter(o=>o.name.toLowerCase().indexOf(this.armorName)>-1)),this.armorHash&&(e=e.filter(o=>(o.hash||0).toString().indexOf(this.armorHash)>-1)),this.armorId&&(e=e.filter(o=>(o.itemInstanceId||0).toString().indexOf(this.armorId)>-1)),e=(e=(e=(e=(e=(e=e.filter(o=>o.totalStats[0]>=(this.minMobility||0))).filter(o=>o.totalStats[1]>=(this.minResilience||0))).filter(o=>o.totalStats[2]>=(this.minRecovery||0))).filter(o=>o.totalStats[3]>=(this.minDiscipline||0))).filter(o=>o.totalStats[4]>=(this.minIntellect||0))).filter(o=>o.totalStats[5]>=(this.minStrength||0)),(this.anyPlugWithN??0)>0&&(e=e.filter(o=>(o.statPlugHashes||[]).filter(a=>this.getPlugSum(a)>=(this.anyPlugWithN||0)).length>0)),(this.anyPlugBelowN??0)<17&&(e=e.filter(o=>(o.statPlugHashes||[]).filter(a=>this.getPlugSum(a)<=(this.anyPlugBelowN||0)).length>0)),(this.allPlugsWithN??0)>0&&(e=e.filter(o=>0==(o.statPlugHashes||[]).filter(a=>this.getPlugSum(a)<(this.allPlugsWithN||0)).length)),(this.allPlugsBelowN??0)<17&&(e=e.filter(o=>0==(o.statPlugHashes||[]).filter(a=>this.getPlugSum(a)>(this.allPlugsBelowN||0)).length)),e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Tt),t.Y36(w))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-armor-investigation-page"]],decls:112,vars:26,consts:[["id","description"],["href","https://www.reddit.com/r/DestinyTheGame/comments/mpaopq/how_armor_stats_roll_an_advanced_insight_into/","target","_blank"],["colspan","3"],["appearance","outline"],["matInput","","placeholder","Stronghold",3,"ngModel","ngModelChange"],["matInput","",3,"ngModel","ngModelChange"],["max","32","min","0","step","1","thumbLabel","","tickInterval","1",3,"value","valueChange"],["max","17","min","0","step","1","thumbLabel","","tickInterval","1",3,"value","valueChange"],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","","color","warn",3,"click"],[4,"ngFor","ngForOf"],["fxLayout","row","fxLayout.xs","column","fxLayoutGap","10px",1,"armor-container"],[1,"cluster-item"],["colspan","2"],["alt","This armor on data.destinysets.com","target","_blank",3,"href"],["src","https://data.destinysets.com/static/media/logo.556bd7bd.svg",2,"width","15px"],[3,"matTooltip"],["width","100%"],[1,"stat-range"],[3,"class","style",4,"ngFor","ngForOf"],["alt","This plug on data.destinysets.com","target","_blank",3,"href"],[1,"plug-sum-col"]],template:function(e,o){1&e&&(t.TgZ(0,"mat-card",0)(1,"mat-card-title"),t._uU(2," Armor Investigation "),t.qZA(),t.TgZ(3,"mat-card-subtitle"),t._uU(4," A visualization tool for data scientists. "),t.qZA(),t.TgZ(5,"mat-card-content"),t._uU(6," This part of the D2ArmorPicker lists all of your armor items. For each armor it shows how it is generated. It shows every used "),t.TgZ(7,"i"),t._uU(8,'"plug"'),t.qZA(),t._uU(9,", as well as the intrinsic stats of exotics. For more information about plugs, see "),t.TgZ(10,"a",1),t._uU(11,"here"),t.qZA(),t._uU(12,". Make sure to give the author an upvote for the hard work! "),t._UZ(13,"br")(14,"br"),t._uU(15," Please note that this feature is mainly targeted for data nerds and people interested in the basic stats of armor. It is just a data visualization. Mobile layout and a search function "),t.TgZ(16,"i"),t._uU(17,"may"),t.qZA(),t._uU(18," happen in the future. "),t.qZA(),t.TgZ(19,"mat-card-title"),t._uU(20," Filters "),t.qZA(),t.TgZ(21,"mat-card-subtitle"),t._uU(22," Some filters. Nothing fancy but it works. Sorry ;) "),t.qZA(),t.TgZ(23,"mat-card-content")(24,"table")(25,"tr")(26,"td",2)(27,"mat-form-field",3)(28,"mat-label"),t._uU(29,"Item Name"),t.qZA(),t.TgZ(30,"input",4),t.NdJ("ngModelChange",function(s){return o.armorName=s}),t.qZA()()(),t.TgZ(31,"td",2)(32,"mat-form-field",3)(33,"mat-label"),t._uU(34,"Item Hash"),t.qZA(),t.TgZ(35,"input",5),t.NdJ("ngModelChange",function(s){return o.armorHash=s}),t.qZA()()(),t.TgZ(36,"td",2)(37,"mat-form-field",3)(38,"mat-label"),t._uU(39,"Item ID"),t.qZA(),t.TgZ(40,"input",5),t.NdJ("ngModelChange",function(s){return o.armorId=s}),t.qZA()()()(),t.TgZ(41,"tr")(42,"td"),t._uU(43," Mobility: "),t.qZA(),t.TgZ(44,"td"),t._uU(45),t.qZA(),t.TgZ(46,"td")(47,"mat-slider",6),t.NdJ("valueChange",function(s){return o.minMobility=s}),t.qZA()(),t.TgZ(48,"td"),t._uU(49," Resilience: "),t.qZA(),t.TgZ(50,"td"),t._uU(51),t.qZA(),t.TgZ(52,"td")(53,"mat-slider",6),t.NdJ("valueChange",function(s){return o.minResilience=s}),t.qZA()(),t.TgZ(54,"td"),t._uU(55," Recovery: "),t.qZA(),t.TgZ(56,"td"),t._uU(57),t.qZA(),t.TgZ(58,"td")(59,"mat-slider",6),t.NdJ("valueChange",function(s){return o.minRecovery=s}),t.qZA()()(),t.TgZ(60,"tr")(61,"td"),t._uU(62," Discipline: "),t.qZA(),t.TgZ(63,"td"),t._uU(64),t.qZA(),t.TgZ(65,"td")(66,"mat-slider",6),t.NdJ("valueChange",function(s){return o.minDiscipline=s}),t.qZA()(),t.TgZ(67,"td"),t._uU(68," Intellect: "),t.qZA(),t.TgZ(69,"td"),t._uU(70),t.qZA(),t.TgZ(71,"td")(72,"mat-slider",6),t.NdJ("valueChange",function(s){return o.minIntellect=s}),t.qZA()(),t.TgZ(73,"td"),t._uU(74," Strength: "),t.qZA(),t.TgZ(75,"td"),t._uU(76),t.qZA(),t.TgZ(77,"td")(78,"mat-slider",6),t.NdJ("valueChange",function(s){return o.minStrength=s}),t.qZA()()(),t.TgZ(79,"tr")(80,"td"),t._uU(81," Any plug >=: "),t.qZA(),t.TgZ(82,"td"),t._uU(83),t.qZA(),t.TgZ(84,"td")(85,"mat-slider",7),t.NdJ("valueChange",function(s){return o.anyPlugWithN=s}),t.qZA()(),t.TgZ(86,"td"),t._uU(87," Any Plug <=: "),t.qZA(),t.TgZ(88,"td"),t._uU(89),t.qZA(),t.TgZ(90,"td")(91,"mat-slider",7),t.NdJ("valueChange",function(s){return o.anyPlugBelowN=s}),t.qZA()()(),t.TgZ(92,"tr")(93,"td"),t._uU(94," All plugs >=: "),t.qZA(),t.TgZ(95,"td"),t._uU(96),t.qZA(),t.TgZ(97,"td")(98,"mat-slider",7),t.NdJ("valueChange",function(s){return o.allPlugsWithN=s}),t.qZA()(),t.TgZ(99,"td"),t._uU(100," All Plugs <=: "),t.qZA(),t.TgZ(101,"td"),t._uU(102),t.qZA(),t.TgZ(103,"td")(104,"mat-slider",7),t.NdJ("valueChange",function(s){return o.allPlugsBelowN=s}),t.qZA()()()(),t.TgZ(105,"a",8),t.NdJ("click",function(){return o.updateItems()}),t._uU(106,"Update"),t.qZA(),t._uU(107,"\xa0 "),t.TgZ(108,"a",9),t.NdJ("click",function(){return o.clear()}),t._uU(109,"Clear"),t.qZA()()(),t.YNc(110,Pc,6,2,"ng-container",10),t.ALo(111,"keyvalue")),2&e&&(t.xp6(30),t.Q6J("ngModel",o.armorName),t.xp6(5),t.Q6J("ngModel",o.armorHash),t.xp6(5),t.Q6J("ngModel",o.armorId),t.xp6(5),t.hij(" ",o.minMobility,""),t.xp6(2),t.Q6J("value",o.minMobility),t.xp6(4),t.hij(" ",o.minResilience,""),t.xp6(2),t.Q6J("value",o.minResilience),t.xp6(4),t.hij(" ",o.minRecovery,""),t.xp6(2),t.Q6J("value",o.minRecovery),t.xp6(5),t.hij(" ",o.minDiscipline,""),t.xp6(2),t.Q6J("value",o.minDiscipline),t.xp6(4),t.hij(" ",o.minIntellect,""),t.xp6(2),t.Q6J("value",o.minIntellect),t.xp6(4),t.Oqu(o.minStrength),t.xp6(2),t.Q6J("value",o.minStrength),t.xp6(5),t.Oqu(o.anyPlugWithN),t.xp6(2),t.Q6J("value",o.anyPlugWithN),t.xp6(4),t.Oqu(o.anyPlugBelowN),t.xp6(2),t.Q6J("value",o.anyPlugBelowN),t.xp6(5),t.Oqu(o.allPlugsWithN),t.xp6(2),t.Q6J("value",o.allPlugsWithN),t.xp6(4),t.Oqu(o.allPlugsBelowN),t.xp6(2),t.Q6J("value",o.allPlugsBelowN),t.xp6(6),t.Q6J("ngForOf",t.lcZ(111,24,o.armorItemsPerSlot)))},dependencies:[I.sg,_t.xw,_t.SQ,At.Fj,At.JJ,At.On,st.zs,Pt.KE,Pt.hX,Mc.pH,ne.Nt,Y.a8,Y.dn,Y.n5,Y.$j,pt.gM,wt.Ye,I.JJ,I.Nd],styles:["#description[_ngcontent-%COMP%], #filter[_ngcontent-%COMP%]{max-width:700px;margin-bottom:10px;margin-left:auto;margin-right:auto}.cluster-item[_ngcontent-%COMP%]{flex-grow:1;flex-basis:0;min-width:250px;max-width:350px;margin-bottom:10px}.armor-container[_ngcontent-%COMP%], .plug-sum-col[_ngcontent-%COMP%]{padding-left:5px}.armor-container[_ngcontent-%COMP%]{flex-wrap:wrap}.stat-range[_ngcontent-%COMP%]{height:20px;width:100%;margin-bottom:3px;float:left;background-color:gray}.stat-range-bar[_ngcontent-%COMP%]{height:100%;float:left;background-color:#fff}.stat-range-bar0[_ngcontent-%COMP%]{background-color:#acfff1}.stat-range-bar1[_ngcontent-%COMP%]{background-color:#5e9eff}.stat-range-bar3[_ngcontent-%COMP%]{background-color:#ffc2ac}.stat-range-bar4[_ngcontent-%COMP%]{background-color:#ffb45e}.stat-range-bar2[_ngcontent-%COMP%], .stat-range-bar5[_ngcontent-%COMP%]{background-color:#c246ff}a[_ngcontent-%COMP%]{color:#99afe3}a[_ngcontent-%COMP%]:visited{color:#7294dc}"]}),n})(),Nc=(()=>{class n{constructor(e,o,a){this.db=e,this.inv=o,this.loginService=a}downloadArmorInformation(){var e=this;return(0,y.Z)(function*(){const o=yield e.db.inventoryArmor.toArray(),a=window.URL.createObjectURL(new Blob([JSON.stringify(o,null,2)])),s=document.createElement("a");s.href=a,s.setAttribute("download","d2ap_armor.json"),document.body.appendChild(s),s.click()})()}downloadManifestInformation(){var e=this;return(0,y.Z)(function*(){const o=yield e.db.manifestArmor.toArray(),a=window.URL.createObjectURL(new Blob([JSON.stringify(o,null,1)])),s=document.createElement("a");s.href=a,s.setAttribute("download","d2ap_manifest.json"),document.body.appendChild(s),s.click()})()}resetDatabase(){var e=this;return(0,y.Z)(function*(){yield e.db.resetDatabase(),yield e.inv.refreshAll(!0,!0)})()}resetEverything(){var e=this;return(0,y.Z)(function*(){localStorage.clear(),yield e.db.resetDatabase(),yield e.loginService.logout()})()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(w),t.Y36(Tt),t.Y36(gt))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-account-config-page"]],decls:35,vars:0,consts:[["id","account-config-container"],["color","primary","fxShow","false","fxShow.lt-md","true","mat-raised-button","","routerLink","/",1,"returnbutton"],["color","primary","mat-raised-button","",1,"btn-download",3,"click"],["color","warn","mat-raised-button","",1,"btn-download",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"a",1),t._uU(2," Return to D2ArmorPicker "),t.qZA(),t.TgZ(3,"mat-card")(4,"mat-card-title"),t._uU(5," Account Configuration "),t.qZA(),t.TgZ(6,"mat-card-subtitle"),t._uU(7," The configuration on this page will not be reset when you reset your build settings. "),t.qZA(),t.TgZ(8,"mat-card-content"),t._uU(9,' This will come in a future update. Right now, I just wanted to push the "Debugging" section out. '),t.qZA()(),t.TgZ(10,"mat-card")(11,"mat-card-title"),t._uU(12," Debugging "),t.qZA(),t.TgZ(13,"mat-card-subtitle"),t._uU(14," Some options for debugging purposes. "),t.qZA(),t.TgZ(15,"mat-card-content"),t._uU(16," If the team asks you to send some specific data, you can find it here:"),t._UZ(17,"br"),t.TgZ(18,"a",2),t.NdJ("click",function(){return o.downloadArmorInformation()}),t._uU(19," Download armor information (d2ap_armor.json) "),t.qZA(),t.TgZ(20,"a",2),t.NdJ("click",function(){return o.downloadManifestInformation()}),t._uU(21," Download manifest information (d2ap_manifest.json) "),t.qZA(),t._UZ(22,"br")(23,"br"),t._uU(24," If you experience issues with the local database - for example, exotics not being found, try this:"),t._UZ(25,"br"),t.TgZ(26,"a",3),t.NdJ("click",function(){return o.resetDatabase()}),t._uU(27," Delete Database "),t.qZA(),t._UZ(28,"br"),t._uU(29," If you really want to reset EVERYTHING, use this: "),t._UZ(30,"br"),t.TgZ(31,"a",3),t.NdJ("click",function(){return o.resetEverything()}),t._uU(32," Reset the whole application "),t.qZA()()(),t.TgZ(33,"a",1),t._uU(34," Return to D2ArmorPicker "),t.qZA()())},dependencies:[M.b8,st.zs,Y.a8,Y.dn,Y.n5,Y.$j,ot.yS],styles:[".returnbutton[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:15px;width:100%}#account-config-container[_ngcontent-%COMP%]{max-width:800px;margin-left:auto;margin-right:auto}mat-card[_ngcontent-%COMP%]{margin-bottom:8px}.btn-download[_ngcontent-%COMP%]{margin-right:10px}"]}),n})();var qc=_(4661),Ee=_(7331);const Fc=[{path:"",component:Xe,canActivate:[f],children:[{path:"",component:bc},{path:"help",component:ps},{path:"cluster",component:Sc},{path:"investigate",component:Rc},{path:"theory",loadChildren:()=>_.e(613).then(_.bind(_,8613)).then(n=>n.TheorizerPageModule)},{path:"account",component:Nc}]},{path:"login",component:Ht,canActivate:[C]},{path:"login-bungie",component:Rt},{path:"**",redirectTo:"/"}];let Jc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n,bootstrap:[x]}),n.\u0275inj=t.cJS({imports:[I.ez,qc.V,u.b2,Lt.PW,Et.JF,ot.Bz.forRoot(Fc,{useHash:!0}),te.Iq,U.xu]}),n})();t.B6R(be,function(){return[I.sg,I.O5,_t.xw,_t.SQ,_t.Wh,_t.yH,st.lW,Pt.KE,Pt.hX,Pt.R9,ne.Nt,G.BZ,G.fO,G.as,G.w1,G.Dz,G.nj,G.ge,G.ev,G.XQ,G.Gk,Y.a8,Y.dn,Y.n5,Y.$j,Y.hq,pt.gM,St.Hw,de.YE,de.nU,ve.NW,Ee.qn,Ee.HS,as,zs]},function(){return[I.JJ]}),t.B6R(Ce,function(){return[st.lW,kt.ZT,kt.uh,kt.xY,kt.H8,Ze]},[]),g.N.production&&(0,t.G48)(),u.q6().bootstrapModule(Jc).catch(n=>console.error(n))}},ht=>{ht.O(0,[736],()=>ht(ht.s=1379)),ht.O()}]); \ No newline at end of file diff --git a/main.baf82205f3745635.js b/main.baf82205f3745635.js deleted file mode 100644 index 3ef7ad9f..00000000 --- a/main.baf82205f3745635.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkD2ArmorPicker=self.webpackChunkD2ArmorPicker||[]).push([[179],{443:(ft,at,g)=>{g.d(at,{F:()=>Z});var m=g(7580),t=g(8333),h=g(1043);const Z={[m.U.WhisperOfDurance]:{id:m.U.WhisperOfDurance,name:"Whisper of Durance",description:"Slow that you apply to targets lasts longer. For those abilities that linger, their duration will also increase.",type:t.O.Stasis,bonus:[{stat:h.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:3469412969},[m.U.WhisperOfChains]:{id:m.U.WhisperOfChains,name:"Whisper of Chains",description:"While you are near frozen targets or a friendly Stasis crystal, you take reduced damage from targets.",type:t.O.Stasis,bonus:[{stat:h.WB.Recovery,value:10}],cost:1,requiredArmorAffinity:0,hash:537774540},[m.U.WhisperOfConduction]:{id:m.U.WhisperOfConduction,name:"Whisper of Conduction",description:"Nearby Stasis shards track to your position.",type:t.O.Stasis,bonus:[{stat:h.WB.Intellect,value:10},{stat:h.WB.Resilience,value:10}],cost:1,requiredArmorAffinity:0,hash:2483898429},[m.U.WhisperOfBonds]:{id:m.U.WhisperOfBonds,name:"Whisper of Bonds",description:"Defeating frozen targets generates an Orb of Power.",type:t.O.Stasis,bonus:[{stat:h.WB.Intellect,value:-10}],cost:1,requiredArmorAffinity:0,hash:3469412974},[m.U.WhisperOfHunger]:{id:m.U.WhisperOfHunger,name:"Whisper of Hunger",description:"Increases the melee energy gained from picking up Stasis shards.",type:t.O.Stasis,bonus:[{stat:h.WB.Strength,value:-20}],cost:1,requiredArmorAffinity:0,hash:2483898431},[m.U.WhisperOfFractures]:{id:m.U.WhisperOfFractures,name:"Whisper of Fractures",description:"Your melee energy recharges faster when you are near two or more targets.",type:t.O.Stasis,bonus:[{stat:h.WB.Discipline,value:-10}],cost:1,requiredArmorAffinity:0,hash:537774542},[m.U.WhisperOfImpetus]:{id:m.U.WhisperOfImpetus,name:"Whisper of Impetus",description:"Damaging targets with a Stasis melee reloads your stowed weapons and grants you a temporary boost to weapon ready speed.",type:t.O.Stasis,bonus:[{stat:h.WB.Resilience,value:10}],cost:1,requiredArmorAffinity:0,hash:537774543},[m.U.WhisperOfTorment]:{id:m.U.WhisperOfTorment,name:"Whisper of Torment",description:"You gain grenade energy each time you take damage from targets. Having Frost Armor increases the amount of energy gained.",type:t.O.Stasis,bonus:[{stat:h.WB.Discipline,value:-10}],cost:1,requiredArmorAffinity:0,hash:537774541},[m.U.EchoOfExpulsion]:{id:m.U.EchoOfExpulsion,name:"Echo of Expulsion",description:"Void ability final blows cause targets to explode.",type:t.O.Void,bonus:[{stat:h.WB.Intellect,value:10}],cost:1,requiredArmorAffinity:0,hash:2272984665},[m.U.EchoOfProvision]:{id:m.U.EchoOfProvision,name:"Echo of Provision",description:"Damaging targets with grenades grants melee energy.",type:t.O.Void,bonus:[{stat:h.WB.Strength,value:-10}],cost:1,requiredArmorAffinity:0,hash:2272984664},[m.U.EchoOfPersistence]:{id:m.U.EchoOfPersistence,name:"Echo of Persistence",description:"Void buffs applied to you (Invisibility, Overshield, and Devour) have increased duration.",type:t.O.Void,bonus:[{stat:h.AR.ClassAbilityRegenerationStat,value:-10}],cost:1,requiredArmorAffinity:0,hash:2272984671},[m.U.EchoOfLeeching]:{id:m.U.EchoOfLeeching,name:"Echo of Leeching",description:"Melee final blows start health regeneration for you and nearby allies.",type:t.O.Void,bonus:[{stat:h.WB.Resilience,value:10}],cost:1,requiredArmorAffinity:0,hash:2272984670},[m.U.EchoOfDomineering]:{id:m.U.EchoOfDomineering,name:"Echo of Domineering",description:"After suppressing a target, you gain greatly increased mobility for a short duration, and your equipped weapon is reloaded from reserves.\n\nDefeating suppressed targets creates a Void Breach.",type:t.O.Void,bonus:[{stat:h.WB.Discipline,value:10}],cost:1,requiredArmorAffinity:0,hash:2272984657},[m.U.EchoOfDilation]:{id:m.U.EchoOfDilation,name:"Echo of Dilation",description:"While crouched, you sneak faster and gain enhanced radar resolution.",type:t.O.Void,bonus:[{stat:h.WB.Mobility,value:10},{stat:h.WB.Intellect,value:10}],cost:1,requiredArmorAffinity:0,hash:2272984656},[m.U.EchoOfUndermining]:{id:m.U.EchoOfUndermining,name:"Echo of Undermining",description:"Your Void grenades weaken targets.",type:t.O.Void,bonus:[{stat:h.WB.Discipline,value:-20}],cost:1,requiredArmorAffinity:0,hash:2272984668},[m.U.EchoOfInstability]:{id:m.U.EchoOfInstability,name:"Echo of Instability",description:"Defeating targets with grenades grants Volatile Rounds to your Void weapons.",type:t.O.Void,bonus:[{stat:h.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:2661180600},[m.U.EchoOfHarvest]:{id:m.U.EchoOfHarvest,name:"Echo of Harvest",description:"Defeating weakened targets creates an Orb of Power and a Void Breach.",type:t.O.Void,bonus:[{stat:h.WB.Intellect,value:-10}],cost:1,requiredArmorAffinity:0,hash:2661180601},[m.U.EchoOfObscurity]:{id:m.U.EchoOfObscurity,name:"Echo of Obscurity",description:"Finisher final blows grant Invisibility.",type:t.O.Void,bonus:[{stat:h.WB.Recovery,value:10}],cost:1,requiredArmorAffinity:0,hash:2661180602},[m.U.EchoOfStarvation]:{id:m.U.EchoOfStarvation,name:"Echo of Starvation",description:"Picking up a Void Breach or an Orb of Power grants Devour.",type:t.O.Void,bonus:[{stat:h.WB.Recovery,value:-10}],cost:1,requiredArmorAffinity:0,hash:2661180603},[m.U.EchoOfVigilance]:{id:m.U.EchoOfVigilance,name:"Echo of Vigilance",description:"Defeating a target while your shields are depleted grants you a temporary Void overshield.",type:t.O.Void,bonus:[{stat:h.WB.Recovery,value:-10}],cost:1,requiredArmorAffinity:0,hash:3854948621},[m.U.EmberOfBenelovence]:{id:m.U.EmberOfBenelovence,name:"Ember of Benevolence",description:"Applying restoration, cure, or radiant to allies grants increased grenade, melee, and class ability regeneration for a short duration.",type:t.O.Solar,bonus:[{stat:h.WB.Discipline,value:-10}],cost:1,requiredArmorAffinity:0,hash:362132292},[m.U.EmberOfBeams]:{id:m.U.EmberOfBeams,name:"Ember of Beams",description:"Your Solar Super projectiles have stronger target acquisition.",type:t.O.Solar,bonus:[{stat:h.WB.Intellect,value:10}],cost:1,requiredArmorAffinity:0,hash:362132295},[m.U.EmberOfEmpyrean]:{id:m.U.EmberOfEmpyrean,name:"Ember of Empyrean",description:"Solar weapon or ability final blows extend the duration of restoration and radiant effects applied to you.",type:t.O.Solar,bonus:[{stat:h.WB.Resilience,value:-10}],cost:1,requiredArmorAffinity:0,hash:362132294},[m.U.EmberOfCombustion]:{id:m.U.EmberOfCombustion,name:"Ember of Combustion",description:"Final blows with a Solar Super causes targets to ignite and creates a Firesprite.",type:t.O.Solar,bonus:[{stat:h.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:362132289},[m.U.EmberOfChar]:{id:m.U.EmberOfChar,name:"Ember of Char",description:"Your Solar ignitions spread scorch to affected targets.",type:t.O.Solar,bonus:[{stat:h.WB.Discipline,value:10}],cost:1,requiredArmorAffinity:0,hash:362132291},[m.U.EmberOfTempering]:{id:m.U.EmberOfTempering,name:"Ember of Tempering",description:"Solar weapon final blows grant you and your allies increased recovery for a short duration. Stacks 3 times.\n\nWhile Ember of Tempering is active, your weapons have increased airborne effectiveness, and your Solar weapon final blows create a Firesprite.",type:t.O.Solar,bonus:[{stat:h.WB.Recovery,value:-10}],cost:1,requiredArmorAffinity:0,hash:362132290},[m.U.EmberOfEruption]:{id:m.U.EmberOfEruption,name:"Ember of Eruption",description:"Your Solar ignitions have increased area of effect.",type:t.O.Solar,bonus:[{stat:h.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:1051276348},[m.U.EmberOfWonder]:{id:m.U.EmberOfWonder,name:"Ember of Wonder",description:"Rapidly defeating multiple targets with Solar ignitions generates an Orb of Power.",type:t.O.Solar,bonus:[{stat:h.WB.Resilience,value:10}],cost:1,requiredArmorAffinity:0,hash:1051276350},[m.U.EmberOfSearing]:{id:m.U.EmberOfSearing,name:"Ember of Searing",description:"Defeating scorched targets grants melee energy and creates a Firesprite.",type:t.O.Solar,bonus:[{stat:h.WB.Recovery,value:10}],cost:1,requiredArmorAffinity:0,hash:1051276351},[m.U.EmberOfTorches]:{id:m.U.EmberOfTorches,name:"Ember of Torches",description:"Powered melee attacks against combatants make you and nearby allies radiant.",type:t.O.Solar,bonus:[{stat:h.WB.Discipline,value:-10}],cost:1,requiredArmorAffinity:0,hash:362132288},[m.U.EmberOfMercy]:{id:m.U.EmberOfMercy,name:"Ember of Mercy",description:"When you revive an ally, you and other nearby allies gain restoration.\n\nPicking up a Firesprite grants restoration.",type:t.O.Solar,bonus:[{stat:h.WB.Resilience,value:10}],cost:1,requiredArmorAffinity:0,hash:4180586737},[m.U.SparkOfBrilliance]:{id:m.U.SparkOfBrilliance,name:"Spark of Brilliance",description:"Defeating a blinded target with precision damage creates a blinding explosion.",type:t.O.Arc,bonus:[{stat:h.WB.Intellect,value:10}],cost:1,requiredArmorAffinity:0,hash:3277705905},[m.U.SparkOfFeedback]:{id:m.U.SparkOfFeedback,name:"Spark of Feedback",description:"Taking melee damage briefly increases your outgoing melee damage.",type:t.O.Arc,bonus:[{stat:h.WB.Resilience,value:10}],cost:1,requiredArmorAffinity:0,hash:3277705907},[m.U.SparkOfDischarge]:{id:m.U.SparkOfDischarge,name:"Spark of Discharge",description:"Arc weapon final blows have a chance to create an Ionic Trace.",type:t.O.Arc,bonus:[{stat:h.WB.Strength,value:-10}],cost:1,requiredArmorAffinity:0,hash:1727069362},[m.U.SparkOfFocus]:{id:m.U.SparkOfFocus,name:"Spark of Focus",description:"After sprinting for a short time, your class ability regeneration is increased.",type:t.O.Arc,bonus:[{stat:h.AR.ClassAbilityRegenerationStat,value:-10}],cost:1,requiredArmorAffinity:0,hash:1727069360},[m.U.SparkOfVolts]:{id:m.U.SparkOfVolts,name:"Spark of Volts",description:"Finishers make you amplified.",type:t.O.Arc,bonus:[{stat:h.WB.Recovery,value:10}],cost:1,requiredArmorAffinity:0,hash:3277705904},[m.U.SparkOfResistance]:{id:m.U.SparkOfResistance,name:"Spark of Resistance",description:"While surrounded by combatants, you are more resistant to incoming damage.",type:t.O.Arc,bonus:[{stat:h.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:1727069366},[m.U.SparkOfShock]:{id:m.U.SparkOfShock,name:"Spark of Shock",description:"Your Arc grenades jolt targets.",type:t.O.Arc,bonus:[{stat:h.WB.Discipline,value:-10}],cost:1,requiredArmorAffinity:0,hash:1727069364},[m.U.ThreadOfFury]:{id:m.U.ThreadOfFury,name:"Thread of Fury",description:"Damaging targets with a Tangle grants melee energy.",type:t.O.Strand,bonus:[{stat:h.WB.Strength,value:-10}],cost:1,requiredArmorAffinity:0,hash:4208512219},[m.U.ThreadOfAscent]:{id:m.U.ThreadOfAscent,name:"Thread of Ascent",description:"Activating your grenade ability reloads your equipped weapon and grants bonus airborne effectiveness and handling for a short duration.",type:t.O.Strand,bonus:[{stat:h.WB.Mobility,value:10}],cost:1,requiredArmorAffinity:0,hash:4208512216},[m.U.ThreadOfFinality]:{id:m.U.ThreadOfFinality,name:"Thread of Finality",description:"Finisher final blows create Threadlings.",type:t.O.Strand,bonus:[{stat:h.WB.Recovery,value:10}],cost:1,requiredArmorAffinity:0,hash:4208512217},[m.U.ThreadOfWarding]:{id:m.U.ThreadOfWarding,name:"Thread of Warding",description:"Picking up an Orb of Power grants Woven Mail.",type:t.O.Strand,bonus:[{stat:h.WB.Resilience,value:-10}],cost:1,requiredArmorAffinity:0,hash:4208512222},[m.U.ThreadOfTransmutation]:{id:m.U.ThreadOfTransmutation,name:"Thread of Transmutation",description:"While you have Woven Mail, weapon final blows create a Tangle.",type:t.O.Strand,bonus:[{stat:h.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:4208512221},[m.U.ThreadOfEvolution]:{id:m.U.ThreadOfEvolution,name:"Thread of Evolution",description:"Threadlings travel farther and deal additional damage.",type:t.O.Strand,bonus:[{stat:h.WB.Intellect,value:10}],cost:1,requiredArmorAffinity:0,hash:4208512211},[m.U.ThreadOfBinding]:{id:m.U.ThreadOfBinding,name:"Thread of Binding",description:"Super final blows emit a suspending burst from the target.",type:t.O.Strand,bonus:[{stat:h.WB.Resilience,value:10}],cost:1,requiredArmorAffinity:0,hash:3192552688},[m.U.ThreadOfGeneration]:{id:m.U.ThreadOfGeneration,name:"Thread of Generation",description:"Dealing damage generates grenade energy.",type:t.O.Strand,bonus:[{stat:h.WB.Discipline,value:-10}],cost:1,requiredArmorAffinity:0,hash:3192552691},[m.U.ThreadOfPropagation]:{id:m.U.ThreadOfPropagation,name:"Thread of Propagation",description:"Powered melee final blows grant your Strand weapons Unraveling Rounds.",type:t.O.Strand,bonus:[{stat:h.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:4208512210},[m.U.FacetOfAwakening]:{id:m.U.FacetOfAwakening,name:"Facet of Awakening",description:"Rapid elemental final blows and Super final blows generate an elemental pickup of the matching damage type.",type:t.O.Prismatic,bonus:[{stat:h.WB.Resilience,value:10}],cost:1,requiredArmorAffinity:0,hash:124726505},[m.U.FacetOfCourage]:{id:m.U.FacetOfCourage,name:"Facet of Courage",description:"Your Light abilities deal increased damage to targets afflicted with Darkness debuffs.",type:t.O.Prismatic,bonus:[{stat:h.WB.Discipline,value:10}],cost:1,requiredArmorAffinity:0,hash:2626922124},[m.U.FacetOfDawn]:{id:m.U.FacetOfDawn,name:"Facet of Dawn",description:"Powered melee hits against targets make you Radiant. Powered melee final blows make both you and nearby allies Radiant.",type:t.O.Prismatic,bonus:[{stat:h.WB.Strength,value:-10}],cost:1,requiredArmorAffinity:0,hash:2626922126},[m.U.FacetOfDefiance]:{id:m.U.FacetOfDefiance,name:"Facet of Defiance",description:"Finishers create a detonation that either jolts, scorches, slows, severs, or makes targets volatile based on the damage type of your equipped Super.",type:t.O.Prismatic,bonus:[{stat:h.WB.Recovery,value:10}],cost:1,requiredArmorAffinity:0,hash:74393640},[m.U.FacetOfDevotion]:{id:m.U.FacetOfDevotion,name:"Facet of Devotion",description:"Defeating targets afflicted with a Darkness debuff grants bonus Light Transcendence energy.",type:t.O.Prismatic,bonus:[{stat:h.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:2626922125},[m.U.FacetOfDominance]:{id:m.U.FacetOfDominance,name:"Facet of Dominance",description:"Your Void grenades weaken targets, and your Arc grenades jolt targets.",type:t.O.Prismatic,bonus:[{stat:h.WB.Discipline,value:-10}],cost:1,requiredArmorAffinity:0,hash:124726504},[m.U.FacetOfGrace]:{id:m.U.FacetOfGrace,name:"Facet of Grace",description:"Defeating targets with Kinetic weapons grants you bonus Transcendence energy. Defeating targets with your Super grants you and nearby allies bonus Transcendence energy.",type:t.O.Prismatic,bonus:[{stat:h.WB.Resilience,value:-10}],cost:1,requiredArmorAffinity:0,hash:2626922121},[m.U.FacetOfHonor]:{id:m.U.FacetOfHonor,name:"Facet of Honor",description:"Collecting an elemental pickup or destroying a Tangle grants Transcendence energy of the same type.",type:t.O.Prismatic,bonus:[{stat:h.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:124726501},[m.U.FacetOfJustice]:{id:m.U.FacetOfJustice,name:"Facet of Justice",description:"While Transcendent, your ability final blows explode.",type:t.O.Prismatic,bonus:[{stat:h.WB.Intellect,value:10}],cost:1,requiredArmorAffinity:0,hash:2626922115},[m.U.FacetOfProtection]:{id:m.U.FacetOfProtection,name:"Facet of Protection",description:"While surrounded by enemies, you are more resistant to incoming damage.",type:t.O.Prismatic,bonus:[{stat:h.WB.Strength,value:10}],cost:1,requiredArmorAffinity:0,hash:2626922120},[m.U.FacetOfPurpose]:{id:m.U.FacetOfPurpose,name:"Facet of Purpose",description:"Picking up an Orb of Power grants either Amplified, Restoration, Frost Armor, Woven Mail, or Overshield, based on the damage type of your equipped super.",type:t.O.Prismatic,bonus:[{stat:h.WB.Recovery,value:-10}],cost:1,requiredArmorAffinity:0,hash:124726498},[m.U.FacetOfRuin]:{id:m.U.FacetOfRuin,name:"Facet of Ruin",description:"Increases the size and damage of the burst when you shatter a Stasis crystal or frozen target and increases the area of effect of Solar ignitions.",type:t.O.Prismatic,bonus:[{stat:h.WB.Mobility,value:10}],cost:1,requiredArmorAffinity:0,hash:124726499},[m.U.FacetOfSacrifice]:{id:m.U.FacetOfSacrifice,name:"Facet of Sacrifice",description:"While you have a Light buff, ability final blows grant bonus Darkness Transcendence energy.",type:t.O.Prismatic,bonus:[{stat:h.WB.Discipline,value:10}],cost:1,requiredArmorAffinity:0,hash:124726502}}},3244:(ft,at,g)=>{g.d(at,{Io:()=>t,Qj:()=>m,dM:()=>h});const m=5,t=-1,h=-2},4682:(ft,at,g)=>{g.d(at,{v:()=>t});var m=g(6438);class t extends m.ZP{constructor(){super("d2armorpicker-v2"),this.version(25).stores({manifestArmor:"id++, hash, isExotic",inventoryArmor:"id++, itemInstanceId, isExotic, hash, name, masterworked, clazz, slot, source",manifestCollectibles:"id++, hash",vendorNames:"id++, vendorId"})}}},6471:(ft,at,g)=>{g.d(at,{y:()=>m});var m=(()=>{return(t=m||(m={}))[t.ArmorSlotNone=0]="ArmorSlotNone",t[t.ArmorSlotHelmet=1]="ArmorSlotHelmet",t[t.ArmorSlotGauntlet=2]="ArmorSlotGauntlet",t[t.ArmorSlotChest=3]="ArmorSlotChest",t[t.ArmorSlotLegs=4]="ArmorSlotLegs",t[t.ArmorSlotClass=5]="ArmorSlotClass",m;var t})()},1043:(ft,at,g)=>{g.d(at,{AR:()=>ht,DH:()=>Ot,ED:()=>T,ID:()=>vt,K9:()=>h,Mi:()=>Z,Pn:()=>y,Sy:()=>Rt,WB:()=>t,X9:()=>Et,cM:()=>xt,iV:()=>m,lp:()=>O,vr:()=>pt});var m=(()=>{return(x=m||(m={}))[x.NONE=0]="NONE",x[x.MINOR_MOBILITY=1]="MINOR_MOBILITY",x[x.MAJOR_MOBILITY=2]="MAJOR_MOBILITY",x[x.ARTIFICE_MOBILITY=3]="ARTIFICE_MOBILITY",x[x.MINOR_RESILIENCE=4]="MINOR_RESILIENCE",x[x.MAJOR_RESILIENCE=5]="MAJOR_RESILIENCE",x[x.ARTIFICE_RESILIENCE=6]="ARTIFICE_RESILIENCE",x[x.MINOR_RECOVERY=7]="MINOR_RECOVERY",x[x.MAJOR_RECOVERY=8]="MAJOR_RECOVERY",x[x.ARTIFICE_RECOVERY=9]="ARTIFICE_RECOVERY",x[x.MINOR_DISCIPLINE=10]="MINOR_DISCIPLINE",x[x.MAJOR_DISCIPLINE=11]="MAJOR_DISCIPLINE",x[x.ARTIFICE_DISCIPLINE=12]="ARTIFICE_DISCIPLINE",x[x.MINOR_INTELLECT=13]="MINOR_INTELLECT",x[x.MAJOR_INTELLECT=14]="MAJOR_INTELLECT",x[x.ARTIFICE_INTELLECT=15]="ARTIFICE_INTELLECT",x[x.MINOR_STRENGTH=16]="MINOR_STRENGTH",x[x.MAJOR_STRENGTH=17]="MAJOR_STRENGTH",x[x.ARTIFICE_STRENGTH=18]="ARTIFICE_STRENGTH",m;var x})(),t=(()=>{return(x=t||(t={}))[x.Mobility=0]="Mobility",x[x.Resilience=1]="Resilience",x[x.Recovery=2]="Recovery",x[x.Discipline=3]="Discipline",x[x.Intellect=4]="Intellect",x[x.Strength=5]="Strength",t;var x})();const h={[m.NONE]:[t.Strength,0,0,0],[m.MINOR_MOBILITY]:[t.Mobility,5,1,1703647492],[m.MAJOR_MOBILITY]:[t.Mobility,10,3,4183296050],[m.ARTIFICE_MOBILITY]:[t.Mobility,3,0,2322202118],[m.MINOR_RESILIENCE]:[t.Resilience,5,2,2532323436],[m.MAJOR_RESILIENCE]:[t.Resilience,10,4,1180408010],[m.ARTIFICE_RESILIENCE]:[t.Resilience,3,0,199176566],[m.MINOR_RECOVERY]:[t.Recovery,5,2,1237786518],[m.MAJOR_RECOVERY]:[t.Recovery,10,4,4204488676],[m.ARTIFICE_RECOVERY]:[t.Recovery,3,0,539459624],[m.MINOR_DISCIPLINE]:[t.Discipline,5,1,4021790309],[m.MAJOR_DISCIPLINE]:[t.Discipline,10,3,1435557120],[m.ARTIFICE_DISCIPLINE]:[t.Discipline,3,0,617569843],[m.MINOR_INTELLECT]:[t.Intellect,5,2,350061697],[m.MAJOR_INTELLECT]:[t.Intellect,10,4,2724608735],[m.ARTIFICE_INTELLECT]:[t.Intellect,3,0,3160845295],[m.MINOR_STRENGTH]:[t.Strength,5,1,2639422088],[m.MAJOR_STRENGTH]:[t.Strength,10,3,4287799666],[m.ARTIFICE_STRENGTH]:[t.Strength,3,0,2507624050]},Z={[t.Mobility]:"Mobility",[t.Resilience]:"Resilience",[t.Recovery]:"Recovery",[t.Discipline]:"Discipline",[t.Intellect]:"Intellect",[t.Strength]:"Strength"},O={[t.Mobility]:"https://www.bungie.net/common/destiny2_content/icons/e26e0e93a9daf4fdd21bf64eb9246340.png",[t.Resilience]:"https://www.bungie.net/common/destiny2_content/icons/202ecc1c6febeb6b97dafc856e863140.png",[t.Recovery]:"https://www.bungie.net/common/destiny2_content/icons/128eee4ee7fc127851ab32eac6ca91cf.png",[t.Discipline]:"https://www.bungie.net/common/destiny2_content/icons/79be2d4adef6a19203f7385e5c63b45b.png",[t.Intellect]:"https://www.bungie.net/common/destiny2_content/icons/d1c154469670e9a592c9d4cbdcae5764.png",[t.Strength]:"https://www.bungie.net/common/destiny2_content/icons/ea5af04ccd6a3470a44fd7bb0f66e2f7.png"};var ht=(()=>{return(x=ht||(ht={}))[x.ClassAbilityRegenerationStat=10]="ClassAbilityRegenerationStat",ht;var x})(),y=(()=>{return(x=y||(y={}))[x.None=0]="None",x[x.SlotCrotasEnd=2]="SlotCrotasEnd",x[x.SlotRootOfNightmares=3]="SlotRootOfNightmares",x[x.SlotKingsFall=4]="SlotKingsFall",x[x.SlotVowOfTheDisciple=5]="SlotVowOfTheDisciple",x[x.SlotVaultOfGlass=6]="SlotVaultOfGlass",x[x.SlotDeepStoneCrypt=7]="SlotDeepStoneCrypt",x[x.SlotGardenOfSalvation=8]="SlotGardenOfSalvation",x[x.SlotLastWish=9]="SlotLastWish",x[x.SlotArtifice=10]="SlotArtifice",x[x.PerkIronBanner=11]="PerkIronBanner",x[x.SlotNightmare=12]="SlotNightmare",x[x.GuardianGamesClassItem=18]="GuardianGamesClassItem",x[x.PerkEchoesOfGlory=20]="PerkEchoesOfGlory",x[x.SlotSalvationsEdge=21]="SlotSalvationsEdge",x[x.COUNT=22]="COUNT",y;var x})();const T={1760565003:y.PerkEchoesOfGlory},xt={[y.None]:"None",[y.SlotCrotasEnd]:"Crota's End Modslot",[y.SlotRootOfNightmares]:"Root of Nightmares Modslot",[y.SlotKingsFall]:"King's Fall Modslot",[y.SlotVowOfTheDisciple]:"Vow of the Disciple Modslot",[y.SlotVaultOfGlass]:"Vault of Glass Modslot",[y.SlotDeepStoneCrypt]:"Deep Stone Crypt Modslot",[y.SlotGardenOfSalvation]:"Garden of Salvation Modslot",[y.SlotLastWish]:"Last Wish Modslot",[y.SlotArtifice]:"Artifice Modslot",[y.PerkIronBanner]:"Iron Banner Perk",[y.SlotNightmare]:"Nightmare Hunt Modslot",[y.GuardianGamesClassItem]:"Guardian Games",[y.PerkEchoesOfGlory]:"Echoes of Glory Perk",[y.SlotSalvationsEdge]:"Salvation's Edge Modslot",[y.COUNT]:""},Et={[y.None]:"https://www.bungie.net/img/misc/missing_icon_d2.png",[y.SlotCrotasEnd]:"https://www.bungie.net/common/destiny2_content/icons/7ddce334fe8391848f408227439c1d7a.png",[y.SlotRootOfNightmares]:"https://www.bungie.net/common/destiny2_content/icons/f2b6ec58e14244e4972705897667c246.png",[y.SlotKingsFall]:"https://www.bungie.net/common/destiny2_content/icons/0e515c7cf25a2f2350b788e6f5b7f8eb.png",[y.SlotVowOfTheDisciple]:"https://www.bungie.net/common/destiny2_content/icons/b84b6ea72dd05de7123aa2ae87ba0d6a.png",[y.SlotVaultOfGlass]:"https://www.bungie.net/common/destiny2_content/icons/7c9a2d95113de19c5acdbed57775abf4.png",[y.SlotDeepStoneCrypt]:"https://www.bungie.net/common/destiny2_content/icons/d6452d010cfe72a51a9089ec68ab223c.png",[y.SlotGardenOfSalvation]:"https://www.bungie.net/common/destiny2_content/icons/53d6e3505cd03d4026b3dbbd9ccc19b6.jpg",[y.SlotLastWish]:"https://www.bungie.net/common/destiny2_content/icons/76f0c1520fa384ceb27bd2469225dd8a.png",[y.SlotArtifice]:"https://www.bungie.net/common/destiny2_content/icons/46eec78bb7864641bbd7ba1fd4f9f248.png",[y.PerkIronBanner]:"https://bungie.net/common/destiny2_content/icons/DestinyActivityModeDefinition_fe57052d7cf971f7502daa75a2ca2437.png",[y.SlotNightmare]:"https://www.bungie.net/common/destiny2_content/icons/53d6e3505cd03d4026b3dbbd9ccc19b6.jpg",[y.GuardianGamesClassItem]:"https://www.bungie.net/common/destiny2_content/icons/DestinyEventCardDefinition_ce6c2cf855dce694bcc89803b6bc44b7.png",[y.SlotSalvationsEdge]:"https://www.bungie.net/common/destiny2_content/icons/f4a1f99b49ecf412726d71ea9ee15540.png",[y.PerkEchoesOfGlory]:"https://www.bungie.net/common/destiny2_content/icons/c67322c917e16f3b8a4cb962e3f11166.png",[y.COUNT]:""},Ot={[y.SlotCrotasEnd]:717667840,[y.SlotRootOfNightmares]:4144354978,[y.SlotKingsFall]:1728096240,[y.SlotVowOfTheDisciple]:2447143568,[y.SlotVaultOfGlass]:3738398030,[y.SlotDeepStoneCrypt]:4055462131,[y.SlotGardenOfSalvation]:706611068,[y.SlotLastWish]:1679876242,[y.SlotArtifice]:3727270518,[y.PerkIronBanner]:2472875850,[y.SlotNightmare]:1180997867,[y.SlotSalvationsEdge]:4059283783,[y.PerkEchoesOfGlory]:2352831367},vt={[y.None]:"",[y.SlotCrotasEnd]:"modslot:crotasend",[y.SlotRootOfNightmares]:"modslot:rootofnightmares",[y.SlotKingsFall]:"modslot:kingsfall",[y.SlotVowOfTheDisciple]:"modslot:vowofthedisciple",[y.SlotVaultOfGlass]:"modslot:vaultofglass",[y.SlotDeepStoneCrypt]:"modslot:deepstonecrypt",[y.SlotGardenOfSalvation]:"modslot:gardenofsalvation",[y.SlotLastWish]:"modslot:lastwish",[y.SlotArtifice]:'perkname:"artifice armor"',[y.PerkIronBanner]:'perkname:"iron lord\'s pride"',[y.SlotNightmare]:"modslot:nightmare",[y.GuardianGamesClassItem]:"(hash:537041732 or hash:366019830 or hash:1013401891)",[y.PerkEchoesOfGlory]:'exactperk:"echoes of glory"',[y.SlotSalvationsEdge]:"(source:salvationsedge is:armor)",[y.COUNT]:""},pt={0:"Any",1:"Arc",2:"Solar",3:"Void",6:"Stasis",4:"Ghost",5:"Subclass"},Rt={0:"",1:"https://www.bungie.net/common/destiny2_content/icons/DestinyDamageTypeDefinition_092d066688b879c807c3b460afdd61e6.png",2:"https://www.bungie.net/common/destiny2_content/icons/DestinyDamageTypeDefinition_2a1773e10968f2d088b97c22b22bba9e.png",3:"https://www.bungie.net/common/destiny2_content/icons/DestinyDamageTypeDefinition_ceb2f6197dccf3958bb31cc783eb97a0.png",6:"https://www.bungie.net/common/destiny2_content/icons/DestinyDamageTypeDefinition_530c4c3e7981dc2aefd24fd3293482bf.png",4:"",5:""}},1650:(ft,at,g)=>{g.d(at,{w:()=>m});var m=(()=>{return(t=m||(m={}))[t.None=0]="None",t[t.ReduceUsedModSockets=1]="ReduceUsedModSockets",t[t.ReduceUsedModPoints=2]="ReduceUsedModPoints",m;var t})()},7580:(ft,at,g)=>{g.d(at,{U:()=>m});var m=(()=>{return(t=m||(m={}))[t.WhisperOfDurance=1e3]="WhisperOfDurance",t[t.WhisperOfChains=1001]="WhisperOfChains",t[t.WhisperOfConduction=1002]="WhisperOfConduction",t[t.WhisperOfBonds=1101]="WhisperOfBonds",t[t.WhisperOfHunger=1102]="WhisperOfHunger",t[t.WhisperOfFractures=1103]="WhisperOfFractures",t[t.WhisperOfTorment=1104]="WhisperOfTorment",t[t.EchoOfExpulsion=1200]="EchoOfExpulsion",t[t.EchoOfProvision=1201]="EchoOfProvision",t[t.EchoOfPersistence=1202]="EchoOfPersistence",t[t.EchoOfLeeching=1203]="EchoOfLeeching",t[t.EchoOfDomineering=1204]="EchoOfDomineering",t[t.EchoOfDilation=1205]="EchoOfDilation",t[t.EchoOfUndermining=1206]="EchoOfUndermining",t[t.EchoOfInstability=1207]="EchoOfInstability",t[t.EchoOfHarvest=1208]="EchoOfHarvest",t[t.EchoOfObscurity=1209]="EchoOfObscurity",t[t.EchoOfStarvation=1210]="EchoOfStarvation",t[t.EchoOfVigilance=1211]="EchoOfVigilance",t[t.EmberOfBenelovence=1300]="EmberOfBenelovence",t[t.EmberOfBeams=1301]="EmberOfBeams",t[t.EmberOfEmpyrean=1302]="EmberOfEmpyrean",t[t.EmberOfCombustion=1303]="EmberOfCombustion",t[t.EmberOfChar=1304]="EmberOfChar",t[t.EmberOfTempering=1305]="EmberOfTempering",t[t.EmberOfEruption=1306]="EmberOfEruption",t[t.EmberOfWonder=1307]="EmberOfWonder",t[t.EmberOfSearing=1308]="EmberOfSearing",t[t.EmberOfTorches=1309]="EmberOfTorches",t[t.EmberOfMercy=1310]="EmberOfMercy",t[t.SparkOfBrilliance=1400]="SparkOfBrilliance",t[t.SparkOfFeedback=1401]="SparkOfFeedback",t[t.SparkOfDischarge=1402]="SparkOfDischarge",t[t.SparkOfFocus=1403]="SparkOfFocus",t[t.SparkOfVolts=1404]="SparkOfVolts",t[t.SparkOfResistance=1405]="SparkOfResistance",t[t.SparkOfShock=1406]="SparkOfShock",t[t.ThreadOfFury=1600]="ThreadOfFury",t[t.ThreadOfAscent=1601]="ThreadOfAscent",t[t.ThreadOfFinality=1602]="ThreadOfFinality",t[t.ThreadOfWarding=1603]="ThreadOfWarding",t[t.ThreadOfTransmutation=1604]="ThreadOfTransmutation",t[t.ThreadOfEvolution=1605]="ThreadOfEvolution",t[t.ThreadOfBinding=1606]="ThreadOfBinding",t[t.ThreadOfGeneration=1607]="ThreadOfGeneration",t[t.ThreadOfPropagation=1608]="ThreadOfPropagation",t[t.WhisperOfImpetus=537774543]="WhisperOfImpetus",t[t.FacetOfAwakening=1700]="FacetOfAwakening",t[t.FacetOfCourage=1701]="FacetOfCourage",t[t.FacetOfDawn=1702]="FacetOfDawn",t[t.FacetOfDefiance=1703]="FacetOfDefiance",t[t.FacetOfDevotion=1704]="FacetOfDevotion",t[t.FacetOfDominance=1705]="FacetOfDominance",t[t.FacetOfGrace=1706]="FacetOfGrace",t[t.FacetOfHonor=1707]="FacetOfHonor",t[t.FacetOfJustice=1708]="FacetOfJustice",t[t.FacetOfProtection=1709]="FacetOfProtection",t[t.FacetOfPurpose=1710]="FacetOfPurpose",t[t.FacetOfRuin=1711]="FacetOfRuin",t[t.FacetOfSacrifice=1712]="FacetOfSacrifice",m;var t})()},8333:(ft,at,g)=>{g.d(at,{O:()=>m});var m=(()=>{return(t=m||(m={}))[t.CombatStyleMod=0]="CombatStyleMod",t[t.Stasis=1]="Stasis",t[t.Void=2]="Void",t[t.Solar=3]="Solar",t[t.Arc=4]="Arc",t[t.Strand=5]="Strand",t[t.Prismatic=6]="Prismatic",t[t.RetrofitMods=7]="RetrofitMods",m;var t})()},4661:(ft,at,g)=>{g.d(at,{V:()=>R});var m=g(4859),t=g(9549),h=g(4385),Z=g(3238),O=g(7314),ht=g(4144),y=g(455),T=g(2143),xt=g(3546),Et=g(266),Ot=g(3162),vt=g(7392),pt=g(6308),Rt=g(8739),x=g(3683),Vt=g(3217),gt=g(811),st=g(6338),L=g(7084),lt=g(5412),Ht=g(7009),Ft=g(1572),_=g(3848),C=g(7331),U=g(3267),E=g(4006),q=g(9814),J=g(4650);let R=(()=>{class c{}return c.\u0275fac=function(b){return new(b||c)},c.\u0275mod=J.oAB({type:c}),c.\u0275inj=J.cJS({imports:[m.ot,t.lN,h.LD,Z.Ng,O.KP,ht.c,y.rP,T.p0,xt.QW,Et.AV,Ot.Cv,vt.Ps,pt.JX,Rt.TU,x.g0,Vt.Tx,gt.vV,st.ie,L.To,lt.Is,Ht.ZX,Ft.Cq,_.Nh,C.Hi,U.SJ,E.UX,E.u5,q.o9,q.o9,E.UX,E.u5,m.ot,t.lN,h.LD,Z.Ng,O.KP,ht.c,y.rP,T.p0,xt.QW,Et.AV,Ot.Cv,vt.Ps,pt.JX,Rt.TU,x.g0,Vt.Tx,gt.vV,st.ie,L.To,lt.Is,Ht.ZX,Ft.Cq,_.Nh,C.Hi,U.SJ]}),c})()},6982:(ft,at,g)=>{g.d(at,{jG:()=>Ht,_1:()=>Ft});var m=g(5861),t=g(6471),h=g(3244),Z=g(443),O=g(1043),ht=g(2340);const y={1:[[2,1,0,11],[2,3,0,21],[2,1,1,21],[2,1,2,31]],2:[[4,0,0,12],[4,2,0,22],[4,0,1,22],[4,4,0,32],[4,0,2,32]],3:[[1,0,0,3],[1,2,0,13],[1,0,1,13],[1,4,0,23],[1,2,1,23],[1,0,2,23],[1,2,2,33]],4:[[3,1,0,14],[3,3,0,24],[3,1,1,24],[3,1,2,34]],5:[[0,1,0,5],[5,0,0,15],[0,3,0,15],[0,1,1,15],[5,2,0,25],[5,0,1,25],[0,3,1,25],[0,1,2,25],[5,4,0,35],[5,0,2,35],[0,3,2,35]],6:[[2,0,0,6],[2,2,0,16],[2,0,1,16],[2,4,0,26],[2,2,1,26],[2,0,2,26],[2,2,2,36],[2,0,3,36],[2,2,3,46]],7:[[4,1,0,17],[4,3,0,27],[4,1,1,27],[4,5,0,37],[4,1,2,37],[4,1,3,47]],8:[[1,1,0,8],[1,3,0,18],[1,1,1,18],[1,5,0,28],[1,3,1,28],[1,1,2,28],[1,3,2,38],[1,1,3,38]],9:[[3,0,0,9],[3,2,0,19],[3,0,1,19],[3,4,0,29],[3,2,1,29],[3,0,2,29],[3,2,2,39],[3,0,3,39],[3,2,3,49]],10:[[0,2,0,10],[0,0,1,10],[5,1,0,20],[0,4,0,20],[0,2,1,20],[0,0,2,20],[5,3,0,30],[5,1,1,30],[0,4,1,30],[0,2,2,30],[0,0,3,30],[5,5,0,40],[5,1,2,40],[0,2,3,40],[5,1,3,50]],11:[[2,1,0,11],[2,3,0,21],[2,1,1,21],[2,5,0,31],[2,3,1,31],[2,1,2,31],[2,3,2,41],[2,1,3,41]],12:[[4,0,0,12],[4,2,0,22],[4,0,1,22],[4,4,0,32],[4,2,1,32],[4,0,2,32],[4,2,2,42],[4,0,3,42],[4,2,3,52]],13:[[1,2,0,13],[1,0,1,13],[1,4,0,23],[1,2,1,23],[1,0,2,23],[1,4,1,33],[1,2,2,33],[1,0,3,33],[1,2,3,43]],14:[[3,1,0,14],[3,3,0,24],[3,1,1,24],[3,5,0,34],[3,3,1,34],[3,1,2,34],[3,3,2,44],[3,1,3,44]],15:[[5,0,0,15],[0,3,0,15],[0,1,1,15],[5,2,0,25],[0,5,0,25],[5,0,1,25],[0,3,1,25],[0,1,2,25],[5,4,0,35],[5,2,1,35],[5,0,2,35],[0,3,2,35],[0,1,3,35],[5,2,2,45],[5,0,3,45],[5,2,3,55]],16:[[2,2,0,16],[2,0,1,16],[2,4,0,26],[2,2,1,26],[2,0,2,26],[2,4,1,36],[2,2,2,36],[2,0,3,36],[2,2,3,46],[2,0,4,46]],17:[[4,1,0,17],[4,3,0,27],[4,1,1,27],[4,5,0,37],[4,3,1,37],[4,1,2,37],[4,3,2,47],[4,1,3,47],[4,1,4,57]],18:[[1,3,0,18],[1,1,1,18],[1,5,0,28],[1,3,1,28],[1,1,2,28],[1,3,2,38],[1,1,3,38],[1,1,4,48]],19:[[3,2,0,19],[3,0,1,19],[3,4,0,29],[3,2,1,29],[3,0,2,29],[3,4,1,39],[3,2,2,39],[3,0,3,39],[3,2,3,49],[3,0,4,49]],20:[[5,1,0,20],[0,4,0,20],[0,2,1,20],[0,0,2,20],[5,3,0,30],[5,1,1,30],[0,4,1,30],[0,2,2,30],[0,0,3,30],[5,5,0,40],[5,3,1,40],[5,1,2,40],[0,2,3,40],[0,0,4,40],[5,3,2,50],[5,1,3,50],[5,1,4,60]],21:[[2,3,0,21],[2,1,1,21],[2,5,0,31],[2,3,1,31],[2,1,2,31],[2,3,2,41],[2,1,3,41],[2,1,4,51]],22:[[4,2,0,22],[4,0,1,22],[4,4,0,32],[4,2,1,32],[4,0,2,32],[4,4,1,42],[4,2,2,42],[4,0,3,42],[4,2,3,52],[4,0,4,52]],23:[[1,4,0,23],[1,2,1,23],[1,0,2,23],[1,4,1,33],[1,2,2,33],[1,0,3,33],[1,2,3,43],[1,0,4,43]],24:[[3,3,0,24],[3,1,1,24],[3,5,0,34],[3,3,1,34],[3,1,2,34],[3,3,2,44],[3,1,3,44],[3,1,4,54]],25:[[5,2,0,25],[0,5,0,25],[5,0,1,25],[0,3,1,25],[0,1,2,25],[5,4,0,35],[5,2,1,35],[5,0,2,35],[0,3,2,35],[0,1,3,35],[5,4,1,45],[5,2,2,45],[5,0,3,45],[0,1,4,45],[5,2,3,55],[5,0,4,55]],26:[[2,4,0,26],[2,2,1,26],[2,0,2,26],[2,4,1,36],[2,2,2,36],[2,0,3,36],[2,2,3,46],[2,0,4,46],[2,0,5,56]],27:[[4,3,0,27],[4,1,1,27],[4,5,0,37],[4,3,1,37],[4,1,2,37],[4,3,2,47],[4,1,3,47],[4,1,4,57]],28:[[1,5,0,28],[1,3,1,28],[1,1,2,28],[1,3,2,38],[1,1,3,38],[1,1,4,48]],29:[[3,4,0,29],[3,2,1,29],[3,0,2,29],[3,4,1,39],[3,2,2,39],[3,0,3,39],[3,2,3,49],[3,0,4,49],[3,0,5,59]],30:[[5,3,0,30],[5,1,1,30],[0,4,1,30],[0,2,2,30],[0,0,3,30],[5,5,0,40],[5,3,1,40],[5,1,2,40],[0,2,3,40],[0,0,4,40],[5,3,2,50],[5,1,3,50],[0,0,5,50],[5,1,4,60]],31:[[2,5,0,31],[2,3,1,31],[2,1,2,31],[2,3,2,41],[2,1,3,41],[2,1,4,51]],32:[[4,4,0,32],[4,2,1,32],[4,0,2,32],[4,4,1,42],[4,2,2,42],[4,0,3,42],[4,2,3,52],[4,0,4,52],[4,0,5,62]],33:[[1,4,1,33],[1,2,2,33],[1,0,3,33],[1,2,3,43],[1,0,4,43],[1,0,5,53]],34:[[3,5,0,34],[3,3,1,34],[3,1,2,34],[3,3,2,44],[3,1,3,44],[3,1,4,54]],35:[[5,4,0,35],[5,2,1,35],[5,0,2,35],[0,3,2,35],[0,1,3,35],[5,4,1,45],[5,2,2,45],[5,0,3,45],[0,1,4,45],[5,2,3,55],[5,0,4,55],[5,0,5,65]],36:[[2,4,1,36],[2,2,2,36],[2,0,3,36],[2,2,3,46],[2,0,4,46],[2,0,5,56]],37:[[4,5,0,37],[4,3,1,37],[4,1,2,37],[4,3,2,47],[4,1,3,47],[4,1,4,57]],38:[[1,3,2,38],[1,1,3,38],[1,1,4,48]],39:[[3,4,1,39],[3,2,2,39],[3,0,3,39],[3,2,3,49],[3,0,4,49],[3,0,5,59]],40:[[5,5,0,40],[5,3,1,40],[5,1,2,40],[0,2,3,40],[0,0,4,40],[5,3,2,50],[5,1,3,50],[0,0,5,50],[5,1,4,60]],41:[[2,3,2,41],[2,1,3,41],[2,1,4,51]],42:[[4,4,1,42],[4,2,2,42],[4,0,3,42],[4,2,3,52],[4,0,4,52],[4,0,5,62]],43:[[1,2,3,43],[1,0,4,43],[1,0,5,53]],44:[[3,3,2,44],[3,1,3,44],[3,1,4,54]],45:[[5,4,1,45],[5,2,2,45],[5,0,3,45],[0,1,4,45],[5,2,3,55],[5,0,4,55],[5,0,5,65]],46:[[2,2,3,46],[2,0,4,46],[2,0,5,56]],47:[[4,3,2,47],[4,1,3,47],[4,1,4,57]],48:[[1,1,4,48]],49:[[3,2,3,49],[3,0,4,49],[3,0,5,59]],50:[[5,3,2,50],[5,1,3,50],[0,0,5,50],[5,1,4,60]],51:[[2,1,4,51]],52:[[4,2,3,52],[4,0,4,52],[4,0,5,62]],53:[[1,0,5,53]],54:[[3,1,4,54]],55:[[5,2,3,55],[5,0,4,55],[5,0,5,65]],56:[[2,0,5,56]],57:[[4,1,4,57]],58:[],59:[[3,0,5,59]],60:[[5,1,4,60]],61:[],62:[[4,0,5,62]],63:[],64:[],65:[[5,0,5,65]]},T={1:[[1,0,0,3],[0,1,0,5],[0,0,1,10]],2:[[1,0,0,3],[0,1,0,5],[0,0,1,10]],3:[[1,0,0,3],[0,1,0,5],[0,0,1,10]],4:[[0,1,0,5],[2,0,0,6],[0,0,1,10]],5:[[0,1,0,5],[2,0,0,6],[0,0,1,10]],6:[[2,0,0,6],[1,1,0,8],[0,2,0,10],[0,0,1,10]],7:[[1,1,0,8],[3,0,0,9],[0,2,0,10],[0,0,1,10]],8:[[1,1,0,8],[3,0,0,9],[0,2,0,10],[0,0,1,10]],9:[[3,0,0,9],[0,2,0,10],[0,0,1,10],[2,1,0,11]],10:[[0,2,0,10],[0,0,1,10],[2,1,0,11],[4,0,0,12]],11:[[2,1,0,11],[4,0,0,12],[1,2,0,13],[1,0,1,13],[0,3,0,15],[0,1,1,15],[0,0,2,20]],12:[[4,0,0,12],[1,2,0,13],[1,0,1,13],[3,1,0,14],[0,3,0,15],[0,1,1,15],[0,0,2,20]],13:[[1,2,0,13],[1,0,1,13],[3,1,0,14],[5,0,0,15],[0,3,0,15],[0,1,1,15],[0,0,2,20]],14:[[3,1,0,14],[5,0,0,15],[0,3,0,15],[0,1,1,15],[2,2,0,16],[2,0,1,16],[0,0,2,20]],15:[[5,0,0,15],[0,3,0,15],[0,1,1,15],[2,2,0,16],[2,0,1,16],[4,1,0,17],[0,0,2,20]],16:[[2,2,0,16],[2,0,1,16],[4,1,0,17],[1,3,0,18],[1,1,1,18],[0,4,0,20],[0,2,1,20],[0,0,2,20]],17:[[4,1,0,17],[1,3,0,18],[1,1,1,18],[3,2,0,19],[3,0,1,19],[0,4,0,20],[0,2,1,20],[0,0,2,20]],18:[[1,1,1,18],[1,3,0,18],[3,2,0,19],[3,0,1,19],[5,1,0,20],[0,4,0,20],[0,2,1,20],[0,0,2,20]],19:[[3,2,0,19],[3,0,1,19],[5,1,0,20],[0,4,0,20],[0,2,1,20],[0,0,2,20],[2,3,0,21],[2,1,1,21]],20:[[5,1,0,20],[0,4,0,20],[0,2,1,20],[0,0,2,20],[2,3,0,21],[2,1,1,21],[4,2,0,22],[4,0,1,22]],21:[[2,3,0,21],[2,1,1,21],[4,2,0,22],[4,0,1,22],[1,4,0,23],[1,2,1,23],[1,0,2,23],[0,5,0,25],[0,3,1,25],[0,1,2,25],[0,0,3,30]],22:[[4,2,0,22],[4,0,1,22],[1,4,0,23],[1,2,1,23],[1,0,2,23],[3,3,0,24],[3,1,1,24],[0,5,0,25],[0,3,1,25],[0,1,2,25],[0,0,3,30]],23:[[1,4,0,23],[1,2,1,23],[1,0,2,23],[3,3,0,24],[3,1,1,24],[5,2,0,25],[0,5,0,25],[5,0,1,25],[0,3,1,25],[0,1,2,25],[0,0,3,30]],24:[[3,3,0,24],[3,1,1,24],[5,2,0,25],[0,5,0,25],[5,0,1,25],[0,3,1,25],[0,1,2,25],[2,4,0,26],[2,2,1,26],[2,0,2,26],[0,0,3,30]],25:[[5,2,0,25],[0,5,0,25],[5,0,1,25],[0,3,1,25],[0,1,2,25],[2,4,0,26],[2,2,1,26],[2,0,2,26],[4,3,0,27],[4,1,1,27],[0,0,3,30]],26:[[2,4,0,26],[2,2,1,26],[2,0,2,26],[4,3,0,27],[4,1,1,27],[1,5,0,28],[1,3,1,28],[1,1,2,28],[0,4,1,30],[0,2,2,30],[0,0,3,30]],27:[[4,3,0,27],[4,1,1,27],[1,5,0,28],[1,3,1,28],[1,1,2,28],[3,4,0,29],[3,2,1,29],[3,0,2,29],[0,4,1,30],[0,2,2,30],[0,0,3,30]],28:[[1,5,0,28],[1,3,1,28],[1,1,2,28],[3,4,0,29],[3,2,1,29],[3,0,2,29],[5,3,0,30],[5,1,1,30],[0,4,1,30],[0,2,2,30],[0,0,3,30]],29:[[3,4,0,29],[3,2,1,29],[3,0,2,29],[5,3,0,30],[5,1,1,30],[0,4,1,30],[0,2,2,30],[0,0,3,30],[2,5,0,31],[2,3,1,31],[2,1,2,31]],30:[[5,3,0,30],[5,1,1,30],[0,4,1,30],[0,2,2,30],[0,0,3,30],[2,5,0,31],[2,3,1,31],[2,1,2,31],[4,4,0,32],[4,2,1,32],[4,0,2,32]],31:[[2,5,0,31],[2,3,1,31],[2,1,2,31],[4,4,0,32],[4,2,1,32],[4,0,2,32],[1,4,1,33],[1,2,2,33],[1,0,3,33],[0,3,2,35],[0,1,3,35],[0,0,4,40]],32:[[4,4,0,32],[4,2,1,32],[4,0,2,32],[1,4,1,33],[1,2,2,33],[1,0,3,33],[3,5,0,34],[3,3,1,34],[3,1,2,34],[0,3,2,35],[0,1,3,35],[0,0,4,40]],33:[[1,4,1,33],[1,2,2,33],[1,0,3,33],[3,5,0,34],[3,3,1,34],[3,1,2,34],[5,4,0,35],[5,2,1,35],[5,0,2,35],[0,3,2,35],[0,1,3,35],[0,0,4,40]],34:[[3,5,0,34],[3,3,1,34],[3,1,2,34],[5,4,0,35],[5,2,1,35],[5,0,2,35],[0,3,2,35],[0,1,3,35],[2,4,1,36],[2,2,2,36],[2,0,3,36],[0,0,4,40]],35:[[5,4,0,35],[5,2,1,35],[5,0,2,35],[0,3,2,35],[0,1,3,35],[2,4,1,36],[2,2,2,36],[2,0,3,36],[4,5,0,37],[4,3,1,37],[4,1,2,37],[0,0,4,40]],36:[[2,4,1,36],[2,2,2,36],[2,0,3,36],[4,5,0,37],[4,3,1,37],[4,1,2,37],[1,3,2,38],[1,1,3,38],[0,2,3,40],[0,0,4,40]],37:[[4,5,0,37],[4,3,1,37],[4,1,2,37],[1,3,2,38],[1,1,3,38],[3,4,1,39],[3,2,2,39],[3,0,3,39],[0,2,3,40],[0,0,4,40]],38:[[1,3,2,38],[1,1,3,38],[3,4,1,39],[3,2,2,39],[3,0,3,39],[5,5,0,40],[5,3,1,40],[5,1,2,40],[0,2,3,40],[0,0,4,40]],39:[[3,4,1,39],[3,2,2,39],[3,0,3,39],[5,5,0,40],[5,3,1,40],[5,1,2,40],[0,2,3,40],[0,0,4,40],[2,3,2,41],[2,1,3,41]],40:[[5,5,0,40],[5,3,1,40],[5,1,2,40],[0,2,3,40],[0,0,4,40],[2,3,2,41],[2,1,3,41],[4,4,1,42],[4,2,2,42],[4,0,3,42]],41:[[2,3,2,41],[2,1,3,41],[4,4,1,42],[4,2,2,42],[4,0,3,42],[1,2,3,43],[1,0,4,43],[0,1,4,45],[0,0,5,50]],42:[[4,4,1,42],[4,2,2,42],[4,0,3,42],[1,2,3,43],[1,0,4,43],[3,3,2,44],[3,1,3,44],[0,1,4,45],[0,0,5,50]],43:[[1,2,3,43],[1,0,4,43],[3,3,2,44],[3,1,3,44],[5,4,1,45],[5,2,2,45],[5,0,3,45],[0,1,4,45],[0,0,5,50]],44:[[3,3,2,44],[3,1,3,44],[5,4,1,45],[5,2,2,45],[5,0,3,45],[0,1,4,45],[2,2,3,46],[2,0,4,46],[0,0,5,50]],45:[[5,4,1,45],[5,2,2,45],[5,0,3,45],[0,1,4,45],[2,2,3,46],[2,0,4,46],[4,3,2,47],[4,1,3,47],[0,0,5,50]],46:[[2,2,3,46],[2,0,4,46],[4,3,2,47],[4,1,3,47],[1,1,4,48],[0,0,5,50]],47:[[4,3,2,47],[4,1,3,47],[1,1,4,48],[3,2,3,49],[3,0,4,49],[0,0,5,50]],48:[[1,1,4,48],[3,2,3,49],[3,0,4,49],[5,3,2,50],[5,1,3,50],[0,0,5,50]],49:[[3,2,3,49],[3,0,4,49],[5,3,2,50],[5,1,3,50],[0,0,5,50],[2,1,4,51]],50:[[5,3,2,50],[5,1,3,50],[0,0,5,50],[2,1,4,51],[4,2,3,52],[4,0,4,52]],51:[[2,1,4,51],[4,2,3,52],[4,0,4,52],[1,0,5,53]],52:[[4,2,3,52],[4,0,4,52],[1,0,5,53],[3,1,4,54]],53:[[1,0,5,53],[3,1,4,54],[5,2,3,55],[5,0,4,55]],54:[[3,1,4,54],[5,2,3,55],[5,0,4,55],[2,0,5,56]],55:[[5,2,3,55],[5,0,4,55],[2,0,5,56],[4,1,4,57]],56:[[2,0,5,56],[4,1,4,57]],57:[[4,1,4,57],[3,0,5,59]],58:[[3,0,5,59],[5,1,4,60]],59:[[3,0,5,59],[5,1,4,60]],60:[[5,1,4,60],[4,0,5,62]],61:[[4,0,5,62]],62:[[4,0,5,62]],63:[[5,0,5,65]],64:[[5,0,5,65]],65:[[5,0,5,65]]};var xt=g(1650);function Ot(_){return Object.prototype.hasOwnProperty.call(_,"armor")&&Object.prototype.hasOwnProperty.call(_,"usedArtifice")&&Object.prototype.hasOwnProperty.call(_,"usedMods")&&Object.prototype.hasOwnProperty.call(_,"statsWithMods")&&Object.prototype.hasOwnProperty.call(_,"classItemPerk")}function vt(_,C,U,E,q,J,R){var c=_.selectedExotics[0]||0;let D=C.slice();if((!E.isExotic||!_.assumeEveryExoticIsArtifice)&&(c<=0||E.hash!=c)&&_.armorPerks[t.y.ArmorSlotHelmet].fixed&&_.armorPerks[t.y.ArmorSlotHelmet].value!=O.Pn.None&&_.armorPerks[t.y.ArmorSlotHelmet].value!=E.perk)return{valid:!1};if((!q.isExotic||!_.assumeEveryExoticIsArtifice)&&(c<=0||q.hash!=c)&&_.armorPerks[t.y.ArmorSlotGauntlet].fixed&&_.armorPerks[t.y.ArmorSlotGauntlet].value!=O.Pn.None&&_.armorPerks[t.y.ArmorSlotGauntlet].value!=q.perk)return{valid:!1};if((!J.isExotic||!_.assumeEveryExoticIsArtifice)&&(c<=0||J.hash!=c)&&_.armorPerks[t.y.ArmorSlotChest].fixed&&_.armorPerks[t.y.ArmorSlotChest].value!=O.Pn.None&&_.armorPerks[t.y.ArmorSlotChest].value!=J.perk)return{valid:!1};if((!R.isExotic||!_.assumeEveryExoticIsArtifice)&&(c<=0||R.hash!=c)&&_.armorPerks[t.y.ArmorSlotLegs].fixed&&_.armorPerks[t.y.ArmorSlotLegs].value!=O.Pn.None&&_.armorPerks[t.y.ArmorSlotLegs].value!=R.perk)return{valid:!1};if(_.armorPerks[t.y.ArmorSlotClass].fixed&&_.armorPerks[t.y.ArmorSlotClass].value!=O.Pn.None&&!U.has(_.armorPerks[t.y.ArmorSlotClass].value))return{valid:!1};D[E.perk]--,D[q.perk]--,D[J.perk]--,D[R.perk]--,c>0&&(E.hash==c?D[_.armorPerks[E.slot].value]--:q.hash==c?D[_.armorPerks[q.slot].value]--:J.hash==c?D[_.armorPerks[J.slot].value]--:R.hash==c&&D[_.armorPerks[R.slot].value]--);let b=0;for(let H=1;HC.minimumStatTiers[f].value||!C.allowExactStats&&I[f]/10>=C.minimumStatTiers[f].value+1))return null;let dt=X.filter(f=>(!f.isExotic||!C.ignoreExistingExoticArtificeSlots)&&f.perk==O.Pn.SlotArtifice||C.assumeEveryLegendaryIsArtifice&&!f.isExotic||C.assumeEveryExoticIsArtifice&&f.isExotic).length;b&&(dt+=1);const it=[Math.max(0,10*C.minimumStatTiers[0].value-I[0]),Math.max(0,10*C.minimumStatTiers[1].value-I[1]),Math.max(0,10*C.minimumStatTiers[2].value-I[2]),Math.max(0,10*C.minimumStatTiers[3].value-I[3]),Math.max(0,10*C.minimumStatTiers[4].value-I[4]),Math.max(0,10*C.minimumStatTiers[5].value-I[5])];if(C.onlyShowResultsWithNoWastedStats)for(let f=0;f<6;f++){const F=10-I[f]%10;it[f]=Math.max(it[f],F<10?F:0)}const St=[0,0,0,0,0,0];if(C.tryLimitWastedStats)for(let f=0;f<6;f++)0==it[f]&&!C.minimumStatTiers[f].fixed&&I[f]<100&&I[f]%10>0&&(St[f]=10-I[f]%10);const yt=St.reduce((f,F)=>f+F,0),It=it[0]+it[1]+it[2]+it[3]+it[4]+it[5];if(It>50+3*dt)return null;let _t;if(_t=0==It&&0==yt?[]:lt(C,it,St,dt,c,C.modOptimizationStrategy),null==_t)return null;const S=[Math.max(0,100-I[0]),Math.max(0,100-I[1]),Math.max(0,100-I[2]),Math.max(0,100-I[3]),Math.max(0,100-I[4]),Math.max(0,100-I[5])];let P=[],N=[];for(let f=0;f<4;f++)for(let F=f+1;F<5;F++)for(let z=F+1;z<6;z++){let j=it.slice();if(j[f]=S[f],j[F]=S[F],j[z]=S[z],j[0]+j[1]+j[2]+j[3]+j[4]+j[5]<=65){P.push([f,F,z]);for(let Mt=z+1;Mt<6;Mt++){let At=j.slice();At[Mt]=S[Mt],At[0]+At[1]+At[2]+At[3]+At[4]+At[5]<=65&&N.push([f,F,z,Mt])}}}if(P.length>0){for(let f of P){const F=it.slice();for(let j of f)F[j]=S[j];null!=lt(C,F,[0,0,0,0,0,0],dt,c,xt.w.None)&&_.statCombo3x100.add((1<=C.minimumStatTiers[f].value&&z>_.maximumPossibleTiers[f]/10&&!(I[f]>=10*z);z--){const j=10-I[f]%10;if(it[f]=Math.max(j<10?j:0,10*z-I[f]),null!=lt(C,it,[0,0,0,0,0,0],dt,c,xt.w.None)){_.maximumPossibleTiers[f]=10*z;break}}it[f]=F}if(D)return[];const et=_t.filter(f=>f%3==0),rt=_t.filter(f=>f%3!=0);for(let f of _t)I[Math.floor((f-1)/3)]+=O.K9[f][1];const tt=Ft(I);return C.onlyShowResultsWithNoWastedStats&&tt>0?null:function Et(_,C,U,E,q,J,R,c){return{armor:[_.id,C.id,U.id,E.id],usedArtifice:q,usedMods:J,classItemPerk:O.Pn.None,statsWithMods:R,statsWithoutMods:c}}(U,E,q,J,et,rt,I,B)}function lt(_,C,U,E,q,J=xt.w.None){const R=C[0]+C[1]+C[2]+C[3]+C[4]+C[5];if(R>65)return null;const c=_.onlyShowResultsWithNoWastedStats?y:T,D=[c[C[0]]||[[0,0,0,0]],c[C[1]]||[[0,0,0,0]],c[C[2]]||[[0,0,0,0]],c[C[3]]||[[0,0,0,0]],c[C[4]]||[[0,0,0,0]],c[C[5]]||[[0,0,0,0]]];if(_.allowExactStats)for(let S=0;S<6;S++)_.minimumStatTiers[S].fixed&&C[S]>0&&(D[S]=y[C[S]]||[[0,0,0,0]],D[S]=D[S].filter(P=>P[3]-C[S]<10));for(let S=0;S0){const P=c[U[S]].filter(N=>0==N[2]&&N[3]%10>0&&(U[S]+N[3])%10N+et[1]+et[2]:J==xt.w.ReduceUsedModPoints?(P,N,et)=>P+dt[et]*N[1]+it[et]*N[2]:(P,N)=>P+N[3],0)}function yt(S,P=!1){const N=S.reduce((rt,tt,f)=>[rt[0]+tt[0],rt[1]+tt[1],rt[2]+tt[2],rt[3]+tt[3]-C[f]],[0,0,0,0]);if(St(S)>X||N[0]>E||N[1]+N[2]>H||N[3]<0)return!1;if(!P||5==I)return!0;let et=[];for(let rt=0;rtH)return!1;S.sort((N,et)=>et-N);for(let N=0;N0&&J!=xt.w.None;t:for(let S of D[0])if(yt([S]))for(let P of D[1])if(yt([S,P]))for(let N of D[2])if(yt([S,P,N])&&!(It&&St([S,P,N])>=X))for(let et of D[3])if(yt([S,P,N,et])&&!(It&&St([S,P,N,et])>=X))for(let rt of D[4])if(yt([S,P,N,et,rt])&&!(It&&St([S,P,N,et,rt])>=X))e:for(let tt of D[5]){let f=[S,P,N,et,rt,tt];if(!yt(f,!0))continue;for(let z=0;z<6;z++)if(U[z]>0&&0==f[z][3]&&null!=w)continue e;let F=St(f);if(F100?_[O.WB.Mobility]-100:_[O.WB.Mobility]%10)+(_[O.WB.Resilience]>100?_[O.WB.Resilience]-100:_[O.WB.Resilience]%10)+(_[O.WB.Recovery]>100?_[O.WB.Recovery]-100:_[O.WB.Recovery]%10)+(_[O.WB.Discipline]>100?_[O.WB.Discipline]-100:_[O.WB.Discipline]%10)+(_[O.WB.Intellect]>100?_[O.WB.Intellect]-100:_[O.WB.Intellect]%10)+(_[O.WB.Strength]>100?_[O.WB.Strength]-100:_[O.WB.Strength]%10)}addEventListener("message",function(){var _=(0,m.Z)(function*({data:C}){const U=C.threadSplit,E=C.config;let q=C.selectedExotics,J=C.items;if(null==U||null==E||null==J)return;const R=Date.now();console.debug("START RESULTS BUILDER 2"),console.time(`total #${U.current}`),E.onlyShowResultsWithNoWastedStats=ht.N.featureFlags.enableZeroWaste&&E.onlyShowResultsWithNoWastedStats,ht.N.featureFlags.enableModslotLimitation||(E.maximumModSlots[t.y.ArmorSlotHelmet].value=5,E.maximumModSlots[t.y.ArmorSlotGauntlet].value=5,E.maximumModSlots[t.y.ArmorSlotChest].value=5,E.maximumModSlots[t.y.ArmorSlotLegs].value=5,E.maximumModSlots[t.y.ArmorSlotClass].value=5),console.log("Using config",C.config);let c=J.filter(W=>W.slot==t.y.ArmorSlotHelmet).filter(W=>!E.useFotlArmor||[199733460,2545426109,3224066584].indexOf(W.hash)>-1),D=J.filter(W=>W.slot==t.y.ArmorSlotGauntlet),b=J.filter(W=>W.slot==t.y.ArmorSlotChest),w=J.filter(W=>W.slot==t.y.ArmorSlotLegs);if(U.count>1){var X=[[c,c.length],[D,D.length],[b,b.length],[w,w.length]].sort((W,qt)=>qt[1]-W[1])[0][0],H=Math.round(X.length/U.count),I=H*U.current,B=I+H;U.current==U.count-1&&(B=X.length),X.splice(B),X.splice(0,I)}let dt=J.filter(W=>W.slot==t.y.ArmorSlotClass),it=dt.filter(W=>W.isExotic).length,St=dt.length-it,yt=new Set(dt.filter(W=>!W.isExotic).map(W=>W.perk)),It=new Set(dt.filter(W=>W.isExotic).map(W=>W.perk));St>0&&(E.assumeEveryLegendaryIsArtifice||E.assumeClassItemIsArtifice)&&yt.add(O.Pn.SlotArtifice),it>0&&E.assumeEveryExoticIsArtifice&&It.add(O.Pn.SlotArtifice),console.debug("items",JSON.stringify({helmets:c.length,gauntlets:D.length,chests:b.length,legs:w.length,availableClassItemTypes:yt}));const _t={maximumPossibleTiers:[0,0,0,0,0,0],statCombo3x100:new Set,statCombo4x100:new Set},S=function pt(_){const C=[0,0,0,0,0,0];for(const E of _.enabledMods)for(const q of Z.F[E].bonus)C[q.stat==O.AR.ClassAbilityRegenerationStat?[1,0,2][_.characterClass]:q.stat]+=q.value;return C}(E),P=function Rt(_){let C=[];for(let U=0;UU>0).sort((U,E)=>E-U)}(E),et=q.length<=1,rt=yt.has(O.Pn.SlotArtifice),tt=It.has(O.Pn.SlotArtifice),f=E.selectedExotics.indexOf(h.dM)>-1,F=dt.sort((W,qt)=>W.masterworked?-1:1).find(W=>W.isExotic)||null,z=!!F&&E.selectedExotics.indexOf(F.hash)>-1;console.log("hasArtificeClassItem",rt);let j=[],Ut=0,Mt=0,At=0,Nt=!1,Lt=function gt(_,C,U,E){let q=0;const J=_.filter(I=>I.isExotic).length,R=_.length-J,c=C.filter(I=>I.isExotic).length,D=C.length-c,b=U.filter(I=>I.isExotic).length,w=U.length-b,X=E.filter(I=>I.isExotic).length,H=E.length-X;return q+=J*D*w*H,q+=R*c*w*H,q+=R*D*b*H,q+=R*D*w*X,q+=R*D*w*H,q}(c,D,b,w),Wt=0,bt=0;console.log("estimatedCalculations",Lt);let ie=Lt>=1e6?125:75;console.time(`tm #${U.current}`);for(let[W,qt,Xt,jt]of function*Vt(_,C,U,E,q,J){for(let R of _)for(let c of C)if(!(q&&R.isExotic&&c.isExotic))for(let D of U)if(!q||!R.isExotic&&!c.isExotic||!D.isExotic)for(let b of E)q&&(R.isExotic||c.isExotic||D.isExotic)&&b.isExotic||J&&!(R.isExotic||c.isExotic||D.isExotic||b.isExotic)||(yield[R,c,D,b])}(c,D,b,w,et,f)){Wt++;const Yt=vt(E,P,yt,W,qt,Xt,jt);if(!Yt.valid)continue;const me=!Yt.requiredClassItemType||Yt.requiredClassItemType==O.Pn.SlotArtifice,ct=W.isExotic||qt.isExotic||Xt.isExotic||jt.isExotic,Bt=L(_t,E,W,qt,Xt,jt,S,N,Nt,(rt||!ct&&tt&&!E.ignoreExistingExoticArtificeSlots)&&me,z);null!=Bt&&(At++,Ot(Bt)&&(Bt.classItemPerk=Yt.requiredClassItemType||(rt?O.Pn.SlotArtifice:O.Pn.None),!ct&&F&&z&&Bt.armor.push(F.id),j.push(Bt),Ut++,Mt++,Nt=Nt||E.limitParsedResults&&Mt>=3e4/U.count||Mt>=1e6/U.count)),At%5e3==0&&bt+ie=5e3&&(postMessage({runtime:_t,results:j,done:!1,checkedCalculations:Wt,estimatedCalculations:Lt}),j=[],Ut=0)}console.timeEnd(`tm #${U.current}`),console.timeEnd(`total #${U.current}`),postMessage({runtime:_t,results:j,done:!0,checkedCalculations:Wt,estimatedCalculations:Lt,stats:{permutationCount:At,itemCount:J.length-dt.length,totalTime:Date.now()-R}})});return function(C){return _.apply(this,arguments)}}())},2340:(ft,at,g)=>{g.d(at,{N:()=>m});const m={version:"2.6.2",revision:"de34c96",production:!0,beta:!1,canary:!1,apiKey:"9415df8eff46408aa9c0d51e4d69b94f",clientId:"37252",client_secret:"KnVcJPWr7C5y0loOfBoKSyQ-vWXR0JICrgb1aJLsLgg",offlineMode:!1,featureFlags:{enableModslotLimitation:!0,enableZeroWaste:!0,enableGuardianGamesFeatures:!1}}},1379:(ft,at,g)=>{var m=g(1481),t=g(4650),h=g(2340),Z=g(6895),O=g(5829),ht=g(3683),y=g(6630),T=g(5861),xt=g(6831),Et=g(529),Ot=g(591);let vt=(()=>{class n{constructor(){this.__status={calculatingResults:!1,calculatingPermutations:!1,updatingResultsTable:!1,updatingInventory:!1,updatingManifest:!1,updatingVendors:!1,apiError:!1,authError:!1},this._status=new Ot.X(this.__status),this.status=this._status.asObservable()}getStatus(){return this.__status}modifyStatus(e){e(this.__status),console.log("modifyStatus",this.__status),this._status.next(this.__status)}setApiError(){this.__status.apiError||this.modifyStatus(e=>{e.apiError=!0})}clearApiError(){!this.__status.apiError||this.modifyStatus(e=>{e.apiError=!1})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),pt=(()=>{class n{constructor(e,o,a){this.http=e,this.router=o,this.status=a,this._logoutEvent=new xt.t(1),this.logoutEvent=this._logoutEvent.asObservable()}get refreshTokenExpired(){return this.refreshTokenExpiringAt (this.lastRefresh + timing)":Date.now()>e.lastRefresh+18e5}),!(e.refreshToken&&Date.now()e.lastRefresh+18e5)||(yield e.generateTokens(!0))})()}getCurrentMembershipData(){var e=this;return(0,T.Z)(function*(){const o=JSON.parse(localStorage.getItem("auth-membershipInfo")||"null");if(null==o){const a=e.getCurrentMembershipData();return localStorage.setItem("auth-membershipInfo",JSON.stringify(a)),a}return o})()}generateTokens(e=!1){var o=this;return(0,T.Z)(function*(){console.info("Generate auth tokens","refresh based on refresh_token:",e);const a=h.N.clientId,s=h.N.client_secret;let p=`grant_type=authorization_code&code=${o.authCode}&client_id=${a}&client_secret=${s}`;return e&&(p=`grant_type=refresh_token&refresh_token=${o.refreshToken}&client_id=${a}&client_secret=${s}`),yield o.http.post("https://www.bungie.net/Platform/App/OAuth/Token/",p,{headers:{"Content-Type":"application/x-www-form-urlencoded","X-API-Key":h.N.apiKey}}).toPromise().then(A=>(console.log("generateTokens",A),o.accessToken=A.access_token,o.refreshToken=A.refresh_token,o.refreshTokenExpiringAt=Date.now()+1e3*A.refresh_expires_in-1e4,o.lastRefresh=Date.now(),o.status.modifyStatus(u=>u.authError=!1),!0)).catch(function(){var A=(0,T.Z)(function*(u){return console.log({err:u}),o.status.modifyStatus(M=>M.authError=!0),!1});return function(u){return A.apply(this,arguments)}}())})()}isAuthenticated(){return!!this.accessToken}get authCode(){return localStorage.getItem("code")}set authCode(e){e?(console.info("Setting new auth code"),localStorage.setItem("code",""+e)):(console.info("Clearing auth code"),localStorage.removeItem("code"))}get accessToken(){return localStorage.getItem("accessToken")}set accessToken(e){e?(console.info("Setting new access token"),localStorage.setItem("accessToken",""+e)):(console.info("Clearing access token"),localStorage.removeItem("accessToken"))}get refreshToken(){return localStorage.getItem("refreshToken")}set refreshToken(e){e?(console.info("Setting new refresh token"),localStorage.setItem("refreshToken",""+e)):(console.info("Clearing refresh token"),localStorage.removeItem("refreshToken"))}get refreshTokenExpiringAt(){let e=localStorage.getItem("refreshTokenExpiringAt")||"0";return e?Number.parseInt(e):0}set refreshTokenExpiringAt(e){e?(console.info("Setting new refresh token"),localStorage.setItem("refreshTokenExpiringAt",""+e)):(console.info("Clearing refresh token"),localStorage.removeItem("refreshTokenExpiringAt"))}get lastRefresh(){let e=localStorage.getItem("lastRefresh")||"0";return e?Number.parseInt(e):0}set lastRefresh(e){e?localStorage.setItem("lastRefresh",e.toString()):localStorage.removeItem("lastRefresh")}clearManifestInfo(){localStorage.removeItem("LastArmorUpdate"),localStorage.removeItem("LastManifestUpdate")}clearLoginInfo(){this.lastRefresh=null,this.refreshTokenExpiringAt=null,this.authCode=null,this.accessToken=null,this.refreshToken=null}logout(){var e=this;return(0,T.Z)(function*(){if(h.N.offlineMode)console.debug("Offline mode, skipping logout");else try{e._logoutEvent.next(null),e.clearManifestInfo(),e.clearLoginInfo()}finally{yield e.router.navigate(["login"])}})()}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Et.eN),t.LFG(y.F0),t.LFG(vt))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Rt=(()=>{class n{constructor(e,o,a){this.activatedRoute=e,this.router=o,this.loginService=a}ngOnInit(){var e=this;this.activatedRoute.queryParams.subscribe(function(){var o=(0,T.Z)(function*(a){let s=a.code;window.location.search.indexOf("?code=")>-1&&(s=window.location.search.substr(6)),console.info({code:s}),s&&(e.loginService.authCode=s,console.info("Generate tokens with the new code"),yield e.loginService.generateTokens(),console.info("Now navigate to /"),yield e.router.navigate(["/"]))});return function(a){return o.apply(this,arguments)}}())}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(y.gz),t.Y36(y.F0),t.Y36(pt))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-handle-bungie-login"]],decls:0,vars:0,template:function(e,o){}}),n})();function x(n,i){1&n&&(t.TgZ(0,"mat-toolbar",5),t._UZ(1,"span",2),t._uU(2," You are using the "),t.TgZ(3,"b"),t._uU(4,"\xa0unstable\xa0"),t.qZA(),t._uU(5," canary build. Some features may be unfinished or vanish. Please report any issues you encounter. "),t._UZ(6,"span",2),t.qZA())}let Vt=(()=>{class n{constructor(){this.title="D2ArmorPicker",this.is_beta=h.N.beta,this.is_canary=h.N.canary,console.log("PRODUCTION?",h.N.production)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-root"]],decls:9,vars:1,consts:[["class","canary-warning","color","primary",4,"ngIf"],["color","accent",1,"bungie-day",2,"display","none"],[1,"header-spacer"],["fxHide.xs","","src","../assets/bungie-game2give-2024.jpg",1,"donordrive"],["href","https://bungiefoundation.donordrive.com/participant/25284","target","_blank","title","Support the Bungie Foundation!"],["color","primary",1,"canary-warning"]],template:function(e,o){1&e&&(t.YNc(0,x,7,0,"mat-toolbar",0),t.TgZ(1,"mat-toolbar",1),t._UZ(2,"span",2)(3,"img",3),t.TgZ(4,"a",4),t._uU(5," Please support us at the Bungie Game2Give 2024 \u2764 "),t.qZA(),t._UZ(6,"span",2),t.qZA(),t._UZ(7,"app-handle-bungie-login")(8,"router-outlet")),2&e&&t.Q6J("ngIf",o.is_canary)},dependencies:[Z.O5,O.b8,ht.Ye,y.lC,Rt],styles:[".bungie-day[_ngcontent-%COMP%], .canary-warning[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content;position:relative;max-width:100vw;word-break:break-all}.canary-warning[_ngcontent-%COMP%]{font-size:11pt}.bungie-day[_ngcontent-%COMP%] img.donordrive[_ngcontent-%COMP%]{height:30px;margin-left:2px;margin-right:2px}.bungie-day[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .bungie-day[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{color:#fff}.header-spacer[_ngcontent-%COMP%]{flex:1 1 auto}"]}),n})();var gt=g(1576),st=g(4859),L=g(3546),lt=g(7084);let Ht=(()=>{class n{constructor(){}startLogin(){window.location.href=`https://www.bungie.net/en/OAuth/Authorize?client_id=${h.N.clientId}&response_type=code&reauth=true`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-login"]],decls:76,vars:0,consts:[["mat-card-avatar","",1,"example-header-image"],["href","https://ko-fi.com/mijago","target","_blank"],["href","https://github.com/Mijago/D2ArmorPicker","target","_blank"],["color","primary","mat-raised-button","",3,"click"],[1,"mat-elevation-z11"],["src","assets/info/statselection.png",1,"image-example"],["src","assets/resultOverviewWithFlex.png",1,"image-example"],["src","assets/info/whattodonow.png",1,"image-example"],["src","assets/info/armorClustering.png",1,"image-example"],["fxLayoutGap","10px","fxLayout","row",1,"armor-image-container"],["src","assets/info/cluster-example/img.png"],["src","assets/info/cluster-example/img_1.png"],["src","assets/info/cluster-example/img_2.png"]],template:function(e,o){1&e&&(t.TgZ(0,"mat-card")(1,"mat-card-header"),t._UZ(2,"div",0),t.TgZ(3,"mat-card-title"),t._uU(4,"Destiny 2 Armor Picker"),t.qZA(),t.TgZ(5,"mat-card-subtitle"),t._uU(6,"A simple armor min-max tool by Mijago."),t.qZA()(),t.TgZ(7,"mat-card-content")(8,"p"),t._uU(9," This tool allows you to select the optimal armor from your inventory and vault to satisfy your stat needs. It also tells you which stat mods you have to use! "),t._UZ(10,"br")(11,"br"),t._uU(12," You have to log in to enable this tool to grab your armor from the API."),t._UZ(13,"br"),t._uU(14," If you like my tools and want to support me, head to "),t.TgZ(15,"a",1),t._uU(16,"ko-fi.com"),t.qZA(),t._uU(17," and buy me a coffee! \u2764 "),t._UZ(18,"br"),t._uU(19," If you found a bug or have a feature request, please open an issue "),t.TgZ(20,"a",2),t._uU(21,"in the Github Repository"),t.qZA(),t._uU(22,"! "),t.qZA(),t.TgZ(23,"p"),t._uU(24," D2ArmorPicker uses the Bungie.net api and it's OAuth authorization. You log in on an official Bungie.net page and D2ArmorPicker receives a temporary login token from Bungie. That means it does not receive your credentials. "),t.qZA()(),t.TgZ(25,"mat-card-actions")(26,"button",3),t.NdJ("click",function(){return o.startLogin()}),t._uU(27,"Login"),t.qZA()()(),t.TgZ(28,"mat-card")(29,"mat-card-title"),t._uU(30," Examples "),t.qZA(),t.TgZ(31,"mat-card-subtitle"),t._uU(32,"Some examples to show what D2ArmorPicker can do."),t.qZA(),t.TgZ(33,"mat-card-content")(34,"mat-accordion")(35,"mat-expansion-panel",4)(36,"mat-expansion-panel-header")(37,"mat-panel-title"),t._uU(38," Stat Selection "),t.qZA(),t.TgZ(39,"mat-panel-description"),t._uU(40," The heart of this tool. "),t.qZA()(),t.TgZ(41,"p"),t._uU(42," First, you are able to select the stats you want. The tool will automatically parse all your armor (including your vault and your postmaster), and then show you which stat selections are even possible with your current gear. The tool also shows you all possible loadouts with three or four stats at 100! "),t._UZ(43,"img",5)(44,"br")(45,"br"),t._uU(46," There are also additional settings. You can add stasis fragments and negative and positive stat mods to your builds. Also, you can select 0-waste builds (so only flat numbers). D2ArmorPicker will also add stat mods to reduce wasted stats wherever possible! "),t.qZA()(),t.TgZ(47,"mat-expansion-panel",4)(48,"mat-expansion-panel-header")(49,"mat-panel-title"),t._uU(50," Result Display "),t.qZA(),t.TgZ(51,"mat-panel-description"),t._uU(52," What you will get from this tool. "),t.qZA()(),t.TgZ(53,"p"),t._uU(54," D2ArmorPicker will show you a table with many results. You can sort and filter it, and then you click on one row to see which items are needed for your desired stats. "),t._UZ(55,"img",6)(56,"br")(57,"br"),t._uU(58," The page will also give you a detailed description of what you have to do in order to get to your desired build. The following screenshot shows one of the more detailed descriptions: "),t._UZ(59,"img",7),t.qZA()(),t.TgZ(60,"mat-expansion-panel",4)(61,"mat-expansion-panel-header")(62,"mat-panel-title"),t._uU(63," Armor Clustering "),t.qZA(),t.TgZ(64,"mat-panel-description"),t._uU(65," For the time when your vault is overflowing. "),t.qZA()(),t.TgZ(66,"div"),t._uU(67," Since version 2.0.14, D2ArmorPicker has an armor clustering feature. This means that it takes all your armor and groups it in 25 groups, where all items in one group has very similar stats. This can help you to clear out your vault, especially from duplicated armor rolls. "),t._UZ(68,"img",8)(69,"br")(70,"br"),t._uU(71," Take Cluster 1, for example. I copy the DIM-Query, enter it into DIM and see the following results: "),t.TgZ(72,"div",9),t._UZ(73,"img",10)(74,"img",11)(75,"img",12),t.qZA()()()()()())},dependencies:[gt.xw,gt.SQ,st.lW,L.a8,L.dk,L.dn,L.n5,L.$j,L.hq,L.kc,lt.pp,lt.ib,lt.yz,lt.yK,lt.u4],styles:["mat-card[_ngcontent-%COMP%]{max-width:600px;margin-bottom:4px;margin-left:auto;margin-right:auto}button[_ngcontent-%COMP%]{position:absolute;right:10px;bottom:10px}a[_ngcontent-%COMP%]{color:#99afe3}a[_ngcontent-%COMP%]:visited{color:#7294dc}.example-header-image[_ngcontent-%COMP%]{background-image:url(superGreatLogo.5307f2494314b5e1.png);background-size:cover}.image-example[_ngcontent-%COMP%]{max-width:100%}.armor-image-container[_ngcontent-%COMP%]{overflow:auto}.armor-image-container[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{max-height:300px}"]}),n})();var Ft=g(8746);let _=(()=>{class n{constructor(e,o){this.auth=e,this.router=o}canActivate(e,o){return!!this.auth.isAuthenticated()||(this.router.navigate(["login"]),!1)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(pt),t.LFG(y.F0))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),C=(()=>{class n{constructor(e,o){this.auth=e,this.router=o}canActivate(e,o){return!this.auth.isAuthenticated()||(this.router.navigate(["/"]),!1)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(pt),t.LFG(y.F0))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var U=g(2289),E=g(4850),q=g(5154),J=g(13),R=g(8929),c=g(1043),D=g(3244),b=g(6471),w=g(8333),X=g(1650);function H(n){return{[c.WB.Mobility]:{fixed:!1,value:n},[c.WB.Resilience]:{fixed:!1,value:n},[c.WB.Recovery]:{fixed:!1,value:n},[c.WB.Discipline]:{fixed:!1,value:n},[c.WB.Intellect]:{fixed:!1,value:n},[c.WB.Strength]:{fixed:!1,value:n}}}class I{constructor(){this.characterClass=0,this.addConstent1Resilience=!1,this.assumeClassItemIsArtifice=!1,this.assumeEveryLegendaryIsArtifice=!1,this.assumeEveryExoticIsArtifice=!1,this.disabledItems=[],this.minimumStatTiers={[c.WB.Mobility]:{fixed:!1,value:0},[c.WB.Resilience]:{fixed:!1,value:0},[c.WB.Recovery]:{fixed:!1,value:0},[c.WB.Discipline]:{fixed:!1,value:0},[c.WB.Intellect]:{fixed:!1,value:0},[c.WB.Strength]:{fixed:!1,value:0}},this.maximumStatMods=5,this.allowExactStats=!1,this.maximumModSlots={[b.y.ArmorSlotHelmet]:{fixed:!1,value:5},[b.y.ArmorSlotGauntlet]:{fixed:!1,value:5},[b.y.ArmorSlotChest]:{fixed:!1,value:5},[b.y.ArmorSlotLegs]:{fixed:!1,value:5},[b.y.ArmorSlotClass]:{fixed:!1,value:5},[b.y.ArmorSlotNone]:{fixed:!1,value:5}},this.putArtificeMods=!0,this.useFotlArmor=!0,this.allowBlueArmorPieces=!0,this.ignoreSunsetArmor=!1,this.includeVendorRolls=!1,this.includeCollectionRolls=!1,this.assumeLegendariesMasterworked=!0,this.assumeExoticsMasterworked=!0,this.assumeClassItemMasterworked=!0,this.onlyUseMasterworkedExotics=!1,this.onlyUseMasterworkedLegendaries=!1,this.modOptimizationStrategy=X.w.None,this.limitParsedResults=!0,this.tryLimitWastedStats=!1,this.onlyShowResultsWithNoWastedStats=!1,this.showWastedStatsColumn=!1,this.showPotentialTierColumn=!1,this.selectedModElement=w.O.Stasis,this.enabledMods=[],this.selectedExotics=[],this.ignoreExistingExoticArtificeSlots=!1,this.armorPerks={[b.y.ArmorSlotHelmet]:{fixed:!0,value:c.Pn.None},[b.y.ArmorSlotGauntlet]:{fixed:!0,value:c.Pn.None},[b.y.ArmorSlotChest]:{fixed:!0,value:c.Pn.None},[b.y.ArmorSlotLegs]:{fixed:!0,value:c.Pn.None},[b.y.ArmorSlotClass]:{fixed:!0,value:c.Pn.None},[b.y.ArmorSlotNone]:{fixed:!0,value:c.Pn.None}}}static buildEmptyConfiguration(){return{ignoreExistingExoticArtificeSlots:!1,allowExactStats:!1,enabledMods:[],disabledItems:[],addConstent1Resilience:!1,assumeEveryLegendaryIsArtifice:!1,assumeEveryExoticIsArtifice:!1,assumeClassItemIsArtifice:!1,putArtificeMods:!0,useFotlArmor:!1,maximumStatMods:D.Qj,onlyUseMasterworkedExotics:!1,onlyUseMasterworkedLegendaries:!1,ignoreSunsetArmor:!1,includeCollectionRolls:!1,includeVendorRolls:!1,allowBlueArmorPieces:!0,assumeLegendariesMasterworked:!0,assumeExoticsMasterworked:!0,assumeClassItemMasterworked:!0,limitParsedResults:!0,modOptimizationStrategy:X.w.None,tryLimitWastedStats:!1,onlyShowResultsWithNoWastedStats:!1,showWastedStatsColumn:!1,showPotentialTierColumn:!1,characterClass:0,selectedModElement:w.O.Stasis,selectedExotics:[],maximumModSlots:{[b.y.ArmorSlotHelmet]:{fixed:!1,value:5},[b.y.ArmorSlotGauntlet]:{fixed:!1,value:5},[b.y.ArmorSlotChest]:{fixed:!1,value:5},[b.y.ArmorSlotLegs]:{fixed:!1,value:5},[b.y.ArmorSlotClass]:{fixed:!1,value:5},[b.y.ArmorSlotNone]:{fixed:!1,value:5}},armorPerks:{[b.y.ArmorSlotHelmet]:{fixed:!0,value:c.Pn.None},[b.y.ArmorSlotGauntlet]:{fixed:!0,value:c.Pn.None},[b.y.ArmorSlotChest]:{fixed:!0,value:c.Pn.None},[b.y.ArmorSlotLegs]:{fixed:!0,value:c.Pn.None},[b.y.ArmorSlotClass]:{fixed:!0,value:c.Pn.None},[b.y.ArmorSlotNone]:{fixed:!0,value:c.Pn.None}},minimumStatTiers:H(0)}}}var B=(()=>{return(n=B||(B={}))[n.Inventory=0]="Inventory",n[n.Collections=1]="Collections",n[n.Vendor=2]="Vendor",B;var n})();function dt(n,i,e){if(!n)throw new Error("Missing manifest item");const o=Object.assign({id:-1,itemInstanceId:i,mayBeBugged:!1,masterworked:!1,energyLevel:0,mobility:0,resilience:0,recovery:0,discipline:0,intellect:0,strength:0,source:e,created_at:Date.now(),updated_at:Date.now()},n);return o.id=void 0,(2545426109==n.hash||199733460==n.hash||3224066584==n.hash)&&(o.slot=b.y.ArmorSlotHelmet),o}function it(n,i){n.mobility=i[2996146975],n.resilience=i[392767087],n.recovery=i[1943323491],n.discipline=i[1735777505],n.intellect=i[144602215],n.strength=i[4244567218]}function yt(n){return n.mobility+n.resilience+n.recovery+n.discipline+n.intellect+n.strength}var It=g(6982),_t=g(4682);let S=(()=>{class n extends _t.v{constructor(e){var o;super(),o=this,this.auth=e,this.version(this.verno).upgrade(function(){var a=(0,T.Z)(function*(s){o.auth.clearManifestInfo()});return function(s){return a.apply(this,arguments)}}()),this.auth.logoutEvent.subscribe(function(){var a=(0,T.Z)(function*(s){yield o.clearDatabase()});return function(s){return a.apply(this,arguments)}}())}initialize(){this.open(),this.auth.clearManifestInfo()}writeManifestArmor(e,o){var a=this;return(0,T.Z)(function*(){yield a.manifestArmor.clear(),yield a.manifestArmor.bulkPut(e),localStorage.setItem("LastManifestUpdate",Date.now().toString()),localStorage.setItem("last-manifest-db-name",a.manifestArmor.db.name),localStorage.setItem("last-manifest-revision",h.N.revision),localStorage.setItem("last-manifest-version",o)})()}clearDatabase(){var e=this;return(0,T.Z)(function*(){localStorage.removeItem("LastManifestUpdate"),localStorage.removeItem("LastArmorUpdate"),localStorage.removeItem("last-manifest-revision"),localStorage.removeItem("last-manifest-db-name"),yield e.inventoryArmor.clear()})()}resetDatabase(e=!0){var o=this;return(0,T.Z)(function*(){localStorage.removeItem("LastManifestUpdate"),localStorage.removeItem("last-manifest-revision"),localStorage.removeItem("last-manifest-db-name"),localStorage.removeItem("vendor-next-refresh-time"),localStorage.removeItem("LastArmorUpdate"),localStorage.removeItem("last-armor-db-name"),yield o.delete(),e&&o.initialize()})()}lastManifestUpdate(){const e=localStorage.getItem("LastManifestUpdate"),o=localStorage.getItem("last-manifest-version"),a=localStorage.getItem("last-manifest-revision"),s=localStorage.getItem("last-manifest-db-name");return e&&a&&s&&o&&localStorage.getItem("last-manifest-revision")===h.N.revision&&s===this.inventoryArmor.db.name?{updatedAt:parseInt(e),version:o}:void 0}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(pt))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var P=g(9598),N=g(443);const et={outputEncoding:"Base64"},rt={inputEncoding:"Base64",outputEncoding:"String"};let tt=(()=>{class n{constructor(){this.__configuration=this.loadCurrentConfiguration(),this._configuration=new Ot.X(this.__configuration),this.configuration=this._configuration.asObservable(),this._storedConfigurations=new Ot.X(this.listSavedConfigurations()),this.storedConfigurations=this._storedConfigurations.asObservable()}get readonlyConfigurationSnapshot(){return Object.assign(this.__configuration,{})}modifyConfiguration(e){e(this.__configuration),this.saveCurrentConfiguration(this.__configuration)}saveConfiguration(e,o){let a=this.listSavedConfigurations(),s=this.listSavedConfigurations().map((d,p)=>[d,p]).filter(d=>d[0].name==e)[0];s&&a.splice(s[1],1),a.push({configuration:o,name:e,version:h.N.version}),a=a.sort((d,p)=>d.namep.name?1:0);const r=P.compress(JSON.stringify(a),et);localStorage.setItem("storedConfigurations",r),this._storedConfigurations.next(a)}doesSavedConfigurationExist(e){return this.listSavedConfigurations().filter(o=>o.name==e).length>0}loadSavedConfiguration(e){let o=this.listSavedConfigurations().filter(a=>a.name==e)[0];return!!o&&(this.saveCurrentConfiguration(o.configuration),!0)}checkAndFixOldSavedConfigurations(e){if(e.configuration=Object.assign(I.buildEmptyConfiguration(),e.configuration),e.configuration.hasOwnProperty("minimumStatTier")){let o=e.configuration.minimumStatTier;e.configuration.minimumStatTiers[c.WB.Mobility].value=o[c.WB.Mobility],e.configuration.minimumStatTiers[c.WB.Resilience].value=o[c.WB.Resilience],e.configuration.minimumStatTiers[c.WB.Recovery].value=o[c.WB.Recovery],e.configuration.minimumStatTiers[c.WB.Discipline].value=o[c.WB.Discipline],e.configuration.minimumStatTiers[c.WB.Intellect].value=o[c.WB.Intellect],e.configuration.minimumStatTiers[c.WB.Strength].value=o[c.WB.Strength],delete e.configuration.minimumStatTier}if(e.configuration.hasOwnProperty("selectedExoticHash")&&(e.configuration.selectedExotics=[e.configuration.selectedExoticHash],delete e.configuration.selectedExoticHash),e.configuration.hasOwnProperty("maximumStatMods")){for(let a=e.configuration.maximumStatMods;a<5;a++)e.configuration.maximumModSlots[1+a].value=0;delete e.configuration.maximumStatMods}e.configuration.enabledMods=e.configuration.enabledMods.filter(o=>!!N.F[o]),e.configuration.limitParsedResults=!0,e.configuration.addConstent1Resilience=!1}listSavedConfigurations(){let e;try{e=localStorage.getItem("storedConfigurations")||"[]","["!=e.substr(0,1)&&(e=P.decompress(e,rt))}catch{e=[]}let o=JSON.parse(e)||[];return o=o.sort((a,s)=>a.names.name?1:0),o.forEach(a=>this.checkAndFixOldSavedConfigurations(a)),o}deleteStoredConfiguration(e){let o=this.listSavedConfigurations(),a=this.listSavedConfigurations().map((s,r)=>[s,r]).filter(s=>s[0].name==e)[0];a&&o.splice(a[1],1),localStorage.setItem("storedConfigurations",P.compress(JSON.stringify(o),et)),this._storedConfigurations.next(o)}saveCurrentConfigurationToName(e){this.saveConfiguration(e,this.__configuration)}saveCurrentConfiguration(e){console.debug("write configuration",e),this.__configuration=Object.assign(I.buildEmptyConfiguration(),e),this.__configuration.enabledMods=[].concat(this.__configuration.enabledMods),this.__configuration.minimumStatTiers=Object.assign({},this.__configuration.minimumStatTiers);const o=P.compress(JSON.stringify(this.__configuration),et);localStorage.setItem("currentConfig",o),this._configuration.next(Object.assign({},this.__configuration))}loadCurrentConfiguration(){let e;try{e=localStorage.getItem("currentConfig")||"{}","{"!=e.substr(0,1)&&(e=P.decompress(e,rt))}catch{e={}}var o={name:"dummy",version:"1",configuration:JSON.parse(e)};return this.checkAndFixOldSavedConfigurations(o),o.configuration}getCurrentConfigBase64Compressed(){let e=localStorage.getItem("currentConfig")||"{}";return"{"==e.substr(0,1)&&(e=P.compress(e,{outputEncoding:"Base64"})),e}getAllStoredConfigurationsBase64Compressed(){let e=localStorage.getItem("storedConfigurations")||"[]";return"["==e.substr(0,1)&&(e=P.compress(e,{outputEncoding:"Base64"})),e}getStoredConfigurationBase64Compressed(e){let o=this.listSavedConfigurations().filter(a=>a.name==e)[0];return o?P.compress(JSON.stringify(o),{outputEncoding:"Base64"}):""}resetCurrentConfiguration(){this.saveCurrentConfiguration(I.buildEmptyConfiguration())}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var f=g(8012),F=g(1016);let z=(()=>{class n{constructor(e,o,a){this.authService=e,this.http=o,this.status=a}$httpWithoutKey(e){var o=this;return(0,T.Z)(function*(){return o.http.get(e.url,{params:e.params}).toPromise()})()}$httpPost(e){var o=this;return(0,T.Z)(function*(){return o.http.post(e.url,e.body,{params:e.params,headers:{"X-API-Key":h.N.apiKey,Authorization:"Bearer "+o.authService.accessToken}}).toPromise().catch(function(){var a=(0,T.Z)(function*(s){console.error(s)});return function(s){return a.apply(this,arguments)}}())})()}$http(e,o=!0){var a=this;return(0,T.Z)(function*(){return a.http.get(e.url,{params:e.params,headers:{"X-API-Key":h.N.apiKey,Authorization:"Bearer "+a.authService.accessToken}}).toPromise().then(s=>(a.status.clearApiError(),s)).catch(function(){var s=(0,T.Z)(function*(r){console.error(r),h.N.offlineMode?console.debug("Offline mode, ignoring API error"):("SystemDisabled"==r.error?.ErrorStatus&&o&&(console.info("System is disabled. Revoking auth, must re-login"),a.status.setApiError()),"Internal Server Error"!=r.ErrorStatus&&console.info("API-Error"))});return function(r){return s.apply(this,arguments)}}())})()}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(pt),t.LFG(Et.eN),t.LFG(vt))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var j=g(9891);let Ut=(()=>{class n{constructor(e,o,a){this.http=e,this.status=o,this.auth=a,this.auth.logoutEvent.subscribe(s=>this.clearCachedData())}clearCachedData(){localStorage.removeItem("auth-membershipInfo"),localStorage.removeItem("auth-membershipInfo-date")}getMembershipDataForCurrentUser(){var e=this;return(0,T.Z)(function*(){var o=JSON.parse(localStorage.getItem("auth-membershipInfo")||"null"),a=JSON.parse(localStorage.getItem("auth-membershipInfo-date")||"0");if(o&&Date.now()-a<864e5)return console.log("getMembershipDataForCurrentUser -> loading cached! "),o;console.info("BungieApiService","getMembershipDataForCurrentUser");let r=(yield(0,j.Rm)(p=>e.http.$http(p)))?.Response.destinyMemberships;console.info("Memberships:",r),r=r.filter(p=>0==p.crossSaveOverride||p.crossSaveOverride==p.membershipType),console.info("Filtered Memberships:",r);let d=null;if(1==r?.length)d=r?.[0];else{let p=0,A=0;for(let u in r){const M=r?.[u],Y=yield(0,f.Ai)(K=>e.http.$http(K),{components:[100],membershipType:M.membershipType,destinyMembershipId:M.membershipId});if(Y&&Y.Response?.profile.data?.dateLastPlayed){let K=Date.parse(Y.Response?.profile.data?.dateLastPlayed);K>A&&(A=K,p=u)}}console.info("getMembershipDataForCurrentUser","Selected membership data for the last logged in membership."),d=r?.[p]}return localStorage.setItem("auth-membershipInfo",JSON.stringify(d)),localStorage.setItem("auth-membershipInfo-date",JSON.stringify(Date.now())),d})()}getCharacters(){var e=this;return(0,T.Z)(function*(){let o=yield e.getMembershipDataForCurrentUser();if(!o)return e.status.setApiError(),[];const a=yield(0,f.Ai)(s=>e.http.$http(s),{components:[200],membershipType:o.membershipType,destinyMembershipId:o.membershipId});return a?.Response.characters.data&&e.status.clearApiError(),Object.values(a?.Response.characters.data||{}).map(s=>({characterId:s.characterId,clazz:s.classType,emblemUrl:s.emblemBackgroundPath,lastPlayed:Date.parse(s.dateLastPlayed)}))||[]})()}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(z),t.LFG(vt),t.LFG(pt))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Mt(n,i,e,o){const a={2996146975:0,392767087:0,1943323491:0,1735777505:0,144602215:0,4244567218:0};for(let r of i)r.statTypeHash in a&&(a[r.statTypeHash]+=r.value);if(n.slot!=b.y.ArmorSlotClass){const r=[e[6],e[7],e[8],e[9]];n.statPlugHashes=r;var s=r.map(d=>o[d||""]).filter(d=>null!=d);for(let d of s)for(let p of d.investmentStats)p.statTypeHash in a&&(a[p.statTypeHash]+=p.value)}it(n,a)}let At=(()=>{class n{constructor(e,o,a,s,r){var d=this;this.status=e,this.http=o,this.db=a,this.config=s,this.membership=r,this.config_assumeEveryLegendaryIsArtifice=!1,this.config.configuration.subscribe(function(){var p=(0,T.Z)(function*(A){d.config_assumeEveryLegendaryIsArtifice=A.assumeEveryLegendaryIsArtifice});return function(A){return p.apply(this,arguments)}}())}transferItem(e,o,a=!1){var s=this;return(0,T.Z)(function*(){let r=yield s.membership.getMembershipDataForCurrentUser();if(!r)return s.status.setApiError(),!1;s.status.clearApiError();let d=yield(0,f.rV)(A=>s.http.$http(A),{membershipType:r.membershipType,destinyMembershipId:r.membershipId,itemInstanceId:e,components:[307]}),p=!1;if(!d)return!1;if(d.Response.characterId!=o){2!=d.Response.item.data?.location&&(yield s.moveItemToVault(d.Response.item.data?.itemInstanceId||""),d=yield(0,f.rV)(u=>s.http.$http(u),{membershipType:r.membershipType,destinyMembershipId:r.membershipId,itemInstanceId:e,components:[307]}));const A={characterId:o,membershipType:3,itemId:d?.Response.item.data?.itemInstanceId||"",itemReferenceHash:d?.Response.item.data?.itemHash||0,stackSize:1,transferToVault:!1};p=!!(yield(0,f.ux)(u=>s.http.$httpPost(u),A))}if(a){let A={characterId:o,membershipType:3,stackSize:1,itemId:d?.Response.item.data?.itemInstanceId||"",itemReferenceHash:d?.Response.item.data?.itemHash||0};p=!!(yield(0,f.DH)(u=>s.http.$httpPost(u),A))}return p})()}moveItemToVault(e){var o=this;return(0,T.Z)(function*(){console.info("moveItemToVault",e);let a=yield o.membership.getMembershipDataForCurrentUser();if(!a)return void o.status.setApiError();o.status.clearApiError();const s=yield(0,f.rV)(d=>o.http.$http(d),{membershipType:a.membershipType,destinyMembershipId:a.membershipId,itemInstanceId:e,components:[307]}),r={characterId:s?.Response.characterId||"",membershipType:3,itemId:s?.Response.item.data?.itemInstanceId||"",itemReferenceHash:s?.Response.item.data?.itemHash||0,stackSize:1,transferToVault:!0};yield(0,f.ux)(d=>o.http.$httpPost(d),r)})()}getUnlockedExoticArmor(e){var o=this;return(0,T.Z)(function*(){const a=(yield o.db.manifestCollectibles.toArray()).reduce((r,d)=>(r[d.hash]=d.itemHash,r),{}),s=Object.values(e).flatMap(r=>Object.entries(r.collectibles??{})).filter(([r,{state:d}])=>0==(1&d)&&a[parseInt(r)]).map(([r,d])=>a[parseInt(r)]);return new Set(s)})()}updateArmorItems(e=!1){var o=this;return(0,T.Z)(function*(){if(h.N.offlineMode)return void console.info("BungieApiService","updateArmorItems","offline mode, skipping");if(!e&&localStorage.getItem("LastArmorUpdate")&&localStorage.getItem("last-armor-db-name")==o.db.inventoryArmor.db.name&&Date.now()-Number.parseInt(localStorage.getItem("LastArmorUpdate")||"0")<18e5)return;let a=yield o.membership.getMembershipDataForCurrentUser();if(!a)return void o.status.setApiError();o.status.clearApiError(),console.info("BungieApiService","getProfile");let s=yield(0,f.Ai)(v=>o.http.$http(v),{components:[205,201,103,102,304,300,302,305,308,800],membershipType:a.membershipType,destinyMembershipId:a.membershipId});const r=yield o.getUnlockedExoticArmor(s.Response.characterCollectibles.data??{});let d=s.Response.profileInventory.data?.items||[];for(let v in s.Response.characterEquipment.data)d=d.concat(s.Response.characterEquipment.data[v].items);for(let v in s.Response.characterInventories.data)d=d.concat(s.Response.characterInventories.data[v].items);var p=d.filter(v=>[3853748946,4257549984,4257549985,3467984096].indexOf(v.itemHash)>-1).reduce((v,mt)=>(mt.itemHash.toString()in v||(v[mt.itemHash]=0),v[mt.itemHash]+=mt.quantity,v),{});let A=s.Response.profileCurrencies.data?.items.filter(v=>3159615086==v.itemHash)||[];p[3159615086]=A.length>0?A[0].quantity:0,localStorage.setItem("stored-materials",JSON.stringify(p));const u=new Set(d.map(v=>v.itemHash));r.forEach(v=>u.add(v));let M=yield o.db.manifestArmor.toArray();const Y=M.filter(v=>u.has(v.hash)),K=M.filter(v=>19==v.itemType);let $=Object.fromEntries(Y.map(v=>[v.hash,v])),nt=Object.fromEntries(K.map(v=>[v.hash,v])),k=d.filter(v=>!!v.itemInstanceId).filter(v=>3284755031!==v.bucketHash).filter(v=>!!((s.Response.itemComponents.stats.data||{})[v.itemInstanceId||""]?.stats||{})[392767087]).filter(v=>!!((s.Response.itemComponents.instances.data||{})[v.itemInstanceId||""]||{}).energy).map(v=>{let ot=(s.Response.itemComponents.instances.data||{})[v.itemInstanceId||""]||{};if(!$[v.itemHash])return console.warn("Missing manifest item for item hash",v.itemHash),null;let V=dt($[v.itemHash],v.itemInstanceId||"",B.Inventory);V.masterworked=!!ot.energy&&10==ot.energy.energyCapacity,V.energyLevel=ot.energy?ot.energy.energyCapacity:0;const ce=(s.Response.itemComponents.sockets.data||{})[v.itemInstanceId]?.sockets.map($t=>$t.plugHash)??[];return Mt(V,$[v.itemHash]?.investmentStats??[],ce,nt),V.perk==c.Pn.SlotArtifice?(((s.Response.itemComponents.perks.data||{})[v.itemInstanceId||""]||{}).perks||[]).filter(he=>229248542==he.perkHash).length>0||(V.perk=c.Pn.None):V.isExotic&&ce.filter(oe=>720825311==oe).length>0&&(V.perk=c.Pn.SlotArtifice),V}).filter(Boolean);const Q=Array.from(r).map(v=>{const mt=$[v];if(!mt)return console.error("Couldn't find manifest item for exotic",v),null;const ot=dt(mt,`c${mt.hash}`,B.Collections);return Mt(ot,mt.investmentStats,mt.socketEntries.map(V=>V.singleInitialItemHash),nt),ot}).filter(Boolean);return k=k.concat(Q),k=k.filter(v=>!v.statPlugHashes||null!=v.statPlugHashes[0]),yield o.updateDatabaseItems(k),localStorage.setItem("LastArmorUpdate",Date.now().toString()),localStorage.setItem("last-armor-db-name",o.db.inventoryArmor.db.name),o.status.clearApiError(),k})()}updateDatabaseItems(e){var o=this;return(0,T.Z)(function*(){yield o.db.inventoryArmor.filter(r=>r.source==B.Inventory).delete();const s=(yield o.db.inventoryArmor.toArray()).filter(r=>null==r.source||null==r.source).map(r=>r.id);yield o.db.inventoryArmor.bulkDelete(s),yield o.db.inventoryArmor.bulkAdd(e)})()}getArmorPerk(e){if(h.N.featureFlags.enableGuardianGamesFeatures&&(1013401891===e.hash||366019830===e.hash||537041732==e.hash))return c.Pn.GuardianGamesClassItem;const o=e.sockets?.socketEntries??[];if(o.find(a=>1402==a.reusablePlugSetHash)||o.find(a=>1403==a.reusablePlugSetHash))return c.Pn.SlotArtifice;for(const a of o){let s=a.singleInitialItemHash;if(!s)continue;s=c.ED[s]||s;const r=Object.entries(c.DH).find(d=>d[1]==s);if(r)return parseInt(r[0])}return c.Pn.None}updateVendorNames(e){var o=this;return(0,T.Z)(function*(){const s=Object.values(e.DestinyVendorDefinition).map(r=>({vendorId:r.hash,vendorName:r.displayProperties.name}));yield o.db.vendorNames.clear(),yield o.db.vendorNames.bulkAdd(s)})()}updateAbilities(e){return(0,T.Z)(function*(){const o=Object.values(e.DestinyInventoryItemDefinition).filter(a=>a.plug?.plugCategoryIdentifier?.match(/\.(supers|grenades|class_abilities|melee|aspects|fragments)$/));localStorage.setItem("allAbilities",JSON.stringify(o))})()}updateExoticCollectibles(e){var o=this;return(0,T.Z)(function*(){const a=Object.entries(e.DestinyCollectibleDefinition).filter(([s,r])=>{const d=e.DestinyInventoryItemDefinition[r.itemHash];return"Exotic"==d?.inventory?.tierTypeName&&2==d?.itemType}).map(([s,r])=>({hash:parseInt(s),itemHash:r.itemHash}));console.log("Storing",a.length,"exotic armor hashes"),yield o.db.manifestCollectibles.clear(),yield o.db.manifestCollectibles.bulkPut(a)})()}updateManifest(e=!1){var o=this;return(0,T.Z)(function*(){if(h.N.offlineMode)return void console.info("BungieApiService","updateManifest","offline mode, skipping");const a=o.db.lastManifestUpdate();let s=null;if(a&&!e){if(Date.now()-a.updatedAt>9e5&&(s=yield(0,f.KN)(u=>o.http.$httpWithoutKey(u)),a.version==s.Response.version))return void console.debug("bungieApiService - updateManifest","Abort updateManifest due to fitting ManifestVersion");if(Date.now()-a.updatedAt<864e5)return void console.debug("bungieApiService - updateManifest","Abort updateManifest due to fitting Date")}null==s&&(s=yield(0,f.KN)(A=>o.http.$httpWithoutKey(A)));const r=s.Response.version,d=yield(0,F.xG)(A=>o.http.$httpWithoutKey(A),{destinyManifest:s.Response,tableNames:["DestinyInventoryItemDefinition","DestinyCollectibleDefinition","DestinyVendorDefinition"],language:"en"});console.log("manifestTables.DestinyInventoryItemDefinition",d.DestinyInventoryItemDefinition),yield o.updateExoticCollectibles(d),yield o.updateVendorNames(d),yield o.updateAbilities(d);let p=Object.entries(d.DestinyInventoryItemDefinition).filter(([A,u])=>19==u.itemType||2==u.itemType||3448274439==u.inventory?.bucketTypeHash||3551918588==u.inventory?.bucketTypeHash||14239492==u.inventory?.bucketTypeHash||20886954==u.inventory?.bucketTypeHash||1585787867==u.inventory?.bucketTypeHash&&6==u.inventory.tierType).map(([A,u])=>{let M=b.y.ArmorSlotNone;(u.itemCategoryHashes?.indexOf(45)||-1)>-1&&(M=b.y.ArmorSlotHelmet),(u.itemCategoryHashes?.indexOf(46)||-1)>-1&&(M=b.y.ArmorSlotGauntlet),(u.itemCategoryHashes?.indexOf(47)||-1)>-1&&(M=b.y.ArmorSlotChest),(u.itemCategoryHashes?.indexOf(48)||-1)>-1&&(M=b.y.ArmorSlotLegs),(u.itemCategoryHashes?.indexOf(49)||-1)>-1&&(M=b.y.ArmorSlotClass);const Y=(u.sockets?.socketEntries.filter(Q=>2512726577==Q.socketTypeHash||1108765570==Q.socketTypeHash||959256494==Q.socketTypeHash||2512726577==Q.socketTypeHash||3219375296==Q.socketTypeHash||968742181==Q.socketTypeHash)||[]).length>0,K="Exotic"==u.inventory?.tierTypeName?1:0;let $=null;K&&($=(u.sockets?.socketEntries.filter(v=>965959289==v.socketTypeHash).map(v=>v.singleInitialItemHash)||[])[0]);var nt=[1862490585,1862490584,1862490584,1862490583,2471437758],k=u.quality?.versions.filter(Q=>nt.includes(Q.powerCapHash)).length==u.quality?.versions.length;return{hash:u.hash,icon:u.displayProperties.icon,watermarkIcon:(u.quality?.displayVersionWatermarkIcons||[null])[0],name:u.displayProperties.name,description:u.displayProperties.description,clazz:u.classType,armor2:Y,slot:M,isExotic:K,isSunset:k,rarity:u.inventory?.tierType,exoticPerkHash:$,itemType:u.itemType,itemSubType:u.itemSubType,investmentStats:u.investmentStats,perk:o.getArmorPerk(u),socketEntries:u.sockets?.socketEntries??[]}});return yield o.db.writeManifestArmor(p,r),d})()}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(vt),t.LFG(z),t.LFG(S),t.LFG(tt),t.LFG(Ut))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Nt="vendor-next-refresh-time",Lt=[{vendorHash:"3751514131",parentHash:"2190858386"}];let Wt=(()=>{class n{constructor(e,o,a,s){this.membership=e,this.http=o,this.db=a,this.auth=s,this.auth.logoutEvent.subscribe(r=>this.clearCachedData())}clearCachedData(){localStorage.removeItem(Nt),this.db.inventoryArmor.where({source:B.Vendor}).delete()}getVendorArmorItemsForCharacter(e,o,a){var s=this;return(0,T.Z)(function*(){const r=yield(0,f.dH)($=>s.http.$http($,!1),{components:[400,402],characterId:a,membershipType:o.membershipType,destinyMembershipId:o.membershipId,filter:0}),d=Object.entries(r.Response.vendors.data),p=new Map(d),u=d.filter(([$,nt])=>nt.enabled).filter(([$,nt])=>{const k=Lt.find(Q=>Q.vendorHash==$)?.parentHash;return null==k||(console.debug(`${$} has parent ${k} with value ${p.get(k)?.enabled}`),p.get(k)?.enabled??!1)}).filter(([$,nt])=>void 0!==Object.entries(r.Response.sales.data?.[$]?.saleItems??{}).find(([k,Q])=>1==e[Q.itemHash]?.armor2)).map(([$,nt])=>({vendorHash:$,refreshDate:new Date(nt.nextRefreshDate).getTime()})),M=[],Y=Math.min(...u.map($=>$.refreshDate)),K=u.map($=>{let nt=$.vendorHash;return(0,f.wZ)(k=>s.http.$http(k,!1),{components:[304],characterId:a,membershipType:o.membershipType,destinyMembershipId:o.membershipId,vendorHash:parseInt(nt)}).then(k=>{const Q=r.Response.sales.data?.[nt]?.saleItems??{},v=k.Response.itemComponents.stats.data??{};for(const[mt,ot]of Object.entries(Q)){const V=e[ot.itemHash],fe=v[parseInt(mt)];if(128==(128&ot.augments)||!V||!fe)return;const ce=Object.values(fe.stats).reduce((oe,{statHash:Ue,value:he})=>(oe[Ue]=he,oe),{}),$t=dt(V,`v${nt}-${ot.itemHash}`,B.Vendor);it($t,ce),M.push($t)}},k=>{console.error(`Failed to get vendor: ${k}`)})});return yield Promise.all(K),console.log(`Collected ${M.length} vendor armor items for character ${a}`),{items:M,nextRefreshDate:Y}})()}isVendorCacheValid(){const e=localStorage.getItem(Nt);if(!e)return!1;const o=new Date(e);return!!isFinite(o.getTime())&&(console.log("VENDOR C",{nextVendorRefresh:o,finite:isFinite(o.getTime()),ok:o>new Date,now:new Date}),o>new Date)}writeVendorCache(e,o){var a=this;return(0,T.Z)(function*(){console.log(`Writing new vendor cache (${e.length} items), valid until ${o.toISOString()}`),yield a.db.inventoryArmor.where({source:B.Vendor}).delete(),yield a.db.inventoryArmor.bulkPut(e),localStorage.setItem(Nt,o.toISOString())})()}updateVendorArmorItemsCache(){var e=this;return(0,T.Z)(function*(){if(e.isVendorCacheValid())return console.log("Using vendor items cache"),!1;const o=yield e.membership.getMembershipDataForCurrentUser(),a=yield e.membership.getCharacters(),s=(yield e.db.manifestArmor.toArray()).filter(r=>2==r.itemType).reduce((r,d)=>(r[d.hash]=d,r),{});try{const r=yield Promise.all(a.map(({characterId:A})=>e.getVendorArmorItemsForCharacter(s,o,A))),d=r.flatMap(({items:A})=>A),p=Math.max(Math.min(...r.map(({nextRefreshDate:A})=>A)),Date.now()+6e5);return e.writeVendorCache(d,new Date(p)),!0}catch(r){console.error("Failed to update vendor armor items cache",r);const d=new Date;return d.setMinutes(d.getMinutes()+5),e.writeVendorCache([],new Date(d)),!1}})()}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Ut),t.LFG(z),t.LFG(S),t.LFG(pt))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),bt=(()=>{class n{constructor(e,o,a,s,r,d,p){var A=this;this.db=e,this.config=o,this.status=a,this.api=s,this.auth=r,this.router=d,this.vendors=p,this.allArmorResults=[],this.currentClass=3,this._calculationProgress=new R.xQ,this.calculationProgress=this._calculationProgress.asObservable(),this._config=I.buildEmptyConfiguration(),this.results=[],this.totalPermutationCount=0,this.resultMaximumTiers=[],this.resultStatCombo3x100=new Set,this.resultStatCombo4x100=new Set,this.selectedExotics=[],this.itemz=[],this.items=[],this.endResults=[],this.refreshing=!1,this._inventory=new xt.t(1),this.inventory=this._inventory.asObservable(),this._manifest=new xt.t(1),this.manifest=this._manifest.asObservable(),this._armorResults=new Ot.X({results:this.allArmorResults}),this.armorResults=this._armorResults.asObservable(),this.workers=[];let u=!1;d.events.pipe((0,J.b)(5)).subscribe(function(){var M=(0,T.Z)(function*(Y){A.auth.refreshTokenExpired||(yield A.auth.autoRegenerateTokens()),r.isAuthenticated()&&Y instanceof y.m2&&(A.killWorkers(),A.clearResults(),console.debug("Trigger refreshAll due to router.events"),yield A.refreshAll(!u),u=!0)});return function(Y){return M.apply(this,arguments)}}()),this.config.configuration.pipe((0,J.b)(500)).subscribe(function(){var M=(0,T.Z)(function*(Y){A.auth.refreshTokenExpired||(yield A.auth.autoRegenerateTokens()),r.isAuthenticated()&&(A._config=Y,console.debug("Trigger refreshAll due to config change"),yield A.refreshAll(!u),u=!0)});return function(Y){return M.apply(this,arguments)}}())}clearResults(){this.allArmorResults=[],this._armorResults.next({results:this.allArmorResults,totalResults:0,totalTime:0,itemCount:0,maximumPossibleTiers:[0,0,0,0,0,0],statCombo3x100:[],statCombo4x100:[]})}shouldCalculateResults(){return"/"==this.router.url}refreshAll(e=!1,o=!1){var a=this;return(0,T.Z)(function*(){if(!a.refreshing){console.debug("Execute refreshAll");try{a.refreshing=!0;let s=!1;try{let r=yield a.updateManifest(o);s=yield a.updateInventoryItems(r||e),a.updateVendorsAsync()}catch(r){console.error(r)}yield a.triggerArmorUpdateAndUpdateResults(s)}finally{a.refreshing=!1}}})()}triggerArmorUpdateAndUpdateResults(e=!1,o=!0){var a=this;return(0,T.Z)(function*(){e&&a._inventory.next(null),a.shouldCalculateResults()&&(yield a.updateResults())})()}updateVendorsAsync(){this.status.getStatus().updatingVendors||this.vendors.isVendorCacheValid()||(this.status.modifyStatus(e=>e.updatingVendors=!0),this.vendors.updateVendorArmorItemsCache().then(e=>{!e||this.triggerArmorUpdateAndUpdateResults(e,this._config.includeVendorRolls)}).finally(()=>{this.status.modifyStatus(e=>e.updatingVendors=!1)}))}killWorkers(){console.log("killing workers"),this.workers.forEach(e=>{e.terminate()}),this.workers=[]}estimateCombinationsToBeChecked(e,o,a,s){let r=0;const d=e.filter(nt=>nt.isExotic).length,p=e.length-d,A=o.filter(nt=>nt.isExotic).length,u=o.length-A,M=a.filter(nt=>nt.isExotic).length,Y=a.length-M,K=s.filter(nt=>nt.isExotic).length,$=s.length-K;return r+=d*u*Y*$,r+=p*A*Y*$,r+=p*u*M*$,r+=p*u*Y*K,r+=p*u*Y*$,r}updateResults(e=3){var o=this;return(0,T.Z)(function*(){o.clearResults(),o.killWorkers();try{console.time("updateResults with WebWorker"),o.status.modifyStatus(u=>u.calculatingResults=!0);let a=0;o.results=[],o.totalPermutationCount=0,o.resultMaximumTiers=[],o.resultStatCombo3x100=new Set,o.resultStatCombo4x100=new Set;const s=Date.now();let r=o._config;o.selectedExotics=yield Promise.all(r.selectedExotics.filter(u=>u!=D.Io).map(function(){var u=(0,T.Z)(function*(M){return yield o.db.manifestArmor.where("hash").equals(M).first()});return function(M){return u.apply(this,arguments)}}())),o.selectedExotics=o.selectedExotics.filter(u=>!!u),o.itemz=yield o.db.inventoryArmor.where("clazz").equals(r.characterClass).distinct().toArray(),o.itemz=o.itemz.filter(u=>u.slot!=b.y.ArmorSlotNone).filter(u=>-1==r.disabledItems.indexOf(u.itemInstanceId)).filter(u=>{switch(u.source){case B.Collections:return r.includeCollectionRolls;case B.Vendor:return r.includeVendorRolls;default:return!0}}).filter(u=>-1==r.selectedExotics.indexOf(D.Io)||!u.isExotic).filter(u=>1!=o.selectedExotics.length||u.isExotic&&o.selectedExotics[0].hash==u.hash||!u.isExotic&&o.selectedExotics[0].slot!=u.slot).filter(u=>!r.onlyUseMasterworkedExotics||!(6==u.rarity&&!u.masterworked)).filter(u=>!r.onlyUseMasterworkedLegendaries||!(5==u.rarity&&!u.masterworked)).filter(u=>r.allowBlueArmorPieces||6==u.rarity||5==u.rarity).filter(u=>!r.ignoreSunsetArmor||!u.isSunset).filter(u=>u.isExotic||!r.armorPerks[u.slot].fixed||r.armorPerks[u.slot].value==c.Pn.None||r.armorPerks[u.slot].value==u.perk),o.itemz=o.itemz.filter(u=>u.source===B.Inventory||void 0===o.itemz.find(Y=>Y.source===B.Inventory&&function St(n,i){return n.slot===i.slot&&n.hash===i.hash&&n.mobility===i.mobility&&n.resilience===i.resilience&&n.recovery===i.recovery&&n.discipline===i.discipline&&n.intellect===i.intellect&&n.strength===i.strength}(u,Y))),o.items=o.itemz.map(u=>({id:u.id,hash:u.hash,slot:u.slot,clazz:u.clazz,perk:u.perk,isExotic:!!u.isExotic,rarity:u.rarity,isSunset:u.isSunset,masterworked:u.masterworked,mobility:u.mobility,resilience:u.resilience,recovery:u.recovery,discipline:u.discipline,intellect:u.intellect,strength:u.strength,source:u.source})),e=o.estimateRequiredThreads(),console.log("nthreads for calculation",e);const d=[...Array(e).keys()].map(()=>0),p=[...Array(e).keys()].map(()=>0);let A=0;o.items=o.items.sort((u,M)=>yt(M)-yt(u)),o._calculationProgress.next(0);for(let u=0;uk+Q,0),nt=p.reduce((k,Q)=>k+Q,0);if(p[0]>0&&p[1]>0&&p[2]>0){const k=nt/$*100;k>A+.25&&(A=k,o._calculationProgress.next(k))}if(null!=K.runtime){if(o.results.push(...K.results),1==K.done){a++,o.totalPermutationCount+=K.stats.permutationCount,o.resultMaximumTiers.push(K.runtime.maximumPossibleTiers);for(let k of K.runtime.statCombo3x100)o.resultStatCombo3x100.add(k);for(let k of K.runtime.statCombo4x100)o.resultStatCombo4x100.add(k)}if(1==K.done&&a==e){o.status.modifyStatus(k=>k.calculatingResults=!1),o._calculationProgress.next(0),o.endResults=[];for(let k of o.results){let Q=k.armor.map(ot=>o.itemz.find(V=>V.id==ot)),v=Q.find(ot=>ot.isExotic),mt={exotic:null==v?[]:[{icon:v?.icon,watermark:v?.watermarkIcon,name:v?.name,hash:v?.hash}],artifice:k.usedArtifice,modCount:k.usedMods.length,modCost:k.usedMods.reduce((ot,V)=>ot+c.K9[V][2],0),mods:k.usedMods,stats:k.statsWithMods,statsNoMods:k.statsWithoutMods,tiers:(0,It.jG)(k.statsWithMods),waste:(0,It._1)(k.statsWithMods),items:Q.reduce((ot,V)=>(ot[V.slot-1].push({energyLevel:V.energyLevel,hash:V.hash,itemInstanceId:V.itemInstanceId,name:V.name,exotic:!!V.isExotic,masterworked:V.masterworked,mayBeBugged:V.mayBeBugged,slot:V.slot,perk:V.perk,transferState:0,stats:[V.mobility,V.resilience,V.recovery,V.discipline,V.intellect,V.strength],source:V.source}),ot),[[],[],[],[],[]]),classItem:k.classItemPerk,usesCollectionRoll:Q.some(ot=>ot.source===B.Collections),usesVendorRoll:Q.some(ot=>ot.source===B.Vendor)};o.endResults.push(mt)}o._armorResults.next({results:o.endResults,totalResults:o.totalPermutationCount,itemCount:K.stats.itemCount,totalTime:Date.now()-s,maximumPossibleTiers:o.resultMaximumTiers.reduce((k,Q)=>{for(let v=0;v<6;v++)k[v]Math.floor(Math.min(100,k)/10)),statCombo3x100:Array.from(o.resultStatCombo3x100).map(k=>{let Q=[];for(let v=0;v<6;v++)(k&1<0&&Q.push(v);return Q})||[],statCombo4x100:Array.from(o.resultStatCombo4x100).map(k=>{let Q=[];for(let v=0;v<6;v++)(k&1<0&&Q.push(v);return Q},[])||[]}),console.timeEnd("updateResults with WebWorker"),o.workers[u].terminate()}else 1==K.done&&a!=e&&o.workers[u].terminate()}});return function(Y){return M.apply(this,arguments)}}(),o.workers[u].onerror=M=>{o.workers[u].terminate()},o.workers[u].postMessage({currentClass:o.currentClass,config:o._config,threadSplit:{count:e,current:u},items:o.items,selectedExotics:o.selectedExotics})}finally{}})()}estimateRequiredThreads(){const e=this.items.filter(Y=>Y.slot==b.y.ArmorSlotHelmet),o=this.items.filter(Y=>Y.slot==b.y.ArmorSlotGauntlet),a=this.items.filter(Y=>Y.slot==b.y.ArmorSlotChest),s=this.items.filter(Y=>Y.slot==b.y.ArmorSlotLegs),r=this.estimateCombinationsToBeChecked(e,o,a,s),d=Math.max(e.length,o.length,a.length,s.length);let p=1;this._config.tryLimitWastedStats&&this._config.modOptimizationStrategy!=X.w.None&&(p=.7);let u=25e4*p;return Math.max(3,Math.min(Math.max(1,Math.ceil(r/(5e4*p))),Math.ceil(r/u),Math.floor(.75*(navigator.hardwareConcurrency||2)),20,d))}getItemCountForClass(e,o){var a=this;return(0,T.Z)(function*(){let s=yield a.db.inventoryArmor.where("clazz").equals(e).toArray();return o&&(s=s.filter(r=>r.slot==o)),s=s.filter(r=>r.source==B.Inventory),s.length})()}getExoticsForClass(e,o){var a=this;return(0,T.Z)(function*(){let s=yield a.db.inventoryArmor.where("isExotic").equals(1).toArray();s=s.filter(d=>d.clazz==e&&d.armor2&&(!o||d.slot==o));let r=yield a.db.manifestArmor.where("isExotic").equals(1).toArray();return r=r.filter(d=>d.clazz==e&&d.armor2&&(!o||d.slot==o)),r.map(d=>{const p=s.filter(A=>A.hash==d.hash);return{item:d,inCollection:void 0!==p.find(A=>A.source===B.Collections),inInventory:void 0!==p.find(A=>A.source===B.Inventory),inVendor:void 0!==p.find(A=>A.source===B.Vendor)}})})()}updateManifest(e=!1){var o=this;return(0,T.Z)(function*(){if(o.status.getStatus().updatingManifest)return console.error("Already updating the manifest - abort"),!1;o.status.modifyStatus(s=>s.updatingManifest=!0);let a=yield o.api.updateManifest(e).finally(()=>{o.status.modifyStatus(s=>s.updatingManifest=!1)});return a&&o._manifest.next(null),!!a})()}updateInventoryItems(e=!1,o=0){var a=this;return(0,T.Z)(function*(){a.status.modifyStatus(s=>s.updatingInventory=!0);try{return!!(yield a.api.updateArmorItems(e).finally(()=>{a.status.modifyStatus(r=>r.updatingInventory=!1)}))}catch(s){return o>3?(alert("You encountered a strange error with the inventory update. Please log out and log in again. If that does not fix it, please message Mijago."),!1):(a.status.modifyStatus(r=>r.updatingInventory=!1),console.error(s),yield a.updateManifest(!0),yield a.updateInventoryItems(!0,o++))}})()}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(S),t.LFG(tt),t.LFG(vt),t.LFG(At),t.LFG(pt),t.LFG(y.F0),t.LFG(Wt))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const ie="https://Database-Clarity.github.io/Character-Stats",qt=`${ie}/versions/1.9/CharacterStatInfo-NI.json`,Xt=`${ie}/update.json`,jt="clarity-character-stats-version",Yt="clarity-character-stats";let me=(()=>{class n{constructor(e,o){this.http=e,this.inv=o,this._characterStats=new Ot.X(null),this.characterStats=this._characterStats.asObservable(),this.inv.manifest.subscribe(a=>this.load())}load(){var e=this;return(0,T.Z)(function*(){try{yield e.loadCharacterStats()}catch(o){console.warn("Error loading Clarity data",o)}})()}fetchUpdateData(){var e=this;return(0,T.Z)(function*(){return e.http.get(Xt).toPromise()})()}loadCharacterStats(){var e=this;return(0,T.Z)(function*(){const o=localStorage.getItem(Yt);o&&e._characterStats.next(JSON.parse(o));const a=yield e.fetchUpdateData(),s=parseInt(localStorage.getItem(jt)||"0");a&&a.lastUpdate>s&&("1.9"!==a.schemaVersion?console.warn("Unsupported live character stats schema version",a.schemaVersion):a&&void 0!==a.lastUpdate&&(yield e.fetchLiveCharacterStats().then(r=>{localStorage.setItem(Yt,JSON.stringify(r)),localStorage.setItem(jt,a.lastUpdate.toString()),e._characterStats.next(r)})))})()}fetchLiveCharacterStats(){var e=this;return(0,T.Z)(function*(){return e.http.get(qt).toPromise()})()}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Et.eN),t.LFG(bt))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var ct=(()=>{return(n=ct||(ct={}))[n.Speed=1]="Speed",n[n.Percentage=2]="Percentage",n[n.Time=3]="Time",n[n.TimeMMSS=4]="TimeMMSS",n[n.PercentagePerSecond=5]="PercentagePerSecond",ct;var n})();let ae=(()=>{class n{constructor(e){this.clarity=e,this.allStatEntries={},this.overrides=[],this.clarity.characterStats.subscribe(o=>{o&&this.updateCharacterStats(o)})}loadCharacterStats(){this.clarity.load()}updateCharacterStats(e){const o=(JSON.parse(window.localStorage.getItem("allAbilities"))||[]).reduce((a,s)=>(a.set(s.hash,s),a),new Map);this.overrides=Object.values(e).map(a=>a.Overrides).flat(),this.allStatEntries={Mobility:this.generateEntries(e.Mobility,o,[{key:"WalkSpeed",name:"Walk Speed",valueType:ct.Speed},{key:"StrafeSpeed",name:"Strafe Speed",valueType:ct.Speed},{key:"CrouchSpeed",name:"Crouch Speed",valueType:ct.Speed}]),Resilience:this.generateEntries(e.Resilience,o,[{key:"ShieldHP",name:"Shield HP"},{key:"PvEDamageResistance",name:"PvE Damage Resistance",valueType:ct.Percentage},{key:"FlinchResistance",name:"Flinch Resistance",valueType:ct.Percentage}]),Recovery:this.generateEntries(e.Recovery,o,[{key:"TotalRegenTime",name:"Total Regen Time",valueType:ct.Time},{key:"HealthRegenDelay",name:"Health Regen Delay",valueType:ct.Time},{key:"HealthRegenSpeed",name:"Health Regen Speed",valueType:ct.PercentagePerSecond},{key:"ShieldRegenDelay",name:"Shield Regen Delay",valueType:ct.Time},{key:"ShieldRegenSpeed",name:"Shield Regen Speed",valueType:ct.PercentagePerSecond}]),Discipline:this.generateEntries(e.Discipline,o),Intellect:this.generateEntries(e.Intellect,o),Strength:this.generateEntries(e.Strength,o)}}get(e,o,a,s=[]){const r=this.allStatEntries[e]??[],d=this.overrides.filter(p=>s.includes(p.Hash));return r.filter(p=>!(void 0!==o&&void 0!==p.characterClass&&p.characterClass!==o||void 0!==a&&void 0!==p.element&&p.element!==a)).map(p=>d.reduce((A,u)=>function De(n,i){if(!n.hash||!i.Requirements.includes(n.hash))return n;const e={...n,overrideIcons:[...n.overrideIcons??[],i.Hash]};if(i.CooldownOverride)return{...e,values:i.CooldownOverride};if(i.Scalar){const o=i.Requirements.indexOf(n.hash),a=i.Scalar[o];return{...e,values:e.values.map(s=>s*a)}}return console.log("Unhandled override",i),n}(A,u),p))}generateEntries(e,o,a=[]){const s=a.map(({key:d,...p})=>({values:e[d].Array,...p}));return("Abilities"in e?e.Abilities:"SuperAbilities"in e?e.SuperAbilities:[]).forEach(d=>{const p=o.get(d.Hash);if(!p)return;const{characterClass:A,element:u}=function Bt(n){let i,e;const o=n.plug?.plugCategoryIdentifier?.split(".");if(3!==o?.length)return{characterClass:i,element:e};const[a,s,r]=o;return"warlock"===a?i=2:"hunter"===a?i=1:"titan"===a&&(i=0),"arc"===s?e=w.O.Arc:"solar"===s?e=w.O.Solar:"void"===s?e=w.O.Void:"stasis"===s?e=w.O.Stasis:"strand"===s?e=w.O.Strand:"prism"===s&&(e=w.O.Prismatic),{characterClass:i,element:e}}(p);s.push({hash:p.hash,name:p.displayProperties.name,icon:p.displayProperties.icon,values:d.Cooldowns,valueType:ct.TimeMMSS,characterClass:A,element:u})}),s}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(me))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var l=(()=>{return(n=l||(l={}))[n.ADD=0]="ADD",n[n.REMOVE=1]="REMOVE",n[n.MODIFIED=2]="MODIFIED",l;var n})();const xe=[{version:"2.6.2",date:"July 7, 2024",entries:[{type:l.ADD,text:"Added option to ignore existing exotic artifice slots. This is useful for the exotic class item.",issues:[]},{type:l.MODIFIED,text:"Prismatic fragments are now correctly added to the DIM export.",issues:[]},{type:l.MODIFIED,text:"The 'Ignored Items' section is now filtered by the selected class, grouped into armor slots and ordered by item type.",issues:[]},{type:l.MODIFIED,text:"Minor change for the vendor API handling. Thanks nznaza!",issues:[]},{type:l.MODIFIED,text:"Minor change for the manifest API handling.",issues:[]},{type:l.MODIFIED,text:"Mostly minor bugfixes and code improvements.",issues:[]}]},{version:"2.6.1",date:"June 17, 2024",entries:[{type:l.ADD,text:"Add exotic class items.",issues:[]},{type:l.ADD,text:"Added Salvation's Edge Raid modslot and the Echoes of Glory perk.",issues:[]},{type:l.MODIFIED,text:"Changed the way minor mods are displayed. Minor mods are now 25% smaller.",issues:[]},{type:l.MODIFIED,text:"Corrected the description of Facet of Grace.",issues:[]},{type:l.MODIFIED,text:"Added Whisper of Torment, as it now has a -10 in Discipline.",issues:[]},{type:l.REMOVE,text:"Removed old armor modslots (and perks) that no longer exist or function.",issues:[]}]},{version:"2.6.0",date:"June 4, 2024",entries:[{type:l.ADD,text:"Added prismatic fragments.",issues:[]},{type:l.ADD,text:"Added a progressbar that shows the progress of the calculation process.",issues:[]},{type:l.ADD,text:"Added an advanced setting to replace the stat selection boxes with text fields. While it does not look quite nice (as of now), it will allow you to select any value you want. Go get your 6x69 builds done (but don't forget, D2AP still does not add fragments by itself ....YET?!? BUT VERY SOON!)!",issues:[]},{type:l.ADD,text:"Added an 'Assume every exotic has an artifice slot' setting in preparation for the changes in the upcoming expansion. Real artifice exotics should work out-of-the-box at the first day of the expansion, BUT it may happen that I need to update some internal structures. Have fun exploring your options, though!",issues:[]},{type:l.ADD,text:"Added an 'Assume every legendary class item is an artifice armor' setting to allow finer control over the artifice armor assumption.",issues:[]},{type:l.MODIFIED,text:"You will no longer be logged out when the API is offline. The app will use the last known data until the API is back online.",issues:[]},{type:l.MODIFIED,text:"Reworked how calculation workers are spawned, thus improving performance. Thanks to nznaza.",issues:[]},{type:l.MODIFIED,text:"Improved Mod optimisation, leading in drastically reduced runtime when paired with 'Add mods to reduce waste'.",issues:[]},{type:l.MODIFIED,text:"Improved 'Reduce Waste' optimisation. Smarter, better, faster, stronger.",issues:[]},{type:l.MODIFIED,text:"Changing the configuration during a running calculation now restarts the calculation process. Outdated results are a thing of the past!",issues:[]},{type:l.MODIFIED,text:"The amount of workers is now variable and depends on the workload at hand. This should help the insane armor hoarders to reduce the calculation time.",issues:[]},{type:l.MODIFIED,text:"Prepared the vendor API for upcoming Bungie API changes. Thanks to nznaza.",issues:[]},{type:l.MODIFIED,text:"Added 'Exotic Cipher' to the resource overview and removed legendary shards.",issues:[]},{type:l.MODIFIED,text:"Modified the inventory update procedure to be more efficient. This may result in a few hiccups in the first stage - if you encounter any issues, please let me know!",issues:[]},{type:l.MODIFIED,text:"Vendor data is now updated asynchronously. This means that the page will load faster, but the vendor data may be outdated for a few seconds.",issues:[]},{type:l.MODIFIED,text:"The progress notifications are now color-coded and on the right. If there are multiple notifications, then they are stacked.",issues:[]},{type:l.MODIFIED,text:"The display of the used mods is now color-coded to make it easier to distinguish between the different mod types in a single glance.",issues:[]},{type:l.MODIFIED,text:"Locked locks are now red. Mainly because adisypher wouldn't stop asking.",issues:[]},{type:l.MODIFIED,text:"Minor bugfixes and performance optimisation.",issues:[]}]},{version:"2.5.4",date:"April 10, 2024",entries:[{type:l.MODIFIED,text:"Fixed a minor issue where the vendor api may be disabled and block the entire page.",issues:[]}]},{version:"2.5.3",date:"April 5, 2024",entries:[{type:l.MODIFIED,text:"Adapted the logic to parse the new Clarity data format. Thanks to ciar\xe1n!",issues:[]}]},{version:"2.5.2",date:"November 29, 2023",entries:[{type:l.ADD,text:"Split the 'Assume all items are masterworked' switch into 'legendary' and 'exotic' switches. Thanks to Mojo!",issues:[]},{type:l.ADD,text:"Added the 'Ascendant Protector' Perk. Thanks to Mojo!",issues:[]},{type:l.MODIFIED,text:"Fixed artifice mods, again. Thanks to Mojo!",issues:[]},{type:l.MODIFIED,text:"Fixed 'Ghost Items' from the vendor import. Thanks to ciar\xe1n!",issues:[]},{type:l.MODIFIED,text:"Updated the values and descriptions for Subclass Fragments. Thanks to ciar\xe1n!",issues:[]},{type:l.MODIFIED,text:"Artifice Mods are now correctly added to the DIM export. Thanks to nznaza!",issues:[]}]},{version:"2.5.1",date:"October 29, 2023",entries:[{type:l.ADD,text:"Added the 'Exhumed Excess' Perk. The modslot limitations are now ordered. Thanks to Mojo!",issues:[]},{type:l.MODIFIED,text:"Added a solution for the stat distances 63, 64 and 65. You probably won't ever see it, as this is 'five artifice and five major mods'.",issues:[]},{type:l.MODIFIED,text:"'Fix wasted points' is now ignored for stats that are locked.",issues:[]}]},{version:"2.5.0",date:"October 14, 2023",entries:[{type:l.ADD,text:"The stat cooldowns and values are now automatically updated from the Clarity database. Thanks to ciar\xe1n!",issues:[]},{type:l.ADD,text:"The new modslots/perks are now available in the dropdown.",issues:[]},{type:l.MODIFIED,text:"The stat cooldowns now show icons. Thanks to ciar\xe1n!",issues:[]},{type:l.MODIFIED,text:"The fragments now show their icons. Thanks to ciar\xe1n!",issues:[]},{type:l.MODIFIED,text:"Minor internal updates for DIM references. Thanks to bhollis!",issues:[]},{type:l.MODIFIED,text:"Improved the wasted stats selection, again!",issues:[]}]},{version:"2.4.2",date:"July 11, 2023",entries:[{type:l.ADD,text:"Added the ability to use collection roll armor. This is disabled by default. Thanks to ciar\xe1n!",issues:[]},{type:l.ADD,text:"Added the ability to use vendor armor, including Xur. This is disabled by default. Thanks to ciar\xe1n!",issues:[]},{type:l.ADD,text:"Added the ability to select the optimisation strategy. You can now choose between 'Reduce waste', 'Reduce used mods' and 'Reduce used modslots'. The default is 'Reduce waste'.",issues:[]},{type:l.ADD,text:"Re-added the reduce wasted stats feature. It is now disabled by default. It is a bit slower and not really necessary for most people.",issues:[]},{type:l.MODIFIED,text:"Zero Waste is no longer dependent on the 'Reduce wasted stats' setting. In fact, it practically overwrites it.",issues:[]},{type:l.REMOVE,text:"Removed the 'Extra optimisation steps' setting. It is now always enabled.",issues:[]}]},{version:"2.4.0",date:"May 23, 2023",entries:[{type:l.MODIFIED,text:"Rewrote the internal algorithm. It makes stuff faster and gives better results.",issues:[]},{type:l.ADD,text:"Added a 'Perform further optimisation' setting. This will give you better results, but it will take a bit longer.",issues:[]},{type:l.ADD,text:"Added Icons to the Stat Selection to make it easier to see which row is which perk.",issues:[]},{type:l.ADD,text:"Added button to download results as JSON.",issues:[]},{type:l.ADD,text:"Added Sonar Amplifier perk.",issues:[]},{type:l.MODIFIED,text:"Enabled Modslot limitation.",issues:[]},{type:l.MODIFIED,text:"Enabled the 3x100 and 4x100 buttons.",issues:[]},{type:l.MODIFIED,text:"Enabled Zero-Waste mode.",issues:[]},{type:l.MODIFIED,text:"Temporarily disabled 'Reduce Wasted Stats'. It will be back soon.",issues:[]}]},{version:"2.3.2",date:"May 7, 2023",entries:[{type:l.ADD,text:"Feature: Added 'Guardian Games' class item type to the dropdown. ",issues:[]},{type:l.MODIFIED,text:"Reformatted every file in the codebase and improved the code workflow. You should not really see this on your end, but it will allow everyone to easily contribute to this open source project!",issues:[]}]},{version:"2.3.1",date:"April 2, 2023",entries:[{type:l.ADD,text:"Feature: Added the possibility to only show builds that contain an exotic.",issues:[]},{type:l.ADD,text:"Added 'Root of Nightmares' modslot filter.",issues:[]},{type:l.ADD,text:"Added 'Queen's Favor' seasonal perk filter.",issues:[]},{type:l.ADD,text:"Added text indicating that only fragments that affect stats are shown.",issues:[]},{type:l.MODIFIED,text:"Fixed deprecated mods being sent when opening the loadout in DIM. Also adds artifice mods now.",issues:[]},{type:l.MODIFIED,text:"Fixed an issue where the tool did not put artifice mods on the class item if you forced the class item to be artifice.....",issues:[]},{type:l.MODIFIED,text:"Fixed an issue where the default selection was the titan class, even if you had no titan characters.",issues:[]}]},{version:"2.3.0",date:"March 14, 2023",entries:[{type:l.ADD,text:"Automatically adds artifice mods to your armor. This replaces minor and major mods where possible.",issues:[]},{type:l.ADD,text:"Added the amount of used artifice mods to the result table overview (next to the mods). They are not calculated into the 'mod cost' column.",issues:[]},{type:l.ADD,text:"Added new fragments, including Strand.",issues:[]},{type:l.MODIFIED,text:"Adapted modslot cost of Resilience and Recovery mods.",issues:[]},{type:l.MODIFIED,text:"Introduced more modules for asynchronous loading. This is more a speed improvement than a feature.",issues:[]},{type:l.MODIFIED,text:"Reduced the maximum limit of reported results from 50,000 to 30,000. Note that D2AP still calculates every result, it just does not report them. This is a major speedup, and you usually should not even realize the change.",issues:[]},{type:l.MODIFIED,text:"Increased the visual contrast of major mods in the results table. This means it is now easier to distinguish major from minor mods.",issues:[]},{type:l.REMOVE,text:"Removed the elemental affinity completely.",issues:[]},{type:l.REMOVE,text:"DISABLED the 'Zero Waste' feature. It will be re-enabled in the future.",issues:[]},{type:l.REMOVE,text:"DISABLED the 'Modslot Limitation' feature. It will be re-enabled in the future.",issues:[]}]},{version:"2.2.16",date:"December 7, 2022",entries:[{type:l.ADD,text:"Added Ember of Torches (with -10 Discipline).",issues:[]},{type:l.ADD,text:"Added Retrofit mods (mobility and resilience).",issues:[]},{type:l.ADD,text:"Added armor perk 'Seraph Sensor Array' to the dropdown.",issues:[]},{type:l.ADD,text:"Added a Game2Give message. Let's support the little lights together!",issues:[]},{type:l.MODIFIED,text:"Fixed artifice modslot.",issues:[]},{type:l.MODIFIED,text:"Membership data is cached longer to make things faster and to ease the Bungie API.",issues:[]}]},{version:"2.2.15",date:"October 18, 2022",entries:[{type:l.ADD,text:"Added FOTL masks.",issues:[]}]},{version:"2.2.13",date:"September 23, 2022",entries:[{type:l.ADD,text:"Added an advanced setting to replace the 'Tiers' column with a 'Max Tiers' column. This is adds the amount of open modslots to the column, but ignores mod limitations at the moment. A T32 build without mods will now show T37.",issues:[]}]},{version:"2.2.12",date:"September 11, 2022",entries:[{type:l.MODIFIED,text:"Changed the layout to force the settings (left) and results (right) to be next to each other. This means that the page is more mobile approachable. This is also the first step to a more flexible layout.",issues:[]}]},{version:"2.2.11",date:"September 10, 2022",entries:[{type:l.ADD,text:"Added a display for your owned upgrade materials in the character overview.",issues:[]},{type:l.ADD,text:"Added a notification to warn you when you create a modslot limitation that yields no results. Note that this will not (yet) show invalid combinations over all armor, just for the given slot you selected it in.",issues:[]},{type:l.MODIFIED,text:"Reduced size of exotic icons so that the left side will not grow on Titan class.",issues:[]},{type:l.MODIFIED,text:"The 'Performance Optimisation' settings will now always re-enable after a reload to prevent your browser being stuck in a crash-loop. (This is for you, iOS Safari users)",issues:[]},{type:l.MODIFIED,text:"Changed wording of the 'Performance Optimisation' setting to prevent people from using it incorrectly.",issues:[]}]},{version:"2.2.10",date:"September 2, 2022",entries:[{type:l.MODIFIED,text:"Updated Artifice Modslot Hash after the most recent hotfix.",issues:[]}]},{version:"2.2.9",date:"September 1, 2022",entries:[{type:l.MODIFIED,text:"Tooltips do now not obstruct the clicks of stats. This fixes the iOS stat selection issue.",issues:[]}]},{version:"2.2.8c",date:"August 24, 2022",entries:[{type:l.MODIFIED,text:"The manifest is now (again) automatically updated on version changes. This fixes your artifice problems at the beginning of a new season.",issues:[]},{type:l.MODIFIED,text:"Added subclass hashes for Arc. This means that it now transfers to DIM.",issues:[]}]},{version:"2.2.8b",date:"August 24, 2022",entries:[{type:l.MODIFIED,text:"Fixed Artifice modslots. You might need to wait a bit, alternatively delete the database (Account section) or re-log.",issues:[]}]},{version:"2.2.8a",date:"August 23, 2022",entries:[{type:l.MODIFIED,text:"Updated grenade and melee cooldowns for arc.",issues:[]}]},{version:"2.2.8",date:"August 23, 2022",entries:[{type:l.ADD,text:"Added Arc 3.0 fragments.",issues:[]},{type:l.MODIFIED,text:"Fixed tooltip issues on iOS devices.",issues:[]},{type:l.MODIFIED,text:"Fixed an infinite loading issue.",issues:[]}]},{version:"2.2.7",date:"June 25, 2022",entries:[{type:l.ADD,text:"Added a link to my Discord bot Crayon.",issues:[]},{type:l.MODIFIED,text:"Fixed an issue where a large number of stored configurations would drastically slow down the app.",issues:[]}]},{version:"2.2.6",date:"June 8, 2022",entries:[{type:l.MODIFIED,text:"Fixed an issue where the elemental selection would not give the correct results under very specific conditions.",issues:[]}]},{version:"2.2.5",date:"June 7, 2022",entries:[{type:l.ADD,text:"Added all of the new ability cooldowns.",issues:[]},{type:l.MODIFIED,text:"Completely reworked the ability cooldown tooltips. They now show the difference to the currently selected tier.",issues:[]}]},{version:"2.2.4",date:"June 3, 2022",entries:[{type:l.MODIFIED,text:"Fixed the export to DIM. Thanks to bhollis for the fix!",issues:[]},{type:l.MODIFIED,text:"The manifest now automatically updates when Bungie updated it too, except just after a fixed timespan.",issues:[]}]},{version:"2.2.3",date:"May 24, 2022",entries:[{type:l.ADD,text:"Added Solar 3.0",issues:[]},{type:l.MODIFIED,text:"Adapted artifice armor to the new Season.",issues:[]}]},{version:"2.2.2",date:"Mar 9, 2022",entries:[{type:l.ADD,text:"See what mods do by hovering over their name.",issues:["D2AP-41"]},{type:l.ADD,text:"Added Vow of the Disciple armor.",issues:["D2AP-35"]},{type:l.ADD,text:"Added 'Uniformed Officer' armor.",issues:["D2AP-35"]},{type:l.MODIFIED,text:"Fixed Scatter grenades being Tier 3 (were T4 before).",issues:["D2AP-39"]},{type:l.MODIFIED,text:"Changed the color of the login button.",issues:["D2AP-37"]},{type:l.MODIFIED,text:"When a selected character class does not exist, the tool will now select the first available class as default."}]},{version:"2.2.1",date:"Feb 22, 2022",entries:[{type:l.ADD,text:"Added a switch to select between Stasis and Void 3.0 fragments. Stasis is enabled per default to ensure backwards compatibility of saved configurations.",issues:["D2AP-10"]},{type:l.ADD,text:"Added a debug section to the (new) account settings page. The account settings page does not do much yet, I just wanted to deploy the debug functions.",issues:["D2AP-23"]},{type:l.MODIFIED,text:"Modified super cooldowns for Witch Queen."},{type:l.MODIFIED,text:"Added a minor text to the exotic overview that explains that exotics not in the inventory are shown in grayscale. You can also no longer select those.",issues:["D2AP-17"]},{type:l.MODIFIED,text:"Minor changes in how the database behaves on logout. It now deletes the inventory when you log out, but still keeps the manifest.",issues:["D2AP-27"]},{type:l.MODIFIED,text:"Users are now logged out when the Bungie.Net API is down.",issues:["D2AP-34"]},{type:l.MODIFIED,text:"Fixed Charge Harvester and Echo of Persistence incorrectly reducing Discipline instead of recovery when used on a Warlock."}]},{version:"2.2.0",date:"Feb 09, 2022",entries:[{type:l.ADD,text:"Added the ability to select armor perks and 5th slots. Just like the elements you can optionally enforce it to be on a certain slot. Useful if you want to build Iron Banner armor or utilize artifice modslots."},{type:l.ADD,text:"Added the ability to limit the available points on each armor item for stat mods. This allows you to limit the kind of stat mods that are usable. You can now say 'do not use major intellect mods'."},{type:l.ADD,text:"Added the ability to lock stat tiers. Previously you could only set 'Use Tier 3 or higher', now you can optionally set 'Enforce Tier 3'. This is useful for example if you want to enforce T3 mobility on a Titan."},{type:l.ADD,text:"Added a summary of important configuration choices to the result header to improve readability."},{type:l.ADD,text:"Added a button to open the DIM Loadout Builder with the current settings."},{type:l.ADD,text:"Added an option that forces the correct element on non-masterworked armor pieces. This is per default enabled."},{type:l.ADD,text:"Added cooldowns for class abilities (Dodge, Barricade, Rift)."},{type:l.ADD,text:"Added visual indicators for minor and major mods in the overview table. The whole visualization is also more compact now."},{type:l.ADD,text:"Added visual cursor indicator to every clickable input, e.g. in the exotic, element and perk/mod selection."},{type:l.ADD,text:"Added a (very basic) item tooltip."},{type:l.ADD,text:"Show the required material cost for each item. Note that this ignores your class item."},{type:l.ADD,text:"Added a stat summary table to the stat detail view. This allows you to easily share a stat distribution with others."},{type:l.ADD,text:"Added 'Clear this section' button to each configuration section."},{type:l.ADD,text:"Added support for your class items. You won't see a lot of this, except when you use the slot and element limitation in specific ways."},{type:l.ADD,text:"Detailed information is now in expandable containers to improve readability."},{type:l.ADD,text:"Show the seasonal icon for every item too."},{type:l.ADD,text:"Added info text to the table headers."},{type:l.ADD,text:"The character selection now shows the existing characters - and their emblems too!"},{type:l.ADD,text:"Added Discord and another Ko-Fi link. You can find them in the character selection."},{type:l.ADD,text:"Added a changelog popup right at the start of the page. It only appears when a new update occured. You can always trigger it by clicking the current version number."},{type:l.ADD,text:"Now utilizes three webworkers instead of one. The process is simple, but generally speeds up the results by a huge margin."},{type:l.ADD,text:"Added an Armor Investigation tab for data scientists."},{type:l.ADD,text:"Added a sidenav for smaller devices and reworked the top menubar."},{type:l.ADD,text:"The detailed result table now shows the perk of an selected item, if it has one. This also applies to class items, if necessary."},{type:l.ADD,text:"Hovering over exotics in the exotic selection now displays their perk description."},{type:l.ADD,text:"Added an advanced setting to disable white, green and blue armor."},{type:l.ADD,text:"Added an advanced setting to ignore sunset armor."},{type:l.MODIFIED,text:"Changed the word 'Permutation' to 'Combination' wherever it has been used."},{type:l.MODIFIED,text:"Clicking on a setting that is already set does not re-trigger the calculation now. For example, selecting T3 recovery when it is already at T3 now does nothing."},{type:l.MODIFIED,text:"The default for all stats is now tier 0 instead of tier 1, to make it consistent with the clear buttons."},{type:l.MODIFIED,text:"The default setting for 'ignore non masterworked elements' is now 'off'."},{type:l.MODIFIED,text:"The 'time required' number now measures the time from before the webworkers are spawned until all webworkers are done. Previously it only monitored the time required INSIDE the webworker, so it may show slower times."},{type:l.MODIFIED,text:"Fixed the width of the 'Exotic' header in the results table. This means that it is now farther away from the 'Mobility' column."},{type:l.MODIFIED,text:"Completely reworked the elemental affinity selection. Per default it is now not fixed to a certain armor slot, but using a toggle button you can simply do so again."},{type:l.MODIFIED,text:"The results header now screams at you in bright red letters when no results are found."},{type:l.MODIFIED,text:"The alternating rows of the results details table have now a lighter color to make it easier to read."},{type:l.MODIFIED,text:"Fixed ability cooldowns for melee and grenade at tier 7 and tier 8."},{type:l.MODIFIED,text:"Cooldowns now are shown in MM:SS instead of plain seconds."},{type:l.MODIFIED,text:"Completely rewrote the core logic of D2ArmorPicker for the changes mentioned above."},{type:l.MODIFIED,text:"Exotics you do not have in your vault or inventory are now greyed out."},{type:l.MODIFIED,text:"Fixed an issue where exotics were not shown at your first login."},{type:l.MODIFIED,text:"Changed the color of important buttons so that they are easier to read."},{type:l.MODIFIED,text:"The icons of items in the results are now loaded asynchronous from their hashes. This saves a lot of memory, as I do not have to send two icon URLs for each item - for each result. I will further improve this in a later version."},{type:l.MODIFIED,text:"Maximum table output is now limited to 50 results (instead of 200). It still defaults to 20.}"},{type:l.MODIFIED,text:"Completely reworked the visuals of the changelog. It is now more pleasing to the eye."}]},{version:"2.1.4",date:"Dec 29, 2021",entries:[{type:l.MODIFIED,text:"Item stats are now built from their plugs and InvestmentStats (in case of some exotics). This fixes potentially invalid item stats when you use mods like Powerful Friends or Protective Light. A big thanks to u/deangaudet for reminding me that the API also reports the plugs of an item."},{type:l.MODIFIED,text:"Only save necessary item types of the manifest (namely mods and armor). Also, save twhe investmentStats now."},{type:l.MODIFIED,text:"Sped up the item update step."}]},{version:"2.1.3",date:"Dec 16, 2021",entries:[{type:l.MODIFIED,text:"Added new stat cooldowns"}]},{version:"2.1.2",date:"Dec 1, 2021",entries:[{type:l.MODIFIED,text:"The changelog is now in a scrollable box."},{type:l.MODIFIED,text:"Changed buymeacoffee to a ko-fi link. This way we can keep the PayPal support!"}]},{version:"2.1.1",date:"Nov 3, 2021",entries:[{type:l.REMOVE,text:"Removed the HALLOWEEN SPECIAL feature. Maybe something like this will return some day?"},{type:l.ADD,text:"Added tooltip to the item icons in the detailed overview to show the name of the item."},{type:l.MODIFIED,text:"Fixed an issue where the list of exotics did not load at the first login."},{type:l.MODIFIED,text:"Saved configurations now contain the current software version for future reference."},{type:l.MODIFIED,text:"Minor code quality improvements"}]},{version:"2.1.0 (major)",date:"Oct 29, 2021",entries:[{type:l.REMOVE,text:"Completely removed V1 of the tool. If you had any problems with V2, you had over three months to report them."},{type:l.ADD,text:"The stat selection now displays which stat tiers are added by stat mods (PF/RL) or stasis fragments in the configuration."},{type:l.ADD,text:"You can now export (and import) individual configurations as well as all stored configurations at once."},{type:l.ADD,text:"Added a navigation bar to the title bar. On smaller screens it is replaced by two buttons in the character selection."},{type:l.ADD,text:"Added more details to the last step of the 'What to do now?' section. It now lists the fragments and mods you selected."},{type:l.MODIFIED,text:"Optimized code and reduced overall page size."}]},{version:"2.0.16",date:"Oct 26, 2021",entries:[{type:l.MODIFIED,text:"Completely rewrote the core logic in order to fix the memory issues. The tool will now no longer crash when you have many armor items, but it's slightly slower than the previous approach. I tested it with 600 items - it works and does not crash, but takes up to a minute. Make sure to never get that much armor and to lock an exotic right away."},{type:l.MODIFIED,text:"The rewrite also fixed the issue where the tool did not work in Safari, or more generally, on Mac and iPhone."},{type:l.MODIFIED,text:"The rewrite also fixed an issue where items could not be found when an result update was triggered while the inventory was updated."}]},{version:"2.0.15",date:"Oct 24, 2021",entries:[{type:l.MODIFIED,text:"Updated the visual display of the cluster page. It displays the stats in a better way now."},{type:l.MODIFIED,text:"Fixed an issue with login, where you were automatically logged in again and could not switch accounts."}]},{version:"2.0.14",date:"Oct 21, 2021",entries:[{type:l.MODIFIED,text:"Updated URLs to the mobility, resilience and recovery images, as Bungie decided to change their URLs in today's hotfix."}]},{version:"2.0.13",date:"Oct 20, 2021",entries:[{type:l.ADD,text:"Added a chart to the armor clustering page, showing each clusters average stats."},{type:l.MODIFIED,text:"Stats over 100 are now seen as wasted."}]},{version:"2.0.12",date:"Oct 18, 2021",entries:[{type:l.ADD,text:"Added an experimental armor clustering feature."}]},{version:"2.0.11",date:"Oct 13, 2021",entries:[{type:l.ADD,text:"HALLOWEEN SPECIAL! Added (temporary) filter for halloween masks! This will be removed after the event."},{type:l.MODIFIED,text:"Fix: Clear the results if you switch character and no possible permutations can be found."}]},{version:"2.0.10",date:"Oct 10, 2021",entries:[{type:l.ADD,text:"Added 'Equip Items' button to the detailed item overview."}]},{version:"2.0.9",date:"Oct 6, 2021",entries:[{type:l.ADD,text:"Added a detailed description of the steps required to build a selected result."},{type:l.ADD,text:"Added a button to disable all four armor pieces at once."},{type:l.MODIFIED,text:"Fixed an issue where the permutations were not updated after 'Ignore armor elemental affinities on masterworked armor' was changed."}]},{version:"2.0.8",date:"Oct 5, 2021",entries:[{type:l.ADD,text:"Added this changelog to the help page."},{type:l.ADD,text:"Added 'Move to Inventory' button (beta)."},{type:l.ADD,text:"Split up 'Assume items are masterworked' into three settings: Class Items, Legendaries, Exotics"},{type:l.MODIFIED,text:"'Try to optimize wasted stats' is now active per default."},{type:l.MODIFIED,text:"Introduced an item buffer in the results component to further reduce memory usage."}]}];let ye=(()=>{class n{constructor(e){this.changelog=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(se))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-changelog-dialog"]],decls:9,vars:2,consts:[["mat-dialog-title","",1,"title"],[1,"mat-typography"],["align","end"],["cdkFocusInitial","","color","primary","mat-raised-button","",3,"mat-dialog-close"]],template:function(e,o){1&e&&(t.TgZ(0,"h2",0),t._uU(1),t.qZA(),t.TgZ(2,"mat-dialog-content",1)(3,"div"),t._uU(4," Hi! There has been a new version of D2ArmorPicker! The following list shows all the relevant changes. Note that you can always look at the changelogs in the Help tab. "),t.qZA(),t._UZ(5,"app-changelog-list"),t.qZA(),t.TgZ(6,"mat-dialog-actions",2)(7,"button",3),t._uU(8,"Thanks, I saw it!"),t.qZA()()),2&e&&(t.xp6(1),t.hij("D2ArmorPicker Changelog for Version ",o.changelog.changelogData[0].version,""),t.xp6(6),t.Q6J("mat-dialog-close",!0))},styles:[".title[_ngcontent-%COMP%]{text-decoration:underline;-webkit-text-decoration-color:#0059ff;text-decoration-color:#0059ff}"]}),n})();var kt=g(5412);let se=(()=>{class n{constructor(e){this.dialog=e}setChangelogSeenFlag(){return localStorage.setItem("last-changelog-version",this.changelogData[0].version)}get lastViewedChangelog(){return localStorage.getItem("last-changelog-version")}get mustShowChangelog(){return this.changelogData[0].version!==this.lastViewedChangelog}get changelogData(){return xe}openChangelogDialog(){this.dialog.open(ye).afterClosed().subscribe(o=>{this.setChangelogSeenFlag()})}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(kt.uw))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var ut=g(266),Pe=g(3162),Zt=g(7392),Gt=g(6338),Te=g(3848),Re=g(3267);let zt=(()=>{class n{constructor(e,o){this.templateRef=e,this.vcRef=o,this.context={$implicit:null,ngVar:null},this.hasView=!1}set ngVar(e){this.context.$implicit=this.context.ngVar=e,this.hasView||(this.vcRef.createEmbeddedView(this.templateRef,this.context),this.hasView=!0)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.Rgc),t.Y36(t.s_b))},n.\u0275dir=t.lG2({type:n,selectors:[["","ngVar",""]],inputs:{ngVar:"ngVar"}}),n})(),Ne=(()=>{class n{constructor(e){this.changelog=e}ngAfterViewInit(){this.changelog.mustShowChangelog&&this.changelog.openChangelogDialog()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(se))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-changelog-dialog-controller"]],decls:0,vars:0,template:function(e,o){},encapsulation:2}),n})();function qe(n,i){1&n&&(t.TgZ(0,"mat-toolbar",31),t._UZ(1,"span",20),t._uU(2," The API is unavailable. The app will work with the data it has available right now. "),t._UZ(3,"span",20),t.qZA())}function Je(n,i){1&n&&(t.TgZ(0,"mat-toolbar",31),t._UZ(1,"span",20),t._uU(2," There was an error with the authentication. The API may be down, or your session timed out. "),t._UZ(3,"span",20),t.qZA())}function Fe(n,i){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,Je,4,0,"mat-toolbar",1),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e.authError)}}function Le(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"a",32),t.NdJ("click",function(){t.CHM(e),t.oxw();const a=t.MAs(5);return t.KtG(a.toggle())}),t._uU(1),t.qZA()}if(2&n){const e=i.$implicit,o=i.index,a=t.oxw(2);t.ekj("active",a.activeLinkIndex===o),t.Q6J("routerLink",e.link),t.xp6(1),t.hij(" ",e.name," ")}}function Ye(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",33),t.NdJ("click",function(){t.CHM(e),t.oxw();const a=t.MAs(5);return t.KtG(a.toggle())}),t.TgZ(1,"mat-icon",5),t._uU(2,"menu"),t.qZA()()}}function Be(n,i){if(1&n&&(t.TgZ(0,"a",34),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=i.index,a=t.oxw(2);t.Q6J("active",a.activeLinkIndex===o)("routerLink",e.link),t.xp6(1),t.hij(" ",e.name," ")}}function Qe(n,i){1&n&&t._UZ(0,"mat-progress-bar",36)}function Ve(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Qe,1,0,"mat-progress-bar",35),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e.updatingResultsTable||e.calculatingResults||e.calculatingPermutations||e.updatingInventory||e.updatingVendors||e.updatingManifest)}}function He(n,i){1&n&&(t.TgZ(0,"mat-card",43),t._uU(1," Updating vendor information inventory in the background. "),t.qZA())}function We(n,i){1&n&&(t.TgZ(0,"mat-card",44),t._uU(1," Please wait:"),t._UZ(2,"br"),t._uU(3," Updating the cached manifest."),t.qZA())}function je(n,i){1&n&&(t.TgZ(0,"mat-card",45),t._uU(1," Please wait:"),t._UZ(2,"br"),t._uU(3," Updating the cached inventory."),t.qZA())}function Ge(n,i){if(1&n&&(t.TgZ(0,"mat-card",46),t._uU(1," Please wait:"),t._UZ(2,"br"),t._uU(3," Calculating possible results. "),t._UZ(4,"mat-progress-bar",47),t.qZA()),2&n){const e=t.oxw(3);t.xp6(4),t.Q6J("value",e.computationProgress)}}function ze(n,i){1&n&&(t.TgZ(0,"mat-card",48),t._uU(1," Please wait:"),t._UZ(2,"br"),t._uU(3,"Updating the result display table."),t.qZA())}function Ke(n,i){if(1&n&&(t.TgZ(0,"div",37),t.YNc(1,He,2,0,"mat-card",38),t.YNc(2,We,4,0,"mat-card",39),t.YNc(3,je,4,0,"mat-card",40),t.YNc(4,Ge,5,1,"mat-card",41),t.YNc(5,ze,4,0,"mat-card",42),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e.updatingVendors),t.xp6(1),t.Q6J("ngIf",e.updatingManifest),t.xp6(1),t.Q6J("ngIf",e.updatingInventory),t.xp6(1),t.Q6J("ngIf",e.calculatingResults),t.xp6(1),t.Q6J("ngIf",e.updatingResultsTable)}}function $e(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div"),t.YNc(1,qe,4,0,"mat-toolbar",1),t.YNc(2,Fe,2,1,"div",0),t.ALo(3,"async"),t.TgZ(4,"mat-sidenav",2,3),t.ALo(6,"async"),t.TgZ(7,"mat-toolbar")(8,"button",4),t.NdJ("click",function(){t.CHM(e);const a=t.MAs(5);return t.KtG(a.toggle())}),t.TgZ(9,"mat-icon",5),t._uU(10,"menu"),t.qZA(),t._uU(11," Close Menu "),t.qZA()(),t._UZ(12,"hr"),t.TgZ(13,"mat-nav-list"),t.YNc(14,Le,2,4,"a",6),t._UZ(15,"hr"),t.TgZ(16,"a",7)(17,"a",8)(18,"mat-icon",9),t._uU(19,"attach_money"),t.qZA(),t._uU(20," Buy me a coffee! "),t.qZA()(),t.TgZ(21,"a",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.changelog.openChangelogDialog())}),t.TgZ(22,"a",11),t._uU(23," Open changelog "),t.qZA()(),t._UZ(24,"hr"),t.qZA()(),t.TgZ(25,"mat-toolbar",12),t.YNc(26,Ye,3,0,"button",13),t.ALo(27,"async"),t.TgZ(28,"span"),t._uU(29,"D2ArmorPicker "),t.TgZ(30,"small"),t._uU(31," by Mijago"),t.qZA(),t.TgZ(32,"a",14),t._UZ(33,"img",15),t.qZA(),t.TgZ(34,"a",16),t._UZ(35,"img",17),t.qZA(),t.TgZ(36,"a",18),t._UZ(37,"img",19),t.qZA()(),t._UZ(38,"span",20),t.TgZ(39,"div",21)(40,"nav",22),t.YNc(41,Be,2,3,"a",23),t.qZA()(),t._UZ(42,"span",20),t.TgZ(43,"div",24)(44,"span",25)(45,"a",26),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.changelog.openChangelogDialog())}),t._uU(46),t.qZA()(),t.TgZ(47,"a",27)(48,"mat-icon",9),t._uU(49,"attach_money"),t.qZA(),t._uU(50," Buy me a coffee! "),t.qZA(),t.TgZ(51,"button",28),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.refreshAll(!0))}),t.TgZ(52,"mat-icon"),t._uU(53,"refresh"),t.qZA()(),t.TgZ(54,"button",29),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.logout())}),t.TgZ(55,"mat-icon"),t._uU(56,"logout"),t.qZA()()()(),t._UZ(57,"router-outlet"),t.YNc(58,Ve,2,1,"span",0),t.ALo(59,"async"),t.YNc(60,Ke,6,5,"div",30),t.ALo(61,"async"),t._UZ(62,"app-changelog-dialog-controller"),t.qZA()}if(2&n){const e=i.ngVar,o=t.oxw();t.xp6(1),t.Q6J("ngIf",e.apiError),t.xp6(1),t.Q6J("ngVar",t.lcZ(3,10,o.status.status)),t.xp6(2),t.Q6J("opened",!1),t.uIk("role",t.lcZ(6,12,o.isHandset$)?"dialog":"navigation"),t.xp6(10),t.Q6J("ngForOf",o.navLinks),t.xp6(12),t.Q6J("ngIf",t.lcZ(27,14,o.isHandset$)),t.xp6(15),t.Q6J("ngForOf",o.navLinks),t.xp6(5),t.hij("v",o.version,"\xa0"),t.xp6(12),t.Q6J("ngVar",t.lcZ(59,16,o.status.status)),t.xp6(2),t.Q6J("ngVar",t.lcZ(61,18,o.status.status))}}let Xe=(()=>{class n{constructor(e,o,a,s,r,d,p){this.status=e,this.breakpointObserver=o,this.inv=a,this.auth=s,this.router=r,this.characterStats=d,this.changelog=p,this.version=h.N.version,this.activeLinkIndex=0,this.computationProgress=0,this.navLinks=[{link:"/",name:"Home"},{link:"/cluster",name:"Clustering"},{link:"/help",name:"Help"},{link:"/investigate",name:"Armor Investigation"},{link:"/account",name:"Account"}],this.isHandset$=this.breakpointObserver.observe([U.u3.Handset,U.u3.Small,U.u3.XSmall]).pipe((0,E.U)(A=>A.matches),(0,q.d)())}ngOnInit(){this.activeLinkIndex=this.navLinks.indexOf(this.navLinks.find(e=>e.link===this.router.url)),this.router.events.subscribe(e=>{e instanceof y.m2&&(this.activeLinkIndex=this.navLinks.indexOf(this.navLinks.find(o=>o.link===this.router.url)))}),this.characterStats.loadCharacterStats(),this.inv.calculationProgress.subscribe(e=>{this.computationProgress=e})}refreshAll(e){var o=this;return(0,T.Z)(function*(){console.debug("Trigger refreshAll due to button press"),yield o.inv.refreshAll(e)})()}logout(){this.auth.logout()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(vt),t.Y36(U.Yg),t.Y36(bt),t.Y36(pt),t.Y36(y.F0),t.Y36(ae),t.Y36(se))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-app-v2-core"]],decls:2,vars:3,consts:[[4,"ngVar"],["color","warn","class","bar-api-warn",4,"ngIf"],["fixedInViewport","","mode","over",1,"sidenav",3,"opened"],["drawer",""],["aria-label","Toggle sidenav","mat-stroked-button","","type","button",3,"click"],["aria-label","Side nav toggle icon"],["mat-list-item","",3,"active","routerLink","click",4,"ngFor","ngForOf"],["href","https://ko-fi.com/mijago","mat-list-item",""],["color","primary","mat-raised-button","","matTooltip","You like my work? This leads you to ko-fi.com, where you can easily support me!","target","_blank"],["inline",""],["mat-list-item","",3,"click"],["mat-raised-button",""],["id","header","role","heading"],["aria-label","Toggle sidenav","mat-icon-button","","type","button",3,"click",4,"ngIf"],["href","https://twitter.com/MijagoCoding/","matTooltip","Birb App","target","_blank"],["alt","Me on twitter","src","assets/logo-twitter.png",1,"logo-twitter"],["href","https://ko-fi.com/mijago","matTooltip","If you like my work, you can always buy me a coffee!","target","_blank"],["alt","Ko-Fi","src","assets/logo-kofi.png",1,"logo-twitter"],["href","http://discord.d2armorpicker.com/","matTooltip","Visit me at the development & support discord.","target","_blank"],["alt","Discord","src","assets/logo-discord.png",1,"logo-twitter"],[1,"header-spacer"],["fxHide.lt-md","true","fxShow","true"],["id","navbar","mat-tab-nav-bar",""],["mat-tab-link","",3,"active","routerLink",4,"ngFor","ngForOf"],["id","buttonContainer"],["fxShow","false","fxShow.gt-md","true","matTooltip","Click to show the changelog dialog.",1,"changelogText"],[3,"click"],["color","accent","fxHide.lt-md","true","fxShow","true","href","https://ko-fi.com/mijago","mat-stroked-button","","matTooltip","You like my work? This leads you to ko-fi.com, where you can easily support me!","target","_blank"],["aria-label","Refresh","mat-icon-button","","matTooltip","Reload all items from the API.",1,"example-icon",3,"click"],["aria-label","Logout","color","warn","mat-icon-button","","matTooltip","Logout",1,"example-icon",3,"click"],["class","info-container",4,"ngVar"],["color","warn",1,"bar-api-warn"],["mat-list-item","",3,"routerLink","click"],["aria-label","Toggle sidenav","mat-icon-button","","type","button",3,"click"],["mat-tab-link","",3,"active","routerLink"],["id","loading","mode","indeterminate",4,"ngIf"],["id","loading","mode","indeterminate"],[1,"info-container"],["class","info info-updating-vendor",4,"ngIf"],["class","info info-updating-manifest",4,"ngIf"],["class","info info-updating-inventory",4,"ngIf"],["class","info info-calculating-results",4,"ngIf"],["class","info info-updating-results",4,"ngIf"],[1,"info","info-updating-vendor"],[1,"info","info-updating-manifest"],[1,"info","info-updating-inventory"],[1,"info","info-calculating-results"],[3,"value"],[1,"info","info-updating-results"]],template:function(e,o){1&e&&(t.YNc(0,$e,63,20,"div",0),t.ALo(1,"async")),2&e&&t.Q6J("ngVar",t.lcZ(1,1,o.status.status))},dependencies:[Z.sg,Z.O5,O.b8,st.lW,st.zs,L.a8,ut.gM,Pe.pW,Zt.Hw,ht.Ye,Gt.Hk,Gt.Tg,Te.BU,Te.Nj,Re.JX,y.lC,y.yS,zt,Ne,Z.Ov],styles:[".loading[_ngcontent-%COMP%]{cursor:progress}.info-container[_ngcontent-%COMP%]{z-index:1000;position:fixed;top:37px;right:0;display:flex;flex-direction:column;justify-content:center;align-items:center;flex-wrap:wrap;padding:10px;overflow:auto;pointer-events:none}@media (min-width: 1650px){.info-container[_ngcontent-%COMP%]{left:1380px;right:auto}}.info[_ngcontent-%COMP%]{width:200px;margin-bottom:5px;border:antiquewhite 1px solid}.info.info-updating-manifest[_ngcontent-%COMP%]{border-color:#f09c4e}.info.info-updating-inventory[_ngcontent-%COMP%]{border-color:#f0ad4e}.info.info-updating-vendor[_ngcontent-%COMP%]{border-color:#f0e54e}.info.info-calculating-permutations[_ngcontent-%COMP%]{border-color:#5cb85c}.info.info-calculating-results[_ngcontent-%COMP%]{border-color:#89b85c}.info.info-updating-results[_ngcontent-%COMP%]{border-color:#5cb85c}.sidenav-container[_ngcontent-%COMP%]{position:fixed;top:0;left:0;height:100%;z-index:20}.sidenav[_ngcontent-%COMP%]{width:200px;position:fixed;top:0;left:0;height:100%;z-index:20}.sidenav[_ngcontent-%COMP%] .mat-toolbar[_ngcontent-%COMP%]{background:inherit}.sidenav[_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{background-color:#ffffff12;color:#b8c4dc}.mat-toolbar.mat-primary[_ngcontent-%COMP%]{position:sticky;top:0;z-index:1}#header[_ngcontent-%COMP%]{position:relative;height:42px;margin-bottom:5px}.header-spacer[_ngcontent-%COMP%]{flex:1 1 auto}.changelogText[_ngcontent-%COMP%]{cursor:pointer}#loading[_ngcontent-%COMP%]{position:fixed;top:0;width:100%;z-index:1000}.d2ap-router-link[_ngcontent-%COMP%]{cursor:pointer}[_nghost-%COMP%] .mat-tab-link{min-width:75px;opacity:1}.bar-api-warn[_ngcontent-%COMP%]{background-color:#f0894e;position:relative;height:20px;margin-bottom:2px;font-size:16px}"]}),n})();var G=g(2143),Ce=g(8739),de=g(6308),Tt=g(7340),Ct=g(7625);function tn(n,i){1&n&&(t.ynx(0),t._uU(1," Click on a row to expand it and to see the list of the items required for this build."),t._UZ(2,"br"),t.BQk())}function en(n,i){1&n&&(t.ynx(0),t.TgZ(1,"div",59),t._UZ(2,"img",60),t._uU(3,"\xa0 "),t.qZA(),t.TgZ(4,"span",61)(5,"b"),t._uU(6,"No combinations found."),t.qZA()(),t._uU(7," You should loosen your settings a bit. "),t.BQk())}function nn(n,i){if(1&n&&(t.TgZ(0,"mat-icon",62,63),t.ALo(2,"number"),t._uU(3,"report_problem "),t.qZA()),2&n){const e=t.oxw();t.MGl("matTooltip","Note: To speed up the whole process, only ",t.lcZ(2,1,e.parsedResults)," results are listed in this table.\n If you need more entries, disable the limitation in the advanced settings.")}}function on(n,i){if(1&n&&(t.TgZ(0,"mat-icon",62,63),t.ALo(2,"number"),t._uU(3,"report_problem "),t.qZA()),2&n){const e=t.oxw();t.MGl("matTooltip","Note: To prevent Out-Of-Memory crashes, only ",t.lcZ(2,1,e.parsedResults)," results are listed in this table.\n You should narrow down your settings a bit.")}}function an(n,i){1&n&&(t.TgZ(0,"mat-chip",64,63),t._uU(2,"No Exotic "),t.qZA())}function sn(n,i){1&n&&(t.TgZ(0,"mat-chip",65,63),t._uU(2,"Exotic "),t.qZA())}function rn(n,i){1&n&&(t.TgZ(0,"mat-chip",66,63),t._uU(2," Multiple Exotics "),t.qZA())}function ln(n,i){1&n&&(t.TgZ(0,"mat-chip",67,63),t._uU(2,"No stat mods "),t.qZA())}function cn(n,i){1&n&&(t.TgZ(0,"mat-chip",68,63),t._uU(2,"Reduce wasted stats "),t.qZA())}function mn(n,i){1&n&&(t.TgZ(0,"mat-chip",69,63),t._uU(2,"Stat Mod Limitation "),t.qZA())}function dn(n,i){1&n&&(t.TgZ(0,"mat-chip",70,63),t._uU(2," Armor Perk or Slot "),t.qZA())}function un(n,i){1&n&&(t.TgZ(0,"mat-chip",71,63),t._uU(2,"Zero Waste "),t.qZA())}function pn(n,i){1&n&&(t.TgZ(0,"mat-chip",72,63)(2,"mat-icon",73),t._uU(3,"report_problem"),t.qZA(),t._uU(4," \xa0Assume legendaries are artifice\xa0 "),t.TgZ(5,"mat-icon",73),t._uU(6,"report_problem"),t.qZA()())}function gn(n,i){1&n&&(t.TgZ(0,"mat-chip",74,63)(2,"mat-icon",73),t._uU(3,"report_problem"),t.qZA(),t._uU(4," \xa0Assume exotics are artifice\xa0 "),t.TgZ(5,"mat-icon",73),t._uU(6,"report_problem"),t.qZA()())}function _n(n,i){1&n&&(t.TgZ(0,"mat-chip",75,63)(2,"mat-icon",73),t._uU(3,"report_problem"),t.qZA(),t._uU(4," \xa0Ignoring existing artifice slots on exotic items\xa0 "),t.TgZ(5,"mat-icon",73),t._uU(6,"report_problem"),t.qZA()())}function fn(n,i){1&n&&(t.TgZ(0,"mat-chip",76,63),t._uU(2," Masterworked Exotics Only "),t.qZA())}function hn(n,i){1&n&&(t.TgZ(0,"mat-chip",77,63),t._uU(2," Masterworked Legendaries Only "),t.qZA())}function xn(n,i){1&n&&(t.TgZ(0,"mat-chip",78,63),t._uU(2," Masterwork Assumption "),t.qZA())}function yn(n,i){1&n&&(t.TgZ(0,"mat-chip",79,63),t._uU(2," Include Collection Rolls "),t.qZA())}function Tn(n,i){1&n&&(t.TgZ(0,"mat-chip",80,63),t._uU(2," Include Vendor Items "),t.qZA())}function Cn(n,i){1&n&&(t.TgZ(0,"th",81),t._uU(1,"Mobility "),t.qZA())}function bn(n,i){if(1&n&&(t.TgZ(0,"td",82),t._uU(1),t._UZ(2,"img",83),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.xp6(1),t.hij("",e.stats[o.ArmorStat.Mobility]," ")}}function vn(n,i){1&n&&(t.TgZ(0,"th",84),t._uU(1," Resilience "),t.qZA())}function An(n,i){if(1&n&&(t.TgZ(0,"td",82),t._uU(1),t._UZ(2,"img",85),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.xp6(1),t.hij("",e.stats[o.ArmorStat.Resilience]," ")}}function wn(n,i){1&n&&(t.TgZ(0,"th",86),t._uU(1," Recovery "),t.qZA())}function Sn(n,i){if(1&n&&(t.TgZ(0,"td",82),t._uU(1),t._UZ(2,"img",87),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.xp6(1),t.hij("",e.stats[o.ArmorStat.Recovery]," ")}}function In(n,i){1&n&&(t.TgZ(0,"th",88),t._uU(1," Discipline "),t.qZA())}function Zn(n,i){if(1&n&&(t.TgZ(0,"td",82),t._uU(1),t._UZ(2,"img",89),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.xp6(1),t.hij("",e.stats[o.ArmorStat.Discipline]," ")}}function On(n,i){1&n&&(t.TgZ(0,"th",90),t._uU(1," Intellect "),t.qZA())}function Mn(n,i){if(1&n&&(t.TgZ(0,"td",82),t._uU(1),t._UZ(2,"img",91),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.xp6(1),t.hij("",e.stats[o.ArmorStat.Intellect]," ")}}function kn(n,i){1&n&&(t.TgZ(0,"th",92),t._uU(1,"Strength "),t.qZA())}function En(n,i){if(1&n&&(t.TgZ(0,"td",82),t._uU(1),t._UZ(2,"img",93),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.xp6(1),t.hij("",e.stats[o.ArmorStat.Strength]," ")}}function Un(n,i){1&n&&(t.TgZ(0,"th",94),t._uU(1," Used Mods "),t.qZA())}function Dn(n,i){if(1&n&&(t.TgZ(0,"td",95),t._UZ(1,"app-table-mod-display",96),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("mods",e.mods)("artifice",e.artifice)}}function Pn(n,i){1&n&&(t.TgZ(0,"th",97),t._uU(1," Exotic"),t.qZA())}function Rn(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"img",100,63)(3,"img",101),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.s9C("matTooltip",e.name),t.MGl("src","https://bungie.net/",e.icon,"",t.LSH),t.xp6(2),t.MGl("src","https://bungie.net/",e.watermark,"",t.LSH)}}function Nn(n,i){1&n&&t._UZ(0,"img",102)}function qn(n,i){if(1&n&&(t.TgZ(0,"td",95),t.YNc(1,Rn,4,3,"ng-container",98),t.YNc(2,Nn,1,0,"img",99),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngForOf",e.exotic),t.xp6(1),t.Q6J("ngIf",0===e.exotic.length)}}function Jn(n,i){1&n&&(t.TgZ(0,"th",97),t._uU(1,"Sources"),t.qZA())}function Fn(n,i){1&n&&t._UZ(0,"img",106)}function Ln(n,i){1&n&&t._UZ(0,"img",107)}function Yn(n,i){if(1&n&&(t.TgZ(0,"td",95)(1,"span",103),t.YNc(2,Fn,1,0,"img",104),t.YNc(3,Ln,1,0,"img",105),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Q6J("ngIf",!!e.usesCollectionRoll),t.xp6(1),t.Q6J("ngIf",!!e.usesVendorRoll)}}function Bn(n,i){1&n&&t._UZ(0,"th",97)}function Qn(n,i){1&n&&(t.TgZ(0,"mat-icon",111),t._uU(1," expand_more "),t.qZA())}function Vn(n,i){1&n&&(t.TgZ(0,"mat-icon",112),t._uU(1," expand_less "),t.qZA())}function Hn(n,i){1&n&&(t.TgZ(0,"mat-icon",113,63),t._uU(2," report_problem "),t.qZA())}function Wn(n,i){if(1&n&&(t.TgZ(0,"td",95),t.YNc(1,Qn,2,0,"mat-icon",108),t.YNc(2,Vn,2,0,"mat-icon",109),t.YNc(3,Hn,3,0,"mat-icon",110),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.xp6(1),t.Q6J("ngIf",o.expandedElement!==e),t.xp6(1),t.Q6J("ngIf",o.expandedElement===e),t.xp6(1),t.Q6J("ngIf",o.checkIfAnyItemsMayBeInvalid(e))}}function jn(n,i){1&n&&(t.TgZ(0,"th",114),t._uU(1,"Tiers "),t.qZA())}function Gn(n,i){if(1&n&&(t.TgZ(0,"td",95),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",e.tiers," ")}}function zn(n,i){1&n&&(t.TgZ(0,"th",115),t._uU(1,"Max Tiers "),t.qZA())}function Kn(n,i){if(1&n&&(t.TgZ(0,"td",95),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",e.tiers+(5-e.modCount)," ")}}function $n(n,i){1&n&&(t.TgZ(0,"th",116),t._uU(1,"Wasted "),t.qZA())}function Xn(n,i){if(1&n&&(t.TgZ(0,"td",95),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",e.waste," ")}}function to(n,i){if(1&n&&(t.TgZ(0,"td",95)(1,"div",117),t._UZ(2,"app-expanded-result-content",118),t.qZA()()),2&n){const e=i.$implicit,o=t.oxw();t.uIk("colspan",o.shownColumns.length),t.xp6(1),t.Q6J("@detailExpand",e===o.expandedElement?"expanded":"collapsed"),t.xp6(1),t.Q6J("element",e)}}function eo(n,i){1&n&&t._UZ(0,"tr",119)}function no(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"tr",120),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.expandedElement=r.expandedElement===s?null:s)}),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw();t.ekj("example-expanded-row",o.expandedElement===e)}}function oo(n,i){1&n&&t._UZ(0,"tr",121)}function io(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-card-actions"),t._UZ(1,"span",122),t.TgZ(2,"button",123),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.saveBuilds())}),t._uU(3,"Download results as JSON"),t.qZA()()}}const ao=function(){return["expandedDetail"]},so=function(){return[10,20,50]};var Qt=(()=>{return(n=Qt||(Qt={}))[n.TRANSFER_NONE=0]="TRANSFER_NONE",n[n.WAITING_FOR_TRANSFER=1]="WAITING_FOR_TRANSFER",n[n.TRANSFERRING=2]="TRANSFERRING",n[n.TRANSFERRED=3]="TRANSFERRED",n[n.ERROR_DURING_TRANSFER=4]="ERROR_DURING_TRANSFER",Qt;var n})();let be=(()=>{class n{constructor(e,o,a){this.inventory=e,this.config=o,this.status=a,this.ArmorStat=c.WB,this.StatModifier=c.iV,this._results=[],this._config_assumeLegendariesMasterworked=!1,this._config_assumeExoticsMasterworked=!1,this._config_assumeClassItemMasterworked=!1,this._config_maximumStatMods=5,this._config_selectedExotics=[],this._config_tryLimitWastedStats=!1,this._config_onlyUseMasterworkedExotics=!1,this._config_onlyUseMasterworkedLegendaries=!1,this._config_includeCollectionRolls=!1,this._config_includeVendorRolls=!1,this._config_onlyShowResultsWithNoWastedStats=!1,this._config_assumeEveryLegendaryIsArtifice=!1,this._config_assumeEveryExoticIsArtifice=!1,this._config_ignoreExistingExoticArtificeSlots=!1,this._config_modslotLimitation=[],this._config_armorPerkLimitation=[],this.tableDataSource=new G.by,this.paginator=null,this.sort=null,this.expandedElement=null,this.shownColumns=["exotic","mobility","resilience","recovery","discipline","intellect","strength","tiers","mods","dropdown"],this.selectedClass=3,this.totalTime=0,this.itemCount=0,this.totalResults=0,this.parsedResults=0,this.ngUnsubscribe=new R.xQ}ngOnInit(){var e=this;this.config.configuration.pipe((0,Ct.R)(this.ngUnsubscribe)).subscribe(o=>{this.selectedClass=o.characterClass,this._config_assumeLegendariesMasterworked=o.assumeLegendariesMasterworked,this._config_assumeExoticsMasterworked=o.assumeExoticsMasterworked,this._config_assumeClassItemMasterworked=o.assumeClassItemMasterworked,this._config_tryLimitWastedStats=o.tryLimitWastedStats,this._config_maximumStatMods=o.maximumStatMods,this._config_onlyUseMasterworkedExotics=o.onlyUseMasterworkedExotics,this._config_onlyUseMasterworkedLegendaries=o.onlyUseMasterworkedLegendaries,this._config_includeCollectionRolls=o.includeCollectionRolls,this._config_includeVendorRolls=o.includeVendorRolls,this._config_onlyShowResultsWithNoWastedStats=o.onlyShowResultsWithNoWastedStats,this._config_assumeEveryLegendaryIsArtifice=o.assumeEveryLegendaryIsArtifice,this._config_assumeEveryExoticIsArtifice=o.assumeEveryExoticIsArtifice,this._config_ignoreExistingExoticArtificeSlots=o.ignoreExistingExoticArtificeSlots,this._config_selectedExotics=o.selectedExotics,this._config_armorPerkLimitation=Object.entries(o.armorPerks).filter(s=>s[1].value!=c.Pn.None).map(s=>s[1]),this._config_modslotLimitation=Object.entries(o.maximumModSlots).filter(s=>s[1].value<5).map(s=>s[1]);let a=["exotic","mobility","resilience","recovery","discipline","intellect","strength",o.showPotentialTierColumn?"potential_tiers":"tiers","mods"];o.showWastedStatsColumn&&a.push("waste"),(o.includeVendorRolls||o.includeCollectionRolls)&&a.push("source"),a.push("dropdown"),this.shownColumns=a}),this.inventory.armorResults.pipe((0,Ct.R)(this.ngUnsubscribe)).subscribe(function(){var o=(0,T.Z)(function*(a){e._results=a.results,e.itemCount=a.itemCount,e.totalTime=a.totalTime,e.totalResults=a.totalResults,e.parsedResults=e._results.length,e.status.modifyStatus(s=>s.updatingResultsTable=!0),yield e.updateData(),e.status.modifyStatus(s=>s.updatingResultsTable=!1)});return function(a){return o.apply(this,arguments)}}()),this.tableDataSource.paginator=this.paginator,this.tableDataSource.sort=this.sort,this.tableDataSource.sortingDataAccessor=(o,a)=>{switch(a){case"Mobility":return o.stats[c.WB.Mobility];case"Resilience":return o.stats[c.WB.Resilience];case"Recovery":return o.stats[c.WB.Recovery];case"Discipline":return o.stats[c.WB.Discipline];case"Intellect":return o.stats[c.WB.Intellect];case"Strength":return o.stats[c.WB.Strength];case"Tiers":return o.tiers;case"Max Tiers":return 10*(o.tiers+(5-o.modCount));case"Waste":return o.waste;case"Mods":return 100*o.modCount+o.modCost}return 0}}updateData(){var e=this;return(0,T.Z)(function*(){console.time("Update Table Data"),e.tableDataSource.paginator=e.paginator,e.tableDataSource.sort=e.sort,e.tableDataSource.data=e._results,console.timeEnd("Update Table Data")})()}checkIfAnyItemsMayBeInvalid(e){return(e?.items.filter(o=>o.filter(a=>a.mayBeBugged).length>0).length||0)>0}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}saveBuilds(){let e={configCompressed:this.config.getCurrentConfigBase64Compressed(),config:this.config.readonlyConfigurationSnapshot,results:this._results.map(r=>{let d=Object.assign({},r);return d.items=d.items.map(p=>({hash:p[0].hash,instance:p[0].itemInstanceId})),delete d.exotic,d})};document.createElement("a").download="builds.json";const a=window.URL.createObjectURL(new Blob([JSON.stringify(e,null,2)])),s=document.createElement("a");s.href=a,s.setAttribute("download","d2ap_results.json"),document.body.appendChild(s),s.click()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(bt),t.Y36(tt),t.Y36(vt))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-results"]],viewQuery:function(e,o){if(1&e&&(t.Gf(Ce.NW,5),t.Gf(de.YE,5)),2&e){let a;t.iGM(a=t.CRH())&&(o.paginator=a.first),t.iGM(a=t.CRH())&&(o.sort=a.first)}},decls:98,vars:37,consts:[["id","card-results"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","5px",1,"config-summary-box"],["appearance","outline","fxFlex","",1,"info-box"],["matInput","","readonly","",3,"value"],["class","report-problem-icon","matSuffix","",3,"matTooltip",4,"ngIf"],["appearance","outline","disabled","",1,"config-summary-box"],["matInput","","readonly","","value","\xa0",1,"hidden-input"],["aria-label","Configuration Summary"],["disableRipple","","matTooltip","This setting enforces that all exotics are ignored.",4,"ngIf"],["disableRipple","","matTooltip","This setting enforces that only one specific exotic is used.",4,"ngIf"],["disableRipple","","matTooltip","The tool will try to fulfill your settings for all the selected exotics. If you select exotics in different slots then it will search for legendary items to allow hotswapping with the same stats.",4,"ngIf"],["disableRipple","","matTooltip","You enforced that no stat mods are used.",4,"ngIf"],["disableRipple","","matTooltip","The tool will add minor stat mods to reduce wasted stats.",4,"ngIf"],["disableRipple","","matTooltip","This setting limits available stat mod types, like major Intellect or Recovery.",4,"ngIf"],["disableRipple","","matTooltip","This setting enforces an specific armor perk or modslot for a specific armor slot.",4,"ngIf"],["disableRipple","","matTooltip","This setting means that only builds with no wasted stats are shown.","selected","",4,"ngIf"],["disableRipple","","matTooltip","EVERY legendary is assumed to be artifice.","selected","","color","warn",4,"ngIf"],["disableRipple","","matTooltip","EVERY exotic is assumed to be artifice.","selected","","color","warn",4,"ngIf"],["disableRipple","","matTooltip","Ignoring existing artifice slots on exotic items.","selected","","color","warn",4,"ngIf"],["disableRipple","","matTooltip","This setting means that only exotic armor pieces that are already masterworked are used.","selected","",4,"ngIf"],["disableRipple","","matTooltip","This setting means that only legendary armor pieces are already masterworked are used.","selected","",4,"ngIf"],["disableRipple","","matTooltip","Some masterwork assumptions are in place. This means that you may have to masterwork items. Look at your advanced settings to see which ones are activated.",4,"ngIf"],["disableRipple","","matTooltip","Collection Exotic rolls will be included in the search.",4,"ngIf"],["disableRipple","","matTooltip","Currently available Vendor items will be included in the search.",4,"ngIf"],[1,"hint-text"],["aria-hidden","false","inline",""],["mat-table","","matSort","","matSortActive","Mods","matSortDirection","asc","multiTemplateDataRows","",1,"result-table",3,"dataSource"],["matColumnDef","mobility"],["mat-header-cell","","mat-sort-header","Mobility","matTooltip","The mobility of this armor combination.",4,"matHeaderCellDef"],["class","statColumn","mat-cell","",4,"matCellDef"],["matColumnDef","resilience"],["mat-header-cell","","mat-sort-header","Resilience","matTooltip","The resilience of this armor combination.",4,"matHeaderCellDef"],["matColumnDef","recovery"],["mat-header-cell","","mat-sort-header","Recovery","matTooltip","The recovery of this armor combination.",4,"matHeaderCellDef"],["matColumnDef","discipline"],["mat-header-cell","","mat-sort-header","Discipline","matTooltip","The discipline of this armor combination.",4,"matHeaderCellDef"],["matColumnDef","intellect"],["mat-header-cell","","mat-sort-header","Intellect","matTooltip","The intellect of this armor combination.",4,"matHeaderCellDef"],["matColumnDef","strength"],["mat-header-cell","","mat-sort-header","Strength","matTooltip","The strength of this armor combination.",4,"matHeaderCellDef"],["matColumnDef","mods"],["mat-header-cell","","mat-sort-header","Mods","matTooltip","The amount of mods required for each combination. Sorting after this takes the mod cost into account.",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","exotic"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","source"],["matColumnDef","dropdown"],["matColumnDef","tiers"],["mat-header-cell","","mat-sort-header","Tiers","matTooltip","The amount of Tiers in this build. A tier is each successful 10-step of any stat.",4,"matHeaderCellDef"],["matColumnDef","potential_tiers"],["mat-header-cell","","mat-sort-header","Max Tiers","matTooltip","The potential reachable stat tiers with all N stat mods used. As of now, this does NOT take mod filters into consideration.",4,"matHeaderCellDef"],["matColumnDef","waste"],["mat-header-cell","","mat-sort-header","Waste","matTooltip","How many points are wasted. Any stat not ending in 0 adds to this value.",4,"matHeaderCellDef"],["matColumnDef","expandedDetail"],["mat-header-row","",4,"matHeaderRowDef"],["class","example-element-row","mat-row","",3,"example-expanded-row","click",4,"matRowDef","matRowDefColumns"],["class","example-detail-row","mat-row","",4,"matRowDef","matRowDefColumns"],["aria-label","Select page of periodic elements","pageSize","20","showFirstLastButtons","",3,"pageSizeOptions"],[1,"no-found-sadcat-container"],["src","assets/status/emoji/sadcat.png",1,"no-found-sadcat"],[1,"warning-none-found"],["matSuffix","",1,"report-problem-icon",3,"matTooltip"],["tooltip","matTooltip"],["disableRipple","","matTooltip","This setting enforces that all exotics are ignored."],["disableRipple","","matTooltip","This setting enforces that only one specific exotic is used."],["disableRipple","","matTooltip","The tool will try to fulfill your settings for all the selected exotics. If you select exotics in different slots then it will search for legendary items to allow hotswapping with the same stats."],["disableRipple","","matTooltip","You enforced that no stat mods are used."],["disableRipple","","matTooltip","The tool will add minor stat mods to reduce wasted stats."],["disableRipple","","matTooltip","This setting limits available stat mod types, like major Intellect or Recovery."],["disableRipple","","matTooltip","This setting enforces an specific armor perk or modslot for a specific armor slot."],["disableRipple","","matTooltip","This setting means that only builds with no wasted stats are shown.","selected",""],["disableRipple","","matTooltip","EVERY legendary is assumed to be artifice.","selected","","color","warn"],["inline","",2,"height","100%"],["disableRipple","","matTooltip","EVERY exotic is assumed to be artifice.","selected","","color","warn"],["disableRipple","","matTooltip","Ignoring existing artifice slots on exotic items.","selected","","color","warn"],["disableRipple","","matTooltip","This setting means that only exotic armor pieces that are already masterworked are used.","selected",""],["disableRipple","","matTooltip","This setting means that only legendary armor pieces are already masterworked are used.","selected",""],["disableRipple","","matTooltip","Some masterwork assumptions are in place. This means that you may have to masterwork items. Look at your advanced settings to see which ones are activated."],["disableRipple","","matTooltip","Collection Exotic rolls will be included in the search."],["disableRipple","","matTooltip","Currently available Vendor items will be included in the search."],["mat-header-cell","","mat-sort-header","Mobility","matTooltip","The mobility of this armor combination."],["mat-cell","",1,"statColumn"],["alt","Mobility","src","https://www.bungie.net/common/destiny2_content/icons/e26e0e93a9daf4fdd21bf64eb9246340.png",1,"statIcon"],["mat-header-cell","","mat-sort-header","Resilience","matTooltip","The resilience of this armor combination."],["alt","Resilience","src","https://www.bungie.net/common/destiny2_content/icons/202ecc1c6febeb6b97dafc856e863140.png",1,"statIcon"],["mat-header-cell","","mat-sort-header","Recovery","matTooltip","The recovery of this armor combination."],["alt","Recovery","src","https://www.bungie.net/common/destiny2_content/icons/128eee4ee7fc127851ab32eac6ca91cf.png",1,"statIcon"],["mat-header-cell","","mat-sort-header","Discipline","matTooltip","The discipline of this armor combination."],["alt","Discipline","src","https://www.bungie.net/common/destiny2_content/icons/79be2d4adef6a19203f7385e5c63b45b.png",1,"statIcon"],["mat-header-cell","","mat-sort-header","Intellect","matTooltip","The intellect of this armor combination."],["alt","Intellect","src","https://www.bungie.net/common/destiny2_content/icons/d1c154469670e9a592c9d4cbdcae5764.png",1,"statIcon"],["mat-header-cell","","mat-sort-header","Strength","matTooltip","The strength of this armor combination."],["alt","Strength","src","https://www.bungie.net/common/destiny2_content/icons/ea5af04ccd6a3470a44fd7bb0f66e2f7.png",1,"statIcon"],["mat-header-cell","","mat-sort-header","Mods","matTooltip","The amount of mods required for each combination. Sorting after this takes the mod cost into account."],["mat-cell",""],[1,"modPreview",3,"mods","artifice"],["mat-header-cell",""],[4,"ngFor","ngForOf"],["class","itemIcon","src","https://www.bungie.net/common/destiny2_content/icons/b4d05ef69d0c3227a7d4f7f35bbc2848.png",4,"ngIf"],[1,"itemIcon",3,"matTooltip","src"],[1,"itemIconWatermark",3,"src"],["src","https://www.bungie.net/common/destiny2_content/icons/b4d05ef69d0c3227a7d4f7f35bbc2848.png",1,"itemIcon"],[1,"source-column"],["matTooltip","This build uses a collection exotic. You have to collect it before you can use it.","class","collectionIcon","src","https://www.bungie.net/common/destiny2_content/icons/1d01287dd47af97fef16fa6acbac23ba.png",4,"ngIf"],["matTooltip","This build uses a vendor item. You have to collect it before you can use it.","class","vendorIcon","src","https://www.bungie.net/common/destiny2_content/icons/8ef4b5bd32277dba9aee7c368404ad5d.jpg",4,"ngIf"],["matTooltip","This build uses a collection exotic. You have to collect it before you can use it.","src","https://www.bungie.net/common/destiny2_content/icons/1d01287dd47af97fef16fa6acbac23ba.png",1,"collectionIcon"],["matTooltip","This build uses a vendor item. You have to collect it before you can use it.","src","https://www.bungie.net/common/destiny2_content/icons/8ef4b5bd32277dba9aee7c368404ad5d.jpg",1,"vendorIcon"],["matTooltip","Click to show details for this build.",4,"ngIf"],["matTooltip","Click to hide details for this build.",4,"ngIf"],["aria-hidden","false","aria-label","Error","class","report-problem-icon","inline","","matTooltip","The stats of this build may be incorrect. Make sure that you remove every positive or negative stat modifier from the marked items.",4,"ngIf"],["matTooltip","Click to show details for this build."],["matTooltip","Click to hide details for this build."],["aria-hidden","false","aria-label","Error","inline","","matTooltip","The stats of this build may be incorrect. Make sure that you remove every positive or negative stat modifier from the marked items.",1,"report-problem-icon"],["mat-header-cell","","mat-sort-header","Tiers","matTooltip","The amount of Tiers in this build. A tier is each successful 10-step of any stat."],["mat-header-cell","","mat-sort-header","Max Tiers","matTooltip","The potential reachable stat tiers with all N stat mods used. As of now, this does NOT take mod filters into consideration."],["mat-header-cell","","mat-sort-header","Waste","matTooltip","How many points are wasted. Any stat not ending in 0 adds to this value."],[1,"example-element-detail"],[3,"element"],["mat-header-row",""],["mat-row","",1,"example-element-row",3,"click"],["mat-row","",1,"example-detail-row"],[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"mat-card",0)(1,"mat-card-title"),t._uU(2,"Results"),t.qZA(),t.TgZ(3,"mat-card-subtitle"),t.YNc(4,tn,3,0,"ng-container",1),t.YNc(5,en,8,0,"ng-container",1),t.qZA(),t.TgZ(6,"mat-card-content")(7,"div")(8,"div",2)(9,"mat-form-field",3)(10,"mat-label"),t._uU(11,"Items Used"),t.qZA(),t._UZ(12,"input",4),t.ALo(13,"number"),t.qZA(),t.TgZ(14,"mat-form-field",3)(15,"mat-label"),t._uU(16,"Combinations generated"),t.qZA(),t._UZ(17,"input",4),t.ALo(18,"number"),t.YNc(19,nn,4,3,"mat-icon",5),t.YNc(20,on,4,3,"mat-icon",5),t.qZA(),t.TgZ(21,"mat-form-field",3)(22,"mat-label"),t._uU(23,"Time required"),t.qZA(),t._UZ(24,"input",4),t.ALo(25,"number"),t.qZA()(),t.TgZ(26,"mat-form-field",6)(27,"mat-label"),t._uU(28,"Summary of important configuration choices"),t.qZA(),t._UZ(29,"input",7),t.TgZ(30,"mat-chip-list",8),t.YNc(31,an,3,0,"mat-chip",9),t.YNc(32,sn,3,0,"mat-chip",10),t.YNc(33,rn,3,0,"mat-chip",11),t.YNc(34,ln,3,0,"mat-chip",12),t.YNc(35,cn,3,0,"mat-chip",13),t.YNc(36,mn,3,0,"mat-chip",14),t.YNc(37,dn,3,0,"mat-chip",15),t.YNc(38,un,3,0,"mat-chip",16),t.YNc(39,pn,7,0,"mat-chip",17),t.YNc(40,gn,7,0,"mat-chip",18),t.YNc(41,_n,7,0,"mat-chip",19),t.YNc(42,fn,3,0,"mat-chip",20),t.YNc(43,hn,3,0,"mat-chip",21),t.YNc(44,xn,3,0,"mat-chip",22),t.YNc(45,yn,3,0,"mat-chip",23),t.YNc(46,Tn,3,0,"mat-chip",24),t.qZA()(),t.TgZ(47,"div",25)(48,"mat-icon",26),t._uU(49,"info"),t.qZA(),t._uU(50," Note that you can change the sort column and order of the table by clicking on the headers. "),t.qZA(),t.TgZ(51,"table",27),t.ynx(52,28),t.YNc(53,Cn,2,0,"th",29),t.YNc(54,bn,3,1,"td",30),t.BQk(),t.ynx(55,31),t.YNc(56,vn,2,0,"th",32),t.YNc(57,An,3,1,"td",30),t.BQk(),t.ynx(58,33),t.YNc(59,wn,2,0,"th",34),t.YNc(60,Sn,3,1,"td",30),t.BQk(),t.ynx(61,35),t.YNc(62,In,2,0,"th",36),t.YNc(63,Zn,3,1,"td",30),t.BQk(),t.ynx(64,37),t.YNc(65,On,2,0,"th",38),t.YNc(66,Mn,3,1,"td",30),t.BQk(),t.ynx(67,39),t.YNc(68,kn,2,0,"th",40),t.YNc(69,En,3,1,"td",30),t.BQk(),t.ynx(70,41),t.YNc(71,Un,2,0,"th",42),t.YNc(72,Dn,2,2,"td",43),t.BQk(),t.ynx(73,44),t.YNc(74,Pn,2,0,"th",45),t.YNc(75,qn,3,2,"td",43),t.BQk(),t.ynx(76,46),t.YNc(77,Jn,2,0,"th",45),t.YNc(78,Yn,4,2,"td",43),t.BQk(),t.ynx(79,47),t.YNc(80,Bn,1,0,"th",45),t.YNc(81,Wn,4,3,"td",43),t.BQk(),t.ynx(82,48),t.YNc(83,jn,2,0,"th",49),t.YNc(84,Gn,2,1,"td",43),t.BQk(),t.ynx(85,50),t.YNc(86,zn,2,0,"th",51),t.YNc(87,Kn,2,1,"td",43),t.BQk(),t.ynx(88,52),t.YNc(89,$n,2,0,"th",53),t.YNc(90,Xn,2,1,"td",43),t.BQk(),t.ynx(91,54),t.YNc(92,to,3,3,"td",43),t.BQk(),t.YNc(93,eo,1,0,"tr",55),t.YNc(94,no,1,2,"tr",56),t.YNc(95,oo,1,0,"tr",57),t.qZA(),t._UZ(96,"mat-paginator",58),t.qZA()(),t.YNc(97,io,4,0,"mat-card-actions",1),t.qZA()),2&e&&(t.xp6(4),t.Q6J("ngIf",o.totalResults>0),t.xp6(1),t.Q6J("ngIf",0===o.totalResults),t.xp6(7),t.s9C("value",t.lcZ(13,29,o.itemCount)),t.xp6(5),t.s9C("value",t.lcZ(18,31,o.totalResults)),t.xp6(2),t.Q6J("ngIf",o.parsedResults!==o.totalResults&&5e4===o.parsedResults),t.xp6(1),t.Q6J("ngIf",o.parsedResults!==o.totalResults&&1e6===o.parsedResults),t.xp6(4),t.MGl("value","",t.lcZ(25,33,o.totalTime),"ms"),t.xp6(7),t.Q6J("ngIf",o._config_selectedExotics.indexOf(-1)>-1),t.xp6(1),t.Q6J("ngIf",1===o._config_selectedExotics.length&&-1===o._config_selectedExotics.indexOf(-1)),t.xp6(1),t.Q6J("ngIf",o._config_selectedExotics.length>1&&-1===o._config_selectedExotics.indexOf(-1)),t.xp6(1),t.Q6J("ngIf",0===o._config_maximumStatMods),t.xp6(1),t.Q6J("ngIf",o._config_tryLimitWastedStats),t.xp6(1),t.Q6J("ngIf",o._config_modslotLimitation.length>0),t.xp6(1),t.Q6J("ngIf",o._config_armorPerkLimitation.length>0),t.xp6(1),t.Q6J("ngIf",o._config_onlyShowResultsWithNoWastedStats),t.xp6(1),t.Q6J("ngIf",o._config_assumeEveryLegendaryIsArtifice),t.xp6(1),t.Q6J("ngIf",o._config_assumeEveryExoticIsArtifice),t.xp6(1),t.Q6J("ngIf",o._config_ignoreExistingExoticArtificeSlots),t.xp6(1),t.Q6J("ngIf",o._config_onlyUseMasterworkedExotics),t.xp6(1),t.Q6J("ngIf",o._config_onlyUseMasterworkedLegendaries),t.xp6(1),t.Q6J("ngIf",!o._config_onlyUseMasterworkedExotics&&!o._config_onlyUseMasterworkedLegendaries&&(o._config_assumeLegendariesMasterworked||o._config_assumeExoticsMasterworked||o._config_assumeClassItemMasterworked)),t.xp6(1),t.Q6J("ngIf",o._config_includeCollectionRolls),t.xp6(1),t.Q6J("ngIf",o._config_includeVendorRolls),t.xp6(5),t.Q6J("dataSource",o.tableDataSource),t.xp6(42),t.Q6J("matHeaderRowDef",o.shownColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.shownColumns),t.xp6(1),t.Q6J("matRowDefColumns",t.DdM(35,ao)),t.xp6(1),t.Q6J("pageSizeOptions",t.DdM(36,so)),t.xp6(1),t.Q6J("ngIf",o.totalResults>0))},styles:["#card-results[_ngcontent-%COMP%]{display:inline-block;vertical-align:top;white-space:normal;width:-moz-fit-content;width:fit-content;margin-left:3px}.statColumn[_ngcontent-%COMP%]{position:relative}.statIcon[_ngcontent-%COMP%]{position:absolute;height:22px;margin-left:2px;top:11px}.itemIcon[_ngcontent-%COMP%]{width:32px;height:32px;margin-right:3px}.itemIconWatermark[_ngcontent-%COMP%]{width:32px;height:32px;margin-right:3px;margin-left:-35px;pointer-events:none}.source-column[_ngcontent-%COMP%]{float:left}.source-column[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:nth-of-type(2){margin-top:5px;margin-bottom:-3px}.collectionIcon[_ngcontent-%COMP%], .vendorIcon[_ngcontent-%COMP%]{width:32px;margin-left:3px;display:block}tr.example-element-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom-width:0}tr.example-detail-row[_ngcontent-%COMP%]{height:0!important}.example-element-detail[_ngcontent-%COMP%]{overflow:hidden;display:flex}.report-problem-icon[_ngcontent-%COMP%]{color:#f08080}.hint-text[_ngcontent-%COMP%]{font-size:small;color:#d5d5d5}[_nghost-%COMP%] .info-box .mat-form-field-wrapper{padding-bottom:5px!important;cursor:default}.hidden-input[_ngcontent-%COMP%]{display:none}.config-summary-box[_ngcontent-%COMP%]{width:100%}.result-table[_ngcontent-%COMP%] tr.example-element-row[_ngcontent-%COMP%]{cursor:pointer}.mat-row[_ngcontent-%COMP%]:nth-child(4n+3){background-color:#7474741a}.warning-none-found[_ngcontent-%COMP%]{color:red}.no-found-sadcat-container[_ngcontent-%COMP%]{width:20px;position:relative;display:inline-block}.no-found-sadcat[_ngcontent-%COMP%]{position:absolute;width:18px;top:-1px}.cdk-column-exotic[_ngcontent-%COMP%]{min-width:45px}.cdk-column-waste[_ngcontent-%COMP%]{padding-left:5px}"],data:{animation:[(0,Tt.X$)("detailExpand",[(0,Tt.SB)("collapsed, void",(0,Tt.oB)({height:"0px"})),(0,Tt.SB)("expanded",(0,Tt.oB)({height:"*"})),(0,Tt.eR)("expanded <=> collapsed",(0,Tt.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)")),(0,Tt.eR)("expanded <=> void",(0,Tt.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),n})();const ro={2:{shards:1,glimmer:500,core:0,prism:0,ascshard:0},3:{shards:1,glimmer:500,core:0,prism:0,ascshard:0},4:{shards:2,glimmer:500,core:0,prism:0,ascshard:0},5:{shards:2,glimmer:1e3,core:0,prism:0,ascshard:0},6:{shards:3,glimmer:1e3,core:1,prism:0,ascshard:0},7:{shards:3,glimmer:2500,core:2,prism:0,ascshard:0},8:{shards:4,glimmer:3e3,core:0,prism:1,ascshard:0},9:{shards:4,glimmer:3e3,core:0,prism:2,ascshard:0},10:{shards:5,glimmer:4e3,core:0,prism:0,ascshard:1}},lo={2:{shards:1,glimmer:500,core:0,prism:0,ascshard:0},3:{shards:2,glimmer:1e3,core:0,prism:0,ascshard:0},4:{shards:2,glimmer:1e3,core:0,prism:0,ascshard:0},5:{shards:3,glimmer:2500,core:0,prism:0,ascshard:0},6:{shards:3,glimmer:3e3,core:2,prism:0,ascshard:0},7:{shards:4,glimmer:3e3,core:3,prism:0,ascshard:0},8:{shards:4,glimmer:4e3,core:0,prism:2,ascshard:0},9:{shards:5,glimmer:4e3,core:0,prism:3,ascshard:0},10:{shards:6,glimmer:5e3,core:0,prism:0,ascshard:3}};var ue=g(7009),co=g(1572),te=g(4425),re=g(4080);const mo={[B.Inventory]:"Inventory",[B.Collections]:"Collections",[B.Vendor]:"Vendor"};let uo=(()=>{class n{constructor(e){this.database=e}transform(e){var o=this;return(0,T.Z)(function*(){return(yield o.database.vendorNames.where("vendorId").equals(e).first())?.vendorName??"Unknown Vendor"})()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(S,16))},n.\u0275pipe=t.Yjl({name:"getVendorName",type:n,pure:!0}),n})(),po=(()=>{class n{constructor(){}transform(e){if(!e||!e.startsWith("v"))return-1;const o=parseInt(e.substring(1).split("-")[0]);return isNaN(o)?-1:o}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"getVendorIdFromItemId",type:n,pure:!0}),n})();function go(n,i){if(1&n&&(t.TgZ(0,"tr")(1,"td"),t._uU(2,"Vendor"),t.qZA(),t.TgZ(3,"td",2),t._uU(4),t.ALo(5,"async"),t.ALo(6,"getVendorName"),t.ALo(7,"getVendorIdFromItemId"),t.qZA()()),2&n){const e=t.oxw();t.xp6(4),t.Oqu(t.lcZ(5,1,t.lcZ(6,3,t.lcZ(7,5,e.itemTooltip.itemInstanceId))))}}function _o(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e)}}function fo(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e+2)}}function ho(n,i){if(1&n&&(t.TgZ(0,"div",8),t._uU(1,"\xa0"),t.qZA()),2&n){const e=t.oxw(2);t.Udp("width",e.getWidth(2))}}function xo(n,i){if(1&n&&(t.TgZ(0,"tr")(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td"),t.YNc(4,_o,2,1,"span",3),t.YNc(5,fo,2,1,"span",3),t.qZA(),t.TgZ(6,"td")(7,"div",5)(8,"div",6),t._uU(9,"\xa0"),t.qZA(),t.YNc(10,ho,2,2,"div",7),t.qZA()()()),2&n){const e=i.$implicit,o=i.index,a=t.oxw();t.xp6(2),t.Oqu(a.getArmorStatName(o)),t.xp6(2),t.Q6J("ngIf",!(null!=a.itemTooltip&&a.itemTooltip.masterworked)),t.xp6(1),t.Q6J("ngIf",null==a.itemTooltip?null:a.itemTooltip.masterworked),t.xp6(3),t.Udp("width",a.getWidth(e)),t.xp6(2),t.Q6J("ngIf",null==a.itemTooltip?null:a.itemTooltip.masterworked)}}let yo=(()=>{class n{constructor(){}getSourceText(){return this.itemTooltip?mo[this.itemTooltip.source]:""}getArmorStatName(e){return c.Mi[e]}getWidth(e){return Math.min(100,e/32*100)+"%"}getTotalStats(){return this.itemTooltip?.stats.reduce((e,o)=>e+o,0)||0}get isVendorItem(){return this.itemTooltip?.source===B.Vendor}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-armor-tooltip-component"]],inputs:{itemTooltip:"itemTooltip"},decls:21,vars:5,consts:[[1,"tooltip-container"],["colspan","3"],["colspan","2"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"stat-display"],[1,"stat-display-bar"],["class","stat-display-bar masterwork",3,"width",4,"ngIf"],[1,"stat-display-bar","masterwork"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"div",0)(2,"table")(3,"tr")(4,"td",1),t._uU(5),t.qZA()(),t.TgZ(6,"tr")(7,"td"),t._uU(8,"Source"),t.qZA(),t.TgZ(9,"td",2),t._uU(10),t.qZA()(),t.YNc(11,go,8,7,"tr",3),t.TgZ(12,"tr")(13,"td"),t._uU(14,"Current stats:"),t.qZA()(),t.YNc(15,xo,11,6,"tr",4),t.TgZ(16,"tr")(17,"td"),t._uU(18,"Total base stats:"),t.qZA(),t.TgZ(19,"td"),t._uU(20),t.qZA()()()()()),2&e&&(t.xp6(5),t.Oqu(null==o.itemTooltip?null:o.itemTooltip.name),t.xp6(5),t.Oqu(o.getSourceText()),t.xp6(1),t.Q6J("ngIf",o.isVendorItem&&o.itemTooltip),t.xp6(4),t.Q6J("ngForOf",null==o.itemTooltip?null:o.itemTooltip.stats),t.xp6(5),t.hij(" ",o.getTotalStats()," "))},dependencies:[Z.sg,Z.O5,Z.Ov,po,uo],styles:[".tooltip-container[_ngcontent-%COMP%]{border:1px solid gray;padding:1px 5px 4px;background:linear-gradient(#484848 0px,#2c2c2c 100%)}.stat-display[_ngcontent-%COMP%]{width:70px;height:20px;background-color:#2c2c2c}.stat-display-bar[_ngcontent-%COMP%]{height:100%;background-color:#a1a1a1;float:left}.masterwork[_ngcontent-%COMP%]{background-color:#eedb9e}"]}),n})();var Jt=g(8184);let To=(()=>{class n{constructor(e,o,a){this._overlay=e,this._overlayPositionBuilder=o,this._elementRef=a,this.showToolTip=!0}ngOnInit(){if(!this.showToolTip)return;const e=this._overlayPositionBuilder.flexibleConnectedTo(this._elementRef).withPositions([{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top",offsetY:5},{originX:"center",originY:"top",overlayX:"center",overlayY:"bottom",offsetY:-5}]);this._overlayRef=this._overlay.create({positionStrategy:e}),this._overlayRef.addPanelClass("overlay-no-pointer-event")}show(){this._overlayRef&&!this._overlayRef.hasAttached()&&(this._overlayRef.attach(new re.C5(yo)).instance.itemTooltip=this.itemTooltip)}hide(){this.closeToolTip()}ngOnDestroy(){this.closeToolTip()}closeToolTip(){this._overlayRef&&this._overlayRef.detach()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Jt.aV),t.Y36(Jt.wJ),t.Y36(t.SBq))},n.\u0275dir=t.lG2({type:n,selectors:[["","itemTooltip",""]],hostBindings:function(e,o){1&e&&t.NdJ("mouseenter",function(){return o.show()})("mouseleave",function(){return o.hide()})},inputs:{showToolTip:"showToolTip",itemTooltip:"itemTooltip",contentTemplate:"contentTemplate"}}),n})(),pe=(()=>{class n{constructor(e){this.db=e,this.itemLookup=new Map}getItemCached(e){var o=this;return(0,T.Z)(function*(){if(o.itemLookup.has(e))return o.itemLookup.get(e)||void 0;const a=yield o.db.manifestArmor.where("hash").equals(e).first();return o.itemLookup.set(e,a),a})()}getExoticPerkDescription(e){var o=this;return(0,T.Z)(function*(){return e.exoticPerkHash?(yield o.getItemCached(e.exoticPerkHash))??null:null})()}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(S))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Co(n,i){if(1&n&&t._UZ(0,"img",6,7),2&n){const e=t.oxw(2);t.MGl("src","https://bungie.net/",e.item.icon,"",t.LSH),t.s9C("matTooltip",e.item.name)}}function bo(n,i){if(1&n&&t._UZ(0,"img",8),2&n){const e=t.oxw(2);t.MGl("src","https://bungie.net/",e.item.watermarkIcon,"",t.LSH)}}function vo(n,i){if(1&n&&t._UZ(0,"div",9),2&n){const e=t.oxw(2);t.ekj("vendor-item",e.isFromVendor)("collection-item",e.isFromCollection)}}function Ao(n,i){1&n&&t._UZ(0,"div",10)}function wo(n,i){if(1&n&&(t.TgZ(0,"div",1),t.YNc(1,Co,2,2,"img",2),t.YNc(2,bo,1,1,"img",3),t.YNc(3,vo,1,4,"div",4),t.YNc(4,Ao,1,0,"div",5),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.item.icon),t.xp6(1),t.Q6J("ngIf",e.item.watermarkIcon),t.xp6(1),t.Q6J("ngIf",e.isFromVendor||e.isFromCollection),t.xp6(1),t.Q6J("ngIf",e.masterworked)}}let ge=(()=>{class n{constructor(e){this.iconService=e,this.itemHash=0,this.masterworked=!1,this.source=B.Inventory,this.isFromVendor=!1,this.isFromCollection=!1,this.item=void 0}ngAfterViewInit(){var e=this;return(0,T.Z)(function*(){e.item=yield e.iconService.getItemCached(e.itemHash),e.isFromVendor=e.source===B.Vendor,e.isFromCollection=e.source===B.Collections})()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(pe))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-item-icon"]],inputs:{itemHash:"itemHash",masterworked:"masterworked",source:"source"},decls:1,vars:1,consts:[["class","item-icon-container",4,"ngIf"],[1,"item-icon-container"],["class","item-icon",3,"src","matTooltip",4,"ngIf"],["class","item-icon-overlay",3,"src",4,"ngIf"],["class","item-source-overlay",3,"vendor-item","collection-item",4,"ngIf"],["class","item-icon-masterwork-overlay",4,"ngIf"],[1,"item-icon",3,"src","matTooltip"],["tooltip","matTooltip"],[1,"item-icon-overlay",3,"src"],[1,"item-source-overlay"],[1,"item-icon-masterwork-overlay"]],template:function(e,o){1&e&&t.YNc(0,wo,5,4,"div",0),2&e&&t.Q6J("ngIf",o.item)},dependencies:[Z.O5,ut.gM],styles:["[_nghost-%COMP%]{height:22px;width:22px;display:block}.item-icon-masterwork-overlay[_ngcontent-%COMP%]{pointer-events:none;box-sizing:border-box;top:-1px;left:-1px;border-width:0;height:24px;width:24px;position:absolute;background-repeat:no-repeat;background-position:center;background-size:22px 22px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAJgklEQVR4AWI8t87oBYCd8rBuGAZi6N1JUQbIrJkiY6bM4EoE1EHvqb+WHsPvG5AJU522JQ/znpY03GzJ3YTovcvcVFcO5WbU8eH/OZ8R91B241c6wEzowJUUZnqlXMiZufrJSs1XUjNBUb6OcvUFF8190fzkGxS2J0ChGPQZDnYAQObJWHbNlCvZIXKxqvHN8KBp22SubByb9EKFGM2hzgyNa47vUzvKvnUToHPOINMFHG6Oo6hb6lhmMump4wROtxSMee8yjC6YI9jOnBYcGn5TZnTdBMB7d0+HB52AeKEb5QL2hQKx8RLk5IkE6eymz9CJFPJIQKxdWZKO5M1u+gw9kPvVJUjqyAt5Z98OMBAI4igO9x97koAAnSY6YHSaAB2nAiyswTbMq+/HAiHv0+4k3Ww1pOvnOvYews1Ow2rGnldEAAAIAAABACAAAAQAgAAAEAAAAgAgPwACAEAAAKiyAfJ7AXALEgAAAuAU5BMgAADki9j/BQCAlkN459OlNu6v0/V43vsAocOvq9kh1n/LX35h+B6EU9DI8fuVh/D48WMRWv742Qgtf/xshBY+fm1cMQgtefwdI5ffA/a9+frC68ox9M3enehIkvJAAC5D9vs/8F+Z/HugkfXJrOfec6QSJBi6O8IO2znX1zdZro39if/K0B8ftp2Hxxfa/vcu6DO8P5x/AaDrvwj4/uDPJDtjP09+ntDze9L+i4DRSEqwtgoQZ9rL3r9Ye/51L+Pw9tF6YuHFPJ/uWBDk2eXZvfb8YyMAwHvg673Z7AvmSF4POeSHmtDnb0xAD3qzN5gLfHsHIOvhktBJ4vOXJqABvJcZnqs5z54R7FF5ODaRiOkIGcXX+OZG7PqJnh6Ev3uOI52Z7tdRUCbdB6AFXHCDcZ3kkf2fGwEN+HGe+3xcE5yBB3umIvk5JnVIggDtnx/1u27XD5CajhBt8tqj9gMahDSan+7C629sxx6DiGmTcxOF304AwOud/SuABnTsZtNABWfaygUynjR3Ld+/GokZp4TO/JsJsEON1uN7OTEPaO9nVFHhHXizTdcN8Fl6BlER5gHk6lghYV8Tgd31DeCPL2icmhISYGsS9P7R9AErAT9JwlWCnuyFsmRuEQurKcBuqyBB72WkXtfmTCD7Au4a4/H7yYAl0N9VY0eERBqRr+Ov51yqCkTEYuuqjL4A+D4p1nvazLzOncHLt1dByhIwqpsHDzcShpIEkM4HZ5+zDEtoRLoKAgrwvwF41/WuAeg+z/1hDzk6VyGPkYW8aLfwarEwr0RJCDr/LUm4+42N8WX6z76Am3R9RoIkGGDvRN7i677TupIhqVZI7vmzPnr+1xLgwT6Bek6QtOE89rMmAGk6d8PhaG9ghSOgeLaAW1FFmYz9viLitcgBCFAgQ2dJ6dcEyLvcKxMuH2za3wW7AeOpqh/k6raz9l49XOIlQozX6pNwNCDnfde6Ckfb2SdeSejLUCXp+L3SPyAlj9FghVVHWV2etlVQ482MNfBHzwe4igSAj7T+4VnmtfdvwBJ5dxoXay/6hrc5gqrnyQCzX5H3fHYVhNd35eOrIWD4zDjZG2ntSmt8CpKTzCAnSEmp6Y7TDthyE9vbjhz7OOYAODg3THqfwEmMIJ29f1TaDwkX+8ckTCf8JAl6EjBviFo70m7v0vtTdD72EqzNgjwIgCJBr+aMRoTzbQMxzBlHIoY5JFCrA9xIZedIZLzZiwScpe1ij/vLyDu8b9p5IH2/V/4hfg+SGIUHr7oSAVhIwgbwIALpgYgLcvokvLU9gfsmgv+37117brJ90PrlHKAtWY24OWLO5/WORGWYAyJeQy8fjceHoOYz5gkTLeAPgL7YU57mHzRBQwA2Cff+5L3s1e9kn8Cuy1hAf9D/EN5YYySVKyQo4tyNSog6XucApWOZeA+Vz6UMNaXotLEiCZsgY4M9KVc/9lmBffwNHSonyQp1H/kpknDEiFeM/U2UybWRmcuEe5IcSPgAqOuQB2b3OiKBMrLumzy33dzy86HG84Z0KCtp/wL4kc7NfFdEDIucK9em8eskRl3q4bUAYc6YXalZJue6/LwkoClD9cYsP5G8d5pkT/U+Cfdd5gpI4jn2EL87eEQiID5tboPq9e+rBLvOA47D/doGj6+lKJpiQC+88WDP33h8JMADL36naIUYJYocsO+NGLOIAJJEjJnWhx7fyM0obAXLta7hmjxfp3dB5IF3AvRJwL3tzG3cjKJ8PkncBPgBocPyNXYEHAkI/md8CFA+eu8/jMiOVc1lpQRBEq38rKTNN/khkJHJXtjE8TW8T50fJO6RxvXaOSBer1j594Rjf5HfNyMSCCFoR43HBtKsirSFSCXILrh/G1p0vRdVSX4vdJvEkZYK+EVu4W0qtluCYtvGHq89MQImAApsLUHniBC0cbjXuclXcvR+o2Dq9ThXzhl3AtCcoabnHPBRdL1vCEwR30hQRAw985hwAZR1IyVcJ3o8p97HqSnE0xz1zpszAfgvSKm634e5tf9HVfaOGNcTJwLiUye2BJrnSk5OEiVZ3unv/7o/zvLT/sGshRy8i4hdyVtvk6mlaNoz4f6/dGvJkRqKgVXuDyuWLLkSZ+CiXIQVZ2CF0h0XbblkRU+hESIjq+yqZ2emJtKbZNK54vlfUBRAgl1A0BUuiyAvmdo/ff/x7QsZF5PsYY2uKw20EKA1NLpuzaNnBmddSCIZqrxIz2ydiEpprucWzrk8WzrZAGQQ5LyL4hJCqhCQ+zOVLFP5Cslzrc88KeGk0LWam1mSprc196WeH8mY/QZcngWxZ3/Y9fhsiiRjcpCzdKjhHSTHqDnCdatee/wFzF40+ph85GP9Ht7969BGjXlj0nBjbkoZJBPAbv+WB2sqWitvZXLrkrGprgluPsf5HvBr+/l1CpD4+8F/4NdnIreI64MMgFf0PUrhDRE3FjLuYLy4y9184Z1eY73w6rr7e2bNu4gvBE9fim7ftEOZkJ5I7TfkY1M+oHyiMF/R9YbcNzW3QfuLk/leIzXWLM/cgcp19FzCemU6cIz/MB9890UWjBGadM7N9QMtlCqqJiFwOjUhdaDQXQCdEwNOpzhYwMpBDrfcFpEXIsjiGJw+9jqidHo7O3+3QVO7+QpIf7ji9cbst7ogrVf8UXTDBslUgkxCCSilwjFdSAkBkSo1EcjSIBXWWvsN9SxF5ebWH3woEIS629sLNhsPabYekYTY/VR0znB/jBdcErKAavL8+A1ICXvgoqroDgAAAABJRU5ErkJggg==)}.item-icon-container[_ngcontent-%COMP%]{position:relative;transition:opacity .2s,transform .2s;width:100%;--icon-size: 22px}.item-icon-overlay[_ngcontent-%COMP%], .item-icon[_ngcontent-%COMP%]{position:absolute;left:0;top:0;width:100%;pointer-events:none}.item-source-overlay[_ngcontent-%COMP%]{position:absolute;left:0;top:0;width:0;pointer-events:none;border-top:calc(var(--icon-size) / 2) solid transparent;border-right:calc(var(--icon-size) / 2) solid transparent}.item-source-overlay.vendor-item[_ngcontent-%COMP%]{border-top-color:#00f}.item-source-overlay.collection-item[_ngcontent-%COMP%]{border-top-color:#90ee90}"]}),n})();function So(n,i){if(1&n&&t._UZ(0,"img",5),2&n){const e=t.oxw(2);t.s9C("src",e.url,t.LSH)}}function Io(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"img",2,3),t.YNc(3,So,1,1,"img",4),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.s9C("matTooltip",e.name),t.xp6(2),t.Q6J("ngIf",e.customIconMods.indexOf(e.perk)>-1)}}function Zo(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"img",6,3),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.s9C("matTooltip",e.name),t.s9C("src",e.url,t.LSH)}}let _e=(()=>{class n{constructor(){this.ArmorPerkOrSlot=c.Pn,this.customIconMods=[c.Pn.SlotCrotasEnd,c.Pn.SlotRootOfNightmares,c.Pn.SlotKingsFall,c.Pn.SlotVowOfTheDisciple,c.Pn.SlotArtifice],this.perk=c.Pn.None}get name(){return c.cM[this.perk]}get url(){return c.X9[this.perk]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-armor-perk-icon"]],inputs:{perk:"perk"},decls:3,vars:2,consts:[[1,"overlay-icon-container"],[4,"ngIf"],["src","https://www.bungie.net/common/destiny2_content/icons/b4d05ef69d0c3227a7d4f7f35bbc2848.png",1,"element-icon",3,"matTooltip"],["tooltip","matTooltip"],["class","overlay-icon",3,"src",4,"ngIf"],[1,"overlay-icon",3,"src"],[1,"element-icon",3,"matTooltip","src"]],template:function(e,o){1&e&&(t.TgZ(0,"span",0),t.YNc(1,Io,4,2,"ng-container",1),t.YNc(2,Zo,3,2,"ng-container",1),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",o.customIconMods.indexOf(o.perk)>-1),t.xp6(1),t.Q6J("ngIf",-1===o.customIconMods.indexOf(o.perk)))},dependencies:[Z.O5,ut.gM],styles:[".element-icon[_ngcontent-%COMP%]{height:100%;width:100%}.element-icon.disabled[_ngcontent-%COMP%]{opacity:.5;cursor:default;pointer-events:none}.overlay-icon-container[_ngcontent-%COMP%]{position:relative}.overlay-icon-container[_ngcontent-%COMP%] .overlay-icon[_ngcontent-%COMP%]{width:66%;position:absolute;left:17%;top:17%;pointer-events:none}[_nghost-%COMP%]{display:inline-flex;height:30px;width:30px}"]}),n})(),ve=(()=>{class n{transform(e,o=null){return e.filter(a=>null==o||a==o).length}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"count",type:n,pure:!0}),n})();function Oo(n,i){1&n&&(t.TgZ(0,"mat-toolbar",24),t._uU(1," Warning: The stats of one or more items used for this build may be invalid."),t._UZ(2,"br"),t._uU(3," Please remove all negative/positive stat modifiers from the marked items. "),t.qZA())}function Mo(n,i){if(1&n&&(t.TgZ(0,"u",34,35),t._uU(2),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(2),t.Oqu(e.name)}}function ko(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.name)}}function Eo(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"td",36)(2,"span",37),t._uU(3),t.qZA()(),t.TgZ(4,"td",36)(5,"span",37),t._uU(6),t.qZA()(),t.TgZ(7,"td",36)(8,"span",37),t._uU(9),t.qZA()(),t.TgZ(10,"td",36)(11,"span",37),t._uU(12),t.qZA()(),t.TgZ(13,"td",36)(14,"span",37),t._uU(15),t.qZA()(),t.TgZ(16,"td",36)(17,"span",37),t._uU(18),t.qZA()(),t.BQk()),2&n){const e=i.ngVar,o=t.oxw().$implicit,a=t.oxw(2);t.xp6(2),t.ekj("text-mw",o.masterworked),t.xp6(1),t.Oqu(o.stats[a.ArmorStat.Mobility]+e),t.xp6(2),t.ekj("text-mw",o.masterworked),t.xp6(1),t.Oqu(o.stats[a.ArmorStat.Resilience]+e),t.xp6(2),t.ekj("text-mw",o.masterworked),t.xp6(1),t.Oqu(o.stats[a.ArmorStat.Recovery]+e),t.xp6(2),t.ekj("text-mw",o.masterworked),t.xp6(1),t.Oqu(o.stats[a.ArmorStat.Discipline]+e),t.xp6(2),t.ekj("text-mw",o.masterworked),t.xp6(1),t.Oqu(o.stats[a.ArmorStat.Intellect]+e),t.xp6(2),t.ekj("text-mw",o.masterworked),t.xp6(1),t.Oqu(o.stats[a.ArmorStat.Strength]+e)}}function Uo(n,i){1&n&&(t.TgZ(0,"td",27),t._UZ(1,"mat-progress-spinner",38),t.qZA())}function Do(n,i){1&n&&(t.TgZ(0,"td")(1,"mat-icon",39,35),t._uU(3," check_circle_outline "),t.qZA()())}function Po(n,i){1&n&&(t.TgZ(0,"td")(1,"mat-icon",40,35),t._uU(3," error_outline "),t.qZA()())}function Ro(n,i){1&n&&(t.TgZ(0,"td")(1,"mat-icon",41,35),t._uU(3," report_problem "),t.qZA()())}function No(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"tr")(1,"td"),t.YNc(2,Mo,3,1,"u",26),t.YNc(3,ko,2,1,"span",3),t.qZA(),t.YNc(4,Eo,19,18,"ng-container",8),t.TgZ(5,"td",27)(6,"div",28),t._UZ(7,"app-item-icon",29),t.qZA()(),t.TgZ(8,"td",27)(9,"div",30),t._UZ(10,"app-armor-perk-icon",31),t.qZA()(),t.TgZ(11,"td",27)(12,"button",32),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw(2);return t.KtG(r.disableItem(s.itemInstanceId))}),t.TgZ(13,"mat-icon"),t._uU(14,"block"),t.qZA()()(),t.YNc(15,Uo,2,0,"td",33),t.YNc(16,Do,4,0,"td",3),t.YNc(17,Po,4,0,"td",3),t.YNc(18,Ro,4,0,"td",3),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw().$implicit,a=t.oxw();t.ekj("highlight-row",o[0].slot%2==0),t.xp6(2),t.Q6J("ngIf",e.masterworked),t.xp6(1),t.Q6J("ngIf",!e.masterworked),t.xp6(1),t.Q6J("ngVar",e.masterworked||!e.exotic&&a.config_assumeLegendariesMasterworked||e.exotic&&a.config_assumeExoticsMasterworked?2:0),t.xp6(2),t.Q6J("itemTooltip",e),t.xp6(1),t.Q6J("itemHash",e.hash)("masterworked",e.masterworked)("source",e.source),t.xp6(3),t.Q6J("perk",e.perk||0),t.xp6(5),t.Q6J("ngIf",1===e.transferState||2===e.transferState),t.xp6(1),t.Q6J("ngIf",3===e.transferState),t.xp6(1),t.Q6J("ngIf",4===e.transferState),t.xp6(1),t.Q6J("ngIf",e.mayBeBugged)}}function qo(n,i){if(1&n&&(t.ynx(0),t.YNc(1,No,19,14,"tr",25),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngForOf",e)}}function Jo(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"tr")(1,"td",42,35),t._uU(3,"Any Class Item"),t.qZA(),t.TgZ(4,"td",43),t._uU(5),t.qZA(),t.TgZ(6,"td",43),t._uU(7),t.qZA(),t.TgZ(8,"td",43),t._uU(9),t.qZA(),t.TgZ(10,"td",43),t._uU(11),t.qZA(),t.TgZ(12,"td",43),t._uU(13),t.qZA(),t.TgZ(14,"td",43),t._uU(15),t.qZA(),t._UZ(16,"td"),t.TgZ(17,"td")(18,"div",30),t._UZ(19,"app-armor-perk-icon",31),t.qZA()(),t.TgZ(20,"td")(21,"button",44),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.disableAllItems())}),t.TgZ(22,"mat-icon"),t._uU(23,"block"),t.qZA()()()()}if(2&n){const e=t.oxw();t.xp6(5),t.Oqu(2),t.xp6(2),t.Oqu(2),t.xp6(2),t.Oqu(2),t.xp6(2),t.Oqu(2),t.xp6(2),t.Oqu(2),t.xp6(2),t.Oqu(2),t.xp6(4),t.Q6J("perk",(null==e.element||null==e.element.classItem?null:e.element.classItem.perk)||0)}}function Fo(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"tr")(1,"td"),t._uU(2,"Any Class Item"),t.qZA(),t.TgZ(3,"td",45),t._uU(4,"You chose to use non-masterworked class items."),t.qZA(),t._UZ(5,"td")(6,"td"),t.TgZ(7,"td")(8,"button",44),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.disableAllItems())}),t.TgZ(9,"mat-icon"),t._uU(10,"block"),t.qZA()()()()}}function Lo(n,i){if(1&n&&(t.TgZ(0,"td"),t._uU(1),t._UZ(2,"img",47),t.qZA()),2&n){const e=t.oxw().ngVar,o=t.oxw();t.xp6(1),t.hij(" ",e[o.ArmorStat.Mobility]," ")}}function Yo(n,i){if(1&n&&(t.TgZ(0,"td"),t._uU(1),t._UZ(2,"img",48),t.qZA()),2&n){const e=t.oxw().ngVar,o=t.oxw();t.xp6(1),t.hij(" ",e[o.ArmorStat.Resilience]," ")}}function Bo(n,i){if(1&n&&(t.TgZ(0,"td"),t._uU(1),t._UZ(2,"img",49),t.qZA()),2&n){const e=t.oxw().ngVar,o=t.oxw();t.xp6(1),t.hij(" ",e[o.ArmorStat.Recovery]," ")}}function Qo(n,i){if(1&n&&(t.TgZ(0,"td"),t._uU(1),t._UZ(2,"img",50),t.qZA()),2&n){const e=t.oxw().ngVar,o=t.oxw();t.xp6(1),t.hij(" ",e[o.ArmorStat.Discipline]," ")}}function Vo(n,i){if(1&n&&(t.TgZ(0,"td"),t._uU(1),t._UZ(2,"img",51),t.qZA()),2&n){const e=t.oxw().ngVar,o=t.oxw();t.xp6(1),t.hij(" ",e[o.ArmorStat.Intellect]," ")}}function Ho(n,i){if(1&n&&(t.TgZ(0,"td"),t._uU(1),t._UZ(2,"img",52),t.qZA()),2&n){const e=t.oxw().ngVar,o=t.oxw();t.xp6(1),t.hij(" ",e[o.ArmorStat.Strength]," ")}}function Wo(n,i){if(1&n&&(t.TgZ(0,"tr",46)(1,"td"),t._uU(2,"Total (armor)"),t.qZA(),t.YNc(3,Lo,3,1,"td",3),t.YNc(4,Yo,3,1,"td",3),t.YNc(5,Bo,3,1,"td",3),t.YNc(6,Qo,3,1,"td",3),t.YNc(7,Vo,3,1,"td",3),t.YNc(8,Ho,3,1,"td",3),t.qZA()),2&n){const e=i.ngVar;t.xp6(3),t.Q6J("ngIf",!!e),t.xp6(1),t.Q6J("ngIf",!!e),t.xp6(1),t.Q6J("ngIf",!!e),t.xp6(1),t.Q6J("ngIf",!!e),t.xp6(1),t.Q6J("ngIf",!!e),t.xp6(1),t.Q6J("ngIf",!!e)}}function jo(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"+"),t.qZA())}function Go(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,jo,2,0,"span",3),t._uU(2),t.qZA()),2&n){const e=t.oxw();t.Tol(e.configValues[e.ArmorStat.Mobility]>0?"positive":"negative"),t.xp6(1),t.Q6J("ngIf",e.configValues[e.ArmorStat.Mobility]>0),t.xp6(1),t.hij("",e.configValues[e.ArmorStat.Mobility]," ")}}function zo(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"+"),t.qZA())}function Ko(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,zo,2,0,"span",3),t._uU(2),t.qZA()),2&n){const e=t.oxw();t.Tol(e.configValues[e.ArmorStat.Resilience]>0?"positive":"negative"),t.xp6(1),t.Q6J("ngIf",e.configValues[e.ArmorStat.Resilience]>0),t.xp6(1),t.hij("",e.configValues[e.ArmorStat.Resilience]," ")}}function $o(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"+"),t.qZA())}function Xo(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,$o,2,0,"span",3),t._uU(2),t.qZA()),2&n){const e=t.oxw();t.Tol(e.configValues[e.ArmorStat.Recovery]>0?"positive":"negative"),t.xp6(1),t.Q6J("ngIf",e.configValues[e.ArmorStat.Recovery]>0),t.xp6(1),t.hij("",e.configValues[e.ArmorStat.Recovery]," ")}}function ti(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"+"),t.qZA())}function ei(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,ti,2,0,"span",3),t._uU(2),t.qZA()),2&n){const e=t.oxw();t.Tol(e.configValues[e.ArmorStat.Discipline]>0?"positive":"negative"),t.xp6(1),t.Q6J("ngIf",e.configValues[e.ArmorStat.Discipline]>0),t.xp6(1),t.hij("",e.configValues[e.ArmorStat.Discipline]," ")}}function ni(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"+"),t.qZA())}function oi(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,ni,2,0,"span",3),t._uU(2),t.qZA()),2&n){const e=t.oxw();t.Tol(e.configValues[e.ArmorStat.Intellect]>0?"positive":"negative"),t.xp6(1),t.Q6J("ngIf",e.configValues[e.ArmorStat.Intellect]>0),t.xp6(1),t.hij("",e.configValues[e.ArmorStat.Intellect]," ")}}function ii(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"+"),t.qZA())}function ai(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,ii,2,0,"span",3),t._uU(2),t.qZA()),2&n){const e=t.oxw();t.Tol(e.configValues[e.ArmorStat.Strength]>0?"positive":"negative"),t.xp6(1),t.Q6J("ngIf",e.configValues[e.ArmorStat.Strength]>0),t.xp6(1),t.hij("",e.configValues[e.ArmorStat.Strength]," ")}}function si(n,i){if(1&n&&(t.TgZ(0,"span",55),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("",e,"\xd75")}}function ri(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,si,2,1,"span",54),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function li(n,i){if(1&n&&(t.TgZ(0,"span",55),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("",e,"\xd75")}}function ci(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,li,2,1,"span",54),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function mi(n,i){if(1&n&&(t.TgZ(0,"span",55),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("",e,"\xd75")}}function di(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,mi,2,1,"span",54),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function ui(n,i){if(1&n&&(t.TgZ(0,"span",55),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("",e,"\xd75")}}function pi(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,ui,2,1,"span",54),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function gi(n,i){if(1&n&&(t.TgZ(0,"span",55),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("",e,"\xd75")}}function _i(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,gi,2,1,"span",54),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function fi(n,i){if(1&n&&(t.TgZ(0,"span",55),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("",e,"\xd75")}}function hi(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,fi,2,1,"span",54),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function xi(n,i){if(1&n&&(t.TgZ(0,"tr",53)(1,"td"),t._uU(2,"Minor Mods"),t.qZA(),t.YNc(3,ri,2,1,"td",8),t.ALo(4,"count"),t.YNc(5,ci,2,1,"td",8),t.ALo(6,"count"),t.YNc(7,di,2,1,"td",8),t.ALo(8,"count"),t.YNc(9,pi,2,1,"td",8),t.ALo(10,"count"),t.YNc(11,_i,2,1,"td",8),t.ALo(12,"count"),t.YNc(13,hi,2,1,"td",8),t.ALo(14,"count"),t.qZA()),2&n){const e=i.ngVar,o=t.oxw();t.xp6(3),t.Q6J("ngVar",t.xi3(4,6,e,o.StatModifier.MINOR_MOBILITY)),t.xp6(2),t.Q6J("ngVar",t.xi3(6,9,e,o.StatModifier.MINOR_RESILIENCE)),t.xp6(2),t.Q6J("ngVar",t.xi3(8,12,e,o.StatModifier.MINOR_RECOVERY)),t.xp6(2),t.Q6J("ngVar",t.xi3(10,15,e,o.StatModifier.MINOR_DISCIPLINE)),t.xp6(2),t.Q6J("ngVar",t.xi3(12,18,e,o.StatModifier.MINOR_INTELLECT)),t.xp6(2),t.Q6J("ngVar",t.xi3(14,21,e,o.StatModifier.MINOR_STRENGTH))}}function yi(n,i){if(1&n&&(t.TgZ(0,"span",55),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("",e,"\xd710")}}function Ti(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,yi,2,1,"span",54),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function Ci(n,i){if(1&n&&(t.TgZ(0,"span",55),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("",e,"\xd710")}}function bi(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,Ci,2,1,"span",54),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function vi(n,i){if(1&n&&(t.TgZ(0,"span",55),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("",e,"\xd710")}}function Ai(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,vi,2,1,"span",54),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function wi(n,i){if(1&n&&(t.TgZ(0,"span",55),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("",e,"\xd710")}}function Si(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,wi,2,1,"span",54),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function Ii(n,i){if(1&n&&(t.TgZ(0,"span",55),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("",e,"\xd710")}}function Zi(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,Ii,2,1,"span",54),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function Oi(n,i){if(1&n&&(t.TgZ(0,"span",55),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("",e,"\xd710")}}function Mi(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,Oi,2,1,"span",54),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function ki(n,i){if(1&n&&(t.TgZ(0,"tr")(1,"td"),t._uU(2,"Major Mods"),t.qZA(),t.YNc(3,Ti,2,1,"td",8),t.ALo(4,"count"),t.YNc(5,bi,2,1,"td",8),t.ALo(6,"count"),t.YNc(7,Ai,2,1,"td",8),t.ALo(8,"count"),t.YNc(9,Si,2,1,"td",8),t.ALo(10,"count"),t.YNc(11,Zi,2,1,"td",8),t.ALo(12,"count"),t.YNc(13,Mi,2,1,"td",8),t.ALo(14,"count"),t.qZA()),2&n){const e=i.ngVar,o=t.oxw();t.xp6(3),t.Q6J("ngVar",t.xi3(4,6,e,o.StatModifier.MAJOR_MOBILITY)),t.xp6(2),t.Q6J("ngVar",t.xi3(6,9,e,o.StatModifier.MAJOR_RESILIENCE)),t.xp6(2),t.Q6J("ngVar",t.xi3(8,12,e,o.StatModifier.MAJOR_RECOVERY)),t.xp6(2),t.Q6J("ngVar",t.xi3(10,15,e,o.StatModifier.MAJOR_DISCIPLINE)),t.xp6(2),t.Q6J("ngVar",t.xi3(12,18,e,o.StatModifier.MAJOR_INTELLECT)),t.xp6(2),t.Q6J("ngVar",t.xi3(14,21,e,o.StatModifier.MAJOR_STRENGTH))}}function Ei(n,i){if(1&n&&(t.TgZ(0,"span",55),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("",e,"\xd73")}}function Ui(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,Ei,2,1,"span",54),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function Di(n,i){if(1&n&&(t.TgZ(0,"span",55),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("",e,"\xd73")}}function Pi(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,Di,2,1,"span",54),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function Ri(n,i){if(1&n&&(t.TgZ(0,"span",55),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("",e,"\xd73")}}function Ni(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,Ri,2,1,"span",54),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function qi(n,i){if(1&n&&(t.TgZ(0,"span",55),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("",e,"\xd73")}}function Ji(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,qi,2,1,"span",54),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function Fi(n,i){if(1&n&&(t.TgZ(0,"span",55),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("",e,"\xd73")}}function Li(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,Fi,2,1,"span",54),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function Yi(n,i){if(1&n&&(t.TgZ(0,"span",55),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("",e,"\xd73")}}function Bi(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,Yi,2,1,"span",54),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function Qi(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"tr")(2,"td"),t._uU(3,"Artifice Mods"),t.qZA(),t.YNc(4,Ui,2,1,"td",8),t.ALo(5,"count"),t.YNc(6,Pi,2,1,"td",8),t.ALo(7,"count"),t.YNc(8,Ni,2,1,"td",8),t.ALo(9,"count"),t.YNc(10,Ji,2,1,"td",8),t.ALo(11,"count"),t.YNc(12,Li,2,1,"td",8),t.ALo(13,"count"),t.YNc(14,Bi,2,1,"td",8),t.ALo(15,"count"),t.qZA(),t.BQk()),2&n){const e=i.ngVar,o=t.oxw();t.xp6(4),t.Q6J("ngVar",t.xi3(5,6,e,o.StatModifier.ARTIFICE_MOBILITY)),t.xp6(2),t.Q6J("ngVar",t.xi3(7,9,e,o.StatModifier.ARTIFICE_RESILIENCE)),t.xp6(2),t.Q6J("ngVar",t.xi3(9,12,e,o.StatModifier.ARTIFICE_RECOVERY)),t.xp6(2),t.Q6J("ngVar",t.xi3(11,15,e,o.StatModifier.ARTIFICE_DISCIPLINE)),t.xp6(2),t.Q6J("ngVar",t.xi3(13,18,e,o.StatModifier.ARTIFICE_INTELLECT)),t.xp6(2),t.Q6J("ngVar",t.xi3(15,21,e,o.StatModifier.ARTIFICE_STRENGTH))}}function Vi(n,i){if(1&n&&(t.TgZ(0,"tr",56)(1,"td"),t._uU(2,"Total"),t.qZA(),t.TgZ(3,"td"),t._uU(4),t._UZ(5,"img",47),t.qZA(),t.TgZ(6,"td"),t._uU(7),t._UZ(8,"img",48),t.qZA(),t.TgZ(9,"td"),t._uU(10),t._UZ(11,"img",49),t.qZA(),t.TgZ(12,"td"),t._uU(13),t._UZ(14,"img",50),t.qZA(),t.TgZ(15,"td"),t._uU(16),t._UZ(17,"img",51),t.qZA(),t.TgZ(18,"td"),t._uU(19),t._UZ(20,"img",52),t.qZA()()),2&n){const e=i.ngVar,o=t.oxw();t.xp6(4),t.hij(" ",e[o.ArmorStat.Mobility]," "),t.xp6(3),t.hij(" ",e[o.ArmorStat.Resilience]," "),t.xp6(3),t.hij(" ",e[o.ArmorStat.Recovery]," "),t.xp6(3),t.hij(" ",e[o.ArmorStat.Discipline]," "),t.xp6(3),t.hij(" ",e[o.ArmorStat.Intellect]," "),t.xp6(3),t.hij(" ",e[o.ArmorStat.Strength]," ")}}function Hi(n,i){if(1&n&&(t.TgZ(0,"span",63),t._UZ(1,"img",64),t._uU(2),t.ALo(3,"number"),t.qZA()),2&n){const e=t.oxw(2).ngVar;t.xp6(2),t.hij(" ",t.lcZ(3,1,e.glimmer)," ")}}function Wi(n,i){if(1&n&&(t.TgZ(0,"span",65),t._UZ(1,"img",66),t._uU(2),t.qZA()),2&n){const e=t.oxw(2).ngVar;t.xp6(2),t.hij(" ",e.core," ")}}function ji(n,i){if(1&n&&(t.TgZ(0,"span",67),t._UZ(1,"img",68),t._uU(2),t.qZA()),2&n){const e=t.oxw(2).ngVar;t.xp6(2),t.hij(" ",e.prism," ")}}function Gi(n,i){if(1&n&&(t.TgZ(0,"span",69),t._UZ(1,"img",70),t._uU(2),t.qZA()),2&n){const e=t.oxw(2).ngVar;t.xp6(2),t.hij(" ",e.ascshard," ")}}function zi(n,i){if(1&n&&(t.TgZ(0,"div",58),t._uU(1," Total material cost: "),t.YNc(2,Hi,4,3,"span",59),t.YNc(3,Wi,3,1,"span",60),t.YNc(4,ji,3,1,"span",61),t.YNc(5,Gi,3,1,"span",62),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(2),t.Q6J("ngIf",e.glimmer>0),t.xp6(1),t.Q6J("ngIf",e.core>0),t.xp6(1),t.Q6J("ngIf",e.prism>0),t.xp6(1),t.Q6J("ngIf",e.ascshard>0)}}function Ki(n,i){if(1&n&&(t.ynx(0),t.YNc(1,zi,6,4,"div",57),t.BQk()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e.total>0)}}function $i(n,i){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"button",71),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.openSnackBar("Copied the DIM search query to your clipboard."))}),t._uU(2," Copy DIM query to clipboard "),t.qZA(),t.BQk()}if(2&n){const e=i.ngVar;t.xp6(1),t.Q6J("cdkCopyToClipboard",e)}}function Xi(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1," and use a masterworked class item"),t.qZA())}function ta(n,i){if(1&n&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",e.name," ")}}function ea(n,i){if(1&n&&(t.TgZ(0,"li"),t._uU(1," Masterwork these items: "),t.TgZ(2,"ul"),t.YNc(3,ta,2,1,"li",2),t.qZA()()),2&n){const e=t.oxw().ngVar;t.xp6(3),t.Q6J("ngForOf",e)}}function na(n,i){if(1&n&&(t.ynx(0),t.YNc(1,ea,4,1,"li",3),t.BQk()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e.length>0)}}function oa(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3).ngVar;t.xp6(1),t.hij("",e," minor")}}function ia(n,i){1&n&&(t.ynx(0),t._uU(1," and"),t.BQk())}function aa(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2).ngVar;t.xp6(1),t.hij(" ",e," major ")}}function sa(n,i){1&n&&(t.ynx(0),t._uU(1,"s"),t.BQk())}function ra(n,i){if(1&n&&(t.TgZ(0,"li",55),t.YNc(1,oa,2,1,"span",3),t.YNc(2,ia,2,0,"ng-container",3),t.YNc(3,aa,2,1,"span",3),t._uU(4," Mobility Mod"),t.YNc(5,sa,2,0,"ng-container",3),t.qZA()),2&n){const e=t.oxw().ngVar,o=t.oxw().ngVar;t.xp6(1),t.Q6J("ngIf",o>0),t.xp6(1),t.Q6J("ngIf",o>0&&e>0),t.xp6(1),t.Q6J("ngIf",e>0),t.xp6(2),t.Q6J("ngIf",o+e>1)}}function la(n,i){if(1&n&&(t.ynx(0),t.YNc(1,ra,6,4,"li",54),t.BQk()),2&n){const e=i.ngVar,o=t.oxw().ngVar;t.xp6(1),t.Q6J("ngIf",o+e>0)}}function ca(n,i){if(1&n&&(t.ynx(0),t.YNc(1,la,2,1,"ng-container",8),t.ALo(2,"count"),t.BQk()),2&n){const e=t.oxw().ngVar,o=t.oxw(2);t.xp6(1),t.Q6J("ngVar",t.xi3(2,1,e,o.StatModifier.MAJOR_MOBILITY))}}function ma(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3).ngVar;t.xp6(1),t.hij("",e," minor")}}function da(n,i){1&n&&(t.ynx(0),t._uU(1," and"),t.BQk())}function ua(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2).ngVar;t.xp6(1),t.hij(" ",e," major ")}}function pa(n,i){1&n&&(t.ynx(0),t._uU(1,"s"),t.BQk())}function ga(n,i){if(1&n&&(t.TgZ(0,"li",55),t.YNc(1,ma,2,1,"span",3),t.YNc(2,da,2,0,"ng-container",3),t.YNc(3,ua,2,1,"span",3),t._uU(4," Resilience Mod"),t.YNc(5,pa,2,0,"ng-container",3),t.qZA()),2&n){const e=t.oxw().ngVar,o=t.oxw().ngVar;t.xp6(1),t.Q6J("ngIf",o>0),t.xp6(1),t.Q6J("ngIf",o>0&&e>0),t.xp6(1),t.Q6J("ngIf",e>0),t.xp6(2),t.Q6J("ngIf",o+e>1)}}function _a(n,i){if(1&n&&(t.ynx(0),t.YNc(1,ga,6,4,"li",54),t.BQk()),2&n){const e=i.ngVar,o=t.oxw().ngVar;t.xp6(1),t.Q6J("ngIf",o+e>0)}}function fa(n,i){if(1&n&&(t.ynx(0),t.YNc(1,_a,2,1,"ng-container",8),t.ALo(2,"count"),t.BQk()),2&n){const e=t.oxw().ngVar,o=t.oxw(2);t.xp6(1),t.Q6J("ngVar",t.xi3(2,1,e,o.StatModifier.MAJOR_RESILIENCE))}}function ha(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3).ngVar;t.xp6(1),t.hij("",e," minor")}}function xa(n,i){1&n&&(t.ynx(0),t._uU(1," and"),t.BQk())}function ya(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2).ngVar;t.xp6(1),t.hij(" ",e," major ")}}function Ta(n,i){1&n&&(t.ynx(0),t._uU(1,"s"),t.BQk())}function Ca(n,i){if(1&n&&(t.TgZ(0,"li",55),t.YNc(1,ha,2,1,"span",3),t.YNc(2,xa,2,0,"ng-container",3),t.YNc(3,ya,2,1,"span",3),t._uU(4," Recovery Mod"),t.YNc(5,Ta,2,0,"ng-container",3),t.qZA()),2&n){const e=t.oxw().ngVar,o=t.oxw().ngVar;t.xp6(1),t.Q6J("ngIf",o>0),t.xp6(1),t.Q6J("ngIf",o>0&&e>0),t.xp6(1),t.Q6J("ngIf",e>0),t.xp6(2),t.Q6J("ngIf",o+e>1)}}function ba(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Ca,6,4,"li",54),t.BQk()),2&n){const e=i.ngVar,o=t.oxw().ngVar;t.xp6(1),t.Q6J("ngIf",o+e>0)}}function va(n,i){if(1&n&&(t.ynx(0),t.YNc(1,ba,2,1,"ng-container",8),t.ALo(2,"count"),t.BQk()),2&n){const e=t.oxw().ngVar,o=t.oxw(2);t.xp6(1),t.Q6J("ngVar",t.xi3(2,1,e,o.StatModifier.MAJOR_RECOVERY))}}function Aa(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3).ngVar;t.xp6(1),t.hij("",e," minor")}}function wa(n,i){1&n&&(t.ynx(0),t._uU(1," and"),t.BQk())}function Sa(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2).ngVar;t.xp6(1),t.hij(" ",e," major ")}}function Ia(n,i){1&n&&(t.ynx(0),t._uU(1,"s"),t.BQk())}function Za(n,i){if(1&n&&(t.TgZ(0,"li",55),t.YNc(1,Aa,2,1,"span",3),t.YNc(2,wa,2,0,"ng-container",3),t.YNc(3,Sa,2,1,"span",3),t._uU(4," Discipline Mod"),t.YNc(5,Ia,2,0,"ng-container",3),t.qZA()),2&n){const e=t.oxw().ngVar,o=t.oxw().ngVar;t.xp6(1),t.Q6J("ngIf",o>0),t.xp6(1),t.Q6J("ngIf",o>0&&e>0),t.xp6(1),t.Q6J("ngIf",e>0),t.xp6(2),t.Q6J("ngIf",o+e>1)}}function Oa(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Za,6,4,"li",54),t.BQk()),2&n){const e=i.ngVar,o=t.oxw().ngVar;t.xp6(1),t.Q6J("ngIf",o+e>0)}}function Ma(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Oa,2,1,"ng-container",8),t.ALo(2,"count"),t.BQk()),2&n){const e=t.oxw().ngVar,o=t.oxw(2);t.xp6(1),t.Q6J("ngVar",t.xi3(2,1,e,o.StatModifier.MAJOR_DISCIPLINE))}}function ka(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3).ngVar;t.xp6(1),t.hij("",e," minor")}}function Ea(n,i){1&n&&(t.ynx(0),t._uU(1," and"),t.BQk())}function Ua(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2).ngVar;t.xp6(1),t.hij(" ",e," major ")}}function Da(n,i){1&n&&(t.ynx(0),t._uU(1,"s"),t.BQk())}function Pa(n,i){if(1&n&&(t.TgZ(0,"li",55),t.YNc(1,ka,2,1,"span",3),t.YNc(2,Ea,2,0,"ng-container",3),t.YNc(3,Ua,2,1,"span",3),t._uU(4," Intellect Mod"),t.YNc(5,Da,2,0,"ng-container",3),t.qZA()),2&n){const e=t.oxw().ngVar,o=t.oxw().ngVar;t.xp6(1),t.Q6J("ngIf",o>0),t.xp6(1),t.Q6J("ngIf",o>0&&e>0),t.xp6(1),t.Q6J("ngIf",e>0),t.xp6(2),t.Q6J("ngIf",o+e>1)}}function Ra(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Pa,6,4,"li",54),t.BQk()),2&n){const e=i.ngVar,o=t.oxw().ngVar;t.xp6(1),t.Q6J("ngIf",o+e>0)}}function Na(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Ra,2,1,"ng-container",8),t.ALo(2,"count"),t.BQk()),2&n){const e=t.oxw().ngVar,o=t.oxw(2);t.xp6(1),t.Q6J("ngVar",t.xi3(2,1,e,o.StatModifier.MAJOR_INTELLECT))}}function qa(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3).ngVar;t.xp6(1),t.hij("",e," minor")}}function Ja(n,i){1&n&&(t.ynx(0),t._uU(1," and"),t.BQk())}function Fa(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2).ngVar;t.xp6(1),t.hij(" ",e," major ")}}function La(n,i){1&n&&(t.ynx(0),t._uU(1,"s"),t.BQk())}function Ya(n,i){if(1&n&&(t.TgZ(0,"li",55),t.YNc(1,qa,2,1,"span",3),t.YNc(2,Ja,2,0,"ng-container",3),t.YNc(3,Fa,2,1,"span",3),t._uU(4," Strength Mod"),t.YNc(5,La,2,0,"ng-container",3),t.qZA()),2&n){const e=t.oxw().ngVar,o=t.oxw().ngVar;t.xp6(1),t.Q6J("ngIf",o>0),t.xp6(1),t.Q6J("ngIf",o>0&&e>0),t.xp6(1),t.Q6J("ngIf",e>0),t.xp6(2),t.Q6J("ngIf",o+e>1)}}function Ba(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Ya,6,4,"li",54),t.BQk()),2&n){const e=i.ngVar,o=t.oxw().ngVar;t.xp6(1),t.Q6J("ngIf",o+e>0)}}function Qa(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Ba,2,1,"ng-container",8),t.ALo(2,"count"),t.BQk()),2&n){const e=t.oxw().ngVar,o=t.oxw(2);t.xp6(1),t.Q6J("ngVar",t.xi3(2,1,e,o.StatModifier.MAJOR_STRENGTH))}}function Va(n,i){if(1&n&&(t.TgZ(0,"ul"),t.YNc(1,ca,3,4,"ng-container",8),t.ALo(2,"count"),t.YNc(3,fa,3,4,"ng-container",8),t.ALo(4,"count"),t.YNc(5,va,3,4,"ng-container",8),t.ALo(6,"count"),t.YNc(7,Ma,3,4,"ng-container",8),t.ALo(8,"count"),t.YNc(9,Na,3,4,"ng-container",8),t.ALo(10,"count"),t.YNc(11,Qa,3,4,"ng-container",8),t.ALo(12,"count"),t.qZA()),2&n){const e=i.ngVar,o=t.oxw(2);t.xp6(1),t.Q6J("ngVar",t.xi3(2,6,e,o.StatModifier.MINOR_MOBILITY)),t.xp6(2),t.Q6J("ngVar",t.xi3(4,9,e,o.StatModifier.MINOR_RESILIENCE)),t.xp6(2),t.Q6J("ngVar",t.xi3(6,12,e,o.StatModifier.MINOR_RECOVERY)),t.xp6(2),t.Q6J("ngVar",t.xi3(8,15,e,o.StatModifier.MINOR_DISCIPLINE)),t.xp6(2),t.Q6J("ngVar",t.xi3(10,18,e,o.StatModifier.MINOR_INTELLECT)),t.xp6(2),t.Q6J("ngVar",t.xi3(12,21,e,o.StatModifier.MINOR_STRENGTH))}}function Ha(n,i){if(1&n&&(t.TgZ(0,"li"),t._uU(1,"Equip the following stat mods: "),t.YNc(2,Va,13,24,"ul",8),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngVar",null==e.element?null:e.element.mods)}}function Wa(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1," Arc "),t.qZA())}function ja(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1," Solar "),t.qZA())}function Ga(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1," Void "),t.qZA())}function za(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1," Stasis "),t.qZA())}function Ka(n,i){if(1&n&&t._UZ(0,"img",73,35),2&n){const e=t.oxw(3).ngVar,o=t.oxw(3);t.MGl("matTooltip","",o.getAffinityName(e.requiredArmorAffinity)," affinity"),t.Q6J("src",o.getAffinityUrl(e.requiredArmorAffinity),t.LSH)}}function $a(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.YNc(2,Wa,2,0,"span",3),t.YNc(3,ja,2,0,"span",3),t.YNc(4,Ga,2,0,"span",3),t.YNc(5,za,2,0,"span",3),t.YNc(6,Ka,2,2,"img",72),t._uU(7," ) "),t.qZA()),2&n){const e=t.oxw(2).ngVar;t.xp6(1),t.hij(" ( ",e.cost," "),t.xp6(1),t.Q6J("ngIf",1===e.requiredArmorAffinity),t.xp6(1),t.Q6J("ngIf",2===e.requiredArmorAffinity),t.xp6(1),t.Q6J("ngIf",3===e.requiredArmorAffinity),t.xp6(1),t.Q6J("ngIf",6===e.requiredArmorAffinity),t.xp6(1),t.Q6J("ngIf",0!==e.requiredArmorAffinity)}}function Xa(n,i){if(1&n&&(t.TgZ(0,"li"),t._uU(1),t.YNc(2,$a,8,6,"span",3),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij(" Equip the mod ",e.name," "),t.xp6(1),t.Q6J("ngIf",0!==e.requiredArmorAffinity)}}function ts(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Xa,3,2,"li",3),t.BQk()),2&n){const e=i.ngVar,o=t.oxw(3);t.xp6(1),t.Q6J("ngIf",e.type===o.ModifierType.CombatStyleMod)}}function es(n,i){if(1&n&&(t.ynx(0),t.YNc(1,ts,2,1,"ng-container",8),t.BQk()),2&n){const e=i.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngVar",o.ModInformation[e])}}function ns(n,i){if(1&n&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij(" Equip the stasis fragment ",e.name," ")}}function os(n,i){if(1&n&&(t.ynx(0),t.YNc(1,ns,2,1,"li",3),t.BQk()),2&n){const e=i.ngVar,o=t.oxw(3);t.xp6(1),t.Q6J("ngIf",e.type===o.ModifierType.Stasis)}}function is(n,i){if(1&n&&(t.ynx(0),t.YNc(1,os,2,1,"ng-container",8),t.BQk()),2&n){const e=i.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngVar",o.ModInformation[e])}}function as(n,i){if(1&n&&(t.TgZ(0,"li"),t._uU(1," Equip any mods and fragments that you enabled in the configuration: "),t.TgZ(2,"ul"),t.YNc(3,es,2,1,"ng-container",2),t.YNc(4,is,2,1,"ng-container",2),t.qZA()()),2&n){const e=t.oxw();t.xp6(3),t.Q6J("ngForOf",e.config_enabledMods),t.xp6(1),t.Q6J("ngForOf",e.config_enabledMods)}}function ss(n,i){if(1&n&&t._UZ(0,"div",77),2&n){const e=t.oxw().$implicit;t.Tol(e)}}function rs(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,ss,1,2,"div",76),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngIf",!!e)}}function ls(n,i){if(1&n&&(t.TgZ(0,"tr")(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td"),t._UZ(4,"img",74),t.qZA(),t.YNc(5,rs,2,1,"td",2),t.TgZ(6,"td",75),t._uU(7),t.qZA()()),2&n){const e=i.$implicit,o=t.oxw();t.xp6(2),t.Oqu(o.ArmorStatNames[e]),t.xp6(2),t.s9C("alt",o.ArmorStatNames[e]),t.s9C("src",o.ArmorStatIconUrls[e],t.LSH),t.xp6(1),t.Q6J("ngForOf",o.getColumnForStat(e)),t.xp6(2),t.Oqu(o.getTiersForStat(e))}}function cs(n,i){if(1&n&&(t.TgZ(0,"tr")(1,"td"),t._uU(2,"Exotic:"),t.qZA(),t.TgZ(3,"td",78),t._uU(4),t.qZA(),t.TgZ(5,"td",79)(6,"div",80),t._UZ(7,"img",81)(8,"img",82),t.qZA()()()),2&n){const e=t.oxw().ngVar;t.xp6(4),t.Oqu(e[0].name),t.xp6(3),t.MGl("src","https://bungie.net/",e[0].icon,"",t.LSH),t.xp6(1),t.MGl("src","https://bungie.net/",e[0].watermark,"",t.LSH)}}function ms(n,i){if(1&n&&(t.ynx(0),t.YNc(1,cs,9,3,"tr",3),t.BQk()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e[0])}}let ds=(()=>{class n{constructor(e,o,a,s){this.config=e,this._snackBar=o,this.bungieApi=a,this.membership=s,this.showGenericClassItemRow=!1,this.armorStatIds=[0,1,2,3,4,5],this.ModifierType=w.O,this.ModInformation=N.F,this.ArmorStatNames=c.Mi,this.ArmorStatIconUrls=c.lp,this.ArmorStat=c.WB,this.StatModifier=c.iV,this.config_characterClass=0,this.config_assumeLegendariesMasterworked=!1,this.config_assumeExoticsMasterworked=!1,this.config_assumeClassItemMasterworked=!1,this.config_enabledMods=[],this.DIMUrl="",this.configValues=[0,0,0,0,0,0],this.element=null,this.ngUnsubscribe=new R.xQ}buildItemIdString(e){if(!e)return"";let o=e.items.flat().filter(r=>r.slot!=b.y.ArmorSlotClass).map(r=>`id:'${r.itemInstanceId}'`).join(" or "),a=["is:classitem"],s=e.items.flat().filter(r=>r.slot==b.y.ArmorSlotClass).map(r=>`exactname:'${r.name}'`).join(" or ");return s.length>0&&(a=[s]),e.classItem.perk!=c.Pn.None&&e.classItem.perk!=c.Pn.COUNT&&a.push(c.ID[e.classItem.perk||0]),a.length>1&&(o+=` or (${a.join(" ")})`),o}openSnackBar(e){this._snackBar.open(e,"",{duration:2500,politeness:"polite"})}ngOnInit(){this.showGenericClassItemRow=(this.element?.items.filter(e=>e.length>0).length||0)<=4,this.config.configuration.pipe((0,Ct.R)(this.ngUnsubscribe)).subscribe(e=>{this.config_characterClass=e.characterClass,this.config_assumeLegendariesMasterworked=e.assumeLegendariesMasterworked,this.config_assumeExoticsMasterworked=e.assumeExoticsMasterworked,this.config_assumeClassItemMasterworked=e.assumeClassItemMasterworked,this.config_enabledMods=e.enabledMods,this.configValues=e.enabledMods.reduce((o,a)=>o.concat(N.F[a].bonus),[]).reduce((o,a)=>(a.stat==c.AR.ClassAbilityRegenerationStat?o[[1,0,2][e.characterClass]]+=a.value:o[a.stat]+=a.value,o),[0,0,0,0,0,0]),this.DIMUrl=this.generateDIMLink(e)})}disableAllItems(){this.config.modifyConfiguration(e=>{for(let o of this.element?.items.flat())e.disabledItems.push(o.itemInstanceId)})}disableItem(e){this.config.modifyConfiguration(o=>{o.disabledItems.push(e)})}get mayAnyItemBeBugged(){return(this.element?.items.flat().filter(e=>e.mayBeBugged).length||0)>0}getCharacterId(){var e=this;return(0,T.Z)(function*(){let o=yield e.membership.getCharacters();return o=o.filter(a=>a.clazz==e.config_characterClass),0==o.length?(e.openSnackBar("Error: Could not find a character to move the items to."),null):o[0].characterId})()}moveItems(e=!1){var o=this;return(0,T.Z)(function*(){for(let d of(o.element?.items||[]).flat())d.transferState=Qt.WAITING_FOR_TRANSFER;let a=yield o.getCharacterId();if(!a)return;let s=!0,r=(o.element?.items||[]).flat().sort(d=>d.exotic?1:-1);for(let d of r){d.transferState=Qt.TRANSFERRING;let p=yield o.bungieApi.transferItem(d.itemInstanceId,a,e);d.transferState=p?Qt.TRANSFERRED:Qt.ERROR_DURING_TRANSFER,p||(s=!1)}o.openSnackBar(s?"Success! Moved all the items.":"Some of the items could not be moved. Make sure that there is enough space in the specific slot. This tool will not move items out of your inventory.")})()}getItemsThatMustBeMasterworked(){return this.element?.items.flat().filter(e=>!(e.masterworked||e.exotic&&!this.config_assumeExoticsMasterworked||!e.exotic&&!this.config_assumeLegendariesMasterworked))}calculateRequiredMasterworkCost(){let e={shards:0,glimmer:0,core:0,prism:0,ascshard:0,total:0},o=this.element?.items.flat()||[];o=o.filter(a=>a.energyLevel<10&&(a.exotic&&this.config_assumeExoticsMasterworked||!a.exotic&&this.config_assumeLegendariesMasterworked));for(let a of o){let s=a.exotic?lo:ro;for(let r=a.energyLevel;r<10;r++)for(let d in s[r+1])e[d]+=s[r+1][d],e.total++}return e}generateDIMLink(e){const o=[],a=[];for(let u of this.config_enabledMods){const M=N.F[u];M.type===w.O.CombatStyleMod?o.push(M.hash):a.push(M.hash)}if(this.element){for(let u of this.element?.mods||[])o.push(c.K9[u][3]);for(let u of this.element?.artifice||[])o.push(c.K9[u][3])}var s={statConstraints:[{statHash:2996146975,minTier:e.minimumStatTiers[c.WB.Mobility].value,maxTier:e.minimumStatTiers[c.WB.Mobility].fixed?e.minimumStatTiers[c.WB.Mobility].value:10},{statHash:392767087,minTier:e.minimumStatTiers[c.WB.Resilience].value,maxTier:e.minimumStatTiers[c.WB.Resilience].fixed?e.minimumStatTiers[c.WB.Resilience].value:10},{statHash:1943323491,minTier:e.minimumStatTiers[c.WB.Recovery].value,maxTier:e.minimumStatTiers[c.WB.Recovery].fixed?e.minimumStatTiers[c.WB.Recovery].value:10},{statHash:1735777505,minTier:e.minimumStatTiers[c.WB.Discipline].value,maxTier:e.minimumStatTiers[c.WB.Recovery].fixed?e.minimumStatTiers[c.WB.Recovery].value:10},{statHash:144602215,minTier:e.minimumStatTiers[c.WB.Intellect].value,maxTier:e.minimumStatTiers[c.WB.Intellect].fixed?e.minimumStatTiers[c.WB.Intellect].value:10},{statHash:4244567218,minTier:e.minimumStatTiers[c.WB.Strength].value,maxTier:e.minimumStatTiers[c.WB.Strength].fixed?e.minimumStatTiers[c.WB.Strength].value:10}],mods:o,assumeArmorMasterwork:e.assumeLegendariesMasterworked?e.assumeExoticsMasterworked?3:2:1};if(1==e.selectedExotics.length)s.exoticArmorHash=e.selectedExotics[0];else{var r=this.element?.exotic;if(r&&1==r.length){var d=r[0].hash;d&&(s.exoticArmorHash=parseInt(d,10))}}const p={id:"d2ap",name:"D2ArmorPicker Loadout",classType:e.characterClass,parameters:s,equipped:(this.element?.items||[]).filter(u=>u.length>0).map(([u])=>({id:u.itemInstanceId,hash:u.hash})),unequipped:[],clearSpace:!1};if(a.length){const u=a.reduce((K,$,nt)=>(K[nt+7]=$,K),{}),Y={1:{[w.O.Stasis]:873720784,[w.O.Void]:2453351420,[w.O.Solar]:2240888816,[w.O.Arc]:2328211300,[w.O.Strand]:3785442599,[w.O.Prismatic]:4282591831},0:{[w.O.Stasis]:613647804,[w.O.Void]:2842471112,[w.O.Solar]:2550323932,[w.O.Arc]:2932390016,[w.O.Strand]:242419885,[w.O.Prismatic]:1616346845},2:{[w.O.Stasis]:3291545503,[w.O.Void]:2849050827,[w.O.Solar]:3941205951,[w.O.Arc]:3168997075,[w.O.Strand]:4204413574,[w.O.Prismatic]:3893112950}}[e.characterClass]?.[e.selectedModElement];Y&&p.equipped.push({id:"12345",hash:Y,socketOverrides:u})}return"https://app.destinyitemmanager.com/loadouts?loadout="+encodeURIComponent(JSON.stringify(p))}goToDIM(){window.open(this.DIMUrl,"blank")}getTiersForStat(e){return Math.floor((this.element?.stats[e]||0)/10)}getColumnForStat(e){var o=Math.floor(this.configValues[e]/10);let a=[],s=0,r=Math.ceil((5*(this.element?.mods.filter(p=>p==1+2*e)||[]).length+10*(this.element?.mods.filter(p=>p==2+2*e)||[]).length)/10);var d=this.getTiersForStat(e)-o-r;for(let p=0;p10?" over100":""));for(let p=0;p10?" over100":""));for(let p=0;p10?" over100":""));for(;s++<10;)a.push("");return a}getRequiredMasterworkBonus(){return 2*(this.element?.items.filter(e=>!e[0].masterworked&&!e[0].exotic&&this.config_assumeLegendariesMasterworked||e[0].exotic&&this.config_assumeExoticsMasterworked)||[]).length}getAffinityName(e){return c.vr[e]}getAffinityUrl(e){return c.Sy[e]}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(tt),t.Y36(ue.ux),t.Y36(At),t.Y36(Ut))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-expanded-result-content"]],inputs:{element:"element"},decls:124,vars:26,consts:[["class","invalid-item-box mat-elevation-z4","color","warn",4,"ngIf"],[1,"specificStatTable"],[4,"ngFor","ngForOf"],[4,"ngIf"],["class","result-total-gear result-total highlight-row",4,"ngVar"],[1,"result-config"],[3,"class",4,"ngIf"],["class","highlight-row",4,"ngVar"],[4,"ngVar"],["class","result-total-all result-total highlight-row",4,"ngVar"],[1,"buttonContainer"],["color","primary","mat-raised-button","","matTooltip","Use this button to open this build as a DIM Loadout.",3,"click"],["mat-stroked-button","","matTooltip","Click this button to move Items to your inventory. Make sure that you have enough space in your inventory. This tool will not move any items out of your inventory.",3,"click"],["mat-stroked-button","","matTooltip","Click this button to equip the Items. Make sure that you have enough space in your inventory. This tool will not move any items out of your inventory.",3,"click"],[1,"mat-elevation-z6"],[1,"stat-preview"],["colspan","2"],[1,"tier-column"],[1,"legend"],[1,"energy-bar","normal"],["colspan","3"],[1,"energy-bar","mod"],["colspan","4"],[1,"energy-bar","config"],["color","warn",1,"invalid-item-box","mat-elevation-z4"],[3,"highlight-row",4,"ngFor","ngForOf"],["class","item-name-mw","matTooltip","This item is already masterworked.",4,"ngIf"],[1,"icon-column"],[1,"item-icon-container",3,"itemTooltip"],[1,"item-icon",3,"itemHash","masterworked","source"],[2,"position","relative","width","25px"],[3,"perk"],["mat-icon-button","","matTooltip","Disable this item from the results. It will not be used to generate results anymore, but you can always undo this.",1,"item-info-menu-btn",3,"click"],["class","icon-column",4,"ngIf"],["matTooltip","This item is already masterworked.",1,"item-name-mw"],["tooltip","matTooltip"],[1,"item-stat-container"],[1,"item-stat-value"],["color","primary","diameter","22","mode","indeterminate",1,"item-loading-spinner"],["aria-hidden","false","aria-label","Success","inline","","matTooltip","Item successfully moved to inventory.",1,"item-moved-icon"],["aria-hidden","false","aria-label","Error","inline","","matTooltip","This item could not be moved. Make sure that there is enough space on your character. This tool will not move items out of your inventory.",1,"report-problem-icon"],["aria-hidden","false","aria-label","Error","inline","","matTooltip","The stats of this item may be incorrect. Make sure that you remove every positive or negative stat modifier from this item.",1,"report-problem-icon"],["matTooltip","Class item should be masterworked.",1,"item-name-mw"],[1,"text-mw"],["mat-icon-button","","matTooltip","Disable all four items above from the results. They will not be used to generate results anymore, but you can always undo this.",1,"item-info-menu-btn","report-problem-icon",3,"click"],["colspan","6",1,"text-centered"],[1,"result-total-gear","result-total","highlight-row"],["alt","Mobility","src","https://www.bungie.net/common/destiny2_content/icons/e26e0e93a9daf4fdd21bf64eb9246340.png",1,"statIcon"],["alt","Resilience","src","https://www.bungie.net/common/destiny2_content/icons/202ecc1c6febeb6b97dafc856e863140.png",1,"statIcon"],["alt","Recovery","src","https://www.bungie.net/common/destiny2_content/icons/128eee4ee7fc127851ab32eac6ca91cf.png",1,"statIcon"],["alt","Discipline","src","https://www.bungie.net/common/destiny2_content/icons/79be2d4adef6a19203f7385e5c63b45b.png",1,"statIcon"],["alt","Intellect","src","https://www.bungie.net/common/destiny2_content/icons/d1c154469670e9a592c9d4cbdcae5764.png",1,"statIcon"],["alt","Strength","src","https://www.bungie.net/common/destiny2_content/icons/ea5af04ccd6a3470a44fd7bb0f66e2f7.png",1,"statIcon"],[1,"highlight-row"],["class","positive",4,"ngIf"],[1,"positive"],[1,"result-total-all","result-total","highlight-row"],["style","margin-top: 10px",4,"ngIf"],[2,"margin-top","10px"],["class","currency-icon-container","matTooltip","Glimmer",4,"ngIf"],["class","currency-icon-container","matTooltip","Enhancement Cores",4,"ngIf"],["class","currency-icon-container","matTooltip","Enhancement Prism",4,"ngIf"],["class","currency-icon-container","matTooltip","Ascendant Shard",4,"ngIf"],["matTooltip","Glimmer",1,"currency-icon-container"],["alt","Glimmer","src","https://www.bungie.net/common/destiny2_content/icons/88993eaeedad32f42072df6f77f47311.png",1,"currency-icon"],["matTooltip","Enhancement Cores",1,"currency-icon-container"],["alt","Enhancement Cores","src","https://www.bungie.net/common/destiny2_content/icons/0a4eb695ed55b4e720ddc401460cc0f9.jpg",1,"currency-icon"],["matTooltip","Enhancement Prism",1,"currency-icon-container"],["alt","Enhancement Prism","src","https://www.bungie.net/common/destiny2_content/icons/dea2a35badf7466d4c2c2697ce6e8d87.jpg",1,"currency-icon"],["matTooltip","Ascendant Shard",1,"currency-icon-container"],["alt","Ascendant Shard","src","https://www.bungie.net/common/destiny2_content/icons/0271d214fc3ec91b3def799a4b286b46.jpg",1,"currency-icon"],["color","primary","mat-raised-button","","matTooltip","Use this button to copy a DIM search query to your clip board. It allows you to search the given items in DIM.",3,"cdkCopyToClipboard","click"],["class","element-icon-mini",3,"src","matTooltip",4,"ngIf"],[1,"element-icon-mini",3,"src","matTooltip"],[2,"height","18px",3,"alt","src"],[1,"sum-tiers"],["class","energy-bar",3,"class",4,"ngIf"],[1,"energy-bar"],["colspan","10"],["colspan","1"],[1,"item-icon-container"],[1,"item-icon",3,"src"],[1,"item-icon-overlay",3,"src"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.YNc(1,Oo,4,0,"mat-toolbar",0),t._uU(2," This table shows you the expected stats of any item: "),t.TgZ(3,"table",1)(4,"thead")(5,"tr")(6,"th"),t._uU(7,"Name"),t.qZA(),t.TgZ(8,"th"),t._uU(9,"Mobility"),t.qZA(),t.TgZ(10,"th"),t._uU(11,"Resilience"),t.qZA(),t.TgZ(12,"th"),t._uU(13,"Recovery"),t.qZA(),t.TgZ(14,"th"),t._uU(15,"Discipline"),t.qZA(),t.TgZ(16,"th"),t._uU(17,"Intellect"),t.qZA(),t.TgZ(18,"th"),t._uU(19,"Strength"),t.qZA(),t._UZ(20,"th")(21,"th"),t.qZA()(),t.YNc(22,qo,2,1,"ng-container",2),t.YNc(23,Jo,24,7,"tr",3),t.YNc(24,Fo,11,0,"tr",3),t.YNc(25,Wo,9,6,"tr",4),t.TgZ(26,"tr",5)(27,"td"),t._uU(28,"Configuration"),t.qZA(),t.TgZ(29,"td"),t.YNc(30,Go,3,4,"span",6),t.qZA(),t.TgZ(31,"td"),t.YNc(32,Ko,3,4,"span",6),t.qZA(),t.TgZ(33,"td"),t.YNc(34,Xo,3,4,"span",6),t.qZA(),t.TgZ(35,"td"),t.YNc(36,ei,3,4,"span",6),t.qZA(),t.TgZ(37,"td"),t.YNc(38,oi,3,4,"span",6),t.qZA(),t.TgZ(39,"td"),t.YNc(40,ai,3,4,"span",6),t.qZA()(),t.YNc(41,xi,15,24,"tr",7),t.YNc(42,ki,15,24,"tr",8),t.YNc(43,Qi,16,24,"ng-container",8),t.YNc(44,Vi,21,6,"tr",9),t.qZA()(),t.YNc(45,Ki,2,1,"ng-container",8),t.TgZ(46,"div",10),t.YNc(47,$i,3,1,"ng-container",8),t.TgZ(48,"button",11),t.NdJ("click",function(){return o.goToDIM()}),t._uU(49," Open Loadout in DIM "),t.qZA(),t._UZ(50,"br"),t.TgZ(51,"small"),t._uU(52,"The following two buttons may not work for some at the moment:"),t.qZA(),t._UZ(53,"br"),t.TgZ(54,"button",12),t.NdJ("click",function(){return o.moveItems()}),t._uU(55," Move items to inventory (beta) "),t.qZA(),t.TgZ(56,"button",13),t.NdJ("click",function(){return o.moveItems(!0)}),t._uU(57," Equip Items (beta) "),t.qZA()(),t.TgZ(58,"mat-accordion")(59,"mat-expansion-panel",14)(60,"mat-expansion-panel-header")(61,"mat-panel-title"),t._uU(62," What to do now? "),t.qZA(),t.TgZ(63,"mat-panel-description"),t._uU(64," Detailed Instructions of to get your loadout ready. "),t.qZA()(),t.TgZ(65,"div")(66,"ol")(67,"li"),t._uU(68," Move all related items into your inventory "),t.YNc(69,Xi,2,0,"span",3),t._uU(70,". "),t.qZA(),t.YNc(71,na,2,1,"ng-container",8),t.YNc(72,Ha,3,1,"li",3),t.ALo(73,"count"),t.YNc(74,as,5,2,"li",3),t.qZA()()(),t.TgZ(75,"mat-expansion-panel",14)(76,"mat-expansion-panel-header")(77,"mat-panel-title"),t._uU(78," Stat overview "),t.qZA(),t.TgZ(79,"mat-panel-description"),t._uU(80," Shows a summary of all the stats and where they come from. "),t.qZA()(),t.TgZ(81,"table",15)(82,"tr")(83,"td",16),t._uU(84,"Stat"),t.qZA(),t.TgZ(85,"td",17),t._uU(86,"1"),t.qZA(),t.TgZ(87,"td",17),t._uU(88,"2"),t.qZA(),t.TgZ(89,"td",17),t._uU(90,"3"),t.qZA(),t.TgZ(91,"td",17),t._uU(92,"4"),t.qZA(),t.TgZ(93,"td",17),t._uU(94,"5"),t.qZA(),t.TgZ(95,"td",17),t._uU(96,"6"),t.qZA(),t.TgZ(97,"td",17),t._uU(98,"7"),t.qZA(),t.TgZ(99,"td",17),t._uU(100,"8"),t.qZA(),t.TgZ(101,"td",17),t._uU(102,"9"),t.qZA(),t.TgZ(103,"td",17),t._uU(104,"10"),t.qZA(),t.TgZ(105,"td"),t._uU(106,"Tiers"),t.qZA()(),t.YNc(107,ls,8,5,"tr",2),t.TgZ(108,"tr",18)(109,"td",16),t._uU(110,"Armor"),t.qZA(),t.TgZ(111,"td"),t._UZ(112,"div",19),t.qZA(),t.TgZ(113,"td",20),t._uU(114,"Stat Mod"),t.qZA(),t.TgZ(115,"td"),t._UZ(116,"div",21),t.qZA(),t.TgZ(117,"td",22),t._uU(118,"Fragments & Mods"),t.qZA(),t.TgZ(119,"td"),t._UZ(120,"div",23),t.qZA()(),t.YNc(121,ms,2,1,"ng-container",8),t.qZA()()(),t._UZ(122,"br")(123,"br")),2&e&&(t.xp6(1),t.Q6J("ngIf",o.mayAnyItemBeBugged),t.xp6(21),t.Q6J("ngForOf",null==o.element?null:o.element.items),t.xp6(1),t.Q6J("ngIf",o.showGenericClassItemRow&&o.config_assumeClassItemMasterworked),t.xp6(1),t.Q6J("ngIf",o.showGenericClassItemRow&&!o.config_assumeClassItemMasterworked),t.xp6(1),t.Q6J("ngVar",null==o.element?null:o.element.statsNoMods),t.xp6(5),t.Q6J("ngIf",0!==o.configValues[o.ArmorStat.Mobility]),t.xp6(2),t.Q6J("ngIf",0!==o.configValues[o.ArmorStat.Resilience]),t.xp6(2),t.Q6J("ngIf",0!==o.configValues[o.ArmorStat.Recovery]),t.xp6(2),t.Q6J("ngIf",0!==o.configValues[o.ArmorStat.Discipline]),t.xp6(2),t.Q6J("ngIf",0!==o.configValues[o.ArmorStat.Intellect]),t.xp6(2),t.Q6J("ngIf",0!==o.configValues[o.ArmorStat.Strength]),t.xp6(1),t.Q6J("ngVar",null==o.element?null:o.element.mods),t.xp6(1),t.Q6J("ngVar",null==o.element?null:o.element.mods),t.xp6(1),t.Q6J("ngVar",null==o.element?null:o.element.artifice),t.xp6(1),t.Q6J("ngVar",null==o.element?null:o.element.stats),t.xp6(1),t.Q6J("ngVar",o.calculateRequiredMasterworkCost()),t.xp6(2),t.Q6J("ngVar",o.buildItemIdString(o.element)),t.xp6(22),t.Q6J("ngIf",o.config_assumeClassItemMasterworked),t.xp6(2),t.Q6J("ngVar",o.getItemsThatMustBeMasterworked()),t.xp6(1),t.Q6J("ngIf",(null==o.element?null:o.element.mods).length>0&&t.xi3(73,23,null==o.element?null:o.element.mods,o.StatModifier.NONE)<5),t.xp6(2),t.Q6J("ngIf",o.config_enabledMods.length>0),t.xp6(33),t.Q6J("ngForOf",o.armorStatIds),t.xp6(14),t.Q6J("ngVar",null==o.element?null:o.element.exotic))},dependencies:[Z.sg,Z.O5,st.lW,ut.gM,Zt.Hw,ht.Ye,lt.pp,lt.ib,lt.yz,lt.yK,lt.u4,co.Ou,te.i3,zt,To,ge,_e,Z.JJ,ve],styles:[".element-icon[_ngcontent-%COMP%]{width:22px}.element-icon-mini[_ngcontent-%COMP%]{height:12px}.item-loading-spinner[_ngcontent-%COMP%]{width:22px;height:22px;margin-bottom:6px}.item-icon[_ngcontent-%COMP%]{width:22px}.item-icon-overlay[_ngcontent-%COMP%]{width:22px;margin-left:-22px}.item-icon-container[_ngcontent-%COMP%]{position:relative;contain:layout paint style;box-sizing:border-box;width:var(--item-size);transition:opacity .2s,transform .2s;margin-top:-4px}.item-icon-masterwork-overlay[_ngcontent-%COMP%]{pointer-events:none;box-sizing:border-box;top:-1px;left:-1px;border-width:0;height:24px;width:24px;position:absolute;background-repeat:no-repeat;background-position:center;background-size:22px 22px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAJgklEQVR4AWI8t87oBYCd8rBuGAZi6N1JUQbIrJkiY6bM4EoE1EHvqb+WHsPvG5AJU522JQ/znpY03GzJ3YTovcvcVFcO5WbU8eH/OZ8R91B241c6wEzowJUUZnqlXMiZufrJSs1XUjNBUb6OcvUFF8190fzkGxS2J0ChGPQZDnYAQObJWHbNlCvZIXKxqvHN8KBp22SubByb9EKFGM2hzgyNa47vUzvKvnUToHPOINMFHG6Oo6hb6lhmMump4wROtxSMee8yjC6YI9jOnBYcGn5TZnTdBMB7d0+HB52AeKEb5QL2hQKx8RLk5IkE6eymz9CJFPJIQKxdWZKO5M1u+gw9kPvVJUjqyAt5Z98OMBAI4igO9x97koAAnSY6YHSaAB2nAiyswTbMq+/HAiHv0+4k3Ww1pOvnOvYews1Ow2rGnldEAAAIAAABACAAAAQAgAAAEAAAAgAgPwACAEAAAKiyAfJ7AXALEgAAAuAU5BMgAADki9j/BQCAlkN459OlNu6v0/V43vsAocOvq9kh1n/LX35h+B6EU9DI8fuVh/D48WMRWv742Qgtf/xshBY+fm1cMQgtefwdI5ffA/a9+frC68ox9M3enehIkvJAAC5D9vs/8F+Z/HugkfXJrOfec6QSJBi6O8IO2znX1zdZro39if/K0B8ftp2Hxxfa/vcu6DO8P5x/AaDrvwj4/uDPJDtjP09+ntDze9L+i4DRSEqwtgoQZ9rL3r9Ye/51L+Pw9tF6YuHFPJ/uWBDk2eXZvfb8YyMAwHvg673Z7AvmSF4POeSHmtDnb0xAD3qzN5gLfHsHIOvhktBJ4vOXJqABvJcZnqs5z54R7FF5ODaRiOkIGcXX+OZG7PqJnh6Ev3uOI52Z7tdRUCbdB6AFXHCDcZ3kkf2fGwEN+HGe+3xcE5yBB3umIvk5JnVIggDtnx/1u27XD5CajhBt8tqj9gMahDSan+7C629sxx6DiGmTcxOF304AwOud/SuABnTsZtNABWfaygUynjR3Ld+/GokZp4TO/JsJsEON1uN7OTEPaO9nVFHhHXizTdcN8Fl6BlER5gHk6lghYV8Tgd31DeCPL2icmhISYGsS9P7R9AErAT9JwlWCnuyFsmRuEQurKcBuqyBB72WkXtfmTCD7Au4a4/H7yYAl0N9VY0eERBqRr+Ov51yqCkTEYuuqjL4A+D4p1nvazLzOncHLt1dByhIwqpsHDzcShpIEkM4HZ5+zDEtoRLoKAgrwvwF41/WuAeg+z/1hDzk6VyGPkYW8aLfwarEwr0RJCDr/LUm4+42N8WX6z76Am3R9RoIkGGDvRN7i677TupIhqVZI7vmzPnr+1xLgwT6Bek6QtOE89rMmAGk6d8PhaG9ghSOgeLaAW1FFmYz9viLitcgBCFAgQ2dJ6dcEyLvcKxMuH2za3wW7AeOpqh/k6raz9l49XOIlQozX6pNwNCDnfde6Ckfb2SdeSejLUCXp+L3SPyAlj9FghVVHWV2etlVQ482MNfBHzwe4igSAj7T+4VnmtfdvwBJ5dxoXay/6hrc5gqrnyQCzX5H3fHYVhNd35eOrIWD4zDjZG2ntSmt8CpKTzCAnSEmp6Y7TDthyE9vbjhz7OOYAODg3THqfwEmMIJ29f1TaDwkX+8ckTCf8JAl6EjBviFo70m7v0vtTdD72EqzNgjwIgCJBr+aMRoTzbQMxzBlHIoY5JFCrA9xIZedIZLzZiwScpe1ij/vLyDu8b9p5IH2/V/4hfg+SGIUHr7oSAVhIwgbwIALpgYgLcvokvLU9gfsmgv+37117brJ90PrlHKAtWY24OWLO5/WORGWYAyJeQy8fjceHoOYz5gkTLeAPgL7YU57mHzRBQwA2Cff+5L3s1e9kn8Cuy1hAf9D/EN5YYySVKyQo4tyNSog6XucApWOZeA+Vz6UMNaXotLEiCZsgY4M9KVc/9lmBffwNHSonyQp1H/kpknDEiFeM/U2UybWRmcuEe5IcSPgAqOuQB2b3OiKBMrLumzy33dzy86HG84Z0KCtp/wL4kc7NfFdEDIucK9em8eskRl3q4bUAYc6YXalZJue6/LwkoClD9cYsP5G8d5pkT/U+Cfdd5gpI4jn2EL87eEQiID5tboPq9e+rBLvOA47D/doGj6+lKJpiQC+88WDP33h8JMADL36naIUYJYocsO+NGLOIAJJEjJnWhx7fyM0obAXLta7hmjxfp3dB5IF3AvRJwL3tzG3cjKJ8PkncBPgBocPyNXYEHAkI/md8CFA+eu8/jMiOVc1lpQRBEq38rKTNN/khkJHJXtjE8TW8T50fJO6RxvXaOSBer1j594Rjf5HfNyMSCCFoR43HBtKsirSFSCXILrh/G1p0vRdVSX4vdJvEkZYK+EVu4W0qtluCYtvGHq89MQImAApsLUHniBC0cbjXuclXcvR+o2Dq9ThXzhl3AtCcoabnHPBRdL1vCEwR30hQRAw985hwAZR1IyVcJ3o8p97HqSnE0xz1zpszAfgvSKm634e5tf9HVfaOGNcTJwLiUye2BJrnSk5OEiVZ3unv/7o/zvLT/sGshRy8i4hdyVtvk6mlaNoz4f6/dGvJkRqKgVXuDyuWLLkSZ+CiXIQVZ2CF0h0XbblkRU+hESIjq+yqZ2emJtKbZNK54vlfUBRAgl1A0BUuiyAvmdo/ff/x7QsZF5PsYY2uKw20EKA1NLpuzaNnBmddSCIZqrxIz2ydiEpprucWzrk8WzrZAGQQ5LyL4hJCqhCQ+zOVLFP5Cslzrc88KeGk0LWam1mSprc196WeH8mY/QZcngWxZ3/Y9fhsiiRjcpCzdKjhHSTHqDnCdatee/wFzF40+ph85GP9Ht7969BGjXlj0nBjbkoZJBPAbv+WB2sqWitvZXLrkrGprgluPsf5HvBr+/l1CpD4+8F/4NdnIreI64MMgFf0PUrhDRE3FjLuYLy4y9184Z1eY73w6rr7e2bNu4gvBE9fim7ftEOZkJ5I7TfkY1M+oHyiMF/R9YbcNzW3QfuLk/leIzXWLM/cgcp19FzCemU6cIz/MB9890UWjBGadM7N9QMtlCqqJiFwOjUhdaDQXQCdEwNOpzhYwMpBDrfcFpEXIsjiGJw+9jqidHo7O3+3QVO7+QpIf7ji9cbst7ogrVf8UXTDBslUgkxCCSilwjFdSAkBkSo1EcjSIBXWWvsN9SxF5ebWH3woEIS629sLNhsPabYekYTY/VR0znB/jBdcErKAavL8+A1ICXvgoqroDgAAAABJRU5ErkJggg==)}.negative[_ngcontent-%COMP%]{color:#f08080}.positive[_ngcontent-%COMP%]{color:#6495ed}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{text-align:right}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:not(:last-child) td[_ngcontent-%COMP%]{border-bottom:rgba(240,248,255,.08) solid .5px}.result-total-gear[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom:aliceblue solid 1px!important}.result-total-all[_ngcontent-%COMP%] > td[_ngcontent-%COMP%], .result-total-gear[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{border-top:aliceblue double}.buttonContainer[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:10px}.buttonContainer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(:last-of-type){margin-right:6px;margin-bottom:3px}.result-total[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{position:relative;padding-right:14px}.statIcon[_ngcontent-%COMP%]{position:absolute;height:14px;margin-left:2px;top:3px}.item-info-menu-btn[_ngcontent-%COMP%]{height:22px!important;width:22px!important;line-height:22px!important;top:-4px;left:-4px}.item-info-menu-btn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:22px}.item-moved-icon[_ngcontent-%COMP%]{color:#7fffd4}.report-problem-icon[_ngcontent-%COMP%]{color:#f08080}.invalid-item-box[_ngcontent-%COMP%]{text-align:center;margin-right:auto;margin-left:auto;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content;font-size:15px;line-height:20px}.text-centered[_ngcontent-%COMP%]{text-align:center!important}.specificStatTable[_ngcontent-%COMP%]{border-collapse:separate;border-spacing:0 0}.highlight-row[_ngcontent-%COMP%]{background-color:#6e6e6e21}tr.legend[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-top:3px}.tier-column[_ngcontent-%COMP%]{min-width:27px}.energy-bar[_ngcontent-%COMP%]{width:25px;height:10px;border:white solid 2px;position:relative}.energy-bar.normal[_ngcontent-%COMP%]{background-color:#fff}.energy-bar.mod[_ngcontent-%COMP%]{background-color:gray;border:white ridge 2px}.energy-bar.config[_ngcontent-%COMP%]{background-color:#a3b1c2;border:white ridge 2px}.energy-bar.over100[_ngcontent-%COMP%]{border-color:#ff5e5e;width:10px}.item-stat-container[_ngcontent-%COMP%]{position:relative}.item-stat-bonus[_ngcontent-%COMP%]{position:absolute;right:20px;font-size:x-small}.item-name-mw[_ngcontent-%COMP%]{text-decoration:underline;-webkit-text-decoration-color:#ffbc00;text-decoration-color:#ffbc00}.text-mw[_ngcontent-%COMP%], .item-stat-bonus[_ngcontent-%COMP%]{color:#ffd86a}app-armor-perk-icon[_ngcontent-%COMP%]{width:23px;height:23px;position:absolute;top:-14px;left:0}td.sum-tiers[_ngcontent-%COMP%]{text-align:center!important;border-left:#6e6e6e solid 1px}.currency-icon[_ngcontent-%COMP%]{width:16px;position:absolute;left:0}.currency-icon-container[_ngcontent-%COMP%]{position:relative;padding-left:19px;padding-right:10px}.icon-column[_ngcontent-%COMP%]{padding-left:4px}"]}),n})();var Ae=g(3238),us=g(8729);function ps(n,i){1&n&&(t.TgZ(0,"mat-icon",6),t._uU(1,"add_circle_outline "),t.qZA())}function gs(n,i){1&n&&(t.TgZ(0,"mat-icon",7),t._uU(1,"remove_circle_outline "),t.qZA())}function _s(n,i){1&n&&(t.TgZ(0,"mat-icon",8),t._uU(1,"change_history "),t.qZA())}function fs(n,i){if(1&n&&(t.TgZ(0,"mat-list-item"),t.YNc(1,ps,2,0,"mat-icon",2),t.YNc(2,gs,2,0,"mat-icon",3),t.YNc(3,_s,2,0,"mat-icon",4),t.TgZ(4,"div",5)(5,"p"),t._uU(6),t.qZA()()()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngIf",0===e.type),t.xp6(1),t.Q6J("ngIf",1===e.type),t.xp6(1),t.Q6J("ngIf",2===e.type),t.xp6(3),t.Oqu(e.text)}}function hs(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"div",1),t._uU(2),t.qZA(),t.YNc(3,fs,7,4,"mat-list-item",0),t.TgZ(4,"mat-list-item"),t._UZ(5,"br")(6,"mat-divider"),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(2),t.AsE("",e.version,", released on ",e.date,""),t.xp6(1),t.Q6J("ngForOf",e.entries)}}let we=(()=>{class n{constructor(e){this.changelog=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(se))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-changelog-list"]],decls:2,vars:1,consts:[[4,"ngFor","ngForOf"],["mat-subheader","",1,"title"],["mat-list-icon","","matTooltip","A new function has been added.",4,"ngIf"],["mat-list-icon","","matTooltip","A function has been removed.",4,"ngIf"],["mat-list-icon","","matTooltip","Something has been modified.",4,"ngIf"],["mat-line","",1,"e"],["mat-list-icon","","matTooltip","A new function has been added."],["mat-list-icon","","matTooltip","A function has been removed."],["mat-list-icon","","matTooltip","Something has been modified."]],template:function(e,o){1&e&&(t.TgZ(0,"mat-list"),t.YNc(1,hs,7,3,"ng-container",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngForOf",o.changelog.changelogData))},dependencies:[Z.sg,Z.O5,ut.gM,Zt.Hw,Gt.i$,Gt.Tg,Ae.X2,Gt.Nh,Gt.gs,us.d],styles:["[_nghost-%COMP%] .mat-line{word-wrap:break-word!important;white-space:pre-wrap!important}[_nghost-%COMP%] .mat-list .mat-list-item{height:initial!important}.title[_ngcontent-%COMP%]{text-decoration:underline;font-size:20px}.e[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]:first-child{padding-top:12px}"]}),n})();function xs(n,i){if(1&n&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(e)}}let ys=(()=>{class n{constructor(){this.knownIssues=["When you click buttons on the page too fast are able to select an invalid state with no results. Just undo your changed settings. And be patient - the calculation is an expensive task.","Sometimes duplicate results are given. This happens when the inventory got updated twice (Race Condition). Only reported once, and not really a problem."],this.changelog=xe}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-help-page"]],decls:116,vars:1,consts:[["id","help-container"],["color","primary","fxShow","false","fxShow.lt-md","true","mat-raised-button","","routerLink","/",1,"returnbutton"],["href","https://twitter.com/MijagoCoding/","target","_blank","matTooltip","Birb App"],["alt","Me on twitter","src","assets/logo-twitter.png",1,"logo-twitter"],["href","https://ko-fi.com/mijago","target","_blank","matTooltip","If you like my work, you can always buy me a coffee!"],["alt","Ko-Fi","src","assets/logo-kofi.png",1,"logo-twitter"],["href","http://discord.d2armorpicker.com/","target","_blank","matTooltip","Visit me at the development & support discord."],["alt","Discord","src","assets/logo-discord.png",1,"logo-twitter"],["href","https://github.com/Mijago/D2-Gear-Calculator","target","_blank"],["href","https://mijago.github.io/D2GearCalculator/","target","_blank"],["href","https://twitter.com/MijagoCoding/","target","_blank"],["href","https://ko-fi.com/mijago","target","_blank"],[1,"preview-image-container"],["alt","Preview of the results table","src","assets/armor-images/preview_result_details.png",1,"preview-image"],["fxLayout","row","id","armor-image-container"],["src","assets/armor-images/kabrs_battlecage.png"],["src","assets/armor-images/lightkin_gauntlets.png"],["src","assets/armor-images/phobos_warden_helm.png"],["src","assets/armor-images/wild_hunt_vest.png"],[4,"ngFor","ngForOf"],[1,"changelog-table-container"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"a",1),t._uU(2," Return to D2ArmorPicker "),t.qZA(),t.TgZ(3,"mat-card")(4,"mat-card-title")(5,"span"),t._uU(6,"About D2ArmorPicker "),t.TgZ(7,"small"),t._uU(8," by Mijago"),t.qZA(),t.TgZ(9,"a",2),t._UZ(10,"img",3),t.qZA(),t.TgZ(11,"a",4),t._UZ(12,"img",5),t.qZA(),t.TgZ(13,"a",6),t._UZ(14,"img",7),t.qZA()()(),t.TgZ(15,"mat-card-content"),t._uU(16," D2ArmorPicker (or short D2AP) is a small web-app to quickly find armor that fits your desired stat requirements. It uses the armor in your vault, inventory and postmaster, calculates every possible variation and shows only those that fulfill the given requirements. "),t._UZ(17,"br")(18,"br"),t._uU(19," As I raided a lot and I mainly play meme builds, I wanted to be able to switch exotics and have decent stats without being a burden on my team. That's why I developed the "),t.TgZ(20,"a",8),t._uU(21,"first version of this tool"),t.qZA(),t._uU(22," in Python. After a few days I started to translate this tool "),t.TgZ(23,"a",9),t._uU(24,"into a webpage"),t.qZA(),t._uU(25,". My friends liked it, but it didn't have API access. Thus I created the first version of D2ArmorPicker, and after people started using and liking it, I started to completely rewrite it - that's Version\xa02! "),t._UZ(26,"br")(27,"br"),t._uU(28," I keep updating and improving this tool, but beware that it takes a bit, as I work on it on my spare time. Feel free to follow me on Twitter "),t.TgZ(29,"a",10),t._UZ(30,"img",3),t.qZA(),t._uU(31,", I occasionally post updates there. If you like my tools and want to support me, head to "),t.TgZ(32,"a",11),t._uU(33,"ko-fi.com"),t.qZA(),t._uU(34," and buy me a coffee! \u2764 "),t.qZA()(),t.TgZ(35,"mat-card")(36,"mat-card-title"),t._uU(37," How do I use D2ArmorPicker? "),t.qZA(),t.TgZ(38,"mat-card-content"),t._uU(39," Follow these few steps: "),t.TgZ(40,"ol")(41,"li"),t._uU(42,"Login. You already did this!"),t.qZA(),t.TgZ(43,"li"),t._uU(44," [Optional] Pick an exotic you want to use. The tool will only display results for this exotic. You can always undo this. "),t.qZA(),t.TgZ(45,"li"),t._uU(46," [Optional] Select additional mods/fragments that give a bonus (or penalty). These are important if you want certain stat combinations even if you have penalties on your gear. "),t.qZA(),t.TgZ(47,"li"),t._uU(48," Select the stat distribution you seek. This is the heart of D2ArmorPicker. You just click 100 recovery and it will display you builds that have 100 recovery. "),t.TgZ(49,"i"),t._uU(50,"Note that it automatically adds stat mods if necessary."),t.qZA()(),t.TgZ(51,"li"),t._uU(52," Now look to the result table. On a normal desktop it should be on the right, on smaller devices it might move below the configuration. The table lists multiple results and you can sort it by your requirements."),t._UZ(53,"br"),t.TgZ(54,"b"),t._uU(55,"Click"),t.qZA(),t._uU(56," on an entry to open look the detailed view: "),t.TgZ(57,"div",12),t._UZ(58,"img",13),t.qZA(),t._uU(59," The example above shows a build that utilizes Dunemarchers and a zero-waste-build. To achieve it, I have to move all the items in my inventory and equip them. After this, I "),t.TgZ(60,"i"),t._uU(61,"masterwork"),t.qZA(),t._uU(62," them and "),t.TgZ(63,"i"),t._uU(64,"add the mods"),t.qZA(),t._uU(65," as the table displays them: "),t.TgZ(66,"ul")(67,"li")(68,"b"),t._uU(69,"Discipline:"),t.qZA(),t._uU(70," One major mod, one minor mod;"),t.qZA(),t.TgZ(71,"li")(72,"b"),t._uU(73,"Intellect:"),t.qZA(),t._uU(74," One major mod, one minor mod;"),t.qZA(),t.TgZ(75,"li")(76,"b"),t._uU(77,"Strength:"),t.qZA(),t._uU(78," One major mod;"),t.qZA(),t.TgZ(79,"li"),t._uU(80,"I also add Powerful Friends and Radiant Light, as I chose them in the configuration."),t.qZA()()()()()(),t.TgZ(81,"mat-card")(82,"mat-card-title"),t._uU(83," Where can I grind high stat armor? "),t.qZA(),t.TgZ(84,"mat-card-content"),t._uU(85," There are many spots that give you mediocre armor, but for the really good builds you need the correct armor. Here I provide a list of high-stat armor sources. It may not be complete, but a good starting point. "),t.TgZ(86,"i"),t._uU(87,"Last updated February 8, 2022."),t.qZA(),t.TgZ(88,"ul")(89,"li"),t._uU(90," Farm legendary Dares!"),t.qZA(),t.TgZ(91,"li"),t._uU(92," Clear Pit of Heresy Dungeon, the boss drop guarantees two stats to be 16 (or higher)."),t.qZA(),t.TgZ(93,"li"),t._uU(94," Farm a bunch of Spoils, go into Master Vault of Glass and buy armor at the final chest."),t.qZA(),t.TgZ(95,"li"),t._uU(96," The list will be extended sometime in Witch Queen!"),t.qZA()(),t._uU(97," Some good armor rolls may look like these: "),t.TgZ(98,"div",14),t._UZ(99,"img",15)(100,"img",16)(101,"img",17)(102,"img",18),t.qZA()()(),t.TgZ(103,"mat-card")(104,"mat-card-title"),t._uU(105,"Known Issues"),t.qZA(),t.TgZ(106,"mat-card-content")(107,"ul"),t.YNc(108,xs,2,1,"li",19),t.qZA()()(),t.TgZ(109,"mat-card")(110,"mat-card-title"),t._uU(111,"Changelog"),t.qZA(),t.TgZ(112,"mat-card-content",20),t._UZ(113,"app-changelog-list"),t.qZA()(),t.TgZ(114,"a",1),t._uU(115," Return to D2ArmorPicker "),t.qZA()()),2&e&&(t.xp6(108),t.Q6J("ngForOf",o.knownIssues))},dependencies:[Z.sg,gt.xw,O.b8,st.zs,L.a8,L.dn,L.n5,ut.gM,y.yS,we],styles:["#help-container[_ngcontent-%COMP%]{max-width:800px;margin-left:auto;margin-right:auto}.changelog-table-container[_ngcontent-%COMP%]{max-height:700px;overflow-y:scroll}mat-card[_ngcontent-%COMP%]{margin-bottom:8px}#armor-image-container[_ngcontent-%COMP%]{overflow:auto}#armor-image-container[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]:not(:last-of-type){margin-right:20px}#armor-image-container[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{max-height:300px}.preview-image-container[_ngcontent-%COMP%]{max-width:600px}.preview-image[_ngcontent-%COMP%]{max-width:100%}.returnbutton[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:15px;width:100%}.changelog-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-of-type{min-width:80px}.changelog-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:nth-of-type(2){min-width:40px}.changelog-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-top:#6e6e6e solid 1px}a[_ngcontent-%COMP%]{color:#99afe3}a[_ngcontent-%COMP%]:visited{color:#7294dc}"]}),n})();var wt=g(4006),ee=g(455),Kt=g(3217),Dt=g(811),Pt=g(9549),ne=g(4144);function bs(n,i){if(1&n&&(t.TgZ(0,"th",5),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("\u2206 Tier ",e.differenceTier,"")}}function vs(n,i){if(1&n&&t._UZ(0,"img",9),2&n){const e=t.oxw(3).$implicit;t.MGl("src","https://www.bungie.net/",e.icon,"",t.LSH)}}function As(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=i.ngVar,o=t.oxw(6).$implicit,a=t.oxw();t.ekj("good",a.differenceTiera.tier),t.xp6(1),t.AsE(" ",e>0?"+":"","",a.formatEntry(o,e)," ")}}function ws(n,i){if(1&n&&(t.TgZ(0,"td"),t.YNc(1,As,2,6,"span",10),t.qZA()),2&n){const e=t.oxw(2).ngVar,o=t.oxw().ngVar;t.xp6(1),t.Q6J("ngVar",-(e-o))}}function Ss(n,i){if(1&n&&(t.TgZ(0,"td")(1,"span"),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=t.oxw().ngVar,o=t.oxw(5);t.xp6(1),t.ekj("good",o.differenceTiero.tier),t.xp6(1),t.AsE(" (",e>0?"+":"","",t.xi3(3,6,100*e,"1.0-0"),"%) ")}}function Is(n,i){if(1&n&&(t.ynx(0),t.YNc(1,ws,2,1,"td",6),t.YNc(2,Ss,4,9,"td",6),t.BQk()),2&n){const e=t.oxw(5);t.xp6(1),t.Q6J("ngIf",e.differenceTier!==e.tier),t.xp6(1),t.Q6J("ngIf",e.differenceTier!==e.tier)}}function Zs(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Is,3,2,"ng-container",7),t.BQk()),2&n){const e=i.ngVar,o=t.oxw().ngVar,a=t.oxw(3);t.xp6(1),t.Q6J("ngVar",a.getPercentageDifference(o,e))}}function Os(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"app-item-icon",11),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("itemHash",e)}}function Ms(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"td"),t.YNc(2,vs,1,1,"img",8),t._uU(3),t.qZA(),t.TgZ(4,"td"),t._uU(5),t.qZA(),t.YNc(6,Zs,2,1,"ng-container",7),t.TgZ(7,"td"),t.YNc(8,Os,2,1,"ng-container",4),t._uU(9),t.qZA(),t.BQk()),2&n){const e=i.ngVar,o=t.oxw(2).$implicit,a=t.oxw();t.xp6(2),t.Q6J("ngIf",o.icon),t.xp6(1),t.hij(" ",o.name," "),t.xp6(2),t.Oqu(a.formatEntry(o,e)),t.xp6(1),t.Q6J("ngVar",a.valueFunction(o,a.differenceTier)),t.xp6(2),t.Q6J("ngForOf",o.overrideIcons),t.xp6(1),t.hij(" ",o.description," ")}}function ks(n,i){if(1&n&&(t.TgZ(0,"tr"),t.YNc(1,Ms,10,6,"ng-container",7),t.qZA()),2&n){const e=t.oxw().$implicit,o=t.oxw();t.xp6(1),t.Q6J("ngVar",o.valueFunction(e,o.tier))}}function Es(n,i){if(1&n&&(t.ynx(0),t.YNc(1,ks,2,1,"tr",6),t.BQk()),2&n){const e=i.$implicit,o=t.oxw();t.xp6(1),t.Q6J("ngIf",null==e.description||!!e.description[o.characterClass])}}let Rs=(()=>{class n{constructor(e,o){this.config=e,this.characterStats=o,this.ArmorStatNames=c.Mi,this.tier=0,this.differenceTier=0,this.stat=c.WB.Mobility,this.entries=[]}get characterClass(){return this.config.readonlyConfigurationSnapshot.characterClass}ngOnInit(){this.entries=this.characterStats.get(c.Mi[this.stat],this.config.readonlyConfigurationSnapshot.characterClass,this.config.readonlyConfigurationSnapshot.selectedModElement,this.config.readonlyConfigurationSnapshot.selectedExotics)}formatEntry(e,o){return o=parseFloat(o.toFixed(2)),e.valueType===ct.Speed?(n=>(Math.round(100*n)/100).toFixed(2)+"m/s")(o):e.valueType===ct.Percentage?`${o}%`:e.valueType===ct.PercentagePerSecond?`${o}%/s`:e.valueType===ct.TimeMMSS?function Ds(n){var i=function Ts(n){n=Math.abs(n);var i=Math.floor(n/60),e=Math.floor(n-60*i);return`${i}:${e<10?"0":""}${e}`}(n);return n<0&&(i="- "+i),i}(o):e.valueType===ct.Time?function Ps(n){var i=function Cs(n){n=Math.abs(n);var i=Math.floor(10*n%10),e=Math.floor(n/60),o=Math.floor(n-60*e);let a=`${o}s`;return i>0&&(a=`${o}.${i}s`),e>0&&(a=`${e}m ${a}`),a}(n);return n<0&&(i="- "+i),i}(o):o}valueFunction(e,o){return e.values[o]}getPercentageDifference(e,o){return(e-o)/Math.max(1,o)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(tt),t.Y36(ae))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-stat-cooldown-tooltip"]],inputs:{tier:"tier",differenceTier:"differenceTier",stat:"stat"},decls:13,vars:5,consts:[[1,"tooltip-container"],["colspan","3",1,"exotic-name"],[2,"min-width","50px"],["style","min-width: 50px","colspan","2",4,"ngIf"],[4,"ngFor","ngForOf"],["colspan","2",2,"min-width","50px"],[4,"ngIf"],[4,"ngVar"],[3,"src",4,"ngIf"],[3,"src"],[3,"good","bad",4,"ngVar"],[3,"itemHash"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"div",0)(2,"table")(3,"tr")(4,"td",1),t._uU(5),t.qZA()(),t.TgZ(6,"tr")(7,"th",2),t._uU(8,"Stat"),t.qZA(),t.TgZ(9,"th",2),t._uU(10),t.qZA(),t.YNc(11,bs,2,1,"th",3),t.qZA(),t.YNc(12,Es,2,1,"ng-container",4),t.qZA()()()),2&e&&(t.xp6(5),t.AsE("",o.ArmorStatNames[o.stat]," at Tier ",o.tier,""),t.xp6(5),t.hij("Tier ",o.tier,""),t.xp6(1),t.Q6J("ngIf",o.differenceTier!==o.tier),t.xp6(1),t.Q6J("ngForOf",o.entries))},dependencies:[Z.sg,Z.O5,zt,ge,Z.JJ],styles:["[_nghost-%COMP%]{max-width:420px}.tooltip-container[_ngcontent-%COMP%]{border:1px solid gray;padding:1px 5px 4px;background:linear-gradient(#484848 0px,#2c2c2c 100%)}.exotic-name[_ngcontent-%COMP%]{color:#eedb9e}.good[_ngcontent-%COMP%]{color:#58b458}.bad[_ngcontent-%COMP%]{color:#ff6b6b}table[_ngcontent-%COMP%]{border-collapse:separate;border-spacing:7px 3px}th[_ngcontent-%COMP%]{white-space:nowrap}img[_ngcontent-%COMP%]{width:24px;height:24px;float:left;margin-right:3px}tr[_ngcontent-%COMP%]{line-height:24px}"]}),n})(),Ns=(()=>{class n{constructor(e,o,a){this._overlay=e,this._overlayPositionBuilder=o,this._elementRef=a,this.showToolTip=!0,this.tooltipTier=0,this.tooltipStat=c.WB.Mobility,this.tooltipDifferenceTier=0}ngOnInit(){if(!this.showToolTip)return;const e=this._overlayPositionBuilder.flexibleConnectedTo(this._elementRef).withPositions([{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top",offsetY:5},{originX:"center",originY:"top",overlayX:"center",overlayY:"bottom",offsetY:-5}]);this._overlayRef=this._overlay.create({positionStrategy:e}),this._overlayRef.addPanelClass("overlay-no-pointer-event")}show(){if(this._overlayRef&&!this._overlayRef.hasAttached()){const e=this._overlayRef.attach(new re.C5(Rs));e.instance.tier=this.tooltipTier,e.instance.differenceTier=this.tooltipDifferenceTier,e.instance.stat=this.tooltipStat}}hide(){this.closeToolTip()}ngOnDestroy(){this.closeToolTip()}closeToolTip(){this._overlayRef&&this._overlayRef.detach()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Jt.aV),t.Y36(Jt.wJ),t.Y36(t.SBq))},n.\u0275dir=t.lG2({type:n,selectors:[["","statCooldownTooltip",""]],hostBindings:function(e,o){1&e&&t.NdJ("mouseenter",function(){return o.show()})("mouseleave",function(){return o.hide()})},inputs:{showToolTip:"showToolTip",tooltipTier:"tooltipTier",tooltipStat:"tooltipStat",tooltipDifferenceTier:"tooltipDifferenceTier",contentTemplate:"contentTemplate"}}),n})();function qs(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-button-toggle",5),t.NdJ("click",function(){const s=t.CHM(e).index,r=t.oxw(2);return t.KtG(r.setValue(s))}),t.TgZ(1,"div",6),t._uU(2),t.qZA()()}if(2&n){const e=i.index,o=t.oxw(2);t.ekj("isFromMod",o.isAddedByConfigMods(e))("mat-button-toggle-checked",o.selectedTier>=e)("not-checked",o.selectedTier{class n{constructor(){this.TierRange=new Array(11),this.allowExactStats=!1,this.stat=c.WB.Mobility,this.statsByMods=0,this.maximumAvailableTier=10,this.selectedTier=0,this.locked=!1,this.selectedTierChange=new t.vpe,this.lockedChange=new t.vpe}setValue(e){e<=this.maximumAvailableTier&&(this.selectedTier=e,this.selectedTierChange.emit(e))}setValueMob(e){let o=parseInt(e.target.value);o=Math.min(Math.max(o,0),100),this.setValue(o/10)}isAddedByConfigMods(e){return e>0&&(this.selectedTier-e>=0&&this.selectedTier-e{class n{constructor(e,o){this.config=e,this.inventory=o,this.minimumStatTiers=H(1),this.maximumPossibleTiers=[10,10,10,10,10,10],this.statsByMods=[0,0,0,0,0,0],this._statCombo4x100=[],this._statCombo3x100=[],this.config_zero_waste=!1,this.config_mod_strategy=X.w.None,this.config_reduce_waste=!1,this.config_allowExactStats=!1,this.ngUnsubscribe=new R.xQ,this.stats=Object.keys(c.WB).filter(a=>!isNaN(Number(a))).map(a=>({name:c.WB[a],value:+a}))}ngOnInit(){this.config.configuration.pipe((0,Ct.R)(this.ngUnsubscribe)).subscribe(e=>{const o=[0,0,0,0,0,0];for(let a of e.enabledMods)for(let s of N.F[a].bonus)o[s.stat]+=s.value/10;this.statsByMods=o,this.minimumStatTiers=e.minimumStatTiers,this.config_zero_waste=e.onlyShowResultsWithNoWastedStats,this.config_mod_strategy=e.modOptimizationStrategy,this.config_reduce_waste=e.tryLimitWastedStats,this.config_allowExactStats=e.allowExactStats}),this.inventory.armorResults.pipe((0,Ct.R)(this.ngUnsubscribe)).subscribe(e=>{const o=e.maximumPossibleTiers||[10,10,10,10,10,10];console.log("d.maximumPossibleTiers",o),o.filter(a=>0==a).length<6&&(this.maximumPossibleTiers=o),this._statCombo3x100=(e.statCombo3x100||[]).sort((a,s)=>Se(s)-Se(a)),this._statCombo4x100=e.statCombo4x100||[]})}setSelectedTier(e,o){this.config.modifyConfiguration(a=>{a.minimumStatTiers[e].value=o})}clearStatSelection(){this.config.modifyConfiguration(e=>{for(let o=0;o<6;o++)e.minimumStatTiers[o]={fixed:!1,value:0}})}useStatPreset(e){0!=e.filter(o=>10!=this.config.readonlyConfigurationSnapshot.minimumStatTiers[o].value).length&&this.config.modifyConfiguration(o=>{for(let a of e)o.minimumStatTiers[a].value=10})}setLockState(e,o){this.config.modifyConfiguration(a=>{a.minimumStatTiers[e].fixed=o})}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}setModOptimizationStrategy(){this.config.modifyConfiguration(e=>{e.modOptimizationStrategy=this.config_mod_strategy})}toggleReduceWaste(){this.config.modifyConfiguration(e=>{e.tryLimitWastedStats=!this.config_reduce_waste})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(tt),t.Y36(bt))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-desired-stat-selection"]],decls:43,vars:12,consts:[[4,"ngFor","ngForOf"],["id","tierSelectButtonContainer"],[1,"tierSelectButton"],["mat-stroked-button","","color","warn","id","clearStatButton",3,"click"],["mat-stroked-button","","aria-label","Select builds with three stats at tier 10.",1,"selectStatDistributionButton",3,"matMenuTriggerFor","disabled"],["menu",""],["menu1","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-stroked-button","","aria-label","Select builds with four stats at tier 10.",3,"matMenuTriggerFor","disabled"],["menu2","matMenu"],[3,"ngModel","ngModelChange","change"],["matTooltip","Fast. Will result in good and fast results. Some better results *may* be skipped.",3,"value"],["matTooltip","Slower. Reduces the amount of used mods. This means that it will try to give you 4 mods instead of 5 whenever possible.",3,"value"],["matTooltip","Slower. Reduces the total cost of mods. This will result in less Intellect mods, for example.",3,"value"],["color","primary",3,"checked","change"],[1,"statContainerWrapper"],["src","https://www.bungie.net/common/destiny2_content/icons/e26e0e93a9daf4fdd21bf64eb9246340.png","alt","Mobility","class","dialogStatIcon",4,"ngIf"],["src","https://www.bungie.net/common/destiny2_content/icons/202ecc1c6febeb6b97dafc856e863140.png","alt","Resilience","class","dialogStatIcon",4,"ngIf"],["src","https://www.bungie.net/common/destiny2_content/icons/128eee4ee7fc127851ab32eac6ca91cf.png","alt","Recovery","class","dialogStatIcon",4,"ngIf"],["src","https://www.bungie.net/common/destiny2_content/icons/79be2d4adef6a19203f7385e5c63b45b.png","alt","Discipline","class","dialogStatIcon",4,"ngIf"],["src","https://www.bungie.net/common/destiny2_content/icons/d1c154469670e9a592c9d4cbdcae5764.png","alt","Intellect","class","dialogStatIcon",4,"ngIf"],["src","https://www.bungie.net/common/destiny2_content/icons/ea5af04ccd6a3470a44fd7bb0f66e2f7.png","alt","Strength","class","dialogStatIcon",4,"ngIf"],[3,"stat","allowExactStats","statsByMods","maximumAvailableTier","selectedTier","locked","selectedTierChange","lockedChange"],["src","https://www.bungie.net/common/destiny2_content/icons/e26e0e93a9daf4fdd21bf64eb9246340.png","alt","Mobility",1,"dialogStatIcon"],["src","https://www.bungie.net/common/destiny2_content/icons/202ecc1c6febeb6b97dafc856e863140.png","alt","Resilience",1,"dialogStatIcon"],["src","https://www.bungie.net/common/destiny2_content/icons/128eee4ee7fc127851ab32eac6ca91cf.png","alt","Recovery",1,"dialogStatIcon"],["src","https://www.bungie.net/common/destiny2_content/icons/79be2d4adef6a19203f7385e5c63b45b.png","alt","Discipline",1,"dialogStatIcon"],["src","https://www.bungie.net/common/destiny2_content/icons/d1c154469670e9a592c9d4cbdcae5764.png","alt","Intellect",1,"dialogStatIcon"],["src","https://www.bungie.net/common/destiny2_content/icons/ea5af04ccd6a3470a44fd7bb0f66e2f7.png","alt","Strength",1,"dialogStatIcon"],["mat-menu-item","",3,"click"],["class","statContainerWrapper",4,"ngFor","ngForOf"]],template:function(e,o){if(1&e&&(t.TgZ(0,"table"),t.YNc(1,zs,12,13,"tr",0),t.qZA(),t.TgZ(2,"span",1)(3,"span",2)(4,"button",3),t.NdJ("click",function(){return o.clearStatSelection()}),t._uU(5,"Clear"),t.qZA()(),t.TgZ(6,"span",2)(7,"button",4)(8,"mat-icon"),t._uU(9,"expand_more"),t.qZA(),t._uU(10," Select 3x T10 Builds "),t.qZA(),t.TgZ(11,"mat-menu",5,6),t.YNc(13,ir,2,1,"button",7),t.qZA()(),t.TgZ(14,"span",2)(15,"button",8)(16,"mat-icon"),t._uU(17,"expand_more"),t.qZA(),t._uU(18," Select 4x T10 Builds "),t.qZA(),t.TgZ(19,"mat-menu",null,9),t.YNc(21,ur,2,1,"button",7),t.qZA()()(),t._UZ(22,"br")(23,"br"),t.TgZ(24,"div")(25,"div")(26,"b"),t._uU(27,"Mod optimization strategy:"),t.qZA()(),t.TgZ(28,"div"),t._uU(29,"You can choose if the algorithm should keep an eye on amount or the cost of mods."),t.qZA(),t.TgZ(30,"div"),t._uU(31,"These settings are extremely expensive when paired with the reduced waste feature."),t.qZA(),t.TgZ(32,"mat-button-toggle-group",10),t.NdJ("ngModelChange",function(s){return o.config_mod_strategy=s})("change",function(){return o.setModOptimizationStrategy()}),t.TgZ(33,"mat-button-toggle",11),t._uU(34,"No extra logic (fast)"),t.qZA(),t.TgZ(35,"mat-button-toggle",12),t._uU(36,"Fewer mods, high cost (slow)"),t.qZA(),t.TgZ(37,"mat-button-toggle",13),t._uU(38,"Many mods, low cost (slow)"),t.qZA()()(),t._UZ(39,"br"),t.TgZ(40,"div")(41,"mat-slide-toggle",14),t.NdJ("change",function(){return o.toggleReduceWaste()}),t._uU(42," Add mods to reduce wasted stats (slower) "),t.qZA()()),2&e){const a=t.MAs(12),s=t.MAs(20);t.xp6(1),t.Q6J("ngForOf",o.stats),t.xp6(6),t.Q6J("matMenuTriggerFor",a)("disabled",0===o._statCombo3x100.length),t.xp6(6),t.Q6J("ngForOf",o._statCombo3x100),t.xp6(2),t.Q6J("matMenuTriggerFor",s)("disabled",0===o._statCombo4x100.length),t.xp6(6),t.Q6J("ngForOf",o._statCombo4x100),t.xp6(11),t.Q6J("ngModel",o.config_mod_strategy),t.xp6(1),t.Q6J("value",0),t.xp6(2),t.Q6J("value",1),t.xp6(2),t.Q6J("value",2),t.xp6(4),t.Q6J("checked",o.config_reduce_waste)}},dependencies:[Z.sg,Z.O5,wt.JJ,wt.On,st.lW,ee.Rr,ut.gM,Zt.Hw,Kt.VK,Kt.OP,Kt.p6,Dt.A9,Dt.Yi,Bs],styles:["#tierSelectButtonContainer[_ngcontent-%COMP%] > .tierSelectButton[_ngcontent-%COMP%]:not(:last-child){margin-right:5px}.dialogStatIcon[_ngcontent-%COMP%]{height:35px}.warn[_ngcontent-%COMP%]{background-color:#8b0000;padding-left:15px;padding-right:15px}"]}),n})();function gr(n,i){if(1&n&&(t.TgZ(0,"div",4,5),t._UZ(2,"img",6),t.TgZ(3,"span",7),t._uU(4),t.qZA()()),2&n){const e=t.oxw().ngVar,o=t.oxw();t.xp6(2),t.Q6J("src",o.artificeUrl,t.LSH),t.xp6(2),t.hij("\xd7",e,"")}}function _r(n,i){if(1&n&&(t.ynx(0),t.YNc(1,gr,5,2,"div",3),t.BQk()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function fr(n,i){if(1&n&&(t.TgZ(0,"div",9,5),t._UZ(2,"img",10),t.TgZ(3,"span",11),t._uU(4),t.qZA()()),2&n){const e=t.oxw().ngVar,o=t.oxw().$implicit,a=t.oxw().$implicit,s=t.oxw();t.Q6J("matTooltip",s.getStatName(a)),t.xp6(2),t.Gre("modIcon modIcon_",s.getStatName(a),""),t.ekj("minor",1===o),t.Q6J("src",s.ModUrl[o+3*a],t.LSH),t.xp6(1),t.ekj("minor",1===o),t.xp6(1),t.hij("\xd7",e,"")}}function hr(n,i){if(1&n&&(t.ynx(0),t.YNc(1,fr,5,10,"div",8),t.BQk()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0)}}function xr(n,i){if(1&n&&(t.ynx(0),t.YNc(1,hr,2,1,"ng-container",1),t.ALo(2,"count"),t.BQk()),2&n){const e=i.$implicit,o=t.oxw().$implicit,a=t.oxw();t.xp6(1),t.Q6J("ngVar",t.xi3(2,1,a.mods,e+3*o))}}function yr(n,i){if(1&n&&(t.ynx(0),t.YNc(1,xr,3,4,"ng-container",2),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.modTypeIndex)}}const Ie={[c.iV.MINOR_MOBILITY]:"https://www.bungie.net/common/destiny2_content/icons/a5d9a778feddb2a9036588490a4818b0.png",[c.iV.MAJOR_MOBILITY]:"https://www.bungie.net/common/destiny2_content/icons/db4b34c79c834d3cf36b592c688ed22d.png",[c.iV.ARTIFICE_MOBILITY]:"https://www.bungie.net/common/destiny2_content/icons/a5d9a778feddb2a9036588490a4818b0.png",[c.iV.MINOR_RESILIENCE]:"https://www.bungie.net/common/destiny2_content/icons/1b4eec255df03ae088db1eb251654316.png",[c.iV.MAJOR_RESILIENCE]:"https://www.bungie.net/common/destiny2_content/icons/db6c438e9ff1a21b03a1f0488560e6a3.png",[c.iV.ARTIFICE_RESILIENCE]:"https://www.bungie.net/common/destiny2_content/icons/1b4eec255df03ae088db1eb251654316.png",[c.iV.MINOR_RECOVERY]:"https://www.bungie.net/common/destiny2_content/icons/51d46295defdf93d77a62e3e895df5cd.png",[c.iV.MAJOR_RECOVERY]:"https://www.bungie.net/common/destiny2_content/icons/f42cc43389f147d25f0ee2946f1ff1bd.png",[c.iV.ARTIFICE_RECOVERY]:"https://www.bungie.net/common/destiny2_content/icons/51d46295defdf93d77a62e3e895df5cd.png",[c.iV.MINOR_DISCIPLINE]:"https://www.bungie.net/common/destiny2_content/icons/9ba335d570610d1ae9cffa071d5bcb8e.png",[c.iV.MAJOR_DISCIPLINE]:"https://www.bungie.net/common/destiny2_content/icons/e54f6af6a4577e4d66396e5285bb73c0.png",[c.iV.ARTIFICE_DISCIPLINE]:"https://www.bungie.net/common/destiny2_content/icons/9ba335d570610d1ae9cffa071d5bcb8e.png",[c.iV.MINOR_INTELLECT]:"https://www.bungie.net/common/destiny2_content/icons/a8808e7528b16474f8c9c65b4e53b52b.png",[c.iV.MAJOR_INTELLECT]:"https://www.bungie.net/common/destiny2_content/icons/2399dff2dc6952ea65c2b8c594d00658.png",[c.iV.ARTIFICE_INTELLECT]:"https://www.bungie.net/common/destiny2_content/icons/a8808e7528b16474f8c9c65b4e53b52b.png",[c.iV.MINOR_STRENGTH]:"https://www.bungie.net/common/destiny2_content/icons/6b45221fccade87ee39f3a03efc6e9b9.png",[c.iV.MAJOR_STRENGTH]:"https://www.bungie.net/common/destiny2_content/icons/66714f030b79a1517c657f1378216cca.png",[c.iV.ARTIFICE_STRENGTH]:"https://www.bungie.net/common/destiny2_content/icons/6b45221fccade87ee39f3a03efc6e9b9.png"};let Tr=(()=>{class n{constructor(){this.artificeUrl=c.X9[c.Pn.SlotArtifice],this.modIndex=[0,1,2,3,4,5],this.modTypeIndex=[1,2],this.ModUrl=Ie,this.mods=[],this.artifice=[]}getStatName(e){return c.Mi[e]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-table-mod-display"]],inputs:{mods:"mods",artifice:"artifice"},decls:4,vars:4,consts:[[1,"row-mod"],[4,"ngVar"],[4,"ngFor","ngForOf"],["class","container","matTooltip","Artifice",4,"ngIf"],["matTooltip","Artifice",1,"container"],["tooltip","matTooltip"],[1,"artificeIcon","artifice",3,"src"],[1,"modText","artifice"],["class","container",3,"matTooltip",4,"ngIf"],[1,"container",3,"matTooltip"],[3,"src"],[1,"modText"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t.YNc(1,_r,2,1,"ng-container",1),t.ALo(2,"count"),t.YNc(3,yr,2,1,"ng-container",2),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngVar",t.lcZ(2,2,o.artifice)),t.xp6(2),t.Q6J("ngForOf",o.modIndex))},dependencies:[Z.sg,Z.O5,ut.gM,zt,ve],styles:[".container[_ngcontent-%COMP%]{display:inline-block;width:32px;height:30px;position:relative}.modIcon[_ngcontent-%COMP%]{position:absolute;top:-12px;left:-12px;width:50px;height:50px;filter:contrast(2.3);border:#00000000 solid 2px;-webkit-mask-image:url(modmask.f03dde91561a62d6.svg);mask-image:image(url(modmask.f03dde91561a62d6.svg),black)}.modIcon_Mobility[_ngcontent-%COMP%]{filter:contrast(2.3) sepia(100%) hue-rotate(0deg) brightness(100%) saturate(320%)}.modIcon_Resilience[_ngcontent-%COMP%]{filter:contrast(2.3) sepia(100%) hue-rotate(60deg) brightness(100%) saturate(320%)}.modIcon_Recovery[_ngcontent-%COMP%]{filter:contrast(2.3) sepia(100%) hue-rotate(120deg) brightness(100%) saturate(320%)}.modIcon_Discipline[_ngcontent-%COMP%]{filter:contrast(2.3) sepia(100%) hue-rotate(180deg) brightness(100%) saturate(320%)}.modIcon_Intellect[_ngcontent-%COMP%]{filter:contrast(2.3) sepia(100%) hue-rotate(240deg) brightness(100%) saturate(320%)}.modIcon_Strength[_ngcontent-%COMP%]{filter:contrast(2.3) sepia(100%) hue-rotate(300deg) brightness(100%) saturate(320%)}.modIcon.minor[_ngcontent-%COMP%]{opacity:.8;scale:.75}.artificeIcon[_ngcontent-%COMP%]{height:28px;width:28px;filter:saturate(40) hue-rotate(40deg)}.selected[_ngcontent-%COMP%]{border:red solid 2px}[_nghost-%COMP%]{position:relative}.modText[_ngcontent-%COMP%]{position:absolute;text-shadow:0 0 6px #000000;font-size:smaller;color:#f5f5f5;bottom:-6px;right:-1px}"]}),n})();function Cr(n,i){if(1&n&&(t.TgZ(0,"div")(1,"div",22),t._UZ(2,"img",23)(3,"img",24),t.O4$(),t.TgZ(4,"svg",25)(5,"text",26),t._uU(6,"3"),t.qZA()(),t.TgZ(7,"svg",27)(8,"text",26),t._uU(9,"1"),t.qZA()(),t.kcU(),t._UZ(10,"div",28),t.qZA(),t.TgZ(11,"div",22),t._UZ(12,"img",23)(13,"img",24),t.O4$(),t.TgZ(14,"svg",25)(15,"text",26),t._uU(16,"4"),t.qZA()(),t.TgZ(17,"svg",27)(18,"text",26),t._uU(19,"2"),t.qZA()(),t.kcU(),t._UZ(20,"div",28),t.qZA(),t.TgZ(21,"div",22),t._UZ(22,"img",23)(23,"img",24),t.O4$(),t.TgZ(24,"svg",25)(25,"text",26),t._uU(26,"3"),t.qZA()(),t.TgZ(27,"svg",27)(28,"text",26),t._uU(29,"1"),t.qZA()(),t.kcU(),t._UZ(30,"div",28),t.qZA(),t.TgZ(31,"div",22),t._UZ(32,"img",23)(33,"img",24),t.O4$(),t.TgZ(34,"svg",25)(35,"text",26),t._uU(36,"3"),t.qZA()(),t.TgZ(37,"svg",27)(38,"text",26),t._uU(39,"1"),t.qZA()(),t.kcU(),t._UZ(40,"div",28),t.qZA(),t.TgZ(41,"div",22),t._UZ(42,"img",23)(43,"img",24),t.O4$(),t.TgZ(44,"svg",25)(45,"text",26),t._uU(46,"4"),t.qZA()(),t.TgZ(47,"svg",27)(48,"text",26),t._uU(49,"2"),t.qZA()(),t.kcU(),t._UZ(50,"div",28),t.qZA(),t.TgZ(51,"div",22),t._UZ(52,"img",23)(53,"img",24),t.O4$(),t.TgZ(54,"svg",25)(55,"text",26),t._uU(56,"4"),t.qZA()(),t.TgZ(57,"svg",27)(58,"text",26),t._uU(59,"2"),t.qZA()(),t.kcU(),t._UZ(60,"div",28),t.qZA()()),2&n){const e=i.ngVar,o=t.oxw();t.xp6(1),t.ekj("major",e>=3)("minor",e>=1&&e<3),t.xp6(1),t.Q6J("src",o.ModUrls[o.StatModifier.MAJOR_MOBILITY],t.LSH),t.xp6(1),t.Q6J("src",o.ModUrls[o.StatModifier.MINOR_MOBILITY],t.LSH),t.xp6(8),t.ekj("major",e>=4)("minor",e>=2&&e<4),t.xp6(1),t.Q6J("src",o.ModUrls[o.StatModifier.MAJOR_RESILIENCE],t.LSH),t.xp6(1),t.Q6J("src",o.ModUrls[o.StatModifier.MINOR_RESILIENCE],t.LSH),t.xp6(8),t.ekj("major",e>=3)("minor",e>=1&&e<3),t.xp6(1),t.Q6J("src",o.ModUrls[o.StatModifier.MAJOR_DISCIPLINE],t.LSH),t.xp6(1),t.Q6J("src",o.ModUrls[o.StatModifier.MINOR_DISCIPLINE],t.LSH),t.xp6(8),t.ekj("major",e>=3)("minor",e>=1&&e<3),t.xp6(1),t.Q6J("src",o.ModUrls[o.StatModifier.MAJOR_STRENGTH],t.LSH),t.xp6(1),t.Q6J("src",o.ModUrls[o.StatModifier.MINOR_STRENGTH],t.LSH),t.xp6(8),t.ekj("major",e>=4)("minor",e>=2&&e<4),t.xp6(1),t.Q6J("src",o.ModUrls[o.StatModifier.MAJOR_RECOVERY],t.LSH),t.xp6(1),t.Q6J("src",o.ModUrls[o.StatModifier.MINOR_RECOVERY],t.LSH),t.xp6(8),t.ekj("major",e>=4)("minor",e>=2&&e<4),t.xp6(1),t.Q6J("src",o.ModUrls[o.StatModifier.MAJOR_INTELLECT],t.LSH),t.xp6(1),t.Q6J("src",o.ModUrls[o.StatModifier.MINOR_INTELLECT],t.LSH)}}function br(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-button-toggle",29),t.NdJ("click",function(){const s=t.CHM(e).index,r=t.oxw();return t.KtG(r.setValue(s))}),t._uU(1),t.qZA()}if(2&n){const e=i.index,o=t.oxw();t.Gre("select-button ",o.selection>=e?"mat-button-toggle-checked":"",""),t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function vr(n,i){1&n&&(t.TgZ(0,"mat-icon"),t._uU(1,"lock_open"),t.qZA())}function Ar(n,i){1&n&&(t.TgZ(0,"mat-icon"),t._uU(1,"lock"),t.qZA())}function wr(n,i){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"button",30),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.setArmorPerk(s))}),t._UZ(2,"app-armor-perk-icon",31),t.TgZ(3,"span",32),t._uU(4),t.qZA()(),t.BQk()}if(2&n){const e=i.$implicit,o=t.oxw();t.xp6(1),t.ekj("selected-menu",e===o.armorPerk),t.xp6(1),t.Q6J("perk",e),t.xp6(2),t.Oqu(o.ArmorPerkOrSlotNames[e])}}function Sr(n,i){if(1&n&&t._UZ(0,"img",33,34),2&n){const e=t.oxw();t.MGl("matTooltip","If you enable the lock on the settings on the right they will be forced to exist on a ",e.slotName,".")}}function Ir(n,i){if(1&n&&t._UZ(0,"img",35,34),2&n){const e=t.oxw();t.MGl("matTooltip","If you enable the lock on the settings on the right they will be forced to exist on a ",e.slotName,".")}}function Zr(n,i){if(1&n&&t._UZ(0,"img",36,34),2&n){const e=t.oxw();t.MGl("matTooltip","If you enable the lock on the settings on the right they will be forced to exist on a ",e.slotName,".")}}function Or(n,i){if(1&n&&t._UZ(0,"img",37,34),2&n){const e=t.oxw();t.MGl("matTooltip","If you enable the lock on the settings on the right they will be forced to exist on a ",e.slotName,".")}}function Mr(n,i){if(1&n&&t._UZ(0,"img",38,34),2&n){const e=t.oxw();t.MGl("matTooltip","If you enable the lock on the settings on the right they will be forced to exist on a ",e.slotName,".")}}let kr=(()=>{class n{constructor(e,o,a,s){this.config=e,this.inventory=o,this.iconService=a,this.db=s,this.featureDisabled=!h.N.featureFlags.enableModslotLimitation,this.ModUrls=Ie,this.StatModifier=c.iV,this.ArmorSlot=b.y,this.ArmorPerkOrSlotNames=c.cM,this.ArmorPerkOrSlot=c.Pn,this.ModRange=new Array(D.Qj+1),this.selection=D.Qj,this.slot=b.y.ArmorSlotHelmet,this.possible=new t.vpe,this.fixedExoticInThisSlot=!1,this.isPossible=!0,this.configSelectedClass=0,this.configAssumeLegendaryIsArtifice=!1,this.configSelectedExoticSum=0,this.configSelectedExotic=[],this.configAssumeClassItemIsArtifice=!1,this.configAssumeExoticIsArtifice=!1,this.armorPerk=c.Pn.None,this.armorPerkLock=!1,this.maximumModSlots=5,this.hoveredSlot=-1,this.disabled=!1,this.availableArmorPerks=[c.Pn.None,c.Pn.SlotSalvationsEdge,c.Pn.SlotCrotasEnd,c.Pn.SlotRootOfNightmares,c.Pn.SlotKingsFall,c.Pn.SlotVowOfTheDisciple,c.Pn.SlotVaultOfGlass,c.Pn.SlotDeepStoneCrypt,c.Pn.SlotGardenOfSalvation,c.Pn.SlotLastWish,c.Pn.SlotArtifice,c.Pn.PerkEchoesOfGlory,c.Pn.PerkIronBanner,c.Pn.SlotNightmare],this.ngUnsubscribe=new R.xQ}runPossibilityCheck(){var e=this;return(0,T.Z)(function*(){if(e.configAssumeLegendaryIsArtifice||e.slot==b.y.ArmorSlotClass&&e.configAssumeClassItemIsArtifice)e.isPossible=!0;else{let a=0;e.armorPerkLock&&e.armorPerk!=c.Pn.None?e.fixedExoticInThisSlot?e.armorPerk==c.Pn.SlotArtifice&&e.configAssumeExoticIsArtifice?a+=1:e.configSelectedExotic.forEach(function(){var s=(0,T.Z)(function*(r){var d=yield e.db.inventoryArmor.where("clazz").equals(e.configSelectedClass).and(p=>p.perk==e.armorPerk).and(p=>p.hash==r).and(p=>1==p.isExotic).count();a+=d,e.isPossible=a>0,e.possible.next(e.isPossible)});return function(r){return s.apply(this,arguments)}}()):(a+=(yield e.db.inventoryArmor.where("clazz").equals(e.configSelectedClass).and(s=>0==e.configSelectedExoticSum||0==s.isExotic).and(s=>s.slot==e.slot).and(s=>s.perk==e.armorPerk).count()),e.isPossible=a>0):e.isPossible=!0}e.possible.next(e.isPossible)})()}get slotName(){switch(this.slot){case b.y.ArmorSlotHelmet:return"Helmet";case b.y.ArmorSlotGauntlet:return"Gauntlet";case b.y.ArmorSlotChest:return"Chest";case b.y.ArmorSlotLegs:return"Leg";case b.y.ArmorSlotClass:return"Class Item";default:return""}}ngOnInit(){var e=this;this.config.configuration.pipe((0,Ct.R)(this.ngUnsubscribe)).subscribe(function(){var o=(0,T.Z)(function*(a){const s=a.selectedExotics.reduce((d,p)=>d+p,0);var r=e.configSelectedClass!=a.characterClass||e.configAssumeLegendaryIsArtifice!=a.assumeEveryLegendaryIsArtifice||e.configAssumeExoticIsArtifice!=a.assumeEveryExoticIsArtifice||e.configAssumeClassItemIsArtifice!=a.assumeClassItemIsArtifice||e.selection!=a.maximumModSlots[e.slot].value||e.armorPerk!=a.armorPerks[e.slot].value||e.armorPerkLock!=a.armorPerks[e.slot].fixed||e.configSelectedExoticSum!=s||e.maximumModSlots!=a.maximumModSlots[e.slot].value;e.configAssumeLegendaryIsArtifice=a.assumeEveryLegendaryIsArtifice,e.configAssumeExoticIsArtifice=a.assumeEveryExoticIsArtifice,e.configAssumeClassItemIsArtifice=a.assumeClassItemIsArtifice,e.configSelectedClass=a.characterClass,e.selection=a.maximumModSlots[e.slot].value,e.armorPerk=a.armorPerks[e.slot].value,e.armorPerkLock=a.armorPerks[e.slot].fixed,e.maximumModSlots=a.maximumModSlots[e.slot].value,e.configSelectedExoticSum=s,e.configSelectedExotic=a.selectedExotics,e.fixedExoticInThisSlot=(yield e.inventory.getExoticsForClass(a.characterClass)).filter(d=>a.selectedExotics.indexOf(d.item.hash)>-1).map(d=>d.item.slot).indexOf(e.slot)>-1,r&&(yield e.runPossibilityCheck())});return function(a){return o.apply(this,arguments)}}())}ngAfterViewInit(){h.N.featureFlags.enableGuardianGamesFeatures&&this.slot===b.y.ArmorSlotClass&&this.availableArmorPerks.splice(1,0,c.Pn.GuardianGamesClassItem)}toggleArmorPerkLock(){this.config.modifyConfiguration(e=>{e.armorPerks[this.slot].fixed=!e.armorPerks[this.slot].fixed})}setArmorPerk(e){this.armorPerk!=e&&this.config.modifyConfiguration(o=>{o.armorPerks[this.slot].value=e})}setValue(e){this.featureDisabled||this.maximumModSlots!=e&&(this.maximumModSlots=e,this.config.modifyConfiguration(o=>o.maximumModSlots[this.slot].value=e))}getStatIconUrl(e){var o=this;return(0,T.Z)(function*(){return(yield o.iconService.getItemCached(e))?.icon})()}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(tt),t.Y36(bt),t.Y36(pe),t.Y36(S))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-slot-limitation-selection"]],inputs:{slot:"slot"},outputs:{possible:"possible"},decls:35,vars:58,consts:[[1,"container"],[1,"energy"],[1,"energy-container",3,"mouseout"],[1,"energy-bar","blocked",3,"click","mouseover"],[1,"energy-bar",3,"click","mouseover"],[4,"ngVar"],["appearance","standard","name","fontStyle",2,"display","none"],[3,"value","class","click",4,"ngFor","ngForOf"],[1,"selector-slots"],["value","bold",3,"matMenuTriggerFor"],[3,"perk"],["disabled","",3,"disabled","matTooltip","click"],[4,"ngIf"],[1,"modslot-select-scroll-menu"],["dropdownArmorModslot","matMenu"],[4,"ngFor","ngForOf"],[1,"slot-icon-container"],["class","slot-icon","src","data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 51 51'%3e%3cpath d='M24.77 7.03c-8.15.38-14.42 7.41-14.42 15.57v16.06c0 .23.13.44.34.53l10.33 4.68c.78.35 1.66-.22 1.66-1.07V31.9c0-.39-.19-.75-.52-.97l-5.39-3.64c-.87-.52-1.43-1.5-1.34-2.61.13-1.46 1.46-2.52 2.93-2.52h4.36c.65 0 1.17.53 1.17 1.17v6.71s0 .61 1.61.61 1.61-.61 1.61-.61v-6.71c0-.65.52-1.17 1.17-1.17h4.36c1.47 0 2.8 1.06 2.93 2.52.1 1.11-.47 2.09-1.34 2.61l-5.39 3.64c-.32.22-.52.58-.52.97v10.91c0 .85.88 1.42 1.66 1.07l10.33-4.68c.21-.1.34-.3.34-.53v-16.5c.01-8.61-7.18-15.55-15.88-15.14z'/%3e%3c/svg%3e",3,"matTooltip",4,"ngIf"],["class","slot-icon","src","data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 51 51'%3e%3cpath d='M40.1 30.03c.39-.47.59-1.11.42-1.8-.18-.76-.81-1.39-1.58-1.55-.81-.17-1.54.14-2.01.68 0 0-.03.04-.05.07l-.12.15c-.47.61-1.95 2.37-3.29 2.45-1.62.1 2.51-16.14 2.51-16.14h-.01c.04-.15.07-.31.07-.48 0-.98-.79-1.77-1.77-1.77-.81 0-1.49.55-1.69 1.29h-.01s-.01.03-.01.05l-.03.15c-.24 1.21-1.68 8.2-2.81 8.89-1.24.75-1.22-13.23-1.22-13.23 0-.98-.79-1.77-1.77-1.77s-1.77.79-1.77 1.77c0 0-.35 12.85-1.73 12.73-1.37-.12-2.47-10.67-2.47-10.67 0-.98-.79-1.77-1.77-1.77s-1.77.79-1.77 1.77c0 .15.02.28.06.42.27 2.06 1.36 11.12-.06 11.12-1.6 0-3.68-6.35-3.68-6.35a1.62 1.62 0 0 0-3.14.56c0 .09.01.17.03.25l-.03.01s.02.07.07.19c.02.09.05.17.09.25.99 2.71 6.28 17.46 7.26 26.23.03.25.24.44.49.44H30.5a.5.5 0 0 0 .5-.45c.1-1.04.52-3.68 2.09-5.54 1.8-2.14 6.06-6.89 6.86-7.79.02-.02.03-.04.05-.06.07-.06.11-.1.1-.1z'/%3e%3c/svg%3e",3,"matTooltip",4,"ngIf"],["class","slot-icon","src","data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 51 51'%3e%3cpath d='M42.49 13.55c-1.06-1.51-4.05-5.05-9.52-6.49a.635.635 0 0 0-.78.5c-.35 2.04-1.78 8.08-6.69 8.08s-6.34-6.04-6.69-8.08a.635.635 0 0 0-.78-.5c-5.47 1.44-8.46 4.98-9.52 6.49-.24.34-.09.8.3.94 2.01.7 7.34 2.94 7.34 7.01 0 4.24-4.47 6.89-5.87 7.61-.25.13-.38.4-.33.67 1.44 7.62 7.55 13.09 8.67 14.04.11.1.25.15.4.15h12.94c.15 0 .29-.05.4-.15 1.12-.95 7.23-6.42 8.67-14.04a.624.624 0 0 0-.33-.67c-1.4-.72-5.87-3.37-5.87-7.61 0-4.08 5.33-6.32 7.34-7.01.41-.14.56-.61.32-.94z'/%3e%3c/svg%3e",3,"matTooltip",4,"ngIf"],["class","slot-icon","src","data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 51 51'%3e%3cpath d='M13 7.6h13.96c1.73 0 2.99 1.64 2.54 3.32l-5.44 20.46c-.07.28.03.57.28.72.99.62 4.64 2.57 8.15 5.78.12.11 2.92-.03 3.09-.01 2.31.2 3.97-.08 5.05 4.7.09.42-.21.82-.64.82H11.82c-.34 0-.63-.26-.66-.61-.15-1.82-.4-7.23 1.74-9.32a.62.62 0 0 0 .2-.6c-.39-1.74-2.09-9.83-2.74-22.48-.07-1.5 1.12-2.78 2.64-2.78z'/%3e%3c/svg%3e",3,"matTooltip",4,"ngIf"],["class","slot-icon","src","data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 51 51'%3e%3cpath d='M43.12 7.12c-4.13 2.33-17.62 1.9-17.62 1.9s-13.49.43-17.62-1.9c-.37-.21-.85-.03-.94.39-.36 1.49-.87 4.42.09 5.86.09.13.22.21.38.25 1.23.3 7.36 1.65 18.09 1.65s16.86-1.35 18.09-1.65c.15-.04.29-.12.38-.25.96-1.44.45-4.37.1-5.86-.1-.42-.58-.6-.95-.39zM9.27 28.34s0 2.34 2.27 2.34 2.27-2.34 2.27-2.34V15.73c-1.93-.22-3.45-.45-4.55-.65v13.26zM16.3 34.8s0 2.34 2.27 2.34 2.27-2.34 2.27-2.34V16.24c-1.66-.06-3.18-.16-4.55-.27V34.8zM37.18 28.34s0 2.34 2.27 2.34 2.27-2.34 2.27-2.34V15.08c-1.09.2-2.61.44-4.55.65v12.61zM30.15 34.8s0 2.34 2.27 2.34 2.27-2.34 2.27-2.34V15.97c-1.36.11-2.88.21-4.55.27V34.8zM23.23 16.31v25.31s0 2.34 2.27 2.34 2.27-2.34 2.27-2.34V16.31c-.74.01-1.49.02-2.27.02-.78.01-1.54 0-2.27-.02z'/%3e%3c/svg%3e",3,"matTooltip",4,"ngIf"],[1,"mod-info"],[1,"mod-icon","mod-major",3,"src"],[1,"mod-icon","mod-minor",3,"src"],["viewBox","0 0 100 100",1,"mod-number","mod-major"],["font-size","25px","text-anchor","end","x","87","y","30"],["viewBox","0 0 100 100",1,"mod-number","mod-minor"],[1,"overlay"],[3,"value","click"],["mat-menu-item","",3,"click"],[1,"menuArmorIcon",3,"perk"],[1,"menuArmorText"],["src","data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 51 51'%3e%3cpath d='M24.77 7.03c-8.15.38-14.42 7.41-14.42 15.57v16.06c0 .23.13.44.34.53l10.33 4.68c.78.35 1.66-.22 1.66-1.07V31.9c0-.39-.19-.75-.52-.97l-5.39-3.64c-.87-.52-1.43-1.5-1.34-2.61.13-1.46 1.46-2.52 2.93-2.52h4.36c.65 0 1.17.53 1.17 1.17v6.71s0 .61 1.61.61 1.61-.61 1.61-.61v-6.71c0-.65.52-1.17 1.17-1.17h4.36c1.47 0 2.8 1.06 2.93 2.52.1 1.11-.47 2.09-1.34 2.61l-5.39 3.64c-.32.22-.52.58-.52.97v10.91c0 .85.88 1.42 1.66 1.07l10.33-4.68c.21-.1.34-.3.34-.53v-16.5c.01-8.61-7.18-15.55-15.88-15.14z'/%3e%3c/svg%3e",1,"slot-icon",3,"matTooltip"],["tooltip","matTooltip"],["src","data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 51 51'%3e%3cpath d='M40.1 30.03c.39-.47.59-1.11.42-1.8-.18-.76-.81-1.39-1.58-1.55-.81-.17-1.54.14-2.01.68 0 0-.03.04-.05.07l-.12.15c-.47.61-1.95 2.37-3.29 2.45-1.62.1 2.51-16.14 2.51-16.14h-.01c.04-.15.07-.31.07-.48 0-.98-.79-1.77-1.77-1.77-.81 0-1.49.55-1.69 1.29h-.01s-.01.03-.01.05l-.03.15c-.24 1.21-1.68 8.2-2.81 8.89-1.24.75-1.22-13.23-1.22-13.23 0-.98-.79-1.77-1.77-1.77s-1.77.79-1.77 1.77c0 0-.35 12.85-1.73 12.73-1.37-.12-2.47-10.67-2.47-10.67 0-.98-.79-1.77-1.77-1.77s-1.77.79-1.77 1.77c0 .15.02.28.06.42.27 2.06 1.36 11.12-.06 11.12-1.6 0-3.68-6.35-3.68-6.35a1.62 1.62 0 0 0-3.14.56c0 .09.01.17.03.25l-.03.01s.02.07.07.19c.02.09.05.17.09.25.99 2.71 6.28 17.46 7.26 26.23.03.25.24.44.49.44H30.5a.5.5 0 0 0 .5-.45c.1-1.04.52-3.68 2.09-5.54 1.8-2.14 6.06-6.89 6.86-7.79.02-.02.03-.04.05-.06.07-.06.11-.1.1-.1z'/%3e%3c/svg%3e",1,"slot-icon",3,"matTooltip"],["src","data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 51 51'%3e%3cpath d='M42.49 13.55c-1.06-1.51-4.05-5.05-9.52-6.49a.635.635 0 0 0-.78.5c-.35 2.04-1.78 8.08-6.69 8.08s-6.34-6.04-6.69-8.08a.635.635 0 0 0-.78-.5c-5.47 1.44-8.46 4.98-9.52 6.49-.24.34-.09.8.3.94 2.01.7 7.34 2.94 7.34 7.01 0 4.24-4.47 6.89-5.87 7.61-.25.13-.38.4-.33.67 1.44 7.62 7.55 13.09 8.67 14.04.11.1.25.15.4.15h12.94c.15 0 .29-.05.4-.15 1.12-.95 7.23-6.42 8.67-14.04a.624.624 0 0 0-.33-.67c-1.4-.72-5.87-3.37-5.87-7.61 0-4.08 5.33-6.32 7.34-7.01.41-.14.56-.61.32-.94z'/%3e%3c/svg%3e",1,"slot-icon",3,"matTooltip"],["src","data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 51 51'%3e%3cpath d='M13 7.6h13.96c1.73 0 2.99 1.64 2.54 3.32l-5.44 20.46c-.07.28.03.57.28.72.99.62 4.64 2.57 8.15 5.78.12.11 2.92-.03 3.09-.01 2.31.2 3.97-.08 5.05 4.7.09.42-.21.82-.64.82H11.82c-.34 0-.63-.26-.66-.61-.15-1.82-.4-7.23 1.74-9.32a.62.62 0 0 0 .2-.6c-.39-1.74-2.09-9.83-2.74-22.48-.07-1.5 1.12-2.78 2.64-2.78z'/%3e%3c/svg%3e",1,"slot-icon",3,"matTooltip"],["src","data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 51 51'%3e%3cpath d='M43.12 7.12c-4.13 2.33-17.62 1.9-17.62 1.9s-13.49.43-17.62-1.9c-.37-.21-.85-.03-.94.39-.36 1.49-.87 4.42.09 5.86.09.13.22.21.38.25 1.23.3 7.36 1.65 18.09 1.65s16.86-1.35 18.09-1.65c.15-.04.29-.12.38-.25.96-1.44.45-4.37.1-5.86-.1-.42-.58-.6-.95-.39zM9.27 28.34s0 2.34 2.27 2.34 2.27-2.34 2.27-2.34V15.73c-1.93-.22-3.45-.45-4.55-.65v13.26zM16.3 34.8s0 2.34 2.27 2.34 2.27-2.34 2.27-2.34V16.24c-1.66-.06-3.18-.16-4.55-.27V34.8zM37.18 28.34s0 2.34 2.27 2.34 2.27-2.34 2.27-2.34V15.08c-1.09.2-2.61.44-4.55.65v12.61zM30.15 34.8s0 2.34 2.27 2.34 2.27-2.34 2.27-2.34V15.97c-1.36.11-2.88.21-4.55.27V34.8zM23.23 16.31v25.31s0 2.34 2.27 2.34 2.27-2.34 2.27-2.34V16.31c-.74.01-1.49.02-2.27.02-.78.01-1.54 0-2.27-.02z'/%3e%3c/svg%3e",1,"slot-icon",3,"matTooltip"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2),t.NdJ("mouseout",function(){return o.hoveredSlot=-1}),t.TgZ(3,"div",3),t.NdJ("click",function(){return o.setValue(5)})("mouseover",function(){return o.hoveredSlot=0}),t.qZA(),t.TgZ(4,"div",3),t.NdJ("click",function(){return o.setValue(5)})("mouseover",function(){return o.hoveredSlot=0}),t.qZA(),t.TgZ(5,"div",3),t.NdJ("click",function(){return o.setValue(5)})("mouseover",function(){return o.hoveredSlot=0}),t.qZA(),t.TgZ(6,"div",3),t.NdJ("click",function(){return o.setValue(5)})("mouseover",function(){return o.hoveredSlot=0}),t.qZA(),t.TgZ(7,"div",3),t.NdJ("click",function(){return o.setValue(5)})("mouseover",function(){return o.hoveredSlot=0}),t.qZA(),t.TgZ(8,"div",4),t.NdJ("click",function(){return o.setValue(4)})("mouseover",function(){return o.hoveredSlot=1}),t.qZA(),t.TgZ(9,"div",4),t.NdJ("click",function(){return o.setValue(3)})("mouseover",function(){return o.hoveredSlot=2}),t.qZA(),t.TgZ(10,"div",4),t.NdJ("click",function(){return o.setValue(2)})("mouseover",function(){return o.hoveredSlot=3}),t.qZA(),t.TgZ(11,"div",4),t.NdJ("click",function(){return o.setValue(1)})("mouseover",function(){return o.hoveredSlot=4}),t.qZA(),t.TgZ(12,"div",4),t.NdJ("click",function(){return o.setValue(0)})("mouseover",function(){return o.hoveredSlot=5}),t.qZA()(),t._UZ(13,"br"),t.YNc(14,Cr,61,36,"div",5),t.qZA(),t.TgZ(15,"mat-button-toggle-group",6),t.YNc(16,br,2,5,"mat-button-toggle",7),t.qZA(),t.TgZ(17,"div",8)(18,"mat-button-toggle-group")(19,"mat-button-toggle",9),t._UZ(20,"app-armor-perk-icon",10),t.TgZ(21,"mat-icon"),t._uU(22,"arrow_drop_down"),t.qZA()(),t.TgZ(23,"mat-button-toggle",11),t.NdJ("click",function(s){return o.toggleArmorPerkLock(),s.stopPropagation()}),t.YNc(24,vr,2,0,"mat-icon",12),t.YNc(25,Ar,2,0,"mat-icon",12),t.qZA()(),t.TgZ(26,"mat-menu",13,14),t.YNc(28,wr,5,4,"ng-container",15),t.qZA()(),t.TgZ(29,"span",16),t.YNc(30,Sr,2,1,"img",17),t.YNc(31,Ir,2,1,"img",18),t.YNc(32,Zr,2,1,"img",19),t.YNc(33,Or,2,1,"img",20),t.YNc(34,Mr,2,1,"img",21),t.qZA()()),2&e){const a=t.MAs(27);t.ekj("disabled",o.disabled),t.xp6(8),t.ekj("active",5-o.maximumModSlots>=1)("hovered-higher",o.hoveredSlot>-1&&o.hoveredSlot<1)("hovered",o.hoveredSlot>=1)("blocked",o.featureDisabled),t.xp6(1),t.ekj("active",5-o.maximumModSlots>=2)("hovered-higher",o.hoveredSlot>-1&&o.hoveredSlot<2)("hovered",o.hoveredSlot>=2)("blocked",o.featureDisabled),t.xp6(1),t.ekj("active",5-o.maximumModSlots>=3)("hovered-higher",o.hoveredSlot>-1&&o.hoveredSlot<3)("hovered",o.hoveredSlot>=3)("blocked",o.featureDisabled),t.xp6(1),t.ekj("active",5-o.maximumModSlots>=4)("hovered-higher",o.hoveredSlot>-1&&o.hoveredSlot<4)("hovered",o.hoveredSlot>=4)("blocked",o.featureDisabled),t.xp6(1),t.ekj("active",5-o.maximumModSlots==5)("hovered-higher",o.hoveredSlot>-1&&o.hoveredSlot<5)("hovered",5===o.hoveredSlot)("blocked",o.featureDisabled),t.xp6(2),t.Q6J("ngVar",o.hoveredSlot>-1?5-o.hoveredSlot:o.maximumModSlots),t.xp6(2),t.Q6J("ngForOf",o.ModRange),t.xp6(2),t.ekj("impossible",!o.isPossible),t.xp6(1),t.Q6J("matMenuTriggerFor",a),t.xp6(1),t.Q6J("perk",o.armorPerk),t.xp6(3),t.MGl("matTooltip","Force the selected perk or slot to be on a ",o.slotName,"."),t.Q6J("disabled",o.disabled),t.xp6(1),t.Q6J("ngIf",!o.armorPerkLock),t.xp6(1),t.Q6J("ngIf",o.armorPerkLock),t.xp6(3),t.Q6J("ngForOf",o.availableArmorPerks),t.xp6(2),t.Q6J("ngIf",o.slot===o.ArmorSlot.ArmorSlotHelmet),t.xp6(1),t.Q6J("ngIf",o.slot===o.ArmorSlot.ArmorSlotGauntlet),t.xp6(1),t.Q6J("ngIf",o.slot===o.ArmorSlot.ArmorSlotChest),t.xp6(1),t.Q6J("ngIf",o.slot===o.ArmorSlot.ArmorSlotLegs),t.xp6(1),t.Q6J("ngIf",o.slot===o.ArmorSlot.ArmorSlotClass)}},dependencies:[Z.sg,Z.O5,ut.gM,Zt.Hw,Kt.VK,Kt.OP,Kt.p6,Dt.A9,Dt.Yi,zt,_e],styles:[".slot-icon-container[_ngcontent-%COMP%]{float:right;position:relative}.slot-icon-container[_ngcontent-%COMP%] .slot-icon[_ngcontent-%COMP%]{height:30px;position:absolute;left:-30px;filter:invert(1) drop-shadow(1px 1px 3px rgba(0,0,0,.25))!important}.container[_ngcontent-%COMP%]{height:60px}.select-button[_ngcontent-%COMP%]{min-width:40px}.selector-element[_ngcontent-%COMP%]{position:relative;float:right;width:90px;height:70px;top:-21px}.selector-element[_ngcontent-%COMP%] .lock[_ngcontent-%COMP%]{position:absolute;bottom:2px;left:60px}.selector-element[_ngcontent-%COMP%] .element-list[_ngcontent-%COMP%]{float:left;width:70px;padding-left:5px}.selector-element[_ngcontent-%COMP%] .element-list[_ngcontent-%COMP%] .element-icon[_ngcontent-%COMP%]{border:rgba(0,0,0,0) solid 2px;height:26px;width:26px;margin-right:1px;margin-bottom:1px;margin-top:1px;cursor:pointer;filter:grayscale(.4)}.selector-element[_ngcontent-%COMP%] .element-list[_ngcontent-%COMP%] .element-icon[_ngcontent-%COMP%]:hover{filter:grayscale(.2)}.selector-element[_ngcontent-%COMP%] .element-list[_ngcontent-%COMP%] .element-icon.selected[_ngcontent-%COMP%]{filter:grayscale(0)}[_nghost-%COMP%] .selector-slots .mat-button-toggle{background-color:inherit}.modslot-selection[_ngcontent-%COMP%]{width:180px}.selector-slots[_ngcontent-%COMP%]{position:relative;float:right;top:-10px}.selector-slots[_ngcontent-%COMP%] .lock[_ngcontent-%COMP%]{position:absolute;bottom:2px;left:140px}.selector-slots[_ngcontent-%COMP%] .element-list[_ngcontent-%COMP%]{float:left;height:70px;width:175px;padding-left:5px}.selector-slots[_ngcontent-%COMP%] .element-list[_ngcontent-%COMP%] .element-icon[_ngcontent-%COMP%]{height:30px;width:30px;border:rgba(0,0,0,0) solid 2px;margin-right:1px;margin-top:-2px;cursor:pointer}.selector-slots[_ngcontent-%COMP%] .element-list[_ngcontent-%COMP%] .element-icon.disabled[_ngcontent-%COMP%]{opacity:.5;cursor:default;border:rgba(0,0,0,0) solid 2px!important}.impossible[_ngcontent-%COMP%]{background-color:#ff00004d;cursor:help}.left_line[_ngcontent-%COMP%]{pointer-events:none;height:15px;width:100%;border-left:1px solid white;border-bottom:1px solid white;position:absolute;bottom:0px;left:0}.overlay-icon-container[_ngcontent-%COMP%]{position:relative}.overlay-icon-container[_ngcontent-%COMP%] .overlay-icon[_ngcontent-%COMP%]{width:20px;position:absolute;left:7px;bottom:11px;pointer-events:none}.element-icon[_ngcontent-%COMP%]:hover{border:cornflowerblue solid 2px!important}.selected[_ngcontent-%COMP%], .selected[_ngcontent-%COMP%]:hover{background-color:#89b2ff3d;border:#0059ff solid 2px!important}.energy-container[_ngcontent-%COMP%] .energy-bar[_ngcontent-%COMP%]{float:left;margin-right:3px;width:20px;height:10px;border:white solid 2px;cursor:pointer}.energy-container[_ngcontent-%COMP%] .energy-bar.none[_ngcontent-%COMP%]{border:indianred solid 2px}.energy-container[_ngcontent-%COMP%] .energy-bar[_ngcontent-%COMP%]:hover, .energy-container[_ngcontent-%COMP%] .hovered[_ngcontent-%COMP%]{background-color:#6e6e6e}.energy-container[_ngcontent-%COMP%] .hovered-higher[_ngcontent-%COMP%]{background-color:#0000!important}.energy-container[_ngcontent-%COMP%] .energy-bar.active[_ngcontent-%COMP%]{background-color:#fff}.energy-container[_ngcontent-%COMP%] .energy-bar.blocked[_ngcontent-%COMP%]{border:#606060 solid 2px;background-color:#6e6e6e}.mod-info[_ngcontent-%COMP%]{position:relative;float:left;height:40px;width:40px;margin-right:5px}.mod-info[_ngcontent-%COMP%] .mod-number[_ngcontent-%COMP%]{position:absolute;top:1px;bottom:1px;right:1px;left:1px;pointer-events:none;fill:#e0e0e0}.mod-info[_ngcontent-%COMP%] .mod-minor[_ngcontent-%COMP%]{display:none}.mod-info[_ngcontent-%COMP%] .overlay[_ngcontent-%COMP%]{position:absolute;top:0px;width:100%;height:100%;background:linear-gradient(to top left,rgba(0,0,0,0) 0%,rgba(0,0,0,0) calc(50% - .8px),rgb(0,0,0) 50%,rgba(0,0,0,0) calc(50% + .8px),rgba(0,0,0,0) 100%),linear-gradient(to top right,rgba(0,0,0,0) 0%,rgba(0,0,0,0) calc(50% - .8px),rgb(0,0,0) 50%,rgba(0,0,0,0) calc(50% + .8px),rgba(0,0,0,0) 100%)}.mod-info[_ngcontent-%COMP%] .mod-icon[_ngcontent-%COMP%]{width:40px;height:40px}.mod-info[_ngcontent-%COMP%] .mod-minor[_ngcontent-%COMP%]{border:rgba(0,0,0,0) solid 3px;width:34px;height:34px}.mod-info.major[_ngcontent-%COMP%] .overlay[_ngcontent-%COMP%], .mod-info.minor[_ngcontent-%COMP%] .overlay[_ngcontent-%COMP%]{display:none}.mod-info.minor[_ngcontent-%COMP%] .mod-minor[_ngcontent-%COMP%]{display:block}.mod-info.minor[_ngcontent-%COMP%] .mod-major[_ngcontent-%COMP%]{display:none}.menuArmorIcon[_ngcontent-%COMP%]{position:absolute;top:8px}.menuArmorText[_ngcontent-%COMP%]{padding-left:35px}.selected-menu[_ngcontent-%COMP%]{background-color:#89b2ff3d}.selected-menu[_ngcontent-%COMP%]:hover{background-color:#89b2ff4d} .modslot-select-scroll-menu{overflow-y:auto;max-height:250px!important}"]}),n})(),Er=(()=>{class n{constructor(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-slot-limitation-title"]],decls:5,vars:0,consts:[[1,"energy"],[1,"selector-slots"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"div",0),t._uU(2," Energy "),t.qZA(),t.TgZ(3,"span",1),t._uU(4," Modslots "),t.qZA()())},styles:[".energy[_ngcontent-%COMP%]{border-bottom:#a1a1a1 1px solid;margin-bottom:6px}.selector-element[_ngcontent-%COMP%]{position:relative;float:right;width:90px;top:-26px}.selector-slots[_ngcontent-%COMP%]{position:relative;float:right;width:155px;top:-26px;text-align:center}"]}),n})();function Ur(n,i){1&n&&(t.TgZ(0,"mat-toolbar",13),t._uU(1," Some of your chosen limitations contain no armor pieces and will yield no results.\n"),t.qZA())}function Dr(n,i){1&n&&(t.TgZ(0,"mat-toolbar",13),t._uU(1," The mod cost limitation is currently disabled. Modslot filtering still works.\n"),t.qZA())}let Pr=(()=>{class n{constructor(e){this.config=e,this.ArmorSlot=b.y,this.ArmorPerkOrSlot=c.Pn,this.possibilityList=[!0,!0,!0,!0,!0],this.allPossible=!0,this.disabledSlotLimitation=!h.N.featureFlags.enableModslotLimitation}updatePossibility(e,o){this.possibilityList[e]=o,this.allPossible=5==this.possibilityList.filter(a=>!!a).length}clear(){this.config.modifyConfiguration(e=>{for(let o=0;o<5;o++)e.armorPerks[o+1]={fixed:!0,value:0},e.maximumModSlots[o+1]={fixed:!0,value:5}})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(tt))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-desired-mod-selection"]],decls:129,vars:16,consts:[["color","warn","class","mat-elevation-z4 impossible-container",4,"ngIf"],[1,"container"],[3,"slot","possible"],["id","clear-container"],["color","warn","mat-stroked-button","",3,"click"],[1,"minispace"],[1,"mat-elevation-z6"],["aria-hidden","false","inline",""],["id","explanation-description"],[1,"text-highlight"],[1,"example-usecase"],[1,"modslot-legend"],[3,"perk"],["color","warn",1,"mat-elevation-z4","impossible-container"]],template:function(e,o){1&e&&(t.YNc(0,Ur,2,0,"mat-toolbar",0),t.TgZ(1,"div",1),t._UZ(2,"app-slot-limitation-title"),t.TgZ(3,"app-slot-limitation-selection",2),t.NdJ("possible",function(s){return o.updatePossibility(0,s)}),t.qZA(),t._UZ(4,"br"),t.TgZ(5,"app-slot-limitation-selection",2),t.NdJ("possible",function(s){return o.updatePossibility(1,s)}),t.qZA(),t._UZ(6,"br"),t.TgZ(7,"app-slot-limitation-selection",2),t.NdJ("possible",function(s){return o.updatePossibility(2,s)}),t.qZA(),t._UZ(8,"br"),t.TgZ(9,"app-slot-limitation-selection",2),t.NdJ("possible",function(s){return o.updatePossibility(3,s)}),t.qZA(),t._UZ(10,"br"),t.TgZ(11,"app-slot-limitation-selection",2),t.NdJ("possible",function(s){return o.updatePossibility(4,s)}),t.qZA()(),t.TgZ(12,"div",3)(13,"button",4),t.NdJ("click",function(){return o.clear()}),t._uU(14,"Clear the whole selection"),t.qZA()(),t._UZ(15,"div",5),t.YNc(16,Dr,2,0,"mat-toolbar",0),t._UZ(17,"div",5),t.TgZ(18,"mat-accordion")(19,"mat-expansion-panel",6)(20,"mat-expansion-panel-header")(21,"mat-panel-title")(22,"mat-icon",7),t._uU(23,"info"),t.qZA(),t._uU(24," Explanation "),t.qZA(),t.TgZ(25,"mat-panel-description"),t._uU(26," Detailed instructions for this section. "),t.qZA()(),t.TgZ(27,"div",8),t._uU(28," This section allows you to further finetune the results to your requirements."),t._UZ(29,"br")(30,"div",5),t.TgZ(31,"u"),t._uU(32,"Limitation of available stat mod types"),t.qZA(),t._UZ(33,"br"),t._uU(34," First off, you are able to "),t.TgZ(35,"span",9),t._uU(36,"select the kind and amount of stat mods"),t.qZA(),t._uU(37," you want. By filling the bars you "),t.TgZ(38,"span",9),t._uU(39,"specify how many modslots are already occupied"),t.qZA(),t._uU(40," and thus the tool knows how much space it is able to use for your builds. Hover over the bars, it will show you which mods are available after you changed your selection. "),t._UZ(41,"div",5),t.TgZ(42,"div",10),t._uU(43,' Example Use Case: "On one item I can only use up to four recovery mods, no major intellect mod. One item can not hold any mods". In this scenario you would set one slot to 10 used slots, and the rest to 6. '),t.qZA(),t._UZ(44,"br"),t.TgZ(45,"u"),t._uU(46,"Filter for Elemental Affinity and Armor Perk/Slot"),t.qZA(),t._UZ(47,"br"),t._uU(48," This allows you to super-finetune your elemental and armor-perk requirements. You can change the settings for "),t.TgZ(49,"span",9),t._uU(50,"each armor slot"),t.qZA(),t._uU(51,". There are two modes per armor slot: "),t.TgZ(52,"span",9),t._uU(53,"Locked"),t.qZA(),t._uU(54," and "),t.TgZ(55,"span",9),t._uU(56,"Unlocked"),t.qZA(),t._uU(57,". Per default each entry is in the "),t.TgZ(58,"span",9),t._uU(59,"Locked"),t.qZA(),t._uU(60," mode. "),t._UZ(61,"div",5),t.TgZ(62,"span",9),t._uU(63,"Locked"),t.qZA(),t._uU(64," means that "),t.TgZ(65,"span",9),t._uU(66,"this armor slot must have"),t.qZA(),t._uU(67," the selected element or perk. "),t._UZ(68,"div",5),t.TgZ(69,"span",9),t._uU(70,"Unlocked"),t.qZA(),t._uU(71," means that the perk must exist, but "),t.TgZ(72,"span",9),t._uU(73,"the exact armor slot is irrelevant"),t.qZA(),t._uU(74,". That means that the tool can decide where it puts the desired element or perk. "),t._UZ(75,"div",5),t.TgZ(76,"div",10),t._uU(77,' Example Use Case: "The Class Item and Gauntlet '),t.TgZ(78,"span",9),t._uU(79,"must be stasis"),t.qZA(),t._uU(80,'. Oh, and I need two solar and one arc modslots, but the position does not matter". In this scenario, Class Item and Gauntlet would be '),t.TgZ(81,"span",9),t._uU(82,"Locked"),t.qZA(),t._uU(83," and the rest would be "),t.TgZ(84,"span",9),t._uU(85,"Unlocked"),t.qZA(),t._uU(86,". "),t.qZA(),t._UZ(87,"br"),t._uU(88," Legend: "),t.TgZ(89,"table",11)(90,"tr")(91,"td"),t._UZ(92,"app-armor-perk-icon",12),t.qZA(),t.TgZ(93,"td"),t._uU(94,"Vault of Glass"),t.qZA(),t.TgZ(95,"td"),t._UZ(96,"app-armor-perk-icon",12),t.qZA(),t.TgZ(97,"td"),t._uU(98,"Deep Stone Crypt"),t.qZA(),t.TgZ(99,"td"),t._UZ(100,"app-armor-perk-icon",12),t.qZA(),t.TgZ(101,"td"),t._uU(102,"Garden of Salvation"),t.qZA()(),t.TgZ(103,"tr")(104,"td"),t._UZ(105,"app-armor-perk-icon",12),t.qZA(),t.TgZ(106,"td"),t._uU(107,"Last Wish"),t.qZA(),t.TgZ(108,"td"),t._UZ(109,"app-armor-perk-icon",12),t.qZA(),t.TgZ(110,"td"),t._uU(111,"Vow of the Disciple"),t.qZA(),t.TgZ(112,"td"),t._UZ(113,"app-armor-perk-icon",12),t.qZA(),t.TgZ(114,"td"),t._uU(115,"Nightmare Modslot"),t.qZA()(),t.TgZ(116,"tr")(117,"td"),t._UZ(118,"app-armor-perk-icon",12),t.qZA(),t.TgZ(119,"td"),t._uU(120,"Artifice Modslot"),t.qZA(),t.TgZ(121,"td"),t._UZ(122,"app-armor-perk-icon",12),t.qZA(),t.TgZ(123,"td"),t._uU(124,"Iron Banner Perk"),t.qZA(),t.TgZ(125,"td"),t._UZ(126,"app-armor-perk-icon",12),t.qZA(),t.TgZ(127,"td"),t._uU(128,"Echoes of Glory Perk"),t.qZA()()()()()()),2&e&&(t.Q6J("ngIf",!o.allPossible),t.xp6(3),t.Q6J("slot",o.ArmorSlot.ArmorSlotHelmet),t.xp6(2),t.Q6J("slot",o.ArmorSlot.ArmorSlotGauntlet),t.xp6(2),t.Q6J("slot",o.ArmorSlot.ArmorSlotChest),t.xp6(2),t.Q6J("slot",o.ArmorSlot.ArmorSlotLegs),t.xp6(2),t.Q6J("slot",o.ArmorSlot.ArmorSlotClass),t.xp6(5),t.Q6J("ngIf",o.disabledSlotLimitation),t.xp6(76),t.Q6J("perk",o.ArmorPerkOrSlot.SlotVaultOfGlass),t.xp6(4),t.Q6J("perk",o.ArmorPerkOrSlot.SlotDeepStoneCrypt),t.xp6(4),t.Q6J("perk",o.ArmorPerkOrSlot.SlotGardenOfSalvation),t.xp6(5),t.Q6J("perk",o.ArmorPerkOrSlot.SlotLastWish),t.xp6(4),t.Q6J("perk",o.ArmorPerkOrSlot.SlotVowOfTheDisciple),t.xp6(4),t.Q6J("perk",o.ArmorPerkOrSlot.SlotNightmare),t.xp6(5),t.Q6J("perk",o.ArmorPerkOrSlot.SlotArtifice),t.xp6(4),t.Q6J("perk",o.ArmorPerkOrSlot.PerkIronBanner),t.xp6(4),t.Q6J("perk",o.ArmorPerkOrSlot.PerkEchoesOfGlory))},dependencies:[Z.O5,st.lW,Zt.Hw,ht.Ye,lt.pp,lt.ib,lt.yz,lt.yK,lt.u4,kr,_e,Er],styles:[".container[_ngcontent-%COMP%]{margin-bottom:10px}.impossible-container[_ngcontent-%COMP%]{text-align:center;margin-right:auto;margin-left:auto;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content;font-size:15px;line-height:20px;margin-bottom:10px}.element-icon[_ngcontent-%COMP%]{height:30px;width:30px}.element-icon.disabled[_ngcontent-%COMP%]{opacity:.5;cursor:default;pointer-events:none}.overlay-icon-container[_ngcontent-%COMP%]{position:relative}.overlay-icon-container[_ngcontent-%COMP%] .overlay-icon[_ngcontent-%COMP%]{width:20px;position:absolute;left:5px;bottom:9px;pointer-events:none}.modslot-legend[_ngcontent-%COMP%]{border-collapse:separate;border-spacing:0 0;width:100%}.modslot-legend[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:0}#explanation-description[_ngcontent-%COMP%]{width:520px}.minispace[_ngcontent-%COMP%]{height:7px}.text-highlight[_ngcontent-%COMP%]{color:#cddcef}.example-usecase[_ngcontent-%COMP%]{font-size:small;line-height:normal}"]}),n})();function Rr(n,i){if(1&n&&t._UZ(0,"img",6),2&n){const e=t.oxw();t.s9C("alt",e.exoticPerk.name),t.MGl("src","https://bungie.net/",e.exoticPerk.icon,"",t.LSH)}}function Nr(n,i){1&n&&(t.TgZ(0,"tr")(1,"td"),t._uU(2,"Loading exotic perk.."),t.qZA()())}function qr(n,i){1&n&&(t.TgZ(0,"tr")(1,"td"),t._uU(2,"No (fixed) exotic perk available."),t.qZA()())}function Jr(n,i){if(1&n&&(t.TgZ(0,"tr")(1,"td")(2,"span"),t._uU(3),t.qZA()()()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(e.exoticPerk.name)}}function Fr(n,i){if(1&n&&(t.TgZ(0,"tr")(1,"td",7),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.hij(" ",e.exoticPerk.description," ")}}function Lr(n,i){1&n&&(t.ynx(0),t._uU(1," and "),t.BQk())}function Yr(n,i){if(1&n&&(t.ynx(0),t._uU(1," in your collection "),t.YNc(2,Lr,2,0,"ng-container",4),t.BQk()),2&n){const e=t.oxw(2);t.xp6(2),t.Q6J("ngIf",e.vendor)}}function Br(n,i){1&n&&(t.ynx(0),t._uU(1,"available at a vendor"),t.BQk())}function Qr(n,i){if(1&n&&(t.TgZ(0,"tr",8)(1,"td",7),t._uU(2," This exotic is not in your inventory but it is "),t.YNc(3,Yr,3,1,"ng-container",4),t.YNc(4,Br,2,0,"ng-container",4),t._uU(5,". You can still generate a loadout with this exotic, but you will have to grab it by yourself. "),t.qZA()()),2&n){const e=t.oxw();t.xp6(3),t.Q6J("ngIf",e.collection),t.xp6(1),t.Q6J("ngIf",e.vendor)}}let Vr=(()=>{class n{constructor(e,o){this.inv=e,this.iconService=o,this.vendor=!1,this.collection=!1,this.exoticPerkNotThere=!1}ngOnInit(){var e=this;return(0,T.Z)(function*(){e.exoticPerk=yield e.iconService.getItemCached(e.armor?.exoticPerkHash??0),e.exoticPerkNotThere=null==e.exoticPerk})()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(bt),t.Y36(pe))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-exotic-perk-tooltip"]],inputs:{armor:"armor",vendor:"vendor",collection:"collection"},decls:13,vars:7,consts:[[1,"tooltip-container"],["rowspan","2",1,"perk-icon-col"],["class","perk-icon",3,"alt","src",4,"ngIf"],[1,"exotic-name"],[4,"ngIf"],["class","collection-roll-info",4,"ngIf"],[1,"perk-icon",3,"alt","src"],["colspan","2"],[1,"collection-roll-info"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"div",0)(2,"table")(3,"tr")(4,"td",1),t.YNc(5,Rr,1,2,"img",2),t.qZA(),t.TgZ(6,"td",3),t._uU(7),t.qZA()(),t.YNc(8,Nr,3,0,"tr",4),t.YNc(9,qr,3,0,"tr",4),t.YNc(10,Jr,4,1,"tr",4),t.YNc(11,Fr,3,1,"tr",4),t.YNc(12,Qr,6,2,"tr",5),t.qZA()()()),2&e&&(t.xp6(5),t.Q6J("ngIf",o.exoticPerk),t.xp6(2),t.Oqu(null==o.armor?null:o.armor.name),t.xp6(1),t.Q6J("ngIf",!o.exoticPerk&&!o.exoticPerkNotThere),t.xp6(1),t.Q6J("ngIf",!o.exoticPerk&&o.exoticPerkNotThere),t.xp6(1),t.Q6J("ngIf",o.exoticPerk),t.xp6(1),t.Q6J("ngIf",o.exoticPerk),t.xp6(1),t.Q6J("ngIf",o.collection||o.vendor))},dependencies:[Z.O5],styles:["[_nghost-%COMP%]{width:350px}.tooltip-container[_ngcontent-%COMP%]{border:1px solid gray;padding:1px 5px 4px;background:linear-gradient(#484848 0px,#2c2c2c 100%)}.perk-icon[_ngcontent-%COMP%]{width:50px;height:50px}.perk-icon-col[_ngcontent-%COMP%]{width:55px}.exotic-name[_ngcontent-%COMP%]{color:#eedb9e}.collection-roll-info[_ngcontent-%COMP%]{color:#5cc3ec;font-size:12px;margin-top:5px}"]}),n})(),Hr=(()=>{class n{constructor(e,o,a){this._overlay=e,this._overlayPositionBuilder=o,this._elementRef=a,this.showToolTip=!0,this.exoticTooltipInVendor=!1,this.exoticTooltipInCollection=!1}ngOnInit(){if(!this.showToolTip)return;const e=this._overlayPositionBuilder.flexibleConnectedTo(this._elementRef).withPositions([{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top",offsetY:5},{originX:"center",originY:"top",overlayX:"center",overlayY:"bottom",offsetY:-5}]);this._overlayRef=this._overlay.create({positionStrategy:e}),this._overlayRef.addPanelClass("overlay-no-pointer-event")}show(){if(this._overlayRef&&!this._overlayRef.hasAttached()){const e=this._overlayRef.attach(new re.C5(Vr));e.instance.collection=this.exoticTooltipInCollection,e.instance.vendor=this.exoticTooltipInVendor,e.instance.armor=this.exoticTooltip}}hide(){this.closeToolTip()}ngOnDestroy(){this.closeToolTip()}closeToolTip(){this._overlayRef&&this._overlayRef.detach()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Jt.aV),t.Y36(Jt.wJ),t.Y36(t.SBq))},n.\u0275dir=t.lG2({type:n,selectors:[["","exoticTooltip",""]],hostBindings:function(e,o){1&e&&t.NdJ("mouseenter",function(){return o.show()})("mouseleave",function(){return o.hide()})},inputs:{showToolTip:"showToolTip",exoticTooltip:"exoticTooltip",exoticTooltipInVendor:"exoticTooltipInVendor",exoticTooltipInCollection:"exoticTooltipInCollection",contentTemplate:"contentTemplate"}}),n})();function Wr(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"img",7,8),t.NdJ("click",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(s.selectExotic(-2,a))}),t.qZA()}if(2&n){const e=t.oxw(2);t.Gre("exoticIcon ",e.selectedExotics.indexOf(-2)>-1?"selected":"","")}}function jr(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"img",9,8),t.NdJ("click",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(s.selectExotic(-1,a))}),t.qZA()}if(2&n){const e=t.oxw(2);t.Gre("exoticIcon ",e.selectedExotics.indexOf(-1)>-1?"selected":"","")}}function Gr(n,i){if(1&n&&t._UZ(0,"img",14),2&n){const e=t.oxw().$implicit;t.MGl("src","https://www.bungie.net/",e.item.watermarkIcon,"",t.LSH)}}function zr(n,i){if(1&n&&t._UZ(0,"div",15),2&n){const e=t.oxw().$implicit,o=t.oxw(2);t.ekj("vendor-item",o.includeVendorRolls&&e.inVendor)("collection-item",o.includeCollectionRolls&&e.inCollection)}}function Kr(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"span",10)(1,"img",11),t.NdJ("click",function(a){const r=t.CHM(e).$implicit,d=t.oxw(2);return t.KtG((r.inInventory||d.includeCollectionRolls&&r.inCollection)&&d.selectExotic(r.item.hash,a))}),t.qZA(),t.YNc(2,Gr,1,1,"img",12),t.YNc(3,zr,1,4,"div",13),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw(2);t.xp6(1),t.Gre("exoticIcon ",o.selectedExotics.indexOf(e.item.hash)>-1?"selected":"",""),t.ekj("vendor-item",!e.inInventory&&o.includeVendorRolls&&e.inVendor)("collection-item",!e.inInventory&&o.includeCollectionRolls&&e.inCollection)("disabled",!(e.inInventory||o.includeCollectionRolls&&e.inCollection||o.includeVendorRolls&&e.inVendor)),t.MGl("src","https://www.bungie.net/",e.item.icon,"",t.LSH),t.Q6J("exoticTooltip",e.item)("exoticTooltipInVendor",!e.inInventory&&o.includeVendorRolls&&e.inVendor)("exoticTooltipInCollection",!e.inInventory&&o.includeCollectionRolls&&e.inCollection),t.xp6(1),t.Q6J("ngIf",e.item.watermarkIcon),t.xp6(1),t.Q6J("ngIf",!e.inInventory)}}function $r(n,i){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,Wr,2,3,"img",4),t.YNc(2,jr,2,3,"img",5),t.YNc(3,Kr,4,15,"span",6),t.qZA()),2&n){const e=i.$implicit,o=i.index;t.Q6J("@listAnimation",e.length),t.xp6(1),t.Q6J("ngIf",0===o),t.xp6(1),t.Q6J("ngIf",0===o),t.xp6(1),t.Q6J("ngForOf",e)}}function Xr(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.refreshAll())}),t._uU(1," Manually refresh manifest and inventory "),t.qZA()}}const tl=(0,Tt.X$)("listAnimation",[(0,Tt.eR)("* <=> *",[(0,Tt.IO)(":enter",[(0,Tt.oB)({opacity:0}),(0,Tt.EY)("30ms",(0,Tt.jt)("350ms ease-out",(0,Tt.oB)({opacity:1})))],{optional:!0})])]);let el=(()=>{class n{constructor(e,o){this.inventory=e,this.config=o,this.selectedExotics=[],this.includeCollectionRolls=!1,this.includeVendorRolls=!1,this.ignoreSunsetArmor=!1,this.ignoreExistingExoticArtificeSlots=!1,this.allowBlueArmorPieces=!1,this.currentClass=0,this.exotics=[],this.ngUnsubscribe=new R.xQ}ngOnInit(){var e=this;this.config.configuration.pipe((0,Ct.R)(this.ngUnsubscribe)).subscribe(function(){var o=(0,T.Z)(function*(a){(a.characterClass!=e.currentClass||0==e.exotics.length)&&(e.currentClass=a.characterClass,yield e.updateExoticsForClass()),e.includeCollectionRolls=a.includeCollectionRolls,e.includeVendorRolls=a.includeVendorRolls,e.selectedExotics=a.selectedExotics,e.ignoreSunsetArmor=a.ignoreSunsetArmor,e.allowBlueArmorPieces=a.allowBlueArmorPieces,e.ignoreExistingExoticArtificeSlots=a.ignoreExistingExoticArtificeSlots});return function(a){return o.apply(this,arguments)}}()),this.inventory.manifest.pipe((0,J.b)(10),(0,Ct.R)(this.ngUnsubscribe)).subscribe((0,T.Z)(function*(){yield e.updateExoticsForClass()})),this.inventory.inventory.pipe((0,J.b)(10),(0,Ct.R)(this.ngUnsubscribe)).subscribe((0,T.Z)(function*(){yield e.updateExoticsForClass()}))}updateExoticsForClass(){var e=this;return(0,T.Z)(function*(){const o=yield e.inventory.getExoticsForClass(e.currentClass);function a(s){var r={};return s.filter(function(d){var p=d.item.hash;return!r.hasOwnProperty(p)&&(r[p]=!0)})}e.exotics=[a(o.filter(s=>s.item.slot==b.y.ArmorSlotHelmet)),a(o.filter(s=>s.item.slot==b.y.ArmorSlotGauntlet)),a(o.filter(s=>s.item.slot==b.y.ArmorSlotChest)),a(o.filter(s=>s.item.slot==b.y.ArmorSlotLegs)),a(o.filter(s=>s.item.slot==b.y.ArmorSlotClass))]})()}setAllowCollectionRolls(e){this.config.modifyConfiguration(o=>{o.includeCollectionRolls=e})}setAllowVendorItems(e){this.config.modifyConfiguration(o=>{o.includeVendorRolls=e})}setAllowBlueArmorPieces(e){this.config.modifyConfiguration(o=>{o.allowBlueArmorPieces=e})}setIgnoreSunsetArmor(e){this.config.modifyConfiguration(o=>{o.ignoreSunsetArmor=e})}setIgnoreExistingExoticArtificeSlots(e){this.config.modifyConfiguration(o=>{o.ignoreExistingExoticArtificeSlots=e})}selectExotic(e,o){const a=this.selectedExotics.indexOf(e);a>-1?this.selectedExotics.splice(a,1):e==D.Io?this.selectedExotics=[D.Io]:(0==this.selectedExotics.length||!o.shiftKey)&&(this.selectedExotics=[e]),this.config.modifyConfiguration(s=>{s.selectedExotics=this.selectedExotics})}refreshAll(){var e=this;return(0,T.Z)(function*(){yield e.inventory.refreshAll(!0,!0)})()}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(bt),t.Y36(tt))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-desired-exotic-selection"]],decls:24,vars:7,consts:[[4,"ngFor","ngForOf"],["mat-raised-button","","color","warn",3,"click",4,"ngIf"],["color","primary",3,"checked","change"],["color","warn",3,"checked","change"],["src","https://www.bungie.net/common/destiny2_content/icons/763634b78eb22168ac707500588b7333.jpg","matTooltip","Force to use ANY exotic (that is NOT a class item)",3,"class","click",4,"ngIf"],["src","https://www.bungie.net/common/destiny2_content/icons/b4d05ef69d0c3227a7d4f7f35bbc2848.png","matTooltip","Force to use NO exotic at all",3,"class","click",4,"ngIf"],["class","container",4,"ngFor","ngForOf"],["src","https://www.bungie.net/common/destiny2_content/icons/763634b78eb22168ac707500588b7333.jpg","matTooltip","Force to use ANY exotic (that is NOT a class item)",3,"click"],["tooltip","matTooltip"],["src","https://www.bungie.net/common/destiny2_content/icons/b4d05ef69d0c3227a7d4f7f35bbc2848.png","matTooltip","Force to use NO exotic at all",3,"click"],[1,"container"],[3,"src","exoticTooltip","exoticTooltipInVendor","exoticTooltipInCollection","click"],["class","watermarkIcon",3,"src",4,"ngIf"],["class","item-source-overlay",3,"vendor-item","collection-item",4,"ngIf"],[1,"watermarkIcon",3,"src"],[1,"item-source-overlay"],["mat-raised-button","","color","warn",3,"click"]],template:function(e,o){1&e&&(t.YNc(0,$r,4,4,"div",0),t.TgZ(1,"div"),t.YNc(2,Xr,2,0,"button",1),t.qZA(),t.TgZ(3,"div")(4,"mat-slide-toggle",2),t.NdJ("change",function(s){return o.setAllowCollectionRolls(s.checked)}),t._uU(5," Include "),t.TgZ(6,"u"),t._uU(7,"exotic"),t.qZA(),t._uU(8," collection rolls "),t.qZA()(),t.TgZ(9,"div")(10,"mat-slide-toggle",2),t.NdJ("change",function(s){return o.setAllowVendorItems(s.checked)}),t._uU(11," Include "),t.TgZ(12,"u"),t._uU(13,"legendary and exotic"),t.qZA(),t._uU(14," vendor armor (slower) "),t.qZA()(),t.TgZ(15,"div")(16,"mat-slide-toggle",2),t.NdJ("change",function(s){return o.setAllowBlueArmorPieces(s.checked)}),t._uU(17," Include white, blue and green items "),t.qZA()(),t.TgZ(18,"div")(19,"mat-slide-toggle",2),t.NdJ("change",function(s){return o.setIgnoreSunsetArmor(!s.checked)}),t._uU(20," Include sunset armor "),t.qZA()(),t.TgZ(21,"div")(22,"mat-slide-toggle",3),t.NdJ("change",function(s){return o.setIgnoreExistingExoticArtificeSlots(s.checked)}),t._uU(23," Ignore existing artifice slots on exotics (useful for the exotic class item) "),t.qZA()()),2&e&&(t.Q6J("ngForOf",o.exotics),t.xp6(2),t.Q6J("ngIf",0===o.exotics.length||0===o.exotics[0].length),t.xp6(2),t.Q6J("checked",o.includeCollectionRolls),t.xp6(6),t.Q6J("checked",o.includeVendorRolls),t.xp6(6),t.Q6J("checked",o.allowBlueArmorPieces),t.xp6(3),t.Q6J("checked",!o.ignoreSunsetArmor),t.xp6(3),t.Q6J("checked",o.ignoreExistingExoticArtificeSlots))},dependencies:[Z.sg,Z.O5,st.lW,ee.Rr,ut.gM,Hr],styles:[".container[_ngcontent-%COMP%]{display:inline-block;position:relative;--icon-size: 36px}.exoticIcon[_ngcontent-%COMP%]{width:36px;height:36px;margin-right:3px;border:rgba(0,0,0,0) solid 2px;cursor:pointer}.watermarkIcon[_ngcontent-%COMP%]{width:36px;height:36px;margin-left:-41px;margin-top:2px;position:absolute;pointer-events:none}.exoticIcon[_ngcontent-%COMP%]:hover{border:cornflowerblue solid 2px}.selected[_ngcontent-%COMP%], .selected[_ngcontent-%COMP%]:hover{border:#0059ff solid 2px}[_nghost-%COMP%]{position:relative}.exoticText[_ngcontent-%COMP%]{position:absolute;text-shadow:0 0 6px #000000;background:rgba(33,33,33,.51);color:#f5f5f5;bottom:4px;right:5px}.disabled[_ngcontent-%COMP%]{filter:grayscale(1) contrast(.6)}.disabled[_ngcontent-%COMP%]:hover{cursor:default}.item-source-overlay[_ngcontent-%COMP%]{margin:2px}.item-source-overlay[_ngcontent-%COMP%]{position:absolute;left:0;top:0;width:0;pointer-events:none;border-top:calc(var(--icon-size) / 2) solid transparent;border-right:calc(var(--icon-size) / 2) solid transparent}.item-source-overlay.vendor-item[_ngcontent-%COMP%]{border-top-color:#00f}.item-source-overlay.collection-item[_ngcontent-%COMP%]{border-top-color:#90ee90}"],data:{animation:[tl]}}),n})(),nl=(()=>{class n{constructor(e,o,a){var s=this;this.auth=e,this.membership=o,this.inventory=a,this.characters=[],this.loadCachedData(),this.auth.logoutEvent.subscribe(r=>this.clearCachedData()),this.inventory.inventory.subscribe((0,T.Z)(function*(){yield s.updateCharacterData()}))}clearCachedData(){this.characters=[],localStorage.removeItem("cachedCharacters")}loadCachedData(){let e=localStorage.getItem("cachedCharacters")||"[]";this.characters=JSON.parse(e)}updateCharacterData(){var e=this;return(0,T.Z)(function*(){e.characters=yield e.membership.getCharacters(),localStorage.setItem("cachedCharacters",JSON.stringify(e.characters))})()}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(pt),t.LFG(Ut),t.LFG(bt))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function ol(n,i){1&n&&(t.TgZ(0,"div",11),t._uU(1," Loading characters.. "),t.qZA())}function il(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"Titan"),t.qZA())}function al(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"Hunter"),t.qZA())}function sl(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"Warlock"),t.qZA())}function rl(n,i){if(1&n&&(t.TgZ(0,"div"),t._UZ(1,"img",14),t.TgZ(2,"span",15),t._uU(3),t.qZA()()),2&n){const e=t.oxw().$implicit,o=t.oxw();t.xp6(3),t.hij("\xd7",o.itemCounts[e.clazz],"")}}function ll(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",12),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.selectClass(s.clazz))}),t.TgZ(1,"div",13),t.YNc(2,il,2,0,"span",3),t.YNc(3,al,2,0,"span",3),t.YNc(4,sl,2,0,"span",3),t.qZA(),t.YNc(5,rl,4,1,"div",3),t.qZA()}if(2&n){const e=i.$implicit,o=i.index,a=t.oxw();t.Udp("background-image","url(https://bungie.net/"+e.emblemUrl+")"),t.ekj("selected",a.selectedClass===e.clazz),t.xp6(2),t.Q6J("ngIf",0===e.clazz),t.xp6(1),t.Q6J("ngIf",1===e.clazz),t.xp6(1),t.Q6J("ngIf",2===e.clazz),t.xp6(1),t.Q6J("ngIf",!!a.itemCounts[o])}}function cl(n,i){if(1&n&&(t.TgZ(0,"div")(1,"span",16),t._UZ(2,"img",17),t._uU(3),t.ALo(4,"number"),t.qZA(),t.TgZ(5,"span",16),t._UZ(6,"img",18),t._uU(7),t.ALo(8,"number"),t.qZA(),t.TgZ(9,"span",16),t._UZ(10,"img",19),t._uU(11),t.ALo(12,"number"),t.qZA(),t.TgZ(13,"span",16),t._UZ(14,"img",20),t._uU(15),t.ALo(16,"number"),t.qZA(),t.TgZ(17,"span",16),t._UZ(18,"img",21),t._uU(19),t.ALo(20,"number"),t.qZA()()),2&n){const e=t.oxw();t.xp6(1),t.MGl("matTooltip","Exotic Cipher: ",e.storedMaterials[3467984096],""),t.xp6(2),t.hij(" ",t.xi3(4,10,e.storedMaterials[3467984096],"1.0-0")," "),t.xp6(2),t.MGl("matTooltip","Ascendant Shards: ",e.storedMaterials[4257549985],""),t.xp6(2),t.hij(" ",t.xi3(8,13,e.storedMaterials[4257549985],"1.0-0")," "),t.xp6(2),t.MGl("matTooltip","Enhancement Prisms: ",e.storedMaterials[4257549984],""),t.xp6(2),t.hij(" ",t.xi3(12,16,e.storedMaterials[4257549984],"1.0-0")," "),t.xp6(2),t.MGl("matTooltip","Enhancement Cores: ",e.storedMaterials[3853748946],""),t.xp6(2),t.hij(" ",t.xi3(16,19,e.storedMaterials[3853748946],"1.0-0")," "),t.xp6(2),t.MGl("matTooltip","Glimmer: ",e.storedMaterials[3159615086],""),t.xp6(2),t.hij(" ",t.xi3(20,22,e.storedMaterials[3159615086],"1.0-0")," ")}}let ml=(()=>{class n{constructor(e,o,a){this.config=e,this.userdata=o,this.inv=a,this.itemCounts=[null,null,null],this.selectedClass=-1,this.storedMaterials=null,this.ngUnsubscribe=new R.xQ}ngOnInit(){var e=this;this.config.configuration.pipe((0,Ct.R)(this.ngUnsubscribe)).subscribe(o=>{this.selectedClass=o.characterClass;const a=-1!=this.userdata.characters.findIndex(s=>s.clazz==o.characterClass);this.userdata.characters.length>0&&!a&&this.config.modifyConfiguration(s=>{s.characterClass=this.userdata.characters[0].clazz,s.selectedExotics=[]})}),this.inv.inventory.pipe((0,Ct.R)(this.ngUnsubscribe)).subscribe(function(){var o=(0,T.Z)(function*(a){yield e.loadStoredMaterials(),yield e.updateItemCount()});return function(a){return o.apply(this,arguments)}}())}selectClass(e){this.config.readonlyConfigurationSnapshot.characterClass!=e&&this.config.modifyConfiguration(o=>{o.characterClass=e,o.selectedExotics=[]})}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}updateItemCount(){var e=this;return(0,T.Z)(function*(){for(let o=0;o<3;o++)e.itemCounts[o]=yield e.inv.getItemCountForClass(o)})()}loadStoredMaterials(){var e=this;return(0,T.Z)(function*(){var o=JSON.parse(localStorage.getItem("stored-materials")||"{}");"3853748946"in o||(o[3853748946]=0),"4257549984"in o||(o[4257549984]=0),"4257549985"in o||(o[4257549985]=0),"3159615086"in o||(o[3159615086]=0),"3467984096"in o||(o[3467984096]=0),e.storedMaterials=o})()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(tt),t.Y36(nl),t.Y36(bt))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-desired-class-selection"]],decls:22,vars:3,consts:[[1,"character-container"],["class","character-entry",4,"ngIf"],["class","character-entry","style","float: left",3,"selected","background-image","click",4,"ngFor","ngForOf"],[4,"ngIf"],["color","primary","fxShow","false","fxShow.lt-md","true","mat-flat-button","","routerLink","/help",2,"margin-left","15px"],["inline",""],["color","accent","href","https://ko-fi.com/mijago","matTooltip","You like my work? This leads you to ko-fi.com, where you can easily support me!","target","_blank"],["color","accent","href","http://discord.d2armorpicker.com","target","_blank"],[1,"crayon_logo_container"],["alt","","src","https://cdn.discordapp.com/emojis/917423317139480586.webp?size=96&quality=lossless",1,"crayon_logo"],["href","https://mijago.github.io/Crayon","target","_blank"],[1,"character-entry"],[1,"character-entry",2,"float","left",3,"click"],[1,"class-text"],["matTooltip","Amount of armor pieces for this class.","src","data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 51 51'%3e%3cpath d='M24.77 7.03c-8.15.38-14.42 7.41-14.42 15.57v16.06c0 .23.13.44.34.53l10.33 4.68c.78.35 1.66-.22 1.66-1.07V31.9c0-.39-.19-.75-.52-.97l-5.39-3.64c-.87-.52-1.43-1.5-1.34-2.61.13-1.46 1.46-2.52 2.93-2.52h4.36c.65 0 1.17.53 1.17 1.17v6.71s0 .61 1.61.61 1.61-.61 1.61-.61v-6.71c0-.65.52-1.17 1.17-1.17h4.36c1.47 0 2.8 1.06 2.93 2.52.1 1.11-.47 2.09-1.34 2.61l-5.39 3.64c-.32.22-.52.58-.52.97v10.91c0 .85.88 1.42 1.66 1.07l10.33-4.68c.21-.1.34-.3.34-.53v-16.5c.01-8.61-7.18-15.55-15.88-15.14z'/%3e%3c/svg%3e",1,"head-icon"],["matTooltip","Amount of armor pieces for this class.",1,"armor-text"],[1,"material-listing",3,"matTooltip"],["src","https://www.bungie.net/common/destiny2_content/icons/9970631fe1052642c268132dfc30e16b.jpg","alt","Exotic Cipher"],["src","https://www.bungie.net/common/destiny2_content/icons/0271d214fc3ec91b3def799a4b286b46.jpg","alt","Ascendant Shard"],["src","https://www.bungie.net/common/destiny2_content/icons/dea2a35badf7466d4c2c2697ce6e8d87.jpg","alt","Enhancement Prism"],["src","https://www.bungie.net/common/destiny2_content/icons/0a4eb695ed55b4e720ddc401460cc0f9.jpg","alt","Enhancement Core"],["src","https://www.bungie.net/common/destiny2_content/icons/88993eaeedad32f42072df6f77f47311.png","alt","Glimmer"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t.YNc(1,ol,2,0,"div",1),t.YNc(2,ll,6,8,"div",2),t.qZA(),t.YNc(3,cl,21,25,"div",3),t.TgZ(4,"a",4)(5,"mat-icon",5),t._uU(6,"help"),t.qZA(),t._uU(7," Help and Information about D2ArmorPicker\n"),t.qZA(),t.TgZ(8,"div"),t._uU(9," If you like my work, you can "),t.TgZ(10,"a",6),t._uU(11," support me here."),t.qZA(),t._uU(12," You can also "),t.TgZ(13,"a",7),t._uU(14," join my dev Discord! "),t.qZA(),t.TgZ(15,"div"),t._uU(16," Also check out my Discord-Bot "),t.TgZ(17,"div",8),t._UZ(18,"img",9),t.qZA(),t.TgZ(19,"a",10),t._uU(20,"Crayon"),t.qZA(),t._uU(21,", for all your item information needs! "),t.qZA()()),2&e&&(t.xp6(1),t.Q6J("ngIf",0===o.userdata.characters.length),t.xp6(1),t.Q6J("ngForOf",o.userdata.characters),t.xp6(1),t.Q6J("ngIf",null!==o.storedMaterials))},dependencies:[Z.sg,Z.O5,O.b8,st.zs,ut.gM,Zt.Hw,y.yS,Z.JJ],styles:[".discord-btn[_ngcontent-%COMP%]{margin-left:15px}.material-listing[_ngcontent-%COMP%]{position:relative;padding-left:22px;padding-right:10px}.material-listing[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:20px;position:absolute;top:-2px;left:0}.crayon_logo_container[_ngcontent-%COMP%]{position:relative;width:22px;display:inline-block;margin-right:3px}.crayon_logo_container[_ngcontent-%COMP%] .crayon_logo[_ngcontent-%COMP%]{position:absolute;width:22px;top:-14px} .mat-option-text{color:#fff}.character-container[_ngcontent-%COMP%]{height:50px}.character-entry[_ngcontent-%COMP%]{color:#fff;background-size:cover;background-position:left center;background-repeat:no-repeat;width:180px;height:36px;position:relative;margin-right:7px;margin-bottom:7px;border:rgba(255,255,255,0) solid 2px;opacity:.75;cursor:pointer}.character-entry[_ngcontent-%COMP%]:hover{border:rgba(255,255,255,.41) solid 2px;opacity:.98}.character-entry.selected[_ngcontent-%COMP%]{cursor:default;opacity:1;border:white solid 2px}.class-text[_ngcontent-%COMP%]{position:absolute;left:35px;top:8px;font-size:x-large;text-shadow:0 0 6px #000000}.head-icon[_ngcontent-%COMP%]{height:25px;top:6px;right:30px;position:absolute;filter:invert(1) drop-shadow(1px 1px 3px rgba(0,0,0,.25))!important}.armor-text[_ngcontent-%COMP%]{position:absolute;right:4px;top:9px;text-shadow:0 0 6px #000000;font-size:small}a[_ngcontent-%COMP%]{color:#99afe3}a[_ngcontent-%COMP%]:visited{color:#7294dc}"]}),n})();var dl=g(7580);function ul(n,i){1&n&&t._UZ(0,"img",7)}function pl(n,i){1&n&&t._UZ(0,"img",8)}function gl(n,i){1&n&&t._UZ(0,"img",9)}function _l(n,i){1&n&&t._UZ(0,"img",10)}function fl(n,i){1&n&&t._UZ(0,"img",11)}function hl(n,i){1&n&&t._UZ(0,"img",12)}let Ze=(()=>{class n{constructor(){this.stat=c.WB.Mobility}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-stat-icon"]],inputs:{stat:"stat"},decls:7,vars:6,consts:[[1,"statContainerWrapper"],["src","https://www.bungie.net/common/destiny2_content/icons/e26e0e93a9daf4fdd21bf64eb9246340.png","class","dialogStatIcon","alt","Mobility",4,"ngIf"],["src","https://www.bungie.net/common/destiny2_content/icons/202ecc1c6febeb6b97dafc856e863140.png","class","dialogStatIcon","alt","Resilience",4,"ngIf"],["src","https://www.bungie.net/common/destiny2_content/icons/128eee4ee7fc127851ab32eac6ca91cf.png","class","dialogStatIcon","alt","Recovery",4,"ngIf"],["src","https://www.bungie.net/common/destiny2_content/icons/79be2d4adef6a19203f7385e5c63b45b.png","class","dialogStatIcon","alt","Discipline",4,"ngIf"],["src","https://www.bungie.net/common/destiny2_content/icons/d1c154469670e9a592c9d4cbdcae5764.png","class","dialogStatIcon","alt","Intellect",4,"ngIf"],["src","https://www.bungie.net/common/destiny2_content/icons/ea5af04ccd6a3470a44fd7bb0f66e2f7.png","class","dialogStatIcon","alt","Strength",4,"ngIf"],["src","https://www.bungie.net/common/destiny2_content/icons/e26e0e93a9daf4fdd21bf64eb9246340.png","alt","Mobility",1,"dialogStatIcon"],["src","https://www.bungie.net/common/destiny2_content/icons/202ecc1c6febeb6b97dafc856e863140.png","alt","Resilience",1,"dialogStatIcon"],["src","https://www.bungie.net/common/destiny2_content/icons/128eee4ee7fc127851ab32eac6ca91cf.png","alt","Recovery",1,"dialogStatIcon"],["src","https://www.bungie.net/common/destiny2_content/icons/79be2d4adef6a19203f7385e5c63b45b.png","alt","Discipline",1,"dialogStatIcon"],["src","https://www.bungie.net/common/destiny2_content/icons/d1c154469670e9a592c9d4cbdcae5764.png","alt","Intellect",1,"dialogStatIcon"],["src","https://www.bungie.net/common/destiny2_content/icons/ea5af04ccd6a3470a44fd7bb0f66e2f7.png","alt","Strength",1,"dialogStatIcon"]],template:function(e,o){1&e&&(t.TgZ(0,"span",0),t.YNc(1,ul,1,0,"img",1),t.YNc(2,pl,1,0,"img",2),t.YNc(3,gl,1,0,"img",3),t.YNc(4,_l,1,0,"img",4),t.YNc(5,fl,1,0,"img",5),t.YNc(6,hl,1,0,"img",6),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",0===o.stat),t.xp6(1),t.Q6J("ngIf",1===o.stat),t.xp6(1),t.Q6J("ngIf",2===o.stat),t.xp6(1),t.Q6J("ngIf",3===o.stat),t.xp6(1),t.Q6J("ngIf",4===o.stat),t.xp6(1),t.Q6J("ngIf",5===o.stat))},dependencies:[Z.O5],styles:[".dialogStatIcon[_ngcontent-%COMP%]{position:relative;width:25px;margin-right:3px;top:4px}"]}),n})(),xl=(()=>{class n{constructor(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-mod-description-tooltip"]],inputs:{mod:"mod"},decls:9,vars:2,consts:[[1,"tooltip-container"],[1,"exotic-name"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"div",0)(2,"table")(3,"tr")(4,"td",1),t._uU(5),t.qZA()(),t.TgZ(6,"tr")(7,"td"),t._uU(8),t.qZA()()()()()),2&e&&(t.xp6(5),t.Oqu(null==o.mod?null:o.mod.name),t.xp6(3),t.Oqu(null==o.mod?null:o.mod.description))},styles:["[_nghost-%COMP%]{width:350px}.tooltip-container[_ngcontent-%COMP%]{border:1px solid gray;padding:1px 5px 4px;background:linear-gradient(#484848 0px,#2c2c2c 100%)}.exotic-name[_ngcontent-%COMP%]{color:#eedb9e}"]}),n})(),yl=(()=>{class n{constructor(e,o,a){this._overlay=e,this._overlayPositionBuilder=o,this._elementRef=a}ngOnInit(){const e=this._overlayPositionBuilder.flexibleConnectedTo(this._elementRef).withPositions([{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top",offsetY:5},{originX:"center",originY:"top",overlayX:"center",overlayY:"bottom",offsetY:-5}]);this._overlayRef=this._overlay.create({positionStrategy:e}),this._overlayRef.addPanelClass("overlay-no-pointer-event")}show(){this._overlayRef&&!this._overlayRef.hasAttached()&&(this._overlayRef.attach(new re.C5(xl)).instance.mod=this.mod)}hide(){this.closeToolTip()}ngOnDestroy(){this.closeToolTip()}closeToolTip(){this._overlayRef&&this._overlayRef.detach()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Jt.aV),t.Y36(Jt.wJ),t.Y36(t.SBq))},n.\u0275dir=t.lG2({type:n,selectors:[["","modTooltip",""]],hostBindings:function(e,o){1&e&&t.NdJ("mouseenter",function(){return o.show()})("mouseleave",function(){return o.hide()})},inputs:{mod:["modTooltip","mod"]}}),n})();function Tl(n,i){if(1&n){const e=t.EpF();t.ynx(0),t._UZ(1,"br"),t.TgZ(2,"mat-button-toggle-group",4)(3,"mat-button-toggle",5),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.setElement(a.ModifierType.Arc))}),t._uU(4," Arc "),t.qZA(),t.TgZ(5,"mat-button-toggle",5),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.setElement(a.ModifierType.Solar))}),t._uU(6," Solar "),t.qZA(),t.TgZ(7,"mat-button-toggle",5),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.setElement(a.ModifierType.Void))}),t._uU(8," Void "),t.qZA(),t.TgZ(9,"mat-button-toggle",5),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.setElement(a.ModifierType.Stasis))}),t._uU(10," Stasis "),t.qZA(),t.TgZ(11,"mat-button-toggle",5),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.setElement(a.ModifierType.Strand))}),t._uU(12," Strand "),t.qZA(),t.TgZ(13,"mat-button-toggle",5),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.setElement(a.ModifierType.Prismatic))}),t._uU(14," Prismatic "),t.qZA()(),t.BQk()}if(2&n){const e=t.oxw(2);t.xp6(2),t.Q6J("value",e.selectedElement),t.xp6(1),t.Q6J("value",e.ModifierType.Arc),t.xp6(2),t.Q6J("value",e.ModifierType.Solar),t.xp6(2),t.Q6J("value",e.ModifierType.Void),t.xp6(2),t.Q6J("value",e.ModifierType.Stasis),t.xp6(2),t.Q6J("value",e.ModifierType.Strand),t.xp6(2),t.Q6J("value",e.ModifierType.Prismatic)}}function Cl(n,i){if(1&n&&(t.TgZ(0,"h3",8),t._uU(1),t.qZA()),2&n){const e=t.oxw(2).$implicit;t.xp6(1),t.Oqu(e.name)}}function bl(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"There are no fragments configured yet. Please be patient."),t.qZA())}function vl(n,i){1&n&&(t.TgZ(0,"th",22),t._uU(1,"Name"),t.qZA())}function Al(n,i){if(1&n&&(t.TgZ(0,"td",23)(1,"mat-slide-toggle",24),t._UZ(2,"app-item-icon",25),t._uU(3),t.qZA()()),2&n){const e=i.$implicit,o=t.oxw(4);t.Q6J("modTooltip",e),t.xp6(1),t.Q6J("checked",o.selectedMods.indexOf(e.id)>-1),t.xp6(1),t.Q6J("itemHash",e.hash),t.xp6(1),t.hij(" ",e.name," ")}}function wl(n,i){1&n&&(t.TgZ(0,"th",22),t._UZ(1,"app-stat-icon",26),t.qZA()),2&n&&(t.xp6(1),t.Q6J("stat",0))}function Sl(n,i){if(1&n&&(t.TgZ(0,"span",31),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("+",e,"")}}function Il(n,i){if(1&n&&(t.TgZ(0,"span",32),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.Oqu(e)}}function Zl(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Sl,2,1,"span",29),t.YNc(2,Il,2,1,"span",30),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0),t.xp6(1),t.Q6J("ngIf",e<0)}}function Ol(n,i){if(1&n&&(t.TgZ(0,"td",27),t.YNc(1,Zl,3,2,"span",28),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(4);t.xp6(1),t.Q6J("ngVar",o.getModifierTextForValue(e.bonus,0))}}function Ml(n,i){1&n&&(t.TgZ(0,"th",22),t._UZ(1,"app-stat-icon",26),t.qZA()),2&n&&(t.xp6(1),t.Q6J("stat",1))}function kl(n,i){if(1&n&&(t.TgZ(0,"span",31),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("+",e,"")}}function El(n,i){if(1&n&&(t.TgZ(0,"span",32),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.Oqu(e)}}function Ul(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,kl,2,1,"span",29),t.YNc(2,El,2,1,"span",30),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0),t.xp6(1),t.Q6J("ngIf",e<0)}}function Dl(n,i){if(1&n&&(t.TgZ(0,"td",27),t.YNc(1,Ul,3,2,"span",28),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(4);t.xp6(1),t.Q6J("ngVar",o.getModifierTextForValue(e.bonus,1))}}function Pl(n,i){1&n&&(t.TgZ(0,"th",22),t._UZ(1,"app-stat-icon",26),t.qZA()),2&n&&(t.xp6(1),t.Q6J("stat",2))}function Rl(n,i){if(1&n&&(t.TgZ(0,"span",31),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("+",e,"")}}function Nl(n,i){if(1&n&&(t.TgZ(0,"span",32),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.Oqu(e)}}function ql(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Rl,2,1,"span",29),t.YNc(2,Nl,2,1,"span",30),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0),t.xp6(1),t.Q6J("ngIf",e<0)}}function Jl(n,i){if(1&n&&(t.TgZ(0,"td",27),t.YNc(1,ql,3,2,"span",28),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(4);t.xp6(1),t.Q6J("ngVar",o.getModifierTextForValue(e.bonus,2))}}function Fl(n,i){1&n&&(t.TgZ(0,"th",22),t._UZ(1,"app-stat-icon",26),t.qZA()),2&n&&(t.xp6(1),t.Q6J("stat",3))}function Ll(n,i){if(1&n&&(t.TgZ(0,"span",31),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("+",e,"")}}function Yl(n,i){if(1&n&&(t.TgZ(0,"span",32),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.Oqu(e)}}function Bl(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Ll,2,1,"span",29),t.YNc(2,Yl,2,1,"span",30),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0),t.xp6(1),t.Q6J("ngIf",e<0)}}function Ql(n,i){if(1&n&&(t.TgZ(0,"td",27),t.YNc(1,Bl,3,2,"span",28),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(4);t.xp6(1),t.Q6J("ngVar",o.getModifierTextForValue(e.bonus,3))}}function Vl(n,i){1&n&&(t.TgZ(0,"th",22),t._UZ(1,"app-stat-icon",26),t.qZA()),2&n&&(t.xp6(1),t.Q6J("stat",4))}function Hl(n,i){if(1&n&&(t.TgZ(0,"span",31),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("+",e,"")}}function Wl(n,i){if(1&n&&(t.TgZ(0,"span",32),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.Oqu(e)}}function jl(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Hl,2,1,"span",29),t.YNc(2,Wl,2,1,"span",30),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0),t.xp6(1),t.Q6J("ngIf",e<0)}}function Gl(n,i){if(1&n&&(t.TgZ(0,"td",27),t.YNc(1,jl,3,2,"span",28),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(4);t.xp6(1),t.Q6J("ngVar",o.getModifierTextForValue(e.bonus,4))}}function zl(n,i){1&n&&(t.TgZ(0,"th",22),t._UZ(1,"app-stat-icon",26),t.qZA()),2&n&&(t.xp6(1),t.Q6J("stat",5))}function Kl(n,i){if(1&n&&(t.TgZ(0,"span",31),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.hij("+",e,"")}}function $l(n,i){if(1&n&&(t.TgZ(0,"span",32),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngVar;t.xp6(1),t.Oqu(e)}}function Xl(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Kl,2,1,"span",29),t.YNc(2,$l,2,1,"span",30),t.qZA()),2&n){const e=i.ngVar;t.xp6(1),t.Q6J("ngIf",e>0),t.xp6(1),t.Q6J("ngIf",e<0)}}function tc(n,i){if(1&n&&(t.TgZ(0,"td",27),t.YNc(1,Xl,3,2,"span",28),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(4);t.xp6(1),t.Q6J("ngVar",o.getModifierTextForValue(e.bonus,5))}}function ec(n,i){1&n&&t._UZ(0,"tr",33)}function nc(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"tr",34),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw(4);return t.KtG(r.handleRowClick(s))}),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw(4);t.ekj("selected",o.selectedMods.indexOf(e.id)>-1)}}function oc(n,i){if(1&n&&(t.TgZ(0,"table",9),t.ynx(1,10),t.YNc(2,vl,2,0,"th",11),t.YNc(3,Al,4,4,"td",12),t.BQk(),t.ynx(4,13),t.YNc(5,wl,2,1,"th",11),t.YNc(6,Ol,2,1,"td",14),t.BQk(),t.ynx(7,15),t.YNc(8,Ml,2,1,"th",11),t.YNc(9,Dl,2,1,"td",14),t.BQk(),t.ynx(10,16),t.YNc(11,Pl,2,1,"th",11),t.YNc(12,Jl,2,1,"td",14),t.BQk(),t.ynx(13,17),t.YNc(14,Fl,2,1,"th",11),t.YNc(15,Ql,2,1,"td",14),t.BQk(),t.ynx(16,18),t.YNc(17,Vl,2,1,"th",11),t.YNc(18,Gl,2,1,"td",14),t.BQk(),t.ynx(19,19),t.YNc(20,zl,2,1,"th",11),t.YNc(21,tc,2,1,"td",14),t.BQk(),t.YNc(22,ec,1,0,"tr",20),t.YNc(23,nc,1,2,"tr",21),t.qZA()),2&n){const e=t.oxw(2).$implicit,o=t.oxw();t.Q6J("dataSource",e.data),t.xp6(22),t.Q6J("matHeaderRowDef",o.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns)}}function ic(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Cl,2,1,"h3",6),t.YNc(2,bl,2,0,"span",3),t.YNc(3,oc,24,3,"table",7),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf",!e.group),t.xp6(1),t.Q6J("ngIf",0===e.data.length),t.xp6(1),t.Q6J("ngIf",e.data.length>0)}}function ac(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Tl,15,7,"ng-container",3),t.YNc(2,ic,4,3,"ng-container",3),t.qZA()),2&n){const e=i.$implicit,o=i.index,a=t.oxw();t.xp6(1),t.Q6J("ngIf",0===o),t.xp6(1),t.Q6J("ngIf",!e.group||e.type===a.selectedElement)}}let sc=(()=>{class n{constructor(e){this.config=e,this.ModifierType=w.O,this.ModOrAbility=dl.U,this.displayedColumns=["name","mobility","resilience","recovery","discipline","intellect","strength"],this.selectedClass=3,this.selectedMods=[],this.selectedElement=w.O.Solar,this.ngUnsubscribe=new R.xQ;const o=Object.values(N.F).sort((a,s)=>a.name.toLowerCase()s.name.toLowerCase()?1:0);this.data=[{name:"Stasis Fragments",data:o.filter(a=>a.type==w.O.Stasis),group:!0,type:w.O.Stasis},{name:"Void Fragments",data:o.filter(a=>a.type==w.O.Void),group:!0,type:w.O.Void},{name:"Solar Fragments",data:o.filter(a=>a.type==w.O.Solar),group:!0,type:w.O.Solar},{name:"Arc Fragments",data:o.filter(a=>a.type==w.O.Arc),group:!0,type:w.O.Arc},{name:"Strand Fragments",data:o.filter(a=>a.type==w.O.Strand),group:!0,type:w.O.Strand},{name:"Prismatic Fragments",data:o.filter(a=>a.type==w.O.Prismatic),group:!0,type:w.O.Prismatic}],this.dataSource=o}ngOnInit(){this.config.configuration.pipe((0,Ct.R)(this.ngUnsubscribe)).subscribe(e=>{this.selectedMods=e.enabledMods,this.selectedClass=e.characterClass,this.selectedElement=e.selectedModElement})}getModifierTextForValue(e,o){return e.filter(a=>a.stat==o||a.stat==c.AR.ClassAbilityRegenerationStat&&(0==this.selectedClass&&o==c.WB.Resilience||1==this.selectedClass&&o==c.WB.Mobility||2==this.selectedClass&&o==c.WB.Recovery)).reduce((a,s)=>a+s.value,0)}handleRowClick(e){this.config.modifyConfiguration(o=>{const a=o.enabledMods.indexOf(e.id);a>-1?o.enabledMods.splice(a,1):o.enabledMods.push(e.id)})}clear(){this.config.modifyConfiguration(e=>{e.enabledMods=[]})}getAffinityName(e){return c.vr[e]}getAffinityUrl(e){return c.Sy[e]}setElement(e){this.selectedElement!=e&&this.config.modifyConfiguration(o=>{const a=o.enabledMods.filter(s=>N.F[s].type!=w.O.CombatStyleMod&&N.F[s].type!=e);o.selectedModElement=e;for(let s of a){const r=o.enabledMods.indexOf(s);o.enabledMods.splice(r,1)}})}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(tt))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-desired-mods-selection"]],features:[t._Bn([{provide:ee.HT,useValue:{disableToggleValue:!1,disableDragValue:!0}}])],decls:4,vars:1,consts:[[4,"ngFor","ngForOf"],["id","clear-container"],["color","warn","mat-stroked-button","",3,"click"],[4,"ngIf"],[3,"value"],[3,"value","click"],["class","stat-part-title",4,"ngIf"],["mat-table","",3,"dataSource",4,"ngIf"],[1,"stat-part-title"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",3,"modTooltip",4,"matCellDef"],["matColumnDef","mobility"],["mat-cell","",4,"matCellDef"],["matColumnDef","resilience"],["matColumnDef","recovery"],["matColumnDef","discipline"],["matColumnDef","intellect"],["matColumnDef","strength"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"selected","click",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",3,"modTooltip"],["color","primary","disabled","",2,"cursor","pointer !important",3,"checked"],[3,"itemHash"],[3,"stat"],["mat-cell",""],[4,"ngVar"],["class","stat-positive",4,"ngIf"],["class","stat-negative",4,"ngIf"],[1,"stat-positive"],[1,"stat-negative"],["mat-header-row",""],["mat-row","",3,"click"]],template:function(e,o){1&e&&(t.YNc(0,ac,3,2,"span",0),t.TgZ(1,"div",1)(2,"button",2),t.NdJ("click",function(){return o.clear()}),t._uU(3,"Clear the whole selection"),t.qZA()()),2&e&&t.Q6J("ngForOf",o.data)},dependencies:[Z.sg,Z.O5,st.lW,ee.Rr,G.BZ,G.fO,G.as,G.w1,G.Dz,G.nj,G.ge,G.ev,G.XQ,G.Gk,Dt.A9,Dt.Yi,Ze,zt,ge,yl],styles:[".mat-slide-toggle.mat-disabled[_ngcontent-%COMP%]{opacity:1}.stat-part-title[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:5px}.modTable[_ngcontent-%COMP%]{width:100%}.mat-header-row[_ngcontent-%COMP%], .mat-row[_ngcontent-%COMP%]{height:30px}.mat-column-mobility[_ngcontent-%COMP%], .mat-column-resilience[_ngcontent-%COMP%], .mat-column-recovery[_ngcontent-%COMP%], .mat-column-discipline[_ngcontent-%COMP%], .mat-column-intellect[_ngcontent-%COMP%], .mat-column-strength[_ngcontent-%COMP%], .mat-column-cost[_ngcontent-%COMP%]{min-width:40px;text-align:center}.mat-row[_ngcontent-%COMP%]:hover{background-color:#494949}.mat-column-mobility[_ngcontent-%COMP%], .mat-column-recovery[_ngcontent-%COMP%], .mat-column-intellect[_ngcontent-%COMP%]{background-color:#464646}.mat-column-name[_ngcontent-%COMP%]{padding-right:4px;border-right:1px solid currentColor;min-width:150px}.mat-column-name[_ngcontent-%COMP%] app-item-icon[_ngcontent-%COMP%]{float:left;margin-right:5px}.mat-row[_ngcontent-%COMP%]{cursor:pointer}th.mat-header-cell[_ngcontent-%COMP%]:last-of-type, td.mat-cell[_ngcontent-%COMP%]:last-of-type, td.mat-footer-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0}.mat-cell[_ngcontent-%COMP%]:last-of-type, .mat-header-cell[_ngcontent-%COMP%]:last-of-type, .mat-footer-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0}.stat-negative[_ngcontent-%COMP%], .stat-positive[_ngcontent-%COMP%]{margin-right:3px}.stat-negative[_ngcontent-%COMP%]{color:#f08080}.stat-positive[_ngcontent-%COMP%]{color:#b6cbfc}.stat-display[_ngcontent-%COMP%]{width:60px;float:left;align-content:end;text-align:right}.mat-row[_ngcontent-%COMP%]:hover, .mat-row[_ngcontent-%COMP%]:hover .mat-cell[_ngcontent-%COMP%]{background-color:#494949}.mat-row.selected[_ngcontent-%COMP%]:hover, .mat-row.selected[_ngcontent-%COMP%]:hover .mat-cell[_ngcontent-%COMP%]{background-color:#89b2ff30}.selected[_ngcontent-%COMP%], .selected[_ngcontent-%COMP%] .mat-column-mobility[_ngcontent-%COMP%], .selected[_ngcontent-%COMP%] .mat-column-recovery[_ngcontent-%COMP%], .selected[_ngcontent-%COMP%] .mat-column-intellect[_ngcontent-%COMP%]{background-color:#89b2ff1c}.mat-column-name[_ngcontent-%COMP%]{min-width:190px}.element-icon[_ngcontent-%COMP%]{width:22px}#clear-container[_ngcontent-%COMP%]{padding-top:10px}#retrofit-table[_ngcontent-%COMP%] .rft-icon-container[_ngcontent-%COMP%]{width:22px;display:inline-block}#retrofit-table[_ngcontent-%COMP%] .rft-icon-container[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{position:relative}#retrofit-table[_ngcontent-%COMP%] .rft-icon-container[_ngcontent-%COMP%] app-stat-icon[_ngcontent-%COMP%]{position:absolute;top:-22px;left:-10px}"]}),n})();function rc(n,i){if(1&n&&(t.TgZ(0,"mat-icon",8,9),t._uU(2," help "),t.qZA()),2&n){const e=t.oxw().$implicit;t.s9C("matTooltip",e.help)}}function lc(n,i){1&n&&(t.TgZ(0,"mat-icon",10,9),t._uU(2," report_problem "),t.qZA())}function cc(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",4)(1,"mat-slide-toggle",5),t.NdJ("change",function(a){const r=t.CHM(e).$implicit;return t.KtG(r.cp(a.checked))}),t._uU(2),t.qZA(),t.YNc(3,rc,3,1,"mat-icon",6),t.YNc(4,lc,3,0,"mat-icon",7),t.qZA()}if(2&n){const e=i.$implicit;t.xp6(1),t.Q6J("disabled",e.disabled)("checked",e.value),t.xp6(1),t.hij(" ",e.name," "),t.xp6(1),t.Q6J("ngIf",e.help),t.xp6(1),t.Q6J("ngIf",e.impactsResultCount)}}function mc(n,i){if(1&n&&(t.TgZ(0,"div")(1,"span",1),t._uU(2),t.qZA(),t.YNc(3,cc,5,5,"div",2),t._UZ(4,"div",3),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.xp6(2),t.Oqu(e),t.xp6(1),t.Q6J("ngForOf",o.fields2[e])}}let dc=(()=>{class n{constructor(e){this.config=e,this.fields2={},this.fieldKeys=[],this.ngUnsubscribe=new R.xQ}ngOnInit(){this.config.configuration.pipe((0,Ct.R)(this.ngUnsubscribe)).subscribe(e=>{this.fields2={Events:[{name:"Enforce the usage of a Festival of the Lost Mask.",cp:o=>this.config.modifyConfiguration(a=>a.useFotlArmor=o),value:e.useFotlArmor,disabled:!1,impactsResultCount:!0,help:"Only use a FotL masks. You will not get results if you do not own the mask."}],Masterwork:[{name:"Assume all legendary items are masterworked",cp:o=>this.config.modifyConfiguration(a=>a.assumeLegendariesMasterworked=o),value:e.assumeLegendariesMasterworked,disabled:!1,impactsResultCount:!1,help:void 0},{name:"Assume all legendary class items are masterworked",cp:o=>this.config.modifyConfiguration(a=>a.assumeClassItemMasterworked=o),value:e.assumeClassItemMasterworked,disabled:!1,impactsResultCount:!1,help:"If this setting is enabled, a plain +2 is added to every stat. This means that your Class Item must be masterworked. Ignored if you select an exotic class item."},{name:"Assume all exotic items are masterworked",cp:o=>this.config.modifyConfiguration(a=>a.assumeExoticsMasterworked=o),value:e.assumeExoticsMasterworked,disabled:!1,impactsResultCount:!1,help:"If this setting is enabled, the tool will treat non-masterworked exotic armor as if it were masterworked-."},{name:"Only use already masterworked exotic items",cp:o=>this.config.modifyConfiguration(a=>a.onlyUseMasterworkedExotics=o),value:e.onlyUseMasterworkedExotics,disabled:!1,impactsResultCount:!0,help:void 0},{name:"Only use already masterworked legendary items",cp:o=>this.config.modifyConfiguration(a=>a.onlyUseMasterworkedLegendaries=o),value:e.onlyUseMasterworkedLegendaries,disabled:!1,impactsResultCount:!0,help:void 0}],"Artifice Slots":[{name:"Assume every legendary class item is an artifice armor.",cp:o=>this.config.modifyConfiguration(a=>a.assumeClassItemIsArtifice=o),value:e.assumeClassItemIsArtifice||e.assumeEveryLegendaryIsArtifice,disabled:e.assumeEveryLegendaryIsArtifice,impactsResultCount:!0,help:"This is for debugging purposes. No support if you enable this."},{name:"Assume every legendary is an artifice armor.",cp:o=>this.config.modifyConfiguration(a=>a.assumeEveryLegendaryIsArtifice=o),value:e.assumeEveryLegendaryIsArtifice,disabled:!1,impactsResultCount:!0,help:"This is for debugging purposes. No support if you enable this."},{name:"Assume every exotic has an artifice slot.",cp:o=>this.config.modifyConfiguration(a=>a.assumeEveryExoticIsArtifice=o),value:e.assumeEveryExoticIsArtifice,disabled:!1,impactsResultCount:!0,help:"Preparation for the upcoming Artifice Mod Slot for exotics."}],"Performance Optimization":[{name:"Use security features to prevent app crashes (resets on reload).",cp:o=>this.config.modifyConfiguration(a=>a.limitParsedResults=o),value:e.limitParsedResults,disabled:!1,impactsResultCount:!0,help:"Only parse the first 30,000 results. Deactivating this may crash your browser. The results will still be limited to 1,000,000 entries. Note that you will not miss any significant results by leaving this enabled."}],"Extra Columns":[{name:"Show maximum reachable tiers in the Tiers-Column instead of real Tiers.",cp:o=>this.config.modifyConfiguration(a=>a.showPotentialTierColumn=o),value:e.showPotentialTierColumn,disabled:!1,impactsResultCount:!1,help:"Shows an additional column in the table that shows how many tiers this build would have, if all stat mods were used. This is important when builds do not use all 5 stat mods."},{name:"Show the wasted stats in an extra column.",cp:o=>this.config.modifyConfiguration(a=>a.showWastedStatsColumn=o),value:e.showWastedStatsColumn,disabled:!1,impactsResultCount:!1,help:"Shows an additional column in the table that shows how many stats are wasted in a build."}],"Wasted Stats":[{name:"Try to optimize wasted stats (slower)",cp:o=>this.config.modifyConfiguration(a=>a.tryLimitWastedStats=o),value:e.tryLimitWastedStats,disabled:!1,impactsResultCount:!1,help:"The tool will try to add minor stat mods to minimize wasted stats. This only works for combinations that fulfill your desired stat combination with enough mods so at least one mod slot is still open."},{name:"Only show builds with no wasted stats",cp:o=>this.config.modifyConfiguration(a=>a.onlyShowResultsWithNoWastedStats=o),value:h.N.featureFlags.enableZeroWaste&&e.onlyShowResultsWithNoWastedStats,disabled:!h.N.featureFlags.enableZeroWaste,impactsResultCount:!0,help:"Only show builds with zero wasted stats - this means, its highly likely that you won't get any results."}],"Data-Science":[{name:"Add a constant +1 resilience to the results with non-exotic chests (resets on reload).",cp:o=>this.config.modifyConfiguration(a=>a.addConstent1Resilience=o),value:e.addConstent1Resilience,disabled:!1,impactsResultCount:!1,help:"You usually do not want to use this."},{name:"Replace the tier selection with text fields for exact stat values.",cp:o=>this.config.modifyConfiguration(a=>{if(a.allowExactStats=o,!o)for(let s of Object.values(a.minimumStatTiers))s.value=Math.floor(s.value)}),value:e.allowExactStats,disabled:!1,impactsResultCount:!0,help:"This is a beta feature. Usability and quality may vary a lot."}]},this.fieldKeys=Object.keys(this.fields2)})}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(tt))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-advanced-settings"]],decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[1,"category-header"],["class","adv-settings",4,"ngFor","ngForOf"],[1,"category-spacer"],[1,"adv-settings"],["color","primary",3,"disabled","checked","change"],["inline","","aria-hidden","false","aria-label","Help",3,"matTooltip",4,"ngIf"],["inline","","aria-hidden","false","aria-label","Help","class","report-problem-icon","matTooltip","This setting might impact the amount of results. It may happen that you won't get any results if you change this setting. In this case, simply switch it back to its default state.",4,"ngIf"],["inline","","aria-hidden","false","aria-label","Help",3,"matTooltip"],["tooltip","matTooltip"],["inline","","aria-hidden","false","aria-label","Help","matTooltip","This setting might impact the amount of results. It may happen that you won't get any results if you change this setting. In this case, simply switch it back to its default state.",1,"report-problem-icon"]],template:function(e,o){1&e&&t.YNc(0,mc,5,2,"div",0),2&e&&t.Q6J("ngForOf",o.fieldKeys)},dependencies:[Z.sg,Z.O5,ee.Rr,ut.gM,Zt.Hw],styles:[".category-spacer[_ngcontent-%COMP%]{height:3px}.category-header[_ngcontent-%COMP%]{font-style:italic}.adv-settings[_ngcontent-%COMP%]{margin-left:20px}.report-problem-icon[_ngcontent-%COMP%]{color:#f08080}"]}),n})(),le=(()=>{class n{constructor(e,o){this.dialogRef=e,this.data=o}onNoClick(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(kt.so),t.Y36(kt.WI))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-confirm-dialog"]],decls:10,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1,"Confirm"),t.qZA(),t.TgZ(2,"div",1)(3,"p"),t._uU(4),t.qZA()(),t.TgZ(5,"div",2)(6,"button",3),t.NdJ("click",function(){return o.onNoClick()}),t._uU(7,"No Thanks"),t.qZA(),t.TgZ(8,"button",4),t._uU(9,"Ok"),t.qZA()()),2&e&&(t.xp6(4),t.Oqu(o.data.description),t.xp6(4),t.Q6J("mat-dialog-close",!0))},dependencies:[st.lW,kt.ZT,kt.uh,kt.xY,kt.H8]}),n})();var uc=g(4385);function pc(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"Titan"),t.qZA())}function gc(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"Hunter"),t.qZA())}function _c(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"Warlock"),t.qZA())}function fc(n,i){if(1&n&&(t.TgZ(0,"mat-option",30)(1,"span"),t._uU(2,"("),t.YNc(3,pc,2,0,"span",26),t.YNc(4,gc,2,0,"span",26),t.YNc(5,_c,2,0,"span",26),t._uU(6,") "),t.qZA(),t.TgZ(7,"span"),t._uU(8),t.qZA()()),2&n){const e=i.$implicit;t.Q6J("value",e.name),t.xp6(3),t.Q6J("ngIf",0===e.configuration.characterClass),t.xp6(1),t.Q6J("ngIf",1===e.configuration.characterClass),t.xp6(1),t.Q6J("ngIf",2===e.configuration.characterClass),t.xp6(3),t.hij(" ",e.name,"")}}function hc(n,i){1&n&&(t.TgZ(0,"th",31),t._uU(1,"Name"),t.qZA())}function xc(n,i){if(1&n&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij("",e.name," ")}}function yc(n,i){1&n&&(t.TgZ(0,"th",31),t._uU(1," Class "),t.qZA())}function Tc(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"Titan"),t.qZA())}function Cc(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"Hunter"),t.qZA())}function bc(n,i){1&n&&(t.TgZ(0,"span"),t._uU(1,"Warlock"),t.qZA())}function vc(n,i){if(1&n&&(t.TgZ(0,"td",32),t.YNc(1,Tc,2,0,"span",26),t.YNc(2,Cc,2,0,"span",26),t.YNc(3,bc,2,0,"span",26),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngIf",0===e.configuration.characterClass),t.xp6(1),t.Q6J("ngIf",1===e.configuration.characterClass),t.xp6(1),t.Q6J("ngIf",2===e.configuration.characterClass)}}function Ac(n,i){1&n&&(t.TgZ(0,"th",31),t._UZ(1,"app-stat-icon",33),t.qZA()),2&n&&(t.xp6(1),t.Q6J("stat",0))}function wc(n,i){if(1&n&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",10*e.configuration.minimumStatTiers[0].value," ")}}function Sc(n,i){1&n&&(t.TgZ(0,"th",31),t._UZ(1,"app-stat-icon",33),t.qZA()),2&n&&(t.xp6(1),t.Q6J("stat",1))}function Ic(n,i){if(1&n&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",10*e.configuration.minimumStatTiers[1].value," ")}}function Zc(n,i){1&n&&(t.TgZ(0,"th",31),t._UZ(1,"app-stat-icon",33),t.qZA()),2&n&&(t.xp6(1),t.Q6J("stat",2))}function Oc(n,i){if(1&n&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",10*e.configuration.minimumStatTiers[2].value," ")}}function Mc(n,i){1&n&&(t.TgZ(0,"th",31),t._UZ(1,"app-stat-icon",33),t.qZA()),2&n&&(t.xp6(1),t.Q6J("stat",3))}function kc(n,i){if(1&n&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",10*e.configuration.minimumStatTiers[3].value," ")}}function Ec(n,i){1&n&&(t.TgZ(0,"th",31),t._UZ(1,"app-stat-icon",33),t.qZA()),2&n&&(t.xp6(1),t.Q6J("stat",4))}function Uc(n,i){if(1&n&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",10*e.configuration.minimumStatTiers[4].value," ")}}function Dc(n,i){1&n&&(t.TgZ(0,"th",31),t._UZ(1,"app-stat-icon",33),t.qZA()),2&n&&(t.xp6(1),t.Q6J("stat",5))}function Pc(n,i){if(1&n&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",10*e.configuration.minimumStatTiers[5].value," ")}}function Rc(n,i){1&n&&t._UZ(0,"th",31)}function Nc(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",32)(1,"button",34),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.delete(s.name))}),t.TgZ(2,"mat-icon"),t._uU(3,"delete_forever"),t.qZA()(),t.TgZ(4,"button",35),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.load(s.name))}),t.TgZ(5,"mat-icon"),t._uU(6,"check_circle_outline"),t.qZA()(),t.TgZ(7,"button",36),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.copySingleSettingToClipboard(s))}),t.TgZ(8,"mat-icon"),t._uU(9,"get_app"),t.qZA()()()}}function qc(n,i){1&n&&t._UZ(0,"tr",37)}function Jc(n,i){1&n&&t._UZ(0,"tr",38)}function Fc(n,i){if(1&n){const e=t.EpF();t.ynx(0),t._UZ(1,"br"),t.TgZ(2,"button",39),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.copyAllSettingsToClipboard())}),t._uU(3," Copy all saved configurations to the clipboard "),t.qZA(),t.BQk()}}let Lc=(()=>{class n{constructor(e,o,a,s,r){this.config=e,this.formBuilder=o,this.dialog=a,this._snackBar=s,this.clipboard=r,this.selectedEntry="",this.storedConfigs=[],this.displayedColumns=["name","class","mobility","resilience","recovery","discipline","intellect","strength","delete"],this.ngUnsubscribe=new R.xQ,this.settingsNameForm=this.formBuilder.group({name:[null]}),this.importTextForm=this.formBuilder.group({content:[null]})}ngOnInit(){this.config.storedConfigurations.pipe((0,Ct.R)(this.ngUnsubscribe)).subscribe(e=>this.storedConfigs=e)}submit(){const e=this.settingsNameForm.get("name")?.value;!e||(this.config.doesSavedConfigurationExist(e)?this.dialog.open(le,{width:"300px",data:{description:"Do you want to overwrite this configuration?"}}).afterClosed().subscribe(a=>{a&&(this.config.saveCurrentConfigurationToName(e),this.settingsNameForm.reset(),this.selectedEntry=e)}):(this.config.saveCurrentConfigurationToName(e),this.settingsNameForm.reset(),this.selectedEntry=e))}delete(e){this.dialog.open(le,{width:"300px",data:{description:"Do you want to delete this configuration?"}}).afterClosed().subscribe(a=>{a&&this.config.deleteStoredConfiguration(e)})}clearEverything(){this.dialog.open(le,{width:"300px",data:{description:"Do you want to clear all settings?"}}).afterClosed().subscribe(o=>{o&&this.config.resetCurrentConfiguration()})}load(e){this.dialog.open(le,{width:"300px",data:{description:"Do you want to load this preset?"}}).afterClosed().subscribe(a=>{a&&this.config.loadSavedConfiguration(e)})}runImport(){const e=this.importTextForm.get("content")?.value;if(!e)return this.openSnackBar("Invalid input.");try{const o=P.decompress(e,{inputEncoding:"Base64"}),a="["==o.substr(0,1);let s=JSON.parse(o);a||(s=[s]),console.log("Incoming json:",s);for(let r of s)this.config.checkAndFixOldSavedConfigurations(r),r.hasOwnProperty("name")?a?this.config.saveConfiguration(r.name,r.configuration):this.config.saveCurrentConfiguration(r.configuration):this.config.saveCurrentConfiguration(r);this.openSnackBar("Successfully loaded this configuration"),this.importTextForm.get("content")?.reset()}catch(o){this.openSnackBar("Invalid input."),console.error(o)}}copySingleSettingToClipboard(e){this.clipboard.copy(this.config.getStoredConfigurationBase64Compressed(e.name)),this.openSnackBar("Copied the configuration to your clipboard. You can share it with your friends.")}copyAllSettingsToClipboard(){this.clipboard.copy(this.config.getAllStoredConfigurationsBase64Compressed()),this.openSnackBar("Exported all configurations to the clipboard. You can then save and share them.")}openSnackBar(e){this._snackBar.open(e,"",{duration:2500,politeness:"polite"})}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(tt),t.Y36(wt.QS),t.Y36(kt.uw),t.Y36(ue.ux),t.Y36(te.TU))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-load-and-save-settings"]],decls:78,vars:13,consts:[[3,"formGroup","submit"],["id","settings"],["appearance","outline"],["formControlName","name","matInput","","maxlength","30","minlength","4","placeholder","Awesome Discipline Build 4"],["color","primary","mat-raised-button","","type","submit",3,"disabled"],["color","warn","mat-raised-button","","matTooltip","Clears the ENTIRE configuration and uses the default settings. Use with caution.",3,"click"],["color","primary","mat-raised-button","","matTooltip","Copy your current configuration into your clipboard. You will be able to share it with others and import it later.",3,"cdkCopyToClipboard","click"],[2,"display","none"],[3,"value","disabled","valueChange"],[3,"value",4,"ngFor","ngForOf"],["color","primary","mat-raised-button","","matTooltip","Load the currently selected configuration.",3,"disabled","click"],["color","warn","mat-stroked-button","","matTooltip","Delete the currently selected configuration. Can not be undone.",3,"disabled","click"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","class"],["matColumnDef","mobility"],["matColumnDef","resilience"],["matColumnDef","recovery"],["matColumnDef","discipline"],["matColumnDef","intellect"],["matColumnDef","strength"],["matColumnDef","delete"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[4,"ngIf"],[3,"formGroup"],["formControlName","content","matInput",""],["color","primary","mat-raised-button","","matTooltip","Import the given configuration",3,"click"],[3,"value"],["mat-header-cell",""],["mat-cell",""],[3,"stat"],["color","warn","mat-icon-button","","matTooltip","Delete this configuration permanently.",3,"click"],["color","primary","mat-icon-button","","matTooltip","Load this configuration. Your current settings will be overwritten.",3,"click"],["color","primary","mat-icon-button","","matTooltip","Copy this configuration into your clipboard. You will be able to share it with others and import it later.",3,"click"],["mat-header-row",""],["mat-row",""],["color","primary","mat-raised-button","","matTooltip","Export all configurations to the clipboard. You can then save and share them.",3,"click"]],template:function(e,o){if(1&e&&(t.TgZ(0,"form",0),t.NdJ("submit",function(){return o.submit()}),t.TgZ(1,"table",1)(2,"tr")(3,"td")(4,"mat-form-field",2)(5,"mat-label"),t._uU(6,"Name to save the configuration"),t.qZA(),t._UZ(7,"input",3),t.qZA()(),t.TgZ(8,"td")(9,"button",4),t._uU(10," Save current "),t.qZA()(),t.TgZ(11,"td")(12,"button",5),t.NdJ("click",function(){return o.clearEverything()}),t._uU(13,"Clear everything "),t.qZA()(),t.TgZ(14,"td")(15,"button",6),t.NdJ("click",function(){return o.openSnackBar("Copied the configuration to your clipboard. You can share it with your friends.")}),t._uU(16," Copy Current "),t.qZA()()(),t.TgZ(17,"tr",7)(18,"td")(19,"mat-form-field",2)(20,"mat-label"),t._uU(21,"Load saved configuration"),t.qZA(),t.TgZ(22,"mat-select",8),t.NdJ("valueChange",function(s){return o.selectedEntry=s}),t.YNc(23,fc,9,5,"mat-option",9),t.qZA()()(),t.TgZ(24,"td")(25,"button",10),t.NdJ("click",function(){return o.load(o.selectedEntry)}),t._uU(26,"Load "),t.qZA()(),t.TgZ(27,"td")(28,"button",11),t.NdJ("click",function(){return o.delete(o.selectedEntry)}),t._uU(29,"Delete "),t.qZA()()()()(),t._UZ(30,"br"),t.TgZ(31,"table",12),t.ynx(32,13),t.YNc(33,hc,2,0,"th",14),t.YNc(34,xc,2,1,"td",15),t.BQk(),t.ynx(35,16),t.YNc(36,yc,2,0,"th",14),t.YNc(37,vc,4,3,"td",15),t.BQk(),t.ynx(38,17),t.YNc(39,Ac,2,1,"th",14),t.YNc(40,wc,2,1,"td",15),t.BQk(),t.ynx(41,18),t.YNc(42,Sc,2,1,"th",14),t.YNc(43,Ic,2,1,"td",15),t.BQk(),t.ynx(44,19),t.YNc(45,Zc,2,1,"th",14),t.YNc(46,Oc,2,1,"td",15),t.BQk(),t.ynx(47,20),t.YNc(48,Mc,2,1,"th",14),t.YNc(49,kc,2,1,"td",15),t.BQk(),t.ynx(50,21),t.YNc(51,Ec,2,1,"th",14),t.YNc(52,Uc,2,1,"td",15),t.BQk(),t.ynx(53,22),t.YNc(54,Dc,2,1,"th",14),t.YNc(55,Pc,2,1,"td",15),t.BQk(),t.ynx(56,23),t.YNc(57,Rc,1,0,"th",14),t.YNc(58,Nc,10,0,"td",15),t.BQk(),t.YNc(59,qc,1,0,"tr",24),t.YNc(60,Jc,1,0,"tr",25),t.qZA(),t.YNc(61,Fc,4,0,"ng-container",26),t._UZ(62,"br"),t.TgZ(63,"div"),t._UZ(64,"hr"),t.TgZ(65,"h2"),t._uU(66,"Import a previously exported configuration"),t.qZA(),t.TgZ(67,"form",27)(68,"table")(69,"tr")(70,"td")(71,"mat-form-field",2)(72,"mat-label"),t._uU(73,"Copied configuration"),t.qZA(),t._UZ(74,"input",28),t.qZA()(),t.TgZ(75,"td")(76,"button",29),t.NdJ("click",function(){return o.runImport()}),t._uU(77," Start the import "),t.qZA()()()()()()),2&e){let a;t.Q6J("formGroup",o.settingsNameForm),t.xp6(9),t.Q6J("disabled",!(null!=(a=o.settingsNameForm.get("name"))&&a.value)||(null==(a=o.settingsNameForm.get("name"))?null:a.value.length)<4||(null==(a=o.settingsNameForm.get("name"))?null:a.value.length)>30),t.xp6(6),t.Q6J("cdkCopyToClipboard",o.config.getCurrentConfigBase64Compressed()),t.xp6(7),t.Q6J("value",o.selectedEntry)("disabled",0===o.storedConfigs.length),t.xp6(1),t.Q6J("ngForOf",o.storedConfigs),t.xp6(2),t.Q6J("disabled",!o.selectedEntry||0===o.storedConfigs.length),t.xp6(3),t.Q6J("disabled",!o.selectedEntry||0===o.storedConfigs.length),t.xp6(3),t.Q6J("dataSource",o.storedConfigs),t.xp6(28),t.Q6J("matHeaderRowDef",o.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("ngIf",o.storedConfigs.length>0),t.xp6(6),t.Q6J("formGroup",o.importTextForm)}},dependencies:[Z.sg,Z.O5,wt._Y,wt.Fj,wt.JJ,wt.JL,wt.wO,wt.nD,wt.sg,wt.u,st.lW,Pt.KE,Pt.hX,uc.gD,Ae.ey,ne.Nt,G.BZ,G.fO,G.as,G.w1,G.Dz,G.nj,G.ge,G.ev,G.XQ,G.Gk,ut.gM,Zt.Hw,te.i3,Ze],styles:[".modTable[_ngcontent-%COMP%]{width:100%}.mat-header-row[_ngcontent-%COMP%], .mat-row[_ngcontent-%COMP%]{height:30px}.mat-column-class[_ngcontent-%COMP%]{min-width:55px;padding-right:2px;padding-left:2px;text-align:center;border-right:1px solid currentColor}.mat-column-mobility[_ngcontent-%COMP%], .mat-column-resilience[_ngcontent-%COMP%], .mat-column-recovery[_ngcontent-%COMP%], .mat-column-discipline[_ngcontent-%COMP%], .mat-column-intellect[_ngcontent-%COMP%], .mat-column-strength[_ngcontent-%COMP%]{min-width:40px;text-align:center}.mat-row[_ngcontent-%COMP%]:hover{background-color:#494949}.mat-column-mobility[_ngcontent-%COMP%], .mat-column-recovery[_ngcontent-%COMP%], .mat-column-intellect[_ngcontent-%COMP%]{background-color:#464646}.mat-column-name[_ngcontent-%COMP%]{padding-right:4px;border-right:1px solid currentColor;min-width:150px}th.mat-header-cell[_ngcontent-%COMP%]:last-of-type, td.mat-cell[_ngcontent-%COMP%]:last-of-type, td.mat-footer-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0}.mat-cell[_ngcontent-%COMP%]:last-of-type, .mat-header-cell[_ngcontent-%COMP%]:last-of-type, .mat-footer-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0}.stat-negative[_ngcontent-%COMP%], .stat-positive[_ngcontent-%COMP%]{margin-right:3px}.stat-negative[_ngcontent-%COMP%]{color:#f08080}.stat-positive[_ngcontent-%COMP%]{color:#6495ed}.stat-display[_ngcontent-%COMP%]{width:60px;float:left;align-content:end;text-align:right}.mat-row[_ngcontent-%COMP%]:hover, .mat-row[_ngcontent-%COMP%]:hover .mat-cell[_ngcontent-%COMP%]{background-color:#494949}.mat-row.selected[_ngcontent-%COMP%]:hover, .mat-row.selected[_ngcontent-%COMP%]:hover .mat-cell[_ngcontent-%COMP%]{background-color:#89b2ff30}.selected[_ngcontent-%COMP%], .selected[_ngcontent-%COMP%] .mat-column-mobility[_ngcontent-%COMP%], .selected[_ngcontent-%COMP%] .mat-column-recovery[_ngcontent-%COMP%], .selected[_ngcontent-%COMP%] .mat-column-intellect[_ngcontent-%COMP%]{background-color:#89b2ff1c}.mat-column-load[_ngcontent-%COMP%], .mat-column-delete[_ngcontent-%COMP%]{padding-left:3px;padding-right:3px}[_nghost-%COMP%] .mat-form-field-wrapper{margin:0!important;padding:0}"]}),n})();function Yc(n,i){1&n&&(t.TgZ(0,"div"),t._uU(1,"Helmets"),t.qZA())}function Bc(n,i){1&n&&(t.TgZ(0,"div"),t._uU(1,"Gauntlets"),t.qZA())}function Qc(n,i){1&n&&(t.TgZ(0,"div"),t._uU(1,"Chest Pieces"),t.qZA())}function Vc(n,i){1&n&&(t.TgZ(0,"div"),t._uU(1,"Legs"),t.qZA())}function Hc(n,i){1&n&&(t.TgZ(0,"div"),t._uU(1,"Class Items"),t.qZA())}function Wc(n,i){1&n&&t._UZ(0,"br")}function jc(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"span",5)(1,"img",6),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw(3);return t.KtG(r.enableItem(s.itemInstanceId))}),t.qZA(),t.YNc(2,Wc,1,0,"br",3),t.qZA()}if(2&n){const e=i.$implicit,o=i.index,a=t.oxw(3);t.xp6(1),t.MGl("src","https://bungie.net/",e.icon,"",t.LSH),t.Q6J("matTooltip",a.generateTooltip(e)),t.xp6(1),t.Q6J("ngIf",(o+1)%10==0)}}function Gc(n,i){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,Yc,2,0,"div",3),t.YNc(2,Bc,2,0,"div",3),t.YNc(3,Qc,2,0,"div",3),t.YNc(4,Vc,2,0,"div",3),t.YNc(5,Hc,2,0,"div",3),t.YNc(6,jc,3,3,"span",4),t.qZA()),2&n){const e=i.$implicit,o=i.index;t.xp6(1),t.Q6J("ngIf",1===o&&e.length>0),t.xp6(1),t.Q6J("ngIf",2===o&&e.length>0),t.xp6(1),t.Q6J("ngIf",3===o&&e.length>0),t.xp6(1),t.Q6J("ngIf",4===o&&e.length>0),t.xp6(1),t.Q6J("ngIf",5===o&&e.length>0),t.xp6(1),t.Q6J("ngForOf",e)}}function zc(n,i){if(1&n&&(t.TgZ(0,"div",1),t.YNc(1,Gc,7,6,"div",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.disabledItems)}}let Kc=(()=>{class n{constructor(e,o){this.config=e,this.db=o,this.disabledItems=[],this.characterClass=null,this.ngUnsubscribe=new R.xQ}enableItem(e){this.config.modifyConfiguration(o=>{o.disabledItems.splice(o.disabledItems.indexOf(e),1)})}generateTooltip(e){return"Click this icon to activate this item again.\r\n"+e.name+" "+(e.mobility+(e.masterworked?2:0))+"/"+(e.resilience+(e.masterworked?2:0))+"/"+(e.recovery+(e.masterworked?2:0))+"/"+(e.discipline+(e.masterworked?2:0))+"/"+(e.intellect+(e.masterworked?2:0))+"/"+(e.strength+(e.masterworked?2:0))}ngOnInit(){var e=this;this.config.configuration.pipe((0,Ct.R)(this.ngUnsubscribe)).subscribe(function(){var o=(0,T.Z)(function*(a){e.characterClass=null;const s=[[],[],[],[],[],[]];let r=[];for(let d of a.disabledItems){let p=yield e.db.inventoryArmor.where("itemInstanceId").equals(d).first();p&&r.push(p)}for(let d of r)s[d.slot].push(d);e.characterClass=a.characterClass;for(let d of s)d.sort((p,A)=>p.hash-A.hash);e.disabledItems=s});return function(a){return o.apply(this,arguments)}}())}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(tt),t.Y36(S))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-ignored-items-list"]],decls:1,vars:1,consts:[["class","item-icon-container",4,"ngIf"],[1,"item-icon-container"],[4,"ngFor","ngForOf"],[4,"ngIf"],["class","item-sub",4,"ngFor","ngForOf"],[1,"item-sub"],["matTooltipClass","allow-cr",1,"item-icon",3,"src","matTooltip","click"]],template:function(e,o){1&e&&t.YNc(0,zc,2,1,"div",0),2&e&&t.Q6J("ngIf",null!==o.characterClass)},dependencies:[Z.sg,Z.O5,ut.gM],styles:[".item-icon[_ngcontent-%COMP%]{width:40px}.item-icon[_ngcontent-%COMP%]:hover{filter:brightness(.8) hue-rotate(350deg) saturate(3) blur(2px) contrast(.6);cursor:not-allowed}.item-sub[_ngcontent-%COMP%]{margin-right:3px}.item-icon-container[_ngcontent-%COMP%]{position:relative;contain:layout paint style;box-sizing:border-box;width:var(--item-size);transition:opacity .2s,transform .2s}"]}),n})(),$c=(()=>{class n{constructor(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-settings"]],decls:71,vars:0,consts:[["id","card-config"],["id","content-char-selection"],["inline","","aria-hidden","false","aria-label","Help","matTooltip","Cooldowns and Stats provided by Clarity."],["tooltip","matTooltip"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"mat-card")(2,"mat-card-title"),t._uU(3,"Character Selection"),t.qZA(),t.TgZ(4,"mat-card-content",1),t._UZ(5,"app-desired-class-selection"),t.qZA()(),t.TgZ(6,"mat-card")(7,"mat-card-title"),t._uU(8,"Select the stats you want to achieve"),t.qZA(),t.TgZ(9,"mat-card-subtitle"),t._uU(10,"The heart of this tool. Select the stats you want! "),t.TgZ(11,"mat-icon",2,3),t._uU(13," info "),t.qZA()(),t.TgZ(14,"mat-card-content"),t._UZ(15,"app-desired-stat-selection"),t.qZA()(),t.TgZ(16,"mat-card")(17,"mat-card-title"),t._uU(18,"Armor Selection"),t.qZA(),t.TgZ(19,"mat-card-subtitle"),t._uU(20," This section allows you to limit the armor pieces that are used in the buildcrafting process."),t._UZ(21,"br"),t._uU(22," If you want, limit all results to one exotic. "),t._UZ(23,"br"),t._uU(24," Exotics you do not have in the inventory or vault are grayed out. "),t.qZA(),t.TgZ(25,"mat-card-content"),t._UZ(26,"app-desired-exotic-selection"),t.qZA()(),t.TgZ(27,"mat-card")(28,"mat-card-title"),t._uU(29,"Armor limitation"),t.qZA(),t.TgZ(30,"mat-card-subtitle"),t._uU(31," This section allows you to further specify what kind of armor and mods you want. "),t.qZA(),t.TgZ(32,"mat-card-content"),t._UZ(33,"app-desired-mod-selection"),t.qZA()(),t.TgZ(34,"mat-card")(35,"mat-card-title"),t._uU(36,"Stat-Boost Selection"),t.qZA(),t.TgZ(37,"mat-card-subtitle"),t._uU(38,"Select Mods and Skills that affect your overall stats."),t._UZ(39,"br"),t._uU(40," Please note that D2AP also allows theoretical, but impossible input."),t._UZ(41,"br"),t.TgZ(42,"b"),t._uU(43,"Only fragments that affect stats are shown."),t.qZA()(),t.TgZ(44,"mat-card-content"),t._UZ(45,"app-desired-mods-selection"),t.qZA()(),t.TgZ(46,"mat-card")(47,"mat-card-title"),t._uU(48,"Advanced Settings"),t.qZA(),t.TgZ(49,"mat-card-subtitle"),t._uU(50,"More settings! Use them to fine-tune your buildcrafting process."),t.qZA(),t.TgZ(51,"mat-card-content"),t._UZ(52,"app-advanced-settings"),t.qZA()(),t.TgZ(53,"mat-card")(54,"mat-card-title"),t._uU(55,"Disabled Armor Pieces"),t.qZA(),t.TgZ(56,"mat-card-subtitle"),t._uU(57," These armor pieces are disabled. Click them to enable them again."),t._UZ(58,"br"),t._uU(59," They won't show up in any results."),t._UZ(60,"br"),t._uU(61," You can disable items in the detailed result overview. "),t.qZA(),t.TgZ(62,"mat-card-content"),t._UZ(63,"app-ignored-items-list"),t.qZA()(),t.TgZ(64,"mat-card")(65,"mat-card-title"),t._uU(66,"Configuration Management"),t.qZA(),t.TgZ(67,"mat-card-subtitle"),t._uU(68,"Save and load your buildcrafting settings for another day!"),t.qZA(),t.TgZ(69,"mat-card-content"),t._UZ(70,"app-load-and-save-settings"),t.qZA()()())},dependencies:[L.a8,L.dn,L.n5,L.$j,ut.gM,Zt.Hw,pr,Pr,el,ml,sc,dc,Lc,Kc],styles:["#card-config[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;display:inline-block;vertical-align:top;white-space:normal;margin-bottom:20px;margin-left:3px;margin-right:3px}#card-config[_ngcontent-%COMP%] > mat-card[_ngcontent-%COMP%]{margin-bottom:4px}#content-char-selection[_ngcontent-%COMP%]{margin-bottom:0}"]}),n})(),Xc=(()=>{class n{constructor(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-armor-picker-page"]],decls:3,vars:0,consts:[["id","container"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"app-settings")(2,"app-results"),t.qZA())},dependencies:[$c,be],styles:["#container[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;margin-right:3px;white-space:nowrap}"]}),n})();const Oe=function(){return["","Mobility","Resilience","Recovery","Discipline","Intellect","Strength"]};function tm(n,i){if(1&n&&(t.TgZ(0,"tr",27)(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td",22)(4,"div",28),t._UZ(5,"div",29),t.TgZ(6,"span",30),t._uU(7),t.ALo(8,"number"),t.qZA()()()()),2&n){const e=t.oxw().index,o=t.oxw(2).index,a=t.oxw();t.Q6J("matTooltip",t.DdM(9,Oe)[e]),t.xp6(2),t.hij(" ",t.DdM(10,Oe)[e]," "),t.xp6(3),t.Jzz("width:",a.clusterInformation[o].mean[e]/32*100,"%"),t.xp6(2),t.hij(" ",t.xi3(8,6,a.clusterInformation[o].mean[e],"1.0-0")," ")}}function em(n,i){if(1&n&&(t.ynx(0),t.YNc(1,tm,9,11,"tr",26),t.BQk()),2&n){const e=i.index;t.xp6(1),t.Q6J("ngIf",e>0)}}function nm(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-card",21)(1,"mat-card-title"),t._uU(2),t.qZA(),t.TgZ(3,"mat-card-subtitle"),t._uU(4),t.qZA(),t.TgZ(5,"mat-card-content")(6,"div")(7,"table",22),t.YNc(8,em,2,1,"ng-container",18),t.qZA()(),t.TgZ(9,"mat-form-field",23)(10,"mat-label"),t._uU(11,"DIM Search Query"),t.qZA(),t._UZ(12,"input",24),t.qZA(),t.TgZ(13,"button",25),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.openSnackBar("Copied the DIM search query to your clipboard."))}),t._uU(14," Copy DIM query to clipboard "),t.qZA()()()}if(2&n){const e=t.oxw(),o=e.index,a=e.$implicit,s=t.oxw();t.xp6(2),t.hij(" Cluster ",o+1," "),t.xp6(2),t.AsE(" Contains ",a.length," item",a.length>1?"s":""," "),t.xp6(4),t.Q6J("ngForOf",s.clusterInformation[o].mean),t.xp6(4),t.Q6J("value",s.getDIMStringForCluster(a)),t.xp6(1),t.Q6J("cdkCopyToClipboard",s.getDIMStringForCluster(a))}}function om(n,i){if(1&n&&(t.ynx(0),t.YNc(1,nm,15,6,"mat-card",20),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngIf",e.length>0)}}var Me=[{id:0,size:214,centroids:[5.242990654205609,3.4392523364485994,23.074766355140188,4.52336448598131,17.99532710280374,8.074766355140188],std:[3.262185500658884,3.137958193527344,2.0745611905196912,3.223158380401712,2.6478649185881147,3.356022774004607,3.3823650213485315],mean:[62.350467289719624,5.242990654205608,3.439252336448598,23.074766355140188,4.5233644859813085,17.99532710280374,8.074766355140186]},{id:1,size:264,centroids:[13.613636363636365,3.060606060606063,14.431818181818182,6.731060606060606,12.575757575757574,10.575757575757576],std:[4.915624932359143,2.735897756946947,1.897597343200423,3.036390647550984,3.2253188618447473,3.0097969617389406,3.1372197425220545],mean:[60.98863636363637,13.613636363636363,3.0606060606060606,14.431818181818182,6.731060606060606,12.575757575757576,10.575757575757576]},{id:2,size:220,centroids:[5.209090909090909,15.586363636363636,10.936363636363636,13.281818181818181,13.604545454545452,3.8818181818181836],std:[3.3631090204013643,2.931782865076046,2.9200605883727038,3.289049973803757,2.6349662061268395,2.6591750828428204,2.395703224398619],mean:[62.5,5.209090909090909,15.586363636363636,10.936363636363636,13.281818181818181,13.604545454545455,3.881818181818182]},{id:3,size:230,centroids:[8.6,15.330434782608698,6.943478260869563,6.408695652173913,5.578260869565216,18.26086956521739],std:[4.27370926113142,3.855014315301441,3.2487061290912984,3.5081098914433078,3.559587955581114,3.1761194803539676,3.596667444705349],mean:[61.12173913043478,8.6,15.330434782608696,6.943478260869565,6.408695652173913,5.578260869565217,18.26086956521739]},{id:4,size:261,centroids:[11.74712643678161,5.655172413793104,13.873563218390803,11.022988505747126,16.57088122605364,3.0038314176245224],std:[3.5878146263573103,2.8197860971981994,2.9890605143791737,2.9825309245974925,2.7497287061744258,2.8324620286123516,1.8428616632651005],mean:[61.87356321839081,11.74712643678161,5.655172413793103,13.873563218390805,11.022988505747126,16.57088122605364,3.003831417624521]},{id:5,size:249,centroids:[6.598393574297189,7.2289156626506035,7.674698795180722,6.831325301204822,5.995983935742974,7.425702811244981],std:[12.188382924990831,3.7780346472852226,3.7855581933977014,3.9659084518463055,3.2508780840166134,2.4288222155150856,3.23718036285365],mean:[41.75502008032129,6.598393574297189,7.228915662650603,7.674698795180723,6.831325301204819,5.995983935742972,7.42570281124498]},{id:6,size:241,centroids:[4.580912863070541,10.62655601659751,15.72199170124481,20.186721991701248,5.7634854771784205,4.8672199170124495],std:[4.0360666526825675,2.5776864620318327,2.726712032141287,2.7236414380869185,3.4135743182998106,3.164594939982558,2.8952195061747896],mean:[61.74688796680498,4.580912863070539,10.62655601659751,15.721991701244812,20.186721991701244,5.763485477178423,4.867219917012448]},{id:7,size:352,centroids:[4.96875,10.849431818181818,15.676136363636362,5.085227272727275,13.079545454545453,12.113636363636365],std:[3.864447558701623,2.876694966732471,2.825917840642513,2.8500410080793133,2.604753041986593,2.753797030174534,3.084495990290069],mean:[61.77272727272727,4.96875,10.849431818181818,15.676136363636363,5.0852272727272725,13.079545454545455,12.113636363636363]},{id:8,size:219,centroids:[21.401826484018265,4.529680365296804,4.954337899543379,14.022831050228312,7.168949771689496,6.8036529680365305],std:[7.654498360234386,3.856746305047457,3.0774088630224354,3.486239910130717,4.509361233853425,3.691515724130434,3.433882092856456],mean:[58.881278538812786,21.401826484018265,4.529680365296803,4.954337899543379,14.02283105022831,7.168949771689498,6.80365296803653]},{id:9,size:183,centroids:[4.448087431693989,22.114754098360656,4.868852459016392,7.459016393442623,11.240437158469945,9.765027322404372],std:[7.900837110469869,3.265921971202623,3.896032191192026,3.424902708986657,3.3556927380910535,3.7206143627650876,3.9564220813839577],mean:[59.89617486338798,4.448087431693989,22.114754098360656,4.868852459016393,7.459016393442623,11.240437158469945,9.765027322404372]},{id:10,size:197,centroids:[13.563451776649746,10.761421319796954,6.527918781725887,20.654822335025383,4.934010152284262,5.18274111675127],std:[4.239153654030002,3.3077343290831713,2.8924486501981233,2.9338771160608355,3.5098461495889413,3.192898794854312,2.920215710334156],mean:[61.6243654822335,13.563451776649746,10.761421319796954,6.527918781725888,20.65482233502538,4.934010152284264,5.182741116751269]},{id:11,size:176,centroids:[8.255681818181818,16.181818181818183,7.11931818181818,4.619318181818182,21.0625,5.505681818181819],std:[3.349621998445128,3.4620343467651815,3.3296776490755446,2.945693532873097,2.7583580190103967,3.126214049887545,3.078027492852078],mean:[62.74431818181818,8.255681818181818,16.181818181818183,7.119318181818182,4.619318181818182,21.0625,5.505681818181818]},{id:12,size:194,centroids:[3.5670103092783503,14.773195876288659,13.036082474226804,13.185567010309278,4.979381443298967,12.144329896907218],std:[3.89886364980042,2.255251632823776,2.5893570716174388,3.248552824613239,3.1004926799108317,2.8845824993776903,2.8864151735009584],mean:[61.68556701030928,3.5670103092783507,14.77319587628866,13.036082474226804,13.185567010309278,4.979381443298969,12.144329896907216]},{id:13,size:302,centroids:[5.311258278145695,4.4701986754966905,21.897350993377486,10.688741721854305,6.834437086092715,12.605960264900663],std:[5.1142628152416245,2.9920946350614983,2.6882491851253567,3.071581172564087,2.99431450280505,3.116626644660552,2.58548804104293],mean:[61.80794701986755,5.311258278145695,4.470198675496689,21.897350993377483,10.688741721854305,6.8344370860927155,12.605960264900663]},{id:14,size:364,centroids:[12.263736263736265,11.32967032967033,5.936813186813188,8.524725274725274,12.07142857142857,7.782967032967034],std:[6.666392881793753,2.8942239993391565,2.947866371540881,3.041289192757803,3.0876888182534996,2.4540644069260296,2.6803305558675676],mean:[57.90934065934066,12.263736263736265,11.32967032967033,5.936813186813187,8.524725274725276,12.071428571428571,7.782967032967033]},{id:15,size:219,centroids:[6.981735159817351,5.9908675799086755,18.127853881278536,4.97716894977169,5.182648401826483,20.89041095890411],std:[4.3335830659244685,3.5503759593138464,3.5270785628911785,4.123339305032141,2.7998081886699646,3.283747903424203,2.8311584355558064],mean:[62.15068493150685,6.981735159817352,5.9908675799086755,18.12785388127854,4.9771689497716896,5.1826484018264845,20.89041095890411]},{id:16,size:147,centroids:[6.285714285714285,20.836734693877553,4.8639455782312915,17.510204081632654,5.897959183673469,7.394557823129253],std:[3.358145469360083,3.4877476344546254,3.2245649941865486,3.0557367019327,4.0937094190209065,3.1136788219952605,3.842013283457479],mean:[62.7891156462585,6.285714285714286,20.836734693877553,4.863945578231292,17.510204081632654,5.8979591836734695,7.394557823129252]},{id:17,size:202,centroids:[18.425742574257423,6.871287128712871,6.678217821782177,5.06930693069307,20.40594059405941,5.876237623762377],std:[3.0226636827682554,3.292828132097339,3.518715749263091,3.4627255810748356,3.075363266145594,3.5804283293104753,3.315804113390658],mean:[63.32673267326733,18.425742574257427,6.871287128712871,6.678217821782178,5.069306930693069,20.405940594059405,5.876237623762377]},{id:18,size:286,centroids:[11.22027972027972,7.073426573426573,12.65034965034965,12.594405594405593,4.209790209790211,13.220279720279722],std:[4.720510224882134,2.8685361372318168,2.6005789112305338,3.052197922484291,2.451602446915686,2.7244266014541174,2.7638787756329526],mean:[60.96853146853147,11.22027972027972,7.073426573426573,12.65034965034965,12.594405594405595,4.20979020979021,13.22027972027972]},{id:19,size:197,centroids:[6.263959390862944,8.568527918781726,16.80710659898477,4.000000000000003,22.593908629441625,4.883248730964468],std:[2.7333118141791917,3.3626657547151964,3.4540163497542435,2.646397291854302,2.565469285152567,3.018237668617547,2.8287109641017594],mean:[63.11675126903553,6.2639593908629445,8.568527918781726,16.80710659898477,4,22.593908629441625,4.883248730964467]},{id:20,size:279,centroids:[18.025089605734767,6.150537634408602,6.161290322580646,5.767025089605736,7.999999999999998,15.602150537634408],std:[6.590788110639117,3.6436721401086296,3.165505073725202,3.13700467469825,2.7769973891540207,3.4672154149710614,4.017425492621824],mean:[59.70609318996416,18.025089605734767,6.150537634408602,6.161290322580645,5.767025089605735,8,15.602150537634408]},{id:21,size:78,centroids:[15.96153846153846,16.85897435897436,16.807692307692307,3552713678800501e-30,5329070518200751e-30,-5329070518200751e-30],std:[2.095815090231219,7.438828122504502,7.482836393563639,8.12413063050432,0,0,0],mean:[49.62820512820513,15.961538461538462,16.858974358974358,16.807692307692307,0,0,0]},{id:22,size:137,centroids:[4.525547445255475,3.583941605839417,23.532846715328468,19.948905109489054,4.3576642335766405,6.248175182481752],std:[2.9351806639916567,2.7575572416084317,2.2707939003224227,2.908029186302962,3.3306093063017315,2.6644092885703916,3.4848010785869454],mean:[62.197080291970806,4.525547445255475,3.5839416058394162,23.532846715328468,19.94890510948905,4.357664233576642,6.248175182481752]},{id:23,size:194,centroids:[13.242268041237114,3.5103092783505163,14.675257731958762,19.55154639175258,6.139175257731957,5.092783505154641],std:[3.810494814771566,2.886105181640385,2.0818477512276696,2.6197152448917316,3.409818599464837,3.0311357231629183,2.9733966349516936],mean:[62.21134020618557,13.242268041237113,3.5103092783505154,14.675257731958762,19.551546391752577,6.139175257731959,5.092783505154639]},{id:24,size:239,centroids:[5.569037656903766,5.401673640167365,20.92468619246862,13.09205020920502,13.497907949790793,4.096234309623432],std:[3.8502204432228733,3.071015816571908,3.081143061480697,2.79904271710946,2.169280265760518,2.62802363192924,2.3450167178621983],mean:[62.58158995815899,5.569037656903766,5.401673640167364,20.92468619246862,13.092050209205022,13.497907949790795,4.096234309623431]}];let im=(()=>{class n{constructor(e,o,a){this.db=e,this._snackBar=o,this.inventory=a,this.clusterInformation=Me,this.items=[],this.clusters=[],this.exoticFilter=0,this.masterworkFilter=0,this.classFilter=-1,this.clusterInformation=Me.sort((s,r)=>r.mean[3]-s.mean[3])}ngAfterViewInit(){var e=this;return(0,T.Z)(function*(){e.inventory.inventory.pipe((0,J.b)(200)).subscribe((0,T.Z)(function*(){yield e.Update(),e.openSnackBar("Clusters were updated.")}))})()}Update(){var e=this;return(0,T.Z)(function*(){var o=(yield e.db.inventoryArmor.toArray()).filter(r=>r.source===B.Inventory),a=[];for(let r=0;r`id:'${o.itemInstanceId}'`).join(" or ")}vectorDistance(e,o){return Math.sqrt(e.reduce((a,s,r)=>a+Math.pow(s-o[r],2),0))}getClusterid(e){var o=Number.MAX_VALUE,a=-1;for(let r=0;r=3?3:0),"")}}const ke=function(){return["Mobility","Resilience","Recovery","Discipline","Intellect","Strength"]};function rm(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"tr",16)(2,"td"),t._uU(3),t.qZA(),t.TgZ(4,"td"),t._uU(5),t.ALo(6,"number"),t.qZA(),t.TgZ(7,"td",17)(8,"div",18),t.YNc(9,sm,1,6,"div",19),t.qZA()()(),t.BQk()),2&n){const e=i.$implicit,o=i.index,a=t.oxw().$implicit;t.xp6(1),t.Q6J("matTooltip",t.DdM(7,ke)[o]),t.xp6(2),t.hij(" ",t.DdM(8,ke)[o]," "),t.xp6(2),t.Oqu(t.xi3(6,4,a.totalStats[o],"1.0-0")),t.xp6(4),t.Q6J("ngForOf",e)}}function lm(n,i){if(1&n&&(t.TgZ(0,"tr")(1,"td")(2,"a",20),t._UZ(3,"img",15),t.qZA(),t._uU(4),t.qZA(),t.TgZ(5,"td",21),t._uU(6),t.qZA(),t.TgZ(7,"td"),t._uU(8),t.qZA()()),2&n){const e=i.$implicit,o=t.oxw(3);t.xp6(2),t.MGl("href","https://data.destinysets.com/i/InventoryItem:",e,"",t.LSH),t.xp6(2),t.hij(" ",e,""),t.xp6(2),t.Oqu(o.getPlugSum(e)),t.xp6(2),t.Oqu(o.getPlugString(e))}}const cm=function(n,i,e,o,a,s){return[n,i,e,o,a,s]};function mm(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"mat-card",12)(2,"mat-card-title"),t._uU(3),t.qZA(),t.TgZ(4,"mat-card-content")(5,"table")(6,"tr")(7,"td",13),t._uU(8,"Hash:"),t.qZA(),t.TgZ(9,"td")(10,"a",14),t._UZ(11,"img",15),t.qZA(),t._uU(12),t.qZA()(),t.TgZ(13,"tr")(14,"td",13),t._uU(15,"ItemInstanceId:"),t.qZA(),t.TgZ(16,"td"),t._uU(17),t.qZA()(),t.TgZ(18,"tr")(19,"td",13),t._uU(20,"Sunset?"),t.qZA(),t.TgZ(21,"td"),t._uU(22),t.qZA()(),t.TgZ(23,"tr")(24,"td"),t._uU(25,"Total"),t.qZA(),t.TgZ(26,"td"),t._uU(27),t.qZA()(),t.YNc(28,rm,10,9,"ng-container",10),t.qZA()(),t.TgZ(29,"mat-card-content"),t._uU(30," Plugs: "),t.TgZ(31,"table")(32,"tr")(33,"td"),t._uU(34,"Plug"),t.qZA(),t.TgZ(35,"td"),t._uU(36,"Total"),t.qZA(),t.TgZ(37,"td"),t._uU(38,"Values"),t.qZA()(),t.YNc(39,lm,9,4,"tr",10),t.qZA()()(),t.BQk()),2&n){const e=i.$implicit;t.xp6(3),t.hij(" ",e.name," "),t.xp6(7),t.MGl("href","https://data.destinysets.com/i/InventoryItem:",e.hash,"",t.LSH),t.xp6(2),t.hij(" ",e.hash,""),t.xp6(5),t.Oqu(e.itemInstanceId),t.xp6(5),t.Oqu(e.isSunset),t.xp6(5),t.Oqu(e.totalSum),t.xp6(1),t.Q6J("ngForOf",t.HTZ(8,cm,e.mobility,e.resilience,e.recovery,e.discipline,e.intellect,e.strength)),t.xp6(11),t.Q6J("ngForOf",e.statPlugHashes)}}function dm(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"mat-toolbar"),t._uU(2),t.qZA(),t._UZ(3,"br"),t.TgZ(4,"div",11),t.YNc(5,mm,40,15,"ng-container",10),t.qZA(),t.BQk()),2&n){const e=i.$implicit,o=t.oxw();t.xp6(2),t.hij(" ",o.getCategoryName(e.key)," "),t.xp6(3),t.Q6J("ngForOf",e.value)}}let um=(()=>{class n{constructor(e,o){this.inventory=e,this.db=o,this.minMobility=0,this.minResilience=0,this.minRecovery=0,this.minDiscipline=0,this.minIntellect=0,this.minStrength=0,this.anyPlugWithN=0,this.anyPlugBelowN=17,this.allPlugsWithN=0,this.allPlugsBelowN=17,this.armorName="",this.armorHash="",this.armorId="",this.armorItemsPerSlot=new Map,this.plugData={},this.ngUnsubscribe=new R.xQ}ngOnInit(){var e=this;this.inventory.inventory.pipe((0,J.b)(10),(0,Ct.R)(this.ngUnsubscribe)).subscribe((0,T.Z)(function*(){e.updateItems()}))}getPlugString(e){var o=this.plugData[e];let a=[0,0,0,0,0,0];for(let s of o.investmentStats)switch(s.statTypeHash){case 2996146975:a[0]+=s.value;break;case 392767087:a[1]+=s.value;break;case 1943323491:a[2]+=s.value;break;case 1735777505:a[3]+=s.value;break;case 144602215:a[4]+=s.value;break;case 4244567218:a[5]+=s.value}return"["+a.join(" ")+"]"}updateItems(){var e=this;return(0,T.Z)(function*(){const a=(yield e.db.manifestArmor.toArray()).filter(d=>19==d.itemType);let s=Object.fromEntries(a.map(d=>[d.hash,d]));e.plugData=s;let r=(yield e.db.inventoryArmor.toArray()).filter(d=>d.source===B.Inventory).sort((d,p)=>(""+d.name).localeCompare(p.name)).map(d=>{var p={name:d.name,hash:d.hash,isSunset:d.isSunset,itemInstanceId:d.itemInstanceId,statPlugHashes:d.statPlugHashes,mobility:[],resilience:[],recovery:[],discipline:[],intellect:[],strength:[],totalStats:[0,0,0,0,0,0],totalSum:0,slot:d.slot};if(d.statPlugHashes)for(let u of d.statPlugHashes){var A=s[u];for(let M of A.investmentStats)switch(M.statTypeHash){case 2996146975:p.mobility.push(M.value),p.totalStats[0]+=M.value;break;case 392767087:p.resilience.push(M.value),p.totalStats[1]+=M.value;break;case 1943323491:p.recovery.push(M.value),p.totalStats[2]+=M.value;break;case 1735777505:p.discipline.push(M.value),p.totalStats[3]+=M.value;break;case 144602215:p.intellect.push(M.value),p.totalStats[4]+=M.value;break;case 4244567218:p.strength.push(M.value),p.totalStats[5]+=M.value}}if(d.investmentStats)for(let u of d.investmentStats)switch(u.statTypeHash){case 2996146975:p.mobility.push(u.value),p.totalStats[0]+=u.value;break;case 392767087:p.resilience.push(u.value),p.totalStats[1]+=u.value;break;case 1943323491:p.recovery.push(u.value),p.totalStats[2]+=u.value;break;case 1735777505:p.discipline.push(u.value),p.totalStats[3]+=u.value;break;case 144602215:p.intellect.push(u.value),p.totalStats[4]+=u.value;break;case 4244567218:p.strength.push(u.value),p.totalStats[5]+=u.value}for(let u of p.totalStats)p.totalSum+=u;return p});r=e.filterItems(r),e.armorItemsPerSlot=r.reduce((d,p)=>{const A=p.slot?p.slot:10;return d.has(A)||d.set(A,[]),d.get(A)?.push(p),d},new Map)})()}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}getCategoryName(e){switch(e){case 1:return"Helmets";case 2:return"Gauntlets";case 3:return"Chest Pieces";case 4:return"Legs";case 5:return"Class Items"}return"Unknown Category"}getPlugSum(e){var o=this.plugData[e],a=0;for(let s of o.investmentStats)switch(s.statTypeHash){case 2996146975:case 392767087:case 1943323491:case 1735777505:case 144602215:case 4244567218:a+=s.value}return a}clear(){this.armorName="",this.armorHash="",this.armorId="",this.minMobility=0,this.minResilience=0,this.minRecovery=0,this.minDiscipline=0,this.minIntellect=0,this.minStrength=0,this.anyPlugWithN=0,this.anyPlugBelowN=17}filterItems(e){return this.armorName&&(e=e.filter(o=>o.name.toLowerCase().indexOf(this.armorName)>-1)),this.armorHash&&(e=e.filter(o=>(o.hash||0).toString().indexOf(this.armorHash)>-1)),this.armorId&&(e=e.filter(o=>(o.itemInstanceId||0).toString().indexOf(this.armorId)>-1)),e=(e=(e=(e=(e=(e=e.filter(o=>o.totalStats[0]>=(this.minMobility||0))).filter(o=>o.totalStats[1]>=(this.minResilience||0))).filter(o=>o.totalStats[2]>=(this.minRecovery||0))).filter(o=>o.totalStats[3]>=(this.minDiscipline||0))).filter(o=>o.totalStats[4]>=(this.minIntellect||0))).filter(o=>o.totalStats[5]>=(this.minStrength||0)),(this.anyPlugWithN??0)>0&&(e=e.filter(o=>(o.statPlugHashes||[]).filter(a=>this.getPlugSum(a)>=(this.anyPlugWithN||0)).length>0)),(this.anyPlugBelowN??0)<17&&(e=e.filter(o=>(o.statPlugHashes||[]).filter(a=>this.getPlugSum(a)<=(this.anyPlugBelowN||0)).length>0)),(this.allPlugsWithN??0)>0&&(e=e.filter(o=>0==(o.statPlugHashes||[]).filter(a=>this.getPlugSum(a)<(this.allPlugsWithN||0)).length)),(this.allPlugsBelowN??0)<17&&(e=e.filter(o=>0==(o.statPlugHashes||[]).filter(a=>this.getPlugSum(a)>(this.allPlugsBelowN||0)).length)),e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(bt),t.Y36(S))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-armor-investigation-page"]],decls:112,vars:26,consts:[["id","description"],["href","https://www.reddit.com/r/DestinyTheGame/comments/mpaopq/how_armor_stats_roll_an_advanced_insight_into/","target","_blank"],["colspan","3"],["appearance","outline"],["matInput","","placeholder","Stronghold",3,"ngModel","ngModelChange"],["matInput","",3,"ngModel","ngModelChange"],["max","32","min","0","step","1","thumbLabel","","tickInterval","1",3,"value","valueChange"],["max","17","min","0","step","1","thumbLabel","","tickInterval","1",3,"value","valueChange"],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","","color","warn",3,"click"],[4,"ngFor","ngForOf"],["fxLayout","row","fxLayout.xs","column","fxLayoutGap","10px",1,"armor-container"],[1,"cluster-item"],["colspan","2"],["alt","This armor on data.destinysets.com","target","_blank",3,"href"],["src","https://data.destinysets.com/static/media/logo.556bd7bd.svg",2,"width","15px"],[3,"matTooltip"],["width","100%"],[1,"stat-range"],[3,"class","style",4,"ngFor","ngForOf"],["alt","This plug on data.destinysets.com","target","_blank",3,"href"],[1,"plug-sum-col"]],template:function(e,o){1&e&&(t.TgZ(0,"mat-card",0)(1,"mat-card-title"),t._uU(2," Armor Investigation "),t.qZA(),t.TgZ(3,"mat-card-subtitle"),t._uU(4," A visualization tool for data scientists. "),t.qZA(),t.TgZ(5,"mat-card-content"),t._uU(6," This part of the D2ArmorPicker lists all of your armor items. For each armor it shows how it is generated. It shows every used "),t.TgZ(7,"i"),t._uU(8,'"plug"'),t.qZA(),t._uU(9,", as well as the intrinsic stats of exotics. For more information about plugs, see "),t.TgZ(10,"a",1),t._uU(11,"here"),t.qZA(),t._uU(12,". Make sure to give the author an upvote for the hard work! "),t._UZ(13,"br")(14,"br"),t._uU(15," Please note that this feature is mainly targeted for data nerds and people interested in the basic stats of armor. It is just a data visualization. Mobile layout and a search function "),t.TgZ(16,"i"),t._uU(17,"may"),t.qZA(),t._uU(18," happen in the future. "),t.qZA(),t.TgZ(19,"mat-card-title"),t._uU(20," Filters "),t.qZA(),t.TgZ(21,"mat-card-subtitle"),t._uU(22," Some filters. Nothing fancy but it works. Sorry ;) "),t.qZA(),t.TgZ(23,"mat-card-content")(24,"table")(25,"tr")(26,"td",2)(27,"mat-form-field",3)(28,"mat-label"),t._uU(29,"Item Name"),t.qZA(),t.TgZ(30,"input",4),t.NdJ("ngModelChange",function(s){return o.armorName=s}),t.qZA()()(),t.TgZ(31,"td",2)(32,"mat-form-field",3)(33,"mat-label"),t._uU(34,"Item Hash"),t.qZA(),t.TgZ(35,"input",5),t.NdJ("ngModelChange",function(s){return o.armorHash=s}),t.qZA()()(),t.TgZ(36,"td",2)(37,"mat-form-field",3)(38,"mat-label"),t._uU(39,"Item ID"),t.qZA(),t.TgZ(40,"input",5),t.NdJ("ngModelChange",function(s){return o.armorId=s}),t.qZA()()()(),t.TgZ(41,"tr")(42,"td"),t._uU(43," Mobility: "),t.qZA(),t.TgZ(44,"td"),t._uU(45),t.qZA(),t.TgZ(46,"td")(47,"mat-slider",6),t.NdJ("valueChange",function(s){return o.minMobility=s}),t.qZA()(),t.TgZ(48,"td"),t._uU(49," Resilience: "),t.qZA(),t.TgZ(50,"td"),t._uU(51),t.qZA(),t.TgZ(52,"td")(53,"mat-slider",6),t.NdJ("valueChange",function(s){return o.minResilience=s}),t.qZA()(),t.TgZ(54,"td"),t._uU(55," Recovery: "),t.qZA(),t.TgZ(56,"td"),t._uU(57),t.qZA(),t.TgZ(58,"td")(59,"mat-slider",6),t.NdJ("valueChange",function(s){return o.minRecovery=s}),t.qZA()()(),t.TgZ(60,"tr")(61,"td"),t._uU(62," Discipline: "),t.qZA(),t.TgZ(63,"td"),t._uU(64),t.qZA(),t.TgZ(65,"td")(66,"mat-slider",6),t.NdJ("valueChange",function(s){return o.minDiscipline=s}),t.qZA()(),t.TgZ(67,"td"),t._uU(68," Intellect: "),t.qZA(),t.TgZ(69,"td"),t._uU(70),t.qZA(),t.TgZ(71,"td")(72,"mat-slider",6),t.NdJ("valueChange",function(s){return o.minIntellect=s}),t.qZA()(),t.TgZ(73,"td"),t._uU(74," Strength: "),t.qZA(),t.TgZ(75,"td"),t._uU(76),t.qZA(),t.TgZ(77,"td")(78,"mat-slider",6),t.NdJ("valueChange",function(s){return o.minStrength=s}),t.qZA()()(),t.TgZ(79,"tr")(80,"td"),t._uU(81," Any plug >=: "),t.qZA(),t.TgZ(82,"td"),t._uU(83),t.qZA(),t.TgZ(84,"td")(85,"mat-slider",7),t.NdJ("valueChange",function(s){return o.anyPlugWithN=s}),t.qZA()(),t.TgZ(86,"td"),t._uU(87," Any Plug <=: "),t.qZA(),t.TgZ(88,"td"),t._uU(89),t.qZA(),t.TgZ(90,"td")(91,"mat-slider",7),t.NdJ("valueChange",function(s){return o.anyPlugBelowN=s}),t.qZA()()(),t.TgZ(92,"tr")(93,"td"),t._uU(94," All plugs >=: "),t.qZA(),t.TgZ(95,"td"),t._uU(96),t.qZA(),t.TgZ(97,"td")(98,"mat-slider",7),t.NdJ("valueChange",function(s){return o.allPlugsWithN=s}),t.qZA()(),t.TgZ(99,"td"),t._uU(100," All Plugs <=: "),t.qZA(),t.TgZ(101,"td"),t._uU(102),t.qZA(),t.TgZ(103,"td")(104,"mat-slider",7),t.NdJ("valueChange",function(s){return o.allPlugsBelowN=s}),t.qZA()()()(),t.TgZ(105,"a",8),t.NdJ("click",function(){return o.updateItems()}),t._uU(106,"Update"),t.qZA(),t._uU(107,"\xa0 "),t.TgZ(108,"a",9),t.NdJ("click",function(){return o.clear()}),t._uU(109,"Clear"),t.qZA()()(),t.YNc(110,dm,6,2,"ng-container",10),t.ALo(111,"keyvalue")),2&e&&(t.xp6(30),t.Q6J("ngModel",o.armorName),t.xp6(5),t.Q6J("ngModel",o.armorHash),t.xp6(5),t.Q6J("ngModel",o.armorId),t.xp6(5),t.hij(" ",o.minMobility,""),t.xp6(2),t.Q6J("value",o.minMobility),t.xp6(4),t.hij(" ",o.minResilience,""),t.xp6(2),t.Q6J("value",o.minResilience),t.xp6(4),t.hij(" ",o.minRecovery,""),t.xp6(2),t.Q6J("value",o.minRecovery),t.xp6(5),t.hij(" ",o.minDiscipline,""),t.xp6(2),t.Q6J("value",o.minDiscipline),t.xp6(4),t.hij(" ",o.minIntellect,""),t.xp6(2),t.Q6J("value",o.minIntellect),t.xp6(4),t.Oqu(o.minStrength),t.xp6(2),t.Q6J("value",o.minStrength),t.xp6(5),t.Oqu(o.anyPlugWithN),t.xp6(2),t.Q6J("value",o.anyPlugWithN),t.xp6(4),t.Oqu(o.anyPlugBelowN),t.xp6(2),t.Q6J("value",o.anyPlugBelowN),t.xp6(5),t.Oqu(o.allPlugsWithN),t.xp6(2),t.Q6J("value",o.allPlugsWithN),t.xp6(4),t.Oqu(o.allPlugsBelowN),t.xp6(2),t.Q6J("value",o.allPlugsBelowN),t.xp6(6),t.Q6J("ngForOf",t.lcZ(111,24,o.armorItemsPerSlot)))},dependencies:[Z.sg,gt.xw,gt.SQ,wt.Fj,wt.JJ,wt.On,st.zs,Pt.KE,Pt.hX,am.pH,ne.Nt,L.a8,L.dn,L.n5,L.$j,ut.gM,ht.Ye,Z.JJ,Z.Nd],styles:["#description[_ngcontent-%COMP%], #filter[_ngcontent-%COMP%]{max-width:700px;margin-bottom:10px;margin-left:auto;margin-right:auto}.cluster-item[_ngcontent-%COMP%]{flex-grow:1;flex-basis:0;min-width:250px;max-width:350px;margin-bottom:10px}.armor-container[_ngcontent-%COMP%], .plug-sum-col[_ngcontent-%COMP%]{padding-left:5px}.armor-container[_ngcontent-%COMP%]{flex-wrap:wrap}.stat-range[_ngcontent-%COMP%]{height:20px;width:100%;margin-bottom:3px;float:left;background-color:gray}.stat-range-bar[_ngcontent-%COMP%]{height:100%;float:left;background-color:#fff}.stat-range-bar0[_ngcontent-%COMP%]{background-color:#acfff1}.stat-range-bar1[_ngcontent-%COMP%]{background-color:#5e9eff}.stat-range-bar3[_ngcontent-%COMP%]{background-color:#ffc2ac}.stat-range-bar4[_ngcontent-%COMP%]{background-color:#ffb45e}.stat-range-bar2[_ngcontent-%COMP%], .stat-range-bar5[_ngcontent-%COMP%]{background-color:#c246ff}a[_ngcontent-%COMP%]{color:#99afe3}a[_ngcontent-%COMP%]:visited{color:#7294dc}"]}),n})(),pm=(()=>{class n{constructor(e,o,a){this.db=e,this.inv=o,this.loginService=a}downloadArmorInformation(){var e=this;return(0,T.Z)(function*(){const o=yield e.db.inventoryArmor.toArray(),a=window.URL.createObjectURL(new Blob([JSON.stringify(o,null,2)])),s=document.createElement("a");s.href=a,s.setAttribute("download","d2ap_armor.json"),document.body.appendChild(s),s.click()})()}downloadManifestInformation(){var e=this;return(0,T.Z)(function*(){const o=yield e.db.manifestArmor.toArray(),a=window.URL.createObjectURL(new Blob([JSON.stringify(o,null,1)])),s=document.createElement("a");s.href=a,s.setAttribute("download","d2ap_manifest.json"),document.body.appendChild(s),s.click()})()}resetDatabase(){var e=this;return(0,T.Z)(function*(){yield e.db.resetDatabase(),yield e.inv.refreshAll(!0,!0)})()}resetEverything(){var e=this;return(0,T.Z)(function*(){localStorage.clear(),yield e.db.resetDatabase(),yield e.loginService.logout()})()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(S),t.Y36(bt),t.Y36(pt))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-account-config-page"]],decls:35,vars:0,consts:[["id","account-config-container"],["color","primary","fxShow","false","fxShow.lt-md","true","mat-raised-button","","routerLink","/",1,"returnbutton"],["color","primary","mat-raised-button","",1,"btn-download",3,"click"],["color","warn","mat-raised-button","",1,"btn-download",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"a",1),t._uU(2," Return to D2ArmorPicker "),t.qZA(),t.TgZ(3,"mat-card")(4,"mat-card-title"),t._uU(5," Account Configuration "),t.qZA(),t.TgZ(6,"mat-card-subtitle"),t._uU(7," The configuration on this page will not be reset when you reset your build settings. "),t.qZA(),t.TgZ(8,"mat-card-content"),t._uU(9,' This will come in a future update. Right now, I just wanted to push the "Debugging" section out. '),t.qZA()(),t.TgZ(10,"mat-card")(11,"mat-card-title"),t._uU(12," Debugging "),t.qZA(),t.TgZ(13,"mat-card-subtitle"),t._uU(14," Some options for debugging purposes. "),t.qZA(),t.TgZ(15,"mat-card-content"),t._uU(16," If the team asks you to send some specific data, you can find it here:"),t._UZ(17,"br"),t.TgZ(18,"a",2),t.NdJ("click",function(){return o.downloadArmorInformation()}),t._uU(19," Download armor information (d2ap_armor.json) "),t.qZA(),t.TgZ(20,"a",2),t.NdJ("click",function(){return o.downloadManifestInformation()}),t._uU(21," Download manifest information (d2ap_manifest.json) "),t.qZA(),t._UZ(22,"br")(23,"br"),t._uU(24," If you experience issues with the local database - for example, exotics not being found, try this:"),t._UZ(25,"br"),t.TgZ(26,"a",3),t.NdJ("click",function(){return o.resetDatabase()}),t._uU(27," Delete Database "),t.qZA(),t._UZ(28,"br"),t._uU(29," If you really want to reset EVERYTHING, use this: "),t._UZ(30,"br"),t.TgZ(31,"a",3),t.NdJ("click",function(){return o.resetEverything()}),t._uU(32," Reset the whole application "),t.qZA()()(),t.TgZ(33,"a",1),t._uU(34," Return to D2ArmorPicker "),t.qZA()())},dependencies:[O.b8,st.zs,L.a8,L.dn,L.n5,L.$j,y.yS],styles:[".returnbutton[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:15px;width:100%}#account-config-container[_ngcontent-%COMP%]{max-width:800px;margin-left:auto;margin-right:auto}mat-card[_ngcontent-%COMP%]{margin-bottom:8px}.btn-download[_ngcontent-%COMP%]{margin-right:10px}"]}),n})();var gm=g(4661),Ee=g(7331);const _m=[{path:"",component:Xe,canActivate:[_],children:[{path:"",component:Xc},{path:"help",component:ys},{path:"cluster",component:im},{path:"investigate",component:um},{path:"theory",loadChildren:()=>g.e(613).then(g.bind(g,8613)).then(n=>n.TheorizerPageModule)},{path:"account",component:pm}]},{path:"login",component:Ht,canActivate:[C]},{path:"login-bungie",component:Rt},{path:"**",redirectTo:"/"}];let fm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n,bootstrap:[Vt]}),n.\u0275inj=t.cJS({imports:[Z.ez,gm.V,m.b2,Ft.PW,Et.JF,y.Bz.forRoot(_m,{useHash:!0}),te.Iq,U.xu]}),n})();t.B6R(be,function(){return[Z.sg,Z.O5,gt.xw,gt.SQ,gt.Wh,gt.yH,st.lW,Pt.KE,Pt.hX,Pt.R9,ne.Nt,G.BZ,G.fO,G.as,G.w1,G.Dz,G.nj,G.ge,G.ev,G.XQ,G.Gk,L.a8,L.dn,L.n5,L.$j,L.hq,ut.gM,Zt.Hw,de.YE,de.nU,Ce.NW,Ee.qn,Ee.HS,ds,Tr]},function(){return[Z.JJ]}),t.B6R(ye,function(){return[st.lW,kt.ZT,kt.uh,kt.xY,kt.H8,we]},[]),h.N.production&&(0,t.G48)(),m.q6().bootstrapModule(fm).catch(n=>console.error(n))}},ft=>{ft.O(0,[736],()=>ft(ft.s=1379)),ft.O()}]); \ No newline at end of file diff --git a/runtime.5b702f1def7a1659.js b/runtime.f94ee669c5492423.js similarity index 95% rename from runtime.5b702f1def7a1659.js rename to runtime.f94ee669c5492423.js index 7b901eeb..4c7f4a3a 100644 --- a/runtime.5b702f1def7a1659.js +++ b/runtime.f94ee669c5492423.js @@ -1 +1 @@ -(()=>{"use strict";var e,m={},v={};function r(e){var n=v[e];if(void 0!==n)return n.exports;var t=v[e]={id:e,loaded:!1,exports:{}};return m[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=m,r.c=v,e=[],r.O=(n,t,o,f)=>{if(!t){var a=1/0;for(i=0;i=f)&&Object.keys(r.O).every(b=>r.O[b](t[l]))?t.splice(l--,1):(c=!1,f0&&e[i-1][2]>f;i--)e[i]=e[i-1];e[i]=[t,o,f]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{613:"7e58c29d7f8694a9",982:"5f2b0369cca5f87e"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="D2ArmorPicker:";r.l=(t,o,f,i)=>{if(e[t])e[t].push(o);else{var a,c;if(void 0!==f)for(var l=document.getElementsByTagName("script"),d=0;d{a.onerror=a.onload=null,clearTimeout(p);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(_=>_(b)),g)return g(b)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),c&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{r.b=document.baseURI||self.location.href;var e={666:0};r.f.j=(o,f)=>{var i=r.o(e,o)?e[o]:void 0;if(0!==i)if(i)f.push(i[2]);else if(666!=o){var a=new Promise((u,s)=>i=e[o]=[u,s]);f.push(i[2]=a);var c=r.p+r.u(o),l=new Error;r.l(c,u=>{if(r.o(e,o)&&(0!==(i=e[o])&&(e[o]=void 0),i)){var s=u&&("load"===u.type?"missing":u.type),p=u&&u.target&&u.target.src;l.message="Loading chunk "+o+" failed.\n("+s+": "+p+")",l.name="ChunkLoadError",l.type=s,l.request=p,i[1](l)}},"chunk-"+o,o)}else e[o]=0},r.O.j=o=>0===e[o];var n=(o,f)=>{var l,d,[i,a,c]=f,u=0;if(i.some(p=>0!==e[p])){for(l in a)r.o(a,l)&&(r.m[l]=a[l]);if(c)var s=c(r)}for(o&&o(f);u{"use strict";var e,m={},v={};function r(e){var n=v[e];if(void 0!==n)return n.exports;var t=v[e]={id:e,loaded:!1,exports:{}};return m[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=m,r.c=v,e=[],r.O=(n,t,o,f)=>{if(!t){var a=1/0;for(i=0;i=f)&&Object.keys(r.O).every(b=>r.O[b](t[l]))?t.splice(l--,1):(c=!1,f0&&e[i-1][2]>f;i--)e[i]=e[i-1];e[i]=[t,o,f]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{613:"7e58c29d7f8694a9",982:"f0fd7edb63d23e43"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="D2ArmorPicker:";r.l=(t,o,f,i)=>{if(e[t])e[t].push(o);else{var a,c;if(void 0!==f)for(var l=document.getElementsByTagName("script"),d=0;d{a.onerror=a.onload=null,clearTimeout(p);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(_=>_(b)),g)return g(b)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),c&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{r.b=document.baseURI||self.location.href;var e={666:0};r.f.j=(o,f)=>{var i=r.o(e,o)?e[o]:void 0;if(0!==i)if(i)f.push(i[2]);else if(666!=o){var a=new Promise((u,s)=>i=e[o]=[u,s]);f.push(i[2]=a);var c=r.p+r.u(o),l=new Error;r.l(c,u=>{if(r.o(e,o)&&(0!==(i=e[o])&&(e[o]=void 0),i)){var s=u&&("load"===u.type?"missing":u.type),p=u&&u.target&&u.target.src;l.message="Loading chunk "+o+" failed.\n("+s+": "+p+")",l.name="ChunkLoadError",l.type=s,l.request=p,i[1](l)}},"chunk-"+o,o)}else e[o]=0},r.O.j=o=>0===e[o];var n=(o,f)=>{var l,d,[i,a,c]=f,u=0;if(i.some(p=>0!==e[p])){for(l in a)r.o(a,l)&&(r.m[l]=a[l]);if(c)var s=c(r)}for(o&&o(f);u{"use strict";const{AbortController:ke,AbortSignal:u}=typeof self<"u"?self:typeof window<"u"?window:void 0;Ct.exports=ke,Ct.exports.AbortSignal=u,Ct.exports.default=ke},5343:(Ct,ke)=>{"use strict";ke.byteLength=function g(F){var z=h(F),we=z[1];return 3*(z[0]+we)/4-we},ke.toByteArray=function B(F){var z,ie,ae=h(F),we=ae[0],ue=ae[1],le=new a(function w(F,z,ae){return 3*(z+ae)/4-ae}(0,we,ue)),ge=0,W=ue>0?we-4:we;for(ie=0;ie>16&255,le[ge++]=z>>8&255,le[ge++]=255&z;return 2===ue&&(z=i[F.charCodeAt(ie)]<<2|i[F.charCodeAt(ie+1)]>>4,le[ge++]=255&z),1===ue&&(z=i[F.charCodeAt(ie)]<<10|i[F.charCodeAt(ie+1)]<<4|i[F.charCodeAt(ie+2)]>>2,le[ge++]=z>>8&255,le[ge++]=255&z),le},ke.fromByteArray=function k(F){for(var z,ae=F.length,we=ae%3,ue=[],ge=0,W=ae-we;geW?W:ge+16383));return 1===we?ue.push(u[(z=F[ae-1])>>2]+u[z<<4&63]+"=="):2===we&&ue.push(u[(z=(F[ae-2]<<8)+F[ae-1])>>10]+u[z>>4&63]+u[z<<2&63]+"="),ue.join("")};for(var u=[],i=[],a=typeof Uint8Array<"u"?Uint8Array:Array,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",v=0,b=c.length;v0)throw new Error("Invalid string. Length must be a multiple of 4");var ae=F.indexOf("=");return-1===ae&&(ae=z),[ae,ae===z?0:4-ae%4]}function O(F){return u[F>>18&63]+u[F>>12&63]+u[F>>6&63]+u[63&F]}function P(F,z,ae){for(var ue=[],le=z;le{"use strict";var i=u(5343),a=u(8461),c="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;ke.Buffer=g,ke.SlowBuffer=function le(ee){return+ee!=ee&&(ee=0),g.alloc(+ee)},ke.INSPECT_MAX_BYTES=50;var v=2147483647;function h(ee){if(ee>v)throw new RangeError('The value "'+ee+'" is invalid for option "size"');var R=new Uint8Array(ee);return Object.setPrototypeOf(R,g.prototype),R}function g(ee,R,U){if("number"==typeof ee){if("string"==typeof R)throw new TypeError('The "string" argument must be of type string. Received type number');return P(ee)}return w(ee,R,U)}function w(ee,R,U){if("string"==typeof ee)return function k(ee,R){if(("string"!=typeof R||""===R)&&(R="utf8"),!g.isEncoding(R))throw new TypeError("Unknown encoding: "+R);var U=0|ge(ee,R),Re=h(U),x=Re.write(ee,R);return x!==U&&(Re=Re.slice(0,x)),Re}(ee,R);if(ArrayBuffer.isView(ee))return function z(ee){if(nt(ee,Uint8Array)){var R=new Uint8Array(ee);return ae(R.buffer,R.byteOffset,R.byteLength)}return F(ee)}(ee);if(null==ee)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ee);if(nt(ee,ArrayBuffer)||ee&&nt(ee.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(nt(ee,SharedArrayBuffer)||ee&&nt(ee.buffer,SharedArrayBuffer)))return ae(ee,R,U);if("number"==typeof ee)throw new TypeError('The "value" argument must not be of type number. Received type number');var Re=ee.valueOf&&ee.valueOf();if(null!=Re&&Re!==ee)return g.from(Re,R,U);var x=function we(ee){if(g.isBuffer(ee)){var R=0|ue(ee.length),U=h(R);return 0===U.length||ee.copy(U,0,0,R),U}return void 0!==ee.length?"number"!=typeof ee.length||Q(ee.length)?h(0):F(ee):"Buffer"===ee.type&&Array.isArray(ee.data)?F(ee.data):void 0}(ee);if(x)return x;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof ee[Symbol.toPrimitive])return g.from(ee[Symbol.toPrimitive]("string"),R,U);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ee)}function B(ee){if("number"!=typeof ee)throw new TypeError('"size" argument must be of type number');if(ee<0)throw new RangeError('The value "'+ee+'" is invalid for option "size"')}function P(ee){return B(ee),h(ee<0?0:0|ue(ee))}function F(ee){for(var R=ee.length<0?0:0|ue(ee.length),U=h(R),Re=0;Re=v)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+v.toString(16)+" bytes");return 0|ee}function ge(ee,R){if(g.isBuffer(ee))return ee.length;if(ArrayBuffer.isView(ee)||nt(ee,ArrayBuffer))return ee.byteLength;if("string"!=typeof ee)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ee);var U=ee.length,Re=arguments.length>2&&!0===arguments[2];if(!Re&&0===U)return 0;for(var x=!1;;)switch(R){case"ascii":case"latin1":case"binary":return U;case"utf8":case"utf-8":return et(ee).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*U;case"hex":return U>>>1;case"base64":return We(ee).length;default:if(x)return Re?-1:et(ee).length;R=(""+R).toLowerCase(),x=!0}}function W(ee,R,U){var Re=!1;if((void 0===R||R<0)&&(R=0),R>this.length||((void 0===U||U>this.length)&&(U=this.length),U<=0)||(U>>>=0)<=(R>>>=0))return"";for(ee||(ee="utf8");;)switch(ee){case"hex":return Dt(this,R,U);case"utf8":case"utf-8":return Xe(this,R,U);case"ascii":return ht(this,R,U);case"latin1":case"binary":return Yt(this,R,U);case"base64":return me(this,R,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return jt(this,R,U);default:if(Re)throw new TypeError("Unknown encoding: "+ee);ee=(ee+"").toLowerCase(),Re=!0}}function ie(ee,R,U){var Re=ee[R];ee[R]=ee[U],ee[U]=Re}function he(ee,R,U,Re,x){if(0===ee.length)return-1;if("string"==typeof U?(Re=U,U=0):U>2147483647?U=2147483647:U<-2147483648&&(U=-2147483648),Q(U=+U)&&(U=x?0:ee.length-1),U<0&&(U=ee.length+U),U>=ee.length){if(x)return-1;U=ee.length-1}else if(U<0){if(!x)return-1;U=0}if("string"==typeof R&&(R=g.from(R,Re)),g.isBuffer(R))return 0===R.length?-1:se(ee,R,U,Re,x);if("number"==typeof R)return R&=255,"function"==typeof Uint8Array.prototype.indexOf?x?Uint8Array.prototype.indexOf.call(ee,R,U):Uint8Array.prototype.lastIndexOf.call(ee,R,U):se(ee,[R],U,Re,x);throw new TypeError("val must be string, number or Buffer")}function se(ee,R,U,Re,x){var X,p=1,m=ee.length,j=R.length;if(void 0!==Re&&("ucs2"===(Re=String(Re).toLowerCase())||"ucs-2"===Re||"utf16le"===Re||"utf-16le"===Re)){if(ee.length<2||R.length<2)return-1;p=2,m/=2,j/=2,U/=2}function de(T,ve){return 1===p?T[ve]:T.readUInt16BE(ve*p)}if(x){var H=-1;for(X=U;Xm&&(U=m-j),X=U;X>=0;X--){for(var f=!0,_=0;_x&&(Re=x):Re=x;var p=R.length;Re>p/2&&(Re=p/2);for(var m=0;m>8,p.push(U%256),p.push(Re);return p}(R,ee.length-U),ee,U,Re)}function me(ee,R,U){return i.fromByteArray(0===R&&U===ee.length?ee:ee.slice(R,U))}function Xe(ee,R,U){U=Math.min(ee.length,U);for(var Re=[],x=R;x239?4:p>223?3:p>191?2:1;if(x+j<=U)switch(j){case 1:p<128&&(m=p);break;case 2:128==(192&(de=ee[x+1]))&&(f=(31&p)<<6|63&de)>127&&(m=f);break;case 3:X=ee[x+2],128==(192&(de=ee[x+1]))&&128==(192&X)&&(f=(15&p)<<12|(63&de)<<6|63&X)>2047&&(f<55296||f>57343)&&(m=f);break;case 4:X=ee[x+2],H=ee[x+3],128==(192&(de=ee[x+1]))&&128==(192&X)&&128==(192&H)&&(f=(15&p)<<18|(63&de)<<12|(63&X)<<6|63&H)>65535&&f<1114112&&(m=f)}null===m?(m=65533,j=1):m>65535&&(Re.push((m-=65536)>>>10&1023|55296),m=56320|1023&m),Re.push(m),x+=j}return function _t(ee){var R=ee.length;if(R<=4096)return String.fromCharCode.apply(String,ee);for(var U="",Re=0;ReRe)&&(U=Re);for(var x="",p=R;pU)throw new RangeError("Trying to access beyond buffer length")}function Ee(ee,R,U,Re,x,p){if(!g.isBuffer(ee))throw new TypeError('"buffer" argument must be a Buffer instance');if(R>x||Ree.length)throw new RangeError("Index out of range")}function oe(ee,R,U,Re,x,p){if(U+Re>ee.length)throw new RangeError("Index out of range");if(U<0)throw new RangeError("Index out of range")}function _e(ee,R,U,Re,x){return R=+R,U>>>=0,x||oe(ee,0,U,4),a.write(ee,R,U,Re,23,4),U+4}function Oe(ee,R,U,Re,x){return R=+R,U>>>=0,x||oe(ee,0,U,8),a.write(ee,R,U,Re,52,8),U+8}ke.kMaxLength=v,!(g.TYPED_ARRAY_SUPPORT=function b(){try{var ee=new Uint8Array(1),R={foo:function(){return 42}};return Object.setPrototypeOf(R,Uint8Array.prototype),Object.setPrototypeOf(ee,R),42===ee.foo()}catch{return!1}}())&&typeof console<"u"&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.byteOffset}}),g.poolSize=8192,g.from=function(ee,R,U){return w(ee,R,U)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array),g.alloc=function(ee,R,U){return function O(ee,R,U){return B(ee),ee<=0?h(ee):void 0!==R?"string"==typeof U?h(ee).fill(R,U):h(ee).fill(R):h(ee)}(ee,R,U)},g.allocUnsafe=function(ee){return P(ee)},g.allocUnsafeSlow=function(ee){return P(ee)},g.isBuffer=function(R){return null!=R&&!0===R._isBuffer&&R!==g.prototype},g.compare=function(R,U){if(nt(R,Uint8Array)&&(R=g.from(R,R.offset,R.byteLength)),nt(U,Uint8Array)&&(U=g.from(U,U.offset,U.byteLength)),!g.isBuffer(R)||!g.isBuffer(U))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(R===U)return 0;for(var Re=R.length,x=U.length,p=0,m=Math.min(Re,x);px.length?g.from(m).copy(x,p):Uint8Array.prototype.set.call(x,m,p);else{if(!g.isBuffer(m))throw new TypeError('"list" argument must be an Array of Buffers');m.copy(x,p)}p+=m.length}return x},g.byteLength=ge,g.prototype._isBuffer=!0,g.prototype.swap16=function(){var R=this.length;if(R%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var U=0;UU&&(R+=" ... "),""},c&&(g.prototype[c]=g.prototype.inspect),g.prototype.compare=function(R,U,Re,x,p){if(nt(R,Uint8Array)&&(R=g.from(R,R.offset,R.byteLength)),!g.isBuffer(R))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof R);if(void 0===U&&(U=0),void 0===Re&&(Re=R?R.length:0),void 0===x&&(x=0),void 0===p&&(p=this.length),U<0||Re>R.length||x<0||p>this.length)throw new RangeError("out of range index");if(x>=p&&U>=Re)return 0;if(x>=p)return-1;if(U>=Re)return 1;if(this===R)return 0;for(var m=(p>>>=0)-(x>>>=0),j=(Re>>>=0)-(U>>>=0),de=Math.min(m,j),X=this.slice(x,p),H=R.slice(U,Re),f=0;f>>=0,isFinite(Re)?(Re>>>=0,void 0===x&&(x="utf8")):(x=Re,Re=void 0)}var p=this.length-U;if((void 0===Re||Re>p)&&(Re=p),R.length>0&&(Re<0||U<0)||U>this.length)throw new RangeError("Attempt to write outside buffer bounds");x||(x="utf8");for(var m=!1;;)switch(x){case"hex":return Me(this,R,U,Re);case"utf8":case"utf-8":return Ge(this,R,U,Re);case"ascii":case"latin1":case"binary":return it(this,R,U,Re);case"base64":return Ke(this,R,U,Re);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return tt(this,R,U,Re);default:if(m)throw new TypeError("Unknown encoding: "+x);x=(""+x).toLowerCase(),m=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},g.prototype.slice=function(R,U){var Re=this.length;(R=~~R)<0?(R+=Re)<0&&(R=0):R>Re&&(R=Re),(U=void 0===U?Re:~~U)<0?(U+=Re)<0&&(U=0):U>Re&&(U=Re),U>>=0,U>>>=0,Re||V(R,U,this.length);for(var x=this[R],p=1,m=0;++m>>=0,U>>>=0,Re||V(R,U,this.length);for(var x=this[R+--U],p=1;U>0&&(p*=256);)x+=this[R+--U]*p;return x},g.prototype.readUint8=g.prototype.readUInt8=function(R,U){return R>>>=0,U||V(R,1,this.length),this[R]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(R,U){return R>>>=0,U||V(R,2,this.length),this[R]|this[R+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(R,U){return R>>>=0,U||V(R,2,this.length),this[R]<<8|this[R+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(R,U){return R>>>=0,U||V(R,4,this.length),(this[R]|this[R+1]<<8|this[R+2]<<16)+16777216*this[R+3]},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(R,U){return R>>>=0,U||V(R,4,this.length),16777216*this[R]+(this[R+1]<<16|this[R+2]<<8|this[R+3])},g.prototype.readIntLE=function(R,U,Re){R>>>=0,U>>>=0,Re||V(R,U,this.length);for(var x=this[R],p=1,m=0;++m=(p*=128)&&(x-=Math.pow(2,8*U)),x},g.prototype.readIntBE=function(R,U,Re){R>>>=0,U>>>=0,Re||V(R,U,this.length);for(var x=U,p=1,m=this[R+--x];x>0&&(p*=256);)m+=this[R+--x]*p;return m>=(p*=128)&&(m-=Math.pow(2,8*U)),m},g.prototype.readInt8=function(R,U){return R>>>=0,U||V(R,1,this.length),128&this[R]?-1*(255-this[R]+1):this[R]},g.prototype.readInt16LE=function(R,U){R>>>=0,U||V(R,2,this.length);var Re=this[R]|this[R+1]<<8;return 32768&Re?4294901760|Re:Re},g.prototype.readInt16BE=function(R,U){R>>>=0,U||V(R,2,this.length);var Re=this[R+1]|this[R]<<8;return 32768&Re?4294901760|Re:Re},g.prototype.readInt32LE=function(R,U){return R>>>=0,U||V(R,4,this.length),this[R]|this[R+1]<<8|this[R+2]<<16|this[R+3]<<24},g.prototype.readInt32BE=function(R,U){return R>>>=0,U||V(R,4,this.length),this[R]<<24|this[R+1]<<16|this[R+2]<<8|this[R+3]},g.prototype.readFloatLE=function(R,U){return R>>>=0,U||V(R,4,this.length),a.read(this,R,!0,23,4)},g.prototype.readFloatBE=function(R,U){return R>>>=0,U||V(R,4,this.length),a.read(this,R,!1,23,4)},g.prototype.readDoubleLE=function(R,U){return R>>>=0,U||V(R,8,this.length),a.read(this,R,!0,52,8)},g.prototype.readDoubleBE=function(R,U){return R>>>=0,U||V(R,8,this.length),a.read(this,R,!1,52,8)},g.prototype.writeUintLE=g.prototype.writeUIntLE=function(R,U,Re,x){R=+R,U>>>=0,Re>>>=0,x||Ee(this,R,U,Re,Math.pow(2,8*Re)-1,0);var m=1,j=0;for(this[U]=255&R;++j>>=0,Re>>>=0,x||Ee(this,R,U,Re,Math.pow(2,8*Re)-1,0);var m=Re-1,j=1;for(this[U+m]=255&R;--m>=0&&(j*=256);)this[U+m]=R/j&255;return U+Re},g.prototype.writeUint8=g.prototype.writeUInt8=function(R,U,Re){return R=+R,U>>>=0,Re||Ee(this,R,U,1,255,0),this[U]=255&R,U+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(R,U,Re){return R=+R,U>>>=0,Re||Ee(this,R,U,2,65535,0),this[U]=255&R,this[U+1]=R>>>8,U+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(R,U,Re){return R=+R,U>>>=0,Re||Ee(this,R,U,2,65535,0),this[U]=R>>>8,this[U+1]=255&R,U+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(R,U,Re){return R=+R,U>>>=0,Re||Ee(this,R,U,4,4294967295,0),this[U+3]=R>>>24,this[U+2]=R>>>16,this[U+1]=R>>>8,this[U]=255&R,U+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(R,U,Re){return R=+R,U>>>=0,Re||Ee(this,R,U,4,4294967295,0),this[U]=R>>>24,this[U+1]=R>>>16,this[U+2]=R>>>8,this[U+3]=255&R,U+4},g.prototype.writeIntLE=function(R,U,Re,x){if(R=+R,U>>>=0,!x){var p=Math.pow(2,8*Re-1);Ee(this,R,U,Re,p-1,-p)}var m=0,j=1,de=0;for(this[U]=255&R;++m>0)-de&255;return U+Re},g.prototype.writeIntBE=function(R,U,Re,x){if(R=+R,U>>>=0,!x){var p=Math.pow(2,8*Re-1);Ee(this,R,U,Re,p-1,-p)}var m=Re-1,j=1,de=0;for(this[U+m]=255&R;--m>=0&&(j*=256);)R<0&&0===de&&0!==this[U+m+1]&&(de=1),this[U+m]=(R/j>>0)-de&255;return U+Re},g.prototype.writeInt8=function(R,U,Re){return R=+R,U>>>=0,Re||Ee(this,R,U,1,127,-128),R<0&&(R=255+R+1),this[U]=255&R,U+1},g.prototype.writeInt16LE=function(R,U,Re){return R=+R,U>>>=0,Re||Ee(this,R,U,2,32767,-32768),this[U]=255&R,this[U+1]=R>>>8,U+2},g.prototype.writeInt16BE=function(R,U,Re){return R=+R,U>>>=0,Re||Ee(this,R,U,2,32767,-32768),this[U]=R>>>8,this[U+1]=255&R,U+2},g.prototype.writeInt32LE=function(R,U,Re){return R=+R,U>>>=0,Re||Ee(this,R,U,4,2147483647,-2147483648),this[U]=255&R,this[U+1]=R>>>8,this[U+2]=R>>>16,this[U+3]=R>>>24,U+4},g.prototype.writeInt32BE=function(R,U,Re){return R=+R,U>>>=0,Re||Ee(this,R,U,4,2147483647,-2147483648),R<0&&(R=4294967295+R+1),this[U]=R>>>24,this[U+1]=R>>>16,this[U+2]=R>>>8,this[U+3]=255&R,U+4},g.prototype.writeFloatLE=function(R,U,Re){return _e(this,R,U,!0,Re)},g.prototype.writeFloatBE=function(R,U,Re){return _e(this,R,U,!1,Re)},g.prototype.writeDoubleLE=function(R,U,Re){return Oe(this,R,U,!0,Re)},g.prototype.writeDoubleBE=function(R,U,Re){return Oe(this,R,U,!1,Re)},g.prototype.copy=function(R,U,Re,x){if(!g.isBuffer(R))throw new TypeError("argument should be a Buffer");if(Re||(Re=0),!x&&0!==x&&(x=this.length),U>=R.length&&(U=R.length),U||(U=0),x>0&&x=this.length)throw new RangeError("Index out of range");if(x<0)throw new RangeError("sourceEnd out of bounds");x>this.length&&(x=this.length),R.length-U>>=0,Re=void 0===Re?this.length:Re>>>0,R||(R=0),"number"==typeof R)for(m=U;m55295&&U<57344){if(!x){if(U>56319){(R-=3)>-1&&p.push(239,191,189);continue}if(m+1===Re){(R-=3)>-1&&p.push(239,191,189);continue}x=U;continue}if(U<56320){(R-=3)>-1&&p.push(239,191,189),x=U;continue}U=65536+(x-55296<<10|U-56320)}else x&&(R-=3)>-1&&p.push(239,191,189);if(x=null,U<128){if((R-=1)<0)break;p.push(U)}else if(U<2048){if((R-=2)<0)break;p.push(U>>6|192,63&U|128)}else if(U<65536){if((R-=3)<0)break;p.push(U>>12|224,U>>6&63|128,63&U|128)}else{if(!(U<1114112))throw new Error("Invalid code point");if((R-=4)<0)break;p.push(U>>18|240,U>>12&63|128,U>>6&63|128,63&U|128)}}return p}function We(ee){return i.toByteArray(function be(ee){if((ee=(ee=ee.split("=")[0]).trim().replace(at,"")).length<2)return"";for(;ee.length%4!=0;)ee+="=";return ee}(ee))}function wt(ee,R,U,Re){for(var x=0;x=R.length||x>=ee.length);++x)R[x+U]=ee[x];return x}function nt(ee,R){return ee instanceof R||null!=ee&&null!=ee.constructor&&null!=ee.constructor.name&&ee.constructor.name===R.name}function Q(ee){return ee!=ee}var Le=function(){for(var ee="0123456789abcdef",R=new Array(256),U=0;U<16;++U)for(var Re=16*U,x=0;x<16;++x)R[Re+x]=ee[U]+ee[x];return R}()},2629:function(Ct){Ct.exports=function(){"use strict";var ke=function(o,d){return(ke=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,L){E.__proto__=L}||function(E,L){for(var Z in L)Object.prototype.hasOwnProperty.call(L,Z)&&(E[Z]=L[Z])})(o,d)},u=function(){return(u=Object.assign||function(o){for(var d,E=1,L=arguments.length;E"u"||a.Promise||(a.Promise=Promise);var h=Object.getPrototypeOf,g={}.hasOwnProperty;function w(o,d){return g.call(o,d)}function B(o,d){"function"==typeof d&&(d=d(h(o))),(typeof Reflect>"u"?c:Reflect.ownKeys)(d).forEach(function(E){P(o,E,d[E])})}var O=Object.defineProperty;function P(o,d,E,L){O(o,d,b(E&&w(E,"get")&&"function"==typeof E.get?{get:E.get,set:E.set,configurable:!0}:{value:E,configurable:!0,writable:!0},L))}function k(o){return{from:function(d){return o.prototype=Object.create(d.prototype),P(o.prototype,"constructor",o),{extend:B.bind(null,o.prototype)}}}}var F=Object.getOwnPropertyDescriptor,z=[].slice;function ae(o,d,E){return z.call(o,d,E)}function we(o,d){return d(o)}function ue(o){if(!o)throw new Error("Assertion Failed")}function le(o){a.setImmediate?setImmediate(o):setTimeout(o,0)}function ge(o,d){if("string"==typeof d&&w(o,d))return o[d];if(!d)return o;if("string"!=typeof d){for(var E=[],L=0,Z=d.length;L"u"?[]:function(){var o=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[o,h(o),o];var d=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[d,h(d),o]}())[1])&&Ji.then,(m=fi[0])&&m.constructor),de=!!(fi=fi[2]),X=function(o,d){St.push([o,d]),f&&(queueMicrotask(Ce),f=!1)},H=!0,f=!0,_=[],T=[],ve=gt,Je={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:Mt,pgp:!1,env:{},finalize:Mt},$e=Je,St=[],dt=0,Et=[];function ye(o){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var d=this._PSD=$e;if("function"!=typeof o){if(o!==x)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&Fe(this,this._value))}this._state=null,this._value=null,++d.ref,function E(L,Z){try{Z(function(De){if(null===L._state){if(De===L)throw new TypeError("A promise cannot be resolved with itself.");var Ze=L._lib&&Ye();De&&"function"==typeof De.then?E(L,function(pt,At){De instanceof ye?De._then(pt,At):De.then(pt,At)}):(L._state=!0,L._value=De,ot(L)),Ze&&Pe()}},Fe.bind(null,L))}catch(De){Fe(L,De)}}(this,o)}var qe={get:function(){var o=$e,d=qt;function E(L,Z){var De=this,Ze=!o.global&&(o!==$e||d!==qt),pt=Ze&&!Rt(),At=new ye(function(vt,Tt){ce(De,new xe(kn(L,o,Ze,pt),kn(Z,o,Ze,pt),vt,Tt,o))});return this._consoleTask&&(At._consoleTask=this._consoleTask),At}return E.prototype=x,E},set:function(o){P(this,"then",o&&o.prototype===x?qe:{get:function(){return o},set:qe.set})}};function xe(o,d,E,L,Z){this.onFulfilled="function"==typeof o?o:null,this.onRejected="function"==typeof d?d:null,this.resolve=E,this.reject=L,this.psd=Z}function Fe(o,d){var E,L;T.push(d),null===o._state&&(E=o._lib&&Ye(),d=ve(d),o._state=!1,o._value=d,L=o,_.some(function(Z){return Z._value===L._value})||_.push(L),ot(o),E&&Pe())}function ot(o){var d=o._listeners;o._listeners=[];for(var E=0,L=d.length;E.",fe="String expected.",re=[],Se="__dbnames",mt="readonly",Gt="readwrite";function rn(o,d){return o?d?function(){return o.apply(this,arguments)&&d.apply(this,arguments)}:o:d}var Tn={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function En(o){return"string"!=typeof o||/\./.test(o)?function(d){return d}:function(d){return void 0===d[o]&&o in d&&delete(d=it(d))[o],d}}function ci(){throw at.Type()}function An(o,d){try{var E=ni(o),L=ni(d);if(E!==L)return"Array"===E?1:"Array"===L?-1:"binary"===E?1:"binary"===L?-1:"string"===E?1:"string"===L?-1:"Date"===E?1:"Date"!==L?NaN:-1;switch(E){case"number":case"Date":case"string":return dQt+tn&&Wt(Qt+Lt)})})}(0).then(function(){if(0"u"?ye.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(Lt){function Ot(){return indexedDB.databases().finally(Lt)}At=setInterval(Ot,100),Ot()}).finally(function(){return clearInterval(At)}):Promise.resolve()).then(function pt(){return new ye(function(Lt,Ot){if(Ze(),!E)throw new at.MissingAPI;var Ft=o.name,Nt=d.autoSchema||!Z?E.open(Ft):E.open(Ft,Z);if(!Nt)throw new at.MissingAPI;Nt.onerror=Ni(Ot),Nt.onblocked=ct(o._fireOnBlocked),Nt.onupgradeneeded=ct(function(Vt){var Wt;Tt=Nt.transaction,d.autoSchema&&!o._options.allowEmptyDB?(Nt.onerror=Ar,Tt.abort(),Nt.result.close(),(Wt=E.deleteDatabase(Ft)).onsuccess=Wt.onerror=ct(function(){Ot(new at.NoSuchDatabase("Database ".concat(Ft," doesnt exist")))})):(Tt.onerror=Ni(Ot),Vt=Vt.oldVersion>Math.pow(2,62)?0:Vt.oldVersion,xt=Vt<1,o.idbdb=Nt.result,De&&function Fr(o,d){Jn(o._dbSchema,d),d.db.version%10!=0||d.objectStoreNames.contains("$meta")||d.db.createObjectStore("$meta").add(Math.ceil(d.db.version/10-1),"version");var E=Cr(0,o.idbdb,d);vi(o,o._dbSchema,d);for(var L=0,Z=Rr(E,o._dbSchema).change;L=Lt})).length?(Tt.forEach(function(Wt){Nt.push(function(){var zt=Vt,Qt=Wt._cfg.dbschema;vi(xt,zt,Ft),vi(xt,Qt,Ft),Vt=xt._dbSchema=Qt;var tn=Rr(zt,Qt);tn.add.forEach(function(vn){br(Ft,vn[0],vn[1].primKey,vn[1].indexes)}),tn.change.forEach(function(vn){if(vn.recreate)throw new at.Upgrade("Not yet support for changing primary key");var yn=Ft.objectStore(vn.name);vn.add.forEach(function(cn){return wr(yn,cn)}),vn.change.forEach(function(cn){yn.deleteIndex(cn.name),wr(yn,cn)}),vn.del.forEach(function(cn){return yn.deleteIndex(cn)})});var sn=Wt._cfg.contentUpgrade;if(sn&&Wt._cfg.version>Lt){pr(xt,Ft),Ot._memoizedTables={};var _n=ie(Qt);tn.del.forEach(function(vn){_n[vn]=zt[vn]}),wi(xt,[xt.Transaction.prototype]),lr(xt,[xt.Transaction.prototype],c(_n),_n),Ot.schema=_n;var hn,gn=Yt(sn);return gn&&bn(),tn=ye.follow(function(){var vn;(hn=sn(Ot))&&gn&&(vn=Rt.bind(null,null),hn.then(vn,vn))}),hn&&"function"==typeof hn.then?ye.resolve(hn):tn.then(function(){return hn})}}),Nt.push(function(zt){var Qt,tn;Qt=Wt._cfg.dbschema,[].slice.call((tn=zt).db.objectStoreNames).forEach(function(_n){return null==Qt[_n]&&tn.db.deleteObjectStore(_n)}),wi(xt,[xt.Transaction.prototype]),lr(xt,[xt.Transaction.prototype],xt._storeNames,xt._dbSchema),Ot.schema=xt._dbSchema}),Nt.push(function(zt){xt.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(xt.idbdb.version/10)===Wt._cfg.version?(xt.idbdb.deleteObjectStore("$meta"),delete xt._dbSchema.$meta,xt._storeNames=xt._storeNames.filter(function(Qt){return"$meta"!==Qt})):zt.objectStore("$meta").put(Wt._cfg.version,"version"))})}),function Wt(){return Nt.length?ye.resolve(Nt.shift()(Ot.idbtrans)).then(Wt):ye.resolve()}().then(function(){Jn(Vt,Ft)})):ye.resolve();var xt,Lt,Ot,Ft,Nt,Vt}).catch(Ze)):(c(Z).forEach(function(Tt){br(E,Tt,Z[Tt].primKey,Z[Tt].indexes)}),pr(o,E),void ye.follow(function(){return o.on.populate.fire(De)}).catch(Ze));var At,vt})}(o,Vt/10,Tt,Ot))},Ot),Nt.onsuccess=ct(function(){Tt=null;var Vt,Wt,zt,Qt,tn,sn=o.idbdb=Nt.result,_n=ae(sn.objectStoreNames);if(0<_n.length)try{var hn=sn.transaction(1===(Qt=_n).length?Qt[0]:Qt,"readonly");if(d.autoSchema)zt=hn,(Vt=o).verno=(Wt=sn).version/10,zt=Vt._dbSchema=Cr(0,Wt,zt),Vt._storeNames=ae(Wt.objectStoreNames,0),lr(Vt,[Vt._allTables],c(zt),zt);else if(vi(o,o._dbSchema,hn),((tn=Rr(Cr(0,(tn=o).idbdb,hn),tn._dbSchema)).add.length||tn.change.some(function(gn){return gn.add.length||gn.change.length}))&&!De)return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."),sn.close(),Z=sn.version+1,De=!0,Lt(pt());pr(o,hn)}catch{}re.push(o),sn.onversionchange=ct(function(gn){d.vcFired=!0,o.on("versionchange").fire(gn)}),sn.onclose=ct(function(gn){o.on("close").fire(gn)}),xt&&(hn=Ft,sn=(tn=o._deps).indexedDB,tn=tn.IDBKeyRange,Ei(sn)||hn===Se||ji(sn,tn).put({name:hn}).catch(Mt)),Lt()},Ot)}).catch(function(Lt){switch(Lt?.name){case"UnknownError":if(0d.limit?Lt.length=d.limit:o.length===d.limit&&Lt.length=Wt.limit&&(!Wt.values||sn.req.values)&&function Or(o,d){return function(E,L,Z,De){if(void 0===E)return void 0!==L?-1:0;if(void 0===L)return 1;if(0===(L=An(E,L))){if(Z&&De)return 0;if(Z)return 1;if(De)return-1}return L}(o.lower,d.lower,o.lowerOpen,d.lowerOpen)<=0&&0<=function(E,L,Z,De){if(void 0===E)return void 0!==L?1:0;if(void 0===L)return-1;if(0===(L=An(E,L))){if(Z&&De)return 0;if(Z)return-1;if(De)return 1}return L}(o.upper,d.upper,o.upperOpen,d.upperOpen)}(sn.req.query.range,Wt.query.range)}),!1,zt,Qt]}(d,E,0,De),Tt=vt[0],xt=vt[1],Lt=vt[2],Ot=vt[3];return Tt&&xt?Tt.obsSet=De.obsSet:(xt=L.query(De).then(function(Ft){var Nt=Ft.result;if(Tt&&(Tt.res=Nt),Ze){for(var Vt=0,Wt=Nt.length;Vt{"use strict";var i,ke="object"==typeof Reflect?Reflect:null,u=ke&&"function"==typeof ke.apply?ke.apply:function(W,ie,he){return Function.prototype.apply.call(W,ie,he)};i=ke&&"function"==typeof ke.ownKeys?ke.ownKeys:Object.getOwnPropertySymbols?function(W){return Object.getOwnPropertyNames(W).concat(Object.getOwnPropertySymbols(W))}:function(W){return Object.getOwnPropertyNames(W)};var c=Number.isNaN||function(W){return W!=W};function v(){v.init.call(this)}Ct.exports=v,Ct.exports.once=function we(ge,W){return new Promise(function(ie,he){function se(Ge){ge.removeListener(W,Me),he(Ge)}function Me(){"function"==typeof ge.removeListener&&ge.removeListener("error",se),ie([].slice.call(arguments))}le(ge,W,Me,{once:!0}),"error"!==W&&function ue(ge,W,ie){"function"==typeof ge.on&&le(ge,"error",W,ie)}(ge,se,{once:!0})})},v.EventEmitter=v,v.prototype._events=void 0,v.prototype._eventsCount=0,v.prototype._maxListeners=void 0;var b=10;function h(ge){if("function"!=typeof ge)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof ge)}function g(ge){return void 0===ge._maxListeners?v.defaultMaxListeners:ge._maxListeners}function w(ge,W,ie,he){var se,Me,Ge;if(h(ie),void 0===(Me=ge._events)?(Me=ge._events=Object.create(null),ge._eventsCount=0):(void 0!==Me.newListener&&(ge.emit("newListener",W,ie.listener?ie.listener:ie),Me=ge._events),Ge=Me[W]),void 0===Ge)Ge=Me[W]=ie,++ge._eventsCount;else if("function"==typeof Ge?Ge=Me[W]=he?[ie,Ge]:[Ge,ie]:he?Ge.unshift(ie):Ge.push(ie),(se=g(ge))>0&&Ge.length>se&&!Ge.warned){Ge.warned=!0;var it=new Error("Possible EventEmitter memory leak detected. "+Ge.length+" "+String(W)+" listeners added. Use emitter.setMaxListeners() to increase limit");it.name="MaxListenersExceededWarning",it.emitter=ge,it.type=W,it.count=Ge.length,function a(ge){console&&console.warn&&console.warn(ge)}(it)}return ge}function B(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function O(ge,W,ie){var he={fired:!1,wrapFn:void 0,target:ge,type:W,listener:ie},se=B.bind(he);return se.listener=ie,he.wrapFn=se,se}function P(ge,W,ie){var he=ge._events;if(void 0===he)return[];var se=he[W];return void 0===se?[]:"function"==typeof se?ie?[se.listener||se]:[se]:ie?function ae(ge){for(var W=new Array(ge.length),ie=0;ie0&&(Ge=ie[0]),Ge instanceof Error)throw Ge;var it=new Error("Unhandled error."+(Ge?" ("+Ge.message+")":""));throw it.context=Ge,it}var Ke=Me[W];if(void 0===Ke)return!1;if("function"==typeof Ke)u(Ke,this,ie);else{var tt=Ke.length,me=F(Ke,tt);for(he=0;he=0;Ge--)if(he[Ge]===ie||he[Ge].listener===ie){it=he[Ge].listener,Me=Ge;break}if(Me<0)return this;0===Me?he.shift():function z(ge,W){for(;W+1=0;se--)this.removeListener(W,ie[se]);return this},v.prototype.listeners=function(W){return P(this,W,!0)},v.prototype.rawListeners=function(W){return P(this,W,!1)},v.listenerCount=function(ge,W){return"function"==typeof ge.listenerCount?ge.listenerCount(W):k.call(ge,W)},v.prototype.listenerCount=k,v.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},8461:(Ct,ke)=>{ke.read=function(u,i,a,c,v){var b,h,g=8*v-c-1,w=(1<>1,O=-7,P=a?v-1:0,k=a?-1:1,F=u[i+P];for(P+=k,b=F&(1<<-O)-1,F>>=-O,O+=g;O>0;b=256*b+u[i+P],P+=k,O-=8);for(h=b&(1<<-O)-1,b>>=-O,O+=c;O>0;h=256*h+u[i+P],P+=k,O-=8);if(0===b)b=1-B;else{if(b===w)return h?NaN:1/0*(F?-1:1);h+=Math.pow(2,c),b-=B}return(F?-1:1)*h*Math.pow(2,b-c)},ke.write=function(u,i,a,c,v,b){var h,g,w,B=8*b-v-1,O=(1<>1,k=23===v?Math.pow(2,-24)-Math.pow(2,-77):0,F=c?0:b-1,z=c?1:-1,ae=i<0||0===i&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(g=isNaN(i)?1:0,h=O):(h=Math.floor(Math.log(i)/Math.LN2),i*(w=Math.pow(2,-h))<1&&(h--,w*=2),(i+=h+P>=1?k/w:k*Math.pow(2,1-P))*w>=2&&(h++,w/=2),h+P>=O?(g=0,h=O):h+P>=1?(g=(i*w-1)*Math.pow(2,v),h+=P):(g=i*Math.pow(2,P-1)*Math.pow(2,v),h=0));v>=8;u[a+F]=255&g,F+=z,g/=256,v-=8);for(h=h<0;u[a+F]=255&h,F+=z,h/=256,B-=8);u[a+F-z]|=128*ae}},9598:(Ct,ke,u)=>{var c,i,a;Ct=u.nmd(Ct),(c=a||(a={})).runningInNodeJS=function(){return"object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node},c.runningInMainNodeJSModule=function(){return c.runningInNodeJS()&&u.c[u.s]===Ct},c.commonJSAvailable=function(){return"object"==typeof Ct.exports},c.runningInWebWorker=function(){return typeof window>"u"&&"object"==typeof self&&"function"==typeof self.addEventListener&&"function"==typeof self.close},c.runningInNodeChildProcess=function(){return c.runningInNodeJS()&&"function"==typeof process.send},c.runningInNullOrigin=function(){return"object"==typeof window&&"object"==typeof window.location&&"object"==typeof document&&"http:"!==document.location.protocol&&"https:"!==document.location.protocol},c.webWorkersAvailable=function(){return!("function"!=typeof Worker||c.runningInNullOrigin()||c.runningInNodeJS()||navigator&&navigator.userAgent&&navigator.userAgent.indexOf("Android 4.3")>=0)},c.log=function(v,b){void 0===b&&(b=!1),"object"==typeof console&&(console.log(v),b&&"object"==typeof document&&(document.body.innerHTML+=v+"
"))},c.createErrorMessage=function(v,b){if(void 0===b&&(b="Unhandled exception"),null==v)return b;if(b+=": ","object"==typeof v.content){if(c.runningInNodeJS())return b+v.content.stack;var h=JSON.stringify(v.content);return"{}"!==h?b+h:b+v.content}return"string"==typeof v.content?b+v.content:b+v},c.printExceptionAndStackTraceToConsole=function(v,b){void 0===b&&(b="Unhandled exception"),c.log(c.createErrorMessage(v,b))},c.getGlobalObject=function(){return"object"==typeof global?global:"object"==typeof window?window:"object"==typeof self?self:{}},c.toString=Object.prototype.toString,c.commonJSAvailable()&&(Ct.exports=c),function(c){if("function"==typeof Uint8Array&&0!==new Uint8Array(1).subarray(1).byteLength){var v=function(w,B){var O=function(k,F,z){return kz?z:k};w|=0,B|=0,arguments.length<1&&(w=0),arguments.length<2&&(B=this.length),w<0&&(w=this.length+w),B<0&&(B=this.length+B),w=O(w,0,this.length);var P=(B=O(B,0,this.length))-w;return P<0&&(P=0),new this.constructor(this.buffer,this.byteOffset+w*this.BYTES_PER_ELEMENT,P)},b=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"],h=void 0;if("object"==typeof window?h=window:"object"==typeof self&&(h=self),void 0!==h)for(var g=0;g=55296&&g<=57343);b+=c.Encoding.CodePoint.decodeToString(g)}return b}}(a||(a={})),function(c){var v=function(){function b(h){void 0===h&&(h=1024),this.outputBufferCapacity=h,this.outputPosition=0,this.outputString="",this.outputBuffer=new Uint16Array(this.outputBufferCapacity)}return b.prototype.appendCharCode=function(h){this.outputBuffer[this.outputPosition++]=h,this.outputPosition===this.outputBufferCapacity&&this.flushBufferToOutputString()},b.prototype.appendCharCodes=function(h){for(var g=0,w=h.length;g>>10)),this.appendCharCode(56320+(h-65536&1023))}},b.prototype.getOutputString=function(){return this.flushBufferToOutputString(),this.outputString},b.prototype.flushBufferToOutputString=function(){this.outputString+=String.fromCharCode.apply(null,this.outputPosition===this.outputBufferCapacity?this.outputBuffer:this.outputBuffer.subarray(0,this.outputPosition)),this.outputPosition=0},b}();c.StringBuilder=v}(a||(a={})),function(c){var v=function(){function b(){this.restart()}return b.prototype.restart=function(){this.startTime=b.getTimestamp()},b.prototype.getElapsedTime=function(){return b.getTimestamp()-this.startTime},b.prototype.getElapsedTimeAndRestart=function(){var h=this.getElapsedTime();return this.restart(),h},b.prototype.logAndRestart=function(h,g){void 0===g&&(g=!0);var w=this.getElapsedTime(),B="".concat(h,": ").concat(w.toFixed(3),"ms");return c.log(B,g),this.restart(),w},b.getTimestamp=function(){return this.timestampFunc||this.createGlobalTimestampFunction(),this.timestampFunc()},b.getMicrosecondTimestamp=function(){return Math.floor(1e3*b.getTimestamp())},b.createGlobalTimestampFunction=function(){if("object"==typeof process&&"function"==typeof process.hrtime){var h=0;this.timestampFunc=function(){var O=process.hrtime();return h+(1e3*O[0]+O[1]/1e6)},h=Date.now()-this.timestampFunc()}else if("object"==typeof chrome&&chrome.Interval){var g=Date.now(),w=new chrome.Interval;w.start(),this.timestampFunc=function(){return g+w.microseconds()/1e3}}else if("object"==typeof performance&&performance.now){var B=Date.now()-performance.now();this.timestampFunc=function(){return B+performance.now()}}else this.timestampFunc=Date.now?function(){return Date.now()}:function(){return(new Date).getTime()}},b}();c.Timer=v}(a||(a={})),function(c){var v=function(){function b(h){void 0===h&&(h=!0),this.MinimumSequenceLength=4,this.MaximumSequenceLength=31,this.MaximumMatchDistance=32767,this.PrefixHashTableSize=65537,this.inputBufferStreamOffset=1,this.prefixHashTable=h&&"function"==typeof Uint32Array?new c.CompressorCustomHashTable(this.PrefixHashTableSize):new c.CompressorSimpleHashTable(this.PrefixHashTableSize)}return b.prototype.compressBlock=function(h){if(null==h)throw new TypeError("compressBlock: undefined or null input received");return"string"==typeof h&&(h=c.encodeUTF8(h)),h=c.BufferTools.convertToUint8ArrayIfNeeded(h),this.compressUtf8Block(h)},b.prototype.compressUtf8Block=function(h){if(!h||0==h.length)return new Uint8Array(0);var g=this.cropAndAddNewBytesToInputBuffer(h),w=this.inputBuffer,B=this.inputBuffer.length;this.outputBuffer=new Uint8Array(h.length),this.outputBufferPosition=0;for(var O=0,P=g;PB-this.MinimumSequenceLength)F||this.outputRawByte(k);else{var z=this.getBucketIndexForPrefix(P);if(!F){var ae=this.findLongestMatch(P,z);null!=ae&&(this.outputPointerBytes(ae.length,ae.distance),O=P+ae.length,F=!0)}F||this.outputRawByte(k),this.prefixHashTable.addValueToBucket(z,this.inputBufferStreamOffset+P)}}return this.outputBuffer.subarray(0,this.outputBufferPosition)},b.prototype.findLongestMatch=function(h,g){var w=this.prefixHashTable.getArraySegmentForBucketIndex(g,this.reusableArraySegmentObject);if(null==w)return null;for(var O,B=this.inputBuffer,P=0,k=0;k=128?P+(P>>>1):P,z>this.MaximumMatchDistance||ae>=this.MaximumSequenceLength||h+ae>=B.length)break;if(B[F+ae]===B[h+ae])for(var we=0;;we++){if(h+we===B.length||B[F+we]!==B[h+we]){we>ae&&(O=z,P=we);break}if(we===this.MaximumSequenceLength)return{distance:z,length:this.MaximumSequenceLength}}}return void 0!==O?{distance:O,length:P}:null},b.prototype.getBucketIndexForPrefix=function(h){return(7880599*this.inputBuffer[h]+39601*this.inputBuffer[h+1]+199*this.inputBuffer[h+2]+this.inputBuffer[h+3])%this.PrefixHashTableSize},b.prototype.outputPointerBytes=function(h,g){g<128?(this.outputRawByte(192|h),this.outputRawByte(g)):(this.outputRawByte(224|h),this.outputRawByte(g>>>8),this.outputRawByte(255&g))},b.prototype.outputRawByte=function(h){this.outputBuffer[this.outputBufferPosition++]=h},b.prototype.cropAndAddNewBytesToInputBuffer=function(h){if(void 0===this.inputBuffer)return this.inputBuffer=h,0;var g=Math.min(this.inputBuffer.length,this.MaximumMatchDistance),w=this.inputBuffer.length-g;return this.inputBuffer=c.CompressionCommon.getCroppedAndAppendedByteArray(this.inputBuffer,w,g,h),this.inputBufferStreamOffset+=w,g},b}();c.Compressor=v}(a||(a={})),function(c){var v=function(){function b(h){this.minimumBucketCapacity=4,this.maximumBucketCapacity=64,this.bucketLocators=new Uint32Array(2*h),this.storage=new Uint32Array(2*h),this.storageIndex=1}return b.prototype.addValueToBucket=function(h,g){h<<=1,this.storageIndex>=this.storage.length>>>1&&this.compact();var B,w=this.bucketLocators[h];if(0===w)w=this.storageIndex,B=1,this.storage[this.storageIndex]=g,this.storageIndex+=this.minimumBucketCapacity;else{(B=this.bucketLocators[h+1])===this.maximumBucketCapacity-1&&(B=this.truncateBucketToNewerElements(w,B,this.maximumBucketCapacity/2));var O=w+B;0===this.storage[O]?(this.storage[O]=g,O===this.storageIndex&&(this.storageIndex+=B)):(c.ArrayTools.copyElements(this.storage,w,this.storage,this.storageIndex,B),w=this.storageIndex,this.storageIndex+=B,this.storage[this.storageIndex++]=g,this.storageIndex+=B),B++}this.bucketLocators[h]=w,this.bucketLocators[h+1]=B},b.prototype.truncateBucketToNewerElements=function(h,g,w){return c.ArrayTools.copyElements(this.storage,h+g-w,this.storage,h,w),c.ArrayTools.zeroElements(this.storage,h+w,g-w),w},b.prototype.compact=function(){var h=this.bucketLocators,g=this.storage;this.bucketLocators=new Uint32Array(this.bucketLocators.length),this.storageIndex=1;for(var w=0;w>>6==3){var P=O>>>5;if(w==B-1||w==B-2&&7==P){this.inputBufferRemainder=h.subarray(w);break}if(h[w+1]>>>7==1)this.outputByte(O);else{var k=31&O,F=void 0;6==P?(F=h[w+1],w+=1):(F=h[w+1]<<8|h[w+2],w+=2);for(var z=this.outputPosition-F,ae=0;ae=0;h++){var g=this.outputBuffer[this.outputPosition-h];if(h<4&&g>>>3==30||h<3&&g>>>4==14||h<2&&g>>>5==6)return this.outputBufferRemainder=this.outputBuffer.subarray(this.outputPosition-h,this.outputPosition),void(this.outputPosition-=h)}},b}();c.Decompressor=v}(a||(a={})),function(c){var b,g,w,B;b=c.Encoding||(c.Encoding={}),g=b.Base64||(b.Base64={}),w=new Uint8Array([65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,48,49,50,51,52,53,54,55,56,57,43,47]),B=new Uint8Array([255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,62,255,255,255,63,52,53,54,55,56,57,58,59,60,61,255,255,255,0,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255,255,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,255,255,255,255]),g.encode=function(k){return k&&0!=k.length?c.runningInNodeJS()?c.BufferTools.uint8ArrayToBuffer(k).toString("base64"):g.encodeWithJS(k):""},g.decode=function(k){return k?c.runningInNodeJS()?c.BufferTools.bufferToUint8Array(Buffer.from(k,"base64")):g.decodeWithJS(k):new Uint8Array(0)},g.encodeWithJS=function(k,F){if(void 0===F&&(F=!0),!k||0==k.length)return"";for(var we,z=w,ae=new c.StringBuilder,ue=0,le=k.length;ue>>18&63]),ae.appendCharCode(z[we>>>12&63]),ae.appendCharCode(z[we>>>6&63]),ae.appendCharCode(z[63&we]),we=0):ue===le-2?(ae.appendCharCode(z[(we=k[ue]<<16|k[ue+1]<<8)>>>18&63]),ae.appendCharCode(z[we>>>12&63]),ae.appendCharCode(z[we>>>6&63]),F&&ae.appendCharCode(61)):ue===le-1&&(ae.appendCharCode(z[(we=k[ue]<<16)>>>18&63]),ae.appendCharCode(z[we>>>12&63]),F&&(ae.appendCharCode(61),ae.appendCharCode(61)));return ae.getOutputString()},g.decodeWithJS=function(k,F){if(!k||0==k.length)return new Uint8Array(0);var z=k.length%4;if(1===z)throw new Error("Invalid Base64 string: length % 4 == 1");2===z?k+="==":3===z&&(k+="="),F||(F=new Uint8Array(k.length));for(var ae=0,we=k.length,ue=0;ue>>16&255,F[ae++]=le>>>8&255,F[ae++]=255&le}return 61==k.charCodeAt(we-1)&&ae--,61==k.charCodeAt(we-2)&&ae--,F.subarray(0,ae)}}(a||(a={})),function(c){var b,g;(g=(b=c.Encoding||(c.Encoding={})).BinaryString||(b.BinaryString={})).encode=function(w){if(null==w)throw new TypeError("BinaryString.encode: undefined or null input received");if(0===w.length)return"";for(var B=w.length,O=new c.StringBuilder,P=0,k=1,F=0;F>>k),P=z&(1<=B-2&&O.appendCharCode(P<<16-k)}return O.appendCharCode(32768|B%2),O.getOutputString()},g.decode=function(w){if("string"!=typeof w)throw new TypeError("BinaryString.decode: invalid input type");if(""==w)return new Uint8Array(0);for(var B=new Uint8Array(3*w.length),O=0,k=0,F=0,z=0;z=32768?(32769==ae&&O--,F=0):(0==F?k=ae:(B[O++]=(we=k<>>15-F)>>>8,B[O++]=255&we,k=ae&(1<<15-F)-1),15==F?F=0:F+=1)}var we;return B.subarray(0,O)}}(a||(a={})),function(c){var b,g;(g=(b=c.Encoding||(c.Encoding={})).CodePoint||(b.CodePoint={})).encodeFromString=function(w,B){var O=w.charCodeAt(B);if(O<55296||O>56319)return O;var P=w.charCodeAt(B+1);if(P>=56320&&P<=57343)return P-56320+(O-55296<<10)+65536;throw new Error("getUnicodeCodePoint: Received a lead surrogate character, char code ".concat(O,", followed by ").concat(P,", which is not a trailing surrogate character code."))},g.decodeToString=function(w){if(w<=65535)return String.fromCharCode(w);if(w<=1114111)return String.fromCharCode(55296+(w-65536>>>10),56320+(w-65536&1023));throw new Error("getStringFromUnicodeCodePoint: A code point of ".concat(w," cannot be encoded in UTF-16"))}}(a||(a={})),function(c){var b,g,w;g=(b=c.Encoding||(c.Encoding={})).DecimalString||(b.DecimalString={}),w=["000","001","002","003","004","005","006","007","008","009","010","011","012","013","014","015","016","017","018","019","020","021","022","023","024","025","026","027","028","029","030","031","032","033","034","035","036","037","038","039","040","041","042","043","044","045","046","047","048","049","050","051","052","053","054","055","056","057","058","059","060","061","062","063","064","065","066","067","068","069","070","071","072","073","074","075","076","077","078","079","080","081","082","083","084","085","086","087","088","089","090","091","092","093","094","095","096","097","098","099","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255"],g.encode=function(B){for(var O=[],P=0;P>>6,P[k++]=128|63&z;else if(z<=65535)P[k++]=224|z>>>12,P[k++]=128|z>>>6&63,P[k++]=128|63&z;else{if(!(z<=1114111))throw new Error("Invalid UTF-16 string: Encountered a character unsupported by UTF-8/16 (RFC 3629)");P[k++]=240|z>>>18,P[k++]=128|z>>>12&63,P[k++]=128|z>>>6&63,P[k++]=128|63&z,F++}}return P.subarray(0,k)},g.decodeWithJS=function(O,P,k){if(void 0===P&&(P=0),!O||0==O.length)return"";void 0===k&&(k=O.length);for(var z,ae,F=new c.StringBuilder,we=P,ue=k;we>>7==0)z=ae,we+=1;else if(ae>>>5==6){if(we+1>=k)throw new Error("Invalid UTF-8 stream: Truncated codepoint sequence encountered at position "+we);z=(31&ae)<<6|63&O[we+1],we+=2}else if(ae>>>4==14){if(we+2>=k)throw new Error("Invalid UTF-8 stream: Truncated codepoint sequence encountered at position "+we);z=(15&ae)<<12|(63&O[we+1])<<6|63&O[we+2],we+=3}else{if(ae>>>3!=30)throw new Error("Invalid UTF-8 stream: An invalid lead byte value encountered at position "+we);if(we+3>=k)throw new Error("Invalid UTF-8 stream: Truncated codepoint sequence encountered at position "+we);z=(7&ae)<<18|(63&O[we+1])<<12|(63&O[we+2])<<6|63&O[we+3],we+=4}F.appendCodePoint(z)}return F.getOutputString()},g.createNativeTextEncoderAndDecoderIfAvailable=function(){return!!w||"function"==typeof TextEncoder&&(w=new TextEncoder("utf-8"),B=new TextDecoder("utf-8"),!0)}}(a||(a={})),function(c){c.compress=function v(le,ge){if(void 0===ge&&(ge={}),null==le)throw new TypeError("compress: undefined or null input received");var W=c.CompressionCommon.detectCompressionSourceEncoding(le);ge=c.ObjectTools.override({inputEncoding:W,outputEncoding:"ByteArray"},ge);var he=(new c.Compressor).compressBlock(le);return c.CompressionCommon.encodeCompressedBytes(he,ge.outputEncoding)},c.decompress=function b(le,ge){if(void 0===ge&&(ge={}),null==le)throw new TypeError("decompress: undefined or null input received");ge=c.ObjectTools.override({inputEncoding:"ByteArray",outputEncoding:"String"},ge);var W=c.CompressionCommon.decodeCompressedBytes(le,ge.inputEncoding),he=(new c.Decompressor).decompressBlock(W);return c.CompressionCommon.encodeDecompressedBytes(he,ge.outputEncoding)},c.compressAsync=function h(le,ge,W){var ie;null==W&&(W=function(){});try{ie=c.CompressionCommon.detectCompressionSourceEncoding(le)}catch(he){return void W(void 0,he)}ge=c.ObjectTools.override({inputEncoding:ie,outputEncoding:"ByteArray",useWebWorker:!0,blockSize:65536},ge),c.enqueueImmediate(function(){ge.useWebWorker&&c.WebWorker.createGlobalWorkerIfNeeded()?c.WebWorker.compressAsync(le,ge,W):c.AsyncCompressor.compressAsync(le,ge,W)})},c.decompressAsync=function g(le,ge,W){if(null==W&&(W=function(){}),null!=le){ge=c.ObjectTools.override({inputEncoding:"ByteArray",outputEncoding:"String",useWebWorker:!0,blockSize:65536},ge);var ie=c.BufferTools.convertToUint8ArrayIfNeeded(le);c.EventLoop.enqueueImmediate(function(){ge.useWebWorker&&c.WebWorker.createGlobalWorkerIfNeeded()?c.WebWorker.decompressAsync(ie,ge,W):c.AsyncDecompressor.decompressAsync(le,ge,W)})}else W(void 0,new TypeError("decompressAsync: undefined or null input received"))},c.createCompressionStream=function w(){return c.AsyncCompressor.createCompressionStream()},c.createDecompressionStream=function B(){return c.AsyncDecompressor.createDecompressionStream()},c.encodeUTF8=function O(le){return c.Encoding.UTF8.encode(le)},c.decodeUTF8=function P(le){return c.Encoding.UTF8.decode(le)},c.encodeBase64=function k(le){return c.Encoding.Base64.encode(le)},c.decodeBase64=function F(le){return c.Encoding.Base64.decode(le)},c.encodeBinaryString=function z(le){return c.Encoding.BinaryString.encode(le)},c.decodeBinaryString=function ae(le){return c.Encoding.BinaryString.decode(le)},c.encodeStorageBinaryString=function we(le){return c.Encoding.StorageBinaryString.encode(le)},c.decodeStorageBinaryString=function ue(le){return c.Encoding.StorageBinaryString.decode(le)}}(a||(a={}))},1160:(Ct,ke,u)=>{"use strict";const i=u(5343),a=u(8461),c="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;ke.Buffer=g,ke.SlowBuffer=function le(f){return+f!=f&&(f=0),g.alloc(+f)},ke.INSPECT_MAX_BYTES=50;const v=2147483647;function h(f){if(f>v)throw new RangeError('The value "'+f+'" is invalid for option "size"');const _=new Uint8Array(f);return Object.setPrototypeOf(_,g.prototype),_}function g(f,_,T){if("number"==typeof f){if("string"==typeof _)throw new TypeError('The "string" argument must be of type string. Received type number');return P(f)}return w(f,_,T)}function w(f,_,T){if("string"==typeof f)return function k(f,_){if(("string"!=typeof _||""===_)&&(_="utf8"),!g.isEncoding(_))throw new TypeError("Unknown encoding: "+_);const T=0|ge(f,_);let ve=h(T);const Je=ve.write(f,_);return Je!==T&&(ve=ve.slice(0,Je)),ve}(f,_);if(ArrayBuffer.isView(f))return function z(f){if(m(f,Uint8Array)){const _=new Uint8Array(f);return ae(_.buffer,_.byteOffset,_.byteLength)}return F(f)}(f);if(null==f)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof f);if(m(f,ArrayBuffer)||f&&m(f.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(m(f,SharedArrayBuffer)||f&&m(f.buffer,SharedArrayBuffer)))return ae(f,_,T);if("number"==typeof f)throw new TypeError('The "value" argument must not be of type number. Received type number');const ve=f.valueOf&&f.valueOf();if(null!=ve&&ve!==f)return g.from(ve,_,T);const Je=function we(f){if(g.isBuffer(f)){const _=0|ue(f.length),T=h(_);return 0===T.length||f.copy(T,0,0,_),T}return void 0!==f.length?"number"!=typeof f.length||j(f.length)?h(0):F(f):"Buffer"===f.type&&Array.isArray(f.data)?F(f.data):void 0}(f);if(Je)return Je;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof f[Symbol.toPrimitive])return g.from(f[Symbol.toPrimitive]("string"),_,T);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof f)}function B(f){if("number"!=typeof f)throw new TypeError('"size" argument must be of type number');if(f<0)throw new RangeError('The value "'+f+'" is invalid for option "size"')}function P(f){return B(f),h(f<0?0:0|ue(f))}function F(f){const _=f.length<0?0:0|ue(f.length),T=h(_);for(let ve=0;ve<_;ve+=1)T[ve]=255&f[ve];return T}function ae(f,_,T){if(_<0||f.byteLength<_)throw new RangeError('"offset" is outside of buffer bounds');if(f.byteLength<_+(T||0))throw new RangeError('"length" is outside of buffer bounds');let ve;return ve=void 0===_&&void 0===T?new Uint8Array(f):void 0===T?new Uint8Array(f,_):new Uint8Array(f,_,T),Object.setPrototypeOf(ve,g.prototype),ve}function ue(f){if(f>=v)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+v.toString(16)+" bytes");return 0|f}function ge(f,_){if(g.isBuffer(f))return f.length;if(ArrayBuffer.isView(f)||m(f,ArrayBuffer))return f.byteLength;if("string"!=typeof f)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof f);const T=f.length,ve=arguments.length>2&&!0===arguments[2];if(!ve&&0===T)return 0;let Je=!1;for(;;)switch(_){case"ascii":case"latin1":case"binary":return T;case"utf8":case"utf-8":return R(f).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*T;case"hex":return T>>>1;case"base64":return x(f).length;default:if(Je)return ve?-1:R(f).length;_=(""+_).toLowerCase(),Je=!0}}function W(f,_,T){let ve=!1;if((void 0===_||_<0)&&(_=0),_>this.length||((void 0===T||T>this.length)&&(T=this.length),T<=0)||(T>>>=0)<=(_>>>=0))return"";for(f||(f="utf8");;)switch(f){case"hex":return Dt(this,_,T);case"utf8":case"utf-8":return Xe(this,_,T);case"ascii":return ht(this,_,T);case"latin1":case"binary":return Yt(this,_,T);case"base64":return me(this,_,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return jt(this,_,T);default:if(ve)throw new TypeError("Unknown encoding: "+f);f=(f+"").toLowerCase(),ve=!0}}function ie(f,_,T){const ve=f[_];f[_]=f[T],f[T]=ve}function he(f,_,T,ve,Je){if(0===f.length)return-1;if("string"==typeof T?(ve=T,T=0):T>2147483647?T=2147483647:T<-2147483648&&(T=-2147483648),j(T=+T)&&(T=Je?0:f.length-1),T<0&&(T=f.length+T),T>=f.length){if(Je)return-1;T=f.length-1}else if(T<0){if(!Je)return-1;T=0}if("string"==typeof _&&(_=g.from(_,ve)),g.isBuffer(_))return 0===_.length?-1:se(f,_,T,ve,Je);if("number"==typeof _)return _&=255,"function"==typeof Uint8Array.prototype.indexOf?Je?Uint8Array.prototype.indexOf.call(f,_,T):Uint8Array.prototype.lastIndexOf.call(f,_,T):se(f,[_],T,ve,Je);throw new TypeError("val must be string, number or Buffer")}function se(f,_,T,ve,Je){let ye,$e=1,St=f.length,dt=_.length;if(void 0!==ve&&("ucs2"===(ve=String(ve).toLowerCase())||"ucs-2"===ve||"utf16le"===ve||"utf-16le"===ve)){if(f.length<2||_.length<2)return-1;$e=2,St/=2,dt/=2,T/=2}function Et(qe,xe){return 1===$e?qe[xe]:qe.readUInt16BE(xe*$e)}if(Je){let qe=-1;for(ye=T;yeSt&&(T=St-dt),ye=T;ye>=0;ye--){let qe=!0;for(let xe=0;xeJe&&(ve=Je):ve=Je;const $e=_.length;let St;for(ve>$e/2&&(ve=$e/2),St=0;St>8,Je=T%256,$e.push(Je),$e.push(ve);return $e}(_,f.length-T),f,T,ve)}function me(f,_,T){return i.fromByteArray(0===_&&T===f.length?f:f.slice(_,T))}function Xe(f,_,T){T=Math.min(f.length,T);const ve=[];let Je=_;for(;Je239?4:$e>223?3:$e>191?2:1;if(Je+dt<=T){let Et,ye,qe,xe;switch(dt){case 1:$e<128&&(St=$e);break;case 2:Et=f[Je+1],128==(192&Et)&&(xe=(31&$e)<<6|63&Et,xe>127&&(St=xe));break;case 3:Et=f[Je+1],ye=f[Je+2],128==(192&Et)&&128==(192&ye)&&(xe=(15&$e)<<12|(63&Et)<<6|63&ye,xe>2047&&(xe<55296||xe>57343)&&(St=xe));break;case 4:Et=f[Je+1],ye=f[Je+2],qe=f[Je+3],128==(192&Et)&&128==(192&ye)&&128==(192&qe)&&(xe=(15&$e)<<18|(63&Et)<<12|(63&ye)<<6|63&qe,xe>65535&&xe<1114112&&(St=xe))}}null===St?(St=65533,dt=1):St>65535&&(St-=65536,ve.push(St>>>10&1023|55296),St=56320|1023&St),ve.push(St),Je+=dt}return function _t(f){const _=f.length;if(_<=4096)return String.fromCharCode.apply(String,f);let T="",ve=0;for(;ve<_;)T+=String.fromCharCode.apply(String,f.slice(ve,ve+=4096));return T}(ve)}function ht(f,_,T){let ve="";T=Math.min(f.length,T);for(let Je=_;Jeve)&&(T=ve);let Je="";for(let $e=_;$eT)throw new RangeError("Trying to access beyond buffer length")}function Ee(f,_,T,ve,Je,$e){if(!g.isBuffer(f))throw new TypeError('"buffer" argument must be a Buffer instance');if(_>Je||_<$e)throw new RangeError('"value" argument is out of bounds');if(T+ve>f.length)throw new RangeError("Index out of range")}function oe(f,_,T,ve,Je){wt(_,ve,Je,f,T,7);let $e=Number(_&BigInt(4294967295));f[T++]=$e,$e>>=8,f[T++]=$e,$e>>=8,f[T++]=$e,$e>>=8,f[T++]=$e;let St=Number(_>>BigInt(32)&BigInt(4294967295));return f[T++]=St,St>>=8,f[T++]=St,St>>=8,f[T++]=St,St>>=8,f[T++]=St,T}function _e(f,_,T,ve,Je){wt(_,ve,Je,f,T,7);let $e=Number(_&BigInt(4294967295));f[T+7]=$e,$e>>=8,f[T+6]=$e,$e>>=8,f[T+5]=$e,$e>>=8,f[T+4]=$e;let St=Number(_>>BigInt(32)&BigInt(4294967295));return f[T+3]=St,St>>=8,f[T+2]=St,St>>=8,f[T+1]=St,St>>=8,f[T]=St,T+8}function Oe(f,_,T,ve,Je,$e){if(T+ve>f.length)throw new RangeError("Index out of range");if(T<0)throw new RangeError("Index out of range")}function at(f,_,T,ve,Je){return _=+_,T>>>=0,Je||Oe(f,0,T,4),a.write(f,_,T,ve,23,4),T+4}function be(f,_,T,ve,Je){return _=+_,T>>>=0,Je||Oe(f,0,T,8),a.write(f,_,T,ve,52,8),T+8}ke.kMaxLength=v,!(g.TYPED_ARRAY_SUPPORT=function b(){try{const f=new Uint8Array(1),_={foo:function(){return 42}};return Object.setPrototypeOf(_,Uint8Array.prototype),Object.setPrototypeOf(f,_),42===f.foo()}catch{return!1}}())&&typeof console<"u"&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.byteOffset}}),g.poolSize=8192,g.from=function(f,_,T){return w(f,_,T)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array),g.alloc=function(f,_,T){return function O(f,_,T){return B(f),f<=0?h(f):void 0!==_?"string"==typeof T?h(f).fill(_,T):h(f).fill(_):h(f)}(f,_,T)},g.allocUnsafe=function(f){return P(f)},g.allocUnsafeSlow=function(f){return P(f)},g.isBuffer=function(_){return null!=_&&!0===_._isBuffer&&_!==g.prototype},g.compare=function(_,T){if(m(_,Uint8Array)&&(_=g.from(_,_.offset,_.byteLength)),m(T,Uint8Array)&&(T=g.from(T,T.offset,T.byteLength)),!g.isBuffer(_)||!g.isBuffer(T))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(_===T)return 0;let ve=_.length,Je=T.length;for(let $e=0,St=Math.min(ve,Je);$eJe.length?(g.isBuffer(St)||(St=g.from(St)),St.copy(Je,$e)):Uint8Array.prototype.set.call(Je,St,$e);else{if(!g.isBuffer(St))throw new TypeError('"list" argument must be an Array of Buffers');St.copy(Je,$e)}$e+=St.length}return Je},g.byteLength=ge,g.prototype._isBuffer=!0,g.prototype.swap16=function(){const _=this.length;if(_%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let T=0;T<_;T+=2)ie(this,T,T+1);return this},g.prototype.swap32=function(){const _=this.length;if(_%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let T=0;T<_;T+=4)ie(this,T,T+3),ie(this,T+1,T+2);return this},g.prototype.swap64=function(){const _=this.length;if(_%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let T=0;T<_;T+=8)ie(this,T,T+7),ie(this,T+1,T+6),ie(this,T+2,T+5),ie(this,T+3,T+4);return this},g.prototype.toLocaleString=g.prototype.toString=function(){const _=this.length;return 0===_?"":0===arguments.length?Xe(this,0,_):W.apply(this,arguments)},g.prototype.equals=function(_){if(!g.isBuffer(_))throw new TypeError("Argument must be a Buffer");return this===_||0===g.compare(this,_)},g.prototype.inspect=function(){let _="";const T=ke.INSPECT_MAX_BYTES;return _=this.toString("hex",0,T).replace(/(.{2})/g,"$1 ").trim(),this.length>T&&(_+=" ... "),""},c&&(g.prototype[c]=g.prototype.inspect),g.prototype.compare=function(_,T,ve,Je,$e){if(m(_,Uint8Array)&&(_=g.from(_,_.offset,_.byteLength)),!g.isBuffer(_))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof _);if(void 0===T&&(T=0),void 0===ve&&(ve=_?_.length:0),void 0===Je&&(Je=0),void 0===$e&&($e=this.length),T<0||ve>_.length||Je<0||$e>this.length)throw new RangeError("out of range index");if(Je>=$e&&T>=ve)return 0;if(Je>=$e)return-1;if(T>=ve)return 1;if(this===_)return 0;let St=($e>>>=0)-(Je>>>=0),dt=(ve>>>=0)-(T>>>=0);const Et=Math.min(St,dt),ye=this.slice(Je,$e),qe=_.slice(T,ve);for(let xe=0;xe>>=0,isFinite(ve)?(ve>>>=0,void 0===Je&&(Je="utf8")):(Je=ve,ve=void 0)}const $e=this.length-T;if((void 0===ve||ve>$e)&&(ve=$e),_.length>0&&(ve<0||T<0)||T>this.length)throw new RangeError("Attempt to write outside buffer bounds");Je||(Je="utf8");let St=!1;for(;;)switch(Je){case"hex":return Me(this,_,T,ve);case"utf8":case"utf-8":return Ge(this,_,T,ve);case"ascii":case"latin1":case"binary":return it(this,_,T,ve);case"base64":return Ke(this,_,T,ve);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return tt(this,_,T,ve);default:if(St)throw new TypeError("Unknown encoding: "+Je);Je=(""+Je).toLowerCase(),St=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},g.prototype.slice=function(_,T){const ve=this.length;(_=~~_)<0?(_+=ve)<0&&(_=0):_>ve&&(_=ve),(T=void 0===T?ve:~~T)<0?(T+=ve)<0&&(T=0):T>ve&&(T=ve),T<_&&(T=_);const Je=this.subarray(_,T);return Object.setPrototypeOf(Je,g.prototype),Je},g.prototype.readUintLE=g.prototype.readUIntLE=function(_,T,ve){_>>>=0,T>>>=0,ve||V(_,T,this.length);let Je=this[_],$e=1,St=0;for(;++St>>=0,T>>>=0,ve||V(_,T,this.length);let Je=this[_+--T],$e=1;for(;T>0&&($e*=256);)Je+=this[_+--T]*$e;return Je},g.prototype.readUint8=g.prototype.readUInt8=function(_,T){return _>>>=0,T||V(_,1,this.length),this[_]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(_,T){return _>>>=0,T||V(_,2,this.length),this[_]|this[_+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(_,T){return _>>>=0,T||V(_,2,this.length),this[_]<<8|this[_+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(_,T){return _>>>=0,T||V(_,4,this.length),(this[_]|this[_+1]<<8|this[_+2]<<16)+16777216*this[_+3]},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(_,T){return _>>>=0,T||V(_,4,this.length),16777216*this[_]+(this[_+1]<<16|this[_+2]<<8|this[_+3])},g.prototype.readBigUInt64LE=X(function(_){nt(_>>>=0,"offset");const T=this[_],ve=this[_+7];(void 0===T||void 0===ve)&&Q(_,this.length-8);const Je=T+256*this[++_]+65536*this[++_]+this[++_]*2**24,$e=this[++_]+256*this[++_]+65536*this[++_]+ve*2**24;return BigInt(Je)+(BigInt($e)<>>=0,"offset");const T=this[_],ve=this[_+7];(void 0===T||void 0===ve)&&Q(_,this.length-8);const Je=T*2**24+65536*this[++_]+256*this[++_]+this[++_],$e=this[++_]*2**24+65536*this[++_]+256*this[++_]+ve;return(BigInt(Je)<>>=0,T>>>=0,ve||V(_,T,this.length);let Je=this[_],$e=1,St=0;for(;++St=$e&&(Je-=Math.pow(2,8*T)),Je},g.prototype.readIntBE=function(_,T,ve){_>>>=0,T>>>=0,ve||V(_,T,this.length);let Je=T,$e=1,St=this[_+--Je];for(;Je>0&&($e*=256);)St+=this[_+--Je]*$e;return $e*=128,St>=$e&&(St-=Math.pow(2,8*T)),St},g.prototype.readInt8=function(_,T){return _>>>=0,T||V(_,1,this.length),128&this[_]?-1*(255-this[_]+1):this[_]},g.prototype.readInt16LE=function(_,T){_>>>=0,T||V(_,2,this.length);const ve=this[_]|this[_+1]<<8;return 32768&ve?4294901760|ve:ve},g.prototype.readInt16BE=function(_,T){_>>>=0,T||V(_,2,this.length);const ve=this[_+1]|this[_]<<8;return 32768&ve?4294901760|ve:ve},g.prototype.readInt32LE=function(_,T){return _>>>=0,T||V(_,4,this.length),this[_]|this[_+1]<<8|this[_+2]<<16|this[_+3]<<24},g.prototype.readInt32BE=function(_,T){return _>>>=0,T||V(_,4,this.length),this[_]<<24|this[_+1]<<16|this[_+2]<<8|this[_+3]},g.prototype.readBigInt64LE=X(function(_){nt(_>>>=0,"offset");const T=this[_],ve=this[_+7];return(void 0===T||void 0===ve)&&Q(_,this.length-8),(BigInt(this[_+4]+256*this[_+5]+65536*this[_+6]+(ve<<24))<>>=0,"offset");const T=this[_],ve=this[_+7];(void 0===T||void 0===ve)&&Q(_,this.length-8);const Je=(T<<24)+65536*this[++_]+256*this[++_]+this[++_];return(BigInt(Je)<>>=0,T||V(_,4,this.length),a.read(this,_,!0,23,4)},g.prototype.readFloatBE=function(_,T){return _>>>=0,T||V(_,4,this.length),a.read(this,_,!1,23,4)},g.prototype.readDoubleLE=function(_,T){return _>>>=0,T||V(_,8,this.length),a.read(this,_,!0,52,8)},g.prototype.readDoubleBE=function(_,T){return _>>>=0,T||V(_,8,this.length),a.read(this,_,!1,52,8)},g.prototype.writeUintLE=g.prototype.writeUIntLE=function(_,T,ve,Je){_=+_,T>>>=0,ve>>>=0,Je||Ee(this,_,T,ve,Math.pow(2,8*ve)-1,0);let $e=1,St=0;for(this[T]=255&_;++St>>=0,ve>>>=0,Je||Ee(this,_,T,ve,Math.pow(2,8*ve)-1,0);let $e=ve-1,St=1;for(this[T+$e]=255&_;--$e>=0&&(St*=256);)this[T+$e]=_/St&255;return T+ve},g.prototype.writeUint8=g.prototype.writeUInt8=function(_,T,ve){return _=+_,T>>>=0,ve||Ee(this,_,T,1,255,0),this[T]=255&_,T+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(_,T,ve){return _=+_,T>>>=0,ve||Ee(this,_,T,2,65535,0),this[T]=255&_,this[T+1]=_>>>8,T+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(_,T,ve){return _=+_,T>>>=0,ve||Ee(this,_,T,2,65535,0),this[T]=_>>>8,this[T+1]=255&_,T+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(_,T,ve){return _=+_,T>>>=0,ve||Ee(this,_,T,4,4294967295,0),this[T+3]=_>>>24,this[T+2]=_>>>16,this[T+1]=_>>>8,this[T]=255&_,T+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(_,T,ve){return _=+_,T>>>=0,ve||Ee(this,_,T,4,4294967295,0),this[T]=_>>>24,this[T+1]=_>>>16,this[T+2]=_>>>8,this[T+3]=255&_,T+4},g.prototype.writeBigUInt64LE=X(function(_,T=0){return oe(this,_,T,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=X(function(_,T=0){return _e(this,_,T,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(_,T,ve,Je){if(_=+_,T>>>=0,!Je){const Et=Math.pow(2,8*ve-1);Ee(this,_,T,ve,Et-1,-Et)}let $e=0,St=1,dt=0;for(this[T]=255&_;++$e>0)-dt&255;return T+ve},g.prototype.writeIntBE=function(_,T,ve,Je){if(_=+_,T>>>=0,!Je){const Et=Math.pow(2,8*ve-1);Ee(this,_,T,ve,Et-1,-Et)}let $e=ve-1,St=1,dt=0;for(this[T+$e]=255&_;--$e>=0&&(St*=256);)_<0&&0===dt&&0!==this[T+$e+1]&&(dt=1),this[T+$e]=(_/St>>0)-dt&255;return T+ve},g.prototype.writeInt8=function(_,T,ve){return _=+_,T>>>=0,ve||Ee(this,_,T,1,127,-128),_<0&&(_=255+_+1),this[T]=255&_,T+1},g.prototype.writeInt16LE=function(_,T,ve){return _=+_,T>>>=0,ve||Ee(this,_,T,2,32767,-32768),this[T]=255&_,this[T+1]=_>>>8,T+2},g.prototype.writeInt16BE=function(_,T,ve){return _=+_,T>>>=0,ve||Ee(this,_,T,2,32767,-32768),this[T]=_>>>8,this[T+1]=255&_,T+2},g.prototype.writeInt32LE=function(_,T,ve){return _=+_,T>>>=0,ve||Ee(this,_,T,4,2147483647,-2147483648),this[T]=255&_,this[T+1]=_>>>8,this[T+2]=_>>>16,this[T+3]=_>>>24,T+4},g.prototype.writeInt32BE=function(_,T,ve){return _=+_,T>>>=0,ve||Ee(this,_,T,4,2147483647,-2147483648),_<0&&(_=4294967295+_+1),this[T]=_>>>24,this[T+1]=_>>>16,this[T+2]=_>>>8,this[T+3]=255&_,T+4},g.prototype.writeBigInt64LE=X(function(_,T=0){return oe(this,_,T,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=X(function(_,T=0){return _e(this,_,T,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeFloatLE=function(_,T,ve){return at(this,_,T,!0,ve)},g.prototype.writeFloatBE=function(_,T,ve){return at(this,_,T,!1,ve)},g.prototype.writeDoubleLE=function(_,T,ve){return be(this,_,T,!0,ve)},g.prototype.writeDoubleBE=function(_,T,ve){return be(this,_,T,!1,ve)},g.prototype.copy=function(_,T,ve,Je){if(!g.isBuffer(_))throw new TypeError("argument should be a Buffer");if(ve||(ve=0),!Je&&0!==Je&&(Je=this.length),T>=_.length&&(T=_.length),T||(T=0),Je>0&&Je=this.length)throw new RangeError("Index out of range");if(Je<0)throw new RangeError("sourceEnd out of bounds");Je>this.length&&(Je=this.length),_.length-T>>=0,ve=void 0===ve?this.length:ve>>>0,_||(_=0),"number"==typeof _)for($e=T;$e=ve+4;T-=3)_=`_${f.slice(T-3,T)}${_}`;return`${f.slice(0,T)}${_}`}function wt(f,_,T,ve,Je,$e){if(f>T||f<_){const St="bigint"==typeof _?"n":"";let dt;throw dt=$e>3?0===_||_===BigInt(0)?`>= 0${St} and < 2${St} ** ${8*($e+1)}${St}`:`>= -(2${St} ** ${8*($e+1)-1}${St}) and < 2 ** ${8*($e+1)-1}${St}`:`>= ${_}${St} and <= ${T}${St}`,new et.ERR_OUT_OF_RANGE("value",dt,f)}!function We(f,_,T){nt(_,"offset"),(void 0===f[_]||void 0===f[_+T])&&Q(_,f.length-(T+1))}(ve,Je,$e)}function nt(f,_){if("number"!=typeof f)throw new et.ERR_INVALID_ARG_TYPE(_,"number",f)}function Q(f,_,T){throw Math.floor(f)!==f?(nt(f,T),new et.ERR_OUT_OF_RANGE(T||"offset","an integer",f)):_<0?new et.ERR_BUFFER_OUT_OF_BOUNDS:new et.ERR_OUT_OF_RANGE(T||"offset",`>= ${T?1:0} and <= ${_}`,f)}Mt("ERR_BUFFER_OUT_OF_BOUNDS",function(f){return f?`${f} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Mt("ERR_INVALID_ARG_TYPE",function(f,_){return`The "${f}" argument must be of type number. Received type ${typeof _}`},TypeError),Mt("ERR_OUT_OF_RANGE",function(f,_,T){let ve=`The value of "${f}" is out of range.`,Je=T;return Number.isInteger(T)&&Math.abs(T)>2**32?Je=gt(String(T)):"bigint"==typeof T&&(Je=String(T),(T>BigInt(2)**BigInt(32)||T<-(BigInt(2)**BigInt(32)))&&(Je=gt(Je)),Je+="n"),ve+=` It must be ${_}. Received ${Je}`,ve},RangeError);const Le=/[^+/0-9A-Za-z-_]/g;function R(f,_){let T;_=_||1/0;const ve=f.length;let Je=null;const $e=[];for(let St=0;St55295&&T<57344){if(!Je){if(T>56319){(_-=3)>-1&&$e.push(239,191,189);continue}if(St+1===ve){(_-=3)>-1&&$e.push(239,191,189);continue}Je=T;continue}if(T<56320){(_-=3)>-1&&$e.push(239,191,189),Je=T;continue}T=65536+(Je-55296<<10|T-56320)}else Je&&(_-=3)>-1&&$e.push(239,191,189);if(Je=null,T<128){if((_-=1)<0)break;$e.push(T)}else if(T<2048){if((_-=2)<0)break;$e.push(T>>6|192,63&T|128)}else if(T<65536){if((_-=3)<0)break;$e.push(T>>12|224,T>>6&63|128,63&T|128)}else{if(!(T<1114112))throw new Error("Invalid code point");if((_-=4)<0)break;$e.push(T>>18|240,T>>12&63|128,T>>6&63|128,63&T|128)}}return $e}function x(f){return i.toByteArray(function ee(f){if((f=(f=f.split("=")[0]).trim().replace(Le,"")).length<2)return"";for(;f.length%4!=0;)f+="=";return f}(f))}function p(f,_,T,ve){let Je;for(Je=0;Je=_.length||Je>=f.length);++Je)_[Je+T]=f[Je];return Je}function m(f,_){return f instanceof _||null!=f&&null!=f.constructor&&null!=f.constructor.name&&f.constructor.name===_.name}function j(f){return f!=f}const de=function(){const f="0123456789abcdef",_=new Array(256);for(let T=0;T<16;++T){const ve=16*T;for(let Je=0;Je<16;++Je)_[ve+Je]=f[T]+f[Je]}return _}();function X(f){return typeof BigInt>"u"?H:f}function H(){throw new Error("BigInt not supported")}},1273:(Ct,ke,u)=>{"use strict";const{SymbolDispose:i}=u(5354),{AbortError:a,codes:c}=u(8599),{isNodeStream:v,isWebStream:b,kControllerErrorFunction:h}=u(8174),g=u(6978),{ERR_INVALID_ARG_TYPE:w}=c;let B;Ct.exports.addAbortSignal=function(k,F){if(((P,k)=>{if("object"!=typeof P||!("aborted"in P))throw new w("signal","AbortSignal",P)})(k),!v(F)&&!b(F))throw new w("stream",["ReadableStream","WritableStream","Stream"],F);return Ct.exports.addAbortSignalNoValidate(k,F)},Ct.exports.addAbortSignalNoValidate=function(P,k){if("object"!=typeof P||!("aborted"in P))return k;const F=v(k)?()=>{k.destroy(new a(void 0,{cause:P.reason}))}:()=>{k[h](new a(void 0,{cause:P.reason}))};if(P.aborted)F();else{B=B||u(7506).addAbortListener;const z=B(P,F);g(k,z[i])}return k}},6933:(Ct,ke,u)=>{"use strict";const{StringPrototypeSlice:i,SymbolIterator:a,TypedArrayPrototypeSet:c,Uint8Array:v}=u(5354),{Buffer:b}=u(1160),{inspect:h}=u(7506);Ct.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(w){const B={data:w,next:null};this.length>0?this.tail.next=B:this.head=B,this.tail=B,++this.length}unshift(w){const B={data:w,next:this.head};0===this.length&&(this.tail=B),this.head=B,++this.length}shift(){if(0===this.length)return;const w=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,w}clear(){this.head=this.tail=null,this.length=0}join(w){if(0===this.length)return"";let B=this.head,O=""+B.data;for(;null!==(B=B.next);)O+=w+B.data;return O}concat(w){if(0===this.length)return b.alloc(0);const B=b.allocUnsafe(w>>>0);let O=this.head,P=0;for(;O;)c(B,O.data,P),P+=O.data.length,O=O.next;return B}consume(w,B){const O=this.head.data;if(wk.length)){w===k.length?(B+=k,++P,this.head=O.next?O.next:this.tail=null):(B+=i(k,0,w),this.head=O,O.data=i(k,w));break}B+=k,w-=k.length,++P}while(null!==(O=O.next));return this.length-=P,B}_getBuffer(w){const B=b.allocUnsafe(w),O=w;let P=this.head,k=0;do{const F=P.data;if(!(w>F.length)){w===F.length?(c(B,F,O-w),++k,this.head=P.next?P.next:this.tail=null):(c(B,new v(F.buffer,F.byteOffset,w),O-w),this.head=P,P.data=F.slice(w));break}c(B,F,O-w),w-=F.length,++k}while(null!==(P=P.next));return this.length-=k,B}[Symbol.for("nodejs.util.inspect.custom")](w,B){return h(this,{...B,depth:0,customInspect:!1})}}},5240:(Ct,ke,u)=>{"use strict";var i=u(7156).default;const{pipeline:a}=u(4563),c=u(3147),{destroyer:v}=u(8584),{isNodeStream:b,isReadable:h,isWritable:g,isWebStream:w,isTransformStream:B,isWritableStream:O,isReadableStream:P}=u(8174),{AbortError:k,codes:{ERR_INVALID_ARG_VALUE:F,ERR_MISSING_ARGS:z}}=u(8599),ae=u(6978);Ct.exports=function(...ue){if(0===ue.length)throw new z("streams");if(1===ue.length)return c.from(ue[0]);const le=[...ue];if("function"==typeof ue[0]&&(ue[0]=c.from(ue[0])),"function"==typeof ue[ue.length-1]){const me=ue.length-1;ue[me]=c.from(ue[me])}for(let me=0;me0&&!(g(ue[me])||O(ue[me])||B(ue[me])))throw new F(`streams[${me}]`,le[me],"must be writable")}let ge,W,ie,he,se;const Ge=ue[0],it=a(ue,function Me(me){const Xe=he;he=null,Xe?Xe(me):me?se.destroy(me):!tt&&!Ke&&se.destroy()}),Ke=!!(g(Ge)||O(Ge)||B(Ge)),tt=!!(h(it)||P(it)||B(it));if(se=new c({writableObjectMode:!(null==Ge||!Ge.writableObjectMode),readableObjectMode:!(null==it||!it.readableObjectMode),writable:Ke,readable:tt}),Ke){if(b(Ge))se._write=function(Xe,Ae,_t){Ge.write(Xe,Ae)?_t():ge=_t},se._final=function(Xe){Ge.end(),W=Xe},Ge.on("drain",function(){if(ge){const Xe=ge;ge=null,Xe()}});else if(w(Ge)){const Ae=(B(Ge)?Ge.writable:Ge).getWriter();se._write=function(){var _t=i(function*(ht,Yt,Dt){try{yield Ae.ready,Ae.write(ht).catch(()=>{}),Dt()}catch(jt){Dt(jt)}});return function(ht,Yt,Dt){return _t.apply(this,arguments)}}(),se._final=function(){var _t=i(function*(ht){try{yield Ae.ready,Ae.close().catch(()=>{}),W=ht}catch(Yt){ht(Yt)}});return function(ht){return _t.apply(this,arguments)}}()}const me=B(it)?it.readable:it;ae(me,()=>{if(W){const Xe=W;W=null,Xe()}})}if(tt)if(b(it))it.on("readable",function(){if(ie){const me=ie;ie=null,me()}}),it.on("end",function(){se.push(null)}),se._read=function(){for(;;){const me=it.read();if(null===me)return void(ie=se._read);if(!se.push(me))return}};else if(w(it)){const Xe=(B(it)?it.readable:it).getReader();se._read=i(function*(){for(;;)try{const{value:Ae,done:_t}=yield Xe.read();if(!se.push(Ae))return;if(_t)return void se.push(null)}catch{return}})}return se._destroy=function(me,Xe){!me&&null!==he&&(me=new k),ie=null,ge=null,W=null,null===he?Xe(me):(he=Xe,b(it)&&v(it,me))},se}},8584:(Ct,ke,u)=>{"use strict";const i=u(5736),{aggregateTwoErrors:a,codes:{ERR_MULTIPLE_CALLBACK:c},AbortError:v}=u(8599),{Symbol:b}=u(5354),{kIsDestroyed:h,isDestroyed:g,isFinished:w,isServerRequest:B}=u(8174),O=b("kDestroy"),P=b("kConstruct");function k(Ke,tt,me){Ke&&(tt&&!tt.errored&&(tt.errored=Ke),me&&!me.errored&&(me.errored=Ke))}function z(Ke,tt,me){let Xe=!1;function Ae(_t){if(Xe)return;Xe=!0;const ht=Ke._readableState,Yt=Ke._writableState;k(_t,Yt,ht),Yt&&(Yt.closed=!0),ht&&(ht.closed=!0),"function"==typeof me&&me(_t),_t?i.nextTick(ae,Ke,_t):i.nextTick(we,Ke)}try{Ke._destroy(tt||null,Ae)}catch(_t){Ae(_t)}}function ae(Ke,tt){ue(Ke,tt),we(Ke)}function we(Ke){const tt=Ke._readableState,me=Ke._writableState;me&&(me.closeEmitted=!0),tt&&(tt.closeEmitted=!0),(null!=me&&me.emitClose||null!=tt&&tt.emitClose)&&Ke.emit("close")}function ue(Ke,tt){const me=Ke._readableState,Xe=Ke._writableState;null!=Xe&&Xe.errorEmitted||null!=me&&me.errorEmitted||(Xe&&(Xe.errorEmitted=!0),me&&(me.errorEmitted=!0),Ke.emit("error",tt))}function ge(Ke,tt,me){const Xe=Ke._readableState,Ae=Ke._writableState;if(null!=Ae&&Ae.destroyed||null!=Xe&&Xe.destroyed)return this;null!=Xe&&Xe.autoDestroy||null!=Ae&&Ae.autoDestroy?Ke.destroy(tt):tt&&(Ae&&!Ae.errored&&(Ae.errored=tt),Xe&&!Xe.errored&&(Xe.errored=tt),me?i.nextTick(ue,Ke,tt):ue(Ke,tt))}function ie(Ke){let tt=!1;function me(Xe){if(tt)return void ge(Ke,Xe??new c);tt=!0;const Ae=Ke._readableState,_t=Ke._writableState,ht=_t||Ae;Ae&&(Ae.constructed=!0),_t&&(_t.constructed=!0),ht.destroyed?Ke.emit(O,Xe):Xe?ge(Ke,Xe,!0):i.nextTick(he,Ke)}try{Ke._construct(Xe=>{i.nextTick(me,Xe)})}catch(Xe){i.nextTick(me,Xe)}}function he(Ke){Ke.emit(P)}function se(Ke){return Ke?.setHeader&&"function"==typeof Ke.abort}function Me(Ke){Ke.emit("close")}function Ge(Ke,tt){Ke.emit("error",tt),i.nextTick(Me,Ke)}Ct.exports={construct:function W(Ke,tt){if("function"!=typeof Ke._construct)return;const me=Ke._readableState,Xe=Ke._writableState;me&&(me.constructed=!1),Xe&&(Xe.constructed=!1),Ke.once(P,tt),!(Ke.listenerCount(P)>1)&&i.nextTick(ie,Ke)},destroyer:function it(Ke,tt){!Ke||g(Ke)||(!tt&&!w(Ke)&&(tt=new v),B(Ke)?(Ke.socket=null,Ke.destroy(tt)):se(Ke)?Ke.abort():se(Ke.req)?Ke.req.abort():"function"==typeof Ke.destroy?Ke.destroy(tt):"function"==typeof Ke.close?Ke.close():tt?i.nextTick(Ge,Ke,tt):i.nextTick(Me,Ke),Ke.destroyed||(Ke[h]=!0))},destroy:function F(Ke,tt){const me=this._readableState,Xe=this._writableState,Ae=Xe||me;return null!=Xe&&Xe.destroyed||null!=me&&me.destroyed?("function"==typeof tt&&tt(),this):(k(Ke,Xe,me),Xe&&(Xe.destroyed=!0),me&&(me.destroyed=!0),Ae.constructed?z(this,Ke,tt):this.once(O,function(_t){z(this,a(_t,Ke),tt)}),this)},undestroy:function le(){const Ke=this._readableState,tt=this._writableState;Ke&&(Ke.constructed=!0,Ke.closed=!1,Ke.closeEmitted=!1,Ke.destroyed=!1,Ke.errored=null,Ke.errorEmitted=!1,Ke.reading=!1,Ke.ended=!1===Ke.readable,Ke.endEmitted=!1===Ke.readable),tt&&(tt.constructed=!0,tt.destroyed=!1,tt.closed=!1,tt.closeEmitted=!1,tt.errored=null,tt.errorEmitted=!1,tt.finalCalled=!1,tt.prefinished=!1,tt.ended=!1===tt.writable,tt.ending=!1===tt.writable,tt.finished=!1===tt.writable)},errorOrDestroy:ge}},3147:(Ct,ke,u)=>{"use strict";const{ObjectDefineProperties:i,ObjectGetOwnPropertyDescriptor:a,ObjectKeys:c,ObjectSetPrototypeOf:v}=u(5354);Ct.exports=g;const b=u(9638),h=u(6355);v(g.prototype,b.prototype),v(g,b);{const P=c(h.prototype);for(let k=0;k{var i=u(7156).default,a=u(6737).default,c=u(8186).default;const v=u(5736),b=u(1160),{isReadable:h,isWritable:g,isIterable:w,isNodeStream:B,isReadableNodeStream:O,isWritableNodeStream:P,isDuplexNodeStream:k,isReadableStream:F,isWritableStream:z}=u(8174),ae=u(6978),{AbortError:we,codes:{ERR_INVALID_ARG_TYPE:ue,ERR_INVALID_RETURN_VALUE:le}}=u(8599),{destroyer:ge}=u(8584),W=u(3147),ie=u(9638),he=u(6355),{createDeferredPromise:se}=u(7506),Me=u(8394),Ge=globalThis.Blob||b.Blob,it=typeof Ge<"u"?function(ht){return ht instanceof Ge}:function(ht){return!1},Ke=globalThis.AbortController||u(552).AbortController,{FunctionPrototypeCall:tt}=u(5354);class me extends W{constructor(ht){super(ht),!1===ht?.readable&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===ht?.writable&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}function Ae(_t){const ht=_t.readable&&"function"!=typeof _t.readable.read?ie.wrap(_t.readable):_t.readable,Yt=_t.writable;let V,Ee,oe,_e,Oe,Dt=!!h(ht),jt=!!g(Yt);function at(be){const et=_e;_e=null,et?et(be):be&&Oe.destroy(be)}return Oe=new me({readableObjectMode:!(null==ht||!ht.readableObjectMode),writableObjectMode:!(null==Yt||!Yt.writableObjectMode),readable:Dt,writable:jt}),jt&&(ae(Yt,be=>{jt=!1,be&&ge(ht,be),at(be)}),Oe._write=function(be,et,Mt){Yt.write(be,et)?Mt():V=Mt},Oe._final=function(be){Yt.end(),Ee=be},Yt.on("drain",function(){if(V){const be=V;V=null,be()}}),Yt.on("finish",function(){if(Ee){const be=Ee;Ee=null,be()}})),Dt&&(ae(ht,be=>{Dt=!1,be&&ge(ht,be),at(be)}),ht.on("readable",function(){if(oe){const be=oe;oe=null,be()}}),ht.on("end",function(){Oe.push(null)}),Oe._read=function(){for(;;){const be=ht.read();if(null===be)return void(oe=Oe._read);if(!Oe.push(be))return}}),Oe._destroy=function(be,et){!be&&null!==_e&&(be=new we),oe=null,V=null,Ee=null,null===_e?et(be):(_e=et,ge(Yt,be),ge(ht,be))},Oe}Ct.exports=function _t(ht,Yt){if(k(ht))return ht;if(O(ht))return Ae({readable:ht});if(P(ht))return Ae({writable:ht});if(B(ht))return Ae({writable:!1,readable:!1});if(F(ht))return Ae({readable:ie.fromWeb(ht)});if(z(ht))return Ae({writable:he.fromWeb(ht)});if("function"==typeof ht){const{value:jt,write:V,final:Ee,destroy:oe}=function Xe(_t){let{promise:ht,resolve:Yt}=se();const Dt=new Ke,jt=Dt.signal;return{value:_t(c(function*(){for(;;){const Ee=ht;ht=null;const{chunk:oe,done:_e,cb:Oe}=yield a(Ee);if(v.nextTick(Oe),_e)return;if(jt.aborted)throw new we(void 0,{cause:jt.reason});({promise:ht,resolve:Yt}=se()),yield oe}})(),{signal:jt}),write(Ee,oe,_e){const Oe=Yt;Yt=null,Oe({chunk:Ee,done:!1,cb:_e})},final(Ee){const oe=Yt;Yt=null,oe({done:!0,cb:Ee})},destroy(Ee,oe){Dt.abort(),oe(Ee)}}}(ht);if(w(jt))return Me(me,jt,{objectMode:!0,write:V,final:Ee,destroy:oe});const _e=jt?.then;if("function"==typeof _e){let Oe;const at=tt(_e,jt,be=>{if(null!=be)throw new le("nully","body",be)},be=>{ge(Oe,be)});return Oe=new me({objectMode:!0,readable:!1,write:V,final(be){Ee(i(function*(){try{yield at,v.nextTick(be,null)}catch(et){v.nextTick(be,et)}}))},destroy:oe})}throw new le("Iterable, AsyncIterable or AsyncFunction",Yt,jt)}if(it(ht))return _t(ht.arrayBuffer());if(w(ht))return Me(me,ht,{objectMode:!0,writable:!1});if(F(ht?.readable)&&z(ht?.writable))return me.fromWeb(ht);if("object"==typeof ht?.writable||"object"==typeof ht?.readable)return Ae({readable:null!=ht&&ht.readable?O(ht?.readable)?ht?.readable:_t(ht.readable):void 0,writable:null!=ht&&ht.writable?P(ht?.writable)?ht?.writable:_t(ht.writable):void 0});const Dt=ht?.then;if("function"==typeof Dt){let jt;return tt(Dt,ht,V=>{null!=V&&jt.push(V),jt.push(null)},V=>{ge(jt,V)}),jt=new me({objectMode:!0,writable:!1,read(){}})}throw new ue(Yt,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],ht)}},6978:(Ct,ke,u)=>{const i=u(5736),{AbortError:a,codes:c}=u(8599),{ERR_INVALID_ARG_TYPE:v,ERR_STREAM_PREMATURE_CLOSE:b}=c,{kEmptyObject:h,once:g}=u(7506),{validateAbortSignal:w,validateFunction:B,validateObject:O,validateBoolean:P}=u(765),{Promise:k,PromisePrototypeThen:F,SymbolDispose:z}=u(5354),{isClosed:ae,isReadable:we,isReadableNodeStream:ue,isReadableStream:le,isReadableFinished:ge,isReadableErrored:W,isWritable:ie,isWritableNodeStream:he,isWritableStream:se,isWritableFinished:Me,isWritableErrored:Ge,isNodeStream:it,willEmitClose:Ke,kIsClosedPromise:tt}=u(8174);let me;function Xe(Dt){return Dt.setHeader&&"function"==typeof Dt.abort}const Ae=()=>{};function _t(Dt,jt,V){var Ee,oe;if(2===arguments.length?(V=jt,jt=h):null==jt?jt=h:O(jt,"options"),B(V,"callback"),w(jt.signal,"options.signal"),V=g(V),le(Dt)||se(Dt))return ht(Dt,jt,V);if(!it(Dt))throw new v("stream",["ReadableStream","WritableStream","Stream"],Dt);const _e=null!==(Ee=jt.readable)&&void 0!==Ee?Ee:ue(Dt),Oe=null!==(oe=jt.writable)&&void 0!==oe?oe:he(Dt),at=Dt._writableState,be=Dt._readableState,et=()=>{Dt.writable||We()};let Mt=Ke(Dt)&&ue(Dt)===_e&&he(Dt)===Oe,gt=Me(Dt,!1);const We=()=>{gt=!0,Dt.destroyed&&(Mt=!1),(!Mt||Dt.readable&&!_e)&&(!_e||wt)&&V.call(Dt)};let wt=ge(Dt,!1);const nt=()=>{wt=!0,Dt.destroyed&&(Mt=!1),(!Mt||Dt.writable&&!Oe)&&(!Oe||gt)&&V.call(Dt)},Q=x=>{V.call(Dt,x)};let Le=ae(Dt);const ee=()=>{Le=!0;const x=Ge(Dt)||W(Dt);return x&&"boolean"!=typeof x?V.call(Dt,x):_e&&!wt&&ue(Dt,!0)&&!ge(Dt,!1)?V.call(Dt,new b):!Oe||gt||Me(Dt,!1)?void V.call(Dt):V.call(Dt,new b)},R=()=>{Le=!0;const x=Ge(Dt)||W(Dt);if(x&&"boolean"!=typeof x)return V.call(Dt,x);V.call(Dt)},U=()=>{Dt.req.on("finish",We)};Xe(Dt)?(Dt.on("complete",We),Mt||Dt.on("abort",ee),Dt.req?U():Dt.on("request",U)):Oe&&!at&&(Dt.on("end",et),Dt.on("close",et)),!Mt&&"boolean"==typeof Dt.aborted&&Dt.on("aborted",ee),Dt.on("end",nt),Dt.on("finish",We),!1!==jt.error&&Dt.on("error",Q),Dt.on("close",ee),Le?i.nextTick(ee):null!=at&&at.errorEmitted||null!=be&&be.errorEmitted?Mt||i.nextTick(R):(!_e&&(!Mt||we(Dt))&&(gt||!1===ie(Dt))||!Oe&&(!Mt||ie(Dt))&&(wt||!1===we(Dt))||be&&Dt.req&&Dt.aborted)&&i.nextTick(R);const Re=()=>{V=Ae,Dt.removeListener("aborted",ee),Dt.removeListener("complete",We),Dt.removeListener("abort",ee),Dt.removeListener("request",U),Dt.req&&Dt.req.removeListener("finish",We),Dt.removeListener("end",et),Dt.removeListener("close",et),Dt.removeListener("finish",We),Dt.removeListener("end",nt),Dt.removeListener("error",Q),Dt.removeListener("close",ee)};if(jt.signal&&!Le){const x=()=>{const p=V;Re(),p.call(Dt,new a(void 0,{cause:jt.signal.reason}))};if(jt.signal.aborted)i.nextTick(x);else{me=me||u(7506).addAbortListener;const p=me(jt.signal,x),m=V;V=g((...j)=>{p[z](),m.apply(Dt,j)})}}return Re}function ht(Dt,jt,V){let Ee=!1,oe=Ae;if(jt.signal)if(oe=()=>{Ee=!0,V.call(Dt,new a(void 0,{cause:jt.signal.reason}))},jt.signal.aborted)i.nextTick(oe);else{me=me||u(7506).addAbortListener;const Oe=me(jt.signal,oe),at=V;V=g((...be)=>{Oe[z](),at.apply(Dt,be)})}const _e=(...Oe)=>{Ee||i.nextTick(()=>V.apply(Dt,Oe))};return F(Dt[tt].promise,_e,_e),Ae}Ct.exports=_t,Ct.exports.finished=function Yt(Dt,jt){var V;let Ee=!1;return null===jt&&(jt=h),null!==(V=jt)&&void 0!==V&&V.cleanup&&(P(jt.cleanup,"cleanup"),Ee=jt.cleanup),new k((oe,_e)=>{const Oe=_t(Dt,jt,at=>{Ee&&Oe(),at?_e(at):oe()})})}},8394:(Ct,ke,u)=>{"use strict";var i=u(7156).default;const a=u(5736),{PromisePrototypeThen:c,SymbolAsyncIterator:v,SymbolIterator:b}=u(5354),{Buffer:h}=u(1160),{ERR_INVALID_ARG_TYPE:g,ERR_STREAM_NULL_VALUES:w}=u(8599).codes;Ct.exports=function B(O,P,k){let F,z;if("string"==typeof P||P instanceof h)return new O({objectMode:!0,...k,read(){this.push(P),this.push(null)}});if(P&&P[v])z=!0,F=P[v]();else{if(!P||!P[b])throw new g("iterable",["Iterable"],P);z=!1,F=P[b]()}const ae=new O({objectMode:!0,highWaterMark:1,...k});let we=!1;function le(){return(le=i(function*(ie){if(null!=ie&&"function"==typeof F.throw){const{value:Me,done:Ge}=yield F.throw(ie);if(yield Me,Ge)return}if("function"==typeof F.return){const{value:Me}=yield F.return();yield Me}})).apply(this,arguments)}function W(){return(W=i(function*(){for(;;){try{const{value:ie,done:he}=z?yield F.next():F.next();if(he)ae.push(null);else{const se=ie&&"function"==typeof ie.then?yield ie:ie;if(null===se)throw we=!1,new w;if(ae.push(se))continue;we=!1}}catch(ie){ae.destroy(ie)}break}})).apply(this,arguments)}return ae._read=function(){we||(we=!0,function ge(){W.apply(this,arguments)}())},ae._destroy=function(ie,he){c(function ue(ie){return le.apply(this,arguments)}(ie),()=>a.nextTick(he,ie),se=>a.nextTick(he,se||ie))},ae}},9994:(Ct,ke,u)=>{"use strict";const{ArrayIsArray:i,ObjectSetPrototypeOf:a}=u(5354),{EventEmitter:c}=u(9069);function v(h){c.call(this,h)}function b(h,g,w){if("function"==typeof h.prependListener)return h.prependListener(g,w);h._events&&h._events[g]?i(h._events[g])?h._events[g].unshift(w):h._events[g]=[w,h._events[g]]:h.on(g,w)}a(v.prototype,c.prototype),a(v,c),v.prototype.pipe=function(h,g){const w=this;function B(we){h.writable&&!1===h.write(we)&&w.pause&&w.pause()}function O(){w.readable&&w.resume&&w.resume()}w.on("data",B),h.on("drain",O),!h._isStdio&&(!g||!1!==g.end)&&(w.on("end",k),w.on("close",F));let P=!1;function k(){P||(P=!0,h.end())}function F(){P||(P=!0,"function"==typeof h.destroy&&h.destroy())}function z(we){ae(),0===c.listenerCount(this,"error")&&this.emit("error",we)}function ae(){w.removeListener("data",B),h.removeListener("drain",O),w.removeListener("end",k),w.removeListener("close",F),w.removeListener("error",z),h.removeListener("error",z),w.removeListener("end",ae),w.removeListener("close",ae),h.removeListener("close",ae)}return b(w,"error",z),b(h,"error",z),w.on("end",ae),w.on("close",ae),h.on("close",ae),h.emit("pipe",w),h},Ct.exports={Stream:v,prependListener:b}},6682:(Ct,ke,u)=>{"use strict";var i=u(7156).default,a=u(8131).default,c=u(8237).default,v=u(6737).default,b=u(8186).default;const h=globalThis.AbortController||u(552).AbortController,{codes:{ERR_INVALID_ARG_VALUE:g,ERR_INVALID_ARG_TYPE:w,ERR_MISSING_ARGS:B,ERR_OUT_OF_RANGE:O},AbortError:P}=u(8599),{validateAbortSignal:k,validateInteger:F,validateObject:z}=u(765),ae=u(5354).Symbol("kWeak"),we=u(5354).Symbol("kResistStopPropagation"),{finished:ue}=u(6978),le=u(5240),{addAbortSignalNoValidate:ge}=u(1273),{isWritable:W,isNodeStream:ie}=u(8174),{deprecate:he}=u(7506),{ArrayPrototypePush:se,Boolean:Me,MathFloor:Ge,Number:it,NumberIsNaN:Ke,Promise:tt,PromiseReject:me,PromiseResolve:Xe,PromisePrototypeThen:Ae,Symbol:_t}=u(5354),ht=_t("kEmpty"),Yt=_t("kEof");function jt(x,p){if("function"!=typeof x)throw new w("fn",["Function","AsyncFunction"],x);null!=p&&z(p,"options"),null!=p?.signal&&k(p.signal,"options.signal");let m=1;null!=p?.concurrency&&(m=Ge(p.concurrency));let j=m-1;return null!=p?.highWaterMark&&(j=Ge(p.highWaterMark)),F(m,"options.concurrency",1),F(j,"options.highWaterMark",0),j+=m,function(){var de=b(function*(){const H=u(7506).AbortSignalAny([p?.signal].filter(Me)),f=this,_=[],T={signal:H};let ve,Je,$e=!1,St=0;function dt(){$e=!0,Et()}function Et(){St-=1,ye()}function ye(){Je&&!$e&&St=j||St>=m)&&(yield new tt(Pe=>{Je=Pe}))}}catch(Ye){ot=!0,ce=Ye}finally{try{Fe&&null!=je.return&&(yield je.return())}finally{if(ot)throw ce}}_.push(Yt)}catch(Ye){const Pe=me(Ye);Ae(Pe,Et,dt),_.push(Pe)}finally{$e=!0,ve&&(ve(),ve=null)}})).apply(this,arguments)}!function qe(){xe.apply(this,arguments)}();try{for(;;){for(;_.length>0;){const Fe=yield v(_[0]);if(Fe===Yt)return;if(H.aborted)throw new P;Fe!==ht&&(yield Fe),_.shift(),ye()}yield v(new tt(Fe=>{ve=Fe}))}}finally{$e=!0,Je&&(Je(),Je=null)}});return function X(){return de.apply(this,arguments)}}().call(this)}function Ee(x){return oe.apply(this,arguments)}function oe(){return(oe=i(function*(x,p){var de,m=!1,j=!1;try{for(var X=c(gt.call(this,x,p));m=!(yield X.next()).done;m=!1)return!0}catch(f){j=!0,de=f}finally{try{m&&null!=X.return&&(yield X.return())}finally{if(j)throw de}}return!1})).apply(this,arguments)}function Oe(){return(Oe=i(function*(x,p){if("function"!=typeof x)throw new w("fn",["Function","AsyncFunction"],x);return!(yield Ee.call(this,i(function*(...m){return!(yield x(...m))}),p))})).apply(this,arguments)}function be(){return(be=i(function*(x,p){var de,m=!1,j=!1;try{for(var H,X=c(gt.call(this,x,p));m=!(H=yield X.next()).done;m=!1)return H.value}catch(f){j=!0,de=f}finally{try{m&&null!=X.return&&(yield X.return())}finally{if(j)throw de}}})).apply(this,arguments)}function Mt(){return Mt=i(function*(x,p){if("function"!=typeof x)throw new w("fn",["Function","AsyncFunction"],x);function j(){return(j=i(function*(T,ve){return yield x(T,ve),ht})).apply(this,arguments)}var H,de=!1,X=!1;try{for(var f=c(jt.call(this,function m(T,ve){return j.apply(this,arguments)},p));de=!(yield f.next()).done;de=!1);}catch(T){X=!0,H=T}finally{try{de&&null!=f.return&&(yield f.return())}finally{if(X)throw H}}}),Mt.apply(this,arguments)}function gt(x,p){if("function"!=typeof x)throw new w("fn",["Function","AsyncFunction"],x);function j(){return(j=i(function*(de,X){return(yield x(de,X))?de:ht})).apply(this,arguments)}return jt.call(this,function m(de,X){return j.apply(this,arguments)},p)}class We extends B{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}function nt(){return nt=i(function*(x,p,m){var j;if("function"!=typeof x)throw new w("reducer",["Function","AsyncFunction"],x);null!=m&&z(m,"options"),null!=m?.signal&&k(m.signal,"options.signal");let de=arguments.length>1;if(null!=m&&null!==(j=m.signal)&&void 0!==j&&j.aborted){const dt=new P(void 0,{cause:m.signal.reason});throw this.once("error",()=>{}),yield ue(this.destroy(dt)),dt}const X=new h,H=X.signal;null!=m&&m.signal&&m.signal.addEventListener("abort",()=>X.abort(),{once:!0,[ae]:this,[we]:!0});let f=!1;try{var ve,_=!1,T=!1;try{for(var $e,Je=c(this);_=!($e=yield Je.next()).done;_=!1){const dt=$e.value;var St;if(f=!0,null!=m&&null!==(St=m.signal)&&void 0!==St&&St.aborted)throw new P;de?p=yield x(p,dt,{signal:H}):(p=dt,de=!0)}}catch(dt){T=!0,ve=dt}finally{try{_&&null!=Je.return&&(yield Je.return())}finally{if(T)throw ve}}if(!f&&!de)throw new We}finally{X.abort()}return p}),nt.apply(this,arguments)}function Le(){return(Le=i(function*(x){null!=x&&z(x,"options"),null!=x?.signal&&k(x.signal,"options.signal");const p=[];var de,m=!1,j=!1;try{for(var H,X=c(this);m=!(H=yield X.next()).done;m=!1){const _=H.value;var f;if(null!=x&&null!==(f=x.signal)&&void 0!==f&&f.aborted)throw new P(void 0,{cause:x.signal.reason});se(p,_)}}catch(_){j=!0,de=_}finally{try{m&&null!=X.return&&(yield X.return())}finally{if(j)throw de}}return p})).apply(this,arguments)}function R(x){if(x=it(x),Ke(x))return 0;if(x<0)throw new O("number",">= 0",x);return x}Ct.exports.streamReturningOperators={asIndexedPairs:he(function V(x){return null!=x&&z(x,"options"),null!=x?.signal&&k(x.signal,"options.signal"),function(){var p=b(function*(){let j=0;var H,de=!1,X=!1;try{for(var _,f=c(this);de=!(_=yield v(f.next())).done;de=!1){const ve=_.value;var T;if(null!=x&&null!==(T=x.signal)&&void 0!==T&&T.aborted)throw new P({cause:x.signal.reason});yield[j++,ve]}}catch(ve){X=!0,H=ve}finally{try{de&&null!=f.return&&(yield v(f.return()))}finally{if(X)throw H}}});return function m(){return p.apply(this,arguments)}}().call(this)},"readable.asIndexedPairs will be removed in a future version."),drop:function U(x,p){return null!=p&&z(p,"options"),null!=p?.signal&&k(p.signal,"options.signal"),x=R(x),function(){var m=b(function*(){var de;if(null!=p&&null!==(de=p.signal)&&void 0!==de&&de.aborted)throw new P;var f,X=!1,H=!1;try{for(var T,_=c(this);X=!(T=yield v(_.next())).done;X=!1){const Je=T.value;var ve;if(null!=p&&null!==(ve=p.signal)&&void 0!==ve&&ve.aborted)throw new P;x--<=0&&(yield Je)}}catch(Je){H=!0,f=Je}finally{try{X&&null!=_.return&&(yield v(_.return()))}finally{if(H)throw f}}});return function j(){return m.apply(this,arguments)}}().call(this)},filter:gt,flatMap:function ee(x,p){const m=jt.call(this,x,p);return function(){var j=b(function*(){var f,X=!1,H=!1;try{for(var T,_=c(m);X=!(T=yield v(_.next())).done;X=!1){const ve=T.value;yield*a(c(ve),v)}}catch(ve){H=!0,f=ve}finally{try{X&&null!=_.return&&(yield v(_.return()))}finally{if(H)throw f}}});return function de(){return j.apply(this,arguments)}}().call(this)},map:jt,take:function Re(x,p){return null!=p&&z(p,"options"),null!=p?.signal&&k(p.signal,"options.signal"),x=R(x),function(){var m=b(function*(){var de;if(null!=p&&null!==(de=p.signal)&&void 0!==de&&de.aborted)throw new P;var f,X=!1,H=!1;try{for(var T,_=c(this);X=!(T=yield v(_.next())).done;X=!1){const Je=T.value;var ve;if(null!=p&&null!==(ve=p.signal)&&void 0!==ve&&ve.aborted)throw new P;if(x-- >0&&(yield Je),x<=0)return}}catch(Je){H=!0,f=Je}finally{try{X&&null!=_.return&&(yield v(_.return()))}finally{if(H)throw f}}});return function j(){return m.apply(this,arguments)}}().call(this)},compose:function Dt(x,p){if(null!=p&&z(p,"options"),null!=p?.signal&&k(p.signal,"options.signal"),ie(x)&&!W(x))throw new g("stream",x,"must be writable");const m=le(this,x);return null!=p&&p.signal&&ge(p.signal,m),m}},Ct.exports.promiseReturningOperators={every:function _e(x){return Oe.apply(this,arguments)},forEach:function et(x,p){return Mt.apply(this,arguments)},reduce:function wt(x,p,m){return nt.apply(this,arguments)},toArray:function Q(x){return Le.apply(this,arguments)},some:Ee,find:function at(x,p){return be.apply(this,arguments)}}},407:(Ct,ke,u)=>{"use strict";const{ObjectSetPrototypeOf:i}=u(5354);Ct.exports=c;const a=u(4367);function c(v){if(!(this instanceof c))return new c(v);a.call(this,v)}i(c.prototype,a.prototype),i(c,a),c.prototype._transform=function(v,b,h){h(null,v)}},4563:(Ct,ke,u)=>{var i=u(7156).default,a=u(8186).default,c=u(6737).default,v=u(8237).default,b=u(8131).default;const h=u(5736),{ArrayIsArray:g,Promise:w,SymbolAsyncIterator:B,SymbolDispose:O}=u(5354),P=u(6978),{once:k}=u(7506),F=u(8584),z=u(3147),{aggregateTwoErrors:ae,codes:{ERR_INVALID_ARG_TYPE:we,ERR_INVALID_RETURN_VALUE:ue,ERR_MISSING_ARGS:le,ERR_STREAM_DESTROYED:ge,ERR_STREAM_PREMATURE_CLOSE:W},AbortError:ie}=u(8599),{validateFunction:he,validateAbortSignal:se}=u(765),{isIterable:Me,isReadable:Ge,isReadableNodeStream:it,isNodeStream:Ke,isTransformStream:tt,isWebStream:me,isReadableStream:Xe,isReadableFinished:Ae}=u(8174),_t=globalThis.AbortController||u(552).AbortController;let ht,Yt,Dt;function jt(wt,nt,Q){let Le=!1;return wt.on("close",()=>{Le=!0}),{destroy:R=>{Le||(Le=!0,F.destroyer(wt,R||new ge("pipe")))},cleanup:P(wt,{readable:nt,writable:Q},R=>{Le=!R})}}function Ee(wt){if(Me(wt))return wt;if(it(wt))return function oe(wt){return _e.apply(this,arguments)}(wt);throw new we("val",["Readable","Iterable","AsyncIterable"],wt)}function _e(){return(_e=a(function*(wt){Yt||(Yt=u(9638)),yield*b(v(Yt.prototype[B].call(wt)),c)})).apply(this,arguments)}function Oe(wt,nt,Q,Le){return at.apply(this,arguments)}function at(){return(at=i(function*(wt,nt,Q,{end:Le}){let ee,R=null;const U=H=>{if(H&&(ee=H),R){const f=R;R=null,f()}},Re=()=>new w((H,f)=>{ee?f(ee):R=()=>{ee?f(ee):H()}});nt.on("drain",U);const x=P(nt,{readable:!1},U);try{nt.writableNeedDrain&&(yield Re());var j,p=!1,m=!1;try{for(var X,de=v(wt);p=!(X=yield de.next()).done;p=!1)nt.write(X.value)||(yield Re())}catch(H){m=!0,j=H}finally{try{p&&null!=de.return&&(yield de.return())}finally{if(m)throw j}}Le&&(nt.end(),yield Re()),Q()}catch(H){Q(ee!==H?ae(ee,H):H)}finally{x(),nt.off("drain",U)}})).apply(this,arguments)}function be(wt,nt,Q,Le){return et.apply(this,arguments)}function et(){return(et=i(function*(wt,nt,Q,{end:Le}){tt(nt)&&(nt=nt.writable);const ee=nt.getWriter();try{var Re,R=!1,U=!1;try{for(var p,x=v(wt);R=!(p=yield x.next()).done;R=!1){const m=p.value;yield ee.ready,ee.write(m).catch(()=>{})}}catch(m){U=!0,Re=m}finally{try{R&&null!=x.return&&(yield x.return())}finally{if(U)throw Re}}yield ee.ready,Le&&(yield ee.close()),Q()}catch(m){try{yield ee.abort(m),Q(m)}catch(j){Q(j)}}})).apply(this,arguments)}function gt(wt,nt,Q){if(1===wt.length&&g(wt[0])&&(wt=wt[0]),wt.length<2)throw new le("streams");const Le=new _t,ee=Le.signal,R=Q?.signal,U=[];function Re(){H(new ie)}let x,p,m;se(R,"options.signal"),Dt=Dt||u(7506).addAbortListener,R&&(x=Dt(R,Re));const j=[];let f,de=0;function X(Je){H(Je,0==--de)}function H(Je,$e){var St;if(Je&&(!p||"ERR_STREAM_PREMATURE_CLOSE"===p.code)&&(p=Je),p||$e){for(;j.length;)j.shift()(p);null===(St=x)||void 0===St||St[O](),Le.abort(),$e&&(p||U.forEach(dt=>dt()),h.nextTick(nt,p,m))}}for(let Je=0;Je0,Et=St||!1!==Q?.end,ye=Je===wt.length-1;if(Ke($e)){let qe=function(xe){xe&&"AbortError"!==xe.name&&"ERR_STREAM_PREMATURE_CLOSE"!==xe.code&&X(xe)};if(Et){const{destroy:xe,cleanup:Fe}=jt($e,St,dt);j.push(xe),Ge($e)&&ye&&U.push(Fe)}$e.on("error",qe),Ge($e)&&ye&&U.push(()=>{$e.removeListener("error",qe)})}if(0===Je)if("function"==typeof $e){if(f=$e({signal:ee}),!Me(f))throw new ue("Iterable, AsyncIterable or Stream","source",f)}else f=Me($e)||it($e)||tt($e)?$e:z.from($e);else if("function"==typeof $e){var _;if(f=tt(f)?Ee(null===(_=f)||void 0===_?void 0:_.readable):Ee(f),f=$e(f,{signal:ee}),St){if(!Me(f,!0))throw new ue("AsyncIterable",`transform[${Je-1}]`,f)}else{var T;ht||(ht=u(407));const qe=new ht({objectMode:!0}),xe=null===(T=f)||void 0===T?void 0:T.then;if("function"==typeof xe)de++,xe.call(f,ce=>{m=ce,null!=ce&&qe.write(ce),Et&&qe.end(),h.nextTick(X)},ce=>{qe.destroy(ce),h.nextTick(X,ce)});else if(Me(f,!0))de++,Oe(f,qe,X,{end:Et});else{if(!Xe(f)&&!tt(f))throw new ue("AsyncIterable or Promise","destination",f);de++,Oe(f.readable||f,qe,X,{end:Et})}f=qe;const{destroy:Fe,cleanup:ot}=jt(f,!1,!0);j.push(Fe),ye&&U.push(ot)}}else if(Ke($e)){if(it(f)){de+=2;const qe=We(f,$e,X,{end:Et});Ge($e)&&ye&&U.push(qe)}else if(tt(f)||Xe(f))de++,Oe(f.readable||f,$e,X,{end:Et});else{if(!Me(f))throw new we("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],f);de++,Oe(f,$e,X,{end:Et})}f=$e}else if(me($e)){if(it(f))de++,be(Ee(f),$e,X,{end:Et});else if(Xe(f)||Me(f))de++,be(f,$e,X,{end:Et});else{if(!tt(f))throw new we("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],f);de++,be(f.readable,$e,X,{end:Et})}f=$e}else f=z.from($e)}return(null!=ee&&ee.aborted||null!=R&&R.aborted)&&h.nextTick(Re),f}function We(wt,nt,Q,{end:Le}){let ee=!1;if(nt.on("close",()=>{ee||Q(new W)}),wt.pipe(nt,{end:!1}),Le){let U=function(){ee=!0,nt.end()};Ae(wt)?h.nextTick(U):wt.once("end",U)}else Q();return P(wt,{readable:!0,writable:!1},U=>{const Re=wt._readableState;U&&"ERR_STREAM_PREMATURE_CLOSE"===U.code&&Re&&Re.ended&&!Re.errored&&!Re.errorEmitted?wt.once("end",Q).once("error",Q):Q(U)}),P(nt,{readable:!1,writable:!0},Q)}Ct.exports={pipelineImpl:gt,pipeline:function Mt(...wt){return gt(wt,k(function V(wt){return he(wt[wt.length-1],"streams[stream.length - 1]"),wt.pop()}(wt)))}}},9638:(Ct,ke,u)=>{var i=u(6737).default,a=u(8186).default;const c=u(5736),{ArrayPrototypeIndexOf:v,NumberIsInteger:b,NumberIsNaN:h,NumberParseInt:g,ObjectDefineProperties:w,ObjectKeys:B,ObjectSetPrototypeOf:O,Promise:P,SafeSet:k,SymbolAsyncDispose:F,SymbolAsyncIterator:z,Symbol:ae}=u(5354);Ct.exports=X,X.ReadableState=de;const{EventEmitter:we}=u(9069),{Stream:ue,prependListener:le}=u(9994),{Buffer:ge}=u(1160),{addAbortSignal:W}=u(1273),ie=u(6978);let he=u(7506).debuglog("stream",ze=>{he=ze});const se=u(6933),Me=u(8584),{getHighWaterMark:Ge,getDefaultHighWaterMark:it}=u(5807),{aggregateTwoErrors:Ke,codes:{ERR_INVALID_ARG_TYPE:tt,ERR_METHOD_NOT_IMPLEMENTED:me,ERR_OUT_OF_RANGE:Xe,ERR_STREAM_PUSH_AFTER_EOF:Ae,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:_t},AbortError:ht}=u(8599),{validateObject:Yt}=u(765),Dt=ae("kPaused"),{StringDecoder:jt}=u(3054),V=u(8394);O(X.prototype,ue.prototype),O(X,ue);const Ee=()=>{},{errorOrDestroy:oe}=Me;function j(ze){return{enumerable:!1,get(){return 0!=(this.state&ze)},set(rt){rt?this.state|=ze:this.state&=~ze}}}function de(ze,rt,qt){"boolean"!=typeof qt&&(qt=rt instanceof u(3147)),this.state=6192,ze&&ze.objectMode&&(this.state|=1),qt&&ze&&ze.readableObjectMode&&(this.state|=1),this.highWaterMark=ze?Ge(this,ze,"readableHighWaterMark",qt):it(!1),this.buffer=new se,this.length=0,this.pipes=[],this.flowing=null,this[Dt]=null,ze&&!1===ze.emitClose&&(this.state&=-2049),ze&&!1===ze.autoDestroy&&(this.state&=-4097),this.errored=null,this.defaultEncoding=ze&&ze.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,ze&&ze.encoding&&(this.decoder=new jt(ze.encoding),this.encoding=ze.encoding)}function X(ze){if(!(this instanceof X))return new X(ze);const rt=this instanceof u(3147);this._readableState=new de(ze,this,rt),ze&&("function"==typeof ze.read&&(this._read=ze.read),"function"==typeof ze.destroy&&(this._destroy=ze.destroy),"function"==typeof ze.construct&&(this._construct=ze.construct),ze.signal&&!rt&&W(ze.signal,this)),ue.call(this,ze),Me.construct(this,()=>{this._readableState.needReadable&&dt(this,this._readableState)})}function H(ze,rt,qt,Ut){he("readableAddChunk",rt);const en=ze._readableState;let bn;if(0==(1&en.state)&&("string"==typeof rt?en.encoding!==(qt=qt||en.defaultEncoding)&&(Ut&&en.encoding?rt=ge.from(rt,qt).toString(en.encoding):(rt=ge.from(rt,qt),qt="")):rt instanceof ge?qt="":ue._isUint8Array(rt)?(rt=ue._uint8ArrayToBuffer(rt),qt=""):null!=rt&&(bn=new tt("chunk",["string","Buffer","Uint8Array"],rt))),bn)oe(ze,bn);else if(null===rt)en.state&=-9,function Je(ze,rt){if(he("onEofChunk"),!rt.ended){if(rt.decoder){const qt=rt.decoder.end();qt&&qt.length&&(rt.buffer.push(qt),rt.length+=rt.objectMode?1:qt.length)}rt.ended=!0,rt.sync?$e(ze):(rt.needReadable=!1,rt.emittedReadable=!0,St(ze))}}(ze,en);else if(0!=(1&en.state)||rt&&rt.length>0)if(Ut)if(0!=(4&en.state))oe(ze,new _t);else{if(en.destroyed||en.errored)return!1;f(ze,en,rt,!0)}else if(en.ended)oe(ze,new Ae);else{if(en.destroyed||en.errored)return!1;en.state&=-9,en.decoder&&!qt?(rt=en.decoder.write(rt),en.objectMode||0!==rt.length?f(ze,en,rt,!1):dt(ze,en)):f(ze,en,rt,!1)}else Ut||(en.state&=-9,dt(ze,en));return!en.ended&&(en.length0?(0!=(65536&rt.state)?rt.awaitDrainWriters.clear():rt.awaitDrainWriters=null,rt.dataEmitted=!0,ze.emit("data",qt)):(rt.length+=rt.objectMode?1:qt.length,Ut?rt.buffer.unshift(qt):rt.buffer.push(qt),0!=(64&rt.state)&&$e(ze)),dt(ze,rt)}function ve(ze,rt){return ze<=0||0===rt.length&&rt.ended?0:0!=(1&rt.state)?1:h(ze)?rt.flowing&&rt.length?rt.buffer.first().length:rt.length:ze<=rt.length?ze:rt.ended?rt.length:0}function $e(ze){const rt=ze._readableState;he("emitReadable",rt.needReadable,rt.emittedReadable),rt.needReadable=!1,rt.emittedReadable||(he("emitReadable",rt.flowing),rt.emittedReadable=!0,c.nextTick(St,ze))}function St(ze){const rt=ze._readableState;he("emitReadable_",rt.destroyed,rt.length,rt.ended),!rt.destroyed&&!rt.errored&&(rt.length||rt.ended)&&(ze.emit("readable"),rt.emittedReadable=!1),rt.needReadable=!rt.flowing&&!rt.ended&&rt.length<=rt.highWaterMark,ce(ze)}function dt(ze,rt){!rt.readingMore&&rt.constructed&&(rt.readingMore=!0,c.nextTick(Et,ze,rt))}function Et(ze,rt){for(;!rt.reading&&!rt.ended&&(rt.length0,rt.resumeScheduled&&!1===rt[Dt]?rt.flowing=!0:ze.listenerCount("data")>0?ze.resume():rt.readableListening||(rt.flowing=null)}function xe(ze){he("readable nexttick read 0"),ze.read(0)}function ot(ze,rt){he("resume",rt.reading),rt.reading||ze.read(0),rt.resumeScheduled=!1,ze.emit("resume"),ce(ze),rt.flowing&&!rt.reading&&ze.read(0)}function ce(ze){const rt=ze._readableState;for(he("flow",rt.flowing);rt.flowing&&null!==ze.read(););}function je(ze,rt){"function"!=typeof ze.read&&(ze=X.wrap(ze,{objectMode:!0}));const qt=function Ce(ze,rt){return Ye.apply(this,arguments)}(ze,rt);return qt.stream=ze,qt}function Ye(){return(Ye=a(function*(ze,rt){let en,qt=Ee;function Ut(Rt){this===ze?(qt(),qt=Ee):qt=Rt}ze.on("readable",Ut);const bn=ie(ze,{writable:!1},Rt=>{en=Rt?Ke(en,Rt):null,qt(),qt=Ee});try{for(;;){const Rt=ze.destroyed?null:ze.read();if(null!==Rt)yield Rt;else{if(en)throw en;if(null===en)return;yield i(new P(Ut))}}}catch(Rt){throw en=Ke(en,Rt),en}finally{!en&&!1===rt?.destroyOnReturn||void 0!==en&&!ze._readableState.autoDestroy?(ze.off("readable",Ut),bn()):Me.destroyer(ze,null)}})).apply(this,arguments)}function Pe(ze,rt){if(0===rt.length)return null;let qt;return rt.objectMode?qt=rt.buffer.shift():!ze||ze>=rt.length?(qt=rt.decoder?rt.buffer.join(""):1===rt.buffer.length?rt.buffer.first():rt.buffer.concat(rt.length),rt.buffer.clear()):qt=rt.buffer.consume(ze,rt.decoder),qt}function bt(ze){const rt=ze._readableState;he("endReadable",rt.endEmitted),rt.endEmitted||(rt.ended=!0,c.nextTick(st,rt,ze))}function st(ze,rt){if(he("endReadableNT",ze.endEmitted,ze.length),!ze.errored&&!ze.closeEmitted&&!ze.endEmitted&&0===ze.length)if(ze.endEmitted=!0,rt.emit("end"),rt.writable&&!1===rt.allowHalfOpen)c.nextTick(ct,rt);else if(ze.autoDestroy){const qt=rt._writableState;(!qt||qt.autoDestroy&&(qt.finished||!1===qt.writable))&&rt.destroy()}}function ct(ze){ze.writable&&!ze.writableEnded&&!ze.destroyed&&ze.end()}let Ht;function an(){return void 0===Ht&&(Ht={}),Ht}w(de.prototype,{objectMode:j(1),ended:j(2),endEmitted:j(4),reading:j(8),constructed:j(16),sync:j(32),needReadable:j(64),emittedReadable:j(128),readableListening:j(256),resumeScheduled:j(512),errorEmitted:j(1024),emitClose:j(2048),autoDestroy:j(4096),destroyed:j(8192),closed:j(16384),closeEmitted:j(32768),multiAwaitDrain:j(65536),readingMore:j(1<<17),dataEmitted:j(1<<18)}),X.prototype.destroy=Me.destroy,X.prototype._undestroy=Me.undestroy,X.prototype._destroy=function(ze,rt){rt(ze)},X.prototype[we.captureRejectionSymbol]=function(ze){this.destroy(ze)},X.prototype[F]=function(){let ze;return this.destroyed||(ze=this.readableEnded?null:new ht,this.destroy(ze)),new P((rt,qt)=>ie(this,Ut=>Ut&&Ut!==ze?qt(Ut):rt(null)))},X.prototype.push=function(ze,rt){return H(this,ze,rt,!1)},X.prototype.unshift=function(ze,rt){return H(this,ze,rt,!0)},X.prototype.isPaused=function(){const ze=this._readableState;return!0===ze[Dt]||!1===ze.flowing},X.prototype.setEncoding=function(ze){const rt=new jt(ze);this._readableState.decoder=rt,this._readableState.encoding=this._readableState.decoder.encoding;const qt=this._readableState.buffer;let Ut="";for(const en of qt)Ut+=rt.write(en);return qt.clear(),""!==Ut&&qt.push(Ut),this._readableState.length=Ut.length,this},X.prototype.read=function(ze){he("read",ze),void 0===ze?ze=NaN:b(ze)||(ze=g(ze,10));const rt=this._readableState,qt=ze;if(ze>rt.highWaterMark&&(rt.highWaterMark=function T(ze){if(ze>1073741824)throw new Xe("size","<= 1GiB",ze);return ze--,ze|=ze>>>1,ze|=ze>>>2,ze|=ze>>>4,ze|=ze>>>8,ze|=ze>>>16,++ze}(ze)),0!==ze&&(rt.state&=-129),0===ze&&rt.needReadable&&((0!==rt.highWaterMark?rt.length>=rt.highWaterMark:rt.length>0)||rt.ended))return he("read: emitReadable",rt.length,rt.ended),0===rt.length&&rt.ended?bt(this):$e(this),null;if(0===(ze=ve(ze,rt))&&rt.ended)return 0===rt.length&&bt(this),null;let en,Ut=0!=(64&rt.state);if(he("need readable",Ut),(0===rt.length||rt.length-ze0?Pe(ze,rt):null,null===en?(rt.needReadable=rt.length<=rt.highWaterMark,ze=0):(rt.length-=ze,rt.multiAwaitDrain?rt.awaitDrainWriters.clear():rt.awaitDrainWriters=null),0===rt.length&&(rt.ended||(rt.needReadable=!0),qt!==ze&&rt.ended&&bt(this)),null!==en&&!rt.errorEmitted&&!rt.closeEmitted&&(rt.dataEmitted=!0,this.emit("data",en)),en},X.prototype._read=function(ze){throw new me("_read()")},X.prototype.pipe=function(ze,rt){const qt=this,Ut=this._readableState;1===Ut.pipes.length&&(Ut.multiAwaitDrain||(Ut.multiAwaitDrain=!0,Ut.awaitDrainWriters=new k(Ut.awaitDrainWriters?[Ut.awaitDrainWriters]:[]))),Ut.pipes.push(ze),he("pipe count=%d opts=%j",Ut.pipes.length,rt);const bn=rt&&!1===rt.end||ze===c.stdout||ze===c.stderr?Be:yt;function yt(){he("onend"),ze.end()}Ut.endEmitted?c.nextTick(bn):qt.once("end",bn),ze.on("unpipe",function Rt(fe,re){he("onunpipe"),fe===qt&&re&&!1===re.hasUnpiped&&(re.hasUnpiped=!0,function Jt(){he("cleanup"),ze.removeListener("close",On),ze.removeListener("finish",qn),lt&&ze.removeListener("drain",lt),ze.removeListener("error",mn),ze.removeListener("unpipe",Rt),qt.removeListener("end",yt),qt.removeListener("end",Be),qt.removeListener("data",kn),Bt=!0,lt&&Ut.awaitDrainWriters&&(!ze._writableState||ze._writableState.needDrain)&<()}())});let lt,Bt=!1;function xn(){Bt||(1===Ut.pipes.length&&Ut.pipes[0]===ze?(he("false write response, pause",0),Ut.awaitDrainWriters=ze,Ut.multiAwaitDrain=!1):Ut.pipes.length>1&&Ut.pipes.includes(ze)&&(he("false write response, pause",Ut.awaitDrainWriters.size),Ut.awaitDrainWriters.add(ze)),qt.pause()),lt||(lt=function ye(ze,rt){return function(){const Ut=ze._readableState;Ut.awaitDrainWriters===rt?(he("pipeOnDrain",1),Ut.awaitDrainWriters=null):Ut.multiAwaitDrain&&(he("pipeOnDrain",Ut.awaitDrainWriters.size),Ut.awaitDrainWriters.delete(rt)),(!Ut.awaitDrainWriters||0===Ut.awaitDrainWriters.size)&&ze.listenerCount("data")&&ze.resume()}}(qt,ze),ze.on("drain",lt))}function kn(fe){he("ondata");const re=ze.write(fe);he("dest.write",re),!1===re&&xn()}function mn(fe){if(he("onerror",fe),Be(),ze.removeListener("error",mn),0===ze.listenerCount("error")){const re=ze._writableState||ze._readableState;re&&!re.errorEmitted?oe(ze,fe):ze.emit("error",fe)}}function On(){ze.removeListener("finish",qn),Be()}function qn(){he("onfinish"),ze.removeListener("close",On),Be()}function Be(){he("unpipe"),qt.unpipe(ze)}return qt.on("data",kn),le(ze,"error",mn),ze.once("close",On),ze.once("finish",qn),ze.emit("pipe",qt),!0===ze.writableNeedDrain?xn():Ut.flowing||(he("pipe resume"),qt.resume()),ze},X.prototype.unpipe=function(ze){const rt=this._readableState;if(0===rt.pipes.length)return this;if(!ze){const en=rt.pipes;rt.pipes=[],this.pause();for(let bn=0;bn0,!1!==Ut.flowing&&this.resume()):"readable"===ze&&!Ut.endEmitted&&!Ut.readableListening&&(Ut.readableListening=Ut.needReadable=!0,Ut.flowing=!1,Ut.emittedReadable=!1,he("on readable",Ut.length,Ut.reading),Ut.length?$e(this):Ut.reading||c.nextTick(xe,this)),qt},X.prototype.off=X.prototype.removeListener=function(ze,rt){const qt=ue.prototype.removeListener.call(this,ze,rt);return"readable"===ze&&c.nextTick(qe,this),qt},X.prototype.removeAllListeners=function(ze){const rt=ue.prototype.removeAllListeners.apply(this,arguments);return("readable"===ze||void 0===ze)&&c.nextTick(qe,this),rt},X.prototype.resume=function(){const ze=this._readableState;return ze.flowing||(he("resume"),ze.flowing=!ze.readableListening,function Fe(ze,rt){rt.resumeScheduled||(rt.resumeScheduled=!0,c.nextTick(ot,ze,rt))}(this,ze)),ze[Dt]=!1,this},X.prototype.pause=function(){return he("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(he("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[Dt]=!0,this},X.prototype.wrap=function(ze){let rt=!1;ze.on("data",Ut=>{!this.push(Ut)&&ze.pause&&(rt=!0,ze.pause())}),ze.on("end",()=>{this.push(null)}),ze.on("error",Ut=>{oe(this,Ut)}),ze.on("close",()=>{this.destroy()}),ze.on("destroy",()=>{this.destroy()}),this._read=()=>{rt&&ze.resume&&(rt=!1,ze.resume())};const qt=B(ze);for(let Ut=1;Ut{"use strict";const{MathFloor:i,NumberIsInteger:a}=u(5354),{validateInteger:c}=u(765),{ERR_INVALID_ARG_VALUE:v}=u(8599).codes;let b=16384,h=16;function w(P){return P?h:b}Ct.exports={getHighWaterMark:function O(P,k,F,z){const ae=function g(P,k,F){return null!=P.highWaterMark?P.highWaterMark:k?P[F]:null}(k,z,F);if(null!=ae){if(!a(ae)||ae<0)throw new v(z?`options.${F}`:"options.highWaterMark",ae);return i(ae)}return w(P.objectMode)},getDefaultHighWaterMark:w,setDefaultHighWaterMark:function B(P,k){c(k,"value",0),P?h=k:b=k}}},4367:(Ct,ke,u)=>{"use strict";const{ObjectSetPrototypeOf:i,Symbol:a}=u(5354);Ct.exports=g;const{ERR_METHOD_NOT_IMPLEMENTED:c}=u(8599).codes,v=u(3147),{getHighWaterMark:b}=u(5807);i(g.prototype,v.prototype),i(g,v);const h=a("kCallback");function g(O){if(!(this instanceof g))return new g(O);const P=O?b(this,O,"readableHighWaterMark",!0):null;0===P&&(O={...O,highWaterMark:null,readableHighWaterMark:P,writableHighWaterMark:O.writableHighWaterMark||0}),v.call(this,O),this._readableState.sync=!1,this[h]=null,O&&("function"==typeof O.transform&&(this._transform=O.transform),"function"==typeof O.flush&&(this._flush=O.flush)),this.on("prefinish",B)}function w(O){"function"!=typeof this._flush||this.destroyed?(this.push(null),O&&O()):this._flush((P,k)=>{P?O?O(P):this.destroy(P):(null!=k&&this.push(k),this.push(null),O&&O())})}function B(){this._final!==w&&w.call(this)}g.prototype._final=w,g.prototype._transform=function(O,P,k){throw new c("_transform()")},g.prototype._write=function(O,P,k){const F=this._readableState,z=this._writableState,ae=F.length;this._transform(O,P,(we,ue)=>{we?k(we):(null!=ue&&this.push(ue),z.ended||ae===F.length||F.length{"use strict";const{SymbolAsyncIterator:i,SymbolIterator:a,SymbolFor:c}=u(5354),v=c("nodejs.stream.destroyed"),b=c("nodejs.stream.errored"),h=c("nodejs.stream.readable"),g=c("nodejs.stream.writable"),w=c("nodejs.stream.disturbed"),B=c("nodejs.webstream.isClosedPromise"),O=c("nodejs.webstream.controllerErrorFunction");function P(V,Ee=!1){var oe;return!(!V||"function"!=typeof V.pipe||"function"!=typeof V.on||Ee&&("function"!=typeof V.pause||"function"!=typeof V.resume)||V._writableState&&!1===(null===(oe=V._readableState)||void 0===oe?void 0:oe.readable)||V._writableState&&!V._readableState)}function k(V){var Ee;return!(!V||"function"!=typeof V.write||"function"!=typeof V.on||V._readableState&&!1===(null===(Ee=V._writableState)||void 0===Ee?void 0:Ee.writable))}function z(V){return V&&(V._readableState||V._writableState||"function"==typeof V.write&&"function"==typeof V.on||"function"==typeof V.pipe&&"function"==typeof V.on)}function ae(V){return!(!V||z(V)||"function"!=typeof V.pipeThrough||"function"!=typeof V.getReader||"function"!=typeof V.cancel)}function we(V){return!(!V||z(V)||"function"!=typeof V.getWriter||"function"!=typeof V.abort)}function ue(V){return!(!V||z(V)||"object"!=typeof V.readable||"object"!=typeof V.writable)}function W(V){if(!z(V))return null;const _e=V._writableState||V._readableState;return!!(V.destroyed||V[v]||null!=_e&&_e.destroyed)}function ie(V){if(!k(V))return null;if(!0===V.writableEnded)return!0;const Ee=V._writableState;return(null==Ee||!Ee.errored)&&("boolean"!=typeof Ee?.ended?null:Ee.ended)}function Me(V,Ee){if(!P(V))return null;const oe=V._readableState;return(null==oe||!oe.errored)&&("boolean"!=typeof oe?.endEmitted?null:!!(oe.endEmitted||!1===Ee&&!0===oe.ended&&0===oe.length))}function Ge(V){return V&&null!=V[h]?V[h]:"boolean"!=typeof V?.readable?null:!W(V)&&P(V)&&V.readable&&!Me(V)}function it(V){return V&&null!=V[g]?V[g]:"boolean"!=typeof V?.writable?null:!W(V)&&k(V)&&V.writable&&!ie(V)}function Ae(V){return"boolean"==typeof V._closed&&"boolean"==typeof V._defaultKeepAlive&&"boolean"==typeof V._removedConnection&&"boolean"==typeof V._removedContLen}function _t(V){return"boolean"==typeof V._sent100&&Ae(V)}Ct.exports={isDestroyed:W,kIsDestroyed:v,isDisturbed:function Dt(V){var Ee;return!(!V||!(null!==(Ee=V[w])&&void 0!==Ee?Ee:V.readableDidRead||V.readableAborted))},kIsDisturbed:w,isErrored:function jt(V){var Ee,oe,_e,Oe,at,be,et,Mt,gt,We;return!(!V||!(null!==(Ee=null!==(oe=null!==(_e=null!==(Oe=null!==(at=null!==(be=V[b])&&void 0!==be?be:V.readableErrored)&&void 0!==at?at:V.writableErrored)&&void 0!==Oe?Oe:null===(et=V._readableState)||void 0===et?void 0:et.errorEmitted)&&void 0!==_e?_e:null===(Mt=V._writableState)||void 0===Mt?void 0:Mt.errorEmitted)&&void 0!==oe?oe:null===(gt=V._readableState)||void 0===gt?void 0:gt.errored)&&void 0!==Ee?Ee:null===(We=V._writableState)||void 0===We?void 0:We.errored))},kIsErrored:b,isReadable:Ge,kIsReadable:h,kIsClosedPromise:B,kControllerErrorFunction:O,kIsWritable:g,isClosed:function Xe(V){if(!z(V))return null;if("boolean"==typeof V.closed)return V.closed;const Ee=V._writableState,oe=V._readableState;return"boolean"==typeof Ee?.closed||"boolean"==typeof oe?.closed?Ee?.closed||oe?.closed:"boolean"==typeof V._closed&&Ae(V)?V._closed:null},isDuplexNodeStream:function F(V){return!(!V||"function"!=typeof V.pipe||!V._readableState||"function"!=typeof V.on||"function"!=typeof V.write)},isFinished:function Ke(V,Ee){return z(V)?!!W(V)||!(!1!==Ee?.readable&&Ge(V)||!1!==Ee?.writable&&it(V)):null},isIterable:function ge(V,Ee){return null!=V&&(!0===Ee?"function"==typeof V[i]:!1===Ee?"function"==typeof V[a]:"function"==typeof V[i]||"function"==typeof V[a])},isReadableNodeStream:P,isReadableStream:ae,isReadableEnded:function se(V){if(!P(V))return null;if(!0===V.readableEnded)return!0;const Ee=V._readableState;return!(!Ee||Ee.errored)&&("boolean"!=typeof Ee?.ended?null:Ee.ended)},isReadableFinished:Me,isReadableErrored:function me(V){var Ee,oe;return z(V)?V.readableErrored?V.readableErrored:null!==(Ee=null===(oe=V._readableState)||void 0===oe?void 0:oe.errored)&&void 0!==Ee?Ee:null:null},isNodeStream:z,isWebStream:function le(V){return ae(V)||we(V)||ue(V)},isWritable:it,isWritableNodeStream:k,isWritableStream:we,isWritableEnded:ie,isWritableFinished:function he(V,Ee){if(!k(V))return null;if(!0===V.writableFinished)return!0;const oe=V._writableState;return(null==oe||!oe.errored)&&("boolean"!=typeof oe?.finished?null:!!(oe.finished||!1===Ee&&!0===oe.ended&&0===oe.length))},isWritableErrored:function tt(V){var Ee,oe;return z(V)?V.writableErrored?V.writableErrored:null!==(Ee=null===(oe=V._writableState)||void 0===oe?void 0:oe.errored)&&void 0!==Ee?Ee:null:null},isServerRequest:function ht(V){var Ee;return"boolean"==typeof V._consuming&&"boolean"==typeof V._dumped&&void 0===(null===(Ee=V.req)||void 0===Ee?void 0:Ee.upgradeOrConnect)},isServerResponse:_t,willEmitClose:function Yt(V){if(!z(V))return null;const _e=V._writableState||V._readableState;return!_e&&_t(V)||!!(_e&&_e.autoDestroy&&_e.emitClose&&!1===_e.closed)},isTransformStream:ue}},6355:(Ct,ke,u)=>{const i=u(5736),{ArrayPrototypeSlice:a,Error:c,FunctionPrototypeSymbolHasInstance:v,ObjectDefineProperty:b,ObjectDefineProperties:h,ObjectSetPrototypeOf:g,StringPrototypeToLowerCase:w,Symbol:B,SymbolHasInstance:O}=u(5354);Ct.exports=_t,_t.WritableState=Xe;const{EventEmitter:P}=u(9069),k=u(9994).Stream,{Buffer:F}=u(1160),z=u(8584),{addAbortSignal:ae}=u(1273),{getHighWaterMark:we,getDefaultHighWaterMark:ue}=u(5807),{ERR_INVALID_ARG_TYPE:le,ERR_METHOD_NOT_IMPLEMENTED:ge,ERR_MULTIPLE_CALLBACK:W,ERR_STREAM_CANNOT_PIPE:ie,ERR_STREAM_DESTROYED:he,ERR_STREAM_ALREADY_FINISHED:se,ERR_STREAM_NULL_VALUES:Me,ERR_STREAM_WRITE_AFTER_END:Ge,ERR_UNKNOWN_ENCODING:it}=u(8599).codes,{errorOrDestroy:Ke}=z;function tt(){}g(_t.prototype,k.prototype),g(_t,k);const me=B("kOnFinished");function Xe(Q,Le,ee){"boolean"!=typeof ee&&(ee=Le instanceof u(3147)),this.objectMode=!(!Q||!Q.objectMode),ee&&(this.objectMode=this.objectMode||!(!Q||!Q.writableObjectMode)),this.highWaterMark=Q?we(this,Q,"writableHighWaterMark",ee):ue(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(Q&&!1===Q.decodeStrings),this.defaultEncoding=Q&&Q.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=V.bind(void 0,Le),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,Ae(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!Q||!1!==Q.emitClose,this.autoDestroy=!Q||!1!==Q.autoDestroy,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[me]=[]}function Ae(Q){Q.buffered=[],Q.bufferedIndex=0,Q.allBuffers=!0,Q.allNoop=!0}function _t(Q){const Le=this instanceof u(3147);if(!Le&&!v(_t,this))return new _t(Q);this._writableState=new Xe(Q,this,Le),Q&&("function"==typeof Q.write&&(this._write=Q.write),"function"==typeof Q.writev&&(this._writev=Q.writev),"function"==typeof Q.destroy&&(this._destroy=Q.destroy),"function"==typeof Q.final&&(this._final=Q.final),"function"==typeof Q.construct&&(this._construct=Q.construct),Q.signal&&ae(Q.signal,this)),k.call(this,Q),z.construct(this,()=>{const ee=this._writableState;ee.writing||Oe(this,ee),Mt(this,ee)})}function ht(Q,Le,ee,R){const U=Q._writableState;if("function"==typeof ee)R=ee,ee=U.defaultEncoding;else{if(ee){if("buffer"!==ee&&!F.isEncoding(ee))throw new it(ee)}else ee=U.defaultEncoding;"function"!=typeof R&&(R=tt)}if(null===Le)throw new Me;if(!U.objectMode)if("string"==typeof Le)!1!==U.decodeStrings&&(Le=F.from(Le,ee),ee="buffer");else if(Le instanceof F)ee="buffer";else{if(!k._isUint8Array(Le))throw new le("chunk",["string","Buffer","Uint8Array"],Le);Le=k._uint8ArrayToBuffer(Le),ee="buffer"}let Re;return U.ending?Re=new Ge:U.destroyed&&(Re=new he("write")),Re?(i.nextTick(R,Re),Ke(Q,Re,!0),Re):(U.pendingcb++,function Yt(Q,Le,ee,R,U){const Re=Le.objectMode?1:ee.length;Le.length+=Re;const x=Le.lengthee.bufferedIndex&&Oe(Q,ee),R?null!==ee.afterWriteTickInfo&&ee.afterWriteTickInfo.cb===U?ee.afterWriteTickInfo.count++:(ee.afterWriteTickInfo={count:1,cb:U,stream:Q,state:ee},i.nextTick(Ee,ee.afterWriteTickInfo)):oe(Q,ee,1,U))):Ke(Q,new W)}function Ee({stream:Q,state:Le,count:ee,cb:R}){return Le.afterWriteTickInfo=null,oe(Q,Le,ee,R)}function oe(Q,Le,ee,R){for(!Le.ending&&!Q.destroyed&&0===Le.length&&Le.needDrain&&(Le.needDrain=!1,Q.emit("drain"));ee-- >0;)Le.pendingcb--,R();Le.destroyed&&_e(Le),Mt(Q,Le)}function _e(Q){if(Q.writing)return;for(let U=Q.bufferedIndex;U1&&Q._writev){Le.pendingcb-=Re-1;const p=Le.allNoop?tt:j=>{for(let de=x;de256?(ee.splice(0,x),Le.bufferedIndex=0):Le.bufferedIndex=x}Le.bufferProcessing=!1}function at(Q){return Q.ending&&!Q.destroyed&&Q.constructed&&0===Q.length&&!Q.errored&&0===Q.buffered.length&&!Q.finished&&!Q.writing&&!Q.errorEmitted&&!Q.closeEmitted}function Mt(Q,Le,ee){at(Le)&&(function et(Q,Le){!Le.prefinished&&!Le.finalCalled&&("function"!=typeof Q._final||Le.destroyed?(Le.prefinished=!0,Q.emit("prefinish")):(Le.finalCalled=!0,function be(Q,Le){let ee=!1;function R(U){if(ee)Ke(Q,U??W());else if(ee=!0,Le.pendingcb--,U){const Re=Le[me].splice(0);for(let x=0;x{at(U)?gt(R,U):U.pendingcb--},Q,Le)):at(Le)&&(Le.pendingcb++,gt(Q,Le))))}function gt(Q,Le){Le.pendingcb--,Le.finished=!0;const ee=Le[me].splice(0);for(let R=0;R{"use strict";const{ArrayIsArray:i,ArrayPrototypeIncludes:a,ArrayPrototypeJoin:c,ArrayPrototypeMap:v,NumberIsInteger:b,NumberIsNaN:h,NumberMAX_SAFE_INTEGER:g,NumberMIN_SAFE_INTEGER:w,NumberParseInt:B,ObjectPrototypeHasOwnProperty:O,RegExpPrototypeExec:P,String:k,StringPrototypeToUpperCase:F,StringPrototypeTrim:z}=u(5354),{hideStackFrames:ae,codes:{ERR_SOCKET_BAD_PORT:we,ERR_INVALID_ARG_TYPE:ue,ERR_INVALID_ARG_VALUE:le,ERR_OUT_OF_RANGE:ge,ERR_UNKNOWN_SIGNAL:W}}=u(8599),{normalizeEncoding:ie}=u(7506),{isAsyncFunction:he,isArrayBufferView:se}=u(7506).types,Me={},Ke=/^[0-7]+$/,Xe=ae((x,p,m=w,j=g)=>{if("number"!=typeof x)throw new ue(p,"number",x);if(!b(x))throw new ge(p,"an integer",x);if(xj)throw new ge(p,`>= ${m} && <= ${j}`,x)}),Ae=ae((x,p,m=-2147483648,j=2147483647)=>{if("number"!=typeof x)throw new ue(p,"number",x);if(!b(x))throw new ge(p,"an integer",x);if(xj)throw new ge(p,`>= ${m} && <= ${j}`,x)}),_t=ae((x,p,m=!1)=>{if("number"!=typeof x)throw new ue(p,"number",x);if(!b(x))throw new ge(p,"an integer",x);const j=m?1:0,de=4294967295;if(xde)throw new ge(p,`>= ${j} && <= ${de}`,x)});function ht(x,p){if("string"!=typeof x)throw new ue(p,"string",x)}const Dt=ae((x,p,m)=>{if(!a(m,x)){const j=c(v(m,X=>"string"==typeof X?`'${X}'`:k(X)),", ");throw new le(p,x,"must be one of: "+j)}});function jt(x,p){if("boolean"!=typeof x)throw new ue(p,"boolean",x)}function V(x,p,m){return null!=x&&O(x,p)?x[p]:m}const Ee=ae((x,p,m=null)=>{const j=V(m,"allowArray",!1),de=V(m,"allowFunction",!1);if(!V(m,"nullable",!1)&&null===x||!j&&i(x)||"object"!=typeof x&&(!de||"function"!=typeof x))throw new ue(p,"Object",x)}),oe=ae((x,p)=>{if(null!=x&&"object"!=typeof x&&"function"!=typeof x)throw new ue(p,"a dictionary",x)}),_e=ae((x,p,m=0)=>{if(!i(x))throw new ue(p,"Array",x);if(x.length{if(!se(x))throw new ue(p,["Buffer","TypedArray","DataView"],x)}),wt=ae((x,p)=>{if(void 0!==x&&(null===x||"object"!=typeof x||!("aborted"in x)))throw new ue(p,"AbortSignal",x)}),nt=ae((x,p)=>{if("function"!=typeof x)throw new ue(p,"Function",x)}),Q=ae((x,p)=>{if("function"!=typeof x||he(x))throw new ue(p,"Function",x)}),Le=ae((x,p)=>{if(void 0!==x)throw new ue(p,"undefined",x)}),R=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function U(x,p){if(typeof x>"u"||!P(R,x))throw new le(p,x,'must be an array or string of format "; rel=preload; as=style"')}Ct.exports={isInt32:function Ge(x){return x===(0|x)},isUint32:function it(x){return x===x>>>0},parseFileMode:function me(x,p,m){if(typeof x>"u"&&(x=m),"string"==typeof x){if(null===P(Ke,x))throw new le(p,x,"must be a 32-bit unsigned integer or an octal string");x=B(x,8)}return _t(x,p),x},validateArray:_e,validateStringArray:function Oe(x,p){_e(x,p);for(let m=0;mj||(null!=m||null!=j)&&h(x))throw new ge(p,`${null!=m?`>= ${m}`:""}${null!=m&&null!=j?" && ":""}${null!=j?`<= ${j}`:""}`,x)},validateObject:Ee,validateOneOf:Dt,validatePlainFunction:Q,validatePort:function We(x,p="Port",m=!0){if("number"!=typeof x&&"string"!=typeof x||"string"==typeof x&&0===z(x).length||+x!=+x>>>0||x>65535||0===x&&!m)throw new we(p,x,m);return 0|x},validateSignalName:function et(x,p="signal"){if(ht(x,p),void 0===Me[x])throw void 0!==Me[F(x)]?new W(x+" (signals must use all capital letters)"):new W(x)},validateString:ht,validateUint32:_t,validateUndefined:Le,validateUnion:function ee(x,p,m){if(!a(m,x))throw new ue(p,`('${c(m,"|")}')`,x)},validateAbortSignal:wt,validateLinkHeaderValue:function Re(x){if("string"==typeof x)return U(x,"hints"),x;if(i(x)){const p=x.length;let m="";if(0===p)return m;for(let j=0;j; rel=preload; as=style"')}}},5690:(Ct,ke,u)=>{"use strict";const i=u(4253),a=u(810),c=i.Readable.destroy;Ct.exports=i.Readable,Ct.exports._uint8ArrayToBuffer=i._uint8ArrayToBuffer,Ct.exports._isUint8Array=i._isUint8Array,Ct.exports.isDisturbed=i.isDisturbed,Ct.exports.isErrored=i.isErrored,Ct.exports.isReadable=i.isReadable,Ct.exports.Readable=i.Readable,Ct.exports.Writable=i.Writable,Ct.exports.Duplex=i.Duplex,Ct.exports.Transform=i.Transform,Ct.exports.PassThrough=i.PassThrough,Ct.exports.addAbortSignal=i.addAbortSignal,Ct.exports.finished=i.finished,Ct.exports.destroy=i.destroy,Ct.exports.destroy=c,Ct.exports.pipeline=i.pipeline,Ct.exports.compose=i.compose,Object.defineProperty(i,"promises",{configurable:!0,enumerable:!0,get:()=>a}),Ct.exports.Stream=i.Stream,Ct.exports.default=Ct.exports},8599:(Ct,ke,u)=>{"use strict";const{format:i,inspect:a,AggregateError:c}=u(7506),v=globalThis.AggregateError||c,b=Symbol("kIsNodeError"),h=["string","function","number","object","Function","Object","boolean","bigint","symbol"],g=/^([A-Z][a-z0-9]*)+$/,B={};function O(ue,le){if(!ue)throw new B.ERR_INTERNAL_ASSERTION(le)}function P(ue){let le="",ge=ue.length;const W="-"===ue[0]?1:0;for(;ge>=W+4;ge-=3)le=`_${ue.slice(ge-3,ge)}${le}`;return`${ue.slice(0,ge)}${le}`}function F(ue,le,ge){ge||(ge=Error);class W extends ge{constructor(...he){super(function k(ue,le,ge){if("function"==typeof le)return O(le.length<=ge.length,`Code: ${ue}; The provided arguments length (${ge.length}) does not match the required ones (${le.length}).`),le(...ge);const W=(le.match(/%[dfijoOs]/g)||[]).length;return O(W===ge.length,`Code: ${ue}; The provided arguments length (${ge.length}) does not match the required ones (${W}).`),0===ge.length?le:i(le,...ge)}(ue,le,he))}toString(){return`${this.name} [${ue}]: ${this.message}`}}Object.defineProperties(W.prototype,{name:{value:ge.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${ue}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),W.prototype.code=ue,W.prototype[b]=!0,B[ue]=W}function z(ue){return Object.defineProperty(ue,"name",{value:"__node_internal_"+ue.name}),ue}class we extends Error{constructor(le="The operation was aborted",ge){if(void 0!==ge&&"object"!=typeof ge)throw new B.ERR_INVALID_ARG_TYPE("options","Object",ge);super(le,ge),this.code="ABORT_ERR",this.name="AbortError"}}F("ERR_ASSERTION","%s",Error),F("ERR_INVALID_ARG_TYPE",(ue,le,ge)=>{O("string"==typeof ue,"'name' must be a string"),Array.isArray(le)||(le=[le]);let W="The ";ue.endsWith(" argument")?W+=`${ue} `:W+=`"${ue}" ${ue.includes(".")?"property":"argument"} `,W+="must be ";const ie=[],he=[],se=[];for(const Ge of le)O("string"==typeof Ge,"All expected entries have to be of type string"),h.includes(Ge)?ie.push(Ge.toLowerCase()):g.test(Ge)?he.push(Ge):(O("object"!==Ge,'The value "object" should be written as "Object"'),se.push(Ge));if(he.length>0){const Ge=ie.indexOf("object");-1!==Ge&&(ie.splice(ie,Ge,1),he.push("Object"))}if(ie.length>0){switch(ie.length){case 1:W+=`of type ${ie[0]}`;break;case 2:W+=`one of type ${ie[0]} or ${ie[1]}`;break;default:{const Ge=ie.pop();W+=`one of type ${ie.join(", ")}, or ${Ge}`}}(he.length>0||se.length>0)&&(W+=" or ")}if(he.length>0){switch(he.length){case 1:W+=`an instance of ${he[0]}`;break;case 2:W+=`an instance of ${he[0]} or ${he[1]}`;break;default:{const Ge=he.pop();W+=`an instance of ${he.join(", ")}, or ${Ge}`}}se.length>0&&(W+=" or ")}switch(se.length){case 0:break;case 1:se[0].toLowerCase()!==se[0]&&(W+="an "),W+=`${se[0]}`;break;case 2:W+=`one of ${se[0]} or ${se[1]}`;break;default:{const Ge=se.pop();W+=`one of ${se.join(", ")}, or ${Ge}`}}if(null==ge)W+=`. Received ${ge}`;else if("function"==typeof ge&&ge.name)W+=`. Received function ${ge.name}`;else if("object"==typeof ge){var Me;null!==(Me=ge.constructor)&&void 0!==Me&&Me.name?W+=`. Received an instance of ${ge.constructor.name}`:W+=`. Received ${a(ge,{depth:-1})}`}else{let Ge=a(ge,{colors:!1});Ge.length>25&&(Ge=`${Ge.slice(0,25)}...`),W+=`. Received type ${typeof ge} (${Ge})`}return W},TypeError),F("ERR_INVALID_ARG_VALUE",(ue,le,ge="is invalid")=>{let W=a(le);return W.length>128&&(W=W.slice(0,128)+"..."),`The ${ue.includes(".")?"property":"argument"} '${ue}' ${ge}. Received ${W}`},TypeError),F("ERR_INVALID_RETURN_VALUE",(ue,le,ge)=>{var W;return`Expected ${ue} to be returned from the "${le}" function but got ${null!=ge&&null!==(W=ge.constructor)&&void 0!==W&&W.name?`instance of ${ge.constructor.name}`:"type "+typeof ge}.`},TypeError),F("ERR_MISSING_ARGS",(...ue)=>{let le;O(ue.length>0,"At least one arg needs to be specified");const ge=ue.length;switch(ue=(Array.isArray(ue)?ue:[ue]).map(W=>`"${W}"`).join(" or "),ge){case 1:le+=`The ${ue[0]} argument`;break;case 2:le+=`The ${ue[0]} and ${ue[1]} arguments`;break;default:{const W=ue.pop();le+=`The ${ue.join(", ")}, and ${W} arguments`}}return`${le} must be specified`},TypeError),F("ERR_OUT_OF_RANGE",(ue,le,ge)=>{let W;return O(le,'Missing "range" argument'),Number.isInteger(ge)&&Math.abs(ge)>2**32?W=P(String(ge)):"bigint"==typeof ge?(W=String(ge),(ge>2n**32n||ge<-(2n**32n))&&(W=P(W)),W+="n"):W=a(ge),`The value of "${ue}" is out of range. It must be ${le}. Received ${W}`},RangeError),F("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),F("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),F("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),F("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),F("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),F("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),F("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),F("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),F("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),F("ERR_STREAM_WRITE_AFTER_END","write after end",Error),F("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),Ct.exports={AbortError:we,aggregateTwoErrors:z(function ae(ue,le){if(ue&&le&&ue!==le){if(Array.isArray(le.errors))return le.errors.push(ue),le;const ge=new v([le,ue],le.message);return ge.code=le.code,ge}return ue||le}),hideStackFrames:z,codes:B}},5354:Ct=>{"use strict";Ct.exports={ArrayIsArray:ke=>Array.isArray(ke),ArrayPrototypeIncludes:(ke,u)=>ke.includes(u),ArrayPrototypeIndexOf:(ke,u)=>ke.indexOf(u),ArrayPrototypeJoin:(ke,u)=>ke.join(u),ArrayPrototypeMap:(ke,u)=>ke.map(u),ArrayPrototypePop:(ke,u)=>ke.pop(u),ArrayPrototypePush:(ke,u)=>ke.push(u),ArrayPrototypeSlice:(ke,u,i)=>ke.slice(u,i),Error,FunctionPrototypeCall:(ke,u,...i)=>ke.call(u,...i),FunctionPrototypeSymbolHasInstance:(ke,u)=>Function.prototype[Symbol.hasInstance].call(ke,u),MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties:(ke,u)=>Object.defineProperties(ke,u),ObjectDefineProperty:(ke,u,i)=>Object.defineProperty(ke,u,i),ObjectGetOwnPropertyDescriptor:(ke,u)=>Object.getOwnPropertyDescriptor(ke,u),ObjectKeys:ke=>Object.keys(ke),ObjectSetPrototypeOf:(ke,u)=>Object.setPrototypeOf(ke,u),Promise,PromisePrototypeCatch:(ke,u)=>ke.catch(u),PromisePrototypeThen:(ke,u,i)=>ke.then(u,i),PromiseReject:ke=>Promise.reject(ke),PromiseResolve:ke=>Promise.resolve(ke),ReflectApply:Reflect.apply,RegExpPrototypeTest:(ke,u)=>ke.test(u),SafeSet:Set,String,StringPrototypeSlice:(ke,u,i)=>ke.slice(u,i),StringPrototypeToLowerCase:ke=>ke.toLowerCase(),StringPrototypeToUpperCase:ke=>ke.toUpperCase(),StringPrototypeTrim:ke=>ke.trim(),Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet:(ke,u,i)=>ke.set(u,i),Boolean,Uint8Array}},7506:(Ct,ke,u)=>{"use strict";var i=u(7156).default;const a=u(1160),{kResistStopPropagation:c,SymbolDispose:v}=u(5354),b=globalThis.AbortSignal||u(552).AbortSignal,h=globalThis.AbortController||u(552).AbortController,g=Object.getPrototypeOf(i(function*(){})).constructor,w=globalThis.Blob||a.Blob,B=typeof w<"u"?function(z){return z instanceof w}:function(z){return!1},O=(F,z)=>{if(void 0!==F&&(null===F||"object"!=typeof F||!("aborted"in F)))throw new ERR_INVALID_ARG_TYPE(z,"AbortSignal",F)};class k extends Error{constructor(z){if(!Array.isArray(z))throw new TypeError("Expected input to be an Array, got "+typeof z);let ae="";for(let we=0;we{F=we,z=ue}),resolve:F,reject:z}},promisify:F=>new Promise((z,ae)=>{F((we,...ue)=>we?ae(we):z(...ue))}),debuglog:()=>function(){},format:(F,...z)=>F.replace(/%([sdifj])/g,function(...[ae,we]){const ue=z.shift();return"f"===we?ue.toFixed(6):"j"===we?JSON.stringify(ue):"s"===we&&"object"==typeof ue?`${ue.constructor!==Object?ue.constructor.name:""} {}`.trim():ue.toString()}),inspect(F){switch(typeof F){case"string":if(F.includes("'")){if(!F.includes('"'))return`"${F}"`;if(!F.includes("`")&&!F.includes("${"))return`\`${F}\``}return`'${F}'`;case"number":return isNaN(F)?"NaN":Object.is(F,-0)?String(F):F;case"bigint":return`${String(F)}n`;case"boolean":case"undefined":return String(F);case"object":return"{}"}},types:{isAsyncFunction:F=>F instanceof g,isArrayBufferView:F=>ArrayBuffer.isView(F)},isBlob:B,deprecate:(F,z)=>F,addAbortListener:u(9069).addAbortListener||function(z,ae){if(void 0===z)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",z);let we;return O(z,"signal"),((F,z)=>{if("function"!=typeof F)throw new ERR_INVALID_ARG_TYPE("listener","Function",F)})(ae),z.aborted?queueMicrotask(()=>ae()):(z.addEventListener("abort",ae,{__proto__:null,once:!0,[c]:!0}),we=()=>{z.removeEventListener("abort",ae)}),{__proto__:null,[v](){var ue;null===(ue=we)||void 0===ue||ue()}}},AbortSignalAny:b.any||function(z){if(1===z.length)return z[0];const ae=new h,we=()=>ae.abort();return z.forEach(ue=>{O(ue,"signals"),ue.addEventListener("abort",we,{once:!0})}),ae.signal.addEventListener("abort",()=>{z.forEach(ue=>ue.removeEventListener("abort",we))},{once:!0}),ae.signal}},Ct.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")},4253:(Ct,ke,u)=>{const{Buffer:i}=u(1160),{ObjectDefineProperty:a,ObjectKeys:c,ReflectApply:v}=u(5354),{promisify:{custom:b}}=u(7506),{streamReturningOperators:h,promiseReturningOperators:g}=u(6682),{codes:{ERR_ILLEGAL_CONSTRUCTOR:w}}=u(8599),B=u(5240),{setDefaultHighWaterMark:O,getDefaultHighWaterMark:P}=u(5807),{pipeline:k}=u(4563),{destroyer:F}=u(8584),z=u(6978),we=u(810),ue=u(8174),le=Ct.exports=u(9994).Stream;le.isDestroyed=ue.isDestroyed,le.isDisturbed=ue.isDisturbed,le.isErrored=ue.isErrored,le.isReadable=ue.isReadable,le.isWritable=ue.isWritable,le.Readable=u(9638);for(const ie of c(h)){let se=function(...Me){if(new.target)throw w();return le.Readable.from(v(he,this,Me))};const he=h[ie];a(se,"name",{__proto__:null,value:he.name}),a(se,"length",{__proto__:null,value:he.length}),a(le.Readable.prototype,ie,{__proto__:null,value:se,enumerable:!1,configurable:!0,writable:!0})}for(const ie of c(g)){let se=function(...Ge){if(new.target)throw w();return v(he,this,Ge)};const he=g[ie];a(se,"name",{__proto__:null,value:he.name}),a(se,"length",{__proto__:null,value:he.length}),a(le.Readable.prototype,ie,{__proto__:null,value:se,enumerable:!1,configurable:!0,writable:!0})}le.Writable=u(6355),le.Duplex=u(3147),le.Transform=u(4367),le.PassThrough=u(407),le.pipeline=k;const{addAbortSignal:ge}=u(1273);le.addAbortSignal=ge,le.finished=z,le.destroy=F,le.compose=B,le.setDefaultHighWaterMark=O,le.getDefaultHighWaterMark=P,a(le,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:()=>we}),a(k,b,{__proto__:null,enumerable:!0,get:()=>we.pipeline}),a(z,b,{__proto__:null,enumerable:!0,get:()=>we.finished}),le.Stream=le,le._isUint8Array=function(he){return he instanceof Uint8Array},le._uint8ArrayToBuffer=function(he){return i.from(he.buffer,he.byteOffset,he.byteLength)}},810:(Ct,ke,u)=>{"use strict";const{ArrayPrototypePop:i,Promise:a}=u(5354),{isIterable:c,isNodeStream:v,isWebStream:b}=u(8174),{pipelineImpl:h}=u(4563),{finished:g}=u(6978);u(4253),Ct.exports={finished:g,pipeline:function w(...B){return new a((O,P)=>{let k,F;const z=B[B.length-1];if(z&&"object"==typeof z&&!v(z)&&!c(z)&&!b(z)){const ae=i(B);k=ae.signal,F=ae.end}h(B,(ae,we)=>{ae?P(ae):O(we)},{signal:k,end:F})})}}},5736:Ct=>{var u,i,ke=Ct.exports={};function a(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}function v(z){if(u===setTimeout)return setTimeout(z,0);if((u===a||!u)&&setTimeout)return u=setTimeout,setTimeout(z,0);try{return u(z,0)}catch{try{return u.call(null,z,0)}catch{return u.call(this,z,0)}}}!function(){try{u="function"==typeof setTimeout?setTimeout:a}catch{u=a}try{i="function"==typeof clearTimeout?clearTimeout:c}catch{i=c}}();var w,h=[],g=!1,B=-1;function O(){!g||!w||(g=!1,w.length?h=w.concat(h):B=-1,h.length&&P())}function P(){if(!g){var z=v(O);g=!0;for(var ae=h.length;ae;){for(w=h,h=[];++B1)for(var we=1;we{"use strict";u.d(ke,{X:()=>c});var i=u(8929),a=u(5279);class c extends i.xQ{constructor(b){super(),this._value=b}get value(){return this.getValue()}_subscribe(b){const h=super._subscribe(b);return h&&!h.closed&&b.next(this._value),h}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new a.N;return this._value}next(b){super.next(this._value=b)}}},9312:(Ct,ke,u)=>{"use strict";u.d(ke,{P:()=>b});var i=u(8896),a=u(1086),c=u(1737);class b{constructor(g,w,B){this.kind=g,this.value=w,this.error=B,this.hasValue="N"===g}observe(g){switch(this.kind){case"N":return g.next&&g.next(this.value);case"E":return g.error&&g.error(this.error);case"C":return g.complete&&g.complete()}}do(g,w,B){switch(this.kind){case"N":return g&&g(this.value);case"E":return w&&w(this.error);case"C":return B&&B()}}accept(g,w,B){return g&&"function"==typeof g.next?this.observe(g):this.do(g,w,B)}toObservable(){switch(this.kind){case"N":return(0,a.of)(this.value);case"E":return(0,c._)(this.error);case"C":return(0,i.c)()}throw new Error("unexpected notification kind value")}static createNext(g){return typeof g<"u"?new b("N",g):b.undefinedValueNotification}static createError(g){return new b("E",void 0,g)}static createComplete(){return b.completeNotification}}b.completeNotification=new b("C"),b.undefinedValueNotification=new b("N",void 0)},6498:(Ct,ke,u)=>{"use strict";u.d(ke,{y:()=>B});var i=u(3489),c=u(7668),v=u(3292),h=u(3821),g=u(4843),w=u(2830);let B=(()=>{class P{constructor(F){this._isScalar=!1,F&&(this._subscribe=F)}lift(F){const z=new P;return z.source=this,z.operator=F,z}subscribe(F,z,ae){const{operator:we}=this,ue=function b(P,k,F){if(P){if(P instanceof i.L)return P;if(P[c.b])return P[c.b]()}return P||k||F?new i.L(P,k,F):new i.L(v.c)}(F,z,ae);if(ue.add(we?we.call(ue,this.source):this.source||w.v.useDeprecatedSynchronousErrorHandling&&!ue.syncErrorThrowable?this._subscribe(ue):this._trySubscribe(ue)),w.v.useDeprecatedSynchronousErrorHandling&&ue.syncErrorThrowable&&(ue.syncErrorThrowable=!1,ue.syncErrorThrown))throw ue.syncErrorValue;return ue}_trySubscribe(F){try{return this._subscribe(F)}catch(z){w.v.useDeprecatedSynchronousErrorHandling&&(F.syncErrorThrown=!0,F.syncErrorValue=z),function a(P){for(;P;){const{closed:k,destination:F,isStopped:z}=P;if(k||z)return!1;P=F&&F instanceof i.L?F:null}return!0}(F)?F.error(z):console.warn(z)}}forEach(F,z){return new(z=O(z))((ae,we)=>{let ue;ue=this.subscribe(le=>{try{F(le)}catch(ge){we(ge),ue&&ue.unsubscribe()}},we,ae)})}_subscribe(F){const{source:z}=this;return z&&z.subscribe(F)}[h.L](){return this}pipe(...F){return 0===F.length?this:(0,g.U)(F)(this)}toPromise(F){return new(F=O(F))((z,ae)=>{let we;this.subscribe(ue=>we=ue,ue=>ae(ue),()=>z(we))})}}return P.create=k=>new P(k),P})();function O(P){if(P||(P=w.v.Promise||Promise),!P)throw new Error("no Promise impl found");return P}},3292:(Ct,ke,u)=>{"use strict";u.d(ke,{c:()=>c});var i=u(2830),a=u(2782);const c={closed:!0,next(v){},error(v){if(i.v.useDeprecatedSynchronousErrorHandling)throw v;(0,a.z)(v)},complete(){}}},6831:(Ct,ke,u)=>{"use strict";u.d(ke,{t:()=>ue});var i=u(8929),a=u(6686),v=u(2268);const g=new class b extends v.v{}(class c extends a.o{constructor(W,ie){super(W,ie),this.scheduler=W,this.work=ie}schedule(W,ie=0){return ie>0?super.schedule(W,ie):(this.delay=ie,this.state=W,this.scheduler.flush(this),this)}execute(W,ie){return ie>0||this.closed?super.execute(W,ie):this._execute(W,ie)}requestAsyncId(W,ie,he=0){return null!==he&&he>0||null===he&&this.delay>0?super.requestAsyncId(W,ie,he):W.flush(this)}});var w=u(2654),B=u(3489),O=u(9312);class F extends B.L{constructor(W,ie,he=0){super(W),this.scheduler=ie,this.delay=he}static dispatch(W){const{notification:ie,destination:he}=W;ie.observe(he),this.unsubscribe()}scheduleMessage(W){this.destination.add(this.scheduler.schedule(F.dispatch,this.delay,new z(W,this.destination)))}_next(W){this.scheduleMessage(O.P.createNext(W))}_error(W){this.scheduleMessage(O.P.createError(W)),this.unsubscribe()}_complete(){this.scheduleMessage(O.P.createComplete()),this.unsubscribe()}}class z{constructor(W,ie){this.notification=W,this.destination=ie}}var ae=u(5279),we=u(5283);class ue extends i.xQ{constructor(W=Number.POSITIVE_INFINITY,ie=Number.POSITIVE_INFINITY,he){super(),this.scheduler=he,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=W<1?1:W,this._windowTime=ie<1?1:ie,ie===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(W){if(!this.isStopped){const ie=this._events;ie.push(W),ie.length>this._bufferSize&&ie.shift()}super.next(W)}nextTimeWindow(W){this.isStopped||(this._events.push(new le(this._getNow(),W)),this._trimBufferThenGetEvents()),super.next(W)}_subscribe(W){const ie=this._infiniteTimeWindow,he=ie?this._events:this._trimBufferThenGetEvents(),se=this.scheduler,Me=he.length;let Ge;if(this.closed)throw new ae.N;if(this.isStopped||this.hasError?Ge=w.w.EMPTY:(this.observers.push(W),Ge=new we.W(this,W)),se&&W.add(W=new F(W,se)),ie)for(let it=0;itie&&(Ge=Math.max(Ge,Me-ie)),Ge>0&&se.splice(0,Ge),se}}class le{constructor(W,ie){this.time=W,this.value=ie}}},8929:(Ct,ke,u)=>{"use strict";u.d(ke,{Yc:()=>g,xQ:()=>w});var i=u(6498),a=u(3489),c=u(2654),v=u(5279),b=u(5283),h=u(7668);class g extends a.L{constructor(P){super(P),this.destination=P}}let w=(()=>{class O extends i.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[h.b](){return new g(this)}lift(k){const F=new B(this,this);return F.operator=k,F}next(k){if(this.closed)throw new v.N;if(!this.isStopped){const{observers:F}=this,z=F.length,ae=F.slice();for(let we=0;wenew B(P,k),O})();class B extends w{constructor(P,k){super(),this.destination=P,this.source=k}next(P){const{destination:k}=this;k&&k.next&&k.next(P)}error(P){const{destination:k}=this;k&&k.error&&this.destination.error(P)}complete(){const{destination:P}=this;P&&P.complete&&this.destination.complete()}_subscribe(P){const{source:k}=this;return k?this.source.subscribe(P):c.w.EMPTY}}},5283:(Ct,ke,u)=>{"use strict";u.d(ke,{W:()=>a});var i=u(2654);class a extends i.w{constructor(v,b){super(),this.subject=v,this.subscriber=b,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const v=this.subject,b=v.observers;if(this.subject=null,!b||0===b.length||v.isStopped||v.closed)return;const h=b.indexOf(this.subscriber);-1!==h&&b.splice(h,1)}}},3489:(Ct,ke,u)=>{"use strict";u.d(ke,{L:()=>g});var i=u(7043),a=u(3292),c=u(2654),v=u(7668),b=u(2830),h=u(2782);class g extends c.w{constructor(O,P,k){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a.c;break;case 1:if(!O){this.destination=a.c;break}if("object"==typeof O){O instanceof g?(this.syncErrorThrowable=O.syncErrorThrowable,this.destination=O,O.add(this)):(this.syncErrorThrowable=!0,this.destination=new w(this,O));break}default:this.syncErrorThrowable=!0,this.destination=new w(this,O,P,k)}}[v.b](){return this}static create(O,P,k){const F=new g(O,P,k);return F.syncErrorThrowable=!1,F}next(O){this.isStopped||this._next(O)}error(O){this.isStopped||(this.isStopped=!0,this._error(O))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(O){this.destination.next(O)}_error(O){this.destination.error(O),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:O}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=O,this}}class w extends g{constructor(O,P,k,F){super(),this._parentSubscriber=O;let z,ae=this;(0,i.m)(P)?z=P:P&&(z=P.next,k=P.error,F=P.complete,P!==a.c&&(ae=Object.create(P),(0,i.m)(ae.unsubscribe)&&this.add(ae.unsubscribe.bind(ae)),ae.unsubscribe=this.unsubscribe.bind(this))),this._context=ae,this._next=z,this._error=k,this._complete=F}next(O){if(!this.isStopped&&this._next){const{_parentSubscriber:P}=this;b.v.useDeprecatedSynchronousErrorHandling&&P.syncErrorThrowable?this.__tryOrSetError(P,this._next,O)&&this.unsubscribe():this.__tryOrUnsub(this._next,O)}}error(O){if(!this.isStopped){const{_parentSubscriber:P}=this,{useDeprecatedSynchronousErrorHandling:k}=b.v;if(this._error)k&&P.syncErrorThrowable?(this.__tryOrSetError(P,this._error,O),this.unsubscribe()):(this.__tryOrUnsub(this._error,O),this.unsubscribe());else if(P.syncErrorThrowable)k?(P.syncErrorValue=O,P.syncErrorThrown=!0):(0,h.z)(O),this.unsubscribe();else{if(this.unsubscribe(),k)throw O;(0,h.z)(O)}}}complete(){if(!this.isStopped){const{_parentSubscriber:O}=this;if(this._complete){const P=()=>this._complete.call(this._context);b.v.useDeprecatedSynchronousErrorHandling&&O.syncErrorThrowable?(this.__tryOrSetError(O,P),this.unsubscribe()):(this.__tryOrUnsub(P),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(O,P){try{O.call(this._context,P)}catch(k){if(this.unsubscribe(),b.v.useDeprecatedSynchronousErrorHandling)throw k;(0,h.z)(k)}}__tryOrSetError(O,P,k){if(!b.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{P.call(this._context,k)}catch(F){return b.v.useDeprecatedSynchronousErrorHandling?(O.syncErrorValue=F,O.syncErrorThrown=!0,!0):((0,h.z)(F),!0)}return!1}_unsubscribe(){const{_parentSubscriber:O}=this;this._context=null,this._parentSubscriber=null,O.unsubscribe()}}},2654:(Ct,ke,u)=>{"use strict";u.d(ke,{w:()=>h});var i=u(6688),a=u(7830),c=u(7043);const b=(()=>{function w(B){return Error.call(this),this.message=B?`${B.length} errors occurred during unsubscription:\n${B.map((O,P)=>`${P+1}) ${O.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=B,this}return w.prototype=Object.create(Error.prototype),w})();class h{constructor(B){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,B&&(this._ctorUnsubscribe=!0,this._unsubscribe=B)}unsubscribe(){let B;if(this.closed)return;let{_parentOrParents:O,_ctorUnsubscribe:P,_unsubscribe:k,_subscriptions:F}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,O instanceof h)O.remove(this);else if(null!==O)for(let z=0;zB.concat(O instanceof b?O.errors:O),[])}h.EMPTY=((w=new h).closed=!0,w)},2830:(Ct,ke,u)=>{"use strict";u.d(ke,{v:()=>a});let i=!1;const a={Promise:void 0,set useDeprecatedSynchronousErrorHandling(c){if(c){const v=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+v.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=c},get useDeprecatedSynchronousErrorHandling(){return i}}},1177:(Ct,ke,u)=>{"use strict";u.d(ke,{Ds:()=>h,IY:()=>v,ft:()=>w});var i=u(3489),a=u(6498),c=u(9249);class v extends i.L{constructor(O){super(),this.parent=O}_next(O){this.parent.notifyNext(O)}_error(O){this.parent.notifyError(O),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class h extends i.L{notifyNext(O){this.destination.next(O)}notifyError(O){this.destination.error(O)}notifyComplete(){this.destination.complete()}}function w(B,O){if(O.closed)return;if(B instanceof a.y)return B.subscribe(O);let P;try{P=(0,c.s)(B)(O)}catch(k){O.error(k)}return P}},1762:(Ct,ke,u)=>{"use strict";u.d(ke,{N:()=>h,c:()=>b});var i=u(8929),a=u(6498),c=u(2654),v=u(4327);class b extends a.y{constructor(P,k){super(),this.source=P,this.subjectFactory=k,this._refCount=0,this._isComplete=!1}_subscribe(P){return this.getSubject().subscribe(P)}getSubject(){const P=this._subject;return(!P||P.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let P=this._connection;return P||(this._isComplete=!1,P=this._connection=new c.w,P.add(this.source.subscribe(new g(this.getSubject(),this))),P.closed&&(this._connection=null,P=c.w.EMPTY)),P}refCount(){return(0,v.x)()(this)}}const h=(()=>{const O=b.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:O._subscribe},_isComplete:{value:O._isComplete,writable:!0},getSubject:{value:O.getSubject},connect:{value:O.connect},refCount:{value:O.refCount}}})();class g extends i.Yc{constructor(P,k){super(P),this.connectable=k}_error(P){this._unsubscribe(),super._error(P)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const P=this.connectable;if(P){this.connectable=null;const k=P._connection;P._refCount=0,P._subject=null,P._connection=null,k&&k.unsubscribe()}}}},3426:(Ct,ke,u)=>{"use strict";u.d(ke,{aj:()=>P});var i=u(2866),a=u(6688),c=u(3489);class v extends c.L{notifyNext(ae,we,ue,le,ge){this.destination.next(we)}notifyError(ae,we){this.destination.error(ae)}notifyComplete(ae){this.destination.complete()}}class b extends c.L{constructor(ae,we,ue){super(),this.parent=ae,this.outerValue=we,this.outerIndex=ue,this.index=0}_next(ae){this.parent.notifyNext(this.outerValue,ae,this.outerIndex,this.index++,this)}_error(ae){this.parent.notifyError(ae,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var h=u(9249),g=u(6498);function w(z,ae,we,ue,le=new b(z,we,ue)){if(!le.closed)return ae instanceof g.y?ae.subscribe(le):(0,h.s)(ae)(le)}var B=u(3009);const O={};function P(...z){let ae,we;return(0,i.K)(z[z.length-1])&&(we=z.pop()),"function"==typeof z[z.length-1]&&(ae=z.pop()),1===z.length&&(0,a.k)(z[0])&&(z=z[0]),(0,B.n)(z,we).lift(new k(ae))}class k{constructor(ae){this.resultSelector=ae}call(ae,we){return we.subscribe(new F(ae,this.resultSelector))}}class F extends v{constructor(ae,we){super(ae),this.resultSelector=we,this.active=0,this.values=[],this.observables=[]}_next(ae){this.values.push(O),this.observables.push(ae)}_complete(){const ae=this.observables,we=ae.length;if(0===we)this.destination.complete();else{this.active=we,this.toRespond=we;for(let ue=0;ue{"use strict";u.d(ke,{z:()=>v});var i=u(1086),a=u(9146);function v(...b){return function c(){return(0,a.J)(1)}()((0,i.of)(...b))}},8514:(Ct,ke,u)=>{"use strict";u.d(ke,{P:()=>v});var i=u(6498),a=u(5254),c=u(8896);function v(b){return new i.y(h=>{let g;try{g=b()}catch(B){return void h.error(B)}return(g?(0,a.D)(g):(0,c.c)()).subscribe(h)})}},8896:(Ct,ke,u)=>{"use strict";u.d(ke,{E:()=>a,c:()=>c});var i=u(6498);const a=new i.y(b=>b.complete());function c(b){return b?function v(b){return new i.y(h=>b.schedule(()=>h.complete()))}(b):a}},567:(Ct,ke,u)=>{"use strict";u.d(ke,{D:()=>h});var i=u(6498),a=u(6688),c=u(4850),v=u(7830),b=u(5254);function h(...w){if(1===w.length){const B=w[0];if((0,a.k)(B))return g(B,null);if((0,v.K)(B)&&Object.getPrototypeOf(B)===Object.prototype){const O=Object.keys(B);return g(O.map(P=>B[P]),O)}}if("function"==typeof w[w.length-1]){const B=w.pop();return g(w=1===w.length&&(0,a.k)(w[0])?w[0]:w,null).pipe((0,c.U)(O=>B(...O)))}return g(w,null)}function g(w,B){return new i.y(O=>{const P=w.length;if(0===P)return void O.complete();const k=new Array(P);let F=0,z=0;for(let ae=0;ae{ue||(ue=!0,z++),k[ae]=le},error:le=>O.error(le),complete:()=>{F++,(F===P||!ue)&&(z===P&&O.next(B?B.reduce((le,ge,W)=>(le[ge]=k[W],le),{}):k),O.complete())}}))}})}},5254:(Ct,ke,u)=>{"use strict";u.d(ke,{D:()=>ae});var i=u(6498),a=u(9249),c=u(2654),v=u(3821),g=u(6454),w=u(5430),P=u(8955),k=u(8515);function ae(we,ue){return ue?function z(we,ue){if(null!=we){if(function O(we){return we&&"function"==typeof we[v.L]}(we))return function b(we,ue){return new i.y(le=>{const ge=new c.w;return ge.add(ue.schedule(()=>{const W=we[v.L]();ge.add(W.subscribe({next(ie){ge.add(ue.schedule(()=>le.next(ie)))},error(ie){ge.add(ue.schedule(()=>le.error(ie)))},complete(){ge.add(ue.schedule(()=>le.complete()))}}))})),ge})}(we,ue);if((0,P.t)(we))return function h(we,ue){return new i.y(le=>{const ge=new c.w;return ge.add(ue.schedule(()=>we.then(W=>{ge.add(ue.schedule(()=>{le.next(W),ge.add(ue.schedule(()=>le.complete()))}))},W=>{ge.add(ue.schedule(()=>le.error(W)))}))),ge})}(we,ue);if((0,k.z)(we))return(0,g.r)(we,ue);if(function F(we){return we&&"function"==typeof we[w.hZ]}(we)||"string"==typeof we)return function B(we,ue){if(!we)throw new Error("Iterable cannot be null");return new i.y(le=>{const ge=new c.w;let W;return ge.add(()=>{W&&"function"==typeof W.return&&W.return()}),ge.add(ue.schedule(()=>{W=we[w.hZ](),ge.add(ue.schedule(function(){if(le.closed)return;let ie,he;try{const se=W.next();ie=se.value,he=se.done}catch(se){return void le.error(se)}he?le.complete():(le.next(ie),this.schedule())}))})),ge})}(we,ue)}throw new TypeError((null!==we&&typeof we||we)+" is not observable")}(we,ue):we instanceof i.y?we:new i.y((0,a.s)(we))}},3009:(Ct,ke,u)=>{"use strict";u.d(ke,{n:()=>v});var i=u(6498),a=u(3650),c=u(6454);function v(b,h){return h?(0,c.r)(b,h):new i.y((0,a.V)(b))}},3753:(Ct,ke,u)=>{"use strict";u.d(ke,{R:()=>h});var i=u(6498),a=u(6688),c=u(7043),v=u(4850);function h(P,k,F,z){return(0,c.m)(F)&&(z=F,F=void 0),z?h(P,k,F).pipe((0,v.U)(ae=>(0,a.k)(ae)?z(...ae):z(ae))):new i.y(ae=>{g(P,k,function we(ue){ae.next(arguments.length>1?Array.prototype.slice.call(arguments):ue)},ae,F)})}function g(P,k,F,z,ae){let we;if(function O(P){return P&&"function"==typeof P.addEventListener&&"function"==typeof P.removeEventListener}(P)){const ue=P;P.addEventListener(k,F,ae),we=()=>ue.removeEventListener(k,F,ae)}else if(function B(P){return P&&"function"==typeof P.on&&"function"==typeof P.off}(P)){const ue=P;P.on(k,F),we=()=>ue.off(k,F)}else if(function w(P){return P&&"function"==typeof P.addListener&&"function"==typeof P.removeListener}(P)){const ue=P;P.addListener(k,F),we=()=>ue.removeListener(k,F)}else{if(!P||!P.length)throw new TypeError("Invalid event target");for(let ue=0,le=P.length;ue{"use strict";u.d(ke,{T:()=>b});var i=u(6498),a=u(2866),c=u(9146),v=u(3009);function b(...h){let g=Number.POSITIVE_INFINITY,w=null,B=h[h.length-1];return(0,a.K)(B)?(w=h.pop(),h.length>1&&"number"==typeof h[h.length-1]&&(g=h.pop())):"number"==typeof B&&(g=h.pop()),null===w&&1===h.length&&h[0]instanceof i.y?h[0]:(0,c.J)(g)((0,v.n)(h,w))}},1086:(Ct,ke,u)=>{"use strict";u.d(ke,{of:()=>v});var i=u(2866),a=u(3009),c=u(6454);function v(...b){let h=b[b.length-1];return(0,i.K)(h)?(b.pop(),(0,c.r)(b,h)):(0,a.n)(b)}},1737:(Ct,ke,u)=>{"use strict";u.d(ke,{_:()=>a});var i=u(6498);function a(v,b){return new i.y(b?h=>b.schedule(c,0,{error:v,subscriber:h}):h=>h.error(v))}function c({error:v,subscriber:b}){b.error(v)}},7739:(Ct,ke,u)=>{"use strict";u.d(ke,{H:()=>h});var i=u(6498),a=u(353),c=u(6688);function v(w){return!(0,c.k)(w)&&w-parseFloat(w)+1>=0}var b=u(2866);function h(w=0,B,O){let P=-1;return v(B)?P=Number(B)<1?1:Number(B):(0,b.K)(B)&&(O=B),(0,b.K)(O)||(O=a.P),new i.y(k=>{const F=v(w)?w:+w-O.now();return O.schedule(g,F,{index:0,period:P,subscriber:k})})}function g(w){const{index:B,period:O,subscriber:P}=w;if(P.next(B),!P.closed){if(-1===O)return P.complete();w.index=B+1,this.schedule(w,O)}}},7221:(Ct,ke,u)=>{"use strict";u.d(ke,{K:()=>a});var i=u(1177);function a(b){return function(g){const w=new c(b),B=g.lift(w);return w.caught=B}}class c{constructor(h){this.selector=h}call(h,g){return g.subscribe(new v(h,this.selector,this.caught))}}class v extends i.Ds{constructor(h,g,w){super(h),this.selector=g,this.caught=w}error(h){if(!this.isStopped){let g;try{g=this.selector(h,this.caught)}catch(O){return void super.error(O)}this._unsubscribeAndRecycle();const w=new i.IY(this);this.add(w);const B=(0,i.ft)(g,w);B!==w&&this.add(B)}}}},1406:(Ct,ke,u)=>{"use strict";u.d(ke,{b:()=>a});var i=u(1709);function a(c,v){return(0,i.zg)(c,v,1)}},13:(Ct,ke,u)=>{"use strict";u.d(ke,{b:()=>c});var i=u(3489),a=u(353);function c(g,w=a.P){return B=>B.lift(new v(g,w))}class v{constructor(w,B){this.dueTime=w,this.scheduler=B}call(w,B){return B.subscribe(new b(w,this.dueTime,this.scheduler))}}class b extends i.L{constructor(w,B,O){super(w),this.dueTime=B,this.scheduler=O,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(w){this.clearDebounce(),this.lastValue=w,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(h,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:w}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(w)}}clearDebounce(){const w=this.debouncedSubscription;null!==w&&(this.remove(w),w.unsubscribe(),this.debouncedSubscription=null)}}function h(g){g.debouncedNext()}},5778:(Ct,ke,u)=>{"use strict";u.d(ke,{x:()=>a});var i=u(3489);function a(b,h){return g=>g.lift(new c(b,h))}class c{constructor(h,g){this.compare=h,this.keySelector=g}call(h,g){return g.subscribe(new v(h,this.compare,this.keySelector))}}class v extends i.L{constructor(h,g,w){super(h),this.keySelector=w,this.hasKey=!1,"function"==typeof g&&(this.compare=g)}compare(h,g){return h===g}_next(h){let g;try{const{keySelector:B}=this;g=B?B(h):h}catch(B){return this.destination.error(B)}let w=!1;if(this.hasKey)try{const{compare:B}=this;w=B(this.key,g)}catch(B){return this.destination.error(B)}else this.hasKey=!0;w||(this.key=g,this.destination.next(h))}}},2198:(Ct,ke,u)=>{"use strict";u.d(ke,{h:()=>a});var i=u(3489);function a(b,h){return function(w){return w.lift(new c(b,h))}}class c{constructor(h,g){this.predicate=h,this.thisArg=g}call(h,g){return g.subscribe(new v(h,this.predicate,this.thisArg))}}class v extends i.L{constructor(h,g,w){super(h),this.predicate=g,this.thisArg=w,this.count=0}_next(h){let g;try{g=this.predicate.call(this.thisArg,h,this.count++)}catch(w){return void this.destination.error(w)}g&&this.destination.next(h)}}},537:(Ct,ke,u)=>{"use strict";u.d(ke,{x:()=>c});var i=u(3489),a=u(2654);function c(h){return g=>g.lift(new v(h))}class v{constructor(g){this.callback=g}call(g,w){return w.subscribe(new b(g,this.callback))}}class b extends i.L{constructor(g,w){super(g),this.add(new a.w(w))}}},4850:(Ct,ke,u)=>{"use strict";u.d(ke,{U:()=>a});var i=u(3489);function a(b,h){return function(w){if("function"!=typeof b)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return w.lift(new c(b,h))}}class c{constructor(h,g){this.project=h,this.thisArg=g}call(h,g){return g.subscribe(new v(h,this.project,this.thisArg))}}class v extends i.L{constructor(h,g,w){super(h),this.project=g,this.count=0,this.thisArg=w||this}_next(h){let g;try{g=this.project.call(this.thisArg,h,this.count++)}catch(w){return void this.destination.error(w)}this.destination.next(g)}}},7604:(Ct,ke,u)=>{"use strict";u.d(ke,{h:()=>a});var i=u(3489);function a(b){return h=>h.lift(new c(b))}class c{constructor(h){this.value=h}call(h,g){return g.subscribe(new v(h,this.value))}}class v extends i.L{constructor(h,g){super(h),this.value=g}_next(h){this.destination.next(this.value)}}},9146:(Ct,ke,u)=>{"use strict";u.d(ke,{J:()=>c});var i=u(1709),a=u(5379);function c(v=Number.POSITIVE_INFINITY){return(0,i.zg)(a.y,v)}},1709:(Ct,ke,u)=>{"use strict";u.d(ke,{zg:()=>v});var i=u(4850),a=u(5254),c=u(1177);function v(w,B,O=Number.POSITIVE_INFINITY){return"function"==typeof B?P=>P.pipe(v((k,F)=>(0,a.D)(w(k,F)).pipe((0,i.U)((z,ae)=>B(k,z,F,ae))),O)):("number"==typeof B&&(O=B),P=>P.lift(new b(w,O)))}class b{constructor(B,O=Number.POSITIVE_INFINITY){this.project=B,this.concurrent=O}call(B,O){return O.subscribe(new h(B,this.project,this.concurrent))}}class h extends c.Ds{constructor(B,O,P=Number.POSITIVE_INFINITY){super(B),this.project=O,this.concurrent=P,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(B){this.active0?this._next(B.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},4327:(Ct,ke,u)=>{"use strict";u.d(ke,{x:()=>a});var i=u(3489);function a(){return function(h){return h.lift(new c(h))}}class c{constructor(h){this.connectable=h}call(h,g){const{connectable:w}=this;w._refCount++;const B=new v(h,w),O=g.subscribe(B);return B.closed||(B.connection=w.connect()),O}}class v extends i.L{constructor(h,g){super(h),this.connectable=g}_unsubscribe(){const{connectable:h}=this;if(!h)return void(this.connection=null);this.connectable=null;const g=h._refCount;if(g<=0)return void(this.connection=null);if(h._refCount=g-1,g>1)return void(this.connection=null);const{connection:w}=this,B=h._connection;this.connection=null,B&&(!w||B===w)&&B.unsubscribe()}}},2474:(Ct,ke,u)=>{"use strict";u.d(ke,{B:()=>g});var i=u(1762);class c{constructor(B,O){this.subjectFactory=B,this.selector=O}call(B,O){const{selector:P}=this,k=this.subjectFactory(),F=P(k).subscribe(B);return F.add(O.subscribe(k)),F}}var v=u(4327),b=u(8929);function h(){return new b.xQ}function g(){return w=>(0,v.x)()(function a(w,B){return function(P){let k;if(k="function"==typeof w?w:function(){return w},"function"==typeof B)return P.lift(new c(k,B));const F=Object.create(P,i.N);return F.source=P,F.subjectFactory=k,F}}(h)(w))}},5154:(Ct,ke,u)=>{"use strict";u.d(ke,{d:()=>a});var i=u(6831);function a(v,b,h){let g;return g=v&&"object"==typeof v?v:{bufferSize:v,windowTime:b,refCount:!1,scheduler:h},w=>w.lift(function c({bufferSize:v=Number.POSITIVE_INFINITY,windowTime:b=Number.POSITIVE_INFINITY,refCount:h,scheduler:g}){let w,O,B=0,P=!1,k=!1;return function(z){let ae;B++,!w||P?(P=!1,w=new i.t(v,b,g),ae=w.subscribe(this),O=z.subscribe({next(we){w.next(we)},error(we){P=!0,w.error(we)},complete(){k=!0,O=void 0,w.complete()}}),k&&(O=void 0)):ae=w.subscribe(this),this.add(()=>{B--,ae.unsubscribe(),ae=void 0,O&&!k&&h&&0===B&&(O.unsubscribe(),O=void 0,w=void 0)})}}(g))}},1307:(Ct,ke,u)=>{"use strict";u.d(ke,{T:()=>a});var i=u(3489);function a(b){return h=>h.lift(new c(b))}class c{constructor(h){this.total=h}call(h,g){return g.subscribe(new v(h,this.total))}}class v extends i.L{constructor(h,g){super(h),this.total=g,this.count=0}_next(h){++this.count>this.total&&this.destination.next(h)}}},1059:(Ct,ke,u)=>{"use strict";u.d(ke,{O:()=>c});var i=u(1221),a=u(2866);function c(...v){const b=v[v.length-1];return(0,a.K)(b)?(v.pop(),h=>(0,i.z)(v,h,b)):h=>(0,i.z)(v,h)}},7545:(Ct,ke,u)=>{"use strict";u.d(ke,{w:()=>v});var i=u(4850),a=u(5254),c=u(1177);function v(g,w){return"function"==typeof w?B=>B.pipe(v((O,P)=>(0,a.D)(g(O,P)).pipe((0,i.U)((k,F)=>w(O,k,P,F))))):B=>B.lift(new b(g))}class b{constructor(w){this.project=w}call(w,B){return B.subscribe(new h(w,this.project))}}class h extends c.Ds{constructor(w,B){super(w),this.project=B,this.index=0}_next(w){let B;const O=this.index++;try{B=this.project(w,O)}catch(P){return void this.destination.error(P)}this._innerSub(B)}_innerSub(w){const B=this.innerSubscription;B&&B.unsubscribe();const O=new c.IY(this),P=this.destination;P.add(O),this.innerSubscription=(0,c.ft)(w,O),this.innerSubscription!==O&&P.add(this.innerSubscription)}_complete(){const{innerSubscription:w}=this;(!w||w.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(w){this.destination.next(w)}}},2986:(Ct,ke,u)=>{"use strict";u.d(ke,{q:()=>v});var i=u(3489),a=u(4231),c=u(8896);function v(g){return w=>0===g?(0,c.c)():w.lift(new b(g))}class b{constructor(w){if(this.total=w,this.total<0)throw new a.W}call(w,B){return B.subscribe(new h(w,this.total))}}class h extends i.L{constructor(w,B){super(w),this.total=B,this.count=0}_next(w){const B=this.total,O=++this.count;O<=B&&(this.destination.next(w),O===B&&(this.destination.complete(),this.unsubscribe()))}}},7625:(Ct,ke,u)=>{"use strict";u.d(ke,{R:()=>a});var i=u(1177);function a(b){return h=>h.lift(new c(b))}class c{constructor(h){this.notifier=h}call(h,g){const w=new v(h),B=(0,i.ft)(this.notifier,new i.IY(w));return B&&!w.seenValue?(w.add(B),g.subscribe(w)):w}}class v extends i.Ds{constructor(h){super(h),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},4290:(Ct,ke,u)=>{"use strict";u.d(ke,{o:()=>a});var i=u(3489);function a(b,h=!1){return g=>g.lift(new c(b,h))}class c{constructor(h,g){this.predicate=h,this.inclusive=g}call(h,g){return g.subscribe(new v(h,this.predicate,this.inclusive))}}class v extends i.L{constructor(h,g,w){super(h),this.predicate=g,this.inclusive=w,this.index=0}_next(h){const g=this.destination;let w;try{w=this.predicate(h,this.index++)}catch(B){return void g.error(B)}this.nextOrComplete(h,w)}nextOrComplete(h,g){const w=this.destination;Boolean(g)?w.next(h):(this.inclusive&&w.next(h),w.complete())}}},2868:(Ct,ke,u)=>{"use strict";u.d(ke,{b:()=>v});var i=u(3489);function a(){}var c=u(7043);function v(g,w,B){return function(P){return P.lift(new b(g,w,B))}}class b{constructor(w,B,O){this.nextOrObserver=w,this.error=B,this.complete=O}call(w,B){return B.subscribe(new h(w,this.nextOrObserver,this.error,this.complete))}}class h extends i.L{constructor(w,B,O,P){super(w),this._tapNext=a,this._tapError=a,this._tapComplete=a,this._tapError=O||a,this._tapComplete=P||a,(0,c.m)(B)?(this._context=this,this._tapNext=B):B&&(this._context=B,this._tapNext=B.next||a,this._tapError=B.error||a,this._tapComplete=B.complete||a)}_next(w){try{this._tapNext.call(this._context,w)}catch(B){return void this.destination.error(B)}this.destination.next(w)}_error(w){try{this._tapError.call(this._context,w)}catch(B){return void this.destination.error(B)}this.destination.error(w)}_complete(){try{this._tapComplete.call(this._context)}catch(w){return void this.destination.error(w)}return this.destination.complete()}}},6454:(Ct,ke,u)=>{"use strict";u.d(ke,{r:()=>c});var i=u(6498),a=u(2654);function c(v,b){return new i.y(h=>{const g=new a.w;let w=0;return g.add(b.schedule(function(){w!==v.length?(h.next(v[w++]),h.closed||g.add(this.schedule())):h.complete()})),g})}},6686:(Ct,ke,u)=>{"use strict";u.d(ke,{o:()=>c});var i=u(2654);class a extends i.w{constructor(b,h){super()}schedule(b,h=0){return this}}class c extends a{constructor(b,h){super(b,h),this.scheduler=b,this.work=h,this.pending=!1}schedule(b,h=0){if(this.closed)return this;this.state=b;const g=this.id,w=this.scheduler;return null!=g&&(this.id=this.recycleAsyncId(w,g,h)),this.pending=!0,this.delay=h,this.id=this.id||this.requestAsyncId(w,this.id,h),this}requestAsyncId(b,h,g=0){return setInterval(b.flush.bind(b,this),g)}recycleAsyncId(b,h,g=0){if(null!==g&&this.delay===g&&!1===this.pending)return h;clearInterval(h)}execute(b,h){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const g=this._execute(b,h);if(g)return g;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(b,h){let w,g=!1;try{this.work(b)}catch(B){g=!0,w=!!B&&B||new Error(B)}if(g)return this.unsubscribe(),w}_unsubscribe(){const b=this.id,h=this.scheduler,g=h.actions,w=g.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==w&&g.splice(w,1),null!=b&&(this.id=this.recycleAsyncId(h,b,null)),this.delay=null}}},2268:(Ct,ke,u)=>{"use strict";u.d(ke,{v:()=>a});let i=(()=>{class c{constructor(b,h=c.now){this.SchedulerAction=b,this.now=h}schedule(b,h=0,g){return new this.SchedulerAction(this,b).schedule(g,h)}}return c.now=()=>Date.now(),c})();class a extends i{constructor(v,b=i.now){super(v,()=>a.delegate&&a.delegate!==this?a.delegate.now():b()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(v,b=0,h){return a.delegate&&a.delegate!==this?a.delegate.schedule(v,b,h):super.schedule(v,b,h)}flush(v){const{actions:b}=this;if(this.active)return void b.push(v);let h;this.active=!0;do{if(h=v.execute(v.state,v.delay))break}while(v=b.shift());if(this.active=!1,h){for(;v=b.shift();)v.unsubscribe();throw h}}}},8139:(Ct,ke,u)=>{"use strict";u.d(ke,{E:()=>P});let i=1;const a=Promise.resolve(),c={};function v(F){return F in c&&(delete c[F],!0)}const b={setImmediate(F){const z=i++;return c[z]=!0,a.then(()=>v(z)&&F()),z},clearImmediate(F){v(F)}};var g=u(6686),B=u(2268);const P=new class O extends B.v{flush(z){this.active=!0,this.scheduled=void 0;const{actions:ae}=this;let we,ue=-1,le=ae.length;z=z||ae.shift();do{if(we=z.execute(z.state,z.delay))break}while(++ue0?super.requestAsyncId(z,ae,we):(z.actions.push(this),z.scheduled||(z.scheduled=b.setImmediate(z.flush.bind(z,null))))}recycleAsyncId(z,ae,we=0){if(null!==we&&we>0||null===we&&this.delay>0)return super.recycleAsyncId(z,ae,we);0===z.actions.length&&(b.clearImmediate(ae),z.scheduled=void 0)}})},353:(Ct,ke,u)=>{"use strict";u.d(ke,{P:()=>v});var i=u(6686);const v=new(u(2268).v)(i.o)},5430:(Ct,ke,u)=>{"use strict";u.d(ke,{hZ:()=>a});const a=function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(Ct,ke,u)=>{"use strict";u.d(ke,{L:()=>i});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(Ct,ke,u)=>{"use strict";u.d(ke,{b:()=>i});const i="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(Ct,ke,u)=>{"use strict";u.d(ke,{W:()=>a});const a=(()=>{function c(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return c.prototype=Object.create(Error.prototype),c})()},5279:(Ct,ke,u)=>{"use strict";u.d(ke,{N:()=>a});const a=(()=>{function c(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return c.prototype=Object.create(Error.prototype),c})()},2782:(Ct,ke,u)=>{"use strict";function i(a){setTimeout(()=>{throw a},0)}u.d(ke,{z:()=>i})},5379:(Ct,ke,u)=>{"use strict";function i(a){return a}u.d(ke,{y:()=>i})},6688:(Ct,ke,u)=>{"use strict";u.d(ke,{k:()=>i});const i=Array.isArray||(a=>a&&"number"==typeof a.length)},8515:(Ct,ke,u)=>{"use strict";u.d(ke,{z:()=>i});const i=a=>a&&"number"==typeof a.length&&"function"!=typeof a},7043:(Ct,ke,u)=>{"use strict";function i(a){return"function"==typeof a}u.d(ke,{m:()=>i})},7830:(Ct,ke,u)=>{"use strict";function i(a){return null!==a&&"object"==typeof a}u.d(ke,{K:()=>i})},8955:(Ct,ke,u)=>{"use strict";function i(a){return!!a&&"function"!=typeof a.subscribe&&"function"==typeof a.then}u.d(ke,{t:()=>i})},2866:(Ct,ke,u)=>{"use strict";function i(a){return a&&"function"==typeof a.schedule}u.d(ke,{K:()=>i})},4843:(Ct,ke,u)=>{"use strict";u.d(ke,{U:()=>c,z:()=>a});var i=u(5379);function a(...v){return c(v)}function c(v){return 0===v.length?i.y:1===v.length?v[0]:function(h){return v.reduce((g,w)=>w(g),h)}}},9249:(Ct,ke,u)=>{"use strict";u.d(ke,{s:()=>P});var i=u(3650),a=u(2782),v=u(5430),h=u(3821),w=u(8515),B=u(8955),O=u(7830);const P=k=>{if(k&&"function"==typeof k[h.L])return(k=>F=>{const z=k[h.L]();if("function"!=typeof z.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return z.subscribe(F)})(k);if((0,w.z)(k))return(0,i.V)(k);if((0,B.t)(k))return(k=>F=>(k.then(z=>{F.closed||(F.next(z),F.complete())},z=>F.error(z)).then(null,a.z),F))(k);if(k&&"function"==typeof k[v.hZ])return(k=>F=>{const z=k[v.hZ]();for(;;){let ae;try{ae=z.next()}catch(we){return F.error(we),F}if(ae.done){F.complete();break}if(F.next(ae.value),F.closed)break}return"function"==typeof z.return&&F.add(()=>{z.return&&z.return()}),F})(k);{const z=`You provided ${(0,O.K)(k)?"an invalid object":`'${k}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(z)}}},3650:(Ct,ke,u)=>{"use strict";u.d(ke,{V:()=>i});const i=a=>c=>{for(let v=0,b=a.length;v{"use strict";var i=u(858).Buffer,a=i.isEncoding||function(le){switch((le=""+le)&&le.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function b(le){var ge;switch(this.encoding=function v(le){var ge=function c(le){if(!le)return"utf8";for(var ge;;)switch(le){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return le;default:if(ge)return;le=(""+le).toLowerCase(),ge=!0}}(le);if("string"!=typeof ge&&(i.isEncoding===a||!a(le)))throw new Error("Unknown encoding: "+le);return ge||le}(le),this.encoding){case"utf16le":this.text=k,this.end=F,ge=4;break;case"utf8":this.fillLast=B,ge=4;break;case"base64":this.text=z,this.end=ae,ge=3;break;default:return this.write=we,void(this.end=ue)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(ge)}function h(le){return le<=127?0:le>>5==6?2:le>>4==14?3:le>>3==30?4:le>>6==2?-1:-2}function B(le){var ge=this.lastTotal-this.lastNeed,W=function w(le,ge,W){if(128!=(192&ge[0]))return le.lastNeed=0,"\ufffd";if(le.lastNeed>1&&ge.length>1){if(128!=(192&ge[1]))return le.lastNeed=1,"\ufffd";if(le.lastNeed>2&&ge.length>2&&128!=(192&ge[2]))return le.lastNeed=2,"\ufffd"}}(this,le);return void 0!==W?W:this.lastNeed<=le.length?(le.copy(this.lastChar,ge,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(le.copy(this.lastChar,ge,0,le.length),void(this.lastNeed-=le.length))}function k(le,ge){if((le.length-ge)%2==0){var W=le.toString("utf16le",ge);if(W){var ie=W.charCodeAt(W.length-1);if(ie>=55296&&ie<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=le[le.length-2],this.lastChar[1]=le[le.length-1],W.slice(0,-1)}return W}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=le[le.length-1],le.toString("utf16le",ge,le.length-1)}function F(le){var ge=le&&le.length?this.write(le):"";return this.lastNeed?ge+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):ge}function z(le,ge){var W=(le.length-ge)%3;return 0===W?le.toString("base64",ge):(this.lastNeed=3-W,this.lastTotal=3,1===W?this.lastChar[0]=le[le.length-1]:(this.lastChar[0]=le[le.length-2],this.lastChar[1]=le[le.length-1]),le.toString("base64",ge,le.length-W))}function ae(le){var ge=le&&le.length?this.write(le):"";return this.lastNeed?ge+this.lastChar.toString("base64",0,3-this.lastNeed):ge}function we(le){return le.toString(this.encoding)}function ue(le){return le&&le.length?this.write(le):""}ke.StringDecoder=b,b.prototype.write=function(le){if(0===le.length)return"";var ge,W;if(this.lastNeed){if(void 0===(ge=this.fillLast(le)))return"";W=this.lastNeed,this.lastNeed=0}else W=0;return W=0?(he>0&&(le.lastNeed=he-1),he):--ie=0?(he>0&&(le.lastNeed=he-2),he):--ie=0?(he>0&&(2===he?he=0:le.lastNeed=he-3),he):0}(this,le,ge);if(!this.lastNeed)return le.toString("utf8",ge);this.lastTotal=W;var ie=le.length-(W-this.lastNeed);return le.copy(this.lastChar,0,ie),le.toString("utf8",ge,ie)},b.prototype.fillLast=function(le){if(this.lastNeed<=le.length)return le.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);le.copy(this.lastChar,this.lastTotal-this.lastNeed,0,le.length),this.lastNeed-=le.length}},858:(Ct,ke,u)=>{var i=u(3172),a=i.Buffer;function c(b,h){for(var g in b)h[g]=b[g]}function v(b,h,g){return a(b,h,g)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?Ct.exports=i:(c(i,ke),ke.Buffer=v),v.prototype=Object.create(a.prototype),c(a,v),v.from=function(b,h,g){if("number"==typeof b)throw new TypeError("Argument must not be a number");return a(b,h,g)},v.alloc=function(b,h,g){if("number"!=typeof b)throw new TypeError("Argument must be a number");var w=a(b);return void 0!==h?"string"==typeof g?w.fill(h,g):w.fill(h):w.fill(0),w},v.allocUnsafe=function(b){if("number"!=typeof b)throw new TypeError("Argument must be a number");return a(b)},v.allocUnsafeSlow=function(b){if("number"!=typeof b)throw new TypeError("Argument must be a number");return i.SlowBuffer(b)}},4642:(Ct,ke,u)=>{var i=u(9805);function a(c){var v,b;function g(B,O){try{var P=c[B](O),k=P.value,F=k instanceof i;Promise.resolve(F?k.wrapped:k).then(function(z){F?g("return"===B?"return":"next",z):w(P.done?"return":"normal",z)},function(z){g("throw",z)})}catch(z){w("throw",z)}}function w(B,O){switch(B){case"return":v.resolve({value:O,done:!0});break;case"throw":v.reject(O);break;default:v.resolve({value:O,done:!1})}(v=v.next)?g(v.key,v.arg):b=null}this._invoke=function h(B,O){return new Promise(function(P,k){var F={key:B,arg:O,resolve:P,reject:k,next:null};b?b=b.next=F:(v=b=F,g(B,O))})},"function"!=typeof c.return&&(this.return=void 0)}a.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},a.prototype.next=function(c){return this._invoke("next",c)},a.prototype.throw=function(c){return this._invoke("throw",c)},a.prototype.return=function(c){return this._invoke("return",c)},Ct.exports=a,Ct.exports.__esModule=!0,Ct.exports.default=Ct.exports},9805:Ct=>{Ct.exports=function ke(u){this.wrapped=u},Ct.exports.__esModule=!0,Ct.exports.default=Ct.exports},8131:Ct=>{Ct.exports=function ke(u,i){var a={},c=!1;function v(b,h){return c=!0,h=new Promise(function(g){g(u[b](h))}),{done:!1,value:i(h)}}return a[typeof Symbol<"u"&&Symbol.iterator||"@@iterator"]=function(){return this},a.next=function(b){return c?(c=!1,b):v("next",b)},"function"==typeof u.throw&&(a.throw=function(b){if(c)throw c=!1,b;return v("throw",b)}),"function"==typeof u.return&&(a.return=function(b){return c?(c=!1,b):v("return",b)}),a},Ct.exports.__esModule=!0,Ct.exports.default=Ct.exports},8237:Ct=>{function u(i){function a(c){if(Object(c)!==c)return Promise.reject(new TypeError(c+" is not an object."));var v=c.done;return Promise.resolve(c.value).then(function(b){return{value:b,done:v}})}return(u=function(v){this.s=v,this.n=v.next}).prototype={s:null,n:null,next:function(){return a(this.n.apply(this.s,arguments))},return:function(v){var b=this.s.return;return void 0===b?Promise.resolve({value:v,done:!0}):a(b.apply(this.s,arguments))},throw:function(v){var b=this.s.return;return void 0===b?Promise.reject(v):a(b.apply(this.s,arguments))}},new u(i)}Ct.exports=function ke(i){var a,c,v,b=2;for(typeof Symbol<"u"&&(c=Symbol.asyncIterator,v=Symbol.iterator);b--;){if(c&&null!=(a=i[c]))return a.call(i);if(v&&null!=(a=i[v]))return new u(a.call(i));c="@@asyncIterator",v="@@iterator"}throw new TypeError("Object is not async iterable")},Ct.exports.__esModule=!0,Ct.exports.default=Ct.exports},7156:Ct=>{function ke(i,a,c,v,b,h,g){try{var w=i[h](g),B=w.value}catch(O){return void c(O)}w.done?a(B):Promise.resolve(B).then(v,b)}Ct.exports=function u(i){return function(){var a=this,c=arguments;return new Promise(function(v,b){var h=i.apply(a,c);function g(B){ke(h,v,b,g,w,"next",B)}function w(B){ke(h,v,b,g,w,"throw",B)}g(void 0)})}},Ct.exports.__esModule=!0,Ct.exports.default=Ct.exports},6737:(Ct,ke,u)=>{var i=u(9805);Ct.exports=function a(c){return new i(c)},Ct.exports.__esModule=!0,Ct.exports.default=Ct.exports},8186:(Ct,ke,u)=>{var i=u(4642);Ct.exports=function a(c){return function(){return new i(c.apply(this,arguments))}},Ct.exports.__esModule=!0,Ct.exports.default=Ct.exports},7340:(Ct,ke,u)=>{"use strict";u.d(ke,{EY:()=>we,F4:()=>O,IO:()=>ae,LC:()=>a,SB:()=>B,X$:()=>v,ZE:()=>ge,ZN:()=>le,_j:()=>i,eR:()=>P,jt:()=>b,k1:()=>W,l3:()=>c,oB:()=>w,pV:()=>F,ru:()=>h,vP:()=>g});class i{}class a{}const c="*";function v(ie,he){return{type:7,name:ie,definitions:he,options:{}}}function b(ie,he=null){return{type:4,styles:he,timings:ie}}function h(ie,he=null){return{type:3,steps:ie,options:he}}function g(ie,he=null){return{type:2,steps:ie,options:he}}function w(ie){return{type:6,styles:ie,offset:null}}function B(ie,he,se){return{type:0,name:ie,styles:he,options:se}}function O(ie){return{type:5,steps:ie}}function P(ie,he,se=null){return{type:1,expr:ie,animation:he,options:se}}function F(ie=null){return{type:9,options:ie}}function ae(ie,he,se=null){return{type:11,selector:ie,animation:he,options:se}}function we(ie,he){return{type:12,timings:ie,animation:he}}function ue(ie){Promise.resolve(null).then(ie)}class le{constructor(he=0,se=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=he+se}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(he=>he()),this._onDoneFns=[])}onStart(he){this._originalOnStartFns.push(he),this._onStartFns.push(he)}onDone(he){this._originalOnDoneFns.push(he),this._onDoneFns.push(he)}onDestroy(he){this._onDestroyFns.push(he)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){ue(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(he=>he()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(he=>he()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(he){this._position=this.totalTime?he*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(he){const se="start"==he?this._onStartFns:this._onDoneFns;se.forEach(Me=>Me()),se.length=0}}class ge{constructor(he){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=he;let se=0,Me=0,Ge=0;const it=this.players.length;0==it?ue(()=>this._onFinish()):this.players.forEach(Ke=>{Ke.onDone(()=>{++se==it&&this._onFinish()}),Ke.onDestroy(()=>{++Me==it&&this._onDestroy()}),Ke.onStart(()=>{++Ge==it&&this._onStart()})}),this.totalTime=this.players.reduce((Ke,tt)=>Math.max(Ke,tt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(he=>he()),this._onDoneFns=[])}init(){this.players.forEach(he=>he.init())}onStart(he){this._onStartFns.push(he)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(he=>he()),this._onStartFns=[])}onDone(he){this._onDoneFns.push(he)}onDestroy(he){this._onDestroyFns.push(he)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(he=>he.play())}pause(){this.players.forEach(he=>he.pause())}restart(){this.players.forEach(he=>he.restart())}finish(){this._onFinish(),this.players.forEach(he=>he.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(he=>he.destroy()),this._onDestroyFns.forEach(he=>he()),this._onDestroyFns=[])}reset(){this.players.forEach(he=>he.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(he){const se=he*this.totalTime;this.players.forEach(Me=>{const Ge=Me.totalTime?Math.min(1,se/Me.totalTime):1;Me.setPosition(Ge)})}getPosition(){const he=this.players.reduce((se,Me)=>null===se||Me.totalTime>se.totalTime?Me:se,null);return null!=he?he.getPosition():0}beforeDestroy(){this.players.forEach(he=>{he.beforeDestroy&&he.beforeDestroy()})}triggerCallback(he){const se="start"==he?this._onStartFns:this._onDoneFns;se.forEach(Me=>Me()),se.length=0}}const W="!"},2687:(Ct,ke,u)=>{"use strict";u.d(ke,{$s:()=>tt,Em:()=>ht,Kd:()=>ve,X6:()=>x,ic:()=>Dt,qV:()=>nt,qm:()=>Fe,rt:()=>ot,s1:()=>_t,tE:()=>dt,yG:()=>p});var i=u(6895),a=u(4650),c=u(3353),v=u(8929),b=u(2654),h=u(591),g=u(1086),w=u(9521),B=u(2868),O=u(13),P=u(2198),k=u(4850),F=u(2986),z=u(1307),ae=u(5778),we=u(7625),ue=u(1281),le=u(9643),ge=u(2289);function se(ce,je){return(ce.getAttribute(je)||"").match(/\S+/g)||[]}const Ge="cdk-describedby-message",it="cdk-describedby-host";let Ke=0,tt=(()=>{class ce{constructor(Ce,Ye){this._platform=Ye,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Ke++,this._document=Ce,this._id=(0,a.f3M)(a.AFp)+"-"+Ke++}describe(Ce,Ye,Pe){if(!this._canBeDescribed(Ce,Ye))return;const bt=me(Ye,Pe);"string"!=typeof Ye?(Xe(Ye,this._id),this._messageRegistry.set(bt,{messageElement:Ye,referenceCount:0})):this._messageRegistry.has(bt)||this._createMessageElement(Ye,Pe),this._isElementDescribedByMessage(Ce,bt)||this._addMessageReference(Ce,bt)}removeDescription(Ce,Ye,Pe){if(!Ye||!this._isElementNode(Ce))return;const bt=me(Ye,Pe);if(this._isElementDescribedByMessage(Ce,bt)&&this._removeMessageReference(Ce,bt),"string"==typeof Ye){const st=this._messageRegistry.get(bt);st&&0===st.referenceCount&&this._deleteMessageElement(bt)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const Ce=this._document.querySelectorAll(`[${it}="${this._id}"]`);for(let Ye=0;Ye0!=Pe.indexOf(Ge));Ce.setAttribute("aria-describedby",Ye.join(" "))}_addMessageReference(Ce,Ye){const Pe=this._messageRegistry.get(Ye);(function ie(ce,je,Ce){const Ye=se(ce,je);Ye.some(Pe=>Pe.trim()==Ce.trim())||(Ye.push(Ce.trim()),ce.setAttribute(je,Ye.join(" ")))})(Ce,"aria-describedby",Pe.messageElement.id),Ce.setAttribute(it,this._id),Pe.referenceCount++}_removeMessageReference(Ce,Ye){const Pe=this._messageRegistry.get(Ye);Pe.referenceCount--,function he(ce,je,Ce){const Pe=se(ce,je).filter(bt=>bt!=Ce.trim());Pe.length?ce.setAttribute(je,Pe.join(" ")):ce.removeAttribute(je)}(Ce,"aria-describedby",Pe.messageElement.id),Ce.removeAttribute(it)}_isElementDescribedByMessage(Ce,Ye){const Pe=se(Ce,"aria-describedby"),bt=this._messageRegistry.get(Ye),st=bt&&bt.messageElement.id;return!!st&&-1!=Pe.indexOf(st)}_canBeDescribed(Ce,Ye){if(!this._isElementNode(Ce))return!1;if(Ye&&"object"==typeof Ye)return!0;const Pe=null==Ye?"":`${Ye}`.trim(),bt=Ce.getAttribute("aria-label");return!(!Pe||bt&&bt.trim()===Pe)}_isElementNode(Ce){return Ce.nodeType===this._document.ELEMENT_NODE}}return ce.\u0275fac=function(Ce){return new(Ce||ce)(a.LFG(i.K0),a.LFG(c.t4))},ce.\u0275prov=a.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})();function me(ce,je){return"string"==typeof ce?`${je||""}/${ce}`:ce}function Xe(ce,je){ce.id||(ce.id=`${Ge}-${je}-${Ke++}`)}class Ae{constructor(je){this._items=je,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new v.xQ,this._typeaheadSubscription=b.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=Ce=>Ce.disabled,this._pressedLetters=[],this.tabOut=new v.xQ,this.change=new v.xQ,je instanceof a.n_E&&je.changes.subscribe(Ce=>{if(this._activeItem){const Pe=Ce.toArray().indexOf(this._activeItem);Pe>-1&&Pe!==this._activeItemIndex&&(this._activeItemIndex=Pe)}})}skipPredicate(je){return this._skipPredicateFn=je,this}withWrap(je=!0){return this._wrap=je,this}withVerticalOrientation(je=!0){return this._vertical=je,this}withHorizontalOrientation(je){return this._horizontal=je,this}withAllowedModifierKeys(je){return this._allowedModifierKeys=je,this}withTypeAhead(je=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,B.b)(Ce=>this._pressedLetters.push(Ce)),(0,O.b)(je),(0,P.h)(()=>this._pressedLetters.length>0),(0,k.U)(()=>this._pressedLetters.join(""))).subscribe(Ce=>{const Ye=this._getItemsArray();for(let Pe=1;Pe!je[bt]||this._allowedModifierKeys.indexOf(bt)>-1);switch(Ce){case w.Mf:return void this.tabOut.next();case w.JH:if(this._vertical&&Pe){this.setNextItemActive();break}return;case w.LH:if(this._vertical&&Pe){this.setPreviousItemActive();break}return;case w.SV:if(this._horizontal&&Pe){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case w.oh:if(this._horizontal&&Pe){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case w.Sd:if(this._homeAndEnd&&Pe){this.setFirstItemActive();break}return;case w.uR:if(this._homeAndEnd&&Pe){this.setLastItemActive();break}return;default:return void((Pe||(0,w.Vb)(je,"shiftKey"))&&(je.key&&1===je.key.length?this._letterKeyStream.next(je.key.toLocaleUpperCase()):(Ce>=w.A&&Ce<=w.Z||Ce>=w.xE&&Ce<=w.aO)&&this._letterKeyStream.next(String.fromCharCode(Ce))))}this._pressedLetters=[],je.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(je){const Ce=this._getItemsArray(),Ye="number"==typeof je?je:Ce.indexOf(je);this._activeItem=Ce[Ye]??null,this._activeItemIndex=Ye}_setActiveItemByDelta(je){this._wrap?this._setActiveInWrapMode(je):this._setActiveInDefaultMode(je)}_setActiveInWrapMode(je){const Ce=this._getItemsArray();for(let Ye=1;Ye<=Ce.length;Ye++){const Pe=(this._activeItemIndex+je*Ye+Ce.length)%Ce.length;if(!this._skipPredicateFn(Ce[Pe]))return void this.setActiveItem(Pe)}}_setActiveInDefaultMode(je){this._setActiveItemByIndex(this._activeItemIndex+je,je)}_setActiveItemByIndex(je,Ce){const Ye=this._getItemsArray();if(Ye[je]){for(;this._skipPredicateFn(Ye[je]);)if(!Ye[je+=Ce])return;this.setActiveItem(je)}}_getItemsArray(){return this._items instanceof a.n_E?this._items.toArray():this._items}}class _t extends Ae{setActiveItem(je){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(je),this.activeItem&&this.activeItem.setActiveStyles()}}class ht extends Ae{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(je){return this._origin=je,this}setActiveItem(je){super.setActiveItem(je),this.activeItem&&this.activeItem.focus(this._origin)}}let Dt=(()=>{class ce{constructor(Ce){this._platform=Ce}isDisabled(Ce){return Ce.hasAttribute("disabled")}isVisible(Ce){return function V(ce){return!!(ce.offsetWidth||ce.offsetHeight||"function"==typeof ce.getClientRects&&ce.getClientRects().length)}(Ce)&&"visible"===getComputedStyle(Ce).visibility}isTabbable(Ce){if(!this._platform.isBrowser)return!1;const Ye=function jt(ce){try{return ce.frameElement}catch{return null}}(function We(ce){return ce.ownerDocument&&ce.ownerDocument.defaultView||window}(Ce));if(Ye&&(-1===et(Ye)||!this.isVisible(Ye)))return!1;let Pe=Ce.nodeName.toLowerCase(),bt=et(Ce);return Ce.hasAttribute("contenteditable")?-1!==bt:!("iframe"===Pe||"object"===Pe||this._platform.WEBKIT&&this._platform.IOS&&!function Mt(ce){let je=ce.nodeName.toLowerCase(),Ce="input"===je&&ce.type;return"text"===Ce||"password"===Ce||"select"===je||"textarea"===je}(Ce))&&("audio"===Pe?!!Ce.hasAttribute("controls")&&-1!==bt:"video"===Pe?-1!==bt&&(null!==bt||this._platform.FIREFOX||Ce.hasAttribute("controls")):Ce.tabIndex>=0)}isFocusable(Ce,Ye){return function gt(ce){return!function oe(ce){return function Oe(ce){return"input"==ce.nodeName.toLowerCase()}(ce)&&"hidden"==ce.type}(ce)&&(function Ee(ce){let je=ce.nodeName.toLowerCase();return"input"===je||"select"===je||"button"===je||"textarea"===je}(ce)||function _e(ce){return function at(ce){return"a"==ce.nodeName.toLowerCase()}(ce)&&ce.hasAttribute("href")}(ce)||ce.hasAttribute("contenteditable")||be(ce))}(Ce)&&!this.isDisabled(Ce)&&(Ye?.ignoreVisibility||this.isVisible(Ce))}}return ce.\u0275fac=function(Ce){return new(Ce||ce)(a.LFG(c.t4))},ce.\u0275prov=a.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})();function be(ce){if(!ce.hasAttribute("tabindex")||void 0===ce.tabIndex)return!1;let je=ce.getAttribute("tabindex");return!(!je||isNaN(parseInt(je,10)))}function et(ce){if(!be(ce))return null;const je=parseInt(ce.getAttribute("tabindex")||"",10);return isNaN(je)?-1:je}class wt{constructor(je,Ce,Ye,Pe,bt=!1){this._element=je,this._checker=Ce,this._ngZone=Ye,this._document=Pe,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,bt||this.attachAnchors()}get enabled(){return this._enabled}set enabled(je){this._enabled=je,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(je,this._startAnchor),this._toggleAnchorTabIndex(je,this._endAnchor))}destroy(){const je=this._startAnchor,Ce=this._endAnchor;je&&(je.removeEventListener("focus",this.startAnchorListener),je.remove()),Ce&&(Ce.removeEventListener("focus",this.endAnchorListener),Ce.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(je){return new Promise(Ce=>{this._executeOnStable(()=>Ce(this.focusInitialElement(je)))})}focusFirstTabbableElementWhenReady(je){return new Promise(Ce=>{this._executeOnStable(()=>Ce(this.focusFirstTabbableElement(je)))})}focusLastTabbableElementWhenReady(je){return new Promise(Ce=>{this._executeOnStable(()=>Ce(this.focusLastTabbableElement(je)))})}_getRegionBoundary(je){const Ce=this._element.querySelectorAll(`[cdk-focus-region-${je}], [cdkFocusRegion${je}], [cdk-focus-${je}]`);return"start"==je?Ce.length?Ce[0]:this._getFirstTabbableElement(this._element):Ce.length?Ce[Ce.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(je){const Ce=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(Ce){if(!this._checker.isFocusable(Ce)){const Ye=this._getFirstTabbableElement(Ce);return Ye?.focus(je),!!Ye}return Ce.focus(je),!0}return this.focusFirstTabbableElement(je)}focusFirstTabbableElement(je){const Ce=this._getRegionBoundary("start");return Ce&&Ce.focus(je),!!Ce}focusLastTabbableElement(je){const Ce=this._getRegionBoundary("end");return Ce&&Ce.focus(je),!!Ce}hasAttached(){return this._hasAttached}_getFirstTabbableElement(je){if(this._checker.isFocusable(je)&&this._checker.isTabbable(je))return je;const Ce=je.children;for(let Ye=0;Ye=0;Ye--){const Pe=Ce[Ye].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Ce[Ye]):null;if(Pe)return Pe}return null}_createAnchor(){const je=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,je),je.classList.add("cdk-visually-hidden"),je.classList.add("cdk-focus-trap-anchor"),je.setAttribute("aria-hidden","true"),je}_toggleAnchorTabIndex(je,Ce){je?Ce.setAttribute("tabindex","0"):Ce.removeAttribute("tabindex")}toggleAnchors(je){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(je,this._startAnchor),this._toggleAnchorTabIndex(je,this._endAnchor))}_executeOnStable(je){this._ngZone.isStable?je():this._ngZone.onStable.pipe((0,F.q)(1)).subscribe(je)}}let nt=(()=>{class ce{constructor(Ce,Ye,Pe){this._checker=Ce,this._ngZone=Ye,this._document=Pe}create(Ce,Ye=!1){return new wt(Ce,this._checker,this._ngZone,this._document,Ye)}}return ce.\u0275fac=function(Ce){return new(Ce||ce)(a.LFG(Dt),a.LFG(a.R0b),a.LFG(i.K0))},ce.\u0275prov=a.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})();function x(ce){return 0===ce.buttons||0===ce.offsetX&&0===ce.offsetY}function p(ce){const je=ce.touches&&ce.touches[0]||ce.changedTouches&&ce.changedTouches[0];return!(!je||-1!==je.identifier||null!=je.radiusX&&1!==je.radiusX||null!=je.radiusY&&1!==je.radiusY)}const m=new a.OlP("cdk-input-modality-detector-options"),j={ignoreKeys:[w.zL,w.jx,w.b2,w.MW,w.JU]},X=(0,c.i$)({passive:!0,capture:!0});let H=(()=>{class ce{constructor(Ce,Ye,Pe,bt){this._platform=Ce,this._mostRecentTarget=null,this._modality=new h.X(null),this._lastTouchMs=0,this._onKeydown=st=>{this._options?.ignoreKeys?.some(ct=>ct===st.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,c.sA)(st))},this._onMousedown=st=>{Date.now()-this._lastTouchMs<650||(this._modality.next(x(st)?"keyboard":"mouse"),this._mostRecentTarget=(0,c.sA)(st))},this._onTouchstart=st=>{p(st)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,c.sA)(st))},this._options={...j,...bt},this.modalityDetected=this._modality.pipe((0,z.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,ae.x)()),Ce.isBrowser&&Ye.runOutsideAngular(()=>{Pe.addEventListener("keydown",this._onKeydown,X),Pe.addEventListener("mousedown",this._onMousedown,X),Pe.addEventListener("touchstart",this._onTouchstart,X)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,X),document.removeEventListener("mousedown",this._onMousedown,X),document.removeEventListener("touchstart",this._onTouchstart,X))}}return ce.\u0275fac=function(Ce){return new(Ce||ce)(a.LFG(c.t4),a.LFG(a.R0b),a.LFG(i.K0),a.LFG(m,8))},ce.\u0275prov=a.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})();const f=new a.OlP("liveAnnouncerElement",{providedIn:"root",factory:function _(){return null}}),T=new a.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let ve=(()=>{class ce{constructor(Ce,Ye,Pe,bt){this._ngZone=Ye,this._defaultOptions=bt,this._document=Pe,this._liveElement=Ce||this._createLiveElement()}announce(Ce,...Ye){const Pe=this._defaultOptions;let bt,st;return 1===Ye.length&&"number"==typeof Ye[0]?st=Ye[0]:[bt,st]=Ye,this.clear(),clearTimeout(this._previousTimeout),bt||(bt=Pe&&Pe.politeness?Pe.politeness:"polite"),null==st&&Pe&&(st=Pe.duration),this._liveElement.setAttribute("aria-live",bt),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(ct=>this._currentResolve=ct)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=Ce,"number"==typeof st&&(this._previousTimeout=setTimeout(()=>this.clear(),st)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const Ce="cdk-live-announcer-element",Ye=this._document.getElementsByClassName(Ce),Pe=this._document.createElement("div");for(let bt=0;bt{class ce{constructor(Ce,Ye,Pe,bt,st){this._ngZone=Ce,this._platform=Ye,this._inputModalityDetector=Pe,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new v.xQ,this._rootNodeFocusAndBlurListener=ct=>{for(let an=(0,c.sA)(ct);an;an=an.parentElement)"focus"===ct.type?this._onFocus(ct,an):this._onBlur(ct,an)},this._document=bt,this._detectionMode=st?.detectionMode||0}monitor(Ce,Ye=!1){const Pe=(0,ue.fI)(Ce);if(!this._platform.isBrowser||1!==Pe.nodeType)return(0,g.of)(null);const bt=(0,c.kV)(Pe)||this._getDocument(),st=this._elementInfo.get(Pe);if(st)return Ye&&(st.checkChildren=!0),st.subject;const ct={checkChildren:Ye,subject:new v.xQ,rootNode:bt};return this._elementInfo.set(Pe,ct),this._registerGlobalListeners(ct),ct.subject}stopMonitoring(Ce){const Ye=(0,ue.fI)(Ce),Pe=this._elementInfo.get(Ye);Pe&&(Pe.subject.complete(),this._setClasses(Ye),this._elementInfo.delete(Ye),this._removeGlobalListeners(Pe))}focusVia(Ce,Ye,Pe){const bt=(0,ue.fI)(Ce);bt===this._getDocument().activeElement?this._getClosestElementsInfo(bt).forEach(([ct,Ht])=>this._originChanged(ct,Ye,Ht)):(this._setOrigin(Ye),"function"==typeof bt.focus&&bt.focus(Pe))}ngOnDestroy(){this._elementInfo.forEach((Ce,Ye)=>this.stopMonitoring(Ye))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(Ce){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Ce)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:Ce&&this._isLastInteractionFromInputLabel(Ce)?"mouse":"program"}_shouldBeAttributedToTouch(Ce){return 1===this._detectionMode||!!Ce?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(Ce,Ye){Ce.classList.toggle("cdk-focused",!!Ye),Ce.classList.toggle("cdk-touch-focused","touch"===Ye),Ce.classList.toggle("cdk-keyboard-focused","keyboard"===Ye),Ce.classList.toggle("cdk-mouse-focused","mouse"===Ye),Ce.classList.toggle("cdk-program-focused","program"===Ye)}_setOrigin(Ce,Ye=!1){this._ngZone.runOutsideAngular(()=>{this._origin=Ce,this._originFromTouchInteraction="touch"===Ce&&Ye,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(Ce,Ye){const Pe=this._elementInfo.get(Ye),bt=(0,c.sA)(Ce);!Pe||!Pe.checkChildren&&Ye!==bt||this._originChanged(Ye,this._getFocusOrigin(bt),Pe)}_onBlur(Ce,Ye){const Pe=this._elementInfo.get(Ye);!Pe||Pe.checkChildren&&Ce.relatedTarget instanceof Node&&Ye.contains(Ce.relatedTarget)||(this._setClasses(Ye),this._emitOrigin(Pe,null))}_emitOrigin(Ce,Ye){Ce.subject.observers.length&&this._ngZone.run(()=>Ce.subject.next(Ye))}_registerGlobalListeners(Ce){if(!this._platform.isBrowser)return;const Ye=Ce.rootNode,Pe=this._rootNodeFocusListenerCount.get(Ye)||0;Pe||this._ngZone.runOutsideAngular(()=>{Ye.addEventListener("focus",this._rootNodeFocusAndBlurListener,St),Ye.addEventListener("blur",this._rootNodeFocusAndBlurListener,St)}),this._rootNodeFocusListenerCount.set(Ye,Pe+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,we.R)(this._stopInputModalityDetector)).subscribe(bt=>{this._setOrigin(bt,!0)}))}_removeGlobalListeners(Ce){const Ye=Ce.rootNode;if(this._rootNodeFocusListenerCount.has(Ye)){const Pe=this._rootNodeFocusListenerCount.get(Ye);Pe>1?this._rootNodeFocusListenerCount.set(Ye,Pe-1):(Ye.removeEventListener("focus",this._rootNodeFocusAndBlurListener,St),Ye.removeEventListener("blur",this._rootNodeFocusAndBlurListener,St),this._rootNodeFocusListenerCount.delete(Ye))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(Ce,Ye,Pe){this._setClasses(Ce,Ye),this._emitOrigin(Pe,Ye),this._lastFocusOrigin=Ye}_getClosestElementsInfo(Ce){const Ye=[];return this._elementInfo.forEach((Pe,bt)=>{(bt===Ce||Pe.checkChildren&&bt.contains(Ce))&&Ye.push([bt,Pe])}),Ye}_isLastInteractionFromInputLabel(Ce){const{_mostRecentTarget:Ye,mostRecentModality:Pe}=this._inputModalityDetector;if("mouse"!==Pe||!Ye||Ye===Ce||"INPUT"!==Ce.nodeName&&"TEXTAREA"!==Ce.nodeName||Ce.disabled)return!1;const bt=Ce.labels;if(bt)for(let st=0;st{class ce{constructor(Ce,Ye){this._platform=Ce,this._document=Ye,this._breakpointSubscription=(0,a.f3M)(ge.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const Ce=this._document.createElement("div");Ce.style.backgroundColor="rgb(1,2,3)",Ce.style.position="absolute",this._document.body.appendChild(Ce);const Ye=this._document.defaultView||window,Pe=Ye&&Ye.getComputedStyle?Ye.getComputedStyle(Ce):null,bt=(Pe&&Pe.backgroundColor||"").replace(/ /g,"");switch(Ce.remove(),bt){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const Ce=this._document.body.classList;Ce.remove(xe,ye,qe),this._hasCheckedHighContrastMode=!0;const Ye=this.getHighContrastMode();1===Ye?Ce.add(xe,ye):2===Ye&&Ce.add(xe,qe)}}}return ce.\u0275fac=function(Ce){return new(Ce||ce)(a.LFG(c.t4),a.LFG(i.K0))},ce.\u0275prov=a.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})(),ot=(()=>{class ce{constructor(Ce){Ce._applyBodyHighContrastModeCssClasses()}}return ce.\u0275fac=function(Ce){return new(Ce||ce)(a.LFG(Fe))},ce.\u0275mod=a.oAB({type:ce}),ce.\u0275inj=a.cJS({imports:[le.Q8]}),ce})()},445:(Ct,ke,u)=>{"use strict";u.d(ke,{Is:()=>g,vT:()=>B});var i=u(4650),a=u(6895);const c=new i.OlP("cdk-dir-doc",{providedIn:"root",factory:function v(){return(0,i.f3M)(a.K0)}}),b=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let g=(()=>{class O{constructor(k){if(this.value="ltr",this.change=new i.vpe,k){const z=k.documentElement?k.documentElement.dir:null;this.value=function h(O){const P=O?.toLowerCase()||"";return"auto"===P&&typeof navigator<"u"&&navigator?.language?b.test(navigator.language)?"rtl":"ltr":"rtl"===P?"rtl":"ltr"}((k.body?k.body.dir:null)||z||"ltr")}}ngOnDestroy(){this.change.complete()}}return O.\u0275fac=function(k){return new(k||O)(i.LFG(c,8))},O.\u0275prov=i.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})(),B=(()=>{class O{}return O.\u0275fac=function(k){return new(k||O)},O.\u0275mod=i.oAB({type:O}),O.\u0275inj=i.cJS({}),O})()},4425:(Ct,ke,u)=>{"use strict";u.d(ke,{Iq:()=>g,TU:()=>v,i3:()=>h});var i=u(6895),a=u(4650);class c{constructor(B,O){this._document=O;const P=this._textarea=this._document.createElement("textarea"),k=P.style;k.position="fixed",k.top=k.opacity="0",k.left="-999em",P.setAttribute("aria-hidden","true"),P.value=B,P.readOnly=!0,this._document.body.appendChild(P)}copy(){const B=this._textarea;let O=!1;try{if(B){const P=this._document.activeElement;B.select(),B.setSelectionRange(0,B.value.length),O=this._document.execCommand("copy"),P&&P.focus()}}catch{}return O}destroy(){const B=this._textarea;B&&(B.remove(),this._textarea=void 0)}}let v=(()=>{class w{constructor(O){this._document=O}copy(O){const P=this.beginCopy(O),k=P.copy();return P.destroy(),k}beginCopy(O){return new c(O,this._document)}}return w.\u0275fac=function(O){return new(O||w)(a.LFG(i.K0))},w.\u0275prov=a.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"}),w})();const b=new a.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let h=(()=>{class w{constructor(O,P,k){this._clipboard=O,this._ngZone=P,this.text="",this.attempts=1,this.copied=new a.vpe,this._pending=new Set,k&&null!=k.attempts&&(this.attempts=k.attempts)}copy(O=this.attempts){if(O>1){let P=O;const k=this._clipboard.beginCopy(this.text);this._pending.add(k);const F=()=>{const z=k.copy();z||!--P||this._destroyed?(this._currentTimeout=null,this._pending.delete(k),k.destroy(),this.copied.emit(z)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(F,1))};F()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(O=>O.destroy()),this._pending.clear(),this._destroyed=!0}}return w.\u0275fac=function(O){return new(O||w)(a.Y36(v),a.Y36(a.R0b),a.Y36(b,8))},w.\u0275dir=a.lG2({type:w,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(O,P){1&O&&a.NdJ("click",function(){return P.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),w})(),g=(()=>{class w{}return w.\u0275fac=function(O){return new(O||w)},w.\u0275mod=a.oAB({type:w}),w.\u0275inj=a.cJS({}),w})()},1281:(Ct,ke,u)=>{"use strict";u.d(ke,{Eq:()=>b,HM:()=>h,Ig:()=>a,fI:()=>g,su:()=>c,t6:()=>v});var i=u(4650);function a(B){return null!=B&&"false"!=`${B}`}function c(B,O=0){return v(B)?Number(B):O}function v(B){return!isNaN(parseFloat(B))&&!isNaN(Number(B))}function b(B){return Array.isArray(B)?B:[B]}function h(B){return null==B?"":"string"==typeof B?B:`${B}px`}function g(B){return B instanceof i.SBq?B.nativeElement:B}},5017:(Ct,ke,u)=>{"use strict";u.d(ke,{A8:()=>O,Ov:()=>w,Z9:()=>v,eX:()=>g,k:()=>P,o2:()=>c,yy:()=>h});var i=u(8929),a=u(4650);class c{}function v(k){return k&&"function"==typeof k.connect}class h{applyChanges(F,z,ae,we,ue){F.forEachOperation((le,ge,W)=>{let ie,he;if(null==le.previousIndex){const se=ae(le,ge,W);ie=z.createEmbeddedView(se.templateRef,se.context,se.index),he=1}else null==W?(z.remove(ge),he=3):(ie=z.get(ge),z.move(ie,W),he=2);ue&&ue({context:ie?.context,operation:he,record:le})})}detach(){}}class g{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(F,z,ae,we,ue){F.forEachOperation((le,ge,W)=>{let ie,he;null==le.previousIndex?(ie=this._insertView(()=>ae(le,ge,W),W,z,we(le)),he=ie?1:0):null==W?(this._detachAndCacheView(ge,z),he=3):(ie=this._moveView(ge,W,z,we(le)),he=2),ue&&ue({context:ie?.context,operation:he,record:le})})}detach(){for(const F of this._viewCache)F.destroy();this._viewCache=[]}_insertView(F,z,ae,we){const ue=this._insertViewFromCache(z,ae);if(ue)return void(ue.context.$implicit=we);const le=F();return ae.createEmbeddedView(le.templateRef,le.context,le.index)}_detachAndCacheView(F,z){const ae=z.detach(F);this._maybeCacheView(ae,z)}_moveView(F,z,ae,we){const ue=ae.get(F);return ae.move(ue,z),ue.context.$implicit=we,ue}_maybeCacheView(F,z){if(this._viewCache.lengththis._markSelected(ue)):this._markSelected(z[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...F){this._verifyValueAssignment(F),F.forEach(ae=>this._markSelected(ae));const z=this._hasQueuedChanges();return this._emitChangeEvent(),z}deselect(...F){this._verifyValueAssignment(F),F.forEach(ae=>this._unmarkSelected(ae));const z=this._hasQueuedChanges();return this._emitChangeEvent(),z}setSelection(...F){this._verifyValueAssignment(F);const z=this.selected,ae=new Set(F);F.forEach(ue=>this._markSelected(ue)),z.filter(ue=>!ae.has(ue)).forEach(ue=>this._unmarkSelected(ue));const we=this._hasQueuedChanges();return this._emitChangeEvent(),we}toggle(F){return this.isSelected(F)?this.deselect(F):this.select(F)}clear(F=!0){this._unmarkAll();const z=this._hasQueuedChanges();return F&&this._emitChangeEvent(),z}isSelected(F){if(this.compareWith){for(const z of this._selection)if(this.compareWith(z,F))return!0;return!1}return this._selection.has(F)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(F){this._multiple&&this.selected&&this._selected.sort(F)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(F){this.isSelected(F)||(this._multiple||this._unmarkAll(),this.isSelected(F)||this._selection.add(F),this._emitChanges&&this._selectedToEmit.push(F))}_unmarkSelected(F){this.isSelected(F)&&(this._selection.delete(F),this._emitChanges&&this._deselectedToEmit.push(F))}_unmarkAll(){this.isEmpty()||this._selection.forEach(F=>this._unmarkSelected(F))}_verifyValueAssignment(F){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let O=(()=>{class k{constructor(){this._listeners=[]}notify(z,ae){for(let we of this._listeners)we(z,ae)}listen(z){return this._listeners.push(z),()=>{this._listeners=this._listeners.filter(ae=>z!==ae)}}ngOnDestroy(){this._listeners=[]}}return k.\u0275fac=function(z){return new(z||k)},k.\u0275prov=a.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})();const P=new a.OlP("_ViewRepeater")},9521:(Ct,ke,u)=>{"use strict";u.d(ke,{A:()=>oe,JH:()=>W,JU:()=>h,K5:()=>b,Ku:()=>F,LH:()=>le,L_:()=>k,MW:()=>T,Mf:()=>c,SV:()=>ge,Sd:()=>we,VM:()=>z,Vb:()=>Pi,Z:()=>_,ZH:()=>a,aO:()=>Yt,b2:()=>Ln,hY:()=>P,jx:()=>g,oh:()=>ue,uR:()=>ae,xE:()=>Ge,yY:()=>Me,zL:()=>w});const a=8,c=9,b=13,h=16,g=17,w=18,P=27,k=32,F=33,z=34,ae=35,we=36,ue=37,le=38,ge=39,W=40,Me=46,Ge=48,Yt=57,oe=65,_=90,T=91,Ln=224;function Pi(Xn,...Ci){return Ci.length?Ci.some(zi=>Xn[zi]):Xn.altKey||Xn.shiftKey||Xn.ctrlKey||Xn.metaKey}},2289:(Ct,ke,u)=>{"use strict";u.d(ke,{Yg:()=>W,u3:()=>he,xu:()=>z});var i=u(4650),a=u(1281),c=u(8929),v=u(3426),b=u(1221),h=u(6498),g=u(2986),w=u(1307),B=u(13),O=u(4850),P=u(1059),k=u(7625),F=u(3353);let z=(()=>{class se{}return se.\u0275fac=function(Ge){return new(Ge||se)},se.\u0275mod=i.oAB({type:se}),se.\u0275inj=i.cJS({}),se})();const ae=new Set;let we,ue=(()=>{class se{constructor(Ge){this._platform=Ge,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ge}matchMedia(Ge){return(this._platform.WEBKIT||this._platform.BLINK)&&function le(se){if(!ae.has(se))try{we||(we=document.createElement("style"),we.setAttribute("type","text/css"),document.head.appendChild(we)),we.sheet&&(we.sheet.insertRule(`@media ${se} {body{ }}`,0),ae.add(se))}catch(Me){console.error(Me)}}(Ge),this._matchMedia(Ge)}}return se.\u0275fac=function(Ge){return new(Ge||se)(i.LFG(F.t4))},se.\u0275prov=i.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"}),se})();function ge(se){return{matches:"all"===se||""===se,media:se,addListener:()=>{},removeListener:()=>{}}}let W=(()=>{class se{constructor(Ge,it){this._mediaMatcher=Ge,this._zone=it,this._queries=new Map,this._destroySubject=new c.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(Ge){return ie((0,a.Eq)(Ge)).some(Ke=>this._registerQuery(Ke).mql.matches)}observe(Ge){const Ke=ie((0,a.Eq)(Ge)).map(me=>this._registerQuery(me).observable);let tt=(0,v.aj)(Ke);return tt=(0,b.z)(tt.pipe((0,g.q)(1)),tt.pipe((0,w.T)(1),(0,B.b)(0))),tt.pipe((0,O.U)(me=>{const Xe={matches:!1,breakpoints:{}};return me.forEach(({matches:Ae,query:_t})=>{Xe.matches=Xe.matches||Ae,Xe.breakpoints[_t]=Ae}),Xe}))}_registerQuery(Ge){if(this._queries.has(Ge))return this._queries.get(Ge);const it=this._mediaMatcher.matchMedia(Ge),tt={observable:new h.y(me=>{const Xe=Ae=>this._zone.run(()=>me.next(Ae));return it.addListener(Xe),()=>{it.removeListener(Xe)}}).pipe((0,P.O)(it),(0,O.U)(({matches:me})=>({query:Ge,matches:me})),(0,k.R)(this._destroySubject)),mql:it};return this._queries.set(Ge,tt),tt}}return se.\u0275fac=function(Ge){return new(Ge||se)(i.LFG(ue),i.LFG(i.R0b))},se.\u0275prov=i.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"}),se})();function ie(se){return se.map(Me=>Me.split(",")).reduce((Me,Ge)=>Me.concat(Ge)).map(Me=>Me.trim())}const he={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},9643:(Ct,ke,u)=>{"use strict";u.d(ke,{Q8:()=>B,wD:()=>w});var i=u(1281),a=u(4650),c=u(6498),v=u(8929),b=u(13);let h=(()=>{class O{create(k){return typeof MutationObserver>"u"?null:new MutationObserver(k)}}return O.\u0275fac=function(k){return new(k||O)},O.\u0275prov=a.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})(),g=(()=>{class O{constructor(k){this._mutationObserverFactory=k,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((k,F)=>this._cleanupObserver(F))}observe(k){const F=(0,i.fI)(k);return new c.y(z=>{const we=this._observeElement(F).subscribe(z);return()=>{we.unsubscribe(),this._unobserveElement(F)}})}_observeElement(k){if(this._observedElements.has(k))this._observedElements.get(k).count++;else{const F=new v.xQ,z=this._mutationObserverFactory.create(ae=>F.next(ae));z&&z.observe(k,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(k,{observer:z,stream:F,count:1})}return this._observedElements.get(k).stream}_unobserveElement(k){this._observedElements.has(k)&&(this._observedElements.get(k).count--,this._observedElements.get(k).count||this._cleanupObserver(k))}_cleanupObserver(k){if(this._observedElements.has(k)){const{observer:F,stream:z}=this._observedElements.get(k);F&&F.disconnect(),z.complete(),this._observedElements.delete(k)}}}return O.\u0275fac=function(k){return new(k||O)(a.LFG(h))},O.\u0275prov=a.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})(),w=(()=>{class O{constructor(k,F,z){this._contentObserver=k,this._elementRef=F,this._ngZone=z,this.event=new a.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(k){this._disabled=(0,i.Ig)(k),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(k){this._debounce=(0,i.su)(k),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const k=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?k.pipe((0,b.b)(this.debounce)):k).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return O.\u0275fac=function(k){return new(k||O)(a.Y36(g),a.Y36(a.SBq),a.Y36(a.R0b))},O.\u0275dir=a.lG2({type:O,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),O})(),B=(()=>{class O{}return O.\u0275fac=function(k){return new(k||O)},O.\u0275mod=a.oAB({type:O}),O.\u0275inj=a.cJS({providers:[h]}),O})()},8184:(Ct,ke,u)=>{"use strict";u.d(ke,{Iu:()=>Yt,U8:()=>U,X_:()=>Me,Xj:()=>ht,aV:()=>We,pI:()=>Le,wJ:()=>Mt,xu:()=>Q});var i=u(2744),a=u(6895),c=u(4650),v=u(1281),b=u(3353),h=u(445),g=u(4080),w=u(8929),B=u(2654),O=u(6787),P=u(2986),k=u(7625),F=u(4290),z=u(9521);const ae=(0,b.Mq)();class we{constructor(p,m){this._viewportRuler=p,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=m}attach(){}enable(){if(this._canBeEnabled()){const p=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=p.style.left||"",this._previousHTMLStyles.top=p.style.top||"",p.style.left=(0,v.HM)(-this._previousScrollPosition.left),p.style.top=(0,v.HM)(-this._previousScrollPosition.top),p.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const p=this._document.documentElement,j=p.style,de=this._document.body.style,X=j.scrollBehavior||"",H=de.scrollBehavior||"";this._isEnabled=!1,j.left=this._previousHTMLStyles.left,j.top=this._previousHTMLStyles.top,p.classList.remove("cdk-global-scrollblock"),ae&&(j.scrollBehavior=de.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),ae&&(j.scrollBehavior=X,de.scrollBehavior=H)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const m=this._document.body,j=this._viewportRuler.getViewportSize();return m.scrollHeight>j.height||m.scrollWidth>j.width}}class le{constructor(p,m,j,de){this._scrollDispatcher=p,this._ngZone=m,this._viewportRuler=j,this._config=de,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(p){this._overlayRef=p}enable(){if(this._scrollSubscription)return;const p=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=p.subscribe(()=>{const m=this._viewportRuler.getViewportScrollPosition().top;Math.abs(m-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=p.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class ge{enable(){}disable(){}attach(){}}function W(x,p){return p.some(m=>x.bottomm.bottom||x.rightm.right)}function ie(x,p){return p.some(m=>x.topm.bottom||x.leftm.right)}class he{constructor(p,m,j,de){this._scrollDispatcher=p,this._viewportRuler=m,this._ngZone=j,this._config=de,this._scrollSubscription=null}attach(p){this._overlayRef=p}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const m=this._overlayRef.overlayElement.getBoundingClientRect(),{width:j,height:de}=this._viewportRuler.getViewportSize();W(m,[{width:j,height:de,bottom:de,right:j,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let se=(()=>{class x{constructor(m,j,de,X){this._scrollDispatcher=m,this._viewportRuler=j,this._ngZone=de,this.noop=()=>new ge,this.close=H=>new le(this._scrollDispatcher,this._ngZone,this._viewportRuler,H),this.block=()=>new we(this._viewportRuler,this._document),this.reposition=H=>new he(this._scrollDispatcher,this._viewportRuler,this._ngZone,H),this._document=X}}return x.\u0275fac=function(m){return new(m||x)(c.LFG(i.mF),c.LFG(i.rL),c.LFG(c.R0b),c.LFG(a.K0))},x.\u0275prov=c.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"}),x})();class Me{constructor(p){if(this.scrollStrategy=new ge,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,p){const m=Object.keys(p);for(const j of m)void 0!==p[j]&&(this[j]=p[j])}}}class Ke{constructor(p,m){this.connectionPair=p,this.scrollableViewProperties=m}}let Xe=(()=>{class x{constructor(m){this._attachedOverlays=[],this._document=m}ngOnDestroy(){this.detach()}add(m){this.remove(m),this._attachedOverlays.push(m)}remove(m){const j=this._attachedOverlays.indexOf(m);j>-1&&this._attachedOverlays.splice(j,1),0===this._attachedOverlays.length&&this.detach()}}return x.\u0275fac=function(m){return new(m||x)(c.LFG(a.K0))},x.\u0275prov=c.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"}),x})(),Ae=(()=>{class x extends Xe{constructor(m,j){super(m),this._ngZone=j,this._keydownListener=de=>{const X=this._attachedOverlays;for(let H=X.length-1;H>-1;H--)if(X[H]._keydownEvents.observers.length>0){const f=X[H]._keydownEvents;this._ngZone?this._ngZone.run(()=>f.next(de)):f.next(de);break}}}add(m){super.add(m),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return x.\u0275fac=function(m){return new(m||x)(c.LFG(a.K0),c.LFG(c.R0b,8))},x.\u0275prov=c.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"}),x})(),_t=(()=>{class x extends Xe{constructor(m,j,de){super(m),this._platform=j,this._ngZone=de,this._cursorStyleIsSet=!1,this._pointerDownListener=X=>{this._pointerDownEventTarget=(0,b.sA)(X)},this._clickListener=X=>{const H=(0,b.sA)(X),f="click"===X.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:H;this._pointerDownEventTarget=null;const _=this._attachedOverlays.slice();for(let T=_.length-1;T>-1;T--){const ve=_[T];if(ve._outsidePointerEvents.observers.length<1||!ve.hasAttached())continue;if(ve.overlayElement.contains(H)||ve.overlayElement.contains(f))break;const Je=ve._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Je.next(X)):Je.next(X)}}}add(m){if(super.add(m),!this._isAttached){const j=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(j)):this._addEventListeners(j),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=j.style.cursor,j.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const m=this._document.body;m.removeEventListener("pointerdown",this._pointerDownListener,!0),m.removeEventListener("click",this._clickListener,!0),m.removeEventListener("auxclick",this._clickListener,!0),m.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(m.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(m){m.addEventListener("pointerdown",this._pointerDownListener,!0),m.addEventListener("click",this._clickListener,!0),m.addEventListener("auxclick",this._clickListener,!0),m.addEventListener("contextmenu",this._clickListener,!0)}}return x.\u0275fac=function(m){return new(m||x)(c.LFG(a.K0),c.LFG(b.t4),c.LFG(c.R0b,8))},x.\u0275prov=c.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"}),x})(),ht=(()=>{class x{constructor(m,j){this._platform=j,this._document=m}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const m="cdk-overlay-container";if(this._platform.isBrowser||(0,b.Oy)()){const de=this._document.querySelectorAll(`.${m}[platform="server"], .${m}[platform="test"]`);for(let X=0;Xthis._backdropClick.next(Je),this._backdropTransitionendHandler=Je=>{this._disposeBackdrop(Je.target)},this._keydownEvents=new w.xQ,this._outsidePointerEvents=new w.xQ,de.scrollStrategy&&(this._scrollStrategy=de.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=de.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(p){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const m=this._portalOutlet.attach(p);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,P.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof m?.onDestroy&&m.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),m}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const p=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),p}dispose(){const p=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,p&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(p){p!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=p,this.hasAttached()&&(p.attach(this),this.updatePosition()))}updateSize(p){this._config={...this._config,...p},this._updateElementSize()}setDirection(p){this._config={...this._config,direction:p},this._updateElementDirection()}addPanelClass(p){this._pane&&this._toggleClasses(this._pane,p,!0)}removePanelClass(p){this._pane&&this._toggleClasses(this._pane,p,!1)}getDirection(){const p=this._config.direction;return p?"string"==typeof p?p:p.value:"ltr"}updateScrollStrategy(p){p!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=p,this.hasAttached()&&(p.attach(this),p.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const p=this._pane.style;p.width=(0,v.HM)(this._config.width),p.height=(0,v.HM)(this._config.height),p.minWidth=(0,v.HM)(this._config.minWidth),p.minHeight=(0,v.HM)(this._config.minHeight),p.maxWidth=(0,v.HM)(this._config.maxWidth),p.maxHeight=(0,v.HM)(this._config.maxHeight)}_togglePointerEvents(p){this._pane.style.pointerEvents=p?"":"none"}_attachBackdrop(){const p="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(p)})}):this._backdropElement.classList.add(p)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const p=this._backdropElement;if(p){if(this._animationsDisabled)return void this._disposeBackdrop(p);p.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{p.addEventListener("transitionend",this._backdropTransitionendHandler)}),p.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(p)},500))}}_toggleClasses(p,m,j){const de=(0,v.Eq)(m||[]).filter(X=>!!X);de.length&&(j?p.classList.add(...de):p.classList.remove(...de))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const p=this._ngZone.onStable.pipe((0,k.R)((0,O.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),p.unsubscribe())})})}_disposeScrollStrategy(){const p=this._scrollStrategy;p&&(p.disable(),p.detach&&p.detach())}_disposeBackdrop(p){p&&(p.removeEventListener("click",this._backdropClickHandler),p.removeEventListener("transitionend",this._backdropTransitionendHandler),p.remove(),this._backdropElement===p&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Dt="cdk-overlay-connected-position-bounding-box",jt=/([A-Za-z%]+)$/;class V{constructor(p,m,j,de,X){this._viewportRuler=m,this._document=j,this._platform=de,this._overlayContainer=X,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new w.xQ,this._resizeSubscription=B.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(p)}get positions(){return this._preferredPositions}attach(p){this._validatePositions(),p.hostElement.classList.add(Dt),this._overlayRef=p,this._boundingBox=p.hostElement,this._pane=p.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const p=this._originRect,m=this._overlayRect,j=this._viewportRect,de=this._containerRect,X=[];let H;for(let f of this._preferredPositions){let _=this._getOriginPoint(p,de,f),T=this._getOverlayPoint(_,m,f),ve=this._getOverlayFit(T,m,j,f);if(ve.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(f,_);this._canFitWithFlexibleDimensions(ve,T,j)?X.push({position:f,origin:_,overlayRect:m,boundingBoxRect:this._calculateBoundingBoxRect(_,f)}):(!H||H.overlayFit.visibleArea_&&(_=ve,f=T)}return this._isPushed=!1,void this._applyPosition(f.position,f.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(H.position,H.originPoint);this._applyPosition(H.position,H.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ee(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Dt),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const p=this._lastPosition;if(p){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const m=this._getOriginPoint(this._originRect,this._containerRect,p);this._applyPosition(p,m)}else this.apply()}withScrollableContainers(p){return this._scrollables=p,this}withPositions(p){return this._preferredPositions=p,-1===p.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(p){return this._viewportMargin=p,this}withFlexibleDimensions(p=!0){return this._hasFlexibleDimensions=p,this}withGrowAfterOpen(p=!0){return this._growAfterOpen=p,this}withPush(p=!0){return this._canPush=p,this}withLockedPosition(p=!0){return this._positionLocked=p,this}setOrigin(p){return this._origin=p,this}withDefaultOffsetX(p){return this._offsetX=p,this}withDefaultOffsetY(p){return this._offsetY=p,this}withTransformOriginOn(p){return this._transformOriginSelector=p,this}_getOriginPoint(p,m,j){let de,X;if("center"==j.originX)de=p.left+p.width/2;else{const H=this._isRtl()?p.right:p.left,f=this._isRtl()?p.left:p.right;de="start"==j.originX?H:f}return m.left<0&&(de-=m.left),X="center"==j.originY?p.top+p.height/2:"top"==j.originY?p.top:p.bottom,m.top<0&&(X-=m.top),{x:de,y:X}}_getOverlayPoint(p,m,j){let de,X;return de="center"==j.overlayX?-m.width/2:"start"===j.overlayX?this._isRtl()?-m.width:0:this._isRtl()?0:-m.width,X="center"==j.overlayY?-m.height/2:"top"==j.overlayY?0:-m.height,{x:p.x+de,y:p.y+X}}_getOverlayFit(p,m,j,de){const X=_e(m);let{x:H,y:f}=p,_=this._getOffset(de,"x"),T=this._getOffset(de,"y");_&&(H+=_),T&&(f+=T);let $e=0-f,St=f+X.height-j.height,dt=this._subtractOverflows(X.width,0-H,H+X.width-j.width),Et=this._subtractOverflows(X.height,$e,St),ye=dt*Et;return{visibleArea:ye,isCompletelyWithinViewport:X.width*X.height===ye,fitsInViewportVertically:Et===X.height,fitsInViewportHorizontally:dt==X.width}}_canFitWithFlexibleDimensions(p,m,j){if(this._hasFlexibleDimensions){const de=j.bottom-m.y,X=j.right-m.x,H=oe(this._overlayRef.getConfig().minHeight),f=oe(this._overlayRef.getConfig().minWidth),T=p.fitsInViewportHorizontally||null!=f&&f<=X;return(p.fitsInViewportVertically||null!=H&&H<=de)&&T}return!1}_pushOverlayOnScreen(p,m,j){if(this._previousPushAmount&&this._positionLocked)return{x:p.x+this._previousPushAmount.x,y:p.y+this._previousPushAmount.y};const de=_e(m),X=this._viewportRect,H=Math.max(p.x+de.width-X.width,0),f=Math.max(p.y+de.height-X.height,0),_=Math.max(X.top-j.top-p.y,0),T=Math.max(X.left-j.left-p.x,0);let ve=0,Je=0;return ve=de.width<=X.width?T||-H:p.xdt&&!this._isInitialRender&&!this._growAfterOpen&&(H=p.y-dt/2)}if("end"===m.overlayX&&!de||"start"===m.overlayX&&de)$e=j.width-p.x+this._viewportMargin,ve=p.x-this._viewportMargin;else if("start"===m.overlayX&&!de||"end"===m.overlayX&&de)Je=p.x,ve=j.right-p.x;else{const St=Math.min(j.right-p.x+j.left,p.x),dt=this._lastBoundingBoxSize.width;ve=2*St,Je=p.x-St,ve>dt&&!this._isInitialRender&&!this._growAfterOpen&&(Je=p.x-dt/2)}return{top:H,left:Je,bottom:f,right:$e,width:ve,height:X}}_setBoundingBoxStyles(p,m){const j=this._calculateBoundingBoxRect(p,m);!this._isInitialRender&&!this._growAfterOpen&&(j.height=Math.min(j.height,this._lastBoundingBoxSize.height),j.width=Math.min(j.width,this._lastBoundingBoxSize.width));const de={};if(this._hasExactPosition())de.top=de.left="0",de.bottom=de.right=de.maxHeight=de.maxWidth="",de.width=de.height="100%";else{const X=this._overlayRef.getConfig().maxHeight,H=this._overlayRef.getConfig().maxWidth;de.height=(0,v.HM)(j.height),de.top=(0,v.HM)(j.top),de.bottom=(0,v.HM)(j.bottom),de.width=(0,v.HM)(j.width),de.left=(0,v.HM)(j.left),de.right=(0,v.HM)(j.right),de.alignItems="center"===m.overlayX?"center":"end"===m.overlayX?"flex-end":"flex-start",de.justifyContent="center"===m.overlayY?"center":"bottom"===m.overlayY?"flex-end":"flex-start",X&&(de.maxHeight=(0,v.HM)(X)),H&&(de.maxWidth=(0,v.HM)(H))}this._lastBoundingBoxSize=j,Ee(this._boundingBox.style,de)}_resetBoundingBoxStyles(){Ee(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ee(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(p,m){const j={},de=this._hasExactPosition(),X=this._hasFlexibleDimensions,H=this._overlayRef.getConfig();if(de){const ve=this._viewportRuler.getViewportScrollPosition();Ee(j,this._getExactOverlayY(m,p,ve)),Ee(j,this._getExactOverlayX(m,p,ve))}else j.position="static";let f="",_=this._getOffset(m,"x"),T=this._getOffset(m,"y");_&&(f+=`translateX(${_}px) `),T&&(f+=`translateY(${T}px)`),j.transform=f.trim(),H.maxHeight&&(de?j.maxHeight=(0,v.HM)(H.maxHeight):X&&(j.maxHeight="")),H.maxWidth&&(de?j.maxWidth=(0,v.HM)(H.maxWidth):X&&(j.maxWidth="")),Ee(this._pane.style,j)}_getExactOverlayY(p,m,j){let de={top:"",bottom:""},X=this._getOverlayPoint(m,this._overlayRect,p);return this._isPushed&&(X=this._pushOverlayOnScreen(X,this._overlayRect,j)),"bottom"===p.overlayY?de.bottom=this._document.documentElement.clientHeight-(X.y+this._overlayRect.height)+"px":de.top=(0,v.HM)(X.y),de}_getExactOverlayX(p,m,j){let H,de={left:"",right:""},X=this._getOverlayPoint(m,this._overlayRect,p);return this._isPushed&&(X=this._pushOverlayOnScreen(X,this._overlayRect,j)),H=this._isRtl()?"end"===p.overlayX?"left":"right":"end"===p.overlayX?"right":"left","right"===H?de.right=this._document.documentElement.clientWidth-(X.x+this._overlayRect.width)+"px":de.left=(0,v.HM)(X.x),de}_getScrollVisibility(){const p=this._getOriginRect(),m=this._pane.getBoundingClientRect(),j=this._scrollables.map(de=>de.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:ie(p,j),isOriginOutsideView:W(p,j),isOverlayClipped:ie(m,j),isOverlayOutsideView:W(m,j)}}_subtractOverflows(p,...m){return m.reduce((j,de)=>j-Math.max(de,0),p)}_getNarrowedViewportRect(){const p=this._document.documentElement.clientWidth,m=this._document.documentElement.clientHeight,j=this._viewportRuler.getViewportScrollPosition();return{top:j.top+this._viewportMargin,left:j.left+this._viewportMargin,right:j.left+p-this._viewportMargin,bottom:j.top+m-this._viewportMargin,width:p-2*this._viewportMargin,height:m-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(p,m){return"x"===m?p.offsetX??this._offsetX:p.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(p){this._pane&&(0,v.Eq)(p).forEach(m=>{""!==m&&-1===this._appliedPanelClasses.indexOf(m)&&(this._appliedPanelClasses.push(m),this._pane.classList.add(m))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(p=>{this._pane.classList.remove(p)}),this._appliedPanelClasses=[])}_getOriginRect(){const p=this._origin;if(p instanceof c.SBq)return p.nativeElement.getBoundingClientRect();if(p instanceof Element)return p.getBoundingClientRect();const m=p.width||0,j=p.height||0;return{top:p.y,bottom:p.y+j,left:p.x,right:p.x+m,height:j,width:m}}}function Ee(x,p){for(let m in p)p.hasOwnProperty(m)&&(x[m]=p[m]);return x}function oe(x){if("number"!=typeof x&&null!=x){const[p,m]=x.split(jt);return m&&"px"!==m?null:parseFloat(p)}return x||null}function _e(x){return{top:Math.floor(x.top),right:Math.floor(x.right),bottom:Math.floor(x.bottom),left:Math.floor(x.left),width:Math.floor(x.width),height:Math.floor(x.height)}}const be="cdk-global-overlay-wrapper";class et{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(p){const m=p.getConfig();this._overlayRef=p,this._width&&!m.width&&p.updateSize({width:this._width}),this._height&&!m.height&&p.updateSize({height:this._height}),p.hostElement.classList.add(be),this._isDisposed=!1}top(p=""){return this._bottomOffset="",this._topOffset=p,this._alignItems="flex-start",this}left(p=""){return this._xOffset=p,this._xPosition="left",this}bottom(p=""){return this._topOffset="",this._bottomOffset=p,this._alignItems="flex-end",this}right(p=""){return this._xOffset=p,this._xPosition="right",this}start(p=""){return this._xOffset=p,this._xPosition="start",this}end(p=""){return this._xOffset=p,this._xPosition="end",this}width(p=""){return this._overlayRef?this._overlayRef.updateSize({width:p}):this._width=p,this}height(p=""){return this._overlayRef?this._overlayRef.updateSize({height:p}):this._height=p,this}centerHorizontally(p=""){return this.left(p),this._xPosition="center",this}centerVertically(p=""){return this.top(p),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const p=this._overlayRef.overlayElement.style,m=this._overlayRef.hostElement.style,j=this._overlayRef.getConfig(),{width:de,height:X,maxWidth:H,maxHeight:f}=j,_=!("100%"!==de&&"100vw"!==de||H&&"100%"!==H&&"100vw"!==H),T=!("100%"!==X&&"100vh"!==X||f&&"100%"!==f&&"100vh"!==f),ve=this._xPosition,Je=this._xOffset,$e="rtl"===this._overlayRef.getConfig().direction;let St="",dt="",Et="";_?Et="flex-start":"center"===ve?(Et="center",$e?dt=Je:St=Je):$e?"left"===ve||"end"===ve?(Et="flex-end",St=Je):("right"===ve||"start"===ve)&&(Et="flex-start",dt=Je):"left"===ve||"start"===ve?(Et="flex-start",St=Je):("right"===ve||"end"===ve)&&(Et="flex-end",dt=Je),p.position=this._cssPosition,p.marginLeft=_?"0":St,p.marginTop=T?"0":this._topOffset,p.marginBottom=this._bottomOffset,p.marginRight=_?"0":dt,m.justifyContent=Et,m.alignItems=T?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const p=this._overlayRef.overlayElement.style,m=this._overlayRef.hostElement,j=m.style;m.classList.remove(be),j.justifyContent=j.alignItems=p.marginTop=p.marginBottom=p.marginLeft=p.marginRight=p.position="",this._overlayRef=null,this._isDisposed=!0}}let Mt=(()=>{class x{constructor(m,j,de,X){this._viewportRuler=m,this._document=j,this._platform=de,this._overlayContainer=X}global(){return new et}flexibleConnectedTo(m){return new V(m,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return x.\u0275fac=function(m){return new(m||x)(c.LFG(i.rL),c.LFG(a.K0),c.LFG(b.t4),c.LFG(ht))},x.\u0275prov=c.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"}),x})(),gt=0,We=(()=>{class x{constructor(m,j,de,X,H,f,_,T,ve,Je,$e,St){this.scrollStrategies=m,this._overlayContainer=j,this._componentFactoryResolver=de,this._positionBuilder=X,this._keyboardDispatcher=H,this._injector=f,this._ngZone=_,this._document=T,this._directionality=ve,this._location=Je,this._outsideClickDispatcher=$e,this._animationsModuleType=St}create(m){const j=this._createHostElement(),de=this._createPaneElement(j),X=this._createPortalOutlet(de),H=new Me(m);return H.direction=H.direction||this._directionality.value,new Yt(X,j,de,H,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(m){const j=this._document.createElement("div");return j.id="cdk-overlay-"+gt++,j.classList.add("cdk-overlay-pane"),m.appendChild(j),j}_createHostElement(){const m=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(m),m}_createPortalOutlet(m){return this._appRef||(this._appRef=this._injector.get(c.z2F)),new g.u0(m,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return x.\u0275fac=function(m){return new(m||x)(c.LFG(se),c.LFG(ht),c.LFG(c._Vd),c.LFG(Mt),c.LFG(Ae),c.LFG(c.zs3),c.LFG(c.R0b),c.LFG(a.K0),c.LFG(h.Is),c.LFG(a.Ye),c.LFG(_t),c.LFG(c.QbO,8))},x.\u0275prov=c.Yz7({token:x,factory:x.\u0275fac}),x})();const wt=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],nt=new c.OlP("cdk-connected-overlay-scroll-strategy");let Q=(()=>{class x{constructor(m){this.elementRef=m}}return x.\u0275fac=function(m){return new(m||x)(c.Y36(c.SBq))},x.\u0275dir=c.lG2({type:x,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),x})(),Le=(()=>{class x{constructor(m,j,de,X,H){this._overlay=m,this._dir=H,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=B.w.EMPTY,this._attachSubscription=B.w.EMPTY,this._detachSubscription=B.w.EMPTY,this._positionSubscription=B.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new c.vpe,this.positionChange=new c.vpe,this.attach=new c.vpe,this.detach=new c.vpe,this.overlayKeydown=new c.vpe,this.overlayOutsideClick=new c.vpe,this._templatePortal=new g.UE(j,de),this._scrollStrategyFactory=X,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(m){this._offsetX=m,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(m){this._offsetY=m,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(m){this._hasBackdrop=(0,v.Ig)(m)}get lockPosition(){return this._lockPosition}set lockPosition(m){this._lockPosition=(0,v.Ig)(m)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(m){this._flexibleDimensions=(0,v.Ig)(m)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(m){this._growAfterOpen=(0,v.Ig)(m)}get push(){return this._push}set push(m){this._push=(0,v.Ig)(m)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(m){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),m.origin&&this.open&&this._position.apply()),m.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=wt);const m=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=m.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=m.detachments().subscribe(()=>this.detach.emit()),m.keydownEvents().subscribe(j=>{this.overlayKeydown.next(j),j.keyCode===z.hY&&!this.disableClose&&!(0,z.Vb)(j)&&(j.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(j=>{this.overlayOutsideClick.next(j)})}_buildConfig(){const m=this._position=this.positionStrategy||this._createPositionStrategy(),j=new Me({direction:this._dir,positionStrategy:m,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(j.width=this.width),(this.height||0===this.height)&&(j.height=this.height),(this.minWidth||0===this.minWidth)&&(j.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(j.minHeight=this.minHeight),this.backdropClass&&(j.backdropClass=this.backdropClass),this.panelClass&&(j.panelClass=this.panelClass),j}_updatePositionStrategy(m){const j=this.positions.map(de=>({originX:de.originX,originY:de.originY,overlayX:de.overlayX,overlayY:de.overlayY,offsetX:de.offsetX||this.offsetX,offsetY:de.offsetY||this.offsetY,panelClass:de.panelClass||void 0}));return m.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(j).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const m=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(m),m}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Q?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(m=>{this.backdropClick.emit(m)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,F.o)(()=>this.positionChange.observers.length>0)).subscribe(m=>{this.positionChange.emit(m),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return x.\u0275fac=function(m){return new(m||x)(c.Y36(We),c.Y36(c.Rgc),c.Y36(c.s_b),c.Y36(nt),c.Y36(h.Is,8))},x.\u0275dir=c.lG2({type:x,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[c.TTD]}),x})();const R={provide:nt,deps:[We],useFactory:function ee(x){return()=>x.scrollStrategies.reposition()}};let U=(()=>{class x{}return x.\u0275fac=function(m){return new(m||x)},x.\u0275mod=c.oAB({type:x}),x.\u0275inj=c.cJS({providers:[We,R],imports:[h.vT,g.eL,i.Cl,i.Cl]}),x})()},3353:(Ct,ke,u)=>{"use strict";u.d(ke,{Mq:()=>z,Oy:()=>ie,_i:()=>ae,ht:()=>ge,i$:()=>P,kV:()=>le,qK:()=>w,sA:()=>W,t4:()=>v});var i=u(4650),a=u(6895);let c;try{c=typeof Intl<"u"&&Intl.v8BreakIterator}catch{c=!1}let h,v=(()=>{class he{constructor(Me){this._platformId=Me,this.isBrowser=this._platformId?(0,a.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!c)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return he.\u0275fac=function(Me){return new(Me||he)(i.LFG(i.Lbi))},he.\u0275prov=i.Yz7({token:he,factory:he.\u0275fac,providedIn:"root"}),he})();const g=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function w(){if(h)return h;if("object"!=typeof document||!document)return h=new Set(g),h;let he=document.createElement("input");return h=new Set(g.filter(se=>(he.setAttribute("type",se),he.type===se))),h}let B,k,F,we;function P(he){return function O(){if(null==B&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>B=!0}))}finally{B=B||!1}return B}()?he:!!he.capture}function z(){if(null==F){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return F=!1,F;if("scrollBehavior"in document.documentElement.style)F=!0;else{const he=Element.prototype.scrollTo;F=!!he&&!/\{\s*\[native code\]\s*\}/.test(he.toString())}}return F}function ae(){if("object"!=typeof document||!document)return 0;if(null==k){const he=document.createElement("div"),se=he.style;he.dir="rtl",se.width="1px",se.overflow="auto",se.visibility="hidden",se.pointerEvents="none",se.position="absolute";const Me=document.createElement("div"),Ge=Me.style;Ge.width="2px",Ge.height="1px",he.appendChild(Me),document.body.appendChild(he),k=0,0===he.scrollLeft&&(he.scrollLeft=1,k=0===he.scrollLeft?1:2),he.remove()}return k}function le(he){if(function ue(){if(null==we){const he=typeof document<"u"?document.head:null;we=!(!he||!he.createShadowRoot&&!he.attachShadow)}return we}()){const se=he.getRootNode?he.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&se instanceof ShadowRoot)return se}return null}function ge(){let he=typeof document<"u"&&document?document.activeElement:null;for(;he&&he.shadowRoot;){const se=he.shadowRoot.activeElement;if(se===he)break;he=se}return he}function W(he){return he.composedPath?he.composedPath()[0]:he.target}function ie(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},4080:(Ct,ke,u)=>{"use strict";u.d(ke,{C5:()=>O,Pl:()=>ge,UE:()=>P,eL:()=>ie,en:()=>F,u0:()=>ae});var i=u(4650),a=u(6895);class B{attach(Me){return this._attachedHost=Me,Me.attach(this)}detach(){let Me=this._attachedHost;null!=Me&&(this._attachedHost=null,Me.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(Me){this._attachedHost=Me}}class O extends B{constructor(Me,Ge,it,Ke){super(),this.component=Me,this.viewContainerRef=Ge,this.injector=it,this.componentFactoryResolver=Ke}}class P extends B{constructor(Me,Ge,it,Ke){super(),this.templateRef=Me,this.viewContainerRef=Ge,this.context=it,this.injector=Ke}get origin(){return this.templateRef.elementRef}attach(Me,Ge=this.context){return this.context=Ge,super.attach(Me)}detach(){return this.context=void 0,super.detach()}}class k extends B{constructor(Me){super(),this.element=Me instanceof i.SBq?Me.nativeElement:Me}}class F{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(Me){return Me instanceof O?(this._attachedPortal=Me,this.attachComponentPortal(Me)):Me instanceof P?(this._attachedPortal=Me,this.attachTemplatePortal(Me)):this.attachDomPortal&&Me instanceof k?(this._attachedPortal=Me,this.attachDomPortal(Me)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(Me){this._disposeFn=Me}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class ae extends F{constructor(Me,Ge,it,Ke,tt){super(),this.outletElement=Me,this._componentFactoryResolver=Ge,this._appRef=it,this._defaultInjector=Ke,this.attachDomPortal=me=>{const Xe=me.element,Ae=this._document.createComment("dom-portal");Xe.parentNode.insertBefore(Ae,Xe),this.outletElement.appendChild(Xe),this._attachedPortal=me,super.setDisposeFn(()=>{Ae.parentNode&&Ae.parentNode.replaceChild(Xe,Ae)})},this._document=tt}attachComponentPortal(Me){const it=(Me.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Me.component);let Ke;return Me.viewContainerRef?(Ke=Me.viewContainerRef.createComponent(it,Me.viewContainerRef.length,Me.injector||Me.viewContainerRef.injector),this.setDisposeFn(()=>Ke.destroy())):(Ke=it.create(Me.injector||this._defaultInjector||i.zs3.NULL),this._appRef.attachView(Ke.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(Ke.hostView),Ke.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(Ke)),this._attachedPortal=Me,Ke}attachTemplatePortal(Me){let Ge=Me.viewContainerRef,it=Ge.createEmbeddedView(Me.templateRef,Me.context,{injector:Me.injector});return it.rootNodes.forEach(Ke=>this.outletElement.appendChild(Ke)),it.detectChanges(),this.setDisposeFn(()=>{let Ke=Ge.indexOf(it);-1!==Ke&&Ge.remove(Ke)}),this._attachedPortal=Me,it}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(Me){return Me.hostView.rootNodes[0]}}let ge=(()=>{class se extends F{constructor(Ge,it,Ke){super(),this._componentFactoryResolver=Ge,this._viewContainerRef=it,this._isInitialized=!1,this.attached=new i.vpe,this.attachDomPortal=tt=>{const me=tt.element,Xe=this._document.createComment("dom-portal");tt.setAttachedHost(this),me.parentNode.insertBefore(Xe,me),this._getRootNode().appendChild(me),this._attachedPortal=tt,super.setDisposeFn(()=>{Xe.parentNode&&Xe.parentNode.replaceChild(me,Xe)})},this._document=Ke}get portal(){return this._attachedPortal}set portal(Ge){this.hasAttached()&&!Ge&&!this._isInitialized||(this.hasAttached()&&super.detach(),Ge&&super.attach(Ge),this._attachedPortal=Ge||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(Ge){Ge.setAttachedHost(this);const it=null!=Ge.viewContainerRef?Ge.viewContainerRef:this._viewContainerRef,tt=(Ge.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Ge.component),me=it.createComponent(tt,it.length,Ge.injector||it.injector);return it!==this._viewContainerRef&&this._getRootNode().appendChild(me.hostView.rootNodes[0]),super.setDisposeFn(()=>me.destroy()),this._attachedPortal=Ge,this._attachedRef=me,this.attached.emit(me),me}attachTemplatePortal(Ge){Ge.setAttachedHost(this);const it=this._viewContainerRef.createEmbeddedView(Ge.templateRef,Ge.context,{injector:Ge.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=Ge,this._attachedRef=it,this.attached.emit(it),it}_getRootNode(){const Ge=this._viewContainerRef.element.nativeElement;return Ge.nodeType===Ge.ELEMENT_NODE?Ge:Ge.parentNode}}return se.\u0275fac=function(Ge){return new(Ge||se)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36(a.K0))},se.\u0275dir=i.lG2({type:se,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.qOj]}),se})(),ie=(()=>{class se{}return se.\u0275fac=function(Ge){return new(Ge||se)},se.\u0275mod=i.oAB({type:se}),se.\u0275inj=i.cJS({}),se})()},2744:(Ct,ke,u)=>{"use strict";u.d(ke,{PQ:()=>Yt,ZD:()=>gt,mF:()=>ht,Cl:()=>We,rL:()=>jt});var i=u(1281),a=u(4650),c=u(6686),b=u(2268);new class h extends b.v{flush(nt){this.active=!0,this.scheduled=void 0;const{actions:Q}=this;let Le,ee=-1,R=Q.length;nt=nt||Q.shift();do{if(Le=nt.execute(nt.state,nt.delay))break}while(++ee0?super.requestAsyncId(nt,Q,Le):(nt.actions.push(this),nt.scheduled||(nt.scheduled=requestAnimationFrame(()=>nt.flush(null))))}recycleAsyncId(nt,Q,Le=0){if(null!==Le&&Le>0||null===Le&&this.delay>0)return super.recycleAsyncId(nt,Q,Le);0===nt.actions.length&&(cancelAnimationFrame(Q),nt.scheduled=void 0)}});var B=u(8929),O=u(1086),P=u(6498),k=u(3753),z=(u(8139),u(353)),ae=u(1177);class ue{constructor(nt){this.durationSelector=nt}call(nt,Q){return Q.subscribe(new le(nt,this.durationSelector))}}class le extends ae.Ds{constructor(nt,Q){super(nt),this.durationSelector=Q,this.hasValue=!1}_next(nt){if(this.value=nt,this.hasValue=!0,!this.throttled){let Q;try{const{durationSelector:ee}=this;Q=ee(nt)}catch(ee){return this.destination.error(ee)}const Le=(0,ae.ft)(Q,new ae.IY(this));!Le||Le.closed?this.clearThrottle():this.add(this.throttled=Le)}}clearThrottle(){const{value:nt,hasValue:Q,throttled:Le}=this;Le&&(this.remove(Le),this.throttled=void 0,Le.unsubscribe()),Q&&(this.value=void 0,this.hasValue=!1,this.destination.next(nt))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var ge=u(7739);function W(wt,nt=z.P){return function we(wt){return function(Q){return Q.lift(new ue(wt))}}(()=>(0,ge.H)(wt,nt))}var ie=u(2198),he=u(7625),se=u(3353),Me=u(6895),Ge=u(445);let ht=(()=>{class wt{constructor(Q,Le,ee){this._ngZone=Q,this._platform=Le,this._scrolled=new B.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=ee}register(Q){this.scrollContainers.has(Q)||this.scrollContainers.set(Q,Q.elementScrolled().subscribe(()=>this._scrolled.next(Q)))}deregister(Q){const Le=this.scrollContainers.get(Q);Le&&(Le.unsubscribe(),this.scrollContainers.delete(Q))}scrolled(Q=20){return this._platform.isBrowser?new P.y(Le=>{this._globalSubscription||this._addGlobalListener();const ee=Q>0?this._scrolled.pipe(W(Q)).subscribe(Le):this._scrolled.subscribe(Le);return this._scrolledCount++,()=>{ee.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,O.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((Q,Le)=>this.deregister(Le)),this._scrolled.complete()}ancestorScrolled(Q,Le){const ee=this.getAncestorScrollContainers(Q);return this.scrolled(Le).pipe((0,ie.h)(R=>!R||ee.indexOf(R)>-1))}getAncestorScrollContainers(Q){const Le=[];return this.scrollContainers.forEach((ee,R)=>{this._scrollableContainsElement(R,Q)&&Le.push(R)}),Le}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(Q,Le){let ee=(0,i.fI)(Le),R=Q.getElementRef().nativeElement;do{if(ee==R)return!0}while(ee=ee.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const Q=this._getWindow();return(0,k.R)(Q.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return wt.\u0275fac=function(Q){return new(Q||wt)(a.LFG(a.R0b),a.LFG(se.t4),a.LFG(Me.K0,8))},wt.\u0275prov=a.Yz7({token:wt,factory:wt.\u0275fac,providedIn:"root"}),wt})(),Yt=(()=>{class wt{constructor(Q,Le,ee,R){this.elementRef=Q,this.scrollDispatcher=Le,this.ngZone=ee,this.dir=R,this._destroyed=new B.xQ,this._elementScrolled=new P.y(U=>this.ngZone.runOutsideAngular(()=>(0,k.R)(this.elementRef.nativeElement,"scroll").pipe((0,he.R)(this._destroyed)).subscribe(U)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(Q){const Le=this.elementRef.nativeElement,ee=this.dir&&"rtl"==this.dir.value;null==Q.left&&(Q.left=ee?Q.end:Q.start),null==Q.right&&(Q.right=ee?Q.start:Q.end),null!=Q.bottom&&(Q.top=Le.scrollHeight-Le.clientHeight-Q.bottom),ee&&0!=(0,se._i)()?(null!=Q.left&&(Q.right=Le.scrollWidth-Le.clientWidth-Q.left),2==(0,se._i)()?Q.left=Q.right:1==(0,se._i)()&&(Q.left=Q.right?-Q.right:Q.right)):null!=Q.right&&(Q.left=Le.scrollWidth-Le.clientWidth-Q.right),this._applyScrollToOptions(Q)}_applyScrollToOptions(Q){const Le=this.elementRef.nativeElement;(0,se.Mq)()?Le.scrollTo(Q):(null!=Q.top&&(Le.scrollTop=Q.top),null!=Q.left&&(Le.scrollLeft=Q.left))}measureScrollOffset(Q){const Le="left",R=this.elementRef.nativeElement;if("top"==Q)return R.scrollTop;if("bottom"==Q)return R.scrollHeight-R.clientHeight-R.scrollTop;const U=this.dir&&"rtl"==this.dir.value;return"start"==Q?Q=U?"right":Le:"end"==Q&&(Q=U?Le:"right"),U&&2==(0,se._i)()?Q==Le?R.scrollWidth-R.clientWidth-R.scrollLeft:R.scrollLeft:U&&1==(0,se._i)()?Q==Le?R.scrollLeft+R.scrollWidth-R.clientWidth:-R.scrollLeft:Q==Le?R.scrollLeft:R.scrollWidth-R.clientWidth-R.scrollLeft}}return wt.\u0275fac=function(Q){return new(Q||wt)(a.Y36(a.SBq),a.Y36(ht),a.Y36(a.R0b),a.Y36(Ge.Is,8))},wt.\u0275dir=a.lG2({type:wt,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),wt})(),jt=(()=>{class wt{constructor(Q,Le,ee){this._platform=Q,this._change=new B.xQ,this._changeListener=R=>{this._change.next(R)},this._document=ee,Le.runOutsideAngular(()=>{if(Q.isBrowser){const R=this._getWindow();R.addEventListener("resize",this._changeListener),R.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const Q=this._getWindow();Q.removeEventListener("resize",this._changeListener),Q.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const Q={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),Q}getViewportRect(){const Q=this.getViewportScrollPosition(),{width:Le,height:ee}=this.getViewportSize();return{top:Q.top,left:Q.left,bottom:Q.top+ee,right:Q.left+Le,height:ee,width:Le}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const Q=this._document,Le=this._getWindow(),ee=Q.documentElement,R=ee.getBoundingClientRect();return{top:-R.top||Q.body.scrollTop||Le.scrollY||ee.scrollTop||0,left:-R.left||Q.body.scrollLeft||Le.scrollX||ee.scrollLeft||0}}change(Q=20){return Q>0?this._change.pipe(W(Q)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const Q=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:Q.innerWidth,height:Q.innerHeight}:{width:0,height:0}}}return wt.\u0275fac=function(Q){return new(Q||wt)(a.LFG(se.t4),a.LFG(a.R0b),a.LFG(Me.K0,8))},wt.\u0275prov=a.Yz7({token:wt,factory:wt.\u0275fac,providedIn:"root"}),wt})(),gt=(()=>{class wt{}return wt.\u0275fac=function(Q){return new(Q||wt)},wt.\u0275mod=a.oAB({type:wt}),wt.\u0275inj=a.cJS({}),wt})(),We=(()=>{class wt{}return wt.\u0275fac=function(Q){return new(Q||wt)},wt.\u0275mod=a.oAB({type:wt}),wt.\u0275inj=a.cJS({imports:[Ge.vT,gt,Ge.vT,gt]}),wt})()},6895:(Ct,ke,u)=>{"use strict";u.d(ke,{Do:()=>W,ED:()=>fi,EM:()=>vi,HT:()=>b,JF:()=>Ei,JJ:()=>Oi,K0:()=>g,Mx:()=>ci,NF:()=>Rr,Nd:()=>vr,O5:()=>Xn,Ov:()=>fr,PC:()=>Un,PM:()=>br,RF:()=>Wi,S$:()=>ue,Ts:()=>Yi,V_:()=>O,Ye:()=>ie,b0:()=>ge,bD:()=>wi,ez:()=>lr,mk:()=>An,n9:()=>_i,q:()=>c,sg:()=>si,w_:()=>h});var i=u(4650);let a=null;function c(){return a}function b(J){a||(a=J)}class h{}const g=new i.OlP("DocumentToken");let w=(()=>{class J{historyGo(q){throw new Error("Not implemented")}}return J.\u0275fac=function(q){return new(q||J)},J.\u0275prov=i.Yz7({token:J,factory:function(){return function B(){return(0,i.LFG)(P)}()},providedIn:"platform"}),J})();const O=new i.OlP("Location Initialized");let P=(()=>{class J extends w{constructor(q){super(),this._doc=q,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return c().getBaseHref(this._doc)}onPopState(q){const Qe=c().getGlobalEventTarget(this._doc,"window");return Qe.addEventListener("popstate",q,!1),()=>Qe.removeEventListener("popstate",q)}onHashChange(q){const Qe=c().getGlobalEventTarget(this._doc,"window");return Qe.addEventListener("hashchange",q,!1),()=>Qe.removeEventListener("hashchange",q)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(q){this.location.pathname=q}pushState(q,Qe,kt){k()?this._history.pushState(q,Qe,kt):this.location.hash=kt}replaceState(q,Qe,kt){k()?this._history.replaceState(q,Qe,kt):this.location.hash=kt}forward(){this._history.forward()}back(){this._history.back()}historyGo(q=0){this._history.go(q)}getState(){return this._history.state}}return J.\u0275fac=function(q){return new(q||J)(i.LFG(g))},J.\u0275prov=i.Yz7({token:J,factory:function(){return function F(){return new P((0,i.LFG)(g))}()},providedIn:"platform"}),J})();function k(){return!!window.history.pushState}function z(J,Ne){if(0==J.length)return Ne;if(0==Ne.length)return J;let q=0;return J.endsWith("/")&&q++,Ne.startsWith("/")&&q++,2==q?J+Ne.substring(1):1==q?J+Ne:J+"/"+Ne}function ae(J){const Ne=J.match(/#|\?|$/),q=Ne&&Ne.index||J.length;return J.slice(0,q-("/"===J[q-1]?1:0))+J.slice(q)}function we(J){return J&&"?"!==J[0]?"?"+J:J}let ue=(()=>{class J{historyGo(q){throw new Error("Not implemented")}}return J.\u0275fac=function(q){return new(q||J)},J.\u0275prov=i.Yz7({token:J,factory:function(){return(0,i.f3M)(ge)},providedIn:"root"}),J})();const le=new i.OlP("appBaseHref");let ge=(()=>{class J extends ue{constructor(q,Qe){super(),this._platformLocation=q,this._removeListenerFns=[],this._baseHref=Qe??this._platformLocation.getBaseHrefFromDOM()??(0,i.f3M)(g).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(q){this._removeListenerFns.push(this._platformLocation.onPopState(q),this._platformLocation.onHashChange(q))}getBaseHref(){return this._baseHref}prepareExternalUrl(q){return z(this._baseHref,q)}path(q=!1){const Qe=this._platformLocation.pathname+we(this._platformLocation.search),kt=this._platformLocation.hash;return kt&&q?`${Qe}${kt}`:Qe}pushState(q,Qe,kt,Xt){const Kt=this.prepareExternalUrl(kt+we(Xt));this._platformLocation.pushState(q,Qe,Kt)}replaceState(q,Qe,kt,Xt){const Kt=this.prepareExternalUrl(kt+we(Xt));this._platformLocation.replaceState(q,Qe,Kt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(q=0){this._platformLocation.historyGo?.(q)}}return J.\u0275fac=function(q){return new(q||J)(i.LFG(w),i.LFG(le,8))},J.\u0275prov=i.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})(),W=(()=>{class J extends ue{constructor(q,Qe){super(),this._platformLocation=q,this._baseHref="",this._removeListenerFns=[],null!=Qe&&(this._baseHref=Qe)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(q){this._removeListenerFns.push(this._platformLocation.onPopState(q),this._platformLocation.onHashChange(q))}getBaseHref(){return this._baseHref}path(q=!1){let Qe=this._platformLocation.hash;return null==Qe&&(Qe="#"),Qe.length>0?Qe.substring(1):Qe}prepareExternalUrl(q){const Qe=z(this._baseHref,q);return Qe.length>0?"#"+Qe:Qe}pushState(q,Qe,kt,Xt){let Kt=this.prepareExternalUrl(kt+we(Xt));0==Kt.length&&(Kt=this._platformLocation.pathname),this._platformLocation.pushState(q,Qe,Kt)}replaceState(q,Qe,kt,Xt){let Kt=this.prepareExternalUrl(kt+we(Xt));0==Kt.length&&(Kt=this._platformLocation.pathname),this._platformLocation.replaceState(q,Qe,Kt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(q=0){this._platformLocation.historyGo?.(q)}}return J.\u0275fac=function(q){return new(q||J)(i.LFG(w),i.LFG(le,8))},J.\u0275prov=i.Yz7({token:J,factory:J.\u0275fac}),J})(),ie=(()=>{class J{constructor(q){this._subject=new i.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=q;const Qe=this._locationStrategy.getBaseHref();this._baseHref=ae(Me(Qe)),this._locationStrategy.onPopState(kt=>{this._subject.emit({url:this.path(!0),pop:!0,state:kt.state,type:kt.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(q=!1){return this.normalize(this._locationStrategy.path(q))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(q,Qe=""){return this.path()==this.normalize(q+we(Qe))}normalize(q){return J.stripTrailingSlash(function se(J,Ne){return J&&Ne.startsWith(J)?Ne.substring(J.length):Ne}(this._baseHref,Me(q)))}prepareExternalUrl(q){return q&&"/"!==q[0]&&(q="/"+q),this._locationStrategy.prepareExternalUrl(q)}go(q,Qe="",kt=null){this._locationStrategy.pushState(kt,"",q,Qe),this._notifyUrlChangeListeners(this.prepareExternalUrl(q+we(Qe)),kt)}replaceState(q,Qe="",kt=null){this._locationStrategy.replaceState(kt,"",q,Qe),this._notifyUrlChangeListeners(this.prepareExternalUrl(q+we(Qe)),kt)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(q=0){this._locationStrategy.historyGo?.(q)}onUrlChange(q){return this._urlChangeListeners.push(q),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Qe=>{this._notifyUrlChangeListeners(Qe.url,Qe.state)})),()=>{const Qe=this._urlChangeListeners.indexOf(q);this._urlChangeListeners.splice(Qe,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(q="",Qe){this._urlChangeListeners.forEach(kt=>kt(q,Qe))}subscribe(q,Qe,kt){return this._subject.subscribe({next:q,error:Qe,complete:kt})}}return J.normalizeQueryParams=we,J.joinWithSlash=z,J.stripTrailingSlash=ae,J.\u0275fac=function(q){return new(q||J)(i.LFG(ue))},J.\u0275prov=i.Yz7({token:J,factory:function(){return function he(){return new ie((0,i.LFG)(ue))}()},providedIn:"root"}),J})();function Me(J){return J.replace(/\/index.html$/,"")}var it=(()=>((it=it||{})[it.Decimal=0]="Decimal",it[it.Percent=1]="Percent",it[it.Currency=2]="Currency",it[it.Scientific=3]="Scientific",it))(),Ae=(()=>((Ae=Ae||{})[Ae.Decimal=0]="Decimal",Ae[Ae.Group=1]="Group",Ae[Ae.List=2]="List",Ae[Ae.PercentSign=3]="PercentSign",Ae[Ae.PlusSign=4]="PlusSign",Ae[Ae.MinusSign=5]="MinusSign",Ae[Ae.Exponential=6]="Exponential",Ae[Ae.SuperscriptingExponent=7]="SuperscriptingExponent",Ae[Ae.PerMille=8]="PerMille",Ae[Ae.Infinity=9]="Infinity",Ae[Ae.NaN=10]="NaN",Ae[Ae.TimeSeparator=11]="TimeSeparator",Ae[Ae.CurrencyDecimal=12]="CurrencyDecimal",Ae[Ae.CurrencyGroup=13]="CurrencyGroup",Ae))();function be(J,Ne){const q=(0,i.cg1)(J),Qe=q[i.wAp.NumberSymbols][Ne];if(typeof Qe>"u"){if(Ne===Ae.CurrencyDecimal)return q[i.wAp.NumberSymbols][Ae.Decimal];if(Ne===Ae.CurrencyGroup)return q[i.wAp.NumberSymbols][Ae.Group]}return Qe}const Ut=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function mt(J){const Ne=parseInt(J);if(isNaN(Ne))throw new Error("Invalid integer literal when parsing "+J);return Ne}function ci(J,Ne){Ne=encodeURIComponent(Ne);for(const q of J.split(";")){const Qe=q.indexOf("="),[kt,Xt]=-1==Qe?[q,""]:[q.slice(0,Qe),q.slice(Qe+1)];if(kt.trim()===Ne)return decodeURIComponent(Xt)}return null}let An=(()=>{class J{constructor(q,Qe,kt,Xt){this._iterableDiffers=q,this._keyValueDiffers=Qe,this._ngEl=kt,this._renderer=Xt,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(q){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof q?q.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(q){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof q?q.split(/\s+/):q,this._rawClass&&((0,i.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const q=this._iterableDiffer.diff(this._rawClass);q&&this._applyIterableChanges(q)}else if(this._keyValueDiffer){const q=this._keyValueDiffer.diff(this._rawClass);q&&this._applyKeyValueChanges(q)}}_applyKeyValueChanges(q){q.forEachAddedItem(Qe=>this._toggleClass(Qe.key,Qe.currentValue)),q.forEachChangedItem(Qe=>this._toggleClass(Qe.key,Qe.currentValue)),q.forEachRemovedItem(Qe=>{Qe.previousValue&&this._toggleClass(Qe.key,!1)})}_applyIterableChanges(q){q.forEachAddedItem(Qe=>{if("string"!=typeof Qe.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,i.AaK)(Qe.item)}`);this._toggleClass(Qe.item,!0)}),q.forEachRemovedItem(Qe=>this._toggleClass(Qe.item,!1))}_applyClasses(q){q&&(Array.isArray(q)||q instanceof Set?q.forEach(Qe=>this._toggleClass(Qe,!0)):Object.keys(q).forEach(Qe=>this._toggleClass(Qe,!!q[Qe])))}_removeClasses(q){q&&(Array.isArray(q)||q instanceof Set?q.forEach(Qe=>this._toggleClass(Qe,!1)):Object.keys(q).forEach(Qe=>this._toggleClass(Qe,!1)))}_toggleClass(q,Qe){(q=q.trim())&&q.split(/\s+/g).forEach(kt=>{Qe?this._renderer.addClass(this._ngEl.nativeElement,kt):this._renderer.removeClass(this._ngEl.nativeElement,kt)})}}return J.\u0275fac=function(q){return new(q||J)(i.Y36(i.ZZ4),i.Y36(i.aQg),i.Y36(i.SBq),i.Y36(i.Qsj))},J.\u0275dir=i.lG2({type:J,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),J})();class zn{constructor(Ne,q,Qe,kt){this.$implicit=Ne,this.ngForOf=q,this.index=Qe,this.count=kt}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let si=(()=>{class J{constructor(q,Qe,kt){this._viewContainer=q,this._template=Qe,this._differs=kt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(q){this._ngForOf=q,this._ngForOfDirty=!0}set ngForTrackBy(q){this._trackByFn=q}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(q){q&&(this._template=q)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const q=this._ngForOf;!this._differ&&q&&(this._differ=this._differs.find(q).create(this.ngForTrackBy))}if(this._differ){const q=this._differ.diff(this._ngForOf);q&&this._applyChanges(q)}}_applyChanges(q){const Qe=this._viewContainer;q.forEachOperation((kt,Xt,Kt)=>{if(null==kt.previousIndex)Qe.createEmbeddedView(this._template,new zn(kt.item,this._ngForOf,-1,-1),null===Kt?void 0:Kt);else if(null==Kt)Qe.remove(null===Xt?void 0:Xt);else if(null!==Xt){const Sn=Qe.get(Xt);Qe.move(Sn,Kt),Ln(Sn,kt)}});for(let kt=0,Xt=Qe.length;kt{Ln(Qe.get(kt.currentIndex),kt)})}static ngTemplateContextGuard(q,Qe){return!0}}return J.\u0275fac=function(q){return new(q||J)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(i.ZZ4))},J.\u0275dir=i.lG2({type:J,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),J})();function Ln(J,Ne){J.context.$implicit=Ne.item}let Xn=(()=>{class J{constructor(q,Qe){this._viewContainer=q,this._context=new Ci,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Qe}set ngIf(q){this._context.$implicit=this._context.ngIf=q,this._updateView()}set ngIfThen(q){zi("ngIfThen",q),this._thenTemplateRef=q,this._thenViewRef=null,this._updateView()}set ngIfElse(q){zi("ngIfElse",q),this._elseTemplateRef=q,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(q,Qe){return!0}}return J.\u0275fac=function(q){return new(q||J)(i.Y36(i.s_b),i.Y36(i.Rgc))},J.\u0275dir=i.lG2({type:J,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),J})();class Ci{constructor(){this.$implicit=null,this.ngIf=null}}function zi(J,Ne){if(Ne&&!Ne.createEmbeddedView)throw new Error(`${J} must be a TemplateRef, but received '${(0,i.AaK)(Ne)}'.`)}class hr{constructor(Ne,q){this._viewContainerRef=Ne,this._templateRef=q,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Ne){Ne&&!this._created?this.create():!Ne&&this._created&&this.destroy()}}let Wi=(()=>{class J{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(q){this._ngSwitch=q,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(q){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(q)}_matchCase(q){const Qe=q==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Qe,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Qe}_updateDefaultCases(q){if(this._defaultViews&&q!==this._defaultUsed){this._defaultUsed=q;for(let Qe=0;Qe{class J{constructor(q,Qe,kt){this.ngSwitch=kt,kt._addCase(),this._view=new hr(q,Qe)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return J.\u0275fac=function(q){return new(q||J)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(Wi,9))},J.\u0275dir=i.lG2({type:J,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),J})(),fi=(()=>{class J{constructor(q,Qe,kt){kt._addDefault(new hr(q,Qe))}}return J.\u0275fac=function(q){return new(q||J)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(Wi,9))},J.\u0275dir=i.lG2({type:J,selectors:[["","ngSwitchDefault",""]],standalone:!0}),J})(),Un=(()=>{class J{constructor(q,Qe,kt){this._ngEl=q,this._differs=Qe,this._renderer=kt,this._ngStyle=null,this._differ=null}set ngStyle(q){this._ngStyle=q,!this._differ&&q&&(this._differ=this._differs.find(q).create())}ngDoCheck(){if(this._differ){const q=this._differ.diff(this._ngStyle);q&&this._applyChanges(q)}}_setStyle(q,Qe){const[kt,Xt]=q.split("."),Kt=-1===kt.indexOf("-")?void 0:i.JOm.DashCase;null!=Qe?this._renderer.setStyle(this._ngEl.nativeElement,kt,Xt?`${Qe}${Xt}`:Qe,Kt):this._renderer.removeStyle(this._ngEl.nativeElement,kt,Kt)}_applyChanges(q){q.forEachRemovedItem(Qe=>this._setStyle(Qe.key,null)),q.forEachAddedItem(Qe=>this._setStyle(Qe.key,Qe.currentValue)),q.forEachChangedItem(Qe=>this._setStyle(Qe.key,Qe.currentValue))}}return J.\u0275fac=function(q){return new(q||J)(i.Y36(i.SBq),i.Y36(i.aQg),i.Y36(i.Qsj))},J.\u0275dir=i.lG2({type:J,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),J})();function Fi(J,Ne){return new i.vHH(2100,!1)}class Ti{createSubscription(Ne,q){return Ne.subscribe({next:q,error:Qe=>{throw Qe}})}dispose(Ne){Ne.unsubscribe()}}class Sr{createSubscription(Ne,q){return Ne.then(q,Qe=>{throw Qe})}dispose(Ne){}}const sr=new Sr,qi=new Ti;let fr=(()=>{class J{constructor(q){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=q}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(q){return this._obj?q!==this._obj?(this._dispose(),this.transform(q)):this._latestValue:(q&&this._subscribe(q),this._latestValue)}_subscribe(q){this._obj=q,this._strategy=this._selectStrategy(q),this._subscription=this._strategy.createSubscription(q,Qe=>this._updateLatestValue(q,Qe))}_selectStrategy(q){if((0,i.QGY)(q))return sr;if((0,i.F4k)(q))return qi;throw Fi()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(q,Qe){q===this._obj&&(this._latestValue=Qe,this._ref.markForCheck())}}return J.\u0275fac=function(q){return new(q||J)(i.Y36(i.sBO,16))},J.\u0275pipe=i.Yjl({name:"async",type:J,pure:!1,standalone:!0}),J})(),Yi=(()=>{class J{transform(q){return JSON.stringify(q,null,2)}}return J.\u0275fac=function(q){return new(q||J)},J.\u0275pipe=i.Yjl({name:"json",type:J,pure:!1,standalone:!0}),J})(),vr=(()=>{class J{constructor(q){this.differs=q,this.keyValues=[],this.compareFn=ir}transform(q,Qe=ir){if(!q||!(q instanceof Map)&&"object"!=typeof q)return null;this.differ||(this.differ=this.differs.find(q).create());const kt=this.differ.diff(q),Xt=Qe!==this.compareFn;return kt&&(this.keyValues=[],kt.forEachItem(Kt=>{this.keyValues.push(function Li(J,Ne){return{key:J,value:Ne}}(Kt.key,Kt.currentValue))})),(kt||Xt)&&(this.keyValues.sort(Qe),this.compareFn=Qe),this.keyValues}}return J.\u0275fac=function(q){return new(q||J)(i.Y36(i.aQg,16))},J.\u0275pipe=i.Yjl({name:"keyvalue",type:J,pure:!1,standalone:!0}),J})();function ir(J,Ne){const q=J.key,Qe=Ne.key;if(q===Qe)return 0;if(void 0===q)return 1;if(void 0===Qe)return-1;if(null===q)return 1;if(null===Qe)return-1;if("string"==typeof q&&"string"==typeof Qe)return q{class J{constructor(q){this._locale=q}transform(q,Qe,kt){if(!function Vi(J){return!(null==J||""===J||J!=J)}(q))return null;kt=kt||this._locale;try{return function qn(J,Ne,q){return function kn(J,Ne,q,Qe,kt,Xt,Kt=!1){let Sn="",Gn=!1;if(isFinite(J)){let Wn=function re(J){let Qe,kt,Xt,Kt,Sn,Ne=Math.abs(J)+"",q=0;for((kt=Ne.indexOf("."))>-1&&(Ne=Ne.replace(".","")),(Xt=Ne.search(/e/i))>0?(kt<0&&(kt=Xt),kt+=+Ne.slice(Xt+1),Ne=Ne.substring(0,Xt)):kt<0&&(kt=Ne.length),Xt=0;"0"===Ne.charAt(Xt);Xt++);if(Xt===(Sn=Ne.length))Qe=[0],kt=1;else{for(Sn--;"0"===Ne.charAt(Sn);)Sn--;for(kt-=Xt,Qe=[],Kt=0;Xt<=Sn;Xt++,Kt++)Qe[Kt]=Number(Ne.charAt(Xt))}return kt>22&&(Qe=Qe.splice(0,21),q=kt-1,kt=1),{digits:Qe,exponent:q,integerLen:kt}}(J);Kt&&(Wn=function fe(J){if(0===J.digits[0])return J;const Ne=J.digits.length-J.integerLen;return J.exponent?J.exponent+=2:(0===Ne?J.digits.push(0,0):1===Ne&&J.digits.push(0),J.integerLen+=2),J}(Wn));let ii=Ne.minInt,Nn=Ne.minFrac,Yn=Ne.maxFrac;if(Xt){const Ii=Xt.match(Ut);if(null===Ii)throw new Error(`${Xt} is not a valid digit info`);const li=Ii[1],Dr=Ii[3],Qi=Ii[5];null!=li&&(ii=mt(li)),null!=Dr&&(Nn=mt(Dr)),null!=Qi?Yn=mt(Qi):null!=Dr&&Nn>Yn&&(Yn=Nn)}!function Se(J,Ne,q){if(Ne>q)throw new Error(`The minimum number of digits after fraction (${Ne}) is higher than the maximum (${q}).`);let Qe=J.digits,kt=Qe.length-J.integerLen;const Xt=Math.min(Math.max(Ne,kt),q);let Kt=Xt+J.integerLen,Sn=Qe[Kt];if(Kt>0){Qe.splice(Math.max(J.integerLen,Kt));for(let Nn=Kt;Nn=5)if(Kt-1<0){for(let Nn=0;Nn>Kt;Nn--)Qe.unshift(0),J.integerLen++;Qe.unshift(1),J.integerLen++}else Qe[Kt-1]++;for(;kt=Wn?di.pop():Gn=!1),Yn>=10?1:0},0);ii&&(Qe.unshift(ii),J.integerLen++)}(Wn,Nn,Yn);let Kn=Wn.digits,di=Wn.integerLen;const on=Wn.exponent;let Hn=[];for(Gn=Kn.every(Ii=>!Ii);di0?Hn=Kn.splice(di,Kn.length):(Hn=Kn,Kn=[0]);const cr=[];for(Kn.length>=Ne.lgSize&&cr.unshift(Kn.splice(-Ne.lgSize,Kn.length).join(""));Kn.length>Ne.gSize;)cr.unshift(Kn.splice(-Ne.gSize,Kn.length).join(""));Kn.length&&cr.unshift(Kn.join("")),Sn=cr.join(be(q,Qe)),Hn.length&&(Sn+=be(q,kt)+Hn.join("")),on&&(Sn+=be(q,Ae.Exponential)+"+"+on)}else Sn=be(q,Ae.Infinity);return Sn=J<0&&!Gn?Ne.negPre+Sn+Ne.negSuf:Ne.posPre+Sn+Ne.posSuf,Sn}(J,function Be(J,Ne="-"){const q={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Qe=J.split(";"),kt=Qe[0],Xt=Qe[1],Kt=-1!==kt.indexOf(".")?kt.split("."):[kt.substring(0,kt.lastIndexOf("0")+1),kt.substring(kt.lastIndexOf("0")+1)],Sn=Kt[0],Gn=Kt[1]||"";q.posPre=Sn.substring(0,Sn.indexOf("#"));for(let ii=0;ii{class J{}return J.\u0275fac=function(q){return new(q||J)},J.\u0275mod=i.oAB({type:J}),J.\u0275inj=i.cJS({}),J})();const wi="browser";function Rr(J){return J===wi}function br(J){return"server"===J}let vi=(()=>{class J{}return J.\u0275prov=(0,i.Yz7)({token:J,providedIn:"root",factory:()=>new Di((0,i.LFG)(g),window)}),J})();class Di{constructor(Ne,q){this.document=Ne,this.window=q,this.offset=()=>[0,0]}setOffset(Ne){this.offset=Array.isArray(Ne)?()=>Ne:Ne}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Ne){this.supportsScrolling()&&this.window.scrollTo(Ne[0],Ne[1])}scrollToAnchor(Ne){if(!this.supportsScrolling())return;const q=function Hi(J,Ne){const q=J.getElementById(Ne)||J.getElementsByName(Ne)[0];if(q)return q;if("function"==typeof J.createTreeWalker&&J.body&&(J.body.createShadowRoot||J.body.attachShadow)){const Qe=J.createTreeWalker(J.body,NodeFilter.SHOW_ELEMENT);let kt=Qe.currentNode;for(;kt;){const Xt=kt.shadowRoot;if(Xt){const Kt=Xt.getElementById(Ne)||Xt.querySelector(`[name="${Ne}"]`);if(Kt)return Kt}kt=Qe.nextNode()}}return null}(this.document,Ne);q&&(this.scrollToElement(q),q.focus())}setHistoryScrollRestoration(Ne){if(this.supportScrollRestoration()){const q=this.window.history;q&&q.scrollRestoration&&(q.scrollRestoration=Ne)}}scrollToElement(Ne){const q=Ne.getBoundingClientRect(),Qe=q.left+this.window.pageXOffset,kt=q.top+this.window.pageYOffset,Xt=this.offset();this.window.scrollTo(Qe-Xt[0],kt-Xt[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Ne=Ki(this.window.history)||Ki(Object.getPrototypeOf(this.window.history));return!(!Ne||!Ne.writable&&!Ne.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function Ki(J){return Object.getOwnPropertyDescriptor(J,"scrollRestoration")}class Ei{}},529:(Ct,ke,u)=>{"use strict";u.d(ke,{JF:()=>m,eN:()=>ht});var i=u(6895),a=u(4650),c=u(1086),v=u(6498),b=u(1406),h=u(2198),g=u(4850);class w{}class B{}class O{constructor(H){this.normalizedNames=new Map,this.lazyUpdate=null,H?this.lazyInit="string"==typeof H?()=>{this.headers=new Map,H.split("\n").forEach(f=>{const _=f.indexOf(":");if(_>0){const T=f.slice(0,_),ve=T.toLowerCase(),Je=f.slice(_+1).trim();this.maybeSetNormalizedName(T,ve),this.headers.has(ve)?this.headers.get(ve).push(Je):this.headers.set(ve,[Je])}})}:()=>{this.headers=new Map,Object.keys(H).forEach(f=>{let _=H[f];const T=f.toLowerCase();"string"==typeof _&&(_=[_]),_.length>0&&(this.headers.set(T,_),this.maybeSetNormalizedName(f,T))})}:this.headers=new Map}has(H){return this.init(),this.headers.has(H.toLowerCase())}get(H){this.init();const f=this.headers.get(H.toLowerCase());return f&&f.length>0?f[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(H){return this.init(),this.headers.get(H.toLowerCase())||null}append(H,f){return this.clone({name:H,value:f,op:"a"})}set(H,f){return this.clone({name:H,value:f,op:"s"})}delete(H,f){return this.clone({name:H,value:f,op:"d"})}maybeSetNormalizedName(H,f){this.normalizedNames.has(f)||this.normalizedNames.set(f,H)}init(){this.lazyInit&&(this.lazyInit instanceof O?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(H=>this.applyUpdate(H)),this.lazyUpdate=null))}copyFrom(H){H.init(),Array.from(H.headers.keys()).forEach(f=>{this.headers.set(f,H.headers.get(f)),this.normalizedNames.set(f,H.normalizedNames.get(f))})}clone(H){const f=new O;return f.lazyInit=this.lazyInit&&this.lazyInit instanceof O?this.lazyInit:this,f.lazyUpdate=(this.lazyUpdate||[]).concat([H]),f}applyUpdate(H){const f=H.name.toLowerCase();switch(H.op){case"a":case"s":let _=H.value;if("string"==typeof _&&(_=[_]),0===_.length)return;this.maybeSetNormalizedName(H.name,f);const T=("a"===H.op?this.headers.get(f):void 0)||[];T.push(..._),this.headers.set(f,T);break;case"d":const ve=H.value;if(ve){let Je=this.headers.get(f);if(!Je)return;Je=Je.filter($e=>-1===ve.indexOf($e)),0===Je.length?(this.headers.delete(f),this.normalizedNames.delete(f)):this.headers.set(f,Je)}else this.headers.delete(f),this.normalizedNames.delete(f)}}forEach(H){this.init(),Array.from(this.normalizedNames.keys()).forEach(f=>H(this.normalizedNames.get(f),this.headers.get(f)))}}class k{encodeKey(H){return we(H)}encodeValue(H){return we(H)}decodeKey(H){return decodeURIComponent(H)}decodeValue(H){return decodeURIComponent(H)}}const z=/%(\d[a-f0-9])/gi,ae={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function we(X){return encodeURIComponent(X).replace(z,(H,f)=>ae[f]??H)}function ue(X){return`${X}`}class le{constructor(H={}){if(this.updates=null,this.cloneFrom=null,this.encoder=H.encoder||new k,H.fromString){if(H.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function F(X,H){const f=new Map;return X.length>0&&X.replace(/^\?/,"").split("&").forEach(T=>{const ve=T.indexOf("="),[Je,$e]=-1==ve?[H.decodeKey(T),""]:[H.decodeKey(T.slice(0,ve)),H.decodeValue(T.slice(ve+1))],St=f.get(Je)||[];St.push($e),f.set(Je,St)}),f}(H.fromString,this.encoder)}else H.fromObject?(this.map=new Map,Object.keys(H.fromObject).forEach(f=>{const _=H.fromObject[f],T=Array.isArray(_)?_.map(ue):[ue(_)];this.map.set(f,T)})):this.map=null}has(H){return this.init(),this.map.has(H)}get(H){this.init();const f=this.map.get(H);return f?f[0]:null}getAll(H){return this.init(),this.map.get(H)||null}keys(){return this.init(),Array.from(this.map.keys())}append(H,f){return this.clone({param:H,value:f,op:"a"})}appendAll(H){const f=[];return Object.keys(H).forEach(_=>{const T=H[_];Array.isArray(T)?T.forEach(ve=>{f.push({param:_,value:ve,op:"a"})}):f.push({param:_,value:T,op:"a"})}),this.clone(f)}set(H,f){return this.clone({param:H,value:f,op:"s"})}delete(H,f){return this.clone({param:H,value:f,op:"d"})}toString(){return this.init(),this.keys().map(H=>{const f=this.encoder.encodeKey(H);return this.map.get(H).map(_=>f+"="+this.encoder.encodeValue(_)).join("&")}).filter(H=>""!==H).join("&")}clone(H){const f=new le({encoder:this.encoder});return f.cloneFrom=this.cloneFrom||this,f.updates=(this.updates||[]).concat(H),f}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(H=>this.map.set(H,this.cloneFrom.map.get(H))),this.updates.forEach(H=>{switch(H.op){case"a":case"s":const f=("a"===H.op?this.map.get(H.param):void 0)||[];f.push(ue(H.value)),this.map.set(H.param,f);break;case"d":if(void 0===H.value){this.map.delete(H.param);break}{let _=this.map.get(H.param)||[];const T=_.indexOf(ue(H.value));-1!==T&&_.splice(T,1),_.length>0?this.map.set(H.param,_):this.map.delete(H.param)}}}),this.cloneFrom=this.updates=null)}}class W{constructor(){this.map=new Map}set(H,f){return this.map.set(H,f),this}get(H){return this.map.has(H)||this.map.set(H,H.defaultValue()),this.map.get(H)}delete(H){return this.map.delete(H),this}has(H){return this.map.has(H)}keys(){return this.map.keys()}}function he(X){return typeof ArrayBuffer<"u"&&X instanceof ArrayBuffer}function se(X){return typeof Blob<"u"&&X instanceof Blob}function Me(X){return typeof FormData<"u"&&X instanceof FormData}class it{constructor(H,f,_,T){let ve;if(this.url=f,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=H.toUpperCase(),function ie(X){switch(X){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||T?(this.body=void 0!==_?_:null,ve=T):ve=_,ve&&(this.reportProgress=!!ve.reportProgress,this.withCredentials=!!ve.withCredentials,ve.responseType&&(this.responseType=ve.responseType),ve.headers&&(this.headers=ve.headers),ve.context&&(this.context=ve.context),ve.params&&(this.params=ve.params)),this.headers||(this.headers=new O),this.context||(this.context=new W),this.params){const Je=this.params.toString();if(0===Je.length)this.urlWithParams=f;else{const $e=f.indexOf("?");this.urlWithParams=f+(-1===$e?"?":$eye.set(qe,H.setHeaders[qe]),St)),H.setParams&&(dt=Object.keys(H.setParams).reduce((ye,qe)=>ye.set(qe,H.setParams[qe]),dt)),new it(f,_,ve,{params:dt,headers:St,context:Et,reportProgress:$e,responseType:T,withCredentials:Je})}}var Ke=(()=>((Ke=Ke||{})[Ke.Sent=0]="Sent",Ke[Ke.UploadProgress=1]="UploadProgress",Ke[Ke.ResponseHeader=2]="ResponseHeader",Ke[Ke.DownloadProgress=3]="DownloadProgress",Ke[Ke.Response=4]="Response",Ke[Ke.User=5]="User",Ke))();class tt{constructor(H,f=200,_="OK"){this.headers=H.headers||new O,this.status=void 0!==H.status?H.status:f,this.statusText=H.statusText||_,this.url=H.url||null,this.ok=this.status>=200&&this.status<300}}class me extends tt{constructor(H={}){super(H),this.type=Ke.ResponseHeader}clone(H={}){return new me({headers:H.headers||this.headers,status:void 0!==H.status?H.status:this.status,statusText:H.statusText||this.statusText,url:H.url||this.url||void 0})}}class Xe extends tt{constructor(H={}){super(H),this.type=Ke.Response,this.body=void 0!==H.body?H.body:null}clone(H={}){return new Xe({body:void 0!==H.body?H.body:this.body,headers:H.headers||this.headers,status:void 0!==H.status?H.status:this.status,statusText:H.statusText||this.statusText,url:H.url||this.url||void 0})}}class Ae extends tt{constructor(H){super(H,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${H.url||"(unknown url)"}`:`Http failure response for ${H.url||"(unknown url)"}: ${H.status} ${H.statusText}`,this.error=H.error||null}}function _t(X,H){return{body:H,headers:X.headers,context:X.context,observe:X.observe,params:X.params,reportProgress:X.reportProgress,responseType:X.responseType,withCredentials:X.withCredentials}}let ht=(()=>{class X{constructor(f){this.handler=f}request(f,_,T={}){let ve;if(f instanceof it)ve=f;else{let St,dt;St=T.headers instanceof O?T.headers:new O(T.headers),T.params&&(dt=T.params instanceof le?T.params:new le({fromObject:T.params})),ve=new it(f,_,void 0!==T.body?T.body:null,{headers:St,context:T.context,params:dt,reportProgress:T.reportProgress,responseType:T.responseType||"json",withCredentials:T.withCredentials})}const Je=(0,c.of)(ve).pipe((0,b.b)(St=>this.handler.handle(St)));if(f instanceof it||"events"===T.observe)return Je;const $e=Je.pipe((0,h.h)(St=>St instanceof Xe));switch(T.observe||"body"){case"body":switch(ve.responseType){case"arraybuffer":return $e.pipe((0,g.U)(St=>{if(null!==St.body&&!(St.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return St.body}));case"blob":return $e.pipe((0,g.U)(St=>{if(null!==St.body&&!(St.body instanceof Blob))throw new Error("Response is not a Blob.");return St.body}));case"text":return $e.pipe((0,g.U)(St=>{if(null!==St.body&&"string"!=typeof St.body)throw new Error("Response is not a string.");return St.body}));default:return $e.pipe((0,g.U)(St=>St.body))}case"response":return $e;default:throw new Error(`Unreachable: unhandled observe type ${T.observe}}`)}}delete(f,_={}){return this.request("DELETE",f,_)}get(f,_={}){return this.request("GET",f,_)}head(f,_={}){return this.request("HEAD",f,_)}jsonp(f,_){return this.request("JSONP",f,{params:(new le).append(_,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(f,_={}){return this.request("OPTIONS",f,_)}patch(f,_,T={}){return this.request("PATCH",f,_t(T,_))}post(f,_,T={}){return this.request("POST",f,_t(T,_))}put(f,_,T={}){return this.request("PUT",f,_t(T,_))}}return X.\u0275fac=function(f){return new(f||X)(a.LFG(w))},X.\u0275prov=a.Yz7({token:X,factory:X.\u0275fac}),X})();class Yt{constructor(H,f){this.next=H,this.interceptor=f}handle(H){return this.interceptor.intercept(H,this.next)}}const Dt=new a.OlP("HTTP_INTERCEPTORS");let jt=(()=>{class X{intercept(f,_){return _.handle(f)}}return X.\u0275fac=function(f){return new(f||X)},X.\u0275prov=a.Yz7({token:X,factory:X.\u0275fac}),X})();const gt=/^\)\]\}',?\n/;let wt=(()=>{class X{constructor(f){this.xhrFactory=f}handle(f){if("JSONP"===f.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new v.y(_=>{const T=this.xhrFactory.build();if(T.open(f.method,f.urlWithParams),f.withCredentials&&(T.withCredentials=!0),f.headers.forEach((xe,Fe)=>T.setRequestHeader(xe,Fe.join(","))),f.headers.has("Accept")||T.setRequestHeader("Accept","application/json, text/plain, */*"),!f.headers.has("Content-Type")){const xe=f.detectContentTypeHeader();null!==xe&&T.setRequestHeader("Content-Type",xe)}if(f.responseType){const xe=f.responseType.toLowerCase();T.responseType="json"!==xe?xe:"text"}const ve=f.serializeBody();let Je=null;const $e=()=>{if(null!==Je)return Je;const xe=T.statusText||"OK",Fe=new O(T.getAllResponseHeaders()),ot=function We(X){return"responseURL"in X&&X.responseURL?X.responseURL:/^X-Request-URL:/m.test(X.getAllResponseHeaders())?X.getResponseHeader("X-Request-URL"):null}(T)||f.url;return Je=new me({headers:Fe,status:T.status,statusText:xe,url:ot}),Je},St=()=>{let{headers:xe,status:Fe,statusText:ot,url:ce}=$e(),je=null;204!==Fe&&(je=typeof T.response>"u"?T.responseText:T.response),0===Fe&&(Fe=je?200:0);let Ce=Fe>=200&&Fe<300;if("json"===f.responseType&&"string"==typeof je){const Ye=je;je=je.replace(gt,"");try{je=""!==je?JSON.parse(je):null}catch(Pe){je=Ye,Ce&&(Ce=!1,je={error:Pe,text:je})}}Ce?(_.next(new Xe({body:je,headers:xe,status:Fe,statusText:ot,url:ce||void 0})),_.complete()):_.error(new Ae({error:je,headers:xe,status:Fe,statusText:ot,url:ce||void 0}))},dt=xe=>{const{url:Fe}=$e(),ot=new Ae({error:xe,status:T.status||0,statusText:T.statusText||"Unknown Error",url:Fe||void 0});_.error(ot)};let Et=!1;const ye=xe=>{Et||(_.next($e()),Et=!0);let Fe={type:Ke.DownloadProgress,loaded:xe.loaded};xe.lengthComputable&&(Fe.total=xe.total),"text"===f.responseType&&!!T.responseText&&(Fe.partialText=T.responseText),_.next(Fe)},qe=xe=>{let Fe={type:Ke.UploadProgress,loaded:xe.loaded};xe.lengthComputable&&(Fe.total=xe.total),_.next(Fe)};return T.addEventListener("load",St),T.addEventListener("error",dt),T.addEventListener("timeout",dt),T.addEventListener("abort",dt),f.reportProgress&&(T.addEventListener("progress",ye),null!==ve&&T.upload&&T.upload.addEventListener("progress",qe)),T.send(ve),_.next({type:Ke.Sent}),()=>{T.removeEventListener("error",dt),T.removeEventListener("abort",dt),T.removeEventListener("load",St),T.removeEventListener("timeout",dt),f.reportProgress&&(T.removeEventListener("progress",ye),null!==ve&&T.upload&&T.upload.removeEventListener("progress",qe)),T.readyState!==T.DONE&&T.abort()}})}}return X.\u0275fac=function(f){return new(f||X)(a.LFG(i.JF))},X.\u0275prov=a.Yz7({token:X,factory:X.\u0275fac}),X})();const nt=new a.OlP("XSRF_COOKIE_NAME"),Q=new a.OlP("XSRF_HEADER_NAME");class Le{}let ee=(()=>{class X{constructor(f,_,T){this.doc=f,this.platform=_,this.cookieName=T,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const f=this.doc.cookie||"";return f!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,i.Mx)(f,this.cookieName),this.lastCookieString=f),this.lastToken}}return X.\u0275fac=function(f){return new(f||X)(a.LFG(i.K0),a.LFG(a.Lbi),a.LFG(nt))},X.\u0275prov=a.Yz7({token:X,factory:X.\u0275fac}),X})(),R=(()=>{class X{constructor(f,_){this.tokenService=f,this.headerName=_}intercept(f,_){const T=f.url.toLowerCase();if("GET"===f.method||"HEAD"===f.method||T.startsWith("http://")||T.startsWith("https://"))return _.handle(f);const ve=this.tokenService.getToken();return null!==ve&&!f.headers.has(this.headerName)&&(f=f.clone({headers:f.headers.set(this.headerName,ve)})),_.handle(f)}}return X.\u0275fac=function(f){return new(f||X)(a.LFG(Le),a.LFG(Q))},X.\u0275prov=a.Yz7({token:X,factory:X.\u0275fac}),X})(),U=(()=>{class X{constructor(f,_){this.backend=f,this.injector=_,this.chain=null}handle(f){if(null===this.chain){const _=this.injector.get(Dt,[]);this.chain=_.reduceRight((T,ve)=>new Yt(T,ve),this.backend)}return this.chain.handle(f)}}return X.\u0275fac=function(f){return new(f||X)(a.LFG(B),a.LFG(a.zs3))},X.\u0275prov=a.Yz7({token:X,factory:X.\u0275fac}),X})(),p=(()=>{class X{static disable(){return{ngModule:X,providers:[{provide:R,useClass:jt}]}}static withOptions(f={}){return{ngModule:X,providers:[f.cookieName?{provide:nt,useValue:f.cookieName}:[],f.headerName?{provide:Q,useValue:f.headerName}:[]]}}}return X.\u0275fac=function(f){return new(f||X)},X.\u0275mod=a.oAB({type:X}),X.\u0275inj=a.cJS({providers:[R,{provide:Dt,useExisting:R,multi:!0},{provide:Le,useClass:ee},{provide:nt,useValue:"XSRF-TOKEN"},{provide:Q,useValue:"X-XSRF-TOKEN"}]}),X})(),m=(()=>{class X{}return X.\u0275fac=function(f){return new(f||X)},X.\u0275mod=a.oAB({type:X}),X.\u0275inj=a.cJS({providers:[ht,{provide:w,useClass:U},wt,{provide:B,useExisting:wt}],imports:[p.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),X})()},4650:(Ct,ke,u)=>{"use strict";u.d(ke,{$8M:()=>ro,$Z:()=>Eh,AFp:()=>Bm,ALo:()=>im,AaK:()=>w,AsE:()=>qc,B6R:()=>ce,BQk:()=>Qa,CHM:()=>cr,CRH:()=>pm,CZH:()=>ll,CqO:()=>yf,D6c:()=>TC,DdM:()=>Qp,EJc:()=>$w,EiD:()=>gd,EpF:()=>gf,F$t:()=>Df,F4k:()=>_f,FYo:()=>Td,FiY:()=>Go,G48:()=>dC,Gf:()=>hm,GfV:()=>Id,GkF:()=>Uc,Gpc:()=>P,Gre:()=>tp,HTZ:()=>qp,Hsn:()=>Ef,Ikx:()=>Xc,JOm:()=>as,JVY:()=>Hg,Jzz:()=>np,KtG:()=>Ii,L6k:()=>jg,LAX:()=>Gg,LFG:()=>Zi,LSH:()=>Ol,Lbi:()=>Hw,Lck:()=>L0,MAs:()=>mf,MGl:()=>Za,MMx:()=>lu,NdJ:()=>$c,O4$:()=>Ze,OlP:()=>gi,Oqu:()=>Zc,PXZ:()=>sC,Q6J:()=>Vc,QGY:()=>Gc,QP$:()=>Fo,QbO:()=>jw,Qsj:()=>D_,R0b:()=>Gr,RDi:()=>Rg,Rgc:()=>pa,SBq:()=>qo,Sil:()=>Ww,Suo:()=>fm,TTD:()=>ir,TgZ:()=>Wa,Tol:()=>Hf,Udp:()=>Yc,VKq:()=>Zp,WFA:()=>zc,XFs:()=>R,Xpm:()=>ot,Xts:()=>kl,Y36:()=>_o,YKP:()=>jp,YNc:()=>pf,Yjl:()=>ct,Yz7:()=>Oe,ZZ4:()=>Ou,_Bn:()=>Hp,_UZ:()=>jc,_Vd:()=>Zo,_c5:()=>SC,_uU:()=>Yf,aQg:()=>ku,c2e:()=>Uw,cJS:()=>be,cg1:()=>eu,d8E:()=>Jc,dDg:()=>tC,dqk:()=>_,eBb:()=>Ug,eFA:()=>Zm,ekj:()=>Kc,eoX:()=>Ym,f3M:()=>qu,g9A:()=>Vm,h0i:()=>ko,hGG:()=>AC,hij:()=>Xa,iGM:()=>dm,ifc:()=>f,ip1:()=>Lm,kL8:()=>hp,kcU:()=>At,lG2:()=>st,lcZ:()=>rm,lqb:()=>Us,lri:()=>zm,mCW:()=>Yo,n5z:()=>ba,n_E:()=>il,oAB:()=>Ye,oxw:()=>Cf,pB0:()=>$g,q3G:()=>$i,qLn:()=>Xo,qOj:()=>Fc,qZA:()=>Ya,qzn:()=>uo,rWj:()=>Wm,s9C:()=>Wc,sBO:()=>hC,sIi:()=>sa,s_b:()=>sl,soG:()=>cl,tb:()=>Hm,tp0:()=>$o,uIk:()=>Nc,vHH:()=>ae,vpe:()=>hs,wAp:()=>Bn,xi3:()=>sm,xp6:()=>dh,ynx:()=>Ka,z2F:()=>ul,z3N:()=>gs,zSh:()=>Ll,zs3:()=>$s});var i=u(8929),a=u(2654),c=u(6498),v=u(6787),b=u(2474);function h(e){for(let t in e)if(e[t]===h)return t;throw Error("Could not find renamed property on target object.")}function g(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function w(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(w).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function B(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const O=h({__forward_ref__:h});function P(e){return e.__forward_ref__=P,e.toString=function(){return w(this())},e}function k(e){return F(e)?e():e}function F(e){return"function"==typeof e&&e.hasOwnProperty(O)&&e.__forward_ref__===P}class ae extends Error{constructor(t,n){super(function we(e,t){return`NG0${Math.abs(e)}${t?": "+t.trim():""}`}(t,n)),this.code=t}}function ue(e){return"string"==typeof e?e:null==e?"":String(e)}function he(e,t){throw new ae(-201,!1)}function jt(e,t){null==e&&function V(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function Oe(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function be(e){return{providers:e.providers||[],imports:e.imports||[]}}function et(e){return Mt(e,nt)||Mt(e,Le)}function Mt(e,t){return e.hasOwnProperty(t)?e[t]:null}function wt(e){return e&&(e.hasOwnProperty(Q)||e.hasOwnProperty(ee))?e[Q]:null}const nt=h({\u0275prov:h}),Q=h({\u0275inj:h}),Le=h({ngInjectableDef:h}),ee=h({ngInjectorDef:h});var R=(()=>((R=R||{})[R.Default=0]="Default",R[R.Host=1]="Host",R[R.Self=2]="Self",R[R.SkipSelf=4]="SkipSelf",R[R.Optional=8]="Optional",R))();let U;function x(e){const t=U;return U=e,t}function p(e,t,n){const r=et(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&R.Optional?null:void 0!==t?t:void he(w(e))}function j(e){return{toString:e}.toString()}var de=(()=>((de=de||{})[de.OnPush=0]="OnPush",de[de.Default=1]="Default",de))(),f=(()=>{return(e=f||(f={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",f;var e})();const _=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Je={},$e=[],St=h({\u0275cmp:h}),dt=h({\u0275dir:h}),Et=h({\u0275pipe:h}),ye=h({\u0275mod:h}),qe=h({\u0275fac:h}),xe=h({__NG_ELEMENT_ID__:h});let Fe=0;function ot(e){return j(()=>{const n=!0===e.standalone,r={},s={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===de.OnPush,directiveDefs:null,pipeDefs:null,standalone:n,dependencies:n&&e.dependencies||null,getStandaloneInjector:null,selectors:e.selectors||$e,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||f.Emulated,id:"c"+Fe++,styles:e.styles||$e,_:null,setInput:null,schemas:e.schemas||null,tView:null},l=e.dependencies,y=e.features;return s.inputs=bt(e.inputs,r),s.outputs=bt(e.outputs),y&&y.forEach(I=>I(s)),s.directiveDefs=l?()=>("function"==typeof l?l():l).map(je).filter(Ce):null,s.pipeDefs=l?()=>("function"==typeof l?l():l).map(ze).filter(Ce):null,s})}function ce(e,t,n){const r=e.\u0275cmp;r.directiveDefs=()=>("function"==typeof t?t():t).map(je),r.pipeDefs=()=>("function"==typeof n?n():n).map(ze)}function je(e){return Ht(e)||an(e)}function Ce(e){return null!==e}function Ye(e){return j(()=>({type:e.type,bootstrap:e.bootstrap||$e,declarations:e.declarations||$e,imports:e.imports||$e,exports:e.exports||$e,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function bt(e,t){if(null==e)return Je;const n={};for(const r in e)if(e.hasOwnProperty(r)){let s=e[r],l=s;Array.isArray(s)&&(l=s[1],s=s[0]),n[s]=r,t&&(t[s]=l)}return n}const st=ot;function ct(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ht(e){return e[St]||null}function an(e){return e[dt]||null}function ze(e){return e[Et]||null}function rt(e,t){const n=e[ye]||null;if(!n&&!0===t)throw new Error(`Type ${w(e)} does not have '\u0275mod' property.`);return n}function Xn(e){return Array.isArray(e)&&"object"==typeof e[1]}function Ci(e){return Array.isArray(e)&&!0===e[1]}function zi(e){return 0!=(8&e.flags)}function hr(e){return 2==(2&e.flags)}function Wi(e){return 1==(1&e.flags)}function _i(e){return null!==e.template}function fi(e){return 0!=(256&e[2])}function Li(e,t){return e.hasOwnProperty(qe)?e[qe]:null}class vr{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function ir(){return Oi}function Oi(e){return e.type.prototype.ngOnChanges&&(e.setInput=zr),Pr}function Pr(){const e=ar(this),t=e?.current;if(t){const n=e.previous;if(n===Je)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function zr(e,t,n,r){const s=ar(e)||function Ir(e,t){return e[Vi]=t}(e,{previous:Je,current:null}),l=s.current||(s.current={}),y=s.previous,I=this.declaredInputs[n],N=y[I];l[I]=new vr(N&&N.currentValue,t,y===Je),e[r]=t}ir.ngInherit=!0;const Vi="__ngSimpleChanges__";function ar(e){return e[Vi]||null}function Jn(e){for(;Array.isArray(e);)e=e[0];return e}function vi(e,t){return Jn(t[e])}function Di(e,t){return Jn(t[e.index])}function Hi(e,t){return e.data[t]}function ji(e,t){return e[t]}function Ei(e,t){const n=t[e];return Xn(n)?n:n[0]}function J(e){return 4==(4&e[2])}function Ne(e){return 64==(64&e[2])}function Qe(e,t){return null==t?null:e[t]}function kt(e){e[18]=0}function Xt(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const Kt={lFrame:M(null),bindingsEnabled:!0};function Yn(){return Kt.bindingsEnabled}function on(){return Kt.lFrame.lView}function Hn(){return Kt.lFrame.tView}function cr(e){return Kt.lFrame.contextLView=e,e[8]}function Ii(e){return Kt.lFrame.contextLView=null,e}function li(){let e=Dr();for(;null!==e&&64===e.type;)e=e.parent;return e}function Dr(){return Kt.lFrame.currentTNode}function te(e,t){const n=Kt.lFrame;n.currentTNode=e,n.isParent=t}function K(){return Kt.lFrame.isParent}function $(){Kt.lFrame.isParent=!1}function mi(){const e=Kt.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Br(){return Kt.lFrame.bindingIndex++}function Or(e){const t=Kt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Nr(e,t){const n=Kt.lFrame;n.bindingIndex=n.bindingRootIndex=e,hi(t)}function hi(e){Kt.lFrame.currentDirectiveIndex=e}function Vr(e){const t=Kt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Ji(){return Kt.lFrame.currentQueryIndex}function ws(e){Kt.lFrame.currentQueryIndex=e}function Cs(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Ds(e,t,n){if(n&R.SkipSelf){let s=t,l=e;for(;!(s=s.parent,null!==s||n&R.Host||(s=Cs(l),null===s||(l=l[15],10&s.type))););if(null===s)return!1;t=s,e=l}const r=Kt.lFrame=C();return r.currentTNode=t,r.lView=e,!0}function Te(e){const t=C(),n=e[1];Kt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function C(){const e=Kt.lFrame,t=null===e?null:e.child;return null===t?M(e):t}function M(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Y(){const e=Kt.lFrame;return Kt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Ie=Y;function o(){const e=Y();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function L(){return Kt.lFrame.selectedIndex}function Z(e){Kt.lFrame.selectedIndex=e}function De(){const e=Kt.lFrame;return Hi(e.tView,e.selectedIndex)}function Ze(){Kt.lFrame.currentNamespace="svg"}function At(){!function vt(){Kt.lFrame.currentNamespace=null}()}function Lt(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[N]<0&&(e[18]+=65536),(I>11>16&&(3&e[2])===t){e[2]+=2048;try{l.call(I)}finally{}}}else try{l.call(I)}finally{}}class Qt{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function dn(e,t,n){let r=0;for(;rt){y=l-1;break}}}for(;l>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let ur=!0;function Mi(e){const t=ur;return ur=e,t}let Rs=0;const Hr={};function Es(e,t){const n=ga(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Zs(r.data,e),Zs(t,null),Zs(r.blueprint,null));const s=qs(e,t),l=e.injectorIndex;if(ei(s)){const y=ri(s),I=xi(s,t),N=I[1].data;for(let pe=0;pe<8;pe++)t[l+pe]=I[y+pe]|N[y+pe]}return t[l+8]=s,l}function Zs(e,t){e.push(0,0,0,0,0,0,0,0,t)}function ga(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function qs(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,s=t;for(;null!==s;){if(r=wa(s),null===r)return-1;if(n++,s=s[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function Xs(e,t,n){!function Bo(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(xe)&&(r=n[xe]),null==r&&(r=n[xe]=Rs++);const s=255&r;t.data[e+(s>>5)]|=1<=0?255&t:ml:t}(n);if("function"==typeof l){if(!Ds(t,e,r))return r&R.Host?_a(s,0,r):Js(t,n,r,s);try{const y=l(r);if(null!=y||r&R.Optional)return y;he()}finally{Ie()}}else if("number"==typeof l){let y=null,I=ga(e,t),N=-1,pe=r&R.Host?t[16][6]:null;for((-1===I||r&R.SkipSelf)&&(N=-1===I?qs(e,t):t[I+8],-1!==N&&va(r,!1)?(y=t[1],I=ri(N),t=xi(N,t)):I=-1);-1!==I;){const Ve=t[1];if(ya(l,I,Ve.data)){const ut=Vo(I,t,n,y,r,pe);if(ut!==Hr)return ut}N=t[I+8],-1!==N&&va(r,t[1].data[I+8]===pe)&&ya(l,I,t)?(y=Ve,I=ri(N),t=xi(N,t)):I=-1}}return s}function Vo(e,t,n,r,s,l){const y=t[1],I=y.data[e+8],Ve=to(I,y,n,null==r?hr(I)&&ur:r!=y&&0!=(3&I.type),s&R.Host&&l===I);return null!==Ve?Os(t,y,Ve,I):Hr}function to(e,t,n,r,s){const l=e.providerIndexes,y=t.data,I=1048575&l,N=e.directiveStart,Ve=l>>20,Pt=s?I+Ve:e.directiveEnd;for(let $t=r?I:I+Ve;$t=N&&ln.type===n)return $t}if(s){const $t=y[N];if($t&&_i($t)&&$t.type===n)return N}return null}function Os(e,t,n,r){let s=e[n];const l=t.data;if(function tn(e){return e instanceof Qt}(s)){const y=s;y.resolving&&function ge(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new ae(-200,`Circular dependency in DI detected for ${e}${n}`)}(function le(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():ue(e)}(l[n]));const I=Mi(y.canSeeViewProviders);y.resolving=!0;const N=y.injectImpl?x(y.injectImpl):null;Ds(e,r,R.Default);try{s=e[n]=y.factory(void 0,l,e,r),t.firstCreatePass&&n>=r.directiveStart&&function xt(e,t,n){const{ngOnChanges:r,ngOnInit:s,ngDoCheck:l}=t.type.prototype;if(r){const y=Oi(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,y),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,y)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,s),l&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,l),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,l))}(n,l[n],t)}finally{null!==N&&x(N),Mi(I),y.resolving=!1,Ie()}}return s}function ya(e,t,n){return!!(n[t+(e>>5)]&1<{const t=e.prototype.constructor,n=t[qe]||io(t),r=Object.prototype;let s=Object.getPrototypeOf(e.prototype).constructor;for(;s&&s!==r;){const l=s[qe]||io(s);if(l&&l!==n)return l;s=Object.getPrototypeOf(s)}return l=>new l})}function io(e){return F(e)?()=>{const t=io(k(e));return t&&t()}:Li(e)}function wa(e){const t=e[1],n=t.type;return 2===n?t.declTNode:1===n?e[6]:null}function ro(e){return function pl(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let s=0;for(;s{const r=function so(e){return function(...n){if(e){const r=e(...n);for(const s in r)this[s]=r[s]}}}(t);function s(...l){if(this instanceof s)return r.apply(this,l),this;const y=new s(...l);return I.annotation=y,I;function I(N,pe,Ve){const ut=N.hasOwnProperty(Qr)?N[Qr]:Object.defineProperty(N,Qr,{value:[]})[Qr];for(;ut.length<=Ve;)ut.push(null);return(ut[Ve]=ut[Ve]||[]).push(y),N}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}class gi{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=Oe({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function mr(e,t){void 0===t&&(t=e);for(let n=0;nArray.isArray(n)?Zr(n,t):t(n))}function Ea(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ls(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Bs(e,t){const n=[];for(let r=0;r=0?e[1|r]=n:(r=~r,function wl(e,t,n,r){let s=e.length;if(s==t)e.push(n,r);else if(1===s)e.push(r,e[0]),e[0]=n;else{for(s--,e.push(e[s-1],e[s]);s>t;)e[s]=e[s-2],s--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function D(e,t){const n=G(e,t);if(n>=0)return e[1|n]}function G(e,t){return function He(e,t,n){let r=0,s=e.length>>n;for(;s!==r;){const l=r+(s-r>>1),y=e[l<t?s=l:r=l+1}return~(s<e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Sa}()?.createHTML(e)||e}class Hs{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Pg extends Hs{getTypeName(){return"HTML"}}class Fg extends Hs{getTypeName(){return"Style"}}class Lg extends Hs{getTypeName(){return"Script"}}class Bg extends Hs{getTypeName(){return"URL"}}class Ng extends Hs{getTypeName(){return"ResourceURL"}}function gs(e){return e instanceof Hs?e.changingThisBreaksApplicationSecurity:e}function uo(e,t){const n=function Vg(e){return e instanceof Hs&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function Hg(e){return new Pg(e)}function jg(e){return new Fg(e)}function Ug(e){return new Lg(e)}function Gg(e){return new Bg(e)}function $g(e){return new Ng(e)}class zg{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(co(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}}class Wg{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const r=this.inertDocument.createElement("body");n.appendChild(r)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=co(t),n;const r=this.inertDocument.createElement("body");return r.innerHTML=co(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(t){const n=t.attributes;for(let s=n.length-1;0Yo(t.trim())).join(", ")),this.buf.push(" ",y,'="',md(N),'"')}var e;return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();Al.hasOwnProperty(n)&&!dd.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(md(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const Xg=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Jg=/([^\#-~ |!])/g;function md(e){return e.replace(/&/g,"&").replace(Xg,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Jg,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Ta;function gd(e,t){let n=null;try{Ta=Ta||function cd(e){const t=new Wg(e);return function Yg(){try{return!!(new window.DOMParser).parseFromString(co(""),"text/html")}catch{return!1}}()?new zg(t):t}(e);let r=t?String(t):"";n=Ta.getInertBodyElement(r);let s=5,l=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=l,l=n.innerHTML,n=Ta.getInertBodyElement(r)}while(r!==l);return co((new qg).sanitizeChildren(Rl(n)||n))}finally{if(n){const r=Rl(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Rl(e){return"content"in e&&function e_(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var $i=(()=>(($i=$i||{})[$i.NONE=0]="NONE",$i[$i.HTML=1]="HTML",$i[$i.STYLE=2]="STYLE",$i[$i.SCRIPT=3]="SCRIPT",$i[$i.URL=4]="URL",$i[$i.RESOURCE_URL=5]="RESOURCE_URL",$i))();function Ol(e){const t=function Qo(){const e=on();return e&&e[12]}();return t?t.sanitize($i.URL,e)||"":uo(e,"URL")?gs(e):Yo(ue(e))}const kl=new gi("ENVIRONMENT_INITIALIZER"),yd=new gi("INJECTOR",-1),vd=new gi("INJECTOR_DEF_TYPES");class bd{get(t,n=jr){if(n===jr){const r=new Error(`NullInjectorError: No provider for ${w(t)}!`);throw r.name="NullInjectorError",r}return n}}function l_(...e){return{\u0275providers:wd(0,e)}}function wd(e,...t){const n=[],r=new Set;let s;return Zr(t,l=>{const y=l;Pl(y,n,[],r)&&(s||(s=[]),s.push(y))}),void 0!==s&&Cd(s,n),n}function Cd(e,t){for(let n=0;n{t.push(l)})}}function Pl(e,t,n,r){if(!(e=k(e)))return!1;let s=null,l=wt(e);const y=!l&&Ht(e);if(l||y){if(y&&!y.standalone)return!1;s=e}else{const N=e.ngModule;if(l=wt(N),!l)return!1;s=N}const I=r.has(s);if(y){if(I)return!1;if(r.add(s),y.dependencies){const N="function"==typeof y.dependencies?y.dependencies():y.dependencies;for(const pe of N)Pl(pe,t,n,r)}}else{if(!l)return!1;{if(null!=l.imports&&!I){let pe;r.add(s);try{Zr(l.imports,Ve=>{Pl(Ve,t,n,r)&&(pe||(pe=[]),pe.push(Ve))})}finally{}void 0!==pe&&Cd(pe,t)}if(!I){const pe=Li(s)||(()=>new s);t.push({provide:s,useFactory:pe,deps:$e},{provide:vd,useValue:s,multi:!0},{provide:kl,useValue:()=>Zi(s),multi:!0})}const N=l.providers;null==N||I||Zr(N,Ve=>{t.push(Ve)})}}return s!==e&&void 0!==e.providers}const c_=h({provide:String,useValue:h});function Fl(e){return null!==e&&"object"==typeof e&&c_ in e}function js(e){return"function"==typeof e}const Ll=new gi("Set Injector scope."),Ia={},d_={};let Bl;function Ra(){return void 0===Bl&&(Bl=new bd),Bl}class Us{}class xd extends Us{constructor(t,n,r,s){super(),this.parent=n,this.source=r,this.scopes=s,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Vl(t,y=>this.processProvider(y)),this.records.set(yd,ho(void 0,this)),s.has("environment")&&this.records.set(Us,ho(void 0,this));const l=this.records.get(Ll);null!=l&&"string"==typeof l.value&&this.scopes.add(l.value),this.injectorDefTypes=new Set(this.get(vd.multi,$e,R.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const n=ao(this),r=x(void 0);try{return t()}finally{ao(n),x(r)}}get(t,n=jr,r=R.Default){this.assertNotDestroyed();const s=ao(this),l=x(void 0);try{if(!(r&R.SkipSelf)){let I=this.records.get(t);if(void 0===I){const N=function g_(e){return"function"==typeof e||"object"==typeof e&&e instanceof gi}(t)&&et(t);I=N&&this.injectableDefInScope(N)?ho(Nl(t),Ia):null,this.records.set(t,I)}if(null!=I)return this.hydrate(t,I)}return(r&R.Self?Ra():this.parent).get(t,n=r&R.Optional&&n===jr?null:n)}catch(y){if("NullInjectorError"===y.name){if((y[Ns]=y[Ns]||[]).unshift(w(t)),s)throw y;return function bg(e,t,n,r){const s=e[Ns];throw t[Qu]&&s.unshift(t[Qu]),e.message=function wg(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let s=w(t);if(Array.isArray(t))s=t.map(w).join(" -> ");else if("object"==typeof t){let l=[];for(let y in t)if(t.hasOwnProperty(y)){let I=t[y];l.push(y+":"+("string"==typeof I?JSON.stringify(I):w(I)))}s=`{${l.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${e.replace(Cl,"\n ")}`}("\n"+e.message,s,n,r),e.ngTokenPath=s,e[Ns]=null,e}(y,t,"R3InjectorError",this.source)}throw y}finally{x(l),ao(s)}}resolveInjectorInitializers(){const t=ao(this),n=x(void 0);try{const r=this.get(kl.multi,$e,R.Self);for(const s of r)s()}finally{ao(t),x(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(w(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ae(205,!1)}processProvider(t){let n=js(t=k(t))?t:k(t&&t.provide);const r=function f_(e){return Fl(e)?ho(void 0,e.useValue):ho(Md(e),Ia)}(t);if(js(t)||!0!==t.multi)this.records.get(n);else{let s=this.records.get(n);s||(s=ho(void 0,Ia,!0),s.factory=()=>Dl(s.multi),this.records.set(n,s)),n=t,s.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===Ia&&(n.value=d_,n.value=n.factory()),"object"==typeof n.value&&n.value&&function m_(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=k(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}}function Nl(e){const t=et(e),n=null!==t?t.factory:Li(e);if(null!==n)return n;if(e instanceof gi)throw new ae(204,!1);if(e instanceof Function)return function h_(e){const t=e.length;if(t>0)throw Bs(t,"?"),new ae(204,!1);const n=function gt(e){const t=e&&(e[nt]||e[Le]);if(t){const n=function We(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new ae(204,!1)}function Md(e,t,n){let r;if(js(e)){const s=k(e);return Li(s)||Nl(s)}if(Fl(e))r=()=>k(e.useValue);else if(function Ed(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Dl(e.deps||[]));else if(function Dd(e){return!(!e||!e.useExisting)}(e))r=()=>Zi(k(e.useExisting));else{const s=k(e&&(e.useClass||e.provide));if(!function p_(e){return!!e.deps}(e))return Li(s)||Nl(s);r=()=>new s(...Dl(e.deps))}return r}function ho(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function __(e){return!!e.\u0275providers}function Vl(e,t){for(const n of e)Array.isArray(n)?Vl(n,t):__(n)?Vl(n.\u0275providers,t):t(n)}class Sd{}class b_{resolveComponentFactory(t){throw function v_(e){const t=Error(`No component factory found for ${w(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Zo=(()=>{class e{}return e.NULL=new b_,e})();function w_(){return fo(li(),on())}function fo(e,t){return new qo(Di(e,t))}let qo=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=w_,e})();function C_(e){return e instanceof qo?e.nativeElement:e}class Td{}let D_=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function E_(){const e=on(),n=Ei(li().index,e);return(Xn(n)?n:e)[11]}(),e})(),x_=(()=>{class e{}return e.\u0275prov=Oe({token:e,providedIn:"root",factory:()=>null}),e})();class Id{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const M_=new Id("14.1.3"),Hl={};function zl(e){return e.ngOriginalError}class Xo{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&zl(t);for(;n&&zl(n);)n=zl(n);return n||null}}const Wl=new Map;let N_=0;const Kl="__ngContext__";function gr(e,t){Xn(t)?(e[Kl]=t[20],function H_(e){Wl.set(e[20],e)}(t)):e[Kl]=t}function Jo(e){const t=e[Kl];return"number"==typeof t?function Ld(e){return Wl.get(e)||null}(t):t||null}function Ql(e){const t=Jo(e);return t?Xn(t)?t:t.lView:null}const Q_=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(_))();function _s(e){return e instanceof Function?e():e}var as=(()=>((as=as||{})[as.Important=1]="Important",as[as.DashCase=2]="DashCase",as))();function ql(e,t){return undefined(e,t)}function ea(e){const t=e[3];return Ci(t)?t[3]:t}function Xl(e){return $d(e[13])}function Jl(e){return $d(e[4])}function $d(e){for(;null!==e&&!Ci(e);)e=e[4];return e}function mo(e,t,n,r,s){if(null!=r){let l,y=!1;Ci(r)?l=r:Xn(r)&&(y=!0,r=r[0]);const I=Jn(r);0===e&&null!==n?null==s?Zd(t,n,I):Gs(t,n,I,s||null,!0):1===e&&null!==n?Gs(t,n,I,s||null,!0):2===e?function ih(e,t,n){const r=Oa(e,t);r&&function fy(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,I,y):3===e&&t.destroyNode(I),null!=l&&function gy(e,t,n,r,s){const l=n[7];l!==Jn(n)&&mo(t,e,r,l,s);for(let I=10;I0&&(e[n-1][4]=r[4]);const l=Ls(e,10+t);!function sy(e,t){ta(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);const y=l[19];null!==y&&y.detachView(l[1]),r[3]=null,r[4]=null,r[2]&=-65}return r}function Yd(e,t){if(!(128&t[2])){const n=t[11];n.destroyNode&&ta(e,t,n,3,null,null),function ly(e){let t=e[13];if(!t)return ic(e[1],e);for(;t;){let n=null;if(Xn(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)Xn(t)&&ic(t[1],t),t=t[3];null===t&&(t=e),Xn(t)&&ic(t[1],t),n=t&&t[4]}t=n}}(t)}}function ic(e,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function hy(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[s=pe]():r[s=-pe].unsubscribe(),l+=2}else{const y=r[s=n[l+1]];n[l].call(y)}if(null!==r){for(let l=s+1;ll?"":s[ut+1].toLowerCase();const $t=8&r?Pt:null;if($t&&-1!==oh($t,pe,0)||2&r&&pe!==Pt){if(qr(r))return!1;y=!0}}}}else{if(!y&&!qr(r)&&!qr(N))return!1;if(y&&qr(N))continue;y=!1,r=N|1&r}}return qr(r)||y}function qr(e){return 0==(1&e)}function wy(e,t,n,r){if(null===t)return-1;let s=0;if(r||!n){let l=!1;for(;s-1)for(n++;n0?'="'+I+'"':"")+"]"}else 8&r?s+="."+y:4&r&&(s+=" "+y);else""!==s&&!qr(y)&&(t+=uh(l,s),s=""),r=y,l=l||!qr(r);n++}return""!==s&&(t+=uh(l,s)),t}const $n={};function dh(e){hh(Hn(),on(),L()+e,!1)}function hh(e,t,n,r){if(!r)if(3==(3&t[2])){const l=e.preOrderCheckHooks;null!==l&&Ot(t,l,n)}else{const l=e.preOrderHooks;null!==l&&Ft(t,l,0,n)}Z(n)}function gh(e,t=null,n=null,r){const s=_h(e,t,n,r);return s.resolveInjectorInitializers(),s}function _h(e,t=null,n=null,r,s=new Set){const l=[n||$e,l_(e)];return r=r||("object"==typeof e?void 0:w(e)),new xd(l,t||Ra(),r||null,s)}let $s=(()=>{class e{static create(n,r){if(Array.isArray(n))return gh({name:""},r,n,"");{const s=n.name??"";return gh({name:s},n.parent,n.providers,s)}}}return e.THROW_IF_NOT_FOUND=jr,e.NULL=new bd,e.\u0275prov=Oe({token:e,providedIn:"any",factory:()=>Zi(yd)}),e.__NG_ELEMENT_ID__=-1,e})();function _o(e,t=R.Default){const n=on();return null===n?Zi(e,t):No(li(),n,k(e),t)}function Eh(){throw new Error("invalid")}function La(e,t){return e<<17|t<<2}function Xr(e){return e>>17&32767}function hc(e){return 2|e}function ys(e){return(131068&e)>>2}function fc(e,t){return-131069&e|t<<2}function pc(e){return 1|e}function Fh(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r22&&hh(e,t,22,!1),n(r,s)}finally{Z(l)}}function Bh(e,t,n){if(zi(t)){const s=t.directiveEnd;for(let l=t.directiveStart;l0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(I)!=N&&I.push(N),I.push(r,s,y)}}function $h(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function zh(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function yv(e,t,n){if(n){if(t.exportAs)for(let r=0;r0&&Tc(n)}}function Tc(e){for(let r=Xl(e);null!==r;r=Jl(r))for(let s=10;s0&&Tc(l)}const n=e[1].components;if(null!==n)for(let r=0;r0&&Tc(s)}}function xv(e,t){const n=Ei(t,e),r=n[1];(function Mv(e,t){for(let n=t.length;nPromise.resolve(null))();function qh(e){return e[7]||(e[7]=[])}function Xh(e){return e.cleanup||(e.cleanup=[])}function Jh(e,t,n){return(null===e||_i(e))&&(n=function wr(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function ef(e,t){const n=e[9],r=n?n.get(Xo,null):null;r&&r.handleError(t)}function kc(e,t,n,r,s){for(let l=0;l-1&&(nc(t,r),Ls(n,r))}this._attachedToViewContainer=!1}Yd(this._lView[1],this._lView)}onDestroy(t){Vh(this._lView[1],this._lView,null,t)}markForCheck(){Ic(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function Rc(e,t,n){const r=t[10];r.begin&&r.begin();try{na(e,t,e.template,n)}catch(s){throw ef(t,s),s}finally{r.end&&r.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ae(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function ay(e,t){ta(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new ae(902,!1);this._appRef=t}}class Tv extends ia{constructor(t){super(t),this._view=t}detectChanges(){Zh(this._view)}checkNoChanges(){}get context(){return null}}class Pc extends Zo{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Ht(t);return new ra(n,this.ngModule)}}function tf(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class Rv{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){const s=this.injector.get(t,Hl,r);return s!==Hl||n===Hl?s:this.parentInjector.get(t,n,r)}}class ra extends Sd{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Sy(e){return e.map(My).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return tf(this.componentDef.inputs)}get outputs(){return tf(this.componentDef.outputs)}create(t,n,r,s){let l=(s=s||this.ngModule)instanceof Us?s:s?.injector;l&&null!==this.componentDef.getStandaloneInjector&&(l=this.componentDef.getStandaloneInjector(l)||l);const y=l?new Rv(t,l):t,I=y.get(Td,null);if(null===I)throw new ae(407,!1);const N=y.get(x_,null),pe=I.createRenderer(null,this.componentDef),Ve=this.componentDef.selectors[0][0]||"div",ut=r?function lv(e,t,n){return e.selectRootElement(t,n===f.ShadowDom)}(pe,r,this.componentDef.encapsulation):tc(I.createRenderer(null,this.componentDef),Ve,function Iv(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(Ve)),Pt=this.componentDef.onPush?288:272,$t=function Lv(e,t){return{components:[],scheduler:e||Q_,clean:Av,playerHandler:t||null,flags:0}}(),ln=Mc(0,null,null,1,0,null,null,null,null,null),fn=Va(null,ln,$t,Pt,null,null,I,pe,N,y,null);let Dn,In;Te(fn);try{const Vn=function Pv(e,t,n,r,s,l){const y=n[1];n[22]=e;const N=yo(y,22,2,"#host",null),pe=N.mergedAttrs=t.hostAttrs;null!==pe&&(Ua(N,pe,!0),null!==e&&(dn(s,e,pe),null!==N.classes&&ac(s,e,N.classes),null!==N.styles&&sh(s,e,N.styles)));const Ve=r.createRenderer(e,t),ut=Va(n,Nh(t),null,t.onPush?32:16,n[22],N,r,Ve,l||null,null,null);return y.firstCreatePass&&(Xs(Es(N,n),y,t.type),zh(y,N),Wh(N,n.length,1)),ja(n,ut),n[22]=ut}(ut,this.componentDef,fn,I,pe);if(ut)if(r)dn(pe,ut,["ng-version",M_.full]);else{const{attrs:un,classes:Fn}=function Ay(e){const t=[],n=[];let r=1,s=2;for(;r0&&ac(pe,ut,Fn.join(" "))}if(In=Hi(ln,22),void 0!==n){const un=In.projection=[];for(let Fn=0;Fn=0;r--){const s=e[r];s.hostVars=t+=s.hostVars,s.hostAttrs=Qn(s.hostAttrs,n=Qn(n,s.hostAttrs))}}(r)}function Lc(e){return e===Je?{}:e===$e?[]:e}function Vv(e,t){const n=e.viewQuery;e.viewQuery=n?(r,s)=>{t(r,s),n(r,s)}:t}function Hv(e,t){const n=e.contentQueries;e.contentQueries=n?(r,s,l)=>{t(r,s,l),n(r,s,l)}:t}function jv(e,t){const n=e.hostBindings;e.hostBindings=n?(r,s)=>{t(r,s),n(r,s)}:t}let $a=null;function zs(){if(!$a){const e=_.Symbol;if(e&&e.iterator)$a=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;nI(Jn(ti[r.index])):r.index;let Fn=null;if(!I&&N&&(Fn=function eb(e,t,n,r){const s=e.cleanup;if(null!=s)for(let l=0;lN?I[N]:null}"string"==typeof y&&(l+=2)}return null}(e,t,s,r.index)),null!==Fn)(Fn.__ngLastListenerFn__||Fn).__ngNextListenerFn__=l,Fn.__ngLastListenerFn__=l,$t=!1;else{l=wf(r,t,ut,l,!1);const ti=n.listen(In,s,l);Pt.push(l,ti),Ve&&Ve.push(s,un,Vn,Vn+1)}}else l=wf(r,t,ut,l,!1);const ln=r.outputs;let fn;if($t&&null!==ln&&(fn=ln[s])){const Dn=fn.length;if(Dn)for(let In=0;In0;)t=t[15],e--;return t}(e,Kt.lFrame.contextLView))[8]}(e)}function tb(e,t){let n=null;const r=function Cy(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e);for(let s=0;s=0}const tr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Pf(e){return e.substring(tr.key,tr.keyEnd)}function sb(e){return e.substring(tr.value,tr.valueEnd)}function Ff(e,t){const n=tr.textEnd;return n===t?-1:(t=tr.keyEnd=function lb(e,t,n){for(;t32;)t++;return t}(e,tr.key=t,n),To(e,t,n))}function Lf(e,t){const n=tr.textEnd;let r=tr.key=To(e,t,n);return n===r?-1:(r=tr.keyEnd=function cb(e,t,n){let r;for(;t=65&&(-33&r)<=90||r>=48&&r<=57);)t++;return t}(e,r,n),r=Nf(e,r,n),r=tr.value=To(e,r,n),r=tr.valueEnd=function ub(e,t,n){let r=-1,s=-1,l=-1,y=t,I=y;for(;y32&&(I=y),l=s,s=r,r=-33&N}return I}(e,r,n),Nf(e,r,n))}function Bf(e){tr.key=0,tr.keyEnd=0,tr.value=0,tr.valueEnd=0,tr.textEnd=e.length}function To(e,t,n){for(;t=0;n=Lf(t,n))Gf(e,Pf(t),sb(t))}function Hf(e){es(S,ds,e,!0)}function ds(e,t){for(let n=function ob(e){return Bf(e),Ff(e,To(e,0,tr.textEnd))}(t);n>=0;n=Ff(t,n))S(e,Pf(t),!0)}function Jr(e,t,n,r){const s=on(),l=Hn(),y=Or(2);l.firstUpdatePass&&Uf(l,e,y,r),t!==$n&&_r(s,y,t)&&$f(l,l.data[L()],s,s[11],e,s[y+1]=function yb(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=w(gs(e)))),e}(t,n),r,y)}function es(e,t,n,r){const s=Hn(),l=Or(2);s.firstUpdatePass&&Uf(s,null,l,r);const y=on();if(n!==$n&&_r(y,l,n)){const I=s.data[L()];if(Wf(I,r)&&!jf(s,l)){let N=r?I.classesWithoutHost:I.stylesWithoutHost;null!==N&&(n=B(N,n||"")),Hc(s,I,y,n,r)}else!function _b(e,t,n,r,s,l,y,I){s===$n&&(s=$e);let N=0,pe=0,Ve=0=e.expandoStartIndex}function Uf(e,t,n,r){const s=e.data;if(null===s[n+1]){const l=s[L()],y=jf(e,n);Wf(l,r)&&null===t&&!y&&(t=!1),t=function hb(e,t,n,r){const s=Vr(e);let l=r?t.residualClasses:t.residualStyles;if(null===s)0===(r?t.classBindings:t.styleBindings)&&(n=aa(n=Qc(null,e,t,n,r),t.attrs,r),l=null);else{const y=t.directiveStylingLast;if(-1===y||e[y]!==s)if(n=Qc(s,e,t,n,r),null===l){let N=function fb(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==ys(r))return e[Xr(r)]}(e,t,r);void 0!==N&&Array.isArray(N)&&(N=Qc(null,e,t,N[1],r),N=aa(N,t.attrs,r),function pb(e,t,n,r){e[Xr(n?t.classBindings:t.styleBindings)]=r}(e,t,r,N))}else l=function mb(e,t,n){let r;const s=t.directiveEnd;for(let l=1+t.directiveStylingLast;l0)&&(pe=!0)}else Ve=n;if(s)if(0!==N){const Pt=Xr(e[I+1]);e[r+1]=La(Pt,I),0!==Pt&&(e[Pt+1]=fc(e[Pt+1],r)),e[I+1]=function Yy(e,t){return 131071&e|t<<17}(e[I+1],r)}else e[r+1]=La(I,0),0!==I&&(e[I+1]=fc(e[I+1],r)),I=r;else e[r+1]=La(N,0),0===I?I=r:e[N+1]=fc(e[N+1],r),N=r;pe&&(e[r+1]=hc(e[r+1])),kf(e,Ve,r,!0),kf(e,Ve,r,!1),function ib(e,t,n,r,s){const l=s?e.residualClasses:e.residualStyles;null!=l&&"string"==typeof t&&G(l,t)>=0&&(n[r+1]=pc(n[r+1]))}(t,Ve,e,r,l),y=La(I,N),l?t.classBindings=y:t.styleBindings=y}(s,l,t,n,y,r)}}function Qc(e,t,n,r,s){let l=null;const y=n.directiveEnd;let I=n.directiveStylingLast;for(-1===I?I=n.directiveStart:I++;I0;){const N=e[s],pe=Array.isArray(N),Ve=pe?N[1]:N,ut=null===Ve;let Pt=n[s+1];Pt===$n&&(Pt=ut?$e:void 0);let $t=ut?D(Pt,r):Ve===r?Pt:void 0;if(pe&&!qa($t)&&($t=D(N,r)),qa($t)&&(I=$t,y))return I;const ln=e[s+1];s=y?Xr(ln):ys(ln)}if(null!==t){let N=l?t.residualClasses:t.residualStyles;null!=N&&(I=D(N,r))}return I}function qa(e){return void 0!==e}function Wf(e,t){return 0!=(e.flags&(t?16:32))}function Yf(e,t=""){const n=on(),r=Hn(),s=e+22,l=r.firstCreatePass?yo(r,s,1,t,null):r.data[s],y=n[s]=function ec(e,t){return e.createText(t)}(n[11],t);ka(r,n,y,l),te(l,!1)}function Zc(e){return Xa("",e,""),Zc}function Xa(e,t,n){const r=on(),s=wo(r,e,t,n);return s!==$n&&vs(r,L(),s),Xa}function qc(e,t,n,r,s){const l=on(),y=Co(l,e,t,n,r,s);return y!==$n&&vs(l,L(),y),qc}function tp(e,t,n){es(S,ds,wo(on(),e,t,n),!0)}function np(e,t,n){!function us(e){es(Gf,db,e,!1)}(wo(on(),e,t,n))}function Xc(e,t,n){const r=on();return _r(r,Br(),t)&&Ur(Hn(),De(),r,e,t,r[11],n,!0),Xc}function Jc(e,t,n){const r=on();if(_r(r,Br(),t)){const l=Hn(),y=De();Ur(l,y,r,e,t,Jh(Vr(l.data),y,r),n,!0)}return Jc}const Ys=void 0;var Lb=["en",[["a","p"],["AM","PM"],Ys],[["AM","PM"],Ys,Ys],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Ys,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Ys,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Ys,"{1} 'at' {0}",Ys],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Fb(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let Io={};function eu(e){const t=function Bb(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=fp(t);if(n)return n;const r=t.split("-")[0];if(n=fp(r),n)return n;if("en"===r)return Lb;throw new ae(701,!1)}function hp(e){return eu(e)[Bn.PluralCase]}function fp(e){return e in Io||(Io[e]=_.ng&&_.ng.common&&_.ng.common.locales&&_.ng.common.locales[e]),Io[e]}var Bn=(()=>((Bn=Bn||{})[Bn.LocaleId=0]="LocaleId",Bn[Bn.DayPeriodsFormat=1]="DayPeriodsFormat",Bn[Bn.DayPeriodsStandalone=2]="DayPeriodsStandalone",Bn[Bn.DaysFormat=3]="DaysFormat",Bn[Bn.DaysStandalone=4]="DaysStandalone",Bn[Bn.MonthsFormat=5]="MonthsFormat",Bn[Bn.MonthsStandalone=6]="MonthsStandalone",Bn[Bn.Eras=7]="Eras",Bn[Bn.FirstDayOfWeek=8]="FirstDayOfWeek",Bn[Bn.WeekendRange=9]="WeekendRange",Bn[Bn.DateFormat=10]="DateFormat",Bn[Bn.TimeFormat=11]="TimeFormat",Bn[Bn.DateTimeFormat=12]="DateTimeFormat",Bn[Bn.NumberSymbols=13]="NumberSymbols",Bn[Bn.NumberFormats=14]="NumberFormats",Bn[Bn.CurrencyCode=15]="CurrencyCode",Bn[Bn.CurrencySymbol=16]="CurrencySymbol",Bn[Bn.CurrencyName=17]="CurrencyName",Bn[Bn.Currencies=18]="Currencies",Bn[Bn.Directionality=19]="Directionality",Bn[Bn.PluralCase=20]="PluralCase",Bn[Bn.ExtraData=21]="ExtraData",Bn))();const Ro="en-US";let pp=Ro;function iu(e,t,n,r,s){if(e=k(e),Array.isArray(e))for(let l=0;l>20;if(js(e)||!e.multi){const $t=new Qt(N,s,_o),ln=su(I,t,s?Ve:Ve+Pt,ut);-1===ln?(Xs(Es(pe,y),l,I),ru(l,e,t.length),t.push(I),pe.directiveStart++,pe.directiveEnd++,s&&(pe.providerIndexes+=1048576),n.push($t),y.push($t)):(n[ln]=$t,y[ln]=$t)}else{const $t=su(I,t,Ve+Pt,ut),ln=su(I,t,Ve,Ve+Pt),fn=$t>=0&&n[$t],Dn=ln>=0&&n[ln];if(s&&!Dn||!s&&!fn){Xs(Es(pe,y),l,I);const In=function F0(e,t,n,r,s){const l=new Qt(e,n,_o);return l.multi=[],l.index=t,l.componentProviders=0,Vp(l,s,r&&!n),l}(s?P0:k0,n.length,s,r,N);!s&&Dn&&(n[ln].providerFactory=In),ru(l,e,t.length,0),t.push(I),pe.directiveStart++,pe.directiveEnd++,s&&(pe.providerIndexes+=1048576),n.push(In),y.push(In)}else ru(l,e,$t>-1?$t:ln,Vp(n[s?ln:$t],N,!s&&r));!s&&r&&Dn&&n[ln].componentProviders++}}}function ru(e,t,n,r){const s=js(t),l=function u_(e){return!!e.useClass}(t);if(s||l){const N=(l?k(t.useClass):t).prototype.ngOnDestroy;if(N){const pe=e.destroyHooks||(e.destroyHooks=[]);if(!s&&t.multi){const Ve=pe.indexOf(n);-1===Ve?pe.push(n,[r,N]):pe[Ve+1].push(r,N)}else pe.push(n,N)}}}function Vp(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function su(e,t,n,r){for(let s=n;s{n.providersResolver=(r,s)=>function O0(e,t,n){const r=Hn();if(r.firstCreatePass){const s=_i(e);iu(n,r.data,r.blueprint,s,!0),iu(t,r.data,r.blueprint,s,!1)}}(r,s?s(e):e,t)}}class ko{}class jp{}function L0(e,t){return new Up(e,t??null)}class Up extends ko{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Pc(this);const r=rt(t);this._bootstrapComponents=_s(r.bootstrap),this._r3Injector=_h(t,n,[{provide:ko,useValue:this},{provide:Zo,useValue:this.componentFactoryResolver}],w(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class au extends jp{constructor(t){super(),this.moduleType=t}create(t){return new Up(this.moduleType,t)}}class B0 extends ko{constructor(t,n,r){super(),this.componentFactoryResolver=new Pc(this),this.instance=null;const s=new xd([...t,{provide:ko,useValue:this},{provide:Zo,useValue:this.componentFactoryResolver}],n||Ra(),r,new Set(["environment"]));this.injector=s,s.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function lu(e,t,n=null){return new B0(e,t,n).injector}function Qp(e,t,n){const r=mi()+e,s=on();return s[r]===$n?cs(s,r,n?t.call(n):t()):oa(s,r)}function Zp(e,t,n,r){return Xp(on(),mi(),e,t,n,r)}function qp(e,t,n,r,s,l,y,I,N){const pe=mi()+e,Ve=on(),ut=function Yr(e,t,n,r,s,l){const y=Ws(e,t,n,r);return Ws(e,t+2,s,l)||y}(Ve,pe,n,r,s,l);return Ws(Ve,pe+4,y,I)||ut?cs(Ve,pe+6,N?t.call(N,n,r,s,l,y,I):t(n,r,s,l,y,I)):oa(Ve,pe+6)}function ha(e,t){const n=e[t];return n===$n?void 0:n}function Xp(e,t,n,r,s,l){const y=t+n;return _r(e,y,s)?cs(e,y+1,l?r.call(l,s):r(s)):ha(e,y+1)}function im(e,t){const n=Hn();let r;const s=e+22;n.firstCreatePass?(r=function tw(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[s]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,r.onDestroy)):r=n.data[s];const l=r.factory||(r.factory=Li(r.type)),y=x(_o);try{const I=Mi(!1),N=l();return Mi(I),function qv(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,on(),s,N),N}finally{x(y)}}function rm(e,t,n){const r=e+22,s=on(),l=ji(s,r);return fa(s,r)?Xp(s,mi(),t,l.transform,n,l):l.transform(n)}function sm(e,t,n,r){const s=e+22,l=on(),y=ji(l,s);return fa(l,s)?function Jp(e,t,n,r,s,l,y){const I=t+n;return Ws(e,I,s,l)?cs(e,I+2,y?r.call(y,s,l):r(s,l)):ha(e,I+2)}(l,mi(),t,y.transform,n,r,y):y.transform(n,r)}function fa(e,t){return e[1].data[t].pure}function uu(e){return t=>{setTimeout(e,void 0,t)}}const hs=class sw extends i.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let s=t,l=n||(()=>null),y=r;if(t&&"object"==typeof t){const N=t;s=N.next?.bind(N),l=N.error?.bind(N),y=N.complete?.bind(N)}this.__isAsync&&(l=uu(l),s&&(s=uu(s)),y&&(y=uu(y)));const I=super.subscribe({next:s,error:l,complete:y});return t instanceof a.w&&t.add(I),I}};function ow(){return this._results[zs()]()}class il{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=zs(),r=il.prototype;r[n]||(r[n]=ow)}get changes(){return this._changes||(this._changes=new hs)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const r=this;r.dirty=!1;const s=mr(t);(this._changesDetected=!function vl(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r{class e{}return e.__NG_ELEMENT_ID__=cw,e})();const aw=pa,lw=class extends aw{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t,n){const r=this._declarationTContainer.tViews,s=Va(this._declarationLView,r,t,16,null,r.declTNode,null,null,null,null,n||null);s[17]=this._declarationLView[this._declarationTContainer.index];const y=this._declarationLView[19];return null!==y&&(s[19]=y.createEmbeddedView(r)),Ha(r,s,t),new ia(s)}};function cw(){return rl(li(),on())}function rl(e,t){return 4&e.type?new lw(t,e,fo(e,t)):null}let sl=(()=>{class e{}return e.__NG_ELEMENT_ID__=uw,e})();function uw(){return lm(li(),on())}const dw=sl,om=class extends dw{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return fo(this._hostTNode,this._hostLView)}get injector(){return new xs(this._hostTNode,this._hostLView)}get parentInjector(){const t=qs(this._hostTNode,this._hostLView);if(ei(t)){const n=xi(t,this._hostLView),r=ri(t);return new xs(n[1].data[r+8],n)}return new xs(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=am(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,r){let s,l;"number"==typeof r?s=r:null!=r&&(s=r.index,l=r.injector);const y=t.createEmbeddedView(n||{},l);return this.insert(y,s),y}createComponent(t,n,r,s,l){const y=t&&!function Fs(e){return"function"==typeof e}(t);let I;if(y)I=n;else{const ut=n||{};I=ut.index,r=ut.injector,s=ut.projectableNodes,l=ut.environmentInjector||ut.ngModuleRef}const N=y?t:new ra(Ht(t)),pe=r||this.parentInjector;if(!l&&null==N.ngModule){const Pt=(y?pe:this.parentInjector).get(Us,null);Pt&&(l=Pt)}const Ve=N.create(pe,s,void 0,l);return this.insert(Ve.hostView,I),Ve}insert(t,n){const r=t._lView,s=r[1];if(function q(e){return Ci(e[3])}(r)){const Ve=this.indexOf(t);if(-1!==Ve)this.detach(Ve);else{const ut=r[3],Pt=new om(ut,ut[6],ut[3]);Pt.detach(Pt.indexOf(t))}}const l=this._adjustIndex(n),y=this._lContainer;!function cy(e,t,n,r){const s=10+r,l=n.length;r>0&&(n[s-1][4]=t),r0)r.push(y[I/2]);else{const pe=l[I+1],Ve=t[-N];for(let ut=10;ut{class e{constructor(n){this.appInits=n,this.resolve=al,this.reject=al,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,s)=>{this.resolve=r,this.reject=s})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let s=0;s{l.subscribe({complete:I,error:N})});n.push(y)}}Promise.all(n).then(()=>{r()}).catch(s=>{this.reject(s)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(Zi(Lm,8))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Bm=new gi("AppId",{providedIn:"root",factory:function Nm(){return`${wu()}${wu()}${wu()}`}});function wu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Vm=new gi("Platform Initializer"),Hw=new gi("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Hm=new gi("appBootstrapListener"),jw=new gi("AnimationModuleType");let Uw=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Oe({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const cl=new gi("LocaleId",{providedIn:"root",factory:()=>qu(cl,R.Optional|R.SkipSelf)||function Gw(){return typeof $localize<"u"&&$localize.locale||Ro}()}),$w=new gi("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class zw{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let Ww=(()=>{class e{compileModuleSync(n){return new au(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),l=_s(rt(n).declarations).reduce((y,I)=>{const N=Ht(I);return N&&y.push(new ra(N)),y},[]);return new zw(r,l)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Oe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Qw=(()=>Promise.resolve(0))();function Cu(e){typeof Zone>"u"?Qw.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Gr{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new hs(!1),this.onMicrotaskEmpty=new hs(!1),this.onStable=new hs(!1),this.onError=new hs(!1),typeof Zone>"u")throw new ae(908,!1);Zone.assertZonePatched();const s=this;if(s._nesting=0,s._outer=s._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const l=Zone.AsyncStackTaggingZoneSpec;s._inner=s._inner.fork(new l("Angular"))}Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!r&&n,s.shouldCoalesceRunChangeDetection=r,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function Zw(){let e=_.requestAnimationFrame,t=_.cancelAnimationFrame;if(typeof Zone<"u"&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function Jw(e){const t=()=>{!function Xw(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(_,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Eu(e),e.isCheckStableRunning=!0,Du(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Eu(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,s,l,y,I)=>{try{return Gm(e),n.invokeTask(s,l,y,I)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===l.type||e.shouldCoalesceRunChangeDetection)&&t(),$m(e)}},onInvoke:(n,r,s,l,y,I,N)=>{try{return Gm(e),n.invoke(s,l,y,I,N)}finally{e.shouldCoalesceRunChangeDetection&&t(),$m(e)}},onHasTask:(n,r,s,l)=>{n.hasTask(s,l),r===s&&("microTask"==l.change?(e._hasPendingMicrotasks=l.microTask,Eu(e),Du(e)):"macroTask"==l.change&&(e.hasPendingMacrotasks=l.macroTask))},onHandleError:(n,r,s,l)=>(n.handleError(s,l),e.runOutsideAngular(()=>e.onError.emit(l)),!1)})}(s)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Gr.isInAngularZone())throw new ae(909,!1)}static assertNotInAngularZone(){if(Gr.isInAngularZone())throw new ae(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,s){const l=this._inner,y=l.scheduleEventTask("NgZoneEvent: "+s,t,qw,al,al);try{return l.runTask(y,n,r)}finally{l.cancelTask(y)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const qw={};function Du(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Eu(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Gm(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function $m(e){e._nesting--,Du(e)}class eC{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new hs,this.onMicrotaskEmpty=new hs,this.onStable=new hs,this.onError=new hs}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,s){return t.apply(n,r)}}const zm=new gi(""),Wm=new gi("");let xu,tC=(()=>{class e{constructor(n,r,s){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,xu||(function nC(e){xu=e}(s),s.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Gr.assertNotInAngularZone(),Cu(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Cu(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,s){let l=-1;r&&r>0&&(l=setTimeout(()=>{this._callbacks=this._callbacks.filter(y=>y.timeoutId!==l),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:l,updateCb:s})}whenStable(n,r,s){if(s&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,s),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,s){return[]}}return e.\u0275fac=function(n){return new(n||e)(Zi(Gr),Zi(Ym),Zi(Wm))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e})(),Ym=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return xu?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Oe({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),Ts=null;const Km=new gi("AllowMultipleToken"),Mu=new gi("PlatformDestroyListeners");class sC{constructor(t,n){this.name=t,this.token=n}}function Zm(e,t,n=[]){const r=`Platform: ${t}`,s=new gi(r);return(l=[])=>{let y=Su();if(!y||y.injector.get(Km,!1)){const I=[...n,...l,{provide:s,useValue:!0}];e?e(I):function oC(e){if(Ts&&!Ts.get(Km,!1))throw new ae(400,!1);Ts=e;const t=e.get(Xm);(function Qm(e){const t=e.get(Vm,null);t&&t.forEach(n=>n())})(e)}(function qm(e=[],t){return $s.create({name:t,providers:[{provide:Ll,useValue:"platform"},{provide:Mu,useValue:new Set([()=>Ts=null])},...e]})}(I,r))}return function lC(e){const t=Su();if(!t)throw new ae(401,!1);return t}()}}function Su(){return Ts?.get(Xm)??null}let Xm=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const s=function cC(e,t){let n;return n="noop"===e?new eC:("zone.js"===e?void 0:e)||new Gr(t),n}(r?.ngZone,function Jm(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(r)),l=[{provide:Gr,useValue:s}];return s.run(()=>{const y=$s.create({providers:l,parent:this.injector,name:n.moduleType.name}),I=n.create(y),N=I.injector.get(Xo,null);if(!N)throw new ae(402,!1);return s.runOutsideAngular(()=>{const pe=s.onError.subscribe({next:Ve=>{N.handleError(Ve)}});I.onDestroy(()=>{dl(this._modules,I),pe.unsubscribe()})}),function eg(e,t,n){try{const r=n();return Gc(r)?r.catch(s=>{throw t.runOutsideAngular(()=>e.handleError(s)),s}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(N,s,()=>{const pe=I.injector.get(ll);return pe.runInitializers(),pe.donePromise.then(()=>(function mp(e){jt(e,"Expected localeId to be defined"),"string"==typeof e&&(pp=e.toLowerCase().replace(/_/g,"-"))}(I.injector.get(cl,Ro)||Ro),this._moduleDoBootstrap(I),I))})})}bootstrapModule(n,r=[]){const s=tg({},r);return function iC(e,t,n){const r=new au(n);return Promise.resolve(r)}(0,0,n).then(l=>this.bootstrapModuleFactory(l,s))}_moduleDoBootstrap(n){const r=n.injector.get(ul);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(s=>r.bootstrap(s));else{if(!n.instance.ngDoBootstrap)throw new ae(403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ae(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(Mu,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(Zi($s))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function tg(e,t){return Array.isArray(t)?t.reduce(tg,e):{...e,...t}}let ul=(()=>{class e{constructor(n,r,s){this._zone=n,this._injector=r,this._exceptionHandler=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const l=new c.y(I=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{I.next(this._stable),I.complete()})}),y=new c.y(I=>{let N;this._zone.runOutsideAngular(()=>{N=this._zone.onStable.subscribe(()=>{Gr.assertNotInAngularZone(),Cu(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,I.next(!0))})})});const pe=this._zone.onUnstable.subscribe(()=>{Gr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{I.next(!1)}))});return()=>{N.unsubscribe(),pe.unsubscribe()}});this.isStable=(0,v.T)(l,y.pipe((0,b.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const s=n instanceof Sd;if(!this._injector.get(ll).done)throw!s&&Fo(n),new ae(405,false);let y;y=s?n:this._injector.get(Zo).resolveComponentFactory(n),this.componentTypes.push(y.componentType);const I=function rC(e){return e.isBoundToModule}(y)?void 0:this._injector.get(ko),pe=y.create($s.NULL,[],r||y.selector,I),Ve=pe.location.nativeElement,ut=pe.injector.get(zm,null);return ut?.registerApplication(Ve),pe.onDestroy(()=>{this.detachView(pe.hostView),dl(this.components,pe),ut?.unregisterApplication(Ve)}),this._loadComponent(pe),pe}tick(){if(this._runningTick)throw new ae(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;dl(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(Hm,[]).concat(this._bootstrapListeners).forEach(s=>s(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>dl(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new ae(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(n){return new(n||e)(Zi(Gr),Zi(Us),Zi(Xo))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function dl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let ig=!0;function dC(){ig=!1}let hC=(()=>{class e{}return e.__NG_ELEMENT_ID__=fC,e})();function fC(e){return function pC(e,t,n){if(hr(e)&&!n){const r=Ei(e.index,t);return new ia(r,r)}return 47&e.type?new ia(t[16],t):null}(li(),on(),16==(16&e))}class lg{constructor(){}supports(t){return sa(t)}create(t){return new bC(t)}}const vC=(e,t)=>t;class bC{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||vC}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,s=0,l=null;for(;n||r;){const y=!r||n&&n.currentIndex{y=this._trackByFn(s,I),null!==n&&Object.is(n.trackById,y)?(r&&(n=this._verifyReinsertion(n,I,y,s)),Object.is(n.item,I)||this._addIdentityChange(n,I)):(n=this._mismatch(n,I,y,s),r=!0),n=n._next,s++}),this.length=s;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,s){let l;return null===t?l=this._itTail:(l=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,l,s)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,s))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,l,s)):t=this._addAfter(new wC(n,r),l,s),t}_verifyReinsertion(t,n,r,s){let l=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==l?t=this._reinsertAfter(l,t._prev,s):t.currentIndex!=s&&(t.currentIndex=s,this._addToMoves(t,s)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const s=t._prevRemoved,l=t._nextRemoved;return null===s?this._removalsHead=l:s._nextRemoved=l,null===l?this._removalsTail=s:l._prevRemoved=s,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const s=null===n?this._itHead:n._next;return t._next=s,t._prev=n,null===s?this._itTail=t:s._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new cg),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new cg),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class wC{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class CC{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class cg{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new CC,this.map.set(n,r)),r.add(t)}get(t,n){const s=this.map.get(t);return s?s.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function ug(e,t,n){const r=e.previousIndex;if(null===r)return r;let s=0;return n&&r{if(n&&n.key===s)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const l=this._getOrCreateRecordForKey(s,r);n=this._insertBeforeOrAppend(n,l)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const s=this._records.get(t);this._maybeAddToChanges(s,n);const l=s._prev,y=s._next;return l&&(l._next=y),y&&(y._prev=l),s._next=null,s._prev=null,s}const r=new EC(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class EC{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function hg(){return new Ou([new lg])}let Ou=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const s=r.factories.slice();n=n.concat(s)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||hg()),deps:[[e,new $o,new Go]]}}find(n){const r=this.factories.find(s=>s.supports(n));if(null!=r)return r;throw new ae(901,!1)}}return e.\u0275prov=Oe({token:e,providedIn:"root",factory:hg}),e})();function fg(){return new ku([new dg])}let ku=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const s=r.factories.slice();n=n.concat(s)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||fg()),deps:[[e,new $o,new Go]]}}find(n){const r=this.factories.find(s=>s.supports(n));if(r)return r;throw new ae(901,!1)}}return e.\u0275prov=Oe({token:e,providedIn:"root",factory:fg}),e})();const SC=Zm(null,"core",[]);let AC=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(Zi(ul))},e.\u0275mod=Ye({type:e}),e.\u0275inj=be({}),e})();function TC(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}},5863:(Ct,ke,u)=>{"use strict";function i(O){for(let P in O){let k=O[P]??"";switch(P){case"display":O.display="flex"===k?["-webkit-flex","flex"]:"inline-flex"===k?["-webkit-inline-flex","inline-flex"]:k;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":O["-webkit-"+P]=k;break;case"flex-direction":O["-webkit-flex-direction"]=k,O["flex-direction"]=k;break;case"order":O.order=O["-webkit-"+P]=isNaN(+k)?"0":k}}return O}u.d(ke,{Ar:()=>v,GK:()=>i,iQ:()=>c,kt:()=>B,tj:()=>h});const a="inline",c=["row","column","row-reverse","column-reverse"];function v(O){let[P,k,F]=b(O);return function w(O,P=null,k=!1){return{display:k?"inline-flex":"flex","box-sizing":"border-box","flex-direction":O,"flex-wrap":P||null}}(P,k,F)}function b(O){O=O?.toLowerCase()??"";let[P,k,F]=O.split(" ");return c.find(z=>z===P)||(P=c[0]),k===a&&(k=F!==a?F:"",F=a),[P,g(k),!!F]}function h(O){let[P]=b(O);return P.indexOf("row")>-1}function g(O){if(O)switch(O.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":O="wrap-reverse";break;case"no":case"none":case"nowrap":O="nowrap";break;default:O="wrap"}return O}function B(O,...P){if(null==O)throw TypeError("Cannot convert undefined or null to object");for(let k of P)if(null!=k)for(let F in k)k.hasOwnProperty(F)&&(O[F]=k[F]);return O}},2233:(Ct,ke,u)=>{"use strict";u.d(ke,{Bs:()=>ge,FL:()=>St,IR:()=>F,Ot:()=>ve,QI:()=>ie,RK:()=>he,WU:()=>ue,g5:()=>we,iR:()=>p,wY:()=>le,yB:()=>Re});var i=u(4650),a=u(6895),c=u(591),v=u(6498),b=u(6787),h=u(8929),g=u(5863),w=u(2198),B=u(2868);const P={provide:i.tb,useFactory:function O(dt,Et){return()=>{if((0,a.NF)(Et)){const ye=Array.from(dt.querySelectorAll(`[class*=${k}]`)),qe=/\bflex-layout-.+?\b/g;ye.forEach(xe=>{xe.classList.contains(`${k}ssr`)&&xe.parentNode?xe.parentNode.removeChild(xe):xe.className.replace(qe,"")})}}},deps:[a.K0,i.Lbi],multi:!0},k="flex-layout-";let F=(()=>{class dt{}return dt.\u0275fac=function(ye){return new(ye||dt)},dt.\u0275mod=i.oAB({type:dt}),dt.\u0275inj=i.cJS({providers:[P]}),dt})();class z{constructor(Et=!1,ye="all",qe="",xe="",Fe=0){this.matches=Et,this.mediaQuery=ye,this.mqAlias=qe,this.suffix=xe,this.priority=Fe,this.property=""}clone(){return new z(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let ae=(()=>{class dt{constructor(){this.stylesheet=new Map}addStyleToElement(ye,qe,xe){const Fe=this.stylesheet.get(ye);Fe?Fe.set(qe,xe):this.stylesheet.set(ye,new Map([[qe,xe]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(ye,qe){const xe=this.stylesheet.get(ye);let Fe="";if(xe){const ot=xe.get(qe);("number"==typeof ot||"string"==typeof ot)&&(Fe=ot+"")}return Fe}}return dt.\u0275fac=function(ye){return new(ye||dt)},dt.\u0275prov=i.Yz7({token:dt,factory:dt.\u0275fac,providedIn:"root"}),dt})();const we={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},ue=new i.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>we}),le=new i.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),ge=new i.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function W(dt,Et){return dt=dt?.clone()??new z,Et&&(dt.mqAlias=Et.alias,dt.mediaQuery=Et.mediaQuery,dt.suffix=Et.suffix,dt.priority=Et.priority),dt}class ie{constructor(){this.shouldCache=!0}sideEffect(Et,ye,qe){}}let he=(()=>{class dt{constructor(ye,qe,xe,Fe){this._serverStylesheet=ye,this._serverModuleLoaded=qe,this._platformId=xe,this.layoutConfig=Fe}applyStyleToElement(ye,qe,xe=null){let Fe={};"string"==typeof qe&&(Fe[qe]=xe,qe=Fe),Fe=this.layoutConfig.disableVendorPrefixes?qe:(0,g.GK)(qe),this._applyMultiValueStyleToElement(Fe,ye)}applyStyleToElements(ye,qe=[]){const xe=this.layoutConfig.disableVendorPrefixes?ye:(0,g.GK)(ye);qe.forEach(Fe=>{this._applyMultiValueStyleToElement(xe,Fe)})}getFlowDirection(ye){const qe="flex-direction";let xe=this.lookupStyle(ye,qe);return[xe||"row",this.lookupInlineStyle(ye,qe)||(0,a.PM)(this._platformId)&&this._serverModuleLoaded?xe:""]}hasWrap(ye){return"wrap"===this.lookupStyle(ye,"flex-wrap")}lookupAttributeValue(ye,qe){return ye.getAttribute(qe)??""}lookupInlineStyle(ye,qe){return(0,a.NF)(this._platformId)?ye.style.getPropertyValue(qe):function se(dt,Et){return it(dt)[Et]??""}(ye,qe)}lookupStyle(ye,qe,xe=!1){let Fe="";return ye&&((Fe=this.lookupInlineStyle(ye,qe))||((0,a.NF)(this._platformId)?xe||(Fe=getComputedStyle(ye).getPropertyValue(qe)):this._serverModuleLoaded&&(Fe=this._serverStylesheet.getStyleForElement(ye,qe)))),Fe?Fe.trim():""}_applyMultiValueStyleToElement(ye,qe){Object.keys(ye).sort().forEach(xe=>{const Fe=ye[xe],ot=Array.isArray(Fe)?Fe:[Fe];ot.sort();for(let ce of ot)ce=ce?ce+"":"",(0,a.NF)(this._platformId)||!this._serverModuleLoaded?(0,a.NF)(this._platformId)?qe.style.setProperty(xe,ce):Me(qe,xe,ce):this._serverStylesheet.addStyleToElement(qe,xe,ce)})}}return dt.\u0275fac=function(ye){return new(ye||dt)(i.LFG(ae),i.LFG(le),i.LFG(i.Lbi),i.LFG(ue))},dt.\u0275prov=i.Yz7({token:dt,factory:dt.\u0275fac,providedIn:"root"}),dt})();function Me(dt,Et,ye){Et=Et.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const qe=it(dt);qe[Et]=ye??"",function Ge(dt,Et){let ye="";for(const qe in Et)Et[qe]&&(ye+=`${qe}:${Et[qe]};`);dt.setAttribute("style",ye)}(dt,qe)}function it(dt){const Et={},ye=dt.getAttribute("style");if(ye){const qe=ye.split(/;+/g);for(let xe=0;xe0){const ot=Fe.indexOf(":");if(-1===ot)throw new Error(`Invalid CSS style: ${Fe}`);Et[Fe.substr(0,ot).trim()]=Fe.substr(ot+1).trim()}}}return Et}function Ke(dt,Et){return(Et&&Et.priority||0)-(dt&&dt.priority||0)}function tt(dt,Et){return(dt.priority||0)-(Et.priority||0)}let me=(()=>{class dt{constructor(ye,qe,xe){this._zone=ye,this._platformId=qe,this._document=xe,this.source=new c.X(new z(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const ye=[];return this.registry.forEach((qe,xe)=>{qe.matches&&ye.push(xe)}),ye}isActive(ye){return this.registry.get(ye)?.matches??this.registerQuery(ye).some(xe=>xe.matches)}observe(ye,qe=!1){if(ye&&ye.length){const xe=this._observable$.pipe((0,w.h)(ot=>!qe||ye.indexOf(ot.mediaQuery)>-1)),Fe=new v.y(ot=>{const ce=this.registerQuery(ye);if(ce.length){const je=ce.pop();ce.forEach(Ce=>{ot.next(Ce)}),this.source.next(je)}ot.complete()});return(0,b.T)(Fe,xe)}return this._observable$}registerQuery(ye){const qe=Array.isArray(ye)?ye:[ye],xe=[];return function Ae(dt,Et){const ye=dt.filter(qe=>!Xe[qe]);if(ye.length>0){const qe=ye.join(", ");try{const xe=Et.createElement("style");xe.setAttribute("type","text/css"),xe.styleSheet||xe.appendChild(Et.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${qe} {.fx-query-test{ }}\n`)),Et.head.appendChild(xe),ye.forEach(Fe=>Xe[Fe]=xe)}catch(xe){console.error(xe)}}}(qe,this._document),qe.forEach(Fe=>{const ot=je=>{this._zone.run(()=>this.source.next(new z(je.matches,Fe)))};let ce=this.registry.get(Fe);ce||(ce=this.buildMQL(Fe),ce.addListener(ot),this.pendingRemoveListenerFns.push(()=>ce.removeListener(ot)),this.registry.set(Fe,ce)),ce.matches&&xe.push(new z(!0,Fe))}),xe}ngOnDestroy(){let ye;for(;ye=this.pendingRemoveListenerFns.pop();)ye()}buildMQL(ye){return function ht(dt,Et){return Et&&window.matchMedia("all").addListener?window.matchMedia(dt):function _t(dt){const Et=new EventTarget;return Et.matches="all"===dt||""===dt,Et.media=dt,Et.addListener=()=>{},Et.removeListener=()=>{},Et.addEventListener=()=>{},Et.dispatchEvent=()=>!1,Et.onchange=null,Et}(dt)}(ye,(0,a.NF)(this._platformId))}}return dt.\u0275fac=function(ye){return new(ye||dt)(i.LFG(i.R0b),i.LFG(i.Lbi),i.LFG(a.K0))},dt.\u0275prov=i.Yz7({token:dt,factory:dt.\u0275fac,providedIn:"root"}),dt})();const Xe={},Yt=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],Dt="(orientation: portrait) and (max-width: 599.98px)",jt="(orientation: landscape) and (max-width: 959.98px)",V="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",Ee="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",oe="(orientation: portrait) and (min-width: 840px)",_e="(orientation: landscape) and (min-width: 1280px)",Oe={HANDSET:`${Dt}, ${jt}`,TABLET:`${V} , ${Ee}`,WEB:`${oe}, ${_e} `,HANDSET_PORTRAIT:`${Dt}`,TABLET_PORTRAIT:`${V} `,WEB_PORTRAIT:`${oe}`,HANDSET_LANDSCAPE:`${jt}`,TABLET_LANDSCAPE:`${Ee}`,WEB_LANDSCAPE:`${_e}`},at=[{alias:"handset",priority:2e3,mediaQuery:Oe.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Oe.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Oe.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Oe.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Oe.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Oe.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Oe.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Oe.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Oe.WEB_PORTRAIT,overlapping:!0}],be=/(\.|-|_)/g;function et(dt){let Et=dt.length>0?dt.charAt(0):"",ye=dt.length>1?dt.slice(1):"";return Et.toUpperCase()+ye}const wt=new i.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const dt=(0,i.f3M)(ge),Et=(0,i.f3M)(ue),ye=[].concat.apply([],(dt||[]).map(xe=>Array.isArray(xe)?xe:[xe]));return function We(dt,Et=[]){const ye={};return dt.forEach(qe=>{ye[qe.alias]=qe}),Et.forEach(qe=>{ye[qe.alias]?(0,g.kt)(ye[qe.alias],qe):ye[qe.alias]=qe}),function gt(dt){return dt.forEach(Et=>{Et.suffix||(Et.suffix=function Mt(dt){return dt.replace(be,"|").split("|").map(et).join("")}(Et.alias),Et.overlapping=!!Et.overlapping)}),dt}(Object.keys(ye).map(qe=>ye[qe]))}((Et.disableDefaultBps?[]:Yt).concat(Et.addOrientationBps?at:[]),ye)}});let nt=(()=>{class dt{constructor(ye){this.findByMap=new Map,this.items=[...ye].sort(tt)}findByAlias(ye){return ye?this.findWithPredicate(ye,qe=>qe.alias===ye):null}findByQuery(ye){return this.findWithPredicate(ye,qe=>qe.mediaQuery===ye)}get overlappings(){return this.items.filter(ye=>ye.overlapping)}get aliases(){return this.items.map(ye=>ye.alias)}get suffixes(){return this.items.map(ye=>ye?.suffix??"")}findWithPredicate(ye,qe){let xe=this.findByMap.get(ye);return xe||(xe=this.items.find(qe)??null,this.findByMap.set(ye,xe)),xe??null}}return dt.\u0275fac=function(ye){return new(ye||dt)(i.LFG(wt))},dt.\u0275prov=i.Yz7({token:dt,factory:dt.\u0275fac,providedIn:"root"}),dt})();const Q="print",Le={alias:Q,mediaQuery:Q,priority:1e3};let ee=(()=>{class dt{constructor(ye,qe,xe){this.breakpoints=ye,this.layoutConfig=qe,this._document=xe,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new R,this.deactivations=[]}withPrintQuery(ye){return[...ye,Q]}isPrintEvent(ye){return ye.mediaQuery.startsWith(Q)}get printAlias(){return[...this.layoutConfig.printWithBreakpoints??[]]}get printBreakPoints(){return this.printAlias.map(ye=>this.breakpoints.findByAlias(ye)).filter(ye=>null!==ye)}getEventBreakpoints({mediaQuery:ye}){const qe=this.breakpoints.findByQuery(ye);return(qe?[...this.printBreakPoints,qe]:this.printBreakPoints).sort(Ke)}updateEvent(ye){let qe=this.breakpoints.findByQuery(ye.mediaQuery);return this.isPrintEvent(ye)&&(qe=this.getEventBreakpoints(ye)[0],ye.mediaQuery=qe?.mediaQuery??""),W(ye,qe)}registerBeforeAfterPrintHooks(ye){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const qe=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(ye,this.getEventBreakpoints(new z(!0,Q))),ye.updateStyles())},xe=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(ye),ye.updateStyles())};this._document.defaultView.addEventListener("beforeprint",qe),this._document.defaultView.addEventListener("afterprint",xe),this.beforePrintEventListeners.push(qe),this.afterPrintEventListeners.push(xe)}interceptEvents(ye){return qe=>{this.isPrintEvent(qe)?qe.matches&&!this.isPrinting?(this.startPrinting(ye,this.getEventBreakpoints(qe)),ye.updateStyles()):!qe.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(ye),ye.updateStyles()):this.collectActivations(ye,qe)}}blockPropagation(){return ye=>!(this.isPrinting||this.isPrintEvent(ye))}startPrinting(ye,qe){this.isPrinting=!0,this.formerActivations=ye.activatedBreakpoints,ye.activatedBreakpoints=this.queue.addPrintBreakpoints(qe)}stopPrinting(ye){ye.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(ye,qe){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!qe.matches){const xe=this.breakpoints.findByQuery(qe.mediaQuery);if(xe){const Fe=this.formerActivations&&this.formerActivations.includes(xe),ot=!this.formerActivations&&ye.activatedBreakpoints.includes(xe);(Fe||ot)&&(this.deactivations.push(xe),this.deactivations.sort(Ke))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(ye=>this._document.defaultView.removeEventListener("beforeprint",ye)),this.afterPrintEventListeners.forEach(ye=>this._document.defaultView.removeEventListener("afterprint",ye)))}}return dt.\u0275fac=function(ye){return new(ye||dt)(i.LFG(nt),i.LFG(ue),i.LFG(a.K0))},dt.\u0275prov=i.Yz7({token:dt,factory:dt.\u0275fac,providedIn:"root"}),dt})();class R{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(Et){return Et.push(Le),Et.sort(Ke),Et.forEach(ye=>this.addBreakpoint(ye)),this.printBreakpoints}addBreakpoint(Et){Et&&void 0===this.printBreakpoints.find(qe=>qe.mediaQuery===Et.mediaQuery)&&(this.printBreakpoints=function U(dt){return dt?.mediaQuery.startsWith(Q)??!1}(Et)?[Et,...this.printBreakpoints]:[...this.printBreakpoints,Et])}clear(){this.printBreakpoints=[]}}let Re=(()=>{class dt{constructor(ye,qe,xe){this.matchMedia=ye,this.breakpoints=qe,this.hook=xe,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new h.xQ,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?.alias??""}set activatedBreakpoints(ye){this._activatedBreakpoints=[...ye]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(ye){this._useFallbacks=ye}onMediaChange(ye){const qe=this.findByQuery(ye.mediaQuery);if(qe){ye=W(ye,qe);const xe=this.activatedBreakpoints.indexOf(qe);ye.matches&&-1===xe?(this._activatedBreakpoints.push(qe),this._activatedBreakpoints.sort(Ke),this.updateStyles()):!ye.matches&&-1!==xe&&(this._activatedBreakpoints.splice(xe,1),this._activatedBreakpoints.sort(Ke),this.updateStyles())}}init(ye,qe,xe,Fe,ot=[]){x(this.updateMap,ye,qe,xe),x(this.clearMap,ye,qe,Fe),this.buildElementKeyMap(ye,qe),this.watchExtraTriggers(ye,qe,ot)}getValue(ye,qe,xe){const Fe=this.elementMap.get(ye);if(Fe){const ot=void 0!==xe?Fe.get(xe):this.getActivatedValues(Fe,qe);if(ot)return ot.get(qe)}}hasValue(ye,qe){const xe=this.elementMap.get(ye);if(xe){const Fe=this.getActivatedValues(xe,qe);if(Fe)return void 0!==Fe.get(qe)||!1}return!1}setValue(ye,qe,xe,Fe){let ot=this.elementMap.get(ye);if(ot){const je=(ot.get(Fe)??new Map).set(qe,xe);ot.set(Fe,je),this.elementMap.set(ye,ot)}else ot=(new Map).set(Fe,(new Map).set(qe,xe)),this.elementMap.set(ye,ot);const ce=this.getValue(ye,qe);void 0!==ce&&this.updateElement(ye,qe,ce)}trackValue(ye,qe){return this.subject.asObservable().pipe((0,w.h)(xe=>xe.element===ye&&xe.key===qe))}updateStyles(){this.elementMap.forEach((ye,qe)=>{const xe=new Set(this.elementKeyMap.get(qe));let Fe=this.getActivatedValues(ye);Fe&&Fe.forEach((ot,ce)=>{this.updateElement(qe,ce,ot),xe.delete(ce)}),xe.forEach(ot=>{if(Fe=this.getActivatedValues(ye,ot),Fe){const ce=Fe.get(ot);this.updateElement(qe,ot,ce)}else this.clearElement(qe,ot)})})}clearElement(ye,qe){const xe=this.clearMap.get(ye);if(xe){const Fe=xe.get(qe);Fe&&(Fe(),this.subject.next({element:ye,key:qe,value:""}))}}updateElement(ye,qe,xe){const Fe=this.updateMap.get(ye);if(Fe){const ot=Fe.get(qe);ot&&(ot(xe),this.subject.next({element:ye,key:qe,value:xe}))}}releaseElement(ye){const qe=this.watcherMap.get(ye);qe&&(qe.forEach(Fe=>Fe.unsubscribe()),this.watcherMap.delete(ye));const xe=this.elementMap.get(ye);xe&&(xe.forEach((Fe,ot)=>xe.delete(ot)),this.elementMap.delete(ye))}triggerUpdate(ye,qe){const xe=this.elementMap.get(ye);if(xe){const Fe=this.getActivatedValues(xe,qe);Fe&&(qe?this.updateElement(ye,qe,Fe.get(qe)):Fe.forEach((ot,ce)=>this.updateElement(ye,ce,ot)))}}buildElementKeyMap(ye,qe){let xe=this.elementKeyMap.get(ye);xe||(xe=new Set,this.elementKeyMap.set(ye,xe)),xe.add(qe)}watchExtraTriggers(ye,qe,xe){if(xe&&xe.length){let Fe=this.watcherMap.get(ye);if(Fe||(Fe=new Map,this.watcherMap.set(ye,Fe)),!Fe.get(qe)){const ce=(0,b.T)(...xe).subscribe(()=>{const je=this.getValue(ye,qe);this.updateElement(ye,qe,je)});Fe.set(qe,ce)}}}findByQuery(ye){return this.breakpoints.findByQuery(ye)}getActivatedValues(ye,qe){for(let Fe=0;Feqe.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(ye)).pipe((0,B.b)(this.hook.interceptEvents(this)),(0,w.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return dt.\u0275fac=function(ye){return new(ye||dt)(i.LFG(me),i.LFG(nt),i.LFG(ee))},dt.\u0275prov=i.Yz7({token:dt,factory:dt.\u0275fac,providedIn:"root"}),dt})();function x(dt,Et,ye,qe){if(void 0!==qe){const xe=dt.get(Et)??new Map;xe.set(ye,qe),dt.set(Et,xe)}}let p=(()=>{class dt{constructor(ye,qe,xe,Fe){this.elementRef=ye,this.styleBuilder=qe,this.styler=xe,this.marshal=Fe,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new h.xQ,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(ye){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,ye,this.marshal.activatedAlias)}ngOnChanges(ye){Object.keys(ye).forEach(qe=>{if(-1!==this.inputs.indexOf(qe)){const xe=qe.split(".").slice(1).join(".");this.setValue(ye[qe].currentValue,xe)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(ye=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),ye)}addStyles(ye,qe){const xe=this.styleBuilder,Fe=xe.shouldCache;let ot=this.styleCache.get(ye);(!ot||!Fe)&&(ot=xe.buildStyles(ye,qe),Fe&&this.styleCache.set(ye,ot)),this.mru={...ot},this.applyStyleToElement(ot),xe.sideEffect(ye,ot,qe)}clearStyles(){Object.keys(this.mru).forEach(ye=>{this.mru[ye]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(ye,qe=!1){if(ye){const[xe,Fe]=this.styler.getFlowDirection(ye);if(!Fe&&qe){const ot=(0,g.Ar)(xe);this.styler.applyStyleToElements(ot,[ye])}return xe.trim()}return"row"}hasWrap(ye){return this.styler.hasWrap(ye)}applyStyleToElement(ye,qe,xe=this.nativeElement){this.styler.applyStyleToElement(xe,ye,qe)}setValue(ye,qe){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,ye,qe)}updateWithValue(ye){this.currentValue!==ye&&(this.addStyles(ye),this.currentValue=ye)}}return dt.\u0275fac=function(ye){return new(ye||dt)(i.Y36(i.SBq),i.Y36(ie),i.Y36(he),i.Y36(Re))},dt.\u0275dir=i.lG2({type:dt,features:[i.TTD]}),dt})();function ve(dt,Et="1",ye="1"){let qe=[Et,ye,dt],xe=dt.indexOf("calc");if(xe>0){qe[2]=Je(dt.substring(xe).trim());let Fe=dt.substr(0,xe).trim().split(" ");2==Fe.length&&(qe[0]=Fe[0],qe[1]=Fe[1])}else if(0==xe)qe[2]=Je(dt.trim());else{let Fe=dt.split(" ");qe=3===Fe.length?Fe:[Et,ye,dt]}return qe}function Je(dt){return dt.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function St(dt,Et){if(void 0===Et)return dt;const ye=qe=>{const xe=+qe.slice(0,-"x".length);return dt.endsWith("x")&&!isNaN(xe)?`${xe*Et.value}${Et.unit}`:dt};return dt.includes(" ")?dt.split(" ").map(ye).join(" "):ye(dt)}EventTarget},5829:(Ct,ke,u)=>{"use strict";u.d(ke,{aT:()=>jt,b8:()=>he});var i=u(4650),a=u(2233),c=u(6895),v=u(1281),b=u(7625);u(1481);let ue=(()=>{class V extends a.QI{buildStyles(oe,_e){return{display:"true"===oe?_e.display||(_e.isServer?"initial":""):"none"}}}return V.\u0275fac=function(){let Ee;return function(_e){return(Ee||(Ee=i.n5z(V)))(_e||V)}}(),V.\u0275prov=i.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})(),le=(()=>{class V extends a.iR{constructor(oe,_e,Oe,at,be,et,Mt){super(oe,_e,Oe,at),this.layoutConfig=be,this.platformId=et,this.serverModuleLoaded=Mt,this.DIRECTIVE_KEY="show-hide",this.display="",this.hasLayout=!1,this.hasFlexChild=!1}ngAfterViewInit(){this.trackExtraTriggers();const oe=Array.from(this.nativeElement.children);for(let Oe=0;Oe{if(-1!==this.inputs.indexOf(_e)){const Oe=_e.split("."),at=Oe.slice(1).join("."),be=oe[_e].currentValue;let et=""===be||0!==be&&(0,v.Ig)(be);"fxHide"===Oe[0]&&(et=!et),this.setValue(et,at)}})}trackExtraTriggers(){this.hasLayout=this.marshal.hasValue(this.nativeElement,"layout"),["layout","layout-align"].forEach(oe=>{this.marshal.trackValue(this.nativeElement,oe).pipe((0,b.R)(this.destroySubject)).subscribe(this.triggerUpdate.bind(this))})}getDisplayStyle(){return this.hasLayout||this.hasFlexChild&&this.layoutConfig.addFlexToParent?"flex":this.styler.lookupStyle(this.nativeElement,"display",!0)}updateWithValue(oe=!0){if(""===oe)return;const _e=(0,c.PM)(this.platformId);this.addStyles(oe?"true":"false",{display:this.display,isServer:_e}),_e&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}return V.\u0275fac=function(oe){return new(oe||V)(i.Y36(i.SBq),i.Y36(ue),i.Y36(a.RK),i.Y36(a.yB),i.Y36(a.WU),i.Y36(i.Lbi),i.Y36(a.wY))},V.\u0275dir=i.lG2({type:V,features:[i.qOj,i.TTD]}),V})();const ge=new WeakMap,W=["fxShow","fxShow.print","fxShow.xs","fxShow.sm","fxShow.md","fxShow.lg","fxShow.xl","fxShow.lt-sm","fxShow.lt-md","fxShow.lt-lg","fxShow.lt-xl","fxShow.gt-xs","fxShow.gt-sm","fxShow.gt-md","fxShow.gt-lg","fxHide","fxHide.print","fxHide.xs","fxHide.sm","fxHide.md","fxHide.lg","fxHide.xl","fxHide.lt-sm","fxHide.lt-md","fxHide.lt-lg","fxHide.lt-xl","fxHide.gt-xs","fxHide.gt-sm","fxHide.gt-md","fxHide.gt-lg"];let he=(()=>{class V extends le{constructor(){super(...arguments),this.inputs=W}}return V.\u0275fac=function(){let Ee;return function(_e){return(Ee||(Ee=i.n5z(V)))(_e||V)}}(),V.\u0275dir=i.lG2({type:V,selectors:[["","fxShow",""],["","fxShow.print",""],["","fxShow.xs",""],["","fxShow.sm",""],["","fxShow.md",""],["","fxShow.lg",""],["","fxShow.xl",""],["","fxShow.lt-sm",""],["","fxShow.lt-md",""],["","fxShow.lt-lg",""],["","fxShow.lt-xl",""],["","fxShow.gt-xs",""],["","fxShow.gt-sm",""],["","fxShow.gt-md",""],["","fxShow.gt-lg",""],["","fxHide",""],["","fxHide.print",""],["","fxHide.xs",""],["","fxHide.sm",""],["","fxHide.md",""],["","fxHide.lg",""],["","fxHide.xl",""],["","fxHide.lt-sm",""],["","fxHide.lt-md",""],["","fxHide.lt-lg",""],["","fxHide.lt-xl",""],["","fxHide.gt-xs",""],["","fxHide.gt-sm",""],["","fxHide.gt-md",""],["","fxHide.gt-lg",""]],inputs:{fxShow:"fxShow","fxShow.print":"fxShow.print","fxShow.xs":"fxShow.xs","fxShow.sm":"fxShow.sm","fxShow.md":"fxShow.md","fxShow.lg":"fxShow.lg","fxShow.xl":"fxShow.xl","fxShow.lt-sm":"fxShow.lt-sm","fxShow.lt-md":"fxShow.lt-md","fxShow.lt-lg":"fxShow.lt-lg","fxShow.lt-xl":"fxShow.lt-xl","fxShow.gt-xs":"fxShow.gt-xs","fxShow.gt-sm":"fxShow.gt-sm","fxShow.gt-md":"fxShow.gt-md","fxShow.gt-lg":"fxShow.gt-lg",fxHide:"fxHide","fxHide.print":"fxHide.print","fxHide.xs":"fxHide.xs","fxHide.sm":"fxHide.sm","fxHide.md":"fxHide.md","fxHide.lg":"fxHide.lg","fxHide.xl":"fxHide.xl","fxHide.lt-sm":"fxHide.lt-sm","fxHide.lt-md":"fxHide.lt-md","fxHide.lt-lg":"fxHide.lt-lg","fxHide.lt-xl":"fxHide.lt-xl","fxHide.gt-xs":"fxHide.gt-xs","fxHide.gt-sm":"fxHide.gt-sm","fxHide.gt-md":"fxHide.gt-md","fxHide.gt-lg":"fxHide.gt-lg"},features:[i.qOj]}),V})(),jt=(()=>{class V{}return V.\u0275fac=function(oe){return new(oe||V)},V.\u0275mod=i.oAB({type:V}),V.\u0275inj=i.cJS({imports:[a.IR]}),V})()},1576:(Ct,ke,u)=>{"use strict";u.d(ke,{SQ:()=>le,Wh:()=>ve,ae:()=>ot,s9:()=>de,xw:()=>P,yH:()=>_t});var i=u(4650),a=u(445),c=u(2233),v=u(5863),b=u(8929),h=u(7625);let g=(()=>{class ce extends c.QI{buildStyles(Ce,{display:Ye}){const Pe=(0,v.Ar)(Ce);return{...Pe,display:"none"===Ye?Ye:Pe.display}}}return ce.\u0275fac=function(){let je;return function(Ye){return(je||(je=i.n5z(ce)))(Ye||ce)}}(),ce.\u0275prov=i.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})();const w=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let O=(()=>{class ce extends c.iR{constructor(Ce,Ye,Pe,bt,st){super(Ce,Pe,Ye,bt),this._config=st,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(Ce){const Pe=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=k.get(Pe)??new Map,k.set(Pe,this.styleCache),this.currentValue!==Ce&&(this.addStyles(Ce,{display:Pe}),this.currentValue=Ce)}}return ce.\u0275fac=function(Ce){return new(Ce||ce)(i.Y36(i.SBq),i.Y36(c.RK),i.Y36(g),i.Y36(c.yB),i.Y36(c.WU))},ce.\u0275dir=i.lG2({type:ce,features:[i.qOj]}),ce})(),P=(()=>{class ce extends O{constructor(){super(...arguments),this.inputs=w}}return ce.\u0275fac=function(){let je;return function(Ye){return(je||(je=i.n5z(ce)))(Ye||ce)}}(),ce.\u0275dir=i.lG2({type:ce,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[i.qOj]}),ce})();const k=new Map,F={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};let z=(()=>{class ce extends c.QI{constructor(Ce,Ye){super(),this._styler=Ce,this._config=Ye}buildStyles(Ce,Ye){return Ce.endsWith(se)?(Ce=Ce.slice(0,Ce.indexOf(se)),function Ge(ce,je){const[Ce,Ye]=ce.split(" "),bt=an=>`-${an}`;let st="0px",ct=bt(Ye??Ce),Ht="0px";return"rtl"===je?Ht=bt(Ce):st=bt(Ce),{margin:`0px ${st} ${ct} ${Ht}`}}(Ce=(0,c.FL)(Ce,this._config.multiplier),Ye.directionality)):{}}sideEffect(Ce,Ye,Pe){const bt=Pe.items;if(Ce.endsWith(se)){Ce=Ce.slice(0,Ce.indexOf(se));const st=function Me(ce,je){const[Ce,Ye]=ce.split(" ");let bt="0px",ct="0px";return"rtl"===je?ct=Ce:bt=Ce,{padding:`0px ${bt} ${Ye??Ce} ${ct}`}}(Ce=(0,c.FL)(Ce,this._config.multiplier),Pe.directionality);this._styler.applyStyleToElements(st,Pe.items)}else{Ce=(0,c.FL)(Ce,this._config.multiplier),Ce=this.addFallbackUnit(Ce);const st=bt.pop(),ct=function Ke(ce,je){const Ce=it(je.directionality,je.layout),Ye={...F};return Ye[Ce]=ce,Ye}(Ce,Pe);this._styler.applyStyleToElements(ct,bt),this._styler.applyStyleToElements(F,[st])}}addFallbackUnit(Ce){return isNaN(+Ce)?Ce:`${Ce}${this._config.defaultUnit}`}}return ce.\u0275fac=function(Ce){return new(Ce||ce)(i.LFG(c.RK),i.LFG(c.WU))},ce.\u0275prov=i.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})();const ae=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"];let ue=(()=>{class ce extends c.iR{constructor(Ce,Ye,Pe,bt,st,ct){super(Ce,st,bt,ct),this.zone=Ye,this.directionality=Pe,this.styleUtils=bt,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new b.xQ;const Ht=[this.directionality.change,this.observerSubject.asObservable()];this.init(Ht),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,h.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}get childrenNodes(){const Ce=this.nativeElement.children,Ye=[];for(let Pe=Ce.length;Pe--;)Ye[Pe]=Ce[Pe];return Ye}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(Ce){const Pe=Ce.value.split(" ");this.layout=Pe[0],v.iQ.find(bt=>bt===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue(Ce){const Ye=this.childrenNodes.filter(Pe=>1===Pe.nodeType&&this.willDisplay(Pe)).sort((Pe,bt)=>{const st=+this.styler.lookupStyle(Pe,"order"),ct=+this.styler.lookupStyle(bt,"order");return isNaN(st)||isNaN(ct)||st===ct?0:st>ct?1:-1});if(Ye.length>0){const Pe=this.directionality.value,bt=this.layout;"row"===bt&&"rtl"===Pe?this.styleCache=ge:"row"===bt&&"rtl"!==Pe?this.styleCache=ie:"column"===bt&&"rtl"===Pe?this.styleCache=W:"column"===bt&&"rtl"!==Pe&&(this.styleCache=he),this.addStyles(Ce,{directionality:Pe,items:Ye,layout:bt})}}clearStyles(){const Ce=Object.keys(this.mru).length>0,Ye=Ce?"padding":it(this.directionality.value,this.layout);Ce&&super.clearStyles(),this.styleUtils.applyStyleToElements({[Ye]:""},this.childrenNodes)}willDisplay(Ce){const Ye=this.marshal.getValue(Ce,"show-hide");return!0===Ye||void 0===Ye&&"none"!==this.styleUtils.lookupStyle(Ce,"display")}buildChildObservable(){this.zone.runOutsideAngular(()=>{typeof MutationObserver<"u"&&(this.observer=new MutationObserver(Ce=>{Ce.some(Pe=>Pe.addedNodes&&Pe.addedNodes.length>0||Pe.removedNodes&&Pe.removedNodes.length>0)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}return ce.\u0275fac=function(Ce){return new(Ce||ce)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(a.Is),i.Y36(c.RK),i.Y36(z),i.Y36(c.yB))},ce.\u0275dir=i.lG2({type:ce,features:[i.qOj]}),ce})(),le=(()=>{class ce extends ue{constructor(){super(...arguments),this.inputs=ae}}return ce.\u0275fac=function(){let je;return function(Ye){return(je||(je=i.n5z(ce)))(Ye||ce)}}(),ce.\u0275dir=i.lG2({type:ce,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[i.qOj]}),ce})();const ge=new Map,W=new Map,ie=new Map,he=new Map,se=" grid";function it(ce,je){switch(je){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":default:return"rtl"===ce?"margin-left":"margin-right";case"row-reverse":return"rtl"===ce?"margin-right":"margin-left"}}let tt=(()=>{class ce extends c.QI{constructor(Ce){super(),this.layoutConfig=Ce}buildStyles(Ce,Ye){let[Pe,bt,...st]=Ce.split(" "),ct=st.join(" ");const Ht=Ye.direction.indexOf("column")>-1?"column":"row",an=(0,v.tj)(Ht)?"max-width":"max-height",ze=(0,v.tj)(Ht)?"min-width":"min-height",rt=String(ct).indexOf("calc")>-1,qt=rt||"auto"===ct,Ut=String(ct).indexOf("%")>-1&&!rt,en=String(ct).indexOf("px")>-1||String(ct).indexOf("rem")>-1||String(ct).indexOf("em")>-1||String(ct).indexOf("vw")>-1||String(ct).indexOf("vh")>-1;let bn=rt||en;Pe="0"==Pe?0:Pe,bt="0"==bt?0:bt;const Rt=!Pe&&!bt;let yt={};const lt={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(ct||""){case"":const Bt=!1!==this.layoutConfig.useColumnBasisZero;ct="row"===Ht?"0%":Bt?"0.000000001px":"auto";break;case"initial":case"nogrow":Pe=0,ct="auto";break;case"grow":ct="100%";break;case"noshrink":bt=0,ct="auto";break;case"auto":break;case"none":Pe=0,bt=0,ct="auto";break;default:!bn&&!Ut&&!isNaN(ct)&&(ct+="%"),"0%"===ct&&(bn=!0),"0px"===ct&&(ct="0%"),yt=(0,v.kt)(lt,rt?{"flex-grow":Pe,"flex-shrink":bt,"flex-basis":bn?ct:"100%"}:{flex:`${Pe} ${bt} ${bn?ct:"100%"}`})}return yt.flex||yt["flex-grow"]||(yt=(0,v.kt)(lt,rt?{"flex-grow":Pe,"flex-shrink":bt,"flex-basis":ct}:{flex:`${Pe} ${bt} ${ct}`})),"0%"!==ct&&"0px"!==ct&&"0.000000001px"!==ct&&"auto"!==ct&&(yt[ze]=Rt||bn&&Pe?ct:null,yt[an]=Rt||!qt&&bt?ct:null),yt[ze]||yt[an]?Ye.hasWrap&&(yt[rt?"flex-basis":"flex"]=yt[an]?rt?yt[an]:`${Pe} ${bt} ${yt[an]}`:rt?yt[ze]:`${Pe} ${bt} ${yt[ze]}`):yt=(0,v.kt)(lt,rt?{"flex-grow":Pe,"flex-shrink":bt,"flex-basis":ct}:{flex:`${Pe} ${bt} ${ct}`}),(0,v.kt)(yt,{"box-sizing":"border-box"})}}return ce.\u0275fac=function(Ce){return new(Ce||ce)(i.LFG(c.WU))},ce.\u0275prov=i.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})();const me=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let Ae=(()=>{class ce extends c.iR{constructor(Ce,Ye,Pe,bt,st){super(Ce,bt,Ye,st),this.layoutConfig=Pe,this.marshal=st,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(Ce){this.flexShrink=Ce||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(Ce){this.flexGrow=Ce||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,h.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,h.R)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(Ce){const Pe=Ce.value.split(" ");this.direction=Pe[0],this.wrap=void 0!==Pe[1]&&"wrap"===Pe[1],this.triggerUpdate()}updateWithValue(Ce){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const Pe=this.direction,bt=Pe.startsWith("row"),st=this.wrap;bt&&st?this.styleCache=Dt:bt&&!st?this.styleCache=ht:!bt&&st?this.styleCache=jt:!bt&&!st&&(this.styleCache=Yt);const ct=String(Ce).replace(";",""),Ht=(0,c.Ot)(ct,this.flexGrow,this.flexShrink);this.addStyles(Ht.join(" "),{direction:Pe,hasWrap:st})}triggerReflow(){const Ce=this.activatedValue;if(void 0!==Ce){const Ye=(0,c.Ot)(Ce+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,Ye.join(" "))}}}return ce.\u0275fac=function(Ce){return new(Ce||ce)(i.Y36(i.SBq),i.Y36(c.RK),i.Y36(c.WU),i.Y36(tt),i.Y36(c.yB))},ce.\u0275dir=i.lG2({type:ce,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[i.qOj]}),ce})(),_t=(()=>{class ce extends Ae{constructor(){super(...arguments),this.inputs=me}}return ce.\u0275fac=function(){let je;return function(Ye){return(je||(je=i.n5z(ce)))(Ye||ce)}}(),ce.\u0275dir=i.lG2({type:ce,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[i.qOj]}),ce})();const ht=new Map,Yt=new Map,Dt=new Map,jt=new Map,m={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"};let j=(()=>{class ce extends c.QI{buildStyles(Ce){return m}}return ce.\u0275fac=function(){let je;return function(Ye){return(je||(je=i.n5z(ce)))(Ye||ce)}}(),ce.\u0275prov=i.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})(),de=(()=>{class ce extends c.iR{constructor(Ce,Ye,Pe,bt){super(Ce,Pe,Ye,bt),this.styleCache=X,this.addStyles("")}}return ce.\u0275fac=function(Ce){return new(Ce||ce)(i.Y36(i.SBq),i.Y36(c.RK),i.Y36(j),i.Y36(c.yB))},ce.\u0275dir=i.lG2({type:ce,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[i.qOj]}),ce})();const X=new Map;let H=(()=>{class ce extends c.QI{buildStyles(Ce,Ye){const Pe={},[bt,st]=Ce.split(" ");switch(bt){case"center":Pe["justify-content"]="center";break;case"space-around":Pe["justify-content"]="space-around";break;case"space-between":Pe["justify-content"]="space-between";break;case"space-evenly":Pe["justify-content"]="space-evenly";break;case"end":case"flex-end":Pe["justify-content"]="flex-end";break;default:Pe["justify-content"]="flex-start"}switch(st){case"start":case"flex-start":Pe["align-items"]=Pe["align-content"]="flex-start";break;case"center":Pe["align-items"]=Pe["align-content"]="center";break;case"end":case"flex-end":Pe["align-items"]=Pe["align-content"]="flex-end";break;case"space-between":Pe["align-content"]="space-between",Pe["align-items"]="stretch";break;case"space-around":Pe["align-content"]="space-around",Pe["align-items"]="stretch";break;case"baseline":Pe["align-content"]="stretch",Pe["align-items"]="baseline";break;default:Pe["align-items"]=Pe["align-content"]="stretch"}return(0,v.kt)(Pe,{display:Ye.inline?"inline-flex":"flex","flex-direction":Ye.layout,"box-sizing":"border-box","max-width":"stretch"===st?(0,v.tj)(Ye.layout)?null:"100%":null,"max-height":"stretch"===st&&(0,v.tj)(Ye.layout)?"100%":null})}}return ce.\u0275fac=function(){let je;return function(Ye){return(je||(je=i.n5z(ce)))(Ye||ce)}}(),ce.\u0275prov=i.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})();const f=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let T=(()=>{class ce extends c.iR{constructor(Ce,Ye,Pe,bt){super(Ce,Pe,Ye,bt),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,h.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(Ce){const Ye=this.layout||"row",Pe=this.inline;"row"===Ye&&Pe?this.styleCache=Et:"row"!==Ye||Pe?"row-reverse"===Ye&&Pe?this.styleCache=qe:"row-reverse"!==Ye||Pe?"column"===Ye&&Pe?this.styleCache=ye:"column"!==Ye||Pe?"column-reverse"===Ye&&Pe?this.styleCache=xe:"column-reverse"===Ye&&!Pe&&(this.styleCache=dt):this.styleCache=$e:this.styleCache=St:this.styleCache=Je,this.addStyles(Ce,{layout:Ye,inline:Pe})}onLayoutChange(Ce){const Ye=Ce.value.split(" ");this.layout=Ye[0],this.inline=Ce.value.includes("inline"),v.iQ.find(Pe=>Pe===this.layout)||(this.layout="row"),this.triggerUpdate()}}return ce.\u0275fac=function(Ce){return new(Ce||ce)(i.Y36(i.SBq),i.Y36(c.RK),i.Y36(H),i.Y36(c.yB))},ce.\u0275dir=i.lG2({type:ce,features:[i.qOj]}),ce})(),ve=(()=>{class ce extends T{constructor(){super(...arguments),this.inputs=f}}return ce.\u0275fac=function(){let je;return function(Ye){return(je||(je=i.n5z(ce)))(Ye||ce)}}(),ce.\u0275dir=i.lG2({type:ce,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[i.qOj]}),ce})();const Je=new Map,$e=new Map,St=new Map,dt=new Map,Et=new Map,ye=new Map,qe=new Map,xe=new Map;let ot=(()=>{class ce{}return ce.\u0275fac=function(Ce){return new(Ce||ce)},ce.\u0275mod=i.oAB({type:ce}),ce.\u0275inj=i.cJS({imports:[c.IR,a.vT]}),ce})()},9814:(Ct,ke,u)=>{"use strict";u.d(ke,{o9:()=>Be});var i=u(4650),a=u(2233),c=u(5829),v=u(1576);u(1281);let mn=(()=>{class fe{}return fe.\u0275fac=function(Se){return new(Se||fe)},fe.\u0275mod=i.oAB({type:fe}),fe.\u0275inj=i.cJS({imports:[a.IR]}),fe})();var On=u(6895);let Be=(()=>{class fe{constructor(Se,mt){(0,On.PM)(mt)&&!Se&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(Se,mt=[]){return{ngModule:fe,providers:Se.serverLoaded?[{provide:a.WU,useValue:{...a.g5,...Se}},{provide:a.Bs,useValue:mt,multi:!0},{provide:a.wY,useValue:!0}]:[{provide:a.WU,useValue:{...a.g5,...Se}},{provide:a.Bs,useValue:mt,multi:!0}]}}}return fe.\u0275fac=function(Se){return new(Se||fe)(i.LFG(a.wY),i.LFG(i.Lbi))},fe.\u0275mod=i.oAB({type:fe}),fe.\u0275inj=i.cJS({imports:[v.ae,c.aT,mn,v.ae,c.aT,mn]}),fe})()},4006:(Ct,ke,u)=>{"use strict";u.d(ke,{Cf:()=>le,F:()=>ui,Fd:()=>Cr,Fj:()=>z,JJ:()=>U,JL:()=>Re,JU:()=>w,On:()=>Un,QS:()=>Dr,UX:()=>Kn,Zs:()=>Ei,_Y:()=>kr,a5:()=>Q,kI:()=>ie,nD:()=>Xt,qQ:()=>Di,sg:()=>Si,u:()=>Oi,u5:()=>Yn,wO:()=>Qe,wV:()=>Fi});var i=u(4650),a=u(6895),c=u(5254),v=u(567),b=u(4850);let h=(()=>{class te{constructor($,Ue){this._renderer=$,this._elementRef=Ue,this.onChange=Zt=>{},this.onTouched=()=>{}}setProperty($,Ue){this._renderer.setProperty(this._elementRef.nativeElement,$,Ue)}registerOnTouched($){this.onTouched=$}registerOnChange($){this.onChange=$}setDisabledState($){this.setProperty("disabled",$)}}return te.\u0275fac=function($){return new($||te)(i.Y36(i.Qsj),i.Y36(i.SBq))},te.\u0275dir=i.lG2({type:te}),te})(),g=(()=>{class te extends h{}return te.\u0275fac=function(){let K;return function(Ue){return(K||(K=i.n5z(te)))(Ue||te)}}(),te.\u0275dir=i.lG2({type:te,features:[i.qOj]}),te})();const w=new i.OlP("NgValueAccessor"),P={provide:w,useExisting:(0,i.Gpc)(()=>z),multi:!0},F=new i.OlP("CompositionEventMode");let z=(()=>{class te extends h{constructor($,Ue,Zt){super($,Ue),this._compositionMode=Zt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function k(){const te=(0,a.q)()?(0,a.q)().getUserAgent():"";return/android (\d+)/.test(te.toLowerCase())}())}writeValue($){this.setProperty("value",$??"")}_handleInput($){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange($)}_compositionStart(){this._composing=!0}_compositionEnd($){this._composing=!1,this._compositionMode&&this.onChange($)}}return te.\u0275fac=function($){return new($||te)(i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(F,8))},te.\u0275dir=i.lG2({type:te,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function($,Ue){1&$&&i.NdJ("input",function(Mn){return Ue._handleInput(Mn.target.value)})("blur",function(){return Ue.onTouched()})("compositionstart",function(){return Ue._compositionStart()})("compositionend",function(Mn){return Ue._compositionEnd(Mn.target.value)})},features:[i._Bn([P]),i.qOj]}),te})();function we(te){return null==te||("string"==typeof te||Array.isArray(te))&&0===te.length}function ue(te){return null!=te&&"number"==typeof te.length}const le=new i.OlP("NgValidators"),ge=new i.OlP("NgAsyncValidators"),W=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class ie{static min(K){return he(K)}static max(K){return se(K)}static required(K){return Me(K)}static requiredTrue(K){return Ge(K)}static email(K){return function it(te){return we(te.value)||W.test(te.value)?null:{email:!0}}(K)}static minLength(K){return Ke(K)}static maxLength(K){return tt(K)}static pattern(K){return function me(te){if(!te)return Xe;let K,$;return"string"==typeof te?($="","^"!==te.charAt(0)&&($+="^"),$+=te,"$"!==te.charAt(te.length-1)&&($+="$"),K=new RegExp($)):($=te.toString(),K=te),Ue=>{if(we(Ue.value))return null;const Zt=Ue.value;return K.test(Zt)?null:{pattern:{requiredPattern:$,actualValue:Zt}}}}(K)}static nullValidator(K){return null}static compose(K){return V(K)}static composeAsync(K){return oe(K)}}function he(te){return K=>{if(we(K.value)||we(te))return null;const $=parseFloat(K.value);return!isNaN($)&&${if(we(K.value)||we(te))return null;const $=parseFloat(K.value);return!isNaN($)&&$>te?{max:{max:te,actual:K.value}}:null}}function Me(te){return we(te.value)?{required:!0}:null}function Ge(te){return!0===te.value?null:{required:!0}}function Ke(te){return K=>we(K.value)||!ue(K.value)?null:K.value.lengthue(K.value)&&K.value.length>te?{maxlength:{requiredLength:te,actualLength:K.value.length}}:null}function Xe(te){return null}function Ae(te){return null!=te}function _t(te){return(0,i.QGY)(te)?(0,c.D)(te):te}function ht(te){let K={};return te.forEach($=>{K=null!=$?{...K,...$}:K}),0===Object.keys(K).length?null:K}function Yt(te,K){return K.map($=>$(te))}function jt(te){return te.map(K=>function Dt(te){return!te.validate}(K)?K:$=>K.validate($))}function V(te){if(!te)return null;const K=te.filter(Ae);return 0==K.length?null:function($){return ht(Yt($,K))}}function Ee(te){return null!=te?V(jt(te)):null}function oe(te){if(!te)return null;const K=te.filter(Ae);return 0==K.length?null:function($){const Ue=Yt($,K).map(_t);return(0,v.D)(Ue).pipe((0,b.U)(ht))}}function _e(te){return null!=te?oe(jt(te)):null}function Oe(te,K){return null===te?[K]:Array.isArray(te)?[...te,K]:[te,K]}function at(te){return te._rawValidators}function be(te){return te._rawAsyncValidators}function et(te){return te?Array.isArray(te)?te:[te]:[]}function Mt(te,K){return Array.isArray(te)?te.includes(K):te===K}function gt(te,K){const $=et(K);return et(te).forEach(Zt=>{Mt($,Zt)||$.push(Zt)}),$}function We(te,K){return et(K).filter($=>!Mt(te,$))}class wt{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(K){this._rawValidators=K||[],this._composedValidatorFn=Ee(this._rawValidators)}_setAsyncValidators(K){this._rawAsyncValidators=K||[],this._composedAsyncValidatorFn=_e(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(K){this._onDestroyCallbacks.push(K)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(K=>K()),this._onDestroyCallbacks=[]}reset(K){this.control&&this.control.reset(K)}hasError(K,$){return!!this.control&&this.control.hasError(K,$)}getError(K,$){return this.control?this.control.getError(K,$):null}}class nt extends wt{get formDirective(){return null}get path(){return null}}class Q extends wt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Le{constructor(K){this._cd=K}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let U=(()=>{class te extends Le{constructor($){super($)}}return te.\u0275fac=function($){return new($||te)(i.Y36(Q,2))},te.\u0275dir=i.lG2({type:te,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function($,Ue){2&$&&i.ekj("ng-untouched",Ue.isUntouched)("ng-touched",Ue.isTouched)("ng-pristine",Ue.isPristine)("ng-dirty",Ue.isDirty)("ng-valid",Ue.isValid)("ng-invalid",Ue.isInvalid)("ng-pending",Ue.isPending)},features:[i.qOj]}),te})(),Re=(()=>{class te extends Le{constructor($){super($)}}return te.\u0275fac=function($){return new($||te)(i.Y36(nt,10))},te.\u0275dir=i.lG2({type:te,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function($,Ue){2&$&&i.ekj("ng-untouched",Ue.isUntouched)("ng-touched",Ue.isTouched)("ng-pristine",Ue.isPristine)("ng-dirty",Ue.isDirty)("ng-valid",Ue.isValid)("ng-invalid",Ue.isInvalid)("ng-pending",Ue.isPending)("ng-submitted",Ue.isSubmitted)},features:[i.qOj]}),te})();const xe="VALID",Fe="INVALID",ot="PENDING",ce="DISABLED";function je(te){return(bt(te)?te.validators:te)||null}function Ce(te){return Array.isArray(te)?Ee(te):te||null}function Ye(te,K){return(bt(K)?K.asyncValidators:te)||null}function Pe(te){return Array.isArray(te)?_e(te):te||null}function bt(te){return null!=te&&!Array.isArray(te)&&"object"==typeof te}function st(te,K,$){const Ue=te.controls;if(!(K?Object.keys(Ue):Ue).length)throw new i.vHH(1e3,"");if(!Ue[$])throw new i.vHH(1001,"")}function ct(te,K,$){te._forEachChild((Ue,Zt)=>{if(void 0===$[Zt])throw new i.vHH(1002,"")})}class Ht{constructor(K,$){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=K,this._rawAsyncValidators=$,this._composedValidatorFn=Ce(this._rawValidators),this._composedAsyncValidatorFn=Pe(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(K){this._rawValidators=this._composedValidatorFn=K}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(K){this._rawAsyncValidators=this._composedAsyncValidatorFn=K}get parent(){return this._parent}get valid(){return this.status===xe}get invalid(){return this.status===Fe}get pending(){return this.status==ot}get disabled(){return this.status===ce}get enabled(){return this.status!==ce}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(K){this._rawValidators=K,this._composedValidatorFn=Ce(K)}setAsyncValidators(K){this._rawAsyncValidators=K,this._composedAsyncValidatorFn=Pe(K)}addValidators(K){this.setValidators(gt(K,this._rawValidators))}addAsyncValidators(K){this.setAsyncValidators(gt(K,this._rawAsyncValidators))}removeValidators(K){this.setValidators(We(K,this._rawValidators))}removeAsyncValidators(K){this.setAsyncValidators(We(K,this._rawAsyncValidators))}hasValidator(K){return Mt(this._rawValidators,K)}hasAsyncValidator(K){return Mt(this._rawAsyncValidators,K)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(K={}){this.touched=!0,this._parent&&!K.onlySelf&&this._parent.markAsTouched(K)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(K=>K.markAllAsTouched())}markAsUntouched(K={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild($=>{$.markAsUntouched({onlySelf:!0})}),this._parent&&!K.onlySelf&&this._parent._updateTouched(K)}markAsDirty(K={}){this.pristine=!1,this._parent&&!K.onlySelf&&this._parent.markAsDirty(K)}markAsPristine(K={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild($=>{$.markAsPristine({onlySelf:!0})}),this._parent&&!K.onlySelf&&this._parent._updatePristine(K)}markAsPending(K={}){this.status=ot,!1!==K.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!K.onlySelf&&this._parent.markAsPending(K)}disable(K={}){const $=this._parentMarkedDirty(K.onlySelf);this.status=ce,this.errors=null,this._forEachChild(Ue=>{Ue.disable({...K,onlySelf:!0})}),this._updateValue(),!1!==K.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...K,skipPristineCheck:$}),this._onDisabledChange.forEach(Ue=>Ue(!0))}enable(K={}){const $=this._parentMarkedDirty(K.onlySelf);this.status=xe,this._forEachChild(Ue=>{Ue.enable({...K,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:K.emitEvent}),this._updateAncestors({...K,skipPristineCheck:$}),this._onDisabledChange.forEach(Ue=>Ue(!1))}_updateAncestors(K){this._parent&&!K.onlySelf&&(this._parent.updateValueAndValidity(K),K.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(K){this._parent=K}getRawValue(){return this.value}updateValueAndValidity(K={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===xe||this.status===ot)&&this._runAsyncValidator(K.emitEvent)),!1!==K.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!K.onlySelf&&this._parent.updateValueAndValidity(K)}_updateTreeValidity(K={emitEvent:!0}){this._forEachChild($=>$._updateTreeValidity(K)),this.updateValueAndValidity({onlySelf:!0,emitEvent:K.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ce:xe}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(K){if(this.asyncValidator){this.status=ot,this._hasOwnPendingAsyncValidator=!0;const $=_t(this.asyncValidator(this));this._asyncValidationSubscription=$.subscribe(Ue=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Ue,{emitEvent:K})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(K,$={}){this.errors=K,this._updateControlsErrors(!1!==$.emitEvent)}get(K){let $=K;return null==$||(Array.isArray($)||($=$.split(".")),0===$.length)?null:$.reduce((Ue,Zt)=>Ue&&Ue._find(Zt),this)}getError(K,$){const Ue=$?this.get($):this;return Ue&&Ue.errors?Ue.errors[K]:null}hasError(K,$){return!!this.getError(K,$)}get root(){let K=this;for(;K._parent;)K=K._parent;return K}_updateControlsErrors(K){this.status=this._calculateStatus(),K&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(K)}_initObservables(){this.valueChanges=new i.vpe,this.statusChanges=new i.vpe}_calculateStatus(){return this._allControlsDisabled()?ce:this.errors?Fe:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ot)?ot:this._anyControlsHaveStatus(Fe)?Fe:xe}_anyControlsHaveStatus(K){return this._anyControls($=>$.status===K)}_anyControlsDirty(){return this._anyControls(K=>K.dirty)}_anyControlsTouched(){return this._anyControls(K=>K.touched)}_updatePristine(K={}){this.pristine=!this._anyControlsDirty(),this._parent&&!K.onlySelf&&this._parent._updatePristine(K)}_updateTouched(K={}){this.touched=this._anyControlsTouched(),this._parent&&!K.onlySelf&&this._parent._updateTouched(K)}_registerOnCollectionChange(K){this._onCollectionChange=K}_setUpdateStrategy(K){bt(K)&&null!=K.updateOn&&(this._updateOn=K.updateOn)}_parentMarkedDirty(K){return!K&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(K){return null}}class an extends Ht{constructor(K,$,Ue){super(je($),Ye(Ue,$)),this.controls=K,this._initObservables(),this._setUpdateStrategy($),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(K,$){return this.controls[K]?this.controls[K]:(this.controls[K]=$,$.setParent(this),$._registerOnCollectionChange(this._onCollectionChange),$)}addControl(K,$,Ue={}){this.registerControl(K,$),this.updateValueAndValidity({emitEvent:Ue.emitEvent}),this._onCollectionChange()}removeControl(K,$={}){this.controls[K]&&this.controls[K]._registerOnCollectionChange(()=>{}),delete this.controls[K],this.updateValueAndValidity({emitEvent:$.emitEvent}),this._onCollectionChange()}setControl(K,$,Ue={}){this.controls[K]&&this.controls[K]._registerOnCollectionChange(()=>{}),delete this.controls[K],$&&this.registerControl(K,$),this.updateValueAndValidity({emitEvent:Ue.emitEvent}),this._onCollectionChange()}contains(K){return this.controls.hasOwnProperty(K)&&this.controls[K].enabled}setValue(K,$={}){ct(this,0,K),Object.keys(K).forEach(Ue=>{st(this,!0,Ue),this.controls[Ue].setValue(K[Ue],{onlySelf:!0,emitEvent:$.emitEvent})}),this.updateValueAndValidity($)}patchValue(K,$={}){null!=K&&(Object.keys(K).forEach(Ue=>{const Zt=this.controls[Ue];Zt&&Zt.patchValue(K[Ue],{onlySelf:!0,emitEvent:$.emitEvent})}),this.updateValueAndValidity($))}reset(K={},$={}){this._forEachChild((Ue,Zt)=>{Ue.reset(K[Zt],{onlySelf:!0,emitEvent:$.emitEvent})}),this._updatePristine($),this._updateTouched($),this.updateValueAndValidity($)}getRawValue(){return this._reduceChildren({},(K,$,Ue)=>(K[Ue]=$.getRawValue(),K))}_syncPendingControls(){let K=this._reduceChildren(!1,($,Ue)=>!!Ue._syncPendingControls()||$);return K&&this.updateValueAndValidity({onlySelf:!0}),K}_forEachChild(K){Object.keys(this.controls).forEach($=>{const Ue=this.controls[$];Ue&&K(Ue,$)})}_setUpControls(){this._forEachChild(K=>{K.setParent(this),K._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(K){for(const[$,Ue]of Object.entries(this.controls))if(this.contains($)&&K(Ue))return!0;return!1}_reduceValue(){return this._reduceChildren({},($,Ue,Zt)=>((Ue.enabled||this.disabled)&&($[Zt]=Ue.value),$))}_reduceChildren(K,$){let Ue=K;return this._forEachChild((Zt,Mn)=>{Ue=$(Ue,Zt,Mn)}),Ue}_allControlsDisabled(){for(const K of Object.keys(this.controls))if(this.controls[K].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(K){return this.controls.hasOwnProperty(K)?this.controls[K]:null}}function en(te,K){return[...K.path,te]}function bn(te,K){Bt(te,K),K.valueAccessor.writeValue(te.value),te.disabled&&K.valueAccessor.setDisabledState?.(!0),function xn(te,K){K.valueAccessor.registerOnChange($=>{te._pendingValue=$,te._pendingChange=!0,te._pendingDirty=!0,"change"===te.updateOn&&mn(te,K)})}(te,K),function On(te,K){const $=(Ue,Zt)=>{K.valueAccessor.writeValue(Ue),Zt&&K.viewToModelUpdate(Ue)};te.registerOnChange($),K._registerOnDestroy(()=>{te._unregisterOnChange($)})}(te,K),function kn(te,K){K.valueAccessor.registerOnTouched(()=>{te._pendingTouched=!0,"blur"===te.updateOn&&te._pendingChange&&mn(te,K),"submit"!==te.updateOn&&te.markAsTouched()})}(te,K),function lt(te,K){if(K.valueAccessor.setDisabledState){const $=Ue=>{K.valueAccessor.setDisabledState(Ue)};te.registerOnDisabledChange($),K._registerOnDestroy(()=>{te._unregisterOnDisabledChange($)})}}(te,K)}function Rt(te,K,$=!0){const Ue=()=>{};K.valueAccessor&&(K.valueAccessor.registerOnChange(Ue),K.valueAccessor.registerOnTouched(Ue)),Jt(te,K),te&&(K._invokeOnDestroyCallbacks(),te._registerOnCollectionChange(()=>{}))}function yt(te,K){te.forEach($=>{$.registerOnValidatorChange&&$.registerOnValidatorChange(K)})}function Bt(te,K){const $=at(te);null!==K.validator?te.setValidators(Oe($,K.validator)):"function"==typeof $&&te.setValidators([$]);const Ue=be(te);null!==K.asyncValidator?te.setAsyncValidators(Oe(Ue,K.asyncValidator)):"function"==typeof Ue&&te.setAsyncValidators([Ue]);const Zt=()=>te.updateValueAndValidity();yt(K._rawValidators,Zt),yt(K._rawAsyncValidators,Zt)}function Jt(te,K){let $=!1;if(null!==te){if(null!==K.validator){const Zt=at(te);if(Array.isArray(Zt)&&Zt.length>0){const Mn=Zt.filter(bi=>bi!==K.validator);Mn.length!==Zt.length&&($=!0,te.setValidators(Mn))}}if(null!==K.asyncValidator){const Zt=be(te);if(Array.isArray(Zt)&&Zt.length>0){const Mn=Zt.filter(bi=>bi!==K.asyncValidator);Mn.length!==Zt.length&&($=!0,te.setAsyncValidators(Mn))}}}const Ue=()=>{};return yt(K._rawValidators,Ue),yt(K._rawAsyncValidators,Ue),$}function mn(te,K){te._pendingDirty&&te.markAsDirty(),te.setValue(te._pendingValue,{emitModelToViewChange:!1}),K.viewToModelUpdate(te._pendingValue),te._pendingChange=!1}function qn(te,K){Bt(te,K)}function Gt(te,K){if(!te.hasOwnProperty("model"))return!1;const $=te.model;return!!$.isFirstChange()||!Object.is(K,$.currentValue)}function Tn(te,K){te._syncPendingControls(),K.forEach($=>{const Ue=$.control;"submit"===Ue.updateOn&&Ue._pendingChange&&($.viewToModelUpdate(Ue._pendingValue),Ue._pendingChange=!1)})}function En(te,K){if(!K)return null;let $,Ue,Zt;return Array.isArray(K),K.forEach(Mn=>{Mn.constructor===z?$=Mn:function rn(te){return Object.getPrototypeOf(te.constructor)===g}(Mn)?Ue=Mn:Zt=Mn}),Zt||Ue||$||null}const ni={provide:nt,useExisting:(0,i.Gpc)(()=>ui)},jn=(()=>Promise.resolve(null))();let ui=(()=>{class te extends nt{constructor($,Ue){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new i.vpe,this.form=new an({},Ee($),_e(Ue))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl($){jn.then(()=>{const Ue=this._findContainer($.path);$.control=Ue.registerControl($.name,$.control),bn($.control,$),$.control.updateValueAndValidity({emitEvent:!1}),this._directives.add($)})}getControl($){return this.form.get($.path)}removeControl($){jn.then(()=>{const Ue=this._findContainer($.path);Ue&&Ue.removeControl($.name),this._directives.delete($)})}addFormGroup($){jn.then(()=>{const Ue=this._findContainer($.path),Zt=new an({});qn(Zt,$),Ue.registerControl($.name,Zt),Zt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup($){jn.then(()=>{const Ue=this._findContainer($.path);Ue&&Ue.removeControl($.name)})}getFormGroup($){return this.form.get($.path)}updateModel($,Ue){jn.then(()=>{this.form.get($.path).setValue(Ue)})}setValue($){this.control.setValue($)}onSubmit($){return this.submitted=!0,Tn(this.form,this._directives),this.ngSubmit.emit($),!1}onReset(){this.resetForm()}resetForm($){this.form.reset($),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer($){return $.pop(),$.length?this.form.get($):this.form}}return te.\u0275fac=function($){return new($||te)(i.Y36(le,10),i.Y36(ge,10))},te.\u0275dir=i.lG2({type:te,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function($,Ue){1&$&&i.NdJ("submit",function(Mn){return Ue.onSubmit(Mn)})("reset",function(){return Ue.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([ni]),i.qOj]}),te})();function zn(te,K){const $=te.indexOf(K);$>-1&&te.splice($,1)}function si(te){return"object"==typeof te&&null!==te&&2===Object.keys(te).length&&"value"in te&&"disabled"in te}const Ln=class extends Ht{constructor(K=null,$,Ue){super(je($),Ye(Ue,$)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(K),this._setUpdateStrategy($),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),bt($)&&($.nonNullable||$.initialValueIsDefault)&&(this.defaultValue=si(K)?K.value:K)}setValue(K,$={}){this.value=this._pendingValue=K,this._onChange.length&&!1!==$.emitModelToViewChange&&this._onChange.forEach(Ue=>Ue(this.value,!1!==$.emitViewToModelChange)),this.updateValueAndValidity($)}patchValue(K,$={}){this.setValue(K,$)}reset(K=this.defaultValue,$={}){this._applyFormState(K),this.markAsPristine($),this.markAsUntouched($),this.setValue(this.value,$),this._pendingChange=!1}_updateValue(){}_anyControls(K){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(K){this._onChange.push(K)}_unregisterOnChange(K){zn(this._onChange,K)}registerOnDisabledChange(K){this._onDisabledChange.push(K)}_unregisterOnDisabledChange(K){zn(this._onDisabledChange,K)}_forEachChild(K){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(K){si(K)?(this.value=this._pendingValue=K.value,K.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=K}},Ri={provide:Q,useExisting:(0,i.Gpc)(()=>Un)},yr=(()=>Promise.resolve(null))();let Un=(()=>{class te extends Q{constructor($,Ue,Zt,Mn,bi){super(),this._changeDetectorRef=bi,this.control=new Ln,this._registered=!1,this.update=new i.vpe,this._parent=$,this._setValidators(Ue),this._setAsyncValidators(Zt),this.valueAccessor=En(0,Mn)}ngOnChanges($){if(this._checkForErrors(),!this._registered||"name"in $){if(this._registered&&(this._checkName(),this.formDirective)){const Ue=$.name.previousValue;this.formDirective.removeControl({name:Ue,path:this._getPath(Ue)})}this._setUpControl()}"isDisabled"in $&&this._updateDisabled($),Gt($,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate($){this.viewModel=$,this.update.emit($)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){bn(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue($){yr.then(()=>{this.control.setValue($,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled($){const Ue=$.isDisabled.currentValue,Zt=0!==Ue&&(0,i.D6c)(Ue);yr.then(()=>{Zt&&!this.control.disabled?this.control.disable():!Zt&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath($){return this._parent?en($,this._parent):[$]}}return te.\u0275fac=function($){return new($||te)(i.Y36(nt,9),i.Y36(le,10),i.Y36(ge,10),i.Y36(w,10),i.Y36(i.sBO,8))},te.\u0275dir=i.lG2({type:te,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i._Bn([Ri]),i.qOj,i.TTD]}),te})(),kr=(()=>{class te{}return te.\u0275fac=function($){return new($||te)},te.\u0275dir=i.lG2({type:te,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),te})();const fs={provide:w,useExisting:(0,i.Gpc)(()=>Fi),multi:!0};let Fi=(()=>{class te extends g{writeValue($){this.setProperty("value",$??"")}registerOnChange($){this.onChange=Ue=>{$(""==Ue?null:parseFloat(Ue))}}}return te.\u0275fac=function(){let K;return function(Ue){return(K||(K=i.n5z(te)))(Ue||te)}}(),te.\u0275dir=i.lG2({type:te,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function($,Ue){1&$&&i.NdJ("input",function(Mn){return Ue.onChange(Mn.target.value)})("blur",function(){return Ue.onTouched()})},features:[i._Bn([fs]),i.qOj]}),te})(),sr=(()=>{class te{}return te.\u0275fac=function($){return new($||te)},te.\u0275mod=i.oAB({type:te}),te.\u0275inj=i.cJS({}),te})();const Ni=new i.OlP("NgModelWithFormControlWarning"),Tr={provide:nt,useExisting:(0,i.Gpc)(()=>Si)};let Si=(()=>{class te extends nt{constructor($,Ue){super(),this.validators=$,this.asyncValidators=Ue,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.vpe,this._setValidators($),this._setAsyncValidators(Ue)}ngOnChanges($){this._checkFormPresent(),$.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Jt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl($){const Ue=this.form.get($.path);return bn(Ue,$),Ue.updateValueAndValidity({emitEvent:!1}),this.directives.push($),Ue}getControl($){return this.form.get($.path)}removeControl($){Rt($.control||null,$,!1),function ci(te,K){const $=te.indexOf(K);$>-1&&te.splice($,1)}(this.directives,$)}addFormGroup($){this._setUpFormContainer($)}removeFormGroup($){this._cleanUpFormContainer($)}getFormGroup($){return this.form.get($.path)}addFormArray($){this._setUpFormContainer($)}removeFormArray($){this._cleanUpFormContainer($)}getFormArray($){return this.form.get($.path)}updateModel($,Ue){this.form.get($.path).setValue(Ue)}onSubmit($){return this.submitted=!0,Tn(this.form,this.directives),this.ngSubmit.emit($),!1}onReset(){this.resetForm()}resetForm($){this.form.reset($),this.submitted=!1}_updateDomValue(){this.directives.forEach($=>{const Ue=$.control,Zt=this.form.get($.path);Ue!==Zt&&(Rt(Ue||null,$),(te=>te instanceof Ln)(Zt)&&(bn(Zt,$),$.control=Zt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer($){const Ue=this.form.get($.path);qn(Ue,$),Ue.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer($){if(this.form){const Ue=this.form.get($.path);Ue&&function Be(te,K){return Jt(te,K)}(Ue,$)&&Ue.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Bt(this.form,this),this._oldForm&&Jt(this._oldForm,this)}_checkFormPresent(){}}return te.\u0275fac=function($){return new($||te)(i.Y36(le,10),i.Y36(ge,10))},te.\u0275dir=i.lG2({type:te,selectors:[["","formGroup",""]],hostBindings:function($,Ue){1&$&&i.NdJ("submit",function(Mn){return Ue.onSubmit(Mn)})("reset",function(){return Ue.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([Tr]),i.qOj,i.TTD]}),te})();const ir={provide:Q,useExisting:(0,i.Gpc)(()=>Oi)};let Oi=(()=>{class te extends Q{constructor($,Ue,Zt,Mn,bi){super(),this._ngModelWarningConfig=bi,this._added=!1,this.update=new i.vpe,this._ngModelWarningSent=!1,this._parent=$,this._setValidators(Ue),this._setAsyncValidators(Zt),this.valueAccessor=En(0,Mn)}set isDisabled($){}ngOnChanges($){this._added||this._setUpControl(),Gt($,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate($){this.viewModel=$,this.update.emit($)}get path(){return en(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return te._ngModelWarningSentOnce=!1,te.\u0275fac=function($){return new($||te)(i.Y36(nt,13),i.Y36(le,10),i.Y36(ge,10),i.Y36(w,10),i.Y36(Ni,8))},te.\u0275dir=i.lG2({type:te,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i._Bn([ir]),i.qOj,i.TTD]}),te})();function Rr(te){return"number"==typeof te?te:parseInt(te,10)}function br(te){return"number"==typeof te?te:parseFloat(te)}let Jn=(()=>{class te{constructor(){this._validator=Xe}ngOnChanges($){if(this.inputName in $){const Ue=this.normalizeInput($[this.inputName].currentValue);this._enabled=this.enabled(Ue),this._validator=this._enabled?this.createValidator(Ue):Xe,this._onChange&&this._onChange()}}validate($){return this._validator($)}registerOnValidatorChange($){this._onChange=$}enabled($){return null!=$}}return te.\u0275fac=function($){return new($||te)},te.\u0275dir=i.lG2({type:te,features:[i.TTD]}),te})();const wr={provide:le,useExisting:(0,i.Gpc)(()=>Cr),multi:!0};let Cr=(()=>{class te extends Jn{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=$=>br($),this.createValidator=$=>se($)}}return te.\u0275fac=function(){let K;return function(Ue){return(K||(K=i.n5z(te)))(Ue||te)}}(),te.\u0275dir=i.lG2({type:te,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function($,Ue){2&$&&i.uIk("max",Ue._enabled?Ue.max:null)},inputs:{max:"max"},features:[i._Bn([wr]),i.qOj]}),te})();const vi={provide:le,useExisting:(0,i.Gpc)(()=>Di),multi:!0};let Di=(()=>{class te extends Jn{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=$=>br($),this.createValidator=$=>he($)}}return te.\u0275fac=function(){let K;return function(Ue){return(K||(K=i.n5z(te)))(Ue||te)}}(),te.\u0275dir=i.lG2({type:te,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function($,Ue){2&$&&i.uIk("min",Ue._enabled?Ue.min:null)},inputs:{min:"min"},features:[i._Bn([vi]),i.qOj]}),te})();const Ki={provide:le,useExisting:(0,i.Gpc)(()=>ji),multi:!0},Hi={provide:le,useExisting:(0,i.Gpc)(()=>Ei),multi:!0};let ji=(()=>{class te extends Jn{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=i.D6c,this.createValidator=$=>Me}enabled($){return $}}return te.\u0275fac=function(){let K;return function(Ue){return(K||(K=i.n5z(te)))(Ue||te)}}(),te.\u0275dir=i.lG2({type:te,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function($,Ue){2&$&&i.uIk("required",Ue._enabled?"":null)},inputs:{required:"required"},features:[i._Bn([Ki]),i.qOj]}),te})(),Ei=(()=>{class te extends ji{constructor(){super(...arguments),this.createValidator=$=>Ge}}return te.\u0275fac=function(){let K;return function(Ue){return(K||(K=i.n5z(te)))(Ue||te)}}(),te.\u0275dir=i.lG2({type:te,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function($,Ue){2&$&&i.uIk("required",Ue._enabled?"":null)},features:[i._Bn([Hi]),i.qOj]}),te})();const q={provide:le,useExisting:(0,i.Gpc)(()=>Qe),multi:!0};let Qe=(()=>{class te extends Jn{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=$=>Rr($),this.createValidator=$=>Ke($)}}return te.\u0275fac=function(){let K;return function(Ue){return(K||(K=i.n5z(te)))(Ue||te)}}(),te.\u0275dir=i.lG2({type:te,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function($,Ue){2&$&&i.uIk("minlength",Ue._enabled?Ue.minlength:null)},inputs:{minlength:"minlength"},features:[i._Bn([q]),i.qOj]}),te})();const kt={provide:le,useExisting:(0,i.Gpc)(()=>Xt),multi:!0};let Xt=(()=>{class te extends Jn{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=$=>Rr($),this.createValidator=$=>tt($)}}return te.\u0275fac=function(){let K;return function(Ue){return(K||(K=i.n5z(te)))(Ue||te)}}(),te.\u0275dir=i.lG2({type:te,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function($,Ue){2&$&&i.uIk("maxlength",Ue._enabled?Ue.maxlength:null)},inputs:{maxlength:"maxlength"},features:[i._Bn([kt]),i.qOj]}),te})(),Nn=(()=>{class te{}return te.\u0275fac=function($){return new($||te)},te.\u0275mod=i.oAB({type:te}),te.\u0275inj=i.cJS({imports:[sr]}),te})(),Yn=(()=>{class te{}return te.\u0275fac=function($){return new($||te)},te.\u0275mod=i.oAB({type:te}),te.\u0275inj=i.cJS({imports:[Nn]}),te})(),Kn=(()=>{class te{static withConfig($){return{ngModule:te,providers:[{provide:Ni,useValue:$.warnOnNgModelWithFormControl}]}}}return te.\u0275fac=function($){return new($||te)},te.\u0275mod=i.oAB({type:te}),te.\u0275inj=i.cJS({imports:[Nn]}),te})();class di extends Ht{constructor(K,$,Ue){super(je($),Ye(Ue,$)),this.controls=K,this._initObservables(),this._setUpdateStrategy($),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(K){return this.controls[this._adjustIndex(K)]}push(K,$={}){this.controls.push(K),this._registerControl(K),this.updateValueAndValidity({emitEvent:$.emitEvent}),this._onCollectionChange()}insert(K,$,Ue={}){this.controls.splice(K,0,$),this._registerControl($),this.updateValueAndValidity({emitEvent:Ue.emitEvent})}removeAt(K,$={}){let Ue=this._adjustIndex(K);Ue<0&&(Ue=0),this.controls[Ue]&&this.controls[Ue]._registerOnCollectionChange(()=>{}),this.controls.splice(Ue,1),this.updateValueAndValidity({emitEvent:$.emitEvent})}setControl(K,$,Ue={}){let Zt=this._adjustIndex(K);Zt<0&&(Zt=0),this.controls[Zt]&&this.controls[Zt]._registerOnCollectionChange(()=>{}),this.controls.splice(Zt,1),$&&(this.controls.splice(Zt,0,$),this._registerControl($)),this.updateValueAndValidity({emitEvent:Ue.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(K,$={}){ct(this,0,K),K.forEach((Ue,Zt)=>{st(this,!1,Zt),this.at(Zt).setValue(Ue,{onlySelf:!0,emitEvent:$.emitEvent})}),this.updateValueAndValidity($)}patchValue(K,$={}){null!=K&&(K.forEach((Ue,Zt)=>{this.at(Zt)&&this.at(Zt).patchValue(Ue,{onlySelf:!0,emitEvent:$.emitEvent})}),this.updateValueAndValidity($))}reset(K=[],$={}){this._forEachChild((Ue,Zt)=>{Ue.reset(K[Zt],{onlySelf:!0,emitEvent:$.emitEvent})}),this._updatePristine($),this._updateTouched($),this.updateValueAndValidity($)}getRawValue(){return this.controls.map(K=>K.getRawValue())}clear(K={}){this.controls.length<1||(this._forEachChild($=>$._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:K.emitEvent}))}_adjustIndex(K){return K<0?K+this.length:K}_syncPendingControls(){let K=this.controls.reduce(($,Ue)=>!!Ue._syncPendingControls()||$,!1);return K&&this.updateValueAndValidity({onlySelf:!0}),K}_forEachChild(K){this.controls.forEach(($,Ue)=>{K($,Ue)})}_updateValue(){this.value=this.controls.filter(K=>K.enabled||this.disabled).map(K=>K.value)}_anyControls(K){return this.controls.some($=>$.enabled&&K($))}_setUpControls(){this._forEachChild(K=>this._registerControl(K))}_allControlsDisabled(){for(const K of this.controls)if(K.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(K){K.setParent(this),K._registerOnCollectionChange(this._onCollectionChange)}_find(K){return this.at(K)??null}}function cr(te){return!!te&&(void 0!==te.asyncValidators||void 0!==te.validators||void 0!==te.updateOn)}let Ii=(()=>{class te{constructor(){this.useNonNullable=!1}get nonNullable(){const $=new te;return $.useNonNullable=!0,$}group($,Ue=null){const Zt=this._reduceControls($);let Mn={};return cr(Ue)?Mn=Ue:null!==Ue&&(Mn.validators=Ue.validator,Mn.asyncValidators=Ue.asyncValidator),new an(Zt,Mn)}control($,Ue,Zt){let Mn={};return this.useNonNullable?(cr(Ue)?Mn=Ue:(Mn.validators=Ue,Mn.asyncValidators=Zt),new Ln($,{...Mn,nonNullable:!0})):new Ln($,Ue,Zt)}array($,Ue,Zt){const Mn=$.map(bi=>this._createControl(bi));return new di(Mn,Ue,Zt)}_reduceControls($){const Ue={};return Object.keys($).forEach(Zt=>{Ue[Zt]=this._createControl($[Zt])}),Ue}_createControl($){return $ instanceof Ln||$ instanceof Ht?$:Array.isArray($)?this.control($[0],$.length>1?$[1]:null,$.length>2?$[2]:null):this.control($)}}return te.\u0275fac=function($){return new($||te)},te.\u0275prov=i.Yz7({token:te,factory:te.\u0275fac,providedIn:Kn}),te})(),Dr=(()=>{class te extends Ii{group($,Ue=null){return super.group($,Ue)}control($,Ue,Zt){return super.control($,Ue,Zt)}array($,Ue,Zt){return super.array($,Ue,Zt)}}return te.\u0275fac=function(){let K;return function(Ue){return(K||(K=i.n5z(te)))(Ue||te)}}(),te.\u0275prov=i.Yz7({token:te,factory:te.\u0275fac,providedIn:Kn}),te})()},811:(Ct,ke,u)=>{"use strict";u.d(ke,{A9:()=>z,Yi:()=>we,vV:()=>ue});var i=u(2687),a=u(1281),c=u(5017),v=u(4650),b=u(4006),h=u(3238);const g=["button"],w=["*"],B=new v.OlP("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),O=new v.OlP("MatButtonToggleGroup"),P={provide:b.JU,useExisting:(0,v.Gpc)(()=>z),multi:!0};let k=0;class F{constructor(ge,W){this.source=ge,this.value=W}}let z=(()=>{class le{constructor(W,ie){this._changeDetector=W,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name="mat-button-toggle-group-"+k++,this.valueChange=new v.vpe,this.change=new v.vpe,this.appearance=ie&&ie.appearance?ie.appearance:"standard"}get name(){return this._name}set name(W){this._name=W,this._markButtonsForCheck()}get vertical(){return this._vertical}set vertical(W){this._vertical=(0,a.Ig)(W)}get value(){const W=this._selectionModel?this._selectionModel.selected:[];return this.multiple?W.map(ie=>ie.value):W[0]?W[0].value:void 0}set value(W){this._setSelectionByValue(W),this.valueChange.emit(this.value)}get selected(){const W=this._selectionModel?this._selectionModel.selected:[];return this.multiple?W:W[0]||null}get multiple(){return this._multiple}set multiple(W){this._multiple=(0,a.Ig)(W),this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(W){this._disabled=(0,a.Ig)(W),this._markButtonsForCheck()}ngOnInit(){this._selectionModel=new c.Ov(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(W=>W.checked))}writeValue(W){this.value=W,this._changeDetector.markForCheck()}registerOnChange(W){this._controlValueAccessorChangeFn=W}registerOnTouched(W){this._onTouched=W}setDisabledState(W){this.disabled=W}_emitChangeEvent(){const W=this.selected,ie=Array.isArray(W)?W[W.length-1]:W,he=new F(ie,this.value);this._controlValueAccessorChangeFn(he.value),this.change.emit(he)}_syncButtonToggle(W,ie,he=!1,se=!1){!this.multiple&&this.selected&&!W.checked&&(this.selected.checked=!1),this._selectionModel?ie?this._selectionModel.select(W):this._selectionModel.deselect(W):se=!0,se?Promise.resolve().then(()=>this._updateModelValue(he)):this._updateModelValue(he)}_isSelected(W){return this._selectionModel&&this._selectionModel.isSelected(W)}_isPrechecked(W){return!(typeof this._rawValue>"u")&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(ie=>null!=W.value&&ie===W.value):W.value===this._rawValue)}_setSelectionByValue(W){this._rawValue=W,this._buttonToggles&&(this.multiple&&W?(Array.isArray(W),this._clearSelection(),W.forEach(ie=>this._selectValue(ie))):(this._clearSelection(),this._selectValue(W)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(W=>W.checked=!1)}_selectValue(W){const ie=this._buttonToggles.find(he=>null!=he.value&&he.value===W);ie&&(ie.checked=!0,this._selectionModel.select(ie))}_updateModelValue(W){W&&this._emitChangeEvent(),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(W=>W._markForCheck())}}return le.\u0275fac=function(W){return new(W||le)(v.Y36(v.sBO),v.Y36(B,8))},le.\u0275dir=v.lG2({type:le,selectors:[["mat-button-toggle-group"]],contentQueries:function(W,ie,he){if(1&W&&v.Suo(he,we,5),2&W){let se;v.iGM(se=v.CRH())&&(ie._buttonToggles=se)}},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(W,ie){2&W&&(v.uIk("aria-disabled",ie.disabled),v.ekj("mat-button-toggle-vertical",ie.vertical)("mat-button-toggle-group-appearance-standard","standard"===ie.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[v._Bn([P,{provide:O,useExisting:le}])]}),le})();const ae=(0,h.Kr)(class{});let we=(()=>{class le extends ae{constructor(W,ie,he,se,Me,Ge){super(),this._changeDetectorRef=ie,this._elementRef=he,this._focusMonitor=se,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new v.vpe;const it=Number(Me);this.tabIndex=it||0===it?it:null,this.buttonToggleGroup=W,this.appearance=Ge&&Ge.appearance?Ge.appearance:"standard"}get buttonId(){return`${this.id}-button`}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(W){this._appearance=W}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(W){const ie=(0,a.Ig)(W);ie!==this._checked&&(this._checked=ie,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(W){this._disabled=(0,a.Ig)(W)}ngOnInit(){const W=this.buttonToggleGroup;this.id=this.id||"mat-button-toggle-"+k++,W&&(W._isPrechecked(this)?this.checked=!0:W._isSelected(this)!==this._checked&&W._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const W=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),W&&W._isSelected(this)&&W._syncButtonToggle(this,!1,!1,!0)}focus(W){this._buttonElement.nativeElement.focus(W)}_onButtonClick(){const W=!!this._isSingleSelector()||!this._checked;W!==this._checked&&(this._checked=W,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new F(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this._isSingleSelector()?this.buttonToggleGroup.name:this.name||null}_isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}}return le.\u0275fac=function(W){return new(W||le)(v.Y36(O,8),v.Y36(v.sBO),v.Y36(v.SBq),v.Y36(i.tE),v.$8M("tabindex"),v.Y36(B,8))},le.\u0275cmp=v.Xpm({type:le,selectors:[["mat-button-toggle"]],viewQuery:function(W,ie){if(1&W&&v.Gf(g,5),2&W){let he;v.iGM(he=v.CRH())&&(ie._buttonElement=he.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(W,ie){1&W&&v.NdJ("focus",function(){return ie.focus()}),2&W&&(v.uIk("aria-label",null)("aria-labelledby",null)("id",ie.id)("name",null),v.ekj("mat-button-toggle-standalone",!ie.buttonToggleGroup)("mat-button-toggle-checked",ie.checked)("mat-button-toggle-disabled",ie.disabled)("mat-button-toggle-appearance-standard","standard"===ie.appearance))},inputs:{disableRipple:"disableRipple",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[v.qOj],ngContentSelectors:w,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(W,ie){if(1&W&&(v.F$t(),v.TgZ(0,"button",0,1),v.NdJ("click",function(){return ie._onButtonClick()}),v.TgZ(2,"span",2),v.Hsn(3),v.qZA()(),v._UZ(4,"span",3)(5,"span",4)),2&W){const he=v.MAs(1);v.Q6J("id",ie.buttonId)("disabled",ie.disabled||null),v.uIk("tabindex",ie.disabled?-1:ie.tabIndex)("aria-pressed",ie.checked)("name",ie._getButtonName())("aria-label",ie.ariaLabel)("aria-labelledby",ie.ariaLabelledby),v.xp6(5),v.Q6J("matRippleTrigger",he)("matRippleDisabled",ie.disableRipple||ie.disabled)}},dependencies:[h.wG],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0)}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}"],encapsulation:2,changeDetection:0}),le})(),ue=(()=>{class le{}return le.\u0275fac=function(W){return new(W||le)},le.\u0275mod=v.oAB({type:le}),le.\u0275inj=v.cJS({imports:[h.BQ,h.si,h.BQ]}),le})()},4859:(Ct,ke,u)=>{"use strict";u.d(ke,{lW:()=>O,ot:()=>k,zs:()=>P});var i=u(4650),a=u(3238),c=u(2687);const v=["mat-button",""],b=["*"],w=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],B=(0,a.pj)((0,a.Id)((0,a.Kr)(class{constructor(F){this._elementRef=F}})));let O=(()=>{class F extends B{constructor(ae,we,ue){super(ae),this._focusMonitor=we,this._animationMode=ue,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const le of w)this._hasHostAttributes(le)&&this._getHostElement().classList.add(le);ae.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(ae,we){ae?this._focusMonitor.focusVia(this._getHostElement(),ae,we):this._getHostElement().focus(we)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...ae){return ae.some(we=>this._getHostElement().hasAttribute(we))}}return F.\u0275fac=function(ae){return new(ae||F)(i.Y36(i.SBq),i.Y36(c.tE),i.Y36(i.QbO,8))},F.\u0275cmp=i.Xpm({type:F,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(ae,we){if(1&ae&&i.Gf(a.wG,5),2&ae){let ue;i.iGM(ue=i.CRH())&&(we.ripple=ue.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(ae,we){2&ae&&(i.uIk("disabled",we.disabled||null),i.ekj("_mat-animation-noopable","NoopAnimations"===we._animationMode)("mat-button-disabled",we.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[i.qOj],attrs:v,ngContentSelectors:b,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(ae,we){1&ae&&(i.F$t(),i.TgZ(0,"span",0),i.Hsn(1),i.qZA(),i._UZ(2,"span",1)(3,"span",2)),2&ae&&(i.xp6(2),i.ekj("mat-button-ripple-round",we.isRoundButton||we.isIconButton),i.Q6J("matRippleDisabled",we._isRippleDisabled())("matRippleCentered",we.isIconButton)("matRippleTrigger",we._getHostElement()))},dependencies:[a.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),F})(),P=(()=>{class F extends O{constructor(ae,we,ue,le){super(we,ae,ue),this._ngZone=le,this._haltDisabledEvents=ge=>{this.disabled&&(ge.preventDefault(),ge.stopImmediatePropagation())}}ngAfterViewInit(){super.ngAfterViewInit(),this._ngZone?this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}return F.\u0275fac=function(ae){return new(ae||F)(i.Y36(c.tE),i.Y36(i.SBq),i.Y36(i.QbO,8),i.Y36(i.R0b,8))},F.\u0275cmp=i.Xpm({type:F,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(ae,we){2&ae&&(i.uIk("tabindex",we.disabled?-1:we.tabIndex)("disabled",we.disabled||null)("aria-disabled",we.disabled.toString()),i.ekj("_mat-animation-noopable","NoopAnimations"===we._animationMode)("mat-button-disabled",we.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[i.qOj],attrs:v,ngContentSelectors:b,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(ae,we){1&ae&&(i.F$t(),i.TgZ(0,"span",0),i.Hsn(1),i.qZA(),i._UZ(2,"span",1)(3,"span",2)),2&ae&&(i.xp6(2),i.ekj("mat-button-ripple-round",we.isRoundButton||we.isIconButton),i.Q6J("matRippleDisabled",we._isRippleDisabled())("matRippleCentered",we.isIconButton)("matRippleTrigger",we._getHostElement()))},dependencies:[a.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),F})(),k=(()=>{class F{}return F.\u0275fac=function(ae){return new(ae||F)},F.\u0275mod=i.oAB({type:F}),F.\u0275inj=i.cJS({imports:[a.si,a.BQ,a.BQ]}),F})()},3546:(Ct,ke,u)=>{"use strict";u.d(ke,{$j:()=>P,QW:()=>se,a8:()=>W,dk:()=>ie,dn:()=>B,hq:()=>k,kc:()=>ge,n5:()=>O});var i=u(4650),a=u(3238);const c=["*",[["mat-card-footer"]]],v=["*","mat-card-footer"],b=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],h=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let B=(()=>{class Me{}return Me.\u0275fac=function(it){return new(it||Me)},Me.\u0275dir=i.lG2({type:Me,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),Me})(),O=(()=>{class Me{}return Me.\u0275fac=function(it){return new(it||Me)},Me.\u0275dir=i.lG2({type:Me,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),Me})(),P=(()=>{class Me{}return Me.\u0275fac=function(it){return new(it||Me)},Me.\u0275dir=i.lG2({type:Me,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),Me})(),k=(()=>{class Me{constructor(){this.align="start"}}return Me.\u0275fac=function(it){return new(it||Me)},Me.\u0275dir=i.lG2({type:Me,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(it,Ke){2&it&&i.ekj("mat-card-actions-align-end","end"===Ke.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),Me})(),ge=(()=>{class Me{}return Me.\u0275fac=function(it){return new(it||Me)},Me.\u0275dir=i.lG2({type:Me,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),Me})(),W=(()=>{class Me{constructor(it){this._animationMode=it}}return Me.\u0275fac=function(it){return new(it||Me)(i.Y36(i.QbO,8))},Me.\u0275cmp=i.Xpm({type:Me,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(it,Ke){2&it&&i.ekj("_mat-animation-noopable","NoopAnimations"===Ke._animationMode)},exportAs:["matCard"],ngContentSelectors:v,decls:2,vars:0,template:function(it,Ke){1&it&&(i.F$t(c),i.Hsn(0),i.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0}),Me})(),ie=(()=>{class Me{}return Me.\u0275fac=function(it){return new(it||Me)},Me.\u0275cmp=i.Xpm({type:Me,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:h,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(it,Ke){1&it&&(i.F$t(b),i.Hsn(0),i.TgZ(1,"div",0),i.Hsn(2,1),i.qZA(),i.Hsn(3,2))},encapsulation:2,changeDetection:0}),Me})(),se=(()=>{class Me{}return Me.\u0275fac=function(it){return new(it||Me)},Me.\u0275mod=i.oAB({type:Me}),Me.\u0275inj=i.cJS({imports:[a.BQ,a.BQ]}),Me})()},7331:(Ct,ke,u)=>{"use strict";u.d(ke,{HS:()=>it,Hi:()=>jt,qn:()=>_t});var i=u(9521),a=u(4650),c=u(3238),v=u(1281),b=u(3353),h=u(6895),g=u(8929),w=u(6787),B=u(2986),O=u(7625),P=u(1059),k=u(2687),F=u(445),z=u(5017),ae=u(4006),we=u(9549);const ue=["*"],ge=new a.OlP("MatChipRemove"),W=new a.OlP("MatChipAvatar"),ie=new a.OlP("MatChipTrailingIcon");class he{constructor(Ee){this._elementRef=Ee}}const se=(0,c.sb)((0,c.pj)((0,c.Kr)(he),"primary"),-1);let it=(()=>{class V extends se{constructor(oe,_e,Oe,at,be,et,Mt,gt){super(oe),this._ngZone=_e,this._changeDetectorRef=be,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new g.xQ,this._onBlur=new g.xQ,this.selectionChange=new a.vpe,this.destroyed=new a.vpe,this.removed=new a.vpe,this._addHostClassName(),this._chipRippleTarget=et.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new c.IR(this,_e,this._chipRippleTarget,Oe),this._chipRipple.setupTriggerEvents(oe),this.rippleConfig=at||{},this._animationsDisabled="NoopAnimations"===Mt,this.tabIndex=null!=gt&&parseInt(gt)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(oe){const _e=(0,v.Ig)(oe);_e!==this._selected&&(this._selected=_e,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(oe){this._value=oe}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(oe){this._selectable=(0,v.Ig)(oe)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(oe){this._disabled=(0,v.Ig)(oe)}get removable(){return this._removable}set removable(oe){this._removable=(0,v.Ig)(oe)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const oe="mat-basic-chip",_e=this._elementRef.nativeElement;_e.hasAttribute(oe)||_e.tagName.toLowerCase()===oe?_e.classList.add(oe):_e.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(oe=!1){return this._selected=!this.selected,this._dispatchSelectionChange(oe),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(oe){this.disabled&&oe.preventDefault()}_handleKeydown(oe){if(!this.disabled)switch(oe.keyCode){case i.yY:case i.ZH:this.remove(),oe.preventDefault();break;case i.L_:this.selectable&&this.toggleSelected(!0),oe.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,B.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(oe=!1){this.selectionChange.emit({source:this,isUserInput:oe,selected:this._selected})}}return V.\u0275fac=function(oe){return new(oe||V)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(b.t4),a.Y36(c.Y2,8),a.Y36(a.sBO),a.Y36(h.K0),a.Y36(a.QbO,8),a.$8M("tabindex"))},V.\u0275dir=a.lG2({type:V,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(oe,_e,Oe){if(1&oe&&(a.Suo(Oe,W,5),a.Suo(Oe,ie,5),a.Suo(Oe,ge,5)),2&oe){let at;a.iGM(at=a.CRH())&&(_e.avatar=at.first),a.iGM(at=a.CRH())&&(_e.trailingIcon=at.first),a.iGM(at=a.CRH())&&(_e.removeIcon=at.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(oe,_e){1&oe&&a.NdJ("click",function(at){return _e._handleClick(at)})("keydown",function(at){return _e._handleKeydown(at)})("focus",function(){return _e.focus()})("blur",function(){return _e._blur()}),2&oe&&(a.uIk("tabindex",_e.disabled?null:_e.tabIndex)("role",_e.role)("disabled",_e.disabled||null)("aria-disabled",_e.disabled.toString())("aria-selected",_e.ariaSelected),a.ekj("mat-chip-selected",_e.selected)("mat-chip-with-avatar",_e.avatar)("mat-chip-with-trailing-icon",_e.trailingIcon||_e.removeIcon)("mat-chip-disabled",_e.disabled)("_mat-animation-noopable",_e._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[a.qOj]}),V})();const tt=new a.OlP("mat-chips-default-options"),me=(0,c.FD)(class{constructor(V,Ee,oe,_e){this._defaultErrorStateMatcher=V,this._parentForm=Ee,this._parentFormGroup=oe,this.ngControl=_e,this.stateChanges=new g.xQ}});let Xe=0;class Ae{constructor(Ee,oe){this.source=Ee,this.value=oe}}let _t=(()=>{class V extends me{constructor(oe,_e,Oe,at,be,et,Mt){super(et,at,be,Mt),this._elementRef=oe,this._changeDetectorRef=_e,this._dir=Oe,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new g.xQ,this._uid="mat-chip-list-"+Xe++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(gt,We)=>gt===We,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new a.vpe,this.valueChange=new a.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get role(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role(oe){this._explicitRole=oe}get multiple(){return this._multiple}set multiple(oe){this._multiple=(0,v.Ig)(oe),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(oe){this._compareWith=oe,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(oe){this.writeValue(oe),this._value=oe}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(ae.kI.required)??!1}set required(oe){this._required=(0,v.Ig)(oe),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(oe){this._placeholder=oe,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(oe){this._disabled=(0,v.Ig)(oe),this._syncChipsState()}get selectable(){return this._selectable}set selectable(oe){this._selectable=(0,v.Ig)(oe),this._syncChipsState()}set tabIndex(oe){this._userTabIndex=oe,this._tabIndex=oe}get chipSelectionChanges(){return(0,w.T)(...this.chips.map(oe=>oe.selectionChange))}get chipFocusChanges(){return(0,w.T)(...this.chips.map(oe=>oe._onFocus))}get chipBlurChanges(){return(0,w.T)(...this.chips.map(oe=>oe._onBlur))}get chipRemoveChanges(){return(0,w.T)(...this.chips.map(oe=>oe.destroyed))}ngAfterContentInit(){this._keyManager=new k.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,O.R)(this._destroyed)).subscribe(oe=>this._keyManager.withHorizontalOrientation(oe)),this._keyManager.tabOut.pipe((0,O.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,P.O)(null),(0,O.R)(this._destroyed)).subscribe(()=>{(this.disabled||!this.selectable)&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new z.Ov(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(oe){this._chipInput=oe,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",oe.id)}setDescribedByIds(oe){oe.length?this._elementRef.nativeElement.setAttribute("aria-describedby",oe.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(oe){this.chips&&this._setSelectionByValue(oe,!1)}registerOnChange(oe){this._onChange=oe}registerOnTouched(oe){this._onTouched=oe}setDisabledState(oe){this.disabled=oe,this.stateChanges.next()}onContainerClick(oe){this._originatesFromChip(oe)||this.focus()}focus(oe){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(oe),this.stateChanges.next()))}_focusInput(oe){this._chipInput&&this._chipInput.focus(oe)}_keydown(oe){const _e=oe.target;_e&&_e.classList.contains("mat-chip")&&(this._keyManager.onKeydown(oe),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const oe=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(oe)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(oe){return oe>=0&&oeOe.deselect()),Array.isArray(oe))oe.forEach(Oe=>this._selectValue(Oe,_e)),this._sortValues();else{const Oe=this._selectValue(oe,_e);Oe&&_e&&this._keyManager.setActiveItem(Oe)}}_selectValue(oe,_e=!0){const Oe=this.chips.find(at=>null!=at.value&&this._compareWith(at.value,oe));return Oe&&(_e?Oe.selectViaInteraction():Oe.select(),this._selectionModel.select(Oe)),Oe}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(oe){this._selectionModel.clear(),this.chips.forEach(_e=>{_e!==oe&&_e.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(oe=>{oe.selected&&this._selectionModel.select(oe)}),this.stateChanges.next())}_propagateChanges(oe){let _e=null;_e=Array.isArray(this.selected)?this.selected.map(Oe=>Oe.value):this.selected?this.selected.value:oe,this._value=_e,this.change.emit(new Ae(this,_e)),this.valueChange.emit(_e),this._onChange(_e),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(oe=>{oe.source.selected?this._selectionModel.select(oe.source):this._selectionModel.deselect(oe.source),this.multiple||this.chips.forEach(_e=>{!this._selectionModel.isSelected(_e)&&_e.selected&&_e.deselect()}),oe.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(oe=>{let _e=this.chips.toArray().indexOf(oe.chip);this._isValidIndex(_e)&&this._keyManager.updateActiveItem(_e),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(oe=>{const _e=oe.chip,Oe=this.chips.toArray().indexOf(oe.chip);this._isValidIndex(Oe)&&_e._hasFocus&&(this._lastDestroyedChipIndex=Oe)})}_originatesFromChip(oe){let _e=oe.target;for(;_e&&_e!==this._elementRef.nativeElement;){if(_e.classList.contains("mat-chip"))return!0;_e=_e.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(oe=>oe._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(oe=>{oe._chipListDisabled=this._disabled,oe._chipListMultiple=this.multiple,oe.chipListSelectable=this._selectable})}}return V.\u0275fac=function(oe){return new(oe||V)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(F.Is,8),a.Y36(ae.F,8),a.Y36(ae.sg,8),a.Y36(c.rD),a.Y36(ae.a5,10))},V.\u0275cmp=a.Xpm({type:V,selectors:[["mat-chip-list"]],contentQueries:function(oe,_e,Oe){if(1&oe&&a.Suo(Oe,it,5),2&oe){let at;a.iGM(at=a.CRH())&&(_e.chips=at)}},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function(oe,_e){1&oe&&a.NdJ("focus",function(){return _e.focus()})("blur",function(){return _e._blur()})("keydown",function(at){return _e._keydown(at)}),2&oe&&(a.Ikx("id",_e._uid),a.uIk("tabindex",_e.disabled?null:_e._tabIndex)("aria-required",_e.role?_e.required:null)("aria-disabled",_e.disabled.toString())("aria-invalid",_e.errorState)("aria-multiselectable",_e.multiple)("role",_e.role)("aria-orientation",_e.ariaOrientation),a.ekj("mat-chip-list-disabled",_e.disabled)("mat-chip-list-invalid",_e.errorState)("mat-chip-list-required",_e.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[a._Bn([{provide:we.Eo,useExisting:V}]),a.qOj],ngContentSelectors:ue,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(oe,_e){1&oe&&(a.F$t(),a.TgZ(0,"div",0),a.Hsn(1),a.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}.mat-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}'],encapsulation:2,changeDetection:0}),V})(),jt=(()=>{class V{}return V.\u0275fac=function(oe){return new(oe||V)},V.\u0275mod=a.oAB({type:V}),V.\u0275inj=a.cJS({providers:[c.rD,{provide:tt,useValue:{separatorKeyCodes:[i.K5]}}],imports:[c.BQ]}),V})()},3238:(Ct,ke,u)=>{"use strict";u.d(ke,{yN:()=>le,mZ:()=>ge,rD:()=>be,K7:()=>T,HF:()=>X,Y2:()=>x,BQ:()=>he,X2:()=>et,uc:()=>We,ey:()=>dt,Ng:()=>qe,nP:()=>j,us:()=>de,wG:()=>p,si:()=>m,IR:()=>U,CB:()=>Et,jH:()=>ye,pj:()=>Ke,Kr:()=>tt,Id:()=>it,FD:()=>Xe,dB:()=>Ae,sb:()=>me,E0:()=>Mt});var i=u(4650),a=u(2687),c=u(445),b=u(6895),h=u(3353),g=u(1281),w=u(6498),B=u(8929),O=u(1059),P=u(9521);function z(xe,Fe){if(1&xe&&i._UZ(0,"mat-pseudo-checkbox",4),2&xe){const ot=i.oxw();i.Q6J("state",ot.selected?"checked":"unchecked")("disabled",ot.disabled)}}function ae(xe,Fe){if(1&xe&&(i.TgZ(0,"span",5),i._uU(1),i.qZA()),2&xe){const ot=i.oxw();i.xp6(1),i.hij("(",ot.group.label,")")}}const we=["*"];let le=(()=>{class xe{}return xe.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",xe.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",xe.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",xe.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",xe})(),ge=(()=>{class xe{}return xe.COMPLEX="375ms",xe.ENTERING="225ms",xe.EXITING="195ms",xe})();const ie=new i.OlP("mat-sanity-checks",{providedIn:"root",factory:function W(){return!0}});let he=(()=>{class xe{constructor(ot,ce,je){this._sanityChecks=ce,this._document=je,this._hasDoneGlobalChecks=!1,ot._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(ot){return!(0,h.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[ot])}}return xe.\u0275fac=function(ot){return new(ot||xe)(i.LFG(a.qm),i.LFG(ie,8),i.LFG(b.K0))},xe.\u0275mod=i.oAB({type:xe}),xe.\u0275inj=i.cJS({imports:[c.vT,c.vT]}),xe})();function it(xe){return class extends xe{constructor(...Fe){super(...Fe),this._disabled=!1}get disabled(){return this._disabled}set disabled(Fe){this._disabled=(0,g.Ig)(Fe)}}}function Ke(xe,Fe){return class extends xe{constructor(...ot){super(...ot),this.defaultColor=Fe,this.color=Fe}get color(){return this._color}set color(ot){const ce=ot||this.defaultColor;ce!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),ce&&this._elementRef.nativeElement.classList.add(`mat-${ce}`),this._color=ce)}}}function tt(xe){return class extends xe{constructor(...Fe){super(...Fe),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Fe){this._disableRipple=(0,g.Ig)(Fe)}}}function me(xe,Fe=0){return class extends xe{constructor(...ot){super(...ot),this._tabIndex=Fe,this.defaultTabIndex=Fe}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(ot){this._tabIndex=null!=ot?(0,g.su)(ot):this.defaultTabIndex}}}function Xe(xe){return class extends xe{constructor(...Fe){super(...Fe),this.errorState=!1}updateErrorState(){const Fe=this.errorState,Ce=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);Ce!==Fe&&(this.errorState=Ce,this.stateChanges.next())}}}function Ae(xe){return class extends xe{constructor(...Fe){super(...Fe),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new w.y(ot=>{this._isInitialized?this._notifySubscriber(ot):this._pendingSubscribers.push(ot)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(Fe){Fe.next(),Fe.complete()}}}let be=(()=>{class xe{isErrorState(ot,ce){return!!(ot&&ot.invalid&&(ot.touched||ce&&ce.submitted))}}return xe.\u0275fac=function(ot){return new(ot||xe)},xe.\u0275prov=i.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})(),et=(()=>{class xe{}return xe.\u0275fac=function(ot){return new(ot||xe)},xe.\u0275dir=i.lG2({type:xe,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),xe})();function Mt(xe,Fe,ot="mat"){xe.changes.pipe((0,O.O)(xe)).subscribe(({length:ce})=>{gt(Fe,`${ot}-2-line`,!1),gt(Fe,`${ot}-3-line`,!1),gt(Fe,`${ot}-multi-line`,!1),2===ce||3===ce?gt(Fe,`${ot}-${ce}-line`,!0):ce>3&>(Fe,`${ot}-multi-line`,!0)})}function gt(xe,Fe,ot){xe.nativeElement.classList.toggle(Fe,ot)}let We=(()=>{class xe{}return xe.\u0275fac=function(ot){return new(ot||xe)},xe.\u0275mod=i.oAB({type:xe}),xe.\u0275inj=i.cJS({imports:[he,he]}),xe})();class wt{constructor(Fe,ot,ce,je=!1){this._renderer=Fe,this.element=ot,this.config=ce,this._animationForciblyDisabledThroughCss=je,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const nt={enterDuration:225,exitDuration:150},Le=(0,h.i$)({passive:!0}),ee=["mousedown","touchstart"],R=["mouseup","mouseleave","touchend","touchcancel"];class U{constructor(Fe,ot,ce,je){this._target=Fe,this._ngZone=ot,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,je.isBrowser&&(this._containerElement=(0,g.fI)(ce))}fadeInRipple(Fe,ot,ce={}){const je=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Ce={...nt,...ce.animation};ce.centered&&(Fe=je.left+je.width/2,ot=je.top+je.height/2);const Ye=ce.radius||function Re(xe,Fe,ot){const ce=Math.max(Math.abs(xe-ot.left),Math.abs(xe-ot.right)),je=Math.max(Math.abs(Fe-ot.top),Math.abs(Fe-ot.bottom));return Math.sqrt(ce*ce+je*je)}(Fe,ot,je),Pe=Fe-je.left,bt=ot-je.top,st=Ce.enterDuration,ct=document.createElement("div");ct.classList.add("mat-ripple-element"),ct.style.left=Pe-Ye+"px",ct.style.top=bt-Ye+"px",ct.style.height=2*Ye+"px",ct.style.width=2*Ye+"px",null!=ce.color&&(ct.style.backgroundColor=ce.color),ct.style.transitionDuration=`${st}ms`,this._containerElement.appendChild(ct);const Ht=window.getComputedStyle(ct),ze=Ht.transitionDuration,rt="none"===Ht.transitionProperty||"0s"===ze||"0s, 0s"===ze,qt=new wt(this,ct,ce,rt);ct.style.transform="scale3d(1, 1, 1)",qt.state=0,ce.persistent||(this._mostRecentTransientRipple=qt);let Ut=null;return!rt&&(st||Ce.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const en=()=>this._finishRippleTransition(qt),bn=()=>this._destroyRipple(qt);ct.addEventListener("transitionend",en),ct.addEventListener("transitioncancel",bn),Ut={onTransitionEnd:en,onTransitionCancel:bn}}),this._activeRipples.set(qt,Ut),(rt||!st)&&this._finishRippleTransition(qt),qt}fadeOutRipple(Fe){if(2===Fe.state||3===Fe.state)return;const ot=Fe.element,ce={...nt,...Fe.config.animation};ot.style.transitionDuration=`${ce.exitDuration}ms`,ot.style.opacity="0",Fe.state=2,(Fe._animationForciblyDisabledThroughCss||!ce.exitDuration)&&this._finishRippleTransition(Fe)}fadeOutAll(){this._getActiveRipples().forEach(Fe=>Fe.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(Fe=>{Fe.config.persistent||Fe.fadeOut()})}setupTriggerEvents(Fe){const ot=(0,g.fI)(Fe);!ot||ot===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=ot,this._registerEvents(ee))}handleEvent(Fe){"mousedown"===Fe.type?this._onMousedown(Fe):"touchstart"===Fe.type?this._onTouchStart(Fe):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(R),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(Fe){0===Fe.state?this._startFadeOutTransition(Fe):2===Fe.state&&this._destroyRipple(Fe)}_startFadeOutTransition(Fe){const ot=Fe===this._mostRecentTransientRipple,{persistent:ce}=Fe.config;Fe.state=1,!ce&&(!ot||!this._isPointerDown)&&Fe.fadeOut()}_destroyRipple(Fe){const ot=this._activeRipples.get(Fe)??null;this._activeRipples.delete(Fe),this._activeRipples.size||(this._containerRect=null),Fe===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),Fe.state=3,null!==ot&&(Fe.element.removeEventListener("transitionend",ot.onTransitionEnd),Fe.element.removeEventListener("transitioncancel",ot.onTransitionCancel)),Fe.element.remove()}_onMousedown(Fe){const ot=(0,a.X6)(Fe),ce=this._lastTouchStartEvent&&Date.now(){!Fe.config.persistent&&(1===Fe.state||Fe.config.terminateOnPointerUp&&0===Fe.state)&&Fe.fadeOut()}))}_registerEvents(Fe){this._ngZone.runOutsideAngular(()=>{Fe.forEach(ot=>{this._triggerElement.addEventListener(ot,this,Le)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(ee.forEach(Fe=>{this._triggerElement.removeEventListener(Fe,this,Le)}),this._pointerUpEventsRegistered&&R.forEach(Fe=>{this._triggerElement.removeEventListener(Fe,this,Le)}))}}const x=new i.OlP("mat-ripple-global-options");let p=(()=>{class xe{constructor(ot,ce,je,Ce,Ye){this._elementRef=ot,this._animationMode=Ye,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Ce||{},this._rippleRenderer=new U(this,ce,ot,je)}get disabled(){return this._disabled}set disabled(ot){ot&&this.fadeOutAllNonPersistent(),this._disabled=ot,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(ot){this._trigger=ot,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(ot,ce=0,je){return"number"==typeof ot?this._rippleRenderer.fadeInRipple(ot,ce,{...this.rippleConfig,...je}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...ot})}}return xe.\u0275fac=function(ot){return new(ot||xe)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(h.t4),i.Y36(x,8),i.Y36(i.QbO,8))},xe.\u0275dir=i.lG2({type:xe,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(ot,ce){2&ot&&i.ekj("mat-ripple-unbounded",ce.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),xe})(),m=(()=>{class xe{}return xe.\u0275fac=function(ot){return new(ot||xe)},xe.\u0275mod=i.oAB({type:xe}),xe.\u0275inj=i.cJS({imports:[he,he]}),xe})(),j=(()=>{class xe{constructor(ot){this._animationMode=ot,this.state="unchecked",this.disabled=!1}}return xe.\u0275fac=function(ot){return new(ot||xe)(i.Y36(i.QbO,8))},xe.\u0275cmp=i.Xpm({type:xe,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(ot,ce){2&ot&&i.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===ce.state)("mat-pseudo-checkbox-checked","checked"===ce.state)("mat-pseudo-checkbox-disabled",ce.disabled)("_mat-animation-noopable","NoopAnimations"===ce._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(ot,ce){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0}),xe})(),de=(()=>{class xe{}return xe.\u0275fac=function(ot){return new(ot||xe)},xe.\u0275mod=i.oAB({type:xe}),xe.\u0275inj=i.cJS({imports:[he]}),xe})();const X=new i.OlP("MAT_OPTION_PARENT_COMPONENT"),T=new i.OlP("MatOptgroup");let Je=0;class $e{constructor(Fe,ot=!1){this.source=Fe,this.isUserInput=ot}}let St=(()=>{class xe{constructor(ot,ce,je,Ce){this._element=ot,this._changeDetectorRef=ce,this._parent=je,this.group=Ce,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Je++,this.onSelectionChange=new i.vpe,this._stateChanges=new B.xQ}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(ot){this._disabled=(0,g.Ig)(ot)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(ot,ce){const je=this._getHostElement();"function"==typeof je.focus&&je.focus(ce)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(ot){(ot.keyCode===P.K5||ot.keyCode===P.L_)&&!(0,P.Vb)(ot)&&(this._selectViaInteraction(),ot.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const ot=this.viewValue;ot!==this._mostRecentViewValue&&(this._mostRecentViewValue=ot,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(ot=!1){this.onSelectionChange.emit(new $e(this,ot))}}return xe.\u0275fac=function(ot){i.$Z()},xe.\u0275dir=i.lG2({type:xe,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),xe})(),dt=(()=>{class xe extends St{constructor(ot,ce,je,Ce){super(ot,ce,je,Ce)}}return xe.\u0275fac=function(ot){return new(ot||xe)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(X,8),i.Y36(T,8))},xe.\u0275cmp=i.Xpm({type:xe,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(ot,ce){1&ot&&i.NdJ("click",function(){return ce._selectViaInteraction()})("keydown",function(Ce){return ce._handleKeydown(Ce)}),2&ot&&(i.Ikx("id",ce.id),i.uIk("tabindex",ce._getTabIndex())("aria-selected",ce._getAriaSelected())("aria-disabled",ce.disabled.toString()),i.ekj("mat-selected",ce.selected)("mat-option-multiple",ce.multiple)("mat-active",ce.active)("mat-option-disabled",ce.disabled))},exportAs:["matOption"],features:[i.qOj],ngContentSelectors:we,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(ot,ce){1&ot&&(i.F$t(),i.YNc(0,z,1,2,"mat-pseudo-checkbox",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,ae,2,1,"span",2),i._UZ(4,"div",3)),2&ot&&(i.Q6J("ngIf",ce.multiple),i.xp6(3),i.Q6J("ngIf",ce.group&&ce.group._inert),i.xp6(1),i.Q6J("matRippleTrigger",ce._getHostElement())("matRippleDisabled",ce.disabled||ce.disableRipple))},dependencies:[p,b.O5,j],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),xe})();function Et(xe,Fe,ot){if(ot.length){let ce=Fe.toArray(),je=ot.toArray(),Ce=0;for(let Ye=0;Yeot+ce?Math.max(0,xe-ce+Fe):ot}let qe=(()=>{class xe{}return xe.\u0275fac=function(ot){return new(ot||xe)},xe.\u0275mod=i.oAB({type:xe}),xe.\u0275inj=i.cJS({imports:[m,b.ez,he,de]}),xe})()},5412:(Ct,ke,u)=>{"use strict";u.d(ke,{WI:()=>_e,uw:()=>wt,H8:()=>R,ZT:()=>Q,xY:()=>ee,Is:()=>Re,so:()=>Ee,uh:()=>Le});var i=u(2687),a=u(8184),c=u(3353),v=u(4080),b=u(6895),h=u(4650),g=u(9521),w=u(8929),B=u(8514),O=u(1086),P=u(445),k=u(1059);function F(x,p){}class z{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let we=(()=>{class x extends v.en{constructor(m,j,de,X,H,f,_,T){super(),this._elementRef=m,this._focusTrapFactory=j,this._config=X,this._interactivityChecker=H,this._ngZone=f,this._overlayRef=_,this._focusMonitor=T,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=ve=>{this._portalOutlet.hasAttached();const Je=this._portalOutlet.attachDomPortal(ve);return this._contentAttached(),Je},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=de}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(m){this._portalOutlet.hasAttached();const j=this._portalOutlet.attachComponentPortal(m);return this._contentAttached(),j}attachTemplatePortal(m){this._portalOutlet.hasAttached();const j=this._portalOutlet.attachTemplatePortal(m);return this._contentAttached(),j}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(m,j){this._interactivityChecker.isFocusable(m)||(m.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const de=()=>{m.removeEventListener("blur",de),m.removeEventListener("mousedown",de),m.removeAttribute("tabindex")};m.addEventListener("blur",de),m.addEventListener("mousedown",de)})),m.focus(j)}_focusByCssSelector(m,j){let de=this._elementRef.nativeElement.querySelector(m);de&&this._forceFocus(de,j)}_trapFocus(){const m=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||m.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(j=>{j||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const m=this._config.restoreFocus;let j=null;if("string"==typeof m?j=this._document.querySelector(m):"boolean"==typeof m?j=m?this._elementFocusedBeforeDialogWasOpened:null:m&&(j=m),this._config.restoreFocus&&j&&"function"==typeof j.focus){const de=(0,c.ht)(),X=this._elementRef.nativeElement;(!de||de===this._document.body||de===X||X.contains(de))&&(this._focusMonitor?(this._focusMonitor.focusVia(j,this._closeInteractionType),this._closeInteractionType=null):j.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const m=this._elementRef.nativeElement,j=(0,c.ht)();return m===j||m.contains(j)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,c.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return x.\u0275fac=function(m){return new(m||x)(h.Y36(h.SBq),h.Y36(i.qV),h.Y36(b.K0,8),h.Y36(z),h.Y36(i.ic),h.Y36(h.R0b),h.Y36(a.Iu),h.Y36(i.tE))},x.\u0275cmp=h.Xpm({type:x,selectors:[["cdk-dialog-container"]],viewQuery:function(m,j){if(1&m&&h.Gf(v.Pl,7),2&m){let de;h.iGM(de=h.CRH())&&(j._portalOutlet=de.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(m,j){2&m&&h.uIk("id",j._config.id||null)("role",j._config.role)("aria-modal",j._config.ariaModal)("aria-labelledby",j._config.ariaLabel?null:j._ariaLabelledBy)("aria-label",j._config.ariaLabel)("aria-describedby",j._config.ariaDescribedBy||null)},features:[h.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(m,j){1&m&&h.YNc(0,F,0,0,"ng-template",0)},dependencies:[v.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),x})();class ue{constructor(p,m){this.overlayRef=p,this.config=m,this.closed=new w.xQ,this.disableClose=m.disableClose,this.backdropClick=p.backdropClick(),this.keydownEvents=p.keydownEvents(),this.outsidePointerEvents=p.outsidePointerEvents(),this.id=m.id,this.keydownEvents.subscribe(j=>{j.keyCode===g.hY&&!this.disableClose&&!(0,g.Vb)(j)&&(j.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(p,m){if(this.containerInstance){const j=this.closed;this.containerInstance._closeInteractionType=m?.focusOrigin||"program",this.overlayRef.dispose(),j.next(p),j.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(p="",m=""){return this.overlayRef.updateSize({width:p,height:m}),this}addPanelClass(p){return this.overlayRef.addPanelClass(p),this}removePanelClass(p){return this.overlayRef.removePanelClass(p),this}}const le=new h.OlP("DialogScrollStrategy"),ge=new h.OlP("DialogData"),W=new h.OlP("DefaultDialogConfig"),he={provide:le,deps:[a.aV],useFactory:function ie(x){return()=>x.scrollStrategies.block()}};let se=0,Me=(()=>{class x{constructor(m,j,de,X,H,f){this._overlay=m,this._injector=j,this._defaultOptions=de,this._parentDialog=X,this._overlayContainer=H,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new w.xQ,this._afterOpenedAtThisLevel=new w.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,B.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,k.O)(void 0))),this._scrollStrategy=f}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(m,j){(j={...this._defaultOptions||new z,...j}).id=j.id||"cdk-dialog-"+se++,j.id&&this.getDialogById(j.id);const X=this._getOverlayConfig(j),H=this._overlay.create(X),f=new ue(H,j),_=this._attachContainer(H,f,j);return f.containerInstance=_,this._attachDialogContent(m,f,_,j),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(f),f.closed.subscribe(()=>this._removeOpenDialog(f,!0)),this.afterOpened.next(f),f}closeAll(){Ge(this.openDialogs,m=>m.close())}getDialogById(m){return this.openDialogs.find(j=>j.id===m)}ngOnDestroy(){Ge(this._openDialogsAtThisLevel,m=>{!1===m.config.closeOnDestroy&&this._removeOpenDialog(m,!1)}),Ge(this._openDialogsAtThisLevel,m=>m.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(m){const j=new a.X_({positionStrategy:m.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:m.scrollStrategy||this._scrollStrategy(),panelClass:m.panelClass,hasBackdrop:m.hasBackdrop,direction:m.direction,minWidth:m.minWidth,minHeight:m.minHeight,maxWidth:m.maxWidth,maxHeight:m.maxHeight,width:m.width,height:m.height,disposeOnNavigation:m.closeOnNavigation});return m.backdropClass&&(j.backdropClass=m.backdropClass),j}_attachContainer(m,j,de){const X=de.injector||de.viewContainerRef?.injector,H=[{provide:z,useValue:de},{provide:ue,useValue:j},{provide:a.Iu,useValue:m}];let f;de.container?"function"==typeof de.container?f=de.container:(f=de.container.type,H.push(...de.container.providers(de))):f=we;const _=new v.C5(f,de.viewContainerRef,h.zs3.create({parent:X||this._injector,providers:H}),de.componentFactoryResolver);return m.attach(_).instance}_attachDialogContent(m,j,de,X){if(m instanceof h.Rgc){const H=this._createInjector(X,j,de,void 0);let f={$implicit:X.data,dialogRef:j};X.templateContext&&(f={...f,..."function"==typeof X.templateContext?X.templateContext():X.templateContext}),de.attachTemplatePortal(new v.UE(m,null,f,H))}else{const H=this._createInjector(X,j,de,this._injector),f=de.attachComponentPortal(new v.C5(m,X.viewContainerRef,H,X.componentFactoryResolver));j.componentInstance=f.instance}}_createInjector(m,j,de,X){const H=m.injector||m.viewContainerRef?.injector,f=[{provide:ge,useValue:m.data},{provide:ue,useValue:j}];return m.providers&&("function"==typeof m.providers?f.push(...m.providers(j,m,de)):f.push(...m.providers)),m.direction&&(!H||!H.get(P.Is,null,h.XFs.Optional))&&f.push({provide:P.Is,useValue:{value:m.direction,change:(0,O.of)()}}),h.zs3.create({parent:H||X,providers:f})}_removeOpenDialog(m,j){const de=this.openDialogs.indexOf(m);de>-1&&(this.openDialogs.splice(de,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((X,H)=>{X?H.setAttribute("aria-hidden",X):H.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),j&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const m=this._overlayContainer.getContainerElement();if(m.parentElement){const j=m.parentElement.children;for(let de=j.length-1;de>-1;de--){const X=j[de];X!==m&&"SCRIPT"!==X.nodeName&&"STYLE"!==X.nodeName&&!X.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(X,X.getAttribute("aria-hidden")),X.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const m=this._parentDialog;return m?m._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return x.\u0275fac=function(m){return new(m||x)(h.LFG(a.aV),h.LFG(h.zs3),h.LFG(W,8),h.LFG(x,12),h.LFG(a.Xj),h.LFG(le))},x.\u0275prov=h.Yz7({token:x,factory:x.\u0275fac}),x})();function Ge(x,p){let m=x.length;for(;m--;)p(x[m])}let it=(()=>{class x{}return x.\u0275fac=function(m){return new(m||x)},x.\u0275mod=h.oAB({type:x}),x.\u0275inj=h.cJS({providers:[Me,he],imports:[a.U8,v.eL,i.rt,v.eL]}),x})();var Ke=u(3238),tt=u(6787),me=u(2198),Xe=u(2986),Ae=u(7340);function _t(x,p){}const ht={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},Yt={dialogContainer:(0,Ae.X$)("dialogContainer",[(0,Ae.SB)("void, exit",(0,Ae.oB)({opacity:0,transform:"scale(0.7)"})),(0,Ae.SB)("enter",(0,Ae.oB)({transform:"none"})),(0,Ae.eR)("* => enter",(0,Ae.ru)([(0,Ae.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,Ae.oB)({transform:"none",opacity:1})),(0,Ae.IO)("@*",(0,Ae.pV)(),{optional:!0})]),ht),(0,Ae.eR)("* => void, * => exit",(0,Ae.ru)([(0,Ae.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,Ae.oB)({opacity:0})),(0,Ae.IO)("@*",(0,Ae.pV)(),{optional:!0})]),ht)])};class Dt{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=ht.params.enterAnimationDuration,this.exitAnimationDuration=ht.params.exitAnimationDuration}}let jt=(()=>{class x extends we{constructor(m,j,de,X,H,f,_,T){super(m,j,de,X,H,f,_,T),this._animationStateChanged=new h.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(m){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:m})}}return x.\u0275fac=function(m){return new(m||x)(h.Y36(h.SBq),h.Y36(i.qV),h.Y36(b.K0,8),h.Y36(Dt),h.Y36(i.ic),h.Y36(h.R0b),h.Y36(a.Iu),h.Y36(i.tE))},x.\u0275cmp=h.Xpm({type:x,selectors:[["ng-component"]],features:[h.qOj],decls:0,vars:0,template:function(m,j){},encapsulation:2}),x})(),V=(()=>{class x extends jt{constructor(m,j,de,X,H,f,_,T,ve){super(m,j,de,X,H,f,_,ve),this._changeDetectorRef=T,this._state="enter"}_onAnimationDone({toState:m,totalTime:j}){"enter"===m?this._openAnimationDone(j):"exit"===m&&this._animationStateChanged.next({state:"closed",totalTime:j})}_onAnimationStart({toState:m,totalTime:j}){"enter"===m?this._animationStateChanged.next({state:"opening",totalTime:j}):("exit"===m||"void"===m)&&this._animationStateChanged.next({state:"closing",totalTime:j})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||ht.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||ht.params.exitAnimationDuration}}}}return x.\u0275fac=function(m){return new(m||x)(h.Y36(h.SBq),h.Y36(i.qV),h.Y36(b.K0,8),h.Y36(Dt),h.Y36(i.ic),h.Y36(h.R0b),h.Y36(a.Iu),h.Y36(h.sBO),h.Y36(i.tE))},x.\u0275cmp=h.Xpm({type:x,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(m,j){1&m&&h.WFA("@dialogContainer.start",function(X){return j._onAnimationStart(X)})("@dialogContainer.done",function(X){return j._onAnimationDone(X)}),2&m&&(h.Ikx("id",j._config.id),h.uIk("aria-modal",j._config.ariaModal)("role",j._config.role)("aria-labelledby",j._config.ariaLabel?null:j._ariaLabelledBy)("aria-label",j._config.ariaLabel)("aria-describedby",j._config.ariaDescribedBy||null),h.d8E("@dialogContainer",j._getAnimationState()))},features:[h.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(m,j){1&m&&h.YNc(0,_t,0,0,"ng-template",0)},dependencies:[v.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[Yt.dialogContainer]}}),x})();class Ee{constructor(p,m,j){this._ref=p,this._containerInstance=j,this._afterOpened=new w.xQ,this._beforeClosed=new w.xQ,this._state=0,this.disableClose=m.disableClose,this.id=p.id,j._animationStateChanged.pipe((0,me.h)(de=>"opened"===de.state),(0,Xe.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),j._animationStateChanged.pipe((0,me.h)(de=>"closed"===de.state),(0,Xe.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),p.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,tt.T)(this.backdropClick(),this.keydownEvents().pipe((0,me.h)(de=>de.keyCode===g.hY&&!this.disableClose&&!(0,g.Vb)(de)))).subscribe(de=>{this.disableClose||(de.preventDefault(),oe(this,"keydown"===de.type?"keyboard":"mouse"))})}close(p){this._result=p,this._containerInstance._animationStateChanged.pipe((0,me.h)(m=>"closing"===m.state),(0,Xe.q)(1)).subscribe(m=>{this._beforeClosed.next(p),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),m.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(p){let m=this._ref.config.positionStrategy;return p&&(p.left||p.right)?p.left?m.left(p.left):m.right(p.right):m.centerHorizontally(),p&&(p.top||p.bottom)?p.top?m.top(p.top):m.bottom(p.bottom):m.centerVertically(),this._ref.updatePosition(),this}updateSize(p="",m=""){return this._ref.updateSize(p,m),this}addPanelClass(p){return this._ref.addPanelClass(p),this}removePanelClass(p){return this._ref.removePanelClass(p),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function oe(x,p,m){return x._closeInteractionType=p,x.close(m)}const _e=new h.OlP("MatDialogData"),Oe=new h.OlP("mat-dialog-default-options"),at=new h.OlP("mat-dialog-scroll-strategy"),Mt={provide:at,deps:[a.aV],useFactory:function et(x){return()=>x.scrollStrategies.block()}};let gt=0,We=(()=>{class x{constructor(m,j,de,X,H,f,_,T,ve,Je){this._overlay=m,this._defaultOptions=de,this._parentDialog=X,this._dialogRefConstructor=_,this._dialogContainerType=T,this._dialogDataToken=ve,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new w.xQ,this._afterOpenedAtThisLevel=new w.xQ,this._idPrefix="mat-dialog-",this.afterAllClosed=(0,B.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,k.O)(void 0))),this._scrollStrategy=f,this._dialog=j.get(Me)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const m=this._parentDialog;return m?m._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(m,j){let de;(j={...this._defaultOptions||new Dt,...j}).id=j.id||`${this._idPrefix}${gt++}`,j.scrollStrategy=j.scrollStrategy||this._scrollStrategy();const X=this._dialog.open(m,{...j,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Dt,useValue:j},{provide:z,useValue:j}]},templateContext:()=>({dialogRef:de}),providers:(H,f,_)=>(de=new this._dialogRefConstructor(H,j,_),de.updatePosition(j?.position),[{provide:this._dialogContainerType,useValue:_},{provide:this._dialogDataToken,useValue:f.data},{provide:this._dialogRefConstructor,useValue:de}])});return de.componentInstance=X.componentInstance,this.openDialogs.push(de),this.afterOpened.next(de),de.afterClosed().subscribe(()=>{const H=this.openDialogs.indexOf(de);H>-1&&(this.openDialogs.splice(H,1),this.openDialogs.length||this._getAfterAllClosed().next())}),de}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(m){return this.openDialogs.find(j=>j.id===m)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(m){let j=m.length;for(;j--;)m[j].close()}}return x.\u0275fac=function(m){h.$Z()},x.\u0275prov=h.Yz7({token:x,factory:x.\u0275fac}),x})(),wt=(()=>{class x extends We{constructor(m,j,de,X,H,f,_,T){super(m,j,X,f,_,H,Ee,V,_e,T)}}return x.\u0275fac=function(m){return new(m||x)(h.LFG(a.aV),h.LFG(h.zs3),h.LFG(b.Ye,8),h.LFG(Oe,8),h.LFG(at),h.LFG(x,12),h.LFG(a.Xj),h.LFG(h.QbO,8))},x.\u0275prov=h.Yz7({token:x,factory:x.\u0275fac}),x})(),nt=0,Q=(()=>{class x{constructor(m,j,de){this.dialogRef=m,this._elementRef=j,this._dialog=de,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=U(this._elementRef,this._dialog.openDialogs))}ngOnChanges(m){const j=m._matDialogClose||m._matDialogCloseResult;j&&(this.dialogResult=j.currentValue)}_onButtonClick(m){oe(this.dialogRef,0===m.screenX&&0===m.screenY?"keyboard":"mouse",this.dialogResult)}}return x.\u0275fac=function(m){return new(m||x)(h.Y36(Ee,8),h.Y36(h.SBq),h.Y36(wt))},x.\u0275dir=h.lG2({type:x,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(m,j){1&m&&h.NdJ("click",function(X){return j._onButtonClick(X)}),2&m&&h.uIk("aria-label",j.ariaLabel||null)("type",j.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[h.TTD]}),x})(),Le=(()=>{class x{constructor(m,j,de){this._dialogRef=m,this._elementRef=j,this._dialog=de,this.id="mat-dialog-title-"+nt++}ngOnInit(){this._dialogRef||(this._dialogRef=U(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const m=this._dialogRef._containerInstance;m&&!m._ariaLabelledBy&&(m._ariaLabelledBy=this.id)})}}return x.\u0275fac=function(m){return new(m||x)(h.Y36(Ee,8),h.Y36(h.SBq),h.Y36(wt))},x.\u0275dir=h.lG2({type:x,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(m,j){2&m&&h.Ikx("id",j.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),x})(),ee=(()=>{class x{}return x.\u0275fac=function(m){return new(m||x)},x.\u0275dir=h.lG2({type:x,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),x})(),R=(()=>{class x{constructor(){this.align="start"}}return x.\u0275fac=function(m){return new(m||x)},x.\u0275dir=h.lG2({type:x,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(m,j){2&m&&h.ekj("mat-dialog-actions-align-center","center"===j.align)("mat-dialog-actions-align-end","end"===j.align)},inputs:{align:"align"}}),x})();function U(x,p){let m=x.nativeElement.parentElement;for(;m&&!m.classList.contains("mat-dialog-container");)m=m.parentElement;return m?p.find(j=>j.id===m.id):null}let Re=(()=>{class x{}return x.\u0275fac=function(m){return new(m||x)},x.\u0275mod=h.oAB({type:x}),x.\u0275inj=h.cJS({providers:[wt,Mt],imports:[it,a.U8,v.eL,Ke.BQ,Ke.BQ]}),x})()},8729:(Ct,ke,u)=>{"use strict";u.d(ke,{d:()=>v,t:()=>b});var i=u(4650),a=u(1281),c=u(3238);let v=(()=>{class h{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(w){this._vertical=(0,a.Ig)(w)}get inset(){return this._inset}set inset(w){this._inset=(0,a.Ig)(w)}}return h.\u0275fac=function(w){return new(w||h)},h.\u0275cmp=i.Xpm({type:h,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(w,B){2&w&&(i.uIk("aria-orientation",B.vertical?"vertical":"horizontal"),i.ekj("mat-divider-vertical",B.vertical)("mat-divider-horizontal",!B.vertical)("mat-divider-inset",B.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(w,B){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),h})(),b=(()=>{class h{}return h.\u0275fac=function(w){return new(w||h)},h.\u0275mod=i.oAB({type:h}),h.\u0275inj=i.cJS({imports:[c.BQ,c.BQ]}),h})()},7084:(Ct,ke,u)=>{"use strict";u.d(ke,{pp:()=>Mt,To:()=>gt,ib:()=>Ee,u4:()=>be,yz:()=>at,yK:()=>et});var i=u(4650),a=u(5017),c=u(1281),v=u(8929),b=u(2654);let h=0;const g=new i.OlP("CdkAccordion");let w=(()=>{class We{constructor(){this._stateChanges=new v.xQ,this._openCloseAllActions=new v.xQ,this.id="cdk-accordion-"+h++,this._multi=!1}get multi(){return this._multi}set multi(nt){this._multi=(0,c.Ig)(nt)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(nt){this._stateChanges.next(nt)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return We.\u0275fac=function(nt){return new(nt||We)},We.\u0275dir=i.lG2({type:We,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[i._Bn([{provide:g,useExisting:We}]),i.TTD]}),We})(),B=0,O=(()=>{class We{constructor(nt,Q,Le){this.accordion=nt,this._changeDetectorRef=Q,this._expansionDispatcher=Le,this._openCloseAllSubscription=b.w.EMPTY,this.closed=new i.vpe,this.opened=new i.vpe,this.destroyed=new i.vpe,this.expandedChange=new i.vpe,this.id="cdk-accordion-child-"+B++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=Le.listen((ee,R)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===R&&this.id!==ee&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(nt){nt=(0,c.Ig)(nt),this._expanded!==nt&&(this._expanded=nt,this.expandedChange.emit(nt),nt?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(nt){this._disabled=(0,c.Ig)(nt)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(nt=>{this.disabled||(this.expanded=nt)})}}return We.\u0275fac=function(nt){return new(nt||We)(i.Y36(g,12),i.Y36(i.sBO),i.Y36(a.A8))},We.\u0275dir=i.lG2({type:We,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[i._Bn([{provide:g,useValue:void 0}])]}),We})(),P=(()=>{class We{}return We.\u0275fac=function(nt){return new(nt||We)},We.\u0275mod=i.oAB({type:We}),We.\u0275inj=i.cJS({}),We})();var k=u(4080),F=u(6895),z=u(3238),ae=u(2687),we=u(5778),ue=u(1059),le=u(2198),ge=u(2986),W=u(9521),ie=u(8896),he=u(6787),se=u(7340);const Me=["body"];function Ge(We,wt){}const it=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Ke=["mat-expansion-panel-header","*","mat-action-row"];function tt(We,wt){if(1&We&&i._UZ(0,"span",2),2&We){const nt=i.oxw();i.Q6J("@indicatorRotate",nt._getExpandedState())}}const me=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Xe=["mat-panel-title","mat-panel-description","*"],Ae=new i.OlP("MAT_ACCORDION"),_t="225ms cubic-bezier(0.4,0.0,0.2,1)",ht={indicatorRotate:(0,se.X$)("indicatorRotate",[(0,se.SB)("collapsed, void",(0,se.oB)({transform:"rotate(0deg)"})),(0,se.SB)("expanded",(0,se.oB)({transform:"rotate(180deg)"})),(0,se.eR)("expanded <=> collapsed, void => collapsed",(0,se.jt)(_t))]),bodyExpansion:(0,se.X$)("bodyExpansion",[(0,se.SB)("collapsed, void",(0,se.oB)({height:"0px",visibility:"hidden"})),(0,se.SB)("expanded",(0,se.oB)({height:"*",visibility:"visible"})),(0,se.eR)("expanded <=> collapsed, void => collapsed",(0,se.jt)(_t))])},Yt=new i.OlP("MAT_EXPANSION_PANEL");let Dt=(()=>{class We{constructor(nt,Q){this._template=nt,this._expansionPanel=Q}}return We.\u0275fac=function(nt){return new(nt||We)(i.Y36(i.Rgc),i.Y36(Yt,8))},We.\u0275dir=i.lG2({type:We,selectors:[["ng-template","matExpansionPanelContent",""]]}),We})(),jt=0;const V=new i.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Ee=(()=>{class We extends O{constructor(nt,Q,Le,ee,R,U,Re){super(nt,Q,Le),this._viewContainerRef=ee,this._animationMode=U,this._hideToggle=!1,this.afterExpand=new i.vpe,this.afterCollapse=new i.vpe,this._inputChanges=new v.xQ,this._headerId="mat-expansion-panel-header-"+jt++,this._bodyAnimationDone=new v.xQ,this.accordion=nt,this._document=R,this._bodyAnimationDone.pipe((0,we.x)((x,p)=>x.fromState===p.fromState&&x.toState===p.toState)).subscribe(x=>{"void"!==x.fromState&&("expanded"===x.toState?this.afterExpand.emit():"collapsed"===x.toState&&this.afterCollapse.emit())}),Re&&(this.hideToggle=Re.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(nt){this._hideToggle=(0,c.Ig)(nt)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(nt){this._togglePosition=nt}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,ue.O)(null),(0,le.h)(()=>this.expanded&&!this._portal),(0,ge.q)(1)).subscribe(()=>{this._portal=new k.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(nt){this._inputChanges.next(nt)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const nt=this._document.activeElement,Q=this._body.nativeElement;return nt===Q||Q.contains(nt)}return!1}}return We.\u0275fac=function(nt){return new(nt||We)(i.Y36(Ae,12),i.Y36(i.sBO),i.Y36(a.A8),i.Y36(i.s_b),i.Y36(F.K0),i.Y36(i.QbO,8),i.Y36(V,8))},We.\u0275cmp=i.Xpm({type:We,selectors:[["mat-expansion-panel"]],contentQueries:function(nt,Q,Le){if(1&nt&&i.Suo(Le,Dt,5),2&nt){let ee;i.iGM(ee=i.CRH())&&(Q._lazyContent=ee.first)}},viewQuery:function(nt,Q){if(1&nt&&i.Gf(Me,5),2&nt){let Le;i.iGM(Le=i.CRH())&&(Q._body=Le.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(nt,Q){2&nt&&i.ekj("mat-expanded",Q.expanded)("_mat-animation-noopable","NoopAnimations"===Q._animationMode)("mat-expansion-panel-spacing",Q._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[i._Bn([{provide:Ae,useValue:void 0},{provide:Yt,useExisting:We}]),i.qOj,i.TTD],ngContentSelectors:Ke,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(nt,Q){1&nt&&(i.F$t(it),i.Hsn(0),i.TgZ(1,"div",0,1),i.NdJ("@bodyExpansion.done",function(ee){return Q._bodyAnimationDone.next(ee)}),i.TgZ(3,"div",2),i.Hsn(4,1),i.YNc(5,Ge,0,0,"ng-template",3),i.qZA(),i.Hsn(6,2),i.qZA()),2&nt&&(i.xp6(1),i.Q6J("@bodyExpansion",Q._getExpandedState())("id",Q.id),i.uIk("aria-labelledby",Q._headerId),i.xp6(4),i.Q6J("cdkPortalOutlet",Q._portal))},dependencies:[k.Pl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[ht.bodyExpansion]},changeDetection:0}),We})();class _e{}const Oe=(0,z.sb)(_e);let at=(()=>{class We extends Oe{constructor(nt,Q,Le,ee,R,U,Re){super(),this.panel=nt,this._element=Q,this._focusMonitor=Le,this._changeDetectorRef=ee,this._animationMode=U,this._parentChangeSubscription=b.w.EMPTY;const x=nt.accordion?nt.accordion._stateChanges.pipe((0,le.h)(p=>!(!p.hideToggle&&!p.togglePosition))):ie.E;this.tabIndex=parseInt(Re||"")||0,this._parentChangeSubscription=(0,he.T)(nt.opened,nt.closed,x,nt._inputChanges.pipe((0,le.h)(p=>!!(p.hideToggle||p.disabled||p.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),nt.closed.pipe((0,le.h)(()=>nt._containsFocus())).subscribe(()=>Le.focusVia(Q,"program")),R&&(this.expandedHeight=R.expandedHeight,this.collapsedHeight=R.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const nt=this._isExpanded();return nt&&this.expandedHeight?this.expandedHeight:!nt&&this.collapsedHeight?this.collapsedHeight:null}_keydown(nt){switch(nt.keyCode){case W.L_:case W.K5:(0,W.Vb)(nt)||(nt.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(nt))}}focus(nt,Q){nt?this._focusMonitor.focusVia(this._element,nt,Q):this._element.nativeElement.focus(Q)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(nt=>{nt&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return We.\u0275fac=function(nt){return new(nt||We)(i.Y36(Ee,1),i.Y36(i.SBq),i.Y36(ae.tE),i.Y36(i.sBO),i.Y36(V,8),i.Y36(i.QbO,8),i.$8M("tabindex"))},We.\u0275cmp=i.Xpm({type:We,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(nt,Q){1&nt&&i.NdJ("click",function(){return Q._toggle()})("keydown",function(ee){return Q._keydown(ee)}),2&nt&&(i.uIk("id",Q.panel._headerId)("tabindex",Q.tabIndex)("aria-controls",Q._getPanelId())("aria-expanded",Q._isExpanded())("aria-disabled",Q.panel.disabled),i.Udp("height",Q._getHeaderHeight()),i.ekj("mat-expanded",Q._isExpanded())("mat-expansion-toggle-indicator-after","after"===Q._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===Q._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===Q._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[i.qOj],ngContentSelectors:Xe,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(nt,Q){1&nt&&(i.F$t(me),i.TgZ(0,"span",0),i.Hsn(1),i.Hsn(2,1),i.Hsn(3,2),i.qZA(),i.YNc(4,tt,1,1,"span",1)),2&nt&&(i.ekj("mat-content-hide-toggle",!Q._showToggle()),i.xp6(4),i.Q6J("ngIf",Q._showToggle()))},dependencies:[F.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[ht.indicatorRotate]},changeDetection:0}),We})(),be=(()=>{class We{}return We.\u0275fac=function(nt){return new(nt||We)},We.\u0275dir=i.lG2({type:We,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),We})(),et=(()=>{class We{}return We.\u0275fac=function(nt){return new(nt||We)},We.\u0275dir=i.lG2({type:We,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),We})(),Mt=(()=>{class We extends w{constructor(){super(...arguments),this._ownHeaders=new i.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(nt){this._hideToggle=(0,c.Ig)(nt)}ngAfterContentInit(){this._headers.changes.pipe((0,ue.O)(this._headers)).subscribe(nt=>{this._ownHeaders.reset(nt.filter(Q=>Q.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new ae.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(nt){this._keyManager.onKeydown(nt)}_handleHeaderFocus(nt){this._keyManager.updateActiveItem(nt)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return We.\u0275fac=function(){let wt;return function(Q){return(wt||(wt=i.n5z(We)))(Q||We)}}(),We.\u0275dir=i.lG2({type:We,selectors:[["mat-accordion"]],contentQueries:function(nt,Q,Le){if(1&nt&&i.Suo(Le,at,5),2&nt){let ee;i.iGM(ee=i.CRH())&&(Q._headers=ee)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(nt,Q){2&nt&&i.ekj("mat-accordion-multi",Q.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[i._Bn([{provide:Ae,useExisting:We}]),i.qOj]}),We})(),gt=(()=>{class We{}return We.\u0275fac=function(nt){return new(nt||We)},We.\u0275mod=i.oAB({type:We}),We.\u0275inj=i.cJS({imports:[F.ez,z.BQ,P,k.eL]}),We})()},9549:(Ct,ke,u)=>{"use strict";u.d(ke,{Eo:()=>Dt,G_:()=>R,KE:()=>U,R9:()=>We,hX:()=>at,lN:()=>Re});var i=u(9643),a=u(6895),c=u(4650),v=u(3238),b=u(445),h=u(1281),g=u(8929),w=u(6787),B=u(3753),O=u(1059),P=u(7625),k=u(2986),F=u(7340),z=u(3353);const ae=["connectionContainer"],we=["inputContainer"],ue=["label"];function le(x,p){1&x&&(c.ynx(0),c.TgZ(1,"div",14),c._UZ(2,"div",15)(3,"div",16)(4,"div",17),c.qZA(),c.TgZ(5,"div",18),c._UZ(6,"div",15)(7,"div",16)(8,"div",17),c.qZA(),c.BQk())}function ge(x,p){if(1&x){const m=c.EpF();c.TgZ(0,"div",19),c.NdJ("cdkObserveContent",function(){c.CHM(m);const de=c.oxw();return c.KtG(de.updateOutlineGap())}),c.Hsn(1,1),c.qZA()}if(2&x){const m=c.oxw();c.Q6J("cdkObserveContentDisabled","outline"!=m.appearance)}}function W(x,p){if(1&x&&(c.ynx(0),c.Hsn(1,2),c.TgZ(2,"span"),c._uU(3),c.qZA(),c.BQk()),2&x){const m=c.oxw(2);c.xp6(3),c.Oqu(m._control.placeholder)}}function ie(x,p){1&x&&c.Hsn(0,3,["*ngSwitchCase","true"])}function he(x,p){1&x&&(c.TgZ(0,"span",23),c._uU(1," *"),c.qZA())}function se(x,p){if(1&x){const m=c.EpF();c.TgZ(0,"label",20,21),c.NdJ("cdkObserveContent",function(){c.CHM(m);const de=c.oxw();return c.KtG(de.updateOutlineGap())}),c.YNc(2,W,4,1,"ng-container",12),c.YNc(3,ie,1,0,"ng-content",12),c.YNc(4,he,2,0,"span",22),c.qZA()}if(2&x){const m=c.oxw();c.ekj("mat-empty",m._control.empty&&!m._shouldAlwaysFloat())("mat-form-field-empty",m._control.empty&&!m._shouldAlwaysFloat())("mat-accent","accent"==m.color)("mat-warn","warn"==m.color),c.Q6J("cdkObserveContentDisabled","outline"!=m.appearance)("id",m._labelId)("ngSwitch",m._hasLabel()),c.uIk("for",m._control.id)("aria-owns",m._control.id),c.xp6(2),c.Q6J("ngSwitchCase",!1),c.xp6(1),c.Q6J("ngSwitchCase",!0),c.xp6(1),c.Q6J("ngIf",!m.hideRequiredMarker&&m._control.required&&!m._control.disabled)}}function Me(x,p){1&x&&(c.TgZ(0,"div",24),c.Hsn(1,4),c.qZA())}function Ge(x,p){if(1&x&&(c.TgZ(0,"div",25),c._UZ(1,"span",26),c.qZA()),2&x){const m=c.oxw();c.xp6(1),c.ekj("mat-accent","accent"==m.color)("mat-warn","warn"==m.color)}}function it(x,p){if(1&x&&(c.TgZ(0,"div"),c.Hsn(1,5),c.qZA()),2&x){const m=c.oxw();c.Q6J("@transitionMessages",m._subscriptAnimationState)}}function Ke(x,p){if(1&x&&(c.TgZ(0,"div",30),c._uU(1),c.qZA()),2&x){const m=c.oxw(2);c.Q6J("id",m._hintLabelId),c.xp6(1),c.Oqu(m.hintLabel)}}function tt(x,p){if(1&x&&(c.TgZ(0,"div",27),c.YNc(1,Ke,2,2,"div",28),c.Hsn(2,6),c._UZ(3,"div",29),c.Hsn(4,7),c.qZA()),2&x){const m=c.oxw();c.Q6J("@transitionMessages",m._subscriptAnimationState),c.xp6(1),c.Q6J("ngIf",m.hintLabel)}}const me=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Xe=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],_t=new c.OlP("MatError"),Yt={transitionMessages:(0,F.X$)("transitionMessages",[(0,F.SB)("enter",(0,F.oB)({opacity:1,transform:"translateY(0%)"})),(0,F.eR)("void => enter",[(0,F.oB)({opacity:0,transform:"translateY(-5px)"}),(0,F.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Dt=(()=>{class x{}return x.\u0275fac=function(m){return new(m||x)},x.\u0275dir=c.lG2({type:x}),x})();const _e=new c.OlP("MatHint");let at=(()=>{class x{}return x.\u0275fac=function(m){return new(m||x)},x.\u0275dir=c.lG2({type:x,selectors:[["mat-label"]]}),x})(),be=(()=>{class x{}return x.\u0275fac=function(m){return new(m||x)},x.\u0275dir=c.lG2({type:x,selectors:[["mat-placeholder"]]}),x})();const et=new c.OlP("MatPrefix"),gt=new c.OlP("MatSuffix");let We=(()=>{class x{}return x.\u0275fac=function(m){return new(m||x)},x.\u0275dir=c.lG2({type:x,selectors:[["","matSuffix",""]],features:[c._Bn([{provide:gt,useExisting:x}])]}),x})(),wt=0;const Le=(0,v.pj)(class{constructor(x){this._elementRef=x}},"primary"),ee=new c.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),R=new c.OlP("MatFormField");let U=(()=>{class x extends Le{constructor(m,j,de,X,H,f,_){super(m),this._changeDetectorRef=j,this._dir=de,this._defaults=X,this._platform=H,this._ngZone=f,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new g.xQ,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+wt++,this._labelId="mat-form-field-label-"+wt++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==_,this.appearance=X?.appearance||"legacy",X&&(this._hideRequiredMarker=Boolean(X.hideRequiredMarker),X.color&&(this.color=this.defaultColor=X.color))}get appearance(){return this._appearance}set appearance(m){const j=this._appearance;this._appearance=m||this._defaults?.appearance||"legacy","outline"===this._appearance&&j!==m&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(m){this._hideRequiredMarker=(0,h.Ig)(m)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(m){this._hintLabel=m,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(m){m!==this._floatLabel&&(this._floatLabel=m||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(m){this._explicitFormFieldControl=m}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const m=this._control;m.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${m.controlType}`),m.stateChanges.pipe((0,O.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),m.ngControl&&m.ngControl.valueChanges&&m.ngControl.valueChanges.pipe((0,P.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,P.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,w.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,O.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,O.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,P.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(m){const j=this._control?this._control.ngControl:null;return j&&j[m]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,B.R)(this._label.nativeElement,"transitionend").pipe((0,k.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let m=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&m.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const j=this._hintChildren?this._hintChildren.find(X=>"start"===X.align):null,de=this._hintChildren?this._hintChildren.find(X=>"end"===X.align):null;j?m.push(j.id):this._hintLabel&&m.push(this._hintLabelId),de&&m.push(de.id)}else this._errorChildren&&m.push(...this._errorChildren.map(j=>j.id));this._control.setDescribedByIds(m)}}_validateControlChild(){}updateOutlineGap(){const m=this._label?this._label.nativeElement:null,j=this._connectionContainerRef.nativeElement,de=".mat-form-field-outline-start",X=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!m||!m.children.length||!m.textContent.trim()){const ve=j.querySelectorAll(`${de}, ${X}`);for(let Je=0;Je0?.75*dt+10:0}for(let ve=0;ve<_.length;ve++)_[ve].style.width=`${H}px`;for(let ve=0;ve{class x{}return x.\u0275fac=function(m){return new(m||x)},x.\u0275mod=c.oAB({type:x}),x.\u0275inj=c.cJS({imports:[a.ez,v.BQ,i.Q8,v.BQ]}),x})()},7392:(Ct,ke,u)=>{"use strict";u.d(ke,{Hw:()=>oe,Ps:()=>_e});var i=u(4650),a=u(3238),c=u(1281),v=u(6895),b=u(1086),h=u(1737),g=u(567),w=u(2654),B=u(2868),O=u(4850),P=u(7221),k=u(537),F=u(2474),z=u(2986),ae=u(529),we=u(1481);const ue=["*"];let le;function W(Oe){return function ge(){if(void 0===le&&(le=null,typeof window<"u")){const Oe=window;void 0!==Oe.trustedTypes&&(le=Oe.trustedTypes.createPolicy("angular#components",{createHTML:at=>at}))}return le}()?.createHTML(Oe)||Oe}function ie(Oe){return Error(`Unable to find icon with the name "${Oe}"`)}function se(Oe){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${Oe}".`)}function Me(Oe){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${Oe}".`)}class Ge{constructor(at,be,et){this.url=at,this.svgText=be,this.options=et}}let it=(()=>{class Oe{constructor(be,et,Mt,gt){this._httpClient=be,this._sanitizer=et,this._errorHandler=gt,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=Mt}addSvgIcon(be,et,Mt){return this.addSvgIconInNamespace("",be,et,Mt)}addSvgIconLiteral(be,et,Mt){return this.addSvgIconLiteralInNamespace("",be,et,Mt)}addSvgIconInNamespace(be,et,Mt,gt){return this._addSvgIconConfig(be,et,new Ge(Mt,null,gt))}addSvgIconResolver(be){return this._resolvers.push(be),this}addSvgIconLiteralInNamespace(be,et,Mt,gt){const We=this._sanitizer.sanitize(i.q3G.HTML,Mt);if(!We)throw Me(Mt);const wt=W(We);return this._addSvgIconConfig(be,et,new Ge("",wt,gt))}addSvgIconSet(be,et){return this.addSvgIconSetInNamespace("",be,et)}addSvgIconSetLiteral(be,et){return this.addSvgIconSetLiteralInNamespace("",be,et)}addSvgIconSetInNamespace(be,et,Mt){return this._addSvgIconSetConfig(be,new Ge(et,null,Mt))}addSvgIconSetLiteralInNamespace(be,et,Mt){const gt=this._sanitizer.sanitize(i.q3G.HTML,et);if(!gt)throw Me(et);const We=W(gt);return this._addSvgIconSetConfig(be,new Ge("",We,Mt))}registerFontClassAlias(be,et=be){return this._fontCssClassesByAlias.set(be,et),this}classNameForFontAlias(be){return this._fontCssClassesByAlias.get(be)||be}setDefaultFontSetClass(...be){return this._defaultFontSetClass=be,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(be){const et=this._sanitizer.sanitize(i.q3G.RESOURCE_URL,be);if(!et)throw se(be);const Mt=this._cachedIconsByUrl.get(et);return Mt?(0,b.of)(me(Mt)):this._loadSvgIconFromConfig(new Ge(be,null)).pipe((0,B.b)(gt=>this._cachedIconsByUrl.set(et,gt)),(0,O.U)(gt=>me(gt)))}getNamedSvgIcon(be,et=""){const Mt=Xe(et,be);let gt=this._svgIconConfigs.get(Mt);if(gt)return this._getSvgFromConfig(gt);if(gt=this._getIconConfigFromResolvers(et,be),gt)return this._svgIconConfigs.set(Mt,gt),this._getSvgFromConfig(gt);const We=this._iconSetConfigs.get(et);return We?this._getSvgFromIconSetConfigs(be,We):(0,h._)(ie(Mt))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(be){return be.svgText?(0,b.of)(me(this._svgElementFromConfig(be))):this._loadSvgIconFromConfig(be).pipe((0,O.U)(et=>me(et)))}_getSvgFromIconSetConfigs(be,et){const Mt=this._extractIconWithNameFromAnySet(be,et);if(Mt)return(0,b.of)(Mt);const gt=et.filter(We=>!We.svgText).map(We=>this._loadSvgIconSetFromConfig(We).pipe((0,P.K)(wt=>{const Q=`Loading icon set URL: ${this._sanitizer.sanitize(i.q3G.RESOURCE_URL,We.url)} failed: ${wt.message}`;return this._errorHandler.handleError(new Error(Q)),(0,b.of)(null)})));return(0,g.D)(gt).pipe((0,O.U)(()=>{const We=this._extractIconWithNameFromAnySet(be,et);if(!We)throw ie(be);return We}))}_extractIconWithNameFromAnySet(be,et){for(let Mt=et.length-1;Mt>=0;Mt--){const gt=et[Mt];if(gt.svgText&>.svgText.toString().indexOf(be)>-1){const We=this._svgElementFromConfig(gt),wt=this._extractSvgIconFromSet(We,be,gt.options);if(wt)return wt}}return null}_loadSvgIconFromConfig(be){return this._fetchIcon(be).pipe((0,B.b)(et=>be.svgText=et),(0,O.U)(()=>this._svgElementFromConfig(be)))}_loadSvgIconSetFromConfig(be){return be.svgText?(0,b.of)(null):this._fetchIcon(be).pipe((0,B.b)(et=>be.svgText=et))}_extractSvgIconFromSet(be,et,Mt){const gt=be.querySelector(`[id="${et}"]`);if(!gt)return null;const We=gt.cloneNode(!0);if(We.removeAttribute("id"),"svg"===We.nodeName.toLowerCase())return this._setSvgAttributes(We,Mt);if("symbol"===We.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(We),Mt);const wt=this._svgElementFromString(W(""));return wt.appendChild(We),this._setSvgAttributes(wt,Mt)}_svgElementFromString(be){const et=this._document.createElement("DIV");et.innerHTML=be;const Mt=et.querySelector("svg");if(!Mt)throw Error(" tag not found");return Mt}_toSvgElement(be){const et=this._svgElementFromString(W("")),Mt=be.attributes;for(let gt=0;gtW(Q)),(0,k.x)(()=>this._inProgressUrlFetches.delete(We)),(0,F.B)());return this._inProgressUrlFetches.set(We,nt),nt}_addSvgIconConfig(be,et,Mt){return this._svgIconConfigs.set(Xe(be,et),Mt),this}_addSvgIconSetConfig(be,et){const Mt=this._iconSetConfigs.get(be);return Mt?Mt.push(et):this._iconSetConfigs.set(be,[et]),this}_svgElementFromConfig(be){if(!be.svgElement){const et=this._svgElementFromString(be.svgText);this._setSvgAttributes(et,be.options),be.svgElement=et}return be.svgElement}_getIconConfigFromResolvers(be,et){for(let Mt=0;Mtat?at.pathname+at.search:""}}}),jt=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],V=jt.map(Oe=>`[${Oe}]`).join(", "),Ee=/^url\(['"]?#(.*?)['"]?\)$/;let oe=(()=>{class Oe extends _t{constructor(be,et,Mt,gt,We,wt){super(be),this._iconRegistry=et,this._location=gt,this._errorHandler=We,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=w.w.EMPTY,wt&&(wt.color&&(this.color=this.defaultColor=wt.color),wt.fontSet&&(this.fontSet=wt.fontSet)),Mt||be.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(be){this._inline=(0,c.Ig)(be)}get svgIcon(){return this._svgIcon}set svgIcon(be){be!==this._svgIcon&&(be?this._updateSvgIcon(be):this._svgIcon&&this._clearSvgElement(),this._svgIcon=be)}get fontSet(){return this._fontSet}set fontSet(be){const et=this._cleanupFontValue(be);et!==this._fontSet&&(this._fontSet=et,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(be){const et=this._cleanupFontValue(be);et!==this._fontIcon&&(this._fontIcon=et,this._updateFontIconClasses())}_splitIconName(be){if(!be)return["",""];const et=be.split(":");switch(et.length){case 1:return["",et[0]];case 2:return et;default:throw Error(`Invalid icon name: "${be}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const be=this._elementsWithExternalReferences;if(be&&be.size){const et=this._location.getPathname();et!==this._previousPath&&(this._previousPath=et,this._prependPathToReferences(et))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(be){this._clearSvgElement();const et=this._location.getPathname();this._previousPath=et,this._cacheChildrenWithExternalReferences(be),this._prependPathToReferences(et),this._elementRef.nativeElement.appendChild(be)}_clearSvgElement(){const be=this._elementRef.nativeElement;let et=be.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();et--;){const Mt=be.childNodes[et];(1!==Mt.nodeType||"svg"===Mt.nodeName.toLowerCase())&&Mt.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const be=this._elementRef.nativeElement,et=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(Mt=>Mt.length>0);this._previousFontSetClass.forEach(Mt=>be.classList.remove(Mt)),et.forEach(Mt=>be.classList.add(Mt)),this._previousFontSetClass=et,this.fontIcon!==this._previousFontIconClass&&!et.includes("mat-ligature-font")&&(this._previousFontIconClass&&be.classList.remove(this._previousFontIconClass),this.fontIcon&&be.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(be){return"string"==typeof be?be.trim().split(" ")[0]:be}_prependPathToReferences(be){const et=this._elementsWithExternalReferences;et&&et.forEach((Mt,gt)=>{Mt.forEach(We=>{gt.setAttribute(We.name,`url('${be}#${We.value}')`)})})}_cacheChildrenWithExternalReferences(be){const et=be.querySelectorAll(V),Mt=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let gt=0;gt{const wt=et[gt],nt=wt.getAttribute(We),Q=nt?nt.match(Ee):null;if(Q){let Le=Mt.get(wt);Le||(Le=[],Mt.set(wt,Le)),Le.push({name:We,value:Q[1]})}})}_updateSvgIcon(be){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),be){const[et,Mt]=this._splitIconName(be);et&&(this._svgNamespace=et),Mt&&(this._svgName=Mt),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Mt,et).pipe((0,z.q)(1)).subscribe(gt=>this._setSvgElement(gt),gt=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${et}:${Mt}! ${gt.message}`))})}}}return Oe.\u0275fac=function(be){return new(be||Oe)(i.Y36(i.SBq),i.Y36(it),i.$8M("aria-hidden"),i.Y36(Yt),i.Y36(i.qLn),i.Y36(ht,8))},Oe.\u0275cmp=i.Xpm({type:Oe,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(be,et){2&be&&(i.uIk("data-mat-icon-type",et._usingFontIcon()?"font":"svg")("data-mat-icon-name",et._svgName||et.fontIcon)("data-mat-icon-namespace",et._svgNamespace||et.fontSet),i.ekj("mat-icon-inline",et.inline)("mat-icon-no-color","primary"!==et.color&&"accent"!==et.color&&"warn"!==et.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.qOj],ngContentSelectors:ue,decls:1,vars:0,template:function(be,et){1&be&&(i.F$t(),i.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),Oe})(),_e=(()=>{class Oe{}return Oe.\u0275fac=function(be){return new(be||Oe)},Oe.\u0275mod=i.oAB({type:Oe}),Oe.\u0275inj=i.cJS({imports:[a.BQ,a.BQ]}),Oe})()},4144:(Ct,ke,u)=>{"use strict";u.d(ke,{Nt:()=>ge,c:()=>W});var i=u(1281),a=u(3353),c=u(4650),v=u(8896),b=u(8929);const h=(0,a.i$)({passive:!0});let g=(()=>{class ie{constructor(se,Me){this._platform=se,this._ngZone=Me,this._monitoredElements=new Map}monitor(se){if(!this._platform.isBrowser)return v.E;const Me=(0,i.fI)(se),Ge=this._monitoredElements.get(Me);if(Ge)return Ge.subject;const it=new b.xQ,Ke="cdk-text-field-autofilled",tt=me=>{"cdk-text-field-autofill-start"!==me.animationName||Me.classList.contains(Ke)?"cdk-text-field-autofill-end"===me.animationName&&Me.classList.contains(Ke)&&(Me.classList.remove(Ke),this._ngZone.run(()=>it.next({target:me.target,isAutofilled:!1}))):(Me.classList.add(Ke),this._ngZone.run(()=>it.next({target:me.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{Me.addEventListener("animationstart",tt,h),Me.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(Me,{subject:it,unlisten:()=>{Me.removeEventListener("animationstart",tt,h)}}),it}stopMonitoring(se){const Me=(0,i.fI)(se),Ge=this._monitoredElements.get(Me);Ge&&(Ge.unlisten(),Ge.subject.complete(),Me.classList.remove("cdk-text-field-autofill-monitored"),Me.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(Me))}ngOnDestroy(){this._monitoredElements.forEach((se,Me)=>this.stopMonitoring(Me))}}return ie.\u0275fac=function(se){return new(se||ie)(c.LFG(a.t4),c.LFG(c.R0b))},ie.\u0275prov=c.Yz7({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})(),O=(()=>{class ie{}return ie.\u0275fac=function(se){return new(se||ie)},ie.\u0275mod=c.oAB({type:ie}),ie.\u0275inj=c.cJS({}),ie})();var P=u(4006),k=u(3238),F=u(9549);const ae=new c.OlP("MAT_INPUT_VALUE_ACCESSOR"),we=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let ue=0;const le=(0,k.FD)(class{constructor(ie,he,se,Me){this._defaultErrorStateMatcher=ie,this._parentForm=he,this._parentFormGroup=se,this.ngControl=Me,this.stateChanges=new b.xQ}});let ge=(()=>{class ie extends le{constructor(se,Me,Ge,it,Ke,tt,me,Xe,Ae,_t){super(tt,it,Ke,Ge),this._elementRef=se,this._platform=Me,this._autofillMonitor=Xe,this._formField=_t,this._uid="mat-input-"+ue++,this.focused=!1,this.stateChanges=new b.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(Dt=>(0,a.qK)().has(Dt)),this._iOSKeyupListener=Dt=>{const jt=Dt.target;!jt.value&&0===jt.selectionStart&&0===jt.selectionEnd&&(jt.setSelectionRange(1,1),jt.setSelectionRange(0,0))};const ht=this._elementRef.nativeElement,Yt=ht.nodeName.toLowerCase();this._inputValueAccessor=me||ht,this._previousNativeValue=this.value,this.id=this.id,Me.IOS&&Ae.runOutsideAngular(()=>{se.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===Yt,this._isTextarea="textarea"===Yt,this._isInFormField=!!_t,this._isNativeSelect&&(this.controlType=ht.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(se){this._disabled=(0,i.Ig)(se),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(se){this._id=se||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(P.kI.required)??!1}set required(se){this._required=(0,i.Ig)(se)}get type(){return this._type}set type(se){this._type=se||"text",this._validateType(),!this._isTextarea&&(0,a.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(se){se!==this.value&&(this._inputValueAccessor.value=se,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(se){this._readonly=(0,i.Ig)(se)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(se=>{this.autofilled=se.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(se){this._elementRef.nativeElement.focus(se)}_focusChanged(se){se!==this.focused&&(this.focused=se,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const se=this._formField,Me=se&&"legacy"===se.appearance&&!se._hasLabel?.()?null:this.placeholder;if(Me!==this._previousPlaceholder){const Ge=this._elementRef.nativeElement;this._previousPlaceholder=Me,Me?Ge.setAttribute("placeholder",Me):Ge.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const se=this._elementRef.nativeElement.value;this._previousNativeValue!==se&&(this._previousNativeValue=se,this.stateChanges.next())}_validateType(){we.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let se=this._elementRef.nativeElement.validity;return se&&se.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const se=this._elementRef.nativeElement,Me=se.options[0];return this.focused||se.multiple||!this.empty||!!(se.selectedIndex>-1&&Me&&Me.label)}return this.focused||!this.empty}setDescribedByIds(se){se.length?this._elementRef.nativeElement.setAttribute("aria-describedby",se.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const se=this._elementRef.nativeElement;return this._isNativeSelect&&(se.multiple||se.size>1)}}return ie.\u0275fac=function(se){return new(se||ie)(c.Y36(c.SBq),c.Y36(a.t4),c.Y36(P.a5,10),c.Y36(P.F,8),c.Y36(P.sg,8),c.Y36(k.rD),c.Y36(ae,10),c.Y36(g),c.Y36(c.R0b),c.Y36(F.G_,8))},ie.\u0275dir=c.lG2({type:ie,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(se,Me){1&se&&c.NdJ("focus",function(){return Me._focusChanged(!0)})("blur",function(){return Me._focusChanged(!1)})("input",function(){return Me._onInput()}),2&se&&(c.Ikx("disabled",Me.disabled)("required",Me.required),c.uIk("id",Me.id)("data-placeholder",Me.placeholder)("name",Me.name||null)("readonly",Me.readonly&&!Me._isNativeSelect||null)("aria-invalid",Me.empty&&Me.required?null:Me.errorState)("aria-required",Me.required),c.ekj("mat-input-server",Me._isServer)("mat-native-select-inline",Me._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[c._Bn([{provide:F.Eo,useExisting:ie}]),c.qOj,c.TTD]}),ie})(),W=(()=>{class ie{}return ie.\u0275fac=function(se){return new(se||ie)},ie.\u0275mod=c.oAB({type:ie}),ie.\u0275inj=c.cJS({providers:[k.rD],imports:[O,F.lN,k.BQ,O,F.lN]}),ie})()},6338:(Ct,ke,u)=>{"use strict";u.d(ke,{Hk:()=>Ge,Nh:()=>tt,Tg:()=>Xe,gs:()=>me,i$:()=>it,ie:()=>V});var i=u(6895),a=u(4650),c=u(3238),v=u(1281),b=u(8929),h=u(7625),k=(u(1059),u(2687),u(5017),u(9521),u(4006),u(8729));const F=["*"],ae=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],we=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],ie=(0,c.Id)((0,c.Kr)(class{})),he=(0,c.Kr)(class{}),se=new a.OlP("MatList"),Me=new a.OlP("MatNavList");let Ge=(()=>{class Ee extends ie{constructor(){super(...arguments),this._stateChanges=new b.xQ}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Ee.\u0275fac=function(){let oe;return function(Oe){return(oe||(oe=a.n5z(Ee)))(Oe||Ee)}}(),Ee.\u0275cmp=a.Xpm({type:Ee,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[a._Bn([{provide:Me,useExisting:Ee}]),a.qOj,a.TTD],ngContentSelectors:F,decls:1,vars:0,template:function(_e,Oe){1&_e&&(a.F$t(),a.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),Ee})(),it=(()=>{class Ee extends ie{constructor(_e){super(),this._elementRef=_e,this._stateChanges=new b.xQ,"action-list"===this._getListType()&&(_e.nativeElement.classList.add("mat-action-list"),_e.nativeElement.setAttribute("role","group"))}_getListType(){const _e=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===_e?"list":"mat-action-list"===_e?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Ee.\u0275fac=function(_e){return new(_e||Ee)(a.Y36(a.SBq))},Ee.\u0275cmp=a.Xpm({type:Ee,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[a._Bn([{provide:se,useExisting:Ee}]),a.qOj,a.TTD],ngContentSelectors:F,decls:1,vars:0,template:function(_e,Oe){1&_e&&(a.F$t(),a.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),Ee})(),Ke=(()=>{class Ee{}return Ee.\u0275fac=function(_e){return new(_e||Ee)},Ee.\u0275dir=a.lG2({type:Ee,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),Ee})(),tt=(()=>{class Ee{}return Ee.\u0275fac=function(_e){return new(_e||Ee)},Ee.\u0275dir=a.lG2({type:Ee,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),Ee})(),me=(()=>{class Ee{}return Ee.\u0275fac=function(_e){return new(_e||Ee)},Ee.\u0275dir=a.lG2({type:Ee,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),Ee})(),Xe=(()=>{class Ee extends he{constructor(_e,Oe,at,be){super(),this._element=_e,this._isInteractiveList=!1,this._destroyed=new b.xQ,this._disabled=!1,this._isInteractiveList=!!(at||be&&"action-list"===be._getListType()),this._list=at||be;const et=this._getHostElement();"button"===et.nodeName.toLowerCase()&&!et.hasAttribute("type")&&et.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,h.R)(this._destroyed)).subscribe(()=>{Oe.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(_e){this._disabled=(0,v.Ig)(_e)}ngAfterContentInit(){(0,c.E0)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return Ee.\u0275fac=function(_e){return new(_e||Ee)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(Me,8),a.Y36(se,8))},Ee.\u0275cmp=a.Xpm({type:Ee,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(_e,Oe,at){if(1&_e&&(a.Suo(at,Ke,5),a.Suo(at,tt,5),a.Suo(at,c.X2,5)),2&_e){let be;a.iGM(be=a.CRH())&&(Oe._avatar=be.first),a.iGM(be=a.CRH())&&(Oe._icon=be.first),a.iGM(be=a.CRH())&&(Oe._lines=be)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(_e,Oe){2&_e&&a.ekj("mat-list-item-disabled",Oe.disabled)("mat-list-item-with-avatar",Oe._avatar||Oe._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[a.qOj],ngContentSelectors:we,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(_e,Oe){1&_e&&(a.F$t(ae),a.TgZ(0,"span",0),a._UZ(1,"span",1),a.Hsn(2),a.TgZ(3,"span",2),a.Hsn(4,1),a.qZA(),a.Hsn(5,2),a.qZA()),2&_e&&(a.xp6(1),a.Q6J("matRippleTrigger",Oe._getHostElement())("matRippleDisabled",Oe._isRippleDisabled()))},dependencies:[c.wG],encapsulation:2,changeDetection:0}),Ee})(),V=(()=>{class Ee{}return Ee.\u0275fac=function(_e){return new(_e||Ee)},Ee.\u0275mod=a.oAB({type:Ee}),Ee.\u0275inj=a.cJS({imports:[c.uc,c.si,c.BQ,c.us,i.ez,c.uc,c.BQ,c.us,k.t]}),Ee})()},3217:(Ct,ke,u)=>{"use strict";u.d(ke,{VK:()=>Le,OP:()=>gt,Tx:()=>j,p6:()=>m});var i=u(2687),a=u(1281),c=u(9521),v=u(4650),b=u(8929),h=u(2654),g=u(6787),w=u(1086),B=u(8139),O=u(353),k=u(3489),F=u(9312);function z(de,X=O.P){const f=function P(de){return de instanceof Date&&!isNaN(+de)}(de)?+de-X.now():Math.abs(de);return _=>_.lift(new ae(f,X))}class ae{constructor(X,H){this.delay=X,this.scheduler=H}call(X,H){return H.subscribe(new we(X,this.delay,this.scheduler))}}class we extends k.L{constructor(X,H,f){super(X),this.delay=H,this.scheduler=f,this.queue=[],this.active=!1,this.errored=!1}static dispatch(X){const H=X.source,f=H.queue,_=X.scheduler,T=X.destination;for(;f.length>0&&f[0].time-_.now()<=0;)f.shift().notification.observe(T);if(f.length>0){const ve=Math.max(0,f[0].time-_.now());this.schedule(X,ve)}else this.unsubscribe(),H.active=!1}_schedule(X){this.active=!0,this.destination.add(X.schedule(we.dispatch,this.delay,{source:this,destination:this.destination,scheduler:X}))}scheduleNotification(X){if(!0===this.errored)return;const H=this.scheduler,f=new ue(H.now()+this.delay,X);this.queue.push(f),!1===this.active&&this._schedule(H)}_next(X){this.scheduleNotification(F.P.createNext(X))}_error(X){this.errored=!0,this.queue=[],this.destination.error(X),this.unsubscribe()}_complete(){this.scheduleNotification(F.P.createComplete()),this.unsubscribe()}}class ue{constructor(X,H){this.time=X,this.notification=H}}var le=u(1059),ge=u(7545),W=u(2986),ie=u(7625),he=u(2198),se=u(7340),Me=u(4080),Ge=u(6895),it=u(3238),Ke=u(445),tt=u(8184),me=u(3353),Xe=u(2744);const Ae=["mat-menu-item",""];function _t(de,X){1&de&&(v.O4$(),v.TgZ(0,"svg",2),v._UZ(1,"polygon",3),v.qZA())}const ht=["*"];function Yt(de,X){if(1&de){const H=v.EpF();v.TgZ(0,"div",0),v.NdJ("keydown",function(_){v.CHM(H);const T=v.oxw();return v.KtG(T._handleKeydown(_))})("click",function(){v.CHM(H);const _=v.oxw();return v.KtG(_.closed.emit("click"))})("@transformMenu.start",function(_){v.CHM(H);const T=v.oxw();return v.KtG(T._onAnimationStart(_))})("@transformMenu.done",function(_){v.CHM(H);const T=v.oxw();return v.KtG(T._onAnimationDone(_))}),v.TgZ(1,"div",1),v.Hsn(2),v.qZA()()}if(2&de){const H=v.oxw();v.Q6J("id",H.panelId)("ngClass",H._classList)("@transformMenu",H._panelAnimationState),v.uIk("aria-label",H.ariaLabel||null)("aria-labelledby",H.ariaLabelledby||null)("aria-describedby",H.ariaDescribedby||null)}}const Dt={transformMenu:(0,se.X$)("transformMenu",[(0,se.SB)("void",(0,se.oB)({opacity:0,transform:"scale(0.8)"})),(0,se.eR)("void => enter",(0,se.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,se.oB)({opacity:1,transform:"scale(1)"}))),(0,se.eR)("* => void",(0,se.jt)("100ms 25ms linear",(0,se.oB)({opacity:0})))]),fadeInItems:(0,se.X$)("fadeInItems",[(0,se.SB)("showing",(0,se.oB)({opacity:1})),(0,se.eR)("void => *",[(0,se.oB)({opacity:0}),(0,se.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Ee=new v.OlP("MatMenuContent"),et=new v.OlP("MAT_MENU_PANEL"),Mt=(0,it.Kr)((0,it.Id)(class{}));let gt=(()=>{class de extends Mt{constructor(H,f,_,T,ve){super(),this._elementRef=H,this._document=f,this._focusMonitor=_,this._parentMenu=T,this._changeDetectorRef=ve,this.role="menuitem",this._hovered=new b.xQ,this._focused=new b.xQ,this._highlighted=!1,this._triggersSubmenu=!1,T?.addItem?.(this)}focus(H,f){this._focusMonitor&&H?this._focusMonitor.focusVia(this._getHostElement(),H,f):this._getHostElement().focus(f),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(H){this.disabled&&(H.preventDefault(),H.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const H=this._elementRef.nativeElement.cloneNode(!0),f=H.querySelectorAll("mat-icon, .material-icons");for(let _=0;_{class de{constructor(H,f,_,T){this._elementRef=H,this._ngZone=f,this._defaultOptions=_,this._changeDetectorRef=T,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new v.n_E,this._tabSubscription=h.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new b.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new v.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+nt++}get xPosition(){return this._xPosition}set xPosition(H){this._xPosition=H,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(H){this._yPosition=H,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(H){this._overlapTrigger=(0,a.Ig)(H)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(H){this._hasBackdrop=(0,a.Ig)(H)}set panelClass(H){const f=this._previousPanelClass;f&&f.length&&f.split(" ").forEach(_=>{this._classList[_]=!1}),this._previousPanelClass=H,H&&H.length&&(H.split(" ").forEach(_=>{this._classList[_]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(H){this.panelClass=H}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new i.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,le.O)(this._directDescendantItems),(0,ge.w)(H=>(0,g.T)(...H.map(f=>f._focused)))).subscribe(H=>this._keyManager.updateActiveItem(H)),this._directDescendantItems.changes.subscribe(H=>{const f=this._keyManager;if("enter"===this._panelAnimationState&&f.activeItem?._hasFocus()){const _=H.toArray(),T=Math.max(0,Math.min(_.length-1,f.activeItemIndex||0));_[T]&&!_[T].disabled?f.setActiveItem(T):f.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,le.O)(this._directDescendantItems),(0,ge.w)(f=>(0,g.T)(...f.map(_=>_._hovered))))}addItem(H){}removeItem(H){}_handleKeydown(H){const f=H.keyCode,_=this._keyManager;switch(f){case c.hY:(0,c.Vb)(H)||(H.preventDefault(),this.closed.emit("keydown"));break;case c.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case c.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(f===c.LH||f===c.JH)&&_.setFocusOrigin("keyboard"),void _.onKeydown(H)}H.stopPropagation()}focusFirstItem(H="program"){this._ngZone.onStable.pipe((0,W.q)(1)).subscribe(()=>{let f=null;if(this._directDescendantItems.length&&(f=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!f||!f.contains(document.activeElement)){const _=this._keyManager;_.setFocusOrigin(H).setFirstItemActive(),!_.activeItem&&f&&f.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(H){const f=Math.min(this._baseElevation+H,24),_=`${this._elevationPrefix}${f}`,T=Object.keys(this._classList).find(ve=>ve.startsWith(this._elevationPrefix));(!T||T===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[_]=!0,this._previousElevation=_)}setPositionClasses(H=this.xPosition,f=this.yPosition){const _=this._classList;_["mat-menu-before"]="before"===H,_["mat-menu-after"]="after"===H,_["mat-menu-above"]="above"===f,_["mat-menu-below"]="below"===f,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(H){this._animationDone.next(H),this._isAnimating=!1}_onAnimationStart(H){this._isAnimating=!0,"enter"===H.toState&&0===this._keyManager.activeItemIndex&&(H.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,le.O)(this._allItems)).subscribe(H=>{this._directDescendantItems.reset(H.filter(f=>f._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return de.\u0275fac=function(H){return new(H||de)(v.Y36(v.SBq),v.Y36(v.R0b),v.Y36(We),v.Y36(v.sBO))},de.\u0275dir=v.lG2({type:de,contentQueries:function(H,f,_){if(1&H&&(v.Suo(_,Ee,5),v.Suo(_,gt,5),v.Suo(_,gt,4)),2&H){let T;v.iGM(T=v.CRH())&&(f.lazyContent=T.first),v.iGM(T=v.CRH())&&(f._allItems=T),v.iGM(T=v.CRH())&&(f.items=T)}},viewQuery:function(H,f){if(1&H&&v.Gf(v.Rgc,5),2&H){let _;v.iGM(_=v.CRH())&&(f.templateRef=_.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),de})(),Le=(()=>{class de extends Q{constructor(H,f,_,T){super(H,f,_,T),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return de.\u0275fac=function(H){return new(H||de)(v.Y36(v.SBq),v.Y36(v.R0b),v.Y36(We),v.Y36(v.sBO))},de.\u0275cmp=v.Xpm({type:de,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(H,f){2&H&&v.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[v._Bn([{provide:et,useExisting:de}]),v.qOj],ngContentSelectors:ht,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(H,f){1&H&&(v.F$t(),v.YNc(0,Yt,3,6,"ng-template"))},dependencies:[Ge.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Dt.transformMenu,Dt.fadeInItems]},changeDetection:0}),de})();const ee=new v.OlP("mat-menu-scroll-strategy"),U={provide:ee,deps:[tt.aV],useFactory:function R(de){return()=>de.scrollStrategies.reposition()}},x=(0,me.i$)({passive:!0});let p=(()=>{class de{constructor(H,f,_,T,ve,Je,$e,St,dt){this._overlay=H,this._element=f,this._viewContainerRef=_,this._menuItemInstance=Je,this._dir=$e,this._focusMonitor=St,this._ngZone=dt,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=h.w.EMPTY,this._hoverSubscription=h.w.EMPTY,this._menuCloseSubscription=h.w.EMPTY,this._handleTouchStart=Et=>{(0,i.yG)(Et)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new v.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new v.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=T,this._parentMaterialMenu=ve instanceof Q?ve:void 0,f.nativeElement.addEventListener("touchstart",this._handleTouchStart,x),Je&&(Je._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(H){this.menu=H}get menu(){return this._menu}set menu(H){H!==this._menu&&(this._menu=H,this._menuCloseSubscription.unsubscribe(),H&&(this._menuCloseSubscription=H.close.subscribe(f=>{this._destroyMenu(f),("click"===f||"tab"===f)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(f)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,x),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const H=this.menu;if(this._menuOpen||!H)return;const f=this._createOverlay(H),_=f.getConfig(),T=_.positionStrategy;this._setPosition(H,T),_.hasBackdrop=H.hasBackdrop??!this.triggersSubmenu(),f.attach(this._getPortal(H)),H.lazyContent&&H.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(H),H instanceof Q&&(H._startAnimation(),H._directDescendantItems.changes.pipe((0,ie.R)(H.close)).subscribe(()=>{T.withLockedPosition(!1).reapplyLastPosition(),T.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(H,f){this._focusMonitor&&H?this._focusMonitor.focusVia(this._element,H,f):this._element.nativeElement.focus(f)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(H){if(!this._overlayRef||!this.menuOpen)return;const f=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===H||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,f instanceof Q?(f._resetAnimation(),f.lazyContent?f._animationDone.pipe((0,he.h)(_=>"void"===_.toState),(0,W.q)(1),(0,ie.R)(f.lazyContent._attached)).subscribe({next:()=>f.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),f?.lazyContent?.detach())}_initMenu(H){H.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,H.direction=this.dir,this._setMenuElevation(H),H.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(H){if(H.setElevation){let f=0,_=H.parentMenu;for(;_;)f++,_=_.parentMenu;H.setElevation(f)}}_setIsMenuOpen(H){this._menuOpen=H,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(H)}_createOverlay(H){if(!this._overlayRef){const f=this._getOverlayConfig(H);this._subscribeToPositions(H,f.positionStrategy),this._overlayRef=this._overlay.create(f),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(H){return new tt.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:H.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:H.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(H,f){H.setPositionClasses&&f.positionChanges.subscribe(_=>{const T="start"===_.connectionPair.overlayX?"after":"before",ve="top"===_.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>H.setPositionClasses(T,ve)):H.setPositionClasses(T,ve)})}_setPosition(H,f){let[_,T]="before"===H.xPosition?["end","start"]:["start","end"],[ve,Je]="above"===H.yPosition?["bottom","top"]:["top","bottom"],[$e,St]=[ve,Je],[dt,Et]=[_,T],ye=0;if(this.triggersSubmenu()){if(Et=_="before"===H.xPosition?"start":"end",T=dt="end"===_?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const qe=this._parentMaterialMenu.items.first;this._parentInnerPadding=qe?qe._getHostElement().offsetTop:0}ye="bottom"===ve?this._parentInnerPadding:-this._parentInnerPadding}}else H.overlapTrigger||($e="top"===ve?"bottom":"top",St="top"===Je?"bottom":"top");f.withPositions([{originX:_,originY:$e,overlayX:dt,overlayY:ve,offsetY:ye},{originX:T,originY:$e,overlayX:Et,overlayY:ve,offsetY:ye},{originX:_,originY:St,overlayX:dt,overlayY:Je,offsetY:-ye},{originX:T,originY:St,overlayX:Et,overlayY:Je,offsetY:-ye}])}_menuClosingActions(){const H=this._overlayRef.backdropClick(),f=this._overlayRef.detachments(),_=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,w.of)(),T=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,he.h)(ve=>ve!==this._menuItemInstance),(0,he.h)(()=>this._menuOpen)):(0,w.of)();return(0,g.T)(H,_,T,f)}_handleMousedown(H){(0,i.X6)(H)||(this._openedBy=0===H.button?"mouse":void 0,this.triggersSubmenu()&&H.preventDefault())}_handleKeydown(H){const f=H.keyCode;(f===c.K5||f===c.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(f===c.SV&&"ltr"===this.dir||f===c.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(H){this.triggersSubmenu()?(H.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,he.h)(H=>H===this._menuItemInstance&&!H.disabled),z(0,B.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Q&&this.menu._isAnimating?this.menu._animationDone.pipe((0,W.q)(1),z(0,B.E),(0,ie.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(H){return(!this._portal||this._portal.templateRef!==H.templateRef)&&(this._portal=new Me.UE(H.templateRef,this._viewContainerRef)),this._portal}}return de.\u0275fac=function(H){return new(H||de)(v.Y36(tt.aV),v.Y36(v.SBq),v.Y36(v.s_b),v.Y36(ee),v.Y36(et,8),v.Y36(gt,10),v.Y36(Ke.Is,8),v.Y36(i.tE),v.Y36(v.R0b))},de.\u0275dir=v.lG2({type:de,hostVars:3,hostBindings:function(H,f){1&H&&v.NdJ("click",function(T){return f._handleClick(T)})("mousedown",function(T){return f._handleMousedown(T)})("keydown",function(T){return f._handleKeydown(T)}),2&H&&v.uIk("aria-haspopup",f.menu?"menu":null)("aria-expanded",f.menuOpen||null)("aria-controls",f.menuOpen?f.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),de})(),m=(()=>{class de extends p{}return de.\u0275fac=function(){let X;return function(f){return(X||(X=v.n5z(de)))(f||de)}}(),de.\u0275dir=v.lG2({type:de,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[v.qOj]}),de})(),j=(()=>{class de{}return de.\u0275fac=function(H){return new(H||de)},de.\u0275mod=v.oAB({type:de}),de.\u0275inj=v.cJS({providers:[U],imports:[Ge.ez,it.BQ,it.si,tt.U8,Xe.ZD,it.BQ]}),de})()},8739:(Ct,ke,u)=>{"use strict";u.d(ke,{NW:()=>Me,TU:()=>Ge});var i=u(6895),a=u(4650),c=u(3238),v=u(4859),b=u(4385),h=u(266),g=u(1281),w=u(8929),B=u(9549);function O(it,Ke){if(1&it&&(a.TgZ(0,"mat-option",19),a._uU(1),a.qZA()),2&it){const tt=Ke.$implicit;a.Q6J("value",tt),a.xp6(1),a.hij(" ",tt," ")}}function P(it,Ke){if(1&it){const tt=a.EpF();a.TgZ(0,"mat-form-field",16)(1,"mat-select",17),a.NdJ("selectionChange",function(Xe){a.CHM(tt);const Ae=a.oxw(2);return a.KtG(Ae._changePageSize(Xe.value))}),a.YNc(2,O,2,2,"mat-option",18),a.qZA()()}if(2&it){const tt=a.oxw(2);a.Q6J("appearance",tt._formFieldAppearance)("color",tt.color),a.xp6(1),a.Q6J("value",tt.pageSize)("disabled",tt.disabled)("panelClass",tt.selectConfig.panelClass||"")("disableOptionCentering",tt.selectConfig.disableOptionCentering)("aria-label",tt._intl.itemsPerPageLabel),a.xp6(1),a.Q6J("ngForOf",tt._displayedPageSizeOptions)}}function k(it,Ke){if(1&it&&(a.TgZ(0,"div",20),a._uU(1),a.qZA()),2&it){const tt=a.oxw(2);a.xp6(1),a.Oqu(tt.pageSize)}}function F(it,Ke){if(1&it&&(a.TgZ(0,"div",12)(1,"div",13),a._uU(2),a.qZA(),a.YNc(3,P,3,8,"mat-form-field",14),a.YNc(4,k,2,1,"div",15),a.qZA()),2&it){const tt=a.oxw();a.xp6(2),a.hij(" ",tt._intl.itemsPerPageLabel," "),a.xp6(1),a.Q6J("ngIf",tt._displayedPageSizeOptions.length>1),a.xp6(1),a.Q6J("ngIf",tt._displayedPageSizeOptions.length<=1)}}function z(it,Ke){if(1&it){const tt=a.EpF();a.TgZ(0,"button",21),a.NdJ("click",function(){a.CHM(tt);const Xe=a.oxw();return a.KtG(Xe.firstPage())}),a.O4$(),a.TgZ(1,"svg",7),a._UZ(2,"path",22),a.qZA()()}if(2&it){const tt=a.oxw();a.Q6J("matTooltip",tt._intl.firstPageLabel)("matTooltipDisabled",tt._previousButtonsDisabled())("matTooltipPosition","above")("disabled",tt._previousButtonsDisabled()),a.uIk("aria-label",tt._intl.firstPageLabel)}}function ae(it,Ke){if(1&it){const tt=a.EpF();a.O4$(),a.kcU(),a.TgZ(0,"button",23),a.NdJ("click",function(){a.CHM(tt);const Xe=a.oxw();return a.KtG(Xe.lastPage())}),a.O4$(),a.TgZ(1,"svg",7),a._UZ(2,"path",24),a.qZA()()}if(2&it){const tt=a.oxw();a.Q6J("matTooltip",tt._intl.lastPageLabel)("matTooltipDisabled",tt._nextButtonsDisabled())("matTooltipPosition","above")("disabled",tt._nextButtonsDisabled()),a.uIk("aria-label",tt._intl.lastPageLabel)}}let we=(()=>{class it{constructor(){this.changes=new w.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(tt,me,Xe)=>{if(0==Xe||0==me)return`0 of ${Xe}`;const Ae=tt*me;return`${Ae+1} \u2013 ${Ae<(Xe=Math.max(Xe,0))?Math.min(Ae+me,Xe):Ae+me} of ${Xe}`}}}return it.\u0275fac=function(tt){return new(tt||it)},it.\u0275prov=a.Yz7({token:it,factory:it.\u0275fac,providedIn:"root"}),it})();const le={provide:we,deps:[[new a.FiY,new a.tp0,we]],useFactory:function ue(it){return it||new we}},ie=new a.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),he=(0,c.Id)((0,c.dB)(class{}));let se=(()=>{class it extends he{constructor(tt,me,Xe){if(super(),this._intl=tt,this._changeDetectorRef=me,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new a.vpe,this._intlChanges=tt.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),Xe){const{pageSize:Ae,pageSizeOptions:_t,hidePageSize:ht,showFirstLastButtons:Yt}=Xe;null!=Ae&&(this._pageSize=Ae),null!=_t&&(this._pageSizeOptions=_t),null!=ht&&(this._hidePageSize=ht),null!=Yt&&(this._showFirstLastButtons=Yt)}}get pageIndex(){return this._pageIndex}set pageIndex(tt){this._pageIndex=Math.max((0,g.su)(tt),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(tt){this._length=(0,g.su)(tt),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(tt){this._pageSize=Math.max((0,g.su)(tt),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(tt){this._pageSizeOptions=(tt||[]).map(me=>(0,g.su)(me)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(tt){this._hidePageSize=(0,g.Ig)(tt)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(tt){this._showFirstLastButtons=(0,g.Ig)(tt)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const tt=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(tt)}previousPage(){if(!this.hasPreviousPage())return;const tt=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(tt)}firstPage(){if(!this.hasPreviousPage())return;const tt=this.pageIndex;this.pageIndex=0,this._emitPageEvent(tt)}lastPage(){if(!this.hasNextPage())return;const tt=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(tt)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const tt=this.getNumberOfPages()-1;return this.pageIndextt-me),this._changeDetectorRef.markForCheck())}_emitPageEvent(tt){this.page.emit({previousPageIndex:tt,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return it.\u0275fac=function(tt){a.$Z()},it.\u0275dir=a.lG2({type:it,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[a.qOj]}),it})(),Me=(()=>{class it extends se{constructor(tt,me,Xe){super(tt,me,Xe),Xe&&null!=Xe.formFieldAppearance&&(this._formFieldAppearance=Xe.formFieldAppearance)}}return it.\u0275fac=function(tt){return new(tt||it)(a.Y36(we),a.Y36(a.sBO),a.Y36(ie,8))},it.\u0275cmp=a.Xpm({type:it,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[a.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(tt,me){1&tt&&(a.TgZ(0,"div",0)(1,"div",1),a.YNc(2,F,5,3,"div",2),a.TgZ(3,"div",3)(4,"div",4),a._uU(5),a.qZA(),a.YNc(6,z,3,5,"button",5),a.TgZ(7,"button",6),a.NdJ("click",function(){return me.previousPage()}),a.O4$(),a.TgZ(8,"svg",7),a._UZ(9,"path",8),a.qZA()(),a.kcU(),a.TgZ(10,"button",9),a.NdJ("click",function(){return me.nextPage()}),a.O4$(),a.TgZ(11,"svg",7),a._UZ(12,"path",10),a.qZA()(),a.YNc(13,ae,3,5,"button",11),a.qZA()()()),2&tt&&(a.xp6(2),a.Q6J("ngIf",!me.hidePageSize),a.xp6(3),a.hij(" ",me._intl.getRangeLabel(me.pageIndex,me.pageSize,me.length)," "),a.xp6(1),a.Q6J("ngIf",me.showFirstLastButtons),a.xp6(1),a.Q6J("matTooltip",me._intl.previousPageLabel)("matTooltipDisabled",me._previousButtonsDisabled())("matTooltipPosition","above")("disabled",me._previousButtonsDisabled()),a.uIk("aria-label",me._intl.previousPageLabel),a.xp6(3),a.Q6J("matTooltip",me._intl.nextPageLabel)("matTooltipDisabled",me._nextButtonsDisabled())("matTooltipPosition","above")("disabled",me._nextButtonsDisabled()),a.uIk("aria-label",me._intl.nextPageLabel),a.xp6(3),a.Q6J("ngIf",me.showFirstLastButtons))},dependencies:[i.sg,i.O5,v.lW,B.KE,b.gD,c.ey,h.gM],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),it})(),Ge=(()=>{class it{}return it.\u0275fac=function(tt){return new(tt||it)},it.\u0275mod=a.oAB({type:it}),it.\u0275inj=a.cJS({providers:[le],imports:[i.ez,v.ot,b.LD,h.AV,c.BQ]}),it})()},3162:(Ct,ke,u)=>{"use strict";u.d(ke,{Cv:()=>we,pW:()=>z});var i=u(4650),a=u(6895),c=u(3238),v=u(1281),b=u(2654),h=u(3753),g=u(2198);const w=["primaryValueBar"],B=(0,c.pj)(class{constructor(ue){this._elementRef=ue}},"primary"),O=new i.OlP("mat-progress-bar-location",{providedIn:"root",factory:function P(){const ue=(0,i.f3M)(a.K0),le=ue?ue.location:null;return{getPathname:()=>le?le.pathname+le.search:""}}}),k=new i.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let F=0,z=(()=>{class ue extends B{constructor(ge,W,ie,he,se,Me){super(ge),this._ngZone=W,this._animationMode=ie,this._changeDetectorRef=Me,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new i.vpe,this._animationEndSubscription=b.w.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+F++;const Ge=he?he.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${Ge}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===ie,se&&(se.color&&(this.color=this.defaultColor=se.color),this.mode=se.mode||this.mode)}get value(){return this._value}set value(ge){this._value=ae((0,v.su)(ge)||0),this._changeDetectorRef?.markForCheck()}get bufferValue(){return this._bufferValue}set bufferValue(ge){this._bufferValue=ae(ge||0),this._changeDetectorRef?.markForCheck()}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const ge=this._primaryValueBar.nativeElement;this._animationEndSubscription=(0,h.R)(ge,"transitionend").pipe((0,g.h)(W=>W.target===ge)).subscribe(()=>{0!==this.animationEnd.observers.length&&("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return ue.\u0275fac=function(ge){return new(ge||ue)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(i.QbO,8),i.Y36(O,8),i.Y36(k,8),i.Y36(i.sBO))},ue.\u0275cmp=i.Xpm({type:ue,selectors:[["mat-progress-bar"]],viewQuery:function(ge,W){if(1&ge&&i.Gf(w,5),2&ge){let ie;i.iGM(ie=i.CRH())&&(W._primaryValueBar=ie.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(ge,W){2&ge&&(i.uIk("aria-valuenow","indeterminate"===W.mode||"query"===W.mode?null:W.value)("mode",W.mode),i.ekj("_mat-animation-noopable",W._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[i.qOj],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(ge,W){1&ge&&(i.TgZ(0,"div",0),i.O4$(),i.TgZ(1,"svg",1)(2,"defs")(3,"pattern",2),i._UZ(4,"circle",3),i.qZA()(),i._UZ(5,"rect",4),i.qZA(),i.kcU(),i._UZ(6,"div",5)(7,"div",6,7)(9,"div",8),i.qZA()),2&ge&&(i.xp6(3),i.Q6J("id",W.progressbarId),i.xp6(2),i.uIk("fill",W._rectangleFillValue),i.xp6(1),i.Q6J("ngStyle",W._bufferTransform()),i.xp6(1),i.Q6J("ngStyle",W._primaryTransform()))},dependencies:[a.PC],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}.mat-progress-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}'],encapsulation:2,changeDetection:0}),ue})();function ae(ue,le=0,ge=100){return Math.max(le,Math.min(ge,ue))}let we=(()=>{class ue{}return ue.\u0275fac=function(ge){return new(ge||ue)},ue.\u0275mod=i.oAB({type:ue}),ue.\u0275inj=i.cJS({imports:[a.ez,c.BQ,c.BQ]}),ue})()},1572:(Ct,ke,u)=>{"use strict";u.d(ke,{Cq:()=>ue,Ou:()=>we});var i=u(1281),a=u(3353),c=u(2744),v=u(6895),b=u(4650),h=u(3238),g=u(2654);function w(ge,W){if(1&ge&&(b.O4$(),b._UZ(0,"circle",4)),2&ge){const ie=b.oxw(),he=b.MAs(1);b.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+ie._spinnerAnimationLabel)("stroke-dashoffset",ie._getStrokeDashOffset(),"px")("stroke-dasharray",ie._getStrokeCircumference(),"px")("stroke-width",ie._getCircleStrokeWidth(),"%")("transform-origin",ie._getCircleTransformOrigin(he)),b.uIk("r",ie._getCircleRadius())}}function B(ge,W){if(1&ge&&(b.O4$(),b._UZ(0,"circle",4)),2&ge){const ie=b.oxw(),he=b.MAs(1);b.Udp("stroke-dashoffset",ie._getStrokeDashOffset(),"px")("stroke-dasharray",ie._getStrokeCircumference(),"px")("stroke-width",ie._getCircleStrokeWidth(),"%")("transform-origin",ie._getCircleTransformOrigin(he)),b.uIk("r",ie._getCircleRadius())}}const k=(0,h.pj)(class{constructor(ge){this._elementRef=ge}},"primary"),F=new b.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function z(){return{diameter:100}}});class we extends k{constructor(W,ie,he,se,Me,Ge,it,Ke){super(W),this._document=he,this._diameter=100,this._value=0,this._resizeSubscription=g.w.EMPTY,this.mode="determinate";const tt=we._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),tt.has(he.head)||tt.set(he.head,new Set([100])),this._noopAnimations="NoopAnimations"===se&&!!Me&&!Me._forceAnimations,"mat-spinner"===W.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),Me&&(Me.color&&(this.color=this.defaultColor=Me.color),Me.diameter&&(this.diameter=Me.diameter),Me.strokeWidth&&(this.strokeWidth=Me.strokeWidth)),ie.isBrowser&&ie.SAFARI&&it&&Ge&&Ke&&(this._resizeSubscription=it.change(150).subscribe(()=>{"indeterminate"===this.mode&&Ke.run(()=>Ge.markForCheck())}))}get diameter(){return this._diameter}set diameter(W){this._diameter=(0,i.su)(W),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(W){this._strokeWidth=(0,i.su)(W)}get value(){return"determinate"===this.mode?this._value:0}set value(W){this._value=Math.max(0,Math.min(100,(0,i.su)(W)))}ngOnInit(){const W=this._elementRef.nativeElement;this._styleRoot=(0,a.kV)(W)||this._document.head,this._attachStyleNode(),W.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const W=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${W} ${W}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(W){const ie=50*(W.currentScale??1);return`${ie}% ${ie}%`}_attachStyleNode(){const W=this._styleRoot,ie=this._diameter,he=we._diameters;let se=he.get(W);if(!se||!se.has(ie)){const Me=this._document.createElement("style");Me.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),Me.textContent=this._getAnimationText(),W.appendChild(Me),se||(se=new Set,he.set(W,se)),se.add(ie)}}_getAnimationText(){const W=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*W).replace(/END_VALUE/g,""+.2*W).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}we._diameters=new WeakMap,we.\u0275fac=function(W){return new(W||we)(b.Y36(b.SBq),b.Y36(a.t4),b.Y36(v.K0,8),b.Y36(b.QbO,8),b.Y36(F),b.Y36(b.sBO),b.Y36(c.rL),b.Y36(b.R0b))},we.\u0275cmp=b.Xpm({type:we,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(W,ie){2&W&&(b.uIk("aria-valuemin","determinate"===ie.mode?0:null)("aria-valuemax","determinate"===ie.mode?100:null)("aria-valuenow","determinate"===ie.mode?ie.value:null)("mode",ie.mode),b.Udp("width",ie.diameter,"px")("height",ie.diameter,"px"),b.ekj("_mat-animation-noopable",ie._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[b.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(W,ie){1&W&&(b.O4$(),b.TgZ(0,"svg",0,1),b.YNc(2,w,1,11,"circle",2),b.YNc(3,B,1,9,"circle",3),b.qZA()),2&W&&(b.Udp("width",ie.diameter,"px")("height",ie.diameter,"px"),b.Q6J("ngSwitch","indeterminate"===ie.mode),b.uIk("viewBox",ie._getViewBox()),b.xp6(2),b.Q6J("ngSwitchCase",!0),b.xp6(1),b.Q6J("ngSwitchCase",!1))},dependencies:[v.RF,v.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let ue=(()=>{class ge{}return ge.\u0275fac=function(ie){return new(ie||ge)},ge.\u0275mod=b.oAB({type:ge}),ge.\u0275inj=b.cJS({imports:[h.BQ,v.ez,h.BQ]}),ge})()},4385:(Ct,ke,u)=>{"use strict";u.d(ke,{LD:()=>U,gD:()=>R});var i=u(8184),a=u(6895),c=u(4650),v=u(3238),b=u(9549),h=u(2744),g=u(2687),w=u(445),B=u(1281),O=u(5017),P=u(9521),k=u(4006),F=u(8929),z=u(8514),ae=u(6787),we=u(1059),ue=u(7545),le=u(2986),ge=u(2198),W=u(4850),ie=u(5778),he=u(7625),se=u(7340);const Me=["trigger"],Ge=["panel"];function it(Re,x){if(1&Re&&(c.TgZ(0,"span",8),c._uU(1),c.qZA()),2&Re){const p=c.oxw();c.xp6(1),c.Oqu(p.placeholder)}}function Ke(Re,x){if(1&Re&&(c.TgZ(0,"span",12),c._uU(1),c.qZA()),2&Re){const p=c.oxw(2);c.xp6(1),c.Oqu(p.triggerValue)}}function tt(Re,x){1&Re&&c.Hsn(0,0,["*ngSwitchCase","true"])}function me(Re,x){if(1&Re&&(c.TgZ(0,"span",9),c.YNc(1,Ke,2,1,"span",10),c.YNc(2,tt,1,0,"ng-content",11),c.qZA()),2&Re){const p=c.oxw();c.Q6J("ngSwitch",!!p.customTrigger),c.xp6(2),c.Q6J("ngSwitchCase",!0)}}function Xe(Re,x){if(1&Re){const p=c.EpF();c.TgZ(0,"div",13)(1,"div",14,15),c.NdJ("@transformPanel.done",function(j){c.CHM(p);const de=c.oxw();return c.KtG(de._panelDoneAnimatingStream.next(j.toState))})("keydown",function(j){c.CHM(p);const de=c.oxw();return c.KtG(de._handleKeydown(j))}),c.Hsn(3,1),c.qZA()()}if(2&Re){const p=c.oxw();c.Q6J("@transformPanelWrap",void 0),c.xp6(1),c.Gre("mat-select-panel ",p._getPanelTheme(),""),c.Udp("transform-origin",p._transformOrigin)("font-size",p._triggerFontSize,"px"),c.Q6J("ngClass",p.panelClass)("@transformPanel",p.multiple?"showing-multiple":"showing"),c.uIk("id",p.id+"-panel")("aria-multiselectable",p.multiple)("aria-label",p.ariaLabel||null)("aria-labelledby",p._getPanelAriaLabelledby())}}const Ae=[[["mat-select-trigger"]],"*"],_t=["mat-select-trigger","*"],ht={transformPanelWrap:(0,se.X$)("transformPanelWrap",[(0,se.eR)("* => void",(0,se.IO)("@transformPanel",[(0,se.pV)()],{optional:!0}))]),transformPanel:(0,se.X$)("transformPanel",[(0,se.SB)("void",(0,se.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,se.SB)("showing",(0,se.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,se.SB)("showing-multiple",(0,se.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,se.eR)("void => *",(0,se.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,se.eR)("* => void",(0,se.jt)("100ms 25ms linear",(0,se.oB)({opacity:0})))])};let V=0;const et=new c.OlP("mat-select-scroll-strategy"),gt=new c.OlP("MAT_SELECT_CONFIG"),We={provide:et,deps:[i.aV],useFactory:function Mt(Re){return()=>Re.scrollStrategies.reposition()}};class wt{constructor(x,p){this.source=x,this.value=p}}const nt=(0,v.Kr)((0,v.sb)((0,v.Id)((0,v.FD)(class{constructor(Re,x,p,m,j){this._elementRef=Re,this._defaultErrorStateMatcher=x,this._parentForm=p,this._parentFormGroup=m,this.ngControl=j,this.stateChanges=new F.xQ}})))),Q=new c.OlP("MatSelectTrigger");let ee=(()=>{class Re extends nt{constructor(p,m,j,de,X,H,f,_,T,ve,Je,$e,St,dt){super(X,de,f,_,ve),this._viewportRuler=p,this._changeDetectorRef=m,this._ngZone=j,this._dir=H,this._parentFormField=T,this._liveAnnouncer=St,this._defaultOptions=dt,this._panelOpen=!1,this._compareWith=(Et,ye)=>Et===ye,this._uid="mat-select-"+V++,this._triggerAriaLabelledBy=null,this._destroy=new F.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+V++,this._panelDoneAnimatingStream=new F.xQ,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=(0,z.P)(()=>{const Et=this.options;return Et?Et.changes.pipe((0,we.O)(Et),(0,ue.w)(()=>(0,ae.T)(...Et.map(ye=>ye.onSelectionChange)))):this._ngZone.onStable.pipe((0,le.q)(1),(0,ue.w)(()=>this.optionSelectionChanges))}),this.openedChange=new c.vpe,this._openedStream=this.openedChange.pipe((0,ge.h)(Et=>Et),(0,W.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,ge.h)(Et=>!Et),(0,W.U)(()=>{})),this.selectionChange=new c.vpe,this.valueChange=new c.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=dt?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=dt.typeaheadDebounceInterval),this._scrollStrategyFactory=$e,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Je)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(p){this._placeholder=p,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(k.kI.required)??!1}set required(p){this._required=(0,B.Ig)(p),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(p){this._multiple=(0,B.Ig)(p)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(p){this._disableOptionCentering=(0,B.Ig)(p)}get compareWith(){return this._compareWith}set compareWith(p){this._compareWith=p,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(p){this._assignValue(p)&&this._onChange(p)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(p){this._typeaheadDebounceInterval=(0,B.su)(p)}get id(){return this._id}set id(p){this._id=p||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new O.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,ie.x)(),(0,he.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,he.R)(this._destroy)).subscribe(p=>{p.added.forEach(m=>m.select()),p.removed.forEach(m=>m.deselect())}),this.options.changes.pipe((0,we.O)(null),(0,he.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const p=this._getTriggerAriaLabelledby(),m=this.ngControl;if(p!==this._triggerAriaLabelledBy){const j=this._elementRef.nativeElement;this._triggerAriaLabelledBy=p,p?j.setAttribute("aria-labelledby",p):j.removeAttribute("aria-labelledby")}m&&(this._previousControl!==m.control&&(void 0!==this._previousControl&&null!==m.disabled&&m.disabled!==this.disabled&&(this.disabled=m.disabled),this._previousControl=m.control),this.updateErrorState())}ngOnChanges(p){(p.disabled||p.userAriaDescribedBy)&&this.stateChanges.next(),p.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(p){this._assignValue(p)}registerOnChange(p){this._onChange=p}registerOnTouched(p){this._onTouched=p}setDisabledState(p){this.disabled=p,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const p=this._selectionModel.selected.map(m=>m.viewValue);return this._isRtl()&&p.reverse(),p.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(p){this.disabled||(this.panelOpen?this._handleOpenKeydown(p):this._handleClosedKeydown(p))}_handleClosedKeydown(p){const m=p.keyCode,j=m===P.JH||m===P.LH||m===P.oh||m===P.SV,de=m===P.K5||m===P.L_,X=this._keyManager;if(!X.isTyping()&&de&&!(0,P.Vb)(p)||(this.multiple||p.altKey)&&j)p.preventDefault(),this.open();else if(!this.multiple){const H=this.selected;X.onKeydown(p);const f=this.selected;f&&H!==f&&this._liveAnnouncer.announce(f.viewValue,1e4)}}_handleOpenKeydown(p){const m=this._keyManager,j=p.keyCode,de=j===P.JH||j===P.LH,X=m.isTyping();if(de&&p.altKey)p.preventDefault(),this.close();else if(X||j!==P.K5&&j!==P.L_||!m.activeItem||(0,P.Vb)(p))if(!X&&this._multiple&&j===P.A&&p.ctrlKey){p.preventDefault();const H=this.options.some(f=>!f.disabled&&!f.selected);this.options.forEach(f=>{f.disabled||(H?f.select():f.deselect())})}else{const H=m.activeItemIndex;m.onKeydown(p),this._multiple&&de&&p.shiftKey&&m.activeItem&&m.activeItemIndex!==H&&m.activeItem._selectViaInteraction()}else p.preventDefault(),m.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,le.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(p){if(this._selectionModel.selected.forEach(m=>m.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&p)Array.isArray(p),p.forEach(m=>this._selectOptionByValue(m)),this._sortValues();else{const m=this._selectOptionByValue(p);m?this._keyManager.updateActiveItem(m):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(p){const m=this.options.find(j=>{if(this._selectionModel.isSelected(j))return!1;try{return null!=j.value&&this._compareWith(j.value,p)}catch{return!1}});return m&&this._selectionModel.select(m),m}_assignValue(p){return!!(p!==this._value||this._multiple&&Array.isArray(p))&&(this.options&&this._setSelectionByValue(p),this._value=p,!0)}_initKeyManager(){this._keyManager=new g.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,he.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,he.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const p=(0,ae.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,he.R)(p)).subscribe(m=>{this._onSelect(m.source,m.isUserInput),m.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,ae.T)(...this.options.map(m=>m._stateChanges)).pipe((0,he.R)(p)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(p,m){const j=this._selectionModel.isSelected(p);null!=p.value||this._multiple?(j!==p.selected&&(p.selected?this._selectionModel.select(p):this._selectionModel.deselect(p)),m&&this._keyManager.setActiveItem(p),this.multiple&&(this._sortValues(),m&&this.focus())):(p.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(p.value)),j!==this._selectionModel.isSelected(p)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const p=this.options.toArray();this._selectionModel.sort((m,j)=>this.sortComparator?this.sortComparator(m,j,p):p.indexOf(m)-p.indexOf(j)),this.stateChanges.next()}}_propagateChanges(p){let m=null;m=this.multiple?this.selected.map(j=>j.value):this.selected?this.selected.value:p,this._value=m,this.valueChange.emit(m),this._onChange(m),this.selectionChange.emit(this._getChangeEvent(m)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(p){this._elementRef.nativeElement.focus(p)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const p=this._parentFormField?.getLabelId();return this.ariaLabelledby?(p?p+" ":"")+this.ariaLabelledby:p}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const p=this._parentFormField?.getLabelId();let m=(p?p+" ":"")+this._valueId;return this.ariaLabelledby&&(m+=" "+this.ariaLabelledby),m}_panelDoneAnimating(p){this.openedChange.emit(p)}setDescribedByIds(p){p.length?this._elementRef.nativeElement.setAttribute("aria-describedby",p.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return Re.\u0275fac=function(p){return new(p||Re)(c.Y36(h.rL),c.Y36(c.sBO),c.Y36(c.R0b),c.Y36(v.rD),c.Y36(c.SBq),c.Y36(w.Is,8),c.Y36(k.F,8),c.Y36(k.sg,8),c.Y36(b.G_,8),c.Y36(k.a5,10),c.$8M("tabindex"),c.Y36(et),c.Y36(g.Kd),c.Y36(gt,8))},Re.\u0275dir=c.lG2({type:Re,viewQuery:function(p,m){if(1&p&&(c.Gf(Me,5),c.Gf(Ge,5),c.Gf(i.pI,5)),2&p){let j;c.iGM(j=c.CRH())&&(m.trigger=j.first),c.iGM(j=c.CRH())&&(m.panel=j.first),c.iGM(j=c.CRH())&&(m._overlayDir=j.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[c.qOj,c.TTD]}),Re})(),R=(()=>{class Re extends ee{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(p,m,j){const de=this._getItemHeight();return Math.min(Math.max(0,de*p-m+de/2),j)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,he.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,le.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(p){const m=(0,v.CB)(p,this.options,this.optionGroups),j=this._getItemHeight();this.panel.nativeElement.scrollTop=0===p&&1===m?0:(0,v.jH)((p+m)*j,j,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(p){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(p)}_getChangeEvent(p){return new wt(this,p)}_calculateOverlayOffsetX(){const p=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),m=this._viewportRuler.getViewportSize(),j=this._isRtl(),de=this.multiple?56:32;let X;if(this.multiple)X=40;else if(this.disableOptionCentering)X=16;else{let _=this._selectionModel.selected[0]||this.options.first;X=_&&_.group?32:16}j||(X*=-1);const H=0-(p.left+X-(j?de:0)),f=p.right+X-m.width+(j?0:de);H>0?X+=H+8:f>0&&(X-=f+8),this._overlayDir.offsetX=Math.round(X),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(p,m,j){const de=this._getItemHeight(),X=(de-this._triggerRect.height)/2,H=Math.floor(256/de);let f;return this.disableOptionCentering?0:(f=0===this._scrollTop?p*de:this._scrollTop===j?(p-(this._getItemCount()-H))*de+(de-(this._getItemCount()*de-256)%de):m-de/2,Math.round(-1*f-X))}_checkOverlayWithinViewport(p){const m=this._getItemHeight(),j=this._viewportRuler.getViewportSize(),de=this._triggerRect.top-8,X=j.height-this._triggerRect.bottom-8,H=Math.abs(this._offsetY),_=Math.min(this._getItemCount()*m,256)-H-this._triggerRect.height;_>X?this._adjustPanelUp(_,X):H>de?this._adjustPanelDown(H,de,p):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(p,m){const j=Math.round(p-m);this._scrollTop-=j,this._offsetY-=j,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(p,m,j){const de=Math.round(p-m);if(this._scrollTop+=de,this._offsetY+=de,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=j)return this._scrollTop=j,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const p=this._getItemHeight(),m=this._getItemCount(),j=Math.min(m*p,256),X=m*p-j;let H;H=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),H+=(0,v.CB)(H,this.options,this.optionGroups);const f=j/2;this._scrollTop=this._calculateOverlayScroll(H,f,X),this._offsetY=this._calculateOverlayOffsetY(H,f,X),this._checkOverlayWithinViewport(X)}_getOriginBasedOnOption(){const p=this._getItemHeight(),m=(p-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-m+p/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return Re.\u0275fac=function(){let x;return function(m){return(x||(x=c.n5z(Re)))(m||Re)}}(),Re.\u0275cmp=c.Xpm({type:Re,selectors:[["mat-select"]],contentQueries:function(p,m,j){if(1&p&&(c.Suo(j,Q,5),c.Suo(j,v.ey,5),c.Suo(j,v.K7,5)),2&p){let de;c.iGM(de=c.CRH())&&(m.customTrigger=de.first),c.iGM(de=c.CRH())&&(m.options=de),c.iGM(de=c.CRH())&&(m.optionGroups=de)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(p,m){1&p&&c.NdJ("keydown",function(de){return m._handleKeydown(de)})("focus",function(){return m._onFocus()})("blur",function(){return m._onBlur()}),2&p&&(c.uIk("id",m.id)("tabindex",m.tabIndex)("aria-controls",m.panelOpen?m.id+"-panel":null)("aria-expanded",m.panelOpen)("aria-label",m.ariaLabel||null)("aria-required",m.required.toString())("aria-disabled",m.disabled.toString())("aria-invalid",m.errorState)("aria-activedescendant",m._getAriaActiveDescendant()),c.ekj("mat-select-disabled",m.disabled)("mat-select-invalid",m.errorState)("mat-select-required",m.required)("mat-select-empty",m.empty)("mat-select-multiple",m.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[c._Bn([{provide:b.Eo,useExisting:Re},{provide:v.HF,useExisting:Re}]),c.qOj],ngContentSelectors:_t,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(p,m){if(1&p&&(c.F$t(Ae),c.TgZ(0,"div",0,1),c.NdJ("click",function(){return m.toggle()}),c.TgZ(3,"div",2),c.YNc(4,it,2,1,"span",3),c.YNc(5,me,3,2,"span",4),c.qZA(),c.TgZ(6,"div",5),c._UZ(7,"div",6),c.qZA()(),c.YNc(8,Xe,4,14,"ng-template",7),c.NdJ("backdropClick",function(){return m.close()})("attach",function(){return m._onAttached()})("detach",function(){return m.close()})),2&p){const j=c.MAs(1);c.uIk("aria-owns",m.panelOpen?m.id+"-panel":null),c.xp6(3),c.Q6J("ngSwitch",m.empty),c.uIk("id",m._valueId),c.xp6(1),c.Q6J("ngSwitchCase",!0),c.xp6(1),c.Q6J("ngSwitchCase",!1),c.xp6(3),c.Q6J("cdkConnectedOverlayPanelClass",m._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",m._scrollStrategy)("cdkConnectedOverlayOrigin",j)("cdkConnectedOverlayOpen",m.panelOpen)("cdkConnectedOverlayPositions",m._positions)("cdkConnectedOverlayMinWidth",null==m._triggerRect?null:m._triggerRect.width)("cdkConnectedOverlayOffsetY",m._offsetY)}},dependencies:[a.mk,a.RF,a.n9,a.ED,i.pI,i.xu],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[ht.transformPanelWrap,ht.transformPanel]},changeDetection:0}),Re})(),U=(()=>{class Re{}return Re.\u0275fac=function(p){return new(p||Re)},Re.\u0275mod=c.oAB({type:Re}),Re.\u0275inj=c.cJS({providers:[We],imports:[a.ez,i.U8,v.Ng,v.BQ,h.ZD,b.lN,v.Ng,v.BQ]}),Re})()},3267:(Ct,ke,u)=>{"use strict";u.d(ke,{JX:()=>Ee,SJ:()=>_e});var i=u(2744),a=u(6895),c=u(4650),v=u(3238),b=u(2687),h=u(1281),g=u(9521),w=u(3353),B=u(8929),O=u(3753),P=u(2198),k=u(4850),F=u(7604),z=u(7625),ae=u(5778),we=u(2986),ue=u(7340);const le=["*"],ge=["content"],me={transformDrawer:(0,ue.X$)("transform",[(0,ue.SB)("open, open-instant",(0,ue.oB)({transform:"none",visibility:"visible"})),(0,ue.SB)("void",(0,ue.oB)({"box-shadow":"none",visibility:"hidden"})),(0,ue.eR)("void => open-instant",(0,ue.jt)("0ms")),(0,ue.eR)("void <=> open, open-instant => void",(0,ue.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},_t=new c.OlP("MAT_DRAWER_CONTAINER");let Dt=(()=>{class Oe{constructor(be,et,Mt,gt,We,wt,nt,Q){this._elementRef=be,this._focusTrapFactory=et,this._focusMonitor=Mt,this._platform=gt,this._ngZone=We,this._interactivityChecker=wt,this._doc=nt,this._container=Q,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new B.xQ,this._animationEnd=new B.xQ,this._animationState="void",this.openedChange=new c.vpe(!0),this._openedStream=this.openedChange.pipe((0,P.h)(Le=>Le),(0,k.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,P.h)(Le=>Le.fromState!==Le.toState&&0===Le.toState.indexOf("open")),(0,F.h)(void 0)),this._closedStream=this.openedChange.pipe((0,P.h)(Le=>!Le),(0,k.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,P.h)(Le=>Le.fromState!==Le.toState&&"void"===Le.toState),(0,F.h)(void 0)),this._destroyed=new B.xQ,this.onPositionChanged=new c.vpe,this._modeChanged=new B.xQ,this.openedChange.subscribe(Le=>{Le?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,O.R)(this._elementRef.nativeElement,"keydown").pipe((0,P.h)(Le=>Le.keyCode===g.hY&&!this.disableClose&&!(0,g.Vb)(Le)),(0,z.R)(this._destroyed)).subscribe(Le=>this._ngZone.run(()=>{this.close(),Le.stopPropagation(),Le.preventDefault()}))}),this._animationEnd.pipe((0,ae.x)((Le,ee)=>Le.fromState===ee.fromState&&Le.toState===ee.toState)).subscribe(Le=>{const{fromState:ee,toState:R}=Le;(0===R.indexOf("open")&&"void"===ee||"void"===R&&0===ee.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(be){(be="end"===be?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(be),this._position=be,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(be){this._mode=be,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(be){this._disableClose=(0,h.Ig)(be)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(be){("true"===be||"false"===be||null==be)&&(be=(0,h.Ig)(be)),this._autoFocus=be}get opened(){return this._opened}set opened(be){this.toggle((0,h.Ig)(be))}_forceFocus(be,et){this._interactivityChecker.isFocusable(be)||(be.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Mt=()=>{be.removeEventListener("blur",Mt),be.removeEventListener("mousedown",Mt),be.removeAttribute("tabindex")};be.addEventListener("blur",Mt),be.addEventListener("mousedown",Mt)})),be.focus(et)}_focusByCssSelector(be,et){let Mt=this._elementRef.nativeElement.querySelector(be);Mt&&this._forceFocus(Mt,et)}_takeFocus(){if(!this._focusTrap)return;const be=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(et=>{!et&&"function"==typeof this._elementRef.nativeElement.focus&&be.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(be){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,be):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const be=this._doc.activeElement;return!!be&&this._elementRef.nativeElement.contains(be)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(be){return this.toggle(!0,be)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(be=!this.opened,et){be&&et&&(this._openedVia=et);const Mt=this._setOpen(be,!be&&this._isFocusWithinDrawer(),this._openedVia||"program");return be||(this._openedVia=null),Mt}_setOpen(be,et,Mt){return this._opened=be,be?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",et&&this._restoreFocus(Mt)),this._updateFocusTrapState(),new Promise(gt=>{this.openedChange.pipe((0,we.q)(1)).subscribe(We=>gt(We?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(be){const et=this._elementRef.nativeElement,Mt=et.parentNode;"end"===be?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),Mt.insertBefore(this._anchor,et)),Mt.appendChild(et)):this._anchor&&this._anchor.parentNode.insertBefore(et,this._anchor)}}return Oe.\u0275fac=function(be){return new(be||Oe)(c.Y36(c.SBq),c.Y36(b.qV),c.Y36(b.tE),c.Y36(w.t4),c.Y36(c.R0b),c.Y36(b.ic),c.Y36(a.K0,8),c.Y36(_t,8))},Oe.\u0275cmp=c.Xpm({type:Oe,selectors:[["mat-drawer"]],viewQuery:function(be,et){if(1&be&&c.Gf(ge,5),2&be){let Mt;c.iGM(Mt=c.CRH())&&(et._content=Mt.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(be,et){1&be&&c.WFA("@transform.start",function(gt){return et._animationStarted.next(gt)})("@transform.done",function(gt){return et._animationEnd.next(gt)}),2&be&&(c.uIk("align",null),c.d8E("@transform",et._animationState),c.ekj("mat-drawer-end","end"===et.position)("mat-drawer-over","over"===et.mode)("mat-drawer-push","push"===et.mode)("mat-drawer-side","side"===et.mode)("mat-drawer-opened",et.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:le,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(be,et){1&be&&(c.F$t(),c.TgZ(0,"div",0,1),c.Hsn(2),c.qZA())},dependencies:[i.PQ],encapsulation:2,data:{animation:[me.transformDrawer]},changeDetection:0}),Oe})(),Ee=(()=>{class Oe extends Dt{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(be){this._fixedInViewport=(0,h.Ig)(be)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(be){this._fixedTopGap=(0,h.su)(be)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(be){this._fixedBottomGap=(0,h.su)(be)}}return Oe.\u0275fac=function(){let at;return function(et){return(at||(at=c.n5z(Oe)))(et||Oe)}}(),Oe.\u0275cmp=c.Xpm({type:Oe,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(be,et){2&be&&(c.uIk("align",null),c.Udp("top",et.fixedInViewport?et.fixedTopGap:null,"px")("bottom",et.fixedInViewport?et.fixedBottomGap:null,"px"),c.ekj("mat-drawer-end","end"===et.position)("mat-drawer-over","over"===et.mode)("mat-drawer-push","push"===et.mode)("mat-drawer-side","side"===et.mode)("mat-drawer-opened",et.opened)("mat-sidenav-fixed",et.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[c.qOj],ngContentSelectors:le,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(be,et){1&be&&(c.F$t(),c.TgZ(0,"div",0,1),c.Hsn(2),c.qZA())},dependencies:[i.PQ],encapsulation:2,data:{animation:[me.transformDrawer]},changeDetection:0}),Oe})(),_e=(()=>{class Oe{}return Oe.\u0275fac=function(be){return new(be||Oe)},Oe.\u0275mod=c.oAB({type:Oe}),Oe.\u0275inj=c.cJS({imports:[a.ez,v.BQ,i.ZD,i.ZD,v.BQ]}),Oe})()},455:(Ct,ke,u)=>{"use strict";u.d(ke,{HT:()=>O,Rr:()=>we,rP:()=>W});var i=u(9643),a=u(4650),c=u(3238),v=u(2687),b=u(1281),h=u(4006);const g=["input"],w=function(ie){return{enterDuration:ie}},B=["*"],O=new a.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let P=0;const k={provide:h.JU,useExisting:(0,a.Gpc)(()=>we),multi:!0};class F{constructor(he,se){this.source=he,this.checked=se}}const z=(0,c.sb)((0,c.pj)((0,c.Kr)((0,c.Id)(class{constructor(ie){this._elementRef=ie}}))));let ae=(()=>{class ie extends z{constructor(se,Me,Ge,it,Ke,tt,me){super(se),this._focusMonitor=Me,this._changeDetectorRef=Ge,this.defaults=Ke,this._onChange=Xe=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new a.vpe,this.toggleChange=new a.vpe,this.tabIndex=parseInt(it)||0,this.color=this.defaultColor=Ke.color||"accent",this._noopAnimations="NoopAnimations"===tt,this.id=this._uniqueId=`${me}${++P}`}get required(){return this._required}set required(se){this._required=(0,b.Ig)(se)}get checked(){return this._checked}set checked(se){this._checked=(0,b.Ig)(se),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(se=>{"keyboard"===se||"program"===se?this._focused=!0:se||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(se){this.checked=!!se}registerOnChange(se){this._onChange=se}registerOnTouched(se){this._onTouched=se}setDisabledState(se){this.disabled=se,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return ie.\u0275fac=function(se){a.$Z()},ie.\u0275dir=a.lG2({type:ie,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[a.qOj]}),ie})(),we=(()=>{class ie extends ae{constructor(se,Me,Ge,it,Ke,tt){super(se,Me,Ge,it,Ke,tt,"mat-slide-toggle-")}_createChangeEvent(se){return new F(this,se)}_onChangeEvent(se){se.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(se){se.stopPropagation()}focus(se,Me){Me?this._focusMonitor.focusVia(this._inputElement,Me,se):this._inputElement.nativeElement.focus(se)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return ie.\u0275fac=function(se){return new(se||ie)(a.Y36(a.SBq),a.Y36(v.tE),a.Y36(a.sBO),a.$8M("tabindex"),a.Y36(O),a.Y36(a.QbO,8))},ie.\u0275cmp=a.Xpm({type:ie,selectors:[["mat-slide-toggle"]],viewQuery:function(se,Me){if(1&se&&a.Gf(g,5),2&se){let Ge;a.iGM(Ge=a.CRH())&&(Me._inputElement=Ge.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(se,Me){2&se&&(a.Ikx("id",Me.id),a.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),a.ekj("mat-checked",Me.checked)("mat-disabled",Me.disabled)("mat-slide-toggle-label-before","before"==Me.labelPosition)("_mat-animation-noopable",Me._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[a._Bn([k]),a.qOj],ngContentSelectors:B,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(se,Me){if(1&se&&(a.F$t(),a.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),a.NdJ("change",function(it){return Me._onChangeEvent(it)})("click",function(it){return Me._onInputClick(it)}),a.qZA(),a.TgZ(5,"span",5),a._UZ(6,"span",6),a.TgZ(7,"span",7),a._UZ(8,"span",8),a.qZA()()(),a.TgZ(9,"span",9,10),a.NdJ("cdkObserveContent",function(){return Me._onLabelTextChange()}),a.TgZ(11,"span",11),a._uU(12,"\xa0"),a.qZA(),a.Hsn(13),a.qZA()()),2&se){const Ge=a.MAs(1),it=a.MAs(10);a.uIk("for",Me.inputId),a.xp6(2),a.ekj("mat-slide-toggle-bar-no-side-margin",!it.textContent||!it.textContent.trim()),a.xp6(1),a.Q6J("id",Me.inputId)("required",Me.required)("tabIndex",Me.tabIndex)("checked",Me.checked)("disabled",Me.disabled),a.uIk("name",Me.name)("aria-checked",Me.checked)("aria-label",Me.ariaLabel)("aria-labelledby",Me.ariaLabelledby)("aria-describedby",Me.ariaDescribedby),a.xp6(4),a.Q6J("matRippleTrigger",Ge)("matRippleDisabled",Me.disableRipple||Me.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",a.VKq(18,w,Me._noopAnimations?0:150))}},dependencies:[c.wG,i.wD],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0}),ie})(),ge=(()=>{class ie{}return ie.\u0275fac=function(se){return new(se||ie)},ie.\u0275mod=a.oAB({type:ie}),ie.\u0275inj=a.cJS({}),ie})(),W=(()=>{class ie{}return ie.\u0275fac=function(se){return new(se||ie)},ie.\u0275mod=a.oAB({type:ie}),ie.\u0275inj=a.cJS({imports:[ge,c.si,c.BQ,i.Q8,ge,c.BQ]}),ie})()},7314:(Ct,ke,u)=>{"use strict";u.d(ke,{KP:()=>it,pH:()=>W});var i=u(6895),a=u(4650),c=u(3238),v=u(2687),b=u(445),h=u(1281),g=u(9521),w=u(4006),B=u(3353),O=u(2654);const P=["sliderWrapper"],k=(0,B.i$)({passive:!1}),ue={provide:w.JU,useExisting:(0,a.Gpc)(()=>W),multi:!0};class le{}const ge=(0,c.sb)((0,c.pj)((0,c.Id)(class{constructor(Ke){this._elementRef=Ke}}),"accent"));let W=(()=>{class Ke extends ge{constructor(me,Xe,Ae,_t,ht,Yt,Dt,jt){super(me),this._focusMonitor=Xe,this._changeDetectorRef=Ae,this._dir=_t,this._ngZone=Yt,this._animationMode=jt,this._invert=!1,this._max=100,this._min=0,this._step=1,this._thumbLabel=!1,this._tickInterval=0,this._value=null,this._vertical=!1,this.change=new a.vpe,this.input=new a.vpe,this.valueChange=new a.vpe,this.onTouched=()=>{},this._percent=0,this._isSliding=null,this._isActive=!1,this._tickIntervalPercent=0,this._sliderDimensions=null,this._controlValueAccessorChangeFn=()=>{},this._dirChangeSubscription=O.w.EMPTY,this._pointerDown=V=>{this.disabled||this._isSliding||!he(V)&&0!==V.button||this._ngZone.run(()=>{this._touchId=he(V)?function Ge(Ke,tt){for(let me=0;me{if("pointer"===this._isSliding){const Ee=se(V,this._touchId);if(Ee){V.cancelable&&V.preventDefault();const oe=this.value;this._lastPointerEvent=V,this._updateValueFromPosition(Ee),oe!=this.value&&this._emitInputEvent()}}},this._pointerUp=V=>{"pointer"===this._isSliding&&(!he(V)||"number"!=typeof this._touchId||Me(V.changedTouches,this._touchId))&&(V.cancelable&&V.preventDefault(),this._removeGlobalEvents(),this._isSliding=null,this._touchId=void 0,this._valueOnSlideStart!=this.value&&!this.disabled&&this._emitChangeEvent(),this._valueOnSlideStart=this._lastPointerEvent=null)},this._windowBlur=()=>{this._lastPointerEvent&&this._pointerUp(this._lastPointerEvent)},this._document=Dt,this.tabIndex=parseInt(ht)||0,Yt.runOutsideAngular(()=>{const V=me.nativeElement;V.addEventListener("mousedown",this._pointerDown,k),V.addEventListener("touchstart",this._pointerDown,k)})}get invert(){return this._invert}set invert(me){this._invert=(0,h.Ig)(me)}get max(){return this._max}set max(me){this._max=(0,h.su)(me,this._max),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get min(){return this._min}set min(me){this._min=(0,h.su)(me,this._min),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get step(){return this._step}set step(me){this._step=(0,h.su)(me,this._step),this._step%1!=0&&(this._roundToDecimal=this._step.toString().split(".").pop().length),this._changeDetectorRef.markForCheck()}get thumbLabel(){return this._thumbLabel}set thumbLabel(me){this._thumbLabel=(0,h.Ig)(me)}get tickInterval(){return this._tickInterval}set tickInterval(me){this._tickInterval="auto"===me?"auto":"number"==typeof me||"string"==typeof me?(0,h.su)(me,this._tickInterval):0}get value(){return null===this._value&&(this.value=this._min),this._value}set value(me){if(me!==this._value){let Xe=(0,h.su)(me,0);this._roundToDecimal&&Xe!==this.min&&Xe!==this.max&&(Xe=parseFloat(Xe.toFixed(this._roundToDecimal))),this._value=Xe,this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}}get vertical(){return this._vertical}set vertical(me){this._vertical=(0,h.Ig)(me)}get displayValue(){return this.displayWith?this.displayWith(this.value):this._roundToDecimal&&this.value&&this.value%1!=0?this.value.toFixed(this._roundToDecimal):this.value||0}focus(me){this._focusHostElement(me)}blur(){this._blurHostElement()}get percent(){return this._clamp(this._percent)}_shouldInvertAxis(){return this.vertical?!this.invert:this.invert}_isMinValue(){return 0===this.percent}_getThumbGap(){return this.disabled?7:this._isMinValue()&&!this.thumbLabel?this._isActive?10:7:0}_getTrackBackgroundStyles(){const Xe=this.vertical?`1, ${1-this.percent}, 1`:1-this.percent+", 1, 1";return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"-":""}${this._getThumbGap()}px) scale3d(${Xe})`}}_getTrackFillStyles(){const me=this.percent,Ae=this.vertical?`1, ${me}, 1`:`${me}, 1, 1`;return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"":"-"}${this._getThumbGap()}px) scale3d(${Ae})`,display:0===me?"none":""}}_getTicksContainerStyles(){return{transform:`translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"-":""}${this._tickIntervalPercent/2*100}%)`}}_getTicksStyles(){let me=100*this._tickIntervalPercent,Yt={backgroundSize:this.vertical?`2px ${me}%`:`${me}% 2px`,transform:`translateZ(0) translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"":"-"}${me/2}%)${this.vertical||"rtl"!=this._getDirection()?"":" rotate(180deg)"}`};if(this._isMinValue()&&this._getThumbGap()){const Dt=this._shouldInvertAxis();let jt;jt=this.vertical?Dt?"Bottom":"Top":Dt?"Right":"Left",Yt[`padding${jt}`]=`${this._getThumbGap()}px`}return Yt}_getThumbContainerStyles(){const me=this._shouldInvertAxis();return{transform:`translate${this.vertical?"Y":"X"}(-${100*(("rtl"!=this._getDirection()||this.vertical?me:!me)?this.percent:1-this.percent)}%)`}}_shouldInvertMouseCoords(){const me=this._shouldInvertAxis();return"rtl"!=this._getDirection()||this.vertical?me:!me}_getDirection(){return this._dir&&"rtl"==this._dir.value?"rtl":"ltr"}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(me=>{this._isActive=!!me&&"keyboard"!==me,this._changeDetectorRef.detectChanges()}),this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(()=>{this._changeDetectorRef.markForCheck()}))}ngOnDestroy(){const me=this._elementRef.nativeElement;me.removeEventListener("mousedown",this._pointerDown,k),me.removeEventListener("touchstart",this._pointerDown,k),this._lastPointerEvent=null,this._removeGlobalEvents(),this._focusMonitor.stopMonitoring(this._elementRef),this._dirChangeSubscription.unsubscribe()}_onMouseenter(){this.disabled||(this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent())}_onFocus(){this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent()}_onBlur(){this.onTouched()}_onKeydown(me){if(this.disabled||(0,g.Vb)(me)||this._isSliding&&"keyboard"!==this._isSliding)return;const Xe=this.value;switch(me.keyCode){case g.Ku:this._increment(10);break;case g.VM:this._increment(-10);break;case g.uR:this.value=this.max;break;case g.Sd:this.value=this.min;break;case g.oh:this._increment("rtl"==this._getDirection()?1:-1);break;case g.LH:this._increment(1);break;case g.SV:this._increment("rtl"==this._getDirection()?-1:1);break;case g.JH:this._increment(-1);break;default:return}Xe!=this.value&&(this._emitInputEvent(),this._emitChangeEvent()),this._isSliding="keyboard",me.preventDefault()}_onKeyup(){"keyboard"===this._isSliding&&(this._isSliding=null)}_getWindow(){return this._document.defaultView||window}_bindGlobalEvents(me){const Xe=this._document,Ae=he(me),ht=Ae?"touchend":"mouseup";Xe.addEventListener(Ae?"touchmove":"mousemove",this._pointerMove,k),Xe.addEventListener(ht,this._pointerUp,k),Ae&&Xe.addEventListener("touchcancel",this._pointerUp,k);const Yt=this._getWindow();typeof Yt<"u"&&Yt&&Yt.addEventListener("blur",this._windowBlur)}_removeGlobalEvents(){const me=this._document;me.removeEventListener("mousemove",this._pointerMove,k),me.removeEventListener("mouseup",this._pointerUp,k),me.removeEventListener("touchmove",this._pointerMove,k),me.removeEventListener("touchend",this._pointerUp,k),me.removeEventListener("touchcancel",this._pointerUp,k);const Xe=this._getWindow();typeof Xe<"u"&&Xe&&Xe.removeEventListener("blur",this._windowBlur)}_increment(me){const Xe=this._clamp(this.value||0,this.min,this.max);this.value=this._clamp(Xe+this.step*me,this.min,this.max)}_updateValueFromPosition(me){if(!this._sliderDimensions)return;let ht=this._clamp(((this.vertical?me.y:me.x)-(this.vertical?this._sliderDimensions.top:this._sliderDimensions.left))/(this.vertical?this._sliderDimensions.height:this._sliderDimensions.width));if(this._shouldInvertMouseCoords()&&(ht=1-ht),0===ht)this.value=this.min;else if(1===ht)this.value=this.max;else{const Yt=this._calculateValue(ht),Dt=Math.round((Yt-this.min)/this.step)*this.step+this.min;this.value=this._clamp(Dt,this.min,this.max)}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.value),this.valueChange.emit(this.value),this.change.emit(this._createChangeEvent())}_emitInputEvent(){this.input.emit(this._createChangeEvent())}_updateTickIntervalPercent(){if(!this.tickInterval||!this._sliderDimensions)return;let me;if("auto"==this.tickInterval){let Xe=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width;me=Math.ceil(30/(Xe*this.step/(this.max-this.min)))*this.step/Xe}else me=this.tickInterval*this.step/(this.max-this.min);this._tickIntervalPercent=ie(me)?me:0}_createChangeEvent(me=this.value){let Xe=new le;return Xe.source=this,Xe.value=me,Xe}_calculatePercentage(me){const Xe=((me||0)-this.min)/(this.max-this.min);return ie(Xe)?Xe:0}_calculateValue(me){return this.min+me*(this.max-this.min)}_clamp(me,Xe=0,Ae=1){return Math.max(Xe,Math.min(me,Ae))}_getSliderDimensions(){return this._sliderWrapper?this._sliderWrapper.nativeElement.getBoundingClientRect():null}_focusHostElement(me){this._elementRef.nativeElement.focus(me)}_blurHostElement(){this._elementRef.nativeElement.blur()}writeValue(me){this.value=me}registerOnChange(me){this._controlValueAccessorChangeFn=me}registerOnTouched(me){this.onTouched=me}setDisabledState(me){this.disabled=me}}return Ke.\u0275fac=function(me){return new(me||Ke)(a.Y36(a.SBq),a.Y36(v.tE),a.Y36(a.sBO),a.Y36(b.Is,8),a.$8M("tabindex"),a.Y36(a.R0b),a.Y36(i.K0),a.Y36(a.QbO,8))},Ke.\u0275cmp=a.Xpm({type:Ke,selectors:[["mat-slider"]],viewQuery:function(me,Xe){if(1&me&&a.Gf(P,5),2&me){let Ae;a.iGM(Ae=a.CRH())&&(Xe._sliderWrapper=Ae.first)}},hostAttrs:["role","slider",1,"mat-slider","mat-focus-indicator"],hostVars:29,hostBindings:function(me,Xe){1&me&&a.NdJ("focus",function(){return Xe._onFocus()})("blur",function(){return Xe._onBlur()})("keydown",function(_t){return Xe._onKeydown(_t)})("keyup",function(){return Xe._onKeyup()})("mouseenter",function(){return Xe._onMouseenter()})("selectstart",function(_t){return _t.preventDefault()}),2&me&&(a.Ikx("tabIndex",Xe.tabIndex),a.uIk("aria-disabled",Xe.disabled)("aria-valuemax",Xe.max)("aria-valuemin",Xe.min)("aria-valuenow",Xe.value)("aria-valuetext",Xe.valueText??Xe.displayValue)("aria-orientation",Xe.vertical?"vertical":"horizontal"),a.ekj("mat-slider-disabled",Xe.disabled)("mat-slider-has-ticks",Xe.tickInterval)("mat-slider-horizontal",!Xe.vertical)("mat-slider-axis-inverted",Xe._shouldInvertAxis())("mat-slider-invert-mouse-coords",Xe._shouldInvertMouseCoords())("mat-slider-sliding",Xe._isSliding)("mat-slider-thumb-label-showing",Xe.thumbLabel)("mat-slider-vertical",Xe.vertical)("mat-slider-min-value",Xe._isMinValue())("mat-slider-hide-last-tick",Xe.disabled||Xe._isMinValue()&&Xe._getThumbGap()&&Xe._shouldInvertAxis())("_mat-animation-noopable","NoopAnimations"===Xe._animationMode))},inputs:{disabled:"disabled",color:"color",tabIndex:"tabIndex",invert:"invert",max:"max",min:"min",step:"step",thumbLabel:"thumbLabel",tickInterval:"tickInterval",value:"value",displayWith:"displayWith",valueText:"valueText",vertical:"vertical"},outputs:{change:"change",input:"input",valueChange:"valueChange"},exportAs:["matSlider"],features:[a._Bn([ue]),a.qOj],decls:13,vars:6,consts:[[1,"mat-slider-wrapper"],["sliderWrapper",""],[1,"mat-slider-track-wrapper"],[1,"mat-slider-track-background",3,"ngStyle"],[1,"mat-slider-track-fill",3,"ngStyle"],[1,"mat-slider-ticks-container",3,"ngStyle"],[1,"mat-slider-ticks",3,"ngStyle"],[1,"mat-slider-thumb-container",3,"ngStyle"],[1,"mat-slider-focus-ring"],[1,"mat-slider-thumb"],[1,"mat-slider-thumb-label"],[1,"mat-slider-thumb-label-text"]],template:function(me,Xe){1&me&&(a.TgZ(0,"div",0,1)(2,"div",2),a._UZ(3,"div",3)(4,"div",4),a.qZA(),a.TgZ(5,"div",5),a._UZ(6,"div",6),a.qZA(),a.TgZ(7,"div",7),a._UZ(8,"div",8)(9,"div",9),a.TgZ(10,"div",10)(11,"span",11),a._uU(12),a.qZA()()()()),2&me&&(a.xp6(3),a.Q6J("ngStyle",Xe._getTrackBackgroundStyles()),a.xp6(1),a.Q6J("ngStyle",Xe._getTrackFillStyles()),a.xp6(1),a.Q6J("ngStyle",Xe._getTicksContainerStyles()),a.xp6(1),a.Q6J("ngStyle",Xe._getTicksStyles()),a.xp6(1),a.Q6J("ngStyle",Xe._getThumbContainerStyles()),a.xp6(5),a.Oqu(Xe.displayValue))},dependencies:[i.PC],styles:['.mat-slider{display:inline-block;position:relative;box-sizing:border-box;padding:8px;outline:none;vertical-align:middle}.mat-slider:not(.mat-slider-disabled):active,.mat-slider.mat-slider-sliding:not(.mat-slider-disabled){cursor:grabbing}.mat-slider-wrapper{-webkit-print-color-adjust:exact;color-adjust:exact;position:absolute}.mat-slider-track-wrapper{position:absolute;top:0;left:0;overflow:hidden}.mat-slider-track-fill{position:absolute;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-track-background{position:absolute;transform-origin:100% 100%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-ticks-container{position:absolute;left:0;top:0;overflow:hidden}.mat-slider-ticks{-webkit-background-clip:content-box;background-clip:content-box;background-repeat:repeat;box-sizing:border-box;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-container{position:absolute;z-index:1;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-focus-ring{position:absolute;width:30px;height:30px;border-radius:50%;transform:scale(0);opacity:0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider.cdk-keyboard-focused .mat-slider-focus-ring,.mat-slider.cdk-program-focused .mat-slider-focus-ring{transform:scale(1);opacity:1}.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb-label,.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb{cursor:grab}.mat-slider-thumb{position:absolute;right:-10px;bottom:-10px;box-sizing:border-box;width:20px;height:20px;border:3px solid rgba(0,0,0,0);border-radius:50%;transform:scale(0.7);transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-label{display:none;align-items:center;justify-content:center;position:absolute;width:28px;height:28px;border-radius:50%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-radius 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.cdk-high-contrast-active .mat-slider-thumb-label{outline:solid 1px}.mat-slider-thumb-label-text{z-index:1;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-sliding .mat-slider-track-fill,.mat-slider-sliding .mat-slider-track-background,.mat-slider-sliding .mat-slider-thumb-container{transition-duration:0ms}.mat-slider-has-ticks .mat-slider-wrapper::after{content:"";position:absolute;border-width:0;border-style:solid;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after,.mat-slider-has-ticks:hover:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after{opacity:1}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-disabled) .mat-slider-ticks,.mat-slider-has-ticks:hover:not(.mat-slider-disabled) .mat-slider-ticks{opacity:1}.mat-slider-thumb-label-showing .mat-slider-focus-ring{display:none}.mat-slider-thumb-label-showing .mat-slider-thumb-label{display:flex}.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:100% 100%}.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:0 0}.mat-slider:not(.mat-slider-disabled).cdk-focused.mat-slider-thumb-label-showing .mat-slider-thumb{transform:scale(0)}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label{border-radius:50% 50% 0}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label-text{opacity:1}.mat-slider:not(.mat-slider-disabled).cdk-mouse-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-touch-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-program-focused .mat-slider-thumb{border-width:2px;transform:scale(1)}.mat-slider-disabled .mat-slider-focus-ring{transform:scale(0);opacity:0}.mat-slider-disabled .mat-slider-thumb{border-width:4px;transform:scale(0.5)}.mat-slider-disabled .mat-slider-thumb-label{display:none}.mat-slider-horizontal{height:48px;min-width:128px}.mat-slider-horizontal .mat-slider-wrapper{height:2px;top:23px;left:8px;right:8px}.mat-slider-horizontal .mat-slider-wrapper::after{height:2px;border-left-width:2px;right:0;top:0}.mat-slider-horizontal .mat-slider-track-wrapper{height:2px;width:100%}.mat-slider-horizontal .mat-slider-track-fill{height:2px;width:100%;transform:scaleX(0)}.mat-slider-horizontal .mat-slider-track-background{height:2px;width:100%;transform:scaleX(1)}.mat-slider-horizontal .mat-slider-ticks-container{height:2px;width:100%}.cdk-high-contrast-active .mat-slider-horizontal .mat-slider-ticks-container{height:0;outline:solid 2px;top:1px}.mat-slider-horizontal .mat-slider-ticks{height:2px;width:100%}.mat-slider-horizontal .mat-slider-thumb-container{width:100%;height:0;top:50%}.mat-slider-horizontal .mat-slider-focus-ring{top:-15px;right:-15px}.mat-slider-horizontal .mat-slider-thumb-label{right:-14px;top:-40px;transform:translateY(26px) scale(0.01) rotate(45deg)}.mat-slider-horizontal .mat-slider-thumb-label-text{transform:rotate(-45deg)}.mat-slider-horizontal.cdk-focused .mat-slider-thumb-label{transform:rotate(45deg)}.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label,.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label-text{transform:none}.mat-slider-vertical{width:48px;min-height:128px}.mat-slider-vertical .mat-slider-wrapper{width:2px;top:8px;bottom:8px;left:23px}.mat-slider-vertical .mat-slider-wrapper::after{width:2px;border-top-width:2px;bottom:0;left:0}.mat-slider-vertical .mat-slider-track-wrapper{height:100%;width:2px}.mat-slider-vertical .mat-slider-track-fill{height:100%;width:2px;transform:scaleY(0)}.mat-slider-vertical .mat-slider-track-background{height:100%;width:2px;transform:scaleY(1)}.mat-slider-vertical .mat-slider-ticks-container{width:2px;height:100%}.cdk-high-contrast-active .mat-slider-vertical .mat-slider-ticks-container{width:0;outline:solid 2px;left:1px}.mat-slider-vertical .mat-slider-focus-ring{bottom:-15px;left:-15px}.mat-slider-vertical .mat-slider-ticks{width:2px;height:100%}.mat-slider-vertical .mat-slider-thumb-container{height:100%;width:0;left:50%}.mat-slider-vertical .mat-slider-thumb{-webkit-backface-visibility:hidden;backface-visibility:hidden}.mat-slider-vertical .mat-slider-thumb-label{bottom:-14px;left:-40px;transform:translateX(26px) scale(0.01) rotate(-45deg)}.mat-slider-vertical .mat-slider-thumb-label-text{transform:rotate(45deg)}.mat-slider-vertical.cdk-focused .mat-slider-thumb-label{transform:rotate(-45deg)}[dir=rtl] .mat-slider-wrapper::after{left:0;right:auto}[dir=rtl] .mat-slider-horizontal .mat-slider-track-fill{transform-origin:100% 100%}[dir=rtl] .mat-slider-horizontal .mat-slider-track-background{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:100% 100%}.mat-slider._mat-animation-noopable .mat-slider-track-fill,.mat-slider._mat-animation-noopable .mat-slider-track-background,.mat-slider._mat-animation-noopable .mat-slider-ticks,.mat-slider._mat-animation-noopable .mat-slider-thumb-container,.mat-slider._mat-animation-noopable .mat-slider-focus-ring,.mat-slider._mat-animation-noopable .mat-slider-thumb,.mat-slider._mat-animation-noopable .mat-slider-thumb-label,.mat-slider._mat-animation-noopable .mat-slider-thumb-label-text,.mat-slider._mat-animation-noopable .mat-slider-has-ticks .mat-slider-wrapper::after{transition:none}'],encapsulation:2,changeDetection:0}),Ke})();function ie(Ke){return!isNaN(Ke)&&isFinite(Ke)}function he(Ke){return"t"===Ke.type[0]}function se(Ke,tt){let me;return me=he(Ke)?"number"==typeof tt?Me(Ke.touches,tt)||Me(Ke.changedTouches,tt):Ke.touches[0]||Ke.changedTouches[0]:Ke,me?{x:me.clientX,y:me.clientY}:void 0}function Me(Ke,tt){for(let me=0;me{class Ke{}return Ke.\u0275fac=function(me){return new(me||Ke)},Ke.\u0275mod=a.oAB({type:Ke}),Ke.\u0275inj=a.cJS({imports:[i.ez,c.BQ,c.BQ]}),Ke})()},7009:(Ct,ke,u)=>{"use strict";u.d(ke,{ZX:()=>Me,ux:()=>tt});var i=u(8184),a=u(4080),c=u(6895),v=u(4650),b=u(3238),h=u(4859),g=u(8929),w=u(3353),B=u(2986),O=u(7625),P=u(7340),k=u(2687),F=u(2289);function z(me,Xe){if(1&me){const Ae=v.EpF();v.TgZ(0,"div",2)(1,"button",3),v.NdJ("click",function(){v.CHM(Ae);const ht=v.oxw();return v.KtG(ht.action())}),v._uU(2),v.qZA()()}if(2&me){const Ae=v.oxw();v.xp6(2),v.Oqu(Ae.data.action)}}function ae(me,Xe){}const we=new v.OlP("MatSnackBarData");class ue{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const le=Math.pow(2,31)-1;class ge{constructor(Xe,Ae){this._overlayRef=Ae,this._afterDismissed=new g.xQ,this._afterOpened=new g.xQ,this._onAction=new g.xQ,this._dismissedByAction=!1,this.containerInstance=Xe,Xe._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(Xe){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(Xe,le))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let W=(()=>{class me{constructor(Ae,_t){this.snackBarRef=Ae,this.data=_t}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return me.\u0275fac=function(Ae){return new(Ae||me)(v.Y36(ge),v.Y36(we))},me.\u0275cmp=v.Xpm({type:me,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(Ae,_t){1&Ae&&(v.TgZ(0,"span",0),v._uU(1),v.qZA(),v.YNc(2,z,3,1,"div",1)),2&Ae&&(v.xp6(1),v.Oqu(_t.data.message),v.xp6(1),v.Q6J("ngIf",_t.hasAction))},dependencies:[c.O5,h.lW],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0}),me})();const ie={snackBarState:(0,P.X$)("state",[(0,P.SB)("void, hidden",(0,P.oB)({transform:"scale(0.8)",opacity:0})),(0,P.SB)("visible",(0,P.oB)({transform:"scale(1)",opacity:1})),(0,P.eR)("* => visible",(0,P.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,P.eR)("* => void, * => hidden",(0,P.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,P.oB)({opacity:0})))])};let he=(()=>{class me extends a.en{constructor(Ae,_t,ht,Yt,Dt){super(),this._ngZone=Ae,this._elementRef=_t,this._changeDetectorRef=ht,this._platform=Yt,this.snackBarConfig=Dt,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new g.xQ,this._onExit=new g.xQ,this._onEnter=new g.xQ,this._animationState="void",this.attachDomPortal=jt=>{this._assertNotAttached();const V=this._portalOutlet.attachDomPortal(jt);return this._afterPortalAttached(),V},this._live="assertive"!==Dt.politeness||Dt.announcementMessage?"off"===Dt.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(Ae){this._assertNotAttached();const _t=this._portalOutlet.attachComponentPortal(Ae);return this._afterPortalAttached(),_t}attachTemplatePortal(Ae){this._assertNotAttached();const _t=this._portalOutlet.attachTemplatePortal(Ae);return this._afterPortalAttached(),_t}onAnimationEnd(Ae){const{fromState:_t,toState:ht}=Ae;if(("void"===ht&&"void"!==_t||"hidden"===ht)&&this._completeExit(),"visible"===ht){const Yt=this._onEnter;this._ngZone.run(()=>{Yt.next(),Yt.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,B.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const Ae=this._elementRef.nativeElement,_t=this.snackBarConfig.panelClass;_t&&(Array.isArray(_t)?_t.forEach(ht=>Ae.classList.add(ht)):Ae.classList.add(_t))}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const Ae=this._elementRef.nativeElement.querySelector("[aria-hidden]"),_t=this._elementRef.nativeElement.querySelector("[aria-live]");if(Ae&&_t){let ht=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&Ae.contains(document.activeElement)&&(ht=document.activeElement),Ae.removeAttribute("aria-hidden"),_t.appendChild(Ae),ht?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return me.\u0275fac=function(Ae){return new(Ae||me)(v.Y36(v.R0b),v.Y36(v.SBq),v.Y36(v.sBO),v.Y36(w.t4),v.Y36(ue))},me.\u0275dir=v.lG2({type:me,viewQuery:function(Ae,_t){if(1&Ae&&v.Gf(a.Pl,7),2&Ae){let ht;v.iGM(ht=v.CRH())&&(_t._portalOutlet=ht.first)}},features:[v.qOj]}),me})(),se=(()=>{class me extends he{_afterPortalAttached(){super._afterPortalAttached(),"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")}}return me.\u0275fac=function(){let Xe;return function(_t){return(Xe||(Xe=v.n5z(me)))(_t||me)}}(),me.\u0275cmp=v.Xpm({type:me,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(Ae,_t){1&Ae&&v.WFA("@state.done",function(Yt){return _t.onAnimationEnd(Yt)}),2&Ae&&v.d8E("@state",_t._animationState)},features:[v.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(Ae,_t){1&Ae&&(v.TgZ(0,"div",0),v.YNc(1,ae,0,0,"ng-template",1),v.qZA(),v._UZ(2,"div")),2&Ae&&(v.xp6(2),v.uIk("aria-live",_t._live)("role",_t._role))},dependencies:[a.Pl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],encapsulation:2,data:{animation:[ie.snackBarState]}}),me})(),Me=(()=>{class me{}return me.\u0275fac=function(Ae){return new(Ae||me)},me.\u0275mod=v.oAB({type:me}),me.\u0275inj=v.cJS({imports:[i.U8,a.eL,c.ez,h.ot,b.BQ,b.BQ]}),me})();const Ge=new v.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function it(){return new ue}});let Ke=(()=>{class me{constructor(Ae,_t,ht,Yt,Dt,jt){this._overlay=Ae,this._live=_t,this._injector=ht,this._breakpointObserver=Yt,this._parentSnackBar=Dt,this._defaultConfig=jt,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const Ae=this._parentSnackBar;return Ae?Ae._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(Ae){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=Ae:this._snackBarRefAtThisLevel=Ae}openFromComponent(Ae,_t){return this._attach(Ae,_t)}openFromTemplate(Ae,_t){return this._attach(Ae,_t)}open(Ae,_t="",ht){const Yt={...this._defaultConfig,...ht};return Yt.data={message:Ae,action:_t},Yt.announcementMessage===Ae&&(Yt.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,Yt)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(Ae,_t){const Yt=v.zs3.create({parent:_t&&_t.viewContainerRef&&_t.viewContainerRef.injector||this._injector,providers:[{provide:ue,useValue:_t}]}),Dt=new a.C5(this.snackBarContainerComponent,_t.viewContainerRef,Yt),jt=Ae.attach(Dt);return jt.instance.snackBarConfig=_t,jt.instance}_attach(Ae,_t){const ht={...new ue,...this._defaultConfig,..._t},Yt=this._createOverlay(ht),Dt=this._attachSnackBarContainer(Yt,ht),jt=new ge(Dt,Yt);if(Ae instanceof v.Rgc){const V=new a.UE(Ae,null,{$implicit:ht.data,snackBarRef:jt});jt.instance=Dt.attachTemplatePortal(V)}else{const V=this._createInjector(ht,jt),Ee=new a.C5(Ae,void 0,V),oe=Dt.attachComponentPortal(Ee);jt.instance=oe.instance}return this._breakpointObserver.observe(F.u3.HandsetPortrait).pipe((0,O.R)(Yt.detachments())).subscribe(V=>{Yt.overlayElement.classList.toggle(this.handsetCssClass,V.matches)}),ht.announcementMessage&&Dt._onAnnounce.subscribe(()=>{this._live.announce(ht.announcementMessage,ht.politeness)}),this._animateSnackBar(jt,ht),this._openedSnackBarRef=jt,this._openedSnackBarRef}_animateSnackBar(Ae,_t){Ae.afterDismissed().subscribe(()=>{this._openedSnackBarRef==Ae&&(this._openedSnackBarRef=null),_t.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{Ae.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):Ae.containerInstance.enter(),_t.duration&&_t.duration>0&&Ae.afterOpened().subscribe(()=>Ae._dismissAfter(_t.duration))}_createOverlay(Ae){const _t=new i.X_;_t.direction=Ae.direction;let ht=this._overlay.position().global();const Yt="rtl"===Ae.direction,Dt="left"===Ae.horizontalPosition||"start"===Ae.horizontalPosition&&!Yt||"end"===Ae.horizontalPosition&&Yt,jt=!Dt&&"center"!==Ae.horizontalPosition;return Dt?ht.left("0"):jt?ht.right("0"):ht.centerHorizontally(),"top"===Ae.verticalPosition?ht.top("0"):ht.bottom("0"),_t.positionStrategy=ht,this._overlay.create(_t)}_createInjector(Ae,_t){return v.zs3.create({parent:Ae&&Ae.viewContainerRef&&Ae.viewContainerRef.injector||this._injector,providers:[{provide:ge,useValue:_t},{provide:we,useValue:Ae.data}]})}}return me.\u0275fac=function(Ae){return new(Ae||me)(v.LFG(i.aV),v.LFG(k.Kd),v.LFG(v.zs3),v.LFG(F.Yg),v.LFG(me,12),v.LFG(Ge))},me.\u0275prov=v.Yz7({token:me,factory:me.\u0275fac}),me})(),tt=(()=>{class me extends Ke{constructor(Ae,_t,ht,Yt,Dt,jt){super(Ae,_t,ht,Yt,Dt,jt),this.simpleSnackBarComponent=W,this.snackBarContainerComponent=se,this.handsetCssClass="mat-snack-bar-handset"}}return me.\u0275fac=function(Ae){return new(Ae||me)(v.LFG(i.aV),v.LFG(k.Kd),v.LFG(v.zs3),v.LFG(F.Yg),v.LFG(me,12),v.LFG(Ge))},me.\u0275prov=v.Yz7({token:me,factory:me.\u0275fac,providedIn:Me}),me})()},6308:(Ct,ke,u)=>{"use strict";u.d(ke,{JX:()=>tt,YE:()=>ge,nU:()=>Ke});var i=u(4650),a=u(2687),c=u(1281),v=u(9521),b=u(3238),h=u(8929),g=u(6787),w=u(7340),B=u(6895);const O=["mat-sort-header",""];function P(me,Xe){if(1&me){const Ae=i.EpF();i.TgZ(0,"div",3),i.NdJ("@arrowPosition.start",function(){i.CHM(Ae);const ht=i.oxw();return i.KtG(ht._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){i.CHM(Ae);const ht=i.oxw();return i.KtG(ht._disableViewStateAnimation=!1)}),i._UZ(1,"div",4),i.TgZ(2,"div",5),i._UZ(3,"div",6)(4,"div",7)(5,"div",8),i.qZA()()}if(2&me){const Ae=i.oxw();i.Q6J("@arrowOpacity",Ae._getArrowViewState())("@arrowPosition",Ae._getArrowViewState())("@allowChildren",Ae._getArrowDirectionState()),i.xp6(2),i.Q6J("@indicator",Ae._getArrowDirectionState()),i.xp6(1),i.Q6J("@leftPointer",Ae._getArrowDirectionState()),i.xp6(1),i.Q6J("@rightPointer",Ae._getArrowDirectionState())}}const k=["*"],ue=new i.OlP("MAT_SORT_DEFAULT_OPTIONS"),le=(0,b.dB)((0,b.Id)(class{}));let ge=(()=>{class me extends le{constructor(Ae){super(),this._defaultOptions=Ae,this.sortables=new Map,this._stateChanges=new h.xQ,this.start="asc",this._direction="",this.sortChange=new i.vpe}get direction(){return this._direction}set direction(Ae){this._direction=Ae}get disableClear(){return this._disableClear}set disableClear(Ae){this._disableClear=(0,c.Ig)(Ae)}register(Ae){this.sortables.set(Ae.id,Ae)}deregister(Ae){this.sortables.delete(Ae.id)}sort(Ae){this.active!=Ae.id?(this.active=Ae.id,this.direction=Ae.start?Ae.start:this.start):this.direction=this.getNextSortDirection(Ae),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(Ae){if(!Ae)return"";let ht=function W(me,Xe){let Ae=["asc","desc"];return"desc"==me&&Ae.reverse(),Xe||Ae.push(""),Ae}(Ae.start||this.start,Ae?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),Yt=ht.indexOf(this.direction)+1;return Yt>=ht.length&&(Yt=0),ht[Yt]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return me.\u0275fac=function(Ae){return new(Ae||me)(i.Y36(ue,8))},me.\u0275dir=i.lG2({type:me,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[i.qOj,i.TTD]}),me})();const ie=b.mZ.ENTERING+" "+b.yN.STANDARD_CURVE,he={indicator:(0,w.X$)("indicator",[(0,w.SB)("active-asc, asc",(0,w.oB)({transform:"translateY(0px)"})),(0,w.SB)("active-desc, desc",(0,w.oB)({transform:"translateY(10px)"})),(0,w.eR)("active-asc <=> active-desc",(0,w.jt)(ie))]),leftPointer:(0,w.X$)("leftPointer",[(0,w.SB)("active-asc, asc",(0,w.oB)({transform:"rotate(-45deg)"})),(0,w.SB)("active-desc, desc",(0,w.oB)({transform:"rotate(45deg)"})),(0,w.eR)("active-asc <=> active-desc",(0,w.jt)(ie))]),rightPointer:(0,w.X$)("rightPointer",[(0,w.SB)("active-asc, asc",(0,w.oB)({transform:"rotate(45deg)"})),(0,w.SB)("active-desc, desc",(0,w.oB)({transform:"rotate(-45deg)"})),(0,w.eR)("active-asc <=> active-desc",(0,w.jt)(ie))]),arrowOpacity:(0,w.X$)("arrowOpacity",[(0,w.SB)("desc-to-active, asc-to-active, active",(0,w.oB)({opacity:1})),(0,w.SB)("desc-to-hint, asc-to-hint, hint",(0,w.oB)({opacity:.54})),(0,w.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,w.oB)({opacity:0})),(0,w.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,w.jt)("0ms")),(0,w.eR)("* <=> *",(0,w.jt)(ie))]),arrowPosition:(0,w.X$)("arrowPosition",[(0,w.eR)("* => desc-to-hint, * => desc-to-active",(0,w.jt)(ie,(0,w.F4)([(0,w.oB)({transform:"translateY(-25%)"}),(0,w.oB)({transform:"translateY(0)"})]))),(0,w.eR)("* => hint-to-desc, * => active-to-desc",(0,w.jt)(ie,(0,w.F4)([(0,w.oB)({transform:"translateY(0)"}),(0,w.oB)({transform:"translateY(25%)"})]))),(0,w.eR)("* => asc-to-hint, * => asc-to-active",(0,w.jt)(ie,(0,w.F4)([(0,w.oB)({transform:"translateY(25%)"}),(0,w.oB)({transform:"translateY(0)"})]))),(0,w.eR)("* => hint-to-asc, * => active-to-asc",(0,w.jt)(ie,(0,w.F4)([(0,w.oB)({transform:"translateY(0)"}),(0,w.oB)({transform:"translateY(-25%)"})]))),(0,w.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,w.oB)({transform:"translateY(0)"})),(0,w.SB)("hint-to-desc, active-to-desc, desc",(0,w.oB)({transform:"translateY(-25%)"})),(0,w.SB)("hint-to-asc, active-to-asc, asc",(0,w.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,w.X$)("allowChildren",[(0,w.eR)("* <=> *",[(0,w.IO)("@*",(0,w.pV)(),{optional:!0})])])};let se=(()=>{class me{constructor(){this.changes=new h.xQ}}return me.\u0275fac=function(Ae){return new(Ae||me)},me.\u0275prov=i.Yz7({token:me,factory:me.\u0275fac,providedIn:"root"}),me})();const Ge={provide:se,deps:[[new i.FiY,new i.tp0,se]],useFactory:function Me(me){return me||new se}},it=(0,b.Id)(class{});let Ke=(()=>{class me extends it{constructor(Ae,_t,ht,Yt,Dt,jt,V,Ee){super(),this._intl=Ae,this._changeDetectorRef=_t,this._sort=ht,this._columnDef=Yt,this._focusMonitor=Dt,this._elementRef=jt,this._ariaDescriber=V,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",Ee?.arrowPosition&&(this.arrowPosition=Ee?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(Ae){this._updateSortActionDescription(Ae)}get disableClear(){return this._disableClear}set disableClear(Ae){this._disableClear=(0,c.Ig)(Ae)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(Ae=>{const _t=!!Ae;_t!==this._showIndicatorHint&&(this._setIndicatorHintVisible(_t),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(Ae){this._isDisabled()&&Ae||(this._showIndicatorHint=Ae,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(Ae){this._viewState=Ae||{},this._disableViewStateAnimation&&(this._viewState={toState:Ae.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(Ae){!this._isDisabled()&&(Ae.keyCode===v.L_||Ae.keyCode===v.K5)&&(Ae.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const Ae=this._viewState.fromState;return(Ae?`${Ae}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(Ae){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,Ae)),this._sortActionDescription=Ae}_handleStateChanges(){this._rerenderSubscription=(0,g.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return me.\u0275fac=function(Ae){return new(Ae||me)(i.Y36(se),i.Y36(i.sBO),i.Y36(ge,8),i.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),i.Y36(a.tE),i.Y36(i.SBq),i.Y36(a.$s,8),i.Y36(ue,8))},me.\u0275cmp=i.Xpm({type:me,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(Ae,_t){1&Ae&&i.NdJ("click",function(){return _t._handleClick()})("keydown",function(Yt){return _t._handleKeydown(Yt)})("mouseenter",function(){return _t._setIndicatorHintVisible(!0)})("mouseleave",function(){return _t._setIndicatorHintVisible(!1)}),2&Ae&&(i.uIk("aria-sort",_t._getAriaSortAttribute()),i.ekj("mat-sort-header-disabled",_t._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[i.qOj],attrs:O,ngContentSelectors:k,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(Ae,_t){1&Ae&&(i.F$t(),i.TgZ(0,"div",0)(1,"div",1),i.Hsn(2),i.qZA(),i.YNc(3,P,6,6,"div",2),i.qZA()),2&Ae&&(i.ekj("mat-sort-header-sorted",_t._isSorted())("mat-sort-header-position-before","before"===_t.arrowPosition),i.uIk("tabindex",_t._isDisabled()?null:0)("role",_t._isDisabled()?null:"button"),i.xp6(3),i.Q6J("ngIf",_t._renderArrow()))},dependencies:[B.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[he.indicator,he.leftPointer,he.rightPointer,he.arrowOpacity,he.arrowPosition,he.allowChildren]},changeDetection:0}),me})(),tt=(()=>{class me{}return me.\u0275fac=function(Ae){return new(Ae||me)},me.\u0275mod=i.oAB({type:me}),me.\u0275inj=i.cJS({providers:[Ge],imports:[B.ez,b.BQ]}),me})()},2143:(Ct,ke,u)=>{"use strict";u.d(ke,{ev:()=>qt,Dz:()=>st,w1:()=>an,ge:()=>ze,fO:()=>ct,XQ:()=>Rt,as:()=>Ut,Gk:()=>lt,nj:()=>bn,BZ:()=>bt,by:()=>qn,p0:()=>kn});var i=u(4650),a=u(445),c=u(1281),v=u(5017),b=u(3353),h=u(2744),g=u(6895),w=u(8929),B=u(5254),O=u(591),P=u(6498),F=u(1086),z=u(7625),ae=u(2986);const we=[[["caption"]],[["colgroup"],["col"]]],ue=["caption","colgroup, col"];function W(Be){return class extends Be{constructor(...fe){super(...fe),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(fe){const re=this._sticky;this._sticky=(0,c.Ig)(fe),this._hasStickyChanged=re!==this._sticky}hasStickyChanged(){const fe=this._hasStickyChanged;return this._hasStickyChanged=!1,fe}resetStickyChanged(){this._hasStickyChanged=!1}}}const ie=new i.OlP("CDK_TABLE");let se=(()=>{class Be{constructor(re){this.template=re}}return Be.\u0275fac=function(re){return new(re||Be)(i.Y36(i.Rgc))},Be.\u0275dir=i.lG2({type:Be,selectors:[["","cdkCellDef",""]]}),Be})(),Me=(()=>{class Be{constructor(re){this.template=re}}return Be.\u0275fac=function(re){return new(re||Be)(i.Y36(i.Rgc))},Be.\u0275dir=i.lG2({type:Be,selectors:[["","cdkHeaderCellDef",""]]}),Be})(),Ge=(()=>{class Be{constructor(re){this.template=re}}return Be.\u0275fac=function(re){return new(re||Be)(i.Y36(i.Rgc))},Be.\u0275dir=i.lG2({type:Be,selectors:[["","cdkFooterCellDef",""]]}),Be})();class it{}const Ke=W(it);let tt=(()=>{class Be extends Ke{constructor(re){super(),this._table=re,this._stickyEnd=!1}get name(){return this._name}set name(re){this._setNameInput(re)}get stickyEnd(){return this._stickyEnd}set stickyEnd(re){const Se=this._stickyEnd;this._stickyEnd=(0,c.Ig)(re),this._hasStickyChanged=Se!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(re){re&&(this._name=re,this.cssClassFriendlyName=re.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return Be.\u0275fac=function(re){return new(re||Be)(i.Y36(ie,8))},Be.\u0275dir=i.lG2({type:Be,selectors:[["","cdkColumnDef",""]],contentQueries:function(re,Se,mt){if(1&re&&(i.Suo(mt,se,5),i.Suo(mt,Me,5),i.Suo(mt,Ge,5)),2&re){let Gt;i.iGM(Gt=i.CRH())&&(Se.cell=Gt.first),i.iGM(Gt=i.CRH())&&(Se.headerCell=Gt.first),i.iGM(Gt=i.CRH())&&(Se.footerCell=Gt.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[i._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Be}]),i.qOj]}),Be})();class me{constructor(fe,re){re.nativeElement.classList.add(...fe._columnCssClassName)}}let Xe=(()=>{class Be extends me{constructor(re,Se){super(re,Se)}}return Be.\u0275fac=function(re){return new(re||Be)(i.Y36(tt),i.Y36(i.SBq))},Be.\u0275dir=i.lG2({type:Be,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[i.qOj]}),Be})(),_t=(()=>{class Be extends me{constructor(re,Se){if(super(re,Se),1===re._table?._elementRef.nativeElement.nodeType){const mt=re._table._elementRef.nativeElement.getAttribute("role");Se.nativeElement.setAttribute("role","grid"===mt||"treegrid"===mt?"gridcell":"cell")}}}return Be.\u0275fac=function(re){return new(re||Be)(i.Y36(tt),i.Y36(i.SBq))},Be.\u0275dir=i.lG2({type:Be,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[i.qOj]}),Be})();class ht{constructor(){this.tasks=[],this.endTasks=[]}}const Yt=new i.OlP("_COALESCED_STYLE_SCHEDULER");let Dt=(()=>{class Be{constructor(re){this._ngZone=re,this._currentSchedule=null,this._destroyed=new w.xQ}schedule(re){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(re)}scheduleEnd(re){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(re)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new ht,this._getScheduleObservable().pipe((0,z.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const re=this._currentSchedule;this._currentSchedule=new ht;for(const Se of re.tasks)Se();for(const Se of re.endTasks)Se()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,B.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,ae.q)(1))}}return Be.\u0275fac=function(re){return new(re||Be)(i.LFG(i.R0b))},Be.\u0275prov=i.Yz7({token:Be,factory:Be.\u0275fac}),Be})(),V=(()=>{class Be{constructor(re,Se){this.template=re,this._differs=Se}ngOnChanges(re){if(!this._columnsDiffer){const Se=re.columns&&re.columns.currentValue||[];this._columnsDiffer=this._differs.find(Se).create(),this._columnsDiffer.diff(Se)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(re){return this instanceof _e?re.headerCell.template:this instanceof be?re.footerCell.template:re.cell.template}}return Be.\u0275fac=function(re){return new(re||Be)(i.Y36(i.Rgc),i.Y36(i.ZZ4))},Be.\u0275dir=i.lG2({type:Be,features:[i.TTD]}),Be})();class Ee extends V{}const oe=W(Ee);let _e=(()=>{class Be extends oe{constructor(re,Se,mt){super(re,Se),this._table=mt}ngOnChanges(re){super.ngOnChanges(re)}}return Be.\u0275fac=function(re){return new(re||Be)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(ie,8))},Be.\u0275dir=i.lG2({type:Be,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),Be})();class Oe extends V{}const at=W(Oe);let be=(()=>{class Be extends at{constructor(re,Se,mt){super(re,Se),this._table=mt}ngOnChanges(re){super.ngOnChanges(re)}}return Be.\u0275fac=function(re){return new(re||Be)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(ie,8))},Be.\u0275dir=i.lG2({type:Be,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),Be})(),et=(()=>{class Be extends V{constructor(re,Se,mt){super(re,Se),this._table=mt}}return Be.\u0275fac=function(re){return new(re||Be)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(ie,8))},Be.\u0275dir=i.lG2({type:Be,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[i.qOj]}),Be})(),Mt=(()=>{class Be{constructor(re){this._viewContainer=re,Be.mostRecentCellOutlet=this}ngOnDestroy(){Be.mostRecentCellOutlet===this&&(Be.mostRecentCellOutlet=null)}}return Be.mostRecentCellOutlet=null,Be.\u0275fac=function(re){return new(re||Be)(i.Y36(i.s_b))},Be.\u0275dir=i.lG2({type:Be,selectors:[["","cdkCellOutlet",""]]}),Be})(),gt=(()=>{class Be{}return Be.\u0275fac=function(re){return new(re||Be)},Be.\u0275cmp=i.Xpm({type:Be,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(re,Se){1&re&&i.GkF(0,0)},dependencies:[Mt],encapsulation:2}),Be})(),wt=(()=>{class Be{}return Be.\u0275fac=function(re){return new(re||Be)},Be.\u0275cmp=i.Xpm({type:Be,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(re,Se){1&re&&i.GkF(0,0)},dependencies:[Mt],encapsulation:2}),Be})(),nt=(()=>{class Be{constructor(re){this.templateRef=re,this._contentClassName="cdk-no-data-row"}}return Be.\u0275fac=function(re){return new(re||Be)(i.Y36(i.Rgc))},Be.\u0275dir=i.lG2({type:Be,selectors:[["ng-template","cdkNoDataRow",""]]}),Be})();const Q=["top","bottom","left","right"];class Le{constructor(fe,re,Se,mt,Gt=!0,rn=!0,Tn){this._isNativeHtmlTable=fe,this._stickCellCss=re,this.direction=Se,this._coalescedStyleScheduler=mt,this._isBrowser=Gt,this._needsPositionStickyOnElement=rn,this._positionListener=Tn,this._cachedCellWidths=[],this._borderCellCss={top:`${re}-border-elem-top`,bottom:`${re}-border-elem-bottom`,left:`${re}-border-elem-left`,right:`${re}-border-elem-right`}}clearStickyPositioning(fe,re){const Se=[];for(const mt of fe)if(mt.nodeType===mt.ELEMENT_NODE){Se.push(mt);for(let Gt=0;Gt{for(const mt of Se)this._removeStickyStyle(mt,re)})}updateStickyColumns(fe,re,Se,mt=!0){if(!fe.length||!this._isBrowser||!re.some(jn=>jn)&&!Se.some(jn=>jn))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const Gt=fe[0],rn=Gt.children.length,Tn=this._getCellWidths(Gt,mt),En=this._getStickyStartColumnPositions(Tn,re),ci=this._getStickyEndColumnPositions(Tn,Se),An=re.lastIndexOf(!0),ni=Se.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const jn="rtl"===this.direction,ui=jn?"right":"left",zn=jn?"left":"right";for(const si of fe)for(let Ln=0;Lnre[Ln]?si:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===ni?[]:Tn.slice(ni).map((si,Ln)=>Se[Ln+ni]?si:null).reverse()}))})}stickRows(fe,re,Se){if(!this._isBrowser)return;const mt="bottom"===Se?fe.slice().reverse():fe,Gt="bottom"===Se?re.slice().reverse():re,rn=[],Tn=[],En=[];for(let An=0,ni=0;An{for(let An=0;An{re.some(mt=>!mt)?this._removeStickyStyle(Se,["bottom"]):this._addStickyStyle(Se,"bottom",0,!1)})}_removeStickyStyle(fe,re){for(const mt of re)fe.style[mt]="",fe.classList.remove(this._borderCellCss[mt]);Q.some(mt=>-1===re.indexOf(mt)&&fe.style[mt])?fe.style.zIndex=this._getCalculatedZIndex(fe):(fe.style.zIndex="",this._needsPositionStickyOnElement&&(fe.style.position=""),fe.classList.remove(this._stickCellCss))}_addStickyStyle(fe,re,Se,mt){fe.classList.add(this._stickCellCss),mt&&fe.classList.add(this._borderCellCss[re]),fe.style[re]=`${Se}px`,fe.style.zIndex=this._getCalculatedZIndex(fe),this._needsPositionStickyOnElement&&(fe.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(fe){const re={top:100,bottom:10,left:1,right:1};let Se=0;for(const mt of Q)fe.style[mt]&&(Se+=re[mt]);return Se?`${Se}`:""}_getCellWidths(fe,re=!0){if(!re&&this._cachedCellWidths.length)return this._cachedCellWidths;const Se=[],mt=fe.children;for(let Gt=0;Gt0;Gt--)re[Gt]&&(Se[Gt]=mt,mt+=fe[Gt]);return Se}}const de=new i.OlP("CDK_SPL");let H=(()=>{class Be{constructor(re,Se){this.viewContainer=re,this.elementRef=Se}}return Be.\u0275fac=function(re){return new(re||Be)(i.Y36(i.s_b),i.Y36(i.SBq))},Be.\u0275dir=i.lG2({type:Be,selectors:[["","rowOutlet",""]]}),Be})(),f=(()=>{class Be{constructor(re,Se){this.viewContainer=re,this.elementRef=Se}}return Be.\u0275fac=function(re){return new(re||Be)(i.Y36(i.s_b),i.Y36(i.SBq))},Be.\u0275dir=i.lG2({type:Be,selectors:[["","headerRowOutlet",""]]}),Be})(),_=(()=>{class Be{constructor(re,Se){this.viewContainer=re,this.elementRef=Se}}return Be.\u0275fac=function(re){return new(re||Be)(i.Y36(i.s_b),i.Y36(i.SBq))},Be.\u0275dir=i.lG2({type:Be,selectors:[["","footerRowOutlet",""]]}),Be})(),T=(()=>{class Be{constructor(re,Se){this.viewContainer=re,this.elementRef=Se}}return Be.\u0275fac=function(re){return new(re||Be)(i.Y36(i.s_b),i.Y36(i.SBq))},Be.\u0275dir=i.lG2({type:Be,selectors:[["","noDataRowOutlet",""]]}),Be})(),$e=(()=>{class Be{constructor(re,Se,mt,Gt,rn,Tn,En,ci,An,ni,jn,ui){this._differs=re,this._changeDetectorRef=Se,this._elementRef=mt,this._dir=rn,this._platform=En,this._viewRepeater=ci,this._coalescedStyleScheduler=An,this._viewportRuler=ni,this._stickyPositioningListener=jn,this._ngZone=ui,this._onDestroy=new w.xQ,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new i.vpe,this.viewChange=new O.X({start:0,end:Number.MAX_VALUE}),Gt||this._elementRef.nativeElement.setAttribute("role","table"),this._document=Tn,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(re){this._trackByFn=re}get dataSource(){return this._dataSource}set dataSource(re){this._dataSource!==re&&this._switchDataSource(re)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(re){this._multiTemplateDataRows=(0,c.Ig)(re),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(re){this._fixedLayout=(0,c.Ig)(re),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((re,Se)=>this.trackBy?this.trackBy(Se.dataIndex,Se.data):Se),this._viewportRuler.change().pipe((0,z.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const Se=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||Se,this._forceRecalculateCellWidths=Se,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(re=>{re.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,v.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const re=this._dataDiffer.diff(this._renderRows);if(!re)return this._updateNoDataRow(),void this.contentChanged.next();const Se=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(re,Se,(mt,Gt,rn)=>this._getEmbeddedViewArgs(mt.item,rn),mt=>mt.item.data,mt=>{1===mt.operation&&mt.context&&this._renderCellTemplateForItem(mt.record.item.rowDef,mt.context)}),this._updateRowIndexContext(),re.forEachIdentityChange(mt=>{Se.get(mt.currentIndex).context.$implicit=mt.item.data}),this._updateNoDataRow(),this._ngZone&&i.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,ae.q)(1),(0,z.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(re){this._customColumnDefs.add(re)}removeColumnDef(re){this._customColumnDefs.delete(re)}addRowDef(re){this._customRowDefs.add(re)}removeRowDef(re){this._customRowDefs.delete(re)}addHeaderRowDef(re){this._customHeaderRowDefs.add(re),this._headerRowDefChanged=!0}removeHeaderRowDef(re){this._customHeaderRowDefs.delete(re),this._headerRowDefChanged=!0}addFooterRowDef(re){this._customFooterRowDefs.add(re),this._footerRowDefChanged=!0}removeFooterRowDef(re){this._customFooterRowDefs.delete(re),this._footerRowDefChanged=!0}setNoDataRow(re){this._customNoDataRow=re}updateStickyHeaderRowStyles(){const re=this._getRenderedRows(this._headerRowOutlet),mt=this._elementRef.nativeElement.querySelector("thead");mt&&(mt.style.display=re.length?"":"none");const Gt=this._headerRowDefs.map(rn=>rn.sticky);this._stickyStyler.clearStickyPositioning(re,["top"]),this._stickyStyler.stickRows(re,Gt,"top"),this._headerRowDefs.forEach(rn=>rn.resetStickyChanged())}updateStickyFooterRowStyles(){const re=this._getRenderedRows(this._footerRowOutlet),mt=this._elementRef.nativeElement.querySelector("tfoot");mt&&(mt.style.display=re.length?"":"none");const Gt=this._footerRowDefs.map(rn=>rn.sticky);this._stickyStyler.clearStickyPositioning(re,["bottom"]),this._stickyStyler.stickRows(re,Gt,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,Gt),this._footerRowDefs.forEach(rn=>rn.resetStickyChanged())}updateStickyColumnStyles(){const re=this._getRenderedRows(this._headerRowOutlet),Se=this._getRenderedRows(this._rowOutlet),mt=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...re,...Se,...mt],["left","right"]),this._stickyColumnStylesNeedReset=!1),re.forEach((Gt,rn)=>{this._addStickyColumnStyles([Gt],this._headerRowDefs[rn])}),this._rowDefs.forEach(Gt=>{const rn=[];for(let Tn=0;Tn{this._addStickyColumnStyles([Gt],this._footerRowDefs[rn])}),Array.from(this._columnDefsByName.values()).forEach(Gt=>Gt.resetStickyChanged())}_getAllRenderRows(){const re=[],Se=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let mt=0;mt{const Tn=mt&&mt.has(rn)?mt.get(rn):[];if(Tn.length){const En=Tn.shift();return En.dataIndex=Se,En}return{data:re,rowDef:rn,dataIndex:Se}})}_cacheColumnDefs(){this._columnDefsByName.clear(),St(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Se=>{this._columnDefsByName.has(Se.name),this._columnDefsByName.set(Se.name,Se)})}_cacheRowDefs(){this._headerRowDefs=St(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=St(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=St(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const re=this._rowDefs.filter(Se=>!Se.when);this._defaultRowDef=re[0]}_renderUpdatedColumns(){const re=(rn,Tn)=>rn||!!Tn.getColumnsDiff(),Se=this._rowDefs.reduce(re,!1);Se&&this._forceRenderDataRows();const mt=this._headerRowDefs.reduce(re,!1);mt&&this._forceRenderHeaderRows();const Gt=this._footerRowDefs.reduce(re,!1);return Gt&&this._forceRenderFooterRows(),Se||mt||Gt}_switchDataSource(re){this._data=[],(0,v.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),re||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=re}_observeRenderChanges(){if(!this.dataSource)return;let re;(0,v.Z9)(this.dataSource)?re=this.dataSource.connect(this):function k(Be){return!!Be&&(Be instanceof P.y||"function"==typeof Be.lift&&"function"==typeof Be.subscribe)}(this.dataSource)?re=this.dataSource:Array.isArray(this.dataSource)&&(re=(0,F.of)(this.dataSource)),this._renderChangeSubscription=re.pipe((0,z.R)(this._onDestroy)).subscribe(Se=>{this._data=Se||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((re,Se)=>this._renderRow(this._headerRowOutlet,re,Se)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((re,Se)=>this._renderRow(this._footerRowOutlet,re,Se)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(re,Se){const mt=Array.from(Se.columns||[]).map(Tn=>this._columnDefsByName.get(Tn)),Gt=mt.map(Tn=>Tn.sticky),rn=mt.map(Tn=>Tn.stickyEnd);this._stickyStyler.updateStickyColumns(re,Gt,rn,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(re){const Se=[];for(let mt=0;mt!Gt.when||Gt.when(Se,re));else{let Gt=this._rowDefs.find(rn=>rn.when&&rn.when(Se,re))||this._defaultRowDef;Gt&&mt.push(Gt)}return mt}_getEmbeddedViewArgs(re,Se){return{templateRef:re.rowDef.template,context:{$implicit:re.data},index:Se}}_renderRow(re,Se,mt,Gt={}){const rn=re.viewContainer.createEmbeddedView(Se.template,Gt,mt);return this._renderCellTemplateForItem(Se,Gt),rn}_renderCellTemplateForItem(re,Se){for(let mt of this._getCellTemplates(re))Mt.mostRecentCellOutlet&&Mt.mostRecentCellOutlet._viewContainer.createEmbeddedView(mt,Se);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const re=this._rowOutlet.viewContainer;for(let Se=0,mt=re.length;Se{const mt=this._columnDefsByName.get(Se);return re.extractCellTemplate(mt)}):[]}_applyNativeTableSections(){const re=this._document.createDocumentFragment(),Se=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const mt of Se){const Gt=this._document.createElement(mt.tag);Gt.setAttribute("role","rowgroup");for(const rn of mt.outlets)Gt.appendChild(rn.elementRef.nativeElement);re.appendChild(Gt)}this._elementRef.nativeElement.appendChild(re)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const re=(Se,mt)=>Se||mt.hasStickyChanged();this._headerRowDefs.reduce(re,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(re,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(re,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Le(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,F.of)()).pipe((0,z.R)(this._onDestroy)).subscribe(Se=>{this._stickyStyler.direction=Se,this.updateStickyColumnStyles()})}_getOwnDefs(re){return re.filter(Se=>!Se._table||Se._table===this)}_updateNoDataRow(){const re=this._customNoDataRow||this._noDataRow;if(!re)return;const Se=0===this._rowOutlet.viewContainer.length;if(Se===this._isShowingNoDataRow)return;const mt=this._noDataRowOutlet.viewContainer;if(Se){const Gt=mt.createEmbeddedView(re.templateRef),rn=Gt.rootNodes[0];1===Gt.rootNodes.length&&rn?.nodeType===this._document.ELEMENT_NODE&&(rn.setAttribute("role","row"),rn.classList.add(re._contentClassName))}else mt.clear();this._isShowingNoDataRow=Se}}return Be.\u0275fac=function(re){return new(re||Be)(i.Y36(i.ZZ4),i.Y36(i.sBO),i.Y36(i.SBq),i.$8M("role"),i.Y36(a.Is,8),i.Y36(g.K0),i.Y36(b.t4),i.Y36(v.k),i.Y36(Yt),i.Y36(h.rL),i.Y36(de,12),i.Y36(i.R0b,8))},Be.\u0275cmp=i.Xpm({type:Be,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(re,Se,mt){if(1&re&&(i.Suo(mt,nt,5),i.Suo(mt,tt,5),i.Suo(mt,et,5),i.Suo(mt,_e,5),i.Suo(mt,be,5)),2&re){let Gt;i.iGM(Gt=i.CRH())&&(Se._noDataRow=Gt.first),i.iGM(Gt=i.CRH())&&(Se._contentColumnDefs=Gt),i.iGM(Gt=i.CRH())&&(Se._contentRowDefs=Gt),i.iGM(Gt=i.CRH())&&(Se._contentHeaderRowDefs=Gt),i.iGM(Gt=i.CRH())&&(Se._contentFooterRowDefs=Gt)}},viewQuery:function(re,Se){if(1&re&&(i.Gf(H,7),i.Gf(f,7),i.Gf(_,7),i.Gf(T,7)),2&re){let mt;i.iGM(mt=i.CRH())&&(Se._rowOutlet=mt.first),i.iGM(mt=i.CRH())&&(Se._headerRowOutlet=mt.first),i.iGM(mt=i.CRH())&&(Se._footerRowOutlet=mt.first),i.iGM(mt=i.CRH())&&(Se._noDataRowOutlet=mt.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(re,Se){2&re&&i.ekj("cdk-table-fixed-layout",Se.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[i._Bn([{provide:ie,useExisting:Be},{provide:v.k,useClass:v.yy},{provide:Yt,useClass:Dt},{provide:de,useValue:null}])],ngContentSelectors:ue,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(re,Se){1&re&&(i.F$t(we),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[H,f,_,T],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),Be})();function St(Be,fe){return Be.concat(Array.from(fe))}let ye=(()=>{class Be{}return Be.\u0275fac=function(re){return new(re||Be)},Be.\u0275mod=i.oAB({type:Be}),Be.\u0275inj=i.cJS({imports:[h.Cl]}),Be})();var qe=u(3238),xe=u(6787),Fe=u(3426),ot=u(4850);const ce=[[["caption"]],[["colgroup"],["col"]]],je=["caption","colgroup, col"];let bt=(()=>{class Be extends $e{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return Be.\u0275fac=function(){let fe;return function(Se){return(fe||(fe=i.n5z(Be)))(Se||Be)}}(),Be.\u0275cmp=i.Xpm({type:Be,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(re,Se){2&re&&i.ekj("mat-table-fixed-layout",Se.fixedLayout)},exportAs:["matTable"],features:[i._Bn([{provide:v.k,useClass:v.yy},{provide:$e,useExisting:Be},{provide:ie,useExisting:Be},{provide:Yt,useClass:Dt},{provide:de,useValue:null}]),i.qOj],ngContentSelectors:je,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(re,Se){1&re&&(i.F$t(ce),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[H,f,_,T],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),Be})(),st=(()=>{class Be extends se{}return Be.\u0275fac=function(){let fe;return function(Se){return(fe||(fe=i.n5z(Be)))(Se||Be)}}(),Be.\u0275dir=i.lG2({type:Be,selectors:[["","matCellDef",""]],features:[i._Bn([{provide:se,useExisting:Be}]),i.qOj]}),Be})(),ct=(()=>{class Be extends Me{}return Be.\u0275fac=function(){let fe;return function(Se){return(fe||(fe=i.n5z(Be)))(Se||Be)}}(),Be.\u0275dir=i.lG2({type:Be,selectors:[["","matHeaderCellDef",""]],features:[i._Bn([{provide:Me,useExisting:Be}]),i.qOj]}),Be})(),an=(()=>{class Be extends tt{get name(){return this._name}set name(re){this._setNameInput(re)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return Be.\u0275fac=function(){let fe;return function(Se){return(fe||(fe=i.n5z(Be)))(Se||Be)}}(),Be.\u0275dir=i.lG2({type:Be,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[i._Bn([{provide:tt,useExisting:Be},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Be}]),i.qOj]}),Be})(),ze=(()=>{class Be extends Xe{}return Be.\u0275fac=function(){let fe;return function(Se){return(fe||(fe=i.n5z(Be)))(Se||Be)}}(),Be.\u0275dir=i.lG2({type:Be,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[i.qOj]}),Be})(),qt=(()=>{class Be extends _t{}return Be.\u0275fac=function(){let fe;return function(Se){return(fe||(fe=i.n5z(Be)))(Se||Be)}}(),Be.\u0275dir=i.lG2({type:Be,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[i.qOj]}),Be})(),Ut=(()=>{class Be extends _e{}return Be.\u0275fac=function(){let fe;return function(Se){return(fe||(fe=i.n5z(Be)))(Se||Be)}}(),Be.\u0275dir=i.lG2({type:Be,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[i._Bn([{provide:_e,useExisting:Be}]),i.qOj]}),Be})(),bn=(()=>{class Be extends et{}return Be.\u0275fac=function(){let fe;return function(Se){return(fe||(fe=i.n5z(Be)))(Se||Be)}}(),Be.\u0275dir=i.lG2({type:Be,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[i._Bn([{provide:et,useExisting:Be}]),i.qOj]}),Be})(),Rt=(()=>{class Be extends gt{}return Be.\u0275fac=function(){let fe;return function(Se){return(fe||(fe=i.n5z(Be)))(Se||Be)}}(),Be.\u0275cmp=i.Xpm({type:Be,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[i._Bn([{provide:gt,useExisting:Be}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(re,Se){1&re&&i.GkF(0,0)},dependencies:[Mt],encapsulation:2}),Be})(),lt=(()=>{class Be extends wt{}return Be.\u0275fac=function(){let fe;return function(Se){return(fe||(fe=i.n5z(Be)))(Se||Be)}}(),Be.\u0275cmp=i.Xpm({type:Be,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[i._Bn([{provide:wt,useExisting:Be}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(re,Se){1&re&&i.GkF(0,0)},dependencies:[Mt],encapsulation:2}),Be})(),kn=(()=>{class Be{}return Be.\u0275fac=function(re){return new(re||Be)},Be.\u0275mod=i.oAB({type:Be}),Be.\u0275inj=i.cJS({imports:[ye,qe.BQ,qe.BQ]}),Be})();class On extends v.o2{constructor(fe=[]){super(),this._renderData=new O.X([]),this._filter=new O.X(""),this._internalPageChanges=new w.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(re,Se)=>{const mt=re[Se];if((0,c.t6)(mt)){const Gt=Number(mt);return Gt<9007199254740991?Gt:mt}return mt},this.sortData=(re,Se)=>{const mt=Se.active,Gt=Se.direction;return mt&&""!=Gt?re.sort((rn,Tn)=>{let En=this.sortingDataAccessor(rn,mt),ci=this.sortingDataAccessor(Tn,mt);const An=typeof En,ni=typeof ci;An!==ni&&("number"===An&&(En+=""),"number"===ni&&(ci+=""));let jn=0;return null!=En&&null!=ci?En>ci?jn=1:En{const mt=Object.keys(re).reduce((rn,Tn)=>rn+re[Tn]+"\u25ec","").toLowerCase(),Gt=Se.trim().toLowerCase();return-1!=mt.indexOf(Gt)},this._data=new O.X(fe),this._updateChangeSubscription()}get data(){return this._data.value}set data(fe){fe=Array.isArray(fe)?fe:[],this._data.next(fe),this._renderChangesSubscription||this._filterData(fe)}get filter(){return this._filter.value}set filter(fe){this._filter.next(fe),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(fe){this._sort=fe,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(fe){this._paginator=fe,this._updateChangeSubscription()}_updateChangeSubscription(){const fe=this._sort?(0,xe.T)(this._sort.sortChange,this._sort.initialized):(0,F.of)(null),re=this._paginator?(0,xe.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,F.of)(null),mt=(0,Fe.aj)([this._data,this._filter]).pipe((0,ot.U)(([Tn])=>this._filterData(Tn))),Gt=(0,Fe.aj)([mt,fe]).pipe((0,ot.U)(([Tn])=>this._orderData(Tn))),rn=(0,Fe.aj)([Gt,re]).pipe((0,ot.U)(([Tn])=>this._pageData(Tn)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=rn.subscribe(Tn=>this._renderData.next(Tn))}_filterData(fe){return this.filteredData=null==this.filter||""===this.filter?fe:fe.filter(re=>this.filterPredicate(re,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(fe){return this.sort?this.sortData(fe.slice(),this.sort):fe}_pageData(fe){if(!this.paginator)return fe;const re=this.paginator.pageIndex*this.paginator.pageSize;return fe.slice(re,re+this.paginator.pageSize)}_updatePaginator(fe){Promise.resolve().then(()=>{const re=this.paginator;if(re&&(re.length=fe,re.pageIndex>0)){const Se=Math.ceil(re.length/re.pageSize)-1||0,mt=Math.min(re.pageIndex,Se);mt!==re.pageIndex&&(re.pageIndex=mt,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}class qn extends On{}},3848:(Ct,ke,u)=>{"use strict";u.d(ke,{BU:()=>Fe,Nh:()=>Ye,Nj:()=>je});var i=u(2687),a=u(9643),c=u(4080),v=u(6895),b=u(4650),h=u(3238),g=u(2986),w=u(7625),B=u(1059),O=u(7545),P=u(1307),k=u(8929),F=u(3753),z=u(1086),ae=u(6787),we=u(8896),ue=u(6498),le=u(7739),ge=u(445),ie=(u(7340),u(1281)),he=u(2744),se=u(3353),Me=u(9521);const it=["*"],Xe=["tabListContainer"],Ae=["tabList"],_t=["tabListInner"],ht=["nextPaginator"],Yt=["previousPaginator"],at=["mat-tab-nav-bar",""],be=new b.OlP("MatInkBarPositioner",{providedIn:"root",factory:function et(){return bt=>({left:bt?(bt.offsetLeft||0)+"px":"0",width:bt?(bt.offsetWidth||0)+"px":"0"})}});let Mt=(()=>{class Pe{constructor(st,ct,Ht,an){this._elementRef=st,this._ngZone=ct,this._inkBarPositioner=Ht,this._animationMode=an}alignToElement(st){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(()=>{const ct=this._inkBarPositioner(st),Ht=this._elementRef.nativeElement;Ht.style.left=ct.left,Ht.style.width=ct.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return Pe.\u0275fac=function(st){return new(st||Pe)(b.Y36(b.SBq),b.Y36(b.R0b),b.Y36(be),b.Y36(b.QbO,8))},Pe.\u0275dir=b.lG2({type:Pe,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(st,ct){2&st&&b.ekj("_mat-animation-noopable","NoopAnimations"===ct._animationMode)}}),Pe})();const X=(0,se.i$)({passive:!0});let T=(()=>{class Pe{constructor(st,ct,Ht,an,ze,rt,qt){this._elementRef=st,this._changeDetectorRef=ct,this._viewportRuler=Ht,this._dir=an,this._ngZone=ze,this._platform=rt,this._animationMode=qt,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new k.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new k.xQ,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new b.vpe,this.indexFocused=new b.vpe,ze.runOutsideAngular(()=>{(0,F.R)(st.nativeElement,"mouseleave").pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(st){this._disablePagination=(0,ie.Ig)(st)}get selectedIndex(){return this._selectedIndex}set selectedIndex(st){st=(0,ie.su)(st),this._selectedIndex!=st&&(this._selectedIndexChanged=!0,this._selectedIndex=st,this._keyManager&&this._keyManager.updateActiveItem(st))}ngAfterViewInit(){(0,F.R)(this._previousPaginator.nativeElement,"touchstart",X).pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,F.R)(this._nextPaginator.nativeElement,"touchstart",X).pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const st=this._dir?this._dir.change:(0,z.of)("ltr"),ct=this._viewportRuler.change(150),Ht=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new i.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(Ht),(0,ae.T)(st,ct,this._items.changes,this._itemsResized()).pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),Ht()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,w.R)(this._destroyed)).subscribe(an=>{this.indexFocused.emit(an),this._setTabFocus(an)})}_itemsResized(){return"function"!=typeof ResizeObserver?we.E:this._items.changes.pipe((0,B.O)(this._items),(0,O.w)(st=>new ue.y(ct=>this._ngZone.runOutsideAngular(()=>{const Ht=new ResizeObserver(()=>{ct.next()});return st.forEach(an=>{Ht.observe(an.elementRef.nativeElement)}),()=>{Ht.disconnect()}}))),(0,P.T)(1))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(st){if(!(0,Me.Vb)(st))switch(st.keyCode){case Me.K5:case Me.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(st));break;default:this._keyManager.onKeydown(st)}}_onContentChanges(){const st=this._elementRef.nativeElement.textContent;st!==this._currentTextContent&&(this._currentTextContent=st||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(st){!this._isValidIndex(st)||this.focusIndex===st||!this._keyManager||this._keyManager.setActiveItem(st)}_isValidIndex(st){if(!this._items)return!0;const ct=this._items?this._items.toArray()[st]:null;return!!ct&&!ct.disabled}_setTabFocus(st){if(this._showPaginationControls&&this._scrollToLabel(st),this._items&&this._items.length){this._items.toArray()[st].focus();const ct=this._tabListContainer.nativeElement;ct.scrollLeft="ltr"==this._getLayoutDirection()?0:ct.scrollWidth-ct.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const st=this.scrollDistance,ct="ltr"===this._getLayoutDirection()?-st:st;this._tabList.nativeElement.style.transform=`translateX(${Math.round(ct)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(st){this._scrollTo(st)}_scrollHeader(st){return this._scrollTo(this._scrollDistance+("before"==st?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(st){this._stopInterval(),this._scrollHeader(st)}_scrollToLabel(st){if(this.disablePagination)return;const ct=this._items?this._items.toArray()[st]:null;if(!ct)return;const Ht=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:an,offsetWidth:ze}=ct.elementRef.nativeElement;let rt,qt;"ltr"==this._getLayoutDirection()?(rt=an,qt=rt+ze):(qt=this._tabListInner.nativeElement.offsetWidth-an,rt=qt-ze);const Ut=this.scrollDistance,en=this.scrollDistance+Ht;rten&&(this.scrollDistance+=qt-en+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const st=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;st||(this.scrollDistance=0),st!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=st}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const st=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,ct=st?st.elementRef.nativeElement:null;ct?this._inkBar.alignToElement(ct):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(st,ct){ct&&null!=ct.button&&0!==ct.button||(this._stopInterval(),(0,le.H)(650,100).pipe((0,w.R)((0,ae.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:Ht,distance:an}=this._scrollHeader(st);(0===an||an>=Ht)&&this._stopInterval()}))}_scrollTo(st){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const ct=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(ct,st)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:ct,distance:this._scrollDistance}}}return Pe.\u0275fac=function(st){return new(st||Pe)(b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(he.rL),b.Y36(ge.Is,8),b.Y36(b.R0b),b.Y36(se.t4),b.Y36(b.QbO,8))},Pe.\u0275dir=b.lG2({type:Pe,inputs:{disablePagination:"disablePagination"}}),Pe})(),qe=0,xe=(()=>{class Pe extends T{constructor(st,ct,Ht,an,ze,rt,qt){super(st,an,ze,ct,Ht,rt,qt),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(st){const ct=this._elementRef.nativeElement.classList;ct.remove(`mat-background-${this.backgroundColor}`),st&&ct.add(`mat-background-${st}`),this._backgroundColor=st}get disableRipple(){return this._disableRipple}set disableRipple(st){this._disableRipple=(0,ie.Ig)(st)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,B.O)(null),(0,w.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const st=this._items.toArray();for(let ct=0;ct{class Pe extends xe{constructor(st,ct,Ht,an,ze,rt,qt){super(st,ct,Ht,an,ze,rt,qt)}}return Pe.\u0275fac=function(st){return new(st||Pe)(b.Y36(b.SBq),b.Y36(ge.Is,8),b.Y36(b.R0b),b.Y36(b.sBO),b.Y36(he.rL),b.Y36(se.t4),b.Y36(b.QbO,8))},Pe.\u0275cmp=b.Xpm({type:Pe,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(st,ct,Ht){if(1&st&&b.Suo(Ht,je,5),2&st){let an;b.iGM(an=b.CRH())&&(ct._items=an)}},viewQuery:function(st,ct){if(1&st&&(b.Gf(Mt,7),b.Gf(Xe,7),b.Gf(Ae,7),b.Gf(_t,7),b.Gf(ht,5),b.Gf(Yt,5)),2&st){let Ht;b.iGM(Ht=b.CRH())&&(ct._inkBar=Ht.first),b.iGM(Ht=b.CRH())&&(ct._tabListContainer=Ht.first),b.iGM(Ht=b.CRH())&&(ct._tabList=Ht.first),b.iGM(Ht=b.CRH())&&(ct._tabListInner=Ht.first),b.iGM(Ht=b.CRH())&&(ct._nextPaginator=Ht.first),b.iGM(Ht=b.CRH())&&(ct._previousPaginator=Ht.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(st,ct){2&st&&(b.uIk("role",ct._getRole()),b.ekj("mat-tab-header-pagination-controls-enabled",ct._showPaginationControls)("mat-tab-header-rtl","rtl"==ct._getLayoutDirection())("mat-primary","warn"!==ct.color&&"accent"!==ct.color)("mat-accent","accent"===ct.color)("mat-warn","warn"===ct.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[b.qOj],attrs:at,ngContentSelectors:it,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(st,ct){1&st&&(b.F$t(),b.TgZ(0,"button",0,1),b.NdJ("click",function(){return ct._handlePaginatorClick("before")})("mousedown",function(an){return ct._handlePaginatorPress("before",an)})("touchend",function(){return ct._stopInterval()}),b._UZ(2,"div",2),b.qZA(),b.TgZ(3,"div",3,4),b.NdJ("keydown",function(an){return ct._handleKeydown(an)}),b.TgZ(5,"div",5,6),b.NdJ("cdkObserveContent",function(){return ct._onContentChanges()}),b.TgZ(7,"div",7,8),b.Hsn(9),b.qZA(),b._UZ(10,"mat-ink-bar"),b.qZA()(),b.TgZ(11,"button",9,10),b.NdJ("mousedown",function(an){return ct._handlePaginatorPress("after",an)})("click",function(){return ct._handlePaginatorClick("after")})("touchend",function(){return ct._stopInterval()}),b._UZ(13,"div",2),b.qZA()),2&st&&(b.ekj("mat-tab-header-pagination-disabled",ct._disableScrollBefore),b.Q6J("matRippleDisabled",ct._disableScrollBefore||ct.disableRipple)("disabled",ct._disableScrollBefore||null),b.xp6(5),b.ekj("_mat-animation-noopable","NoopAnimations"===ct._animationMode),b.xp6(6),b.ekj("mat-tab-header-pagination-disabled",ct._disableScrollAfter),b.Q6J("matRippleDisabled",ct._disableScrollAfter||ct.disableRipple)("disabled",ct._disableScrollAfter||null))},dependencies:[h.wG,a.wD,Mt],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}.mat-tab-link::before{margin:5px}@media(max-width: 599px){.mat-tab-link{min-width:72px}}"],encapsulation:2}),Pe})();const ot=(0,h.sb)((0,h.Kr)((0,h.Id)(class{})));let ce=(()=>{class Pe extends ot{constructor(st,ct,Ht,an,ze,rt){super(),this._tabNavBar=st,this.elementRef=ct,this._focusMonitor=ze,this._isActive=!1,this.id="mat-tab-link-"+qe++,this.rippleConfig=Ht||{},this.tabIndex=parseInt(an)||0,"NoopAnimations"===rt&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(st){const ct=(0,ie.Ig)(st);ct!==this._isActive&&(this._isActive=ct,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(st){this._tabNavBar.tabPanel&&st.keyCode===Me.L_&&this.elementRef.nativeElement.click()}_getAriaControls(){return this._tabNavBar.tabPanel?this._tabNavBar.tabPanel?.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}_getTabIndex(){return this._tabNavBar.tabPanel?this._isActive&&!this.disabled?0:-1:this.tabIndex}}return Pe.\u0275fac=function(st){return new(st||Pe)(b.Y36(xe),b.Y36(b.SBq),b.Y36(h.Y2,8),b.$8M("tabindex"),b.Y36(i.tE),b.Y36(b.QbO,8))},Pe.\u0275dir=b.lG2({type:Pe,inputs:{active:"active",id:"id"},features:[b.qOj]}),Pe})(),je=(()=>{class Pe extends ce{constructor(st,ct,Ht,an,ze,rt,qt,Ut){super(st,ct,ze,rt,qt,Ut),this._tabLinkRipple=new h.IR(this,Ht,ct,an),this._tabLinkRipple.setupTriggerEvents(ct.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return Pe.\u0275fac=function(st){return new(st||Pe)(b.Y36(Fe),b.Y36(b.SBq),b.Y36(b.R0b),b.Y36(se.t4),b.Y36(h.Y2,8),b.$8M("tabindex"),b.Y36(i.tE),b.Y36(b.QbO,8))},Pe.\u0275dir=b.lG2({type:Pe,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(st,ct){1&st&&b.NdJ("focus",function(){return ct._handleFocus()})("keydown",function(an){return ct._handleKeydown(an)}),2&st&&(b.uIk("aria-controls",ct._getAriaControls())("aria-current",ct._getAriaCurrent())("aria-disabled",ct.disabled)("aria-selected",ct._getAriaSelected())("id",ct.id)("tabIndex",ct._getTabIndex())("role",ct._getRole()),b.ekj("mat-tab-disabled",ct.disabled)("mat-tab-label-active",ct.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[b.qOj]}),Pe})(),Ye=(()=>{class Pe{}return Pe.\u0275fac=function(st){return new(st||Pe)},Pe.\u0275mod=b.oAB({type:Pe}),Pe.\u0275inj=b.cJS({imports:[v.ez,h.BQ,c.eL,h.si,a.Q8,i.rt,h.BQ]}),Pe})()},3683:(Ct,ke,u)=>{"use strict";u.d(ke,{Ye:()=>B,g0:()=>P});var i=u(4650),a=u(3238),c=u(3353),v=u(6895);const b=["*",[["mat-toolbar-row"]]],h=["*","mat-toolbar-row"],g=(0,a.pj)(class{constructor(k){this._elementRef=k}});let w=(()=>{class k{}return k.\u0275fac=function(z){return new(z||k)},k.\u0275dir=i.lG2({type:k,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),k})(),B=(()=>{class k extends g{constructor(z,ae,we){super(z),this._platform=ae,this._document=we}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return k.\u0275fac=function(z){return new(z||k)(i.Y36(i.SBq),i.Y36(c.t4),i.Y36(v.K0))},k.\u0275cmp=i.Xpm({type:k,selectors:[["mat-toolbar"]],contentQueries:function(z,ae,we){if(1&z&&i.Suo(we,w,5),2&z){let ue;i.iGM(ue=i.CRH())&&(ae._toolbarRows=ue)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(z,ae){2&z&&i.ekj("mat-toolbar-multiple-rows",ae._toolbarRows.length>0)("mat-toolbar-single-row",0===ae._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[i.qOj],ngContentSelectors:h,decls:2,vars:0,template:function(z,ae){1&z&&(i.F$t(b),i.Hsn(0),i.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),k})(),P=(()=>{class k{}return k.\u0275fac=function(z){return new(z||k)},k.\u0275mod=i.oAB({type:k}),k.\u0275inj=i.cJS({imports:[a.BQ,a.BQ]}),k})()},266:(Ct,ke,u)=>{"use strict";u.d(ke,{AV:()=>ht,gM:()=>Xe});var i=u(8184),a=u(2687),c=u(6895),v=u(4650),b=u(3238),h=u(2744),g=u(445),w=u(1281),B=u(9521),O=u(2289),P=u(3353),k=u(4080),F=u(8929),z=u(7625),ae=u(2986);u(7340);const ue=["tooltip"],W="tooltip-panel",ie=(0,P.i$)({passive:!0}),Me=new v.OlP("mat-tooltip-scroll-strategy"),it={provide:Me,deps:[i.aV],useFactory:function Ge(Dt){return()=>Dt.scrollStrategies.reposition({scrollThrottle:20})}},Ke=new v.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function tt(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let me=(()=>{class Dt{constructor(V,Ee,oe,_e,Oe,at,be,et,Mt,gt,We,wt){this._overlay=V,this._elementRef=Ee,this._scrollDispatcher=oe,this._viewContainerRef=_e,this._ngZone=Oe,this._platform=at,this._ariaDescriber=be,this._focusMonitor=et,this._dir=gt,this._defaultOptions=We,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new F.xQ,this._scrollStrategy=Mt,this._document=wt,We&&(We.position&&(this.position=We.position),We.touchGestures&&(this.touchGestures=We.touchGestures)),gt.change.pipe((0,z.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(V){V!==this._position&&(this._position=V,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(V){this._disabled=(0,w.Ig)(V),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(V){this._showDelay=(0,w.su)(V)}get hideDelay(){return this._hideDelay}set hideDelay(V){this._hideDelay=(0,w.su)(V),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(V){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=V?String(V).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(V){this._tooltipClass=V,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,z.R)(this._destroyed)).subscribe(V=>{V?"keyboard"===V&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const V=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([Ee,oe])=>{V.removeEventListener(Ee,oe,ie)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(V,this.message,"tooltip"),this._focusMonitor.stopMonitoring(V)}show(V=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const Ee=this._createOverlay();this._detach(),this._portal=this._portal||new k.C5(this._tooltipComponent,this._viewContainerRef);const oe=this._tooltipInstance=Ee.attach(this._portal).instance;oe._triggerElement=this._elementRef.nativeElement,oe._mouseLeaveHideDelay=this._hideDelay,oe.afterHidden().pipe((0,z.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),oe.show(V)}hide(V=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(V)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const V=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),Ee=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(V);return Ee.positionChanges.pipe((0,z.R)(this._destroyed)).subscribe(oe=>{this._updateCurrentPositionClass(oe.connectionPair),this._tooltipInstance&&oe.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:Ee,panelClass:`${this._cssClassPrefix}-${W}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,z.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,z.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,z.R)(this._destroyed)).subscribe(oe=>{this._isTooltipVisible()&&oe.keyCode===B.hY&&!(0,B.Vb)(oe)&&(oe.preventDefault(),oe.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(V){const Ee=V.getConfig().positionStrategy,oe=this._getOrigin(),_e=this._getOverlayPosition();Ee.withPositions([this._addOffset({...oe.main,..._e.main}),this._addOffset({...oe.fallback,..._e.fallback})])}_addOffset(V){return V}_getOrigin(){const V=!this._dir||"ltr"==this._dir.value,Ee=this.position;let oe;"above"==Ee||"below"==Ee?oe={originX:"center",originY:"above"==Ee?"top":"bottom"}:"before"==Ee||"left"==Ee&&V||"right"==Ee&&!V?oe={originX:"start",originY:"center"}:("after"==Ee||"right"==Ee&&V||"left"==Ee&&!V)&&(oe={originX:"end",originY:"center"});const{x:_e,y:Oe}=this._invertPosition(oe.originX,oe.originY);return{main:oe,fallback:{originX:_e,originY:Oe}}}_getOverlayPosition(){const V=!this._dir||"ltr"==this._dir.value,Ee=this.position;let oe;"above"==Ee?oe={overlayX:"center",overlayY:"bottom"}:"below"==Ee?oe={overlayX:"center",overlayY:"top"}:"before"==Ee||"left"==Ee&&V||"right"==Ee&&!V?oe={overlayX:"end",overlayY:"center"}:("after"==Ee||"right"==Ee&&V||"left"==Ee&&!V)&&(oe={overlayX:"start",overlayY:"center"});const{x:_e,y:Oe}=this._invertPosition(oe.overlayX,oe.overlayY);return{main:oe,fallback:{overlayX:_e,overlayY:Oe}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,ae.q)(1),(0,z.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(V){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=V,this._tooltipInstance._markForCheck())}_invertPosition(V,Ee){return"above"===this.position||"below"===this.position?"top"===Ee?Ee="bottom":"bottom"===Ee&&(Ee="top"):"end"===V?V="start":"start"===V&&(V="end"),{x:V,y:Ee}}_updateCurrentPositionClass(V){const{overlayY:Ee,originX:oe,originY:_e}=V;let Oe;if(Oe="center"===Ee?this._dir&&"rtl"===this._dir.value?"end"===oe?"left":"right":"start"===oe?"left":"right":"bottom"===Ee&&"top"===_e?"above":"below",Oe!==this._currentPosition){const at=this._overlayRef;if(at){const be=`${this._cssClassPrefix}-${W}-`;at.removePanelClass(be+this._currentPosition),at.addPanelClass(be+Oe)}this._currentPosition=Oe}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const V=[];if(this._platformSupportsMouseEvents())V.push(["mouseleave",Ee=>{const oe=Ee.relatedTarget;(!oe||!this._overlayRef?.overlayElement.contains(oe))&&this.hide()}],["wheel",Ee=>this._wheelListener(Ee)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const Ee=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};V.push(["touchend",Ee],["touchcancel",Ee])}this._addListeners(V),this._passiveListeners.push(...V)}_addListeners(V){V.forEach(([Ee,oe])=>{this._elementRef.nativeElement.addEventListener(Ee,oe,ie)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(V){if(this._isTooltipVisible()){const Ee=this._document.elementFromPoint(V.clientX,V.clientY),oe=this._elementRef.nativeElement;Ee!==oe&&!oe.contains(Ee)&&this.hide()}}_disableNativeGesturesIfNecessary(){const V=this.touchGestures;if("off"!==V){const Ee=this._elementRef.nativeElement,oe=Ee.style;("on"===V||"INPUT"!==Ee.nodeName&&"TEXTAREA"!==Ee.nodeName)&&(oe.userSelect=oe.msUserSelect=oe.webkitUserSelect=oe.MozUserSelect="none"),("on"===V||!Ee.draggable)&&(oe.webkitUserDrag="none"),oe.touchAction="none",oe.webkitTapHighlightColor="transparent"}}}return Dt.\u0275fac=function(V){v.$Z()},Dt.\u0275dir=v.lG2({type:Dt,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),Dt})(),Xe=(()=>{class Dt extends me{constructor(V,Ee,oe,_e,Oe,at,be,et,Mt,gt,We,wt){super(V,Ee,oe,_e,Oe,at,be,et,Mt,gt,We,wt),this._tooltipComponent=_t}}return Dt.\u0275fac=function(V){return new(V||Dt)(v.Y36(i.aV),v.Y36(v.SBq),v.Y36(h.mF),v.Y36(v.s_b),v.Y36(v.R0b),v.Y36(P.t4),v.Y36(a.$s),v.Y36(a.tE),v.Y36(Me),v.Y36(g.Is,8),v.Y36(Ke,8),v.Y36(c.K0))},Dt.\u0275dir=v.lG2({type:Dt,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[v.qOj]}),Dt})(),Ae=(()=>{class Dt{constructor(V,Ee){this._changeDetectorRef=V,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new F.xQ,this._animationsDisabled="NoopAnimations"===Ee}show(V){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},V)}hide(V){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},V)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:V}){(!V||!this._triggerElement.contains(V))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:V}){(V===this._showAnimation||V===this._hideAnimation)&&this._finalizeAnimation(V===this._showAnimation)}_finalizeAnimation(V){V?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(V){const Ee=this._tooltip.nativeElement,oe=this._showAnimation,_e=this._hideAnimation;if(Ee.classList.remove(V?_e:oe),Ee.classList.add(V?oe:_e),this._isVisible=V,V&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const Oe=getComputedStyle(Ee);("0s"===Oe.getPropertyValue("animation-duration")||"none"===Oe.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}V&&this._onShow(),this._animationsDisabled&&(Ee.classList.add("_mat-animation-noopable"),this._finalizeAnimation(V))}}return Dt.\u0275fac=function(V){return new(V||Dt)(v.Y36(v.sBO),v.Y36(v.QbO,8))},Dt.\u0275dir=v.lG2({type:Dt}),Dt})(),_t=(()=>{class Dt extends Ae{constructor(V,Ee,oe){super(V,oe),this._breakpointObserver=Ee,this._isHandset=this._breakpointObserver.observe(O.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return Dt.\u0275fac=function(V){return new(V||Dt)(v.Y36(v.sBO),v.Y36(O.Yg),v.Y36(v.QbO,8))},Dt.\u0275cmp=v.Xpm({type:Dt,selectors:[["mat-tooltip-component"]],viewQuery:function(V,Ee){if(1&V&&v.Gf(ue,7),2&V){let oe;v.iGM(oe=v.CRH())&&(Ee._tooltip=oe.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(V,Ee){1&V&&v.NdJ("mouseleave",function(_e){return Ee._handleMouseLeave(_e)}),2&V&&v.Udp("zoom",Ee.isVisible()?1:null)},features:[v.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(V,Ee){if(1&V&&(v.TgZ(0,"div",0,1),v.NdJ("animationend",function(_e){return Ee._handleAnimationEnd(_e)}),v.ALo(2,"async"),v._uU(3),v.qZA()),2&V){let oe;v.ekj("mat-tooltip-handset",null==(oe=v.lcZ(2,4,Ee._isHandset))?null:oe.matches),v.Q6J("ngClass",Ee.tooltipClass),v.xp6(3),v.Oqu(Ee.message)}},dependencies:[c.mk,c.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),Dt})(),ht=(()=>{class Dt{}return Dt.\u0275fac=function(V){return new(V||Dt)},Dt.\u0275mod=v.oAB({type:Dt}),Dt.\u0275inj=v.cJS({providers:[it],imports:[a.rt,c.ez,i.U8,b.BQ,b.BQ,h.ZD]}),Dt})()},8746:(Ct,ke,u)=>{"use strict";u.d(ke,{PW:()=>Ji});var i=u(4650),a=u(1481),c=u(7340);function b(Te){return new i.vHH(3e3,!1)}function at(){return typeof window<"u"&&typeof window.document<"u"}function be(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function et(Te){switch(Te.length){case 0:return new c.ZN;case 1:return Te[0];default:return new c.ZE(Te)}}function Mt(Te,C,M,Y,Ie=new Map,o=new Map){const d=[],E=[];let L=-1,Z=null;if(Y.forEach(De=>{const Ze=De.get("offset"),pt=Ze==L,At=pt&&Z||new Map;De.forEach((vt,Tt)=>{let xt=Tt,Lt=vt;if("offset"!==Tt)switch(xt=C.normalizePropertyName(xt,d),Lt){case c.k1:Lt=Ie.get(Tt);break;case c.l3:Lt=o.get(Tt);break;default:Lt=C.normalizeStyleValue(Tt,xt,Lt,d)}At.set(xt,Lt)}),pt||E.push(At),Z=At,L=Ze}),d.length)throw function me(Te){return new i.vHH(3502,!1)}();return E}function gt(Te,C,M,Y){switch(C){case"start":Te.onStart(()=>Y(M&&We(M,"start",Te)));break;case"done":Te.onDone(()=>Y(M&&We(M,"done",Te)));break;case"destroy":Te.onDestroy(()=>Y(M&&We(M,"destroy",Te)))}}function We(Te,C,M){const o=wt(Te.element,Te.triggerName,Te.fromState,Te.toState,C||Te.phaseName,M.totalTime??Te.totalTime,!!M.disabled),d=Te._data;return null!=d&&(o._data=d),o}function wt(Te,C,M,Y,Ie="",o=0,d){return{element:Te,triggerName:C,fromState:M,toState:Y,phaseName:Ie,totalTime:o,disabled:!!d}}function nt(Te,C,M){let Y=Te.get(C);return Y||Te.set(C,Y=M),Y}function Q(Te){const C=Te.indexOf(":");return[Te.substring(1,C),Te.slice(C+1)]}let Le=(Te,C)=>!1,ee=(Te,C,M)=>[],R=null;function U(Te){const C=Te.parentNode||Te.host;return C===R?null:C}(be()||typeof Element<"u")&&(at()?(R=(()=>document.documentElement)(),Le=(Te,C)=>{for(;C;){if(C===Te)return!0;C=U(C)}return!1}):Le=(Te,C)=>Te.contains(C),ee=(Te,C,M)=>{if(M)return Array.from(Te.querySelectorAll(C));const Y=Te.querySelector(C);return Y?[Y]:[]});let p=null,m=!1;const H=Le,f=ee;let T=(()=>{class Te{validateStyleProperty(M){return function j(Te){p||(p=function X(){return typeof document<"u"?document.body:null}()||{},m=!!p.style&&"WebkitAppearance"in p.style);let C=!0;return p.style&&!function x(Te){return"ebkit"==Te.substring(1,6)}(Te)&&(C=Te in p.style,!C&&m&&(C="Webkit"+Te.charAt(0).toUpperCase()+Te.slice(1)in p.style)),C}(M)}matchesElement(M,Y){return!1}containsElement(M,Y){return H(M,Y)}getParentElement(M){return U(M)}query(M,Y,Ie){return f(M,Y,Ie)}computeStyle(M,Y,Ie){return Ie||""}animate(M,Y,Ie,o,d,E=[],L){return new c.ZN(Ie,o)}}return Te.\u0275fac=function(M){return new(M||Te)},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),ve=(()=>{class Te{}return Te.NOOP=new T,Te})();const dt="ng-enter",Et="ng-leave",ye="ng-trigger",qe=".ng-trigger",xe="ng-animating",Fe=".ng-animating";function ot(Te){if("number"==typeof Te)return Te;const C=Te.match(/^(-?[\.\d]+)(m?s)/);return!C||C.length<2?0:ce(parseFloat(C[1]),C[2])}function ce(Te,C){return"s"===C?1e3*Te:Te}function je(Te,C,M){return Te.hasOwnProperty("duration")?Te:function Ce(Te,C,M){let Ie,o=0,d="";if("string"==typeof Te){const E=Te.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===E)return C.push(b()),{duration:0,delay:0,easing:""};Ie=ce(parseFloat(E[1]),E[2]);const L=E[3];null!=L&&(o=ce(parseFloat(L),E[4]));const Z=E[5];Z&&(d=Z)}else Ie=Te;if(!M){let E=!1,L=C.length;Ie<0&&(C.push(function h(){return new i.vHH(3100,!1)}()),E=!0),o<0&&(C.push(function g(){return new i.vHH(3101,!1)}()),E=!0),E&&C.splice(L,0,b())}return{duration:Ie,delay:o,easing:d}}(Te,C,M)}function Ye(Te,C={}){return Object.keys(Te).forEach(M=>{C[M]=Te[M]}),C}function Pe(Te){const C=new Map;return Object.keys(Te).forEach(M=>{C.set(M,Te[M])}),C}function ct(Te,C=new Map,M){if(M)for(let[Y,Ie]of M)C.set(Y,Ie);for(let[Y,Ie]of Te)C.set(Y,Ie);return C}function Ht(Te,C,M){return M?C+":"+M+";":""}function an(Te){let C="";for(let M=0;M{const o=Bt(Ie);M&&!M.has(Ie)&&M.set(Ie,Te.style[o]),Te.style[o]=Y}),be()&&an(Te))}function rt(Te,C){Te.style&&(C.forEach((M,Y)=>{const Ie=Bt(Y);Te.style[Ie]=""}),be()&&an(Te))}function qt(Te){return Array.isArray(Te)?1==Te.length?Te[0]:(0,c.vP)(Te):Te}const en=new RegExp("{{\\s*(.+?)\\s*}}","g");function bn(Te){let C=[];if("string"==typeof Te){let M;for(;M=en.exec(Te);)C.push(M[1]);en.lastIndex=0}return C}function Rt(Te,C,M){const Y=Te.toString(),Ie=Y.replace(en,(o,d)=>{let E=C[d];return null==E&&(M.push(function B(Te){return new i.vHH(3003,!1)}()),E=""),E.toString()});return Ie==Y?Te:Ie}function yt(Te){const C=[];let M=Te.next();for(;!M.done;)C.push(M.value),M=Te.next();return C}const lt=/-+([a-z0-9])/g;function Bt(Te){return Te.replace(lt,(...C)=>C[1].toUpperCase())}function Jt(Te){return Te.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function mn(Te,C,M){switch(C.type){case 7:return Te.visitTrigger(C,M);case 0:return Te.visitState(C,M);case 1:return Te.visitTransition(C,M);case 2:return Te.visitSequence(C,M);case 3:return Te.visitGroup(C,M);case 4:return Te.visitAnimate(C,M);case 5:return Te.visitKeyframes(C,M);case 6:return Te.visitStyle(C,M);case 8:return Te.visitReference(C,M);case 9:return Te.visitAnimateChild(C,M);case 10:return Te.visitAnimateRef(C,M);case 11:return Te.visitQuery(C,M);case 12:return Te.visitStagger(C,M);default:throw function O(Te){return new i.vHH(3004,!1)}()}}function On(Te,C){return window.getComputedStyle(Te)[C]}function Tn(Te,C){const M=[];return"string"==typeof Te?Te.split(/\s*,\s*/).forEach(Y=>function En(Te,C,M){if(":"==Te[0]){const L=function ci(Te,C){switch(Te){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(M,Y)=>parseFloat(Y)>parseFloat(M);case":decrement":return(M,Y)=>parseFloat(Y) *"}}(Te,M);if("function"==typeof L)return void C.push(L);Te=L}const Y=Te.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==Y||Y.length<4)return M.push(function Me(Te){return new i.vHH(3015,!1)}()),C;const Ie=Y[1],o=Y[2],d=Y[3];C.push(jn(Ie,d));"<"==o[0]&&!("*"==Ie&&"*"==d)&&C.push(jn(d,Ie))}(Y,M,C)):M.push(Te),M}const An=new Set(["true","1"]),ni=new Set(["false","0"]);function jn(Te,C){const M=An.has(Te)||ni.has(Te),Y=An.has(C)||ni.has(C);return(Ie,o)=>{let d="*"==Te||Te==Ie,E="*"==C||C==o;return!d&&M&&"boolean"==typeof Ie&&(d=Ie?An.has(Te):ni.has(Te)),!E&&Y&&"boolean"==typeof o&&(E=o?An.has(C):ni.has(C)),d&&E}}const zn=new RegExp("s*:selfs*,?","g");function si(Te,C,M,Y){return new Pi(Te).build(C,M,Y)}class Pi{constructor(C){this._driver=C}build(C,M,Y){const Ie=new zi(M);return this._resetContextStyleTimingState(Ie),mn(this,qt(C),Ie)}_resetContextStyleTimingState(C){C.currentQuerySelector="",C.collectedStyles=new Map,C.collectedStyles.set("",new Map),C.currentTime=0}visitTrigger(C,M){let Y=M.queryCount=0,Ie=M.depCount=0;const o=[],d=[];return"@"==C.name.charAt(0)&&M.errors.push(function k(){return new i.vHH(3006,!1)}()),C.definitions.forEach(E=>{if(this._resetContextStyleTimingState(M),0==E.type){const L=E,Z=L.name;Z.toString().split(/\s*,\s*/).forEach(De=>{L.name=De,o.push(this.visitState(L,M))}),L.name=Z}else if(1==E.type){const L=this.visitTransition(E,M);Y+=L.queryCount,Ie+=L.depCount,d.push(L)}else M.errors.push(function F(){return new i.vHH(3007,!1)}())}),{type:7,name:C.name,states:o,transitions:d,queryCount:Y,depCount:Ie,options:null}}visitState(C,M){const Y=this.visitStyle(C.styles,M),Ie=C.options&&C.options.params||null;if(Y.containsDynamicStyles){const o=new Set,d=Ie||{};Y.styles.forEach(E=>{E instanceof Map&&E.forEach(L=>{bn(L).forEach(Z=>{d.hasOwnProperty(Z)||o.add(Z)})})}),o.size&&(yt(o.values()),M.errors.push(function z(Te,C){return new i.vHH(3008,!1)}()))}return{type:0,name:C.name,style:Y,options:Ie?{params:Ie}:null}}visitTransition(C,M){M.queryCount=0,M.depCount=0;const Y=mn(this,qt(C.animation),M);return{type:1,matchers:Tn(C.expr,M.errors),animation:Y,queryCount:M.queryCount,depCount:M.depCount,options:_i(C.options)}}visitSequence(C,M){return{type:2,steps:C.steps.map(Y=>mn(this,Y,M)),options:_i(C.options)}}visitGroup(C,M){const Y=M.currentTime;let Ie=0;const o=C.steps.map(d=>{M.currentTime=Y;const E=mn(this,d,M);return Ie=Math.max(Ie,M.currentTime),E});return M.currentTime=Ie,{type:3,steps:o,options:_i(C.options)}}visitAnimate(C,M){const Y=function Wi(Te,C){if(Te.hasOwnProperty("duration"))return Te;if("number"==typeof Te)return fi(je(Te,C).duration,0,"");const M=Te;if(M.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=fi(0,0,"");return o.dynamic=!0,o.strValue=M,o}const Ie=je(M,C);return fi(Ie.duration,Ie.delay,Ie.easing)}(C.timings,M.errors);M.currentAnimateTimings=Y;let Ie,o=C.styles?C.styles:(0,c.oB)({});if(5==o.type)Ie=this.visitKeyframes(o,M);else{let d=C.styles,E=!1;if(!d){E=!0;const Z={};Y.easing&&(Z.easing=Y.easing),d=(0,c.oB)(Z)}M.currentTime+=Y.duration+Y.delay;const L=this.visitStyle(d,M);L.isEmptyStep=E,Ie=L}return M.currentAnimateTimings=null,{type:4,timings:Y,style:Ie,options:null}}visitStyle(C,M){const Y=this._makeStyleAst(C,M);return this._validateStyleAst(Y,M),Y}_makeStyleAst(C,M){const Y=[],Ie=Array.isArray(C.styles)?C.styles:[C.styles];for(let E of Ie)"string"==typeof E?E===c.l3?Y.push(E):M.errors.push(new i.vHH(3002,!1)):Y.push(Pe(E));let o=!1,d=null;return Y.forEach(E=>{if(E instanceof Map&&(E.has("easing")&&(d=E.get("easing"),E.delete("easing")),!o))for(let L of E.values())if(L.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:Y,easing:d,offset:C.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(C,M){const Y=M.currentAnimateTimings;let Ie=M.currentTime,o=M.currentTime;Y&&o>0&&(o-=Y.duration+Y.delay),C.styles.forEach(d=>{"string"!=typeof d&&d.forEach((E,L)=>{const Z=M.collectedStyles.get(M.currentQuerySelector),De=Z.get(L);let Ze=!0;De&&(o!=Ie&&o>=De.startTime&&Ie<=De.endTime&&(M.errors.push(function ue(Te,C,M,Y,Ie){return new i.vHH(3010,!1)}()),Ze=!1),o=De.startTime),Ze&&Z.set(L,{startTime:o,endTime:Ie}),M.options&&function Ut(Te,C,M){const Y=C.params||{},Ie=bn(Te);Ie.length&&Ie.forEach(o=>{Y.hasOwnProperty(o)||M.push(function w(Te){return new i.vHH(3001,!1)}())})}(E,M.options,M.errors)})})}visitKeyframes(C,M){const Y={type:5,styles:[],options:null};if(!M.currentAnimateTimings)return M.errors.push(function le(){return new i.vHH(3011,!1)}()),Y;let o=0;const d=[];let E=!1,L=!1,Z=0;const De=C.steps.map(Lt=>{const Ot=this._makeStyleAst(Lt,M);let Ft=null!=Ot.offset?Ot.offset:function hr(Te){if("string"==typeof Te)return null;let C=null;if(Array.isArray(Te))Te.forEach(M=>{if(M instanceof Map&&M.has("offset")){const Y=M;C=parseFloat(Y.get("offset")),Y.delete("offset")}});else if(Te instanceof Map&&Te.has("offset")){const M=Te;C=parseFloat(M.get("offset")),M.delete("offset")}return C}(Ot.styles),Nt=0;return null!=Ft&&(o++,Nt=Ot.offset=Ft),L=L||Nt<0||Nt>1,E=E||Nt0&&o{const Ft=pt>0?Ot==At?1:pt*Ot:d[Ot],Nt=Ft*xt;M.currentTime=vt+Tt.delay+Nt,Tt.duration=Nt,this._validateStyleAst(Lt,M),Lt.offset=Ft,Y.styles.push(Lt)}),Y}visitReference(C,M){return{type:8,animation:mn(this,qt(C.animation),M),options:_i(C.options)}}visitAnimateChild(C,M){return M.depCount++,{type:9,options:_i(C.options)}}visitAnimateRef(C,M){return{type:10,animation:this.visitReference(C.animation,M),options:_i(C.options)}}visitQuery(C,M){const Y=M.currentQuerySelector,Ie=C.options||{};M.queryCount++,M.currentQuery=C;const[o,d]=function Xn(Te){const C=!!Te.split(/\s*,\s*/).find(M=>":self"==M);return C&&(Te=Te.replace(zn,"")),Te=Te.replace(/@\*/g,qe).replace(/@\w+/g,M=>qe+"-"+M.slice(1)).replace(/:animating/g,Fe),[Te,C]}(C.selector);M.currentQuerySelector=Y.length?Y+" "+o:o,nt(M.collectedStyles,M.currentQuerySelector,new Map);const E=mn(this,qt(C.animation),M);return M.currentQuery=null,M.currentQuerySelector=Y,{type:11,selector:o,limit:Ie.limit||0,optional:!!Ie.optional,includeSelf:d,animation:E,originalSelector:C.selector,options:_i(C.options)}}visitStagger(C,M){M.currentQuery||M.errors.push(function he(){return new i.vHH(3013,!1)}());const Y="full"===C.timings?{duration:0,delay:0,easing:"full"}:je(C.timings,M.errors,!0);return{type:12,animation:mn(this,qt(C.animation),M),timings:Y,options:null}}}class zi{constructor(C){this.errors=C,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function _i(Te){return Te?(Te=Ye(Te)).params&&(Te.params=function Ci(Te){return Te?Ye(Te):null}(Te.params)):Te={},Te}function fi(Te,C,M){return{duration:Te,delay:C,easing:M}}function nr(Te,C,M,Y,Ie,o,d=null,E=!1){return{type:1,element:Te,keyframes:C,preStyleProps:M,postStyleProps:Y,duration:Ie,delay:o,totalTime:Ie+o,easing:d,subTimeline:E}}class Ri{constructor(){this._map=new Map}get(C){return this._map.get(C)||[]}append(C,M){let Y=this._map.get(C);Y||this._map.set(C,Y=[]),Y.push(...M)}has(C){return this._map.has(C)}clear(){this._map.clear()}}const kr=new RegExp(":enter","g"),Fi=new RegExp(":leave","g");function Ti(Te,C,M,Y,Ie,o=new Map,d=new Map,E,L,Z=[]){return(new Sr).buildKeyframes(Te,C,M,Y,Ie,o,d,E,L,Z)}class Sr{buildKeyframes(C,M,Y,Ie,o,d,E,L,Z,De=[]){Z=Z||new Ri;const Ze=new qi(C,M,Z,Ie,o,De,[]);Ze.options=L;const pt=L.delay?ot(L.delay):0;Ze.currentTimeline.delayNextStep(pt),Ze.currentTimeline.setStyles([d],null,Ze.errors,L),mn(this,Y,Ze);const At=Ze.timelines.filter(vt=>vt.containsAnimation());if(At.length&&E.size){let vt;for(let Tt=At.length-1;Tt>=0;Tt--){const xt=At[Tt];if(xt.element===M){vt=xt;break}}vt&&!vt.allowOnlyTimelineStyles()&&vt.setStyles([E],null,Ze.errors,L)}return At.length?At.map(vt=>vt.buildKeyframes()):[nr(M,[],[],[],0,pt,"",!1)]}visitTrigger(C,M){}visitState(C,M){}visitTransition(C,M){}visitAnimateChild(C,M){const Y=M.subInstructions.get(M.element);if(Y){const Ie=M.createSubContext(C.options),o=M.currentTimeline.currentTime,d=this._visitSubInstructions(Y,Ie,Ie.options);o!=d&&M.transformIntoNewTimeline(d)}M.previousNode=C}visitAnimateRef(C,M){const Y=M.createSubContext(C.options);Y.transformIntoNewTimeline(),this.visitReference(C.animation,Y),M.transformIntoNewTimeline(Y.currentTimeline.currentTime),M.previousNode=C}_visitSubInstructions(C,M,Y){let o=M.currentTimeline.currentTime;const d=null!=Y.duration?ot(Y.duration):null,E=null!=Y.delay?ot(Y.delay):null;return 0!==d&&C.forEach(L=>{const Z=M.appendInstructionToTimeline(L,d,E);o=Math.max(o,Z.duration+Z.delay)}),o}visitReference(C,M){M.updateOptions(C.options,!0),mn(this,C.animation,M),M.previousNode=C}visitSequence(C,M){const Y=M.subContextCount;let Ie=M;const o=C.options;if(o&&(o.params||o.delay)&&(Ie=M.createSubContext(o),Ie.transformIntoNewTimeline(),null!=o.delay)){6==Ie.previousNode.type&&(Ie.currentTimeline.snapshotCurrentStyles(),Ie.previousNode=sr);const d=ot(o.delay);Ie.delayNextStep(d)}C.steps.length&&(C.steps.forEach(d=>mn(this,d,Ie)),Ie.currentTimeline.applyStylesToKeyframe(),Ie.subContextCount>Y&&Ie.transformIntoNewTimeline()),M.previousNode=C}visitGroup(C,M){const Y=[];let Ie=M.currentTimeline.currentTime;const o=C.options&&C.options.delay?ot(C.options.delay):0;C.steps.forEach(d=>{const E=M.createSubContext(C.options);o&&E.delayNextStep(o),mn(this,d,E),Ie=Math.max(Ie,E.currentTimeline.currentTime),Y.push(E.currentTimeline)}),Y.forEach(d=>M.currentTimeline.mergeTimelineCollectedStyles(d)),M.transformIntoNewTimeline(Ie),M.previousNode=C}_visitTiming(C,M){if(C.dynamic){const Y=C.strValue;return je(M.params?Rt(Y,M.params,M.errors):Y,M.errors)}return{duration:C.duration,delay:C.delay,easing:C.easing}}visitAnimate(C,M){const Y=M.currentAnimateTimings=this._visitTiming(C.timings,M),Ie=M.currentTimeline;Y.delay&&(M.incrementTime(Y.delay),Ie.snapshotCurrentStyles());const o=C.style;5==o.type?this.visitKeyframes(o,M):(M.incrementTime(Y.duration),this.visitStyle(o,M),Ie.applyStylesToKeyframe()),M.currentAnimateTimings=null,M.previousNode=C}visitStyle(C,M){const Y=M.currentTimeline,Ie=M.currentAnimateTimings;!Ie&&Y.hasCurrentStyleProperties()&&Y.forwardFrame();const o=Ie&&Ie.easing||C.easing;C.isEmptyStep?Y.applyEmptyStep(o):Y.setStyles(C.styles,o,M.errors,M.options),M.previousNode=C}visitKeyframes(C,M){const Y=M.currentAnimateTimings,Ie=M.currentTimeline.duration,o=Y.duration,E=M.createSubContext().currentTimeline;E.easing=Y.easing,C.styles.forEach(L=>{E.forwardTime((L.offset||0)*o),E.setStyles(L.styles,L.easing,M.errors,M.options),E.applyStylesToKeyframe()}),M.currentTimeline.mergeTimelineCollectedStyles(E),M.transformIntoNewTimeline(Ie+o),M.previousNode=C}visitQuery(C,M){const Y=M.currentTimeline.currentTime,Ie=C.options||{},o=Ie.delay?ot(Ie.delay):0;o&&(6===M.previousNode.type||0==Y&&M.currentTimeline.hasCurrentStyleProperties())&&(M.currentTimeline.snapshotCurrentStyles(),M.previousNode=sr);let d=Y;const E=M.invokeQuery(C.selector,C.originalSelector,C.limit,C.includeSelf,!!Ie.optional,M.errors);M.currentQueryTotal=E.length;let L=null;E.forEach((Z,De)=>{M.currentQueryIndex=De;const Ze=M.createSubContext(C.options,Z);o&&Ze.delayNextStep(o),Z===M.element&&(L=Ze.currentTimeline),mn(this,C.animation,Ze),Ze.currentTimeline.applyStylesToKeyframe(),d=Math.max(d,Ze.currentTimeline.currentTime)}),M.currentQueryIndex=0,M.currentQueryTotal=0,M.transformIntoNewTimeline(d),L&&(M.currentTimeline.mergeTimelineCollectedStyles(L),M.currentTimeline.snapshotCurrentStyles()),M.previousNode=C}visitStagger(C,M){const Y=M.parentContext,Ie=M.currentTimeline,o=C.timings,d=Math.abs(o.duration),E=d*(M.currentQueryTotal-1);let L=d*M.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":L=E-L;break;case"full":L=Y.currentStaggerTime}const De=M.currentTimeline;L&&De.delayNextStep(L);const Ze=De.currentTime;mn(this,C.animation,M),M.previousNode=C,Y.currentStaggerTime=Ie.currentTime-Ze+(Ie.startTime-Y.currentTimeline.startTime)}}const sr={};class qi{constructor(C,M,Y,Ie,o,d,E,L){this._driver=C,this.element=M,this.subInstructions=Y,this._enterClassName=Ie,this._leaveClassName=o,this.errors=d,this.timelines=E,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=sr,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=L||new fr(this._driver,M,0),E.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(C,M){if(!C)return;const Y=C;let Ie=this.options;null!=Y.duration&&(Ie.duration=ot(Y.duration)),null!=Y.delay&&(Ie.delay=ot(Y.delay));const o=Y.params;if(o){let d=Ie.params;d||(d=this.options.params={}),Object.keys(o).forEach(E=>{(!M||!d.hasOwnProperty(E))&&(d[E]=Rt(o[E],d,this.errors))})}}_copyOptions(){const C={};if(this.options){const M=this.options.params;if(M){const Y=C.params={};Object.keys(M).forEach(Ie=>{Y[Ie]=M[Ie]})}}return C}createSubContext(C=null,M,Y){const Ie=M||this.element,o=new qi(this._driver,Ie,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(Ie,Y||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(C),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(C){return this.previousNode=sr,this.currentTimeline=this.currentTimeline.fork(this.element,C),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(C,M,Y){const Ie={duration:M??C.duration,delay:this.currentTimeline.currentTime+(Y??0)+C.delay,easing:""},o=new Kr(this._driver,C.element,C.keyframes,C.preStyleProps,C.postStyleProps,Ie,C.stretchStartingKeyframe);return this.timelines.push(o),Ie}incrementTime(C){this.currentTimeline.forwardTime(this.currentTimeline.duration+C)}delayNextStep(C){C>0&&this.currentTimeline.delayNextStep(C)}invokeQuery(C,M,Y,Ie,o,d){let E=[];if(Ie&&E.push(this.element),C.length>0){C=(C=C.replace(kr,"."+this._enterClassName)).replace(Fi,"."+this._leaveClassName);let Z=this._driver.query(this.element,C,1!=Y);0!==Y&&(Z=Y<0?Z.slice(Z.length+Y,Z.length):Z.slice(0,Y)),E.push(...Z)}return!o&&0==E.length&&d.push(function se(Te){return new i.vHH(3014,!1)}()),E}}class fr{constructor(C,M,Y,Ie){this._driver=C,this.element=M,this.startTime=Y,this._elementTimelineStylesLookup=Ie,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(M),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(M,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(C){const M=1===this._keyframes.size&&this._pendingStyles.size;this.duration||M?(this.forwardTime(this.currentTime+C),M&&this.snapshotCurrentStyles()):this.startTime+=C}fork(C,M){return this.applyStylesToKeyframe(),new fr(this._driver,C,M||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(C){this.applyStylesToKeyframe(),this.duration=C,this._loadKeyframe()}_updateStyle(C,M){this._localTimelineStyles.set(C,M),this._globalTimelineStyles.set(C,M),this._styleSummary.set(C,{time:this.currentTime,value:M})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(C){C&&this._previousKeyframe.set("easing",C);for(let[M,Y]of this._globalTimelineStyles)this._backFill.set(M,Y||c.l3),this._currentKeyframe.set(M,c.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(C,M,Y,Ie){M&&this._previousKeyframe.set("easing",M);const o=Ie&&Ie.params||{},d=function Ni(Te,C){const M=new Map;let Y;return Te.forEach(Ie=>{if("*"===Ie){Y=Y||C.keys();for(let o of Y)M.set(o,c.l3)}else ct(Ie,M)}),M}(C,this._globalTimelineStyles);for(let[E,L]of d){const Z=Rt(L,o,Y);this._pendingStyles.set(E,Z),this._localTimelineStyles.has(E)||this._backFill.set(E,this._globalTimelineStyles.get(E)??c.l3),this._updateStyle(E,Z)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((C,M)=>{this._currentKeyframe.set(M,C)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((C,M)=>{this._currentKeyframe.has(M)||this._currentKeyframe.set(M,C)}))}snapshotCurrentStyles(){for(let[C,M]of this._localTimelineStyles)this._pendingStyles.set(C,M),this._updateStyle(C,M)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const C=[];for(let M in this._currentKeyframe)C.push(M);return C}mergeTimelineCollectedStyles(C){C._styleSummary.forEach((M,Y)=>{const Ie=this._styleSummary.get(Y);(!Ie||M.time>Ie.time)&&this._updateStyle(Y,M.value)})}buildKeyframes(){this.applyStylesToKeyframe();const C=new Set,M=new Set,Y=1===this._keyframes.size&&0===this.duration;let Ie=[];this._keyframes.forEach((E,L)=>{const Z=ct(E,new Map,this._backFill);Z.forEach((De,Ze)=>{De===c.k1?C.add(Ze):De===c.l3&&M.add(Ze)}),Y||Z.set("offset",L/this.duration),Ie.push(Z)});const o=C.size?yt(C.values()):[],d=M.size?yt(M.values()):[];if(Y){const E=Ie[0],L=new Map(E);E.set("offset",0),L.set("offset",1),Ie=[E,L]}return nr(this.element,Ie,o,d,this.duration,this.startTime,this.easing,!1)}}class Kr extends fr{constructor(C,M,Y,Ie,o,d,E=!1){super(C,M,d.delay),this.keyframes=Y,this.preStyleProps=Ie,this.postStyleProps=o,this._stretchStartingKeyframe=E,this.timings={duration:d.duration,delay:d.delay,easing:d.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let C=this.keyframes,{delay:M,duration:Y,easing:Ie}=this.timings;if(this._stretchStartingKeyframe&&M){const o=[],d=Y+M,E=M/d,L=ct(C[0]);L.set("offset",0),o.push(L);const Z=ct(C[0]);Z.set("offset",yi(E)),o.push(Z);const De=C.length-1;for(let Ze=1;Ze<=De;Ze++){let pt=ct(C[Ze]);const At=pt.get("offset");pt.set("offset",yi((M+At*Y)/d)),o.push(pt)}Y=d,M=0,Ie="",C=o}return nr(this.element,C,this.preStyleProps,this.postStyleProps,Y,M,Ie,!0)}}function yi(Te,C=3){const M=Math.pow(10,C-1);return Math.round(Te*M)/M}class or{}const Si=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class $r extends or{normalizePropertyName(C,M){return Bt(C)}normalizeStyleValue(C,M,Y,Ie){let o="";const d=Y.toString().trim();if(Si.has(M)&&0!==Y&&"0"!==Y)if("number"==typeof Y)o="px";else{const E=Y.match(/^[+-]?[\d\.]+([a-z]*)$/);E&&0==E[1].length&&Ie.push(function P(Te,C){return new i.vHH(3005,!1)}())}return d+o}}function pi(Te,C,M,Y,Ie,o,d,E,L,Z,De,Ze,pt){return{type:0,element:Te,triggerName:C,isRemovalTransition:Ie,fromState:M,fromStyles:o,toState:Y,toStyles:d,timelines:E,queriedElements:L,preStyleProps:Z,postStyleProps:De,totalTime:Ze,errors:pt}}const Yi={};class Li{constructor(C,M,Y){this._triggerName=C,this.ast=M,this._stateStyles=Y}match(C,M,Y,Ie){return function ir(Te,C,M,Y,Ie){return Te.some(o=>o(C,M,Y,Ie))}(this.ast.matchers,C,M,Y,Ie)}buildStyles(C,M,Y){let Ie=this._stateStyles.get("*");return void 0!==C&&(Ie=this._stateStyles.get(C?.toString())||Ie),Ie?Ie.buildStyles(M,Y):new Map}build(C,M,Y,Ie,o,d,E,L,Z,De){const Ze=[],pt=this.ast.options&&this.ast.options.params||Yi,vt=this.buildStyles(Y,E&&E.params||Yi,Ze),Tt=L&&L.params||Yi,xt=this.buildStyles(Ie,Tt,Ze),Lt=new Set,Ot=new Map,Ft=new Map,Nt="void"===Ie,Vt={params:Oi(Tt,pt),delay:this.ast.options?.delay},Wt=De?[]:Ti(C,M,this.ast.animation,o,d,vt,xt,Vt,Z,Ze);let zt=0;if(Wt.forEach(tn=>{zt=Math.max(tn.duration+tn.delay,zt)}),Ze.length)return pi(M,this._triggerName,Y,Ie,Nt,vt,xt,[],[],Ot,Ft,zt,Ze);Wt.forEach(tn=>{const sn=tn.element,_n=nt(Ot,sn,new Set);tn.preStyleProps.forEach(gn=>_n.add(gn));const hn=nt(Ft,sn,new Set);tn.postStyleProps.forEach(gn=>hn.add(gn)),sn!==M&&Lt.add(sn)});const Qt=yt(Lt.values());return pi(M,this._triggerName,Y,Ie,Nt,vt,xt,Wt,Qt,Ot,Ft,zt)}}function Oi(Te,C){const M=Ye(C);for(const Y in Te)Te.hasOwnProperty(Y)&&null!=Te[Y]&&(M[Y]=Te[Y]);return M}class Pr{constructor(C,M,Y){this.styles=C,this.defaultParams=M,this.normalizer=Y}buildStyles(C,M){const Y=new Map,Ie=Ye(this.defaultParams);return Object.keys(C).forEach(o=>{const d=C[o];null!==d&&(Ie[o]=d)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((d,E)=>{d&&(d=Rt(d,Ie,M));const L=this.normalizer.normalizePropertyName(E,M);d=this.normalizer.normalizeStyleValue(E,L,d,M),Y.set(L,d)})}),Y}}class Vi{constructor(C,M,Y){this.name=C,this.ast=M,this._normalizer=Y,this.transitionFactories=[],this.states=new Map,M.states.forEach(Ie=>{this.states.set(Ie.name,new Pr(Ie.style,Ie.options&&Ie.options.params||{},Y))}),Ir(this.states,"true","1"),Ir(this.states,"false","0"),M.transitions.forEach(Ie=>{this.transitionFactories.push(new Li(C,Ie,this.states))}),this.fallbackTransition=function ar(Te,C,M){return new Li(Te,{type:1,animation:{type:2,steps:[],options:null},matchers:[(d,E)=>!0],options:null,queryCount:0,depCount:0},C)}(C,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(C,M,Y,Ie){return this.transitionFactories.find(d=>d.match(C,M,Y,Ie))||null}matchStyles(C,M,Y){return this.fallbackTransition.buildStyles(C,M,Y)}}function Ir(Te,C,M){Te.has(C)?Te.has(M)||Te.set(M,Te.get(C)):Te.has(M)&&Te.set(C,Te.get(M))}const pr=new Ri;class lr{constructor(C,M,Y){this.bodyNode=C,this._driver=M,this._normalizer=Y,this._animations=new Map,this._playersById=new Map,this.players=[]}register(C,M){const Y=[],o=si(this._driver,M,Y,[]);if(Y.length)throw function Xe(Te){return new i.vHH(3503,!1)}();this._animations.set(C,o)}_buildPlayer(C,M,Y){const Ie=C.element,o=Mt(0,this._normalizer,0,C.keyframes,M,Y);return this._driver.animate(Ie,o,C.duration,C.delay,C.easing,[],!0)}create(C,M,Y={}){const Ie=[],o=this._animations.get(C);let d;const E=new Map;if(o?(d=Ti(this._driver,M,o,dt,Et,new Map,new Map,Y,pr,Ie),d.forEach(De=>{const Ze=nt(E,De.element,new Map);De.postStyleProps.forEach(pt=>Ze.set(pt,null))})):(Ie.push(function Ae(){return new i.vHH(3300,!1)}()),d=[]),Ie.length)throw function _t(Te){return new i.vHH(3504,!1)}();E.forEach((De,Ze)=>{De.forEach((pt,At)=>{De.set(At,this._driver.computeStyle(Ze,At,c.l3))})});const Z=et(d.map(De=>{const Ze=E.get(De.element);return this._buildPlayer(De,new Map,Ze)}));return this._playersById.set(C,Z),Z.onDestroy(()=>this.destroy(C)),this.players.push(Z),Z}destroy(C){const M=this._getPlayer(C);M.destroy(),this._playersById.delete(C);const Y=this.players.indexOf(M);Y>=0&&this.players.splice(Y,1)}_getPlayer(C){const M=this._playersById.get(C);if(!M)throw function ht(Te){return new i.vHH(3301,!1)}();return M}listen(C,M,Y,Ie){const o=wt(M,"","","");return gt(this._getPlayer(C),Y,o,Ie),()=>{}}command(C,M,Y,Ie){if("register"==Y)return void this.register(C,Ie[0]);if("create"==Y)return void this.create(C,M,Ie[0]||{});const o=this._getPlayer(C);switch(Y){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(Ie[0]));break;case"destroy":this.destroy(C)}}}const wi="ng-animate-queued",Xi="ng-animate-disabled",Jn=[],wr={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Cr={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},vi="__ng_removed";class Di{constructor(C,M=""){this.namespaceId=M;const Y=C&&C.hasOwnProperty("value");if(this.value=function q(Te){return Te??null}(Y?C.value:C),Y){const o=Ye(C);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(C){const M=C.params;if(M){const Y=this.options.params;Object.keys(M).forEach(Ie=>{null==Y[Ie]&&(Y[Ie]=M[Ie])})}}}const Ki="void",Hi=new Di(Ki);class ji{constructor(C,M,Y){this.id=C,this.hostElement=M,this._engine=Y,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+C,Gn(M,this._hostClassName)}listen(C,M,Y,Ie){if(!this._triggers.has(M))throw function Yt(Te,C){return new i.vHH(3302,!1)}();if(null==Y||0==Y.length)throw function Dt(Te){return new i.vHH(3303,!1)}();if(!function kt(Te){return"start"==Te||"done"==Te}(Y))throw function jt(Te,C){return new i.vHH(3400,!1)}();const o=nt(this._elementListeners,C,[]),d={name:M,phase:Y,callback:Ie};o.push(d);const E=nt(this._engine.statesByElement,C,new Map);return E.has(M)||(Gn(C,ye),Gn(C,ye+"-"+M),E.set(M,Hi)),()=>{this._engine.afterFlush(()=>{const L=o.indexOf(d);L>=0&&o.splice(L,1),this._triggers.has(M)||E.delete(M)})}}register(C,M){return!this._triggers.has(C)&&(this._triggers.set(C,M),!0)}_getTrigger(C){const M=this._triggers.get(C);if(!M)throw function V(Te){return new i.vHH(3401,!1)}();return M}trigger(C,M,Y,Ie=!0){const o=this._getTrigger(M),d=new J(this.id,M,C);let E=this._engine.statesByElement.get(C);E||(Gn(C,ye),Gn(C,ye+"-"+M),this._engine.statesByElement.set(C,E=new Map));let L=E.get(M);const Z=new Di(Y,this.id);if(!(Y&&Y.hasOwnProperty("value"))&&L&&Z.absorbOptions(L.options),E.set(M,Z),L||(L=Hi),Z.value!==Ki&&L.value===Z.value){if(!function Kn(Te,C){const M=Object.keys(Te),Y=Object.keys(C);if(M.length!=Y.length)return!1;for(let Ie=0;Ie{rt(C,xt),ze(C,Lt)})}return}const pt=nt(this._engine.playersByElement,C,[]);pt.forEach(Tt=>{Tt.namespaceId==this.id&&Tt.triggerName==M&&Tt.queued&&Tt.destroy()});let At=o.matchTransition(L.value,Z.value,C,Z.params),vt=!1;if(!At){if(!Ie)return;At=o.fallbackTransition,vt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:C,triggerName:M,transition:At,fromState:L,toState:Z,player:d,isFallbackTransition:vt}),vt||(Gn(C,wi),d.onStart(()=>{Wn(C,wi)})),d.onDone(()=>{let Tt=this.players.indexOf(d);Tt>=0&&this.players.splice(Tt,1);const xt=this._engine.playersByElement.get(C);if(xt){let Lt=xt.indexOf(d);Lt>=0&&xt.splice(Lt,1)}}),this.players.push(d),pt.push(d),d}deregister(C){this._triggers.delete(C),this._engine.statesByElement.forEach(M=>M.delete(C)),this._elementListeners.forEach((M,Y)=>{this._elementListeners.set(Y,M.filter(Ie=>Ie.name!=C))})}clearElementCache(C){this._engine.statesByElement.delete(C),this._elementListeners.delete(C);const M=this._engine.playersByElement.get(C);M&&(M.forEach(Y=>Y.destroy()),this._engine.playersByElement.delete(C))}_signalRemovalForInnerTriggers(C,M){const Y=this._engine.driver.query(C,qe,!0);Y.forEach(Ie=>{if(Ie[vi])return;const o=this._engine.fetchNamespacesByElement(Ie);o.size?o.forEach(d=>d.triggerLeaveAnimation(Ie,M,!1,!0)):this.clearElementCache(Ie)}),this._engine.afterFlushAnimationsDone(()=>Y.forEach(Ie=>this.clearElementCache(Ie)))}triggerLeaveAnimation(C,M,Y,Ie){const o=this._engine.statesByElement.get(C),d=new Map;if(o){const E=[];if(o.forEach((L,Z)=>{if(d.set(Z,L.value),this._triggers.has(Z)){const De=this.trigger(C,Z,Ki,Ie);De&&E.push(De)}}),E.length)return this._engine.markElementAsRemoved(this.id,C,!0,M,d),Y&&et(E).onDone(()=>this._engine.processLeaveNode(C)),!0}return!1}prepareLeaveAnimationListeners(C){const M=this._elementListeners.get(C),Y=this._engine.statesByElement.get(C);if(M&&Y){const Ie=new Set;M.forEach(o=>{const d=o.name;if(Ie.has(d))return;Ie.add(d);const L=this._triggers.get(d).fallbackTransition,Z=Y.get(d)||Hi,De=new Di(Ki),Ze=new J(this.id,d,C);this._engine.totalQueuedPlayers++,this._queue.push({element:C,triggerName:d,transition:L,fromState:Z,toState:De,player:Ze,isFallbackTransition:!0})})}}removeNode(C,M){const Y=this._engine;if(C.childElementCount&&this._signalRemovalForInnerTriggers(C,M),this.triggerLeaveAnimation(C,M,!0))return;let Ie=!1;if(Y.totalAnimations){const o=Y.players.length?Y.playersByQueriedElement.get(C):[];if(o&&o.length)Ie=!0;else{let d=C;for(;d=d.parentNode;)if(Y.statesByElement.get(d)){Ie=!0;break}}}if(this.prepareLeaveAnimationListeners(C),Ie)Y.markElementAsRemoved(this.id,C,!1,M);else{const o=C[vi];(!o||o===wr)&&(Y.afterFlush(()=>this.clearElementCache(C)),Y.destroyInnerAnimations(C),Y._onRemovalComplete(C,M))}}insertNode(C,M){Gn(C,this._hostClassName)}drainQueuedTransitions(C){const M=[];return this._queue.forEach(Y=>{const Ie=Y.player;if(Ie.destroyed)return;const o=Y.element,d=this._elementListeners.get(o);d&&d.forEach(E=>{if(E.name==Y.triggerName){const L=wt(o,Y.triggerName,Y.fromState.value,Y.toState.value);L._data=C,gt(Y.player,E.phase,L,E.callback)}}),Ie.markedForDestroy?this._engine.afterFlush(()=>{Ie.destroy()}):M.push(Y)}),this._queue=[],M.sort((Y,Ie)=>{const o=Y.transition.ast.depCount,d=Ie.transition.ast.depCount;return 0==o||0==d?o-d:this._engine.driver.containsElement(Y.element,Ie.element)?1:-1})}destroy(C){this.players.forEach(M=>M.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,C)}elementContainsData(C){let M=!1;return this._elementListeners.has(C)&&(M=!0),M=!!this._queue.find(Y=>Y.element===C)||M,M}}class Ei{constructor(C,M,Y){this.bodyNode=C,this.driver=M,this._normalizer=Y,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(Ie,o)=>{}}_onRemovalComplete(C,M){this.onRemovalComplete(C,M)}get queuedPlayers(){const C=[];return this._namespaceList.forEach(M=>{M.players.forEach(Y=>{Y.queued&&C.push(Y)})}),C}createNamespace(C,M){const Y=new ji(C,M,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,M)?this._balanceNamespaceList(Y,M):(this.newHostElements.set(M,Y),this.collectEnterElement(M)),this._namespaceLookup[C]=Y}_balanceNamespaceList(C,M){const Y=this._namespaceList,Ie=this.namespacesByHostElement;if(Y.length-1>=0){let d=!1,E=this.driver.getParentElement(M);for(;E;){const L=Ie.get(E);if(L){const Z=Y.indexOf(L);Y.splice(Z+1,0,C),d=!0;break}E=this.driver.getParentElement(E)}d||Y.unshift(C)}else Y.push(C);return Ie.set(M,C),C}register(C,M){let Y=this._namespaceLookup[C];return Y||(Y=this.createNamespace(C,M)),Y}registerTrigger(C,M,Y){let Ie=this._namespaceLookup[C];Ie&&Ie.register(M,Y)&&this.totalAnimations++}destroy(C,M){if(!C)return;const Y=this._fetchNamespace(C);this.afterFlush(()=>{this.namespacesByHostElement.delete(Y.hostElement),delete this._namespaceLookup[C];const Ie=this._namespaceList.indexOf(Y);Ie>=0&&this._namespaceList.splice(Ie,1)}),this.afterFlushAnimationsDone(()=>Y.destroy(M))}_fetchNamespace(C){return this._namespaceLookup[C]}fetchNamespacesByElement(C){const M=new Set,Y=this.statesByElement.get(C);if(Y)for(let Ie of Y.values())if(Ie.namespaceId){const o=this._fetchNamespace(Ie.namespaceId);o&&M.add(o)}return M}trigger(C,M,Y,Ie){if(Qe(M)){const o=this._fetchNamespace(C);if(o)return o.trigger(M,Y,Ie),!0}return!1}insertNode(C,M,Y,Ie){if(!Qe(M))return;const o=M[vi];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const d=this.collectedLeaveElements.indexOf(M);d>=0&&this.collectedLeaveElements.splice(d,1)}if(C){const d=this._fetchNamespace(C);d&&d.insertNode(M,Y)}Ie&&this.collectEnterElement(M)}collectEnterElement(C){this.collectedEnterElements.push(C)}markElementAsDisabled(C,M){M?this.disabledNodes.has(C)||(this.disabledNodes.add(C),Gn(C,Xi)):this.disabledNodes.has(C)&&(this.disabledNodes.delete(C),Wn(C,Xi))}removeNode(C,M,Y,Ie){if(Qe(M)){const o=C?this._fetchNamespace(C):null;if(o?o.removeNode(M,Ie):this.markElementAsRemoved(C,M,!1,Ie),Y){const d=this.namespacesByHostElement.get(M);d&&d.id!==C&&d.removeNode(M,Ie)}}else this._onRemovalComplete(M,Ie)}markElementAsRemoved(C,M,Y,Ie,o){this.collectedLeaveElements.push(M),M[vi]={namespaceId:C,setForRemoval:Ie,hasAnimation:Y,removedBeforeQueried:!1,previousTriggersValues:o}}listen(C,M,Y,Ie,o){return Qe(M)?this._fetchNamespace(C).listen(M,Y,Ie,o):()=>{}}_buildInstruction(C,M,Y,Ie,o){return C.transition.build(this.driver,C.element,C.fromState.value,C.toState.value,Y,Ie,C.fromState.options,C.toState.options,M,o)}destroyInnerAnimations(C){let M=this.driver.query(C,qe,!0);M.forEach(Y=>this.destroyActiveAnimationsForElement(Y)),0!=this.playersByQueriedElement.size&&(M=this.driver.query(C,Fe,!0),M.forEach(Y=>this.finishActiveQueriedAnimationOnElement(Y)))}destroyActiveAnimationsForElement(C){const M=this.playersByElement.get(C);M&&M.forEach(Y=>{Y.queued?Y.markedForDestroy=!0:Y.destroy()})}finishActiveQueriedAnimationOnElement(C){const M=this.playersByQueriedElement.get(C);M&&M.forEach(Y=>Y.finish())}whenRenderingDone(){return new Promise(C=>{if(this.players.length)return et(this.players).onDone(()=>C());C()})}processLeaveNode(C){const M=C[vi];if(M&&M.setForRemoval){if(C[vi]=wr,M.namespaceId){this.destroyInnerAnimations(C);const Y=this._fetchNamespace(M.namespaceId);Y&&Y.clearElementCache(C)}this._onRemovalComplete(C,M.setForRemoval)}C.classList?.contains(Xi)&&this.markElementAsDisabled(C,!1),this.driver.query(C,".ng-animate-disabled",!0).forEach(Y=>{this.markElementAsDisabled(Y,!1)})}flush(C=-1){let M=[];if(this.newHostElements.size&&(this.newHostElements.forEach((Y,Ie)=>this._balanceNamespaceList(Y,Ie)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let Y=0;YY()),this._flushFns=[],this._whenQuietFns.length){const Y=this._whenQuietFns;this._whenQuietFns=[],M.length?et(M).onDone(()=>{Y.forEach(Ie=>Ie())}):Y.forEach(Ie=>Ie())}}reportError(C){throw function Ee(Te){return new i.vHH(3402,!1)}()}_flushAnimations(C,M){const Y=new Ri,Ie=[],o=new Map,d=[],E=new Map,L=new Map,Z=new Map,De=new Set;this.disabledNodes.forEach(cn=>{De.add(cn);const dn=this.driver.query(cn,".ng-animate-queued",!0);for(let pn=0;pn{const pn=dt+Tt++;vt.set(dn,pn),cn.forEach(Cn=>Gn(Cn,pn))});const xt=[],Lt=new Set,Ot=new Set;for(let cn=0;cnLt.add(Cn)):Ot.add(dn))}const Ft=new Map,Nt=Sn(pt,Array.from(Lt));Nt.forEach((cn,dn)=>{const pn=Et+Tt++;Ft.set(dn,pn),cn.forEach(Cn=>Gn(Cn,pn))}),C.push(()=>{At.forEach((cn,dn)=>{const pn=vt.get(dn);cn.forEach(Cn=>Wn(Cn,pn))}),Nt.forEach((cn,dn)=>{const pn=Ft.get(dn);cn.forEach(Cn=>Wn(Cn,pn))}),xt.forEach(cn=>{this.processLeaveNode(cn)})});const Vt=[],Wt=[];for(let cn=this._namespaceList.length-1;cn>=0;cn--)this._namespaceList[cn].drainQueuedTransitions(M).forEach(pn=>{const Cn=pn.player,Qn=pn.element;if(Vt.push(Cn),this.collectedEnterElements.length){const Mi=Qn[vi];if(Mi&&Mi.setForMove){if(Mi.previousTriggersValues&&Mi.previousTriggersValues.has(pn.triggerName)){const is=Mi.previousTriggersValues.get(pn.triggerName),dr=this.statesByElement.get(pn.element);if(dr&&dr.has(pn.triggerName)){const ps=dr.get(pn.triggerName);ps.value=is,dr.set(pn.triggerName,ps)}}return void Cn.destroy()}}const Pn=!Ze||!this.driver.containsElement(Ze,Qn),ei=Ft.get(Qn),ri=vt.get(Qn),oi=this._buildInstruction(pn,Y,ri,ei,Pn);if(oi.errors&&oi.errors.length)return void Wt.push(oi);if(Pn)return Cn.onStart(()=>rt(Qn,oi.fromStyles)),Cn.onDestroy(()=>ze(Qn,oi.toStyles)),void Ie.push(Cn);if(pn.isFallbackTransition)return Cn.onStart(()=>rt(Qn,oi.fromStyles)),Cn.onDestroy(()=>ze(Qn,oi.toStyles)),void Ie.push(Cn);const xi=[];oi.timelines.forEach(Mi=>{Mi.stretchStartingKeyframe=!0,this.disabledNodes.has(Mi.element)||xi.push(Mi)}),oi.timelines=xi,Y.append(Qn,oi.timelines),d.push({instruction:oi,player:Cn,element:Qn}),oi.queriedElements.forEach(Mi=>nt(E,Mi,[]).push(Cn)),oi.preStyleProps.forEach((Mi,is)=>{if(Mi.size){let dr=L.get(is);dr||L.set(is,dr=new Set),Mi.forEach((ps,Rs)=>dr.add(Rs))}}),oi.postStyleProps.forEach((Mi,is)=>{let dr=Z.get(is);dr||Z.set(is,dr=new Set),Mi.forEach((ps,Rs)=>dr.add(Rs))})});if(Wt.length){const cn=[];Wt.forEach(dn=>{cn.push(function _e(Te,C){return new i.vHH(3505,!1)}())}),Vt.forEach(dn=>dn.destroy()),this.reportError(cn)}const zt=new Map,Qt=new Map;d.forEach(cn=>{const dn=cn.element;Y.has(dn)&&(Qt.set(dn,dn),this._beforeAnimationBuild(cn.player.namespaceId,cn.instruction,zt))}),Ie.forEach(cn=>{const dn=cn.element;this._getPreviousPlayers(dn,!1,cn.namespaceId,cn.triggerName,null).forEach(Cn=>{nt(zt,dn,[]).push(Cn),Cn.destroy()})});const tn=xt.filter(cn=>di(cn,L,Z)),sn=new Map;Kt(sn,this.driver,Ot,Z,c.l3).forEach(cn=>{di(cn,L,Z)&&tn.push(cn)});const hn=new Map;At.forEach((cn,dn)=>{Kt(hn,this.driver,new Set(cn),L,c.k1)}),tn.forEach(cn=>{const dn=sn.get(cn),pn=hn.get(cn);sn.set(cn,new Map([...Array.from(dn?.entries()??[]),...Array.from(pn?.entries()??[])]))});const gn=[],vn=[],yn={};d.forEach(cn=>{const{element:dn,player:pn,instruction:Cn}=cn;if(Y.has(dn)){if(De.has(dn))return pn.onDestroy(()=>ze(dn,Cn.toStyles)),pn.disabled=!0,pn.overrideTotalTime(Cn.totalTime),void Ie.push(pn);let Qn=yn;if(Qt.size>1){let ei=dn;const ri=[];for(;ei=ei.parentNode;){const oi=Qt.get(ei);if(oi){Qn=oi;break}ri.push(ei)}ri.forEach(oi=>Qt.set(oi,Qn))}const Pn=this._buildAnimation(pn.namespaceId,Cn,zt,o,hn,sn);if(pn.setRealPlayer(Pn),Qn===yn)gn.push(pn);else{const ei=this.playersByElement.get(Qn);ei&&ei.length&&(pn.parentPlayer=et(ei)),Ie.push(pn)}}else rt(dn,Cn.fromStyles),pn.onDestroy(()=>ze(dn,Cn.toStyles)),vn.push(pn),De.has(dn)&&Ie.push(pn)}),vn.forEach(cn=>{const dn=o.get(cn.element);if(dn&&dn.length){const pn=et(dn);cn.setRealPlayer(pn)}}),Ie.forEach(cn=>{cn.parentPlayer?cn.syncPlayerEvents(cn.parentPlayer):cn.destroy()});for(let cn=0;cn!Pn.destroyed);Qn.length?ii(this,dn,Qn):this.processLeaveNode(dn)}return xt.length=0,gn.forEach(cn=>{this.players.push(cn),cn.onDone(()=>{cn.destroy();const dn=this.players.indexOf(cn);this.players.splice(dn,1)}),cn.play()}),gn}elementContainsData(C,M){let Y=!1;const Ie=M[vi];return Ie&&Ie.setForRemoval&&(Y=!0),this.playersByElement.has(M)&&(Y=!0),this.playersByQueriedElement.has(M)&&(Y=!0),this.statesByElement.has(M)&&(Y=!0),this._fetchNamespace(C).elementContainsData(M)||Y}afterFlush(C){this._flushFns.push(C)}afterFlushAnimationsDone(C){this._whenQuietFns.push(C)}_getPreviousPlayers(C,M,Y,Ie,o){let d=[];if(M){const E=this.playersByQueriedElement.get(C);E&&(d=E)}else{const E=this.playersByElement.get(C);if(E){const L=!o||o==Ki;E.forEach(Z=>{Z.queued||!L&&Z.triggerName!=Ie||d.push(Z)})}}return(Y||Ie)&&(d=d.filter(E=>!(Y&&Y!=E.namespaceId||Ie&&Ie!=E.triggerName))),d}_beforeAnimationBuild(C,M,Y){const o=M.element,d=M.isRemovalTransition?void 0:C,E=M.isRemovalTransition?void 0:M.triggerName;for(const L of M.timelines){const Z=L.element,De=Z!==o,Ze=nt(Y,Z,[]);this._getPreviousPlayers(Z,De,d,E,M.toState).forEach(At=>{const vt=At.getRealPlayer();vt.beforeDestroy&&vt.beforeDestroy(),At.destroy(),Ze.push(At)})}rt(o,M.fromStyles)}_buildAnimation(C,M,Y,Ie,o,d){const E=M.triggerName,L=M.element,Z=[],De=new Set,Ze=new Set,pt=M.timelines.map(vt=>{const Tt=vt.element;De.add(Tt);const xt=Tt[vi];if(xt&&xt.removedBeforeQueried)return new c.ZN(vt.duration,vt.delay);const Lt=Tt!==L,Ot=function Nn(Te){const C=[];return Yn(Te,C),C}((Y.get(Tt)||Jn).map(zt=>zt.getRealPlayer())).filter(zt=>!!zt.element&&zt.element===Tt),Ft=o.get(Tt),Nt=d.get(Tt),Vt=Mt(0,this._normalizer,0,vt.keyframes,Ft,Nt),Wt=this._buildPlayer(vt,Vt,Ot);if(vt.subTimeline&&Ie&&Ze.add(Tt),Lt){const zt=new J(C,E,Tt);zt.setRealPlayer(Wt),Z.push(zt)}return Wt});Z.forEach(vt=>{nt(this.playersByQueriedElement,vt.element,[]).push(vt),vt.onDone(()=>function Ne(Te,C,M){let Y=Te.get(C);if(Y){if(Y.length){const Ie=Y.indexOf(M);Y.splice(Ie,1)}0==Y.length&&Te.delete(C)}return Y}(this.playersByQueriedElement,vt.element,vt))}),De.forEach(vt=>Gn(vt,xe));const At=et(pt);return At.onDestroy(()=>{De.forEach(vt=>Wn(vt,xe)),ze(L,M.toStyles)}),Ze.forEach(vt=>{nt(Ie,vt,[]).push(At)}),At}_buildPlayer(C,M,Y){return M.length>0?this.driver.animate(C.element,M,C.duration,C.delay,C.easing,Y):new c.ZN(C.duration,C.delay)}}class J{constructor(C,M,Y){this.namespaceId=C,this.triggerName=M,this.element=Y,this._player=new c.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(C){this._containsRealPlayer||(this._player=C,this._queuedCallbacks.forEach((M,Y)=>{M.forEach(Ie=>gt(C,Y,void 0,Ie))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(C.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(C){this.totalTime=C}syncPlayerEvents(C){const M=this._player;M.triggerCallback&&C.onStart(()=>M.triggerCallback("start")),C.onDone(()=>this.finish()),C.onDestroy(()=>this.destroy())}_queueEvent(C,M){nt(this._queuedCallbacks,C,[]).push(M)}onDone(C){this.queued&&this._queueEvent("done",C),this._player.onDone(C)}onStart(C){this.queued&&this._queueEvent("start",C),this._player.onStart(C)}onDestroy(C){this.queued&&this._queueEvent("destroy",C),this._player.onDestroy(C)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(C){this.queued||this._player.setPosition(C)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(C){const M=this._player;M.triggerCallback&&M.triggerCallback(C)}}function Qe(Te){return Te&&1===Te.nodeType}function Xt(Te,C){const M=Te.style.display;return Te.style.display=C??"none",M}function Kt(Te,C,M,Y,Ie){const o=[];M.forEach(L=>o.push(Xt(L)));const d=[];Y.forEach((L,Z)=>{const De=new Map;L.forEach(Ze=>{const pt=C.computeStyle(Z,Ze,Ie);De.set(Ze,pt),(!pt||0==pt.length)&&(Z[vi]=Cr,d.push(Z))}),Te.set(Z,De)});let E=0;return M.forEach(L=>Xt(L,o[E++])),d}function Sn(Te,C){const M=new Map;if(Te.forEach(E=>M.set(E,[])),0==C.length)return M;const Ie=new Set(C),o=new Map;function d(E){if(!E)return 1;let L=o.get(E);if(L)return L;const Z=E.parentNode;return L=M.has(Z)?Z:Ie.has(Z)?1:d(Z),o.set(E,L),L}return C.forEach(E=>{const L=d(E);1!==L&&M.get(L).push(E)}),M}function Gn(Te,C){Te.classList?.add(C)}function Wn(Te,C){Te.classList?.remove(C)}function ii(Te,C,M){et(M).onDone(()=>Te.processLeaveNode(C))}function Yn(Te,C){for(let M=0;MIe.add(o)):C.set(Te,Y),M.delete(Te),!0}class on{constructor(C,M,Y){this.bodyNode=C,this._driver=M,this._normalizer=Y,this._triggerCache={},this.onRemovalComplete=(Ie,o)=>{},this._transitionEngine=new Ei(C,M,Y),this._timelineEngine=new lr(C,M,Y),this._transitionEngine.onRemovalComplete=(Ie,o)=>this.onRemovalComplete(Ie,o)}registerTrigger(C,M,Y,Ie,o){const d=C+"-"+Ie;let E=this._triggerCache[d];if(!E){const L=[],De=si(this._driver,o,L,[]);if(L.length)throw function tt(Te,C){return new i.vHH(3404,!1)}();E=function zr(Te,C,M){return new Vi(Te,C,M)}(Ie,De,this._normalizer),this._triggerCache[d]=E}this._transitionEngine.registerTrigger(M,Ie,E)}register(C,M){this._transitionEngine.register(C,M)}destroy(C,M){this._transitionEngine.destroy(C,M)}onInsert(C,M,Y,Ie){this._transitionEngine.insertNode(C,M,Y,Ie)}onRemove(C,M,Y,Ie){this._transitionEngine.removeNode(C,M,Ie||!1,Y)}disableAnimations(C,M){this._transitionEngine.markElementAsDisabled(C,M)}process(C,M,Y,Ie){if("@"==Y.charAt(0)){const[o,d]=Q(Y);this._timelineEngine.command(o,M,d,Ie)}else this._transitionEngine.trigger(C,M,Y,Ie)}listen(C,M,Y,Ie,o){if("@"==Y.charAt(0)){const[d,E]=Q(Y);return this._timelineEngine.listen(d,M,E,o)}return this._transitionEngine.listen(C,M,Y,Ie,o)}flush(C=-1){this._transitionEngine.flush(C)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let cr=(()=>{class Te{constructor(M,Y,Ie){this._element=M,this._startStyles=Y,this._endStyles=Ie,this._state=0;let o=Te.initialStylesByElement.get(M);o||Te.initialStylesByElement.set(M,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&ze(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ze(this._element,this._initialStyles),this._endStyles&&(ze(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Te.initialStylesByElement.delete(this._element),this._startStyles&&(rt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(rt(this._element,this._endStyles),this._endStyles=null),ze(this._element,this._initialStyles),this._state=3)}}return Te.initialStylesByElement=new WeakMap,Te})();function Ii(Te){let C=null;return Te.forEach((M,Y)=>{(function li(Te){return"display"===Te||"position"===Te})(Y)&&(C=C||new Map,C.set(Y,M))}),C}class Dr{constructor(C,M,Y,Ie){this.element=C,this.keyframes=M,this.options=Y,this._specialStyles=Ie,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=Y.duration,this._delay=Y.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(C=>C()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const C=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,C,this.options),this._finalKeyframe=C.length?C[C.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(C){const M=[];return C.forEach(Y=>{M.push(Object.fromEntries(Y))}),M}_triggerWebAnimation(C,M,Y){return C.animate(this._convertKeyframesToObject(M),Y)}onStart(C){this._originalOnStartFns.push(C),this._onStartFns.push(C)}onDone(C){this._originalOnDoneFns.push(C),this._onDoneFns.push(C)}onDestroy(C){this._onDestroyFns.push(C)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(C=>C()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(C=>C()),this._onDestroyFns=[])}setPosition(C){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=C*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const C=new Map;this.hasStarted()&&this._finalKeyframe.forEach((Y,Ie)=>{"offset"!==Ie&&C.set(Ie,this._finished?Y:On(this.element,Ie))}),this.currentSnapshot=C}triggerCallback(C){const M="start"===C?this._onStartFns:this._onDoneFns;M.forEach(Y=>Y()),M.length=0}}class Qi{validateStyleProperty(C){return!0}validateAnimatableStyleProperty(C){return!0}matchesElement(C,M){return!1}containsElement(C,M){return H(C,M)}getParentElement(C){return U(C)}query(C,M,Y){return f(C,M,Y)}computeStyle(C,M,Y){return window.getComputedStyle(C)[M]}animate(C,M,Y,Ie,o,d=[]){const L={duration:Y,delay:Ie,fill:0==Ie?"both":"forwards"};o&&(L.easing=o);const Z=new Map,De=d.filter(At=>At instanceof Dr);(function xn(Te,C){return 0===Te||0===C})(Y,Ie)&&De.forEach(At=>{At.currentSnapshot.forEach((vt,Tt)=>Z.set(Tt,vt))});let Ze=function bt(Te){return Te.length?Te[0]instanceof Map?Te:Te.map(C=>Pe(C)):[]}(M).map(At=>ct(At));Ze=function kn(Te,C,M){if(M.size&&C.length){let Y=C[0],Ie=[];if(M.forEach((o,d)=>{Y.has(d)||Ie.push(d),Y.set(d,o)}),Ie.length)for(let o=1;od.set(E,On(Te,E)))}}return C}(C,Ze,Z);const pt=function Hn(Te,C){let M=null,Y=null;return Array.isArray(C)&&C.length?(M=Ii(C[0]),C.length>1&&(Y=Ii(C[C.length-1]))):C instanceof Map&&(M=Ii(C)),M||Y?new cr(Te,M,Y):null}(C,Ze);return new Dr(C,Ze,L,pt)}}var te=u(6895);let K=(()=>{class Te extends c._j{constructor(M,Y){super(),this._nextAnimationId=0,this._renderer=M.createRenderer(Y.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}})}build(M){const Y=this._nextAnimationId.toString();this._nextAnimationId++;const Ie=Array.isArray(M)?(0,c.vP)(M):M;return Zt(this._renderer,null,Y,"register",[Ie]),new $(Y,this._renderer)}}return Te.\u0275fac=function(M){return new(M||Te)(i.LFG(i.FYo),i.LFG(te.K0))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})();class $ extends c.LC{constructor(C,M){super(),this._id=C,this._renderer=M}create(C,M){return new Ue(this._id,C,M||{},this._renderer)}}class Ue{constructor(C,M,Y,Ie){this.id=C,this.element=M,this._renderer=Ie,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",Y)}_listen(C,M){return this._renderer.listen(this.element,`@@${this.id}:${C}`,M)}_command(C,...M){return Zt(this._renderer,this.element,this.id,C,M)}onDone(C){this._listen("done",C)}onStart(C){this._listen("start",C)}onDestroy(C){this._listen("destroy",C)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(C){this._command("setPosition",C)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function Zt(Te,C,M,Y,Ie){return Te.setProperty(C,`@@${M}:${Y}`,Ie)}const bi="@.disabled";let mi=(()=>{class Te{constructor(M,Y,Ie){this.delegate=M,this.engine=Y,this._zone=Ie,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),Y.onRemovalComplete=(o,d)=>{const E=d?.parentNode(o);E&&d.removeChild(E,o)}}createRenderer(M,Y){const o=this.delegate.createRenderer(M,Y);if(!(M&&Y&&Y.data&&Y.data.animation)){let De=this._rendererCache.get(o);return De||(De=new ki("",o,this.engine),this._rendererCache.set(o,De)),De}const d=Y.id,E=Y.id+"-"+this._currentId;this._currentId++,this.engine.register(E,M);const L=De=>{Array.isArray(De)?De.forEach(L):this.engine.registerTrigger(d,E,M,De.name,De)};return Y.data.animation.forEach(L),new Lr(this,E,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(M,Y,Ie){M>=0&&MY(Ie)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[d,E]=o;d(E)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([Y,Ie]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return Te.\u0275fac=function(M){return new(M||Te)(i.LFG(i.FYo),i.LFG(on),i.LFG(i.R0b))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})();class ki{constructor(C,M,Y){this.namespaceId=C,this.delegate=M,this.engine=Y,this.destroyNode=this.delegate.destroyNode?Ie=>M.destroyNode(Ie):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(C,M){return this.delegate.createElement(C,M)}createComment(C){return this.delegate.createComment(C)}createText(C){return this.delegate.createText(C)}appendChild(C,M){this.delegate.appendChild(C,M),this.engine.onInsert(this.namespaceId,M,C,!1)}insertBefore(C,M,Y,Ie=!0){this.delegate.insertBefore(C,M,Y),this.engine.onInsert(this.namespaceId,M,C,Ie)}removeChild(C,M,Y){this.engine.onRemove(this.namespaceId,M,this.delegate,Y)}selectRootElement(C,M){return this.delegate.selectRootElement(C,M)}parentNode(C){return this.delegate.parentNode(C)}nextSibling(C){return this.delegate.nextSibling(C)}setAttribute(C,M,Y,Ie){this.delegate.setAttribute(C,M,Y,Ie)}removeAttribute(C,M,Y){this.delegate.removeAttribute(C,M,Y)}addClass(C,M){this.delegate.addClass(C,M)}removeClass(C,M){this.delegate.removeClass(C,M)}setStyle(C,M,Y,Ie){this.delegate.setStyle(C,M,Y,Ie)}removeStyle(C,M,Y){this.delegate.removeStyle(C,M,Y)}setProperty(C,M,Y){"@"==M.charAt(0)&&M==bi?this.disableAnimations(C,!!Y):this.delegate.setProperty(C,M,Y)}setValue(C,M){this.delegate.setValue(C,M)}listen(C,M,Y){return this.delegate.listen(C,M,Y)}disableAnimations(C,M){this.engine.disableAnimations(C,M)}}class Lr extends ki{constructor(C,M,Y,Ie){super(M,Y,Ie),this.factory=C,this.namespaceId=M}setProperty(C,M,Y){"@"==M.charAt(0)?"."==M.charAt(1)&&M==bi?this.disableAnimations(C,Y=void 0===Y||!!Y):this.engine.process(this.namespaceId,C,M.slice(1),Y):this.delegate.setProperty(C,M,Y)}listen(C,M,Y){if("@"==M.charAt(0)){const Ie=function Br(Te){switch(Te){case"body":return document.body;case"document":return document;case"window":return window;default:return Te}}(C);let o=M.slice(1),d="";return"@"!=o.charAt(0)&&([o,d]=function Or(Te){const C=Te.indexOf(".");return[Te.substring(0,C),Te.slice(C+1)]}(o)),this.engine.listen(this.namespaceId,Ie,o,d,E=>{this.factory.scheduleListenerCallback(E._data||-1,Y,E)})}return this.delegate.listen(C,M,Y)}}const Ui=[{provide:c._j,useClass:K},{provide:or,useFactory:function ns(){return new $r}},{provide:on,useClass:(()=>{class Te extends on{constructor(M,Y,Ie,o){super(M.body,Y,Ie)}ngOnDestroy(){this.flush()}}return Te.\u0275fac=function(M){return new(M||Te)(i.LFG(te.K0),i.LFG(ve),i.LFG(or),i.LFG(i.z2F))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})()},{provide:i.FYo,useFactory:function Nr(Te,C,M){return new mi(Te,C,M)},deps:[a.se,on,i.R0b]}],hi=[{provide:ve,useFactory:()=>new Qi},{provide:i.QbO,useValue:"BrowserAnimations"},...Ui],Vr=[{provide:ve,useClass:T},{provide:i.QbO,useValue:"NoopAnimations"},...Ui];let Ji=(()=>{class Te{static withConfig(M){return{ngModule:Te,providers:M.disableAnimations?Vr:hi}}}return Te.\u0275fac=function(M){return new(M||Te)},Te.\u0275mod=i.oAB({type:Te}),Te.\u0275inj=i.cJS({providers:hi,imports:[a.b2]}),Te})()},1481:(Ct,ke,u)=>{"use strict";u.d(ke,{Dx:()=>H,H7:()=>qt,b2:()=>p,q6:()=>R,se:()=>Ae});var i=u(6895),a=u(4650);class c extends i.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class v extends c{static makeCurrent(){(0,i.HT)(new v)}onAndCancel(yt,lt,Bt){return yt.addEventListener(lt,Bt,!1),()=>{yt.removeEventListener(lt,Bt,!1)}}dispatchEvent(yt,lt){yt.dispatchEvent(lt)}remove(yt){yt.parentNode&&yt.parentNode.removeChild(yt)}createElement(yt,lt){return(lt=lt||this.getDefaultDocument()).createElement(yt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(yt){return yt.nodeType===Node.ELEMENT_NODE}isShadowRoot(yt){return yt instanceof DocumentFragment}getGlobalEventTarget(yt,lt){return"window"===lt?window:"document"===lt?yt:"body"===lt?yt.body:null}getBaseHref(yt){const lt=function h(){return b=b||document.querySelector("base"),b?b.getAttribute("href"):null}();return null==lt?null:function w(Rt){g=g||document.createElement("a"),g.setAttribute("href",Rt);const yt=g.pathname;return"/"===yt.charAt(0)?yt:`/${yt}`}(lt)}resetBaseElement(){b=null}getUserAgent(){return window.navigator.userAgent}getCookie(yt){return(0,i.Mx)(document.cookie,yt)}}let g,b=null;const B=new a.OlP("TRANSITION_ID"),P=[{provide:a.ip1,useFactory:function O(Rt,yt,lt){return()=>{lt.get(a.CZH).donePromise.then(()=>{const Bt=(0,i.q)(),Jt=yt.querySelectorAll(`style[ng-transition="${Rt}"]`);for(let xn=0;xn{class Rt{build(){return new XMLHttpRequest}}return Rt.\u0275fac=function(lt){return new(lt||Rt)},Rt.\u0275prov=a.Yz7({token:Rt,factory:Rt.\u0275fac}),Rt})();const z=new a.OlP("EventManagerPlugins");let ae=(()=>{class Rt{constructor(lt,Bt){this._zone=Bt,this._eventNameToPlugin=new Map,lt.forEach(Jt=>Jt.manager=this),this._plugins=lt.slice().reverse()}addEventListener(lt,Bt,Jt){return this._findPluginFor(Bt).addEventListener(lt,Bt,Jt)}addGlobalEventListener(lt,Bt,Jt){return this._findPluginFor(Bt).addGlobalEventListener(lt,Bt,Jt)}getZone(){return this._zone}_findPluginFor(lt){const Bt=this._eventNameToPlugin.get(lt);if(Bt)return Bt;const Jt=this._plugins;for(let xn=0;xn{class Rt{constructor(){this._stylesSet=new Set}addStyles(lt){const Bt=new Set;lt.forEach(Jt=>{this._stylesSet.has(Jt)||(this._stylesSet.add(Jt),Bt.add(Jt))}),this.onStylesAdded(Bt)}onStylesAdded(lt){}getAllStyles(){return Array.from(this._stylesSet)}}return Rt.\u0275fac=function(lt){return new(lt||Rt)},Rt.\u0275prov=a.Yz7({token:Rt,factory:Rt.\u0275fac}),Rt})(),le=(()=>{class Rt extends ue{constructor(lt){super(),this._doc=lt,this._hostNodes=new Map,this._hostNodes.set(lt.head,[])}_addStylesToHost(lt,Bt,Jt){lt.forEach(xn=>{const kn=this._doc.createElement("style");kn.textContent=xn,Jt.push(Bt.appendChild(kn))})}addHost(lt){const Bt=[];this._addStylesToHost(this._stylesSet,lt,Bt),this._hostNodes.set(lt,Bt)}removeHost(lt){const Bt=this._hostNodes.get(lt);Bt&&Bt.forEach(ge),this._hostNodes.delete(lt)}onStylesAdded(lt){this._hostNodes.forEach((Bt,Jt)=>{this._addStylesToHost(lt,Jt,Bt)})}ngOnDestroy(){this._hostNodes.forEach(lt=>lt.forEach(ge))}}return Rt.\u0275fac=function(lt){return new(lt||Rt)(a.LFG(i.K0))},Rt.\u0275prov=a.Yz7({token:Rt,factory:Rt.\u0275fac}),Rt})();function ge(Rt){(0,i.q)().remove(Rt)}const W={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},ie=/%COMP%/g;function tt(Rt,yt,lt){for(let Bt=0;Bt{if("__ngUnwrap__"===yt)return Rt;!1===Rt(yt)&&(yt.preventDefault(),yt.returnValue=!1)}}let Ae=(()=>{class Rt{constructor(lt,Bt,Jt){this.eventManager=lt,this.sharedStylesHost=Bt,this.appId=Jt,this.rendererByCompId=new Map,this.defaultRenderer=new _t(lt)}createRenderer(lt,Bt){if(!lt||!Bt)return this.defaultRenderer;switch(Bt.encapsulation){case a.ifc.Emulated:{let Jt=this.rendererByCompId.get(Bt.id);return Jt||(Jt=new jt(this.eventManager,this.sharedStylesHost,Bt,this.appId),this.rendererByCompId.set(Bt.id,Jt)),Jt.applyToHost(lt),Jt}case 1:case a.ifc.ShadowDom:return new V(this.eventManager,this.sharedStylesHost,lt,Bt);default:if(!this.rendererByCompId.has(Bt.id)){const Jt=tt(Bt.id,Bt.styles,[]);this.sharedStylesHost.addStyles(Jt),this.rendererByCompId.set(Bt.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Rt.\u0275fac=function(lt){return new(lt||Rt)(a.LFG(ae),a.LFG(le),a.LFG(a.AFp))},Rt.\u0275prov=a.Yz7({token:Rt,factory:Rt.\u0275fac}),Rt})();class _t{constructor(yt){this.eventManager=yt,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(yt,lt){return lt?document.createElementNS(W[lt]||lt,yt):document.createElement(yt)}createComment(yt){return document.createComment(yt)}createText(yt){return document.createTextNode(yt)}appendChild(yt,lt){(Dt(yt)?yt.content:yt).appendChild(lt)}insertBefore(yt,lt,Bt){yt&&(Dt(yt)?yt.content:yt).insertBefore(lt,Bt)}removeChild(yt,lt){yt&&yt.removeChild(lt)}selectRootElement(yt,lt){let Bt="string"==typeof yt?document.querySelector(yt):yt;if(!Bt)throw new Error(`The selector "${yt}" did not match any elements`);return lt||(Bt.textContent=""),Bt}parentNode(yt){return yt.parentNode}nextSibling(yt){return yt.nextSibling}setAttribute(yt,lt,Bt,Jt){if(Jt){lt=Jt+":"+lt;const xn=W[Jt];xn?yt.setAttributeNS(xn,lt,Bt):yt.setAttribute(lt,Bt)}else yt.setAttribute(lt,Bt)}removeAttribute(yt,lt,Bt){if(Bt){const Jt=W[Bt];Jt?yt.removeAttributeNS(Jt,lt):yt.removeAttribute(`${Bt}:${lt}`)}else yt.removeAttribute(lt)}addClass(yt,lt){yt.classList.add(lt)}removeClass(yt,lt){yt.classList.remove(lt)}setStyle(yt,lt,Bt,Jt){Jt&(a.JOm.DashCase|a.JOm.Important)?yt.style.setProperty(lt,Bt,Jt&a.JOm.Important?"important":""):yt.style[lt]=Bt}removeStyle(yt,lt,Bt){Bt&a.JOm.DashCase?yt.style.removeProperty(lt):yt.style[lt]=""}setProperty(yt,lt,Bt){yt[lt]=Bt}setValue(yt,lt){yt.nodeValue=lt}listen(yt,lt,Bt){return"string"==typeof yt?this.eventManager.addGlobalEventListener(yt,lt,me(Bt)):this.eventManager.addEventListener(yt,lt,me(Bt))}}function Dt(Rt){return"TEMPLATE"===Rt.tagName&&void 0!==Rt.content}class jt extends _t{constructor(yt,lt,Bt,Jt){super(yt),this.component=Bt;const xn=tt(Jt+"-"+Bt.id,Bt.styles,[]);lt.addStyles(xn),this.contentAttr=function it(Rt){return"_ngcontent-%COMP%".replace(ie,Rt)}(Jt+"-"+Bt.id),this.hostAttr=function Ke(Rt){return"_nghost-%COMP%".replace(ie,Rt)}(Jt+"-"+Bt.id)}applyToHost(yt){super.setAttribute(yt,this.hostAttr,"")}createElement(yt,lt){const Bt=super.createElement(yt,lt);return super.setAttribute(Bt,this.contentAttr,""),Bt}}class V extends _t{constructor(yt,lt,Bt,Jt){super(yt),this.sharedStylesHost=lt,this.hostEl=Bt,this.shadowRoot=Bt.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const xn=tt(Jt.id,Jt.styles,[]);for(let kn=0;kn{class Rt extends we{constructor(lt){super(lt)}supports(lt){return!0}addEventListener(lt,Bt,Jt){return lt.addEventListener(Bt,Jt,!1),()=>this.removeEventListener(lt,Bt,Jt)}removeEventListener(lt,Bt,Jt){return lt.removeEventListener(Bt,Jt)}}return Rt.\u0275fac=function(lt){return new(lt||Rt)(a.LFG(i.K0))},Rt.\u0275prov=a.Yz7({token:Rt,factory:Rt.\u0275fac}),Rt})();const oe=["alt","control","meta","shift"],Oe={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},at={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},be={alt:Rt=>Rt.altKey,control:Rt=>Rt.ctrlKey,meta:Rt=>Rt.metaKey,shift:Rt=>Rt.shiftKey};let et=(()=>{class Rt extends we{constructor(lt){super(lt)}supports(lt){return null!=Rt.parseEventName(lt)}addEventListener(lt,Bt,Jt){const xn=Rt.parseEventName(Bt),kn=Rt.eventCallback(xn.fullKey,Jt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,i.q)().onAndCancel(lt,xn.domEventName,kn))}static parseEventName(lt){const Bt=lt.toLowerCase().split("."),Jt=Bt.shift();if(0===Bt.length||"keydown"!==Jt&&"keyup"!==Jt)return null;const xn=Rt._normalizeKey(Bt.pop());let kn="";if(oe.forEach(On=>{const qn=Bt.indexOf(On);qn>-1&&(Bt.splice(qn,1),kn+=On+".")}),kn+=xn,0!=Bt.length||0===xn.length)return null;const mn={};return mn.domEventName=Jt,mn.fullKey=kn,mn}static getEventFullKey(lt){let Bt="",Jt=function Mt(Rt){let yt=Rt.key;if(null==yt){if(yt=Rt.keyIdentifier,null==yt)return"Unidentified";yt.startsWith("U+")&&(yt=String.fromCharCode(parseInt(yt.substring(2),16)),3===Rt.location&&at.hasOwnProperty(yt)&&(yt=at[yt]))}return Oe[yt]||yt}(lt);return Jt=Jt.toLowerCase()," "===Jt?Jt="space":"."===Jt&&(Jt="dot"),oe.forEach(xn=>{xn!=Jt&&(0,be[xn])(lt)&&(Bt+=xn+".")}),Bt+=Jt,Bt}static eventCallback(lt,Bt,Jt){return xn=>{Rt.getEventFullKey(xn)===lt&&Jt.runGuarded(()=>Bt(xn))}}static _normalizeKey(lt){return"esc"===lt?"escape":lt}}return Rt.\u0275fac=function(lt){return new(lt||Rt)(a.LFG(i.K0))},Rt.\u0275prov=a.Yz7({token:Rt,factory:Rt.\u0275fac}),Rt})();const R=(0,a.eFA)(a._c5,"browser",[{provide:a.Lbi,useValue:i.bD},{provide:a.g9A,useValue:function nt(){v.makeCurrent()},multi:!0},{provide:i.K0,useFactory:function Le(){return(0,a.RDi)(document),document},deps:[]}]),U=new a.OlP(""),Re=[{provide:a.rWj,useClass:class k{addToWindow(yt){a.dqk.getAngularTestability=(Bt,Jt=!0)=>{const xn=yt.findTestabilityInTree(Bt,Jt);if(null==xn)throw new Error("Could not find testability for element.");return xn},a.dqk.getAllAngularTestabilities=()=>yt.getAllTestabilities(),a.dqk.getAllAngularRootElements=()=>yt.getAllRootElements(),a.dqk.frameworkStabilizers||(a.dqk.frameworkStabilizers=[]),a.dqk.frameworkStabilizers.push(Bt=>{const Jt=a.dqk.getAllAngularTestabilities();let xn=Jt.length,kn=!1;const mn=function(On){kn=kn||On,xn--,0==xn&&Bt(kn)};Jt.forEach(function(On){On.whenStable(mn)})})}findTestabilityInTree(yt,lt,Bt){return null==lt?null:yt.getTestability(lt)??(Bt?(0,i.q)().isShadowRoot(lt)?this.findTestabilityInTree(yt,lt.host,!0):this.findTestabilityInTree(yt,lt.parentElement,!0):null)}},deps:[]},{provide:a.lri,useClass:a.dDg,deps:[a.R0b,a.eoX,a.rWj]},{provide:a.dDg,useClass:a.dDg,deps:[a.R0b,a.eoX,a.rWj]}],x=[{provide:a.zSh,useValue:"root"},{provide:a.qLn,useFactory:function Q(){return new a.qLn},deps:[]},{provide:z,useClass:Ee,multi:!0,deps:[i.K0,a.R0b,a.Lbi]},{provide:z,useClass:et,multi:!0,deps:[i.K0]},{provide:Ae,useClass:Ae,deps:[ae,le,a.AFp]},{provide:a.FYo,useExisting:Ae},{provide:ue,useExisting:le},{provide:le,useClass:le,deps:[i.K0]},{provide:ae,useClass:ae,deps:[z,a.R0b]},{provide:i.JF,useClass:F,deps:[]},[]];let p=(()=>{class Rt{constructor(lt){}static withServerTransition(lt){return{ngModule:Rt,providers:[{provide:a.AFp,useValue:lt.appId},{provide:B,useExisting:a.AFp},P]}}}return Rt.\u0275fac=function(lt){return new(lt||Rt)(a.LFG(U,12))},Rt.\u0275mod=a.oAB({type:Rt}),Rt.\u0275inj=a.cJS({providers:[...x,...Re],imports:[i.ez,a.hGG]}),Rt})(),H=(()=>{class Rt{constructor(lt){this._doc=lt}getTitle(){return this._doc.title}setTitle(lt){this._doc.title=lt||""}}return Rt.\u0275fac=function(lt){return new(lt||Rt)(a.LFG(i.K0))},Rt.\u0275prov=a.Yz7({token:Rt,factory:function(lt){let Bt=null;return Bt=lt?new lt:function X(){return new H((0,a.LFG)(i.K0))}(),Bt},providedIn:"root"}),Rt})();typeof window<"u"&&window;let qt=(()=>{class Rt{}return Rt.\u0275fac=function(lt){return new(lt||Rt)},Rt.\u0275prov=a.Yz7({token:Rt,factory:function(lt){let Bt=null;return Bt=lt?new(lt||Rt):a.LFG(en),Bt},providedIn:"root"}),Rt})(),en=(()=>{class Rt extends qt{constructor(lt){super(),this._doc=lt}sanitize(lt,Bt){if(null==Bt)return null;switch(lt){case a.q3G.NONE:return Bt;case a.q3G.HTML:return(0,a.qzn)(Bt,"HTML")?(0,a.z3N)(Bt):(0,a.EiD)(this._doc,String(Bt)).toString();case a.q3G.STYLE:return(0,a.qzn)(Bt,"Style")?(0,a.z3N)(Bt):Bt;case a.q3G.SCRIPT:if((0,a.qzn)(Bt,"Script"))return(0,a.z3N)(Bt);throw new Error("unsafe value used in a script context");case a.q3G.URL:return(0,a.qzn)(Bt,"URL")?(0,a.z3N)(Bt):(0,a.mCW)(String(Bt));case a.q3G.RESOURCE_URL:if((0,a.qzn)(Bt,"ResourceURL"))return(0,a.z3N)(Bt);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${lt} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(lt){return(0,a.JVY)(lt)}bypassSecurityTrustStyle(lt){return(0,a.L6k)(lt)}bypassSecurityTrustScript(lt){return(0,a.eBb)(lt)}bypassSecurityTrustUrl(lt){return(0,a.LAX)(lt)}bypassSecurityTrustResourceUrl(lt){return(0,a.pB0)(lt)}}return Rt.\u0275fac=function(lt){return new(lt||Rt)(a.LFG(i.K0))},Rt.\u0275prov=a.Yz7({token:Rt,factory:function(lt){let Bt=null;return Bt=lt?new lt:function Ut(Rt){return new en(Rt.get(i.K0))}(a.LFG(a.zs3)),Bt},providedIn:"root"}),Rt})()},6630:(Ct,ke,u)=>{"use strict";u.d(ke,{gz:()=>Oi,m2:()=>Ri,F0:()=>rr,yS:()=>Qr,Bz:()=>Wu,lC:()=>ji});var i=u(4650);const c=(()=>{function A(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return A.prototype=Object.create(Error.prototype),A})();var v=u(5254),b=u(1086),h=u(591),g=u(3426),w=u(1221),B=u(8514),O=u(4843),P=u(1737),k=u(6498),F=u(8896),z=u(1762),ae=u(8929),we=u(6895),ue=u(2198),le=u(2986),ge=u(3489);function W(A=null){return S=>S.lift(new ie(A))}class ie{constructor(S){this.defaultValue=S}call(S,D){return D.subscribe(new he(S,this.defaultValue))}}class he extends ge.L{constructor(S,D){super(S),this.defaultValue=D,this.isEmpty=!0}_next(S){this.isEmpty=!1,this.destination.next(S)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function se(A=it){return S=>S.lift(new Me(A))}class Me{constructor(S){this.errorFactory=S}call(S,D){return D.subscribe(new Ge(S,this.errorFactory))}}class Ge extends ge.L{constructor(S,D){super(S),this.errorFactory=D,this.hasValue=!1}_next(S){this.hasValue=!0,this.destination.next(S)}_complete(){if(this.hasValue)return this.destination.complete();{let S;try{S=this.errorFactory()}catch(D){S=D}this.destination.error(S)}}}function it(){return new c}var Ke=u(5379);function tt(A,S){const D=arguments.length>=2;return G=>G.pipe(A?(0,ue.h)((ne,He)=>A(ne,He,G)):Ke.y,(0,le.q)(1),D?W(S):se(()=>new c))}function me(A,S){let D=!1;return arguments.length>=2&&(D=!0),function(ne){return ne.lift(new Xe(A,S,D))}}class Xe{constructor(S,D,G=!1){this.accumulator=S,this.seed=D,this.hasSeed=G}call(S,D){return D.subscribe(new Ae(S,this.accumulator,this.seed,this.hasSeed))}}class Ae extends ge.L{constructor(S,D,G,ne){super(S),this.accumulator=D,this._seed=G,this.hasSeed=ne,this.index=0}get seed(){return this._seed}set seed(S){this.hasSeed=!0,this._seed=S}_next(S){if(this.hasSeed)return this._tryNext(S);this.seed=S,this.destination.next(S)}_tryNext(S){const D=this.index++;let G;try{G=this.accumulator(this.seed,S,D)}catch(ne){this.destination.error(ne)}this.seed=G,this.destination.next(G)}}var _t=u(4231);function ht(A){return function(D){return 0===A?(0,F.c)():D.lift(new Yt(A))}}class Yt{constructor(S){if(this.total=S,this.total<0)throw new _t.W}call(S,D){return D.subscribe(new Dt(S,this.total))}}class Dt extends ge.L{constructor(S,D){super(S),this.total=D,this.ring=new Array,this.count=0}_next(S){const D=this.ring,G=this.total,ne=this.count++;D.length0){const G=this.count>=this.total?this.total:this.count,ne=this.ring;for(let He=0;He=2;return G=>G.pipe(A?(0,ue.h)((ne,He)=>A(ne,He,G)):Ke.y,ht(1),D?W(S):se(()=>new c))}var V=u(4850),Ee=u(7545),oe=u(1059),_e=u(1709),Oe=u(1406),at=u(2868),be=u(7221),et=u(4290),Mt=u(7604),gt=u(537),We=u(4327),wt=u(9146),nt=u(1481);const Q="primary";class Le{constructor(S){this.params=S||{}}has(S){return Object.prototype.hasOwnProperty.call(this.params,S)}get(S){if(this.has(S)){const D=this.params[S];return Array.isArray(D)?D[0]:D}return null}getAll(S){if(this.has(S)){const D=this.params[S];return Array.isArray(D)?D:[D]}return[]}get keys(){return Object.keys(this.params)}}function ee(A){return new Le(A)}function R(A,S,D){const G=D.path.split("/");if(G.length>A.length||"full"===D.pathMatch&&(S.hasChildren()||G.lengthG[He]===ne)}return A===S}function p(A){return Array.prototype.concat.apply([],A)}function m(A){return A.length>0?A[A.length-1]:null}function de(A,S){for(const D in A)A.hasOwnProperty(D)&&S(A[D],D)}function X(A){return(0,i.CqO)(A)?A:(0,i.QGY)(A)?(0,v.D)(Promise.resolve(A)):(0,b.of)(A)}const H=!1,_={exact:function $e(A,S,D){if(!ce(A.segments,S.segments)||!ye(A.segments,S.segments,D)||A.numberOfChildren!==S.numberOfChildren)return!1;for(const G in S.children)if(!A.children[G]||!$e(A.children[G],S.children[G],D))return!1;return!0},subset:dt},T={exact:function Je(A,S){return Re(A,S)},subset:function St(A,S){return Object.keys(S).length<=Object.keys(A).length&&Object.keys(S).every(D=>x(A[D],S[D]))},ignored:()=>!0};function ve(A,S,D){return _[D.paths](A.root,S.root,D.matrixParams)&&T[D.queryParams](A.queryParams,S.queryParams)&&!("exact"===D.fragment&&A.fragment!==S.fragment)}function dt(A,S,D){return Et(A,S,S.segments,D)}function Et(A,S,D,G){if(A.segments.length>D.length){const ne=A.segments.slice(0,D.length);return!(!ce(ne,D)||S.hasChildren()||!ye(ne,D,G))}if(A.segments.length===D.length){if(!ce(A.segments,D)||!ye(A.segments,D,G))return!1;for(const ne in S.children)if(!A.children[ne]||!dt(A.children[ne],S.children[ne],G))return!1;return!0}{const ne=D.slice(0,A.segments.length),He=D.slice(A.segments.length);return!!(ce(A.segments,ne)&&ye(A.segments,ne,G)&&A.children[Q])&&Et(A.children[Q],S,He,G)}}function ye(A,S,D){return S.every((G,ne)=>T[D](A[ne].parameters,G.parameters))}class qe{constructor(S,D,G){this.root=S,this.queryParams=D,this.fragment=G}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ee(this.queryParams)),this._queryParamMap}toString(){return Pe.serialize(this)}}class xe{constructor(S,D){this.segments=S,this.children=D,this.parent=null,de(D,(G,ne)=>G.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return bt(this)}}class Fe{constructor(S,D){this.path=S,this.parameters=D}get parameterMap(){return this._parameterMap||(this._parameterMap=ee(this.parameters)),this._parameterMap}toString(){return Ut(this)}}function ce(A,S){return A.length===S.length&&A.every((D,G)=>D.path===S[G].path)}let Ce=(()=>{class A{}return A.\u0275fac=function(D){return new(D||A)},A.\u0275prov=i.Yz7({token:A,factory:function(){return new Ye},providedIn:"root"}),A})();class Ye{parse(S){const D=new kn(S);return new qe(D.parseRootSegment(),D.parseQueryParams(),D.parseFragment())}serialize(S){const D=`/${st(S.root,!0)}`,G=function bn(A){const S=Object.keys(A).map(D=>{const G=A[D];return Array.isArray(G)?G.map(ne=>`${Ht(D)}=${Ht(ne)}`).join("&"):`${Ht(D)}=${Ht(G)}`}).filter(D=>!!D);return S.length?`?${S.join("&")}`:""}(S.queryParams);return`${D}${G}${"string"==typeof S.fragment?`#${function an(A){return encodeURI(A)}(S.fragment)}`:""}`}}const Pe=new Ye;function bt(A){return A.segments.map(S=>Ut(S)).join("/")}function st(A,S){if(!A.hasChildren())return bt(A);if(S){const D=A.children[Q]?st(A.children[Q],!1):"",G=[];return de(A.children,(ne,He)=>{He!==Q&&G.push(`${He}:${st(ne,!1)}`)}),G.length>0?`${D}(${G.join("//")})`:D}{const D=function je(A,S){let D=[];return de(A.children,(G,ne)=>{ne===Q&&(D=D.concat(S(G,ne)))}),de(A.children,(G,ne)=>{ne!==Q&&(D=D.concat(S(G,ne)))}),D}(A,(G,ne)=>ne===Q?[st(A.children[Q],!1)]:[`${ne}:${st(G,!1)}`]);return 1===Object.keys(A.children).length&&null!=A.children[Q]?`${bt(A)}/${D[0]}`:`${bt(A)}/(${D.join("//")})`}}function ct(A){return encodeURIComponent(A).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ht(A){return ct(A).replace(/%3B/gi,";")}function ze(A){return ct(A).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rt(A){return decodeURIComponent(A)}function qt(A){return rt(A.replace(/\+/g,"%20"))}function Ut(A){return`${ze(A.path)}${function en(A){return Object.keys(A).map(S=>`;${ze(S)}=${ze(A[S])}`).join("")}(A.parameters)}`}const Rt=/^[^\/()?;=#]+/;function yt(A){const S=A.match(Rt);return S?S[0]:""}const lt=/^[^=?&#]+/,Jt=/^[^&#]+/;class kn{constructor(S){this.url=S,this.remaining=S}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new xe([],{}):new xe([],this.parseChildren())}parseQueryParams(){const S={};if(this.consumeOptional("?"))do{this.parseQueryParam(S)}while(this.consumeOptional("&"));return S}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const S=[];for(this.peekStartsWith("(")||S.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),S.push(this.parseSegment());let D={};this.peekStartsWith("/(")&&(this.capture("/"),D=this.parseParens(!0));let G={};return this.peekStartsWith("(")&&(G=this.parseParens(!1)),(S.length>0||Object.keys(D).length>0)&&(G[Q]=new xe(S,D)),G}parseSegment(){const S=yt(this.remaining);if(""===S&&this.peekStartsWith(";"))throw new i.vHH(4009,H);return this.capture(S),new Fe(rt(S),this.parseMatrixParams())}parseMatrixParams(){const S={};for(;this.consumeOptional(";");)this.parseParam(S);return S}parseParam(S){const D=yt(this.remaining);if(!D)return;this.capture(D);let G="";if(this.consumeOptional("=")){const ne=yt(this.remaining);ne&&(G=ne,this.capture(G))}S[rt(D)]=rt(G)}parseQueryParam(S){const D=function Bt(A){const S=A.match(lt);return S?S[0]:""}(this.remaining);if(!D)return;this.capture(D);let G="";if(this.consumeOptional("=")){const ft=function xn(A){const S=A.match(Jt);return S?S[0]:""}(this.remaining);ft&&(G=ft,this.capture(G))}const ne=qt(D),He=qt(G);if(S.hasOwnProperty(ne)){let ft=S[ne];Array.isArray(ft)||(ft=[ft],S[ne]=ft),ft.push(He)}else S[ne]=He}parseParens(S){const D={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const G=yt(this.remaining),ne=this.remaining[G.length];if("/"!==ne&&")"!==ne&&";"!==ne)throw new i.vHH(4010,H);let He;G.indexOf(":")>-1?(He=G.slice(0,G.indexOf(":")),this.capture(He),this.capture(":")):S&&(He=Q);const ft=this.parseChildren();D[He]=1===Object.keys(ft).length?ft[Q]:new xe([],ft),this.consumeOptional("//")}return D}peekStartsWith(S){return this.remaining.startsWith(S)}consumeOptional(S){return!!this.peekStartsWith(S)&&(this.remaining=this.remaining.substring(S.length),!0)}capture(S){if(!this.consumeOptional(S))throw new i.vHH(4011,H)}}function mn(A){return A.segments.length>0?new xe([],{[Q]:A}):A}function On(A){const S={};for(const G of Object.keys(A.children)){const He=On(A.children[G]);(He.segments.length>0||He.hasChildren())&&(S[G]=He)}return function qn(A){if(1===A.numberOfChildren&&A.children[Q]){const S=A.children[Q];return new xe(A.segments.concat(S.segments),S.children)}return A}(new xe(A.segments,S))}function Be(A){return A instanceof qe}function Gt(A,S,D,G,ne){if(0===D.length)return En(S.root,S.root,S.root,G,ne);const He=function ni(A){if("string"==typeof A[0]&&1===A.length&&"/"===A[0])return new An(!0,0,A);let S=0,D=!1;const G=A.reduce((ne,He,ft)=>{if("object"==typeof He&&null!=He){if(He.outlets){const It={};return de(He.outlets,(nn,wn)=>{It[wn]="string"==typeof nn?nn.split("/"):nn}),[...ne,{outlets:It}]}if(He.segmentPath)return[...ne,He.segmentPath]}return"string"!=typeof He?[...ne,He]:0===ft?(He.split("/").forEach((It,nn)=>{0==nn&&"."===It||(0==nn&&""===It?D=!0:".."===It?S++:""!=It&&ne.push(It))}),ne):[...ne,He]},[]);return new An(D,S,G)}(D);return He.toRoot()?En(S.root,S.root,new xe([],{}),G,ne):function ft(nn){const wn=function zn(A,S,D,G){if(A.isAbsolute)return new jn(S.root,!0,0);if(-1===G)return new jn(D,D===S.root,0);return function si(A,S,D){let G=A,ne=S,He=D;for(;He>ne;){if(He-=ne,G=G.parent,!G)throw new i.vHH(4005,!1);ne=G.segments.length}return new jn(G,!1,ne-He)}(D,G+(rn(A.commands[0])?0:1),A.numberOfDoubleDots)}(He,S,A.snapshot?._urlSegment,nn),Zn=wn.processChildren?Xn(wn.segmentGroup,wn.index,He.commands):Pi(wn.segmentGroup,wn.index,He.commands);return En(S.root,wn.segmentGroup,Zn,G,ne)}(A.snapshot?._lastPathIndex)}function rn(A){return"object"==typeof A&&null!=A&&!A.outlets&&!A.segmentPath}function Tn(A){return"object"==typeof A&&null!=A&&A.outlets}function En(A,S,D,G,ne){let ft,He={};G&&de(G,(nn,wn)=>{He[wn]=Array.isArray(nn)?nn.map(Zn=>`${Zn}`):`${nn}`}),ft=A===S?D:ci(A,S,D);const It=mn(On(ft));return new qe(It,He,ne)}function ci(A,S,D){const G={};return de(A.children,(ne,He)=>{G[He]=ne===S?D:ci(ne,S,D)}),new xe(A.segments,G)}class An{constructor(S,D,G){if(this.isAbsolute=S,this.numberOfDoubleDots=D,this.commands=G,S&&G.length>0&&rn(G[0]))throw new i.vHH(4003,!1);const ne=G.find(Tn);if(ne&&ne!==m(G))throw new i.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class jn{constructor(S,D,G){this.segmentGroup=S,this.processChildren=D,this.index=G}}function Pi(A,S,D){if(A||(A=new xe([],{})),0===A.segments.length&&A.hasChildren())return Xn(A,S,D);const G=function Ci(A,S,D){let G=0,ne=S;const He={match:!1,pathIndex:0,commandIndex:0};for(;ne=D.length)return He;const ft=A.segments[ne],It=D[G];if(Tn(It))break;const nn=`${It}`,wn=G0&&void 0===nn)break;if(nn&&wn&&"object"==typeof wn&&void 0===wn.outlets){if(!_i(nn,wn,ft))return He;G+=2}else{if(!_i(nn,{},ft))return He;G++}ne++}return{match:!0,pathIndex:ne,commandIndex:G}}(A,S,D),ne=D.slice(G.commandIndex);if(G.match&&G.pathIndex{"string"==typeof He&&(He=[He]),null!==He&&(ne[ft]=Pi(A.children[ft],S,He))}),de(A.children,(He,ft)=>{void 0===G[ft]&&(ne[ft]=He)}),new xe(A.segments,ne)}}function zi(A,S,D){const G=A.segments.slice(0,S);let ne=0;for(;ne{"string"==typeof D&&(D=[D]),null!==D&&(S[G]=zi(new xe([],{}),0,D))}),S}function Wi(A){const S={};return de(A,(D,G)=>S[G]=`${D}`),S}function _i(A,S,D){return A==D.path&&Re(S,D.parameters)}class fi{constructor(S,D){this.id=S,this.url=D}}class nr extends fi{constructor(S,D,G="imperative",ne=null){super(S,D),this.type=0,this.navigationTrigger=G,this.restoredState=ne}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ri extends fi{constructor(S,D,G){super(S,D),this.urlAfterRedirects=G,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class yr extends fi{constructor(S,D,G,ne){super(S,D),this.reason=G,this.code=ne,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Un extends fi{constructor(S,D,G,ne){super(S,D),this.error=G,this.target=ne,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class kr extends fi{constructor(S,D,G,ne){super(S,D),this.urlAfterRedirects=G,this.state=ne,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class fs extends fi{constructor(S,D,G,ne){super(S,D),this.urlAfterRedirects=G,this.state=ne,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Fi extends fi{constructor(S,D,G,ne,He){super(S,D),this.urlAfterRedirects=G,this.state=ne,this.shouldActivate=He,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ti extends fi{constructor(S,D,G,ne){super(S,D),this.urlAfterRedirects=G,this.state=ne,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Sr extends fi{constructor(S,D,G,ne){super(S,D),this.urlAfterRedirects=G,this.state=ne,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class sr{constructor(S){this.route=S,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class qi{constructor(S){this.route=S,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class fr{constructor(S){this.snapshot=S,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Kr{constructor(S){this.snapshot=S,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class yi{constructor(S){this.snapshot=S,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ni{constructor(S){this.snapshot=S,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ar{constructor(S,D,G){this.routerEvent=S,this.position=D,this.anchor=G,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Tr{constructor(S){this._root=S}get root(){return this._root.value}parent(S){const D=this.pathFromRoot(S);return D.length>1?D[D.length-2]:null}children(S){const D=Si(S,this._root);return D?D.children.map(G=>G.value):[]}firstChild(S){const D=Si(S,this._root);return D&&D.children.length>0?D.children[0].value:null}siblings(S){const D=$r(S,this._root);return D.length<2?[]:D[D.length-2].children.map(ne=>ne.value).filter(ne=>ne!==S)}pathFromRoot(S){return $r(S,this._root).map(D=>D.value)}}function Si(A,S){if(A===S.value)return S;for(const D of S.children){const G=Si(A,D);if(G)return G}return null}function $r(A,S){if(A===S.value)return[S];for(const D of S.children){const G=$r(A,D);if(G.length)return G.unshift(S),G}return[]}class pi{constructor(S,D){this.value=S,this.children=D}toString(){return`TreeNode(${this.value})`}}function Yi(A){const S={};return A&&A.children.forEach(D=>S[D.value.outlet]=D),S}class Li extends Tr{constructor(S,D){super(S),this.snapshot=D,Ir(this,S)}toString(){return this.snapshot.toString()}}function vr(A,S){const D=function ir(A,S){const ft=new Vi([],{},{},"",{},Q,S,null,A.root,-1,{});return new ar("",new pi(ft,[]))}(A,S),G=new h.X([new Fe("",{})]),ne=new h.X({}),He=new h.X({}),ft=new h.X({}),It=new h.X(""),nn=new Oi(G,ne,ft,It,He,Q,S,D.root);return nn.snapshot=D.root,new Li(new pi(nn,[]),D)}class Oi{constructor(S,D,G,ne,He,ft,It,nn){this.url=S,this.params=D,this.queryParams=G,this.fragment=ne,this.data=He,this.outlet=ft,this.component=It,this._futureSnapshot=nn}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,V.U)(S=>ee(S)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,V.U)(S=>ee(S)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Pr(A,S="emptyOnly"){const D=A.pathFromRoot;let G=0;if("always"!==S)for(G=D.length-1;G>=1;){const ne=D[G],He=D[G-1];if(ne.routeConfig&&""===ne.routeConfig.path)G--;else{if(He.component)break;G--}}return function zr(A){return A.reduce((S,D)=>({params:{...S.params,...D.params},data:{...S.data,...D.data},resolve:{...D.data,...S.resolve,...D.routeConfig?.data,...D._resolvedData}}),{params:{},data:{},resolve:{}})}(D.slice(G))}class Vi{constructor(S,D,G,ne,He,ft,It,nn,wn,Zn,Rn,ai){this.url=S,this.params=D,this.queryParams=G,this.fragment=ne,this.data=He,this.outlet=ft,this.component=It,this.routeConfig=nn,this._urlSegment=wn,this._lastPathIndex=Zn,this._correctedLastPathIndex=ai??Zn,this._resolve=Rn}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=ee(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ee(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(G=>G.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ar extends Tr{constructor(S,D){super(D),this.url=S,Ir(this,D)}toString(){return pr(this._root)}}function Ir(A,S){S.value._routerState=A,S.children.forEach(D=>Ir(A,D))}function pr(A){const S=A.children.length>0?` { ${A.children.map(pr).join(", ")} } `:"";return`${A.value}${S}`}function lr(A){if(A.snapshot){const S=A.snapshot,D=A._futureSnapshot;A.snapshot=D,Re(S.queryParams,D.queryParams)||A.queryParams.next(D.queryParams),S.fragment!==D.fragment&&A.fragment.next(D.fragment),Re(S.params,D.params)||A.params.next(D.params),function U(A,S){if(A.length!==S.length)return!1;for(let D=0;DRe(D.parameters,S[G].parameters))}(A.url,S.url);return D&&!(!A.parent!=!S.parent)&&(!A.parent||wi(A.parent,S.parent))}function Xi(A,S,D){if(D&&A.shouldReuseRoute(S.value,D.value.snapshot)){const G=D.value;G._futureSnapshot=S.value;const ne=function Fr(A,S,D){return S.children.map(G=>{for(const ne of D.children)if(A.shouldReuseRoute(G.value,ne.value.snapshot))return Xi(A,G,ne);return Xi(A,G)})}(A,S,D);return new pi(G,ne)}{if(A.shouldAttach(S.value)){const He=A.retrieve(S.value);if(null!==He){const ft=He.route;return ft.value._futureSnapshot=S.value,ft.children=S.children.map(It=>Xi(A,It)),ft}}const G=function Rr(A){return new Oi(new h.X(A.url),new h.X(A.params),new h.X(A.queryParams),new h.X(A.fragment),new h.X(A.data),A.outlet,A.component,A)}(S.value),ne=S.children.map(He=>Xi(A,He));return new pi(G,ne)}}const br="ngNavigationCancelingError";function Jn(A,S){const{redirectTo:D,navigationBehaviorOptions:G}=Be(S)?{redirectTo:S,navigationBehaviorOptions:void 0}:S,ne=wr(!1,0,S);return ne.url=D,ne.navigationBehaviorOptions=G,ne}function wr(A,S,D){const G=new Error("NavigationCancelingError: "+(A||""));return G[br]=!0,G.cancellationCode=S,D&&(G.url=D),G}function Cr(A){return vi(A)&&Be(A.url)}function vi(A){return A&&A[br]}class Di{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Ki,this.attachRef=null}}let Ki=(()=>{class A{constructor(){this.contexts=new Map}onChildOutletCreated(D,G){const ne=this.getOrCreateContext(D);ne.outlet=G,this.contexts.set(D,ne)}onChildOutletDestroyed(D){const G=this.getContext(D);G&&(G.outlet=null,G.attachRef=null)}onOutletDeactivated(){const D=this.contexts;return this.contexts=new Map,D}onOutletReAttached(D){this.contexts=D}getOrCreateContext(D){let G=this.getContext(D);return G||(G=new Di,this.contexts.set(D,G)),G}getContext(D){return this.contexts.get(D)||null}}return A.\u0275fac=function(D){return new(D||A)},A.\u0275prov=i.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})();const Hi=!1;let ji=(()=>{class A{constructor(D,G,ne,He,ft){this.parentContexts=D,this.location=G,this.changeDetector=He,this.environmentInjector=ft,this.activated=null,this._activatedRoute=null,this.activateEvents=new i.vpe,this.deactivateEvents=new i.vpe,this.attachEvents=new i.vpe,this.detachEvents=new i.vpe,this.name=ne||Q,D.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const D=this.parentContexts.getContext(this.name);D&&D.route&&(D.attachRef?this.attach(D.attachRef,D.route):this.activateWith(D.route,D.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new i.vHH(4012,Hi);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new i.vHH(4012,Hi);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new i.vHH(4012,Hi);this.location.detach();const D=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(D.instance),D}attach(D,G){this.activated=D,this._activatedRoute=G,this.location.insert(D.hostView),this.attachEvents.emit(D.instance)}deactivate(){if(this.activated){const D=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(D)}}activateWith(D,G){if(this.isActivated)throw new i.vHH(4013,Hi);this._activatedRoute=D;const ne=this.location,ft=D._futureSnapshot.component,It=this.parentContexts.getOrCreateContext(this.name).children,nn=new Ei(D,It,ne.injector);if(G&&function J(A){return!!A.resolveComponentFactory}(G)){const wn=G.resolveComponentFactory(ft);this.activated=ne.createComponent(wn,ne.length,nn)}else this.activated=ne.createComponent(ft,{index:ne.length,injector:nn,environmentInjector:G??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return A.\u0275fac=function(D){return new(D||A)(i.Y36(Ki),i.Y36(i.s_b),i.$8M("name"),i.Y36(i.sBO),i.Y36(i.lqb))},A.\u0275dir=i.lG2({type:A,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),A})();class Ei{constructor(S,D,G){this.route=S,this.childContexts=D,this.parent=G}get(S,D){return S===Oi?this.route:S===Ki?this.childContexts:this.parent.get(S,D)}}let Ne=(()=>{class A{}return A.\u0275fac=function(D){return new(D||A)},A.\u0275cmp=i.Xpm({type:A,selectors:[["ng-component"]],decls:1,vars:0,template:function(D,G){1&D&&i._UZ(0,"router-outlet")},dependencies:[ji],encapsulation:2}),A})();function q(A,S){return A.providers&&!A._injector&&(A._injector=(0,i.MMx)(A.providers,S,`Route: ${A.path}`)),A._injector??S}function Nn(A){const S=A.children&&A.children.map(Nn),D=S?{...A,children:S}:{...A};return!D.component&&!D.loadComponent&&(S||D.loadChildren)&&D.outlet&&D.outlet!==Q&&(D.component=Ne),D}function Yn(A){return A.outlet||Q}function Kn(A,S){const D=A.filter(G=>Yn(G)===S);return D.push(...A.filter(G=>Yn(G)!==S)),D}function di(A){if(!A)return null;if(A.routeConfig?._injector)return A.routeConfig._injector;for(let S=A.parent;S;S=S.parent){const D=S.routeConfig;if(D?._loadedInjector)return D._loadedInjector;if(D?._injector)return D._injector}return null}class Hn{constructor(S,D,G,ne){this.routeReuseStrategy=S,this.futureState=D,this.currState=G,this.forwardEvent=ne}activate(S){const D=this.futureState._root,G=this.currState?this.currState._root:null;this.deactivateChildRoutes(D,G,S),lr(this.futureState.root),this.activateChildRoutes(D,G,S)}deactivateChildRoutes(S,D,G){const ne=Yi(D);S.children.forEach(He=>{const ft=He.value.outlet;this.deactivateRoutes(He,ne[ft],G),delete ne[ft]}),de(ne,(He,ft)=>{this.deactivateRouteAndItsChildren(He,G)})}deactivateRoutes(S,D,G){const ne=S.value,He=D?D.value:null;if(ne===He)if(ne.component){const ft=G.getContext(ne.outlet);ft&&this.deactivateChildRoutes(S,D,ft.children)}else this.deactivateChildRoutes(S,D,G);else He&&this.deactivateRouteAndItsChildren(D,G)}deactivateRouteAndItsChildren(S,D){S.value.component&&this.routeReuseStrategy.shouldDetach(S.value.snapshot)?this.detachAndStoreRouteSubtree(S,D):this.deactivateRouteAndOutlet(S,D)}detachAndStoreRouteSubtree(S,D){const G=D.getContext(S.value.outlet),ne=G&&S.value.component?G.children:D,He=Yi(S);for(const ft of Object.keys(He))this.deactivateRouteAndItsChildren(He[ft],ne);if(G&&G.outlet){const ft=G.outlet.detach(),It=G.children.onOutletDeactivated();this.routeReuseStrategy.store(S.value.snapshot,{componentRef:ft,route:S,contexts:It})}}deactivateRouteAndOutlet(S,D){const G=D.getContext(S.value.outlet),ne=G&&S.value.component?G.children:D,He=Yi(S);for(const ft of Object.keys(He))this.deactivateRouteAndItsChildren(He[ft],ne);G&&G.outlet&&(G.outlet.deactivate(),G.children.onOutletDeactivated(),G.attachRef=null,G.resolver=null,G.route=null)}activateChildRoutes(S,D,G){const ne=Yi(D);S.children.forEach(He=>{this.activateRoutes(He,ne[He.value.outlet],G),this.forwardEvent(new Ni(He.value.snapshot))}),S.children.length&&this.forwardEvent(new Kr(S.value.snapshot))}activateRoutes(S,D,G){const ne=S.value,He=D?D.value:null;if(lr(ne),ne===He)if(ne.component){const ft=G.getOrCreateContext(ne.outlet);this.activateChildRoutes(S,D,ft.children)}else this.activateChildRoutes(S,D,G);else if(ne.component){const ft=G.getOrCreateContext(ne.outlet);if(this.routeReuseStrategy.shouldAttach(ne.snapshot)){const It=this.routeReuseStrategy.retrieve(ne.snapshot);this.routeReuseStrategy.store(ne.snapshot,null),ft.children.onOutletReAttached(It.contexts),ft.attachRef=It.componentRef,ft.route=It.route.value,ft.outlet&&ft.outlet.attach(It.componentRef,It.route.value),lr(It.route.value),this.activateChildRoutes(S,null,ft.children)}else{const It=di(ne.snapshot),nn=It?.get(i._Vd)??null;ft.attachRef=null,ft.route=ne,ft.resolver=nn,ft.injector=It,ft.outlet&&ft.outlet.activateWith(ne,ft.injector),this.activateChildRoutes(S,null,ft.children)}}else this.activateChildRoutes(S,null,G)}}class cr{constructor(S){this.path=S,this.route=this.path[this.path.length-1]}}class Ii{constructor(S,D){this.component=S,this.route=D}}function li(A,S,D){const G=A._root;return te(G,S?S._root:null,D,[G.value])}function Qi(A,S,D){return(di(S)??D).get(A)}function te(A,S,D,G,ne={canDeactivateChecks:[],canActivateChecks:[]}){const He=Yi(S);return A.children.forEach(ft=>{(function K(A,S,D,G,ne={canDeactivateChecks:[],canActivateChecks:[]}){const He=A.value,ft=S?S.value:null,It=D?D.getContext(A.value.outlet):null;if(ft&&He.routeConfig===ft.routeConfig){const nn=function $(A,S,D){if("function"==typeof D)return D(A,S);switch(D){case"pathParamsChange":return!ce(A.url,S.url);case"pathParamsOrQueryParamsChange":return!ce(A.url,S.url)||!Re(A.queryParams,S.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!wi(A,S)||!Re(A.queryParams,S.queryParams);default:return!wi(A,S)}}(ft,He,He.routeConfig.runGuardsAndResolvers);nn?ne.canActivateChecks.push(new cr(G)):(He.data=ft.data,He._resolvedData=ft._resolvedData),te(A,S,He.component?It?It.children:null:D,G,ne),nn&&It&&It.outlet&&It.outlet.isActivated&&ne.canDeactivateChecks.push(new Ii(It.outlet.component,ft))}else ft&&Ue(S,It,ne),ne.canActivateChecks.push(new cr(G)),te(A,null,He.component?It?It.children:null:D,G,ne)})(ft,He[ft.value.outlet],D,G.concat([ft.value]),ne),delete He[ft.value.outlet]}),de(He,(ft,It)=>Ue(ft,D.getContext(It),ne)),ne}function Ue(A,S,D){const G=Yi(A),ne=A.value;de(G,(He,ft)=>{Ue(He,ne.component?S?S.children.getContext(ft):null:S,D)}),D.canDeactivateChecks.push(new Ii(ne.component&&S&&S.outlet&&S.outlet.isActivated?S.outlet.component:null,ne))}function Zt(A){return"function"==typeof A}function ns(A){return A instanceof c||"EmptyError"===A?.name}const Nr=Symbol("INITIAL_VALUE");function Ui(){return(0,Ee.w)(A=>(0,g.aj)(A.map(S=>S.pipe((0,le.q)(1),(0,oe.O)(Nr)))).pipe((0,V.U)(S=>{for(const D of S)if(!0!==D){if(D===Nr)return Nr;if(!1===D||D instanceof qe)return D}return!0}),(0,ue.h)(S=>S!==Nr),(0,le.q)(1)))}function Y(A){return(0,O.z)((0,at.b)(S=>{if(Be(S))throw Jn(0,S)}),(0,V.U)(S=>!0===S))}const o={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function d(A,S,D,G,ne){const He=E(A,S,D);return He.matched?function Ie(A,S,D,G){const ne=S.canMatch;if(!ne||0===ne.length)return(0,b.of)(!0);const He=ne.map(ft=>{const It=A.get(ft),nn=function Br(A){return A&&Zt(A.canMatch)}(It)?It.canMatch(S,D):It(S,D);return X(nn)});return(0,b.of)(He).pipe(Ui(),Y())}(G=q(S,G),S,D).pipe((0,V.U)(ft=>!0===ft?He:{...o})):(0,b.of)(He)}function E(A,S,D){if(""===S.path)return"full"===S.pathMatch&&(A.hasChildren()||D.length>0)?{...o}:{matched:!0,consumedSegments:[],remainingSegments:D,parameters:{},positionalParamSegments:{}};const ne=(S.matcher||R)(D,A,S);if(!ne)return{...o};const He={};de(ne.posParams,(It,nn)=>{He[nn]=It.path});const ft=ne.consumed.length>0?{...He,...ne.consumed[ne.consumed.length-1].parameters}:He;return{matched:!0,consumedSegments:ne.consumed,remainingSegments:D.slice(ne.consumed.length),parameters:ft,positionalParamSegments:ne.posParams??{}}}function L(A,S,D,G,ne="corrected"){if(D.length>0&&function Ze(A,S,D){return D.some(G=>At(A,S,G)&&Yn(G)!==Q)}(A,D,G)){const ft=new xe(S,function De(A,S,D,G){const ne={};ne[Q]=G,G._sourceSegment=A,G._segmentIndexShift=S.length;for(const He of D)if(""===He.path&&Yn(He)!==Q){const ft=new xe([],{});ft._sourceSegment=A,ft._segmentIndexShift=S.length,ne[Yn(He)]=ft}return ne}(A,S,G,new xe(D,A.children)));return ft._sourceSegment=A,ft._segmentIndexShift=S.length,{segmentGroup:ft,slicedSegments:[]}}if(0===D.length&&function pt(A,S,D){return D.some(G=>At(A,S,G))}(A,D,G)){const ft=new xe(A.segments,function Z(A,S,D,G,ne,He){const ft={};for(const It of G)if(At(A,D,It)&&!ne[Yn(It)]){const nn=new xe([],{});nn._sourceSegment=A,nn._segmentIndexShift="legacy"===He?A.segments.length:S.length,ft[Yn(It)]=nn}return{...ne,...ft}}(A,S,D,G,A.children,ne));return ft._sourceSegment=A,ft._segmentIndexShift=S.length,{segmentGroup:ft,slicedSegments:D}}const He=new xe(A.segments,A.children);return He._sourceSegment=A,He._segmentIndexShift=S.length,{segmentGroup:He,slicedSegments:D}}function At(A,S,D){return(!(A.hasChildren()||S.length>0)||"full"!==D.pathMatch)&&""===D.path}function vt(A,S,D,G){return!!(Yn(A)===G||G!==Q&&At(S,D,A))&&("**"===A.path||E(S,A,D).matched)}function Tt(A,S,D){return 0===S.length&&!A.children[D]}const xt=!1;class Lt{constructor(S){this.segmentGroup=S||null}}class Ot{constructor(S){this.urlTree=S}}function Ft(A){return(0,P._)(new Lt(A))}function Nt(A){return(0,P._)(new Ot(A))}class Qt{constructor(S,D,G,ne,He){this.injector=S,this.configLoader=D,this.urlSerializer=G,this.urlTree=ne,this.config=He,this.allowRedirects=!0}apply(){const S=L(this.urlTree.root,[],[],this.config).segmentGroup,D=new xe(S.segments,S.children);return this.expandSegmentGroup(this.injector,this.config,D,Q).pipe((0,V.U)(He=>this.createUrlTree(On(He),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,be.K)(He=>{if(He instanceof Ot)return this.allowRedirects=!1,this.match(He.urlTree);throw He instanceof Lt?this.noMatchError(He):He}))}match(S){return this.expandSegmentGroup(this.injector,this.config,S.root,Q).pipe((0,V.U)(ne=>this.createUrlTree(On(ne),S.queryParams,S.fragment))).pipe((0,be.K)(ne=>{throw ne instanceof Lt?this.noMatchError(ne):ne}))}noMatchError(S){return new i.vHH(4002,xt)}createUrlTree(S,D,G){const ne=mn(S);return new qe(ne,D,G)}expandSegmentGroup(S,D,G,ne){return 0===G.segments.length&&G.hasChildren()?this.expandChildren(S,D,G).pipe((0,V.U)(He=>new xe([],He))):this.expandSegment(S,G,D,G.segments,ne,!0)}expandChildren(S,D,G){const ne=[];for(const He of Object.keys(G.children))"primary"===He?ne.unshift(He):ne.push(He);return(0,v.D)(ne).pipe((0,Oe.b)(He=>{const ft=G.children[He],It=Kn(D,He);return this.expandSegmentGroup(S,It,ft,He).pipe((0,V.U)(nn=>({segment:nn,outlet:He})))}),me((He,ft)=>(He[ft.outlet]=ft.segment,He),{}),jt())}expandSegment(S,D,G,ne,He,ft){return(0,v.D)(G).pipe((0,Oe.b)(It=>this.expandSegmentAgainstRoute(S,D,G,It,ne,He,ft).pipe((0,be.K)(wn=>{if(wn instanceof Lt)return(0,b.of)(null);throw wn}))),tt(It=>!!It),(0,be.K)((It,nn)=>{if(ns(It))return Tt(D,ne,He)?(0,b.of)(new xe([],{})):Ft(D);throw It}))}expandSegmentAgainstRoute(S,D,G,ne,He,ft,It){return vt(ne,D,He,ft)?void 0===ne.redirectTo?this.matchSegmentAgainstRoute(S,D,ne,He,ft):It&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(S,D,G,ne,He,ft):Ft(D):Ft(D)}expandSegmentAgainstRouteUsingRedirect(S,D,G,ne,He,ft){return"**"===ne.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(S,G,ne,ft):this.expandRegularSegmentAgainstRouteUsingRedirect(S,D,G,ne,He,ft)}expandWildCardWithParamsAgainstRouteUsingRedirect(S,D,G,ne){const He=this.applyRedirectCommands([],G.redirectTo,{});return G.redirectTo.startsWith("/")?Nt(He):this.lineralizeSegments(G,He).pipe((0,_e.zg)(ft=>{const It=new xe(ft,{});return this.expandSegment(S,It,D,ft,ne,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(S,D,G,ne,He,ft){const{matched:It,consumedSegments:nn,remainingSegments:wn,positionalParamSegments:Zn}=E(D,ne,He);if(!It)return Ft(D);const Rn=this.applyRedirectCommands(nn,ne.redirectTo,Zn);return ne.redirectTo.startsWith("/")?Nt(Rn):this.lineralizeSegments(ne,Rn).pipe((0,_e.zg)(ai=>this.expandSegment(S,D,G,ai.concat(wn),ft,!1)))}matchSegmentAgainstRoute(S,D,G,ne,He){return"**"===G.path?(S=q(G,S),G.loadChildren?(G._loadedRoutes?(0,b.of)({routes:G._loadedRoutes,injector:G._loadedInjector}):this.configLoader.loadChildren(S,G)).pipe((0,V.U)(It=>(G._loadedRoutes=It.routes,G._loadedInjector=It.injector,new xe(ne,{})))):(0,b.of)(new xe(ne,{}))):d(D,G,ne,S).pipe((0,Ee.w)(({matched:ft,consumedSegments:It,remainingSegments:nn})=>ft?this.getChildConfig(S=G._injector??S,G,ne).pipe((0,_e.zg)(Zn=>{const Rn=Zn.injector??S,ai=Zn.routes,{segmentGroup:er,slicedSegments:ss}=L(D,It,nn,ai),jr=new xe(er.segments,er.children);if(0===ss.length&&jr.hasChildren())return this.expandChildren(Rn,ai,jr).pipe((0,V.U)(Cl=>new xe(It,Cl)));if(0===ai.length&&0===ss.length)return(0,b.of)(new xe(It,{}));const Er=Yn(G)===He;return this.expandSegment(Rn,jr,ai,ss,Er?Q:He,!0).pipe((0,V.U)(Vs=>new xe(It.concat(Vs.segments),Vs.children)))})):Ft(D)))}getChildConfig(S,D,G){return D.children?(0,b.of)({routes:D.children,injector:S}):D.loadChildren?void 0!==D._loadedRoutes?(0,b.of)({routes:D._loadedRoutes,injector:D._loadedInjector}):function M(A,S,D,G){const ne=S.canLoad;if(void 0===ne||0===ne.length)return(0,b.of)(!0);const He=ne.map(ft=>{const It=A.get(ft),nn=function bi(A){return A&&Zt(A.canLoad)}(It)?It.canLoad(S,D):It(S,D);return X(nn)});return(0,b.of)(He).pipe(Ui(),Y())}(S,D,G).pipe((0,_e.zg)(ne=>ne?this.configLoader.loadChildren(S,D).pipe((0,at.b)(He=>{D._loadedRoutes=He.routes,D._loadedInjector=He.injector})):function Wt(A){return(0,P._)(wr(xt,3))}())):(0,b.of)({routes:[],injector:S})}lineralizeSegments(S,D){let G=[],ne=D.root;for(;;){if(G=G.concat(ne.segments),0===ne.numberOfChildren)return(0,b.of)(G);if(ne.numberOfChildren>1||!ne.children[Q])return(0,P._)(new i.vHH(4e3,xt));ne=ne.children[Q]}}applyRedirectCommands(S,D,G){return this.applyRedirectCreateUrlTree(D,this.urlSerializer.parse(D),S,G)}applyRedirectCreateUrlTree(S,D,G,ne){const He=this.createSegmentGroup(S,D.root,G,ne);return new qe(He,this.createQueryParams(D.queryParams,this.urlTree.queryParams),D.fragment)}createQueryParams(S,D){const G={};return de(S,(ne,He)=>{if("string"==typeof ne&&ne.startsWith(":")){const It=ne.substring(1);G[He]=D[It]}else G[He]=ne}),G}createSegmentGroup(S,D,G,ne){const He=this.createSegments(S,D.segments,G,ne);let ft={};return de(D.children,(It,nn)=>{ft[nn]=this.createSegmentGroup(S,It,G,ne)}),new xe(He,ft)}createSegments(S,D,G,ne){return D.map(He=>He.path.startsWith(":")?this.findPosParam(S,He,ne):this.findOrReturn(He,G))}findPosParam(S,D,G){const ne=G[D.path.substring(1)];if(!ne)throw new i.vHH(4001,xt);return ne}findOrReturn(S,D){let G=0;for(const ne of D){if(ne.path===S.path)return D.splice(G),ne;G++}return S}}class _n{}class vn{constructor(S,D,G,ne,He,ft,It,nn){this.injector=S,this.rootComponentType=D,this.config=G,this.urlTree=ne,this.url=He,this.paramsInheritanceStrategy=ft,this.relativeLinkResolution=It,this.urlSerializer=nn}recognize(){const S=L(this.urlTree.root,[],[],this.config.filter(D=>void 0===D.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,S,Q).pipe((0,V.U)(D=>{if(null===D)return null;const G=new Vi([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Q,this.rootComponentType,null,this.urlTree.root,-1,{}),ne=new pi(G,D),He=new ar(this.url,ne);return this.inheritParamsAndData(He._root),He}))}inheritParamsAndData(S){const D=S.value,G=Pr(D,this.paramsInheritanceStrategy);D.params=Object.freeze(G.params),D.data=Object.freeze(G.data),S.children.forEach(ne=>this.inheritParamsAndData(ne))}processSegmentGroup(S,D,G,ne){return 0===G.segments.length&&G.hasChildren()?this.processChildren(S,D,G):this.processSegment(S,D,G,G.segments,ne)}processChildren(S,D,G){return(0,v.D)(Object.keys(G.children)).pipe((0,Oe.b)(ne=>{const He=G.children[ne],ft=Kn(D,ne);return this.processSegmentGroup(S,ft,He,ne)}),me((ne,He)=>ne&&He?(ne.push(...He),ne):null),(0,et.o)(ne=>null!==ne),W(null),jt(),(0,V.U)(ne=>{if(null===ne)return null;const He=pn(ne);return function yn(A){A.sort((S,D)=>S.value.outlet===Q?-1:D.value.outlet===Q?1:S.value.outlet.localeCompare(D.value.outlet))}(He),He}))}processSegment(S,D,G,ne,He){return(0,v.D)(D).pipe((0,Oe.b)(ft=>this.processSegmentAgainstRoute(ft._injector??S,ft,G,ne,He)),tt(ft=>!!ft),(0,be.K)(ft=>{if(ns(ft))return Tt(G,ne,He)?(0,b.of)([]):(0,b.of)(null);throw ft}))}processSegmentAgainstRoute(S,D,G,ne,He){if(D.redirectTo||!vt(D,G,ne,He))return(0,b.of)(null);let ft;if("**"===D.path){const It=ne.length>0?m(ne).parameters:{},nn=Pn(G)+ne.length,wn=new Vi(ne,It,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,ri(D),Yn(D),D.component??D._loadedComponent??null,D,Qn(G),nn,oi(D),nn);ft=(0,b.of)({snapshot:wn,consumedSegments:[],remainingSegments:[]})}else ft=d(G,D,ne,S).pipe((0,V.U)(({matched:It,consumedSegments:nn,remainingSegments:wn,parameters:Zn})=>{if(!It)return null;const Rn=Pn(G)+nn.length;return{snapshot:new Vi(nn,Zn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,ri(D),Yn(D),D.component??D._loadedComponent??null,D,Qn(G),Rn,oi(D),Rn),consumedSegments:nn,remainingSegments:wn}}));return ft.pipe((0,Ee.w)(It=>{if(null===It)return(0,b.of)(null);const{snapshot:nn,consumedSegments:wn,remainingSegments:Zn}=It;S=D._injector??S;const Rn=D._loadedInjector??S,ai=function cn(A){return A.children?A.children:A.loadChildren?A._loadedRoutes:[]}(D),{segmentGroup:er,slicedSegments:ss}=L(G,wn,Zn,ai.filter(Er=>void 0===Er.redirectTo),this.relativeLinkResolution);if(0===ss.length&&er.hasChildren())return this.processChildren(Rn,ai,er).pipe((0,V.U)(Er=>null===Er?null:[new pi(nn,Er)]));if(0===ai.length&&0===ss.length)return(0,b.of)([new pi(nn,[])]);const jr=Yn(D)===He;return this.processSegment(Rn,ai,er,ss,jr?Q:He).pipe((0,V.U)(Er=>null===Er?null:[new pi(nn,Er)]))}))}}function dn(A){const S=A.value.routeConfig;return S&&""===S.path&&void 0===S.redirectTo}function pn(A){const S=[],D=new Set;for(const G of A){if(!dn(G)){S.push(G);continue}const ne=S.find(He=>G.value.routeConfig===He.value.routeConfig);void 0!==ne?(ne.children.push(...G.children),D.add(ne)):S.push(G)}for(const G of D){const ne=pn(G.children);S.push(new pi(G.value,ne))}return S.filter(G=>!D.has(G))}function Qn(A){let S=A;for(;S._sourceSegment;)S=S._sourceSegment;return S}function Pn(A){let S=A,D=S._segmentIndexShift??0;for(;S._sourceSegment;)S=S._sourceSegment,D+=S._segmentIndexShift??0;return D-1}function ri(A){return A.data||{}}function oi(A){return A.resolve||{}}const ur=Symbol("RouteTitle");function Hr(A){return"string"==typeof A.title||null===A.title}function Bo(A){return(0,Ee.w)(S=>{const D=A(S);return D?(0,v.D)(D).pipe((0,V.U)(()=>S)):(0,b.of)(S)})}let Es=(()=>{class A{buildTitle(D){let G,ne=D.root;for(;void 0!==ne;)G=this.getResolvedTitleForRoute(ne)??G,ne=ne.children.find(He=>He.outlet===Q);return G}getResolvedTitleForRoute(D){return D.data[ur]}}return A.\u0275fac=function(D){return new(D||A)},A.\u0275prov=i.Yz7({token:A,factory:function(){return(0,i.f3M)(Zs)},providedIn:"root"}),A})(),Zs=(()=>{class A extends Es{constructor(D){super(),this.title=D}updateTitle(D){const G=this.buildTitle(D);void 0!==G&&this.title.setTitle(G)}}return A.\u0275fac=function(D){return new(D||A)(i.LFG(nt.Dx))},A.\u0275prov=i.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})();class qs{}class pl extends class Xs{shouldDetach(S){return!1}store(S,D){}shouldAttach(S){return!1}retrieve(S){return null}shouldReuseRoute(S,D){return S.routeConfig===D.routeConfig}}{}const Js=new i.OlP("",{providedIn:"root",factory:()=>({})}),eo=new i.OlP("ROUTES");let Vo=(()=>{class A{constructor(D,G){this.injector=D,this.compiler=G,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(D){if(this.componentLoaders.get(D))return this.componentLoaders.get(D);if(D._loadedComponent)return(0,b.of)(D._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(D);const G=X(D.loadComponent()).pipe((0,at.b)(He=>{this.onLoadEndListener&&this.onLoadEndListener(D),D._loadedComponent=He}),(0,gt.x)(()=>{this.componentLoaders.delete(D)})),ne=new z.c(G,()=>new ae.xQ).pipe((0,We.x)());return this.componentLoaders.set(D,ne),ne}loadChildren(D,G){if(this.childrenLoaders.get(G))return this.childrenLoaders.get(G);if(G._loadedRoutes)return(0,b.of)({routes:G._loadedRoutes,injector:G._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(G);const He=this.loadModuleFactoryOrRoutes(G.loadChildren).pipe((0,V.U)(It=>{this.onLoadEndListener&&this.onLoadEndListener(G);let nn,wn,Zn=!1;Array.isArray(It)?wn=It:(nn=It.create(D).injector,wn=p(nn.get(eo,[],i.XFs.Self|i.XFs.Optional)));return{routes:wn.map(Nn),injector:nn}}),(0,gt.x)(()=>{this.childrenLoaders.delete(G)})),ft=new z.c(He,()=>new ae.xQ).pipe((0,We.x)());return this.childrenLoaders.set(G,ft),ft}loadModuleFactoryOrRoutes(D){return X(D()).pipe((0,_e.zg)(G=>G instanceof i.YKP||Array.isArray(G)?(0,b.of)(G):(0,v.D)(this.compiler.compileModuleAsync(G))))}}return A.\u0275fac=function(D){return new(D||A)(i.LFG(i.zs3),i.LFG(i.Sil))},A.\u0275prov=i.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})();class to{}class Os{shouldProcessUrl(S){return!0}extract(S){return S}merge(S,D){return S}}function ya(A){throw A}function va(A,S,D){return S.parse("/")}const xs={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ml={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function io(){const A=(0,i.f3M)(Ce),S=(0,i.f3M)(Ki),D=(0,i.f3M)(we.Ye),G=(0,i.f3M)(i.zs3),ne=(0,i.f3M)(i.Sil),He=(0,i.f3M)(eo,{optional:!0})??[],ft=(0,i.f3M)(Js,{optional:!0})??{},It=(0,i.f3M)(Zs),nn=(0,i.f3M)(Es,{optional:!0}),wn=(0,i.f3M)(to,{optional:!0}),Zn=(0,i.f3M)(qs,{optional:!0}),Rn=new rr(null,A,S,D,G,ne,p(He));return wn&&(Rn.urlHandlingStrategy=wn),Zn&&(Rn.routeReuseStrategy=Zn),Rn.titleStrategy=nn??It,function ba(A,S){A.errorHandler&&(S.errorHandler=A.errorHandler),A.malformedUriErrorHandler&&(S.malformedUriErrorHandler=A.malformedUriErrorHandler),A.onSameUrlNavigation&&(S.onSameUrlNavigation=A.onSameUrlNavigation),A.paramsInheritanceStrategy&&(S.paramsInheritanceStrategy=A.paramsInheritanceStrategy),A.relativeLinkResolution&&(S.relativeLinkResolution=A.relativeLinkResolution),A.urlUpdateStrategy&&(S.urlUpdateStrategy=A.urlUpdateStrategy),A.canceledNavigationResolution&&(S.canceledNavigationResolution=A.canceledNavigationResolution)}(ft,Rn),Rn}let rr=(()=>{class A{constructor(D,G,ne,He,ft,It,nn){this.rootComponentType=D,this.urlSerializer=G,this.rootContexts=ne,this.location=He,this.config=nn,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new ae.xQ,this.errorHandler=ya,this.malformedUriErrorHandler=va,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,b.of)(void 0),this.urlHandlingStrategy=new Os,this.routeReuseStrategy=new pl,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=ft.get(Vo),this.configLoader.onLoadEndListener=ai=>this.triggerEvent(new qi(ai)),this.configLoader.onLoadStartListener=ai=>this.triggerEvent(new sr(ai)),this.ngModule=ft.get(i.h0i),this.console=ft.get(i.c2e);const Rn=ft.get(i.R0b);this.isNgZoneEnabled=Rn instanceof i.R0b&&i.R0b.isInAngularZone(),this.resetConfig(nn),this.currentUrlTree=function f(){return new qe(new xe([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=vr(this.currentUrlTree,this.rootComponentType),this.transitions=new h.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(D){const G=this.events;return D.pipe((0,ue.h)(ne=>0!==ne.id),(0,V.U)(ne=>({...ne,extractedUrl:this.urlHandlingStrategy.extract(ne.rawUrl)})),(0,Ee.w)(ne=>{let He=!1,ft=!1;return(0,b.of)(ne).pipe((0,at.b)(It=>{this.currentNavigation={id:It.id,initialUrl:It.rawUrl,extractedUrl:It.extractedUrl,trigger:It.source,extras:It.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Ee.w)(It=>{const nn=this.browserUrlTree.toString(),wn=!this.navigated||It.extractedUrl.toString()!==nn||nn!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||wn)&&this.urlHandlingStrategy.shouldProcessUrl(It.rawUrl))return ro(It.source)&&(this.browserUrlTree=It.extractedUrl),(0,b.of)(It).pipe((0,Ee.w)(Rn=>{const ai=this.transitions.getValue();return G.next(new nr(Rn.id,this.serializeUrl(Rn.extractedUrl),Rn.source,Rn.restoredState)),ai!==this.transitions.getValue()?F.E:Promise.resolve(Rn)}),function tn(A,S,D,G){return(0,Ee.w)(ne=>function zt(A,S,D,G,ne){return new Qt(A,S,D,G,ne).apply()}(A,S,D,ne.extractedUrl,G).pipe((0,V.U)(He=>({...ne,urlAfterRedirects:He}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,at.b)(Rn=>{this.currentNavigation={...this.currentNavigation,finalUrl:Rn.urlAfterRedirects},ne.urlAfterRedirects=Rn.urlAfterRedirects}),function xi(A,S,D,G,ne,He){return(0,_e.zg)(ft=>function gn(A,S,D,G,ne,He,ft="emptyOnly",It="legacy"){return new vn(A,S,D,G,ne,ft,It,He).recognize().pipe((0,Ee.w)(nn=>null===nn?function hn(A){return new k.y(S=>S.error(A))}(new _n):(0,b.of)(nn)))}(A,S,D,ft.urlAfterRedirects,G.serialize(ft.urlAfterRedirects),G,ne,He).pipe((0,V.U)(It=>({...ft,targetSnapshot:It}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,at.b)(Rn=>{if(ne.targetSnapshot=Rn.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!Rn.extras.skipLocationChange){const er=this.urlHandlingStrategy.merge(Rn.urlAfterRedirects,Rn.rawUrl);this.setBrowserUrl(er,Rn)}this.browserUrlTree=Rn.urlAfterRedirects}const ai=new kr(Rn.id,this.serializeUrl(Rn.extractedUrl),this.serializeUrl(Rn.urlAfterRedirects),Rn.targetSnapshot);G.next(ai)}));if(wn&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:ai,extractedUrl:er,source:ss,restoredState:jr,extras:Er}=It,Ns=new nr(ai,this.serializeUrl(er),ss,jr);G.next(Ns);const Vs=vr(er,this.rootComponentType).snapshot;return ne={...It,targetSnapshot:Vs,urlAfterRedirects:er,extras:{...Er,skipLocationChange:!1,replaceUrl:!1}},(0,b.of)(ne)}return this.rawUrlTree=It.rawUrl,It.resolve(null),F.E}),(0,at.b)(It=>{const nn=new fs(It.id,this.serializeUrl(It.extractedUrl),this.serializeUrl(It.urlAfterRedirects),It.targetSnapshot);this.triggerEvent(nn)}),(0,V.U)(It=>ne={...It,guards:li(It.targetSnapshot,It.currentSnapshot,this.rootContexts)}),function hi(A,S){return(0,_e.zg)(D=>{const{targetSnapshot:G,currentSnapshot:ne,guards:{canActivateChecks:He,canDeactivateChecks:ft}}=D;return 0===ft.length&&0===He.length?(0,b.of)({...D,guardsResult:!0}):function Vr(A,S,D,G){return(0,v.D)(A).pipe((0,_e.zg)(ne=>function C(A,S,D,G,ne){const He=S&&S.routeConfig?S.routeConfig.canDeactivate:null;if(!He||0===He.length)return(0,b.of)(!0);const ft=He.map(It=>{const nn=Qi(It,S,ne);return X(function Lr(A){return A&&Zt(A.canDeactivate)}(nn)?nn.canDeactivate(A,S,D,G):nn(A,S,D,G)).pipe(tt())});return(0,b.of)(ft).pipe(Ui())}(ne.component,ne.route,D,S,G)),tt(ne=>!0!==ne,!0))}(ft,G,ne,A).pipe((0,_e.zg)(It=>It&&function Mn(A){return"boolean"==typeof A}(It)?function Ji(A,S,D,G){return(0,v.D)(S).pipe((0,Oe.b)(ne=>(0,w.z)(function Cs(A,S){return null!==A&&S&&S(new fr(A)),(0,b.of)(!0)}(ne.route.parent,G),function ws(A,S){return null!==A&&S&&S(new yi(A)),(0,b.of)(!0)}(ne.route,G),function Te(A,S,D){const G=S[S.length-1],He=S.slice(0,S.length-1).reverse().map(ft=>function Dr(A){const S=A.routeConfig?A.routeConfig.canActivateChild:null;return S&&0!==S.length?{node:A,guards:S}:null}(ft)).filter(ft=>null!==ft).map(ft=>(0,B.P)(()=>{const It=ft.guards.map(nn=>{const wn=Qi(nn,ft.node,D);return X(function ki(A){return A&&Zt(A.canActivateChild)}(wn)?wn.canActivateChild(G,A):wn(G,A)).pipe(tt())});return(0,b.of)(It).pipe(Ui())}));return(0,b.of)(He).pipe(Ui())}(A,ne.path,D),function Ds(A,S,D){const G=S.routeConfig?S.routeConfig.canActivate:null;if(!G||0===G.length)return(0,b.of)(!0);const ne=G.map(He=>(0,B.P)(()=>{const ft=Qi(He,S,D);return X(function mi(A){return A&&Zt(A.canActivate)}(ft)?ft.canActivate(S,A):ft(S,A)).pipe(tt())}));return(0,b.of)(ne).pipe(Ui())}(A,ne.route,D))),tt(ne=>!0!==ne,!0))}(G,He,A,S):(0,b.of)(It)),(0,V.U)(It=>({...D,guardsResult:It})))})}(this.ngModule.injector,It=>this.triggerEvent(It)),(0,at.b)(It=>{if(ne.guardsResult=It.guardsResult,Be(It.guardsResult))throw Jn(0,It.guardsResult);const nn=new Fi(It.id,this.serializeUrl(It.extractedUrl),this.serializeUrl(It.urlAfterRedirects),It.targetSnapshot,!!It.guardsResult);this.triggerEvent(nn)}),(0,ue.h)(It=>!!It.guardsResult||(this.restoreHistory(It),this.cancelNavigationTransition(It,"",3),!1)),Bo(It=>{if(It.guards.canActivateChecks.length)return(0,b.of)(It).pipe((0,at.b)(nn=>{const wn=new Ti(nn.id,this.serializeUrl(nn.extractedUrl),this.serializeUrl(nn.urlAfterRedirects),nn.targetSnapshot);this.triggerEvent(wn)}),(0,Ee.w)(nn=>{let wn=!1;return(0,b.of)(nn).pipe(function Mi(A,S){return(0,_e.zg)(D=>{const{targetSnapshot:G,guards:{canActivateChecks:ne}}=D;if(!ne.length)return(0,b.of)(D);let He=0;return(0,v.D)(ne).pipe((0,Oe.b)(ft=>function is(A,S,D,G){const ne=A.routeConfig,He=A._resolve;return void 0!==ne?.title&&!Hr(ne)&&(He[ur]=ne.title),function dr(A,S,D,G){const ne=function ps(A){return[...Object.keys(A),...Object.getOwnPropertySymbols(A)]}(A);if(0===ne.length)return(0,b.of)({});const He={};return(0,v.D)(ne).pipe((0,_e.zg)(ft=>function Rs(A,S,D,G){const ne=Qi(A,S,G);return X(ne.resolve?ne.resolve(S,D):ne(S,D))}(A[ft],S,D,G).pipe(tt(),(0,at.b)(It=>{He[ft]=It}))),ht(1),(0,Mt.h)(He),(0,be.K)(ft=>ns(ft)?F.E:(0,P._)(ft)))}(He,A,S,G).pipe((0,V.U)(ft=>(A._resolvedData=ft,A.data=Pr(A,D).resolve,ne&&Hr(ne)&&(A.data[ur]=ne.title),null)))}(ft.route,G,A,S)),(0,at.b)(()=>He++),ht(1),(0,_e.zg)(ft=>He===ne.length?(0,b.of)(D):F.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,at.b)({next:()=>wn=!0,complete:()=>{wn||(this.restoreHistory(nn),this.cancelNavigationTransition(nn,"",2))}}))}),(0,at.b)(nn=>{const wn=new Sr(nn.id,this.serializeUrl(nn.extractedUrl),this.serializeUrl(nn.urlAfterRedirects),nn.targetSnapshot);this.triggerEvent(wn)}))}),Bo(It=>{const nn=wn=>{const Zn=[];wn.routeConfig?.loadComponent&&!wn.routeConfig._loadedComponent&&Zn.push(this.configLoader.loadComponent(wn.routeConfig).pipe((0,at.b)(Rn=>{wn.component=Rn}),(0,V.U)(()=>{})));for(const Rn of wn.children)Zn.push(...nn(Rn));return Zn};return(0,g.aj)(nn(It.targetSnapshot.root)).pipe(W(),(0,le.q)(1))}),Bo(()=>this.afterPreactivation()),(0,V.U)(It=>{const nn=function Wr(A,S,D){const G=Xi(A,S._root,D?D._root:void 0);return new Li(G,S)}(this.routeReuseStrategy,It.targetSnapshot,It.currentRouterState);return ne={...It,targetRouterState:nn}}),(0,at.b)(It=>{this.currentUrlTree=It.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(It.urlAfterRedirects,It.rawUrl),this.routerState=It.targetRouterState,"deferred"===this.urlUpdateStrategy&&(It.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,It),this.browserUrlTree=It.urlAfterRedirects)}),((A,S,D)=>(0,V.U)(G=>(new Hn(S,G.targetRouterState,G.currentRouterState,D).activate(A),G)))(this.rootContexts,this.routeReuseStrategy,It=>this.triggerEvent(It)),(0,at.b)({next(){He=!0},complete(){He=!0}}),(0,gt.x)(()=>{He||ft||this.cancelNavigationTransition(ne,"",1),this.currentNavigation?.id===ne.id&&(this.currentNavigation=null)}),(0,be.K)(It=>{if(ft=!0,vi(It)){Cr(It)||(this.navigated=!0,this.restoreHistory(ne,!0));const nn=new yr(ne.id,this.serializeUrl(ne.extractedUrl),It.message,It.cancellationCode);if(G.next(nn),Cr(It)){const wn=this.urlHandlingStrategy.merge(It.url,this.rawUrlTree),Zn={skipLocationChange:ne.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||ro(ne.source)};this.scheduleNavigation(wn,"imperative",null,Zn,{resolve:ne.resolve,reject:ne.reject,promise:ne.promise})}else ne.resolve(!1)}else{this.restoreHistory(ne,!0);const nn=new Un(ne.id,this.serializeUrl(ne.extractedUrl),It,ne.targetSnapshot??void 0);G.next(nn);try{ne.resolve(this.errorHandler(It))}catch(wn){ne.reject(wn)}}return F.E}))}))}resetRootComponentType(D){this.rootComponentType=D,this.routerState.root.component=this.rootComponentType}setTransition(D){this.transitions.next({...this.transitions.value,...D})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(D=>{const G="popstate"===D.type?"popstate":"hashchange";"popstate"===G&&setTimeout(()=>{const ne={replaceUrl:!0},He=D.state?.navigationId?D.state:null;if(He){const It={...He};delete It.navigationId,delete It.\u0275routerPageId,0!==Object.keys(It).length&&(ne.state=It)}const ft=this.parseUrl(D.url);this.scheduleNavigation(ft,G,He,ne)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(D){this.events.next(D)}resetConfig(D){this.config=D.map(Nn),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(D,G={}){const{relativeTo:ne,queryParams:He,fragment:ft,queryParamsHandling:It,preserveFragment:nn}=G,wn=ne||this.routerState.root,Zn=nn?this.currentUrlTree.fragment:ft;let Rn=null;switch(It){case"merge":Rn={...this.currentUrlTree.queryParams,...He};break;case"preserve":Rn=this.currentUrlTree.queryParams;break;default:Rn=He||null}return null!==Rn&&(Rn=this.removeEmptyProps(Rn)),Gt(wn,this.currentUrlTree,D,Rn,Zn??null)}navigateByUrl(D,G={skipLocationChange:!1}){const ne=Be(D)?D:this.parseUrl(D),He=this.urlHandlingStrategy.merge(ne,this.rawUrlTree);return this.scheduleNavigation(He,"imperative",null,G)}navigate(D,G={skipLocationChange:!1}){return function wa(A){for(let S=0;S{const He=D[ne];return null!=He&&(G[ne]=He),G},{})}processNavigations(){this.navigations.subscribe(D=>{this.navigated=!0,this.lastSuccessfulId=D.id,this.currentPageId=D.targetPageId,this.events.next(new Ri(D.id,this.serializeUrl(D.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),D.resolve(!0)},D=>{this.console.warn(`Unhandled Navigation Error: ${D}`)})}scheduleNavigation(D,G,ne,He,ft){if(this.disposed)return Promise.resolve(!1);let It,nn,wn;ft?(It=ft.resolve,nn=ft.reject,wn=ft.promise):wn=new Promise((ai,er)=>{It=ai,nn=er});const Zn=++this.navigationId;let Rn;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(ne=this.location.getState()),Rn=ne&&ne.\u0275routerPageId?ne.\u0275routerPageId:He.replaceUrl||He.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):Rn=0,this.setTransition({id:Zn,targetPageId:Rn,source:G,restoredState:ne,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:D,extras:He,resolve:It,reject:nn,promise:wn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),wn.catch(ai=>Promise.reject(ai))}setBrowserUrl(D,G){const ne=this.urlSerializer.serialize(D),He={...G.extras.state,...this.generateNgRouterState(G.id,G.targetPageId)};this.location.isCurrentPathEqualTo(ne)||G.extras.replaceUrl?this.location.replaceState(ne,"",He):this.location.go(ne,"",He)}restoreHistory(D,G=!1){if("computed"===this.canceledNavigationResolution){const ne=this.currentPageId-D.targetPageId;"popstate"!==D.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===ne?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===ne&&(this.resetState(D),this.browserUrlTree=D.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(ne)}else"replace"===this.canceledNavigationResolution&&(G&&this.resetState(D),this.resetUrlToCurrentUrlTree())}resetState(D){this.routerState=D.currentRouterState,this.currentUrlTree=D.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,D.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(D,G,ne){const He=new yr(D.id,this.serializeUrl(D.extractedUrl),G,ne);this.triggerEvent(He),D.resolve(!1)}generateNgRouterState(D,G){return"computed"===this.canceledNavigationResolution?{navigationId:D,\u0275routerPageId:G}:{navigationId:D}}}return A.\u0275fac=function(D){i.$Z()},A.\u0275prov=i.Yz7({token:A,factory:function(){return io()},providedIn:"root"}),A})();function ro(A){return"imperative"!==A}let Qr=(()=>{class A{constructor(D,G,ne){this.router=D,this.route=G,this.locationStrategy=ne,this.commands=null,this.href=null,this.onChanges=new ae.xQ,this.subscription=D.events.subscribe(He=>{He instanceof Ri&&this.updateTargetUrlAndHref()})}set routerLink(D){this.commands=null!=D?Array.isArray(D)?D:[D]:null}ngOnChanges(D){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(D,G,ne,He,ft){if(0!==D||G||ne||He||ft||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const It={skipLocationChange:(0,i.D6c)(this.skipLocationChange),replaceUrl:(0,i.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,It),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,i.D6c)(this.preserveFragment)})}}return A.\u0275fac=function(D){return new(D||A)(i.Y36(rr),i.Y36(Oi),i.Y36(we.S$))},A.\u0275dir=i.lG2({type:A,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(D,G){1&D&&i.NdJ("click",function(He){return G.onClick(He.button,He.ctrlKey,He.shiftKey,He.altKey,He.metaKey)}),2&D&&i.uIk("target",G.target)("href",G.href,i.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[i.TTD]}),A})();class so{}let Da=(()=>{class A{constructor(D,G,ne,He,ft){this.router=D,this.injector=ne,this.preloadingStrategy=He,this.loader=ft}setUpPreloading(){this.subscription=this.router.events.pipe((0,ue.h)(D=>D instanceof Ri),(0,Oe.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(D,G){const ne=[];for(const He of G){He.providers&&!He._injector&&(He._injector=(0,i.MMx)(He.providers,D,`Route: ${He.path}`));const ft=He._injector??D,It=He._loadedInjector??ft;He.loadChildren&&!He._loadedRoutes&&void 0===He.canLoad||He.loadComponent&&!He._loadedComponent?ne.push(this.preloadConfig(ft,He)):(He.children||He._loadedRoutes)&&ne.push(this.processRoutes(It,He.children??He._loadedRoutes))}return(0,v.D)(ne).pipe((0,wt.J)())}preloadConfig(D,G){return this.preloadingStrategy.preload(G,()=>{let ne;ne=G.loadChildren&&void 0===G.canLoad?this.loader.loadChildren(D,G):(0,b.of)(null);const He=ne.pipe((0,_e.zg)(ft=>null===ft?(0,b.of)(void 0):(G._loadedRoutes=ft.routes,G._loadedInjector=ft.injector,this.processRoutes(ft.injector??D,ft.routes))));if(G.loadComponent&&!G._loadedComponent){const ft=this.loader.loadComponent(G);return(0,v.D)([He,ft]).pipe((0,wt.J)())}return He})}}return A.\u0275fac=function(D){return new(D||A)(i.LFG(rr),i.LFG(i.Sil),i.LFG(i.lqb),i.LFG(so),i.LFG(Vo))},A.\u0275prov=i.Yz7({token:A,factory:A.\u0275fac}),A})();const gi=new i.OlP("");let Gu=(()=>{class A{constructor(D,G,ne={}){this.router=D,this.viewportScroller=G,this.options=ne,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},ne.scrollPositionRestoration=ne.scrollPositionRestoration||"disabled",ne.anchorScrolling=ne.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(D=>{D instanceof nr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=D.navigationTrigger,this.restoredId=D.restoredState?D.restoredState.navigationId:0):D instanceof Ri&&(this.lastId=D.id,this.scheduleScrollEvent(D,this.router.parseUrl(D.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(D=>{D instanceof Ar&&(D.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(D.position):D.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(D.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(D,G){this.router.triggerEvent(new Ar(D,"popstate"===this.lastSource?this.store[this.restoredId]:null,G))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return A.\u0275fac=function(D){i.$Z()},A.\u0275prov=i.Yz7({token:A,factory:A.\u0275fac}),A})();const gl=new i.OlP("ROUTER_FORROOT_GUARD"),_l=new i.OlP(""),$u=[we.Ye,{provide:Ce,useClass:Ye},{provide:rr,useFactory:io},Ki,{provide:Oi,useFactory:function zu(A){return A.routerState.root},deps:[rr]},Vo];function Ps(){return new i.PXZ("Router",rr)}let Wu=(()=>{class A{constructor(D){}static forRoot(D,G){return{ngModule:A,providers:[$u,[],yl(D),{provide:gl,useFactory:Fs,deps:[[rr,new i.FiY,new i.tp0]]},{provide:Js,useValue:G||{}},G?.useHash?{provide:we.S$,useClass:we.Do}:{provide:we.S$,useClass:we.b0},{provide:gi,useFactory:()=>{const A=(0,i.f3M)(rr),S=(0,i.f3M)(we.EM),D=(0,i.f3M)(Js);return D.scrollOffset&&S.setOffset(D.scrollOffset),new Gu(A,S,D)}},G?.preloadingStrategy?Ku(G.preloadingStrategy):[],{provide:i.PXZ,multi:!0,useFactory:Ps},G?.initialNavigation?Zr(G):[],[{provide:mr,useFactory:vl},{provide:i.tb,multi:!0,useExisting:mr}]]}}static forChild(D){return{ngModule:A,providers:[yl(D)]}}}return A.\u0275fac=function(D){return new(D||A)(i.LFG(gl,8))},A.\u0275mod=i.oAB({type:A}),A.\u0275inj=i.cJS({}),A})();function Fs(A){return"guarded"}function yl(A){return[{provide:eo,multi:!0,useValue:A}]}function vl(){const A=(0,i.f3M)(i.zs3);return S=>{const D=A.get(i.z2F);if(S!==D.components[0])return;const G=A.get(rr),ne=A.get(Ls);1===A.get(oo)&&G.initialNavigation(),A.get(_l,null,i.XFs.Optional)?.setUpPreloading(),A.get(gi,null,i.XFs.Optional)?.init(),G.resetRootComponentType(D.componentTypes[0]),ne.next(),ne.complete()}}const mr=new i.OlP("");function Zr(A){return["disabled"===A.initialNavigation?[{provide:i.ip1,multi:!0,useFactory:()=>{const A=(0,i.f3M)(rr);return()=>{A.setUpLocationChangeListener()}}},{provide:oo,useValue:2}]:[],"enabledBlocking"===A.initialNavigation?[{provide:oo,useValue:0},{provide:i.ip1,multi:!0,deps:[i.zs3],useFactory:A=>{const S=A.get(we.V_,Promise.resolve(null));let D=!1;return()=>S.then(()=>new Promise(ne=>{const He=A.get(rr),ft=A.get(Ls);(function G(ne){A.get(rr).events.pipe((0,ue.h)(ft=>ft instanceof Ri||ft instanceof yr||ft instanceof Un),(0,V.U)(ft=>ft instanceof Ri||ft instanceof yr&&(0===ft.code||1===ft.code)&&null),(0,ue.h)(ft=>null!==ft),(0,le.q)(1)).subscribe(()=>{ne()})})(()=>{ne(!0),D=!0}),He.afterPreactivation=()=>(ne(!0),D||ft.closed?(0,b.of)(void 0):ft),He.initialNavigation()}))}}]:[]]}const Ls=new i.OlP("",{factory:()=>new ae.xQ}),oo=new i.OlP("",{providedIn:"root",factory:()=>1});function Ku(A){return[Da,{provide:_l,useExisting:Da},{provide:so,useExisting:A}]}},8012:(Ct,ke,u)=>{"use strict";u.d(ke,{Ai:()=>g,DH:()=>le,KN:()=>c,dH:()=>k,rV:()=>P,ux:()=>we,wZ:()=>F});var i=u(1757);const a="https://www.bungie.net/Platform/Destiny2/";function c(gt){return(0,i.U)(gt,`${a}Manifest/`)}function g(gt,We){return(0,i.U)(gt,`${a}${We.membershipType}/Profile/${We.destinyMembershipId}/`,{components:We.components?We.components.join(","):void 0})}function P(gt,We){return(0,i.U)(gt,`${a}${We.membershipType}/Profile/${We.destinyMembershipId}/Item/${We.itemInstanceId}/`,{components:We.components?We.components.join(","):void 0})}function k(gt,We){return(0,i.U)(gt,`${a}${We.membershipType}/Profile/${We.destinyMembershipId}/Character/${We.characterId}/Vendors/`,{components:We.components?We.components.join(","):void 0,filter:We.filter})}function F(gt,We){return(0,i.U)(gt,`${a}${We.membershipType}/Profile/${We.destinyMembershipId}/Character/${We.characterId}/Vendors/${We.vendorHash}/`,{components:We.components?We.components.join(","):void 0})}function we(gt,We){return(0,i.v)(gt,`${a}Actions/Items/TransferItem/`,We)}function le(gt,We){return(0,i.v)(gt,`${a}Actions/Items/EquipItem/`,We)}},1016:(Ct,ke,u)=>{"use strict";u.d(ke,{xG:()=>h});var i=u(5861);function v(w,B){return b.apply(this,arguments)}function b(){return(b=(0,i.Z)(function*(w,B){const O={method:"GET",url:"https://www.bungie.net"+B.destinyManifest.jsonWorldComponentContentPaths[B.language][B.tableName]};try{return yield w(O)}catch(P){O.url+="?retry";try{return yield w(O)}catch{throw P}}})).apply(this,arguments)}function h(w,B){return g.apply(this,arguments)}function g(){return g=(0,i.Z)(function*(w,B){const O=yield Promise.all(B.tableNames.map(function(){var k=(0,i.Z)(function*(F){return{tableName:F,tableContent:yield v(w,{destinyManifest:B.destinyManifest,tableName:F,language:B.language})}});return function(F){return k.apply(this,arguments)}}())),P={};for(const k of O)P[k.tableName]=k.tableContent;return P}),g.apply(this,arguments)}},1757:(Ct,ke,u)=>{"use strict";function i(c,v,b){return c(b?{method:"GET",url:v,params:b}:{method:"GET",url:v})}function a(c,v,b){return c(b?{method:"POST",url:v,body:b}:{method:"POST",url:v})}u.d(ke,{U:()=>i,v:()=>a})},9891:(Ct,ke,u)=>{"use strict";u.d(ke,{Rm:()=>w});var i=u(1757);function w(k){return(0,i.U)(k,"https://www.bungie.net/Platform/User/GetMembershipsForCurrentUser/")}},6438:(Ct,ke,u)=>{"use strict";u.d(ke,{ZP:()=>ae});var i=u(2629);const a=Symbol.for("Dexie"),c=globalThis[a]||(globalThis[a]=i);if(i.semVer!==c.semVer)throw new Error(`Two different versions of Dexie loaded in the same app: ${i.semVer} and ${c.semVer}`);const ae=c},5861:(Ct,ke,u)=>{"use strict";function i(c,v,b,h,g,w,B){try{var O=c[w](B),P=O.value}catch(k){return void b(k)}O.done?v(P):Promise.resolve(P).then(h,g)}function a(c){return function(){var v=this,b=arguments;return new Promise(function(h,g){var w=c.apply(v,b);function B(P){i(w,h,g,B,O,"next",P)}function O(P){i(w,h,g,B,O,"throw",P)}B(void 0)})}}u.d(ke,{Z:()=>a})}}]); \ No newline at end of file +(self.webpackChunkD2ArmorPicker=self.webpackChunkD2ArmorPicker||[]).push([[736],{552:Ct=>{"use strict";const{AbortController:ke,AbortSignal:u}=typeof self<"u"?self:typeof window<"u"?window:void 0;Ct.exports=ke,Ct.exports.AbortSignal=u,Ct.exports.default=ke},5343:(Ct,ke)=>{"use strict";ke.byteLength=function g(F){var z=h(F),we=z[1];return 3*(z[0]+we)/4-we},ke.toByteArray=function B(F){var z,ie,ae=h(F),we=ae[0],ue=ae[1],le=new a(function D(F,z,ae){return 3*(z+ae)/4-ae}(0,we,ue)),ge=0,W=ue>0?we-4:we;for(ie=0;ie>16&255,le[ge++]=z>>8&255,le[ge++]=255&z;return 2===ue&&(z=i[F.charCodeAt(ie)]<<2|i[F.charCodeAt(ie+1)]>>4,le[ge++]=255&z),1===ue&&(z=i[F.charCodeAt(ie)]<<10|i[F.charCodeAt(ie+1)]<<4|i[F.charCodeAt(ie+2)]>>2,le[ge++]=z>>8&255,le[ge++]=255&z),le},ke.fromByteArray=function k(F){for(var z,ae=F.length,we=ae%3,ue=[],ge=0,W=ae-we;geW?W:ge+16383));return 1===we?ue.push(u[(z=F[ae-1])>>2]+u[z<<4&63]+"=="):2===we&&ue.push(u[(z=(F[ae-2]<<8)+F[ae-1])>>10]+u[z>>4&63]+u[z<<2&63]+"="),ue.join("")};for(var u=[],i=[],a=typeof Uint8Array<"u"?Uint8Array:Array,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",v=0,b=c.length;v0)throw new Error("Invalid string. Length must be a multiple of 4");var ae=F.indexOf("=");return-1===ae&&(ae=z),[ae,ae===z?0:4-ae%4]}function O(F){return u[F>>18&63]+u[F>>12&63]+u[F>>6&63]+u[63&F]}function P(F,z,ae){for(var ue=[],le=z;le{"use strict";var i=u(5343),a=u(8461),c="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;ke.Buffer=g,ke.SlowBuffer=function le(ee){return+ee!=ee&&(ee=0),g.alloc(+ee)},ke.INSPECT_MAX_BYTES=50;var v=2147483647;function h(ee){if(ee>v)throw new RangeError('The value "'+ee+'" is invalid for option "size"');var R=new Uint8Array(ee);return Object.setPrototypeOf(R,g.prototype),R}function g(ee,R,U){if("number"==typeof ee){if("string"==typeof R)throw new TypeError('The "string" argument must be of type string. Received type number');return P(ee)}return D(ee,R,U)}function D(ee,R,U){if("string"==typeof ee)return function k(ee,R){if(("string"!=typeof R||""===R)&&(R="utf8"),!g.isEncoding(R))throw new TypeError("Unknown encoding: "+R);var U=0|ge(ee,R),Re=h(U),x=Re.write(ee,R);return x!==U&&(Re=Re.slice(0,x)),Re}(ee,R);if(ArrayBuffer.isView(ee))return function z(ee){if(nt(ee,Uint8Array)){var R=new Uint8Array(ee);return ae(R.buffer,R.byteOffset,R.byteLength)}return F(ee)}(ee);if(null==ee)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ee);if(nt(ee,ArrayBuffer)||ee&&nt(ee.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(nt(ee,SharedArrayBuffer)||ee&&nt(ee.buffer,SharedArrayBuffer)))return ae(ee,R,U);if("number"==typeof ee)throw new TypeError('The "value" argument must not be of type number. Received type number');var Re=ee.valueOf&&ee.valueOf();if(null!=Re&&Re!==ee)return g.from(Re,R,U);var x=function we(ee){if(g.isBuffer(ee)){var R=0|ue(ee.length),U=h(R);return 0===U.length||ee.copy(U,0,0,R),U}return void 0!==ee.length?"number"!=typeof ee.length||Q(ee.length)?h(0):F(ee):"Buffer"===ee.type&&Array.isArray(ee.data)?F(ee.data):void 0}(ee);if(x)return x;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof ee[Symbol.toPrimitive])return g.from(ee[Symbol.toPrimitive]("string"),R,U);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ee)}function B(ee){if("number"!=typeof ee)throw new TypeError('"size" argument must be of type number');if(ee<0)throw new RangeError('The value "'+ee+'" is invalid for option "size"')}function P(ee){return B(ee),h(ee<0?0:0|ue(ee))}function F(ee){for(var R=ee.length<0?0:0|ue(ee.length),U=h(R),Re=0;Re=v)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+v.toString(16)+" bytes");return 0|ee}function ge(ee,R){if(g.isBuffer(ee))return ee.length;if(ArrayBuffer.isView(ee)||nt(ee,ArrayBuffer))return ee.byteLength;if("string"!=typeof ee)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ee);var U=ee.length,Re=arguments.length>2&&!0===arguments[2];if(!Re&&0===U)return 0;for(var x=!1;;)switch(R){case"ascii":case"latin1":case"binary":return U;case"utf8":case"utf-8":return et(ee).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*U;case"hex":return U>>>1;case"base64":return Be(ee).length;default:if(x)return Re?-1:et(ee).length;R=(""+R).toLowerCase(),x=!0}}function W(ee,R,U){var Re=!1;if((void 0===R||R<0)&&(R=0),R>this.length||((void 0===U||U>this.length)&&(U=this.length),U<=0)||(U>>>=0)<=(R>>>=0))return"";for(ee||(ee="utf8");;)switch(ee){case"hex":return Dt(this,R,U);case"utf8":case"utf-8":return Xe(this,R,U);case"ascii":return ft(this,R,U);case"latin1":case"binary":return Yt(this,R,U);case"base64":return me(this,R,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return jt(this,R,U);default:if(Re)throw new TypeError("Unknown encoding: "+ee);ee=(ee+"").toLowerCase(),Re=!0}}function ie(ee,R,U){var Re=ee[R];ee[R]=ee[U],ee[U]=Re}function he(ee,R,U,Re,x){if(0===ee.length)return-1;if("string"==typeof U?(Re=U,U=0):U>2147483647?U=2147483647:U<-2147483648&&(U=-2147483648),Q(U=+U)&&(U=x?0:ee.length-1),U<0&&(U=ee.length+U),U>=ee.length){if(x)return-1;U=ee.length-1}else if(U<0){if(!x)return-1;U=0}if("string"==typeof R&&(R=g.from(R,Re)),g.isBuffer(R))return 0===R.length?-1:se(ee,R,U,Re,x);if("number"==typeof R)return R&=255,"function"==typeof Uint8Array.prototype.indexOf?x?Uint8Array.prototype.indexOf.call(ee,R,U):Uint8Array.prototype.lastIndexOf.call(ee,R,U):se(ee,[R],U,Re,x);throw new TypeError("val must be string, number or Buffer")}function se(ee,R,U,Re,x){var X,p=1,m=ee.length,j=R.length;if(void 0!==Re&&("ucs2"===(Re=String(Re).toLowerCase())||"ucs-2"===Re||"utf16le"===Re||"utf-16le"===Re)){if(ee.length<2||R.length<2)return-1;p=2,m/=2,j/=2,U/=2}function de(T,ve){return 1===p?T[ve]:T.readUInt16BE(ve*p)}if(x){var H=-1;for(X=U;Xm&&(U=m-j),X=U;X>=0;X--){for(var f=!0,_=0;_x&&(Re=x):Re=x;var p=R.length;Re>p/2&&(Re=p/2);for(var m=0;m>8,p.push(U%256),p.push(Re);return p}(R,ee.length-U),ee,U,Re)}function me(ee,R,U){return i.fromByteArray(0===R&&U===ee.length?ee:ee.slice(R,U))}function Xe(ee,R,U){U=Math.min(ee.length,U);for(var Re=[],x=R;x239?4:p>223?3:p>191?2:1;if(x+j<=U)switch(j){case 1:p<128&&(m=p);break;case 2:128==(192&(de=ee[x+1]))&&(f=(31&p)<<6|63&de)>127&&(m=f);break;case 3:X=ee[x+2],128==(192&(de=ee[x+1]))&&128==(192&X)&&(f=(15&p)<<12|(63&de)<<6|63&X)>2047&&(f<55296||f>57343)&&(m=f);break;case 4:X=ee[x+2],H=ee[x+3],128==(192&(de=ee[x+1]))&&128==(192&X)&&128==(192&H)&&(f=(15&p)<<18|(63&de)<<12|(63&X)<<6|63&H)>65535&&f<1114112&&(m=f)}null===m?(m=65533,j=1):m>65535&&(Re.push((m-=65536)>>>10&1023|55296),m=56320|1023&m),Re.push(m),x+=j}return function yt(ee){var R=ee.length;if(R<=4096)return String.fromCharCode.apply(String,ee);for(var U="",Re=0;ReRe)&&(U=Re);for(var x="",p=R;pU)throw new RangeError("Trying to access beyond buffer length")}function Ee(ee,R,U,Re,x,p){if(!g.isBuffer(ee))throw new TypeError('"buffer" argument must be a Buffer instance');if(R>x||Ree.length)throw new RangeError("Index out of range")}function oe(ee,R,U,Re,x,p){if(U+Re>ee.length)throw new RangeError("Index out of range");if(U<0)throw new RangeError("Index out of range")}function _e(ee,R,U,Re,x){return R=+R,U>>>=0,x||oe(ee,0,U,4),a.write(ee,R,U,Re,23,4),U+4}function Oe(ee,R,U,Re,x){return R=+R,U>>>=0,x||oe(ee,0,U,8),a.write(ee,R,U,Re,52,8),U+8}ke.kMaxLength=v,!(g.TYPED_ARRAY_SUPPORT=function b(){try{var ee=new Uint8Array(1),R={foo:function(){return 42}};return Object.setPrototypeOf(R,Uint8Array.prototype),Object.setPrototypeOf(ee,R),42===ee.foo()}catch{return!1}}())&&typeof console<"u"&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.byteOffset}}),g.poolSize=8192,g.from=function(ee,R,U){return D(ee,R,U)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array),g.alloc=function(ee,R,U){return function O(ee,R,U){return B(ee),ee<=0?h(ee):void 0!==R?"string"==typeof U?h(ee).fill(R,U):h(ee).fill(R):h(ee)}(ee,R,U)},g.allocUnsafe=function(ee){return P(ee)},g.allocUnsafeSlow=function(ee){return P(ee)},g.isBuffer=function(R){return null!=R&&!0===R._isBuffer&&R!==g.prototype},g.compare=function(R,U){if(nt(R,Uint8Array)&&(R=g.from(R,R.offset,R.byteLength)),nt(U,Uint8Array)&&(U=g.from(U,U.offset,U.byteLength)),!g.isBuffer(R)||!g.isBuffer(U))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(R===U)return 0;for(var Re=R.length,x=U.length,p=0,m=Math.min(Re,x);px.length?g.from(m).copy(x,p):Uint8Array.prototype.set.call(x,m,p);else{if(!g.isBuffer(m))throw new TypeError('"list" argument must be an Array of Buffers');m.copy(x,p)}p+=m.length}return x},g.byteLength=ge,g.prototype._isBuffer=!0,g.prototype.swap16=function(){var R=this.length;if(R%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var U=0;UU&&(R+=" ... "),""},c&&(g.prototype[c]=g.prototype.inspect),g.prototype.compare=function(R,U,Re,x,p){if(nt(R,Uint8Array)&&(R=g.from(R,R.offset,R.byteLength)),!g.isBuffer(R))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof R);if(void 0===U&&(U=0),void 0===Re&&(Re=R?R.length:0),void 0===x&&(x=0),void 0===p&&(p=this.length),U<0||Re>R.length||x<0||p>this.length)throw new RangeError("out of range index");if(x>=p&&U>=Re)return 0;if(x>=p)return-1;if(U>=Re)return 1;if(this===R)return 0;for(var m=(p>>>=0)-(x>>>=0),j=(Re>>>=0)-(U>>>=0),de=Math.min(m,j),X=this.slice(x,p),H=R.slice(U,Re),f=0;f>>=0,isFinite(Re)?(Re>>>=0,void 0===x&&(x="utf8")):(x=Re,Re=void 0)}var p=this.length-U;if((void 0===Re||Re>p)&&(Re=p),R.length>0&&(Re<0||U<0)||U>this.length)throw new RangeError("Attempt to write outside buffer bounds");x||(x="utf8");for(var m=!1;;)switch(x){case"hex":return Me(this,R,U,Re);case"utf8":case"utf-8":return $e(this,R,U,Re);case"ascii":case"latin1":case"binary":return it(this,R,U,Re);case"base64":return Ke(this,R,U,Re);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return tt(this,R,U,Re);default:if(m)throw new TypeError("Unknown encoding: "+x);x=(""+x).toLowerCase(),m=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},g.prototype.slice=function(R,U){var Re=this.length;(R=~~R)<0?(R+=Re)<0&&(R=0):R>Re&&(R=Re),(U=void 0===U?Re:~~U)<0?(U+=Re)<0&&(U=0):U>Re&&(U=Re),U>>=0,U>>>=0,Re||V(R,U,this.length);for(var x=this[R],p=1,m=0;++m>>=0,U>>>=0,Re||V(R,U,this.length);for(var x=this[R+--U],p=1;U>0&&(p*=256);)x+=this[R+--U]*p;return x},g.prototype.readUint8=g.prototype.readUInt8=function(R,U){return R>>>=0,U||V(R,1,this.length),this[R]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(R,U){return R>>>=0,U||V(R,2,this.length),this[R]|this[R+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(R,U){return R>>>=0,U||V(R,2,this.length),this[R]<<8|this[R+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(R,U){return R>>>=0,U||V(R,4,this.length),(this[R]|this[R+1]<<8|this[R+2]<<16)+16777216*this[R+3]},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(R,U){return R>>>=0,U||V(R,4,this.length),16777216*this[R]+(this[R+1]<<16|this[R+2]<<8|this[R+3])},g.prototype.readIntLE=function(R,U,Re){R>>>=0,U>>>=0,Re||V(R,U,this.length);for(var x=this[R],p=1,m=0;++m=(p*=128)&&(x-=Math.pow(2,8*U)),x},g.prototype.readIntBE=function(R,U,Re){R>>>=0,U>>>=0,Re||V(R,U,this.length);for(var x=U,p=1,m=this[R+--x];x>0&&(p*=256);)m+=this[R+--x]*p;return m>=(p*=128)&&(m-=Math.pow(2,8*U)),m},g.prototype.readInt8=function(R,U){return R>>>=0,U||V(R,1,this.length),128&this[R]?-1*(255-this[R]+1):this[R]},g.prototype.readInt16LE=function(R,U){R>>>=0,U||V(R,2,this.length);var Re=this[R]|this[R+1]<<8;return 32768&Re?4294901760|Re:Re},g.prototype.readInt16BE=function(R,U){R>>>=0,U||V(R,2,this.length);var Re=this[R+1]|this[R]<<8;return 32768&Re?4294901760|Re:Re},g.prototype.readInt32LE=function(R,U){return R>>>=0,U||V(R,4,this.length),this[R]|this[R+1]<<8|this[R+2]<<16|this[R+3]<<24},g.prototype.readInt32BE=function(R,U){return R>>>=0,U||V(R,4,this.length),this[R]<<24|this[R+1]<<16|this[R+2]<<8|this[R+3]},g.prototype.readFloatLE=function(R,U){return R>>>=0,U||V(R,4,this.length),a.read(this,R,!0,23,4)},g.prototype.readFloatBE=function(R,U){return R>>>=0,U||V(R,4,this.length),a.read(this,R,!1,23,4)},g.prototype.readDoubleLE=function(R,U){return R>>>=0,U||V(R,8,this.length),a.read(this,R,!0,52,8)},g.prototype.readDoubleBE=function(R,U){return R>>>=0,U||V(R,8,this.length),a.read(this,R,!1,52,8)},g.prototype.writeUintLE=g.prototype.writeUIntLE=function(R,U,Re,x){R=+R,U>>>=0,Re>>>=0,x||Ee(this,R,U,Re,Math.pow(2,8*Re)-1,0);var m=1,j=0;for(this[U]=255&R;++j>>=0,Re>>>=0,x||Ee(this,R,U,Re,Math.pow(2,8*Re)-1,0);var m=Re-1,j=1;for(this[U+m]=255&R;--m>=0&&(j*=256);)this[U+m]=R/j&255;return U+Re},g.prototype.writeUint8=g.prototype.writeUInt8=function(R,U,Re){return R=+R,U>>>=0,Re||Ee(this,R,U,1,255,0),this[U]=255&R,U+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(R,U,Re){return R=+R,U>>>=0,Re||Ee(this,R,U,2,65535,0),this[U]=255&R,this[U+1]=R>>>8,U+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(R,U,Re){return R=+R,U>>>=0,Re||Ee(this,R,U,2,65535,0),this[U]=R>>>8,this[U+1]=255&R,U+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(R,U,Re){return R=+R,U>>>=0,Re||Ee(this,R,U,4,4294967295,0),this[U+3]=R>>>24,this[U+2]=R>>>16,this[U+1]=R>>>8,this[U]=255&R,U+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(R,U,Re){return R=+R,U>>>=0,Re||Ee(this,R,U,4,4294967295,0),this[U]=R>>>24,this[U+1]=R>>>16,this[U+2]=R>>>8,this[U+3]=255&R,U+4},g.prototype.writeIntLE=function(R,U,Re,x){if(R=+R,U>>>=0,!x){var p=Math.pow(2,8*Re-1);Ee(this,R,U,Re,p-1,-p)}var m=0,j=1,de=0;for(this[U]=255&R;++m>0)-de&255;return U+Re},g.prototype.writeIntBE=function(R,U,Re,x){if(R=+R,U>>>=0,!x){var p=Math.pow(2,8*Re-1);Ee(this,R,U,Re,p-1,-p)}var m=Re-1,j=1,de=0;for(this[U+m]=255&R;--m>=0&&(j*=256);)R<0&&0===de&&0!==this[U+m+1]&&(de=1),this[U+m]=(R/j>>0)-de&255;return U+Re},g.prototype.writeInt8=function(R,U,Re){return R=+R,U>>>=0,Re||Ee(this,R,U,1,127,-128),R<0&&(R=255+R+1),this[U]=255&R,U+1},g.prototype.writeInt16LE=function(R,U,Re){return R=+R,U>>>=0,Re||Ee(this,R,U,2,32767,-32768),this[U]=255&R,this[U+1]=R>>>8,U+2},g.prototype.writeInt16BE=function(R,U,Re){return R=+R,U>>>=0,Re||Ee(this,R,U,2,32767,-32768),this[U]=R>>>8,this[U+1]=255&R,U+2},g.prototype.writeInt32LE=function(R,U,Re){return R=+R,U>>>=0,Re||Ee(this,R,U,4,2147483647,-2147483648),this[U]=255&R,this[U+1]=R>>>8,this[U+2]=R>>>16,this[U+3]=R>>>24,U+4},g.prototype.writeInt32BE=function(R,U,Re){return R=+R,U>>>=0,Re||Ee(this,R,U,4,2147483647,-2147483648),R<0&&(R=4294967295+R+1),this[U]=R>>>24,this[U+1]=R>>>16,this[U+2]=R>>>8,this[U+3]=255&R,U+4},g.prototype.writeFloatLE=function(R,U,Re){return _e(this,R,U,!0,Re)},g.prototype.writeFloatBE=function(R,U,Re){return _e(this,R,U,!1,Re)},g.prototype.writeDoubleLE=function(R,U,Re){return Oe(this,R,U,!0,Re)},g.prototype.writeDoubleBE=function(R,U,Re){return Oe(this,R,U,!1,Re)},g.prototype.copy=function(R,U,Re,x){if(!g.isBuffer(R))throw new TypeError("argument should be a Buffer");if(Re||(Re=0),!x&&0!==x&&(x=this.length),U>=R.length&&(U=R.length),U||(U=0),x>0&&x=this.length)throw new RangeError("Index out of range");if(x<0)throw new RangeError("sourceEnd out of bounds");x>this.length&&(x=this.length),R.length-U>>=0,Re=void 0===Re?this.length:Re>>>0,R||(R=0),"number"==typeof R)for(m=U;m55295&&U<57344){if(!x){if(U>56319){(R-=3)>-1&&p.push(239,191,189);continue}if(m+1===Re){(R-=3)>-1&&p.push(239,191,189);continue}x=U;continue}if(U<56320){(R-=3)>-1&&p.push(239,191,189),x=U;continue}U=65536+(x-55296<<10|U-56320)}else x&&(R-=3)>-1&&p.push(239,191,189);if(x=null,U<128){if((R-=1)<0)break;p.push(U)}else if(U<2048){if((R-=2)<0)break;p.push(U>>6|192,63&U|128)}else if(U<65536){if((R-=3)<0)break;p.push(U>>12|224,U>>6&63|128,63&U|128)}else{if(!(U<1114112))throw new Error("Invalid code point");if((R-=4)<0)break;p.push(U>>18|240,U>>12&63|128,U>>6&63|128,63&U|128)}}return p}function Be(ee){return i.toByteArray(function be(ee){if((ee=(ee=ee.split("=")[0]).trim().replace(lt,"")).length<2)return"";for(;ee.length%4!=0;)ee+="=";return ee}(ee))}function at(ee,R,U,Re){for(var x=0;x=R.length||x>=ee.length);++x)R[x+U]=ee[x];return x}function nt(ee,R){return ee instanceof R||null!=ee&&null!=ee.constructor&&null!=ee.constructor.name&&ee.constructor.name===R.name}function Q(ee){return ee!=ee}var Le=function(){for(var ee="0123456789abcdef",R=new Array(256),U=0;U<16;++U)for(var Re=16*U,x=0;x<16;++x)R[Re+x]=ee[U]+ee[x];return R}()},2629:function(Ct){Ct.exports=function(){"use strict";var ke=function(o,d){return(ke=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,L){E.__proto__=L}||function(E,L){for(var Z in L)Object.prototype.hasOwnProperty.call(L,Z)&&(E[Z]=L[Z])})(o,d)},u=function(){return(u=Object.assign||function(o){for(var d,E=1,L=arguments.length;E"u"||a.Promise||(a.Promise=Promise);var h=Object.getPrototypeOf,g={}.hasOwnProperty;function D(o,d){return g.call(o,d)}function B(o,d){"function"==typeof d&&(d=d(h(o))),(typeof Reflect>"u"?c:Reflect.ownKeys)(d).forEach(function(E){P(o,E,d[E])})}var O=Object.defineProperty;function P(o,d,E,L){O(o,d,b(E&&D(E,"get")&&"function"==typeof E.get?{get:E.get,set:E.set,configurable:!0}:{value:E,configurable:!0,writable:!0},L))}function k(o){return{from:function(d){return o.prototype=Object.create(d.prototype),P(o.prototype,"constructor",o),{extend:B.bind(null,o.prototype)}}}}var F=Object.getOwnPropertyDescriptor,z=[].slice;function ae(o,d,E){return z.call(o,d,E)}function we(o,d){return d(o)}function ue(o){if(!o)throw new Error("Assertion Failed")}function le(o){a.setImmediate?setImmediate(o):setTimeout(o,0)}function ge(o,d){if("string"==typeof d&&D(o,d))return o[d];if(!d)return o;if("string"!=typeof d){for(var E=[],L=0,Z=d.length;L"u"?[]:function(){var o=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[o,h(o),o];var d=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[d,h(d),o]}())[1])&&Ji.then,(m=fi[0])&&m.constructor),de=!!(fi=fi[2]),X=function(o,d){St.push([o,d]),f&&(queueMicrotask(Ce),f=!1)},H=!0,f=!0,_=[],T=[],ve=_t,Je={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:Mt,pgp:!1,env:{},finalize:Mt},ze=Je,St=[],ht=0,Et=[];function ye(o){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var d=this._PSD=ze;if("function"!=typeof o){if(o!==x)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&Fe(this,this._value))}this._state=null,this._value=null,++d.ref,function E(L,Z){try{Z(function(De){if(null===L._state){if(De===L)throw new TypeError("A promise cannot be resolved with itself.");var Ze=L._lib&&Ye();De&&"function"==typeof De.then?E(L,function(mt,At){De instanceof ye?De._then(mt,At):De.then(mt,At)}):(L._state=!0,L._value=De,ot(L)),Ze&&Pe()}},Fe.bind(null,L))}catch(De){Fe(L,De)}}(this,o)}var qe={get:function(){var o=ze,d=qt;function E(L,Z){var De=this,Ze=!o.global&&(o!==ze||d!==qt),mt=Ze&&!Rt(),At=new ye(function(bt,Tt){ce(De,new xe(kn(L,o,Ze,mt),kn(Z,o,Ze,mt),bt,Tt,o))});return this._consoleTask&&(At._consoleTask=this._consoleTask),At}return E.prototype=x,E},set:function(o){P(this,"then",o&&o.prototype===x?qe:{get:function(){return o},set:qe.set})}};function xe(o,d,E,L,Z){this.onFulfilled="function"==typeof o?o:null,this.onRejected="function"==typeof d?d:null,this.resolve=E,this.reject=L,this.psd=Z}function Fe(o,d){var E,L;T.push(d),null===o._state&&(E=o._lib&&Ye(),d=ve(d),o._state=!1,o._value=d,L=o,_.some(function(Z){return Z._value===L._value})||_.push(L),ot(o),E&&Pe())}function ot(o){var d=o._listeners;o._listeners=[];for(var E=0,L=d.length;E.",fe="String expected.",re=[],Se="__dbnames",gt="readonly",Gt="readwrite";function rn(o,d){return o?d?function(){return o.apply(this,arguments)&&d.apply(this,arguments)}:o:d}var Tn={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function En(o){return"string"!=typeof o||/\./.test(o)?function(d){return d}:function(d){return void 0===d[o]&&o in d&&delete(d=it(d))[o],d}}function ci(){throw lt.Type()}function An(o,d){try{var E=ni(o),L=ni(d);if(E!==L)return"Array"===E?1:"Array"===L?-1:"binary"===E?1:"binary"===L?-1:"string"===E?1:"string"===L?-1:"Date"===E?1:"Date"!==L?NaN:-1;switch(E){case"number":case"Date":case"string":return dQt+tn&&Wt(Qt+Lt)})})}(0).then(function(){if(0"u"?ye.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(Lt){function Ot(){return indexedDB.databases().finally(Lt)}At=setInterval(Ot,100),Ot()}).finally(function(){return clearInterval(At)}):Promise.resolve()).then(function mt(){return new ye(function(Lt,Ot){if(Ze(),!E)throw new lt.MissingAPI;var Ft=o.name,Nt=d.autoSchema||!Z?E.open(Ft):E.open(Ft,Z);if(!Nt)throw new lt.MissingAPI;Nt.onerror=Ni(Ot),Nt.onblocked=ut(o._fireOnBlocked),Nt.onupgradeneeded=ut(function(Vt){var Wt;Tt=Nt.transaction,d.autoSchema&&!o._options.allowEmptyDB?(Nt.onerror=Ar,Tt.abort(),Nt.result.close(),(Wt=E.deleteDatabase(Ft)).onsuccess=Wt.onerror=ut(function(){Ot(new lt.NoSuchDatabase("Database ".concat(Ft," doesnt exist")))})):(Tt.onerror=Ni(Ot),Vt=Vt.oldVersion>Math.pow(2,62)?0:Vt.oldVersion,xt=Vt<1,o.idbdb=Nt.result,De&&function Fr(o,d){Jn(o._dbSchema,d),d.db.version%10!=0||d.objectStoreNames.contains("$meta")||d.db.createObjectStore("$meta").add(Math.ceil(d.db.version/10-1),"version");var E=Cr(0,o.idbdb,d);vi(o,o._dbSchema,d);for(var L=0,Z=Rr(E,o._dbSchema).change;L=Lt})).length?(Tt.forEach(function(Wt){Nt.push(function(){var zt=Vt,Qt=Wt._cfg.dbschema;vi(xt,zt,Ft),vi(xt,Qt,Ft),Vt=xt._dbSchema=Qt;var tn=Rr(zt,Qt);tn.add.forEach(function(vn){br(Ft,vn[0],vn[1].primKey,vn[1].indexes)}),tn.change.forEach(function(vn){if(vn.recreate)throw new lt.Upgrade("Not yet support for changing primary key");var yn=Ft.objectStore(vn.name);vn.add.forEach(function(cn){return wr(yn,cn)}),vn.change.forEach(function(cn){yn.deleteIndex(cn.name),wr(yn,cn)}),vn.del.forEach(function(cn){return yn.deleteIndex(cn)})});var sn=Wt._cfg.contentUpgrade;if(sn&&Wt._cfg.version>Lt){pr(xt,Ft),Ot._memoizedTables={};var _n=ie(Qt);tn.del.forEach(function(vn){_n[vn]=zt[vn]}),wi(xt,[xt.Transaction.prototype]),lr(xt,[xt.Transaction.prototype],c(_n),_n),Ot.schema=_n;var hn,gn=Yt(sn);return gn&&bn(),tn=ye.follow(function(){var vn;(hn=sn(Ot))&&gn&&(vn=Rt.bind(null,null),hn.then(vn,vn))}),hn&&"function"==typeof hn.then?ye.resolve(hn):tn.then(function(){return hn})}}),Nt.push(function(zt){var Qt,tn;Qt=Wt._cfg.dbschema,[].slice.call((tn=zt).db.objectStoreNames).forEach(function(_n){return null==Qt[_n]&&tn.db.deleteObjectStore(_n)}),wi(xt,[xt.Transaction.prototype]),lr(xt,[xt.Transaction.prototype],xt._storeNames,xt._dbSchema),Ot.schema=xt._dbSchema}),Nt.push(function(zt){xt.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(xt.idbdb.version/10)===Wt._cfg.version?(xt.idbdb.deleteObjectStore("$meta"),delete xt._dbSchema.$meta,xt._storeNames=xt._storeNames.filter(function(Qt){return"$meta"!==Qt})):zt.objectStore("$meta").put(Wt._cfg.version,"version"))})}),function Wt(){return Nt.length?ye.resolve(Nt.shift()(Ot.idbtrans)).then(Wt):ye.resolve()}().then(function(){Jn(Vt,Ft)})):ye.resolve();var xt,Lt,Ot,Ft,Nt,Vt}).catch(Ze)):(c(Z).forEach(function(Tt){br(E,Tt,Z[Tt].primKey,Z[Tt].indexes)}),pr(o,E),void ye.follow(function(){return o.on.populate.fire(De)}).catch(Ze));var At,bt})}(o,Vt/10,Tt,Ot))},Ot),Nt.onsuccess=ut(function(){Tt=null;var Vt,Wt,zt,Qt,tn,sn=o.idbdb=Nt.result,_n=ae(sn.objectStoreNames);if(0<_n.length)try{var hn=sn.transaction(1===(Qt=_n).length?Qt[0]:Qt,"readonly");if(d.autoSchema)zt=hn,(Vt=o).verno=(Wt=sn).version/10,zt=Vt._dbSchema=Cr(0,Wt,zt),Vt._storeNames=ae(Wt.objectStoreNames,0),lr(Vt,[Vt._allTables],c(zt),zt);else if(vi(o,o._dbSchema,hn),((tn=Rr(Cr(0,(tn=o).idbdb,hn),tn._dbSchema)).add.length||tn.change.some(function(gn){return gn.add.length||gn.change.length}))&&!De)return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."),sn.close(),Z=sn.version+1,De=!0,Lt(mt());pr(o,hn)}catch{}re.push(o),sn.onversionchange=ut(function(gn){d.vcFired=!0,o.on("versionchange").fire(gn)}),sn.onclose=ut(function(gn){o.on("close").fire(gn)}),xt&&(hn=Ft,sn=(tn=o._deps).indexedDB,tn=tn.IDBKeyRange,Ei(sn)||hn===Se||ji(sn,tn).put({name:hn}).catch(Mt)),Lt()},Ot)}).catch(function(Lt){switch(Lt?.name){case"UnknownError":if(0d.limit?Lt.length=d.limit:o.length===d.limit&&Lt.length=Wt.limit&&(!Wt.values||sn.req.values)&&function Or(o,d){return function(E,L,Z,De){if(void 0===E)return void 0!==L?-1:0;if(void 0===L)return 1;if(0===(L=An(E,L))){if(Z&&De)return 0;if(Z)return 1;if(De)return-1}return L}(o.lower,d.lower,o.lowerOpen,d.lowerOpen)<=0&&0<=function(E,L,Z,De){if(void 0===E)return void 0!==L?1:0;if(void 0===L)return-1;if(0===(L=An(E,L))){if(Z&&De)return 0;if(Z)return-1;if(De)return 1}return L}(o.upper,d.upper,o.upperOpen,d.upperOpen)}(sn.req.query.range,Wt.query.range)}),!1,zt,Qt]}(d,E,0,De),Tt=bt[0],xt=bt[1],Lt=bt[2],Ot=bt[3];return Tt&&xt?Tt.obsSet=De.obsSet:(xt=L.query(De).then(function(Ft){var Nt=Ft.result;if(Tt&&(Tt.res=Nt),Ze){for(var Vt=0,Wt=Nt.length;Vt{"use strict";var i,ke="object"==typeof Reflect?Reflect:null,u=ke&&"function"==typeof ke.apply?ke.apply:function(W,ie,he){return Function.prototype.apply.call(W,ie,he)};i=ke&&"function"==typeof ke.ownKeys?ke.ownKeys:Object.getOwnPropertySymbols?function(W){return Object.getOwnPropertyNames(W).concat(Object.getOwnPropertySymbols(W))}:function(W){return Object.getOwnPropertyNames(W)};var c=Number.isNaN||function(W){return W!=W};function v(){v.init.call(this)}Ct.exports=v,Ct.exports.once=function we(ge,W){return new Promise(function(ie,he){function se($e){ge.removeListener(W,Me),he($e)}function Me(){"function"==typeof ge.removeListener&&ge.removeListener("error",se),ie([].slice.call(arguments))}le(ge,W,Me,{once:!0}),"error"!==W&&function ue(ge,W,ie){"function"==typeof ge.on&&le(ge,"error",W,ie)}(ge,se,{once:!0})})},v.EventEmitter=v,v.prototype._events=void 0,v.prototype._eventsCount=0,v.prototype._maxListeners=void 0;var b=10;function h(ge){if("function"!=typeof ge)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof ge)}function g(ge){return void 0===ge._maxListeners?v.defaultMaxListeners:ge._maxListeners}function D(ge,W,ie,he){var se,Me,$e;if(h(ie),void 0===(Me=ge._events)?(Me=ge._events=Object.create(null),ge._eventsCount=0):(void 0!==Me.newListener&&(ge.emit("newListener",W,ie.listener?ie.listener:ie),Me=ge._events),$e=Me[W]),void 0===$e)$e=Me[W]=ie,++ge._eventsCount;else if("function"==typeof $e?$e=Me[W]=he?[ie,$e]:[$e,ie]:he?$e.unshift(ie):$e.push(ie),(se=g(ge))>0&&$e.length>se&&!$e.warned){$e.warned=!0;var it=new Error("Possible EventEmitter memory leak detected. "+$e.length+" "+String(W)+" listeners added. Use emitter.setMaxListeners() to increase limit");it.name="MaxListenersExceededWarning",it.emitter=ge,it.type=W,it.count=$e.length,function a(ge){console&&console.warn&&console.warn(ge)}(it)}return ge}function B(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function O(ge,W,ie){var he={fired:!1,wrapFn:void 0,target:ge,type:W,listener:ie},se=B.bind(he);return se.listener=ie,he.wrapFn=se,se}function P(ge,W,ie){var he=ge._events;if(void 0===he)return[];var se=he[W];return void 0===se?[]:"function"==typeof se?ie?[se.listener||se]:[se]:ie?function ae(ge){for(var W=new Array(ge.length),ie=0;ie0&&($e=ie[0]),$e instanceof Error)throw $e;var it=new Error("Unhandled error."+($e?" ("+$e.message+")":""));throw it.context=$e,it}var Ke=Me[W];if(void 0===Ke)return!1;if("function"==typeof Ke)u(Ke,this,ie);else{var tt=Ke.length,me=F(Ke,tt);for(he=0;he=0;$e--)if(he[$e]===ie||he[$e].listener===ie){it=he[$e].listener,Me=$e;break}if(Me<0)return this;0===Me?he.shift():function z(ge,W){for(;W+1=0;se--)this.removeListener(W,ie[se]);return this},v.prototype.listeners=function(W){return P(this,W,!0)},v.prototype.rawListeners=function(W){return P(this,W,!1)},v.listenerCount=function(ge,W){return"function"==typeof ge.listenerCount?ge.listenerCount(W):k.call(ge,W)},v.prototype.listenerCount=k,v.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},8461:(Ct,ke)=>{ke.read=function(u,i,a,c,v){var b,h,g=8*v-c-1,D=(1<>1,O=-7,P=a?v-1:0,k=a?-1:1,F=u[i+P];for(P+=k,b=F&(1<<-O)-1,F>>=-O,O+=g;O>0;b=256*b+u[i+P],P+=k,O-=8);for(h=b&(1<<-O)-1,b>>=-O,O+=c;O>0;h=256*h+u[i+P],P+=k,O-=8);if(0===b)b=1-B;else{if(b===D)return h?NaN:1/0*(F?-1:1);h+=Math.pow(2,c),b-=B}return(F?-1:1)*h*Math.pow(2,b-c)},ke.write=function(u,i,a,c,v,b){var h,g,D,B=8*b-v-1,O=(1<>1,k=23===v?Math.pow(2,-24)-Math.pow(2,-77):0,F=c?0:b-1,z=c?1:-1,ae=i<0||0===i&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(g=isNaN(i)?1:0,h=O):(h=Math.floor(Math.log(i)/Math.LN2),i*(D=Math.pow(2,-h))<1&&(h--,D*=2),(i+=h+P>=1?k/D:k*Math.pow(2,1-P))*D>=2&&(h++,D/=2),h+P>=O?(g=0,h=O):h+P>=1?(g=(i*D-1)*Math.pow(2,v),h+=P):(g=i*Math.pow(2,P-1)*Math.pow(2,v),h=0));v>=8;u[a+F]=255&g,F+=z,g/=256,v-=8);for(h=h<0;u[a+F]=255&h,F+=z,h/=256,B-=8);u[a+F-z]|=128*ae}},9598:(Ct,ke,u)=>{var c,i,a;Ct=u.nmd(Ct),(c=a||(a={})).runningInNodeJS=function(){return"object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node},c.runningInMainNodeJSModule=function(){return c.runningInNodeJS()&&u.c[u.s]===Ct},c.commonJSAvailable=function(){return"object"==typeof Ct.exports},c.runningInWebWorker=function(){return typeof window>"u"&&"object"==typeof self&&"function"==typeof self.addEventListener&&"function"==typeof self.close},c.runningInNodeChildProcess=function(){return c.runningInNodeJS()&&"function"==typeof process.send},c.runningInNullOrigin=function(){return"object"==typeof window&&"object"==typeof window.location&&"object"==typeof document&&"http:"!==document.location.protocol&&"https:"!==document.location.protocol},c.webWorkersAvailable=function(){return!("function"!=typeof Worker||c.runningInNullOrigin()||c.runningInNodeJS()||navigator&&navigator.userAgent&&navigator.userAgent.indexOf("Android 4.3")>=0)},c.log=function(v,b){void 0===b&&(b=!1),"object"==typeof console&&(console.log(v),b&&"object"==typeof document&&(document.body.innerHTML+=v+"
"))},c.createErrorMessage=function(v,b){if(void 0===b&&(b="Unhandled exception"),null==v)return b;if(b+=": ","object"==typeof v.content){if(c.runningInNodeJS())return b+v.content.stack;var h=JSON.stringify(v.content);return"{}"!==h?b+h:b+v.content}return"string"==typeof v.content?b+v.content:b+v},c.printExceptionAndStackTraceToConsole=function(v,b){void 0===b&&(b="Unhandled exception"),c.log(c.createErrorMessage(v,b))},c.getGlobalObject=function(){return"object"==typeof global?global:"object"==typeof window?window:"object"==typeof self?self:{}},c.toString=Object.prototype.toString,c.commonJSAvailable()&&(Ct.exports=c),function(c){if("function"==typeof Uint8Array&&0!==new Uint8Array(1).subarray(1).byteLength){var v=function(D,B){var O=function(k,F,z){return kz?z:k};D|=0,B|=0,arguments.length<1&&(D=0),arguments.length<2&&(B=this.length),D<0&&(D=this.length+D),B<0&&(B=this.length+B),D=O(D,0,this.length);var P=(B=O(B,0,this.length))-D;return P<0&&(P=0),new this.constructor(this.buffer,this.byteOffset+D*this.BYTES_PER_ELEMENT,P)},b=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"],h=void 0;if("object"==typeof window?h=window:"object"==typeof self&&(h=self),void 0!==h)for(var g=0;g=55296&&g<=57343);b+=c.Encoding.CodePoint.decodeToString(g)}return b}}(a||(a={})),function(c){var v=function(){function b(h){void 0===h&&(h=1024),this.outputBufferCapacity=h,this.outputPosition=0,this.outputString="",this.outputBuffer=new Uint16Array(this.outputBufferCapacity)}return b.prototype.appendCharCode=function(h){this.outputBuffer[this.outputPosition++]=h,this.outputPosition===this.outputBufferCapacity&&this.flushBufferToOutputString()},b.prototype.appendCharCodes=function(h){for(var g=0,D=h.length;g>>10)),this.appendCharCode(56320+(h-65536&1023))}},b.prototype.getOutputString=function(){return this.flushBufferToOutputString(),this.outputString},b.prototype.flushBufferToOutputString=function(){this.outputString+=String.fromCharCode.apply(null,this.outputPosition===this.outputBufferCapacity?this.outputBuffer:this.outputBuffer.subarray(0,this.outputPosition)),this.outputPosition=0},b}();c.StringBuilder=v}(a||(a={})),function(c){var v=function(){function b(){this.restart()}return b.prototype.restart=function(){this.startTime=b.getTimestamp()},b.prototype.getElapsedTime=function(){return b.getTimestamp()-this.startTime},b.prototype.getElapsedTimeAndRestart=function(){var h=this.getElapsedTime();return this.restart(),h},b.prototype.logAndRestart=function(h,g){void 0===g&&(g=!0);var D=this.getElapsedTime(),B="".concat(h,": ").concat(D.toFixed(3),"ms");return c.log(B,g),this.restart(),D},b.getTimestamp=function(){return this.timestampFunc||this.createGlobalTimestampFunction(),this.timestampFunc()},b.getMicrosecondTimestamp=function(){return Math.floor(1e3*b.getTimestamp())},b.createGlobalTimestampFunction=function(){if("object"==typeof process&&"function"==typeof process.hrtime){var h=0;this.timestampFunc=function(){var O=process.hrtime();return h+(1e3*O[0]+O[1]/1e6)},h=Date.now()-this.timestampFunc()}else if("object"==typeof chrome&&chrome.Interval){var g=Date.now(),D=new chrome.Interval;D.start(),this.timestampFunc=function(){return g+D.microseconds()/1e3}}else if("object"==typeof performance&&performance.now){var B=Date.now()-performance.now();this.timestampFunc=function(){return B+performance.now()}}else this.timestampFunc=Date.now?function(){return Date.now()}:function(){return(new Date).getTime()}},b}();c.Timer=v}(a||(a={})),function(c){var v=function(){function b(h){void 0===h&&(h=!0),this.MinimumSequenceLength=4,this.MaximumSequenceLength=31,this.MaximumMatchDistance=32767,this.PrefixHashTableSize=65537,this.inputBufferStreamOffset=1,this.prefixHashTable=h&&"function"==typeof Uint32Array?new c.CompressorCustomHashTable(this.PrefixHashTableSize):new c.CompressorSimpleHashTable(this.PrefixHashTableSize)}return b.prototype.compressBlock=function(h){if(null==h)throw new TypeError("compressBlock: undefined or null input received");return"string"==typeof h&&(h=c.encodeUTF8(h)),h=c.BufferTools.convertToUint8ArrayIfNeeded(h),this.compressUtf8Block(h)},b.prototype.compressUtf8Block=function(h){if(!h||0==h.length)return new Uint8Array(0);var g=this.cropAndAddNewBytesToInputBuffer(h),D=this.inputBuffer,B=this.inputBuffer.length;this.outputBuffer=new Uint8Array(h.length),this.outputBufferPosition=0;for(var O=0,P=g;PB-this.MinimumSequenceLength)F||this.outputRawByte(k);else{var z=this.getBucketIndexForPrefix(P);if(!F){var ae=this.findLongestMatch(P,z);null!=ae&&(this.outputPointerBytes(ae.length,ae.distance),O=P+ae.length,F=!0)}F||this.outputRawByte(k),this.prefixHashTable.addValueToBucket(z,this.inputBufferStreamOffset+P)}}return this.outputBuffer.subarray(0,this.outputBufferPosition)},b.prototype.findLongestMatch=function(h,g){var D=this.prefixHashTable.getArraySegmentForBucketIndex(g,this.reusableArraySegmentObject);if(null==D)return null;for(var O,B=this.inputBuffer,P=0,k=0;k=128?P+(P>>>1):P,z>this.MaximumMatchDistance||ae>=this.MaximumSequenceLength||h+ae>=B.length)break;if(B[F+ae]===B[h+ae])for(var we=0;;we++){if(h+we===B.length||B[F+we]!==B[h+we]){we>ae&&(O=z,P=we);break}if(we===this.MaximumSequenceLength)return{distance:z,length:this.MaximumSequenceLength}}}return void 0!==O?{distance:O,length:P}:null},b.prototype.getBucketIndexForPrefix=function(h){return(7880599*this.inputBuffer[h]+39601*this.inputBuffer[h+1]+199*this.inputBuffer[h+2]+this.inputBuffer[h+3])%this.PrefixHashTableSize},b.prototype.outputPointerBytes=function(h,g){g<128?(this.outputRawByte(192|h),this.outputRawByte(g)):(this.outputRawByte(224|h),this.outputRawByte(g>>>8),this.outputRawByte(255&g))},b.prototype.outputRawByte=function(h){this.outputBuffer[this.outputBufferPosition++]=h},b.prototype.cropAndAddNewBytesToInputBuffer=function(h){if(void 0===this.inputBuffer)return this.inputBuffer=h,0;var g=Math.min(this.inputBuffer.length,this.MaximumMatchDistance),D=this.inputBuffer.length-g;return this.inputBuffer=c.CompressionCommon.getCroppedAndAppendedByteArray(this.inputBuffer,D,g,h),this.inputBufferStreamOffset+=D,g},b}();c.Compressor=v}(a||(a={})),function(c){var v=function(){function b(h){this.minimumBucketCapacity=4,this.maximumBucketCapacity=64,this.bucketLocators=new Uint32Array(2*h),this.storage=new Uint32Array(2*h),this.storageIndex=1}return b.prototype.addValueToBucket=function(h,g){h<<=1,this.storageIndex>=this.storage.length>>>1&&this.compact();var B,D=this.bucketLocators[h];if(0===D)D=this.storageIndex,B=1,this.storage[this.storageIndex]=g,this.storageIndex+=this.minimumBucketCapacity;else{(B=this.bucketLocators[h+1])===this.maximumBucketCapacity-1&&(B=this.truncateBucketToNewerElements(D,B,this.maximumBucketCapacity/2));var O=D+B;0===this.storage[O]?(this.storage[O]=g,O===this.storageIndex&&(this.storageIndex+=B)):(c.ArrayTools.copyElements(this.storage,D,this.storage,this.storageIndex,B),D=this.storageIndex,this.storageIndex+=B,this.storage[this.storageIndex++]=g,this.storageIndex+=B),B++}this.bucketLocators[h]=D,this.bucketLocators[h+1]=B},b.prototype.truncateBucketToNewerElements=function(h,g,D){return c.ArrayTools.copyElements(this.storage,h+g-D,this.storage,h,D),c.ArrayTools.zeroElements(this.storage,h+D,g-D),D},b.prototype.compact=function(){var h=this.bucketLocators,g=this.storage;this.bucketLocators=new Uint32Array(this.bucketLocators.length),this.storageIndex=1;for(var D=0;D>>6==3){var P=O>>>5;if(D==B-1||D==B-2&&7==P){this.inputBufferRemainder=h.subarray(D);break}if(h[D+1]>>>7==1)this.outputByte(O);else{var k=31&O,F=void 0;6==P?(F=h[D+1],D+=1):(F=h[D+1]<<8|h[D+2],D+=2);for(var z=this.outputPosition-F,ae=0;ae=0;h++){var g=this.outputBuffer[this.outputPosition-h];if(h<4&&g>>>3==30||h<3&&g>>>4==14||h<2&&g>>>5==6)return this.outputBufferRemainder=this.outputBuffer.subarray(this.outputPosition-h,this.outputPosition),void(this.outputPosition-=h)}},b}();c.Decompressor=v}(a||(a={})),function(c){var b,g,D,B;b=c.Encoding||(c.Encoding={}),g=b.Base64||(b.Base64={}),D=new Uint8Array([65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,48,49,50,51,52,53,54,55,56,57,43,47]),B=new Uint8Array([255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,62,255,255,255,63,52,53,54,55,56,57,58,59,60,61,255,255,255,0,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255,255,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,255,255,255,255]),g.encode=function(k){return k&&0!=k.length?c.runningInNodeJS()?c.BufferTools.uint8ArrayToBuffer(k).toString("base64"):g.encodeWithJS(k):""},g.decode=function(k){return k?c.runningInNodeJS()?c.BufferTools.bufferToUint8Array(Buffer.from(k,"base64")):g.decodeWithJS(k):new Uint8Array(0)},g.encodeWithJS=function(k,F){if(void 0===F&&(F=!0),!k||0==k.length)return"";for(var we,z=D,ae=new c.StringBuilder,ue=0,le=k.length;ue>>18&63]),ae.appendCharCode(z[we>>>12&63]),ae.appendCharCode(z[we>>>6&63]),ae.appendCharCode(z[63&we]),we=0):ue===le-2?(ae.appendCharCode(z[(we=k[ue]<<16|k[ue+1]<<8)>>>18&63]),ae.appendCharCode(z[we>>>12&63]),ae.appendCharCode(z[we>>>6&63]),F&&ae.appendCharCode(61)):ue===le-1&&(ae.appendCharCode(z[(we=k[ue]<<16)>>>18&63]),ae.appendCharCode(z[we>>>12&63]),F&&(ae.appendCharCode(61),ae.appendCharCode(61)));return ae.getOutputString()},g.decodeWithJS=function(k,F){if(!k||0==k.length)return new Uint8Array(0);var z=k.length%4;if(1===z)throw new Error("Invalid Base64 string: length % 4 == 1");2===z?k+="==":3===z&&(k+="="),F||(F=new Uint8Array(k.length));for(var ae=0,we=k.length,ue=0;ue>>16&255,F[ae++]=le>>>8&255,F[ae++]=255&le}return 61==k.charCodeAt(we-1)&&ae--,61==k.charCodeAt(we-2)&&ae--,F.subarray(0,ae)}}(a||(a={})),function(c){var b,g;(g=(b=c.Encoding||(c.Encoding={})).BinaryString||(b.BinaryString={})).encode=function(D){if(null==D)throw new TypeError("BinaryString.encode: undefined or null input received");if(0===D.length)return"";for(var B=D.length,O=new c.StringBuilder,P=0,k=1,F=0;F>>k),P=z&(1<=B-2&&O.appendCharCode(P<<16-k)}return O.appendCharCode(32768|B%2),O.getOutputString()},g.decode=function(D){if("string"!=typeof D)throw new TypeError("BinaryString.decode: invalid input type");if(""==D)return new Uint8Array(0);for(var B=new Uint8Array(3*D.length),O=0,k=0,F=0,z=0;z=32768?(32769==ae&&O--,F=0):(0==F?k=ae:(B[O++]=(we=k<>>15-F)>>>8,B[O++]=255&we,k=ae&(1<<15-F)-1),15==F?F=0:F+=1)}var we;return B.subarray(0,O)}}(a||(a={})),function(c){var b,g;(g=(b=c.Encoding||(c.Encoding={})).CodePoint||(b.CodePoint={})).encodeFromString=function(D,B){var O=D.charCodeAt(B);if(O<55296||O>56319)return O;var P=D.charCodeAt(B+1);if(P>=56320&&P<=57343)return P-56320+(O-55296<<10)+65536;throw new Error("getUnicodeCodePoint: Received a lead surrogate character, char code ".concat(O,", followed by ").concat(P,", which is not a trailing surrogate character code."))},g.decodeToString=function(D){if(D<=65535)return String.fromCharCode(D);if(D<=1114111)return String.fromCharCode(55296+(D-65536>>>10),56320+(D-65536&1023));throw new Error("getStringFromUnicodeCodePoint: A code point of ".concat(D," cannot be encoded in UTF-16"))}}(a||(a={})),function(c){var b,g,D;g=(b=c.Encoding||(c.Encoding={})).DecimalString||(b.DecimalString={}),D=["000","001","002","003","004","005","006","007","008","009","010","011","012","013","014","015","016","017","018","019","020","021","022","023","024","025","026","027","028","029","030","031","032","033","034","035","036","037","038","039","040","041","042","043","044","045","046","047","048","049","050","051","052","053","054","055","056","057","058","059","060","061","062","063","064","065","066","067","068","069","070","071","072","073","074","075","076","077","078","079","080","081","082","083","084","085","086","087","088","089","090","091","092","093","094","095","096","097","098","099","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255"],g.encode=function(B){for(var O=[],P=0;P>>6,P[k++]=128|63&z;else if(z<=65535)P[k++]=224|z>>>12,P[k++]=128|z>>>6&63,P[k++]=128|63&z;else{if(!(z<=1114111))throw new Error("Invalid UTF-16 string: Encountered a character unsupported by UTF-8/16 (RFC 3629)");P[k++]=240|z>>>18,P[k++]=128|z>>>12&63,P[k++]=128|z>>>6&63,P[k++]=128|63&z,F++}}return P.subarray(0,k)},g.decodeWithJS=function(O,P,k){if(void 0===P&&(P=0),!O||0==O.length)return"";void 0===k&&(k=O.length);for(var z,ae,F=new c.StringBuilder,we=P,ue=k;we>>7==0)z=ae,we+=1;else if(ae>>>5==6){if(we+1>=k)throw new Error("Invalid UTF-8 stream: Truncated codepoint sequence encountered at position "+we);z=(31&ae)<<6|63&O[we+1],we+=2}else if(ae>>>4==14){if(we+2>=k)throw new Error("Invalid UTF-8 stream: Truncated codepoint sequence encountered at position "+we);z=(15&ae)<<12|(63&O[we+1])<<6|63&O[we+2],we+=3}else{if(ae>>>3!=30)throw new Error("Invalid UTF-8 stream: An invalid lead byte value encountered at position "+we);if(we+3>=k)throw new Error("Invalid UTF-8 stream: Truncated codepoint sequence encountered at position "+we);z=(7&ae)<<18|(63&O[we+1])<<12|(63&O[we+2])<<6|63&O[we+3],we+=4}F.appendCodePoint(z)}return F.getOutputString()},g.createNativeTextEncoderAndDecoderIfAvailable=function(){return!!D||"function"==typeof TextEncoder&&(D=new TextEncoder("utf-8"),B=new TextDecoder("utf-8"),!0)}}(a||(a={})),function(c){c.compress=function v(le,ge){if(void 0===ge&&(ge={}),null==le)throw new TypeError("compress: undefined or null input received");var W=c.CompressionCommon.detectCompressionSourceEncoding(le);ge=c.ObjectTools.override({inputEncoding:W,outputEncoding:"ByteArray"},ge);var he=(new c.Compressor).compressBlock(le);return c.CompressionCommon.encodeCompressedBytes(he,ge.outputEncoding)},c.decompress=function b(le,ge){if(void 0===ge&&(ge={}),null==le)throw new TypeError("decompress: undefined or null input received");ge=c.ObjectTools.override({inputEncoding:"ByteArray",outputEncoding:"String"},ge);var W=c.CompressionCommon.decodeCompressedBytes(le,ge.inputEncoding),he=(new c.Decompressor).decompressBlock(W);return c.CompressionCommon.encodeDecompressedBytes(he,ge.outputEncoding)},c.compressAsync=function h(le,ge,W){var ie;null==W&&(W=function(){});try{ie=c.CompressionCommon.detectCompressionSourceEncoding(le)}catch(he){return void W(void 0,he)}ge=c.ObjectTools.override({inputEncoding:ie,outputEncoding:"ByteArray",useWebWorker:!0,blockSize:65536},ge),c.enqueueImmediate(function(){ge.useWebWorker&&c.WebWorker.createGlobalWorkerIfNeeded()?c.WebWorker.compressAsync(le,ge,W):c.AsyncCompressor.compressAsync(le,ge,W)})},c.decompressAsync=function g(le,ge,W){if(null==W&&(W=function(){}),null!=le){ge=c.ObjectTools.override({inputEncoding:"ByteArray",outputEncoding:"String",useWebWorker:!0,blockSize:65536},ge);var ie=c.BufferTools.convertToUint8ArrayIfNeeded(le);c.EventLoop.enqueueImmediate(function(){ge.useWebWorker&&c.WebWorker.createGlobalWorkerIfNeeded()?c.WebWorker.decompressAsync(ie,ge,W):c.AsyncDecompressor.decompressAsync(le,ge,W)})}else W(void 0,new TypeError("decompressAsync: undefined or null input received"))},c.createCompressionStream=function D(){return c.AsyncCompressor.createCompressionStream()},c.createDecompressionStream=function B(){return c.AsyncDecompressor.createDecompressionStream()},c.encodeUTF8=function O(le){return c.Encoding.UTF8.encode(le)},c.decodeUTF8=function P(le){return c.Encoding.UTF8.decode(le)},c.encodeBase64=function k(le){return c.Encoding.Base64.encode(le)},c.decodeBase64=function F(le){return c.Encoding.Base64.decode(le)},c.encodeBinaryString=function z(le){return c.Encoding.BinaryString.encode(le)},c.decodeBinaryString=function ae(le){return c.Encoding.BinaryString.decode(le)},c.encodeStorageBinaryString=function we(le){return c.Encoding.StorageBinaryString.encode(le)},c.decodeStorageBinaryString=function ue(le){return c.Encoding.StorageBinaryString.decode(le)}}(a||(a={}))},1160:(Ct,ke,u)=>{"use strict";const i=u(5343),a=u(8461),c="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;ke.Buffer=g,ke.SlowBuffer=function le(f){return+f!=f&&(f=0),g.alloc(+f)},ke.INSPECT_MAX_BYTES=50;const v=2147483647;function h(f){if(f>v)throw new RangeError('The value "'+f+'" is invalid for option "size"');const _=new Uint8Array(f);return Object.setPrototypeOf(_,g.prototype),_}function g(f,_,T){if("number"==typeof f){if("string"==typeof _)throw new TypeError('The "string" argument must be of type string. Received type number');return P(f)}return D(f,_,T)}function D(f,_,T){if("string"==typeof f)return function k(f,_){if(("string"!=typeof _||""===_)&&(_="utf8"),!g.isEncoding(_))throw new TypeError("Unknown encoding: "+_);const T=0|ge(f,_);let ve=h(T);const Je=ve.write(f,_);return Je!==T&&(ve=ve.slice(0,Je)),ve}(f,_);if(ArrayBuffer.isView(f))return function z(f){if(m(f,Uint8Array)){const _=new Uint8Array(f);return ae(_.buffer,_.byteOffset,_.byteLength)}return F(f)}(f);if(null==f)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof f);if(m(f,ArrayBuffer)||f&&m(f.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(m(f,SharedArrayBuffer)||f&&m(f.buffer,SharedArrayBuffer)))return ae(f,_,T);if("number"==typeof f)throw new TypeError('The "value" argument must not be of type number. Received type number');const ve=f.valueOf&&f.valueOf();if(null!=ve&&ve!==f)return g.from(ve,_,T);const Je=function we(f){if(g.isBuffer(f)){const _=0|ue(f.length),T=h(_);return 0===T.length||f.copy(T,0,0,_),T}return void 0!==f.length?"number"!=typeof f.length||j(f.length)?h(0):F(f):"Buffer"===f.type&&Array.isArray(f.data)?F(f.data):void 0}(f);if(Je)return Je;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof f[Symbol.toPrimitive])return g.from(f[Symbol.toPrimitive]("string"),_,T);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof f)}function B(f){if("number"!=typeof f)throw new TypeError('"size" argument must be of type number');if(f<0)throw new RangeError('The value "'+f+'" is invalid for option "size"')}function P(f){return B(f),h(f<0?0:0|ue(f))}function F(f){const _=f.length<0?0:0|ue(f.length),T=h(_);for(let ve=0;ve<_;ve+=1)T[ve]=255&f[ve];return T}function ae(f,_,T){if(_<0||f.byteLength<_)throw new RangeError('"offset" is outside of buffer bounds');if(f.byteLength<_+(T||0))throw new RangeError('"length" is outside of buffer bounds');let ve;return ve=void 0===_&&void 0===T?new Uint8Array(f):void 0===T?new Uint8Array(f,_):new Uint8Array(f,_,T),Object.setPrototypeOf(ve,g.prototype),ve}function ue(f){if(f>=v)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+v.toString(16)+" bytes");return 0|f}function ge(f,_){if(g.isBuffer(f))return f.length;if(ArrayBuffer.isView(f)||m(f,ArrayBuffer))return f.byteLength;if("string"!=typeof f)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof f);const T=f.length,ve=arguments.length>2&&!0===arguments[2];if(!ve&&0===T)return 0;let Je=!1;for(;;)switch(_){case"ascii":case"latin1":case"binary":return T;case"utf8":case"utf-8":return R(f).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*T;case"hex":return T>>>1;case"base64":return x(f).length;default:if(Je)return ve?-1:R(f).length;_=(""+_).toLowerCase(),Je=!0}}function W(f,_,T){let ve=!1;if((void 0===_||_<0)&&(_=0),_>this.length||((void 0===T||T>this.length)&&(T=this.length),T<=0)||(T>>>=0)<=(_>>>=0))return"";for(f||(f="utf8");;)switch(f){case"hex":return Dt(this,_,T);case"utf8":case"utf-8":return Xe(this,_,T);case"ascii":return ft(this,_,T);case"latin1":case"binary":return Yt(this,_,T);case"base64":return me(this,_,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return jt(this,_,T);default:if(ve)throw new TypeError("Unknown encoding: "+f);f=(f+"").toLowerCase(),ve=!0}}function ie(f,_,T){const ve=f[_];f[_]=f[T],f[T]=ve}function he(f,_,T,ve,Je){if(0===f.length)return-1;if("string"==typeof T?(ve=T,T=0):T>2147483647?T=2147483647:T<-2147483648&&(T=-2147483648),j(T=+T)&&(T=Je?0:f.length-1),T<0&&(T=f.length+T),T>=f.length){if(Je)return-1;T=f.length-1}else if(T<0){if(!Je)return-1;T=0}if("string"==typeof _&&(_=g.from(_,ve)),g.isBuffer(_))return 0===_.length?-1:se(f,_,T,ve,Je);if("number"==typeof _)return _&=255,"function"==typeof Uint8Array.prototype.indexOf?Je?Uint8Array.prototype.indexOf.call(f,_,T):Uint8Array.prototype.lastIndexOf.call(f,_,T):se(f,[_],T,ve,Je);throw new TypeError("val must be string, number or Buffer")}function se(f,_,T,ve,Je){let ye,ze=1,St=f.length,ht=_.length;if(void 0!==ve&&("ucs2"===(ve=String(ve).toLowerCase())||"ucs-2"===ve||"utf16le"===ve||"utf-16le"===ve)){if(f.length<2||_.length<2)return-1;ze=2,St/=2,ht/=2,T/=2}function Et(qe,xe){return 1===ze?qe[xe]:qe.readUInt16BE(xe*ze)}if(Je){let qe=-1;for(ye=T;yeSt&&(T=St-ht),ye=T;ye>=0;ye--){let qe=!0;for(let xe=0;xeJe&&(ve=Je):ve=Je;const ze=_.length;let St;for(ve>ze/2&&(ve=ze/2),St=0;St>8,Je=T%256,ze.push(Je),ze.push(ve);return ze}(_,f.length-T),f,T,ve)}function me(f,_,T){return i.fromByteArray(0===_&&T===f.length?f:f.slice(_,T))}function Xe(f,_,T){T=Math.min(f.length,T);const ve=[];let Je=_;for(;Je239?4:ze>223?3:ze>191?2:1;if(Je+ht<=T){let Et,ye,qe,xe;switch(ht){case 1:ze<128&&(St=ze);break;case 2:Et=f[Je+1],128==(192&Et)&&(xe=(31&ze)<<6|63&Et,xe>127&&(St=xe));break;case 3:Et=f[Je+1],ye=f[Je+2],128==(192&Et)&&128==(192&ye)&&(xe=(15&ze)<<12|(63&Et)<<6|63&ye,xe>2047&&(xe<55296||xe>57343)&&(St=xe));break;case 4:Et=f[Je+1],ye=f[Je+2],qe=f[Je+3],128==(192&Et)&&128==(192&ye)&&128==(192&qe)&&(xe=(15&ze)<<18|(63&Et)<<12|(63&ye)<<6|63&qe,xe>65535&&xe<1114112&&(St=xe))}}null===St?(St=65533,ht=1):St>65535&&(St-=65536,ve.push(St>>>10&1023|55296),St=56320|1023&St),ve.push(St),Je+=ht}return function yt(f){const _=f.length;if(_<=4096)return String.fromCharCode.apply(String,f);let T="",ve=0;for(;ve<_;)T+=String.fromCharCode.apply(String,f.slice(ve,ve+=4096));return T}(ve)}function ft(f,_,T){let ve="";T=Math.min(f.length,T);for(let Je=_;Jeve)&&(T=ve);let Je="";for(let ze=_;zeT)throw new RangeError("Trying to access beyond buffer length")}function Ee(f,_,T,ve,Je,ze){if(!g.isBuffer(f))throw new TypeError('"buffer" argument must be a Buffer instance');if(_>Je||_f.length)throw new RangeError("Index out of range")}function oe(f,_,T,ve,Je){at(_,ve,Je,f,T,7);let ze=Number(_&BigInt(4294967295));f[T++]=ze,ze>>=8,f[T++]=ze,ze>>=8,f[T++]=ze,ze>>=8,f[T++]=ze;let St=Number(_>>BigInt(32)&BigInt(4294967295));return f[T++]=St,St>>=8,f[T++]=St,St>>=8,f[T++]=St,St>>=8,f[T++]=St,T}function _e(f,_,T,ve,Je){at(_,ve,Je,f,T,7);let ze=Number(_&BigInt(4294967295));f[T+7]=ze,ze>>=8,f[T+6]=ze,ze>>=8,f[T+5]=ze,ze>>=8,f[T+4]=ze;let St=Number(_>>BigInt(32)&BigInt(4294967295));return f[T+3]=St,St>>=8,f[T+2]=St,St>>=8,f[T+1]=St,St>>=8,f[T]=St,T+8}function Oe(f,_,T,ve,Je,ze){if(T+ve>f.length)throw new RangeError("Index out of range");if(T<0)throw new RangeError("Index out of range")}function lt(f,_,T,ve,Je){return _=+_,T>>>=0,Je||Oe(f,0,T,4),a.write(f,_,T,ve,23,4),T+4}function be(f,_,T,ve,Je){return _=+_,T>>>=0,Je||Oe(f,0,T,8),a.write(f,_,T,ve,52,8),T+8}ke.kMaxLength=v,!(g.TYPED_ARRAY_SUPPORT=function b(){try{const f=new Uint8Array(1),_={foo:function(){return 42}};return Object.setPrototypeOf(_,Uint8Array.prototype),Object.setPrototypeOf(f,_),42===f.foo()}catch{return!1}}())&&typeof console<"u"&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.byteOffset}}),g.poolSize=8192,g.from=function(f,_,T){return D(f,_,T)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array),g.alloc=function(f,_,T){return function O(f,_,T){return B(f),f<=0?h(f):void 0!==_?"string"==typeof T?h(f).fill(_,T):h(f).fill(_):h(f)}(f,_,T)},g.allocUnsafe=function(f){return P(f)},g.allocUnsafeSlow=function(f){return P(f)},g.isBuffer=function(_){return null!=_&&!0===_._isBuffer&&_!==g.prototype},g.compare=function(_,T){if(m(_,Uint8Array)&&(_=g.from(_,_.offset,_.byteLength)),m(T,Uint8Array)&&(T=g.from(T,T.offset,T.byteLength)),!g.isBuffer(_)||!g.isBuffer(T))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(_===T)return 0;let ve=_.length,Je=T.length;for(let ze=0,St=Math.min(ve,Je);zeJe.length?(g.isBuffer(St)||(St=g.from(St)),St.copy(Je,ze)):Uint8Array.prototype.set.call(Je,St,ze);else{if(!g.isBuffer(St))throw new TypeError('"list" argument must be an Array of Buffers');St.copy(Je,ze)}ze+=St.length}return Je},g.byteLength=ge,g.prototype._isBuffer=!0,g.prototype.swap16=function(){const _=this.length;if(_%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let T=0;T<_;T+=2)ie(this,T,T+1);return this},g.prototype.swap32=function(){const _=this.length;if(_%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let T=0;T<_;T+=4)ie(this,T,T+3),ie(this,T+1,T+2);return this},g.prototype.swap64=function(){const _=this.length;if(_%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let T=0;T<_;T+=8)ie(this,T,T+7),ie(this,T+1,T+6),ie(this,T+2,T+5),ie(this,T+3,T+4);return this},g.prototype.toLocaleString=g.prototype.toString=function(){const _=this.length;return 0===_?"":0===arguments.length?Xe(this,0,_):W.apply(this,arguments)},g.prototype.equals=function(_){if(!g.isBuffer(_))throw new TypeError("Argument must be a Buffer");return this===_||0===g.compare(this,_)},g.prototype.inspect=function(){let _="";const T=ke.INSPECT_MAX_BYTES;return _=this.toString("hex",0,T).replace(/(.{2})/g,"$1 ").trim(),this.length>T&&(_+=" ... "),""},c&&(g.prototype[c]=g.prototype.inspect),g.prototype.compare=function(_,T,ve,Je,ze){if(m(_,Uint8Array)&&(_=g.from(_,_.offset,_.byteLength)),!g.isBuffer(_))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof _);if(void 0===T&&(T=0),void 0===ve&&(ve=_?_.length:0),void 0===Je&&(Je=0),void 0===ze&&(ze=this.length),T<0||ve>_.length||Je<0||ze>this.length)throw new RangeError("out of range index");if(Je>=ze&&T>=ve)return 0;if(Je>=ze)return-1;if(T>=ve)return 1;if(this===_)return 0;let St=(ze>>>=0)-(Je>>>=0),ht=(ve>>>=0)-(T>>>=0);const Et=Math.min(St,ht),ye=this.slice(Je,ze),qe=_.slice(T,ve);for(let xe=0;xe>>=0,isFinite(ve)?(ve>>>=0,void 0===Je&&(Je="utf8")):(Je=ve,ve=void 0)}const ze=this.length-T;if((void 0===ve||ve>ze)&&(ve=ze),_.length>0&&(ve<0||T<0)||T>this.length)throw new RangeError("Attempt to write outside buffer bounds");Je||(Je="utf8");let St=!1;for(;;)switch(Je){case"hex":return Me(this,_,T,ve);case"utf8":case"utf-8":return $e(this,_,T,ve);case"ascii":case"latin1":case"binary":return it(this,_,T,ve);case"base64":return Ke(this,_,T,ve);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return tt(this,_,T,ve);default:if(St)throw new TypeError("Unknown encoding: "+Je);Je=(""+Je).toLowerCase(),St=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},g.prototype.slice=function(_,T){const ve=this.length;(_=~~_)<0?(_+=ve)<0&&(_=0):_>ve&&(_=ve),(T=void 0===T?ve:~~T)<0?(T+=ve)<0&&(T=0):T>ve&&(T=ve),T<_&&(T=_);const Je=this.subarray(_,T);return Object.setPrototypeOf(Je,g.prototype),Je},g.prototype.readUintLE=g.prototype.readUIntLE=function(_,T,ve){_>>>=0,T>>>=0,ve||V(_,T,this.length);let Je=this[_],ze=1,St=0;for(;++St>>=0,T>>>=0,ve||V(_,T,this.length);let Je=this[_+--T],ze=1;for(;T>0&&(ze*=256);)Je+=this[_+--T]*ze;return Je},g.prototype.readUint8=g.prototype.readUInt8=function(_,T){return _>>>=0,T||V(_,1,this.length),this[_]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(_,T){return _>>>=0,T||V(_,2,this.length),this[_]|this[_+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(_,T){return _>>>=0,T||V(_,2,this.length),this[_]<<8|this[_+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(_,T){return _>>>=0,T||V(_,4,this.length),(this[_]|this[_+1]<<8|this[_+2]<<16)+16777216*this[_+3]},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(_,T){return _>>>=0,T||V(_,4,this.length),16777216*this[_]+(this[_+1]<<16|this[_+2]<<8|this[_+3])},g.prototype.readBigUInt64LE=X(function(_){nt(_>>>=0,"offset");const T=this[_],ve=this[_+7];(void 0===T||void 0===ve)&&Q(_,this.length-8);const Je=T+256*this[++_]+65536*this[++_]+this[++_]*2**24,ze=this[++_]+256*this[++_]+65536*this[++_]+ve*2**24;return BigInt(Je)+(BigInt(ze)<>>=0,"offset");const T=this[_],ve=this[_+7];(void 0===T||void 0===ve)&&Q(_,this.length-8);const Je=T*2**24+65536*this[++_]+256*this[++_]+this[++_],ze=this[++_]*2**24+65536*this[++_]+256*this[++_]+ve;return(BigInt(Je)<>>=0,T>>>=0,ve||V(_,T,this.length);let Je=this[_],ze=1,St=0;for(;++St=ze&&(Je-=Math.pow(2,8*T)),Je},g.prototype.readIntBE=function(_,T,ve){_>>>=0,T>>>=0,ve||V(_,T,this.length);let Je=T,ze=1,St=this[_+--Je];for(;Je>0&&(ze*=256);)St+=this[_+--Je]*ze;return ze*=128,St>=ze&&(St-=Math.pow(2,8*T)),St},g.prototype.readInt8=function(_,T){return _>>>=0,T||V(_,1,this.length),128&this[_]?-1*(255-this[_]+1):this[_]},g.prototype.readInt16LE=function(_,T){_>>>=0,T||V(_,2,this.length);const ve=this[_]|this[_+1]<<8;return 32768&ve?4294901760|ve:ve},g.prototype.readInt16BE=function(_,T){_>>>=0,T||V(_,2,this.length);const ve=this[_+1]|this[_]<<8;return 32768&ve?4294901760|ve:ve},g.prototype.readInt32LE=function(_,T){return _>>>=0,T||V(_,4,this.length),this[_]|this[_+1]<<8|this[_+2]<<16|this[_+3]<<24},g.prototype.readInt32BE=function(_,T){return _>>>=0,T||V(_,4,this.length),this[_]<<24|this[_+1]<<16|this[_+2]<<8|this[_+3]},g.prototype.readBigInt64LE=X(function(_){nt(_>>>=0,"offset");const T=this[_],ve=this[_+7];return(void 0===T||void 0===ve)&&Q(_,this.length-8),(BigInt(this[_+4]+256*this[_+5]+65536*this[_+6]+(ve<<24))<>>=0,"offset");const T=this[_],ve=this[_+7];(void 0===T||void 0===ve)&&Q(_,this.length-8);const Je=(T<<24)+65536*this[++_]+256*this[++_]+this[++_];return(BigInt(Je)<>>=0,T||V(_,4,this.length),a.read(this,_,!0,23,4)},g.prototype.readFloatBE=function(_,T){return _>>>=0,T||V(_,4,this.length),a.read(this,_,!1,23,4)},g.prototype.readDoubleLE=function(_,T){return _>>>=0,T||V(_,8,this.length),a.read(this,_,!0,52,8)},g.prototype.readDoubleBE=function(_,T){return _>>>=0,T||V(_,8,this.length),a.read(this,_,!1,52,8)},g.prototype.writeUintLE=g.prototype.writeUIntLE=function(_,T,ve,Je){_=+_,T>>>=0,ve>>>=0,Je||Ee(this,_,T,ve,Math.pow(2,8*ve)-1,0);let ze=1,St=0;for(this[T]=255&_;++St>>=0,ve>>>=0,Je||Ee(this,_,T,ve,Math.pow(2,8*ve)-1,0);let ze=ve-1,St=1;for(this[T+ze]=255&_;--ze>=0&&(St*=256);)this[T+ze]=_/St&255;return T+ve},g.prototype.writeUint8=g.prototype.writeUInt8=function(_,T,ve){return _=+_,T>>>=0,ve||Ee(this,_,T,1,255,0),this[T]=255&_,T+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(_,T,ve){return _=+_,T>>>=0,ve||Ee(this,_,T,2,65535,0),this[T]=255&_,this[T+1]=_>>>8,T+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(_,T,ve){return _=+_,T>>>=0,ve||Ee(this,_,T,2,65535,0),this[T]=_>>>8,this[T+1]=255&_,T+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(_,T,ve){return _=+_,T>>>=0,ve||Ee(this,_,T,4,4294967295,0),this[T+3]=_>>>24,this[T+2]=_>>>16,this[T+1]=_>>>8,this[T]=255&_,T+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(_,T,ve){return _=+_,T>>>=0,ve||Ee(this,_,T,4,4294967295,0),this[T]=_>>>24,this[T+1]=_>>>16,this[T+2]=_>>>8,this[T+3]=255&_,T+4},g.prototype.writeBigUInt64LE=X(function(_,T=0){return oe(this,_,T,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=X(function(_,T=0){return _e(this,_,T,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(_,T,ve,Je){if(_=+_,T>>>=0,!Je){const Et=Math.pow(2,8*ve-1);Ee(this,_,T,ve,Et-1,-Et)}let ze=0,St=1,ht=0;for(this[T]=255&_;++ze>0)-ht&255;return T+ve},g.prototype.writeIntBE=function(_,T,ve,Je){if(_=+_,T>>>=0,!Je){const Et=Math.pow(2,8*ve-1);Ee(this,_,T,ve,Et-1,-Et)}let ze=ve-1,St=1,ht=0;for(this[T+ze]=255&_;--ze>=0&&(St*=256);)_<0&&0===ht&&0!==this[T+ze+1]&&(ht=1),this[T+ze]=(_/St>>0)-ht&255;return T+ve},g.prototype.writeInt8=function(_,T,ve){return _=+_,T>>>=0,ve||Ee(this,_,T,1,127,-128),_<0&&(_=255+_+1),this[T]=255&_,T+1},g.prototype.writeInt16LE=function(_,T,ve){return _=+_,T>>>=0,ve||Ee(this,_,T,2,32767,-32768),this[T]=255&_,this[T+1]=_>>>8,T+2},g.prototype.writeInt16BE=function(_,T,ve){return _=+_,T>>>=0,ve||Ee(this,_,T,2,32767,-32768),this[T]=_>>>8,this[T+1]=255&_,T+2},g.prototype.writeInt32LE=function(_,T,ve){return _=+_,T>>>=0,ve||Ee(this,_,T,4,2147483647,-2147483648),this[T]=255&_,this[T+1]=_>>>8,this[T+2]=_>>>16,this[T+3]=_>>>24,T+4},g.prototype.writeInt32BE=function(_,T,ve){return _=+_,T>>>=0,ve||Ee(this,_,T,4,2147483647,-2147483648),_<0&&(_=4294967295+_+1),this[T]=_>>>24,this[T+1]=_>>>16,this[T+2]=_>>>8,this[T+3]=255&_,T+4},g.prototype.writeBigInt64LE=X(function(_,T=0){return oe(this,_,T,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=X(function(_,T=0){return _e(this,_,T,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeFloatLE=function(_,T,ve){return lt(this,_,T,!0,ve)},g.prototype.writeFloatBE=function(_,T,ve){return lt(this,_,T,!1,ve)},g.prototype.writeDoubleLE=function(_,T,ve){return be(this,_,T,!0,ve)},g.prototype.writeDoubleBE=function(_,T,ve){return be(this,_,T,!1,ve)},g.prototype.copy=function(_,T,ve,Je){if(!g.isBuffer(_))throw new TypeError("argument should be a Buffer");if(ve||(ve=0),!Je&&0!==Je&&(Je=this.length),T>=_.length&&(T=_.length),T||(T=0),Je>0&&Je=this.length)throw new RangeError("Index out of range");if(Je<0)throw new RangeError("sourceEnd out of bounds");Je>this.length&&(Je=this.length),_.length-T>>=0,ve=void 0===ve?this.length:ve>>>0,_||(_=0),"number"==typeof _)for(ze=T;ze=ve+4;T-=3)_=`_${f.slice(T-3,T)}${_}`;return`${f.slice(0,T)}${_}`}function at(f,_,T,ve,Je,ze){if(f>T||f<_){const St="bigint"==typeof _?"n":"";let ht;throw ht=ze>3?0===_||_===BigInt(0)?`>= 0${St} and < 2${St} ** ${8*(ze+1)}${St}`:`>= -(2${St} ** ${8*(ze+1)-1}${St}) and < 2 ** ${8*(ze+1)-1}${St}`:`>= ${_}${St} and <= ${T}${St}`,new et.ERR_OUT_OF_RANGE("value",ht,f)}!function Be(f,_,T){nt(_,"offset"),(void 0===f[_]||void 0===f[_+T])&&Q(_,f.length-(T+1))}(ve,Je,ze)}function nt(f,_){if("number"!=typeof f)throw new et.ERR_INVALID_ARG_TYPE(_,"number",f)}function Q(f,_,T){throw Math.floor(f)!==f?(nt(f,T),new et.ERR_OUT_OF_RANGE(T||"offset","an integer",f)):_<0?new et.ERR_BUFFER_OUT_OF_BOUNDS:new et.ERR_OUT_OF_RANGE(T||"offset",`>= ${T?1:0} and <= ${_}`,f)}Mt("ERR_BUFFER_OUT_OF_BOUNDS",function(f){return f?`${f} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Mt("ERR_INVALID_ARG_TYPE",function(f,_){return`The "${f}" argument must be of type number. Received type ${typeof _}`},TypeError),Mt("ERR_OUT_OF_RANGE",function(f,_,T){let ve=`The value of "${f}" is out of range.`,Je=T;return Number.isInteger(T)&&Math.abs(T)>2**32?Je=_t(String(T)):"bigint"==typeof T&&(Je=String(T),(T>BigInt(2)**BigInt(32)||T<-(BigInt(2)**BigInt(32)))&&(Je=_t(Je)),Je+="n"),ve+=` It must be ${_}. Received ${Je}`,ve},RangeError);const Le=/[^+/0-9A-Za-z-_]/g;function R(f,_){let T;_=_||1/0;const ve=f.length;let Je=null;const ze=[];for(let St=0;St55295&&T<57344){if(!Je){if(T>56319){(_-=3)>-1&&ze.push(239,191,189);continue}if(St+1===ve){(_-=3)>-1&&ze.push(239,191,189);continue}Je=T;continue}if(T<56320){(_-=3)>-1&&ze.push(239,191,189),Je=T;continue}T=65536+(Je-55296<<10|T-56320)}else Je&&(_-=3)>-1&&ze.push(239,191,189);if(Je=null,T<128){if((_-=1)<0)break;ze.push(T)}else if(T<2048){if((_-=2)<0)break;ze.push(T>>6|192,63&T|128)}else if(T<65536){if((_-=3)<0)break;ze.push(T>>12|224,T>>6&63|128,63&T|128)}else{if(!(T<1114112))throw new Error("Invalid code point");if((_-=4)<0)break;ze.push(T>>18|240,T>>12&63|128,T>>6&63|128,63&T|128)}}return ze}function x(f){return i.toByteArray(function ee(f){if((f=(f=f.split("=")[0]).trim().replace(Le,"")).length<2)return"";for(;f.length%4!=0;)f+="=";return f}(f))}function p(f,_,T,ve){let Je;for(Je=0;Je=_.length||Je>=f.length);++Je)_[Je+T]=f[Je];return Je}function m(f,_){return f instanceof _||null!=f&&null!=f.constructor&&null!=f.constructor.name&&f.constructor.name===_.name}function j(f){return f!=f}const de=function(){const f="0123456789abcdef",_=new Array(256);for(let T=0;T<16;++T){const ve=16*T;for(let Je=0;Je<16;++Je)_[ve+Je]=f[T]+f[Je]}return _}();function X(f){return typeof BigInt>"u"?H:f}function H(){throw new Error("BigInt not supported")}},1273:(Ct,ke,u)=>{"use strict";const{SymbolDispose:i}=u(5354),{AbortError:a,codes:c}=u(8599),{isNodeStream:v,isWebStream:b,kControllerErrorFunction:h}=u(8174),g=u(6978),{ERR_INVALID_ARG_TYPE:D}=c;let B;Ct.exports.addAbortSignal=function(k,F){if(((P,k)=>{if("object"!=typeof P||!("aborted"in P))throw new D("signal","AbortSignal",P)})(k),!v(F)&&!b(F))throw new D("stream",["ReadableStream","WritableStream","Stream"],F);return Ct.exports.addAbortSignalNoValidate(k,F)},Ct.exports.addAbortSignalNoValidate=function(P,k){if("object"!=typeof P||!("aborted"in P))return k;const F=v(k)?()=>{k.destroy(new a(void 0,{cause:P.reason}))}:()=>{k[h](new a(void 0,{cause:P.reason}))};if(P.aborted)F();else{B=B||u(7506).addAbortListener;const z=B(P,F);g(k,z[i])}return k}},6933:(Ct,ke,u)=>{"use strict";const{StringPrototypeSlice:i,SymbolIterator:a,TypedArrayPrototypeSet:c,Uint8Array:v}=u(5354),{Buffer:b}=u(1160),{inspect:h}=u(7506);Ct.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(D){const B={data:D,next:null};this.length>0?this.tail.next=B:this.head=B,this.tail=B,++this.length}unshift(D){const B={data:D,next:this.head};0===this.length&&(this.tail=B),this.head=B,++this.length}shift(){if(0===this.length)return;const D=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,D}clear(){this.head=this.tail=null,this.length=0}join(D){if(0===this.length)return"";let B=this.head,O=""+B.data;for(;null!==(B=B.next);)O+=D+B.data;return O}concat(D){if(0===this.length)return b.alloc(0);const B=b.allocUnsafe(D>>>0);let O=this.head,P=0;for(;O;)c(B,O.data,P),P+=O.data.length,O=O.next;return B}consume(D,B){const O=this.head.data;if(Dk.length)){D===k.length?(B+=k,++P,this.head=O.next?O.next:this.tail=null):(B+=i(k,0,D),this.head=O,O.data=i(k,D));break}B+=k,D-=k.length,++P}while(null!==(O=O.next));return this.length-=P,B}_getBuffer(D){const B=b.allocUnsafe(D),O=D;let P=this.head,k=0;do{const F=P.data;if(!(D>F.length)){D===F.length?(c(B,F,O-D),++k,this.head=P.next?P.next:this.tail=null):(c(B,new v(F.buffer,F.byteOffset,D),O-D),this.head=P,P.data=F.slice(D));break}c(B,F,O-D),D-=F.length,++k}while(null!==(P=P.next));return this.length-=k,B}[Symbol.for("nodejs.util.inspect.custom")](D,B){return h(this,{...B,depth:0,customInspect:!1})}}},5240:(Ct,ke,u)=>{"use strict";var i=u(7156).default;const{pipeline:a}=u(4563),c=u(3147),{destroyer:v}=u(8584),{isNodeStream:b,isReadable:h,isWritable:g,isWebStream:D,isTransformStream:B,isWritableStream:O,isReadableStream:P}=u(8174),{AbortError:k,codes:{ERR_INVALID_ARG_VALUE:F,ERR_MISSING_ARGS:z}}=u(8599),ae=u(6978);Ct.exports=function(...ue){if(0===ue.length)throw new z("streams");if(1===ue.length)return c.from(ue[0]);const le=[...ue];if("function"==typeof ue[0]&&(ue[0]=c.from(ue[0])),"function"==typeof ue[ue.length-1]){const me=ue.length-1;ue[me]=c.from(ue[me])}for(let me=0;me0&&!(g(ue[me])||O(ue[me])||B(ue[me])))throw new F(`streams[${me}]`,le[me],"must be writable")}let ge,W,ie,he,se;const $e=ue[0],it=a(ue,function Me(me){const Xe=he;he=null,Xe?Xe(me):me?se.destroy(me):!tt&&!Ke&&se.destroy()}),Ke=!!(g($e)||O($e)||B($e)),tt=!!(h(it)||P(it)||B(it));if(se=new c({writableObjectMode:!(null==$e||!$e.writableObjectMode),readableObjectMode:!(null==it||!it.readableObjectMode),writable:Ke,readable:tt}),Ke){if(b($e))se._write=function(Xe,Ae,yt){$e.write(Xe,Ae)?yt():ge=yt},se._final=function(Xe){$e.end(),W=Xe},$e.on("drain",function(){if(ge){const Xe=ge;ge=null,Xe()}});else if(D($e)){const Ae=(B($e)?$e.writable:$e).getWriter();se._write=function(){var yt=i(function*(ft,Yt,Dt){try{yield Ae.ready,Ae.write(ft).catch(()=>{}),Dt()}catch(jt){Dt(jt)}});return function(ft,Yt,Dt){return yt.apply(this,arguments)}}(),se._final=function(){var yt=i(function*(ft){try{yield Ae.ready,Ae.close().catch(()=>{}),W=ft}catch(Yt){ft(Yt)}});return function(ft){return yt.apply(this,arguments)}}()}const me=B(it)?it.readable:it;ae(me,()=>{if(W){const Xe=W;W=null,Xe()}})}if(tt)if(b(it))it.on("readable",function(){if(ie){const me=ie;ie=null,me()}}),it.on("end",function(){se.push(null)}),se._read=function(){for(;;){const me=it.read();if(null===me)return void(ie=se._read);if(!se.push(me))return}};else if(D(it)){const Xe=(B(it)?it.readable:it).getReader();se._read=i(function*(){for(;;)try{const{value:Ae,done:yt}=yield Xe.read();if(!se.push(Ae))return;if(yt)return void se.push(null)}catch{return}})}return se._destroy=function(me,Xe){!me&&null!==he&&(me=new k),ie=null,ge=null,W=null,null===he?Xe(me):(he=Xe,b(it)&&v(it,me))},se}},8584:(Ct,ke,u)=>{"use strict";const i=u(5736),{aggregateTwoErrors:a,codes:{ERR_MULTIPLE_CALLBACK:c},AbortError:v}=u(8599),{Symbol:b}=u(5354),{kIsDestroyed:h,isDestroyed:g,isFinished:D,isServerRequest:B}=u(8174),O=b("kDestroy"),P=b("kConstruct");function k(Ke,tt,me){Ke&&(tt&&!tt.errored&&(tt.errored=Ke),me&&!me.errored&&(me.errored=Ke))}function z(Ke,tt,me){let Xe=!1;function Ae(yt){if(Xe)return;Xe=!0;const ft=Ke._readableState,Yt=Ke._writableState;k(yt,Yt,ft),Yt&&(Yt.closed=!0),ft&&(ft.closed=!0),"function"==typeof me&&me(yt),yt?i.nextTick(ae,Ke,yt):i.nextTick(we,Ke)}try{Ke._destroy(tt||null,Ae)}catch(yt){Ae(yt)}}function ae(Ke,tt){ue(Ke,tt),we(Ke)}function we(Ke){const tt=Ke._readableState,me=Ke._writableState;me&&(me.closeEmitted=!0),tt&&(tt.closeEmitted=!0),(null!=me&&me.emitClose||null!=tt&&tt.emitClose)&&Ke.emit("close")}function ue(Ke,tt){const me=Ke._readableState,Xe=Ke._writableState;null!=Xe&&Xe.errorEmitted||null!=me&&me.errorEmitted||(Xe&&(Xe.errorEmitted=!0),me&&(me.errorEmitted=!0),Ke.emit("error",tt))}function ge(Ke,tt,me){const Xe=Ke._readableState,Ae=Ke._writableState;if(null!=Ae&&Ae.destroyed||null!=Xe&&Xe.destroyed)return this;null!=Xe&&Xe.autoDestroy||null!=Ae&&Ae.autoDestroy?Ke.destroy(tt):tt&&(Ae&&!Ae.errored&&(Ae.errored=tt),Xe&&!Xe.errored&&(Xe.errored=tt),me?i.nextTick(ue,Ke,tt):ue(Ke,tt))}function ie(Ke){let tt=!1;function me(Xe){if(tt)return void ge(Ke,Xe??new c);tt=!0;const Ae=Ke._readableState,yt=Ke._writableState,ft=yt||Ae;Ae&&(Ae.constructed=!0),yt&&(yt.constructed=!0),ft.destroyed?Ke.emit(O,Xe):Xe?ge(Ke,Xe,!0):i.nextTick(he,Ke)}try{Ke._construct(Xe=>{i.nextTick(me,Xe)})}catch(Xe){i.nextTick(me,Xe)}}function he(Ke){Ke.emit(P)}function se(Ke){return Ke?.setHeader&&"function"==typeof Ke.abort}function Me(Ke){Ke.emit("close")}function $e(Ke,tt){Ke.emit("error",tt),i.nextTick(Me,Ke)}Ct.exports={construct:function W(Ke,tt){if("function"!=typeof Ke._construct)return;const me=Ke._readableState,Xe=Ke._writableState;me&&(me.constructed=!1),Xe&&(Xe.constructed=!1),Ke.once(P,tt),!(Ke.listenerCount(P)>1)&&i.nextTick(ie,Ke)},destroyer:function it(Ke,tt){!Ke||g(Ke)||(!tt&&!D(Ke)&&(tt=new v),B(Ke)?(Ke.socket=null,Ke.destroy(tt)):se(Ke)?Ke.abort():se(Ke.req)?Ke.req.abort():"function"==typeof Ke.destroy?Ke.destroy(tt):"function"==typeof Ke.close?Ke.close():tt?i.nextTick($e,Ke,tt):i.nextTick(Me,Ke),Ke.destroyed||(Ke[h]=!0))},destroy:function F(Ke,tt){const me=this._readableState,Xe=this._writableState,Ae=Xe||me;return null!=Xe&&Xe.destroyed||null!=me&&me.destroyed?("function"==typeof tt&&tt(),this):(k(Ke,Xe,me),Xe&&(Xe.destroyed=!0),me&&(me.destroyed=!0),Ae.constructed?z(this,Ke,tt):this.once(O,function(yt){z(this,a(yt,Ke),tt)}),this)},undestroy:function le(){const Ke=this._readableState,tt=this._writableState;Ke&&(Ke.constructed=!0,Ke.closed=!1,Ke.closeEmitted=!1,Ke.destroyed=!1,Ke.errored=null,Ke.errorEmitted=!1,Ke.reading=!1,Ke.ended=!1===Ke.readable,Ke.endEmitted=!1===Ke.readable),tt&&(tt.constructed=!0,tt.destroyed=!1,tt.closed=!1,tt.closeEmitted=!1,tt.errored=null,tt.errorEmitted=!1,tt.finalCalled=!1,tt.prefinished=!1,tt.ended=!1===tt.writable,tt.ending=!1===tt.writable,tt.finished=!1===tt.writable)},errorOrDestroy:ge}},3147:(Ct,ke,u)=>{"use strict";const{ObjectDefineProperties:i,ObjectGetOwnPropertyDescriptor:a,ObjectKeys:c,ObjectSetPrototypeOf:v}=u(5354);Ct.exports=g;const b=u(9638),h=u(6355);v(g.prototype,b.prototype),v(g,b);{const P=c(h.prototype);for(let k=0;k{var i=u(7156).default,a=u(6737).default,c=u(8186).default;const v=u(5736),b=u(1160),{isReadable:h,isWritable:g,isIterable:D,isNodeStream:B,isReadableNodeStream:O,isWritableNodeStream:P,isDuplexNodeStream:k,isReadableStream:F,isWritableStream:z}=u(8174),ae=u(6978),{AbortError:we,codes:{ERR_INVALID_ARG_TYPE:ue,ERR_INVALID_RETURN_VALUE:le}}=u(8599),{destroyer:ge}=u(8584),W=u(3147),ie=u(9638),he=u(6355),{createDeferredPromise:se}=u(7506),Me=u(8394),$e=globalThis.Blob||b.Blob,it=typeof $e<"u"?function(ft){return ft instanceof $e}:function(ft){return!1},Ke=globalThis.AbortController||u(552).AbortController,{FunctionPrototypeCall:tt}=u(5354);class me extends W{constructor(ft){super(ft),!1===ft?.readable&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===ft?.writable&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}function Ae(yt){const ft=yt.readable&&"function"!=typeof yt.readable.read?ie.wrap(yt.readable):yt.readable,Yt=yt.writable;let V,Ee,oe,_e,Oe,Dt=!!h(ft),jt=!!g(Yt);function lt(be){const et=_e;_e=null,et?et(be):be&&Oe.destroy(be)}return Oe=new me({readableObjectMode:!(null==ft||!ft.readableObjectMode),writableObjectMode:!(null==Yt||!Yt.writableObjectMode),readable:Dt,writable:jt}),jt&&(ae(Yt,be=>{jt=!1,be&&ge(ft,be),lt(be)}),Oe._write=function(be,et,Mt){Yt.write(be,et)?Mt():V=Mt},Oe._final=function(be){Yt.end(),Ee=be},Yt.on("drain",function(){if(V){const be=V;V=null,be()}}),Yt.on("finish",function(){if(Ee){const be=Ee;Ee=null,be()}})),Dt&&(ae(ft,be=>{Dt=!1,be&&ge(ft,be),lt(be)}),ft.on("readable",function(){if(oe){const be=oe;oe=null,be()}}),ft.on("end",function(){Oe.push(null)}),Oe._read=function(){for(;;){const be=ft.read();if(null===be)return void(oe=Oe._read);if(!Oe.push(be))return}}),Oe._destroy=function(be,et){!be&&null!==_e&&(be=new we),oe=null,V=null,Ee=null,null===_e?et(be):(_e=et,ge(Yt,be),ge(ft,be))},Oe}Ct.exports=function yt(ft,Yt){if(k(ft))return ft;if(O(ft))return Ae({readable:ft});if(P(ft))return Ae({writable:ft});if(B(ft))return Ae({writable:!1,readable:!1});if(F(ft))return Ae({readable:ie.fromWeb(ft)});if(z(ft))return Ae({writable:he.fromWeb(ft)});if("function"==typeof ft){const{value:jt,write:V,final:Ee,destroy:oe}=function Xe(yt){let{promise:ft,resolve:Yt}=se();const Dt=new Ke,jt=Dt.signal;return{value:yt(c(function*(){for(;;){const Ee=ft;ft=null;const{chunk:oe,done:_e,cb:Oe}=yield a(Ee);if(v.nextTick(Oe),_e)return;if(jt.aborted)throw new we(void 0,{cause:jt.reason});({promise:ft,resolve:Yt}=se()),yield oe}})(),{signal:jt}),write(Ee,oe,_e){const Oe=Yt;Yt=null,Oe({chunk:Ee,done:!1,cb:_e})},final(Ee){const oe=Yt;Yt=null,oe({done:!0,cb:Ee})},destroy(Ee,oe){Dt.abort(),oe(Ee)}}}(ft);if(D(jt))return Me(me,jt,{objectMode:!0,write:V,final:Ee,destroy:oe});const _e=jt?.then;if("function"==typeof _e){let Oe;const lt=tt(_e,jt,be=>{if(null!=be)throw new le("nully","body",be)},be=>{ge(Oe,be)});return Oe=new me({objectMode:!0,readable:!1,write:V,final(be){Ee(i(function*(){try{yield lt,v.nextTick(be,null)}catch(et){v.nextTick(be,et)}}))},destroy:oe})}throw new le("Iterable, AsyncIterable or AsyncFunction",Yt,jt)}if(it(ft))return yt(ft.arrayBuffer());if(D(ft))return Me(me,ft,{objectMode:!0,writable:!1});if(F(ft?.readable)&&z(ft?.writable))return me.fromWeb(ft);if("object"==typeof ft?.writable||"object"==typeof ft?.readable)return Ae({readable:null!=ft&&ft.readable?O(ft?.readable)?ft?.readable:yt(ft.readable):void 0,writable:null!=ft&&ft.writable?P(ft?.writable)?ft?.writable:yt(ft.writable):void 0});const Dt=ft?.then;if("function"==typeof Dt){let jt;return tt(Dt,ft,V=>{null!=V&&jt.push(V),jt.push(null)},V=>{ge(jt,V)}),jt=new me({objectMode:!0,writable:!1,read(){}})}throw new ue(Yt,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],ft)}},6978:(Ct,ke,u)=>{const i=u(5736),{AbortError:a,codes:c}=u(8599),{ERR_INVALID_ARG_TYPE:v,ERR_STREAM_PREMATURE_CLOSE:b}=c,{kEmptyObject:h,once:g}=u(7506),{validateAbortSignal:D,validateFunction:B,validateObject:O,validateBoolean:P}=u(765),{Promise:k,PromisePrototypeThen:F,SymbolDispose:z}=u(5354),{isClosed:ae,isReadable:we,isReadableNodeStream:ue,isReadableStream:le,isReadableFinished:ge,isReadableErrored:W,isWritable:ie,isWritableNodeStream:he,isWritableStream:se,isWritableFinished:Me,isWritableErrored:$e,isNodeStream:it,willEmitClose:Ke,kIsClosedPromise:tt}=u(8174);let me;function Xe(Dt){return Dt.setHeader&&"function"==typeof Dt.abort}const Ae=()=>{};function yt(Dt,jt,V){var Ee,oe;if(2===arguments.length?(V=jt,jt=h):null==jt?jt=h:O(jt,"options"),B(V,"callback"),D(jt.signal,"options.signal"),V=g(V),le(Dt)||se(Dt))return ft(Dt,jt,V);if(!it(Dt))throw new v("stream",["ReadableStream","WritableStream","Stream"],Dt);const _e=null!==(Ee=jt.readable)&&void 0!==Ee?Ee:ue(Dt),Oe=null!==(oe=jt.writable)&&void 0!==oe?oe:he(Dt),lt=Dt._writableState,be=Dt._readableState,et=()=>{Dt.writable||Be()};let Mt=Ke(Dt)&&ue(Dt)===_e&&he(Dt)===Oe,_t=Me(Dt,!1);const Be=()=>{_t=!0,Dt.destroyed&&(Mt=!1),(!Mt||Dt.readable&&!_e)&&(!_e||at)&&V.call(Dt)};let at=ge(Dt,!1);const nt=()=>{at=!0,Dt.destroyed&&(Mt=!1),(!Mt||Dt.writable&&!Oe)&&(!Oe||_t)&&V.call(Dt)},Q=x=>{V.call(Dt,x)};let Le=ae(Dt);const ee=()=>{Le=!0;const x=$e(Dt)||W(Dt);return x&&"boolean"!=typeof x?V.call(Dt,x):_e&&!at&&ue(Dt,!0)&&!ge(Dt,!1)?V.call(Dt,new b):!Oe||_t||Me(Dt,!1)?void V.call(Dt):V.call(Dt,new b)},R=()=>{Le=!0;const x=$e(Dt)||W(Dt);if(x&&"boolean"!=typeof x)return V.call(Dt,x);V.call(Dt)},U=()=>{Dt.req.on("finish",Be)};Xe(Dt)?(Dt.on("complete",Be),Mt||Dt.on("abort",ee),Dt.req?U():Dt.on("request",U)):Oe&&!lt&&(Dt.on("end",et),Dt.on("close",et)),!Mt&&"boolean"==typeof Dt.aborted&&Dt.on("aborted",ee),Dt.on("end",nt),Dt.on("finish",Be),!1!==jt.error&&Dt.on("error",Q),Dt.on("close",ee),Le?i.nextTick(ee):null!=lt&<.errorEmitted||null!=be&&be.errorEmitted?Mt||i.nextTick(R):(!_e&&(!Mt||we(Dt))&&(_t||!1===ie(Dt))||!Oe&&(!Mt||ie(Dt))&&(at||!1===we(Dt))||be&&Dt.req&&Dt.aborted)&&i.nextTick(R);const Re=()=>{V=Ae,Dt.removeListener("aborted",ee),Dt.removeListener("complete",Be),Dt.removeListener("abort",ee),Dt.removeListener("request",U),Dt.req&&Dt.req.removeListener("finish",Be),Dt.removeListener("end",et),Dt.removeListener("close",et),Dt.removeListener("finish",Be),Dt.removeListener("end",nt),Dt.removeListener("error",Q),Dt.removeListener("close",ee)};if(jt.signal&&!Le){const x=()=>{const p=V;Re(),p.call(Dt,new a(void 0,{cause:jt.signal.reason}))};if(jt.signal.aborted)i.nextTick(x);else{me=me||u(7506).addAbortListener;const p=me(jt.signal,x),m=V;V=g((...j)=>{p[z](),m.apply(Dt,j)})}}return Re}function ft(Dt,jt,V){let Ee=!1,oe=Ae;if(jt.signal)if(oe=()=>{Ee=!0,V.call(Dt,new a(void 0,{cause:jt.signal.reason}))},jt.signal.aborted)i.nextTick(oe);else{me=me||u(7506).addAbortListener;const Oe=me(jt.signal,oe),lt=V;V=g((...be)=>{Oe[z](),lt.apply(Dt,be)})}const _e=(...Oe)=>{Ee||i.nextTick(()=>V.apply(Dt,Oe))};return F(Dt[tt].promise,_e,_e),Ae}Ct.exports=yt,Ct.exports.finished=function Yt(Dt,jt){var V;let Ee=!1;return null===jt&&(jt=h),null!==(V=jt)&&void 0!==V&&V.cleanup&&(P(jt.cleanup,"cleanup"),Ee=jt.cleanup),new k((oe,_e)=>{const Oe=yt(Dt,jt,lt=>{Ee&&Oe(),lt?_e(lt):oe()})})}},8394:(Ct,ke,u)=>{"use strict";var i=u(7156).default;const a=u(5736),{PromisePrototypeThen:c,SymbolAsyncIterator:v,SymbolIterator:b}=u(5354),{Buffer:h}=u(1160),{ERR_INVALID_ARG_TYPE:g,ERR_STREAM_NULL_VALUES:D}=u(8599).codes;Ct.exports=function B(O,P,k){let F,z;if("string"==typeof P||P instanceof h)return new O({objectMode:!0,...k,read(){this.push(P),this.push(null)}});if(P&&P[v])z=!0,F=P[v]();else{if(!P||!P[b])throw new g("iterable",["Iterable"],P);z=!1,F=P[b]()}const ae=new O({objectMode:!0,highWaterMark:1,...k});let we=!1;function le(){return(le=i(function*(ie){if(null!=ie&&"function"==typeof F.throw){const{value:Me,done:$e}=yield F.throw(ie);if(yield Me,$e)return}if("function"==typeof F.return){const{value:Me}=yield F.return();yield Me}})).apply(this,arguments)}function W(){return(W=i(function*(){for(;;){try{const{value:ie,done:he}=z?yield F.next():F.next();if(he)ae.push(null);else{const se=ie&&"function"==typeof ie.then?yield ie:ie;if(null===se)throw we=!1,new D;if(ae.push(se))continue;we=!1}}catch(ie){ae.destroy(ie)}break}})).apply(this,arguments)}return ae._read=function(){we||(we=!0,function ge(){W.apply(this,arguments)}())},ae._destroy=function(ie,he){c(function ue(ie){return le.apply(this,arguments)}(ie),()=>a.nextTick(he,ie),se=>a.nextTick(he,se||ie))},ae}},9994:(Ct,ke,u)=>{"use strict";const{ArrayIsArray:i,ObjectSetPrototypeOf:a}=u(5354),{EventEmitter:c}=u(9069);function v(h){c.call(this,h)}function b(h,g,D){if("function"==typeof h.prependListener)return h.prependListener(g,D);h._events&&h._events[g]?i(h._events[g])?h._events[g].unshift(D):h._events[g]=[D,h._events[g]]:h.on(g,D)}a(v.prototype,c.prototype),a(v,c),v.prototype.pipe=function(h,g){const D=this;function B(we){h.writable&&!1===h.write(we)&&D.pause&&D.pause()}function O(){D.readable&&D.resume&&D.resume()}D.on("data",B),h.on("drain",O),!h._isStdio&&(!g||!1!==g.end)&&(D.on("end",k),D.on("close",F));let P=!1;function k(){P||(P=!0,h.end())}function F(){P||(P=!0,"function"==typeof h.destroy&&h.destroy())}function z(we){ae(),0===c.listenerCount(this,"error")&&this.emit("error",we)}function ae(){D.removeListener("data",B),h.removeListener("drain",O),D.removeListener("end",k),D.removeListener("close",F),D.removeListener("error",z),h.removeListener("error",z),D.removeListener("end",ae),D.removeListener("close",ae),h.removeListener("close",ae)}return b(D,"error",z),b(h,"error",z),D.on("end",ae),D.on("close",ae),h.on("close",ae),h.emit("pipe",D),h},Ct.exports={Stream:v,prependListener:b}},6682:(Ct,ke,u)=>{"use strict";var i=u(7156).default,a=u(8131).default,c=u(8237).default,v=u(6737).default,b=u(8186).default;const h=globalThis.AbortController||u(552).AbortController,{codes:{ERR_INVALID_ARG_VALUE:g,ERR_INVALID_ARG_TYPE:D,ERR_MISSING_ARGS:B,ERR_OUT_OF_RANGE:O},AbortError:P}=u(8599),{validateAbortSignal:k,validateInteger:F,validateObject:z}=u(765),ae=u(5354).Symbol("kWeak"),we=u(5354).Symbol("kResistStopPropagation"),{finished:ue}=u(6978),le=u(5240),{addAbortSignalNoValidate:ge}=u(1273),{isWritable:W,isNodeStream:ie}=u(8174),{deprecate:he}=u(7506),{ArrayPrototypePush:se,Boolean:Me,MathFloor:$e,Number:it,NumberIsNaN:Ke,Promise:tt,PromiseReject:me,PromiseResolve:Xe,PromisePrototypeThen:Ae,Symbol:yt}=u(5354),ft=yt("kEmpty"),Yt=yt("kEof");function jt(x,p){if("function"!=typeof x)throw new D("fn",["Function","AsyncFunction"],x);null!=p&&z(p,"options"),null!=p?.signal&&k(p.signal,"options.signal");let m=1;null!=p?.concurrency&&(m=$e(p.concurrency));let j=m-1;return null!=p?.highWaterMark&&(j=$e(p.highWaterMark)),F(m,"options.concurrency",1),F(j,"options.highWaterMark",0),j+=m,function(){var de=b(function*(){const H=u(7506).AbortSignalAny([p?.signal].filter(Me)),f=this,_=[],T={signal:H};let ve,Je,ze=!1,St=0;function ht(){ze=!0,Et()}function Et(){St-=1,ye()}function ye(){Je&&!ze&&St=j||St>=m)&&(yield new tt(Pe=>{Je=Pe}))}}catch(Ye){ot=!0,ce=Ye}finally{try{Fe&&null!=Ue.return&&(yield Ue.return())}finally{if(ot)throw ce}}_.push(Yt)}catch(Ye){const Pe=me(Ye);Ae(Pe,Et,ht),_.push(Pe)}finally{ze=!0,ve&&(ve(),ve=null)}})).apply(this,arguments)}!function qe(){xe.apply(this,arguments)}();try{for(;;){for(;_.length>0;){const Fe=yield v(_[0]);if(Fe===Yt)return;if(H.aborted)throw new P;Fe!==ft&&(yield Fe),_.shift(),ye()}yield v(new tt(Fe=>{ve=Fe}))}}finally{ze=!0,Je&&(Je(),Je=null)}});return function X(){return de.apply(this,arguments)}}().call(this)}function Ee(x){return oe.apply(this,arguments)}function oe(){return(oe=i(function*(x,p){var de,m=!1,j=!1;try{for(var X=c(_t.call(this,x,p));m=!(yield X.next()).done;m=!1)return!0}catch(f){j=!0,de=f}finally{try{m&&null!=X.return&&(yield X.return())}finally{if(j)throw de}}return!1})).apply(this,arguments)}function Oe(){return(Oe=i(function*(x,p){if("function"!=typeof x)throw new D("fn",["Function","AsyncFunction"],x);return!(yield Ee.call(this,i(function*(...m){return!(yield x(...m))}),p))})).apply(this,arguments)}function be(){return(be=i(function*(x,p){var de,m=!1,j=!1;try{for(var H,X=c(_t.call(this,x,p));m=!(H=yield X.next()).done;m=!1)return H.value}catch(f){j=!0,de=f}finally{try{m&&null!=X.return&&(yield X.return())}finally{if(j)throw de}}})).apply(this,arguments)}function Mt(){return Mt=i(function*(x,p){if("function"!=typeof x)throw new D("fn",["Function","AsyncFunction"],x);function j(){return(j=i(function*(T,ve){return yield x(T,ve),ft})).apply(this,arguments)}var H,de=!1,X=!1;try{for(var f=c(jt.call(this,function m(T,ve){return j.apply(this,arguments)},p));de=!(yield f.next()).done;de=!1);}catch(T){X=!0,H=T}finally{try{de&&null!=f.return&&(yield f.return())}finally{if(X)throw H}}}),Mt.apply(this,arguments)}function _t(x,p){if("function"!=typeof x)throw new D("fn",["Function","AsyncFunction"],x);function j(){return(j=i(function*(de,X){return(yield x(de,X))?de:ft})).apply(this,arguments)}return jt.call(this,function m(de,X){return j.apply(this,arguments)},p)}class Be extends B{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}function nt(){return nt=i(function*(x,p,m){var j;if("function"!=typeof x)throw new D("reducer",["Function","AsyncFunction"],x);null!=m&&z(m,"options"),null!=m?.signal&&k(m.signal,"options.signal");let de=arguments.length>1;if(null!=m&&null!==(j=m.signal)&&void 0!==j&&j.aborted){const ht=new P(void 0,{cause:m.signal.reason});throw this.once("error",()=>{}),yield ue(this.destroy(ht)),ht}const X=new h,H=X.signal;null!=m&&m.signal&&m.signal.addEventListener("abort",()=>X.abort(),{once:!0,[ae]:this,[we]:!0});let f=!1;try{var ve,_=!1,T=!1;try{for(var ze,Je=c(this);_=!(ze=yield Je.next()).done;_=!1){const ht=ze.value;var St;if(f=!0,null!=m&&null!==(St=m.signal)&&void 0!==St&&St.aborted)throw new P;de?p=yield x(p,ht,{signal:H}):(p=ht,de=!0)}}catch(ht){T=!0,ve=ht}finally{try{_&&null!=Je.return&&(yield Je.return())}finally{if(T)throw ve}}if(!f&&!de)throw new Be}finally{X.abort()}return p}),nt.apply(this,arguments)}function Le(){return(Le=i(function*(x){null!=x&&z(x,"options"),null!=x?.signal&&k(x.signal,"options.signal");const p=[];var de,m=!1,j=!1;try{for(var H,X=c(this);m=!(H=yield X.next()).done;m=!1){const _=H.value;var f;if(null!=x&&null!==(f=x.signal)&&void 0!==f&&f.aborted)throw new P(void 0,{cause:x.signal.reason});se(p,_)}}catch(_){j=!0,de=_}finally{try{m&&null!=X.return&&(yield X.return())}finally{if(j)throw de}}return p})).apply(this,arguments)}function R(x){if(x=it(x),Ke(x))return 0;if(x<0)throw new O("number",">= 0",x);return x}Ct.exports.streamReturningOperators={asIndexedPairs:he(function V(x){return null!=x&&z(x,"options"),null!=x?.signal&&k(x.signal,"options.signal"),function(){var p=b(function*(){let j=0;var H,de=!1,X=!1;try{for(var _,f=c(this);de=!(_=yield v(f.next())).done;de=!1){const ve=_.value;var T;if(null!=x&&null!==(T=x.signal)&&void 0!==T&&T.aborted)throw new P({cause:x.signal.reason});yield[j++,ve]}}catch(ve){X=!0,H=ve}finally{try{de&&null!=f.return&&(yield v(f.return()))}finally{if(X)throw H}}});return function m(){return p.apply(this,arguments)}}().call(this)},"readable.asIndexedPairs will be removed in a future version."),drop:function U(x,p){return null!=p&&z(p,"options"),null!=p?.signal&&k(p.signal,"options.signal"),x=R(x),function(){var m=b(function*(){var de;if(null!=p&&null!==(de=p.signal)&&void 0!==de&&de.aborted)throw new P;var f,X=!1,H=!1;try{for(var T,_=c(this);X=!(T=yield v(_.next())).done;X=!1){const Je=T.value;var ve;if(null!=p&&null!==(ve=p.signal)&&void 0!==ve&&ve.aborted)throw new P;x--<=0&&(yield Je)}}catch(Je){H=!0,f=Je}finally{try{X&&null!=_.return&&(yield v(_.return()))}finally{if(H)throw f}}});return function j(){return m.apply(this,arguments)}}().call(this)},filter:_t,flatMap:function ee(x,p){const m=jt.call(this,x,p);return function(){var j=b(function*(){var f,X=!1,H=!1;try{for(var T,_=c(m);X=!(T=yield v(_.next())).done;X=!1){const ve=T.value;yield*a(c(ve),v)}}catch(ve){H=!0,f=ve}finally{try{X&&null!=_.return&&(yield v(_.return()))}finally{if(H)throw f}}});return function de(){return j.apply(this,arguments)}}().call(this)},map:jt,take:function Re(x,p){return null!=p&&z(p,"options"),null!=p?.signal&&k(p.signal,"options.signal"),x=R(x),function(){var m=b(function*(){var de;if(null!=p&&null!==(de=p.signal)&&void 0!==de&&de.aborted)throw new P;var f,X=!1,H=!1;try{for(var T,_=c(this);X=!(T=yield v(_.next())).done;X=!1){const Je=T.value;var ve;if(null!=p&&null!==(ve=p.signal)&&void 0!==ve&&ve.aborted)throw new P;if(x-- >0&&(yield Je),x<=0)return}}catch(Je){H=!0,f=Je}finally{try{X&&null!=_.return&&(yield v(_.return()))}finally{if(H)throw f}}});return function j(){return m.apply(this,arguments)}}().call(this)},compose:function Dt(x,p){if(null!=p&&z(p,"options"),null!=p?.signal&&k(p.signal,"options.signal"),ie(x)&&!W(x))throw new g("stream",x,"must be writable");const m=le(this,x);return null!=p&&p.signal&&ge(p.signal,m),m}},Ct.exports.promiseReturningOperators={every:function _e(x){return Oe.apply(this,arguments)},forEach:function et(x,p){return Mt.apply(this,arguments)},reduce:function at(x,p,m){return nt.apply(this,arguments)},toArray:function Q(x){return Le.apply(this,arguments)},some:Ee,find:function lt(x,p){return be.apply(this,arguments)}}},407:(Ct,ke,u)=>{"use strict";const{ObjectSetPrototypeOf:i}=u(5354);Ct.exports=c;const a=u(4367);function c(v){if(!(this instanceof c))return new c(v);a.call(this,v)}i(c.prototype,a.prototype),i(c,a),c.prototype._transform=function(v,b,h){h(null,v)}},4563:(Ct,ke,u)=>{var i=u(7156).default,a=u(8186).default,c=u(6737).default,v=u(8237).default,b=u(8131).default;const h=u(5736),{ArrayIsArray:g,Promise:D,SymbolAsyncIterator:B,SymbolDispose:O}=u(5354),P=u(6978),{once:k}=u(7506),F=u(8584),z=u(3147),{aggregateTwoErrors:ae,codes:{ERR_INVALID_ARG_TYPE:we,ERR_INVALID_RETURN_VALUE:ue,ERR_MISSING_ARGS:le,ERR_STREAM_DESTROYED:ge,ERR_STREAM_PREMATURE_CLOSE:W},AbortError:ie}=u(8599),{validateFunction:he,validateAbortSignal:se}=u(765),{isIterable:Me,isReadable:$e,isReadableNodeStream:it,isNodeStream:Ke,isTransformStream:tt,isWebStream:me,isReadableStream:Xe,isReadableFinished:Ae}=u(8174),yt=globalThis.AbortController||u(552).AbortController;let ft,Yt,Dt;function jt(at,nt,Q){let Le=!1;return at.on("close",()=>{Le=!0}),{destroy:R=>{Le||(Le=!0,F.destroyer(at,R||new ge("pipe")))},cleanup:P(at,{readable:nt,writable:Q},R=>{Le=!R})}}function Ee(at){if(Me(at))return at;if(it(at))return function oe(at){return _e.apply(this,arguments)}(at);throw new we("val",["Readable","Iterable","AsyncIterable"],at)}function _e(){return(_e=a(function*(at){Yt||(Yt=u(9638)),yield*b(v(Yt.prototype[B].call(at)),c)})).apply(this,arguments)}function Oe(at,nt,Q,Le){return lt.apply(this,arguments)}function lt(){return(lt=i(function*(at,nt,Q,{end:Le}){let ee,R=null;const U=H=>{if(H&&(ee=H),R){const f=R;R=null,f()}},Re=()=>new D((H,f)=>{ee?f(ee):R=()=>{ee?f(ee):H()}});nt.on("drain",U);const x=P(nt,{readable:!1},U);try{nt.writableNeedDrain&&(yield Re());var j,p=!1,m=!1;try{for(var X,de=v(at);p=!(X=yield de.next()).done;p=!1)nt.write(X.value)||(yield Re())}catch(H){m=!0,j=H}finally{try{p&&null!=de.return&&(yield de.return())}finally{if(m)throw j}}Le&&(nt.end(),yield Re()),Q()}catch(H){Q(ee!==H?ae(ee,H):H)}finally{x(),nt.off("drain",U)}})).apply(this,arguments)}function be(at,nt,Q,Le){return et.apply(this,arguments)}function et(){return(et=i(function*(at,nt,Q,{end:Le}){tt(nt)&&(nt=nt.writable);const ee=nt.getWriter();try{var Re,R=!1,U=!1;try{for(var p,x=v(at);R=!(p=yield x.next()).done;R=!1){const m=p.value;yield ee.ready,ee.write(m).catch(()=>{})}}catch(m){U=!0,Re=m}finally{try{R&&null!=x.return&&(yield x.return())}finally{if(U)throw Re}}yield ee.ready,Le&&(yield ee.close()),Q()}catch(m){try{yield ee.abort(m),Q(m)}catch(j){Q(j)}}})).apply(this,arguments)}function _t(at,nt,Q){if(1===at.length&&g(at[0])&&(at=at[0]),at.length<2)throw new le("streams");const Le=new yt,ee=Le.signal,R=Q?.signal,U=[];function Re(){H(new ie)}let x,p,m;se(R,"options.signal"),Dt=Dt||u(7506).addAbortListener,R&&(x=Dt(R,Re));const j=[];let f,de=0;function X(Je){H(Je,0==--de)}function H(Je,ze){var St;if(Je&&(!p||"ERR_STREAM_PREMATURE_CLOSE"===p.code)&&(p=Je),p||ze){for(;j.length;)j.shift()(p);null===(St=x)||void 0===St||St[O](),Le.abort(),ze&&(p||U.forEach(ht=>ht()),h.nextTick(nt,p,m))}}for(let Je=0;Je0,Et=St||!1!==Q?.end,ye=Je===at.length-1;if(Ke(ze)){let qe=function(xe){xe&&"AbortError"!==xe.name&&"ERR_STREAM_PREMATURE_CLOSE"!==xe.code&&X(xe)};if(Et){const{destroy:xe,cleanup:Fe}=jt(ze,St,ht);j.push(xe),$e(ze)&&ye&&U.push(Fe)}ze.on("error",qe),$e(ze)&&ye&&U.push(()=>{ze.removeListener("error",qe)})}if(0===Je)if("function"==typeof ze){if(f=ze({signal:ee}),!Me(f))throw new ue("Iterable, AsyncIterable or Stream","source",f)}else f=Me(ze)||it(ze)||tt(ze)?ze:z.from(ze);else if("function"==typeof ze){var _;if(f=tt(f)?Ee(null===(_=f)||void 0===_?void 0:_.readable):Ee(f),f=ze(f,{signal:ee}),St){if(!Me(f,!0))throw new ue("AsyncIterable",`transform[${Je-1}]`,f)}else{var T;ft||(ft=u(407));const qe=new ft({objectMode:!0}),xe=null===(T=f)||void 0===T?void 0:T.then;if("function"==typeof xe)de++,xe.call(f,ce=>{m=ce,null!=ce&&qe.write(ce),Et&&qe.end(),h.nextTick(X)},ce=>{qe.destroy(ce),h.nextTick(X,ce)});else if(Me(f,!0))de++,Oe(f,qe,X,{end:Et});else{if(!Xe(f)&&!tt(f))throw new ue("AsyncIterable or Promise","destination",f);de++,Oe(f.readable||f,qe,X,{end:Et})}f=qe;const{destroy:Fe,cleanup:ot}=jt(f,!1,!0);j.push(Fe),ye&&U.push(ot)}}else if(Ke(ze)){if(it(f)){de+=2;const qe=Be(f,ze,X,{end:Et});$e(ze)&&ye&&U.push(qe)}else if(tt(f)||Xe(f))de++,Oe(f.readable||f,ze,X,{end:Et});else{if(!Me(f))throw new we("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],f);de++,Oe(f,ze,X,{end:Et})}f=ze}else if(me(ze)){if(it(f))de++,be(Ee(f),ze,X,{end:Et});else if(Xe(f)||Me(f))de++,be(f,ze,X,{end:Et});else{if(!tt(f))throw new we("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],f);de++,be(f.readable,ze,X,{end:Et})}f=ze}else f=z.from(ze)}return(null!=ee&&ee.aborted||null!=R&&R.aborted)&&h.nextTick(Re),f}function Be(at,nt,Q,{end:Le}){let ee=!1;if(nt.on("close",()=>{ee||Q(new W)}),at.pipe(nt,{end:!1}),Le){let U=function(){ee=!0,nt.end()};Ae(at)?h.nextTick(U):at.once("end",U)}else Q();return P(at,{readable:!0,writable:!1},U=>{const Re=at._readableState;U&&"ERR_STREAM_PREMATURE_CLOSE"===U.code&&Re&&Re.ended&&!Re.errored&&!Re.errorEmitted?at.once("end",Q).once("error",Q):Q(U)}),P(nt,{readable:!1,writable:!0},Q)}Ct.exports={pipelineImpl:_t,pipeline:function Mt(...at){return _t(at,k(function V(at){return he(at[at.length-1],"streams[stream.length - 1]"),at.pop()}(at)))}}},9638:(Ct,ke,u)=>{var i=u(6737).default,a=u(8186).default;const c=u(5736),{ArrayPrototypeIndexOf:v,NumberIsInteger:b,NumberIsNaN:h,NumberParseInt:g,ObjectDefineProperties:D,ObjectKeys:B,ObjectSetPrototypeOf:O,Promise:P,SafeSet:k,SymbolAsyncDispose:F,SymbolAsyncIterator:z,Symbol:ae}=u(5354);Ct.exports=X,X.ReadableState=de;const{EventEmitter:we}=u(9069),{Stream:ue,prependListener:le}=u(9994),{Buffer:ge}=u(1160),{addAbortSignal:W}=u(1273),ie=u(6978);let he=u(7506).debuglog("stream",We=>{he=We});const se=u(6933),Me=u(8584),{getHighWaterMark:$e,getDefaultHighWaterMark:it}=u(5807),{aggregateTwoErrors:Ke,codes:{ERR_INVALID_ARG_TYPE:tt,ERR_METHOD_NOT_IMPLEMENTED:me,ERR_OUT_OF_RANGE:Xe,ERR_STREAM_PUSH_AFTER_EOF:Ae,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:yt},AbortError:ft}=u(8599),{validateObject:Yt}=u(765),Dt=ae("kPaused"),{StringDecoder:jt}=u(3054),V=u(8394);O(X.prototype,ue.prototype),O(X,ue);const Ee=()=>{},{errorOrDestroy:oe}=Me;function j(We){return{enumerable:!1,get(){return 0!=(this.state&We)},set(rt){rt?this.state|=We:this.state&=~We}}}function de(We,rt,qt){"boolean"!=typeof qt&&(qt=rt instanceof u(3147)),this.state=6192,We&&We.objectMode&&(this.state|=1),qt&&We&&We.readableObjectMode&&(this.state|=1),this.highWaterMark=We?$e(this,We,"readableHighWaterMark",qt):it(!1),this.buffer=new se,this.length=0,this.pipes=[],this.flowing=null,this[Dt]=null,We&&!1===We.emitClose&&(this.state&=-2049),We&&!1===We.autoDestroy&&(this.state&=-4097),this.errored=null,this.defaultEncoding=We&&We.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,We&&We.encoding&&(this.decoder=new jt(We.encoding),this.encoding=We.encoding)}function X(We){if(!(this instanceof X))return new X(We);const rt=this instanceof u(3147);this._readableState=new de(We,this,rt),We&&("function"==typeof We.read&&(this._read=We.read),"function"==typeof We.destroy&&(this._destroy=We.destroy),"function"==typeof We.construct&&(this._construct=We.construct),We.signal&&!rt&&W(We.signal,this)),ue.call(this,We),Me.construct(this,()=>{this._readableState.needReadable&&ht(this,this._readableState)})}function H(We,rt,qt,Ut){he("readableAddChunk",rt);const en=We._readableState;let bn;if(0==(1&en.state)&&("string"==typeof rt?en.encoding!==(qt=qt||en.defaultEncoding)&&(Ut&&en.encoding?rt=ge.from(rt,qt).toString(en.encoding):(rt=ge.from(rt,qt),qt="")):rt instanceof ge?qt="":ue._isUint8Array(rt)?(rt=ue._uint8ArrayToBuffer(rt),qt=""):null!=rt&&(bn=new tt("chunk",["string","Buffer","Uint8Array"],rt))),bn)oe(We,bn);else if(null===rt)en.state&=-9,function Je(We,rt){if(he("onEofChunk"),!rt.ended){if(rt.decoder){const qt=rt.decoder.end();qt&&qt.length&&(rt.buffer.push(qt),rt.length+=rt.objectMode?1:qt.length)}rt.ended=!0,rt.sync?ze(We):(rt.needReadable=!1,rt.emittedReadable=!0,St(We))}}(We,en);else if(0!=(1&en.state)||rt&&rt.length>0)if(Ut)if(0!=(4&en.state))oe(We,new yt);else{if(en.destroyed||en.errored)return!1;f(We,en,rt,!0)}else if(en.ended)oe(We,new Ae);else{if(en.destroyed||en.errored)return!1;en.state&=-9,en.decoder&&!qt?(rt=en.decoder.write(rt),en.objectMode||0!==rt.length?f(We,en,rt,!1):ht(We,en)):f(We,en,rt,!1)}else Ut||(en.state&=-9,ht(We,en));return!en.ended&&(en.length0?(0!=(65536&rt.state)?rt.awaitDrainWriters.clear():rt.awaitDrainWriters=null,rt.dataEmitted=!0,We.emit("data",qt)):(rt.length+=rt.objectMode?1:qt.length,Ut?rt.buffer.unshift(qt):rt.buffer.push(qt),0!=(64&rt.state)&&ze(We)),ht(We,rt)}function ve(We,rt){return We<=0||0===rt.length&&rt.ended?0:0!=(1&rt.state)?1:h(We)?rt.flowing&&rt.length?rt.buffer.first().length:rt.length:We<=rt.length?We:rt.ended?rt.length:0}function ze(We){const rt=We._readableState;he("emitReadable",rt.needReadable,rt.emittedReadable),rt.needReadable=!1,rt.emittedReadable||(he("emitReadable",rt.flowing),rt.emittedReadable=!0,c.nextTick(St,We))}function St(We){const rt=We._readableState;he("emitReadable_",rt.destroyed,rt.length,rt.ended),!rt.destroyed&&!rt.errored&&(rt.length||rt.ended)&&(We.emit("readable"),rt.emittedReadable=!1),rt.needReadable=!rt.flowing&&!rt.ended&&rt.length<=rt.highWaterMark,ce(We)}function ht(We,rt){!rt.readingMore&&rt.constructed&&(rt.readingMore=!0,c.nextTick(Et,We,rt))}function Et(We,rt){for(;!rt.reading&&!rt.ended&&(rt.length0,rt.resumeScheduled&&!1===rt[Dt]?rt.flowing=!0:We.listenerCount("data")>0?We.resume():rt.readableListening||(rt.flowing=null)}function xe(We){he("readable nexttick read 0"),We.read(0)}function ot(We,rt){he("resume",rt.reading),rt.reading||We.read(0),rt.resumeScheduled=!1,We.emit("resume"),ce(We),rt.flowing&&!rt.reading&&We.read(0)}function ce(We){const rt=We._readableState;for(he("flow",rt.flowing);rt.flowing&&null!==We.read(););}function Ue(We,rt){"function"!=typeof We.read&&(We=X.wrap(We,{objectMode:!0}));const qt=function Ce(We,rt){return Ye.apply(this,arguments)}(We,rt);return qt.stream=We,qt}function Ye(){return(Ye=a(function*(We,rt){let en,qt=Ee;function Ut(Rt){this===We?(qt(),qt=Ee):qt=Rt}We.on("readable",Ut);const bn=ie(We,{writable:!1},Rt=>{en=Rt?Ke(en,Rt):null,qt(),qt=Ee});try{for(;;){const Rt=We.destroyed?null:We.read();if(null!==Rt)yield Rt;else{if(en)throw en;if(null===en)return;yield i(new P(Ut))}}}catch(Rt){throw en=Ke(en,Rt),en}finally{!en&&!1===rt?.destroyOnReturn||void 0!==en&&!We._readableState.autoDestroy?(We.off("readable",Ut),bn()):Me.destroyer(We,null)}})).apply(this,arguments)}function Pe(We,rt){if(0===rt.length)return null;let qt;return rt.objectMode?qt=rt.buffer.shift():!We||We>=rt.length?(qt=rt.decoder?rt.buffer.join(""):1===rt.buffer.length?rt.buffer.first():rt.buffer.concat(rt.length),rt.buffer.clear()):qt=rt.buffer.consume(We,rt.decoder),qt}function wt(We){const rt=We._readableState;he("endReadable",rt.endEmitted),rt.endEmitted||(rt.ended=!0,c.nextTick(st,rt,We))}function st(We,rt){if(he("endReadableNT",We.endEmitted,We.length),!We.errored&&!We.closeEmitted&&!We.endEmitted&&0===We.length)if(We.endEmitted=!0,rt.emit("end"),rt.writable&&!1===rt.allowHalfOpen)c.nextTick(ut,rt);else if(We.autoDestroy){const qt=rt._writableState;(!qt||qt.autoDestroy&&(qt.finished||!1===qt.writable))&&rt.destroy()}}function ut(We){We.writable&&!We.writableEnded&&!We.destroyed&&We.end()}let Ht;function an(){return void 0===Ht&&(Ht={}),Ht}D(de.prototype,{objectMode:j(1),ended:j(2),endEmitted:j(4),reading:j(8),constructed:j(16),sync:j(32),needReadable:j(64),emittedReadable:j(128),readableListening:j(256),resumeScheduled:j(512),errorEmitted:j(1024),emitClose:j(2048),autoDestroy:j(4096),destroyed:j(8192),closed:j(16384),closeEmitted:j(32768),multiAwaitDrain:j(65536),readingMore:j(1<<17),dataEmitted:j(1<<18)}),X.prototype.destroy=Me.destroy,X.prototype._undestroy=Me.undestroy,X.prototype._destroy=function(We,rt){rt(We)},X.prototype[we.captureRejectionSymbol]=function(We){this.destroy(We)},X.prototype[F]=function(){let We;return this.destroyed||(We=this.readableEnded?null:new ft,this.destroy(We)),new P((rt,qt)=>ie(this,Ut=>Ut&&Ut!==We?qt(Ut):rt(null)))},X.prototype.push=function(We,rt){return H(this,We,rt,!1)},X.prototype.unshift=function(We,rt){return H(this,We,rt,!0)},X.prototype.isPaused=function(){const We=this._readableState;return!0===We[Dt]||!1===We.flowing},X.prototype.setEncoding=function(We){const rt=new jt(We);this._readableState.decoder=rt,this._readableState.encoding=this._readableState.decoder.encoding;const qt=this._readableState.buffer;let Ut="";for(const en of qt)Ut+=rt.write(en);return qt.clear(),""!==Ut&&qt.push(Ut),this._readableState.length=Ut.length,this},X.prototype.read=function(We){he("read",We),void 0===We?We=NaN:b(We)||(We=g(We,10));const rt=this._readableState,qt=We;if(We>rt.highWaterMark&&(rt.highWaterMark=function T(We){if(We>1073741824)throw new Xe("size","<= 1GiB",We);return We--,We|=We>>>1,We|=We>>>2,We|=We>>>4,We|=We>>>8,We|=We>>>16,++We}(We)),0!==We&&(rt.state&=-129),0===We&&rt.needReadable&&((0!==rt.highWaterMark?rt.length>=rt.highWaterMark:rt.length>0)||rt.ended))return he("read: emitReadable",rt.length,rt.ended),0===rt.length&&rt.ended?wt(this):ze(this),null;if(0===(We=ve(We,rt))&&rt.ended)return 0===rt.length&&wt(this),null;let en,Ut=0!=(64&rt.state);if(he("need readable",Ut),(0===rt.length||rt.length-We0?Pe(We,rt):null,null===en?(rt.needReadable=rt.length<=rt.highWaterMark,We=0):(rt.length-=We,rt.multiAwaitDrain?rt.awaitDrainWriters.clear():rt.awaitDrainWriters=null),0===rt.length&&(rt.ended||(rt.needReadable=!0),qt!==We&&rt.ended&&wt(this)),null!==en&&!rt.errorEmitted&&!rt.closeEmitted&&(rt.dataEmitted=!0,this.emit("data",en)),en},X.prototype._read=function(We){throw new me("_read()")},X.prototype.pipe=function(We,rt){const qt=this,Ut=this._readableState;1===Ut.pipes.length&&(Ut.multiAwaitDrain||(Ut.multiAwaitDrain=!0,Ut.awaitDrainWriters=new k(Ut.awaitDrainWriters?[Ut.awaitDrainWriters]:[]))),Ut.pipes.push(We),he("pipe count=%d opts=%j",Ut.pipes.length,rt);const bn=rt&&!1===rt.end||We===c.stdout||We===c.stderr?Ne:vt;function vt(){he("onend"),We.end()}Ut.endEmitted?c.nextTick(bn):qt.once("end",bn),We.on("unpipe",function Rt(fe,re){he("onunpipe"),fe===qt&&re&&!1===re.hasUnpiped&&(re.hasUnpiped=!0,function Jt(){he("cleanup"),We.removeListener("close",On),We.removeListener("finish",qn),ct&&We.removeListener("drain",ct),We.removeListener("error",mn),We.removeListener("unpipe",Rt),qt.removeListener("end",vt),qt.removeListener("end",Ne),qt.removeListener("data",kn),Bt=!0,ct&&Ut.awaitDrainWriters&&(!We._writableState||We._writableState.needDrain)&&ct()}())});let ct,Bt=!1;function xn(){Bt||(1===Ut.pipes.length&&Ut.pipes[0]===We?(he("false write response, pause",0),Ut.awaitDrainWriters=We,Ut.multiAwaitDrain=!1):Ut.pipes.length>1&&Ut.pipes.includes(We)&&(he("false write response, pause",Ut.awaitDrainWriters.size),Ut.awaitDrainWriters.add(We)),qt.pause()),ct||(ct=function ye(We,rt){return function(){const Ut=We._readableState;Ut.awaitDrainWriters===rt?(he("pipeOnDrain",1),Ut.awaitDrainWriters=null):Ut.multiAwaitDrain&&(he("pipeOnDrain",Ut.awaitDrainWriters.size),Ut.awaitDrainWriters.delete(rt)),(!Ut.awaitDrainWriters||0===Ut.awaitDrainWriters.size)&&We.listenerCount("data")&&We.resume()}}(qt,We),We.on("drain",ct))}function kn(fe){he("ondata");const re=We.write(fe);he("dest.write",re),!1===re&&xn()}function mn(fe){if(he("onerror",fe),Ne(),We.removeListener("error",mn),0===We.listenerCount("error")){const re=We._writableState||We._readableState;re&&!re.errorEmitted?oe(We,fe):We.emit("error",fe)}}function On(){We.removeListener("finish",qn),Ne()}function qn(){he("onfinish"),We.removeListener("close",On),Ne()}function Ne(){he("unpipe"),qt.unpipe(We)}return qt.on("data",kn),le(We,"error",mn),We.once("close",On),We.once("finish",qn),We.emit("pipe",qt),!0===We.writableNeedDrain?xn():Ut.flowing||(he("pipe resume"),qt.resume()),We},X.prototype.unpipe=function(We){const rt=this._readableState;if(0===rt.pipes.length)return this;if(!We){const en=rt.pipes;rt.pipes=[],this.pause();for(let bn=0;bn0,!1!==Ut.flowing&&this.resume()):"readable"===We&&!Ut.endEmitted&&!Ut.readableListening&&(Ut.readableListening=Ut.needReadable=!0,Ut.flowing=!1,Ut.emittedReadable=!1,he("on readable",Ut.length,Ut.reading),Ut.length?ze(this):Ut.reading||c.nextTick(xe,this)),qt},X.prototype.off=X.prototype.removeListener=function(We,rt){const qt=ue.prototype.removeListener.call(this,We,rt);return"readable"===We&&c.nextTick(qe,this),qt},X.prototype.removeAllListeners=function(We){const rt=ue.prototype.removeAllListeners.apply(this,arguments);return("readable"===We||void 0===We)&&c.nextTick(qe,this),rt},X.prototype.resume=function(){const We=this._readableState;return We.flowing||(he("resume"),We.flowing=!We.readableListening,function Fe(We,rt){rt.resumeScheduled||(rt.resumeScheduled=!0,c.nextTick(ot,We,rt))}(this,We)),We[Dt]=!1,this},X.prototype.pause=function(){return he("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(he("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[Dt]=!0,this},X.prototype.wrap=function(We){let rt=!1;We.on("data",Ut=>{!this.push(Ut)&&We.pause&&(rt=!0,We.pause())}),We.on("end",()=>{this.push(null)}),We.on("error",Ut=>{oe(this,Ut)}),We.on("close",()=>{this.destroy()}),We.on("destroy",()=>{this.destroy()}),this._read=()=>{rt&&We.resume&&(rt=!1,We.resume())};const qt=B(We);for(let Ut=1;Ut{"use strict";const{MathFloor:i,NumberIsInteger:a}=u(5354),{validateInteger:c}=u(765),{ERR_INVALID_ARG_VALUE:v}=u(8599).codes;let b=16384,h=16;function D(P){return P?h:b}Ct.exports={getHighWaterMark:function O(P,k,F,z){const ae=function g(P,k,F){return null!=P.highWaterMark?P.highWaterMark:k?P[F]:null}(k,z,F);if(null!=ae){if(!a(ae)||ae<0)throw new v(z?`options.${F}`:"options.highWaterMark",ae);return i(ae)}return D(P.objectMode)},getDefaultHighWaterMark:D,setDefaultHighWaterMark:function B(P,k){c(k,"value",0),P?h=k:b=k}}},4367:(Ct,ke,u)=>{"use strict";const{ObjectSetPrototypeOf:i,Symbol:a}=u(5354);Ct.exports=g;const{ERR_METHOD_NOT_IMPLEMENTED:c}=u(8599).codes,v=u(3147),{getHighWaterMark:b}=u(5807);i(g.prototype,v.prototype),i(g,v);const h=a("kCallback");function g(O){if(!(this instanceof g))return new g(O);const P=O?b(this,O,"readableHighWaterMark",!0):null;0===P&&(O={...O,highWaterMark:null,readableHighWaterMark:P,writableHighWaterMark:O.writableHighWaterMark||0}),v.call(this,O),this._readableState.sync=!1,this[h]=null,O&&("function"==typeof O.transform&&(this._transform=O.transform),"function"==typeof O.flush&&(this._flush=O.flush)),this.on("prefinish",B)}function D(O){"function"!=typeof this._flush||this.destroyed?(this.push(null),O&&O()):this._flush((P,k)=>{P?O?O(P):this.destroy(P):(null!=k&&this.push(k),this.push(null),O&&O())})}function B(){this._final!==D&&D.call(this)}g.prototype._final=D,g.prototype._transform=function(O,P,k){throw new c("_transform()")},g.prototype._write=function(O,P,k){const F=this._readableState,z=this._writableState,ae=F.length;this._transform(O,P,(we,ue)=>{we?k(we):(null!=ue&&this.push(ue),z.ended||ae===F.length||F.length{"use strict";const{SymbolAsyncIterator:i,SymbolIterator:a,SymbolFor:c}=u(5354),v=c("nodejs.stream.destroyed"),b=c("nodejs.stream.errored"),h=c("nodejs.stream.readable"),g=c("nodejs.stream.writable"),D=c("nodejs.stream.disturbed"),B=c("nodejs.webstream.isClosedPromise"),O=c("nodejs.webstream.controllerErrorFunction");function P(V,Ee=!1){var oe;return!(!V||"function"!=typeof V.pipe||"function"!=typeof V.on||Ee&&("function"!=typeof V.pause||"function"!=typeof V.resume)||V._writableState&&!1===(null===(oe=V._readableState)||void 0===oe?void 0:oe.readable)||V._writableState&&!V._readableState)}function k(V){var Ee;return!(!V||"function"!=typeof V.write||"function"!=typeof V.on||V._readableState&&!1===(null===(Ee=V._writableState)||void 0===Ee?void 0:Ee.writable))}function z(V){return V&&(V._readableState||V._writableState||"function"==typeof V.write&&"function"==typeof V.on||"function"==typeof V.pipe&&"function"==typeof V.on)}function ae(V){return!(!V||z(V)||"function"!=typeof V.pipeThrough||"function"!=typeof V.getReader||"function"!=typeof V.cancel)}function we(V){return!(!V||z(V)||"function"!=typeof V.getWriter||"function"!=typeof V.abort)}function ue(V){return!(!V||z(V)||"object"!=typeof V.readable||"object"!=typeof V.writable)}function W(V){if(!z(V))return null;const _e=V._writableState||V._readableState;return!!(V.destroyed||V[v]||null!=_e&&_e.destroyed)}function ie(V){if(!k(V))return null;if(!0===V.writableEnded)return!0;const Ee=V._writableState;return(null==Ee||!Ee.errored)&&("boolean"!=typeof Ee?.ended?null:Ee.ended)}function Me(V,Ee){if(!P(V))return null;const oe=V._readableState;return(null==oe||!oe.errored)&&("boolean"!=typeof oe?.endEmitted?null:!!(oe.endEmitted||!1===Ee&&!0===oe.ended&&0===oe.length))}function $e(V){return V&&null!=V[h]?V[h]:"boolean"!=typeof V?.readable?null:!W(V)&&P(V)&&V.readable&&!Me(V)}function it(V){return V&&null!=V[g]?V[g]:"boolean"!=typeof V?.writable?null:!W(V)&&k(V)&&V.writable&&!ie(V)}function Ae(V){return"boolean"==typeof V._closed&&"boolean"==typeof V._defaultKeepAlive&&"boolean"==typeof V._removedConnection&&"boolean"==typeof V._removedContLen}function yt(V){return"boolean"==typeof V._sent100&&Ae(V)}Ct.exports={isDestroyed:W,kIsDestroyed:v,isDisturbed:function Dt(V){var Ee;return!(!V||!(null!==(Ee=V[D])&&void 0!==Ee?Ee:V.readableDidRead||V.readableAborted))},kIsDisturbed:D,isErrored:function jt(V){var Ee,oe,_e,Oe,lt,be,et,Mt,_t,Be;return!(!V||!(null!==(Ee=null!==(oe=null!==(_e=null!==(Oe=null!==(lt=null!==(be=V[b])&&void 0!==be?be:V.readableErrored)&&void 0!==lt?lt:V.writableErrored)&&void 0!==Oe?Oe:null===(et=V._readableState)||void 0===et?void 0:et.errorEmitted)&&void 0!==_e?_e:null===(Mt=V._writableState)||void 0===Mt?void 0:Mt.errorEmitted)&&void 0!==oe?oe:null===(_t=V._readableState)||void 0===_t?void 0:_t.errored)&&void 0!==Ee?Ee:null===(Be=V._writableState)||void 0===Be?void 0:Be.errored))},kIsErrored:b,isReadable:$e,kIsReadable:h,kIsClosedPromise:B,kControllerErrorFunction:O,kIsWritable:g,isClosed:function Xe(V){if(!z(V))return null;if("boolean"==typeof V.closed)return V.closed;const Ee=V._writableState,oe=V._readableState;return"boolean"==typeof Ee?.closed||"boolean"==typeof oe?.closed?Ee?.closed||oe?.closed:"boolean"==typeof V._closed&&Ae(V)?V._closed:null},isDuplexNodeStream:function F(V){return!(!V||"function"!=typeof V.pipe||!V._readableState||"function"!=typeof V.on||"function"!=typeof V.write)},isFinished:function Ke(V,Ee){return z(V)?!!W(V)||!(!1!==Ee?.readable&&$e(V)||!1!==Ee?.writable&&it(V)):null},isIterable:function ge(V,Ee){return null!=V&&(!0===Ee?"function"==typeof V[i]:!1===Ee?"function"==typeof V[a]:"function"==typeof V[i]||"function"==typeof V[a])},isReadableNodeStream:P,isReadableStream:ae,isReadableEnded:function se(V){if(!P(V))return null;if(!0===V.readableEnded)return!0;const Ee=V._readableState;return!(!Ee||Ee.errored)&&("boolean"!=typeof Ee?.ended?null:Ee.ended)},isReadableFinished:Me,isReadableErrored:function me(V){var Ee,oe;return z(V)?V.readableErrored?V.readableErrored:null!==(Ee=null===(oe=V._readableState)||void 0===oe?void 0:oe.errored)&&void 0!==Ee?Ee:null:null},isNodeStream:z,isWebStream:function le(V){return ae(V)||we(V)||ue(V)},isWritable:it,isWritableNodeStream:k,isWritableStream:we,isWritableEnded:ie,isWritableFinished:function he(V,Ee){if(!k(V))return null;if(!0===V.writableFinished)return!0;const oe=V._writableState;return(null==oe||!oe.errored)&&("boolean"!=typeof oe?.finished?null:!!(oe.finished||!1===Ee&&!0===oe.ended&&0===oe.length))},isWritableErrored:function tt(V){var Ee,oe;return z(V)?V.writableErrored?V.writableErrored:null!==(Ee=null===(oe=V._writableState)||void 0===oe?void 0:oe.errored)&&void 0!==Ee?Ee:null:null},isServerRequest:function ft(V){var Ee;return"boolean"==typeof V._consuming&&"boolean"==typeof V._dumped&&void 0===(null===(Ee=V.req)||void 0===Ee?void 0:Ee.upgradeOrConnect)},isServerResponse:yt,willEmitClose:function Yt(V){if(!z(V))return null;const _e=V._writableState||V._readableState;return!_e&&yt(V)||!!(_e&&_e.autoDestroy&&_e.emitClose&&!1===_e.closed)},isTransformStream:ue}},6355:(Ct,ke,u)=>{const i=u(5736),{ArrayPrototypeSlice:a,Error:c,FunctionPrototypeSymbolHasInstance:v,ObjectDefineProperty:b,ObjectDefineProperties:h,ObjectSetPrototypeOf:g,StringPrototypeToLowerCase:D,Symbol:B,SymbolHasInstance:O}=u(5354);Ct.exports=yt,yt.WritableState=Xe;const{EventEmitter:P}=u(9069),k=u(9994).Stream,{Buffer:F}=u(1160),z=u(8584),{addAbortSignal:ae}=u(1273),{getHighWaterMark:we,getDefaultHighWaterMark:ue}=u(5807),{ERR_INVALID_ARG_TYPE:le,ERR_METHOD_NOT_IMPLEMENTED:ge,ERR_MULTIPLE_CALLBACK:W,ERR_STREAM_CANNOT_PIPE:ie,ERR_STREAM_DESTROYED:he,ERR_STREAM_ALREADY_FINISHED:se,ERR_STREAM_NULL_VALUES:Me,ERR_STREAM_WRITE_AFTER_END:$e,ERR_UNKNOWN_ENCODING:it}=u(8599).codes,{errorOrDestroy:Ke}=z;function tt(){}g(yt.prototype,k.prototype),g(yt,k);const me=B("kOnFinished");function Xe(Q,Le,ee){"boolean"!=typeof ee&&(ee=Le instanceof u(3147)),this.objectMode=!(!Q||!Q.objectMode),ee&&(this.objectMode=this.objectMode||!(!Q||!Q.writableObjectMode)),this.highWaterMark=Q?we(this,Q,"writableHighWaterMark",ee):ue(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(Q&&!1===Q.decodeStrings),this.defaultEncoding=Q&&Q.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=V.bind(void 0,Le),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,Ae(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!Q||!1!==Q.emitClose,this.autoDestroy=!Q||!1!==Q.autoDestroy,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[me]=[]}function Ae(Q){Q.buffered=[],Q.bufferedIndex=0,Q.allBuffers=!0,Q.allNoop=!0}function yt(Q){const Le=this instanceof u(3147);if(!Le&&!v(yt,this))return new yt(Q);this._writableState=new Xe(Q,this,Le),Q&&("function"==typeof Q.write&&(this._write=Q.write),"function"==typeof Q.writev&&(this._writev=Q.writev),"function"==typeof Q.destroy&&(this._destroy=Q.destroy),"function"==typeof Q.final&&(this._final=Q.final),"function"==typeof Q.construct&&(this._construct=Q.construct),Q.signal&&ae(Q.signal,this)),k.call(this,Q),z.construct(this,()=>{const ee=this._writableState;ee.writing||Oe(this,ee),Mt(this,ee)})}function ft(Q,Le,ee,R){const U=Q._writableState;if("function"==typeof ee)R=ee,ee=U.defaultEncoding;else{if(ee){if("buffer"!==ee&&!F.isEncoding(ee))throw new it(ee)}else ee=U.defaultEncoding;"function"!=typeof R&&(R=tt)}if(null===Le)throw new Me;if(!U.objectMode)if("string"==typeof Le)!1!==U.decodeStrings&&(Le=F.from(Le,ee),ee="buffer");else if(Le instanceof F)ee="buffer";else{if(!k._isUint8Array(Le))throw new le("chunk",["string","Buffer","Uint8Array"],Le);Le=k._uint8ArrayToBuffer(Le),ee="buffer"}let Re;return U.ending?Re=new $e:U.destroyed&&(Re=new he("write")),Re?(i.nextTick(R,Re),Ke(Q,Re,!0),Re):(U.pendingcb++,function Yt(Q,Le,ee,R,U){const Re=Le.objectMode?1:ee.length;Le.length+=Re;const x=Le.lengthee.bufferedIndex&&Oe(Q,ee),R?null!==ee.afterWriteTickInfo&&ee.afterWriteTickInfo.cb===U?ee.afterWriteTickInfo.count++:(ee.afterWriteTickInfo={count:1,cb:U,stream:Q,state:ee},i.nextTick(Ee,ee.afterWriteTickInfo)):oe(Q,ee,1,U))):Ke(Q,new W)}function Ee({stream:Q,state:Le,count:ee,cb:R}){return Le.afterWriteTickInfo=null,oe(Q,Le,ee,R)}function oe(Q,Le,ee,R){for(!Le.ending&&!Q.destroyed&&0===Le.length&&Le.needDrain&&(Le.needDrain=!1,Q.emit("drain"));ee-- >0;)Le.pendingcb--,R();Le.destroyed&&_e(Le),Mt(Q,Le)}function _e(Q){if(Q.writing)return;for(let U=Q.bufferedIndex;U1&&Q._writev){Le.pendingcb-=Re-1;const p=Le.allNoop?tt:j=>{for(let de=x;de256?(ee.splice(0,x),Le.bufferedIndex=0):Le.bufferedIndex=x}Le.bufferProcessing=!1}function lt(Q){return Q.ending&&!Q.destroyed&&Q.constructed&&0===Q.length&&!Q.errored&&0===Q.buffered.length&&!Q.finished&&!Q.writing&&!Q.errorEmitted&&!Q.closeEmitted}function Mt(Q,Le,ee){lt(Le)&&(function et(Q,Le){!Le.prefinished&&!Le.finalCalled&&("function"!=typeof Q._final||Le.destroyed?(Le.prefinished=!0,Q.emit("prefinish")):(Le.finalCalled=!0,function be(Q,Le){let ee=!1;function R(U){if(ee)Ke(Q,U??W());else if(ee=!0,Le.pendingcb--,U){const Re=Le[me].splice(0);for(let x=0;x{lt(U)?_t(R,U):U.pendingcb--},Q,Le)):lt(Le)&&(Le.pendingcb++,_t(Q,Le))))}function _t(Q,Le){Le.pendingcb--,Le.finished=!0;const ee=Le[me].splice(0);for(let R=0;R{"use strict";const{ArrayIsArray:i,ArrayPrototypeIncludes:a,ArrayPrototypeJoin:c,ArrayPrototypeMap:v,NumberIsInteger:b,NumberIsNaN:h,NumberMAX_SAFE_INTEGER:g,NumberMIN_SAFE_INTEGER:D,NumberParseInt:B,ObjectPrototypeHasOwnProperty:O,RegExpPrototypeExec:P,String:k,StringPrototypeToUpperCase:F,StringPrototypeTrim:z}=u(5354),{hideStackFrames:ae,codes:{ERR_SOCKET_BAD_PORT:we,ERR_INVALID_ARG_TYPE:ue,ERR_INVALID_ARG_VALUE:le,ERR_OUT_OF_RANGE:ge,ERR_UNKNOWN_SIGNAL:W}}=u(8599),{normalizeEncoding:ie}=u(7506),{isAsyncFunction:he,isArrayBufferView:se}=u(7506).types,Me={},Ke=/^[0-7]+$/,Xe=ae((x,p,m=D,j=g)=>{if("number"!=typeof x)throw new ue(p,"number",x);if(!b(x))throw new ge(p,"an integer",x);if(xj)throw new ge(p,`>= ${m} && <= ${j}`,x)}),Ae=ae((x,p,m=-2147483648,j=2147483647)=>{if("number"!=typeof x)throw new ue(p,"number",x);if(!b(x))throw new ge(p,"an integer",x);if(xj)throw new ge(p,`>= ${m} && <= ${j}`,x)}),yt=ae((x,p,m=!1)=>{if("number"!=typeof x)throw new ue(p,"number",x);if(!b(x))throw new ge(p,"an integer",x);const j=m?1:0,de=4294967295;if(xde)throw new ge(p,`>= ${j} && <= ${de}`,x)});function ft(x,p){if("string"!=typeof x)throw new ue(p,"string",x)}const Dt=ae((x,p,m)=>{if(!a(m,x)){const j=c(v(m,X=>"string"==typeof X?`'${X}'`:k(X)),", ");throw new le(p,x,"must be one of: "+j)}});function jt(x,p){if("boolean"!=typeof x)throw new ue(p,"boolean",x)}function V(x,p,m){return null!=x&&O(x,p)?x[p]:m}const Ee=ae((x,p,m=null)=>{const j=V(m,"allowArray",!1),de=V(m,"allowFunction",!1);if(!V(m,"nullable",!1)&&null===x||!j&&i(x)||"object"!=typeof x&&(!de||"function"!=typeof x))throw new ue(p,"Object",x)}),oe=ae((x,p)=>{if(null!=x&&"object"!=typeof x&&"function"!=typeof x)throw new ue(p,"a dictionary",x)}),_e=ae((x,p,m=0)=>{if(!i(x))throw new ue(p,"Array",x);if(x.length{if(!se(x))throw new ue(p,["Buffer","TypedArray","DataView"],x)}),at=ae((x,p)=>{if(void 0!==x&&(null===x||"object"!=typeof x||!("aborted"in x)))throw new ue(p,"AbortSignal",x)}),nt=ae((x,p)=>{if("function"!=typeof x)throw new ue(p,"Function",x)}),Q=ae((x,p)=>{if("function"!=typeof x||he(x))throw new ue(p,"Function",x)}),Le=ae((x,p)=>{if(void 0!==x)throw new ue(p,"undefined",x)}),R=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function U(x,p){if(typeof x>"u"||!P(R,x))throw new le(p,x,'must be an array or string of format "; rel=preload; as=style"')}Ct.exports={isInt32:function $e(x){return x===(0|x)},isUint32:function it(x){return x===x>>>0},parseFileMode:function me(x,p,m){if(typeof x>"u"&&(x=m),"string"==typeof x){if(null===P(Ke,x))throw new le(p,x,"must be a 32-bit unsigned integer or an octal string");x=B(x,8)}return yt(x,p),x},validateArray:_e,validateStringArray:function Oe(x,p){_e(x,p);for(let m=0;mj||(null!=m||null!=j)&&h(x))throw new ge(p,`${null!=m?`>= ${m}`:""}${null!=m&&null!=j?" && ":""}${null!=j?`<= ${j}`:""}`,x)},validateObject:Ee,validateOneOf:Dt,validatePlainFunction:Q,validatePort:function Be(x,p="Port",m=!0){if("number"!=typeof x&&"string"!=typeof x||"string"==typeof x&&0===z(x).length||+x!=+x>>>0||x>65535||0===x&&!m)throw new we(p,x,m);return 0|x},validateSignalName:function et(x,p="signal"){if(ft(x,p),void 0===Me[x])throw void 0!==Me[F(x)]?new W(x+" (signals must use all capital letters)"):new W(x)},validateString:ft,validateUint32:yt,validateUndefined:Le,validateUnion:function ee(x,p,m){if(!a(m,x))throw new ue(p,`('${c(m,"|")}')`,x)},validateAbortSignal:at,validateLinkHeaderValue:function Re(x){if("string"==typeof x)return U(x,"hints"),x;if(i(x)){const p=x.length;let m="";if(0===p)return m;for(let j=0;j; rel=preload; as=style"')}}},5690:(Ct,ke,u)=>{"use strict";const i=u(4253),a=u(810),c=i.Readable.destroy;Ct.exports=i.Readable,Ct.exports._uint8ArrayToBuffer=i._uint8ArrayToBuffer,Ct.exports._isUint8Array=i._isUint8Array,Ct.exports.isDisturbed=i.isDisturbed,Ct.exports.isErrored=i.isErrored,Ct.exports.isReadable=i.isReadable,Ct.exports.Readable=i.Readable,Ct.exports.Writable=i.Writable,Ct.exports.Duplex=i.Duplex,Ct.exports.Transform=i.Transform,Ct.exports.PassThrough=i.PassThrough,Ct.exports.addAbortSignal=i.addAbortSignal,Ct.exports.finished=i.finished,Ct.exports.destroy=i.destroy,Ct.exports.destroy=c,Ct.exports.pipeline=i.pipeline,Ct.exports.compose=i.compose,Object.defineProperty(i,"promises",{configurable:!0,enumerable:!0,get:()=>a}),Ct.exports.Stream=i.Stream,Ct.exports.default=Ct.exports},8599:(Ct,ke,u)=>{"use strict";const{format:i,inspect:a,AggregateError:c}=u(7506),v=globalThis.AggregateError||c,b=Symbol("kIsNodeError"),h=["string","function","number","object","Function","Object","boolean","bigint","symbol"],g=/^([A-Z][a-z0-9]*)+$/,B={};function O(ue,le){if(!ue)throw new B.ERR_INTERNAL_ASSERTION(le)}function P(ue){let le="",ge=ue.length;const W="-"===ue[0]?1:0;for(;ge>=W+4;ge-=3)le=`_${ue.slice(ge-3,ge)}${le}`;return`${ue.slice(0,ge)}${le}`}function F(ue,le,ge){ge||(ge=Error);class W extends ge{constructor(...he){super(function k(ue,le,ge){if("function"==typeof le)return O(le.length<=ge.length,`Code: ${ue}; The provided arguments length (${ge.length}) does not match the required ones (${le.length}).`),le(...ge);const W=(le.match(/%[dfijoOs]/g)||[]).length;return O(W===ge.length,`Code: ${ue}; The provided arguments length (${ge.length}) does not match the required ones (${W}).`),0===ge.length?le:i(le,...ge)}(ue,le,he))}toString(){return`${this.name} [${ue}]: ${this.message}`}}Object.defineProperties(W.prototype,{name:{value:ge.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${ue}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),W.prototype.code=ue,W.prototype[b]=!0,B[ue]=W}function z(ue){return Object.defineProperty(ue,"name",{value:"__node_internal_"+ue.name}),ue}class we extends Error{constructor(le="The operation was aborted",ge){if(void 0!==ge&&"object"!=typeof ge)throw new B.ERR_INVALID_ARG_TYPE("options","Object",ge);super(le,ge),this.code="ABORT_ERR",this.name="AbortError"}}F("ERR_ASSERTION","%s",Error),F("ERR_INVALID_ARG_TYPE",(ue,le,ge)=>{O("string"==typeof ue,"'name' must be a string"),Array.isArray(le)||(le=[le]);let W="The ";ue.endsWith(" argument")?W+=`${ue} `:W+=`"${ue}" ${ue.includes(".")?"property":"argument"} `,W+="must be ";const ie=[],he=[],se=[];for(const $e of le)O("string"==typeof $e,"All expected entries have to be of type string"),h.includes($e)?ie.push($e.toLowerCase()):g.test($e)?he.push($e):(O("object"!==$e,'The value "object" should be written as "Object"'),se.push($e));if(he.length>0){const $e=ie.indexOf("object");-1!==$e&&(ie.splice(ie,$e,1),he.push("Object"))}if(ie.length>0){switch(ie.length){case 1:W+=`of type ${ie[0]}`;break;case 2:W+=`one of type ${ie[0]} or ${ie[1]}`;break;default:{const $e=ie.pop();W+=`one of type ${ie.join(", ")}, or ${$e}`}}(he.length>0||se.length>0)&&(W+=" or ")}if(he.length>0){switch(he.length){case 1:W+=`an instance of ${he[0]}`;break;case 2:W+=`an instance of ${he[0]} or ${he[1]}`;break;default:{const $e=he.pop();W+=`an instance of ${he.join(", ")}, or ${$e}`}}se.length>0&&(W+=" or ")}switch(se.length){case 0:break;case 1:se[0].toLowerCase()!==se[0]&&(W+="an "),W+=`${se[0]}`;break;case 2:W+=`one of ${se[0]} or ${se[1]}`;break;default:{const $e=se.pop();W+=`one of ${se.join(", ")}, or ${$e}`}}if(null==ge)W+=`. Received ${ge}`;else if("function"==typeof ge&&ge.name)W+=`. Received function ${ge.name}`;else if("object"==typeof ge){var Me;null!==(Me=ge.constructor)&&void 0!==Me&&Me.name?W+=`. Received an instance of ${ge.constructor.name}`:W+=`. Received ${a(ge,{depth:-1})}`}else{let $e=a(ge,{colors:!1});$e.length>25&&($e=`${$e.slice(0,25)}...`),W+=`. Received type ${typeof ge} (${$e})`}return W},TypeError),F("ERR_INVALID_ARG_VALUE",(ue,le,ge="is invalid")=>{let W=a(le);return W.length>128&&(W=W.slice(0,128)+"..."),`The ${ue.includes(".")?"property":"argument"} '${ue}' ${ge}. Received ${W}`},TypeError),F("ERR_INVALID_RETURN_VALUE",(ue,le,ge)=>{var W;return`Expected ${ue} to be returned from the "${le}" function but got ${null!=ge&&null!==(W=ge.constructor)&&void 0!==W&&W.name?`instance of ${ge.constructor.name}`:"type "+typeof ge}.`},TypeError),F("ERR_MISSING_ARGS",(...ue)=>{let le;O(ue.length>0,"At least one arg needs to be specified");const ge=ue.length;switch(ue=(Array.isArray(ue)?ue:[ue]).map(W=>`"${W}"`).join(" or "),ge){case 1:le+=`The ${ue[0]} argument`;break;case 2:le+=`The ${ue[0]} and ${ue[1]} arguments`;break;default:{const W=ue.pop();le+=`The ${ue.join(", ")}, and ${W} arguments`}}return`${le} must be specified`},TypeError),F("ERR_OUT_OF_RANGE",(ue,le,ge)=>{let W;return O(le,'Missing "range" argument'),Number.isInteger(ge)&&Math.abs(ge)>2**32?W=P(String(ge)):"bigint"==typeof ge?(W=String(ge),(ge>2n**32n||ge<-(2n**32n))&&(W=P(W)),W+="n"):W=a(ge),`The value of "${ue}" is out of range. It must be ${le}. Received ${W}`},RangeError),F("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),F("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),F("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),F("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),F("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),F("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),F("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),F("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),F("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),F("ERR_STREAM_WRITE_AFTER_END","write after end",Error),F("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),Ct.exports={AbortError:we,aggregateTwoErrors:z(function ae(ue,le){if(ue&&le&&ue!==le){if(Array.isArray(le.errors))return le.errors.push(ue),le;const ge=new v([le,ue],le.message);return ge.code=le.code,ge}return ue||le}),hideStackFrames:z,codes:B}},5354:Ct=>{"use strict";Ct.exports={ArrayIsArray:ke=>Array.isArray(ke),ArrayPrototypeIncludes:(ke,u)=>ke.includes(u),ArrayPrototypeIndexOf:(ke,u)=>ke.indexOf(u),ArrayPrototypeJoin:(ke,u)=>ke.join(u),ArrayPrototypeMap:(ke,u)=>ke.map(u),ArrayPrototypePop:(ke,u)=>ke.pop(u),ArrayPrototypePush:(ke,u)=>ke.push(u),ArrayPrototypeSlice:(ke,u,i)=>ke.slice(u,i),Error,FunctionPrototypeCall:(ke,u,...i)=>ke.call(u,...i),FunctionPrototypeSymbolHasInstance:(ke,u)=>Function.prototype[Symbol.hasInstance].call(ke,u),MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties:(ke,u)=>Object.defineProperties(ke,u),ObjectDefineProperty:(ke,u,i)=>Object.defineProperty(ke,u,i),ObjectGetOwnPropertyDescriptor:(ke,u)=>Object.getOwnPropertyDescriptor(ke,u),ObjectKeys:ke=>Object.keys(ke),ObjectSetPrototypeOf:(ke,u)=>Object.setPrototypeOf(ke,u),Promise,PromisePrototypeCatch:(ke,u)=>ke.catch(u),PromisePrototypeThen:(ke,u,i)=>ke.then(u,i),PromiseReject:ke=>Promise.reject(ke),PromiseResolve:ke=>Promise.resolve(ke),ReflectApply:Reflect.apply,RegExpPrototypeTest:(ke,u)=>ke.test(u),SafeSet:Set,String,StringPrototypeSlice:(ke,u,i)=>ke.slice(u,i),StringPrototypeToLowerCase:ke=>ke.toLowerCase(),StringPrototypeToUpperCase:ke=>ke.toUpperCase(),StringPrototypeTrim:ke=>ke.trim(),Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet:(ke,u,i)=>ke.set(u,i),Boolean,Uint8Array}},7506:(Ct,ke,u)=>{"use strict";var i=u(7156).default;const a=u(1160),{kResistStopPropagation:c,SymbolDispose:v}=u(5354),b=globalThis.AbortSignal||u(552).AbortSignal,h=globalThis.AbortController||u(552).AbortController,g=Object.getPrototypeOf(i(function*(){})).constructor,D=globalThis.Blob||a.Blob,B=typeof D<"u"?function(z){return z instanceof D}:function(z){return!1},O=(F,z)=>{if(void 0!==F&&(null===F||"object"!=typeof F||!("aborted"in F)))throw new ERR_INVALID_ARG_TYPE(z,"AbortSignal",F)};class k extends Error{constructor(z){if(!Array.isArray(z))throw new TypeError("Expected input to be an Array, got "+typeof z);let ae="";for(let we=0;we{F=we,z=ue}),resolve:F,reject:z}},promisify:F=>new Promise((z,ae)=>{F((we,...ue)=>we?ae(we):z(...ue))}),debuglog:()=>function(){},format:(F,...z)=>F.replace(/%([sdifj])/g,function(...[ae,we]){const ue=z.shift();return"f"===we?ue.toFixed(6):"j"===we?JSON.stringify(ue):"s"===we&&"object"==typeof ue?`${ue.constructor!==Object?ue.constructor.name:""} {}`.trim():ue.toString()}),inspect(F){switch(typeof F){case"string":if(F.includes("'")){if(!F.includes('"'))return`"${F}"`;if(!F.includes("`")&&!F.includes("${"))return`\`${F}\``}return`'${F}'`;case"number":return isNaN(F)?"NaN":Object.is(F,-0)?String(F):F;case"bigint":return`${String(F)}n`;case"boolean":case"undefined":return String(F);case"object":return"{}"}},types:{isAsyncFunction:F=>F instanceof g,isArrayBufferView:F=>ArrayBuffer.isView(F)},isBlob:B,deprecate:(F,z)=>F,addAbortListener:u(9069).addAbortListener||function(z,ae){if(void 0===z)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",z);let we;return O(z,"signal"),((F,z)=>{if("function"!=typeof F)throw new ERR_INVALID_ARG_TYPE("listener","Function",F)})(ae),z.aborted?queueMicrotask(()=>ae()):(z.addEventListener("abort",ae,{__proto__:null,once:!0,[c]:!0}),we=()=>{z.removeEventListener("abort",ae)}),{__proto__:null,[v](){var ue;null===(ue=we)||void 0===ue||ue()}}},AbortSignalAny:b.any||function(z){if(1===z.length)return z[0];const ae=new h,we=()=>ae.abort();return z.forEach(ue=>{O(ue,"signals"),ue.addEventListener("abort",we,{once:!0})}),ae.signal.addEventListener("abort",()=>{z.forEach(ue=>ue.removeEventListener("abort",we))},{once:!0}),ae.signal}},Ct.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")},4253:(Ct,ke,u)=>{const{Buffer:i}=u(1160),{ObjectDefineProperty:a,ObjectKeys:c,ReflectApply:v}=u(5354),{promisify:{custom:b}}=u(7506),{streamReturningOperators:h,promiseReturningOperators:g}=u(6682),{codes:{ERR_ILLEGAL_CONSTRUCTOR:D}}=u(8599),B=u(5240),{setDefaultHighWaterMark:O,getDefaultHighWaterMark:P}=u(5807),{pipeline:k}=u(4563),{destroyer:F}=u(8584),z=u(6978),we=u(810),ue=u(8174),le=Ct.exports=u(9994).Stream;le.isDestroyed=ue.isDestroyed,le.isDisturbed=ue.isDisturbed,le.isErrored=ue.isErrored,le.isReadable=ue.isReadable,le.isWritable=ue.isWritable,le.Readable=u(9638);for(const ie of c(h)){let se=function(...Me){if(new.target)throw D();return le.Readable.from(v(he,this,Me))};const he=h[ie];a(se,"name",{__proto__:null,value:he.name}),a(se,"length",{__proto__:null,value:he.length}),a(le.Readable.prototype,ie,{__proto__:null,value:se,enumerable:!1,configurable:!0,writable:!0})}for(const ie of c(g)){let se=function(...$e){if(new.target)throw D();return v(he,this,$e)};const he=g[ie];a(se,"name",{__proto__:null,value:he.name}),a(se,"length",{__proto__:null,value:he.length}),a(le.Readable.prototype,ie,{__proto__:null,value:se,enumerable:!1,configurable:!0,writable:!0})}le.Writable=u(6355),le.Duplex=u(3147),le.Transform=u(4367),le.PassThrough=u(407),le.pipeline=k;const{addAbortSignal:ge}=u(1273);le.addAbortSignal=ge,le.finished=z,le.destroy=F,le.compose=B,le.setDefaultHighWaterMark=O,le.getDefaultHighWaterMark=P,a(le,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:()=>we}),a(k,b,{__proto__:null,enumerable:!0,get:()=>we.pipeline}),a(z,b,{__proto__:null,enumerable:!0,get:()=>we.finished}),le.Stream=le,le._isUint8Array=function(he){return he instanceof Uint8Array},le._uint8ArrayToBuffer=function(he){return i.from(he.buffer,he.byteOffset,he.byteLength)}},810:(Ct,ke,u)=>{"use strict";const{ArrayPrototypePop:i,Promise:a}=u(5354),{isIterable:c,isNodeStream:v,isWebStream:b}=u(8174),{pipelineImpl:h}=u(4563),{finished:g}=u(6978);u(4253),Ct.exports={finished:g,pipeline:function D(...B){return new a((O,P)=>{let k,F;const z=B[B.length-1];if(z&&"object"==typeof z&&!v(z)&&!c(z)&&!b(z)){const ae=i(B);k=ae.signal,F=ae.end}h(B,(ae,we)=>{ae?P(ae):O(we)},{signal:k,end:F})})}}},5736:Ct=>{var u,i,ke=Ct.exports={};function a(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}function v(z){if(u===setTimeout)return setTimeout(z,0);if((u===a||!u)&&setTimeout)return u=setTimeout,setTimeout(z,0);try{return u(z,0)}catch{try{return u.call(null,z,0)}catch{return u.call(this,z,0)}}}!function(){try{u="function"==typeof setTimeout?setTimeout:a}catch{u=a}try{i="function"==typeof clearTimeout?clearTimeout:c}catch{i=c}}();var D,h=[],g=!1,B=-1;function O(){!g||!D||(g=!1,D.length?h=D.concat(h):B=-1,h.length&&P())}function P(){if(!g){var z=v(O);g=!0;for(var ae=h.length;ae;){for(D=h,h=[];++B1)for(var we=1;we{"use strict";u.d(ke,{X:()=>c});var i=u(8929),a=u(5279);class c extends i.xQ{constructor(b){super(),this._value=b}get value(){return this.getValue()}_subscribe(b){const h=super._subscribe(b);return h&&!h.closed&&b.next(this._value),h}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new a.N;return this._value}next(b){super.next(this._value=b)}}},9312:(Ct,ke,u)=>{"use strict";u.d(ke,{P:()=>b});var i=u(8896),a=u(1086),c=u(1737);class b{constructor(g,D,B){this.kind=g,this.value=D,this.error=B,this.hasValue="N"===g}observe(g){switch(this.kind){case"N":return g.next&&g.next(this.value);case"E":return g.error&&g.error(this.error);case"C":return g.complete&&g.complete()}}do(g,D,B){switch(this.kind){case"N":return g&&g(this.value);case"E":return D&&D(this.error);case"C":return B&&B()}}accept(g,D,B){return g&&"function"==typeof g.next?this.observe(g):this.do(g,D,B)}toObservable(){switch(this.kind){case"N":return(0,a.of)(this.value);case"E":return(0,c._)(this.error);case"C":return(0,i.c)()}throw new Error("unexpected notification kind value")}static createNext(g){return typeof g<"u"?new b("N",g):b.undefinedValueNotification}static createError(g){return new b("E",void 0,g)}static createComplete(){return b.completeNotification}}b.completeNotification=new b("C"),b.undefinedValueNotification=new b("N",void 0)},6498:(Ct,ke,u)=>{"use strict";u.d(ke,{y:()=>B});var i=u(3489),c=u(7668),v=u(3292),h=u(3821),g=u(4843),D=u(2830);let B=(()=>{class P{constructor(F){this._isScalar=!1,F&&(this._subscribe=F)}lift(F){const z=new P;return z.source=this,z.operator=F,z}subscribe(F,z,ae){const{operator:we}=this,ue=function b(P,k,F){if(P){if(P instanceof i.L)return P;if(P[c.b])return P[c.b]()}return P||k||F?new i.L(P,k,F):new i.L(v.c)}(F,z,ae);if(ue.add(we?we.call(ue,this.source):this.source||D.v.useDeprecatedSynchronousErrorHandling&&!ue.syncErrorThrowable?this._subscribe(ue):this._trySubscribe(ue)),D.v.useDeprecatedSynchronousErrorHandling&&ue.syncErrorThrowable&&(ue.syncErrorThrowable=!1,ue.syncErrorThrown))throw ue.syncErrorValue;return ue}_trySubscribe(F){try{return this._subscribe(F)}catch(z){D.v.useDeprecatedSynchronousErrorHandling&&(F.syncErrorThrown=!0,F.syncErrorValue=z),function a(P){for(;P;){const{closed:k,destination:F,isStopped:z}=P;if(k||z)return!1;P=F&&F instanceof i.L?F:null}return!0}(F)?F.error(z):console.warn(z)}}forEach(F,z){return new(z=O(z))((ae,we)=>{let ue;ue=this.subscribe(le=>{try{F(le)}catch(ge){we(ge),ue&&ue.unsubscribe()}},we,ae)})}_subscribe(F){const{source:z}=this;return z&&z.subscribe(F)}[h.L](){return this}pipe(...F){return 0===F.length?this:(0,g.U)(F)(this)}toPromise(F){return new(F=O(F))((z,ae)=>{let we;this.subscribe(ue=>we=ue,ue=>ae(ue),()=>z(we))})}}return P.create=k=>new P(k),P})();function O(P){if(P||(P=D.v.Promise||Promise),!P)throw new Error("no Promise impl found");return P}},3292:(Ct,ke,u)=>{"use strict";u.d(ke,{c:()=>c});var i=u(2830),a=u(2782);const c={closed:!0,next(v){},error(v){if(i.v.useDeprecatedSynchronousErrorHandling)throw v;(0,a.z)(v)},complete(){}}},6831:(Ct,ke,u)=>{"use strict";u.d(ke,{t:()=>ue});var i=u(8929),a=u(6686),v=u(2268);const g=new class b extends v.v{}(class c extends a.o{constructor(W,ie){super(W,ie),this.scheduler=W,this.work=ie}schedule(W,ie=0){return ie>0?super.schedule(W,ie):(this.delay=ie,this.state=W,this.scheduler.flush(this),this)}execute(W,ie){return ie>0||this.closed?super.execute(W,ie):this._execute(W,ie)}requestAsyncId(W,ie,he=0){return null!==he&&he>0||null===he&&this.delay>0?super.requestAsyncId(W,ie,he):W.flush(this)}});var D=u(2654),B=u(3489),O=u(9312);class F extends B.L{constructor(W,ie,he=0){super(W),this.scheduler=ie,this.delay=he}static dispatch(W){const{notification:ie,destination:he}=W;ie.observe(he),this.unsubscribe()}scheduleMessage(W){this.destination.add(this.scheduler.schedule(F.dispatch,this.delay,new z(W,this.destination)))}_next(W){this.scheduleMessage(O.P.createNext(W))}_error(W){this.scheduleMessage(O.P.createError(W)),this.unsubscribe()}_complete(){this.scheduleMessage(O.P.createComplete()),this.unsubscribe()}}class z{constructor(W,ie){this.notification=W,this.destination=ie}}var ae=u(5279),we=u(5283);class ue extends i.xQ{constructor(W=Number.POSITIVE_INFINITY,ie=Number.POSITIVE_INFINITY,he){super(),this.scheduler=he,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=W<1?1:W,this._windowTime=ie<1?1:ie,ie===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(W){if(!this.isStopped){const ie=this._events;ie.push(W),ie.length>this._bufferSize&&ie.shift()}super.next(W)}nextTimeWindow(W){this.isStopped||(this._events.push(new le(this._getNow(),W)),this._trimBufferThenGetEvents()),super.next(W)}_subscribe(W){const ie=this._infiniteTimeWindow,he=ie?this._events:this._trimBufferThenGetEvents(),se=this.scheduler,Me=he.length;let $e;if(this.closed)throw new ae.N;if(this.isStopped||this.hasError?$e=D.w.EMPTY:(this.observers.push(W),$e=new we.W(this,W)),se&&W.add(W=new F(W,se)),ie)for(let it=0;itie&&($e=Math.max($e,Me-ie)),$e>0&&se.splice(0,$e),se}}class le{constructor(W,ie){this.time=W,this.value=ie}}},8929:(Ct,ke,u)=>{"use strict";u.d(ke,{Yc:()=>g,xQ:()=>D});var i=u(6498),a=u(3489),c=u(2654),v=u(5279),b=u(5283),h=u(7668);class g extends a.L{constructor(P){super(P),this.destination=P}}let D=(()=>{class O extends i.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[h.b](){return new g(this)}lift(k){const F=new B(this,this);return F.operator=k,F}next(k){if(this.closed)throw new v.N;if(!this.isStopped){const{observers:F}=this,z=F.length,ae=F.slice();for(let we=0;wenew B(P,k),O})();class B extends D{constructor(P,k){super(),this.destination=P,this.source=k}next(P){const{destination:k}=this;k&&k.next&&k.next(P)}error(P){const{destination:k}=this;k&&k.error&&this.destination.error(P)}complete(){const{destination:P}=this;P&&P.complete&&this.destination.complete()}_subscribe(P){const{source:k}=this;return k?this.source.subscribe(P):c.w.EMPTY}}},5283:(Ct,ke,u)=>{"use strict";u.d(ke,{W:()=>a});var i=u(2654);class a extends i.w{constructor(v,b){super(),this.subject=v,this.subscriber=b,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const v=this.subject,b=v.observers;if(this.subject=null,!b||0===b.length||v.isStopped||v.closed)return;const h=b.indexOf(this.subscriber);-1!==h&&b.splice(h,1)}}},3489:(Ct,ke,u)=>{"use strict";u.d(ke,{L:()=>g});var i=u(7043),a=u(3292),c=u(2654),v=u(7668),b=u(2830),h=u(2782);class g extends c.w{constructor(O,P,k){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a.c;break;case 1:if(!O){this.destination=a.c;break}if("object"==typeof O){O instanceof g?(this.syncErrorThrowable=O.syncErrorThrowable,this.destination=O,O.add(this)):(this.syncErrorThrowable=!0,this.destination=new D(this,O));break}default:this.syncErrorThrowable=!0,this.destination=new D(this,O,P,k)}}[v.b](){return this}static create(O,P,k){const F=new g(O,P,k);return F.syncErrorThrowable=!1,F}next(O){this.isStopped||this._next(O)}error(O){this.isStopped||(this.isStopped=!0,this._error(O))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(O){this.destination.next(O)}_error(O){this.destination.error(O),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:O}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=O,this}}class D extends g{constructor(O,P,k,F){super(),this._parentSubscriber=O;let z,ae=this;(0,i.m)(P)?z=P:P&&(z=P.next,k=P.error,F=P.complete,P!==a.c&&(ae=Object.create(P),(0,i.m)(ae.unsubscribe)&&this.add(ae.unsubscribe.bind(ae)),ae.unsubscribe=this.unsubscribe.bind(this))),this._context=ae,this._next=z,this._error=k,this._complete=F}next(O){if(!this.isStopped&&this._next){const{_parentSubscriber:P}=this;b.v.useDeprecatedSynchronousErrorHandling&&P.syncErrorThrowable?this.__tryOrSetError(P,this._next,O)&&this.unsubscribe():this.__tryOrUnsub(this._next,O)}}error(O){if(!this.isStopped){const{_parentSubscriber:P}=this,{useDeprecatedSynchronousErrorHandling:k}=b.v;if(this._error)k&&P.syncErrorThrowable?(this.__tryOrSetError(P,this._error,O),this.unsubscribe()):(this.__tryOrUnsub(this._error,O),this.unsubscribe());else if(P.syncErrorThrowable)k?(P.syncErrorValue=O,P.syncErrorThrown=!0):(0,h.z)(O),this.unsubscribe();else{if(this.unsubscribe(),k)throw O;(0,h.z)(O)}}}complete(){if(!this.isStopped){const{_parentSubscriber:O}=this;if(this._complete){const P=()=>this._complete.call(this._context);b.v.useDeprecatedSynchronousErrorHandling&&O.syncErrorThrowable?(this.__tryOrSetError(O,P),this.unsubscribe()):(this.__tryOrUnsub(P),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(O,P){try{O.call(this._context,P)}catch(k){if(this.unsubscribe(),b.v.useDeprecatedSynchronousErrorHandling)throw k;(0,h.z)(k)}}__tryOrSetError(O,P,k){if(!b.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{P.call(this._context,k)}catch(F){return b.v.useDeprecatedSynchronousErrorHandling?(O.syncErrorValue=F,O.syncErrorThrown=!0,!0):((0,h.z)(F),!0)}return!1}_unsubscribe(){const{_parentSubscriber:O}=this;this._context=null,this._parentSubscriber=null,O.unsubscribe()}}},2654:(Ct,ke,u)=>{"use strict";u.d(ke,{w:()=>h});var i=u(6688),a=u(7830),c=u(7043);const b=(()=>{function D(B){return Error.call(this),this.message=B?`${B.length} errors occurred during unsubscription:\n${B.map((O,P)=>`${P+1}) ${O.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=B,this}return D.prototype=Object.create(Error.prototype),D})();class h{constructor(B){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,B&&(this._ctorUnsubscribe=!0,this._unsubscribe=B)}unsubscribe(){let B;if(this.closed)return;let{_parentOrParents:O,_ctorUnsubscribe:P,_unsubscribe:k,_subscriptions:F}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,O instanceof h)O.remove(this);else if(null!==O)for(let z=0;zB.concat(O instanceof b?O.errors:O),[])}h.EMPTY=((D=new h).closed=!0,D)},2830:(Ct,ke,u)=>{"use strict";u.d(ke,{v:()=>a});let i=!1;const a={Promise:void 0,set useDeprecatedSynchronousErrorHandling(c){if(c){const v=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+v.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=c},get useDeprecatedSynchronousErrorHandling(){return i}}},1177:(Ct,ke,u)=>{"use strict";u.d(ke,{Ds:()=>h,IY:()=>v,ft:()=>D});var i=u(3489),a=u(6498),c=u(9249);class v extends i.L{constructor(O){super(),this.parent=O}_next(O){this.parent.notifyNext(O)}_error(O){this.parent.notifyError(O),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class h extends i.L{notifyNext(O){this.destination.next(O)}notifyError(O){this.destination.error(O)}notifyComplete(){this.destination.complete()}}function D(B,O){if(O.closed)return;if(B instanceof a.y)return B.subscribe(O);let P;try{P=(0,c.s)(B)(O)}catch(k){O.error(k)}return P}},1762:(Ct,ke,u)=>{"use strict";u.d(ke,{N:()=>h,c:()=>b});var i=u(8929),a=u(6498),c=u(2654),v=u(4327);class b extends a.y{constructor(P,k){super(),this.source=P,this.subjectFactory=k,this._refCount=0,this._isComplete=!1}_subscribe(P){return this.getSubject().subscribe(P)}getSubject(){const P=this._subject;return(!P||P.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let P=this._connection;return P||(this._isComplete=!1,P=this._connection=new c.w,P.add(this.source.subscribe(new g(this.getSubject(),this))),P.closed&&(this._connection=null,P=c.w.EMPTY)),P}refCount(){return(0,v.x)()(this)}}const h=(()=>{const O=b.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:O._subscribe},_isComplete:{value:O._isComplete,writable:!0},getSubject:{value:O.getSubject},connect:{value:O.connect},refCount:{value:O.refCount}}})();class g extends i.Yc{constructor(P,k){super(P),this.connectable=k}_error(P){this._unsubscribe(),super._error(P)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const P=this.connectable;if(P){this.connectable=null;const k=P._connection;P._refCount=0,P._subject=null,P._connection=null,k&&k.unsubscribe()}}}},3426:(Ct,ke,u)=>{"use strict";u.d(ke,{aj:()=>P});var i=u(2866),a=u(6688),c=u(3489);class v extends c.L{notifyNext(ae,we,ue,le,ge){this.destination.next(we)}notifyError(ae,we){this.destination.error(ae)}notifyComplete(ae){this.destination.complete()}}class b extends c.L{constructor(ae,we,ue){super(),this.parent=ae,this.outerValue=we,this.outerIndex=ue,this.index=0}_next(ae){this.parent.notifyNext(this.outerValue,ae,this.outerIndex,this.index++,this)}_error(ae){this.parent.notifyError(ae,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var h=u(9249),g=u(6498);function D(z,ae,we,ue,le=new b(z,we,ue)){if(!le.closed)return ae instanceof g.y?ae.subscribe(le):(0,h.s)(ae)(le)}var B=u(3009);const O={};function P(...z){let ae,we;return(0,i.K)(z[z.length-1])&&(we=z.pop()),"function"==typeof z[z.length-1]&&(ae=z.pop()),1===z.length&&(0,a.k)(z[0])&&(z=z[0]),(0,B.n)(z,we).lift(new k(ae))}class k{constructor(ae){this.resultSelector=ae}call(ae,we){return we.subscribe(new F(ae,this.resultSelector))}}class F extends v{constructor(ae,we){super(ae),this.resultSelector=we,this.active=0,this.values=[],this.observables=[]}_next(ae){this.values.push(O),this.observables.push(ae)}_complete(){const ae=this.observables,we=ae.length;if(0===we)this.destination.complete();else{this.active=we,this.toRespond=we;for(let ue=0;ue{"use strict";u.d(ke,{z:()=>v});var i=u(1086),a=u(9146);function v(...b){return function c(){return(0,a.J)(1)}()((0,i.of)(...b))}},8514:(Ct,ke,u)=>{"use strict";u.d(ke,{P:()=>v});var i=u(6498),a=u(5254),c=u(8896);function v(b){return new i.y(h=>{let g;try{g=b()}catch(B){return void h.error(B)}return(g?(0,a.D)(g):(0,c.c)()).subscribe(h)})}},8896:(Ct,ke,u)=>{"use strict";u.d(ke,{E:()=>a,c:()=>c});var i=u(6498);const a=new i.y(b=>b.complete());function c(b){return b?function v(b){return new i.y(h=>b.schedule(()=>h.complete()))}(b):a}},567:(Ct,ke,u)=>{"use strict";u.d(ke,{D:()=>h});var i=u(6498),a=u(6688),c=u(4850),v=u(7830),b=u(5254);function h(...D){if(1===D.length){const B=D[0];if((0,a.k)(B))return g(B,null);if((0,v.K)(B)&&Object.getPrototypeOf(B)===Object.prototype){const O=Object.keys(B);return g(O.map(P=>B[P]),O)}}if("function"==typeof D[D.length-1]){const B=D.pop();return g(D=1===D.length&&(0,a.k)(D[0])?D[0]:D,null).pipe((0,c.U)(O=>B(...O)))}return g(D,null)}function g(D,B){return new i.y(O=>{const P=D.length;if(0===P)return void O.complete();const k=new Array(P);let F=0,z=0;for(let ae=0;ae{ue||(ue=!0,z++),k[ae]=le},error:le=>O.error(le),complete:()=>{F++,(F===P||!ue)&&(z===P&&O.next(B?B.reduce((le,ge,W)=>(le[ge]=k[W],le),{}):k),O.complete())}}))}})}},5254:(Ct,ke,u)=>{"use strict";u.d(ke,{D:()=>ae});var i=u(6498),a=u(9249),c=u(2654),v=u(3821),g=u(6454),D=u(5430),P=u(8955),k=u(8515);function ae(we,ue){return ue?function z(we,ue){if(null!=we){if(function O(we){return we&&"function"==typeof we[v.L]}(we))return function b(we,ue){return new i.y(le=>{const ge=new c.w;return ge.add(ue.schedule(()=>{const W=we[v.L]();ge.add(W.subscribe({next(ie){ge.add(ue.schedule(()=>le.next(ie)))},error(ie){ge.add(ue.schedule(()=>le.error(ie)))},complete(){ge.add(ue.schedule(()=>le.complete()))}}))})),ge})}(we,ue);if((0,P.t)(we))return function h(we,ue){return new i.y(le=>{const ge=new c.w;return ge.add(ue.schedule(()=>we.then(W=>{ge.add(ue.schedule(()=>{le.next(W),ge.add(ue.schedule(()=>le.complete()))}))},W=>{ge.add(ue.schedule(()=>le.error(W)))}))),ge})}(we,ue);if((0,k.z)(we))return(0,g.r)(we,ue);if(function F(we){return we&&"function"==typeof we[D.hZ]}(we)||"string"==typeof we)return function B(we,ue){if(!we)throw new Error("Iterable cannot be null");return new i.y(le=>{const ge=new c.w;let W;return ge.add(()=>{W&&"function"==typeof W.return&&W.return()}),ge.add(ue.schedule(()=>{W=we[D.hZ](),ge.add(ue.schedule(function(){if(le.closed)return;let ie,he;try{const se=W.next();ie=se.value,he=se.done}catch(se){return void le.error(se)}he?le.complete():(le.next(ie),this.schedule())}))})),ge})}(we,ue)}throw new TypeError((null!==we&&typeof we||we)+" is not observable")}(we,ue):we instanceof i.y?we:new i.y((0,a.s)(we))}},3009:(Ct,ke,u)=>{"use strict";u.d(ke,{n:()=>v});var i=u(6498),a=u(3650),c=u(6454);function v(b,h){return h?(0,c.r)(b,h):new i.y((0,a.V)(b))}},3753:(Ct,ke,u)=>{"use strict";u.d(ke,{R:()=>h});var i=u(6498),a=u(6688),c=u(7043),v=u(4850);function h(P,k,F,z){return(0,c.m)(F)&&(z=F,F=void 0),z?h(P,k,F).pipe((0,v.U)(ae=>(0,a.k)(ae)?z(...ae):z(ae))):new i.y(ae=>{g(P,k,function we(ue){ae.next(arguments.length>1?Array.prototype.slice.call(arguments):ue)},ae,F)})}function g(P,k,F,z,ae){let we;if(function O(P){return P&&"function"==typeof P.addEventListener&&"function"==typeof P.removeEventListener}(P)){const ue=P;P.addEventListener(k,F,ae),we=()=>ue.removeEventListener(k,F,ae)}else if(function B(P){return P&&"function"==typeof P.on&&"function"==typeof P.off}(P)){const ue=P;P.on(k,F),we=()=>ue.off(k,F)}else if(function D(P){return P&&"function"==typeof P.addListener&&"function"==typeof P.removeListener}(P)){const ue=P;P.addListener(k,F),we=()=>ue.removeListener(k,F)}else{if(!P||!P.length)throw new TypeError("Invalid event target");for(let ue=0,le=P.length;ue{"use strict";u.d(ke,{T:()=>b});var i=u(6498),a=u(2866),c=u(9146),v=u(3009);function b(...h){let g=Number.POSITIVE_INFINITY,D=null,B=h[h.length-1];return(0,a.K)(B)?(D=h.pop(),h.length>1&&"number"==typeof h[h.length-1]&&(g=h.pop())):"number"==typeof B&&(g=h.pop()),null===D&&1===h.length&&h[0]instanceof i.y?h[0]:(0,c.J)(g)((0,v.n)(h,D))}},1086:(Ct,ke,u)=>{"use strict";u.d(ke,{of:()=>v});var i=u(2866),a=u(3009),c=u(6454);function v(...b){let h=b[b.length-1];return(0,i.K)(h)?(b.pop(),(0,c.r)(b,h)):(0,a.n)(b)}},1737:(Ct,ke,u)=>{"use strict";u.d(ke,{_:()=>a});var i=u(6498);function a(v,b){return new i.y(b?h=>b.schedule(c,0,{error:v,subscriber:h}):h=>h.error(v))}function c({error:v,subscriber:b}){b.error(v)}},7739:(Ct,ke,u)=>{"use strict";u.d(ke,{H:()=>h});var i=u(6498),a=u(353),c=u(6688);function v(D){return!(0,c.k)(D)&&D-parseFloat(D)+1>=0}var b=u(2866);function h(D=0,B,O){let P=-1;return v(B)?P=Number(B)<1?1:Number(B):(0,b.K)(B)&&(O=B),(0,b.K)(O)||(O=a.P),new i.y(k=>{const F=v(D)?D:+D-O.now();return O.schedule(g,F,{index:0,period:P,subscriber:k})})}function g(D){const{index:B,period:O,subscriber:P}=D;if(P.next(B),!P.closed){if(-1===O)return P.complete();D.index=B+1,this.schedule(D,O)}}},7221:(Ct,ke,u)=>{"use strict";u.d(ke,{K:()=>a});var i=u(1177);function a(b){return function(g){const D=new c(b),B=g.lift(D);return D.caught=B}}class c{constructor(h){this.selector=h}call(h,g){return g.subscribe(new v(h,this.selector,this.caught))}}class v extends i.Ds{constructor(h,g,D){super(h),this.selector=g,this.caught=D}error(h){if(!this.isStopped){let g;try{g=this.selector(h,this.caught)}catch(O){return void super.error(O)}this._unsubscribeAndRecycle();const D=new i.IY(this);this.add(D);const B=(0,i.ft)(g,D);B!==D&&this.add(B)}}}},1406:(Ct,ke,u)=>{"use strict";u.d(ke,{b:()=>a});var i=u(1709);function a(c,v){return(0,i.zg)(c,v,1)}},13:(Ct,ke,u)=>{"use strict";u.d(ke,{b:()=>c});var i=u(3489),a=u(353);function c(g,D=a.P){return B=>B.lift(new v(g,D))}class v{constructor(D,B){this.dueTime=D,this.scheduler=B}call(D,B){return B.subscribe(new b(D,this.dueTime,this.scheduler))}}class b extends i.L{constructor(D,B,O){super(D),this.dueTime=B,this.scheduler=O,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(D){this.clearDebounce(),this.lastValue=D,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(h,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:D}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(D)}}clearDebounce(){const D=this.debouncedSubscription;null!==D&&(this.remove(D),D.unsubscribe(),this.debouncedSubscription=null)}}function h(g){g.debouncedNext()}},5778:(Ct,ke,u)=>{"use strict";u.d(ke,{x:()=>a});var i=u(3489);function a(b,h){return g=>g.lift(new c(b,h))}class c{constructor(h,g){this.compare=h,this.keySelector=g}call(h,g){return g.subscribe(new v(h,this.compare,this.keySelector))}}class v extends i.L{constructor(h,g,D){super(h),this.keySelector=D,this.hasKey=!1,"function"==typeof g&&(this.compare=g)}compare(h,g){return h===g}_next(h){let g;try{const{keySelector:B}=this;g=B?B(h):h}catch(B){return this.destination.error(B)}let D=!1;if(this.hasKey)try{const{compare:B}=this;D=B(this.key,g)}catch(B){return this.destination.error(B)}else this.hasKey=!0;D||(this.key=g,this.destination.next(h))}}},2198:(Ct,ke,u)=>{"use strict";u.d(ke,{h:()=>a});var i=u(3489);function a(b,h){return function(D){return D.lift(new c(b,h))}}class c{constructor(h,g){this.predicate=h,this.thisArg=g}call(h,g){return g.subscribe(new v(h,this.predicate,this.thisArg))}}class v extends i.L{constructor(h,g,D){super(h),this.predicate=g,this.thisArg=D,this.count=0}_next(h){let g;try{g=this.predicate.call(this.thisArg,h,this.count++)}catch(D){return void this.destination.error(D)}g&&this.destination.next(h)}}},537:(Ct,ke,u)=>{"use strict";u.d(ke,{x:()=>c});var i=u(3489),a=u(2654);function c(h){return g=>g.lift(new v(h))}class v{constructor(g){this.callback=g}call(g,D){return D.subscribe(new b(g,this.callback))}}class b extends i.L{constructor(g,D){super(g),this.add(new a.w(D))}}},4850:(Ct,ke,u)=>{"use strict";u.d(ke,{U:()=>a});var i=u(3489);function a(b,h){return function(D){if("function"!=typeof b)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return D.lift(new c(b,h))}}class c{constructor(h,g){this.project=h,this.thisArg=g}call(h,g){return g.subscribe(new v(h,this.project,this.thisArg))}}class v extends i.L{constructor(h,g,D){super(h),this.project=g,this.count=0,this.thisArg=D||this}_next(h){let g;try{g=this.project.call(this.thisArg,h,this.count++)}catch(D){return void this.destination.error(D)}this.destination.next(g)}}},7604:(Ct,ke,u)=>{"use strict";u.d(ke,{h:()=>a});var i=u(3489);function a(b){return h=>h.lift(new c(b))}class c{constructor(h){this.value=h}call(h,g){return g.subscribe(new v(h,this.value))}}class v extends i.L{constructor(h,g){super(h),this.value=g}_next(h){this.destination.next(this.value)}}},9146:(Ct,ke,u)=>{"use strict";u.d(ke,{J:()=>c});var i=u(1709),a=u(5379);function c(v=Number.POSITIVE_INFINITY){return(0,i.zg)(a.y,v)}},1709:(Ct,ke,u)=>{"use strict";u.d(ke,{zg:()=>v});var i=u(4850),a=u(5254),c=u(1177);function v(D,B,O=Number.POSITIVE_INFINITY){return"function"==typeof B?P=>P.pipe(v((k,F)=>(0,a.D)(D(k,F)).pipe((0,i.U)((z,ae)=>B(k,z,F,ae))),O)):("number"==typeof B&&(O=B),P=>P.lift(new b(D,O)))}class b{constructor(B,O=Number.POSITIVE_INFINITY){this.project=B,this.concurrent=O}call(B,O){return O.subscribe(new h(B,this.project,this.concurrent))}}class h extends c.Ds{constructor(B,O,P=Number.POSITIVE_INFINITY){super(B),this.project=O,this.concurrent=P,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(B){this.active0?this._next(B.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},4327:(Ct,ke,u)=>{"use strict";u.d(ke,{x:()=>a});var i=u(3489);function a(){return function(h){return h.lift(new c(h))}}class c{constructor(h){this.connectable=h}call(h,g){const{connectable:D}=this;D._refCount++;const B=new v(h,D),O=g.subscribe(B);return B.closed||(B.connection=D.connect()),O}}class v extends i.L{constructor(h,g){super(h),this.connectable=g}_unsubscribe(){const{connectable:h}=this;if(!h)return void(this.connection=null);this.connectable=null;const g=h._refCount;if(g<=0)return void(this.connection=null);if(h._refCount=g-1,g>1)return void(this.connection=null);const{connection:D}=this,B=h._connection;this.connection=null,B&&(!D||B===D)&&B.unsubscribe()}}},2474:(Ct,ke,u)=>{"use strict";u.d(ke,{B:()=>g});var i=u(1762);class c{constructor(B,O){this.subjectFactory=B,this.selector=O}call(B,O){const{selector:P}=this,k=this.subjectFactory(),F=P(k).subscribe(B);return F.add(O.subscribe(k)),F}}var v=u(4327),b=u(8929);function h(){return new b.xQ}function g(){return D=>(0,v.x)()(function a(D,B){return function(P){let k;if(k="function"==typeof D?D:function(){return D},"function"==typeof B)return P.lift(new c(k,B));const F=Object.create(P,i.N);return F.source=P,F.subjectFactory=k,F}}(h)(D))}},5154:(Ct,ke,u)=>{"use strict";u.d(ke,{d:()=>a});var i=u(6831);function a(v,b,h){let g;return g=v&&"object"==typeof v?v:{bufferSize:v,windowTime:b,refCount:!1,scheduler:h},D=>D.lift(function c({bufferSize:v=Number.POSITIVE_INFINITY,windowTime:b=Number.POSITIVE_INFINITY,refCount:h,scheduler:g}){let D,O,B=0,P=!1,k=!1;return function(z){let ae;B++,!D||P?(P=!1,D=new i.t(v,b,g),ae=D.subscribe(this),O=z.subscribe({next(we){D.next(we)},error(we){P=!0,D.error(we)},complete(){k=!0,O=void 0,D.complete()}}),k&&(O=void 0)):ae=D.subscribe(this),this.add(()=>{B--,ae.unsubscribe(),ae=void 0,O&&!k&&h&&0===B&&(O.unsubscribe(),O=void 0,D=void 0)})}}(g))}},1307:(Ct,ke,u)=>{"use strict";u.d(ke,{T:()=>a});var i=u(3489);function a(b){return h=>h.lift(new c(b))}class c{constructor(h){this.total=h}call(h,g){return g.subscribe(new v(h,this.total))}}class v extends i.L{constructor(h,g){super(h),this.total=g,this.count=0}_next(h){++this.count>this.total&&this.destination.next(h)}}},1059:(Ct,ke,u)=>{"use strict";u.d(ke,{O:()=>c});var i=u(1221),a=u(2866);function c(...v){const b=v[v.length-1];return(0,a.K)(b)?(v.pop(),h=>(0,i.z)(v,h,b)):h=>(0,i.z)(v,h)}},7545:(Ct,ke,u)=>{"use strict";u.d(ke,{w:()=>v});var i=u(4850),a=u(5254),c=u(1177);function v(g,D){return"function"==typeof D?B=>B.pipe(v((O,P)=>(0,a.D)(g(O,P)).pipe((0,i.U)((k,F)=>D(O,k,P,F))))):B=>B.lift(new b(g))}class b{constructor(D){this.project=D}call(D,B){return B.subscribe(new h(D,this.project))}}class h extends c.Ds{constructor(D,B){super(D),this.project=B,this.index=0}_next(D){let B;const O=this.index++;try{B=this.project(D,O)}catch(P){return void this.destination.error(P)}this._innerSub(B)}_innerSub(D){const B=this.innerSubscription;B&&B.unsubscribe();const O=new c.IY(this),P=this.destination;P.add(O),this.innerSubscription=(0,c.ft)(D,O),this.innerSubscription!==O&&P.add(this.innerSubscription)}_complete(){const{innerSubscription:D}=this;(!D||D.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(D){this.destination.next(D)}}},2986:(Ct,ke,u)=>{"use strict";u.d(ke,{q:()=>v});var i=u(3489),a=u(4231),c=u(8896);function v(g){return D=>0===g?(0,c.c)():D.lift(new b(g))}class b{constructor(D){if(this.total=D,this.total<0)throw new a.W}call(D,B){return B.subscribe(new h(D,this.total))}}class h extends i.L{constructor(D,B){super(D),this.total=B,this.count=0}_next(D){const B=this.total,O=++this.count;O<=B&&(this.destination.next(D),O===B&&(this.destination.complete(),this.unsubscribe()))}}},7625:(Ct,ke,u)=>{"use strict";u.d(ke,{R:()=>a});var i=u(1177);function a(b){return h=>h.lift(new c(b))}class c{constructor(h){this.notifier=h}call(h,g){const D=new v(h),B=(0,i.ft)(this.notifier,new i.IY(D));return B&&!D.seenValue?(D.add(B),g.subscribe(D)):D}}class v extends i.Ds{constructor(h){super(h),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},4290:(Ct,ke,u)=>{"use strict";u.d(ke,{o:()=>a});var i=u(3489);function a(b,h=!1){return g=>g.lift(new c(b,h))}class c{constructor(h,g){this.predicate=h,this.inclusive=g}call(h,g){return g.subscribe(new v(h,this.predicate,this.inclusive))}}class v extends i.L{constructor(h,g,D){super(h),this.predicate=g,this.inclusive=D,this.index=0}_next(h){const g=this.destination;let D;try{D=this.predicate(h,this.index++)}catch(B){return void g.error(B)}this.nextOrComplete(h,D)}nextOrComplete(h,g){const D=this.destination;Boolean(g)?D.next(h):(this.inclusive&&D.next(h),D.complete())}}},2868:(Ct,ke,u)=>{"use strict";u.d(ke,{b:()=>v});var i=u(3489);function a(){}var c=u(7043);function v(g,D,B){return function(P){return P.lift(new b(g,D,B))}}class b{constructor(D,B,O){this.nextOrObserver=D,this.error=B,this.complete=O}call(D,B){return B.subscribe(new h(D,this.nextOrObserver,this.error,this.complete))}}class h extends i.L{constructor(D,B,O,P){super(D),this._tapNext=a,this._tapError=a,this._tapComplete=a,this._tapError=O||a,this._tapComplete=P||a,(0,c.m)(B)?(this._context=this,this._tapNext=B):B&&(this._context=B,this._tapNext=B.next||a,this._tapError=B.error||a,this._tapComplete=B.complete||a)}_next(D){try{this._tapNext.call(this._context,D)}catch(B){return void this.destination.error(B)}this.destination.next(D)}_error(D){try{this._tapError.call(this._context,D)}catch(B){return void this.destination.error(B)}this.destination.error(D)}_complete(){try{this._tapComplete.call(this._context)}catch(D){return void this.destination.error(D)}return this.destination.complete()}}},6454:(Ct,ke,u)=>{"use strict";u.d(ke,{r:()=>c});var i=u(6498),a=u(2654);function c(v,b){return new i.y(h=>{const g=new a.w;let D=0;return g.add(b.schedule(function(){D!==v.length?(h.next(v[D++]),h.closed||g.add(this.schedule())):h.complete()})),g})}},6686:(Ct,ke,u)=>{"use strict";u.d(ke,{o:()=>c});var i=u(2654);class a extends i.w{constructor(b,h){super()}schedule(b,h=0){return this}}class c extends a{constructor(b,h){super(b,h),this.scheduler=b,this.work=h,this.pending=!1}schedule(b,h=0){if(this.closed)return this;this.state=b;const g=this.id,D=this.scheduler;return null!=g&&(this.id=this.recycleAsyncId(D,g,h)),this.pending=!0,this.delay=h,this.id=this.id||this.requestAsyncId(D,this.id,h),this}requestAsyncId(b,h,g=0){return setInterval(b.flush.bind(b,this),g)}recycleAsyncId(b,h,g=0){if(null!==g&&this.delay===g&&!1===this.pending)return h;clearInterval(h)}execute(b,h){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const g=this._execute(b,h);if(g)return g;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(b,h){let D,g=!1;try{this.work(b)}catch(B){g=!0,D=!!B&&B||new Error(B)}if(g)return this.unsubscribe(),D}_unsubscribe(){const b=this.id,h=this.scheduler,g=h.actions,D=g.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==D&&g.splice(D,1),null!=b&&(this.id=this.recycleAsyncId(h,b,null)),this.delay=null}}},2268:(Ct,ke,u)=>{"use strict";u.d(ke,{v:()=>a});let i=(()=>{class c{constructor(b,h=c.now){this.SchedulerAction=b,this.now=h}schedule(b,h=0,g){return new this.SchedulerAction(this,b).schedule(g,h)}}return c.now=()=>Date.now(),c})();class a extends i{constructor(v,b=i.now){super(v,()=>a.delegate&&a.delegate!==this?a.delegate.now():b()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(v,b=0,h){return a.delegate&&a.delegate!==this?a.delegate.schedule(v,b,h):super.schedule(v,b,h)}flush(v){const{actions:b}=this;if(this.active)return void b.push(v);let h;this.active=!0;do{if(h=v.execute(v.state,v.delay))break}while(v=b.shift());if(this.active=!1,h){for(;v=b.shift();)v.unsubscribe();throw h}}}},8139:(Ct,ke,u)=>{"use strict";u.d(ke,{E:()=>P});let i=1;const a=Promise.resolve(),c={};function v(F){return F in c&&(delete c[F],!0)}const b={setImmediate(F){const z=i++;return c[z]=!0,a.then(()=>v(z)&&F()),z},clearImmediate(F){v(F)}};var g=u(6686),B=u(2268);const P=new class O extends B.v{flush(z){this.active=!0,this.scheduled=void 0;const{actions:ae}=this;let we,ue=-1,le=ae.length;z=z||ae.shift();do{if(we=z.execute(z.state,z.delay))break}while(++ue0?super.requestAsyncId(z,ae,we):(z.actions.push(this),z.scheduled||(z.scheduled=b.setImmediate(z.flush.bind(z,null))))}recycleAsyncId(z,ae,we=0){if(null!==we&&we>0||null===we&&this.delay>0)return super.recycleAsyncId(z,ae,we);0===z.actions.length&&(b.clearImmediate(ae),z.scheduled=void 0)}})},353:(Ct,ke,u)=>{"use strict";u.d(ke,{P:()=>v});var i=u(6686);const v=new(u(2268).v)(i.o)},5430:(Ct,ke,u)=>{"use strict";u.d(ke,{hZ:()=>a});const a=function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(Ct,ke,u)=>{"use strict";u.d(ke,{L:()=>i});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(Ct,ke,u)=>{"use strict";u.d(ke,{b:()=>i});const i="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(Ct,ke,u)=>{"use strict";u.d(ke,{W:()=>a});const a=(()=>{function c(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return c.prototype=Object.create(Error.prototype),c})()},5279:(Ct,ke,u)=>{"use strict";u.d(ke,{N:()=>a});const a=(()=>{function c(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return c.prototype=Object.create(Error.prototype),c})()},2782:(Ct,ke,u)=>{"use strict";function i(a){setTimeout(()=>{throw a},0)}u.d(ke,{z:()=>i})},5379:(Ct,ke,u)=>{"use strict";function i(a){return a}u.d(ke,{y:()=>i})},6688:(Ct,ke,u)=>{"use strict";u.d(ke,{k:()=>i});const i=Array.isArray||(a=>a&&"number"==typeof a.length)},8515:(Ct,ke,u)=>{"use strict";u.d(ke,{z:()=>i});const i=a=>a&&"number"==typeof a.length&&"function"!=typeof a},7043:(Ct,ke,u)=>{"use strict";function i(a){return"function"==typeof a}u.d(ke,{m:()=>i})},7830:(Ct,ke,u)=>{"use strict";function i(a){return null!==a&&"object"==typeof a}u.d(ke,{K:()=>i})},8955:(Ct,ke,u)=>{"use strict";function i(a){return!!a&&"function"!=typeof a.subscribe&&"function"==typeof a.then}u.d(ke,{t:()=>i})},2866:(Ct,ke,u)=>{"use strict";function i(a){return a&&"function"==typeof a.schedule}u.d(ke,{K:()=>i})},4843:(Ct,ke,u)=>{"use strict";u.d(ke,{U:()=>c,z:()=>a});var i=u(5379);function a(...v){return c(v)}function c(v){return 0===v.length?i.y:1===v.length?v[0]:function(h){return v.reduce((g,D)=>D(g),h)}}},9249:(Ct,ke,u)=>{"use strict";u.d(ke,{s:()=>P});var i=u(3650),a=u(2782),v=u(5430),h=u(3821),D=u(8515),B=u(8955),O=u(7830);const P=k=>{if(k&&"function"==typeof k[h.L])return(k=>F=>{const z=k[h.L]();if("function"!=typeof z.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return z.subscribe(F)})(k);if((0,D.z)(k))return(0,i.V)(k);if((0,B.t)(k))return(k=>F=>(k.then(z=>{F.closed||(F.next(z),F.complete())},z=>F.error(z)).then(null,a.z),F))(k);if(k&&"function"==typeof k[v.hZ])return(k=>F=>{const z=k[v.hZ]();for(;;){let ae;try{ae=z.next()}catch(we){return F.error(we),F}if(ae.done){F.complete();break}if(F.next(ae.value),F.closed)break}return"function"==typeof z.return&&F.add(()=>{z.return&&z.return()}),F})(k);{const z=`You provided ${(0,O.K)(k)?"an invalid object":`'${k}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(z)}}},3650:(Ct,ke,u)=>{"use strict";u.d(ke,{V:()=>i});const i=a=>c=>{for(let v=0,b=a.length;v{"use strict";var i=u(858).Buffer,a=i.isEncoding||function(le){switch((le=""+le)&&le.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function b(le){var ge;switch(this.encoding=function v(le){var ge=function c(le){if(!le)return"utf8";for(var ge;;)switch(le){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return le;default:if(ge)return;le=(""+le).toLowerCase(),ge=!0}}(le);if("string"!=typeof ge&&(i.isEncoding===a||!a(le)))throw new Error("Unknown encoding: "+le);return ge||le}(le),this.encoding){case"utf16le":this.text=k,this.end=F,ge=4;break;case"utf8":this.fillLast=B,ge=4;break;case"base64":this.text=z,this.end=ae,ge=3;break;default:return this.write=we,void(this.end=ue)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(ge)}function h(le){return le<=127?0:le>>5==6?2:le>>4==14?3:le>>3==30?4:le>>6==2?-1:-2}function B(le){var ge=this.lastTotal-this.lastNeed,W=function D(le,ge,W){if(128!=(192&ge[0]))return le.lastNeed=0,"\ufffd";if(le.lastNeed>1&&ge.length>1){if(128!=(192&ge[1]))return le.lastNeed=1,"\ufffd";if(le.lastNeed>2&&ge.length>2&&128!=(192&ge[2]))return le.lastNeed=2,"\ufffd"}}(this,le);return void 0!==W?W:this.lastNeed<=le.length?(le.copy(this.lastChar,ge,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(le.copy(this.lastChar,ge,0,le.length),void(this.lastNeed-=le.length))}function k(le,ge){if((le.length-ge)%2==0){var W=le.toString("utf16le",ge);if(W){var ie=W.charCodeAt(W.length-1);if(ie>=55296&&ie<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=le[le.length-2],this.lastChar[1]=le[le.length-1],W.slice(0,-1)}return W}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=le[le.length-1],le.toString("utf16le",ge,le.length-1)}function F(le){var ge=le&&le.length?this.write(le):"";return this.lastNeed?ge+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):ge}function z(le,ge){var W=(le.length-ge)%3;return 0===W?le.toString("base64",ge):(this.lastNeed=3-W,this.lastTotal=3,1===W?this.lastChar[0]=le[le.length-1]:(this.lastChar[0]=le[le.length-2],this.lastChar[1]=le[le.length-1]),le.toString("base64",ge,le.length-W))}function ae(le){var ge=le&&le.length?this.write(le):"";return this.lastNeed?ge+this.lastChar.toString("base64",0,3-this.lastNeed):ge}function we(le){return le.toString(this.encoding)}function ue(le){return le&&le.length?this.write(le):""}ke.StringDecoder=b,b.prototype.write=function(le){if(0===le.length)return"";var ge,W;if(this.lastNeed){if(void 0===(ge=this.fillLast(le)))return"";W=this.lastNeed,this.lastNeed=0}else W=0;return W=0?(he>0&&(le.lastNeed=he-1),he):--ie=0?(he>0&&(le.lastNeed=he-2),he):--ie=0?(he>0&&(2===he?he=0:le.lastNeed=he-3),he):0}(this,le,ge);if(!this.lastNeed)return le.toString("utf8",ge);this.lastTotal=W;var ie=le.length-(W-this.lastNeed);return le.copy(this.lastChar,0,ie),le.toString("utf8",ge,ie)},b.prototype.fillLast=function(le){if(this.lastNeed<=le.length)return le.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);le.copy(this.lastChar,this.lastTotal-this.lastNeed,0,le.length),this.lastNeed-=le.length}},858:(Ct,ke,u)=>{var i=u(3172),a=i.Buffer;function c(b,h){for(var g in b)h[g]=b[g]}function v(b,h,g){return a(b,h,g)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?Ct.exports=i:(c(i,ke),ke.Buffer=v),v.prototype=Object.create(a.prototype),c(a,v),v.from=function(b,h,g){if("number"==typeof b)throw new TypeError("Argument must not be a number");return a(b,h,g)},v.alloc=function(b,h,g){if("number"!=typeof b)throw new TypeError("Argument must be a number");var D=a(b);return void 0!==h?"string"==typeof g?D.fill(h,g):D.fill(h):D.fill(0),D},v.allocUnsafe=function(b){if("number"!=typeof b)throw new TypeError("Argument must be a number");return a(b)},v.allocUnsafeSlow=function(b){if("number"!=typeof b)throw new TypeError("Argument must be a number");return i.SlowBuffer(b)}},4642:(Ct,ke,u)=>{var i=u(9805);function a(c){var v,b;function g(B,O){try{var P=c[B](O),k=P.value,F=k instanceof i;Promise.resolve(F?k.wrapped:k).then(function(z){F?g("return"===B?"return":"next",z):D(P.done?"return":"normal",z)},function(z){g("throw",z)})}catch(z){D("throw",z)}}function D(B,O){switch(B){case"return":v.resolve({value:O,done:!0});break;case"throw":v.reject(O);break;default:v.resolve({value:O,done:!1})}(v=v.next)?g(v.key,v.arg):b=null}this._invoke=function h(B,O){return new Promise(function(P,k){var F={key:B,arg:O,resolve:P,reject:k,next:null};b?b=b.next=F:(v=b=F,g(B,O))})},"function"!=typeof c.return&&(this.return=void 0)}a.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},a.prototype.next=function(c){return this._invoke("next",c)},a.prototype.throw=function(c){return this._invoke("throw",c)},a.prototype.return=function(c){return this._invoke("return",c)},Ct.exports=a,Ct.exports.__esModule=!0,Ct.exports.default=Ct.exports},9805:Ct=>{Ct.exports=function ke(u){this.wrapped=u},Ct.exports.__esModule=!0,Ct.exports.default=Ct.exports},8131:Ct=>{Ct.exports=function ke(u,i){var a={},c=!1;function v(b,h){return c=!0,h=new Promise(function(g){g(u[b](h))}),{done:!1,value:i(h)}}return a[typeof Symbol<"u"&&Symbol.iterator||"@@iterator"]=function(){return this},a.next=function(b){return c?(c=!1,b):v("next",b)},"function"==typeof u.throw&&(a.throw=function(b){if(c)throw c=!1,b;return v("throw",b)}),"function"==typeof u.return&&(a.return=function(b){return c?(c=!1,b):v("return",b)}),a},Ct.exports.__esModule=!0,Ct.exports.default=Ct.exports},8237:Ct=>{function u(i){function a(c){if(Object(c)!==c)return Promise.reject(new TypeError(c+" is not an object."));var v=c.done;return Promise.resolve(c.value).then(function(b){return{value:b,done:v}})}return(u=function(v){this.s=v,this.n=v.next}).prototype={s:null,n:null,next:function(){return a(this.n.apply(this.s,arguments))},return:function(v){var b=this.s.return;return void 0===b?Promise.resolve({value:v,done:!0}):a(b.apply(this.s,arguments))},throw:function(v){var b=this.s.return;return void 0===b?Promise.reject(v):a(b.apply(this.s,arguments))}},new u(i)}Ct.exports=function ke(i){var a,c,v,b=2;for(typeof Symbol<"u"&&(c=Symbol.asyncIterator,v=Symbol.iterator);b--;){if(c&&null!=(a=i[c]))return a.call(i);if(v&&null!=(a=i[v]))return new u(a.call(i));c="@@asyncIterator",v="@@iterator"}throw new TypeError("Object is not async iterable")},Ct.exports.__esModule=!0,Ct.exports.default=Ct.exports},7156:Ct=>{function ke(i,a,c,v,b,h,g){try{var D=i[h](g),B=D.value}catch(O){return void c(O)}D.done?a(B):Promise.resolve(B).then(v,b)}Ct.exports=function u(i){return function(){var a=this,c=arguments;return new Promise(function(v,b){var h=i.apply(a,c);function g(B){ke(h,v,b,g,D,"next",B)}function D(B){ke(h,v,b,g,D,"throw",B)}g(void 0)})}},Ct.exports.__esModule=!0,Ct.exports.default=Ct.exports},6737:(Ct,ke,u)=>{var i=u(9805);Ct.exports=function a(c){return new i(c)},Ct.exports.__esModule=!0,Ct.exports.default=Ct.exports},8186:(Ct,ke,u)=>{var i=u(4642);Ct.exports=function a(c){return function(){return new i(c.apply(this,arguments))}},Ct.exports.__esModule=!0,Ct.exports.default=Ct.exports},7340:(Ct,ke,u)=>{"use strict";u.d(ke,{EY:()=>we,F4:()=>O,IO:()=>ae,LC:()=>a,SB:()=>B,X$:()=>v,ZE:()=>ge,ZN:()=>le,_j:()=>i,eR:()=>P,jt:()=>b,k1:()=>W,l3:()=>c,oB:()=>D,pV:()=>F,ru:()=>h,vP:()=>g});class i{}class a{}const c="*";function v(ie,he){return{type:7,name:ie,definitions:he,options:{}}}function b(ie,he=null){return{type:4,styles:he,timings:ie}}function h(ie,he=null){return{type:3,steps:ie,options:he}}function g(ie,he=null){return{type:2,steps:ie,options:he}}function D(ie){return{type:6,styles:ie,offset:null}}function B(ie,he,se){return{type:0,name:ie,styles:he,options:se}}function O(ie){return{type:5,steps:ie}}function P(ie,he,se=null){return{type:1,expr:ie,animation:he,options:se}}function F(ie=null){return{type:9,options:ie}}function ae(ie,he,se=null){return{type:11,selector:ie,animation:he,options:se}}function we(ie,he){return{type:12,timings:ie,animation:he}}function ue(ie){Promise.resolve(null).then(ie)}class le{constructor(he=0,se=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=he+se}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(he=>he()),this._onDoneFns=[])}onStart(he){this._originalOnStartFns.push(he),this._onStartFns.push(he)}onDone(he){this._originalOnDoneFns.push(he),this._onDoneFns.push(he)}onDestroy(he){this._onDestroyFns.push(he)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){ue(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(he=>he()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(he=>he()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(he){this._position=this.totalTime?he*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(he){const se="start"==he?this._onStartFns:this._onDoneFns;se.forEach(Me=>Me()),se.length=0}}class ge{constructor(he){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=he;let se=0,Me=0,$e=0;const it=this.players.length;0==it?ue(()=>this._onFinish()):this.players.forEach(Ke=>{Ke.onDone(()=>{++se==it&&this._onFinish()}),Ke.onDestroy(()=>{++Me==it&&this._onDestroy()}),Ke.onStart(()=>{++$e==it&&this._onStart()})}),this.totalTime=this.players.reduce((Ke,tt)=>Math.max(Ke,tt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(he=>he()),this._onDoneFns=[])}init(){this.players.forEach(he=>he.init())}onStart(he){this._onStartFns.push(he)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(he=>he()),this._onStartFns=[])}onDone(he){this._onDoneFns.push(he)}onDestroy(he){this._onDestroyFns.push(he)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(he=>he.play())}pause(){this.players.forEach(he=>he.pause())}restart(){this.players.forEach(he=>he.restart())}finish(){this._onFinish(),this.players.forEach(he=>he.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(he=>he.destroy()),this._onDestroyFns.forEach(he=>he()),this._onDestroyFns=[])}reset(){this.players.forEach(he=>he.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(he){const se=he*this.totalTime;this.players.forEach(Me=>{const $e=Me.totalTime?Math.min(1,se/Me.totalTime):1;Me.setPosition($e)})}getPosition(){const he=this.players.reduce((se,Me)=>null===se||Me.totalTime>se.totalTime?Me:se,null);return null!=he?he.getPosition():0}beforeDestroy(){this.players.forEach(he=>{he.beforeDestroy&&he.beforeDestroy()})}triggerCallback(he){const se="start"==he?this._onStartFns:this._onDoneFns;se.forEach(Me=>Me()),se.length=0}}const W="!"},2687:(Ct,ke,u)=>{"use strict";u.d(ke,{$s:()=>tt,Em:()=>ft,Kd:()=>ve,X6:()=>x,ic:()=>Dt,qV:()=>nt,qm:()=>Fe,rt:()=>ot,s1:()=>yt,tE:()=>ht,yG:()=>p});var i=u(6895),a=u(4650),c=u(3353),v=u(8929),b=u(2654),h=u(591),g=u(1086),D=u(9521),B=u(2868),O=u(13),P=u(2198),k=u(4850),F=u(2986),z=u(1307),ae=u(5778),we=u(7625),ue=u(1281),le=u(9643),ge=u(2289);function se(ce,Ue){return(ce.getAttribute(Ue)||"").match(/\S+/g)||[]}const $e="cdk-describedby-message",it="cdk-describedby-host";let Ke=0,tt=(()=>{class ce{constructor(Ce,Ye){this._platform=Ye,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Ke++,this._document=Ce,this._id=(0,a.f3M)(a.AFp)+"-"+Ke++}describe(Ce,Ye,Pe){if(!this._canBeDescribed(Ce,Ye))return;const wt=me(Ye,Pe);"string"!=typeof Ye?(Xe(Ye,this._id),this._messageRegistry.set(wt,{messageElement:Ye,referenceCount:0})):this._messageRegistry.has(wt)||this._createMessageElement(Ye,Pe),this._isElementDescribedByMessage(Ce,wt)||this._addMessageReference(Ce,wt)}removeDescription(Ce,Ye,Pe){if(!Ye||!this._isElementNode(Ce))return;const wt=me(Ye,Pe);if(this._isElementDescribedByMessage(Ce,wt)&&this._removeMessageReference(Ce,wt),"string"==typeof Ye){const st=this._messageRegistry.get(wt);st&&0===st.referenceCount&&this._deleteMessageElement(wt)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const Ce=this._document.querySelectorAll(`[${it}="${this._id}"]`);for(let Ye=0;Ye0!=Pe.indexOf($e));Ce.setAttribute("aria-describedby",Ye.join(" "))}_addMessageReference(Ce,Ye){const Pe=this._messageRegistry.get(Ye);(function ie(ce,Ue,Ce){const Ye=se(ce,Ue);Ye.some(Pe=>Pe.trim()==Ce.trim())||(Ye.push(Ce.trim()),ce.setAttribute(Ue,Ye.join(" ")))})(Ce,"aria-describedby",Pe.messageElement.id),Ce.setAttribute(it,this._id),Pe.referenceCount++}_removeMessageReference(Ce,Ye){const Pe=this._messageRegistry.get(Ye);Pe.referenceCount--,function he(ce,Ue,Ce){const Pe=se(ce,Ue).filter(wt=>wt!=Ce.trim());Pe.length?ce.setAttribute(Ue,Pe.join(" ")):ce.removeAttribute(Ue)}(Ce,"aria-describedby",Pe.messageElement.id),Ce.removeAttribute(it)}_isElementDescribedByMessage(Ce,Ye){const Pe=se(Ce,"aria-describedby"),wt=this._messageRegistry.get(Ye),st=wt&&wt.messageElement.id;return!!st&&-1!=Pe.indexOf(st)}_canBeDescribed(Ce,Ye){if(!this._isElementNode(Ce))return!1;if(Ye&&"object"==typeof Ye)return!0;const Pe=null==Ye?"":`${Ye}`.trim(),wt=Ce.getAttribute("aria-label");return!(!Pe||wt&&wt.trim()===Pe)}_isElementNode(Ce){return Ce.nodeType===this._document.ELEMENT_NODE}}return ce.\u0275fac=function(Ce){return new(Ce||ce)(a.LFG(i.K0),a.LFG(c.t4))},ce.\u0275prov=a.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})();function me(ce,Ue){return"string"==typeof ce?`${Ue||""}/${ce}`:ce}function Xe(ce,Ue){ce.id||(ce.id=`${$e}-${Ue}-${Ke++}`)}class Ae{constructor(Ue){this._items=Ue,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new v.xQ,this._typeaheadSubscription=b.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=Ce=>Ce.disabled,this._pressedLetters=[],this.tabOut=new v.xQ,this.change=new v.xQ,Ue instanceof a.n_E&&Ue.changes.subscribe(Ce=>{if(this._activeItem){const Pe=Ce.toArray().indexOf(this._activeItem);Pe>-1&&Pe!==this._activeItemIndex&&(this._activeItemIndex=Pe)}})}skipPredicate(Ue){return this._skipPredicateFn=Ue,this}withWrap(Ue=!0){return this._wrap=Ue,this}withVerticalOrientation(Ue=!0){return this._vertical=Ue,this}withHorizontalOrientation(Ue){return this._horizontal=Ue,this}withAllowedModifierKeys(Ue){return this._allowedModifierKeys=Ue,this}withTypeAhead(Ue=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,B.b)(Ce=>this._pressedLetters.push(Ce)),(0,O.b)(Ue),(0,P.h)(()=>this._pressedLetters.length>0),(0,k.U)(()=>this._pressedLetters.join(""))).subscribe(Ce=>{const Ye=this._getItemsArray();for(let Pe=1;Pe!Ue[wt]||this._allowedModifierKeys.indexOf(wt)>-1);switch(Ce){case D.Mf:return void this.tabOut.next();case D.JH:if(this._vertical&&Pe){this.setNextItemActive();break}return;case D.LH:if(this._vertical&&Pe){this.setPreviousItemActive();break}return;case D.SV:if(this._horizontal&&Pe){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case D.oh:if(this._horizontal&&Pe){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case D.Sd:if(this._homeAndEnd&&Pe){this.setFirstItemActive();break}return;case D.uR:if(this._homeAndEnd&&Pe){this.setLastItemActive();break}return;default:return void((Pe||(0,D.Vb)(Ue,"shiftKey"))&&(Ue.key&&1===Ue.key.length?this._letterKeyStream.next(Ue.key.toLocaleUpperCase()):(Ce>=D.A&&Ce<=D.Z||Ce>=D.xE&&Ce<=D.aO)&&this._letterKeyStream.next(String.fromCharCode(Ce))))}this._pressedLetters=[],Ue.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(Ue){const Ce=this._getItemsArray(),Ye="number"==typeof Ue?Ue:Ce.indexOf(Ue);this._activeItem=Ce[Ye]??null,this._activeItemIndex=Ye}_setActiveItemByDelta(Ue){this._wrap?this._setActiveInWrapMode(Ue):this._setActiveInDefaultMode(Ue)}_setActiveInWrapMode(Ue){const Ce=this._getItemsArray();for(let Ye=1;Ye<=Ce.length;Ye++){const Pe=(this._activeItemIndex+Ue*Ye+Ce.length)%Ce.length;if(!this._skipPredicateFn(Ce[Pe]))return void this.setActiveItem(Pe)}}_setActiveInDefaultMode(Ue){this._setActiveItemByIndex(this._activeItemIndex+Ue,Ue)}_setActiveItemByIndex(Ue,Ce){const Ye=this._getItemsArray();if(Ye[Ue]){for(;this._skipPredicateFn(Ye[Ue]);)if(!Ye[Ue+=Ce])return;this.setActiveItem(Ue)}}_getItemsArray(){return this._items instanceof a.n_E?this._items.toArray():this._items}}class yt extends Ae{setActiveItem(Ue){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(Ue),this.activeItem&&this.activeItem.setActiveStyles()}}class ft extends Ae{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Ue){return this._origin=Ue,this}setActiveItem(Ue){super.setActiveItem(Ue),this.activeItem&&this.activeItem.focus(this._origin)}}let Dt=(()=>{class ce{constructor(Ce){this._platform=Ce}isDisabled(Ce){return Ce.hasAttribute("disabled")}isVisible(Ce){return function V(ce){return!!(ce.offsetWidth||ce.offsetHeight||"function"==typeof ce.getClientRects&&ce.getClientRects().length)}(Ce)&&"visible"===getComputedStyle(Ce).visibility}isTabbable(Ce){if(!this._platform.isBrowser)return!1;const Ye=function jt(ce){try{return ce.frameElement}catch{return null}}(function Be(ce){return ce.ownerDocument&&ce.ownerDocument.defaultView||window}(Ce));if(Ye&&(-1===et(Ye)||!this.isVisible(Ye)))return!1;let Pe=Ce.nodeName.toLowerCase(),wt=et(Ce);return Ce.hasAttribute("contenteditable")?-1!==wt:!("iframe"===Pe||"object"===Pe||this._platform.WEBKIT&&this._platform.IOS&&!function Mt(ce){let Ue=ce.nodeName.toLowerCase(),Ce="input"===Ue&&ce.type;return"text"===Ce||"password"===Ce||"select"===Ue||"textarea"===Ue}(Ce))&&("audio"===Pe?!!Ce.hasAttribute("controls")&&-1!==wt:"video"===Pe?-1!==wt&&(null!==wt||this._platform.FIREFOX||Ce.hasAttribute("controls")):Ce.tabIndex>=0)}isFocusable(Ce,Ye){return function _t(ce){return!function oe(ce){return function Oe(ce){return"input"==ce.nodeName.toLowerCase()}(ce)&&"hidden"==ce.type}(ce)&&(function Ee(ce){let Ue=ce.nodeName.toLowerCase();return"input"===Ue||"select"===Ue||"button"===Ue||"textarea"===Ue}(ce)||function _e(ce){return function lt(ce){return"a"==ce.nodeName.toLowerCase()}(ce)&&ce.hasAttribute("href")}(ce)||ce.hasAttribute("contenteditable")||be(ce))}(Ce)&&!this.isDisabled(Ce)&&(Ye?.ignoreVisibility||this.isVisible(Ce))}}return ce.\u0275fac=function(Ce){return new(Ce||ce)(a.LFG(c.t4))},ce.\u0275prov=a.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})();function be(ce){if(!ce.hasAttribute("tabindex")||void 0===ce.tabIndex)return!1;let Ue=ce.getAttribute("tabindex");return!(!Ue||isNaN(parseInt(Ue,10)))}function et(ce){if(!be(ce))return null;const Ue=parseInt(ce.getAttribute("tabindex")||"",10);return isNaN(Ue)?-1:Ue}class at{constructor(Ue,Ce,Ye,Pe,wt=!1){this._element=Ue,this._checker=Ce,this._ngZone=Ye,this._document=Pe,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,wt||this.attachAnchors()}get enabled(){return this._enabled}set enabled(Ue){this._enabled=Ue,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ue,this._startAnchor),this._toggleAnchorTabIndex(Ue,this._endAnchor))}destroy(){const Ue=this._startAnchor,Ce=this._endAnchor;Ue&&(Ue.removeEventListener("focus",this.startAnchorListener),Ue.remove()),Ce&&(Ce.removeEventListener("focus",this.endAnchorListener),Ce.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(Ue){return new Promise(Ce=>{this._executeOnStable(()=>Ce(this.focusInitialElement(Ue)))})}focusFirstTabbableElementWhenReady(Ue){return new Promise(Ce=>{this._executeOnStable(()=>Ce(this.focusFirstTabbableElement(Ue)))})}focusLastTabbableElementWhenReady(Ue){return new Promise(Ce=>{this._executeOnStable(()=>Ce(this.focusLastTabbableElement(Ue)))})}_getRegionBoundary(Ue){const Ce=this._element.querySelectorAll(`[cdk-focus-region-${Ue}], [cdkFocusRegion${Ue}], [cdk-focus-${Ue}]`);return"start"==Ue?Ce.length?Ce[0]:this._getFirstTabbableElement(this._element):Ce.length?Ce[Ce.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Ue){const Ce=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(Ce){if(!this._checker.isFocusable(Ce)){const Ye=this._getFirstTabbableElement(Ce);return Ye?.focus(Ue),!!Ye}return Ce.focus(Ue),!0}return this.focusFirstTabbableElement(Ue)}focusFirstTabbableElement(Ue){const Ce=this._getRegionBoundary("start");return Ce&&Ce.focus(Ue),!!Ce}focusLastTabbableElement(Ue){const Ce=this._getRegionBoundary("end");return Ce&&Ce.focus(Ue),!!Ce}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Ue){if(this._checker.isFocusable(Ue)&&this._checker.isTabbable(Ue))return Ue;const Ce=Ue.children;for(let Ye=0;Ye=0;Ye--){const Pe=Ce[Ye].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Ce[Ye]):null;if(Pe)return Pe}return null}_createAnchor(){const Ue=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Ue),Ue.classList.add("cdk-visually-hidden"),Ue.classList.add("cdk-focus-trap-anchor"),Ue.setAttribute("aria-hidden","true"),Ue}_toggleAnchorTabIndex(Ue,Ce){Ue?Ce.setAttribute("tabindex","0"):Ce.removeAttribute("tabindex")}toggleAnchors(Ue){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ue,this._startAnchor),this._toggleAnchorTabIndex(Ue,this._endAnchor))}_executeOnStable(Ue){this._ngZone.isStable?Ue():this._ngZone.onStable.pipe((0,F.q)(1)).subscribe(Ue)}}let nt=(()=>{class ce{constructor(Ce,Ye,Pe){this._checker=Ce,this._ngZone=Ye,this._document=Pe}create(Ce,Ye=!1){return new at(Ce,this._checker,this._ngZone,this._document,Ye)}}return ce.\u0275fac=function(Ce){return new(Ce||ce)(a.LFG(Dt),a.LFG(a.R0b),a.LFG(i.K0))},ce.\u0275prov=a.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})();function x(ce){return 0===ce.buttons||0===ce.offsetX&&0===ce.offsetY}function p(ce){const Ue=ce.touches&&ce.touches[0]||ce.changedTouches&&ce.changedTouches[0];return!(!Ue||-1!==Ue.identifier||null!=Ue.radiusX&&1!==Ue.radiusX||null!=Ue.radiusY&&1!==Ue.radiusY)}const m=new a.OlP("cdk-input-modality-detector-options"),j={ignoreKeys:[D.zL,D.jx,D.b2,D.MW,D.JU]},X=(0,c.i$)({passive:!0,capture:!0});let H=(()=>{class ce{constructor(Ce,Ye,Pe,wt){this._platform=Ce,this._mostRecentTarget=null,this._modality=new h.X(null),this._lastTouchMs=0,this._onKeydown=st=>{this._options?.ignoreKeys?.some(ut=>ut===st.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,c.sA)(st))},this._onMousedown=st=>{Date.now()-this._lastTouchMs<650||(this._modality.next(x(st)?"keyboard":"mouse"),this._mostRecentTarget=(0,c.sA)(st))},this._onTouchstart=st=>{p(st)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,c.sA)(st))},this._options={...j,...wt},this.modalityDetected=this._modality.pipe((0,z.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,ae.x)()),Ce.isBrowser&&Ye.runOutsideAngular(()=>{Pe.addEventListener("keydown",this._onKeydown,X),Pe.addEventListener("mousedown",this._onMousedown,X),Pe.addEventListener("touchstart",this._onTouchstart,X)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,X),document.removeEventListener("mousedown",this._onMousedown,X),document.removeEventListener("touchstart",this._onTouchstart,X))}}return ce.\u0275fac=function(Ce){return new(Ce||ce)(a.LFG(c.t4),a.LFG(a.R0b),a.LFG(i.K0),a.LFG(m,8))},ce.\u0275prov=a.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})();const f=new a.OlP("liveAnnouncerElement",{providedIn:"root",factory:function _(){return null}}),T=new a.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let ve=(()=>{class ce{constructor(Ce,Ye,Pe,wt){this._ngZone=Ye,this._defaultOptions=wt,this._document=Pe,this._liveElement=Ce||this._createLiveElement()}announce(Ce,...Ye){const Pe=this._defaultOptions;let wt,st;return 1===Ye.length&&"number"==typeof Ye[0]?st=Ye[0]:[wt,st]=Ye,this.clear(),clearTimeout(this._previousTimeout),wt||(wt=Pe&&Pe.politeness?Pe.politeness:"polite"),null==st&&Pe&&(st=Pe.duration),this._liveElement.setAttribute("aria-live",wt),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(ut=>this._currentResolve=ut)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=Ce,"number"==typeof st&&(this._previousTimeout=setTimeout(()=>this.clear(),st)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const Ce="cdk-live-announcer-element",Ye=this._document.getElementsByClassName(Ce),Pe=this._document.createElement("div");for(let wt=0;wt{class ce{constructor(Ce,Ye,Pe,wt,st){this._ngZone=Ce,this._platform=Ye,this._inputModalityDetector=Pe,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new v.xQ,this._rootNodeFocusAndBlurListener=ut=>{for(let an=(0,c.sA)(ut);an;an=an.parentElement)"focus"===ut.type?this._onFocus(ut,an):this._onBlur(ut,an)},this._document=wt,this._detectionMode=st?.detectionMode||0}monitor(Ce,Ye=!1){const Pe=(0,ue.fI)(Ce);if(!this._platform.isBrowser||1!==Pe.nodeType)return(0,g.of)(null);const wt=(0,c.kV)(Pe)||this._getDocument(),st=this._elementInfo.get(Pe);if(st)return Ye&&(st.checkChildren=!0),st.subject;const ut={checkChildren:Ye,subject:new v.xQ,rootNode:wt};return this._elementInfo.set(Pe,ut),this._registerGlobalListeners(ut),ut.subject}stopMonitoring(Ce){const Ye=(0,ue.fI)(Ce),Pe=this._elementInfo.get(Ye);Pe&&(Pe.subject.complete(),this._setClasses(Ye),this._elementInfo.delete(Ye),this._removeGlobalListeners(Pe))}focusVia(Ce,Ye,Pe){const wt=(0,ue.fI)(Ce);wt===this._getDocument().activeElement?this._getClosestElementsInfo(wt).forEach(([ut,Ht])=>this._originChanged(ut,Ye,Ht)):(this._setOrigin(Ye),"function"==typeof wt.focus&&wt.focus(Pe))}ngOnDestroy(){this._elementInfo.forEach((Ce,Ye)=>this.stopMonitoring(Ye))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(Ce){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Ce)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:Ce&&this._isLastInteractionFromInputLabel(Ce)?"mouse":"program"}_shouldBeAttributedToTouch(Ce){return 1===this._detectionMode||!!Ce?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(Ce,Ye){Ce.classList.toggle("cdk-focused",!!Ye),Ce.classList.toggle("cdk-touch-focused","touch"===Ye),Ce.classList.toggle("cdk-keyboard-focused","keyboard"===Ye),Ce.classList.toggle("cdk-mouse-focused","mouse"===Ye),Ce.classList.toggle("cdk-program-focused","program"===Ye)}_setOrigin(Ce,Ye=!1){this._ngZone.runOutsideAngular(()=>{this._origin=Ce,this._originFromTouchInteraction="touch"===Ce&&Ye,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(Ce,Ye){const Pe=this._elementInfo.get(Ye),wt=(0,c.sA)(Ce);!Pe||!Pe.checkChildren&&Ye!==wt||this._originChanged(Ye,this._getFocusOrigin(wt),Pe)}_onBlur(Ce,Ye){const Pe=this._elementInfo.get(Ye);!Pe||Pe.checkChildren&&Ce.relatedTarget instanceof Node&&Ye.contains(Ce.relatedTarget)||(this._setClasses(Ye),this._emitOrigin(Pe,null))}_emitOrigin(Ce,Ye){Ce.subject.observers.length&&this._ngZone.run(()=>Ce.subject.next(Ye))}_registerGlobalListeners(Ce){if(!this._platform.isBrowser)return;const Ye=Ce.rootNode,Pe=this._rootNodeFocusListenerCount.get(Ye)||0;Pe||this._ngZone.runOutsideAngular(()=>{Ye.addEventListener("focus",this._rootNodeFocusAndBlurListener,St),Ye.addEventListener("blur",this._rootNodeFocusAndBlurListener,St)}),this._rootNodeFocusListenerCount.set(Ye,Pe+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,we.R)(this._stopInputModalityDetector)).subscribe(wt=>{this._setOrigin(wt,!0)}))}_removeGlobalListeners(Ce){const Ye=Ce.rootNode;if(this._rootNodeFocusListenerCount.has(Ye)){const Pe=this._rootNodeFocusListenerCount.get(Ye);Pe>1?this._rootNodeFocusListenerCount.set(Ye,Pe-1):(Ye.removeEventListener("focus",this._rootNodeFocusAndBlurListener,St),Ye.removeEventListener("blur",this._rootNodeFocusAndBlurListener,St),this._rootNodeFocusListenerCount.delete(Ye))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(Ce,Ye,Pe){this._setClasses(Ce,Ye),this._emitOrigin(Pe,Ye),this._lastFocusOrigin=Ye}_getClosestElementsInfo(Ce){const Ye=[];return this._elementInfo.forEach((Pe,wt)=>{(wt===Ce||Pe.checkChildren&&wt.contains(Ce))&&Ye.push([wt,Pe])}),Ye}_isLastInteractionFromInputLabel(Ce){const{_mostRecentTarget:Ye,mostRecentModality:Pe}=this._inputModalityDetector;if("mouse"!==Pe||!Ye||Ye===Ce||"INPUT"!==Ce.nodeName&&"TEXTAREA"!==Ce.nodeName||Ce.disabled)return!1;const wt=Ce.labels;if(wt)for(let st=0;st{class ce{constructor(Ce,Ye){this._platform=Ce,this._document=Ye,this._breakpointSubscription=(0,a.f3M)(ge.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const Ce=this._document.createElement("div");Ce.style.backgroundColor="rgb(1,2,3)",Ce.style.position="absolute",this._document.body.appendChild(Ce);const Ye=this._document.defaultView||window,Pe=Ye&&Ye.getComputedStyle?Ye.getComputedStyle(Ce):null,wt=(Pe&&Pe.backgroundColor||"").replace(/ /g,"");switch(Ce.remove(),wt){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const Ce=this._document.body.classList;Ce.remove(xe,ye,qe),this._hasCheckedHighContrastMode=!0;const Ye=this.getHighContrastMode();1===Ye?Ce.add(xe,ye):2===Ye&&Ce.add(xe,qe)}}}return ce.\u0275fac=function(Ce){return new(Ce||ce)(a.LFG(c.t4),a.LFG(i.K0))},ce.\u0275prov=a.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})(),ot=(()=>{class ce{constructor(Ce){Ce._applyBodyHighContrastModeCssClasses()}}return ce.\u0275fac=function(Ce){return new(Ce||ce)(a.LFG(Fe))},ce.\u0275mod=a.oAB({type:ce}),ce.\u0275inj=a.cJS({imports:[le.Q8]}),ce})()},445:(Ct,ke,u)=>{"use strict";u.d(ke,{Is:()=>g,vT:()=>B});var i=u(4650),a=u(6895);const c=new i.OlP("cdk-dir-doc",{providedIn:"root",factory:function v(){return(0,i.f3M)(a.K0)}}),b=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let g=(()=>{class O{constructor(k){if(this.value="ltr",this.change=new i.vpe,k){const z=k.documentElement?k.documentElement.dir:null;this.value=function h(O){const P=O?.toLowerCase()||"";return"auto"===P&&typeof navigator<"u"&&navigator?.language?b.test(navigator.language)?"rtl":"ltr":"rtl"===P?"rtl":"ltr"}((k.body?k.body.dir:null)||z||"ltr")}}ngOnDestroy(){this.change.complete()}}return O.\u0275fac=function(k){return new(k||O)(i.LFG(c,8))},O.\u0275prov=i.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})(),B=(()=>{class O{}return O.\u0275fac=function(k){return new(k||O)},O.\u0275mod=i.oAB({type:O}),O.\u0275inj=i.cJS({}),O})()},4425:(Ct,ke,u)=>{"use strict";u.d(ke,{Iq:()=>g,TU:()=>v,i3:()=>h});var i=u(6895),a=u(4650);class c{constructor(B,O){this._document=O;const P=this._textarea=this._document.createElement("textarea"),k=P.style;k.position="fixed",k.top=k.opacity="0",k.left="-999em",P.setAttribute("aria-hidden","true"),P.value=B,P.readOnly=!0,this._document.body.appendChild(P)}copy(){const B=this._textarea;let O=!1;try{if(B){const P=this._document.activeElement;B.select(),B.setSelectionRange(0,B.value.length),O=this._document.execCommand("copy"),P&&P.focus()}}catch{}return O}destroy(){const B=this._textarea;B&&(B.remove(),this._textarea=void 0)}}let v=(()=>{class D{constructor(O){this._document=O}copy(O){const P=this.beginCopy(O),k=P.copy();return P.destroy(),k}beginCopy(O){return new c(O,this._document)}}return D.\u0275fac=function(O){return new(O||D)(a.LFG(i.K0))},D.\u0275prov=a.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})();const b=new a.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let h=(()=>{class D{constructor(O,P,k){this._clipboard=O,this._ngZone=P,this.text="",this.attempts=1,this.copied=new a.vpe,this._pending=new Set,k&&null!=k.attempts&&(this.attempts=k.attempts)}copy(O=this.attempts){if(O>1){let P=O;const k=this._clipboard.beginCopy(this.text);this._pending.add(k);const F=()=>{const z=k.copy();z||!--P||this._destroyed?(this._currentTimeout=null,this._pending.delete(k),k.destroy(),this.copied.emit(z)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(F,1))};F()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(O=>O.destroy()),this._pending.clear(),this._destroyed=!0}}return D.\u0275fac=function(O){return new(O||D)(a.Y36(v),a.Y36(a.R0b),a.Y36(b,8))},D.\u0275dir=a.lG2({type:D,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(O,P){1&O&&a.NdJ("click",function(){return P.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),D})(),g=(()=>{class D{}return D.\u0275fac=function(O){return new(O||D)},D.\u0275mod=a.oAB({type:D}),D.\u0275inj=a.cJS({}),D})()},1281:(Ct,ke,u)=>{"use strict";u.d(ke,{Eq:()=>b,HM:()=>h,Ig:()=>a,fI:()=>g,su:()=>c,t6:()=>v});var i=u(4650);function a(B){return null!=B&&"false"!=`${B}`}function c(B,O=0){return v(B)?Number(B):O}function v(B){return!isNaN(parseFloat(B))&&!isNaN(Number(B))}function b(B){return Array.isArray(B)?B:[B]}function h(B){return null==B?"":"string"==typeof B?B:`${B}px`}function g(B){return B instanceof i.SBq?B.nativeElement:B}},5017:(Ct,ke,u)=>{"use strict";u.d(ke,{A8:()=>O,Ov:()=>D,Z9:()=>v,eX:()=>g,k:()=>P,o2:()=>c,yy:()=>h});var i=u(8929),a=u(4650);class c{}function v(k){return k&&"function"==typeof k.connect}class h{applyChanges(F,z,ae,we,ue){F.forEachOperation((le,ge,W)=>{let ie,he;if(null==le.previousIndex){const se=ae(le,ge,W);ie=z.createEmbeddedView(se.templateRef,se.context,se.index),he=1}else null==W?(z.remove(ge),he=3):(ie=z.get(ge),z.move(ie,W),he=2);ue&&ue({context:ie?.context,operation:he,record:le})})}detach(){}}class g{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(F,z,ae,we,ue){F.forEachOperation((le,ge,W)=>{let ie,he;null==le.previousIndex?(ie=this._insertView(()=>ae(le,ge,W),W,z,we(le)),he=ie?1:0):null==W?(this._detachAndCacheView(ge,z),he=3):(ie=this._moveView(ge,W,z,we(le)),he=2),ue&&ue({context:ie?.context,operation:he,record:le})})}detach(){for(const F of this._viewCache)F.destroy();this._viewCache=[]}_insertView(F,z,ae,we){const ue=this._insertViewFromCache(z,ae);if(ue)return void(ue.context.$implicit=we);const le=F();return ae.createEmbeddedView(le.templateRef,le.context,le.index)}_detachAndCacheView(F,z){const ae=z.detach(F);this._maybeCacheView(ae,z)}_moveView(F,z,ae,we){const ue=ae.get(F);return ae.move(ue,z),ue.context.$implicit=we,ue}_maybeCacheView(F,z){if(this._viewCache.lengththis._markSelected(ue)):this._markSelected(z[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...F){this._verifyValueAssignment(F),F.forEach(ae=>this._markSelected(ae));const z=this._hasQueuedChanges();return this._emitChangeEvent(),z}deselect(...F){this._verifyValueAssignment(F),F.forEach(ae=>this._unmarkSelected(ae));const z=this._hasQueuedChanges();return this._emitChangeEvent(),z}setSelection(...F){this._verifyValueAssignment(F);const z=this.selected,ae=new Set(F);F.forEach(ue=>this._markSelected(ue)),z.filter(ue=>!ae.has(ue)).forEach(ue=>this._unmarkSelected(ue));const we=this._hasQueuedChanges();return this._emitChangeEvent(),we}toggle(F){return this.isSelected(F)?this.deselect(F):this.select(F)}clear(F=!0){this._unmarkAll();const z=this._hasQueuedChanges();return F&&this._emitChangeEvent(),z}isSelected(F){if(this.compareWith){for(const z of this._selection)if(this.compareWith(z,F))return!0;return!1}return this._selection.has(F)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(F){this._multiple&&this.selected&&this._selected.sort(F)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(F){this.isSelected(F)||(this._multiple||this._unmarkAll(),this.isSelected(F)||this._selection.add(F),this._emitChanges&&this._selectedToEmit.push(F))}_unmarkSelected(F){this.isSelected(F)&&(this._selection.delete(F),this._emitChanges&&this._deselectedToEmit.push(F))}_unmarkAll(){this.isEmpty()||this._selection.forEach(F=>this._unmarkSelected(F))}_verifyValueAssignment(F){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let O=(()=>{class k{constructor(){this._listeners=[]}notify(z,ae){for(let we of this._listeners)we(z,ae)}listen(z){return this._listeners.push(z),()=>{this._listeners=this._listeners.filter(ae=>z!==ae)}}ngOnDestroy(){this._listeners=[]}}return k.\u0275fac=function(z){return new(z||k)},k.\u0275prov=a.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})();const P=new a.OlP("_ViewRepeater")},9521:(Ct,ke,u)=>{"use strict";u.d(ke,{A:()=>oe,JH:()=>W,JU:()=>h,K5:()=>b,Ku:()=>F,LH:()=>le,L_:()=>k,MW:()=>T,Mf:()=>c,SV:()=>ge,Sd:()=>we,VM:()=>z,Vb:()=>Pi,Z:()=>_,ZH:()=>a,aO:()=>Yt,b2:()=>Ln,hY:()=>P,jx:()=>g,oh:()=>ue,uR:()=>ae,xE:()=>$e,yY:()=>Me,zL:()=>D});const a=8,c=9,b=13,h=16,g=17,D=18,P=27,k=32,F=33,z=34,ae=35,we=36,ue=37,le=38,ge=39,W=40,Me=46,$e=48,Yt=57,oe=65,_=90,T=91,Ln=224;function Pi(Xn,...Ci){return Ci.length?Ci.some(zi=>Xn[zi]):Xn.altKey||Xn.shiftKey||Xn.ctrlKey||Xn.metaKey}},2289:(Ct,ke,u)=>{"use strict";u.d(ke,{Yg:()=>W,u3:()=>he,xu:()=>z});var i=u(4650),a=u(1281),c=u(8929),v=u(3426),b=u(1221),h=u(6498),g=u(2986),D=u(1307),B=u(13),O=u(4850),P=u(1059),k=u(7625),F=u(3353);let z=(()=>{class se{}return se.\u0275fac=function($e){return new($e||se)},se.\u0275mod=i.oAB({type:se}),se.\u0275inj=i.cJS({}),se})();const ae=new Set;let we,ue=(()=>{class se{constructor($e){this._platform=$e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ge}matchMedia($e){return(this._platform.WEBKIT||this._platform.BLINK)&&function le(se){if(!ae.has(se))try{we||(we=document.createElement("style"),we.setAttribute("type","text/css"),document.head.appendChild(we)),we.sheet&&(we.sheet.insertRule(`@media ${se} {body{ }}`,0),ae.add(se))}catch(Me){console.error(Me)}}($e),this._matchMedia($e)}}return se.\u0275fac=function($e){return new($e||se)(i.LFG(F.t4))},se.\u0275prov=i.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"}),se})();function ge(se){return{matches:"all"===se||""===se,media:se,addListener:()=>{},removeListener:()=>{}}}let W=(()=>{class se{constructor($e,it){this._mediaMatcher=$e,this._zone=it,this._queries=new Map,this._destroySubject=new c.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched($e){return ie((0,a.Eq)($e)).some(Ke=>this._registerQuery(Ke).mql.matches)}observe($e){const Ke=ie((0,a.Eq)($e)).map(me=>this._registerQuery(me).observable);let tt=(0,v.aj)(Ke);return tt=(0,b.z)(tt.pipe((0,g.q)(1)),tt.pipe((0,D.T)(1),(0,B.b)(0))),tt.pipe((0,O.U)(me=>{const Xe={matches:!1,breakpoints:{}};return me.forEach(({matches:Ae,query:yt})=>{Xe.matches=Xe.matches||Ae,Xe.breakpoints[yt]=Ae}),Xe}))}_registerQuery($e){if(this._queries.has($e))return this._queries.get($e);const it=this._mediaMatcher.matchMedia($e),tt={observable:new h.y(me=>{const Xe=Ae=>this._zone.run(()=>me.next(Ae));return it.addListener(Xe),()=>{it.removeListener(Xe)}}).pipe((0,P.O)(it),(0,O.U)(({matches:me})=>({query:$e,matches:me})),(0,k.R)(this._destroySubject)),mql:it};return this._queries.set($e,tt),tt}}return se.\u0275fac=function($e){return new($e||se)(i.LFG(ue),i.LFG(i.R0b))},se.\u0275prov=i.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"}),se})();function ie(se){return se.map(Me=>Me.split(",")).reduce((Me,$e)=>Me.concat($e)).map(Me=>Me.trim())}const he={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},9643:(Ct,ke,u)=>{"use strict";u.d(ke,{Q8:()=>B,wD:()=>D});var i=u(1281),a=u(4650),c=u(6498),v=u(8929),b=u(13);let h=(()=>{class O{create(k){return typeof MutationObserver>"u"?null:new MutationObserver(k)}}return O.\u0275fac=function(k){return new(k||O)},O.\u0275prov=a.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})(),g=(()=>{class O{constructor(k){this._mutationObserverFactory=k,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((k,F)=>this._cleanupObserver(F))}observe(k){const F=(0,i.fI)(k);return new c.y(z=>{const we=this._observeElement(F).subscribe(z);return()=>{we.unsubscribe(),this._unobserveElement(F)}})}_observeElement(k){if(this._observedElements.has(k))this._observedElements.get(k).count++;else{const F=new v.xQ,z=this._mutationObserverFactory.create(ae=>F.next(ae));z&&z.observe(k,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(k,{observer:z,stream:F,count:1})}return this._observedElements.get(k).stream}_unobserveElement(k){this._observedElements.has(k)&&(this._observedElements.get(k).count--,this._observedElements.get(k).count||this._cleanupObserver(k))}_cleanupObserver(k){if(this._observedElements.has(k)){const{observer:F,stream:z}=this._observedElements.get(k);F&&F.disconnect(),z.complete(),this._observedElements.delete(k)}}}return O.\u0275fac=function(k){return new(k||O)(a.LFG(h))},O.\u0275prov=a.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})(),D=(()=>{class O{constructor(k,F,z){this._contentObserver=k,this._elementRef=F,this._ngZone=z,this.event=new a.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(k){this._disabled=(0,i.Ig)(k),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(k){this._debounce=(0,i.su)(k),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const k=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?k.pipe((0,b.b)(this.debounce)):k).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return O.\u0275fac=function(k){return new(k||O)(a.Y36(g),a.Y36(a.SBq),a.Y36(a.R0b))},O.\u0275dir=a.lG2({type:O,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),O})(),B=(()=>{class O{}return O.\u0275fac=function(k){return new(k||O)},O.\u0275mod=a.oAB({type:O}),O.\u0275inj=a.cJS({providers:[h]}),O})()},8184:(Ct,ke,u)=>{"use strict";u.d(ke,{Iu:()=>Yt,U8:()=>U,X_:()=>Me,Xj:()=>ft,aV:()=>Be,pI:()=>Le,wJ:()=>Mt,xu:()=>Q});var i=u(2744),a=u(6895),c=u(4650),v=u(1281),b=u(3353),h=u(445),g=u(4080),D=u(8929),B=u(2654),O=u(6787),P=u(2986),k=u(7625),F=u(4290),z=u(9521);const ae=(0,b.Mq)();class we{constructor(p,m){this._viewportRuler=p,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=m}attach(){}enable(){if(this._canBeEnabled()){const p=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=p.style.left||"",this._previousHTMLStyles.top=p.style.top||"",p.style.left=(0,v.HM)(-this._previousScrollPosition.left),p.style.top=(0,v.HM)(-this._previousScrollPosition.top),p.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const p=this._document.documentElement,j=p.style,de=this._document.body.style,X=j.scrollBehavior||"",H=de.scrollBehavior||"";this._isEnabled=!1,j.left=this._previousHTMLStyles.left,j.top=this._previousHTMLStyles.top,p.classList.remove("cdk-global-scrollblock"),ae&&(j.scrollBehavior=de.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),ae&&(j.scrollBehavior=X,de.scrollBehavior=H)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const m=this._document.body,j=this._viewportRuler.getViewportSize();return m.scrollHeight>j.height||m.scrollWidth>j.width}}class le{constructor(p,m,j,de){this._scrollDispatcher=p,this._ngZone=m,this._viewportRuler=j,this._config=de,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(p){this._overlayRef=p}enable(){if(this._scrollSubscription)return;const p=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=p.subscribe(()=>{const m=this._viewportRuler.getViewportScrollPosition().top;Math.abs(m-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=p.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class ge{enable(){}disable(){}attach(){}}function W(x,p){return p.some(m=>x.bottomm.bottom||x.rightm.right)}function ie(x,p){return p.some(m=>x.topm.bottom||x.leftm.right)}class he{constructor(p,m,j,de){this._scrollDispatcher=p,this._viewportRuler=m,this._ngZone=j,this._config=de,this._scrollSubscription=null}attach(p){this._overlayRef=p}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const m=this._overlayRef.overlayElement.getBoundingClientRect(),{width:j,height:de}=this._viewportRuler.getViewportSize();W(m,[{width:j,height:de,bottom:de,right:j,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let se=(()=>{class x{constructor(m,j,de,X){this._scrollDispatcher=m,this._viewportRuler=j,this._ngZone=de,this.noop=()=>new ge,this.close=H=>new le(this._scrollDispatcher,this._ngZone,this._viewportRuler,H),this.block=()=>new we(this._viewportRuler,this._document),this.reposition=H=>new he(this._scrollDispatcher,this._viewportRuler,this._ngZone,H),this._document=X}}return x.\u0275fac=function(m){return new(m||x)(c.LFG(i.mF),c.LFG(i.rL),c.LFG(c.R0b),c.LFG(a.K0))},x.\u0275prov=c.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"}),x})();class Me{constructor(p){if(this.scrollStrategy=new ge,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,p){const m=Object.keys(p);for(const j of m)void 0!==p[j]&&(this[j]=p[j])}}}class Ke{constructor(p,m){this.connectionPair=p,this.scrollableViewProperties=m}}let Xe=(()=>{class x{constructor(m){this._attachedOverlays=[],this._document=m}ngOnDestroy(){this.detach()}add(m){this.remove(m),this._attachedOverlays.push(m)}remove(m){const j=this._attachedOverlays.indexOf(m);j>-1&&this._attachedOverlays.splice(j,1),0===this._attachedOverlays.length&&this.detach()}}return x.\u0275fac=function(m){return new(m||x)(c.LFG(a.K0))},x.\u0275prov=c.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"}),x})(),Ae=(()=>{class x extends Xe{constructor(m,j){super(m),this._ngZone=j,this._keydownListener=de=>{const X=this._attachedOverlays;for(let H=X.length-1;H>-1;H--)if(X[H]._keydownEvents.observers.length>0){const f=X[H]._keydownEvents;this._ngZone?this._ngZone.run(()=>f.next(de)):f.next(de);break}}}add(m){super.add(m),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return x.\u0275fac=function(m){return new(m||x)(c.LFG(a.K0),c.LFG(c.R0b,8))},x.\u0275prov=c.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"}),x})(),yt=(()=>{class x extends Xe{constructor(m,j,de){super(m),this._platform=j,this._ngZone=de,this._cursorStyleIsSet=!1,this._pointerDownListener=X=>{this._pointerDownEventTarget=(0,b.sA)(X)},this._clickListener=X=>{const H=(0,b.sA)(X),f="click"===X.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:H;this._pointerDownEventTarget=null;const _=this._attachedOverlays.slice();for(let T=_.length-1;T>-1;T--){const ve=_[T];if(ve._outsidePointerEvents.observers.length<1||!ve.hasAttached())continue;if(ve.overlayElement.contains(H)||ve.overlayElement.contains(f))break;const Je=ve._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Je.next(X)):Je.next(X)}}}add(m){if(super.add(m),!this._isAttached){const j=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(j)):this._addEventListeners(j),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=j.style.cursor,j.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const m=this._document.body;m.removeEventListener("pointerdown",this._pointerDownListener,!0),m.removeEventListener("click",this._clickListener,!0),m.removeEventListener("auxclick",this._clickListener,!0),m.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(m.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(m){m.addEventListener("pointerdown",this._pointerDownListener,!0),m.addEventListener("click",this._clickListener,!0),m.addEventListener("auxclick",this._clickListener,!0),m.addEventListener("contextmenu",this._clickListener,!0)}}return x.\u0275fac=function(m){return new(m||x)(c.LFG(a.K0),c.LFG(b.t4),c.LFG(c.R0b,8))},x.\u0275prov=c.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"}),x})(),ft=(()=>{class x{constructor(m,j){this._platform=j,this._document=m}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const m="cdk-overlay-container";if(this._platform.isBrowser||(0,b.Oy)()){const de=this._document.querySelectorAll(`.${m}[platform="server"], .${m}[platform="test"]`);for(let X=0;Xthis._backdropClick.next(Je),this._backdropTransitionendHandler=Je=>{this._disposeBackdrop(Je.target)},this._keydownEvents=new D.xQ,this._outsidePointerEvents=new D.xQ,de.scrollStrategy&&(this._scrollStrategy=de.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=de.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(p){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const m=this._portalOutlet.attach(p);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,P.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof m?.onDestroy&&m.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),m}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const p=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),p}dispose(){const p=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,p&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(p){p!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=p,this.hasAttached()&&(p.attach(this),this.updatePosition()))}updateSize(p){this._config={...this._config,...p},this._updateElementSize()}setDirection(p){this._config={...this._config,direction:p},this._updateElementDirection()}addPanelClass(p){this._pane&&this._toggleClasses(this._pane,p,!0)}removePanelClass(p){this._pane&&this._toggleClasses(this._pane,p,!1)}getDirection(){const p=this._config.direction;return p?"string"==typeof p?p:p.value:"ltr"}updateScrollStrategy(p){p!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=p,this.hasAttached()&&(p.attach(this),p.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const p=this._pane.style;p.width=(0,v.HM)(this._config.width),p.height=(0,v.HM)(this._config.height),p.minWidth=(0,v.HM)(this._config.minWidth),p.minHeight=(0,v.HM)(this._config.minHeight),p.maxWidth=(0,v.HM)(this._config.maxWidth),p.maxHeight=(0,v.HM)(this._config.maxHeight)}_togglePointerEvents(p){this._pane.style.pointerEvents=p?"":"none"}_attachBackdrop(){const p="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(p)})}):this._backdropElement.classList.add(p)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const p=this._backdropElement;if(p){if(this._animationsDisabled)return void this._disposeBackdrop(p);p.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{p.addEventListener("transitionend",this._backdropTransitionendHandler)}),p.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(p)},500))}}_toggleClasses(p,m,j){const de=(0,v.Eq)(m||[]).filter(X=>!!X);de.length&&(j?p.classList.add(...de):p.classList.remove(...de))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const p=this._ngZone.onStable.pipe((0,k.R)((0,O.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),p.unsubscribe())})})}_disposeScrollStrategy(){const p=this._scrollStrategy;p&&(p.disable(),p.detach&&p.detach())}_disposeBackdrop(p){p&&(p.removeEventListener("click",this._backdropClickHandler),p.removeEventListener("transitionend",this._backdropTransitionendHandler),p.remove(),this._backdropElement===p&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Dt="cdk-overlay-connected-position-bounding-box",jt=/([A-Za-z%]+)$/;class V{constructor(p,m,j,de,X){this._viewportRuler=m,this._document=j,this._platform=de,this._overlayContainer=X,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new D.xQ,this._resizeSubscription=B.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(p)}get positions(){return this._preferredPositions}attach(p){this._validatePositions(),p.hostElement.classList.add(Dt),this._overlayRef=p,this._boundingBox=p.hostElement,this._pane=p.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const p=this._originRect,m=this._overlayRect,j=this._viewportRect,de=this._containerRect,X=[];let H;for(let f of this._preferredPositions){let _=this._getOriginPoint(p,de,f),T=this._getOverlayPoint(_,m,f),ve=this._getOverlayFit(T,m,j,f);if(ve.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(f,_);this._canFitWithFlexibleDimensions(ve,T,j)?X.push({position:f,origin:_,overlayRect:m,boundingBoxRect:this._calculateBoundingBoxRect(_,f)}):(!H||H.overlayFit.visibleArea_&&(_=ve,f=T)}return this._isPushed=!1,void this._applyPosition(f.position,f.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(H.position,H.originPoint);this._applyPosition(H.position,H.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ee(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Dt),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const p=this._lastPosition;if(p){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const m=this._getOriginPoint(this._originRect,this._containerRect,p);this._applyPosition(p,m)}else this.apply()}withScrollableContainers(p){return this._scrollables=p,this}withPositions(p){return this._preferredPositions=p,-1===p.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(p){return this._viewportMargin=p,this}withFlexibleDimensions(p=!0){return this._hasFlexibleDimensions=p,this}withGrowAfterOpen(p=!0){return this._growAfterOpen=p,this}withPush(p=!0){return this._canPush=p,this}withLockedPosition(p=!0){return this._positionLocked=p,this}setOrigin(p){return this._origin=p,this}withDefaultOffsetX(p){return this._offsetX=p,this}withDefaultOffsetY(p){return this._offsetY=p,this}withTransformOriginOn(p){return this._transformOriginSelector=p,this}_getOriginPoint(p,m,j){let de,X;if("center"==j.originX)de=p.left+p.width/2;else{const H=this._isRtl()?p.right:p.left,f=this._isRtl()?p.left:p.right;de="start"==j.originX?H:f}return m.left<0&&(de-=m.left),X="center"==j.originY?p.top+p.height/2:"top"==j.originY?p.top:p.bottom,m.top<0&&(X-=m.top),{x:de,y:X}}_getOverlayPoint(p,m,j){let de,X;return de="center"==j.overlayX?-m.width/2:"start"===j.overlayX?this._isRtl()?-m.width:0:this._isRtl()?0:-m.width,X="center"==j.overlayY?-m.height/2:"top"==j.overlayY?0:-m.height,{x:p.x+de,y:p.y+X}}_getOverlayFit(p,m,j,de){const X=_e(m);let{x:H,y:f}=p,_=this._getOffset(de,"x"),T=this._getOffset(de,"y");_&&(H+=_),T&&(f+=T);let ze=0-f,St=f+X.height-j.height,ht=this._subtractOverflows(X.width,0-H,H+X.width-j.width),Et=this._subtractOverflows(X.height,ze,St),ye=ht*Et;return{visibleArea:ye,isCompletelyWithinViewport:X.width*X.height===ye,fitsInViewportVertically:Et===X.height,fitsInViewportHorizontally:ht==X.width}}_canFitWithFlexibleDimensions(p,m,j){if(this._hasFlexibleDimensions){const de=j.bottom-m.y,X=j.right-m.x,H=oe(this._overlayRef.getConfig().minHeight),f=oe(this._overlayRef.getConfig().minWidth),T=p.fitsInViewportHorizontally||null!=f&&f<=X;return(p.fitsInViewportVertically||null!=H&&H<=de)&&T}return!1}_pushOverlayOnScreen(p,m,j){if(this._previousPushAmount&&this._positionLocked)return{x:p.x+this._previousPushAmount.x,y:p.y+this._previousPushAmount.y};const de=_e(m),X=this._viewportRect,H=Math.max(p.x+de.width-X.width,0),f=Math.max(p.y+de.height-X.height,0),_=Math.max(X.top-j.top-p.y,0),T=Math.max(X.left-j.left-p.x,0);let ve=0,Je=0;return ve=de.width<=X.width?T||-H:p.xht&&!this._isInitialRender&&!this._growAfterOpen&&(H=p.y-ht/2)}if("end"===m.overlayX&&!de||"start"===m.overlayX&&de)ze=j.width-p.x+this._viewportMargin,ve=p.x-this._viewportMargin;else if("start"===m.overlayX&&!de||"end"===m.overlayX&&de)Je=p.x,ve=j.right-p.x;else{const St=Math.min(j.right-p.x+j.left,p.x),ht=this._lastBoundingBoxSize.width;ve=2*St,Je=p.x-St,ve>ht&&!this._isInitialRender&&!this._growAfterOpen&&(Je=p.x-ht/2)}return{top:H,left:Je,bottom:f,right:ze,width:ve,height:X}}_setBoundingBoxStyles(p,m){const j=this._calculateBoundingBoxRect(p,m);!this._isInitialRender&&!this._growAfterOpen&&(j.height=Math.min(j.height,this._lastBoundingBoxSize.height),j.width=Math.min(j.width,this._lastBoundingBoxSize.width));const de={};if(this._hasExactPosition())de.top=de.left="0",de.bottom=de.right=de.maxHeight=de.maxWidth="",de.width=de.height="100%";else{const X=this._overlayRef.getConfig().maxHeight,H=this._overlayRef.getConfig().maxWidth;de.height=(0,v.HM)(j.height),de.top=(0,v.HM)(j.top),de.bottom=(0,v.HM)(j.bottom),de.width=(0,v.HM)(j.width),de.left=(0,v.HM)(j.left),de.right=(0,v.HM)(j.right),de.alignItems="center"===m.overlayX?"center":"end"===m.overlayX?"flex-end":"flex-start",de.justifyContent="center"===m.overlayY?"center":"bottom"===m.overlayY?"flex-end":"flex-start",X&&(de.maxHeight=(0,v.HM)(X)),H&&(de.maxWidth=(0,v.HM)(H))}this._lastBoundingBoxSize=j,Ee(this._boundingBox.style,de)}_resetBoundingBoxStyles(){Ee(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ee(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(p,m){const j={},de=this._hasExactPosition(),X=this._hasFlexibleDimensions,H=this._overlayRef.getConfig();if(de){const ve=this._viewportRuler.getViewportScrollPosition();Ee(j,this._getExactOverlayY(m,p,ve)),Ee(j,this._getExactOverlayX(m,p,ve))}else j.position="static";let f="",_=this._getOffset(m,"x"),T=this._getOffset(m,"y");_&&(f+=`translateX(${_}px) `),T&&(f+=`translateY(${T}px)`),j.transform=f.trim(),H.maxHeight&&(de?j.maxHeight=(0,v.HM)(H.maxHeight):X&&(j.maxHeight="")),H.maxWidth&&(de?j.maxWidth=(0,v.HM)(H.maxWidth):X&&(j.maxWidth="")),Ee(this._pane.style,j)}_getExactOverlayY(p,m,j){let de={top:"",bottom:""},X=this._getOverlayPoint(m,this._overlayRect,p);return this._isPushed&&(X=this._pushOverlayOnScreen(X,this._overlayRect,j)),"bottom"===p.overlayY?de.bottom=this._document.documentElement.clientHeight-(X.y+this._overlayRect.height)+"px":de.top=(0,v.HM)(X.y),de}_getExactOverlayX(p,m,j){let H,de={left:"",right:""},X=this._getOverlayPoint(m,this._overlayRect,p);return this._isPushed&&(X=this._pushOverlayOnScreen(X,this._overlayRect,j)),H=this._isRtl()?"end"===p.overlayX?"left":"right":"end"===p.overlayX?"right":"left","right"===H?de.right=this._document.documentElement.clientWidth-(X.x+this._overlayRect.width)+"px":de.left=(0,v.HM)(X.x),de}_getScrollVisibility(){const p=this._getOriginRect(),m=this._pane.getBoundingClientRect(),j=this._scrollables.map(de=>de.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:ie(p,j),isOriginOutsideView:W(p,j),isOverlayClipped:ie(m,j),isOverlayOutsideView:W(m,j)}}_subtractOverflows(p,...m){return m.reduce((j,de)=>j-Math.max(de,0),p)}_getNarrowedViewportRect(){const p=this._document.documentElement.clientWidth,m=this._document.documentElement.clientHeight,j=this._viewportRuler.getViewportScrollPosition();return{top:j.top+this._viewportMargin,left:j.left+this._viewportMargin,right:j.left+p-this._viewportMargin,bottom:j.top+m-this._viewportMargin,width:p-2*this._viewportMargin,height:m-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(p,m){return"x"===m?p.offsetX??this._offsetX:p.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(p){this._pane&&(0,v.Eq)(p).forEach(m=>{""!==m&&-1===this._appliedPanelClasses.indexOf(m)&&(this._appliedPanelClasses.push(m),this._pane.classList.add(m))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(p=>{this._pane.classList.remove(p)}),this._appliedPanelClasses=[])}_getOriginRect(){const p=this._origin;if(p instanceof c.SBq)return p.nativeElement.getBoundingClientRect();if(p instanceof Element)return p.getBoundingClientRect();const m=p.width||0,j=p.height||0;return{top:p.y,bottom:p.y+j,left:p.x,right:p.x+m,height:j,width:m}}}function Ee(x,p){for(let m in p)p.hasOwnProperty(m)&&(x[m]=p[m]);return x}function oe(x){if("number"!=typeof x&&null!=x){const[p,m]=x.split(jt);return m&&"px"!==m?null:parseFloat(p)}return x||null}function _e(x){return{top:Math.floor(x.top),right:Math.floor(x.right),bottom:Math.floor(x.bottom),left:Math.floor(x.left),width:Math.floor(x.width),height:Math.floor(x.height)}}const be="cdk-global-overlay-wrapper";class et{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(p){const m=p.getConfig();this._overlayRef=p,this._width&&!m.width&&p.updateSize({width:this._width}),this._height&&!m.height&&p.updateSize({height:this._height}),p.hostElement.classList.add(be),this._isDisposed=!1}top(p=""){return this._bottomOffset="",this._topOffset=p,this._alignItems="flex-start",this}left(p=""){return this._xOffset=p,this._xPosition="left",this}bottom(p=""){return this._topOffset="",this._bottomOffset=p,this._alignItems="flex-end",this}right(p=""){return this._xOffset=p,this._xPosition="right",this}start(p=""){return this._xOffset=p,this._xPosition="start",this}end(p=""){return this._xOffset=p,this._xPosition="end",this}width(p=""){return this._overlayRef?this._overlayRef.updateSize({width:p}):this._width=p,this}height(p=""){return this._overlayRef?this._overlayRef.updateSize({height:p}):this._height=p,this}centerHorizontally(p=""){return this.left(p),this._xPosition="center",this}centerVertically(p=""){return this.top(p),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const p=this._overlayRef.overlayElement.style,m=this._overlayRef.hostElement.style,j=this._overlayRef.getConfig(),{width:de,height:X,maxWidth:H,maxHeight:f}=j,_=!("100%"!==de&&"100vw"!==de||H&&"100%"!==H&&"100vw"!==H),T=!("100%"!==X&&"100vh"!==X||f&&"100%"!==f&&"100vh"!==f),ve=this._xPosition,Je=this._xOffset,ze="rtl"===this._overlayRef.getConfig().direction;let St="",ht="",Et="";_?Et="flex-start":"center"===ve?(Et="center",ze?ht=Je:St=Je):ze?"left"===ve||"end"===ve?(Et="flex-end",St=Je):("right"===ve||"start"===ve)&&(Et="flex-start",ht=Je):"left"===ve||"start"===ve?(Et="flex-start",St=Je):("right"===ve||"end"===ve)&&(Et="flex-end",ht=Je),p.position=this._cssPosition,p.marginLeft=_?"0":St,p.marginTop=T?"0":this._topOffset,p.marginBottom=this._bottomOffset,p.marginRight=_?"0":ht,m.justifyContent=Et,m.alignItems=T?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const p=this._overlayRef.overlayElement.style,m=this._overlayRef.hostElement,j=m.style;m.classList.remove(be),j.justifyContent=j.alignItems=p.marginTop=p.marginBottom=p.marginLeft=p.marginRight=p.position="",this._overlayRef=null,this._isDisposed=!0}}let Mt=(()=>{class x{constructor(m,j,de,X){this._viewportRuler=m,this._document=j,this._platform=de,this._overlayContainer=X}global(){return new et}flexibleConnectedTo(m){return new V(m,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return x.\u0275fac=function(m){return new(m||x)(c.LFG(i.rL),c.LFG(a.K0),c.LFG(b.t4),c.LFG(ft))},x.\u0275prov=c.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"}),x})(),_t=0,Be=(()=>{class x{constructor(m,j,de,X,H,f,_,T,ve,Je,ze,St){this.scrollStrategies=m,this._overlayContainer=j,this._componentFactoryResolver=de,this._positionBuilder=X,this._keyboardDispatcher=H,this._injector=f,this._ngZone=_,this._document=T,this._directionality=ve,this._location=Je,this._outsideClickDispatcher=ze,this._animationsModuleType=St}create(m){const j=this._createHostElement(),de=this._createPaneElement(j),X=this._createPortalOutlet(de),H=new Me(m);return H.direction=H.direction||this._directionality.value,new Yt(X,j,de,H,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(m){const j=this._document.createElement("div");return j.id="cdk-overlay-"+_t++,j.classList.add("cdk-overlay-pane"),m.appendChild(j),j}_createHostElement(){const m=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(m),m}_createPortalOutlet(m){return this._appRef||(this._appRef=this._injector.get(c.z2F)),new g.u0(m,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return x.\u0275fac=function(m){return new(m||x)(c.LFG(se),c.LFG(ft),c.LFG(c._Vd),c.LFG(Mt),c.LFG(Ae),c.LFG(c.zs3),c.LFG(c.R0b),c.LFG(a.K0),c.LFG(h.Is),c.LFG(a.Ye),c.LFG(yt),c.LFG(c.QbO,8))},x.\u0275prov=c.Yz7({token:x,factory:x.\u0275fac}),x})();const at=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],nt=new c.OlP("cdk-connected-overlay-scroll-strategy");let Q=(()=>{class x{constructor(m){this.elementRef=m}}return x.\u0275fac=function(m){return new(m||x)(c.Y36(c.SBq))},x.\u0275dir=c.lG2({type:x,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),x})(),Le=(()=>{class x{constructor(m,j,de,X,H){this._overlay=m,this._dir=H,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=B.w.EMPTY,this._attachSubscription=B.w.EMPTY,this._detachSubscription=B.w.EMPTY,this._positionSubscription=B.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new c.vpe,this.positionChange=new c.vpe,this.attach=new c.vpe,this.detach=new c.vpe,this.overlayKeydown=new c.vpe,this.overlayOutsideClick=new c.vpe,this._templatePortal=new g.UE(j,de),this._scrollStrategyFactory=X,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(m){this._offsetX=m,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(m){this._offsetY=m,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(m){this._hasBackdrop=(0,v.Ig)(m)}get lockPosition(){return this._lockPosition}set lockPosition(m){this._lockPosition=(0,v.Ig)(m)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(m){this._flexibleDimensions=(0,v.Ig)(m)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(m){this._growAfterOpen=(0,v.Ig)(m)}get push(){return this._push}set push(m){this._push=(0,v.Ig)(m)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(m){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),m.origin&&this.open&&this._position.apply()),m.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=at);const m=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=m.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=m.detachments().subscribe(()=>this.detach.emit()),m.keydownEvents().subscribe(j=>{this.overlayKeydown.next(j),j.keyCode===z.hY&&!this.disableClose&&!(0,z.Vb)(j)&&(j.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(j=>{this.overlayOutsideClick.next(j)})}_buildConfig(){const m=this._position=this.positionStrategy||this._createPositionStrategy(),j=new Me({direction:this._dir,positionStrategy:m,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(j.width=this.width),(this.height||0===this.height)&&(j.height=this.height),(this.minWidth||0===this.minWidth)&&(j.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(j.minHeight=this.minHeight),this.backdropClass&&(j.backdropClass=this.backdropClass),this.panelClass&&(j.panelClass=this.panelClass),j}_updatePositionStrategy(m){const j=this.positions.map(de=>({originX:de.originX,originY:de.originY,overlayX:de.overlayX,overlayY:de.overlayY,offsetX:de.offsetX||this.offsetX,offsetY:de.offsetY||this.offsetY,panelClass:de.panelClass||void 0}));return m.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(j).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const m=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(m),m}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Q?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(m=>{this.backdropClick.emit(m)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,F.o)(()=>this.positionChange.observers.length>0)).subscribe(m=>{this.positionChange.emit(m),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return x.\u0275fac=function(m){return new(m||x)(c.Y36(Be),c.Y36(c.Rgc),c.Y36(c.s_b),c.Y36(nt),c.Y36(h.Is,8))},x.\u0275dir=c.lG2({type:x,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[c.TTD]}),x})();const R={provide:nt,deps:[Be],useFactory:function ee(x){return()=>x.scrollStrategies.reposition()}};let U=(()=>{class x{}return x.\u0275fac=function(m){return new(m||x)},x.\u0275mod=c.oAB({type:x}),x.\u0275inj=c.cJS({providers:[Be,R],imports:[h.vT,g.eL,i.Cl,i.Cl]}),x})()},3353:(Ct,ke,u)=>{"use strict";u.d(ke,{Mq:()=>z,Oy:()=>ie,_i:()=>ae,ht:()=>ge,i$:()=>P,kV:()=>le,qK:()=>D,sA:()=>W,t4:()=>v});var i=u(4650),a=u(6895);let c;try{c=typeof Intl<"u"&&Intl.v8BreakIterator}catch{c=!1}let h,v=(()=>{class he{constructor(Me){this._platformId=Me,this.isBrowser=this._platformId?(0,a.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!c)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return he.\u0275fac=function(Me){return new(Me||he)(i.LFG(i.Lbi))},he.\u0275prov=i.Yz7({token:he,factory:he.\u0275fac,providedIn:"root"}),he})();const g=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function D(){if(h)return h;if("object"!=typeof document||!document)return h=new Set(g),h;let he=document.createElement("input");return h=new Set(g.filter(se=>(he.setAttribute("type",se),he.type===se))),h}let B,k,F,we;function P(he){return function O(){if(null==B&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>B=!0}))}finally{B=B||!1}return B}()?he:!!he.capture}function z(){if(null==F){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return F=!1,F;if("scrollBehavior"in document.documentElement.style)F=!0;else{const he=Element.prototype.scrollTo;F=!!he&&!/\{\s*\[native code\]\s*\}/.test(he.toString())}}return F}function ae(){if("object"!=typeof document||!document)return 0;if(null==k){const he=document.createElement("div"),se=he.style;he.dir="rtl",se.width="1px",se.overflow="auto",se.visibility="hidden",se.pointerEvents="none",se.position="absolute";const Me=document.createElement("div"),$e=Me.style;$e.width="2px",$e.height="1px",he.appendChild(Me),document.body.appendChild(he),k=0,0===he.scrollLeft&&(he.scrollLeft=1,k=0===he.scrollLeft?1:2),he.remove()}return k}function le(he){if(function ue(){if(null==we){const he=typeof document<"u"?document.head:null;we=!(!he||!he.createShadowRoot&&!he.attachShadow)}return we}()){const se=he.getRootNode?he.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&se instanceof ShadowRoot)return se}return null}function ge(){let he=typeof document<"u"&&document?document.activeElement:null;for(;he&&he.shadowRoot;){const se=he.shadowRoot.activeElement;if(se===he)break;he=se}return he}function W(he){return he.composedPath?he.composedPath()[0]:he.target}function ie(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},4080:(Ct,ke,u)=>{"use strict";u.d(ke,{C5:()=>O,Pl:()=>ge,UE:()=>P,eL:()=>ie,en:()=>F,u0:()=>ae});var i=u(4650),a=u(6895);class B{attach(Me){return this._attachedHost=Me,Me.attach(this)}detach(){let Me=this._attachedHost;null!=Me&&(this._attachedHost=null,Me.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(Me){this._attachedHost=Me}}class O extends B{constructor(Me,$e,it,Ke){super(),this.component=Me,this.viewContainerRef=$e,this.injector=it,this.componentFactoryResolver=Ke}}class P extends B{constructor(Me,$e,it,Ke){super(),this.templateRef=Me,this.viewContainerRef=$e,this.context=it,this.injector=Ke}get origin(){return this.templateRef.elementRef}attach(Me,$e=this.context){return this.context=$e,super.attach(Me)}detach(){return this.context=void 0,super.detach()}}class k extends B{constructor(Me){super(),this.element=Me instanceof i.SBq?Me.nativeElement:Me}}class F{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(Me){return Me instanceof O?(this._attachedPortal=Me,this.attachComponentPortal(Me)):Me instanceof P?(this._attachedPortal=Me,this.attachTemplatePortal(Me)):this.attachDomPortal&&Me instanceof k?(this._attachedPortal=Me,this.attachDomPortal(Me)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(Me){this._disposeFn=Me}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class ae extends F{constructor(Me,$e,it,Ke,tt){super(),this.outletElement=Me,this._componentFactoryResolver=$e,this._appRef=it,this._defaultInjector=Ke,this.attachDomPortal=me=>{const Xe=me.element,Ae=this._document.createComment("dom-portal");Xe.parentNode.insertBefore(Ae,Xe),this.outletElement.appendChild(Xe),this._attachedPortal=me,super.setDisposeFn(()=>{Ae.parentNode&&Ae.parentNode.replaceChild(Xe,Ae)})},this._document=tt}attachComponentPortal(Me){const it=(Me.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Me.component);let Ke;return Me.viewContainerRef?(Ke=Me.viewContainerRef.createComponent(it,Me.viewContainerRef.length,Me.injector||Me.viewContainerRef.injector),this.setDisposeFn(()=>Ke.destroy())):(Ke=it.create(Me.injector||this._defaultInjector||i.zs3.NULL),this._appRef.attachView(Ke.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(Ke.hostView),Ke.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(Ke)),this._attachedPortal=Me,Ke}attachTemplatePortal(Me){let $e=Me.viewContainerRef,it=$e.createEmbeddedView(Me.templateRef,Me.context,{injector:Me.injector});return it.rootNodes.forEach(Ke=>this.outletElement.appendChild(Ke)),it.detectChanges(),this.setDisposeFn(()=>{let Ke=$e.indexOf(it);-1!==Ke&&$e.remove(Ke)}),this._attachedPortal=Me,it}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(Me){return Me.hostView.rootNodes[0]}}let ge=(()=>{class se extends F{constructor($e,it,Ke){super(),this._componentFactoryResolver=$e,this._viewContainerRef=it,this._isInitialized=!1,this.attached=new i.vpe,this.attachDomPortal=tt=>{const me=tt.element,Xe=this._document.createComment("dom-portal");tt.setAttachedHost(this),me.parentNode.insertBefore(Xe,me),this._getRootNode().appendChild(me),this._attachedPortal=tt,super.setDisposeFn(()=>{Xe.parentNode&&Xe.parentNode.replaceChild(me,Xe)})},this._document=Ke}get portal(){return this._attachedPortal}set portal($e){this.hasAttached()&&!$e&&!this._isInitialized||(this.hasAttached()&&super.detach(),$e&&super.attach($e),this._attachedPortal=$e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal($e){$e.setAttachedHost(this);const it=null!=$e.viewContainerRef?$e.viewContainerRef:this._viewContainerRef,tt=($e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory($e.component),me=it.createComponent(tt,it.length,$e.injector||it.injector);return it!==this._viewContainerRef&&this._getRootNode().appendChild(me.hostView.rootNodes[0]),super.setDisposeFn(()=>me.destroy()),this._attachedPortal=$e,this._attachedRef=me,this.attached.emit(me),me}attachTemplatePortal($e){$e.setAttachedHost(this);const it=this._viewContainerRef.createEmbeddedView($e.templateRef,$e.context,{injector:$e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=$e,this._attachedRef=it,this.attached.emit(it),it}_getRootNode(){const $e=this._viewContainerRef.element.nativeElement;return $e.nodeType===$e.ELEMENT_NODE?$e:$e.parentNode}}return se.\u0275fac=function($e){return new($e||se)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36(a.K0))},se.\u0275dir=i.lG2({type:se,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.qOj]}),se})(),ie=(()=>{class se{}return se.\u0275fac=function($e){return new($e||se)},se.\u0275mod=i.oAB({type:se}),se.\u0275inj=i.cJS({}),se})()},2744:(Ct,ke,u)=>{"use strict";u.d(ke,{PQ:()=>Yt,ZD:()=>_t,mF:()=>ft,Cl:()=>Be,rL:()=>jt});var i=u(1281),a=u(4650),c=u(6686),b=u(2268);new class h extends b.v{flush(nt){this.active=!0,this.scheduled=void 0;const{actions:Q}=this;let Le,ee=-1,R=Q.length;nt=nt||Q.shift();do{if(Le=nt.execute(nt.state,nt.delay))break}while(++ee0?super.requestAsyncId(nt,Q,Le):(nt.actions.push(this),nt.scheduled||(nt.scheduled=requestAnimationFrame(()=>nt.flush(null))))}recycleAsyncId(nt,Q,Le=0){if(null!==Le&&Le>0||null===Le&&this.delay>0)return super.recycleAsyncId(nt,Q,Le);0===nt.actions.length&&(cancelAnimationFrame(Q),nt.scheduled=void 0)}});var B=u(8929),O=u(1086),P=u(6498),k=u(3753),z=(u(8139),u(353)),ae=u(1177);class ue{constructor(nt){this.durationSelector=nt}call(nt,Q){return Q.subscribe(new le(nt,this.durationSelector))}}class le extends ae.Ds{constructor(nt,Q){super(nt),this.durationSelector=Q,this.hasValue=!1}_next(nt){if(this.value=nt,this.hasValue=!0,!this.throttled){let Q;try{const{durationSelector:ee}=this;Q=ee(nt)}catch(ee){return this.destination.error(ee)}const Le=(0,ae.ft)(Q,new ae.IY(this));!Le||Le.closed?this.clearThrottle():this.add(this.throttled=Le)}}clearThrottle(){const{value:nt,hasValue:Q,throttled:Le}=this;Le&&(this.remove(Le),this.throttled=void 0,Le.unsubscribe()),Q&&(this.value=void 0,this.hasValue=!1,this.destination.next(nt))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var ge=u(7739);function W(at,nt=z.P){return function we(at){return function(Q){return Q.lift(new ue(at))}}(()=>(0,ge.H)(at,nt))}var ie=u(2198),he=u(7625),se=u(3353),Me=u(6895),$e=u(445);let ft=(()=>{class at{constructor(Q,Le,ee){this._ngZone=Q,this._platform=Le,this._scrolled=new B.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=ee}register(Q){this.scrollContainers.has(Q)||this.scrollContainers.set(Q,Q.elementScrolled().subscribe(()=>this._scrolled.next(Q)))}deregister(Q){const Le=this.scrollContainers.get(Q);Le&&(Le.unsubscribe(),this.scrollContainers.delete(Q))}scrolled(Q=20){return this._platform.isBrowser?new P.y(Le=>{this._globalSubscription||this._addGlobalListener();const ee=Q>0?this._scrolled.pipe(W(Q)).subscribe(Le):this._scrolled.subscribe(Le);return this._scrolledCount++,()=>{ee.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,O.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((Q,Le)=>this.deregister(Le)),this._scrolled.complete()}ancestorScrolled(Q,Le){const ee=this.getAncestorScrollContainers(Q);return this.scrolled(Le).pipe((0,ie.h)(R=>!R||ee.indexOf(R)>-1))}getAncestorScrollContainers(Q){const Le=[];return this.scrollContainers.forEach((ee,R)=>{this._scrollableContainsElement(R,Q)&&Le.push(R)}),Le}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(Q,Le){let ee=(0,i.fI)(Le),R=Q.getElementRef().nativeElement;do{if(ee==R)return!0}while(ee=ee.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const Q=this._getWindow();return(0,k.R)(Q.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return at.\u0275fac=function(Q){return new(Q||at)(a.LFG(a.R0b),a.LFG(se.t4),a.LFG(Me.K0,8))},at.\u0275prov=a.Yz7({token:at,factory:at.\u0275fac,providedIn:"root"}),at})(),Yt=(()=>{class at{constructor(Q,Le,ee,R){this.elementRef=Q,this.scrollDispatcher=Le,this.ngZone=ee,this.dir=R,this._destroyed=new B.xQ,this._elementScrolled=new P.y(U=>this.ngZone.runOutsideAngular(()=>(0,k.R)(this.elementRef.nativeElement,"scroll").pipe((0,he.R)(this._destroyed)).subscribe(U)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(Q){const Le=this.elementRef.nativeElement,ee=this.dir&&"rtl"==this.dir.value;null==Q.left&&(Q.left=ee?Q.end:Q.start),null==Q.right&&(Q.right=ee?Q.start:Q.end),null!=Q.bottom&&(Q.top=Le.scrollHeight-Le.clientHeight-Q.bottom),ee&&0!=(0,se._i)()?(null!=Q.left&&(Q.right=Le.scrollWidth-Le.clientWidth-Q.left),2==(0,se._i)()?Q.left=Q.right:1==(0,se._i)()&&(Q.left=Q.right?-Q.right:Q.right)):null!=Q.right&&(Q.left=Le.scrollWidth-Le.clientWidth-Q.right),this._applyScrollToOptions(Q)}_applyScrollToOptions(Q){const Le=this.elementRef.nativeElement;(0,se.Mq)()?Le.scrollTo(Q):(null!=Q.top&&(Le.scrollTop=Q.top),null!=Q.left&&(Le.scrollLeft=Q.left))}measureScrollOffset(Q){const Le="left",R=this.elementRef.nativeElement;if("top"==Q)return R.scrollTop;if("bottom"==Q)return R.scrollHeight-R.clientHeight-R.scrollTop;const U=this.dir&&"rtl"==this.dir.value;return"start"==Q?Q=U?"right":Le:"end"==Q&&(Q=U?Le:"right"),U&&2==(0,se._i)()?Q==Le?R.scrollWidth-R.clientWidth-R.scrollLeft:R.scrollLeft:U&&1==(0,se._i)()?Q==Le?R.scrollLeft+R.scrollWidth-R.clientWidth:-R.scrollLeft:Q==Le?R.scrollLeft:R.scrollWidth-R.clientWidth-R.scrollLeft}}return at.\u0275fac=function(Q){return new(Q||at)(a.Y36(a.SBq),a.Y36(ft),a.Y36(a.R0b),a.Y36($e.Is,8))},at.\u0275dir=a.lG2({type:at,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),at})(),jt=(()=>{class at{constructor(Q,Le,ee){this._platform=Q,this._change=new B.xQ,this._changeListener=R=>{this._change.next(R)},this._document=ee,Le.runOutsideAngular(()=>{if(Q.isBrowser){const R=this._getWindow();R.addEventListener("resize",this._changeListener),R.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const Q=this._getWindow();Q.removeEventListener("resize",this._changeListener),Q.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const Q={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),Q}getViewportRect(){const Q=this.getViewportScrollPosition(),{width:Le,height:ee}=this.getViewportSize();return{top:Q.top,left:Q.left,bottom:Q.top+ee,right:Q.left+Le,height:ee,width:Le}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const Q=this._document,Le=this._getWindow(),ee=Q.documentElement,R=ee.getBoundingClientRect();return{top:-R.top||Q.body.scrollTop||Le.scrollY||ee.scrollTop||0,left:-R.left||Q.body.scrollLeft||Le.scrollX||ee.scrollLeft||0}}change(Q=20){return Q>0?this._change.pipe(W(Q)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const Q=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:Q.innerWidth,height:Q.innerHeight}:{width:0,height:0}}}return at.\u0275fac=function(Q){return new(Q||at)(a.LFG(se.t4),a.LFG(a.R0b),a.LFG(Me.K0,8))},at.\u0275prov=a.Yz7({token:at,factory:at.\u0275fac,providedIn:"root"}),at})(),_t=(()=>{class at{}return at.\u0275fac=function(Q){return new(Q||at)},at.\u0275mod=a.oAB({type:at}),at.\u0275inj=a.cJS({}),at})(),Be=(()=>{class at{}return at.\u0275fac=function(Q){return new(Q||at)},at.\u0275mod=a.oAB({type:at}),at.\u0275inj=a.cJS({imports:[$e.vT,_t,$e.vT,_t]}),at})()},6895:(Ct,ke,u)=>{"use strict";u.d(ke,{Do:()=>W,ED:()=>fi,EM:()=>vi,HT:()=>b,JF:()=>Ei,JJ:()=>Oi,K0:()=>g,Mx:()=>ci,NF:()=>Rr,Nd:()=>vr,O5:()=>Xn,Ov:()=>fr,PC:()=>Un,PM:()=>br,RF:()=>Wi,S$:()=>ue,Ts:()=>Yi,V_:()=>O,Ye:()=>ie,b0:()=>ge,bD:()=>wi,ez:()=>lr,mk:()=>An,n9:()=>_i,q:()=>c,sg:()=>si,w_:()=>h});var i=u(4650);let a=null;function c(){return a}function b(J){a||(a=J)}class h{}const g=new i.OlP("DocumentToken");let D=(()=>{class J{historyGo(q){throw new Error("Not implemented")}}return J.\u0275fac=function(q){return new(q||J)},J.\u0275prov=i.Yz7({token:J,factory:function(){return function B(){return(0,i.LFG)(P)}()},providedIn:"platform"}),J})();const O=new i.OlP("Location Initialized");let P=(()=>{class J extends D{constructor(q){super(),this._doc=q,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return c().getBaseHref(this._doc)}onPopState(q){const Qe=c().getGlobalEventTarget(this._doc,"window");return Qe.addEventListener("popstate",q,!1),()=>Qe.removeEventListener("popstate",q)}onHashChange(q){const Qe=c().getGlobalEventTarget(this._doc,"window");return Qe.addEventListener("hashchange",q,!1),()=>Qe.removeEventListener("hashchange",q)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(q){this.location.pathname=q}pushState(q,Qe,kt){k()?this._history.pushState(q,Qe,kt):this.location.hash=kt}replaceState(q,Qe,kt){k()?this._history.replaceState(q,Qe,kt):this.location.hash=kt}forward(){this._history.forward()}back(){this._history.back()}historyGo(q=0){this._history.go(q)}getState(){return this._history.state}}return J.\u0275fac=function(q){return new(q||J)(i.LFG(g))},J.\u0275prov=i.Yz7({token:J,factory:function(){return function F(){return new P((0,i.LFG)(g))}()},providedIn:"platform"}),J})();function k(){return!!window.history.pushState}function z(J,Ve){if(0==J.length)return Ve;if(0==Ve.length)return J;let q=0;return J.endsWith("/")&&q++,Ve.startsWith("/")&&q++,2==q?J+Ve.substring(1):1==q?J+Ve:J+"/"+Ve}function ae(J){const Ve=J.match(/#|\?|$/),q=Ve&&Ve.index||J.length;return J.slice(0,q-("/"===J[q-1]?1:0))+J.slice(q)}function we(J){return J&&"?"!==J[0]?"?"+J:J}let ue=(()=>{class J{historyGo(q){throw new Error("Not implemented")}}return J.\u0275fac=function(q){return new(q||J)},J.\u0275prov=i.Yz7({token:J,factory:function(){return(0,i.f3M)(ge)},providedIn:"root"}),J})();const le=new i.OlP("appBaseHref");let ge=(()=>{class J extends ue{constructor(q,Qe){super(),this._platformLocation=q,this._removeListenerFns=[],this._baseHref=Qe??this._platformLocation.getBaseHrefFromDOM()??(0,i.f3M)(g).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(q){this._removeListenerFns.push(this._platformLocation.onPopState(q),this._platformLocation.onHashChange(q))}getBaseHref(){return this._baseHref}prepareExternalUrl(q){return z(this._baseHref,q)}path(q=!1){const Qe=this._platformLocation.pathname+we(this._platformLocation.search),kt=this._platformLocation.hash;return kt&&q?`${Qe}${kt}`:Qe}pushState(q,Qe,kt,Xt){const Kt=this.prepareExternalUrl(kt+we(Xt));this._platformLocation.pushState(q,Qe,Kt)}replaceState(q,Qe,kt,Xt){const Kt=this.prepareExternalUrl(kt+we(Xt));this._platformLocation.replaceState(q,Qe,Kt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(q=0){this._platformLocation.historyGo?.(q)}}return J.\u0275fac=function(q){return new(q||J)(i.LFG(D),i.LFG(le,8))},J.\u0275prov=i.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})(),W=(()=>{class J extends ue{constructor(q,Qe){super(),this._platformLocation=q,this._baseHref="",this._removeListenerFns=[],null!=Qe&&(this._baseHref=Qe)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(q){this._removeListenerFns.push(this._platformLocation.onPopState(q),this._platformLocation.onHashChange(q))}getBaseHref(){return this._baseHref}path(q=!1){let Qe=this._platformLocation.hash;return null==Qe&&(Qe="#"),Qe.length>0?Qe.substring(1):Qe}prepareExternalUrl(q){const Qe=z(this._baseHref,q);return Qe.length>0?"#"+Qe:Qe}pushState(q,Qe,kt,Xt){let Kt=this.prepareExternalUrl(kt+we(Xt));0==Kt.length&&(Kt=this._platformLocation.pathname),this._platformLocation.pushState(q,Qe,Kt)}replaceState(q,Qe,kt,Xt){let Kt=this.prepareExternalUrl(kt+we(Xt));0==Kt.length&&(Kt=this._platformLocation.pathname),this._platformLocation.replaceState(q,Qe,Kt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(q=0){this._platformLocation.historyGo?.(q)}}return J.\u0275fac=function(q){return new(q||J)(i.LFG(D),i.LFG(le,8))},J.\u0275prov=i.Yz7({token:J,factory:J.\u0275fac}),J})(),ie=(()=>{class J{constructor(q){this._subject=new i.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=q;const Qe=this._locationStrategy.getBaseHref();this._baseHref=ae(Me(Qe)),this._locationStrategy.onPopState(kt=>{this._subject.emit({url:this.path(!0),pop:!0,state:kt.state,type:kt.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(q=!1){return this.normalize(this._locationStrategy.path(q))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(q,Qe=""){return this.path()==this.normalize(q+we(Qe))}normalize(q){return J.stripTrailingSlash(function se(J,Ve){return J&&Ve.startsWith(J)?Ve.substring(J.length):Ve}(this._baseHref,Me(q)))}prepareExternalUrl(q){return q&&"/"!==q[0]&&(q="/"+q),this._locationStrategy.prepareExternalUrl(q)}go(q,Qe="",kt=null){this._locationStrategy.pushState(kt,"",q,Qe),this._notifyUrlChangeListeners(this.prepareExternalUrl(q+we(Qe)),kt)}replaceState(q,Qe="",kt=null){this._locationStrategy.replaceState(kt,"",q,Qe),this._notifyUrlChangeListeners(this.prepareExternalUrl(q+we(Qe)),kt)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(q=0){this._locationStrategy.historyGo?.(q)}onUrlChange(q){return this._urlChangeListeners.push(q),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Qe=>{this._notifyUrlChangeListeners(Qe.url,Qe.state)})),()=>{const Qe=this._urlChangeListeners.indexOf(q);this._urlChangeListeners.splice(Qe,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(q="",Qe){this._urlChangeListeners.forEach(kt=>kt(q,Qe))}subscribe(q,Qe,kt){return this._subject.subscribe({next:q,error:Qe,complete:kt})}}return J.normalizeQueryParams=we,J.joinWithSlash=z,J.stripTrailingSlash=ae,J.\u0275fac=function(q){return new(q||J)(i.LFG(ue))},J.\u0275prov=i.Yz7({token:J,factory:function(){return function he(){return new ie((0,i.LFG)(ue))}()},providedIn:"root"}),J})();function Me(J){return J.replace(/\/index.html$/,"")}var it=(()=>((it=it||{})[it.Decimal=0]="Decimal",it[it.Percent=1]="Percent",it[it.Currency=2]="Currency",it[it.Scientific=3]="Scientific",it))(),Ae=(()=>((Ae=Ae||{})[Ae.Decimal=0]="Decimal",Ae[Ae.Group=1]="Group",Ae[Ae.List=2]="List",Ae[Ae.PercentSign=3]="PercentSign",Ae[Ae.PlusSign=4]="PlusSign",Ae[Ae.MinusSign=5]="MinusSign",Ae[Ae.Exponential=6]="Exponential",Ae[Ae.SuperscriptingExponent=7]="SuperscriptingExponent",Ae[Ae.PerMille=8]="PerMille",Ae[Ae.Infinity=9]="Infinity",Ae[Ae.NaN=10]="NaN",Ae[Ae.TimeSeparator=11]="TimeSeparator",Ae[Ae.CurrencyDecimal=12]="CurrencyDecimal",Ae[Ae.CurrencyGroup=13]="CurrencyGroup",Ae))();function be(J,Ve){const q=(0,i.cg1)(J),Qe=q[i.wAp.NumberSymbols][Ve];if(typeof Qe>"u"){if(Ve===Ae.CurrencyDecimal)return q[i.wAp.NumberSymbols][Ae.Decimal];if(Ve===Ae.CurrencyGroup)return q[i.wAp.NumberSymbols][Ae.Group]}return Qe}const Ut=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function gt(J){const Ve=parseInt(J);if(isNaN(Ve))throw new Error("Invalid integer literal when parsing "+J);return Ve}function ci(J,Ve){Ve=encodeURIComponent(Ve);for(const q of J.split(";")){const Qe=q.indexOf("="),[kt,Xt]=-1==Qe?[q,""]:[q.slice(0,Qe),q.slice(Qe+1)];if(kt.trim()===Ve)return decodeURIComponent(Xt)}return null}let An=(()=>{class J{constructor(q,Qe,kt,Xt){this._iterableDiffers=q,this._keyValueDiffers=Qe,this._ngEl=kt,this._renderer=Xt,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(q){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof q?q.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(q){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof q?q.split(/\s+/):q,this._rawClass&&((0,i.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const q=this._iterableDiffer.diff(this._rawClass);q&&this._applyIterableChanges(q)}else if(this._keyValueDiffer){const q=this._keyValueDiffer.diff(this._rawClass);q&&this._applyKeyValueChanges(q)}}_applyKeyValueChanges(q){q.forEachAddedItem(Qe=>this._toggleClass(Qe.key,Qe.currentValue)),q.forEachChangedItem(Qe=>this._toggleClass(Qe.key,Qe.currentValue)),q.forEachRemovedItem(Qe=>{Qe.previousValue&&this._toggleClass(Qe.key,!1)})}_applyIterableChanges(q){q.forEachAddedItem(Qe=>{if("string"!=typeof Qe.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,i.AaK)(Qe.item)}`);this._toggleClass(Qe.item,!0)}),q.forEachRemovedItem(Qe=>this._toggleClass(Qe.item,!1))}_applyClasses(q){q&&(Array.isArray(q)||q instanceof Set?q.forEach(Qe=>this._toggleClass(Qe,!0)):Object.keys(q).forEach(Qe=>this._toggleClass(Qe,!!q[Qe])))}_removeClasses(q){q&&(Array.isArray(q)||q instanceof Set?q.forEach(Qe=>this._toggleClass(Qe,!1)):Object.keys(q).forEach(Qe=>this._toggleClass(Qe,!1)))}_toggleClass(q,Qe){(q=q.trim())&&q.split(/\s+/g).forEach(kt=>{Qe?this._renderer.addClass(this._ngEl.nativeElement,kt):this._renderer.removeClass(this._ngEl.nativeElement,kt)})}}return J.\u0275fac=function(q){return new(q||J)(i.Y36(i.ZZ4),i.Y36(i.aQg),i.Y36(i.SBq),i.Y36(i.Qsj))},J.\u0275dir=i.lG2({type:J,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),J})();class zn{constructor(Ve,q,Qe,kt){this.$implicit=Ve,this.ngForOf=q,this.index=Qe,this.count=kt}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let si=(()=>{class J{constructor(q,Qe,kt){this._viewContainer=q,this._template=Qe,this._differs=kt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(q){this._ngForOf=q,this._ngForOfDirty=!0}set ngForTrackBy(q){this._trackByFn=q}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(q){q&&(this._template=q)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const q=this._ngForOf;!this._differ&&q&&(this._differ=this._differs.find(q).create(this.ngForTrackBy))}if(this._differ){const q=this._differ.diff(this._ngForOf);q&&this._applyChanges(q)}}_applyChanges(q){const Qe=this._viewContainer;q.forEachOperation((kt,Xt,Kt)=>{if(null==kt.previousIndex)Qe.createEmbeddedView(this._template,new zn(kt.item,this._ngForOf,-1,-1),null===Kt?void 0:Kt);else if(null==Kt)Qe.remove(null===Xt?void 0:Xt);else if(null!==Xt){const Sn=Qe.get(Xt);Qe.move(Sn,Kt),Ln(Sn,kt)}});for(let kt=0,Xt=Qe.length;kt{Ln(Qe.get(kt.currentIndex),kt)})}static ngTemplateContextGuard(q,Qe){return!0}}return J.\u0275fac=function(q){return new(q||J)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(i.ZZ4))},J.\u0275dir=i.lG2({type:J,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),J})();function Ln(J,Ve){J.context.$implicit=Ve.item}let Xn=(()=>{class J{constructor(q,Qe){this._viewContainer=q,this._context=new Ci,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Qe}set ngIf(q){this._context.$implicit=this._context.ngIf=q,this._updateView()}set ngIfThen(q){zi("ngIfThen",q),this._thenTemplateRef=q,this._thenViewRef=null,this._updateView()}set ngIfElse(q){zi("ngIfElse",q),this._elseTemplateRef=q,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(q,Qe){return!0}}return J.\u0275fac=function(q){return new(q||J)(i.Y36(i.s_b),i.Y36(i.Rgc))},J.\u0275dir=i.lG2({type:J,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),J})();class Ci{constructor(){this.$implicit=null,this.ngIf=null}}function zi(J,Ve){if(Ve&&!Ve.createEmbeddedView)throw new Error(`${J} must be a TemplateRef, but received '${(0,i.AaK)(Ve)}'.`)}class hr{constructor(Ve,q){this._viewContainerRef=Ve,this._templateRef=q,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Ve){Ve&&!this._created?this.create():!Ve&&this._created&&this.destroy()}}let Wi=(()=>{class J{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(q){this._ngSwitch=q,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(q){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(q)}_matchCase(q){const Qe=q==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Qe,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Qe}_updateDefaultCases(q){if(this._defaultViews&&q!==this._defaultUsed){this._defaultUsed=q;for(let Qe=0;Qe{class J{constructor(q,Qe,kt){this.ngSwitch=kt,kt._addCase(),this._view=new hr(q,Qe)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return J.\u0275fac=function(q){return new(q||J)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(Wi,9))},J.\u0275dir=i.lG2({type:J,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),J})(),fi=(()=>{class J{constructor(q,Qe,kt){kt._addDefault(new hr(q,Qe))}}return J.\u0275fac=function(q){return new(q||J)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(Wi,9))},J.\u0275dir=i.lG2({type:J,selectors:[["","ngSwitchDefault",""]],standalone:!0}),J})(),Un=(()=>{class J{constructor(q,Qe,kt){this._ngEl=q,this._differs=Qe,this._renderer=kt,this._ngStyle=null,this._differ=null}set ngStyle(q){this._ngStyle=q,!this._differ&&q&&(this._differ=this._differs.find(q).create())}ngDoCheck(){if(this._differ){const q=this._differ.diff(this._ngStyle);q&&this._applyChanges(q)}}_setStyle(q,Qe){const[kt,Xt]=q.split("."),Kt=-1===kt.indexOf("-")?void 0:i.JOm.DashCase;null!=Qe?this._renderer.setStyle(this._ngEl.nativeElement,kt,Xt?`${Qe}${Xt}`:Qe,Kt):this._renderer.removeStyle(this._ngEl.nativeElement,kt,Kt)}_applyChanges(q){q.forEachRemovedItem(Qe=>this._setStyle(Qe.key,null)),q.forEachAddedItem(Qe=>this._setStyle(Qe.key,Qe.currentValue)),q.forEachChangedItem(Qe=>this._setStyle(Qe.key,Qe.currentValue))}}return J.\u0275fac=function(q){return new(q||J)(i.Y36(i.SBq),i.Y36(i.aQg),i.Y36(i.Qsj))},J.\u0275dir=i.lG2({type:J,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),J})();function Fi(J,Ve){return new i.vHH(2100,!1)}class Ti{createSubscription(Ve,q){return Ve.subscribe({next:q,error:Qe=>{throw Qe}})}dispose(Ve){Ve.unsubscribe()}}class Sr{createSubscription(Ve,q){return Ve.then(q,Qe=>{throw Qe})}dispose(Ve){}}const sr=new Sr,qi=new Ti;let fr=(()=>{class J{constructor(q){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=q}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(q){return this._obj?q!==this._obj?(this._dispose(),this.transform(q)):this._latestValue:(q&&this._subscribe(q),this._latestValue)}_subscribe(q){this._obj=q,this._strategy=this._selectStrategy(q),this._subscription=this._strategy.createSubscription(q,Qe=>this._updateLatestValue(q,Qe))}_selectStrategy(q){if((0,i.QGY)(q))return sr;if((0,i.F4k)(q))return qi;throw Fi()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(q,Qe){q===this._obj&&(this._latestValue=Qe,this._ref.markForCheck())}}return J.\u0275fac=function(q){return new(q||J)(i.Y36(i.sBO,16))},J.\u0275pipe=i.Yjl({name:"async",type:J,pure:!1,standalone:!0}),J})(),Yi=(()=>{class J{transform(q){return JSON.stringify(q,null,2)}}return J.\u0275fac=function(q){return new(q||J)},J.\u0275pipe=i.Yjl({name:"json",type:J,pure:!1,standalone:!0}),J})(),vr=(()=>{class J{constructor(q){this.differs=q,this.keyValues=[],this.compareFn=ir}transform(q,Qe=ir){if(!q||!(q instanceof Map)&&"object"!=typeof q)return null;this.differ||(this.differ=this.differs.find(q).create());const kt=this.differ.diff(q),Xt=Qe!==this.compareFn;return kt&&(this.keyValues=[],kt.forEachItem(Kt=>{this.keyValues.push(function Li(J,Ve){return{key:J,value:Ve}}(Kt.key,Kt.currentValue))})),(kt||Xt)&&(this.keyValues.sort(Qe),this.compareFn=Qe),this.keyValues}}return J.\u0275fac=function(q){return new(q||J)(i.Y36(i.aQg,16))},J.\u0275pipe=i.Yjl({name:"keyvalue",type:J,pure:!1,standalone:!0}),J})();function ir(J,Ve){const q=J.key,Qe=Ve.key;if(q===Qe)return 0;if(void 0===q)return 1;if(void 0===Qe)return-1;if(null===q)return 1;if(null===Qe)return-1;if("string"==typeof q&&"string"==typeof Qe)return q{class J{constructor(q){this._locale=q}transform(q,Qe,kt){if(!function Vi(J){return!(null==J||""===J||J!=J)}(q))return null;kt=kt||this._locale;try{return function qn(J,Ve,q){return function kn(J,Ve,q,Qe,kt,Xt,Kt=!1){let Sn="",Gn=!1;if(isFinite(J)){let Wn=function re(J){let Qe,kt,Xt,Kt,Sn,Ve=Math.abs(J)+"",q=0;for((kt=Ve.indexOf("."))>-1&&(Ve=Ve.replace(".","")),(Xt=Ve.search(/e/i))>0?(kt<0&&(kt=Xt),kt+=+Ve.slice(Xt+1),Ve=Ve.substring(0,Xt)):kt<0&&(kt=Ve.length),Xt=0;"0"===Ve.charAt(Xt);Xt++);if(Xt===(Sn=Ve.length))Qe=[0],kt=1;else{for(Sn--;"0"===Ve.charAt(Sn);)Sn--;for(kt-=Xt,Qe=[],Kt=0;Xt<=Sn;Xt++,Kt++)Qe[Kt]=Number(Ve.charAt(Xt))}return kt>22&&(Qe=Qe.splice(0,21),q=kt-1,kt=1),{digits:Qe,exponent:q,integerLen:kt}}(J);Kt&&(Wn=function fe(J){if(0===J.digits[0])return J;const Ve=J.digits.length-J.integerLen;return J.exponent?J.exponent+=2:(0===Ve?J.digits.push(0,0):1===Ve&&J.digits.push(0),J.integerLen+=2),J}(Wn));let ii=Ve.minInt,Nn=Ve.minFrac,Yn=Ve.maxFrac;if(Xt){const Ii=Xt.match(Ut);if(null===Ii)throw new Error(`${Xt} is not a valid digit info`);const li=Ii[1],Dr=Ii[3],Qi=Ii[5];null!=li&&(ii=gt(li)),null!=Dr&&(Nn=gt(Dr)),null!=Qi?Yn=gt(Qi):null!=Dr&&Nn>Yn&&(Yn=Nn)}!function Se(J,Ve,q){if(Ve>q)throw new Error(`The minimum number of digits after fraction (${Ve}) is higher than the maximum (${q}).`);let Qe=J.digits,kt=Qe.length-J.integerLen;const Xt=Math.min(Math.max(Ve,kt),q);let Kt=Xt+J.integerLen,Sn=Qe[Kt];if(Kt>0){Qe.splice(Math.max(J.integerLen,Kt));for(let Nn=Kt;Nn=5)if(Kt-1<0){for(let Nn=0;Nn>Kt;Nn--)Qe.unshift(0),J.integerLen++;Qe.unshift(1),J.integerLen++}else Qe[Kt-1]++;for(;kt=Wn?di.pop():Gn=!1),Yn>=10?1:0},0);ii&&(Qe.unshift(ii),J.integerLen++)}(Wn,Nn,Yn);let Kn=Wn.digits,di=Wn.integerLen;const on=Wn.exponent;let Hn=[];for(Gn=Kn.every(Ii=>!Ii);di0?Hn=Kn.splice(di,Kn.length):(Hn=Kn,Kn=[0]);const cr=[];for(Kn.length>=Ve.lgSize&&cr.unshift(Kn.splice(-Ve.lgSize,Kn.length).join(""));Kn.length>Ve.gSize;)cr.unshift(Kn.splice(-Ve.gSize,Kn.length).join(""));Kn.length&&cr.unshift(Kn.join("")),Sn=cr.join(be(q,Qe)),Hn.length&&(Sn+=be(q,kt)+Hn.join("")),on&&(Sn+=be(q,Ae.Exponential)+"+"+on)}else Sn=be(q,Ae.Infinity);return Sn=J<0&&!Gn?Ve.negPre+Sn+Ve.negSuf:Ve.posPre+Sn+Ve.posSuf,Sn}(J,function Ne(J,Ve="-"){const q={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Qe=J.split(";"),kt=Qe[0],Xt=Qe[1],Kt=-1!==kt.indexOf(".")?kt.split("."):[kt.substring(0,kt.lastIndexOf("0")+1),kt.substring(kt.lastIndexOf("0")+1)],Sn=Kt[0],Gn=Kt[1]||"";q.posPre=Sn.substring(0,Sn.indexOf("#"));for(let ii=0;ii{class J{}return J.\u0275fac=function(q){return new(q||J)},J.\u0275mod=i.oAB({type:J}),J.\u0275inj=i.cJS({}),J})();const wi="browser";function Rr(J){return J===wi}function br(J){return"server"===J}let vi=(()=>{class J{}return J.\u0275prov=(0,i.Yz7)({token:J,providedIn:"root",factory:()=>new Di((0,i.LFG)(g),window)}),J})();class Di{constructor(Ve,q){this.document=Ve,this.window=q,this.offset=()=>[0,0]}setOffset(Ve){this.offset=Array.isArray(Ve)?()=>Ve:Ve}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Ve){this.supportsScrolling()&&this.window.scrollTo(Ve[0],Ve[1])}scrollToAnchor(Ve){if(!this.supportsScrolling())return;const q=function Hi(J,Ve){const q=J.getElementById(Ve)||J.getElementsByName(Ve)[0];if(q)return q;if("function"==typeof J.createTreeWalker&&J.body&&(J.body.createShadowRoot||J.body.attachShadow)){const Qe=J.createTreeWalker(J.body,NodeFilter.SHOW_ELEMENT);let kt=Qe.currentNode;for(;kt;){const Xt=kt.shadowRoot;if(Xt){const Kt=Xt.getElementById(Ve)||Xt.querySelector(`[name="${Ve}"]`);if(Kt)return Kt}kt=Qe.nextNode()}}return null}(this.document,Ve);q&&(this.scrollToElement(q),q.focus())}setHistoryScrollRestoration(Ve){if(this.supportScrollRestoration()){const q=this.window.history;q&&q.scrollRestoration&&(q.scrollRestoration=Ve)}}scrollToElement(Ve){const q=Ve.getBoundingClientRect(),Qe=q.left+this.window.pageXOffset,kt=q.top+this.window.pageYOffset,Xt=this.offset();this.window.scrollTo(Qe-Xt[0],kt-Xt[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Ve=Ki(this.window.history)||Ki(Object.getPrototypeOf(this.window.history));return!(!Ve||!Ve.writable&&!Ve.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function Ki(J){return Object.getOwnPropertyDescriptor(J,"scrollRestoration")}class Ei{}},529:(Ct,ke,u)=>{"use strict";u.d(ke,{JF:()=>m,eN:()=>ft});var i=u(6895),a=u(4650),c=u(1086),v=u(6498),b=u(1406),h=u(2198),g=u(4850);class D{}class B{}class O{constructor(H){this.normalizedNames=new Map,this.lazyUpdate=null,H?this.lazyInit="string"==typeof H?()=>{this.headers=new Map,H.split("\n").forEach(f=>{const _=f.indexOf(":");if(_>0){const T=f.slice(0,_),ve=T.toLowerCase(),Je=f.slice(_+1).trim();this.maybeSetNormalizedName(T,ve),this.headers.has(ve)?this.headers.get(ve).push(Je):this.headers.set(ve,[Je])}})}:()=>{this.headers=new Map,Object.keys(H).forEach(f=>{let _=H[f];const T=f.toLowerCase();"string"==typeof _&&(_=[_]),_.length>0&&(this.headers.set(T,_),this.maybeSetNormalizedName(f,T))})}:this.headers=new Map}has(H){return this.init(),this.headers.has(H.toLowerCase())}get(H){this.init();const f=this.headers.get(H.toLowerCase());return f&&f.length>0?f[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(H){return this.init(),this.headers.get(H.toLowerCase())||null}append(H,f){return this.clone({name:H,value:f,op:"a"})}set(H,f){return this.clone({name:H,value:f,op:"s"})}delete(H,f){return this.clone({name:H,value:f,op:"d"})}maybeSetNormalizedName(H,f){this.normalizedNames.has(f)||this.normalizedNames.set(f,H)}init(){this.lazyInit&&(this.lazyInit instanceof O?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(H=>this.applyUpdate(H)),this.lazyUpdate=null))}copyFrom(H){H.init(),Array.from(H.headers.keys()).forEach(f=>{this.headers.set(f,H.headers.get(f)),this.normalizedNames.set(f,H.normalizedNames.get(f))})}clone(H){const f=new O;return f.lazyInit=this.lazyInit&&this.lazyInit instanceof O?this.lazyInit:this,f.lazyUpdate=(this.lazyUpdate||[]).concat([H]),f}applyUpdate(H){const f=H.name.toLowerCase();switch(H.op){case"a":case"s":let _=H.value;if("string"==typeof _&&(_=[_]),0===_.length)return;this.maybeSetNormalizedName(H.name,f);const T=("a"===H.op?this.headers.get(f):void 0)||[];T.push(..._),this.headers.set(f,T);break;case"d":const ve=H.value;if(ve){let Je=this.headers.get(f);if(!Je)return;Je=Je.filter(ze=>-1===ve.indexOf(ze)),0===Je.length?(this.headers.delete(f),this.normalizedNames.delete(f)):this.headers.set(f,Je)}else this.headers.delete(f),this.normalizedNames.delete(f)}}forEach(H){this.init(),Array.from(this.normalizedNames.keys()).forEach(f=>H(this.normalizedNames.get(f),this.headers.get(f)))}}class k{encodeKey(H){return we(H)}encodeValue(H){return we(H)}decodeKey(H){return decodeURIComponent(H)}decodeValue(H){return decodeURIComponent(H)}}const z=/%(\d[a-f0-9])/gi,ae={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function we(X){return encodeURIComponent(X).replace(z,(H,f)=>ae[f]??H)}function ue(X){return`${X}`}class le{constructor(H={}){if(this.updates=null,this.cloneFrom=null,this.encoder=H.encoder||new k,H.fromString){if(H.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function F(X,H){const f=new Map;return X.length>0&&X.replace(/^\?/,"").split("&").forEach(T=>{const ve=T.indexOf("="),[Je,ze]=-1==ve?[H.decodeKey(T),""]:[H.decodeKey(T.slice(0,ve)),H.decodeValue(T.slice(ve+1))],St=f.get(Je)||[];St.push(ze),f.set(Je,St)}),f}(H.fromString,this.encoder)}else H.fromObject?(this.map=new Map,Object.keys(H.fromObject).forEach(f=>{const _=H.fromObject[f],T=Array.isArray(_)?_.map(ue):[ue(_)];this.map.set(f,T)})):this.map=null}has(H){return this.init(),this.map.has(H)}get(H){this.init();const f=this.map.get(H);return f?f[0]:null}getAll(H){return this.init(),this.map.get(H)||null}keys(){return this.init(),Array.from(this.map.keys())}append(H,f){return this.clone({param:H,value:f,op:"a"})}appendAll(H){const f=[];return Object.keys(H).forEach(_=>{const T=H[_];Array.isArray(T)?T.forEach(ve=>{f.push({param:_,value:ve,op:"a"})}):f.push({param:_,value:T,op:"a"})}),this.clone(f)}set(H,f){return this.clone({param:H,value:f,op:"s"})}delete(H,f){return this.clone({param:H,value:f,op:"d"})}toString(){return this.init(),this.keys().map(H=>{const f=this.encoder.encodeKey(H);return this.map.get(H).map(_=>f+"="+this.encoder.encodeValue(_)).join("&")}).filter(H=>""!==H).join("&")}clone(H){const f=new le({encoder:this.encoder});return f.cloneFrom=this.cloneFrom||this,f.updates=(this.updates||[]).concat(H),f}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(H=>this.map.set(H,this.cloneFrom.map.get(H))),this.updates.forEach(H=>{switch(H.op){case"a":case"s":const f=("a"===H.op?this.map.get(H.param):void 0)||[];f.push(ue(H.value)),this.map.set(H.param,f);break;case"d":if(void 0===H.value){this.map.delete(H.param);break}{let _=this.map.get(H.param)||[];const T=_.indexOf(ue(H.value));-1!==T&&_.splice(T,1),_.length>0?this.map.set(H.param,_):this.map.delete(H.param)}}}),this.cloneFrom=this.updates=null)}}class W{constructor(){this.map=new Map}set(H,f){return this.map.set(H,f),this}get(H){return this.map.has(H)||this.map.set(H,H.defaultValue()),this.map.get(H)}delete(H){return this.map.delete(H),this}has(H){return this.map.has(H)}keys(){return this.map.keys()}}function he(X){return typeof ArrayBuffer<"u"&&X instanceof ArrayBuffer}function se(X){return typeof Blob<"u"&&X instanceof Blob}function Me(X){return typeof FormData<"u"&&X instanceof FormData}class it{constructor(H,f,_,T){let ve;if(this.url=f,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=H.toUpperCase(),function ie(X){switch(X){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||T?(this.body=void 0!==_?_:null,ve=T):ve=_,ve&&(this.reportProgress=!!ve.reportProgress,this.withCredentials=!!ve.withCredentials,ve.responseType&&(this.responseType=ve.responseType),ve.headers&&(this.headers=ve.headers),ve.context&&(this.context=ve.context),ve.params&&(this.params=ve.params)),this.headers||(this.headers=new O),this.context||(this.context=new W),this.params){const Je=this.params.toString();if(0===Je.length)this.urlWithParams=f;else{const ze=f.indexOf("?");this.urlWithParams=f+(-1===ze?"?":zeye.set(qe,H.setHeaders[qe]),St)),H.setParams&&(ht=Object.keys(H.setParams).reduce((ye,qe)=>ye.set(qe,H.setParams[qe]),ht)),new it(f,_,ve,{params:ht,headers:St,context:Et,reportProgress:ze,responseType:T,withCredentials:Je})}}var Ke=(()=>((Ke=Ke||{})[Ke.Sent=0]="Sent",Ke[Ke.UploadProgress=1]="UploadProgress",Ke[Ke.ResponseHeader=2]="ResponseHeader",Ke[Ke.DownloadProgress=3]="DownloadProgress",Ke[Ke.Response=4]="Response",Ke[Ke.User=5]="User",Ke))();class tt{constructor(H,f=200,_="OK"){this.headers=H.headers||new O,this.status=void 0!==H.status?H.status:f,this.statusText=H.statusText||_,this.url=H.url||null,this.ok=this.status>=200&&this.status<300}}class me extends tt{constructor(H={}){super(H),this.type=Ke.ResponseHeader}clone(H={}){return new me({headers:H.headers||this.headers,status:void 0!==H.status?H.status:this.status,statusText:H.statusText||this.statusText,url:H.url||this.url||void 0})}}class Xe extends tt{constructor(H={}){super(H),this.type=Ke.Response,this.body=void 0!==H.body?H.body:null}clone(H={}){return new Xe({body:void 0!==H.body?H.body:this.body,headers:H.headers||this.headers,status:void 0!==H.status?H.status:this.status,statusText:H.statusText||this.statusText,url:H.url||this.url||void 0})}}class Ae extends tt{constructor(H){super(H,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${H.url||"(unknown url)"}`:`Http failure response for ${H.url||"(unknown url)"}: ${H.status} ${H.statusText}`,this.error=H.error||null}}function yt(X,H){return{body:H,headers:X.headers,context:X.context,observe:X.observe,params:X.params,reportProgress:X.reportProgress,responseType:X.responseType,withCredentials:X.withCredentials}}let ft=(()=>{class X{constructor(f){this.handler=f}request(f,_,T={}){let ve;if(f instanceof it)ve=f;else{let St,ht;St=T.headers instanceof O?T.headers:new O(T.headers),T.params&&(ht=T.params instanceof le?T.params:new le({fromObject:T.params})),ve=new it(f,_,void 0!==T.body?T.body:null,{headers:St,context:T.context,params:ht,reportProgress:T.reportProgress,responseType:T.responseType||"json",withCredentials:T.withCredentials})}const Je=(0,c.of)(ve).pipe((0,b.b)(St=>this.handler.handle(St)));if(f instanceof it||"events"===T.observe)return Je;const ze=Je.pipe((0,h.h)(St=>St instanceof Xe));switch(T.observe||"body"){case"body":switch(ve.responseType){case"arraybuffer":return ze.pipe((0,g.U)(St=>{if(null!==St.body&&!(St.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return St.body}));case"blob":return ze.pipe((0,g.U)(St=>{if(null!==St.body&&!(St.body instanceof Blob))throw new Error("Response is not a Blob.");return St.body}));case"text":return ze.pipe((0,g.U)(St=>{if(null!==St.body&&"string"!=typeof St.body)throw new Error("Response is not a string.");return St.body}));default:return ze.pipe((0,g.U)(St=>St.body))}case"response":return ze;default:throw new Error(`Unreachable: unhandled observe type ${T.observe}}`)}}delete(f,_={}){return this.request("DELETE",f,_)}get(f,_={}){return this.request("GET",f,_)}head(f,_={}){return this.request("HEAD",f,_)}jsonp(f,_){return this.request("JSONP",f,{params:(new le).append(_,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(f,_={}){return this.request("OPTIONS",f,_)}patch(f,_,T={}){return this.request("PATCH",f,yt(T,_))}post(f,_,T={}){return this.request("POST",f,yt(T,_))}put(f,_,T={}){return this.request("PUT",f,yt(T,_))}}return X.\u0275fac=function(f){return new(f||X)(a.LFG(D))},X.\u0275prov=a.Yz7({token:X,factory:X.\u0275fac}),X})();class Yt{constructor(H,f){this.next=H,this.interceptor=f}handle(H){return this.interceptor.intercept(H,this.next)}}const Dt=new a.OlP("HTTP_INTERCEPTORS");let jt=(()=>{class X{intercept(f,_){return _.handle(f)}}return X.\u0275fac=function(f){return new(f||X)},X.\u0275prov=a.Yz7({token:X,factory:X.\u0275fac}),X})();const _t=/^\)\]\}',?\n/;let at=(()=>{class X{constructor(f){this.xhrFactory=f}handle(f){if("JSONP"===f.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new v.y(_=>{const T=this.xhrFactory.build();if(T.open(f.method,f.urlWithParams),f.withCredentials&&(T.withCredentials=!0),f.headers.forEach((xe,Fe)=>T.setRequestHeader(xe,Fe.join(","))),f.headers.has("Accept")||T.setRequestHeader("Accept","application/json, text/plain, */*"),!f.headers.has("Content-Type")){const xe=f.detectContentTypeHeader();null!==xe&&T.setRequestHeader("Content-Type",xe)}if(f.responseType){const xe=f.responseType.toLowerCase();T.responseType="json"!==xe?xe:"text"}const ve=f.serializeBody();let Je=null;const ze=()=>{if(null!==Je)return Je;const xe=T.statusText||"OK",Fe=new O(T.getAllResponseHeaders()),ot=function Be(X){return"responseURL"in X&&X.responseURL?X.responseURL:/^X-Request-URL:/m.test(X.getAllResponseHeaders())?X.getResponseHeader("X-Request-URL"):null}(T)||f.url;return Je=new me({headers:Fe,status:T.status,statusText:xe,url:ot}),Je},St=()=>{let{headers:xe,status:Fe,statusText:ot,url:ce}=ze(),Ue=null;204!==Fe&&(Ue=typeof T.response>"u"?T.responseText:T.response),0===Fe&&(Fe=Ue?200:0);let Ce=Fe>=200&&Fe<300;if("json"===f.responseType&&"string"==typeof Ue){const Ye=Ue;Ue=Ue.replace(_t,"");try{Ue=""!==Ue?JSON.parse(Ue):null}catch(Pe){Ue=Ye,Ce&&(Ce=!1,Ue={error:Pe,text:Ue})}}Ce?(_.next(new Xe({body:Ue,headers:xe,status:Fe,statusText:ot,url:ce||void 0})),_.complete()):_.error(new Ae({error:Ue,headers:xe,status:Fe,statusText:ot,url:ce||void 0}))},ht=xe=>{const{url:Fe}=ze(),ot=new Ae({error:xe,status:T.status||0,statusText:T.statusText||"Unknown Error",url:Fe||void 0});_.error(ot)};let Et=!1;const ye=xe=>{Et||(_.next(ze()),Et=!0);let Fe={type:Ke.DownloadProgress,loaded:xe.loaded};xe.lengthComputable&&(Fe.total=xe.total),"text"===f.responseType&&!!T.responseText&&(Fe.partialText=T.responseText),_.next(Fe)},qe=xe=>{let Fe={type:Ke.UploadProgress,loaded:xe.loaded};xe.lengthComputable&&(Fe.total=xe.total),_.next(Fe)};return T.addEventListener("load",St),T.addEventListener("error",ht),T.addEventListener("timeout",ht),T.addEventListener("abort",ht),f.reportProgress&&(T.addEventListener("progress",ye),null!==ve&&T.upload&&T.upload.addEventListener("progress",qe)),T.send(ve),_.next({type:Ke.Sent}),()=>{T.removeEventListener("error",ht),T.removeEventListener("abort",ht),T.removeEventListener("load",St),T.removeEventListener("timeout",ht),f.reportProgress&&(T.removeEventListener("progress",ye),null!==ve&&T.upload&&T.upload.removeEventListener("progress",qe)),T.readyState!==T.DONE&&T.abort()}})}}return X.\u0275fac=function(f){return new(f||X)(a.LFG(i.JF))},X.\u0275prov=a.Yz7({token:X,factory:X.\u0275fac}),X})();const nt=new a.OlP("XSRF_COOKIE_NAME"),Q=new a.OlP("XSRF_HEADER_NAME");class Le{}let ee=(()=>{class X{constructor(f,_,T){this.doc=f,this.platform=_,this.cookieName=T,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const f=this.doc.cookie||"";return f!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,i.Mx)(f,this.cookieName),this.lastCookieString=f),this.lastToken}}return X.\u0275fac=function(f){return new(f||X)(a.LFG(i.K0),a.LFG(a.Lbi),a.LFG(nt))},X.\u0275prov=a.Yz7({token:X,factory:X.\u0275fac}),X})(),R=(()=>{class X{constructor(f,_){this.tokenService=f,this.headerName=_}intercept(f,_){const T=f.url.toLowerCase();if("GET"===f.method||"HEAD"===f.method||T.startsWith("http://")||T.startsWith("https://"))return _.handle(f);const ve=this.tokenService.getToken();return null!==ve&&!f.headers.has(this.headerName)&&(f=f.clone({headers:f.headers.set(this.headerName,ve)})),_.handle(f)}}return X.\u0275fac=function(f){return new(f||X)(a.LFG(Le),a.LFG(Q))},X.\u0275prov=a.Yz7({token:X,factory:X.\u0275fac}),X})(),U=(()=>{class X{constructor(f,_){this.backend=f,this.injector=_,this.chain=null}handle(f){if(null===this.chain){const _=this.injector.get(Dt,[]);this.chain=_.reduceRight((T,ve)=>new Yt(T,ve),this.backend)}return this.chain.handle(f)}}return X.\u0275fac=function(f){return new(f||X)(a.LFG(B),a.LFG(a.zs3))},X.\u0275prov=a.Yz7({token:X,factory:X.\u0275fac}),X})(),p=(()=>{class X{static disable(){return{ngModule:X,providers:[{provide:R,useClass:jt}]}}static withOptions(f={}){return{ngModule:X,providers:[f.cookieName?{provide:nt,useValue:f.cookieName}:[],f.headerName?{provide:Q,useValue:f.headerName}:[]]}}}return X.\u0275fac=function(f){return new(f||X)},X.\u0275mod=a.oAB({type:X}),X.\u0275inj=a.cJS({providers:[R,{provide:Dt,useExisting:R,multi:!0},{provide:Le,useClass:ee},{provide:nt,useValue:"XSRF-TOKEN"},{provide:Q,useValue:"X-XSRF-TOKEN"}]}),X})(),m=(()=>{class X{}return X.\u0275fac=function(f){return new(f||X)},X.\u0275mod=a.oAB({type:X}),X.\u0275inj=a.cJS({providers:[ft,{provide:D,useClass:U},at,{provide:B,useExisting:at}],imports:[p.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),X})()},4650:(Ct,ke,u)=>{"use strict";u.d(ke,{$8M:()=>ro,$Z:()=>Eh,AFp:()=>Bm,ALo:()=>im,AaK:()=>D,AsE:()=>qc,B6R:()=>ce,BQk:()=>Qa,CHM:()=>cr,CRH:()=>pm,CZH:()=>ll,CqO:()=>yf,D6c:()=>TC,DdM:()=>Qp,EJc:()=>$w,EiD:()=>gd,EpF:()=>gf,F$t:()=>Df,F4k:()=>_f,FYo:()=>Td,FiY:()=>Go,G48:()=>dC,Gf:()=>hm,GfV:()=>Id,GkF:()=>Uc,Gpc:()=>P,Gre:()=>tp,HTZ:()=>qp,Hsn:()=>Ef,Ikx:()=>Xc,JOm:()=>as,JVY:()=>Hg,Jzz:()=>np,KtG:()=>Ii,L6k:()=>jg,LAX:()=>Gg,LFG:()=>Zi,LSH:()=>Ol,Lbi:()=>Hw,Lck:()=>L0,MAs:()=>mf,MGl:()=>Za,MMx:()=>lu,NdJ:()=>$c,O4$:()=>Ze,OlP:()=>gi,Oqu:()=>Zc,PXZ:()=>sC,Q6J:()=>Vc,QGY:()=>Gc,QP$:()=>Fo,QbO:()=>jw,Qsj:()=>D_,R0b:()=>Gr,RDi:()=>Rg,Rgc:()=>pa,SBq:()=>qo,Sil:()=>Ww,Suo:()=>fm,TTD:()=>ir,TgZ:()=>Wa,Tol:()=>Hf,Udp:()=>Yc,VKq:()=>Zp,WFA:()=>zc,XFs:()=>R,Xpm:()=>ot,Xts:()=>kl,Y36:()=>_o,YKP:()=>jp,YNc:()=>pf,Yjl:()=>ut,Yz7:()=>Oe,ZZ4:()=>Ou,_Bn:()=>Hp,_UZ:()=>jc,_Vd:()=>Zo,_c5:()=>SC,_uU:()=>Yf,aQg:()=>ku,c2e:()=>Uw,cJS:()=>be,cg1:()=>eu,d8E:()=>Jc,dDg:()=>tC,dqk:()=>_,eBb:()=>Ug,eFA:()=>Zm,ekj:()=>Kc,eoX:()=>Ym,f3M:()=>qu,g9A:()=>Vm,h0i:()=>ko,hGG:()=>AC,hij:()=>Xa,iGM:()=>dm,ifc:()=>f,ip1:()=>Lm,kL8:()=>hp,kcU:()=>At,lG2:()=>st,lcZ:()=>rm,lqb:()=>Us,lri:()=>zm,mCW:()=>Yo,n5z:()=>ba,n_E:()=>il,oAB:()=>Ye,oxw:()=>Cf,pB0:()=>$g,q3G:()=>$i,qLn:()=>Xo,qOj:()=>Fc,qZA:()=>Ya,qzn:()=>uo,rWj:()=>Wm,s9C:()=>Wc,sBO:()=>hC,sIi:()=>sa,s_b:()=>sl,soG:()=>cl,tb:()=>Hm,tp0:()=>$o,uIk:()=>Nc,vHH:()=>ae,vpe:()=>hs,wAp:()=>Bn,xi3:()=>sm,xp6:()=>dh,ynx:()=>Ka,z2F:()=>ul,z3N:()=>gs,zSh:()=>Ll,zs3:()=>$s});var i=u(8929),a=u(2654),c=u(6498),v=u(6787),b=u(2474);function h(e){for(let t in e)if(e[t]===h)return t;throw Error("Could not find renamed property on target object.")}function g(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function D(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(D).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function B(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const O=h({__forward_ref__:h});function P(e){return e.__forward_ref__=P,e.toString=function(){return D(this())},e}function k(e){return F(e)?e():e}function F(e){return"function"==typeof e&&e.hasOwnProperty(O)&&e.__forward_ref__===P}class ae extends Error{constructor(t,n){super(function we(e,t){return`NG0${Math.abs(e)}${t?": "+t.trim():""}`}(t,n)),this.code=t}}function ue(e){return"string"==typeof e?e:null==e?"":String(e)}function he(e,t){throw new ae(-201,!1)}function jt(e,t){null==e&&function V(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function Oe(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function be(e){return{providers:e.providers||[],imports:e.imports||[]}}function et(e){return Mt(e,nt)||Mt(e,Le)}function Mt(e,t){return e.hasOwnProperty(t)?e[t]:null}function at(e){return e&&(e.hasOwnProperty(Q)||e.hasOwnProperty(ee))?e[Q]:null}const nt=h({\u0275prov:h}),Q=h({\u0275inj:h}),Le=h({ngInjectableDef:h}),ee=h({ngInjectorDef:h});var R=(()=>((R=R||{})[R.Default=0]="Default",R[R.Host=1]="Host",R[R.Self=2]="Self",R[R.SkipSelf=4]="SkipSelf",R[R.Optional=8]="Optional",R))();let U;function x(e){const t=U;return U=e,t}function p(e,t,n){const r=et(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&R.Optional?null:void 0!==t?t:void he(D(e))}function j(e){return{toString:e}.toString()}var de=(()=>((de=de||{})[de.OnPush=0]="OnPush",de[de.Default=1]="Default",de))(),f=(()=>{return(e=f||(f={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",f;var e})();const _=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Je={},ze=[],St=h({\u0275cmp:h}),ht=h({\u0275dir:h}),Et=h({\u0275pipe:h}),ye=h({\u0275mod:h}),qe=h({\u0275fac:h}),xe=h({__NG_ELEMENT_ID__:h});let Fe=0;function ot(e){return j(()=>{const n=!0===e.standalone,r={},s={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===de.OnPush,directiveDefs:null,pipeDefs:null,standalone:n,dependencies:n&&e.dependencies||null,getStandaloneInjector:null,selectors:e.selectors||ze,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||f.Emulated,id:"c"+Fe++,styles:e.styles||ze,_:null,setInput:null,schemas:e.schemas||null,tView:null},l=e.dependencies,y=e.features;return s.inputs=wt(e.inputs,r),s.outputs=wt(e.outputs),y&&y.forEach(I=>I(s)),s.directiveDefs=l?()=>("function"==typeof l?l():l).map(Ue).filter(Ce):null,s.pipeDefs=l?()=>("function"==typeof l?l():l).map(We).filter(Ce):null,s})}function ce(e,t,n){const r=e.\u0275cmp;r.directiveDefs=()=>("function"==typeof t?t():t).map(Ue),r.pipeDefs=()=>("function"==typeof n?n():n).map(We)}function Ue(e){return Ht(e)||an(e)}function Ce(e){return null!==e}function Ye(e){return j(()=>({type:e.type,bootstrap:e.bootstrap||ze,declarations:e.declarations||ze,imports:e.imports||ze,exports:e.exports||ze,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function wt(e,t){if(null==e)return Je;const n={};for(const r in e)if(e.hasOwnProperty(r)){let s=e[r],l=s;Array.isArray(s)&&(l=s[1],s=s[0]),n[s]=r,t&&(t[s]=l)}return n}const st=ot;function ut(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ht(e){return e[St]||null}function an(e){return e[ht]||null}function We(e){return e[Et]||null}function rt(e,t){const n=e[ye]||null;if(!n&&!0===t)throw new Error(`Type ${D(e)} does not have '\u0275mod' property.`);return n}function Xn(e){return Array.isArray(e)&&"object"==typeof e[1]}function Ci(e){return Array.isArray(e)&&!0===e[1]}function zi(e){return 0!=(8&e.flags)}function hr(e){return 2==(2&e.flags)}function Wi(e){return 1==(1&e.flags)}function _i(e){return null!==e.template}function fi(e){return 0!=(256&e[2])}function Li(e,t){return e.hasOwnProperty(qe)?e[qe]:null}class vr{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function ir(){return Oi}function Oi(e){return e.type.prototype.ngOnChanges&&(e.setInput=zr),Pr}function Pr(){const e=ar(this),t=e?.current;if(t){const n=e.previous;if(n===Je)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function zr(e,t,n,r){const s=ar(e)||function Ir(e,t){return e[Vi]=t}(e,{previous:Je,current:null}),l=s.current||(s.current={}),y=s.previous,I=this.declaredInputs[n],N=y[I];l[I]=new vr(N&&N.currentValue,t,y===Je),e[r]=t}ir.ngInherit=!0;const Vi="__ngSimpleChanges__";function ar(e){return e[Vi]||null}function Jn(e){for(;Array.isArray(e);)e=e[0];return e}function vi(e,t){return Jn(t[e])}function Di(e,t){return Jn(t[e.index])}function Hi(e,t){return e.data[t]}function ji(e,t){return e[t]}function Ei(e,t){const n=t[e];return Xn(n)?n:n[0]}function J(e){return 4==(4&e[2])}function Ve(e){return 64==(64&e[2])}function Qe(e,t){return null==t?null:e[t]}function kt(e){e[18]=0}function Xt(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const Kt={lFrame:M(null),bindingsEnabled:!0};function Yn(){return Kt.bindingsEnabled}function on(){return Kt.lFrame.lView}function Hn(){return Kt.lFrame.tView}function cr(e){return Kt.lFrame.contextLView=e,e[8]}function Ii(e){return Kt.lFrame.contextLView=null,e}function li(){let e=Dr();for(;null!==e&&64===e.type;)e=e.parent;return e}function Dr(){return Kt.lFrame.currentTNode}function te(e,t){const n=Kt.lFrame;n.currentTNode=e,n.isParent=t}function K(){return Kt.lFrame.isParent}function $(){Kt.lFrame.isParent=!1}function mi(){const e=Kt.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Br(){return Kt.lFrame.bindingIndex++}function Or(e){const t=Kt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Nr(e,t){const n=Kt.lFrame;n.bindingIndex=n.bindingRootIndex=e,hi(t)}function hi(e){Kt.lFrame.currentDirectiveIndex=e}function Vr(e){const t=Kt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Ji(){return Kt.lFrame.currentQueryIndex}function ws(e){Kt.lFrame.currentQueryIndex=e}function Cs(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Ds(e,t,n){if(n&R.SkipSelf){let s=t,l=e;for(;!(s=s.parent,null!==s||n&R.Host||(s=Cs(l),null===s||(l=l[15],10&s.type))););if(null===s)return!1;t=s,e=l}const r=Kt.lFrame=w();return r.currentTNode=t,r.lView=e,!0}function Te(e){const t=w(),n=e[1];Kt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function w(){const e=Kt.lFrame,t=null===e?null:e.child;return null===t?M(e):t}function M(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Y(){const e=Kt.lFrame;return Kt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Ie=Y;function o(){const e=Y();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function L(){return Kt.lFrame.selectedIndex}function Z(e){Kt.lFrame.selectedIndex=e}function De(){const e=Kt.lFrame;return Hi(e.tView,e.selectedIndex)}function Ze(){Kt.lFrame.currentNamespace="svg"}function At(){!function bt(){Kt.lFrame.currentNamespace=null}()}function Lt(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[N]<0&&(e[18]+=65536),(I>11>16&&(3&e[2])===t){e[2]+=2048;try{l.call(I)}finally{}}}else try{l.call(I)}finally{}}class Qt{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function dn(e,t,n){let r=0;for(;rt){y=l-1;break}}}for(;l>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let ur=!0;function Mi(e){const t=ur;return ur=e,t}let Rs=0;const Hr={};function Es(e,t){const n=ga(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Zs(r.data,e),Zs(t,null),Zs(r.blueprint,null));const s=qs(e,t),l=e.injectorIndex;if(ei(s)){const y=ri(s),I=xi(s,t),N=I[1].data;for(let pe=0;pe<8;pe++)t[l+pe]=I[y+pe]|N[y+pe]}return t[l+8]=s,l}function Zs(e,t){e.push(0,0,0,0,0,0,0,0,t)}function ga(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function qs(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,s=t;for(;null!==s;){if(r=wa(s),null===r)return-1;if(n++,s=s[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function Xs(e,t,n){!function Bo(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(xe)&&(r=n[xe]),null==r&&(r=n[xe]=Rs++);const s=255&r;t.data[e+(s>>5)]|=1<=0?255&t:ml:t}(n);if("function"==typeof l){if(!Ds(t,e,r))return r&R.Host?_a(s,0,r):Js(t,n,r,s);try{const y=l(r);if(null!=y||r&R.Optional)return y;he()}finally{Ie()}}else if("number"==typeof l){let y=null,I=ga(e,t),N=-1,pe=r&R.Host?t[16][6]:null;for((-1===I||r&R.SkipSelf)&&(N=-1===I?qs(e,t):t[I+8],-1!==N&&va(r,!1)?(y=t[1],I=ri(N),t=xi(N,t)):I=-1);-1!==I;){const He=t[1];if(ya(l,I,He.data)){const dt=Vo(I,t,n,y,r,pe);if(dt!==Hr)return dt}N=t[I+8],-1!==N&&va(r,t[1].data[I+8]===pe)&&ya(l,I,t)?(y=He,I=ri(N),t=xi(N,t)):I=-1}}return s}function Vo(e,t,n,r,s,l){const y=t[1],I=y.data[e+8],He=to(I,y,n,null==r?hr(I)&&ur:r!=y&&0!=(3&I.type),s&R.Host&&l===I);return null!==He?Os(t,y,He,I):Hr}function to(e,t,n,r,s){const l=e.providerIndexes,y=t.data,I=1048575&l,N=e.directiveStart,He=l>>20,Pt=s?I+He:e.directiveEnd;for(let $t=r?I:I+He;$t=N&&ln.type===n)return $t}if(s){const $t=y[N];if($t&&_i($t)&&$t.type===n)return N}return null}function Os(e,t,n,r){let s=e[n];const l=t.data;if(function tn(e){return e instanceof Qt}(s)){const y=s;y.resolving&&function ge(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new ae(-200,`Circular dependency in DI detected for ${e}${n}`)}(function le(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():ue(e)}(l[n]));const I=Mi(y.canSeeViewProviders);y.resolving=!0;const N=y.injectImpl?x(y.injectImpl):null;Ds(e,r,R.Default);try{s=e[n]=y.factory(void 0,l,e,r),t.firstCreatePass&&n>=r.directiveStart&&function xt(e,t,n){const{ngOnChanges:r,ngOnInit:s,ngDoCheck:l}=t.type.prototype;if(r){const y=Oi(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,y),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,y)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,s),l&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,l),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,l))}(n,l[n],t)}finally{null!==N&&x(N),Mi(I),y.resolving=!1,Ie()}}return s}function ya(e,t,n){return!!(n[t+(e>>5)]&1<{const t=e.prototype.constructor,n=t[qe]||io(t),r=Object.prototype;let s=Object.getPrototypeOf(e.prototype).constructor;for(;s&&s!==r;){const l=s[qe]||io(s);if(l&&l!==n)return l;s=Object.getPrototypeOf(s)}return l=>new l})}function io(e){return F(e)?()=>{const t=io(k(e));return t&&t()}:Li(e)}function wa(e){const t=e[1],n=t.type;return 2===n?t.declTNode:1===n?e[6]:null}function ro(e){return function pl(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let s=0;for(;s{const r=function so(e){return function(...n){if(e){const r=e(...n);for(const s in r)this[s]=r[s]}}}(t);function s(...l){if(this instanceof s)return r.apply(this,l),this;const y=new s(...l);return I.annotation=y,I;function I(N,pe,He){const dt=N.hasOwnProperty(Qr)?N[Qr]:Object.defineProperty(N,Qr,{value:[]})[Qr];for(;dt.length<=He;)dt.push(null);return(dt[He]=dt[He]||[]).push(y),N}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}class gi{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=Oe({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function mr(e,t){void 0===t&&(t=e);for(let n=0;nArray.isArray(n)?Zr(n,t):t(n))}function Ea(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ls(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Bs(e,t){const n=[];for(let r=0;r=0?e[1|r]=n:(r=~r,function wl(e,t,n,r){let s=e.length;if(s==t)e.push(n,r);else if(1===s)e.push(r,e[0]),e[0]=n;else{for(s--,e.push(e[s-1],e[s]);s>t;)e[s]=e[s-2],s--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function C(e,t){const n=G(e,t);if(n>=0)return e[1|n]}function G(e,t){return function je(e,t,n){let r=0,s=e.length>>n;for(;s!==r;){const l=r+(s-r>>1),y=e[l<t?s=l:r=l+1}return~(s<e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Sa}()?.createHTML(e)||e}class Hs{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Pg extends Hs{getTypeName(){return"HTML"}}class Fg extends Hs{getTypeName(){return"Style"}}class Lg extends Hs{getTypeName(){return"Script"}}class Bg extends Hs{getTypeName(){return"URL"}}class Ng extends Hs{getTypeName(){return"ResourceURL"}}function gs(e){return e instanceof Hs?e.changingThisBreaksApplicationSecurity:e}function uo(e,t){const n=function Vg(e){return e instanceof Hs&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function Hg(e){return new Pg(e)}function jg(e){return new Fg(e)}function Ug(e){return new Lg(e)}function Gg(e){return new Bg(e)}function $g(e){return new Ng(e)}class zg{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(co(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}}class Wg{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const r=this.inertDocument.createElement("body");n.appendChild(r)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=co(t),n;const r=this.inertDocument.createElement("body");return r.innerHTML=co(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(t){const n=t.attributes;for(let s=n.length-1;0Yo(t.trim())).join(", ")),this.buf.push(" ",y,'="',md(N),'"')}var e;return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();Al.hasOwnProperty(n)&&!dd.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(md(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const Xg=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Jg=/([^\#-~ |!])/g;function md(e){return e.replace(/&/g,"&").replace(Xg,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Jg,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Ta;function gd(e,t){let n=null;try{Ta=Ta||function cd(e){const t=new Wg(e);return function Yg(){try{return!!(new window.DOMParser).parseFromString(co(""),"text/html")}catch{return!1}}()?new zg(t):t}(e);let r=t?String(t):"";n=Ta.getInertBodyElement(r);let s=5,l=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=l,l=n.innerHTML,n=Ta.getInertBodyElement(r)}while(r!==l);return co((new qg).sanitizeChildren(Rl(n)||n))}finally{if(n){const r=Rl(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Rl(e){return"content"in e&&function e_(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var $i=(()=>(($i=$i||{})[$i.NONE=0]="NONE",$i[$i.HTML=1]="HTML",$i[$i.STYLE=2]="STYLE",$i[$i.SCRIPT=3]="SCRIPT",$i[$i.URL=4]="URL",$i[$i.RESOURCE_URL=5]="RESOURCE_URL",$i))();function Ol(e){const t=function Qo(){const e=on();return e&&e[12]}();return t?t.sanitize($i.URL,e)||"":uo(e,"URL")?gs(e):Yo(ue(e))}const kl=new gi("ENVIRONMENT_INITIALIZER"),yd=new gi("INJECTOR",-1),vd=new gi("INJECTOR_DEF_TYPES");class bd{get(t,n=jr){if(n===jr){const r=new Error(`NullInjectorError: No provider for ${D(t)}!`);throw r.name="NullInjectorError",r}return n}}function l_(...e){return{\u0275providers:wd(0,e)}}function wd(e,...t){const n=[],r=new Set;let s;return Zr(t,l=>{const y=l;Pl(y,n,[],r)&&(s||(s=[]),s.push(y))}),void 0!==s&&Cd(s,n),n}function Cd(e,t){for(let n=0;n{t.push(l)})}}function Pl(e,t,n,r){if(!(e=k(e)))return!1;let s=null,l=at(e);const y=!l&&Ht(e);if(l||y){if(y&&!y.standalone)return!1;s=e}else{const N=e.ngModule;if(l=at(N),!l)return!1;s=N}const I=r.has(s);if(y){if(I)return!1;if(r.add(s),y.dependencies){const N="function"==typeof y.dependencies?y.dependencies():y.dependencies;for(const pe of N)Pl(pe,t,n,r)}}else{if(!l)return!1;{if(null!=l.imports&&!I){let pe;r.add(s);try{Zr(l.imports,He=>{Pl(He,t,n,r)&&(pe||(pe=[]),pe.push(He))})}finally{}void 0!==pe&&Cd(pe,t)}if(!I){const pe=Li(s)||(()=>new s);t.push({provide:s,useFactory:pe,deps:ze},{provide:vd,useValue:s,multi:!0},{provide:kl,useValue:()=>Zi(s),multi:!0})}const N=l.providers;null==N||I||Zr(N,He=>{t.push(He)})}}return s!==e&&void 0!==e.providers}const c_=h({provide:String,useValue:h});function Fl(e){return null!==e&&"object"==typeof e&&c_ in e}function js(e){return"function"==typeof e}const Ll=new gi("Set Injector scope."),Ia={},d_={};let Bl;function Ra(){return void 0===Bl&&(Bl=new bd),Bl}class Us{}class xd extends Us{constructor(t,n,r,s){super(),this.parent=n,this.source=r,this.scopes=s,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Vl(t,y=>this.processProvider(y)),this.records.set(yd,ho(void 0,this)),s.has("environment")&&this.records.set(Us,ho(void 0,this));const l=this.records.get(Ll);null!=l&&"string"==typeof l.value&&this.scopes.add(l.value),this.injectorDefTypes=new Set(this.get(vd.multi,ze,R.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const n=ao(this),r=x(void 0);try{return t()}finally{ao(n),x(r)}}get(t,n=jr,r=R.Default){this.assertNotDestroyed();const s=ao(this),l=x(void 0);try{if(!(r&R.SkipSelf)){let I=this.records.get(t);if(void 0===I){const N=function g_(e){return"function"==typeof e||"object"==typeof e&&e instanceof gi}(t)&&et(t);I=N&&this.injectableDefInScope(N)?ho(Nl(t),Ia):null,this.records.set(t,I)}if(null!=I)return this.hydrate(t,I)}return(r&R.Self?Ra():this.parent).get(t,n=r&R.Optional&&n===jr?null:n)}catch(y){if("NullInjectorError"===y.name){if((y[Ns]=y[Ns]||[]).unshift(D(t)),s)throw y;return function bg(e,t,n,r){const s=e[Ns];throw t[Qu]&&s.unshift(t[Qu]),e.message=function wg(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let s=D(t);if(Array.isArray(t))s=t.map(D).join(" -> ");else if("object"==typeof t){let l=[];for(let y in t)if(t.hasOwnProperty(y)){let I=t[y];l.push(y+":"+("string"==typeof I?JSON.stringify(I):D(I)))}s=`{${l.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${e.replace(Cl,"\n ")}`}("\n"+e.message,s,n,r),e.ngTokenPath=s,e[Ns]=null,e}(y,t,"R3InjectorError",this.source)}throw y}finally{x(l),ao(s)}}resolveInjectorInitializers(){const t=ao(this),n=x(void 0);try{const r=this.get(kl.multi,ze,R.Self);for(const s of r)s()}finally{ao(t),x(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(D(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ae(205,!1)}processProvider(t){let n=js(t=k(t))?t:k(t&&t.provide);const r=function f_(e){return Fl(e)?ho(void 0,e.useValue):ho(Md(e),Ia)}(t);if(js(t)||!0!==t.multi)this.records.get(n);else{let s=this.records.get(n);s||(s=ho(void 0,Ia,!0),s.factory=()=>Dl(s.multi),this.records.set(n,s)),n=t,s.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===Ia&&(n.value=d_,n.value=n.factory()),"object"==typeof n.value&&n.value&&function m_(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=k(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}}function Nl(e){const t=et(e),n=null!==t?t.factory:Li(e);if(null!==n)return n;if(e instanceof gi)throw new ae(204,!1);if(e instanceof Function)return function h_(e){const t=e.length;if(t>0)throw Bs(t,"?"),new ae(204,!1);const n=function _t(e){const t=e&&(e[nt]||e[Le]);if(t){const n=function Be(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new ae(204,!1)}function Md(e,t,n){let r;if(js(e)){const s=k(e);return Li(s)||Nl(s)}if(Fl(e))r=()=>k(e.useValue);else if(function Ed(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Dl(e.deps||[]));else if(function Dd(e){return!(!e||!e.useExisting)}(e))r=()=>Zi(k(e.useExisting));else{const s=k(e&&(e.useClass||e.provide));if(!function p_(e){return!!e.deps}(e))return Li(s)||Nl(s);r=()=>new s(...Dl(e.deps))}return r}function ho(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function __(e){return!!e.\u0275providers}function Vl(e,t){for(const n of e)Array.isArray(n)?Vl(n,t):__(n)?Vl(n.\u0275providers,t):t(n)}class Sd{}class b_{resolveComponentFactory(t){throw function v_(e){const t=Error(`No component factory found for ${D(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Zo=(()=>{class e{}return e.NULL=new b_,e})();function w_(){return fo(li(),on())}function fo(e,t){return new qo(Di(e,t))}let qo=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=w_,e})();function C_(e){return e instanceof qo?e.nativeElement:e}class Td{}let D_=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function E_(){const e=on(),n=Ei(li().index,e);return(Xn(n)?n:e)[11]}(),e})(),x_=(()=>{class e{}return e.\u0275prov=Oe({token:e,providedIn:"root",factory:()=>null}),e})();class Id{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const M_=new Id("14.1.3"),Hl={};function zl(e){return e.ngOriginalError}class Xo{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&zl(t);for(;n&&zl(n);)n=zl(n);return n||null}}const Wl=new Map;let N_=0;const Kl="__ngContext__";function gr(e,t){Xn(t)?(e[Kl]=t[20],function H_(e){Wl.set(e[20],e)}(t)):e[Kl]=t}function Jo(e){const t=e[Kl];return"number"==typeof t?function Ld(e){return Wl.get(e)||null}(t):t||null}function Ql(e){const t=Jo(e);return t?Xn(t)?t:t.lView:null}const Q_=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(_))();function _s(e){return e instanceof Function?e():e}var as=(()=>((as=as||{})[as.Important=1]="Important",as[as.DashCase=2]="DashCase",as))();function ql(e,t){return undefined(e,t)}function ea(e){const t=e[3];return Ci(t)?t[3]:t}function Xl(e){return $d(e[13])}function Jl(e){return $d(e[4])}function $d(e){for(;null!==e&&!Ci(e);)e=e[4];return e}function mo(e,t,n,r,s){if(null!=r){let l,y=!1;Ci(r)?l=r:Xn(r)&&(y=!0,r=r[0]);const I=Jn(r);0===e&&null!==n?null==s?Zd(t,n,I):Gs(t,n,I,s||null,!0):1===e&&null!==n?Gs(t,n,I,s||null,!0):2===e?function ih(e,t,n){const r=Oa(e,t);r&&function fy(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,I,y):3===e&&t.destroyNode(I),null!=l&&function gy(e,t,n,r,s){const l=n[7];l!==Jn(n)&&mo(t,e,r,l,s);for(let I=10;I0&&(e[n-1][4]=r[4]);const l=Ls(e,10+t);!function sy(e,t){ta(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);const y=l[19];null!==y&&y.detachView(l[1]),r[3]=null,r[4]=null,r[2]&=-65}return r}function Yd(e,t){if(!(128&t[2])){const n=t[11];n.destroyNode&&ta(e,t,n,3,null,null),function ly(e){let t=e[13];if(!t)return ic(e[1],e);for(;t;){let n=null;if(Xn(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)Xn(t)&&ic(t[1],t),t=t[3];null===t&&(t=e),Xn(t)&&ic(t[1],t),n=t&&t[4]}t=n}}(t)}}function ic(e,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function hy(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[s=pe]():r[s=-pe].unsubscribe(),l+=2}else{const y=r[s=n[l+1]];n[l].call(y)}if(null!==r){for(let l=s+1;ll?"":s[dt+1].toLowerCase();const $t=8&r?Pt:null;if($t&&-1!==oh($t,pe,0)||2&r&&pe!==Pt){if(qr(r))return!1;y=!0}}}}else{if(!y&&!qr(r)&&!qr(N))return!1;if(y&&qr(N))continue;y=!1,r=N|1&r}}return qr(r)||y}function qr(e){return 0==(1&e)}function wy(e,t,n,r){if(null===t)return-1;let s=0;if(r||!n){let l=!1;for(;s-1)for(n++;n0?'="'+I+'"':"")+"]"}else 8&r?s+="."+y:4&r&&(s+=" "+y);else""!==s&&!qr(y)&&(t+=uh(l,s),s=""),r=y,l=l||!qr(r);n++}return""!==s&&(t+=uh(l,s)),t}const $n={};function dh(e){hh(Hn(),on(),L()+e,!1)}function hh(e,t,n,r){if(!r)if(3==(3&t[2])){const l=e.preOrderCheckHooks;null!==l&&Ot(t,l,n)}else{const l=e.preOrderHooks;null!==l&&Ft(t,l,0,n)}Z(n)}function gh(e,t=null,n=null,r){const s=_h(e,t,n,r);return s.resolveInjectorInitializers(),s}function _h(e,t=null,n=null,r,s=new Set){const l=[n||ze,l_(e)];return r=r||("object"==typeof e?void 0:D(e)),new xd(l,t||Ra(),r||null,s)}let $s=(()=>{class e{static create(n,r){if(Array.isArray(n))return gh({name:""},r,n,"");{const s=n.name??"";return gh({name:s},n.parent,n.providers,s)}}}return e.THROW_IF_NOT_FOUND=jr,e.NULL=new bd,e.\u0275prov=Oe({token:e,providedIn:"any",factory:()=>Zi(yd)}),e.__NG_ELEMENT_ID__=-1,e})();function _o(e,t=R.Default){const n=on();return null===n?Zi(e,t):No(li(),n,k(e),t)}function Eh(){throw new Error("invalid")}function La(e,t){return e<<17|t<<2}function Xr(e){return e>>17&32767}function hc(e){return 2|e}function ys(e){return(131068&e)>>2}function fc(e,t){return-131069&e|t<<2}function pc(e){return 1|e}function Fh(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r22&&hh(e,t,22,!1),n(r,s)}finally{Z(l)}}function Bh(e,t,n){if(zi(t)){const s=t.directiveEnd;for(let l=t.directiveStart;l0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(I)!=N&&I.push(N),I.push(r,s,y)}}function $h(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function zh(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function yv(e,t,n){if(n){if(t.exportAs)for(let r=0;r0&&Tc(n)}}function Tc(e){for(let r=Xl(e);null!==r;r=Jl(r))for(let s=10;s0&&Tc(l)}const n=e[1].components;if(null!==n)for(let r=0;r0&&Tc(s)}}function xv(e,t){const n=Ei(t,e),r=n[1];(function Mv(e,t){for(let n=t.length;nPromise.resolve(null))();function qh(e){return e[7]||(e[7]=[])}function Xh(e){return e.cleanup||(e.cleanup=[])}function Jh(e,t,n){return(null===e||_i(e))&&(n=function wr(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function ef(e,t){const n=e[9],r=n?n.get(Xo,null):null;r&&r.handleError(t)}function kc(e,t,n,r,s){for(let l=0;l-1&&(nc(t,r),Ls(n,r))}this._attachedToViewContainer=!1}Yd(this._lView[1],this._lView)}onDestroy(t){Vh(this._lView[1],this._lView,null,t)}markForCheck(){Ic(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function Rc(e,t,n){const r=t[10];r.begin&&r.begin();try{na(e,t,e.template,n)}catch(s){throw ef(t,s),s}finally{r.end&&r.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ae(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function ay(e,t){ta(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new ae(902,!1);this._appRef=t}}class Tv extends ia{constructor(t){super(t),this._view=t}detectChanges(){Zh(this._view)}checkNoChanges(){}get context(){return null}}class Pc extends Zo{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Ht(t);return new ra(n,this.ngModule)}}function tf(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class Rv{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){const s=this.injector.get(t,Hl,r);return s!==Hl||n===Hl?s:this.parentInjector.get(t,n,r)}}class ra extends Sd{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Sy(e){return e.map(My).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return tf(this.componentDef.inputs)}get outputs(){return tf(this.componentDef.outputs)}create(t,n,r,s){let l=(s=s||this.ngModule)instanceof Us?s:s?.injector;l&&null!==this.componentDef.getStandaloneInjector&&(l=this.componentDef.getStandaloneInjector(l)||l);const y=l?new Rv(t,l):t,I=y.get(Td,null);if(null===I)throw new ae(407,!1);const N=y.get(x_,null),pe=I.createRenderer(null,this.componentDef),He=this.componentDef.selectors[0][0]||"div",dt=r?function lv(e,t,n){return e.selectRootElement(t,n===f.ShadowDom)}(pe,r,this.componentDef.encapsulation):tc(I.createRenderer(null,this.componentDef),He,function Iv(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(He)),Pt=this.componentDef.onPush?288:272,$t=function Lv(e,t){return{components:[],scheduler:e||Q_,clean:Av,playerHandler:t||null,flags:0}}(),ln=Mc(0,null,null,1,0,null,null,null,null,null),fn=Va(null,ln,$t,Pt,null,null,I,pe,N,y,null);let Dn,In;Te(fn);try{const Vn=function Pv(e,t,n,r,s,l){const y=n[1];n[22]=e;const N=yo(y,22,2,"#host",null),pe=N.mergedAttrs=t.hostAttrs;null!==pe&&(Ua(N,pe,!0),null!==e&&(dn(s,e,pe),null!==N.classes&&ac(s,e,N.classes),null!==N.styles&&sh(s,e,N.styles)));const He=r.createRenderer(e,t),dt=Va(n,Nh(t),null,t.onPush?32:16,n[22],N,r,He,l||null,null,null);return y.firstCreatePass&&(Xs(Es(N,n),y,t.type),zh(y,N),Wh(N,n.length,1)),ja(n,dt),n[22]=dt}(dt,this.componentDef,fn,I,pe);if(dt)if(r)dn(pe,dt,["ng-version",M_.full]);else{const{attrs:un,classes:Fn}=function Ay(e){const t=[],n=[];let r=1,s=2;for(;r0&&ac(pe,dt,Fn.join(" "))}if(In=Hi(ln,22),void 0!==n){const un=In.projection=[];for(let Fn=0;Fn=0;r--){const s=e[r];s.hostVars=t+=s.hostVars,s.hostAttrs=Qn(s.hostAttrs,n=Qn(n,s.hostAttrs))}}(r)}function Lc(e){return e===Je?{}:e===ze?[]:e}function Vv(e,t){const n=e.viewQuery;e.viewQuery=n?(r,s)=>{t(r,s),n(r,s)}:t}function Hv(e,t){const n=e.contentQueries;e.contentQueries=n?(r,s,l)=>{t(r,s,l),n(r,s,l)}:t}function jv(e,t){const n=e.hostBindings;e.hostBindings=n?(r,s)=>{t(r,s),n(r,s)}:t}let $a=null;function zs(){if(!$a){const e=_.Symbol;if(e&&e.iterator)$a=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;nI(Jn(ti[r.index])):r.index;let Fn=null;if(!I&&N&&(Fn=function eb(e,t,n,r){const s=e.cleanup;if(null!=s)for(let l=0;lN?I[N]:null}"string"==typeof y&&(l+=2)}return null}(e,t,s,r.index)),null!==Fn)(Fn.__ngLastListenerFn__||Fn).__ngNextListenerFn__=l,Fn.__ngLastListenerFn__=l,$t=!1;else{l=wf(r,t,dt,l,!1);const ti=n.listen(In,s,l);Pt.push(l,ti),He&&He.push(s,un,Vn,Vn+1)}}else l=wf(r,t,dt,l,!1);const ln=r.outputs;let fn;if($t&&null!==ln&&(fn=ln[s])){const Dn=fn.length;if(Dn)for(let In=0;In0;)t=t[15],e--;return t}(e,Kt.lFrame.contextLView))[8]}(e)}function tb(e,t){let n=null;const r=function Cy(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e);for(let s=0;s=0}const tr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Pf(e){return e.substring(tr.key,tr.keyEnd)}function sb(e){return e.substring(tr.value,tr.valueEnd)}function Ff(e,t){const n=tr.textEnd;return n===t?-1:(t=tr.keyEnd=function lb(e,t,n){for(;t32;)t++;return t}(e,tr.key=t,n),To(e,t,n))}function Lf(e,t){const n=tr.textEnd;let r=tr.key=To(e,t,n);return n===r?-1:(r=tr.keyEnd=function cb(e,t,n){let r;for(;t=65&&(-33&r)<=90||r>=48&&r<=57);)t++;return t}(e,r,n),r=Nf(e,r,n),r=tr.value=To(e,r,n),r=tr.valueEnd=function ub(e,t,n){let r=-1,s=-1,l=-1,y=t,I=y;for(;y32&&(I=y),l=s,s=r,r=-33&N}return I}(e,r,n),Nf(e,r,n))}function Bf(e){tr.key=0,tr.keyEnd=0,tr.value=0,tr.valueEnd=0,tr.textEnd=e.length}function To(e,t,n){for(;t=0;n=Lf(t,n))Gf(e,Pf(t),sb(t))}function Hf(e){es(S,ds,e,!0)}function ds(e,t){for(let n=function ob(e){return Bf(e),Ff(e,To(e,0,tr.textEnd))}(t);n>=0;n=Ff(t,n))S(e,Pf(t),!0)}function Jr(e,t,n,r){const s=on(),l=Hn(),y=Or(2);l.firstUpdatePass&&Uf(l,e,y,r),t!==$n&&_r(s,y,t)&&$f(l,l.data[L()],s,s[11],e,s[y+1]=function yb(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=D(gs(e)))),e}(t,n),r,y)}function es(e,t,n,r){const s=Hn(),l=Or(2);s.firstUpdatePass&&Uf(s,null,l,r);const y=on();if(n!==$n&&_r(y,l,n)){const I=s.data[L()];if(Wf(I,r)&&!jf(s,l)){let N=r?I.classesWithoutHost:I.stylesWithoutHost;null!==N&&(n=B(N,n||"")),Hc(s,I,y,n,r)}else!function _b(e,t,n,r,s,l,y,I){s===$n&&(s=ze);let N=0,pe=0,He=0=e.expandoStartIndex}function Uf(e,t,n,r){const s=e.data;if(null===s[n+1]){const l=s[L()],y=jf(e,n);Wf(l,r)&&null===t&&!y&&(t=!1),t=function hb(e,t,n,r){const s=Vr(e);let l=r?t.residualClasses:t.residualStyles;if(null===s)0===(r?t.classBindings:t.styleBindings)&&(n=aa(n=Qc(null,e,t,n,r),t.attrs,r),l=null);else{const y=t.directiveStylingLast;if(-1===y||e[y]!==s)if(n=Qc(s,e,t,n,r),null===l){let N=function fb(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==ys(r))return e[Xr(r)]}(e,t,r);void 0!==N&&Array.isArray(N)&&(N=Qc(null,e,t,N[1],r),N=aa(N,t.attrs,r),function pb(e,t,n,r){e[Xr(n?t.classBindings:t.styleBindings)]=r}(e,t,r,N))}else l=function mb(e,t,n){let r;const s=t.directiveEnd;for(let l=1+t.directiveStylingLast;l0)&&(pe=!0)}else He=n;if(s)if(0!==N){const Pt=Xr(e[I+1]);e[r+1]=La(Pt,I),0!==Pt&&(e[Pt+1]=fc(e[Pt+1],r)),e[I+1]=function Yy(e,t){return 131071&e|t<<17}(e[I+1],r)}else e[r+1]=La(I,0),0!==I&&(e[I+1]=fc(e[I+1],r)),I=r;else e[r+1]=La(N,0),0===I?I=r:e[N+1]=fc(e[N+1],r),N=r;pe&&(e[r+1]=hc(e[r+1])),kf(e,He,r,!0),kf(e,He,r,!1),function ib(e,t,n,r,s){const l=s?e.residualClasses:e.residualStyles;null!=l&&"string"==typeof t&&G(l,t)>=0&&(n[r+1]=pc(n[r+1]))}(t,He,e,r,l),y=La(I,N),l?t.classBindings=y:t.styleBindings=y}(s,l,t,n,y,r)}}function Qc(e,t,n,r,s){let l=null;const y=n.directiveEnd;let I=n.directiveStylingLast;for(-1===I?I=n.directiveStart:I++;I0;){const N=e[s],pe=Array.isArray(N),He=pe?N[1]:N,dt=null===He;let Pt=n[s+1];Pt===$n&&(Pt=dt?ze:void 0);let $t=dt?C(Pt,r):He===r?Pt:void 0;if(pe&&!qa($t)&&($t=C(N,r)),qa($t)&&(I=$t,y))return I;const ln=e[s+1];s=y?Xr(ln):ys(ln)}if(null!==t){let N=l?t.residualClasses:t.residualStyles;null!=N&&(I=C(N,r))}return I}function qa(e){return void 0!==e}function Wf(e,t){return 0!=(e.flags&(t?16:32))}function Yf(e,t=""){const n=on(),r=Hn(),s=e+22,l=r.firstCreatePass?yo(r,s,1,t,null):r.data[s],y=n[s]=function ec(e,t){return e.createText(t)}(n[11],t);ka(r,n,y,l),te(l,!1)}function Zc(e){return Xa("",e,""),Zc}function Xa(e,t,n){const r=on(),s=wo(r,e,t,n);return s!==$n&&vs(r,L(),s),Xa}function qc(e,t,n,r,s){const l=on(),y=Co(l,e,t,n,r,s);return y!==$n&&vs(l,L(),y),qc}function tp(e,t,n){es(S,ds,wo(on(),e,t,n),!0)}function np(e,t,n){!function us(e){es(Gf,db,e,!1)}(wo(on(),e,t,n))}function Xc(e,t,n){const r=on();return _r(r,Br(),t)&&Ur(Hn(),De(),r,e,t,r[11],n,!0),Xc}function Jc(e,t,n){const r=on();if(_r(r,Br(),t)){const l=Hn(),y=De();Ur(l,y,r,e,t,Jh(Vr(l.data),y,r),n,!0)}return Jc}const Ys=void 0;var Lb=["en",[["a","p"],["AM","PM"],Ys],[["AM","PM"],Ys,Ys],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Ys,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Ys,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Ys,"{1} 'at' {0}",Ys],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Fb(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let Io={};function eu(e){const t=function Bb(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=fp(t);if(n)return n;const r=t.split("-")[0];if(n=fp(r),n)return n;if("en"===r)return Lb;throw new ae(701,!1)}function hp(e){return eu(e)[Bn.PluralCase]}function fp(e){return e in Io||(Io[e]=_.ng&&_.ng.common&&_.ng.common.locales&&_.ng.common.locales[e]),Io[e]}var Bn=(()=>((Bn=Bn||{})[Bn.LocaleId=0]="LocaleId",Bn[Bn.DayPeriodsFormat=1]="DayPeriodsFormat",Bn[Bn.DayPeriodsStandalone=2]="DayPeriodsStandalone",Bn[Bn.DaysFormat=3]="DaysFormat",Bn[Bn.DaysStandalone=4]="DaysStandalone",Bn[Bn.MonthsFormat=5]="MonthsFormat",Bn[Bn.MonthsStandalone=6]="MonthsStandalone",Bn[Bn.Eras=7]="Eras",Bn[Bn.FirstDayOfWeek=8]="FirstDayOfWeek",Bn[Bn.WeekendRange=9]="WeekendRange",Bn[Bn.DateFormat=10]="DateFormat",Bn[Bn.TimeFormat=11]="TimeFormat",Bn[Bn.DateTimeFormat=12]="DateTimeFormat",Bn[Bn.NumberSymbols=13]="NumberSymbols",Bn[Bn.NumberFormats=14]="NumberFormats",Bn[Bn.CurrencyCode=15]="CurrencyCode",Bn[Bn.CurrencySymbol=16]="CurrencySymbol",Bn[Bn.CurrencyName=17]="CurrencyName",Bn[Bn.Currencies=18]="Currencies",Bn[Bn.Directionality=19]="Directionality",Bn[Bn.PluralCase=20]="PluralCase",Bn[Bn.ExtraData=21]="ExtraData",Bn))();const Ro="en-US";let pp=Ro;function iu(e,t,n,r,s){if(e=k(e),Array.isArray(e))for(let l=0;l>20;if(js(e)||!e.multi){const $t=new Qt(N,s,_o),ln=su(I,t,s?He:He+Pt,dt);-1===ln?(Xs(Es(pe,y),l,I),ru(l,e,t.length),t.push(I),pe.directiveStart++,pe.directiveEnd++,s&&(pe.providerIndexes+=1048576),n.push($t),y.push($t)):(n[ln]=$t,y[ln]=$t)}else{const $t=su(I,t,He+Pt,dt),ln=su(I,t,He,He+Pt),fn=$t>=0&&n[$t],Dn=ln>=0&&n[ln];if(s&&!Dn||!s&&!fn){Xs(Es(pe,y),l,I);const In=function F0(e,t,n,r,s){const l=new Qt(e,n,_o);return l.multi=[],l.index=t,l.componentProviders=0,Vp(l,s,r&&!n),l}(s?P0:k0,n.length,s,r,N);!s&&Dn&&(n[ln].providerFactory=In),ru(l,e,t.length,0),t.push(I),pe.directiveStart++,pe.directiveEnd++,s&&(pe.providerIndexes+=1048576),n.push(In),y.push(In)}else ru(l,e,$t>-1?$t:ln,Vp(n[s?ln:$t],N,!s&&r));!s&&r&&Dn&&n[ln].componentProviders++}}}function ru(e,t,n,r){const s=js(t),l=function u_(e){return!!e.useClass}(t);if(s||l){const N=(l?k(t.useClass):t).prototype.ngOnDestroy;if(N){const pe=e.destroyHooks||(e.destroyHooks=[]);if(!s&&t.multi){const He=pe.indexOf(n);-1===He?pe.push(n,[r,N]):pe[He+1].push(r,N)}else pe.push(n,N)}}}function Vp(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function su(e,t,n,r){for(let s=n;s{n.providersResolver=(r,s)=>function O0(e,t,n){const r=Hn();if(r.firstCreatePass){const s=_i(e);iu(n,r.data,r.blueprint,s,!0),iu(t,r.data,r.blueprint,s,!1)}}(r,s?s(e):e,t)}}class ko{}class jp{}function L0(e,t){return new Up(e,t??null)}class Up extends ko{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Pc(this);const r=rt(t);this._bootstrapComponents=_s(r.bootstrap),this._r3Injector=_h(t,n,[{provide:ko,useValue:this},{provide:Zo,useValue:this.componentFactoryResolver}],D(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class au extends jp{constructor(t){super(),this.moduleType=t}create(t){return new Up(this.moduleType,t)}}class B0 extends ko{constructor(t,n,r){super(),this.componentFactoryResolver=new Pc(this),this.instance=null;const s=new xd([...t,{provide:ko,useValue:this},{provide:Zo,useValue:this.componentFactoryResolver}],n||Ra(),r,new Set(["environment"]));this.injector=s,s.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function lu(e,t,n=null){return new B0(e,t,n).injector}function Qp(e,t,n){const r=mi()+e,s=on();return s[r]===$n?cs(s,r,n?t.call(n):t()):oa(s,r)}function Zp(e,t,n,r){return Xp(on(),mi(),e,t,n,r)}function qp(e,t,n,r,s,l,y,I,N){const pe=mi()+e,He=on(),dt=function Yr(e,t,n,r,s,l){const y=Ws(e,t,n,r);return Ws(e,t+2,s,l)||y}(He,pe,n,r,s,l);return Ws(He,pe+4,y,I)||dt?cs(He,pe+6,N?t.call(N,n,r,s,l,y,I):t(n,r,s,l,y,I)):oa(He,pe+6)}function ha(e,t){const n=e[t];return n===$n?void 0:n}function Xp(e,t,n,r,s,l){const y=t+n;return _r(e,y,s)?cs(e,y+1,l?r.call(l,s):r(s)):ha(e,y+1)}function im(e,t){const n=Hn();let r;const s=e+22;n.firstCreatePass?(r=function tw(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[s]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,r.onDestroy)):r=n.data[s];const l=r.factory||(r.factory=Li(r.type)),y=x(_o);try{const I=Mi(!1),N=l();return Mi(I),function qv(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,on(),s,N),N}finally{x(y)}}function rm(e,t,n){const r=e+22,s=on(),l=ji(s,r);return fa(s,r)?Xp(s,mi(),t,l.transform,n,l):l.transform(n)}function sm(e,t,n,r){const s=e+22,l=on(),y=ji(l,s);return fa(l,s)?function Jp(e,t,n,r,s,l,y){const I=t+n;return Ws(e,I,s,l)?cs(e,I+2,y?r.call(y,s,l):r(s,l)):ha(e,I+2)}(l,mi(),t,y.transform,n,r,y):y.transform(n,r)}function fa(e,t){return e[1].data[t].pure}function uu(e){return t=>{setTimeout(e,void 0,t)}}const hs=class sw extends i.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let s=t,l=n||(()=>null),y=r;if(t&&"object"==typeof t){const N=t;s=N.next?.bind(N),l=N.error?.bind(N),y=N.complete?.bind(N)}this.__isAsync&&(l=uu(l),s&&(s=uu(s)),y&&(y=uu(y)));const I=super.subscribe({next:s,error:l,complete:y});return t instanceof a.w&&t.add(I),I}};function ow(){return this._results[zs()]()}class il{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=zs(),r=il.prototype;r[n]||(r[n]=ow)}get changes(){return this._changes||(this._changes=new hs)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const r=this;r.dirty=!1;const s=mr(t);(this._changesDetected=!function vl(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r{class e{}return e.__NG_ELEMENT_ID__=cw,e})();const aw=pa,lw=class extends aw{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t,n){const r=this._declarationTContainer.tViews,s=Va(this._declarationLView,r,t,16,null,r.declTNode,null,null,null,null,n||null);s[17]=this._declarationLView[this._declarationTContainer.index];const y=this._declarationLView[19];return null!==y&&(s[19]=y.createEmbeddedView(r)),Ha(r,s,t),new ia(s)}};function cw(){return rl(li(),on())}function rl(e,t){return 4&e.type?new lw(t,e,fo(e,t)):null}let sl=(()=>{class e{}return e.__NG_ELEMENT_ID__=uw,e})();function uw(){return lm(li(),on())}const dw=sl,om=class extends dw{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return fo(this._hostTNode,this._hostLView)}get injector(){return new xs(this._hostTNode,this._hostLView)}get parentInjector(){const t=qs(this._hostTNode,this._hostLView);if(ei(t)){const n=xi(t,this._hostLView),r=ri(t);return new xs(n[1].data[r+8],n)}return new xs(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=am(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,r){let s,l;"number"==typeof r?s=r:null!=r&&(s=r.index,l=r.injector);const y=t.createEmbeddedView(n||{},l);return this.insert(y,s),y}createComponent(t,n,r,s,l){const y=t&&!function Fs(e){return"function"==typeof e}(t);let I;if(y)I=n;else{const dt=n||{};I=dt.index,r=dt.injector,s=dt.projectableNodes,l=dt.environmentInjector||dt.ngModuleRef}const N=y?t:new ra(Ht(t)),pe=r||this.parentInjector;if(!l&&null==N.ngModule){const Pt=(y?pe:this.parentInjector).get(Us,null);Pt&&(l=Pt)}const He=N.create(pe,s,void 0,l);return this.insert(He.hostView,I),He}insert(t,n){const r=t._lView,s=r[1];if(function q(e){return Ci(e[3])}(r)){const He=this.indexOf(t);if(-1!==He)this.detach(He);else{const dt=r[3],Pt=new om(dt,dt[6],dt[3]);Pt.detach(Pt.indexOf(t))}}const l=this._adjustIndex(n),y=this._lContainer;!function cy(e,t,n,r){const s=10+r,l=n.length;r>0&&(n[s-1][4]=t),r0)r.push(y[I/2]);else{const pe=l[I+1],He=t[-N];for(let dt=10;dt{class e{constructor(n){this.appInits=n,this.resolve=al,this.reject=al,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,s)=>{this.resolve=r,this.reject=s})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let s=0;s{l.subscribe({complete:I,error:N})});n.push(y)}}Promise.all(n).then(()=>{r()}).catch(s=>{this.reject(s)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(Zi(Lm,8))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Bm=new gi("AppId",{providedIn:"root",factory:function Nm(){return`${wu()}${wu()}${wu()}`}});function wu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Vm=new gi("Platform Initializer"),Hw=new gi("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Hm=new gi("appBootstrapListener"),jw=new gi("AnimationModuleType");let Uw=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Oe({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const cl=new gi("LocaleId",{providedIn:"root",factory:()=>qu(cl,R.Optional|R.SkipSelf)||function Gw(){return typeof $localize<"u"&&$localize.locale||Ro}()}),$w=new gi("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class zw{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let Ww=(()=>{class e{compileModuleSync(n){return new au(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),l=_s(rt(n).declarations).reduce((y,I)=>{const N=Ht(I);return N&&y.push(new ra(N)),y},[]);return new zw(r,l)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Oe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Qw=(()=>Promise.resolve(0))();function Cu(e){typeof Zone>"u"?Qw.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Gr{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new hs(!1),this.onMicrotaskEmpty=new hs(!1),this.onStable=new hs(!1),this.onError=new hs(!1),typeof Zone>"u")throw new ae(908,!1);Zone.assertZonePatched();const s=this;if(s._nesting=0,s._outer=s._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const l=Zone.AsyncStackTaggingZoneSpec;s._inner=s._inner.fork(new l("Angular"))}Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!r&&n,s.shouldCoalesceRunChangeDetection=r,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function Zw(){let e=_.requestAnimationFrame,t=_.cancelAnimationFrame;if(typeof Zone<"u"&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function Jw(e){const t=()=>{!function Xw(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(_,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Eu(e),e.isCheckStableRunning=!0,Du(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Eu(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,s,l,y,I)=>{try{return Gm(e),n.invokeTask(s,l,y,I)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===l.type||e.shouldCoalesceRunChangeDetection)&&t(),$m(e)}},onInvoke:(n,r,s,l,y,I,N)=>{try{return Gm(e),n.invoke(s,l,y,I,N)}finally{e.shouldCoalesceRunChangeDetection&&t(),$m(e)}},onHasTask:(n,r,s,l)=>{n.hasTask(s,l),r===s&&("microTask"==l.change?(e._hasPendingMicrotasks=l.microTask,Eu(e),Du(e)):"macroTask"==l.change&&(e.hasPendingMacrotasks=l.macroTask))},onHandleError:(n,r,s,l)=>(n.handleError(s,l),e.runOutsideAngular(()=>e.onError.emit(l)),!1)})}(s)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Gr.isInAngularZone())throw new ae(909,!1)}static assertNotInAngularZone(){if(Gr.isInAngularZone())throw new ae(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,s){const l=this._inner,y=l.scheduleEventTask("NgZoneEvent: "+s,t,qw,al,al);try{return l.runTask(y,n,r)}finally{l.cancelTask(y)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const qw={};function Du(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Eu(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Gm(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function $m(e){e._nesting--,Du(e)}class eC{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new hs,this.onMicrotaskEmpty=new hs,this.onStable=new hs,this.onError=new hs}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,s){return t.apply(n,r)}}const zm=new gi(""),Wm=new gi("");let xu,tC=(()=>{class e{constructor(n,r,s){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,xu||(function nC(e){xu=e}(s),s.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Gr.assertNotInAngularZone(),Cu(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Cu(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,s){let l=-1;r&&r>0&&(l=setTimeout(()=>{this._callbacks=this._callbacks.filter(y=>y.timeoutId!==l),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:l,updateCb:s})}whenStable(n,r,s){if(s&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,s),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,s){return[]}}return e.\u0275fac=function(n){return new(n||e)(Zi(Gr),Zi(Ym),Zi(Wm))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac}),e})(),Ym=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return xu?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Oe({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),Ts=null;const Km=new gi("AllowMultipleToken"),Mu=new gi("PlatformDestroyListeners");class sC{constructor(t,n){this.name=t,this.token=n}}function Zm(e,t,n=[]){const r=`Platform: ${t}`,s=new gi(r);return(l=[])=>{let y=Su();if(!y||y.injector.get(Km,!1)){const I=[...n,...l,{provide:s,useValue:!0}];e?e(I):function oC(e){if(Ts&&!Ts.get(Km,!1))throw new ae(400,!1);Ts=e;const t=e.get(Xm);(function Qm(e){const t=e.get(Vm,null);t&&t.forEach(n=>n())})(e)}(function qm(e=[],t){return $s.create({name:t,providers:[{provide:Ll,useValue:"platform"},{provide:Mu,useValue:new Set([()=>Ts=null])},...e]})}(I,r))}return function lC(e){const t=Su();if(!t)throw new ae(401,!1);return t}()}}function Su(){return Ts?.get(Xm)??null}let Xm=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const s=function cC(e,t){let n;return n="noop"===e?new eC:("zone.js"===e?void 0:e)||new Gr(t),n}(r?.ngZone,function Jm(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(r)),l=[{provide:Gr,useValue:s}];return s.run(()=>{const y=$s.create({providers:l,parent:this.injector,name:n.moduleType.name}),I=n.create(y),N=I.injector.get(Xo,null);if(!N)throw new ae(402,!1);return s.runOutsideAngular(()=>{const pe=s.onError.subscribe({next:He=>{N.handleError(He)}});I.onDestroy(()=>{dl(this._modules,I),pe.unsubscribe()})}),function eg(e,t,n){try{const r=n();return Gc(r)?r.catch(s=>{throw t.runOutsideAngular(()=>e.handleError(s)),s}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(N,s,()=>{const pe=I.injector.get(ll);return pe.runInitializers(),pe.donePromise.then(()=>(function mp(e){jt(e,"Expected localeId to be defined"),"string"==typeof e&&(pp=e.toLowerCase().replace(/_/g,"-"))}(I.injector.get(cl,Ro)||Ro),this._moduleDoBootstrap(I),I))})})}bootstrapModule(n,r=[]){const s=tg({},r);return function iC(e,t,n){const r=new au(n);return Promise.resolve(r)}(0,0,n).then(l=>this.bootstrapModuleFactory(l,s))}_moduleDoBootstrap(n){const r=n.injector.get(ul);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(s=>r.bootstrap(s));else{if(!n.instance.ngDoBootstrap)throw new ae(403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ae(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(Mu,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(Zi($s))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function tg(e,t){return Array.isArray(t)?t.reduce(tg,e):{...e,...t}}let ul=(()=>{class e{constructor(n,r,s){this._zone=n,this._injector=r,this._exceptionHandler=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const l=new c.y(I=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{I.next(this._stable),I.complete()})}),y=new c.y(I=>{let N;this._zone.runOutsideAngular(()=>{N=this._zone.onStable.subscribe(()=>{Gr.assertNotInAngularZone(),Cu(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,I.next(!0))})})});const pe=this._zone.onUnstable.subscribe(()=>{Gr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{I.next(!1)}))});return()=>{N.unsubscribe(),pe.unsubscribe()}});this.isStable=(0,v.T)(l,y.pipe((0,b.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const s=n instanceof Sd;if(!this._injector.get(ll).done)throw!s&&Fo(n),new ae(405,false);let y;y=s?n:this._injector.get(Zo).resolveComponentFactory(n),this.componentTypes.push(y.componentType);const I=function rC(e){return e.isBoundToModule}(y)?void 0:this._injector.get(ko),pe=y.create($s.NULL,[],r||y.selector,I),He=pe.location.nativeElement,dt=pe.injector.get(zm,null);return dt?.registerApplication(He),pe.onDestroy(()=>{this.detachView(pe.hostView),dl(this.components,pe),dt?.unregisterApplication(He)}),this._loadComponent(pe),pe}tick(){if(this._runningTick)throw new ae(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;dl(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(Hm,[]).concat(this._bootstrapListeners).forEach(s=>s(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>dl(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new ae(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(n){return new(n||e)(Zi(Gr),Zi(Us),Zi(Xo))},e.\u0275prov=Oe({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function dl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let ig=!0;function dC(){ig=!1}let hC=(()=>{class e{}return e.__NG_ELEMENT_ID__=fC,e})();function fC(e){return function pC(e,t,n){if(hr(e)&&!n){const r=Ei(e.index,t);return new ia(r,r)}return 47&e.type?new ia(t[16],t):null}(li(),on(),16==(16&e))}class lg{constructor(){}supports(t){return sa(t)}create(t){return new bC(t)}}const vC=(e,t)=>t;class bC{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||vC}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,s=0,l=null;for(;n||r;){const y=!r||n&&n.currentIndex{y=this._trackByFn(s,I),null!==n&&Object.is(n.trackById,y)?(r&&(n=this._verifyReinsertion(n,I,y,s)),Object.is(n.item,I)||this._addIdentityChange(n,I)):(n=this._mismatch(n,I,y,s),r=!0),n=n._next,s++}),this.length=s;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,s){let l;return null===t?l=this._itTail:(l=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,l,s)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,s))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,l,s)):t=this._addAfter(new wC(n,r),l,s),t}_verifyReinsertion(t,n,r,s){let l=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==l?t=this._reinsertAfter(l,t._prev,s):t.currentIndex!=s&&(t.currentIndex=s,this._addToMoves(t,s)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const s=t._prevRemoved,l=t._nextRemoved;return null===s?this._removalsHead=l:s._nextRemoved=l,null===l?this._removalsTail=s:l._prevRemoved=s,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const s=null===n?this._itHead:n._next;return t._next=s,t._prev=n,null===s?this._itTail=t:s._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new cg),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new cg),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class wC{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class CC{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class cg{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new CC,this.map.set(n,r)),r.add(t)}get(t,n){const s=this.map.get(t);return s?s.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function ug(e,t,n){const r=e.previousIndex;if(null===r)return r;let s=0;return n&&r{if(n&&n.key===s)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const l=this._getOrCreateRecordForKey(s,r);n=this._insertBeforeOrAppend(n,l)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const s=this._records.get(t);this._maybeAddToChanges(s,n);const l=s._prev,y=s._next;return l&&(l._next=y),y&&(y._prev=l),s._next=null,s._prev=null,s}const r=new EC(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class EC{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function hg(){return new Ou([new lg])}let Ou=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const s=r.factories.slice();n=n.concat(s)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||hg()),deps:[[e,new $o,new Go]]}}find(n){const r=this.factories.find(s=>s.supports(n));if(null!=r)return r;throw new ae(901,!1)}}return e.\u0275prov=Oe({token:e,providedIn:"root",factory:hg}),e})();function fg(){return new ku([new dg])}let ku=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const s=r.factories.slice();n=n.concat(s)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||fg()),deps:[[e,new $o,new Go]]}}find(n){const r=this.factories.find(s=>s.supports(n));if(r)return r;throw new ae(901,!1)}}return e.\u0275prov=Oe({token:e,providedIn:"root",factory:fg}),e})();const SC=Zm(null,"core",[]);let AC=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(Zi(ul))},e.\u0275mod=Ye({type:e}),e.\u0275inj=be({}),e})();function TC(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}},5863:(Ct,ke,u)=>{"use strict";function i(O){for(let P in O){let k=O[P]??"";switch(P){case"display":O.display="flex"===k?["-webkit-flex","flex"]:"inline-flex"===k?["-webkit-inline-flex","inline-flex"]:k;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":O["-webkit-"+P]=k;break;case"flex-direction":O["-webkit-flex-direction"]=k,O["flex-direction"]=k;break;case"order":O.order=O["-webkit-"+P]=isNaN(+k)?"0":k}}return O}u.d(ke,{Ar:()=>v,GK:()=>i,iQ:()=>c,kt:()=>B,tj:()=>h});const a="inline",c=["row","column","row-reverse","column-reverse"];function v(O){let[P,k,F]=b(O);return function D(O,P=null,k=!1){return{display:k?"inline-flex":"flex","box-sizing":"border-box","flex-direction":O,"flex-wrap":P||null}}(P,k,F)}function b(O){O=O?.toLowerCase()??"";let[P,k,F]=O.split(" ");return c.find(z=>z===P)||(P=c[0]),k===a&&(k=F!==a?F:"",F=a),[P,g(k),!!F]}function h(O){let[P]=b(O);return P.indexOf("row")>-1}function g(O){if(O)switch(O.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":O="wrap-reverse";break;case"no":case"none":case"nowrap":O="nowrap";break;default:O="wrap"}return O}function B(O,...P){if(null==O)throw TypeError("Cannot convert undefined or null to object");for(let k of P)if(null!=k)for(let F in k)k.hasOwnProperty(F)&&(O[F]=k[F]);return O}},2233:(Ct,ke,u)=>{"use strict";u.d(ke,{Bs:()=>ge,FL:()=>St,IR:()=>F,Ot:()=>ve,QI:()=>ie,RK:()=>he,WU:()=>ue,g5:()=>we,iR:()=>p,wY:()=>le,yB:()=>Re});var i=u(4650),a=u(6895),c=u(591),v=u(6498),b=u(6787),h=u(8929),g=u(5863),D=u(2198),B=u(2868);const P={provide:i.tb,useFactory:function O(ht,Et){return()=>{if((0,a.NF)(Et)){const ye=Array.from(ht.querySelectorAll(`[class*=${k}]`)),qe=/\bflex-layout-.+?\b/g;ye.forEach(xe=>{xe.classList.contains(`${k}ssr`)&&xe.parentNode?xe.parentNode.removeChild(xe):xe.className.replace(qe,"")})}}},deps:[a.K0,i.Lbi],multi:!0},k="flex-layout-";let F=(()=>{class ht{}return ht.\u0275fac=function(ye){return new(ye||ht)},ht.\u0275mod=i.oAB({type:ht}),ht.\u0275inj=i.cJS({providers:[P]}),ht})();class z{constructor(Et=!1,ye="all",qe="",xe="",Fe=0){this.matches=Et,this.mediaQuery=ye,this.mqAlias=qe,this.suffix=xe,this.priority=Fe,this.property=""}clone(){return new z(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let ae=(()=>{class ht{constructor(){this.stylesheet=new Map}addStyleToElement(ye,qe,xe){const Fe=this.stylesheet.get(ye);Fe?Fe.set(qe,xe):this.stylesheet.set(ye,new Map([[qe,xe]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(ye,qe){const xe=this.stylesheet.get(ye);let Fe="";if(xe){const ot=xe.get(qe);("number"==typeof ot||"string"==typeof ot)&&(Fe=ot+"")}return Fe}}return ht.\u0275fac=function(ye){return new(ye||ht)},ht.\u0275prov=i.Yz7({token:ht,factory:ht.\u0275fac,providedIn:"root"}),ht})();const we={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},ue=new i.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>we}),le=new i.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),ge=new i.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function W(ht,Et){return ht=ht?.clone()??new z,Et&&(ht.mqAlias=Et.alias,ht.mediaQuery=Et.mediaQuery,ht.suffix=Et.suffix,ht.priority=Et.priority),ht}class ie{constructor(){this.shouldCache=!0}sideEffect(Et,ye,qe){}}let he=(()=>{class ht{constructor(ye,qe,xe,Fe){this._serverStylesheet=ye,this._serverModuleLoaded=qe,this._platformId=xe,this.layoutConfig=Fe}applyStyleToElement(ye,qe,xe=null){let Fe={};"string"==typeof qe&&(Fe[qe]=xe,qe=Fe),Fe=this.layoutConfig.disableVendorPrefixes?qe:(0,g.GK)(qe),this._applyMultiValueStyleToElement(Fe,ye)}applyStyleToElements(ye,qe=[]){const xe=this.layoutConfig.disableVendorPrefixes?ye:(0,g.GK)(ye);qe.forEach(Fe=>{this._applyMultiValueStyleToElement(xe,Fe)})}getFlowDirection(ye){const qe="flex-direction";let xe=this.lookupStyle(ye,qe);return[xe||"row",this.lookupInlineStyle(ye,qe)||(0,a.PM)(this._platformId)&&this._serverModuleLoaded?xe:""]}hasWrap(ye){return"wrap"===this.lookupStyle(ye,"flex-wrap")}lookupAttributeValue(ye,qe){return ye.getAttribute(qe)??""}lookupInlineStyle(ye,qe){return(0,a.NF)(this._platformId)?ye.style.getPropertyValue(qe):function se(ht,Et){return it(ht)[Et]??""}(ye,qe)}lookupStyle(ye,qe,xe=!1){let Fe="";return ye&&((Fe=this.lookupInlineStyle(ye,qe))||((0,a.NF)(this._platformId)?xe||(Fe=getComputedStyle(ye).getPropertyValue(qe)):this._serverModuleLoaded&&(Fe=this._serverStylesheet.getStyleForElement(ye,qe)))),Fe?Fe.trim():""}_applyMultiValueStyleToElement(ye,qe){Object.keys(ye).sort().forEach(xe=>{const Fe=ye[xe],ot=Array.isArray(Fe)?Fe:[Fe];ot.sort();for(let ce of ot)ce=ce?ce+"":"",(0,a.NF)(this._platformId)||!this._serverModuleLoaded?(0,a.NF)(this._platformId)?qe.style.setProperty(xe,ce):Me(qe,xe,ce):this._serverStylesheet.addStyleToElement(qe,xe,ce)})}}return ht.\u0275fac=function(ye){return new(ye||ht)(i.LFG(ae),i.LFG(le),i.LFG(i.Lbi),i.LFG(ue))},ht.\u0275prov=i.Yz7({token:ht,factory:ht.\u0275fac,providedIn:"root"}),ht})();function Me(ht,Et,ye){Et=Et.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const qe=it(ht);qe[Et]=ye??"",function $e(ht,Et){let ye="";for(const qe in Et)Et[qe]&&(ye+=`${qe}:${Et[qe]};`);ht.setAttribute("style",ye)}(ht,qe)}function it(ht){const Et={},ye=ht.getAttribute("style");if(ye){const qe=ye.split(/;+/g);for(let xe=0;xe0){const ot=Fe.indexOf(":");if(-1===ot)throw new Error(`Invalid CSS style: ${Fe}`);Et[Fe.substr(0,ot).trim()]=Fe.substr(ot+1).trim()}}}return Et}function Ke(ht,Et){return(Et&&Et.priority||0)-(ht&&ht.priority||0)}function tt(ht,Et){return(ht.priority||0)-(Et.priority||0)}let me=(()=>{class ht{constructor(ye,qe,xe){this._zone=ye,this._platformId=qe,this._document=xe,this.source=new c.X(new z(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const ye=[];return this.registry.forEach((qe,xe)=>{qe.matches&&ye.push(xe)}),ye}isActive(ye){return this.registry.get(ye)?.matches??this.registerQuery(ye).some(xe=>xe.matches)}observe(ye,qe=!1){if(ye&&ye.length){const xe=this._observable$.pipe((0,D.h)(ot=>!qe||ye.indexOf(ot.mediaQuery)>-1)),Fe=new v.y(ot=>{const ce=this.registerQuery(ye);if(ce.length){const Ue=ce.pop();ce.forEach(Ce=>{ot.next(Ce)}),this.source.next(Ue)}ot.complete()});return(0,b.T)(Fe,xe)}return this._observable$}registerQuery(ye){const qe=Array.isArray(ye)?ye:[ye],xe=[];return function Ae(ht,Et){const ye=ht.filter(qe=>!Xe[qe]);if(ye.length>0){const qe=ye.join(", ");try{const xe=Et.createElement("style");xe.setAttribute("type","text/css"),xe.styleSheet||xe.appendChild(Et.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${qe} {.fx-query-test{ }}\n`)),Et.head.appendChild(xe),ye.forEach(Fe=>Xe[Fe]=xe)}catch(xe){console.error(xe)}}}(qe,this._document),qe.forEach(Fe=>{const ot=Ue=>{this._zone.run(()=>this.source.next(new z(Ue.matches,Fe)))};let ce=this.registry.get(Fe);ce||(ce=this.buildMQL(Fe),ce.addListener(ot),this.pendingRemoveListenerFns.push(()=>ce.removeListener(ot)),this.registry.set(Fe,ce)),ce.matches&&xe.push(new z(!0,Fe))}),xe}ngOnDestroy(){let ye;for(;ye=this.pendingRemoveListenerFns.pop();)ye()}buildMQL(ye){return function ft(ht,Et){return Et&&window.matchMedia("all").addListener?window.matchMedia(ht):function yt(ht){const Et=new EventTarget;return Et.matches="all"===ht||""===ht,Et.media=ht,Et.addListener=()=>{},Et.removeListener=()=>{},Et.addEventListener=()=>{},Et.dispatchEvent=()=>!1,Et.onchange=null,Et}(ht)}(ye,(0,a.NF)(this._platformId))}}return ht.\u0275fac=function(ye){return new(ye||ht)(i.LFG(i.R0b),i.LFG(i.Lbi),i.LFG(a.K0))},ht.\u0275prov=i.Yz7({token:ht,factory:ht.\u0275fac,providedIn:"root"}),ht})();const Xe={},Yt=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],Dt="(orientation: portrait) and (max-width: 599.98px)",jt="(orientation: landscape) and (max-width: 959.98px)",V="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",Ee="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",oe="(orientation: portrait) and (min-width: 840px)",_e="(orientation: landscape) and (min-width: 1280px)",Oe={HANDSET:`${Dt}, ${jt}`,TABLET:`${V} , ${Ee}`,WEB:`${oe}, ${_e} `,HANDSET_PORTRAIT:`${Dt}`,TABLET_PORTRAIT:`${V} `,WEB_PORTRAIT:`${oe}`,HANDSET_LANDSCAPE:`${jt}`,TABLET_LANDSCAPE:`${Ee}`,WEB_LANDSCAPE:`${_e}`},lt=[{alias:"handset",priority:2e3,mediaQuery:Oe.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Oe.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Oe.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Oe.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Oe.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Oe.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Oe.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Oe.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Oe.WEB_PORTRAIT,overlapping:!0}],be=/(\.|-|_)/g;function et(ht){let Et=ht.length>0?ht.charAt(0):"",ye=ht.length>1?ht.slice(1):"";return Et.toUpperCase()+ye}const at=new i.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const ht=(0,i.f3M)(ge),Et=(0,i.f3M)(ue),ye=[].concat.apply([],(ht||[]).map(xe=>Array.isArray(xe)?xe:[xe]));return function Be(ht,Et=[]){const ye={};return ht.forEach(qe=>{ye[qe.alias]=qe}),Et.forEach(qe=>{ye[qe.alias]?(0,g.kt)(ye[qe.alias],qe):ye[qe.alias]=qe}),function _t(ht){return ht.forEach(Et=>{Et.suffix||(Et.suffix=function Mt(ht){return ht.replace(be,"|").split("|").map(et).join("")}(Et.alias),Et.overlapping=!!Et.overlapping)}),ht}(Object.keys(ye).map(qe=>ye[qe]))}((Et.disableDefaultBps?[]:Yt).concat(Et.addOrientationBps?lt:[]),ye)}});let nt=(()=>{class ht{constructor(ye){this.findByMap=new Map,this.items=[...ye].sort(tt)}findByAlias(ye){return ye?this.findWithPredicate(ye,qe=>qe.alias===ye):null}findByQuery(ye){return this.findWithPredicate(ye,qe=>qe.mediaQuery===ye)}get overlappings(){return this.items.filter(ye=>ye.overlapping)}get aliases(){return this.items.map(ye=>ye.alias)}get suffixes(){return this.items.map(ye=>ye?.suffix??"")}findWithPredicate(ye,qe){let xe=this.findByMap.get(ye);return xe||(xe=this.items.find(qe)??null,this.findByMap.set(ye,xe)),xe??null}}return ht.\u0275fac=function(ye){return new(ye||ht)(i.LFG(at))},ht.\u0275prov=i.Yz7({token:ht,factory:ht.\u0275fac,providedIn:"root"}),ht})();const Q="print",Le={alias:Q,mediaQuery:Q,priority:1e3};let ee=(()=>{class ht{constructor(ye,qe,xe){this.breakpoints=ye,this.layoutConfig=qe,this._document=xe,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new R,this.deactivations=[]}withPrintQuery(ye){return[...ye,Q]}isPrintEvent(ye){return ye.mediaQuery.startsWith(Q)}get printAlias(){return[...this.layoutConfig.printWithBreakpoints??[]]}get printBreakPoints(){return this.printAlias.map(ye=>this.breakpoints.findByAlias(ye)).filter(ye=>null!==ye)}getEventBreakpoints({mediaQuery:ye}){const qe=this.breakpoints.findByQuery(ye);return(qe?[...this.printBreakPoints,qe]:this.printBreakPoints).sort(Ke)}updateEvent(ye){let qe=this.breakpoints.findByQuery(ye.mediaQuery);return this.isPrintEvent(ye)&&(qe=this.getEventBreakpoints(ye)[0],ye.mediaQuery=qe?.mediaQuery??""),W(ye,qe)}registerBeforeAfterPrintHooks(ye){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const qe=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(ye,this.getEventBreakpoints(new z(!0,Q))),ye.updateStyles())},xe=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(ye),ye.updateStyles())};this._document.defaultView.addEventListener("beforeprint",qe),this._document.defaultView.addEventListener("afterprint",xe),this.beforePrintEventListeners.push(qe),this.afterPrintEventListeners.push(xe)}interceptEvents(ye){return qe=>{this.isPrintEvent(qe)?qe.matches&&!this.isPrinting?(this.startPrinting(ye,this.getEventBreakpoints(qe)),ye.updateStyles()):!qe.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(ye),ye.updateStyles()):this.collectActivations(ye,qe)}}blockPropagation(){return ye=>!(this.isPrinting||this.isPrintEvent(ye))}startPrinting(ye,qe){this.isPrinting=!0,this.formerActivations=ye.activatedBreakpoints,ye.activatedBreakpoints=this.queue.addPrintBreakpoints(qe)}stopPrinting(ye){ye.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(ye,qe){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!qe.matches){const xe=this.breakpoints.findByQuery(qe.mediaQuery);if(xe){const Fe=this.formerActivations&&this.formerActivations.includes(xe),ot=!this.formerActivations&&ye.activatedBreakpoints.includes(xe);(Fe||ot)&&(this.deactivations.push(xe),this.deactivations.sort(Ke))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(ye=>this._document.defaultView.removeEventListener("beforeprint",ye)),this.afterPrintEventListeners.forEach(ye=>this._document.defaultView.removeEventListener("afterprint",ye)))}}return ht.\u0275fac=function(ye){return new(ye||ht)(i.LFG(nt),i.LFG(ue),i.LFG(a.K0))},ht.\u0275prov=i.Yz7({token:ht,factory:ht.\u0275fac,providedIn:"root"}),ht})();class R{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(Et){return Et.push(Le),Et.sort(Ke),Et.forEach(ye=>this.addBreakpoint(ye)),this.printBreakpoints}addBreakpoint(Et){Et&&void 0===this.printBreakpoints.find(qe=>qe.mediaQuery===Et.mediaQuery)&&(this.printBreakpoints=function U(ht){return ht?.mediaQuery.startsWith(Q)??!1}(Et)?[Et,...this.printBreakpoints]:[...this.printBreakpoints,Et])}clear(){this.printBreakpoints=[]}}let Re=(()=>{class ht{constructor(ye,qe,xe){this.matchMedia=ye,this.breakpoints=qe,this.hook=xe,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new h.xQ,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?.alias??""}set activatedBreakpoints(ye){this._activatedBreakpoints=[...ye]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(ye){this._useFallbacks=ye}onMediaChange(ye){const qe=this.findByQuery(ye.mediaQuery);if(qe){ye=W(ye,qe);const xe=this.activatedBreakpoints.indexOf(qe);ye.matches&&-1===xe?(this._activatedBreakpoints.push(qe),this._activatedBreakpoints.sort(Ke),this.updateStyles()):!ye.matches&&-1!==xe&&(this._activatedBreakpoints.splice(xe,1),this._activatedBreakpoints.sort(Ke),this.updateStyles())}}init(ye,qe,xe,Fe,ot=[]){x(this.updateMap,ye,qe,xe),x(this.clearMap,ye,qe,Fe),this.buildElementKeyMap(ye,qe),this.watchExtraTriggers(ye,qe,ot)}getValue(ye,qe,xe){const Fe=this.elementMap.get(ye);if(Fe){const ot=void 0!==xe?Fe.get(xe):this.getActivatedValues(Fe,qe);if(ot)return ot.get(qe)}}hasValue(ye,qe){const xe=this.elementMap.get(ye);if(xe){const Fe=this.getActivatedValues(xe,qe);if(Fe)return void 0!==Fe.get(qe)||!1}return!1}setValue(ye,qe,xe,Fe){let ot=this.elementMap.get(ye);if(ot){const Ue=(ot.get(Fe)??new Map).set(qe,xe);ot.set(Fe,Ue),this.elementMap.set(ye,ot)}else ot=(new Map).set(Fe,(new Map).set(qe,xe)),this.elementMap.set(ye,ot);const ce=this.getValue(ye,qe);void 0!==ce&&this.updateElement(ye,qe,ce)}trackValue(ye,qe){return this.subject.asObservable().pipe((0,D.h)(xe=>xe.element===ye&&xe.key===qe))}updateStyles(){this.elementMap.forEach((ye,qe)=>{const xe=new Set(this.elementKeyMap.get(qe));let Fe=this.getActivatedValues(ye);Fe&&Fe.forEach((ot,ce)=>{this.updateElement(qe,ce,ot),xe.delete(ce)}),xe.forEach(ot=>{if(Fe=this.getActivatedValues(ye,ot),Fe){const ce=Fe.get(ot);this.updateElement(qe,ot,ce)}else this.clearElement(qe,ot)})})}clearElement(ye,qe){const xe=this.clearMap.get(ye);if(xe){const Fe=xe.get(qe);Fe&&(Fe(),this.subject.next({element:ye,key:qe,value:""}))}}updateElement(ye,qe,xe){const Fe=this.updateMap.get(ye);if(Fe){const ot=Fe.get(qe);ot&&(ot(xe),this.subject.next({element:ye,key:qe,value:xe}))}}releaseElement(ye){const qe=this.watcherMap.get(ye);qe&&(qe.forEach(Fe=>Fe.unsubscribe()),this.watcherMap.delete(ye));const xe=this.elementMap.get(ye);xe&&(xe.forEach((Fe,ot)=>xe.delete(ot)),this.elementMap.delete(ye))}triggerUpdate(ye,qe){const xe=this.elementMap.get(ye);if(xe){const Fe=this.getActivatedValues(xe,qe);Fe&&(qe?this.updateElement(ye,qe,Fe.get(qe)):Fe.forEach((ot,ce)=>this.updateElement(ye,ce,ot)))}}buildElementKeyMap(ye,qe){let xe=this.elementKeyMap.get(ye);xe||(xe=new Set,this.elementKeyMap.set(ye,xe)),xe.add(qe)}watchExtraTriggers(ye,qe,xe){if(xe&&xe.length){let Fe=this.watcherMap.get(ye);if(Fe||(Fe=new Map,this.watcherMap.set(ye,Fe)),!Fe.get(qe)){const ce=(0,b.T)(...xe).subscribe(()=>{const Ue=this.getValue(ye,qe);this.updateElement(ye,qe,Ue)});Fe.set(qe,ce)}}}findByQuery(ye){return this.breakpoints.findByQuery(ye)}getActivatedValues(ye,qe){for(let Fe=0;Feqe.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(ye)).pipe((0,B.b)(this.hook.interceptEvents(this)),(0,D.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return ht.\u0275fac=function(ye){return new(ye||ht)(i.LFG(me),i.LFG(nt),i.LFG(ee))},ht.\u0275prov=i.Yz7({token:ht,factory:ht.\u0275fac,providedIn:"root"}),ht})();function x(ht,Et,ye,qe){if(void 0!==qe){const xe=ht.get(Et)??new Map;xe.set(ye,qe),ht.set(Et,xe)}}let p=(()=>{class ht{constructor(ye,qe,xe,Fe){this.elementRef=ye,this.styleBuilder=qe,this.styler=xe,this.marshal=Fe,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new h.xQ,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(ye){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,ye,this.marshal.activatedAlias)}ngOnChanges(ye){Object.keys(ye).forEach(qe=>{if(-1!==this.inputs.indexOf(qe)){const xe=qe.split(".").slice(1).join(".");this.setValue(ye[qe].currentValue,xe)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(ye=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),ye)}addStyles(ye,qe){const xe=this.styleBuilder,Fe=xe.shouldCache;let ot=this.styleCache.get(ye);(!ot||!Fe)&&(ot=xe.buildStyles(ye,qe),Fe&&this.styleCache.set(ye,ot)),this.mru={...ot},this.applyStyleToElement(ot),xe.sideEffect(ye,ot,qe)}clearStyles(){Object.keys(this.mru).forEach(ye=>{this.mru[ye]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(ye,qe=!1){if(ye){const[xe,Fe]=this.styler.getFlowDirection(ye);if(!Fe&&qe){const ot=(0,g.Ar)(xe);this.styler.applyStyleToElements(ot,[ye])}return xe.trim()}return"row"}hasWrap(ye){return this.styler.hasWrap(ye)}applyStyleToElement(ye,qe,xe=this.nativeElement){this.styler.applyStyleToElement(xe,ye,qe)}setValue(ye,qe){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,ye,qe)}updateWithValue(ye){this.currentValue!==ye&&(this.addStyles(ye),this.currentValue=ye)}}return ht.\u0275fac=function(ye){return new(ye||ht)(i.Y36(i.SBq),i.Y36(ie),i.Y36(he),i.Y36(Re))},ht.\u0275dir=i.lG2({type:ht,features:[i.TTD]}),ht})();function ve(ht,Et="1",ye="1"){let qe=[Et,ye,ht],xe=ht.indexOf("calc");if(xe>0){qe[2]=Je(ht.substring(xe).trim());let Fe=ht.substr(0,xe).trim().split(" ");2==Fe.length&&(qe[0]=Fe[0],qe[1]=Fe[1])}else if(0==xe)qe[2]=Je(ht.trim());else{let Fe=ht.split(" ");qe=3===Fe.length?Fe:[Et,ye,ht]}return qe}function Je(ht){return ht.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function St(ht,Et){if(void 0===Et)return ht;const ye=qe=>{const xe=+qe.slice(0,-"x".length);return ht.endsWith("x")&&!isNaN(xe)?`${xe*Et.value}${Et.unit}`:ht};return ht.includes(" ")?ht.split(" ").map(ye).join(" "):ye(ht)}EventTarget},5829:(Ct,ke,u)=>{"use strict";u.d(ke,{aT:()=>jt,b8:()=>he});var i=u(4650),a=u(2233),c=u(6895),v=u(1281),b=u(7625);u(1481);let ue=(()=>{class V extends a.QI{buildStyles(oe,_e){return{display:"true"===oe?_e.display||(_e.isServer?"initial":""):"none"}}}return V.\u0275fac=function(){let Ee;return function(_e){return(Ee||(Ee=i.n5z(V)))(_e||V)}}(),V.\u0275prov=i.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})(),le=(()=>{class V extends a.iR{constructor(oe,_e,Oe,lt,be,et,Mt){super(oe,_e,Oe,lt),this.layoutConfig=be,this.platformId=et,this.serverModuleLoaded=Mt,this.DIRECTIVE_KEY="show-hide",this.display="",this.hasLayout=!1,this.hasFlexChild=!1}ngAfterViewInit(){this.trackExtraTriggers();const oe=Array.from(this.nativeElement.children);for(let Oe=0;Oe{if(-1!==this.inputs.indexOf(_e)){const Oe=_e.split("."),lt=Oe.slice(1).join("."),be=oe[_e].currentValue;let et=""===be||0!==be&&(0,v.Ig)(be);"fxHide"===Oe[0]&&(et=!et),this.setValue(et,lt)}})}trackExtraTriggers(){this.hasLayout=this.marshal.hasValue(this.nativeElement,"layout"),["layout","layout-align"].forEach(oe=>{this.marshal.trackValue(this.nativeElement,oe).pipe((0,b.R)(this.destroySubject)).subscribe(this.triggerUpdate.bind(this))})}getDisplayStyle(){return this.hasLayout||this.hasFlexChild&&this.layoutConfig.addFlexToParent?"flex":this.styler.lookupStyle(this.nativeElement,"display",!0)}updateWithValue(oe=!0){if(""===oe)return;const _e=(0,c.PM)(this.platformId);this.addStyles(oe?"true":"false",{display:this.display,isServer:_e}),_e&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}return V.\u0275fac=function(oe){return new(oe||V)(i.Y36(i.SBq),i.Y36(ue),i.Y36(a.RK),i.Y36(a.yB),i.Y36(a.WU),i.Y36(i.Lbi),i.Y36(a.wY))},V.\u0275dir=i.lG2({type:V,features:[i.qOj,i.TTD]}),V})();const ge=new WeakMap,W=["fxShow","fxShow.print","fxShow.xs","fxShow.sm","fxShow.md","fxShow.lg","fxShow.xl","fxShow.lt-sm","fxShow.lt-md","fxShow.lt-lg","fxShow.lt-xl","fxShow.gt-xs","fxShow.gt-sm","fxShow.gt-md","fxShow.gt-lg","fxHide","fxHide.print","fxHide.xs","fxHide.sm","fxHide.md","fxHide.lg","fxHide.xl","fxHide.lt-sm","fxHide.lt-md","fxHide.lt-lg","fxHide.lt-xl","fxHide.gt-xs","fxHide.gt-sm","fxHide.gt-md","fxHide.gt-lg"];let he=(()=>{class V extends le{constructor(){super(...arguments),this.inputs=W}}return V.\u0275fac=function(){let Ee;return function(_e){return(Ee||(Ee=i.n5z(V)))(_e||V)}}(),V.\u0275dir=i.lG2({type:V,selectors:[["","fxShow",""],["","fxShow.print",""],["","fxShow.xs",""],["","fxShow.sm",""],["","fxShow.md",""],["","fxShow.lg",""],["","fxShow.xl",""],["","fxShow.lt-sm",""],["","fxShow.lt-md",""],["","fxShow.lt-lg",""],["","fxShow.lt-xl",""],["","fxShow.gt-xs",""],["","fxShow.gt-sm",""],["","fxShow.gt-md",""],["","fxShow.gt-lg",""],["","fxHide",""],["","fxHide.print",""],["","fxHide.xs",""],["","fxHide.sm",""],["","fxHide.md",""],["","fxHide.lg",""],["","fxHide.xl",""],["","fxHide.lt-sm",""],["","fxHide.lt-md",""],["","fxHide.lt-lg",""],["","fxHide.lt-xl",""],["","fxHide.gt-xs",""],["","fxHide.gt-sm",""],["","fxHide.gt-md",""],["","fxHide.gt-lg",""]],inputs:{fxShow:"fxShow","fxShow.print":"fxShow.print","fxShow.xs":"fxShow.xs","fxShow.sm":"fxShow.sm","fxShow.md":"fxShow.md","fxShow.lg":"fxShow.lg","fxShow.xl":"fxShow.xl","fxShow.lt-sm":"fxShow.lt-sm","fxShow.lt-md":"fxShow.lt-md","fxShow.lt-lg":"fxShow.lt-lg","fxShow.lt-xl":"fxShow.lt-xl","fxShow.gt-xs":"fxShow.gt-xs","fxShow.gt-sm":"fxShow.gt-sm","fxShow.gt-md":"fxShow.gt-md","fxShow.gt-lg":"fxShow.gt-lg",fxHide:"fxHide","fxHide.print":"fxHide.print","fxHide.xs":"fxHide.xs","fxHide.sm":"fxHide.sm","fxHide.md":"fxHide.md","fxHide.lg":"fxHide.lg","fxHide.xl":"fxHide.xl","fxHide.lt-sm":"fxHide.lt-sm","fxHide.lt-md":"fxHide.lt-md","fxHide.lt-lg":"fxHide.lt-lg","fxHide.lt-xl":"fxHide.lt-xl","fxHide.gt-xs":"fxHide.gt-xs","fxHide.gt-sm":"fxHide.gt-sm","fxHide.gt-md":"fxHide.gt-md","fxHide.gt-lg":"fxHide.gt-lg"},features:[i.qOj]}),V})(),jt=(()=>{class V{}return V.\u0275fac=function(oe){return new(oe||V)},V.\u0275mod=i.oAB({type:V}),V.\u0275inj=i.cJS({imports:[a.IR]}),V})()},1576:(Ct,ke,u)=>{"use strict";u.d(ke,{SQ:()=>le,Wh:()=>ve,ae:()=>ot,s9:()=>de,xw:()=>P,yH:()=>yt});var i=u(4650),a=u(445),c=u(2233),v=u(5863),b=u(8929),h=u(7625);let g=(()=>{class ce extends c.QI{buildStyles(Ce,{display:Ye}){const Pe=(0,v.Ar)(Ce);return{...Pe,display:"none"===Ye?Ye:Pe.display}}}return ce.\u0275fac=function(){let Ue;return function(Ye){return(Ue||(Ue=i.n5z(ce)))(Ye||ce)}}(),ce.\u0275prov=i.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})();const D=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let O=(()=>{class ce extends c.iR{constructor(Ce,Ye,Pe,wt,st){super(Ce,Pe,Ye,wt),this._config=st,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(Ce){const Pe=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=k.get(Pe)??new Map,k.set(Pe,this.styleCache),this.currentValue!==Ce&&(this.addStyles(Ce,{display:Pe}),this.currentValue=Ce)}}return ce.\u0275fac=function(Ce){return new(Ce||ce)(i.Y36(i.SBq),i.Y36(c.RK),i.Y36(g),i.Y36(c.yB),i.Y36(c.WU))},ce.\u0275dir=i.lG2({type:ce,features:[i.qOj]}),ce})(),P=(()=>{class ce extends O{constructor(){super(...arguments),this.inputs=D}}return ce.\u0275fac=function(){let Ue;return function(Ye){return(Ue||(Ue=i.n5z(ce)))(Ye||ce)}}(),ce.\u0275dir=i.lG2({type:ce,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[i.qOj]}),ce})();const k=new Map,F={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};let z=(()=>{class ce extends c.QI{constructor(Ce,Ye){super(),this._styler=Ce,this._config=Ye}buildStyles(Ce,Ye){return Ce.endsWith(se)?(Ce=Ce.slice(0,Ce.indexOf(se)),function $e(ce,Ue){const[Ce,Ye]=ce.split(" "),wt=an=>`-${an}`;let st="0px",ut=wt(Ye??Ce),Ht="0px";return"rtl"===Ue?Ht=wt(Ce):st=wt(Ce),{margin:`0px ${st} ${ut} ${Ht}`}}(Ce=(0,c.FL)(Ce,this._config.multiplier),Ye.directionality)):{}}sideEffect(Ce,Ye,Pe){const wt=Pe.items;if(Ce.endsWith(se)){Ce=Ce.slice(0,Ce.indexOf(se));const st=function Me(ce,Ue){const[Ce,Ye]=ce.split(" ");let wt="0px",ut="0px";return"rtl"===Ue?ut=Ce:wt=Ce,{padding:`0px ${wt} ${Ye??Ce} ${ut}`}}(Ce=(0,c.FL)(Ce,this._config.multiplier),Pe.directionality);this._styler.applyStyleToElements(st,Pe.items)}else{Ce=(0,c.FL)(Ce,this._config.multiplier),Ce=this.addFallbackUnit(Ce);const st=wt.pop(),ut=function Ke(ce,Ue){const Ce=it(Ue.directionality,Ue.layout),Ye={...F};return Ye[Ce]=ce,Ye}(Ce,Pe);this._styler.applyStyleToElements(ut,wt),this._styler.applyStyleToElements(F,[st])}}addFallbackUnit(Ce){return isNaN(+Ce)?Ce:`${Ce}${this._config.defaultUnit}`}}return ce.\u0275fac=function(Ce){return new(Ce||ce)(i.LFG(c.RK),i.LFG(c.WU))},ce.\u0275prov=i.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})();const ae=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"];let ue=(()=>{class ce extends c.iR{constructor(Ce,Ye,Pe,wt,st,ut){super(Ce,st,wt,ut),this.zone=Ye,this.directionality=Pe,this.styleUtils=wt,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new b.xQ;const Ht=[this.directionality.change,this.observerSubject.asObservable()];this.init(Ht),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,h.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}get childrenNodes(){const Ce=this.nativeElement.children,Ye=[];for(let Pe=Ce.length;Pe--;)Ye[Pe]=Ce[Pe];return Ye}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(Ce){const Pe=Ce.value.split(" ");this.layout=Pe[0],v.iQ.find(wt=>wt===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue(Ce){const Ye=this.childrenNodes.filter(Pe=>1===Pe.nodeType&&this.willDisplay(Pe)).sort((Pe,wt)=>{const st=+this.styler.lookupStyle(Pe,"order"),ut=+this.styler.lookupStyle(wt,"order");return isNaN(st)||isNaN(ut)||st===ut?0:st>ut?1:-1});if(Ye.length>0){const Pe=this.directionality.value,wt=this.layout;"row"===wt&&"rtl"===Pe?this.styleCache=ge:"row"===wt&&"rtl"!==Pe?this.styleCache=ie:"column"===wt&&"rtl"===Pe?this.styleCache=W:"column"===wt&&"rtl"!==Pe&&(this.styleCache=he),this.addStyles(Ce,{directionality:Pe,items:Ye,layout:wt})}}clearStyles(){const Ce=Object.keys(this.mru).length>0,Ye=Ce?"padding":it(this.directionality.value,this.layout);Ce&&super.clearStyles(),this.styleUtils.applyStyleToElements({[Ye]:""},this.childrenNodes)}willDisplay(Ce){const Ye=this.marshal.getValue(Ce,"show-hide");return!0===Ye||void 0===Ye&&"none"!==this.styleUtils.lookupStyle(Ce,"display")}buildChildObservable(){this.zone.runOutsideAngular(()=>{typeof MutationObserver<"u"&&(this.observer=new MutationObserver(Ce=>{Ce.some(Pe=>Pe.addedNodes&&Pe.addedNodes.length>0||Pe.removedNodes&&Pe.removedNodes.length>0)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}return ce.\u0275fac=function(Ce){return new(Ce||ce)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(a.Is),i.Y36(c.RK),i.Y36(z),i.Y36(c.yB))},ce.\u0275dir=i.lG2({type:ce,features:[i.qOj]}),ce})(),le=(()=>{class ce extends ue{constructor(){super(...arguments),this.inputs=ae}}return ce.\u0275fac=function(){let Ue;return function(Ye){return(Ue||(Ue=i.n5z(ce)))(Ye||ce)}}(),ce.\u0275dir=i.lG2({type:ce,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[i.qOj]}),ce})();const ge=new Map,W=new Map,ie=new Map,he=new Map,se=" grid";function it(ce,Ue){switch(Ue){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":default:return"rtl"===ce?"margin-left":"margin-right";case"row-reverse":return"rtl"===ce?"margin-right":"margin-left"}}let tt=(()=>{class ce extends c.QI{constructor(Ce){super(),this.layoutConfig=Ce}buildStyles(Ce,Ye){let[Pe,wt,...st]=Ce.split(" "),ut=st.join(" ");const Ht=Ye.direction.indexOf("column")>-1?"column":"row",an=(0,v.tj)(Ht)?"max-width":"max-height",We=(0,v.tj)(Ht)?"min-width":"min-height",rt=String(ut).indexOf("calc")>-1,qt=rt||"auto"===ut,Ut=String(ut).indexOf("%")>-1&&!rt,en=String(ut).indexOf("px")>-1||String(ut).indexOf("rem")>-1||String(ut).indexOf("em")>-1||String(ut).indexOf("vw")>-1||String(ut).indexOf("vh")>-1;let bn=rt||en;Pe="0"==Pe?0:Pe,wt="0"==wt?0:wt;const Rt=!Pe&&!wt;let vt={};const ct={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(ut||""){case"":const Bt=!1!==this.layoutConfig.useColumnBasisZero;ut="row"===Ht?"0%":Bt?"0.000000001px":"auto";break;case"initial":case"nogrow":Pe=0,ut="auto";break;case"grow":ut="100%";break;case"noshrink":wt=0,ut="auto";break;case"auto":break;case"none":Pe=0,wt=0,ut="auto";break;default:!bn&&!Ut&&!isNaN(ut)&&(ut+="%"),"0%"===ut&&(bn=!0),"0px"===ut&&(ut="0%"),vt=(0,v.kt)(ct,rt?{"flex-grow":Pe,"flex-shrink":wt,"flex-basis":bn?ut:"100%"}:{flex:`${Pe} ${wt} ${bn?ut:"100%"}`})}return vt.flex||vt["flex-grow"]||(vt=(0,v.kt)(ct,rt?{"flex-grow":Pe,"flex-shrink":wt,"flex-basis":ut}:{flex:`${Pe} ${wt} ${ut}`})),"0%"!==ut&&"0px"!==ut&&"0.000000001px"!==ut&&"auto"!==ut&&(vt[We]=Rt||bn&&Pe?ut:null,vt[an]=Rt||!qt&&wt?ut:null),vt[We]||vt[an]?Ye.hasWrap&&(vt[rt?"flex-basis":"flex"]=vt[an]?rt?vt[an]:`${Pe} ${wt} ${vt[an]}`:rt?vt[We]:`${Pe} ${wt} ${vt[We]}`):vt=(0,v.kt)(ct,rt?{"flex-grow":Pe,"flex-shrink":wt,"flex-basis":ut}:{flex:`${Pe} ${wt} ${ut}`}),(0,v.kt)(vt,{"box-sizing":"border-box"})}}return ce.\u0275fac=function(Ce){return new(Ce||ce)(i.LFG(c.WU))},ce.\u0275prov=i.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})();const me=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let Ae=(()=>{class ce extends c.iR{constructor(Ce,Ye,Pe,wt,st){super(Ce,wt,Ye,st),this.layoutConfig=Pe,this.marshal=st,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(Ce){this.flexShrink=Ce||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(Ce){this.flexGrow=Ce||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,h.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,h.R)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(Ce){const Pe=Ce.value.split(" ");this.direction=Pe[0],this.wrap=void 0!==Pe[1]&&"wrap"===Pe[1],this.triggerUpdate()}updateWithValue(Ce){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const Pe=this.direction,wt=Pe.startsWith("row"),st=this.wrap;wt&&st?this.styleCache=Dt:wt&&!st?this.styleCache=ft:!wt&&st?this.styleCache=jt:!wt&&!st&&(this.styleCache=Yt);const ut=String(Ce).replace(";",""),Ht=(0,c.Ot)(ut,this.flexGrow,this.flexShrink);this.addStyles(Ht.join(" "),{direction:Pe,hasWrap:st})}triggerReflow(){const Ce=this.activatedValue;if(void 0!==Ce){const Ye=(0,c.Ot)(Ce+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,Ye.join(" "))}}}return ce.\u0275fac=function(Ce){return new(Ce||ce)(i.Y36(i.SBq),i.Y36(c.RK),i.Y36(c.WU),i.Y36(tt),i.Y36(c.yB))},ce.\u0275dir=i.lG2({type:ce,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[i.qOj]}),ce})(),yt=(()=>{class ce extends Ae{constructor(){super(...arguments),this.inputs=me}}return ce.\u0275fac=function(){let Ue;return function(Ye){return(Ue||(Ue=i.n5z(ce)))(Ye||ce)}}(),ce.\u0275dir=i.lG2({type:ce,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[i.qOj]}),ce})();const ft=new Map,Yt=new Map,Dt=new Map,jt=new Map,m={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"};let j=(()=>{class ce extends c.QI{buildStyles(Ce){return m}}return ce.\u0275fac=function(){let Ue;return function(Ye){return(Ue||(Ue=i.n5z(ce)))(Ye||ce)}}(),ce.\u0275prov=i.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})(),de=(()=>{class ce extends c.iR{constructor(Ce,Ye,Pe,wt){super(Ce,Pe,Ye,wt),this.styleCache=X,this.addStyles("")}}return ce.\u0275fac=function(Ce){return new(Ce||ce)(i.Y36(i.SBq),i.Y36(c.RK),i.Y36(j),i.Y36(c.yB))},ce.\u0275dir=i.lG2({type:ce,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[i.qOj]}),ce})();const X=new Map;let H=(()=>{class ce extends c.QI{buildStyles(Ce,Ye){const Pe={},[wt,st]=Ce.split(" ");switch(wt){case"center":Pe["justify-content"]="center";break;case"space-around":Pe["justify-content"]="space-around";break;case"space-between":Pe["justify-content"]="space-between";break;case"space-evenly":Pe["justify-content"]="space-evenly";break;case"end":case"flex-end":Pe["justify-content"]="flex-end";break;default:Pe["justify-content"]="flex-start"}switch(st){case"start":case"flex-start":Pe["align-items"]=Pe["align-content"]="flex-start";break;case"center":Pe["align-items"]=Pe["align-content"]="center";break;case"end":case"flex-end":Pe["align-items"]=Pe["align-content"]="flex-end";break;case"space-between":Pe["align-content"]="space-between",Pe["align-items"]="stretch";break;case"space-around":Pe["align-content"]="space-around",Pe["align-items"]="stretch";break;case"baseline":Pe["align-content"]="stretch",Pe["align-items"]="baseline";break;default:Pe["align-items"]=Pe["align-content"]="stretch"}return(0,v.kt)(Pe,{display:Ye.inline?"inline-flex":"flex","flex-direction":Ye.layout,"box-sizing":"border-box","max-width":"stretch"===st?(0,v.tj)(Ye.layout)?null:"100%":null,"max-height":"stretch"===st&&(0,v.tj)(Ye.layout)?"100%":null})}}return ce.\u0275fac=function(){let Ue;return function(Ye){return(Ue||(Ue=i.n5z(ce)))(Ye||ce)}}(),ce.\u0275prov=i.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})();const f=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let T=(()=>{class ce extends c.iR{constructor(Ce,Ye,Pe,wt){super(Ce,Pe,Ye,wt),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,h.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(Ce){const Ye=this.layout||"row",Pe=this.inline;"row"===Ye&&Pe?this.styleCache=Et:"row"!==Ye||Pe?"row-reverse"===Ye&&Pe?this.styleCache=qe:"row-reverse"!==Ye||Pe?"column"===Ye&&Pe?this.styleCache=ye:"column"!==Ye||Pe?"column-reverse"===Ye&&Pe?this.styleCache=xe:"column-reverse"===Ye&&!Pe&&(this.styleCache=ht):this.styleCache=ze:this.styleCache=St:this.styleCache=Je,this.addStyles(Ce,{layout:Ye,inline:Pe})}onLayoutChange(Ce){const Ye=Ce.value.split(" ");this.layout=Ye[0],this.inline=Ce.value.includes("inline"),v.iQ.find(Pe=>Pe===this.layout)||(this.layout="row"),this.triggerUpdate()}}return ce.\u0275fac=function(Ce){return new(Ce||ce)(i.Y36(i.SBq),i.Y36(c.RK),i.Y36(H),i.Y36(c.yB))},ce.\u0275dir=i.lG2({type:ce,features:[i.qOj]}),ce})(),ve=(()=>{class ce extends T{constructor(){super(...arguments),this.inputs=f}}return ce.\u0275fac=function(){let Ue;return function(Ye){return(Ue||(Ue=i.n5z(ce)))(Ye||ce)}}(),ce.\u0275dir=i.lG2({type:ce,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[i.qOj]}),ce})();const Je=new Map,ze=new Map,St=new Map,ht=new Map,Et=new Map,ye=new Map,qe=new Map,xe=new Map;let ot=(()=>{class ce{}return ce.\u0275fac=function(Ce){return new(Ce||ce)},ce.\u0275mod=i.oAB({type:ce}),ce.\u0275inj=i.cJS({imports:[c.IR,a.vT]}),ce})()},9814:(Ct,ke,u)=>{"use strict";u.d(ke,{o9:()=>Ne});var i=u(4650),a=u(2233),c=u(5829),v=u(1576);u(1281);let mn=(()=>{class fe{}return fe.\u0275fac=function(Se){return new(Se||fe)},fe.\u0275mod=i.oAB({type:fe}),fe.\u0275inj=i.cJS({imports:[a.IR]}),fe})();var On=u(6895);let Ne=(()=>{class fe{constructor(Se,gt){(0,On.PM)(gt)&&!Se&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(Se,gt=[]){return{ngModule:fe,providers:Se.serverLoaded?[{provide:a.WU,useValue:{...a.g5,...Se}},{provide:a.Bs,useValue:gt,multi:!0},{provide:a.wY,useValue:!0}]:[{provide:a.WU,useValue:{...a.g5,...Se}},{provide:a.Bs,useValue:gt,multi:!0}]}}}return fe.\u0275fac=function(Se){return new(Se||fe)(i.LFG(a.wY),i.LFG(i.Lbi))},fe.\u0275mod=i.oAB({type:fe}),fe.\u0275inj=i.cJS({imports:[v.ae,c.aT,mn,v.ae,c.aT,mn]}),fe})()},4006:(Ct,ke,u)=>{"use strict";u.d(ke,{Cf:()=>le,F:()=>ui,Fd:()=>Cr,Fj:()=>z,JJ:()=>U,JL:()=>Re,JU:()=>D,On:()=>Un,QS:()=>Dr,UX:()=>Kn,Zs:()=>Ei,_Y:()=>kr,a5:()=>Q,kI:()=>ie,nD:()=>Xt,qQ:()=>Di,sg:()=>Si,u:()=>Oi,u5:()=>Yn,wO:()=>Qe,wV:()=>Fi});var i=u(4650),a=u(6895),c=u(5254),v=u(567),b=u(4850);let h=(()=>{class te{constructor($,Ge){this._renderer=$,this._elementRef=Ge,this.onChange=Zt=>{},this.onTouched=()=>{}}setProperty($,Ge){this._renderer.setProperty(this._elementRef.nativeElement,$,Ge)}registerOnTouched($){this.onTouched=$}registerOnChange($){this.onChange=$}setDisabledState($){this.setProperty("disabled",$)}}return te.\u0275fac=function($){return new($||te)(i.Y36(i.Qsj),i.Y36(i.SBq))},te.\u0275dir=i.lG2({type:te}),te})(),g=(()=>{class te extends h{}return te.\u0275fac=function(){let K;return function(Ge){return(K||(K=i.n5z(te)))(Ge||te)}}(),te.\u0275dir=i.lG2({type:te,features:[i.qOj]}),te})();const D=new i.OlP("NgValueAccessor"),P={provide:D,useExisting:(0,i.Gpc)(()=>z),multi:!0},F=new i.OlP("CompositionEventMode");let z=(()=>{class te extends h{constructor($,Ge,Zt){super($,Ge),this._compositionMode=Zt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function k(){const te=(0,a.q)()?(0,a.q)().getUserAgent():"";return/android (\d+)/.test(te.toLowerCase())}())}writeValue($){this.setProperty("value",$??"")}_handleInput($){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange($)}_compositionStart(){this._composing=!0}_compositionEnd($){this._composing=!1,this._compositionMode&&this.onChange($)}}return te.\u0275fac=function($){return new($||te)(i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(F,8))},te.\u0275dir=i.lG2({type:te,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function($,Ge){1&$&&i.NdJ("input",function(Mn){return Ge._handleInput(Mn.target.value)})("blur",function(){return Ge.onTouched()})("compositionstart",function(){return Ge._compositionStart()})("compositionend",function(Mn){return Ge._compositionEnd(Mn.target.value)})},features:[i._Bn([P]),i.qOj]}),te})();function we(te){return null==te||("string"==typeof te||Array.isArray(te))&&0===te.length}function ue(te){return null!=te&&"number"==typeof te.length}const le=new i.OlP("NgValidators"),ge=new i.OlP("NgAsyncValidators"),W=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class ie{static min(K){return he(K)}static max(K){return se(K)}static required(K){return Me(K)}static requiredTrue(K){return $e(K)}static email(K){return function it(te){return we(te.value)||W.test(te.value)?null:{email:!0}}(K)}static minLength(K){return Ke(K)}static maxLength(K){return tt(K)}static pattern(K){return function me(te){if(!te)return Xe;let K,$;return"string"==typeof te?($="","^"!==te.charAt(0)&&($+="^"),$+=te,"$"!==te.charAt(te.length-1)&&($+="$"),K=new RegExp($)):($=te.toString(),K=te),Ge=>{if(we(Ge.value))return null;const Zt=Ge.value;return K.test(Zt)?null:{pattern:{requiredPattern:$,actualValue:Zt}}}}(K)}static nullValidator(K){return null}static compose(K){return V(K)}static composeAsync(K){return oe(K)}}function he(te){return K=>{if(we(K.value)||we(te))return null;const $=parseFloat(K.value);return!isNaN($)&&${if(we(K.value)||we(te))return null;const $=parseFloat(K.value);return!isNaN($)&&$>te?{max:{max:te,actual:K.value}}:null}}function Me(te){return we(te.value)?{required:!0}:null}function $e(te){return!0===te.value?null:{required:!0}}function Ke(te){return K=>we(K.value)||!ue(K.value)?null:K.value.lengthue(K.value)&&K.value.length>te?{maxlength:{requiredLength:te,actualLength:K.value.length}}:null}function Xe(te){return null}function Ae(te){return null!=te}function yt(te){return(0,i.QGY)(te)?(0,c.D)(te):te}function ft(te){let K={};return te.forEach($=>{K=null!=$?{...K,...$}:K}),0===Object.keys(K).length?null:K}function Yt(te,K){return K.map($=>$(te))}function jt(te){return te.map(K=>function Dt(te){return!te.validate}(K)?K:$=>K.validate($))}function V(te){if(!te)return null;const K=te.filter(Ae);return 0==K.length?null:function($){return ft(Yt($,K))}}function Ee(te){return null!=te?V(jt(te)):null}function oe(te){if(!te)return null;const K=te.filter(Ae);return 0==K.length?null:function($){const Ge=Yt($,K).map(yt);return(0,v.D)(Ge).pipe((0,b.U)(ft))}}function _e(te){return null!=te?oe(jt(te)):null}function Oe(te,K){return null===te?[K]:Array.isArray(te)?[...te,K]:[te,K]}function lt(te){return te._rawValidators}function be(te){return te._rawAsyncValidators}function et(te){return te?Array.isArray(te)?te:[te]:[]}function Mt(te,K){return Array.isArray(te)?te.includes(K):te===K}function _t(te,K){const $=et(K);return et(te).forEach(Zt=>{Mt($,Zt)||$.push(Zt)}),$}function Be(te,K){return et(K).filter($=>!Mt(te,$))}class at{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(K){this._rawValidators=K||[],this._composedValidatorFn=Ee(this._rawValidators)}_setAsyncValidators(K){this._rawAsyncValidators=K||[],this._composedAsyncValidatorFn=_e(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(K){this._onDestroyCallbacks.push(K)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(K=>K()),this._onDestroyCallbacks=[]}reset(K){this.control&&this.control.reset(K)}hasError(K,$){return!!this.control&&this.control.hasError(K,$)}getError(K,$){return this.control?this.control.getError(K,$):null}}class nt extends at{get formDirective(){return null}get path(){return null}}class Q extends at{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Le{constructor(K){this._cd=K}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let U=(()=>{class te extends Le{constructor($){super($)}}return te.\u0275fac=function($){return new($||te)(i.Y36(Q,2))},te.\u0275dir=i.lG2({type:te,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function($,Ge){2&$&&i.ekj("ng-untouched",Ge.isUntouched)("ng-touched",Ge.isTouched)("ng-pristine",Ge.isPristine)("ng-dirty",Ge.isDirty)("ng-valid",Ge.isValid)("ng-invalid",Ge.isInvalid)("ng-pending",Ge.isPending)},features:[i.qOj]}),te})(),Re=(()=>{class te extends Le{constructor($){super($)}}return te.\u0275fac=function($){return new($||te)(i.Y36(nt,10))},te.\u0275dir=i.lG2({type:te,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function($,Ge){2&$&&i.ekj("ng-untouched",Ge.isUntouched)("ng-touched",Ge.isTouched)("ng-pristine",Ge.isPristine)("ng-dirty",Ge.isDirty)("ng-valid",Ge.isValid)("ng-invalid",Ge.isInvalid)("ng-pending",Ge.isPending)("ng-submitted",Ge.isSubmitted)},features:[i.qOj]}),te})();const xe="VALID",Fe="INVALID",ot="PENDING",ce="DISABLED";function Ue(te){return(wt(te)?te.validators:te)||null}function Ce(te){return Array.isArray(te)?Ee(te):te||null}function Ye(te,K){return(wt(K)?K.asyncValidators:te)||null}function Pe(te){return Array.isArray(te)?_e(te):te||null}function wt(te){return null!=te&&!Array.isArray(te)&&"object"==typeof te}function st(te,K,$){const Ge=te.controls;if(!(K?Object.keys(Ge):Ge).length)throw new i.vHH(1e3,"");if(!Ge[$])throw new i.vHH(1001,"")}function ut(te,K,$){te._forEachChild((Ge,Zt)=>{if(void 0===$[Zt])throw new i.vHH(1002,"")})}class Ht{constructor(K,$){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=K,this._rawAsyncValidators=$,this._composedValidatorFn=Ce(this._rawValidators),this._composedAsyncValidatorFn=Pe(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(K){this._rawValidators=this._composedValidatorFn=K}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(K){this._rawAsyncValidators=this._composedAsyncValidatorFn=K}get parent(){return this._parent}get valid(){return this.status===xe}get invalid(){return this.status===Fe}get pending(){return this.status==ot}get disabled(){return this.status===ce}get enabled(){return this.status!==ce}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(K){this._rawValidators=K,this._composedValidatorFn=Ce(K)}setAsyncValidators(K){this._rawAsyncValidators=K,this._composedAsyncValidatorFn=Pe(K)}addValidators(K){this.setValidators(_t(K,this._rawValidators))}addAsyncValidators(K){this.setAsyncValidators(_t(K,this._rawAsyncValidators))}removeValidators(K){this.setValidators(Be(K,this._rawValidators))}removeAsyncValidators(K){this.setAsyncValidators(Be(K,this._rawAsyncValidators))}hasValidator(K){return Mt(this._rawValidators,K)}hasAsyncValidator(K){return Mt(this._rawAsyncValidators,K)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(K={}){this.touched=!0,this._parent&&!K.onlySelf&&this._parent.markAsTouched(K)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(K=>K.markAllAsTouched())}markAsUntouched(K={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild($=>{$.markAsUntouched({onlySelf:!0})}),this._parent&&!K.onlySelf&&this._parent._updateTouched(K)}markAsDirty(K={}){this.pristine=!1,this._parent&&!K.onlySelf&&this._parent.markAsDirty(K)}markAsPristine(K={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild($=>{$.markAsPristine({onlySelf:!0})}),this._parent&&!K.onlySelf&&this._parent._updatePristine(K)}markAsPending(K={}){this.status=ot,!1!==K.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!K.onlySelf&&this._parent.markAsPending(K)}disable(K={}){const $=this._parentMarkedDirty(K.onlySelf);this.status=ce,this.errors=null,this._forEachChild(Ge=>{Ge.disable({...K,onlySelf:!0})}),this._updateValue(),!1!==K.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...K,skipPristineCheck:$}),this._onDisabledChange.forEach(Ge=>Ge(!0))}enable(K={}){const $=this._parentMarkedDirty(K.onlySelf);this.status=xe,this._forEachChild(Ge=>{Ge.enable({...K,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:K.emitEvent}),this._updateAncestors({...K,skipPristineCheck:$}),this._onDisabledChange.forEach(Ge=>Ge(!1))}_updateAncestors(K){this._parent&&!K.onlySelf&&(this._parent.updateValueAndValidity(K),K.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(K){this._parent=K}getRawValue(){return this.value}updateValueAndValidity(K={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===xe||this.status===ot)&&this._runAsyncValidator(K.emitEvent)),!1!==K.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!K.onlySelf&&this._parent.updateValueAndValidity(K)}_updateTreeValidity(K={emitEvent:!0}){this._forEachChild($=>$._updateTreeValidity(K)),this.updateValueAndValidity({onlySelf:!0,emitEvent:K.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ce:xe}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(K){if(this.asyncValidator){this.status=ot,this._hasOwnPendingAsyncValidator=!0;const $=yt(this.asyncValidator(this));this._asyncValidationSubscription=$.subscribe(Ge=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Ge,{emitEvent:K})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(K,$={}){this.errors=K,this._updateControlsErrors(!1!==$.emitEvent)}get(K){let $=K;return null==$||(Array.isArray($)||($=$.split(".")),0===$.length)?null:$.reduce((Ge,Zt)=>Ge&&Ge._find(Zt),this)}getError(K,$){const Ge=$?this.get($):this;return Ge&&Ge.errors?Ge.errors[K]:null}hasError(K,$){return!!this.getError(K,$)}get root(){let K=this;for(;K._parent;)K=K._parent;return K}_updateControlsErrors(K){this.status=this._calculateStatus(),K&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(K)}_initObservables(){this.valueChanges=new i.vpe,this.statusChanges=new i.vpe}_calculateStatus(){return this._allControlsDisabled()?ce:this.errors?Fe:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ot)?ot:this._anyControlsHaveStatus(Fe)?Fe:xe}_anyControlsHaveStatus(K){return this._anyControls($=>$.status===K)}_anyControlsDirty(){return this._anyControls(K=>K.dirty)}_anyControlsTouched(){return this._anyControls(K=>K.touched)}_updatePristine(K={}){this.pristine=!this._anyControlsDirty(),this._parent&&!K.onlySelf&&this._parent._updatePristine(K)}_updateTouched(K={}){this.touched=this._anyControlsTouched(),this._parent&&!K.onlySelf&&this._parent._updateTouched(K)}_registerOnCollectionChange(K){this._onCollectionChange=K}_setUpdateStrategy(K){wt(K)&&null!=K.updateOn&&(this._updateOn=K.updateOn)}_parentMarkedDirty(K){return!K&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(K){return null}}class an extends Ht{constructor(K,$,Ge){super(Ue($),Ye(Ge,$)),this.controls=K,this._initObservables(),this._setUpdateStrategy($),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(K,$){return this.controls[K]?this.controls[K]:(this.controls[K]=$,$.setParent(this),$._registerOnCollectionChange(this._onCollectionChange),$)}addControl(K,$,Ge={}){this.registerControl(K,$),this.updateValueAndValidity({emitEvent:Ge.emitEvent}),this._onCollectionChange()}removeControl(K,$={}){this.controls[K]&&this.controls[K]._registerOnCollectionChange(()=>{}),delete this.controls[K],this.updateValueAndValidity({emitEvent:$.emitEvent}),this._onCollectionChange()}setControl(K,$,Ge={}){this.controls[K]&&this.controls[K]._registerOnCollectionChange(()=>{}),delete this.controls[K],$&&this.registerControl(K,$),this.updateValueAndValidity({emitEvent:Ge.emitEvent}),this._onCollectionChange()}contains(K){return this.controls.hasOwnProperty(K)&&this.controls[K].enabled}setValue(K,$={}){ut(this,0,K),Object.keys(K).forEach(Ge=>{st(this,!0,Ge),this.controls[Ge].setValue(K[Ge],{onlySelf:!0,emitEvent:$.emitEvent})}),this.updateValueAndValidity($)}patchValue(K,$={}){null!=K&&(Object.keys(K).forEach(Ge=>{const Zt=this.controls[Ge];Zt&&Zt.patchValue(K[Ge],{onlySelf:!0,emitEvent:$.emitEvent})}),this.updateValueAndValidity($))}reset(K={},$={}){this._forEachChild((Ge,Zt)=>{Ge.reset(K[Zt],{onlySelf:!0,emitEvent:$.emitEvent})}),this._updatePristine($),this._updateTouched($),this.updateValueAndValidity($)}getRawValue(){return this._reduceChildren({},(K,$,Ge)=>(K[Ge]=$.getRawValue(),K))}_syncPendingControls(){let K=this._reduceChildren(!1,($,Ge)=>!!Ge._syncPendingControls()||$);return K&&this.updateValueAndValidity({onlySelf:!0}),K}_forEachChild(K){Object.keys(this.controls).forEach($=>{const Ge=this.controls[$];Ge&&K(Ge,$)})}_setUpControls(){this._forEachChild(K=>{K.setParent(this),K._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(K){for(const[$,Ge]of Object.entries(this.controls))if(this.contains($)&&K(Ge))return!0;return!1}_reduceValue(){return this._reduceChildren({},($,Ge,Zt)=>((Ge.enabled||this.disabled)&&($[Zt]=Ge.value),$))}_reduceChildren(K,$){let Ge=K;return this._forEachChild((Zt,Mn)=>{Ge=$(Ge,Zt,Mn)}),Ge}_allControlsDisabled(){for(const K of Object.keys(this.controls))if(this.controls[K].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(K){return this.controls.hasOwnProperty(K)?this.controls[K]:null}}function en(te,K){return[...K.path,te]}function bn(te,K){Bt(te,K),K.valueAccessor.writeValue(te.value),te.disabled&&K.valueAccessor.setDisabledState?.(!0),function xn(te,K){K.valueAccessor.registerOnChange($=>{te._pendingValue=$,te._pendingChange=!0,te._pendingDirty=!0,"change"===te.updateOn&&mn(te,K)})}(te,K),function On(te,K){const $=(Ge,Zt)=>{K.valueAccessor.writeValue(Ge),Zt&&K.viewToModelUpdate(Ge)};te.registerOnChange($),K._registerOnDestroy(()=>{te._unregisterOnChange($)})}(te,K),function kn(te,K){K.valueAccessor.registerOnTouched(()=>{te._pendingTouched=!0,"blur"===te.updateOn&&te._pendingChange&&mn(te,K),"submit"!==te.updateOn&&te.markAsTouched()})}(te,K),function ct(te,K){if(K.valueAccessor.setDisabledState){const $=Ge=>{K.valueAccessor.setDisabledState(Ge)};te.registerOnDisabledChange($),K._registerOnDestroy(()=>{te._unregisterOnDisabledChange($)})}}(te,K)}function Rt(te,K,$=!0){const Ge=()=>{};K.valueAccessor&&(K.valueAccessor.registerOnChange(Ge),K.valueAccessor.registerOnTouched(Ge)),Jt(te,K),te&&(K._invokeOnDestroyCallbacks(),te._registerOnCollectionChange(()=>{}))}function vt(te,K){te.forEach($=>{$.registerOnValidatorChange&&$.registerOnValidatorChange(K)})}function Bt(te,K){const $=lt(te);null!==K.validator?te.setValidators(Oe($,K.validator)):"function"==typeof $&&te.setValidators([$]);const Ge=be(te);null!==K.asyncValidator?te.setAsyncValidators(Oe(Ge,K.asyncValidator)):"function"==typeof Ge&&te.setAsyncValidators([Ge]);const Zt=()=>te.updateValueAndValidity();vt(K._rawValidators,Zt),vt(K._rawAsyncValidators,Zt)}function Jt(te,K){let $=!1;if(null!==te){if(null!==K.validator){const Zt=lt(te);if(Array.isArray(Zt)&&Zt.length>0){const Mn=Zt.filter(bi=>bi!==K.validator);Mn.length!==Zt.length&&($=!0,te.setValidators(Mn))}}if(null!==K.asyncValidator){const Zt=be(te);if(Array.isArray(Zt)&&Zt.length>0){const Mn=Zt.filter(bi=>bi!==K.asyncValidator);Mn.length!==Zt.length&&($=!0,te.setAsyncValidators(Mn))}}}const Ge=()=>{};return vt(K._rawValidators,Ge),vt(K._rawAsyncValidators,Ge),$}function mn(te,K){te._pendingDirty&&te.markAsDirty(),te.setValue(te._pendingValue,{emitModelToViewChange:!1}),K.viewToModelUpdate(te._pendingValue),te._pendingChange=!1}function qn(te,K){Bt(te,K)}function Gt(te,K){if(!te.hasOwnProperty("model"))return!1;const $=te.model;return!!$.isFirstChange()||!Object.is(K,$.currentValue)}function Tn(te,K){te._syncPendingControls(),K.forEach($=>{const Ge=$.control;"submit"===Ge.updateOn&&Ge._pendingChange&&($.viewToModelUpdate(Ge._pendingValue),Ge._pendingChange=!1)})}function En(te,K){if(!K)return null;let $,Ge,Zt;return Array.isArray(K),K.forEach(Mn=>{Mn.constructor===z?$=Mn:function rn(te){return Object.getPrototypeOf(te.constructor)===g}(Mn)?Ge=Mn:Zt=Mn}),Zt||Ge||$||null}const ni={provide:nt,useExisting:(0,i.Gpc)(()=>ui)},jn=(()=>Promise.resolve(null))();let ui=(()=>{class te extends nt{constructor($,Ge){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new i.vpe,this.form=new an({},Ee($),_e(Ge))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl($){jn.then(()=>{const Ge=this._findContainer($.path);$.control=Ge.registerControl($.name,$.control),bn($.control,$),$.control.updateValueAndValidity({emitEvent:!1}),this._directives.add($)})}getControl($){return this.form.get($.path)}removeControl($){jn.then(()=>{const Ge=this._findContainer($.path);Ge&&Ge.removeControl($.name),this._directives.delete($)})}addFormGroup($){jn.then(()=>{const Ge=this._findContainer($.path),Zt=new an({});qn(Zt,$),Ge.registerControl($.name,Zt),Zt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup($){jn.then(()=>{const Ge=this._findContainer($.path);Ge&&Ge.removeControl($.name)})}getFormGroup($){return this.form.get($.path)}updateModel($,Ge){jn.then(()=>{this.form.get($.path).setValue(Ge)})}setValue($){this.control.setValue($)}onSubmit($){return this.submitted=!0,Tn(this.form,this._directives),this.ngSubmit.emit($),!1}onReset(){this.resetForm()}resetForm($){this.form.reset($),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer($){return $.pop(),$.length?this.form.get($):this.form}}return te.\u0275fac=function($){return new($||te)(i.Y36(le,10),i.Y36(ge,10))},te.\u0275dir=i.lG2({type:te,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function($,Ge){1&$&&i.NdJ("submit",function(Mn){return Ge.onSubmit(Mn)})("reset",function(){return Ge.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([ni]),i.qOj]}),te})();function zn(te,K){const $=te.indexOf(K);$>-1&&te.splice($,1)}function si(te){return"object"==typeof te&&null!==te&&2===Object.keys(te).length&&"value"in te&&"disabled"in te}const Ln=class extends Ht{constructor(K=null,$,Ge){super(Ue($),Ye(Ge,$)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(K),this._setUpdateStrategy($),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),wt($)&&($.nonNullable||$.initialValueIsDefault)&&(this.defaultValue=si(K)?K.value:K)}setValue(K,$={}){this.value=this._pendingValue=K,this._onChange.length&&!1!==$.emitModelToViewChange&&this._onChange.forEach(Ge=>Ge(this.value,!1!==$.emitViewToModelChange)),this.updateValueAndValidity($)}patchValue(K,$={}){this.setValue(K,$)}reset(K=this.defaultValue,$={}){this._applyFormState(K),this.markAsPristine($),this.markAsUntouched($),this.setValue(this.value,$),this._pendingChange=!1}_updateValue(){}_anyControls(K){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(K){this._onChange.push(K)}_unregisterOnChange(K){zn(this._onChange,K)}registerOnDisabledChange(K){this._onDisabledChange.push(K)}_unregisterOnDisabledChange(K){zn(this._onDisabledChange,K)}_forEachChild(K){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(K){si(K)?(this.value=this._pendingValue=K.value,K.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=K}},Ri={provide:Q,useExisting:(0,i.Gpc)(()=>Un)},yr=(()=>Promise.resolve(null))();let Un=(()=>{class te extends Q{constructor($,Ge,Zt,Mn,bi){super(),this._changeDetectorRef=bi,this.control=new Ln,this._registered=!1,this.update=new i.vpe,this._parent=$,this._setValidators(Ge),this._setAsyncValidators(Zt),this.valueAccessor=En(0,Mn)}ngOnChanges($){if(this._checkForErrors(),!this._registered||"name"in $){if(this._registered&&(this._checkName(),this.formDirective)){const Ge=$.name.previousValue;this.formDirective.removeControl({name:Ge,path:this._getPath(Ge)})}this._setUpControl()}"isDisabled"in $&&this._updateDisabled($),Gt($,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate($){this.viewModel=$,this.update.emit($)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){bn(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue($){yr.then(()=>{this.control.setValue($,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled($){const Ge=$.isDisabled.currentValue,Zt=0!==Ge&&(0,i.D6c)(Ge);yr.then(()=>{Zt&&!this.control.disabled?this.control.disable():!Zt&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath($){return this._parent?en($,this._parent):[$]}}return te.\u0275fac=function($){return new($||te)(i.Y36(nt,9),i.Y36(le,10),i.Y36(ge,10),i.Y36(D,10),i.Y36(i.sBO,8))},te.\u0275dir=i.lG2({type:te,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i._Bn([Ri]),i.qOj,i.TTD]}),te})(),kr=(()=>{class te{}return te.\u0275fac=function($){return new($||te)},te.\u0275dir=i.lG2({type:te,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),te})();const fs={provide:D,useExisting:(0,i.Gpc)(()=>Fi),multi:!0};let Fi=(()=>{class te extends g{writeValue($){this.setProperty("value",$??"")}registerOnChange($){this.onChange=Ge=>{$(""==Ge?null:parseFloat(Ge))}}}return te.\u0275fac=function(){let K;return function(Ge){return(K||(K=i.n5z(te)))(Ge||te)}}(),te.\u0275dir=i.lG2({type:te,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function($,Ge){1&$&&i.NdJ("input",function(Mn){return Ge.onChange(Mn.target.value)})("blur",function(){return Ge.onTouched()})},features:[i._Bn([fs]),i.qOj]}),te})(),sr=(()=>{class te{}return te.\u0275fac=function($){return new($||te)},te.\u0275mod=i.oAB({type:te}),te.\u0275inj=i.cJS({}),te})();const Ni=new i.OlP("NgModelWithFormControlWarning"),Tr={provide:nt,useExisting:(0,i.Gpc)(()=>Si)};let Si=(()=>{class te extends nt{constructor($,Ge){super(),this.validators=$,this.asyncValidators=Ge,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.vpe,this._setValidators($),this._setAsyncValidators(Ge)}ngOnChanges($){this._checkFormPresent(),$.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Jt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl($){const Ge=this.form.get($.path);return bn(Ge,$),Ge.updateValueAndValidity({emitEvent:!1}),this.directives.push($),Ge}getControl($){return this.form.get($.path)}removeControl($){Rt($.control||null,$,!1),function ci(te,K){const $=te.indexOf(K);$>-1&&te.splice($,1)}(this.directives,$)}addFormGroup($){this._setUpFormContainer($)}removeFormGroup($){this._cleanUpFormContainer($)}getFormGroup($){return this.form.get($.path)}addFormArray($){this._setUpFormContainer($)}removeFormArray($){this._cleanUpFormContainer($)}getFormArray($){return this.form.get($.path)}updateModel($,Ge){this.form.get($.path).setValue(Ge)}onSubmit($){return this.submitted=!0,Tn(this.form,this.directives),this.ngSubmit.emit($),!1}onReset(){this.resetForm()}resetForm($){this.form.reset($),this.submitted=!1}_updateDomValue(){this.directives.forEach($=>{const Ge=$.control,Zt=this.form.get($.path);Ge!==Zt&&(Rt(Ge||null,$),(te=>te instanceof Ln)(Zt)&&(bn(Zt,$),$.control=Zt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer($){const Ge=this.form.get($.path);qn(Ge,$),Ge.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer($){if(this.form){const Ge=this.form.get($.path);Ge&&function Ne(te,K){return Jt(te,K)}(Ge,$)&&Ge.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Bt(this.form,this),this._oldForm&&Jt(this._oldForm,this)}_checkFormPresent(){}}return te.\u0275fac=function($){return new($||te)(i.Y36(le,10),i.Y36(ge,10))},te.\u0275dir=i.lG2({type:te,selectors:[["","formGroup",""]],hostBindings:function($,Ge){1&$&&i.NdJ("submit",function(Mn){return Ge.onSubmit(Mn)})("reset",function(){return Ge.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([Tr]),i.qOj,i.TTD]}),te})();const ir={provide:Q,useExisting:(0,i.Gpc)(()=>Oi)};let Oi=(()=>{class te extends Q{constructor($,Ge,Zt,Mn,bi){super(),this._ngModelWarningConfig=bi,this._added=!1,this.update=new i.vpe,this._ngModelWarningSent=!1,this._parent=$,this._setValidators(Ge),this._setAsyncValidators(Zt),this.valueAccessor=En(0,Mn)}set isDisabled($){}ngOnChanges($){this._added||this._setUpControl(),Gt($,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate($){this.viewModel=$,this.update.emit($)}get path(){return en(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return te._ngModelWarningSentOnce=!1,te.\u0275fac=function($){return new($||te)(i.Y36(nt,13),i.Y36(le,10),i.Y36(ge,10),i.Y36(D,10),i.Y36(Ni,8))},te.\u0275dir=i.lG2({type:te,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i._Bn([ir]),i.qOj,i.TTD]}),te})();function Rr(te){return"number"==typeof te?te:parseInt(te,10)}function br(te){return"number"==typeof te?te:parseFloat(te)}let Jn=(()=>{class te{constructor(){this._validator=Xe}ngOnChanges($){if(this.inputName in $){const Ge=this.normalizeInput($[this.inputName].currentValue);this._enabled=this.enabled(Ge),this._validator=this._enabled?this.createValidator(Ge):Xe,this._onChange&&this._onChange()}}validate($){return this._validator($)}registerOnValidatorChange($){this._onChange=$}enabled($){return null!=$}}return te.\u0275fac=function($){return new($||te)},te.\u0275dir=i.lG2({type:te,features:[i.TTD]}),te})();const wr={provide:le,useExisting:(0,i.Gpc)(()=>Cr),multi:!0};let Cr=(()=>{class te extends Jn{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=$=>br($),this.createValidator=$=>se($)}}return te.\u0275fac=function(){let K;return function(Ge){return(K||(K=i.n5z(te)))(Ge||te)}}(),te.\u0275dir=i.lG2({type:te,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function($,Ge){2&$&&i.uIk("max",Ge._enabled?Ge.max:null)},inputs:{max:"max"},features:[i._Bn([wr]),i.qOj]}),te})();const vi={provide:le,useExisting:(0,i.Gpc)(()=>Di),multi:!0};let Di=(()=>{class te extends Jn{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=$=>br($),this.createValidator=$=>he($)}}return te.\u0275fac=function(){let K;return function(Ge){return(K||(K=i.n5z(te)))(Ge||te)}}(),te.\u0275dir=i.lG2({type:te,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function($,Ge){2&$&&i.uIk("min",Ge._enabled?Ge.min:null)},inputs:{min:"min"},features:[i._Bn([vi]),i.qOj]}),te})();const Ki={provide:le,useExisting:(0,i.Gpc)(()=>ji),multi:!0},Hi={provide:le,useExisting:(0,i.Gpc)(()=>Ei),multi:!0};let ji=(()=>{class te extends Jn{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=i.D6c,this.createValidator=$=>Me}enabled($){return $}}return te.\u0275fac=function(){let K;return function(Ge){return(K||(K=i.n5z(te)))(Ge||te)}}(),te.\u0275dir=i.lG2({type:te,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function($,Ge){2&$&&i.uIk("required",Ge._enabled?"":null)},inputs:{required:"required"},features:[i._Bn([Ki]),i.qOj]}),te})(),Ei=(()=>{class te extends ji{constructor(){super(...arguments),this.createValidator=$=>$e}}return te.\u0275fac=function(){let K;return function(Ge){return(K||(K=i.n5z(te)))(Ge||te)}}(),te.\u0275dir=i.lG2({type:te,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function($,Ge){2&$&&i.uIk("required",Ge._enabled?"":null)},features:[i._Bn([Hi]),i.qOj]}),te})();const q={provide:le,useExisting:(0,i.Gpc)(()=>Qe),multi:!0};let Qe=(()=>{class te extends Jn{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=$=>Rr($),this.createValidator=$=>Ke($)}}return te.\u0275fac=function(){let K;return function(Ge){return(K||(K=i.n5z(te)))(Ge||te)}}(),te.\u0275dir=i.lG2({type:te,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function($,Ge){2&$&&i.uIk("minlength",Ge._enabled?Ge.minlength:null)},inputs:{minlength:"minlength"},features:[i._Bn([q]),i.qOj]}),te})();const kt={provide:le,useExisting:(0,i.Gpc)(()=>Xt),multi:!0};let Xt=(()=>{class te extends Jn{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=$=>Rr($),this.createValidator=$=>tt($)}}return te.\u0275fac=function(){let K;return function(Ge){return(K||(K=i.n5z(te)))(Ge||te)}}(),te.\u0275dir=i.lG2({type:te,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function($,Ge){2&$&&i.uIk("maxlength",Ge._enabled?Ge.maxlength:null)},inputs:{maxlength:"maxlength"},features:[i._Bn([kt]),i.qOj]}),te})(),Nn=(()=>{class te{}return te.\u0275fac=function($){return new($||te)},te.\u0275mod=i.oAB({type:te}),te.\u0275inj=i.cJS({imports:[sr]}),te})(),Yn=(()=>{class te{}return te.\u0275fac=function($){return new($||te)},te.\u0275mod=i.oAB({type:te}),te.\u0275inj=i.cJS({imports:[Nn]}),te})(),Kn=(()=>{class te{static withConfig($){return{ngModule:te,providers:[{provide:Ni,useValue:$.warnOnNgModelWithFormControl}]}}}return te.\u0275fac=function($){return new($||te)},te.\u0275mod=i.oAB({type:te}),te.\u0275inj=i.cJS({imports:[Nn]}),te})();class di extends Ht{constructor(K,$,Ge){super(Ue($),Ye(Ge,$)),this.controls=K,this._initObservables(),this._setUpdateStrategy($),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(K){return this.controls[this._adjustIndex(K)]}push(K,$={}){this.controls.push(K),this._registerControl(K),this.updateValueAndValidity({emitEvent:$.emitEvent}),this._onCollectionChange()}insert(K,$,Ge={}){this.controls.splice(K,0,$),this._registerControl($),this.updateValueAndValidity({emitEvent:Ge.emitEvent})}removeAt(K,$={}){let Ge=this._adjustIndex(K);Ge<0&&(Ge=0),this.controls[Ge]&&this.controls[Ge]._registerOnCollectionChange(()=>{}),this.controls.splice(Ge,1),this.updateValueAndValidity({emitEvent:$.emitEvent})}setControl(K,$,Ge={}){let Zt=this._adjustIndex(K);Zt<0&&(Zt=0),this.controls[Zt]&&this.controls[Zt]._registerOnCollectionChange(()=>{}),this.controls.splice(Zt,1),$&&(this.controls.splice(Zt,0,$),this._registerControl($)),this.updateValueAndValidity({emitEvent:Ge.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(K,$={}){ut(this,0,K),K.forEach((Ge,Zt)=>{st(this,!1,Zt),this.at(Zt).setValue(Ge,{onlySelf:!0,emitEvent:$.emitEvent})}),this.updateValueAndValidity($)}patchValue(K,$={}){null!=K&&(K.forEach((Ge,Zt)=>{this.at(Zt)&&this.at(Zt).patchValue(Ge,{onlySelf:!0,emitEvent:$.emitEvent})}),this.updateValueAndValidity($))}reset(K=[],$={}){this._forEachChild((Ge,Zt)=>{Ge.reset(K[Zt],{onlySelf:!0,emitEvent:$.emitEvent})}),this._updatePristine($),this._updateTouched($),this.updateValueAndValidity($)}getRawValue(){return this.controls.map(K=>K.getRawValue())}clear(K={}){this.controls.length<1||(this._forEachChild($=>$._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:K.emitEvent}))}_adjustIndex(K){return K<0?K+this.length:K}_syncPendingControls(){let K=this.controls.reduce(($,Ge)=>!!Ge._syncPendingControls()||$,!1);return K&&this.updateValueAndValidity({onlySelf:!0}),K}_forEachChild(K){this.controls.forEach(($,Ge)=>{K($,Ge)})}_updateValue(){this.value=this.controls.filter(K=>K.enabled||this.disabled).map(K=>K.value)}_anyControls(K){return this.controls.some($=>$.enabled&&K($))}_setUpControls(){this._forEachChild(K=>this._registerControl(K))}_allControlsDisabled(){for(const K of this.controls)if(K.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(K){K.setParent(this),K._registerOnCollectionChange(this._onCollectionChange)}_find(K){return this.at(K)??null}}function cr(te){return!!te&&(void 0!==te.asyncValidators||void 0!==te.validators||void 0!==te.updateOn)}let Ii=(()=>{class te{constructor(){this.useNonNullable=!1}get nonNullable(){const $=new te;return $.useNonNullable=!0,$}group($,Ge=null){const Zt=this._reduceControls($);let Mn={};return cr(Ge)?Mn=Ge:null!==Ge&&(Mn.validators=Ge.validator,Mn.asyncValidators=Ge.asyncValidator),new an(Zt,Mn)}control($,Ge,Zt){let Mn={};return this.useNonNullable?(cr(Ge)?Mn=Ge:(Mn.validators=Ge,Mn.asyncValidators=Zt),new Ln($,{...Mn,nonNullable:!0})):new Ln($,Ge,Zt)}array($,Ge,Zt){const Mn=$.map(bi=>this._createControl(bi));return new di(Mn,Ge,Zt)}_reduceControls($){const Ge={};return Object.keys($).forEach(Zt=>{Ge[Zt]=this._createControl($[Zt])}),Ge}_createControl($){return $ instanceof Ln||$ instanceof Ht?$:Array.isArray($)?this.control($[0],$.length>1?$[1]:null,$.length>2?$[2]:null):this.control($)}}return te.\u0275fac=function($){return new($||te)},te.\u0275prov=i.Yz7({token:te,factory:te.\u0275fac,providedIn:Kn}),te})(),Dr=(()=>{class te extends Ii{group($,Ge=null){return super.group($,Ge)}control($,Ge,Zt){return super.control($,Ge,Zt)}array($,Ge,Zt){return super.array($,Ge,Zt)}}return te.\u0275fac=function(){let K;return function(Ge){return(K||(K=i.n5z(te)))(Ge||te)}}(),te.\u0275prov=i.Yz7({token:te,factory:te.\u0275fac,providedIn:Kn}),te})()},811:(Ct,ke,u)=>{"use strict";u.d(ke,{A9:()=>z,Yi:()=>we,vV:()=>ue});var i=u(2687),a=u(1281),c=u(5017),v=u(4650),b=u(4006),h=u(3238);const g=["button"],D=["*"],B=new v.OlP("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),O=new v.OlP("MatButtonToggleGroup"),P={provide:b.JU,useExisting:(0,v.Gpc)(()=>z),multi:!0};let k=0;class F{constructor(ge,W){this.source=ge,this.value=W}}let z=(()=>{class le{constructor(W,ie){this._changeDetector=W,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name="mat-button-toggle-group-"+k++,this.valueChange=new v.vpe,this.change=new v.vpe,this.appearance=ie&&ie.appearance?ie.appearance:"standard"}get name(){return this._name}set name(W){this._name=W,this._markButtonsForCheck()}get vertical(){return this._vertical}set vertical(W){this._vertical=(0,a.Ig)(W)}get value(){const W=this._selectionModel?this._selectionModel.selected:[];return this.multiple?W.map(ie=>ie.value):W[0]?W[0].value:void 0}set value(W){this._setSelectionByValue(W),this.valueChange.emit(this.value)}get selected(){const W=this._selectionModel?this._selectionModel.selected:[];return this.multiple?W:W[0]||null}get multiple(){return this._multiple}set multiple(W){this._multiple=(0,a.Ig)(W),this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(W){this._disabled=(0,a.Ig)(W),this._markButtonsForCheck()}ngOnInit(){this._selectionModel=new c.Ov(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(W=>W.checked))}writeValue(W){this.value=W,this._changeDetector.markForCheck()}registerOnChange(W){this._controlValueAccessorChangeFn=W}registerOnTouched(W){this._onTouched=W}setDisabledState(W){this.disabled=W}_emitChangeEvent(){const W=this.selected,ie=Array.isArray(W)?W[W.length-1]:W,he=new F(ie,this.value);this._controlValueAccessorChangeFn(he.value),this.change.emit(he)}_syncButtonToggle(W,ie,he=!1,se=!1){!this.multiple&&this.selected&&!W.checked&&(this.selected.checked=!1),this._selectionModel?ie?this._selectionModel.select(W):this._selectionModel.deselect(W):se=!0,se?Promise.resolve().then(()=>this._updateModelValue(he)):this._updateModelValue(he)}_isSelected(W){return this._selectionModel&&this._selectionModel.isSelected(W)}_isPrechecked(W){return!(typeof this._rawValue>"u")&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(ie=>null!=W.value&&ie===W.value):W.value===this._rawValue)}_setSelectionByValue(W){this._rawValue=W,this._buttonToggles&&(this.multiple&&W?(Array.isArray(W),this._clearSelection(),W.forEach(ie=>this._selectValue(ie))):(this._clearSelection(),this._selectValue(W)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(W=>W.checked=!1)}_selectValue(W){const ie=this._buttonToggles.find(he=>null!=he.value&&he.value===W);ie&&(ie.checked=!0,this._selectionModel.select(ie))}_updateModelValue(W){W&&this._emitChangeEvent(),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(W=>W._markForCheck())}}return le.\u0275fac=function(W){return new(W||le)(v.Y36(v.sBO),v.Y36(B,8))},le.\u0275dir=v.lG2({type:le,selectors:[["mat-button-toggle-group"]],contentQueries:function(W,ie,he){if(1&W&&v.Suo(he,we,5),2&W){let se;v.iGM(se=v.CRH())&&(ie._buttonToggles=se)}},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(W,ie){2&W&&(v.uIk("aria-disabled",ie.disabled),v.ekj("mat-button-toggle-vertical",ie.vertical)("mat-button-toggle-group-appearance-standard","standard"===ie.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[v._Bn([P,{provide:O,useExisting:le}])]}),le})();const ae=(0,h.Kr)(class{});let we=(()=>{class le extends ae{constructor(W,ie,he,se,Me,$e){super(),this._changeDetectorRef=ie,this._elementRef=he,this._focusMonitor=se,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new v.vpe;const it=Number(Me);this.tabIndex=it||0===it?it:null,this.buttonToggleGroup=W,this.appearance=$e&&$e.appearance?$e.appearance:"standard"}get buttonId(){return`${this.id}-button`}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(W){this._appearance=W}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(W){const ie=(0,a.Ig)(W);ie!==this._checked&&(this._checked=ie,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(W){this._disabled=(0,a.Ig)(W)}ngOnInit(){const W=this.buttonToggleGroup;this.id=this.id||"mat-button-toggle-"+k++,W&&(W._isPrechecked(this)?this.checked=!0:W._isSelected(this)!==this._checked&&W._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const W=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),W&&W._isSelected(this)&&W._syncButtonToggle(this,!1,!1,!0)}focus(W){this._buttonElement.nativeElement.focus(W)}_onButtonClick(){const W=!!this._isSingleSelector()||!this._checked;W!==this._checked&&(this._checked=W,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new F(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this._isSingleSelector()?this.buttonToggleGroup.name:this.name||null}_isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}}return le.\u0275fac=function(W){return new(W||le)(v.Y36(O,8),v.Y36(v.sBO),v.Y36(v.SBq),v.Y36(i.tE),v.$8M("tabindex"),v.Y36(B,8))},le.\u0275cmp=v.Xpm({type:le,selectors:[["mat-button-toggle"]],viewQuery:function(W,ie){if(1&W&&v.Gf(g,5),2&W){let he;v.iGM(he=v.CRH())&&(ie._buttonElement=he.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(W,ie){1&W&&v.NdJ("focus",function(){return ie.focus()}),2&W&&(v.uIk("aria-label",null)("aria-labelledby",null)("id",ie.id)("name",null),v.ekj("mat-button-toggle-standalone",!ie.buttonToggleGroup)("mat-button-toggle-checked",ie.checked)("mat-button-toggle-disabled",ie.disabled)("mat-button-toggle-appearance-standard","standard"===ie.appearance))},inputs:{disableRipple:"disableRipple",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[v.qOj],ngContentSelectors:D,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(W,ie){if(1&W&&(v.F$t(),v.TgZ(0,"button",0,1),v.NdJ("click",function(){return ie._onButtonClick()}),v.TgZ(2,"span",2),v.Hsn(3),v.qZA()(),v._UZ(4,"span",3)(5,"span",4)),2&W){const he=v.MAs(1);v.Q6J("id",ie.buttonId)("disabled",ie.disabled||null),v.uIk("tabindex",ie.disabled?-1:ie.tabIndex)("aria-pressed",ie.checked)("name",ie._getButtonName())("aria-label",ie.ariaLabel)("aria-labelledby",ie.ariaLabelledby),v.xp6(5),v.Q6J("matRippleTrigger",he)("matRippleDisabled",ie.disableRipple||ie.disabled)}},dependencies:[h.wG],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0)}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}"],encapsulation:2,changeDetection:0}),le})(),ue=(()=>{class le{}return le.\u0275fac=function(W){return new(W||le)},le.\u0275mod=v.oAB({type:le}),le.\u0275inj=v.cJS({imports:[h.BQ,h.si,h.BQ]}),le})()},4859:(Ct,ke,u)=>{"use strict";u.d(ke,{lW:()=>O,ot:()=>k,zs:()=>P});var i=u(4650),a=u(3238),c=u(2687);const v=["mat-button",""],b=["*"],D=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],B=(0,a.pj)((0,a.Id)((0,a.Kr)(class{constructor(F){this._elementRef=F}})));let O=(()=>{class F extends B{constructor(ae,we,ue){super(ae),this._focusMonitor=we,this._animationMode=ue,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const le of D)this._hasHostAttributes(le)&&this._getHostElement().classList.add(le);ae.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(ae,we){ae?this._focusMonitor.focusVia(this._getHostElement(),ae,we):this._getHostElement().focus(we)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...ae){return ae.some(we=>this._getHostElement().hasAttribute(we))}}return F.\u0275fac=function(ae){return new(ae||F)(i.Y36(i.SBq),i.Y36(c.tE),i.Y36(i.QbO,8))},F.\u0275cmp=i.Xpm({type:F,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(ae,we){if(1&ae&&i.Gf(a.wG,5),2&ae){let ue;i.iGM(ue=i.CRH())&&(we.ripple=ue.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(ae,we){2&ae&&(i.uIk("disabled",we.disabled||null),i.ekj("_mat-animation-noopable","NoopAnimations"===we._animationMode)("mat-button-disabled",we.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[i.qOj],attrs:v,ngContentSelectors:b,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(ae,we){1&ae&&(i.F$t(),i.TgZ(0,"span",0),i.Hsn(1),i.qZA(),i._UZ(2,"span",1)(3,"span",2)),2&ae&&(i.xp6(2),i.ekj("mat-button-ripple-round",we.isRoundButton||we.isIconButton),i.Q6J("matRippleDisabled",we._isRippleDisabled())("matRippleCentered",we.isIconButton)("matRippleTrigger",we._getHostElement()))},dependencies:[a.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),F})(),P=(()=>{class F extends O{constructor(ae,we,ue,le){super(we,ae,ue),this._ngZone=le,this._haltDisabledEvents=ge=>{this.disabled&&(ge.preventDefault(),ge.stopImmediatePropagation())}}ngAfterViewInit(){super.ngAfterViewInit(),this._ngZone?this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}return F.\u0275fac=function(ae){return new(ae||F)(i.Y36(c.tE),i.Y36(i.SBq),i.Y36(i.QbO,8),i.Y36(i.R0b,8))},F.\u0275cmp=i.Xpm({type:F,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(ae,we){2&ae&&(i.uIk("tabindex",we.disabled?-1:we.tabIndex)("disabled",we.disabled||null)("aria-disabled",we.disabled.toString()),i.ekj("_mat-animation-noopable","NoopAnimations"===we._animationMode)("mat-button-disabled",we.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[i.qOj],attrs:v,ngContentSelectors:b,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(ae,we){1&ae&&(i.F$t(),i.TgZ(0,"span",0),i.Hsn(1),i.qZA(),i._UZ(2,"span",1)(3,"span",2)),2&ae&&(i.xp6(2),i.ekj("mat-button-ripple-round",we.isRoundButton||we.isIconButton),i.Q6J("matRippleDisabled",we._isRippleDisabled())("matRippleCentered",we.isIconButton)("matRippleTrigger",we._getHostElement()))},dependencies:[a.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),F})(),k=(()=>{class F{}return F.\u0275fac=function(ae){return new(ae||F)},F.\u0275mod=i.oAB({type:F}),F.\u0275inj=i.cJS({imports:[a.si,a.BQ,a.BQ]}),F})()},3546:(Ct,ke,u)=>{"use strict";u.d(ke,{$j:()=>P,QW:()=>se,a8:()=>W,dk:()=>ie,dn:()=>B,hq:()=>k,kc:()=>ge,n5:()=>O});var i=u(4650),a=u(3238);const c=["*",[["mat-card-footer"]]],v=["*","mat-card-footer"],b=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],h=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let B=(()=>{class Me{}return Me.\u0275fac=function(it){return new(it||Me)},Me.\u0275dir=i.lG2({type:Me,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),Me})(),O=(()=>{class Me{}return Me.\u0275fac=function(it){return new(it||Me)},Me.\u0275dir=i.lG2({type:Me,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),Me})(),P=(()=>{class Me{}return Me.\u0275fac=function(it){return new(it||Me)},Me.\u0275dir=i.lG2({type:Me,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),Me})(),k=(()=>{class Me{constructor(){this.align="start"}}return Me.\u0275fac=function(it){return new(it||Me)},Me.\u0275dir=i.lG2({type:Me,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(it,Ke){2&it&&i.ekj("mat-card-actions-align-end","end"===Ke.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),Me})(),ge=(()=>{class Me{}return Me.\u0275fac=function(it){return new(it||Me)},Me.\u0275dir=i.lG2({type:Me,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),Me})(),W=(()=>{class Me{constructor(it){this._animationMode=it}}return Me.\u0275fac=function(it){return new(it||Me)(i.Y36(i.QbO,8))},Me.\u0275cmp=i.Xpm({type:Me,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(it,Ke){2&it&&i.ekj("_mat-animation-noopable","NoopAnimations"===Ke._animationMode)},exportAs:["matCard"],ngContentSelectors:v,decls:2,vars:0,template:function(it,Ke){1&it&&(i.F$t(c),i.Hsn(0),i.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0}),Me})(),ie=(()=>{class Me{}return Me.\u0275fac=function(it){return new(it||Me)},Me.\u0275cmp=i.Xpm({type:Me,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:h,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(it,Ke){1&it&&(i.F$t(b),i.Hsn(0),i.TgZ(1,"div",0),i.Hsn(2,1),i.qZA(),i.Hsn(3,2))},encapsulation:2,changeDetection:0}),Me})(),se=(()=>{class Me{}return Me.\u0275fac=function(it){return new(it||Me)},Me.\u0275mod=i.oAB({type:Me}),Me.\u0275inj=i.cJS({imports:[a.BQ,a.BQ]}),Me})()},7331:(Ct,ke,u)=>{"use strict";u.d(ke,{HS:()=>it,Hi:()=>jt,qn:()=>yt});var i=u(9521),a=u(4650),c=u(3238),v=u(1281),b=u(3353),h=u(6895),g=u(8929),D=u(6787),B=u(2986),O=u(7625),P=u(1059),k=u(2687),F=u(445),z=u(5017),ae=u(4006),we=u(9549);const ue=["*"],ge=new a.OlP("MatChipRemove"),W=new a.OlP("MatChipAvatar"),ie=new a.OlP("MatChipTrailingIcon");class he{constructor(Ee){this._elementRef=Ee}}const se=(0,c.sb)((0,c.pj)((0,c.Kr)(he),"primary"),-1);let it=(()=>{class V extends se{constructor(oe,_e,Oe,lt,be,et,Mt,_t){super(oe),this._ngZone=_e,this._changeDetectorRef=be,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new g.xQ,this._onBlur=new g.xQ,this.selectionChange=new a.vpe,this.destroyed=new a.vpe,this.removed=new a.vpe,this._addHostClassName(),this._chipRippleTarget=et.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new c.IR(this,_e,this._chipRippleTarget,Oe),this._chipRipple.setupTriggerEvents(oe),this.rippleConfig=lt||{},this._animationsDisabled="NoopAnimations"===Mt,this.tabIndex=null!=_t&&parseInt(_t)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(oe){const _e=(0,v.Ig)(oe);_e!==this._selected&&(this._selected=_e,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(oe){this._value=oe}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(oe){this._selectable=(0,v.Ig)(oe)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(oe){this._disabled=(0,v.Ig)(oe)}get removable(){return this._removable}set removable(oe){this._removable=(0,v.Ig)(oe)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const oe="mat-basic-chip",_e=this._elementRef.nativeElement;_e.hasAttribute(oe)||_e.tagName.toLowerCase()===oe?_e.classList.add(oe):_e.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(oe=!1){return this._selected=!this.selected,this._dispatchSelectionChange(oe),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(oe){this.disabled&&oe.preventDefault()}_handleKeydown(oe){if(!this.disabled)switch(oe.keyCode){case i.yY:case i.ZH:this.remove(),oe.preventDefault();break;case i.L_:this.selectable&&this.toggleSelected(!0),oe.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,B.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(oe=!1){this.selectionChange.emit({source:this,isUserInput:oe,selected:this._selected})}}return V.\u0275fac=function(oe){return new(oe||V)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(b.t4),a.Y36(c.Y2,8),a.Y36(a.sBO),a.Y36(h.K0),a.Y36(a.QbO,8),a.$8M("tabindex"))},V.\u0275dir=a.lG2({type:V,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(oe,_e,Oe){if(1&oe&&(a.Suo(Oe,W,5),a.Suo(Oe,ie,5),a.Suo(Oe,ge,5)),2&oe){let lt;a.iGM(lt=a.CRH())&&(_e.avatar=lt.first),a.iGM(lt=a.CRH())&&(_e.trailingIcon=lt.first),a.iGM(lt=a.CRH())&&(_e.removeIcon=lt.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(oe,_e){1&oe&&a.NdJ("click",function(lt){return _e._handleClick(lt)})("keydown",function(lt){return _e._handleKeydown(lt)})("focus",function(){return _e.focus()})("blur",function(){return _e._blur()}),2&oe&&(a.uIk("tabindex",_e.disabled?null:_e.tabIndex)("role",_e.role)("disabled",_e.disabled||null)("aria-disabled",_e.disabled.toString())("aria-selected",_e.ariaSelected),a.ekj("mat-chip-selected",_e.selected)("mat-chip-with-avatar",_e.avatar)("mat-chip-with-trailing-icon",_e.trailingIcon||_e.removeIcon)("mat-chip-disabled",_e.disabled)("_mat-animation-noopable",_e._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[a.qOj]}),V})();const tt=new a.OlP("mat-chips-default-options"),me=(0,c.FD)(class{constructor(V,Ee,oe,_e){this._defaultErrorStateMatcher=V,this._parentForm=Ee,this._parentFormGroup=oe,this.ngControl=_e,this.stateChanges=new g.xQ}});let Xe=0;class Ae{constructor(Ee,oe){this.source=Ee,this.value=oe}}let yt=(()=>{class V extends me{constructor(oe,_e,Oe,lt,be,et,Mt){super(et,lt,be,Mt),this._elementRef=oe,this._changeDetectorRef=_e,this._dir=Oe,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new g.xQ,this._uid="mat-chip-list-"+Xe++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(_t,Be)=>_t===Be,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new a.vpe,this.valueChange=new a.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get role(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role(oe){this._explicitRole=oe}get multiple(){return this._multiple}set multiple(oe){this._multiple=(0,v.Ig)(oe),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(oe){this._compareWith=oe,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(oe){this.writeValue(oe),this._value=oe}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(ae.kI.required)??!1}set required(oe){this._required=(0,v.Ig)(oe),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(oe){this._placeholder=oe,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(oe){this._disabled=(0,v.Ig)(oe),this._syncChipsState()}get selectable(){return this._selectable}set selectable(oe){this._selectable=(0,v.Ig)(oe),this._syncChipsState()}set tabIndex(oe){this._userTabIndex=oe,this._tabIndex=oe}get chipSelectionChanges(){return(0,D.T)(...this.chips.map(oe=>oe.selectionChange))}get chipFocusChanges(){return(0,D.T)(...this.chips.map(oe=>oe._onFocus))}get chipBlurChanges(){return(0,D.T)(...this.chips.map(oe=>oe._onBlur))}get chipRemoveChanges(){return(0,D.T)(...this.chips.map(oe=>oe.destroyed))}ngAfterContentInit(){this._keyManager=new k.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,O.R)(this._destroyed)).subscribe(oe=>this._keyManager.withHorizontalOrientation(oe)),this._keyManager.tabOut.pipe((0,O.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,P.O)(null),(0,O.R)(this._destroyed)).subscribe(()=>{(this.disabled||!this.selectable)&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new z.Ov(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(oe){this._chipInput=oe,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",oe.id)}setDescribedByIds(oe){oe.length?this._elementRef.nativeElement.setAttribute("aria-describedby",oe.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(oe){this.chips&&this._setSelectionByValue(oe,!1)}registerOnChange(oe){this._onChange=oe}registerOnTouched(oe){this._onTouched=oe}setDisabledState(oe){this.disabled=oe,this.stateChanges.next()}onContainerClick(oe){this._originatesFromChip(oe)||this.focus()}focus(oe){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(oe),this.stateChanges.next()))}_focusInput(oe){this._chipInput&&this._chipInput.focus(oe)}_keydown(oe){const _e=oe.target;_e&&_e.classList.contains("mat-chip")&&(this._keyManager.onKeydown(oe),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const oe=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(oe)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(oe){return oe>=0&&oeOe.deselect()),Array.isArray(oe))oe.forEach(Oe=>this._selectValue(Oe,_e)),this._sortValues();else{const Oe=this._selectValue(oe,_e);Oe&&_e&&this._keyManager.setActiveItem(Oe)}}_selectValue(oe,_e=!0){const Oe=this.chips.find(lt=>null!=lt.value&&this._compareWith(lt.value,oe));return Oe&&(_e?Oe.selectViaInteraction():Oe.select(),this._selectionModel.select(Oe)),Oe}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(oe){this._selectionModel.clear(),this.chips.forEach(_e=>{_e!==oe&&_e.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(oe=>{oe.selected&&this._selectionModel.select(oe)}),this.stateChanges.next())}_propagateChanges(oe){let _e=null;_e=Array.isArray(this.selected)?this.selected.map(Oe=>Oe.value):this.selected?this.selected.value:oe,this._value=_e,this.change.emit(new Ae(this,_e)),this.valueChange.emit(_e),this._onChange(_e),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(oe=>{oe.source.selected?this._selectionModel.select(oe.source):this._selectionModel.deselect(oe.source),this.multiple||this.chips.forEach(_e=>{!this._selectionModel.isSelected(_e)&&_e.selected&&_e.deselect()}),oe.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(oe=>{let _e=this.chips.toArray().indexOf(oe.chip);this._isValidIndex(_e)&&this._keyManager.updateActiveItem(_e),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(oe=>{const _e=oe.chip,Oe=this.chips.toArray().indexOf(oe.chip);this._isValidIndex(Oe)&&_e._hasFocus&&(this._lastDestroyedChipIndex=Oe)})}_originatesFromChip(oe){let _e=oe.target;for(;_e&&_e!==this._elementRef.nativeElement;){if(_e.classList.contains("mat-chip"))return!0;_e=_e.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(oe=>oe._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(oe=>{oe._chipListDisabled=this._disabled,oe._chipListMultiple=this.multiple,oe.chipListSelectable=this._selectable})}}return V.\u0275fac=function(oe){return new(oe||V)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(F.Is,8),a.Y36(ae.F,8),a.Y36(ae.sg,8),a.Y36(c.rD),a.Y36(ae.a5,10))},V.\u0275cmp=a.Xpm({type:V,selectors:[["mat-chip-list"]],contentQueries:function(oe,_e,Oe){if(1&oe&&a.Suo(Oe,it,5),2&oe){let lt;a.iGM(lt=a.CRH())&&(_e.chips=lt)}},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function(oe,_e){1&oe&&a.NdJ("focus",function(){return _e.focus()})("blur",function(){return _e._blur()})("keydown",function(lt){return _e._keydown(lt)}),2&oe&&(a.Ikx("id",_e._uid),a.uIk("tabindex",_e.disabled?null:_e._tabIndex)("aria-required",_e.role?_e.required:null)("aria-disabled",_e.disabled.toString())("aria-invalid",_e.errorState)("aria-multiselectable",_e.multiple)("role",_e.role)("aria-orientation",_e.ariaOrientation),a.ekj("mat-chip-list-disabled",_e.disabled)("mat-chip-list-invalid",_e.errorState)("mat-chip-list-required",_e.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[a._Bn([{provide:we.Eo,useExisting:V}]),a.qOj],ngContentSelectors:ue,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(oe,_e){1&oe&&(a.F$t(),a.TgZ(0,"div",0),a.Hsn(1),a.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}.mat-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}'],encapsulation:2,changeDetection:0}),V})(),jt=(()=>{class V{}return V.\u0275fac=function(oe){return new(oe||V)},V.\u0275mod=a.oAB({type:V}),V.\u0275inj=a.cJS({providers:[c.rD,{provide:tt,useValue:{separatorKeyCodes:[i.K5]}}],imports:[c.BQ]}),V})()},3238:(Ct,ke,u)=>{"use strict";u.d(ke,{yN:()=>le,mZ:()=>ge,rD:()=>be,K7:()=>T,HF:()=>X,Y2:()=>x,BQ:()=>he,X2:()=>et,uc:()=>Be,ey:()=>ht,Ng:()=>qe,nP:()=>j,us:()=>de,wG:()=>p,si:()=>m,IR:()=>U,CB:()=>Et,jH:()=>ye,pj:()=>Ke,Kr:()=>tt,Id:()=>it,FD:()=>Xe,dB:()=>Ae,sb:()=>me,E0:()=>Mt});var i=u(4650),a=u(2687),c=u(445),b=u(6895),h=u(3353),g=u(1281),D=u(6498),B=u(8929),O=u(1059),P=u(9521);function z(xe,Fe){if(1&xe&&i._UZ(0,"mat-pseudo-checkbox",4),2&xe){const ot=i.oxw();i.Q6J("state",ot.selected?"checked":"unchecked")("disabled",ot.disabled)}}function ae(xe,Fe){if(1&xe&&(i.TgZ(0,"span",5),i._uU(1),i.qZA()),2&xe){const ot=i.oxw();i.xp6(1),i.hij("(",ot.group.label,")")}}const we=["*"];let le=(()=>{class xe{}return xe.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",xe.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",xe.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",xe.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",xe})(),ge=(()=>{class xe{}return xe.COMPLEX="375ms",xe.ENTERING="225ms",xe.EXITING="195ms",xe})();const ie=new i.OlP("mat-sanity-checks",{providedIn:"root",factory:function W(){return!0}});let he=(()=>{class xe{constructor(ot,ce,Ue){this._sanityChecks=ce,this._document=Ue,this._hasDoneGlobalChecks=!1,ot._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(ot){return!(0,h.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[ot])}}return xe.\u0275fac=function(ot){return new(ot||xe)(i.LFG(a.qm),i.LFG(ie,8),i.LFG(b.K0))},xe.\u0275mod=i.oAB({type:xe}),xe.\u0275inj=i.cJS({imports:[c.vT,c.vT]}),xe})();function it(xe){return class extends xe{constructor(...Fe){super(...Fe),this._disabled=!1}get disabled(){return this._disabled}set disabled(Fe){this._disabled=(0,g.Ig)(Fe)}}}function Ke(xe,Fe){return class extends xe{constructor(...ot){super(...ot),this.defaultColor=Fe,this.color=Fe}get color(){return this._color}set color(ot){const ce=ot||this.defaultColor;ce!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),ce&&this._elementRef.nativeElement.classList.add(`mat-${ce}`),this._color=ce)}}}function tt(xe){return class extends xe{constructor(...Fe){super(...Fe),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Fe){this._disableRipple=(0,g.Ig)(Fe)}}}function me(xe,Fe=0){return class extends xe{constructor(...ot){super(...ot),this._tabIndex=Fe,this.defaultTabIndex=Fe}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(ot){this._tabIndex=null!=ot?(0,g.su)(ot):this.defaultTabIndex}}}function Xe(xe){return class extends xe{constructor(...Fe){super(...Fe),this.errorState=!1}updateErrorState(){const Fe=this.errorState,Ce=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);Ce!==Fe&&(this.errorState=Ce,this.stateChanges.next())}}}function Ae(xe){return class extends xe{constructor(...Fe){super(...Fe),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new D.y(ot=>{this._isInitialized?this._notifySubscriber(ot):this._pendingSubscribers.push(ot)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(Fe){Fe.next(),Fe.complete()}}}let be=(()=>{class xe{isErrorState(ot,ce){return!!(ot&&ot.invalid&&(ot.touched||ce&&ce.submitted))}}return xe.\u0275fac=function(ot){return new(ot||xe)},xe.\u0275prov=i.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})(),et=(()=>{class xe{}return xe.\u0275fac=function(ot){return new(ot||xe)},xe.\u0275dir=i.lG2({type:xe,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),xe})();function Mt(xe,Fe,ot="mat"){xe.changes.pipe((0,O.O)(xe)).subscribe(({length:ce})=>{_t(Fe,`${ot}-2-line`,!1),_t(Fe,`${ot}-3-line`,!1),_t(Fe,`${ot}-multi-line`,!1),2===ce||3===ce?_t(Fe,`${ot}-${ce}-line`,!0):ce>3&&_t(Fe,`${ot}-multi-line`,!0)})}function _t(xe,Fe,ot){xe.nativeElement.classList.toggle(Fe,ot)}let Be=(()=>{class xe{}return xe.\u0275fac=function(ot){return new(ot||xe)},xe.\u0275mod=i.oAB({type:xe}),xe.\u0275inj=i.cJS({imports:[he,he]}),xe})();class at{constructor(Fe,ot,ce,Ue=!1){this._renderer=Fe,this.element=ot,this.config=ce,this._animationForciblyDisabledThroughCss=Ue,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const nt={enterDuration:225,exitDuration:150},Le=(0,h.i$)({passive:!0}),ee=["mousedown","touchstart"],R=["mouseup","mouseleave","touchend","touchcancel"];class U{constructor(Fe,ot,ce,Ue){this._target=Fe,this._ngZone=ot,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,Ue.isBrowser&&(this._containerElement=(0,g.fI)(ce))}fadeInRipple(Fe,ot,ce={}){const Ue=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Ce={...nt,...ce.animation};ce.centered&&(Fe=Ue.left+Ue.width/2,ot=Ue.top+Ue.height/2);const Ye=ce.radius||function Re(xe,Fe,ot){const ce=Math.max(Math.abs(xe-ot.left),Math.abs(xe-ot.right)),Ue=Math.max(Math.abs(Fe-ot.top),Math.abs(Fe-ot.bottom));return Math.sqrt(ce*ce+Ue*Ue)}(Fe,ot,Ue),Pe=Fe-Ue.left,wt=ot-Ue.top,st=Ce.enterDuration,ut=document.createElement("div");ut.classList.add("mat-ripple-element"),ut.style.left=Pe-Ye+"px",ut.style.top=wt-Ye+"px",ut.style.height=2*Ye+"px",ut.style.width=2*Ye+"px",null!=ce.color&&(ut.style.backgroundColor=ce.color),ut.style.transitionDuration=`${st}ms`,this._containerElement.appendChild(ut);const Ht=window.getComputedStyle(ut),We=Ht.transitionDuration,rt="none"===Ht.transitionProperty||"0s"===We||"0s, 0s"===We,qt=new at(this,ut,ce,rt);ut.style.transform="scale3d(1, 1, 1)",qt.state=0,ce.persistent||(this._mostRecentTransientRipple=qt);let Ut=null;return!rt&&(st||Ce.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const en=()=>this._finishRippleTransition(qt),bn=()=>this._destroyRipple(qt);ut.addEventListener("transitionend",en),ut.addEventListener("transitioncancel",bn),Ut={onTransitionEnd:en,onTransitionCancel:bn}}),this._activeRipples.set(qt,Ut),(rt||!st)&&this._finishRippleTransition(qt),qt}fadeOutRipple(Fe){if(2===Fe.state||3===Fe.state)return;const ot=Fe.element,ce={...nt,...Fe.config.animation};ot.style.transitionDuration=`${ce.exitDuration}ms`,ot.style.opacity="0",Fe.state=2,(Fe._animationForciblyDisabledThroughCss||!ce.exitDuration)&&this._finishRippleTransition(Fe)}fadeOutAll(){this._getActiveRipples().forEach(Fe=>Fe.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(Fe=>{Fe.config.persistent||Fe.fadeOut()})}setupTriggerEvents(Fe){const ot=(0,g.fI)(Fe);!ot||ot===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=ot,this._registerEvents(ee))}handleEvent(Fe){"mousedown"===Fe.type?this._onMousedown(Fe):"touchstart"===Fe.type?this._onTouchStart(Fe):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(R),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(Fe){0===Fe.state?this._startFadeOutTransition(Fe):2===Fe.state&&this._destroyRipple(Fe)}_startFadeOutTransition(Fe){const ot=Fe===this._mostRecentTransientRipple,{persistent:ce}=Fe.config;Fe.state=1,!ce&&(!ot||!this._isPointerDown)&&Fe.fadeOut()}_destroyRipple(Fe){const ot=this._activeRipples.get(Fe)??null;this._activeRipples.delete(Fe),this._activeRipples.size||(this._containerRect=null),Fe===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),Fe.state=3,null!==ot&&(Fe.element.removeEventListener("transitionend",ot.onTransitionEnd),Fe.element.removeEventListener("transitioncancel",ot.onTransitionCancel)),Fe.element.remove()}_onMousedown(Fe){const ot=(0,a.X6)(Fe),ce=this._lastTouchStartEvent&&Date.now(){!Fe.config.persistent&&(1===Fe.state||Fe.config.terminateOnPointerUp&&0===Fe.state)&&Fe.fadeOut()}))}_registerEvents(Fe){this._ngZone.runOutsideAngular(()=>{Fe.forEach(ot=>{this._triggerElement.addEventListener(ot,this,Le)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(ee.forEach(Fe=>{this._triggerElement.removeEventListener(Fe,this,Le)}),this._pointerUpEventsRegistered&&R.forEach(Fe=>{this._triggerElement.removeEventListener(Fe,this,Le)}))}}const x=new i.OlP("mat-ripple-global-options");let p=(()=>{class xe{constructor(ot,ce,Ue,Ce,Ye){this._elementRef=ot,this._animationMode=Ye,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Ce||{},this._rippleRenderer=new U(this,ce,ot,Ue)}get disabled(){return this._disabled}set disabled(ot){ot&&this.fadeOutAllNonPersistent(),this._disabled=ot,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(ot){this._trigger=ot,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(ot,ce=0,Ue){return"number"==typeof ot?this._rippleRenderer.fadeInRipple(ot,ce,{...this.rippleConfig,...Ue}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...ot})}}return xe.\u0275fac=function(ot){return new(ot||xe)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(h.t4),i.Y36(x,8),i.Y36(i.QbO,8))},xe.\u0275dir=i.lG2({type:xe,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(ot,ce){2&ot&&i.ekj("mat-ripple-unbounded",ce.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),xe})(),m=(()=>{class xe{}return xe.\u0275fac=function(ot){return new(ot||xe)},xe.\u0275mod=i.oAB({type:xe}),xe.\u0275inj=i.cJS({imports:[he,he]}),xe})(),j=(()=>{class xe{constructor(ot){this._animationMode=ot,this.state="unchecked",this.disabled=!1}}return xe.\u0275fac=function(ot){return new(ot||xe)(i.Y36(i.QbO,8))},xe.\u0275cmp=i.Xpm({type:xe,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(ot,ce){2&ot&&i.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===ce.state)("mat-pseudo-checkbox-checked","checked"===ce.state)("mat-pseudo-checkbox-disabled",ce.disabled)("_mat-animation-noopable","NoopAnimations"===ce._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(ot,ce){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0}),xe})(),de=(()=>{class xe{}return xe.\u0275fac=function(ot){return new(ot||xe)},xe.\u0275mod=i.oAB({type:xe}),xe.\u0275inj=i.cJS({imports:[he]}),xe})();const X=new i.OlP("MAT_OPTION_PARENT_COMPONENT"),T=new i.OlP("MatOptgroup");let Je=0;class ze{constructor(Fe,ot=!1){this.source=Fe,this.isUserInput=ot}}let St=(()=>{class xe{constructor(ot,ce,Ue,Ce){this._element=ot,this._changeDetectorRef=ce,this._parent=Ue,this.group=Ce,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Je++,this.onSelectionChange=new i.vpe,this._stateChanges=new B.xQ}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(ot){this._disabled=(0,g.Ig)(ot)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(ot,ce){const Ue=this._getHostElement();"function"==typeof Ue.focus&&Ue.focus(ce)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(ot){(ot.keyCode===P.K5||ot.keyCode===P.L_)&&!(0,P.Vb)(ot)&&(this._selectViaInteraction(),ot.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const ot=this.viewValue;ot!==this._mostRecentViewValue&&(this._mostRecentViewValue=ot,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(ot=!1){this.onSelectionChange.emit(new ze(this,ot))}}return xe.\u0275fac=function(ot){i.$Z()},xe.\u0275dir=i.lG2({type:xe,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),xe})(),ht=(()=>{class xe extends St{constructor(ot,ce,Ue,Ce){super(ot,ce,Ue,Ce)}}return xe.\u0275fac=function(ot){return new(ot||xe)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(X,8),i.Y36(T,8))},xe.\u0275cmp=i.Xpm({type:xe,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(ot,ce){1&ot&&i.NdJ("click",function(){return ce._selectViaInteraction()})("keydown",function(Ce){return ce._handleKeydown(Ce)}),2&ot&&(i.Ikx("id",ce.id),i.uIk("tabindex",ce._getTabIndex())("aria-selected",ce._getAriaSelected())("aria-disabled",ce.disabled.toString()),i.ekj("mat-selected",ce.selected)("mat-option-multiple",ce.multiple)("mat-active",ce.active)("mat-option-disabled",ce.disabled))},exportAs:["matOption"],features:[i.qOj],ngContentSelectors:we,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(ot,ce){1&ot&&(i.F$t(),i.YNc(0,z,1,2,"mat-pseudo-checkbox",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,ae,2,1,"span",2),i._UZ(4,"div",3)),2&ot&&(i.Q6J("ngIf",ce.multiple),i.xp6(3),i.Q6J("ngIf",ce.group&&ce.group._inert),i.xp6(1),i.Q6J("matRippleTrigger",ce._getHostElement())("matRippleDisabled",ce.disabled||ce.disableRipple))},dependencies:[p,b.O5,j],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),xe})();function Et(xe,Fe,ot){if(ot.length){let ce=Fe.toArray(),Ue=ot.toArray(),Ce=0;for(let Ye=0;Yeot+ce?Math.max(0,xe-ce+Fe):ot}let qe=(()=>{class xe{}return xe.\u0275fac=function(ot){return new(ot||xe)},xe.\u0275mod=i.oAB({type:xe}),xe.\u0275inj=i.cJS({imports:[m,b.ez,he,de]}),xe})()},5412:(Ct,ke,u)=>{"use strict";u.d(ke,{WI:()=>_e,uw:()=>at,H8:()=>R,ZT:()=>Q,xY:()=>ee,Is:()=>Re,so:()=>Ee,uh:()=>Le});var i=u(2687),a=u(8184),c=u(3353),v=u(4080),b=u(6895),h=u(4650),g=u(9521),D=u(8929),B=u(8514),O=u(1086),P=u(445),k=u(1059);function F(x,p){}class z{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let we=(()=>{class x extends v.en{constructor(m,j,de,X,H,f,_,T){super(),this._elementRef=m,this._focusTrapFactory=j,this._config=X,this._interactivityChecker=H,this._ngZone=f,this._overlayRef=_,this._focusMonitor=T,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=ve=>{this._portalOutlet.hasAttached();const Je=this._portalOutlet.attachDomPortal(ve);return this._contentAttached(),Je},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=de}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(m){this._portalOutlet.hasAttached();const j=this._portalOutlet.attachComponentPortal(m);return this._contentAttached(),j}attachTemplatePortal(m){this._portalOutlet.hasAttached();const j=this._portalOutlet.attachTemplatePortal(m);return this._contentAttached(),j}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(m,j){this._interactivityChecker.isFocusable(m)||(m.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const de=()=>{m.removeEventListener("blur",de),m.removeEventListener("mousedown",de),m.removeAttribute("tabindex")};m.addEventListener("blur",de),m.addEventListener("mousedown",de)})),m.focus(j)}_focusByCssSelector(m,j){let de=this._elementRef.nativeElement.querySelector(m);de&&this._forceFocus(de,j)}_trapFocus(){const m=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||m.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(j=>{j||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const m=this._config.restoreFocus;let j=null;if("string"==typeof m?j=this._document.querySelector(m):"boolean"==typeof m?j=m?this._elementFocusedBeforeDialogWasOpened:null:m&&(j=m),this._config.restoreFocus&&j&&"function"==typeof j.focus){const de=(0,c.ht)(),X=this._elementRef.nativeElement;(!de||de===this._document.body||de===X||X.contains(de))&&(this._focusMonitor?(this._focusMonitor.focusVia(j,this._closeInteractionType),this._closeInteractionType=null):j.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const m=this._elementRef.nativeElement,j=(0,c.ht)();return m===j||m.contains(j)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,c.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return x.\u0275fac=function(m){return new(m||x)(h.Y36(h.SBq),h.Y36(i.qV),h.Y36(b.K0,8),h.Y36(z),h.Y36(i.ic),h.Y36(h.R0b),h.Y36(a.Iu),h.Y36(i.tE))},x.\u0275cmp=h.Xpm({type:x,selectors:[["cdk-dialog-container"]],viewQuery:function(m,j){if(1&m&&h.Gf(v.Pl,7),2&m){let de;h.iGM(de=h.CRH())&&(j._portalOutlet=de.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(m,j){2&m&&h.uIk("id",j._config.id||null)("role",j._config.role)("aria-modal",j._config.ariaModal)("aria-labelledby",j._config.ariaLabel?null:j._ariaLabelledBy)("aria-label",j._config.ariaLabel)("aria-describedby",j._config.ariaDescribedBy||null)},features:[h.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(m,j){1&m&&h.YNc(0,F,0,0,"ng-template",0)},dependencies:[v.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),x})();class ue{constructor(p,m){this.overlayRef=p,this.config=m,this.closed=new D.xQ,this.disableClose=m.disableClose,this.backdropClick=p.backdropClick(),this.keydownEvents=p.keydownEvents(),this.outsidePointerEvents=p.outsidePointerEvents(),this.id=m.id,this.keydownEvents.subscribe(j=>{j.keyCode===g.hY&&!this.disableClose&&!(0,g.Vb)(j)&&(j.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(p,m){if(this.containerInstance){const j=this.closed;this.containerInstance._closeInteractionType=m?.focusOrigin||"program",this.overlayRef.dispose(),j.next(p),j.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(p="",m=""){return this.overlayRef.updateSize({width:p,height:m}),this}addPanelClass(p){return this.overlayRef.addPanelClass(p),this}removePanelClass(p){return this.overlayRef.removePanelClass(p),this}}const le=new h.OlP("DialogScrollStrategy"),ge=new h.OlP("DialogData"),W=new h.OlP("DefaultDialogConfig"),he={provide:le,deps:[a.aV],useFactory:function ie(x){return()=>x.scrollStrategies.block()}};let se=0,Me=(()=>{class x{constructor(m,j,de,X,H,f){this._overlay=m,this._injector=j,this._defaultOptions=de,this._parentDialog=X,this._overlayContainer=H,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new D.xQ,this._afterOpenedAtThisLevel=new D.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,B.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,k.O)(void 0))),this._scrollStrategy=f}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(m,j){(j={...this._defaultOptions||new z,...j}).id=j.id||"cdk-dialog-"+se++,j.id&&this.getDialogById(j.id);const X=this._getOverlayConfig(j),H=this._overlay.create(X),f=new ue(H,j),_=this._attachContainer(H,f,j);return f.containerInstance=_,this._attachDialogContent(m,f,_,j),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(f),f.closed.subscribe(()=>this._removeOpenDialog(f,!0)),this.afterOpened.next(f),f}closeAll(){$e(this.openDialogs,m=>m.close())}getDialogById(m){return this.openDialogs.find(j=>j.id===m)}ngOnDestroy(){$e(this._openDialogsAtThisLevel,m=>{!1===m.config.closeOnDestroy&&this._removeOpenDialog(m,!1)}),$e(this._openDialogsAtThisLevel,m=>m.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(m){const j=new a.X_({positionStrategy:m.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:m.scrollStrategy||this._scrollStrategy(),panelClass:m.panelClass,hasBackdrop:m.hasBackdrop,direction:m.direction,minWidth:m.minWidth,minHeight:m.minHeight,maxWidth:m.maxWidth,maxHeight:m.maxHeight,width:m.width,height:m.height,disposeOnNavigation:m.closeOnNavigation});return m.backdropClass&&(j.backdropClass=m.backdropClass),j}_attachContainer(m,j,de){const X=de.injector||de.viewContainerRef?.injector,H=[{provide:z,useValue:de},{provide:ue,useValue:j},{provide:a.Iu,useValue:m}];let f;de.container?"function"==typeof de.container?f=de.container:(f=de.container.type,H.push(...de.container.providers(de))):f=we;const _=new v.C5(f,de.viewContainerRef,h.zs3.create({parent:X||this._injector,providers:H}),de.componentFactoryResolver);return m.attach(_).instance}_attachDialogContent(m,j,de,X){if(m instanceof h.Rgc){const H=this._createInjector(X,j,de,void 0);let f={$implicit:X.data,dialogRef:j};X.templateContext&&(f={...f,..."function"==typeof X.templateContext?X.templateContext():X.templateContext}),de.attachTemplatePortal(new v.UE(m,null,f,H))}else{const H=this._createInjector(X,j,de,this._injector),f=de.attachComponentPortal(new v.C5(m,X.viewContainerRef,H,X.componentFactoryResolver));j.componentInstance=f.instance}}_createInjector(m,j,de,X){const H=m.injector||m.viewContainerRef?.injector,f=[{provide:ge,useValue:m.data},{provide:ue,useValue:j}];return m.providers&&("function"==typeof m.providers?f.push(...m.providers(j,m,de)):f.push(...m.providers)),m.direction&&(!H||!H.get(P.Is,null,h.XFs.Optional))&&f.push({provide:P.Is,useValue:{value:m.direction,change:(0,O.of)()}}),h.zs3.create({parent:H||X,providers:f})}_removeOpenDialog(m,j){const de=this.openDialogs.indexOf(m);de>-1&&(this.openDialogs.splice(de,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((X,H)=>{X?H.setAttribute("aria-hidden",X):H.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),j&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const m=this._overlayContainer.getContainerElement();if(m.parentElement){const j=m.parentElement.children;for(let de=j.length-1;de>-1;de--){const X=j[de];X!==m&&"SCRIPT"!==X.nodeName&&"STYLE"!==X.nodeName&&!X.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(X,X.getAttribute("aria-hidden")),X.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const m=this._parentDialog;return m?m._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return x.\u0275fac=function(m){return new(m||x)(h.LFG(a.aV),h.LFG(h.zs3),h.LFG(W,8),h.LFG(x,12),h.LFG(a.Xj),h.LFG(le))},x.\u0275prov=h.Yz7({token:x,factory:x.\u0275fac}),x})();function $e(x,p){let m=x.length;for(;m--;)p(x[m])}let it=(()=>{class x{}return x.\u0275fac=function(m){return new(m||x)},x.\u0275mod=h.oAB({type:x}),x.\u0275inj=h.cJS({providers:[Me,he],imports:[a.U8,v.eL,i.rt,v.eL]}),x})();var Ke=u(3238),tt=u(6787),me=u(2198),Xe=u(2986),Ae=u(7340);function yt(x,p){}const ft={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},Yt={dialogContainer:(0,Ae.X$)("dialogContainer",[(0,Ae.SB)("void, exit",(0,Ae.oB)({opacity:0,transform:"scale(0.7)"})),(0,Ae.SB)("enter",(0,Ae.oB)({transform:"none"})),(0,Ae.eR)("* => enter",(0,Ae.ru)([(0,Ae.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,Ae.oB)({transform:"none",opacity:1})),(0,Ae.IO)("@*",(0,Ae.pV)(),{optional:!0})]),ft),(0,Ae.eR)("* => void, * => exit",(0,Ae.ru)([(0,Ae.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,Ae.oB)({opacity:0})),(0,Ae.IO)("@*",(0,Ae.pV)(),{optional:!0})]),ft)])};class Dt{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=ft.params.enterAnimationDuration,this.exitAnimationDuration=ft.params.exitAnimationDuration}}let jt=(()=>{class x extends we{constructor(m,j,de,X,H,f,_,T){super(m,j,de,X,H,f,_,T),this._animationStateChanged=new h.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(m){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:m})}}return x.\u0275fac=function(m){return new(m||x)(h.Y36(h.SBq),h.Y36(i.qV),h.Y36(b.K0,8),h.Y36(Dt),h.Y36(i.ic),h.Y36(h.R0b),h.Y36(a.Iu),h.Y36(i.tE))},x.\u0275cmp=h.Xpm({type:x,selectors:[["ng-component"]],features:[h.qOj],decls:0,vars:0,template:function(m,j){},encapsulation:2}),x})(),V=(()=>{class x extends jt{constructor(m,j,de,X,H,f,_,T,ve){super(m,j,de,X,H,f,_,ve),this._changeDetectorRef=T,this._state="enter"}_onAnimationDone({toState:m,totalTime:j}){"enter"===m?this._openAnimationDone(j):"exit"===m&&this._animationStateChanged.next({state:"closed",totalTime:j})}_onAnimationStart({toState:m,totalTime:j}){"enter"===m?this._animationStateChanged.next({state:"opening",totalTime:j}):("exit"===m||"void"===m)&&this._animationStateChanged.next({state:"closing",totalTime:j})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||ft.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||ft.params.exitAnimationDuration}}}}return x.\u0275fac=function(m){return new(m||x)(h.Y36(h.SBq),h.Y36(i.qV),h.Y36(b.K0,8),h.Y36(Dt),h.Y36(i.ic),h.Y36(h.R0b),h.Y36(a.Iu),h.Y36(h.sBO),h.Y36(i.tE))},x.\u0275cmp=h.Xpm({type:x,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(m,j){1&m&&h.WFA("@dialogContainer.start",function(X){return j._onAnimationStart(X)})("@dialogContainer.done",function(X){return j._onAnimationDone(X)}),2&m&&(h.Ikx("id",j._config.id),h.uIk("aria-modal",j._config.ariaModal)("role",j._config.role)("aria-labelledby",j._config.ariaLabel?null:j._ariaLabelledBy)("aria-label",j._config.ariaLabel)("aria-describedby",j._config.ariaDescribedBy||null),h.d8E("@dialogContainer",j._getAnimationState()))},features:[h.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(m,j){1&m&&h.YNc(0,yt,0,0,"ng-template",0)},dependencies:[v.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[Yt.dialogContainer]}}),x})();class Ee{constructor(p,m,j){this._ref=p,this._containerInstance=j,this._afterOpened=new D.xQ,this._beforeClosed=new D.xQ,this._state=0,this.disableClose=m.disableClose,this.id=p.id,j._animationStateChanged.pipe((0,me.h)(de=>"opened"===de.state),(0,Xe.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),j._animationStateChanged.pipe((0,me.h)(de=>"closed"===de.state),(0,Xe.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),p.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,tt.T)(this.backdropClick(),this.keydownEvents().pipe((0,me.h)(de=>de.keyCode===g.hY&&!this.disableClose&&!(0,g.Vb)(de)))).subscribe(de=>{this.disableClose||(de.preventDefault(),oe(this,"keydown"===de.type?"keyboard":"mouse"))})}close(p){this._result=p,this._containerInstance._animationStateChanged.pipe((0,me.h)(m=>"closing"===m.state),(0,Xe.q)(1)).subscribe(m=>{this._beforeClosed.next(p),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),m.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(p){let m=this._ref.config.positionStrategy;return p&&(p.left||p.right)?p.left?m.left(p.left):m.right(p.right):m.centerHorizontally(),p&&(p.top||p.bottom)?p.top?m.top(p.top):m.bottom(p.bottom):m.centerVertically(),this._ref.updatePosition(),this}updateSize(p="",m=""){return this._ref.updateSize(p,m),this}addPanelClass(p){return this._ref.addPanelClass(p),this}removePanelClass(p){return this._ref.removePanelClass(p),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function oe(x,p,m){return x._closeInteractionType=p,x.close(m)}const _e=new h.OlP("MatDialogData"),Oe=new h.OlP("mat-dialog-default-options"),lt=new h.OlP("mat-dialog-scroll-strategy"),Mt={provide:lt,deps:[a.aV],useFactory:function et(x){return()=>x.scrollStrategies.block()}};let _t=0,Be=(()=>{class x{constructor(m,j,de,X,H,f,_,T,ve,Je){this._overlay=m,this._defaultOptions=de,this._parentDialog=X,this._dialogRefConstructor=_,this._dialogContainerType=T,this._dialogDataToken=ve,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new D.xQ,this._afterOpenedAtThisLevel=new D.xQ,this._idPrefix="mat-dialog-",this.afterAllClosed=(0,B.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,k.O)(void 0))),this._scrollStrategy=f,this._dialog=j.get(Me)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const m=this._parentDialog;return m?m._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(m,j){let de;(j={...this._defaultOptions||new Dt,...j}).id=j.id||`${this._idPrefix}${_t++}`,j.scrollStrategy=j.scrollStrategy||this._scrollStrategy();const X=this._dialog.open(m,{...j,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Dt,useValue:j},{provide:z,useValue:j}]},templateContext:()=>({dialogRef:de}),providers:(H,f,_)=>(de=new this._dialogRefConstructor(H,j,_),de.updatePosition(j?.position),[{provide:this._dialogContainerType,useValue:_},{provide:this._dialogDataToken,useValue:f.data},{provide:this._dialogRefConstructor,useValue:de}])});return de.componentInstance=X.componentInstance,this.openDialogs.push(de),this.afterOpened.next(de),de.afterClosed().subscribe(()=>{const H=this.openDialogs.indexOf(de);H>-1&&(this.openDialogs.splice(H,1),this.openDialogs.length||this._getAfterAllClosed().next())}),de}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(m){return this.openDialogs.find(j=>j.id===m)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(m){let j=m.length;for(;j--;)m[j].close()}}return x.\u0275fac=function(m){h.$Z()},x.\u0275prov=h.Yz7({token:x,factory:x.\u0275fac}),x})(),at=(()=>{class x extends Be{constructor(m,j,de,X,H,f,_,T){super(m,j,X,f,_,H,Ee,V,_e,T)}}return x.\u0275fac=function(m){return new(m||x)(h.LFG(a.aV),h.LFG(h.zs3),h.LFG(b.Ye,8),h.LFG(Oe,8),h.LFG(lt),h.LFG(x,12),h.LFG(a.Xj),h.LFG(h.QbO,8))},x.\u0275prov=h.Yz7({token:x,factory:x.\u0275fac}),x})(),nt=0,Q=(()=>{class x{constructor(m,j,de){this.dialogRef=m,this._elementRef=j,this._dialog=de,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=U(this._elementRef,this._dialog.openDialogs))}ngOnChanges(m){const j=m._matDialogClose||m._matDialogCloseResult;j&&(this.dialogResult=j.currentValue)}_onButtonClick(m){oe(this.dialogRef,0===m.screenX&&0===m.screenY?"keyboard":"mouse",this.dialogResult)}}return x.\u0275fac=function(m){return new(m||x)(h.Y36(Ee,8),h.Y36(h.SBq),h.Y36(at))},x.\u0275dir=h.lG2({type:x,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(m,j){1&m&&h.NdJ("click",function(X){return j._onButtonClick(X)}),2&m&&h.uIk("aria-label",j.ariaLabel||null)("type",j.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[h.TTD]}),x})(),Le=(()=>{class x{constructor(m,j,de){this._dialogRef=m,this._elementRef=j,this._dialog=de,this.id="mat-dialog-title-"+nt++}ngOnInit(){this._dialogRef||(this._dialogRef=U(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const m=this._dialogRef._containerInstance;m&&!m._ariaLabelledBy&&(m._ariaLabelledBy=this.id)})}}return x.\u0275fac=function(m){return new(m||x)(h.Y36(Ee,8),h.Y36(h.SBq),h.Y36(at))},x.\u0275dir=h.lG2({type:x,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(m,j){2&m&&h.Ikx("id",j.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),x})(),ee=(()=>{class x{}return x.\u0275fac=function(m){return new(m||x)},x.\u0275dir=h.lG2({type:x,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),x})(),R=(()=>{class x{constructor(){this.align="start"}}return x.\u0275fac=function(m){return new(m||x)},x.\u0275dir=h.lG2({type:x,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(m,j){2&m&&h.ekj("mat-dialog-actions-align-center","center"===j.align)("mat-dialog-actions-align-end","end"===j.align)},inputs:{align:"align"}}),x})();function U(x,p){let m=x.nativeElement.parentElement;for(;m&&!m.classList.contains("mat-dialog-container");)m=m.parentElement;return m?p.find(j=>j.id===m.id):null}let Re=(()=>{class x{}return x.\u0275fac=function(m){return new(m||x)},x.\u0275mod=h.oAB({type:x}),x.\u0275inj=h.cJS({providers:[at,Mt],imports:[it,a.U8,v.eL,Ke.BQ,Ke.BQ]}),x})()},8729:(Ct,ke,u)=>{"use strict";u.d(ke,{d:()=>v,t:()=>b});var i=u(4650),a=u(1281),c=u(3238);let v=(()=>{class h{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(D){this._vertical=(0,a.Ig)(D)}get inset(){return this._inset}set inset(D){this._inset=(0,a.Ig)(D)}}return h.\u0275fac=function(D){return new(D||h)},h.\u0275cmp=i.Xpm({type:h,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(D,B){2&D&&(i.uIk("aria-orientation",B.vertical?"vertical":"horizontal"),i.ekj("mat-divider-vertical",B.vertical)("mat-divider-horizontal",!B.vertical)("mat-divider-inset",B.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(D,B){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),h})(),b=(()=>{class h{}return h.\u0275fac=function(D){return new(D||h)},h.\u0275mod=i.oAB({type:h}),h.\u0275inj=i.cJS({imports:[c.BQ,c.BQ]}),h})()},7084:(Ct,ke,u)=>{"use strict";u.d(ke,{pp:()=>Mt,To:()=>_t,ib:()=>Ee,u4:()=>be,yz:()=>lt,yK:()=>et});var i=u(4650),a=u(5017),c=u(1281),v=u(8929),b=u(2654);let h=0;const g=new i.OlP("CdkAccordion");let D=(()=>{class Be{constructor(){this._stateChanges=new v.xQ,this._openCloseAllActions=new v.xQ,this.id="cdk-accordion-"+h++,this._multi=!1}get multi(){return this._multi}set multi(nt){this._multi=(0,c.Ig)(nt)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(nt){this._stateChanges.next(nt)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return Be.\u0275fac=function(nt){return new(nt||Be)},Be.\u0275dir=i.lG2({type:Be,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[i._Bn([{provide:g,useExisting:Be}]),i.TTD]}),Be})(),B=0,O=(()=>{class Be{constructor(nt,Q,Le){this.accordion=nt,this._changeDetectorRef=Q,this._expansionDispatcher=Le,this._openCloseAllSubscription=b.w.EMPTY,this.closed=new i.vpe,this.opened=new i.vpe,this.destroyed=new i.vpe,this.expandedChange=new i.vpe,this.id="cdk-accordion-child-"+B++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=Le.listen((ee,R)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===R&&this.id!==ee&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(nt){nt=(0,c.Ig)(nt),this._expanded!==nt&&(this._expanded=nt,this.expandedChange.emit(nt),nt?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(nt){this._disabled=(0,c.Ig)(nt)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(nt=>{this.disabled||(this.expanded=nt)})}}return Be.\u0275fac=function(nt){return new(nt||Be)(i.Y36(g,12),i.Y36(i.sBO),i.Y36(a.A8))},Be.\u0275dir=i.lG2({type:Be,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[i._Bn([{provide:g,useValue:void 0}])]}),Be})(),P=(()=>{class Be{}return Be.\u0275fac=function(nt){return new(nt||Be)},Be.\u0275mod=i.oAB({type:Be}),Be.\u0275inj=i.cJS({}),Be})();var k=u(4080),F=u(6895),z=u(3238),ae=u(2687),we=u(5778),ue=u(1059),le=u(2198),ge=u(2986),W=u(9521),ie=u(8896),he=u(6787),se=u(7340);const Me=["body"];function $e(Be,at){}const it=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Ke=["mat-expansion-panel-header","*","mat-action-row"];function tt(Be,at){if(1&Be&&i._UZ(0,"span",2),2&Be){const nt=i.oxw();i.Q6J("@indicatorRotate",nt._getExpandedState())}}const me=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Xe=["mat-panel-title","mat-panel-description","*"],Ae=new i.OlP("MAT_ACCORDION"),yt="225ms cubic-bezier(0.4,0.0,0.2,1)",ft={indicatorRotate:(0,se.X$)("indicatorRotate",[(0,se.SB)("collapsed, void",(0,se.oB)({transform:"rotate(0deg)"})),(0,se.SB)("expanded",(0,se.oB)({transform:"rotate(180deg)"})),(0,se.eR)("expanded <=> collapsed, void => collapsed",(0,se.jt)(yt))]),bodyExpansion:(0,se.X$)("bodyExpansion",[(0,se.SB)("collapsed, void",(0,se.oB)({height:"0px",visibility:"hidden"})),(0,se.SB)("expanded",(0,se.oB)({height:"*",visibility:"visible"})),(0,se.eR)("expanded <=> collapsed, void => collapsed",(0,se.jt)(yt))])},Yt=new i.OlP("MAT_EXPANSION_PANEL");let Dt=(()=>{class Be{constructor(nt,Q){this._template=nt,this._expansionPanel=Q}}return Be.\u0275fac=function(nt){return new(nt||Be)(i.Y36(i.Rgc),i.Y36(Yt,8))},Be.\u0275dir=i.lG2({type:Be,selectors:[["ng-template","matExpansionPanelContent",""]]}),Be})(),jt=0;const V=new i.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Ee=(()=>{class Be extends O{constructor(nt,Q,Le,ee,R,U,Re){super(nt,Q,Le),this._viewContainerRef=ee,this._animationMode=U,this._hideToggle=!1,this.afterExpand=new i.vpe,this.afterCollapse=new i.vpe,this._inputChanges=new v.xQ,this._headerId="mat-expansion-panel-header-"+jt++,this._bodyAnimationDone=new v.xQ,this.accordion=nt,this._document=R,this._bodyAnimationDone.pipe((0,we.x)((x,p)=>x.fromState===p.fromState&&x.toState===p.toState)).subscribe(x=>{"void"!==x.fromState&&("expanded"===x.toState?this.afterExpand.emit():"collapsed"===x.toState&&this.afterCollapse.emit())}),Re&&(this.hideToggle=Re.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(nt){this._hideToggle=(0,c.Ig)(nt)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(nt){this._togglePosition=nt}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,ue.O)(null),(0,le.h)(()=>this.expanded&&!this._portal),(0,ge.q)(1)).subscribe(()=>{this._portal=new k.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(nt){this._inputChanges.next(nt)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const nt=this._document.activeElement,Q=this._body.nativeElement;return nt===Q||Q.contains(nt)}return!1}}return Be.\u0275fac=function(nt){return new(nt||Be)(i.Y36(Ae,12),i.Y36(i.sBO),i.Y36(a.A8),i.Y36(i.s_b),i.Y36(F.K0),i.Y36(i.QbO,8),i.Y36(V,8))},Be.\u0275cmp=i.Xpm({type:Be,selectors:[["mat-expansion-panel"]],contentQueries:function(nt,Q,Le){if(1&nt&&i.Suo(Le,Dt,5),2&nt){let ee;i.iGM(ee=i.CRH())&&(Q._lazyContent=ee.first)}},viewQuery:function(nt,Q){if(1&nt&&i.Gf(Me,5),2&nt){let Le;i.iGM(Le=i.CRH())&&(Q._body=Le.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(nt,Q){2&nt&&i.ekj("mat-expanded",Q.expanded)("_mat-animation-noopable","NoopAnimations"===Q._animationMode)("mat-expansion-panel-spacing",Q._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[i._Bn([{provide:Ae,useValue:void 0},{provide:Yt,useExisting:Be}]),i.qOj,i.TTD],ngContentSelectors:Ke,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(nt,Q){1&nt&&(i.F$t(it),i.Hsn(0),i.TgZ(1,"div",0,1),i.NdJ("@bodyExpansion.done",function(ee){return Q._bodyAnimationDone.next(ee)}),i.TgZ(3,"div",2),i.Hsn(4,1),i.YNc(5,$e,0,0,"ng-template",3),i.qZA(),i.Hsn(6,2),i.qZA()),2&nt&&(i.xp6(1),i.Q6J("@bodyExpansion",Q._getExpandedState())("id",Q.id),i.uIk("aria-labelledby",Q._headerId),i.xp6(4),i.Q6J("cdkPortalOutlet",Q._portal))},dependencies:[k.Pl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[ft.bodyExpansion]},changeDetection:0}),Be})();class _e{}const Oe=(0,z.sb)(_e);let lt=(()=>{class Be extends Oe{constructor(nt,Q,Le,ee,R,U,Re){super(),this.panel=nt,this._element=Q,this._focusMonitor=Le,this._changeDetectorRef=ee,this._animationMode=U,this._parentChangeSubscription=b.w.EMPTY;const x=nt.accordion?nt.accordion._stateChanges.pipe((0,le.h)(p=>!(!p.hideToggle&&!p.togglePosition))):ie.E;this.tabIndex=parseInt(Re||"")||0,this._parentChangeSubscription=(0,he.T)(nt.opened,nt.closed,x,nt._inputChanges.pipe((0,le.h)(p=>!!(p.hideToggle||p.disabled||p.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),nt.closed.pipe((0,le.h)(()=>nt._containsFocus())).subscribe(()=>Le.focusVia(Q,"program")),R&&(this.expandedHeight=R.expandedHeight,this.collapsedHeight=R.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const nt=this._isExpanded();return nt&&this.expandedHeight?this.expandedHeight:!nt&&this.collapsedHeight?this.collapsedHeight:null}_keydown(nt){switch(nt.keyCode){case W.L_:case W.K5:(0,W.Vb)(nt)||(nt.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(nt))}}focus(nt,Q){nt?this._focusMonitor.focusVia(this._element,nt,Q):this._element.nativeElement.focus(Q)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(nt=>{nt&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return Be.\u0275fac=function(nt){return new(nt||Be)(i.Y36(Ee,1),i.Y36(i.SBq),i.Y36(ae.tE),i.Y36(i.sBO),i.Y36(V,8),i.Y36(i.QbO,8),i.$8M("tabindex"))},Be.\u0275cmp=i.Xpm({type:Be,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(nt,Q){1&nt&&i.NdJ("click",function(){return Q._toggle()})("keydown",function(ee){return Q._keydown(ee)}),2&nt&&(i.uIk("id",Q.panel._headerId)("tabindex",Q.tabIndex)("aria-controls",Q._getPanelId())("aria-expanded",Q._isExpanded())("aria-disabled",Q.panel.disabled),i.Udp("height",Q._getHeaderHeight()),i.ekj("mat-expanded",Q._isExpanded())("mat-expansion-toggle-indicator-after","after"===Q._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===Q._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===Q._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[i.qOj],ngContentSelectors:Xe,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(nt,Q){1&nt&&(i.F$t(me),i.TgZ(0,"span",0),i.Hsn(1),i.Hsn(2,1),i.Hsn(3,2),i.qZA(),i.YNc(4,tt,1,1,"span",1)),2&nt&&(i.ekj("mat-content-hide-toggle",!Q._showToggle()),i.xp6(4),i.Q6J("ngIf",Q._showToggle()))},dependencies:[F.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[ft.indicatorRotate]},changeDetection:0}),Be})(),be=(()=>{class Be{}return Be.\u0275fac=function(nt){return new(nt||Be)},Be.\u0275dir=i.lG2({type:Be,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),Be})(),et=(()=>{class Be{}return Be.\u0275fac=function(nt){return new(nt||Be)},Be.\u0275dir=i.lG2({type:Be,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),Be})(),Mt=(()=>{class Be extends D{constructor(){super(...arguments),this._ownHeaders=new i.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(nt){this._hideToggle=(0,c.Ig)(nt)}ngAfterContentInit(){this._headers.changes.pipe((0,ue.O)(this._headers)).subscribe(nt=>{this._ownHeaders.reset(nt.filter(Q=>Q.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new ae.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(nt){this._keyManager.onKeydown(nt)}_handleHeaderFocus(nt){this._keyManager.updateActiveItem(nt)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return Be.\u0275fac=function(){let at;return function(Q){return(at||(at=i.n5z(Be)))(Q||Be)}}(),Be.\u0275dir=i.lG2({type:Be,selectors:[["mat-accordion"]],contentQueries:function(nt,Q,Le){if(1&nt&&i.Suo(Le,lt,5),2&nt){let ee;i.iGM(ee=i.CRH())&&(Q._headers=ee)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(nt,Q){2&nt&&i.ekj("mat-accordion-multi",Q.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[i._Bn([{provide:Ae,useExisting:Be}]),i.qOj]}),Be})(),_t=(()=>{class Be{}return Be.\u0275fac=function(nt){return new(nt||Be)},Be.\u0275mod=i.oAB({type:Be}),Be.\u0275inj=i.cJS({imports:[F.ez,z.BQ,P,k.eL]}),Be})()},9549:(Ct,ke,u)=>{"use strict";u.d(ke,{Eo:()=>Dt,G_:()=>R,KE:()=>U,R9:()=>Be,hX:()=>lt,lN:()=>Re});var i=u(9643),a=u(6895),c=u(4650),v=u(3238),b=u(445),h=u(1281),g=u(8929),D=u(6787),B=u(3753),O=u(1059),P=u(7625),k=u(2986),F=u(7340),z=u(3353);const ae=["connectionContainer"],we=["inputContainer"],ue=["label"];function le(x,p){1&x&&(c.ynx(0),c.TgZ(1,"div",14),c._UZ(2,"div",15)(3,"div",16)(4,"div",17),c.qZA(),c.TgZ(5,"div",18),c._UZ(6,"div",15)(7,"div",16)(8,"div",17),c.qZA(),c.BQk())}function ge(x,p){if(1&x){const m=c.EpF();c.TgZ(0,"div",19),c.NdJ("cdkObserveContent",function(){c.CHM(m);const de=c.oxw();return c.KtG(de.updateOutlineGap())}),c.Hsn(1,1),c.qZA()}if(2&x){const m=c.oxw();c.Q6J("cdkObserveContentDisabled","outline"!=m.appearance)}}function W(x,p){if(1&x&&(c.ynx(0),c.Hsn(1,2),c.TgZ(2,"span"),c._uU(3),c.qZA(),c.BQk()),2&x){const m=c.oxw(2);c.xp6(3),c.Oqu(m._control.placeholder)}}function ie(x,p){1&x&&c.Hsn(0,3,["*ngSwitchCase","true"])}function he(x,p){1&x&&(c.TgZ(0,"span",23),c._uU(1," *"),c.qZA())}function se(x,p){if(1&x){const m=c.EpF();c.TgZ(0,"label",20,21),c.NdJ("cdkObserveContent",function(){c.CHM(m);const de=c.oxw();return c.KtG(de.updateOutlineGap())}),c.YNc(2,W,4,1,"ng-container",12),c.YNc(3,ie,1,0,"ng-content",12),c.YNc(4,he,2,0,"span",22),c.qZA()}if(2&x){const m=c.oxw();c.ekj("mat-empty",m._control.empty&&!m._shouldAlwaysFloat())("mat-form-field-empty",m._control.empty&&!m._shouldAlwaysFloat())("mat-accent","accent"==m.color)("mat-warn","warn"==m.color),c.Q6J("cdkObserveContentDisabled","outline"!=m.appearance)("id",m._labelId)("ngSwitch",m._hasLabel()),c.uIk("for",m._control.id)("aria-owns",m._control.id),c.xp6(2),c.Q6J("ngSwitchCase",!1),c.xp6(1),c.Q6J("ngSwitchCase",!0),c.xp6(1),c.Q6J("ngIf",!m.hideRequiredMarker&&m._control.required&&!m._control.disabled)}}function Me(x,p){1&x&&(c.TgZ(0,"div",24),c.Hsn(1,4),c.qZA())}function $e(x,p){if(1&x&&(c.TgZ(0,"div",25),c._UZ(1,"span",26),c.qZA()),2&x){const m=c.oxw();c.xp6(1),c.ekj("mat-accent","accent"==m.color)("mat-warn","warn"==m.color)}}function it(x,p){if(1&x&&(c.TgZ(0,"div"),c.Hsn(1,5),c.qZA()),2&x){const m=c.oxw();c.Q6J("@transitionMessages",m._subscriptAnimationState)}}function Ke(x,p){if(1&x&&(c.TgZ(0,"div",30),c._uU(1),c.qZA()),2&x){const m=c.oxw(2);c.Q6J("id",m._hintLabelId),c.xp6(1),c.Oqu(m.hintLabel)}}function tt(x,p){if(1&x&&(c.TgZ(0,"div",27),c.YNc(1,Ke,2,2,"div",28),c.Hsn(2,6),c._UZ(3,"div",29),c.Hsn(4,7),c.qZA()),2&x){const m=c.oxw();c.Q6J("@transitionMessages",m._subscriptAnimationState),c.xp6(1),c.Q6J("ngIf",m.hintLabel)}}const me=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Xe=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],yt=new c.OlP("MatError"),Yt={transitionMessages:(0,F.X$)("transitionMessages",[(0,F.SB)("enter",(0,F.oB)({opacity:1,transform:"translateY(0%)"})),(0,F.eR)("void => enter",[(0,F.oB)({opacity:0,transform:"translateY(-5px)"}),(0,F.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Dt=(()=>{class x{}return x.\u0275fac=function(m){return new(m||x)},x.\u0275dir=c.lG2({type:x}),x})();const _e=new c.OlP("MatHint");let lt=(()=>{class x{}return x.\u0275fac=function(m){return new(m||x)},x.\u0275dir=c.lG2({type:x,selectors:[["mat-label"]]}),x})(),be=(()=>{class x{}return x.\u0275fac=function(m){return new(m||x)},x.\u0275dir=c.lG2({type:x,selectors:[["mat-placeholder"]]}),x})();const et=new c.OlP("MatPrefix"),_t=new c.OlP("MatSuffix");let Be=(()=>{class x{}return x.\u0275fac=function(m){return new(m||x)},x.\u0275dir=c.lG2({type:x,selectors:[["","matSuffix",""]],features:[c._Bn([{provide:_t,useExisting:x}])]}),x})(),at=0;const Le=(0,v.pj)(class{constructor(x){this._elementRef=x}},"primary"),ee=new c.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),R=new c.OlP("MatFormField");let U=(()=>{class x extends Le{constructor(m,j,de,X,H,f,_){super(m),this._changeDetectorRef=j,this._dir=de,this._defaults=X,this._platform=H,this._ngZone=f,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new g.xQ,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+at++,this._labelId="mat-form-field-label-"+at++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==_,this.appearance=X?.appearance||"legacy",X&&(this._hideRequiredMarker=Boolean(X.hideRequiredMarker),X.color&&(this.color=this.defaultColor=X.color))}get appearance(){return this._appearance}set appearance(m){const j=this._appearance;this._appearance=m||this._defaults?.appearance||"legacy","outline"===this._appearance&&j!==m&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(m){this._hideRequiredMarker=(0,h.Ig)(m)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(m){this._hintLabel=m,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(m){m!==this._floatLabel&&(this._floatLabel=m||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(m){this._explicitFormFieldControl=m}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const m=this._control;m.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${m.controlType}`),m.stateChanges.pipe((0,O.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),m.ngControl&&m.ngControl.valueChanges&&m.ngControl.valueChanges.pipe((0,P.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,P.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,D.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,O.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,O.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,P.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(m){const j=this._control?this._control.ngControl:null;return j&&j[m]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,B.R)(this._label.nativeElement,"transitionend").pipe((0,k.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let m=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&m.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const j=this._hintChildren?this._hintChildren.find(X=>"start"===X.align):null,de=this._hintChildren?this._hintChildren.find(X=>"end"===X.align):null;j?m.push(j.id):this._hintLabel&&m.push(this._hintLabelId),de&&m.push(de.id)}else this._errorChildren&&m.push(...this._errorChildren.map(j=>j.id));this._control.setDescribedByIds(m)}}_validateControlChild(){}updateOutlineGap(){const m=this._label?this._label.nativeElement:null,j=this._connectionContainerRef.nativeElement,de=".mat-form-field-outline-start",X=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!m||!m.children.length||!m.textContent.trim()){const ve=j.querySelectorAll(`${de}, ${X}`);for(let Je=0;Je0?.75*ht+10:0}for(let ve=0;ve<_.length;ve++)_[ve].style.width=`${H}px`;for(let ve=0;ve{class x{}return x.\u0275fac=function(m){return new(m||x)},x.\u0275mod=c.oAB({type:x}),x.\u0275inj=c.cJS({imports:[a.ez,v.BQ,i.Q8,v.BQ]}),x})()},7392:(Ct,ke,u)=>{"use strict";u.d(ke,{Hw:()=>oe,Ps:()=>_e});var i=u(4650),a=u(3238),c=u(1281),v=u(6895),b=u(1086),h=u(1737),g=u(567),D=u(2654),B=u(2868),O=u(4850),P=u(7221),k=u(537),F=u(2474),z=u(2986),ae=u(529),we=u(1481);const ue=["*"];let le;function W(Oe){return function ge(){if(void 0===le&&(le=null,typeof window<"u")){const Oe=window;void 0!==Oe.trustedTypes&&(le=Oe.trustedTypes.createPolicy("angular#components",{createHTML:lt=>lt}))}return le}()?.createHTML(Oe)||Oe}function ie(Oe){return Error(`Unable to find icon with the name "${Oe}"`)}function se(Oe){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${Oe}".`)}function Me(Oe){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${Oe}".`)}class $e{constructor(lt,be,et){this.url=lt,this.svgText=be,this.options=et}}let it=(()=>{class Oe{constructor(be,et,Mt,_t){this._httpClient=be,this._sanitizer=et,this._errorHandler=_t,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=Mt}addSvgIcon(be,et,Mt){return this.addSvgIconInNamespace("",be,et,Mt)}addSvgIconLiteral(be,et,Mt){return this.addSvgIconLiteralInNamespace("",be,et,Mt)}addSvgIconInNamespace(be,et,Mt,_t){return this._addSvgIconConfig(be,et,new $e(Mt,null,_t))}addSvgIconResolver(be){return this._resolvers.push(be),this}addSvgIconLiteralInNamespace(be,et,Mt,_t){const Be=this._sanitizer.sanitize(i.q3G.HTML,Mt);if(!Be)throw Me(Mt);const at=W(Be);return this._addSvgIconConfig(be,et,new $e("",at,_t))}addSvgIconSet(be,et){return this.addSvgIconSetInNamespace("",be,et)}addSvgIconSetLiteral(be,et){return this.addSvgIconSetLiteralInNamespace("",be,et)}addSvgIconSetInNamespace(be,et,Mt){return this._addSvgIconSetConfig(be,new $e(et,null,Mt))}addSvgIconSetLiteralInNamespace(be,et,Mt){const _t=this._sanitizer.sanitize(i.q3G.HTML,et);if(!_t)throw Me(et);const Be=W(_t);return this._addSvgIconSetConfig(be,new $e("",Be,Mt))}registerFontClassAlias(be,et=be){return this._fontCssClassesByAlias.set(be,et),this}classNameForFontAlias(be){return this._fontCssClassesByAlias.get(be)||be}setDefaultFontSetClass(...be){return this._defaultFontSetClass=be,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(be){const et=this._sanitizer.sanitize(i.q3G.RESOURCE_URL,be);if(!et)throw se(be);const Mt=this._cachedIconsByUrl.get(et);return Mt?(0,b.of)(me(Mt)):this._loadSvgIconFromConfig(new $e(be,null)).pipe((0,B.b)(_t=>this._cachedIconsByUrl.set(et,_t)),(0,O.U)(_t=>me(_t)))}getNamedSvgIcon(be,et=""){const Mt=Xe(et,be);let _t=this._svgIconConfigs.get(Mt);if(_t)return this._getSvgFromConfig(_t);if(_t=this._getIconConfigFromResolvers(et,be),_t)return this._svgIconConfigs.set(Mt,_t),this._getSvgFromConfig(_t);const Be=this._iconSetConfigs.get(et);return Be?this._getSvgFromIconSetConfigs(be,Be):(0,h._)(ie(Mt))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(be){return be.svgText?(0,b.of)(me(this._svgElementFromConfig(be))):this._loadSvgIconFromConfig(be).pipe((0,O.U)(et=>me(et)))}_getSvgFromIconSetConfigs(be,et){const Mt=this._extractIconWithNameFromAnySet(be,et);if(Mt)return(0,b.of)(Mt);const _t=et.filter(Be=>!Be.svgText).map(Be=>this._loadSvgIconSetFromConfig(Be).pipe((0,P.K)(at=>{const Q=`Loading icon set URL: ${this._sanitizer.sanitize(i.q3G.RESOURCE_URL,Be.url)} failed: ${at.message}`;return this._errorHandler.handleError(new Error(Q)),(0,b.of)(null)})));return(0,g.D)(_t).pipe((0,O.U)(()=>{const Be=this._extractIconWithNameFromAnySet(be,et);if(!Be)throw ie(be);return Be}))}_extractIconWithNameFromAnySet(be,et){for(let Mt=et.length-1;Mt>=0;Mt--){const _t=et[Mt];if(_t.svgText&&_t.svgText.toString().indexOf(be)>-1){const Be=this._svgElementFromConfig(_t),at=this._extractSvgIconFromSet(Be,be,_t.options);if(at)return at}}return null}_loadSvgIconFromConfig(be){return this._fetchIcon(be).pipe((0,B.b)(et=>be.svgText=et),(0,O.U)(()=>this._svgElementFromConfig(be)))}_loadSvgIconSetFromConfig(be){return be.svgText?(0,b.of)(null):this._fetchIcon(be).pipe((0,B.b)(et=>be.svgText=et))}_extractSvgIconFromSet(be,et,Mt){const _t=be.querySelector(`[id="${et}"]`);if(!_t)return null;const Be=_t.cloneNode(!0);if(Be.removeAttribute("id"),"svg"===Be.nodeName.toLowerCase())return this._setSvgAttributes(Be,Mt);if("symbol"===Be.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(Be),Mt);const at=this._svgElementFromString(W(""));return at.appendChild(Be),this._setSvgAttributes(at,Mt)}_svgElementFromString(be){const et=this._document.createElement("DIV");et.innerHTML=be;const Mt=et.querySelector("svg");if(!Mt)throw Error(" tag not found");return Mt}_toSvgElement(be){const et=this._svgElementFromString(W("")),Mt=be.attributes;for(let _t=0;_tW(Q)),(0,k.x)(()=>this._inProgressUrlFetches.delete(Be)),(0,F.B)());return this._inProgressUrlFetches.set(Be,nt),nt}_addSvgIconConfig(be,et,Mt){return this._svgIconConfigs.set(Xe(be,et),Mt),this}_addSvgIconSetConfig(be,et){const Mt=this._iconSetConfigs.get(be);return Mt?Mt.push(et):this._iconSetConfigs.set(be,[et]),this}_svgElementFromConfig(be){if(!be.svgElement){const et=this._svgElementFromString(be.svgText);this._setSvgAttributes(et,be.options),be.svgElement=et}return be.svgElement}_getIconConfigFromResolvers(be,et){for(let Mt=0;Mtlt?lt.pathname+lt.search:""}}}),jt=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],V=jt.map(Oe=>`[${Oe}]`).join(", "),Ee=/^url\(['"]?#(.*?)['"]?\)$/;let oe=(()=>{class Oe extends yt{constructor(be,et,Mt,_t,Be,at){super(be),this._iconRegistry=et,this._location=_t,this._errorHandler=Be,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=D.w.EMPTY,at&&(at.color&&(this.color=this.defaultColor=at.color),at.fontSet&&(this.fontSet=at.fontSet)),Mt||be.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(be){this._inline=(0,c.Ig)(be)}get svgIcon(){return this._svgIcon}set svgIcon(be){be!==this._svgIcon&&(be?this._updateSvgIcon(be):this._svgIcon&&this._clearSvgElement(),this._svgIcon=be)}get fontSet(){return this._fontSet}set fontSet(be){const et=this._cleanupFontValue(be);et!==this._fontSet&&(this._fontSet=et,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(be){const et=this._cleanupFontValue(be);et!==this._fontIcon&&(this._fontIcon=et,this._updateFontIconClasses())}_splitIconName(be){if(!be)return["",""];const et=be.split(":");switch(et.length){case 1:return["",et[0]];case 2:return et;default:throw Error(`Invalid icon name: "${be}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const be=this._elementsWithExternalReferences;if(be&&be.size){const et=this._location.getPathname();et!==this._previousPath&&(this._previousPath=et,this._prependPathToReferences(et))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(be){this._clearSvgElement();const et=this._location.getPathname();this._previousPath=et,this._cacheChildrenWithExternalReferences(be),this._prependPathToReferences(et),this._elementRef.nativeElement.appendChild(be)}_clearSvgElement(){const be=this._elementRef.nativeElement;let et=be.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();et--;){const Mt=be.childNodes[et];(1!==Mt.nodeType||"svg"===Mt.nodeName.toLowerCase())&&Mt.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const be=this._elementRef.nativeElement,et=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(Mt=>Mt.length>0);this._previousFontSetClass.forEach(Mt=>be.classList.remove(Mt)),et.forEach(Mt=>be.classList.add(Mt)),this._previousFontSetClass=et,this.fontIcon!==this._previousFontIconClass&&!et.includes("mat-ligature-font")&&(this._previousFontIconClass&&be.classList.remove(this._previousFontIconClass),this.fontIcon&&be.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(be){return"string"==typeof be?be.trim().split(" ")[0]:be}_prependPathToReferences(be){const et=this._elementsWithExternalReferences;et&&et.forEach((Mt,_t)=>{Mt.forEach(Be=>{_t.setAttribute(Be.name,`url('${be}#${Be.value}')`)})})}_cacheChildrenWithExternalReferences(be){const et=be.querySelectorAll(V),Mt=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let _t=0;_t{const at=et[_t],nt=at.getAttribute(Be),Q=nt?nt.match(Ee):null;if(Q){let Le=Mt.get(at);Le||(Le=[],Mt.set(at,Le)),Le.push({name:Be,value:Q[1]})}})}_updateSvgIcon(be){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),be){const[et,Mt]=this._splitIconName(be);et&&(this._svgNamespace=et),Mt&&(this._svgName=Mt),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Mt,et).pipe((0,z.q)(1)).subscribe(_t=>this._setSvgElement(_t),_t=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${et}:${Mt}! ${_t.message}`))})}}}return Oe.\u0275fac=function(be){return new(be||Oe)(i.Y36(i.SBq),i.Y36(it),i.$8M("aria-hidden"),i.Y36(Yt),i.Y36(i.qLn),i.Y36(ft,8))},Oe.\u0275cmp=i.Xpm({type:Oe,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(be,et){2&be&&(i.uIk("data-mat-icon-type",et._usingFontIcon()?"font":"svg")("data-mat-icon-name",et._svgName||et.fontIcon)("data-mat-icon-namespace",et._svgNamespace||et.fontSet),i.ekj("mat-icon-inline",et.inline)("mat-icon-no-color","primary"!==et.color&&"accent"!==et.color&&"warn"!==et.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.qOj],ngContentSelectors:ue,decls:1,vars:0,template:function(be,et){1&be&&(i.F$t(),i.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),Oe})(),_e=(()=>{class Oe{}return Oe.\u0275fac=function(be){return new(be||Oe)},Oe.\u0275mod=i.oAB({type:Oe}),Oe.\u0275inj=i.cJS({imports:[a.BQ,a.BQ]}),Oe})()},4144:(Ct,ke,u)=>{"use strict";u.d(ke,{Nt:()=>ge,c:()=>W});var i=u(1281),a=u(3353),c=u(4650),v=u(8896),b=u(8929);const h=(0,a.i$)({passive:!0});let g=(()=>{class ie{constructor(se,Me){this._platform=se,this._ngZone=Me,this._monitoredElements=new Map}monitor(se){if(!this._platform.isBrowser)return v.E;const Me=(0,i.fI)(se),$e=this._monitoredElements.get(Me);if($e)return $e.subject;const it=new b.xQ,Ke="cdk-text-field-autofilled",tt=me=>{"cdk-text-field-autofill-start"!==me.animationName||Me.classList.contains(Ke)?"cdk-text-field-autofill-end"===me.animationName&&Me.classList.contains(Ke)&&(Me.classList.remove(Ke),this._ngZone.run(()=>it.next({target:me.target,isAutofilled:!1}))):(Me.classList.add(Ke),this._ngZone.run(()=>it.next({target:me.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{Me.addEventListener("animationstart",tt,h),Me.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(Me,{subject:it,unlisten:()=>{Me.removeEventListener("animationstart",tt,h)}}),it}stopMonitoring(se){const Me=(0,i.fI)(se),$e=this._monitoredElements.get(Me);$e&&($e.unlisten(),$e.subject.complete(),Me.classList.remove("cdk-text-field-autofill-monitored"),Me.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(Me))}ngOnDestroy(){this._monitoredElements.forEach((se,Me)=>this.stopMonitoring(Me))}}return ie.\u0275fac=function(se){return new(se||ie)(c.LFG(a.t4),c.LFG(c.R0b))},ie.\u0275prov=c.Yz7({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})(),O=(()=>{class ie{}return ie.\u0275fac=function(se){return new(se||ie)},ie.\u0275mod=c.oAB({type:ie}),ie.\u0275inj=c.cJS({}),ie})();var P=u(4006),k=u(3238),F=u(9549);const ae=new c.OlP("MAT_INPUT_VALUE_ACCESSOR"),we=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let ue=0;const le=(0,k.FD)(class{constructor(ie,he,se,Me){this._defaultErrorStateMatcher=ie,this._parentForm=he,this._parentFormGroup=se,this.ngControl=Me,this.stateChanges=new b.xQ}});let ge=(()=>{class ie extends le{constructor(se,Me,$e,it,Ke,tt,me,Xe,Ae,yt){super(tt,it,Ke,$e),this._elementRef=se,this._platform=Me,this._autofillMonitor=Xe,this._formField=yt,this._uid="mat-input-"+ue++,this.focused=!1,this.stateChanges=new b.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(Dt=>(0,a.qK)().has(Dt)),this._iOSKeyupListener=Dt=>{const jt=Dt.target;!jt.value&&0===jt.selectionStart&&0===jt.selectionEnd&&(jt.setSelectionRange(1,1),jt.setSelectionRange(0,0))};const ft=this._elementRef.nativeElement,Yt=ft.nodeName.toLowerCase();this._inputValueAccessor=me||ft,this._previousNativeValue=this.value,this.id=this.id,Me.IOS&&Ae.runOutsideAngular(()=>{se.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===Yt,this._isTextarea="textarea"===Yt,this._isInFormField=!!yt,this._isNativeSelect&&(this.controlType=ft.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(se){this._disabled=(0,i.Ig)(se),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(se){this._id=se||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(P.kI.required)??!1}set required(se){this._required=(0,i.Ig)(se)}get type(){return this._type}set type(se){this._type=se||"text",this._validateType(),!this._isTextarea&&(0,a.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(se){se!==this.value&&(this._inputValueAccessor.value=se,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(se){this._readonly=(0,i.Ig)(se)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(se=>{this.autofilled=se.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(se){this._elementRef.nativeElement.focus(se)}_focusChanged(se){se!==this.focused&&(this.focused=se,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const se=this._formField,Me=se&&"legacy"===se.appearance&&!se._hasLabel?.()?null:this.placeholder;if(Me!==this._previousPlaceholder){const $e=this._elementRef.nativeElement;this._previousPlaceholder=Me,Me?$e.setAttribute("placeholder",Me):$e.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const se=this._elementRef.nativeElement.value;this._previousNativeValue!==se&&(this._previousNativeValue=se,this.stateChanges.next())}_validateType(){we.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let se=this._elementRef.nativeElement.validity;return se&&se.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const se=this._elementRef.nativeElement,Me=se.options[0];return this.focused||se.multiple||!this.empty||!!(se.selectedIndex>-1&&Me&&Me.label)}return this.focused||!this.empty}setDescribedByIds(se){se.length?this._elementRef.nativeElement.setAttribute("aria-describedby",se.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const se=this._elementRef.nativeElement;return this._isNativeSelect&&(se.multiple||se.size>1)}}return ie.\u0275fac=function(se){return new(se||ie)(c.Y36(c.SBq),c.Y36(a.t4),c.Y36(P.a5,10),c.Y36(P.F,8),c.Y36(P.sg,8),c.Y36(k.rD),c.Y36(ae,10),c.Y36(g),c.Y36(c.R0b),c.Y36(F.G_,8))},ie.\u0275dir=c.lG2({type:ie,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(se,Me){1&se&&c.NdJ("focus",function(){return Me._focusChanged(!0)})("blur",function(){return Me._focusChanged(!1)})("input",function(){return Me._onInput()}),2&se&&(c.Ikx("disabled",Me.disabled)("required",Me.required),c.uIk("id",Me.id)("data-placeholder",Me.placeholder)("name",Me.name||null)("readonly",Me.readonly&&!Me._isNativeSelect||null)("aria-invalid",Me.empty&&Me.required?null:Me.errorState)("aria-required",Me.required),c.ekj("mat-input-server",Me._isServer)("mat-native-select-inline",Me._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[c._Bn([{provide:F.Eo,useExisting:ie}]),c.qOj,c.TTD]}),ie})(),W=(()=>{class ie{}return ie.\u0275fac=function(se){return new(se||ie)},ie.\u0275mod=c.oAB({type:ie}),ie.\u0275inj=c.cJS({providers:[k.rD],imports:[O,F.lN,k.BQ,O,F.lN]}),ie})()},6338:(Ct,ke,u)=>{"use strict";u.d(ke,{Hk:()=>$e,Nh:()=>tt,Tg:()=>Xe,gs:()=>me,i$:()=>it,ie:()=>V});var i=u(6895),a=u(4650),c=u(3238),v=u(1281),b=u(8929),h=u(7625),k=(u(1059),u(2687),u(5017),u(9521),u(4006),u(8729));const F=["*"],ae=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],we=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],ie=(0,c.Id)((0,c.Kr)(class{})),he=(0,c.Kr)(class{}),se=new a.OlP("MatList"),Me=new a.OlP("MatNavList");let $e=(()=>{class Ee extends ie{constructor(){super(...arguments),this._stateChanges=new b.xQ}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Ee.\u0275fac=function(){let oe;return function(Oe){return(oe||(oe=a.n5z(Ee)))(Oe||Ee)}}(),Ee.\u0275cmp=a.Xpm({type:Ee,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[a._Bn([{provide:Me,useExisting:Ee}]),a.qOj,a.TTD],ngContentSelectors:F,decls:1,vars:0,template:function(_e,Oe){1&_e&&(a.F$t(),a.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),Ee})(),it=(()=>{class Ee extends ie{constructor(_e){super(),this._elementRef=_e,this._stateChanges=new b.xQ,"action-list"===this._getListType()&&(_e.nativeElement.classList.add("mat-action-list"),_e.nativeElement.setAttribute("role","group"))}_getListType(){const _e=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===_e?"list":"mat-action-list"===_e?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Ee.\u0275fac=function(_e){return new(_e||Ee)(a.Y36(a.SBq))},Ee.\u0275cmp=a.Xpm({type:Ee,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[a._Bn([{provide:se,useExisting:Ee}]),a.qOj,a.TTD],ngContentSelectors:F,decls:1,vars:0,template:function(_e,Oe){1&_e&&(a.F$t(),a.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),Ee})(),Ke=(()=>{class Ee{}return Ee.\u0275fac=function(_e){return new(_e||Ee)},Ee.\u0275dir=a.lG2({type:Ee,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),Ee})(),tt=(()=>{class Ee{}return Ee.\u0275fac=function(_e){return new(_e||Ee)},Ee.\u0275dir=a.lG2({type:Ee,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),Ee})(),me=(()=>{class Ee{}return Ee.\u0275fac=function(_e){return new(_e||Ee)},Ee.\u0275dir=a.lG2({type:Ee,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),Ee})(),Xe=(()=>{class Ee extends he{constructor(_e,Oe,lt,be){super(),this._element=_e,this._isInteractiveList=!1,this._destroyed=new b.xQ,this._disabled=!1,this._isInteractiveList=!!(lt||be&&"action-list"===be._getListType()),this._list=lt||be;const et=this._getHostElement();"button"===et.nodeName.toLowerCase()&&!et.hasAttribute("type")&&et.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,h.R)(this._destroyed)).subscribe(()=>{Oe.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(_e){this._disabled=(0,v.Ig)(_e)}ngAfterContentInit(){(0,c.E0)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return Ee.\u0275fac=function(_e){return new(_e||Ee)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(Me,8),a.Y36(se,8))},Ee.\u0275cmp=a.Xpm({type:Ee,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(_e,Oe,lt){if(1&_e&&(a.Suo(lt,Ke,5),a.Suo(lt,tt,5),a.Suo(lt,c.X2,5)),2&_e){let be;a.iGM(be=a.CRH())&&(Oe._avatar=be.first),a.iGM(be=a.CRH())&&(Oe._icon=be.first),a.iGM(be=a.CRH())&&(Oe._lines=be)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(_e,Oe){2&_e&&a.ekj("mat-list-item-disabled",Oe.disabled)("mat-list-item-with-avatar",Oe._avatar||Oe._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[a.qOj],ngContentSelectors:we,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(_e,Oe){1&_e&&(a.F$t(ae),a.TgZ(0,"span",0),a._UZ(1,"span",1),a.Hsn(2),a.TgZ(3,"span",2),a.Hsn(4,1),a.qZA(),a.Hsn(5,2),a.qZA()),2&_e&&(a.xp6(1),a.Q6J("matRippleTrigger",Oe._getHostElement())("matRippleDisabled",Oe._isRippleDisabled()))},dependencies:[c.wG],encapsulation:2,changeDetection:0}),Ee})(),V=(()=>{class Ee{}return Ee.\u0275fac=function(_e){return new(_e||Ee)},Ee.\u0275mod=a.oAB({type:Ee}),Ee.\u0275inj=a.cJS({imports:[c.uc,c.si,c.BQ,c.us,i.ez,c.uc,c.BQ,c.us,k.t]}),Ee})()},3217:(Ct,ke,u)=>{"use strict";u.d(ke,{VK:()=>Le,OP:()=>_t,Tx:()=>j,p6:()=>m});var i=u(2687),a=u(1281),c=u(9521),v=u(4650),b=u(8929),h=u(2654),g=u(6787),D=u(1086),B=u(8139),O=u(353),k=u(3489),F=u(9312);function z(de,X=O.P){const f=function P(de){return de instanceof Date&&!isNaN(+de)}(de)?+de-X.now():Math.abs(de);return _=>_.lift(new ae(f,X))}class ae{constructor(X,H){this.delay=X,this.scheduler=H}call(X,H){return H.subscribe(new we(X,this.delay,this.scheduler))}}class we extends k.L{constructor(X,H,f){super(X),this.delay=H,this.scheduler=f,this.queue=[],this.active=!1,this.errored=!1}static dispatch(X){const H=X.source,f=H.queue,_=X.scheduler,T=X.destination;for(;f.length>0&&f[0].time-_.now()<=0;)f.shift().notification.observe(T);if(f.length>0){const ve=Math.max(0,f[0].time-_.now());this.schedule(X,ve)}else this.unsubscribe(),H.active=!1}_schedule(X){this.active=!0,this.destination.add(X.schedule(we.dispatch,this.delay,{source:this,destination:this.destination,scheduler:X}))}scheduleNotification(X){if(!0===this.errored)return;const H=this.scheduler,f=new ue(H.now()+this.delay,X);this.queue.push(f),!1===this.active&&this._schedule(H)}_next(X){this.scheduleNotification(F.P.createNext(X))}_error(X){this.errored=!0,this.queue=[],this.destination.error(X),this.unsubscribe()}_complete(){this.scheduleNotification(F.P.createComplete()),this.unsubscribe()}}class ue{constructor(X,H){this.time=X,this.notification=H}}var le=u(1059),ge=u(7545),W=u(2986),ie=u(7625),he=u(2198),se=u(7340),Me=u(4080),$e=u(6895),it=u(3238),Ke=u(445),tt=u(8184),me=u(3353),Xe=u(2744);const Ae=["mat-menu-item",""];function yt(de,X){1&de&&(v.O4$(),v.TgZ(0,"svg",2),v._UZ(1,"polygon",3),v.qZA())}const ft=["*"];function Yt(de,X){if(1&de){const H=v.EpF();v.TgZ(0,"div",0),v.NdJ("keydown",function(_){v.CHM(H);const T=v.oxw();return v.KtG(T._handleKeydown(_))})("click",function(){v.CHM(H);const _=v.oxw();return v.KtG(_.closed.emit("click"))})("@transformMenu.start",function(_){v.CHM(H);const T=v.oxw();return v.KtG(T._onAnimationStart(_))})("@transformMenu.done",function(_){v.CHM(H);const T=v.oxw();return v.KtG(T._onAnimationDone(_))}),v.TgZ(1,"div",1),v.Hsn(2),v.qZA()()}if(2&de){const H=v.oxw();v.Q6J("id",H.panelId)("ngClass",H._classList)("@transformMenu",H._panelAnimationState),v.uIk("aria-label",H.ariaLabel||null)("aria-labelledby",H.ariaLabelledby||null)("aria-describedby",H.ariaDescribedby||null)}}const Dt={transformMenu:(0,se.X$)("transformMenu",[(0,se.SB)("void",(0,se.oB)({opacity:0,transform:"scale(0.8)"})),(0,se.eR)("void => enter",(0,se.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,se.oB)({opacity:1,transform:"scale(1)"}))),(0,se.eR)("* => void",(0,se.jt)("100ms 25ms linear",(0,se.oB)({opacity:0})))]),fadeInItems:(0,se.X$)("fadeInItems",[(0,se.SB)("showing",(0,se.oB)({opacity:1})),(0,se.eR)("void => *",[(0,se.oB)({opacity:0}),(0,se.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Ee=new v.OlP("MatMenuContent"),et=new v.OlP("MAT_MENU_PANEL"),Mt=(0,it.Kr)((0,it.Id)(class{}));let _t=(()=>{class de extends Mt{constructor(H,f,_,T,ve){super(),this._elementRef=H,this._document=f,this._focusMonitor=_,this._parentMenu=T,this._changeDetectorRef=ve,this.role="menuitem",this._hovered=new b.xQ,this._focused=new b.xQ,this._highlighted=!1,this._triggersSubmenu=!1,T?.addItem?.(this)}focus(H,f){this._focusMonitor&&H?this._focusMonitor.focusVia(this._getHostElement(),H,f):this._getHostElement().focus(f),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(H){this.disabled&&(H.preventDefault(),H.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const H=this._elementRef.nativeElement.cloneNode(!0),f=H.querySelectorAll("mat-icon, .material-icons");for(let _=0;_{class de{constructor(H,f,_,T){this._elementRef=H,this._ngZone=f,this._defaultOptions=_,this._changeDetectorRef=T,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new v.n_E,this._tabSubscription=h.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new b.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new v.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+nt++}get xPosition(){return this._xPosition}set xPosition(H){this._xPosition=H,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(H){this._yPosition=H,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(H){this._overlapTrigger=(0,a.Ig)(H)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(H){this._hasBackdrop=(0,a.Ig)(H)}set panelClass(H){const f=this._previousPanelClass;f&&f.length&&f.split(" ").forEach(_=>{this._classList[_]=!1}),this._previousPanelClass=H,H&&H.length&&(H.split(" ").forEach(_=>{this._classList[_]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(H){this.panelClass=H}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new i.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,le.O)(this._directDescendantItems),(0,ge.w)(H=>(0,g.T)(...H.map(f=>f._focused)))).subscribe(H=>this._keyManager.updateActiveItem(H)),this._directDescendantItems.changes.subscribe(H=>{const f=this._keyManager;if("enter"===this._panelAnimationState&&f.activeItem?._hasFocus()){const _=H.toArray(),T=Math.max(0,Math.min(_.length-1,f.activeItemIndex||0));_[T]&&!_[T].disabled?f.setActiveItem(T):f.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,le.O)(this._directDescendantItems),(0,ge.w)(f=>(0,g.T)(...f.map(_=>_._hovered))))}addItem(H){}removeItem(H){}_handleKeydown(H){const f=H.keyCode,_=this._keyManager;switch(f){case c.hY:(0,c.Vb)(H)||(H.preventDefault(),this.closed.emit("keydown"));break;case c.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case c.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(f===c.LH||f===c.JH)&&_.setFocusOrigin("keyboard"),void _.onKeydown(H)}H.stopPropagation()}focusFirstItem(H="program"){this._ngZone.onStable.pipe((0,W.q)(1)).subscribe(()=>{let f=null;if(this._directDescendantItems.length&&(f=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!f||!f.contains(document.activeElement)){const _=this._keyManager;_.setFocusOrigin(H).setFirstItemActive(),!_.activeItem&&f&&f.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(H){const f=Math.min(this._baseElevation+H,24),_=`${this._elevationPrefix}${f}`,T=Object.keys(this._classList).find(ve=>ve.startsWith(this._elevationPrefix));(!T||T===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[_]=!0,this._previousElevation=_)}setPositionClasses(H=this.xPosition,f=this.yPosition){const _=this._classList;_["mat-menu-before"]="before"===H,_["mat-menu-after"]="after"===H,_["mat-menu-above"]="above"===f,_["mat-menu-below"]="below"===f,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(H){this._animationDone.next(H),this._isAnimating=!1}_onAnimationStart(H){this._isAnimating=!0,"enter"===H.toState&&0===this._keyManager.activeItemIndex&&(H.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,le.O)(this._allItems)).subscribe(H=>{this._directDescendantItems.reset(H.filter(f=>f._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return de.\u0275fac=function(H){return new(H||de)(v.Y36(v.SBq),v.Y36(v.R0b),v.Y36(Be),v.Y36(v.sBO))},de.\u0275dir=v.lG2({type:de,contentQueries:function(H,f,_){if(1&H&&(v.Suo(_,Ee,5),v.Suo(_,_t,5),v.Suo(_,_t,4)),2&H){let T;v.iGM(T=v.CRH())&&(f.lazyContent=T.first),v.iGM(T=v.CRH())&&(f._allItems=T),v.iGM(T=v.CRH())&&(f.items=T)}},viewQuery:function(H,f){if(1&H&&v.Gf(v.Rgc,5),2&H){let _;v.iGM(_=v.CRH())&&(f.templateRef=_.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),de})(),Le=(()=>{class de extends Q{constructor(H,f,_,T){super(H,f,_,T),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return de.\u0275fac=function(H){return new(H||de)(v.Y36(v.SBq),v.Y36(v.R0b),v.Y36(Be),v.Y36(v.sBO))},de.\u0275cmp=v.Xpm({type:de,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(H,f){2&H&&v.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[v._Bn([{provide:et,useExisting:de}]),v.qOj],ngContentSelectors:ft,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(H,f){1&H&&(v.F$t(),v.YNc(0,Yt,3,6,"ng-template"))},dependencies:[$e.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Dt.transformMenu,Dt.fadeInItems]},changeDetection:0}),de})();const ee=new v.OlP("mat-menu-scroll-strategy"),U={provide:ee,deps:[tt.aV],useFactory:function R(de){return()=>de.scrollStrategies.reposition()}},x=(0,me.i$)({passive:!0});let p=(()=>{class de{constructor(H,f,_,T,ve,Je,ze,St,ht){this._overlay=H,this._element=f,this._viewContainerRef=_,this._menuItemInstance=Je,this._dir=ze,this._focusMonitor=St,this._ngZone=ht,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=h.w.EMPTY,this._hoverSubscription=h.w.EMPTY,this._menuCloseSubscription=h.w.EMPTY,this._handleTouchStart=Et=>{(0,i.yG)(Et)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new v.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new v.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=T,this._parentMaterialMenu=ve instanceof Q?ve:void 0,f.nativeElement.addEventListener("touchstart",this._handleTouchStart,x),Je&&(Je._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(H){this.menu=H}get menu(){return this._menu}set menu(H){H!==this._menu&&(this._menu=H,this._menuCloseSubscription.unsubscribe(),H&&(this._menuCloseSubscription=H.close.subscribe(f=>{this._destroyMenu(f),("click"===f||"tab"===f)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(f)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,x),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const H=this.menu;if(this._menuOpen||!H)return;const f=this._createOverlay(H),_=f.getConfig(),T=_.positionStrategy;this._setPosition(H,T),_.hasBackdrop=H.hasBackdrop??!this.triggersSubmenu(),f.attach(this._getPortal(H)),H.lazyContent&&H.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(H),H instanceof Q&&(H._startAnimation(),H._directDescendantItems.changes.pipe((0,ie.R)(H.close)).subscribe(()=>{T.withLockedPosition(!1).reapplyLastPosition(),T.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(H,f){this._focusMonitor&&H?this._focusMonitor.focusVia(this._element,H,f):this._element.nativeElement.focus(f)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(H){if(!this._overlayRef||!this.menuOpen)return;const f=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===H||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,f instanceof Q?(f._resetAnimation(),f.lazyContent?f._animationDone.pipe((0,he.h)(_=>"void"===_.toState),(0,W.q)(1),(0,ie.R)(f.lazyContent._attached)).subscribe({next:()=>f.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),f?.lazyContent?.detach())}_initMenu(H){H.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,H.direction=this.dir,this._setMenuElevation(H),H.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(H){if(H.setElevation){let f=0,_=H.parentMenu;for(;_;)f++,_=_.parentMenu;H.setElevation(f)}}_setIsMenuOpen(H){this._menuOpen=H,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(H)}_createOverlay(H){if(!this._overlayRef){const f=this._getOverlayConfig(H);this._subscribeToPositions(H,f.positionStrategy),this._overlayRef=this._overlay.create(f),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(H){return new tt.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:H.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:H.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(H,f){H.setPositionClasses&&f.positionChanges.subscribe(_=>{const T="start"===_.connectionPair.overlayX?"after":"before",ve="top"===_.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>H.setPositionClasses(T,ve)):H.setPositionClasses(T,ve)})}_setPosition(H,f){let[_,T]="before"===H.xPosition?["end","start"]:["start","end"],[ve,Je]="above"===H.yPosition?["bottom","top"]:["top","bottom"],[ze,St]=[ve,Je],[ht,Et]=[_,T],ye=0;if(this.triggersSubmenu()){if(Et=_="before"===H.xPosition?"start":"end",T=ht="end"===_?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const qe=this._parentMaterialMenu.items.first;this._parentInnerPadding=qe?qe._getHostElement().offsetTop:0}ye="bottom"===ve?this._parentInnerPadding:-this._parentInnerPadding}}else H.overlapTrigger||(ze="top"===ve?"bottom":"top",St="top"===Je?"bottom":"top");f.withPositions([{originX:_,originY:ze,overlayX:ht,overlayY:ve,offsetY:ye},{originX:T,originY:ze,overlayX:Et,overlayY:ve,offsetY:ye},{originX:_,originY:St,overlayX:ht,overlayY:Je,offsetY:-ye},{originX:T,originY:St,overlayX:Et,overlayY:Je,offsetY:-ye}])}_menuClosingActions(){const H=this._overlayRef.backdropClick(),f=this._overlayRef.detachments(),_=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,D.of)(),T=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,he.h)(ve=>ve!==this._menuItemInstance),(0,he.h)(()=>this._menuOpen)):(0,D.of)();return(0,g.T)(H,_,T,f)}_handleMousedown(H){(0,i.X6)(H)||(this._openedBy=0===H.button?"mouse":void 0,this.triggersSubmenu()&&H.preventDefault())}_handleKeydown(H){const f=H.keyCode;(f===c.K5||f===c.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(f===c.SV&&"ltr"===this.dir||f===c.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(H){this.triggersSubmenu()?(H.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,he.h)(H=>H===this._menuItemInstance&&!H.disabled),z(0,B.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Q&&this.menu._isAnimating?this.menu._animationDone.pipe((0,W.q)(1),z(0,B.E),(0,ie.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(H){return(!this._portal||this._portal.templateRef!==H.templateRef)&&(this._portal=new Me.UE(H.templateRef,this._viewContainerRef)),this._portal}}return de.\u0275fac=function(H){return new(H||de)(v.Y36(tt.aV),v.Y36(v.SBq),v.Y36(v.s_b),v.Y36(ee),v.Y36(et,8),v.Y36(_t,10),v.Y36(Ke.Is,8),v.Y36(i.tE),v.Y36(v.R0b))},de.\u0275dir=v.lG2({type:de,hostVars:3,hostBindings:function(H,f){1&H&&v.NdJ("click",function(T){return f._handleClick(T)})("mousedown",function(T){return f._handleMousedown(T)})("keydown",function(T){return f._handleKeydown(T)}),2&H&&v.uIk("aria-haspopup",f.menu?"menu":null)("aria-expanded",f.menuOpen||null)("aria-controls",f.menuOpen?f.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),de})(),m=(()=>{class de extends p{}return de.\u0275fac=function(){let X;return function(f){return(X||(X=v.n5z(de)))(f||de)}}(),de.\u0275dir=v.lG2({type:de,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[v.qOj]}),de})(),j=(()=>{class de{}return de.\u0275fac=function(H){return new(H||de)},de.\u0275mod=v.oAB({type:de}),de.\u0275inj=v.cJS({providers:[U],imports:[$e.ez,it.BQ,it.si,tt.U8,Xe.ZD,it.BQ]}),de})()},8739:(Ct,ke,u)=>{"use strict";u.d(ke,{NW:()=>Me,TU:()=>$e});var i=u(6895),a=u(4650),c=u(3238),v=u(4859),b=u(4385),h=u(266),g=u(1281),D=u(8929),B=u(9549);function O(it,Ke){if(1&it&&(a.TgZ(0,"mat-option",19),a._uU(1),a.qZA()),2&it){const tt=Ke.$implicit;a.Q6J("value",tt),a.xp6(1),a.hij(" ",tt," ")}}function P(it,Ke){if(1&it){const tt=a.EpF();a.TgZ(0,"mat-form-field",16)(1,"mat-select",17),a.NdJ("selectionChange",function(Xe){a.CHM(tt);const Ae=a.oxw(2);return a.KtG(Ae._changePageSize(Xe.value))}),a.YNc(2,O,2,2,"mat-option",18),a.qZA()()}if(2&it){const tt=a.oxw(2);a.Q6J("appearance",tt._formFieldAppearance)("color",tt.color),a.xp6(1),a.Q6J("value",tt.pageSize)("disabled",tt.disabled)("panelClass",tt.selectConfig.panelClass||"")("disableOptionCentering",tt.selectConfig.disableOptionCentering)("aria-label",tt._intl.itemsPerPageLabel),a.xp6(1),a.Q6J("ngForOf",tt._displayedPageSizeOptions)}}function k(it,Ke){if(1&it&&(a.TgZ(0,"div",20),a._uU(1),a.qZA()),2&it){const tt=a.oxw(2);a.xp6(1),a.Oqu(tt.pageSize)}}function F(it,Ke){if(1&it&&(a.TgZ(0,"div",12)(1,"div",13),a._uU(2),a.qZA(),a.YNc(3,P,3,8,"mat-form-field",14),a.YNc(4,k,2,1,"div",15),a.qZA()),2&it){const tt=a.oxw();a.xp6(2),a.hij(" ",tt._intl.itemsPerPageLabel," "),a.xp6(1),a.Q6J("ngIf",tt._displayedPageSizeOptions.length>1),a.xp6(1),a.Q6J("ngIf",tt._displayedPageSizeOptions.length<=1)}}function z(it,Ke){if(1&it){const tt=a.EpF();a.TgZ(0,"button",21),a.NdJ("click",function(){a.CHM(tt);const Xe=a.oxw();return a.KtG(Xe.firstPage())}),a.O4$(),a.TgZ(1,"svg",7),a._UZ(2,"path",22),a.qZA()()}if(2&it){const tt=a.oxw();a.Q6J("matTooltip",tt._intl.firstPageLabel)("matTooltipDisabled",tt._previousButtonsDisabled())("matTooltipPosition","above")("disabled",tt._previousButtonsDisabled()),a.uIk("aria-label",tt._intl.firstPageLabel)}}function ae(it,Ke){if(1&it){const tt=a.EpF();a.O4$(),a.kcU(),a.TgZ(0,"button",23),a.NdJ("click",function(){a.CHM(tt);const Xe=a.oxw();return a.KtG(Xe.lastPage())}),a.O4$(),a.TgZ(1,"svg",7),a._UZ(2,"path",24),a.qZA()()}if(2&it){const tt=a.oxw();a.Q6J("matTooltip",tt._intl.lastPageLabel)("matTooltipDisabled",tt._nextButtonsDisabled())("matTooltipPosition","above")("disabled",tt._nextButtonsDisabled()),a.uIk("aria-label",tt._intl.lastPageLabel)}}let we=(()=>{class it{constructor(){this.changes=new D.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(tt,me,Xe)=>{if(0==Xe||0==me)return`0 of ${Xe}`;const Ae=tt*me;return`${Ae+1} \u2013 ${Ae<(Xe=Math.max(Xe,0))?Math.min(Ae+me,Xe):Ae+me} of ${Xe}`}}}return it.\u0275fac=function(tt){return new(tt||it)},it.\u0275prov=a.Yz7({token:it,factory:it.\u0275fac,providedIn:"root"}),it})();const le={provide:we,deps:[[new a.FiY,new a.tp0,we]],useFactory:function ue(it){return it||new we}},ie=new a.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),he=(0,c.Id)((0,c.dB)(class{}));let se=(()=>{class it extends he{constructor(tt,me,Xe){if(super(),this._intl=tt,this._changeDetectorRef=me,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new a.vpe,this._intlChanges=tt.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),Xe){const{pageSize:Ae,pageSizeOptions:yt,hidePageSize:ft,showFirstLastButtons:Yt}=Xe;null!=Ae&&(this._pageSize=Ae),null!=yt&&(this._pageSizeOptions=yt),null!=ft&&(this._hidePageSize=ft),null!=Yt&&(this._showFirstLastButtons=Yt)}}get pageIndex(){return this._pageIndex}set pageIndex(tt){this._pageIndex=Math.max((0,g.su)(tt),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(tt){this._length=(0,g.su)(tt),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(tt){this._pageSize=Math.max((0,g.su)(tt),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(tt){this._pageSizeOptions=(tt||[]).map(me=>(0,g.su)(me)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(tt){this._hidePageSize=(0,g.Ig)(tt)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(tt){this._showFirstLastButtons=(0,g.Ig)(tt)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const tt=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(tt)}previousPage(){if(!this.hasPreviousPage())return;const tt=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(tt)}firstPage(){if(!this.hasPreviousPage())return;const tt=this.pageIndex;this.pageIndex=0,this._emitPageEvent(tt)}lastPage(){if(!this.hasNextPage())return;const tt=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(tt)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const tt=this.getNumberOfPages()-1;return this.pageIndextt-me),this._changeDetectorRef.markForCheck())}_emitPageEvent(tt){this.page.emit({previousPageIndex:tt,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return it.\u0275fac=function(tt){a.$Z()},it.\u0275dir=a.lG2({type:it,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[a.qOj]}),it})(),Me=(()=>{class it extends se{constructor(tt,me,Xe){super(tt,me,Xe),Xe&&null!=Xe.formFieldAppearance&&(this._formFieldAppearance=Xe.formFieldAppearance)}}return it.\u0275fac=function(tt){return new(tt||it)(a.Y36(we),a.Y36(a.sBO),a.Y36(ie,8))},it.\u0275cmp=a.Xpm({type:it,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[a.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(tt,me){1&tt&&(a.TgZ(0,"div",0)(1,"div",1),a.YNc(2,F,5,3,"div",2),a.TgZ(3,"div",3)(4,"div",4),a._uU(5),a.qZA(),a.YNc(6,z,3,5,"button",5),a.TgZ(7,"button",6),a.NdJ("click",function(){return me.previousPage()}),a.O4$(),a.TgZ(8,"svg",7),a._UZ(9,"path",8),a.qZA()(),a.kcU(),a.TgZ(10,"button",9),a.NdJ("click",function(){return me.nextPage()}),a.O4$(),a.TgZ(11,"svg",7),a._UZ(12,"path",10),a.qZA()(),a.YNc(13,ae,3,5,"button",11),a.qZA()()()),2&tt&&(a.xp6(2),a.Q6J("ngIf",!me.hidePageSize),a.xp6(3),a.hij(" ",me._intl.getRangeLabel(me.pageIndex,me.pageSize,me.length)," "),a.xp6(1),a.Q6J("ngIf",me.showFirstLastButtons),a.xp6(1),a.Q6J("matTooltip",me._intl.previousPageLabel)("matTooltipDisabled",me._previousButtonsDisabled())("matTooltipPosition","above")("disabled",me._previousButtonsDisabled()),a.uIk("aria-label",me._intl.previousPageLabel),a.xp6(3),a.Q6J("matTooltip",me._intl.nextPageLabel)("matTooltipDisabled",me._nextButtonsDisabled())("matTooltipPosition","above")("disabled",me._nextButtonsDisabled()),a.uIk("aria-label",me._intl.nextPageLabel),a.xp6(3),a.Q6J("ngIf",me.showFirstLastButtons))},dependencies:[i.sg,i.O5,v.lW,B.KE,b.gD,c.ey,h.gM],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),it})(),$e=(()=>{class it{}return it.\u0275fac=function(tt){return new(tt||it)},it.\u0275mod=a.oAB({type:it}),it.\u0275inj=a.cJS({providers:[le],imports:[i.ez,v.ot,b.LD,h.AV,c.BQ]}),it})()},3162:(Ct,ke,u)=>{"use strict";u.d(ke,{Cv:()=>we,pW:()=>z});var i=u(4650),a=u(6895),c=u(3238),v=u(1281),b=u(2654),h=u(3753),g=u(2198);const D=["primaryValueBar"],B=(0,c.pj)(class{constructor(ue){this._elementRef=ue}},"primary"),O=new i.OlP("mat-progress-bar-location",{providedIn:"root",factory:function P(){const ue=(0,i.f3M)(a.K0),le=ue?ue.location:null;return{getPathname:()=>le?le.pathname+le.search:""}}}),k=new i.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let F=0,z=(()=>{class ue extends B{constructor(ge,W,ie,he,se,Me){super(ge),this._ngZone=W,this._animationMode=ie,this._changeDetectorRef=Me,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new i.vpe,this._animationEndSubscription=b.w.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+F++;const $e=he?he.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${$e}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===ie,se&&(se.color&&(this.color=this.defaultColor=se.color),this.mode=se.mode||this.mode)}get value(){return this._value}set value(ge){this._value=ae((0,v.su)(ge)||0),this._changeDetectorRef?.markForCheck()}get bufferValue(){return this._bufferValue}set bufferValue(ge){this._bufferValue=ae(ge||0),this._changeDetectorRef?.markForCheck()}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const ge=this._primaryValueBar.nativeElement;this._animationEndSubscription=(0,h.R)(ge,"transitionend").pipe((0,g.h)(W=>W.target===ge)).subscribe(()=>{0!==this.animationEnd.observers.length&&("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return ue.\u0275fac=function(ge){return new(ge||ue)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(i.QbO,8),i.Y36(O,8),i.Y36(k,8),i.Y36(i.sBO))},ue.\u0275cmp=i.Xpm({type:ue,selectors:[["mat-progress-bar"]],viewQuery:function(ge,W){if(1&ge&&i.Gf(D,5),2&ge){let ie;i.iGM(ie=i.CRH())&&(W._primaryValueBar=ie.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(ge,W){2&ge&&(i.uIk("aria-valuenow","indeterminate"===W.mode||"query"===W.mode?null:W.value)("mode",W.mode),i.ekj("_mat-animation-noopable",W._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[i.qOj],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(ge,W){1&ge&&(i.TgZ(0,"div",0),i.O4$(),i.TgZ(1,"svg",1)(2,"defs")(3,"pattern",2),i._UZ(4,"circle",3),i.qZA()(),i._UZ(5,"rect",4),i.qZA(),i.kcU(),i._UZ(6,"div",5)(7,"div",6,7)(9,"div",8),i.qZA()),2&ge&&(i.xp6(3),i.Q6J("id",W.progressbarId),i.xp6(2),i.uIk("fill",W._rectangleFillValue),i.xp6(1),i.Q6J("ngStyle",W._bufferTransform()),i.xp6(1),i.Q6J("ngStyle",W._primaryTransform()))},dependencies:[a.PC],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}.mat-progress-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}'],encapsulation:2,changeDetection:0}),ue})();function ae(ue,le=0,ge=100){return Math.max(le,Math.min(ge,ue))}let we=(()=>{class ue{}return ue.\u0275fac=function(ge){return new(ge||ue)},ue.\u0275mod=i.oAB({type:ue}),ue.\u0275inj=i.cJS({imports:[a.ez,c.BQ,c.BQ]}),ue})()},1572:(Ct,ke,u)=>{"use strict";u.d(ke,{Cq:()=>ue,Ou:()=>we});var i=u(1281),a=u(3353),c=u(2744),v=u(6895),b=u(4650),h=u(3238),g=u(2654);function D(ge,W){if(1&ge&&(b.O4$(),b._UZ(0,"circle",4)),2&ge){const ie=b.oxw(),he=b.MAs(1);b.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+ie._spinnerAnimationLabel)("stroke-dashoffset",ie._getStrokeDashOffset(),"px")("stroke-dasharray",ie._getStrokeCircumference(),"px")("stroke-width",ie._getCircleStrokeWidth(),"%")("transform-origin",ie._getCircleTransformOrigin(he)),b.uIk("r",ie._getCircleRadius())}}function B(ge,W){if(1&ge&&(b.O4$(),b._UZ(0,"circle",4)),2&ge){const ie=b.oxw(),he=b.MAs(1);b.Udp("stroke-dashoffset",ie._getStrokeDashOffset(),"px")("stroke-dasharray",ie._getStrokeCircumference(),"px")("stroke-width",ie._getCircleStrokeWidth(),"%")("transform-origin",ie._getCircleTransformOrigin(he)),b.uIk("r",ie._getCircleRadius())}}const k=(0,h.pj)(class{constructor(ge){this._elementRef=ge}},"primary"),F=new b.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function z(){return{diameter:100}}});class we extends k{constructor(W,ie,he,se,Me,$e,it,Ke){super(W),this._document=he,this._diameter=100,this._value=0,this._resizeSubscription=g.w.EMPTY,this.mode="determinate";const tt=we._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),tt.has(he.head)||tt.set(he.head,new Set([100])),this._noopAnimations="NoopAnimations"===se&&!!Me&&!Me._forceAnimations,"mat-spinner"===W.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),Me&&(Me.color&&(this.color=this.defaultColor=Me.color),Me.diameter&&(this.diameter=Me.diameter),Me.strokeWidth&&(this.strokeWidth=Me.strokeWidth)),ie.isBrowser&&ie.SAFARI&&it&&$e&&Ke&&(this._resizeSubscription=it.change(150).subscribe(()=>{"indeterminate"===this.mode&&Ke.run(()=>$e.markForCheck())}))}get diameter(){return this._diameter}set diameter(W){this._diameter=(0,i.su)(W),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(W){this._strokeWidth=(0,i.su)(W)}get value(){return"determinate"===this.mode?this._value:0}set value(W){this._value=Math.max(0,Math.min(100,(0,i.su)(W)))}ngOnInit(){const W=this._elementRef.nativeElement;this._styleRoot=(0,a.kV)(W)||this._document.head,this._attachStyleNode(),W.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const W=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${W} ${W}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(W){const ie=50*(W.currentScale??1);return`${ie}% ${ie}%`}_attachStyleNode(){const W=this._styleRoot,ie=this._diameter,he=we._diameters;let se=he.get(W);if(!se||!se.has(ie)){const Me=this._document.createElement("style");Me.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),Me.textContent=this._getAnimationText(),W.appendChild(Me),se||(se=new Set,he.set(W,se)),se.add(ie)}}_getAnimationText(){const W=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*W).replace(/END_VALUE/g,""+.2*W).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}we._diameters=new WeakMap,we.\u0275fac=function(W){return new(W||we)(b.Y36(b.SBq),b.Y36(a.t4),b.Y36(v.K0,8),b.Y36(b.QbO,8),b.Y36(F),b.Y36(b.sBO),b.Y36(c.rL),b.Y36(b.R0b))},we.\u0275cmp=b.Xpm({type:we,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(W,ie){2&W&&(b.uIk("aria-valuemin","determinate"===ie.mode?0:null)("aria-valuemax","determinate"===ie.mode?100:null)("aria-valuenow","determinate"===ie.mode?ie.value:null)("mode",ie.mode),b.Udp("width",ie.diameter,"px")("height",ie.diameter,"px"),b.ekj("_mat-animation-noopable",ie._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[b.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(W,ie){1&W&&(b.O4$(),b.TgZ(0,"svg",0,1),b.YNc(2,D,1,11,"circle",2),b.YNc(3,B,1,9,"circle",3),b.qZA()),2&W&&(b.Udp("width",ie.diameter,"px")("height",ie.diameter,"px"),b.Q6J("ngSwitch","indeterminate"===ie.mode),b.uIk("viewBox",ie._getViewBox()),b.xp6(2),b.Q6J("ngSwitchCase",!0),b.xp6(1),b.Q6J("ngSwitchCase",!1))},dependencies:[v.RF,v.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let ue=(()=>{class ge{}return ge.\u0275fac=function(ie){return new(ie||ge)},ge.\u0275mod=b.oAB({type:ge}),ge.\u0275inj=b.cJS({imports:[h.BQ,v.ez,h.BQ]}),ge})()},4385:(Ct,ke,u)=>{"use strict";u.d(ke,{LD:()=>U,gD:()=>R});var i=u(8184),a=u(6895),c=u(4650),v=u(3238),b=u(9549),h=u(2744),g=u(2687),D=u(445),B=u(1281),O=u(5017),P=u(9521),k=u(4006),F=u(8929),z=u(8514),ae=u(6787),we=u(1059),ue=u(7545),le=u(2986),ge=u(2198),W=u(4850),ie=u(5778),he=u(7625),se=u(7340);const Me=["trigger"],$e=["panel"];function it(Re,x){if(1&Re&&(c.TgZ(0,"span",8),c._uU(1),c.qZA()),2&Re){const p=c.oxw();c.xp6(1),c.Oqu(p.placeholder)}}function Ke(Re,x){if(1&Re&&(c.TgZ(0,"span",12),c._uU(1),c.qZA()),2&Re){const p=c.oxw(2);c.xp6(1),c.Oqu(p.triggerValue)}}function tt(Re,x){1&Re&&c.Hsn(0,0,["*ngSwitchCase","true"])}function me(Re,x){if(1&Re&&(c.TgZ(0,"span",9),c.YNc(1,Ke,2,1,"span",10),c.YNc(2,tt,1,0,"ng-content",11),c.qZA()),2&Re){const p=c.oxw();c.Q6J("ngSwitch",!!p.customTrigger),c.xp6(2),c.Q6J("ngSwitchCase",!0)}}function Xe(Re,x){if(1&Re){const p=c.EpF();c.TgZ(0,"div",13)(1,"div",14,15),c.NdJ("@transformPanel.done",function(j){c.CHM(p);const de=c.oxw();return c.KtG(de._panelDoneAnimatingStream.next(j.toState))})("keydown",function(j){c.CHM(p);const de=c.oxw();return c.KtG(de._handleKeydown(j))}),c.Hsn(3,1),c.qZA()()}if(2&Re){const p=c.oxw();c.Q6J("@transformPanelWrap",void 0),c.xp6(1),c.Gre("mat-select-panel ",p._getPanelTheme(),""),c.Udp("transform-origin",p._transformOrigin)("font-size",p._triggerFontSize,"px"),c.Q6J("ngClass",p.panelClass)("@transformPanel",p.multiple?"showing-multiple":"showing"),c.uIk("id",p.id+"-panel")("aria-multiselectable",p.multiple)("aria-label",p.ariaLabel||null)("aria-labelledby",p._getPanelAriaLabelledby())}}const Ae=[[["mat-select-trigger"]],"*"],yt=["mat-select-trigger","*"],ft={transformPanelWrap:(0,se.X$)("transformPanelWrap",[(0,se.eR)("* => void",(0,se.IO)("@transformPanel",[(0,se.pV)()],{optional:!0}))]),transformPanel:(0,se.X$)("transformPanel",[(0,se.SB)("void",(0,se.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,se.SB)("showing",(0,se.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,se.SB)("showing-multiple",(0,se.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,se.eR)("void => *",(0,se.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,se.eR)("* => void",(0,se.jt)("100ms 25ms linear",(0,se.oB)({opacity:0})))])};let V=0;const et=new c.OlP("mat-select-scroll-strategy"),_t=new c.OlP("MAT_SELECT_CONFIG"),Be={provide:et,deps:[i.aV],useFactory:function Mt(Re){return()=>Re.scrollStrategies.reposition()}};class at{constructor(x,p){this.source=x,this.value=p}}const nt=(0,v.Kr)((0,v.sb)((0,v.Id)((0,v.FD)(class{constructor(Re,x,p,m,j){this._elementRef=Re,this._defaultErrorStateMatcher=x,this._parentForm=p,this._parentFormGroup=m,this.ngControl=j,this.stateChanges=new F.xQ}})))),Q=new c.OlP("MatSelectTrigger");let ee=(()=>{class Re extends nt{constructor(p,m,j,de,X,H,f,_,T,ve,Je,ze,St,ht){super(X,de,f,_,ve),this._viewportRuler=p,this._changeDetectorRef=m,this._ngZone=j,this._dir=H,this._parentFormField=T,this._liveAnnouncer=St,this._defaultOptions=ht,this._panelOpen=!1,this._compareWith=(Et,ye)=>Et===ye,this._uid="mat-select-"+V++,this._triggerAriaLabelledBy=null,this._destroy=new F.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+V++,this._panelDoneAnimatingStream=new F.xQ,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=(0,z.P)(()=>{const Et=this.options;return Et?Et.changes.pipe((0,we.O)(Et),(0,ue.w)(()=>(0,ae.T)(...Et.map(ye=>ye.onSelectionChange)))):this._ngZone.onStable.pipe((0,le.q)(1),(0,ue.w)(()=>this.optionSelectionChanges))}),this.openedChange=new c.vpe,this._openedStream=this.openedChange.pipe((0,ge.h)(Et=>Et),(0,W.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,ge.h)(Et=>!Et),(0,W.U)(()=>{})),this.selectionChange=new c.vpe,this.valueChange=new c.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=ht?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=ht.typeaheadDebounceInterval),this._scrollStrategyFactory=ze,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Je)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(p){this._placeholder=p,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(k.kI.required)??!1}set required(p){this._required=(0,B.Ig)(p),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(p){this._multiple=(0,B.Ig)(p)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(p){this._disableOptionCentering=(0,B.Ig)(p)}get compareWith(){return this._compareWith}set compareWith(p){this._compareWith=p,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(p){this._assignValue(p)&&this._onChange(p)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(p){this._typeaheadDebounceInterval=(0,B.su)(p)}get id(){return this._id}set id(p){this._id=p||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new O.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,ie.x)(),(0,he.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,he.R)(this._destroy)).subscribe(p=>{p.added.forEach(m=>m.select()),p.removed.forEach(m=>m.deselect())}),this.options.changes.pipe((0,we.O)(null),(0,he.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const p=this._getTriggerAriaLabelledby(),m=this.ngControl;if(p!==this._triggerAriaLabelledBy){const j=this._elementRef.nativeElement;this._triggerAriaLabelledBy=p,p?j.setAttribute("aria-labelledby",p):j.removeAttribute("aria-labelledby")}m&&(this._previousControl!==m.control&&(void 0!==this._previousControl&&null!==m.disabled&&m.disabled!==this.disabled&&(this.disabled=m.disabled),this._previousControl=m.control),this.updateErrorState())}ngOnChanges(p){(p.disabled||p.userAriaDescribedBy)&&this.stateChanges.next(),p.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(p){this._assignValue(p)}registerOnChange(p){this._onChange=p}registerOnTouched(p){this._onTouched=p}setDisabledState(p){this.disabled=p,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const p=this._selectionModel.selected.map(m=>m.viewValue);return this._isRtl()&&p.reverse(),p.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(p){this.disabled||(this.panelOpen?this._handleOpenKeydown(p):this._handleClosedKeydown(p))}_handleClosedKeydown(p){const m=p.keyCode,j=m===P.JH||m===P.LH||m===P.oh||m===P.SV,de=m===P.K5||m===P.L_,X=this._keyManager;if(!X.isTyping()&&de&&!(0,P.Vb)(p)||(this.multiple||p.altKey)&&j)p.preventDefault(),this.open();else if(!this.multiple){const H=this.selected;X.onKeydown(p);const f=this.selected;f&&H!==f&&this._liveAnnouncer.announce(f.viewValue,1e4)}}_handleOpenKeydown(p){const m=this._keyManager,j=p.keyCode,de=j===P.JH||j===P.LH,X=m.isTyping();if(de&&p.altKey)p.preventDefault(),this.close();else if(X||j!==P.K5&&j!==P.L_||!m.activeItem||(0,P.Vb)(p))if(!X&&this._multiple&&j===P.A&&p.ctrlKey){p.preventDefault();const H=this.options.some(f=>!f.disabled&&!f.selected);this.options.forEach(f=>{f.disabled||(H?f.select():f.deselect())})}else{const H=m.activeItemIndex;m.onKeydown(p),this._multiple&&de&&p.shiftKey&&m.activeItem&&m.activeItemIndex!==H&&m.activeItem._selectViaInteraction()}else p.preventDefault(),m.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,le.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(p){if(this._selectionModel.selected.forEach(m=>m.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&p)Array.isArray(p),p.forEach(m=>this._selectOptionByValue(m)),this._sortValues();else{const m=this._selectOptionByValue(p);m?this._keyManager.updateActiveItem(m):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(p){const m=this.options.find(j=>{if(this._selectionModel.isSelected(j))return!1;try{return null!=j.value&&this._compareWith(j.value,p)}catch{return!1}});return m&&this._selectionModel.select(m),m}_assignValue(p){return!!(p!==this._value||this._multiple&&Array.isArray(p))&&(this.options&&this._setSelectionByValue(p),this._value=p,!0)}_initKeyManager(){this._keyManager=new g.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,he.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,he.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const p=(0,ae.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,he.R)(p)).subscribe(m=>{this._onSelect(m.source,m.isUserInput),m.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,ae.T)(...this.options.map(m=>m._stateChanges)).pipe((0,he.R)(p)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(p,m){const j=this._selectionModel.isSelected(p);null!=p.value||this._multiple?(j!==p.selected&&(p.selected?this._selectionModel.select(p):this._selectionModel.deselect(p)),m&&this._keyManager.setActiveItem(p),this.multiple&&(this._sortValues(),m&&this.focus())):(p.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(p.value)),j!==this._selectionModel.isSelected(p)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const p=this.options.toArray();this._selectionModel.sort((m,j)=>this.sortComparator?this.sortComparator(m,j,p):p.indexOf(m)-p.indexOf(j)),this.stateChanges.next()}}_propagateChanges(p){let m=null;m=this.multiple?this.selected.map(j=>j.value):this.selected?this.selected.value:p,this._value=m,this.valueChange.emit(m),this._onChange(m),this.selectionChange.emit(this._getChangeEvent(m)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(p){this._elementRef.nativeElement.focus(p)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const p=this._parentFormField?.getLabelId();return this.ariaLabelledby?(p?p+" ":"")+this.ariaLabelledby:p}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const p=this._parentFormField?.getLabelId();let m=(p?p+" ":"")+this._valueId;return this.ariaLabelledby&&(m+=" "+this.ariaLabelledby),m}_panelDoneAnimating(p){this.openedChange.emit(p)}setDescribedByIds(p){p.length?this._elementRef.nativeElement.setAttribute("aria-describedby",p.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return Re.\u0275fac=function(p){return new(p||Re)(c.Y36(h.rL),c.Y36(c.sBO),c.Y36(c.R0b),c.Y36(v.rD),c.Y36(c.SBq),c.Y36(D.Is,8),c.Y36(k.F,8),c.Y36(k.sg,8),c.Y36(b.G_,8),c.Y36(k.a5,10),c.$8M("tabindex"),c.Y36(et),c.Y36(g.Kd),c.Y36(_t,8))},Re.\u0275dir=c.lG2({type:Re,viewQuery:function(p,m){if(1&p&&(c.Gf(Me,5),c.Gf($e,5),c.Gf(i.pI,5)),2&p){let j;c.iGM(j=c.CRH())&&(m.trigger=j.first),c.iGM(j=c.CRH())&&(m.panel=j.first),c.iGM(j=c.CRH())&&(m._overlayDir=j.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[c.qOj,c.TTD]}),Re})(),R=(()=>{class Re extends ee{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(p,m,j){const de=this._getItemHeight();return Math.min(Math.max(0,de*p-m+de/2),j)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,he.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,le.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(p){const m=(0,v.CB)(p,this.options,this.optionGroups),j=this._getItemHeight();this.panel.nativeElement.scrollTop=0===p&&1===m?0:(0,v.jH)((p+m)*j,j,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(p){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(p)}_getChangeEvent(p){return new at(this,p)}_calculateOverlayOffsetX(){const p=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),m=this._viewportRuler.getViewportSize(),j=this._isRtl(),de=this.multiple?56:32;let X;if(this.multiple)X=40;else if(this.disableOptionCentering)X=16;else{let _=this._selectionModel.selected[0]||this.options.first;X=_&&_.group?32:16}j||(X*=-1);const H=0-(p.left+X-(j?de:0)),f=p.right+X-m.width+(j?0:de);H>0?X+=H+8:f>0&&(X-=f+8),this._overlayDir.offsetX=Math.round(X),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(p,m,j){const de=this._getItemHeight(),X=(de-this._triggerRect.height)/2,H=Math.floor(256/de);let f;return this.disableOptionCentering?0:(f=0===this._scrollTop?p*de:this._scrollTop===j?(p-(this._getItemCount()-H))*de+(de-(this._getItemCount()*de-256)%de):m-de/2,Math.round(-1*f-X))}_checkOverlayWithinViewport(p){const m=this._getItemHeight(),j=this._viewportRuler.getViewportSize(),de=this._triggerRect.top-8,X=j.height-this._triggerRect.bottom-8,H=Math.abs(this._offsetY),_=Math.min(this._getItemCount()*m,256)-H-this._triggerRect.height;_>X?this._adjustPanelUp(_,X):H>de?this._adjustPanelDown(H,de,p):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(p,m){const j=Math.round(p-m);this._scrollTop-=j,this._offsetY-=j,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(p,m,j){const de=Math.round(p-m);if(this._scrollTop+=de,this._offsetY+=de,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=j)return this._scrollTop=j,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const p=this._getItemHeight(),m=this._getItemCount(),j=Math.min(m*p,256),X=m*p-j;let H;H=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),H+=(0,v.CB)(H,this.options,this.optionGroups);const f=j/2;this._scrollTop=this._calculateOverlayScroll(H,f,X),this._offsetY=this._calculateOverlayOffsetY(H,f,X),this._checkOverlayWithinViewport(X)}_getOriginBasedOnOption(){const p=this._getItemHeight(),m=(p-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-m+p/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return Re.\u0275fac=function(){let x;return function(m){return(x||(x=c.n5z(Re)))(m||Re)}}(),Re.\u0275cmp=c.Xpm({type:Re,selectors:[["mat-select"]],contentQueries:function(p,m,j){if(1&p&&(c.Suo(j,Q,5),c.Suo(j,v.ey,5),c.Suo(j,v.K7,5)),2&p){let de;c.iGM(de=c.CRH())&&(m.customTrigger=de.first),c.iGM(de=c.CRH())&&(m.options=de),c.iGM(de=c.CRH())&&(m.optionGroups=de)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(p,m){1&p&&c.NdJ("keydown",function(de){return m._handleKeydown(de)})("focus",function(){return m._onFocus()})("blur",function(){return m._onBlur()}),2&p&&(c.uIk("id",m.id)("tabindex",m.tabIndex)("aria-controls",m.panelOpen?m.id+"-panel":null)("aria-expanded",m.panelOpen)("aria-label",m.ariaLabel||null)("aria-required",m.required.toString())("aria-disabled",m.disabled.toString())("aria-invalid",m.errorState)("aria-activedescendant",m._getAriaActiveDescendant()),c.ekj("mat-select-disabled",m.disabled)("mat-select-invalid",m.errorState)("mat-select-required",m.required)("mat-select-empty",m.empty)("mat-select-multiple",m.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[c._Bn([{provide:b.Eo,useExisting:Re},{provide:v.HF,useExisting:Re}]),c.qOj],ngContentSelectors:yt,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(p,m){if(1&p&&(c.F$t(Ae),c.TgZ(0,"div",0,1),c.NdJ("click",function(){return m.toggle()}),c.TgZ(3,"div",2),c.YNc(4,it,2,1,"span",3),c.YNc(5,me,3,2,"span",4),c.qZA(),c.TgZ(6,"div",5),c._UZ(7,"div",6),c.qZA()(),c.YNc(8,Xe,4,14,"ng-template",7),c.NdJ("backdropClick",function(){return m.close()})("attach",function(){return m._onAttached()})("detach",function(){return m.close()})),2&p){const j=c.MAs(1);c.uIk("aria-owns",m.panelOpen?m.id+"-panel":null),c.xp6(3),c.Q6J("ngSwitch",m.empty),c.uIk("id",m._valueId),c.xp6(1),c.Q6J("ngSwitchCase",!0),c.xp6(1),c.Q6J("ngSwitchCase",!1),c.xp6(3),c.Q6J("cdkConnectedOverlayPanelClass",m._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",m._scrollStrategy)("cdkConnectedOverlayOrigin",j)("cdkConnectedOverlayOpen",m.panelOpen)("cdkConnectedOverlayPositions",m._positions)("cdkConnectedOverlayMinWidth",null==m._triggerRect?null:m._triggerRect.width)("cdkConnectedOverlayOffsetY",m._offsetY)}},dependencies:[a.mk,a.RF,a.n9,a.ED,i.pI,i.xu],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[ft.transformPanelWrap,ft.transformPanel]},changeDetection:0}),Re})(),U=(()=>{class Re{}return Re.\u0275fac=function(p){return new(p||Re)},Re.\u0275mod=c.oAB({type:Re}),Re.\u0275inj=c.cJS({providers:[Be],imports:[a.ez,i.U8,v.Ng,v.BQ,h.ZD,b.lN,v.Ng,v.BQ]}),Re})()},3267:(Ct,ke,u)=>{"use strict";u.d(ke,{JX:()=>Ee,SJ:()=>_e});var i=u(2744),a=u(6895),c=u(4650),v=u(3238),b=u(2687),h=u(1281),g=u(9521),D=u(3353),B=u(8929),O=u(3753),P=u(2198),k=u(4850),F=u(7604),z=u(7625),ae=u(5778),we=u(2986),ue=u(7340);const le=["*"],ge=["content"],me={transformDrawer:(0,ue.X$)("transform",[(0,ue.SB)("open, open-instant",(0,ue.oB)({transform:"none",visibility:"visible"})),(0,ue.SB)("void",(0,ue.oB)({"box-shadow":"none",visibility:"hidden"})),(0,ue.eR)("void => open-instant",(0,ue.jt)("0ms")),(0,ue.eR)("void <=> open, open-instant => void",(0,ue.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},yt=new c.OlP("MAT_DRAWER_CONTAINER");let Dt=(()=>{class Oe{constructor(be,et,Mt,_t,Be,at,nt,Q){this._elementRef=be,this._focusTrapFactory=et,this._focusMonitor=Mt,this._platform=_t,this._ngZone=Be,this._interactivityChecker=at,this._doc=nt,this._container=Q,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new B.xQ,this._animationEnd=new B.xQ,this._animationState="void",this.openedChange=new c.vpe(!0),this._openedStream=this.openedChange.pipe((0,P.h)(Le=>Le),(0,k.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,P.h)(Le=>Le.fromState!==Le.toState&&0===Le.toState.indexOf("open")),(0,F.h)(void 0)),this._closedStream=this.openedChange.pipe((0,P.h)(Le=>!Le),(0,k.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,P.h)(Le=>Le.fromState!==Le.toState&&"void"===Le.toState),(0,F.h)(void 0)),this._destroyed=new B.xQ,this.onPositionChanged=new c.vpe,this._modeChanged=new B.xQ,this.openedChange.subscribe(Le=>{Le?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,O.R)(this._elementRef.nativeElement,"keydown").pipe((0,P.h)(Le=>Le.keyCode===g.hY&&!this.disableClose&&!(0,g.Vb)(Le)),(0,z.R)(this._destroyed)).subscribe(Le=>this._ngZone.run(()=>{this.close(),Le.stopPropagation(),Le.preventDefault()}))}),this._animationEnd.pipe((0,ae.x)((Le,ee)=>Le.fromState===ee.fromState&&Le.toState===ee.toState)).subscribe(Le=>{const{fromState:ee,toState:R}=Le;(0===R.indexOf("open")&&"void"===ee||"void"===R&&0===ee.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(be){(be="end"===be?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(be),this._position=be,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(be){this._mode=be,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(be){this._disableClose=(0,h.Ig)(be)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(be){("true"===be||"false"===be||null==be)&&(be=(0,h.Ig)(be)),this._autoFocus=be}get opened(){return this._opened}set opened(be){this.toggle((0,h.Ig)(be))}_forceFocus(be,et){this._interactivityChecker.isFocusable(be)||(be.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Mt=()=>{be.removeEventListener("blur",Mt),be.removeEventListener("mousedown",Mt),be.removeAttribute("tabindex")};be.addEventListener("blur",Mt),be.addEventListener("mousedown",Mt)})),be.focus(et)}_focusByCssSelector(be,et){let Mt=this._elementRef.nativeElement.querySelector(be);Mt&&this._forceFocus(Mt,et)}_takeFocus(){if(!this._focusTrap)return;const be=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(et=>{!et&&"function"==typeof this._elementRef.nativeElement.focus&&be.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(be){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,be):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const be=this._doc.activeElement;return!!be&&this._elementRef.nativeElement.contains(be)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(be){return this.toggle(!0,be)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(be=!this.opened,et){be&&et&&(this._openedVia=et);const Mt=this._setOpen(be,!be&&this._isFocusWithinDrawer(),this._openedVia||"program");return be||(this._openedVia=null),Mt}_setOpen(be,et,Mt){return this._opened=be,be?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",et&&this._restoreFocus(Mt)),this._updateFocusTrapState(),new Promise(_t=>{this.openedChange.pipe((0,we.q)(1)).subscribe(Be=>_t(Be?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(be){const et=this._elementRef.nativeElement,Mt=et.parentNode;"end"===be?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),Mt.insertBefore(this._anchor,et)),Mt.appendChild(et)):this._anchor&&this._anchor.parentNode.insertBefore(et,this._anchor)}}return Oe.\u0275fac=function(be){return new(be||Oe)(c.Y36(c.SBq),c.Y36(b.qV),c.Y36(b.tE),c.Y36(D.t4),c.Y36(c.R0b),c.Y36(b.ic),c.Y36(a.K0,8),c.Y36(yt,8))},Oe.\u0275cmp=c.Xpm({type:Oe,selectors:[["mat-drawer"]],viewQuery:function(be,et){if(1&be&&c.Gf(ge,5),2&be){let Mt;c.iGM(Mt=c.CRH())&&(et._content=Mt.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(be,et){1&be&&c.WFA("@transform.start",function(_t){return et._animationStarted.next(_t)})("@transform.done",function(_t){return et._animationEnd.next(_t)}),2&be&&(c.uIk("align",null),c.d8E("@transform",et._animationState),c.ekj("mat-drawer-end","end"===et.position)("mat-drawer-over","over"===et.mode)("mat-drawer-push","push"===et.mode)("mat-drawer-side","side"===et.mode)("mat-drawer-opened",et.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:le,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(be,et){1&be&&(c.F$t(),c.TgZ(0,"div",0,1),c.Hsn(2),c.qZA())},dependencies:[i.PQ],encapsulation:2,data:{animation:[me.transformDrawer]},changeDetection:0}),Oe})(),Ee=(()=>{class Oe extends Dt{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(be){this._fixedInViewport=(0,h.Ig)(be)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(be){this._fixedTopGap=(0,h.su)(be)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(be){this._fixedBottomGap=(0,h.su)(be)}}return Oe.\u0275fac=function(){let lt;return function(et){return(lt||(lt=c.n5z(Oe)))(et||Oe)}}(),Oe.\u0275cmp=c.Xpm({type:Oe,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(be,et){2&be&&(c.uIk("align",null),c.Udp("top",et.fixedInViewport?et.fixedTopGap:null,"px")("bottom",et.fixedInViewport?et.fixedBottomGap:null,"px"),c.ekj("mat-drawer-end","end"===et.position)("mat-drawer-over","over"===et.mode)("mat-drawer-push","push"===et.mode)("mat-drawer-side","side"===et.mode)("mat-drawer-opened",et.opened)("mat-sidenav-fixed",et.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[c.qOj],ngContentSelectors:le,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(be,et){1&be&&(c.F$t(),c.TgZ(0,"div",0,1),c.Hsn(2),c.qZA())},dependencies:[i.PQ],encapsulation:2,data:{animation:[me.transformDrawer]},changeDetection:0}),Oe})(),_e=(()=>{class Oe{}return Oe.\u0275fac=function(be){return new(be||Oe)},Oe.\u0275mod=c.oAB({type:Oe}),Oe.\u0275inj=c.cJS({imports:[a.ez,v.BQ,i.ZD,i.ZD,v.BQ]}),Oe})()},455:(Ct,ke,u)=>{"use strict";u.d(ke,{HT:()=>O,Rr:()=>we,rP:()=>W});var i=u(9643),a=u(4650),c=u(3238),v=u(2687),b=u(1281),h=u(4006);const g=["input"],D=function(ie){return{enterDuration:ie}},B=["*"],O=new a.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let P=0;const k={provide:h.JU,useExisting:(0,a.Gpc)(()=>we),multi:!0};class F{constructor(he,se){this.source=he,this.checked=se}}const z=(0,c.sb)((0,c.pj)((0,c.Kr)((0,c.Id)(class{constructor(ie){this._elementRef=ie}}))));let ae=(()=>{class ie extends z{constructor(se,Me,$e,it,Ke,tt,me){super(se),this._focusMonitor=Me,this._changeDetectorRef=$e,this.defaults=Ke,this._onChange=Xe=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new a.vpe,this.toggleChange=new a.vpe,this.tabIndex=parseInt(it)||0,this.color=this.defaultColor=Ke.color||"accent",this._noopAnimations="NoopAnimations"===tt,this.id=this._uniqueId=`${me}${++P}`}get required(){return this._required}set required(se){this._required=(0,b.Ig)(se)}get checked(){return this._checked}set checked(se){this._checked=(0,b.Ig)(se),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(se=>{"keyboard"===se||"program"===se?this._focused=!0:se||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(se){this.checked=!!se}registerOnChange(se){this._onChange=se}registerOnTouched(se){this._onTouched=se}setDisabledState(se){this.disabled=se,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return ie.\u0275fac=function(se){a.$Z()},ie.\u0275dir=a.lG2({type:ie,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[a.qOj]}),ie})(),we=(()=>{class ie extends ae{constructor(se,Me,$e,it,Ke,tt){super(se,Me,$e,it,Ke,tt,"mat-slide-toggle-")}_createChangeEvent(se){return new F(this,se)}_onChangeEvent(se){se.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(se){se.stopPropagation()}focus(se,Me){Me?this._focusMonitor.focusVia(this._inputElement,Me,se):this._inputElement.nativeElement.focus(se)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return ie.\u0275fac=function(se){return new(se||ie)(a.Y36(a.SBq),a.Y36(v.tE),a.Y36(a.sBO),a.$8M("tabindex"),a.Y36(O),a.Y36(a.QbO,8))},ie.\u0275cmp=a.Xpm({type:ie,selectors:[["mat-slide-toggle"]],viewQuery:function(se,Me){if(1&se&&a.Gf(g,5),2&se){let $e;a.iGM($e=a.CRH())&&(Me._inputElement=$e.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(se,Me){2&se&&(a.Ikx("id",Me.id),a.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),a.ekj("mat-checked",Me.checked)("mat-disabled",Me.disabled)("mat-slide-toggle-label-before","before"==Me.labelPosition)("_mat-animation-noopable",Me._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[a._Bn([k]),a.qOj],ngContentSelectors:B,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(se,Me){if(1&se&&(a.F$t(),a.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),a.NdJ("change",function(it){return Me._onChangeEvent(it)})("click",function(it){return Me._onInputClick(it)}),a.qZA(),a.TgZ(5,"span",5),a._UZ(6,"span",6),a.TgZ(7,"span",7),a._UZ(8,"span",8),a.qZA()()(),a.TgZ(9,"span",9,10),a.NdJ("cdkObserveContent",function(){return Me._onLabelTextChange()}),a.TgZ(11,"span",11),a._uU(12,"\xa0"),a.qZA(),a.Hsn(13),a.qZA()()),2&se){const $e=a.MAs(1),it=a.MAs(10);a.uIk("for",Me.inputId),a.xp6(2),a.ekj("mat-slide-toggle-bar-no-side-margin",!it.textContent||!it.textContent.trim()),a.xp6(1),a.Q6J("id",Me.inputId)("required",Me.required)("tabIndex",Me.tabIndex)("checked",Me.checked)("disabled",Me.disabled),a.uIk("name",Me.name)("aria-checked",Me.checked)("aria-label",Me.ariaLabel)("aria-labelledby",Me.ariaLabelledby)("aria-describedby",Me.ariaDescribedby),a.xp6(4),a.Q6J("matRippleTrigger",$e)("matRippleDisabled",Me.disableRipple||Me.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",a.VKq(18,D,Me._noopAnimations?0:150))}},dependencies:[c.wG,i.wD],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0}),ie})(),ge=(()=>{class ie{}return ie.\u0275fac=function(se){return new(se||ie)},ie.\u0275mod=a.oAB({type:ie}),ie.\u0275inj=a.cJS({}),ie})(),W=(()=>{class ie{}return ie.\u0275fac=function(se){return new(se||ie)},ie.\u0275mod=a.oAB({type:ie}),ie.\u0275inj=a.cJS({imports:[ge,c.si,c.BQ,i.Q8,ge,c.BQ]}),ie})()},7314:(Ct,ke,u)=>{"use strict";u.d(ke,{KP:()=>it,pH:()=>W});var i=u(6895),a=u(4650),c=u(3238),v=u(2687),b=u(445),h=u(1281),g=u(9521),D=u(4006),B=u(3353),O=u(2654);const P=["sliderWrapper"],k=(0,B.i$)({passive:!1}),ue={provide:D.JU,useExisting:(0,a.Gpc)(()=>W),multi:!0};class le{}const ge=(0,c.sb)((0,c.pj)((0,c.Id)(class{constructor(Ke){this._elementRef=Ke}}),"accent"));let W=(()=>{class Ke extends ge{constructor(me,Xe,Ae,yt,ft,Yt,Dt,jt){super(me),this._focusMonitor=Xe,this._changeDetectorRef=Ae,this._dir=yt,this._ngZone=Yt,this._animationMode=jt,this._invert=!1,this._max=100,this._min=0,this._step=1,this._thumbLabel=!1,this._tickInterval=0,this._value=null,this._vertical=!1,this.change=new a.vpe,this.input=new a.vpe,this.valueChange=new a.vpe,this.onTouched=()=>{},this._percent=0,this._isSliding=null,this._isActive=!1,this._tickIntervalPercent=0,this._sliderDimensions=null,this._controlValueAccessorChangeFn=()=>{},this._dirChangeSubscription=O.w.EMPTY,this._pointerDown=V=>{this.disabled||this._isSliding||!he(V)&&0!==V.button||this._ngZone.run(()=>{this._touchId=he(V)?function $e(Ke,tt){for(let me=0;me{if("pointer"===this._isSliding){const Ee=se(V,this._touchId);if(Ee){V.cancelable&&V.preventDefault();const oe=this.value;this._lastPointerEvent=V,this._updateValueFromPosition(Ee),oe!=this.value&&this._emitInputEvent()}}},this._pointerUp=V=>{"pointer"===this._isSliding&&(!he(V)||"number"!=typeof this._touchId||Me(V.changedTouches,this._touchId))&&(V.cancelable&&V.preventDefault(),this._removeGlobalEvents(),this._isSliding=null,this._touchId=void 0,this._valueOnSlideStart!=this.value&&!this.disabled&&this._emitChangeEvent(),this._valueOnSlideStart=this._lastPointerEvent=null)},this._windowBlur=()=>{this._lastPointerEvent&&this._pointerUp(this._lastPointerEvent)},this._document=Dt,this.tabIndex=parseInt(ft)||0,Yt.runOutsideAngular(()=>{const V=me.nativeElement;V.addEventListener("mousedown",this._pointerDown,k),V.addEventListener("touchstart",this._pointerDown,k)})}get invert(){return this._invert}set invert(me){this._invert=(0,h.Ig)(me)}get max(){return this._max}set max(me){this._max=(0,h.su)(me,this._max),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get min(){return this._min}set min(me){this._min=(0,h.su)(me,this._min),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get step(){return this._step}set step(me){this._step=(0,h.su)(me,this._step),this._step%1!=0&&(this._roundToDecimal=this._step.toString().split(".").pop().length),this._changeDetectorRef.markForCheck()}get thumbLabel(){return this._thumbLabel}set thumbLabel(me){this._thumbLabel=(0,h.Ig)(me)}get tickInterval(){return this._tickInterval}set tickInterval(me){this._tickInterval="auto"===me?"auto":"number"==typeof me||"string"==typeof me?(0,h.su)(me,this._tickInterval):0}get value(){return null===this._value&&(this.value=this._min),this._value}set value(me){if(me!==this._value){let Xe=(0,h.su)(me,0);this._roundToDecimal&&Xe!==this.min&&Xe!==this.max&&(Xe=parseFloat(Xe.toFixed(this._roundToDecimal))),this._value=Xe,this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}}get vertical(){return this._vertical}set vertical(me){this._vertical=(0,h.Ig)(me)}get displayValue(){return this.displayWith?this.displayWith(this.value):this._roundToDecimal&&this.value&&this.value%1!=0?this.value.toFixed(this._roundToDecimal):this.value||0}focus(me){this._focusHostElement(me)}blur(){this._blurHostElement()}get percent(){return this._clamp(this._percent)}_shouldInvertAxis(){return this.vertical?!this.invert:this.invert}_isMinValue(){return 0===this.percent}_getThumbGap(){return this.disabled?7:this._isMinValue()&&!this.thumbLabel?this._isActive?10:7:0}_getTrackBackgroundStyles(){const Xe=this.vertical?`1, ${1-this.percent}, 1`:1-this.percent+", 1, 1";return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"-":""}${this._getThumbGap()}px) scale3d(${Xe})`}}_getTrackFillStyles(){const me=this.percent,Ae=this.vertical?`1, ${me}, 1`:`${me}, 1, 1`;return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"":"-"}${this._getThumbGap()}px) scale3d(${Ae})`,display:0===me?"none":""}}_getTicksContainerStyles(){return{transform:`translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"-":""}${this._tickIntervalPercent/2*100}%)`}}_getTicksStyles(){let me=100*this._tickIntervalPercent,Yt={backgroundSize:this.vertical?`2px ${me}%`:`${me}% 2px`,transform:`translateZ(0) translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"":"-"}${me/2}%)${this.vertical||"rtl"!=this._getDirection()?"":" rotate(180deg)"}`};if(this._isMinValue()&&this._getThumbGap()){const Dt=this._shouldInvertAxis();let jt;jt=this.vertical?Dt?"Bottom":"Top":Dt?"Right":"Left",Yt[`padding${jt}`]=`${this._getThumbGap()}px`}return Yt}_getThumbContainerStyles(){const me=this._shouldInvertAxis();return{transform:`translate${this.vertical?"Y":"X"}(-${100*(("rtl"!=this._getDirection()||this.vertical?me:!me)?this.percent:1-this.percent)}%)`}}_shouldInvertMouseCoords(){const me=this._shouldInvertAxis();return"rtl"!=this._getDirection()||this.vertical?me:!me}_getDirection(){return this._dir&&"rtl"==this._dir.value?"rtl":"ltr"}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(me=>{this._isActive=!!me&&"keyboard"!==me,this._changeDetectorRef.detectChanges()}),this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(()=>{this._changeDetectorRef.markForCheck()}))}ngOnDestroy(){const me=this._elementRef.nativeElement;me.removeEventListener("mousedown",this._pointerDown,k),me.removeEventListener("touchstart",this._pointerDown,k),this._lastPointerEvent=null,this._removeGlobalEvents(),this._focusMonitor.stopMonitoring(this._elementRef),this._dirChangeSubscription.unsubscribe()}_onMouseenter(){this.disabled||(this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent())}_onFocus(){this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent()}_onBlur(){this.onTouched()}_onKeydown(me){if(this.disabled||(0,g.Vb)(me)||this._isSliding&&"keyboard"!==this._isSliding)return;const Xe=this.value;switch(me.keyCode){case g.Ku:this._increment(10);break;case g.VM:this._increment(-10);break;case g.uR:this.value=this.max;break;case g.Sd:this.value=this.min;break;case g.oh:this._increment("rtl"==this._getDirection()?1:-1);break;case g.LH:this._increment(1);break;case g.SV:this._increment("rtl"==this._getDirection()?-1:1);break;case g.JH:this._increment(-1);break;default:return}Xe!=this.value&&(this._emitInputEvent(),this._emitChangeEvent()),this._isSliding="keyboard",me.preventDefault()}_onKeyup(){"keyboard"===this._isSliding&&(this._isSliding=null)}_getWindow(){return this._document.defaultView||window}_bindGlobalEvents(me){const Xe=this._document,Ae=he(me),ft=Ae?"touchend":"mouseup";Xe.addEventListener(Ae?"touchmove":"mousemove",this._pointerMove,k),Xe.addEventListener(ft,this._pointerUp,k),Ae&&Xe.addEventListener("touchcancel",this._pointerUp,k);const Yt=this._getWindow();typeof Yt<"u"&&Yt&&Yt.addEventListener("blur",this._windowBlur)}_removeGlobalEvents(){const me=this._document;me.removeEventListener("mousemove",this._pointerMove,k),me.removeEventListener("mouseup",this._pointerUp,k),me.removeEventListener("touchmove",this._pointerMove,k),me.removeEventListener("touchend",this._pointerUp,k),me.removeEventListener("touchcancel",this._pointerUp,k);const Xe=this._getWindow();typeof Xe<"u"&&Xe&&Xe.removeEventListener("blur",this._windowBlur)}_increment(me){const Xe=this._clamp(this.value||0,this.min,this.max);this.value=this._clamp(Xe+this.step*me,this.min,this.max)}_updateValueFromPosition(me){if(!this._sliderDimensions)return;let ft=this._clamp(((this.vertical?me.y:me.x)-(this.vertical?this._sliderDimensions.top:this._sliderDimensions.left))/(this.vertical?this._sliderDimensions.height:this._sliderDimensions.width));if(this._shouldInvertMouseCoords()&&(ft=1-ft),0===ft)this.value=this.min;else if(1===ft)this.value=this.max;else{const Yt=this._calculateValue(ft),Dt=Math.round((Yt-this.min)/this.step)*this.step+this.min;this.value=this._clamp(Dt,this.min,this.max)}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.value),this.valueChange.emit(this.value),this.change.emit(this._createChangeEvent())}_emitInputEvent(){this.input.emit(this._createChangeEvent())}_updateTickIntervalPercent(){if(!this.tickInterval||!this._sliderDimensions)return;let me;if("auto"==this.tickInterval){let Xe=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width;me=Math.ceil(30/(Xe*this.step/(this.max-this.min)))*this.step/Xe}else me=this.tickInterval*this.step/(this.max-this.min);this._tickIntervalPercent=ie(me)?me:0}_createChangeEvent(me=this.value){let Xe=new le;return Xe.source=this,Xe.value=me,Xe}_calculatePercentage(me){const Xe=((me||0)-this.min)/(this.max-this.min);return ie(Xe)?Xe:0}_calculateValue(me){return this.min+me*(this.max-this.min)}_clamp(me,Xe=0,Ae=1){return Math.max(Xe,Math.min(me,Ae))}_getSliderDimensions(){return this._sliderWrapper?this._sliderWrapper.nativeElement.getBoundingClientRect():null}_focusHostElement(me){this._elementRef.nativeElement.focus(me)}_blurHostElement(){this._elementRef.nativeElement.blur()}writeValue(me){this.value=me}registerOnChange(me){this._controlValueAccessorChangeFn=me}registerOnTouched(me){this.onTouched=me}setDisabledState(me){this.disabled=me}}return Ke.\u0275fac=function(me){return new(me||Ke)(a.Y36(a.SBq),a.Y36(v.tE),a.Y36(a.sBO),a.Y36(b.Is,8),a.$8M("tabindex"),a.Y36(a.R0b),a.Y36(i.K0),a.Y36(a.QbO,8))},Ke.\u0275cmp=a.Xpm({type:Ke,selectors:[["mat-slider"]],viewQuery:function(me,Xe){if(1&me&&a.Gf(P,5),2&me){let Ae;a.iGM(Ae=a.CRH())&&(Xe._sliderWrapper=Ae.first)}},hostAttrs:["role","slider",1,"mat-slider","mat-focus-indicator"],hostVars:29,hostBindings:function(me,Xe){1&me&&a.NdJ("focus",function(){return Xe._onFocus()})("blur",function(){return Xe._onBlur()})("keydown",function(yt){return Xe._onKeydown(yt)})("keyup",function(){return Xe._onKeyup()})("mouseenter",function(){return Xe._onMouseenter()})("selectstart",function(yt){return yt.preventDefault()}),2&me&&(a.Ikx("tabIndex",Xe.tabIndex),a.uIk("aria-disabled",Xe.disabled)("aria-valuemax",Xe.max)("aria-valuemin",Xe.min)("aria-valuenow",Xe.value)("aria-valuetext",Xe.valueText??Xe.displayValue)("aria-orientation",Xe.vertical?"vertical":"horizontal"),a.ekj("mat-slider-disabled",Xe.disabled)("mat-slider-has-ticks",Xe.tickInterval)("mat-slider-horizontal",!Xe.vertical)("mat-slider-axis-inverted",Xe._shouldInvertAxis())("mat-slider-invert-mouse-coords",Xe._shouldInvertMouseCoords())("mat-slider-sliding",Xe._isSliding)("mat-slider-thumb-label-showing",Xe.thumbLabel)("mat-slider-vertical",Xe.vertical)("mat-slider-min-value",Xe._isMinValue())("mat-slider-hide-last-tick",Xe.disabled||Xe._isMinValue()&&Xe._getThumbGap()&&Xe._shouldInvertAxis())("_mat-animation-noopable","NoopAnimations"===Xe._animationMode))},inputs:{disabled:"disabled",color:"color",tabIndex:"tabIndex",invert:"invert",max:"max",min:"min",step:"step",thumbLabel:"thumbLabel",tickInterval:"tickInterval",value:"value",displayWith:"displayWith",valueText:"valueText",vertical:"vertical"},outputs:{change:"change",input:"input",valueChange:"valueChange"},exportAs:["matSlider"],features:[a._Bn([ue]),a.qOj],decls:13,vars:6,consts:[[1,"mat-slider-wrapper"],["sliderWrapper",""],[1,"mat-slider-track-wrapper"],[1,"mat-slider-track-background",3,"ngStyle"],[1,"mat-slider-track-fill",3,"ngStyle"],[1,"mat-slider-ticks-container",3,"ngStyle"],[1,"mat-slider-ticks",3,"ngStyle"],[1,"mat-slider-thumb-container",3,"ngStyle"],[1,"mat-slider-focus-ring"],[1,"mat-slider-thumb"],[1,"mat-slider-thumb-label"],[1,"mat-slider-thumb-label-text"]],template:function(me,Xe){1&me&&(a.TgZ(0,"div",0,1)(2,"div",2),a._UZ(3,"div",3)(4,"div",4),a.qZA(),a.TgZ(5,"div",5),a._UZ(6,"div",6),a.qZA(),a.TgZ(7,"div",7),a._UZ(8,"div",8)(9,"div",9),a.TgZ(10,"div",10)(11,"span",11),a._uU(12),a.qZA()()()()),2&me&&(a.xp6(3),a.Q6J("ngStyle",Xe._getTrackBackgroundStyles()),a.xp6(1),a.Q6J("ngStyle",Xe._getTrackFillStyles()),a.xp6(1),a.Q6J("ngStyle",Xe._getTicksContainerStyles()),a.xp6(1),a.Q6J("ngStyle",Xe._getTicksStyles()),a.xp6(1),a.Q6J("ngStyle",Xe._getThumbContainerStyles()),a.xp6(5),a.Oqu(Xe.displayValue))},dependencies:[i.PC],styles:['.mat-slider{display:inline-block;position:relative;box-sizing:border-box;padding:8px;outline:none;vertical-align:middle}.mat-slider:not(.mat-slider-disabled):active,.mat-slider.mat-slider-sliding:not(.mat-slider-disabled){cursor:grabbing}.mat-slider-wrapper{-webkit-print-color-adjust:exact;color-adjust:exact;position:absolute}.mat-slider-track-wrapper{position:absolute;top:0;left:0;overflow:hidden}.mat-slider-track-fill{position:absolute;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-track-background{position:absolute;transform-origin:100% 100%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-ticks-container{position:absolute;left:0;top:0;overflow:hidden}.mat-slider-ticks{-webkit-background-clip:content-box;background-clip:content-box;background-repeat:repeat;box-sizing:border-box;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-container{position:absolute;z-index:1;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-focus-ring{position:absolute;width:30px;height:30px;border-radius:50%;transform:scale(0);opacity:0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider.cdk-keyboard-focused .mat-slider-focus-ring,.mat-slider.cdk-program-focused .mat-slider-focus-ring{transform:scale(1);opacity:1}.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb-label,.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb{cursor:grab}.mat-slider-thumb{position:absolute;right:-10px;bottom:-10px;box-sizing:border-box;width:20px;height:20px;border:3px solid rgba(0,0,0,0);border-radius:50%;transform:scale(0.7);transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-label{display:none;align-items:center;justify-content:center;position:absolute;width:28px;height:28px;border-radius:50%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-radius 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.cdk-high-contrast-active .mat-slider-thumb-label{outline:solid 1px}.mat-slider-thumb-label-text{z-index:1;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-sliding .mat-slider-track-fill,.mat-slider-sliding .mat-slider-track-background,.mat-slider-sliding .mat-slider-thumb-container{transition-duration:0ms}.mat-slider-has-ticks .mat-slider-wrapper::after{content:"";position:absolute;border-width:0;border-style:solid;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after,.mat-slider-has-ticks:hover:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after{opacity:1}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-disabled) .mat-slider-ticks,.mat-slider-has-ticks:hover:not(.mat-slider-disabled) .mat-slider-ticks{opacity:1}.mat-slider-thumb-label-showing .mat-slider-focus-ring{display:none}.mat-slider-thumb-label-showing .mat-slider-thumb-label{display:flex}.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:100% 100%}.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:0 0}.mat-slider:not(.mat-slider-disabled).cdk-focused.mat-slider-thumb-label-showing .mat-slider-thumb{transform:scale(0)}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label{border-radius:50% 50% 0}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label-text{opacity:1}.mat-slider:not(.mat-slider-disabled).cdk-mouse-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-touch-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-program-focused .mat-slider-thumb{border-width:2px;transform:scale(1)}.mat-slider-disabled .mat-slider-focus-ring{transform:scale(0);opacity:0}.mat-slider-disabled .mat-slider-thumb{border-width:4px;transform:scale(0.5)}.mat-slider-disabled .mat-slider-thumb-label{display:none}.mat-slider-horizontal{height:48px;min-width:128px}.mat-slider-horizontal .mat-slider-wrapper{height:2px;top:23px;left:8px;right:8px}.mat-slider-horizontal .mat-slider-wrapper::after{height:2px;border-left-width:2px;right:0;top:0}.mat-slider-horizontal .mat-slider-track-wrapper{height:2px;width:100%}.mat-slider-horizontal .mat-slider-track-fill{height:2px;width:100%;transform:scaleX(0)}.mat-slider-horizontal .mat-slider-track-background{height:2px;width:100%;transform:scaleX(1)}.mat-slider-horizontal .mat-slider-ticks-container{height:2px;width:100%}.cdk-high-contrast-active .mat-slider-horizontal .mat-slider-ticks-container{height:0;outline:solid 2px;top:1px}.mat-slider-horizontal .mat-slider-ticks{height:2px;width:100%}.mat-slider-horizontal .mat-slider-thumb-container{width:100%;height:0;top:50%}.mat-slider-horizontal .mat-slider-focus-ring{top:-15px;right:-15px}.mat-slider-horizontal .mat-slider-thumb-label{right:-14px;top:-40px;transform:translateY(26px) scale(0.01) rotate(45deg)}.mat-slider-horizontal .mat-slider-thumb-label-text{transform:rotate(-45deg)}.mat-slider-horizontal.cdk-focused .mat-slider-thumb-label{transform:rotate(45deg)}.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label,.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label-text{transform:none}.mat-slider-vertical{width:48px;min-height:128px}.mat-slider-vertical .mat-slider-wrapper{width:2px;top:8px;bottom:8px;left:23px}.mat-slider-vertical .mat-slider-wrapper::after{width:2px;border-top-width:2px;bottom:0;left:0}.mat-slider-vertical .mat-slider-track-wrapper{height:100%;width:2px}.mat-slider-vertical .mat-slider-track-fill{height:100%;width:2px;transform:scaleY(0)}.mat-slider-vertical .mat-slider-track-background{height:100%;width:2px;transform:scaleY(1)}.mat-slider-vertical .mat-slider-ticks-container{width:2px;height:100%}.cdk-high-contrast-active .mat-slider-vertical .mat-slider-ticks-container{width:0;outline:solid 2px;left:1px}.mat-slider-vertical .mat-slider-focus-ring{bottom:-15px;left:-15px}.mat-slider-vertical .mat-slider-ticks{width:2px;height:100%}.mat-slider-vertical .mat-slider-thumb-container{height:100%;width:0;left:50%}.mat-slider-vertical .mat-slider-thumb{-webkit-backface-visibility:hidden;backface-visibility:hidden}.mat-slider-vertical .mat-slider-thumb-label{bottom:-14px;left:-40px;transform:translateX(26px) scale(0.01) rotate(-45deg)}.mat-slider-vertical .mat-slider-thumb-label-text{transform:rotate(45deg)}.mat-slider-vertical.cdk-focused .mat-slider-thumb-label{transform:rotate(-45deg)}[dir=rtl] .mat-slider-wrapper::after{left:0;right:auto}[dir=rtl] .mat-slider-horizontal .mat-slider-track-fill{transform-origin:100% 100%}[dir=rtl] .mat-slider-horizontal .mat-slider-track-background{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:100% 100%}.mat-slider._mat-animation-noopable .mat-slider-track-fill,.mat-slider._mat-animation-noopable .mat-slider-track-background,.mat-slider._mat-animation-noopable .mat-slider-ticks,.mat-slider._mat-animation-noopable .mat-slider-thumb-container,.mat-slider._mat-animation-noopable .mat-slider-focus-ring,.mat-slider._mat-animation-noopable .mat-slider-thumb,.mat-slider._mat-animation-noopable .mat-slider-thumb-label,.mat-slider._mat-animation-noopable .mat-slider-thumb-label-text,.mat-slider._mat-animation-noopable .mat-slider-has-ticks .mat-slider-wrapper::after{transition:none}'],encapsulation:2,changeDetection:0}),Ke})();function ie(Ke){return!isNaN(Ke)&&isFinite(Ke)}function he(Ke){return"t"===Ke.type[0]}function se(Ke,tt){let me;return me=he(Ke)?"number"==typeof tt?Me(Ke.touches,tt)||Me(Ke.changedTouches,tt):Ke.touches[0]||Ke.changedTouches[0]:Ke,me?{x:me.clientX,y:me.clientY}:void 0}function Me(Ke,tt){for(let me=0;me{class Ke{}return Ke.\u0275fac=function(me){return new(me||Ke)},Ke.\u0275mod=a.oAB({type:Ke}),Ke.\u0275inj=a.cJS({imports:[i.ez,c.BQ,c.BQ]}),Ke})()},7009:(Ct,ke,u)=>{"use strict";u.d(ke,{ZX:()=>Me,ux:()=>tt});var i=u(8184),a=u(4080),c=u(6895),v=u(4650),b=u(3238),h=u(4859),g=u(8929),D=u(3353),B=u(2986),O=u(7625),P=u(7340),k=u(2687),F=u(2289);function z(me,Xe){if(1&me){const Ae=v.EpF();v.TgZ(0,"div",2)(1,"button",3),v.NdJ("click",function(){v.CHM(Ae);const ft=v.oxw();return v.KtG(ft.action())}),v._uU(2),v.qZA()()}if(2&me){const Ae=v.oxw();v.xp6(2),v.Oqu(Ae.data.action)}}function ae(me,Xe){}const we=new v.OlP("MatSnackBarData");class ue{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const le=Math.pow(2,31)-1;class ge{constructor(Xe,Ae){this._overlayRef=Ae,this._afterDismissed=new g.xQ,this._afterOpened=new g.xQ,this._onAction=new g.xQ,this._dismissedByAction=!1,this.containerInstance=Xe,Xe._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(Xe){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(Xe,le))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let W=(()=>{class me{constructor(Ae,yt){this.snackBarRef=Ae,this.data=yt}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return me.\u0275fac=function(Ae){return new(Ae||me)(v.Y36(ge),v.Y36(we))},me.\u0275cmp=v.Xpm({type:me,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(Ae,yt){1&Ae&&(v.TgZ(0,"span",0),v._uU(1),v.qZA(),v.YNc(2,z,3,1,"div",1)),2&Ae&&(v.xp6(1),v.Oqu(yt.data.message),v.xp6(1),v.Q6J("ngIf",yt.hasAction))},dependencies:[c.O5,h.lW],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0}),me})();const ie={snackBarState:(0,P.X$)("state",[(0,P.SB)("void, hidden",(0,P.oB)({transform:"scale(0.8)",opacity:0})),(0,P.SB)("visible",(0,P.oB)({transform:"scale(1)",opacity:1})),(0,P.eR)("* => visible",(0,P.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,P.eR)("* => void, * => hidden",(0,P.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,P.oB)({opacity:0})))])};let he=(()=>{class me extends a.en{constructor(Ae,yt,ft,Yt,Dt){super(),this._ngZone=Ae,this._elementRef=yt,this._changeDetectorRef=ft,this._platform=Yt,this.snackBarConfig=Dt,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new g.xQ,this._onExit=new g.xQ,this._onEnter=new g.xQ,this._animationState="void",this.attachDomPortal=jt=>{this._assertNotAttached();const V=this._portalOutlet.attachDomPortal(jt);return this._afterPortalAttached(),V},this._live="assertive"!==Dt.politeness||Dt.announcementMessage?"off"===Dt.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(Ae){this._assertNotAttached();const yt=this._portalOutlet.attachComponentPortal(Ae);return this._afterPortalAttached(),yt}attachTemplatePortal(Ae){this._assertNotAttached();const yt=this._portalOutlet.attachTemplatePortal(Ae);return this._afterPortalAttached(),yt}onAnimationEnd(Ae){const{fromState:yt,toState:ft}=Ae;if(("void"===ft&&"void"!==yt||"hidden"===ft)&&this._completeExit(),"visible"===ft){const Yt=this._onEnter;this._ngZone.run(()=>{Yt.next(),Yt.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,B.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const Ae=this._elementRef.nativeElement,yt=this.snackBarConfig.panelClass;yt&&(Array.isArray(yt)?yt.forEach(ft=>Ae.classList.add(ft)):Ae.classList.add(yt))}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const Ae=this._elementRef.nativeElement.querySelector("[aria-hidden]"),yt=this._elementRef.nativeElement.querySelector("[aria-live]");if(Ae&&yt){let ft=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&Ae.contains(document.activeElement)&&(ft=document.activeElement),Ae.removeAttribute("aria-hidden"),yt.appendChild(Ae),ft?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return me.\u0275fac=function(Ae){return new(Ae||me)(v.Y36(v.R0b),v.Y36(v.SBq),v.Y36(v.sBO),v.Y36(D.t4),v.Y36(ue))},me.\u0275dir=v.lG2({type:me,viewQuery:function(Ae,yt){if(1&Ae&&v.Gf(a.Pl,7),2&Ae){let ft;v.iGM(ft=v.CRH())&&(yt._portalOutlet=ft.first)}},features:[v.qOj]}),me})(),se=(()=>{class me extends he{_afterPortalAttached(){super._afterPortalAttached(),"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")}}return me.\u0275fac=function(){let Xe;return function(yt){return(Xe||(Xe=v.n5z(me)))(yt||me)}}(),me.\u0275cmp=v.Xpm({type:me,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(Ae,yt){1&Ae&&v.WFA("@state.done",function(Yt){return yt.onAnimationEnd(Yt)}),2&Ae&&v.d8E("@state",yt._animationState)},features:[v.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(Ae,yt){1&Ae&&(v.TgZ(0,"div",0),v.YNc(1,ae,0,0,"ng-template",1),v.qZA(),v._UZ(2,"div")),2&Ae&&(v.xp6(2),v.uIk("aria-live",yt._live)("role",yt._role))},dependencies:[a.Pl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],encapsulation:2,data:{animation:[ie.snackBarState]}}),me})(),Me=(()=>{class me{}return me.\u0275fac=function(Ae){return new(Ae||me)},me.\u0275mod=v.oAB({type:me}),me.\u0275inj=v.cJS({imports:[i.U8,a.eL,c.ez,h.ot,b.BQ,b.BQ]}),me})();const $e=new v.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function it(){return new ue}});let Ke=(()=>{class me{constructor(Ae,yt,ft,Yt,Dt,jt){this._overlay=Ae,this._live=yt,this._injector=ft,this._breakpointObserver=Yt,this._parentSnackBar=Dt,this._defaultConfig=jt,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const Ae=this._parentSnackBar;return Ae?Ae._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(Ae){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=Ae:this._snackBarRefAtThisLevel=Ae}openFromComponent(Ae,yt){return this._attach(Ae,yt)}openFromTemplate(Ae,yt){return this._attach(Ae,yt)}open(Ae,yt="",ft){const Yt={...this._defaultConfig,...ft};return Yt.data={message:Ae,action:yt},Yt.announcementMessage===Ae&&(Yt.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,Yt)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(Ae,yt){const Yt=v.zs3.create({parent:yt&&yt.viewContainerRef&&yt.viewContainerRef.injector||this._injector,providers:[{provide:ue,useValue:yt}]}),Dt=new a.C5(this.snackBarContainerComponent,yt.viewContainerRef,Yt),jt=Ae.attach(Dt);return jt.instance.snackBarConfig=yt,jt.instance}_attach(Ae,yt){const ft={...new ue,...this._defaultConfig,...yt},Yt=this._createOverlay(ft),Dt=this._attachSnackBarContainer(Yt,ft),jt=new ge(Dt,Yt);if(Ae instanceof v.Rgc){const V=new a.UE(Ae,null,{$implicit:ft.data,snackBarRef:jt});jt.instance=Dt.attachTemplatePortal(V)}else{const V=this._createInjector(ft,jt),Ee=new a.C5(Ae,void 0,V),oe=Dt.attachComponentPortal(Ee);jt.instance=oe.instance}return this._breakpointObserver.observe(F.u3.HandsetPortrait).pipe((0,O.R)(Yt.detachments())).subscribe(V=>{Yt.overlayElement.classList.toggle(this.handsetCssClass,V.matches)}),ft.announcementMessage&&Dt._onAnnounce.subscribe(()=>{this._live.announce(ft.announcementMessage,ft.politeness)}),this._animateSnackBar(jt,ft),this._openedSnackBarRef=jt,this._openedSnackBarRef}_animateSnackBar(Ae,yt){Ae.afterDismissed().subscribe(()=>{this._openedSnackBarRef==Ae&&(this._openedSnackBarRef=null),yt.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{Ae.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):Ae.containerInstance.enter(),yt.duration&&yt.duration>0&&Ae.afterOpened().subscribe(()=>Ae._dismissAfter(yt.duration))}_createOverlay(Ae){const yt=new i.X_;yt.direction=Ae.direction;let ft=this._overlay.position().global();const Yt="rtl"===Ae.direction,Dt="left"===Ae.horizontalPosition||"start"===Ae.horizontalPosition&&!Yt||"end"===Ae.horizontalPosition&&Yt,jt=!Dt&&"center"!==Ae.horizontalPosition;return Dt?ft.left("0"):jt?ft.right("0"):ft.centerHorizontally(),"top"===Ae.verticalPosition?ft.top("0"):ft.bottom("0"),yt.positionStrategy=ft,this._overlay.create(yt)}_createInjector(Ae,yt){return v.zs3.create({parent:Ae&&Ae.viewContainerRef&&Ae.viewContainerRef.injector||this._injector,providers:[{provide:ge,useValue:yt},{provide:we,useValue:Ae.data}]})}}return me.\u0275fac=function(Ae){return new(Ae||me)(v.LFG(i.aV),v.LFG(k.Kd),v.LFG(v.zs3),v.LFG(F.Yg),v.LFG(me,12),v.LFG($e))},me.\u0275prov=v.Yz7({token:me,factory:me.\u0275fac}),me})(),tt=(()=>{class me extends Ke{constructor(Ae,yt,ft,Yt,Dt,jt){super(Ae,yt,ft,Yt,Dt,jt),this.simpleSnackBarComponent=W,this.snackBarContainerComponent=se,this.handsetCssClass="mat-snack-bar-handset"}}return me.\u0275fac=function(Ae){return new(Ae||me)(v.LFG(i.aV),v.LFG(k.Kd),v.LFG(v.zs3),v.LFG(F.Yg),v.LFG(me,12),v.LFG($e))},me.\u0275prov=v.Yz7({token:me,factory:me.\u0275fac,providedIn:Me}),me})()},6308:(Ct,ke,u)=>{"use strict";u.d(ke,{JX:()=>tt,YE:()=>ge,nU:()=>Ke});var i=u(4650),a=u(2687),c=u(1281),v=u(9521),b=u(3238),h=u(8929),g=u(6787),D=u(7340),B=u(6895);const O=["mat-sort-header",""];function P(me,Xe){if(1&me){const Ae=i.EpF();i.TgZ(0,"div",3),i.NdJ("@arrowPosition.start",function(){i.CHM(Ae);const ft=i.oxw();return i.KtG(ft._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){i.CHM(Ae);const ft=i.oxw();return i.KtG(ft._disableViewStateAnimation=!1)}),i._UZ(1,"div",4),i.TgZ(2,"div",5),i._UZ(3,"div",6)(4,"div",7)(5,"div",8),i.qZA()()}if(2&me){const Ae=i.oxw();i.Q6J("@arrowOpacity",Ae._getArrowViewState())("@arrowPosition",Ae._getArrowViewState())("@allowChildren",Ae._getArrowDirectionState()),i.xp6(2),i.Q6J("@indicator",Ae._getArrowDirectionState()),i.xp6(1),i.Q6J("@leftPointer",Ae._getArrowDirectionState()),i.xp6(1),i.Q6J("@rightPointer",Ae._getArrowDirectionState())}}const k=["*"],ue=new i.OlP("MAT_SORT_DEFAULT_OPTIONS"),le=(0,b.dB)((0,b.Id)(class{}));let ge=(()=>{class me extends le{constructor(Ae){super(),this._defaultOptions=Ae,this.sortables=new Map,this._stateChanges=new h.xQ,this.start="asc",this._direction="",this.sortChange=new i.vpe}get direction(){return this._direction}set direction(Ae){this._direction=Ae}get disableClear(){return this._disableClear}set disableClear(Ae){this._disableClear=(0,c.Ig)(Ae)}register(Ae){this.sortables.set(Ae.id,Ae)}deregister(Ae){this.sortables.delete(Ae.id)}sort(Ae){this.active!=Ae.id?(this.active=Ae.id,this.direction=Ae.start?Ae.start:this.start):this.direction=this.getNextSortDirection(Ae),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(Ae){if(!Ae)return"";let ft=function W(me,Xe){let Ae=["asc","desc"];return"desc"==me&&Ae.reverse(),Xe||Ae.push(""),Ae}(Ae.start||this.start,Ae?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),Yt=ft.indexOf(this.direction)+1;return Yt>=ft.length&&(Yt=0),ft[Yt]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return me.\u0275fac=function(Ae){return new(Ae||me)(i.Y36(ue,8))},me.\u0275dir=i.lG2({type:me,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[i.qOj,i.TTD]}),me})();const ie=b.mZ.ENTERING+" "+b.yN.STANDARD_CURVE,he={indicator:(0,D.X$)("indicator",[(0,D.SB)("active-asc, asc",(0,D.oB)({transform:"translateY(0px)"})),(0,D.SB)("active-desc, desc",(0,D.oB)({transform:"translateY(10px)"})),(0,D.eR)("active-asc <=> active-desc",(0,D.jt)(ie))]),leftPointer:(0,D.X$)("leftPointer",[(0,D.SB)("active-asc, asc",(0,D.oB)({transform:"rotate(-45deg)"})),(0,D.SB)("active-desc, desc",(0,D.oB)({transform:"rotate(45deg)"})),(0,D.eR)("active-asc <=> active-desc",(0,D.jt)(ie))]),rightPointer:(0,D.X$)("rightPointer",[(0,D.SB)("active-asc, asc",(0,D.oB)({transform:"rotate(45deg)"})),(0,D.SB)("active-desc, desc",(0,D.oB)({transform:"rotate(-45deg)"})),(0,D.eR)("active-asc <=> active-desc",(0,D.jt)(ie))]),arrowOpacity:(0,D.X$)("arrowOpacity",[(0,D.SB)("desc-to-active, asc-to-active, active",(0,D.oB)({opacity:1})),(0,D.SB)("desc-to-hint, asc-to-hint, hint",(0,D.oB)({opacity:.54})),(0,D.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,D.oB)({opacity:0})),(0,D.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,D.jt)("0ms")),(0,D.eR)("* <=> *",(0,D.jt)(ie))]),arrowPosition:(0,D.X$)("arrowPosition",[(0,D.eR)("* => desc-to-hint, * => desc-to-active",(0,D.jt)(ie,(0,D.F4)([(0,D.oB)({transform:"translateY(-25%)"}),(0,D.oB)({transform:"translateY(0)"})]))),(0,D.eR)("* => hint-to-desc, * => active-to-desc",(0,D.jt)(ie,(0,D.F4)([(0,D.oB)({transform:"translateY(0)"}),(0,D.oB)({transform:"translateY(25%)"})]))),(0,D.eR)("* => asc-to-hint, * => asc-to-active",(0,D.jt)(ie,(0,D.F4)([(0,D.oB)({transform:"translateY(25%)"}),(0,D.oB)({transform:"translateY(0)"})]))),(0,D.eR)("* => hint-to-asc, * => active-to-asc",(0,D.jt)(ie,(0,D.F4)([(0,D.oB)({transform:"translateY(0)"}),(0,D.oB)({transform:"translateY(-25%)"})]))),(0,D.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,D.oB)({transform:"translateY(0)"})),(0,D.SB)("hint-to-desc, active-to-desc, desc",(0,D.oB)({transform:"translateY(-25%)"})),(0,D.SB)("hint-to-asc, active-to-asc, asc",(0,D.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,D.X$)("allowChildren",[(0,D.eR)("* <=> *",[(0,D.IO)("@*",(0,D.pV)(),{optional:!0})])])};let se=(()=>{class me{constructor(){this.changes=new h.xQ}}return me.\u0275fac=function(Ae){return new(Ae||me)},me.\u0275prov=i.Yz7({token:me,factory:me.\u0275fac,providedIn:"root"}),me})();const $e={provide:se,deps:[[new i.FiY,new i.tp0,se]],useFactory:function Me(me){return me||new se}},it=(0,b.Id)(class{});let Ke=(()=>{class me extends it{constructor(Ae,yt,ft,Yt,Dt,jt,V,Ee){super(),this._intl=Ae,this._changeDetectorRef=yt,this._sort=ft,this._columnDef=Yt,this._focusMonitor=Dt,this._elementRef=jt,this._ariaDescriber=V,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",Ee?.arrowPosition&&(this.arrowPosition=Ee?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(Ae){this._updateSortActionDescription(Ae)}get disableClear(){return this._disableClear}set disableClear(Ae){this._disableClear=(0,c.Ig)(Ae)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(Ae=>{const yt=!!Ae;yt!==this._showIndicatorHint&&(this._setIndicatorHintVisible(yt),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(Ae){this._isDisabled()&&Ae||(this._showIndicatorHint=Ae,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(Ae){this._viewState=Ae||{},this._disableViewStateAnimation&&(this._viewState={toState:Ae.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(Ae){!this._isDisabled()&&(Ae.keyCode===v.L_||Ae.keyCode===v.K5)&&(Ae.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const Ae=this._viewState.fromState;return(Ae?`${Ae}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(Ae){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,Ae)),this._sortActionDescription=Ae}_handleStateChanges(){this._rerenderSubscription=(0,g.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return me.\u0275fac=function(Ae){return new(Ae||me)(i.Y36(se),i.Y36(i.sBO),i.Y36(ge,8),i.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),i.Y36(a.tE),i.Y36(i.SBq),i.Y36(a.$s,8),i.Y36(ue,8))},me.\u0275cmp=i.Xpm({type:me,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(Ae,yt){1&Ae&&i.NdJ("click",function(){return yt._handleClick()})("keydown",function(Yt){return yt._handleKeydown(Yt)})("mouseenter",function(){return yt._setIndicatorHintVisible(!0)})("mouseleave",function(){return yt._setIndicatorHintVisible(!1)}),2&Ae&&(i.uIk("aria-sort",yt._getAriaSortAttribute()),i.ekj("mat-sort-header-disabled",yt._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[i.qOj],attrs:O,ngContentSelectors:k,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(Ae,yt){1&Ae&&(i.F$t(),i.TgZ(0,"div",0)(1,"div",1),i.Hsn(2),i.qZA(),i.YNc(3,P,6,6,"div",2),i.qZA()),2&Ae&&(i.ekj("mat-sort-header-sorted",yt._isSorted())("mat-sort-header-position-before","before"===yt.arrowPosition),i.uIk("tabindex",yt._isDisabled()?null:0)("role",yt._isDisabled()?null:"button"),i.xp6(3),i.Q6J("ngIf",yt._renderArrow()))},dependencies:[B.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[he.indicator,he.leftPointer,he.rightPointer,he.arrowOpacity,he.arrowPosition,he.allowChildren]},changeDetection:0}),me})(),tt=(()=>{class me{}return me.\u0275fac=function(Ae){return new(Ae||me)},me.\u0275mod=i.oAB({type:me}),me.\u0275inj=i.cJS({providers:[$e],imports:[B.ez,b.BQ]}),me})()},2143:(Ct,ke,u)=>{"use strict";u.d(ke,{ev:()=>qt,Dz:()=>st,w1:()=>an,ge:()=>We,fO:()=>ut,XQ:()=>Rt,as:()=>Ut,Gk:()=>ct,nj:()=>bn,BZ:()=>wt,by:()=>qn,p0:()=>kn});var i=u(4650),a=u(445),c=u(1281),v=u(5017),b=u(3353),h=u(2744),g=u(6895),D=u(8929),B=u(5254),O=u(591),P=u(6498),F=u(1086),z=u(7625),ae=u(2986);const we=[[["caption"]],[["colgroup"],["col"]]],ue=["caption","colgroup, col"];function W(Ne){return class extends Ne{constructor(...fe){super(...fe),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(fe){const re=this._sticky;this._sticky=(0,c.Ig)(fe),this._hasStickyChanged=re!==this._sticky}hasStickyChanged(){const fe=this._hasStickyChanged;return this._hasStickyChanged=!1,fe}resetStickyChanged(){this._hasStickyChanged=!1}}}const ie=new i.OlP("CDK_TABLE");let se=(()=>{class Ne{constructor(re){this.template=re}}return Ne.\u0275fac=function(re){return new(re||Ne)(i.Y36(i.Rgc))},Ne.\u0275dir=i.lG2({type:Ne,selectors:[["","cdkCellDef",""]]}),Ne})(),Me=(()=>{class Ne{constructor(re){this.template=re}}return Ne.\u0275fac=function(re){return new(re||Ne)(i.Y36(i.Rgc))},Ne.\u0275dir=i.lG2({type:Ne,selectors:[["","cdkHeaderCellDef",""]]}),Ne})(),$e=(()=>{class Ne{constructor(re){this.template=re}}return Ne.\u0275fac=function(re){return new(re||Ne)(i.Y36(i.Rgc))},Ne.\u0275dir=i.lG2({type:Ne,selectors:[["","cdkFooterCellDef",""]]}),Ne})();class it{}const Ke=W(it);let tt=(()=>{class Ne extends Ke{constructor(re){super(),this._table=re,this._stickyEnd=!1}get name(){return this._name}set name(re){this._setNameInput(re)}get stickyEnd(){return this._stickyEnd}set stickyEnd(re){const Se=this._stickyEnd;this._stickyEnd=(0,c.Ig)(re),this._hasStickyChanged=Se!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(re){re&&(this._name=re,this.cssClassFriendlyName=re.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return Ne.\u0275fac=function(re){return new(re||Ne)(i.Y36(ie,8))},Ne.\u0275dir=i.lG2({type:Ne,selectors:[["","cdkColumnDef",""]],contentQueries:function(re,Se,gt){if(1&re&&(i.Suo(gt,se,5),i.Suo(gt,Me,5),i.Suo(gt,$e,5)),2&re){let Gt;i.iGM(Gt=i.CRH())&&(Se.cell=Gt.first),i.iGM(Gt=i.CRH())&&(Se.headerCell=Gt.first),i.iGM(Gt=i.CRH())&&(Se.footerCell=Gt.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[i._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Ne}]),i.qOj]}),Ne})();class me{constructor(fe,re){re.nativeElement.classList.add(...fe._columnCssClassName)}}let Xe=(()=>{class Ne extends me{constructor(re,Se){super(re,Se)}}return Ne.\u0275fac=function(re){return new(re||Ne)(i.Y36(tt),i.Y36(i.SBq))},Ne.\u0275dir=i.lG2({type:Ne,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[i.qOj]}),Ne})(),yt=(()=>{class Ne extends me{constructor(re,Se){if(super(re,Se),1===re._table?._elementRef.nativeElement.nodeType){const gt=re._table._elementRef.nativeElement.getAttribute("role");Se.nativeElement.setAttribute("role","grid"===gt||"treegrid"===gt?"gridcell":"cell")}}}return Ne.\u0275fac=function(re){return new(re||Ne)(i.Y36(tt),i.Y36(i.SBq))},Ne.\u0275dir=i.lG2({type:Ne,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[i.qOj]}),Ne})();class ft{constructor(){this.tasks=[],this.endTasks=[]}}const Yt=new i.OlP("_COALESCED_STYLE_SCHEDULER");let Dt=(()=>{class Ne{constructor(re){this._ngZone=re,this._currentSchedule=null,this._destroyed=new D.xQ}schedule(re){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(re)}scheduleEnd(re){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(re)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new ft,this._getScheduleObservable().pipe((0,z.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const re=this._currentSchedule;this._currentSchedule=new ft;for(const Se of re.tasks)Se();for(const Se of re.endTasks)Se()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,B.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,ae.q)(1))}}return Ne.\u0275fac=function(re){return new(re||Ne)(i.LFG(i.R0b))},Ne.\u0275prov=i.Yz7({token:Ne,factory:Ne.\u0275fac}),Ne})(),V=(()=>{class Ne{constructor(re,Se){this.template=re,this._differs=Se}ngOnChanges(re){if(!this._columnsDiffer){const Se=re.columns&&re.columns.currentValue||[];this._columnsDiffer=this._differs.find(Se).create(),this._columnsDiffer.diff(Se)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(re){return this instanceof _e?re.headerCell.template:this instanceof be?re.footerCell.template:re.cell.template}}return Ne.\u0275fac=function(re){return new(re||Ne)(i.Y36(i.Rgc),i.Y36(i.ZZ4))},Ne.\u0275dir=i.lG2({type:Ne,features:[i.TTD]}),Ne})();class Ee extends V{}const oe=W(Ee);let _e=(()=>{class Ne extends oe{constructor(re,Se,gt){super(re,Se),this._table=gt}ngOnChanges(re){super.ngOnChanges(re)}}return Ne.\u0275fac=function(re){return new(re||Ne)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(ie,8))},Ne.\u0275dir=i.lG2({type:Ne,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),Ne})();class Oe extends V{}const lt=W(Oe);let be=(()=>{class Ne extends lt{constructor(re,Se,gt){super(re,Se),this._table=gt}ngOnChanges(re){super.ngOnChanges(re)}}return Ne.\u0275fac=function(re){return new(re||Ne)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(ie,8))},Ne.\u0275dir=i.lG2({type:Ne,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),Ne})(),et=(()=>{class Ne extends V{constructor(re,Se,gt){super(re,Se),this._table=gt}}return Ne.\u0275fac=function(re){return new(re||Ne)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(ie,8))},Ne.\u0275dir=i.lG2({type:Ne,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[i.qOj]}),Ne})(),Mt=(()=>{class Ne{constructor(re){this._viewContainer=re,Ne.mostRecentCellOutlet=this}ngOnDestroy(){Ne.mostRecentCellOutlet===this&&(Ne.mostRecentCellOutlet=null)}}return Ne.mostRecentCellOutlet=null,Ne.\u0275fac=function(re){return new(re||Ne)(i.Y36(i.s_b))},Ne.\u0275dir=i.lG2({type:Ne,selectors:[["","cdkCellOutlet",""]]}),Ne})(),_t=(()=>{class Ne{}return Ne.\u0275fac=function(re){return new(re||Ne)},Ne.\u0275cmp=i.Xpm({type:Ne,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(re,Se){1&re&&i.GkF(0,0)},dependencies:[Mt],encapsulation:2}),Ne})(),at=(()=>{class Ne{}return Ne.\u0275fac=function(re){return new(re||Ne)},Ne.\u0275cmp=i.Xpm({type:Ne,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(re,Se){1&re&&i.GkF(0,0)},dependencies:[Mt],encapsulation:2}),Ne})(),nt=(()=>{class Ne{constructor(re){this.templateRef=re,this._contentClassName="cdk-no-data-row"}}return Ne.\u0275fac=function(re){return new(re||Ne)(i.Y36(i.Rgc))},Ne.\u0275dir=i.lG2({type:Ne,selectors:[["ng-template","cdkNoDataRow",""]]}),Ne})();const Q=["top","bottom","left","right"];class Le{constructor(fe,re,Se,gt,Gt=!0,rn=!0,Tn){this._isNativeHtmlTable=fe,this._stickCellCss=re,this.direction=Se,this._coalescedStyleScheduler=gt,this._isBrowser=Gt,this._needsPositionStickyOnElement=rn,this._positionListener=Tn,this._cachedCellWidths=[],this._borderCellCss={top:`${re}-border-elem-top`,bottom:`${re}-border-elem-bottom`,left:`${re}-border-elem-left`,right:`${re}-border-elem-right`}}clearStickyPositioning(fe,re){const Se=[];for(const gt of fe)if(gt.nodeType===gt.ELEMENT_NODE){Se.push(gt);for(let Gt=0;Gt{for(const gt of Se)this._removeStickyStyle(gt,re)})}updateStickyColumns(fe,re,Se,gt=!0){if(!fe.length||!this._isBrowser||!re.some(jn=>jn)&&!Se.some(jn=>jn))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const Gt=fe[0],rn=Gt.children.length,Tn=this._getCellWidths(Gt,gt),En=this._getStickyStartColumnPositions(Tn,re),ci=this._getStickyEndColumnPositions(Tn,Se),An=re.lastIndexOf(!0),ni=Se.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const jn="rtl"===this.direction,ui=jn?"right":"left",zn=jn?"left":"right";for(const si of fe)for(let Ln=0;Lnre[Ln]?si:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===ni?[]:Tn.slice(ni).map((si,Ln)=>Se[Ln+ni]?si:null).reverse()}))})}stickRows(fe,re,Se){if(!this._isBrowser)return;const gt="bottom"===Se?fe.slice().reverse():fe,Gt="bottom"===Se?re.slice().reverse():re,rn=[],Tn=[],En=[];for(let An=0,ni=0;An{for(let An=0;An{re.some(gt=>!gt)?this._removeStickyStyle(Se,["bottom"]):this._addStickyStyle(Se,"bottom",0,!1)})}_removeStickyStyle(fe,re){for(const gt of re)fe.style[gt]="",fe.classList.remove(this._borderCellCss[gt]);Q.some(gt=>-1===re.indexOf(gt)&&fe.style[gt])?fe.style.zIndex=this._getCalculatedZIndex(fe):(fe.style.zIndex="",this._needsPositionStickyOnElement&&(fe.style.position=""),fe.classList.remove(this._stickCellCss))}_addStickyStyle(fe,re,Se,gt){fe.classList.add(this._stickCellCss),gt&&fe.classList.add(this._borderCellCss[re]),fe.style[re]=`${Se}px`,fe.style.zIndex=this._getCalculatedZIndex(fe),this._needsPositionStickyOnElement&&(fe.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(fe){const re={top:100,bottom:10,left:1,right:1};let Se=0;for(const gt of Q)fe.style[gt]&&(Se+=re[gt]);return Se?`${Se}`:""}_getCellWidths(fe,re=!0){if(!re&&this._cachedCellWidths.length)return this._cachedCellWidths;const Se=[],gt=fe.children;for(let Gt=0;Gt0;Gt--)re[Gt]&&(Se[Gt]=gt,gt+=fe[Gt]);return Se}}const de=new i.OlP("CDK_SPL");let H=(()=>{class Ne{constructor(re,Se){this.viewContainer=re,this.elementRef=Se}}return Ne.\u0275fac=function(re){return new(re||Ne)(i.Y36(i.s_b),i.Y36(i.SBq))},Ne.\u0275dir=i.lG2({type:Ne,selectors:[["","rowOutlet",""]]}),Ne})(),f=(()=>{class Ne{constructor(re,Se){this.viewContainer=re,this.elementRef=Se}}return Ne.\u0275fac=function(re){return new(re||Ne)(i.Y36(i.s_b),i.Y36(i.SBq))},Ne.\u0275dir=i.lG2({type:Ne,selectors:[["","headerRowOutlet",""]]}),Ne})(),_=(()=>{class Ne{constructor(re,Se){this.viewContainer=re,this.elementRef=Se}}return Ne.\u0275fac=function(re){return new(re||Ne)(i.Y36(i.s_b),i.Y36(i.SBq))},Ne.\u0275dir=i.lG2({type:Ne,selectors:[["","footerRowOutlet",""]]}),Ne})(),T=(()=>{class Ne{constructor(re,Se){this.viewContainer=re,this.elementRef=Se}}return Ne.\u0275fac=function(re){return new(re||Ne)(i.Y36(i.s_b),i.Y36(i.SBq))},Ne.\u0275dir=i.lG2({type:Ne,selectors:[["","noDataRowOutlet",""]]}),Ne})(),ze=(()=>{class Ne{constructor(re,Se,gt,Gt,rn,Tn,En,ci,An,ni,jn,ui){this._differs=re,this._changeDetectorRef=Se,this._elementRef=gt,this._dir=rn,this._platform=En,this._viewRepeater=ci,this._coalescedStyleScheduler=An,this._viewportRuler=ni,this._stickyPositioningListener=jn,this._ngZone=ui,this._onDestroy=new D.xQ,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new i.vpe,this.viewChange=new O.X({start:0,end:Number.MAX_VALUE}),Gt||this._elementRef.nativeElement.setAttribute("role","table"),this._document=Tn,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(re){this._trackByFn=re}get dataSource(){return this._dataSource}set dataSource(re){this._dataSource!==re&&this._switchDataSource(re)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(re){this._multiTemplateDataRows=(0,c.Ig)(re),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(re){this._fixedLayout=(0,c.Ig)(re),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((re,Se)=>this.trackBy?this.trackBy(Se.dataIndex,Se.data):Se),this._viewportRuler.change().pipe((0,z.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const Se=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||Se,this._forceRecalculateCellWidths=Se,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(re=>{re.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,v.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const re=this._dataDiffer.diff(this._renderRows);if(!re)return this._updateNoDataRow(),void this.contentChanged.next();const Se=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(re,Se,(gt,Gt,rn)=>this._getEmbeddedViewArgs(gt.item,rn),gt=>gt.item.data,gt=>{1===gt.operation&>.context&&this._renderCellTemplateForItem(gt.record.item.rowDef,gt.context)}),this._updateRowIndexContext(),re.forEachIdentityChange(gt=>{Se.get(gt.currentIndex).context.$implicit=gt.item.data}),this._updateNoDataRow(),this._ngZone&&i.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,ae.q)(1),(0,z.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(re){this._customColumnDefs.add(re)}removeColumnDef(re){this._customColumnDefs.delete(re)}addRowDef(re){this._customRowDefs.add(re)}removeRowDef(re){this._customRowDefs.delete(re)}addHeaderRowDef(re){this._customHeaderRowDefs.add(re),this._headerRowDefChanged=!0}removeHeaderRowDef(re){this._customHeaderRowDefs.delete(re),this._headerRowDefChanged=!0}addFooterRowDef(re){this._customFooterRowDefs.add(re),this._footerRowDefChanged=!0}removeFooterRowDef(re){this._customFooterRowDefs.delete(re),this._footerRowDefChanged=!0}setNoDataRow(re){this._customNoDataRow=re}updateStickyHeaderRowStyles(){const re=this._getRenderedRows(this._headerRowOutlet),gt=this._elementRef.nativeElement.querySelector("thead");gt&&(gt.style.display=re.length?"":"none");const Gt=this._headerRowDefs.map(rn=>rn.sticky);this._stickyStyler.clearStickyPositioning(re,["top"]),this._stickyStyler.stickRows(re,Gt,"top"),this._headerRowDefs.forEach(rn=>rn.resetStickyChanged())}updateStickyFooterRowStyles(){const re=this._getRenderedRows(this._footerRowOutlet),gt=this._elementRef.nativeElement.querySelector("tfoot");gt&&(gt.style.display=re.length?"":"none");const Gt=this._footerRowDefs.map(rn=>rn.sticky);this._stickyStyler.clearStickyPositioning(re,["bottom"]),this._stickyStyler.stickRows(re,Gt,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,Gt),this._footerRowDefs.forEach(rn=>rn.resetStickyChanged())}updateStickyColumnStyles(){const re=this._getRenderedRows(this._headerRowOutlet),Se=this._getRenderedRows(this._rowOutlet),gt=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...re,...Se,...gt],["left","right"]),this._stickyColumnStylesNeedReset=!1),re.forEach((Gt,rn)=>{this._addStickyColumnStyles([Gt],this._headerRowDefs[rn])}),this._rowDefs.forEach(Gt=>{const rn=[];for(let Tn=0;Tn{this._addStickyColumnStyles([Gt],this._footerRowDefs[rn])}),Array.from(this._columnDefsByName.values()).forEach(Gt=>Gt.resetStickyChanged())}_getAllRenderRows(){const re=[],Se=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let gt=0;gt{const Tn=gt&>.has(rn)?gt.get(rn):[];if(Tn.length){const En=Tn.shift();return En.dataIndex=Se,En}return{data:re,rowDef:rn,dataIndex:Se}})}_cacheColumnDefs(){this._columnDefsByName.clear(),St(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Se=>{this._columnDefsByName.has(Se.name),this._columnDefsByName.set(Se.name,Se)})}_cacheRowDefs(){this._headerRowDefs=St(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=St(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=St(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const re=this._rowDefs.filter(Se=>!Se.when);this._defaultRowDef=re[0]}_renderUpdatedColumns(){const re=(rn,Tn)=>rn||!!Tn.getColumnsDiff(),Se=this._rowDefs.reduce(re,!1);Se&&this._forceRenderDataRows();const gt=this._headerRowDefs.reduce(re,!1);gt&&this._forceRenderHeaderRows();const Gt=this._footerRowDefs.reduce(re,!1);return Gt&&this._forceRenderFooterRows(),Se||gt||Gt}_switchDataSource(re){this._data=[],(0,v.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),re||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=re}_observeRenderChanges(){if(!this.dataSource)return;let re;(0,v.Z9)(this.dataSource)?re=this.dataSource.connect(this):function k(Ne){return!!Ne&&(Ne instanceof P.y||"function"==typeof Ne.lift&&"function"==typeof Ne.subscribe)}(this.dataSource)?re=this.dataSource:Array.isArray(this.dataSource)&&(re=(0,F.of)(this.dataSource)),this._renderChangeSubscription=re.pipe((0,z.R)(this._onDestroy)).subscribe(Se=>{this._data=Se||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((re,Se)=>this._renderRow(this._headerRowOutlet,re,Se)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((re,Se)=>this._renderRow(this._footerRowOutlet,re,Se)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(re,Se){const gt=Array.from(Se.columns||[]).map(Tn=>this._columnDefsByName.get(Tn)),Gt=gt.map(Tn=>Tn.sticky),rn=gt.map(Tn=>Tn.stickyEnd);this._stickyStyler.updateStickyColumns(re,Gt,rn,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(re){const Se=[];for(let gt=0;gt!Gt.when||Gt.when(Se,re));else{let Gt=this._rowDefs.find(rn=>rn.when&&rn.when(Se,re))||this._defaultRowDef;Gt&>.push(Gt)}return gt}_getEmbeddedViewArgs(re,Se){return{templateRef:re.rowDef.template,context:{$implicit:re.data},index:Se}}_renderRow(re,Se,gt,Gt={}){const rn=re.viewContainer.createEmbeddedView(Se.template,Gt,gt);return this._renderCellTemplateForItem(Se,Gt),rn}_renderCellTemplateForItem(re,Se){for(let gt of this._getCellTemplates(re))Mt.mostRecentCellOutlet&&Mt.mostRecentCellOutlet._viewContainer.createEmbeddedView(gt,Se);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const re=this._rowOutlet.viewContainer;for(let Se=0,gt=re.length;Se{const gt=this._columnDefsByName.get(Se);return re.extractCellTemplate(gt)}):[]}_applyNativeTableSections(){const re=this._document.createDocumentFragment(),Se=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const gt of Se){const Gt=this._document.createElement(gt.tag);Gt.setAttribute("role","rowgroup");for(const rn of gt.outlets)Gt.appendChild(rn.elementRef.nativeElement);re.appendChild(Gt)}this._elementRef.nativeElement.appendChild(re)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const re=(Se,gt)=>Se||gt.hasStickyChanged();this._headerRowDefs.reduce(re,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(re,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(re,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Le(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,F.of)()).pipe((0,z.R)(this._onDestroy)).subscribe(Se=>{this._stickyStyler.direction=Se,this.updateStickyColumnStyles()})}_getOwnDefs(re){return re.filter(Se=>!Se._table||Se._table===this)}_updateNoDataRow(){const re=this._customNoDataRow||this._noDataRow;if(!re)return;const Se=0===this._rowOutlet.viewContainer.length;if(Se===this._isShowingNoDataRow)return;const gt=this._noDataRowOutlet.viewContainer;if(Se){const Gt=gt.createEmbeddedView(re.templateRef),rn=Gt.rootNodes[0];1===Gt.rootNodes.length&&rn?.nodeType===this._document.ELEMENT_NODE&&(rn.setAttribute("role","row"),rn.classList.add(re._contentClassName))}else gt.clear();this._isShowingNoDataRow=Se}}return Ne.\u0275fac=function(re){return new(re||Ne)(i.Y36(i.ZZ4),i.Y36(i.sBO),i.Y36(i.SBq),i.$8M("role"),i.Y36(a.Is,8),i.Y36(g.K0),i.Y36(b.t4),i.Y36(v.k),i.Y36(Yt),i.Y36(h.rL),i.Y36(de,12),i.Y36(i.R0b,8))},Ne.\u0275cmp=i.Xpm({type:Ne,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(re,Se,gt){if(1&re&&(i.Suo(gt,nt,5),i.Suo(gt,tt,5),i.Suo(gt,et,5),i.Suo(gt,_e,5),i.Suo(gt,be,5)),2&re){let Gt;i.iGM(Gt=i.CRH())&&(Se._noDataRow=Gt.first),i.iGM(Gt=i.CRH())&&(Se._contentColumnDefs=Gt),i.iGM(Gt=i.CRH())&&(Se._contentRowDefs=Gt),i.iGM(Gt=i.CRH())&&(Se._contentHeaderRowDefs=Gt),i.iGM(Gt=i.CRH())&&(Se._contentFooterRowDefs=Gt)}},viewQuery:function(re,Se){if(1&re&&(i.Gf(H,7),i.Gf(f,7),i.Gf(_,7),i.Gf(T,7)),2&re){let gt;i.iGM(gt=i.CRH())&&(Se._rowOutlet=gt.first),i.iGM(gt=i.CRH())&&(Se._headerRowOutlet=gt.first),i.iGM(gt=i.CRH())&&(Se._footerRowOutlet=gt.first),i.iGM(gt=i.CRH())&&(Se._noDataRowOutlet=gt.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(re,Se){2&re&&i.ekj("cdk-table-fixed-layout",Se.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[i._Bn([{provide:ie,useExisting:Ne},{provide:v.k,useClass:v.yy},{provide:Yt,useClass:Dt},{provide:de,useValue:null}])],ngContentSelectors:ue,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(re,Se){1&re&&(i.F$t(we),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[H,f,_,T],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),Ne})();function St(Ne,fe){return Ne.concat(Array.from(fe))}let ye=(()=>{class Ne{}return Ne.\u0275fac=function(re){return new(re||Ne)},Ne.\u0275mod=i.oAB({type:Ne}),Ne.\u0275inj=i.cJS({imports:[h.Cl]}),Ne})();var qe=u(3238),xe=u(6787),Fe=u(3426),ot=u(4850);const ce=[[["caption"]],[["colgroup"],["col"]]],Ue=["caption","colgroup, col"];let wt=(()=>{class Ne extends ze{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return Ne.\u0275fac=function(){let fe;return function(Se){return(fe||(fe=i.n5z(Ne)))(Se||Ne)}}(),Ne.\u0275cmp=i.Xpm({type:Ne,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(re,Se){2&re&&i.ekj("mat-table-fixed-layout",Se.fixedLayout)},exportAs:["matTable"],features:[i._Bn([{provide:v.k,useClass:v.yy},{provide:ze,useExisting:Ne},{provide:ie,useExisting:Ne},{provide:Yt,useClass:Dt},{provide:de,useValue:null}]),i.qOj],ngContentSelectors:Ue,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(re,Se){1&re&&(i.F$t(ce),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[H,f,_,T],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),Ne})(),st=(()=>{class Ne extends se{}return Ne.\u0275fac=function(){let fe;return function(Se){return(fe||(fe=i.n5z(Ne)))(Se||Ne)}}(),Ne.\u0275dir=i.lG2({type:Ne,selectors:[["","matCellDef",""]],features:[i._Bn([{provide:se,useExisting:Ne}]),i.qOj]}),Ne})(),ut=(()=>{class Ne extends Me{}return Ne.\u0275fac=function(){let fe;return function(Se){return(fe||(fe=i.n5z(Ne)))(Se||Ne)}}(),Ne.\u0275dir=i.lG2({type:Ne,selectors:[["","matHeaderCellDef",""]],features:[i._Bn([{provide:Me,useExisting:Ne}]),i.qOj]}),Ne})(),an=(()=>{class Ne extends tt{get name(){return this._name}set name(re){this._setNameInput(re)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return Ne.\u0275fac=function(){let fe;return function(Se){return(fe||(fe=i.n5z(Ne)))(Se||Ne)}}(),Ne.\u0275dir=i.lG2({type:Ne,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[i._Bn([{provide:tt,useExisting:Ne},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Ne}]),i.qOj]}),Ne})(),We=(()=>{class Ne extends Xe{}return Ne.\u0275fac=function(){let fe;return function(Se){return(fe||(fe=i.n5z(Ne)))(Se||Ne)}}(),Ne.\u0275dir=i.lG2({type:Ne,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[i.qOj]}),Ne})(),qt=(()=>{class Ne extends yt{}return Ne.\u0275fac=function(){let fe;return function(Se){return(fe||(fe=i.n5z(Ne)))(Se||Ne)}}(),Ne.\u0275dir=i.lG2({type:Ne,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[i.qOj]}),Ne})(),Ut=(()=>{class Ne extends _e{}return Ne.\u0275fac=function(){let fe;return function(Se){return(fe||(fe=i.n5z(Ne)))(Se||Ne)}}(),Ne.\u0275dir=i.lG2({type:Ne,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[i._Bn([{provide:_e,useExisting:Ne}]),i.qOj]}),Ne})(),bn=(()=>{class Ne extends et{}return Ne.\u0275fac=function(){let fe;return function(Se){return(fe||(fe=i.n5z(Ne)))(Se||Ne)}}(),Ne.\u0275dir=i.lG2({type:Ne,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[i._Bn([{provide:et,useExisting:Ne}]),i.qOj]}),Ne})(),Rt=(()=>{class Ne extends _t{}return Ne.\u0275fac=function(){let fe;return function(Se){return(fe||(fe=i.n5z(Ne)))(Se||Ne)}}(),Ne.\u0275cmp=i.Xpm({type:Ne,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[i._Bn([{provide:_t,useExisting:Ne}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(re,Se){1&re&&i.GkF(0,0)},dependencies:[Mt],encapsulation:2}),Ne})(),ct=(()=>{class Ne extends at{}return Ne.\u0275fac=function(){let fe;return function(Se){return(fe||(fe=i.n5z(Ne)))(Se||Ne)}}(),Ne.\u0275cmp=i.Xpm({type:Ne,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[i._Bn([{provide:at,useExisting:Ne}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(re,Se){1&re&&i.GkF(0,0)},dependencies:[Mt],encapsulation:2}),Ne})(),kn=(()=>{class Ne{}return Ne.\u0275fac=function(re){return new(re||Ne)},Ne.\u0275mod=i.oAB({type:Ne}),Ne.\u0275inj=i.cJS({imports:[ye,qe.BQ,qe.BQ]}),Ne})();class On extends v.o2{constructor(fe=[]){super(),this._renderData=new O.X([]),this._filter=new O.X(""),this._internalPageChanges=new D.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(re,Se)=>{const gt=re[Se];if((0,c.t6)(gt)){const Gt=Number(gt);return Gt<9007199254740991?Gt:gt}return gt},this.sortData=(re,Se)=>{const gt=Se.active,Gt=Se.direction;return gt&&""!=Gt?re.sort((rn,Tn)=>{let En=this.sortingDataAccessor(rn,gt),ci=this.sortingDataAccessor(Tn,gt);const An=typeof En,ni=typeof ci;An!==ni&&("number"===An&&(En+=""),"number"===ni&&(ci+=""));let jn=0;return null!=En&&null!=ci?En>ci?jn=1:En{const gt=Object.keys(re).reduce((rn,Tn)=>rn+re[Tn]+"\u25ec","").toLowerCase(),Gt=Se.trim().toLowerCase();return-1!=gt.indexOf(Gt)},this._data=new O.X(fe),this._updateChangeSubscription()}get data(){return this._data.value}set data(fe){fe=Array.isArray(fe)?fe:[],this._data.next(fe),this._renderChangesSubscription||this._filterData(fe)}get filter(){return this._filter.value}set filter(fe){this._filter.next(fe),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(fe){this._sort=fe,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(fe){this._paginator=fe,this._updateChangeSubscription()}_updateChangeSubscription(){const fe=this._sort?(0,xe.T)(this._sort.sortChange,this._sort.initialized):(0,F.of)(null),re=this._paginator?(0,xe.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,F.of)(null),gt=(0,Fe.aj)([this._data,this._filter]).pipe((0,ot.U)(([Tn])=>this._filterData(Tn))),Gt=(0,Fe.aj)([gt,fe]).pipe((0,ot.U)(([Tn])=>this._orderData(Tn))),rn=(0,Fe.aj)([Gt,re]).pipe((0,ot.U)(([Tn])=>this._pageData(Tn)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=rn.subscribe(Tn=>this._renderData.next(Tn))}_filterData(fe){return this.filteredData=null==this.filter||""===this.filter?fe:fe.filter(re=>this.filterPredicate(re,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(fe){return this.sort?this.sortData(fe.slice(),this.sort):fe}_pageData(fe){if(!this.paginator)return fe;const re=this.paginator.pageIndex*this.paginator.pageSize;return fe.slice(re,re+this.paginator.pageSize)}_updatePaginator(fe){Promise.resolve().then(()=>{const re=this.paginator;if(re&&(re.length=fe,re.pageIndex>0)){const Se=Math.ceil(re.length/re.pageSize)-1||0,gt=Math.min(re.pageIndex,Se);gt!==re.pageIndex&&(re.pageIndex=gt,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}class qn extends On{}},3848:(Ct,ke,u)=>{"use strict";u.d(ke,{BU:()=>Fe,Nh:()=>Ye,Nj:()=>Ue});var i=u(2687),a=u(9643),c=u(4080),v=u(6895),b=u(4650),h=u(3238),g=u(2986),D=u(7625),B=u(1059),O=u(7545),P=u(1307),k=u(8929),F=u(3753),z=u(1086),ae=u(6787),we=u(8896),ue=u(6498),le=u(7739),ge=u(445),ie=(u(7340),u(1281)),he=u(2744),se=u(3353),Me=u(9521);const it=["*"],Xe=["tabListContainer"],Ae=["tabList"],yt=["tabListInner"],ft=["nextPaginator"],Yt=["previousPaginator"],lt=["mat-tab-nav-bar",""],be=new b.OlP("MatInkBarPositioner",{providedIn:"root",factory:function et(){return wt=>({left:wt?(wt.offsetLeft||0)+"px":"0",width:wt?(wt.offsetWidth||0)+"px":"0"})}});let Mt=(()=>{class Pe{constructor(st,ut,Ht,an){this._elementRef=st,this._ngZone=ut,this._inkBarPositioner=Ht,this._animationMode=an}alignToElement(st){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(()=>{const ut=this._inkBarPositioner(st),Ht=this._elementRef.nativeElement;Ht.style.left=ut.left,Ht.style.width=ut.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return Pe.\u0275fac=function(st){return new(st||Pe)(b.Y36(b.SBq),b.Y36(b.R0b),b.Y36(be),b.Y36(b.QbO,8))},Pe.\u0275dir=b.lG2({type:Pe,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(st,ut){2&st&&b.ekj("_mat-animation-noopable","NoopAnimations"===ut._animationMode)}}),Pe})();const X=(0,se.i$)({passive:!0});let T=(()=>{class Pe{constructor(st,ut,Ht,an,We,rt,qt){this._elementRef=st,this._changeDetectorRef=ut,this._viewportRuler=Ht,this._dir=an,this._ngZone=We,this._platform=rt,this._animationMode=qt,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new k.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new k.xQ,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new b.vpe,this.indexFocused=new b.vpe,We.runOutsideAngular(()=>{(0,F.R)(st.nativeElement,"mouseleave").pipe((0,D.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(st){this._disablePagination=(0,ie.Ig)(st)}get selectedIndex(){return this._selectedIndex}set selectedIndex(st){st=(0,ie.su)(st),this._selectedIndex!=st&&(this._selectedIndexChanged=!0,this._selectedIndex=st,this._keyManager&&this._keyManager.updateActiveItem(st))}ngAfterViewInit(){(0,F.R)(this._previousPaginator.nativeElement,"touchstart",X).pipe((0,D.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,F.R)(this._nextPaginator.nativeElement,"touchstart",X).pipe((0,D.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const st=this._dir?this._dir.change:(0,z.of)("ltr"),ut=this._viewportRuler.change(150),Ht=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new i.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(Ht),(0,ae.T)(st,ut,this._items.changes,this._itemsResized()).pipe((0,D.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),Ht()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,D.R)(this._destroyed)).subscribe(an=>{this.indexFocused.emit(an),this._setTabFocus(an)})}_itemsResized(){return"function"!=typeof ResizeObserver?we.E:this._items.changes.pipe((0,B.O)(this._items),(0,O.w)(st=>new ue.y(ut=>this._ngZone.runOutsideAngular(()=>{const Ht=new ResizeObserver(()=>{ut.next()});return st.forEach(an=>{Ht.observe(an.elementRef.nativeElement)}),()=>{Ht.disconnect()}}))),(0,P.T)(1))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(st){if(!(0,Me.Vb)(st))switch(st.keyCode){case Me.K5:case Me.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(st));break;default:this._keyManager.onKeydown(st)}}_onContentChanges(){const st=this._elementRef.nativeElement.textContent;st!==this._currentTextContent&&(this._currentTextContent=st||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(st){!this._isValidIndex(st)||this.focusIndex===st||!this._keyManager||this._keyManager.setActiveItem(st)}_isValidIndex(st){if(!this._items)return!0;const ut=this._items?this._items.toArray()[st]:null;return!!ut&&!ut.disabled}_setTabFocus(st){if(this._showPaginationControls&&this._scrollToLabel(st),this._items&&this._items.length){this._items.toArray()[st].focus();const ut=this._tabListContainer.nativeElement;ut.scrollLeft="ltr"==this._getLayoutDirection()?0:ut.scrollWidth-ut.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const st=this.scrollDistance,ut="ltr"===this._getLayoutDirection()?-st:st;this._tabList.nativeElement.style.transform=`translateX(${Math.round(ut)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(st){this._scrollTo(st)}_scrollHeader(st){return this._scrollTo(this._scrollDistance+("before"==st?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(st){this._stopInterval(),this._scrollHeader(st)}_scrollToLabel(st){if(this.disablePagination)return;const ut=this._items?this._items.toArray()[st]:null;if(!ut)return;const Ht=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:an,offsetWidth:We}=ut.elementRef.nativeElement;let rt,qt;"ltr"==this._getLayoutDirection()?(rt=an,qt=rt+We):(qt=this._tabListInner.nativeElement.offsetWidth-an,rt=qt-We);const Ut=this.scrollDistance,en=this.scrollDistance+Ht;rten&&(this.scrollDistance+=qt-en+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const st=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;st||(this.scrollDistance=0),st!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=st}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const st=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,ut=st?st.elementRef.nativeElement:null;ut?this._inkBar.alignToElement(ut):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(st,ut){ut&&null!=ut.button&&0!==ut.button||(this._stopInterval(),(0,le.H)(650,100).pipe((0,D.R)((0,ae.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:Ht,distance:an}=this._scrollHeader(st);(0===an||an>=Ht)&&this._stopInterval()}))}_scrollTo(st){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const ut=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(ut,st)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:ut,distance:this._scrollDistance}}}return Pe.\u0275fac=function(st){return new(st||Pe)(b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(he.rL),b.Y36(ge.Is,8),b.Y36(b.R0b),b.Y36(se.t4),b.Y36(b.QbO,8))},Pe.\u0275dir=b.lG2({type:Pe,inputs:{disablePagination:"disablePagination"}}),Pe})(),qe=0,xe=(()=>{class Pe extends T{constructor(st,ut,Ht,an,We,rt,qt){super(st,an,We,ut,Ht,rt,qt),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(st){const ut=this._elementRef.nativeElement.classList;ut.remove(`mat-background-${this.backgroundColor}`),st&&ut.add(`mat-background-${st}`),this._backgroundColor=st}get disableRipple(){return this._disableRipple}set disableRipple(st){this._disableRipple=(0,ie.Ig)(st)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,B.O)(null),(0,D.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const st=this._items.toArray();for(let ut=0;ut{class Pe extends xe{constructor(st,ut,Ht,an,We,rt,qt){super(st,ut,Ht,an,We,rt,qt)}}return Pe.\u0275fac=function(st){return new(st||Pe)(b.Y36(b.SBq),b.Y36(ge.Is,8),b.Y36(b.R0b),b.Y36(b.sBO),b.Y36(he.rL),b.Y36(se.t4),b.Y36(b.QbO,8))},Pe.\u0275cmp=b.Xpm({type:Pe,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(st,ut,Ht){if(1&st&&b.Suo(Ht,Ue,5),2&st){let an;b.iGM(an=b.CRH())&&(ut._items=an)}},viewQuery:function(st,ut){if(1&st&&(b.Gf(Mt,7),b.Gf(Xe,7),b.Gf(Ae,7),b.Gf(yt,7),b.Gf(ft,5),b.Gf(Yt,5)),2&st){let Ht;b.iGM(Ht=b.CRH())&&(ut._inkBar=Ht.first),b.iGM(Ht=b.CRH())&&(ut._tabListContainer=Ht.first),b.iGM(Ht=b.CRH())&&(ut._tabList=Ht.first),b.iGM(Ht=b.CRH())&&(ut._tabListInner=Ht.first),b.iGM(Ht=b.CRH())&&(ut._nextPaginator=Ht.first),b.iGM(Ht=b.CRH())&&(ut._previousPaginator=Ht.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(st,ut){2&st&&(b.uIk("role",ut._getRole()),b.ekj("mat-tab-header-pagination-controls-enabled",ut._showPaginationControls)("mat-tab-header-rtl","rtl"==ut._getLayoutDirection())("mat-primary","warn"!==ut.color&&"accent"!==ut.color)("mat-accent","accent"===ut.color)("mat-warn","warn"===ut.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[b.qOj],attrs:lt,ngContentSelectors:it,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(st,ut){1&st&&(b.F$t(),b.TgZ(0,"button",0,1),b.NdJ("click",function(){return ut._handlePaginatorClick("before")})("mousedown",function(an){return ut._handlePaginatorPress("before",an)})("touchend",function(){return ut._stopInterval()}),b._UZ(2,"div",2),b.qZA(),b.TgZ(3,"div",3,4),b.NdJ("keydown",function(an){return ut._handleKeydown(an)}),b.TgZ(5,"div",5,6),b.NdJ("cdkObserveContent",function(){return ut._onContentChanges()}),b.TgZ(7,"div",7,8),b.Hsn(9),b.qZA(),b._UZ(10,"mat-ink-bar"),b.qZA()(),b.TgZ(11,"button",9,10),b.NdJ("mousedown",function(an){return ut._handlePaginatorPress("after",an)})("click",function(){return ut._handlePaginatorClick("after")})("touchend",function(){return ut._stopInterval()}),b._UZ(13,"div",2),b.qZA()),2&st&&(b.ekj("mat-tab-header-pagination-disabled",ut._disableScrollBefore),b.Q6J("matRippleDisabled",ut._disableScrollBefore||ut.disableRipple)("disabled",ut._disableScrollBefore||null),b.xp6(5),b.ekj("_mat-animation-noopable","NoopAnimations"===ut._animationMode),b.xp6(6),b.ekj("mat-tab-header-pagination-disabled",ut._disableScrollAfter),b.Q6J("matRippleDisabled",ut._disableScrollAfter||ut.disableRipple)("disabled",ut._disableScrollAfter||null))},dependencies:[h.wG,a.wD,Mt],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}.mat-tab-link::before{margin:5px}@media(max-width: 599px){.mat-tab-link{min-width:72px}}"],encapsulation:2}),Pe})();const ot=(0,h.sb)((0,h.Kr)((0,h.Id)(class{})));let ce=(()=>{class Pe extends ot{constructor(st,ut,Ht,an,We,rt){super(),this._tabNavBar=st,this.elementRef=ut,this._focusMonitor=We,this._isActive=!1,this.id="mat-tab-link-"+qe++,this.rippleConfig=Ht||{},this.tabIndex=parseInt(an)||0,"NoopAnimations"===rt&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(st){const ut=(0,ie.Ig)(st);ut!==this._isActive&&(this._isActive=ut,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(st){this._tabNavBar.tabPanel&&st.keyCode===Me.L_&&this.elementRef.nativeElement.click()}_getAriaControls(){return this._tabNavBar.tabPanel?this._tabNavBar.tabPanel?.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}_getTabIndex(){return this._tabNavBar.tabPanel?this._isActive&&!this.disabled?0:-1:this.tabIndex}}return Pe.\u0275fac=function(st){return new(st||Pe)(b.Y36(xe),b.Y36(b.SBq),b.Y36(h.Y2,8),b.$8M("tabindex"),b.Y36(i.tE),b.Y36(b.QbO,8))},Pe.\u0275dir=b.lG2({type:Pe,inputs:{active:"active",id:"id"},features:[b.qOj]}),Pe})(),Ue=(()=>{class Pe extends ce{constructor(st,ut,Ht,an,We,rt,qt,Ut){super(st,ut,We,rt,qt,Ut),this._tabLinkRipple=new h.IR(this,Ht,ut,an),this._tabLinkRipple.setupTriggerEvents(ut.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return Pe.\u0275fac=function(st){return new(st||Pe)(b.Y36(Fe),b.Y36(b.SBq),b.Y36(b.R0b),b.Y36(se.t4),b.Y36(h.Y2,8),b.$8M("tabindex"),b.Y36(i.tE),b.Y36(b.QbO,8))},Pe.\u0275dir=b.lG2({type:Pe,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(st,ut){1&st&&b.NdJ("focus",function(){return ut._handleFocus()})("keydown",function(an){return ut._handleKeydown(an)}),2&st&&(b.uIk("aria-controls",ut._getAriaControls())("aria-current",ut._getAriaCurrent())("aria-disabled",ut.disabled)("aria-selected",ut._getAriaSelected())("id",ut.id)("tabIndex",ut._getTabIndex())("role",ut._getRole()),b.ekj("mat-tab-disabled",ut.disabled)("mat-tab-label-active",ut.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[b.qOj]}),Pe})(),Ye=(()=>{class Pe{}return Pe.\u0275fac=function(st){return new(st||Pe)},Pe.\u0275mod=b.oAB({type:Pe}),Pe.\u0275inj=b.cJS({imports:[v.ez,h.BQ,c.eL,h.si,a.Q8,i.rt,h.BQ]}),Pe})()},3683:(Ct,ke,u)=>{"use strict";u.d(ke,{Ye:()=>B,g0:()=>P});var i=u(4650),a=u(3238),c=u(3353),v=u(6895);const b=["*",[["mat-toolbar-row"]]],h=["*","mat-toolbar-row"],g=(0,a.pj)(class{constructor(k){this._elementRef=k}});let D=(()=>{class k{}return k.\u0275fac=function(z){return new(z||k)},k.\u0275dir=i.lG2({type:k,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),k})(),B=(()=>{class k extends g{constructor(z,ae,we){super(z),this._platform=ae,this._document=we}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return k.\u0275fac=function(z){return new(z||k)(i.Y36(i.SBq),i.Y36(c.t4),i.Y36(v.K0))},k.\u0275cmp=i.Xpm({type:k,selectors:[["mat-toolbar"]],contentQueries:function(z,ae,we){if(1&z&&i.Suo(we,D,5),2&z){let ue;i.iGM(ue=i.CRH())&&(ae._toolbarRows=ue)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(z,ae){2&z&&i.ekj("mat-toolbar-multiple-rows",ae._toolbarRows.length>0)("mat-toolbar-single-row",0===ae._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[i.qOj],ngContentSelectors:h,decls:2,vars:0,template:function(z,ae){1&z&&(i.F$t(b),i.Hsn(0),i.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),k})(),P=(()=>{class k{}return k.\u0275fac=function(z){return new(z||k)},k.\u0275mod=i.oAB({type:k}),k.\u0275inj=i.cJS({imports:[a.BQ,a.BQ]}),k})()},266:(Ct,ke,u)=>{"use strict";u.d(ke,{AV:()=>ft,gM:()=>Xe});var i=u(8184),a=u(2687),c=u(6895),v=u(4650),b=u(3238),h=u(2744),g=u(445),D=u(1281),B=u(9521),O=u(2289),P=u(3353),k=u(4080),F=u(8929),z=u(7625),ae=u(2986);u(7340);const ue=["tooltip"],W="tooltip-panel",ie=(0,P.i$)({passive:!0}),Me=new v.OlP("mat-tooltip-scroll-strategy"),it={provide:Me,deps:[i.aV],useFactory:function $e(Dt){return()=>Dt.scrollStrategies.reposition({scrollThrottle:20})}},Ke=new v.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function tt(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let me=(()=>{class Dt{constructor(V,Ee,oe,_e,Oe,lt,be,et,Mt,_t,Be,at){this._overlay=V,this._elementRef=Ee,this._scrollDispatcher=oe,this._viewContainerRef=_e,this._ngZone=Oe,this._platform=lt,this._ariaDescriber=be,this._focusMonitor=et,this._dir=_t,this._defaultOptions=Be,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new F.xQ,this._scrollStrategy=Mt,this._document=at,Be&&(Be.position&&(this.position=Be.position),Be.touchGestures&&(this.touchGestures=Be.touchGestures)),_t.change.pipe((0,z.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(V){V!==this._position&&(this._position=V,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(V){this._disabled=(0,D.Ig)(V),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(V){this._showDelay=(0,D.su)(V)}get hideDelay(){return this._hideDelay}set hideDelay(V){this._hideDelay=(0,D.su)(V),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(V){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=V?String(V).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(V){this._tooltipClass=V,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,z.R)(this._destroyed)).subscribe(V=>{V?"keyboard"===V&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const V=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([Ee,oe])=>{V.removeEventListener(Ee,oe,ie)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(V,this.message,"tooltip"),this._focusMonitor.stopMonitoring(V)}show(V=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const Ee=this._createOverlay();this._detach(),this._portal=this._portal||new k.C5(this._tooltipComponent,this._viewContainerRef);const oe=this._tooltipInstance=Ee.attach(this._portal).instance;oe._triggerElement=this._elementRef.nativeElement,oe._mouseLeaveHideDelay=this._hideDelay,oe.afterHidden().pipe((0,z.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),oe.show(V)}hide(V=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(V)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const V=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),Ee=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(V);return Ee.positionChanges.pipe((0,z.R)(this._destroyed)).subscribe(oe=>{this._updateCurrentPositionClass(oe.connectionPair),this._tooltipInstance&&oe.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:Ee,panelClass:`${this._cssClassPrefix}-${W}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,z.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,z.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,z.R)(this._destroyed)).subscribe(oe=>{this._isTooltipVisible()&&oe.keyCode===B.hY&&!(0,B.Vb)(oe)&&(oe.preventDefault(),oe.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(V){const Ee=V.getConfig().positionStrategy,oe=this._getOrigin(),_e=this._getOverlayPosition();Ee.withPositions([this._addOffset({...oe.main,..._e.main}),this._addOffset({...oe.fallback,..._e.fallback})])}_addOffset(V){return V}_getOrigin(){const V=!this._dir||"ltr"==this._dir.value,Ee=this.position;let oe;"above"==Ee||"below"==Ee?oe={originX:"center",originY:"above"==Ee?"top":"bottom"}:"before"==Ee||"left"==Ee&&V||"right"==Ee&&!V?oe={originX:"start",originY:"center"}:("after"==Ee||"right"==Ee&&V||"left"==Ee&&!V)&&(oe={originX:"end",originY:"center"});const{x:_e,y:Oe}=this._invertPosition(oe.originX,oe.originY);return{main:oe,fallback:{originX:_e,originY:Oe}}}_getOverlayPosition(){const V=!this._dir||"ltr"==this._dir.value,Ee=this.position;let oe;"above"==Ee?oe={overlayX:"center",overlayY:"bottom"}:"below"==Ee?oe={overlayX:"center",overlayY:"top"}:"before"==Ee||"left"==Ee&&V||"right"==Ee&&!V?oe={overlayX:"end",overlayY:"center"}:("after"==Ee||"right"==Ee&&V||"left"==Ee&&!V)&&(oe={overlayX:"start",overlayY:"center"});const{x:_e,y:Oe}=this._invertPosition(oe.overlayX,oe.overlayY);return{main:oe,fallback:{overlayX:_e,overlayY:Oe}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,ae.q)(1),(0,z.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(V){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=V,this._tooltipInstance._markForCheck())}_invertPosition(V,Ee){return"above"===this.position||"below"===this.position?"top"===Ee?Ee="bottom":"bottom"===Ee&&(Ee="top"):"end"===V?V="start":"start"===V&&(V="end"),{x:V,y:Ee}}_updateCurrentPositionClass(V){const{overlayY:Ee,originX:oe,originY:_e}=V;let Oe;if(Oe="center"===Ee?this._dir&&"rtl"===this._dir.value?"end"===oe?"left":"right":"start"===oe?"left":"right":"bottom"===Ee&&"top"===_e?"above":"below",Oe!==this._currentPosition){const lt=this._overlayRef;if(lt){const be=`${this._cssClassPrefix}-${W}-`;lt.removePanelClass(be+this._currentPosition),lt.addPanelClass(be+Oe)}this._currentPosition=Oe}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const V=[];if(this._platformSupportsMouseEvents())V.push(["mouseleave",Ee=>{const oe=Ee.relatedTarget;(!oe||!this._overlayRef?.overlayElement.contains(oe))&&this.hide()}],["wheel",Ee=>this._wheelListener(Ee)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const Ee=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};V.push(["touchend",Ee],["touchcancel",Ee])}this._addListeners(V),this._passiveListeners.push(...V)}_addListeners(V){V.forEach(([Ee,oe])=>{this._elementRef.nativeElement.addEventListener(Ee,oe,ie)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(V){if(this._isTooltipVisible()){const Ee=this._document.elementFromPoint(V.clientX,V.clientY),oe=this._elementRef.nativeElement;Ee!==oe&&!oe.contains(Ee)&&this.hide()}}_disableNativeGesturesIfNecessary(){const V=this.touchGestures;if("off"!==V){const Ee=this._elementRef.nativeElement,oe=Ee.style;("on"===V||"INPUT"!==Ee.nodeName&&"TEXTAREA"!==Ee.nodeName)&&(oe.userSelect=oe.msUserSelect=oe.webkitUserSelect=oe.MozUserSelect="none"),("on"===V||!Ee.draggable)&&(oe.webkitUserDrag="none"),oe.touchAction="none",oe.webkitTapHighlightColor="transparent"}}}return Dt.\u0275fac=function(V){v.$Z()},Dt.\u0275dir=v.lG2({type:Dt,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),Dt})(),Xe=(()=>{class Dt extends me{constructor(V,Ee,oe,_e,Oe,lt,be,et,Mt,_t,Be,at){super(V,Ee,oe,_e,Oe,lt,be,et,Mt,_t,Be,at),this._tooltipComponent=yt}}return Dt.\u0275fac=function(V){return new(V||Dt)(v.Y36(i.aV),v.Y36(v.SBq),v.Y36(h.mF),v.Y36(v.s_b),v.Y36(v.R0b),v.Y36(P.t4),v.Y36(a.$s),v.Y36(a.tE),v.Y36(Me),v.Y36(g.Is,8),v.Y36(Ke,8),v.Y36(c.K0))},Dt.\u0275dir=v.lG2({type:Dt,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[v.qOj]}),Dt})(),Ae=(()=>{class Dt{constructor(V,Ee){this._changeDetectorRef=V,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new F.xQ,this._animationsDisabled="NoopAnimations"===Ee}show(V){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},V)}hide(V){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},V)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:V}){(!V||!this._triggerElement.contains(V))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:V}){(V===this._showAnimation||V===this._hideAnimation)&&this._finalizeAnimation(V===this._showAnimation)}_finalizeAnimation(V){V?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(V){const Ee=this._tooltip.nativeElement,oe=this._showAnimation,_e=this._hideAnimation;if(Ee.classList.remove(V?_e:oe),Ee.classList.add(V?oe:_e),this._isVisible=V,V&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const Oe=getComputedStyle(Ee);("0s"===Oe.getPropertyValue("animation-duration")||"none"===Oe.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}V&&this._onShow(),this._animationsDisabled&&(Ee.classList.add("_mat-animation-noopable"),this._finalizeAnimation(V))}}return Dt.\u0275fac=function(V){return new(V||Dt)(v.Y36(v.sBO),v.Y36(v.QbO,8))},Dt.\u0275dir=v.lG2({type:Dt}),Dt})(),yt=(()=>{class Dt extends Ae{constructor(V,Ee,oe){super(V,oe),this._breakpointObserver=Ee,this._isHandset=this._breakpointObserver.observe(O.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return Dt.\u0275fac=function(V){return new(V||Dt)(v.Y36(v.sBO),v.Y36(O.Yg),v.Y36(v.QbO,8))},Dt.\u0275cmp=v.Xpm({type:Dt,selectors:[["mat-tooltip-component"]],viewQuery:function(V,Ee){if(1&V&&v.Gf(ue,7),2&V){let oe;v.iGM(oe=v.CRH())&&(Ee._tooltip=oe.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(V,Ee){1&V&&v.NdJ("mouseleave",function(_e){return Ee._handleMouseLeave(_e)}),2&V&&v.Udp("zoom",Ee.isVisible()?1:null)},features:[v.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(V,Ee){if(1&V&&(v.TgZ(0,"div",0,1),v.NdJ("animationend",function(_e){return Ee._handleAnimationEnd(_e)}),v.ALo(2,"async"),v._uU(3),v.qZA()),2&V){let oe;v.ekj("mat-tooltip-handset",null==(oe=v.lcZ(2,4,Ee._isHandset))?null:oe.matches),v.Q6J("ngClass",Ee.tooltipClass),v.xp6(3),v.Oqu(Ee.message)}},dependencies:[c.mk,c.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),Dt})(),ft=(()=>{class Dt{}return Dt.\u0275fac=function(V){return new(V||Dt)},Dt.\u0275mod=v.oAB({type:Dt}),Dt.\u0275inj=v.cJS({providers:[it],imports:[a.rt,c.ez,i.U8,b.BQ,b.BQ,h.ZD]}),Dt})()},8746:(Ct,ke,u)=>{"use strict";u.d(ke,{PW:()=>Ji});var i=u(4650),a=u(1481),c=u(7340);function b(Te){return new i.vHH(3e3,!1)}function lt(){return typeof window<"u"&&typeof window.document<"u"}function be(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function et(Te){switch(Te.length){case 0:return new c.ZN;case 1:return Te[0];default:return new c.ZE(Te)}}function Mt(Te,w,M,Y,Ie=new Map,o=new Map){const d=[],E=[];let L=-1,Z=null;if(Y.forEach(De=>{const Ze=De.get("offset"),mt=Ze==L,At=mt&&Z||new Map;De.forEach((bt,Tt)=>{let xt=Tt,Lt=bt;if("offset"!==Tt)switch(xt=w.normalizePropertyName(xt,d),Lt){case c.k1:Lt=Ie.get(Tt);break;case c.l3:Lt=o.get(Tt);break;default:Lt=w.normalizeStyleValue(Tt,xt,Lt,d)}At.set(xt,Lt)}),mt||E.push(At),Z=At,L=Ze}),d.length)throw function me(Te){return new i.vHH(3502,!1)}();return E}function _t(Te,w,M,Y){switch(w){case"start":Te.onStart(()=>Y(M&&Be(M,"start",Te)));break;case"done":Te.onDone(()=>Y(M&&Be(M,"done",Te)));break;case"destroy":Te.onDestroy(()=>Y(M&&Be(M,"destroy",Te)))}}function Be(Te,w,M){const o=at(Te.element,Te.triggerName,Te.fromState,Te.toState,w||Te.phaseName,M.totalTime??Te.totalTime,!!M.disabled),d=Te._data;return null!=d&&(o._data=d),o}function at(Te,w,M,Y,Ie="",o=0,d){return{element:Te,triggerName:w,fromState:M,toState:Y,phaseName:Ie,totalTime:o,disabled:!!d}}function nt(Te,w,M){let Y=Te.get(w);return Y||Te.set(w,Y=M),Y}function Q(Te){const w=Te.indexOf(":");return[Te.substring(1,w),Te.slice(w+1)]}let Le=(Te,w)=>!1,ee=(Te,w,M)=>[],R=null;function U(Te){const w=Te.parentNode||Te.host;return w===R?null:w}(be()||typeof Element<"u")&&(lt()?(R=(()=>document.documentElement)(),Le=(Te,w)=>{for(;w;){if(w===Te)return!0;w=U(w)}return!1}):Le=(Te,w)=>Te.contains(w),ee=(Te,w,M)=>{if(M)return Array.from(Te.querySelectorAll(w));const Y=Te.querySelector(w);return Y?[Y]:[]});let p=null,m=!1;const H=Le,f=ee;let T=(()=>{class Te{validateStyleProperty(M){return function j(Te){p||(p=function X(){return typeof document<"u"?document.body:null}()||{},m=!!p.style&&"WebkitAppearance"in p.style);let w=!0;return p.style&&!function x(Te){return"ebkit"==Te.substring(1,6)}(Te)&&(w=Te in p.style,!w&&m&&(w="Webkit"+Te.charAt(0).toUpperCase()+Te.slice(1)in p.style)),w}(M)}matchesElement(M,Y){return!1}containsElement(M,Y){return H(M,Y)}getParentElement(M){return U(M)}query(M,Y,Ie){return f(M,Y,Ie)}computeStyle(M,Y,Ie){return Ie||""}animate(M,Y,Ie,o,d,E=[],L){return new c.ZN(Ie,o)}}return Te.\u0275fac=function(M){return new(M||Te)},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),ve=(()=>{class Te{}return Te.NOOP=new T,Te})();const ht="ng-enter",Et="ng-leave",ye="ng-trigger",qe=".ng-trigger",xe="ng-animating",Fe=".ng-animating";function ot(Te){if("number"==typeof Te)return Te;const w=Te.match(/^(-?[\.\d]+)(m?s)/);return!w||w.length<2?0:ce(parseFloat(w[1]),w[2])}function ce(Te,w){return"s"===w?1e3*Te:Te}function Ue(Te,w,M){return Te.hasOwnProperty("duration")?Te:function Ce(Te,w,M){let Ie,o=0,d="";if("string"==typeof Te){const E=Te.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===E)return w.push(b()),{duration:0,delay:0,easing:""};Ie=ce(parseFloat(E[1]),E[2]);const L=E[3];null!=L&&(o=ce(parseFloat(L),E[4]));const Z=E[5];Z&&(d=Z)}else Ie=Te;if(!M){let E=!1,L=w.length;Ie<0&&(w.push(function h(){return new i.vHH(3100,!1)}()),E=!0),o<0&&(w.push(function g(){return new i.vHH(3101,!1)}()),E=!0),E&&w.splice(L,0,b())}return{duration:Ie,delay:o,easing:d}}(Te,w,M)}function Ye(Te,w={}){return Object.keys(Te).forEach(M=>{w[M]=Te[M]}),w}function Pe(Te){const w=new Map;return Object.keys(Te).forEach(M=>{w.set(M,Te[M])}),w}function ut(Te,w=new Map,M){if(M)for(let[Y,Ie]of M)w.set(Y,Ie);for(let[Y,Ie]of Te)w.set(Y,Ie);return w}function Ht(Te,w,M){return M?w+":"+M+";":""}function an(Te){let w="";for(let M=0;M{const o=Bt(Ie);M&&!M.has(Ie)&&M.set(Ie,Te.style[o]),Te.style[o]=Y}),be()&&an(Te))}function rt(Te,w){Te.style&&(w.forEach((M,Y)=>{const Ie=Bt(Y);Te.style[Ie]=""}),be()&&an(Te))}function qt(Te){return Array.isArray(Te)?1==Te.length?Te[0]:(0,c.vP)(Te):Te}const en=new RegExp("{{\\s*(.+?)\\s*}}","g");function bn(Te){let w=[];if("string"==typeof Te){let M;for(;M=en.exec(Te);)w.push(M[1]);en.lastIndex=0}return w}function Rt(Te,w,M){const Y=Te.toString(),Ie=Y.replace(en,(o,d)=>{let E=w[d];return null==E&&(M.push(function B(Te){return new i.vHH(3003,!1)}()),E=""),E.toString()});return Ie==Y?Te:Ie}function vt(Te){const w=[];let M=Te.next();for(;!M.done;)w.push(M.value),M=Te.next();return w}const ct=/-+([a-z0-9])/g;function Bt(Te){return Te.replace(ct,(...w)=>w[1].toUpperCase())}function Jt(Te){return Te.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function mn(Te,w,M){switch(w.type){case 7:return Te.visitTrigger(w,M);case 0:return Te.visitState(w,M);case 1:return Te.visitTransition(w,M);case 2:return Te.visitSequence(w,M);case 3:return Te.visitGroup(w,M);case 4:return Te.visitAnimate(w,M);case 5:return Te.visitKeyframes(w,M);case 6:return Te.visitStyle(w,M);case 8:return Te.visitReference(w,M);case 9:return Te.visitAnimateChild(w,M);case 10:return Te.visitAnimateRef(w,M);case 11:return Te.visitQuery(w,M);case 12:return Te.visitStagger(w,M);default:throw function O(Te){return new i.vHH(3004,!1)}()}}function On(Te,w){return window.getComputedStyle(Te)[w]}function Tn(Te,w){const M=[];return"string"==typeof Te?Te.split(/\s*,\s*/).forEach(Y=>function En(Te,w,M){if(":"==Te[0]){const L=function ci(Te,w){switch(Te){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(M,Y)=>parseFloat(Y)>parseFloat(M);case":decrement":return(M,Y)=>parseFloat(Y) *"}}(Te,M);if("function"==typeof L)return void w.push(L);Te=L}const Y=Te.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==Y||Y.length<4)return M.push(function Me(Te){return new i.vHH(3015,!1)}()),w;const Ie=Y[1],o=Y[2],d=Y[3];w.push(jn(Ie,d));"<"==o[0]&&!("*"==Ie&&"*"==d)&&w.push(jn(d,Ie))}(Y,M,w)):M.push(Te),M}const An=new Set(["true","1"]),ni=new Set(["false","0"]);function jn(Te,w){const M=An.has(Te)||ni.has(Te),Y=An.has(w)||ni.has(w);return(Ie,o)=>{let d="*"==Te||Te==Ie,E="*"==w||w==o;return!d&&M&&"boolean"==typeof Ie&&(d=Ie?An.has(Te):ni.has(Te)),!E&&Y&&"boolean"==typeof o&&(E=o?An.has(w):ni.has(w)),d&&E}}const zn=new RegExp("s*:selfs*,?","g");function si(Te,w,M,Y){return new Pi(Te).build(w,M,Y)}class Pi{constructor(w){this._driver=w}build(w,M,Y){const Ie=new zi(M);return this._resetContextStyleTimingState(Ie),mn(this,qt(w),Ie)}_resetContextStyleTimingState(w){w.currentQuerySelector="",w.collectedStyles=new Map,w.collectedStyles.set("",new Map),w.currentTime=0}visitTrigger(w,M){let Y=M.queryCount=0,Ie=M.depCount=0;const o=[],d=[];return"@"==w.name.charAt(0)&&M.errors.push(function k(){return new i.vHH(3006,!1)}()),w.definitions.forEach(E=>{if(this._resetContextStyleTimingState(M),0==E.type){const L=E,Z=L.name;Z.toString().split(/\s*,\s*/).forEach(De=>{L.name=De,o.push(this.visitState(L,M))}),L.name=Z}else if(1==E.type){const L=this.visitTransition(E,M);Y+=L.queryCount,Ie+=L.depCount,d.push(L)}else M.errors.push(function F(){return new i.vHH(3007,!1)}())}),{type:7,name:w.name,states:o,transitions:d,queryCount:Y,depCount:Ie,options:null}}visitState(w,M){const Y=this.visitStyle(w.styles,M),Ie=w.options&&w.options.params||null;if(Y.containsDynamicStyles){const o=new Set,d=Ie||{};Y.styles.forEach(E=>{E instanceof Map&&E.forEach(L=>{bn(L).forEach(Z=>{d.hasOwnProperty(Z)||o.add(Z)})})}),o.size&&(vt(o.values()),M.errors.push(function z(Te,w){return new i.vHH(3008,!1)}()))}return{type:0,name:w.name,style:Y,options:Ie?{params:Ie}:null}}visitTransition(w,M){M.queryCount=0,M.depCount=0;const Y=mn(this,qt(w.animation),M);return{type:1,matchers:Tn(w.expr,M.errors),animation:Y,queryCount:M.queryCount,depCount:M.depCount,options:_i(w.options)}}visitSequence(w,M){return{type:2,steps:w.steps.map(Y=>mn(this,Y,M)),options:_i(w.options)}}visitGroup(w,M){const Y=M.currentTime;let Ie=0;const o=w.steps.map(d=>{M.currentTime=Y;const E=mn(this,d,M);return Ie=Math.max(Ie,M.currentTime),E});return M.currentTime=Ie,{type:3,steps:o,options:_i(w.options)}}visitAnimate(w,M){const Y=function Wi(Te,w){if(Te.hasOwnProperty("duration"))return Te;if("number"==typeof Te)return fi(Ue(Te,w).duration,0,"");const M=Te;if(M.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=fi(0,0,"");return o.dynamic=!0,o.strValue=M,o}const Ie=Ue(M,w);return fi(Ie.duration,Ie.delay,Ie.easing)}(w.timings,M.errors);M.currentAnimateTimings=Y;let Ie,o=w.styles?w.styles:(0,c.oB)({});if(5==o.type)Ie=this.visitKeyframes(o,M);else{let d=w.styles,E=!1;if(!d){E=!0;const Z={};Y.easing&&(Z.easing=Y.easing),d=(0,c.oB)(Z)}M.currentTime+=Y.duration+Y.delay;const L=this.visitStyle(d,M);L.isEmptyStep=E,Ie=L}return M.currentAnimateTimings=null,{type:4,timings:Y,style:Ie,options:null}}visitStyle(w,M){const Y=this._makeStyleAst(w,M);return this._validateStyleAst(Y,M),Y}_makeStyleAst(w,M){const Y=[],Ie=Array.isArray(w.styles)?w.styles:[w.styles];for(let E of Ie)"string"==typeof E?E===c.l3?Y.push(E):M.errors.push(new i.vHH(3002,!1)):Y.push(Pe(E));let o=!1,d=null;return Y.forEach(E=>{if(E instanceof Map&&(E.has("easing")&&(d=E.get("easing"),E.delete("easing")),!o))for(let L of E.values())if(L.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:Y,easing:d,offset:w.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(w,M){const Y=M.currentAnimateTimings;let Ie=M.currentTime,o=M.currentTime;Y&&o>0&&(o-=Y.duration+Y.delay),w.styles.forEach(d=>{"string"!=typeof d&&d.forEach((E,L)=>{const Z=M.collectedStyles.get(M.currentQuerySelector),De=Z.get(L);let Ze=!0;De&&(o!=Ie&&o>=De.startTime&&Ie<=De.endTime&&(M.errors.push(function ue(Te,w,M,Y,Ie){return new i.vHH(3010,!1)}()),Ze=!1),o=De.startTime),Ze&&Z.set(L,{startTime:o,endTime:Ie}),M.options&&function Ut(Te,w,M){const Y=w.params||{},Ie=bn(Te);Ie.length&&Ie.forEach(o=>{Y.hasOwnProperty(o)||M.push(function D(Te){return new i.vHH(3001,!1)}())})}(E,M.options,M.errors)})})}visitKeyframes(w,M){const Y={type:5,styles:[],options:null};if(!M.currentAnimateTimings)return M.errors.push(function le(){return new i.vHH(3011,!1)}()),Y;let o=0;const d=[];let E=!1,L=!1,Z=0;const De=w.steps.map(Lt=>{const Ot=this._makeStyleAst(Lt,M);let Ft=null!=Ot.offset?Ot.offset:function hr(Te){if("string"==typeof Te)return null;let w=null;if(Array.isArray(Te))Te.forEach(M=>{if(M instanceof Map&&M.has("offset")){const Y=M;w=parseFloat(Y.get("offset")),Y.delete("offset")}});else if(Te instanceof Map&&Te.has("offset")){const M=Te;w=parseFloat(M.get("offset")),M.delete("offset")}return w}(Ot.styles),Nt=0;return null!=Ft&&(o++,Nt=Ot.offset=Ft),L=L||Nt<0||Nt>1,E=E||Nt0&&o{const Ft=mt>0?Ot==At?1:mt*Ot:d[Ot],Nt=Ft*xt;M.currentTime=bt+Tt.delay+Nt,Tt.duration=Nt,this._validateStyleAst(Lt,M),Lt.offset=Ft,Y.styles.push(Lt)}),Y}visitReference(w,M){return{type:8,animation:mn(this,qt(w.animation),M),options:_i(w.options)}}visitAnimateChild(w,M){return M.depCount++,{type:9,options:_i(w.options)}}visitAnimateRef(w,M){return{type:10,animation:this.visitReference(w.animation,M),options:_i(w.options)}}visitQuery(w,M){const Y=M.currentQuerySelector,Ie=w.options||{};M.queryCount++,M.currentQuery=w;const[o,d]=function Xn(Te){const w=!!Te.split(/\s*,\s*/).find(M=>":self"==M);return w&&(Te=Te.replace(zn,"")),Te=Te.replace(/@\*/g,qe).replace(/@\w+/g,M=>qe+"-"+M.slice(1)).replace(/:animating/g,Fe),[Te,w]}(w.selector);M.currentQuerySelector=Y.length?Y+" "+o:o,nt(M.collectedStyles,M.currentQuerySelector,new Map);const E=mn(this,qt(w.animation),M);return M.currentQuery=null,M.currentQuerySelector=Y,{type:11,selector:o,limit:Ie.limit||0,optional:!!Ie.optional,includeSelf:d,animation:E,originalSelector:w.selector,options:_i(w.options)}}visitStagger(w,M){M.currentQuery||M.errors.push(function he(){return new i.vHH(3013,!1)}());const Y="full"===w.timings?{duration:0,delay:0,easing:"full"}:Ue(w.timings,M.errors,!0);return{type:12,animation:mn(this,qt(w.animation),M),timings:Y,options:null}}}class zi{constructor(w){this.errors=w,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function _i(Te){return Te?(Te=Ye(Te)).params&&(Te.params=function Ci(Te){return Te?Ye(Te):null}(Te.params)):Te={},Te}function fi(Te,w,M){return{duration:Te,delay:w,easing:M}}function nr(Te,w,M,Y,Ie,o,d=null,E=!1){return{type:1,element:Te,keyframes:w,preStyleProps:M,postStyleProps:Y,duration:Ie,delay:o,totalTime:Ie+o,easing:d,subTimeline:E}}class Ri{constructor(){this._map=new Map}get(w){return this._map.get(w)||[]}append(w,M){let Y=this._map.get(w);Y||this._map.set(w,Y=[]),Y.push(...M)}has(w){return this._map.has(w)}clear(){this._map.clear()}}const kr=new RegExp(":enter","g"),Fi=new RegExp(":leave","g");function Ti(Te,w,M,Y,Ie,o=new Map,d=new Map,E,L,Z=[]){return(new Sr).buildKeyframes(Te,w,M,Y,Ie,o,d,E,L,Z)}class Sr{buildKeyframes(w,M,Y,Ie,o,d,E,L,Z,De=[]){Z=Z||new Ri;const Ze=new qi(w,M,Z,Ie,o,De,[]);Ze.options=L;const mt=L.delay?ot(L.delay):0;Ze.currentTimeline.delayNextStep(mt),Ze.currentTimeline.setStyles([d],null,Ze.errors,L),mn(this,Y,Ze);const At=Ze.timelines.filter(bt=>bt.containsAnimation());if(At.length&&E.size){let bt;for(let Tt=At.length-1;Tt>=0;Tt--){const xt=At[Tt];if(xt.element===M){bt=xt;break}}bt&&!bt.allowOnlyTimelineStyles()&&bt.setStyles([E],null,Ze.errors,L)}return At.length?At.map(bt=>bt.buildKeyframes()):[nr(M,[],[],[],0,mt,"",!1)]}visitTrigger(w,M){}visitState(w,M){}visitTransition(w,M){}visitAnimateChild(w,M){const Y=M.subInstructions.get(M.element);if(Y){const Ie=M.createSubContext(w.options),o=M.currentTimeline.currentTime,d=this._visitSubInstructions(Y,Ie,Ie.options);o!=d&&M.transformIntoNewTimeline(d)}M.previousNode=w}visitAnimateRef(w,M){const Y=M.createSubContext(w.options);Y.transformIntoNewTimeline(),this.visitReference(w.animation,Y),M.transformIntoNewTimeline(Y.currentTimeline.currentTime),M.previousNode=w}_visitSubInstructions(w,M,Y){let o=M.currentTimeline.currentTime;const d=null!=Y.duration?ot(Y.duration):null,E=null!=Y.delay?ot(Y.delay):null;return 0!==d&&w.forEach(L=>{const Z=M.appendInstructionToTimeline(L,d,E);o=Math.max(o,Z.duration+Z.delay)}),o}visitReference(w,M){M.updateOptions(w.options,!0),mn(this,w.animation,M),M.previousNode=w}visitSequence(w,M){const Y=M.subContextCount;let Ie=M;const o=w.options;if(o&&(o.params||o.delay)&&(Ie=M.createSubContext(o),Ie.transformIntoNewTimeline(),null!=o.delay)){6==Ie.previousNode.type&&(Ie.currentTimeline.snapshotCurrentStyles(),Ie.previousNode=sr);const d=ot(o.delay);Ie.delayNextStep(d)}w.steps.length&&(w.steps.forEach(d=>mn(this,d,Ie)),Ie.currentTimeline.applyStylesToKeyframe(),Ie.subContextCount>Y&&Ie.transformIntoNewTimeline()),M.previousNode=w}visitGroup(w,M){const Y=[];let Ie=M.currentTimeline.currentTime;const o=w.options&&w.options.delay?ot(w.options.delay):0;w.steps.forEach(d=>{const E=M.createSubContext(w.options);o&&E.delayNextStep(o),mn(this,d,E),Ie=Math.max(Ie,E.currentTimeline.currentTime),Y.push(E.currentTimeline)}),Y.forEach(d=>M.currentTimeline.mergeTimelineCollectedStyles(d)),M.transformIntoNewTimeline(Ie),M.previousNode=w}_visitTiming(w,M){if(w.dynamic){const Y=w.strValue;return Ue(M.params?Rt(Y,M.params,M.errors):Y,M.errors)}return{duration:w.duration,delay:w.delay,easing:w.easing}}visitAnimate(w,M){const Y=M.currentAnimateTimings=this._visitTiming(w.timings,M),Ie=M.currentTimeline;Y.delay&&(M.incrementTime(Y.delay),Ie.snapshotCurrentStyles());const o=w.style;5==o.type?this.visitKeyframes(o,M):(M.incrementTime(Y.duration),this.visitStyle(o,M),Ie.applyStylesToKeyframe()),M.currentAnimateTimings=null,M.previousNode=w}visitStyle(w,M){const Y=M.currentTimeline,Ie=M.currentAnimateTimings;!Ie&&Y.hasCurrentStyleProperties()&&Y.forwardFrame();const o=Ie&&Ie.easing||w.easing;w.isEmptyStep?Y.applyEmptyStep(o):Y.setStyles(w.styles,o,M.errors,M.options),M.previousNode=w}visitKeyframes(w,M){const Y=M.currentAnimateTimings,Ie=M.currentTimeline.duration,o=Y.duration,E=M.createSubContext().currentTimeline;E.easing=Y.easing,w.styles.forEach(L=>{E.forwardTime((L.offset||0)*o),E.setStyles(L.styles,L.easing,M.errors,M.options),E.applyStylesToKeyframe()}),M.currentTimeline.mergeTimelineCollectedStyles(E),M.transformIntoNewTimeline(Ie+o),M.previousNode=w}visitQuery(w,M){const Y=M.currentTimeline.currentTime,Ie=w.options||{},o=Ie.delay?ot(Ie.delay):0;o&&(6===M.previousNode.type||0==Y&&M.currentTimeline.hasCurrentStyleProperties())&&(M.currentTimeline.snapshotCurrentStyles(),M.previousNode=sr);let d=Y;const E=M.invokeQuery(w.selector,w.originalSelector,w.limit,w.includeSelf,!!Ie.optional,M.errors);M.currentQueryTotal=E.length;let L=null;E.forEach((Z,De)=>{M.currentQueryIndex=De;const Ze=M.createSubContext(w.options,Z);o&&Ze.delayNextStep(o),Z===M.element&&(L=Ze.currentTimeline),mn(this,w.animation,Ze),Ze.currentTimeline.applyStylesToKeyframe(),d=Math.max(d,Ze.currentTimeline.currentTime)}),M.currentQueryIndex=0,M.currentQueryTotal=0,M.transformIntoNewTimeline(d),L&&(M.currentTimeline.mergeTimelineCollectedStyles(L),M.currentTimeline.snapshotCurrentStyles()),M.previousNode=w}visitStagger(w,M){const Y=M.parentContext,Ie=M.currentTimeline,o=w.timings,d=Math.abs(o.duration),E=d*(M.currentQueryTotal-1);let L=d*M.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":L=E-L;break;case"full":L=Y.currentStaggerTime}const De=M.currentTimeline;L&&De.delayNextStep(L);const Ze=De.currentTime;mn(this,w.animation,M),M.previousNode=w,Y.currentStaggerTime=Ie.currentTime-Ze+(Ie.startTime-Y.currentTimeline.startTime)}}const sr={};class qi{constructor(w,M,Y,Ie,o,d,E,L){this._driver=w,this.element=M,this.subInstructions=Y,this._enterClassName=Ie,this._leaveClassName=o,this.errors=d,this.timelines=E,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=sr,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=L||new fr(this._driver,M,0),E.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(w,M){if(!w)return;const Y=w;let Ie=this.options;null!=Y.duration&&(Ie.duration=ot(Y.duration)),null!=Y.delay&&(Ie.delay=ot(Y.delay));const o=Y.params;if(o){let d=Ie.params;d||(d=this.options.params={}),Object.keys(o).forEach(E=>{(!M||!d.hasOwnProperty(E))&&(d[E]=Rt(o[E],d,this.errors))})}}_copyOptions(){const w={};if(this.options){const M=this.options.params;if(M){const Y=w.params={};Object.keys(M).forEach(Ie=>{Y[Ie]=M[Ie]})}}return w}createSubContext(w=null,M,Y){const Ie=M||this.element,o=new qi(this._driver,Ie,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(Ie,Y||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(w),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(w){return this.previousNode=sr,this.currentTimeline=this.currentTimeline.fork(this.element,w),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(w,M,Y){const Ie={duration:M??w.duration,delay:this.currentTimeline.currentTime+(Y??0)+w.delay,easing:""},o=new Kr(this._driver,w.element,w.keyframes,w.preStyleProps,w.postStyleProps,Ie,w.stretchStartingKeyframe);return this.timelines.push(o),Ie}incrementTime(w){this.currentTimeline.forwardTime(this.currentTimeline.duration+w)}delayNextStep(w){w>0&&this.currentTimeline.delayNextStep(w)}invokeQuery(w,M,Y,Ie,o,d){let E=[];if(Ie&&E.push(this.element),w.length>0){w=(w=w.replace(kr,"."+this._enterClassName)).replace(Fi,"."+this._leaveClassName);let Z=this._driver.query(this.element,w,1!=Y);0!==Y&&(Z=Y<0?Z.slice(Z.length+Y,Z.length):Z.slice(0,Y)),E.push(...Z)}return!o&&0==E.length&&d.push(function se(Te){return new i.vHH(3014,!1)}()),E}}class fr{constructor(w,M,Y,Ie){this._driver=w,this.element=M,this.startTime=Y,this._elementTimelineStylesLookup=Ie,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(M),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(M,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(w){const M=1===this._keyframes.size&&this._pendingStyles.size;this.duration||M?(this.forwardTime(this.currentTime+w),M&&this.snapshotCurrentStyles()):this.startTime+=w}fork(w,M){return this.applyStylesToKeyframe(),new fr(this._driver,w,M||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(w){this.applyStylesToKeyframe(),this.duration=w,this._loadKeyframe()}_updateStyle(w,M){this._localTimelineStyles.set(w,M),this._globalTimelineStyles.set(w,M),this._styleSummary.set(w,{time:this.currentTime,value:M})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(w){w&&this._previousKeyframe.set("easing",w);for(let[M,Y]of this._globalTimelineStyles)this._backFill.set(M,Y||c.l3),this._currentKeyframe.set(M,c.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(w,M,Y,Ie){M&&this._previousKeyframe.set("easing",M);const o=Ie&&Ie.params||{},d=function Ni(Te,w){const M=new Map;let Y;return Te.forEach(Ie=>{if("*"===Ie){Y=Y||w.keys();for(let o of Y)M.set(o,c.l3)}else ut(Ie,M)}),M}(w,this._globalTimelineStyles);for(let[E,L]of d){const Z=Rt(L,o,Y);this._pendingStyles.set(E,Z),this._localTimelineStyles.has(E)||this._backFill.set(E,this._globalTimelineStyles.get(E)??c.l3),this._updateStyle(E,Z)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((w,M)=>{this._currentKeyframe.set(M,w)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((w,M)=>{this._currentKeyframe.has(M)||this._currentKeyframe.set(M,w)}))}snapshotCurrentStyles(){for(let[w,M]of this._localTimelineStyles)this._pendingStyles.set(w,M),this._updateStyle(w,M)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const w=[];for(let M in this._currentKeyframe)w.push(M);return w}mergeTimelineCollectedStyles(w){w._styleSummary.forEach((M,Y)=>{const Ie=this._styleSummary.get(Y);(!Ie||M.time>Ie.time)&&this._updateStyle(Y,M.value)})}buildKeyframes(){this.applyStylesToKeyframe();const w=new Set,M=new Set,Y=1===this._keyframes.size&&0===this.duration;let Ie=[];this._keyframes.forEach((E,L)=>{const Z=ut(E,new Map,this._backFill);Z.forEach((De,Ze)=>{De===c.k1?w.add(Ze):De===c.l3&&M.add(Ze)}),Y||Z.set("offset",L/this.duration),Ie.push(Z)});const o=w.size?vt(w.values()):[],d=M.size?vt(M.values()):[];if(Y){const E=Ie[0],L=new Map(E);E.set("offset",0),L.set("offset",1),Ie=[E,L]}return nr(this.element,Ie,o,d,this.duration,this.startTime,this.easing,!1)}}class Kr extends fr{constructor(w,M,Y,Ie,o,d,E=!1){super(w,M,d.delay),this.keyframes=Y,this.preStyleProps=Ie,this.postStyleProps=o,this._stretchStartingKeyframe=E,this.timings={duration:d.duration,delay:d.delay,easing:d.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let w=this.keyframes,{delay:M,duration:Y,easing:Ie}=this.timings;if(this._stretchStartingKeyframe&&M){const o=[],d=Y+M,E=M/d,L=ut(w[0]);L.set("offset",0),o.push(L);const Z=ut(w[0]);Z.set("offset",yi(E)),o.push(Z);const De=w.length-1;for(let Ze=1;Ze<=De;Ze++){let mt=ut(w[Ze]);const At=mt.get("offset");mt.set("offset",yi((M+At*Y)/d)),o.push(mt)}Y=d,M=0,Ie="",w=o}return nr(this.element,w,this.preStyleProps,this.postStyleProps,Y,M,Ie,!0)}}function yi(Te,w=3){const M=Math.pow(10,w-1);return Math.round(Te*M)/M}class or{}const Si=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class $r extends or{normalizePropertyName(w,M){return Bt(w)}normalizeStyleValue(w,M,Y,Ie){let o="";const d=Y.toString().trim();if(Si.has(M)&&0!==Y&&"0"!==Y)if("number"==typeof Y)o="px";else{const E=Y.match(/^[+-]?[\d\.]+([a-z]*)$/);E&&0==E[1].length&&Ie.push(function P(Te,w){return new i.vHH(3005,!1)}())}return d+o}}function pi(Te,w,M,Y,Ie,o,d,E,L,Z,De,Ze,mt){return{type:0,element:Te,triggerName:w,isRemovalTransition:Ie,fromState:M,fromStyles:o,toState:Y,toStyles:d,timelines:E,queriedElements:L,preStyleProps:Z,postStyleProps:De,totalTime:Ze,errors:mt}}const Yi={};class Li{constructor(w,M,Y){this._triggerName=w,this.ast=M,this._stateStyles=Y}match(w,M,Y,Ie){return function ir(Te,w,M,Y,Ie){return Te.some(o=>o(w,M,Y,Ie))}(this.ast.matchers,w,M,Y,Ie)}buildStyles(w,M,Y){let Ie=this._stateStyles.get("*");return void 0!==w&&(Ie=this._stateStyles.get(w?.toString())||Ie),Ie?Ie.buildStyles(M,Y):new Map}build(w,M,Y,Ie,o,d,E,L,Z,De){const Ze=[],mt=this.ast.options&&this.ast.options.params||Yi,bt=this.buildStyles(Y,E&&E.params||Yi,Ze),Tt=L&&L.params||Yi,xt=this.buildStyles(Ie,Tt,Ze),Lt=new Set,Ot=new Map,Ft=new Map,Nt="void"===Ie,Vt={params:Oi(Tt,mt),delay:this.ast.options?.delay},Wt=De?[]:Ti(w,M,this.ast.animation,o,d,bt,xt,Vt,Z,Ze);let zt=0;if(Wt.forEach(tn=>{zt=Math.max(tn.duration+tn.delay,zt)}),Ze.length)return pi(M,this._triggerName,Y,Ie,Nt,bt,xt,[],[],Ot,Ft,zt,Ze);Wt.forEach(tn=>{const sn=tn.element,_n=nt(Ot,sn,new Set);tn.preStyleProps.forEach(gn=>_n.add(gn));const hn=nt(Ft,sn,new Set);tn.postStyleProps.forEach(gn=>hn.add(gn)),sn!==M&&Lt.add(sn)});const Qt=vt(Lt.values());return pi(M,this._triggerName,Y,Ie,Nt,bt,xt,Wt,Qt,Ot,Ft,zt)}}function Oi(Te,w){const M=Ye(w);for(const Y in Te)Te.hasOwnProperty(Y)&&null!=Te[Y]&&(M[Y]=Te[Y]);return M}class Pr{constructor(w,M,Y){this.styles=w,this.defaultParams=M,this.normalizer=Y}buildStyles(w,M){const Y=new Map,Ie=Ye(this.defaultParams);return Object.keys(w).forEach(o=>{const d=w[o];null!==d&&(Ie[o]=d)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((d,E)=>{d&&(d=Rt(d,Ie,M));const L=this.normalizer.normalizePropertyName(E,M);d=this.normalizer.normalizeStyleValue(E,L,d,M),Y.set(L,d)})}),Y}}class Vi{constructor(w,M,Y){this.name=w,this.ast=M,this._normalizer=Y,this.transitionFactories=[],this.states=new Map,M.states.forEach(Ie=>{this.states.set(Ie.name,new Pr(Ie.style,Ie.options&&Ie.options.params||{},Y))}),Ir(this.states,"true","1"),Ir(this.states,"false","0"),M.transitions.forEach(Ie=>{this.transitionFactories.push(new Li(w,Ie,this.states))}),this.fallbackTransition=function ar(Te,w,M){return new Li(Te,{type:1,animation:{type:2,steps:[],options:null},matchers:[(d,E)=>!0],options:null,queryCount:0,depCount:0},w)}(w,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(w,M,Y,Ie){return this.transitionFactories.find(d=>d.match(w,M,Y,Ie))||null}matchStyles(w,M,Y){return this.fallbackTransition.buildStyles(w,M,Y)}}function Ir(Te,w,M){Te.has(w)?Te.has(M)||Te.set(M,Te.get(w)):Te.has(M)&&Te.set(w,Te.get(M))}const pr=new Ri;class lr{constructor(w,M,Y){this.bodyNode=w,this._driver=M,this._normalizer=Y,this._animations=new Map,this._playersById=new Map,this.players=[]}register(w,M){const Y=[],o=si(this._driver,M,Y,[]);if(Y.length)throw function Xe(Te){return new i.vHH(3503,!1)}();this._animations.set(w,o)}_buildPlayer(w,M,Y){const Ie=w.element,o=Mt(0,this._normalizer,0,w.keyframes,M,Y);return this._driver.animate(Ie,o,w.duration,w.delay,w.easing,[],!0)}create(w,M,Y={}){const Ie=[],o=this._animations.get(w);let d;const E=new Map;if(o?(d=Ti(this._driver,M,o,ht,Et,new Map,new Map,Y,pr,Ie),d.forEach(De=>{const Ze=nt(E,De.element,new Map);De.postStyleProps.forEach(mt=>Ze.set(mt,null))})):(Ie.push(function Ae(){return new i.vHH(3300,!1)}()),d=[]),Ie.length)throw function yt(Te){return new i.vHH(3504,!1)}();E.forEach((De,Ze)=>{De.forEach((mt,At)=>{De.set(At,this._driver.computeStyle(Ze,At,c.l3))})});const Z=et(d.map(De=>{const Ze=E.get(De.element);return this._buildPlayer(De,new Map,Ze)}));return this._playersById.set(w,Z),Z.onDestroy(()=>this.destroy(w)),this.players.push(Z),Z}destroy(w){const M=this._getPlayer(w);M.destroy(),this._playersById.delete(w);const Y=this.players.indexOf(M);Y>=0&&this.players.splice(Y,1)}_getPlayer(w){const M=this._playersById.get(w);if(!M)throw function ft(Te){return new i.vHH(3301,!1)}();return M}listen(w,M,Y,Ie){const o=at(M,"","","");return _t(this._getPlayer(w),Y,o,Ie),()=>{}}command(w,M,Y,Ie){if("register"==Y)return void this.register(w,Ie[0]);if("create"==Y)return void this.create(w,M,Ie[0]||{});const o=this._getPlayer(w);switch(Y){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(Ie[0]));break;case"destroy":this.destroy(w)}}}const wi="ng-animate-queued",Xi="ng-animate-disabled",Jn=[],wr={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Cr={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},vi="__ng_removed";class Di{constructor(w,M=""){this.namespaceId=M;const Y=w&&w.hasOwnProperty("value");if(this.value=function q(Te){return Te??null}(Y?w.value:w),Y){const o=Ye(w);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(w){const M=w.params;if(M){const Y=this.options.params;Object.keys(M).forEach(Ie=>{null==Y[Ie]&&(Y[Ie]=M[Ie])})}}}const Ki="void",Hi=new Di(Ki);class ji{constructor(w,M,Y){this.id=w,this.hostElement=M,this._engine=Y,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+w,Gn(M,this._hostClassName)}listen(w,M,Y,Ie){if(!this._triggers.has(M))throw function Yt(Te,w){return new i.vHH(3302,!1)}();if(null==Y||0==Y.length)throw function Dt(Te){return new i.vHH(3303,!1)}();if(!function kt(Te){return"start"==Te||"done"==Te}(Y))throw function jt(Te,w){return new i.vHH(3400,!1)}();const o=nt(this._elementListeners,w,[]),d={name:M,phase:Y,callback:Ie};o.push(d);const E=nt(this._engine.statesByElement,w,new Map);return E.has(M)||(Gn(w,ye),Gn(w,ye+"-"+M),E.set(M,Hi)),()=>{this._engine.afterFlush(()=>{const L=o.indexOf(d);L>=0&&o.splice(L,1),this._triggers.has(M)||E.delete(M)})}}register(w,M){return!this._triggers.has(w)&&(this._triggers.set(w,M),!0)}_getTrigger(w){const M=this._triggers.get(w);if(!M)throw function V(Te){return new i.vHH(3401,!1)}();return M}trigger(w,M,Y,Ie=!0){const o=this._getTrigger(M),d=new J(this.id,M,w);let E=this._engine.statesByElement.get(w);E||(Gn(w,ye),Gn(w,ye+"-"+M),this._engine.statesByElement.set(w,E=new Map));let L=E.get(M);const Z=new Di(Y,this.id);if(!(Y&&Y.hasOwnProperty("value"))&&L&&Z.absorbOptions(L.options),E.set(M,Z),L||(L=Hi),Z.value!==Ki&&L.value===Z.value){if(!function Kn(Te,w){const M=Object.keys(Te),Y=Object.keys(w);if(M.length!=Y.length)return!1;for(let Ie=0;Ie{rt(w,xt),We(w,Lt)})}return}const mt=nt(this._engine.playersByElement,w,[]);mt.forEach(Tt=>{Tt.namespaceId==this.id&&Tt.triggerName==M&&Tt.queued&&Tt.destroy()});let At=o.matchTransition(L.value,Z.value,w,Z.params),bt=!1;if(!At){if(!Ie)return;At=o.fallbackTransition,bt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:w,triggerName:M,transition:At,fromState:L,toState:Z,player:d,isFallbackTransition:bt}),bt||(Gn(w,wi),d.onStart(()=>{Wn(w,wi)})),d.onDone(()=>{let Tt=this.players.indexOf(d);Tt>=0&&this.players.splice(Tt,1);const xt=this._engine.playersByElement.get(w);if(xt){let Lt=xt.indexOf(d);Lt>=0&&xt.splice(Lt,1)}}),this.players.push(d),mt.push(d),d}deregister(w){this._triggers.delete(w),this._engine.statesByElement.forEach(M=>M.delete(w)),this._elementListeners.forEach((M,Y)=>{this._elementListeners.set(Y,M.filter(Ie=>Ie.name!=w))})}clearElementCache(w){this._engine.statesByElement.delete(w),this._elementListeners.delete(w);const M=this._engine.playersByElement.get(w);M&&(M.forEach(Y=>Y.destroy()),this._engine.playersByElement.delete(w))}_signalRemovalForInnerTriggers(w,M){const Y=this._engine.driver.query(w,qe,!0);Y.forEach(Ie=>{if(Ie[vi])return;const o=this._engine.fetchNamespacesByElement(Ie);o.size?o.forEach(d=>d.triggerLeaveAnimation(Ie,M,!1,!0)):this.clearElementCache(Ie)}),this._engine.afterFlushAnimationsDone(()=>Y.forEach(Ie=>this.clearElementCache(Ie)))}triggerLeaveAnimation(w,M,Y,Ie){const o=this._engine.statesByElement.get(w),d=new Map;if(o){const E=[];if(o.forEach((L,Z)=>{if(d.set(Z,L.value),this._triggers.has(Z)){const De=this.trigger(w,Z,Ki,Ie);De&&E.push(De)}}),E.length)return this._engine.markElementAsRemoved(this.id,w,!0,M,d),Y&&et(E).onDone(()=>this._engine.processLeaveNode(w)),!0}return!1}prepareLeaveAnimationListeners(w){const M=this._elementListeners.get(w),Y=this._engine.statesByElement.get(w);if(M&&Y){const Ie=new Set;M.forEach(o=>{const d=o.name;if(Ie.has(d))return;Ie.add(d);const L=this._triggers.get(d).fallbackTransition,Z=Y.get(d)||Hi,De=new Di(Ki),Ze=new J(this.id,d,w);this._engine.totalQueuedPlayers++,this._queue.push({element:w,triggerName:d,transition:L,fromState:Z,toState:De,player:Ze,isFallbackTransition:!0})})}}removeNode(w,M){const Y=this._engine;if(w.childElementCount&&this._signalRemovalForInnerTriggers(w,M),this.triggerLeaveAnimation(w,M,!0))return;let Ie=!1;if(Y.totalAnimations){const o=Y.players.length?Y.playersByQueriedElement.get(w):[];if(o&&o.length)Ie=!0;else{let d=w;for(;d=d.parentNode;)if(Y.statesByElement.get(d)){Ie=!0;break}}}if(this.prepareLeaveAnimationListeners(w),Ie)Y.markElementAsRemoved(this.id,w,!1,M);else{const o=w[vi];(!o||o===wr)&&(Y.afterFlush(()=>this.clearElementCache(w)),Y.destroyInnerAnimations(w),Y._onRemovalComplete(w,M))}}insertNode(w,M){Gn(w,this._hostClassName)}drainQueuedTransitions(w){const M=[];return this._queue.forEach(Y=>{const Ie=Y.player;if(Ie.destroyed)return;const o=Y.element,d=this._elementListeners.get(o);d&&d.forEach(E=>{if(E.name==Y.triggerName){const L=at(o,Y.triggerName,Y.fromState.value,Y.toState.value);L._data=w,_t(Y.player,E.phase,L,E.callback)}}),Ie.markedForDestroy?this._engine.afterFlush(()=>{Ie.destroy()}):M.push(Y)}),this._queue=[],M.sort((Y,Ie)=>{const o=Y.transition.ast.depCount,d=Ie.transition.ast.depCount;return 0==o||0==d?o-d:this._engine.driver.containsElement(Y.element,Ie.element)?1:-1})}destroy(w){this.players.forEach(M=>M.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,w)}elementContainsData(w){let M=!1;return this._elementListeners.has(w)&&(M=!0),M=!!this._queue.find(Y=>Y.element===w)||M,M}}class Ei{constructor(w,M,Y){this.bodyNode=w,this.driver=M,this._normalizer=Y,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(Ie,o)=>{}}_onRemovalComplete(w,M){this.onRemovalComplete(w,M)}get queuedPlayers(){const w=[];return this._namespaceList.forEach(M=>{M.players.forEach(Y=>{Y.queued&&w.push(Y)})}),w}createNamespace(w,M){const Y=new ji(w,M,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,M)?this._balanceNamespaceList(Y,M):(this.newHostElements.set(M,Y),this.collectEnterElement(M)),this._namespaceLookup[w]=Y}_balanceNamespaceList(w,M){const Y=this._namespaceList,Ie=this.namespacesByHostElement;if(Y.length-1>=0){let d=!1,E=this.driver.getParentElement(M);for(;E;){const L=Ie.get(E);if(L){const Z=Y.indexOf(L);Y.splice(Z+1,0,w),d=!0;break}E=this.driver.getParentElement(E)}d||Y.unshift(w)}else Y.push(w);return Ie.set(M,w),w}register(w,M){let Y=this._namespaceLookup[w];return Y||(Y=this.createNamespace(w,M)),Y}registerTrigger(w,M,Y){let Ie=this._namespaceLookup[w];Ie&&Ie.register(M,Y)&&this.totalAnimations++}destroy(w,M){if(!w)return;const Y=this._fetchNamespace(w);this.afterFlush(()=>{this.namespacesByHostElement.delete(Y.hostElement),delete this._namespaceLookup[w];const Ie=this._namespaceList.indexOf(Y);Ie>=0&&this._namespaceList.splice(Ie,1)}),this.afterFlushAnimationsDone(()=>Y.destroy(M))}_fetchNamespace(w){return this._namespaceLookup[w]}fetchNamespacesByElement(w){const M=new Set,Y=this.statesByElement.get(w);if(Y)for(let Ie of Y.values())if(Ie.namespaceId){const o=this._fetchNamespace(Ie.namespaceId);o&&M.add(o)}return M}trigger(w,M,Y,Ie){if(Qe(M)){const o=this._fetchNamespace(w);if(o)return o.trigger(M,Y,Ie),!0}return!1}insertNode(w,M,Y,Ie){if(!Qe(M))return;const o=M[vi];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const d=this.collectedLeaveElements.indexOf(M);d>=0&&this.collectedLeaveElements.splice(d,1)}if(w){const d=this._fetchNamespace(w);d&&d.insertNode(M,Y)}Ie&&this.collectEnterElement(M)}collectEnterElement(w){this.collectedEnterElements.push(w)}markElementAsDisabled(w,M){M?this.disabledNodes.has(w)||(this.disabledNodes.add(w),Gn(w,Xi)):this.disabledNodes.has(w)&&(this.disabledNodes.delete(w),Wn(w,Xi))}removeNode(w,M,Y,Ie){if(Qe(M)){const o=w?this._fetchNamespace(w):null;if(o?o.removeNode(M,Ie):this.markElementAsRemoved(w,M,!1,Ie),Y){const d=this.namespacesByHostElement.get(M);d&&d.id!==w&&d.removeNode(M,Ie)}}else this._onRemovalComplete(M,Ie)}markElementAsRemoved(w,M,Y,Ie,o){this.collectedLeaveElements.push(M),M[vi]={namespaceId:w,setForRemoval:Ie,hasAnimation:Y,removedBeforeQueried:!1,previousTriggersValues:o}}listen(w,M,Y,Ie,o){return Qe(M)?this._fetchNamespace(w).listen(M,Y,Ie,o):()=>{}}_buildInstruction(w,M,Y,Ie,o){return w.transition.build(this.driver,w.element,w.fromState.value,w.toState.value,Y,Ie,w.fromState.options,w.toState.options,M,o)}destroyInnerAnimations(w){let M=this.driver.query(w,qe,!0);M.forEach(Y=>this.destroyActiveAnimationsForElement(Y)),0!=this.playersByQueriedElement.size&&(M=this.driver.query(w,Fe,!0),M.forEach(Y=>this.finishActiveQueriedAnimationOnElement(Y)))}destroyActiveAnimationsForElement(w){const M=this.playersByElement.get(w);M&&M.forEach(Y=>{Y.queued?Y.markedForDestroy=!0:Y.destroy()})}finishActiveQueriedAnimationOnElement(w){const M=this.playersByQueriedElement.get(w);M&&M.forEach(Y=>Y.finish())}whenRenderingDone(){return new Promise(w=>{if(this.players.length)return et(this.players).onDone(()=>w());w()})}processLeaveNode(w){const M=w[vi];if(M&&M.setForRemoval){if(w[vi]=wr,M.namespaceId){this.destroyInnerAnimations(w);const Y=this._fetchNamespace(M.namespaceId);Y&&Y.clearElementCache(w)}this._onRemovalComplete(w,M.setForRemoval)}w.classList?.contains(Xi)&&this.markElementAsDisabled(w,!1),this.driver.query(w,".ng-animate-disabled",!0).forEach(Y=>{this.markElementAsDisabled(Y,!1)})}flush(w=-1){let M=[];if(this.newHostElements.size&&(this.newHostElements.forEach((Y,Ie)=>this._balanceNamespaceList(Y,Ie)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let Y=0;YY()),this._flushFns=[],this._whenQuietFns.length){const Y=this._whenQuietFns;this._whenQuietFns=[],M.length?et(M).onDone(()=>{Y.forEach(Ie=>Ie())}):Y.forEach(Ie=>Ie())}}reportError(w){throw function Ee(Te){return new i.vHH(3402,!1)}()}_flushAnimations(w,M){const Y=new Ri,Ie=[],o=new Map,d=[],E=new Map,L=new Map,Z=new Map,De=new Set;this.disabledNodes.forEach(cn=>{De.add(cn);const dn=this.driver.query(cn,".ng-animate-queued",!0);for(let pn=0;pn{const pn=ht+Tt++;bt.set(dn,pn),cn.forEach(Cn=>Gn(Cn,pn))});const xt=[],Lt=new Set,Ot=new Set;for(let cn=0;cnLt.add(Cn)):Ot.add(dn))}const Ft=new Map,Nt=Sn(mt,Array.from(Lt));Nt.forEach((cn,dn)=>{const pn=Et+Tt++;Ft.set(dn,pn),cn.forEach(Cn=>Gn(Cn,pn))}),w.push(()=>{At.forEach((cn,dn)=>{const pn=bt.get(dn);cn.forEach(Cn=>Wn(Cn,pn))}),Nt.forEach((cn,dn)=>{const pn=Ft.get(dn);cn.forEach(Cn=>Wn(Cn,pn))}),xt.forEach(cn=>{this.processLeaveNode(cn)})});const Vt=[],Wt=[];for(let cn=this._namespaceList.length-1;cn>=0;cn--)this._namespaceList[cn].drainQueuedTransitions(M).forEach(pn=>{const Cn=pn.player,Qn=pn.element;if(Vt.push(Cn),this.collectedEnterElements.length){const Mi=Qn[vi];if(Mi&&Mi.setForMove){if(Mi.previousTriggersValues&&Mi.previousTriggersValues.has(pn.triggerName)){const is=Mi.previousTriggersValues.get(pn.triggerName),dr=this.statesByElement.get(pn.element);if(dr&&dr.has(pn.triggerName)){const ps=dr.get(pn.triggerName);ps.value=is,dr.set(pn.triggerName,ps)}}return void Cn.destroy()}}const Pn=!Ze||!this.driver.containsElement(Ze,Qn),ei=Ft.get(Qn),ri=bt.get(Qn),oi=this._buildInstruction(pn,Y,ri,ei,Pn);if(oi.errors&&oi.errors.length)return void Wt.push(oi);if(Pn)return Cn.onStart(()=>rt(Qn,oi.fromStyles)),Cn.onDestroy(()=>We(Qn,oi.toStyles)),void Ie.push(Cn);if(pn.isFallbackTransition)return Cn.onStart(()=>rt(Qn,oi.fromStyles)),Cn.onDestroy(()=>We(Qn,oi.toStyles)),void Ie.push(Cn);const xi=[];oi.timelines.forEach(Mi=>{Mi.stretchStartingKeyframe=!0,this.disabledNodes.has(Mi.element)||xi.push(Mi)}),oi.timelines=xi,Y.append(Qn,oi.timelines),d.push({instruction:oi,player:Cn,element:Qn}),oi.queriedElements.forEach(Mi=>nt(E,Mi,[]).push(Cn)),oi.preStyleProps.forEach((Mi,is)=>{if(Mi.size){let dr=L.get(is);dr||L.set(is,dr=new Set),Mi.forEach((ps,Rs)=>dr.add(Rs))}}),oi.postStyleProps.forEach((Mi,is)=>{let dr=Z.get(is);dr||Z.set(is,dr=new Set),Mi.forEach((ps,Rs)=>dr.add(Rs))})});if(Wt.length){const cn=[];Wt.forEach(dn=>{cn.push(function _e(Te,w){return new i.vHH(3505,!1)}())}),Vt.forEach(dn=>dn.destroy()),this.reportError(cn)}const zt=new Map,Qt=new Map;d.forEach(cn=>{const dn=cn.element;Y.has(dn)&&(Qt.set(dn,dn),this._beforeAnimationBuild(cn.player.namespaceId,cn.instruction,zt))}),Ie.forEach(cn=>{const dn=cn.element;this._getPreviousPlayers(dn,!1,cn.namespaceId,cn.triggerName,null).forEach(Cn=>{nt(zt,dn,[]).push(Cn),Cn.destroy()})});const tn=xt.filter(cn=>di(cn,L,Z)),sn=new Map;Kt(sn,this.driver,Ot,Z,c.l3).forEach(cn=>{di(cn,L,Z)&&tn.push(cn)});const hn=new Map;At.forEach((cn,dn)=>{Kt(hn,this.driver,new Set(cn),L,c.k1)}),tn.forEach(cn=>{const dn=sn.get(cn),pn=hn.get(cn);sn.set(cn,new Map([...Array.from(dn?.entries()??[]),...Array.from(pn?.entries()??[])]))});const gn=[],vn=[],yn={};d.forEach(cn=>{const{element:dn,player:pn,instruction:Cn}=cn;if(Y.has(dn)){if(De.has(dn))return pn.onDestroy(()=>We(dn,Cn.toStyles)),pn.disabled=!0,pn.overrideTotalTime(Cn.totalTime),void Ie.push(pn);let Qn=yn;if(Qt.size>1){let ei=dn;const ri=[];for(;ei=ei.parentNode;){const oi=Qt.get(ei);if(oi){Qn=oi;break}ri.push(ei)}ri.forEach(oi=>Qt.set(oi,Qn))}const Pn=this._buildAnimation(pn.namespaceId,Cn,zt,o,hn,sn);if(pn.setRealPlayer(Pn),Qn===yn)gn.push(pn);else{const ei=this.playersByElement.get(Qn);ei&&ei.length&&(pn.parentPlayer=et(ei)),Ie.push(pn)}}else rt(dn,Cn.fromStyles),pn.onDestroy(()=>We(dn,Cn.toStyles)),vn.push(pn),De.has(dn)&&Ie.push(pn)}),vn.forEach(cn=>{const dn=o.get(cn.element);if(dn&&dn.length){const pn=et(dn);cn.setRealPlayer(pn)}}),Ie.forEach(cn=>{cn.parentPlayer?cn.syncPlayerEvents(cn.parentPlayer):cn.destroy()});for(let cn=0;cn!Pn.destroyed);Qn.length?ii(this,dn,Qn):this.processLeaveNode(dn)}return xt.length=0,gn.forEach(cn=>{this.players.push(cn),cn.onDone(()=>{cn.destroy();const dn=this.players.indexOf(cn);this.players.splice(dn,1)}),cn.play()}),gn}elementContainsData(w,M){let Y=!1;const Ie=M[vi];return Ie&&Ie.setForRemoval&&(Y=!0),this.playersByElement.has(M)&&(Y=!0),this.playersByQueriedElement.has(M)&&(Y=!0),this.statesByElement.has(M)&&(Y=!0),this._fetchNamespace(w).elementContainsData(M)||Y}afterFlush(w){this._flushFns.push(w)}afterFlushAnimationsDone(w){this._whenQuietFns.push(w)}_getPreviousPlayers(w,M,Y,Ie,o){let d=[];if(M){const E=this.playersByQueriedElement.get(w);E&&(d=E)}else{const E=this.playersByElement.get(w);if(E){const L=!o||o==Ki;E.forEach(Z=>{Z.queued||!L&&Z.triggerName!=Ie||d.push(Z)})}}return(Y||Ie)&&(d=d.filter(E=>!(Y&&Y!=E.namespaceId||Ie&&Ie!=E.triggerName))),d}_beforeAnimationBuild(w,M,Y){const o=M.element,d=M.isRemovalTransition?void 0:w,E=M.isRemovalTransition?void 0:M.triggerName;for(const L of M.timelines){const Z=L.element,De=Z!==o,Ze=nt(Y,Z,[]);this._getPreviousPlayers(Z,De,d,E,M.toState).forEach(At=>{const bt=At.getRealPlayer();bt.beforeDestroy&&bt.beforeDestroy(),At.destroy(),Ze.push(At)})}rt(o,M.fromStyles)}_buildAnimation(w,M,Y,Ie,o,d){const E=M.triggerName,L=M.element,Z=[],De=new Set,Ze=new Set,mt=M.timelines.map(bt=>{const Tt=bt.element;De.add(Tt);const xt=Tt[vi];if(xt&&xt.removedBeforeQueried)return new c.ZN(bt.duration,bt.delay);const Lt=Tt!==L,Ot=function Nn(Te){const w=[];return Yn(Te,w),w}((Y.get(Tt)||Jn).map(zt=>zt.getRealPlayer())).filter(zt=>!!zt.element&&zt.element===Tt),Ft=o.get(Tt),Nt=d.get(Tt),Vt=Mt(0,this._normalizer,0,bt.keyframes,Ft,Nt),Wt=this._buildPlayer(bt,Vt,Ot);if(bt.subTimeline&&Ie&&Ze.add(Tt),Lt){const zt=new J(w,E,Tt);zt.setRealPlayer(Wt),Z.push(zt)}return Wt});Z.forEach(bt=>{nt(this.playersByQueriedElement,bt.element,[]).push(bt),bt.onDone(()=>function Ve(Te,w,M){let Y=Te.get(w);if(Y){if(Y.length){const Ie=Y.indexOf(M);Y.splice(Ie,1)}0==Y.length&&Te.delete(w)}return Y}(this.playersByQueriedElement,bt.element,bt))}),De.forEach(bt=>Gn(bt,xe));const At=et(mt);return At.onDestroy(()=>{De.forEach(bt=>Wn(bt,xe)),We(L,M.toStyles)}),Ze.forEach(bt=>{nt(Ie,bt,[]).push(At)}),At}_buildPlayer(w,M,Y){return M.length>0?this.driver.animate(w.element,M,w.duration,w.delay,w.easing,Y):new c.ZN(w.duration,w.delay)}}class J{constructor(w,M,Y){this.namespaceId=w,this.triggerName=M,this.element=Y,this._player=new c.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(w){this._containsRealPlayer||(this._player=w,this._queuedCallbacks.forEach((M,Y)=>{M.forEach(Ie=>_t(w,Y,void 0,Ie))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(w.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(w){this.totalTime=w}syncPlayerEvents(w){const M=this._player;M.triggerCallback&&w.onStart(()=>M.triggerCallback("start")),w.onDone(()=>this.finish()),w.onDestroy(()=>this.destroy())}_queueEvent(w,M){nt(this._queuedCallbacks,w,[]).push(M)}onDone(w){this.queued&&this._queueEvent("done",w),this._player.onDone(w)}onStart(w){this.queued&&this._queueEvent("start",w),this._player.onStart(w)}onDestroy(w){this.queued&&this._queueEvent("destroy",w),this._player.onDestroy(w)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(w){this.queued||this._player.setPosition(w)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(w){const M=this._player;M.triggerCallback&&M.triggerCallback(w)}}function Qe(Te){return Te&&1===Te.nodeType}function Xt(Te,w){const M=Te.style.display;return Te.style.display=w??"none",M}function Kt(Te,w,M,Y,Ie){const o=[];M.forEach(L=>o.push(Xt(L)));const d=[];Y.forEach((L,Z)=>{const De=new Map;L.forEach(Ze=>{const mt=w.computeStyle(Z,Ze,Ie);De.set(Ze,mt),(!mt||0==mt.length)&&(Z[vi]=Cr,d.push(Z))}),Te.set(Z,De)});let E=0;return M.forEach(L=>Xt(L,o[E++])),d}function Sn(Te,w){const M=new Map;if(Te.forEach(E=>M.set(E,[])),0==w.length)return M;const Ie=new Set(w),o=new Map;function d(E){if(!E)return 1;let L=o.get(E);if(L)return L;const Z=E.parentNode;return L=M.has(Z)?Z:Ie.has(Z)?1:d(Z),o.set(E,L),L}return w.forEach(E=>{const L=d(E);1!==L&&M.get(L).push(E)}),M}function Gn(Te,w){Te.classList?.add(w)}function Wn(Te,w){Te.classList?.remove(w)}function ii(Te,w,M){et(M).onDone(()=>Te.processLeaveNode(w))}function Yn(Te,w){for(let M=0;MIe.add(o)):w.set(Te,Y),M.delete(Te),!0}class on{constructor(w,M,Y){this.bodyNode=w,this._driver=M,this._normalizer=Y,this._triggerCache={},this.onRemovalComplete=(Ie,o)=>{},this._transitionEngine=new Ei(w,M,Y),this._timelineEngine=new lr(w,M,Y),this._transitionEngine.onRemovalComplete=(Ie,o)=>this.onRemovalComplete(Ie,o)}registerTrigger(w,M,Y,Ie,o){const d=w+"-"+Ie;let E=this._triggerCache[d];if(!E){const L=[],De=si(this._driver,o,L,[]);if(L.length)throw function tt(Te,w){return new i.vHH(3404,!1)}();E=function zr(Te,w,M){return new Vi(Te,w,M)}(Ie,De,this._normalizer),this._triggerCache[d]=E}this._transitionEngine.registerTrigger(M,Ie,E)}register(w,M){this._transitionEngine.register(w,M)}destroy(w,M){this._transitionEngine.destroy(w,M)}onInsert(w,M,Y,Ie){this._transitionEngine.insertNode(w,M,Y,Ie)}onRemove(w,M,Y,Ie){this._transitionEngine.removeNode(w,M,Ie||!1,Y)}disableAnimations(w,M){this._transitionEngine.markElementAsDisabled(w,M)}process(w,M,Y,Ie){if("@"==Y.charAt(0)){const[o,d]=Q(Y);this._timelineEngine.command(o,M,d,Ie)}else this._transitionEngine.trigger(w,M,Y,Ie)}listen(w,M,Y,Ie,o){if("@"==Y.charAt(0)){const[d,E]=Q(Y);return this._timelineEngine.listen(d,M,E,o)}return this._transitionEngine.listen(w,M,Y,Ie,o)}flush(w=-1){this._transitionEngine.flush(w)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let cr=(()=>{class Te{constructor(M,Y,Ie){this._element=M,this._startStyles=Y,this._endStyles=Ie,this._state=0;let o=Te.initialStylesByElement.get(M);o||Te.initialStylesByElement.set(M,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&We(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(We(this._element,this._initialStyles),this._endStyles&&(We(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Te.initialStylesByElement.delete(this._element),this._startStyles&&(rt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(rt(this._element,this._endStyles),this._endStyles=null),We(this._element,this._initialStyles),this._state=3)}}return Te.initialStylesByElement=new WeakMap,Te})();function Ii(Te){let w=null;return Te.forEach((M,Y)=>{(function li(Te){return"display"===Te||"position"===Te})(Y)&&(w=w||new Map,w.set(Y,M))}),w}class Dr{constructor(w,M,Y,Ie){this.element=w,this.keyframes=M,this.options=Y,this._specialStyles=Ie,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=Y.duration,this._delay=Y.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(w=>w()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const w=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,w,this.options),this._finalKeyframe=w.length?w[w.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(w){const M=[];return w.forEach(Y=>{M.push(Object.fromEntries(Y))}),M}_triggerWebAnimation(w,M,Y){return w.animate(this._convertKeyframesToObject(M),Y)}onStart(w){this._originalOnStartFns.push(w),this._onStartFns.push(w)}onDone(w){this._originalOnDoneFns.push(w),this._onDoneFns.push(w)}onDestroy(w){this._onDestroyFns.push(w)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(w=>w()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(w=>w()),this._onDestroyFns=[])}setPosition(w){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=w*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const w=new Map;this.hasStarted()&&this._finalKeyframe.forEach((Y,Ie)=>{"offset"!==Ie&&w.set(Ie,this._finished?Y:On(this.element,Ie))}),this.currentSnapshot=w}triggerCallback(w){const M="start"===w?this._onStartFns:this._onDoneFns;M.forEach(Y=>Y()),M.length=0}}class Qi{validateStyleProperty(w){return!0}validateAnimatableStyleProperty(w){return!0}matchesElement(w,M){return!1}containsElement(w,M){return H(w,M)}getParentElement(w){return U(w)}query(w,M,Y){return f(w,M,Y)}computeStyle(w,M,Y){return window.getComputedStyle(w)[M]}animate(w,M,Y,Ie,o,d=[]){const L={duration:Y,delay:Ie,fill:0==Ie?"both":"forwards"};o&&(L.easing=o);const Z=new Map,De=d.filter(At=>At instanceof Dr);(function xn(Te,w){return 0===Te||0===w})(Y,Ie)&&De.forEach(At=>{At.currentSnapshot.forEach((bt,Tt)=>Z.set(Tt,bt))});let Ze=function wt(Te){return Te.length?Te[0]instanceof Map?Te:Te.map(w=>Pe(w)):[]}(M).map(At=>ut(At));Ze=function kn(Te,w,M){if(M.size&&w.length){let Y=w[0],Ie=[];if(M.forEach((o,d)=>{Y.has(d)||Ie.push(d),Y.set(d,o)}),Ie.length)for(let o=1;od.set(E,On(Te,E)))}}return w}(w,Ze,Z);const mt=function Hn(Te,w){let M=null,Y=null;return Array.isArray(w)&&w.length?(M=Ii(w[0]),w.length>1&&(Y=Ii(w[w.length-1]))):w instanceof Map&&(M=Ii(w)),M||Y?new cr(Te,M,Y):null}(w,Ze);return new Dr(w,Ze,L,mt)}}var te=u(6895);let K=(()=>{class Te extends c._j{constructor(M,Y){super(),this._nextAnimationId=0,this._renderer=M.createRenderer(Y.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}})}build(M){const Y=this._nextAnimationId.toString();this._nextAnimationId++;const Ie=Array.isArray(M)?(0,c.vP)(M):M;return Zt(this._renderer,null,Y,"register",[Ie]),new $(Y,this._renderer)}}return Te.\u0275fac=function(M){return new(M||Te)(i.LFG(i.FYo),i.LFG(te.K0))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})();class $ extends c.LC{constructor(w,M){super(),this._id=w,this._renderer=M}create(w,M){return new Ge(this._id,w,M||{},this._renderer)}}class Ge{constructor(w,M,Y,Ie){this.id=w,this.element=M,this._renderer=Ie,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",Y)}_listen(w,M){return this._renderer.listen(this.element,`@@${this.id}:${w}`,M)}_command(w,...M){return Zt(this._renderer,this.element,this.id,w,M)}onDone(w){this._listen("done",w)}onStart(w){this._listen("start",w)}onDestroy(w){this._listen("destroy",w)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(w){this._command("setPosition",w)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function Zt(Te,w,M,Y,Ie){return Te.setProperty(w,`@@${M}:${Y}`,Ie)}const bi="@.disabled";let mi=(()=>{class Te{constructor(M,Y,Ie){this.delegate=M,this.engine=Y,this._zone=Ie,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),Y.onRemovalComplete=(o,d)=>{const E=d?.parentNode(o);E&&d.removeChild(E,o)}}createRenderer(M,Y){const o=this.delegate.createRenderer(M,Y);if(!(M&&Y&&Y.data&&Y.data.animation)){let De=this._rendererCache.get(o);return De||(De=new ki("",o,this.engine),this._rendererCache.set(o,De)),De}const d=Y.id,E=Y.id+"-"+this._currentId;this._currentId++,this.engine.register(E,M);const L=De=>{Array.isArray(De)?De.forEach(L):this.engine.registerTrigger(d,E,M,De.name,De)};return Y.data.animation.forEach(L),new Lr(this,E,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(M,Y,Ie){M>=0&&MY(Ie)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[d,E]=o;d(E)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([Y,Ie]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return Te.\u0275fac=function(M){return new(M||Te)(i.LFG(i.FYo),i.LFG(on),i.LFG(i.R0b))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})();class ki{constructor(w,M,Y){this.namespaceId=w,this.delegate=M,this.engine=Y,this.destroyNode=this.delegate.destroyNode?Ie=>M.destroyNode(Ie):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(w,M){return this.delegate.createElement(w,M)}createComment(w){return this.delegate.createComment(w)}createText(w){return this.delegate.createText(w)}appendChild(w,M){this.delegate.appendChild(w,M),this.engine.onInsert(this.namespaceId,M,w,!1)}insertBefore(w,M,Y,Ie=!0){this.delegate.insertBefore(w,M,Y),this.engine.onInsert(this.namespaceId,M,w,Ie)}removeChild(w,M,Y){this.engine.onRemove(this.namespaceId,M,this.delegate,Y)}selectRootElement(w,M){return this.delegate.selectRootElement(w,M)}parentNode(w){return this.delegate.parentNode(w)}nextSibling(w){return this.delegate.nextSibling(w)}setAttribute(w,M,Y,Ie){this.delegate.setAttribute(w,M,Y,Ie)}removeAttribute(w,M,Y){this.delegate.removeAttribute(w,M,Y)}addClass(w,M){this.delegate.addClass(w,M)}removeClass(w,M){this.delegate.removeClass(w,M)}setStyle(w,M,Y,Ie){this.delegate.setStyle(w,M,Y,Ie)}removeStyle(w,M,Y){this.delegate.removeStyle(w,M,Y)}setProperty(w,M,Y){"@"==M.charAt(0)&&M==bi?this.disableAnimations(w,!!Y):this.delegate.setProperty(w,M,Y)}setValue(w,M){this.delegate.setValue(w,M)}listen(w,M,Y){return this.delegate.listen(w,M,Y)}disableAnimations(w,M){this.engine.disableAnimations(w,M)}}class Lr extends ki{constructor(w,M,Y,Ie){super(M,Y,Ie),this.factory=w,this.namespaceId=M}setProperty(w,M,Y){"@"==M.charAt(0)?"."==M.charAt(1)&&M==bi?this.disableAnimations(w,Y=void 0===Y||!!Y):this.engine.process(this.namespaceId,w,M.slice(1),Y):this.delegate.setProperty(w,M,Y)}listen(w,M,Y){if("@"==M.charAt(0)){const Ie=function Br(Te){switch(Te){case"body":return document.body;case"document":return document;case"window":return window;default:return Te}}(w);let o=M.slice(1),d="";return"@"!=o.charAt(0)&&([o,d]=function Or(Te){const w=Te.indexOf(".");return[Te.substring(0,w),Te.slice(w+1)]}(o)),this.engine.listen(this.namespaceId,Ie,o,d,E=>{this.factory.scheduleListenerCallback(E._data||-1,Y,E)})}return this.delegate.listen(w,M,Y)}}const Ui=[{provide:c._j,useClass:K},{provide:or,useFactory:function ns(){return new $r}},{provide:on,useClass:(()=>{class Te extends on{constructor(M,Y,Ie,o){super(M.body,Y,Ie)}ngOnDestroy(){this.flush()}}return Te.\u0275fac=function(M){return new(M||Te)(i.LFG(te.K0),i.LFG(ve),i.LFG(or),i.LFG(i.z2F))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})()},{provide:i.FYo,useFactory:function Nr(Te,w,M){return new mi(Te,w,M)},deps:[a.se,on,i.R0b]}],hi=[{provide:ve,useFactory:()=>new Qi},{provide:i.QbO,useValue:"BrowserAnimations"},...Ui],Vr=[{provide:ve,useClass:T},{provide:i.QbO,useValue:"NoopAnimations"},...Ui];let Ji=(()=>{class Te{static withConfig(M){return{ngModule:Te,providers:M.disableAnimations?Vr:hi}}}return Te.\u0275fac=function(M){return new(M||Te)},Te.\u0275mod=i.oAB({type:Te}),Te.\u0275inj=i.cJS({providers:hi,imports:[a.b2]}),Te})()},1481:(Ct,ke,u)=>{"use strict";u.d(ke,{Dx:()=>H,H7:()=>qt,b2:()=>p,q6:()=>R,se:()=>Ae});var i=u(6895),a=u(4650);class c extends i.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class v extends c{static makeCurrent(){(0,i.HT)(new v)}onAndCancel(vt,ct,Bt){return vt.addEventListener(ct,Bt,!1),()=>{vt.removeEventListener(ct,Bt,!1)}}dispatchEvent(vt,ct){vt.dispatchEvent(ct)}remove(vt){vt.parentNode&&vt.parentNode.removeChild(vt)}createElement(vt,ct){return(ct=ct||this.getDefaultDocument()).createElement(vt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(vt){return vt.nodeType===Node.ELEMENT_NODE}isShadowRoot(vt){return vt instanceof DocumentFragment}getGlobalEventTarget(vt,ct){return"window"===ct?window:"document"===ct?vt:"body"===ct?vt.body:null}getBaseHref(vt){const ct=function h(){return b=b||document.querySelector("base"),b?b.getAttribute("href"):null}();return null==ct?null:function D(Rt){g=g||document.createElement("a"),g.setAttribute("href",Rt);const vt=g.pathname;return"/"===vt.charAt(0)?vt:`/${vt}`}(ct)}resetBaseElement(){b=null}getUserAgent(){return window.navigator.userAgent}getCookie(vt){return(0,i.Mx)(document.cookie,vt)}}let g,b=null;const B=new a.OlP("TRANSITION_ID"),P=[{provide:a.ip1,useFactory:function O(Rt,vt,ct){return()=>{ct.get(a.CZH).donePromise.then(()=>{const Bt=(0,i.q)(),Jt=vt.querySelectorAll(`style[ng-transition="${Rt}"]`);for(let xn=0;xn{class Rt{build(){return new XMLHttpRequest}}return Rt.\u0275fac=function(ct){return new(ct||Rt)},Rt.\u0275prov=a.Yz7({token:Rt,factory:Rt.\u0275fac}),Rt})();const z=new a.OlP("EventManagerPlugins");let ae=(()=>{class Rt{constructor(ct,Bt){this._zone=Bt,this._eventNameToPlugin=new Map,ct.forEach(Jt=>Jt.manager=this),this._plugins=ct.slice().reverse()}addEventListener(ct,Bt,Jt){return this._findPluginFor(Bt).addEventListener(ct,Bt,Jt)}addGlobalEventListener(ct,Bt,Jt){return this._findPluginFor(Bt).addGlobalEventListener(ct,Bt,Jt)}getZone(){return this._zone}_findPluginFor(ct){const Bt=this._eventNameToPlugin.get(ct);if(Bt)return Bt;const Jt=this._plugins;for(let xn=0;xn{class Rt{constructor(){this._stylesSet=new Set}addStyles(ct){const Bt=new Set;ct.forEach(Jt=>{this._stylesSet.has(Jt)||(this._stylesSet.add(Jt),Bt.add(Jt))}),this.onStylesAdded(Bt)}onStylesAdded(ct){}getAllStyles(){return Array.from(this._stylesSet)}}return Rt.\u0275fac=function(ct){return new(ct||Rt)},Rt.\u0275prov=a.Yz7({token:Rt,factory:Rt.\u0275fac}),Rt})(),le=(()=>{class Rt extends ue{constructor(ct){super(),this._doc=ct,this._hostNodes=new Map,this._hostNodes.set(ct.head,[])}_addStylesToHost(ct,Bt,Jt){ct.forEach(xn=>{const kn=this._doc.createElement("style");kn.textContent=xn,Jt.push(Bt.appendChild(kn))})}addHost(ct){const Bt=[];this._addStylesToHost(this._stylesSet,ct,Bt),this._hostNodes.set(ct,Bt)}removeHost(ct){const Bt=this._hostNodes.get(ct);Bt&&Bt.forEach(ge),this._hostNodes.delete(ct)}onStylesAdded(ct){this._hostNodes.forEach((Bt,Jt)=>{this._addStylesToHost(ct,Jt,Bt)})}ngOnDestroy(){this._hostNodes.forEach(ct=>ct.forEach(ge))}}return Rt.\u0275fac=function(ct){return new(ct||Rt)(a.LFG(i.K0))},Rt.\u0275prov=a.Yz7({token:Rt,factory:Rt.\u0275fac}),Rt})();function ge(Rt){(0,i.q)().remove(Rt)}const W={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},ie=/%COMP%/g;function tt(Rt,vt,ct){for(let Bt=0;Bt{if("__ngUnwrap__"===vt)return Rt;!1===Rt(vt)&&(vt.preventDefault(),vt.returnValue=!1)}}let Ae=(()=>{class Rt{constructor(ct,Bt,Jt){this.eventManager=ct,this.sharedStylesHost=Bt,this.appId=Jt,this.rendererByCompId=new Map,this.defaultRenderer=new yt(ct)}createRenderer(ct,Bt){if(!ct||!Bt)return this.defaultRenderer;switch(Bt.encapsulation){case a.ifc.Emulated:{let Jt=this.rendererByCompId.get(Bt.id);return Jt||(Jt=new jt(this.eventManager,this.sharedStylesHost,Bt,this.appId),this.rendererByCompId.set(Bt.id,Jt)),Jt.applyToHost(ct),Jt}case 1:case a.ifc.ShadowDom:return new V(this.eventManager,this.sharedStylesHost,ct,Bt);default:if(!this.rendererByCompId.has(Bt.id)){const Jt=tt(Bt.id,Bt.styles,[]);this.sharedStylesHost.addStyles(Jt),this.rendererByCompId.set(Bt.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Rt.\u0275fac=function(ct){return new(ct||Rt)(a.LFG(ae),a.LFG(le),a.LFG(a.AFp))},Rt.\u0275prov=a.Yz7({token:Rt,factory:Rt.\u0275fac}),Rt})();class yt{constructor(vt){this.eventManager=vt,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(vt,ct){return ct?document.createElementNS(W[ct]||ct,vt):document.createElement(vt)}createComment(vt){return document.createComment(vt)}createText(vt){return document.createTextNode(vt)}appendChild(vt,ct){(Dt(vt)?vt.content:vt).appendChild(ct)}insertBefore(vt,ct,Bt){vt&&(Dt(vt)?vt.content:vt).insertBefore(ct,Bt)}removeChild(vt,ct){vt&&vt.removeChild(ct)}selectRootElement(vt,ct){let Bt="string"==typeof vt?document.querySelector(vt):vt;if(!Bt)throw new Error(`The selector "${vt}" did not match any elements`);return ct||(Bt.textContent=""),Bt}parentNode(vt){return vt.parentNode}nextSibling(vt){return vt.nextSibling}setAttribute(vt,ct,Bt,Jt){if(Jt){ct=Jt+":"+ct;const xn=W[Jt];xn?vt.setAttributeNS(xn,ct,Bt):vt.setAttribute(ct,Bt)}else vt.setAttribute(ct,Bt)}removeAttribute(vt,ct,Bt){if(Bt){const Jt=W[Bt];Jt?vt.removeAttributeNS(Jt,ct):vt.removeAttribute(`${Bt}:${ct}`)}else vt.removeAttribute(ct)}addClass(vt,ct){vt.classList.add(ct)}removeClass(vt,ct){vt.classList.remove(ct)}setStyle(vt,ct,Bt,Jt){Jt&(a.JOm.DashCase|a.JOm.Important)?vt.style.setProperty(ct,Bt,Jt&a.JOm.Important?"important":""):vt.style[ct]=Bt}removeStyle(vt,ct,Bt){Bt&a.JOm.DashCase?vt.style.removeProperty(ct):vt.style[ct]=""}setProperty(vt,ct,Bt){vt[ct]=Bt}setValue(vt,ct){vt.nodeValue=ct}listen(vt,ct,Bt){return"string"==typeof vt?this.eventManager.addGlobalEventListener(vt,ct,me(Bt)):this.eventManager.addEventListener(vt,ct,me(Bt))}}function Dt(Rt){return"TEMPLATE"===Rt.tagName&&void 0!==Rt.content}class jt extends yt{constructor(vt,ct,Bt,Jt){super(vt),this.component=Bt;const xn=tt(Jt+"-"+Bt.id,Bt.styles,[]);ct.addStyles(xn),this.contentAttr=function it(Rt){return"_ngcontent-%COMP%".replace(ie,Rt)}(Jt+"-"+Bt.id),this.hostAttr=function Ke(Rt){return"_nghost-%COMP%".replace(ie,Rt)}(Jt+"-"+Bt.id)}applyToHost(vt){super.setAttribute(vt,this.hostAttr,"")}createElement(vt,ct){const Bt=super.createElement(vt,ct);return super.setAttribute(Bt,this.contentAttr,""),Bt}}class V extends yt{constructor(vt,ct,Bt,Jt){super(vt),this.sharedStylesHost=ct,this.hostEl=Bt,this.shadowRoot=Bt.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const xn=tt(Jt.id,Jt.styles,[]);for(let kn=0;kn{class Rt extends we{constructor(ct){super(ct)}supports(ct){return!0}addEventListener(ct,Bt,Jt){return ct.addEventListener(Bt,Jt,!1),()=>this.removeEventListener(ct,Bt,Jt)}removeEventListener(ct,Bt,Jt){return ct.removeEventListener(Bt,Jt)}}return Rt.\u0275fac=function(ct){return new(ct||Rt)(a.LFG(i.K0))},Rt.\u0275prov=a.Yz7({token:Rt,factory:Rt.\u0275fac}),Rt})();const oe=["alt","control","meta","shift"],Oe={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},lt={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},be={alt:Rt=>Rt.altKey,control:Rt=>Rt.ctrlKey,meta:Rt=>Rt.metaKey,shift:Rt=>Rt.shiftKey};let et=(()=>{class Rt extends we{constructor(ct){super(ct)}supports(ct){return null!=Rt.parseEventName(ct)}addEventListener(ct,Bt,Jt){const xn=Rt.parseEventName(Bt),kn=Rt.eventCallback(xn.fullKey,Jt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,i.q)().onAndCancel(ct,xn.domEventName,kn))}static parseEventName(ct){const Bt=ct.toLowerCase().split("."),Jt=Bt.shift();if(0===Bt.length||"keydown"!==Jt&&"keyup"!==Jt)return null;const xn=Rt._normalizeKey(Bt.pop());let kn="";if(oe.forEach(On=>{const qn=Bt.indexOf(On);qn>-1&&(Bt.splice(qn,1),kn+=On+".")}),kn+=xn,0!=Bt.length||0===xn.length)return null;const mn={};return mn.domEventName=Jt,mn.fullKey=kn,mn}static getEventFullKey(ct){let Bt="",Jt=function Mt(Rt){let vt=Rt.key;if(null==vt){if(vt=Rt.keyIdentifier,null==vt)return"Unidentified";vt.startsWith("U+")&&(vt=String.fromCharCode(parseInt(vt.substring(2),16)),3===Rt.location&<.hasOwnProperty(vt)&&(vt=lt[vt]))}return Oe[vt]||vt}(ct);return Jt=Jt.toLowerCase()," "===Jt?Jt="space":"."===Jt&&(Jt="dot"),oe.forEach(xn=>{xn!=Jt&&(0,be[xn])(ct)&&(Bt+=xn+".")}),Bt+=Jt,Bt}static eventCallback(ct,Bt,Jt){return xn=>{Rt.getEventFullKey(xn)===ct&&Jt.runGuarded(()=>Bt(xn))}}static _normalizeKey(ct){return"esc"===ct?"escape":ct}}return Rt.\u0275fac=function(ct){return new(ct||Rt)(a.LFG(i.K0))},Rt.\u0275prov=a.Yz7({token:Rt,factory:Rt.\u0275fac}),Rt})();const R=(0,a.eFA)(a._c5,"browser",[{provide:a.Lbi,useValue:i.bD},{provide:a.g9A,useValue:function nt(){v.makeCurrent()},multi:!0},{provide:i.K0,useFactory:function Le(){return(0,a.RDi)(document),document},deps:[]}]),U=new a.OlP(""),Re=[{provide:a.rWj,useClass:class k{addToWindow(vt){a.dqk.getAngularTestability=(Bt,Jt=!0)=>{const xn=vt.findTestabilityInTree(Bt,Jt);if(null==xn)throw new Error("Could not find testability for element.");return xn},a.dqk.getAllAngularTestabilities=()=>vt.getAllTestabilities(),a.dqk.getAllAngularRootElements=()=>vt.getAllRootElements(),a.dqk.frameworkStabilizers||(a.dqk.frameworkStabilizers=[]),a.dqk.frameworkStabilizers.push(Bt=>{const Jt=a.dqk.getAllAngularTestabilities();let xn=Jt.length,kn=!1;const mn=function(On){kn=kn||On,xn--,0==xn&&Bt(kn)};Jt.forEach(function(On){On.whenStable(mn)})})}findTestabilityInTree(vt,ct,Bt){return null==ct?null:vt.getTestability(ct)??(Bt?(0,i.q)().isShadowRoot(ct)?this.findTestabilityInTree(vt,ct.host,!0):this.findTestabilityInTree(vt,ct.parentElement,!0):null)}},deps:[]},{provide:a.lri,useClass:a.dDg,deps:[a.R0b,a.eoX,a.rWj]},{provide:a.dDg,useClass:a.dDg,deps:[a.R0b,a.eoX,a.rWj]}],x=[{provide:a.zSh,useValue:"root"},{provide:a.qLn,useFactory:function Q(){return new a.qLn},deps:[]},{provide:z,useClass:Ee,multi:!0,deps:[i.K0,a.R0b,a.Lbi]},{provide:z,useClass:et,multi:!0,deps:[i.K0]},{provide:Ae,useClass:Ae,deps:[ae,le,a.AFp]},{provide:a.FYo,useExisting:Ae},{provide:ue,useExisting:le},{provide:le,useClass:le,deps:[i.K0]},{provide:ae,useClass:ae,deps:[z,a.R0b]},{provide:i.JF,useClass:F,deps:[]},[]];let p=(()=>{class Rt{constructor(ct){}static withServerTransition(ct){return{ngModule:Rt,providers:[{provide:a.AFp,useValue:ct.appId},{provide:B,useExisting:a.AFp},P]}}}return Rt.\u0275fac=function(ct){return new(ct||Rt)(a.LFG(U,12))},Rt.\u0275mod=a.oAB({type:Rt}),Rt.\u0275inj=a.cJS({providers:[...x,...Re],imports:[i.ez,a.hGG]}),Rt})(),H=(()=>{class Rt{constructor(ct){this._doc=ct}getTitle(){return this._doc.title}setTitle(ct){this._doc.title=ct||""}}return Rt.\u0275fac=function(ct){return new(ct||Rt)(a.LFG(i.K0))},Rt.\u0275prov=a.Yz7({token:Rt,factory:function(ct){let Bt=null;return Bt=ct?new ct:function X(){return new H((0,a.LFG)(i.K0))}(),Bt},providedIn:"root"}),Rt})();typeof window<"u"&&window;let qt=(()=>{class Rt{}return Rt.\u0275fac=function(ct){return new(ct||Rt)},Rt.\u0275prov=a.Yz7({token:Rt,factory:function(ct){let Bt=null;return Bt=ct?new(ct||Rt):a.LFG(en),Bt},providedIn:"root"}),Rt})(),en=(()=>{class Rt extends qt{constructor(ct){super(),this._doc=ct}sanitize(ct,Bt){if(null==Bt)return null;switch(ct){case a.q3G.NONE:return Bt;case a.q3G.HTML:return(0,a.qzn)(Bt,"HTML")?(0,a.z3N)(Bt):(0,a.EiD)(this._doc,String(Bt)).toString();case a.q3G.STYLE:return(0,a.qzn)(Bt,"Style")?(0,a.z3N)(Bt):Bt;case a.q3G.SCRIPT:if((0,a.qzn)(Bt,"Script"))return(0,a.z3N)(Bt);throw new Error("unsafe value used in a script context");case a.q3G.URL:return(0,a.qzn)(Bt,"URL")?(0,a.z3N)(Bt):(0,a.mCW)(String(Bt));case a.q3G.RESOURCE_URL:if((0,a.qzn)(Bt,"ResourceURL"))return(0,a.z3N)(Bt);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${ct} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(ct){return(0,a.JVY)(ct)}bypassSecurityTrustStyle(ct){return(0,a.L6k)(ct)}bypassSecurityTrustScript(ct){return(0,a.eBb)(ct)}bypassSecurityTrustUrl(ct){return(0,a.LAX)(ct)}bypassSecurityTrustResourceUrl(ct){return(0,a.pB0)(ct)}}return Rt.\u0275fac=function(ct){return new(ct||Rt)(a.LFG(i.K0))},Rt.\u0275prov=a.Yz7({token:Rt,factory:function(ct){let Bt=null;return Bt=ct?new ct:function Ut(Rt){return new en(Rt.get(i.K0))}(a.LFG(a.zs3)),Bt},providedIn:"root"}),Rt})()},6630:(Ct,ke,u)=>{"use strict";u.d(ke,{gz:()=>Oi,m2:()=>Ri,F0:()=>rr,yS:()=>Qr,Bz:()=>Wu,lC:()=>ji});var i=u(4650);const c=(()=>{function A(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return A.prototype=Object.create(Error.prototype),A})();var v=u(5254),b=u(1086),h=u(591),g=u(3426),D=u(1221),B=u(8514),O=u(4843),P=u(1737),k=u(6498),F=u(8896),z=u(1762),ae=u(8929),we=u(6895),ue=u(2198),le=u(2986),ge=u(3489);function W(A=null){return S=>S.lift(new ie(A))}class ie{constructor(S){this.defaultValue=S}call(S,C){return C.subscribe(new he(S,this.defaultValue))}}class he extends ge.L{constructor(S,C){super(S),this.defaultValue=C,this.isEmpty=!0}_next(S){this.isEmpty=!1,this.destination.next(S)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function se(A=it){return S=>S.lift(new Me(A))}class Me{constructor(S){this.errorFactory=S}call(S,C){return C.subscribe(new $e(S,this.errorFactory))}}class $e extends ge.L{constructor(S,C){super(S),this.errorFactory=C,this.hasValue=!1}_next(S){this.hasValue=!0,this.destination.next(S)}_complete(){if(this.hasValue)return this.destination.complete();{let S;try{S=this.errorFactory()}catch(C){S=C}this.destination.error(S)}}}function it(){return new c}var Ke=u(5379);function tt(A,S){const C=arguments.length>=2;return G=>G.pipe(A?(0,ue.h)((ne,je)=>A(ne,je,G)):Ke.y,(0,le.q)(1),C?W(S):se(()=>new c))}function me(A,S){let C=!1;return arguments.length>=2&&(C=!0),function(ne){return ne.lift(new Xe(A,S,C))}}class Xe{constructor(S,C,G=!1){this.accumulator=S,this.seed=C,this.hasSeed=G}call(S,C){return C.subscribe(new Ae(S,this.accumulator,this.seed,this.hasSeed))}}class Ae extends ge.L{constructor(S,C,G,ne){super(S),this.accumulator=C,this._seed=G,this.hasSeed=ne,this.index=0}get seed(){return this._seed}set seed(S){this.hasSeed=!0,this._seed=S}_next(S){if(this.hasSeed)return this._tryNext(S);this.seed=S,this.destination.next(S)}_tryNext(S){const C=this.index++;let G;try{G=this.accumulator(this.seed,S,C)}catch(ne){this.destination.error(ne)}this.seed=G,this.destination.next(G)}}var yt=u(4231);function ft(A){return function(C){return 0===A?(0,F.c)():C.lift(new Yt(A))}}class Yt{constructor(S){if(this.total=S,this.total<0)throw new yt.W}call(S,C){return C.subscribe(new Dt(S,this.total))}}class Dt extends ge.L{constructor(S,C){super(S),this.total=C,this.ring=new Array,this.count=0}_next(S){const C=this.ring,G=this.total,ne=this.count++;C.length0){const G=this.count>=this.total?this.total:this.count,ne=this.ring;for(let je=0;je=2;return G=>G.pipe(A?(0,ue.h)((ne,je)=>A(ne,je,G)):Ke.y,ft(1),C?W(S):se(()=>new c))}var V=u(4850),Ee=u(7545),oe=u(1059),_e=u(1709),Oe=u(1406),lt=u(2868),be=u(7221),et=u(4290),Mt=u(7604),_t=u(537),Be=u(4327),at=u(9146),nt=u(1481);const Q="primary";class Le{constructor(S){this.params=S||{}}has(S){return Object.prototype.hasOwnProperty.call(this.params,S)}get(S){if(this.has(S)){const C=this.params[S];return Array.isArray(C)?C[0]:C}return null}getAll(S){if(this.has(S)){const C=this.params[S];return Array.isArray(C)?C:[C]}return[]}get keys(){return Object.keys(this.params)}}function ee(A){return new Le(A)}function R(A,S,C){const G=C.path.split("/");if(G.length>A.length||"full"===C.pathMatch&&(S.hasChildren()||G.lengthG[je]===ne)}return A===S}function p(A){return Array.prototype.concat.apply([],A)}function m(A){return A.length>0?A[A.length-1]:null}function de(A,S){for(const C in A)A.hasOwnProperty(C)&&S(A[C],C)}function X(A){return(0,i.CqO)(A)?A:(0,i.QGY)(A)?(0,v.D)(Promise.resolve(A)):(0,b.of)(A)}const H=!1,_={exact:function ze(A,S,C){if(!ce(A.segments,S.segments)||!ye(A.segments,S.segments,C)||A.numberOfChildren!==S.numberOfChildren)return!1;for(const G in S.children)if(!A.children[G]||!ze(A.children[G],S.children[G],C))return!1;return!0},subset:ht},T={exact:function Je(A,S){return Re(A,S)},subset:function St(A,S){return Object.keys(S).length<=Object.keys(A).length&&Object.keys(S).every(C=>x(A[C],S[C]))},ignored:()=>!0};function ve(A,S,C){return _[C.paths](A.root,S.root,C.matrixParams)&&T[C.queryParams](A.queryParams,S.queryParams)&&!("exact"===C.fragment&&A.fragment!==S.fragment)}function ht(A,S,C){return Et(A,S,S.segments,C)}function Et(A,S,C,G){if(A.segments.length>C.length){const ne=A.segments.slice(0,C.length);return!(!ce(ne,C)||S.hasChildren()||!ye(ne,C,G))}if(A.segments.length===C.length){if(!ce(A.segments,C)||!ye(A.segments,C,G))return!1;for(const ne in S.children)if(!A.children[ne]||!ht(A.children[ne],S.children[ne],G))return!1;return!0}{const ne=C.slice(0,A.segments.length),je=C.slice(A.segments.length);return!!(ce(A.segments,ne)&&ye(A.segments,ne,G)&&A.children[Q])&&Et(A.children[Q],S,je,G)}}function ye(A,S,C){return S.every((G,ne)=>T[C](A[ne].parameters,G.parameters))}class qe{constructor(S,C,G){this.root=S,this.queryParams=C,this.fragment=G}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ee(this.queryParams)),this._queryParamMap}toString(){return Pe.serialize(this)}}class xe{constructor(S,C){this.segments=S,this.children=C,this.parent=null,de(C,(G,ne)=>G.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return wt(this)}}class Fe{constructor(S,C){this.path=S,this.parameters=C}get parameterMap(){return this._parameterMap||(this._parameterMap=ee(this.parameters)),this._parameterMap}toString(){return Ut(this)}}function ce(A,S){return A.length===S.length&&A.every((C,G)=>C.path===S[G].path)}let Ce=(()=>{class A{}return A.\u0275fac=function(C){return new(C||A)},A.\u0275prov=i.Yz7({token:A,factory:function(){return new Ye},providedIn:"root"}),A})();class Ye{parse(S){const C=new kn(S);return new qe(C.parseRootSegment(),C.parseQueryParams(),C.parseFragment())}serialize(S){const C=`/${st(S.root,!0)}`,G=function bn(A){const S=Object.keys(A).map(C=>{const G=A[C];return Array.isArray(G)?G.map(ne=>`${Ht(C)}=${Ht(ne)}`).join("&"):`${Ht(C)}=${Ht(G)}`}).filter(C=>!!C);return S.length?`?${S.join("&")}`:""}(S.queryParams);return`${C}${G}${"string"==typeof S.fragment?`#${function an(A){return encodeURI(A)}(S.fragment)}`:""}`}}const Pe=new Ye;function wt(A){return A.segments.map(S=>Ut(S)).join("/")}function st(A,S){if(!A.hasChildren())return wt(A);if(S){const C=A.children[Q]?st(A.children[Q],!1):"",G=[];return de(A.children,(ne,je)=>{je!==Q&&G.push(`${je}:${st(ne,!1)}`)}),G.length>0?`${C}(${G.join("//")})`:C}{const C=function Ue(A,S){let C=[];return de(A.children,(G,ne)=>{ne===Q&&(C=C.concat(S(G,ne)))}),de(A.children,(G,ne)=>{ne!==Q&&(C=C.concat(S(G,ne)))}),C}(A,(G,ne)=>ne===Q?[st(A.children[Q],!1)]:[`${ne}:${st(G,!1)}`]);return 1===Object.keys(A.children).length&&null!=A.children[Q]?`${wt(A)}/${C[0]}`:`${wt(A)}/(${C.join("//")})`}}function ut(A){return encodeURIComponent(A).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ht(A){return ut(A).replace(/%3B/gi,";")}function We(A){return ut(A).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rt(A){return decodeURIComponent(A)}function qt(A){return rt(A.replace(/\+/g,"%20"))}function Ut(A){return`${We(A.path)}${function en(A){return Object.keys(A).map(S=>`;${We(S)}=${We(A[S])}`).join("")}(A.parameters)}`}const Rt=/^[^\/()?;=#]+/;function vt(A){const S=A.match(Rt);return S?S[0]:""}const ct=/^[^=?&#]+/,Jt=/^[^&#]+/;class kn{constructor(S){this.url=S,this.remaining=S}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new xe([],{}):new xe([],this.parseChildren())}parseQueryParams(){const S={};if(this.consumeOptional("?"))do{this.parseQueryParam(S)}while(this.consumeOptional("&"));return S}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const S=[];for(this.peekStartsWith("(")||S.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),S.push(this.parseSegment());let C={};this.peekStartsWith("/(")&&(this.capture("/"),C=this.parseParens(!0));let G={};return this.peekStartsWith("(")&&(G=this.parseParens(!1)),(S.length>0||Object.keys(C).length>0)&&(G[Q]=new xe(S,C)),G}parseSegment(){const S=vt(this.remaining);if(""===S&&this.peekStartsWith(";"))throw new i.vHH(4009,H);return this.capture(S),new Fe(rt(S),this.parseMatrixParams())}parseMatrixParams(){const S={};for(;this.consumeOptional(";");)this.parseParam(S);return S}parseParam(S){const C=vt(this.remaining);if(!C)return;this.capture(C);let G="";if(this.consumeOptional("=")){const ne=vt(this.remaining);ne&&(G=ne,this.capture(G))}S[rt(C)]=rt(G)}parseQueryParam(S){const C=function Bt(A){const S=A.match(ct);return S?S[0]:""}(this.remaining);if(!C)return;this.capture(C);let G="";if(this.consumeOptional("=")){const pt=function xn(A){const S=A.match(Jt);return S?S[0]:""}(this.remaining);pt&&(G=pt,this.capture(G))}const ne=qt(C),je=qt(G);if(S.hasOwnProperty(ne)){let pt=S[ne];Array.isArray(pt)||(pt=[pt],S[ne]=pt),pt.push(je)}else S[ne]=je}parseParens(S){const C={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const G=vt(this.remaining),ne=this.remaining[G.length];if("/"!==ne&&")"!==ne&&";"!==ne)throw new i.vHH(4010,H);let je;G.indexOf(":")>-1?(je=G.slice(0,G.indexOf(":")),this.capture(je),this.capture(":")):S&&(je=Q);const pt=this.parseChildren();C[je]=1===Object.keys(pt).length?pt[Q]:new xe([],pt),this.consumeOptional("//")}return C}peekStartsWith(S){return this.remaining.startsWith(S)}consumeOptional(S){return!!this.peekStartsWith(S)&&(this.remaining=this.remaining.substring(S.length),!0)}capture(S){if(!this.consumeOptional(S))throw new i.vHH(4011,H)}}function mn(A){return A.segments.length>0?new xe([],{[Q]:A}):A}function On(A){const S={};for(const G of Object.keys(A.children)){const je=On(A.children[G]);(je.segments.length>0||je.hasChildren())&&(S[G]=je)}return function qn(A){if(1===A.numberOfChildren&&A.children[Q]){const S=A.children[Q];return new xe(A.segments.concat(S.segments),S.children)}return A}(new xe(A.segments,S))}function Ne(A){return A instanceof qe}function Gt(A,S,C,G,ne){if(0===C.length)return En(S.root,S.root,S.root,G,ne);const je=function ni(A){if("string"==typeof A[0]&&1===A.length&&"/"===A[0])return new An(!0,0,A);let S=0,C=!1;const G=A.reduce((ne,je,pt)=>{if("object"==typeof je&&null!=je){if(je.outlets){const It={};return de(je.outlets,(nn,wn)=>{It[wn]="string"==typeof nn?nn.split("/"):nn}),[...ne,{outlets:It}]}if(je.segmentPath)return[...ne,je.segmentPath]}return"string"!=typeof je?[...ne,je]:0===pt?(je.split("/").forEach((It,nn)=>{0==nn&&"."===It||(0==nn&&""===It?C=!0:".."===It?S++:""!=It&&ne.push(It))}),ne):[...ne,je]},[]);return new An(C,S,G)}(C);return je.toRoot()?En(S.root,S.root,new xe([],{}),G,ne):function pt(nn){const wn=function zn(A,S,C,G){if(A.isAbsolute)return new jn(S.root,!0,0);if(-1===G)return new jn(C,C===S.root,0);return function si(A,S,C){let G=A,ne=S,je=C;for(;je>ne;){if(je-=ne,G=G.parent,!G)throw new i.vHH(4005,!1);ne=G.segments.length}return new jn(G,!1,ne-je)}(C,G+(rn(A.commands[0])?0:1),A.numberOfDoubleDots)}(je,S,A.snapshot?._urlSegment,nn),Zn=wn.processChildren?Xn(wn.segmentGroup,wn.index,je.commands):Pi(wn.segmentGroup,wn.index,je.commands);return En(S.root,wn.segmentGroup,Zn,G,ne)}(A.snapshot?._lastPathIndex)}function rn(A){return"object"==typeof A&&null!=A&&!A.outlets&&!A.segmentPath}function Tn(A){return"object"==typeof A&&null!=A&&A.outlets}function En(A,S,C,G,ne){let pt,je={};G&&de(G,(nn,wn)=>{je[wn]=Array.isArray(nn)?nn.map(Zn=>`${Zn}`):`${nn}`}),pt=A===S?C:ci(A,S,C);const It=mn(On(pt));return new qe(It,je,ne)}function ci(A,S,C){const G={};return de(A.children,(ne,je)=>{G[je]=ne===S?C:ci(ne,S,C)}),new xe(A.segments,G)}class An{constructor(S,C,G){if(this.isAbsolute=S,this.numberOfDoubleDots=C,this.commands=G,S&&G.length>0&&rn(G[0]))throw new i.vHH(4003,!1);const ne=G.find(Tn);if(ne&&ne!==m(G))throw new i.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class jn{constructor(S,C,G){this.segmentGroup=S,this.processChildren=C,this.index=G}}function Pi(A,S,C){if(A||(A=new xe([],{})),0===A.segments.length&&A.hasChildren())return Xn(A,S,C);const G=function Ci(A,S,C){let G=0,ne=S;const je={match:!1,pathIndex:0,commandIndex:0};for(;ne=C.length)return je;const pt=A.segments[ne],It=C[G];if(Tn(It))break;const nn=`${It}`,wn=G0&&void 0===nn)break;if(nn&&wn&&"object"==typeof wn&&void 0===wn.outlets){if(!_i(nn,wn,pt))return je;G+=2}else{if(!_i(nn,{},pt))return je;G++}ne++}return{match:!0,pathIndex:ne,commandIndex:G}}(A,S,C),ne=C.slice(G.commandIndex);if(G.match&&G.pathIndex{"string"==typeof je&&(je=[je]),null!==je&&(ne[pt]=Pi(A.children[pt],S,je))}),de(A.children,(je,pt)=>{void 0===G[pt]&&(ne[pt]=je)}),new xe(A.segments,ne)}}function zi(A,S,C){const G=A.segments.slice(0,S);let ne=0;for(;ne{"string"==typeof C&&(C=[C]),null!==C&&(S[G]=zi(new xe([],{}),0,C))}),S}function Wi(A){const S={};return de(A,(C,G)=>S[G]=`${C}`),S}function _i(A,S,C){return A==C.path&&Re(S,C.parameters)}class fi{constructor(S,C){this.id=S,this.url=C}}class nr extends fi{constructor(S,C,G="imperative",ne=null){super(S,C),this.type=0,this.navigationTrigger=G,this.restoredState=ne}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ri extends fi{constructor(S,C,G){super(S,C),this.urlAfterRedirects=G,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class yr extends fi{constructor(S,C,G,ne){super(S,C),this.reason=G,this.code=ne,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Un extends fi{constructor(S,C,G,ne){super(S,C),this.error=G,this.target=ne,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class kr extends fi{constructor(S,C,G,ne){super(S,C),this.urlAfterRedirects=G,this.state=ne,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class fs extends fi{constructor(S,C,G,ne){super(S,C),this.urlAfterRedirects=G,this.state=ne,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Fi extends fi{constructor(S,C,G,ne,je){super(S,C),this.urlAfterRedirects=G,this.state=ne,this.shouldActivate=je,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ti extends fi{constructor(S,C,G,ne){super(S,C),this.urlAfterRedirects=G,this.state=ne,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Sr extends fi{constructor(S,C,G,ne){super(S,C),this.urlAfterRedirects=G,this.state=ne,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class sr{constructor(S){this.route=S,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class qi{constructor(S){this.route=S,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class fr{constructor(S){this.snapshot=S,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Kr{constructor(S){this.snapshot=S,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class yi{constructor(S){this.snapshot=S,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ni{constructor(S){this.snapshot=S,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ar{constructor(S,C,G){this.routerEvent=S,this.position=C,this.anchor=G,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Tr{constructor(S){this._root=S}get root(){return this._root.value}parent(S){const C=this.pathFromRoot(S);return C.length>1?C[C.length-2]:null}children(S){const C=Si(S,this._root);return C?C.children.map(G=>G.value):[]}firstChild(S){const C=Si(S,this._root);return C&&C.children.length>0?C.children[0].value:null}siblings(S){const C=$r(S,this._root);return C.length<2?[]:C[C.length-2].children.map(ne=>ne.value).filter(ne=>ne!==S)}pathFromRoot(S){return $r(S,this._root).map(C=>C.value)}}function Si(A,S){if(A===S.value)return S;for(const C of S.children){const G=Si(A,C);if(G)return G}return null}function $r(A,S){if(A===S.value)return[S];for(const C of S.children){const G=$r(A,C);if(G.length)return G.unshift(S),G}return[]}class pi{constructor(S,C){this.value=S,this.children=C}toString(){return`TreeNode(${this.value})`}}function Yi(A){const S={};return A&&A.children.forEach(C=>S[C.value.outlet]=C),S}class Li extends Tr{constructor(S,C){super(S),this.snapshot=C,Ir(this,S)}toString(){return this.snapshot.toString()}}function vr(A,S){const C=function ir(A,S){const pt=new Vi([],{},{},"",{},Q,S,null,A.root,-1,{});return new ar("",new pi(pt,[]))}(A,S),G=new h.X([new Fe("",{})]),ne=new h.X({}),je=new h.X({}),pt=new h.X({}),It=new h.X(""),nn=new Oi(G,ne,pt,It,je,Q,S,C.root);return nn.snapshot=C.root,new Li(new pi(nn,[]),C)}class Oi{constructor(S,C,G,ne,je,pt,It,nn){this.url=S,this.params=C,this.queryParams=G,this.fragment=ne,this.data=je,this.outlet=pt,this.component=It,this._futureSnapshot=nn}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,V.U)(S=>ee(S)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,V.U)(S=>ee(S)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Pr(A,S="emptyOnly"){const C=A.pathFromRoot;let G=0;if("always"!==S)for(G=C.length-1;G>=1;){const ne=C[G],je=C[G-1];if(ne.routeConfig&&""===ne.routeConfig.path)G--;else{if(je.component)break;G--}}return function zr(A){return A.reduce((S,C)=>({params:{...S.params,...C.params},data:{...S.data,...C.data},resolve:{...C.data,...S.resolve,...C.routeConfig?.data,...C._resolvedData}}),{params:{},data:{},resolve:{}})}(C.slice(G))}class Vi{constructor(S,C,G,ne,je,pt,It,nn,wn,Zn,Rn,ai){this.url=S,this.params=C,this.queryParams=G,this.fragment=ne,this.data=je,this.outlet=pt,this.component=It,this.routeConfig=nn,this._urlSegment=wn,this._lastPathIndex=Zn,this._correctedLastPathIndex=ai??Zn,this._resolve=Rn}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=ee(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ee(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(G=>G.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ar extends Tr{constructor(S,C){super(C),this.url=S,Ir(this,C)}toString(){return pr(this._root)}}function Ir(A,S){S.value._routerState=A,S.children.forEach(C=>Ir(A,C))}function pr(A){const S=A.children.length>0?` { ${A.children.map(pr).join(", ")} } `:"";return`${A.value}${S}`}function lr(A){if(A.snapshot){const S=A.snapshot,C=A._futureSnapshot;A.snapshot=C,Re(S.queryParams,C.queryParams)||A.queryParams.next(C.queryParams),S.fragment!==C.fragment&&A.fragment.next(C.fragment),Re(S.params,C.params)||A.params.next(C.params),function U(A,S){if(A.length!==S.length)return!1;for(let C=0;CRe(C.parameters,S[G].parameters))}(A.url,S.url);return C&&!(!A.parent!=!S.parent)&&(!A.parent||wi(A.parent,S.parent))}function Xi(A,S,C){if(C&&A.shouldReuseRoute(S.value,C.value.snapshot)){const G=C.value;G._futureSnapshot=S.value;const ne=function Fr(A,S,C){return S.children.map(G=>{for(const ne of C.children)if(A.shouldReuseRoute(G.value,ne.value.snapshot))return Xi(A,G,ne);return Xi(A,G)})}(A,S,C);return new pi(G,ne)}{if(A.shouldAttach(S.value)){const je=A.retrieve(S.value);if(null!==je){const pt=je.route;return pt.value._futureSnapshot=S.value,pt.children=S.children.map(It=>Xi(A,It)),pt}}const G=function Rr(A){return new Oi(new h.X(A.url),new h.X(A.params),new h.X(A.queryParams),new h.X(A.fragment),new h.X(A.data),A.outlet,A.component,A)}(S.value),ne=S.children.map(je=>Xi(A,je));return new pi(G,ne)}}const br="ngNavigationCancelingError";function Jn(A,S){const{redirectTo:C,navigationBehaviorOptions:G}=Ne(S)?{redirectTo:S,navigationBehaviorOptions:void 0}:S,ne=wr(!1,0,S);return ne.url=C,ne.navigationBehaviorOptions=G,ne}function wr(A,S,C){const G=new Error("NavigationCancelingError: "+(A||""));return G[br]=!0,G.cancellationCode=S,C&&(G.url=C),G}function Cr(A){return vi(A)&&Ne(A.url)}function vi(A){return A&&A[br]}class Di{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Ki,this.attachRef=null}}let Ki=(()=>{class A{constructor(){this.contexts=new Map}onChildOutletCreated(C,G){const ne=this.getOrCreateContext(C);ne.outlet=G,this.contexts.set(C,ne)}onChildOutletDestroyed(C){const G=this.getContext(C);G&&(G.outlet=null,G.attachRef=null)}onOutletDeactivated(){const C=this.contexts;return this.contexts=new Map,C}onOutletReAttached(C){this.contexts=C}getOrCreateContext(C){let G=this.getContext(C);return G||(G=new Di,this.contexts.set(C,G)),G}getContext(C){return this.contexts.get(C)||null}}return A.\u0275fac=function(C){return new(C||A)},A.\u0275prov=i.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})();const Hi=!1;let ji=(()=>{class A{constructor(C,G,ne,je,pt){this.parentContexts=C,this.location=G,this.changeDetector=je,this.environmentInjector=pt,this.activated=null,this._activatedRoute=null,this.activateEvents=new i.vpe,this.deactivateEvents=new i.vpe,this.attachEvents=new i.vpe,this.detachEvents=new i.vpe,this.name=ne||Q,C.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const C=this.parentContexts.getContext(this.name);C&&C.route&&(C.attachRef?this.attach(C.attachRef,C.route):this.activateWith(C.route,C.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new i.vHH(4012,Hi);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new i.vHH(4012,Hi);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new i.vHH(4012,Hi);this.location.detach();const C=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(C.instance),C}attach(C,G){this.activated=C,this._activatedRoute=G,this.location.insert(C.hostView),this.attachEvents.emit(C.instance)}deactivate(){if(this.activated){const C=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(C)}}activateWith(C,G){if(this.isActivated)throw new i.vHH(4013,Hi);this._activatedRoute=C;const ne=this.location,pt=C._futureSnapshot.component,It=this.parentContexts.getOrCreateContext(this.name).children,nn=new Ei(C,It,ne.injector);if(G&&function J(A){return!!A.resolveComponentFactory}(G)){const wn=G.resolveComponentFactory(pt);this.activated=ne.createComponent(wn,ne.length,nn)}else this.activated=ne.createComponent(pt,{index:ne.length,injector:nn,environmentInjector:G??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return A.\u0275fac=function(C){return new(C||A)(i.Y36(Ki),i.Y36(i.s_b),i.$8M("name"),i.Y36(i.sBO),i.Y36(i.lqb))},A.\u0275dir=i.lG2({type:A,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),A})();class Ei{constructor(S,C,G){this.route=S,this.childContexts=C,this.parent=G}get(S,C){return S===Oi?this.route:S===Ki?this.childContexts:this.parent.get(S,C)}}let Ve=(()=>{class A{}return A.\u0275fac=function(C){return new(C||A)},A.\u0275cmp=i.Xpm({type:A,selectors:[["ng-component"]],decls:1,vars:0,template:function(C,G){1&C&&i._UZ(0,"router-outlet")},dependencies:[ji],encapsulation:2}),A})();function q(A,S){return A.providers&&!A._injector&&(A._injector=(0,i.MMx)(A.providers,S,`Route: ${A.path}`)),A._injector??S}function Nn(A){const S=A.children&&A.children.map(Nn),C=S?{...A,children:S}:{...A};return!C.component&&!C.loadComponent&&(S||C.loadChildren)&&C.outlet&&C.outlet!==Q&&(C.component=Ve),C}function Yn(A){return A.outlet||Q}function Kn(A,S){const C=A.filter(G=>Yn(G)===S);return C.push(...A.filter(G=>Yn(G)!==S)),C}function di(A){if(!A)return null;if(A.routeConfig?._injector)return A.routeConfig._injector;for(let S=A.parent;S;S=S.parent){const C=S.routeConfig;if(C?._loadedInjector)return C._loadedInjector;if(C?._injector)return C._injector}return null}class Hn{constructor(S,C,G,ne){this.routeReuseStrategy=S,this.futureState=C,this.currState=G,this.forwardEvent=ne}activate(S){const C=this.futureState._root,G=this.currState?this.currState._root:null;this.deactivateChildRoutes(C,G,S),lr(this.futureState.root),this.activateChildRoutes(C,G,S)}deactivateChildRoutes(S,C,G){const ne=Yi(C);S.children.forEach(je=>{const pt=je.value.outlet;this.deactivateRoutes(je,ne[pt],G),delete ne[pt]}),de(ne,(je,pt)=>{this.deactivateRouteAndItsChildren(je,G)})}deactivateRoutes(S,C,G){const ne=S.value,je=C?C.value:null;if(ne===je)if(ne.component){const pt=G.getContext(ne.outlet);pt&&this.deactivateChildRoutes(S,C,pt.children)}else this.deactivateChildRoutes(S,C,G);else je&&this.deactivateRouteAndItsChildren(C,G)}deactivateRouteAndItsChildren(S,C){S.value.component&&this.routeReuseStrategy.shouldDetach(S.value.snapshot)?this.detachAndStoreRouteSubtree(S,C):this.deactivateRouteAndOutlet(S,C)}detachAndStoreRouteSubtree(S,C){const G=C.getContext(S.value.outlet),ne=G&&S.value.component?G.children:C,je=Yi(S);for(const pt of Object.keys(je))this.deactivateRouteAndItsChildren(je[pt],ne);if(G&&G.outlet){const pt=G.outlet.detach(),It=G.children.onOutletDeactivated();this.routeReuseStrategy.store(S.value.snapshot,{componentRef:pt,route:S,contexts:It})}}deactivateRouteAndOutlet(S,C){const G=C.getContext(S.value.outlet),ne=G&&S.value.component?G.children:C,je=Yi(S);for(const pt of Object.keys(je))this.deactivateRouteAndItsChildren(je[pt],ne);G&&G.outlet&&(G.outlet.deactivate(),G.children.onOutletDeactivated(),G.attachRef=null,G.resolver=null,G.route=null)}activateChildRoutes(S,C,G){const ne=Yi(C);S.children.forEach(je=>{this.activateRoutes(je,ne[je.value.outlet],G),this.forwardEvent(new Ni(je.value.snapshot))}),S.children.length&&this.forwardEvent(new Kr(S.value.snapshot))}activateRoutes(S,C,G){const ne=S.value,je=C?C.value:null;if(lr(ne),ne===je)if(ne.component){const pt=G.getOrCreateContext(ne.outlet);this.activateChildRoutes(S,C,pt.children)}else this.activateChildRoutes(S,C,G);else if(ne.component){const pt=G.getOrCreateContext(ne.outlet);if(this.routeReuseStrategy.shouldAttach(ne.snapshot)){const It=this.routeReuseStrategy.retrieve(ne.snapshot);this.routeReuseStrategy.store(ne.snapshot,null),pt.children.onOutletReAttached(It.contexts),pt.attachRef=It.componentRef,pt.route=It.route.value,pt.outlet&&pt.outlet.attach(It.componentRef,It.route.value),lr(It.route.value),this.activateChildRoutes(S,null,pt.children)}else{const It=di(ne.snapshot),nn=It?.get(i._Vd)??null;pt.attachRef=null,pt.route=ne,pt.resolver=nn,pt.injector=It,pt.outlet&&pt.outlet.activateWith(ne,pt.injector),this.activateChildRoutes(S,null,pt.children)}}else this.activateChildRoutes(S,null,G)}}class cr{constructor(S){this.path=S,this.route=this.path[this.path.length-1]}}class Ii{constructor(S,C){this.component=S,this.route=C}}function li(A,S,C){const G=A._root;return te(G,S?S._root:null,C,[G.value])}function Qi(A,S,C){return(di(S)??C).get(A)}function te(A,S,C,G,ne={canDeactivateChecks:[],canActivateChecks:[]}){const je=Yi(S);return A.children.forEach(pt=>{(function K(A,S,C,G,ne={canDeactivateChecks:[],canActivateChecks:[]}){const je=A.value,pt=S?S.value:null,It=C?C.getContext(A.value.outlet):null;if(pt&&je.routeConfig===pt.routeConfig){const nn=function $(A,S,C){if("function"==typeof C)return C(A,S);switch(C){case"pathParamsChange":return!ce(A.url,S.url);case"pathParamsOrQueryParamsChange":return!ce(A.url,S.url)||!Re(A.queryParams,S.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!wi(A,S)||!Re(A.queryParams,S.queryParams);default:return!wi(A,S)}}(pt,je,je.routeConfig.runGuardsAndResolvers);nn?ne.canActivateChecks.push(new cr(G)):(je.data=pt.data,je._resolvedData=pt._resolvedData),te(A,S,je.component?It?It.children:null:C,G,ne),nn&&It&&It.outlet&&It.outlet.isActivated&&ne.canDeactivateChecks.push(new Ii(It.outlet.component,pt))}else pt&&Ge(S,It,ne),ne.canActivateChecks.push(new cr(G)),te(A,null,je.component?It?It.children:null:C,G,ne)})(pt,je[pt.value.outlet],C,G.concat([pt.value]),ne),delete je[pt.value.outlet]}),de(je,(pt,It)=>Ge(pt,C.getContext(It),ne)),ne}function Ge(A,S,C){const G=Yi(A),ne=A.value;de(G,(je,pt)=>{Ge(je,ne.component?S?S.children.getContext(pt):null:S,C)}),C.canDeactivateChecks.push(new Ii(ne.component&&S&&S.outlet&&S.outlet.isActivated?S.outlet.component:null,ne))}function Zt(A){return"function"==typeof A}function ns(A){return A instanceof c||"EmptyError"===A?.name}const Nr=Symbol("INITIAL_VALUE");function Ui(){return(0,Ee.w)(A=>(0,g.aj)(A.map(S=>S.pipe((0,le.q)(1),(0,oe.O)(Nr)))).pipe((0,V.U)(S=>{for(const C of S)if(!0!==C){if(C===Nr)return Nr;if(!1===C||C instanceof qe)return C}return!0}),(0,ue.h)(S=>S!==Nr),(0,le.q)(1)))}function Y(A){return(0,O.z)((0,lt.b)(S=>{if(Ne(S))throw Jn(0,S)}),(0,V.U)(S=>!0===S))}const o={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function d(A,S,C,G,ne){const je=E(A,S,C);return je.matched?function Ie(A,S,C,G){const ne=S.canMatch;if(!ne||0===ne.length)return(0,b.of)(!0);const je=ne.map(pt=>{const It=A.get(pt),nn=function Br(A){return A&&Zt(A.canMatch)}(It)?It.canMatch(S,C):It(S,C);return X(nn)});return(0,b.of)(je).pipe(Ui(),Y())}(G=q(S,G),S,C).pipe((0,V.U)(pt=>!0===pt?je:{...o})):(0,b.of)(je)}function E(A,S,C){if(""===S.path)return"full"===S.pathMatch&&(A.hasChildren()||C.length>0)?{...o}:{matched:!0,consumedSegments:[],remainingSegments:C,parameters:{},positionalParamSegments:{}};const ne=(S.matcher||R)(C,A,S);if(!ne)return{...o};const je={};de(ne.posParams,(It,nn)=>{je[nn]=It.path});const pt=ne.consumed.length>0?{...je,...ne.consumed[ne.consumed.length-1].parameters}:je;return{matched:!0,consumedSegments:ne.consumed,remainingSegments:C.slice(ne.consumed.length),parameters:pt,positionalParamSegments:ne.posParams??{}}}function L(A,S,C,G,ne="corrected"){if(C.length>0&&function Ze(A,S,C){return C.some(G=>At(A,S,G)&&Yn(G)!==Q)}(A,C,G)){const pt=new xe(S,function De(A,S,C,G){const ne={};ne[Q]=G,G._sourceSegment=A,G._segmentIndexShift=S.length;for(const je of C)if(""===je.path&&Yn(je)!==Q){const pt=new xe([],{});pt._sourceSegment=A,pt._segmentIndexShift=S.length,ne[Yn(je)]=pt}return ne}(A,S,G,new xe(C,A.children)));return pt._sourceSegment=A,pt._segmentIndexShift=S.length,{segmentGroup:pt,slicedSegments:[]}}if(0===C.length&&function mt(A,S,C){return C.some(G=>At(A,S,G))}(A,C,G)){const pt=new xe(A.segments,function Z(A,S,C,G,ne,je){const pt={};for(const It of G)if(At(A,C,It)&&!ne[Yn(It)]){const nn=new xe([],{});nn._sourceSegment=A,nn._segmentIndexShift="legacy"===je?A.segments.length:S.length,pt[Yn(It)]=nn}return{...ne,...pt}}(A,S,C,G,A.children,ne));return pt._sourceSegment=A,pt._segmentIndexShift=S.length,{segmentGroup:pt,slicedSegments:C}}const je=new xe(A.segments,A.children);return je._sourceSegment=A,je._segmentIndexShift=S.length,{segmentGroup:je,slicedSegments:C}}function At(A,S,C){return(!(A.hasChildren()||S.length>0)||"full"!==C.pathMatch)&&""===C.path}function bt(A,S,C,G){return!!(Yn(A)===G||G!==Q&&At(S,C,A))&&("**"===A.path||E(S,A,C).matched)}function Tt(A,S,C){return 0===S.length&&!A.children[C]}const xt=!1;class Lt{constructor(S){this.segmentGroup=S||null}}class Ot{constructor(S){this.urlTree=S}}function Ft(A){return(0,P._)(new Lt(A))}function Nt(A){return(0,P._)(new Ot(A))}class Qt{constructor(S,C,G,ne,je){this.injector=S,this.configLoader=C,this.urlSerializer=G,this.urlTree=ne,this.config=je,this.allowRedirects=!0}apply(){const S=L(this.urlTree.root,[],[],this.config).segmentGroup,C=new xe(S.segments,S.children);return this.expandSegmentGroup(this.injector,this.config,C,Q).pipe((0,V.U)(je=>this.createUrlTree(On(je),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,be.K)(je=>{if(je instanceof Ot)return this.allowRedirects=!1,this.match(je.urlTree);throw je instanceof Lt?this.noMatchError(je):je}))}match(S){return this.expandSegmentGroup(this.injector,this.config,S.root,Q).pipe((0,V.U)(ne=>this.createUrlTree(On(ne),S.queryParams,S.fragment))).pipe((0,be.K)(ne=>{throw ne instanceof Lt?this.noMatchError(ne):ne}))}noMatchError(S){return new i.vHH(4002,xt)}createUrlTree(S,C,G){const ne=mn(S);return new qe(ne,C,G)}expandSegmentGroup(S,C,G,ne){return 0===G.segments.length&&G.hasChildren()?this.expandChildren(S,C,G).pipe((0,V.U)(je=>new xe([],je))):this.expandSegment(S,G,C,G.segments,ne,!0)}expandChildren(S,C,G){const ne=[];for(const je of Object.keys(G.children))"primary"===je?ne.unshift(je):ne.push(je);return(0,v.D)(ne).pipe((0,Oe.b)(je=>{const pt=G.children[je],It=Kn(C,je);return this.expandSegmentGroup(S,It,pt,je).pipe((0,V.U)(nn=>({segment:nn,outlet:je})))}),me((je,pt)=>(je[pt.outlet]=pt.segment,je),{}),jt())}expandSegment(S,C,G,ne,je,pt){return(0,v.D)(G).pipe((0,Oe.b)(It=>this.expandSegmentAgainstRoute(S,C,G,It,ne,je,pt).pipe((0,be.K)(wn=>{if(wn instanceof Lt)return(0,b.of)(null);throw wn}))),tt(It=>!!It),(0,be.K)((It,nn)=>{if(ns(It))return Tt(C,ne,je)?(0,b.of)(new xe([],{})):Ft(C);throw It}))}expandSegmentAgainstRoute(S,C,G,ne,je,pt,It){return bt(ne,C,je,pt)?void 0===ne.redirectTo?this.matchSegmentAgainstRoute(S,C,ne,je,pt):It&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(S,C,G,ne,je,pt):Ft(C):Ft(C)}expandSegmentAgainstRouteUsingRedirect(S,C,G,ne,je,pt){return"**"===ne.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(S,G,ne,pt):this.expandRegularSegmentAgainstRouteUsingRedirect(S,C,G,ne,je,pt)}expandWildCardWithParamsAgainstRouteUsingRedirect(S,C,G,ne){const je=this.applyRedirectCommands([],G.redirectTo,{});return G.redirectTo.startsWith("/")?Nt(je):this.lineralizeSegments(G,je).pipe((0,_e.zg)(pt=>{const It=new xe(pt,{});return this.expandSegment(S,It,C,pt,ne,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(S,C,G,ne,je,pt){const{matched:It,consumedSegments:nn,remainingSegments:wn,positionalParamSegments:Zn}=E(C,ne,je);if(!It)return Ft(C);const Rn=this.applyRedirectCommands(nn,ne.redirectTo,Zn);return ne.redirectTo.startsWith("/")?Nt(Rn):this.lineralizeSegments(ne,Rn).pipe((0,_e.zg)(ai=>this.expandSegment(S,C,G,ai.concat(wn),pt,!1)))}matchSegmentAgainstRoute(S,C,G,ne,je){return"**"===G.path?(S=q(G,S),G.loadChildren?(G._loadedRoutes?(0,b.of)({routes:G._loadedRoutes,injector:G._loadedInjector}):this.configLoader.loadChildren(S,G)).pipe((0,V.U)(It=>(G._loadedRoutes=It.routes,G._loadedInjector=It.injector,new xe(ne,{})))):(0,b.of)(new xe(ne,{}))):d(C,G,ne,S).pipe((0,Ee.w)(({matched:pt,consumedSegments:It,remainingSegments:nn})=>pt?this.getChildConfig(S=G._injector??S,G,ne).pipe((0,_e.zg)(Zn=>{const Rn=Zn.injector??S,ai=Zn.routes,{segmentGroup:er,slicedSegments:ss}=L(C,It,nn,ai),jr=new xe(er.segments,er.children);if(0===ss.length&&jr.hasChildren())return this.expandChildren(Rn,ai,jr).pipe((0,V.U)(Cl=>new xe(It,Cl)));if(0===ai.length&&0===ss.length)return(0,b.of)(new xe(It,{}));const Er=Yn(G)===je;return this.expandSegment(Rn,jr,ai,ss,Er?Q:je,!0).pipe((0,V.U)(Vs=>new xe(It.concat(Vs.segments),Vs.children)))})):Ft(C)))}getChildConfig(S,C,G){return C.children?(0,b.of)({routes:C.children,injector:S}):C.loadChildren?void 0!==C._loadedRoutes?(0,b.of)({routes:C._loadedRoutes,injector:C._loadedInjector}):function M(A,S,C,G){const ne=S.canLoad;if(void 0===ne||0===ne.length)return(0,b.of)(!0);const je=ne.map(pt=>{const It=A.get(pt),nn=function bi(A){return A&&Zt(A.canLoad)}(It)?It.canLoad(S,C):It(S,C);return X(nn)});return(0,b.of)(je).pipe(Ui(),Y())}(S,C,G).pipe((0,_e.zg)(ne=>ne?this.configLoader.loadChildren(S,C).pipe((0,lt.b)(je=>{C._loadedRoutes=je.routes,C._loadedInjector=je.injector})):function Wt(A){return(0,P._)(wr(xt,3))}())):(0,b.of)({routes:[],injector:S})}lineralizeSegments(S,C){let G=[],ne=C.root;for(;;){if(G=G.concat(ne.segments),0===ne.numberOfChildren)return(0,b.of)(G);if(ne.numberOfChildren>1||!ne.children[Q])return(0,P._)(new i.vHH(4e3,xt));ne=ne.children[Q]}}applyRedirectCommands(S,C,G){return this.applyRedirectCreateUrlTree(C,this.urlSerializer.parse(C),S,G)}applyRedirectCreateUrlTree(S,C,G,ne){const je=this.createSegmentGroup(S,C.root,G,ne);return new qe(je,this.createQueryParams(C.queryParams,this.urlTree.queryParams),C.fragment)}createQueryParams(S,C){const G={};return de(S,(ne,je)=>{if("string"==typeof ne&&ne.startsWith(":")){const It=ne.substring(1);G[je]=C[It]}else G[je]=ne}),G}createSegmentGroup(S,C,G,ne){const je=this.createSegments(S,C.segments,G,ne);let pt={};return de(C.children,(It,nn)=>{pt[nn]=this.createSegmentGroup(S,It,G,ne)}),new xe(je,pt)}createSegments(S,C,G,ne){return C.map(je=>je.path.startsWith(":")?this.findPosParam(S,je,ne):this.findOrReturn(je,G))}findPosParam(S,C,G){const ne=G[C.path.substring(1)];if(!ne)throw new i.vHH(4001,xt);return ne}findOrReturn(S,C){let G=0;for(const ne of C){if(ne.path===S.path)return C.splice(G),ne;G++}return S}}class _n{}class vn{constructor(S,C,G,ne,je,pt,It,nn){this.injector=S,this.rootComponentType=C,this.config=G,this.urlTree=ne,this.url=je,this.paramsInheritanceStrategy=pt,this.relativeLinkResolution=It,this.urlSerializer=nn}recognize(){const S=L(this.urlTree.root,[],[],this.config.filter(C=>void 0===C.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,S,Q).pipe((0,V.U)(C=>{if(null===C)return null;const G=new Vi([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Q,this.rootComponentType,null,this.urlTree.root,-1,{}),ne=new pi(G,C),je=new ar(this.url,ne);return this.inheritParamsAndData(je._root),je}))}inheritParamsAndData(S){const C=S.value,G=Pr(C,this.paramsInheritanceStrategy);C.params=Object.freeze(G.params),C.data=Object.freeze(G.data),S.children.forEach(ne=>this.inheritParamsAndData(ne))}processSegmentGroup(S,C,G,ne){return 0===G.segments.length&&G.hasChildren()?this.processChildren(S,C,G):this.processSegment(S,C,G,G.segments,ne)}processChildren(S,C,G){return(0,v.D)(Object.keys(G.children)).pipe((0,Oe.b)(ne=>{const je=G.children[ne],pt=Kn(C,ne);return this.processSegmentGroup(S,pt,je,ne)}),me((ne,je)=>ne&&je?(ne.push(...je),ne):null),(0,et.o)(ne=>null!==ne),W(null),jt(),(0,V.U)(ne=>{if(null===ne)return null;const je=pn(ne);return function yn(A){A.sort((S,C)=>S.value.outlet===Q?-1:C.value.outlet===Q?1:S.value.outlet.localeCompare(C.value.outlet))}(je),je}))}processSegment(S,C,G,ne,je){return(0,v.D)(C).pipe((0,Oe.b)(pt=>this.processSegmentAgainstRoute(pt._injector??S,pt,G,ne,je)),tt(pt=>!!pt),(0,be.K)(pt=>{if(ns(pt))return Tt(G,ne,je)?(0,b.of)([]):(0,b.of)(null);throw pt}))}processSegmentAgainstRoute(S,C,G,ne,je){if(C.redirectTo||!bt(C,G,ne,je))return(0,b.of)(null);let pt;if("**"===C.path){const It=ne.length>0?m(ne).parameters:{},nn=Pn(G)+ne.length,wn=new Vi(ne,It,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,ri(C),Yn(C),C.component??C._loadedComponent??null,C,Qn(G),nn,oi(C),nn);pt=(0,b.of)({snapshot:wn,consumedSegments:[],remainingSegments:[]})}else pt=d(G,C,ne,S).pipe((0,V.U)(({matched:It,consumedSegments:nn,remainingSegments:wn,parameters:Zn})=>{if(!It)return null;const Rn=Pn(G)+nn.length;return{snapshot:new Vi(nn,Zn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,ri(C),Yn(C),C.component??C._loadedComponent??null,C,Qn(G),Rn,oi(C),Rn),consumedSegments:nn,remainingSegments:wn}}));return pt.pipe((0,Ee.w)(It=>{if(null===It)return(0,b.of)(null);const{snapshot:nn,consumedSegments:wn,remainingSegments:Zn}=It;S=C._injector??S;const Rn=C._loadedInjector??S,ai=function cn(A){return A.children?A.children:A.loadChildren?A._loadedRoutes:[]}(C),{segmentGroup:er,slicedSegments:ss}=L(G,wn,Zn,ai.filter(Er=>void 0===Er.redirectTo),this.relativeLinkResolution);if(0===ss.length&&er.hasChildren())return this.processChildren(Rn,ai,er).pipe((0,V.U)(Er=>null===Er?null:[new pi(nn,Er)]));if(0===ai.length&&0===ss.length)return(0,b.of)([new pi(nn,[])]);const jr=Yn(C)===je;return this.processSegment(Rn,ai,er,ss,jr?Q:je).pipe((0,V.U)(Er=>null===Er?null:[new pi(nn,Er)]))}))}}function dn(A){const S=A.value.routeConfig;return S&&""===S.path&&void 0===S.redirectTo}function pn(A){const S=[],C=new Set;for(const G of A){if(!dn(G)){S.push(G);continue}const ne=S.find(je=>G.value.routeConfig===je.value.routeConfig);void 0!==ne?(ne.children.push(...G.children),C.add(ne)):S.push(G)}for(const G of C){const ne=pn(G.children);S.push(new pi(G.value,ne))}return S.filter(G=>!C.has(G))}function Qn(A){let S=A;for(;S._sourceSegment;)S=S._sourceSegment;return S}function Pn(A){let S=A,C=S._segmentIndexShift??0;for(;S._sourceSegment;)S=S._sourceSegment,C+=S._segmentIndexShift??0;return C-1}function ri(A){return A.data||{}}function oi(A){return A.resolve||{}}const ur=Symbol("RouteTitle");function Hr(A){return"string"==typeof A.title||null===A.title}function Bo(A){return(0,Ee.w)(S=>{const C=A(S);return C?(0,v.D)(C).pipe((0,V.U)(()=>S)):(0,b.of)(S)})}let Es=(()=>{class A{buildTitle(C){let G,ne=C.root;for(;void 0!==ne;)G=this.getResolvedTitleForRoute(ne)??G,ne=ne.children.find(je=>je.outlet===Q);return G}getResolvedTitleForRoute(C){return C.data[ur]}}return A.\u0275fac=function(C){return new(C||A)},A.\u0275prov=i.Yz7({token:A,factory:function(){return(0,i.f3M)(Zs)},providedIn:"root"}),A})(),Zs=(()=>{class A extends Es{constructor(C){super(),this.title=C}updateTitle(C){const G=this.buildTitle(C);void 0!==G&&this.title.setTitle(G)}}return A.\u0275fac=function(C){return new(C||A)(i.LFG(nt.Dx))},A.\u0275prov=i.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})();class qs{}class pl extends class Xs{shouldDetach(S){return!1}store(S,C){}shouldAttach(S){return!1}retrieve(S){return null}shouldReuseRoute(S,C){return S.routeConfig===C.routeConfig}}{}const Js=new i.OlP("",{providedIn:"root",factory:()=>({})}),eo=new i.OlP("ROUTES");let Vo=(()=>{class A{constructor(C,G){this.injector=C,this.compiler=G,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(C){if(this.componentLoaders.get(C))return this.componentLoaders.get(C);if(C._loadedComponent)return(0,b.of)(C._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(C);const G=X(C.loadComponent()).pipe((0,lt.b)(je=>{this.onLoadEndListener&&this.onLoadEndListener(C),C._loadedComponent=je}),(0,_t.x)(()=>{this.componentLoaders.delete(C)})),ne=new z.c(G,()=>new ae.xQ).pipe((0,Be.x)());return this.componentLoaders.set(C,ne),ne}loadChildren(C,G){if(this.childrenLoaders.get(G))return this.childrenLoaders.get(G);if(G._loadedRoutes)return(0,b.of)({routes:G._loadedRoutes,injector:G._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(G);const je=this.loadModuleFactoryOrRoutes(G.loadChildren).pipe((0,V.U)(It=>{this.onLoadEndListener&&this.onLoadEndListener(G);let nn,wn,Zn=!1;Array.isArray(It)?wn=It:(nn=It.create(C).injector,wn=p(nn.get(eo,[],i.XFs.Self|i.XFs.Optional)));return{routes:wn.map(Nn),injector:nn}}),(0,_t.x)(()=>{this.childrenLoaders.delete(G)})),pt=new z.c(je,()=>new ae.xQ).pipe((0,Be.x)());return this.childrenLoaders.set(G,pt),pt}loadModuleFactoryOrRoutes(C){return X(C()).pipe((0,_e.zg)(G=>G instanceof i.YKP||Array.isArray(G)?(0,b.of)(G):(0,v.D)(this.compiler.compileModuleAsync(G))))}}return A.\u0275fac=function(C){return new(C||A)(i.LFG(i.zs3),i.LFG(i.Sil))},A.\u0275prov=i.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})();class to{}class Os{shouldProcessUrl(S){return!0}extract(S){return S}merge(S,C){return S}}function ya(A){throw A}function va(A,S,C){return S.parse("/")}const xs={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ml={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function io(){const A=(0,i.f3M)(Ce),S=(0,i.f3M)(Ki),C=(0,i.f3M)(we.Ye),G=(0,i.f3M)(i.zs3),ne=(0,i.f3M)(i.Sil),je=(0,i.f3M)(eo,{optional:!0})??[],pt=(0,i.f3M)(Js,{optional:!0})??{},It=(0,i.f3M)(Zs),nn=(0,i.f3M)(Es,{optional:!0}),wn=(0,i.f3M)(to,{optional:!0}),Zn=(0,i.f3M)(qs,{optional:!0}),Rn=new rr(null,A,S,C,G,ne,p(je));return wn&&(Rn.urlHandlingStrategy=wn),Zn&&(Rn.routeReuseStrategy=Zn),Rn.titleStrategy=nn??It,function ba(A,S){A.errorHandler&&(S.errorHandler=A.errorHandler),A.malformedUriErrorHandler&&(S.malformedUriErrorHandler=A.malformedUriErrorHandler),A.onSameUrlNavigation&&(S.onSameUrlNavigation=A.onSameUrlNavigation),A.paramsInheritanceStrategy&&(S.paramsInheritanceStrategy=A.paramsInheritanceStrategy),A.relativeLinkResolution&&(S.relativeLinkResolution=A.relativeLinkResolution),A.urlUpdateStrategy&&(S.urlUpdateStrategy=A.urlUpdateStrategy),A.canceledNavigationResolution&&(S.canceledNavigationResolution=A.canceledNavigationResolution)}(pt,Rn),Rn}let rr=(()=>{class A{constructor(C,G,ne,je,pt,It,nn){this.rootComponentType=C,this.urlSerializer=G,this.rootContexts=ne,this.location=je,this.config=nn,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new ae.xQ,this.errorHandler=ya,this.malformedUriErrorHandler=va,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,b.of)(void 0),this.urlHandlingStrategy=new Os,this.routeReuseStrategy=new pl,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=pt.get(Vo),this.configLoader.onLoadEndListener=ai=>this.triggerEvent(new qi(ai)),this.configLoader.onLoadStartListener=ai=>this.triggerEvent(new sr(ai)),this.ngModule=pt.get(i.h0i),this.console=pt.get(i.c2e);const Rn=pt.get(i.R0b);this.isNgZoneEnabled=Rn instanceof i.R0b&&i.R0b.isInAngularZone(),this.resetConfig(nn),this.currentUrlTree=function f(){return new qe(new xe([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=vr(this.currentUrlTree,this.rootComponentType),this.transitions=new h.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(C){const G=this.events;return C.pipe((0,ue.h)(ne=>0!==ne.id),(0,V.U)(ne=>({...ne,extractedUrl:this.urlHandlingStrategy.extract(ne.rawUrl)})),(0,Ee.w)(ne=>{let je=!1,pt=!1;return(0,b.of)(ne).pipe((0,lt.b)(It=>{this.currentNavigation={id:It.id,initialUrl:It.rawUrl,extractedUrl:It.extractedUrl,trigger:It.source,extras:It.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Ee.w)(It=>{const nn=this.browserUrlTree.toString(),wn=!this.navigated||It.extractedUrl.toString()!==nn||nn!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||wn)&&this.urlHandlingStrategy.shouldProcessUrl(It.rawUrl))return ro(It.source)&&(this.browserUrlTree=It.extractedUrl),(0,b.of)(It).pipe((0,Ee.w)(Rn=>{const ai=this.transitions.getValue();return G.next(new nr(Rn.id,this.serializeUrl(Rn.extractedUrl),Rn.source,Rn.restoredState)),ai!==this.transitions.getValue()?F.E:Promise.resolve(Rn)}),function tn(A,S,C,G){return(0,Ee.w)(ne=>function zt(A,S,C,G,ne){return new Qt(A,S,C,G,ne).apply()}(A,S,C,ne.extractedUrl,G).pipe((0,V.U)(je=>({...ne,urlAfterRedirects:je}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,lt.b)(Rn=>{this.currentNavigation={...this.currentNavigation,finalUrl:Rn.urlAfterRedirects},ne.urlAfterRedirects=Rn.urlAfterRedirects}),function xi(A,S,C,G,ne,je){return(0,_e.zg)(pt=>function gn(A,S,C,G,ne,je,pt="emptyOnly",It="legacy"){return new vn(A,S,C,G,ne,pt,It,je).recognize().pipe((0,Ee.w)(nn=>null===nn?function hn(A){return new k.y(S=>S.error(A))}(new _n):(0,b.of)(nn)))}(A,S,C,pt.urlAfterRedirects,G.serialize(pt.urlAfterRedirects),G,ne,je).pipe((0,V.U)(It=>({...pt,targetSnapshot:It}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,lt.b)(Rn=>{if(ne.targetSnapshot=Rn.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!Rn.extras.skipLocationChange){const er=this.urlHandlingStrategy.merge(Rn.urlAfterRedirects,Rn.rawUrl);this.setBrowserUrl(er,Rn)}this.browserUrlTree=Rn.urlAfterRedirects}const ai=new kr(Rn.id,this.serializeUrl(Rn.extractedUrl),this.serializeUrl(Rn.urlAfterRedirects),Rn.targetSnapshot);G.next(ai)}));if(wn&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:ai,extractedUrl:er,source:ss,restoredState:jr,extras:Er}=It,Ns=new nr(ai,this.serializeUrl(er),ss,jr);G.next(Ns);const Vs=vr(er,this.rootComponentType).snapshot;return ne={...It,targetSnapshot:Vs,urlAfterRedirects:er,extras:{...Er,skipLocationChange:!1,replaceUrl:!1}},(0,b.of)(ne)}return this.rawUrlTree=It.rawUrl,It.resolve(null),F.E}),(0,lt.b)(It=>{const nn=new fs(It.id,this.serializeUrl(It.extractedUrl),this.serializeUrl(It.urlAfterRedirects),It.targetSnapshot);this.triggerEvent(nn)}),(0,V.U)(It=>ne={...It,guards:li(It.targetSnapshot,It.currentSnapshot,this.rootContexts)}),function hi(A,S){return(0,_e.zg)(C=>{const{targetSnapshot:G,currentSnapshot:ne,guards:{canActivateChecks:je,canDeactivateChecks:pt}}=C;return 0===pt.length&&0===je.length?(0,b.of)({...C,guardsResult:!0}):function Vr(A,S,C,G){return(0,v.D)(A).pipe((0,_e.zg)(ne=>function w(A,S,C,G,ne){const je=S&&S.routeConfig?S.routeConfig.canDeactivate:null;if(!je||0===je.length)return(0,b.of)(!0);const pt=je.map(It=>{const nn=Qi(It,S,ne);return X(function Lr(A){return A&&Zt(A.canDeactivate)}(nn)?nn.canDeactivate(A,S,C,G):nn(A,S,C,G)).pipe(tt())});return(0,b.of)(pt).pipe(Ui())}(ne.component,ne.route,C,S,G)),tt(ne=>!0!==ne,!0))}(pt,G,ne,A).pipe((0,_e.zg)(It=>It&&function Mn(A){return"boolean"==typeof A}(It)?function Ji(A,S,C,G){return(0,v.D)(S).pipe((0,Oe.b)(ne=>(0,D.z)(function Cs(A,S){return null!==A&&S&&S(new fr(A)),(0,b.of)(!0)}(ne.route.parent,G),function ws(A,S){return null!==A&&S&&S(new yi(A)),(0,b.of)(!0)}(ne.route,G),function Te(A,S,C){const G=S[S.length-1],je=S.slice(0,S.length-1).reverse().map(pt=>function Dr(A){const S=A.routeConfig?A.routeConfig.canActivateChild:null;return S&&0!==S.length?{node:A,guards:S}:null}(pt)).filter(pt=>null!==pt).map(pt=>(0,B.P)(()=>{const It=pt.guards.map(nn=>{const wn=Qi(nn,pt.node,C);return X(function ki(A){return A&&Zt(A.canActivateChild)}(wn)?wn.canActivateChild(G,A):wn(G,A)).pipe(tt())});return(0,b.of)(It).pipe(Ui())}));return(0,b.of)(je).pipe(Ui())}(A,ne.path,C),function Ds(A,S,C){const G=S.routeConfig?S.routeConfig.canActivate:null;if(!G||0===G.length)return(0,b.of)(!0);const ne=G.map(je=>(0,B.P)(()=>{const pt=Qi(je,S,C);return X(function mi(A){return A&&Zt(A.canActivate)}(pt)?pt.canActivate(S,A):pt(S,A)).pipe(tt())}));return(0,b.of)(ne).pipe(Ui())}(A,ne.route,C))),tt(ne=>!0!==ne,!0))}(G,je,A,S):(0,b.of)(It)),(0,V.U)(It=>({...C,guardsResult:It})))})}(this.ngModule.injector,It=>this.triggerEvent(It)),(0,lt.b)(It=>{if(ne.guardsResult=It.guardsResult,Ne(It.guardsResult))throw Jn(0,It.guardsResult);const nn=new Fi(It.id,this.serializeUrl(It.extractedUrl),this.serializeUrl(It.urlAfterRedirects),It.targetSnapshot,!!It.guardsResult);this.triggerEvent(nn)}),(0,ue.h)(It=>!!It.guardsResult||(this.restoreHistory(It),this.cancelNavigationTransition(It,"",3),!1)),Bo(It=>{if(It.guards.canActivateChecks.length)return(0,b.of)(It).pipe((0,lt.b)(nn=>{const wn=new Ti(nn.id,this.serializeUrl(nn.extractedUrl),this.serializeUrl(nn.urlAfterRedirects),nn.targetSnapshot);this.triggerEvent(wn)}),(0,Ee.w)(nn=>{let wn=!1;return(0,b.of)(nn).pipe(function Mi(A,S){return(0,_e.zg)(C=>{const{targetSnapshot:G,guards:{canActivateChecks:ne}}=C;if(!ne.length)return(0,b.of)(C);let je=0;return(0,v.D)(ne).pipe((0,Oe.b)(pt=>function is(A,S,C,G){const ne=A.routeConfig,je=A._resolve;return void 0!==ne?.title&&!Hr(ne)&&(je[ur]=ne.title),function dr(A,S,C,G){const ne=function ps(A){return[...Object.keys(A),...Object.getOwnPropertySymbols(A)]}(A);if(0===ne.length)return(0,b.of)({});const je={};return(0,v.D)(ne).pipe((0,_e.zg)(pt=>function Rs(A,S,C,G){const ne=Qi(A,S,G);return X(ne.resolve?ne.resolve(S,C):ne(S,C))}(A[pt],S,C,G).pipe(tt(),(0,lt.b)(It=>{je[pt]=It}))),ft(1),(0,Mt.h)(je),(0,be.K)(pt=>ns(pt)?F.E:(0,P._)(pt)))}(je,A,S,G).pipe((0,V.U)(pt=>(A._resolvedData=pt,A.data=Pr(A,C).resolve,ne&&Hr(ne)&&(A.data[ur]=ne.title),null)))}(pt.route,G,A,S)),(0,lt.b)(()=>je++),ft(1),(0,_e.zg)(pt=>je===ne.length?(0,b.of)(C):F.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,lt.b)({next:()=>wn=!0,complete:()=>{wn||(this.restoreHistory(nn),this.cancelNavigationTransition(nn,"",2))}}))}),(0,lt.b)(nn=>{const wn=new Sr(nn.id,this.serializeUrl(nn.extractedUrl),this.serializeUrl(nn.urlAfterRedirects),nn.targetSnapshot);this.triggerEvent(wn)}))}),Bo(It=>{const nn=wn=>{const Zn=[];wn.routeConfig?.loadComponent&&!wn.routeConfig._loadedComponent&&Zn.push(this.configLoader.loadComponent(wn.routeConfig).pipe((0,lt.b)(Rn=>{wn.component=Rn}),(0,V.U)(()=>{})));for(const Rn of wn.children)Zn.push(...nn(Rn));return Zn};return(0,g.aj)(nn(It.targetSnapshot.root)).pipe(W(),(0,le.q)(1))}),Bo(()=>this.afterPreactivation()),(0,V.U)(It=>{const nn=function Wr(A,S,C){const G=Xi(A,S._root,C?C._root:void 0);return new Li(G,S)}(this.routeReuseStrategy,It.targetSnapshot,It.currentRouterState);return ne={...It,targetRouterState:nn}}),(0,lt.b)(It=>{this.currentUrlTree=It.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(It.urlAfterRedirects,It.rawUrl),this.routerState=It.targetRouterState,"deferred"===this.urlUpdateStrategy&&(It.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,It),this.browserUrlTree=It.urlAfterRedirects)}),((A,S,C)=>(0,V.U)(G=>(new Hn(S,G.targetRouterState,G.currentRouterState,C).activate(A),G)))(this.rootContexts,this.routeReuseStrategy,It=>this.triggerEvent(It)),(0,lt.b)({next(){je=!0},complete(){je=!0}}),(0,_t.x)(()=>{je||pt||this.cancelNavigationTransition(ne,"",1),this.currentNavigation?.id===ne.id&&(this.currentNavigation=null)}),(0,be.K)(It=>{if(pt=!0,vi(It)){Cr(It)||(this.navigated=!0,this.restoreHistory(ne,!0));const nn=new yr(ne.id,this.serializeUrl(ne.extractedUrl),It.message,It.cancellationCode);if(G.next(nn),Cr(It)){const wn=this.urlHandlingStrategy.merge(It.url,this.rawUrlTree),Zn={skipLocationChange:ne.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||ro(ne.source)};this.scheduleNavigation(wn,"imperative",null,Zn,{resolve:ne.resolve,reject:ne.reject,promise:ne.promise})}else ne.resolve(!1)}else{this.restoreHistory(ne,!0);const nn=new Un(ne.id,this.serializeUrl(ne.extractedUrl),It,ne.targetSnapshot??void 0);G.next(nn);try{ne.resolve(this.errorHandler(It))}catch(wn){ne.reject(wn)}}return F.E}))}))}resetRootComponentType(C){this.rootComponentType=C,this.routerState.root.component=this.rootComponentType}setTransition(C){this.transitions.next({...this.transitions.value,...C})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(C=>{const G="popstate"===C.type?"popstate":"hashchange";"popstate"===G&&setTimeout(()=>{const ne={replaceUrl:!0},je=C.state?.navigationId?C.state:null;if(je){const It={...je};delete It.navigationId,delete It.\u0275routerPageId,0!==Object.keys(It).length&&(ne.state=It)}const pt=this.parseUrl(C.url);this.scheduleNavigation(pt,G,je,ne)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(C){this.events.next(C)}resetConfig(C){this.config=C.map(Nn),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(C,G={}){const{relativeTo:ne,queryParams:je,fragment:pt,queryParamsHandling:It,preserveFragment:nn}=G,wn=ne||this.routerState.root,Zn=nn?this.currentUrlTree.fragment:pt;let Rn=null;switch(It){case"merge":Rn={...this.currentUrlTree.queryParams,...je};break;case"preserve":Rn=this.currentUrlTree.queryParams;break;default:Rn=je||null}return null!==Rn&&(Rn=this.removeEmptyProps(Rn)),Gt(wn,this.currentUrlTree,C,Rn,Zn??null)}navigateByUrl(C,G={skipLocationChange:!1}){const ne=Ne(C)?C:this.parseUrl(C),je=this.urlHandlingStrategy.merge(ne,this.rawUrlTree);return this.scheduleNavigation(je,"imperative",null,G)}navigate(C,G={skipLocationChange:!1}){return function wa(A){for(let S=0;S{const je=C[ne];return null!=je&&(G[ne]=je),G},{})}processNavigations(){this.navigations.subscribe(C=>{this.navigated=!0,this.lastSuccessfulId=C.id,this.currentPageId=C.targetPageId,this.events.next(new Ri(C.id,this.serializeUrl(C.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),C.resolve(!0)},C=>{this.console.warn(`Unhandled Navigation Error: ${C}`)})}scheduleNavigation(C,G,ne,je,pt){if(this.disposed)return Promise.resolve(!1);let It,nn,wn;pt?(It=pt.resolve,nn=pt.reject,wn=pt.promise):wn=new Promise((ai,er)=>{It=ai,nn=er});const Zn=++this.navigationId;let Rn;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(ne=this.location.getState()),Rn=ne&&ne.\u0275routerPageId?ne.\u0275routerPageId:je.replaceUrl||je.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):Rn=0,this.setTransition({id:Zn,targetPageId:Rn,source:G,restoredState:ne,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:C,extras:je,resolve:It,reject:nn,promise:wn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),wn.catch(ai=>Promise.reject(ai))}setBrowserUrl(C,G){const ne=this.urlSerializer.serialize(C),je={...G.extras.state,...this.generateNgRouterState(G.id,G.targetPageId)};this.location.isCurrentPathEqualTo(ne)||G.extras.replaceUrl?this.location.replaceState(ne,"",je):this.location.go(ne,"",je)}restoreHistory(C,G=!1){if("computed"===this.canceledNavigationResolution){const ne=this.currentPageId-C.targetPageId;"popstate"!==C.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===ne?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===ne&&(this.resetState(C),this.browserUrlTree=C.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(ne)}else"replace"===this.canceledNavigationResolution&&(G&&this.resetState(C),this.resetUrlToCurrentUrlTree())}resetState(C){this.routerState=C.currentRouterState,this.currentUrlTree=C.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,C.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(C,G,ne){const je=new yr(C.id,this.serializeUrl(C.extractedUrl),G,ne);this.triggerEvent(je),C.resolve(!1)}generateNgRouterState(C,G){return"computed"===this.canceledNavigationResolution?{navigationId:C,\u0275routerPageId:G}:{navigationId:C}}}return A.\u0275fac=function(C){i.$Z()},A.\u0275prov=i.Yz7({token:A,factory:function(){return io()},providedIn:"root"}),A})();function ro(A){return"imperative"!==A}let Qr=(()=>{class A{constructor(C,G,ne){this.router=C,this.route=G,this.locationStrategy=ne,this.commands=null,this.href=null,this.onChanges=new ae.xQ,this.subscription=C.events.subscribe(je=>{je instanceof Ri&&this.updateTargetUrlAndHref()})}set routerLink(C){this.commands=null!=C?Array.isArray(C)?C:[C]:null}ngOnChanges(C){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(C,G,ne,je,pt){if(0!==C||G||ne||je||pt||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const It={skipLocationChange:(0,i.D6c)(this.skipLocationChange),replaceUrl:(0,i.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,It),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,i.D6c)(this.preserveFragment)})}}return A.\u0275fac=function(C){return new(C||A)(i.Y36(rr),i.Y36(Oi),i.Y36(we.S$))},A.\u0275dir=i.lG2({type:A,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(C,G){1&C&&i.NdJ("click",function(je){return G.onClick(je.button,je.ctrlKey,je.shiftKey,je.altKey,je.metaKey)}),2&C&&i.uIk("target",G.target)("href",G.href,i.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[i.TTD]}),A})();class so{}let Da=(()=>{class A{constructor(C,G,ne,je,pt){this.router=C,this.injector=ne,this.preloadingStrategy=je,this.loader=pt}setUpPreloading(){this.subscription=this.router.events.pipe((0,ue.h)(C=>C instanceof Ri),(0,Oe.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(C,G){const ne=[];for(const je of G){je.providers&&!je._injector&&(je._injector=(0,i.MMx)(je.providers,C,`Route: ${je.path}`));const pt=je._injector??C,It=je._loadedInjector??pt;je.loadChildren&&!je._loadedRoutes&&void 0===je.canLoad||je.loadComponent&&!je._loadedComponent?ne.push(this.preloadConfig(pt,je)):(je.children||je._loadedRoutes)&&ne.push(this.processRoutes(It,je.children??je._loadedRoutes))}return(0,v.D)(ne).pipe((0,at.J)())}preloadConfig(C,G){return this.preloadingStrategy.preload(G,()=>{let ne;ne=G.loadChildren&&void 0===G.canLoad?this.loader.loadChildren(C,G):(0,b.of)(null);const je=ne.pipe((0,_e.zg)(pt=>null===pt?(0,b.of)(void 0):(G._loadedRoutes=pt.routes,G._loadedInjector=pt.injector,this.processRoutes(pt.injector??C,pt.routes))));if(G.loadComponent&&!G._loadedComponent){const pt=this.loader.loadComponent(G);return(0,v.D)([je,pt]).pipe((0,at.J)())}return je})}}return A.\u0275fac=function(C){return new(C||A)(i.LFG(rr),i.LFG(i.Sil),i.LFG(i.lqb),i.LFG(so),i.LFG(Vo))},A.\u0275prov=i.Yz7({token:A,factory:A.\u0275fac}),A})();const gi=new i.OlP("");let Gu=(()=>{class A{constructor(C,G,ne={}){this.router=C,this.viewportScroller=G,this.options=ne,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},ne.scrollPositionRestoration=ne.scrollPositionRestoration||"disabled",ne.anchorScrolling=ne.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(C=>{C instanceof nr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=C.navigationTrigger,this.restoredId=C.restoredState?C.restoredState.navigationId:0):C instanceof Ri&&(this.lastId=C.id,this.scheduleScrollEvent(C,this.router.parseUrl(C.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(C=>{C instanceof Ar&&(C.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(C.position):C.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(C.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(C,G){this.router.triggerEvent(new Ar(C,"popstate"===this.lastSource?this.store[this.restoredId]:null,G))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return A.\u0275fac=function(C){i.$Z()},A.\u0275prov=i.Yz7({token:A,factory:A.\u0275fac}),A})();const gl=new i.OlP("ROUTER_FORROOT_GUARD"),_l=new i.OlP(""),$u=[we.Ye,{provide:Ce,useClass:Ye},{provide:rr,useFactory:io},Ki,{provide:Oi,useFactory:function zu(A){return A.routerState.root},deps:[rr]},Vo];function Ps(){return new i.PXZ("Router",rr)}let Wu=(()=>{class A{constructor(C){}static forRoot(C,G){return{ngModule:A,providers:[$u,[],yl(C),{provide:gl,useFactory:Fs,deps:[[rr,new i.FiY,new i.tp0]]},{provide:Js,useValue:G||{}},G?.useHash?{provide:we.S$,useClass:we.Do}:{provide:we.S$,useClass:we.b0},{provide:gi,useFactory:()=>{const A=(0,i.f3M)(rr),S=(0,i.f3M)(we.EM),C=(0,i.f3M)(Js);return C.scrollOffset&&S.setOffset(C.scrollOffset),new Gu(A,S,C)}},G?.preloadingStrategy?Ku(G.preloadingStrategy):[],{provide:i.PXZ,multi:!0,useFactory:Ps},G?.initialNavigation?Zr(G):[],[{provide:mr,useFactory:vl},{provide:i.tb,multi:!0,useExisting:mr}]]}}static forChild(C){return{ngModule:A,providers:[yl(C)]}}}return A.\u0275fac=function(C){return new(C||A)(i.LFG(gl,8))},A.\u0275mod=i.oAB({type:A}),A.\u0275inj=i.cJS({}),A})();function Fs(A){return"guarded"}function yl(A){return[{provide:eo,multi:!0,useValue:A}]}function vl(){const A=(0,i.f3M)(i.zs3);return S=>{const C=A.get(i.z2F);if(S!==C.components[0])return;const G=A.get(rr),ne=A.get(Ls);1===A.get(oo)&&G.initialNavigation(),A.get(_l,null,i.XFs.Optional)?.setUpPreloading(),A.get(gi,null,i.XFs.Optional)?.init(),G.resetRootComponentType(C.componentTypes[0]),ne.next(),ne.complete()}}const mr=new i.OlP("");function Zr(A){return["disabled"===A.initialNavigation?[{provide:i.ip1,multi:!0,useFactory:()=>{const A=(0,i.f3M)(rr);return()=>{A.setUpLocationChangeListener()}}},{provide:oo,useValue:2}]:[],"enabledBlocking"===A.initialNavigation?[{provide:oo,useValue:0},{provide:i.ip1,multi:!0,deps:[i.zs3],useFactory:A=>{const S=A.get(we.V_,Promise.resolve(null));let C=!1;return()=>S.then(()=>new Promise(ne=>{const je=A.get(rr),pt=A.get(Ls);(function G(ne){A.get(rr).events.pipe((0,ue.h)(pt=>pt instanceof Ri||pt instanceof yr||pt instanceof Un),(0,V.U)(pt=>pt instanceof Ri||pt instanceof yr&&(0===pt.code||1===pt.code)&&null),(0,ue.h)(pt=>null!==pt),(0,le.q)(1)).subscribe(()=>{ne()})})(()=>{ne(!0),C=!0}),je.afterPreactivation=()=>(ne(!0),C||pt.closed?(0,b.of)(void 0):pt),je.initialNavigation()}))}}]:[]]}const Ls=new i.OlP("",{factory:()=>new ae.xQ}),oo=new i.OlP("",{providedIn:"root",factory:()=>1});function Ku(A){return[Da,{provide:_l,useExisting:Da},{provide:so,useExisting:A}]}},8012:(Ct,ke,u)=>{"use strict";u.d(ke,{Ai:()=>g,DH:()=>le,KN:()=>c,dH:()=>k,rV:()=>P,ux:()=>we,wZ:()=>F});var i=u(1757);const a="https://www.bungie.net/Platform/Destiny2/";function c(_t){return(0,i.U)(_t,`${a}Manifest/`)}function g(_t,Be){const at={};return Be.components?.length&&(at.components=Be.components.join(",")),(0,i.U)(_t,`${a}${Be.membershipType}/Profile/${Be.destinyMembershipId}/`,at)}function P(_t,Be){const at={};return Be.components?.length&&(at.components=Be.components.join(",")),(0,i.U)(_t,`${a}${Be.membershipType}/Profile/${Be.destinyMembershipId}/Item/${Be.itemInstanceId}/`,at)}function k(_t,Be){const at={};return Be.components?.length&&(at.components=Be.components.join(",")),void 0!==Be.filter&&(at.filter=Be.filter.toString()),(0,i.U)(_t,`${a}${Be.membershipType}/Profile/${Be.destinyMembershipId}/Character/${Be.characterId}/Vendors/`,at)}function F(_t,Be){const at={};return Be.components?.length&&(at.components=Be.components.join(",")),(0,i.U)(_t,`${a}${Be.membershipType}/Profile/${Be.destinyMembershipId}/Character/${Be.characterId}/Vendors/${Be.vendorHash}/`,at)}function we(_t,Be){return(0,i.v)(_t,`${a}Actions/Items/TransferItem/`,Be)}function le(_t,Be){return(0,i.v)(_t,`${a}Actions/Items/EquipItem/`,Be)}},1016:(Ct,ke,u)=>{"use strict";u.d(ke,{xG:()=>g});var i=u(5861),a=u(1757);function b(B,O){return h.apply(this,arguments)}function h(){return(h=(0,i.Z)(function*(B,O){const P="https://www.bungie.net"+O.destinyManifest.jsonWorldComponentContentPaths[O.language][O.tableName];try{return yield(0,a.U)(B,P)}catch(k){try{return yield(0,a.U)(B,`${P}?retry`)}catch{throw k}}})).apply(this,arguments)}function g(B,O){return D.apply(this,arguments)}function D(){return D=(0,i.Z)(function*(B,O){const P=yield Promise.all(O.tableNames.map(function(){var F=(0,i.Z)(function*(z){return{tableName:z,tableContent:yield b(B,{destinyManifest:O.destinyManifest,tableName:z,language:O.language})}});return function(z){return F.apply(this,arguments)}}())),k={};for(const F of P)k[F.tableName]=F.tableContent;return k}),D.apply(this,arguments)}},1757:(Ct,ke,u)=>{"use strict";function i(c,v,b){return c(b?{method:"GET",url:v,params:b}:{method:"GET",url:v})}function a(c,v,b){return c(b?{method:"POST",url:v,body:b}:{method:"POST",url:v})}u.d(ke,{U:()=>i,v:()=>a})},9891:(Ct,ke,u)=>{"use strict";u.d(ke,{Rm:()=>D});var i=u(1757);function D(k){return(0,i.U)(k,"https://www.bungie.net/Platform/User/GetMembershipsForCurrentUser/")}},6438:(Ct,ke,u)=>{"use strict";u.d(ke,{ZP:()=>ae});var i=u(2629);const a=Symbol.for("Dexie"),c=globalThis[a]||(globalThis[a]=i);if(i.semVer!==c.semVer)throw new Error(`Two different versions of Dexie loaded in the same app: ${i.semVer} and ${c.semVer}`);const ae=c},5861:(Ct,ke,u)=>{"use strict";function i(c,v,b,h,g,D,B){try{var O=c[D](B),P=O.value}catch(k){return void b(k)}O.done?v(P):Promise.resolve(P).then(h,g)}function a(c){return function(){var v=this,b=arguments;return new Promise(function(h,g){var D=c.apply(v,b);function B(P){i(D,h,g,B,O,"next",P)}function O(P){i(D,h,g,B,O,"throw",P)}B(void 0)})}}u.d(ke,{Z:()=>a})}}]); \ No newline at end of file