@flesh-and-blood/search 3.0.4 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/filters.d.ts +4 -0
- package/dist/index.js +2 -2
- package/package.json +4 -4
package/dist/filters.d.ts
CHANGED
|
@@ -34,6 +34,8 @@ export declare const filtersToCardPropertyMappings: {
|
|
|
34
34
|
b: FilterToPropertyMapping;
|
|
35
35
|
block: FilterToPropertyMapping;
|
|
36
36
|
banned: FilterToPropertyMapping;
|
|
37
|
+
bond: FilterToPropertyMapping;
|
|
38
|
+
bonds: FilterToPropertyMapping;
|
|
37
39
|
c: FilterToPropertyMapping;
|
|
38
40
|
class: FilterToPropertyMapping;
|
|
39
41
|
chain: FilterToPropertyMapping;
|
|
@@ -43,6 +45,8 @@ export declare const filtersToCardPropertyMappings: {
|
|
|
43
45
|
d: FilterToPropertyMapping;
|
|
44
46
|
def: FilterToPropertyMapping;
|
|
45
47
|
defense: FilterToPropertyMapping;
|
|
48
|
+
flow: FilterToPropertyMapping;
|
|
49
|
+
flows: FilterToPropertyMapping;
|
|
46
50
|
f: FilterToPropertyMapping;
|
|
47
51
|
fusion: FilterToPropertyMapping;
|
|
48
52
|
foil: FilterToPropertyMapping;
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var Xr=Object.create;var ce=Object.defineProperty,ei=Object.defineProperties,ti=Object.getOwnPropertyDescriptor,ri=Object.getOwnPropertyDescriptors,ii=Object.getOwnPropertyNames,xt=Object.getOwnPropertySymbols,ni=Object.getPrototypeOf,wt=Object.prototype.hasOwnProperty,ai=Object.prototype.propertyIsEnumerable;var Bt=(e,t,r)=>t in e?ce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,V=(e,t)=>{for(var r in t||(t={}))wt.call(t,r)&&Bt(e,r,t[r]);if(xt)for(var r of xt(t))ai.call(t,r)&&Bt(e,r,t[r]);return e},ue=(e,t)=>ei(e,ri(t));var Lt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),oi=(e,t)=>{for(var r in t)ce(e,r,{get:t[r],enumerable:!0})},Pt=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ii(t))!wt.call(e,n)&&n!==r&&ce(e,n,{get:()=>t[n],enumerable:!(i=ti(t,n))||i.enumerable});return e};var W=(e,t,r)=>(r=e!=null?Xr(ni(e)):{},Pt(t||!e||!e.__esModule?ce(r,"default",{value:e,enumerable:!0}):r,e)),si=e=>Pt(ce({},"__esModule",{value:!0}),e);var j=Lt((Co,Zt)=>{var me=Object.defineProperty,li=Object.defineProperties,ci=Object.getOwnPropertyDescriptor,ui=Object.getOwnPropertyDescriptors,di=Object.getOwnPropertyNames,Dt=Object.getOwnPropertySymbols,It=Object.prototype.hasOwnProperty,pi=Object.prototype.propertyIsEnumerable,Rt=(e,t,r)=>t in e?me(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hi=(e,t)=>{for(var r in t||(t={}))It.call(t,r)&&Rt(e,r,t[r]);if(Dt)for(var r of Dt(t))pi.call(t,r)&&Rt(e,r,t[r]);return e},fi=(e,t)=>li(e,ui(t)),gi=(e,t)=>{for(var r in t)me(e,r,{get:t[r],enumerable:!0})},mi=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of di(t))!It.call(e,n)&&n!==r&&me(e,n,{get:()=>t[n],enumerable:!(i=ci(t,n))||i.enumerable});return e},yi=e=>mi(me({},"__esModule",{value:!0}),e),Et={};gi(Et,{Class:()=>zt,Foiling:()=>_t,Format:()=>Nt,Fusion:()=>Ht,Hero:()=>Yt,Keyword:()=>Vt,Rarity:()=>$t,Release:()=>Gt,ReleaseEdition:()=>Wt,Subtype:()=>Ut,Talent:()=>jt,Treatment:()=>Ot,Type:()=>Kt,fullSetIdentifiers:()=>He,getCanAddToDeck:()=>bi,getCardIdentifier:()=>vi,getDefaultPrinting:()=>wi,getIsArenaCard:()=>Qt,getIsDeckCard:()=>Ne,getPrint:()=>Fi,getShouldRotateCardImage:()=>Ai,getSpecialPrinting:()=>xi,orderedFullSetBlackBorderIdentifiers:()=>Si,setIdentifierToSetMappings:()=>Jt,setToSetIdentifierMappings:()=>Ci});Zt.exports=yi(Et);var _t=(e=>(e.C="Cold",e.G="Gold",e.R="Rainbow",e))(_t||{}),Ot=(e=>(e.AB="Alternate Border",e.AA="Alternate Art",e.AT="Alternate Text",e.EA="Extended Art",e.FA="Full Art",e))(Ot||{}),zt=(e=>(e.NotClassed="NotClassed",e.Generic="Generic",e.Adjudicator="Adjudicator",e.Assassin="Assassin",e.Bard="Bard",e.Brute="Brute",e.Guardian="Guardian",e.Illusionist="Illusionist",e.Mechanologist="Mechanologist",e.Merchant="Merchant",e.Ninja="Ninja",e.Ranger="Ranger",e.Runeblade="Runeblade",e.Shapeshifter="Shapeshifter",e.Warrior="Warrior",e.Wizard="Wizard",e))(zt||{}),Nt=(e=>(e.Blitz="Blitz",e.BlitzLivingLegend="Blitz (Living Legend)",e.Clash="Clash",e.ClassicConstructed="Classic Constructed",e.ClassicConstructedLivingLegend="Classic Constructed (Living Legend)",e.Commoner="Commoner",e.Draft="Draft",e.Open="Open",e.Sealed="Sealed",e.UltimatePitFight="Ultimate Pit Fight",e))(Nt||{}),Ht=(e=>(e.Earth="Earth",e.Ice="Ice",e.Lightning="Lightning",e))(Ht||{}),$t=(e=>(e.Token="Token",e.Common="Common",e.Rare="Rare",e.SuperRare="Super Rare",e.Majestic="Majestic",e.Marvel="Marvel",e.Legendary="Legendary",e.Fabled="Fabled",e.Promo="Promo",e))($t||{}),Gt=(e=>(e.ArcaneRising="Arcane Rising",e.BrightLights="Bright Lights",e.CrucibleOfWar="Crucible of War",e.DuskTillDawn="Dusk till Dawn",e.Dynasty="Dynasty",e.Everfest="Everfest",e.HeavyHitters="Heavy Hitters",e.HistoryPack1="History Pack 1",e.Monarch="Monarch",e.Outsiders="Outsiders",e.PartTheMistveil="Part the Mistveil",e.Rosetta="Rosetta",e.TalesOfAria="Tales of Aria",e.Uprising="Uprising",e.WelcomeToRathe="Welcome to Rathe",e.ArmoryDeckKayo="Armory Deck: Kayo",e.ArmoryDeckBoltyn="Armory Deck: Boltyn",e.ArmoryDeckAzalea="Armory Deck: Azalea",e.ArakniBlitzDeck="Arakni Blitz Deck",e.AzaleaBlitzDeck="Azalea Blitz Deck",e.BenjiBlitzDeck="Benji Blitz Deck",e.BetsyBlitzDeck="Betsy Blitz Deck",e.BoltynBlitzDeck="Boltyn Blitz Deck",e.BriarBlitzDeck="Briar Blitz Deck",e.BravoBlitzDeck="Bravo Blitz Deck",e.ChaneBlitzDeck="Chane Blitz Deck",e.DromaiBlitzDeck="Dromai Blitz Deck",e.EnigmaBlitzDeck="Enigma Blitz Deck",e.FaiBlitzDeck="Fai Blitz Deck",e.KassaiBlitzDeck="Kassai Blitz Deck",e.KatsuBlitzDeck="Katsu Blitz Deck",e.KayoBlitzDeck="Kayo Blitz Deck",e.LeviaBlitzDeck="Levia Blitz Deck",e.LexiBlitzDeck="Lexi Blitz Deck",e.NuuBlitzDeck="Nuu Blitz Deck",e.OldhimBlitzDeck="Oldhim Blitz Deck",e.OlympiaBlitzDeck="Olympia Blitz Deck",e.PrismBlitzDeck="Prism Blitz Deck",e.RhinarBlitzDeck="Rhinar Blitz Deck",e.RiptideBlitzDeck="Riptide Blitz Deck",e.UzuriBlitzDeck="Uzuri Blitz Deck",e.VictorBlitzDeck="Victor Blitz Deck",e.ZenBlitzDeck="Zen Blitz Deck",e.FirstStrikeAurora="1st Strike: Aurora",e.FirstStrikeTerra="1st Strike: Terra",e.DorintheaHeroDeck="Dorinthea Hero Deck",e.KatsuHeroDeck="Katsu Hero Deck",e.RhinarHeroDeck="Rhinar Hero Deck",e.ClassicBattlesRhinarDorinthea="Classic Battles: Rhinar vs Dorinthea",e.IraWelcomeDeck="Ira Welcome Deck",e.RoundTheTable="Round the Table",e.Promos="Promos",e))(Gt||{}),Wt=(e=>(e.Alpha="Alpha",e.First="First",e.Unlimited="Unlimited",e.Promo="Promo",e))(Wt||{}),jt=(e=>(e.Draconic="Draconic",e.Earth="Earth",e.Elemental="Elemental",e.Ice="Ice",e.Light="Light",e.Lightning="Lightning",e.Mystic="Mystic",e.Royal="Royal",e.Shadow="Shadow",e))(jt||{}),Kt=(e=>(e.Action="Action",e.AttackReaction="Attack Reaction",e.Block="Block",e.DefenseReaction="Defense Reaction",e.DemiHero="Demi-Hero",e.Equipment="Equipment",e.Hero="Hero",e.Instant="Instant",e.Macro="Macro",e.Mentor="Mentor",e.Resource="Resource",e.Token="Token",e.Weapon="Weapon",e))(Kt||{}),Ut=(e=>(e.OneHanded="1H",e.TwoHanded="2H",e.Affliction="Affliction",e.Ally="Ally",e.Angel="Angel",e.Arms="Arms",e.Arrow="Arrow",e.Ash="Ash",e.Attack="Attack",e.Aura="Aura",e.Axe="Axe",e.Base="Base",e.Book="Book",e.Bow="Bow",e.Chest="Chest",e.Chi="Chi",e.Claw="Claw",e.Club="Club",e.Construct="Construct",e.Dagger="Dagger",e.Demon="Demon",e.Dragon="Dragon",e.Evo="Evo",e.Fiddle="Fiddle",e.Figment="Figment",e.Flail="Flail",e.Gem="Gem",e.Gun="Gun",e.Hammer="Hammer",e.Head="Head",e.Invocation="Invocation",e.Item="Item",e.Landmark="Landmark",e.Lute="Lute",e.Legs="Legs",e.NonAttack="Non-Attack",e.OffHand="Off-Hand",e.Orb="Orb",e.Pistol="Pistol",e.Quiver="Quiver",e.Rock="Rock",e.Shuriken="Shuriken",e.Scepter="Scepter",e.Scroll="Scroll",e.Scythe="Scythe",e.Song="Song",e.Staff="Staff",e.Sword="Sword",e.Trap="Trap",e.Wrench="Wrench",e.Young="Young",e))(Ut||{}),Yt=(e=>(e.Arakni="Arakni",e.Aurora="Aurora",e.Azalea="Azalea",e.Benji="Benji",e.Betsy="Betsy",e.Blaze="Blaze",e.Boltyn="Boltyn",e.Bravo="Bravo",e.Brevant="Brevant",e.Briar="Briar",e.Brutus="Brutus",e.Chane="Chane",e.Dash="Dash",e.DataDoll="Data Doll",e.Dorinthea="Dorinthea",e.Dromai="Dromai",e.Emperor="Emperor",e.Enigma="Enigma",e.Fai="Fai",e.Florian="Florian",e.GenisWotchuneed="Genis Wotchuneed",e.Ira="Ira",e.Iyslander="Iyslander",e.Kano="Kano",e.Kassai="Kassai",e.Katsu="Katsu",e.Kavdaen="Kavdaen",e.Kayo="Kayo",e.Levia="Levia",e.Lexi="Lexi",e.Maxx="Maxx",e.Melody="Melody",e.Nuu="Nuu",e.Oldhim="Oldhim",e.Olympia="Olympia",e.Oscilio="Oscilio",e.Prism="Prism",e.Rhinar="Rhinar",e.Riptide="Riptide",e.Ruudi="Ruu'di",e.Shiyana="Shiyana",e.Squizzy="Squizzy",e.Taipanis="Taipanis",e.Taylor="Taylor",e.Teklovossen="Teklovossen",e.Terra="Terra",e.Theryon="Theryon",e.Uzuri="Uzuri",e.Valda="Valda",e.Verdance="Verdance",e.Victor="Victor",e.Vynnset="Vynnset",e.Viserai="Viserai",e.Yorick="Yorick",e.Yoji="Yoji",e.Zen="Zen",e))(Yt||{}),Vt=(e=>(e.Ambush="Ambush",e.Amp="Amp",e.ArcaneBarrier="Arcane Barrier",e.Awaken="Awaken",e.Battleworn="Battleworn",e.BeatChest="Beat Chest",e.BladeBreak="Blade Break",e.BloodDebt="Blood Debt",e.Boost="Boost",e.Channel="Channel",e.Charge="Charge",e.Clash="Clash",e.Cloaked="Cloaked",e.Combo="Combo",e.Contract="Contract",e.Crank="Crank",e.Crush="Crush",e.Decompose="Decompose",e.Dominate="Dominate",e.Ephemeral="Ephemeral",e.Essence="Essence",e.EvoUpgrade="Evo Upgrade",e.Freeze="Freeze",e.Fusion="Fusion",e.Galvanize="Galvanize",e.GoAgain="Go again",e.Guardwell="Guardwell",e.Heave="Heave",e.Intimidate="Intimidate",e.Legendary="Legendary",e.Material="Material",e.Meld="Meld",e.Modular="Modular",e.Mirage="Mirage",e.Negate="Negate",e.Opt="Opt",e.Overpower="Overpower",e.Pairs="Pairs",e.Piercing="Piercing",e.Phantasm="Phantasm",e.Protect="Protect",e.Quell="Quell",e.Reload="Reload",e.Reprise="Reprise",e.RuneGate="Rune Gate",e.Rupture="Rupture",e.Scrap="Scrap",e.Solflare="Solflare",e.Specialization="Specialization",e.Spectra="Spectra",e.Spellvoid="Spellvoid",e.Stealth="Stealth",e.Surge="Surge",e.Temper="Temper",e.Tower="Tower",e.Transform="Transform",e.Transcend="Transcend",e.Universal="Universal",e.Unfreeze="Unfreeze",e.Unity="Unity",e.Wager="Wager",e.Ward="Ward",e))(Vt||{}),vi=(e,t)=>{let{name:r,pitch:i}=e,n=r.toLowerCase().replace("//","-").normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/ /g,"-").replace("\xED","i").replace(/[^a-z0-9 -]/g,"").replace(/--/,"-"),a="";switch(i){case"1":case 1:a=t?"-1":"-red";break;case"2":case 2:a=t?"-2":"-yellow";break;case"3":case 3:a=t?"-3":"-blue";break}return`${n}${a}`},Qt=(e,t)=>{let r=Ne(e,t),i=["Demi-Hero","Equipment","Weapon"].some(n=>e.includes(n));return!r&&i},Ne=(e,t)=>{let r=["Action","Attack Reaction","Block","Defense Reaction","Instant","Mentor","Resource"].some(n=>e.includes(n)),i=!t||!t.includes("Ephemeral");return r&&i},bi=(e,t)=>{let r=Qt(e,t),i=Ne(e,t);return r||i},Ai=e=>{var t,r;return((t=e.keywords)==null?void 0:t.includes("Meld"))||((r=e.subtypes)==null?void 0:r.includes("Landmark"))||!1},He={wtr:"Welcome to Rathe",arc:"Arcane Rising",cru:"Crucible of War",mon:"Monarch",ele:"Tales of Aria",evr:"Everfest","1hp":"History Pack 1",hp1:"History Pack 1",upr:"Uprising",dyn:"Dynasty",out:"Outsiders",dtd:"Dusk till Dawn",evo:"Bright Lights",hvy:"Heavy Hitters",mst:"Part the Mistveil",ros:"Rosetta"},Jt=fi(hi({},He),{ako:"Armory Deck: Kayo",asb:"Armory Deck: Boltyn",aaz:"Armory Deck: Azalea",ara:"Arakni Blitz Deck",azl:"Azalea Blitz Deck",ben:"Benji Blitz Deck",bet:"Betsy Blitz Deck",bol:"Boltyn Blitz Deck",bri:"Briar Blitz Deck",bvo:"Bravo Blitz Deck",chn:"Chane Blitz Deck",dro:"Dromai Blitz Deck",eng:"Enigma Blitz Deck",fai:"Fai Blitz Deck",kat:"Katsu Blitz Deck",ksi:"Kassai Blitz Deck",kyo:"Kayo Blitz Deck",lev:"Levia Blitz Deck",lxi:"Lexi Blitz Deck",nuu:"Nuu Blitz Deck",old:"Oldhim Blitz Deck",ola:"Olympia Blitz Deck",psm:"Prism Blitz Deck",rip:"Riptide Blitz Deck",rnr:"Rhinar Blitz Deck",uzu:"Uzuri Blitz Deck",vic:"Victor Blitz Deck",zen:"Zen Blitz Deck",aur:"1st Strike: Aurora",ter:"1st Strike: Terra",dvr:"Classic Battles: Rhinar vs Dorinthea",rvd:"Classic Battles: Rhinar vs Dorinthea",ira:"Ira Welcome Deck",tcc:"Round the Table",tea:"Dorinthea Hero Deck",ksu:"Katsu Hero Deck",rnr2:"Rhinar Hero Deck",fab:"Promos",her:"Promos",jdg:"Promos",lgs:"Promos",lss:"Promos",oxo:"Promos",xxx:"Promos",win:"Promos"}),ze={};for(let[e,t]of Object.entries(Jt)){let r=ze[t];r?r.push(e):ze[t]=[e]}var Ci=ze,ki={"Rhinar Blitz Deck":"-Blitz"},Mi={MST158_V3:"-V3",ROS162_V2:"-V2"},Fi=e=>{var t,r;let i=ki[e.set]||"",n=`${e.identifier}${i}`,a=e.edition?`-${e.edition}`:"",l=e.foiling?`-${e.foiling}`:"",o=e.treatment?`-${e.treatment}`:"",c=(t=e.image)!=null&&t.toLowerCase().includes("back")?"-Back":"",u=Mi[((r=e.image)==null?void 0:r.toUpperCase())||""]||"";return`${n}${a}${l}${o}${c}${u}`},Si=Object.keys(He).filter(e=>!e.toLowerCase().includes("hp")).reverse().map(e=>e.toUpperCase()),Ti={"command-and-conquer-red":{print:"DYN000-Cold"},"cracked-bauble-yellow":{print:"LGS083-Cold"},"fate-foreseen-red":{print:"FAB024-Rainbow"},"pitfall-trap-yellow":{print:"LGS151-Rainbow"},quicken:{print:"EVO250"},"ravenous-rabble-red":{print:"FAB190-Rainbow-Extended Art"},"rockslide-trap-blue":{print:"LGS152-Rainbow"},"sigil-of-solace-red":{print:"FAB178-Rainbow-Extended Art"},"spectral-shield":{print:"MST158-Alternate Art-V3"},"tripwire-trap-red":{print:"LGS150-Rainbow"},"viserai-rune-blood":{print:"HER011-Cold"}},xi=(e,t)=>{let{cardIdentifier:r}=e,i=Object.entries(Ti).find(([n])=>n===r);if(i){let[,{print:n}]=i;return t.find(a=>a.print===n)||t[0]}else{let n,a,l,o,c,u,d,f,h,m,y,p,v,g,F,B,b,x;for(let k of t){let{edition:T,foiling:L,identifier:P,image:H,treatment:R}=k,E=P.toLowerCase().includes("win");if(H&&!E){if(n||(n=k),R==="Alternate Art")a=k;else if(R==="Alternate Border")l=k;else if(R==="Alternate Text")o=k;else if(R==="Extended Art")d=k,L==="Cold"&&(c=k),L||(h=k),T==="Promo"&&(m=k);else if(R==="Full Art"){f=k,L==="Cold"&&(u=k);break}H&&H.includes("_V2")&&(y=k),T==="Alpha"?p=k:T==="First"?v=k:T==="Promo"?g=k:T==="Unlimited"&&(F=k),L==="Cold"?(B=k,T==="Promo"&&(x=k)):L==="Gold"&&(b=k)}}return u||f||c||m||h||d||l||a||o||y||x||p||v||g||F||b||B||n}},Bi={"command-and-conquer-red":{print:"ARC159-Unlimited"},"pitfall-trap-yellow":{print:"LGS151-Rainbow"},"rockslide-trap-blue":{print:"LGS152-Rainbow"},"spectral-shield":{print:"MST158"},"tripwire-trap-red":{print:"LGS150-Rainbow"}},wi=(e,t)=>{let{cardIdentifier:r}=e,i=Object.entries(Bi).find(([n])=>n===r);if(i){let[,{print:n}]=i;return t.find(a=>a.print===n)||t[0]}else{let n,a;for(let l of t){let{edition:o,image:c,treatment:u}=l;if(c&&(n||(n=l),!a&&o!=="Promo"&&(a=l)),n&&a)break}return a||n||t[0]}}});var gr=Lt((ko,fr)=>{"use strict";function qt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function ae(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qt(Object(r),!0).forEach(function(i){We(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qt(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function Ge(e){"@babel/helpers - typeof";return Ge=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ge(e)}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xt(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function z(e,t,r){return t&&Xt(e.prototype,t),r&&Xt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function We(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Z(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&je(e,t)}function ve(e){return ve=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},ve(e)}function je(e,t){return je=Object.setPrototypeOf||function(i,n){return i.__proto__=n,i},je(e,t)}function Li(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function Pi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Di(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Pi(e)}function q(e){var t=Li();return function(){var i=ve(e),n;if(t){var a=ve(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return Di(this,n)}}function ie(e){return Ri(e)||Ii(e)||Ei(e)||_i()}function Ri(e){if(Array.isArray(e))return Ke(e)}function Ii(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ei(e,t){if(e){if(typeof e=="string")return Ke(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ke(e,t)}}function Ke(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function _i(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q(e){return Array.isArray?Array.isArray(e):sr(e)==="[object Array]"}var Oi=1/0;function zi(e){if(typeof e=="string")return e;var t=e+"";return t=="0"&&1/e==-Oi?"-0":t}function Ni(e){return e==null?"":zi(e)}function K(e){return typeof e=="string"}function ar(e){return typeof e=="number"}function Hi(e){return e===!0||e===!1||$i(e)&&sr(e)=="[object Boolean]"}function or(e){return Ge(e)==="object"}function $i(e){return or(e)&&e!==null}function N(e){return e!=null}function $e(e){return!e.trim().length}function sr(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var Gi="Incorrect 'index' type",Wi=function(t){return"Invalid value for key ".concat(t)},ji=function(t){return"Pattern length exceeds max of ".concat(t,".")},Ki=function(t){return"Missing ".concat(t," property in key")},Ui=function(t){return"Property 'weight' in key '".concat(t,"' must be a positive integer")},er=Object.prototype.hasOwnProperty,Yi=function(){function e(t){var r=this;O(this,e),this._keys=[],this._keyMap={};var i=0;t.forEach(function(n){var a=lr(n);i+=a.weight,r._keys.push(a),r._keyMap[a.id]=a,i+=a.weight}),this._keys.forEach(function(n){n.weight/=i})}return z(e,[{key:"get",value:function(r){return this._keyMap[r]}},{key:"keys",value:function(){return this._keys}},{key:"toJSON",value:function(){return JSON.stringify(this._keys)}}]),e}();function lr(e){var t=null,r=null,i=null,n=1,a=null;if(K(e)||Q(e))i=e,t=tr(e),r=Ue(e);else{if(!er.call(e,"name"))throw new Error(Ki("name"));var l=e.name;if(i=l,er.call(e,"weight")&&(n=e.weight,n<=0))throw new Error(Ui(l));t=tr(l),r=Ue(l),a=e.getFn}return{path:t,id:r,weight:n,src:i,getFn:a}}function tr(e){return Q(e)?e:e.split(".")}function Ue(e){return Q(e)?e.join("."):e}function Vi(e,t){var r=[],i=!1,n=function a(l,o,c){if(N(l))if(!o[c])r.push(l);else{var u=o[c],d=l[u];if(!N(d))return;if(c===o.length-1&&(K(d)||ar(d)||Hi(d)))r.push(Ni(d));else if(Q(d)){i=!0;for(var f=0,h=d.length;f<h;f+=1)a(d[f],o,c+1)}else o.length&&a(d,o,c+1)}};return n(e,K(t)?t.split("."):t,0),i?r:r[0]}var Qi={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Ji={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:function(t,r){return t.score===r.score?t.idx<r.idx?-1:1:t.score<r.score?-1:1}},Zi={location:0,threshold:.6,distance:100},qi={useExtendedSearch:!1,getFn:Vi,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},S=ae(ae(ae(ae({},Ji),Qi),Zi),qi),Xi=/[^ ]+/g;function en(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:3,r=new Map,i=Math.pow(10,t);return{get:function(a){var l=a.match(Xi).length;if(r.has(l))return r.get(l);var o=1/Math.pow(l,.5*e),c=parseFloat(Math.round(o*i)/i);return r.set(l,c),c},clear:function(){r.clear()}}}var Ze=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.getFn,i=r===void 0?S.getFn:r,n=t.fieldNormWeight,a=n===void 0?S.fieldNormWeight:n;O(this,e),this.norm=en(a,3),this.getFn=i,this.isCreated=!1,this.setIndexRecords()}return z(e,[{key:"setSources",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.docs=r}},{key:"setIndexRecords",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.records=r}},{key:"setKeys",value:function(){var r=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.keys=i,this._keysMap={},i.forEach(function(n,a){r._keysMap[n.id]=a})}},{key:"create",value:function(){var r=this;this.isCreated||!this.docs.length||(this.isCreated=!0,K(this.docs[0])?this.docs.forEach(function(i,n){r._addString(i,n)}):this.docs.forEach(function(i,n){r._addObject(i,n)}),this.norm.clear())}},{key:"add",value:function(r){var i=this.size();K(r)?this._addString(r,i):this._addObject(r,i)}},{key:"removeAt",value:function(r){this.records.splice(r,1);for(var i=r,n=this.size();i<n;i+=1)this.records[i].i-=1}},{key:"getValueForItemAtKeyId",value:function(r,i){return r[this._keysMap[i]]}},{key:"size",value:function(){return this.records.length}},{key:"_addString",value:function(r,i){if(!(!N(r)||$e(r))){var n={v:r,i,n:this.norm.get(r)};this.records.push(n)}}},{key:"_addObject",value:function(r,i){var n=this,a={i,$:{}};this.keys.forEach(function(l,o){var c=l.getFn?l.getFn(r):n.getFn(r,l.path);if(N(c)){if(Q(c))(function(){for(var d=[],f=[{nestedArrIndex:-1,value:c}];f.length;){var h=f.pop(),m=h.nestedArrIndex,y=h.value;if(N(y))if(K(y)&&!$e(y)){var p={v:y,i:m,n:n.norm.get(y)};d.push(p)}else Q(y)&&y.forEach(function(v,g){f.push({nestedArrIndex:g,value:v})})}a.$[o]=d})();else if(K(c)&&!$e(c)){var u={v:c,n:n.norm.get(c)};a.$[o]=u}}}),this.records.push(a)}},{key:"toJSON",value:function(){return{keys:this.keys,records:this.records}}}]),e}();function cr(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.getFn,n=i===void 0?S.getFn:i,a=r.fieldNormWeight,l=a===void 0?S.fieldNormWeight:a,o=new Ze({getFn:n,fieldNormWeight:l});return o.setKeys(e.map(lr)),o.setSources(t),o.create(),o}function tn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.getFn,i=r===void 0?S.getFn:r,n=t.fieldNormWeight,a=n===void 0?S.fieldNormWeight:n,l=e.keys,o=e.records,c=new Ze({getFn:i,fieldNormWeight:a});return c.setKeys(l),c.setIndexRecords(o),c}function ye(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.errors,i=r===void 0?0:r,n=t.currentLocation,a=n===void 0?0:n,l=t.expectedLocation,o=l===void 0?0:l,c=t.distance,u=c===void 0?S.distance:c,d=t.ignoreLocation,f=d===void 0?S.ignoreLocation:d,h=i/e.length;if(f)return h;var m=Math.abs(o-a);return u?h+m/u:m?1:h}function rn(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S.minMatchCharLength,r=[],i=-1,n=-1,a=0,l=e.length;a<l;a+=1){var o=e[a];o&&i===-1?i=a:!o&&i!==-1&&(n=a-1,n-i+1>=t&&r.push([i,n]),i=-1)}return e[a-1]&&a-i>=t&&r.push([i,a-1]),r}var re=32;function nn(e,t,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},n=i.location,a=n===void 0?S.location:n,l=i.distance,o=l===void 0?S.distance:l,c=i.threshold,u=c===void 0?S.threshold:c,d=i.findAllMatches,f=d===void 0?S.findAllMatches:d,h=i.minMatchCharLength,m=h===void 0?S.minMatchCharLength:h,y=i.includeMatches,p=y===void 0?S.includeMatches:y,v=i.ignoreLocation,g=v===void 0?S.ignoreLocation:v;if(t.length>re)throw new Error(ji(re));for(var F=t.length,B=e.length,b=Math.max(0,Math.min(a,B)),x=u,k=b,T=m>1||p,L=T?Array(B):[],P;(P=e.indexOf(t,k))>-1;){var H=ye(t,{currentLocation:P,expectedLocation:b,distance:o,ignoreLocation:g});if(x=Math.min(H,x),k=P+F,T)for(var R=0;R<F;)L[P+R]=1,R+=1}k=-1;for(var E=[],_=1,$=F+B,Ee=1<<F-1,te=0;te<F;te+=1){for(var fe=0,J=$;fe<J;){var Zr=ye(t,{errors:te,currentLocation:b+J,expectedLocation:b,distance:o,ignoreLocation:g});Zr<=x?fe=J:$=J,J=Math.floor(($-fe)/2+fe)}$=J;var Ft=Math.max(1,b-J+1),_e=f?B:Math.min(b+J,B)+F,ne=Array(_e+2);ne[_e+1]=(1<<te)-1;for(var G=_e;G>=Ft;G-=1){var ge=G-1,St=r[e.charAt(ge)];if(T&&(L[ge]=+!!St),ne[G]=(ne[G+1]<<1|1)&St,te&&(ne[G]|=(E[G+1]|E[G])<<1|1|E[G+1]),ne[G]&Ee&&(_=ye(t,{errors:te,currentLocation:ge,expectedLocation:b,distance:o,ignoreLocation:g}),_<=x)){if(x=_,k=ge,k<=b)break;Ft=Math.max(1,2*b-k)}}var qr=ye(t,{errors:te+1,currentLocation:b,expectedLocation:b,distance:o,ignoreLocation:g});if(qr>x)break;E=ne}var Oe={isMatch:k>=0,score:Math.max(.001,_)};if(T){var Tt=rn(L,m);Tt.length?p&&(Oe.indices=Tt):Oe.isMatch=!1}return Oe}function an(e){for(var t={},r=0,i=e.length;r<i;r+=1){var n=e.charAt(r);t[n]=(t[n]||0)|1<<i-r-1}return t}var ur=function(){function e(t){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=i.location,a=n===void 0?S.location:n,l=i.threshold,o=l===void 0?S.threshold:l,c=i.distance,u=c===void 0?S.distance:c,d=i.includeMatches,f=d===void 0?S.includeMatches:d,h=i.findAllMatches,m=h===void 0?S.findAllMatches:h,y=i.minMatchCharLength,p=y===void 0?S.minMatchCharLength:y,v=i.isCaseSensitive,g=v===void 0?S.isCaseSensitive:v,F=i.ignoreLocation,B=F===void 0?S.ignoreLocation:F;if(O(this,e),this.options={location:a,threshold:o,distance:u,includeMatches:f,findAllMatches:m,minMatchCharLength:p,isCaseSensitive:g,ignoreLocation:B},this.pattern=g?t:t.toLowerCase(),this.chunks=[],!!this.pattern.length){var b=function(R,E){r.chunks.push({pattern:R,alphabet:an(R),startIndex:E})},x=this.pattern.length;if(x>re){for(var k=0,T=x%re,L=x-T;k<L;)b(this.pattern.substr(k,re),k),k+=re;if(T){var P=x-re;b(this.pattern.substr(P),P)}}else b(this.pattern,0)}}return z(e,[{key:"searchIn",value:function(r){var i=this.options,n=i.isCaseSensitive,a=i.includeMatches;if(n||(r=r.toLowerCase()),this.pattern===r){var l={isMatch:!0,score:0};return a&&(l.indices=[[0,r.length-1]]),l}var o=this.options,c=o.location,u=o.distance,d=o.threshold,f=o.findAllMatches,h=o.minMatchCharLength,m=o.ignoreLocation,y=[],p=0,v=!1;this.chunks.forEach(function(F){var B=F.pattern,b=F.alphabet,x=F.startIndex,k=nn(r,B,b,{location:c+x,distance:u,threshold:d,findAllMatches:f,minMatchCharLength:h,includeMatches:a,ignoreLocation:m}),T=k.isMatch,L=k.score,P=k.indices;T&&(v=!0),p+=L,T&&P&&(y=[].concat(ie(y),ie(P)))});var g={isMatch:v,score:v?p/this.chunks.length:1};return v&&a&&(g.indices=y),g}}]),e}(),X=function(){function e(t){O(this,e),this.pattern=t}return z(e,[{key:"search",value:function(){}}],[{key:"isMultiMatch",value:function(r){return rr(r,this.multiRegex)}},{key:"isSingleMatch",value:function(r){return rr(r,this.singleRegex)}}]),e}();function rr(e,t){var r=e.match(t);return r?r[1]:null}var on=function(e){Z(r,e);var t=q(r);function r(i){return O(this,r),t.call(this,i)}return z(r,[{key:"search",value:function(n){var a=n===this.pattern;return{isMatch:a,score:a?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"exact"}},{key:"multiRegex",get:function(){return/^="(.*)"$/}},{key:"singleRegex",get:function(){return/^=(.*)$/}}]),r}(X),sn=function(e){Z(r,e);var t=q(r);function r(i){return O(this,r),t.call(this,i)}return z(r,[{key:"search",value:function(n){var a=n.indexOf(this.pattern),l=a===-1;return{isMatch:l,score:l?0:1,indices:[0,n.length-1]}}}],[{key:"type",get:function(){return"inverse-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"$/}},{key:"singleRegex",get:function(){return/^!(.*)$/}}]),r}(X),ln=function(e){Z(r,e);var t=q(r);function r(i){return O(this,r),t.call(this,i)}return z(r,[{key:"search",value:function(n){var a=n.startsWith(this.pattern);return{isMatch:a,score:a?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"prefix-exact"}},{key:"multiRegex",get:function(){return/^\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^\^(.*)$/}}]),r}(X),cn=function(e){Z(r,e);var t=q(r);function r(i){return O(this,r),t.call(this,i)}return z(r,[{key:"search",value:function(n){var a=!n.startsWith(this.pattern);return{isMatch:a,score:a?0:1,indices:[0,n.length-1]}}}],[{key:"type",get:function(){return"inverse-prefix-exact"}},{key:"multiRegex",get:function(){return/^!\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^!\^(.*)$/}}]),r}(X),un=function(e){Z(r,e);var t=q(r);function r(i){return O(this,r),t.call(this,i)}return z(r,[{key:"search",value:function(n){var a=n.endsWith(this.pattern);return{isMatch:a,score:a?0:1,indices:[n.length-this.pattern.length,n.length-1]}}}],[{key:"type",get:function(){return"suffix-exact"}},{key:"multiRegex",get:function(){return/^"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^(.*)\$$/}}]),r}(X),dn=function(e){Z(r,e);var t=q(r);function r(i){return O(this,r),t.call(this,i)}return z(r,[{key:"search",value:function(n){var a=!n.endsWith(this.pattern);return{isMatch:a,score:a?0:1,indices:[0,n.length-1]}}}],[{key:"type",get:function(){return"inverse-suffix-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^!(.*)\$$/}}]),r}(X),dr=function(e){Z(r,e);var t=q(r);function r(i){var n,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=a.location,o=l===void 0?S.location:l,c=a.threshold,u=c===void 0?S.threshold:c,d=a.distance,f=d===void 0?S.distance:d,h=a.includeMatches,m=h===void 0?S.includeMatches:h,y=a.findAllMatches,p=y===void 0?S.findAllMatches:y,v=a.minMatchCharLength,g=v===void 0?S.minMatchCharLength:v,F=a.isCaseSensitive,B=F===void 0?S.isCaseSensitive:F,b=a.ignoreLocation,x=b===void 0?S.ignoreLocation:b;return O(this,r),n=t.call(this,i),n._bitapSearch=new ur(i,{location:o,threshold:u,distance:f,includeMatches:m,findAllMatches:p,minMatchCharLength:g,isCaseSensitive:B,ignoreLocation:x}),n}return z(r,[{key:"search",value:function(n){return this._bitapSearch.searchIn(n)}}],[{key:"type",get:function(){return"fuzzy"}},{key:"multiRegex",get:function(){return/^"(.*)"$/}},{key:"singleRegex",get:function(){return/^(.*)$/}}]),r}(X),pr=function(e){Z(r,e);var t=q(r);function r(i){return O(this,r),t.call(this,i)}return z(r,[{key:"search",value:function(n){for(var a=0,l,o=[],c=this.pattern.length;(l=n.indexOf(this.pattern,a))>-1;)a=l+c,o.push([l,a-1]);var u=!!o.length;return{isMatch:u,score:u?0:1,indices:o}}}],[{key:"type",get:function(){return"include"}},{key:"multiRegex",get:function(){return/^'"(.*)"$/}},{key:"singleRegex",get:function(){return/^'(.*)$/}}]),r}(X),Ye=[on,pr,ln,cn,dn,un,sn,dr],ir=Ye.length,pn=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,hn="|";function fn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.split(hn).map(function(r){for(var i=r.trim().split(pn).filter(function(y){return y&&!!y.trim()}),n=[],a=0,l=i.length;a<l;a+=1){for(var o=i[a],c=!1,u=-1;!c&&++u<ir;){var d=Ye[u],f=d.isMultiMatch(o);f&&(n.push(new d(f,t)),c=!0)}if(!c)for(u=-1;++u<ir;){var h=Ye[u],m=h.isSingleMatch(o);if(m){n.push(new h(m,t));break}}}return n})}var gn=new Set([dr.type,pr.type]),mn=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.isCaseSensitive,n=i===void 0?S.isCaseSensitive:i,a=r.includeMatches,l=a===void 0?S.includeMatches:a,o=r.minMatchCharLength,c=o===void 0?S.minMatchCharLength:o,u=r.ignoreLocation,d=u===void 0?S.ignoreLocation:u,f=r.findAllMatches,h=f===void 0?S.findAllMatches:f,m=r.location,y=m===void 0?S.location:m,p=r.threshold,v=p===void 0?S.threshold:p,g=r.distance,F=g===void 0?S.distance:g;O(this,e),this.query=null,this.options={isCaseSensitive:n,includeMatches:l,minMatchCharLength:c,findAllMatches:h,ignoreLocation:d,location:y,threshold:v,distance:F},this.pattern=n?t:t.toLowerCase(),this.query=fn(this.pattern,this.options)}return z(e,[{key:"searchIn",value:function(r){var i=this.query;if(!i)return{isMatch:!1,score:1};var n=this.options,a=n.includeMatches,l=n.isCaseSensitive;r=l?r:r.toLowerCase();for(var o=0,c=[],u=0,d=0,f=i.length;d<f;d+=1){var h=i[d];c.length=0,o=0;for(var m=0,y=h.length;m<y;m+=1){var p=h[m],v=p.search(r),g=v.isMatch,F=v.indices,B=v.score;if(g){if(o+=1,u+=B,a){var b=p.constructor.type;gn.has(b)?c=[].concat(ie(c),ie(F)):c.push(F)}}else{u=0,o=0,c.length=0;break}}if(o){var x={isMatch:!0,score:u/o};return a&&(x.indices=c),x}}return{isMatch:!1,score:1}}}],[{key:"condition",value:function(r,i){return i.useExtendedSearch}}]),e}(),be=[];function yn(){be.push.apply(be,arguments)}function Ve(e,t){for(var r=0,i=be.length;r<i;r+=1){var n=be[r];if(n.condition(e,t))return new n(e,t)}return new ur(e,t)}var Ae={AND:"$and",OR:"$or"},Qe={PATH:"$path",PATTERN:"$val"},Je=function(t){return!!(t[Ae.AND]||t[Ae.OR])},vn=function(t){return!!t[Qe.PATH]},bn=function(t){return!Q(t)&&or(t)&&!Je(t)},nr=function(t){return We({},Ae.AND,Object.keys(t).map(function(r){return We({},r,t[r])}))};function hr(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.auto,n=i===void 0?!0:i,a=function l(o){var c=Object.keys(o),u=vn(o);if(!u&&c.length>1&&!Je(o))return l(nr(o));if(bn(o)){var d=u?o[Qe.PATH]:c[0],f=u?o[Qe.PATTERN]:o[d];if(!K(f))throw new Error(Wi(d));var h={keyId:Ue(d),pattern:f};return n&&(h.searcher=Ve(f,t)),h}var m={children:[],operator:c[0]};return c.forEach(function(y){var p=o[y];Q(p)&&p.forEach(function(v){m.children.push(l(v))})}),m};return Je(e)||(e=nr(e)),a(e)}function An(e,t){var r=t.ignoreFieldNorm,i=r===void 0?S.ignoreFieldNorm:r;e.forEach(function(n){var a=1;n.matches.forEach(function(l){var o=l.key,c=l.norm,u=l.score,d=o?o.weight:null;a*=Math.pow(u===0&&d?Number.EPSILON:u,(d||1)*(i?1:c))}),n.score=a})}function Cn(e,t){var r=e.matches;t.matches=[],N(r)&&r.forEach(function(i){if(!(!N(i.indices)||!i.indices.length)){var n=i.indices,a=i.value,l={indices:n,value:a};i.key&&(l.key=i.key.src),i.idx>-1&&(l.refIndex=i.idx),t.matches.push(l)}})}function kn(e,t){t.score=e.score}function Mn(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.includeMatches,n=i===void 0?S.includeMatches:i,a=r.includeScore,l=a===void 0?S.includeScore:a,o=[];return n&&o.push(Cn),l&&o.push(kn),e.map(function(c){var u=c.idx,d={item:t[u],refIndex:u};return o.length&&o.forEach(function(f){f(c,d)}),d})}var oe=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;O(this,e),this.options=ae(ae({},S),r),this.options.useExtendedSearch,this._keyStore=new Yi(this.options.keys),this.setCollection(t,i)}return z(e,[{key:"setCollection",value:function(r,i){if(this._docs=r,i&&!(i instanceof Ze))throw new Error(Gi);this._myIndex=i||cr(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}},{key:"add",value:function(r){N(r)&&(this._docs.push(r),this._myIndex.add(r))}},{key:"remove",value:function(){for(var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){return!1},i=[],n=0,a=this._docs.length;n<a;n+=1){var l=this._docs[n];r(l,n)&&(this.removeAt(n),n-=1,a-=1,i.push(l))}return i}},{key:"removeAt",value:function(r){this._docs.splice(r,1),this._myIndex.removeAt(r)}},{key:"getIndex",value:function(){return this._myIndex}},{key:"search",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=i.limit,a=n===void 0?-1:n,l=this.options,o=l.includeMatches,c=l.includeScore,u=l.shouldSort,d=l.sortFn,f=l.ignoreFieldNorm,h=K(r)?K(this._docs[0])?this._searchStringList(r):this._searchObjectList(r):this._searchLogical(r);return An(h,{ignoreFieldNorm:f}),u&&h.sort(d),ar(a)&&a>-1&&(h=h.slice(0,a)),Mn(h,this._docs,{includeMatches:o,includeScore:c})}},{key:"_searchStringList",value:function(r){var i=Ve(r,this.options),n=this._myIndex.records,a=[];return n.forEach(function(l){var o=l.v,c=l.i,u=l.n;if(N(o)){var d=i.searchIn(o),f=d.isMatch,h=d.score,m=d.indices;f&&a.push({item:o,idx:c,matches:[{score:h,value:o,norm:u,indices:m}]})}}),a}},{key:"_searchLogical",value:function(r){var i=this,n=hr(r,this.options),a=function u(d,f,h){if(!d.children){var m=d.keyId,y=d.searcher,p=i._findMatches({key:i._keyStore.get(m),value:i._myIndex.getValueForItemAtKeyId(f,m),searcher:y});return p&&p.length?[{idx:h,item:f,matches:p}]:[]}for(var v=[],g=0,F=d.children.length;g<F;g+=1){var B=d.children[g],b=u(B,f,h);if(b.length)v.push.apply(v,ie(b));else if(d.operator===Ae.AND)return[]}return v},l=this._myIndex.records,o={},c=[];return l.forEach(function(u){var d=u.$,f=u.i;if(N(d)){var h=a(n,d,f);h.length&&(o[f]||(o[f]={idx:f,item:d,matches:[]},c.push(o[f])),h.forEach(function(m){var y,p=m.matches;(y=o[f].matches).push.apply(y,ie(p))}))}}),c}},{key:"_searchObjectList",value:function(r){var i=this,n=Ve(r,this.options),a=this._myIndex,l=a.keys,o=a.records,c=[];return o.forEach(function(u){var d=u.$,f=u.i;if(N(d)){var h=[];l.forEach(function(m,y){h.push.apply(h,ie(i._findMatches({key:m,value:d[y],searcher:n})))}),h.length&&c.push({idx:f,item:d,matches:h})}}),c}},{key:"_findMatches",value:function(r){var i=r.key,n=r.value,a=r.searcher;if(!N(n))return[];var l=[];if(Q(n))n.forEach(function(m){var y=m.v,p=m.i,v=m.n;if(N(y)){var g=a.searchIn(y),F=g.isMatch,B=g.score,b=g.indices;F&&l.push({score:B,key:i,value:y,idx:p,norm:v,indices:b})}});else{var o=n.v,c=n.n,u=a.searchIn(o),d=u.isMatch,f=u.score,h=u.indices;d&&l.push({score:f,key:i,value:o,norm:c,indices:h})}return l}}]),e}();oe.version="6.6.2";oe.createIndex=cr;oe.parseIndex=tn;oe.config=S;oe.parseQuery=hr;yn(mn);var Fn=oe;fr.exports=Fn});var bo={};oi(bo,{PUNCTUATION:()=>w,abbreviations:()=>et,availableExclusions:()=>Wr,availableModifiers:()=>Gr,clashBannedCards:()=>qe,clashLegalCards:()=>Sn,clashSpecializationOverrides:()=>Xe,default:()=>Ur,filterCard:()=>Yr,filtersToCardPropertyMappings:()=>De,getAbbreviation:()=>ke,getAbbreviationByCard:()=>Tn,getCardByName:()=>mt,getCleanText:()=>Ct,getDeckFilters:()=>za,getExcludedMetaFilters:()=>st,getHeroBreakdown:()=>go,getKeywordsAndAppliedFiltersFromText:()=>gt,getMetaFilters:()=>ot,getNormalizedText:()=>he,getRelatedCards:()=>Mt,getRelatedCardsByName:()=>Re,getTokensReferencedByCards:()=>vo,heroHasFilters:()=>Na,multiWordShorthands:()=>ct,shorthands:()=>lt,singleWordShorthands:()=>ut});module.exports=si(bo);var D=W(j()),yt=W(gr());var Ce=W(j()),qe=["Amulet of Ice","Ball Lightning","Belittle","Drone of Brutality","Duskblade","Rosetta Thorn","Stubby Hammerers"],Sn=[],Xe=[{heroes:[Ce.Hero.Briar],cardIdentifiers:["rosetta-thorn"]},{heroes:[Ce.Hero.Emperor],cardIdentifiers:["command-and-conquer-red"]},{heroes:[Ce.Hero.Prism],cardIdentifiers:["figment-of-erudition-yellow","figment-of-judgment-yellow","figment-of-protection-yellow","figment-of-ravages-yellow","figment-of-rebirth-yellow","figment-of-tenacity-yellow","figment-of-triumph-yellow","figment-of-war-yellow"]}];var w=/[!"#$%&'’(),./:;<=>?@[\]^_`|~]/g;var M=W(j());var ke=e=>et.find(({abbreviations:t})=>t.find(r=>r.toLowerCase()===e)),Tn=e=>et.find(({card:t})=>t.toLowerCase()===e.name.toLowerCase()),et=[{abbreviations:["10k"],card:"10,000 Year Reunion"},{abbreviations:["3oak"],card:"Three of a Kind"},{abbreviations:["ALS"],card:"Arc Light Sentinel"},{abbreviations:["AoW"],card:"Art of War"},{abbreviations:["BBD"],card:"Barraging Beatdown"},{abbreviations:["BBS"],card:"Big Blue Sky"},{abbreviations:["Starvo"],card:"Bravo, Star of the Show"},{abbreviations:["BEB"],card:"Bull's Eye Bracers"},{abbreviations:["BLW"],card:"Be Like Water"},{abbreviations:["BoJ"],card:"Balance of Justice"},{abbreviations:["BOHH"],card:"Blood on Her Hands"},{abbreviations:["BRB"],card:"Bloodrush Bellow"},{abbreviations:["Breezies"],card:"Breeze Rider Boots"},{abbreviations:["BTA"],card:"Burn Them All"},{abbreviations:["Cake","\u{1F382}"],card:"Ninth Blade of the Blood Oath"},{abbreviations:["CLF"],card:"Channel Lake Frigid"},{abbreviations:["CMH"],card:"Channel Mount Heroic"},{abbreviations:["CnC","C&C"],card:"Command and Conquer"},{abbreviations:["CStrike","C-Strike","C Strike"],card:"Celestial Cataclysm"},{abbreviations:["Cat","Kitty"],card:"Crouching Tiger"},{abbreviations:["CoD"],card:"Crown of Dominion"},{abbreviations:["CoP"],card:"Crown of Providence"},{abbreviations:["CtW"],card:"Crush the Weak"},{abbreviations:["DD"],card:"Death Dealer"},{abbreviations:["DPot","D Pot"],card:"Potion of Deja Vu"},{abbreviations:["Dullcap"],card:"Arcanite Skullcap"},{abbreviations:["EBTT"],card:"Even Bigger Than That!"},{abbreviations:["NewNigma"],card:"Enigma, New Moon"},{abbreviations:["EPot","E Pot"],card:"Energy Potion"},{abbreviations:["EStrike","E-Strike","E Strike"],card:"Enlightened Strike"},{abbreviations:["FFS"],card:"Fyendal's Fighting Spirit"},{abbreviations:["FoN"],card:"Force of Nature"},{abbreviations:["Frosty","\u{1F976}","\u{1F9CA}","\u2744\uFE0F"],card:"Frostbite"},{abbreviations:["Frosty Hammer"],card:"Winter's Wail"},{abbreviations:["GnT"],card:"Give and Take"},{abbreviations:["HMH"],card:"Hope Merchant's Hood"},{abbreviations:["HoI"],card:"Heart of Ice"},{abbreviations:["KKBB"],card:"Knick Knack Bric-a-brac"},{abbreviations:["BStrike"],card:"Levels of Enlightenment"},{abbreviations:["LAG","Twominaris"],card:"Luminaris, Angel's Glow"},{abbreviations:["LCF","Newminaris"],card:"Luminaris, Celestial Fury"},{abbreviations:["LDE"],card:"Last Ditch Effort"},{abbreviations:["LFaL","L4aL"],card:"Life for a Life"},{abbreviations:["LiT"],card:"Lost in Thought"},{abbreviations:["LNW"],card:"Leave No Witnesses"},{abbreviations:["LoW"],card:"Lord of Wind"},{abbreviations:["LtC"],card:"Lead the Charge"},{abbreviations:["MaxV"],card:"Maximum Velocity"},{abbreviations:["MMB"],card:"Mage Master Boots"},{abbreviations:["MnG"],card:"Meat and Greet"},{abbreviations:["MoM"],card:"Mask of Momentum"},{abbreviations:["Pajamas","PJs"],card:"Alluvion Constellas"},{abbreviations:["Ponder Run"],card:"Premeditate"},{abbreviations:["PF","\u{1F525}"],card:"Phoenix Flame"},{abbreviations:["PoM"],card:"Peace of Mind"},{abbreviations:["Pumpkin"],card:"Jack-o'-lantern"},{abbreviations:["Qi Unbound"],card:"Qi Unleashed"},{abbreviations:["RitL"],card:"Red in the Ledger"},{abbreviations:["Cats","Ghost cat","Ghost cats"],card:"Restless Coalescence"},{abbreviations:["SFaF","S4aS"],card:"Scar for a Scar"},{abbreviations:["SWOMB"],card:"Shifting Winds of the Mystic Beast"},{abbreviations:["SWK"],card:"Spinning Wheel Kick"},{abbreviations:["SSGB"],card:"Sandscour Greatbow"},{abbreviations:["SSP"],card:"Sand Sketched Plan"},{abbreviations:["SFTL"],card:"Swing Fist, Think Later"},{abbreviations:["Thanos","Infinity Gauntlet"],card:"Polarity Reversal Script"},{abbreviations:["TAYG"],card:"That All You Got?"},{abbreviations:["ToS"],card:"Test of Strength"},{abbreviations:["TROM"],card:"This Round's on Me"},{abbreviations:["TTT"],card:"Take the Tempo"},{abbreviations:["Ultron"],card:"Teklovossen, the Mechropotent"},{abbreviations:["Pox Malone","Post Malone"],card:"Virulent Touch"},{abbreviations:["Cast Homes"],card:"Visit Goldmane Estate"},{abbreviations:["ZTS"],card:"Zero to Sixty"}];var s=W(j());var xe=Array.from(Array(50).keys()).map(e=>`${e}`),A=(e,t=[])=>{let r=[...e,s.Class.Generic];return t.length>0&&r.push(s.Class.NotClassed),[{filterToPropertyMapping:{property:"classes",isArray:!0},values:r.map(i=>i.toLowerCase()),isOr:!0},xn(t)]},C=(e,t=[])=>{let r=Object.values(s.Hero).filter(i=>i!==e&&!t.includes(i)).map(i=>i.toLowerCase());return[{filterToPropertyMapping:{property:"hero",isString:!0},values:r,excluded:!0,isOr:!0},{filterToPropertyMapping:{property:"specializations",isArray:!0},values:r,excluded:!0,isOr:!0}]},xn=e=>{let t=Object.values(s.Talent).filter(r=>!e.includes(r)).map(r=>r.toLowerCase());return{filterToPropertyMapping:{property:"talents",isArray:!0},values:t,excluded:!0}},Be=[s.Talent.Draconic],Bn=[s.Talent.Elemental,s.Talent.Earth,s.Talent.Ice,s.Talent.Lightning],Ar=[s.Talent.Elemental,s.Talent.Earth],wn=[s.Talent.Elemental,s.Talent.Earth,s.Talent.Ice],Ln=[s.Talent.Elemental,s.Talent.Earth,s.Talent.Lightning],Pn=[s.Talent.Elemental,s.Talent.Ice],Dn=[s.Talent.Elemental,s.Talent.Ice,s.Talent.Lightning],Cr=[s.Talent.Elemental,s.Talent.Lightning],it=[s.Talent.Light],nt=[s.Talent.Mystic],at=[s.Talent.Shadow],Rn=[...A([s.Class.Assassin]),...C(s.Hero.Arakni)],In=[...A([s.Class.Runeblade],Cr),...C(s.Hero.Aurora)],En=[...A([s.Class.Ranger]),...C(s.Hero.Azalea)],_n=[...A([s.Class.Ninja]),...C(s.Hero.Benji)],On=[...A([s.Class.Guardian]),...C(s.Hero.Betsy)],zn=[...A([s.Class.Wizard]),...C(s.Hero.Blaze)],Nn=[...A([s.Class.Warrior],it),{filterToPropertyMapping:{property:"subtypes",isArray:!0,partialMatch:!0},values:["angel"],excluded:!0,isOr:!0},...C(s.Hero.Boltyn)],Hn=[...A([s.Class.Guardian]),...C(s.Hero.Bravo)],$n=[...A([s.Class.Guardian]),...C(s.Hero.Brevant)],Gn=[...A([s.Class.Runeblade],Ln),...C(s.Hero.Briar)],Wn=[...A([s.Class.Adjudicator]),...C(s.Hero.Brutus)],jn=[...A([s.Class.Runeblade],at),...C(s.Hero.Chane)],Kn=[...A([s.Class.Mechanologist]),...C(s.Hero.Dash)],tt=[...A([s.Class.Mechanologist]),...C(s.Hero.DataDoll)],mr=[...A([s.Class.Warrior]),...C(s.Hero.Dorinthea)],Un=[...A([s.Class.Illusionist],Be),...C(s.Hero.Dromai,[s.Hero.Fai])],Yn=[...A([s.Class.Warrior,s.Class.Wizard],Be),{filterToPropertyMapping:{property:"pitch",isNumber:!0},values:[void 0,"0","2","3"],cardTypes:[s.Type.Action,s.Type.AttackReaction,s.Type.DefenseReaction,s.Type.Instant,s.Type.Mentor,s.Type.Resource],excluded:!0,isOr:!0},{filterToPropertyMapping:{property:"types",isArray:!0,partialMatch:!0},values:["hero","mentor"],excluded:!0,isOr:!0},...C(s.Hero.Emperor)],Vn=[...A([s.Class.Illusionist],nt),...C(s.Hero.Enigma)],Qn=[...A([s.Class.Ninja],Be),...C(s.Hero.Fai,[s.Hero.Dromai])],Jn=[...A([s.Class.Runeblade],Ar),...C(s.Hero.Florian)],yr=[...A([s.Class.Merchant]),...C(s.Hero.GenisWotchuneed)],Zn=[...A([s.Class.Ninja]),...C(s.Hero.Ira)],vr=[...A([s.Class.Wizard],Pn),...C(s.Hero.Iyslander)],qn=[...A([s.Class.Wizard]),...C(s.Hero.Kano)],Xn=[...A([s.Class.Warrior]),...C(s.Hero.Kassai)],ea=[...A([s.Class.Ninja]),...C(s.Hero.Katsu)],ta=[...A([s.Class.Merchant]),...C(s.Hero.Kavdaen)],ra=[...A([s.Class.Brute]),...C(s.Hero.Kayo)],ia=[...A([s.Class.Brute],at),...C(s.Hero.Levia)],na=[...A([s.Class.Ranger],Dn),...C(s.Hero.Lexi)],aa=[...A([s.Class.Mechanologist]),...C(s.Hero.Maxx)],oa=[...A([s.Class.Bard]),...C(s.Hero.Melody)],sa=[...A([s.Class.Assassin],nt),...C(s.Hero.Nuu)],la=[...A([s.Class.Guardian],wn),...C(s.Hero.Oldhim)],ca=[...A([s.Class.Warrior]),...C(s.Hero.Olympia)],ua=[...A([s.Class.Wizard],Cr),...C(s.Hero.Oscilio)],da=[...A([s.Class.Illusionist],it),...C(s.Hero.Prism)],pa=[...A([s.Class.Brute]),...C(s.Hero.Rhinar)],ha=[...A([s.Class.Ranger]),...C(s.Hero.Riptide)],fa=[...A([s.Class.Merchant]),...C(s.Hero.Ruudi)],ga=[{filterToPropertyMapping:{property:"classes",isArray:!0},values:["generic"],isOr:!0}],ma=[...A([s.Class.Merchant]),...C(s.Hero.Squizzy)],ya=[...A([s.Class.Guardian],Bn),...C(s.Hero.Bravo)],va=[...A([s.Class.Adjudicator],Be),...C(s.Hero.Taipanis)],ba=[...A([]),...C(s.Hero.Taylor)],Aa=[...A([s.Class.Mechanologist]),...C(s.Hero.Teklovossen)],Ca=[...A([s.Class.Guardian],[s.Talent.Elemental,s.Talent.Earth]),...C(s.Hero.Terra)],ka=[...A([s.Class.Adjudicator],it),...C(s.Hero.Theryon)],Ma=[...A([s.Class.Assassin]),...C(s.Hero.Uzuri)],Fa=[...A([s.Class.Guardian]),...C(s.Hero.Valda)],Sa=[...A([s.Class.Wizard],Ar),...C(s.Hero.Verdance)],Ta=[...A([s.Class.Guardian]),...C(s.Hero.Victor)],xa=[...A([s.Class.Runeblade]),...C(s.Hero.Viserai)],Ba=[...A([s.Class.Runeblade],at),...C(s.Hero.Vynnset)],wa=[...A([s.Class.Bard]),...C(s.Hero.Yorick)],La=[...A([s.Class.Guardian]),...C(s.Hero.Yoji)],Pa=[...A([s.Class.Ninja],nt),...C(s.Hero.Zen)],Da=[{filterToPropertyMapping:{property:"bannedFormats",isArray:!0},values:["blitz"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],br=[{filterToPropertyMapping:{property:"bannedFormats",isArray:!0},values:["blitz (living legend)"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],Ra=[{filterToPropertyMapping:{property:"rarities",isArray:!0},values:["super rare","majestic","legendary","fabled"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],Me=[{filterToPropertyMapping:{property:"bannedFormats",isArray:!0},values:["classic constructed"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"],excluded:!0}],se=[{filterToPropertyMapping:{property:"bannedFormats",isArray:!0},values:["classic constructed (living legend)"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"],excluded:!0}],Ia=[{filterToPropertyMapping:{property:"bannedFormats",isArray:!0},values:["commoner"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],rt=[{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],de={blitz:Da,"blitz ll":br,"blitz living legend":br,clash:Ra,cc:Me,classic:Me,"classic constructed":Me,ll:se,"living legend":se,"cc ll":se,"ll cc":se,"classic constructed ll":se,"classic constructed living legend":se,constructed:Me,commoner:Ia,upf:rt,ultimate:rt,"ultimate pit fight":rt,arakni:Rn,aurora:In,azalea:En,benji:_n,betsy:On,blaze:zn,boltyn:Nn,bravo:Hn,brevant:$n,briar:Gn,brutus:Wn,chane:jn,dash:Kn,data:tt,"data doll":tt,datadoll:tt,dori:mr,dorinthea:mr,dromai:Un,emperor:Yn,enigma:Vn,fai:Qn,florian:Jn,genis:yr,geniswotchuneed:yr,ira:Zn,iyslander:vr,islander:vr,kano:qn,kassai:Xn,katsu:ea,kavdaen:ta,kayo:ra,levia:ia,lexi:na,maxx:aa,melody:oa,nuu:sa,oldhim:la,olympia:ca,oscilio:ua,prism:da,rhinar:pa,riptide:ha,ruudi:fa,shiyana:ga,squizzy:ma,starvo:ya,taipanis:va,taylor:ba,teklovossen:Aa,terra:Ca,theryon:ka,uzuri:Ma,valda:Fa,verdance:Sa,victor:Ta,viserai:xa,vynnset:Ba,yorick:wa,yoji:La,zen:Pa},Fe=["common","rare","super rare","majestic","legendary","fabled"],Ea=(e,t,r)=>{let i=[];if(!t)i.push(...e);else for(let n of e)switch(t){case">=":let a=!1;for(let u of Fe)a?i.push(u):u===n&&(a=!0,i.push(u));break;case">":let l=!1;for(let u of Fe)l?i.push(u):u===n&&(l=!0);break;case"<=":let o=!1;for(let u of Fe.slice().reverse())o?i.push(u):u===n&&(o=!0,i.push(u));break;case"<":let c=!1;for(let u of Fe.slice().reverse())c?i.push(u):u===n&&(c=!0);break;default:break}return{filterToPropertyMapping:{property:"rarities",isArray:!0},isOr:!0,values:i,excluded:r}},_a=(e,t)=>{let r=[];for(let i of e)if(de[i]){let n=de[i];for(let a of n){let l=V({},a);t&&!a.filterToPropertyMapping.isString&&(l.excluded=!a.excluded),r.push(l)}}return r},ot=(e,t,r,i)=>{let n=[];return $a(t)?n.push(..._a(r,e)):Wa(t)&&n.push(Ea(r,i,e)),n},le=[{filterToPropertyMapping:{property:"cost",isNumber:!0},values:xe,excluded:!0},{filterToPropertyMapping:{property:"specialCost",isString:!0,partialMatch:!0},values:["*","x"],excluded:!0},{filterToPropertyMapping:{property:"types",isArray:!0,partialMatch:!0},values:["equipment","hero","placeholder","token","weapon"],excluded:!0}],U=[{filterToPropertyMapping:{property:"defense",isNumber:!0},values:xe,excluded:!0},{filterToPropertyMapping:{property:"specialDefense",isString:!0,partialMatch:!0},values:["*","x"],excluded:!0},{filterToPropertyMapping:{property:"types",isArray:!0,partialMatch:!0},values:["hero","placeholder","token","weapon"],excluded:!0}],Se=[{filterToPropertyMapping:{property:"pitch",isNumber:!0},excluded:!0,values:xe},{filterToPropertyMapping:{property:"types",isArray:!0,partialMatch:!0},values:["equipment","hero","placeholder","token","weapon"],excluded:!0},{filterToPropertyMapping:{property:"isCardBack",isBoolean:!0},values:["true"],excluded:!0}],ee=[{filterToPropertyMapping:{property:"power",isNumber:!0},excluded:!0,values:xe},{filterToPropertyMapping:{property:"specialPower",isString:!0,partialMatch:!0},values:["*","x"],excluded:!0},{filterToPropertyMapping:{property:"types",isArray:!0,partialMatch:!0},values:["equipment","hero","placeholder","token"],excluded:!0}],Te=[{filterToPropertyMapping:{property:"talents",isArray:!0},excluded:!0,values:Object.values(s.Talent).map(e=>e.toLowerCase())}],Oa={"!co":le,"-co":le,"!cost":le,"-cost":le,"!color":le,"-color":le,"!b":U,"-b":U,"!block":U,"-block":U,"!d":U,"-d":U,"!def":U,"-def":U,"!defense":U,"-defense":U,"!pitch":Se,"-pitch":Se,"!p":Se,"-p":Se,"!attack":ee,"-attack":ee,"!power":ee,"-power":ee,"!pwr":ee,"-pwr":ee,"!pow":ee,"-pow":ee,"!talents":Te,"-talents":Te,"!tal":Te,"-tal":Te},st=e=>{let t=[],r=Oa[e];return r&&t.push(...r),t},za=(e,t)=>[...de[e.toLowerCase()],...t?de[t.toLowerCase()]:[]],Na=e=>{var t;return((t=de[e.toLowerCase().split(" ")[0]])==null?void 0:t.length)>0},Ha=["l","legal","hero"],$a=e=>Ha.includes(e),Ga=["r","rarity"],Wa=e=>Ga.includes(e);var lt=[{description:"Attack actions",filters:["st:attack"],shorthands:["AA"]},{description:"Arcane barrier",filters:['k:"arcane barrier"'],shorthands:["AB"]},{description:"Attack reactions",filters:['t:"attack reaction"'],shorthands:["AR"]},{description:"Defense reactions",filters:['t:"defense reaction"'],shorthands:["DR"]},{description:"Gain life",filters:["gain {h}"],shorthands:["Gain life","Gains life"]},{description:"Go again",filters:['k:"go again"'],shorthands:["GA"]},{description:"Non-attack actions",filters:["t:action","st:non-attack"],shorthands:["NAA"]},{description:"Plus defense",filters:["+ {d}"],shorthands:["Pump defense","Pumps defense","Buff defense","Buffs defense"]},{description:"Plus power",filters:["+ {p}"],shorthands:["Pumps","Pump","Buff","Buffs","Pump attack","Pump attacks","Pumps attack","Pumps attacks","Buff attack","Buff attacks","Buffs attack","Buffs attacks","Pump power","Pumps power","Buff power","Buffs power"]},{description:"Poppers",filters:["!c:illusionist","st:attack","pwr:>=6","def:>=0"],helper:'6+ power non-Illusionist attacks that can "pop" phantasm attacks when defending',shorthands:["Poppers","Popper"]},{description:"Spellvoid",filters:['k:"spellvoid"'],shorthands:["SV"]}],ct=lt.filter(({shorthands:e})=>e.some(t=>t.includes(" "))).map(e=>ue(V({},e),{shorthands:e.shorthands.filter(t=>t.includes(" ")).map(t=>t.toLowerCase()).sort((t,r)=>r.length-t.length)})),ut=lt.filter(({shorthands:e})=>e.some(t=>!t.includes(" "))).map(e=>ue(V({},e),{shorthands:e.shorthands.filter(t=>!t.includes(" ")).map(t=>t.toLowerCase()).sort((t,r)=>r.length-t.length)}));var Gr=[">=",">","<=","<"],Wr=["!","-"],dt={property:"artists",isArray:!0,partialMatch:!0},kr={property:"bannedFormats",isArray:!0,partialMatch:!0},ja={property:"n/a"},Mr={property:"classes",isArray:!0,partialMatch:!0},Fr={property:"cost",specialProperty:"specialCost",isNumber:!0,partialMatch:!0},pe={property:"defense",specialProperty:"specialDefense",isNumber:!0},Sr={nestedProperty:"foiling",property:"printings",isArray:!0},Tr={property:"fusions",isArray:!0},xr={property:"intellect",isNumber:!0},Br={property:"keywords",isArray:!0,partialMatch:!0},pt={property:"n/a",isMeta:!0},wr={property:"life",specialProperty:"specialLife",isNumber:!0},Lr={property:"name",isString:!0},ht={property:"pitch",isNumber:!0},we={property:"power",specialProperty:"specialPower",isNumber:!0},Pr={property:"n/a",isMeta:!0},Ka={property:"n/a"},Ua={property:"n/a"},Dr={property:"sets",isArray:!0,partialMatch:!0},Le={property:"specializations",isArray:!0,partialMatch:!0},Rr={property:"subtypes",isArray:!0},Ir={property:"types",isArray:!0},Er={property:"talents",isArray:!0},Ya={property:"functionalText",isString:!0,partialMatch:!0},Va={property:"typeText",isString:!0,partialMatch:!0},Pe={nestedProperty:"treatment",property:"printings",isArray:!0},De={a:dt,artist:dt,art:dt,attack:we,b:pe,block:pe,banned:kr,c:Mr,class:Mr,chain:ja,co:Fr,cost:Fr,color:ht,d:pe,def:pe,defense:pe,f:Tr,fusion:Tr,foil:Sr,foiling:Sr,i:xr,intellect:xr,k:Br,keyword:Br,l:pt,legal:pt,hero:pt,li:wr,life:wr,n:Lr,name:Lr,p:ht,pitch:ht,pwr:we,pow:we,power:we,r:Pr,rarity:Pr,referencedby:Ka,references:Ua,rf:kr,s:Dr,set:Dr,sp:Le,spec:Le,specialization:Le,specializations:Le,st:Rr,subtype:Rr,t:Ir,type:Ir,tal:Er,talent:Er,text:Ya,treat:Pe,treatment:Pe,var:Pe,variation:Pe,x:Va},Qa=[{text:M.Release.ClassicBattlesRhinarDorinthea.toLowerCase(),override:M.Release.ClassicBattlesRhinarDorinthea.toLowerCase().replaceAll(w,"")}],Ja=e=>{var n;let t=[],r=e.replaceAll("\u201D",'"');for(let{text:a,override:l}of Qa)r.includes(a)&&(r=r.replace(a,l));if((n=ke(r))==null?void 0:n.card)t.push(r);else{let a=r.split(/[ ]+/),l="",o=0;for(let c of a)o===2&&(t.push(l.trim().replaceAll('"',"")),l="",o=0),o<2&&c.split('"').length===2?(l+=" "+c,o++):o===0&&l===""?t.push(c):o===1&&(l+=" "+c);o===2&&(t.push(l.trim().replaceAll('"',"")),l="",o=0)}return t},Za=[M.Hero.Briar,M.Hero.Brutus,M.Hero.Emperor,M.Hero.Prism,M.Hero.Shiyana,M.Hero.Taylor,M.Hero.Yorick],gt=(e,t)=>{var h;let r=e.trim().toLowerCase();for(let{filters:m,shorthands:y}of ct)for(let p of y)if(r.includes(p)){r=r.replace(p,m.join(" "));break}for(let[m,y]of Object.entries(M.setToSetIdentifierMappings))r.includes(m.toLowerCase())&&(r=r.replace(m.toLowerCase(),y[0]));let i=Ja(r),n=[];for(let m of i){let y=ut.find(({shorthands:p})=>p.includes(m));y?n.push(...y.filters):n.push(m)}let a=[],l=[],o=[],c=[],u=[],d=[],f={isClash:!1,heroes:[]};for(let m of n)if(oo(m)){let[y,p]=m.split(":"),{modifier:v,values:g,isAnd:F,isOr:B}=no(p),{filterKey:b,excluded:x,isMeta:k}=ao(y);if(k){if(["rarity","r"].includes(b)&&(g=io(g)),["legal","l","hero"].includes(b)){for(let T of Za)p.includes(T.toLowerCase())&&(f.heroes.includes(T)||f.heroes.push(T));p.includes("clash")&&(f.isClash=!0)}a.push(...ot(x,b,g,v))}else{if(["chain"].includes(b)){let T=_=>_.name.toLowerCase().replaceAll(w,""),L=g.map(_=>mt(_,t)).filter(_=>!!_).map(T),P=new Set(L);b="name",B=!0;let H=20,R=0,E=_=>{if(!_.types.includes(M.Type.Hero)){let $=T(_);P.add($),L.includes($)||L.push($)}};for(let _ of L){if(R>H)break;let{referencedBy:$,references:Ee}=Re(_,t);Ee.forEach(E),R===0&&$.forEach(E),R++}g=Array.from(P)}else if(["referencedby","references"].includes(b)){let T=b,L=[...g].filter(P=>!!P);g=[],b="name",B=!0;for(let P of L){let{referencedBy:H,references:R}=Re(P,t);["referencedby"].includes(T)?g.push(...R.map(({name:E})=>E.toLowerCase().replaceAll(w,""))):["references"].includes(T)&&g.push(...H.map(({name:E})=>E.toLowerCase().replaceAll(w,"")))}}else["art","artist"].includes(b)?l=g:["foiling","foil"].includes(b)?(c=to(g),g=c.map(T=>T.toLowerCase())):["treat","treatment","var","variation"].includes(b)?(d=ro(g),g=d.map(T=>T.toLowerCase())):["set","s"].includes(b)?(u=qa(g),g=u.map(T=>T.toLowerCase().replaceAll(w,""))):["pitch","p","color"].includes(b)&&(g=eo(g));De[b]&&a.push({filterToPropertyMapping:De[b],values:g,isAnd:F,isOr:B,modifier:v,excluded:x})}}else if(m){let y=(h=ke(m))==null?void 0:h.card,p=st(m);y?o.push(`"${y.toLowerCase().replace(w,"")}"`):p&&p.length>0?a.push(...p):o.push(m.replace(w,""))}return{appliedFilters:a,attributes:{artists:l,foilings:c,releases:u,treatments:d},keywords:o,specialConditions:f}},qa=e=>{let t=[];for(let r of e)t.push(...Xa(r));return t},Xa=e=>{let t=[],r=Object.values(M.Release).find(i=>i.toLowerCase().replaceAll(w,"")===e);if(r&&t.push(r),t.length===0){let i=M.setIdentifierToSetMappings[e];i&&t.push(i)}if(t.length===0){let i=Object.values(M.Release).filter(n=>n.toLowerCase().includes(e));i.length>0&&t.push(...i)}return t},ft={blue:3,yellow:2,red:1,white:0},eo=e=>{let t=[];for(let r of e)ft[r]||ft[r]===0?t.push(ft[r].toString()):t.push(r);return t},_r={r:M.Foiling.R,rf:M.Foiling.R,rainbow:M.Foiling.R,c:M.Foiling.C,cf:M.Foiling.C,cold:M.Foiling.C,g:M.Foiling.G,gf:M.Foiling.G,gold:M.Foiling.G},to=e=>{let t=[];for(let r of e)_r[r]&&t.push(_r[r]);return t},Or=ue(V({},Object.values(M.Treatment).reduce((e,t)=>(e[t.toLowerCase()]=t,e),{})),{aa:M.Treatment.AA,alt:M.Treatment.AA,"alt art":M.Treatment.AA,ab:M.Treatment.AB,"alt border":M.Treatment.AB,at:M.Treatment.AT,"alt text":M.Treatment.AT,ea:M.Treatment.EA,extended:M.Treatment.EA,"extended art":M.Treatment.EA,fa:M.Treatment.FA,full:M.Treatment.FA,"full art":M.Treatment.FA}),ro=e=>{let t=[];for(let r of e)Or[r]?t.push(Or[r]):M.Treatment[r.toUpperCase()]&&t.push(M.Treatment[r.toUpperCase()]);return t},zr={c:"common",f:"fabled",l:"legendary",m:"majestic",v:"marvel",r:"rare",s:"super rare",t:"token"},io=e=>{let t=[];for(let r of e)zr[r]?t.push(zr[r]):t.push(r);return t},no=e=>{let t=[],r,i,n=Gr.find(a=>e.includes(a));if(n){let[,a]=e.split(n);Nr(a)?(r=!0,t.push(...a.trim().split("+").map(l=>l.replace(w,"")))):Hr(a)?(i=!0,t.push(...a.trim().split(",").map(l=>l.replace(w,"")))):t.push(a.trim().replace(w,""))}else Nr(e)?(r=!0,t.push(...e.trim().split("+").map(a=>a.replace(w,"")))):Hr(e)?(i=!0,t.push(...e.trim().split(",").map(a=>a.replace(w,"")))):e.startsWith('"')&&e.endsWith('"')?t.push(e.trim().replaceAll('"',"").replace(w,"")):t.push(e.trim().replace(w,""));return{modifier:n,values:t,isAnd:r,isOr:i}},ao=e=>{let t=so(e);if(t){let[,r]=e.split(t);return{excluded:!0,filterKey:r,isMeta:$r(r)}}else return{excluded:!1,filterKey:e,isMeta:$r(e)}},oo=e=>e.indexOf(":")>=0,Nr=e=>e.indexOf("+")>=0,Hr=e=>e.indexOf(",")>=0,$r=e=>{var t;return!!((t=De[e])!=null&&t.isMeta)},so=e=>{var t;return(t=Wr.find(r=>e.includes(r)))==null?void 0:t.slice(0,1)};var I=W(j()),jr={artists:["Hoodwill"],cardIdentifier:"fangs-a-lot-blue",classes:[I.Class.Generic],defaultImage:"FNG000",functionalText:"If Fangs A Lot is put into your banished zone from your graveyard, instead put it into your hand.",printings:[{artists:["Hoodwill"],identifier:"FNG000",image:"FNG000",print:"FNG000",set:I.Release.Promos},{artists:["Hoodwill"],identifier:"FNG000",image:"FNG000_Marvel",print:`FNG000-${I.Treatment.FA}`,set:I.Release.Promos,treatment:I.Treatment.FA}],name:"Fangs A Lot",rarities:[I.Rarity.Rare],rarity:I.Rarity.Rare,sets:[I.Release.Promos],setIdentifiers:["FNG000"],specialImage:"FNG000_Marvel",subtypes:[I.Subtype.Attack],types:[I.Type.Action],typeText:"Generic Action - Attack"},Kr=[{keyword:jr.name.toLowerCase(),card:jr}];var vt=W(j());var bt=class{constructor(t){this.search=(t,r)=>{let i,{appliedFilters:n,attributes:a,keywords:l,specialConditions:o}=gt(t,this.cards),c=l.join(" "),u=r?Kr.filter(p=>p.keyword===c):[];if(u.length>0?i=u.map(({card:p})=>p):l.length?i=this.fuse.search(c).map(p=>p.item):i=[...this.cards],n.length&&(i=i.filter(p=>p&&Yr(p,n,o)),n.some(({excluded:p,values:v})=>!p&&v.includes(D.Format.ClassicConstructed.toLowerCase()))&&(i=i.filter(p=>!p.young)),n.some(({excluded:p,values:v})=>!p&&(v.includes(D.Format.Blitz.toLowerCase())||v.includes(D.Format.Commoner.toLowerCase())))&&(i=i.filter(p=>{let{types:v,young:g}=p;return!(v.includes(D.Type.Hero)&&!g)}))),l.length===0){let p="";if(a.releases.length===1)try{let v=a.releases[0];p=D.setToSetIdentifierMappings[v][0].toUpperCase()}catch(v){console.error("Error getting set identifier from search",v)}p?i.sort((v,g)=>{var b,x;let F=(b=v.setIdentifiers.find(k=>k.includes(p)))==null?void 0:b.replace(p,""),B=(x=g.setIdentifiers.find(k=>k.includes(p)))==null?void 0:x.replace(p,"");return F&&B?F.localeCompare(B):-1}):i.sort((v,g)=>v.name===g.name?`${v.pitch}`.localeCompare(`${g.pitch}`):v.name.localeCompare(g.name))}else{let p=[],v=[],g=l.map(F=>F.toLowerCase().replace(w,"")).join(" ");for(let F of i)F.name.toLowerCase().replace(w,"")===g?p.push(F):v.push(F);i=[...p,...v]}let d,{artists:f,foilings:h,releases:m,treatments:y}=a;return(f.length>0||h.length>0||m.length>0||y.length>0)&&(d=i.map(p=>{let v=p.printings.filter(g=>{let F=!!g.image,B=f.length===0||f.some(T=>g.artists.find(L=>L.replace(w,"").toLowerCase().includes(L))),b=h.length===0||h.includes(g.foiling),x=m.length===0||m.includes(g.set),k=y.length===0||y.includes(g.treatment);return F&&B&&b&&x&&k});return V({matchingPrintings:v},p)})),{appliedFilters:n,attributes:a,keywords:l,searchResults:d||i}};let r={getFn:(i,n)=>{let a=yt.default.config.getFn(i,n);return a&&(Array.isArray(a)?a.map(l=>he(l.replace(w,""))):he(a).replace(w,""))},ignoreLocation:!0,includeScore:!0,keys:[{name:"name",weight:10},{name:"functionalText",weight:6},{name:"setIdentifiers",weight:2},{name:"typeText",weight:6}],threshold:.15,useExtendedSearch:!0};this.cards=[...t],this.fuse=new yt.default([...t],r)}},Ur=bt,Yr=(e,t,r)=>{var n,a,l,o;let i=!0;for(let c of t){let{isNumber:u,isString:d,isArray:f,isBoolean:h,property:m}=c.filterToPropertyMapping;if((u&&!lo(e,c)||d&&!co(e,c)||f&&!uo(e,c)||h&&!po(e,c))&&(i=!1),r.isClash&&["rarities","bannedFormats"].includes(m)){let b=[D.Rarity.SuperRare,D.Rarity.Majestic,D.Rarity.Legendary,D.Rarity.Fabled].some(P=>e.rarities.includes(P)),x=!1;for(let{cardIdentifiers:P,heroes:H}of Xe)for(let R of r.heroes)H.includes(R)&&P.includes(e.cardIdentifier)&&(x=!0);let k=!!e.specializations&&e.specializations.length>0||x,T=[D.Type.Mentor,D.Type.Weapon].some(P=>e.types.includes(P)),L=qe.includes(e.name);!i&&!L&&(k||T)&&b&&(i=!0),L&&(i=!1)}if(r.isClash&&r.heroes.includes(D.Hero.Briar)&&e.name==="Rosetta Thorn"&&(i=!0),!i&&r.heroes.includes(D.Hero.Brutus)){let b=((n=e.specializations)==null?void 0:n.length)>0;((a=e.keywords)==null?void 0:a.includes(vt.Keyword.Clash))&&!b&&(i=!0)}if(!i&&r.heroes.includes(D.Hero.Shiyana)&&["classes"].includes(m)){let b=((l=e.specializations)==null?void 0:l.length)>0,x=e.types.includes(D.Type.Token),k=e.cardIdentifier==="cracked-bauble-yellow",T=(o=e.keywords)==null?void 0:o.includes(vt.Keyword.Ephemeral);(b||x||k||T)&&(i=!0)}let g=e.types.includes(D.Type.Equipment);if(!i&&r.heroes.includes(D.Hero.Taylor)&&g&&g&&(i=!0),!i&&r.heroes.includes(D.Hero.Yorick)&&(["classes"].includes(m)||["talents"].includes(m))&&e.types.includes(D.Type.Token)&&(i=!0),!i)break}return i},lo=(e,t)=>{var r;if(Ie(t,e)){let{values:i,modifier:n,excluded:a,filterToPropertyMapping:{partialMatch:l}}=t,o=At(e,t);if(o!=null&&!isNaN(o))if(o=parseInt(o),n)switch(n){case">=":let c=i==null?void 0:i.some(h=>o>=parseInt(h));return a?!c:c;case">":let u=i==null?void 0:i.some(h=>o>parseInt(h));return a?!u:u;case"<=":let d=i==null?void 0:i.some(h=>o<=parseInt(h));return a?!d:d;case"<":let f=i==null?void 0:i.some(h=>o<parseInt(h));return a?!f:f;default:return!1}else{let c=i==null?void 0:i.some(u=>o===parseInt(u));return a?!c:c}else{let c=(r=fo(e,t))==null?void 0:r.toLowerCase(),u=l?i==null?void 0:i.some(d=>c==null?void 0:c.includes(d)):i==null?void 0:i.some(d=>c===d);return a?!u:u}}else return!0},co=(e,t)=>{var r;if(Ie(t,e)){let{values:i,isAnd:n,excluded:a,filterToPropertyMapping:{partialMatch:l}}=t,o=(r=At(e,t))==null?void 0:r.replaceAll(w,"");if(l){let c=n?i==null?void 0:i.every(u=>o==null?void 0:o.toLowerCase().includes(u)):i==null?void 0:i.some(u=>o==null?void 0:o.toLowerCase().includes(u));return a?!c:c}else{let c=n?i==null?void 0:i.every(u=>(o==null?void 0:o.toLowerCase())===u):i==null?void 0:i.some(u=>(o==null?void 0:o.toLowerCase())===u);return a?!c:c}}else return!0},uo=(e,t)=>{if(Ie(t,e)){let{values:r,isAnd:i,excluded:n,filterToPropertyMapping:{partialMatch:a}}=t,l=ho(e,t).map(o=>o==null?void 0:o.replaceAll(w,""));if(a){let o=i?r.every(u=>l==null?void 0:l.some(d=>d==null?void 0:d.toLowerCase().includes(u))):r.some(u=>l==null?void 0:l.some(d=>d==null?void 0:d.toLowerCase().includes(u))),c=l.length===0;return n?!o||c:o}else{let o=i?r.every(c=>l==null?void 0:l.some(u=>(u==null?void 0:u.toLowerCase())===c)):r.some(c=>l==null?void 0:l.some(u=>(u==null?void 0:u.toLowerCase())===c));return n?!o:o}}else return!0},po=(e,t)=>{if(Ie(t,e)){let{excluded:r}=t,i=At(e,t);return r?!i:i}else return!0},At=(e,t)=>{let{filterToPropertyMapping:r}=t;return e[r.property]},ho=(e,t)=>{let{filterToPropertyMapping:{nestedProperty:r,property:i}}=t,n=e[i]||[];return r?n.map(a=>a[r]).filter(a=>!!a):n},fo=(e,t)=>{let{filterToPropertyMapping:r}=t;return e[r.specialProperty]},Ie=({cardTypes:e},{types:t,subtypes:r})=>!e||(e==null?void 0:e.some(i=>t.map(n=>n.toLowerCase()).includes(i.toLowerCase())||r.map(n=>n.toLowerCase()).includes(i.toLowerCase())));var mt=(e,t)=>{let r=t.find(i=>Ct(i.name)===e);return r||(r=t.find(i=>Ct(i.name).includes(e))),r},Ct=e=>he(e.toLowerCase().trim().replace(w,"")),he=e=>e.normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"");var Y=W(j()),go=e=>{let t=e.filter(o=>o.types.includes(Y.Type.Hero)).sort((o,c)=>o.name.localeCompare(c.name)),r=t.filter(o=>!o.young&&!o.classes.includes(Y.Class.Adjudicator)),i=t.filter(o=>{let c=o.rarities.some(d=>d!==Y.Rarity.Promo),u=o.sets.some(d=>d!==Y.Release.Promos);return c||u}),n=t.filter(o=>{let c=o.rarities.every(d=>d===Y.Rarity.Promo),u=o.sets.every(d=>d===Y.Release.Promos);return c&&u}),a=t.filter(o=>o.young),l=a.filter(({hero:o})=>!r.find(c=>c.hero===o));return{all:t,adult:r,nonPromo:i,promoOnly:n,young:a,youngOnly:l}};var Jr=W(j());var kt=W(j()),mo={"Dawnblade, Resplendent":"Dawnblade"},Vr=e=>mo[e.name]||e.name,Qr=e=>{var t;return(t=e.functionalText)==null?void 0:t.replaceAll(e.name,"")},Re=(e,t)=>{let r=t.find(i=>i.name.toLowerCase().replace(w,"")===e);return r||(r=t.find(i=>i.name.toLowerCase().replace(w,"").includes(e))),Mt(r,t)},Mt=(e,t)=>{var a,l;let r=[],i=[],n=[];if(e){let o=[],c=[],u=Vr(e);for(let d of t){let f=Vr(d),h=u===f,m=e.pitch!==d.pitch;if(h&&m)r.push(d);else if(!h){let y=e.name==="Seismic Surge",p=(a=d.keywords)==null?void 0:a.includes(kt.Keyword.Heave),v=y&&p,g=Qr(d),F=g==null?void 0:g.includes(u),B=Qr(e),b=B==null?void 0:B.includes(f);(F||v)&&o.push(d);let x=d.name==="Seismic Surge",k=(l=e.keywords)==null?void 0:l.includes(kt.Keyword.Heave);(b||x&&k)&&c.push(d)}}for(let d of o)i.push(d);for(let d of c){let f=d.name;u!==f&&!c.some(h=>{let m=h.name;return m!==f&&m.includes(f)})&&n.push(d)}}return{otherPitches:r,referencedBy:i,references:n}},yo=["cash-in-yellow"],vo=(e,t,r)=>{let i=new Set;for(let n of e.filter(({cardIdentifier:a})=>!yo.includes(a))){let{references:a}=Mt(n,t);for(let l of a.filter(o=>{let c=o.name==="Hyper Driver",u=r===Jr.Hero.Maxx;return!c||u}))i.add(l)}return Array.from(i)};0&&(module.exports={PUNCTUATION,abbreviations,availableExclusions,availableModifiers,clashBannedCards,clashLegalCards,clashSpecializationOverrides,filterCard,filtersToCardPropertyMappings,getAbbreviation,getAbbreviationByCard,getCardByName,getCleanText,getDeckFilters,getExcludedMetaFilters,getHeroBreakdown,getKeywordsAndAppliedFiltersFromText,getMetaFilters,getNormalizedText,getRelatedCards,getRelatedCardsByName,getTokensReferencedByCards,heroHasFilters,multiWordShorthands,shorthands,singleWordShorthands});
|
|
1
|
+
var ii=Object.create;var ce=Object.defineProperty,ni=Object.defineProperties,ai=Object.getOwnPropertyDescriptor,oi=Object.getOwnPropertyDescriptors,si=Object.getOwnPropertyNames,xt=Object.getOwnPropertySymbols,li=Object.getPrototypeOf,wt=Object.prototype.hasOwnProperty,ci=Object.prototype.propertyIsEnumerable;var Bt=(e,t,r)=>t in e?ce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,V=(e,t)=>{for(var r in t||(t={}))wt.call(t,r)&&Bt(e,r,t[r]);if(xt)for(var r of xt(t))ci.call(t,r)&&Bt(e,r,t[r]);return e},ue=(e,t)=>ni(e,oi(t));var Lt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ui=(e,t)=>{for(var r in t)ce(e,r,{get:t[r],enumerable:!0})},Pt=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of si(t))!wt.call(e,n)&&n!==r&&ce(e,n,{get:()=>t[n],enumerable:!(i=ai(t,n))||i.enumerable});return e};var W=(e,t,r)=>(r=e!=null?ii(li(e)):{},Pt(t||!e||!e.__esModule?ce(r,"default",{value:e,enumerable:!0}):r,e)),di=e=>Pt(ce({},"__esModule",{value:!0}),e);var j=Lt((So,Xt)=>{var me=Object.defineProperty,pi=Object.defineProperties,hi=Object.getOwnPropertyDescriptor,fi=Object.getOwnPropertyDescriptors,gi=Object.getOwnPropertyNames,Dt=Object.getOwnPropertySymbols,It=Object.prototype.hasOwnProperty,mi=Object.prototype.propertyIsEnumerable,Rt=(e,t,r)=>t in e?me(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yi=(e,t)=>{for(var r in t||(t={}))It.call(t,r)&&Rt(e,r,t[r]);if(Dt)for(var r of Dt(t))mi.call(t,r)&&Rt(e,r,t[r]);return e},vi=(e,t)=>pi(e,fi(t)),bi=(e,t)=>{for(var r in t)me(e,r,{get:t[r],enumerable:!0})},Ai=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of gi(t))!It.call(e,n)&&n!==r&&me(e,n,{get:()=>t[n],enumerable:!(i=hi(t,n))||i.enumerable});return e},Ci=e=>Ai(me({},"__esModule",{value:!0}),e),Et={};bi(Et,{Bond:()=>Nt,Class:()=>zt,Flow:()=>Ht,Foiling:()=>_t,Format:()=>$t,Fusion:()=>Gt,Hero:()=>Qt,Keyword:()=>Jt,Rarity:()=>Wt,Release:()=>jt,ReleaseEdition:()=>Kt,Subtype:()=>Vt,Talent:()=>Ut,Treatment:()=>Ot,Type:()=>Yt,fullSetIdentifiers:()=>He,getCanAddToDeck:()=>Mi,getCardIdentifier:()=>ki,getDefaultPrinting:()=>Ri,getIsArenaCard:()=>Zt,getIsDeckCard:()=>Ne,getPrint:()=>Bi,getShouldRotateCardImage:()=>Fi,getSpecialPrinting:()=>Pi,orderedFullSetBlackBorderIdentifiers:()=>wi,setIdentifierToSetMappings:()=>qt,setToSetIdentifierMappings:()=>Si});Xt.exports=Ci(Et);var _t=(e=>(e.C="Cold",e.G="Gold",e.R="Rainbow",e))(_t||{}),Ot=(e=>(e.AB="Alternate Border",e.AA="Alternate Art",e.AT="Alternate Text",e.EA="Extended Art",e.FA="Full Art",e))(Ot||{}),zt=(e=>(e.NotClassed="NotClassed",e.Generic="Generic",e.Adjudicator="Adjudicator",e.Assassin="Assassin",e.Bard="Bard",e.Brute="Brute",e.Guardian="Guardian",e.Illusionist="Illusionist",e.Mechanologist="Mechanologist",e.Merchant="Merchant",e.Ninja="Ninja",e.Ranger="Ranger",e.Runeblade="Runeblade",e.Shapeshifter="Shapeshifter",e.Warrior="Warrior",e.Wizard="Wizard",e))(zt||{}),Nt=(e=>(e.Earth="Earth",e))(Nt||{}),Ht=(e=>(e.Lightning="Lightning",e))(Ht||{}),$t=(e=>(e.Blitz="Blitz",e.BlitzLivingLegend="Blitz (Living Legend)",e.Clash="Clash",e.ClassicConstructed="Classic Constructed",e.ClassicConstructedLivingLegend="Classic Constructed (Living Legend)",e.Commoner="Commoner",e.Draft="Draft",e.Open="Open",e.Sealed="Sealed",e.UltimatePitFight="Ultimate Pit Fight",e))($t||{}),Gt=(e=>(e.Earth="Earth",e.Ice="Ice",e.Lightning="Lightning",e))(Gt||{}),Wt=(e=>(e.Token="Token",e.Common="Common",e.Rare="Rare",e.SuperRare="Super Rare",e.Majestic="Majestic",e.Marvel="Marvel",e.Legendary="Legendary",e.Fabled="Fabled",e.Promo="Promo",e))(Wt||{}),jt=(e=>(e.ArcaneRising="Arcane Rising",e.BrightLights="Bright Lights",e.CrucibleOfWar="Crucible of War",e.DuskTillDawn="Dusk till Dawn",e.Dynasty="Dynasty",e.Everfest="Everfest",e.HeavyHitters="Heavy Hitters",e.HistoryPack1="History Pack 1",e.Monarch="Monarch",e.Outsiders="Outsiders",e.PartTheMistveil="Part the Mistveil",e.Rosetta="Rosetta",e.TalesOfAria="Tales of Aria",e.Uprising="Uprising",e.WelcomeToRathe="Welcome to Rathe",e.ArmoryDeckKayo="Armory Deck: Kayo",e.ArmoryDeckBoltyn="Armory Deck: Boltyn",e.ArmoryDeckAzalea="Armory Deck: Azalea",e.ArakniBlitzDeck="Arakni Blitz Deck",e.AzaleaBlitzDeck="Azalea Blitz Deck",e.BenjiBlitzDeck="Benji Blitz Deck",e.BetsyBlitzDeck="Betsy Blitz Deck",e.BoltynBlitzDeck="Boltyn Blitz Deck",e.BriarBlitzDeck="Briar Blitz Deck",e.BravoBlitzDeck="Bravo Blitz Deck",e.ChaneBlitzDeck="Chane Blitz Deck",e.DromaiBlitzDeck="Dromai Blitz Deck",e.EnigmaBlitzDeck="Enigma Blitz Deck",e.FaiBlitzDeck="Fai Blitz Deck",e.KassaiBlitzDeck="Kassai Blitz Deck",e.KatsuBlitzDeck="Katsu Blitz Deck",e.KayoBlitzDeck="Kayo Blitz Deck",e.LeviaBlitzDeck="Levia Blitz Deck",e.LexiBlitzDeck="Lexi Blitz Deck",e.NuuBlitzDeck="Nuu Blitz Deck",e.OldhimBlitzDeck="Oldhim Blitz Deck",e.OlympiaBlitzDeck="Olympia Blitz Deck",e.PrismBlitzDeck="Prism Blitz Deck",e.RhinarBlitzDeck="Rhinar Blitz Deck",e.RiptideBlitzDeck="Riptide Blitz Deck",e.UzuriBlitzDeck="Uzuri Blitz Deck",e.VictorBlitzDeck="Victor Blitz Deck",e.ZenBlitzDeck="Zen Blitz Deck",e.FirstStrikeAurora="1st Strike: Aurora",e.FirstStrikeTerra="1st Strike: Terra",e.DorintheaHeroDeck="Dorinthea Hero Deck",e.KatsuHeroDeck="Katsu Hero Deck",e.RhinarHeroDeck="Rhinar Hero Deck",e.ClassicBattlesRhinarDorinthea="Classic Battles: Rhinar vs Dorinthea",e.IraWelcomeDeck="Ira Welcome Deck",e.RoundTheTable="Round the Table",e.Promos="Promos",e))(jt||{}),Kt=(e=>(e.Alpha="Alpha",e.First="First",e.Unlimited="Unlimited",e.Promo="Promo",e))(Kt||{}),Ut=(e=>(e.Draconic="Draconic",e.Earth="Earth",e.Elemental="Elemental",e.Ice="Ice",e.Light="Light",e.Lightning="Lightning",e.Mystic="Mystic",e.Royal="Royal",e.Shadow="Shadow",e))(Ut||{}),Yt=(e=>(e.Action="Action",e.AttackReaction="Attack Reaction",e.Block="Block",e.DefenseReaction="Defense Reaction",e.DemiHero="Demi-Hero",e.Equipment="Equipment",e.Hero="Hero",e.Instant="Instant",e.Macro="Macro",e.Mentor="Mentor",e.Resource="Resource",e.Token="Token",e.Weapon="Weapon",e))(Yt||{}),Vt=(e=>(e.OneHanded="1H",e.TwoHanded="2H",e.Affliction="Affliction",e.Ally="Ally",e.Angel="Angel",e.Arms="Arms",e.Arrow="Arrow",e.Ash="Ash",e.Attack="Attack",e.Aura="Aura",e.Axe="Axe",e.Base="Base",e.Book="Book",e.Bow="Bow",e.Chest="Chest",e.Chi="Chi",e.Claw="Claw",e.Club="Club",e.Construct="Construct",e.Dagger="Dagger",e.Demon="Demon",e.Dragon="Dragon",e.Evo="Evo",e.Fiddle="Fiddle",e.Figment="Figment",e.Flail="Flail",e.Gem="Gem",e.Gun="Gun",e.Hammer="Hammer",e.Head="Head",e.Invocation="Invocation",e.Item="Item",e.Landmark="Landmark",e.Lute="Lute",e.Legs="Legs",e.NonAttack="Non-Attack",e.OffHand="Off-Hand",e.Orb="Orb",e.Pistol="Pistol",e.Quiver="Quiver",e.Rock="Rock",e.Shuriken="Shuriken",e.Scepter="Scepter",e.Scroll="Scroll",e.Scythe="Scythe",e.Song="Song",e.Staff="Staff",e.Sword="Sword",e.Trap="Trap",e.Wrench="Wrench",e.Young="Young",e))(Vt||{}),Qt=(e=>(e.Arakni="Arakni",e.Aurora="Aurora",e.Azalea="Azalea",e.Benji="Benji",e.Betsy="Betsy",e.Blaze="Blaze",e.Boltyn="Boltyn",e.Bravo="Bravo",e.Brevant="Brevant",e.Briar="Briar",e.Brutus="Brutus",e.Chane="Chane",e.Dash="Dash",e.DataDoll="Data Doll",e.Dorinthea="Dorinthea",e.Dromai="Dromai",e.Emperor="Emperor",e.Enigma="Enigma",e.Fai="Fai",e.Florian="Florian",e.GenisWotchuneed="Genis Wotchuneed",e.Ira="Ira",e.Iyslander="Iyslander",e.Kano="Kano",e.Kassai="Kassai",e.Katsu="Katsu",e.Kavdaen="Kavdaen",e.Kayo="Kayo",e.Levia="Levia",e.Lexi="Lexi",e.Maxx="Maxx",e.Melody="Melody",e.Nuu="Nuu",e.Oldhim="Oldhim",e.Olympia="Olympia",e.Oscilio="Oscilio",e.Prism="Prism",e.Rhinar="Rhinar",e.Riptide="Riptide",e.Ruudi="Ruu'di",e.Shiyana="Shiyana",e.Squizzy="Squizzy",e.Taipanis="Taipanis",e.Taylor="Taylor",e.Teklovossen="Teklovossen",e.Terra="Terra",e.Theryon="Theryon",e.Uzuri="Uzuri",e.Valda="Valda",e.Verdance="Verdance",e.Victor="Victor",e.Vynnset="Vynnset",e.Viserai="Viserai",e.Yorick="Yorick",e.Yoji="Yoji",e.Zen="Zen",e))(Qt||{}),Jt=(e=>(e.Ambush="Ambush",e.Amp="Amp",e.ArcaneBarrier="Arcane Barrier",e.Awaken="Awaken",e.Battleworn="Battleworn",e.BeatChest="Beat Chest",e.BladeBreak="Blade Break",e.BloodDebt="Blood Debt",e.Boost="Boost",e.Channel="Channel",e.Charge="Charge",e.Clash="Clash",e.Cloaked="Cloaked",e.Combo="Combo",e.Contract="Contract",e.Crank="Crank",e.Crush="Crush",e.Decompose="Decompose",e.Dominate="Dominate",e.Ephemeral="Ephemeral",e.Essence="Essence",e.EvoUpgrade="Evo Upgrade",e.Flow="Flow",e.Freeze="Freeze",e.Fusion="Fusion",e.Galvanize="Galvanize",e.GoAgain="Go again",e.Guardwell="Guardwell",e.Heave="Heave",e.Intimidate="Intimidate",e.Legendary="Legendary",e.Material="Material",e.Meld="Meld",e.Modular="Modular",e.Mirage="Mirage",e.Negate="Negate",e.Opt="Opt",e.Overpower="Overpower",e.Pairs="Pairs",e.Piercing="Piercing",e.Phantasm="Phantasm",e.Protect="Protect",e.Quell="Quell",e.Reload="Reload",e.Reprise="Reprise",e.RuneGate="Rune Gate",e.Rupture="Rupture",e.Scrap="Scrap",e.Solflare="Solflare",e.Specialization="Specialization",e.Spectra="Spectra",e.Spellvoid="Spellvoid",e.Stealth="Stealth",e.Surge="Surge",e.Temper="Temper",e.Tower="Tower",e.Transform="Transform",e.Transcend="Transcend",e.Universal="Universal",e.Unfreeze="Unfreeze",e.Unity="Unity",e.Wager="Wager",e.Ward="Ward",e))(Jt||{}),ki=(e,t)=>{let{name:r,pitch:i}=e,n=r.toLowerCase().replace("//","-").normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/ /g,"-").replace("\xED","i").replace(/[^a-z0-9 -]/g,"").replace(/--/,"-"),a="";switch(i){case"1":case 1:a=t?"-1":"-red";break;case"2":case 2:a=t?"-2":"-yellow";break;case"3":case 3:a=t?"-3":"-blue";break}return`${n}${a}`},Zt=(e,t)=>{let r=Ne(e,t),i=["Demi-Hero","Equipment","Weapon"].some(n=>e.includes(n));return!r&&i},Ne=(e,t)=>{let r=["Action","Attack Reaction","Block","Defense Reaction","Instant","Mentor","Resource"].some(n=>e.includes(n)),i=!t||!t.includes("Ephemeral");return r&&i},Mi=(e,t)=>{let r=Zt(e,t),i=Ne(e,t);return r||i},Fi=e=>{var t,r;return((t=e.keywords)==null?void 0:t.includes("Meld"))||((r=e.subtypes)==null?void 0:r.includes("Landmark"))||!1},He={wtr:"Welcome to Rathe",arc:"Arcane Rising",cru:"Crucible of War",mon:"Monarch",ele:"Tales of Aria",evr:"Everfest","1hp":"History Pack 1",hp1:"History Pack 1",upr:"Uprising",dyn:"Dynasty",out:"Outsiders",dtd:"Dusk till Dawn",evo:"Bright Lights",hvy:"Heavy Hitters",mst:"Part the Mistveil",ros:"Rosetta"},qt=vi(yi({},He),{ako:"Armory Deck: Kayo",asb:"Armory Deck: Boltyn",aaz:"Armory Deck: Azalea",ara:"Arakni Blitz Deck",azl:"Azalea Blitz Deck",ben:"Benji Blitz Deck",bet:"Betsy Blitz Deck",bol:"Boltyn Blitz Deck",bri:"Briar Blitz Deck",bvo:"Bravo Blitz Deck",chn:"Chane Blitz Deck",dro:"Dromai Blitz Deck",eng:"Enigma Blitz Deck",fai:"Fai Blitz Deck",kat:"Katsu Blitz Deck",ksi:"Kassai Blitz Deck",kyo:"Kayo Blitz Deck",lev:"Levia Blitz Deck",lxi:"Lexi Blitz Deck",nuu:"Nuu Blitz Deck",old:"Oldhim Blitz Deck",ola:"Olympia Blitz Deck",psm:"Prism Blitz Deck",rip:"Riptide Blitz Deck",rnr:"Rhinar Blitz Deck",uzu:"Uzuri Blitz Deck",vic:"Victor Blitz Deck",zen:"Zen Blitz Deck",aur:"1st Strike: Aurora",ter:"1st Strike: Terra",dvr:"Classic Battles: Rhinar vs Dorinthea",rvd:"Classic Battles: Rhinar vs Dorinthea",ira:"Ira Welcome Deck",tcc:"Round the Table",tea:"Dorinthea Hero Deck",ksu:"Katsu Hero Deck",rnr2:"Rhinar Hero Deck",fab:"Promos",her:"Promos",jdg:"Promos",lgs:"Promos",lss:"Promos",oxo:"Promos",xxx:"Promos",win:"Promos"}),ze={};for(let[e,t]of Object.entries(qt)){let r=ze[t];r?r.push(e):ze[t]=[e]}var Si=ze,Ti={"Rhinar Blitz Deck":"-Blitz"},xi={MST158_V3:"-V3",ROS162_V2:"-V2"},Bi=e=>{var t,r;let i=Ti[e.set]||"",n=`${e.identifier}${i}`,a=e.edition?`-${e.edition}`:"",l=e.foiling?`-${e.foiling}`:"",o=e.treatment?`-${e.treatment}`:"",c=(t=e.image)!=null&&t.toLowerCase().includes("back")?"-Back":"",u=xi[((r=e.image)==null?void 0:r.toUpperCase())||""]||"";return`${n}${a}${l}${o}${c}${u}`},wi=Object.keys(He).filter(e=>!e.toLowerCase().includes("hp")).reverse().map(e=>e.toUpperCase()),Li={"command-and-conquer-red":{print:"DYN000-Cold"},"cracked-bauble-yellow":{print:"LGS083-Cold"},"fate-foreseen-red":{print:"FAB024-Rainbow"},"pitfall-trap-yellow":{print:"LGS151-Rainbow"},quicken:{print:"EVO250"},"ravenous-rabble-red":{print:"FAB190-Rainbow-Extended Art"},"rockslide-trap-blue":{print:"LGS152-Rainbow"},"sigil-of-solace-red":{print:"FAB178-Rainbow-Extended Art"},"spectral-shield":{print:"MST158-Alternate Art-V3"},"tripwire-trap-red":{print:"LGS150-Rainbow"},"viserai-rune-blood":{print:"HER011-Cold"}},Pi=(e,t)=>{let{cardIdentifier:r}=e,i=Object.entries(Li).find(([n])=>n===r);if(i){let[,{print:n}]=i;return t.find(a=>a.print===n)||t[0]}else{let n,a,l,o,c,u,d,f,h,m,y,p,v,g,F,B,b,x;for(let k of t){let{edition:T,foiling:L,identifier:P,image:H,treatment:R}=k,E=P.toLowerCase().includes("win");if(H&&!E){if(n||(n=k),R==="Alternate Art")a=k;else if(R==="Alternate Border")l=k;else if(R==="Alternate Text")o=k;else if(R==="Extended Art")d=k,L==="Cold"&&(c=k),L||(h=k),T==="Promo"&&(m=k);else if(R==="Full Art"){f=k,L==="Cold"&&(u=k);break}H&&H.includes("_V2")&&(y=k),T==="Alpha"?p=k:T==="First"?v=k:T==="Promo"?g=k:T==="Unlimited"&&(F=k),L==="Cold"?(B=k,T==="Promo"&&(x=k)):L==="Gold"&&(b=k)}}return u||f||c||m||h||d||l||a||o||y||x||p||v||g||F||b||B||n}},Di={"command-and-conquer-red":{print:"ARC159-Unlimited"},"pitfall-trap-yellow":{print:"LGS151-Rainbow"},"rockslide-trap-blue":{print:"LGS152-Rainbow"},"spectral-shield":{print:"MST158"},"tripwire-trap-red":{print:"LGS150-Rainbow"}},Ri=(e,t)=>{let{cardIdentifier:r}=e,i=Object.entries(Di).find(([n])=>n===r);if(i){let[,{print:n}]=i;return t.find(a=>a.print===n)||t[0]}else{let n,a;for(let l of t){let{edition:o,image:c,treatment:u}=l;if(c&&(n||(n=l),!a&&o!=="Promo"&&(a=l)),n&&a)break}return a||n||t[0]}}});var yr=Lt((To,mr)=>{"use strict";function er(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function ae(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?er(Object(r),!0).forEach(function(i){We(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):er(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function Ge(e){"@babel/helpers - typeof";return Ge=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ge(e)}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tr(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function z(e,t,r){return t&&tr(e.prototype,t),r&&tr(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function We(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Z(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&je(e,t)}function ve(e){return ve=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},ve(e)}function je(e,t){return je=Object.setPrototypeOf||function(i,n){return i.__proto__=n,i},je(e,t)}function Ii(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function Ei(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _i(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ei(e)}function q(e){var t=Ii();return function(){var i=ve(e),n;if(t){var a=ve(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return _i(this,n)}}function ie(e){return Oi(e)||zi(e)||Ni(e)||Hi()}function Oi(e){if(Array.isArray(e))return Ke(e)}function zi(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ni(e,t){if(e){if(typeof e=="string")return Ke(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ke(e,t)}}function Ke(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function Hi(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q(e){return Array.isArray?Array.isArray(e):cr(e)==="[object Array]"}var $i=1/0;function Gi(e){if(typeof e=="string")return e;var t=e+"";return t=="0"&&1/e==-$i?"-0":t}function Wi(e){return e==null?"":Gi(e)}function K(e){return typeof e=="string"}function sr(e){return typeof e=="number"}function ji(e){return e===!0||e===!1||Ki(e)&&cr(e)=="[object Boolean]"}function lr(e){return Ge(e)==="object"}function Ki(e){return lr(e)&&e!==null}function N(e){return e!=null}function $e(e){return!e.trim().length}function cr(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var Ui="Incorrect 'index' type",Yi=function(t){return"Invalid value for key ".concat(t)},Vi=function(t){return"Pattern length exceeds max of ".concat(t,".")},Qi=function(t){return"Missing ".concat(t," property in key")},Ji=function(t){return"Property 'weight' in key '".concat(t,"' must be a positive integer")},rr=Object.prototype.hasOwnProperty,Zi=function(){function e(t){var r=this;O(this,e),this._keys=[],this._keyMap={};var i=0;t.forEach(function(n){var a=ur(n);i+=a.weight,r._keys.push(a),r._keyMap[a.id]=a,i+=a.weight}),this._keys.forEach(function(n){n.weight/=i})}return z(e,[{key:"get",value:function(r){return this._keyMap[r]}},{key:"keys",value:function(){return this._keys}},{key:"toJSON",value:function(){return JSON.stringify(this._keys)}}]),e}();function ur(e){var t=null,r=null,i=null,n=1,a=null;if(K(e)||Q(e))i=e,t=ir(e),r=Ue(e);else{if(!rr.call(e,"name"))throw new Error(Qi("name"));var l=e.name;if(i=l,rr.call(e,"weight")&&(n=e.weight,n<=0))throw new Error(Ji(l));t=ir(l),r=Ue(l),a=e.getFn}return{path:t,id:r,weight:n,src:i,getFn:a}}function ir(e){return Q(e)?e:e.split(".")}function Ue(e){return Q(e)?e.join("."):e}function qi(e,t){var r=[],i=!1,n=function a(l,o,c){if(N(l))if(!o[c])r.push(l);else{var u=o[c],d=l[u];if(!N(d))return;if(c===o.length-1&&(K(d)||sr(d)||ji(d)))r.push(Wi(d));else if(Q(d)){i=!0;for(var f=0,h=d.length;f<h;f+=1)a(d[f],o,c+1)}else o.length&&a(d,o,c+1)}};return n(e,K(t)?t.split("."):t,0),i?r:r[0]}var Xi={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},en={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:function(t,r){return t.score===r.score?t.idx<r.idx?-1:1:t.score<r.score?-1:1}},tn={location:0,threshold:.6,distance:100},rn={useExtendedSearch:!1,getFn:qi,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},S=ae(ae(ae(ae({},en),Xi),tn),rn),nn=/[^ ]+/g;function an(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:3,r=new Map,i=Math.pow(10,t);return{get:function(a){var l=a.match(nn).length;if(r.has(l))return r.get(l);var o=1/Math.pow(l,.5*e),c=parseFloat(Math.round(o*i)/i);return r.set(l,c),c},clear:function(){r.clear()}}}var Ze=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.getFn,i=r===void 0?S.getFn:r,n=t.fieldNormWeight,a=n===void 0?S.fieldNormWeight:n;O(this,e),this.norm=an(a,3),this.getFn=i,this.isCreated=!1,this.setIndexRecords()}return z(e,[{key:"setSources",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.docs=r}},{key:"setIndexRecords",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.records=r}},{key:"setKeys",value:function(){var r=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.keys=i,this._keysMap={},i.forEach(function(n,a){r._keysMap[n.id]=a})}},{key:"create",value:function(){var r=this;this.isCreated||!this.docs.length||(this.isCreated=!0,K(this.docs[0])?this.docs.forEach(function(i,n){r._addString(i,n)}):this.docs.forEach(function(i,n){r._addObject(i,n)}),this.norm.clear())}},{key:"add",value:function(r){var i=this.size();K(r)?this._addString(r,i):this._addObject(r,i)}},{key:"removeAt",value:function(r){this.records.splice(r,1);for(var i=r,n=this.size();i<n;i+=1)this.records[i].i-=1}},{key:"getValueForItemAtKeyId",value:function(r,i){return r[this._keysMap[i]]}},{key:"size",value:function(){return this.records.length}},{key:"_addString",value:function(r,i){if(!(!N(r)||$e(r))){var n={v:r,i,n:this.norm.get(r)};this.records.push(n)}}},{key:"_addObject",value:function(r,i){var n=this,a={i,$:{}};this.keys.forEach(function(l,o){var c=l.getFn?l.getFn(r):n.getFn(r,l.path);if(N(c)){if(Q(c))(function(){for(var d=[],f=[{nestedArrIndex:-1,value:c}];f.length;){var h=f.pop(),m=h.nestedArrIndex,y=h.value;if(N(y))if(K(y)&&!$e(y)){var p={v:y,i:m,n:n.norm.get(y)};d.push(p)}else Q(y)&&y.forEach(function(v,g){f.push({nestedArrIndex:g,value:v})})}a.$[o]=d})();else if(K(c)&&!$e(c)){var u={v:c,n:n.norm.get(c)};a.$[o]=u}}}),this.records.push(a)}},{key:"toJSON",value:function(){return{keys:this.keys,records:this.records}}}]),e}();function dr(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.getFn,n=i===void 0?S.getFn:i,a=r.fieldNormWeight,l=a===void 0?S.fieldNormWeight:a,o=new Ze({getFn:n,fieldNormWeight:l});return o.setKeys(e.map(ur)),o.setSources(t),o.create(),o}function on(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.getFn,i=r===void 0?S.getFn:r,n=t.fieldNormWeight,a=n===void 0?S.fieldNormWeight:n,l=e.keys,o=e.records,c=new Ze({getFn:i,fieldNormWeight:a});return c.setKeys(l),c.setIndexRecords(o),c}function ye(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.errors,i=r===void 0?0:r,n=t.currentLocation,a=n===void 0?0:n,l=t.expectedLocation,o=l===void 0?0:l,c=t.distance,u=c===void 0?S.distance:c,d=t.ignoreLocation,f=d===void 0?S.ignoreLocation:d,h=i/e.length;if(f)return h;var m=Math.abs(o-a);return u?h+m/u:m?1:h}function sn(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S.minMatchCharLength,r=[],i=-1,n=-1,a=0,l=e.length;a<l;a+=1){var o=e[a];o&&i===-1?i=a:!o&&i!==-1&&(n=a-1,n-i+1>=t&&r.push([i,n]),i=-1)}return e[a-1]&&a-i>=t&&r.push([i,a-1]),r}var re=32;function ln(e,t,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},n=i.location,a=n===void 0?S.location:n,l=i.distance,o=l===void 0?S.distance:l,c=i.threshold,u=c===void 0?S.threshold:c,d=i.findAllMatches,f=d===void 0?S.findAllMatches:d,h=i.minMatchCharLength,m=h===void 0?S.minMatchCharLength:h,y=i.includeMatches,p=y===void 0?S.includeMatches:y,v=i.ignoreLocation,g=v===void 0?S.ignoreLocation:v;if(t.length>re)throw new Error(Vi(re));for(var F=t.length,B=e.length,b=Math.max(0,Math.min(a,B)),x=u,k=b,T=m>1||p,L=T?Array(B):[],P;(P=e.indexOf(t,k))>-1;){var H=ye(t,{currentLocation:P,expectedLocation:b,distance:o,ignoreLocation:g});if(x=Math.min(H,x),k=P+F,T)for(var R=0;R<F;)L[P+R]=1,R+=1}k=-1;for(var E=[],_=1,$=F+B,Ee=1<<F-1,te=0;te<F;te+=1){for(var fe=0,J=$;fe<J;){var ti=ye(t,{errors:te,currentLocation:b+J,expectedLocation:b,distance:o,ignoreLocation:g});ti<=x?fe=J:$=J,J=Math.floor(($-fe)/2+fe)}$=J;var Ft=Math.max(1,b-J+1),_e=f?B:Math.min(b+J,B)+F,ne=Array(_e+2);ne[_e+1]=(1<<te)-1;for(var G=_e;G>=Ft;G-=1){var ge=G-1,St=r[e.charAt(ge)];if(T&&(L[ge]=+!!St),ne[G]=(ne[G+1]<<1|1)&St,te&&(ne[G]|=(E[G+1]|E[G])<<1|1|E[G+1]),ne[G]&Ee&&(_=ye(t,{errors:te,currentLocation:ge,expectedLocation:b,distance:o,ignoreLocation:g}),_<=x)){if(x=_,k=ge,k<=b)break;Ft=Math.max(1,2*b-k)}}var ri=ye(t,{errors:te+1,currentLocation:b,expectedLocation:b,distance:o,ignoreLocation:g});if(ri>x)break;E=ne}var Oe={isMatch:k>=0,score:Math.max(.001,_)};if(T){var Tt=sn(L,m);Tt.length?p&&(Oe.indices=Tt):Oe.isMatch=!1}return Oe}function cn(e){for(var t={},r=0,i=e.length;r<i;r+=1){var n=e.charAt(r);t[n]=(t[n]||0)|1<<i-r-1}return t}var pr=function(){function e(t){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=i.location,a=n===void 0?S.location:n,l=i.threshold,o=l===void 0?S.threshold:l,c=i.distance,u=c===void 0?S.distance:c,d=i.includeMatches,f=d===void 0?S.includeMatches:d,h=i.findAllMatches,m=h===void 0?S.findAllMatches:h,y=i.minMatchCharLength,p=y===void 0?S.minMatchCharLength:y,v=i.isCaseSensitive,g=v===void 0?S.isCaseSensitive:v,F=i.ignoreLocation,B=F===void 0?S.ignoreLocation:F;if(O(this,e),this.options={location:a,threshold:o,distance:u,includeMatches:f,findAllMatches:m,minMatchCharLength:p,isCaseSensitive:g,ignoreLocation:B},this.pattern=g?t:t.toLowerCase(),this.chunks=[],!!this.pattern.length){var b=function(R,E){r.chunks.push({pattern:R,alphabet:cn(R),startIndex:E})},x=this.pattern.length;if(x>re){for(var k=0,T=x%re,L=x-T;k<L;)b(this.pattern.substr(k,re),k),k+=re;if(T){var P=x-re;b(this.pattern.substr(P),P)}}else b(this.pattern,0)}}return z(e,[{key:"searchIn",value:function(r){var i=this.options,n=i.isCaseSensitive,a=i.includeMatches;if(n||(r=r.toLowerCase()),this.pattern===r){var l={isMatch:!0,score:0};return a&&(l.indices=[[0,r.length-1]]),l}var o=this.options,c=o.location,u=o.distance,d=o.threshold,f=o.findAllMatches,h=o.minMatchCharLength,m=o.ignoreLocation,y=[],p=0,v=!1;this.chunks.forEach(function(F){var B=F.pattern,b=F.alphabet,x=F.startIndex,k=ln(r,B,b,{location:c+x,distance:u,threshold:d,findAllMatches:f,minMatchCharLength:h,includeMatches:a,ignoreLocation:m}),T=k.isMatch,L=k.score,P=k.indices;T&&(v=!0),p+=L,T&&P&&(y=[].concat(ie(y),ie(P)))});var g={isMatch:v,score:v?p/this.chunks.length:1};return v&&a&&(g.indices=y),g}}]),e}(),X=function(){function e(t){O(this,e),this.pattern=t}return z(e,[{key:"search",value:function(){}}],[{key:"isMultiMatch",value:function(r){return nr(r,this.multiRegex)}},{key:"isSingleMatch",value:function(r){return nr(r,this.singleRegex)}}]),e}();function nr(e,t){var r=e.match(t);return r?r[1]:null}var un=function(e){Z(r,e);var t=q(r);function r(i){return O(this,r),t.call(this,i)}return z(r,[{key:"search",value:function(n){var a=n===this.pattern;return{isMatch:a,score:a?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"exact"}},{key:"multiRegex",get:function(){return/^="(.*)"$/}},{key:"singleRegex",get:function(){return/^=(.*)$/}}]),r}(X),dn=function(e){Z(r,e);var t=q(r);function r(i){return O(this,r),t.call(this,i)}return z(r,[{key:"search",value:function(n){var a=n.indexOf(this.pattern),l=a===-1;return{isMatch:l,score:l?0:1,indices:[0,n.length-1]}}}],[{key:"type",get:function(){return"inverse-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"$/}},{key:"singleRegex",get:function(){return/^!(.*)$/}}]),r}(X),pn=function(e){Z(r,e);var t=q(r);function r(i){return O(this,r),t.call(this,i)}return z(r,[{key:"search",value:function(n){var a=n.startsWith(this.pattern);return{isMatch:a,score:a?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"prefix-exact"}},{key:"multiRegex",get:function(){return/^\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^\^(.*)$/}}]),r}(X),hn=function(e){Z(r,e);var t=q(r);function r(i){return O(this,r),t.call(this,i)}return z(r,[{key:"search",value:function(n){var a=!n.startsWith(this.pattern);return{isMatch:a,score:a?0:1,indices:[0,n.length-1]}}}],[{key:"type",get:function(){return"inverse-prefix-exact"}},{key:"multiRegex",get:function(){return/^!\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^!\^(.*)$/}}]),r}(X),fn=function(e){Z(r,e);var t=q(r);function r(i){return O(this,r),t.call(this,i)}return z(r,[{key:"search",value:function(n){var a=n.endsWith(this.pattern);return{isMatch:a,score:a?0:1,indices:[n.length-this.pattern.length,n.length-1]}}}],[{key:"type",get:function(){return"suffix-exact"}},{key:"multiRegex",get:function(){return/^"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^(.*)\$$/}}]),r}(X),gn=function(e){Z(r,e);var t=q(r);function r(i){return O(this,r),t.call(this,i)}return z(r,[{key:"search",value:function(n){var a=!n.endsWith(this.pattern);return{isMatch:a,score:a?0:1,indices:[0,n.length-1]}}}],[{key:"type",get:function(){return"inverse-suffix-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^!(.*)\$$/}}]),r}(X),hr=function(e){Z(r,e);var t=q(r);function r(i){var n,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=a.location,o=l===void 0?S.location:l,c=a.threshold,u=c===void 0?S.threshold:c,d=a.distance,f=d===void 0?S.distance:d,h=a.includeMatches,m=h===void 0?S.includeMatches:h,y=a.findAllMatches,p=y===void 0?S.findAllMatches:y,v=a.minMatchCharLength,g=v===void 0?S.minMatchCharLength:v,F=a.isCaseSensitive,B=F===void 0?S.isCaseSensitive:F,b=a.ignoreLocation,x=b===void 0?S.ignoreLocation:b;return O(this,r),n=t.call(this,i),n._bitapSearch=new pr(i,{location:o,threshold:u,distance:f,includeMatches:m,findAllMatches:p,minMatchCharLength:g,isCaseSensitive:B,ignoreLocation:x}),n}return z(r,[{key:"search",value:function(n){return this._bitapSearch.searchIn(n)}}],[{key:"type",get:function(){return"fuzzy"}},{key:"multiRegex",get:function(){return/^"(.*)"$/}},{key:"singleRegex",get:function(){return/^(.*)$/}}]),r}(X),fr=function(e){Z(r,e);var t=q(r);function r(i){return O(this,r),t.call(this,i)}return z(r,[{key:"search",value:function(n){for(var a=0,l,o=[],c=this.pattern.length;(l=n.indexOf(this.pattern,a))>-1;)a=l+c,o.push([l,a-1]);var u=!!o.length;return{isMatch:u,score:u?0:1,indices:o}}}],[{key:"type",get:function(){return"include"}},{key:"multiRegex",get:function(){return/^'"(.*)"$/}},{key:"singleRegex",get:function(){return/^'(.*)$/}}]),r}(X),Ye=[un,fr,pn,hn,gn,fn,dn,hr],ar=Ye.length,mn=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,yn="|";function vn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.split(yn).map(function(r){for(var i=r.trim().split(mn).filter(function(y){return y&&!!y.trim()}),n=[],a=0,l=i.length;a<l;a+=1){for(var o=i[a],c=!1,u=-1;!c&&++u<ar;){var d=Ye[u],f=d.isMultiMatch(o);f&&(n.push(new d(f,t)),c=!0)}if(!c)for(u=-1;++u<ar;){var h=Ye[u],m=h.isSingleMatch(o);if(m){n.push(new h(m,t));break}}}return n})}var bn=new Set([hr.type,fr.type]),An=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.isCaseSensitive,n=i===void 0?S.isCaseSensitive:i,a=r.includeMatches,l=a===void 0?S.includeMatches:a,o=r.minMatchCharLength,c=o===void 0?S.minMatchCharLength:o,u=r.ignoreLocation,d=u===void 0?S.ignoreLocation:u,f=r.findAllMatches,h=f===void 0?S.findAllMatches:f,m=r.location,y=m===void 0?S.location:m,p=r.threshold,v=p===void 0?S.threshold:p,g=r.distance,F=g===void 0?S.distance:g;O(this,e),this.query=null,this.options={isCaseSensitive:n,includeMatches:l,minMatchCharLength:c,findAllMatches:h,ignoreLocation:d,location:y,threshold:v,distance:F},this.pattern=n?t:t.toLowerCase(),this.query=vn(this.pattern,this.options)}return z(e,[{key:"searchIn",value:function(r){var i=this.query;if(!i)return{isMatch:!1,score:1};var n=this.options,a=n.includeMatches,l=n.isCaseSensitive;r=l?r:r.toLowerCase();for(var o=0,c=[],u=0,d=0,f=i.length;d<f;d+=1){var h=i[d];c.length=0,o=0;for(var m=0,y=h.length;m<y;m+=1){var p=h[m],v=p.search(r),g=v.isMatch,F=v.indices,B=v.score;if(g){if(o+=1,u+=B,a){var b=p.constructor.type;bn.has(b)?c=[].concat(ie(c),ie(F)):c.push(F)}}else{u=0,o=0,c.length=0;break}}if(o){var x={isMatch:!0,score:u/o};return a&&(x.indices=c),x}}return{isMatch:!1,score:1}}}],[{key:"condition",value:function(r,i){return i.useExtendedSearch}}]),e}(),be=[];function Cn(){be.push.apply(be,arguments)}function Ve(e,t){for(var r=0,i=be.length;r<i;r+=1){var n=be[r];if(n.condition(e,t))return new n(e,t)}return new pr(e,t)}var Ae={AND:"$and",OR:"$or"},Qe={PATH:"$path",PATTERN:"$val"},Je=function(t){return!!(t[Ae.AND]||t[Ae.OR])},kn=function(t){return!!t[Qe.PATH]},Mn=function(t){return!Q(t)&&lr(t)&&!Je(t)},or=function(t){return We({},Ae.AND,Object.keys(t).map(function(r){return We({},r,t[r])}))};function gr(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.auto,n=i===void 0?!0:i,a=function l(o){var c=Object.keys(o),u=kn(o);if(!u&&c.length>1&&!Je(o))return l(or(o));if(Mn(o)){var d=u?o[Qe.PATH]:c[0],f=u?o[Qe.PATTERN]:o[d];if(!K(f))throw new Error(Yi(d));var h={keyId:Ue(d),pattern:f};return n&&(h.searcher=Ve(f,t)),h}var m={children:[],operator:c[0]};return c.forEach(function(y){var p=o[y];Q(p)&&p.forEach(function(v){m.children.push(l(v))})}),m};return Je(e)||(e=or(e)),a(e)}function Fn(e,t){var r=t.ignoreFieldNorm,i=r===void 0?S.ignoreFieldNorm:r;e.forEach(function(n){var a=1;n.matches.forEach(function(l){var o=l.key,c=l.norm,u=l.score,d=o?o.weight:null;a*=Math.pow(u===0&&d?Number.EPSILON:u,(d||1)*(i?1:c))}),n.score=a})}function Sn(e,t){var r=e.matches;t.matches=[],N(r)&&r.forEach(function(i){if(!(!N(i.indices)||!i.indices.length)){var n=i.indices,a=i.value,l={indices:n,value:a};i.key&&(l.key=i.key.src),i.idx>-1&&(l.refIndex=i.idx),t.matches.push(l)}})}function Tn(e,t){t.score=e.score}function xn(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.includeMatches,n=i===void 0?S.includeMatches:i,a=r.includeScore,l=a===void 0?S.includeScore:a,o=[];return n&&o.push(Sn),l&&o.push(Tn),e.map(function(c){var u=c.idx,d={item:t[u],refIndex:u};return o.length&&o.forEach(function(f){f(c,d)}),d})}var oe=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;O(this,e),this.options=ae(ae({},S),r),this.options.useExtendedSearch,this._keyStore=new Zi(this.options.keys),this.setCollection(t,i)}return z(e,[{key:"setCollection",value:function(r,i){if(this._docs=r,i&&!(i instanceof Ze))throw new Error(Ui);this._myIndex=i||dr(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}},{key:"add",value:function(r){N(r)&&(this._docs.push(r),this._myIndex.add(r))}},{key:"remove",value:function(){for(var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){return!1},i=[],n=0,a=this._docs.length;n<a;n+=1){var l=this._docs[n];r(l,n)&&(this.removeAt(n),n-=1,a-=1,i.push(l))}return i}},{key:"removeAt",value:function(r){this._docs.splice(r,1),this._myIndex.removeAt(r)}},{key:"getIndex",value:function(){return this._myIndex}},{key:"search",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=i.limit,a=n===void 0?-1:n,l=this.options,o=l.includeMatches,c=l.includeScore,u=l.shouldSort,d=l.sortFn,f=l.ignoreFieldNorm,h=K(r)?K(this._docs[0])?this._searchStringList(r):this._searchObjectList(r):this._searchLogical(r);return Fn(h,{ignoreFieldNorm:f}),u&&h.sort(d),sr(a)&&a>-1&&(h=h.slice(0,a)),xn(h,this._docs,{includeMatches:o,includeScore:c})}},{key:"_searchStringList",value:function(r){var i=Ve(r,this.options),n=this._myIndex.records,a=[];return n.forEach(function(l){var o=l.v,c=l.i,u=l.n;if(N(o)){var d=i.searchIn(o),f=d.isMatch,h=d.score,m=d.indices;f&&a.push({item:o,idx:c,matches:[{score:h,value:o,norm:u,indices:m}]})}}),a}},{key:"_searchLogical",value:function(r){var i=this,n=gr(r,this.options),a=function u(d,f,h){if(!d.children){var m=d.keyId,y=d.searcher,p=i._findMatches({key:i._keyStore.get(m),value:i._myIndex.getValueForItemAtKeyId(f,m),searcher:y});return p&&p.length?[{idx:h,item:f,matches:p}]:[]}for(var v=[],g=0,F=d.children.length;g<F;g+=1){var B=d.children[g],b=u(B,f,h);if(b.length)v.push.apply(v,ie(b));else if(d.operator===Ae.AND)return[]}return v},l=this._myIndex.records,o={},c=[];return l.forEach(function(u){var d=u.$,f=u.i;if(N(d)){var h=a(n,d,f);h.length&&(o[f]||(o[f]={idx:f,item:d,matches:[]},c.push(o[f])),h.forEach(function(m){var y,p=m.matches;(y=o[f].matches).push.apply(y,ie(p))}))}}),c}},{key:"_searchObjectList",value:function(r){var i=this,n=Ve(r,this.options),a=this._myIndex,l=a.keys,o=a.records,c=[];return o.forEach(function(u){var d=u.$,f=u.i;if(N(d)){var h=[];l.forEach(function(m,y){h.push.apply(h,ie(i._findMatches({key:m,value:d[y],searcher:n})))}),h.length&&c.push({idx:f,item:d,matches:h})}}),c}},{key:"_findMatches",value:function(r){var i=r.key,n=r.value,a=r.searcher;if(!N(n))return[];var l=[];if(Q(n))n.forEach(function(m){var y=m.v,p=m.i,v=m.n;if(N(y)){var g=a.searchIn(y),F=g.isMatch,B=g.score,b=g.indices;F&&l.push({score:B,key:i,value:y,idx:p,norm:v,indices:b})}});else{var o=n.v,c=n.n,u=a.searchIn(o),d=u.isMatch,f=u.score,h=u.indices;d&&l.push({score:f,key:i,value:o,norm:c,indices:h})}return l}}]),e}();oe.version="6.6.2";oe.createIndex=dr;oe.parseIndex=on;oe.config=S;oe.parseQuery=gr;Cn(An);var Bn=oe;mr.exports=Bn});var Mo={};ui(Mo,{PUNCTUATION:()=>w,abbreviations:()=>et,availableExclusions:()=>Yr,availableModifiers:()=>Ur,clashBannedCards:()=>qe,clashLegalCards:()=>wn,clashSpecializationOverrides:()=>Xe,default:()=>Jr,filterCard:()=>Zr,filtersToCardPropertyMappings:()=>De,getAbbreviation:()=>ke,getAbbreviationByCard:()=>Ln,getCardByName:()=>mt,getCleanText:()=>Ct,getDeckFilters:()=>Ga,getExcludedMetaFilters:()=>st,getHeroBreakdown:()=>bo,getKeywordsAndAppliedFiltersFromText:()=>gt,getMetaFilters:()=>ot,getNormalizedText:()=>he,getRelatedCards:()=>Mt,getRelatedCardsByName:()=>Re,getTokensReferencedByCards:()=>ko,heroHasFilters:()=>Wa,multiWordShorthands:()=>ct,shorthands:()=>lt,singleWordShorthands:()=>ut});module.exports=di(Mo);var D=W(j()),yt=W(yr());var Ce=W(j()),qe=["Amulet of Ice","Ball Lightning","Belittle","Drone of Brutality","Duskblade","Rosetta Thorn","Stubby Hammerers"],wn=[],Xe=[{heroes:[Ce.Hero.Briar],cardIdentifiers:["rosetta-thorn"]},{heroes:[Ce.Hero.Emperor],cardIdentifiers:["command-and-conquer-red"]},{heroes:[Ce.Hero.Prism],cardIdentifiers:["figment-of-erudition-yellow","figment-of-judgment-yellow","figment-of-protection-yellow","figment-of-ravages-yellow","figment-of-rebirth-yellow","figment-of-tenacity-yellow","figment-of-triumph-yellow","figment-of-war-yellow"]}];var w=/[!"#$%&'’(),./:;<=>?@[\]^_`|~]/g;var M=W(j());var ke=e=>et.find(({abbreviations:t})=>t.find(r=>r.toLowerCase()===e)),Ln=e=>et.find(({card:t})=>t.toLowerCase()===e.name.toLowerCase()),et=[{abbreviations:["10k"],card:"10,000 Year Reunion"},{abbreviations:["3oak"],card:"Three of a Kind"},{abbreviations:["ALS"],card:"Arc Light Sentinel"},{abbreviations:["AoW"],card:"Art of War"},{abbreviations:["BBD"],card:"Barraging Beatdown"},{abbreviations:["BBS"],card:"Big Blue Sky"},{abbreviations:["Starvo"],card:"Bravo, Star of the Show"},{abbreviations:["BEB"],card:"Bull's Eye Bracers"},{abbreviations:["BLW"],card:"Be Like Water"},{abbreviations:["BoJ"],card:"Balance of Justice"},{abbreviations:["BOHH"],card:"Blood on Her Hands"},{abbreviations:["BRB"],card:"Bloodrush Bellow"},{abbreviations:["Breezies"],card:"Breeze Rider Boots"},{abbreviations:["BTA"],card:"Burn Them All"},{abbreviations:["Cake","\u{1F382}"],card:"Ninth Blade of the Blood Oath"},{abbreviations:["CLF"],card:"Channel Lake Frigid"},{abbreviations:["CMH"],card:"Channel Mount Heroic"},{abbreviations:["CnC","C&C"],card:"Command and Conquer"},{abbreviations:["CStrike","C-Strike","C Strike"],card:"Celestial Cataclysm"},{abbreviations:["Cat","Kitty"],card:"Crouching Tiger"},{abbreviations:["CoD"],card:"Crown of Dominion"},{abbreviations:["CoP"],card:"Crown of Providence"},{abbreviations:["CtW"],card:"Crush the Weak"},{abbreviations:["DD"],card:"Death Dealer"},{abbreviations:["DPot","D Pot"],card:"Potion of Deja Vu"},{abbreviations:["Dullcap"],card:"Arcanite Skullcap"},{abbreviations:["EBTT"],card:"Even Bigger Than That!"},{abbreviations:["NewNigma"],card:"Enigma, New Moon"},{abbreviations:["EPot","E Pot"],card:"Energy Potion"},{abbreviations:["EStrike","E-Strike","E Strike"],card:"Enlightened Strike"},{abbreviations:["FFS"],card:"Fyendal's Fighting Spirit"},{abbreviations:["FoN"],card:"Force of Nature"},{abbreviations:["Frosty","\u{1F976}","\u{1F9CA}","\u2744\uFE0F"],card:"Frostbite"},{abbreviations:["Frosty Hammer"],card:"Winter's Wail"},{abbreviations:["GnT"],card:"Give and Take"},{abbreviations:["HMH"],card:"Hope Merchant's Hood"},{abbreviations:["HoI"],card:"Heart of Ice"},{abbreviations:["KKBB"],card:"Knick Knack Bric-a-brac"},{abbreviations:["BStrike"],card:"Levels of Enlightenment"},{abbreviations:["LAG","Twominaris"],card:"Luminaris, Angel's Glow"},{abbreviations:["LCF","Newminaris"],card:"Luminaris, Celestial Fury"},{abbreviations:["LDE"],card:"Last Ditch Effort"},{abbreviations:["LFaL","L4aL"],card:"Life for a Life"},{abbreviations:["LiT"],card:"Lost in Thought"},{abbreviations:["LNW"],card:"Leave No Witnesses"},{abbreviations:["LoW"],card:"Lord of Wind"},{abbreviations:["LtC"],card:"Lead the Charge"},{abbreviations:["MaxV"],card:"Maximum Velocity"},{abbreviations:["MMB"],card:"Mage Master Boots"},{abbreviations:["MnG"],card:"Meat and Greet"},{abbreviations:["MoM"],card:"Mask of Momentum"},{abbreviations:["Pajamas","PJs"],card:"Alluvion Constellas"},{abbreviations:["Ponder Run"],card:"Premeditate"},{abbreviations:["PF","\u{1F525}"],card:"Phoenix Flame"},{abbreviations:["PoM"],card:"Peace of Mind"},{abbreviations:["Pumpkin"],card:"Jack-o'-lantern"},{abbreviations:["Qi Unbound"],card:"Qi Unleashed"},{abbreviations:["RitL"],card:"Red in the Ledger"},{abbreviations:["Cats","Ghost cat","Ghost cats"],card:"Restless Coalescence"},{abbreviations:["SFaF","S4aS"],card:"Scar for a Scar"},{abbreviations:["SWOMB"],card:"Shifting Winds of the Mystic Beast"},{abbreviations:["SWK"],card:"Spinning Wheel Kick"},{abbreviations:["SSGB"],card:"Sandscour Greatbow"},{abbreviations:["SSP"],card:"Sand Sketched Plan"},{abbreviations:["SFTL"],card:"Swing Fist, Think Later"},{abbreviations:["Thanos","Infinity Gauntlet"],card:"Polarity Reversal Script"},{abbreviations:["TAYG"],card:"That All You Got?"},{abbreviations:["ToS"],card:"Test of Strength"},{abbreviations:["TROM"],card:"This Round's on Me"},{abbreviations:["TTT"],card:"Take the Tempo"},{abbreviations:["Ultron"],card:"Teklovossen, the Mechropotent"},{abbreviations:["Pox Malone","Post Malone"],card:"Virulent Touch"},{abbreviations:["Cast Homes"],card:"Visit Goldmane Estate"},{abbreviations:["ZTS"],card:"Zero to Sixty"}];var s=W(j());var xe=Array.from(Array(50).keys()).map(e=>`${e}`),A=(e,t=[])=>{let r=[...e,s.Class.Generic];return t.length>0&&r.push(s.Class.NotClassed),[{filterToPropertyMapping:{property:"classes",isArray:!0},values:r.map(i=>i.toLowerCase()),isOr:!0},Pn(t)]},C=(e,t=[])=>{let r=Object.values(s.Hero).filter(i=>i!==e&&!t.includes(i)).map(i=>i.toLowerCase());return[{filterToPropertyMapping:{property:"hero",isString:!0},values:r,excluded:!0,isOr:!0},{filterToPropertyMapping:{property:"specializations",isArray:!0},values:r,excluded:!0,isOr:!0}]},Pn=e=>{let t=Object.values(s.Talent).filter(r=>!e.includes(r)).map(r=>r.toLowerCase());return{filterToPropertyMapping:{property:"talents",isArray:!0},values:t,excluded:!0}},Be=[s.Talent.Draconic],Dn=[s.Talent.Elemental,s.Talent.Earth,s.Talent.Ice,s.Talent.Lightning],kr=[s.Talent.Elemental,s.Talent.Earth],Rn=[s.Talent.Elemental,s.Talent.Earth,s.Talent.Ice],In=[s.Talent.Elemental,s.Talent.Earth,s.Talent.Lightning],En=[s.Talent.Elemental,s.Talent.Ice],_n=[s.Talent.Elemental,s.Talent.Ice,s.Talent.Lightning],Mr=[s.Talent.Elemental,s.Talent.Lightning],it=[s.Talent.Light],nt=[s.Talent.Mystic],at=[s.Talent.Shadow],On=[...A([s.Class.Assassin]),...C(s.Hero.Arakni)],zn=[...A([s.Class.Runeblade],Mr),...C(s.Hero.Aurora)],Nn=[...A([s.Class.Ranger]),...C(s.Hero.Azalea)],Hn=[...A([s.Class.Ninja]),...C(s.Hero.Benji)],$n=[...A([s.Class.Guardian]),...C(s.Hero.Betsy)],Gn=[...A([s.Class.Wizard]),...C(s.Hero.Blaze)],Wn=[...A([s.Class.Warrior],it),{filterToPropertyMapping:{property:"subtypes",isArray:!0,partialMatch:!0},values:["angel"],excluded:!0,isOr:!0},...C(s.Hero.Boltyn)],jn=[...A([s.Class.Guardian]),...C(s.Hero.Bravo)],Kn=[...A([s.Class.Guardian]),...C(s.Hero.Brevant)],Un=[...A([s.Class.Runeblade],In),...C(s.Hero.Briar)],Yn=[...A([s.Class.Adjudicator]),...C(s.Hero.Brutus)],Vn=[...A([s.Class.Runeblade],at),...C(s.Hero.Chane)],Qn=[...A([s.Class.Mechanologist]),...C(s.Hero.Dash)],tt=[...A([s.Class.Mechanologist]),...C(s.Hero.DataDoll)],vr=[...A([s.Class.Warrior]),...C(s.Hero.Dorinthea)],Jn=[...A([s.Class.Illusionist],Be),...C(s.Hero.Dromai,[s.Hero.Fai])],Zn=[...A([s.Class.Warrior,s.Class.Wizard],Be),{filterToPropertyMapping:{property:"pitch",isNumber:!0},values:[void 0,"0","2","3"],cardTypes:[s.Type.Action,s.Type.AttackReaction,s.Type.DefenseReaction,s.Type.Instant,s.Type.Mentor,s.Type.Resource],excluded:!0,isOr:!0},{filterToPropertyMapping:{property:"types",isArray:!0,partialMatch:!0},values:["hero","mentor"],excluded:!0,isOr:!0},...C(s.Hero.Emperor)],qn=[...A([s.Class.Illusionist],nt),...C(s.Hero.Enigma)],Xn=[...A([s.Class.Ninja],Be),...C(s.Hero.Fai,[s.Hero.Dromai])],ea=[...A([s.Class.Runeblade],kr),...C(s.Hero.Florian)],br=[...A([s.Class.Merchant]),...C(s.Hero.GenisWotchuneed)],ta=[...A([s.Class.Ninja]),...C(s.Hero.Ira)],Ar=[...A([s.Class.Wizard],En),...C(s.Hero.Iyslander)],ra=[...A([s.Class.Wizard]),...C(s.Hero.Kano)],ia=[...A([s.Class.Warrior]),...C(s.Hero.Kassai)],na=[...A([s.Class.Ninja]),...C(s.Hero.Katsu)],aa=[...A([s.Class.Merchant]),...C(s.Hero.Kavdaen)],oa=[...A([s.Class.Brute]),...C(s.Hero.Kayo)],sa=[...A([s.Class.Brute],at),...C(s.Hero.Levia)],la=[...A([s.Class.Ranger],_n),...C(s.Hero.Lexi)],ca=[...A([s.Class.Mechanologist]),...C(s.Hero.Maxx)],ua=[...A([s.Class.Bard]),...C(s.Hero.Melody)],da=[...A([s.Class.Assassin],nt),...C(s.Hero.Nuu)],pa=[...A([s.Class.Guardian],Rn),...C(s.Hero.Oldhim)],ha=[...A([s.Class.Warrior]),...C(s.Hero.Olympia)],fa=[...A([s.Class.Wizard],Mr),...C(s.Hero.Oscilio)],ga=[...A([s.Class.Illusionist],it),...C(s.Hero.Prism)],ma=[...A([s.Class.Brute]),...C(s.Hero.Rhinar)],ya=[...A([s.Class.Ranger]),...C(s.Hero.Riptide)],va=[...A([s.Class.Merchant]),...C(s.Hero.Ruudi)],ba=[{filterToPropertyMapping:{property:"classes",isArray:!0},values:["generic"],isOr:!0}],Aa=[...A([s.Class.Merchant]),...C(s.Hero.Squizzy)],Ca=[...A([s.Class.Guardian],Dn),...C(s.Hero.Bravo)],ka=[...A([s.Class.Adjudicator],Be),...C(s.Hero.Taipanis)],Ma=[...A([]),...C(s.Hero.Taylor)],Fa=[...A([s.Class.Mechanologist]),...C(s.Hero.Teklovossen)],Sa=[...A([s.Class.Guardian],[s.Talent.Elemental,s.Talent.Earth]),...C(s.Hero.Terra)],Ta=[...A([s.Class.Adjudicator],it),...C(s.Hero.Theryon)],xa=[...A([s.Class.Assassin]),...C(s.Hero.Uzuri)],Ba=[...A([s.Class.Guardian]),...C(s.Hero.Valda)],wa=[...A([s.Class.Wizard],kr),...C(s.Hero.Verdance)],La=[...A([s.Class.Guardian]),...C(s.Hero.Victor)],Pa=[...A([s.Class.Runeblade]),...C(s.Hero.Viserai)],Da=[...A([s.Class.Runeblade],at),...C(s.Hero.Vynnset)],Ra=[...A([s.Class.Bard]),...C(s.Hero.Yorick)],Ia=[...A([s.Class.Guardian]),...C(s.Hero.Yoji)],Ea=[...A([s.Class.Ninja],nt),...C(s.Hero.Zen)],_a=[{filterToPropertyMapping:{property:"bannedFormats",isArray:!0},values:["blitz"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],Cr=[{filterToPropertyMapping:{property:"bannedFormats",isArray:!0},values:["blitz (living legend)"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],Oa=[{filterToPropertyMapping:{property:"rarities",isArray:!0},values:["super rare","majestic","legendary","fabled"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],Me=[{filterToPropertyMapping:{property:"bannedFormats",isArray:!0},values:["classic constructed"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"],excluded:!0}],se=[{filterToPropertyMapping:{property:"bannedFormats",isArray:!0},values:["classic constructed (living legend)"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"],excluded:!0}],za=[{filterToPropertyMapping:{property:"bannedFormats",isArray:!0},values:["commoner"],excluded:!0},{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],rt=[{filterToPropertyMapping:{property:"young",isBoolean:!0},values:[],cardTypes:["hero"]}],de={blitz:_a,"blitz ll":Cr,"blitz living legend":Cr,clash:Oa,cc:Me,classic:Me,"classic constructed":Me,ll:se,"living legend":se,"cc ll":se,"ll cc":se,"classic constructed ll":se,"classic constructed living legend":se,constructed:Me,commoner:za,upf:rt,ultimate:rt,"ultimate pit fight":rt,arakni:On,aurora:zn,azalea:Nn,benji:Hn,betsy:$n,blaze:Gn,boltyn:Wn,bravo:jn,brevant:Kn,briar:Un,brutus:Yn,chane:Vn,dash:Qn,data:tt,"data doll":tt,datadoll:tt,dori:vr,dorinthea:vr,dromai:Jn,emperor:Zn,enigma:qn,fai:Xn,florian:ea,genis:br,geniswotchuneed:br,ira:ta,iyslander:Ar,islander:Ar,kano:ra,kassai:ia,katsu:na,kavdaen:aa,kayo:oa,levia:sa,lexi:la,maxx:ca,melody:ua,nuu:da,oldhim:pa,olympia:ha,oscilio:fa,prism:ga,rhinar:ma,riptide:ya,ruudi:va,shiyana:ba,squizzy:Aa,starvo:Ca,taipanis:ka,taylor:Ma,teklovossen:Fa,terra:Sa,theryon:Ta,uzuri:xa,valda:Ba,verdance:wa,victor:La,viserai:Pa,vynnset:Da,yorick:Ra,yoji:Ia,zen:Ea},Fe=["common","rare","super rare","majestic","legendary","fabled"],Na=(e,t,r)=>{let i=[];if(!t)i.push(...e);else for(let n of e)switch(t){case">=":let a=!1;for(let u of Fe)a?i.push(u):u===n&&(a=!0,i.push(u));break;case">":let l=!1;for(let u of Fe)l?i.push(u):u===n&&(l=!0);break;case"<=":let o=!1;for(let u of Fe.slice().reverse())o?i.push(u):u===n&&(o=!0,i.push(u));break;case"<":let c=!1;for(let u of Fe.slice().reverse())c?i.push(u):u===n&&(c=!0);break;default:break}return{filterToPropertyMapping:{property:"rarities",isArray:!0},isOr:!0,values:i,excluded:r}},Ha=(e,t)=>{let r=[];for(let i of e)if(de[i]){let n=de[i];for(let a of n){let l=V({},a);t&&!a.filterToPropertyMapping.isString&&(l.excluded=!a.excluded),r.push(l)}}return r},ot=(e,t,r,i)=>{let n=[];return Ka(t)?n.push(...Ha(r,e)):Ya(t)&&n.push(Na(r,i,e)),n},le=[{filterToPropertyMapping:{property:"cost",isNumber:!0},values:xe,excluded:!0},{filterToPropertyMapping:{property:"specialCost",isString:!0,partialMatch:!0},values:["*","x"],excluded:!0},{filterToPropertyMapping:{property:"types",isArray:!0,partialMatch:!0},values:["equipment","hero","placeholder","token","weapon"],excluded:!0}],U=[{filterToPropertyMapping:{property:"defense",isNumber:!0},values:xe,excluded:!0},{filterToPropertyMapping:{property:"specialDefense",isString:!0,partialMatch:!0},values:["*","x"],excluded:!0},{filterToPropertyMapping:{property:"types",isArray:!0,partialMatch:!0},values:["hero","placeholder","token","weapon"],excluded:!0}],Se=[{filterToPropertyMapping:{property:"pitch",isNumber:!0},excluded:!0,values:xe},{filterToPropertyMapping:{property:"types",isArray:!0,partialMatch:!0},values:["equipment","hero","placeholder","token","weapon"],excluded:!0},{filterToPropertyMapping:{property:"isCardBack",isBoolean:!0},values:["true"],excluded:!0}],ee=[{filterToPropertyMapping:{property:"power",isNumber:!0},excluded:!0,values:xe},{filterToPropertyMapping:{property:"specialPower",isString:!0,partialMatch:!0},values:["*","x"],excluded:!0},{filterToPropertyMapping:{property:"types",isArray:!0,partialMatch:!0},values:["equipment","hero","placeholder","token"],excluded:!0}],Te=[{filterToPropertyMapping:{property:"talents",isArray:!0},excluded:!0,values:Object.values(s.Talent).map(e=>e.toLowerCase())}],$a={"!co":le,"-co":le,"!cost":le,"-cost":le,"!color":le,"-color":le,"!b":U,"-b":U,"!block":U,"-block":U,"!d":U,"-d":U,"!def":U,"-def":U,"!defense":U,"-defense":U,"!pitch":Se,"-pitch":Se,"!p":Se,"-p":Se,"!attack":ee,"-attack":ee,"!power":ee,"-power":ee,"!pwr":ee,"-pwr":ee,"!pow":ee,"-pow":ee,"!talents":Te,"-talents":Te,"!tal":Te,"-tal":Te},st=e=>{let t=[],r=$a[e];return r&&t.push(...r),t},Ga=(e,t)=>[...de[e.toLowerCase()],...t?de[t.toLowerCase()]:[]],Wa=e=>{var t;return((t=de[e.toLowerCase().split(" ")[0]])==null?void 0:t.length)>0},ja=["l","legal","hero"],Ka=e=>ja.includes(e),Ua=["r","rarity"],Ya=e=>Ua.includes(e);var lt=[{description:"Attack actions",filters:["st:attack"],shorthands:["AA"]},{description:"Arcane barrier",filters:['k:"arcane barrier"'],shorthands:["AB"]},{description:"Attack reactions",filters:['t:"attack reaction"'],shorthands:["AR"]},{description:"Defense reactions",filters:['t:"defense reaction"'],shorthands:["DR"]},{description:"Gain life",filters:["gain {h}"],shorthands:["Gain life","Gains life"]},{description:"Go again",filters:['k:"go again"'],shorthands:["GA"]},{description:"Non-attack actions",filters:["t:action","st:non-attack"],shorthands:["NAA"]},{description:"Plus defense",filters:["+ {d}"],shorthands:["Pump defense","Pumps defense","Buff defense","Buffs defense"]},{description:"Plus power",filters:["+ {p}"],shorthands:["Pumps","Pump","Buff","Buffs","Pump attack","Pump attacks","Pumps attack","Pumps attacks","Buff attack","Buff attacks","Buffs attack","Buffs attacks","Pump power","Pumps power","Buff power","Buffs power"]},{description:"Poppers",filters:["!c:illusionist","st:attack","pwr:>=6","def:>=0"],helper:'6+ power non-Illusionist attacks that can "pop" phantasm attacks when defending',shorthands:["Poppers","Popper"]},{description:"Spellvoid",filters:['k:"spellvoid"'],shorthands:["SV"]}],ct=lt.filter(({shorthands:e})=>e.some(t=>t.includes(" "))).map(e=>ue(V({},e),{shorthands:e.shorthands.filter(t=>t.includes(" ")).map(t=>t.toLowerCase()).sort((t,r)=>r.length-t.length)})),ut=lt.filter(({shorthands:e})=>e.some(t=>!t.includes(" "))).map(e=>ue(V({},e),{shorthands:e.shorthands.filter(t=>!t.includes(" ")).map(t=>t.toLowerCase()).sort((t,r)=>r.length-t.length)}));var Ur=[">=",">","<=","<"],Yr=["!","-"],dt={property:"artists",isArray:!0,partialMatch:!0},Fr={property:"bannedFormats",isArray:!0,partialMatch:!0},Sr={property:"bonds",isArray:!0},Va={property:"n/a"},Tr={property:"classes",isArray:!0,partialMatch:!0},xr={property:"cost",specialProperty:"specialCost",isNumber:!0,partialMatch:!0},pe={property:"defense",specialProperty:"specialDefense",isNumber:!0},Br={property:"flows",isArray:!0},wr={nestedProperty:"foiling",property:"printings",isArray:!0},Lr={property:"fusions",isArray:!0},Pr={property:"intellect",isNumber:!0},Dr={property:"keywords",isArray:!0,partialMatch:!0},pt={property:"n/a",isMeta:!0},Rr={property:"life",specialProperty:"specialLife",isNumber:!0},Ir={property:"name",isString:!0},ht={property:"pitch",isNumber:!0},we={property:"power",specialProperty:"specialPower",isNumber:!0},Er={property:"n/a",isMeta:!0},Qa={property:"n/a"},Ja={property:"n/a"},_r={property:"sets",isArray:!0,partialMatch:!0},Le={property:"specializations",isArray:!0,partialMatch:!0},Or={property:"subtypes",isArray:!0},zr={property:"types",isArray:!0},Nr={property:"talents",isArray:!0},Za={property:"functionalText",isString:!0,partialMatch:!0},qa={property:"typeText",isString:!0,partialMatch:!0},Pe={nestedProperty:"treatment",property:"printings",isArray:!0},De={a:dt,artist:dt,art:dt,attack:we,b:pe,block:pe,banned:Fr,bond:Sr,bonds:Sr,c:Tr,class:Tr,chain:Va,co:xr,cost:xr,color:ht,d:pe,def:pe,defense:pe,flow:Br,flows:Br,f:Lr,fusion:Lr,foil:wr,foiling:wr,i:Pr,intellect:Pr,k:Dr,keyword:Dr,l:pt,legal:pt,hero:pt,li:Rr,life:Rr,n:Ir,name:Ir,p:ht,pitch:ht,pwr:we,pow:we,power:we,r:Er,rarity:Er,referencedby:Qa,references:Ja,rf:Fr,s:_r,set:_r,sp:Le,spec:Le,specialization:Le,specializations:Le,st:Or,subtype:Or,t:zr,type:zr,tal:Nr,talent:Nr,text:Za,treat:Pe,treatment:Pe,var:Pe,variation:Pe,x:qa},Xa=[{text:M.Release.ClassicBattlesRhinarDorinthea.toLowerCase(),override:M.Release.ClassicBattlesRhinarDorinthea.toLowerCase().replaceAll(w,"")}],eo=e=>{var n;let t=[],r=e.replaceAll("\u201D",'"');for(let{text:a,override:l}of Xa)r.includes(a)&&(r=r.replace(a,l));if((n=ke(r))==null?void 0:n.card)t.push(r);else{let a=r.split(/[ ]+/),l="",o=0;for(let c of a)o===2&&(t.push(l.trim().replaceAll('"',"")),l="",o=0),o<2&&c.split('"').length===2?(l+=" "+c,o++):o===0&&l===""?t.push(c):o===1&&(l+=" "+c);o===2&&(t.push(l.trim().replaceAll('"',"")),l="",o=0)}return t},to=[M.Hero.Briar,M.Hero.Brutus,M.Hero.Emperor,M.Hero.Prism,M.Hero.Shiyana,M.Hero.Taylor,M.Hero.Yorick],gt=(e,t)=>{var h;let r=e.trim().toLowerCase();for(let{filters:m,shorthands:y}of ct)for(let p of y)if(r.includes(p)){r=r.replace(p,m.join(" "));break}for(let[m,y]of Object.entries(M.setToSetIdentifierMappings))r.includes(m.toLowerCase())&&(r=r.replace(m.toLowerCase(),y[0]));let i=eo(r),n=[];for(let m of i){let y=ut.find(({shorthands:p})=>p.includes(m));y?n.push(...y.filters):n.push(m)}let a=[],l=[],o=[],c=[],u=[],d=[],f={isClash:!1,heroes:[]};for(let m of n)if(uo(m)){let[y,p]=m.split(":"),{modifier:v,values:g,isAnd:F,isOr:B}=lo(p),{filterKey:b,excluded:x,isMeta:k}=co(y);if(k){if(["rarity","r"].includes(b)&&(g=so(g)),["legal","l","hero"].includes(b)){for(let T of to)p.includes(T.toLowerCase())&&(f.heroes.includes(T)||f.heroes.push(T));p.includes("clash")&&(f.isClash=!0)}a.push(...ot(x,b,g,v))}else{if(["chain"].includes(b)){let T=_=>_.name.toLowerCase().replaceAll(w,""),L=g.map(_=>mt(_,t)).filter(_=>!!_).map(T),P=new Set(L);b="name",B=!0;let H=20,R=0,E=_=>{if(!_.types.includes(M.Type.Hero)){let $=T(_);P.add($),L.includes($)||L.push($)}};for(let _ of L){if(R>H)break;let{referencedBy:$,references:Ee}=Re(_,t);Ee.forEach(E),R===0&&$.forEach(E),R++}g=Array.from(P)}else if(["referencedby","references"].includes(b)){let T=b,L=[...g].filter(P=>!!P);g=[],b="name",B=!0;for(let P of L){let{referencedBy:H,references:R}=Re(P,t);["referencedby"].includes(T)?g.push(...R.map(({name:E})=>E.toLowerCase().replaceAll(w,""))):["references"].includes(T)&&g.push(...H.map(({name:E})=>E.toLowerCase().replaceAll(w,"")))}}else["art","artist"].includes(b)?l=g:["foiling","foil"].includes(b)?(c=ao(g),g=c.map(T=>T.toLowerCase())):["treat","treatment","var","variation"].includes(b)?(d=oo(g),g=d.map(T=>T.toLowerCase())):["set","s"].includes(b)?(u=ro(g),g=u.map(T=>T.toLowerCase().replaceAll(w,""))):["pitch","p","color"].includes(b)&&(g=no(g));De[b]&&a.push({filterToPropertyMapping:De[b],values:g,isAnd:F,isOr:B,modifier:v,excluded:x})}}else if(m){let y=(h=ke(m))==null?void 0:h.card,p=st(m);y?o.push(`"${y.toLowerCase().replace(w,"")}"`):p&&p.length>0?a.push(...p):o.push(m.replace(w,""))}return{appliedFilters:a,attributes:{artists:l,foilings:c,releases:u,treatments:d},keywords:o,specialConditions:f}},ro=e=>{let t=[];for(let r of e)t.push(...io(r));return t},io=e=>{let t=[],r=Object.values(M.Release).find(i=>i.toLowerCase().replaceAll(w,"")===e);if(r&&t.push(r),t.length===0){let i=M.setIdentifierToSetMappings[e];i&&t.push(i)}if(t.length===0){let i=Object.values(M.Release).filter(n=>n.toLowerCase().includes(e));i.length>0&&t.push(...i)}return t},ft={blue:3,yellow:2,red:1,white:0},no=e=>{let t=[];for(let r of e)ft[r]||ft[r]===0?t.push(ft[r].toString()):t.push(r);return t},Hr={r:M.Foiling.R,rf:M.Foiling.R,rainbow:M.Foiling.R,c:M.Foiling.C,cf:M.Foiling.C,cold:M.Foiling.C,g:M.Foiling.G,gf:M.Foiling.G,gold:M.Foiling.G},ao=e=>{let t=[];for(let r of e)Hr[r]&&t.push(Hr[r]);return t},$r=ue(V({},Object.values(M.Treatment).reduce((e,t)=>(e[t.toLowerCase()]=t,e),{})),{aa:M.Treatment.AA,alt:M.Treatment.AA,"alt art":M.Treatment.AA,ab:M.Treatment.AB,"alt border":M.Treatment.AB,at:M.Treatment.AT,"alt text":M.Treatment.AT,ea:M.Treatment.EA,extended:M.Treatment.EA,"extended art":M.Treatment.EA,fa:M.Treatment.FA,full:M.Treatment.FA,"full art":M.Treatment.FA}),oo=e=>{let t=[];for(let r of e)$r[r]?t.push($r[r]):M.Treatment[r.toUpperCase()]&&t.push(M.Treatment[r.toUpperCase()]);return t},Gr={c:"common",f:"fabled",l:"legendary",m:"majestic",v:"marvel",r:"rare",s:"super rare",t:"token"},so=e=>{let t=[];for(let r of e)Gr[r]?t.push(Gr[r]):t.push(r);return t},lo=e=>{let t=[],r,i,n=Ur.find(a=>e.includes(a));if(n){let[,a]=e.split(n);Wr(a)?(r=!0,t.push(...a.trim().split("+").map(l=>l.replace(w,"")))):jr(a)?(i=!0,t.push(...a.trim().split(",").map(l=>l.replace(w,"")))):t.push(a.trim().replace(w,""))}else Wr(e)?(r=!0,t.push(...e.trim().split("+").map(a=>a.replace(w,"")))):jr(e)?(i=!0,t.push(...e.trim().split(",").map(a=>a.replace(w,"")))):e.startsWith('"')&&e.endsWith('"')?t.push(e.trim().replaceAll('"',"").replace(w,"")):t.push(e.trim().replace(w,""));return{modifier:n,values:t,isAnd:r,isOr:i}},co=e=>{let t=po(e);if(t){let[,r]=e.split(t);return{excluded:!0,filterKey:r,isMeta:Kr(r)}}else return{excluded:!1,filterKey:e,isMeta:Kr(e)}},uo=e=>e.indexOf(":")>=0,Wr=e=>e.indexOf("+")>=0,jr=e=>e.indexOf(",")>=0,Kr=e=>{var t;return!!((t=De[e])!=null&&t.isMeta)},po=e=>{var t;return(t=Yr.find(r=>e.includes(r)))==null?void 0:t.slice(0,1)};var I=W(j()),Vr={artists:["Hoodwill"],cardIdentifier:"fangs-a-lot-blue",classes:[I.Class.Generic],defaultImage:"FNG000",functionalText:"If Fangs A Lot is put into your banished zone from your graveyard, instead put it into your hand.",printings:[{artists:["Hoodwill"],identifier:"FNG000",image:"FNG000",print:"FNG000",set:I.Release.Promos},{artists:["Hoodwill"],identifier:"FNG000",image:"FNG000_Marvel",print:`FNG000-${I.Treatment.FA}`,set:I.Release.Promos,treatment:I.Treatment.FA}],name:"Fangs A Lot",rarities:[I.Rarity.Rare],rarity:I.Rarity.Rare,sets:[I.Release.Promos],setIdentifiers:["FNG000"],specialImage:"FNG000_Marvel",subtypes:[I.Subtype.Attack],types:[I.Type.Action],typeText:"Generic Action - Attack"},Qr=[{keyword:Vr.name.toLowerCase(),card:Vr}];var vt=W(j());var bt=class{constructor(t){this.search=(t,r)=>{let i,{appliedFilters:n,attributes:a,keywords:l,specialConditions:o}=gt(t,this.cards),c=l.join(" "),u=r?Qr.filter(p=>p.keyword===c):[];if(u.length>0?i=u.map(({card:p})=>p):l.length?i=this.fuse.search(c).map(p=>p.item):i=[...this.cards],n.length&&(i=i.filter(p=>p&&Zr(p,n,o)),n.some(({excluded:p,values:v})=>!p&&v.includes(D.Format.ClassicConstructed.toLowerCase()))&&(i=i.filter(p=>!p.young)),n.some(({excluded:p,values:v})=>!p&&(v.includes(D.Format.Blitz.toLowerCase())||v.includes(D.Format.Commoner.toLowerCase())))&&(i=i.filter(p=>{let{types:v,young:g}=p;return!(v.includes(D.Type.Hero)&&!g)}))),l.length===0){let p="";if(a.releases.length===1)try{let v=a.releases[0];p=D.setToSetIdentifierMappings[v][0].toUpperCase()}catch(v){console.error("Error getting set identifier from search",v)}p?i.sort((v,g)=>{var b,x;let F=(b=v.setIdentifiers.find(k=>k.includes(p)))==null?void 0:b.replace(p,""),B=(x=g.setIdentifiers.find(k=>k.includes(p)))==null?void 0:x.replace(p,"");return F&&B?F.localeCompare(B):-1}):i.sort((v,g)=>v.name===g.name?`${v.pitch}`.localeCompare(`${g.pitch}`):v.name.localeCompare(g.name))}else{let p=[],v=[],g=l.map(F=>F.toLowerCase().replace(w,"")).join(" ");for(let F of i)F.name.toLowerCase().replace(w,"")===g?p.push(F):v.push(F);i=[...p,...v]}let d,{artists:f,foilings:h,releases:m,treatments:y}=a;return(f.length>0||h.length>0||m.length>0||y.length>0)&&(d=i.map(p=>{let v=p.printings.filter(g=>{let F=!!g.image,B=f.length===0||f.some(T=>g.artists.find(L=>L.replace(w,"").toLowerCase().includes(L))),b=h.length===0||h.includes(g.foiling),x=m.length===0||m.includes(g.set),k=y.length===0||y.includes(g.treatment);return F&&B&&b&&x&&k});return V({matchingPrintings:v},p)})),{appliedFilters:n,attributes:a,keywords:l,searchResults:d||i}};let r={getFn:(i,n)=>{let a=yt.default.config.getFn(i,n);return a&&(Array.isArray(a)?a.map(l=>he(l.replace(w,""))):he(a).replace(w,""))},ignoreLocation:!0,includeScore:!0,keys:[{name:"name",weight:10},{name:"functionalText",weight:6},{name:"setIdentifiers",weight:2},{name:"typeText",weight:6}],threshold:.15,useExtendedSearch:!0};this.cards=[...t],this.fuse=new yt.default([...t],r)}},Jr=bt,Zr=(e,t,r)=>{var n,a,l,o;let i=!0;for(let c of t){let{isNumber:u,isString:d,isArray:f,isBoolean:h,property:m}=c.filterToPropertyMapping;if((u&&!ho(e,c)||d&&!fo(e,c)||f&&!go(e,c)||h&&!mo(e,c))&&(i=!1),r.isClash&&["rarities","bannedFormats"].includes(m)){let b=[D.Rarity.SuperRare,D.Rarity.Majestic,D.Rarity.Legendary,D.Rarity.Fabled].some(P=>e.rarities.includes(P)),x=!1;for(let{cardIdentifiers:P,heroes:H}of Xe)for(let R of r.heroes)H.includes(R)&&P.includes(e.cardIdentifier)&&(x=!0);let k=!!e.specializations&&e.specializations.length>0||x,T=[D.Type.Mentor,D.Type.Weapon].some(P=>e.types.includes(P)),L=qe.includes(e.name);!i&&!L&&(k||T)&&b&&(i=!0),L&&(i=!1)}if(r.isClash&&r.heroes.includes(D.Hero.Briar)&&e.name==="Rosetta Thorn"&&(i=!0),!i&&r.heroes.includes(D.Hero.Brutus)){let b=((n=e.specializations)==null?void 0:n.length)>0;((a=e.keywords)==null?void 0:a.includes(vt.Keyword.Clash))&&!b&&(i=!0)}if(!i&&r.heroes.includes(D.Hero.Shiyana)&&["classes"].includes(m)){let b=((l=e.specializations)==null?void 0:l.length)>0,x=e.types.includes(D.Type.Token),k=e.cardIdentifier==="cracked-bauble-yellow",T=(o=e.keywords)==null?void 0:o.includes(vt.Keyword.Ephemeral);(b||x||k||T)&&(i=!0)}let g=e.types.includes(D.Type.Equipment);if(!i&&r.heroes.includes(D.Hero.Taylor)&&g&&g&&(i=!0),!i&&r.heroes.includes(D.Hero.Yorick)&&(["classes"].includes(m)||["talents"].includes(m))&&e.types.includes(D.Type.Token)&&(i=!0),!i)break}return i},ho=(e,t)=>{var r;if(Ie(t,e)){let{values:i,modifier:n,excluded:a,filterToPropertyMapping:{partialMatch:l}}=t,o=At(e,t);if(o!=null&&!isNaN(o))if(o=parseInt(o),n)switch(n){case">=":let c=i==null?void 0:i.some(h=>o>=parseInt(h));return a?!c:c;case">":let u=i==null?void 0:i.some(h=>o>parseInt(h));return a?!u:u;case"<=":let d=i==null?void 0:i.some(h=>o<=parseInt(h));return a?!d:d;case"<":let f=i==null?void 0:i.some(h=>o<parseInt(h));return a?!f:f;default:return!1}else{let c=i==null?void 0:i.some(u=>o===parseInt(u));return a?!c:c}else{let c=(r=vo(e,t))==null?void 0:r.toLowerCase(),u=l?i==null?void 0:i.some(d=>c==null?void 0:c.includes(d)):i==null?void 0:i.some(d=>c===d);return a?!u:u}}else return!0},fo=(e,t)=>{var r;if(Ie(t,e)){let{values:i,isAnd:n,excluded:a,filterToPropertyMapping:{partialMatch:l}}=t,o=(r=At(e,t))==null?void 0:r.replaceAll(w,"");if(l){let c=n?i==null?void 0:i.every(u=>o==null?void 0:o.toLowerCase().includes(u)):i==null?void 0:i.some(u=>o==null?void 0:o.toLowerCase().includes(u));return a?!c:c}else{let c=n?i==null?void 0:i.every(u=>(o==null?void 0:o.toLowerCase())===u):i==null?void 0:i.some(u=>(o==null?void 0:o.toLowerCase())===u);return a?!c:c}}else return!0},go=(e,t)=>{if(Ie(t,e)){let{values:r,isAnd:i,excluded:n,filterToPropertyMapping:{partialMatch:a}}=t,l=yo(e,t).map(o=>o==null?void 0:o.replaceAll(w,""));if(a){let o=i?r.every(u=>l==null?void 0:l.some(d=>d==null?void 0:d.toLowerCase().includes(u))):r.some(u=>l==null?void 0:l.some(d=>d==null?void 0:d.toLowerCase().includes(u))),c=l.length===0;return n?!o||c:o}else{let o=i?r.every(c=>l==null?void 0:l.some(u=>(u==null?void 0:u.toLowerCase())===c)):r.some(c=>l==null?void 0:l.some(u=>(u==null?void 0:u.toLowerCase())===c));return n?!o:o}}else return!0},mo=(e,t)=>{if(Ie(t,e)){let{excluded:r}=t,i=At(e,t);return r?!i:i}else return!0},At=(e,t)=>{let{filterToPropertyMapping:r}=t;return e[r.property]},yo=(e,t)=>{let{filterToPropertyMapping:{nestedProperty:r,property:i}}=t,n=e[i]||[];return r?n.map(a=>a[r]).filter(a=>!!a):n},vo=(e,t)=>{let{filterToPropertyMapping:r}=t;return e[r.specialProperty]},Ie=({cardTypes:e},{types:t,subtypes:r})=>!e||(e==null?void 0:e.some(i=>t.map(n=>n.toLowerCase()).includes(i.toLowerCase())||r.map(n=>n.toLowerCase()).includes(i.toLowerCase())));var mt=(e,t)=>{let r=t.find(i=>Ct(i.name)===e);return r||(r=t.find(i=>Ct(i.name).includes(e))),r},Ct=e=>he(e.toLowerCase().trim().replace(w,"")),he=e=>e.normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"");var Y=W(j()),bo=e=>{let t=e.filter(o=>o.types.includes(Y.Type.Hero)).sort((o,c)=>o.name.localeCompare(c.name)),r=t.filter(o=>!o.young&&!o.classes.includes(Y.Class.Adjudicator)),i=t.filter(o=>{let c=o.rarities.some(d=>d!==Y.Rarity.Promo),u=o.sets.some(d=>d!==Y.Release.Promos);return c||u}),n=t.filter(o=>{let c=o.rarities.every(d=>d===Y.Rarity.Promo),u=o.sets.every(d=>d===Y.Release.Promos);return c&&u}),a=t.filter(o=>o.young),l=a.filter(({hero:o})=>!r.find(c=>c.hero===o));return{all:t,adult:r,nonPromo:i,promoOnly:n,young:a,youngOnly:l}};var ei=W(j());var kt=W(j()),Ao={"Dawnblade, Resplendent":"Dawnblade"},qr=e=>Ao[e.name]||e.name,Xr=e=>{var t;return(t=e.functionalText)==null?void 0:t.replaceAll(e.name,"")},Re=(e,t)=>{let r=t.find(i=>i.name.toLowerCase().replace(w,"")===e);return r||(r=t.find(i=>i.name.toLowerCase().replace(w,"").includes(e))),Mt(r,t)},Mt=(e,t)=>{var a,l;let r=[],i=[],n=[];if(e){let o=[],c=[],u=qr(e);for(let d of t){let f=qr(d),h=u===f,m=e.pitch!==d.pitch;if(h&&m)r.push(d);else if(!h){let y=e.name==="Seismic Surge",p=(a=d.keywords)==null?void 0:a.includes(kt.Keyword.Heave),v=y&&p,g=Xr(d),F=g==null?void 0:g.includes(u),B=Xr(e),b=B==null?void 0:B.includes(f);(F||v)&&o.push(d);let x=d.name==="Seismic Surge",k=(l=e.keywords)==null?void 0:l.includes(kt.Keyword.Heave);(b||x&&k)&&c.push(d)}}for(let d of o)i.push(d);for(let d of c){let f=d.name;u!==f&&!c.some(h=>{let m=h.name;return m!==f&&m.includes(f)})&&n.push(d)}}return{otherPitches:r,referencedBy:i,references:n}},Co=["cash-in-yellow"],ko=(e,t,r)=>{let i=new Set;for(let n of e.filter(({cardIdentifier:a})=>!Co.includes(a))){let{references:a}=Mt(n,t);for(let l of a.filter(o=>{let c=o.name==="Hyper Driver",u=r===ei.Hero.Maxx;return!c||u}))i.add(l)}return Array.from(i)};0&&(module.exports={PUNCTUATION,abbreviations,availableExclusions,availableModifiers,clashBannedCards,clashLegalCards,clashSpecializationOverrides,filterCard,filtersToCardPropertyMappings,getAbbreviation,getAbbreviationByCard,getCardByName,getCleanText,getDeckFilters,getExcludedMetaFilters,getHeroBreakdown,getKeywordsAndAppliedFiltersFromText,getMetaFilters,getNormalizedText,getRelatedCards,getRelatedCardsByName,getTokensReferencedByCards,heroHasFilters,multiWordShorthands,shorthands,singleWordShorthands});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flesh-and-blood/search",
|
|
3
3
|
"description": "TypeScript search engine for Flesh and Blood cards",
|
|
4
|
-
"version": "3.0
|
|
4
|
+
"version": "3.1.0",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
"full": "npm run build"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@flesh-and-blood/types": "^3.0
|
|
15
|
+
"@flesh-and-blood/types": "^3.1.0",
|
|
16
16
|
"fuse.js": "^6.6.2"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@flesh-and-blood/cards": "^3.0
|
|
19
|
+
"@flesh-and-blood/cards": "^3.1.0",
|
|
20
20
|
"@types/jest": "^29.5.11",
|
|
21
21
|
"@types/node": "^20.10.5",
|
|
22
22
|
"esbuild": "^0.19.10",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"FAB",
|
|
47
47
|
"FABTCG"
|
|
48
48
|
],
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "897ce8f12eecdc6754e3e4351727b3b19b30c05e"
|
|
50
50
|
}
|